quasar 2.3.2 → 2.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/AppFullscreen.json +15 -8
- package/dist/api/BottomSheet.json +6 -0
- package/dist/api/Cookies.json +4 -3
- package/dist/api/Dialog.json +23 -9
- package/dist/api/Loading.json +4 -2
- package/dist/api/LoadingBar.json +8 -3
- package/dist/api/Morph.json +14 -7
- package/dist/api/Mutation.json +1 -1
- package/dist/api/Notify.json +41 -27
- package/dist/api/QAjaxBar.json +6 -3
- package/dist/api/QBreadcrumbs.json +8 -4
- package/dist/api/QBreadcrumbsEl.json +4 -2
- package/dist/api/QBtn.json +6 -3
- package/dist/api/QBtnDropdown.json +10 -5
- package/dist/api/QBtnToggle.json +4 -2
- package/dist/api/QCard.json +2 -1
- package/dist/api/QCardActions.json +2 -1
- package/dist/api/QCardSection.json +2 -1
- package/dist/api/QCarousel.json +10 -5
- package/dist/api/QCarouselControl.json +4 -2
- package/dist/api/QChatMessage.json +8 -4
- package/dist/api/QCheckbox.json +8 -4
- package/dist/api/QChip.json +2 -1
- package/dist/api/QCircularProgress.json +14 -7
- package/dist/api/QColor.json +6 -3
- package/dist/api/QDate.json +33 -5
- package/dist/api/QDialog.json +8 -4
- package/dist/api/QDrawer.json +10 -5
- package/dist/api/QEditor.json +10 -5
- package/dist/api/QExpansionItem.json +2 -1
- package/dist/api/QFab.json +8 -4
- package/dist/api/QFabAction.json +4 -2
- package/dist/api/QField.json +2 -1
- package/dist/api/QFile.json +3 -0
- package/dist/api/QFooter.json +2 -1
- package/dist/api/QHeader.json +4 -2
- package/dist/api/QIcon.json +2 -1
- package/dist/api/QImg.json +8 -4
- package/dist/api/QInfiniteScroll.json +6 -3
- package/dist/api/QInnerLoading.json +8 -4
- package/dist/api/QInput.json +2 -1
- package/dist/api/QIntersection.json +4 -2
- package/dist/api/QItem.json +2 -1
- package/dist/api/QKnob.json +8 -4
- package/dist/api/QLayout.json +9 -1
- package/dist/api/QLinearProgress.json +4 -2
- package/dist/api/QMarkupTable.json +2 -1
- package/dist/api/QMenu.json +8 -4
- package/dist/api/QNoSsr.json +2 -1
- package/dist/api/QOptionGroup.json +2 -1
- package/dist/api/QPage.json +2 -1
- package/dist/api/QPageScroller.json +8 -4
- package/dist/api/QPageSticky.json +2 -1
- package/dist/api/QPagination.json +10 -6
- package/dist/api/QParallax.json +2 -1
- package/dist/api/QPopupEdit.json +5 -2
- package/dist/api/QPopupProxy.json +4 -2
- package/dist/api/QRange.json +8 -4
- package/dist/api/QRating.json +2 -1
- package/dist/api/QResizeObserver.json +4 -1
- package/dist/api/QRouteTab.json +4 -2
- package/dist/api/QScrollArea.json +26 -4
- package/dist/api/QScrollObserver.json +13 -1
- package/dist/api/QSelect.json +73 -37
- package/dist/api/QSeparator.json +2 -1
- package/dist/api/QSkeleton.json +8 -4
- package/dist/api/QSlideItem.json +9 -0
- package/dist/api/QSlideTransition.json +2 -1
- package/dist/api/QSlider.json +8 -4
- package/dist/api/QSpinner.json +2 -1
- package/dist/api/QSplitter.json +4 -2
- package/dist/api/QStep.json +2 -1
- package/dist/api/QStepper.json +6 -3
- package/dist/api/QTab.json +4 -2
- package/dist/api/QTabPanels.json +6 -3
- package/dist/api/QTable.json +154 -88
- package/dist/api/QTabs.json +4 -2
- package/dist/api/QTime.json +16 -4
- package/dist/api/QTimeline.json +4 -2
- package/dist/api/QTimelineEntry.json +4 -2
- package/dist/api/QToggle.json +8 -4
- package/dist/api/QTooltip.json +18 -9
- package/dist/api/QTree.json +26 -15
- package/dist/api/QUploader.json +12 -4
- package/dist/api/QVirtualScroll.json +23 -9
- package/dist/api/ScrollFire.json +1 -1
- package/dist/api/TouchHold.json +2 -1
- package/dist/api/TouchRepeat.json +2 -1
- package/dist/api/TouchSwipe.json +2 -1
- package/dist/icon-set/bootstrap-icons.umd.prod.js +1 -1
- package/dist/icon-set/eva-icons.umd.prod.js +1 -1
- package/dist/icon-set/fontawesome-v5-pro.umd.prod.js +1 -1
- package/dist/icon-set/fontawesome-v5.umd.prod.js +1 -1
- package/dist/icon-set/ionicons-v4.umd.prod.js +1 -1
- package/dist/icon-set/line-awesome.umd.prod.js +1 -1
- package/dist/icon-set/material-icons-outlined.umd.prod.js +1 -1
- package/dist/icon-set/material-icons-round.umd.prod.js +1 -1
- package/dist/icon-set/material-icons-sharp.umd.prod.js +1 -1
- package/dist/icon-set/material-icons.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v3.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v4.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v5.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v6.umd.prod.js +1 -1
- package/dist/icon-set/svg-bootstrap-icons.umd.prod.js +1 -1
- package/dist/icon-set/svg-eva-icons.umd.prod.js +1 -1
- package/dist/icon-set/svg-fontawesome-v5.umd.prod.js +1 -1
- package/dist/icon-set/svg-ionicons-v4.umd.prod.js +1 -1
- package/dist/icon-set/svg-ionicons-v5.umd.prod.js +1 -1
- package/dist/icon-set/svg-ionicons-v6.umd.prod.js +1 -1
- package/dist/icon-set/svg-line-awesome.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons-outlined.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons-round.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons-sharp.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons.umd.prod.js +1 -1
- package/dist/icon-set/svg-mdi-v4.umd.prod.js +1 -1
- package/dist/icon-set/svg-mdi-v5.umd.prod.js +1 -1
- package/dist/icon-set/svg-mdi-v6.umd.prod.js +1 -1
- package/dist/icon-set/svg-themify.umd.prod.js +1 -1
- package/dist/icon-set/themify.umd.prod.js +1 -1
- package/dist/lang/ar.umd.prod.js +1 -1
- package/dist/lang/az-Latn.umd.prod.js +1 -1
- package/dist/lang/bg.umd.prod.js +1 -1
- package/dist/lang/bn.umd.prod.js +1 -1
- package/dist/lang/ca.umd.prod.js +1 -1
- package/dist/lang/cs.umd.prod.js +1 -1
- package/dist/lang/da.umd.prod.js +1 -1
- package/dist/lang/de.umd.prod.js +1 -1
- package/dist/lang/el.umd.prod.js +1 -1
- package/dist/lang/en-GB.umd.prod.js +1 -1
- package/dist/lang/en-US.umd.prod.js +1 -1
- package/dist/lang/eo.umd.prod.js +1 -1
- package/dist/lang/es.umd.prod.js +1 -1
- package/dist/lang/et.umd.prod.js +1 -1
- package/dist/lang/fa-IR.umd.prod.js +1 -1
- package/dist/lang/fa.umd.prod.js +1 -1
- package/dist/lang/fi.umd.prod.js +1 -1
- package/dist/lang/fr.umd.prod.js +1 -1
- package/dist/lang/gn.umd.prod.js +1 -1
- package/dist/lang/he.umd.prod.js +1 -1
- package/dist/lang/hr.umd.prod.js +1 -1
- package/dist/lang/hu.umd.prod.js +1 -1
- package/dist/lang/id.umd.prod.js +1 -1
- package/dist/lang/is.umd.prod.js +1 -1
- package/dist/lang/it.umd.prod.js +1 -1
- package/dist/lang/ja.umd.prod.js +1 -1
- package/dist/lang/km.umd.prod.js +1 -1
- package/dist/lang/ko-KR.umd.prod.js +1 -1
- package/dist/lang/kur-CKB.umd.prod.js +1 -1
- package/dist/lang/lt.umd.prod.js +1 -1
- package/dist/lang/lu.umd.prod.js +1 -1
- package/dist/lang/lv.umd.prod.js +1 -1
- package/dist/lang/ml.umd.prod.js +1 -1
- package/dist/lang/ms.umd.prod.js +1 -1
- package/dist/lang/nb-NO.umd.prod.js +1 -1
- package/dist/lang/nl.umd.prod.js +1 -1
- package/dist/lang/pl.umd.prod.js +1 -1
- package/dist/lang/pt-BR.umd.prod.js +1 -1
- package/dist/lang/pt.umd.prod.js +1 -1
- package/dist/lang/ro.umd.prod.js +1 -1
- package/dist/lang/ru.umd.prod.js +1 -1
- package/dist/lang/sk.umd.prod.js +1 -1
- package/dist/lang/sl.umd.prod.js +1 -1
- package/dist/lang/sr-CYR.umd.prod.js +1 -1
- package/dist/lang/sr.umd.prod.js +1 -1
- package/dist/lang/sv.umd.prod.js +1 -1
- package/dist/lang/ta.umd.prod.js +1 -1
- package/dist/lang/th.umd.prod.js +1 -1
- package/dist/lang/tr.umd.prod.js +1 -1
- package/dist/lang/ug.umd.prod.js +1 -1
- package/dist/lang/uk.umd.prod.js +1 -1
- package/dist/lang/vi.umd.prod.js +1 -1
- package/dist/lang/zh-CN.umd.prod.js +1 -1
- package/dist/lang/zh-TW.umd.prod.js +1 -1
- package/dist/quasar.cjs.prod.js +2 -2
- package/dist/quasar.css +1 -1
- package/dist/quasar.esm.prod.js +2 -2
- package/dist/quasar.prod.css +1 -1
- package/dist/quasar.rtl.css +1 -1
- package/dist/quasar.rtl.prod.css +1 -1
- package/dist/quasar.sass +2 -2
- package/dist/quasar.umd.js +18 -21
- package/dist/quasar.umd.prod.js +2 -2
- package/dist/ssr-directives/Morph.js +1 -1
- package/dist/types/api/cookies.d.ts +1 -1
- package/dist/types/index.d.ts +149 -38
- package/dist/web-types/web-types.json +10 -6
- package/package.json +1 -1
- package/src/components/btn/QBtn.js +1 -0
- package/src/components/date/QDate.json +25 -1
- package/src/components/field/QField.json +3 -3
- package/src/components/file/QFile.json +3 -0
- package/src/components/layout/QLayout.json +8 -1
- package/src/components/linear-progress/QLinearProgress.sass +1 -1
- package/src/components/pagination/QPagination.json +0 -1
- package/src/components/popup-edit/QPopupEdit.json +1 -0
- package/src/components/resize-observer/QResizeObserver.json +2 -0
- package/src/components/scroll-area/QScrollArea.js +7 -12
- package/src/components/scroll-area/QScrollArea.json +24 -3
- package/src/components/scroll-observer/QScrollObserver.json +11 -0
- package/src/components/select/QSelect.json +24 -11
- package/src/components/slide-item/QSlideItem.json +9 -0
- package/src/components/table/QTable.json +104 -55
- package/src/components/table/table-pagination.js +4 -0
- package/src/components/time/QTime.json +8 -0
- package/src/components/tree/QTree.json +14 -9
- package/src/components/uploader/xhr-uploader-plugin.json +8 -3
- package/src/components/virtual-scroll/use-virtual-scroll.json +5 -0
- package/src/composables/private/use-split-attrs.js +3 -6
- package/src/directives/Mutation.json +2 -3
- package/src/directives/ScrollFire.json +2 -3
- package/src/plugins/AppFullscreen.json +8 -8
- package/src/plugins/Cookies.json +2 -2
- package/src/plugins/Dialog.json +4 -2
- package/src/plugins/LoadingBar.json +4 -3
- package/src/plugins/Notify.json +13 -19
- package/src/utils/private/global-dialog.json +6 -0
|
@@ -64,6 +64,10 @@ export function useTablePaginationState (vm, getCellValue) {
|
|
|
64
64
|
nextTick(() => {
|
|
65
65
|
emit('request', {
|
|
66
66
|
pagination: prop.pagination || computedPagination.value,
|
|
67
|
+
// FIXME: 'props.filter' is string/object, but 'prop.filter' can be controlled by the user, and the docs are suggesting 'prop.filter' is a function
|
|
68
|
+
// So, value of 'filter' becomes function/string/object, which makes a lot of things unpredictable and can break things
|
|
69
|
+
// Either update the docs to say 'prop.filter' should be a string/object, or use 'prop.filter || props.filterMethod' or maybe get 'computedFilterFunction' here and use that instead of 'props.filterMethod'
|
|
70
|
+
// The examples on our docs are using 'filter' as a string in onRequest handler, but the JSON API is saying 'filter' is a function
|
|
67
71
|
filter: prop.filter || props.filter,
|
|
68
72
|
getCellValue
|
|
69
73
|
})
|
|
@@ -123,41 +123,49 @@
|
|
|
123
123
|
"definition": {
|
|
124
124
|
"year": {
|
|
125
125
|
"type": "Number",
|
|
126
|
+
"required": true,
|
|
126
127
|
"desc": "The year",
|
|
127
128
|
"__exemption": [ "examples" ]
|
|
128
129
|
},
|
|
129
130
|
"month": {
|
|
130
131
|
"type": "Number",
|
|
132
|
+
"required": true,
|
|
131
133
|
"desc": "The month",
|
|
132
134
|
"__exemption": [ "examples" ]
|
|
133
135
|
},
|
|
134
136
|
"day": {
|
|
135
137
|
"type": "Number",
|
|
138
|
+
"required": true,
|
|
136
139
|
"desc": "The day of the month",
|
|
137
140
|
"__exemption": [ "examples" ]
|
|
138
141
|
},
|
|
139
142
|
"hour": {
|
|
140
143
|
"type": "Number",
|
|
144
|
+
"required": true,
|
|
141
145
|
"desc": "The hour",
|
|
142
146
|
"__exemption": [ "examples" ]
|
|
143
147
|
},
|
|
144
148
|
"minute": {
|
|
145
149
|
"type": "Number",
|
|
150
|
+
"required": true,
|
|
146
151
|
"desc": "The minute",
|
|
147
152
|
"__exemption": [ "examples" ]
|
|
148
153
|
},
|
|
149
154
|
"second": {
|
|
150
155
|
"type": "Number",
|
|
156
|
+
"required": true,
|
|
151
157
|
"desc": "The second",
|
|
152
158
|
"__exemption": [ "examples" ]
|
|
153
159
|
},
|
|
154
160
|
"millisecond": {
|
|
155
161
|
"type": "Number",
|
|
162
|
+
"required": true,
|
|
156
163
|
"desc": "The millisecond",
|
|
157
164
|
"__exemption": [ "examples" ]
|
|
158
165
|
},
|
|
159
166
|
"changed": {
|
|
160
167
|
"type": "Boolean",
|
|
168
|
+
"required": true,
|
|
161
169
|
"desc": "Did the model change?"
|
|
162
170
|
}
|
|
163
171
|
}
|
|
@@ -354,21 +354,25 @@
|
|
|
354
354
|
"definition": {
|
|
355
355
|
"node": {
|
|
356
356
|
"type": "Object",
|
|
357
|
+
"required": true,
|
|
357
358
|
"desc": "The node to which the new nodes (the children) will be appended",
|
|
358
359
|
"__exemption": [ "examples" ]
|
|
359
360
|
},
|
|
360
361
|
"key": {
|
|
361
362
|
"type": "String",
|
|
363
|
+
"required": true,
|
|
362
364
|
"desc": "The key of the node getting the newly loaded child nodes",
|
|
363
365
|
"examples": [ "New Node" ]
|
|
364
366
|
},
|
|
365
367
|
"done": {
|
|
366
368
|
"type": "Function",
|
|
369
|
+
"required": true,
|
|
367
370
|
"desc": "The callback to be carried out when the loading is successful",
|
|
368
371
|
"params": {
|
|
369
372
|
"children": {
|
|
370
373
|
"type": "Array",
|
|
371
374
|
"desc": "Array of nodes",
|
|
375
|
+
"default": "[]",
|
|
372
376
|
"__exemption": [ "examples" ]
|
|
373
377
|
}
|
|
374
378
|
},
|
|
@@ -376,6 +380,7 @@
|
|
|
376
380
|
},
|
|
377
381
|
"fail": {
|
|
378
382
|
"type": "Function",
|
|
383
|
+
"required": true,
|
|
379
384
|
"desc": "The callback to be carried out should the loading fails",
|
|
380
385
|
"params": null,
|
|
381
386
|
"returns": null
|
|
@@ -422,8 +427,8 @@
|
|
|
422
427
|
"params": {
|
|
423
428
|
"key": {
|
|
424
429
|
"type": "Any",
|
|
425
|
-
"desc": "The key of a node",
|
|
426
430
|
"required": true,
|
|
431
|
+
"desc": "The key of a node",
|
|
427
432
|
"examples": [ "Node 1" ]
|
|
428
433
|
}
|
|
429
434
|
},
|
|
@@ -457,8 +462,8 @@
|
|
|
457
462
|
"params": {
|
|
458
463
|
"key": {
|
|
459
464
|
"type": "Any",
|
|
460
|
-
"desc": "The key of a node",
|
|
461
465
|
"required": true,
|
|
466
|
+
"desc": "The key of a node",
|
|
462
467
|
"examples": [ "Node 1" ]
|
|
463
468
|
}
|
|
464
469
|
},
|
|
@@ -481,14 +486,14 @@
|
|
|
481
486
|
"params": {
|
|
482
487
|
"key": {
|
|
483
488
|
"type": "Any",
|
|
484
|
-
"desc": "The key of a node",
|
|
485
489
|
"required": true,
|
|
490
|
+
"desc": "The key of a node",
|
|
486
491
|
"examples": [ "Node 1" ]
|
|
487
492
|
},
|
|
488
493
|
"state": {
|
|
489
494
|
"type": "Boolean",
|
|
490
|
-
"
|
|
491
|
-
"
|
|
495
|
+
"required": true,
|
|
496
|
+
"desc": "Set to 'true' to expand the branch of the tree, otherwise 'false' collapses it"
|
|
492
497
|
}
|
|
493
498
|
}
|
|
494
499
|
},
|
|
@@ -498,8 +503,8 @@
|
|
|
498
503
|
"params": {
|
|
499
504
|
"key": {
|
|
500
505
|
"type": "Any",
|
|
501
|
-
"desc": "The key of a node",
|
|
502
506
|
"required": true,
|
|
507
|
+
"desc": "The key of a node",
|
|
503
508
|
"examples": [ "Node 1" ]
|
|
504
509
|
}
|
|
505
510
|
},
|
|
@@ -514,14 +519,14 @@
|
|
|
514
519
|
"params": {
|
|
515
520
|
"keys": {
|
|
516
521
|
"type": "Array",
|
|
517
|
-
"desc": "The keys of nodes to tick/untick",
|
|
518
522
|
"required": true,
|
|
523
|
+
"desc": "The keys of nodes to tick/untick",
|
|
519
524
|
"examples": [ "[ 'Node 1', 'Node 2' ]" ]
|
|
520
525
|
},
|
|
521
526
|
"state": {
|
|
522
527
|
"type": "Boolean",
|
|
523
|
-
"
|
|
524
|
-
"
|
|
528
|
+
"required": true,
|
|
529
|
+
"desc": "Set to 'true' to tick the checkbox of nodes, otherwise 'false' unticks them"
|
|
525
530
|
}
|
|
526
531
|
}
|
|
527
532
|
}
|
|
@@ -223,11 +223,13 @@
|
|
|
223
223
|
"definition": {
|
|
224
224
|
"files": {
|
|
225
225
|
"type": "Array",
|
|
226
|
+
"required": true,
|
|
226
227
|
"desc": "Uploaded files",
|
|
227
228
|
"__exemption": [ "examples" ]
|
|
228
229
|
},
|
|
229
230
|
"xhr": {
|
|
230
231
|
"type": "Object",
|
|
232
|
+
"required": true,
|
|
231
233
|
"desc": "XMLHttpRequest that has been used to upload this batch of files",
|
|
232
234
|
"__exemption": [ "examples" ]
|
|
233
235
|
}
|
|
@@ -245,11 +247,13 @@
|
|
|
245
247
|
"definition": {
|
|
246
248
|
"files": {
|
|
247
249
|
"type": "Array",
|
|
250
|
+
"required": true,
|
|
248
251
|
"desc": "Files which encountered error",
|
|
249
252
|
"__exemption": [ "examples" ]
|
|
250
253
|
},
|
|
251
254
|
"xhr": {
|
|
252
255
|
"type": "Object",
|
|
256
|
+
"required": true,
|
|
253
257
|
"desc": "XMLHttpRequest that has been used to upload this batch of files",
|
|
254
258
|
"__exemption": [ "examples" ]
|
|
255
259
|
}
|
|
@@ -267,11 +271,13 @@
|
|
|
267
271
|
"definition": {
|
|
268
272
|
"files": {
|
|
269
273
|
"type": "Array",
|
|
274
|
+
"required": true,
|
|
270
275
|
"desc": "Files which are now uploading",
|
|
271
276
|
"__exemption": [ "examples" ]
|
|
272
277
|
},
|
|
273
278
|
"xhr": {
|
|
274
279
|
"type": "Object",
|
|
280
|
+
"required": true,
|
|
275
281
|
"desc": "XMLHttpRequest used for uploading",
|
|
276
282
|
"__exemption": [ "examples" ]
|
|
277
283
|
}
|
|
@@ -284,9 +290,8 @@
|
|
|
284
290
|
"desc": "Emitted when factory function is supplied with a Promise which is rejected",
|
|
285
291
|
"params": {
|
|
286
292
|
"err": {
|
|
287
|
-
"type": "
|
|
288
|
-
"desc": "Error
|
|
289
|
-
"__exemption": [ "examples" ]
|
|
293
|
+
"type": "Error",
|
|
294
|
+
"desc": "Error object which is the Promise rejection reason"
|
|
290
295
|
},
|
|
291
296
|
"files": {
|
|
292
297
|
"type": "Array",
|
|
@@ -72,26 +72,31 @@
|
|
|
72
72
|
"definition": {
|
|
73
73
|
"index": {
|
|
74
74
|
"type": "Number",
|
|
75
|
+
"required": true,
|
|
75
76
|
"desc": "Index of the list item that was scrolled into view (0 based)",
|
|
76
77
|
"examples": [ 30 ]
|
|
77
78
|
},
|
|
78
79
|
"from": {
|
|
79
80
|
"type": "Number",
|
|
81
|
+
"required": true,
|
|
80
82
|
"desc": "The index of the first list item that is rendered (0 based)",
|
|
81
83
|
"examples": [ 10 ]
|
|
82
84
|
},
|
|
83
85
|
"to": {
|
|
84
86
|
"type": "Number",
|
|
87
|
+
"required": true,
|
|
85
88
|
"desc": "The index of the last list item that is rendered (0 based)",
|
|
86
89
|
"examples": [ 50 ]
|
|
87
90
|
},
|
|
88
91
|
"direction": {
|
|
89
92
|
"type": "String",
|
|
93
|
+
"required": true,
|
|
90
94
|
"desc": "Direction of change",
|
|
91
95
|
"values": [ "increase", "decrease" ]
|
|
92
96
|
},
|
|
93
97
|
"ref": {
|
|
94
98
|
"type": "Object",
|
|
99
|
+
"required": true,
|
|
95
100
|
"desc": "Vue reference to the QVirtualList which triggered the event",
|
|
96
101
|
"__exemption": [
|
|
97
102
|
"examples"
|
|
@@ -9,14 +9,11 @@ export default function (attrs, vnode) {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
function update () {
|
|
12
|
-
const listeners = {}
|
|
13
12
|
const attributes = {}
|
|
13
|
+
const listeners = {}
|
|
14
14
|
|
|
15
15
|
Object.keys(attrs).forEach(key => {
|
|
16
|
-
if (listenerRE.test(key) ===
|
|
17
|
-
listeners[ key ] = attrs[ key ]
|
|
18
|
-
}
|
|
19
|
-
else if (key !== 'class' && key !== 'style') {
|
|
16
|
+
if (key !== 'class' && key !== 'style' && listenerRE.test(key) === false) {
|
|
20
17
|
attributes[ key ] = attrs[ key ]
|
|
21
18
|
}
|
|
22
19
|
})
|
|
@@ -27,8 +24,8 @@ export default function (attrs, vnode) {
|
|
|
27
24
|
}
|
|
28
25
|
})
|
|
29
26
|
|
|
30
|
-
acc.listeners.value = listeners
|
|
31
27
|
acc.attributes.value = attributes
|
|
28
|
+
acc.listeners.value = listeners
|
|
32
29
|
}
|
|
33
30
|
|
|
34
31
|
onBeforeUpdate(update)
|
|
@@ -27,9 +27,8 @@
|
|
|
27
27
|
},
|
|
28
28
|
|
|
29
29
|
"target": {
|
|
30
|
-
"type": "
|
|
31
|
-
"desc": "The DOM element that the mutation affected, depending on the mutation type"
|
|
32
|
-
"__exemption": [ "examples" ]
|
|
30
|
+
"type": "Element",
|
|
31
|
+
"desc": "The DOM element that the mutation affected, depending on the mutation type"
|
|
33
32
|
},
|
|
34
33
|
|
|
35
34
|
"addedNodes": {
|
|
@@ -8,9 +8,8 @@
|
|
|
8
8
|
"desc": "Function to call when scrolling and element comes into the viewport (use a non-function to disable)",
|
|
9
9
|
"params": {
|
|
10
10
|
"el": {
|
|
11
|
-
"type": "
|
|
12
|
-
"desc": "DOM element that scroll-fire is applied to"
|
|
13
|
-
"__exemption": [ "examples" ]
|
|
11
|
+
"type": "Element",
|
|
12
|
+
"desc": "DOM element that scroll-fire is applied to"
|
|
14
13
|
}
|
|
15
14
|
},
|
|
16
15
|
"returns": null,
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
},
|
|
18
18
|
|
|
19
19
|
"activeEl": {
|
|
20
|
-
"type": "
|
|
20
|
+
"type": [ "Element", "null" ],
|
|
21
21
|
"desc": "The DOM element used as root for fullscreen, otherwise 'null'",
|
|
22
|
-
"
|
|
22
|
+
"examples": [ "document.fullscreenElement", "null" ]
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"returns": {
|
|
37
|
-
"type": "Promise<
|
|
38
|
-
"desc": "A Promise with
|
|
37
|
+
"type": "Promise<void>",
|
|
38
|
+
"desc": "A Promise which is resolved when transitioned to fullscreen mode. It gets rejected with 'Not capable' if the browser is not capable, and with an Error object if something else went wrong.",
|
|
39
39
|
"examples": [
|
|
40
40
|
"request().then(response => { ... }).catch(err => { ... })"
|
|
41
41
|
]
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"exit": {
|
|
46
46
|
"desc": "Request exiting out of Fullscreen mode",
|
|
47
47
|
"returns": {
|
|
48
|
-
"type": "Promise<
|
|
49
|
-
"desc": "A Promise with
|
|
48
|
+
"type": "Promise<void>",
|
|
49
|
+
"desc": "A Promise which is resolved when exited out of fullscreen mode. It gets rejected with 'Not capable' if the browser is not capable, and with an Error object if something else went wrong.",
|
|
50
50
|
"examples": [
|
|
51
51
|
"exit().then(response => { ... }).catch(err => { ... })"
|
|
52
52
|
]
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
"returns": {
|
|
66
|
-
"type": "Promise<
|
|
67
|
-
"desc": "A Promise with
|
|
66
|
+
"type": "Promise<void>",
|
|
67
|
+
"desc": "A Promise which is resolved when transitioned to / exited out of fullscreen mode. It gets rejected with 'Not capable' if the browser is not capable, and with an Error object if something else went wrong.",
|
|
68
68
|
"examples": [
|
|
69
69
|
"toggle().then(response => { ... }).catch(err => { ... })"
|
|
70
70
|
]
|
package/src/plugins/Cookies.json
CHANGED
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
},
|
|
74
74
|
"sameSite": {
|
|
75
75
|
"type": "String",
|
|
76
|
-
"desc": "SameSite cookie option
|
|
77
|
-
"
|
|
76
|
+
"desc": "SameSite cookie option",
|
|
77
|
+
"values": [ "Lax", "Strict", "None" ]
|
|
78
78
|
},
|
|
79
79
|
"httpOnly": {
|
|
80
80
|
"type": "Boolean",
|
package/src/plugins/Dialog.json
CHANGED
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"definition": {
|
|
47
47
|
"model": {
|
|
48
48
|
"type": "String",
|
|
49
|
-
"desc": "The initial value of the input",
|
|
50
49
|
"required": true,
|
|
50
|
+
"desc": "The initial value of the input",
|
|
51
51
|
"__exemption": [ "examples" ]
|
|
52
52
|
},
|
|
53
53
|
|
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
"params": {
|
|
65
65
|
"val": {
|
|
66
66
|
"type": "String",
|
|
67
|
+
"required": true,
|
|
67
68
|
"desc": "The value of the input",
|
|
68
69
|
"__exemption": [ "examples" ]
|
|
69
70
|
}
|
|
@@ -151,8 +152,8 @@
|
|
|
151
152
|
"definition": {
|
|
152
153
|
"model": {
|
|
153
154
|
"type": [ "String", "Array" ],
|
|
154
|
-
"desc": "The value of the selection (String if it's of type radio or Array otherwise)",
|
|
155
155
|
"required": true,
|
|
156
|
+
"desc": "The value of the selection (String if it's of type radio or Array otherwise)",
|
|
156
157
|
"examples": [ "[]" ]
|
|
157
158
|
},
|
|
158
159
|
|
|
@@ -177,6 +178,7 @@
|
|
|
177
178
|
"params": {
|
|
178
179
|
"model": {
|
|
179
180
|
"type": [ "String", "Array" ],
|
|
181
|
+
"required": true,
|
|
180
182
|
"desc": "The current model (String if it's of type radio or Array otherwise)",
|
|
181
183
|
"examples": [
|
|
182
184
|
"opt2",
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"speed": {
|
|
24
24
|
"type": "Number",
|
|
25
25
|
"desc": "Delay (in milliseconds) between bar progress increments",
|
|
26
|
+
"default": 300,
|
|
26
27
|
"examples": [ 150 ]
|
|
27
28
|
}
|
|
28
29
|
}
|
|
@@ -46,11 +47,11 @@
|
|
|
46
47
|
"setDefaults": {
|
|
47
48
|
"desc": "Set the inner QAjaxBar's props",
|
|
48
49
|
"params": {
|
|
49
|
-
"
|
|
50
|
+
"props": {
|
|
50
51
|
"type": "Object",
|
|
51
|
-
"desc": "QAjaxBar component props",
|
|
52
52
|
"required": true,
|
|
53
|
-
"
|
|
53
|
+
"desc": "QAjaxBar component props",
|
|
54
|
+
"examples": [ "{ position: 'bottom', reverse: true }" ]
|
|
54
55
|
}
|
|
55
56
|
}
|
|
56
57
|
}
|
package/src/plugins/Notify.json
CHANGED
|
@@ -164,6 +164,7 @@
|
|
|
164
164
|
"params": {
|
|
165
165
|
"opts": {
|
|
166
166
|
"type": [ "Object", "String" ],
|
|
167
|
+
"required": true,
|
|
167
168
|
"desc": "Notification options",
|
|
168
169
|
"definition": {
|
|
169
170
|
"type": {
|
|
@@ -214,7 +215,7 @@
|
|
|
214
215
|
"spinner": {
|
|
215
216
|
"type": [ "Boolean", "Component" ],
|
|
216
217
|
"desc": "Useful for notifications that are updated; Displays a Quasar spinner instead of an avatar or icon; If value is Boolean 'true' then the default QSpinner is shown",
|
|
217
|
-
"
|
|
218
|
+
"examples": [ true, "QSpinnerBars" ]
|
|
218
219
|
},
|
|
219
220
|
|
|
220
221
|
"position": {
|
|
@@ -225,8 +226,7 @@
|
|
|
225
226
|
"top-left", "top-right",
|
|
226
227
|
"bottom-left", "bottom-right",
|
|
227
228
|
"top", "bottom", "left", "right", "center"
|
|
228
|
-
]
|
|
229
|
-
"examples": [ "top-right" ]
|
|
229
|
+
]
|
|
230
230
|
},
|
|
231
231
|
|
|
232
232
|
"group": {
|
|
@@ -251,8 +251,7 @@
|
|
|
251
251
|
"values": [
|
|
252
252
|
"top-left", "top-right",
|
|
253
253
|
"bottom-left", "bottom-right"
|
|
254
|
-
]
|
|
255
|
-
"examples": [ "bottom-right" ]
|
|
254
|
+
]
|
|
256
255
|
},
|
|
257
256
|
"badgeStyle": {
|
|
258
257
|
"type": [ "Array", "String", "Object" ],
|
|
@@ -339,9 +338,7 @@
|
|
|
339
338
|
"type": "Boolean",
|
|
340
339
|
"desc": "Ignore the default configuration (set by setDefaults()) for this instance only"
|
|
341
340
|
}
|
|
342
|
-
}
|
|
343
|
-
"required": true,
|
|
344
|
-
"__exemption": [ "examples" ]
|
|
341
|
+
}
|
|
345
342
|
}
|
|
346
343
|
},
|
|
347
344
|
"returns": {
|
|
@@ -350,6 +347,7 @@
|
|
|
350
347
|
"params": {
|
|
351
348
|
"props": {
|
|
352
349
|
"type": "Object",
|
|
350
|
+
"required": false,
|
|
353
351
|
"desc": "Notification properties that will be shallow merged to previous ones in order to update the non-grouped notification",
|
|
354
352
|
"definition": {
|
|
355
353
|
"type": {
|
|
@@ -483,6 +481,7 @@
|
|
|
483
481
|
"params": {
|
|
484
482
|
"opts": {
|
|
485
483
|
"type": "Object",
|
|
484
|
+
"required": true,
|
|
486
485
|
"desc": "Notification options",
|
|
487
486
|
"definition": {
|
|
488
487
|
"type": {
|
|
@@ -607,8 +606,7 @@
|
|
|
607
606
|
"attrs": {
|
|
608
607
|
"type": "Object",
|
|
609
608
|
"desc": "Key-value for attributes to be set on the notification",
|
|
610
|
-
"examples": [ "{ role: 'alertdialog' }" ]
|
|
611
|
-
"__exemption": [ "definition" ]
|
|
609
|
+
"examples": [ "{ role: 'alertdialog' }" ]
|
|
612
610
|
},
|
|
613
611
|
|
|
614
612
|
"timeout": {
|
|
@@ -646,9 +644,7 @@
|
|
|
646
644
|
"type": "Boolean",
|
|
647
645
|
"desc": "Put notification into multi-line mode; If this prop isn't used and more than one 'action' is specified then notification goes into multi-line mode by default"
|
|
648
646
|
}
|
|
649
|
-
}
|
|
650
|
-
"required": true,
|
|
651
|
-
"__exemption": [ "examples" ]
|
|
647
|
+
}
|
|
652
648
|
}
|
|
653
649
|
}
|
|
654
650
|
},
|
|
@@ -658,13 +654,14 @@
|
|
|
658
654
|
"params": {
|
|
659
655
|
"typeName": {
|
|
660
656
|
"type": "String",
|
|
661
|
-
"desc": "Name of the type (to be used as 'type' prop later on)",
|
|
662
657
|
"required": true,
|
|
658
|
+
"desc": "Name of the type (to be used as 'type' prop later on)",
|
|
663
659
|
"examples": [ "my-type" ]
|
|
664
660
|
},
|
|
665
661
|
|
|
666
662
|
"typeOpts": {
|
|
667
663
|
"type": "Object",
|
|
664
|
+
"required": true,
|
|
668
665
|
"desc": "Notification options",
|
|
669
666
|
"definition": {
|
|
670
667
|
"type": {
|
|
@@ -789,8 +786,7 @@
|
|
|
789
786
|
"attrs": {
|
|
790
787
|
"type": "Object",
|
|
791
788
|
"desc": "Key-value for attributes to be set on the notification",
|
|
792
|
-
"examples": [ "{ role: 'alertdialog' }" ]
|
|
793
|
-
"__exemption": [ "definition" ]
|
|
789
|
+
"examples": [ "{ role: 'alertdialog' }" ]
|
|
794
790
|
},
|
|
795
791
|
|
|
796
792
|
"timeout": {
|
|
@@ -828,9 +824,7 @@
|
|
|
828
824
|
"type": "Boolean",
|
|
829
825
|
"desc": "Put notification into multi-line mode; If this prop isn't used and more than one 'action' is specified then notification goes into multi-line mode by default"
|
|
830
826
|
}
|
|
831
|
-
}
|
|
832
|
-
"required": true,
|
|
833
|
-
"__exemption": [ "examples" ]
|
|
827
|
+
}
|
|
834
828
|
}
|
|
835
829
|
}
|
|
836
830
|
}
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"definition": {
|
|
30
30
|
"onOk": {
|
|
31
31
|
"type": "Function",
|
|
32
|
+
"required": true,
|
|
32
33
|
"desc": "Receives a Function param to tell what to do when OK is pressed / option is selected",
|
|
33
34
|
"params": {
|
|
34
35
|
"callbackFn": {
|
|
@@ -57,6 +58,7 @@
|
|
|
57
58
|
|
|
58
59
|
"onCancel": {
|
|
59
60
|
"type": "Function",
|
|
61
|
+
"required": true,
|
|
60
62
|
"desc": "Receives a Function as param to tell what to do when Cancel is pressed / dialog is dismissed",
|
|
61
63
|
"params": {
|
|
62
64
|
"callbackFn": {
|
|
@@ -77,6 +79,7 @@
|
|
|
77
79
|
|
|
78
80
|
"onDismiss": {
|
|
79
81
|
"type": "Function",
|
|
82
|
+
"required": true,
|
|
80
83
|
"desc": "Receives a Function param to tell what to do when the dialog is closed",
|
|
81
84
|
"params": {
|
|
82
85
|
"callbackFn": {
|
|
@@ -97,6 +100,7 @@
|
|
|
97
100
|
|
|
98
101
|
"hide": {
|
|
99
102
|
"type": "Function",
|
|
103
|
+
"required": true,
|
|
100
104
|
"desc": "Hides the dialog when called",
|
|
101
105
|
"params": null,
|
|
102
106
|
"returns": {
|
|
@@ -109,10 +113,12 @@
|
|
|
109
113
|
|
|
110
114
|
"update": {
|
|
111
115
|
"type": "Function",
|
|
116
|
+
"required": true,
|
|
112
117
|
"desc": "Updates the initial properties (given as create() param) except for 'component'",
|
|
113
118
|
"params": {
|
|
114
119
|
"opts": {
|
|
115
120
|
"type": "Object",
|
|
121
|
+
"required": true,
|
|
116
122
|
"desc": "Props (except 'component') which will overwrite the initial create() params; If create() was invoked with a custom dialog component then this param should contain the new componentProps",
|
|
117
123
|
"__exemption": [ "examples" ]
|
|
118
124
|
}
|