@quidgest/ui 0.16.15 → 0.16.17
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 +1 -0
- package/dist/ui.css +182 -9
- package/dist/ui.esm.js +4570 -4382
- package/dist/ui.js +12 -12
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +723 -710
- package/dist/ui.scss +200 -12
- package/esm/components/QCheckbox/QCheckbox.d.ts +6 -2
- package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.vue.js +88 -77
- package/esm/components/QCheckbox/QCheckboxLabel.d.ts +2 -3
- package/esm/components/QCheckbox/QCheckboxLabel.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckboxLabel.vue.js +32 -24
- package/esm/components/QCheckbox/index.d.ts +12 -4
- package/esm/components/QCheckbox/index.d.ts.map +1 -1
- package/esm/components/QCheckbox/types.d.ts +2 -7
- package/esm/components/QCheckbox/types.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.d.ts +16 -4
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/index.d.ts +8 -2
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenu.vue.js +11 -9
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +22 -6
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +171 -84
- package/esm/components/QDropdownMenu/index.d.ts +4 -0
- package/esm/components/QDropdownMenu/index.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/types.d.ts +8 -8
- package/esm/components/QDropdownMenu/types.d.ts.map +1 -1
- package/esm/components/QList/QList.d.ts +9 -0
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +73 -68
- package/esm/components/QList/index.d.ts +8 -0
- package/esm/components/QList/index.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.d.ts +16 -4
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/index.d.ts +8 -2
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QSwitch/QSwitch.d.ts +16 -0
- package/esm/components/QSwitch/QSwitch.d.ts.map +1 -0
- package/esm/components/QSwitch/QSwitch.vue.js +129 -0
- package/esm/components/QSwitch/QSwitch.vue2.js +4 -0
- package/esm/components/QSwitch/index.d.ts +33 -0
- package/esm/components/QSwitch/index.d.ts.map +1 -0
- package/esm/components/QSwitch/index.js +6 -0
- package/esm/components/QSwitch/types.d.ts +39 -0
- package/esm/components/QSwitch/types.d.ts.map +1 -0
- package/esm/components/index.d.ts +1 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +31 -29
- package/esm/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -326,6 +326,7 @@ declare function __VLS_template(): {
|
|
|
326
326
|
readonly required?: boolean | undefined;
|
|
327
327
|
readonly onClick?: ((key: any) => any) | undefined;
|
|
328
328
|
readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
329
|
+
readonly "onMouseenter:item"?: ((key: any) => any) | undefined;
|
|
329
330
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
330
331
|
$attrs: {
|
|
331
332
|
[x: string]: unknown;
|
|
@@ -416,7 +417,7 @@ declare function __VLS_template(): {
|
|
|
416
417
|
$root: import('vue').ComponentPublicInstance | null;
|
|
417
418
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
418
419
|
$host: Element | null;
|
|
419
|
-
$emit: ((event: "click", key: any) => void) & ((event: "update:modelValue", value: any) => void);
|
|
420
|
+
$emit: ((event: "click", key: any) => void) & ((event: "update:modelValue", value: any) => void) & ((event: "mouseenter:item", key: any) => void);
|
|
420
421
|
$el: any;
|
|
421
422
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
422
423
|
modelValue?: any;
|
|
@@ -433,8 +434,10 @@ declare function __VLS_template(): {
|
|
|
433
434
|
}> & Readonly<{
|
|
434
435
|
onClick?: ((key: any) => any) | undefined;
|
|
435
436
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
437
|
+
"onMouseenter:item"?: ((key: any) => any) | undefined;
|
|
436
438
|
}>, {
|
|
437
439
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
440
|
+
getActiveItemIndex: () => number;
|
|
438
441
|
getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
|
|
439
442
|
getFirstFocusableItemIndex: () => number;
|
|
440
443
|
getLastFocusableItemIndex: () => number;
|
|
@@ -442,6 +445,7 @@ declare function __VLS_template(): {
|
|
|
442
445
|
"update:modelValue": (value: any) => any;
|
|
443
446
|
} & {
|
|
444
447
|
click: (key: any) => any;
|
|
448
|
+
"mouseenter:item": (key: any) => any;
|
|
445
449
|
}, string, {
|
|
446
450
|
groups: import('../QList/types').Group[];
|
|
447
451
|
itemValue: string;
|
|
@@ -485,8 +489,10 @@ declare function __VLS_template(): {
|
|
|
485
489
|
}> & Readonly<{
|
|
486
490
|
onClick?: ((key: any) => any) | undefined;
|
|
487
491
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
488
|
-
|
|
492
|
+
"onMouseenter:item"?: ((key: any) => any) | undefined;
|
|
493
|
+
}>, "getItem" | "getActiveItemIndex" | "getAdjacentItemIndex" | "getFirstFocusableItemIndex" | "getLastFocusableItemIndex" | ("groups" | "itemValue" | "itemLabel")> & import('vue').ShallowUnwrapRef<{
|
|
489
494
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
495
|
+
getActiveItemIndex: () => number;
|
|
490
496
|
getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
|
|
491
497
|
getFirstFocusableItemIndex: () => number;
|
|
492
498
|
getLastFocusableItemIndex: () => number;
|
|
@@ -1228,6 +1234,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
1228
1234
|
readonly required?: boolean | undefined;
|
|
1229
1235
|
readonly onClick?: ((key: any) => any) | undefined;
|
|
1230
1236
|
readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
1237
|
+
readonly "onMouseenter:item"?: ((key: any) => any) | undefined;
|
|
1231
1238
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
1232
1239
|
$attrs: {
|
|
1233
1240
|
[x: string]: unknown;
|
|
@@ -1318,7 +1325,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
1318
1325
|
$root: import('vue').ComponentPublicInstance | null;
|
|
1319
1326
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
1320
1327
|
$host: Element | null;
|
|
1321
|
-
$emit: ((event: "click", key: any) => void) & ((event: "update:modelValue", value: any) => void);
|
|
1328
|
+
$emit: ((event: "click", key: any) => void) & ((event: "update:modelValue", value: any) => void) & ((event: "mouseenter:item", key: any) => void);
|
|
1322
1329
|
$el: any;
|
|
1323
1330
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
1324
1331
|
modelValue?: any;
|
|
@@ -1335,8 +1342,10 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
1335
1342
|
}> & Readonly<{
|
|
1336
1343
|
onClick?: ((key: any) => any) | undefined;
|
|
1337
1344
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
1345
|
+
"onMouseenter:item"?: ((key: any) => any) | undefined;
|
|
1338
1346
|
}>, {
|
|
1339
1347
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
1348
|
+
getActiveItemIndex: () => number;
|
|
1340
1349
|
getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
|
|
1341
1350
|
getFirstFocusableItemIndex: () => number;
|
|
1342
1351
|
getLastFocusableItemIndex: () => number;
|
|
@@ -1344,6 +1353,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
1344
1353
|
"update:modelValue": (value: any) => any;
|
|
1345
1354
|
} & {
|
|
1346
1355
|
click: (key: any) => any;
|
|
1356
|
+
"mouseenter:item": (key: any) => any;
|
|
1347
1357
|
}, string, {
|
|
1348
1358
|
groups: import('../QList/types').Group[];
|
|
1349
1359
|
itemValue: string;
|
|
@@ -1387,8 +1397,10 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
1387
1397
|
}> & Readonly<{
|
|
1388
1398
|
onClick?: ((key: any) => any) | undefined;
|
|
1389
1399
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
1390
|
-
|
|
1400
|
+
"onMouseenter:item"?: ((key: any) => any) | undefined;
|
|
1401
|
+
}>, "getItem" | "getActiveItemIndex" | "getAdjacentItemIndex" | "getFirstFocusableItemIndex" | "getLastFocusableItemIndex" | ("groups" | "itemValue" | "itemLabel")> & import('vue').ShallowUnwrapRef<{
|
|
1391
1402
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
1403
|
+
getActiveItemIndex: () => number;
|
|
1392
1404
|
getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
|
|
1393
1405
|
getFirstFocusableItemIndex: () => number;
|
|
1394
1406
|
getLastFocusableItemIndex: () => number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QCombobox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCombobox/QCombobox.vue"],"names":[],"mappings":"AA6HA;AAslBC,OAAO,EAAE,aAAa,EAAiB,MAAM,SAAS,CAAA;AAYtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAG7C,OAAO,EAAY,QAAQ,EAAyB,MAAM,KAAK,CAAA;AAE/D,KAAK,WAAW,GAAG,cAAc,CAAC;AAodnC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;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;;;;;;;;;;;;;;;;;;;oCAF5B,GAAE,8CAA8C,GAAG,yBACzC,GAAG,6DACa,GAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4e/B,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"}
|
|
@@ -736,6 +736,7 @@ declare const QCombobox: {
|
|
|
736
736
|
readonly required?: boolean | undefined;
|
|
737
737
|
readonly onClick?: ((key: any) => any) | undefined;
|
|
738
738
|
readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
739
|
+
readonly "onMouseenter:item"?: ((key: any) => any) | undefined;
|
|
739
740
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
740
741
|
$attrs: {
|
|
741
742
|
[x: string]: unknown;
|
|
@@ -826,7 +827,7 @@ declare const QCombobox: {
|
|
|
826
827
|
$root: import('vue').ComponentPublicInstance | null;
|
|
827
828
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
828
829
|
$host: Element | null;
|
|
829
|
-
$emit: ((event: "click", key: any) => void) & ((event: "update:modelValue", value: any) => void);
|
|
830
|
+
$emit: ((event: "click", key: any) => void) & ((event: "update:modelValue", value: any) => void) & ((event: "mouseenter:item", key: any) => void);
|
|
830
831
|
$el: any;
|
|
831
832
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
832
833
|
modelValue?: any;
|
|
@@ -843,8 +844,10 @@ declare const QCombobox: {
|
|
|
843
844
|
}> & Readonly<{
|
|
844
845
|
onClick?: ((key: any) => any) | undefined;
|
|
845
846
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
847
|
+
"onMouseenter:item"?: ((key: any) => any) | undefined;
|
|
846
848
|
}>, {
|
|
847
849
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
850
|
+
getActiveItemIndex: () => number;
|
|
848
851
|
getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
|
|
849
852
|
getFirstFocusableItemIndex: () => number;
|
|
850
853
|
getLastFocusableItemIndex: () => number;
|
|
@@ -852,6 +855,7 @@ declare const QCombobox: {
|
|
|
852
855
|
"update:modelValue": (value: any) => any;
|
|
853
856
|
} & {
|
|
854
857
|
click: (key: any) => any;
|
|
858
|
+
"mouseenter:item": (key: any) => any;
|
|
855
859
|
}, string, {
|
|
856
860
|
groups: import('../QList/types').Group[];
|
|
857
861
|
itemValue: string;
|
|
@@ -895,8 +899,10 @@ declare const QCombobox: {
|
|
|
895
899
|
}> & Readonly<{
|
|
896
900
|
onClick?: ((key: any) => any) | undefined;
|
|
897
901
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
898
|
-
|
|
902
|
+
"onMouseenter:item"?: ((key: any) => any) | undefined;
|
|
903
|
+
}>, "getItem" | "getActiveItemIndex" | "getAdjacentItemIndex" | "getFirstFocusableItemIndex" | "getLastFocusableItemIndex" | ("groups" | "itemValue" | "itemLabel")> & import('vue').ShallowUnwrapRef<{
|
|
899
904
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
905
|
+
getActiveItemIndex: () => number;
|
|
900
906
|
getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
|
|
901
907
|
getFirstFocusableItemIndex: () => number;
|
|
902
908
|
getLastFocusableItemIndex: () => number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QCombobox/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAI2vz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;;;;;;;;;;;;;;4CAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAJn1zB,CAAA;AAG7C,OAAO,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as d, mergeModels as n, useModel as p, createBlock as u, openBlock as c, mergeProps as f } from "vue";
|
|
2
2
|
import V from "./QDropdownMenuContent.vue.js";
|
|
3
|
-
const
|
|
3
|
+
const M = /* @__PURE__ */ d({
|
|
4
4
|
inheritAttrs: !1,
|
|
5
5
|
__name: "QDropdownMenu",
|
|
6
6
|
props: /* @__PURE__ */ n({
|
|
@@ -16,6 +16,8 @@ const _ = /* @__PURE__ */ u({
|
|
|
16
16
|
groups: {},
|
|
17
17
|
itemValue: {},
|
|
18
18
|
itemLabel: {},
|
|
19
|
+
trigger: {},
|
|
20
|
+
depth: {},
|
|
19
21
|
icons: {}
|
|
20
22
|
}, {
|
|
21
23
|
modelValue: { type: Boolean },
|
|
@@ -23,17 +25,17 @@ const _ = /* @__PURE__ */ u({
|
|
|
23
25
|
}),
|
|
24
26
|
emits: /* @__PURE__ */ n(["select"], ["update:modelValue"]),
|
|
25
27
|
setup(e, { emit: a }) {
|
|
26
|
-
const m = e,
|
|
27
|
-
function
|
|
28
|
-
|
|
28
|
+
const m = e, i = a, o = p(e, "modelValue");
|
|
29
|
+
function r(t) {
|
|
30
|
+
i("select", t);
|
|
29
31
|
}
|
|
30
|
-
return (t, l) => (c(),
|
|
32
|
+
return (t, l) => (c(), u(V, f(m, {
|
|
31
33
|
modelValue: o.value,
|
|
32
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
33
|
-
onSelect:
|
|
34
|
+
"onUpdate:modelValue": l[0] || (l[0] = (s) => o.value = s),
|
|
35
|
+
onSelect: r
|
|
34
36
|
}), null, 16, ["modelValue"]));
|
|
35
37
|
}
|
|
36
38
|
});
|
|
37
39
|
export {
|
|
38
|
-
|
|
40
|
+
M as default
|
|
39
41
|
};
|
|
@@ -17,7 +17,7 @@ declare function __VLS_template(): {
|
|
|
17
17
|
}): any;
|
|
18
18
|
};
|
|
19
19
|
refs: {
|
|
20
|
-
|
|
20
|
+
qListRef: ({
|
|
21
21
|
$: import('vue').ComponentInternalInstance;
|
|
22
22
|
$data: {};
|
|
23
23
|
$props: {
|
|
@@ -35,6 +35,7 @@ declare function __VLS_template(): {
|
|
|
35
35
|
readonly required?: boolean | undefined;
|
|
36
36
|
readonly onClick?: ((key: any) => any) | undefined;
|
|
37
37
|
readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
38
|
+
readonly "onMouseenter:item"?: ((key: any) => any) | undefined;
|
|
38
39
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
39
40
|
$attrs: {
|
|
40
41
|
[x: string]: unknown;
|
|
@@ -125,7 +126,7 @@ declare function __VLS_template(): {
|
|
|
125
126
|
$root: import('vue').ComponentPublicInstance | null;
|
|
126
127
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
127
128
|
$host: Element | null;
|
|
128
|
-
$emit: ((event: "click", key: any) => void) & ((event: "update:modelValue", value: any) => void);
|
|
129
|
+
$emit: ((event: "click", key: any) => void) & ((event: "update:modelValue", value: any) => void) & ((event: "mouseenter:item", key: any) => void);
|
|
129
130
|
$el: any;
|
|
130
131
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
131
132
|
modelValue?: any;
|
|
@@ -142,8 +143,10 @@ declare function __VLS_template(): {
|
|
|
142
143
|
}> & Readonly<{
|
|
143
144
|
onClick?: ((key: any) => any) | undefined;
|
|
144
145
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
146
|
+
"onMouseenter:item"?: ((key: any) => any) | undefined;
|
|
145
147
|
}>, {
|
|
146
148
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
149
|
+
getActiveItemIndex: () => number;
|
|
147
150
|
getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
|
|
148
151
|
getFirstFocusableItemIndex: () => number;
|
|
149
152
|
getLastFocusableItemIndex: () => number;
|
|
@@ -151,6 +154,7 @@ declare function __VLS_template(): {
|
|
|
151
154
|
"update:modelValue": (value: any) => any;
|
|
152
155
|
} & {
|
|
153
156
|
click: (key: any) => any;
|
|
157
|
+
"mouseenter:item": (key: any) => any;
|
|
154
158
|
}, string, {
|
|
155
159
|
groups: import('../QList/types').Group[];
|
|
156
160
|
itemValue: string;
|
|
@@ -194,8 +198,10 @@ declare function __VLS_template(): {
|
|
|
194
198
|
}> & Readonly<{
|
|
195
199
|
onClick?: ((key: any) => any) | undefined;
|
|
196
200
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
197
|
-
|
|
201
|
+
"onMouseenter:item"?: ((key: any) => any) | undefined;
|
|
202
|
+
}>, "getItem" | "getActiveItemIndex" | "getAdjacentItemIndex" | "getFirstFocusableItemIndex" | "getLastFocusableItemIndex" | ("groups" | "itemValue" | "itemLabel")> & import('vue').ShallowUnwrapRef<{
|
|
198
203
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
204
|
+
getActiveItemIndex: () => number;
|
|
199
205
|
getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
|
|
200
206
|
getFirstFocusableItemIndex: () => number;
|
|
201
207
|
getLastFocusableItemIndex: () => number;
|
|
@@ -221,9 +227,13 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
221
227
|
"update:highlighted": (value: any) => any;
|
|
222
228
|
} & {
|
|
223
229
|
select: (item: any) => any;
|
|
230
|
+
hide: () => any;
|
|
231
|
+
"focus-previous": () => any;
|
|
224
232
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
225
233
|
onSelect?: ((item: any) => any) | undefined;
|
|
226
234
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
235
|
+
onHide?: (() => any) | undefined;
|
|
236
|
+
"onFocus-previous"?: (() => any) | undefined;
|
|
227
237
|
"onUpdate:highlighted"?: ((value: any) => any) | undefined;
|
|
228
238
|
}>, {
|
|
229
239
|
transition: string;
|
|
@@ -239,7 +249,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
239
249
|
trigger: import('../../composables/overlay').Trigger;
|
|
240
250
|
depth: number;
|
|
241
251
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
242
|
-
|
|
252
|
+
qListRef: ({
|
|
243
253
|
$: import('vue').ComponentInternalInstance;
|
|
244
254
|
$data: {};
|
|
245
255
|
$props: {
|
|
@@ -257,6 +267,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
257
267
|
readonly required?: boolean | undefined;
|
|
258
268
|
readonly onClick?: ((key: any) => any) | undefined;
|
|
259
269
|
readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
270
|
+
readonly "onMouseenter:item"?: ((key: any) => any) | undefined;
|
|
260
271
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
261
272
|
$attrs: {
|
|
262
273
|
[x: string]: unknown;
|
|
@@ -347,7 +358,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
347
358
|
$root: import('vue').ComponentPublicInstance | null;
|
|
348
359
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
349
360
|
$host: Element | null;
|
|
350
|
-
$emit: ((event: "click", key: any) => void) & ((event: "update:modelValue", value: any) => void);
|
|
361
|
+
$emit: ((event: "click", key: any) => void) & ((event: "update:modelValue", value: any) => void) & ((event: "mouseenter:item", key: any) => void);
|
|
351
362
|
$el: any;
|
|
352
363
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
353
364
|
modelValue?: any;
|
|
@@ -364,8 +375,10 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
364
375
|
}> & Readonly<{
|
|
365
376
|
onClick?: ((key: any) => any) | undefined;
|
|
366
377
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
378
|
+
"onMouseenter:item"?: ((key: any) => any) | undefined;
|
|
367
379
|
}>, {
|
|
368
380
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
381
|
+
getActiveItemIndex: () => number;
|
|
369
382
|
getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
|
|
370
383
|
getFirstFocusableItemIndex: () => number;
|
|
371
384
|
getLastFocusableItemIndex: () => number;
|
|
@@ -373,6 +386,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
373
386
|
"update:modelValue": (value: any) => any;
|
|
374
387
|
} & {
|
|
375
388
|
click: (key: any) => any;
|
|
389
|
+
"mouseenter:item": (key: any) => any;
|
|
376
390
|
}, string, {
|
|
377
391
|
groups: import('../QList/types').Group[];
|
|
378
392
|
itemValue: string;
|
|
@@ -416,8 +430,10 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
416
430
|
}> & Readonly<{
|
|
417
431
|
onClick?: ((key: any) => any) | undefined;
|
|
418
432
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
419
|
-
|
|
433
|
+
"onMouseenter:item"?: ((key: any) => any) | undefined;
|
|
434
|
+
}>, "getItem" | "getActiveItemIndex" | "getAdjacentItemIndex" | "getFirstFocusableItemIndex" | "getLastFocusableItemIndex" | ("groups" | "itemValue" | "itemLabel")> & import('vue').ShallowUnwrapRef<{
|
|
420
435
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
436
|
+
getActiveItemIndex: () => number;
|
|
421
437
|
getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
|
|
422
438
|
getFirstFocusableItemIndex: () => number;
|
|
423
439
|
getLastFocusableItemIndex: () => number;
|
|
@@ -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":"AAuEA;AA4QC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA;AAGxD,OAAO,EAAiB,QAAQ,EAAkB,MAAM,KAAK,CAAA;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC,KAAK,WAAW,GAAG,yBAAyB,CAAC;AAiM9C,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,GAAG,CAAC;CACnB,GAAG,WAAW,CAAC;AAMhB,iBAAS,cAAc;WAiMT,OAAO,IAA6B;;;;YAZvB,GAAG;;;YACM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;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
|
|
9
|
-
}, T = {
|
|
1
|
+
import { defineComponent as Q, mergeModels as V, useModel as _, ref as x, computed as I, useTemplateRef as T, resolveComponent as F, createBlock as L, openBlock as u, unref as v, normalizeClass as U, withCtx as g, createElementVNode as $, withModifiers as z, createVNode as C, renderSlot as A, createElementBlock as M, createCommentVNode as w, toDisplayString as H, Fragment as j, normalizeProps as G, guardReactiveProps as J, mergeProps as W, nextTick as X } from "vue";
|
|
2
|
+
import { QList as Y } from "../QList/index.js";
|
|
3
|
+
import { QOverlay as Z } from "../QOverlay/index.js";
|
|
4
|
+
import { QIcon as K } from "../QIcon/index.js";
|
|
5
|
+
import { DEFAULT_ICONS as ee } from "./types.js";
|
|
6
|
+
const te = {
|
|
10
7
|
key: 0,
|
|
11
8
|
class: "q-dropdown-menu__extra"
|
|
12
|
-
},
|
|
9
|
+
}, se = /* @__PURE__ */ Q({
|
|
13
10
|
__name: "QDropdownMenuContent",
|
|
14
|
-
props: /* @__PURE__ */
|
|
11
|
+
props: /* @__PURE__ */ V({
|
|
15
12
|
id: {},
|
|
16
13
|
class: {},
|
|
17
14
|
activator: {},
|
|
@@ -24,91 +21,181 @@ const R = {
|
|
|
24
21
|
groups: { default: () => [] },
|
|
25
22
|
itemValue: { default: "key" },
|
|
26
23
|
itemLabel: { default: "label" },
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
trigger: { default: "hover" },
|
|
25
|
+
depth: { default: 0 },
|
|
26
|
+
icons: { default: () => ee },
|
|
29
27
|
offset: { default: 0 },
|
|
30
|
-
crossOffset: { default: -5 }
|
|
31
|
-
depth: { default: 0 }
|
|
28
|
+
crossOffset: { default: -5 }
|
|
32
29
|
}, {
|
|
33
30
|
modelValue: { type: Boolean },
|
|
34
31
|
modelModifiers: {},
|
|
35
32
|
highlighted: {},
|
|
36
33
|
highlightedModifiers: {}
|
|
37
34
|
}),
|
|
38
|
-
emits: /* @__PURE__ */
|
|
39
|
-
setup(
|
|
40
|
-
const e =
|
|
41
|
-
function
|
|
42
|
-
var
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
n.value = t ? o : void 0, t || w();
|
|
35
|
+
emits: /* @__PURE__ */ V(["select", "hide", "focus-previous"], ["update:modelValue", "update:highlighted"]),
|
|
36
|
+
setup(r, { emit: q }) {
|
|
37
|
+
const e = r, d = q, c = _(r, "modelValue"), l = _(r, "highlighted"), i = x(void 0), y = x([]), E = I(() => e.depth !== 0 ? e.offset : 4), R = I(() => e.depth !== 0 ? e.crossOffset : void 0), f = T("qListRef");
|
|
38
|
+
function P(t) {
|
|
39
|
+
var o;
|
|
40
|
+
const n = (o = e.items) == null ? void 0 : o.find((s) => s[e.itemValue] === t);
|
|
41
|
+
y.value = (n == null ? void 0 : n.items) ?? [];
|
|
42
|
+
const a = y.value.length > 0;
|
|
43
|
+
l.value = t, a ? h(t) : k(t);
|
|
48
44
|
}
|
|
49
|
-
function
|
|
50
|
-
|
|
45
|
+
function S(t) {
|
|
46
|
+
var n;
|
|
47
|
+
if (t.key)
|
|
48
|
+
switch (["Enter", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"].includes(t.key) && (t.preventDefault(), t.stopPropagation()), t.key) {
|
|
49
|
+
case "ArrowRight":
|
|
50
|
+
const a = (n = f.value) == null ? void 0 : n.getActiveItemIndex();
|
|
51
|
+
e.items && (a || a === 0) && e.items[a] && (l.value = e.items[a].key, h(e.items[a].key));
|
|
52
|
+
break;
|
|
53
|
+
case "ArrowLeft":
|
|
54
|
+
m();
|
|
55
|
+
break;
|
|
56
|
+
case "Escape":
|
|
57
|
+
case "Tab":
|
|
58
|
+
p();
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
51
61
|
}
|
|
52
|
-
function
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
62
|
+
function B(t) {
|
|
63
|
+
e.trigger === "hover" && (l.value = t, h(t));
|
|
64
|
+
}
|
|
65
|
+
function k(t) {
|
|
66
|
+
d("select", t), p();
|
|
67
|
+
}
|
|
68
|
+
function D() {
|
|
69
|
+
m();
|
|
70
|
+
}
|
|
71
|
+
function m() {
|
|
72
|
+
i.value = void 0, l.value = void 0, c.value = !1, d("focus-previous");
|
|
73
|
+
}
|
|
74
|
+
function p() {
|
|
75
|
+
m(), d("hide");
|
|
76
|
+
}
|
|
77
|
+
function h(t) {
|
|
78
|
+
i.value = t;
|
|
79
|
+
}
|
|
80
|
+
function O() {
|
|
81
|
+
var a, o;
|
|
82
|
+
const t = (a = e.items) == null ? void 0 : a.findIndex(
|
|
83
|
+
(s) => s[e.itemValue] === i.value
|
|
84
|
+
);
|
|
85
|
+
if (!t && t !== 0) return;
|
|
86
|
+
const n = (o = f.value) == null ? void 0 : o.getItem(t);
|
|
87
|
+
i.value = void 0, l.value = void 0, n == null || n.focus();
|
|
88
|
+
}
|
|
89
|
+
function N() {
|
|
90
|
+
X(() => {
|
|
91
|
+
var t;
|
|
92
|
+
return (t = f.value) == null ? void 0 : t.$el.focus();
|
|
56
93
|
});
|
|
57
94
|
}
|
|
58
|
-
return (
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
95
|
+
return (t, n) => {
|
|
96
|
+
const a = F("q-dropdown-menu-content", !0);
|
|
97
|
+
return u(), L(v(Z), {
|
|
98
|
+
id: e.id,
|
|
99
|
+
modelValue: c.value,
|
|
100
|
+
"onUpdate:modelValue": n[0] || (n[0] = (o) => c.value = o),
|
|
101
|
+
anchor: e.activator,
|
|
102
|
+
appearance: e.appearance,
|
|
103
|
+
inline: e.inline,
|
|
104
|
+
delay: e.delay,
|
|
105
|
+
offset: E.value,
|
|
106
|
+
"cross-offset": R.value,
|
|
107
|
+
placement: e.placement,
|
|
108
|
+
transition: e.transition,
|
|
109
|
+
class: U(e.class),
|
|
110
|
+
"scroll-lock": "",
|
|
111
|
+
"non-modal": "",
|
|
112
|
+
onEnter: N,
|
|
113
|
+
onLeave: D
|
|
114
|
+
}, {
|
|
115
|
+
default: g(() => [
|
|
116
|
+
$(
|
|
117
|
+
"div",
|
|
118
|
+
{
|
|
119
|
+
class: "q-dropdown-menu__body",
|
|
120
|
+
"data-testid": "dropdown-content",
|
|
121
|
+
tabindex: "-1",
|
|
122
|
+
onKeydown: z(S, ["stop"])
|
|
123
|
+
},
|
|
124
|
+
[
|
|
125
|
+
C(v(Y), {
|
|
126
|
+
ref: "qListRef",
|
|
127
|
+
class: "q-dropdown-menu__items",
|
|
128
|
+
highlighted: l.value,
|
|
129
|
+
items: e.items,
|
|
130
|
+
groups: e.groups,
|
|
131
|
+
"item-label": e.itemLabel,
|
|
132
|
+
"item-value": e.itemValue,
|
|
133
|
+
selectable: !1,
|
|
134
|
+
onClick: P,
|
|
135
|
+
"onMouseenter:item": B
|
|
136
|
+
}, {
|
|
137
|
+
item: g(({ item: o }) => [
|
|
138
|
+
A(t.$slots, "item", { item: o })
|
|
139
|
+
]),
|
|
140
|
+
"item.append": g(({ item: o, element: s }) => {
|
|
141
|
+
var b;
|
|
142
|
+
return [
|
|
143
|
+
A(t.$slots, "item.append", { item: o }, () => [
|
|
144
|
+
o.extraInfo ? (u(), M(
|
|
145
|
+
"span",
|
|
146
|
+
te,
|
|
147
|
+
H(o.extraInfo),
|
|
148
|
+
1
|
|
149
|
+
/* TEXT */
|
|
150
|
+
)) : w("v-if", !0)
|
|
151
|
+
]),
|
|
152
|
+
((b = o.items) == null ? void 0 : b.length) > 0 ? (u(), M(
|
|
153
|
+
j,
|
|
154
|
+
{ key: 0 },
|
|
155
|
+
[
|
|
156
|
+
C(
|
|
157
|
+
v(K),
|
|
158
|
+
G(J(e.icons.expand)),
|
|
159
|
+
null,
|
|
160
|
+
16
|
|
161
|
+
/* FULL_PROPS */
|
|
162
|
+
),
|
|
163
|
+
i.value === o.key ? (u(), L(a, W({
|
|
164
|
+
key: 0,
|
|
165
|
+
"model-value": r.modelValue
|
|
166
|
+
}, e, {
|
|
167
|
+
activator: s,
|
|
168
|
+
items: o.items,
|
|
169
|
+
groups: o.groups,
|
|
170
|
+
depth: e.depth + 1,
|
|
171
|
+
delay: e.delay,
|
|
172
|
+
placement: "right-start",
|
|
173
|
+
"non-modal": "",
|
|
174
|
+
inline: "",
|
|
175
|
+
onHide: p,
|
|
176
|
+
onSelect: k,
|
|
177
|
+
onFocusPrevious: O
|
|
178
|
+
}), null, 16, ["model-value", "activator", "items", "groups", "depth", "delay"])) : w("v-if", !0)
|
|
179
|
+
],
|
|
180
|
+
64
|
|
181
|
+
/* STABLE_FRAGMENT */
|
|
182
|
+
)) : w("v-if", !0)
|
|
183
|
+
];
|
|
184
|
+
}),
|
|
185
|
+
_: 3
|
|
186
|
+
/* FORWARDED */
|
|
187
|
+
}, 8, ["highlighted", "items", "groups", "item-label", "item-value"])
|
|
188
|
+
],
|
|
189
|
+
32
|
|
190
|
+
/* NEED_HYDRATION */
|
|
191
|
+
)
|
|
192
|
+
]),
|
|
193
|
+
_: 3
|
|
194
|
+
/* FORWARDED */
|
|
195
|
+
}, 8, ["id", "modelValue", "anchor", "appearance", "inline", "delay", "offset", "cross-offset", "placement", "transition", "class"]);
|
|
196
|
+
};
|
|
110
197
|
}
|
|
111
198
|
});
|
|
112
199
|
export {
|
|
113
|
-
|
|
200
|
+
se as default
|
|
114
201
|
};
|