quasar 2.14.5 → 2.14.6
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/AddressbarColor.json +1 -22
- package/dist/api/AppFullscreen.json +1 -78
- package/dist/api/AppVisibility.json +1 -15
- package/dist/api/BottomSheet.json +1 -264
- package/dist/api/Brand.json +1 -49
- package/dist/api/ClosePopup.json +1 -21
- package/dist/api/Cookies.json +1 -190
- package/dist/api/Dark.json +1 -63
- package/dist/api/Dialog.json +1 -479
- package/dist/api/Intersection.json +1 -204
- package/dist/api/Lang.json +1 -18
- package/dist/api/Loading.json +1 -317
- package/dist/api/LoadingBar.json +1 -62
- package/dist/api/LocalStorage.json +1 -187
- package/dist/api/Meta.json +1 -6
- package/dist/api/Morph.json +1 -188
- package/dist/api/Mutation.json +1 -122
- package/dist/api/Notify.json +1 -697
- package/dist/api/Platform.json +1 -238
- package/dist/api/QAjaxBar.json +1 -117
- package/dist/api/QAvatar.json +1 -76
- package/dist/api/QBadge.json +1 -82
- package/dist/api/QBanner.json +1 -44
- package/dist/api/QBar.json +1 -28
- package/dist/api/QBreadcrumbs.json +1 -82
- package/dist/api/QBreadcrumbsEl.json +1 -162
- package/dist/api/QBtn.json +1 -354
- package/dist/api/QBtnDropdown.json +1 -560
- package/dist/api/QBtnGroup.json +1 -59
- package/dist/api/QBtnToggle.json +1 -263
- package/dist/api/QCard.json +1 -51
- package/dist/api/QCardActions.json +1 -34
- package/dist/api/QCardSection.json +1 -31
- package/dist/api/QCarousel.json +1 -421
- package/dist/api/QCarouselControl.json +1 -41
- package/dist/api/QCarouselSlide.json +1 -44
- package/dist/api/QChatMessage.json +1 -128
- package/dist/api/QCheckbox.json +1 -211
- package/dist/api/QChip.json +1 -232
- package/dist/api/QCircularProgress.json +1 -145
- package/dist/api/QColor.json +1 -150
- package/dist/api/QDate.json +1 -637
- package/dist/api/QDialog.json +1 -259
- package/dist/api/QDrawer.json +1 -272
- package/dist/api/QEditor.json +1 -485
- package/dist/api/QExpansionItem.json +1 -434
- package/dist/api/QFab.json +1 -352
- package/dist/api/QFabAction.json +1 -241
- package/dist/api/QField.json +1 -448
- package/dist/api/QFile.json +1 -643
- package/dist/api/QFooter.json +1 -60
- package/dist/api/QForm.json +1 -112
- package/dist/api/QFormChildMixin.json +1 -24
- package/dist/api/QHeader.json +1 -67
- package/dist/api/QIcon.json +1 -69
- package/dist/api/QImg.json +1 -279
- package/dist/api/QInfiniteScroll.json +1 -116
- package/dist/api/QInnerLoading.json +1 -117
- package/dist/api/QInput.json +1 -521
- package/dist/api/QIntersection.json +1 -112
- package/dist/api/QItem.json +1 -203
- package/dist/api/QItemLabel.json +1 -36
- package/dist/api/QItemSection.json +1 -38
- package/dist/api/QKnob.json +1 -197
- package/dist/api/QLayout.json +1 -100
- package/dist/api/QLinearProgress.json +1 -113
- package/dist/api/QList.json +1 -58
- package/dist/api/QMarkupTable.json +1 -64
- package/dist/api/QMenu.json +1 -337
- package/dist/api/QNoSsr.json +1 -38
- package/dist/api/QOptionGroup.json +1 -242
- package/dist/api/QPage.json +1 -42
- package/dist/api/QPageContainer.json +1 -11
- package/dist/api/QPageScroller.json +1 -68
- package/dist/api/QPageSticky.json +1 -44
- package/dist/api/QPagination.json +1 -376
- package/dist/api/QParallax.json +1 -74
- package/dist/api/QPopupEdit.json +1 -335
- package/dist/api/QPopupProxy.json +1 -168
- package/dist/api/QPullToRefresh.json +1 -91
- package/dist/api/QRadio.json +1 -163
- package/dist/api/QRange.json +1 -789
- package/dist/api/QRating.json +1 -186
- package/dist/api/QResizeObserver.json +1 -56
- package/dist/api/QResponsive.json +1 -26
- package/dist/api/QRouteTab.json +1 -225
- package/dist/api/QScrollArea.json +1 -354
- package/dist/api/QScrollObserver.json +1 -140
- package/dist/api/QSelect.json +1 -1387
- package/dist/api/QSeparator.json +1 -72
- package/dist/api/QSkeleton.json +1 -127
- package/dist/api/QSlideItem.json +1 -219
- package/dist/api/QSlideTransition.json +1 -33
- package/dist/api/QSlider.json +1 -687
- package/dist/api/QSpace.json +1 -6
- package/dist/api/QSpinner.json +1 -37
- package/dist/api/QSpinnerAudio.json +1 -30
- package/dist/api/QSpinnerBall.json +1 -30
- package/dist/api/QSpinnerBars.json +1 -30
- package/dist/api/QSpinnerBox.json +1 -30
- package/dist/api/QSpinnerClock.json +1 -30
- package/dist/api/QSpinnerComment.json +1 -30
- package/dist/api/QSpinnerCube.json +1 -30
- package/dist/api/QSpinnerDots.json +1 -30
- package/dist/api/QSpinnerFacebook.json +1 -30
- package/dist/api/QSpinnerGears.json +1 -30
- package/dist/api/QSpinnerGrid.json +1 -30
- package/dist/api/QSpinnerHearts.json +1 -30
- package/dist/api/QSpinnerHourglass.json +1 -30
- package/dist/api/QSpinnerInfinity.json +1 -30
- package/dist/api/QSpinnerIos.json +1 -30
- package/dist/api/QSpinnerOrbit.json +1 -30
- package/dist/api/QSpinnerOval.json +1 -30
- package/dist/api/QSpinnerPie.json +1 -30
- package/dist/api/QSpinnerPuff.json +1 -30
- package/dist/api/QSpinnerRadio.json +1 -30
- package/dist/api/QSpinnerRings.json +1 -30
- package/dist/api/QSpinnerTail.json +1 -30
- package/dist/api/QSplitter.json +1 -146
- package/dist/api/QStep.json +1 -167
- package/dist/api/QStepper.json +1 -340
- package/dist/api/QStepperNavigation.json +1 -11
- package/dist/api/QTab.json +1 -113
- package/dist/api/QTabPanel.json +1 -39
- package/dist/api/QTabPanels.json +1 -203
- package/dist/api/QTable.json +1 -2799
- package/dist/api/QTabs.json +1 -179
- package/dist/api/QTd.json +1 -31
- package/dist/api/QTh.json +1 -26
- package/dist/api/QTime.json +1 -317
- package/dist/api/QTimeline.json +1 -57
- package/dist/api/QTimelineEntry.json +1 -105
- package/dist/api/QToggle.json +1 -230
- package/dist/api/QToolbar.json +1 -18
- package/dist/api/QToolbarTitle.json +1 -18
- package/dist/api/QTooltip.json +1 -282
- package/dist/api/QTr.json +1 -26
- package/dist/api/QTree.json +1 -599
- package/dist/api/QUploader.json +1 -665
- package/dist/api/QUploaderAddTrigger.json +1 -6
- package/dist/api/QVideo.json +1 -83
- package/dist/api/QVirtualScroll.json +1 -260
- package/dist/api/Ripple.json +1 -115
- package/dist/api/Screen.json +1 -190
- package/dist/api/Scroll.json +1 -28
- package/dist/api/ScrollFire.json +1 -24
- package/dist/api/SessionStorage.json +1 -187
- package/dist/api/TouchHold.json +1 -81
- package/dist/api/TouchPan.json +1 -178
- package/dist/api/TouchRepeat.json +1 -142
- package/dist/api/TouchSwipe.json +1 -113
- package/dist/icon-set/bootstrap-icons.umd.prod.js +3 -2
- package/dist/icon-set/eva-icons.umd.prod.js +3 -2
- package/dist/icon-set/fontawesome-v5-pro.umd.prod.js +3 -2
- package/dist/icon-set/fontawesome-v5.umd.prod.js +3 -2
- package/dist/icon-set/fontawesome-v6-pro.umd.prod.js +3 -2
- package/dist/icon-set/fontawesome-v6.umd.prod.js +3 -2
- package/dist/icon-set/ionicons-v4.umd.prod.js +3 -2
- package/dist/icon-set/line-awesome.umd.prod.js +3 -2
- package/dist/icon-set/material-icons-outlined.umd.prod.js +3 -2
- package/dist/icon-set/material-icons-round.umd.prod.js +3 -2
- package/dist/icon-set/material-icons-sharp.umd.prod.js +3 -2
- package/dist/icon-set/material-icons.umd.prod.js +3 -2
- package/dist/icon-set/material-symbols-outlined.umd.prod.js +3 -2
- package/dist/icon-set/material-symbols-rounded.umd.prod.js +3 -2
- package/dist/icon-set/material-symbols-sharp.umd.prod.js +3 -2
- package/dist/icon-set/mdi-v3.umd.prod.js +3 -2
- package/dist/icon-set/mdi-v4.umd.prod.js +3 -2
- package/dist/icon-set/mdi-v5.umd.prod.js +3 -2
- package/dist/icon-set/mdi-v6.umd.prod.js +3 -2
- package/dist/icon-set/mdi-v7.umd.prod.js +3 -2
- package/dist/icon-set/svg-bootstrap-icons.umd.prod.js +3 -2
- package/dist/icon-set/svg-eva-icons.umd.prod.js +3 -2
- package/dist/icon-set/svg-fontawesome-v5.umd.prod.js +3 -2
- package/dist/icon-set/svg-fontawesome-v6.umd.prod.js +3 -2
- package/dist/icon-set/svg-ionicons-v4.umd.prod.js +3 -2
- package/dist/icon-set/svg-ionicons-v5.umd.prod.js +3 -2
- package/dist/icon-set/svg-ionicons-v6.umd.prod.js +3 -2
- package/dist/icon-set/svg-line-awesome.umd.prod.js +3 -2
- package/dist/icon-set/svg-material-icons-outlined.umd.prod.js +3 -2
- package/dist/icon-set/svg-material-icons-round.umd.prod.js +3 -2
- package/dist/icon-set/svg-material-icons-sharp.umd.prod.js +3 -2
- package/dist/icon-set/svg-material-icons.umd.prod.js +3 -2
- package/dist/icon-set/svg-material-symbols-outlined.umd.prod.js +3 -2
- package/dist/icon-set/svg-material-symbols-rounded.umd.prod.js +3 -2
- package/dist/icon-set/svg-material-symbols-sharp.umd.prod.js +3 -2
- package/dist/icon-set/svg-mdi-v6.umd.prod.js +3 -2
- package/dist/icon-set/svg-mdi-v7.umd.prod.js +3 -2
- package/dist/icon-set/svg-themify.umd.prod.js +3 -2
- package/dist/icon-set/themify.umd.prod.js +3 -2
- package/dist/lang/ar-TN.umd.prod.js +3 -2
- package/dist/lang/ar.umd.prod.js +3 -2
- package/dist/lang/az-Latn.umd.prod.js +3 -2
- package/dist/lang/bg.umd.prod.js +3 -2
- package/dist/lang/bn.umd.prod.js +3 -2
- package/dist/lang/ca.umd.prod.js +3 -2
- package/dist/lang/cs.umd.prod.js +3 -2
- package/dist/lang/da.umd.prod.js +3 -2
- package/dist/lang/de-CH.umd.prod.js +3 -2
- package/dist/lang/de-DE.umd.prod.js +3 -2
- package/dist/lang/de.umd.prod.js +3 -2
- package/dist/lang/el.umd.prod.js +3 -2
- package/dist/lang/en-GB.umd.prod.js +3 -2
- package/dist/lang/en-US.umd.prod.js +3 -2
- package/dist/lang/eo.umd.prod.js +3 -2
- package/dist/lang/es.umd.prod.js +3 -2
- package/dist/lang/et.umd.prod.js +3 -2
- package/dist/lang/eu.umd.prod.js +3 -2
- package/dist/lang/fa-IR.umd.prod.js +3 -2
- package/dist/lang/fa.umd.prod.js +3 -2
- package/dist/lang/fi.umd.prod.js +3 -2
- package/dist/lang/fr.umd.prod.js +3 -2
- package/dist/lang/gn.umd.prod.js +3 -2
- package/dist/lang/he.umd.prod.js +3 -2
- package/dist/lang/hi.umd.prod.js +3 -2
- package/dist/lang/hr.umd.prod.js +3 -2
- package/dist/lang/hu.umd.prod.js +3 -2
- package/dist/lang/id.umd.prod.js +3 -2
- package/dist/lang/is.umd.prod.js +3 -2
- package/dist/lang/it.umd.prod.js +3 -2
- package/dist/lang/ja.umd.prod.js +3 -2
- package/dist/lang/kk.umd.prod.js +3 -2
- package/dist/lang/km.umd.prod.js +3 -2
- package/dist/lang/ko-KR.umd.prod.js +3 -2
- package/dist/lang/kur-CKB.umd.prod.js +3 -2
- package/dist/lang/lt.umd.prod.js +3 -2
- package/dist/lang/lu.umd.prod.js +3 -2
- package/dist/lang/lv.umd.prod.js +3 -2
- package/dist/lang/mk.umd.prod.js +3 -2
- package/dist/lang/ml.umd.prod.js +3 -2
- package/dist/lang/mm.umd.prod.js +3 -2
- package/dist/lang/ms.umd.prod.js +3 -2
- package/dist/lang/my.umd.prod.js +3 -2
- package/dist/lang/nb-NO.umd.prod.js +3 -2
- package/dist/lang/nl.umd.prod.js +3 -2
- package/dist/lang/pl.umd.prod.js +3 -2
- package/dist/lang/pt-BR.umd.prod.js +3 -2
- package/dist/lang/pt.umd.prod.js +3 -2
- package/dist/lang/ro.umd.prod.js +3 -2
- package/dist/lang/ru.umd.prod.js +3 -2
- package/dist/lang/sk.umd.prod.js +3 -2
- package/dist/lang/sl.umd.prod.js +3 -2
- package/dist/lang/sm.umd.prod.js +3 -2
- package/dist/lang/sr-CYR.umd.prod.js +3 -2
- package/dist/lang/sr.umd.prod.js +3 -2
- package/dist/lang/sv.umd.prod.js +3 -2
- package/dist/lang/ta.umd.prod.js +3 -2
- package/dist/lang/th.umd.prod.js +3 -2
- package/dist/lang/tl.umd.prod.js +7 -0
- package/dist/lang/tr.umd.prod.js +3 -2
- package/dist/lang/ug.umd.prod.js +3 -2
- package/dist/lang/uk.umd.prod.js +3 -2
- package/dist/lang/uz-Cyrl.umd.prod.js +3 -2
- package/dist/lang/uz-Latn.umd.prod.js +3 -2
- package/dist/lang/vi.umd.prod.js +3 -2
- package/dist/lang/zh-CN.umd.prod.js +3 -2
- package/dist/lang/zh-TW.umd.prod.js +3 -2
- package/dist/quasar.addon.prod.css +1 -1
- package/dist/quasar.addon.rtl.prod.css +1 -1
- package/dist/quasar.cjs.prod.js +123 -2
- package/dist/quasar.esm.js +16928 -26277
- package/dist/quasar.esm.prod.js +123 -2
- package/dist/quasar.prod.css +1 -1
- package/dist/quasar.rtl.prod.css +1 -1
- package/dist/quasar.sass +1 -1
- package/dist/quasar.umd.js +16732 -26521
- package/dist/quasar.umd.prod.js +123 -2
- package/dist/transforms/api-list.json +1 -153
- package/dist/transforms/auto-import.json +1 -267
- package/dist/transforms/import-map.json +1 -181
- package/dist/transforms/loader-asset-urls.json +1 -60
- package/dist/types/api/dialog.d.ts +1 -1
- package/dist/types/api/qinput.d.ts +1 -1
- package/dist/types/api/qtable.d.ts +1 -1
- package/dist/types/api/qtree.d.ts +1 -1
- package/dist/types/api/quploader.d.ts +1 -1
- package/dist/types/api/validation.d.ts +1 -1
- package/dist/types/api/web-storage.d.ts +6 -6
- package/dist/types/feature-flag.d.ts +1 -1
- package/dist/types/globals.d.ts +22 -15
- package/dist/types/index.d.ts +45 -36
- package/dist/types/lang.d.ts +3 -3
- package/dist/types/plugin.d.ts +3 -1
- package/dist/types/ts-helpers.d.ts +3 -3
- package/dist/types/utils/colors.d.ts +1 -1
- package/dist/types/utils/date.d.ts +10 -10
- package/dist/types/utils/dom.d.ts +1 -1
- package/dist/types/utils/run-sequential-promises.d.ts +12 -12
- package/dist/types/utils/scroll.d.ts +5 -5
- package/dist/types/utils.d.ts +15 -13
- package/dist/vetur/quasar-attributes.json +1 -5890
- package/dist/vetur/quasar-tags.json +1 -2084
- package/dist/web-types/web-types.json +1 -19595
- package/lang/index.json +1 -266
- package/lang/tl.js +98 -0
- package/lang/tl.mjs +93 -0
- package/package.json +14 -18
- package/src/body.js +6 -14
- package/src/components/ajax-bar/QAjaxBar.js +1 -1
- package/src/components/breadcrumbs/QBreadcrumbs.js +1 -1
- package/src/components/btn/QBtn.js +6 -6
- package/src/components/btn-dropdown/QBtnDropdown.json +1 -1
- package/src/components/checkbox/use-checkbox.js +1 -1
- package/src/components/chip/QChip.js +1 -1
- package/src/components/color/QColor.js +4 -4
- package/src/components/date/QDate.js +1 -1
- package/src/components/dialog/__tests__/DialogWrapper.vue +33 -0
- package/src/components/dialog/__tests__/QDialog.cy.js +450 -36
- package/src/components/drawer/QDrawer.js +1 -1
- package/src/components/drawer/QDrawer.json +1 -1
- package/src/components/file/QFile.js +2 -2
- package/src/components/footer/QFooter.js +2 -2
- package/src/components/form/QForm.js +3 -3
- package/src/components/header/QHeader.js +1 -1
- package/src/components/img/QImg.js +47 -39
- package/src/components/img/QImg.json +9 -0
- package/src/components/input/use-mask.js +3 -3
- package/src/components/menu/QMenu.json +1 -1
- package/src/components/page-sticky/use-page-sticky.js +4 -4
- package/src/components/popup-edit/QPopupEdit.js +1 -1
- package/src/components/scroll-area/QScrollArea.js +1 -1
- package/src/components/select/QSelect.js +9 -9
- package/src/components/table/QTd.js +1 -1
- package/src/components/table/QTh.js +1 -1
- package/src/components/tabs/QTabs.js +3 -3
- package/src/components/time/QTime.js +3 -3
- package/src/components/tooltip/QTooltip.js +4 -2
- package/src/components/tooltip/QTooltip.json +6 -0
- package/src/components/tree/QTree.js +1 -1
- package/src/components/uploader/uploader-core.js +2 -2
- package/src/components/uploader/xhr-uploader-plugin.js +1 -1
- package/src/components/virtual-scroll/use-virtual-scroll.js +3 -3
- package/src/composables/private/__tests__/use-model-toggle.cy.js +43 -3
- package/src/composables/private/use-anchor.js +1 -1
- package/src/composables/private/use-key-composition.js +1 -1
- package/src/composables/private/use-panel.js +1 -1
- package/src/composables/private/use-portal.js +1 -1
- package/src/composables/private/use-router-link.js +1 -1
- package/src/directives/TouchPan.js +1 -1
- package/src/history.js +1 -1
- package/src/index.umd.js +5 -1
- package/src/lang.js +1 -1
- package/src/plugins/BottomSheet.json +1 -1
- package/src/plugins/Cookies.js +1 -1
- package/src/plugins/Dark.js +1 -1
- package/src/plugins/Loading.js +1 -1
- package/src/plugins/LoadingBar.js +1 -1
- package/src/plugins/Notify.js +4 -4
- package/src/plugins/Platform.js +111 -93
- package/src/plugins/Screen.js +1 -1
- package/src/utils/event.js +1 -1
- package/src/utils/frame-debounce.js +1 -1
- package/src/utils/morph.js +1 -1
- package/src/utils/private/click-outside.js +1 -1
- package/src/utils/private/escape-key.js +1 -1
- package/src/utils/private/focusout.js +1 -1
|
@@ -1,187 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "plugin",
|
|
3
|
-
"meta": {
|
|
4
|
-
"docsUrl": "https://v2.quasar.dev/quasar-plugins/web-storage"
|
|
5
|
-
},
|
|
6
|
-
"injection": "$q.localStorage",
|
|
7
|
-
"methods": {
|
|
8
|
-
"has": {
|
|
9
|
-
"desc": "Check if storage item exists",
|
|
10
|
-
"params": {
|
|
11
|
-
"key": {
|
|
12
|
-
"type": "String",
|
|
13
|
-
"desc": "Entry key",
|
|
14
|
-
"required": true,
|
|
15
|
-
"examples": [
|
|
16
|
-
"userId"
|
|
17
|
-
]
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
"returns": {
|
|
21
|
-
"type": "Boolean",
|
|
22
|
-
"desc": "Does the item exists or not?"
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"getLength": {
|
|
26
|
-
"desc": "Get storage number of entries",
|
|
27
|
-
"returns": {
|
|
28
|
-
"type": "Number",
|
|
29
|
-
"desc": "Number of entries"
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
"getItem": {
|
|
33
|
-
"tsType": "WebStorageGetItemMethodType",
|
|
34
|
-
"desc": "Get a storage item value",
|
|
35
|
-
"params": {
|
|
36
|
-
"key": {
|
|
37
|
-
"type": "String",
|
|
38
|
-
"desc": "Entry key",
|
|
39
|
-
"required": true,
|
|
40
|
-
"examples": [
|
|
41
|
-
"userId"
|
|
42
|
-
]
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
"returns": {
|
|
46
|
-
"type": [
|
|
47
|
-
"Date",
|
|
48
|
-
"RegExp",
|
|
49
|
-
"Number",
|
|
50
|
-
"Boolean",
|
|
51
|
-
"Function",
|
|
52
|
-
"Object",
|
|
53
|
-
"Array",
|
|
54
|
-
"String",
|
|
55
|
-
"null"
|
|
56
|
-
],
|
|
57
|
-
"desc": "Storage item value",
|
|
58
|
-
"examples": [
|
|
59
|
-
"john12",
|
|
60
|
-
702
|
|
61
|
-
]
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
"getIndex": {
|
|
65
|
-
"tsType": "WebStorageGetIndexMethodType",
|
|
66
|
-
"desc": "Get the storage item value at specific index",
|
|
67
|
-
"params": {
|
|
68
|
-
"index": {
|
|
69
|
-
"type": "Number",
|
|
70
|
-
"desc": "Entry index",
|
|
71
|
-
"required": true
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
"returns": {
|
|
75
|
-
"type": [
|
|
76
|
-
"Number",
|
|
77
|
-
"null"
|
|
78
|
-
],
|
|
79
|
-
"desc": "Storage item index"
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
"getKey": {
|
|
83
|
-
"tsType": "WebStorageGetKeyMethodType",
|
|
84
|
-
"desc": "Get the storage key at specific index",
|
|
85
|
-
"params": {
|
|
86
|
-
"index": {
|
|
87
|
-
"type": "Number",
|
|
88
|
-
"desc": "Entry index",
|
|
89
|
-
"required": true
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
"returns": {
|
|
93
|
-
"type": [
|
|
94
|
-
"String",
|
|
95
|
-
"null"
|
|
96
|
-
],
|
|
97
|
-
"desc": "Storage key",
|
|
98
|
-
"examples": [
|
|
99
|
-
"userId"
|
|
100
|
-
]
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
"getAll": {
|
|
104
|
-
"desc": "Retrieve all items in storage",
|
|
105
|
-
"returns": {
|
|
106
|
-
"type": "Object",
|
|
107
|
-
"desc": "Object syntax: item name as Object key and its value",
|
|
108
|
-
"examples": [
|
|
109
|
-
"{ userId: 'jon12', timesLoggedIn: 14 }"
|
|
110
|
-
]
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
"getAllKeys": {
|
|
114
|
-
"tsType": "WebStorageGetAllKeysMethodType",
|
|
115
|
-
"desc": "Retrieve all keys in storage",
|
|
116
|
-
"returns": {
|
|
117
|
-
"type": "Array",
|
|
118
|
-
"desc": "Storage keys (Array of Strings)",
|
|
119
|
-
"examples": [
|
|
120
|
-
"['userId', 'password']"
|
|
121
|
-
]
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
"set": {
|
|
125
|
-
"desc": "Set item in storage",
|
|
126
|
-
"params": {
|
|
127
|
-
"key": {
|
|
128
|
-
"type": "String",
|
|
129
|
-
"desc": "Entry key",
|
|
130
|
-
"required": true,
|
|
131
|
-
"examples": [
|
|
132
|
-
"userId"
|
|
133
|
-
]
|
|
134
|
-
},
|
|
135
|
-
"value": {
|
|
136
|
-
"type": [
|
|
137
|
-
"Date",
|
|
138
|
-
"RegExp",
|
|
139
|
-
"Number",
|
|
140
|
-
"Boolean",
|
|
141
|
-
"Function",
|
|
142
|
-
"Object",
|
|
143
|
-
"Array",
|
|
144
|
-
"String",
|
|
145
|
-
"null"
|
|
146
|
-
],
|
|
147
|
-
"desc": "Entry value",
|
|
148
|
-
"required": true,
|
|
149
|
-
"params": {
|
|
150
|
-
"...params": {
|
|
151
|
-
"type": "Any"
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
"returns": {
|
|
155
|
-
"type": "Any"
|
|
156
|
-
},
|
|
157
|
-
"examples": [
|
|
158
|
-
"john12"
|
|
159
|
-
]
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
"remove": {
|
|
164
|
-
"desc": "Remove a storage item",
|
|
165
|
-
"params": {
|
|
166
|
-
"key": {
|
|
167
|
-
"type": "String",
|
|
168
|
-
"desc": "Storage key",
|
|
169
|
-
"required": true,
|
|
170
|
-
"examples": [
|
|
171
|
-
"userId"
|
|
172
|
-
]
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
},
|
|
176
|
-
"clear": {
|
|
177
|
-
"desc": "Remove everything from the storage"
|
|
178
|
-
},
|
|
179
|
-
"isEmpty": {
|
|
180
|
-
"desc": "Determine if storage has any items",
|
|
181
|
-
"returns": {
|
|
182
|
-
"type": "Boolean",
|
|
183
|
-
"desc": "Tells if storage is empty or not"
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
}
|
|
1
|
+
{"type":"plugin","meta":{"docsUrl":"https://v2.quasar.dev/quasar-plugins/web-storage"},"injection":"$q.localStorage","methods":{"has":{"desc":"Check if storage item exists","params":{"key":{"type":"String","desc":"Entry key","required":true,"examples":["userId"]}},"returns":{"type":"Boolean","desc":"Does the item exists or not?"}},"getLength":{"desc":"Get storage number of entries","returns":{"type":"Number","desc":"Number of entries"}},"getItem":{"tsType":"WebStorageGetItemMethodType","desc":"Get a storage item value","params":{"key":{"type":"String","desc":"Entry key","required":true,"examples":["userId"]}},"returns":{"type":["Date","RegExp","Number","Boolean","Function","Object","Array","String","null"],"desc":"Storage item value","examples":["john12",702]}},"getIndex":{"tsType":"WebStorageGetIndexMethodType","desc":"Get the storage item value at specific index","params":{"index":{"type":"Number","desc":"Entry index","required":true}},"returns":{"type":["Number","null"],"desc":"Storage item index"}},"getKey":{"tsType":"WebStorageGetKeyMethodType","desc":"Get the storage key at specific index","params":{"index":{"type":"Number","desc":"Entry index","required":true}},"returns":{"type":["String","null"],"desc":"Storage key","examples":["userId"]}},"getAll":{"desc":"Retrieve all items in storage","returns":{"type":"Object","desc":"Object syntax: item name as Object key and its value","examples":["{ userId: 'jon12', timesLoggedIn: 14 }"]}},"getAllKeys":{"tsType":"WebStorageGetAllKeysMethodType","desc":"Retrieve all keys in storage","returns":{"type":"Array","desc":"Storage keys (Array of Strings)","examples":["['userId', 'password']"]}},"set":{"desc":"Set item in storage","params":{"key":{"type":"String","desc":"Entry key","required":true,"examples":["userId"]},"value":{"type":["Date","RegExp","Number","Boolean","Function","Object","Array","String","null"],"desc":"Entry value","required":true,"params":{"...params":{"type":"Any"}},"returns":{"type":"Any"},"examples":["john12"]}}},"remove":{"desc":"Remove a storage item","params":{"key":{"type":"String","desc":"Storage key","required":true,"examples":["userId"]}}},"clear":{"desc":"Remove everything from the storage"},"isEmpty":{"desc":"Determine if storage has any items","returns":{"type":"Boolean","desc":"Tells if storage is empty or not"}}}}
|
package/dist/api/Meta.json
CHANGED
package/dist/api/Morph.json
CHANGED
|
@@ -1,188 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "directive",
|
|
3
|
-
"meta": {
|
|
4
|
-
"docsUrl": "https://v2.quasar.dev/vue-directives/morph"
|
|
5
|
-
},
|
|
6
|
-
"value": {
|
|
7
|
-
"type": [
|
|
8
|
-
"Object",
|
|
9
|
-
"Any"
|
|
10
|
-
],
|
|
11
|
-
"desc": "Configuration object or trigger value",
|
|
12
|
-
"definition": {
|
|
13
|
-
"group": {
|
|
14
|
-
"type": "String",
|
|
15
|
-
"desc": "Name of the morph group the element belongs to",
|
|
16
|
-
"examples": [
|
|
17
|
-
"dialogGroup"
|
|
18
|
-
]
|
|
19
|
-
},
|
|
20
|
-
"name": {
|
|
21
|
-
"type": "String",
|
|
22
|
-
"desc": "Name of the morph inside the group that the element belongs to",
|
|
23
|
-
"examples": [
|
|
24
|
-
"btn"
|
|
25
|
-
]
|
|
26
|
-
},
|
|
27
|
-
"model": {
|
|
28
|
-
"type": "String",
|
|
29
|
-
"desc": "Current value of the group model; when it becomes the same as the 'name' it triggers the morphing",
|
|
30
|
-
"examples": [
|
|
31
|
-
"btn"
|
|
32
|
-
]
|
|
33
|
-
},
|
|
34
|
-
"duration": {
|
|
35
|
-
"type": "Number",
|
|
36
|
-
"desc": "Duration of the animation (in milliseconds)",
|
|
37
|
-
"default": "300",
|
|
38
|
-
"required": false
|
|
39
|
-
},
|
|
40
|
-
"delay": {
|
|
41
|
-
"type": "Number",
|
|
42
|
-
"desc": "Delay for the animation (in milliseconds)",
|
|
43
|
-
"default": "0",
|
|
44
|
-
"required": false
|
|
45
|
-
},
|
|
46
|
-
"easing": {
|
|
47
|
-
"type": "String",
|
|
48
|
-
"desc": "Timing function for the animation (CSS easing format)",
|
|
49
|
-
"default": "ease-in-out",
|
|
50
|
-
"examples": [
|
|
51
|
-
"ease-out"
|
|
52
|
-
],
|
|
53
|
-
"required": false
|
|
54
|
-
},
|
|
55
|
-
"fill": {
|
|
56
|
-
"type": "String",
|
|
57
|
-
"desc": "Fill mode for the animation",
|
|
58
|
-
"default": "none",
|
|
59
|
-
"examples": [
|
|
60
|
-
"forward"
|
|
61
|
-
],
|
|
62
|
-
"required": false
|
|
63
|
-
},
|
|
64
|
-
"classes": {
|
|
65
|
-
"type": "String",
|
|
66
|
-
"desc": "Class names to be added to the destination element during the animation",
|
|
67
|
-
"examples": [
|
|
68
|
-
"bg-grey-2"
|
|
69
|
-
]
|
|
70
|
-
},
|
|
71
|
-
"style": {
|
|
72
|
-
"type": [
|
|
73
|
-
"String",
|
|
74
|
-
"Object"
|
|
75
|
-
],
|
|
76
|
-
"desc": "Styles to be added to the destination element during the animation",
|
|
77
|
-
"examples": [
|
|
78
|
-
"border-radius: 20px"
|
|
79
|
-
]
|
|
80
|
-
},
|
|
81
|
-
"resize": {
|
|
82
|
-
"type": "Boolean",
|
|
83
|
-
"desc": "Use resize instead of scaling during animation"
|
|
84
|
-
},
|
|
85
|
-
"useCSS": {
|
|
86
|
-
"type": "Boolean",
|
|
87
|
-
"desc": "Use CSS animations instead of the Animation API"
|
|
88
|
-
},
|
|
89
|
-
"hideFromClone": {
|
|
90
|
-
"type": "Boolean",
|
|
91
|
-
"desc": "Hide the spacer for the initial element during animation; Use it if the initial element is not removed or resizing of the space occupied by the initial element is not desired"
|
|
92
|
-
},
|
|
93
|
-
"keepToClone": {
|
|
94
|
-
"type": "Boolean",
|
|
95
|
-
"desc": "Keep a clone of the final element visible during animation"
|
|
96
|
-
},
|
|
97
|
-
"tween": {
|
|
98
|
-
"type": "Boolean",
|
|
99
|
-
"desc": "Use an opacity tween between the initial and final elements"
|
|
100
|
-
},
|
|
101
|
-
"tweenFromOpacity": {
|
|
102
|
-
"type": "Number",
|
|
103
|
-
"desc": "If using tween it is the initial opacity of the initial element (will be animated to 0) - the initial element is placed on top of the final element",
|
|
104
|
-
"default": 0.6,
|
|
105
|
-
"required": false
|
|
106
|
-
},
|
|
107
|
-
"tweenToOpacity": {
|
|
108
|
-
"type": "Number",
|
|
109
|
-
"desc": "If using tween it is the initial opacity of the final element (will be animated to 1)",
|
|
110
|
-
"default": 0.5,
|
|
111
|
-
"required": false
|
|
112
|
-
},
|
|
113
|
-
"waitFor": {
|
|
114
|
-
"type": [
|
|
115
|
-
"Number",
|
|
116
|
-
"String",
|
|
117
|
-
"Promise<void>"
|
|
118
|
-
],
|
|
119
|
-
"desc": "Delay animation start for that number of milliseconds, or until a 'transitionend' event is emitted by the destination element, or until the promise is resolved (if the promise is rejected the morphing will abort, but the 'toggle function' was already called)",
|
|
120
|
-
"default": "0",
|
|
121
|
-
"examples": [
|
|
122
|
-
"300",
|
|
123
|
-
"transitionend"
|
|
124
|
-
],
|
|
125
|
-
"required": false
|
|
126
|
-
},
|
|
127
|
-
"onEnd": {
|
|
128
|
-
"type": "Function",
|
|
129
|
-
"desc": "A function that will be called once the morphing is finished; Not called if morphing is aborted",
|
|
130
|
-
"returns": null,
|
|
131
|
-
"params": {
|
|
132
|
-
"direction": {
|
|
133
|
-
"type": "String",
|
|
134
|
-
"desc": "'to' if the morphing was finished in the final state or 'from' if it was finished in the initial state",
|
|
135
|
-
"values": [
|
|
136
|
-
"to",
|
|
137
|
-
"from"
|
|
138
|
-
]
|
|
139
|
-
},
|
|
140
|
-
"aborted": {
|
|
141
|
-
"type": "Boolean",
|
|
142
|
-
"desc": "Was the morphing aborted?"
|
|
143
|
-
}
|
|
144
|
-
},
|
|
145
|
-
"examples": [
|
|
146
|
-
"(direction, aborted) => { if (direction !== 'to') { revertLogic() } }"
|
|
147
|
-
]
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
"examples": [
|
|
151
|
-
"v-morph:element2:group1=\"groupModel\"",
|
|
152
|
-
"v-morph=\"{ name: 'element2', group: 'group1', model: 'element1' }\""
|
|
153
|
-
]
|
|
154
|
-
},
|
|
155
|
-
"arg": {
|
|
156
|
-
"type": "String",
|
|
157
|
-
"desc": "x:x2:y:z, where x is the morph element name, x2 is the morph group, y is the animation duration (in milliseconds) and z is the amount of time to wait (in milliseconds) or the 'transitionend' string",
|
|
158
|
-
"examples": [
|
|
159
|
-
"v-morph:name=\"options\"",
|
|
160
|
-
"v-morph:name:groupName=\"options\"",
|
|
161
|
-
"v-morph:name:groupName:400=\"options\"",
|
|
162
|
-
"v-morph:name:groupName:400:100=\"options\"",
|
|
163
|
-
"v-morph:name:groupName:400:transitionend=\"options\""
|
|
164
|
-
]
|
|
165
|
-
},
|
|
166
|
-
"modifiers": {
|
|
167
|
-
"resize": {
|
|
168
|
-
"type": "Boolean",
|
|
169
|
-
"desc": "Use resize instead of scale transform for morph (forceResize option of the morph function)"
|
|
170
|
-
},
|
|
171
|
-
"useCSS": {
|
|
172
|
-
"type": "Boolean",
|
|
173
|
-
"desc": "Use CSS animations for morph (forceCssAnimation option of the morph function)"
|
|
174
|
-
},
|
|
175
|
-
"hideFromClone": {
|
|
176
|
-
"type": "Boolean",
|
|
177
|
-
"desc": "Hide the spacer for the initial element (hideFromClone option of the morph function)"
|
|
178
|
-
},
|
|
179
|
-
"keepToClone": {
|
|
180
|
-
"type": "Boolean",
|
|
181
|
-
"desc": "Keep the final element visible while morphing (keepToClone option of the morph function)"
|
|
182
|
-
},
|
|
183
|
-
"tween": {
|
|
184
|
-
"type": "Boolean",
|
|
185
|
-
"desc": "Use opacity tween morphing between initial and final elements (tween option of the morph function)"
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}
|
|
1
|
+
{"type":"directive","meta":{"docsUrl":"https://v2.quasar.dev/vue-directives/morph"},"value":{"type":["Object","Any"],"desc":"Configuration object or trigger value","definition":{"group":{"type":"String","desc":"Name of the morph group the element belongs to","examples":["dialogGroup"]},"name":{"type":"String","desc":"Name of the morph inside the group that the element belongs to","examples":["btn"]},"model":{"type":"String","desc":"Current value of the group model; when it becomes the same as the 'name' it triggers the morphing","examples":["btn"]},"duration":{"type":"Number","desc":"Duration of the animation (in milliseconds)","default":"300","required":false},"delay":{"type":"Number","desc":"Delay for the animation (in milliseconds)","default":"0","required":false},"easing":{"type":"String","desc":"Timing function for the animation (CSS easing format)","default":"ease-in-out","examples":["ease-out"],"required":false},"fill":{"type":"String","desc":"Fill mode for the animation","default":"none","examples":["forward"],"required":false},"classes":{"type":"String","desc":"Class names to be added to the destination element during the animation","examples":["bg-grey-2"]},"style":{"type":["String","Object"],"desc":"Styles to be added to the destination element during the animation","examples":["border-radius: 20px"]},"resize":{"type":"Boolean","desc":"Use resize instead of scaling during animation"},"useCSS":{"type":"Boolean","desc":"Use CSS animations instead of the Animation API"},"hideFromClone":{"type":"Boolean","desc":"Hide the spacer for the initial element during animation; Use it if the initial element is not removed or resizing of the space occupied by the initial element is not desired"},"keepToClone":{"type":"Boolean","desc":"Keep a clone of the final element visible during animation"},"tween":{"type":"Boolean","desc":"Use an opacity tween between the initial and final elements"},"tweenFromOpacity":{"type":"Number","desc":"If using tween it is the initial opacity of the initial element (will be animated to 0) - the initial element is placed on top of the final element","default":0.6,"required":false},"tweenToOpacity":{"type":"Number","desc":"If using tween it is the initial opacity of the final element (will be animated to 1)","default":0.5,"required":false},"waitFor":{"type":["Number","String","Promise<void>"],"desc":"Delay animation start for that number of milliseconds, or until a 'transitionend' event is emitted by the destination element, or until the promise is resolved (if the promise is rejected the morphing will abort, but the 'toggle function' was already called)","default":"0","examples":["300","transitionend"],"required":false},"onEnd":{"type":"Function","desc":"A function that will be called once the morphing is finished; Not called if morphing is aborted","returns":null,"params":{"direction":{"type":"String","desc":"'to' if the morphing was finished in the final state or 'from' if it was finished in the initial state","values":["to","from"]},"aborted":{"type":"Boolean","desc":"Was the morphing aborted?"}},"examples":["(direction, aborted) => { if (direction !== 'to') { revertLogic() } }"]}},"examples":["v-morph:element2:group1=\"groupModel\"","v-morph=\"{ name: 'element2', group: 'group1', model: 'element1' }\""]},"arg":{"type":"String","desc":"x:x2:y:z, where x is the morph element name, x2 is the morph group, y is the animation duration (in milliseconds) and z is the amount of time to wait (in milliseconds) or the 'transitionend' string","examples":["v-morph:name=\"options\"","v-morph:name:groupName=\"options\"","v-morph:name:groupName:400=\"options\"","v-morph:name:groupName:400:100=\"options\"","v-morph:name:groupName:400:transitionend=\"options\""]},"modifiers":{"resize":{"type":"Boolean","desc":"Use resize instead of scale transform for morph (forceResize option of the morph function)"},"useCSS":{"type":"Boolean","desc":"Use CSS animations for morph (forceCssAnimation option of the morph function)"},"hideFromClone":{"type":"Boolean","desc":"Hide the spacer for the initial element (hideFromClone option of the morph function)"},"keepToClone":{"type":"Boolean","desc":"Keep the final element visible while morphing (keepToClone option of the morph function)"},"tween":{"type":"Boolean","desc":"Use opacity tween morphing between initial and final elements (tween option of the morph function)"}}}
|
package/dist/api/Mutation.json
CHANGED
|
@@ -1,122 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "directive",
|
|
3
|
-
"meta": {
|
|
4
|
-
"docsUrl": "https://v2.quasar.dev/vue-directives/mutation"
|
|
5
|
-
},
|
|
6
|
-
"value": {
|
|
7
|
-
"type": [
|
|
8
|
-
"Function"
|
|
9
|
-
],
|
|
10
|
-
"desc": "Function to call when mutation occurs; It is HIGHLY recommended to reference it from your vue component scope, otherwise the directive update cycle will continuously recreate the observer which hits performance hard",
|
|
11
|
-
"examples": [
|
|
12
|
-
"v-intersection=\"myHandler\""
|
|
13
|
-
],
|
|
14
|
-
"returns": {
|
|
15
|
-
"type": "Boolean",
|
|
16
|
-
"desc": "If you return Boolean false from the handler, the observer stops"
|
|
17
|
-
},
|
|
18
|
-
"params": {
|
|
19
|
-
"mutationList": {
|
|
20
|
-
"type": "Array",
|
|
21
|
-
"desc": "Array of MutationRecord items",
|
|
22
|
-
"definition": {
|
|
23
|
-
"type": {
|
|
24
|
-
"type": "String",
|
|
25
|
-
"desc": "Type of mutation",
|
|
26
|
-
"values": [
|
|
27
|
-
"childList",
|
|
28
|
-
"attributes",
|
|
29
|
-
"characterData"
|
|
30
|
-
]
|
|
31
|
-
},
|
|
32
|
-
"target": {
|
|
33
|
-
"type": "Element",
|
|
34
|
-
"desc": "The DOM element that the mutation affected, depending on the mutation type"
|
|
35
|
-
},
|
|
36
|
-
"addedNodes": {
|
|
37
|
-
"type": "Array",
|
|
38
|
-
"desc": "The NodeList of the nodes that have been added"
|
|
39
|
-
},
|
|
40
|
-
"removedNodes": {
|
|
41
|
-
"type": "Array",
|
|
42
|
-
"desc": "The NodeList of the nodes that have been removed"
|
|
43
|
-
},
|
|
44
|
-
"previousSibling": {
|
|
45
|
-
"type": "Object",
|
|
46
|
-
"desc": "The previous sibling of the added or removed nodes, or null"
|
|
47
|
-
},
|
|
48
|
-
"nextSibling": {
|
|
49
|
-
"type": "Object",
|
|
50
|
-
"desc": "The next sibling of the added or removed nodes, or null"
|
|
51
|
-
},
|
|
52
|
-
"attributeName": {
|
|
53
|
-
"type": "String",
|
|
54
|
-
"desc": "The local name of the changed attribute, or null",
|
|
55
|
-
"examples": [
|
|
56
|
-
"some-attribute"
|
|
57
|
-
]
|
|
58
|
-
},
|
|
59
|
-
"attributeNamespace": {
|
|
60
|
-
"type": "String",
|
|
61
|
-
"desc": "The namespace of the changed attribute, or null"
|
|
62
|
-
},
|
|
63
|
-
"oldValue": {
|
|
64
|
-
"type": "String",
|
|
65
|
-
"desc": "Value depends on the mutation type; For attributes, it is the value of the changed attribute before the change; For characterData it is data of the changed node before the change; For childList it is null; Note that for this to work as expected, attributeOldValue or characterDataOldValue must be set"
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
"modifiers": {
|
|
72
|
-
"once": {
|
|
73
|
-
"type": "Boolean",
|
|
74
|
-
"desc": "Call handler only once, when the first mutation was triggered, then stop monitoring",
|
|
75
|
-
"examples": [
|
|
76
|
-
"v-mutation.once"
|
|
77
|
-
]
|
|
78
|
-
},
|
|
79
|
-
"childList": {
|
|
80
|
-
"type": "Boolean",
|
|
81
|
-
"desc": "Monitor the target node (and, if 'subtree' is also set, its descendants) for the addition of new child nodes or removal of existing child nodes",
|
|
82
|
-
"examples": [
|
|
83
|
-
"v-mutation.childList"
|
|
84
|
-
]
|
|
85
|
-
},
|
|
86
|
-
"subtree": {
|
|
87
|
-
"type": "Boolean",
|
|
88
|
-
"desc": "Extend monitoring to the entire subtree of nodes rooted at target",
|
|
89
|
-
"examples": [
|
|
90
|
-
"v-mutation.subtree"
|
|
91
|
-
]
|
|
92
|
-
},
|
|
93
|
-
"attributes": {
|
|
94
|
-
"type": "Boolean",
|
|
95
|
-
"desc": "Watch for changes to the value of attributes on the node or nodes being monitored",
|
|
96
|
-
"examples": [
|
|
97
|
-
"v-mutation.attributes"
|
|
98
|
-
]
|
|
99
|
-
},
|
|
100
|
-
"characterData": {
|
|
101
|
-
"type": "Boolean",
|
|
102
|
-
"desc": "Monitor the specified target node or subtree for changes to the character data contained within the node or nodes",
|
|
103
|
-
"examples": [
|
|
104
|
-
"v-mutation.characterData"
|
|
105
|
-
]
|
|
106
|
-
},
|
|
107
|
-
"attributeOldValue": {
|
|
108
|
-
"type": "Boolean",
|
|
109
|
-
"desc": "Record the previous value of any attribute that changes when monitoring the node or nodes for attribute changes",
|
|
110
|
-
"examples": [
|
|
111
|
-
"v-mutation.attributeOldValue"
|
|
112
|
-
]
|
|
113
|
-
},
|
|
114
|
-
"characterDataOldValue": {
|
|
115
|
-
"type": "Boolean",
|
|
116
|
-
"desc": "Record the previous value of a node's text whenever the text changes on nodes being monitored",
|
|
117
|
-
"examples": [
|
|
118
|
-
"v-mutation.characterDataOldValue"
|
|
119
|
-
]
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
1
|
+
{"type":"directive","meta":{"docsUrl":"https://v2.quasar.dev/vue-directives/mutation"},"value":{"type":["Function"],"desc":"Function to call when mutation occurs; It is HIGHLY recommended to reference it from your vue component scope, otherwise the directive update cycle will continuously recreate the observer which hits performance hard","examples":["v-intersection=\"myHandler\""],"returns":{"type":"Boolean","desc":"If you return Boolean false from the handler, the observer stops"},"params":{"mutationList":{"type":"Array","desc":"Array of MutationRecord items","definition":{"type":{"type":"String","desc":"Type of mutation","values":["childList","attributes","characterData"]},"target":{"type":"Element","desc":"The DOM element that the mutation affected, depending on the mutation type"},"addedNodes":{"type":"Array","desc":"The NodeList of the nodes that have been added"},"removedNodes":{"type":"Array","desc":"The NodeList of the nodes that have been removed"},"previousSibling":{"type":"Object","desc":"The previous sibling of the added or removed nodes, or null"},"nextSibling":{"type":"Object","desc":"The next sibling of the added or removed nodes, or null"},"attributeName":{"type":"String","desc":"The local name of the changed attribute, or null","examples":["some-attribute"]},"attributeNamespace":{"type":"String","desc":"The namespace of the changed attribute, or null"},"oldValue":{"type":"String","desc":"Value depends on the mutation type; For attributes, it is the value of the changed attribute before the change; For characterData it is data of the changed node before the change; For childList it is null; Note that for this to work as expected, attributeOldValue or characterDataOldValue must be set"}}}}},"modifiers":{"once":{"type":"Boolean","desc":"Call handler only once, when the first mutation was triggered, then stop monitoring","examples":["v-mutation.once"]},"childList":{"type":"Boolean","desc":"Monitor the target node (and, if 'subtree' is also set, its descendants) for the addition of new child nodes or removal of existing child nodes","examples":["v-mutation.childList"]},"subtree":{"type":"Boolean","desc":"Extend monitoring to the entire subtree of nodes rooted at target","examples":["v-mutation.subtree"]},"attributes":{"type":"Boolean","desc":"Watch for changes to the value of attributes on the node or nodes being monitored","examples":["v-mutation.attributes"]},"characterData":{"type":"Boolean","desc":"Monitor the specified target node or subtree for changes to the character data contained within the node or nodes","examples":["v-mutation.characterData"]},"attributeOldValue":{"type":"Boolean","desc":"Record the previous value of any attribute that changes when monitoring the node or nodes for attribute changes","examples":["v-mutation.attributeOldValue"]},"characterDataOldValue":{"type":"Boolean","desc":"Record the previous value of a node's text whenever the text changes on nodes being monitored","examples":["v-mutation.characterDataOldValue"]}}}
|