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
package/dist/api/QFooter.json
CHANGED
|
@@ -1,60 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "component",
|
|
3
|
-
"meta": {
|
|
4
|
-
"docsUrl": "https://v2.quasar.dev/layout/header-and-footer"
|
|
5
|
-
},
|
|
6
|
-
"props": {
|
|
7
|
-
"model-value": {
|
|
8
|
-
"desc": "Model of the component defining if it is shown or hidden to the user; Either use this property (along with a listener for 'update:modelValue' event) OR use v-model directive",
|
|
9
|
-
"required": false,
|
|
10
|
-
"syncable": true,
|
|
11
|
-
"category": "model",
|
|
12
|
-
"type": "Boolean",
|
|
13
|
-
"default": true,
|
|
14
|
-
"examples": [
|
|
15
|
-
"v-model=\"footerState\""
|
|
16
|
-
]
|
|
17
|
-
},
|
|
18
|
-
"reveal": {
|
|
19
|
-
"type": "Boolean",
|
|
20
|
-
"desc": "Enable 'reveal' mode; Takes into account user scroll to temporarily show/hide footer",
|
|
21
|
-
"category": "behavior"
|
|
22
|
-
},
|
|
23
|
-
"bordered": {
|
|
24
|
-
"type": "Boolean",
|
|
25
|
-
"desc": "Applies a default border to the component",
|
|
26
|
-
"category": "style"
|
|
27
|
-
},
|
|
28
|
-
"elevated": {
|
|
29
|
-
"type": "Boolean",
|
|
30
|
-
"desc": "Adds a default shadow to the footer",
|
|
31
|
-
"category": "style"
|
|
32
|
-
},
|
|
33
|
-
"height-hint": {
|
|
34
|
-
"type": [
|
|
35
|
-
"Number",
|
|
36
|
-
"String"
|
|
37
|
-
],
|
|
38
|
-
"desc": "When using SSR, you can optionally hint of the height (in pixels) of the QFooter",
|
|
39
|
-
"default": 50,
|
|
40
|
-
"category": "behavior",
|
|
41
|
-
"required": false
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"slots": {
|
|
45
|
-
"default": {
|
|
46
|
-
"desc": "Default slot in the devland unslotted content of the component; Suggestion: QToolbar"
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
"events": {
|
|
50
|
-
"reveal": {
|
|
51
|
-
"desc": "Emitted when 'reveal' state gets changed",
|
|
52
|
-
"params": {
|
|
53
|
-
"value": {
|
|
54
|
-
"type": "Boolean",
|
|
55
|
-
"desc": "New 'reveal' state"
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
1
|
+
{"type":"component","meta":{"docsUrl":"https://v2.quasar.dev/layout/header-and-footer"},"props":{"model-value":{"desc":"Model of the component defining if it is shown or hidden to the user; Either use this property (along with a listener for 'update:modelValue' event) OR use v-model directive","required":false,"syncable":true,"category":"model","type":"Boolean","default":true,"examples":["v-model=\"footerState\""]},"reveal":{"type":"Boolean","desc":"Enable 'reveal' mode; Takes into account user scroll to temporarily show/hide footer","category":"behavior"},"bordered":{"type":"Boolean","desc":"Applies a default border to the component","category":"style"},"elevated":{"type":"Boolean","desc":"Adds a default shadow to the footer","category":"style"},"height-hint":{"type":["Number","String"],"desc":"When using SSR, you can optionally hint of the height (in pixels) of the QFooter","default":50,"category":"behavior","required":false}},"slots":{"default":{"desc":"Default slot in the devland unslotted content of the component; Suggestion: QToolbar"}},"events":{"reveal":{"desc":"Emitted when 'reveal' state gets changed","params":{"value":{"type":"Boolean","desc":"New 'reveal' state"}}}}}
|
package/dist/api/QForm.json
CHANGED
|
@@ -1,112 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "component",
|
|
3
|
-
"meta": {
|
|
4
|
-
"docsUrl": "https://v2.quasar.dev/vue-components/form"
|
|
5
|
-
},
|
|
6
|
-
"props": {
|
|
7
|
-
"autofocus": {
|
|
8
|
-
"type": "Boolean",
|
|
9
|
-
"desc": "Focus first focusable element on initial component render",
|
|
10
|
-
"category": "behavior"
|
|
11
|
-
},
|
|
12
|
-
"no-error-focus": {
|
|
13
|
-
"type": "Boolean",
|
|
14
|
-
"desc": "Do not try to focus on first component that has a validation error when submitting form",
|
|
15
|
-
"category": "behavior"
|
|
16
|
-
},
|
|
17
|
-
"no-reset-focus": {
|
|
18
|
-
"type": "Boolean",
|
|
19
|
-
"desc": "Do not try to focus on first component when resetting form",
|
|
20
|
-
"category": "behavior"
|
|
21
|
-
},
|
|
22
|
-
"greedy": {
|
|
23
|
-
"type": "Boolean",
|
|
24
|
-
"desc": "Validate all fields in form (by default it stops after finding the first invalid field with synchronous validation)",
|
|
25
|
-
"category": "behavior"
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"slots": {
|
|
29
|
-
"default": {
|
|
30
|
-
"desc": "Default slot in the devland unslotted content of the component"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"events": {
|
|
34
|
-
"submit": {
|
|
35
|
-
"desc": "Emitted when all validations have passed when tethered to a submit button",
|
|
36
|
-
"params": {
|
|
37
|
-
"evt": {
|
|
38
|
-
"type": [
|
|
39
|
-
"Event",
|
|
40
|
-
"SubmitEvent"
|
|
41
|
-
],
|
|
42
|
-
"desc": "Form submission event object"
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
"reset": {
|
|
47
|
-
"desc": "Emitted when all validations have been reset when tethered to a reset button; It is recommended to manually reset the wrapped components models in this handler"
|
|
48
|
-
},
|
|
49
|
-
"validation-success": {
|
|
50
|
-
"desc": "Emitted after a validation was triggered and all inner Quasar components models are valid"
|
|
51
|
-
},
|
|
52
|
-
"validation-error": {
|
|
53
|
-
"desc": "Emitted after a validation was triggered and at least one of the inner Quasar components models are NOT valid",
|
|
54
|
-
"params": {
|
|
55
|
-
"ref": {
|
|
56
|
-
"type": "Component",
|
|
57
|
-
"desc": "Vue reference to the first component that triggered the validation error"
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
"methods": {
|
|
63
|
-
"focus": {
|
|
64
|
-
"desc": "Focus on first focusable element/component in the form"
|
|
65
|
-
},
|
|
66
|
-
"validate": {
|
|
67
|
-
"desc": "Triggers a validation on all applicable inner Quasar components",
|
|
68
|
-
"params": {
|
|
69
|
-
"shouldFocus": {
|
|
70
|
-
"type": "Boolean",
|
|
71
|
-
"desc": "Tell if it should focus or not on component with error on submitting form; Overrides 'no-focus-error' prop if specified"
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
"returns": {
|
|
75
|
-
"type": "Promise<boolean>",
|
|
76
|
-
"desc": "Promise is always fulfilled and receives the outcome (true -> validation was a success, false -> invalid models detected)",
|
|
77
|
-
"examples": [
|
|
78
|
-
"validate().then(outcome => { ... })"
|
|
79
|
-
]
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
"resetValidation": {
|
|
83
|
-
"desc": "Resets the validation on all applicable inner Quasar components"
|
|
84
|
-
},
|
|
85
|
-
"submit": {
|
|
86
|
-
"desc": "Manually trigger form validation and submit",
|
|
87
|
-
"params": {
|
|
88
|
-
"evt": {
|
|
89
|
-
"type": "Event",
|
|
90
|
-
"desc": "JS event object"
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
"reset": {
|
|
95
|
-
"desc": "Manually trigger form reset",
|
|
96
|
-
"params": {
|
|
97
|
-
"evt": {
|
|
98
|
-
"type": "Event",
|
|
99
|
-
"desc": "JS event object"
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
"getValidationComponents": {
|
|
104
|
-
"desc": "Get an array of children Vue component instances that support Quasar validation API (derived from QField, or using useFormChild()/QFormChildMixin)",
|
|
105
|
-
"returns": {
|
|
106
|
-
"type": "Array",
|
|
107
|
-
"tsType": "QFormChildComponent",
|
|
108
|
-
"desc": "Quasar validation API-compatible Vue component instances"
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
1
|
+
{"type":"component","meta":{"docsUrl":"https://v2.quasar.dev/vue-components/form"},"props":{"autofocus":{"type":"Boolean","desc":"Focus first focusable element on initial component render","category":"behavior"},"no-error-focus":{"type":"Boolean","desc":"Do not try to focus on first component that has a validation error when submitting form","category":"behavior"},"no-reset-focus":{"type":"Boolean","desc":"Do not try to focus on first component when resetting form","category":"behavior"},"greedy":{"type":"Boolean","desc":"Validate all fields in form (by default it stops after finding the first invalid field with synchronous validation)","category":"behavior"}},"slots":{"default":{"desc":"Default slot in the devland unslotted content of the component"}},"events":{"submit":{"desc":"Emitted when all validations have passed when tethered to a submit button","params":{"evt":{"type":["Event","SubmitEvent"],"desc":"Form submission event object"}}},"reset":{"desc":"Emitted when all validations have been reset when tethered to a reset button; It is recommended to manually reset the wrapped components models in this handler"},"validation-success":{"desc":"Emitted after a validation was triggered and all inner Quasar components models are valid"},"validation-error":{"desc":"Emitted after a validation was triggered and at least one of the inner Quasar components models are NOT valid","params":{"ref":{"type":"Component","desc":"Vue reference to the first component that triggered the validation error"}}}},"methods":{"focus":{"desc":"Focus on first focusable element/component in the form"},"validate":{"desc":"Triggers a validation on all applicable inner Quasar components","params":{"shouldFocus":{"type":"Boolean","desc":"Tell if it should focus or not on component with error on submitting form; Overrides 'no-focus-error' prop if specified"}},"returns":{"type":"Promise<boolean>","desc":"Promise is always fulfilled and receives the outcome (true -> validation was a success, false -> invalid models detected)","examples":["validate().then(outcome => { ... })"]}},"resetValidation":{"desc":"Resets the validation on all applicable inner Quasar components"},"submit":{"desc":"Manually trigger form validation and submit","params":{"evt":{"type":"Event","desc":"JS event object"}}},"reset":{"desc":"Manually trigger form reset","params":{"evt":{"type":"Event","desc":"JS event object"}}},"getValidationComponents":{"desc":"Get an array of children Vue component instances that support Quasar validation API (derived from QField, or using useFormChild()/QFormChildMixin)","returns":{"type":"Array","tsType":"QFormChildComponent","desc":"Quasar validation API-compatible Vue component instances"}}}}
|
|
@@ -1,24 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "component",
|
|
3
|
-
"meta": {
|
|
4
|
-
"docsUrl": "https://v2.quasar.dev/vue-components/form"
|
|
5
|
-
},
|
|
6
|
-
"methods": {
|
|
7
|
-
"validate": {
|
|
8
|
-
"desc": "Needs to be overwritten when getting extended/mixed in",
|
|
9
|
-
"returns": {
|
|
10
|
-
"type": [
|
|
11
|
-
"Boolean",
|
|
12
|
-
"Promise<boolean>"
|
|
13
|
-
],
|
|
14
|
-
"desc": "Promise is always fulfilled and receives the outcome (true -> validation was a success, false -> invalid models detected)",
|
|
15
|
-
"examples": [
|
|
16
|
-
"validate().then(outcome => { ... })"
|
|
17
|
-
]
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
"resetValidation": {
|
|
21
|
-
"desc": "Needs to be overwritten when getting extended/mixed in"
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
1
|
+
{"type":"component","meta":{"docsUrl":"https://v2.quasar.dev/vue-components/form"},"methods":{"validate":{"desc":"Needs to be overwritten when getting extended/mixed in","returns":{"type":["Boolean","Promise<boolean>"],"desc":"Promise is always fulfilled and receives the outcome (true -> validation was a success, false -> invalid models detected)","examples":["validate().then(outcome => { ... })"]}},"resetValidation":{"desc":"Needs to be overwritten when getting extended/mixed in"}}}
|
package/dist/api/QHeader.json
CHANGED
|
@@ -1,67 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "component",
|
|
3
|
-
"meta": {
|
|
4
|
-
"docsUrl": "https://v2.quasar.dev/layout/header-and-footer"
|
|
5
|
-
},
|
|
6
|
-
"props": {
|
|
7
|
-
"model-value": {
|
|
8
|
-
"desc": "Model of the component defining if it is shown or hidden to the user; Either use this property (along with a listener for 'update:modelValue' event) OR use v-model directive",
|
|
9
|
-
"required": false,
|
|
10
|
-
"syncable": true,
|
|
11
|
-
"category": "model",
|
|
12
|
-
"type": "Boolean",
|
|
13
|
-
"default": true,
|
|
14
|
-
"examples": [
|
|
15
|
-
"v-model=\"headerState\""
|
|
16
|
-
]
|
|
17
|
-
},
|
|
18
|
-
"reveal": {
|
|
19
|
-
"type": "Boolean",
|
|
20
|
-
"desc": "Enable 'reveal' mode; Takes into account user scroll to temporarily show/hide header",
|
|
21
|
-
"category": "behavior"
|
|
22
|
-
},
|
|
23
|
-
"reveal-offset": {
|
|
24
|
-
"type": "Number",
|
|
25
|
-
"desc": "Amount of scroll (in pixels) that should trigger a 'reveal' state change",
|
|
26
|
-
"default": 250,
|
|
27
|
-
"category": "behavior",
|
|
28
|
-
"required": false
|
|
29
|
-
},
|
|
30
|
-
"bordered": {
|
|
31
|
-
"type": "Boolean",
|
|
32
|
-
"desc": "Applies a default border to the component",
|
|
33
|
-
"category": "style"
|
|
34
|
-
},
|
|
35
|
-
"elevated": {
|
|
36
|
-
"type": "Boolean",
|
|
37
|
-
"desc": "Adds a default shadow to the header",
|
|
38
|
-
"category": "style"
|
|
39
|
-
},
|
|
40
|
-
"height-hint": {
|
|
41
|
-
"type": [
|
|
42
|
-
"Number",
|
|
43
|
-
"String"
|
|
44
|
-
],
|
|
45
|
-
"desc": "When using SSR, you can optionally hint of the height (in pixels) of the QHeader",
|
|
46
|
-
"default": 50,
|
|
47
|
-
"category": "behavior",
|
|
48
|
-
"required": false
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
"slots": {
|
|
52
|
-
"default": {
|
|
53
|
-
"desc": "Default slot in the devland unslotted content of the component; Suggestion: QToolbar"
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"events": {
|
|
57
|
-
"reveal": {
|
|
58
|
-
"desc": "Emitted when 'reveal' state gets changed",
|
|
59
|
-
"params": {
|
|
60
|
-
"value": {
|
|
61
|
-
"type": "Boolean",
|
|
62
|
-
"desc": "New 'reveal' state"
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
1
|
+
{"type":"component","meta":{"docsUrl":"https://v2.quasar.dev/layout/header-and-footer"},"props":{"model-value":{"desc":"Model of the component defining if it is shown or hidden to the user; Either use this property (along with a listener for 'update:modelValue' event) OR use v-model directive","required":false,"syncable":true,"category":"model","type":"Boolean","default":true,"examples":["v-model=\"headerState\""]},"reveal":{"type":"Boolean","desc":"Enable 'reveal' mode; Takes into account user scroll to temporarily show/hide header","category":"behavior"},"reveal-offset":{"type":"Number","desc":"Amount of scroll (in pixels) that should trigger a 'reveal' state change","default":250,"category":"behavior","required":false},"bordered":{"type":"Boolean","desc":"Applies a default border to the component","category":"style"},"elevated":{"type":"Boolean","desc":"Adds a default shadow to the header","category":"style"},"height-hint":{"type":["Number","String"],"desc":"When using SSR, you can optionally hint of the height (in pixels) of the QHeader","default":50,"category":"behavior","required":false}},"slots":{"default":{"desc":"Default slot in the devland unslotted content of the component; Suggestion: QToolbar"}},"events":{"reveal":{"desc":"Emitted when 'reveal' state gets changed","params":{"value":{"type":"Boolean","desc":"New 'reveal' state"}}}}}
|
package/dist/api/QIcon.json
CHANGED
|
@@ -1,69 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "component",
|
|
3
|
-
"meta": {
|
|
4
|
-
"docsUrl": "https://v2.quasar.dev/vue-components/icon"
|
|
5
|
-
},
|
|
6
|
-
"props": {
|
|
7
|
-
"size": {
|
|
8
|
-
"type": "String",
|
|
9
|
-
"desc": "Size in CSS units, including unit name or standard size name (xs|sm|md|lg|xl)",
|
|
10
|
-
"examples": [
|
|
11
|
-
"16px",
|
|
12
|
-
"2rem",
|
|
13
|
-
"xs",
|
|
14
|
-
"md"
|
|
15
|
-
],
|
|
16
|
-
"category": "style"
|
|
17
|
-
},
|
|
18
|
-
"tag": {
|
|
19
|
-
"type": "String",
|
|
20
|
-
"desc": "HTML tag to render, unless no icon is supplied or it's an svg icon",
|
|
21
|
-
"examples": [
|
|
22
|
-
"div",
|
|
23
|
-
"span",
|
|
24
|
-
"div",
|
|
25
|
-
"i"
|
|
26
|
-
],
|
|
27
|
-
"category": "content",
|
|
28
|
-
"default": "i",
|
|
29
|
-
"required": false
|
|
30
|
-
},
|
|
31
|
-
"name": {
|
|
32
|
-
"type": "String",
|
|
33
|
-
"desc": "Icon name following Quasar convention; Make sure you have the icon library installed unless you are using 'img:' prefix; If 'none' (String) is used as value then no icon is rendered (but screen real estate will still be used for it)",
|
|
34
|
-
"examples": [
|
|
35
|
-
"map",
|
|
36
|
-
"ion-add",
|
|
37
|
-
"img:https://cdn.quasar.dev/logo-v2/svg/logo.svg",
|
|
38
|
-
"img:path/to/some_image.png"
|
|
39
|
-
],
|
|
40
|
-
"category": "model"
|
|
41
|
-
},
|
|
42
|
-
"color": {
|
|
43
|
-
"type": "String",
|
|
44
|
-
"tsType": "NamedColor",
|
|
45
|
-
"desc": "Color name for component from the Quasar Color Palette",
|
|
46
|
-
"examples": [
|
|
47
|
-
"primary",
|
|
48
|
-
"teal",
|
|
49
|
-
"teal-10"
|
|
50
|
-
],
|
|
51
|
-
"category": "style"
|
|
52
|
-
},
|
|
53
|
-
"left": {
|
|
54
|
-
"type": "Boolean",
|
|
55
|
-
"desc": "Useful if icon is on the left side of something: applies a standard margin on the right side of Icon",
|
|
56
|
-
"category": "content"
|
|
57
|
-
},
|
|
58
|
-
"right": {
|
|
59
|
-
"type": "Boolean",
|
|
60
|
-
"desc": "Useful if icon is on the right side of something: applies a standard margin on the left side of Icon",
|
|
61
|
-
"category": "content"
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
"slots": {
|
|
65
|
-
"default": {
|
|
66
|
-
"desc": "Suggestions: QTooltip or QMenu"
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
1
|
+
{"type":"component","meta":{"docsUrl":"https://v2.quasar.dev/vue-components/icon"},"props":{"size":{"type":"String","desc":"Size in CSS units, including unit name or standard size name (xs|sm|md|lg|xl)","examples":["16px","2rem","xs","md"],"category":"style"},"tag":{"type":"String","desc":"HTML tag to render, unless no icon is supplied or it's an svg icon","examples":["div","span","div","i"],"category":"content","default":"i","required":false},"name":{"type":"String","desc":"Icon name following Quasar convention; Make sure you have the icon library installed unless you are using 'img:' prefix; If 'none' (String) is used as value then no icon is rendered (but screen real estate will still be used for it)","examples":["map","ion-add","img:https://cdn.quasar.dev/logo-v2/svg/logo.svg","img:path/to/some_image.png"],"category":"model"},"color":{"type":"String","tsType":"NamedColor","desc":"Color name for component from the Quasar Color Palette","examples":["primary","teal","teal-10"],"category":"style"},"left":{"type":"Boolean","desc":"Useful if icon is on the left side of something: applies a standard margin on the right side of Icon","category":"content"},"right":{"type":"Boolean","desc":"Useful if icon is on the right side of something: applies a standard margin on the left side of Icon","category":"content"}},"slots":{"default":{"desc":"Suggestions: QTooltip or QMenu"}}}
|
package/dist/api/QImg.json
CHANGED
|
@@ -1,279 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "component",
|
|
3
|
-
"meta": {
|
|
4
|
-
"docsUrl": "https://v2.quasar.dev/vue-components/img"
|
|
5
|
-
},
|
|
6
|
-
"props": {
|
|
7
|
-
"ratio": {
|
|
8
|
-
"type": [
|
|
9
|
-
"String",
|
|
10
|
-
"Number"
|
|
11
|
-
],
|
|
12
|
-
"desc": "Force the component to maintain an aspect ratio",
|
|
13
|
-
"examples": [
|
|
14
|
-
":ratio=\"4/3\"",
|
|
15
|
-
":ratio=\"16/9\"",
|
|
16
|
-
"ratio=\"1\"",
|
|
17
|
-
"(Number format) :ratio=\"16/9\"",
|
|
18
|
-
"(String format) ratio=\"1\""
|
|
19
|
-
],
|
|
20
|
-
"category": "style"
|
|
21
|
-
},
|
|
22
|
-
"src": {
|
|
23
|
-
"type": "String",
|
|
24
|
-
"desc": "Path to image",
|
|
25
|
-
"transformAssetUrls": true,
|
|
26
|
-
"examples": [
|
|
27
|
-
"(public folder) src=\"img/something.png\"",
|
|
28
|
-
"(assets folder) src=\"~assets/my-img.gif\"",
|
|
29
|
-
"(relative path format) :src=\"require('./my_img.jpg')\"",
|
|
30
|
-
"(URL) src=\"https://picsum.photos/500/300\""
|
|
31
|
-
],
|
|
32
|
-
"category": "model"
|
|
33
|
-
},
|
|
34
|
-
"srcset": {
|
|
35
|
-
"type": "String",
|
|
36
|
-
"desc": "Same syntax as <img> srcset attribute",
|
|
37
|
-
"link": "https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images#Resolution_switching_Different_sizes",
|
|
38
|
-
"examples": [
|
|
39
|
-
"elva-fairy-320w.jpg 320w, elva-fairy-480w.jpg 480w"
|
|
40
|
-
],
|
|
41
|
-
"category": "model"
|
|
42
|
-
},
|
|
43
|
-
"sizes": {
|
|
44
|
-
"type": "String",
|
|
45
|
-
"desc": "Same syntax as <img> sizes attribute",
|
|
46
|
-
"link": "https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images#Resolution_switching_Different_sizes",
|
|
47
|
-
"examples": [
|
|
48
|
-
"(max-width: 320px) 280px, (max-width: 480px) 440px, 800px"
|
|
49
|
-
],
|
|
50
|
-
"category": "model"
|
|
51
|
-
},
|
|
52
|
-
"placeholder-src": {
|
|
53
|
-
"type": "String",
|
|
54
|
-
"desc": "While waiting for your image to load, you can use a placeholder image",
|
|
55
|
-
"transformAssetUrls": true,
|
|
56
|
-
"examples": [
|
|
57
|
-
"(public folder) src=\"img/some-placeholder.png\"",
|
|
58
|
-
"(assets folder) src=\"~assets/my-placeholder.gif\"",
|
|
59
|
-
"(relative path format) :src=\"require('./placeholder.jpg')\"",
|
|
60
|
-
"(URL) src=\"https://picsum.photos/500/300\""
|
|
61
|
-
],
|
|
62
|
-
"category": "model"
|
|
63
|
-
},
|
|
64
|
-
"initial-ratio": {
|
|
65
|
-
"type": [
|
|
66
|
-
"String",
|
|
67
|
-
"Number"
|
|
68
|
-
],
|
|
69
|
-
"desc": "Use it when not specifying 'ratio' but still wanting an initial aspect ratio",
|
|
70
|
-
"default": "16/9",
|
|
71
|
-
"examples": [
|
|
72
|
-
"(Number format) :initial-ratio=\"16/9\"",
|
|
73
|
-
"(String format) initial-ratio=\"1\""
|
|
74
|
-
],
|
|
75
|
-
"category": "style",
|
|
76
|
-
"required": false
|
|
77
|
-
},
|
|
78
|
-
"width": {
|
|
79
|
-
"type": "String",
|
|
80
|
-
"desc": "Forces image width; Must also include the unit (px or %)",
|
|
81
|
-
"examples": [
|
|
82
|
-
"280px",
|
|
83
|
-
"70%"
|
|
84
|
-
],
|
|
85
|
-
"category": "style"
|
|
86
|
-
},
|
|
87
|
-
"height": {
|
|
88
|
-
"type": "String",
|
|
89
|
-
"desc": "Forces image height; Must also include the unit (px or %)",
|
|
90
|
-
"examples": [
|
|
91
|
-
"280px",
|
|
92
|
-
"70%"
|
|
93
|
-
],
|
|
94
|
-
"category": "style"
|
|
95
|
-
},
|
|
96
|
-
"loading": {
|
|
97
|
-
"type": "String",
|
|
98
|
-
"desc": "Lazy or immediate load; Same syntax as <img> loading attribute",
|
|
99
|
-
"default": "lazy",
|
|
100
|
-
"values": [
|
|
101
|
-
"lazy",
|
|
102
|
-
"eager"
|
|
103
|
-
],
|
|
104
|
-
"category": "behavior",
|
|
105
|
-
"required": false
|
|
106
|
-
},
|
|
107
|
-
"crossorigin": {
|
|
108
|
-
"type": "String",
|
|
109
|
-
"desc": "Same syntax as <img> crossorigin attribute",
|
|
110
|
-
"values": [
|
|
111
|
-
"anonymous",
|
|
112
|
-
"use-credentials"
|
|
113
|
-
],
|
|
114
|
-
"category": "behavior"
|
|
115
|
-
},
|
|
116
|
-
"decoding": {
|
|
117
|
-
"type": "String",
|
|
118
|
-
"desc": "Same syntax as <img> decoding attribute",
|
|
119
|
-
"values": [
|
|
120
|
-
"sync",
|
|
121
|
-
"async",
|
|
122
|
-
"auto"
|
|
123
|
-
],
|
|
124
|
-
"category": "behavior"
|
|
125
|
-
},
|
|
126
|
-
"referrerpolicy": {
|
|
127
|
-
"type": "String",
|
|
128
|
-
"desc": "Same syntax as <img> referrerpolicy attribute",
|
|
129
|
-
"values": [
|
|
130
|
-
"no-referrer",
|
|
131
|
-
"no-referrer-when-downgrade",
|
|
132
|
-
"origin",
|
|
133
|
-
"origin-when-cross-origin",
|
|
134
|
-
"same-origin",
|
|
135
|
-
"strict-origin",
|
|
136
|
-
"strict-origin-when-cross-origin",
|
|
137
|
-
"unsafe-url"
|
|
138
|
-
],
|
|
139
|
-
"category": "behavior"
|
|
140
|
-
},
|
|
141
|
-
"fetchpriority": {
|
|
142
|
-
"type": "String",
|
|
143
|
-
"desc": "Provides a hint of the relative priority to use when fetching the image",
|
|
144
|
-
"default": "auto",
|
|
145
|
-
"values": [
|
|
146
|
-
"high",
|
|
147
|
-
"low",
|
|
148
|
-
"auto"
|
|
149
|
-
],
|
|
150
|
-
"category": "behavior",
|
|
151
|
-
"addedIn": "v2.6.6",
|
|
152
|
-
"required": false
|
|
153
|
-
},
|
|
154
|
-
"fit": {
|
|
155
|
-
"type": "String",
|
|
156
|
-
"desc": "How the image will fit into the container; Equivalent of the object-fit prop; Can be coordinated with 'position' prop",
|
|
157
|
-
"default": "cover",
|
|
158
|
-
"values": [
|
|
159
|
-
"cover",
|
|
160
|
-
"fill",
|
|
161
|
-
"contain",
|
|
162
|
-
"none",
|
|
163
|
-
"scale-down"
|
|
164
|
-
],
|
|
165
|
-
"category": "style",
|
|
166
|
-
"required": false
|
|
167
|
-
},
|
|
168
|
-
"position": {
|
|
169
|
-
"type": "String",
|
|
170
|
-
"desc": "The alignment of the image into the container; Equivalent of the object-position CSS prop",
|
|
171
|
-
"default": "50% 50%",
|
|
172
|
-
"examples": [
|
|
173
|
-
"0 0",
|
|
174
|
-
"20px 50px"
|
|
175
|
-
],
|
|
176
|
-
"category": "style",
|
|
177
|
-
"required": false
|
|
178
|
-
},
|
|
179
|
-
"alt": {
|
|
180
|
-
"type": "String",
|
|
181
|
-
"desc": "Specifies an alternate text for the image, if the image cannot be displayed",
|
|
182
|
-
"examples": [
|
|
183
|
-
"Two cats"
|
|
184
|
-
],
|
|
185
|
-
"category": "content"
|
|
186
|
-
},
|
|
187
|
-
"draggable": {
|
|
188
|
-
"type": "Boolean",
|
|
189
|
-
"desc": "Adds the native 'draggable' attribute",
|
|
190
|
-
"category": "behavior"
|
|
191
|
-
},
|
|
192
|
-
"img-class": {
|
|
193
|
-
"type": "String",
|
|
194
|
-
"desc": "CSS classes to be attributed to the native img element",
|
|
195
|
-
"examples": [
|
|
196
|
-
"my-special-class"
|
|
197
|
-
],
|
|
198
|
-
"category": "style"
|
|
199
|
-
},
|
|
200
|
-
"img-style": {
|
|
201
|
-
"type": "Object",
|
|
202
|
-
"tsType": "VueStyleObjectProp",
|
|
203
|
-
"desc": "Apply CSS to the native img element",
|
|
204
|
-
"examples": [
|
|
205
|
-
":img-style=\"{ transform: 'rotate(45deg)' }\" "
|
|
206
|
-
],
|
|
207
|
-
"category": "style"
|
|
208
|
-
},
|
|
209
|
-
"spinner-color": {
|
|
210
|
-
"type": "String",
|
|
211
|
-
"tsType": "NamedColor",
|
|
212
|
-
"desc": "Color name for default Spinner (unless using a 'loading' slot)",
|
|
213
|
-
"examples": [
|
|
214
|
-
"primary",
|
|
215
|
-
"teal",
|
|
216
|
-
"teal-10"
|
|
217
|
-
],
|
|
218
|
-
"category": "style"
|
|
219
|
-
},
|
|
220
|
-
"spinner-size": {
|
|
221
|
-
"type": "String",
|
|
222
|
-
"desc": "Size in CSS units, including unit name, for default Spinner (unless using a 'loading' slot)",
|
|
223
|
-
"examples": [
|
|
224
|
-
"16px",
|
|
225
|
-
"2rem"
|
|
226
|
-
],
|
|
227
|
-
"category": "style"
|
|
228
|
-
},
|
|
229
|
-
"no-spinner": {
|
|
230
|
-
"type": "Boolean",
|
|
231
|
-
"desc": "Do not display the default spinner while waiting for the image to be loaded; It is overriden by the 'loading' slot when one is present",
|
|
232
|
-
"category": "behavior"
|
|
233
|
-
},
|
|
234
|
-
"no-native-menu": {
|
|
235
|
-
"type": "Boolean",
|
|
236
|
-
"desc": "Disables the native context menu for the image",
|
|
237
|
-
"category": "behavior"
|
|
238
|
-
},
|
|
239
|
-
"no-transition": {
|
|
240
|
-
"type": "Boolean",
|
|
241
|
-
"desc": "Disable default transition when switching between old and new image",
|
|
242
|
-
"category": "behavior"
|
|
243
|
-
}
|
|
244
|
-
},
|
|
245
|
-
"slots": {
|
|
246
|
-
"default": {
|
|
247
|
-
"desc": "Default slot can be used for captions. See examples"
|
|
248
|
-
},
|
|
249
|
-
"loading": {
|
|
250
|
-
"desc": "While image is loading, this slot is being displayed on top of the component; Suggestions: a spinner or text"
|
|
251
|
-
},
|
|
252
|
-
"error": {
|
|
253
|
-
"desc": "Optional slot to be used when image could not be loaded; make sure you assign a min-height and min-width to the component through CSS"
|
|
254
|
-
}
|
|
255
|
-
},
|
|
256
|
-
"events": {
|
|
257
|
-
"load": {
|
|
258
|
-
"desc": "Emitted when image has been loaded by the browser",
|
|
259
|
-
"params": {
|
|
260
|
-
"src": {
|
|
261
|
-
"type": "String",
|
|
262
|
-
"desc": "URL of image that has been loaded; useful when using 'srcset' and/or 'sizes'",
|
|
263
|
-
"examples": [
|
|
264
|
-
"https://some-site.net/some-img.gif"
|
|
265
|
-
]
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
},
|
|
269
|
-
"error": {
|
|
270
|
-
"desc": "Emitted when browser could not load the image",
|
|
271
|
-
"params": {
|
|
272
|
-
"evt": {
|
|
273
|
-
"type": "Event",
|
|
274
|
-
"desc": "JS Event object (same as the browser's native 'error' event)"
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
}
|
|
1
|
+
{"type":"component","meta":{"docsUrl":"https://v2.quasar.dev/vue-components/img"},"props":{"ratio":{"type":["String","Number"],"desc":"Force the component to maintain an aspect ratio","examples":[":ratio=\"4/3\"",":ratio=\"16/9\"","ratio=\"1\"","(Number format) :ratio=\"16/9\"","(String format) ratio=\"1\""],"category":"style"},"src":{"type":"String","desc":"Path to image","transformAssetUrls":true,"examples":["(public folder) src=\"img/something.png\"","(assets folder) src=\"~assets/my-img.gif\"","(relative path format) :src=\"require('./my_img.jpg')\"","(URL) src=\"https://picsum.photos/500/300\""],"category":"model"},"srcset":{"type":"String","desc":"Same syntax as <img> srcset attribute","link":"https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images#Resolution_switching_Different_sizes","examples":["elva-fairy-320w.jpg 320w, elva-fairy-480w.jpg 480w"],"category":"model"},"sizes":{"type":"String","desc":"Same syntax as <img> sizes attribute","link":"https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images#Resolution_switching_Different_sizes","examples":["(max-width: 320px) 280px, (max-width: 480px) 440px, 800px"],"category":"model"},"placeholder-src":{"type":"String","desc":"While waiting for your image to load, you can use a placeholder image","transformAssetUrls":true,"examples":["(public folder) src=\"img/some-placeholder.png\"","(assets folder) src=\"~assets/my-placeholder.gif\"","(relative path format) :src=\"require('./placeholder.jpg')\"","(URL) src=\"https://picsum.photos/500/300\""],"category":"model"},"initial-ratio":{"type":["String","Number"],"desc":"Use it when not specifying 'ratio' but still wanting an initial aspect ratio","default":"16/9","examples":["(Number format) :initial-ratio=\"16/9\"","(String format) initial-ratio=\"1\""],"category":"style","required":false},"width":{"type":"String","desc":"Forces image width; Must also include the unit (px or %)","examples":["280px","70%"],"category":"style"},"height":{"type":"String","desc":"Forces image height; Must also include the unit (px or %)","examples":["280px","70%"],"category":"style"},"loading":{"type":"String","desc":"Lazy or immediate load; Same syntax as <img> loading attribute","default":"lazy","values":["lazy","eager"],"category":"behavior","required":false},"loading-show-delay":{"type":["Number","String"],"desc":"Delay showing the spinner when image changes; Gives time for the browser to load the image from cache to prevent flashing the spinner unnecessarily; Value should represent milliseconds","default":0,"examples":["500","caption-lines=\"1000\""],"category":"behavior","addedIn":"v2.14.6","required":false},"crossorigin":{"type":"String","desc":"Same syntax as <img> crossorigin attribute","values":["anonymous","use-credentials"],"category":"behavior"},"decoding":{"type":"String","desc":"Same syntax as <img> decoding attribute","values":["sync","async","auto"],"category":"behavior"},"referrerpolicy":{"type":"String","desc":"Same syntax as <img> referrerpolicy attribute","values":["no-referrer","no-referrer-when-downgrade","origin","origin-when-cross-origin","same-origin","strict-origin","strict-origin-when-cross-origin","unsafe-url"],"category":"behavior"},"fetchpriority":{"type":"String","desc":"Provides a hint of the relative priority to use when fetching the image","default":"auto","values":["high","low","auto"],"category":"behavior","addedIn":"v2.6.6","required":false},"fit":{"type":"String","desc":"How the image will fit into the container; Equivalent of the object-fit prop; Can be coordinated with 'position' prop","default":"cover","values":["cover","fill","contain","none","scale-down"],"category":"style","required":false},"position":{"type":"String","desc":"The alignment of the image into the container; Equivalent of the object-position CSS prop","default":"50% 50%","examples":["0 0","20px 50px"],"category":"style","required":false},"alt":{"type":"String","desc":"Specifies an alternate text for the image, if the image cannot be displayed","examples":["Two cats"],"category":"content"},"draggable":{"type":"Boolean","desc":"Adds the native 'draggable' attribute","category":"behavior"},"img-class":{"type":"String","desc":"CSS classes to be attributed to the native img element","examples":["my-special-class"],"category":"style"},"img-style":{"type":"Object","tsType":"VueStyleObjectProp","desc":"Apply CSS to the native img element","examples":[":img-style=\"{ transform: 'rotate(45deg)' }\" "],"category":"style"},"spinner-color":{"type":"String","tsType":"NamedColor","desc":"Color name for default Spinner (unless using a 'loading' slot)","examples":["primary","teal","teal-10"],"category":"style"},"spinner-size":{"type":"String","desc":"Size in CSS units, including unit name, for default Spinner (unless using a 'loading' slot)","examples":["16px","2rem"],"category":"style"},"no-spinner":{"type":"Boolean","desc":"Do not display the default spinner while waiting for the image to be loaded; It is overriden by the 'loading' slot when one is present","category":"behavior"},"no-native-menu":{"type":"Boolean","desc":"Disables the native context menu for the image","category":"behavior"},"no-transition":{"type":"Boolean","desc":"Disable default transition when switching between old and new image","category":"behavior"}},"slots":{"default":{"desc":"Default slot can be used for captions. See examples"},"loading":{"desc":"While image is loading, this slot is being displayed on top of the component; Suggestions: a spinner or text"},"error":{"desc":"Optional slot to be used when image could not be loaded; make sure you assign a min-height and min-width to the component through CSS"}},"events":{"load":{"desc":"Emitted when image has been loaded by the browser","params":{"src":{"type":"String","desc":"URL of image that has been loaded; useful when using 'srcset' and/or 'sizes'","examples":["https://some-site.net/some-img.gif"]}}},"error":{"desc":"Emitted when browser could not load the image","params":{"evt":{"type":"Event","desc":"JS Event object (same as the browser's native 'error' event)"}}}}}
|