quasar 2.3.0 → 2.3.4
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 +23 -2
- package/dist/api/Cookies.json +4 -3
- package/dist/api/Dialog.json +41 -12
- package/dist/api/Loading.json +4 -2
- package/dist/api/LoadingBar.json +8 -3
- package/dist/api/LocalStorage.json +8 -0
- 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 +11 -6
- 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 +79 -5
- package/dist/api/QDialog.json +8 -4
- package/dist/api/QDrawer.json +10 -5
- package/dist/api/QEditor.json +17 -7
- package/dist/api/QExpansionItem.json +5 -3
- package/dist/api/QFab.json +11 -6
- package/dist/api/QFabAction.json +4 -2
- package/dist/api/QField.json +2 -1
- package/dist/api/QFile.json +7 -2
- package/dist/api/QFooter.json +3 -2
- package/dist/api/QForm.json +1 -1
- package/dist/api/QHeader.json +5 -3
- 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 +17 -1
- 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 +7 -4
- package/dist/api/QRange.json +8 -4
- package/dist/api/QRating.json +5 -2
- package/dist/api/QResizeObserver.json +4 -1
- package/dist/api/QRouteTab.json +5 -26
- package/dist/api/QScrollArea.json +32 -6
- package/dist/api/QScrollObserver.json +13 -1
- package/dist/api/QSelect.json +141 -47
- 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 +216 -93
- 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 +34 -19
- package/dist/api/QUploader.json +93 -5
- package/dist/api/QVirtualScroll.json +26 -11
- package/dist/api/ScrollFire.json +1 -1
- package/dist/api/SessionStorage.json +8 -0
- 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 +6 -0
- 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 +8 -1
- package/dist/quasar.esm.prod.js +2 -2
- package/dist/quasar.prod.css +1 -1
- package/dist/quasar.rtl.css +13 -1
- package/dist/quasar.rtl.prod.css +1 -1
- package/dist/quasar.sass +40 -35
- package/dist/quasar.umd.js +74 -48
- 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/composables.d.ts +5 -1
- package/dist/types/extras/icon-set.d.ts +1 -0
- package/dist/types/index.d.ts +519 -192
- package/dist/vetur/quasar-attributes.json +7 -3
- package/dist/vetur/quasar-tags.json +1 -0
- package/dist/web-types/web-types.json +26 -12
- package/icon-set/svg-ionicons-v6.js +225 -0
- package/package.json +5 -2
- package/src/body.js +14 -4
- package/src/components/btn/QBtn.js +1 -0
- package/src/components/btn-dropdown/QBtnDropdown.json +1 -0
- package/src/components/chip/QChip.json +1 -2
- package/src/components/circular-progress/QCircularProgress.json +1 -1
- package/src/components/date/QDate.json +59 -1
- package/src/components/editor/QEditor.js +2 -2
- package/src/components/editor/QEditor.json +6 -2
- package/src/components/expansion-item/QExpansionItem.json +2 -1
- package/src/components/fab/QFab.json +3 -1
- package/src/components/field/QField.json +3 -3
- package/src/components/file/QFile.json +9 -6
- package/src/components/footer/QFooter.json +1 -1
- package/src/components/form/QForm.json +2 -3
- package/src/components/header/QHeader.json +1 -1
- package/src/components/icon/QIcon.js +2 -2
- package/src/components/intersection/QIntersection.js +9 -1
- package/src/components/intersection/QIntersection.json +9 -0
- package/src/components/layout/QLayout.json +8 -1
- package/src/components/linear-progress/QLinearProgress.js +3 -2
- package/src/components/linear-progress/QLinearProgress.json +1 -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/popup-proxy/QPopupProxy.json +2 -1
- package/src/components/rating/QRating.json +1 -1
- package/src/components/resize-observer/QResizeObserver.json +2 -0
- package/src/components/scroll-area/QScrollArea.js +8 -13
- package/src/components/scroll-area/QScrollArea.json +33 -10
- package/src/components/scroll-observer/QScrollObserver.json +11 -0
- package/src/components/select/QSelect.js +7 -3
- package/src/components/select/QSelect.json +88 -15
- package/src/components/slide-item/QSlideItem.json +9 -0
- package/src/components/slider/use-slider.js +3 -3
- package/src/components/table/QTable.js +1 -1
- package/src/components/table/QTable.json +155 -60
- package/src/components/table/table-pagination.js +4 -0
- package/src/components/tabs/QRouteTab.json +1 -23
- package/src/components/time/QTime.json +8 -0
- package/src/components/tree/QTree.json +26 -21
- package/src/components/tree/QTree.sass +45 -41
- package/src/components/uploader/xhr-uploader-plugin.json +105 -4
- package/src/components/virtual-scroll/QVirtualScroll.json +15 -0
- package/src/components/virtual-scroll/use-virtual-scroll.json +7 -5
- package/src/composables/private/use-field.js +4 -4
- package/src/composables/private/use-refocus-target.js +12 -3
- package/src/composables/private/use-split-attrs.js +10 -7
- package/src/composables/use-dialog-plugin-component.js +1 -0
- package/src/css/core/transitions.sass +3 -1
- package/src/directives/Mutation.json +2 -3
- package/src/directives/ScrollFire.json +2 -3
- package/src/install-quasar.js +1 -0
- package/src/plugins/AppFullscreen.json +8 -8
- package/src/plugins/Cookies.json +2 -2
- package/src/plugins/Dialog.json +6 -5
- package/src/plugins/LoadingBar.json +4 -3
- package/src/plugins/Notify.json +13 -19
- package/src/utils/private/global-dialog.json +16 -2
- package/src/utils/private/web-storage.json +10 -0
- package/wrappers/index.js +4 -0
|
@@ -2,27 +2,30 @@ import { ref, onBeforeUpdate } from 'vue'
|
|
|
2
2
|
|
|
3
3
|
const listenerRE = /^on[A-Z]/
|
|
4
4
|
|
|
5
|
-
export default function (attrs) {
|
|
5
|
+
export default function (attrs, vnode) {
|
|
6
6
|
const acc = {
|
|
7
7
|
listeners: ref({}),
|
|
8
8
|
attributes: ref({})
|
|
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
|
})
|
|
23
20
|
|
|
24
|
-
|
|
21
|
+
Object.keys(vnode.props).forEach(key => {
|
|
22
|
+
if (listenerRE.test(key) === true) {
|
|
23
|
+
listeners[ key ] = vnode.props[ key ]
|
|
24
|
+
}
|
|
25
|
+
})
|
|
26
|
+
|
|
25
27
|
acc.attributes.value = attributes
|
|
28
|
+
acc.listeners.value = listeners
|
|
26
29
|
}
|
|
27
30
|
|
|
28
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,
|
package/src/install-quasar.js
CHANGED
|
@@ -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",
|
|
@@ -304,9 +306,8 @@
|
|
|
304
306
|
},
|
|
305
307
|
|
|
306
308
|
"component": {
|
|
307
|
-
"type": "
|
|
308
|
-
"desc": "Use custom dialog component; use along with 'componentProps' prop where possible"
|
|
309
|
-
"__exemption": [ "examples" ]
|
|
309
|
+
"type": "Component",
|
|
310
|
+
"desc": "Use custom dialog component; use along with 'componentProps' prop where possible"
|
|
310
311
|
},
|
|
311
312
|
|
|
312
313
|
"componentProps": {
|
|
@@ -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,14 +29,23 @@
|
|
|
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": {
|
|
35
36
|
"type": "Function",
|
|
36
37
|
"desc": "Tell what to do",
|
|
37
38
|
"required": true,
|
|
38
|
-
"params":
|
|
39
|
-
|
|
39
|
+
"params": {
|
|
40
|
+
"payload": {
|
|
41
|
+
"type": "Any",
|
|
42
|
+
"desc": "The payload if called onDialogOK with the parameter or emitted one with the 'ok' event",
|
|
43
|
+
"required": false,
|
|
44
|
+
"examples": [ "'Quasar Framework'", "[ 1, 2, 6, 3 ]", "{ book: { id: 1, name: 'Lorem Ipsum' }, user: { name: 'Lorem J. Ipsum', role: 'admin' } }" ]
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"returns": null,
|
|
48
|
+
"examples": [ "() => console.log('OK!')", "(payload) => Notify.create({ type: 'positive', message: `Successfully saved '${payload.book.name}' book!` })" ]
|
|
40
49
|
}
|
|
41
50
|
},
|
|
42
51
|
"returns": {
|
|
@@ -49,6 +58,7 @@
|
|
|
49
58
|
|
|
50
59
|
"onCancel": {
|
|
51
60
|
"type": "Function",
|
|
61
|
+
"required": true,
|
|
52
62
|
"desc": "Receives a Function as param to tell what to do when Cancel is pressed / dialog is dismissed",
|
|
53
63
|
"params": {
|
|
54
64
|
"callbackFn": {
|
|
@@ -69,6 +79,7 @@
|
|
|
69
79
|
|
|
70
80
|
"onDismiss": {
|
|
71
81
|
"type": "Function",
|
|
82
|
+
"required": true,
|
|
72
83
|
"desc": "Receives a Function param to tell what to do when the dialog is closed",
|
|
73
84
|
"params": {
|
|
74
85
|
"callbackFn": {
|
|
@@ -89,6 +100,7 @@
|
|
|
89
100
|
|
|
90
101
|
"hide": {
|
|
91
102
|
"type": "Function",
|
|
103
|
+
"required": true,
|
|
92
104
|
"desc": "Hides the dialog when called",
|
|
93
105
|
"params": null,
|
|
94
106
|
"returns": {
|
|
@@ -101,10 +113,12 @@
|
|
|
101
113
|
|
|
102
114
|
"update": {
|
|
103
115
|
"type": "Function",
|
|
116
|
+
"required": true,
|
|
104
117
|
"desc": "Updates the initial properties (given as create() param) except for 'component'",
|
|
105
118
|
"params": {
|
|
106
119
|
"opts": {
|
|
107
120
|
"type": "Object",
|
|
121
|
+
"required": true,
|
|
108
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",
|
|
109
123
|
"__exemption": [ "examples" ]
|
|
110
124
|
}
|
|
@@ -118,6 +118,16 @@
|
|
|
118
118
|
"type": [ "Date", "RegExp", "Number", "Boolean", "Function", "Object", "Array", "String", "null" ],
|
|
119
119
|
"desc": "Entry value",
|
|
120
120
|
"required": true,
|
|
121
|
+
"params": {
|
|
122
|
+
"...params": {
|
|
123
|
+
"type": "Any",
|
|
124
|
+
"__exemption": [ "desc", "examples" ]
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"returns": {
|
|
128
|
+
"type": "Any",
|
|
129
|
+
"__exemption": [ "desc", "examples" ]
|
|
130
|
+
},
|
|
121
131
|
"examples": [ "john12" ]
|
|
122
132
|
}
|
|
123
133
|
}
|
package/wrappers/index.js
CHANGED