@quidgest/ui 0.15.8 → 0.16.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/dist/manifest/components.json +4 -1
- package/dist/ui.css +9 -6
- package/dist/ui.esm.js +3559 -3456
- package/dist/ui.js +26 -26
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +738 -731
- package/dist/ui.scss +11 -7
- package/esm/components/QAccordion/QAccordion.d.ts +4 -3
- package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
- package/esm/components/QAccordion/QAccordion.vue.js +21 -17
- package/esm/components/QAccordion/QAccordionItem.d.ts +19 -0
- package/esm/components/QAccordion/QAccordionItem.d.ts.map +1 -0
- package/esm/components/QAccordion/QAccordionItem.vue.js +42 -0
- package/esm/components/QAccordion/QAccordionItem.vue2.js +4 -0
- package/esm/components/QAccordion/index.d.ts +35 -15
- package/esm/components/QAccordion/index.d.ts.map +1 -1
- package/esm/components/QAccordion/index.js +6 -4
- package/esm/components/QAccordion/types.d.ts +25 -5
- package/esm/components/QAccordion/types.d.ts.map +1 -1
- package/esm/components/QButton/QButton.d.ts.map +1 -1
- package/esm/components/QButton/QButton.vue.js +9 -11
- package/esm/components/QButton/types.d.ts +0 -4
- package/esm/components/QButton/types.d.ts.map +1 -1
- package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
- package/esm/components/QCollapsible/QCollapsible.vue.js +60 -65
- package/esm/components/QCollapsible/index.d.ts +14 -14
- package/esm/components/QCollapsible/index.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.d.ts +44 -49
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +71 -71
- package/esm/components/QCombobox/index.d.ts +40 -59
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QCombobox/types.d.ts +4 -9
- package/esm/components/QCombobox/types.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenu.d.ts +2 -3
- package/esm/components/QDropdownMenu/QDropdownMenu.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +45 -46
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +24 -24
- package/esm/components/QDropdownMenu/index.d.ts +2 -2
- package/esm/components/QList/QList.d.ts +15 -16
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +46 -46
- package/esm/components/QList/QListItem.d.ts +1 -1
- package/esm/components/QList/QListItem.vue.js +19 -19
- package/esm/components/QList/index.d.ts +24 -24
- package/esm/components/QList/types.d.ts +3 -4
- package/esm/components/QList/types.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioButton.vue.js +3 -3
- package/esm/components/QRadioGroup/QRadioGroup.d.ts +3 -4
- package/esm/components/QRadioGroup/QRadioGroup.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioGroup.vue.js +8 -8
- package/esm/components/QRadioGroup/index.d.ts +8 -8
- package/esm/components/QSelect/QSelect.d.ts +44 -47
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +49 -49
- package/esm/components/QSelect/index.d.ts +40 -58
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QSelect/types.d.ts +4 -9
- package/esm/components/QSelect/types.d.ts.map +1 -1
- package/esm/components/{QButtonToggle/QButtonToggle.d.ts → QToggle/QToggle.d.ts} +11 -9
- package/esm/components/QToggle/QToggle.d.ts.map +1 -0
- package/esm/components/QToggle/QToggle.vue.js +40 -0
- package/esm/components/QToggle/QToggle.vue2.js +4 -0
- package/esm/components/QToggle/index.d.ts +71 -0
- package/esm/components/QToggle/index.d.ts.map +1 -0
- package/esm/components/{QButtonToggle → QToggle}/index.js +3 -3
- package/esm/components/QToggle/types.d.ts +3 -0
- package/esm/components/QToggle/types.d.ts.map +1 -0
- package/esm/components/QToggleGroup/QToggleGroup.d.ts +28 -0
- package/esm/components/QToggleGroup/QToggleGroup.d.ts.map +1 -0
- package/esm/components/QToggleGroup/QToggleGroup.vue.js +49 -0
- package/esm/components/QToggleGroup/QToggleGroup.vue2.js +4 -0
- package/esm/components/QToggleGroup/QToggleGroupItem.d.ts +19 -0
- package/esm/components/QToggleGroup/QToggleGroupItem.d.ts.map +1 -0
- package/esm/components/QToggleGroup/QToggleGroupItem.vue.js +44 -0
- package/esm/components/QToggleGroup/QToggleGroupItem.vue2.js +4 -0
- package/esm/components/QToggleGroup/index.d.ts +75 -0
- package/esm/components/QToggleGroup/index.d.ts.map +1 -0
- package/esm/components/QToggleGroup/index.js +8 -0
- package/esm/components/QToggleGroup/types.d.ts +19 -0
- package/esm/components/QToggleGroup/types.d.ts.map +1 -0
- package/esm/components/index.d.ts +2 -1
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +83 -79
- package/esm/composables/{group.d.ts → useGroup/index.d.ts} +11 -3
- package/esm/composables/useGroup/index.d.ts.map +1 -0
- package/esm/composables/useGroup/index.js +38 -0
- package/esm/index.d.ts +4 -1
- package/package.json +1 -1
- package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +0 -1
- package/esm/components/QButtonToggle/QButtonToggle.vue.js +0 -62
- package/esm/components/QButtonToggle/QButtonToggle.vue2.js +0 -4
- package/esm/components/QButtonToggle/index.d.ts +0 -51
- package/esm/components/QButtonToggle/index.d.ts.map +0 -1
- package/esm/components/QButtonToggle/types.d.ts +0 -29
- package/esm/components/QButtonToggle/types.d.ts.map +0 -1
- package/esm/composables/group.d.ts.map +0 -1
- package/esm/composables/group.js +0 -31
|
@@ -30,7 +30,7 @@ declare const QRadioButton: {
|
|
|
30
30
|
});
|
|
31
31
|
declare const QRadioGroup: {
|
|
32
32
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
33
|
-
modelValue?:
|
|
33
|
+
modelValue?: any;
|
|
34
34
|
} & import('../../types/component').QBaseComponentProps & {
|
|
35
35
|
label?: string;
|
|
36
36
|
for?: string;
|
|
@@ -43,9 +43,9 @@ declare const QRadioGroup: {
|
|
|
43
43
|
invalid?: boolean;
|
|
44
44
|
name?: string;
|
|
45
45
|
}> & Readonly<{
|
|
46
|
-
"onUpdate:modelValue"?: ((value:
|
|
46
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
47
47
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
48
|
-
"update:modelValue": (value:
|
|
48
|
+
"update:modelValue": (value: any) => any;
|
|
49
49
|
}, import('vue').PublicProps, {
|
|
50
50
|
size: import('./types').QRadioButtonSize;
|
|
51
51
|
orientation: import('./types').QRadioButtonOrientation;
|
|
@@ -57,7 +57,7 @@ declare const QRadioGroup: {
|
|
|
57
57
|
M: {};
|
|
58
58
|
Defaults: {};
|
|
59
59
|
}, Readonly<{
|
|
60
|
-
modelValue?:
|
|
60
|
+
modelValue?: any;
|
|
61
61
|
} & import('../../types/component').QBaseComponentProps & {
|
|
62
62
|
label?: string;
|
|
63
63
|
for?: string;
|
|
@@ -70,7 +70,7 @@ declare const QRadioGroup: {
|
|
|
70
70
|
invalid?: boolean;
|
|
71
71
|
name?: string;
|
|
72
72
|
}> & Readonly<{
|
|
73
|
-
"onUpdate:modelValue"?: ((value:
|
|
73
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
74
74
|
}>, {}, {}, {}, {}, {
|
|
75
75
|
size: import('./types').QRadioButtonSize;
|
|
76
76
|
orientation: import('./types').QRadioButtonOrientation;
|
|
@@ -79,7 +79,7 @@ declare const QRadioGroup: {
|
|
|
79
79
|
__isTeleport?: never;
|
|
80
80
|
__isSuspense?: never;
|
|
81
81
|
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
82
|
-
modelValue?:
|
|
82
|
+
modelValue?: any;
|
|
83
83
|
} & import('../../types/component').QBaseComponentProps & {
|
|
84
84
|
label?: string;
|
|
85
85
|
for?: string;
|
|
@@ -92,9 +92,9 @@ declare const QRadioGroup: {
|
|
|
92
92
|
invalid?: boolean;
|
|
93
93
|
name?: string;
|
|
94
94
|
}> & Readonly<{
|
|
95
|
-
"onUpdate:modelValue"?: ((value:
|
|
95
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
96
96
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
97
|
-
"update:modelValue": (value:
|
|
97
|
+
"update:modelValue": (value: any) => any;
|
|
98
98
|
}, string, {
|
|
99
99
|
size: import('./types').QRadioButtonSize;
|
|
100
100
|
orientation: import('./types').QRadioButtonOrientation;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { DEFAULT_ICONS, DEFAULT_TEXTS, QSelectProps } from './types';
|
|
2
|
-
import { Primitive } from '../../types/primitive';
|
|
3
2
|
import { nextTick } from 'vue';
|
|
4
3
|
type __VLS_Props = QSelectProps;
|
|
5
4
|
type __VLS_PublicProps = {
|
|
6
|
-
modelValue?:
|
|
5
|
+
modelValue?: any;
|
|
7
6
|
} & __VLS_Props;
|
|
8
7
|
declare function __VLS_template(): {
|
|
9
8
|
attrs: Partial<{}>;
|
|
@@ -92,18 +91,18 @@ declare function __VLS_template(): {
|
|
|
92
91
|
$: import('vue').ComponentInternalInstance;
|
|
93
92
|
$data: {};
|
|
94
93
|
$props: {
|
|
95
|
-
readonly modelValue?:
|
|
94
|
+
readonly modelValue?: any;
|
|
96
95
|
readonly id?: string | undefined;
|
|
97
96
|
readonly class?: string | unknown[] | undefined;
|
|
98
|
-
readonly highlighted?:
|
|
97
|
+
readonly highlighted?: any;
|
|
99
98
|
readonly items?: import('../QList/types').Item[] | undefined;
|
|
100
99
|
readonly groups?: import('../QList/types').Group[] | undefined;
|
|
101
100
|
readonly itemValue?: string | undefined;
|
|
102
101
|
readonly itemLabel?: string | undefined;
|
|
103
102
|
readonly disabled?: boolean | undefined;
|
|
104
103
|
readonly selectable?: boolean | undefined;
|
|
105
|
-
readonly
|
|
106
|
-
readonly
|
|
104
|
+
readonly onClick?: ((key: any) => any) | undefined;
|
|
105
|
+
readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
107
106
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
108
107
|
$attrs: {
|
|
109
108
|
[x: string]: unknown;
|
|
@@ -117,7 +116,7 @@ declare function __VLS_template(): {
|
|
|
117
116
|
$data: {};
|
|
118
117
|
$props: {
|
|
119
118
|
readonly modelValue?: boolean | undefined;
|
|
120
|
-
readonly value:
|
|
119
|
+
readonly value: any;
|
|
121
120
|
readonly label: string;
|
|
122
121
|
readonly icon?: import('..').Icon | undefined;
|
|
123
122
|
readonly selectable?: boolean | undefined;
|
|
@@ -125,8 +124,8 @@ declare function __VLS_template(): {
|
|
|
125
124
|
readonly disabled?: boolean | undefined;
|
|
126
125
|
readonly description?: string | undefined;
|
|
127
126
|
readonly icons?: typeof import('../QList/types').DEFAULT_ICONS | undefined;
|
|
128
|
-
readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
129
127
|
readonly onClick?: (() => any) | undefined;
|
|
128
|
+
readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
130
129
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
131
130
|
$attrs: {
|
|
132
131
|
[x: string]: unknown;
|
|
@@ -140,13 +139,13 @@ declare function __VLS_template(): {
|
|
|
140
139
|
$root: import('vue').ComponentPublicInstance | null;
|
|
141
140
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
142
141
|
$host: Element | null;
|
|
143
|
-
$emit: ((event: "
|
|
142
|
+
$emit: ((event: "click") => void) & ((event: "update:modelValue", value: boolean) => void);
|
|
144
143
|
$el: HTMLLIElement;
|
|
145
144
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
146
145
|
modelValue?: boolean;
|
|
147
146
|
} & import('..').QListItemProps> & Readonly<{
|
|
148
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
149
147
|
onClick?: (() => any) | undefined;
|
|
148
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
150
149
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
151
150
|
"update:modelValue": (value: boolean) => any;
|
|
152
151
|
} & {
|
|
@@ -178,8 +177,8 @@ declare function __VLS_template(): {
|
|
|
178
177
|
}> & Omit<Readonly<{
|
|
179
178
|
modelValue?: boolean;
|
|
180
179
|
} & import('..').QListItemProps> & Readonly<{
|
|
181
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
182
180
|
onClick?: (() => any) | undefined;
|
|
181
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
183
182
|
}>, "icons"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
184
183
|
$slots: {
|
|
185
184
|
prepend?(_: {}): any;
|
|
@@ -194,12 +193,12 @@ declare function __VLS_template(): {
|
|
|
194
193
|
$root: import('vue').ComponentPublicInstance | null;
|
|
195
194
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
196
195
|
$host: Element | null;
|
|
197
|
-
$emit: ((event: "
|
|
196
|
+
$emit: ((event: "click", key: any) => void) & ((event: "update:modelValue", value: any) => void);
|
|
198
197
|
$el: any;
|
|
199
198
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
200
|
-
modelValue?:
|
|
199
|
+
modelValue?: any;
|
|
201
200
|
} & import('../../types/component').QBaseComponentProps & {
|
|
202
|
-
highlighted?:
|
|
201
|
+
highlighted?: any;
|
|
203
202
|
items?: import('../QList/types').Item[];
|
|
204
203
|
groups?: import('../QList/types').Group[];
|
|
205
204
|
itemValue?: string;
|
|
@@ -207,17 +206,17 @@ declare function __VLS_template(): {
|
|
|
207
206
|
disabled?: boolean;
|
|
208
207
|
selectable?: boolean;
|
|
209
208
|
}> & Readonly<{
|
|
210
|
-
|
|
211
|
-
|
|
209
|
+
onClick?: ((key: any) => any) | undefined;
|
|
210
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
212
211
|
}>, {
|
|
213
212
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
214
213
|
getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
|
|
215
214
|
getFirstFocusableItemIndex: () => number;
|
|
216
215
|
getLastFocusableItemIndex: () => number;
|
|
217
216
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
218
|
-
"update:modelValue": (value:
|
|
217
|
+
"update:modelValue": (value: any) => any;
|
|
219
218
|
} & {
|
|
220
|
-
click: (key:
|
|
219
|
+
click: (key: any) => any;
|
|
221
220
|
}, string, {
|
|
222
221
|
groups: import('../QList/types').Group[];
|
|
223
222
|
itemValue: string;
|
|
@@ -247,9 +246,9 @@ declare function __VLS_template(): {
|
|
|
247
246
|
itemValue: string;
|
|
248
247
|
itemLabel: string;
|
|
249
248
|
}> & Omit<Readonly<{
|
|
250
|
-
modelValue?:
|
|
249
|
+
modelValue?: any;
|
|
251
250
|
} & import('../../types/component').QBaseComponentProps & {
|
|
252
|
-
highlighted?:
|
|
251
|
+
highlighted?: any;
|
|
253
252
|
items?: import('../QList/types').Item[];
|
|
254
253
|
groups?: import('../QList/types').Group[];
|
|
255
254
|
itemValue?: string;
|
|
@@ -257,8 +256,8 @@ declare function __VLS_template(): {
|
|
|
257
256
|
disabled?: boolean;
|
|
258
257
|
selectable?: boolean;
|
|
259
258
|
}> & Readonly<{
|
|
260
|
-
|
|
261
|
-
|
|
259
|
+
onClick?: ((key: any) => any) | undefined;
|
|
260
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
262
261
|
}>, "getItem" | "getAdjacentItemIndex" | "getFirstFocusableItemIndex" | "getLastFocusableItemIndex" | ("groups" | "itemValue" | "itemLabel")> & import('vue').ShallowUnwrapRef<{
|
|
263
262
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
264
263
|
getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
|
|
@@ -281,14 +280,14 @@ declare function __VLS_template(): {
|
|
|
281
280
|
};
|
|
282
281
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
283
282
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
284
|
-
"update:modelValue": (value:
|
|
283
|
+
"update:modelValue": (value: any) => any;
|
|
285
284
|
} & {
|
|
286
285
|
"before-show": () => any;
|
|
287
286
|
"before-hide": () => any;
|
|
288
287
|
show: () => any;
|
|
289
288
|
hide: () => any;
|
|
290
289
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
291
|
-
"onUpdate:modelValue"?: ((value:
|
|
290
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
292
291
|
"onBefore-show"?: (() => any) | undefined;
|
|
293
292
|
"onBefore-hide"?: (() => any) | undefined;
|
|
294
293
|
onShow?: (() => any) | undefined;
|
|
@@ -296,9 +295,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
296
295
|
}>, {
|
|
297
296
|
icons: typeof DEFAULT_ICONS;
|
|
298
297
|
texts: typeof DEFAULT_TEXTS;
|
|
299
|
-
groups:
|
|
300
|
-
id: string;
|
|
301
|
-
})[];
|
|
298
|
+
groups: import('../QList/types').Group[];
|
|
302
299
|
itemValue: string;
|
|
303
300
|
itemLabel: string;
|
|
304
301
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
@@ -376,18 +373,18 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
376
373
|
$: import('vue').ComponentInternalInstance;
|
|
377
374
|
$data: {};
|
|
378
375
|
$props: {
|
|
379
|
-
readonly modelValue?:
|
|
376
|
+
readonly modelValue?: any;
|
|
380
377
|
readonly id?: string | undefined;
|
|
381
378
|
readonly class?: string | unknown[] | undefined;
|
|
382
|
-
readonly highlighted?:
|
|
379
|
+
readonly highlighted?: any;
|
|
383
380
|
readonly items?: import('../QList/types').Item[] | undefined;
|
|
384
381
|
readonly groups?: import('../QList/types').Group[] | undefined;
|
|
385
382
|
readonly itemValue?: string | undefined;
|
|
386
383
|
readonly itemLabel?: string | undefined;
|
|
387
384
|
readonly disabled?: boolean | undefined;
|
|
388
385
|
readonly selectable?: boolean | undefined;
|
|
389
|
-
readonly
|
|
390
|
-
readonly
|
|
386
|
+
readonly onClick?: ((key: any) => any) | undefined;
|
|
387
|
+
readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
391
388
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
392
389
|
$attrs: {
|
|
393
390
|
[x: string]: unknown;
|
|
@@ -401,7 +398,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
401
398
|
$data: {};
|
|
402
399
|
$props: {
|
|
403
400
|
readonly modelValue?: boolean | undefined;
|
|
404
|
-
readonly value:
|
|
401
|
+
readonly value: any;
|
|
405
402
|
readonly label: string;
|
|
406
403
|
readonly icon?: import('..').Icon | undefined;
|
|
407
404
|
readonly selectable?: boolean | undefined;
|
|
@@ -409,8 +406,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
409
406
|
readonly disabled?: boolean | undefined;
|
|
410
407
|
readonly description?: string | undefined;
|
|
411
408
|
readonly icons?: typeof import('../QList/types').DEFAULT_ICONS | undefined;
|
|
412
|
-
readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
413
409
|
readonly onClick?: (() => any) | undefined;
|
|
410
|
+
readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
414
411
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
415
412
|
$attrs: {
|
|
416
413
|
[x: string]: unknown;
|
|
@@ -424,13 +421,13 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
424
421
|
$root: import('vue').ComponentPublicInstance | null;
|
|
425
422
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
426
423
|
$host: Element | null;
|
|
427
|
-
$emit: ((event: "
|
|
424
|
+
$emit: ((event: "click") => void) & ((event: "update:modelValue", value: boolean) => void);
|
|
428
425
|
$el: HTMLLIElement;
|
|
429
426
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
430
427
|
modelValue?: boolean;
|
|
431
428
|
} & import('..').QListItemProps> & Readonly<{
|
|
432
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
433
429
|
onClick?: (() => any) | undefined;
|
|
430
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
434
431
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
435
432
|
"update:modelValue": (value: boolean) => any;
|
|
436
433
|
} & {
|
|
@@ -462,8 +459,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
462
459
|
}> & Omit<Readonly<{
|
|
463
460
|
modelValue?: boolean;
|
|
464
461
|
} & import('..').QListItemProps> & Readonly<{
|
|
465
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
466
462
|
onClick?: (() => any) | undefined;
|
|
463
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
467
464
|
}>, "icons"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
468
465
|
$slots: {
|
|
469
466
|
prepend?(_: {}): any;
|
|
@@ -478,12 +475,12 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
478
475
|
$root: import('vue').ComponentPublicInstance | null;
|
|
479
476
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
480
477
|
$host: Element | null;
|
|
481
|
-
$emit: ((event: "
|
|
478
|
+
$emit: ((event: "click", key: any) => void) & ((event: "update:modelValue", value: any) => void);
|
|
482
479
|
$el: any;
|
|
483
480
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
484
|
-
modelValue?:
|
|
481
|
+
modelValue?: any;
|
|
485
482
|
} & import('../../types/component').QBaseComponentProps & {
|
|
486
|
-
highlighted?:
|
|
483
|
+
highlighted?: any;
|
|
487
484
|
items?: import('../QList/types').Item[];
|
|
488
485
|
groups?: import('../QList/types').Group[];
|
|
489
486
|
itemValue?: string;
|
|
@@ -491,17 +488,17 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
491
488
|
disabled?: boolean;
|
|
492
489
|
selectable?: boolean;
|
|
493
490
|
}> & Readonly<{
|
|
494
|
-
|
|
495
|
-
|
|
491
|
+
onClick?: ((key: any) => any) | undefined;
|
|
492
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
496
493
|
}>, {
|
|
497
494
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
498
495
|
getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
|
|
499
496
|
getFirstFocusableItemIndex: () => number;
|
|
500
497
|
getLastFocusableItemIndex: () => number;
|
|
501
498
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
502
|
-
"update:modelValue": (value:
|
|
499
|
+
"update:modelValue": (value: any) => any;
|
|
503
500
|
} & {
|
|
504
|
-
click: (key:
|
|
501
|
+
click: (key: any) => any;
|
|
505
502
|
}, string, {
|
|
506
503
|
groups: import('../QList/types').Group[];
|
|
507
504
|
itemValue: string;
|
|
@@ -531,9 +528,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
531
528
|
itemValue: string;
|
|
532
529
|
itemLabel: string;
|
|
533
530
|
}> & Omit<Readonly<{
|
|
534
|
-
modelValue?:
|
|
531
|
+
modelValue?: any;
|
|
535
532
|
} & import('../../types/component').QBaseComponentProps & {
|
|
536
|
-
highlighted?:
|
|
533
|
+
highlighted?: any;
|
|
537
534
|
items?: import('../QList/types').Item[];
|
|
538
535
|
groups?: import('../QList/types').Group[];
|
|
539
536
|
itemValue?: string;
|
|
@@ -541,8 +538,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
541
538
|
disabled?: boolean;
|
|
542
539
|
selectable?: boolean;
|
|
543
540
|
}> & Readonly<{
|
|
544
|
-
|
|
545
|
-
|
|
541
|
+
onClick?: ((key: any) => any) | undefined;
|
|
542
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
546
543
|
}>, "getItem" | "getAdjacentItemIndex" | "getFirstFocusableItemIndex" | "getLastFocusableItemIndex" | ("groups" | "itemValue" | "itemLabel")> & import('vue').ShallowUnwrapRef<{
|
|
547
544
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
548
545
|
getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/QSelect.vue"],"names":[],"mappings":"AAyHA;
|
|
1
|
+
{"version":3,"file":"QSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/QSelect.vue"],"names":[],"mappings":"AAyHA;AAuSC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAatD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAG3C,OAAO,EAAY,QAAQ,EAAc,MAAM,KAAK,CAAA;AAEpD,KAAK,WAAW,GAAG,YAAY,CAAC;AAkKjC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,GAAG,CAAC;CAChB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA4TT,OAAO,IAA6B;;yBAnBpB,GAAG;wBACJ,GAAG;wBACH,GAAG;gCACK,GAAG;;;YACb,GAAG;+BACM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAoFmvB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAjE/4B;AAkCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA8BqwB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OArB94B,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,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as P, mergeModels as D, useModel as H, ref as y, computed as b, watch as X, nextTick as j, createElementBlock as f, openBlock as t, Fragment as
|
|
1
|
+
import { defineComponent as P, mergeModels as D, useModel as H, ref as y, computed as b, watch as X, nextTick as j, createElementBlock as f, openBlock as t, Fragment as z, createVNode as k, unref as n, mergeProps as A, withModifiers as F, createSlots as G, withCtx as i, toDisplayString as O, createCommentVNode as g, createTextVNode as J, renderSlot as r, createBlock as h, normalizeProps as W, createElementVNode as Y } from "vue";
|
|
2
2
|
import { DEFAULT_TEXTS as Z, DEFAULT_ICONS as ee } from "./types.js";
|
|
3
3
|
import { QButton as le } from "../QButton/index.js";
|
|
4
4
|
import { QField as oe } from "../QField/index.js";
|
|
@@ -7,8 +7,8 @@ import { QList as te } from "../QList/index.js";
|
|
|
7
7
|
import { QOverlay as ne } from "../QOverlay/index.js";
|
|
8
8
|
import { QSpinnerLoader as ie } from "../QSpinnerLoader/index.js";
|
|
9
9
|
import { QChevron as se } from "../__internal__/QChevron/index.js";
|
|
10
|
-
import { QClearButton as
|
|
11
|
-
const
|
|
10
|
+
import { QClearButton as de } from "../__internal__/QClearButton/index.js";
|
|
11
|
+
const re = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "q-select__value"
|
|
14
14
|
}, ue = {
|
|
@@ -36,21 +36,21 @@ const de = {
|
|
|
36
36
|
itemLabel: { default: "label" },
|
|
37
37
|
clearable: { type: Boolean },
|
|
38
38
|
loading: { type: Boolean },
|
|
39
|
-
emptyValue: {
|
|
39
|
+
emptyValue: {},
|
|
40
40
|
icons: { default: () => ee },
|
|
41
41
|
texts: { default: () => Z }
|
|
42
42
|
}, {
|
|
43
|
-
modelValue: {
|
|
43
|
+
modelValue: {},
|
|
44
44
|
modelModifiers: {}
|
|
45
45
|
}),
|
|
46
46
|
emits: /* @__PURE__ */ D(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
|
|
47
|
-
setup(q, { emit:
|
|
48
|
-
const e = q, m =
|
|
47
|
+
setup(q, { emit: R }) {
|
|
48
|
+
const e = q, m = R, p = H(q, "modelValue"), o = y(!1), v = y(null), x = y(null), _ = y(null), M = b(() => s.value === void 0), s = b(
|
|
49
49
|
() => {
|
|
50
50
|
var l;
|
|
51
51
|
return (l = e.items) == null ? void 0 : l.find((a) => a[e.itemValue] === p.value);
|
|
52
52
|
}
|
|
53
|
-
),
|
|
53
|
+
), N = b(
|
|
54
54
|
() => s.value ? s.value[e.itemLabel] : ""
|
|
55
55
|
), w = b(
|
|
56
56
|
() => e.clearable && !e.readonly && !e.disabled && !e.loading
|
|
@@ -59,51 +59,51 @@ const de = {
|
|
|
59
59
|
p.value = l, E();
|
|
60
60
|
}
|
|
61
61
|
function V() {
|
|
62
|
-
w.value && (B(e.emptyValue),
|
|
62
|
+
w.value && (B(e.emptyValue), Q());
|
|
63
63
|
}
|
|
64
64
|
function U(l) {
|
|
65
65
|
var a, u, c;
|
|
66
66
|
!((a = _.value) != null && a.contains(l.relatedTarget)) && !((c = (u = v.value) == null ? void 0 : u.fieldRef) != null && c.contains(l.relatedTarget)) && E();
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function L() {
|
|
69
69
|
o.value || (m("before-show"), o.value = !0);
|
|
70
70
|
}
|
|
71
71
|
function E() {
|
|
72
72
|
o.value && (m("before-hide"), o.value = !1);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
e.readonly || e.disabled || (o.value ? E() :
|
|
74
|
+
function $() {
|
|
75
|
+
e.readonly || e.disabled || (o.value ? E() : L());
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
!l.key || e.readonly || e.disabled || (["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(l.key) && (l.preventDefault(), l.stopPropagation()), ["Enter", " ", "ArrowDown"].includes(l.key) &&
|
|
77
|
+
function C(l) {
|
|
78
|
+
!l.key || e.readonly || e.disabled || (["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(l.key) && (l.preventDefault(), l.stopPropagation()), ["Enter", " ", "ArrowDown"].includes(l.key) && L(), ["Escape", "Tab"].includes(l.key) && (o.value ? o.value = !1 : w.value && l.key === "Escape" && V()), l.key === "Delete" && e.clearable && V());
|
|
79
79
|
}
|
|
80
80
|
function I() {
|
|
81
81
|
var l;
|
|
82
|
-
e.loading ? (l = _.value) == null || l.focus() :
|
|
82
|
+
e.loading ? (l = _.value) == null || l.focus() : T(), m("show");
|
|
83
83
|
}
|
|
84
84
|
function K() {
|
|
85
|
-
|
|
85
|
+
Q(), m("hide");
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Q() {
|
|
88
88
|
var l, a;
|
|
89
89
|
(a = (l = v.value) == null ? void 0 : l.fieldRef) == null || a.focus();
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function T() {
|
|
92
92
|
var l;
|
|
93
93
|
(l = x.value) == null || l.$el.focus();
|
|
94
94
|
}
|
|
95
95
|
return X(
|
|
96
96
|
() => e.loading,
|
|
97
97
|
(l) => {
|
|
98
|
-
!l && o.value && j(
|
|
98
|
+
!l && o.value && j(T);
|
|
99
99
|
}
|
|
100
100
|
), (l, a) => {
|
|
101
101
|
var u, c;
|
|
102
102
|
return t(), f(
|
|
103
|
-
|
|
103
|
+
z,
|
|
104
104
|
null,
|
|
105
105
|
[
|
|
106
|
-
|
|
106
|
+
k(n(oe), A({
|
|
107
107
|
id: e.id,
|
|
108
108
|
ref_key: "triggerEl",
|
|
109
109
|
ref: v,
|
|
@@ -127,18 +127,18 @@ const de = {
|
|
|
127
127
|
size: e.size,
|
|
128
128
|
invalid: e.invalid
|
|
129
129
|
}, l.$attrs, {
|
|
130
|
-
onClick:
|
|
131
|
-
onKeydown:
|
|
130
|
+
onClick: $,
|
|
131
|
+
onKeydown: F(C, ["stop"])
|
|
132
132
|
}), G({
|
|
133
133
|
append: i(() => [
|
|
134
|
-
|
|
135
|
-
w.value && p.value ? (t(), h(n(
|
|
134
|
+
r(l.$slots, "append"),
|
|
135
|
+
w.value && p.value ? (t(), h(n(de), {
|
|
136
136
|
key: 0,
|
|
137
137
|
icons: e.icons,
|
|
138
138
|
texts: e.texts,
|
|
139
139
|
onClick: V
|
|
140
|
-
}, null, 8, ["icons", "texts"])) :
|
|
141
|
-
e.readonly ?
|
|
140
|
+
}, null, 8, ["icons", "texts"])) : g("v-if", !0),
|
|
141
|
+
e.readonly ? g("v-if", !0) : (t(), h(n(le), {
|
|
142
142
|
key: 1,
|
|
143
143
|
class: "q-select__chevron",
|
|
144
144
|
"aria-label": e.texts.showOptions,
|
|
@@ -147,10 +147,10 @@ const de = {
|
|
|
147
147
|
borderless: "",
|
|
148
148
|
tabindex: "-1",
|
|
149
149
|
disabled: e.disabled,
|
|
150
|
-
onClick:
|
|
150
|
+
onClick: $
|
|
151
151
|
}, {
|
|
152
152
|
default: i(() => [
|
|
153
|
-
|
|
153
|
+
k(n(se), {
|
|
154
154
|
"model-value": o.value,
|
|
155
155
|
icons: e.icons
|
|
156
156
|
}, null, 8, ["model-value", "icons"])
|
|
@@ -160,24 +160,24 @@ const de = {
|
|
|
160
160
|
}, 8, ["aria-label", "disabled"]))
|
|
161
161
|
]),
|
|
162
162
|
default: i(() => [
|
|
163
|
-
|
|
163
|
+
M.value ? (t(), f("span", ue, [
|
|
164
164
|
!e.readonly && !e.disabled ? (t(), f(
|
|
165
|
-
|
|
165
|
+
z,
|
|
166
166
|
{ key: 0 },
|
|
167
167
|
[
|
|
168
168
|
J(
|
|
169
|
-
|
|
169
|
+
O(e.texts.placeholder),
|
|
170
170
|
1
|
|
171
171
|
/* TEXT */
|
|
172
172
|
)
|
|
173
173
|
],
|
|
174
174
|
64
|
|
175
175
|
/* STABLE_FRAGMENT */
|
|
176
|
-
)) :
|
|
176
|
+
)) : g("v-if", !0)
|
|
177
177
|
])) : (t(), f(
|
|
178
178
|
"span",
|
|
179
|
-
|
|
180
|
-
|
|
179
|
+
re,
|
|
180
|
+
O(N.value),
|
|
181
181
|
1
|
|
182
182
|
/* TEXT */
|
|
183
183
|
))
|
|
@@ -188,16 +188,16 @@ const de = {
|
|
|
188
188
|
(u = s.value) != null && u.icon || l.$slots.prepend ? {
|
|
189
189
|
name: "prepend",
|
|
190
190
|
fn: i(() => {
|
|
191
|
-
var
|
|
191
|
+
var d, S;
|
|
192
192
|
return [
|
|
193
|
-
|
|
194
|
-
(
|
|
193
|
+
r(l.$slots, "prepend"),
|
|
194
|
+
(d = s.value) != null && d.icon ? (t(), h(
|
|
195
195
|
n(ae),
|
|
196
|
-
W(
|
|
196
|
+
W(A({ key: 0 }, (S = s.value) == null ? void 0 : S.icon)),
|
|
197
197
|
null,
|
|
198
198
|
16
|
|
199
199
|
/* FULL_PROPS */
|
|
200
|
-
)) :
|
|
200
|
+
)) : g("v-if", !0)
|
|
201
201
|
];
|
|
202
202
|
}),
|
|
203
203
|
key: "0"
|
|
@@ -205,14 +205,14 @@ const de = {
|
|
|
205
205
|
l.$slots.extras ? {
|
|
206
206
|
name: "extras",
|
|
207
207
|
fn: i(() => [
|
|
208
|
-
|
|
208
|
+
r(l.$slots, "extras")
|
|
209
209
|
]),
|
|
210
210
|
key: "1"
|
|
211
211
|
} : void 0
|
|
212
212
|
]), 1040, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "data-loading", "aria-expanded", "size", "invalid"]),
|
|
213
|
-
|
|
213
|
+
k(n(ne), {
|
|
214
214
|
modelValue: o.value,
|
|
215
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
215
|
+
"onUpdate:modelValue": a[0] || (a[0] = (d) => o.value = d),
|
|
216
216
|
spy: "",
|
|
217
217
|
trigger: "manual",
|
|
218
218
|
placement: "bottom-start",
|
|
@@ -232,11 +232,11 @@ const de = {
|
|
|
232
232
|
class: "q-select__body",
|
|
233
233
|
tabindex: "-1",
|
|
234
234
|
onFocusout: U,
|
|
235
|
-
onKeydown:
|
|
235
|
+
onKeydown: F(C, ["stop"])
|
|
236
236
|
}, [
|
|
237
|
-
|
|
237
|
+
r(l.$slots, "body.prepend"),
|
|
238
238
|
e.loading ? (t(), f("div", fe, [
|
|
239
|
-
|
|
239
|
+
k(n(ie), { size: 24 })
|
|
240
240
|
])) : (t(), h(n(te), {
|
|
241
241
|
key: 1,
|
|
242
242
|
ref_key: "listRef",
|
|
@@ -250,13 +250,13 @@ const de = {
|
|
|
250
250
|
"item-value": e.itemValue,
|
|
251
251
|
"onUpdate:modelValue": B
|
|
252
252
|
}, {
|
|
253
|
-
item: i(({ item:
|
|
254
|
-
|
|
253
|
+
item: i(({ item: d }) => [
|
|
254
|
+
r(l.$slots, "item", { item: d })
|
|
255
255
|
]),
|
|
256
256
|
_: 3
|
|
257
257
|
/* FORWARDED */
|
|
258
258
|
}, 8, ["model-value", "items", "groups", "item-label", "item-value"])),
|
|
259
|
-
|
|
259
|
+
r(l.$slots, "body.append")
|
|
260
260
|
], 40, ce)
|
|
261
261
|
]),
|
|
262
262
|
_: 3
|