@quidgest/ui 0.13.3 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/manifest/components.json +4 -0
- package/dist/ui.css +81 -0
- package/dist/ui.esm.js +1163 -935
- package/dist/ui.js +6 -6
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +110 -101
- package/dist/ui.scss +1059 -973
- package/esm/components/QBadge/QBadge.d.ts +16 -68
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +29 -32
- package/esm/components/QBadge/index.d.ts +2 -139
- package/esm/components/QBadge/index.d.ts.map +1 -1
- package/esm/components/QBadge/types.d.ts +29 -0
- package/esm/components/QBadge/types.d.ts.map +1 -0
- package/esm/components/QBadge/types.js +8 -0
- package/esm/components/QButton/QButton.d.ts +15 -80
- package/esm/components/QButton/QButton.d.ts.map +1 -1
- package/esm/components/QButton/index.d.ts +3 -198
- package/esm/components/QButton/index.d.ts.map +1 -1
- package/esm/components/QButton/types.d.ts +47 -0
- package/esm/components/QButton/types.d.ts.map +1 -0
- package/esm/components/QButtonGroup/QButtonGroup.d.ts +11 -42
- package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
- package/esm/components/QButtonGroup/index.d.ts +2 -79
- package/esm/components/QButtonGroup/index.d.ts.map +1 -1
- package/esm/components/QButtonGroup/types.d.ts +19 -0
- package/esm/components/QButtonGroup/types.d.ts.map +1 -0
- package/esm/components/QButtonToggle/QButtonToggle.d.ts +16 -73
- package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +1 -1
- package/esm/components/QButtonToggle/index.d.ts +2 -115
- package/esm/components/QButtonToggle/index.d.ts.map +1 -1
- package/esm/components/QButtonToggle/types.d.ts +32 -0
- package/esm/components/QButtonToggle/types.d.ts.map +1 -0
- package/esm/components/QCombobox/QCombobox.d.ts +445 -435
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +121 -126
- package/esm/components/QCombobox/index.d.ts +2 -1075
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QCombobox/types.d.ts +93 -0
- package/esm/components/QCombobox/types.d.ts.map +1 -0
- package/esm/components/QCombobox/types.js +16 -0
- package/esm/components/QDialog/QDialog.d.ts +23 -186
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +48 -64
- package/esm/components/QDialog/index.d.ts +3 -268
- package/esm/components/QDialog/index.d.ts.map +1 -1
- package/esm/components/QDialog/types.d.ts +80 -0
- package/esm/components/QDialog/types.d.ts.map +1 -0
- package/esm/components/QDialog/types.js +23 -0
- package/esm/components/QField/QField.d.ts +22 -77
- package/esm/components/QField/QField.d.ts.map +1 -1
- package/esm/components/QField/index.d.ts +3 -169
- package/esm/components/QField/index.d.ts.map +1 -1
- package/esm/components/QField/types.d.ts +37 -0
- package/esm/components/QField/types.d.ts.map +1 -0
- package/esm/components/QIcon/InlineSvg.d.ts +6 -6
- package/esm/components/QIcon/InlineSvg.d.ts.map +1 -1
- package/esm/components/QIcon/InlineSvg.js +6 -13
- package/esm/components/QIcon/QIcon.d.ts +4 -46
- package/esm/components/QIcon/QIcon.d.ts.map +1 -1
- package/esm/components/QIcon/QIcon.vue.js +2 -2
- package/esm/components/QIcon/QIconFont.d.ts +3 -51
- package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
- package/esm/components/QIcon/QIconFont.vue.js +9 -9
- package/esm/components/QIcon/QIconImg.d.ts +2 -36
- package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconImg.vue.js +3 -3
- package/esm/components/QIcon/QIconSvg.d.ts +7 -65
- package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconSvg.vue.js +9 -9
- package/esm/components/QIcon/index.d.ts +9 -157
- package/esm/components/QIcon/index.d.ts.map +1 -1
- package/esm/components/QIcon/types.d.ts +40 -0
- package/esm/components/QIcon/types.d.ts.map +1 -0
- package/esm/components/QInputGroup/QInputGroup.d.ts +17 -74
- package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
- package/esm/components/QInputGroup/index.d.ts +2 -153
- package/esm/components/QInputGroup/index.d.ts.map +1 -1
- package/esm/components/QInputGroup/types.d.ts +34 -0
- package/esm/components/QInputGroup/types.d.ts.map +1 -0
- package/esm/components/QLineLoader/QLineLoader.d.ts +3 -29
- package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
- package/esm/components/QLineLoader/index.d.ts +2 -13
- package/esm/components/QLineLoader/index.d.ts.map +1 -1
- package/esm/components/QLineLoader/types.d.ts +7 -0
- package/esm/components/QLineLoader/types.d.ts.map +1 -0
- package/esm/components/QList/QList.d.ts +25 -116
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QListItem.d.ts +16 -84
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +25 -31
- package/esm/components/QList/QListItemGroup.d.ts +11 -34
- package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
- package/esm/components/QList/index.d.ts +7 -453
- package/esm/components/QList/index.d.ts.map +1 -1
- package/esm/components/QList/types.d.ts +100 -0
- package/esm/components/QList/types.d.ts.map +1 -0
- package/esm/components/QList/types.js +11 -0
- package/esm/components/QOverlay/QOverlay.d.ts +31 -234
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +1 -2
- package/esm/components/QOverlay/index.d.ts +2 -339
- package/esm/components/QOverlay/index.d.ts.map +1 -1
- package/esm/components/QOverlay/types.d.ts +87 -0
- package/esm/components/QOverlay/types.d.ts.map +1 -0
- package/esm/components/QPopover/QPopover.d.ts +21 -120
- package/esm/components/QPopover/QPopover.d.ts.map +1 -1
- package/esm/components/QPopover/index.d.ts +2 -180
- package/esm/components/QPopover/index.d.ts.map +1 -1
- package/esm/components/QPopover/types.d.ts +43 -0
- package/esm/components/QPopover/types.d.ts.map +1 -0
- package/esm/components/QPropertyList/QPropertyList.d.ts +42 -0
- package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -0
- package/esm/components/QPropertyList/QPropertyList.vue.js +145 -0
- package/esm/components/QPropertyList/QPropertyList.vue2.js +4 -0
- package/esm/components/QPropertyList/QPropertyListGroup.d.ts +11 -0
- package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -0
- package/esm/components/QPropertyList/QPropertyListGroup.vue.js +68 -0
- package/esm/components/QPropertyList/QPropertyListGroup.vue2.js +4 -0
- package/esm/components/QPropertyList/QPropertyListPanel.d.ts +21 -0
- package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -0
- package/esm/components/QPropertyList/QPropertyListPanel.vue.js +43 -0
- package/esm/components/QPropertyList/QPropertyListPanel.vue2.js +4 -0
- package/esm/components/QPropertyList/QPropertyListRow.d.ts +24 -0
- package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -0
- package/esm/components/QPropertyList/QPropertyListRow.vue.js +64 -0
- package/esm/components/QPropertyList/QPropertyListRow.vue2.js +4 -0
- package/esm/components/QPropertyList/index.d.ts +12 -0
- package/esm/components/QPropertyList/index.d.ts.map +1 -0
- package/esm/components/QPropertyList/index.js +12 -0
- package/esm/components/QPropertyList/types.d.ts +137 -0
- package/esm/components/QPropertyList/types.d.ts.map +1 -0
- package/esm/components/QPropertyList/types.js +14 -0
- package/esm/components/QSelect/QSelect.d.ts +202 -227
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +140 -146
- package/esm/components/QSelect/index.d.ts +2 -369
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QSelect/types.d.ts +81 -0
- package/esm/components/QSelect/types.d.ts.map +1 -0
- package/esm/components/QSelect/types.js +16 -0
- package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts +3 -41
- package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
- package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +19 -19
- package/esm/components/QSkeletonLoader/index.d.ts +2 -31
- package/esm/components/QSkeletonLoader/index.d.ts.map +1 -1
- package/esm/components/QSkeletonLoader/types.d.ts +15 -0
- package/esm/components/QSkeletonLoader/types.d.ts.map +1 -0
- package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts +3 -35
- package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
- package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +6 -6
- package/esm/components/QSpinnerLoader/index.d.ts +2 -22
- package/esm/components/QSpinnerLoader/index.d.ts.map +1 -1
- package/esm/components/QSpinnerLoader/types.d.ts +11 -0
- package/esm/components/QSpinnerLoader/types.d.ts.map +1 -0
- package/esm/components/QTextField/QTextField.d.ts +103 -147
- package/esm/components/QTextField/QTextField.d.ts.map +1 -1
- package/esm/components/QTextField/index.d.ts +2 -229
- package/esm/components/QTextField/index.d.ts.map +1 -1
- package/esm/components/QTextField/types.d.ts +50 -0
- package/esm/components/QTextField/types.d.ts.map +1 -0
- package/esm/components/QThemeProvider/QThemeProvider.d.ts +10 -17
- package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
- package/esm/components/QThemeProvider/index.d.ts +2 -37
- package/esm/components/QThemeProvider/index.d.ts.map +1 -1
- package/esm/components/QThemeProvider/types.d.ts +7 -0
- package/esm/components/QThemeProvider/types.d.ts.map +1 -0
- package/esm/components/QTooltip/QTooltip.d.ts +28 -190
- package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
- package/esm/components/QTooltip/index.d.ts +2 -279
- package/esm/components/QTooltip/index.d.ts.map +1 -1
- package/esm/components/QTooltip/types.d.ts +66 -0
- package/esm/components/QTooltip/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 +42 -37
- package/esm/composables/defaults.d.ts +0 -1
- package/esm/composables/defaults.js +3 -6
- package/esm/composables/theme.d.ts +0 -1
- package/esm/framework.d.ts +0 -1
- package/esm/index.d.ts +4 -0
- package/esm/templates/theme.d.ts +0 -1
- package/esm/utils/color.js +1 -2
- package/esm/utils/setupPropsProxy.d.ts +0 -1
- package/esm/utils/setupPropsProxy.js +2 -4
- package/esm/utils/theme.d.ts +0 -1
- package/package.json +40 -41
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QCombobox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCombobox/QCombobox.vue"],"names":[],"mappings":"
|
|
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,QAAA,IAAI,eAAe,EAAG,cAAc,CAAC;AA4drC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,OAAO,eAAe,CAAC;AAM3B,iBAAS,cAAc;;iCAoSe,GAAG;gCACJ,GAAG;yBACV,GAAG;wBACJ,GAAG;wBACH,GAAG;gCACK,GAAG;;;YACb,GAAG;+BACM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAlZS,GAC/C,8CAIG,GAAG,yBAAyB,GAAG,6DAE7B,GACL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAR+C,GAC/C,8CAIG,GAAG,yBAAyB,GAAG,6DAE7B,GACL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAR+C,GAC/C,8CAIG,GAAG,yBAAyB,GAAG,6DAE7B,GACL;;;;;;;;;;;;;;;;;;;;;;;;;WAuZa,OAAO,IAA6B;EAEjD;AAyCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA3c2B,GAC/C,8CAIG,GAAG,yBAAyB,GAAG,6DAE7B,GACL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAR+C,GAC/C,8CAIG,GAAG,yBAAyB,GAAG,6DAE7B,GACL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAidC,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,26 +1,19 @@
|
|
|
1
|
-
import { defineComponent as re, mergeModels as H, useModel as T, ref as I, onMounted as ce, computed as m, watch as k, nextTick as
|
|
1
|
+
import { defineComponent as re, mergeModels as H, useModel as T, ref as I, onMounted as ce, computed as m, watch as k, nextTick as x, openBlock as y, createElementBlock as _, Fragment as fe, createVNode as w, unref as c, mergeProps as ve, withModifiers as K, createSlots as me, withCtx as r, renderSlot as f, createBlock as A, normalizeProps as j, guardReactiveProps as W, createCommentVNode as X, createElementVNode as pe, 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";
|
|
5
|
-
import { QOverlay as
|
|
6
|
-
import { QSpinnerLoader as
|
|
5
|
+
import { QOverlay as ge } from "../QOverlay/index.js";
|
|
6
|
+
import { QSpinnerLoader as he } from "../QSpinnerLoader/index.js";
|
|
7
7
|
import { QTextField as Ie } from "../QTextField/index.js";
|
|
8
|
-
|
|
8
|
+
import { DEFAULT_ICONS as ke, DEFAULT_TEXTS as xe } from "./types.js";
|
|
9
|
+
const we = ["data-key"], Ve = {
|
|
9
10
|
key: 0,
|
|
10
11
|
class: "q-select__loader"
|
|
11
|
-
},
|
|
12
|
+
}, Le = {
|
|
12
13
|
key: 2,
|
|
13
14
|
class: "q-select__loader"
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
}, Le = {
|
|
17
|
-
chevron: {
|
|
18
|
-
icon: "chevron-down"
|
|
19
|
-
},
|
|
20
|
-
clear: {
|
|
21
|
-
icon: "close"
|
|
22
|
-
}
|
|
23
|
-
}, Se = /* @__PURE__ */ re({
|
|
15
|
+
}, Te = /* @__PURE__ */ re({
|
|
16
|
+
inheritAttrs: !1,
|
|
24
17
|
__name: "QCombobox",
|
|
25
18
|
props: /* @__PURE__ */ H({
|
|
26
19
|
id: { default: void 0 },
|
|
@@ -40,7 +33,8 @@ const ke = ["data-key"], we = {
|
|
|
40
33
|
emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
41
34
|
size: { default: void 0 },
|
|
42
35
|
class: { default: void 0 },
|
|
43
|
-
|
|
36
|
+
icons: { default: () => ke },
|
|
37
|
+
texts: { default: () => xe }
|
|
44
38
|
}, {
|
|
45
39
|
modelValue: {
|
|
46
40
|
type: [String, Number, Boolean, Symbol]
|
|
@@ -53,37 +47,37 @@ const ke = ["data-key"], we = {
|
|
|
53
47
|
}),
|
|
54
48
|
emits: /* @__PURE__ */ H(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
|
|
55
49
|
setup(V, { expose: Y, emit: Z }) {
|
|
56
|
-
const l = V, L = Z, d = T(V, "modelValue"), i = T(V, "open"),
|
|
57
|
-
ce(
|
|
50
|
+
const l = V, L = Z, d = T(V, "modelValue"), i = T(V, "open"), u = T(V, "search"), t = I(void 0), v = I(null), s = I(null), F = I(null), $ = I(null);
|
|
51
|
+
ce(h);
|
|
58
52
|
const B = m(() => l.clearable && !l.readonly && !l.disabled), p = m(() => {
|
|
59
53
|
var e;
|
|
60
54
|
return l.filterMode === "manual" || !le.value ? l.items : (e = l.items) == null ? void 0 : e.filter(
|
|
61
|
-
(
|
|
55
|
+
(a) => a[l.itemLabel].toLowerCase().startsWith(u.value.toLowerCase())
|
|
62
56
|
);
|
|
63
|
-
}),
|
|
57
|
+
}), g = m(() => {
|
|
64
58
|
var e;
|
|
65
|
-
return (e = l.items) == null ? void 0 : e.find((
|
|
66
|
-
}),
|
|
59
|
+
return (e = l.items) == null ? void 0 : e.find((a) => a[l.itemValue] === d.value);
|
|
60
|
+
}), C = m(() => g.value === void 0), D = m(() => {
|
|
67
61
|
const e = t.value;
|
|
68
62
|
if (e !== void 0 && p.value[e])
|
|
69
63
|
return p.value[e];
|
|
70
64
|
}), ee = m(() => {
|
|
71
|
-
var
|
|
65
|
+
var a;
|
|
72
66
|
if (t.value === void 0)
|
|
73
67
|
return;
|
|
74
|
-
const e = (
|
|
68
|
+
const e = (a = s.value) == null ? void 0 : a.getItem(t.value);
|
|
75
69
|
return e == null ? void 0 : e.id;
|
|
76
70
|
}), le = m(() => {
|
|
77
71
|
var e;
|
|
78
|
-
return
|
|
72
|
+
return u.value.length > 0 && u.value !== ((e = g.value) == null ? void 0 : e[l.itemLabel]);
|
|
79
73
|
});
|
|
80
|
-
function
|
|
74
|
+
function U(e) {
|
|
81
75
|
d.value = e, q();
|
|
82
76
|
}
|
|
83
|
-
function
|
|
84
|
-
var
|
|
85
|
-
const e = ((
|
|
86
|
-
|
|
77
|
+
function h() {
|
|
78
|
+
var a;
|
|
79
|
+
const e = ((a = g.value) == null ? void 0 : a[l.itemLabel]) || "";
|
|
80
|
+
u.value !== e && (u.value = e);
|
|
87
81
|
}
|
|
88
82
|
function E() {
|
|
89
83
|
i.value || l.readonly || l.disabled || (L("before-show"), i.value = !0, S());
|
|
@@ -91,124 +85,122 @@ const ke = ["data-key"], we = {
|
|
|
91
85
|
function q() {
|
|
92
86
|
i.value && (L("before-hide"), i.value = !1, t.value = void 0);
|
|
93
87
|
}
|
|
94
|
-
function oe() {
|
|
95
|
-
i.value ? q() : N();
|
|
96
|
-
}
|
|
97
88
|
function ae() {
|
|
89
|
+
i.value ? q() : z();
|
|
90
|
+
}
|
|
91
|
+
function oe() {
|
|
98
92
|
B.value && (d.value = l.emptyValue, t.value = void 0, S());
|
|
99
93
|
}
|
|
100
|
-
function
|
|
101
|
-
if (E(),
|
|
102
|
-
const e = p.value.indexOf(
|
|
103
|
-
e !== -1 &&
|
|
94
|
+
function z() {
|
|
95
|
+
if (E(), g.value !== void 0) {
|
|
96
|
+
const e = p.value.indexOf(g.value);
|
|
97
|
+
e !== -1 && x(() => O(e));
|
|
104
98
|
}
|
|
105
99
|
}
|
|
106
100
|
function te(e) {
|
|
107
|
-
var
|
|
101
|
+
var a, o;
|
|
108
102
|
if (!(!e.key || l.readonly || l.disabled))
|
|
109
103
|
if (["ArrowDown", "ArrowUp", "Home", "End"].includes(e.key) && (e.preventDefault(), e.stopPropagation()), e.key === "Escape")
|
|
110
|
-
|
|
104
|
+
h(), i.value && q();
|
|
111
105
|
else if (["ArrowDown", "ArrowUp"].includes(e.key))
|
|
112
|
-
i.value ?
|
|
106
|
+
i.value ? x(() => {
|
|
113
107
|
if (t.value === void 0)
|
|
114
108
|
M();
|
|
115
109
|
else {
|
|
116
110
|
const n = e.key === "ArrowDown" ? "next" : "prev";
|
|
117
111
|
ie(t.value, n);
|
|
118
112
|
}
|
|
119
|
-
}) : (E(),
|
|
113
|
+
}) : (E(), x(() => {
|
|
120
114
|
e.key === "ArrowDown" ? M() : ne();
|
|
121
115
|
}));
|
|
122
116
|
else if (e.key === "Enter") {
|
|
123
|
-
if (D.value === void 0)
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
} else
|
|
127
|
-
e.key === "Home" ? t.value = (o = u.value) == null ? void 0 : o.getFirstFocusableItemIndex() : e.key === "End" ? t.value = (a = u.value) == null ? void 0 : a.getLastFocusableItemIndex() : (/^[a-z]$/i.test(e.key) || e.key === "Backspace") && E();
|
|
117
|
+
if (D.value === void 0) return;
|
|
118
|
+
U(D.value[l.itemValue]);
|
|
119
|
+
} else e.key === "Home" ? t.value = (a = s.value) == null ? void 0 : a.getFirstFocusableItemIndex() : e.key === "End" ? t.value = (o = s.value) == null ? void 0 : o.getLastFocusableItemIndex() : (/^[a-z]$/i.test(e.key) || e.key === "Backspace") && E();
|
|
128
120
|
}
|
|
129
121
|
function M() {
|
|
130
|
-
var e,
|
|
131
|
-
if (
|
|
132
|
-
t.value = (
|
|
122
|
+
var e, a;
|
|
123
|
+
if (C.value)
|
|
124
|
+
t.value = (a = s.value) == null ? void 0 : a.getFirstFocusableItemIndex();
|
|
133
125
|
else {
|
|
134
|
-
const
|
|
126
|
+
const o = p.value.findIndex(
|
|
135
127
|
(n) => n[l.itemValue] === d.value
|
|
136
128
|
);
|
|
137
|
-
|
|
129
|
+
o === -1 ? t.value = (e = s.value) == null ? void 0 : e.getFirstFocusableItemIndex() : t.value = o;
|
|
138
130
|
}
|
|
139
131
|
}
|
|
140
132
|
function ne() {
|
|
141
133
|
var e;
|
|
142
|
-
t.value = (e =
|
|
134
|
+
t.value = (e = s.value) == null ? void 0 : e.getLastFocusableItemIndex();
|
|
143
135
|
}
|
|
144
|
-
function ie(e,
|
|
145
|
-
var
|
|
146
|
-
t.value = (
|
|
136
|
+
function ie(e, a) {
|
|
137
|
+
var o;
|
|
138
|
+
t.value = (o = s.value) == null ? void 0 : o.getAdjacentItemIndex(e, a);
|
|
147
139
|
}
|
|
148
|
-
function
|
|
149
|
-
var b,
|
|
150
|
-
const
|
|
151
|
-
if (
|
|
140
|
+
function N(e) {
|
|
141
|
+
var b, Q, P, R;
|
|
142
|
+
const a = ((b = F == null ? void 0 : F.value) == null ? void 0 : b.$el) === e.relatedTarget, o = (P = (Q = v == null ? void 0 : v.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 || o) {
|
|
152
144
|
e.preventDefault(), e.stopPropagation();
|
|
153
145
|
return;
|
|
154
146
|
}
|
|
155
|
-
q(), B.value && !
|
|
147
|
+
q(), B.value && !u.value && (d.value = l.emptyValue), h();
|
|
156
148
|
}
|
|
157
149
|
function S() {
|
|
158
|
-
var e,
|
|
159
|
-
(
|
|
150
|
+
var e, a;
|
|
151
|
+
(a = (e = v.value) == null ? void 0 : e.inputRef) == null || a.focus();
|
|
160
152
|
}
|
|
161
|
-
function
|
|
153
|
+
function ue() {
|
|
162
154
|
S();
|
|
163
155
|
}
|
|
164
|
-
function
|
|
156
|
+
function se() {
|
|
165
157
|
L("show");
|
|
166
158
|
}
|
|
167
159
|
function de() {
|
|
168
160
|
L("hide");
|
|
169
161
|
}
|
|
170
|
-
function
|
|
171
|
-
var
|
|
172
|
-
const
|
|
173
|
-
|
|
162
|
+
function O(e) {
|
|
163
|
+
var o;
|
|
164
|
+
const a = (o = s.value) == null ? void 0 : o.getItem(e);
|
|
165
|
+
s.value && (s.value.$el.scrollTop = a == null ? void 0 : a.offsetTop);
|
|
174
166
|
}
|
|
175
|
-
return k(d,
|
|
167
|
+
return k(d, h), k(
|
|
176
168
|
() => l.items,
|
|
177
|
-
(e,
|
|
178
|
-
if (!
|
|
179
|
-
const
|
|
180
|
-
|
|
169
|
+
(e, a) => {
|
|
170
|
+
if (!C.value) {
|
|
171
|
+
const o = a.find((n) => n[l.itemValue] === d.value);
|
|
172
|
+
u.value === (o == null ? void 0 : o[l.itemLabel]) && h();
|
|
181
173
|
}
|
|
182
174
|
},
|
|
183
175
|
{ deep: !0 }
|
|
184
176
|
), k(t, (e) => {
|
|
185
|
-
e !== void 0 &&
|
|
186
|
-
}), k(
|
|
187
|
-
e && i.value && l.selectionMode === "automatic" &&
|
|
177
|
+
e !== void 0 && O(e);
|
|
178
|
+
}), k(u, (e) => {
|
|
179
|
+
e && i.value && l.selectionMode === "automatic" && x(M);
|
|
188
180
|
}), k(
|
|
189
181
|
() => l.loading,
|
|
190
182
|
(e) => {
|
|
191
|
-
!e && i.value &&
|
|
183
|
+
!e && i.value && x(M);
|
|
192
184
|
}
|
|
193
185
|
), Y({
|
|
194
|
-
triggerEl:
|
|
195
|
-
}), (e,
|
|
196
|
-
var
|
|
186
|
+
triggerEl: v
|
|
187
|
+
}), (e, a) => {
|
|
188
|
+
var o;
|
|
197
189
|
return y(), _(
|
|
198
|
-
|
|
190
|
+
fe,
|
|
199
191
|
null,
|
|
200
192
|
[
|
|
201
|
-
|
|
202
|
-
modelValue:
|
|
203
|
-
"onUpdate:modelValue":
|
|
193
|
+
w(c(Ie), ve({
|
|
194
|
+
modelValue: u.value,
|
|
195
|
+
"onUpdate:modelValue": a[0] || (a[0] = (n) => u.value = n),
|
|
204
196
|
id: l.id,
|
|
205
197
|
label: l.label,
|
|
206
198
|
required: l.required,
|
|
207
199
|
ref_key: "triggerEl",
|
|
208
|
-
ref:
|
|
200
|
+
ref: v,
|
|
209
201
|
role: "combobox",
|
|
210
202
|
placeholder: l.placeholder,
|
|
211
|
-
class:
|
|
203
|
+
class: [
|
|
212
204
|
"q-combobox",
|
|
213
205
|
{
|
|
214
206
|
"q-combobox--readonly": l.readonly,
|
|
@@ -216,7 +208,7 @@ const ke = ["data-key"], we = {
|
|
|
216
208
|
"q-combobox--expanded": i.value
|
|
217
209
|
},
|
|
218
210
|
l.class
|
|
219
|
-
]
|
|
211
|
+
],
|
|
220
212
|
readonly: l.readonly,
|
|
221
213
|
disabled: l.disabled,
|
|
222
214
|
"data-loading": l.loading,
|
|
@@ -225,31 +217,33 @@ const ke = ["data-key"], we = {
|
|
|
225
217
|
"aria-haspopup": "listbox",
|
|
226
218
|
"aria-autocomplete": "list",
|
|
227
219
|
"aria-activedescendant": ee.value,
|
|
228
|
-
size: l.size
|
|
229
|
-
|
|
230
|
-
|
|
220
|
+
size: l.size
|
|
221
|
+
}, e.$attrs, {
|
|
222
|
+
onClick: z,
|
|
223
|
+
onFocusout: N,
|
|
231
224
|
onKeydown: K(te, ["stop"])
|
|
232
|
-
}, me({
|
|
225
|
+
}), me({
|
|
233
226
|
"label.prepend": r(() => [
|
|
234
|
-
|
|
227
|
+
f(e.$slots, "label.prepend")
|
|
235
228
|
]),
|
|
236
229
|
"label.append": r(() => [
|
|
237
|
-
|
|
230
|
+
f(e.$slots, "label.append")
|
|
238
231
|
]),
|
|
239
232
|
append: r(() => [
|
|
240
|
-
|
|
241
|
-
B.value &&
|
|
233
|
+
f(e.$slots, "append"),
|
|
234
|
+
B.value && u.value ? (y(), A(c(G), {
|
|
242
235
|
key: 0,
|
|
243
236
|
class: "q-combobox__clear",
|
|
237
|
+
"aria-label": l.texts.clearValue,
|
|
244
238
|
"b-style": "plain",
|
|
245
239
|
borderless: "",
|
|
246
240
|
tabindex: "-1",
|
|
247
|
-
onClick:
|
|
241
|
+
onClick: oe
|
|
248
242
|
}, {
|
|
249
243
|
default: r(() => [
|
|
250
|
-
|
|
244
|
+
w(
|
|
251
245
|
c(J),
|
|
252
|
-
j(W(l.
|
|
246
|
+
j(W(l.icons.clear)),
|
|
253
247
|
null,
|
|
254
248
|
16
|
|
255
249
|
/* FULL_PROPS */
|
|
@@ -257,22 +251,23 @@ const ke = ["data-key"], we = {
|
|
|
257
251
|
]),
|
|
258
252
|
_: 1
|
|
259
253
|
/* STABLE */
|
|
260
|
-
})) : X("v-if", !0),
|
|
261
|
-
l.readonly ? X("v-if", !0) : (y(),
|
|
254
|
+
}, 8, ["aria-label"])) : X("v-if", !0),
|
|
255
|
+
l.readonly ? X("v-if", !0) : (y(), A(c(G), {
|
|
262
256
|
key: 1,
|
|
263
257
|
ref_key: "toggleRef",
|
|
264
258
|
ref: F,
|
|
265
259
|
class: "q-combobox__chevron",
|
|
260
|
+
"aria-label": l.texts.showOptions,
|
|
266
261
|
"b-style": "plain",
|
|
267
262
|
borderless: "",
|
|
268
263
|
tabindex: "-1",
|
|
269
264
|
disabled: l.disabled,
|
|
270
|
-
onMousedown: K(
|
|
265
|
+
onMousedown: K(ae, ["stop", "prevent"])
|
|
271
266
|
}, {
|
|
272
267
|
default: r(() => [
|
|
273
|
-
|
|
268
|
+
w(
|
|
274
269
|
c(J),
|
|
275
|
-
j(W(l.
|
|
270
|
+
j(W(l.icons.chevron)),
|
|
276
271
|
null,
|
|
277
272
|
16
|
|
278
273
|
/* FULL_PROPS */
|
|
@@ -280,7 +275,7 @@ const ke = ["data-key"], we = {
|
|
|
280
275
|
]),
|
|
281
276
|
_: 1
|
|
282
277
|
/* STABLE */
|
|
283
|
-
}, 8, ["disabled"]))
|
|
278
|
+
}, 8, ["aria-label", "disabled"]))
|
|
284
279
|
]),
|
|
285
280
|
_: 2
|
|
286
281
|
/* DYNAMIC */
|
|
@@ -288,29 +283,29 @@ const ke = ["data-key"], we = {
|
|
|
288
283
|
e.$slots.prepend ? {
|
|
289
284
|
name: "prepend",
|
|
290
285
|
fn: r(() => [
|
|
291
|
-
|
|
286
|
+
f(e.$slots, "prepend")
|
|
292
287
|
]),
|
|
293
288
|
key: "0"
|
|
294
289
|
} : void 0,
|
|
295
290
|
e.$slots.extras ? {
|
|
296
291
|
name: "extras",
|
|
297
292
|
fn: r(() => [
|
|
298
|
-
|
|
293
|
+
f(e.$slots, "extras")
|
|
299
294
|
]),
|
|
300
295
|
key: "1"
|
|
301
296
|
} : void 0
|
|
302
|
-
]),
|
|
303
|
-
|
|
297
|
+
]), 1040, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "data-loading", "aria-expanded", "aria-activedescendant", "size"]),
|
|
298
|
+
w(c(ge), {
|
|
304
299
|
modelValue: i.value,
|
|
305
|
-
"onUpdate:modelValue":
|
|
300
|
+
"onUpdate:modelValue": a[2] || (a[2] = (n) => i.value = n),
|
|
306
301
|
spy: "",
|
|
307
302
|
"non-modal": "",
|
|
308
303
|
trigger: "manual",
|
|
309
304
|
placement: "bottom-start",
|
|
310
305
|
width: "anchor",
|
|
311
306
|
offset: 4,
|
|
312
|
-
anchor: (
|
|
313
|
-
onEnter:
|
|
307
|
+
anchor: (o = v.value) == null ? void 0 : o.$el,
|
|
308
|
+
onEnter: se,
|
|
314
309
|
onLeave: de
|
|
315
310
|
}, {
|
|
316
311
|
default: r(() => {
|
|
@@ -322,43 +317,43 @@ const ke = ["data-key"], we = {
|
|
|
322
317
|
class: "q-select__body",
|
|
323
318
|
"data-testid": "combobox-dropdown",
|
|
324
319
|
"data-key": l.id,
|
|
325
|
-
onFocusout:
|
|
320
|
+
onFocusout: N
|
|
326
321
|
}, [
|
|
327
|
-
|
|
328
|
-
l.loading ? (y(), _("div",
|
|
329
|
-
|
|
330
|
-
])) : p.value.length ? (y(),
|
|
322
|
+
f(e.$slots, "body.prepend"),
|
|
323
|
+
l.loading ? (y(), _("div", Ve, [
|
|
324
|
+
w(c(he), { size: 24 })
|
|
325
|
+
])) : p.value.length ? (y(), A(c(ye), {
|
|
331
326
|
key: 1,
|
|
332
327
|
ref_key: "listRef",
|
|
333
|
-
ref:
|
|
328
|
+
ref: s,
|
|
334
329
|
class: "q-select__items",
|
|
335
330
|
selectable: "",
|
|
336
331
|
modelValue: d.value,
|
|
337
332
|
"onUpdate:modelValue": [
|
|
338
|
-
|
|
339
|
-
|
|
333
|
+
a[1] || (a[1] = (b) => d.value = b),
|
|
334
|
+
U
|
|
340
335
|
],
|
|
341
336
|
highlighted: (n = D.value) == null ? void 0 : n[l.itemValue],
|
|
342
337
|
items: p.value,
|
|
343
338
|
groups: e.groups,
|
|
344
339
|
"item-label": l.itemLabel,
|
|
345
340
|
"item-value": l.itemValue,
|
|
346
|
-
onMouseup:
|
|
341
|
+
onMouseup: ue
|
|
347
342
|
}, {
|
|
348
343
|
item: r(({ item: b }) => [
|
|
349
|
-
|
|
344
|
+
f(e.$slots, "item", { item: b })
|
|
350
345
|
]),
|
|
351
346
|
_: 3
|
|
352
347
|
/* FORWARDED */
|
|
353
348
|
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (y(), _(
|
|
354
349
|
"div",
|
|
355
|
-
|
|
356
|
-
be(
|
|
350
|
+
Le,
|
|
351
|
+
be(l.texts.noData),
|
|
357
352
|
1
|
|
358
353
|
/* TEXT */
|
|
359
354
|
)),
|
|
360
|
-
|
|
361
|
-
], 40,
|
|
355
|
+
f(e.$slots, "body.append")
|
|
356
|
+
], 40, we)
|
|
362
357
|
];
|
|
363
358
|
}),
|
|
364
359
|
_: 3
|
|
@@ -372,5 +367,5 @@ const ke = ["data-key"], we = {
|
|
|
372
367
|
}
|
|
373
368
|
});
|
|
374
369
|
export {
|
|
375
|
-
|
|
370
|
+
Te as default
|
|
376
371
|
};
|