@quidgest/ui 0.29.0 → 0.30.0
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/CHANGELOG.md +59 -0
- package/README.md +2 -20
- package/dist/json/api.json +1059 -803
- package/dist/ui.css +77 -29
- package/dist/ui.esm.js +1093 -994
- package/dist/ui.min.css +1 -1
- package/dist/ui.scss +75 -24
- package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
- package/esm/components/QAccordion/QAccordion.vue.js +2 -0
- package/esm/components/QAccordion/QAccordionItem.d.ts.map +1 -1
- package/esm/components/QAccordion/QAccordionItem.vue.js +3 -0
- package/esm/components/QAccordion/index.d.ts +3 -0
- package/esm/components/QAccordion/index.d.ts.map +1 -1
- package/esm/components/QAccordion/types.d.ts +8 -0
- package/esm/components/QAccordion/types.d.ts.map +1 -1
- package/esm/components/QAlert/QAlert.d.ts +1 -1
- package/esm/components/QAlert/index.d.ts +3 -3
- package/esm/components/QAvatar/QAvatar.d.ts +1 -1
- package/esm/components/QAvatar/index.d.ts +3 -3
- package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts.map +1 -1
- package/esm/components/QBadgeIndicator/QBadgeIndicator.vue.js +23 -13
- package/esm/components/QBadgeIndicator/types.d.ts +13 -0
- package/esm/components/QBadgeIndicator/types.d.ts.map +1 -1
- package/esm/components/QBreadcrumbs/QBreadcrumbs.d.ts.map +1 -1
- package/esm/components/QBreadcrumbs/QBreadcrumbs.vue.js +31 -31
- package/esm/components/QButton/QButton.d.ts.map +1 -1
- package/esm/components/QButton/QButton.vue.js +54 -48
- package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
- package/esm/components/QCard/QCard.d.ts.map +1 -1
- package/esm/components/QCard/QCard.vue.js +48 -32
- package/esm/components/QCard/types.d.ts +9 -0
- package/esm/components/QCard/types.d.ts.map +1 -1
- package/esm/components/QCarousel/QCarousel.d.ts +1 -0
- package/esm/components/QCarousel/QCarousel.d.ts.map +1 -1
- package/esm/components/QCarousel/QCarousel.vue.js +84 -80
- package/esm/components/QCarousel/index.d.ts +6 -0
- package/esm/components/QCarousel/index.d.ts.map +1 -1
- package/esm/components/QCarousel/types.d.ts +9 -1
- package/esm/components/QCarousel/types.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.vue.js +9 -1
- package/esm/components/QCheckbox/index.d.ts +3 -0
- package/esm/components/QCheckbox/index.d.ts.map +1 -1
- package/esm/components/QCheckbox/types.d.ts +8 -0
- package/esm/components/QCheckbox/types.d.ts.map +1 -1
- package/esm/components/QCollapsible/QCollapsible.d.ts +1 -0
- package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
- package/esm/components/QCollapsible/QCollapsible.vue.js +55 -47
- package/esm/components/QCollapsible/index.d.ts +6 -0
- package/esm/components/QCollapsible/index.d.ts.map +1 -1
- package/esm/components/QCollapsible/types.d.ts +9 -0
- package/esm/components/QCollapsible/types.d.ts.map +1 -1
- package/esm/components/QColorPicker/QColorPicker.d.ts.map +1 -1
- package/esm/components/QColorPicker/QColorPicker.vue.js +4 -1
- package/esm/components/QColorPicker/index.d.ts +3 -0
- package/esm/components/QColorPicker/index.d.ts.map +1 -1
- package/esm/components/QColorPicker/types.d.ts +7 -0
- package/esm/components/QColorPicker/types.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.d.ts +7 -0
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +258 -235
- package/esm/components/QCombobox/constants.d.ts +1 -0
- package/esm/components/QCombobox/constants.d.ts.map +1 -1
- package/esm/components/QCombobox/constants.js +1 -0
- package/esm/components/QCombobox/index.d.ts +11 -0
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts +180 -0
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +637 -542
- package/esm/components/QDateTimePicker/index.d.ts +90 -0
- package/esm/components/QDateTimePicker/index.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +2 -0
- package/esm/components/QDialog/types.d.ts +3 -1
- package/esm/components/QDialog/types.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenu.d.ts +3 -1
- package/esm/components/QDropdownMenu/QDropdownMenu.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenu.vue.js +84 -27
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +9 -2
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +168 -135
- package/esm/components/QDropdownMenu/ids.d.ts +8 -0
- package/esm/components/QDropdownMenu/ids.d.ts.map +1 -0
- package/esm/components/QDropdownMenu/ids.js +6 -0
- package/esm/components/QDropdownMenu/index.d.ts +9 -3
- package/esm/components/QDropdownMenu/index.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/types.d.ts +3 -1
- package/esm/components/QDropdownMenu/types.d.ts.map +1 -1
- package/esm/components/QField/QField.d.ts +2 -0
- package/esm/components/QField/QField.d.ts.map +1 -1
- package/esm/components/QField/QField.vue.js +68 -61
- package/esm/components/QField/ids.d.ts +15 -0
- package/esm/components/QField/ids.d.ts.map +1 -0
- package/esm/components/QField/ids.js +10 -0
- package/esm/components/QField/index.d.ts +2 -0
- package/esm/components/QField/index.d.ts.map +1 -1
- package/esm/components/QFileUpload/QFileUpload.d.ts +355 -0
- package/esm/components/QFileUpload/QFileUpload.d.ts.map +1 -1
- package/esm/components/QFileUpload/QFileUpload.vue.js +118 -88
- package/esm/components/QFileUpload/constants.d.ts +2 -0
- package/esm/components/QFileUpload/constants.d.ts.map +1 -1
- package/esm/components/QFileUpload/constants.js +3 -1
- package/esm/components/QFileUpload/index.d.ts +182 -0
- package/esm/components/QFileUpload/index.d.ts.map +1 -1
- package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
- package/esm/components/QIcon/QIconFont.vue.js +2 -1
- package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconImg.vue.js +1 -0
- package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.d.ts +5 -0
- package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.vue.js +48 -41
- package/esm/components/QInputGroup/index.d.ts +3 -0
- package/esm/components/QInputGroup/index.d.ts.map +1 -1
- package/esm/components/QLabel/QLabel.d.ts.map +1 -1
- package/esm/components/QLabel/QLabel.vue.js +21 -19
- package/esm/components/QLabel/ids.d.ts +9 -0
- package/esm/components/QLabel/ids.d.ts.map +1 -0
- package/esm/components/QLabel/ids.js +6 -0
- package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
- package/esm/components/QLineLoader/QLineLoader.vue.js +15 -14
- package/esm/components/QList/QList.d.ts +3 -3
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +135 -117
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +54 -50
- package/esm/components/QList/context.d.ts +8 -0
- package/esm/components/QList/context.d.ts.map +1 -0
- package/esm/components/QList/context.js +4 -0
- package/esm/components/QMeter/QMeter.d.ts.map +1 -1
- package/esm/components/QMeter/QMeter.vue.js +38 -19
- package/esm/components/QMeter/index.d.ts +2 -10
- package/esm/components/QMeter/index.d.ts.map +1 -1
- package/esm/components/QMeter/types.d.ts +9 -1
- package/esm/components/QMeter/types.d.ts.map +1 -1
- package/esm/components/QObfuscation/QObfuscation.d.ts.map +1 -1
- package/esm/components/QObfuscation/QObfuscation.vue.js +42 -26
- package/esm/components/QObfuscation/index.d.ts.map +1 -1
- package/esm/components/QOverflow/QOverflow.d.ts.map +1 -1
- package/esm/components/QOverflow/QOverflow.vue.js +94 -73
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +162 -132
- package/esm/components/QPasswordField/QPasswordField.d.ts +4 -0
- package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordField.vue.js +72 -66
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +4 -2
- package/esm/components/QPasswordField/index.d.ts +2 -0
- package/esm/components/QPasswordField/index.d.ts.map +1 -1
- package/esm/components/QPasswordField/types.d.ts +4 -0
- package/esm/components/QPasswordField/types.d.ts.map +1 -1
- package/esm/components/QPhoneField/QPhoneField.d.ts +34 -3
- package/esm/components/QPhoneField/QPhoneField.d.ts.map +1 -1
- package/esm/components/QPhoneField/QPhoneField.vue.js +98 -102
- package/esm/components/QPhoneField/constants.d.ts +2 -1
- package/esm/components/QPhoneField/constants.d.ts.map +1 -1
- package/esm/components/QPhoneField/constants.js +1 -1
- package/esm/components/QPhoneField/index.d.ts +26 -8
- package/esm/components/QPhoneField/index.d.ts.map +1 -1
- package/esm/components/QPhoneField/types.d.ts +5 -2
- package/esm/components/QPhoneField/types.d.ts.map +1 -1
- package/esm/components/QPopover/QPopover.d.ts +1 -1
- package/esm/components/QPopover/index.d.ts +3 -3
- package/esm/components/QProgress/QProgress.d.ts.map +1 -1
- package/esm/components/QProgress/QProgress.vue.js +1 -1
- package/esm/components/QPropertyList/QPropertyList.vue.js +1 -1
- package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
- package/esm/components/QPropertyList/index.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioButton.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioButton.vue.js +1 -1
- package/esm/components/QRadioGroup/QRadioGroup.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioGroup.vue.js +53 -41
- package/esm/components/QRemoveScrollBar/utils/gap.d.ts.map +1 -1
- package/esm/components/QSection/QSection.d.ts.map +1 -1
- package/esm/components/QSection/QSection.vue.js +3 -2
- package/esm/components/QSection/types.d.ts +3 -4
- package/esm/components/QSection/types.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.d.ts +6 -0
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +405 -355
- package/esm/components/QSelect/constants.d.ts +2 -0
- package/esm/components/QSelect/constants.d.ts.map +1 -1
- package/esm/components/QSelect/constants.js +3 -1
- package/esm/components/QSelect/index.d.ts +8 -0
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarItem.d.ts +1 -0
- package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarItem.vue.js +3 -0
- package/esm/components/QSidebar/QSidebarPanel.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarPanel.vue.js +93 -32
- package/esm/components/QSidebar/index.d.ts +3 -0
- package/esm/components/QSidebar/index.d.ts.map +1 -1
- package/esm/components/QSidebar/types.d.ts +20 -1
- package/esm/components/QSidebar/types.d.ts.map +1 -1
- package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
- package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +16 -15
- package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
- package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +11 -10
- package/esm/components/QSteps/QSteps.d.ts +3 -2
- package/esm/components/QSteps/QSteps.d.ts.map +1 -1
- package/esm/components/QSteps/QSteps.vue.js +171 -152
- package/esm/components/QSteps/QStepsNav.d.ts +7 -0
- package/esm/components/QSteps/QStepsNav.d.ts.map +1 -1
- package/esm/components/QSteps/QStepsNav.vue.js +29 -15
- package/esm/components/QSteps/constants.d.ts +4 -2
- package/esm/components/QSteps/constants.d.ts.map +1 -1
- package/esm/components/QSteps/constants.js +2 -0
- package/esm/components/QSwitch/QSwitch.d.ts +2 -0
- package/esm/components/QSwitch/QSwitch.d.ts.map +1 -1
- package/esm/components/QSwitch/QSwitch.vue.js +12 -2
- package/esm/components/QSwitch/index.d.ts +4 -0
- package/esm/components/QSwitch/index.d.ts.map +1 -1
- package/esm/components/QSwitch/types.d.ts +8 -0
- package/esm/components/QSwitch/types.d.ts.map +1 -1
- package/esm/components/QTabs/QTab.d.ts.map +1 -1
- package/esm/components/QTabs/QTab.vue.js +1 -0
- package/esm/components/QTextArea/QTextArea.d.ts.map +1 -1
- package/esm/components/QTextArea/QTextArea.vue.js +6 -2
- package/esm/components/QTextField/QTextField.d.ts +4 -0
- package/esm/components/QTextField/QTextField.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.vue.js +5 -3
- package/esm/components/QTextField/index.d.ts +2 -0
- package/esm/components/QTextField/index.d.ts.map +1 -1
- package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
- package/esm/components/QToast/QToast.d.ts +1 -0
- package/esm/components/QToast/QToast.d.ts.map +1 -1
- package/esm/components/QToast/QToast.vue.js +89 -85
- package/esm/components/QToast/index.d.ts +6 -0
- package/esm/components/QToast/index.d.ts.map +1 -1
- package/esm/components/QToast/types.d.ts +8 -0
- package/esm/components/QToast/types.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.vue.js +19 -11
- package/esm/components/__internal__/QClearButton/QClearButton.d.ts.map +1 -1
- package/esm/components/__internal__/QHelpPopover/QHelpPopover.d.ts.map +1 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/utils/focus.d.ts +10 -0
- package/esm/utils/focus.d.ts.map +1 -1
- package/esm/utils/focus.js +5 -2
- package/esm/utils/loader.d.ts +19 -0
- package/esm/utils/loader.d.ts.map +1 -0
- package/esm/utils/loader.js +6 -0
- package/package.json +24 -23
- package/dist/ui.js +0 -1846
- package/dist/ui.min.js +0 -1846
|
@@ -9,6 +9,7 @@ declare const QSwitch: import('vue').DefineComponent<{
|
|
|
9
9
|
size?: import('../..').QComponentSize;
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
readonly?: boolean;
|
|
12
|
+
invalid?: boolean;
|
|
12
13
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
14
|
"update:modelValue": (value: boolean) => any;
|
|
14
15
|
}, string, import('vue').PublicProps, Readonly<{
|
|
@@ -22,6 +23,7 @@ declare const QSwitch: import('vue').DefineComponent<{
|
|
|
22
23
|
size?: import('../..').QComponentSize;
|
|
23
24
|
disabled?: boolean;
|
|
24
25
|
readonly?: boolean;
|
|
26
|
+
invalid?: boolean;
|
|
25
27
|
}> & Readonly<{
|
|
26
28
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
27
29
|
}>, {
|
|
@@ -214,10 +216,12 @@ declare const QSwitch: import('vue').DefineComponent<{
|
|
|
214
216
|
'label.append'?(_: {}): any;
|
|
215
217
|
control?(_: {
|
|
216
218
|
describedBy: string | undefined;
|
|
219
|
+
invalid: boolean;
|
|
217
220
|
}): any;
|
|
218
221
|
prepend?(_: {}): any;
|
|
219
222
|
default?(_: {
|
|
220
223
|
describedBy: string | undefined;
|
|
224
|
+
invalid: boolean;
|
|
221
225
|
}): any;
|
|
222
226
|
append?(_: {}): any;
|
|
223
227
|
extras?(_: {}): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QSwitch/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QSwitch/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAOq70B,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAP/g1B,CAAA;AAGzC,OAAO,EAAE,OAAO,EAAE,CAAA;AAGlB,cAAc,SAAS,CAAA"}
|
|
@@ -54,5 +54,13 @@ export type QSwitchProps = Omit<QLabelProps, 'for'> & QFieldHelpProps & {
|
|
|
54
54
|
* @category State
|
|
55
55
|
*/
|
|
56
56
|
readonly?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Whether the switch is invalid: the track takes a danger outline, and assistive
|
|
59
|
+
* technology reads it as invalid. Say why in `help`, since the outline alone shows it
|
|
60
|
+
* only in color.
|
|
61
|
+
*
|
|
62
|
+
* @category State
|
|
63
|
+
*/
|
|
64
|
+
invalid?: boolean;
|
|
57
65
|
};
|
|
58
66
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QSwitch/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAE5C;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,GAClD,eAAe,GAAG;IACjB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IAEzB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IAErB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IAEvB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,cAAc,CAAA;IAErB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QSwitch/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAE5C;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,GAClD,eAAe,GAAG;IACjB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IAEzB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IAErB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IAEvB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,cAAc,CAAA;IAErB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QTab.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTabs/QTab.vue"],"names":[],"mappings":"AAmDA;
|
|
1
|
+
{"version":3,"file":"QTab.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTabs/QTab.vue"],"names":[],"mappings":"AAmDA;AAkPC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,GAAG,CAAA;AA4KnC,iBAAS,cAAc;WA+HT,OAAO,IAA6B;;iCAdZ,GAAG;uBACb,GAAG;gCACM,GAAG;yBACV,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA8Dk5T,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;EA9CxiU;AAuBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAsB85T,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;OAfviU,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -50,6 +50,7 @@ var A = { class: "q-tab__title" }, j = { class: "q-tab__title-text" }, M = [
|
|
|
50
50
|
Y();
|
|
51
51
|
}
|
|
52
52
|
function Z(e) {
|
|
53
|
+
if (e.altKey || e.ctrlKey || e.metaKey) return;
|
|
53
54
|
let t = F?.direction.value === "horizontal";
|
|
54
55
|
if (t && e.key === "ArrowRight" || !t && e.key === "ArrowDown") {
|
|
55
56
|
e.preventDefault(), F?.focusAdjacent(I.value, 1);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QTextArea.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTextArea/QTextArea.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QTextArea.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTextArea/QTextArea.vue"],"names":[],"mappings":"AA0DA;AAwIC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,GAAG,CAAA;AAMvC,KAAK,WAAW,GAAG,cAAc,CAAC;AA6DnC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA+HT,OAAO,IAA6B;;iCAhBb,GAAG;gCACJ,GAAG;yBACV,GAAG;wBACJ,GAAG;wBACF,GAAG;;;;;;EAiB/B;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;OASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -15,6 +15,7 @@ var w = [
|
|
|
15
15
|
"cols",
|
|
16
16
|
"resize",
|
|
17
17
|
"wrap",
|
|
18
|
+
"aria-invalid",
|
|
18
19
|
"aria-describedby"
|
|
19
20
|
], T = /*@__PURE__*/ c({
|
|
20
21
|
inheritAttrs: !1,
|
|
@@ -70,6 +71,7 @@ var w = [
|
|
|
70
71
|
readonly: l.readonly,
|
|
71
72
|
disabled: l.disabled,
|
|
72
73
|
required: l.required,
|
|
74
|
+
invalid: l.invalid,
|
|
73
75
|
help: l.help,
|
|
74
76
|
"help-display": l.helpDisplay,
|
|
75
77
|
icons: l.icons,
|
|
@@ -77,7 +79,7 @@ var w = [
|
|
|
77
79
|
}, s({
|
|
78
80
|
"label.prepend": S(() => [h(e.$slots, "label.prepend")]),
|
|
79
81
|
"label.append": S(() => [h(e.$slots, "label.append")]),
|
|
80
|
-
default: S(({ describedBy: n }) => [C(o("textarea", u({
|
|
82
|
+
default: S(({ describedBy: n, invalid: i }) => [C(o("textarea", u({
|
|
81
83
|
id: j.value,
|
|
82
84
|
ref_key: "textareaRef",
|
|
83
85
|
ref: M,
|
|
@@ -91,7 +93,8 @@ var w = [
|
|
|
91
93
|
rows: l.rows,
|
|
92
94
|
cols: l.cols,
|
|
93
95
|
resize: l.resize,
|
|
94
|
-
wrap: l.wrap
|
|
96
|
+
wrap: l.wrap,
|
|
97
|
+
"aria-invalid": i || void 0
|
|
95
98
|
}, e.$attrs, { "aria-describedby": _(t)(n, k.value) }), null, 16, w), [[b, E.value]])]),
|
|
96
99
|
_: 2
|
|
97
100
|
}, [
|
|
@@ -120,6 +123,7 @@ var w = [
|
|
|
120
123
|
"readonly",
|
|
121
124
|
"disabled",
|
|
122
125
|
"required",
|
|
126
|
+
"invalid",
|
|
123
127
|
"help",
|
|
124
128
|
"help-display",
|
|
125
129
|
"icons",
|
|
@@ -198,10 +198,12 @@ declare function __VLS_template(): {
|
|
|
198
198
|
'label.append'?(_: {}): any;
|
|
199
199
|
control?(_: {
|
|
200
200
|
describedBy: string | undefined;
|
|
201
|
+
invalid: boolean;
|
|
201
202
|
}): any;
|
|
202
203
|
prepend?(_: {}): any;
|
|
203
204
|
default?(_: {
|
|
204
205
|
describedBy: string | undefined;
|
|
206
|
+
invalid: boolean;
|
|
205
207
|
}): any;
|
|
206
208
|
append?(_: {}): any;
|
|
207
209
|
extras?(_: {}): any;
|
|
@@ -428,10 +430,12 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
428
430
|
'label.append'?(_: {}): any;
|
|
429
431
|
control?(_: {
|
|
430
432
|
describedBy: string | undefined;
|
|
433
|
+
invalid: boolean;
|
|
431
434
|
}): any;
|
|
432
435
|
prepend?(_: {}): any;
|
|
433
436
|
default?(_: {
|
|
434
437
|
describedBy: string | undefined;
|
|
438
|
+
invalid: boolean;
|
|
435
439
|
}): any;
|
|
436
440
|
append?(_: {}): any;
|
|
437
441
|
extras?(_: {}): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QTextField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/QTextField.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QTextField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/QTextField.vue"],"names":[],"mappings":"AA+DA;AAmKC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,GAAG,CAAA;AAMxC,KAAK,WAAW,GAAG,eAAe,CAAC;AAkFpC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAyJT,OAAO,IAA6B;;iCAjBb,GAAG;gCACJ,GAAG;yBACV,GAAG;wBACH,GAAG;wBACH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDAsE03Y,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EApD/gZ;AAoBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDA+Bq4Y,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;OArB9gZ,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -13,6 +13,7 @@ var E = [
|
|
|
13
13
|
"placeholder",
|
|
14
14
|
"readonly",
|
|
15
15
|
"disabled",
|
|
16
|
+
"aria-invalid",
|
|
16
17
|
"aria-describedby"
|
|
17
18
|
], D = /*@__PURE__*/ d({
|
|
18
19
|
inheritAttrs: !1,
|
|
@@ -52,7 +53,7 @@ var E = [
|
|
|
52
53
|
C(O, (e) => k.value = e, { immediate: !0 });
|
|
53
54
|
let A = e(_(f, "id")), j = y(), M = o(() => typeof j["aria-describedby"] == "string" ? j["aria-describedby"] : void 0), N = x("field"), P = x("input"), F = o(() => `${A.value}_input`), I = o(() => f.readonly || f.disabled ? void 0 : f.placeholder), L = o(() => f.clearable && !f.readonly && !f.disabled), R = o(() => L.value && O.value);
|
|
54
55
|
function z(e) {
|
|
55
|
-
L.value && (O.value = "", D("click:clear", e));
|
|
56
|
+
L.value && (O.value = "", P.value?.focus(), D("click:clear", e));
|
|
56
57
|
}
|
|
57
58
|
return i({
|
|
58
59
|
fieldRef: o(() => N.value?.fieldRef),
|
|
@@ -76,7 +77,7 @@ var E = [
|
|
|
76
77
|
}, u({
|
|
77
78
|
"label.prepend": w(() => [g(e.$slots, "label.prepend")]),
|
|
78
79
|
"label.append": w(() => [g(e.$slots, "label.append")]),
|
|
79
|
-
default: w(({ describedBy: n }) => [T(l("input", p({
|
|
80
|
+
default: w(({ describedBy: n, invalid: i }) => [T(l("input", p({
|
|
80
81
|
id: F.value,
|
|
81
82
|
ref: "input",
|
|
82
83
|
"onUpdate:modelValue": r[0] ||= (e) => k.value = e,
|
|
@@ -86,7 +87,8 @@ var E = [
|
|
|
86
87
|
required: f.required,
|
|
87
88
|
placeholder: I.value,
|
|
88
89
|
readonly: f.readonly,
|
|
89
|
-
disabled: f.disabled
|
|
90
|
+
disabled: f.disabled,
|
|
91
|
+
"aria-invalid": i || void 0
|
|
90
92
|
}, e.$attrs, { "aria-describedby": v(t)(n, M.value) }), null, 16, E), [[S, k.value]])]),
|
|
91
93
|
_: 2
|
|
92
94
|
}, [
|
|
@@ -235,10 +235,12 @@ declare const QTextField: {
|
|
|
235
235
|
'label.append'?(_: {}): any;
|
|
236
236
|
control?(_: {
|
|
237
237
|
describedBy: string | undefined;
|
|
238
|
+
invalid: boolean;
|
|
238
239
|
}): any;
|
|
239
240
|
prepend?(_: {}): any;
|
|
240
241
|
default?(_: {
|
|
241
242
|
describedBy: string | undefined;
|
|
243
|
+
invalid: boolean;
|
|
242
244
|
}): any;
|
|
243
245
|
append?(_: {}): any;
|
|
244
246
|
extras?(_: {}): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDAUk20B,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDAUk20B,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAVz70B,CAAA;AAG/C,OAAO,EAAE,UAAU,EAAE,CAAA;AAGrB,cAAc,SAAS,CAAA;AAGvB,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QThemeProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QThemeProvider/QThemeProvider.vue"],"names":[],"mappings":"AAOA;AAiEC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,GAAG,CAAA;AA+C7C,iBAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"QThemeProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QThemeProvider/QThemeProvider.vue"],"names":[],"mappings":"AAOA;AAiEC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,GAAG,CAAA;AA+C7C,iBAAS,cAAc;WAwBT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6TAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -23,6 +23,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
23
23
|
}>, {
|
|
24
24
|
color: string;
|
|
25
25
|
variant: import('./types').QToastVariant;
|
|
26
|
+
headingLevel: number;
|
|
26
27
|
icons: typeof DEFAULT_ICONS;
|
|
27
28
|
texts: typeof DEFAULT_TEXTS;
|
|
28
29
|
elevation: import('..').QCardElevation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QToast.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/QToast.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QToast.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/QToast.vue"],"names":[],"mappings":"AAuHA;AA6WC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAc1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,GAAG,CAAA;AAQpC,KAAK,WAAW,GAAG,WAAW,GAAG,EAG9B,CAAC;AAqOL,iBAAS,cAAc;WA+TT,OAAO,IAA6B;;sBAhBvB,GAAG;sBAIH,GAAG;iCAHQ,GAAG;gCACJ,GAAG;yBACV,GAAG;yBAGF,GAAG;yBADJ,GAAG;;;;EAgBhC;AA0BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;cArkBN,MAAM;;6EA8kBnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { useId as e } from "../../composables/useId/index.js";
|
|
2
2
|
import { rgbToHex as t } from "../../utils/color/conversion.js";
|
|
3
3
|
import { lighten as n } from "../../utils/color/manipulate.js";
|
|
4
|
-
import { parseColor as
|
|
5
|
-
import { ensureContrast as
|
|
6
|
-
import { useColor as
|
|
7
|
-
import { QIcon as
|
|
8
|
-
import { QButton as
|
|
9
|
-
import { QCard as
|
|
10
|
-
import { getDefaultLive as
|
|
4
|
+
import { parseColor as r } from "../../utils/color/parse.js";
|
|
5
|
+
import { ensureContrast as i } from "../../utils/color/contrast.js";
|
|
6
|
+
import { useColor as a } from "../../composables/useColor/index.js";
|
|
7
|
+
import { QIcon as o } from "../QIcon/index.js";
|
|
8
|
+
import { QButton as s } from "../QButton/index.js";
|
|
9
|
+
import { QCard as ee } from "../QCard/index.js";
|
|
10
|
+
import { getDefaultLive as te, isSeverity as ne } from "../../utils/severity.js";
|
|
11
11
|
import { QCol as c, QContainer as l, QRow as u } from "../QGrid/index.js";
|
|
12
|
-
import { ToastSymbol as
|
|
13
|
-
import { DEFAULT_ICONS as
|
|
14
|
-
import { ToasterSymbol as
|
|
15
|
-
import { computed as
|
|
12
|
+
import { ToastSymbol as d } from "../../composables/useToast/_internal.js";
|
|
13
|
+
import { DEFAULT_ICONS as f, DEFAULT_TEXTS as p } from "./constants.js";
|
|
14
|
+
import { ToasterSymbol as m } from "./context.js";
|
|
15
|
+
import { computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createSlots as re, createTextVNode as ie, createVNode as b, defineComponent as x, guardReactiveProps as S, inject as C, mergeProps as w, normalizeClass as T, normalizeProps as E, normalizeStyle as ae, onMounted as oe, onUnmounted as se, openBlock as D, renderSlot as O, resolveDynamicComponent as k, toDisplayString as A, toRef as j, unref as M, watch as ce, withCtx as N } from "vue";
|
|
16
16
|
//#region src/components/QToast/QToast.vue?vue&type=script&setup=true&lang.ts
|
|
17
|
-
var
|
|
17
|
+
var le = {
|
|
18
18
|
class: "q-toast__icon",
|
|
19
19
|
"aria-hidden": "true"
|
|
20
|
-
},
|
|
20
|
+
}, ue = { class: "q-toast__title" }, P = {
|
|
21
21
|
key: 0,
|
|
22
22
|
class: "q-sr-only"
|
|
23
23
|
}, F = {
|
|
@@ -26,12 +26,13 @@ var se = {
|
|
|
26
26
|
}, I = {
|
|
27
27
|
key: 0,
|
|
28
28
|
class: "q-sr-only"
|
|
29
|
-
}, L = /*@__PURE__*/
|
|
29
|
+
}, L = /*@__PURE__*/ x({
|
|
30
30
|
__name: "QToast",
|
|
31
31
|
props: {
|
|
32
32
|
id: {},
|
|
33
33
|
class: {},
|
|
34
34
|
title: {},
|
|
35
|
+
headingLevel: { default: 4 },
|
|
35
36
|
text: {},
|
|
36
37
|
block: { type: Boolean },
|
|
37
38
|
color: { default: "info" },
|
|
@@ -39,115 +40,115 @@ var se = {
|
|
|
39
40
|
variant: { default: "tonal" },
|
|
40
41
|
timeout: { default: 5e3 },
|
|
41
42
|
live: {},
|
|
42
|
-
icons: { default: () =>
|
|
43
|
-
texts: { default: () =>
|
|
43
|
+
icons: { default: () => f },
|
|
44
|
+
texts: { default: () => p },
|
|
44
45
|
entryKey: { default: void 0 }
|
|
45
46
|
},
|
|
46
47
|
emits: ["dismiss"],
|
|
47
|
-
setup(
|
|
48
|
-
let
|
|
49
|
-
if (
|
|
50
|
-
let e =
|
|
51
|
-
z?.registerToastEntry(e, R.value),
|
|
48
|
+
setup(f, { emit: p }) {
|
|
49
|
+
let x = f, L = p, R = e(j(x, "id")), z = x.entryKey ? C(d, null) : null;
|
|
50
|
+
if (x.entryKey) {
|
|
51
|
+
let e = x.entryKey;
|
|
52
|
+
z?.registerToastEntry(e, R.value), ce(R, (t) => {
|
|
52
53
|
z?.updateToastEntryId(e, t);
|
|
53
54
|
});
|
|
54
55
|
}
|
|
55
|
-
let B =
|
|
56
|
+
let B = C(m, null), { style: V } = a(j(x, "color")), H = h(() => ne(x.color) ? x.color : void 0), de = h(() => x.headingLevel >= 1 && x.headingLevel <= 6 ? `h${x.headingLevel}` : "div"), U = h(() => H.value ? x.icons[H.value] : void 0), W = h(() => x.live ?? te(x.color)), fe = h(() => {
|
|
56
57
|
if (!(B || W.value === "off")) return W.value === "assertive" ? "alert" : "status";
|
|
57
|
-
}), G =
|
|
58
|
-
H.value ?
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
}), G = h(() => [
|
|
59
|
+
H.value ? x.texts[H.value] : void 0,
|
|
60
|
+
x.title,
|
|
61
|
+
x.text
|
|
61
62
|
].filter(Boolean).join(" "));
|
|
62
|
-
function
|
|
63
|
+
function pe() {
|
|
63
64
|
let e = W.value;
|
|
64
|
-
!B || e === "off" || !G.value ||
|
|
65
|
+
!B || e === "off" || !G.value || x.entryKey && z && !z.markAnnounced(x.entryKey) || B.announce(G.value, e);
|
|
65
66
|
}
|
|
66
|
-
let
|
|
67
|
-
let e =
|
|
67
|
+
let me = h(() => {
|
|
68
|
+
let e = x.block ? "q-toast--block" : void 0, t = x.title ? "q-toast--vertical" : void 0;
|
|
68
69
|
return [
|
|
69
70
|
"q-toast",
|
|
70
|
-
`q-toast--${
|
|
71
|
+
`q-toast--${x.variant}`,
|
|
71
72
|
e,
|
|
72
73
|
t,
|
|
73
|
-
|
|
74
|
+
x.class
|
|
74
75
|
];
|
|
75
|
-
}), K =
|
|
76
|
+
}), K = h(() => {
|
|
76
77
|
let e = V.value?.mainColor;
|
|
77
|
-
if (e) return t(n(
|
|
78
|
-
}),
|
|
78
|
+
if (e) return t(n(r(e), 88));
|
|
79
|
+
}), he = h(() => {
|
|
79
80
|
let e = V.value?.mainColor;
|
|
80
|
-
if (!(!e || !K.value)) return
|
|
81
|
-
}),
|
|
81
|
+
if (!(!e || !K.value)) return i(e, K.value);
|
|
82
|
+
}), ge = h(() => V.value ? {
|
|
82
83
|
"--q-toast-main-color": V.value.mainColor,
|
|
83
84
|
"--q-toast-on-main-color": V.value.onMainColor,
|
|
84
85
|
"--q-toast-hover-color": V.value.hoverColor,
|
|
85
86
|
"--q-toast-text-color": V.value.textColor,
|
|
86
|
-
"--q-toast-tonal-text-color":
|
|
87
|
+
"--q-toast-tonal-text-color": he.value,
|
|
87
88
|
"--q-toast-tonal-color": K.value
|
|
88
|
-
} : {}), q =
|
|
89
|
+
} : {}), q = h(() => x.variant === "bold" ? "bold" : "ghost"), J = h(() => x.variant === "tonal" && V.value?.hoverColor ? V.value.hoverColor : x.color), Y, X, Z;
|
|
89
90
|
function Q() {
|
|
90
91
|
Y !== void 0 && (window.clearTimeout(Y), Y = void 0), X = void 0, Z = void 0, L("dismiss");
|
|
91
92
|
}
|
|
92
93
|
function $(e) {
|
|
93
94
|
Z = e, X = Date.now(), Y = window.setTimeout(Q, e);
|
|
94
95
|
}
|
|
95
|
-
return
|
|
96
|
-
if (
|
|
97
|
-
|
|
96
|
+
return oe(() => {
|
|
97
|
+
if (pe(), !x.entryKey) {
|
|
98
|
+
x.timeout > 0 && $(x.timeout);
|
|
98
99
|
return;
|
|
99
100
|
}
|
|
100
|
-
let e = z?.consumeRemainingTimeout(
|
|
101
|
+
let e = z?.consumeRemainingTimeout(x.entryKey);
|
|
101
102
|
if (e !== void 0) {
|
|
102
103
|
e > 0 ? $(e) : Q();
|
|
103
104
|
return;
|
|
104
105
|
}
|
|
105
|
-
|
|
106
|
-
}),
|
|
107
|
-
if (Y !== void 0 && (window.clearTimeout(Y),
|
|
106
|
+
x.timeout > 0 && $(x.timeout);
|
|
107
|
+
}), se(() => {
|
|
108
|
+
if (Y !== void 0 && (window.clearTimeout(Y), x.entryKey && z && X !== void 0 && Z !== void 0)) {
|
|
108
109
|
let e = Date.now() - X, t = Math.max(0, Z - e);
|
|
109
|
-
z.setRemainingTimeout(
|
|
110
|
+
z.setRemainingTimeout(x.entryKey, t);
|
|
110
111
|
}
|
|
111
|
-
}), (e, t) => (
|
|
112
|
-
id:
|
|
113
|
-
elevation:
|
|
114
|
-
width:
|
|
115
|
-
class:
|
|
116
|
-
style:
|
|
117
|
-
role:
|
|
118
|
-
},
|
|
119
|
-
default:
|
|
112
|
+
}), (e, t) => (D(), g(M(ee), {
|
|
113
|
+
id: M(R),
|
|
114
|
+
elevation: x.elevation,
|
|
115
|
+
width: x.block ? "block" : void 0,
|
|
116
|
+
class: T(me.value),
|
|
117
|
+
style: ae(ge.value),
|
|
118
|
+
role: fe.value
|
|
119
|
+
}, re({
|
|
120
|
+
default: N(() => [b(M(l), {
|
|
120
121
|
fluid: "",
|
|
121
122
|
class: "q-toast__body"
|
|
122
123
|
}, {
|
|
123
|
-
default:
|
|
124
|
+
default: N(() => [b(M(u), {
|
|
124
125
|
align: "center",
|
|
125
126
|
justify: "between"
|
|
126
127
|
}, {
|
|
127
|
-
default:
|
|
128
|
-
!
|
|
128
|
+
default: N(() => [
|
|
129
|
+
!x.title && (e.$slots.icon || U.value) ? (D(), g(M(c), {
|
|
129
130
|
key: 0,
|
|
130
131
|
cols: "auto"
|
|
131
132
|
}, {
|
|
132
|
-
default:
|
|
133
|
+
default: N(() => [y("span", F, [O(e.$slots, "icon", {}, () => [U.value ? (D(), g(M(o), E(w({ key: 0 }, U.value)), null, 16)) : _("v-if", !0)])])]),
|
|
133
134
|
_: 3
|
|
134
|
-
})) :
|
|
135
|
-
|
|
136
|
-
default:
|
|
135
|
+
})) : _("v-if", !0),
|
|
136
|
+
b(M(c), null, {
|
|
137
|
+
default: N(() => [H.value && !x.title ? (D(), v("span", I, A(x.texts[H.value]), 1)) : _("v-if", !0), O(e.$slots, "default", {}, () => [y("span", null, A(x.text), 1)])]),
|
|
137
138
|
_: 3
|
|
138
139
|
}),
|
|
139
|
-
|
|
140
|
+
x.title ? _("v-if", !0) : (D(), g(M(c), {
|
|
140
141
|
key: 1,
|
|
141
142
|
cols: "auto"
|
|
142
143
|
}, {
|
|
143
|
-
default:
|
|
144
|
+
default: N(() => [O(e.$slots, "dismiss", {}, () => [b(M(s), {
|
|
144
145
|
class: "q-toast__dismiss",
|
|
145
146
|
variant: q.value,
|
|
146
147
|
color: J.value,
|
|
147
|
-
"aria-label":
|
|
148
|
+
"aria-label": x.texts.dismiss,
|
|
148
149
|
onClick: Q
|
|
149
150
|
}, {
|
|
150
|
-
default:
|
|
151
|
+
default: N(() => [b(M(o), E(S(x.icons.close)), null, 16)]),
|
|
151
152
|
_: 1
|
|
152
153
|
}, 8, [
|
|
153
154
|
"variant",
|
|
@@ -162,40 +163,43 @@ var se = {
|
|
|
162
163
|
_: 3
|
|
163
164
|
})]),
|
|
164
165
|
_: 2
|
|
165
|
-
}, [
|
|
166
|
+
}, [x.title ? {
|
|
166
167
|
name: "header",
|
|
167
|
-
fn:
|
|
168
|
-
default:
|
|
168
|
+
fn: N(() => [b(M(l), { fluid: "" }, {
|
|
169
|
+
default: N(() => [b(M(u), {
|
|
169
170
|
align: "center",
|
|
170
171
|
justify: "between"
|
|
171
172
|
}, {
|
|
172
|
-
default:
|
|
173
|
-
|
|
174
|
-
e.$slots.icon || U.value ? (
|
|
173
|
+
default: N(() => [
|
|
174
|
+
_(" With a title, the icon sits next to it. Otherwise it sits next to the text. "),
|
|
175
|
+
e.$slots.icon || U.value ? (D(), g(M(c), {
|
|
175
176
|
key: 0,
|
|
176
177
|
cols: "auto"
|
|
177
178
|
}, {
|
|
178
|
-
default:
|
|
179
|
+
default: N(() => [y("span", le, [O(e.$slots, "icon", {}, () => [U.value ? (D(), g(M(o), E(w({ key: 0 }, U.value)), null, 16)) : _("v-if", !0)])])]),
|
|
179
180
|
_: 3
|
|
180
|
-
})) :
|
|
181
|
-
|
|
182
|
-
default:
|
|
183
|
-
e.$slots["title.prepend"] ?
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
181
|
+
})) : _("v-if", !0),
|
|
182
|
+
b(M(c), null, {
|
|
183
|
+
default: N(() => [y("div", ue, [
|
|
184
|
+
e.$slots["title.prepend"] ? O(e.$slots, "title.prepend", { key: 0 }) : _("v-if", !0),
|
|
185
|
+
_(" With a title, the severity text goes inside the heading, so it is also read when navigating by headings "),
|
|
186
|
+
(D(), g(k(de.value), { class: "q-toast__title-text" }, {
|
|
187
|
+
default: N(() => [H.value ? (D(), v("span", P, A(x.texts[H.value]), 1)) : _("v-if", !0), ie(" " + A(x.title), 1)]),
|
|
188
|
+
_: 1
|
|
189
|
+
})),
|
|
190
|
+
e.$slots["title.append"] ? O(e.$slots, "title.append", { key: 1 }) : _("v-if", !0)
|
|
187
191
|
])]),
|
|
188
192
|
_: 3
|
|
189
193
|
}),
|
|
190
|
-
|
|
191
|
-
default:
|
|
194
|
+
b(M(c), { cols: "auto" }, {
|
|
195
|
+
default: N(() => [O(e.$slots, "dismiss", {}, () => [b(M(s), {
|
|
192
196
|
class: "q-toast__dismiss",
|
|
193
197
|
variant: q.value,
|
|
194
198
|
color: J.value,
|
|
195
|
-
"aria-label":
|
|
199
|
+
"aria-label": x.texts.dismiss,
|
|
196
200
|
onClick: Q
|
|
197
201
|
}, {
|
|
198
|
-
default:
|
|
202
|
+
default: N(() => [b(M(o), E(S(x.icons.close)), null, 16)]),
|
|
199
203
|
_: 1
|
|
200
204
|
}, 8, [
|
|
201
205
|
"variant",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare const QToast: {
|
|
2
2
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../..').QBaseComponentProps & {
|
|
3
3
|
title?: string;
|
|
4
|
+
headingLevel?: number;
|
|
4
5
|
text?: string;
|
|
5
6
|
block?: boolean;
|
|
6
7
|
color?: string;
|
|
@@ -19,6 +20,7 @@ declare const QToast: {
|
|
|
19
20
|
}, import('vue').PublicProps, {
|
|
20
21
|
color: string;
|
|
21
22
|
variant: import('./types').QToastVariant;
|
|
23
|
+
headingLevel: number;
|
|
22
24
|
icons: typeof import('./constants').DEFAULT_ICONS;
|
|
23
25
|
texts: typeof import('./constants').DEFAULT_TEXTS;
|
|
24
26
|
elevation: import('..').QCardElevation;
|
|
@@ -33,6 +35,7 @@ declare const QToast: {
|
|
|
33
35
|
Defaults: {};
|
|
34
36
|
}, Readonly<import('../..').QBaseComponentProps & {
|
|
35
37
|
title?: string;
|
|
38
|
+
headingLevel?: number;
|
|
36
39
|
text?: string;
|
|
37
40
|
block?: boolean;
|
|
38
41
|
color?: string;
|
|
@@ -49,6 +52,7 @@ declare const QToast: {
|
|
|
49
52
|
}>, {}, {}, {}, {}, {
|
|
50
53
|
color: string;
|
|
51
54
|
variant: import('./types').QToastVariant;
|
|
55
|
+
headingLevel: number;
|
|
52
56
|
icons: typeof import('./constants').DEFAULT_ICONS;
|
|
53
57
|
texts: typeof import('./constants').DEFAULT_TEXTS;
|
|
54
58
|
elevation: import('..').QCardElevation;
|
|
@@ -60,6 +64,7 @@ declare const QToast: {
|
|
|
60
64
|
__isSuspense?: never;
|
|
61
65
|
} & import('vue').ComponentOptionsBase<Readonly<import('../..').QBaseComponentProps & {
|
|
62
66
|
title?: string;
|
|
67
|
+
headingLevel?: number;
|
|
63
68
|
text?: string;
|
|
64
69
|
block?: boolean;
|
|
65
70
|
color?: string;
|
|
@@ -78,6 +83,7 @@ declare const QToast: {
|
|
|
78
83
|
}, string, {
|
|
79
84
|
color: string;
|
|
80
85
|
variant: import('./types').QToastVariant;
|
|
86
|
+
headingLevel: number;
|
|
81
87
|
icons: typeof import('./constants').DEFAULT_ICONS;
|
|
82
88
|
texts: typeof import('./constants').DEFAULT_TEXTS;
|
|
83
89
|
elevation: import('..').QCardElevation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/index.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/index.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA2B,CAAA;AACvC,QAAA,MAAM,QAAQ;;wFAA6B,CAAA;AAG3C,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAA;AAG3B,cAAc,SAAS,CAAA"}
|
|
@@ -41,6 +41,14 @@ export type QToastProps = QBaseComponentProps & {
|
|
|
41
41
|
* @category Content
|
|
42
42
|
*/
|
|
43
43
|
title?: string;
|
|
44
|
+
/**
|
|
45
|
+
* The heading level of the title, so screen reader users can find the toast by its heading.
|
|
46
|
+
* Choose the level that fits the page's heading outline. A value outside 1–6 renders the
|
|
47
|
+
* title in a plain `div`. Defaults to 4.
|
|
48
|
+
*
|
|
49
|
+
* @category Content
|
|
50
|
+
*/
|
|
51
|
+
headingLevel?: number;
|
|
44
52
|
/**
|
|
45
53
|
* The text on the toast body.
|
|
46
54
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE/D,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,CAAA;AAEzD;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG;IACjD;;;;OAIG;IACH,SAAS,CAAC,EACP,UAAU,GACV,WAAW,GACX,aAAa,GACb,cAAc,GACd,YAAY,GACZ,eAAe,CAAA;IAElB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;CACtB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,mBAAmB,GAAG;IAC/C;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,SAAS,CAAC,EAAE,cAAc,CAAA;IAE1B;;;;OAIG;IACH,OAAO,CAAC,EAAE,aAAa,CAAA;IAEvB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,EAAE,KAAK,CAAA;IAEZ;;;;;OAKG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;IAE5B;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE/D,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,CAAA;AAEzD;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG;IACjD;;;;OAIG;IACH,SAAS,CAAC,EACP,UAAU,GACV,WAAW,GACX,aAAa,GACb,cAAc,GACd,YAAY,GACZ,eAAe,CAAA;IAElB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;CACtB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,mBAAmB,GAAG;IAC/C;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IAErB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,SAAS,CAAC,EAAE,cAAc,CAAA;IAE1B;;;;OAIG;IACH,OAAO,CAAC,EAAE,aAAa,CAAA;IAEvB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,EAAE,KAAK,CAAA;IAEZ;;;;;OAKG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;IAE5B;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QTooltip.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTooltip/QTooltip.vue"],"names":[],"mappings":"AAoCA;
|
|
1
|
+
{"version":3,"file":"QTooltip.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTooltip/QTooltip.vue"],"names":[],"mappings":"AAoCA;AA0IC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;AAOtC,KAAK,WAAW,GAAG,aAAa,CAAC;AA4FlC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAgGT,OAAO,IAA6B;;;;;;YAXtB,GAAG;yBACD,GAAG;;;;EAehC;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;6EAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|