quasar 2.10.0 → 2.10.2
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/Dialog.json +28 -69
- package/dist/api/Intersection.json +25 -100
- package/dist/api/Loading.json +5 -20
- package/dist/api/LoadingBar.json +1 -7
- package/dist/api/LocalStorage.json +4 -16
- package/dist/api/Morph.json +2 -14
- package/dist/api/Notify.json +0 -3
- package/dist/api/Platform.json +1 -4
- package/dist/api/QAjaxBar.json +1 -11
- package/dist/api/QBreadcrumbs.json +0 -8
- package/dist/api/QBtn.json +0 -3
- package/dist/api/QBtnDropdown.json +0 -12
- package/dist/api/QCarousel.json +0 -10
- package/dist/api/QCarouselControl.json +0 -3
- package/dist/api/QCircularProgress.json +0 -23
- package/dist/api/QColor.json +0 -3
- package/dist/api/QDialog.json +18 -9
- package/dist/api/QDrawer.json +0 -6
- package/dist/api/QExpansionItem.json +0 -3
- package/dist/api/QFab.json +1 -6
- package/dist/api/QFabAction.json +1 -3
- package/dist/api/QField.json +1 -6
- package/dist/api/QFile.json +12 -29
- package/dist/api/QFooter.json +0 -3
- package/dist/api/QHeader.json +0 -6
- package/dist/api/QInfiniteScroll.json +9 -16
- package/dist/api/QInnerLoading.json +0 -4
- package/dist/api/QInput.json +8 -15
- package/dist/api/QIntersection.json +0 -4
- package/dist/api/QItemLabel.json +0 -5
- package/dist/api/QKnob.json +3 -36
- package/dist/api/QLayout.json +6 -24
- package/dist/api/QLinearProgress.json +0 -6
- package/dist/api/QList.json +15 -0
- package/dist/api/QMenu.json +7 -12
- package/dist/api/QOptionGroup.json +0 -3
- package/dist/api/QPage.json +2 -8
- package/dist/api/QPageScroller.json +0 -9
- package/dist/api/QPageSticky.json +0 -3
- package/dist/api/QPagination.json +4 -25
- package/dist/api/QParallax.json +2 -14
- package/dist/api/QPopupEdit.json +0 -8
- package/dist/api/QPopupProxy.json +21 -4
- package/dist/api/QRange.json +5 -32
- package/dist/api/QRating.json +0 -4
- package/dist/api/QResizeObserver.json +2 -8
- package/dist/api/QScrollArea.json +8 -36
- package/dist/api/QScrollObserver.json +6 -24
- package/dist/api/QSelect.json +18 -108
- package/dist/api/QSlideItem.json +1 -6
- package/dist/api/QSlideTransition.json +0 -4
- package/dist/api/QSlider.json +3 -24
- package/dist/api/QSpinner.json +0 -4
- package/dist/api/QSplitter.json +1 -4
- package/dist/api/QStepper.json +0 -7
- package/dist/api/QTabPanels.json +0 -7
- package/dist/api/QTable.json +43 -191
- package/dist/api/QTabs.json +0 -6
- package/dist/api/QTime.json +3 -12
- package/dist/api/QTooltip.json +7 -18
- package/dist/api/QTree.json +0 -3
- package/dist/api/QUploader.json +5 -16
- package/dist/api/QVirtualScroll.json +11 -56
- package/dist/api/Screen.json +9 -36
- package/dist/api/Scroll.json +2 -8
- package/dist/api/SessionStorage.json +4 -16
- package/dist/api/TouchHold.json +3 -12
- package/dist/api/TouchPan.json +7 -28
- package/dist/api/TouchRepeat.json +6 -24
- package/dist/api/TouchSwipe.json +3 -12
- package/dist/icon-set/bootstrap-icons.umd.prod.js +1 -1
- package/dist/icon-set/eva-icons.umd.prod.js +1 -1
- package/dist/icon-set/fontawesome-v5-pro.umd.prod.js +1 -1
- package/dist/icon-set/fontawesome-v5.umd.prod.js +1 -1
- package/dist/icon-set/fontawesome-v6-pro.umd.prod.js +1 -1
- package/dist/icon-set/fontawesome-v6.umd.prod.js +1 -1
- package/dist/icon-set/ionicons-v4.umd.prod.js +1 -1
- package/dist/icon-set/line-awesome.umd.prod.js +1 -1
- package/dist/icon-set/material-icons-outlined.umd.prod.js +1 -1
- package/dist/icon-set/material-icons-round.umd.prod.js +1 -1
- package/dist/icon-set/material-icons-sharp.umd.prod.js +1 -1
- package/dist/icon-set/material-icons.umd.prod.js +1 -1
- package/dist/icon-set/material-symbols-outlined.umd.prod.js +1 -1
- package/dist/icon-set/material-symbols-rounded.umd.prod.js +1 -1
- package/dist/icon-set/material-symbols-sharp.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v3.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v4.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v5.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v6.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v7.umd.prod.js +6 -0
- package/dist/icon-set/svg-bootstrap-icons.umd.prod.js +1 -1
- package/dist/icon-set/svg-eva-icons.umd.prod.js +1 -1
- package/dist/icon-set/svg-fontawesome-v5.umd.prod.js +1 -1
- package/dist/icon-set/svg-fontawesome-v6.umd.prod.js +1 -1
- package/dist/icon-set/svg-ionicons-v4.umd.prod.js +1 -1
- package/dist/icon-set/svg-ionicons-v5.umd.prod.js +1 -1
- package/dist/icon-set/svg-ionicons-v6.umd.prod.js +1 -1
- package/dist/icon-set/svg-line-awesome.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons-outlined.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons-round.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons-sharp.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-symbols-outlined.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-symbols-rounded.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-symbols-sharp.umd.prod.js +1 -1
- package/dist/icon-set/svg-mdi-v6.umd.prod.js +1 -1
- package/dist/icon-set/svg-mdi-v7.umd.prod.js +6 -0
- package/dist/icon-set/svg-themify.umd.prod.js +1 -1
- package/dist/icon-set/themify.umd.prod.js +1 -1
- package/dist/lang/ar-TN.umd.prod.js +1 -1
- package/dist/lang/ar.umd.prod.js +1 -1
- package/dist/lang/az-Latn.umd.prod.js +1 -1
- package/dist/lang/bg.umd.prod.js +1 -1
- package/dist/lang/bn.umd.prod.js +1 -1
- package/dist/lang/ca.umd.prod.js +1 -1
- package/dist/lang/cs.umd.prod.js +1 -1
- package/dist/lang/da.umd.prod.js +1 -1
- package/dist/lang/de.umd.prod.js +1 -1
- package/dist/lang/el.umd.prod.js +1 -1
- package/dist/lang/en-GB.umd.prod.js +1 -1
- package/dist/lang/en-US.umd.prod.js +1 -1
- package/dist/lang/eo.umd.prod.js +1 -1
- package/dist/lang/es.umd.prod.js +1 -1
- package/dist/lang/et.umd.prod.js +1 -1
- package/dist/lang/eu.umd.prod.js +1 -1
- package/dist/lang/fa-IR.umd.prod.js +1 -1
- package/dist/lang/fa.umd.prod.js +1 -1
- package/dist/lang/fi.umd.prod.js +1 -1
- package/dist/lang/fr.umd.prod.js +1 -1
- package/dist/lang/gn.umd.prod.js +1 -1
- package/dist/lang/he.umd.prod.js +1 -1
- package/dist/lang/hr.umd.prod.js +1 -1
- package/dist/lang/hu.umd.prod.js +1 -1
- package/dist/lang/id.umd.prod.js +1 -1
- package/dist/lang/is.umd.prod.js +1 -1
- package/dist/lang/it.umd.prod.js +1 -1
- package/dist/lang/ja.umd.prod.js +1 -1
- package/dist/lang/km.umd.prod.js +1 -1
- package/dist/lang/ko-KR.umd.prod.js +1 -1
- package/dist/lang/kur-CKB.umd.prod.js +1 -1
- package/dist/lang/kz.umd.prod.js +1 -1
- package/dist/lang/lt.umd.prod.js +1 -1
- package/dist/lang/lu.umd.prod.js +1 -1
- package/dist/lang/lv.umd.prod.js +1 -1
- package/dist/lang/ml.umd.prod.js +1 -1
- package/dist/lang/mm.umd.prod.js +1 -1
- package/dist/lang/ms.umd.prod.js +1 -1
- package/dist/lang/my.umd.prod.js +1 -1
- package/dist/lang/nb-NO.umd.prod.js +1 -1
- package/dist/lang/nl.umd.prod.js +1 -1
- package/dist/lang/pl.umd.prod.js +1 -1
- package/dist/lang/pt-BR.umd.prod.js +1 -1
- package/dist/lang/pt.umd.prod.js +1 -1
- package/dist/lang/ro.umd.prod.js +1 -1
- package/dist/lang/ru.umd.prod.js +1 -1
- package/dist/lang/sk.umd.prod.js +1 -1
- package/dist/lang/sl.umd.prod.js +1 -1
- package/dist/lang/sm.umd.prod.js +1 -1
- package/dist/lang/sr-CYR.umd.prod.js +1 -1
- package/dist/lang/sr.umd.prod.js +1 -1
- package/dist/lang/sv.umd.prod.js +1 -1
- package/dist/lang/ta.umd.prod.js +1 -1
- package/dist/lang/th.umd.prod.js +1 -1
- package/dist/lang/tr.umd.prod.js +1 -1
- package/dist/lang/ug.umd.prod.js +1 -1
- package/dist/lang/uk.umd.prod.js +1 -1
- package/dist/lang/uz-Cyrl.umd.prod.js +1 -1
- package/dist/lang/uz-Latn.umd.prod.js +1 -1
- package/dist/lang/vi.umd.prod.js +1 -1
- package/dist/lang/zh-CN.umd.prod.js +1 -1
- package/dist/lang/zh-TW.umd.prod.js +1 -1
- package/dist/quasar.cjs.prod.js +2 -2
- package/dist/quasar.css +3 -3
- package/dist/quasar.esm.js +223 -192
- package/dist/quasar.esm.prod.js +2 -2
- package/dist/quasar.prod.css +1 -1
- package/dist/quasar.rtl.css +10 -3
- package/dist/quasar.rtl.prod.css +1 -1
- package/dist/quasar.sass +5 -4
- package/dist/quasar.umd.js +222 -191
- package/dist/quasar.umd.prod.js +2 -2
- package/dist/types/api/dialog.d.ts +101 -0
- package/dist/types/api/qpopupproxy.d.ts +3 -0
- package/dist/types/api.d.ts +2 -0
- package/dist/types/index.d.ts +56 -97
- package/dist/vetur/quasar-attributes.json +4 -0
- package/dist/vetur/quasar-tags.json +2 -1
- package/dist/web-types/web-types.json +142 -132
- package/icon-set/mdi-v7.js +146 -0
- package/icon-set/mdi-v7.mjs +141 -0
- package/icon-set/svg-mdi-v7.js +224 -0
- package/icon-set/svg-mdi-v7.mjs +224 -0
- package/package.json +4 -4
- package/src/api.extends.json +1 -2
- package/src/components/ajax-bar/QAjaxBar.json +5 -11
- package/src/components/breadcrumbs/QBreadcrumbs.json +0 -2
- package/src/components/breadcrumbs/QBreadcrumbsEl.json +1 -2
- package/src/components/btn/QBtn.json +1 -3
- package/src/components/btn/__tests__/QBtn.spec.js +87 -14
- package/src/components/btn/__tests__/use-btn.spec.js +385 -58
- package/src/components/btn-dropdown/QBtnDropdown.js +4 -12
- package/src/components/btn-dropdown/QBtnDropdown.json +0 -2
- package/src/components/btn-toggle/QBtnToggle.json +2 -4
- package/src/components/carousel/QCarousel.json +4 -9
- package/src/components/carousel/QCarouselControl.json +0 -1
- package/src/components/checkbox/use-checkbox.json +1 -2
- package/src/components/circular-progress/QCircularProgress.json +0 -5
- package/src/components/color/QColor.json +0 -1
- package/src/components/date/QDate.js +6 -4
- package/src/components/date/QDate.json +28 -56
- package/src/components/dialog/QDialog.js +34 -41
- package/src/components/dialog/QDialog.json +9 -2
- package/src/components/dialog-bottom-sheet/BottomSheet.js +1 -2
- package/src/components/dialog-plugin/DialogPlugin.js +4 -4
- package/src/components/drawer/QDrawer.js +5 -5
- package/src/components/drawer/QDrawer.json +0 -4
- package/src/components/editor/QEditor.json +3 -6
- package/src/components/expansion-item/QExpansionItem.js +3 -4
- package/src/components/expansion-item/QExpansionItem.json +3 -8
- package/src/components/fab/QFab.js +3 -6
- package/src/components/fab/QFab.json +0 -1
- package/src/components/fab/QFab.sass +2 -1
- package/src/components/fab/use-fab.json +0 -1
- package/src/components/field/QField.json +0 -1
- package/src/components/file/QFile.js +4 -1
- package/src/components/file/QFile.json +19 -20
- package/src/components/footer/QFooter.json +0 -1
- package/src/components/form/QForm.js +5 -3
- package/src/components/form/QForm.json +2 -4
- package/src/components/header/QHeader.json +0 -4
- package/src/components/img/QImg.js +20 -19
- package/src/components/infinite-scroll/QInfiniteScroll.json +9 -6
- package/src/components/inner-loading/QInnerLoading.js +2 -5
- package/src/components/input/QInput.js +12 -3
- package/src/components/input/QInput.json +11 -7
- package/src/components/input/use-mask.js +3 -1
- package/src/components/intersection/QIntersection.json +0 -1
- package/src/components/item/QItem.json +1 -2
- package/src/components/item/QItemLabel.json +0 -1
- package/src/components/item/QList.js +7 -2
- package/src/components/item/QList.json +7 -0
- package/src/components/knob/QKnob.js +3 -3
- package/src/components/knob/QKnob.json +3 -12
- package/src/components/layout/QLayout.js +1 -1
- package/src/components/layout/QLayout.json +6 -12
- package/src/components/linear-progress/QLinearProgress.json +0 -2
- package/src/components/menu/QMenu.js +12 -6
- package/src/components/menu/QMenu.json +0 -2
- package/src/components/option-group/QOptionGroup.json +2 -5
- package/src/components/page/QPage.json +3 -6
- package/src/components/page-scroller/QPageScroller.json +0 -2
- package/src/components/page-sticky/QPageSticky.json +0 -1
- package/src/components/pagination/QPagination.json +5 -13
- package/src/components/parallax/QParallax.json +2 -6
- package/src/components/popup-edit/QPopupEdit.js +3 -3
- package/src/components/popup-edit/QPopupEdit.json +4 -10
- package/src/components/popup-proxy/QPopupProxy.js +6 -0
- package/src/components/popup-proxy/QPopupProxy.json +19 -1
- package/src/components/radio/QRadio.json +1 -2
- package/src/components/range/QRange.json +2 -4
- package/src/components/rating/QRating.json +0 -1
- package/src/components/resize-observer/QResizeObserver.json +2 -4
- package/src/components/scroll-area/QScrollArea.js +15 -4
- package/src/components/scroll-area/QScrollArea.json +24 -50
- package/src/components/scroll-observer/QScrollObserver.js +2 -0
- package/src/components/scroll-observer/QScrollObserver.json +6 -12
- package/src/components/select/QSelect.js +28 -27
- package/src/components/select/QSelect.json +30 -65
- package/src/components/select/QSelect.sass +2 -2
- package/src/components/slide-item/QSlideItem.json +1 -2
- package/src/components/slide-transition/QSlideTransition.json +0 -1
- package/src/components/slider/use-slider.json +33 -70
- package/src/components/spinner/QSpinner.json +0 -1
- package/src/components/splitter/QSplitter.json +1 -2
- package/src/components/table/QTable.js +3 -3
- package/src/components/table/QTable.json +118 -239
- package/src/components/tabs/QRouteTab.json +0 -1
- package/src/components/tabs/QTabs.json +0 -2
- package/src/components/time/QTime.json +10 -20
- package/src/components/tooltip/QTooltip.js +2 -5
- package/src/components/tooltip/QTooltip.json +0 -4
- package/src/components/tree/QTree.js +6 -6
- package/src/components/tree/QTree.json +15 -31
- package/src/components/uploader/QUploader.json +13 -22
- package/src/components/uploader/xhr-uploader-plugin.js +1 -1
- package/src/components/uploader/xhr-uploader-plugin.json +25 -50
- package/src/components/virtual-scroll/QVirtualScroll.json +5 -10
- package/src/components/virtual-scroll/use-virtual-scroll.js +1 -1
- package/src/components/virtual-scroll/use-virtual-scroll.json +8 -19
- package/src/composables/private/use-field.js +1 -1
- package/src/composables/private/use-field.json +2 -3
- package/src/composables/private/use-file.json +4 -13
- package/src/composables/private/use-model-toggle.js +3 -3
- package/src/composables/private/use-panel.js +2 -2
- package/src/composables/private/use-panel.json +0 -2
- package/src/composables/private/use-portal.js +5 -1
- package/src/composables/private/use-portal.json +7 -1
- package/src/composables/private/use-transition.js +17 -11
- package/src/composables/private/use-transition.json +0 -1
- package/src/composables/private/use-validate.json +1 -3
- package/src/directives/Intersection.json +26 -53
- package/src/directives/Morph.json +4 -8
- package/src/directives/Mutation.json +6 -12
- package/src/directives/Scroll.json +2 -4
- package/src/directives/TouchHold.json +3 -6
- package/src/directives/TouchPan.json +7 -14
- package/src/directives/TouchRepeat.json +6 -12
- package/src/directives/TouchSwipe.json +3 -6
- package/src/plugins/BottomSheet.json +1 -2
- package/src/plugins/Cookies.json +2 -4
- package/src/plugins/Dialog.json +35 -73
- package/src/plugins/Loading.json +6 -11
- package/src/plugins/LoadingBar.json +3 -6
- package/src/plugins/Notify.json +4 -5
- package/src/plugins/Platform.json +3 -6
- package/src/plugins/Screen.json +9 -18
- package/src/utils/private/global-dialog.json +6 -12
- package/src/utils/private/portal.js +4 -4
- package/src/utils/private/web-storage.json +6 -10
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
// Error on "quasar" import shown in IDE is normal, as we only have Components/Directives/Plugins types after the build step
|
|
2
|
+
// The import will work correctly at runtime
|
|
3
|
+
import { QInputProps, QOptionGroupProps } from "quasar";
|
|
4
|
+
|
|
5
|
+
// Taken from https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html#distributive-conditional-types
|
|
6
|
+
type NonFunctionPropertyNames<T> = {
|
|
7
|
+
[K in keyof T]: T[K] extends Function ? never : K;
|
|
8
|
+
}[keyof T];
|
|
9
|
+
type NonFunctionProperties<T> = Pick<T, NonFunctionPropertyNames<T>>;
|
|
10
|
+
|
|
11
|
+
// https://html.spec.whatwg.org/multipage/input.html#attr-input-type
|
|
12
|
+
type InputType =
|
|
13
|
+
| "button"
|
|
14
|
+
| "checkbox"
|
|
15
|
+
| "color"
|
|
16
|
+
| "date"
|
|
17
|
+
| "datetime-local"
|
|
18
|
+
| "email"
|
|
19
|
+
| "file"
|
|
20
|
+
| "hidden"
|
|
21
|
+
| "image"
|
|
22
|
+
| "month"
|
|
23
|
+
| "number"
|
|
24
|
+
| "password"
|
|
25
|
+
| "radio"
|
|
26
|
+
| "range"
|
|
27
|
+
| "reset"
|
|
28
|
+
| "search"
|
|
29
|
+
| "submit"
|
|
30
|
+
| "tel"
|
|
31
|
+
| "text"
|
|
32
|
+
| "time"
|
|
33
|
+
| "url"
|
|
34
|
+
| "week";
|
|
35
|
+
type DatalessInputType = Extract<InputType, "submit" | "reset">;
|
|
36
|
+
|
|
37
|
+
type PromptInputType = "textarea" | Exclude<InputType, DatalessInputType>;
|
|
38
|
+
|
|
39
|
+
export type QDialogInputPrompt<T = string> = {
|
|
40
|
+
/**
|
|
41
|
+
* The initial value of the input
|
|
42
|
+
*/
|
|
43
|
+
model: T;
|
|
44
|
+
/**
|
|
45
|
+
* Optional property to determine the input field type
|
|
46
|
+
*
|
|
47
|
+
* @defaultValue "text"
|
|
48
|
+
*/
|
|
49
|
+
type?: PromptInputType;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Is typed content valid?
|
|
53
|
+
*
|
|
54
|
+
* @param val The value of the input
|
|
55
|
+
* @returns The text passed validation or not
|
|
56
|
+
*/
|
|
57
|
+
isValid?: (value: T) => boolean;
|
|
58
|
+
} & Partial<Omit<QInputProps, "modelValue" | "onUpdate:modelValue" | "type">> &
|
|
59
|
+
Partial<NonFunctionProperties<HTMLInputElement>>;
|
|
60
|
+
|
|
61
|
+
type SelectionPromptType = NonNullable<QOptionGroupProps["type"]>
|
|
62
|
+
export type QDialogSelectionPrompt<
|
|
63
|
+
// As this gets used as is in generated types, we must define default values for generic params.
|
|
64
|
+
// Example: `options?: QDialogSelectionPrompt;` <- notice the missing type params.
|
|
65
|
+
// We can't use "radio" as the default either, because that would make it the only value.
|
|
66
|
+
TType extends SelectionPromptType = SelectionPromptType,
|
|
67
|
+
TModel = TType extends "radio" ? string : readonly any[]
|
|
68
|
+
> = {
|
|
69
|
+
/**
|
|
70
|
+
* The value of the selection
|
|
71
|
+
* If the `type` is "radio"(default), the value is a string, otherwise it's an array
|
|
72
|
+
*/
|
|
73
|
+
model: TModel;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* The type of the selection
|
|
77
|
+
*
|
|
78
|
+
* @defaultValue "radio"
|
|
79
|
+
*/
|
|
80
|
+
type?: TType;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* The list of options to interact with
|
|
84
|
+
* Equivalent to `options` prop of the `QOptionGroup` component
|
|
85
|
+
*/
|
|
86
|
+
items?: QOptionGroupProps["options"];
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Is the model valid?
|
|
90
|
+
*
|
|
91
|
+
* @param model The current model (If the `type` is "radio"(default), the value is a string, otherwise it's an array)
|
|
92
|
+
* @returns The selection passed validation or not
|
|
93
|
+
*/
|
|
94
|
+
isValid?: (value: TModel) => boolean;
|
|
95
|
+
} & Partial<
|
|
96
|
+
Omit<
|
|
97
|
+
QOptionGroupProps,
|
|
98
|
+
"modelValue" | "onUpdate:modelValue" | "type" | "options"
|
|
99
|
+
>
|
|
100
|
+
> &
|
|
101
|
+
Partial<NonFunctionProperties<HTMLElement>>;
|
package/dist/types/api.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
export * from "./api/vue-prop-types";
|
|
2
2
|
export * from "./api/cookies";
|
|
3
|
+
export * from "./api/dialog";
|
|
3
4
|
export * from "./api/qfile";
|
|
4
5
|
export * from "./api/qselect";
|
|
5
6
|
export * from "./api/qtable";
|
|
6
7
|
export * from "./api/qtree";
|
|
7
8
|
export * from "./api/quploader";
|
|
8
9
|
export * from "./api/qnotify";
|
|
10
|
+
export * from "./api/qpopupproxy";
|
|
9
11
|
export * from "./api/qeditor";
|
|
10
12
|
export * from "./api/qloading";
|
|
11
13
|
export * from "./api/touchswipe";
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3166,8 +3166,13 @@ export interface QDialog extends ComponentPublicInstance<QDialogProps> {
|
|
|
3166
3166
|
focus: (selector?: string) => void;
|
|
3167
3167
|
/**
|
|
3168
3168
|
* Shakes dialog
|
|
3169
|
+
* @param focusTarget Optional DOM Element to be focused after shake
|
|
3169
3170
|
*/
|
|
3170
|
-
shake: () => void;
|
|
3171
|
+
shake: (focusTarget?: Element) => void;
|
|
3172
|
+
/**
|
|
3173
|
+
* The DOM Element of the rendered content
|
|
3174
|
+
*/
|
|
3175
|
+
readonly contentEl: Element;
|
|
3171
3176
|
}
|
|
3172
3177
|
|
|
3173
3178
|
export interface QDrawerProps {
|
|
@@ -4661,14 +4666,18 @@ export interface QFile extends ComponentPublicInstance<QFileProps> {
|
|
|
4661
4666
|
*/
|
|
4662
4667
|
removeFile: (file: File) => void;
|
|
4663
4668
|
/**
|
|
4664
|
-
*
|
|
4669
|
+
* DEPRECATED; Access 'nativeEl' directly; Gets the native input DOM Element
|
|
4665
4670
|
* @returns The underlying native input DOM Element
|
|
4666
4671
|
*/
|
|
4667
|
-
getNativeElement: () =>
|
|
4672
|
+
getNativeElement: () => Element;
|
|
4668
4673
|
/**
|
|
4669
4674
|
* Whether the component is in error state
|
|
4670
4675
|
*/
|
|
4671
4676
|
readonly hasError: boolean;
|
|
4677
|
+
/**
|
|
4678
|
+
* The native input DOM Element
|
|
4679
|
+
*/
|
|
4680
|
+
readonly nativeEl: Element;
|
|
4672
4681
|
}
|
|
4673
4682
|
|
|
4674
4683
|
export interface QFooterProps {
|
|
@@ -5094,8 +5103,9 @@ export interface QInfiniteScroll
|
|
|
5094
5103
|
resume: () => void;
|
|
5095
5104
|
/**
|
|
5096
5105
|
* Overwrite the current pagination index
|
|
5106
|
+
* @param newIndex New pagination index
|
|
5097
5107
|
*/
|
|
5098
|
-
setIndex: () => void;
|
|
5108
|
+
setIndex: (newIndex: number) => void;
|
|
5099
5109
|
/**
|
|
5100
5110
|
* Updates the scroll target; Useful when the parent elements change so that the scrolling target also changes
|
|
5101
5111
|
*/
|
|
@@ -5454,14 +5464,18 @@ export interface QInput extends ComponentPublicInstance<QInputProps> {
|
|
|
5454
5464
|
*/
|
|
5455
5465
|
select: () => void;
|
|
5456
5466
|
/**
|
|
5457
|
-
* Get the native input/textarea DOM Element
|
|
5467
|
+
* DEPRECATED; Access 'nativeEl' directly instead; Get the native input/textarea DOM Element
|
|
5458
5468
|
* @returns The underlying native input/textarea DOM Element
|
|
5459
5469
|
*/
|
|
5460
|
-
getNativeElement: () =>
|
|
5470
|
+
getNativeElement: () => Element;
|
|
5461
5471
|
/**
|
|
5462
5472
|
* Whether the component is in error state
|
|
5463
5473
|
*/
|
|
5464
5474
|
readonly hasError: boolean;
|
|
5475
|
+
/**
|
|
5476
|
+
* The native input/textarea DOM Element
|
|
5477
|
+
*/
|
|
5478
|
+
readonly nativeEl: Element;
|
|
5465
5479
|
}
|
|
5466
5480
|
|
|
5467
5481
|
export interface QIntersectionProps {
|
|
@@ -5705,6 +5719,11 @@ export interface QListProps {
|
|
|
5705
5719
|
* Applies a material design-like padding on top and bottom
|
|
5706
5720
|
*/
|
|
5707
5721
|
padding?: boolean | undefined;
|
|
5722
|
+
/**
|
|
5723
|
+
* HTML tag to use
|
|
5724
|
+
* Default value: div
|
|
5725
|
+
*/
|
|
5726
|
+
tag?: string | undefined;
|
|
5708
5727
|
}
|
|
5709
5728
|
|
|
5710
5729
|
export interface QListSlots {
|
|
@@ -6195,6 +6214,10 @@ export interface QMenu extends ComponentPublicInstance<QMenuProps> {
|
|
|
6195
6214
|
* Focus menu; if you have content with autofocus attribute, it will directly focus it
|
|
6196
6215
|
*/
|
|
6197
6216
|
focus: () => void;
|
|
6217
|
+
/**
|
|
6218
|
+
* The DOM Element of the rendered content
|
|
6219
|
+
*/
|
|
6220
|
+
readonly contentEl: Element;
|
|
6198
6221
|
}
|
|
6199
6222
|
|
|
6200
6223
|
export interface QNoSsrProps {
|
|
@@ -6968,6 +6991,19 @@ export interface QPopupProxy extends ComponentPublicInstance<QPopupProxyProps> {
|
|
|
6968
6991
|
* @param evt JS event object
|
|
6969
6992
|
*/
|
|
6970
6993
|
toggle: (evt?: Event) => void;
|
|
6994
|
+
/**
|
|
6995
|
+
* Access current underlying component (QMenu or QDialog)
|
|
6996
|
+
*/
|
|
6997
|
+
readonly currentComponent: {
|
|
6998
|
+
/**
|
|
6999
|
+
* Component type
|
|
7000
|
+
*/
|
|
7001
|
+
type?: "dialog" | "menu";
|
|
7002
|
+
/**
|
|
7003
|
+
* The actual component (QMenu or QDialog); Access it directly, without '.value'
|
|
7004
|
+
*/
|
|
7005
|
+
ref?: QPopupProxyInnerComponent;
|
|
7006
|
+
};
|
|
6971
7007
|
}
|
|
6972
7008
|
|
|
6973
7009
|
export interface QPullToRefreshProps {
|
|
@@ -8720,7 +8756,7 @@ export interface QSlideItemProps {
|
|
|
8720
8756
|
*/
|
|
8721
8757
|
side: "left" | "right" | "top" | "bottom";
|
|
8722
8758
|
/**
|
|
8723
|
-
* Ratio of how much of the required slide was performed (0
|
|
8759
|
+
* Ratio of how much of the required slide was performed (0 <= x <= 1)
|
|
8724
8760
|
*/
|
|
8725
8761
|
ratio: number;
|
|
8726
8762
|
/**
|
|
@@ -12318,6 +12354,10 @@ export interface QTooltip extends ComponentPublicInstance<QTooltipProps> {
|
|
|
12318
12354
|
* There are some custom scenarios for which Quasar cannot automatically reposition the tooltip without significant performance drawbacks so the optimal solution is for you to call this method when you need it
|
|
12319
12355
|
*/
|
|
12320
12356
|
updatePosition: () => void;
|
|
12357
|
+
/**
|
|
12358
|
+
* The DOM Element of the rendered content
|
|
12359
|
+
*/
|
|
12360
|
+
readonly contentEl: Element;
|
|
12321
12361
|
}
|
|
12322
12362
|
|
|
12323
12363
|
export interface QTreeProps {
|
|
@@ -12945,17 +12985,17 @@ export interface QUploader extends ComponentPublicInstance<QUploaderProps> {
|
|
|
12945
12985
|
removeQueuedFiles: () => void;
|
|
12946
12986
|
/**
|
|
12947
12987
|
* Remove specified file from the queue
|
|
12948
|
-
* @param file
|
|
12988
|
+
* @param file The file to remove
|
|
12949
12989
|
*/
|
|
12950
|
-
removeFile: (file:
|
|
12990
|
+
removeFile: (file: File) => void;
|
|
12951
12991
|
/**
|
|
12952
12992
|
* Update the status of a file
|
|
12953
|
-
* @param file
|
|
12993
|
+
* @param file The file to update
|
|
12954
12994
|
* @param status Status of file
|
|
12955
12995
|
* @param uploadedSize The number of uploaded bytes of the file; Is required explicitly only when status is NOT 'uploaded'
|
|
12956
12996
|
*/
|
|
12957
12997
|
updateFileStatus: (
|
|
12958
|
-
file:
|
|
12998
|
+
file: File,
|
|
12959
12999
|
status: "idle" | "failed" | "uploading" | "uploaded",
|
|
12960
13000
|
uploadedSize: number
|
|
12961
13001
|
) => void;
|
|
@@ -13237,6 +13277,8 @@ export interface DialogChainObject {
|
|
|
13237
13277
|
}
|
|
13238
13278
|
|
|
13239
13279
|
import { CookiesGetMethodType } from "./api";
|
|
13280
|
+
import { QDialogInputPrompt } from "./api";
|
|
13281
|
+
import { QDialogSelectionPrompt } from "./api";
|
|
13240
13282
|
export interface QDialogOptions {
|
|
13241
13283
|
/**
|
|
13242
13284
|
* CSS Class name to apply to the Dialog's QCard
|
|
@@ -13266,95 +13308,11 @@ export interface QDialogOptions {
|
|
|
13266
13308
|
/**
|
|
13267
13309
|
* An object definition of the input field for the prompting question.
|
|
13268
13310
|
*/
|
|
13269
|
-
prompt?:
|
|
13270
|
-
/**
|
|
13271
|
-
* The initial value of the input
|
|
13272
|
-
*/
|
|
13273
|
-
model: string;
|
|
13274
|
-
/**
|
|
13275
|
-
* Optional property to determine the input field type
|
|
13276
|
-
* Default value: text
|
|
13277
|
-
*/
|
|
13278
|
-
type?: string;
|
|
13279
|
-
/**
|
|
13280
|
-
* Is typed content valid?
|
|
13281
|
-
* @param val The value of the input
|
|
13282
|
-
* @returns The text passed validation or not
|
|
13283
|
-
*/
|
|
13284
|
-
isValid?: (val: string) => boolean;
|
|
13285
|
-
/**
|
|
13286
|
-
* Attributes to pass to prompt control
|
|
13287
|
-
*/
|
|
13288
|
-
attrs?: any;
|
|
13289
|
-
/**
|
|
13290
|
-
* A text label that will “float” up above the input field, once the field gets focus
|
|
13291
|
-
*/
|
|
13292
|
-
label?: string;
|
|
13293
|
-
/**
|
|
13294
|
-
* Label will be always shown above the field regardless of field content (if any)
|
|
13295
|
-
*/
|
|
13296
|
-
stackLabel?: boolean;
|
|
13297
|
-
/**
|
|
13298
|
-
* Use 'filled' design for the field
|
|
13299
|
-
*/
|
|
13300
|
-
filled?: boolean;
|
|
13301
|
-
/**
|
|
13302
|
-
* Use 'outlined' design for the field
|
|
13303
|
-
*/
|
|
13304
|
-
outlined?: boolean;
|
|
13305
|
-
/**
|
|
13306
|
-
* Use 'standout' design for the field; Specifies classes to be applied when focused (overriding default ones)
|
|
13307
|
-
*/
|
|
13308
|
-
standout?: boolean | string;
|
|
13309
|
-
/**
|
|
13310
|
-
* Applies a small standard border-radius for a squared shape of the component
|
|
13311
|
-
*/
|
|
13312
|
-
rounded?: boolean;
|
|
13313
|
-
/**
|
|
13314
|
-
* Remove border-radius so borders are squared; Overrides 'rounded' prop
|
|
13315
|
-
*/
|
|
13316
|
-
square?: boolean;
|
|
13317
|
-
/**
|
|
13318
|
-
* Show an automatic counter on bottom right
|
|
13319
|
-
*/
|
|
13320
|
-
counter?: boolean;
|
|
13321
|
-
/**
|
|
13322
|
-
* Specify a max length of model
|
|
13323
|
-
*/
|
|
13324
|
-
maxlength?: string | number;
|
|
13325
|
-
/**
|
|
13326
|
-
* Prefix
|
|
13327
|
-
*/
|
|
13328
|
-
prefix?: string;
|
|
13329
|
-
/**
|
|
13330
|
-
* Suffix
|
|
13331
|
-
*/
|
|
13332
|
-
suffix?: string;
|
|
13333
|
-
};
|
|
13311
|
+
prompt?: QDialogInputPrompt;
|
|
13334
13312
|
/**
|
|
13335
13313
|
* An object definition for creating the selection form content
|
|
13336
13314
|
*/
|
|
13337
|
-
options?:
|
|
13338
|
-
/**
|
|
13339
|
-
* The value of the selection (String if it's of type radio or Array otherwise)
|
|
13340
|
-
*/
|
|
13341
|
-
model: string | readonly any[];
|
|
13342
|
-
/**
|
|
13343
|
-
* The type of selection
|
|
13344
|
-
* Default value: radio
|
|
13345
|
-
*/
|
|
13346
|
-
type?: "radio" | "checkbox" | "toggle";
|
|
13347
|
-
/**
|
|
13348
|
-
* The list of options to interact with; Equivalent to options prop of the QOptionsGroup component
|
|
13349
|
-
*/
|
|
13350
|
-
items?: readonly any[];
|
|
13351
|
-
/**
|
|
13352
|
-
* Is the model valid?
|
|
13353
|
-
* @param model The current model (String if it's of type radio or Array otherwise)
|
|
13354
|
-
* @returns The selection passed validation or not
|
|
13355
|
-
*/
|
|
13356
|
-
isValid?: (model: string | readonly any[]) => boolean;
|
|
13357
|
-
};
|
|
13315
|
+
options?: QDialogSelectionPrompt;
|
|
13358
13316
|
/**
|
|
13359
13317
|
* Display a Quasar spinner (if value is true, then the defaults are used); Useful for conveying the idea that something is happening behind the covers; Tip: use along with persistent, ok: false and update() method
|
|
13360
13318
|
*/
|
|
@@ -13718,6 +13676,7 @@ import { VueStyleObjectProp } from "./api";
|
|
|
13718
13676
|
import { QEditorCaret } from "./api";
|
|
13719
13677
|
import { ValidationRule } from "./api";
|
|
13720
13678
|
import { QRejectedEntry } from "./api";
|
|
13679
|
+
import { QPopupProxyInnerComponent } from "./api";
|
|
13721
13680
|
import { SliderMarkerLabels } from "./api";
|
|
13722
13681
|
import { SliderMarkerLabelConfig } from "./api";
|
|
13723
13682
|
import { SliderMarkerLabelArrayConfig } from "./api";
|
|
@@ -2799,6 +2799,10 @@
|
|
|
2799
2799
|
"type": "boolean",
|
|
2800
2800
|
"description": "Applies a material design-like padding on top and bottom"
|
|
2801
2801
|
},
|
|
2802
|
+
"q-list/tag": {
|
|
2803
|
+
"type": "string",
|
|
2804
|
+
"description": "HTML tag to use"
|
|
2805
|
+
},
|
|
2802
2806
|
"q-knob/name": {
|
|
2803
2807
|
"type": "string",
|
|
2804
2808
|
"description": "Used to specify the name of the control; Useful if dealing with forms submitted directly to a URL"
|