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/types/index.d.ts
CHANGED
|
@@ -121,7 +121,7 @@ export interface BottomSheet {
|
|
|
121
121
|
*/
|
|
122
122
|
seamless?: boolean;
|
|
123
123
|
/**
|
|
124
|
-
* User cannot dismiss Bottom Sheet if clicking outside of it or hitting ESC key
|
|
124
|
+
* User cannot dismiss Bottom Sheet if clicking outside of it or hitting ESC key; Also, an app route change won't dismiss it
|
|
125
125
|
*/
|
|
126
126
|
persistent?: boolean;
|
|
127
127
|
}) => DialogChainObject;
|
|
@@ -177,7 +177,7 @@ export interface Cookies {
|
|
|
177
177
|
* Raw string for other cookie options; To be used as a last resort for possible newer props that are currently not yet implemented in Quasar
|
|
178
178
|
*/
|
|
179
179
|
other?: string;
|
|
180
|
-
}
|
|
180
|
+
},
|
|
181
181
|
) => void;
|
|
182
182
|
/**
|
|
183
183
|
* Check if cookie exists
|
|
@@ -201,7 +201,7 @@ export interface Cookies {
|
|
|
201
201
|
* Cookie domain
|
|
202
202
|
*/
|
|
203
203
|
domain?: string;
|
|
204
|
-
}
|
|
204
|
+
},
|
|
205
205
|
) => void;
|
|
206
206
|
/**
|
|
207
207
|
* For SSR usage only, and only on the global import (not on $q.cookies)
|
|
@@ -383,7 +383,7 @@ export interface LocalStorage {
|
|
|
383
383
|
| any
|
|
384
384
|
| readonly any[]
|
|
385
385
|
| string
|
|
386
|
-
| null
|
|
386
|
+
| null,
|
|
387
387
|
) => void;
|
|
388
388
|
/**
|
|
389
389
|
* Remove a storage item
|
|
@@ -410,7 +410,7 @@ export interface Notify {
|
|
|
410
410
|
* @returns Calling this function with no parameters hides the notification; When called with one Object parameter (the original notification must NOT be grouped), it updates the notification (specified properties are shallow merged with previous ones; note that group and position cannot be changed while updating and so they are ignored)
|
|
411
411
|
*/
|
|
412
412
|
create: (
|
|
413
|
-
opts: QNotifyCreateOptions | string
|
|
413
|
+
opts: QNotifyCreateOptions | string,
|
|
414
414
|
) => (props?: QNotifyUpdateOptions) => void;
|
|
415
415
|
/**
|
|
416
416
|
* Merge options into the default ones
|
|
@@ -770,7 +770,7 @@ export interface SessionStorage {
|
|
|
770
770
|
| any
|
|
771
771
|
| readonly any[]
|
|
772
772
|
| string
|
|
773
|
-
| null
|
|
773
|
+
| null,
|
|
774
774
|
) => void;
|
|
775
775
|
/**
|
|
776
776
|
* Remove a storage item
|
|
@@ -1139,7 +1139,7 @@ export type MutationValue = (
|
|
|
1139
1139
|
* 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
|
|
1140
1140
|
*/
|
|
1141
1141
|
oldValue?: string;
|
|
1142
|
-
}[]
|
|
1142
|
+
}[],
|
|
1143
1143
|
) => boolean;
|
|
1144
1144
|
/**
|
|
1145
1145
|
* 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
|
|
@@ -1982,7 +1982,7 @@ export interface QBreadcrumbsElProps {
|
|
|
1982
1982
|
* Return the router error, if any; Otherwise the returned Promise will always fulfill
|
|
1983
1983
|
*/
|
|
1984
1984
|
returnRouterError?: boolean;
|
|
1985
|
-
}) => Promise<any
|
|
1985
|
+
}) => Promise<any>,
|
|
1986
1986
|
) => void;
|
|
1987
1987
|
}
|
|
1988
1988
|
|
|
@@ -2163,7 +2163,7 @@ export interface QBtnProps {
|
|
|
2163
2163
|
* Return the router error, if any; Otherwise the returned Promise will always fulfill
|
|
2164
2164
|
*/
|
|
2165
2165
|
returnRouterError?: boolean;
|
|
2166
|
-
}) => Promise<any
|
|
2166
|
+
}) => Promise<any>,
|
|
2167
2167
|
) => void;
|
|
2168
2168
|
}
|
|
2169
2169
|
|
|
@@ -2373,7 +2373,7 @@ export interface QBtnDropdownProps {
|
|
|
2373
2373
|
*/
|
|
2374
2374
|
cover?: boolean | undefined;
|
|
2375
2375
|
/**
|
|
2376
|
-
* Allows the menu to not be dismissed by a click/tap outside of the menu or by hitting the ESC key
|
|
2376
|
+
* Allows the menu to not be dismissed by a click/tap outside of the menu or by hitting the ESC key; Also, an app route change won't dismiss it
|
|
2377
2377
|
*/
|
|
2378
2378
|
persistent?: boolean | undefined;
|
|
2379
2379
|
/**
|
|
@@ -2929,7 +2929,7 @@ export interface QCarouselProps {
|
|
|
2929
2929
|
*/
|
|
2930
2930
|
onBeforeTransition?: (
|
|
2931
2931
|
newVal: string | number,
|
|
2932
|
-
oldVal: string | number
|
|
2932
|
+
oldVal: string | number,
|
|
2933
2933
|
) => void;
|
|
2934
2934
|
/**
|
|
2935
2935
|
* Emitted after component transitioned to a new panel
|
|
@@ -3740,7 +3740,7 @@ export interface QDateProps {
|
|
|
3740
3740
|
*/
|
|
3741
3741
|
day: number;
|
|
3742
3742
|
};
|
|
3743
|
-
}
|
|
3743
|
+
},
|
|
3744
3744
|
) => void;
|
|
3745
3745
|
/**
|
|
3746
3746
|
* Emitted when user navigates to a different month or year (and even when the model changes from an outside source)
|
|
@@ -3878,7 +3878,7 @@ export interface QDate extends ComponentPublicInstance<QDateProps> {
|
|
|
3878
3878
|
* The day of month
|
|
3879
3879
|
*/
|
|
3880
3880
|
day?: number;
|
|
3881
|
-
}
|
|
3881
|
+
},
|
|
3882
3882
|
) => void;
|
|
3883
3883
|
}
|
|
3884
3884
|
|
|
@@ -4096,7 +4096,7 @@ export interface QDrawerProps {
|
|
|
4096
4096
|
*/
|
|
4097
4097
|
elevated?: boolean | undefined;
|
|
4098
4098
|
/**
|
|
4099
|
-
* Prevents drawer from auto-closing when app's route changes
|
|
4099
|
+
* Prevents drawer from auto-closing when app's route changes; Also, an app route change won't hide it
|
|
4100
4100
|
*/
|
|
4101
4101
|
persistent?: boolean | undefined;
|
|
4102
4102
|
/**
|
|
@@ -5835,6 +5835,10 @@ export interface QImgProps {
|
|
|
5835
5835
|
* Default value: lazy
|
|
5836
5836
|
*/
|
|
5837
5837
|
loading?: "lazy" | "eager" | undefined;
|
|
5838
|
+
/**
|
|
5839
|
+
* 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
|
|
5840
|
+
*/
|
|
5841
|
+
loadingShowDelay?: number | string | undefined;
|
|
5838
5842
|
/**
|
|
5839
5843
|
* Same syntax as <img> crossorigin attribute
|
|
5840
5844
|
*/
|
|
@@ -6532,7 +6536,7 @@ export interface QItemProps {
|
|
|
6532
6536
|
* Return the router error, if any; Otherwise the returned Promise will always fulfill
|
|
6533
6537
|
*/
|
|
6534
6538
|
returnRouterError?: boolean;
|
|
6535
|
-
}) => Promise<any
|
|
6539
|
+
}) => Promise<any>,
|
|
6536
6540
|
) => void;
|
|
6537
6541
|
}
|
|
6538
6542
|
|
|
@@ -7025,7 +7029,7 @@ export interface QMenuProps {
|
|
|
7025
7029
|
*/
|
|
7026
7030
|
touchPosition?: boolean | undefined;
|
|
7027
7031
|
/**
|
|
7028
|
-
* Allows the menu to not be dismissed by a click/tap outside of the menu or by hitting the ESC key
|
|
7032
|
+
* Allows the menu to not be dismissed by a click/tap outside of the menu or by hitting the ESC key; Also, an app route change won't dismiss it
|
|
7029
7033
|
*/
|
|
7030
7034
|
persistent?: boolean | undefined;
|
|
7031
7035
|
/**
|
|
@@ -8626,7 +8630,7 @@ export interface QScrollArea extends ComponentPublicInstance<QScrollAreaProps> {
|
|
|
8626
8630
|
setScrollPosition: (
|
|
8627
8631
|
axis: "vertical" | "horizontal",
|
|
8628
8632
|
offset: number,
|
|
8629
|
-
duration?: number
|
|
8633
|
+
duration?: number,
|
|
8630
8634
|
) => void;
|
|
8631
8635
|
/**
|
|
8632
8636
|
* Set scroll position to a percentage (0.0 <= x <= 1.0) of the total scrolling size; If a duration (in milliseconds) is specified then the scroll is animated
|
|
@@ -8637,7 +8641,7 @@ export interface QScrollArea extends ComponentPublicInstance<QScrollAreaProps> {
|
|
|
8637
8641
|
setScrollPercentage: (
|
|
8638
8642
|
axis: "vertical" | "horizontal",
|
|
8639
8643
|
offset: number,
|
|
8640
|
-
duration?: number
|
|
8644
|
+
duration?: number,
|
|
8641
8645
|
) => void;
|
|
8642
8646
|
}
|
|
8643
8647
|
|
|
@@ -9183,7 +9187,7 @@ export interface QSelectProps {
|
|
|
9183
9187
|
*/
|
|
9184
9188
|
onNewValue?: (
|
|
9185
9189
|
inputValue: string,
|
|
9186
|
-
doneFn: (item?: any, mode?: "add" | "add-unique" | "toggle") => void
|
|
9190
|
+
doneFn: (item?: any, mode?: "add" | "add-unique" | "toggle") => void,
|
|
9187
9191
|
) => void;
|
|
9188
9192
|
/**
|
|
9189
9193
|
* Emitted when user wants to filter a value
|
|
@@ -9194,7 +9198,7 @@ export interface QSelectProps {
|
|
|
9194
9198
|
onFilter?: (
|
|
9195
9199
|
inputValue: string,
|
|
9196
9200
|
doneFn: (callbackFn: () => void, afterFn?: (ref: QSelect) => void) => void,
|
|
9197
|
-
abortFn: () => void
|
|
9201
|
+
abortFn: () => void,
|
|
9198
9202
|
) => void;
|
|
9199
9203
|
/**
|
|
9200
9204
|
* Emitted when a filtering was aborted; Probably a new one was requested?
|
|
@@ -9359,7 +9363,7 @@ export interface QSelect extends ComponentPublicInstance<QSelectProps> {
|
|
|
9359
9363
|
| "end"
|
|
9360
9364
|
| "start-force"
|
|
9361
9365
|
| "center-force"
|
|
9362
|
-
| "end-force"
|
|
9366
|
+
| "end-force",
|
|
9363
9367
|
) => void;
|
|
9364
9368
|
/**
|
|
9365
9369
|
* Resets the virtual scroll computations; Needed for custom edge-cases
|
|
@@ -10630,7 +10634,7 @@ export interface QStepperProps {
|
|
|
10630
10634
|
*/
|
|
10631
10635
|
onBeforeTransition?: (
|
|
10632
10636
|
newVal: string | number,
|
|
10633
|
-
oldVal: string | number
|
|
10637
|
+
oldVal: string | number,
|
|
10634
10638
|
) => void;
|
|
10635
10639
|
/**
|
|
10636
10640
|
* Emitted after component transitioned to a new panel
|
|
@@ -10771,7 +10775,7 @@ export interface QTabPanelsProps {
|
|
|
10771
10775
|
*/
|
|
10772
10776
|
onBeforeTransition?: (
|
|
10773
10777
|
newVal: string | number,
|
|
10774
|
-
oldVal: string | number
|
|
10778
|
+
oldVal: string | number,
|
|
10775
10779
|
) => void;
|
|
10776
10780
|
/**
|
|
10777
10781
|
* Emitted after component transitioned to a new panel
|
|
@@ -11080,7 +11084,7 @@ export interface QTableProps {
|
|
|
11080
11084
|
| ((
|
|
11081
11085
|
firstRowIndex: number,
|
|
11082
11086
|
endRowIndex: number,
|
|
11083
|
-
totalRowsNumber: number
|
|
11087
|
+
totalRowsNumber: number,
|
|
11084
11088
|
) => string)
|
|
11085
11089
|
| undefined;
|
|
11086
11090
|
/**
|
|
@@ -11137,7 +11141,7 @@ export interface QTableProps {
|
|
|
11137
11141
|
rows: readonly any[],
|
|
11138
11142
|
terms: string | any,
|
|
11139
11143
|
cols: readonly any[],
|
|
11140
|
-
getCellValue: (col: any, row: any) => any
|
|
11144
|
+
getCellValue: (col: any, row: any) => any,
|
|
11141
11145
|
) => readonly any[])
|
|
11142
11146
|
| undefined;
|
|
11143
11147
|
/**
|
|
@@ -11199,7 +11203,7 @@ export interface QTableProps {
|
|
|
11199
11203
|
| ((
|
|
11200
11204
|
rows: readonly any[],
|
|
11201
11205
|
sortBy: string,
|
|
11202
|
-
descending: boolean
|
|
11206
|
+
descending: boolean,
|
|
11203
11207
|
) => readonly any[])
|
|
11204
11208
|
| undefined;
|
|
11205
11209
|
/**
|
|
@@ -12293,7 +12297,7 @@ export interface QTable extends ComponentPublicInstance<QTableProps> {
|
|
|
12293
12297
|
rows: readonly any[],
|
|
12294
12298
|
terms: string | any,
|
|
12295
12299
|
cols?: readonly any[],
|
|
12296
|
-
getCellValue?: (col?: any, row?: any) => any
|
|
12300
|
+
getCellValue?: (col?: any, row?: any) => any,
|
|
12297
12301
|
) => readonly any[];
|
|
12298
12302
|
}) => void;
|
|
12299
12303
|
/**
|
|
@@ -12320,7 +12324,7 @@ export interface QTable extends ComponentPublicInstance<QTableProps> {
|
|
|
12320
12324
|
*/
|
|
12321
12325
|
rowsPerPage?: number;
|
|
12322
12326
|
},
|
|
12323
|
-
forceServerRequest?: boolean
|
|
12327
|
+
forceServerRequest?: boolean,
|
|
12324
12328
|
) => void;
|
|
12325
12329
|
/**
|
|
12326
12330
|
* Navigates to first page
|
|
@@ -12381,7 +12385,7 @@ export interface QTable extends ComponentPublicInstance<QTableProps> {
|
|
|
12381
12385
|
| "end"
|
|
12382
12386
|
| "start-force"
|
|
12383
12387
|
| "center-force"
|
|
12384
|
-
| "end-force"
|
|
12388
|
+
| "end-force",
|
|
12385
12389
|
) => void;
|
|
12386
12390
|
/**
|
|
12387
12391
|
* The filtered and sorted rows (same as the rows prop if using server-side fetching)
|
|
@@ -12552,7 +12556,7 @@ export interface QRouteTabProps {
|
|
|
12552
12556
|
* Return the router error, if any; Otherwise the returned Promise will always fulfill
|
|
12553
12557
|
*/
|
|
12554
12558
|
returnRouterError?: boolean;
|
|
12555
|
-
}) => Promise<any
|
|
12559
|
+
}) => Promise<any>,
|
|
12556
12560
|
) => void;
|
|
12557
12561
|
}
|
|
12558
12562
|
|
|
@@ -12815,7 +12819,7 @@ export interface QTimeProps {
|
|
|
12815
12819
|
options?: (
|
|
12816
12820
|
hr: number,
|
|
12817
12821
|
min: number | null,
|
|
12818
|
-
sec: number | null
|
|
12822
|
+
sec: number | null,
|
|
12819
12823
|
) => boolean | null | undefined;
|
|
12820
12824
|
/**
|
|
12821
12825
|
* Optionally configure what hours is the user allowed to set; Overrides 'options' prop if that is also set
|
|
@@ -12877,7 +12881,7 @@ export interface QTimeProps {
|
|
|
12877
12881
|
* Did the model change?
|
|
12878
12882
|
*/
|
|
12879
12883
|
changed: boolean;
|
|
12880
|
-
}
|
|
12884
|
+
},
|
|
12881
12885
|
) => void;
|
|
12882
12886
|
}
|
|
12883
12887
|
|
|
@@ -13226,6 +13230,10 @@ export interface QTooltipProps {
|
|
|
13226
13230
|
* Configure Tooltip to disappear with delay
|
|
13227
13231
|
*/
|
|
13228
13232
|
hideDelay?: number | undefined;
|
|
13233
|
+
/**
|
|
13234
|
+
* Prevents Tooltip from auto-closing when app's route changes
|
|
13235
|
+
*/
|
|
13236
|
+
persistent?: boolean | undefined;
|
|
13229
13237
|
/**
|
|
13230
13238
|
* Emitted when showing/hidden state changes; Is also used by v-model
|
|
13231
13239
|
* @param value New state (showing/hidden)
|
|
@@ -13923,7 +13931,7 @@ export interface QUploader extends ComponentPublicInstance<QUploaderProps> {
|
|
|
13923
13931
|
updateFileStatus: (
|
|
13924
13932
|
file: File,
|
|
13925
13933
|
status: "idle" | "failed" | "uploading" | "uploaded",
|
|
13926
|
-
uploadedSize: number
|
|
13934
|
+
uploadedSize: number,
|
|
13927
13935
|
) => void;
|
|
13928
13936
|
/**
|
|
13929
13937
|
* Is the component alive (activated but not unmounted); Useful to determine if you still need to compute anything going further
|
|
@@ -14155,7 +14163,7 @@ export interface QVirtualScroll
|
|
|
14155
14163
|
| "end"
|
|
14156
14164
|
| "start-force"
|
|
14157
14165
|
| "center-force"
|
|
14158
|
-
| "end-force"
|
|
14166
|
+
| "end-force",
|
|
14159
14167
|
) => void;
|
|
14160
14168
|
/**
|
|
14161
14169
|
* Resets the virtual scroll computations; Needed for custom edge-cases
|
|
@@ -14691,7 +14699,7 @@ declare module "./globals" {
|
|
|
14691
14699
|
*/
|
|
14692
14700
|
seamless?: boolean;
|
|
14693
14701
|
/**
|
|
14694
|
-
* User cannot dismiss Bottom Sheet if clicking outside of it or hitting ESC key
|
|
14702
|
+
* User cannot dismiss Bottom Sheet if clicking outside of it or hitting ESC key; Also, an app route change won't dismiss it
|
|
14695
14703
|
*/
|
|
14696
14704
|
persistent?: boolean;
|
|
14697
14705
|
}) => DialogChainObject;
|
|
@@ -14712,7 +14720,7 @@ declare module "./globals" {
|
|
|
14712
14720
|
* @returns Calling this function with no parameters hides the notification; When called with one Object parameter (the original notification must NOT be grouped), it updates the notification (specified properties are shallow merged with previous ones; note that group and position cannot be changed while updating and so they are ignored)
|
|
14713
14721
|
*/
|
|
14714
14722
|
notify: (
|
|
14715
|
-
opts: QNotifyCreateOptions | string
|
|
14723
|
+
opts: QNotifyCreateOptions | string,
|
|
14716
14724
|
) => (props?: QNotifyUpdateOptions) => void;
|
|
14717
14725
|
platform: Platform;
|
|
14718
14726
|
screen: Screen;
|
|
@@ -15645,6 +15653,7 @@ declare module "./lang" {
|
|
|
15645
15653
|
sv: true;
|
|
15646
15654
|
ta: true;
|
|
15647
15655
|
th: true;
|
|
15656
|
+
tl: true;
|
|
15648
15657
|
tr: true;
|
|
15649
15658
|
ug: true;
|
|
15650
15659
|
uk: true;
|
package/dist/types/lang.d.ts
CHANGED
|
@@ -88,7 +88,7 @@ type QuasarLanguageDayTuple = [
|
|
|
88
88
|
string,
|
|
89
89
|
string,
|
|
90
90
|
string,
|
|
91
|
-
string
|
|
91
|
+
string,
|
|
92
92
|
];
|
|
93
93
|
type QuasarLanguageMonthTuple = [
|
|
94
94
|
string,
|
|
@@ -102,7 +102,7 @@ type QuasarLanguageMonthTuple = [
|
|
|
102
102
|
string,
|
|
103
103
|
string,
|
|
104
104
|
string,
|
|
105
|
-
string
|
|
105
|
+
string,
|
|
106
106
|
];
|
|
107
107
|
|
|
108
108
|
export interface QuasarLanguage {
|
|
@@ -119,7 +119,7 @@ export interface QuasarLanguage {
|
|
|
119
119
|
format24h: boolean;
|
|
120
120
|
headerTitle?: (
|
|
121
121
|
date: Date,
|
|
122
|
-
model: { year: number; month: number; day: number }
|
|
122
|
+
model: { year: number; month: number; day: number },
|
|
123
123
|
) => string;
|
|
124
124
|
};
|
|
125
125
|
table: StringDictionary<QuasarLanguageTableLabel> & {
|
package/dist/types/plugin.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { QuasarUIConfiguration } from "./config";
|
|
2
2
|
import { QuasarIconSet } from "./extras";
|
|
3
|
+
import { GlobalQuasarIconMapFn } from "./globals";
|
|
3
4
|
import { QuasarLanguage } from "./lang";
|
|
4
5
|
|
|
5
6
|
// These interfaces are used as forward-references
|
|
6
|
-
// filled at build-time via TS interface
|
|
7
|
+
// filled at build-time via TS interface merging capabilities
|
|
7
8
|
export interface QuasarComponents {}
|
|
8
9
|
export interface QuasarDirectives {}
|
|
9
10
|
export interface QuasarPlugins {}
|
|
@@ -15,4 +16,5 @@ export interface QuasarPluginOptions {
|
|
|
15
16
|
components: QuasarComponents;
|
|
16
17
|
directives: QuasarDirectives;
|
|
17
18
|
plugins: QuasarPlugins;
|
|
19
|
+
iconMapFn: GlobalQuasarIconMapFn;
|
|
18
20
|
}
|
|
@@ -23,8 +23,8 @@ export type DeepPartial<T> = {
|
|
|
23
23
|
[P in keyof T]?: T[P] extends Array<infer U>
|
|
24
24
|
? Array<DeepPartial<U>>
|
|
25
25
|
: T[P] extends ReadonlyArray<infer U>
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
? ReadonlyArray<DeepPartial<U>>
|
|
27
|
+
: DeepPartial<T[P]>;
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
// Create a fake constructor signature for a Vue component, needed to correctly extract/infer Component type in many situation,
|
|
@@ -43,7 +43,7 @@ export type ComponentConstructor<
|
|
|
43
43
|
RawBindings = any,
|
|
44
44
|
D = any,
|
|
45
45
|
C extends ComputedOptions = ComputedOptions,
|
|
46
|
-
M extends MethodOptions = MethodOptions
|
|
46
|
+
M extends MethodOptions = MethodOptions,
|
|
47
47
|
> = { new (): Component } & ComponentOptions<Props, RawBindings, D, C, M>;
|
|
48
48
|
|
|
49
49
|
// https://github.com/vuejs/vue-next/blob/d84d5ecdbdf709570122175d6565bb61fae877f2/packages/runtime-core/src/apiDefineComponent.ts#L29-L31
|
|
@@ -26,7 +26,7 @@ export namespace colors {
|
|
|
26
26
|
function brightness(color: string | colorsRgba): number;
|
|
27
27
|
function blend(
|
|
28
28
|
foregroundColor: string | colorsRgba,
|
|
29
|
-
backgroundColor: string | colorsRgba
|
|
29
|
+
backgroundColor: string | colorsRgba,
|
|
30
30
|
): string;
|
|
31
31
|
function changeAlpha(color: string, offset: number): string;
|
|
32
32
|
function getPaletteColor(colorName: NamedColor): string;
|
|
@@ -48,27 +48,27 @@ export namespace date {
|
|
|
48
48
|
date: Date | number | string,
|
|
49
49
|
from: Date | number | string,
|
|
50
50
|
to: Date | number | string,
|
|
51
|
-
opts?: { inclusiveFrom: boolean; inclusiveTo: boolean; onlyDate: boolean }
|
|
51
|
+
opts?: { inclusiveFrom: boolean; inclusiveTo: boolean; onlyDate: boolean },
|
|
52
52
|
): boolean;
|
|
53
53
|
function addToDate(date: Date | number | string, options: DateOptions): Date;
|
|
54
54
|
function subtractFromDate(
|
|
55
55
|
date: Date | number | string,
|
|
56
|
-
options: DateOptions
|
|
56
|
+
options: DateOptions,
|
|
57
57
|
): Date;
|
|
58
58
|
function adjustDate(
|
|
59
59
|
date: Date | number | string,
|
|
60
60
|
options: DateOptions,
|
|
61
|
-
utc?: boolean
|
|
61
|
+
utc?: boolean,
|
|
62
62
|
): Date;
|
|
63
63
|
function startOfDate(
|
|
64
64
|
date: Date | number | string,
|
|
65
65
|
option: DateUnitOptions,
|
|
66
|
-
utc?: boolean
|
|
66
|
+
utc?: boolean,
|
|
67
67
|
): Date;
|
|
68
68
|
function endOfDate(
|
|
69
69
|
date: Date | number | string,
|
|
70
70
|
option: DateUnitOptions,
|
|
71
|
-
utc?: boolean
|
|
71
|
+
utc?: boolean,
|
|
72
72
|
): Date;
|
|
73
73
|
function getMaxDate(
|
|
74
74
|
date: Date | number | string,
|
|
@@ -81,21 +81,21 @@ export namespace date {
|
|
|
81
81
|
function getDateDiff(
|
|
82
82
|
date: Date | number | string,
|
|
83
83
|
subtract: Date | number | string,
|
|
84
|
-
unit?: `${DateUnitOptions}s
|
|
84
|
+
unit?: `${DateUnitOptions}s`,
|
|
85
85
|
): number;
|
|
86
86
|
function getDayOfYear(date: Date | number | string): number;
|
|
87
87
|
function inferDateFormat(
|
|
88
|
-
date: Date | number | string
|
|
88
|
+
date: Date | number | string,
|
|
89
89
|
): "date" | "number" | "string";
|
|
90
90
|
function getDateBetween(
|
|
91
91
|
date: Date | number | string,
|
|
92
92
|
min?: Date | number | string,
|
|
93
|
-
max?: Date | number | string
|
|
93
|
+
max?: Date | number | string,
|
|
94
94
|
): Date;
|
|
95
95
|
function isSameDate(
|
|
96
96
|
date: Date | number | string,
|
|
97
97
|
date2: Date | number | string,
|
|
98
|
-
unit?: DateUnitOptions
|
|
98
|
+
unit?: DateUnitOptions,
|
|
99
99
|
): boolean;
|
|
100
100
|
function daysInMonth(date: Date | number | string): number;
|
|
101
101
|
function formatDate(
|
|
@@ -103,7 +103,7 @@ export namespace date {
|
|
|
103
103
|
format?: string,
|
|
104
104
|
locale?: DateLocale,
|
|
105
105
|
__forcedYear?: number,
|
|
106
|
-
__forcedTimezoneOffset?: number
|
|
106
|
+
__forcedTimezoneOffset?: number,
|
|
107
107
|
): string;
|
|
108
108
|
function clone<D extends Date | number | string>(date: D): D;
|
|
109
109
|
}
|
|
@@ -13,7 +13,7 @@ export namespace dom {
|
|
|
13
13
|
function css(el: Element, css: VueStyleObjectProp): void;
|
|
14
14
|
function cssBatch(
|
|
15
15
|
elements: readonly Element[],
|
|
16
|
-
css: VueStyleObjectProp
|
|
16
|
+
css: VueStyleObjectProp,
|
|
17
17
|
): void;
|
|
18
18
|
function ready<F extends (...args: any[]) => any>(fn: F): ReturnType<F>;
|
|
19
19
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export interface RunSequentialPromisesFulfilledResult<
|
|
2
2
|
TKey extends number | string,
|
|
3
|
-
TValue
|
|
3
|
+
TValue,
|
|
4
4
|
> {
|
|
5
5
|
key: TKey;
|
|
6
6
|
status: "fulfilled";
|
|
@@ -26,7 +26,7 @@ export interface RunSequentialPromisesFulfilledResult<
|
|
|
26
26
|
*/
|
|
27
27
|
export interface RunSequentialPromisesRejectedResult<
|
|
28
28
|
TKey extends number | string,
|
|
29
|
-
TValue
|
|
29
|
+
TValue,
|
|
30
30
|
> {
|
|
31
31
|
key: TKey;
|
|
32
32
|
status: "rejected";
|
|
@@ -70,28 +70,28 @@ export interface RunSequentialPromisesOptions {
|
|
|
70
70
|
// Array-style overrides
|
|
71
71
|
export function runSequentialPromises<
|
|
72
72
|
TValue = any,
|
|
73
|
-
TKey extends number = number
|
|
73
|
+
TKey extends number = number,
|
|
74
74
|
>(
|
|
75
75
|
promises: ((
|
|
76
|
-
resultAggregator: RunSequentialPromisesResult<TKey, TValue>[]
|
|
76
|
+
resultAggregator: RunSequentialPromisesResult<TKey, TValue>[],
|
|
77
77
|
) => Promise<TValue>)[],
|
|
78
78
|
options: Omit<RunSequentialPromisesOptions, "abortOnFail"> & {
|
|
79
79
|
abortOnFail: false;
|
|
80
|
-
}
|
|
80
|
+
},
|
|
81
81
|
): Promise<RunSequentialPromisesResult<TKey, TValue>[]>;
|
|
82
82
|
export function runSequentialPromises<
|
|
83
83
|
TValue = any,
|
|
84
|
-
TKey extends number = number
|
|
84
|
+
TKey extends number = number,
|
|
85
85
|
>(
|
|
86
86
|
promises: ((
|
|
87
|
-
resultAggregator: RunSequentialPromisesFulfilledResult<TKey, TValue>[]
|
|
87
|
+
resultAggregator: RunSequentialPromisesFulfilledResult<TKey, TValue>[],
|
|
88
88
|
) => Promise<TValue>)[],
|
|
89
|
-
options?: RunSequentialPromisesOptions
|
|
89
|
+
options?: RunSequentialPromisesOptions,
|
|
90
90
|
): Promise<RunSequentialPromisesFulfilledResult<TKey, TValue>[]>;
|
|
91
91
|
// Object-style overrides
|
|
92
92
|
export function runSequentialPromises<
|
|
93
93
|
TValue = any,
|
|
94
|
-
TKey extends string = string
|
|
94
|
+
TKey extends string = string,
|
|
95
95
|
>(
|
|
96
96
|
promisesMap: {
|
|
97
97
|
[key in TKey]: (resultAggregator: {
|
|
@@ -100,20 +100,20 @@ export function runSequentialPromises<
|
|
|
100
100
|
},
|
|
101
101
|
options?: Omit<RunSequentialPromisesOptions, "abortOnFail"> & {
|
|
102
102
|
abortOnFail: false;
|
|
103
|
-
}
|
|
103
|
+
},
|
|
104
104
|
): Promise<{
|
|
105
105
|
[key in TKey]: RunSequentialPromisesResult<TKey, TValue>;
|
|
106
106
|
}>;
|
|
107
107
|
export function runSequentialPromises<
|
|
108
108
|
TValue = any,
|
|
109
|
-
TKey extends string = string
|
|
109
|
+
TKey extends string = string,
|
|
110
110
|
>(
|
|
111
111
|
promisesMap: {
|
|
112
112
|
[key in TKey]: (resultAggregator: {
|
|
113
113
|
[key in TKey]?: RunSequentialPromisesFulfilledResult<TKey, TValue>;
|
|
114
114
|
}) => Promise<TValue>;
|
|
115
115
|
},
|
|
116
|
-
options?: RunSequentialPromisesOptions
|
|
116
|
+
options?: RunSequentialPromisesOptions,
|
|
117
117
|
): Promise<{
|
|
118
118
|
[key in TKey]: RunSequentialPromisesFulfilledResult<TKey, TValue>;
|
|
119
119
|
}>;
|
|
@@ -7,7 +7,7 @@ export namespace scroll {
|
|
|
7
7
|
| string
|
|
8
8
|
| Element
|
|
9
9
|
| Window
|
|
10
|
-
| Ref<ComponentPublicInstance | undefined
|
|
10
|
+
| Ref<ComponentPublicInstance | undefined>,
|
|
11
11
|
): Element | Window;
|
|
12
12
|
|
|
13
13
|
function getScrollHeight(el: Element | Window): number;
|
|
@@ -19,23 +19,23 @@ export namespace scroll {
|
|
|
19
19
|
function animVerticalScrollTo(
|
|
20
20
|
el: Element | Window,
|
|
21
21
|
to: number,
|
|
22
|
-
duration: number
|
|
22
|
+
duration: number,
|
|
23
23
|
): void;
|
|
24
24
|
function animHorizontalScrollTo(
|
|
25
25
|
el: Element | Window,
|
|
26
26
|
to: number,
|
|
27
|
-
duration: number
|
|
27
|
+
duration: number,
|
|
28
28
|
): void;
|
|
29
29
|
|
|
30
30
|
function setVerticalScrollPosition(
|
|
31
31
|
scrollTarget: Element | Window,
|
|
32
32
|
offset: number,
|
|
33
|
-
duration?: number
|
|
33
|
+
duration?: number,
|
|
34
34
|
): void;
|
|
35
35
|
function setHorizontalScrollPosition(
|
|
36
36
|
scrollTarget: Element | Window,
|
|
37
37
|
offset: number,
|
|
38
|
-
duration?: number
|
|
38
|
+
duration?: number,
|
|
39
39
|
): void;
|
|
40
40
|
|
|
41
41
|
function getScrollbarWidth(): number;
|