1.0.271 • Published 2 years ago

@publishvue/vue3complib v1.0.271

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

artifact: "Vue 3 Component Library"

status: "beta"

npm version

vue3complib

Vue 3 component library.

View Component Demo

Project setup

yarn install

Build library

yarn build

Compiles and hot-reloads for development

yarn serve

Lints and fixes files

yarn lint

components

Labeled

Labeled content. Label can be either on left or right side.

Props

label

  • String, required. Label to be displayed.

rev

  • Boolean, optional, defaults to false. By default the label is rendered on the left side. If rev is true then the label will be rendered on the right side.

Perscheck

Persistent checkbox.

Props

id

  • String, required. Local storage unique ID, to be used to store checkbox state.

default

  • Boolean, optional, defaults to false. Default value to use when there is not a yet a stored value in local storage, false for unchecked and true for checked.

Events

perscheckchanged

Event content

  • id

Local storage unique ID.

  • checked

Checked status of persistent checkbox, false for unchecked, true for checked.

Perstext

Persistent text input.

Props

id

  • String, required. Local storage unique ID, to be used to store text input value.

default

  • String, optional, defaults to empty string. Default value to use when there is not a yet a stored value in local storage.

buttoncaption

  • String, optional, defaults to empty string. If non empty, a submit button with this caption will be added.

onsubmitclear

  • Boolean, optional, default to false. Clear text on submit.

Events

perstextchanged

Event content

  • id

Local storage unique ID.

  • value

Value of the persistent text input.

  • submit

Boolean, set to true if the text was submitted by pressing ENTER or the submit button, undefined otherwise.

Perscombo

Persistent combo box.

Props

id

  • String, required. Local storage unique ID, to be used to store selected value.

options

  • Array, optional ( a default with 3 test options is provided ). Each element of the array is an object that has a display and a value field. The former will be shown to the user, that latter will be returned as selected value.
[
  {
    display: "Display1", 
    value: "value1",
  },
  {
    display: "Display2", 
    value: "value2",
  },
  ...
}

Events

perscombochanged

Event content

  • id

Local storage unique ID.

  • value

Selected value of the persistent combo.

Tabpane

Tabpane.

Props

id

  • String, required. Local storage unique ID, to be used to store selected tab.

width

  • Number, optional. Width of tab content in px. Defaults to 600. Should be set using v-bind: or :.

height

  • Number, optional. Height of tab content in px. Defaults to 400. Should be set using v-bind: or :.

Slots

Every child of a Tabpane is considered a tab. It can be any valid HTML element. You should add attribute caption to each of these elements ( or accept default tab name, which is Tab {index of tab} ).

Example

<Tabpane
  id="tabpane"
  v-on:tabpanechanged="event"
  :width="300"
  :height="100"
>
  <div caption="Custom tab">custom</div>
  <div>tab 1</div>
  <div>tab 2</div>
</Tabpane>

Events

tabpanechanged

Event content

  • id

Local storage unique ID.

  • selectedTab

Index of selected tab.

  • selectedTabCaption

Caption of selected tab.

Link

Link that opens in new tab.

Props

href

  • String, required. Url or link.

caption

  • String, optional, defaults to href. Caption of link.

Chessboard

Chessboard.

Props

fen

FEN of the initial position. Optional, if no FEN is specified, the starting position will be set up.

Events

chessboardmoveplayed

Event content

  • orig

Original square of the move.

  • dest

Destination square of the move.

  • uci

Move in UCI notation.

  • isLegal

True if the move is legal, false otherwise.

  • legals

Legal UCIs for this move. Can be more than one if the move is promotion.

  • legalUci

If the move is legal, this is the UCI move the board actually played ( the first of legal UCIs ).

  • san

Move in SAN notation.

1.0.269

2 years ago

1.0.271

2 years ago

1.0.270

2 years ago

1.0.200

3 years ago

1.0.206

3 years ago

1.0.205

3 years ago

1.0.208

3 years ago

1.0.207

3 years ago

1.0.202

3 years ago

1.0.201

3 years ago

1.0.204

3 years ago

1.0.203

3 years ago

1.0.187

3 years ago

1.0.186

3 years ago

1.0.189

3 years ago

1.0.188

3 years ago

1.0.183

3 years ago

1.0.182

3 years ago

1.0.185

3 years ago

1.0.184

3 years ago

1.0.181

3 years ago

1.0.180

3 years ago

1.0.176

3 years ago

1.0.175

3 years ago

1.0.178

3 years ago

1.0.177

3 years ago

1.0.172

3 years ago

1.0.171

3 years ago

1.0.174

3 years ago

1.0.173

3 years ago

1.0.179

3 years ago

1.0.170

3 years ago

1.0.88

3 years ago

1.0.87

3 years ago

1.0.89

3 years ago

1.0.198

3 years ago

1.0.197

3 years ago

1.0.199

3 years ago

1.0.194

3 years ago

1.0.193

3 years ago

1.0.196

3 years ago

1.0.195

3 years ago

1.0.91

3 years ago

1.0.90

3 years ago

1.0.95

3 years ago

1.0.94

3 years ago

1.0.93

3 years ago

1.0.92

3 years ago

1.0.190

3 years ago

1.0.99

3 years ago

1.0.98

3 years ago

1.0.192

3 years ago

1.0.97

3 years ago

1.0.191

3 years ago

1.0.96

3 years ago

1.0.264

2 years ago

1.0.143

3 years ago

1.0.263

2 years ago

1.0.142

3 years ago

1.0.266

2 years ago

1.0.145

3 years ago

1.0.265

2 years ago

1.0.144

3 years ago

1.0.260

2 years ago

1.0.262

2 years ago

1.0.141

3 years ago

1.0.261

2 years ago

1.0.140

3 years ago

1.0.268

2 years ago

1.0.147

3 years ago

1.0.267

2 years ago

1.0.146

3 years ago

1.0.149

3 years ago

1.0.148

3 years ago

1.0.253

2 years ago

1.0.132

3 years ago

1.0.252

2 years ago

1.0.131

3 years ago

1.0.255

2 years ago

1.0.134

3 years ago

1.0.254

2 years ago

1.0.133

3 years ago

1.0.251

2 years ago

1.0.130

3 years ago

1.0.250

2 years ago

1.0.139

3 years ago

1.0.257

2 years ago

1.0.136

3 years ago

1.0.256

2 years ago

1.0.135

3 years ago

1.0.259

2 years ago

1.0.138

3 years ago

1.0.258

2 years ago

1.0.137

3 years ago

1.0.165

3 years ago

1.0.164

3 years ago

1.0.167

3 years ago

1.0.166

3 years ago

1.0.161

3 years ago

1.0.160

3 years ago

1.0.163

3 years ago

1.0.169

3 years ago

1.0.168

3 years ago

1.0.154

3 years ago

1.0.153

3 years ago

1.0.156

3 years ago

1.0.155

3 years ago

1.0.150

3 years ago

1.0.152

3 years ago

1.0.158

3 years ago

1.0.157

3 years ago

1.0.159

3 years ago

1.0.220

2 years ago

1.0.222

2 years ago

1.0.101

3 years ago

1.0.221

2 years ago

1.0.100

3 years ago

1.0.228

2 years ago

1.0.107

3 years ago

1.0.227

2 years ago

1.0.106

3 years ago

1.0.109

3 years ago

1.0.229

2 years ago

1.0.108

3 years ago

1.0.224

2 years ago

1.0.103

3 years ago

1.0.223

2 years ago

1.0.102

3 years ago

1.0.226

2 years ago

1.0.105

3 years ago

1.0.225

2 years ago

1.0.104

3 years ago

1.0.211

2 years ago

1.0.210

2 years ago

1.0.217

2 years ago

1.0.216

2 years ago

1.0.219

2 years ago

1.0.218

2 years ago

1.0.213

2 years ago

1.0.212

2 years ago

1.0.215

2 years ago

1.0.214

2 years ago

1.0.209

3 years ago

1.0.242

2 years ago

1.0.121

3 years ago

1.0.241

2 years ago

1.0.120

3 years ago

1.0.244

2 years ago

1.0.123

3 years ago

1.0.243

2 years ago

1.0.122

3 years ago

1.0.240

2 years ago

1.0.129

3 years ago

1.0.249

2 years ago

1.0.128

3 years ago

1.0.246

2 years ago

1.0.125

3 years ago

1.0.245

2 years ago

1.0.124

3 years ago

1.0.248

2 years ago

1.0.127

3 years ago

1.0.247

2 years ago

1.0.126

3 years ago

1.0.231

2 years ago

1.0.110

3 years ago

1.0.230

2 years ago

1.0.233

2 years ago

1.0.112

3 years ago

1.0.232

2 years ago

1.0.111

3 years ago

1.0.239

2 years ago

1.0.118

3 years ago

1.0.238

2 years ago

1.0.117

3 years ago

1.0.119

3 years ago

1.0.235

2 years ago

1.0.114

3 years ago

1.0.234

2 years ago

1.0.113

3 years ago

1.0.237

2 years ago

1.0.116

3 years ago

1.0.236

2 years ago

1.0.115

3 years ago

1.0.66

3 years ago

1.0.65

3 years ago

1.0.64

3 years ago

1.0.69

3 years ago

1.0.68

3 years ago

1.0.67

3 years ago

1.0.73

3 years ago

1.0.72

3 years ago

1.0.71

3 years ago

1.0.70

3 years ago

1.0.76

3 years ago

1.0.75

3 years ago

1.0.79

3 years ago

1.0.80

3 years ago

1.0.84

3 years ago

1.0.83

3 years ago

1.0.82

3 years ago

1.0.81

3 years ago

1.0.86

3 years ago

1.0.85

3 years ago

1.0.62

3 years ago

1.0.61

3 years ago

1.0.60

3 years ago

1.0.63

3 years ago

1.0.26

3 years ago

1.0.29

3 years ago

1.0.28

3 years ago

1.0.27

3 years ago

1.0.33

3 years ago

1.0.32

3 years ago

1.0.31

3 years ago

1.0.30

3 years ago

1.0.37

3 years ago

1.0.36

3 years ago

1.0.35

3 years ago

1.0.34

3 years ago

1.0.39

3 years ago

1.0.38

3 years ago

1.0.40

3 years ago

1.0.44

3 years ago

1.0.43

3 years ago

1.0.42

3 years ago

1.0.41

3 years ago

1.0.48

3 years ago

1.0.47

3 years ago

1.0.46

3 years ago

1.0.45

3 years ago

1.0.49

3 years ago

1.0.51

3 years ago

1.0.50

3 years ago

1.0.55

3 years ago

1.0.54

3 years ago

1.0.53

3 years ago

1.0.52

3 years ago

1.0.59

3 years ago

1.0.58

3 years ago

1.0.57

3 years ago

1.0.56

3 years ago

1.0.25

3 years ago

1.0.24

3 years ago

1.0.23

3 years ago

1.0.22

3 years ago

1.0.21

3 years ago

1.0.20

3 years ago

1.0.19

3 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago