@quidgest/ui 0.14.5 → 0.14.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/manifest/components.json +2 -0
- package/dist/ui.css +162 -25
- package/dist/ui.esm.js +1363 -1103
- package/dist/ui.js +44 -7
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +143 -119
- package/dist/ui.scss +175 -26
- package/esm/components/QAccordion/QAccordion.d.ts +27 -0
- package/esm/components/QAccordion/QAccordion.d.ts.map +1 -0
- package/esm/components/QAccordion/QAccordion.vue.js +27 -0
- package/esm/components/QAccordion/QAccordion.vue2.js +4 -0
- package/esm/components/QAccordion/index.d.ts +4 -0
- package/esm/components/QAccordion/index.d.ts.map +1 -0
- package/esm/components/QAccordion/index.js +6 -0
- package/esm/components/QAccordion/types.d.ts +7 -0
- package/esm/components/QAccordion/types.d.ts.map +1 -0
- package/esm/components/QBadge/QBadge.d.ts +3 -2
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +11 -11
- package/esm/components/QButton/QButton.d.ts +3 -2
- package/esm/components/QButton/QButton.d.ts.map +1 -1
- package/esm/components/QButton/QButton.vue.js +14 -14
- package/esm/components/QButtonGroup/QButtonGroup.d.ts +3 -2
- package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
- package/esm/components/QButtonGroup/QButtonGroup.vue.js +3 -3
- package/esm/components/QButtonToggle/QButtonToggle.d.ts +7 -6
- package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +1 -1
- package/esm/components/QButtonToggle/QButtonToggle.vue.js +6 -6
- package/esm/components/QCard/QCard.d.ts +3 -2
- package/esm/components/QCard/QCard.d.ts.map +1 -1
- package/esm/components/QCard/QCard.vue.js +30 -30
- package/esm/components/QCheckbox/QCheckbox.d.ts +4 -4
- package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.vue.js +4 -4
- package/esm/components/QCollapsible/QCollapsible.d.ts +36 -0
- package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -0
- package/esm/components/QCollapsible/QCollapsible.vue.js +143 -0
- package/esm/components/QCollapsible/QCollapsible.vue2.js +4 -0
- package/esm/components/QCollapsible/index.d.ts +6 -0
- package/esm/components/QCollapsible/index.d.ts.map +1 -0
- package/esm/components/QCollapsible/index.js +6 -0
- package/esm/components/QCollapsible/types.d.ts +43 -0
- package/esm/components/QCollapsible/types.d.ts.map +1 -0
- package/esm/components/QCollapsible/types.js +8 -0
- package/esm/components/QCombobox/QCombobox.d.ts +40 -39
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +80 -80
- package/esm/components/QDialog/QDialog.d.ts +6 -5
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +7 -7
- package/esm/components/QField/QField.d.ts +2 -1
- package/esm/components/QField/QField.d.ts.map +1 -1
- package/esm/components/QField/QField.vue.js +9 -9
- package/esm/components/QIcon/InlineSvg.d.ts +1 -1
- package/esm/components/QIcon/QIcon.d.ts.map +1 -1
- package/esm/components/QIcon/QIcon.vue.js +9 -9
- package/esm/components/QIcon/QIconFont.d.ts +2 -2
- package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
- package/esm/components/QIcon/QIconFont.vue.js +5 -5
- package/esm/components/QIcon/QIconImg.d.ts +1 -1
- package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconImg.vue.js +5 -5
- package/esm/components/QIcon/QIconSvg.d.ts +2 -2
- package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconSvg.vue.js +17 -17
- package/esm/components/QInputGroup/QInputGroup.d.ts +2 -1
- package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.vue.js +24 -24
- package/esm/components/QLineLoader/QLineLoader.d.ts +1 -1
- package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
- package/esm/components/QLineLoader/QLineLoader.vue.js +4 -4
- package/esm/components/QList/QList.d.ts +6 -5
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +1 -1
- package/esm/components/QList/QListItem.d.ts +3 -2
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +18 -18
- package/esm/components/QList/QListItemGroup.d.ts +3 -2
- package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.d.ts +6 -5
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +148 -138
- package/esm/components/QPopover/QPopover.d.ts +6 -5
- package/esm/components/QPopover/QPopover.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyList.d.ts +3 -2
- package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyList.vue.js +22 -22
- package/esm/components/QPropertyList/QPropertyListGroup.d.ts +1 -1
- package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListPanel.d.ts +3 -2
- package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListPanel.vue.js +4 -4
- package/esm/components/QPropertyList/QPropertyListRow.d.ts +3 -2
- package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
- package/esm/components/QRemoveScrollBar/QRemoveScrollBar.d.ts +24 -0
- package/esm/components/QRemoveScrollBar/QRemoveScrollBar.d.ts.map +1 -0
- package/esm/components/QRemoveScrollBar/QRemoveScrollBar.vue.js +72 -0
- package/esm/components/QRemoveScrollBar/QRemoveScrollBar.vue2.js +4 -0
- package/esm/components/QRemoveScrollBar/constants.d.ts +10 -0
- package/esm/components/QRemoveScrollBar/constants.d.ts.map +1 -0
- package/esm/components/QRemoveScrollBar/constants.js +8 -0
- package/esm/components/QRemoveScrollBar/index.d.ts +4 -0
- package/esm/components/QRemoveScrollBar/index.d.ts.map +1 -0
- package/esm/components/QRemoveScrollBar/index.js +6 -0
- package/esm/components/QRemoveScrollBar/types.d.ts +18 -0
- package/esm/components/QRemoveScrollBar/types.d.ts.map +1 -0
- package/esm/components/QRemoveScrollBar/utils/gap.d.ts +15 -0
- package/esm/components/QRemoveScrollBar/utils/gap.d.ts.map +1 -0
- package/esm/components/QRemoveScrollBar/utils/gap.js +23 -0
- package/esm/components/QRemoveScrollBar/utils/stylesheet.d.ts +5 -0
- package/esm/components/QRemoveScrollBar/utils/stylesheet.d.ts.map +1 -0
- package/esm/components/QRemoveScrollBar/utils/stylesheet.js +24 -0
- package/esm/components/QSelect/QSelect.d.ts +11 -10
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +33 -33
- package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts +1 -1
- package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
- package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +11 -11
- package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts +1 -1
- package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
- package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +6 -6
- package/esm/components/QTextField/QTextField.d.ts +7 -6
- package/esm/components/QTextField/QTextField.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.vue.js +15 -15
- package/esm/components/QThemeProvider/QThemeProvider.d.ts +3 -2
- package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.d.ts +7 -6
- package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.vue.js +15 -15
- package/esm/components/index.d.ts +2 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +56 -52
- package/esm/composables/defaults.js +5 -5
- package/esm/composables/group.d.ts +16 -0
- package/esm/composables/group.d.ts.map +1 -0
- package/esm/composables/group.js +34 -0
- package/esm/composables/overlay.js +11 -11
- package/esm/framework.js +2 -2
- package/esm/index.d.ts +2 -0
- package/esm/utils/color.js +6 -6
- package/package.json +34 -30
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { QComboboxProps, DEFAULT_ICONS, DEFAULT_TEXTS } from './types';
|
|
2
2
|
import { Primitive } from '../../types/primitive';
|
|
3
3
|
import { nextTick } from 'vue';
|
|
4
|
-
|
|
4
|
+
type __VLS_Props = QComboboxProps;
|
|
5
5
|
type __VLS_PublicProps = {
|
|
6
6
|
modelValue?: any;
|
|
7
7
|
'open'?: boolean;
|
|
8
8
|
'search'?: string;
|
|
9
|
-
} &
|
|
9
|
+
} & __VLS_Props;
|
|
10
10
|
declare function __VLS_template(): {
|
|
11
|
+
attrs: Partial<{}>;
|
|
11
12
|
slots: {
|
|
12
13
|
"label.prepend"?(_: {}): any;
|
|
13
14
|
"label.append"?(_: {}): any;
|
|
@@ -37,7 +38,7 @@ declare function __VLS_template(): {
|
|
|
37
38
|
readonly role?: string | undefined;
|
|
38
39
|
readonly type?: string | undefined;
|
|
39
40
|
readonly class?: (string | unknown[]) | undefined;
|
|
40
|
-
readonly "onUpdate:modelValue"?: ((
|
|
41
|
+
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
41
42
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
42
43
|
$attrs: {
|
|
43
44
|
[x: string]: unknown;
|
|
@@ -51,22 +52,22 @@ declare function __VLS_template(): {
|
|
|
51
52
|
$root: import('vue').ComponentPublicInstance | null;
|
|
52
53
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
53
54
|
$host: Element | null;
|
|
54
|
-
$emit: (event: "update:modelValue",
|
|
55
|
+
$emit: (event: "update:modelValue", value: string) => void;
|
|
55
56
|
$el: any;
|
|
56
57
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
57
58
|
modelValue?: string;
|
|
58
59
|
} & import('../QTextField/types').QTextFieldProps> & Readonly<{
|
|
59
|
-
"onUpdate:modelValue"?: ((
|
|
60
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
60
61
|
}>, {
|
|
61
62
|
fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
|
|
62
63
|
inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
63
64
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
64
|
-
"update:modelValue": (
|
|
65
|
+
"update:modelValue": (value: string) => any;
|
|
65
66
|
}, string, {
|
|
66
67
|
size: import('..').QFieldSize;
|
|
67
68
|
class: string | unknown[];
|
|
68
|
-
type: string;
|
|
69
69
|
label: string;
|
|
70
|
+
type: string;
|
|
70
71
|
role: string;
|
|
71
72
|
id: string;
|
|
72
73
|
placeholder: string;
|
|
@@ -94,8 +95,8 @@ declare function __VLS_template(): {
|
|
|
94
95
|
} & Readonly<{
|
|
95
96
|
size: import('..').QFieldSize;
|
|
96
97
|
class: string | unknown[];
|
|
97
|
-
type: string;
|
|
98
98
|
label: string;
|
|
99
|
+
type: string;
|
|
99
100
|
role: string;
|
|
100
101
|
id: string;
|
|
101
102
|
placeholder: string;
|
|
@@ -103,8 +104,8 @@ declare function __VLS_template(): {
|
|
|
103
104
|
}> & Omit<Readonly<{
|
|
104
105
|
modelValue?: string;
|
|
105
106
|
} & import('../QTextField/types').QTextFieldProps> & Readonly<{
|
|
106
|
-
"onUpdate:modelValue"?: ((
|
|
107
|
-
}>, "fieldRef" | "inputRef" | ("size" | "class" | "
|
|
107
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
108
|
+
}>, "fieldRef" | "inputRef" | ("size" | "class" | "label" | "type" | "role" | "id" | "placeholder" | "maxLength")> & import('vue').ShallowUnwrapRef<{
|
|
108
109
|
fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
|
|
109
110
|
inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
110
111
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
@@ -146,7 +147,7 @@ declare function __VLS_template(): {
|
|
|
146
147
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
147
148
|
$host: Element | null;
|
|
148
149
|
$emit: (event: "click", event: Event) => void;
|
|
149
|
-
$el:
|
|
150
|
+
$el: HTMLButtonElement;
|
|
150
151
|
$options: import('vue').ComponentOptionsBase<Readonly<import('../QButton').QButtonProps> & Readonly<{
|
|
151
152
|
onClick?: ((event: Event) => any) | undefined;
|
|
152
153
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
@@ -202,7 +203,7 @@ declare function __VLS_template(): {
|
|
|
202
203
|
readonly disabled?: boolean | undefined;
|
|
203
204
|
readonly class?: (string | unknown[]) | undefined;
|
|
204
205
|
readonly selectable?: boolean | undefined;
|
|
205
|
-
readonly "onUpdate:modelValue"?: ((
|
|
206
|
+
readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
206
207
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
207
208
|
$attrs: {
|
|
208
209
|
[x: string]: unknown;
|
|
@@ -216,12 +217,12 @@ declare function __VLS_template(): {
|
|
|
216
217
|
$root: import('vue').ComponentPublicInstance | null;
|
|
217
218
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
218
219
|
$host: Element | null;
|
|
219
|
-
$emit: (event: "update:modelValue",
|
|
220
|
+
$emit: (event: "update:modelValue", value: any) => void;
|
|
220
221
|
$el: any;
|
|
221
222
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
222
223
|
modelValue?: any;
|
|
223
224
|
} & import('../QList').QListProps> & Readonly<{
|
|
224
|
-
"onUpdate:modelValue"?: ((
|
|
225
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
225
226
|
}>, {
|
|
226
227
|
focusItem: (itemIdx: number, preventScroll?: boolean) => void;
|
|
227
228
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
@@ -229,7 +230,7 @@ declare function __VLS_template(): {
|
|
|
229
230
|
getFirstFocusableItemIndex: () => number;
|
|
230
231
|
getLastFocusableItemIndex: () => number;
|
|
231
232
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
232
|
-
"update:modelValue": (
|
|
233
|
+
"update:modelValue": (value: any) => any;
|
|
233
234
|
}, string, {
|
|
234
235
|
class: string | unknown[];
|
|
235
236
|
highlighted: Primitive;
|
|
@@ -265,7 +266,7 @@ declare function __VLS_template(): {
|
|
|
265
266
|
}> & Omit<Readonly<{
|
|
266
267
|
modelValue?: any;
|
|
267
268
|
} & import('../QList').QListProps> & Readonly<{
|
|
268
|
-
"onUpdate:modelValue"?: ((
|
|
269
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
269
270
|
}>, "focusItem" | "getItem" | "getAdjacentItemIndex" | "getFirstFocusableItemIndex" | "getLastFocusableItemIndex" | ("class" | "highlighted" | "groups" | "itemValue" | "itemLabel")> & import('vue').ShallowUnwrapRef<{
|
|
270
271
|
focusItem: (itemIdx: number, preventScroll?: boolean) => void;
|
|
271
272
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
@@ -280,7 +281,7 @@ declare function __VLS_template(): {
|
|
|
280
281
|
};
|
|
281
282
|
}) | null;
|
|
282
283
|
};
|
|
283
|
-
|
|
284
|
+
rootEl: any;
|
|
284
285
|
};
|
|
285
286
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
286
287
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
@@ -300,7 +301,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
300
301
|
readonly role?: string | undefined;
|
|
301
302
|
readonly type?: string | undefined;
|
|
302
303
|
readonly class?: (string | unknown[]) | undefined;
|
|
303
|
-
readonly "onUpdate:modelValue"?: ((
|
|
304
|
+
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
304
305
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
305
306
|
$attrs: {
|
|
306
307
|
[x: string]: unknown;
|
|
@@ -314,22 +315,22 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
314
315
|
$root: import('vue').ComponentPublicInstance | null;
|
|
315
316
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
316
317
|
$host: Element | null;
|
|
317
|
-
$emit: (event: "update:modelValue",
|
|
318
|
+
$emit: (event: "update:modelValue", value: string) => void;
|
|
318
319
|
$el: any;
|
|
319
320
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
320
321
|
modelValue?: string;
|
|
321
322
|
} & import('../QTextField/types').QTextFieldProps> & Readonly<{
|
|
322
|
-
"onUpdate:modelValue"?: ((
|
|
323
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
323
324
|
}>, {
|
|
324
325
|
fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
|
|
325
326
|
inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
326
327
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
327
|
-
"update:modelValue": (
|
|
328
|
+
"update:modelValue": (value: string) => any;
|
|
328
329
|
}, string, {
|
|
329
330
|
size: import('..').QFieldSize;
|
|
330
331
|
class: string | unknown[];
|
|
331
|
-
type: string;
|
|
332
332
|
label: string;
|
|
333
|
+
type: string;
|
|
333
334
|
role: string;
|
|
334
335
|
id: string;
|
|
335
336
|
placeholder: string;
|
|
@@ -357,8 +358,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
357
358
|
} & Readonly<{
|
|
358
359
|
size: import('..').QFieldSize;
|
|
359
360
|
class: string | unknown[];
|
|
360
|
-
type: string;
|
|
361
361
|
label: string;
|
|
362
|
+
type: string;
|
|
362
363
|
role: string;
|
|
363
364
|
id: string;
|
|
364
365
|
placeholder: string;
|
|
@@ -366,8 +367,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
366
367
|
}> & Omit<Readonly<{
|
|
367
368
|
modelValue?: string;
|
|
368
369
|
} & import('../QTextField/types').QTextFieldProps> & Readonly<{
|
|
369
|
-
"onUpdate:modelValue"?: ((
|
|
370
|
-
}>, "fieldRef" | "inputRef" | ("size" | "class" | "
|
|
370
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
371
|
+
}>, "fieldRef" | "inputRef" | ("size" | "class" | "label" | "type" | "role" | "id" | "placeholder" | "maxLength")> & import('vue').ShallowUnwrapRef<{
|
|
371
372
|
fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
|
|
372
373
|
inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
373
374
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
@@ -394,7 +395,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
394
395
|
readonly role?: string | undefined;
|
|
395
396
|
readonly type?: string | undefined;
|
|
396
397
|
readonly class?: (string | unknown[]) | undefined;
|
|
397
|
-
readonly "onUpdate:modelValue"?: ((
|
|
398
|
+
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
398
399
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
399
400
|
$attrs: {
|
|
400
401
|
[x: string]: unknown;
|
|
@@ -408,22 +409,22 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
408
409
|
$root: import('vue').ComponentPublicInstance | null;
|
|
409
410
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
410
411
|
$host: Element | null;
|
|
411
|
-
$emit: (event: "update:modelValue",
|
|
412
|
+
$emit: (event: "update:modelValue", value: string) => void;
|
|
412
413
|
$el: any;
|
|
413
414
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
414
415
|
modelValue?: string;
|
|
415
416
|
} & import('../QTextField/types').QTextFieldProps> & Readonly<{
|
|
416
|
-
"onUpdate:modelValue"?: ((
|
|
417
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
417
418
|
}>, {
|
|
418
419
|
fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
|
|
419
420
|
inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
420
421
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
421
|
-
"update:modelValue": (
|
|
422
|
+
"update:modelValue": (value: string) => any;
|
|
422
423
|
}, string, {
|
|
423
424
|
size: import('..').QFieldSize;
|
|
424
425
|
class: string | unknown[];
|
|
425
|
-
type: string;
|
|
426
426
|
label: string;
|
|
427
|
+
type: string;
|
|
427
428
|
role: string;
|
|
428
429
|
id: string;
|
|
429
430
|
placeholder: string;
|
|
@@ -451,8 +452,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
451
452
|
} & Readonly<{
|
|
452
453
|
size: import('..').QFieldSize;
|
|
453
454
|
class: string | unknown[];
|
|
454
|
-
type: string;
|
|
455
455
|
label: string;
|
|
456
|
+
type: string;
|
|
456
457
|
role: string;
|
|
457
458
|
id: string;
|
|
458
459
|
placeholder: string;
|
|
@@ -460,8 +461,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
460
461
|
}> & Omit<Readonly<{
|
|
461
462
|
modelValue?: string;
|
|
462
463
|
} & import('../QTextField/types').QTextFieldProps> & Readonly<{
|
|
463
|
-
"onUpdate:modelValue"?: ((
|
|
464
|
-
}>, "fieldRef" | "inputRef" | ("size" | "class" | "
|
|
464
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
465
|
+
}>, "fieldRef" | "inputRef" | ("size" | "class" | "label" | "type" | "role" | "id" | "placeholder" | "maxLength")> & import('vue').ShallowUnwrapRef<{
|
|
465
466
|
fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
|
|
466
467
|
inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
467
468
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
@@ -474,22 +475,22 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
474
475
|
};
|
|
475
476
|
}) | null>;
|
|
476
477
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
477
|
-
"update:modelValue": (
|
|
478
|
-
"update:open": (
|
|
479
|
-
"update:search": (
|
|
478
|
+
"update:modelValue": (value: any) => any;
|
|
479
|
+
"update:open": (value: boolean) => any;
|
|
480
|
+
"update:search": (value: string) => any;
|
|
480
481
|
} & {
|
|
481
482
|
"before-show": () => any;
|
|
482
483
|
"before-hide": () => any;
|
|
483
484
|
show: () => any;
|
|
484
485
|
hide: () => any;
|
|
485
486
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
486
|
-
"onUpdate:modelValue"?: ((
|
|
487
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
487
488
|
"onBefore-show"?: (() => any) | undefined;
|
|
488
489
|
"onBefore-hide"?: (() => any) | undefined;
|
|
489
490
|
onShow?: (() => any) | undefined;
|
|
490
491
|
onHide?: (() => any) | undefined;
|
|
491
|
-
"onUpdate:open"?: ((
|
|
492
|
-
"onUpdate:search"?: ((
|
|
492
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
493
|
+
"onUpdate:search"?: ((value: string) => any) | undefined;
|
|
493
494
|
}>, {
|
|
494
495
|
size: import('..').QFieldSize;
|
|
495
496
|
class: string | unknown[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QCombobox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCombobox/QCombobox.vue"],"names":[],"mappings":"AAwlBC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAIlD,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACtD,OAAO,EAAY,QAAQ,EAAyB,MAAM,KAAK,CAAA;AAIhE,
|
|
1
|
+
{"version":3,"file":"QCombobox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCombobox/QCombobox.vue"],"names":[],"mappings":"AA6HA;AAwlBC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAIlD,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACtD,OAAO,EAAY,QAAQ,EAAyB,MAAM,KAAK,CAAA;AAIhE,KAAK,WAAW,GAAG,cAAc,CAAC;AAydlC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,WAAW,CAAC;AAOhB,iBAAS,cAAc;WAuTT,OAAO,IAA6B;;iCAnBZ,GAAG;gCACJ,GAAG;yBACV,GAAG;wBACJ,GAAG;wBACH,GAAG;gCACK,GAAG;;;YACb,GAAG;+BACM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA/YrC,GAAC,8CACD,GAAA,yBACoB,GAAG,6DAGH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCALvB,GAAC,8CACD,GAAA,yBACoB,GAAG,6DAGH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCALvB,GAAC,8CACD,GAAA,yBACoB,GAAG,6DAGH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;EA2ZxB;AAoCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCArcnB,GAAC,8CACD,GAAA,yBACoB,GAAG,6DAGH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCALvB,GAAC,8CACD,GAAA,yBACoB,GAAG,6DAGH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAycvB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as re, mergeModels as H, useModel as T, ref as I, onMounted as
|
|
1
|
+
import { defineComponent as re, mergeModels as H, useModel as T, ref as I, onMounted as fe, computed as p, watch as k, nextTick as x, openBlock as y, createElementBlock as _, Fragment as ce, createVNode as w, unref as f, mergeProps as me, withModifiers as K, createSlots as pe, withCtx as r, renderSlot as c, createBlock as A, normalizeProps as j, guardReactiveProps as W, createCommentVNode as X, createElementVNode as ve, toDisplayString as be } from "vue";
|
|
2
2
|
import { QButton as G } from "../QButton/index.js";
|
|
3
3
|
import { QIcon as J } from "../QIcon/index.js";
|
|
4
4
|
import { QList as ye } from "../QList/index.js";
|
|
@@ -47,32 +47,32 @@ const we = ["data-key"], Ve = {
|
|
|
47
47
|
}),
|
|
48
48
|
emits: /* @__PURE__ */ H(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
|
|
49
49
|
setup(V, { expose: Y, emit: Z }) {
|
|
50
|
-
const l = V, L = Z,
|
|
51
|
-
|
|
52
|
-
const B =
|
|
50
|
+
const l = V, L = Z, s = T(V, "modelValue"), i = T(V, "open"), u = T(V, "search"), o = I(void 0), m = I(null), d = I(null), F = I(null), $ = I(null);
|
|
51
|
+
fe(h);
|
|
52
|
+
const B = p(() => l.clearable && !l.readonly && !l.disabled), v = p(() => {
|
|
53
53
|
var e;
|
|
54
54
|
return l.filterMode === "manual" || !le.value ? l.items : (e = l.items) == null ? void 0 : e.filter(
|
|
55
55
|
(a) => a[l.itemLabel].toLowerCase().startsWith(u.value.toLowerCase())
|
|
56
56
|
);
|
|
57
|
-
}), g =
|
|
57
|
+
}), g = p(() => {
|
|
58
58
|
var e;
|
|
59
|
-
return (e = l.items) == null ? void 0 : e.find((a) => a[l.itemValue] ===
|
|
60
|
-
}), C =
|
|
61
|
-
const e =
|
|
62
|
-
if (e !== void 0 &&
|
|
63
|
-
return
|
|
64
|
-
}), ee =
|
|
59
|
+
return (e = l.items) == null ? void 0 : e.find((a) => a[l.itemValue] === s.value);
|
|
60
|
+
}), C = p(() => g.value === void 0), D = p(() => {
|
|
61
|
+
const e = o.value;
|
|
62
|
+
if (e !== void 0 && v.value[e])
|
|
63
|
+
return v.value[e];
|
|
64
|
+
}), ee = p(() => {
|
|
65
65
|
var a;
|
|
66
|
-
if (
|
|
66
|
+
if (o.value === void 0)
|
|
67
67
|
return;
|
|
68
|
-
const e = (a =
|
|
68
|
+
const e = (a = d.value) == null ? void 0 : a.getItem(o.value);
|
|
69
69
|
return e == null ? void 0 : e.id;
|
|
70
|
-
}), le =
|
|
70
|
+
}), le = p(() => {
|
|
71
71
|
var e;
|
|
72
72
|
return u.value.length > 0 && u.value !== ((e = g.value) == null ? void 0 : e[l.itemLabel]);
|
|
73
73
|
});
|
|
74
74
|
function U(e) {
|
|
75
|
-
|
|
75
|
+
s.value = e, q();
|
|
76
76
|
}
|
|
77
77
|
function h() {
|
|
78
78
|
var a;
|
|
@@ -83,32 +83,32 @@ const we = ["data-key"], Ve = {
|
|
|
83
83
|
i.value || l.readonly || l.disabled || (L("before-show"), i.value = !0, S());
|
|
84
84
|
}
|
|
85
85
|
function q() {
|
|
86
|
-
i.value && (L("before-hide"), i.value = !1,
|
|
86
|
+
i.value && (L("before-hide"), i.value = !1, o.value = void 0);
|
|
87
87
|
}
|
|
88
88
|
function ae() {
|
|
89
89
|
i.value ? q() : z();
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
B.value && (
|
|
91
|
+
function te() {
|
|
92
|
+
B.value && (s.value = l.emptyValue, o.value = void 0, S());
|
|
93
93
|
}
|
|
94
94
|
function z() {
|
|
95
95
|
if (E(), g.value !== void 0) {
|
|
96
|
-
const e =
|
|
96
|
+
const e = v.value.indexOf(g.value);
|
|
97
97
|
e !== -1 && x(() => O(e));
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
function
|
|
101
|
-
var a,
|
|
100
|
+
function oe(e) {
|
|
101
|
+
var a, t;
|
|
102
102
|
if (!(!e.key || l.readonly || l.disabled))
|
|
103
103
|
if (["ArrowDown", "ArrowUp", "Home", "End"].includes(e.key) && (e.preventDefault(), e.stopPropagation()), e.key === "Escape")
|
|
104
104
|
h(), i.value && q();
|
|
105
105
|
else if (["ArrowDown", "ArrowUp"].includes(e.key))
|
|
106
106
|
i.value ? x(() => {
|
|
107
|
-
if (
|
|
107
|
+
if (o.value === void 0)
|
|
108
108
|
M();
|
|
109
109
|
else {
|
|
110
110
|
const n = e.key === "ArrowDown" ? "next" : "prev";
|
|
111
|
-
ie(
|
|
111
|
+
ie(o.value, n);
|
|
112
112
|
}
|
|
113
113
|
}) : (E(), x(() => {
|
|
114
114
|
e.key === "ArrowDown" ? M() : ne();
|
|
@@ -116,64 +116,64 @@ const we = ["data-key"], Ve = {
|
|
|
116
116
|
else if (e.key === "Enter") {
|
|
117
117
|
if (D.value === void 0) return;
|
|
118
118
|
U(D.value[l.itemValue]);
|
|
119
|
-
} else e.key === "Home" ?
|
|
119
|
+
} else e.key === "Home" ? o.value = (a = d.value) == null ? void 0 : a.getFirstFocusableItemIndex() : e.key === "End" ? o.value = (t = d.value) == null ? void 0 : t.getLastFocusableItemIndex() : (/^[a-z]$/i.test(e.key) || e.key === "Backspace") && E();
|
|
120
120
|
}
|
|
121
121
|
function M() {
|
|
122
122
|
var e, a;
|
|
123
123
|
if (C.value)
|
|
124
|
-
|
|
124
|
+
o.value = (a = d.value) == null ? void 0 : a.getFirstFocusableItemIndex();
|
|
125
125
|
else {
|
|
126
|
-
const
|
|
127
|
-
(n) => n[l.itemValue] ===
|
|
126
|
+
const t = v.value.findIndex(
|
|
127
|
+
(n) => n[l.itemValue] === s.value
|
|
128
128
|
);
|
|
129
|
-
|
|
129
|
+
t === -1 ? o.value = (e = d.value) == null ? void 0 : e.getFirstFocusableItemIndex() : o.value = t;
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
function ne() {
|
|
133
133
|
var e;
|
|
134
|
-
|
|
134
|
+
o.value = (e = d.value) == null ? void 0 : e.getLastFocusableItemIndex();
|
|
135
135
|
}
|
|
136
136
|
function ie(e, a) {
|
|
137
|
-
var
|
|
138
|
-
|
|
137
|
+
var t;
|
|
138
|
+
o.value = (t = d.value) == null ? void 0 : t.getAdjacentItemIndex(e, a);
|
|
139
139
|
}
|
|
140
140
|
function N(e) {
|
|
141
141
|
var b, Q, P, R;
|
|
142
|
-
const a = ((b = F == null ? void 0 : F.value) == null ? void 0 : b.$el) === e.relatedTarget,
|
|
143
|
-
if (a || n ||
|
|
142
|
+
const a = ((b = F == null ? void 0 : F.value) == null ? void 0 : b.$el) === e.relatedTarget, t = (P = (Q = m == null ? void 0 : m.value) == null ? void 0 : Q.$el) == null ? void 0 : P.contains(e.relatedTarget), n = (R = $ == null ? void 0 : $.value) == null ? void 0 : R.contains(e.relatedTarget);
|
|
143
|
+
if (a || n || t) {
|
|
144
144
|
e.preventDefault(), e.stopPropagation();
|
|
145
145
|
return;
|
|
146
146
|
}
|
|
147
|
-
q(), B.value && !u.value && (
|
|
147
|
+
q(), B.value && !u.value && (s.value = l.emptyValue), h();
|
|
148
148
|
}
|
|
149
149
|
function S() {
|
|
150
150
|
var e, a;
|
|
151
|
-
(a = (e =
|
|
151
|
+
(a = (e = m.value) == null ? void 0 : e.inputRef) == null || a.focus();
|
|
152
152
|
}
|
|
153
153
|
function ue() {
|
|
154
154
|
S();
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function de() {
|
|
157
157
|
L("show");
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function se() {
|
|
160
160
|
L("hide");
|
|
161
161
|
}
|
|
162
162
|
function O(e) {
|
|
163
|
-
var
|
|
164
|
-
const a = (
|
|
165
|
-
|
|
163
|
+
var t;
|
|
164
|
+
const a = (t = d.value) == null ? void 0 : t.getItem(e);
|
|
165
|
+
d.value && (d.value.$el.scrollTop = a == null ? void 0 : a.offsetTop);
|
|
166
166
|
}
|
|
167
|
-
return k(
|
|
167
|
+
return k(s, h), k(
|
|
168
168
|
() => l.items,
|
|
169
169
|
(e, a) => {
|
|
170
170
|
if (!C.value) {
|
|
171
|
-
const
|
|
172
|
-
u.value === (
|
|
171
|
+
const t = a.find((n) => n[l.itemValue] === s.value);
|
|
172
|
+
u.value === (t == null ? void 0 : t[l.itemLabel]) && h();
|
|
173
173
|
}
|
|
174
174
|
},
|
|
175
175
|
{ deep: !0 }
|
|
176
|
-
), k(
|
|
176
|
+
), k(o, (e) => {
|
|
177
177
|
e !== void 0 && O(e);
|
|
178
178
|
}), k(u, (e) => {
|
|
179
179
|
e && i.value && l.selectionMode === "automatic" && x(M);
|
|
@@ -183,21 +183,21 @@ const we = ["data-key"], Ve = {
|
|
|
183
183
|
!e && i.value && x(M);
|
|
184
184
|
}
|
|
185
185
|
), Y({
|
|
186
|
-
triggerEl:
|
|
186
|
+
triggerEl: m
|
|
187
187
|
}), (e, a) => {
|
|
188
|
-
var
|
|
188
|
+
var t;
|
|
189
189
|
return y(), _(
|
|
190
|
-
|
|
190
|
+
ce,
|
|
191
191
|
null,
|
|
192
192
|
[
|
|
193
|
-
w(
|
|
193
|
+
w(f(Ie), me({
|
|
194
|
+
id: l.id,
|
|
195
|
+
ref_key: "triggerEl",
|
|
196
|
+
ref: m,
|
|
194
197
|
modelValue: u.value,
|
|
195
198
|
"onUpdate:modelValue": a[0] || (a[0] = (n) => u.value = n),
|
|
196
|
-
id: l.id,
|
|
197
199
|
label: l.label,
|
|
198
200
|
required: l.required,
|
|
199
|
-
ref_key: "triggerEl",
|
|
200
|
-
ref: v,
|
|
201
201
|
role: "combobox",
|
|
202
202
|
placeholder: l.placeholder,
|
|
203
203
|
class: [
|
|
@@ -221,28 +221,28 @@ const we = ["data-key"], Ve = {
|
|
|
221
221
|
}, e.$attrs, {
|
|
222
222
|
onClick: z,
|
|
223
223
|
onFocusout: N,
|
|
224
|
-
onKeydown: K(
|
|
225
|
-
}),
|
|
224
|
+
onKeydown: K(oe, ["stop"])
|
|
225
|
+
}), pe({
|
|
226
226
|
"label.prepend": r(() => [
|
|
227
|
-
|
|
227
|
+
c(e.$slots, "label.prepend")
|
|
228
228
|
]),
|
|
229
229
|
"label.append": r(() => [
|
|
230
|
-
|
|
230
|
+
c(e.$slots, "label.append")
|
|
231
231
|
]),
|
|
232
232
|
append: r(() => [
|
|
233
|
-
|
|
234
|
-
B.value && u.value ? (y(), A(
|
|
233
|
+
c(e.$slots, "append"),
|
|
234
|
+
B.value && u.value ? (y(), A(f(G), {
|
|
235
235
|
key: 0,
|
|
236
236
|
class: "q-combobox__clear",
|
|
237
237
|
"aria-label": l.texts.clearValue,
|
|
238
238
|
"b-style": "plain",
|
|
239
239
|
borderless: "",
|
|
240
240
|
tabindex: "-1",
|
|
241
|
-
onClick:
|
|
241
|
+
onClick: te
|
|
242
242
|
}, {
|
|
243
243
|
default: r(() => [
|
|
244
244
|
w(
|
|
245
|
-
|
|
245
|
+
f(J),
|
|
246
246
|
j(W(l.icons.clear)),
|
|
247
247
|
null,
|
|
248
248
|
16
|
|
@@ -252,7 +252,7 @@ const we = ["data-key"], Ve = {
|
|
|
252
252
|
_: 1
|
|
253
253
|
/* STABLE */
|
|
254
254
|
}, 8, ["aria-label"])) : X("v-if", !0),
|
|
255
|
-
l.readonly ? X("v-if", !0) : (y(), A(
|
|
255
|
+
l.readonly ? X("v-if", !0) : (y(), A(f(G), {
|
|
256
256
|
key: 1,
|
|
257
257
|
ref_key: "toggleRef",
|
|
258
258
|
ref: F,
|
|
@@ -266,7 +266,7 @@ const we = ["data-key"], Ve = {
|
|
|
266
266
|
}, {
|
|
267
267
|
default: r(() => [
|
|
268
268
|
w(
|
|
269
|
-
|
|
269
|
+
f(J),
|
|
270
270
|
j(W(l.icons.chevron)),
|
|
271
271
|
null,
|
|
272
272
|
16
|
|
@@ -283,19 +283,19 @@ const we = ["data-key"], Ve = {
|
|
|
283
283
|
e.$slots.prepend ? {
|
|
284
284
|
name: "prepend",
|
|
285
285
|
fn: r(() => [
|
|
286
|
-
|
|
286
|
+
c(e.$slots, "prepend")
|
|
287
287
|
]),
|
|
288
288
|
key: "0"
|
|
289
289
|
} : void 0,
|
|
290
290
|
e.$slots.extras ? {
|
|
291
291
|
name: "extras",
|
|
292
292
|
fn: r(() => [
|
|
293
|
-
|
|
293
|
+
c(e.$slots, "extras")
|
|
294
294
|
]),
|
|
295
295
|
key: "1"
|
|
296
296
|
} : void 0
|
|
297
|
-
]), 1040, ["
|
|
298
|
-
w(
|
|
297
|
+
]), 1040, ["id", "modelValue", "label", "required", "placeholder", "class", "readonly", "disabled", "data-loading", "aria-expanded", "aria-activedescendant", "size"]),
|
|
298
|
+
w(f(ge), {
|
|
299
299
|
modelValue: i.value,
|
|
300
300
|
"onUpdate:modelValue": a[2] || (a[2] = (n) => i.value = n),
|
|
301
301
|
spy: "",
|
|
@@ -304,14 +304,14 @@ const we = ["data-key"], Ve = {
|
|
|
304
304
|
placement: "bottom-start",
|
|
305
305
|
width: "anchor",
|
|
306
306
|
offset: 4,
|
|
307
|
-
anchor: (
|
|
308
|
-
onEnter:
|
|
309
|
-
onLeave:
|
|
307
|
+
anchor: (t = m.value) == null ? void 0 : t.$el,
|
|
308
|
+
onEnter: de,
|
|
309
|
+
onLeave: se
|
|
310
310
|
}, {
|
|
311
311
|
default: r(() => {
|
|
312
312
|
var n;
|
|
313
313
|
return [
|
|
314
|
-
|
|
314
|
+
ve("div", {
|
|
315
315
|
ref_key: "contentRef",
|
|
316
316
|
ref: $,
|
|
317
317
|
class: "q-select__body",
|
|
@@ -319,29 +319,29 @@ const we = ["data-key"], Ve = {
|
|
|
319
319
|
"data-key": l.id,
|
|
320
320
|
onFocusout: N
|
|
321
321
|
}, [
|
|
322
|
-
|
|
322
|
+
c(e.$slots, "body.prepend"),
|
|
323
323
|
l.loading ? (y(), _("div", Ve, [
|
|
324
|
-
w(
|
|
325
|
-
])) :
|
|
324
|
+
w(f(he), { size: 24 })
|
|
325
|
+
])) : v.value.length ? (y(), A(f(ye), {
|
|
326
326
|
key: 1,
|
|
327
327
|
ref_key: "listRef",
|
|
328
|
-
ref:
|
|
329
|
-
|
|
330
|
-
selectable: "",
|
|
331
|
-
modelValue: d.value,
|
|
328
|
+
ref: d,
|
|
329
|
+
modelValue: s.value,
|
|
332
330
|
"onUpdate:modelValue": [
|
|
333
|
-
a[1] || (a[1] = (b) =>
|
|
331
|
+
a[1] || (a[1] = (b) => s.value = b),
|
|
334
332
|
U
|
|
335
333
|
],
|
|
334
|
+
class: "q-select__items",
|
|
335
|
+
selectable: "",
|
|
336
336
|
highlighted: (n = D.value) == null ? void 0 : n[l.itemValue],
|
|
337
|
-
items:
|
|
337
|
+
items: v.value,
|
|
338
338
|
groups: e.groups,
|
|
339
339
|
"item-label": l.itemLabel,
|
|
340
340
|
"item-value": l.itemValue,
|
|
341
341
|
onMouseup: ue
|
|
342
342
|
}, {
|
|
343
343
|
item: r(({ item: b }) => [
|
|
344
|
-
|
|
344
|
+
c(e.$slots, "item", { item: b })
|
|
345
345
|
]),
|
|
346
346
|
_: 3
|
|
347
347
|
/* FORWARDED */
|
|
@@ -352,7 +352,7 @@ const we = ["data-key"], Ve = {
|
|
|
352
352
|
1
|
|
353
353
|
/* TEXT */
|
|
354
354
|
)),
|
|
355
|
-
|
|
355
|
+
c(e.$slots, "body.append")
|
|
356
356
|
], 40, we)
|
|
357
357
|
];
|
|
358
358
|
}),
|