@quidgest/ui 0.16.52 → 0.16.54
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/json/api.json +35 -32
- package/dist/ui.esm.js +5125 -5134
- package/dist/ui.js +8 -8
- package/dist/ui.min.js +32 -32
- package/dist/ui.scss +2 -2
- package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts +1 -0
- package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts.map +1 -1
- package/esm/components/QBadgeIndicator/QBadgeIndicator.vue.js +24 -22
- package/esm/components/QBadgeIndicator/index.d.ts +3 -0
- package/esm/components/QBadgeIndicator/index.d.ts.map +1 -1
- package/esm/components/QBadgeIndicator/types.d.ts +7 -0
- package/esm/components/QBadgeIndicator/types.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.d.ts +4 -13
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +71 -78
- package/esm/components/QDialog/QDialogProvider.d.ts.map +1 -1
- package/esm/components/QDialog/QDialogProvider.vue.js +16 -17
- package/esm/components/QDialog/index.d.ts +10 -85
- package/esm/components/QDialog/index.d.ts.map +1 -1
- package/esm/components/QDialog/types.d.ts +6 -0
- package/esm/components/QDialog/types.d.ts.map +1 -1
- package/esm/components/QIcon/InlineSvg.js +8 -8
- package/esm/components/QOverlay/QOverlay.d.ts +4 -9
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +156 -158
- package/esm/components/QOverlay/index.d.ts +10 -93
- package/esm/components/QOverlay/index.d.ts.map +1 -1
- package/esm/components/QOverlay/types.d.ts +6 -0
- package/esm/components/QOverlay/types.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +14 -13
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +44 -46
- package/esm/composables/useDialog/index.d.ts +1 -0
- package/esm/composables/useDialog/index.d.ts.map +1 -1
- package/esm/composables/useDialog/index.js +11 -11
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as p, mergeModels as u, useModel as f, computed as y, createBlock as i, openBlock as
|
|
2
|
-
import { QMeter as
|
|
3
|
-
import { QOverlay as
|
|
1
|
+
import { defineComponent as p, mergeModels as u, useModel as f, computed as y, createBlock as i, openBlock as s, unref as c, withCtx as h, createElementVNode as d, createElementBlock as v, createCommentVNode as m, createVNode as B, toDisplayString as g } from "vue";
|
|
2
|
+
import { QMeter as V } from "../QMeter/index.js";
|
|
3
|
+
import { QOverlay as _ } from "../QOverlay/index.js";
|
|
4
4
|
import k from "./QPasswordFieldMessages.vue.js";
|
|
5
5
|
const w = { class: "q-password-field__meter" }, M = {
|
|
6
6
|
key: 0,
|
|
@@ -11,6 +11,7 @@ const w = { class: "q-password-field__meter" }, M = {
|
|
|
11
11
|
props: /* @__PURE__ */ u({
|
|
12
12
|
id: {},
|
|
13
13
|
class: {},
|
|
14
|
+
modelValue: { type: Boolean },
|
|
14
15
|
anchor: {},
|
|
15
16
|
appearance: {},
|
|
16
17
|
arrow: { type: Boolean },
|
|
@@ -43,8 +44,8 @@ const w = { class: "q-password-field__meter" }, M = {
|
|
|
43
44
|
modelModifiers: {}
|
|
44
45
|
}),
|
|
45
46
|
emits: ["update:modelValue"],
|
|
46
|
-
setup(
|
|
47
|
-
const o =
|
|
47
|
+
setup(n) {
|
|
48
|
+
const o = n, r = f(n, "modelValue"), a = y(() => {
|
|
48
49
|
if (!o.levels.length) {
|
|
49
50
|
console.warn("Levels array is empty.");
|
|
50
51
|
return;
|
|
@@ -59,9 +60,9 @@ const w = { class: "q-password-field__meter" }, M = {
|
|
|
59
60
|
}
|
|
60
61
|
return o.levels[o.levels.length - 1];
|
|
61
62
|
});
|
|
62
|
-
return (t, l) => (
|
|
63
|
-
modelValue:
|
|
64
|
-
"onUpdate:modelValue": l[0] || (l[0] = (e) =>
|
|
63
|
+
return (t, l) => (s(), i(c(_), {
|
|
64
|
+
modelValue: r.value,
|
|
65
|
+
"onUpdate:modelValue": l[0] || (l[0] = (e) => r.value = e),
|
|
65
66
|
trigger: "manual",
|
|
66
67
|
anchor: o.anchor,
|
|
67
68
|
width: "anchor",
|
|
@@ -72,21 +73,21 @@ const w = { class: "q-password-field__meter" }, M = {
|
|
|
72
73
|
var e;
|
|
73
74
|
return [
|
|
74
75
|
d("div", w, [
|
|
75
|
-
|
|
76
|
-
|
|
76
|
+
a.value ? (s(), v("div", M, [
|
|
77
|
+
B(c(V), {
|
|
77
78
|
"model-value": o.score,
|
|
78
79
|
max: 1,
|
|
79
|
-
color:
|
|
80
|
+
color: a.value.color
|
|
80
81
|
}, null, 8, ["model-value", "color"]),
|
|
81
82
|
d(
|
|
82
83
|
"span",
|
|
83
84
|
null,
|
|
84
|
-
|
|
85
|
+
g(a.value.label),
|
|
85
86
|
1
|
|
86
87
|
/* TEXT */
|
|
87
88
|
)
|
|
88
89
|
])) : m("v-if", !0),
|
|
89
|
-
(e = t.messages) != null && e.length ? (
|
|
90
|
+
(e = t.messages) != null && e.length ? (s(), i(k, {
|
|
90
91
|
key: 1,
|
|
91
92
|
messages: t.messages
|
|
92
93
|
}, null, 8, ["messages"])) : m("v-if", !0)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/QSelect.vue"],"names":[],"mappings":"AAoMA;
|
|
1
|
+
{"version":3,"file":"QSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/QSelect.vue"],"names":[],"mappings":"AAoMA;AA+hBC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAe1D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AACpC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAG3C,OAAO,EAAY,QAAQ,EAAgD,MAAM,KAAK,CAAA;AAMtF,KAAK,WAAW,GAAG,YAAY,CAAC;AAwUjC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,GAAG,CAAC;CAChB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAkeT,OAAO,IAA6B;;yBAtBpB,GAAG;wBACJ,GAAG;wBACH,GAAG;gCACK,GAAG;;;YACZ,GAAG;+BACM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCArX5B,GAAG,8CACL,GAAG,yBACG,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAF7C,GAAG,8CACL,GAAG,yBACG,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAF7C,GAAG,8CACL,GAAG,yBACG,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAF7C,GAAG,8CACL,GAAG,yBACG,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyYxD;AAoCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAhbT,GAAG,8CACL,GAAG,yBACG,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAF7C,GAAG,8CACL,GAAG,yBACG,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAF7C,GAAG,8CACL,GAAG,yBACG,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAF7C,GAAG,8CACL,GAAG,yBACG,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAubvD,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as fe, mergeModels as Z, useModel as me, toRef as
|
|
1
|
+
import { defineComponent as fe, mergeModels as Z, useModel as me, toRef as z, ref as ee, useTemplateRef as g, onMounted as pe, computed as q, nextTick as $, watch as D, createElementBlock as c, openBlock as a, Fragment as y, createVNode as T, unref as o, normalizeClass as ve, createSlots as be, withCtx as f, withDirectives as ye, createBlock as m, createCommentVNode as p, renderList as le, createTextVNode as w, mergeProps as B, toDisplayString as h, normalizeProps as te, createElementVNode as ae, vModelText as ge, renderSlot as k, withModifiers as he } from "vue";
|
|
2
2
|
import { DEFAULT_TEXTS as ke, DEFAULT_ICONS as _e } from "./constants.js";
|
|
3
|
-
import { QBadge as
|
|
3
|
+
import { QBadge as M } from "../QBadge/index.js";
|
|
4
4
|
import { QButton as qe } from "../QButton/index.js";
|
|
5
5
|
import { QField as we } from "../QField/index.js";
|
|
6
|
-
import { QIcon as
|
|
6
|
+
import { QIcon as Q } from "../QIcon/index.js";
|
|
7
7
|
import { QList as Be } from "../QList/index.js";
|
|
8
8
|
import { QOverlay as Ce } from "../QOverlay/index.js";
|
|
9
9
|
import { QSpinnerLoader as Ve } from "../QSpinnerLoader/index.js";
|
|
10
10
|
import { QChevron as Le } from "../__internal__/QChevron/index.js";
|
|
11
11
|
import { QClearButton as Ee } from "../__internal__/QClearButton/index.js";
|
|
12
12
|
import { useId as xe } from "../../composables/uid.js";
|
|
13
|
-
import { useGroup as
|
|
14
|
-
const
|
|
13
|
+
import { useGroup as $e } from "../../composables/useGroup/index.js";
|
|
14
|
+
const De = {
|
|
15
15
|
key: 0,
|
|
16
16
|
ref: "badgesContainer",
|
|
17
17
|
class: "q-select__badge-container"
|
|
18
|
-
},
|
|
18
|
+
}, Te = {
|
|
19
19
|
key: 1,
|
|
20
20
|
class: "q-select__value"
|
|
21
21
|
}, Me = {
|
|
@@ -55,10 +55,10 @@ const $e = {
|
|
|
55
55
|
}),
|
|
56
56
|
emits: /* @__PURE__ */ Z(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
|
|
57
57
|
setup(O, { emit: oe }) {
|
|
58
|
-
const e = O, C = oe, r = me(O, "modelValue"),
|
|
58
|
+
const e = O, C = oe, r = me(O, "modelValue"), R = xe(z(e, "id")), { active: F } = $e({
|
|
59
59
|
active: r,
|
|
60
|
-
required:
|
|
61
|
-
multiple:
|
|
60
|
+
required: z(e, "required"),
|
|
61
|
+
multiple: z(e, "multiple")
|
|
62
62
|
}), u = ee(!1), V = ee(0), K = g("trigger"), ie = g("input"), ne = g("list"), U = g("content"), N = g("badgesContainer"), W = g("allBadges");
|
|
63
63
|
pe(x);
|
|
64
64
|
const P = q(() => s.value.length === 0), s = q(() => {
|
|
@@ -73,7 +73,7 @@ const $e = {
|
|
|
73
73
|
return (t = e.items) == null || t.forEach((d, i) => {
|
|
74
74
|
l.set(d.key, i);
|
|
75
75
|
}), l;
|
|
76
|
-
}),
|
|
76
|
+
}), S = q(
|
|
77
77
|
() => {
|
|
78
78
|
var l;
|
|
79
79
|
return (l = s.value) == null ? void 0 : l.map((t) => t[e.itemLabel]).join(", ");
|
|
@@ -88,11 +88,11 @@ const $e = {
|
|
|
88
88
|
function se(l) {
|
|
89
89
|
e.multiple && l < r.value.length && (!e.required || r.value.length > 1) ? F.value = r.value.toSpliced(l, 1) : _();
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function A(l) {
|
|
92
92
|
Array.isArray(l) ? (r.value = l.sort((t, d) => H.value.get(t) - H.value.get(d)), x()) : (r.value = l, E());
|
|
93
93
|
}
|
|
94
94
|
function _() {
|
|
95
|
-
|
|
95
|
+
A(e.emptyValue), J();
|
|
96
96
|
}
|
|
97
97
|
function re(l) {
|
|
98
98
|
var t, d, i;
|
|
@@ -107,17 +107,15 @@ const $e = {
|
|
|
107
107
|
function X() {
|
|
108
108
|
e.readonly || e.disabled || (u.value ? E() : G());
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function I(l) {
|
|
111
111
|
!l.key || e.readonly || e.disabled || (["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End", "Delete"].includes(l.key) && (l.preventDefault(), l.stopPropagation()), ["Enter", " ", "ArrowDown"].includes(l.key) && G(), ["Escape", "Tab"].includes(l.key) && (u.value ? E() : L.value && l.key === "Escape" && _()), L.value && l.key === "Delete" && _());
|
|
112
112
|
}
|
|
113
113
|
function de(l) {
|
|
114
|
-
l.key.length === 1 && l.preventDefault(),
|
|
114
|
+
l.key.length === 1 && l.preventDefault(), I(l);
|
|
115
115
|
}
|
|
116
|
-
function ue() {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
e.loading ? (l = U.value) == null || l.focus() : Y(), C("show");
|
|
120
|
-
}, 0);
|
|
116
|
+
async function ue() {
|
|
117
|
+
var l;
|
|
118
|
+
await $(), e.loading ? (l = U.value) == null || l.focus() : Y(), C("show");
|
|
121
119
|
}
|
|
122
120
|
function ce() {
|
|
123
121
|
J(), C("hide");
|
|
@@ -132,7 +130,7 @@ const $e = {
|
|
|
132
130
|
}
|
|
133
131
|
async function x() {
|
|
134
132
|
var n;
|
|
135
|
-
if (await
|
|
133
|
+
if (await $(), await $(), !e.multiple || !e.badges || !N.value) return;
|
|
136
134
|
let l = 0, t = 0;
|
|
137
135
|
const d = N.value.offsetWidth, i = 4;
|
|
138
136
|
for (const b of W.value ?? []) {
|
|
@@ -143,19 +141,19 @@ const $e = {
|
|
|
143
141
|
}
|
|
144
142
|
V.value = (((n = W.value) == null ? void 0 : n.length) ?? 0) - t;
|
|
145
143
|
}
|
|
146
|
-
return
|
|
144
|
+
return D(
|
|
147
145
|
() => e.loading,
|
|
148
146
|
(l) => {
|
|
149
|
-
!l && u.value &&
|
|
147
|
+
!l && u.value && $(Y);
|
|
150
148
|
}
|
|
151
|
-
),
|
|
149
|
+
), D(() => e.badges, x), D(() => e.clearable, x), D(F, A), (l, t) => {
|
|
152
150
|
var d;
|
|
153
151
|
return a(), c(
|
|
154
152
|
y,
|
|
155
153
|
null,
|
|
156
154
|
[
|
|
157
|
-
|
|
158
|
-
id: o(
|
|
155
|
+
T(o(we), {
|
|
156
|
+
id: o(R),
|
|
159
157
|
ref: "trigger",
|
|
160
158
|
label: e.label,
|
|
161
159
|
required: e.required,
|
|
@@ -173,7 +171,7 @@ const $e = {
|
|
|
173
171
|
size: e.size,
|
|
174
172
|
invalid: e.invalid,
|
|
175
173
|
onClick: X,
|
|
176
|
-
onKeydown:
|
|
174
|
+
onKeydown: I
|
|
177
175
|
}, be({
|
|
178
176
|
append: f(() => [
|
|
179
177
|
k(l.$slots, "append"),
|
|
@@ -195,7 +193,7 @@ const $e = {
|
|
|
195
193
|
onClick: X
|
|
196
194
|
}, {
|
|
197
195
|
default: f(() => [
|
|
198
|
-
|
|
196
|
+
T(o(Le), {
|
|
199
197
|
"model-value": u.value,
|
|
200
198
|
icons: e.icons
|
|
201
199
|
}, null, 8, ["model-value", "icons"])
|
|
@@ -225,7 +223,7 @@ const $e = {
|
|
|
225
223
|
[
|
|
226
224
|
e.badges ? (a(), c(
|
|
227
225
|
"span",
|
|
228
|
-
|
|
226
|
+
De,
|
|
229
227
|
[
|
|
230
228
|
e.multiple ? (a(), c(
|
|
231
229
|
y,
|
|
@@ -238,7 +236,7 @@ const $e = {
|
|
|
238
236
|
y,
|
|
239
237
|
{ key: n },
|
|
240
238
|
[
|
|
241
|
-
n < r.value.length - V.value ? (a(), m(o(
|
|
239
|
+
n < r.value.length - V.value ? (a(), m(o(M), {
|
|
242
240
|
key: 0,
|
|
243
241
|
pill: "",
|
|
244
242
|
disabled: e.readonly || e.disabled,
|
|
@@ -250,7 +248,7 @@ const $e = {
|
|
|
250
248
|
var b, v;
|
|
251
249
|
return [
|
|
252
250
|
(b = s.value[n]) != null && b.icon ? (a(), m(
|
|
253
|
-
o(
|
|
251
|
+
o(Q),
|
|
254
252
|
B({
|
|
255
253
|
key: 0,
|
|
256
254
|
ref_for: !0
|
|
@@ -276,7 +274,7 @@ const $e = {
|
|
|
276
274
|
128
|
|
277
275
|
/* KEYED_FRAGMENT */
|
|
278
276
|
)),
|
|
279
|
-
V.value > 0 ? (a(), m(o(
|
|
277
|
+
V.value > 0 ? (a(), m(o(M), {
|
|
280
278
|
key: 0,
|
|
281
279
|
pill: "",
|
|
282
280
|
class: "q-select__badge-count",
|
|
@@ -295,7 +293,7 @@ const $e = {
|
|
|
295
293
|
(a(!0), c(
|
|
296
294
|
y,
|
|
297
295
|
null,
|
|
298
|
-
le(r.value, (i, n) => (a(), m(o(
|
|
296
|
+
le(r.value, (i, n) => (a(), m(o(M), {
|
|
299
297
|
key: n,
|
|
300
298
|
ref_for: !0,
|
|
301
299
|
ref: "allBadges",
|
|
@@ -308,7 +306,7 @@ const $e = {
|
|
|
308
306
|
var b, v;
|
|
309
307
|
return [
|
|
310
308
|
(b = s.value[n]) != null && b.icon ? (a(), m(
|
|
311
|
-
o(
|
|
309
|
+
o(Q),
|
|
312
310
|
B({
|
|
313
311
|
key: 0,
|
|
314
312
|
ref_for: !0
|
|
@@ -333,7 +331,7 @@ const $e = {
|
|
|
333
331
|
],
|
|
334
332
|
64
|
|
335
333
|
/* STABLE_FRAGMENT */
|
|
336
|
-
)) : (a(), m(o(
|
|
334
|
+
)) : (a(), m(o(M), {
|
|
337
335
|
key: 1,
|
|
338
336
|
pill: "",
|
|
339
337
|
disabled: e.readonly || e.disabled,
|
|
@@ -345,7 +343,7 @@ const $e = {
|
|
|
345
343
|
var i, n;
|
|
346
344
|
return [
|
|
347
345
|
(i = s.value[0]) != null && i.icon ? (a(), m(
|
|
348
|
-
o(
|
|
346
|
+
o(Q),
|
|
349
347
|
te(B({ key: 0 }, s.value[0].icon)),
|
|
350
348
|
null,
|
|
351
349
|
16
|
|
@@ -366,8 +364,8 @@ const $e = {
|
|
|
366
364
|
/* NEED_PATCH */
|
|
367
365
|
)) : (a(), c(
|
|
368
366
|
"span",
|
|
369
|
-
|
|
370
|
-
h(
|
|
367
|
+
Te,
|
|
368
|
+
h(S.value),
|
|
371
369
|
1
|
|
372
370
|
/* TEXT */
|
|
373
371
|
))
|
|
@@ -376,10 +374,10 @@ const $e = {
|
|
|
376
374
|
/* STABLE_FRAGMENT */
|
|
377
375
|
)),
|
|
378
376
|
ye(ae("input", B({
|
|
379
|
-
id: `${o(
|
|
377
|
+
id: `${o(R)}_input`,
|
|
380
378
|
ref: "input"
|
|
381
379
|
}, l.$attrs, {
|
|
382
|
-
"onUpdate:modelValue": t[0] || (t[0] = (i) =>
|
|
380
|
+
"onUpdate:modelValue": t[0] || (t[0] = (i) => S.value = i),
|
|
383
381
|
class: "q-select__input",
|
|
384
382
|
inputmode: "none",
|
|
385
383
|
type: "text",
|
|
@@ -391,7 +389,7 @@ const $e = {
|
|
|
391
389
|
"aria-keyshortcuts": L.value ? "Delete" : void 0,
|
|
392
390
|
onKeydown: de
|
|
393
391
|
}), null, 16, Qe), [
|
|
394
|
-
[ge,
|
|
392
|
+
[ge, S.value]
|
|
395
393
|
])
|
|
396
394
|
]),
|
|
397
395
|
_: 2
|
|
@@ -402,7 +400,7 @@ const $e = {
|
|
|
402
400
|
fn: f(() => [
|
|
403
401
|
k(l.$slots, "prepend"),
|
|
404
402
|
s.value.length === 1 && s.value[0].icon && !e.badges ? (a(), m(
|
|
405
|
-
o(
|
|
403
|
+
o(Q),
|
|
406
404
|
te(B({ key: 0 }, s.value[0].icon)),
|
|
407
405
|
null,
|
|
408
406
|
16
|
|
@@ -419,7 +417,7 @@ const $e = {
|
|
|
419
417
|
key: "1"
|
|
420
418
|
} : void 0
|
|
421
419
|
]), 1032, ["id", "label", "required", "class", "readonly", "disabled", "data-loading", "size", "invalid"]),
|
|
422
|
-
|
|
420
|
+
T(o(Ce), {
|
|
423
421
|
modelValue: u.value,
|
|
424
422
|
"onUpdate:modelValue": t[1] || (t[1] = (i) => u.value = i),
|
|
425
423
|
spy: "",
|
|
@@ -437,15 +435,15 @@ const $e = {
|
|
|
437
435
|
ae("div", {
|
|
438
436
|
ref: "content",
|
|
439
437
|
"data-testid": "combobox-dropdown",
|
|
440
|
-
"data-key": o(
|
|
438
|
+
"data-key": o(R),
|
|
441
439
|
class: "q-select__body",
|
|
442
440
|
tabindex: "-1",
|
|
443
441
|
onFocusout: re,
|
|
444
|
-
onKeydown: he(
|
|
442
|
+
onKeydown: he(I, ["stop"])
|
|
445
443
|
}, [
|
|
446
444
|
k(l.$slots, "body.prepend"),
|
|
447
445
|
e.loading ? (a(), c("div", Se, [
|
|
448
|
-
|
|
446
|
+
T(o(Ve), { size: 24 })
|
|
449
447
|
])) : (a(), m(o(Be), {
|
|
450
448
|
key: 1,
|
|
451
449
|
ref: "list",
|
|
@@ -458,7 +456,7 @@ const $e = {
|
|
|
458
456
|
groups: l.groups,
|
|
459
457
|
"item-label": e.itemLabel,
|
|
460
458
|
"item-value": e.itemValue,
|
|
461
|
-
"onUpdate:modelValue":
|
|
459
|
+
"onUpdate:modelValue": A
|
|
462
460
|
}, {
|
|
463
461
|
item: f(({ item: i }) => [
|
|
464
462
|
k(l.$slots, "item", { item: i })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useDialog/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAA;AASrF;;;;GAIG;AACH,wBAAgB,SAAS;uBASE,YAAY,OAAO,MAAM,YAAY,cAAc;uBAgBnD,MAAM
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useDialog/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAA;AASrF;;;;GAIG;AACH,wBAAgB,SAAS;uBASE,YAAY,OAAO,MAAM,YAAY,cAAc;uBAgBnD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAaq4C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EADt6C"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { reactive as
|
|
2
|
-
import { useId as
|
|
3
|
-
const
|
|
1
|
+
import { reactive as r } from "vue";
|
|
2
|
+
import { useId as s } from "../uid.js";
|
|
3
|
+
const i = r({ dialogs: [] });
|
|
4
4
|
function c() {
|
|
5
|
-
function
|
|
6
|
-
const
|
|
7
|
-
return
|
|
5
|
+
function n(e, o, d) {
|
|
6
|
+
const t = s(o).value;
|
|
7
|
+
return i.dialogs.push({ id: t, props: { ...e, modelValue: !0 }, options: d }), t;
|
|
8
8
|
}
|
|
9
|
-
function a(
|
|
10
|
-
const
|
|
11
|
-
|
|
9
|
+
function a(e) {
|
|
10
|
+
const o = i.dialogs.findIndex((d) => d.id === e);
|
|
11
|
+
o !== -1 && i.dialogs.splice(o, 1);
|
|
12
12
|
}
|
|
13
13
|
return {
|
|
14
|
-
...
|
|
15
|
-
addDialog:
|
|
14
|
+
...i,
|
|
15
|
+
addDialog: n,
|
|
16
16
|
removeDialog: a
|
|
17
17
|
};
|
|
18
18
|
}
|