@quidgest/ui 0.26.0 → 0.27.1
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 +34 -0
- package/dist/json/api.json +487 -155
- package/dist/manifest/components.json +3 -0
- package/dist/ui.css +1016 -141
- package/dist/ui.esm.js +994 -942
- package/dist/ui.js +1235 -1186
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +1235 -1186
- package/dist/ui.scss +1266 -157
- package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
- package/esm/components/QAccordion/QAccordion.vue.js +19 -18
- package/esm/components/QAccordion/QAccordionItem.vue.js +4 -4
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +58 -55
- package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts.map +1 -1
- package/esm/components/QBadgeIndicator/QBadgeIndicator.vue.js +17 -16
- package/esm/components/QBreadcrumbs/QBreadcrumb.d.ts +81 -0
- package/esm/components/QBreadcrumbs/QBreadcrumb.d.ts.map +1 -0
- package/esm/components/QBreadcrumbs/QBreadcrumb.vue.js +85 -0
- package/esm/components/QBreadcrumbs/QBreadcrumb2.vue.js +5 -0
- package/esm/components/QBreadcrumbs/QBreadcrumbs.d.ts +22 -0
- package/esm/components/QBreadcrumbs/QBreadcrumbs.d.ts.map +1 -0
- package/esm/components/QBreadcrumbs/QBreadcrumbs.vue.js +74 -0
- package/esm/components/QBreadcrumbs/QBreadcrumbs2.vue.js +5 -0
- package/esm/components/QBreadcrumbs/constants.d.ts +20 -0
- package/esm/components/QBreadcrumbs/constants.d.ts.map +1 -0
- package/esm/components/QBreadcrumbs/constants.js +10 -0
- package/esm/components/QBreadcrumbs/context.d.ts +103 -0
- package/esm/components/QBreadcrumbs/context.d.ts.map +1 -0
- package/esm/components/QBreadcrumbs/context.js +4 -0
- package/esm/components/QBreadcrumbs/index.d.ts +108 -0
- package/esm/components/QBreadcrumbs/index.d.ts.map +1 -0
- package/esm/components/QBreadcrumbs/index.js +7 -0
- package/esm/components/QBreadcrumbs/types.d.ts +100 -0
- package/esm/components/QBreadcrumbs/types.d.ts.map +1 -0
- package/esm/components/QButton/QButton.d.ts.map +1 -1
- package/esm/components/QButton/QButton.vue.js +55 -52
- package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
- package/esm/components/QButtonGroup/QButtonGroup.vue.js +16 -15
- package/esm/components/QCard/QCard.d.ts.map +1 -1
- package/esm/components/QCard/QCard.vue.js +51 -52
- package/esm/components/QCarousel/QCarousel.d.ts.map +1 -1
- package/esm/components/QCarousel/QCarousel.vue.js +119 -115
- package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.vue.js +10 -14
- package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
- package/esm/components/QCollapsible/QCollapsible.vue.js +52 -51
- package/esm/components/QColorPicker/QColorPicker.d.ts.map +1 -1
- package/esm/components/QColorPicker/QColorPicker.vue.js +48 -47
- package/esm/components/QCombobox/QCombobox.d.ts +6 -4
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +119 -116
- package/esm/components/QCombobox/index.d.ts +3 -2
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +468 -429
- package/esm/components/QDateTimePicker/constants.d.ts +5 -0
- package/esm/components/QDateTimePicker/constants.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/constants.js +5 -0
- package/esm/components/QDialog/QDialog.d.ts +2 -1
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +84 -65
- package/esm/components/QDialog/constants.d.ts +6 -1
- package/esm/components/QDialog/constants.d.ts.map +1 -1
- package/esm/components/QDialog/constants.js +6 -2
- package/esm/components/QDialog/index.d.ts +6 -0
- package/esm/components/QDialog/index.d.ts.map +1 -1
- package/esm/components/QDialog/types.d.ts +13 -1
- package/esm/components/QDialog/types.d.ts.map +1 -1
- package/esm/components/QDivider/QDivider.d.ts.map +1 -1
- package/esm/components/QDivider/QDivider.vue.js +22 -21
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +8 -6
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +126 -125
- package/esm/components/QField/QField.d.ts.map +1 -1
- package/esm/components/QField/QField.vue.js +36 -34
- package/esm/components/QFileUpload/QFileUpload.vue.js +16 -16
- package/esm/components/QGauge/QGauge.d.ts +1 -1
- package/esm/components/QGauge/QGauge.d.ts.map +1 -1
- package/esm/components/QGauge/QGauge.vue.js +9 -9
- package/esm/components/QIcon/QIcon.d.ts.map +1 -1
- package/esm/components/QIcon/QIcon.vue.js +20 -19
- package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
- package/esm/components/QIcon/QIconFont.vue.js +13 -12
- package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconImg.vue.js +12 -11
- package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconSvg.vue.js +19 -18
- package/esm/components/QIcon/QSvgSymbol.d.ts +54 -0
- package/esm/components/QIcon/QSvgSymbol.d.ts.map +1 -0
- package/esm/components/QIcon/QSvgSymbol.vue.js +76 -0
- package/esm/components/QIcon/QSvgSymbol2.vue.js +5 -0
- package/esm/components/QIcon/utils/svgSource.d.ts +18 -0
- package/esm/components/QIcon/utils/svgSource.d.ts.map +1 -0
- package/esm/components/QIcon/utils/svgSource.js +27 -0
- package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.vue.js +30 -29
- package/esm/components/QLabel/QLabel.d.ts.map +1 -1
- package/esm/components/QLabel/QLabel.vue.js +20 -19
- package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
- package/esm/components/QLineLoader/QLineLoader.vue.js +14 -13
- package/esm/components/QList/QList.d.ts +4 -4
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +135 -135
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +42 -40
- package/esm/components/QList/QListItemGroup.d.ts +1 -1
- package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
- package/esm/components/QList/index.d.ts +2 -2
- package/esm/components/QList/types.d.ts +6 -0
- package/esm/components/QList/types.d.ts.map +1 -1
- package/esm/components/QMeter/QMeter.d.ts.map +1 -1
- package/esm/components/QMeter/QMeter.vue.js +20 -19
- package/esm/components/QObfuscation/QObfuscation.d.ts.map +1 -1
- package/esm/components/QObfuscation/QObfuscation.vue.js +53 -53
- package/esm/components/QOverflow/QOverflow.d.ts +1 -1
- package/esm/components/QOverflow/QOverflow.d.ts.map +1 -1
- package/esm/components/QOverflow/QOverflow.vue.js +10 -10
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +139 -138
- package/esm/components/QPasswordField/QPasswordField.d.ts +2 -0
- package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordField.vue.js +63 -60
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +1 -1
- package/esm/components/QPasswordField/constants.d.ts +4 -0
- package/esm/components/QPasswordField/constants.d.ts.map +1 -1
- package/esm/components/QPasswordField/constants.js +4 -1
- package/esm/components/QPasswordField/index.d.ts +6 -0
- package/esm/components/QPasswordField/index.d.ts.map +1 -1
- package/esm/components/QPasswordField/types.d.ts +7 -1
- package/esm/components/QPasswordField/types.d.ts.map +1 -1
- package/esm/components/QPhoneField/QPhoneField.d.ts +7 -5
- package/esm/components/QPhoneField/QPhoneField.d.ts.map +1 -1
- package/esm/components/QPhoneField/QPhoneField.vue.js +88 -88
- package/esm/components/QPhoneField/index.d.ts +3 -2
- package/esm/components/QPhoneField/index.d.ts.map +1 -1
- package/esm/components/QPopover/QPopover.d.ts.map +1 -1
- package/esm/components/QPopover/QPopover.vue.js +51 -28
- package/esm/components/QProgress/QProgress.vue.js +3 -3
- package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyList.vue.js +65 -55
- package/esm/components/QPropertyList/QPropertyListGroup.d.ts +8 -4
- package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListGroup.vue.js +31 -28
- package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListPanel.vue.js +13 -12
- package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListRow.vue.js +41 -16
- package/esm/components/QPropertyList/constants.d.ts +2 -0
- package/esm/components/QPropertyList/constants.d.ts.map +1 -1
- package/esm/components/QPropertyList/constants.js +5 -1
- package/esm/components/QPropertyList/index.d.ts +16 -4
- package/esm/components/QPropertyList/index.d.ts.map +1 -1
- package/esm/components/QSection/QSection.d.ts.map +1 -1
- package/esm/components/QSection/QSection.vue.js +19 -18
- package/esm/components/QSelect/QSelect.d.ts +6 -4
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +129 -124
- package/esm/components/QSelect/index.d.ts +3 -2
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebar.d.ts +1 -1
- package/esm/components/QSidebar/QSidebar.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebar.vue.js +68 -67
- package/esm/components/QSidebar/QSidebarItem.d.ts +1 -1
- package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarItem.vue.js +8 -8
- package/esm/components/QSidebar/QSidebarPanel.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarPanel.vue.js +40 -36
- package/esm/components/QSidebar/context.d.ts +1 -1
- package/esm/components/QSidebar/context.d.ts.map +1 -1
- package/esm/components/QSidebar/types.d.ts +8 -0
- 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 +15 -14
- package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
- package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +11 -10
- package/esm/components/QSteps/QStepHeader.d.ts +58 -0
- package/esm/components/QSteps/QStepHeader.d.ts.map +1 -0
- package/esm/components/QSteps/QStepHeader.vue.js +49 -0
- package/esm/components/QSteps/QStepHeader2.vue.js +5 -0
- package/esm/components/QSteps/QSteps.d.ts +269 -0
- package/esm/components/QSteps/QSteps.d.ts.map +1 -0
- package/esm/components/QSteps/QSteps.vue.js +260 -0
- package/esm/components/QSteps/QSteps2.vue.js +5 -0
- package/esm/components/QSteps/QStepsNav.d.ts +59 -0
- package/esm/components/QSteps/QStepsNav.d.ts.map +1 -0
- package/esm/components/QSteps/QStepsNav.vue.js +42 -0
- package/esm/components/QSteps/QStepsNav2.vue.js +5 -0
- package/esm/components/QSteps/constants.d.ts +28 -0
- package/esm/components/QSteps/constants.d.ts.map +1 -0
- package/esm/components/QSteps/constants.js +16 -0
- package/esm/components/QSteps/index.d.ts +228 -0
- package/esm/components/QSteps/index.d.ts.map +1 -0
- package/esm/components/QSteps/index.js +6 -0
- package/esm/components/QSteps/types.d.ts +190 -0
- package/esm/components/QSteps/types.d.ts.map +1 -0
- package/esm/components/QSwitch/QSwitch.vue.js +3 -3
- package/esm/components/QTabs/QTab.d.ts +1 -1
- package/esm/components/QTabs/QTab.d.ts.map +1 -1
- package/esm/components/QTabs/QTab.vue.js +10 -12
- package/esm/components/QTabs/QTabs.d.ts +1 -1
- package/esm/components/QTabs/QTabs.d.ts.map +1 -1
- package/esm/components/QTabs/QTabs.vue.js +108 -107
- package/esm/components/QTabs/context.d.ts +1 -1
- package/esm/components/QTabs/context.d.ts.map +1 -1
- package/esm/components/QTabs/types.d.ts +1 -1
- package/esm/components/QTextArea/QTextArea.d.ts +1 -1
- package/esm/components/QTextArea/index.d.ts +3 -3
- package/esm/components/QThemeProvider/QThemeProvider.vue.js +3 -3
- package/esm/components/QToast/QToast.d.ts +2 -1
- package/esm/components/QToast/QToast.d.ts.map +1 -1
- package/esm/components/QToast/QToast.vue.js +95 -78
- package/esm/components/QToast/QToaster.d.ts.map +1 -1
- package/esm/components/QToast/QToaster.vue.js +20 -19
- package/esm/components/QToast/constants.d.ts +3 -0
- package/esm/components/QToast/constants.d.ts.map +1 -1
- package/esm/components/QToast/constants.js +2 -2
- 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 +7 -1
- package/esm/components/QToast/types.d.ts.map +1 -1
- package/esm/components/QToggle/QToggle.d.ts.map +1 -1
- package/esm/components/QToggle/QToggle.vue.js +52 -15
- package/esm/components/QToggleGroup/QToggleGroup.d.ts.map +1 -1
- package/esm/components/QToggleGroup/QToggleGroup.vue.js +21 -20
- package/esm/components/QTooltip/QTooltip.vue.js +5 -5
- package/esm/components/__internal__/QChevron/QChevron.d.ts.map +1 -1
- package/esm/components/__internal__/QChevron/QChevron.vue.js +16 -15
- package/esm/components/__internal__/QClearButton/QClearButton.d.ts.map +1 -1
- package/esm/components/__internal__/QClearButton/QClearButton.vue.js +19 -18
- package/esm/components/index.d.ts +2 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +108 -103
- package/esm/composables/useColor/index.d.ts +2 -0
- package/esm/composables/useColor/index.d.ts.map +1 -1
- package/esm/composables/useColor/index.js +49 -39
- package/esm/composables/useColor/types.d.ts +15 -0
- package/esm/composables/useColor/types.d.ts.map +1 -1
- package/esm/index.d.ts +3 -0
- package/esm/utils/color/contrast.d.ts +20 -0
- package/esm/utils/color/contrast.d.ts.map +1 -1
- package/esm/utils/color/contrast.js +24 -13
- package/esm/utils/color/merge.js +8 -8
- package/esm/utils/index.js +56 -54
- package/package.json +12 -6
- package/esm/components/QIcon/InlineSvg.d.ts +0 -110
- package/esm/components/QIcon/InlineSvg.d.ts.map +0 -1
- package/esm/components/QIcon/InlineSvg.js +0 -95
- package/esm/utils/time.d.ts +0 -36
- package/esm/utils/time.d.ts.map +0 -1
|
@@ -36,6 +36,11 @@ export declare const DEFAULT_TEXTS: {
|
|
|
36
36
|
nextMonth: string;
|
|
37
37
|
pickMonth: string;
|
|
38
38
|
pickYear: string;
|
|
39
|
+
hours: string;
|
|
40
|
+
minutes: string;
|
|
41
|
+
seconds: string;
|
|
42
|
+
startTime: string;
|
|
43
|
+
endTime: string;
|
|
39
44
|
increaseHour: string;
|
|
40
45
|
decreaseHour: string;
|
|
41
46
|
increaseMinute: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/QDateTimePicker/constants.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BY,CAAA;AAGtC,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/QDateTimePicker/constants.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BY,CAAA;AAGtC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0CQ,CAAA;AAElC,eAAO,MAAM,WAAW,qIAad,CAAA;AAEV,eAAO,MAAM,aAAa,yFAQhB,CAAA"}
|
|
@@ -20,6 +20,11 @@ var n = {
|
|
|
20
20
|
nextMonth: "Next month",
|
|
21
21
|
pickMonth: "Pick month",
|
|
22
22
|
pickYear: "Pick year",
|
|
23
|
+
hours: "Hours",
|
|
24
|
+
minutes: "Minutes",
|
|
25
|
+
seconds: "Seconds",
|
|
26
|
+
startTime: "Start time",
|
|
27
|
+
endTime: "End time",
|
|
23
28
|
increaseHour: "Increase hour",
|
|
24
29
|
decreaseHour: "Decrease hour",
|
|
25
30
|
increaseMinute: "Increase minute",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DEFAULT_ICONS } from './constants';
|
|
1
|
+
import { DEFAULT_ICONS, DEFAULT_TEXTS } from './constants';
|
|
2
2
|
import { QDialogButton, QDialogProps } from '.';
|
|
3
3
|
type __VLS_Props = QDialogProps & {};
|
|
4
4
|
declare function __VLS_template(): {
|
|
@@ -27,6 +27,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
27
27
|
html: boolean;
|
|
28
28
|
icon: import('..').QIconProps;
|
|
29
29
|
icons: typeof DEFAULT_ICONS;
|
|
30
|
+
texts: typeof DEFAULT_TEXTS;
|
|
30
31
|
focusWithinOnActivate: boolean;
|
|
31
32
|
returnFocusOnDeactivate: boolean;
|
|
32
33
|
backdropBlur: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/QDialog.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/QDialog.vue"],"names":[],"mappings":"AAgHA;AAuQC,OAAO,EAAiC,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAczF,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AAKpD,KAAK,WAAW,GAAG,YAAY,GAAG,EAG/B,CAAC;AA6IL,iBAAS,cAAc;WA4QT,OAAO,IAA6B;;wBAhBrB,GAAG;kCACO,GAAG;iCACJ,GAAG;sBACd,GAAG;6BACI,GAAG;+BACD,GAAG;iCACD,GAAG;;;;EAexC;AA4BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;cA5bN,MAAM;;6EAqcnB,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,25 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { DEFAULT_BUTTONS as a, DEFAULT_ICON as o, DEFAULT_ICONS as s } from "./constants.js";
|
|
7
|
-
import { DialogSymbol as
|
|
8
|
-
import { Fragment as
|
|
1
|
+
import { useId as e } from "../../composables/useId/index.js";
|
|
2
|
+
import { QButton as t } from "../QButton/index.js";
|
|
3
|
+
import { QIcon as n } from "../QIcon/index.js";
|
|
4
|
+
import { QOverlay as r } from "../QOverlay/index.js";
|
|
5
|
+
import { QTextField as i } from "../QTextField/index.js";
|
|
6
|
+
import { DEFAULT_BUTTONS as a, DEFAULT_ICON as o, DEFAULT_ICONS as s, DEFAULT_TEXTS as c } from "./constants.js";
|
|
7
|
+
import { DialogSymbol as l } from "../../composables/useDialog/_internal.js";
|
|
8
|
+
import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createTextVNode as g, createVNode as _, defineComponent as v, guardReactiveProps as y, inject as ee, mergeProps as b, normalizeClass as x, normalizeProps as S, openBlock as C, ref as w, renderList as T, renderSlot as E, toDisplayString as D, toRef as O, unref as k, useSlots as A, watch as te, withCtx as j } from "vue";
|
|
9
9
|
//#region src/components/QDialog/QDialog.vue?vue&type=script&setup=true&lang.ts
|
|
10
10
|
var M = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "q-dialog__header"
|
|
13
|
-
}, N = {
|
|
14
|
-
key: 0,
|
|
15
|
-
class: "q-dialog__header-title"
|
|
16
|
-
}, P = {
|
|
13
|
+
}, N = ["id"], P = {
|
|
17
14
|
key: 1,
|
|
18
15
|
class: "q-dialog__body"
|
|
19
16
|
}, F = {
|
|
20
17
|
key: 0,
|
|
21
18
|
class: "q-dialog__body-icon"
|
|
22
|
-
}, I =
|
|
19
|
+
}, I = ["id"], L = ["innerHTML"], R = { key: 1 }, z = {
|
|
23
20
|
key: 0,
|
|
24
21
|
class: "q-dialog__input"
|
|
25
22
|
}, B = {
|
|
@@ -28,7 +25,7 @@ var M = {
|
|
|
28
25
|
}, V = {
|
|
29
26
|
key: 0,
|
|
30
27
|
class: "q-dialog__footer-buttons"
|
|
31
|
-
}, H = /*@__PURE__*/
|
|
28
|
+
}, H = /*@__PURE__*/ v({
|
|
32
29
|
__name: "QDialog",
|
|
33
30
|
props: {
|
|
34
31
|
id: {},
|
|
@@ -68,40 +65,49 @@ var M = {
|
|
|
68
65
|
},
|
|
69
66
|
input: {},
|
|
70
67
|
icons: { default: () => s },
|
|
68
|
+
texts: { default: () => c },
|
|
71
69
|
entryKey: { default: void 0 }
|
|
72
70
|
},
|
|
73
71
|
emits: ["update:modelValue", "action"],
|
|
74
72
|
setup(a, { emit: o }) {
|
|
75
|
-
let s = a,
|
|
73
|
+
let s = a, c = o, v = e(O(s, "id")), H = A(), U = d(() => `${v.value}_title`), W = d(() => `${v.value}_text`), G = d(() => !!s.title && !H.header), K = d(() => !!s.text && !H.body), q = d(() => {
|
|
74
|
+
if (G.value) return U.value;
|
|
75
|
+
if (!s.title && K.value) return W.value;
|
|
76
|
+
}), J = d(() => K.value && q.value !== W.value ? W.value : void 0), Y = d(() => {
|
|
77
|
+
if (!q.value) return s.title ? s.title : s.texts.dialog;
|
|
78
|
+
});
|
|
76
79
|
if (s.entryKey) {
|
|
77
|
-
let e =
|
|
78
|
-
e?.registerDialogEntry(s.entryKey,
|
|
80
|
+
let e = ee(l, null);
|
|
81
|
+
e?.registerDialogEntry(s.entryKey, v.value), te(v, (t, n) => {
|
|
79
82
|
t === n || !s.entryKey || e?.updateDialogEntryId(s.entryKey, t);
|
|
80
83
|
});
|
|
81
84
|
}
|
|
82
|
-
let
|
|
85
|
+
let X = w(""), Z = w(""), ne = d(() => [
|
|
83
86
|
"q-dialog",
|
|
84
87
|
{ "q-dialog--flush": s.flush },
|
|
85
88
|
s.class
|
|
86
|
-
]),
|
|
87
|
-
function
|
|
88
|
-
|
|
89
|
+
]), re = d(() => `q-overlay--${s.size}`);
|
|
90
|
+
function ie() {
|
|
91
|
+
$(!0);
|
|
89
92
|
}
|
|
90
|
-
function
|
|
91
|
-
|
|
93
|
+
function Q() {
|
|
94
|
+
$(!1);
|
|
92
95
|
}
|
|
93
|
-
function
|
|
94
|
-
if (
|
|
95
|
-
if (s.input?.validator && (
|
|
96
|
-
e.action?.(k(
|
|
96
|
+
function ae(e) {
|
|
97
|
+
if (c("action", e.id), e.action) {
|
|
98
|
+
if (s.input?.validator && (Z.value = s.input.validator(k(X)), k(Z))) return;
|
|
99
|
+
e.action?.(k(X));
|
|
97
100
|
}
|
|
98
|
-
|
|
101
|
+
Q();
|
|
99
102
|
}
|
|
100
|
-
function
|
|
101
|
-
|
|
103
|
+
function $(e) {
|
|
104
|
+
c("update:modelValue", e);
|
|
102
105
|
}
|
|
103
|
-
return (
|
|
104
|
-
id: k(
|
|
106
|
+
return (e, a) => (C(), f(k(r), {
|
|
107
|
+
id: k(v),
|
|
108
|
+
"aria-labelledby": q.value,
|
|
109
|
+
"aria-describedby": J.value,
|
|
110
|
+
"aria-label": Y.value,
|
|
105
111
|
"model-value": s.modelValue,
|
|
106
112
|
"backdrop-class": "q-dialog__underlay",
|
|
107
113
|
"scroll-lock": "",
|
|
@@ -115,64 +121,77 @@ var M = {
|
|
|
115
121
|
"focus-within-on-activate": s.focusWithinOnActivate,
|
|
116
122
|
"closing-focus": s.closingFocus,
|
|
117
123
|
"return-focus-on-deactivate": s.returnFocusOnDeactivate,
|
|
118
|
-
class: x(
|
|
119
|
-
onEnter:
|
|
120
|
-
"onUpdate:modelValue":
|
|
124
|
+
class: x(re.value),
|
|
125
|
+
onEnter: ie,
|
|
126
|
+
"onUpdate:modelValue": $
|
|
121
127
|
}, {
|
|
122
|
-
default: j(() => [
|
|
123
|
-
s.title ||
|
|
124
|
-
E(
|
|
125
|
-
s.title ? (C(),
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
128
|
+
default: j(() => [h("div", { class: x(ne.value) }, [
|
|
129
|
+
s.title || e.$slots.header || e.$slots["header.prepend"] || e.$slots["header.append"] ? (C(), m("div", M, [E(e.$slots, "header", {}, () => [
|
|
130
|
+
E(e.$slots, "header.prepend"),
|
|
131
|
+
s.title ? (C(), m("span", {
|
|
132
|
+
key: 0,
|
|
133
|
+
id: U.value,
|
|
134
|
+
class: "q-dialog__header-title"
|
|
135
|
+
}, D(s.title), 9, N)) : p("v-if", !0),
|
|
136
|
+
E(e.$slots, "header.append")
|
|
137
|
+
])])) : p("v-if", !0),
|
|
138
|
+
s.icon || s.text || e.$slots.body ? (C(), m("div", P, [E(e.$slots, "body", {}, () => [
|
|
139
|
+
E(e.$slots, "body.icon", {}, () => [s.icon ? (C(), m("span", F, [_(k(n), S(y(s.icon)), null, 16)])) : p("v-if", !0)]),
|
|
140
|
+
h("div", {
|
|
141
|
+
id: W.value,
|
|
142
|
+
class: "q-dialog__body-text"
|
|
143
|
+
}, [s.html ? (C(), m("div", {
|
|
131
144
|
key: 0,
|
|
132
145
|
innerHTML: s.text
|
|
133
|
-
}, null, 8, L)) : (C(),
|
|
134
|
-
s.input ? (C(),
|
|
135
|
-
modelValue:
|
|
136
|
-
"onUpdate:modelValue": a[0] ||= (e) =>
|
|
137
|
-
invalid: !!
|
|
146
|
+
}, null, 8, L)) : (C(), m("div", R, D(s.text), 1))], 8, I),
|
|
147
|
+
s.input ? (C(), m("div", z, [_(k(i), {
|
|
148
|
+
modelValue: X.value,
|
|
149
|
+
"onUpdate:modelValue": a[0] ||= (e) => X.value = e,
|
|
150
|
+
invalid: !!Z.value,
|
|
138
151
|
placeholder: s.input?.placeholder,
|
|
152
|
+
"aria-label": s.input?.label || s.texts.prompt,
|
|
139
153
|
size: "block"
|
|
140
154
|
}, {
|
|
141
|
-
extras: j(() => [
|
|
155
|
+
extras: j(() => [Z.value ? (C(), f(k(n), {
|
|
142
156
|
key: 0,
|
|
143
157
|
icon: "exclamation-sign"
|
|
144
|
-
})) :
|
|
158
|
+
})) : p("v-if", !0), g(" " + D(Z.value), 1)]),
|
|
145
159
|
_: 1
|
|
146
160
|
}, 8, [
|
|
147
161
|
"modelValue",
|
|
148
162
|
"invalid",
|
|
149
|
-
"placeholder"
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
163
|
+
"placeholder",
|
|
164
|
+
"aria-label"
|
|
165
|
+
])])) : p("v-if", !0),
|
|
166
|
+
E(e.$slots, "body.append")
|
|
167
|
+
])])) : p("v-if", !0),
|
|
168
|
+
s.buttons || e.$slots["footer.append"] ? (C(), m("div", B, [s.buttons ? (C(), m("span", V, [(C(!0), m(u, null, T(s.buttons, (e) => (C(), f(k(t), b({ ref_for: !0 }, e.props, {
|
|
169
|
+
key: e.id,
|
|
170
|
+
onClick: () => ae(e)
|
|
156
171
|
}), {
|
|
157
|
-
default: j(() => [
|
|
172
|
+
default: j(() => [e.icon ? (C(), f(k(n), b({
|
|
158
173
|
key: 0,
|
|
159
174
|
ref_for: !0
|
|
160
|
-
},
|
|
175
|
+
}, e.icon), null, 16)) : p("v-if", !0)]),
|
|
161
176
|
_: 2
|
|
162
|
-
}, 1040, ["onClick"]))), 128))])) :
|
|
163
|
-
s.dismissible ? (C(),
|
|
177
|
+
}, 1040, ["onClick"]))), 128))])) : p("v-if", !0), E(e.$slots, "footer.append")])) : p("v-if", !0),
|
|
178
|
+
s.dismissible ? (C(), f(k(t), {
|
|
164
179
|
key: 3,
|
|
165
180
|
class: "q-dialog__close",
|
|
166
181
|
variant: "text",
|
|
167
|
-
|
|
182
|
+
"aria-label": s.texts.close,
|
|
183
|
+
onClick: Q
|
|
168
184
|
}, {
|
|
169
|
-
default: j(() => [
|
|
185
|
+
default: j(() => [_(k(n), S(y(s.icons.close)), null, 16)]),
|
|
170
186
|
_: 1
|
|
171
|
-
})) :
|
|
187
|
+
}, 8, ["aria-label"])) : p("v-if", !0)
|
|
172
188
|
], 2)]),
|
|
173
189
|
_: 3
|
|
174
190
|
}, 8, [
|
|
175
191
|
"id",
|
|
192
|
+
"aria-labelledby",
|
|
193
|
+
"aria-describedby",
|
|
194
|
+
"aria-label",
|
|
176
195
|
"model-value",
|
|
177
196
|
"inline",
|
|
178
197
|
"attach",
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { QIconProps } from '../QIcon';
|
|
2
|
-
import { QDialogButton } from '
|
|
2
|
+
import { QDialogButton } from '.';
|
|
3
3
|
export declare const DEFAULT_BUTTONS: Array<QDialogButton>;
|
|
4
4
|
export declare const DEFAULT_ICON: QIconProps;
|
|
5
|
+
export declare const DEFAULT_TEXTS: {
|
|
6
|
+
close: string;
|
|
7
|
+
prompt: string;
|
|
8
|
+
dialog: string;
|
|
9
|
+
};
|
|
5
10
|
export declare const DEFAULT_ICONS: {
|
|
6
11
|
close: {
|
|
7
12
|
icon: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/constants.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/constants.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;AAGtC,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,aAAa,CAWhD,CAAA;AAGD,eAAO,MAAM,YAAY,EAAE,UAE1B,CAAA;AAGD,eAAO,MAAM,aAAa;;;;CAIQ,CAAA;AAGlC,eAAO,MAAM,aAAa;;;;CAIY,CAAA"}
|
|
@@ -6,6 +6,10 @@ var e = [{
|
|
|
6
6
|
variant: "bold",
|
|
7
7
|
label: "Ok"
|
|
8
8
|
}
|
|
9
|
-
}], t = { icon: "check-circle-outline" }, n = {
|
|
9
|
+
}], t = { icon: "check-circle-outline" }, n = {
|
|
10
|
+
close: "Close",
|
|
11
|
+
prompt: "Enter a response",
|
|
12
|
+
dialog: "Dialog"
|
|
13
|
+
}, r = { close: { icon: "close" } };
|
|
10
14
|
//#endregion
|
|
11
|
-
export { e as DEFAULT_BUTTONS, t as DEFAULT_ICON,
|
|
15
|
+
export { e as DEFAULT_BUTTONS, t as DEFAULT_ICON, r as DEFAULT_ICONS, n as DEFAULT_TEXTS };
|
|
@@ -20,6 +20,7 @@ declare const QDialog: {
|
|
|
20
20
|
html?: boolean;
|
|
21
21
|
input?: import('./types').QDialogInputOption;
|
|
22
22
|
icons?: typeof import('./constants').DEFAULT_ICONS;
|
|
23
|
+
texts?: typeof import('./constants').DEFAULT_TEXTS;
|
|
23
24
|
} & {
|
|
24
25
|
entryKey?: string;
|
|
25
26
|
}> & Readonly<{
|
|
@@ -33,6 +34,7 @@ declare const QDialog: {
|
|
|
33
34
|
html: boolean;
|
|
34
35
|
icon: import('..').QIconProps;
|
|
35
36
|
icons: typeof import('./constants').DEFAULT_ICONS;
|
|
37
|
+
texts: typeof import('./constants').DEFAULT_TEXTS;
|
|
36
38
|
focusWithinOnActivate: boolean;
|
|
37
39
|
returnFocusOnDeactivate: boolean;
|
|
38
40
|
backdropBlur: boolean;
|
|
@@ -68,6 +70,7 @@ declare const QDialog: {
|
|
|
68
70
|
html?: boolean;
|
|
69
71
|
input?: import('./types').QDialogInputOption;
|
|
70
72
|
icons?: typeof import('./constants').DEFAULT_ICONS;
|
|
73
|
+
texts?: typeof import('./constants').DEFAULT_TEXTS;
|
|
71
74
|
} & {
|
|
72
75
|
entryKey?: string;
|
|
73
76
|
}> & Readonly<{
|
|
@@ -78,6 +81,7 @@ declare const QDialog: {
|
|
|
78
81
|
html: boolean;
|
|
79
82
|
icon: import('..').QIconProps;
|
|
80
83
|
icons: typeof import('./constants').DEFAULT_ICONS;
|
|
84
|
+
texts: typeof import('./constants').DEFAULT_TEXTS;
|
|
81
85
|
focusWithinOnActivate: boolean;
|
|
82
86
|
returnFocusOnDeactivate: boolean;
|
|
83
87
|
backdropBlur: boolean;
|
|
@@ -110,6 +114,7 @@ declare const QDialog: {
|
|
|
110
114
|
html?: boolean;
|
|
111
115
|
input?: import('./types').QDialogInputOption;
|
|
112
116
|
icons?: typeof import('./constants').DEFAULT_ICONS;
|
|
117
|
+
texts?: typeof import('./constants').DEFAULT_TEXTS;
|
|
113
118
|
} & {
|
|
114
119
|
entryKey?: string;
|
|
115
120
|
}> & Readonly<{
|
|
@@ -123,6 +128,7 @@ declare const QDialog: {
|
|
|
123
128
|
html: boolean;
|
|
124
129
|
icon: import('..').QIconProps;
|
|
125
130
|
icons: typeof import('./constants').DEFAULT_ICONS;
|
|
131
|
+
texts: typeof import('./constants').DEFAULT_TEXTS;
|
|
126
132
|
focusWithinOnActivate: boolean;
|
|
127
133
|
returnFocusOnDeactivate: boolean;
|
|
128
134
|
backdropBlur: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/index.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/index.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA4B,CAAA;AACzC,QAAA,MAAM,eAAe;;;;kFAAoC,CAAA;AAGzD,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,CAAA;AAGnC,cAAc,SAAS,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { QBaseComponentProps } from '../../types/component';
|
|
2
2
|
import { QButtonProps } from '../QButton';
|
|
3
3
|
import { QIconProps } from '../QIcon';
|
|
4
|
-
import { DEFAULT_ICONS } from './constants';
|
|
4
|
+
import { DEFAULT_ICONS, DEFAULT_TEXTS } from './constants';
|
|
5
5
|
export type QDialogSize = 'small' | 'medium' | 'large' | 'xlarge' | 'fit-content';
|
|
6
6
|
export type QDialogProps = QBaseComponentProps & {
|
|
7
7
|
/**
|
|
@@ -134,6 +134,12 @@ export type QDialogProps = QBaseComponentProps & {
|
|
|
134
134
|
* @category Configuration
|
|
135
135
|
*/
|
|
136
136
|
icons?: typeof DEFAULT_ICONS;
|
|
137
|
+
/**
|
|
138
|
+
* Custom text configurations.
|
|
139
|
+
*
|
|
140
|
+
* @category Configuration
|
|
141
|
+
*/
|
|
142
|
+
texts?: typeof DEFAULT_TEXTS;
|
|
137
143
|
};
|
|
138
144
|
export type QDialogButton = {
|
|
139
145
|
/**
|
|
@@ -183,6 +189,12 @@ export type QDialogInputOption = {
|
|
|
183
189
|
* Control type.
|
|
184
190
|
*/
|
|
185
191
|
type: string;
|
|
192
|
+
/**
|
|
193
|
+
* Accessible name for the prompt field.
|
|
194
|
+
*
|
|
195
|
+
* @category Content
|
|
196
|
+
*/
|
|
197
|
+
label?: string;
|
|
186
198
|
/**
|
|
187
199
|
* Control placeholder text.
|
|
188
200
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QDivider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDivider/QDivider.vue"],"names":[],"mappings":"AAeA;
|
|
1
|
+
{"version":3,"file":"QDivider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDivider/QDivider.vue"],"names":[],"mappings":"AAeA;AA0EC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;AAmDvC,iBAAS,cAAc;WAsCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;wFAQnB,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,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useId as e } from "../../composables/useId/index.js";
|
|
2
|
+
import { useColor as t } from "../../composables/useColor/index.js";
|
|
3
|
+
import { Fragment as n, computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, normalizeClass as c, normalizeStyle as l, openBlock as u, renderSlot as d, toRef as f, unref as p, useSlots as m } from "vue";
|
|
3
4
|
//#region src/components/QDivider/QDivider.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var
|
|
5
|
+
var h = ["id"], g = { class: "q-divider__label" }, _ = /*@__PURE__*/ s({
|
|
5
6
|
__name: "QDivider",
|
|
6
7
|
props: {
|
|
7
8
|
id: {},
|
|
@@ -11,30 +12,30 @@ var p = ["id"], m = { class: "q-divider__label" }, h = /*@__PURE__*/ o({
|
|
|
11
12
|
thickness: { default: 1 },
|
|
12
13
|
color: { default: "neutral" }
|
|
13
14
|
},
|
|
14
|
-
setup(
|
|
15
|
-
let
|
|
15
|
+
setup(s) {
|
|
16
|
+
let _ = s, v = e(f(_, "id")), y = r(() => !!m().default), b = r(() => [
|
|
16
17
|
"q-divider",
|
|
17
|
-
`q-divider--${
|
|
18
|
+
`q-divider--${_.direction}`,
|
|
18
19
|
{
|
|
19
|
-
"q-divider--inset":
|
|
20
|
-
"q-divider--labeled":
|
|
20
|
+
"q-divider--inset": _.inset,
|
|
21
|
+
"q-divider--labeled": y.value
|
|
21
22
|
},
|
|
22
|
-
|
|
23
|
-
]), { style:
|
|
23
|
+
_.class
|
|
24
|
+
]), { style: x } = t(f(_, "color")), S = r(() => {
|
|
24
25
|
let e = {};
|
|
25
|
-
return
|
|
26
|
+
return _.thickness >= 0 && _.thickness !== 1 && (e["--q-divider-thickness"] = `${_.thickness}px`), _.color !== "neutral" && x.value?.mainColor && (e["--q-divider-color"] = x.value.mainColor, e["--q-divider-label-color"] = x.value.textColor), e;
|
|
26
27
|
});
|
|
27
|
-
return (e,
|
|
28
|
-
id:
|
|
29
|
-
class:
|
|
30
|
-
style:
|
|
28
|
+
return (e, t) => (u(), a("div", {
|
|
29
|
+
id: p(v),
|
|
30
|
+
class: c(b.value),
|
|
31
|
+
style: l(S.value),
|
|
31
32
|
role: "separator"
|
|
32
|
-
}, [
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
], 64)) :
|
|
33
|
+
}, [y.value ? (u(), a(n, { key: 0 }, [
|
|
34
|
+
t[0] ||= o("div", { class: "q-divider__line" }, null, -1),
|
|
35
|
+
o("span", g, [d(e.$slots, "default")]),
|
|
36
|
+
t[1] ||= o("div", { class: "q-divider__line" }, null, -1)
|
|
37
|
+
], 64)) : i("v-if", !0)], 14, h));
|
|
37
38
|
}
|
|
38
39
|
});
|
|
39
40
|
//#endregion
|
|
40
|
-
export {
|
|
41
|
+
export { _ as default };
|
|
@@ -45,6 +45,7 @@ declare function __VLS_template(): {
|
|
|
45
45
|
$props: {
|
|
46
46
|
readonly id?: string | undefined;
|
|
47
47
|
readonly class?: string | unknown[] | undefined;
|
|
48
|
+
readonly label?: string | undefined;
|
|
48
49
|
readonly modelValue?: any;
|
|
49
50
|
readonly highlighted?: any;
|
|
50
51
|
readonly items?: QListItemData[] | undefined;
|
|
@@ -64,7 +65,7 @@ declare function __VLS_template(): {
|
|
|
64
65
|
$refs: {
|
|
65
66
|
[x: string]: unknown;
|
|
66
67
|
} & {
|
|
67
|
-
listRef:
|
|
68
|
+
listRef: HTMLDivElement;
|
|
68
69
|
listItemsRef: (({
|
|
69
70
|
$: import('vue').ComponentInternalInstance;
|
|
70
71
|
$data: {};
|
|
@@ -150,7 +151,7 @@ declare function __VLS_template(): {
|
|
|
150
151
|
$parent: ComponentPublicInstance | null;
|
|
151
152
|
$host: Element | null;
|
|
152
153
|
$emit: ((event: "update:modelValue", val: any) => void) & ((event: "click", key: any) => void) & ((event: "mouseenter:item", key: any) => void);
|
|
153
|
-
$el:
|
|
154
|
+
$el: HTMLDivElement;
|
|
154
155
|
$options: import('vue').ComponentOptionsBase<Readonly<import('..').QListProps> & Readonly<{
|
|
155
156
|
"onUpdate:modelValue"?: ((val: any) => any) | undefined;
|
|
156
157
|
onClick?: ((key: any) => any) | undefined;
|
|
@@ -232,14 +233,14 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
232
233
|
"update:highlighted": (value: any) => any;
|
|
233
234
|
} & {
|
|
234
235
|
select: (item: any) => any;
|
|
235
|
-
hide: () => any;
|
|
236
236
|
open: () => any;
|
|
237
|
+
hide: () => any;
|
|
237
238
|
"focus-previous": () => any;
|
|
238
239
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
239
240
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
240
241
|
onSelect?: ((item: any) => any) | undefined;
|
|
241
|
-
onHide?: (() => any) | undefined;
|
|
242
242
|
onOpen?: (() => any) | undefined;
|
|
243
|
+
onHide?: (() => any) | undefined;
|
|
243
244
|
"onFocus-previous"?: (() => any) | undefined;
|
|
244
245
|
"onUpdate:highlighted"?: ((value: any) => any) | undefined;
|
|
245
246
|
}>, {
|
|
@@ -263,6 +264,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
263
264
|
$props: {
|
|
264
265
|
readonly id?: string | undefined;
|
|
265
266
|
readonly class?: string | unknown[] | undefined;
|
|
267
|
+
readonly label?: string | undefined;
|
|
266
268
|
readonly modelValue?: any;
|
|
267
269
|
readonly highlighted?: any;
|
|
268
270
|
readonly items?: QListItemData[] | undefined;
|
|
@@ -282,7 +284,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
282
284
|
$refs: {
|
|
283
285
|
[x: string]: unknown;
|
|
284
286
|
} & {
|
|
285
|
-
listRef:
|
|
287
|
+
listRef: HTMLDivElement;
|
|
286
288
|
listItemsRef: (({
|
|
287
289
|
$: import('vue').ComponentInternalInstance;
|
|
288
290
|
$data: {};
|
|
@@ -368,7 +370,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
368
370
|
$parent: ComponentPublicInstance | null;
|
|
369
371
|
$host: Element | null;
|
|
370
372
|
$emit: ((event: "update:modelValue", val: any) => void) & ((event: "click", key: any) => void) & ((event: "mouseenter:item", key: any) => void);
|
|
371
|
-
$el:
|
|
373
|
+
$el: HTMLDivElement;
|
|
372
374
|
$options: import('vue').ComponentOptionsBase<Readonly<import('..').QListProps> & Readonly<{
|
|
373
375
|
"onUpdate:modelValue"?: ((val: any) => any) | undefined;
|
|
374
376
|
onClick?: ((key: any) => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QDropdownMenuContent.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDropdownMenu/QDropdownMenuContent.vue"],"names":[],"mappings":"AAiGA;
|
|
1
|
+
{"version":3,"file":"QDropdownMenuContent.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDropdownMenu/QDropdownMenuContent.vue"],"names":[],"mappings":"AAiGA;AAmhBC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAY3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAC7C,OAAO,KAAK,EAA+B,yBAAyB,EAAE,MAAM,GAAG,CAAA;AAC/E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,KAAK,CAAA;AAGlD,OAAO,EAAiB,QAAQ,EAAgC,MAAM,KAAK,CAAA;AAG3E,KAAK,WAAW,GAAG,yBAAyB,CAAC;AAwL7C;;;;;;;GAOG;AACH,iBAAS,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,QAQ3D;AAyPF,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,GAAG,CAAC;CACnB,GAAG,WAAW,CAAC;AAMhB,iBAAS,cAAc;WAkPT,OAAO,IAA6B;;mBAlqBrC,IAAI;kBACL,IAAI;oBACF;YAAE,IAAI,EAAE,aAAa,CAAA;SAAE,GAAG,IAAI;6BACrB;YAAE,IAAI,EAAE,aAAa,CAAA;SAAE,GAAG,IAAI;;mBAHxC,IAAI;kBACL,IAAI;oBACF;YAAE,IAAI,EAAE,aAAa,CAAA;SAAE,GAAG,IAAI;6BACrB;YAAE,IAAI,EAAE,aAAa,CAAA;SAAE,GAAG,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAibpB,GAAG,8CACH,GAAG,yBAAyB,GAAG,6DACpC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAFE,GAAG,8CACH,GAAG,yBAAyB,GAAG,6DACpC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiP9B;AAqCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAzRY,GAAG,8CACH,GAAG,yBAAyB,GAAG,6DACpC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAFE,GAAG,8CACH,GAAG,yBAAyB,GAAG,6DACpC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkS7B,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"}
|