@quidgest/ui 0.16.11 → 0.16.13
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/ui.css +10 -0
- package/dist/ui.esm.js +2464 -2451
- package/dist/ui.js +5 -5
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +23 -23
- package/dist/ui.scss +9 -1
- package/esm/components/QAccordion/QAccordionItem.vue.js +13 -15
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +133 -118
- package/package.json +1 -1
package/dist/ui.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Quidgest UI v0.16.
|
|
2
|
+
* Quidgest UI v0.16.13
|
|
3
3
|
* (c) 2025 Quidgest - Consultores de Gestão, S.A.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -1815,6 +1815,7 @@ $q-line-loader-color: var(--q-line-loader-color);
|
|
|
1815
1815
|
width: inherit;
|
|
1816
1816
|
border-radius: var(--border-radius);
|
|
1817
1817
|
outline: none;
|
|
1818
|
+
cursor: default;
|
|
1818
1819
|
&--selectable {
|
|
1819
1820
|
&:hover {
|
|
1820
1821
|
cursor: pointer;
|
|
@@ -1849,6 +1850,8 @@ $q-line-loader-color: var(--q-line-loader-color);
|
|
|
1849
1850
|
display: flex;
|
|
1850
1851
|
flex-grow: 1;
|
|
1851
1852
|
gap: $space-base * 2;
|
|
1853
|
+
cursor: inherit;
|
|
1854
|
+
user-select: none;
|
|
1852
1855
|
}
|
|
1853
1856
|
&__check-container {
|
|
1854
1857
|
display: flex;
|
|
@@ -2286,6 +2289,11 @@ $base-border: 1px solid rgb(0 0 0 / 10%);
|
|
|
2286
2289
|
font-style: italic;
|
|
2287
2290
|
color: var(--q-theme-neutral);
|
|
2288
2291
|
}
|
|
2292
|
+
&__input {
|
|
2293
|
+
width: 0;
|
|
2294
|
+
opacity: 0;
|
|
2295
|
+
cursor: inherit;
|
|
2296
|
+
}
|
|
2289
2297
|
|
|
2290
2298
|
.q-field__prepend {
|
|
2291
2299
|
padding-left: $space-base * 2;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { QCollapsible as
|
|
3
|
-
import { useId as
|
|
4
|
-
import { useGroupItem as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as l, computed as a, createBlock as c, openBlock as s, unref as o, mergeProps as u, withCtx as m, renderSlot as p } from "vue";
|
|
2
|
+
import { QCollapsible as d } from "../QCollapsible/index.js";
|
|
3
|
+
import { useId as f } from "../../composables/uid.js";
|
|
4
|
+
import { useGroupItem as v } from "../../composables/useGroup/index.js";
|
|
5
|
+
const B = /* @__PURE__ */ l({
|
|
6
6
|
__name: "QAccordionItem",
|
|
7
7
|
props: {
|
|
8
8
|
id: {},
|
|
@@ -17,26 +17,24 @@ const I = /* @__PURE__ */ u({
|
|
|
17
17
|
icons: {},
|
|
18
18
|
value: {}
|
|
19
19
|
},
|
|
20
|
-
setup(
|
|
21
|
-
const t =
|
|
20
|
+
setup(r) {
|
|
21
|
+
const t = r, i = a(() => f(t.value)), e = v(i);
|
|
22
22
|
if (!e)
|
|
23
23
|
throw new Error(
|
|
24
24
|
"QAccordionItem: Failed to retrieve group item. Ensure the component is used within a QAccordion context."
|
|
25
25
|
);
|
|
26
|
-
return (n,
|
|
27
|
-
|
|
28
|
-
"onUpdate:modelValue": r[0] || (r[0] = (a) => o(e).isActive.value = a)
|
|
29
|
-
}, t, {
|
|
26
|
+
return (n, h) => (s(), c(o(d), u(t, {
|
|
27
|
+
"model-value": o(e).isActive.value,
|
|
30
28
|
"onUpdate:modelValue": o(e).toggle
|
|
31
29
|
}), {
|
|
32
|
-
default:
|
|
33
|
-
|
|
30
|
+
default: m(() => [
|
|
31
|
+
p(n.$slots, "default")
|
|
34
32
|
]),
|
|
35
33
|
_: 3
|
|
36
34
|
/* FORWARDED */
|
|
37
|
-
}, 16, ["
|
|
35
|
+
}, 16, ["model-value", "onUpdate:modelValue"]));
|
|
38
36
|
}
|
|
39
37
|
});
|
|
40
38
|
export {
|
|
41
|
-
|
|
39
|
+
B as default
|
|
42
40
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/QSelect.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/QSelect.vue"],"names":[],"mappings":"AAoIA;AA6TC,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;AA6KjC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,GAAG,CAAC;CAChB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAyUT,OAAO,IAA6B;;yBAnBpB,GAAG;wBACJ,GAAG;wBACH,GAAG;gCACK,GAAG;;;YACb,GAAG;+BACM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwEhB,GAAG,8CACpB,GAAG,yBAAyB,GACjC,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAFhB,GAAG,8CACpB,GAAG,yBAAyB,GACjC,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAFhB,GAAG,8CACpB,GAAG,yBAAyB,GACjC,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAvDtC;AAmCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAiBE,GAAG,8CACpB,GAAG,yBAAyB,GACjC,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAFhB,GAAG,8CACpB,GAAG,yBAAyB,GACjC,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAFhB,GAAG,8CACpB,GAAG,yBAAyB,GACjC,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAVrC,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,26 +1,26 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { DEFAULT_TEXTS as
|
|
3
|
-
import { QButton as
|
|
4
|
-
import { QField as
|
|
5
|
-
import { QIcon as
|
|
6
|
-
import { QList as
|
|
7
|
-
import { QOverlay as
|
|
8
|
-
import { QSpinnerLoader as
|
|
9
|
-
import { QChevron as
|
|
10
|
-
import { QClearButton as
|
|
11
|
-
const
|
|
1
|
+
import { defineComponent as H, mergeModels as R, useModel as X, ref as h, computed as k, watch as j, nextTick as G, createElementBlock as p, openBlock as t, Fragment as A, createVNode as g, unref as i, normalizeClass as J, createSlots as W, withCtx as s, withDirectives as Y, toDisplayString as F, createCommentVNode as _, createTextVNode as Z, createElementVNode as K, mergeProps as M, vModelText as ee, renderSlot as r, createBlock as w, normalizeProps as le, withModifiers as oe } from "vue";
|
|
2
|
+
import { DEFAULT_TEXTS as ae, DEFAULT_ICONS as te } from "./types.js";
|
|
3
|
+
import { QButton as ne } from "../QButton/index.js";
|
|
4
|
+
import { QField as ie } from "../QField/index.js";
|
|
5
|
+
import { QIcon as se } from "../QIcon/index.js";
|
|
6
|
+
import { QList as de } from "../QList/index.js";
|
|
7
|
+
import { QOverlay as re } from "../QOverlay/index.js";
|
|
8
|
+
import { QSpinnerLoader as ue } from "../QSpinnerLoader/index.js";
|
|
9
|
+
import { QChevron as ce } from "../__internal__/QChevron/index.js";
|
|
10
|
+
import { QClearButton as fe } from "../__internal__/QClearButton/index.js";
|
|
11
|
+
const pe = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "q-select__value"
|
|
14
|
-
},
|
|
14
|
+
}, me = {
|
|
15
15
|
key: 1,
|
|
16
16
|
class: "q-select__placeholder"
|
|
17
|
-
},
|
|
17
|
+
}, ve = ["id", "tabindex", "aria-keyshortcuts"], ye = ["data-key"], be = {
|
|
18
18
|
key: 0,
|
|
19
19
|
class: "q-select__loader"
|
|
20
|
-
},
|
|
20
|
+
}, Be = /* @__PURE__ */ H({
|
|
21
21
|
inheritAttrs: !1,
|
|
22
22
|
__name: "QSelect",
|
|
23
|
-
props: /* @__PURE__ */
|
|
23
|
+
props: /* @__PURE__ */ R({
|
|
24
24
|
id: {},
|
|
25
25
|
class: {},
|
|
26
26
|
label: {},
|
|
@@ -38,108 +38,109 @@ const de = {
|
|
|
38
38
|
loading: { type: Boolean },
|
|
39
39
|
emptyValue: {},
|
|
40
40
|
inline: { type: Boolean },
|
|
41
|
-
icons: { default: () =>
|
|
42
|
-
texts: { default: () =>
|
|
41
|
+
icons: { default: () => te },
|
|
42
|
+
texts: { default: () => ae }
|
|
43
43
|
}, {
|
|
44
44
|
modelValue: {},
|
|
45
45
|
modelModifiers: {}
|
|
46
46
|
}),
|
|
47
|
-
emits: /* @__PURE__ */
|
|
48
|
-
setup(
|
|
49
|
-
const e =
|
|
47
|
+
emits: /* @__PURE__ */ R(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
|
|
48
|
+
setup(C, { emit: O }) {
|
|
49
|
+
const e = C, m = O, v = X(C, "modelValue"), a = h(!1), y = h(null), B = h(null), V = h(null), D = k(() => d.value === void 0), d = k(
|
|
50
50
|
() => {
|
|
51
51
|
var l;
|
|
52
|
-
return (l = e.items) == null ? void 0 : l.find((
|
|
52
|
+
return (l = e.items) == null ? void 0 : l.find((o) => o[e.itemValue] === v.value);
|
|
53
53
|
}
|
|
54
|
-
),
|
|
55
|
-
() =>
|
|
56
|
-
),
|
|
54
|
+
), q = k(
|
|
55
|
+
() => d.value ? d.value[e.itemLabel] : ""
|
|
56
|
+
), u = k(
|
|
57
57
|
() => e.clearable && !e.readonly && !e.disabled && !e.loading
|
|
58
58
|
);
|
|
59
|
-
function
|
|
60
|
-
|
|
59
|
+
function L(l) {
|
|
60
|
+
v.value = l, b();
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
|
|
62
|
+
function x() {
|
|
63
|
+
u.value && (L(e.emptyValue), Q());
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
var
|
|
67
|
-
!((
|
|
65
|
+
function U(l) {
|
|
66
|
+
var o, c, f;
|
|
67
|
+
!((o = V.value) != null && o.contains(l.relatedTarget)) && !((f = (c = y.value) == null ? void 0 : c.fieldRef) != null && f.contains(l.relatedTarget)) && b();
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
|
|
69
|
+
function $() {
|
|
70
|
+
a.value || (m("before-show"), a.value = !0);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
|
|
72
|
+
function b() {
|
|
73
|
+
a.value && (m("before-hide"), a.value = !1);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
e.readonly || e.disabled || (
|
|
75
|
+
function T() {
|
|
76
|
+
e.readonly || e.disabled || (a.value ? b() : $());
|
|
77
|
+
}
|
|
78
|
+
function E(l) {
|
|
79
|
+
!l.key || e.readonly || e.disabled || (["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End", "Delete"].includes(l.key) && (l.preventDefault(), l.stopPropagation()), ["Enter", " ", "ArrowDown"].includes(l.key) && $(), ["Escape", "Tab"].includes(l.key) && (a.value ? b() : u.value && l.key === "Escape" && x()), u.value && l.key === "Delete" && x());
|
|
77
80
|
}
|
|
78
|
-
function
|
|
79
|
-
|
|
81
|
+
function I(l) {
|
|
82
|
+
l.key.length === 1 && l.preventDefault(), E(l);
|
|
80
83
|
}
|
|
81
|
-
function
|
|
84
|
+
function N() {
|
|
82
85
|
var l;
|
|
83
|
-
e.loading ? (l =
|
|
86
|
+
e.loading ? (l = V.value) == null || l.focus() : S(), m("show");
|
|
84
87
|
}
|
|
85
|
-
function
|
|
88
|
+
function P() {
|
|
86
89
|
Q(), m("hide");
|
|
87
90
|
}
|
|
88
91
|
function Q() {
|
|
89
|
-
var l,
|
|
90
|
-
(
|
|
92
|
+
var l, o;
|
|
93
|
+
(o = (l = y.value) == null ? void 0 : l.fieldRef) == null || o.focus();
|
|
91
94
|
}
|
|
92
|
-
function
|
|
95
|
+
function S() {
|
|
93
96
|
var l;
|
|
94
|
-
(l =
|
|
97
|
+
(l = B.value) == null || l.$el.focus();
|
|
95
98
|
}
|
|
96
|
-
return
|
|
99
|
+
return j(
|
|
97
100
|
() => e.loading,
|
|
98
101
|
(l) => {
|
|
99
|
-
!l &&
|
|
102
|
+
!l && a.value && G(S);
|
|
100
103
|
}
|
|
101
|
-
), (l,
|
|
102
|
-
var
|
|
103
|
-
return t(),
|
|
104
|
-
|
|
104
|
+
), (l, o) => {
|
|
105
|
+
var c, f;
|
|
106
|
+
return t(), p(
|
|
107
|
+
A,
|
|
105
108
|
null,
|
|
106
109
|
[
|
|
107
|
-
g(
|
|
110
|
+
g(i(ie), {
|
|
108
111
|
id: e.id,
|
|
109
112
|
ref_key: "triggerEl",
|
|
110
|
-
ref:
|
|
113
|
+
ref: y,
|
|
111
114
|
label: e.label,
|
|
112
115
|
required: e.required,
|
|
113
116
|
role: "combobox",
|
|
114
|
-
|
|
115
|
-
class: [
|
|
117
|
+
class: J([
|
|
116
118
|
"q-select",
|
|
117
119
|
{
|
|
118
120
|
"q-select--readonly": e.readonly,
|
|
119
121
|
"q-select--disabled": e.disabled
|
|
120
122
|
},
|
|
121
123
|
e.class
|
|
122
|
-
],
|
|
124
|
+
]),
|
|
123
125
|
readonly: e.readonly,
|
|
124
126
|
disabled: e.disabled,
|
|
125
127
|
"data-loading": e.loading,
|
|
126
|
-
"aria-expanded":
|
|
128
|
+
"aria-expanded": a.value,
|
|
127
129
|
"aria-haspopup": "listbox",
|
|
128
130
|
size: e.size,
|
|
129
|
-
invalid: e.invalid
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
V.value && p.value ? (t(), _(n(re), {
|
|
131
|
+
invalid: e.invalid,
|
|
132
|
+
onClick: T,
|
|
133
|
+
onKeydown: E
|
|
134
|
+
}, W({
|
|
135
|
+
append: s(() => [
|
|
136
|
+
r(l.$slots, "append"),
|
|
137
|
+
u.value && v.value ? (t(), w(i(fe), {
|
|
137
138
|
key: 0,
|
|
138
139
|
icons: e.icons,
|
|
139
140
|
texts: e.texts,
|
|
140
|
-
onClick:
|
|
141
|
-
}, null, 8, ["icons", "texts"])) :
|
|
142
|
-
e.readonly ?
|
|
141
|
+
onClick: x
|
|
142
|
+
}, null, 8, ["icons", "texts"])) : _("v-if", !0),
|
|
143
|
+
e.readonly ? _("v-if", !0) : (t(), w(i(ne), {
|
|
143
144
|
key: 1,
|
|
144
145
|
class: "q-select__chevron",
|
|
145
146
|
"aria-label": e.texts.showOptions,
|
|
@@ -148,11 +149,11 @@ const de = {
|
|
|
148
149
|
borderless: "",
|
|
149
150
|
tabindex: "-1",
|
|
150
151
|
disabled: e.disabled,
|
|
151
|
-
onClick:
|
|
152
|
+
onClick: T
|
|
152
153
|
}, {
|
|
153
|
-
default:
|
|
154
|
-
g(
|
|
155
|
-
"model-value":
|
|
154
|
+
default: s(() => [
|
|
155
|
+
g(i(ce), {
|
|
156
|
+
"model-value": a.value,
|
|
156
157
|
icons: e.icons
|
|
157
158
|
}, null, 8, ["model-value", "icons"])
|
|
158
159
|
]),
|
|
@@ -160,107 +161,121 @@ const de = {
|
|
|
160
161
|
/* STABLE */
|
|
161
162
|
}, 8, ["aria-label", "disabled"]))
|
|
162
163
|
]),
|
|
163
|
-
default:
|
|
164
|
-
|
|
165
|
-
!e.readonly && !e.disabled ? (t(),
|
|
166
|
-
|
|
164
|
+
default: s(() => [
|
|
165
|
+
D.value ? (t(), p("span", me, [
|
|
166
|
+
!e.readonly && !e.disabled ? (t(), p(
|
|
167
|
+
A,
|
|
167
168
|
{ key: 0 },
|
|
168
169
|
[
|
|
169
|
-
|
|
170
|
-
|
|
170
|
+
Z(
|
|
171
|
+
F(e.texts.placeholder),
|
|
171
172
|
1
|
|
172
173
|
/* TEXT */
|
|
173
174
|
)
|
|
174
175
|
],
|
|
175
176
|
64
|
|
176
177
|
/* STABLE_FRAGMENT */
|
|
177
|
-
)) :
|
|
178
|
-
])) : (t(),
|
|
178
|
+
)) : _("v-if", !0)
|
|
179
|
+
])) : (t(), p(
|
|
179
180
|
"span",
|
|
180
|
-
|
|
181
|
-
|
|
181
|
+
pe,
|
|
182
|
+
F(q.value),
|
|
182
183
|
1
|
|
183
184
|
/* TEXT */
|
|
184
|
-
))
|
|
185
|
+
)),
|
|
186
|
+
Y(K("input", M({
|
|
187
|
+
id: `${e.id}_input`
|
|
188
|
+
}, l.$attrs, {
|
|
189
|
+
"onUpdate:modelValue": o[0] || (o[0] = (n) => q.value = n),
|
|
190
|
+
class: "q-select__input",
|
|
191
|
+
inputmode: "none",
|
|
192
|
+
type: "text",
|
|
193
|
+
autocomplete: "off",
|
|
194
|
+
tabindex: e.disabled ? -1 : 0,
|
|
195
|
+
"aria-keyshortcuts": u.value && !D.value ? "Delete" : void 0,
|
|
196
|
+
onKeydown: I
|
|
197
|
+
}), null, 16, ve), [
|
|
198
|
+
[ee, q.value]
|
|
199
|
+
])
|
|
185
200
|
]),
|
|
186
201
|
_: 2
|
|
187
202
|
/* DYNAMIC */
|
|
188
203
|
}, [
|
|
189
|
-
(
|
|
204
|
+
(c = d.value) != null && c.icon || l.$slots.prepend ? {
|
|
190
205
|
name: "prepend",
|
|
191
|
-
fn:
|
|
192
|
-
var
|
|
206
|
+
fn: s(() => {
|
|
207
|
+
var n, z;
|
|
193
208
|
return [
|
|
194
|
-
|
|
195
|
-
(
|
|
196
|
-
|
|
197
|
-
|
|
209
|
+
r(l.$slots, "prepend"),
|
|
210
|
+
(n = d.value) != null && n.icon ? (t(), w(
|
|
211
|
+
i(se),
|
|
212
|
+
le(M({ key: 0 }, (z = d.value) == null ? void 0 : z.icon)),
|
|
198
213
|
null,
|
|
199
214
|
16
|
|
200
215
|
/* FULL_PROPS */
|
|
201
|
-
)) :
|
|
216
|
+
)) : _("v-if", !0)
|
|
202
217
|
];
|
|
203
218
|
}),
|
|
204
219
|
key: "0"
|
|
205
220
|
} : void 0,
|
|
206
221
|
l.$slots.extras ? {
|
|
207
222
|
name: "extras",
|
|
208
|
-
fn:
|
|
209
|
-
|
|
223
|
+
fn: s(() => [
|
|
224
|
+
r(l.$slots, "extras")
|
|
210
225
|
]),
|
|
211
226
|
key: "1"
|
|
212
227
|
} : void 0
|
|
213
|
-
]),
|
|
214
|
-
g(
|
|
215
|
-
modelValue:
|
|
216
|
-
"onUpdate:modelValue":
|
|
228
|
+
]), 1032, ["id", "label", "required", "class", "readonly", "disabled", "data-loading", "aria-expanded", "size", "invalid"]),
|
|
229
|
+
g(i(re), {
|
|
230
|
+
modelValue: a.value,
|
|
231
|
+
"onUpdate:modelValue": o[1] || (o[1] = (n) => a.value = n),
|
|
217
232
|
spy: "",
|
|
218
233
|
trigger: "manual",
|
|
219
234
|
placement: "bottom-start",
|
|
220
235
|
width: "anchor",
|
|
221
236
|
"scroll-lock": "",
|
|
222
237
|
inline: e.inline,
|
|
223
|
-
anchor: (
|
|
238
|
+
anchor: (f = y.value) == null ? void 0 : f.fieldRef,
|
|
224
239
|
offset: 2,
|
|
225
|
-
onEnter:
|
|
226
|
-
onLeave:
|
|
240
|
+
onEnter: N,
|
|
241
|
+
onLeave: P
|
|
227
242
|
}, {
|
|
228
|
-
default:
|
|
229
|
-
|
|
243
|
+
default: s(() => [
|
|
244
|
+
K("div", {
|
|
230
245
|
ref_key: "contentRef",
|
|
231
|
-
ref:
|
|
246
|
+
ref: V,
|
|
232
247
|
"data-testid": "combobox-dropdown",
|
|
233
248
|
"data-key": e.id,
|
|
234
249
|
class: "q-select__body",
|
|
235
250
|
tabindex: "-1",
|
|
236
|
-
onFocusout:
|
|
237
|
-
onKeydown:
|
|
251
|
+
onFocusout: U,
|
|
252
|
+
onKeydown: oe(E, ["stop"])
|
|
238
253
|
}, [
|
|
239
|
-
|
|
240
|
-
e.loading ? (t(),
|
|
241
|
-
g(
|
|
242
|
-
])) : (t(),
|
|
254
|
+
r(l.$slots, "body.prepend"),
|
|
255
|
+
e.loading ? (t(), p("div", be, [
|
|
256
|
+
g(i(ue), { size: 24 })
|
|
257
|
+
])) : (t(), w(i(de), {
|
|
243
258
|
key: 1,
|
|
244
259
|
ref_key: "listRef",
|
|
245
|
-
ref:
|
|
260
|
+
ref: B,
|
|
246
261
|
class: "q-select__items",
|
|
247
262
|
selectable: "",
|
|
248
263
|
required: "",
|
|
249
|
-
"model-value":
|
|
264
|
+
"model-value": v.value,
|
|
250
265
|
items: e.items,
|
|
251
266
|
groups: l.groups,
|
|
252
267
|
"item-label": e.itemLabel,
|
|
253
268
|
"item-value": e.itemValue,
|
|
254
|
-
"onUpdate:modelValue":
|
|
269
|
+
"onUpdate:modelValue": L
|
|
255
270
|
}, {
|
|
256
|
-
item:
|
|
257
|
-
|
|
271
|
+
item: s(({ item: n }) => [
|
|
272
|
+
r(l.$slots, "item", { item: n })
|
|
258
273
|
]),
|
|
259
274
|
_: 3
|
|
260
275
|
/* FORWARDED */
|
|
261
276
|
}, 8, ["model-value", "items", "groups", "item-label", "item-value"])),
|
|
262
|
-
|
|
263
|
-
], 40,
|
|
277
|
+
r(l.$slots, "body.append")
|
|
278
|
+
], 40, ye)
|
|
264
279
|
]),
|
|
265
280
|
_: 3
|
|
266
281
|
/* FORWARDED */
|
|
@@ -273,5 +288,5 @@ const de = {
|
|
|
273
288
|
}
|
|
274
289
|
});
|
|
275
290
|
export {
|
|
276
|
-
|
|
291
|
+
Be as default
|
|
277
292
|
};
|