@quidgest/ui 0.28.0 → 0.29.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 +51 -8
- package/README.md +19 -0
- package/dist/json/api.json +1517 -86
- package/dist/manifest/components.json +0 -1
- package/dist/ui.css +59 -68
- package/dist/ui.esm.js +1031 -1043
- package/dist/ui.js +1000 -1013
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +1000 -1013
- package/dist/ui.scss +83 -27
- package/esm/components/QAccordion/QAccordion.d.ts +3 -3
- package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
- package/esm/components/QAccordion/QAccordion.vue.js +33 -30
- package/esm/components/QAccordion/QAccordionItem.d.ts +4 -1
- package/esm/components/QAccordion/QAccordionItem.d.ts.map +1 -1
- package/esm/components/QAccordion/QAccordionItem.vue.js +37 -6
- package/esm/components/QAccordion/index.d.ts +20 -11
- package/esm/components/QAccordion/index.d.ts.map +1 -1
- package/esm/components/QAvatar/QAvatar.d.ts.map +1 -1
- package/esm/components/QAvatar/QAvatar.vue.js +19 -12
- package/esm/components/QAvatar/types.d.ts +2 -1
- package/esm/components/QAvatar/types.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +36 -37
- package/esm/components/QButtonGroup/QButtonGroup.vue.js +18 -18
- package/esm/components/QCarousel/QCarousel.d.ts +1 -1
- package/esm/components/QCarousel/QCarousel.d.ts.map +1 -1
- package/esm/components/QCarousel/QCarousel.vue.js +99 -95
- package/esm/components/QCarousel/constants.d.ts +1 -0
- package/esm/components/QCarousel/constants.d.ts.map +1 -1
- package/esm/components/QCarousel/constants.js +2 -1
- package/esm/components/QCarousel/index.d.ts +3 -3
- package/esm/components/QCheckbox/QCheckbox.d.ts +0 -2
- package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.vue.js +33 -36
- package/esm/components/QCheckbox/index.d.ts +0 -1
- package/esm/components/QCheckbox/index.d.ts.map +1 -1
- package/esm/components/QColorPicker/QColorPicker.d.ts.map +1 -1
- package/esm/components/QColorPicker/QColorPicker.vue.js +1 -2
- package/esm/components/QCombobox/QCombobox.d.ts +9 -0
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +142 -134
- package/esm/components/QCombobox/index.d.ts +10 -0
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QCombobox/types.d.ts +8 -0
- package/esm/components/QCombobox/types.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +199 -219
- package/esm/components/QDialog/QDialog.d.ts +1 -1
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +4 -4
- package/esm/components/QDialog/QDialogProvider.d.ts.map +1 -1
- package/esm/components/QDialog/index.d.ts +6 -6
- package/esm/components/QDialog/types.d.ts +3 -3
- package/esm/components/QDialog/types.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +8 -0
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +136 -124
- package/esm/components/QFileUpload/QFileUpload.d.ts.map +1 -1
- package/esm/components/QFileUpload/QFileUpload.vue.js +82 -79
- package/esm/components/QFocusWrap/QFocusWrap.d.ts.map +1 -1
- package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
- package/esm/components/QIcon/QSvgSymbol.d.ts.map +1 -1
- package/esm/components/QIcon/QSvgSymbol.vue.js +31 -31
- package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.vue.js +67 -41
- package/esm/components/QInputGroup/types.d.ts +15 -1
- package/esm/components/QInputGroup/types.d.ts.map +1 -1
- package/esm/components/QList/QList.d.ts +6 -0
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +4 -1
- package/esm/components/QList/QListItem.d.ts +6 -2
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +54 -41
- package/esm/components/QList/index.d.ts +6 -1
- package/esm/components/QList/index.d.ts.map +1 -1
- package/esm/components/QList/types.d.ts +16 -0
- package/esm/components/QList/types.d.ts.map +1 -1
- package/esm/components/QOverflow/QOverflow.d.ts +6 -1
- package/esm/components/QOverflow/QOverflow.d.ts.map +1 -1
- package/esm/components/QOverflow/QOverflow.vue.js +90 -95
- package/esm/components/QOverflow/index.d.ts +3 -3
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +125 -117
- package/esm/components/QOverlay/types.d.ts +9 -2
- package/esm/components/QOverlay/types.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordField.d.ts +1 -0
- package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordField.vue.js +5 -0
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +1 -0
- 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 +10 -0
- package/esm/components/QPasswordField/types.d.ts.map +1 -1
- package/esm/components/QPhoneField/QPhoneField.d.ts +184 -18
- package/esm/components/QPhoneField/QPhoneField.d.ts.map +1 -1
- package/esm/components/QPhoneField/index.d.ts +92 -9
- package/esm/components/QPhoneField/index.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyList.vue.js +62 -60
- package/esm/components/QPropertyList/QPropertyListRow.vue.js +2 -2
- package/esm/components/QPropertyList/index.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioButton.vue.js +2 -2
- package/esm/components/QRadioGroup/QRadioGroup.vue.js +46 -46
- package/esm/components/QRemoveScrollBar/QRemoveScrollBar.d.ts.map +1 -1
- package/esm/components/QRemoveScrollBar/QRemoveScrollBar.vue.js +7 -7
- package/esm/components/QRemoveScrollBar/utils/gap.d.ts +0 -6
- package/esm/components/QRemoveScrollBar/utils/gap.d.ts.map +1 -1
- package/esm/components/QRemoveScrollBar/utils/gap.js +12 -18
- package/esm/components/QRemoveScrollBar/utils/stylesheet.d.ts +11 -0
- package/esm/components/QRemoveScrollBar/utils/stylesheet.d.ts.map +1 -1
- package/esm/components/QRemoveScrollBar/utils/stylesheet.js +5 -5
- package/esm/components/QSelect/QSelect.d.ts +157 -0
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +240 -212
- package/esm/components/QSelect/index.d.ts +84 -0
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QSelect/types.d.ts +8 -0
- package/esm/components/QSelect/types.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebar.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebar.vue.js +1 -2
- package/esm/components/QSidebar/QSidebarAnchor.vue.js +1 -1
- package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarItem.vue.js +1 -1
- package/esm/components/QSidebar/QSidebarPanel.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarPanel.vue.js +5 -5
- package/esm/components/QSidebar/context.d.ts +3 -3
- package/esm/components/QSidebar/context.d.ts.map +1 -1
- package/esm/components/QSteps/QSteps.d.ts +4 -4
- package/esm/components/QSteps/QSteps.d.ts.map +1 -1
- package/esm/components/QSteps/QSteps.vue.js +9 -15
- package/esm/components/QSteps/index.d.ts +2 -2
- package/esm/components/QSteps/types.d.ts +2 -1
- package/esm/components/QSteps/types.d.ts.map +1 -1
- package/esm/components/QTabs/QTab.d.ts.map +1 -1
- package/esm/components/QTabs/QTab.vue.js +2 -2
- package/esm/components/QTabs/QTabs.d.ts +4 -4
- package/esm/components/QTabs/QTabs.d.ts.map +1 -1
- package/esm/components/QTabs/QTabs.vue.js +86 -85
- package/esm/components/QTabs/context.d.ts +3 -3
- package/esm/components/QTabs/context.d.ts.map +1 -1
- package/esm/components/QTabs/index.d.ts +2 -2
- package/esm/components/QTextArea/QTextArea.d.ts +1 -1
- package/esm/components/QTextArea/QTextArea.d.ts.map +1 -1
- package/esm/components/QTextArea/QTextArea.vue.js +25 -24
- package/esm/components/QTextArea/index.d.ts +3 -3
- package/esm/components/QToast/QToast.d.ts.map +1 -1
- package/esm/components/QToast/QToast.vue.js +7 -4
- package/esm/components/QToast/QToaster.d.ts.map +1 -1
- package/esm/components/QToast/types.d.ts +3 -3
- package/esm/components/QToggleGroup/QToggleGroup.d.ts +3 -3
- package/esm/components/QToggleGroup/QToggleGroup.d.ts.map +1 -1
- package/esm/components/QToggleGroup/QToggleGroup.vue.js +34 -31
- package/esm/components/QToggleGroup/index.d.ts +8 -8
- package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.vue.js +1 -1
- package/esm/composables/defaults.d.ts +10 -0
- package/esm/composables/defaults.d.ts.map +1 -1
- package/esm/composables/defaults.js +8 -5
- package/esm/composables/useDialog/_internal.js +8 -11
- package/esm/composables/useDialog/index.js +1 -2
- package/esm/composables/useDialog/types.d.ts.map +1 -1
- package/esm/composables/useDropZone/index.d.ts +1 -11
- package/esm/composables/useDropZone/index.d.ts.map +1 -1
- package/esm/composables/useDropZone/index.js +23 -26
- package/esm/composables/useGroup/index.d.ts.map +1 -1
- package/esm/composables/useGroup/index.js +15 -15
- package/esm/composables/useOverlayScope/index.d.ts +29 -0
- package/esm/composables/useOverlayScope/index.d.ts.map +1 -0
- package/esm/composables/useOverlayScope/index.js +23 -0
- package/esm/composables/useTextareaAutosize/index.d.ts +3 -1
- package/esm/composables/useTextareaAutosize/index.d.ts.map +1 -1
- package/esm/composables/useTextareaAutosize/index.js +6 -6
- package/esm/composables/useToast/_internal.js +10 -15
- package/esm/composables/useToast/index.js +1 -2
- package/esm/composables/useToast/types.d.ts.map +1 -1
- package/esm/framework.js +14 -12
- package/esm/index.d.ts +1 -2
- package/esm/index.d.ts.map +1 -1
- package/esm/symbols/overlayScope.d.ts +4 -0
- package/esm/symbols/overlayScope.d.ts.map +1 -0
- package/esm/symbols/overlayScope.js +4 -0
- package/esm/types/component.d.ts +8 -0
- package/esm/types/component.d.ts.map +1 -1
- package/esm/types/index.d.ts +1 -1
- package/esm/types/index.d.ts.map +1 -1
- package/esm/utils/color/parse.d.ts.map +1 -1
- package/esm/utils/color/parse.js +3 -10
- package/esm/utils/date.d.ts +35 -13
- package/esm/utils/date.d.ts.map +1 -1
- package/esm/utils/date.js +313 -253
- package/esm/utils/mask.d.ts +1 -0
- package/esm/utils/mask.d.ts.map +1 -1
- package/esm/utils/mask.js +42 -100
- package/esm/utils/overlay.d.ts +13 -1
- package/esm/utils/overlay.d.ts.map +1 -1
- package/esm/utils/overlay.js +55 -41
- package/esm/utils/safeTriangle.d.ts.map +1 -1
- package/esm/utils/safeTriangle.js +2 -2
- package/esm/utils/setupPropsProxy.d.ts +3 -1
- package/esm/utils/setupPropsProxy.d.ts.map +1 -1
- package/esm/utils/setupPropsProxy.js +2 -2
- package/package.json +9 -6
|
@@ -24,7 +24,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
24
24
|
onAction?: ((val: string) => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
26
|
html: boolean;
|
|
27
|
-
icon: import('..').QIconProps;
|
|
27
|
+
icon: import('..').QIconProps | null;
|
|
28
28
|
size: import('./types').QDialogSize;
|
|
29
29
|
icons: typeof DEFAULT_ICONS;
|
|
30
30
|
texts: typeof DEFAULT_TEXTS;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/QDialog.vue"],"names":[],"mappings":"AAkHA;
|
|
1
|
+
{"version":3,"file":"QDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/QDialog.vue"],"names":[],"mappings":"AAkHA;AA0QC,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;AA8IL,iBAAS,cAAc;WAgRT,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;;;;;;;;;;;;;;;;;cAjcN,MAAM;;6EA0cnB,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"}
|
|
@@ -77,9 +77,9 @@ var te = {
|
|
|
77
77
|
if (!q.value) return s.title ? s.title : s.texts.dialog;
|
|
78
78
|
});
|
|
79
79
|
if (s.entryKey) {
|
|
80
|
-
let e = b(l, null);
|
|
81
|
-
|
|
82
|
-
t
|
|
80
|
+
let e = s.entryKey, t = b(l, null);
|
|
81
|
+
t?.registerDialogEntry(e, v.value), j(v, (n) => {
|
|
82
|
+
t?.updateDialogEntryId(e, n);
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
let X = T(""), Z = T(""), ne = d(() => [
|
|
@@ -169,7 +169,7 @@ var te = {
|
|
|
169
169
|
])])) : p("v-if", !0),
|
|
170
170
|
E(e.$slots, "body.append")
|
|
171
171
|
])])) : p("v-if", !0),
|
|
172
|
-
s.buttons || e.$slots["footer.append"] ? (w(), m("div", B, [s.buttons ? (w(), m("span", V, [(w(!0), m(u, null, ee(s.buttons, (e) => (w(), f(k(r), x({ ref_for: !0 }, e.props, {
|
|
172
|
+
s.buttons?.length || e.$slots["footer.append"] ? (w(), m("div", B, [s.buttons?.length ? (w(), m("span", V, [(w(!0), m(u, null, ee(s.buttons, (e) => (w(), f(k(r), x({ ref_for: !0 }, e.props, {
|
|
173
173
|
key: e.id,
|
|
174
174
|
onClick: () => ae(e)
|
|
175
175
|
}), {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QDialogProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/QDialogProvider.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QDialogProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/QDialogProvider.vue"],"names":[],"mappings":"AAWA;AA8EC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAA;;;;;;AAuH9C,wBAOG"}
|
|
@@ -3,7 +3,7 @@ declare const QDialog: {
|
|
|
3
3
|
modelValue?: boolean;
|
|
4
4
|
title?: string;
|
|
5
5
|
text?: string;
|
|
6
|
-
icon?: import('..').QIconProps;
|
|
6
|
+
icon?: import('..').QIconProps | null;
|
|
7
7
|
buttons?: import('./types').QDialogButton[];
|
|
8
8
|
backdropBlur?: boolean;
|
|
9
9
|
size?: import('./types').QDialogSize;
|
|
@@ -31,7 +31,7 @@ declare const QDialog: {
|
|
|
31
31
|
action: (val: string) => any;
|
|
32
32
|
}, import('vue').PublicProps, {
|
|
33
33
|
html: boolean;
|
|
34
|
-
icon: import('..').QIconProps;
|
|
34
|
+
icon: import('..').QIconProps | null;
|
|
35
35
|
size: import('./types').QDialogSize;
|
|
36
36
|
icons: typeof import('./constants').DEFAULT_ICONS;
|
|
37
37
|
texts: typeof import('./constants').DEFAULT_TEXTS;
|
|
@@ -53,7 +53,7 @@ declare const QDialog: {
|
|
|
53
53
|
modelValue?: boolean;
|
|
54
54
|
title?: string;
|
|
55
55
|
text?: string;
|
|
56
|
-
icon?: import('..').QIconProps;
|
|
56
|
+
icon?: import('..').QIconProps | null;
|
|
57
57
|
buttons?: import('./types').QDialogButton[];
|
|
58
58
|
backdropBlur?: boolean;
|
|
59
59
|
size?: import('./types').QDialogSize;
|
|
@@ -78,7 +78,7 @@ declare const QDialog: {
|
|
|
78
78
|
onAction?: ((val: string) => any) | undefined;
|
|
79
79
|
}>, {}, {}, {}, {}, {
|
|
80
80
|
html: boolean;
|
|
81
|
-
icon: import('..').QIconProps;
|
|
81
|
+
icon: import('..').QIconProps | null;
|
|
82
82
|
size: import('./types').QDialogSize;
|
|
83
83
|
icons: typeof import('./constants').DEFAULT_ICONS;
|
|
84
84
|
texts: typeof import('./constants').DEFAULT_TEXTS;
|
|
@@ -97,7 +97,7 @@ declare const QDialog: {
|
|
|
97
97
|
modelValue?: boolean;
|
|
98
98
|
title?: string;
|
|
99
99
|
text?: string;
|
|
100
|
-
icon?: import('..').QIconProps;
|
|
100
|
+
icon?: import('..').QIconProps | null;
|
|
101
101
|
buttons?: import('./types').QDialogButton[];
|
|
102
102
|
backdropBlur?: boolean;
|
|
103
103
|
size?: import('./types').QDialogSize;
|
|
@@ -125,7 +125,7 @@ declare const QDialog: {
|
|
|
125
125
|
action: (val: string) => any;
|
|
126
126
|
}, string, {
|
|
127
127
|
html: boolean;
|
|
128
|
-
icon: import('..').QIconProps;
|
|
128
|
+
icon: import('..').QIconProps | null;
|
|
129
129
|
size: import('./types').QDialogSize;
|
|
130
130
|
icons: typeof import('./constants').DEFAULT_ICONS;
|
|
131
131
|
texts: typeof import('./constants').DEFAULT_TEXTS;
|
|
@@ -23,13 +23,13 @@ export type QDialogProps = QBaseComponentProps & {
|
|
|
23
23
|
*/
|
|
24
24
|
text?: string;
|
|
25
25
|
/**
|
|
26
|
-
* The icon of the dialog window.
|
|
26
|
+
* The icon of the dialog window. Pass `null` to show no icon.
|
|
27
27
|
*
|
|
28
28
|
* @category Content
|
|
29
29
|
*/
|
|
30
|
-
icon?: QIconProps;
|
|
30
|
+
icon?: QIconProps | null;
|
|
31
31
|
/**
|
|
32
|
-
* The buttons to interact with the dialog window.
|
|
32
|
+
* The buttons to interact with the dialog window. Pass an empty array to show no buttons.
|
|
33
33
|
*
|
|
34
34
|
* @category Content
|
|
35
35
|
*/
|
|
@@ -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,aAAa,EAAE,MAAM,aAAa,CAAA;AAE/D,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,aAAa,CAAA;AAEjF,MAAM,MAAM,YAAY,GAAG,mBAAmB,GAAG;IAChD;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,IAAI,CAAC,EAAE,UAAU,CAAA;
|
|
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,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AE,MAAM,KAAK,IAAI,CAAA;CAChC,CAAA"}
|
|
@@ -57,6 +57,7 @@ declare function __VLS_template(): {
|
|
|
57
57
|
readonly required?: boolean | undefined;
|
|
58
58
|
readonly itemValue?: string | undefined;
|
|
59
59
|
readonly itemLabel?: string | undefined;
|
|
60
|
+
readonly itemTitle?: boolean | undefined;
|
|
60
61
|
readonly icons?: typeof import('../QList/constants').DEFAULT_ICONS | undefined;
|
|
61
62
|
readonly "onUpdate:modelValue"?: ((val: any) => any) | undefined;
|
|
62
63
|
readonly onClick?: ((key: any) => any) | undefined;
|
|
@@ -74,6 +75,7 @@ declare function __VLS_template(): {
|
|
|
74
75
|
readonly modelValue?: boolean | undefined;
|
|
75
76
|
readonly value: any;
|
|
76
77
|
readonly label: string;
|
|
78
|
+
readonly overflowTitle?: boolean | undefined;
|
|
77
79
|
readonly icon?: import('..').QIconProps | undefined;
|
|
78
80
|
readonly description?: string | undefined;
|
|
79
81
|
readonly selectable?: boolean | undefined;
|
|
@@ -88,6 +90,8 @@ declare function __VLS_template(): {
|
|
|
88
90
|
$attrs: import('vue').Attrs;
|
|
89
91
|
$refs: {
|
|
90
92
|
[x: string]: unknown;
|
|
93
|
+
} & {
|
|
94
|
+
label: HTMLSpanElement;
|
|
91
95
|
};
|
|
92
96
|
$slots: Readonly<{
|
|
93
97
|
[name: string]: import('vue').Slot<any> | undefined;
|
|
@@ -279,6 +283,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
279
283
|
readonly required?: boolean | undefined;
|
|
280
284
|
readonly itemValue?: string | undefined;
|
|
281
285
|
readonly itemLabel?: string | undefined;
|
|
286
|
+
readonly itemTitle?: boolean | undefined;
|
|
282
287
|
readonly icons?: typeof import('../QList/constants').DEFAULT_ICONS | undefined;
|
|
283
288
|
readonly "onUpdate:modelValue"?: ((val: any) => any) | undefined;
|
|
284
289
|
readonly onClick?: ((key: any) => any) | undefined;
|
|
@@ -296,6 +301,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
296
301
|
readonly modelValue?: boolean | undefined;
|
|
297
302
|
readonly value: any;
|
|
298
303
|
readonly label: string;
|
|
304
|
+
readonly overflowTitle?: boolean | undefined;
|
|
299
305
|
readonly icon?: import('..').QIconProps | undefined;
|
|
300
306
|
readonly description?: string | undefined;
|
|
301
307
|
readonly selectable?: boolean | undefined;
|
|
@@ -310,6 +316,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
310
316
|
$attrs: import('vue').Attrs;
|
|
311
317
|
$refs: {
|
|
312
318
|
[x: string]: unknown;
|
|
319
|
+
} & {
|
|
320
|
+
label: HTMLSpanElement;
|
|
313
321
|
};
|
|
314
322
|
$slots: Readonly<{
|
|
315
323
|
[name: string]: import('vue').Slot<any> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QDropdownMenuContent.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDropdownMenu/QDropdownMenuContent.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QDropdownMenuContent.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDropdownMenu/QDropdownMenuContent.vue"],"names":[],"mappings":"AAmGA;AAylBC,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;AAK3E,KAAK,WAAW,GAAG,yBAAyB,CAAC;AAmN7C;;;;;;;GAOG;AACH,iBAAS,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,QAQ3D;AAgSF,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,O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AO,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,19 +1,20 @@
|
|
|
1
1
|
import { useId as e } from "../../composables/useId/index.js";
|
|
2
2
|
import { QIcon as t } from "../QIcon/index.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
3
|
+
import { getElement as n } from "../../utils/getElement.js";
|
|
4
|
+
import { QOverlay as r } from "../QOverlay/index.js";
|
|
5
|
+
import { DEFAULT_ICONS as i } from "./constants.js";
|
|
6
|
+
import { getRenderedListItems as ee } from "../QList/groupListItems.js";
|
|
7
|
+
import { QList as te } from "../QList/index.js";
|
|
8
|
+
import { QSafeTriangle as ne } from "../__internal__/QSafeTriangle/index.js";
|
|
9
|
+
import { useSafeTriangle as a } from "../../composables/useSafeTriangle/index.js";
|
|
10
|
+
import { Fragment as re, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, defineComponent as f, guardReactiveProps as p, mergeModels as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeProps as v, openBlock as y, ref as b, renderSlot as x, resolveComponent as ie, toDisplayString as ae, toRef as oe, unref as S, useModel as C, useTemplateRef as w, watch as T, withCtx as E, withModifiers as se } from "vue";
|
|
10
11
|
//#region src/components/QDropdownMenu/QDropdownMenuContent.vue?vue&type=script&setup=true&lang.ts
|
|
11
12
|
var ce = {
|
|
12
13
|
key: 0,
|
|
13
14
|
class: "q-dropdown-menu__extra"
|
|
14
|
-
},
|
|
15
|
+
}, D = /*@__PURE__*/ f({
|
|
15
16
|
__name: "QDropdownMenuContent",
|
|
16
|
-
props: /*@__PURE__*/
|
|
17
|
+
props: /*@__PURE__*/ m({
|
|
17
18
|
id: {},
|
|
18
19
|
class: {},
|
|
19
20
|
activator: {},
|
|
@@ -27,7 +28,7 @@ var ce = {
|
|
|
27
28
|
inline: { type: Boolean },
|
|
28
29
|
delay: { default: 500 },
|
|
29
30
|
trigger: { default: "hover" },
|
|
30
|
-
icons: { default: () =>
|
|
31
|
+
icons: { default: () => i },
|
|
31
32
|
depth: { default: 0 },
|
|
32
33
|
offset: { default: 6 },
|
|
33
34
|
crossOffset: { default: -5 }
|
|
@@ -37,53 +38,54 @@ var ce = {
|
|
|
37
38
|
highlighted: {},
|
|
38
39
|
highlightedModifiers: {}
|
|
39
40
|
}),
|
|
40
|
-
emits: /*@__PURE__*/
|
|
41
|
+
emits: /*@__PURE__*/ m([
|
|
41
42
|
"select",
|
|
42
43
|
"open",
|
|
43
44
|
"hide",
|
|
44
45
|
"focus-previous"
|
|
45
46
|
], ["update:modelValue", "update:highlighted"]),
|
|
46
|
-
setup(
|
|
47
|
-
let
|
|
47
|
+
setup(i, { expose: f, emit: m }) {
|
|
48
|
+
let D = i, O = m, k = C(i, "modelValue"), A = C(i, "highlighted"), le = e(oe(D, "id")), j = b(void 0), M = b([]), N = o(() => ee(D.items, D.groups)), ue = o(() => D.depth === 0 ? "click" : "manual"), de = o(() => D.depth === 0 ? 4 : D.offset), P = o(() => D.depth === 0 ? void 0 : D.crossOffset), F = w("list"), I = w("body"), L = b(null), R = o(() => "right-start"), z = o(() => D.trigger !== "hover" || j.value === void 0 ? !1 : ((D.items?.find((e) => e[D.itemValue] === j.value))?.items?.length ?? 0) > 0);
|
|
48
49
|
function B(e) {
|
|
49
50
|
return "syncHoverFromPoint" in e && "getMenuRect" in e && "getMenuRoot" in e && "hasOpenSubmenu" in e;
|
|
50
51
|
}
|
|
51
52
|
function V(e, t) {
|
|
52
|
-
if (e &&
|
|
53
|
-
L.value = e
|
|
54
|
-
G();
|
|
55
|
-
let { x: e, y: t } = ge();
|
|
56
|
-
L.value?.syncHoverFromPoint(e, t);
|
|
57
|
-
});
|
|
53
|
+
if (e && j.value === t && B(e)) {
|
|
54
|
+
L.value = e;
|
|
58
55
|
return;
|
|
59
56
|
}
|
|
60
|
-
!e &&
|
|
57
|
+
!e && j.value === t && (L.value = null);
|
|
61
58
|
}
|
|
62
|
-
function H() {
|
|
59
|
+
async function H() {
|
|
60
|
+
await g(), await g(), U();
|
|
61
|
+
let { x: e, y: t } = xe();
|
|
62
|
+
L.value?.syncHoverFromPoint(e, t);
|
|
63
|
+
}
|
|
64
|
+
function fe() {
|
|
63
65
|
return L.value?.getMenuRect() ?? null;
|
|
64
66
|
}
|
|
65
|
-
function
|
|
67
|
+
function pe() {
|
|
66
68
|
return L.value?.getMenuRoot() ?? null;
|
|
67
69
|
}
|
|
68
|
-
function
|
|
70
|
+
function me() {
|
|
69
71
|
return L.value?.hasOpenSubmenu() ?? !1;
|
|
70
72
|
}
|
|
71
|
-
let { visible:
|
|
73
|
+
let { visible: he, top: ge, left: _e, width: ve, height: ye, path: be, refresh: U, getLastPointer: xe } = a({
|
|
72
74
|
enabled: z,
|
|
73
75
|
placement: R,
|
|
74
76
|
getParentRect: () => I.value?.getBoundingClientRect() ?? null,
|
|
75
|
-
getContentRect:
|
|
76
|
-
getContentRoot:
|
|
77
|
-
shouldSuppressLeave:
|
|
78
|
-
onLeave:
|
|
77
|
+
getContentRect: fe,
|
|
78
|
+
getContentRoot: pe,
|
|
79
|
+
shouldSuppressLeave: me,
|
|
80
|
+
onLeave: J,
|
|
79
81
|
onEnterContent: (e, t) => {
|
|
80
82
|
L.value?.syncHoverFromPoint(e, t);
|
|
81
83
|
}
|
|
82
84
|
});
|
|
83
|
-
|
|
85
|
+
T(j, () => {
|
|
84
86
|
L.value = null;
|
|
85
87
|
});
|
|
86
|
-
function
|
|
88
|
+
function Se(e, t) {
|
|
87
89
|
let n = I.value;
|
|
88
90
|
if (!n) return;
|
|
89
91
|
let r = document.elementsFromPoint(e, t);
|
|
@@ -93,28 +95,28 @@ var ce = {
|
|
|
93
95
|
if (!t || !n.contains(t) || t.closest(".q-dropdown-menu__body") !== n) continue;
|
|
94
96
|
let r = t.getAttribute("data-key");
|
|
95
97
|
if (r === null) continue;
|
|
96
|
-
let i =
|
|
97
|
-
if (i) return i[
|
|
98
|
+
let i = D.items?.find((e) => String(e[D.itemValue]) === r);
|
|
99
|
+
if (i) return i[D.itemValue];
|
|
98
100
|
}
|
|
99
101
|
}
|
|
100
|
-
function
|
|
101
|
-
if (
|
|
102
|
-
let n =
|
|
103
|
-
n !== void 0 &&
|
|
102
|
+
function W(e, t) {
|
|
103
|
+
if (D.trigger !== "hover") return;
|
|
104
|
+
let n = Se(e, t);
|
|
105
|
+
n !== void 0 && G(n);
|
|
104
106
|
}
|
|
105
|
-
function
|
|
106
|
-
|
|
107
|
+
function Ce(e) {
|
|
108
|
+
U(e.clientX, e.clientY), W(e.clientX, e.clientY);
|
|
107
109
|
}
|
|
108
|
-
function
|
|
109
|
-
z.value &&
|
|
110
|
+
function we(e) {
|
|
111
|
+
z.value && W(e.clientX, e.clientY), U(e.clientX, e.clientY);
|
|
110
112
|
}
|
|
111
|
-
function
|
|
112
|
-
|
|
113
|
-
let t =
|
|
114
|
-
|
|
113
|
+
function Te(e) {
|
|
114
|
+
M.value = D.items?.find((t) => t[D.itemValue] === e)?.items ?? [];
|
|
115
|
+
let t = M.value.length > 0;
|
|
116
|
+
A.value = e, t ? $(e) : K(e);
|
|
115
117
|
}
|
|
116
|
-
function
|
|
117
|
-
|
|
118
|
+
function Ee(e) {
|
|
119
|
+
switch ([
|
|
118
120
|
"Enter",
|
|
119
121
|
"ArrowDown",
|
|
120
122
|
"ArrowUp",
|
|
@@ -123,124 +125,133 @@ var ce = {
|
|
|
123
125
|
].includes(e.key) && (e.preventDefault(), e.stopPropagation()), e.key) {
|
|
124
126
|
case "ArrowRight":
|
|
125
127
|
let e = F.value?.getActiveItemIndex();
|
|
126
|
-
(e || e === 0) &&
|
|
128
|
+
(e || e === 0) && N.value[e] && (A.value = N.value[e].key, $(N.value[e].key));
|
|
127
129
|
break;
|
|
128
130
|
case "ArrowLeft":
|
|
129
|
-
|
|
131
|
+
Y();
|
|
130
132
|
break;
|
|
131
133
|
case "Escape":
|
|
132
134
|
case "Tab":
|
|
133
|
-
|
|
135
|
+
X();
|
|
134
136
|
break;
|
|
135
|
-
default: break;
|
|
136
137
|
}
|
|
137
138
|
}
|
|
138
|
-
function
|
|
139
|
-
|
|
139
|
+
function G(e) {
|
|
140
|
+
D.trigger === "hover" && (A.value = e, $(e));
|
|
140
141
|
}
|
|
141
|
-
function
|
|
142
|
-
|
|
142
|
+
function K(e) {
|
|
143
|
+
O("select", e), X();
|
|
143
144
|
}
|
|
144
|
-
function
|
|
145
|
-
|
|
145
|
+
function q() {
|
|
146
|
+
Y();
|
|
147
|
+
}
|
|
148
|
+
function J() {
|
|
149
|
+
j.value = void 0, A.value = void 0;
|
|
146
150
|
}
|
|
147
151
|
function Y() {
|
|
148
|
-
|
|
152
|
+
J(), k.value = !1, O("focus-previous");
|
|
149
153
|
}
|
|
150
154
|
function X() {
|
|
151
|
-
Y(), O
|
|
155
|
+
Y(), O("hide");
|
|
152
156
|
}
|
|
153
|
-
function Z() {
|
|
154
|
-
|
|
157
|
+
function Z(e) {
|
|
158
|
+
let t = e.target;
|
|
159
|
+
I.value?.contains(t) || D.activator && n(D.activator)?.contains(t) || X();
|
|
155
160
|
}
|
|
156
|
-
|
|
157
|
-
|
|
161
|
+
let Q = ["mousedown", "touchstart"];
|
|
162
|
+
D.depth === 0 && T(() => j.value !== void 0, (e, t, n) => {
|
|
163
|
+
e && (Q.forEach((e) => document.addEventListener(e, Z, {
|
|
164
|
+
capture: !0,
|
|
165
|
+
passive: !0
|
|
166
|
+
})), n(() => Q.forEach((e) => document.removeEventListener(e, Z, { capture: !0 }))));
|
|
167
|
+
});
|
|
168
|
+
function $(e) {
|
|
169
|
+
j.value = (D.items?.find((t) => t[D.itemValue] === e))?.items?.length ? e : void 0;
|
|
158
170
|
}
|
|
159
|
-
function
|
|
160
|
-
let e =
|
|
161
|
-
|
|
162
|
-
let t = F.value?.getItem(e);
|
|
163
|
-
A.value = void 0, k.value = void 0, t?.focus();
|
|
171
|
+
function De() {
|
|
172
|
+
let e = N.value.findIndex((e) => e[D.itemValue] === j.value), t = F.value?.getItem(e);
|
|
173
|
+
j.value = void 0, A.value = void 0, t?.focus();
|
|
164
174
|
}
|
|
165
|
-
function
|
|
175
|
+
function Oe() {
|
|
166
176
|
g(() => F.value?.$el.focus());
|
|
167
177
|
}
|
|
168
|
-
function
|
|
169
|
-
|
|
178
|
+
function ke() {
|
|
179
|
+
O("open"), Oe();
|
|
170
180
|
}
|
|
171
|
-
return
|
|
181
|
+
return f({
|
|
172
182
|
getMenuRect: () => {
|
|
173
183
|
let e = I.value;
|
|
174
184
|
return e ? (e.closest(".q-overlay") ?? e).getBoundingClientRect() : null;
|
|
175
185
|
},
|
|
176
186
|
getMenuRoot: () => I.value?.closest(".q-overlay") ?? I.value,
|
|
177
|
-
hasOpenSubmenu: () =>
|
|
178
|
-
syncHoverFromPoint:
|
|
179
|
-
}), (e,
|
|
187
|
+
hasOpenSubmenu: () => j.value === void 0 ? !1 : ((D.items?.find((e) => e[D.itemValue] === j.value))?.items?.length ?? 0) > 0,
|
|
188
|
+
syncHoverFromPoint: W
|
|
189
|
+
}), (e, n) => {
|
|
180
190
|
let i = ie("q-dropdown-menu-content", !0);
|
|
181
|
-
return
|
|
182
|
-
id:
|
|
183
|
-
modelValue:
|
|
184
|
-
"onUpdate:modelValue":
|
|
185
|
-
anchor:
|
|
186
|
-
appearance:
|
|
187
|
-
inline:
|
|
188
|
-
delay:
|
|
189
|
-
offset:
|
|
191
|
+
return y(), s(S(r), {
|
|
192
|
+
id: S(le),
|
|
193
|
+
modelValue: k.value,
|
|
194
|
+
"onUpdate:modelValue": n[0] ||= (e) => k.value = e,
|
|
195
|
+
anchor: D.activator,
|
|
196
|
+
appearance: D.appearance,
|
|
197
|
+
inline: D.inline,
|
|
198
|
+
delay: D.delay,
|
|
199
|
+
offset: de.value,
|
|
190
200
|
"cross-offset": P.value,
|
|
191
|
-
placement:
|
|
192
|
-
transition:
|
|
193
|
-
class:
|
|
194
|
-
trigger:
|
|
201
|
+
placement: D.placement,
|
|
202
|
+
transition: D.transition,
|
|
203
|
+
class: _(D.class),
|
|
204
|
+
trigger: ue.value,
|
|
195
205
|
"scroll-lock": "",
|
|
196
206
|
"non-modal": "",
|
|
197
|
-
onEnter:
|
|
198
|
-
onLeave:
|
|
207
|
+
onEnter: ke,
|
|
208
|
+
onLeave: q
|
|
199
209
|
}, {
|
|
200
|
-
default:
|
|
210
|
+
default: E(() => [u("div", {
|
|
201
211
|
ref: "body",
|
|
202
212
|
class: "q-dropdown-menu__body",
|
|
203
213
|
"data-testid": "dropdown-content",
|
|
204
214
|
tabindex: "-1",
|
|
205
|
-
onPointerenter:
|
|
206
|
-
onPointermove:
|
|
207
|
-
onKeydown: se(
|
|
215
|
+
onPointerenter: Ce,
|
|
216
|
+
onPointermove: we,
|
|
217
|
+
onKeydown: se(Ee, ["stop"])
|
|
208
218
|
}, [
|
|
209
|
-
|
|
210
|
-
|
|
219
|
+
x(e.$slots, "prepend"),
|
|
220
|
+
d(S(te), {
|
|
211
221
|
ref: "list",
|
|
212
222
|
class: "q-dropdown-menu__items",
|
|
213
|
-
highlighted:
|
|
214
|
-
items:
|
|
215
|
-
groups:
|
|
216
|
-
"item-label":
|
|
217
|
-
"item-value":
|
|
223
|
+
highlighted: A.value,
|
|
224
|
+
items: D.items,
|
|
225
|
+
groups: D.groups,
|
|
226
|
+
"item-label": D.itemLabel,
|
|
227
|
+
"item-value": D.itemValue,
|
|
218
228
|
selectable: !1,
|
|
219
229
|
"select-on-tab": !1,
|
|
220
|
-
icons:
|
|
221
|
-
onClick:
|
|
222
|
-
"onMouseenter:item":
|
|
230
|
+
icons: D.icons,
|
|
231
|
+
onClick: Te,
|
|
232
|
+
"onMouseenter:item": G
|
|
223
233
|
}, {
|
|
224
|
-
item:
|
|
225
|
-
"item.append":
|
|
234
|
+
item: E(({ item: t }) => [x(e.$slots, "item", { item: t })]),
|
|
235
|
+
"item.append": E(({ item: n, element: r }) => [x(e.$slots, "item.append", { item: n }, () => [n.extraInfo ? (y(), l("span", ce, ae(n.extraInfo), 1)) : c("v-if", !0)]), n.items?.length > 0 ? (y(), l(re, { key: 0 }, [d(S(t), v(p(D.icons.expand)), null, 16), j.value === n.key ? (y(), s(i, h({
|
|
226
236
|
key: 0,
|
|
227
237
|
ref: (e) => V(e, n.key),
|
|
228
238
|
"model-value": ""
|
|
229
|
-
},
|
|
239
|
+
}, D, {
|
|
230
240
|
activator: r,
|
|
231
241
|
items: n.items,
|
|
232
242
|
groups: n.groups,
|
|
233
|
-
depth:
|
|
234
|
-
delay:
|
|
243
|
+
depth: D.depth + 1,
|
|
244
|
+
delay: D.delay,
|
|
235
245
|
placement: "right-start",
|
|
236
246
|
"non-modal": "",
|
|
237
247
|
inline: "",
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
248
|
+
onOpen: H,
|
|
249
|
+
onHide: X,
|
|
250
|
+
onSelect: K,
|
|
251
|
+
onFocusPrevious: De
|
|
241
252
|
}), {
|
|
242
|
-
item:
|
|
243
|
-
"item.append":
|
|
253
|
+
item: E((t) => [x(e.$slots, "item", v(p(t)))]),
|
|
254
|
+
"item.append": E((t) => [x(e.$slots, "item.append", v(p(t)))]),
|
|
244
255
|
_: 3
|
|
245
256
|
}, 16, [
|
|
246
257
|
"activator",
|
|
@@ -248,7 +259,7 @@ var ce = {
|
|
|
248
259
|
"groups",
|
|
249
260
|
"depth",
|
|
250
261
|
"delay"
|
|
251
|
-
])) :
|
|
262
|
+
])) : c("v-if", !0)], 64)) : c("v-if", !0)]),
|
|
252
263
|
_: 3
|
|
253
264
|
}, 8, [
|
|
254
265
|
"highlighted",
|
|
@@ -258,21 +269,21 @@ var ce = {
|
|
|
258
269
|
"item-value",
|
|
259
270
|
"icons"
|
|
260
271
|
]),
|
|
261
|
-
|
|
262
|
-
], 544),
|
|
272
|
+
x(e.$slots, "append")
|
|
273
|
+
], 544), S(he) ? (y(), s(S(ne), {
|
|
263
274
|
key: 0,
|
|
264
|
-
top:
|
|
265
|
-
left:
|
|
266
|
-
width:
|
|
267
|
-
height:
|
|
268
|
-
path:
|
|
275
|
+
top: S(ge),
|
|
276
|
+
left: S(_e),
|
|
277
|
+
width: S(ve),
|
|
278
|
+
height: S(ye),
|
|
279
|
+
path: S(be)
|
|
269
280
|
}, null, 8, [
|
|
270
281
|
"top",
|
|
271
282
|
"left",
|
|
272
283
|
"width",
|
|
273
284
|
"height",
|
|
274
285
|
"path"
|
|
275
|
-
])) :
|
|
286
|
+
])) : c("v-if", !0)]),
|
|
276
287
|
_: 3
|
|
277
288
|
}, 8, [
|
|
278
289
|
"id",
|
|
@@ -285,10 +296,11 @@ var ce = {
|
|
|
285
296
|
"cross-offset",
|
|
286
297
|
"placement",
|
|
287
298
|
"transition",
|
|
288
|
-
"class"
|
|
299
|
+
"class",
|
|
300
|
+
"trigger"
|
|
289
301
|
]);
|
|
290
302
|
};
|
|
291
303
|
}
|
|
292
304
|
});
|
|
293
305
|
//#endregion
|
|
294
|
-
export {
|
|
306
|
+
export { D as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QFileUpload.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QFileUpload/QFileUpload.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QFileUpload.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QFileUpload/QFileUpload.vue"],"names":[],"mappings":"AAmGA;AAwQC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,GAAG,CAAA;AAOzC,KAAK,WAAW,GAAG,gBAAgB,CAAC;AAuIrC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,IAAI,CAAC;CACjB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAuPT,OAAO,IAA6B;;wBAbrB,GAAG;;;;;;;EAkB/B;AA6BD,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"}
|