@validol4ik/uikit 0.6.7 → 0.6.8
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/{AppButtonCopy-CT_lXO96.js → AppButtonCopy-Cpoz6v02.js} +1 -1
- package/dist/{AppButtonCopy-BvczyeX-.cjs → AppButtonCopy-UfvMMx3V.cjs} +1 -1
- package/dist/{AppSelect-BbPJo5N3.cjs → AppSelect-9OPvOErd.cjs} +1 -1
- package/dist/{AppSelect-B0FVWo0o.js → AppSelect-JVVrifzF.js} +516 -516
- package/dist/DropdownButton-BK_sSxXA.cjs +1 -0
- package/dist/{DropdownButton-Ylu19LP3.js → DropdownButton-pcp6W_7i.js} +105 -105
- package/dist/{QMenu-BAujF7Kn.cjs → QMenu-B07m1rKE.cjs} +1 -1
- package/dist/{QMenu-CrIbSuC4.js → QMenu-TwM_-QHE.js} +1 -1
- package/dist/{index-DqEqQq1H.js → index-B0t4qh6b.js} +424 -424
- package/dist/index-BEJxpQtP.cjs +1 -0
- package/dist/uikit.cjs +1 -1
- package/dist/uikit.es.js +1 -1
- package/package.json +2 -2
- package/dist/DropdownButton-DF_WGSQl.cjs +0 -1
- package/dist/index-CDsBnBqp.cjs +0 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { ref as O, computed as r, h as
|
|
2
|
-
import { u as al, a as rt, b as st, d as rl, e as sl, h as
|
|
3
|
-
import { a as dl, u as lo, r as oo, g as no, b as uo, h as io, c as ao, d as ro, e as so, f as co, i as fo, j as vo, k as mo, l as go, m as Ht, n as ho, Q as
|
|
4
|
-
import { b as
|
|
1
|
+
import { ref as O, computed as r, h as c, getCurrentInstance as se, toRaw as Oe, onBeforeUpdate as ol, inject as Ol, watch as G, onMounted as nl, onBeforeUnmount as Ae, nextTick as ve, onDeactivated as ul, onActivated as il, Transition as Ct, onBeforeMount as Ml, onUpdated as Ll, defineComponent as $l, createElementBlock as fe, openBlock as ae, normalizeClass as et, createCommentVNode as Me, createVNode as je, toDisplayString as Ke, unref as Hl, withCtx as ge, mergeProps as Pl, createBlock as $t, createElementVNode as mt, createTextVNode as gt, Fragment as tt, withModifiers as Dl } from "vue";
|
|
2
|
+
import { u as al, a as rt, b as st, d as rl, e as sl, h as be, s as ne, c as ye, Q as _e, f as jl, g as Kl, i as cl, j as Nl, p as he, k as Ql, l as Ul, m as Wl, R as Xl, n as qe, o as Yl, q as Zl, r as Jl, t as Gl, v as Le, S as eo, _ as to } from "./index-B0t4qh6b.js";
|
|
3
|
+
import { a as dl, u as lo, r as oo, g as no, b as uo, h as io, c as ao, d as ro, e as so, f as co, i as fo, j as vo, k as mo, l as go, m as Ht, n as ho, Q as po } from "./QMenu-TwM_-QHE.js";
|
|
4
|
+
import { b as bo, c as xe, r as Pt, a as yo } from "./focusout-DjvPXP_b.js";
|
|
5
5
|
function So(e, l) {
|
|
6
|
-
const t = O(null), n = r(() => e.disable === !0 ? null :
|
|
6
|
+
const t = O(null), n = r(() => e.disable === !0 ? null : c("span", {
|
|
7
7
|
ref: t,
|
|
8
8
|
class: "no-outline",
|
|
9
9
|
tabindex: -1
|
|
10
10
|
}));
|
|
11
|
-
function
|
|
11
|
+
function d(u) {
|
|
12
12
|
const a = l.value;
|
|
13
13
|
(u == null ? void 0 : u.qAvoidFocus) !== !0 && ((u == null ? void 0 : u.type.indexOf("key")) === 0 ? document.activeElement !== a && (a == null ? void 0 : a.contains(document.activeElement)) === !0 && a.focus() : t.value !== null && (u === void 0 || (a == null ? void 0 : a.contains(u.target)) === !0) && t.value.focus());
|
|
14
14
|
}
|
|
15
15
|
return {
|
|
16
16
|
refocusTargetEl: n,
|
|
17
|
-
refocusTarget:
|
|
17
|
+
refocusTarget: d
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
const fl = {
|
|
@@ -23,7 +23,7 @@ const fl = {
|
|
|
23
23
|
function wo(e = {}) {
|
|
24
24
|
return (l, t, n) => {
|
|
25
25
|
l[t](
|
|
26
|
-
|
|
26
|
+
c("input", {
|
|
27
27
|
class: "hidden" + (n || ""),
|
|
28
28
|
...e.value
|
|
29
29
|
})
|
|
@@ -66,46 +66,46 @@ const ko = {
|
|
|
66
66
|
dense: Boolean,
|
|
67
67
|
disable: Boolean,
|
|
68
68
|
tabindex: [String, Number]
|
|
69
|
-
},
|
|
70
|
-
function
|
|
71
|
-
const { props: t, slots: n, emit:
|
|
69
|
+
}, Vo = ["update:modelValue"];
|
|
70
|
+
function xo(e, l) {
|
|
71
|
+
const { props: t, slots: n, emit: d, proxy: u } = se(), { $q: a } = u, p = st(t, a), b = O(null), { refocusTargetEl: x, refocusTarget: v } = So(t, b), C = rl(t, ko), k = r(
|
|
72
72
|
() => t.val !== void 0 && Array.isArray(t.modelValue)
|
|
73
|
-
),
|
|
74
|
-
const
|
|
75
|
-
return k.value === !0 ? t.modelValue.findIndex((X) => Oe(X) ===
|
|
76
|
-
}), y = r(() => k.value === !0 ?
|
|
73
|
+
), s = r(() => {
|
|
74
|
+
const V = Oe(t.val);
|
|
75
|
+
return k.value === !0 ? t.modelValue.findIndex((X) => Oe(X) === V) : -1;
|
|
76
|
+
}), y = r(() => k.value === !0 ? s.value !== -1 : Oe(t.modelValue) === Oe(t.trueValue)), q = r(() => k.value === !0 ? s.value === -1 : Oe(t.modelValue) === Oe(t.falseValue)), S = r(
|
|
77
77
|
() => y.value === !1 && q.value === !1
|
|
78
78
|
), $ = r(() => t.disable === !0 ? -1 : t.tabindex || 0), j = r(
|
|
79
|
-
() => `q-${e} cursor-pointer no-outline row inline no-wrap items-center` + (t.disable === !0 ? " disabled" : "") + (
|
|
79
|
+
() => `q-${e} cursor-pointer no-outline row inline no-wrap items-center` + (t.disable === !0 ? " disabled" : "") + (p.value === !0 ? ` q-${e}--dark` : "") + (t.dense === !0 ? ` q-${e}--dense` : "") + (t.leftLabel === !0 ? " reverse" : "")
|
|
80
80
|
), _ = r(() => {
|
|
81
|
-
const
|
|
82
|
-
return `q-${e}__inner relative-position non-selectable q-${e}__inner--${
|
|
81
|
+
const V = y.value === !0 ? "truthy" : q.value === !0 ? "falsy" : "indet", X = t.color !== void 0 && (t.keepColor === !0 || q.value !== !0) ? ` text-${t.color}` : "";
|
|
82
|
+
return `q-${e}__inner relative-position non-selectable q-${e}__inner--${V}${X}`;
|
|
83
83
|
}), M = r(() => {
|
|
84
|
-
const
|
|
85
|
-
return t.name !== void 0 && Object.assign(
|
|
84
|
+
const V = { type: "checkbox" };
|
|
85
|
+
return t.name !== void 0 && Object.assign(V, {
|
|
86
86
|
// see https://vuejs.org/guide/extras/render-function.html#creating-vnodes (.prop)
|
|
87
87
|
".checked": y.value,
|
|
88
88
|
"^checked": y.value === !0 ? "checked" : void 0,
|
|
89
89
|
name: t.name,
|
|
90
90
|
value: k.value === !0 ? t.val : t.trueValue
|
|
91
|
-
}),
|
|
91
|
+
}), V;
|
|
92
92
|
}), Y = wo(M), R = r(() => {
|
|
93
|
-
const
|
|
93
|
+
const V = {
|
|
94
94
|
tabindex: $.value,
|
|
95
95
|
role: "checkbox",
|
|
96
96
|
"aria-label": t.label,
|
|
97
97
|
"aria-checked": S.value === !0 ? "mixed" : y.value === !0 ? "true" : "false"
|
|
98
98
|
};
|
|
99
|
-
return t.disable === !0 && (
|
|
99
|
+
return t.disable === !0 && (V["aria-disabled"] = "true"), V;
|
|
100
100
|
});
|
|
101
|
-
function L(
|
|
102
|
-
|
|
101
|
+
function L(V) {
|
|
102
|
+
V !== void 0 && (ne(V), v(V)), t.disable !== !0 && d("update:modelValue", H(), V);
|
|
103
103
|
}
|
|
104
104
|
function H() {
|
|
105
105
|
if (k.value === !0) {
|
|
106
106
|
if (y.value === !0) {
|
|
107
|
-
const
|
|
108
|
-
return
|
|
107
|
+
const V = t.modelValue.slice();
|
|
108
|
+
return V.splice(s.value, 1), V;
|
|
109
109
|
}
|
|
110
110
|
return t.modelValue.concat([t.val]);
|
|
111
111
|
}
|
|
@@ -119,35 +119,35 @@ function Vo(e, l) {
|
|
|
119
119
|
return t.toggleOrder !== "ft" ? t.trueValue : t.falseValue;
|
|
120
120
|
return t.indeterminateValue;
|
|
121
121
|
}
|
|
122
|
-
function le(
|
|
123
|
-
(
|
|
122
|
+
function le(V) {
|
|
123
|
+
(V.keyCode === 13 || V.keyCode === 32) && ne(V);
|
|
124
124
|
}
|
|
125
|
-
function W(
|
|
126
|
-
(
|
|
125
|
+
function W(V) {
|
|
126
|
+
(V.keyCode === 13 || V.keyCode === 32) && L(V);
|
|
127
127
|
}
|
|
128
128
|
const oe = l(y, S);
|
|
129
129
|
return Object.assign(u, { toggle: L }), () => {
|
|
130
|
-
const
|
|
130
|
+
const V = oe();
|
|
131
131
|
t.disable !== !0 && Y(
|
|
132
|
-
|
|
132
|
+
V,
|
|
133
133
|
"unshift",
|
|
134
134
|
` q-${e}__native absolute q-ma-none q-pa-none`
|
|
135
135
|
);
|
|
136
136
|
const X = [
|
|
137
|
-
|
|
137
|
+
c("div", {
|
|
138
138
|
class: _.value,
|
|
139
139
|
style: C.value,
|
|
140
140
|
"aria-hidden": "true"
|
|
141
|
-
},
|
|
141
|
+
}, V)
|
|
142
142
|
];
|
|
143
|
-
|
|
144
|
-
const ue = t.label !== void 0 ? sl(n.default, [t.label]) :
|
|
143
|
+
x.value !== null && X.push(x.value);
|
|
144
|
+
const ue = t.label !== void 0 ? sl(n.default, [t.label]) : be(n.default);
|
|
145
145
|
return ue !== void 0 && X.push(
|
|
146
|
-
|
|
146
|
+
c("div", {
|
|
147
147
|
class: `q-${e}__label q-anchor--skip`
|
|
148
148
|
}, ue)
|
|
149
|
-
),
|
|
150
|
-
ref:
|
|
149
|
+
), c("div", {
|
|
150
|
+
ref: b,
|
|
151
151
|
class: j.value,
|
|
152
152
|
...R.value,
|
|
153
153
|
onClick: L,
|
|
@@ -156,20 +156,20 @@ function Vo(e, l) {
|
|
|
156
156
|
}, X);
|
|
157
157
|
};
|
|
158
158
|
}
|
|
159
|
-
const _o = () =>
|
|
159
|
+
const _o = () => c("div", {
|
|
160
160
|
key: "svg",
|
|
161
161
|
class: "q-checkbox__bg absolute"
|
|
162
162
|
}, [
|
|
163
|
-
|
|
163
|
+
c("svg", {
|
|
164
164
|
class: "q-checkbox__svg fit absolute-full",
|
|
165
165
|
viewBox: "0 0 24 24"
|
|
166
166
|
}, [
|
|
167
|
-
|
|
167
|
+
c("path", {
|
|
168
168
|
class: "q-checkbox__truthy",
|
|
169
169
|
fill: "none",
|
|
170
170
|
d: "M1.73,12.91 8.1,19.28 22.79,4.59"
|
|
171
171
|
}),
|
|
172
|
-
|
|
172
|
+
c("path", {
|
|
173
173
|
class: "q-checkbox__indet",
|
|
174
174
|
d: "M4,14H20V10H4"
|
|
175
175
|
})
|
|
@@ -177,26 +177,26 @@ const _o = () => s("div", {
|
|
|
177
177
|
]), Ao = ye({
|
|
178
178
|
name: "QCheckbox",
|
|
179
179
|
props: qo,
|
|
180
|
-
emits:
|
|
180
|
+
emits: Vo,
|
|
181
181
|
setup(e) {
|
|
182
182
|
const l = _o();
|
|
183
|
-
function t(n,
|
|
183
|
+
function t(n, d) {
|
|
184
184
|
const u = r(
|
|
185
|
-
() => (n.value === !0 ? e.checkedIcon :
|
|
185
|
+
() => (n.value === !0 ? e.checkedIcon : d.value === !0 ? e.indeterminateIcon : e.uncheckedIcon) || null
|
|
186
186
|
);
|
|
187
187
|
return () => u.value !== null ? [
|
|
188
|
-
|
|
188
|
+
c("div", {
|
|
189
189
|
key: "icon",
|
|
190
190
|
class: "q-checkbox__icon-container absolute-full flex flex-center no-wrap"
|
|
191
191
|
}, [
|
|
192
|
-
|
|
192
|
+
c(_e, {
|
|
193
193
|
class: "q-checkbox__icon",
|
|
194
194
|
name: u.value
|
|
195
195
|
})
|
|
196
196
|
])
|
|
197
197
|
] : [l];
|
|
198
198
|
}
|
|
199
|
-
return
|
|
199
|
+
return xo("checkbox", t);
|
|
200
200
|
}
|
|
201
201
|
}), it = ye({
|
|
202
202
|
name: "QItemSection",
|
|
@@ -211,7 +211,7 @@ const _o = () => s("div", {
|
|
|
211
211
|
const t = r(
|
|
212
212
|
() => `q-item__section column q-item__section--${e.avatar === !0 || e.side === !0 || e.thumbnail === !0 ? "side" : "main"}` + (e.top === !0 ? " q-item__section--top justify-start" : " justify-center") + (e.avatar === !0 ? " q-item__section--avatar" : "") + (e.thumbnail === !0 ? " q-item__section--thumbnail" : "") + (e.noWrap === !0 ? " q-item__section--nowrap" : "")
|
|
213
213
|
);
|
|
214
|
-
return () =>
|
|
214
|
+
return () => c("div", { class: t.value }, be(l.default));
|
|
215
215
|
}
|
|
216
216
|
}), vl = ye({
|
|
217
217
|
name: "QItemLabel",
|
|
@@ -224,16 +224,16 @@ const _o = () => s("div", {
|
|
|
224
224
|
setup(e, { slots: l }) {
|
|
225
225
|
const t = r(() => parseInt(e.lines, 10)), n = r(
|
|
226
226
|
() => "q-item__label" + (e.overline === !0 ? " q-item__label--overline text-overline" : "") + (e.caption === !0 ? " q-item__label--caption text-caption" : "") + (e.header === !0 ? " q-item__label--header" : "") + (t.value === 1 ? " ellipsis" : "")
|
|
227
|
-
),
|
|
227
|
+
), d = r(() => e.lines !== void 0 && t.value > 1 ? {
|
|
228
228
|
overflow: "hidden",
|
|
229
229
|
display: "-webkit-box",
|
|
230
230
|
"-webkit-box-orient": "vertical",
|
|
231
231
|
"-webkit-line-clamp": t.value
|
|
232
232
|
} : null);
|
|
233
|
-
return () =>
|
|
234
|
-
style:
|
|
233
|
+
return () => c("div", {
|
|
234
|
+
style: d.value,
|
|
235
235
|
class: n.value
|
|
236
|
-
},
|
|
236
|
+
}, be(l.default));
|
|
237
237
|
}
|
|
238
238
|
}), ml = ye({
|
|
239
239
|
name: "QItem",
|
|
@@ -257,43 +257,43 @@ const _o = () => s("div", {
|
|
|
257
257
|
},
|
|
258
258
|
emits: ["click", "keyup"],
|
|
259
259
|
setup(e, { slots: l, emit: t }) {
|
|
260
|
-
const { proxy: { $q: n } } = se(),
|
|
260
|
+
const { proxy: { $q: n } } = se(), d = st(e, n), { hasLink: u, linkAttrs: a, linkClass: p, linkTag: b, navigateOnClick: x } = Kl(), v = O(null), C = O(null), k = r(
|
|
261
261
|
() => e.clickable === !0 || u.value === !0 || e.tag === "label"
|
|
262
|
-
),
|
|
262
|
+
), s = r(
|
|
263
263
|
() => e.disable !== !0 && k.value === !0
|
|
264
264
|
), y = r(
|
|
265
|
-
() => "q-item q-item-type row no-wrap" + (e.dense === !0 ? " q-item--dense" : "") + (
|
|
265
|
+
() => "q-item q-item-type row no-wrap" + (e.dense === !0 ? " q-item--dense" : "") + (d.value === !0 ? " q-item--dark" : "") + (u.value === !0 && e.active === null ? p.value : e.active === !0 ? ` q-item--active${e.activeClass !== void 0 ? ` ${e.activeClass}` : ""}` : "") + (e.disable === !0 ? " disabled" : "") + (s.value === !0 ? " q-item--clickable q-link cursor-pointer " + (e.manualFocus === !0 ? "q-manual-focusable" : "q-focusable q-hoverable") + (e.focused === !0 ? " q-manual-focusable--focused" : "") : "")
|
|
266
266
|
), q = r(() => e.insetLevel === void 0 ? null : {
|
|
267
267
|
["padding" + (n.lang.rtl === !0 ? "Right" : "Left")]: 16 + e.insetLevel * 56 + "px"
|
|
268
268
|
});
|
|
269
269
|
function S(_) {
|
|
270
|
-
|
|
270
|
+
s.value === !0 && (C.value !== null && _.qAvoidFocus !== !0 && (_.qKeyEvent !== !0 && document.activeElement === v.value ? C.value.focus() : document.activeElement === C.value && v.value.focus()), x(_));
|
|
271
271
|
}
|
|
272
272
|
function $(_) {
|
|
273
|
-
if (
|
|
273
|
+
if (s.value === !0 && cl(_, [13, 32]) === !0) {
|
|
274
274
|
ne(_), _.qKeyEvent = !0;
|
|
275
275
|
const M = new MouseEvent("click", _);
|
|
276
|
-
M.qKeyEvent = !0,
|
|
276
|
+
M.qKeyEvent = !0, v.value.dispatchEvent(M);
|
|
277
277
|
}
|
|
278
278
|
t("keyup", _);
|
|
279
279
|
}
|
|
280
280
|
function j() {
|
|
281
281
|
const _ = Nl(l.default, []);
|
|
282
|
-
return
|
|
283
|
-
|
|
282
|
+
return s.value === !0 && _.unshift(
|
|
283
|
+
c("div", { class: "q-focus-helper", tabindex: -1, ref: C })
|
|
284
284
|
), _;
|
|
285
285
|
}
|
|
286
286
|
return () => {
|
|
287
287
|
const _ = {
|
|
288
|
-
ref:
|
|
288
|
+
ref: v,
|
|
289
289
|
class: y.value,
|
|
290
290
|
style: q.value,
|
|
291
291
|
role: "listitem",
|
|
292
292
|
onClick: S,
|
|
293
293
|
onKeyup: $
|
|
294
294
|
};
|
|
295
|
-
return
|
|
296
|
-
|
|
295
|
+
return s.value === !0 ? (_.tabindex = e.tabindex || "0", Object.assign(_, a.value)) : k.value === !0 && (_["aria-disabled"] = "true"), c(
|
|
296
|
+
b.value,
|
|
297
297
|
_,
|
|
298
298
|
j()
|
|
299
299
|
);
|
|
@@ -306,12 +306,12 @@ function Bo() {
|
|
|
306
306
|
attributes: O({})
|
|
307
307
|
};
|
|
308
308
|
function n() {
|
|
309
|
-
const
|
|
309
|
+
const d = {}, u = {};
|
|
310
310
|
for (const a in e)
|
|
311
|
-
a !== "class" && a !== "style" && jt.test(a) === !1 && (
|
|
311
|
+
a !== "class" && a !== "style" && jt.test(a) === !1 && (d[a] = e[a]);
|
|
312
312
|
for (const a in l.props)
|
|
313
313
|
jt.test(a) === !0 && (u[a] = l.props[a]);
|
|
314
|
-
t.attributes.value =
|
|
314
|
+
t.attributes.value = d, t.listeners.value = u;
|
|
315
315
|
}
|
|
316
316
|
return ol(n), n(), t;
|
|
317
317
|
}
|
|
@@ -319,13 +319,13 @@ const Eo = "_q_fo_";
|
|
|
319
319
|
function zo({ validate: e, resetValidation: l, requiresQForm: t }) {
|
|
320
320
|
const n = Ol(Eo, !1);
|
|
321
321
|
if (n !== !1) {
|
|
322
|
-
const { props:
|
|
323
|
-
Object.assign(u, { validate: e, resetValidation: l }), G(() =>
|
|
322
|
+
const { props: d, proxy: u } = se();
|
|
323
|
+
Object.assign(u, { validate: e, resetValidation: l }), G(() => d.disable, (a) => {
|
|
324
324
|
a === !0 ? (typeof l == "function" && l(), n.unbindComponent(u)) : n.bindComponent(u);
|
|
325
325
|
}), nl(() => {
|
|
326
|
-
|
|
326
|
+
d.disable !== !0 && n.bindComponent(u);
|
|
327
327
|
}), Ae(() => {
|
|
328
|
-
|
|
328
|
+
d.disable !== !0 && n.unbindComponent(u);
|
|
329
329
|
});
|
|
330
330
|
} else t === !0 && console.error("Parent QForm not found on useFormChild()!");
|
|
331
331
|
}
|
|
@@ -353,15 +353,15 @@ const Kt = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, Nt = /^#[0-9a-fA-F]{4}([0-9a-fA
|
|
|
353
353
|
};
|
|
354
354
|
function gl(e, l = 250, t) {
|
|
355
355
|
let n = null;
|
|
356
|
-
function
|
|
356
|
+
function d() {
|
|
357
357
|
const u = arguments, a = () => {
|
|
358
358
|
n = null, e.apply(this, u);
|
|
359
359
|
};
|
|
360
360
|
n !== null ? clearTimeout(n) : t === !0 && e.apply(this, u), n = setTimeout(a, l);
|
|
361
361
|
}
|
|
362
|
-
return
|
|
362
|
+
return d.cancel = () => {
|
|
363
363
|
n !== null && clearTimeout(n);
|
|
364
|
-
},
|
|
364
|
+
}, d;
|
|
365
365
|
}
|
|
366
366
|
const Ro = [!0, !1, "ondemand"], Fo = {
|
|
367
367
|
modelValue: {},
|
|
@@ -381,36 +381,36 @@ const Ro = [!0, !1, "ondemand"], Fo = {
|
|
|
381
381
|
}
|
|
382
382
|
};
|
|
383
383
|
function Io(e, l) {
|
|
384
|
-
const { props: t, proxy: n } = se(),
|
|
384
|
+
const { props: t, proxy: n } = se(), d = O(!1), u = O(null), a = O(!1);
|
|
385
385
|
zo({ validate: q, resetValidation: y });
|
|
386
|
-
let
|
|
387
|
-
const
|
|
386
|
+
let p = 0, b;
|
|
387
|
+
const x = r(
|
|
388
388
|
() => t.rules !== void 0 && t.rules !== null && t.rules.length !== 0
|
|
389
|
-
),
|
|
390
|
-
() => t.error === !0 ||
|
|
389
|
+
), v = r(() => t.disable !== !0 && x.value === !0 && l.value === !1), C = r(
|
|
390
|
+
() => t.error === !0 || d.value === !0
|
|
391
391
|
), k = r(() => typeof t.errorMessage == "string" && t.errorMessage.length !== 0 ? t.errorMessage : u.value);
|
|
392
392
|
G(() => t.modelValue, () => {
|
|
393
|
-
a.value = !0,
|
|
393
|
+
a.value = !0, v.value === !0 && t.lazyRules === !1 && S();
|
|
394
394
|
});
|
|
395
|
-
function
|
|
396
|
-
t.lazyRules !== "ondemand" &&
|
|
395
|
+
function s() {
|
|
396
|
+
t.lazyRules !== "ondemand" && v.value === !0 && a.value === !0 && S();
|
|
397
397
|
}
|
|
398
398
|
G(() => t.reactiveRules, ($) => {
|
|
399
|
-
$ === !0 ?
|
|
400
|
-
}, { immediate: !0 }), G(() => t.lazyRules,
|
|
401
|
-
$ === !0 ? a.value = !0 :
|
|
399
|
+
$ === !0 ? b === void 0 && (b = G(() => t.rules, s, { immediate: !0, deep: !0 })) : b !== void 0 && (b(), b = void 0);
|
|
400
|
+
}, { immediate: !0 }), G(() => t.lazyRules, s), G(e, ($) => {
|
|
401
|
+
$ === !0 ? a.value = !0 : v.value === !0 && t.lazyRules !== "ondemand" && S();
|
|
402
402
|
});
|
|
403
403
|
function y() {
|
|
404
|
-
|
|
404
|
+
p++, l.value = !1, a.value = !1, d.value = !1, u.value = null, S.cancel();
|
|
405
405
|
}
|
|
406
406
|
function q($ = t.modelValue) {
|
|
407
|
-
if (t.disable === !0 ||
|
|
407
|
+
if (t.disable === !0 || x.value === !1)
|
|
408
408
|
return !0;
|
|
409
|
-
const j = ++
|
|
409
|
+
const j = ++p, _ = l.value !== !0 ? () => {
|
|
410
410
|
a.value = !0;
|
|
411
411
|
} : () => {
|
|
412
412
|
}, M = (R, L) => {
|
|
413
|
-
R === !0 && _(),
|
|
413
|
+
R === !0 && _(), d.value = R, u.value = L || null, l.value = !1;
|
|
414
414
|
}, Y = [];
|
|
415
415
|
for (let R = 0; R < t.rules.length; R++) {
|
|
416
416
|
const L = t.rules[R];
|
|
@@ -422,19 +422,19 @@ function Io(e, l) {
|
|
|
422
422
|
return Y.length === 0 ? (M(!1), !0) : (l.value = !0, Promise.all(Y).then(
|
|
423
423
|
(R) => {
|
|
424
424
|
if (R === void 0 || Array.isArray(R) === !1 || R.length === 0)
|
|
425
|
-
return j ===
|
|
425
|
+
return j === p && M(!1), !0;
|
|
426
426
|
const L = R.find((H) => H === !1 || typeof H == "string");
|
|
427
|
-
return j ===
|
|
427
|
+
return j === p && M(L !== void 0, L), L === void 0;
|
|
428
428
|
},
|
|
429
|
-
(R) => (j ===
|
|
429
|
+
(R) => (j === p && (console.error(R), M(!0)), !1)
|
|
430
430
|
));
|
|
431
431
|
}
|
|
432
432
|
const S = gl(q, 0);
|
|
433
433
|
return Ae(() => {
|
|
434
|
-
|
|
435
|
-
}), Object.assign(n, { resetValidation: y, validate: q }),
|
|
434
|
+
b == null || b(), S.cancel();
|
|
435
|
+
}), Object.assign(n, { resetValidation: y, validate: q }), bo(n, "hasError", () => C.value), {
|
|
436
436
|
isDirtyModel: a,
|
|
437
|
-
hasRules:
|
|
437
|
+
hasRules: x,
|
|
438
438
|
hasError: C,
|
|
439
439
|
errorMessage: k,
|
|
440
440
|
validate: q,
|
|
@@ -479,8 +479,8 @@ const To = {
|
|
|
479
479
|
...To,
|
|
480
480
|
maxlength: [Number, String]
|
|
481
481
|
}, hl = ["update:modelValue", "clear", "focus", "blur"];
|
|
482
|
-
function
|
|
483
|
-
const { props: n, proxy:
|
|
482
|
+
function pl({ requiredForAttr: e = !0, tagProp: l, changeEvent: t = !1 } = {}) {
|
|
483
|
+
const { props: n, proxy: d } = se(), u = st(n, d.$q), a = lo({
|
|
484
484
|
required: e,
|
|
485
485
|
getValue: () => n.for
|
|
486
486
|
});
|
|
@@ -520,9 +520,9 @@ function bl({ requiredForAttr: e = !0, tagProp: l, changeEvent: t = !1 } = {}) {
|
|
|
520
520
|
*/
|
|
521
521
|
};
|
|
522
522
|
}
|
|
523
|
-
function
|
|
524
|
-
const { props: l, emit: t, slots: n, attrs:
|
|
525
|
-
let
|
|
523
|
+
function bl(e) {
|
|
524
|
+
const { props: l, emit: t, slots: n, attrs: d, proxy: u } = se(), { $q: a } = u;
|
|
525
|
+
let p = null;
|
|
526
526
|
e.hasValue === void 0 && (e.hasValue = r(() => kt(l.modelValue))), e.emitValue === void 0 && (e.emitValue = (h) => {
|
|
527
527
|
t("update:modelValue", h);
|
|
528
528
|
}), e.controlEvents === void 0 && (e.controlEvents = {
|
|
@@ -540,26 +540,26 @@ function pl(e) {
|
|
|
540
540
|
}
|
|
541
541
|
}));
|
|
542
542
|
const {
|
|
543
|
-
isDirtyModel:
|
|
544
|
-
hasRules:
|
|
545
|
-
hasError:
|
|
543
|
+
isDirtyModel: b,
|
|
544
|
+
hasRules: x,
|
|
545
|
+
hasError: v,
|
|
546
546
|
errorMessage: C,
|
|
547
547
|
resetValidation: k
|
|
548
|
-
} = Io(e.focused, e.innerLoading),
|
|
549
|
-
() => l.bottomSlots === !0 || l.hint !== void 0 ||
|
|
548
|
+
} = Io(e.focused, e.innerLoading), s = e.floatingLabel !== void 0 ? r(() => l.stackLabel === !0 || e.focused.value === !0 || e.floatingLabel.value === !0) : r(() => l.stackLabel === !0 || e.focused.value === !0 || e.hasValue.value === !0), y = r(
|
|
549
|
+
() => l.bottomSlots === !0 || l.hint !== void 0 || x.value === !0 || l.counter === !0 || l.error !== null
|
|
550
550
|
), q = r(() => l.filled === !0 ? "filled" : l.outlined === !0 ? "outlined" : l.borderless === !0 ? "borderless" : l.standout ? "standout" : "standard"), S = r(
|
|
551
|
-
() => `q-field row no-wrap items-start q-field--${q.value}` + (e.fieldClass !== void 0 ? ` ${e.fieldClass.value}` : "") + (l.rounded === !0 ? " q-field--rounded" : "") + (l.square === !0 ? " q-field--square" : "") + (
|
|
551
|
+
() => `q-field row no-wrap items-start q-field--${q.value}` + (e.fieldClass !== void 0 ? ` ${e.fieldClass.value}` : "") + (l.rounded === !0 ? " q-field--rounded" : "") + (l.square === !0 ? " q-field--square" : "") + (s.value === !0 ? " q-field--float" : "") + (j.value === !0 ? " q-field--labeled" : "") + (l.dense === !0 ? " q-field--dense" : "") + (l.itemAligned === !0 ? " q-field--item-aligned q-item-type" : "") + (e.isDark.value === !0 ? " q-field--dark" : "") + (e.getControl === void 0 ? " q-field--auto-height" : "") + (e.focused.value === !0 ? " q-field--focused" : "") + (v.value === !0 ? " q-field--error" : "") + (v.value === !0 || e.focused.value === !0 ? " q-field--highlighted" : "") + (l.hideBottomSpace !== !0 && y.value === !0 ? " q-field--with-bottom" : "") + (l.disable === !0 ? " q-field--disabled" : l.readonly === !0 ? " q-field--readonly" : "")
|
|
552
552
|
), $ = r(
|
|
553
|
-
() => "q-field__control relative-position row no-wrap" + (l.bgColor !== void 0 ? ` bg-${l.bgColor}` : "") + (
|
|
553
|
+
() => "q-field__control relative-position row no-wrap" + (l.bgColor !== void 0 ? ` bg-${l.bgColor}` : "") + (v.value === !0 ? " text-negative" : typeof l.standout == "string" && l.standout.length !== 0 && e.focused.value === !0 ? ` ${l.standout}` : l.color !== void 0 ? ` text-${l.color}` : "")
|
|
554
554
|
), j = r(
|
|
555
555
|
() => l.labelSlot === !0 || l.label !== void 0
|
|
556
556
|
), _ = r(
|
|
557
|
-
() => "q-field__label no-pointer-events absolute ellipsis" + (l.labelColor !== void 0 &&
|
|
557
|
+
() => "q-field__label no-pointer-events absolute ellipsis" + (l.labelColor !== void 0 && v.value !== !0 ? ` text-${l.labelColor}` : "")
|
|
558
558
|
), M = r(() => ({
|
|
559
559
|
id: e.targetUid.value,
|
|
560
560
|
editable: e.editable.value,
|
|
561
561
|
focused: e.focused.value,
|
|
562
|
-
floatingLabel:
|
|
562
|
+
floatingLabel: s.value,
|
|
563
563
|
modelValue: l.modelValue,
|
|
564
564
|
emitValue: e.emitValue
|
|
565
565
|
})), Y = r(() => {
|
|
@@ -581,59 +581,59 @@ function pl(e) {
|
|
|
581
581
|
h !== null && e.rootRef.value.contains(h) && h.blur();
|
|
582
582
|
}
|
|
583
583
|
function le(h) {
|
|
584
|
-
|
|
584
|
+
p !== null && (clearTimeout(p), p = null), e.editable.value === !0 && e.focused.value === !1 && (e.focused.value = !0, t("focus", h));
|
|
585
585
|
}
|
|
586
586
|
function W(h, A) {
|
|
587
|
-
|
|
588
|
-
|
|
587
|
+
p !== null && clearTimeout(p), p = setTimeout(() => {
|
|
588
|
+
p = null, !(document.hasFocus() === !0 && (e.hasPopupOpen === !0 || e.controlRef === void 0 || e.controlRef.value === null || e.controlRef.value.contains(document.activeElement) !== !1)) && (e.focused.value === !0 && (e.focused.value = !1, t("blur", h)), A == null || A());
|
|
589
589
|
});
|
|
590
590
|
}
|
|
591
591
|
function oe(h) {
|
|
592
592
|
var A;
|
|
593
593
|
ne(h), a.platform.is.mobile !== !0 ? (((A = e.targetRef) == null ? void 0 : A.value) || e.rootRef.value).focus() : e.rootRef.value.contains(document.activeElement) === !0 && document.activeElement.blur(), l.type === "file" && (e.inputRef.value.value = null), t("update:modelValue", null), e.changeEvent === !0 && t("change", null), t("clear", l.modelValue), ve(() => {
|
|
594
|
-
const Z =
|
|
595
|
-
k(),
|
|
594
|
+
const Z = b.value;
|
|
595
|
+
k(), b.value = Z;
|
|
596
596
|
});
|
|
597
597
|
}
|
|
598
|
-
function
|
|
598
|
+
function V(h) {
|
|
599
599
|
[13, 32].includes(h.keyCode) && oe(h);
|
|
600
600
|
}
|
|
601
601
|
function X() {
|
|
602
602
|
const h = [];
|
|
603
603
|
return n.prepend !== void 0 && h.push(
|
|
604
|
-
|
|
604
|
+
c("div", {
|
|
605
605
|
class: "q-field__prepend q-field__marginal row no-wrap items-center",
|
|
606
606
|
key: "prepend",
|
|
607
607
|
onClick: he
|
|
608
608
|
}, n.prepend())
|
|
609
609
|
), h.push(
|
|
610
|
-
|
|
610
|
+
c("div", {
|
|
611
611
|
class: "q-field__control-container col relative-position row no-wrap q-anchor--skip"
|
|
612
612
|
}, ue())
|
|
613
|
-
),
|
|
613
|
+
), v.value === !0 && l.noErrorIcon === !1 && h.push(
|
|
614
614
|
U("error", [
|
|
615
|
-
|
|
615
|
+
c(_e, { name: a.iconSet.field.error, color: "negative" })
|
|
616
616
|
])
|
|
617
617
|
), l.loading === !0 || e.innerLoading.value === !0 ? h.push(
|
|
618
618
|
U(
|
|
619
619
|
"inner-loading-append",
|
|
620
|
-
n.loading !== void 0 ? n.loading() : [
|
|
620
|
+
n.loading !== void 0 ? n.loading() : [c(Ql, { color: l.color })]
|
|
621
621
|
)
|
|
622
622
|
) : l.clearable === !0 && e.hasValue.value === !0 && e.editable.value === !0 && h.push(
|
|
623
623
|
U("inner-clearable-append", [
|
|
624
|
-
|
|
624
|
+
c(_e, {
|
|
625
625
|
class: "q-field__focusable-action",
|
|
626
626
|
name: l.clearIcon || a.iconSet.field.clear,
|
|
627
627
|
tabindex: 0,
|
|
628
628
|
role: "button",
|
|
629
629
|
"aria-hidden": "false",
|
|
630
630
|
"aria-label": a.lang.label.clear,
|
|
631
|
-
onKeyup:
|
|
631
|
+
onKeyup: V,
|
|
632
632
|
onClick: oe
|
|
633
633
|
})
|
|
634
634
|
])
|
|
635
635
|
), n.append !== void 0 && h.push(
|
|
636
|
-
|
|
636
|
+
c("div", {
|
|
637
637
|
class: "q-field__append q-field__marginal row no-wrap items-center",
|
|
638
638
|
key: "append",
|
|
639
639
|
onClick: he
|
|
@@ -647,17 +647,17 @@ function pl(e) {
|
|
|
647
647
|
function ue() {
|
|
648
648
|
const h = [];
|
|
649
649
|
return l.prefix !== void 0 && l.prefix !== null && h.push(
|
|
650
|
-
|
|
650
|
+
c("div", {
|
|
651
651
|
class: "q-field__prefix no-pointer-events row items-center"
|
|
652
652
|
}, l.prefix)
|
|
653
653
|
), e.getShadowControl !== void 0 && e.hasShadow.value === !0 && h.push(
|
|
654
654
|
e.getShadowControl()
|
|
655
655
|
), j.value === !0 && h.push(
|
|
656
|
-
|
|
656
|
+
c("div", {
|
|
657
657
|
class: _.value
|
|
658
|
-
},
|
|
658
|
+
}, be(n.label, l.label))
|
|
659
659
|
), e.getControl !== void 0 ? h.push(e.getControl()) : n.rawControl !== void 0 ? h.push(n.rawControl()) : n.control !== void 0 && h.push(
|
|
660
|
-
|
|
660
|
+
c("div", {
|
|
661
661
|
ref: e.targetRef,
|
|
662
662
|
class: "q-field__native row",
|
|
663
663
|
tabindex: -1,
|
|
@@ -665,32 +665,32 @@ function pl(e) {
|
|
|
665
665
|
"data-autofocus": l.autofocus === !0 || void 0
|
|
666
666
|
}, n.control(M.value))
|
|
667
667
|
), l.suffix !== void 0 && l.suffix !== null && h.push(
|
|
668
|
-
|
|
668
|
+
c("div", {
|
|
669
669
|
class: "q-field__suffix no-pointer-events row items-center"
|
|
670
670
|
}, l.suffix)
|
|
671
|
-
), h.concat(
|
|
671
|
+
), h.concat(be(n.default));
|
|
672
672
|
}
|
|
673
673
|
function J() {
|
|
674
674
|
let h, A;
|
|
675
|
-
|
|
675
|
+
v.value === !0 ? C.value !== null ? (h = [c("div", { role: "alert" }, C.value)], A = `q--slot-error-${C.value}`) : (h = be(n.error), A = "q--slot-error") : (l.hideHint !== !0 || e.focused.value === !0) && (l.hint !== void 0 ? (h = [c("div", l.hint)], A = `q--slot-hint-${l.hint}`) : (h = be(n.hint), A = "q--slot-hint"));
|
|
676
676
|
const Z = l.counter === !0 || n.counter !== void 0;
|
|
677
677
|
if (l.hideBottomSpace === !0 && Z === !1 && h === void 0) return;
|
|
678
|
-
const i =
|
|
678
|
+
const i = c("div", {
|
|
679
679
|
key: A,
|
|
680
680
|
class: "q-field__messages col"
|
|
681
681
|
}, h);
|
|
682
|
-
return
|
|
682
|
+
return c("div", {
|
|
683
683
|
class: "q-field__bottom row items-start q-field__bottom--" + (l.hideBottomSpace !== !0 ? "animated" : "stale"),
|
|
684
684
|
onClick: he
|
|
685
685
|
}, [
|
|
686
|
-
l.hideBottomSpace === !0 ? i :
|
|
687
|
-
Z === !0 ?
|
|
686
|
+
l.hideBottomSpace === !0 ? i : c(Ct, { name: "q-transition--field-message" }, () => i),
|
|
687
|
+
Z === !0 ? c("div", {
|
|
688
688
|
class: "q-field__counter"
|
|
689
689
|
}, n.counter !== void 0 ? n.counter() : e.computedCounter.value) : null
|
|
690
690
|
]);
|
|
691
691
|
}
|
|
692
692
|
function U(h, A) {
|
|
693
|
-
return A === null ? null :
|
|
693
|
+
return A === null ? null : c("div", {
|
|
694
694
|
key: h,
|
|
695
695
|
class: "q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"
|
|
696
696
|
}, A);
|
|
@@ -703,30 +703,30 @@ function pl(e) {
|
|
|
703
703
|
}), l.autofocus === !0 && nl(() => {
|
|
704
704
|
u.focus();
|
|
705
705
|
}), Ae(() => {
|
|
706
|
-
|
|
706
|
+
p !== null && clearTimeout(p);
|
|
707
707
|
}), Object.assign(u, { focus: L, blur: H }), function() {
|
|
708
708
|
const A = e.getControl === void 0 && n.control === void 0 ? {
|
|
709
709
|
...e.splitAttrs.attributes.value,
|
|
710
710
|
"data-autofocus": l.autofocus === !0 || void 0,
|
|
711
711
|
...Y.value
|
|
712
712
|
} : Y.value;
|
|
713
|
-
return
|
|
713
|
+
return c(e.tag.value, {
|
|
714
714
|
ref: e.rootRef,
|
|
715
715
|
class: [
|
|
716
716
|
S.value,
|
|
717
|
-
|
|
717
|
+
d.class
|
|
718
718
|
],
|
|
719
|
-
style:
|
|
719
|
+
style: d.style,
|
|
720
720
|
...A
|
|
721
721
|
}, [
|
|
722
|
-
n.before !== void 0 ?
|
|
722
|
+
n.before !== void 0 ? c("div", {
|
|
723
723
|
class: "q-field__before q-field__marginal row no-wrap items-center",
|
|
724
724
|
onClick: he
|
|
725
725
|
}, n.before()) : null,
|
|
726
|
-
|
|
726
|
+
c("div", {
|
|
727
727
|
class: "q-field__inner relative-position col self-stretch"
|
|
728
728
|
}, [
|
|
729
|
-
|
|
729
|
+
c("div", {
|
|
730
730
|
ref: e.controlRef,
|
|
731
731
|
class: $.value,
|
|
732
732
|
tabindex: -1,
|
|
@@ -734,7 +734,7 @@ function pl(e) {
|
|
|
734
734
|
}, X()),
|
|
735
735
|
y.value === !0 ? J() : null
|
|
736
736
|
]),
|
|
737
|
-
n.after !== void 0 ?
|
|
737
|
+
n.after !== void 0 ? c("div", {
|
|
738
738
|
class: "q-field__after q-field__marginal row no-wrap items-center",
|
|
739
739
|
onClick: he
|
|
740
740
|
}, n.after()) : null
|
|
@@ -753,8 +753,8 @@ const Oo = ye({
|
|
|
753
753
|
},
|
|
754
754
|
emits: hl,
|
|
755
755
|
setup() {
|
|
756
|
-
return
|
|
757
|
-
|
|
756
|
+
return bl(
|
|
757
|
+
pl({ tagProp: !0 })
|
|
758
758
|
);
|
|
759
759
|
}
|
|
760
760
|
}), Mo = {
|
|
@@ -798,11 +798,11 @@ const Oo = ye({
|
|
|
798
798
|
},
|
|
799
799
|
emits: ["update:modelValue", "update:selected", "remove", "click"],
|
|
800
800
|
setup(e, { slots: l, emit: t }) {
|
|
801
|
-
const { proxy: { $q: n } } = se(),
|
|
801
|
+
const { proxy: { $q: n } } = se(), d = st(e, n), u = rl(e, Mo), a = r(() => e.selected === !0 || e.icon !== void 0), p = r(() => e.selected === !0 ? e.iconSelected || n.iconSet.chip.selected : e.icon), b = r(() => e.iconRemove || n.iconSet.chip.remove), x = r(
|
|
802
802
|
() => e.disable === !1 && (e.clickable === !0 || e.selected !== null)
|
|
803
|
-
),
|
|
803
|
+
), v = r(() => {
|
|
804
804
|
const S = e.outline === !0 && e.color || e.textColor;
|
|
805
|
-
return "q-chip row inline no-wrap items-center" + (e.outline === !1 && e.color !== void 0 ? ` bg-${e.color}` : "") + (S ? ` text-${S} q-chip--colored` : "") + (e.disable === !0 ? " disabled" : "") + (e.dense === !0 ? " q-chip--dense" : "") + (e.outline === !0 ? " q-chip--outline" : "") + (e.selected === !0 ? " q-chip--selected" : "") + (
|
|
805
|
+
return "q-chip row inline no-wrap items-center" + (e.outline === !1 && e.color !== void 0 ? ` bg-${e.color}` : "") + (S ? ` text-${S} q-chip--colored` : "") + (e.disable === !0 ? " disabled" : "") + (e.dense === !0 ? " q-chip--dense" : "") + (e.outline === !0 ? " q-chip--outline" : "") + (e.selected === !0 ? " q-chip--selected" : "") + (x.value === !0 ? " q-chip--clickable cursor-pointer non-selectable q-hoverable" : "") + (e.square === !0 ? " q-chip--square" : "") + (d.value === !0 ? " q-chip--dark q-dark" : "");
|
|
806
806
|
}), C = r(() => {
|
|
807
807
|
const S = e.disable === !0 ? { tabindex: -1, "aria-disabled": "true" } : { tabindex: e.tabindex || 0 }, $ = {
|
|
808
808
|
...S,
|
|
@@ -813,9 +813,9 @@ const Oo = ye({
|
|
|
813
813
|
return { chip: S, remove: $ };
|
|
814
814
|
});
|
|
815
815
|
function k(S) {
|
|
816
|
-
S.keyCode === 13 &&
|
|
816
|
+
S.keyCode === 13 && s(S);
|
|
817
817
|
}
|
|
818
|
-
function
|
|
818
|
+
function s(S) {
|
|
819
819
|
e.disable || (t("update:selected", !e.selected), t("click", S));
|
|
820
820
|
}
|
|
821
821
|
function y(S) {
|
|
@@ -823,28 +823,28 @@ const Oo = ye({
|
|
|
823
823
|
}
|
|
824
824
|
function q() {
|
|
825
825
|
const S = [];
|
|
826
|
-
|
|
827
|
-
|
|
826
|
+
x.value === !0 && S.push(
|
|
827
|
+
c("div", { class: "q-focus-helper" })
|
|
828
828
|
), a.value === !0 && S.push(
|
|
829
|
-
|
|
829
|
+
c(_e, {
|
|
830
830
|
class: "q-chip__icon q-chip__icon--left",
|
|
831
|
-
name:
|
|
831
|
+
name: p.value
|
|
832
832
|
})
|
|
833
833
|
);
|
|
834
|
-
const $ = e.label !== void 0 ? [
|
|
834
|
+
const $ = e.label !== void 0 ? [c("div", { class: "ellipsis" }, [e.label])] : void 0;
|
|
835
835
|
return S.push(
|
|
836
|
-
|
|
836
|
+
c("div", {
|
|
837
837
|
class: "q-chip__content col row no-wrap items-center q-anchor--skip"
|
|
838
838
|
}, Wl(l.default, $))
|
|
839
839
|
), e.iconRight && S.push(
|
|
840
|
-
|
|
840
|
+
c(_e, {
|
|
841
841
|
class: "q-chip__icon q-chip__icon--right",
|
|
842
842
|
name: e.iconRight
|
|
843
843
|
})
|
|
844
844
|
), e.removable === !0 && S.push(
|
|
845
|
-
|
|
845
|
+
c(_e, {
|
|
846
846
|
class: "q-chip__icon q-chip__icon--remove cursor-pointer",
|
|
847
|
-
name:
|
|
847
|
+
name: b.value,
|
|
848
848
|
...C.value.remove,
|
|
849
849
|
onClick: y,
|
|
850
850
|
onKeyup: y
|
|
@@ -854,13 +854,13 @@ const Oo = ye({
|
|
|
854
854
|
return () => {
|
|
855
855
|
if (e.modelValue === !1) return;
|
|
856
856
|
const S = {
|
|
857
|
-
class:
|
|
857
|
+
class: v.value,
|
|
858
858
|
style: u.value
|
|
859
859
|
};
|
|
860
|
-
return
|
|
860
|
+
return x.value === !0 && Object.assign(
|
|
861
861
|
S,
|
|
862
862
|
C.value.chip,
|
|
863
|
-
{ onClick:
|
|
863
|
+
{ onClick: s, onKeyup: k }
|
|
864
864
|
), Ul(
|
|
865
865
|
"div",
|
|
866
866
|
S,
|
|
@@ -883,18 +883,18 @@ function $o(e, l, t) {
|
|
|
883
883
|
}
|
|
884
884
|
};
|
|
885
885
|
}
|
|
886
|
-
let Ne = 0,
|
|
886
|
+
let Ne = 0, pt, bt, Ue, yt = !1, Ut, Wt, Xt, Ve = null;
|
|
887
887
|
function Ho(e) {
|
|
888
888
|
Po(e) && ne(e);
|
|
889
889
|
}
|
|
890
890
|
function Po(e) {
|
|
891
891
|
if (e.target === document.body || e.target.classList.contains("q-layout__backdrop"))
|
|
892
892
|
return !0;
|
|
893
|
-
const l = Yl(e), t = e.shiftKey && !e.deltaX, n = !t && Math.abs(e.deltaX) <= Math.abs(e.deltaY),
|
|
893
|
+
const l = Yl(e), t = e.shiftKey && !e.deltaX, n = !t && Math.abs(e.deltaX) <= Math.abs(e.deltaY), d = t || n ? e.deltaY : e.deltaX;
|
|
894
894
|
for (let u = 0; u < l.length; u++) {
|
|
895
895
|
const a = l[u];
|
|
896
896
|
if (io(a, n))
|
|
897
|
-
return n ?
|
|
897
|
+
return n ? d < 0 && a.scrollTop === 0 ? !0 : d > 0 && a.scrollTop + a.clientHeight === a.scrollHeight : d < 0 && a.scrollLeft === 0 ? !0 : d > 0 && a.scrollLeft + a.clientWidth === a.scrollWidth;
|
|
898
898
|
}
|
|
899
899
|
return !0;
|
|
900
900
|
}
|
|
@@ -911,24 +911,24 @@ function nt(e) {
|
|
|
911
911
|
function Zt(e) {
|
|
912
912
|
const l = document.body, t = window.visualViewport !== void 0;
|
|
913
913
|
if (e === "add") {
|
|
914
|
-
const { overflowY: n, overflowX:
|
|
915
|
-
|
|
914
|
+
const { overflowY: n, overflowX: d } = window.getComputedStyle(l);
|
|
915
|
+
pt = no(window), bt = uo(window), Ut = l.style.left, Wt = l.style.top, Xt = window.location.href, l.style.left = `-${pt}px`, l.style.top = `-${bt}px`, d !== "hidden" && (d === "scroll" || l.scrollWidth > window.innerWidth) && l.classList.add("q-body--force-scrollbar-x"), n !== "hidden" && (n === "scroll" || l.scrollHeight > window.innerHeight) && l.classList.add("q-body--force-scrollbar-y"), l.classList.add("q-body--prevent-scroll"), document.qScrollPrevented = !0, xe.is.ios === !0 && (t === !0 ? (window.scrollTo(0, 0), window.visualViewport.addEventListener("resize", nt, qe.passiveCapture), window.visualViewport.addEventListener("scroll", nt, qe.passiveCapture), window.scrollTo(0, 0)) : window.addEventListener("scroll", Yt, qe.passiveCapture));
|
|
916
916
|
}
|
|
917
|
-
|
|
917
|
+
xe.is.desktop === !0 && xe.is.mac === !0 && window[`${e}EventListener`]("wheel", Ho, qe.notPassive), e === "remove" && (xe.is.ios === !0 && (t === !0 ? (window.visualViewport.removeEventListener("resize", nt, qe.passiveCapture), window.visualViewport.removeEventListener("scroll", nt, qe.passiveCapture)) : window.removeEventListener("scroll", Yt, qe.passiveCapture)), l.classList.remove("q-body--prevent-scroll"), l.classList.remove("q-body--force-scrollbar-x"), l.classList.remove("q-body--force-scrollbar-y"), document.qScrollPrevented = !1, l.style.left = Ut, l.style.top = Wt, window.location.href === Xt && window.scrollTo(pt, bt), Ue = void 0);
|
|
918
918
|
}
|
|
919
919
|
function Do(e) {
|
|
920
920
|
let l = "add";
|
|
921
921
|
if (e === !0) {
|
|
922
|
-
if (Ne++,
|
|
923
|
-
clearTimeout(
|
|
922
|
+
if (Ne++, Ve !== null) {
|
|
923
|
+
clearTimeout(Ve), Ve = null;
|
|
924
924
|
return;
|
|
925
925
|
}
|
|
926
926
|
if (Ne > 1) return;
|
|
927
927
|
} else {
|
|
928
928
|
if (Ne === 0 || (Ne--, Ne > 0)) return;
|
|
929
|
-
if (l = "remove",
|
|
930
|
-
|
|
931
|
-
Zt(l),
|
|
929
|
+
if (l = "remove", xe.is.ios === !0 && xe.is.nativeMobile === !0) {
|
|
930
|
+
Ve !== null && clearTimeout(Ve), Ve = setTimeout(() => {
|
|
931
|
+
Zt(l), Ve = null;
|
|
932
932
|
}, 100);
|
|
933
933
|
return;
|
|
934
934
|
}
|
|
@@ -994,16 +994,16 @@ const Ko = {
|
|
|
994
994
|
"escapeKey"
|
|
995
995
|
],
|
|
996
996
|
setup(e, { slots: l, emit: t, attrs: n }) {
|
|
997
|
-
const
|
|
998
|
-
let
|
|
997
|
+
const d = se(), u = O(null), a = O(!1), p = O(!1);
|
|
998
|
+
let b = null, x = null, v, C;
|
|
999
999
|
const k = r(
|
|
1000
1000
|
() => e.persistent !== !0 && e.noRouteDismiss !== !0 && e.seamless !== !0
|
|
1001
|
-
), { preventBodyScroll:
|
|
1001
|
+
), { preventBodyScroll: s } = jo(), { registerTimeout: y } = co(), { registerTick: q, removeTick: S } = fo(), { transitionProps: $, transitionStyle: j } = vo(
|
|
1002
1002
|
e,
|
|
1003
1003
|
() => Jt[e.position][0],
|
|
1004
1004
|
() => Jt[e.position][1]
|
|
1005
1005
|
), _ = r(() => j.value + (e.backdropFilter !== void 0 ? `;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}` : "")), { showPortal: M, hidePortal: Y, portalIsAccessible: R, renderPortal: L } = mo(
|
|
1006
|
-
|
|
1006
|
+
d,
|
|
1007
1007
|
u,
|
|
1008
1008
|
z,
|
|
1009
1009
|
"dialog"
|
|
@@ -1016,20 +1016,20 @@ const Ko = {
|
|
|
1016
1016
|
});
|
|
1017
1017
|
$o(a);
|
|
1018
1018
|
const le = r(
|
|
1019
|
-
() => `q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized === !0 ? "maximized" : "minimized"} q-dialog__inner--${e.position} ${Ko[e.position]}` + (
|
|
1020
|
-
), W = r(() => a.value === !0 && e.seamless !== !0), oe = r(() => e.autoClose === !0 ? { onClick: Z } : {}),
|
|
1019
|
+
() => `q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized === !0 ? "maximized" : "minimized"} q-dialog__inner--${e.position} ${Ko[e.position]}` + (p.value === !0 ? " q-dialog__inner--animating" : "") + (e.fullWidth === !0 ? " q-dialog__inner--fullwidth" : "") + (e.fullHeight === !0 ? " q-dialog__inner--fullheight" : "") + (e.square === !0 ? " q-dialog__inner--square" : "")
|
|
1020
|
+
), W = r(() => a.value === !0 && e.seamless !== !0), oe = r(() => e.autoClose === !0 ? { onClick: Z } : {}), V = r(() => [
|
|
1021
1021
|
`q-dialog fullscreen no-pointer-events q-dialog--${W.value === !0 ? "modal" : "seamless"}`,
|
|
1022
1022
|
n.class
|
|
1023
1023
|
]);
|
|
1024
1024
|
G(() => e.maximized, (w) => {
|
|
1025
1025
|
a.value === !0 && A(w);
|
|
1026
1026
|
}), G(W, (w) => {
|
|
1027
|
-
|
|
1027
|
+
s(w), w === !0 ? (yo(m), ho(ce)) : (Pt(m), Ht(ce));
|
|
1028
1028
|
});
|
|
1029
1029
|
function X(w) {
|
|
1030
1030
|
var F;
|
|
1031
|
-
|
|
1032
|
-
if (
|
|
1031
|
+
x = e.noRefocus === !1 && document.activeElement !== null ? document.activeElement : null, A(e.maximized), M(), p.value = !0, e.noFocus !== !0 ? ((F = document.activeElement) == null || F.blur(), q(J)) : S(), y(() => {
|
|
1032
|
+
if (d.proxy.$q.platform.is.ios === !0) {
|
|
1033
1033
|
if (e.seamless !== !0 && document.activeElement) {
|
|
1034
1034
|
const { top: I, bottom: E } = document.activeElement.getBoundingClientRect(), { innerHeight: K } = window, B = window.visualViewport !== void 0 ? window.visualViewport.height : K;
|
|
1035
1035
|
I > 0 && E > B / 2 && (document.scrollingElement.scrollTop = Math.min(
|
|
@@ -1039,12 +1039,12 @@ const Ko = {
|
|
|
1039
1039
|
}
|
|
1040
1040
|
C = !0, u.value.click(), C = !1;
|
|
1041
1041
|
}
|
|
1042
|
-
M(!0),
|
|
1042
|
+
M(!0), p.value = !1, t("show", w);
|
|
1043
1043
|
}, e.transitionDuration);
|
|
1044
1044
|
}
|
|
1045
1045
|
function ue(w) {
|
|
1046
|
-
S(), h(!0),
|
|
1047
|
-
Y(!0),
|
|
1046
|
+
S(), h(!0), p.value = !0, Y(), x !== null && ((((w == null ? void 0 : w.type.indexOf("key")) === 0 ? x.closest('[tabindex]:not([tabindex^="-"])') : void 0) || x).focus(), x = null), y(() => {
|
|
1047
|
+
Y(!0), p.value = !1, t("hide", w);
|
|
1048
1048
|
}, e.transitionDuration);
|
|
1049
1049
|
}
|
|
1050
1050
|
function J(w) {
|
|
@@ -1065,18 +1065,18 @@ const Ko = {
|
|
|
1065
1065
|
function U(w) {
|
|
1066
1066
|
w && typeof w.focus == "function" ? w.focus({ preventScroll: !0 }) : J(), t("shake");
|
|
1067
1067
|
const F = u.value;
|
|
1068
|
-
F !== null && (F.classList.remove("q-animate--scale"), F.classList.add("q-animate--scale"),
|
|
1069
|
-
|
|
1068
|
+
F !== null && (F.classList.remove("q-animate--scale"), F.classList.add("q-animate--scale"), b !== null && clearTimeout(b), b = setTimeout(() => {
|
|
1069
|
+
b = null, u.value !== null && (F.classList.remove("q-animate--scale"), J());
|
|
1070
1070
|
}, 170));
|
|
1071
1071
|
}
|
|
1072
1072
|
function ce() {
|
|
1073
1073
|
e.seamless !== !0 && (e.persistent === !0 || e.noEscDismiss === !0 ? e.maximized !== !0 && e.noShake !== !0 && U() : (t("escapeKey"), H()));
|
|
1074
1074
|
}
|
|
1075
1075
|
function h(w) {
|
|
1076
|
-
|
|
1076
|
+
b !== null && (clearTimeout(b), b = null), (w === !0 || a.value === !0) && (A(!1), e.seamless !== !0 && (s(!1), Pt(m), Ht(ce))), w !== !0 && (x = null);
|
|
1077
1077
|
}
|
|
1078
1078
|
function A(w) {
|
|
1079
|
-
w === !0 ?
|
|
1079
|
+
w === !0 ? v !== !0 && (ut < 1 && document.body.classList.add("q-body--dialog"), ut++, v = !0) : v === !0 && (ut < 2 && document.body.classList.remove("q-body--dialog"), ut--, v = !1);
|
|
1080
1080
|
}
|
|
1081
1081
|
function Z(w) {
|
|
1082
1082
|
C !== !0 && (H(w), t("click", w));
|
|
@@ -1084,45 +1084,45 @@ const Ko = {
|
|
|
1084
1084
|
function i(w) {
|
|
1085
1085
|
e.persistent !== !0 && e.noBackdropDismiss !== !0 ? H(w) : e.noShake !== !0 && U();
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1087
|
+
function m(w) {
|
|
1088
1088
|
e.allowFocusOutside !== !0 && R.value === !0 && Zl(u.value, w.target) !== !0 && J('[tabindex]:not([tabindex="-1"])');
|
|
1089
1089
|
}
|
|
1090
|
-
Object.assign(
|
|
1090
|
+
Object.assign(d.proxy, {
|
|
1091
1091
|
// expose public methods
|
|
1092
1092
|
focus: J,
|
|
1093
1093
|
shake: U,
|
|
1094
1094
|
// private but needed by QSelect
|
|
1095
1095
|
__updateRefocusTarget(w) {
|
|
1096
|
-
|
|
1096
|
+
x = w || null;
|
|
1097
1097
|
}
|
|
1098
1098
|
}), Ae(h);
|
|
1099
1099
|
function z() {
|
|
1100
|
-
return
|
|
1100
|
+
return c("div", {
|
|
1101
1101
|
role: "dialog",
|
|
1102
1102
|
"aria-modal": W.value === !0 ? "true" : "false",
|
|
1103
1103
|
...n,
|
|
1104
|
-
class:
|
|
1104
|
+
class: V.value
|
|
1105
1105
|
}, [
|
|
1106
|
-
|
|
1106
|
+
c(Ct, {
|
|
1107
1107
|
name: "q-transition--fade",
|
|
1108
1108
|
appear: !0
|
|
1109
|
-
}, () => W.value === !0 ?
|
|
1109
|
+
}, () => W.value === !0 ? c("div", {
|
|
1110
1110
|
class: "q-dialog__backdrop fixed-full",
|
|
1111
1111
|
style: _.value,
|
|
1112
1112
|
"aria-hidden": "true",
|
|
1113
1113
|
tabindex: -1,
|
|
1114
1114
|
onClick: i
|
|
1115
1115
|
}) : null),
|
|
1116
|
-
|
|
1116
|
+
c(
|
|
1117
1117
|
Ct,
|
|
1118
1118
|
$.value,
|
|
1119
|
-
() => a.value === !0 ?
|
|
1119
|
+
() => a.value === !0 ? c("div", {
|
|
1120
1120
|
ref: u,
|
|
1121
1121
|
class: le.value,
|
|
1122
1122
|
style: j.value,
|
|
1123
1123
|
tabindex: -1,
|
|
1124
1124
|
...oe.value
|
|
1125
|
-
},
|
|
1125
|
+
}, be(l.default)) : null
|
|
1126
1126
|
)
|
|
1127
1127
|
]);
|
|
1128
1128
|
}
|
|
@@ -1155,8 +1155,8 @@ const re = 1e3, Qo = [
|
|
|
1155
1155
|
if (e === null) return;
|
|
1156
1156
|
e._qOverflowAnimationFrame = void 0;
|
|
1157
1157
|
const t = e.children || [];
|
|
1158
|
-
yl.call(t, (
|
|
1159
|
-
delete
|
|
1158
|
+
yl.call(t, (d) => d.dataset && d.dataset.qVsAnchor !== void 0).forEach((d) => {
|
|
1159
|
+
delete d.dataset.qVsAnchor;
|
|
1160
1160
|
});
|
|
1161
1161
|
const n = t[l];
|
|
1162
1162
|
n != null && n.dataset && (n.dataset.qVsAnchor = "");
|
|
@@ -1165,25 +1165,25 @@ const re = 1e3, Qo = [
|
|
|
1165
1165
|
function $e(e, l) {
|
|
1166
1166
|
return e + l;
|
|
1167
1167
|
}
|
|
1168
|
-
function St(e, l, t, n,
|
|
1169
|
-
const
|
|
1168
|
+
function St(e, l, t, n, d, u, a, p) {
|
|
1169
|
+
const b = e === window ? document.scrollingElement || document.documentElement : e, x = d === !0 ? "offsetWidth" : "offsetHeight", v = {
|
|
1170
1170
|
scrollStart: 0,
|
|
1171
|
-
scrollViewSize: -a -
|
|
1171
|
+
scrollViewSize: -a - p,
|
|
1172
1172
|
scrollMaxSize: 0,
|
|
1173
1173
|
offsetStart: -a,
|
|
1174
|
-
offsetEnd: -
|
|
1174
|
+
offsetEnd: -p
|
|
1175
1175
|
};
|
|
1176
|
-
if (
|
|
1176
|
+
if (d === !0 ? (e === window ? (v.scrollStart = window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, v.scrollViewSize += document.documentElement.clientWidth) : (v.scrollStart = b.scrollLeft, v.scrollViewSize += b.clientWidth), v.scrollMaxSize = b.scrollWidth, u === !0 && (v.scrollStart = (at === !0 ? v.scrollMaxSize - v.scrollViewSize : 0) - v.scrollStart)) : (e === window ? (v.scrollStart = window.pageYOffset || window.scrollY || document.body.scrollTop || 0, v.scrollViewSize += document.documentElement.clientHeight) : (v.scrollStart = b.scrollTop, v.scrollViewSize += b.clientHeight), v.scrollMaxSize = b.scrollHeight), t !== null)
|
|
1177
1177
|
for (let C = t.previousElementSibling; C !== null; C = C.previousElementSibling)
|
|
1178
|
-
C.classList.contains("q-virtual-scroll--skip") === !1 && (
|
|
1178
|
+
C.classList.contains("q-virtual-scroll--skip") === !1 && (v.offsetStart += C[x]);
|
|
1179
1179
|
if (n !== null)
|
|
1180
1180
|
for (let C = n.nextElementSibling; C !== null; C = C.nextElementSibling)
|
|
1181
|
-
C.classList.contains("q-virtual-scroll--skip") === !1 && (
|
|
1181
|
+
C.classList.contains("q-virtual-scroll--skip") === !1 && (v.offsetEnd += C[x]);
|
|
1182
1182
|
if (l !== e) {
|
|
1183
|
-
const C =
|
|
1184
|
-
|
|
1183
|
+
const C = b.getBoundingClientRect(), k = l.getBoundingClientRect();
|
|
1184
|
+
d === !0 ? (v.offsetStart += k.left - C.left, v.offsetEnd -= k.width) : (v.offsetStart += k.top - C.top, v.offsetEnd -= k.height), e !== window && (v.offsetStart += v.scrollStart), v.offsetEnd += v.scrollMaxSize - v.offsetStart;
|
|
1185
1185
|
}
|
|
1186
|
-
return
|
|
1186
|
+
return v;
|
|
1187
1187
|
}
|
|
1188
1188
|
function Gt(e, l, t, n) {
|
|
1189
1189
|
l === "end" && (l = (e === window ? document.body : e)[t === !0 ? "scrollWidth" : "scrollHeight"]), e === window ? t === !0 ? (n === !0 && (l = (at === !0 ? document.body.scrollWidth - document.documentElement.clientWidth : 0) - l), window.scrollTo(l, window.pageYOffset || window.scrollY || document.body.scrollTop || 0)) : window.scrollTo(window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, l) : t === !0 ? (n === !0 && (l = (at === !0 ? e.scrollWidth - e.offsetWidth : 0) - l), e.scrollLeft = l) : e.scrollTop = l;
|
|
@@ -1191,9 +1191,9 @@ function Gt(e, l, t, n) {
|
|
|
1191
1191
|
function Qe(e, l, t, n) {
|
|
1192
1192
|
if (t >= n)
|
|
1193
1193
|
return 0;
|
|
1194
|
-
const
|
|
1195
|
-
let
|
|
1196
|
-
return t % re !== 0 && (
|
|
1194
|
+
const d = l.length, u = Math.floor(t / re), a = Math.floor((n - 1) / re) + 1;
|
|
1195
|
+
let p = e.slice(u, a).reduce($e, 0);
|
|
1196
|
+
return t % re !== 0 && (p -= l.slice(u * re, t).reduce($e, 0)), n % re !== 0 && n !== d && (p -= l.slice(n, a * re).reduce($e, 0)), p;
|
|
1197
1197
|
}
|
|
1198
1198
|
const Wo = {
|
|
1199
1199
|
virtualScrollSliceSize: {
|
|
@@ -1233,8 +1233,8 @@ function Xo({
|
|
|
1233
1233
|
virtualScrollItemSizeComputed: n
|
|
1234
1234
|
// optional
|
|
1235
1235
|
}) {
|
|
1236
|
-
const
|
|
1237
|
-
let
|
|
1236
|
+
const d = se(), { props: u, emit: a, proxy: p } = d, { $q: b } = p;
|
|
1237
|
+
let x, v, C, k = [], s;
|
|
1238
1238
|
const y = O(0), q = O(0), S = O({}), $ = O(null), j = O(null), _ = O(null), M = O({ from: 0, to: 0 }), Y = r(() => u.tableColspan !== void 0 ? u.tableColspan : 100);
|
|
1239
1239
|
n === void 0 && (n = r(() => u.virtualScrollItemSize));
|
|
1240
1240
|
const R = r(() => n.value + ";" + u.virtualScrollHorizontal), L = r(
|
|
@@ -1244,12 +1244,12 @@ function Xo({
|
|
|
1244
1244
|
U();
|
|
1245
1245
|
}), G(R, H);
|
|
1246
1246
|
function H() {
|
|
1247
|
-
J(
|
|
1247
|
+
J(v, !0);
|
|
1248
1248
|
}
|
|
1249
1249
|
function le(i) {
|
|
1250
|
-
J(i === void 0 ?
|
|
1250
|
+
J(i === void 0 ? v : i);
|
|
1251
1251
|
}
|
|
1252
|
-
function W(i,
|
|
1252
|
+
function W(i, m) {
|
|
1253
1253
|
const z = l();
|
|
1254
1254
|
if (z == null || z.nodeType === 8) return;
|
|
1255
1255
|
const w = St(
|
|
@@ -1258,66 +1258,66 @@ function Xo({
|
|
|
1258
1258
|
$.value,
|
|
1259
1259
|
j.value,
|
|
1260
1260
|
u.virtualScrollHorizontal,
|
|
1261
|
-
|
|
1261
|
+
b.lang.rtl,
|
|
1262
1262
|
u.virtualScrollStickySizeStart,
|
|
1263
1263
|
u.virtualScrollStickySizeEnd
|
|
1264
1264
|
);
|
|
1265
|
-
C !== w.scrollViewSize && U(w.scrollViewSize),
|
|
1265
|
+
C !== w.scrollViewSize && U(w.scrollViewSize), V(
|
|
1266
1266
|
z,
|
|
1267
1267
|
w,
|
|
1268
1268
|
Math.min(e.value - 1, Math.max(0, parseInt(i, 10) || 0)),
|
|
1269
1269
|
0,
|
|
1270
|
-
Qo.indexOf(
|
|
1270
|
+
Qo.indexOf(m) !== -1 ? m : v !== -1 && i > v ? "end" : "start"
|
|
1271
1271
|
);
|
|
1272
1272
|
}
|
|
1273
1273
|
function oe() {
|
|
1274
1274
|
const i = l();
|
|
1275
1275
|
if (i == null || i.nodeType === 8) return;
|
|
1276
|
-
const
|
|
1276
|
+
const m = St(
|
|
1277
1277
|
i,
|
|
1278
1278
|
t(),
|
|
1279
1279
|
$.value,
|
|
1280
1280
|
j.value,
|
|
1281
1281
|
u.virtualScrollHorizontal,
|
|
1282
|
-
|
|
1282
|
+
b.lang.rtl,
|
|
1283
1283
|
u.virtualScrollStickySizeStart,
|
|
1284
1284
|
u.virtualScrollStickySizeEnd
|
|
1285
|
-
), z = e.value - 1, w =
|
|
1286
|
-
if (
|
|
1287
|
-
if (
|
|
1288
|
-
|
|
1285
|
+
), z = e.value - 1, w = m.scrollMaxSize - m.offsetStart - m.offsetEnd - q.value;
|
|
1286
|
+
if (x === m.scrollStart) return;
|
|
1287
|
+
if (m.scrollMaxSize <= 0) {
|
|
1288
|
+
V(i, m, 0, 0);
|
|
1289
1289
|
return;
|
|
1290
1290
|
}
|
|
1291
|
-
C !==
|
|
1292
|
-
const F = Math.floor(
|
|
1293
|
-
if (F > 0 && Math.ceil(
|
|
1294
|
-
|
|
1291
|
+
C !== m.scrollViewSize && U(m.scrollViewSize), X(M.value.from);
|
|
1292
|
+
const F = Math.floor(m.scrollMaxSize - Math.max(m.scrollViewSize, m.offsetEnd) - Math.min(s[z], m.scrollViewSize / 2));
|
|
1293
|
+
if (F > 0 && Math.ceil(m.scrollStart) >= F) {
|
|
1294
|
+
V(
|
|
1295
1295
|
i,
|
|
1296
|
-
|
|
1296
|
+
m,
|
|
1297
1297
|
z,
|
|
1298
|
-
|
|
1298
|
+
m.scrollMaxSize - m.offsetEnd - k.reduce($e, 0)
|
|
1299
1299
|
);
|
|
1300
1300
|
return;
|
|
1301
1301
|
}
|
|
1302
|
-
let I = 0, E =
|
|
1303
|
-
if (E <= w && E +
|
|
1302
|
+
let I = 0, E = m.scrollStart - m.offsetStart, K = E;
|
|
1303
|
+
if (E <= w && E + m.scrollViewSize >= y.value)
|
|
1304
1304
|
E -= y.value, I = M.value.from, K = E;
|
|
1305
1305
|
else
|
|
1306
1306
|
for (let B = 0; E >= k[B] && I < z; B++)
|
|
1307
1307
|
E -= k[B], I += re;
|
|
1308
1308
|
for (; E > 0 && I < z; )
|
|
1309
|
-
E -=
|
|
1310
|
-
|
|
1309
|
+
E -= s[I], E > -m.scrollViewSize ? (I++, K = E) : K = s[I] + E;
|
|
1310
|
+
V(
|
|
1311
1311
|
i,
|
|
1312
|
-
|
|
1312
|
+
m,
|
|
1313
1313
|
I,
|
|
1314
1314
|
K
|
|
1315
1315
|
);
|
|
1316
1316
|
}
|
|
1317
|
-
function
|
|
1317
|
+
function V(i, m, z, w, F) {
|
|
1318
1318
|
const I = typeof F == "string" && F.indexOf("-force") !== -1, E = I === !0 ? F.replace("-force", "") : F, K = E !== void 0 ? E : "start";
|
|
1319
1319
|
let B = Math.max(0, z - S.value[K]), ee = B + S.value.total;
|
|
1320
|
-
ee > e.value && (ee = e.value, B = Math.max(0, ee - S.value.total)),
|
|
1320
|
+
ee > e.value && (ee = e.value, B = Math.max(0, ee - S.value.total)), x = m.scrollStart;
|
|
1321
1321
|
const me = B !== M.value.from || ee !== M.value.to;
|
|
1322
1322
|
if (me === !1 && E === void 0) {
|
|
1323
1323
|
h(z);
|
|
@@ -1327,42 +1327,42 @@ function Xo({
|
|
|
1327
1327
|
me === !0 && ie !== null && ie !== We && ie.contains(We) === !0 && (ie.addEventListener("focusout", ue), setTimeout(() => {
|
|
1328
1328
|
ie == null || ie.removeEventListener("focusout", ue);
|
|
1329
1329
|
})), Uo(ie, z - B);
|
|
1330
|
-
const Xe = E !== void 0 ?
|
|
1330
|
+
const Xe = E !== void 0 ? s.slice(B, z).reduce($e, 0) : 0;
|
|
1331
1331
|
if (me === !0) {
|
|
1332
1332
|
const Se = ee >= M.value.from && B <= M.value.to ? M.value.to : ee;
|
|
1333
|
-
M.value = { from: B, to: Se }, y.value = Qe(k,
|
|
1334
|
-
M.value.to !== ee &&
|
|
1333
|
+
M.value = { from: B, to: Se }, y.value = Qe(k, s, 0, B), q.value = Qe(k, s, ee, e.value), requestAnimationFrame(() => {
|
|
1334
|
+
M.value.to !== ee && x === m.scrollStart && (M.value = { from: M.value.from, to: ee }, q.value = Qe(k, s, ee, e.value));
|
|
1335
1335
|
});
|
|
1336
1336
|
}
|
|
1337
1337
|
requestAnimationFrame(() => {
|
|
1338
|
-
if (
|
|
1338
|
+
if (x !== m.scrollStart) return;
|
|
1339
1339
|
me === !0 && X(B);
|
|
1340
|
-
const Se =
|
|
1340
|
+
const Se = s.slice(B, z).reduce($e, 0), we = Se + m.offsetStart + y.value, Ye = we + s[z];
|
|
1341
1341
|
let He = we + w;
|
|
1342
1342
|
if (E !== void 0) {
|
|
1343
|
-
const ct = Se - Xe, Pe =
|
|
1344
|
-
He = I !== !0 && Pe < we && Ye < Pe +
|
|
1343
|
+
const ct = Se - Xe, Pe = m.scrollStart + ct;
|
|
1344
|
+
He = I !== !0 && Pe < we && Ye < Pe + m.scrollViewSize ? Pe : E === "end" ? Ye - m.scrollViewSize : we - (E === "start" ? 0 : Math.round((m.scrollViewSize - s[z]) / 2));
|
|
1345
1345
|
}
|
|
1346
|
-
|
|
1346
|
+
x = He, Gt(
|
|
1347
1347
|
i,
|
|
1348
1348
|
He,
|
|
1349
1349
|
u.virtualScrollHorizontal,
|
|
1350
|
-
|
|
1350
|
+
b.lang.rtl
|
|
1351
1351
|
), h(z);
|
|
1352
1352
|
});
|
|
1353
1353
|
}
|
|
1354
1354
|
function X(i) {
|
|
1355
|
-
const
|
|
1356
|
-
if (
|
|
1355
|
+
const m = _.value;
|
|
1356
|
+
if (m) {
|
|
1357
1357
|
const z = yl.call(
|
|
1358
|
-
|
|
1358
|
+
m.children,
|
|
1359
1359
|
(B) => B.classList && B.classList.contains("q-virtual-scroll--skip") === !1
|
|
1360
1360
|
), w = z.length, F = u.virtualScrollHorizontal === !0 ? (B) => B.getBoundingClientRect().width : (B) => B.offsetHeight;
|
|
1361
1361
|
let I = i, E, K;
|
|
1362
1362
|
for (let B = 0; B < w; ) {
|
|
1363
1363
|
for (E = F(z[B]), B++; B < w && z[B].classList.contains("q-virtual-scroll--with-prev") === !0; )
|
|
1364
1364
|
E += F(z[B]), B++;
|
|
1365
|
-
K = E -
|
|
1365
|
+
K = E - s[I], K !== 0 && (s[I] += K, k[Math.floor(I / re)] += K), I++;
|
|
1366
1366
|
}
|
|
1367
1367
|
}
|
|
1368
1368
|
}
|
|
@@ -1370,23 +1370,23 @@ function Xo({
|
|
|
1370
1370
|
var i;
|
|
1371
1371
|
(i = _.value) == null || i.focus();
|
|
1372
1372
|
}
|
|
1373
|
-
function J(i,
|
|
1373
|
+
function J(i, m) {
|
|
1374
1374
|
const z = 1 * n.value;
|
|
1375
|
-
(
|
|
1376
|
-
const w =
|
|
1377
|
-
|
|
1375
|
+
(m === !0 || Array.isArray(s) === !1) && (s = []);
|
|
1376
|
+
const w = s.length;
|
|
1377
|
+
s.length = e.value;
|
|
1378
1378
|
for (let I = e.value - 1; I >= w; I--)
|
|
1379
|
-
|
|
1379
|
+
s[I] = z;
|
|
1380
1380
|
const F = Math.floor((e.value - 1) / re);
|
|
1381
1381
|
k = [];
|
|
1382
1382
|
for (let I = 0; I <= F; I++) {
|
|
1383
1383
|
let E = 0;
|
|
1384
1384
|
const K = Math.min((I + 1) * re, e.value);
|
|
1385
1385
|
for (let B = I * re; B < K; B++)
|
|
1386
|
-
E +=
|
|
1386
|
+
E += s[B];
|
|
1387
1387
|
k.push(E);
|
|
1388
1388
|
}
|
|
1389
|
-
|
|
1389
|
+
v = -1, x = void 0, y.value = Qe(k, s, 0, M.value.from), q.value = Qe(k, s, M.value.to, e.value), i >= 0 ? (X(M.value.from), ve(() => {
|
|
1390
1390
|
W(i);
|
|
1391
1391
|
})) : A();
|
|
1392
1392
|
}
|
|
@@ -1399,65 +1399,65 @@ function Xo({
|
|
|
1399
1399
|
$.value,
|
|
1400
1400
|
j.value,
|
|
1401
1401
|
u.virtualScrollHorizontal,
|
|
1402
|
-
|
|
1402
|
+
b.lang.rtl,
|
|
1403
1403
|
u.virtualScrollStickySizeStart,
|
|
1404
1404
|
u.virtualScrollStickySizeEnd
|
|
1405
1405
|
).scrollViewSize);
|
|
1406
1406
|
}
|
|
1407
1407
|
C = i;
|
|
1408
|
-
const
|
|
1408
|
+
const m = parseFloat(u.virtualScrollSliceRatioBefore) || 0, z = parseFloat(u.virtualScrollSliceRatioAfter) || 0, w = 1 + m + z, F = i === void 0 || i <= 0 ? 1 : Math.ceil(i / n.value), I = Math.max(
|
|
1409
1409
|
1,
|
|
1410
1410
|
F,
|
|
1411
1411
|
Math.ceil((u.virtualScrollSliceSize > 0 ? u.virtualScrollSliceSize : 10) / w)
|
|
1412
1412
|
);
|
|
1413
1413
|
S.value = {
|
|
1414
1414
|
total: Math.ceil(I * w),
|
|
1415
|
-
start: Math.ceil(I *
|
|
1416
|
-
center: Math.ceil(I * (0.5 +
|
|
1417
|
-
end: Math.ceil(I * (1 +
|
|
1415
|
+
start: Math.ceil(I * m),
|
|
1416
|
+
center: Math.ceil(I * (0.5 + m)),
|
|
1417
|
+
end: Math.ceil(I * (1 + m)),
|
|
1418
1418
|
view: F
|
|
1419
1419
|
};
|
|
1420
1420
|
}
|
|
1421
|
-
function ce(i,
|
|
1421
|
+
function ce(i, m) {
|
|
1422
1422
|
const z = u.virtualScrollHorizontal === !0 ? "width" : "height", w = {
|
|
1423
1423
|
["--q-virtual-scroll-item-" + z]: n.value + "px"
|
|
1424
1424
|
};
|
|
1425
1425
|
return [
|
|
1426
|
-
i === "tbody" ?
|
|
1426
|
+
i === "tbody" ? c(i, {
|
|
1427
1427
|
class: "q-virtual-scroll__padding",
|
|
1428
1428
|
key: "before",
|
|
1429
1429
|
ref: $
|
|
1430
1430
|
}, [
|
|
1431
|
-
|
|
1432
|
-
|
|
1431
|
+
c("tr", [
|
|
1432
|
+
c("td", {
|
|
1433
1433
|
style: { [z]: `${y.value}px`, ...w },
|
|
1434
1434
|
colspan: Y.value
|
|
1435
1435
|
})
|
|
1436
1436
|
])
|
|
1437
|
-
]) :
|
|
1437
|
+
]) : c(i, {
|
|
1438
1438
|
class: "q-virtual-scroll__padding",
|
|
1439
1439
|
key: "before",
|
|
1440
1440
|
ref: $,
|
|
1441
1441
|
style: { [z]: `${y.value}px`, ...w }
|
|
1442
1442
|
}),
|
|
1443
|
-
|
|
1443
|
+
c(i, {
|
|
1444
1444
|
class: "q-virtual-scroll__content",
|
|
1445
1445
|
key: "content",
|
|
1446
1446
|
ref: _,
|
|
1447
1447
|
tabindex: -1
|
|
1448
|
-
},
|
|
1449
|
-
i === "tbody" ?
|
|
1448
|
+
}, m.flat()),
|
|
1449
|
+
i === "tbody" ? c(i, {
|
|
1450
1450
|
class: "q-virtual-scroll__padding",
|
|
1451
1451
|
key: "after",
|
|
1452
1452
|
ref: j
|
|
1453
1453
|
}, [
|
|
1454
|
-
|
|
1455
|
-
|
|
1454
|
+
c("tr", [
|
|
1455
|
+
c("td", {
|
|
1456
1456
|
style: { [z]: `${q.value}px`, ...w },
|
|
1457
1457
|
colspan: Y.value
|
|
1458
1458
|
})
|
|
1459
1459
|
])
|
|
1460
|
-
]) :
|
|
1460
|
+
]) : c(i, {
|
|
1461
1461
|
class: "q-virtual-scroll__padding",
|
|
1462
1462
|
key: "after",
|
|
1463
1463
|
ref: j,
|
|
@@ -1466,18 +1466,18 @@ function Xo({
|
|
|
1466
1466
|
];
|
|
1467
1467
|
}
|
|
1468
1468
|
function h(i) {
|
|
1469
|
-
|
|
1469
|
+
v !== i && (u.onVirtualScroll !== void 0 && a("virtualScroll", {
|
|
1470
1470
|
index: i,
|
|
1471
1471
|
from: M.value.from,
|
|
1472
1472
|
to: M.value.to - 1,
|
|
1473
|
-
direction: i <
|
|
1474
|
-
ref:
|
|
1475
|
-
}),
|
|
1473
|
+
direction: i < v ? "decrease" : "increase",
|
|
1474
|
+
ref: p
|
|
1475
|
+
}), v = i);
|
|
1476
1476
|
}
|
|
1477
1477
|
U();
|
|
1478
1478
|
const A = gl(
|
|
1479
1479
|
oe,
|
|
1480
|
-
|
|
1480
|
+
b.platform.is.ios === !0 ? 120 : 35
|
|
1481
1481
|
);
|
|
1482
1482
|
Ml(() => {
|
|
1483
1483
|
U();
|
|
@@ -1488,15 +1488,15 @@ function Xo({
|
|
|
1488
1488
|
}), il(() => {
|
|
1489
1489
|
if (Z !== !0) return;
|
|
1490
1490
|
const i = l();
|
|
1491
|
-
|
|
1491
|
+
x !== void 0 && i !== void 0 && i !== null && i.nodeType !== 8 ? Gt(
|
|
1492
1492
|
i,
|
|
1493
|
-
|
|
1493
|
+
x,
|
|
1494
1494
|
u.virtualScrollHorizontal,
|
|
1495
|
-
|
|
1496
|
-
) : W(
|
|
1495
|
+
b.lang.rtl
|
|
1496
|
+
) : W(v);
|
|
1497
1497
|
}), Ae(() => {
|
|
1498
1498
|
A.cancel();
|
|
1499
|
-
}), Object.assign(
|
|
1499
|
+
}), Object.assign(p, { scrollTo: W, reset: H, refresh: le }), {
|
|
1500
1500
|
virtualScrollSliceRange: M,
|
|
1501
1501
|
virtualScrollSliceSizeComputed: S,
|
|
1502
1502
|
setVirtualScrollSize: U,
|
|
@@ -1514,10 +1514,10 @@ function en(e) {
|
|
|
1514
1514
|
if (t.type === "compositionend" || t.type === "change") {
|
|
1515
1515
|
if (t.target.qComposing !== !0) return;
|
|
1516
1516
|
t.target.qComposing = !1, e(t);
|
|
1517
|
-
} else t.type === "compositionupdate" && t.target.qComposing !== !0 && typeof t.data == "string" && (
|
|
1517
|
+
} else t.type === "compositionupdate" && t.target.qComposing !== !0 && typeof t.data == "string" && (xe.is.firefox === !0 ? Go.test(t.data) === !1 : Yo.test(t.data) === !0 || Zo.test(t.data) === !0 || Jo.test(t.data) === !0) === !0 && (t.target.qComposing = !0);
|
|
1518
1518
|
};
|
|
1519
1519
|
}
|
|
1520
|
-
function
|
|
1520
|
+
function pe(e, l) {
|
|
1521
1521
|
if (e === l)
|
|
1522
1522
|
return !0;
|
|
1523
1523
|
if (e !== null && l !== null && typeof e == "object" && typeof l == "object") {
|
|
@@ -1528,7 +1528,7 @@ function be(e, l) {
|
|
|
1528
1528
|
if (t = e.length, t !== l.length)
|
|
1529
1529
|
return !1;
|
|
1530
1530
|
for (n = t; n-- !== 0; )
|
|
1531
|
-
if (
|
|
1531
|
+
if (pe(e[n], l[n]) !== !0)
|
|
1532
1532
|
return !1;
|
|
1533
1533
|
return !0;
|
|
1534
1534
|
}
|
|
@@ -1542,7 +1542,7 @@ function be(e, l) {
|
|
|
1542
1542
|
n = u.next();
|
|
1543
1543
|
}
|
|
1544
1544
|
for (u = e.entries(), n = u.next(); n.done !== !0; ) {
|
|
1545
|
-
if (
|
|
1545
|
+
if (pe(n.value[1], l.get(n.value[0])) !== !0)
|
|
1546
1546
|
return !1;
|
|
1547
1547
|
n = u.next();
|
|
1548
1548
|
}
|
|
@@ -1573,12 +1573,12 @@ function be(e, l) {
|
|
|
1573
1573
|
return e.valueOf() === l.valueOf();
|
|
1574
1574
|
if (e.toString !== Object.prototype.toString)
|
|
1575
1575
|
return e.toString() === l.toString();
|
|
1576
|
-
const
|
|
1577
|
-
if (t =
|
|
1576
|
+
const d = Object.keys(e).filter((u) => e[u] !== void 0);
|
|
1577
|
+
if (t = d.length, t !== Object.keys(l).filter((u) => l[u] !== void 0).length)
|
|
1578
1578
|
return !1;
|
|
1579
1579
|
for (n = t; n-- !== 0; ) {
|
|
1580
|
-
const u =
|
|
1581
|
-
if (
|
|
1580
|
+
const u = d[n];
|
|
1581
|
+
if (pe(e[u], l[u]) !== !0)
|
|
1582
1582
|
return !1;
|
|
1583
1583
|
}
|
|
1584
1584
|
return !0;
|
|
@@ -1589,8 +1589,8 @@ function tl(e, l, t) {
|
|
|
1589
1589
|
if (t <= l)
|
|
1590
1590
|
return l;
|
|
1591
1591
|
const n = t - l + 1;
|
|
1592
|
-
let
|
|
1593
|
-
return
|
|
1592
|
+
let d = l + (e - l) % n;
|
|
1593
|
+
return d < l && (d = n + d), d === 0 ? 0 : d;
|
|
1594
1594
|
}
|
|
1595
1595
|
const ll = (e) => ["add", "add-unique", "toggle"].includes(e), tn = ".*+?^${}()|[]\\", ln = Object.keys(qt);
|
|
1596
1596
|
function wt(e, l) {
|
|
@@ -1685,9 +1685,9 @@ const on = ye({
|
|
|
1685
1685
|
"filterAbort"
|
|
1686
1686
|
],
|
|
1687
1687
|
setup(e, { slots: l, emit: t }) {
|
|
1688
|
-
const { proxy: n } = se(), { $q:
|
|
1689
|
-
let C = null, k = null,
|
|
1690
|
-
const Y = O(null), R = O(null), L = O(null), H = O(null), le = O(null), W = Co(e), oe = en(It),
|
|
1688
|
+
const { proxy: n } = se(), { $q: d } = n, u = O(!1), a = O(!1), p = O(-1), b = O(""), x = O(!1), v = O(!1);
|
|
1689
|
+
let C = null, k = null, s, y, q, S = null, $, j, _, M;
|
|
1690
|
+
const Y = O(null), R = O(null), L = O(null), H = O(null), le = O(null), W = Co(e), oe = en(It), V = r(() => Array.isArray(e.options) ? e.options.length : 0), X = r(() => e.virtualScrollItemSize === void 0 ? e.optionsDense === !0 ? 24 : 48 : e.virtualScrollItemSize), {
|
|
1691
1691
|
virtualScrollSliceRange: ue,
|
|
1692
1692
|
virtualScrollSliceSizeComputed: J,
|
|
1693
1693
|
localResetVirtualScroll: U,
|
|
@@ -1696,31 +1696,31 @@ const on = ye({
|
|
|
1696
1696
|
scrollTo: A,
|
|
1697
1697
|
setVirtualScrollSize: Z
|
|
1698
1698
|
} = Xo({
|
|
1699
|
-
virtualScrollLength:
|
|
1699
|
+
virtualScrollLength: V,
|
|
1700
1700
|
getVirtualScrollTarget: kl,
|
|
1701
1701
|
getVirtualScrollEl: Rt,
|
|
1702
1702
|
virtualScrollItemSizeComputed: X
|
|
1703
|
-
}), i =
|
|
1704
|
-
const o = e.mapOptions === !0 && e.multiple !== !0,
|
|
1703
|
+
}), i = pl(), m = r(() => {
|
|
1704
|
+
const o = e.mapOptions === !0 && e.multiple !== !0, f = e.modelValue !== void 0 && (e.modelValue !== null || o === !0) ? e.multiple === !0 && Array.isArray(e.modelValue) ? e.modelValue : [e.modelValue] : [];
|
|
1705
1705
|
if (e.mapOptions === !0 && Array.isArray(e.options) === !0) {
|
|
1706
|
-
const
|
|
1706
|
+
const g = e.mapOptions === !0 && s !== void 0 ? s : [], T = f.map((P) => Cl(P, g));
|
|
1707
1707
|
return e.modelValue === null && o === !0 ? T.filter((P) => P !== null) : T;
|
|
1708
1708
|
}
|
|
1709
|
-
return
|
|
1709
|
+
return f;
|
|
1710
1710
|
}), z = r(() => {
|
|
1711
1711
|
const o = {};
|
|
1712
|
-
return ln.forEach((
|
|
1713
|
-
const
|
|
1714
|
-
|
|
1712
|
+
return ln.forEach((f) => {
|
|
1713
|
+
const g = e[f];
|
|
1714
|
+
g !== void 0 && (o[f] = g);
|
|
1715
1715
|
}), o;
|
|
1716
|
-
}), w = r(() => e.optionsDark === null ? i.isDark.value : e.optionsDark), F = r(() => kt(
|
|
1716
|
+
}), w = r(() => e.optionsDark === null ? i.isDark.value : e.optionsDark), F = r(() => kt(m.value)), I = r(() => {
|
|
1717
1717
|
let o = "q-field__input q-placeholder col";
|
|
1718
|
-
return e.hideSelected === !0 ||
|
|
1718
|
+
return e.hideSelected === !0 || m.value.length === 0 ? [o, e.inputClass] : (o += " q-field__input--padding", e.inputClass === void 0 ? o : [o, e.inputClass]);
|
|
1719
1719
|
}), E = r(
|
|
1720
1720
|
() => (e.virtualScrollHorizontal === !0 ? "q-virtual-scroll--horizontal" : "") + (e.popupContentClass ? " " + e.popupContentClass : "")
|
|
1721
|
-
), K = r(() =>
|
|
1722
|
-
() =>
|
|
1723
|
-
), ee = r(() => e.displayValue !== void 0 ? e.displayValue : B.value), me = r(() => e.optionsHtml === !0 ? () => !0 : (o) => (o == null ? void 0 : o.html) === !0), We = r(() => e.displayValueHtml === !0 || e.displayValue === void 0 && (e.optionsHtml === !0 ||
|
|
1721
|
+
), K = r(() => V.value === 0), B = r(
|
|
1722
|
+
() => m.value.map((o) => te.value(o)).join(", ")
|
|
1723
|
+
), ee = r(() => e.displayValue !== void 0 ? e.displayValue : B.value), me = r(() => e.optionsHtml === !0 ? () => !0 : (o) => (o == null ? void 0 : o.html) === !0), We = r(() => e.displayValueHtml === !0 || e.displayValue === void 0 && (e.optionsHtml === !0 || m.value.some(me.value))), ie = r(() => i.focused.value === !0 ? e.tabindex : -1), Xe = r(() => {
|
|
1724
1724
|
const o = {
|
|
1725
1725
|
tabindex: e.tabindex,
|
|
1726
1726
|
role: "combobox",
|
|
@@ -1730,13 +1730,13 @@ const on = ye({
|
|
|
1730
1730
|
"aria-expanded": u.value === !0 ? "true" : "false",
|
|
1731
1731
|
"aria-controls": `${i.targetUid.value}_lb`
|
|
1732
1732
|
};
|
|
1733
|
-
return
|
|
1733
|
+
return p.value >= 0 && (o["aria-activedescendant"] = `${i.targetUid.value}_${p.value}`), o;
|
|
1734
1734
|
}), Se = r(() => ({
|
|
1735
1735
|
id: `${i.targetUid.value}_lb`,
|
|
1736
1736
|
role: "listbox",
|
|
1737
1737
|
"aria-multiselectable": e.multiple === !0 ? "true" : "false"
|
|
1738
|
-
})), we = r(() =>
|
|
1739
|
-
index:
|
|
1738
|
+
})), we = r(() => m.value.map((o, f) => ({
|
|
1739
|
+
index: f,
|
|
1740
1740
|
opt: o,
|
|
1741
1741
|
html: me.value(o),
|
|
1742
1742
|
selected: !0,
|
|
@@ -1744,11 +1744,11 @@ const on = ye({
|
|
|
1744
1744
|
toggleOption: Ce,
|
|
1745
1745
|
tabindex: ie.value
|
|
1746
1746
|
}))), Ye = r(() => {
|
|
1747
|
-
if (
|
|
1747
|
+
if (V.value === 0)
|
|
1748
1748
|
return [];
|
|
1749
|
-
const { from: o, to:
|
|
1750
|
-
return e.options.slice(o,
|
|
1751
|
-
const P = Be.value(
|
|
1749
|
+
const { from: o, to: f } = ue.value;
|
|
1750
|
+
return e.options.slice(o, f).map((g, T) => {
|
|
1751
|
+
const P = Be.value(g) === !0, N = ft(g) === !0, D = o + T, Q = {
|
|
1752
1752
|
clickable: !0,
|
|
1753
1753
|
active: N,
|
|
1754
1754
|
activeClass: Pe.value,
|
|
@@ -1762,16 +1762,16 @@ const on = ye({
|
|
|
1762
1762
|
"aria-selected": N === !0 ? "true" : "false",
|
|
1763
1763
|
id: `${i.targetUid.value}_${D}`,
|
|
1764
1764
|
onClick: () => {
|
|
1765
|
-
Ce(
|
|
1765
|
+
Ce(g);
|
|
1766
1766
|
}
|
|
1767
1767
|
};
|
|
1768
|
-
return P !== !0 && (
|
|
1768
|
+
return P !== !0 && (p.value === D && (Q.focused = !0), d.platform.is.desktop === !0 && (Q.onMousemove = () => {
|
|
1769
1769
|
u.value === !0 && Ee(D);
|
|
1770
1770
|
})), {
|
|
1771
1771
|
index: D,
|
|
1772
|
-
opt:
|
|
1773
|
-
html: me.value(
|
|
1774
|
-
label: te.value(
|
|
1772
|
+
opt: g,
|
|
1773
|
+
html: me.value(g),
|
|
1774
|
+
label: te.value(g),
|
|
1775
1775
|
selected: Q.active,
|
|
1776
1776
|
focused: Q.focused,
|
|
1777
1777
|
toggleOption: Ce,
|
|
@@ -1779,9 +1779,9 @@ const on = ye({
|
|
|
1779
1779
|
itemProps: Q
|
|
1780
1780
|
};
|
|
1781
1781
|
});
|
|
1782
|
-
}), He = r(() => e.dropdownIcon !== void 0 ? e.dropdownIcon :
|
|
1782
|
+
}), He = r(() => e.dropdownIcon !== void 0 ? e.dropdownIcon : d.iconSet.arrow.dropdown), ct = r(
|
|
1783
1783
|
() => e.optionsCover === !1 && e.outlined !== !0 && e.standout !== !0 && e.borderless !== !0 && e.rounded !== !0
|
|
1784
|
-
), Pe = r(() => e.optionsSelectedClass !== void 0 ? e.optionsSelectedClass : e.color !== void 0 ? `text-${e.color}` : ""), de = r(() => wt(e.optionValue, "value")), te = r(() => wt(e.optionLabel, "label")), Be = r(() => wt(e.optionDisable, "disable")), Ze = r(() =>
|
|
1784
|
+
), Pe = r(() => e.optionsSelectedClass !== void 0 ? e.optionsSelectedClass : e.color !== void 0 ? `text-${e.color}` : ""), de = r(() => wt(e.optionValue, "value")), te = r(() => wt(e.optionLabel, "label")), Be = r(() => wt(e.optionDisable, "disable")), Ze = r(() => m.value.map(de.value)), Sl = r(() => {
|
|
1785
1785
|
const o = {
|
|
1786
1786
|
onInput: It,
|
|
1787
1787
|
// Safari < 10.2 & UIWebView doesn't fire compositionend when
|
|
@@ -1793,102 +1793,102 @@ const on = ye({
|
|
|
1793
1793
|
onKeyup: Bt,
|
|
1794
1794
|
onKeypress: Et,
|
|
1795
1795
|
onFocus: _t,
|
|
1796
|
-
onClick(
|
|
1797
|
-
y === !0 && Le(
|
|
1796
|
+
onClick(f) {
|
|
1797
|
+
y === !0 && Le(f);
|
|
1798
1798
|
}
|
|
1799
1799
|
};
|
|
1800
1800
|
return o.onCompositionstart = o.onCompositionupdate = o.onCompositionend = oe, o;
|
|
1801
1801
|
});
|
|
1802
|
-
G(
|
|
1803
|
-
|
|
1804
|
-
}, { immediate: !0 }), G(() => e.fillInput, Ie), G(u, vt), G(
|
|
1805
|
-
function
|
|
1802
|
+
G(m, (o) => {
|
|
1803
|
+
s = o, e.useInput === !0 && e.fillInput === !0 && e.multiple !== !0 && i.innerLoading.value !== !0 && (a.value !== !0 && u.value !== !0 || F.value !== !0) && (q !== !0 && Ie(), (a.value === !0 || u.value === !0) && ze(""));
|
|
1804
|
+
}, { immediate: !0 }), G(() => e.fillInput, Ie), G(u, vt), G(V, Tl);
|
|
1805
|
+
function Vt(o) {
|
|
1806
1806
|
return e.emitValue === !0 ? de.value(o) : o;
|
|
1807
1807
|
}
|
|
1808
1808
|
function dt(o) {
|
|
1809
|
-
if (o !== -1 && o <
|
|
1809
|
+
if (o !== -1 && o < m.value.length)
|
|
1810
1810
|
if (e.multiple === !0) {
|
|
1811
|
-
const
|
|
1812
|
-
t("remove", { index: o, value:
|
|
1811
|
+
const f = e.modelValue.slice();
|
|
1812
|
+
t("remove", { index: o, value: f.splice(o, 1)[0] }), t("update:modelValue", f);
|
|
1813
1813
|
} else
|
|
1814
1814
|
t("update:modelValue", null);
|
|
1815
1815
|
}
|
|
1816
1816
|
function wl(o) {
|
|
1817
1817
|
dt(o), i.focus();
|
|
1818
1818
|
}
|
|
1819
|
-
function
|
|
1820
|
-
const
|
|
1819
|
+
function xt(o, f) {
|
|
1820
|
+
const g = Vt(o);
|
|
1821
1821
|
if (e.multiple !== !0) {
|
|
1822
1822
|
e.fillInput === !0 && De(
|
|
1823
1823
|
te.value(o),
|
|
1824
1824
|
!0,
|
|
1825
1825
|
!0
|
|
1826
|
-
), t("update:modelValue",
|
|
1826
|
+
), t("update:modelValue", g);
|
|
1827
1827
|
return;
|
|
1828
1828
|
}
|
|
1829
|
-
if (
|
|
1830
|
-
t("add", { index: 0, value:
|
|
1829
|
+
if (m.value.length === 0) {
|
|
1830
|
+
t("add", { index: 0, value: g }), t("update:modelValue", e.multiple === !0 ? [g] : g);
|
|
1831
1831
|
return;
|
|
1832
1832
|
}
|
|
1833
|
-
if (
|
|
1833
|
+
if (f === !0 && ft(o) === !0 || e.maxValues !== void 0 && e.modelValue.length >= e.maxValues) return;
|
|
1834
1834
|
const T = e.modelValue.slice();
|
|
1835
|
-
t("add", { index: T.length, value:
|
|
1835
|
+
t("add", { index: T.length, value: g }), T.push(g), t("update:modelValue", T);
|
|
1836
1836
|
}
|
|
1837
|
-
function Ce(o,
|
|
1837
|
+
function Ce(o, f) {
|
|
1838
1838
|
var N;
|
|
1839
1839
|
if (i.editable.value !== !0 || o === void 0 || Be.value(o) === !0) return;
|
|
1840
|
-
const
|
|
1840
|
+
const g = de.value(o);
|
|
1841
1841
|
if (e.multiple !== !0) {
|
|
1842
|
-
|
|
1842
|
+
f !== !0 && (De(
|
|
1843
1843
|
e.fillInput === !0 ? te.value(o) : "",
|
|
1844
1844
|
!0,
|
|
1845
1845
|
!0
|
|
1846
|
-
), ke()), (N = R.value) == null || N.focus(), (
|
|
1846
|
+
), ke()), (N = R.value) == null || N.focus(), (m.value.length === 0 || pe(de.value(m.value[0]), g) !== !0) && t("update:modelValue", e.emitValue === !0 ? g : o);
|
|
1847
1847
|
return;
|
|
1848
1848
|
}
|
|
1849
|
-
if ((y !== !0 ||
|
|
1850
|
-
const D = e.emitValue === !0 ?
|
|
1849
|
+
if ((y !== !0 || x.value === !0) && i.focus(), _t(), m.value.length === 0) {
|
|
1850
|
+
const D = e.emitValue === !0 ? g : o;
|
|
1851
1851
|
t("add", { index: 0, value: D }), t("update:modelValue", e.multiple === !0 ? [D] : D);
|
|
1852
1852
|
return;
|
|
1853
1853
|
}
|
|
1854
|
-
const T = e.modelValue.slice(), P = Ze.value.findIndex((D) =>
|
|
1854
|
+
const T = e.modelValue.slice(), P = Ze.value.findIndex((D) => pe(D, g));
|
|
1855
1855
|
if (P !== -1)
|
|
1856
1856
|
t("remove", { index: P, value: T.splice(P, 1)[0] });
|
|
1857
1857
|
else {
|
|
1858
1858
|
if (e.maxValues !== void 0 && T.length >= e.maxValues) return;
|
|
1859
|
-
const D = e.emitValue === !0 ?
|
|
1859
|
+
const D = e.emitValue === !0 ? g : o;
|
|
1860
1860
|
t("add", { index: T.length, value: D }), T.push(D);
|
|
1861
1861
|
}
|
|
1862
1862
|
t("update:modelValue", T);
|
|
1863
1863
|
}
|
|
1864
1864
|
function Ee(o) {
|
|
1865
|
-
if (
|
|
1866
|
-
const
|
|
1867
|
-
|
|
1865
|
+
if (d.platform.is.desktop !== !0) return;
|
|
1866
|
+
const f = o !== -1 && o < V.value ? o : -1;
|
|
1867
|
+
p.value !== f && (p.value = f);
|
|
1868
1868
|
}
|
|
1869
|
-
function Je(o = 1,
|
|
1869
|
+
function Je(o = 1, f) {
|
|
1870
1870
|
if (u.value === !0) {
|
|
1871
|
-
let
|
|
1871
|
+
let g = p.value;
|
|
1872
1872
|
do
|
|
1873
|
-
|
|
1874
|
-
|
|
1873
|
+
g = tl(
|
|
1874
|
+
g + o,
|
|
1875
1875
|
-1,
|
|
1876
|
-
|
|
1876
|
+
V.value - 1
|
|
1877
1877
|
);
|
|
1878
|
-
while (
|
|
1879
|
-
|
|
1880
|
-
|
|
1878
|
+
while (g !== -1 && g !== p.value && Be.value(e.options[g]) === !0);
|
|
1879
|
+
p.value !== g && (Ee(g), A(g), f !== !0 && e.useInput === !0 && e.fillInput === !0 && Ge(
|
|
1880
|
+
g >= 0 ? te.value(e.options[g]) : $,
|
|
1881
1881
|
!0
|
|
1882
1882
|
));
|
|
1883
1883
|
}
|
|
1884
1884
|
}
|
|
1885
|
-
function Cl(o,
|
|
1886
|
-
const
|
|
1887
|
-
return e.options.find(
|
|
1885
|
+
function Cl(o, f) {
|
|
1886
|
+
const g = (T) => pe(de.value(T), o);
|
|
1887
|
+
return e.options.find(g) || f.find(g) || o;
|
|
1888
1888
|
}
|
|
1889
1889
|
function ft(o) {
|
|
1890
|
-
const
|
|
1891
|
-
return Ze.value.find((
|
|
1890
|
+
const f = de.value(o);
|
|
1891
|
+
return Ze.value.find((g) => pe(g, f)) !== void 0;
|
|
1892
1892
|
}
|
|
1893
1893
|
function _t(o) {
|
|
1894
1894
|
e.useInput === !0 && R.value !== null && (o === void 0 || R.value === o.target && o.target.value === B.value) && R.value.select();
|
|
@@ -1897,17 +1897,17 @@ const on = ye({
|
|
|
1897
1897
|
cl(o, 27) === !0 && u.value === !0 && (Le(o), ke(), Ie()), t("keyup", o);
|
|
1898
1898
|
}
|
|
1899
1899
|
function Bt(o) {
|
|
1900
|
-
const { value:
|
|
1900
|
+
const { value: f } = o.target;
|
|
1901
1901
|
if (o.keyCode !== void 0) {
|
|
1902
1902
|
At(o);
|
|
1903
1903
|
return;
|
|
1904
1904
|
}
|
|
1905
|
-
if (o.target.value = "", C !== null && (clearTimeout(C), C = null), k !== null && (clearTimeout(k), k = null), Ie(), typeof
|
|
1906
|
-
const
|
|
1907
|
-
const D = e.options.find((Q) => String(N.value(Q)).toLocaleLowerCase() ===
|
|
1908
|
-
return D === void 0 ? !1 : (
|
|
1905
|
+
if (o.target.value = "", C !== null && (clearTimeout(C), C = null), k !== null && (clearTimeout(k), k = null), Ie(), typeof f == "string" && f.length !== 0) {
|
|
1906
|
+
const g = f.toLocaleLowerCase(), T = (N) => {
|
|
1907
|
+
const D = e.options.find((Q) => String(N.value(Q)).toLocaleLowerCase() === g);
|
|
1908
|
+
return D === void 0 ? !1 : (m.value.indexOf(D) === -1 ? Ce(D) : ke(), !0);
|
|
1909
1909
|
}, P = (N) => {
|
|
1910
|
-
T(de) !== !0 && N !== !0 && T(te) !== !0 && ze(
|
|
1910
|
+
T(de) !== !0 && N !== !0 && T(te) !== !0 && ze(f, !0, () => P(!0));
|
|
1911
1911
|
};
|
|
1912
1912
|
P();
|
|
1913
1913
|
} else
|
|
@@ -1918,12 +1918,12 @@ const on = ye({
|
|
|
1918
1918
|
}
|
|
1919
1919
|
function zt(o) {
|
|
1920
1920
|
if (t("keydown", o), Gl(o) === !0) return;
|
|
1921
|
-
const
|
|
1921
|
+
const f = b.value.length !== 0 && (e.newValueMode !== void 0 || e.onNewValue !== void 0), g = o.shiftKey !== !0 && e.disableTabSelection !== !0 && e.multiple !== !0 && (p.value !== -1 || f === !0);
|
|
1922
1922
|
if (o.keyCode === 27) {
|
|
1923
1923
|
he(o);
|
|
1924
1924
|
return;
|
|
1925
1925
|
}
|
|
1926
|
-
if (o.keyCode === 9 &&
|
|
1926
|
+
if (o.keyCode === 9 && g === !1) {
|
|
1927
1927
|
Re();
|
|
1928
1928
|
return;
|
|
1929
1929
|
}
|
|
@@ -1932,39 +1932,39 @@ const on = ye({
|
|
|
1932
1932
|
ne(o), Fe();
|
|
1933
1933
|
return;
|
|
1934
1934
|
}
|
|
1935
|
-
if (o.keyCode === 8 && (e.useChips === !0 || e.clearable === !0) && e.hideSelected !== !0 &&
|
|
1935
|
+
if (o.keyCode === 8 && (e.useChips === !0 || e.clearable === !0) && e.hideSelected !== !0 && b.value.length === 0) {
|
|
1936
1936
|
e.multiple === !0 && Array.isArray(e.modelValue) === !0 ? dt(e.modelValue.length - 1) : e.multiple !== !0 && e.modelValue !== null && t("update:modelValue", null);
|
|
1937
1937
|
return;
|
|
1938
1938
|
}
|
|
1939
|
-
(o.keyCode === 35 || o.keyCode === 36) && (typeof
|
|
1939
|
+
(o.keyCode === 35 || o.keyCode === 36) && (typeof b.value != "string" || b.value.length === 0) && (ne(o), p.value = -1, Je(o.keyCode === 36 ? 1 : -1, e.multiple)), (o.keyCode === 33 || o.keyCode === 34) && J.value !== void 0 && (ne(o), p.value = Math.max(
|
|
1940
1940
|
-1,
|
|
1941
1941
|
Math.min(
|
|
1942
|
-
|
|
1943
|
-
|
|
1942
|
+
V.value,
|
|
1943
|
+
p.value + (o.keyCode === 33 ? -1 : 1) * J.value.view
|
|
1944
1944
|
)
|
|
1945
1945
|
), Je(o.keyCode === 33 ? 1 : -1, e.multiple)), (o.keyCode === 38 || o.keyCode === 40) && (ne(o), Je(o.keyCode === 38 ? -1 : 1, e.multiple));
|
|
1946
|
-
const T =
|
|
1946
|
+
const T = V.value;
|
|
1947
1947
|
if ((_ === void 0 || M < Date.now()) && (_ = ""), T > 0 && e.useInput !== !0 && o.key !== void 0 && o.key.length === 1 && o.altKey === !1 && o.ctrlKey === !1 && o.metaKey === !1 && (o.keyCode !== 32 || _.length !== 0)) {
|
|
1948
1948
|
u.value !== !0 && Fe(o);
|
|
1949
1949
|
const P = o.key.toLocaleLowerCase(), N = _.length === 1 && _[0] === P;
|
|
1950
1950
|
M = Date.now() + 1500, N === !1 && (ne(o), _ += P);
|
|
1951
1951
|
const D = new RegExp("^" + _.split("").map((Te) => tn.indexOf(Te) !== -1 ? "\\" + Te : Te).join(".*"), "i");
|
|
1952
|
-
let Q =
|
|
1952
|
+
let Q = p.value;
|
|
1953
1953
|
if (N === !0 || Q < 0 || D.test(te.value(e.options[Q])) !== !0)
|
|
1954
1954
|
do
|
|
1955
1955
|
Q = tl(Q + 1, -1, T - 1);
|
|
1956
|
-
while (Q !==
|
|
1957
|
-
|
|
1956
|
+
while (Q !== p.value && (Be.value(e.options[Q]) === !0 || D.test(te.value(e.options[Q])) !== !0));
|
|
1957
|
+
p.value !== Q && ve(() => {
|
|
1958
1958
|
Ee(Q), A(Q), Q >= 0 && e.useInput === !0 && e.fillInput === !0 && Ge(te.value(e.options[Q]), !0);
|
|
1959
1959
|
});
|
|
1960
1960
|
return;
|
|
1961
1961
|
}
|
|
1962
|
-
if (!(o.keyCode !== 13 && (o.keyCode !== 32 || e.useInput === !0 || _ !== "") && (o.keyCode !== 9 ||
|
|
1963
|
-
if (o.keyCode !== 9 && ne(o),
|
|
1964
|
-
Ce(e.options[
|
|
1962
|
+
if (!(o.keyCode !== 13 && (o.keyCode !== 32 || e.useInput === !0 || _ !== "") && (o.keyCode !== 9 || g === !1))) {
|
|
1963
|
+
if (o.keyCode !== 9 && ne(o), p.value !== -1 && p.value < T) {
|
|
1964
|
+
Ce(e.options[p.value]);
|
|
1965
1965
|
return;
|
|
1966
1966
|
}
|
|
1967
|
-
if (
|
|
1967
|
+
if (f === !0) {
|
|
1968
1968
|
const P = (N, D) => {
|
|
1969
1969
|
var Te;
|
|
1970
1970
|
if (D) {
|
|
@@ -1972,9 +1972,9 @@ const on = ye({
|
|
|
1972
1972
|
} else
|
|
1973
1973
|
D = e.newValueMode;
|
|
1974
1974
|
if (De("", e.multiple !== !0, !0), N == null) return;
|
|
1975
|
-
(D === "toggle" ? Ce :
|
|
1975
|
+
(D === "toggle" ? Ce : xt)(N, D === "add-unique"), e.multiple !== !0 && ((Te = R.value) == null || Te.focus(), ke());
|
|
1976
1976
|
};
|
|
1977
|
-
if (e.onNewValue !== void 0 ? t("newValue",
|
|
1977
|
+
if (e.onNewValue !== void 0 ? t("newValue", b.value, P) : P(b.value), e.multiple !== !0) return;
|
|
1978
1978
|
}
|
|
1979
1979
|
u.value === !0 ? Re() : i.innerLoading.value !== !0 && Fe();
|
|
1980
1980
|
}
|
|
@@ -1986,20 +1986,20 @@ const on = ye({
|
|
|
1986
1986
|
return Rt();
|
|
1987
1987
|
}
|
|
1988
1988
|
function ql() {
|
|
1989
|
-
return e.hideSelected === !0 ? [] : l["selected-item"] !== void 0 ? we.value.map((o) => l["selected-item"](o)).slice() : l.selected !== void 0 ? [].concat(l.selected()) : e.useChips === !0 ? we.value.map((o,
|
|
1990
|
-
key: "option-" +
|
|
1989
|
+
return e.hideSelected === !0 ? [] : l["selected-item"] !== void 0 ? we.value.map((o) => l["selected-item"](o)).slice() : l.selected !== void 0 ? [].concat(l.selected()) : e.useChips === !0 ? we.value.map((o, f) => c(Lo, {
|
|
1990
|
+
key: "option-" + f,
|
|
1991
1991
|
removable: i.editable.value === !0 && Be.value(o.opt) !== !0,
|
|
1992
1992
|
dense: !0,
|
|
1993
1993
|
textColor: e.color,
|
|
1994
1994
|
tabindex: ie.value,
|
|
1995
1995
|
onRemove() {
|
|
1996
|
-
o.removeAtIndex(
|
|
1996
|
+
o.removeAtIndex(f);
|
|
1997
1997
|
}
|
|
1998
|
-
}, () =>
|
|
1998
|
+
}, () => c("span", {
|
|
1999
1999
|
class: "ellipsis",
|
|
2000
2000
|
[o.html === !0 ? "innerHTML" : "textContent"]: te.value(o.opt)
|
|
2001
2001
|
}))) : [
|
|
2002
|
-
|
|
2002
|
+
c("span", {
|
|
2003
2003
|
class: "ellipsis",
|
|
2004
2004
|
[We.value === !0 ? "innerHTML" : "textContent"]: ee.value
|
|
2005
2005
|
})
|
|
@@ -2007,33 +2007,33 @@ const on = ye({
|
|
|
2007
2007
|
}
|
|
2008
2008
|
function Ft() {
|
|
2009
2009
|
if (K.value === !0)
|
|
2010
|
-
return l["no-option"] !== void 0 ? l["no-option"]({ inputValue:
|
|
2011
|
-
const o = l.option !== void 0 ? l.option : (
|
|
2012
|
-
key:
|
|
2013
|
-
...
|
|
2014
|
-
}, () =>
|
|
2010
|
+
return l["no-option"] !== void 0 ? l["no-option"]({ inputValue: b.value }) : void 0;
|
|
2011
|
+
const o = l.option !== void 0 ? l.option : (g) => c(ml, {
|
|
2012
|
+
key: g.index,
|
|
2013
|
+
...g.itemProps
|
|
2014
|
+
}, () => c(
|
|
2015
2015
|
it,
|
|
2016
|
-
() =>
|
|
2016
|
+
() => c(
|
|
2017
2017
|
vl,
|
|
2018
|
-
() =>
|
|
2019
|
-
[
|
|
2018
|
+
() => c("span", {
|
|
2019
|
+
[g.html === !0 ? "innerHTML" : "textContent"]: g.label
|
|
2020
2020
|
})
|
|
2021
2021
|
)
|
|
2022
2022
|
));
|
|
2023
|
-
let
|
|
2024
|
-
return l["before-options"] !== void 0 && (
|
|
2023
|
+
let f = ce("div", Ye.value.map(o));
|
|
2024
|
+
return l["before-options"] !== void 0 && (f = l["before-options"]().concat(f)), sl(l["after-options"], f);
|
|
2025
2025
|
}
|
|
2026
|
-
function
|
|
2027
|
-
const
|
|
2028
|
-
ref:
|
|
2026
|
+
function Vl(o, f) {
|
|
2027
|
+
const g = f === !0 ? { ...Xe.value, ...i.splitAttrs.attributes.value } : void 0, T = {
|
|
2028
|
+
ref: f === !0 ? R : void 0,
|
|
2029
2029
|
key: "i_t",
|
|
2030
2030
|
class: I.value,
|
|
2031
2031
|
style: e.inputStyle,
|
|
2032
|
-
value:
|
|
2032
|
+
value: b.value !== void 0 ? b.value : "",
|
|
2033
2033
|
// required for Android in order to show ENTER key when in form
|
|
2034
2034
|
type: "search",
|
|
2035
|
-
...
|
|
2036
|
-
id:
|
|
2035
|
+
...g,
|
|
2036
|
+
id: f === !0 ? i.targetUid.value : void 0,
|
|
2037
2037
|
maxlength: e.maxlength,
|
|
2038
2038
|
autocomplete: e.autocomplete,
|
|
2039
2039
|
"data-autofocus": o === !0 || e.autofocus === !0 || void 0,
|
|
@@ -2041,24 +2041,24 @@ const on = ye({
|
|
|
2041
2041
|
readonly: e.readonly === !0,
|
|
2042
2042
|
...Sl.value
|
|
2043
2043
|
};
|
|
2044
|
-
return o !== !0 && y === !0 && (Array.isArray(T.class) === !0 ? T.class = [...T.class, "no-pointer-events"] : T.class += " no-pointer-events"),
|
|
2044
|
+
return o !== !0 && y === !0 && (Array.isArray(T.class) === !0 ? T.class = [...T.class, "no-pointer-events"] : T.class += " no-pointer-events"), c("input", T);
|
|
2045
2045
|
}
|
|
2046
2046
|
function It(o) {
|
|
2047
|
-
C !== null && (clearTimeout(C), C = null), k !== null && (clearTimeout(k), k = null), !(o && o.target && o.target.qComposing === !0) && (Ge(o.target.value || ""), q = !0, $ =
|
|
2048
|
-
C = null, ze(
|
|
2047
|
+
C !== null && (clearTimeout(C), C = null), k !== null && (clearTimeout(k), k = null), !(o && o.target && o.target.qComposing === !0) && (Ge(o.target.value || ""), q = !0, $ = b.value, i.focused.value !== !0 && (y !== !0 || x.value === !0) && i.focus(), e.onFilter !== void 0 && (C = setTimeout(() => {
|
|
2048
|
+
C = null, ze(b.value);
|
|
2049
2049
|
}, e.inputDebounce)));
|
|
2050
2050
|
}
|
|
2051
|
-
function Ge(o,
|
|
2052
|
-
|
|
2051
|
+
function Ge(o, f) {
|
|
2052
|
+
b.value !== o && (b.value = o, f === !0 || e.inputDebounce === 0 || e.inputDebounce === "0" ? t("inputValue", o) : k = setTimeout(() => {
|
|
2053
2053
|
k = null, t("inputValue", o);
|
|
2054
2054
|
}, e.inputDebounce));
|
|
2055
2055
|
}
|
|
2056
|
-
function De(o,
|
|
2057
|
-
q =
|
|
2056
|
+
function De(o, f, g) {
|
|
2057
|
+
q = g !== !0, e.useInput === !0 && (Ge(o, !0), (f === !0 || g !== !0) && ($ = o), f !== !0 && ze(o));
|
|
2058
2058
|
}
|
|
2059
|
-
function ze(o,
|
|
2060
|
-
if (e.onFilter === void 0 ||
|
|
2061
|
-
i.innerLoading.value === !0 ? t("filterAbort") : (i.innerLoading.value = !0,
|
|
2059
|
+
function ze(o, f, g) {
|
|
2060
|
+
if (e.onFilter === void 0 || f !== !0 && i.focused.value !== !0) return;
|
|
2061
|
+
i.innerLoading.value === !0 ? t("filterAbort") : (i.innerLoading.value = !0, v.value = !0), o !== "" && e.multiple !== !0 && m.value.length !== 0 && q !== !0 && o === te.value(m.value[0]) && (o = "");
|
|
2062
2062
|
const T = setTimeout(() => {
|
|
2063
2063
|
u.value === !0 && (u.value = !1);
|
|
2064
2064
|
}, 10);
|
|
@@ -2066,21 +2066,21 @@ const on = ye({
|
|
|
2066
2066
|
"filter",
|
|
2067
2067
|
o,
|
|
2068
2068
|
(P, N) => {
|
|
2069
|
-
(
|
|
2070
|
-
i.innerLoading.value = !1, i.editable.value === !0 && (
|
|
2069
|
+
(f === !0 || i.focused.value === !0) && S === T && (clearTimeout(S), typeof P == "function" && P(), v.value = !1, ve(() => {
|
|
2070
|
+
i.innerLoading.value = !1, i.editable.value === !0 && (f === !0 ? u.value === !0 && ke() : u.value === !0 ? vt(!0) : u.value = !0), typeof N == "function" && ve(() => {
|
|
2071
2071
|
N(n);
|
|
2072
|
-
}), typeof
|
|
2073
|
-
|
|
2072
|
+
}), typeof g == "function" && ve(() => {
|
|
2073
|
+
g(n);
|
|
2074
2074
|
});
|
|
2075
2075
|
}));
|
|
2076
2076
|
},
|
|
2077
2077
|
() => {
|
|
2078
|
-
i.focused.value === !0 && S === T && (clearTimeout(S), i.innerLoading.value = !1,
|
|
2078
|
+
i.focused.value === !0 && S === T && (clearTimeout(S), i.innerLoading.value = !1, v.value = !1), u.value === !0 && (u.value = !1);
|
|
2079
2079
|
}
|
|
2080
2080
|
);
|
|
2081
2081
|
}
|
|
2082
|
-
function
|
|
2083
|
-
return
|
|
2082
|
+
function xl() {
|
|
2083
|
+
return c(po, {
|
|
2084
2084
|
ref: L,
|
|
2085
2085
|
class: E.value,
|
|
2086
2086
|
style: e.popupContentStyle,
|
|
@@ -2114,26 +2114,26 @@ const on = ye({
|
|
|
2114
2114
|
Z();
|
|
2115
2115
|
}
|
|
2116
2116
|
function Bl(o) {
|
|
2117
|
-
var
|
|
2118
|
-
Le(o), (
|
|
2117
|
+
var f;
|
|
2118
|
+
Le(o), (f = R.value) == null || f.focus(), x.value = !0, window.scrollTo(window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, 0);
|
|
2119
2119
|
}
|
|
2120
2120
|
function El(o) {
|
|
2121
2121
|
Le(o), ve(() => {
|
|
2122
|
-
|
|
2122
|
+
x.value = !1;
|
|
2123
2123
|
});
|
|
2124
2124
|
}
|
|
2125
2125
|
function zl() {
|
|
2126
2126
|
const o = [
|
|
2127
|
-
|
|
2127
|
+
c(Oo, {
|
|
2128
2128
|
class: `col-auto ${i.fieldClass.value}`,
|
|
2129
2129
|
...z.value,
|
|
2130
2130
|
for: i.targetUid.value,
|
|
2131
2131
|
dark: w.value,
|
|
2132
2132
|
square: !0,
|
|
2133
|
-
loading:
|
|
2133
|
+
loading: v.value,
|
|
2134
2134
|
itemAligned: !1,
|
|
2135
2135
|
filled: !0,
|
|
2136
|
-
stackLabel:
|
|
2136
|
+
stackLabel: b.value.length !== 0,
|
|
2137
2137
|
...i.splitAttrs.listeners.value,
|
|
2138
2138
|
onFocus: Bl,
|
|
2139
2139
|
onBlur: El
|
|
@@ -2145,7 +2145,7 @@ const on = ye({
|
|
|
2145
2145
|
})
|
|
2146
2146
|
];
|
|
2147
2147
|
return u.value === !0 && o.push(
|
|
2148
|
-
|
|
2148
|
+
c("div", {
|
|
2149
2149
|
ref: le,
|
|
2150
2150
|
class: E.value + " scroll",
|
|
2151
2151
|
style: e.popupContentStyle,
|
|
@@ -2153,7 +2153,7 @@ const on = ye({
|
|
|
2153
2153
|
onClick: he,
|
|
2154
2154
|
onScrollPassive: h
|
|
2155
2155
|
}, Ft())
|
|
2156
|
-
),
|
|
2156
|
+
), c(No, {
|
|
2157
2157
|
ref: H,
|
|
2158
2158
|
modelValue: a.value,
|
|
2159
2159
|
position: e.useInput === !0 ? "top" : void 0,
|
|
@@ -2165,8 +2165,8 @@ const on = ye({
|
|
|
2165
2165
|
onBeforeHide: Rl,
|
|
2166
2166
|
onHide: Fl,
|
|
2167
2167
|
onShow: Il
|
|
2168
|
-
}, () =>
|
|
2169
|
-
class: "q-select__dialog" + (w.value === !0 ? " q-select__dialog--dark q-dark" : "") + (
|
|
2168
|
+
}, () => c("div", {
|
|
2169
|
+
class: "q-select__dialog" + (w.value === !0 ? " q-select__dialog--dark q-dark" : "") + (x.value === !0 ? " q-select__dialog--focused" : "")
|
|
2170
2170
|
}, o));
|
|
2171
2171
|
}
|
|
2172
2172
|
function Rl(o) {
|
|
@@ -2182,37 +2182,37 @@ const on = ye({
|
|
|
2182
2182
|
(o === null || o.id !== i.targetUid.value) && R.value !== null && R.value !== o && R.value.focus(), Z();
|
|
2183
2183
|
}
|
|
2184
2184
|
function Re() {
|
|
2185
|
-
a.value !== !0 && (
|
|
2185
|
+
a.value !== !0 && (p.value = -1, u.value === !0 && (u.value = !1), i.focused.value === !1 && (S !== null && (clearTimeout(S), S = null), i.innerLoading.value === !0 && (t("filterAbort"), i.innerLoading.value = !1, v.value = !1)));
|
|
2186
2186
|
}
|
|
2187
2187
|
function Fe(o) {
|
|
2188
2188
|
i.editable.value === !0 && (y === !0 ? (i.onControlFocusin(o), a.value = !0, ve(() => {
|
|
2189
2189
|
i.focus();
|
|
2190
|
-
})) : i.focus(), e.onFilter !== void 0 ? ze(
|
|
2190
|
+
})) : i.focus(), e.onFilter !== void 0 ? ze(b.value) : (K.value !== !0 || l["no-option"] !== void 0) && (u.value = !0));
|
|
2191
2191
|
}
|
|
2192
2192
|
function ke() {
|
|
2193
2193
|
a.value = !1, Re();
|
|
2194
2194
|
}
|
|
2195
2195
|
function Ie() {
|
|
2196
2196
|
e.useInput === !0 && De(
|
|
2197
|
-
e.multiple !== !0 && e.fillInput === !0 &&
|
|
2197
|
+
e.multiple !== !0 && e.fillInput === !0 && m.value.length !== 0 && te.value(m.value[0]) || "",
|
|
2198
2198
|
!0,
|
|
2199
2199
|
!0
|
|
2200
2200
|
);
|
|
2201
2201
|
}
|
|
2202
2202
|
function vt(o) {
|
|
2203
|
-
let
|
|
2203
|
+
let f = -1;
|
|
2204
2204
|
if (o === !0) {
|
|
2205
|
-
if (
|
|
2206
|
-
const
|
|
2207
|
-
|
|
2205
|
+
if (m.value.length !== 0) {
|
|
2206
|
+
const g = de.value(m.value[0]);
|
|
2207
|
+
f = e.options.findIndex((T) => pe(de.value(T), g));
|
|
2208
2208
|
}
|
|
2209
|
-
U(
|
|
2209
|
+
U(f);
|
|
2210
2210
|
}
|
|
2211
|
-
Ee(
|
|
2211
|
+
Ee(f);
|
|
2212
2212
|
}
|
|
2213
|
-
function Tl(o,
|
|
2213
|
+
function Tl(o, f) {
|
|
2214
2214
|
u.value === !0 && i.innerLoading.value === !1 && (U(-1, !0), ve(() => {
|
|
2215
|
-
u.value === !0 && i.innerLoading.value === !1 && (o >
|
|
2215
|
+
u.value === !0 && i.innerLoading.value === !1 && (o > f ? U() : vt(!0));
|
|
2216
2216
|
}));
|
|
2217
2217
|
}
|
|
2218
2218
|
function Tt() {
|
|
@@ -2225,7 +2225,7 @@ const on = ye({
|
|
|
2225
2225
|
o !== void 0 && Le(o), t("popupHide", o), i.hasPopupOpen = !1, i.onControlFocusout(o);
|
|
2226
2226
|
}
|
|
2227
2227
|
function Lt() {
|
|
2228
|
-
y =
|
|
2228
|
+
y = d.platform.is.mobile !== !0 && e.behavior !== "dialog" ? !1 : e.behavior !== "menu" && (e.useInput === !0 ? l["no-option"] !== void 0 || e.onFilter !== void 0 || K.value === !1 : !0), j = d.platform.is.ios === !0 && y === !0 && e.useInput === !0 ? "fade" : e.transitionShow;
|
|
2229
2229
|
}
|
|
2230
2230
|
return ol(Lt), Ll(Tt), Lt(), Ae(() => {
|
|
2231
2231
|
C !== null && clearTimeout(C), k !== null && clearTimeout(k);
|
|
@@ -2233,21 +2233,21 @@ const on = ye({
|
|
|
2233
2233
|
showPopup: Fe,
|
|
2234
2234
|
hidePopup: ke,
|
|
2235
2235
|
removeAtIndex: dt,
|
|
2236
|
-
add:
|
|
2236
|
+
add: xt,
|
|
2237
2237
|
toggleOption: Ce,
|
|
2238
|
-
getOptionIndex: () =>
|
|
2238
|
+
getOptionIndex: () => p.value,
|
|
2239
2239
|
setOptionIndex: Ee,
|
|
2240
2240
|
moveOptionSelection: Je,
|
|
2241
2241
|
filter: ze,
|
|
2242
2242
|
updateMenuPosition: Tt,
|
|
2243
2243
|
updateInputValue: De,
|
|
2244
2244
|
isOptionSelected: ft,
|
|
2245
|
-
getEmittingOptionValue:
|
|
2245
|
+
getEmittingOptionValue: Vt,
|
|
2246
2246
|
isOptionDisabled: (...o) => Be.value.apply(null, o) === !0,
|
|
2247
2247
|
getOptionValue: (...o) => de.value.apply(null, o),
|
|
2248
2248
|
getOptionLabel: (...o) => te.value.apply(null, o)
|
|
2249
2249
|
}), Object.assign(i, {
|
|
2250
|
-
innerValue:
|
|
2250
|
+
innerValue: m,
|
|
2251
2251
|
fieldClass: r(
|
|
2252
2252
|
() => `q-select q-field--auto-height q-select--with${e.useInput !== !0 ? "out" : ""}-input q-select--with${e.useChips !== !0 ? "out" : ""}-chips q-select--${e.multiple === !0 ? "multiple" : "single"}`
|
|
2253
2253
|
),
|
|
@@ -2256,11 +2256,11 @@ const on = ye({
|
|
|
2256
2256
|
hasValue: F,
|
|
2257
2257
|
showPopup: Fe,
|
|
2258
2258
|
floatingLabel: r(
|
|
2259
|
-
() => e.hideSelected !== !0 && F.value === !0 || typeof
|
|
2259
|
+
() => e.hideSelected !== !0 && F.value === !0 || typeof b.value == "number" || b.value.length !== 0 || kt(e.displayValue)
|
|
2260
2260
|
),
|
|
2261
2261
|
getControlChild: () => {
|
|
2262
2262
|
if (i.editable.value !== !1 && (a.value === !0 || K.value !== !0 || l["no-option"] !== void 0))
|
|
2263
|
-
return y === !0 ? zl() :
|
|
2263
|
+
return y === !0 ? zl() : xl();
|
|
2264
2264
|
i.hasPopupOpen === !0 && (i.hasPopupOpen = !1);
|
|
2265
2265
|
},
|
|
2266
2266
|
controlEvents: {
|
|
@@ -2273,26 +2273,26 @@ const on = ye({
|
|
|
2273
2273
|
});
|
|
2274
2274
|
},
|
|
2275
2275
|
onClick(o) {
|
|
2276
|
-
var
|
|
2276
|
+
var f;
|
|
2277
2277
|
if (he(o), y !== !0 && u.value === !0) {
|
|
2278
|
-
Re(), (
|
|
2278
|
+
Re(), (f = R.value) == null || f.focus();
|
|
2279
2279
|
return;
|
|
2280
2280
|
}
|
|
2281
2281
|
Fe(o);
|
|
2282
2282
|
}
|
|
2283
2283
|
},
|
|
2284
2284
|
getControl: (o) => {
|
|
2285
|
-
const
|
|
2285
|
+
const f = ql(), g = o === !0 || a.value !== !0 || y !== !0;
|
|
2286
2286
|
if (e.useInput === !0)
|
|
2287
|
-
|
|
2287
|
+
f.push(Vl(o, g));
|
|
2288
2288
|
else if (i.editable.value === !0) {
|
|
2289
|
-
const P =
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
ref:
|
|
2289
|
+
const P = g === !0 ? Xe.value : void 0;
|
|
2290
|
+
f.push(
|
|
2291
|
+
c("input", {
|
|
2292
|
+
ref: g === !0 ? R : void 0,
|
|
2293
2293
|
key: "d_t",
|
|
2294
2294
|
class: "q-select__focus-target",
|
|
2295
|
-
id:
|
|
2295
|
+
id: g === !0 ? i.targetUid.value : void 0,
|
|
2296
2296
|
value: ee.value,
|
|
2297
2297
|
readonly: !0,
|
|
2298
2298
|
"data-autofocus": o === !0 || e.autofocus === !0 || void 0,
|
|
@@ -2301,8 +2301,8 @@ const on = ye({
|
|
|
2301
2301
|
onKeyup: At,
|
|
2302
2302
|
onKeypress: Et
|
|
2303
2303
|
})
|
|
2304
|
-
),
|
|
2305
|
-
|
|
2304
|
+
), g === !0 && typeof e.autocomplete == "string" && e.autocomplete.length !== 0 && f.push(
|
|
2305
|
+
c("input", {
|
|
2306
2306
|
class: "q-select__autocomplete-input",
|
|
2307
2307
|
autocomplete: e.autocomplete,
|
|
2308
2308
|
tabindex: -1,
|
|
@@ -2311,29 +2311,29 @@ const on = ye({
|
|
|
2311
2311
|
);
|
|
2312
2312
|
}
|
|
2313
2313
|
if (W.value !== void 0 && e.disable !== !0 && Ze.value.length !== 0) {
|
|
2314
|
-
const P = Ze.value.map((N) =>
|
|
2315
|
-
|
|
2316
|
-
|
|
2314
|
+
const P = Ze.value.map((N) => c("option", { value: N, selected: !0 }));
|
|
2315
|
+
f.push(
|
|
2316
|
+
c("select", {
|
|
2317
2317
|
class: "hidden",
|
|
2318
2318
|
name: W.value,
|
|
2319
2319
|
multiple: e.multiple
|
|
2320
2320
|
}, P)
|
|
2321
2321
|
);
|
|
2322
2322
|
}
|
|
2323
|
-
const T = e.useInput === !0 ||
|
|
2324
|
-
return
|
|
2323
|
+
const T = e.useInput === !0 || g !== !0 ? void 0 : i.splitAttrs.attributes.value;
|
|
2324
|
+
return c("div", {
|
|
2325
2325
|
class: "q-field__native row items-center",
|
|
2326
2326
|
...T,
|
|
2327
2327
|
...i.splitAttrs.listeners.value
|
|
2328
|
-
},
|
|
2328
|
+
}, f);
|
|
2329
2329
|
},
|
|
2330
|
-
getInnerAppend: () => e.loading !== !0 &&
|
|
2331
|
-
|
|
2330
|
+
getInnerAppend: () => e.loading !== !0 && v.value !== !0 && e.hideDropdownIcon !== !0 ? [
|
|
2331
|
+
c(_e, {
|
|
2332
2332
|
class: "q-select__dropdown-icon" + (u.value === !0 ? " rotate-180" : ""),
|
|
2333
2333
|
name: He.value
|
|
2334
2334
|
})
|
|
2335
2335
|
] : null
|
|
2336
|
-
}),
|
|
2336
|
+
}), bl(i);
|
|
2337
2337
|
}
|
|
2338
2338
|
}), nn = { class: "app-select__amount" }, un = /* @__PURE__ */ $l({
|
|
2339
2339
|
__name: "AppSelect",
|
|
@@ -2356,57 +2356,57 @@ const on = ye({
|
|
|
2356
2356
|
},
|
|
2357
2357
|
emits: ["update:modelValue"],
|
|
2358
2358
|
setup(e, { emit: l }) {
|
|
2359
|
-
const t = e, n = l,
|
|
2359
|
+
const t = e, n = l, d = O(!1), u = O(""), a = r({
|
|
2360
2360
|
get() {
|
|
2361
2361
|
if (t.modelValue) {
|
|
2362
2362
|
if (t.multiple && Array.isArray(t.modelValue))
|
|
2363
2363
|
return t.options.filter(
|
|
2364
|
-
(
|
|
2364
|
+
(s) => t.modelValue.includes(s.value)
|
|
2365
2365
|
);
|
|
2366
2366
|
if (!Array.isArray(t.modelValue))
|
|
2367
2367
|
return t.options.find(
|
|
2368
|
-
(
|
|
2368
|
+
(s) => s.value === t.modelValue
|
|
2369
2369
|
);
|
|
2370
2370
|
}
|
|
2371
2371
|
},
|
|
2372
|
-
set(
|
|
2373
|
-
if (!
|
|
2372
|
+
set(s) {
|
|
2373
|
+
if (!s) {
|
|
2374
2374
|
n("update:modelValue", void 0);
|
|
2375
2375
|
return;
|
|
2376
2376
|
}
|
|
2377
|
-
if (t.multiple && Array.isArray(
|
|
2378
|
-
const y =
|
|
2377
|
+
if (t.multiple && Array.isArray(s)) {
|
|
2378
|
+
const y = s.map((q) => q.value);
|
|
2379
2379
|
n("update:modelValue", y);
|
|
2380
|
-
} else Array.isArray(
|
|
2380
|
+
} else Array.isArray(s) || n("update:modelValue", s.value);
|
|
2381
2381
|
}
|
|
2382
|
-
}),
|
|
2383
|
-
var
|
|
2382
|
+
}), p = r(() => {
|
|
2383
|
+
var s;
|
|
2384
2384
|
if (Array.isArray(a.value)) {
|
|
2385
2385
|
if (t.multiple && a.value.length == 0)
|
|
2386
2386
|
return t.placeholder;
|
|
2387
|
-
} else return ((
|
|
2387
|
+
} else return ((s = a.value) == null ? void 0 : s.label) || t.placeholder || "";
|
|
2388
2388
|
return "";
|
|
2389
|
-
}),
|
|
2390
|
-
(
|
|
2391
|
-
) : t.options),
|
|
2389
|
+
}), b = r(() => !(!t.clearable || !t.modelValue || t.modelValue && Array.isArray(t.modelValue) && !t.modelValue.length)), x = r(() => u.value ? t.options.filter(
|
|
2390
|
+
(s) => s.label.toLowerCase().includes(u.value.toLowerCase())
|
|
2391
|
+
) : t.options), v = r(() => {
|
|
2392
2392
|
if (t.rules)
|
|
2393
2393
|
return t.required ? [...t.rules, Dt] : t.rules;
|
|
2394
2394
|
if (t.required)
|
|
2395
2395
|
return [Dt];
|
|
2396
2396
|
}), C = () => {
|
|
2397
2397
|
a.value = void 0;
|
|
2398
|
-
}, k = (
|
|
2398
|
+
}, k = (s, y) => {
|
|
2399
2399
|
y(() => {
|
|
2400
|
-
u.value =
|
|
2400
|
+
u.value = s;
|
|
2401
2401
|
});
|
|
2402
2402
|
};
|
|
2403
|
-
return (
|
|
2404
|
-
class: et(["app-select", [{ "app-select_opened":
|
|
2403
|
+
return (s, y) => (ae(), fe("div", {
|
|
2404
|
+
class: et(["app-select", [{ "app-select_opened": d.value }, `app-select_${s.size}`]])
|
|
2405
2405
|
}, [
|
|
2406
|
-
|
|
2406
|
+
s.label ? (ae(), fe("label", {
|
|
2407
2407
|
key: 0,
|
|
2408
|
-
class: et(["app-select__label", { "app-select__label_bold":
|
|
2409
|
-
}, Ke(
|
|
2408
|
+
class: et(["app-select__label", { "app-select__label_bold": s.required }])
|
|
2409
|
+
}, Ke(s.required ? `${s.label} *` : s.label), 3)) : Me("", !0),
|
|
2410
2410
|
je(Hl(on), {
|
|
2411
2411
|
standout: "",
|
|
2412
2412
|
"hide-bottom-space": "",
|
|
@@ -2414,25 +2414,25 @@ const on = ye({
|
|
|
2414
2414
|
"no-error-icon": "",
|
|
2415
2415
|
behavior: "menu",
|
|
2416
2416
|
"popup-no-route-dismiss": "",
|
|
2417
|
-
"popup-content-class": `app-select-menu app-select-menu_${
|
|
2418
|
-
placeholder:
|
|
2417
|
+
"popup-content-class": `app-select-menu app-select-menu_${s.size} ${s.menuClass}`,
|
|
2418
|
+
placeholder: s.filtering && "Почніть вводити",
|
|
2419
2419
|
"input-debounce": "50",
|
|
2420
2420
|
modelValue: a.value,
|
|
2421
2421
|
"onUpdate:modelValue": y[0] || (y[0] = (q) => a.value = q),
|
|
2422
|
-
options:
|
|
2423
|
-
multiple:
|
|
2424
|
-
"use-input":
|
|
2425
|
-
rules:
|
|
2426
|
-
"lazy-rules":
|
|
2427
|
-
autofocus:
|
|
2428
|
-
disable:
|
|
2429
|
-
loading:
|
|
2422
|
+
options: x.value,
|
|
2423
|
+
multiple: s.multiple,
|
|
2424
|
+
"use-input": s.filtering && (Array.isArray(a.value) || !a.value),
|
|
2425
|
+
rules: v.value,
|
|
2426
|
+
"lazy-rules": s.lazyRules,
|
|
2427
|
+
autofocus: s.autofocus,
|
|
2428
|
+
disable: s.disabled,
|
|
2429
|
+
loading: s.loading,
|
|
2430
2430
|
onFilter: k,
|
|
2431
|
-
onPopupShow: y[1] || (y[1] = (q) =>
|
|
2432
|
-
onPopupHide: y[2] || (y[2] = (q) =>
|
|
2431
|
+
onPopupShow: y[1] || (y[1] = (q) => d.value = !0),
|
|
2432
|
+
onPopupHide: y[2] || (y[2] = (q) => d.value = !1)
|
|
2433
2433
|
}, {
|
|
2434
2434
|
append: ge(() => [
|
|
2435
|
-
|
|
2435
|
+
b.value ? (ae(), fe("i", {
|
|
2436
2436
|
key: 0,
|
|
2437
2437
|
class: "icon-kl icon-kl-circle-close app-select__clear",
|
|
2438
2438
|
onClick: Dl(C, ["stop", "prevent"])
|
|
@@ -2443,12 +2443,12 @@ const on = ye({
|
|
|
2443
2443
|
var q, S;
|
|
2444
2444
|
return [
|
|
2445
2445
|
Array.isArray(a.value) ? (ae(), fe(tt, { key: 0 }, [
|
|
2446
|
-
!
|
|
2446
|
+
!s.filtering || a.value.length ? (ae(), fe("span", {
|
|
2447
2447
|
key: 0,
|
|
2448
2448
|
class: et([
|
|
2449
2449
|
"app-select__selected",
|
|
2450
2450
|
{
|
|
2451
|
-
"app-select__placeholder": !((q = a.value) != null && q.length) &&
|
|
2451
|
+
"app-select__placeholder": !((q = a.value) != null && q.length) && s.placeholder
|
|
2452
2452
|
}
|
|
2453
2453
|
])
|
|
2454
2454
|
}, [
|
|
@@ -2460,13 +2460,13 @@ const on = ye({
|
|
|
2460
2460
|
], 64))
|
|
2461
2461
|
], 2)) : Me("", !0)
|
|
2462
2462
|
], 64)) : (ae(), fe(tt, { key: 1 }, [
|
|
2463
|
-
!
|
|
2463
|
+
!s.filtering || a.value ? (ae(), fe("span", {
|
|
2464
2464
|
key: 0,
|
|
2465
2465
|
class: et([
|
|
2466
2466
|
"app-select__selected",
|
|
2467
|
-
{ "app-select__placeholder": !a.value &&
|
|
2467
|
+
{ "app-select__placeholder": !a.value && s.placeholder }
|
|
2468
2468
|
])
|
|
2469
|
-
}, Ke(
|
|
2469
|
+
}, Ke(p.value), 3)) : Me("", !0)
|
|
2470
2470
|
], 64))
|
|
2471
2471
|
];
|
|
2472
2472
|
}),
|