@codemonster-ru/vueforge 0.75.0 → 0.77.0
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/README.md +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.ts.mjs +902 -830
- package/dist/index.ts.umd.js +4 -4
- package/dist/package/components/__tests__/inline.test.d.ts +1 -0
- package/dist/package/components/__tests__/stack.test.d.ts +1 -0
- package/dist/package/components/filter-chips.vue.d.ts +1 -1
- package/dist/package/components/inline.vue.d.ts +33 -0
- package/dist/package/components/stack.vue.d.ts +33 -0
- package/dist/package/config/theme-core.d.ts +14 -0
- package/dist/package/themes/default/components/inline.d.ts +7 -0
- package/dist/package/themes/default/components/stack.d.ts +7 -0
- package/dist/package/themes/default/index.d.ts +12 -0
- package/package.json +1 -1
package/dist/index.ts.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as oe, ref as N, computed as p, watch as ie, resolveComponent as nt, openBlock as v, createElementBlock as g, normalizeClass as Z, renderSlot as j, Fragment as ue, createTextVNode as fe, toDisplayString as G, createBlock as
|
|
1
|
+
import { defineComponent as oe, ref as N, computed as p, watch as ie, resolveComponent as nt, openBlock as v, createElementBlock as g, normalizeClass as Z, renderSlot as j, Fragment as ue, createTextVNode as fe, toDisplayString as G, createBlock as pe, withCtx as _e, createCommentVNode as Q, resolveDynamicComponent as Ye, normalizeStyle as ye, createElementVNode as x, renderList as me, withKeys as ce, withModifiers as re, unref as We, createVNode as Ge, inject as Xe, provide as Qe, nextTick as ze, onBeforeUnmount as ke, withDirectives as Ce, vShow as $e, onMounted as Le, useSlots as Ue, Teleport as Ve, reactive as Dt, createSlots as bt, useAttrs as Rt, mergeProps as st, Transition as Mt, normalizeProps as Pt, guardReactiveProps as Ot } from "vue";
|
|
2
2
|
import { useRoute as Et, useRouter as At } from "vue-router";
|
|
3
3
|
import { CmIcon as Ne } from "@codemonster-ru/vueiconify";
|
|
4
4
|
const Ht = ["href", "aria-disabled", "tabindex"], it = /* @__PURE__ */ oe({
|
|
@@ -42,7 +42,7 @@ const Ht = ["href", "aria-disabled", "tabindex"], it = /* @__PURE__ */ oe({
|
|
|
42
42
|
l.$slots.default ? j(l.$slots, "default", { key: 0 }) : (v(), g(ue, { key: 1 }, [
|
|
43
43
|
fe(G(l.label), 1)
|
|
44
44
|
], 64))
|
|
45
|
-
], 10, Ht)) : (v(),
|
|
45
|
+
], 10, Ht)) : (v(), pe(_, {
|
|
46
46
|
key: 1,
|
|
47
47
|
ref_key: "link",
|
|
48
48
|
ref: n,
|
|
@@ -71,10 +71,10 @@ const Ht = ["href", "aria-disabled", "tabindex"], it = /* @__PURE__ */ oe({
|
|
|
71
71
|
}, Kt = {}, Nt = { class: "vf-card" }, Gt = {
|
|
72
72
|
key: 0,
|
|
73
73
|
class: "vf-card__default"
|
|
74
|
-
},
|
|
74
|
+
}, jt = {
|
|
75
75
|
key: 1,
|
|
76
76
|
class: "vf-card__header"
|
|
77
|
-
},
|
|
77
|
+
}, Yt = {
|
|
78
78
|
key: 2,
|
|
79
79
|
class: "vf-card__body"
|
|
80
80
|
}, Xt = {
|
|
@@ -86,10 +86,10 @@ function Ut(s, o) {
|
|
|
86
86
|
s.$slots.default ? (v(), g("div", Gt, [
|
|
87
87
|
j(s.$slots, "default")
|
|
88
88
|
])) : Q("", !0),
|
|
89
|
-
s.$slots.header ? (v(), g("div",
|
|
89
|
+
s.$slots.header ? (v(), g("div", jt, [
|
|
90
90
|
j(s.$slots, "header")
|
|
91
91
|
])) : Q("", !0),
|
|
92
|
-
s.$slots.body ? (v(), g("div",
|
|
92
|
+
s.$slots.body ? (v(), g("div", Yt, [
|
|
93
93
|
j(s.$slots, "body")
|
|
94
94
|
])) : Q("", !0),
|
|
95
95
|
s.$slots.footer ? (v(), g("div", Xt, [
|
|
@@ -97,7 +97,7 @@ function Ut(s, o) {
|
|
|
97
97
|
])) : Q("", !0)
|
|
98
98
|
]);
|
|
99
99
|
}
|
|
100
|
-
const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]),
|
|
100
|
+
const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), qu = /* @__PURE__ */ oe({
|
|
101
101
|
name: "VfContainer",
|
|
102
102
|
__name: "container",
|
|
103
103
|
props: {
|
|
@@ -111,7 +111,7 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
111
111
|
const t = {};
|
|
112
112
|
return o.maxWidth && (t["--vf-container-max-width-override"] = o.maxWidth), o.paddingX && (t["--vf-container-padding-x-override"] = o.paddingX), t;
|
|
113
113
|
});
|
|
114
|
-
return (t, i) => (v(),
|
|
114
|
+
return (t, i) => (v(), pe(Ye(t.as), {
|
|
115
115
|
class: Z(a.value),
|
|
116
116
|
style: ye(e.value)
|
|
117
117
|
}, {
|
|
@@ -121,7 +121,7 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
121
121
|
_: 3
|
|
122
122
|
}, 8, ["class", "style"]));
|
|
123
123
|
}
|
|
124
|
-
}),
|
|
124
|
+
}), Qu = /* @__PURE__ */ oe({
|
|
125
125
|
name: "VfSection",
|
|
126
126
|
__name: "section",
|
|
127
127
|
props: {
|
|
@@ -135,7 +135,7 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
135
135
|
const t = {};
|
|
136
136
|
return o.paddingY && (t["--vf-section-padding-y-override"] = o.paddingY), t;
|
|
137
137
|
});
|
|
138
|
-
return (t, i) => (v(),
|
|
138
|
+
return (t, i) => (v(), pe(Ye(t.as), {
|
|
139
139
|
class: Z(a.value),
|
|
140
140
|
style: ye(e.value)
|
|
141
141
|
}, {
|
|
@@ -145,7 +145,7 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
145
145
|
_: 3
|
|
146
146
|
}, 8, ["class", "style"]));
|
|
147
147
|
}
|
|
148
|
-
}),
|
|
148
|
+
}), Zu = /* @__PURE__ */ oe({
|
|
149
149
|
name: "VfGrid",
|
|
150
150
|
__name: "grid",
|
|
151
151
|
props: {
|
|
@@ -180,7 +180,7 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
180
180
|
}
|
|
181
181
|
return t;
|
|
182
182
|
});
|
|
183
|
-
return (t, i) => (v(),
|
|
183
|
+
return (t, i) => (v(), pe(Ye(t.as), {
|
|
184
184
|
class: "vf-grid",
|
|
185
185
|
style: ye(e.value)
|
|
186
186
|
}, {
|
|
@@ -190,7 +190,7 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
190
190
|
_: 3
|
|
191
191
|
}, 8, ["style"]));
|
|
192
192
|
}
|
|
193
|
-
}),
|
|
193
|
+
}), Ju = /* @__PURE__ */ oe({
|
|
194
194
|
name: "VfGridItem",
|
|
195
195
|
__name: "grid-item",
|
|
196
196
|
props: {
|
|
@@ -217,7 +217,7 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
217
217
|
}
|
|
218
218
|
return t;
|
|
219
219
|
});
|
|
220
|
-
return (t, i) => (v(),
|
|
220
|
+
return (t, i) => (v(), pe(Ye(t.as), {
|
|
221
221
|
class: "vf-grid-item",
|
|
222
222
|
style: ye(e.value)
|
|
223
223
|
}, {
|
|
@@ -227,6 +227,64 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
227
227
|
_: 3
|
|
228
228
|
}, 8, ["style"]));
|
|
229
229
|
}
|
|
230
|
+
}), ec = /* @__PURE__ */ oe({
|
|
231
|
+
name: "VfStack",
|
|
232
|
+
__name: "stack",
|
|
233
|
+
props: {
|
|
234
|
+
as: { default: "div" },
|
|
235
|
+
gap: { default: "" },
|
|
236
|
+
align: { default: "stretch" },
|
|
237
|
+
justify: { default: "start" },
|
|
238
|
+
wrap: { default: "nowrap" }
|
|
239
|
+
},
|
|
240
|
+
setup(s) {
|
|
241
|
+
const o = s, a = p(() => {
|
|
242
|
+
const e = {
|
|
243
|
+
"--vf-stack-align-items-override": o.align,
|
|
244
|
+
"--vf-stack-justify-content-override": o.justify,
|
|
245
|
+
"--vf-stack-wrap-override": o.wrap
|
|
246
|
+
};
|
|
247
|
+
return o.gap && (e["--vf-stack-gap-override"] = o.gap), e;
|
|
248
|
+
});
|
|
249
|
+
return (e, t) => (v(), pe(Ye(e.as), {
|
|
250
|
+
class: "vf-stack",
|
|
251
|
+
style: ye(a.value)
|
|
252
|
+
}, {
|
|
253
|
+
default: _e(() => [
|
|
254
|
+
j(e.$slots, "default")
|
|
255
|
+
]),
|
|
256
|
+
_: 3
|
|
257
|
+
}, 8, ["style"]));
|
|
258
|
+
}
|
|
259
|
+
}), tc = /* @__PURE__ */ oe({
|
|
260
|
+
name: "VfInline",
|
|
261
|
+
__name: "inline",
|
|
262
|
+
props: {
|
|
263
|
+
as: { default: "div" },
|
|
264
|
+
gap: { default: "" },
|
|
265
|
+
align: { default: "center" },
|
|
266
|
+
justify: { default: "start" },
|
|
267
|
+
wrap: { default: "wrap" }
|
|
268
|
+
},
|
|
269
|
+
setup(s) {
|
|
270
|
+
const o = s, a = p(() => {
|
|
271
|
+
const e = {
|
|
272
|
+
"--vf-inline-align-items-override": o.align,
|
|
273
|
+
"--vf-inline-justify-content-override": o.justify,
|
|
274
|
+
"--vf-inline-wrap-override": o.wrap
|
|
275
|
+
};
|
|
276
|
+
return o.gap && (e["--vf-inline-gap-override"] = o.gap), e;
|
|
277
|
+
});
|
|
278
|
+
return (e, t) => (v(), pe(Ye(e.as), {
|
|
279
|
+
class: "vf-inline",
|
|
280
|
+
style: ye(a.value)
|
|
281
|
+
}, {
|
|
282
|
+
default: _e(() => [
|
|
283
|
+
j(e.$slots, "default")
|
|
284
|
+
]),
|
|
285
|
+
_: 3
|
|
286
|
+
}, 8, ["style"]));
|
|
287
|
+
}
|
|
230
288
|
}), Qt = {
|
|
231
289
|
class: "vf-menu__list",
|
|
232
290
|
role: "menu"
|
|
@@ -270,7 +328,7 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
270
328
|
class: Z(["vf-menu", `vf-menu_${c.orientation}`])
|
|
271
329
|
}, [
|
|
272
330
|
x("ul", Qt, [
|
|
273
|
-
(v(!0), g(ue, null,
|
|
331
|
+
(v(!0), g(ue, null, me(t.value, (y, l) => (v(), g("li", {
|
|
274
332
|
key: i(y, l),
|
|
275
333
|
class: "vf-menu__item",
|
|
276
334
|
role: "none"
|
|
@@ -290,7 +348,7 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
290
348
|
ce(re((k) => r(y), ["prevent"]), ["space"])
|
|
291
349
|
]
|
|
292
350
|
}, [
|
|
293
|
-
y.icon ? (v(),
|
|
351
|
+
y.icon ? (v(), pe(We(Ne), {
|
|
294
352
|
key: 0,
|
|
295
353
|
icon: y.icon,
|
|
296
354
|
class: "vf-menu__icon"
|
|
@@ -298,13 +356,13 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
298
356
|
fe(" " + G(y.label) + " ", 1),
|
|
299
357
|
Ge(We(Ne), { icon: "chevronDown" })
|
|
300
358
|
], 42, Jt),
|
|
301
|
-
y.items ? (v(),
|
|
359
|
+
y.items ? (v(), pe(m, {
|
|
302
360
|
key: 0,
|
|
303
361
|
items: y.items,
|
|
304
362
|
class: Z(["vf-menu__submenu", { "vf-menu__submenu_visible": y.subMenuVisible }]),
|
|
305
363
|
onOnActive: u
|
|
306
364
|
}, null, 8, ["items", "class"])) : Q("", !0)
|
|
307
|
-
], 64)) : (v(),
|
|
365
|
+
], 64)) : (v(), pe(it, {
|
|
308
366
|
key: 3,
|
|
309
367
|
to: y.to,
|
|
310
368
|
href: y.href ?? y.url,
|
|
@@ -318,7 +376,7 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
318
376
|
onActive: (k) => u(y)
|
|
319
377
|
}, {
|
|
320
378
|
default: _e(() => [
|
|
321
|
-
y.icon ? (v(),
|
|
379
|
+
y.icon ? (v(), pe(We(Ne), {
|
|
322
380
|
key: 0,
|
|
323
381
|
icon: y.icon,
|
|
324
382
|
class: "vf-menu__icon"
|
|
@@ -351,7 +409,7 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
351
409
|
disabled: { type: Boolean, default: !1 }
|
|
352
410
|
},
|
|
353
411
|
setup(s) {
|
|
354
|
-
const o = s, a =
|
|
412
|
+
const o = s, a = Xe(dt, null), e = ["button", "submit", "reset"], t = (m) => !!m && e.includes(m), i = p(() => o.as ? o.as === "button" : !(o.to || o.href || o.url || o.type && !t(o.type))), n = p(() => t(o.type) ? o.type : "button"), d = p(() => o.as === "link" ? o.to ? "router-link" : "a" : o.type && !t(o.type) ? o.type === "router-link" && o.to ? "router-link" : "a" : o.to ? "router-link" : "a"), r = p(() => {
|
|
355
413
|
const m = o.size ?? (a == null ? void 0 : a.value.size) ?? "normal", y = o.variant ?? (a == null ? void 0 : a.value.variant), l = o.severity ?? (a == null ? void 0 : a.value.severity) ?? "primary", k = o.loading || o.disabled || (a == null ? void 0 : a.value.disabled);
|
|
356
414
|
let _ = ["vf-button", `vf-button_${l}`];
|
|
357
415
|
return ["top", "bottom"].includes(o.iconPos) && _.push("vf-button_vertical"), y === "text" && _.push("vf-button_text"), y === "outlined" && _.push("vf-button_outlined"), ["small", "large"].indexOf(m) > -1 && _.push(`vf-button_${m}`), k && _.push("vf-button_disabled"), o.rounded && _.push("vf-button_rounded"), _;
|
|
@@ -362,12 +420,12 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
362
420
|
class: Z(r.value),
|
|
363
421
|
disabled: o.loading || u.value
|
|
364
422
|
}, [
|
|
365
|
-
o.icon && !o.loading ? (v(),
|
|
423
|
+
o.icon && !o.loading ? (v(), pe(We(Ne), {
|
|
366
424
|
key: 0,
|
|
367
425
|
icon: o.icon,
|
|
368
426
|
class: Z(c.value)
|
|
369
427
|
}, null, 8, ["icon", "class"])) : Q("", !0),
|
|
370
|
-
o.loading ? (v(),
|
|
428
|
+
o.loading ? (v(), pe(We(Ne), {
|
|
371
429
|
key: 1,
|
|
372
430
|
icon: "circleNotch",
|
|
373
431
|
class: Z(c.value),
|
|
@@ -382,7 +440,7 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
382
440
|
key: 3,
|
|
383
441
|
class: Z(f.value)
|
|
384
442
|
}, G(m.label), 3)) : Q("", !0)
|
|
385
|
-
], 10, ea)) : (v(),
|
|
443
|
+
], 10, ea)) : (v(), pe(it, {
|
|
386
444
|
key: 1,
|
|
387
445
|
to: o.to,
|
|
388
446
|
href: o.href ?? o.url,
|
|
@@ -391,7 +449,7 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
391
449
|
disabled: o.loading || u.value
|
|
392
450
|
}, {
|
|
393
451
|
default: _e(() => [
|
|
394
|
-
o.icon ? (v(),
|
|
452
|
+
o.icon ? (v(), pe(We(Ne), {
|
|
395
453
|
key: 0,
|
|
396
454
|
icon: o.icon,
|
|
397
455
|
class: Z(c.value)
|
|
@@ -409,7 +467,7 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
409
467
|
_: 3
|
|
410
468
|
}, 8, ["to", "href", "as", "class", "disabled"]));
|
|
411
469
|
}
|
|
412
|
-
}), ta = ["aria-disabled"],
|
|
470
|
+
}), ta = ["aria-disabled"], ac = /* @__PURE__ */ oe({
|
|
413
471
|
name: "VfButtonGroup",
|
|
414
472
|
__name: "button-group",
|
|
415
473
|
props: {
|
|
@@ -446,7 +504,7 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
446
504
|
}, oa = ["type", "value", "placeholder", "disabled", "readonly"], ra = {
|
|
447
505
|
key: 1,
|
|
448
506
|
class: "vf-input__suffix"
|
|
449
|
-
},
|
|
507
|
+
}, oc = /* @__PURE__ */ oe({
|
|
450
508
|
__name: "input",
|
|
451
509
|
props: {
|
|
452
510
|
modelValue: { default: "" },
|
|
@@ -489,7 +547,7 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
489
547
|
])) : Q("", !0)
|
|
490
548
|
], 2));
|
|
491
549
|
}
|
|
492
|
-
}), la = ["aria-disabled"],
|
|
550
|
+
}), la = ["aria-disabled"], rc = /* @__PURE__ */ oe({
|
|
493
551
|
__name: "input-group",
|
|
494
552
|
props: {
|
|
495
553
|
size: { default: "normal" },
|
|
@@ -509,20 +567,20 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
509
567
|
j(e.$slots, "default")
|
|
510
568
|
], 10, la));
|
|
511
569
|
}
|
|
512
|
-
}),
|
|
570
|
+
}), lc = /* @__PURE__ */ oe({
|
|
513
571
|
__name: "input-addon",
|
|
514
572
|
props: {
|
|
515
573
|
as: { default: "span" }
|
|
516
574
|
},
|
|
517
575
|
setup(s) {
|
|
518
|
-
return (o, a) => (v(),
|
|
576
|
+
return (o, a) => (v(), pe(Ye(o.as), { class: "vf-input-group__addon" }, {
|
|
519
577
|
default: _e(() => [
|
|
520
578
|
j(o.$slots, "default")
|
|
521
579
|
]),
|
|
522
580
|
_: 3
|
|
523
581
|
}));
|
|
524
582
|
}
|
|
525
|
-
}), na = ["type", "value", "placeholder", "disabled", "readonly", "onKeydown"], sa = { class: "vf-inline-edit__actions" }, ia = ["disabled"], da = ["disabled"], ua = ["disabled"],
|
|
583
|
+
}), na = ["type", "value", "placeholder", "disabled", "readonly", "onKeydown"], sa = { class: "vf-inline-edit__actions" }, ia = ["disabled"], da = ["disabled"], ua = ["disabled"], nc = /* @__PURE__ */ oe({
|
|
526
584
|
__name: "inline-edit",
|
|
527
585
|
props: {
|
|
528
586
|
modelValue: { default: null },
|
|
@@ -624,7 +682,7 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
624
682
|
key: 0,
|
|
625
683
|
class: "vf-search-input__spinner",
|
|
626
684
|
"aria-hidden": "true"
|
|
627
|
-
}, fa = ["disabled"],
|
|
685
|
+
}, fa = ["disabled"], sc = /* @__PURE__ */ oe({
|
|
628
686
|
__name: "search-input",
|
|
629
687
|
props: {
|
|
630
688
|
modelValue: { default: "" },
|
|
@@ -714,7 +772,7 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
714
772
|
}, ga = ["disabled", "onClick"], ba = { class: "vf-mention-input__option-trigger" }, ha = {
|
|
715
773
|
key: 2,
|
|
716
774
|
class: "vf-mention-input__empty"
|
|
717
|
-
},
|
|
775
|
+
}, ic = /* @__PURE__ */ oe({
|
|
718
776
|
__name: "mention-input",
|
|
719
777
|
props: {
|
|
720
778
|
modelValue: { default: "" },
|
|
@@ -769,18 +827,18 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
769
827
|
}
|
|
770
828
|
}, M = () => l.value.findIndex((F) => !F.disabled), S = (F, A) => {
|
|
771
829
|
const q = F.slice(0, A);
|
|
772
|
-
let
|
|
830
|
+
let L = -1, W = "";
|
|
773
831
|
for (const E of t.triggers) {
|
|
774
832
|
const K = q.lastIndexOf(E);
|
|
775
|
-
K >
|
|
833
|
+
K > L && (L = K, W = E);
|
|
776
834
|
}
|
|
777
|
-
if (
|
|
835
|
+
if (L < 0 || L > 0 && !/\s/.test(q[L - 1]))
|
|
778
836
|
return null;
|
|
779
|
-
const b = q.slice(
|
|
837
|
+
const b = q.slice(L + W.length);
|
|
780
838
|
return !b || /\s/.test(b) ? null : {
|
|
781
839
|
trigger: W,
|
|
782
840
|
query: b,
|
|
783
|
-
start:
|
|
841
|
+
start: L,
|
|
784
842
|
end: A
|
|
785
843
|
};
|
|
786
844
|
}, h = (F) => {
|
|
@@ -808,7 +866,7 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
808
866
|
r.value = A;
|
|
809
867
|
return;
|
|
810
868
|
}
|
|
811
|
-
},
|
|
869
|
+
}, V = () => {
|
|
812
870
|
if (!d.value) {
|
|
813
871
|
B();
|
|
814
872
|
return;
|
|
@@ -823,7 +881,7 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
823
881
|
}, R = (F) => {
|
|
824
882
|
if (F.disabled || !c.value || !n.value)
|
|
825
883
|
return;
|
|
826
|
-
const A = t.modelValue ?? "", q = c.value,
|
|
884
|
+
const A = t.modelValue ?? "", q = c.value, L = A.slice(0, q.start), W = A.slice(q.end), b = String(F.value ?? F.label), E = `${q.trigger}${b}${t.appendSpace ? " " : ""}`, K = `${L}${E}${W}`, H = L.length + E.length;
|
|
827
885
|
e("update:modelValue", K), e("select", F), e("insert", {
|
|
828
886
|
trigger: q.trigger,
|
|
829
887
|
query: q.query,
|
|
@@ -842,7 +900,7 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
842
900
|
}, z = (F) => {
|
|
843
901
|
const A = F.key;
|
|
844
902
|
if (A === "ArrowDown") {
|
|
845
|
-
F.preventDefault(),
|
|
903
|
+
F.preventDefault(), V();
|
|
846
904
|
return;
|
|
847
905
|
}
|
|
848
906
|
if (A === "ArrowUp") {
|
|
@@ -895,9 +953,9 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
895
953
|
class: "vf-mention-input__panel",
|
|
896
954
|
role: "listbox"
|
|
897
955
|
}, [
|
|
898
|
-
F.loading ? (v(), g("div", ma, G(F.loadingText), 1)) : l.value.length ? (v(!0), g(ue, { key: 1 },
|
|
899
|
-
key: `${q.trigger ?? ""}-${String(q.value ?? q.label)}-${
|
|
900
|
-
class: Z(["vf-mention-input__option", { "is-highlighted":
|
|
956
|
+
F.loading ? (v(), g("div", ma, G(F.loadingText), 1)) : l.value.length ? (v(!0), g(ue, { key: 1 }, me(l.value, (q, L) => (v(), g("button", {
|
|
957
|
+
key: `${q.trigger ?? ""}-${String(q.value ?? q.label)}-${L}`,
|
|
958
|
+
class: Z(["vf-mention-input__option", { "is-highlighted": L === r.value }]),
|
|
901
959
|
type: "button",
|
|
902
960
|
role: "option",
|
|
903
961
|
disabled: q.disabled,
|
|
@@ -925,7 +983,7 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
925
983
|
}, za = { class: "vf-password-input__strength-track" }, Sa = { class: "vf-password-input__strength-label" }, Ba = {
|
|
926
984
|
key: 1,
|
|
927
985
|
class: "vf-password-input__caps-lock"
|
|
928
|
-
},
|
|
986
|
+
}, dc = /* @__PURE__ */ oe({
|
|
929
987
|
__name: "password-input",
|
|
930
988
|
props: {
|
|
931
989
|
modelValue: { default: "" },
|
|
@@ -1019,7 +1077,7 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
1019
1077
|
B.showCapsLockHint && i.value && !B.disabled ? (v(), g("p", Ba, G(B.capsLockHint), 1)) : Q("", !0)
|
|
1020
1078
|
], 2));
|
|
1021
1079
|
}
|
|
1022
|
-
}), xa = ["aria-label"],
|
|
1080
|
+
}), xa = ["aria-label"], Va = ["type", "pattern", "placeholder", "value", "disabled", "readonly", "autocomplete", "onInput", "onKeydown"], uc = /* @__PURE__ */ oe({
|
|
1023
1081
|
__name: "otp-input",
|
|
1024
1082
|
props: {
|
|
1025
1083
|
modelValue: { default: "" },
|
|
@@ -1100,7 +1158,7 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
1100
1158
|
}
|
|
1101
1159
|
S.key === "ArrowRight" && (S.preventDefault(), f(h + 1));
|
|
1102
1160
|
}, B = (S) => a("focus", S), M = (S) => a("blur", S);
|
|
1103
|
-
return
|
|
1161
|
+
return Le(() => {
|
|
1104
1162
|
e.autoFocus && !e.disabled && !e.readonly && f(0);
|
|
1105
1163
|
}), (S, h) => (v(), g("div", {
|
|
1106
1164
|
class: Z(u.value),
|
|
@@ -1108,7 +1166,7 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
1108
1166
|
"aria-label": S.ariaLabel,
|
|
1109
1167
|
onPaste: k
|
|
1110
1168
|
}, [
|
|
1111
|
-
(v(!0), g(ue, null,
|
|
1169
|
+
(v(!0), g(ue, null, me(i.value, (C, I) => (v(), g("input", {
|
|
1112
1170
|
key: I,
|
|
1113
1171
|
ref_for: !0,
|
|
1114
1172
|
ref: (O) => c(O, I),
|
|
@@ -1126,10 +1184,10 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
1126
1184
|
onKeydown: (O) => _(O, I),
|
|
1127
1185
|
onFocus: B,
|
|
1128
1186
|
onBlur: M
|
|
1129
|
-
}, null, 40,
|
|
1187
|
+
}, null, 40, Va))), 128))
|
|
1130
1188
|
], 42, xa));
|
|
1131
1189
|
}
|
|
1132
|
-
}),
|
|
1190
|
+
}), La = ["disabled", "aria-expanded", "aria-label"], Fa = { class: "vf-color-picker__value" }, Ta = {
|
|
1133
1191
|
key: 0,
|
|
1134
1192
|
class: "vf-color-picker__panel"
|
|
1135
1193
|
}, Ia = { class: "vf-color-picker__row" }, Da = ["value"], Ra = {
|
|
@@ -1138,7 +1196,7 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
1138
1196
|
}, Ma = ["value"], Pa = { class: "vf-color-picker__alpha-value" }, Oa = { class: "vf-color-picker__row" }, Ea = ["placeholder", "value"], Aa = {
|
|
1139
1197
|
key: 1,
|
|
1140
1198
|
class: "vf-color-picker__presets"
|
|
1141
|
-
}, Ha = ["onClick"],
|
|
1199
|
+
}, Ha = ["onClick"], cc = /* @__PURE__ */ oe({
|
|
1142
1200
|
__name: "color-picker",
|
|
1143
1201
|
props: {
|
|
1144
1202
|
modelValue: { default: "#3b82f6" },
|
|
@@ -1161,8 +1219,8 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
1161
1219
|
let A = F;
|
|
1162
1220
|
if ((F.length === 3 || F.length === 4) && (A = F.split("").map((E) => `${E}${E}`).join("")), !/^[0-9a-fA-F]{6}([0-9a-fA-F]{2})?$/.test(A))
|
|
1163
1221
|
return null;
|
|
1164
|
-
const q = Number.parseInt(A.slice(0, 2), 16),
|
|
1165
|
-
return { r: q, g:
|
|
1222
|
+
const q = Number.parseInt(A.slice(0, 2), 16), L = Number.parseInt(A.slice(2, 4), 16), W = Number.parseInt(A.slice(4, 6), 16), b = A.length === 8 ? Number.parseInt(A.slice(6, 8), 16) / 255 : 1;
|
|
1223
|
+
return { r: q, g: L, b: W, a: b, valid: !0, preview: `rgba(${q}, ${L}, ${W}, ${b})` };
|
|
1166
1224
|
}, f = (z) => {
|
|
1167
1225
|
const F = z.trim().match(/^rgba?\((.*)\)$/i);
|
|
1168
1226
|
if (!F)
|
|
@@ -1170,13 +1228,13 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
1170
1228
|
const A = F[1].split(",").map((Y) => Y.trim());
|
|
1171
1229
|
if (A.length !== 3 && A.length !== 4)
|
|
1172
1230
|
return null;
|
|
1173
|
-
const q = Number(A[0]),
|
|
1174
|
-
if (![q,
|
|
1231
|
+
const q = Number(A[0]), L = Number(A[1]), W = Number(A[2]), b = A.length === 4 ? Number(A[3]) : 1;
|
|
1232
|
+
if (![q, L, W, b].every(Number.isFinite))
|
|
1175
1233
|
return null;
|
|
1176
|
-
const E = r(q, 0, 255), K = r(
|
|
1234
|
+
const E = r(q, 0, 255), K = r(L, 0, 255), H = r(W, 0, 255), T = r(b, 0, 1);
|
|
1177
1235
|
return { r: E, g: K, b: H, a: T, valid: !0, preview: `rgba(${E}, ${K}, ${H}, ${T})` };
|
|
1178
1236
|
}, m = (z, F, A) => {
|
|
1179
|
-
const q = (z % 360 + 360) % 360,
|
|
1237
|
+
const q = (z % 360 + 360) % 360, L = r(F, 0, 100) / 100, W = r(A, 0, 100) / 100, b = (1 - Math.abs(2 * W - 1)) * L, E = b * (1 - Math.abs(q / 60 % 2 - 1)), K = W - b / 2;
|
|
1180
1238
|
let H = 0, T = 0, Y = 0;
|
|
1181
1239
|
return q < 60 ? (H = b, T = E) : q < 120 ? (H = E, T = b) : q < 180 ? (T = b, Y = E) : q < 240 ? (T = E, Y = b) : q < 300 ? (H = E, Y = b) : (H = b, Y = E), {
|
|
1182
1240
|
r: Math.round((H + K) * 255),
|
|
@@ -1184,9 +1242,9 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
1184
1242
|
b: Math.round((Y + K) * 255)
|
|
1185
1243
|
};
|
|
1186
1244
|
}, y = (z, F, A) => {
|
|
1187
|
-
const q = z / 255,
|
|
1245
|
+
const q = z / 255, L = F / 255, W = A / 255, b = Math.max(q, L, W), E = Math.min(q, L, W), K = b - E;
|
|
1188
1246
|
let H = 0;
|
|
1189
|
-
K !== 0 && (b === q ? H = (
|
|
1247
|
+
K !== 0 && (b === q ? H = (L - W) / K % 6 : b === L ? H = (W - q) / K + 2 : H = (q - L) / K + 4, H *= 60), H < 0 && (H += 360);
|
|
1190
1248
|
const T = (b + E) / 2, Y = K === 0 ? 0 : K / (1 - Math.abs(2 * T - 1));
|
|
1191
1249
|
return { h: Math.round(H), s: Math.round(Y * 100), l: Math.round(T * 100) };
|
|
1192
1250
|
}, l = (z) => {
|
|
@@ -1196,10 +1254,10 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
1196
1254
|
const A = F[1].split(",").map((H) => H.trim().replace("%", ""));
|
|
1197
1255
|
if (A.length !== 3 && A.length !== 4)
|
|
1198
1256
|
return null;
|
|
1199
|
-
const q = Number(A[0]),
|
|
1200
|
-
if (![q,
|
|
1257
|
+
const q = Number(A[0]), L = Number(A[1]), W = Number(A[2]), b = A.length === 4 ? Number(A[3]) : 1;
|
|
1258
|
+
if (![q, L, W, b].every(Number.isFinite))
|
|
1201
1259
|
return null;
|
|
1202
|
-
const E = m(q,
|
|
1260
|
+
const E = m(q, L, W), K = r(b, 0, 1);
|
|
1203
1261
|
return { ...E, a: K, valid: !0, preview: `rgba(${E.r}, ${E.g}, ${E.b}, ${K})` };
|
|
1204
1262
|
}, k = (z) => {
|
|
1205
1263
|
const F = c(z) ?? f(z) ?? l(z);
|
|
@@ -1211,8 +1269,8 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
1211
1269
|
const W = y(z, F, A);
|
|
1212
1270
|
return e.alpha ? `hsla(${W.h}, ${W.s}%, ${W.l}%, ${q.toFixed(2)})` : `hsl(${W.h}, ${W.s}%, ${W.l}%)`;
|
|
1213
1271
|
}
|
|
1214
|
-
const
|
|
1215
|
-
return e.alpha ? `${
|
|
1272
|
+
const L = `#${u(z)}${u(F)}${u(A)}`;
|
|
1273
|
+
return e.alpha ? `${L}${u(q * 255)}` : L;
|
|
1216
1274
|
}, B = (z) => {
|
|
1217
1275
|
const F = k(z);
|
|
1218
1276
|
n.value = `#${u(F.r)}${u(F.g)}${u(F.b)}`, d.value = Math.round(r(F.a, 0, 1) * 100);
|
|
@@ -1254,16 +1312,16 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
1254
1312
|
return;
|
|
1255
1313
|
const F = k(z);
|
|
1256
1314
|
F.valid && (n.value = `#${u(F.r)}${u(F.g)}${u(F.b)}`, e.alpha && (d.value = Math.round(F.a * 100)), C());
|
|
1257
|
-
},
|
|
1315
|
+
}, V = () => {
|
|
1258
1316
|
i.value && (i.value = !1, a("close"));
|
|
1259
1317
|
}, w = () => {
|
|
1260
1318
|
i.value || e.disabled || e.readonly || (i.value = !0, a("open"));
|
|
1261
1319
|
}, R = () => {
|
|
1262
|
-
i.value ?
|
|
1320
|
+
i.value ? V() : w();
|
|
1263
1321
|
}, D = (z) => {
|
|
1264
|
-
!i.value || !t.value || t.value.contains(z.target) ||
|
|
1322
|
+
!i.value || !t.value || t.value.contains(z.target) || V();
|
|
1265
1323
|
};
|
|
1266
|
-
return
|
|
1324
|
+
return Le(() => {
|
|
1267
1325
|
document.addEventListener("click", D);
|
|
1268
1326
|
}), ke(() => {
|
|
1269
1327
|
document.removeEventListener("click", D);
|
|
@@ -1286,7 +1344,7 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
1286
1344
|
}, null, 4),
|
|
1287
1345
|
x("span", Fa, G(S.value), 1),
|
|
1288
1346
|
F[0] || (F[0] = x("span", { class: "vf-color-picker__chevron" }, "▾", -1))
|
|
1289
|
-
], 8,
|
|
1347
|
+
], 8, La),
|
|
1290
1348
|
i.value ? (v(), g("div", Ta, [
|
|
1291
1349
|
x("div", Ia, [
|
|
1292
1350
|
x("input", {
|
|
@@ -1318,12 +1376,12 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
1318
1376
|
}, null, 40, Ea)
|
|
1319
1377
|
]),
|
|
1320
1378
|
z.presets.length ? (v(), g("div", Aa, [
|
|
1321
|
-
(v(!0), g(ue, null,
|
|
1379
|
+
(v(!0), g(ue, null, me(z.presets, (A, q) => (v(), g("button", {
|
|
1322
1380
|
key: `${A}-${q}`,
|
|
1323
1381
|
class: "vf-color-picker__preset",
|
|
1324
1382
|
type: "button",
|
|
1325
1383
|
style: ye({ backgroundColor: k(A).preview }),
|
|
1326
|
-
onClick: (
|
|
1384
|
+
onClick: (L) => $(A)
|
|
1327
1385
|
}, null, 12, Ha))), 128))
|
|
1328
1386
|
])) : Q("", !0)
|
|
1329
1387
|
])) : Q("", !0)
|
|
@@ -1335,7 +1393,7 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
1335
1393
|
}, Ka = ["value", "placeholder", "disabled", "readonly"], Na = {
|
|
1336
1394
|
key: 1,
|
|
1337
1395
|
class: "vf-masked-input__suffix"
|
|
1338
|
-
},
|
|
1396
|
+
}, vc = /* @__PURE__ */ oe({
|
|
1339
1397
|
__name: "masked-input",
|
|
1340
1398
|
props: {
|
|
1341
1399
|
modelValue: { default: "" },
|
|
@@ -1358,18 +1416,18 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
1358
1416
|
if (!i.value)
|
|
1359
1417
|
return u(C);
|
|
1360
1418
|
const I = `${C ?? ""}`.split(""), O = i.value.split(""), P = [];
|
|
1361
|
-
let $ = 0,
|
|
1362
|
-
for (; $ < O.length &&
|
|
1363
|
-
const w = O[$], R = I[
|
|
1419
|
+
let $ = 0, V = 0;
|
|
1420
|
+
for (; $ < O.length && V < I.length; ) {
|
|
1421
|
+
const w = O[$], R = I[V], D = t[w];
|
|
1364
1422
|
if (D) {
|
|
1365
1423
|
if (D.test(R)) {
|
|
1366
|
-
P.push(R), $ += 1,
|
|
1424
|
+
P.push(R), $ += 1, V += 1;
|
|
1367
1425
|
continue;
|
|
1368
1426
|
}
|
|
1369
|
-
|
|
1427
|
+
V += 1;
|
|
1370
1428
|
continue;
|
|
1371
1429
|
}
|
|
1372
|
-
R === w && (
|
|
1430
|
+
R === w && (V += 1), $ += 1;
|
|
1373
1431
|
}
|
|
1374
1432
|
return P.join("");
|
|
1375
1433
|
}, f = (C) => {
|
|
@@ -1380,8 +1438,8 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
1380
1438
|
return "";
|
|
1381
1439
|
const O = i.value;
|
|
1382
1440
|
let P = 0, $ = "";
|
|
1383
|
-
for (const
|
|
1384
|
-
const w = t[
|
|
1441
|
+
for (const V of O) {
|
|
1442
|
+
const w = t[V];
|
|
1385
1443
|
if (w) {
|
|
1386
1444
|
if (P >= I.length)
|
|
1387
1445
|
break;
|
|
@@ -1394,10 +1452,10 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
1394
1452
|
continue;
|
|
1395
1453
|
}
|
|
1396
1454
|
if (P === 0) {
|
|
1397
|
-
$ +=
|
|
1455
|
+
$ += V;
|
|
1398
1456
|
continue;
|
|
1399
1457
|
}
|
|
1400
|
-
P < I.length && ($ +=
|
|
1458
|
+
P < I.length && ($ += V);
|
|
1401
1459
|
}
|
|
1402
1460
|
return $;
|
|
1403
1461
|
}, m = (C) => n.value ? u(C) : c(C), y = (C) => n.value ? n.value(C) : f(C), l = p(() => {
|
|
@@ -1437,13 +1495,13 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
1437
1495
|
}), Ga = {
|
|
1438
1496
|
key: 0,
|
|
1439
1497
|
class: "vf-number-input__prefix"
|
|
1440
|
-
},
|
|
1498
|
+
}, ja = ["value", "min", "max", "step", "placeholder", "disabled", "readonly", "aria-label"], Ya = {
|
|
1441
1499
|
key: 1,
|
|
1442
1500
|
class: "vf-number-input__controls"
|
|
1443
1501
|
}, Xa = ["disabled"], Ua = ["disabled"], qa = {
|
|
1444
1502
|
key: 2,
|
|
1445
1503
|
class: "vf-number-input__suffix"
|
|
1446
|
-
},
|
|
1504
|
+
}, fc = /* @__PURE__ */ oe({
|
|
1447
1505
|
__name: "number-input",
|
|
1448
1506
|
props: {
|
|
1449
1507
|
modelValue: { default: null },
|
|
@@ -1509,8 +1567,8 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
1509
1567
|
onChange: y,
|
|
1510
1568
|
onFocus: l,
|
|
1511
1569
|
onBlur: k
|
|
1512
|
-
}, null, 40,
|
|
1513
|
-
S.controls ? (v(), g("div",
|
|
1570
|
+
}, null, 40, ja),
|
|
1571
|
+
S.controls ? (v(), g("div", Ya, [
|
|
1514
1572
|
x("button", {
|
|
1515
1573
|
class: "vf-number-input__step",
|
|
1516
1574
|
type: "button",
|
|
@@ -1531,7 +1589,7 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
1531
1589
|
])) : Q("", !0)
|
|
1532
1590
|
], 2));
|
|
1533
1591
|
}
|
|
1534
|
-
}), Qa = ["id", "aria-label", "aria-labelledby", "novalidate"],
|
|
1592
|
+
}), Qa = ["id", "aria-label", "aria-labelledby", "novalidate"], pc = /* @__PURE__ */ oe({
|
|
1535
1593
|
__name: "form",
|
|
1536
1594
|
props: {
|
|
1537
1595
|
modelValue: { default: void 0 },
|
|
@@ -1628,7 +1686,7 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
1628
1686
|
return;
|
|
1629
1687
|
const K = E.name.trim(), H = q(E);
|
|
1630
1688
|
l(K, H), M("change") && await S("change");
|
|
1631
|
-
},
|
|
1689
|
+
}, V = async (b) => {
|
|
1632
1690
|
const E = A(b.target);
|
|
1633
1691
|
if (!E)
|
|
1634
1692
|
return;
|
|
@@ -1701,9 +1759,9 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
1701
1759
|
}
|
|
1702
1760
|
function q(b) {
|
|
1703
1761
|
var E;
|
|
1704
|
-
return b instanceof HTMLInputElement ? b.type === "checkbox" ?
|
|
1762
|
+
return b instanceof HTMLInputElement ? b.type === "checkbox" ? L(b) : b.type === "radio" ? W(b) : b.type === "file" ? b.multiple ? b.files ? Array.from(b.files) : [] : ((E = b.files) == null ? void 0 : E[0]) ?? null : b.type === "number" || b.type === "range" ? b.value === "" ? null : Number(b.value) : b.value : b instanceof HTMLSelectElement && b.multiple ? Array.from(b.selectedOptions).map((K) => K.value) : b.value;
|
|
1705
1763
|
}
|
|
1706
|
-
function
|
|
1764
|
+
function L(b) {
|
|
1707
1765
|
const E = t.value;
|
|
1708
1766
|
if (!E)
|
|
1709
1767
|
return b.checked;
|
|
@@ -1733,7 +1791,7 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
1733
1791
|
onReset: O,
|
|
1734
1792
|
onInput: P,
|
|
1735
1793
|
onChange: $,
|
|
1736
|
-
onFocusout:
|
|
1794
|
+
onFocusout: V
|
|
1737
1795
|
}, [
|
|
1738
1796
|
j(b.$slots, "default", {
|
|
1739
1797
|
values: n.value,
|
|
@@ -1755,7 +1813,7 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
1755
1813
|
key: 0,
|
|
1756
1814
|
class: "vf-form-field__required",
|
|
1757
1815
|
"aria-hidden": "true"
|
|
1758
|
-
}, eo = { class: "vf-form-field__control" }, to = ["id"], ao = ["id"],
|
|
1816
|
+
}, eo = { class: "vf-form-field__control" }, to = ["id"], ao = ["id"], mc = /* @__PURE__ */ oe({
|
|
1759
1817
|
__name: "form-field",
|
|
1760
1818
|
props: {
|
|
1761
1819
|
id: { default: void 0 },
|
|
@@ -1767,7 +1825,7 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
1767
1825
|
size: { default: "normal" }
|
|
1768
1826
|
},
|
|
1769
1827
|
setup(s) {
|
|
1770
|
-
const o = s, a =
|
|
1828
|
+
const o = s, a = Ue(), e = `vf-form-field-${Math.random().toString(36).slice(2, 10)}`, t = p(() => o.id || e), i = p(() => `${t.value}-hint`), n = p(() => `${t.value}-error`), d = p(() => !!o.label || !!a.label), r = p(() => !!o.hint || !!a.hint), u = p(() => !!o.error || !!a.error), c = p(() => {
|
|
1771
1829
|
const m = [];
|
|
1772
1830
|
return r.value && m.push(i.value), u.value && m.push(n.value), m.length ? m.join(" ") : void 0;
|
|
1773
1831
|
}), f = p(() => {
|
|
@@ -1816,7 +1874,7 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
1816
1874
|
], 8, ao)) : Q("", !0)
|
|
1817
1875
|
], 2));
|
|
1818
1876
|
}
|
|
1819
|
-
}), oo = ["value", "placeholder", "disabled", "readonly", "rows"],
|
|
1877
|
+
}), oo = ["value", "placeholder", "disabled", "readonly", "rows"], gc = /* @__PURE__ */ oe({
|
|
1820
1878
|
__name: "textarea",
|
|
1821
1879
|
props: {
|
|
1822
1880
|
modelValue: { default: "" },
|
|
@@ -1853,7 +1911,7 @@ const qt = /* @__PURE__ */ Wt(Kt, [["render", Ut]]), Xu = /* @__PURE__ */ oe({
|
|
|
1853
1911
|
}, null, 40, oo)
|
|
1854
1912
|
], 2));
|
|
1855
1913
|
}
|
|
1856
|
-
}), ro = ["aria-label"], lo = ["data-action", "disabled", "onClick"], no = ["value", "placeholder", "disabled", "readonly", "rows", "aria-label"],
|
|
1914
|
+
}), ro = ["aria-label"], lo = ["data-action", "disabled", "onClick"], no = ["value", "placeholder", "disabled", "readonly", "rows", "aria-label"], bc = /* @__PURE__ */ oe({
|
|
1857
1915
|
__name: "rich-text-editor",
|
|
1858
1916
|
props: {
|
|
1859
1917
|
modelValue: { default: "" },
|
|
@@ -1947,7 +2005,7 @@ ${C}
|
|
|
1947
2005
|
}, l = (h, C) => a.format === "html" ? y(h, C) : m(h, C), k = (h) => {
|
|
1948
2006
|
if (a.disabled || a.readonly || !t.value)
|
|
1949
2007
|
return;
|
|
1950
|
-
const C = t.value, I = C.selectionStart ?? 0, O = C.selectionEnd ?? I, P = C.value, $ = P.slice(I, O),
|
|
2008
|
+
const C = t.value, I = C.selectionStart ?? 0, O = C.selectionEnd ?? I, P = C.value, $ = P.slice(I, O), V = l(h, $), w = f(`${P.slice(0, I)}${V}${P.slice(O)}`), R = Math.min(I + V.length, w.length);
|
|
1951
2009
|
C.value = w, C.focus(), C.setSelectionRange(R, R), e("update:modelValue", w), e("action", h, w);
|
|
1952
2010
|
}, _ = (h) => {
|
|
1953
2011
|
const C = h.target, I = f(C.value);
|
|
@@ -1962,7 +2020,7 @@ ${C}
|
|
|
1962
2020
|
role: "toolbar",
|
|
1963
2021
|
"aria-label": h.toolbarLabel
|
|
1964
2022
|
}, [
|
|
1965
|
-
(v(!0), g(ue, null,
|
|
2023
|
+
(v(!0), g(ue, null, me(n.value, (I) => (v(), g("button", {
|
|
1966
2024
|
key: I,
|
|
1967
2025
|
type: "button",
|
|
1968
2026
|
class: "vf-rich-text-editor__toolbar-button",
|
|
@@ -1998,7 +2056,7 @@ ${C}
|
|
|
1998
2056
|
}, vo = {
|
|
1999
2057
|
key: 1,
|
|
2000
2058
|
class: "vf-file-upload__list"
|
|
2001
|
-
}, fo = { class: "vf-file-upload__name" }, po = { class: "vf-file-upload__size" }, mo = ["aria-label", "onClick"], go = ["disabled"],
|
|
2059
|
+
}, fo = { class: "vf-file-upload__name" }, po = { class: "vf-file-upload__size" }, mo = ["aria-label", "onClick"], go = ["disabled"], hc = /* @__PURE__ */ oe({
|
|
2002
2060
|
__name: "file-upload",
|
|
2003
2061
|
props: {
|
|
2004
2062
|
modelValue: { default: null },
|
|
@@ -2041,13 +2099,13 @@ ${C}
|
|
|
2041
2099
|
const O = [];
|
|
2042
2100
|
let P = I;
|
|
2043
2101
|
if (typeof e.maxSize == "number" && Number.isFinite(e.maxSize) && e.maxSize > 0) {
|
|
2044
|
-
const
|
|
2102
|
+
const V = e.maxSize, w = [];
|
|
2045
2103
|
P.forEach((R) => {
|
|
2046
|
-
if (R.size <=
|
|
2104
|
+
if (R.size <= V) {
|
|
2047
2105
|
w.push(R);
|
|
2048
2106
|
return;
|
|
2049
2107
|
}
|
|
2050
|
-
O.push({ file: R, reason: "maxSize", maxSize:
|
|
2108
|
+
O.push({ file: R, reason: "maxSize", maxSize: V });
|
|
2051
2109
|
}), P = w;
|
|
2052
2110
|
}
|
|
2053
2111
|
let $ = e.maxFiles;
|
|
@@ -2055,8 +2113,8 @@ ${C}
|
|
|
2055
2113
|
}, y = (I) => {
|
|
2056
2114
|
if (e.disabled || e.readonly)
|
|
2057
2115
|
return;
|
|
2058
|
-
const O = e.multiple ? d.value : [], P = e.multiple ? O.concat(I) : I, { accepted: $, rejected:
|
|
2059
|
-
f($),
|
|
2116
|
+
const O = e.multiple ? d.value : [], P = e.multiple ? O.concat(I) : I, { accepted: $, rejected: V } = m(P);
|
|
2117
|
+
f($), V.length > 0 && a("reject", V);
|
|
2060
2118
|
}, l = () => {
|
|
2061
2119
|
var I;
|
|
2062
2120
|
e.disabled || e.readonly || (I = i.value) == null || I.click();
|
|
@@ -2113,7 +2171,7 @@ ${C}
|
|
|
2113
2171
|
}, [
|
|
2114
2172
|
x("div", uo, [
|
|
2115
2173
|
d.value.length === 0 ? (v(), g("span", co, G(I.placeholder), 1)) : (v(), g("div", vo, [
|
|
2116
|
-
(v(!0), g(ue, null,
|
|
2174
|
+
(v(!0), g(ue, null, me(d.value, (P, $) => (v(), g("div", {
|
|
2117
2175
|
key: u(P, $),
|
|
2118
2176
|
class: "vf-file-upload__item"
|
|
2119
2177
|
}, [
|
|
@@ -2124,7 +2182,7 @@ ${C}
|
|
|
2124
2182
|
class: "vf-file-upload__remove",
|
|
2125
2183
|
type: "button",
|
|
2126
2184
|
"aria-label": `Remove ${P.name}`,
|
|
2127
|
-
onClick: re((
|
|
2185
|
+
onClick: re((V) => S($), ["stop"])
|
|
2128
2186
|
}, " ✕ ", 8, mo)) : Q("", !0)
|
|
2129
2187
|
]))), 128))
|
|
2130
2188
|
]))
|
|
@@ -2181,10 +2239,10 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
2181
2239
|
width: e.width,
|
|
2182
2240
|
height: e.height
|
|
2183
2241
|
};
|
|
2184
|
-
},
|
|
2242
|
+
}, je = (s, o) => {
|
|
2185
2243
|
var a;
|
|
2186
2244
|
return (a = s.middleware) == null ? void 0 : a.find((e) => e.name === o);
|
|
2187
|
-
}, yt = (s, o) => !!
|
|
2245
|
+
}, yt = (s, o) => !!je(s, o), yo = (s) => {
|
|
2188
2246
|
const o = Ee(s);
|
|
2189
2247
|
let a = "";
|
|
2190
2248
|
return o !== null && ((o.dataset.scrollTop === void 0 || o.scrollTop === +o.dataset.scrollTop) && (o.dataset.scrollTop = "0"), (o.dataset.scrollLeft === void 0 || o.scrollLeft === +o.dataset.scrollLeft) && (o.dataset.scrollLeft = "0"), o.scrollTop > +o.dataset.scrollTop ? a = "bottom" : o.scrollTop < +o.dataset.scrollTop ? a = "top" : o.scrollLeft > +o.dataset.scrollLeft ? a = "right" : o.scrollLeft < +o.dataset.scrollLeft && (a = "left"), o.dataset.scrollTop = o.scrollTop <= 0 ? "0" : o.scrollTop.toString(), o.dataset.scrollLeft = o.scrollLeft <= 0 ? "0" : o.scrollLeft.toString()), a;
|
|
@@ -2235,7 +2293,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
2235
2293
|
reference: i,
|
|
2236
2294
|
scrollDirection: n
|
|
2237
2295
|
}) => {
|
|
2238
|
-
const d = at(i, e, t, s), r =
|
|
2296
|
+
const d = at(i, e, t, s), r = je(s, "offset");
|
|
2239
2297
|
if (r) {
|
|
2240
2298
|
const u = r.fn({
|
|
2241
2299
|
x: d.x,
|
|
@@ -2318,10 +2376,10 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
2318
2376
|
const S = Je(d);
|
|
2319
2377
|
let h = S, C = M[S];
|
|
2320
2378
|
y.forEach(($) => {
|
|
2321
|
-
const
|
|
2322
|
-
w > C && (C = w, h =
|
|
2379
|
+
const V = Je($), w = M[V];
|
|
2380
|
+
w > C && (C = w, h = V);
|
|
2323
2381
|
});
|
|
2324
|
-
const I = Ro(h, d, y), O = at(r, n, I, m), P =
|
|
2382
|
+
const I = Ro(h, d, y), O = at(r, n, I, m), P = je(m, "offset");
|
|
2325
2383
|
if (P) {
|
|
2326
2384
|
const $ = P.fn({
|
|
2327
2385
|
x: O.x,
|
|
@@ -2344,7 +2402,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
2344
2402
|
var i, n, d;
|
|
2345
2403
|
let r = 0;
|
|
2346
2404
|
e.startsWith("right") ? r = -s : e.startsWith("left") && (r = s);
|
|
2347
|
-
const u =
|
|
2405
|
+
const u = je(o, "arrow"), c = je(o, "shift");
|
|
2348
2406
|
if (u) {
|
|
2349
2407
|
const f = ((i = u.params) == null ? void 0 : i.arrow).getBoundingClientRect();
|
|
2350
2408
|
e.startsWith("right") ? r -= f.width / 2 : e.startsWith("left") && (r += f.width / 2);
|
|
@@ -2360,7 +2418,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
2360
2418
|
var i, n, d;
|
|
2361
2419
|
let r = 0;
|
|
2362
2420
|
e.startsWith("top") ? r = s : e.startsWith("bottom") && (r = -s);
|
|
2363
|
-
const u =
|
|
2421
|
+
const u = je(o, "arrow"), c = je(o, "shift");
|
|
2364
2422
|
if (u) {
|
|
2365
2423
|
const f = ((i = u.params) == null ? void 0 : i.arrow).getBoundingClientRect();
|
|
2366
2424
|
e.startsWith("top") ? r += f.height / 2 : e.startsWith("bottom") && (r -= f.height / 2);
|
|
@@ -2412,17 +2470,17 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
2412
2470
|
if (Ke(e, n) && typeof window < "u") {
|
|
2413
2471
|
const w = P, R = window.innerWidth - n.clientWidth - P, D = R < w ? w : R, z = $, F = window.innerHeight - n.clientHeight - $, A = F < z ? z : F;
|
|
2414
2472
|
C < w ? C = w : C > D && (C = D), I < z ? I = z : I > A && (I = A), l ? (c.x = o + (C - S), c.y = a + (I - h)) : (c.x = C, c.y = I);
|
|
2415
|
-
const q = P,
|
|
2473
|
+
const q = P, L = window.innerWidth - n.clientWidth - P, W = $, b = window.innerHeight - n.clientHeight - $, E = l ? q + B : q, K = l ? L + B : L, H = l ? W + M : W, T = l ? b + M : b;
|
|
2416
2474
|
return c.x < E ? c.x = E : c.x > K && (c.x = K), c.y < H ? c.y = H : c.y > T && (c.y = T), c;
|
|
2417
2475
|
}
|
|
2418
|
-
const
|
|
2419
|
-
if (
|
|
2420
|
-
const w = Fe(r, n, e), R = w.left, D = w.left + w.width, z = w.top, F = w.top + w.height, A =
|
|
2421
|
-
D <= K ? C = A : R >= H && (C =
|
|
2476
|
+
const V = Ee(n);
|
|
2477
|
+
if (V !== null) {
|
|
2478
|
+
const w = Fe(r, n, e), R = w.left, D = w.left + w.width, z = w.top, F = w.top + w.height, A = V.scrollLeft + P, q = et(V) - n.clientWidth - P, L = q < A ? A : q, W = V.scrollTop + $, b = tt(V) - n.clientHeight - $, E = b < W ? W : b, K = V.scrollLeft, H = et(V), T = V.scrollTop, Y = tt(V);
|
|
2479
|
+
D <= K ? C = A : R >= H && (C = L), F <= T ? I = W : z >= Y && (I = E), I < W ? I = W : I > E && (I = E), C < A ? C = A : C > L && (C = L);
|
|
2422
2480
|
}
|
|
2423
|
-
if (l ? (c.x = o + (C - S), c.y = a + (I - h)) : (c.x = C, c.y = I),
|
|
2424
|
-
const w =
|
|
2425
|
-
c.x < F ? c.x = F : c.x > A && (c.x = A), c.y < q ? c.y = q : c.y >
|
|
2481
|
+
if (l ? (c.x = o + (C - S), c.y = a + (I - h)) : (c.x = C, c.y = I), V !== null) {
|
|
2482
|
+
const w = V.scrollLeft + P, R = et(V) - n.clientWidth - P, D = V.scrollTop + $, z = tt(V) - n.clientHeight - $, F = l ? w + B : w, A = l ? R + B : R, q = l ? D + M : D, L = l ? z + M : z;
|
|
2483
|
+
c.x < F ? c.x = F : c.x > A && (c.x = A), c.y < q ? c.y = q : c.y > L && (c.y = L);
|
|
2426
2484
|
}
|
|
2427
2485
|
return c;
|
|
2428
2486
|
}
|
|
@@ -2490,14 +2548,14 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
2490
2548
|
y: e.top + e.height,
|
|
2491
2549
|
placement: "bottom"
|
|
2492
2550
|
};
|
|
2493
|
-
},
|
|
2551
|
+
}, Vo = (s, o, a = {}) => {
|
|
2494
2552
|
const e = Fe(s, o, a);
|
|
2495
2553
|
return {
|
|
2496
2554
|
x: e.left,
|
|
2497
2555
|
y: e.top + e.height,
|
|
2498
2556
|
placement: "bottom-start"
|
|
2499
2557
|
};
|
|
2500
|
-
},
|
|
2558
|
+
}, Lo = (s, o, a = {}) => {
|
|
2501
2559
|
const e = Fe(s, o, a);
|
|
2502
2560
|
return {
|
|
2503
2561
|
x: e.left - o.getBoundingClientRect().width + e.width,
|
|
@@ -2542,9 +2600,9 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
2542
2600
|
case "bottom":
|
|
2543
2601
|
return xo(s, o, e);
|
|
2544
2602
|
case "bottom-start":
|
|
2545
|
-
return Lo(s, o, e);
|
|
2546
|
-
case "bottom-end":
|
|
2547
2603
|
return Vo(s, o, e);
|
|
2604
|
+
case "bottom-end":
|
|
2605
|
+
return Lo(s, o, e);
|
|
2548
2606
|
case "left":
|
|
2549
2607
|
return Fo(s, o, e);
|
|
2550
2608
|
case "left-start":
|
|
@@ -2620,7 +2678,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
2620
2678
|
});
|
|
2621
2679
|
d.x = _.x, d.y = _.y, d.placement = _.placement, k.name === "arrow" && (_.baseX = _.x, _.baseY = _.y, _.x = _.arrowX ?? _.x, _.y = _.arrowY ?? _.y), d.middlewareData[k.name] = _;
|
|
2622
2680
|
});
|
|
2623
|
-
const m = at(s, o, d.placement, a), y =
|
|
2681
|
+
const m = at(s, o, d.placement, a), y = je(a, "offset"), l = y ? (i = y.params) == null ? void 0 : i.value : 0;
|
|
2624
2682
|
if (Number.isFinite(d.x) || (d.x = m.x), !Number.isFinite(d.y))
|
|
2625
2683
|
if (Ke(a, o)) {
|
|
2626
2684
|
const k = s.getBoundingClientRect(), _ = o.getBoundingClientRect().height;
|
|
@@ -2628,7 +2686,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
2628
2686
|
} else
|
|
2629
2687
|
d.y = m.y;
|
|
2630
2688
|
e(d);
|
|
2631
|
-
}), Po = ["disabled", "aria-expanded", "onKeydown"], Oo = ["data-placement"], Eo = ["disabled", "aria-selected", "onClick"],
|
|
2689
|
+
}), Po = ["disabled", "aria-expanded", "onKeydown"], Oo = ["data-placement"], Eo = ["disabled", "aria-selected", "onClick"], yc = /* @__PURE__ */ oe({
|
|
2632
2690
|
__name: "select",
|
|
2633
2691
|
props: {
|
|
2634
2692
|
modelValue: { default: void 0 },
|
|
@@ -2645,48 +2703,48 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
2645
2703
|
let a = 0;
|
|
2646
2704
|
const e = o, t = s, i = N(null), n = N(null), d = N(null), r = N(!1), u = N("bottom"), c = N("bottom"), f = `vf-select-panel-${++a}`;
|
|
2647
2705
|
let m = null;
|
|
2648
|
-
const y = p(() => t.options.map((
|
|
2649
|
-
label:
|
|
2650
|
-
value:
|
|
2651
|
-
disabled:
|
|
2652
|
-
}))), l = p(() => y.value.find((
|
|
2653
|
-
var
|
|
2654
|
-
return ((
|
|
2706
|
+
const y = p(() => t.options.map((V) => ({
|
|
2707
|
+
label: V[t.optionLabel],
|
|
2708
|
+
value: V[t.optionValue],
|
|
2709
|
+
disabled: V.disabled
|
|
2710
|
+
}))), l = p(() => y.value.find((V) => V.value === t.modelValue)), k = p(() => {
|
|
2711
|
+
var V;
|
|
2712
|
+
return ((V = l.value) == null ? void 0 : V.label) ?? "";
|
|
2655
2713
|
}), _ = p(() => {
|
|
2656
|
-
const
|
|
2657
|
-
return t.size !== "normal" &&
|
|
2658
|
-
}), B = (
|
|
2659
|
-
|
|
2660
|
-
}, S = (
|
|
2714
|
+
const V = ["vf-select", `vf-select_${t.variant}`, r.value ? "vf-select_open" : ""];
|
|
2715
|
+
return t.size !== "normal" && V.push(`vf-select_${t.size}`), t.disabled && V.push("vf-select_disabled"), V.filter(Boolean);
|
|
2716
|
+
}), B = (V) => V.value === t.modelValue, M = (V) => {
|
|
2717
|
+
V.disabled || (e("update:modelValue", V.value), e("change", V.value), C());
|
|
2718
|
+
}, S = (V) => e("focus", V), h = (V) => e("blur", V), C = () => {
|
|
2661
2719
|
r.value = !1, u.value = "bottom", c.value = "bottom";
|
|
2662
2720
|
}, I = () => {
|
|
2663
2721
|
t.disabled || (r.value = !r.value, r.value && (u.value = "bottom", c.value = "bottom"));
|
|
2664
2722
|
}, O = async () => {
|
|
2665
|
-
var
|
|
2666
|
-
r.value || (r.value = !0, await ze()), (w = (
|
|
2667
|
-
}, P = (
|
|
2723
|
+
var V, w;
|
|
2724
|
+
r.value || (r.value = !0, await ze()), (w = (V = d.value) == null ? void 0 : V.querySelector(".vf-select__option:not(.is-disabled)")) == null || w.focus();
|
|
2725
|
+
}, P = (V) => {
|
|
2668
2726
|
var R;
|
|
2669
2727
|
if (!r.value || !i.value)
|
|
2670
2728
|
return;
|
|
2671
|
-
const w =
|
|
2729
|
+
const w = V.target;
|
|
2672
2730
|
i.value.contains(w) || (R = d.value) != null && R.contains(w) || C();
|
|
2673
2731
|
}, $ = () => {
|
|
2674
2732
|
if (!n.value || !d.value)
|
|
2675
2733
|
return;
|
|
2676
|
-
const
|
|
2734
|
+
const V = n.value, w = d.value, R = async () => {
|
|
2677
2735
|
const {
|
|
2678
2736
|
x: A,
|
|
2679
2737
|
y: q,
|
|
2680
|
-
placement:
|
|
2681
|
-
} = await Re(
|
|
2738
|
+
placement: L
|
|
2739
|
+
} = await Re(V, w, {
|
|
2682
2740
|
placement: u.value,
|
|
2683
2741
|
strategy: "fixed",
|
|
2684
2742
|
middleware: [Ie(2), Te({ placements: ["bottom", "top"] })]
|
|
2685
2743
|
});
|
|
2686
|
-
c.value =
|
|
2744
|
+
c.value = L ?? u.value, w.style.minWidth = `${V.getBoundingClientRect().width}px`, w.style.left = `${A}px`, w.style.top = `${q}px`;
|
|
2687
2745
|
}, D = async () => {
|
|
2688
2746
|
await R();
|
|
2689
|
-
}, z = De(
|
|
2747
|
+
}, z = De(V, () => {
|
|
2690
2748
|
D();
|
|
2691
2749
|
}), F = () => {
|
|
2692
2750
|
D();
|
|
@@ -2698,8 +2756,8 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
2698
2756
|
}
|
|
2699
2757
|
}, m.update();
|
|
2700
2758
|
};
|
|
2701
|
-
return ie(r, async (
|
|
2702
|
-
if (!
|
|
2759
|
+
return ie(r, async (V) => {
|
|
2760
|
+
if (!V) {
|
|
2703
2761
|
m && (m.destroy(), m = null);
|
|
2704
2762
|
return;
|
|
2705
2763
|
}
|
|
@@ -2710,11 +2768,11 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
2710
2768
|
m == null || m.update();
|
|
2711
2769
|
},
|
|
2712
2770
|
{ deep: !0 }
|
|
2713
|
-
),
|
|
2771
|
+
), Le(() => {
|
|
2714
2772
|
document.addEventListener("click", P);
|
|
2715
2773
|
}), ke(() => {
|
|
2716
2774
|
document.removeEventListener("click", P), m == null || m.destroy(), m = null;
|
|
2717
|
-
}), (
|
|
2775
|
+
}), (V, w) => (v(), g("div", {
|
|
2718
2776
|
ref_key: "root",
|
|
2719
2777
|
ref: i,
|
|
2720
2778
|
class: Z(_.value)
|
|
@@ -2724,7 +2782,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
2724
2782
|
ref: n,
|
|
2725
2783
|
class: "vf-select__control",
|
|
2726
2784
|
type: "button",
|
|
2727
|
-
disabled:
|
|
2785
|
+
disabled: V.disabled,
|
|
2728
2786
|
"aria-expanded": r.value,
|
|
2729
2787
|
"aria-controls": f,
|
|
2730
2788
|
"aria-haspopup": "listbox",
|
|
@@ -2739,13 +2797,13 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
2739
2797
|
}, [
|
|
2740
2798
|
x("span", {
|
|
2741
2799
|
class: Z(["vf-select__label", { "vf-select__label_placeholder": !k.value }])
|
|
2742
|
-
}, G(k.value ||
|
|
2800
|
+
}, G(k.value || V.placeholder), 3),
|
|
2743
2801
|
w[0] || (w[0] = x("span", {
|
|
2744
2802
|
class: "vf-select__chevron",
|
|
2745
2803
|
"aria-hidden": "true"
|
|
2746
2804
|
}, "▾", -1))
|
|
2747
2805
|
], 40, Po),
|
|
2748
|
-
(v(),
|
|
2806
|
+
(v(), pe(Ve, { to: "body" }, [
|
|
2749
2807
|
Ce(x("div", {
|
|
2750
2808
|
id: f,
|
|
2751
2809
|
ref_key: "panel",
|
|
@@ -2754,7 +2812,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
2754
2812
|
role: "listbox",
|
|
2755
2813
|
"data-placement": c.value
|
|
2756
2814
|
}, [
|
|
2757
|
-
(v(!0), g(ue, null,
|
|
2815
|
+
(v(!0), g(ue, null, me(y.value, (R) => (v(), g("button", {
|
|
2758
2816
|
key: R.value,
|
|
2759
2817
|
class: Z(["vf-select__option", { "is-active": B(R), "is-disabled": R.disabled }]),
|
|
2760
2818
|
type: "button",
|
|
@@ -2775,7 +2833,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
2775
2833
|
}, No = ["id", "disabled", "aria-selected", "onClick"], Go = {
|
|
2776
2834
|
key: 2,
|
|
2777
2835
|
class: "vf-autocomplete__empty"
|
|
2778
|
-
},
|
|
2836
|
+
}, _c = /* @__PURE__ */ oe({
|
|
2779
2837
|
__name: "autocomplete",
|
|
2780
2838
|
props: {
|
|
2781
2839
|
modelValue: { default: void 0 },
|
|
@@ -2830,7 +2888,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
2830
2888
|
t.disabled || (r.value = !0, f.value = "bottom", m.value = "bottom", c.value < 0 && (c.value = I()));
|
|
2831
2889
|
}, $ = () => {
|
|
2832
2890
|
r.value = !1, c.value = -1, f.value = "bottom", m.value = "bottom";
|
|
2833
|
-
},
|
|
2891
|
+
}, V = () => {
|
|
2834
2892
|
if (r.value) {
|
|
2835
2893
|
$();
|
|
2836
2894
|
return;
|
|
@@ -2864,7 +2922,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
2864
2922
|
}
|
|
2865
2923
|
const b = B.value[c.value];
|
|
2866
2924
|
b && !b.disabled && w(b);
|
|
2867
|
-
},
|
|
2925
|
+
}, L = (b) => {
|
|
2868
2926
|
var K;
|
|
2869
2927
|
if (!r.value || !i.value)
|
|
2870
2928
|
return;
|
|
@@ -2920,10 +2978,10 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
2920
2978
|
return;
|
|
2921
2979
|
}
|
|
2922
2980
|
await ze(), l || W(), l == null || l.update();
|
|
2923
|
-
}),
|
|
2924
|
-
document.addEventListener("click",
|
|
2981
|
+
}), Le(() => {
|
|
2982
|
+
document.addEventListener("click", L);
|
|
2925
2983
|
}), ke(() => {
|
|
2926
|
-
document.removeEventListener("click",
|
|
2984
|
+
document.removeEventListener("click", L), l == null || l.destroy(), l = null;
|
|
2927
2985
|
}), (b, E) => (v(), g("div", {
|
|
2928
2986
|
ref_key: "root",
|
|
2929
2987
|
ref: i,
|
|
@@ -2963,9 +3021,9 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
2963
3021
|
tabindex: "-1",
|
|
2964
3022
|
onMousedown: E[0] || (E[0] = re(() => {
|
|
2965
3023
|
}, ["prevent"])),
|
|
2966
|
-
onClick:
|
|
3024
|
+
onClick: V
|
|
2967
3025
|
}, " ▾ ", 40, Ho),
|
|
2968
|
-
(v(),
|
|
3026
|
+
(v(), pe(Ve, { to: "body" }, [
|
|
2969
3027
|
Ce(x("div", {
|
|
2970
3028
|
id: y,
|
|
2971
3029
|
ref_key: "panel",
|
|
@@ -2974,7 +3032,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
2974
3032
|
role: "listbox",
|
|
2975
3033
|
"data-placement": m.value
|
|
2976
3034
|
}, [
|
|
2977
|
-
b.loading ? (v(), g("div", Ko, G(b.loadingText), 1)) : B.value.length > 0 ? (v(!0), g(ue, { key: 1 },
|
|
3035
|
+
b.loading ? (v(), g("div", Ko, G(b.loadingText), 1)) : B.value.length > 0 ? (v(!0), g(ue, { key: 1 }, me(B.value, (K, H) => (v(), g("button", {
|
|
2978
3036
|
id: h(H),
|
|
2979
3037
|
key: K.value,
|
|
2980
3038
|
class: Z(["vf-autocomplete__option", {
|
|
@@ -2996,13 +3054,13 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
2996
3054
|
]))
|
|
2997
3055
|
], 2));
|
|
2998
3056
|
}
|
|
2999
|
-
}),
|
|
3057
|
+
}), jo = ["value", "placeholder", "disabled", "readonly", "aria-expanded", "aria-activedescendant", "onKeydown"], Yo = ["disabled"], Xo = ["data-placement"], Uo = {
|
|
3000
3058
|
key: 0,
|
|
3001
3059
|
class: "vf-combobox__loading"
|
|
3002
3060
|
}, qo = ["id", "disabled", "aria-selected", "onClick"], Qo = {
|
|
3003
3061
|
key: 2,
|
|
3004
3062
|
class: "vf-combobox__empty"
|
|
3005
|
-
},
|
|
3063
|
+
}, kc = /* @__PURE__ */ oe({
|
|
3006
3064
|
__name: "combobox",
|
|
3007
3065
|
props: {
|
|
3008
3066
|
modelValue: { default: void 0 },
|
|
@@ -3040,7 +3098,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
3040
3098
|
}), C = p(() => !t.strict || t.allowCreate), I = p(() => {
|
|
3041
3099
|
const U = ["vf-combobox", `vf-combobox_${t.variant}`, r.value ? "vf-combobox_open" : ""];
|
|
3042
3100
|
return t.size !== "normal" && U.push(`vf-combobox_${t.size}`), t.disabled && U.push("vf-combobox_disabled"), U.filter(Boolean);
|
|
3043
|
-
}), O = (U) => `${y}-option-${U}`, P = (U) => U.value === t.modelValue, $ = () => M.value.findIndex((U) => !U.disabled),
|
|
3101
|
+
}), O = (U) => `${y}-option-${U}`, P = (U) => U.value === t.modelValue, $ = () => M.value.findIndex((U) => !U.disabled), V = (U) => {
|
|
3044
3102
|
e("update:inputValue", U);
|
|
3045
3103
|
}, w = (U) => {
|
|
3046
3104
|
e("update:modelValue", U), e("change", U);
|
|
@@ -3070,18 +3128,18 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
3070
3128
|
D();
|
|
3071
3129
|
}, A = () => {
|
|
3072
3130
|
const U = u.value.trim();
|
|
3073
|
-
return !U || !C.value ? !1 : (t.allowCreate && !S.value && e("create", U), w(U),
|
|
3131
|
+
return !U || !C.value ? !1 : (t.allowCreate && !S.value && e("create", U), w(U), V(U), z(), !0);
|
|
3074
3132
|
}, q = () => {
|
|
3075
3133
|
var X;
|
|
3076
3134
|
const U = ((X = _.value) == null ? void 0 : X.label) ?? "";
|
|
3077
|
-
u.value = U,
|
|
3078
|
-
},
|
|
3079
|
-
U.disabled || (u.value = U.label,
|
|
3135
|
+
u.value = U, V(U);
|
|
3136
|
+
}, L = (U) => {
|
|
3137
|
+
U.disabled || (u.value = U.label, V(U.label), w(U.value), z());
|
|
3080
3138
|
}, W = () => {
|
|
3081
|
-
u.value = "",
|
|
3139
|
+
u.value = "", V(""), e("update:modelValue", void 0), e("change", void 0), z();
|
|
3082
3140
|
}, b = (U) => {
|
|
3083
3141
|
const X = U.target;
|
|
3084
|
-
u.value = X.value,
|
|
3142
|
+
u.value = X.value, V(X.value), e("search", X.value), D(), c.value = $();
|
|
3085
3143
|
}, E = (U) => {
|
|
3086
3144
|
e("focus", U), D();
|
|
3087
3145
|
}, K = (U) => {
|
|
@@ -3106,7 +3164,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
3106
3164
|
}
|
|
3107
3165
|
const U = M.value[c.value];
|
|
3108
3166
|
if (U && !U.disabled) {
|
|
3109
|
-
|
|
3167
|
+
L(U);
|
|
3110
3168
|
return;
|
|
3111
3169
|
}
|
|
3112
3170
|
A() || t.strict && q();
|
|
@@ -3172,7 +3230,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
3172
3230
|
return;
|
|
3173
3231
|
}
|
|
3174
3232
|
await ze(), l || le(), l == null || l.update();
|
|
3175
|
-
}),
|
|
3233
|
+
}), Le(() => {
|
|
3176
3234
|
document.addEventListener("click", ee);
|
|
3177
3235
|
}), ke(() => {
|
|
3178
3236
|
document.removeEventListener("click", ee), l == null || l.destroy(), l = null;
|
|
@@ -3206,7 +3264,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
3206
3264
|
ce(re(z, ["prevent"]), ["esc"]),
|
|
3207
3265
|
ce(z, ["tab"])
|
|
3208
3266
|
]
|
|
3209
|
-
}, null, 40,
|
|
3267
|
+
}, null, 40, jo),
|
|
3210
3268
|
U.clearable && u.value.length > 0 && !U.disabled && !U.readonly ? (v(), g("button", {
|
|
3211
3269
|
key: 0,
|
|
3212
3270
|
class: "vf-combobox__clear",
|
|
@@ -3225,8 +3283,8 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
3225
3283
|
onMousedown: X[1] || (X[1] = re(() => {
|
|
3226
3284
|
}, ["prevent"])),
|
|
3227
3285
|
onClick: F
|
|
3228
|
-
}, " ▾ ", 40,
|
|
3229
|
-
(v(),
|
|
3286
|
+
}, " ▾ ", 40, Yo),
|
|
3287
|
+
(v(), pe(Ve, { to: "body" }, [
|
|
3230
3288
|
Ce(x("div", {
|
|
3231
3289
|
id: y,
|
|
3232
3290
|
ref_key: "panel",
|
|
@@ -3235,7 +3293,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
3235
3293
|
role: "listbox",
|
|
3236
3294
|
"data-placement": m.value
|
|
3237
3295
|
}, [
|
|
3238
|
-
U.loading ? (v(), g("div", Uo, G(U.loadingText), 1)) : M.value.length > 0 ? (v(!0), g(ue, { key: 1 },
|
|
3296
|
+
U.loading ? (v(), g("div", Uo, G(U.loadingText), 1)) : M.value.length > 0 ? (v(!0), g(ue, { key: 1 }, me(M.value, (ae, ne) => (v(), g("button", {
|
|
3239
3297
|
id: O(ne),
|
|
3240
3298
|
key: ae.value,
|
|
3241
3299
|
class: Z(["vf-combobox__option", {
|
|
@@ -3249,7 +3307,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
3249
3307
|
"aria-selected": P(ae),
|
|
3250
3308
|
onMousedown: X[2] || (X[2] = re(() => {
|
|
3251
3309
|
}, ["prevent"])),
|
|
3252
|
-
onClick: (ge) =>
|
|
3310
|
+
onClick: (ge) => L(ae)
|
|
3253
3311
|
}, G(ae.label), 43, qo))), 128)) : (v(), g("div", Qo, G(U.emptyText), 1))
|
|
3254
3312
|
], 8, Xo), [
|
|
3255
3313
|
[$e, r.value]
|
|
@@ -3270,7 +3328,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
3270
3328
|
}, nr = {
|
|
3271
3329
|
key: 3,
|
|
3272
3330
|
class: "vf-multiselect__empty"
|
|
3273
|
-
},
|
|
3331
|
+
}, Cc = /* @__PURE__ */ oe({
|
|
3274
3332
|
__name: "multi-select",
|
|
3275
3333
|
props: {
|
|
3276
3334
|
modelValue: { default: () => [] },
|
|
@@ -3308,7 +3366,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
3308
3366
|
return t.size !== "normal" && T.push(`vf-multiselect_${t.size}`), t.disabled && T.push("vf-multiselect_disabled"), T.filter(Boolean);
|
|
3309
3367
|
}), I = (T) => `${l}-option-${T}`, O = () => M.value.findIndex((T) => !T.disabled), P = (T) => B.value.includes(T.value), $ = (T) => {
|
|
3310
3368
|
e("update:modelValue", T), e("change", T);
|
|
3311
|
-
},
|
|
3369
|
+
}, V = (T) => {
|
|
3312
3370
|
if (!(T.disabled || t.readonly)) {
|
|
3313
3371
|
if (P(T)) {
|
|
3314
3372
|
$(B.value.filter((Y) => Y !== T.value));
|
|
@@ -3355,13 +3413,13 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
3355
3413
|
return;
|
|
3356
3414
|
}
|
|
3357
3415
|
R(-1);
|
|
3358
|
-
},
|
|
3416
|
+
}, L = () => {
|
|
3359
3417
|
if (!u.value) {
|
|
3360
3418
|
D();
|
|
3361
3419
|
return;
|
|
3362
3420
|
}
|
|
3363
3421
|
const T = M.value[f.value];
|
|
3364
|
-
T && !T.disabled &&
|
|
3422
|
+
T && !T.disabled && V(T);
|
|
3365
3423
|
}, W = (T) => {
|
|
3366
3424
|
const Y = T.target;
|
|
3367
3425
|
c.value = Y.value, e("search", Y.value), f.value = O();
|
|
@@ -3413,7 +3471,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
3413
3471
|
await ze(), k || H(), k == null || k.update();
|
|
3414
3472
|
}), ie(M, () => {
|
|
3415
3473
|
f.value >= M.value.length && (f.value = O());
|
|
3416
|
-
}),
|
|
3474
|
+
}), Le(() => {
|
|
3417
3475
|
document.addEventListener("click", K);
|
|
3418
3476
|
}), ke(() => {
|
|
3419
3477
|
document.removeEventListener("click", K), k == null || k.destroy(), k = null;
|
|
@@ -3435,7 +3493,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
3435
3493
|
onKeydown: [
|
|
3436
3494
|
ce(re(A, ["prevent"]), ["down"]),
|
|
3437
3495
|
ce(re(q, ["prevent"]), ["up"]),
|
|
3438
|
-
ce(re(
|
|
3496
|
+
ce(re(L, ["prevent"]), ["enter"]),
|
|
3439
3497
|
ce(re(z, ["prevent"]), ["esc"])
|
|
3440
3498
|
],
|
|
3441
3499
|
onFocus: b,
|
|
@@ -3456,7 +3514,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
3456
3514
|
"aria-label": "Clear selection",
|
|
3457
3515
|
onClick: re(w, ["stop"])
|
|
3458
3516
|
}, " ✕ ")) : Q("", !0),
|
|
3459
|
-
(v(),
|
|
3517
|
+
(v(), pe(Ve, { to: "body" }, [
|
|
3460
3518
|
Ce(x("div", {
|
|
3461
3519
|
id: l,
|
|
3462
3520
|
ref_key: "panel",
|
|
@@ -3478,12 +3536,12 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
3478
3536
|
onKeydown: [
|
|
3479
3537
|
ce(re(A, ["prevent"]), ["down"]),
|
|
3480
3538
|
ce(re(q, ["prevent"]), ["up"]),
|
|
3481
|
-
ce(re(
|
|
3539
|
+
ce(re(L, ["prevent"]), ["enter"]),
|
|
3482
3540
|
ce(re(z, ["prevent"]), ["esc"])
|
|
3483
3541
|
]
|
|
3484
3542
|
}, null, 40, tr)
|
|
3485
3543
|
])) : Q("", !0),
|
|
3486
|
-
T.loading ? (v(), g("div", ar, G(T.loadingText), 1)) : M.value.length > 0 ? (v(!0), g(ue, { key: 2 },
|
|
3544
|
+
T.loading ? (v(), g("div", ar, G(T.loadingText), 1)) : M.value.length > 0 ? (v(!0), g(ue, { key: 2 }, me(M.value, (ee, le) => (v(), g("button", {
|
|
3487
3545
|
id: I(le),
|
|
3488
3546
|
key: ee.value,
|
|
3489
3547
|
class: Z(["vf-multiselect__option", {
|
|
@@ -3495,7 +3553,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
3495
3553
|
role: "option",
|
|
3496
3554
|
disabled: ee.disabled,
|
|
3497
3555
|
"aria-selected": P(ee),
|
|
3498
|
-
onClick: (U) =>
|
|
3556
|
+
onClick: (U) => V(ee)
|
|
3499
3557
|
}, [
|
|
3500
3558
|
x("span", rr, G(ee.label), 1),
|
|
3501
3559
|
P(ee) ? (v(), g("span", lr, "✓")) : Q("", !0)
|
|
@@ -3512,7 +3570,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
3512
3570
|
}, pr = ["id", "disabled", "onClick"], mr = {
|
|
3513
3571
|
key: 2,
|
|
3514
3572
|
class: "vf-tag-input__empty"
|
|
3515
|
-
},
|
|
3573
|
+
}, $c = /* @__PURE__ */ oe({
|
|
3516
3574
|
__name: "tag-input",
|
|
3517
3575
|
props: {
|
|
3518
3576
|
modelValue: { default: () => [] },
|
|
@@ -3556,9 +3614,9 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
3556
3614
|
return t.size !== "normal" && J.push(`vf-tag-input_${t.size}`), t.disabled && J.push("vf-tag-input_disabled"), J.filter(Boolean);
|
|
3557
3615
|
}), I = (J) => `${y}-option-${J}`, O = () => M.value.findIndex((J) => !J.disabled), P = (J) => S.value.get(String(J)) ?? String(J), $ = (J) => {
|
|
3558
3616
|
e("update:modelValue", J), e("change", J);
|
|
3559
|
-
},
|
|
3617
|
+
}, V = (J, ve) => {
|
|
3560
3618
|
e("reject", { reason: J, value: ve });
|
|
3561
|
-
}, w = (J) => t.readonly ? (
|
|
3619
|
+
}, w = (J) => t.readonly ? (V("readonly", J), !1) : J ? B.value.has(J) ? (V("duplicate", J), !1) : typeof t.maxTags == "number" && k.value.length >= t.maxTags ? (V("maxTags", J), !1) : t.validateTag && !t.validateTag(J) ? (V("invalid", J), !1) : !0 : !1, R = (J, ve) => {
|
|
3562
3620
|
const be = typeof J == "string" ? J.trim() : String(J);
|
|
3563
3621
|
return w(be) ? ($([...k.value, J]), e("add", { value: J, source: ve }), r.value = "", c.value = O(), !0) : !1;
|
|
3564
3622
|
}, D = (J) => {
|
|
@@ -3592,7 +3650,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
3592
3650
|
return;
|
|
3593
3651
|
}
|
|
3594
3652
|
c.value = -1;
|
|
3595
|
-
},
|
|
3653
|
+
}, L = () => {
|
|
3596
3654
|
t.disabled || (u.value = !0, f.value = "bottom", m.value = "bottom", c.value < 0 && (c.value = O()));
|
|
3597
3655
|
}, W = () => {
|
|
3598
3656
|
u.value = !1, c.value = -1, f.value = "bottom", m.value = "bottom";
|
|
@@ -3601,26 +3659,26 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
3601
3659
|
W();
|
|
3602
3660
|
return;
|
|
3603
3661
|
}
|
|
3604
|
-
|
|
3662
|
+
L(), E();
|
|
3605
3663
|
}, E = () => {
|
|
3606
3664
|
var J;
|
|
3607
3665
|
(J = n.value) == null || J.focus();
|
|
3608
3666
|
}, K = (J) => {
|
|
3609
3667
|
const ve = J.target;
|
|
3610
|
-
r.value = ve.value, e("search", ve.value),
|
|
3668
|
+
r.value = ve.value, e("search", ve.value), L(), c.value = O();
|
|
3611
3669
|
}, H = (J) => {
|
|
3612
|
-
e("focus", J),
|
|
3670
|
+
e("focus", J), L();
|
|
3613
3671
|
}, T = (J) => {
|
|
3614
3672
|
e("blur", J);
|
|
3615
3673
|
}, Y = () => {
|
|
3616
3674
|
if (!u.value) {
|
|
3617
|
-
|
|
3675
|
+
L();
|
|
3618
3676
|
return;
|
|
3619
3677
|
}
|
|
3620
3678
|
q(1);
|
|
3621
3679
|
}, ee = () => {
|
|
3622
3680
|
if (!u.value) {
|
|
3623
|
-
|
|
3681
|
+
L();
|
|
3624
3682
|
return;
|
|
3625
3683
|
}
|
|
3626
3684
|
q(-1);
|
|
@@ -3687,7 +3745,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
3687
3745
|
return;
|
|
3688
3746
|
}
|
|
3689
3747
|
await ze(), l || ge(), l == null || l.update();
|
|
3690
|
-
}),
|
|
3748
|
+
}), Le(() => {
|
|
3691
3749
|
document.addEventListener("click", ne);
|
|
3692
3750
|
}), ke(() => {
|
|
3693
3751
|
document.removeEventListener("click", ne), l == null || l.destroy(), l = null;
|
|
@@ -3698,7 +3756,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
3698
3756
|
onClick: E
|
|
3699
3757
|
}, [
|
|
3700
3758
|
x("div", sr, [
|
|
3701
|
-
(v(!0), g(ue, null,
|
|
3759
|
+
(v(!0), g(ue, null, me(k.value, (be, we) => (v(), g("span", {
|
|
3702
3760
|
key: `${String(be)}-${we}`,
|
|
3703
3761
|
class: "vf-tag-input__tag"
|
|
3704
3762
|
}, [
|
|
@@ -3756,7 +3814,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
3756
3814
|
}, ["prevent"])),
|
|
3757
3815
|
onClick: re(b, ["stop"])
|
|
3758
3816
|
}, " ▾ ", 40, cr),
|
|
3759
|
-
(v(),
|
|
3817
|
+
(v(), pe(Ve, { to: "body" }, [
|
|
3760
3818
|
Ce(x("div", {
|
|
3761
3819
|
id: y,
|
|
3762
3820
|
ref_key: "panel",
|
|
@@ -3765,7 +3823,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
3765
3823
|
role: "listbox",
|
|
3766
3824
|
"data-placement": m.value
|
|
3767
3825
|
}, [
|
|
3768
|
-
J.loading ? (v(), g("div", fr, G(J.loadingText), 1)) : M.value.length > 0 ? (v(!0), g(ue, { key: 1 },
|
|
3826
|
+
J.loading ? (v(), g("div", fr, G(J.loadingText), 1)) : M.value.length > 0 ? (v(!0), g(ue, { key: 1 }, me(M.value, (be, we) => (v(), g("button", {
|
|
3769
3827
|
id: I(we),
|
|
3770
3828
|
key: be.value,
|
|
3771
3829
|
class: Z(["vf-tag-input__option", {
|
|
@@ -3791,7 +3849,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
3791
3849
|
}, kr = {
|
|
3792
3850
|
class: "vf-datepicker__days",
|
|
3793
3851
|
role: "grid"
|
|
3794
|
-
}, Cr = ["disabled", "data-date", "onClick"],
|
|
3852
|
+
}, Cr = ["disabled", "data-date", "onClick"], wc = /* @__PURE__ */ oe({
|
|
3795
3853
|
__name: "datepicker",
|
|
3796
3854
|
props: {
|
|
3797
3855
|
modelValue: { default: void 0 },
|
|
@@ -3808,7 +3866,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
3808
3866
|
emits: ["update:modelValue", "change", "focus", "blur"],
|
|
3809
3867
|
setup(s, { emit: o }) {
|
|
3810
3868
|
let a = 0;
|
|
3811
|
-
const e = o, t = s, i = N(null), n = N(null), d = N(null), r = N(!1), u = N("bottom"), c = N("bottom"), f = `vf-datepicker-panel-${++a}`, m = N(
|
|
3869
|
+
const e = o, t = s, i = N(null), n = N(null), d = N(null), r = N(!1), u = N("bottom"), c = N("bottom"), f = `vf-datepicker-panel-${++a}`, m = N(L(A(t.modelValue) ?? /* @__PURE__ */ new Date()));
|
|
3812
3870
|
let y = null;
|
|
3813
3871
|
const l = p(() => A(t.modelValue)), k = p(() => A(t.min)), _ = p(() => A(t.max)), B = p(() => l.value ? l.value.toLocaleDateString(t.locale, {
|
|
3814
3872
|
year: "numeric",
|
|
@@ -3845,7 +3903,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
3845
3903
|
t.disabled || t.readonly || (r.value = !0, u.value = "bottom", c.value = "bottom");
|
|
3846
3904
|
}, $ = () => {
|
|
3847
3905
|
r.value = !1, u.value = "bottom", c.value = "bottom";
|
|
3848
|
-
},
|
|
3906
|
+
}, V = () => {
|
|
3849
3907
|
if (r.value) {
|
|
3850
3908
|
$();
|
|
3851
3909
|
return;
|
|
@@ -3898,7 +3956,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
3898
3956
|
() => t.modelValue,
|
|
3899
3957
|
(T) => {
|
|
3900
3958
|
const Y = A(T);
|
|
3901
|
-
Y && (m.value =
|
|
3959
|
+
Y && (m.value = L(Y));
|
|
3902
3960
|
},
|
|
3903
3961
|
{ immediate: !0 }
|
|
3904
3962
|
), ie(
|
|
@@ -3912,7 +3970,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
3912
3970
|
return;
|
|
3913
3971
|
}
|
|
3914
3972
|
await ze(), y || F(), y == null || y.update();
|
|
3915
|
-
}),
|
|
3973
|
+
}), Le(() => {
|
|
3916
3974
|
document.addEventListener("click", z);
|
|
3917
3975
|
}), ke(() => {
|
|
3918
3976
|
document.removeEventListener("click", z), y == null || y.destroy(), y = null;
|
|
@@ -3929,7 +3987,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
3929
3987
|
function q(T) {
|
|
3930
3988
|
return new Date(T.getFullYear(), T.getMonth(), T.getDate());
|
|
3931
3989
|
}
|
|
3932
|
-
function
|
|
3990
|
+
function L(T) {
|
|
3933
3991
|
return new Date(T.getFullYear(), T.getMonth(), 1);
|
|
3934
3992
|
}
|
|
3935
3993
|
function W(T, Y) {
|
|
@@ -3939,7 +3997,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
3939
3997
|
return new Date(T.getFullYear(), T.getMonth(), T.getDate() + Y);
|
|
3940
3998
|
}
|
|
3941
3999
|
function E(T, Y) {
|
|
3942
|
-
const ee =
|
|
4000
|
+
const ee = L(T), U = (ee.getDay() - Y + 7) % 7;
|
|
3943
4001
|
return b(ee, -U);
|
|
3944
4002
|
}
|
|
3945
4003
|
function K(T) {
|
|
@@ -3964,10 +4022,10 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
3964
4022
|
"aria-expanded": r.value,
|
|
3965
4023
|
"aria-controls": f,
|
|
3966
4024
|
"aria-haspopup": "dialog",
|
|
3967
|
-
onClick:
|
|
4025
|
+
onClick: V,
|
|
3968
4026
|
onKeydown: [
|
|
3969
4027
|
ce(re(P, ["prevent"]), ["down"]),
|
|
3970
|
-
ce(re(
|
|
4028
|
+
ce(re(V, ["prevent"]), ["enter"]),
|
|
3971
4029
|
ce(re($, ["prevent"]), ["esc"])
|
|
3972
4030
|
],
|
|
3973
4031
|
onFocus: I,
|
|
@@ -3981,7 +4039,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
3981
4039
|
"aria-hidden": "true"
|
|
3982
4040
|
}, "▾", -1))
|
|
3983
4041
|
], 40, gr),
|
|
3984
|
-
(v(),
|
|
4042
|
+
(v(), pe(Ve, { to: "body" }, [
|
|
3985
4043
|
Ce(x("div", {
|
|
3986
4044
|
id: f,
|
|
3987
4045
|
ref_key: "panel",
|
|
@@ -4007,13 +4065,13 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4007
4065
|
}, " › ")
|
|
4008
4066
|
]),
|
|
4009
4067
|
x("div", _r, [
|
|
4010
|
-
(v(!0), g(ue, null,
|
|
4068
|
+
(v(!0), g(ue, null, me(S.value, (ee) => (v(), g("span", {
|
|
4011
4069
|
key: ee,
|
|
4012
4070
|
class: "vf-datepicker__weekday"
|
|
4013
4071
|
}, G(ee), 1))), 128))
|
|
4014
4072
|
]),
|
|
4015
4073
|
x("div", kr, [
|
|
4016
|
-
(v(!0), g(ue, null,
|
|
4074
|
+
(v(!0), g(ue, null, me(h.value, (ee) => (v(), g("button", {
|
|
4017
4075
|
key: ee.key,
|
|
4018
4076
|
class: Z(["vf-datepicker__day", {
|
|
4019
4077
|
"is-outside": !ee.inCurrentMonth,
|
|
@@ -4038,7 +4096,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4038
4096
|
}, xr = {
|
|
4039
4097
|
class: "vf-daterangepicker__days",
|
|
4040
4098
|
role: "grid"
|
|
4041
|
-
},
|
|
4099
|
+
}, Vr = ["disabled", "data-date", "onClick"], zc = /* @__PURE__ */ oe({
|
|
4042
4100
|
__name: "date-range-picker",
|
|
4043
4101
|
props: {
|
|
4044
4102
|
modelValue: { default: null },
|
|
@@ -4103,7 +4161,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4103
4161
|
r.value ? "vf-daterangepicker_open" : ""
|
|
4104
4162
|
];
|
|
4105
4163
|
return t.size !== "normal" && X.push(`vf-daterangepicker_${t.size}`), t.disabled && X.push("vf-daterangepicker_disabled"), X.filter(Boolean);
|
|
4106
|
-
}), $ = (X) => e("focus", X),
|
|
4164
|
+
}), $ = (X) => e("focus", X), V = (X) => e("blur", X), w = () => {
|
|
4107
4165
|
t.disabled || t.readonly || (r.value = !0, u.value = "bottom", c.value = "bottom");
|
|
4108
4166
|
}, R = () => {
|
|
4109
4167
|
r.value = !1, u.value = "bottom", c.value = "bottom";
|
|
@@ -4130,7 +4188,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4130
4188
|
}
|
|
4131
4189
|
const ge = K(ae).getTime();
|
|
4132
4190
|
K(X).getTime() < ge ? A(X, ae) : A(ae, X), R();
|
|
4133
|
-
},
|
|
4191
|
+
}, L = (X) => {
|
|
4134
4192
|
var ne;
|
|
4135
4193
|
if (!r.value || !i.value)
|
|
4136
4194
|
return;
|
|
@@ -4182,10 +4240,10 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4182
4240
|
return;
|
|
4183
4241
|
}
|
|
4184
4242
|
await ze(), y || W(), y == null || y.update();
|
|
4185
|
-
}),
|
|
4186
|
-
document.addEventListener("click",
|
|
4243
|
+
}), Le(() => {
|
|
4244
|
+
document.addEventListener("click", L);
|
|
4187
4245
|
}), ke(() => {
|
|
4188
|
-
document.removeEventListener("click",
|
|
4246
|
+
document.removeEventListener("click", L), y == null || y.destroy(), y = null;
|
|
4189
4247
|
});
|
|
4190
4248
|
function b(X) {
|
|
4191
4249
|
if (!X || !Array.isArray(X))
|
|
@@ -4247,7 +4305,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4247
4305
|
ce(re(R, ["prevent"]), ["esc"])
|
|
4248
4306
|
],
|
|
4249
4307
|
onFocus: $,
|
|
4250
|
-
onBlur:
|
|
4308
|
+
onBlur: V
|
|
4251
4309
|
}, [
|
|
4252
4310
|
x("span", {
|
|
4253
4311
|
class: Z(["vf-daterangepicker__label", { "vf-daterangepicker__label_placeholder": S.value }])
|
|
@@ -4257,7 +4315,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4257
4315
|
"aria-hidden": "true"
|
|
4258
4316
|
}, "▾", -1))
|
|
4259
4317
|
], 40, $r),
|
|
4260
|
-
(v(),
|
|
4318
|
+
(v(), pe(Ve, { to: "body" }, [
|
|
4261
4319
|
Ce(x("div", {
|
|
4262
4320
|
id: f,
|
|
4263
4321
|
ref_key: "panel",
|
|
@@ -4283,13 +4341,13 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4283
4341
|
}, " › ")
|
|
4284
4342
|
]),
|
|
4285
4343
|
x("div", Br, [
|
|
4286
|
-
(v(!0), g(ue, null,
|
|
4344
|
+
(v(!0), g(ue, null, me(I.value, (ne) => (v(), g("span", {
|
|
4287
4345
|
key: ne,
|
|
4288
4346
|
class: "vf-daterangepicker__weekday"
|
|
4289
4347
|
}, G(ne), 1))), 128))
|
|
4290
4348
|
]),
|
|
4291
4349
|
x("div", xr, [
|
|
4292
|
-
(v(!0), g(ue, null,
|
|
4350
|
+
(v(!0), g(ue, null, me(O.value, (ne) => (v(), g("button", {
|
|
4293
4351
|
key: ne.key,
|
|
4294
4352
|
class: Z(["vf-daterangepicker__day", {
|
|
4295
4353
|
"is-outside": !ne.inCurrentMonth,
|
|
@@ -4303,7 +4361,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4303
4361
|
disabled: ne.isDisabled,
|
|
4304
4362
|
"data-date": ne.iso,
|
|
4305
4363
|
onClick: (ge) => q(ne.date)
|
|
4306
|
-
}, G(ne.day), 11,
|
|
4364
|
+
}, G(ne.day), 11, Vr))), 128))
|
|
4307
4365
|
])
|
|
4308
4366
|
], 40, wr), [
|
|
4309
4367
|
[$e, r.value]
|
|
@@ -4311,7 +4369,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4311
4369
|
]))
|
|
4312
4370
|
], 2));
|
|
4313
4371
|
}
|
|
4314
|
-
}),
|
|
4372
|
+
}), Lr = ["disabled", "aria-expanded", "onKeydown"], Fr = ["data-placement"], Tr = ["data-time", "disabled", "aria-selected", "onClick"], Sc = /* @__PURE__ */ oe({
|
|
4315
4373
|
__name: "timepicker",
|
|
4316
4374
|
props: {
|
|
4317
4375
|
modelValue: { default: void 0 },
|
|
@@ -4331,10 +4389,10 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4331
4389
|
const e = o, t = s, i = N(null), n = N(null), d = N(null), r = N(!1), u = N("bottom"), c = N("bottom"), f = `vf-timepicker-panel-${++a}`;
|
|
4332
4390
|
let m = null;
|
|
4333
4391
|
const y = p(() => z(t.min)), l = p(() => z(t.max)), k = p(() => z(t.modelValue)), _ = p(() => k.value === null ? "" : A(k.value, t.format)), B = p(() => !t.step || t.step <= 0 ? 30 : Math.min(Math.max(Math.round(t.step), 1), 1440)), M = p(() => {
|
|
4334
|
-
const
|
|
4392
|
+
const L = [], W = B.value, b = y.value, E = l.value;
|
|
4335
4393
|
for (let K = 0; K < 1440; K += W) {
|
|
4336
4394
|
const H = F(K);
|
|
4337
|
-
|
|
4395
|
+
L.push({
|
|
4338
4396
|
value: H,
|
|
4339
4397
|
minutes: K,
|
|
4340
4398
|
label: A(K, t.format),
|
|
@@ -4342,11 +4400,11 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4342
4400
|
isDisabled: q(K, b, E)
|
|
4343
4401
|
});
|
|
4344
4402
|
}
|
|
4345
|
-
return
|
|
4403
|
+
return L;
|
|
4346
4404
|
}), S = p(() => {
|
|
4347
|
-
const
|
|
4348
|
-
return t.size !== "normal" &&
|
|
4349
|
-
}), h = (
|
|
4405
|
+
const L = ["vf-timepicker", `vf-timepicker_${t.variant}`, r.value ? "vf-timepicker_open" : ""];
|
|
4406
|
+
return t.size !== "normal" && L.push(`vf-timepicker_${t.size}`), t.disabled && L.push("vf-timepicker_disabled"), L.filter(Boolean);
|
|
4407
|
+
}), h = (L) => e("focus", L), C = (L) => e("blur", L), I = () => {
|
|
4350
4408
|
t.disabled || t.readonly || (r.value = !0, u.value = "bottom", c.value = "bottom");
|
|
4351
4409
|
}, O = () => {
|
|
4352
4410
|
r.value = !1, u.value = "bottom", c.value = "bottom";
|
|
@@ -4357,38 +4415,38 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4357
4415
|
}
|
|
4358
4416
|
I();
|
|
4359
4417
|
}, $ = async () => {
|
|
4360
|
-
var
|
|
4361
|
-
r.value || (I(), await ze()), (W = (
|
|
4362
|
-
},
|
|
4418
|
+
var L, W;
|
|
4419
|
+
r.value || (I(), await ze()), (W = (L = d.value) == null ? void 0 : L.querySelector(".vf-timepicker__option:not(.is-disabled)")) == null || W.focus();
|
|
4420
|
+
}, V = (L) => {
|
|
4363
4421
|
if (t.readonly)
|
|
4364
4422
|
return;
|
|
4365
|
-
const W = z(
|
|
4366
|
-
W === null || q(W, y.value, l.value) || (e("update:modelValue",
|
|
4367
|
-
}, w = (
|
|
4423
|
+
const W = z(L);
|
|
4424
|
+
W === null || q(W, y.value, l.value) || (e("update:modelValue", L), e("change", L), O());
|
|
4425
|
+
}, w = (L) => {
|
|
4368
4426
|
var b;
|
|
4369
4427
|
if (!r.value || !i.value)
|
|
4370
4428
|
return;
|
|
4371
|
-
const W =
|
|
4429
|
+
const W = L.target;
|
|
4372
4430
|
i.value.contains(W) || (b = d.value) != null && b.contains(W) || O();
|
|
4373
4431
|
}, R = () => {
|
|
4374
4432
|
if (!n.value || !d.value)
|
|
4375
4433
|
return;
|
|
4376
|
-
const
|
|
4434
|
+
const L = n.value, W = d.value, b = async () => {
|
|
4377
4435
|
const {
|
|
4378
4436
|
x: T,
|
|
4379
4437
|
y: Y,
|
|
4380
4438
|
placement: ee
|
|
4381
|
-
} = await Re(
|
|
4439
|
+
} = await Re(L, W, {
|
|
4382
4440
|
placement: u.value,
|
|
4383
4441
|
strategy: "fixed",
|
|
4384
4442
|
middleware: [Ie(2), Te({ placements: ["bottom", "top"] })]
|
|
4385
4443
|
});
|
|
4386
4444
|
c.value = ee ?? u.value;
|
|
4387
|
-
const le =
|
|
4445
|
+
const le = L.getBoundingClientRect().width;
|
|
4388
4446
|
W.style.minWidth = `${le}px`, W.style.width = `${le}px`, W.style.left = `${T}px`, W.style.top = `${Y}px`;
|
|
4389
4447
|
}, E = async () => {
|
|
4390
4448
|
await b();
|
|
4391
|
-
}, K = De(
|
|
4449
|
+
}, K = De(L, () => {
|
|
4392
4450
|
E();
|
|
4393
4451
|
}), H = () => {
|
|
4394
4452
|
E();
|
|
@@ -4402,11 +4460,11 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4402
4460
|
}, D = () => {
|
|
4403
4461
|
if (!d.value || k.value === null)
|
|
4404
4462
|
return;
|
|
4405
|
-
const
|
|
4406
|
-
!
|
|
4463
|
+
const L = d.value.querySelector(`[data-time="${F(k.value)}"]`);
|
|
4464
|
+
!L || typeof L.scrollIntoView != "function" || L.scrollIntoView({ block: "nearest" });
|
|
4407
4465
|
};
|
|
4408
|
-
ie(r, async (
|
|
4409
|
-
if (!
|
|
4466
|
+
ie(r, async (L) => {
|
|
4467
|
+
if (!L) {
|
|
4410
4468
|
m && (m.destroy(), m = null);
|
|
4411
4469
|
return;
|
|
4412
4470
|
}
|
|
@@ -4416,35 +4474,35 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4416
4474
|
() => {
|
|
4417
4475
|
m == null || m.update();
|
|
4418
4476
|
}
|
|
4419
|
-
),
|
|
4477
|
+
), Le(() => {
|
|
4420
4478
|
document.addEventListener("click", w);
|
|
4421
4479
|
}), ke(() => {
|
|
4422
4480
|
document.removeEventListener("click", w), m == null || m.destroy(), m = null;
|
|
4423
4481
|
});
|
|
4424
|
-
function z(
|
|
4425
|
-
if (!
|
|
4482
|
+
function z(L) {
|
|
4483
|
+
if (!L)
|
|
4426
4484
|
return null;
|
|
4427
|
-
const W =
|
|
4485
|
+
const W = L.match(/^(\d{2}):(\d{2})$/);
|
|
4428
4486
|
if (!W)
|
|
4429
4487
|
return null;
|
|
4430
4488
|
const b = Number(W[1]), E = Number(W[2]);
|
|
4431
4489
|
return Number.isNaN(b) || Number.isNaN(E) || b < 0 || b > 23 || E < 0 || E > 59 ? null : b * 60 + E;
|
|
4432
4490
|
}
|
|
4433
|
-
function F(
|
|
4434
|
-
const W = Math.floor(
|
|
4491
|
+
function F(L) {
|
|
4492
|
+
const W = Math.floor(L / 60), b = L % 60;
|
|
4435
4493
|
return `${String(W).padStart(2, "0")}:${String(b).padStart(2, "0")}`;
|
|
4436
4494
|
}
|
|
4437
|
-
function A(
|
|
4495
|
+
function A(L, W) {
|
|
4438
4496
|
if (W === "12h") {
|
|
4439
|
-
const b = Math.floor(
|
|
4497
|
+
const b = Math.floor(L / 60), E = L % 60, K = b >= 12 ? "PM" : "AM";
|
|
4440
4498
|
return `${b % 12 || 12}:${String(E).padStart(2, "0")} ${K}`;
|
|
4441
4499
|
}
|
|
4442
|
-
return F(
|
|
4500
|
+
return F(L);
|
|
4443
4501
|
}
|
|
4444
|
-
function q(
|
|
4445
|
-
return W !== null &&
|
|
4502
|
+
function q(L, W, b) {
|
|
4503
|
+
return W !== null && L < W || b !== null && L > b;
|
|
4446
4504
|
}
|
|
4447
|
-
return (
|
|
4505
|
+
return (L, W) => (v(), g("div", {
|
|
4448
4506
|
ref_key: "root",
|
|
4449
4507
|
ref: i,
|
|
4450
4508
|
class: Z(S.value)
|
|
@@ -4454,7 +4512,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4454
4512
|
ref: n,
|
|
4455
4513
|
class: "vf-timepicker__control",
|
|
4456
4514
|
type: "button",
|
|
4457
|
-
disabled:
|
|
4515
|
+
disabled: L.disabled,
|
|
4458
4516
|
"aria-expanded": r.value,
|
|
4459
4517
|
"aria-controls": f,
|
|
4460
4518
|
"aria-haspopup": "listbox",
|
|
@@ -4469,13 +4527,13 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4469
4527
|
}, [
|
|
4470
4528
|
x("span", {
|
|
4471
4529
|
class: Z(["vf-timepicker__label", { "vf-timepicker__label_placeholder": !_.value }])
|
|
4472
|
-
}, G(_.value ||
|
|
4530
|
+
}, G(_.value || L.placeholder), 3),
|
|
4473
4531
|
W[0] || (W[0] = x("span", {
|
|
4474
4532
|
class: "vf-timepicker__chevron",
|
|
4475
4533
|
"aria-hidden": "true"
|
|
4476
4534
|
}, "▾", -1))
|
|
4477
|
-
], 40,
|
|
4478
|
-
(v(),
|
|
4535
|
+
], 40, Lr),
|
|
4536
|
+
(v(), pe(Ve, { to: "body" }, [
|
|
4479
4537
|
Ce(x("div", {
|
|
4480
4538
|
id: f,
|
|
4481
4539
|
ref_key: "panel",
|
|
@@ -4484,7 +4542,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4484
4542
|
role: "listbox",
|
|
4485
4543
|
"data-placement": c.value
|
|
4486
4544
|
}, [
|
|
4487
|
-
(v(!0), g(ue, null,
|
|
4545
|
+
(v(!0), g(ue, null, me(M.value, (b) => (v(), g("button", {
|
|
4488
4546
|
key: b.value,
|
|
4489
4547
|
class: Z(["vf-timepicker__option", { "is-active": b.isSelected, "is-disabled": b.isDisabled }]),
|
|
4490
4548
|
type: "button",
|
|
@@ -4492,7 +4550,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4492
4550
|
"data-time": b.value,
|
|
4493
4551
|
disabled: b.isDisabled,
|
|
4494
4552
|
"aria-selected": b.isSelected,
|
|
4495
|
-
onClick: (E) =>
|
|
4553
|
+
onClick: (E) => V(b.value)
|
|
4496
4554
|
}, G(b.label), 11, Tr))), 128))
|
|
4497
4555
|
], 8, Fr), [
|
|
4498
4556
|
[$e, r.value]
|
|
@@ -4509,7 +4567,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4509
4567
|
}, Ar = ["disabled", "data-date", "onClick"], Hr = {
|
|
4510
4568
|
class: "vf-datetimepicker__times",
|
|
4511
4569
|
role: "listbox"
|
|
4512
|
-
}, Wr = ["data-time", "disabled", "aria-selected", "onClick"],
|
|
4570
|
+
}, Wr = ["data-time", "disabled", "aria-selected", "onClick"], Bc = /* @__PURE__ */ oe({
|
|
4513
4571
|
__name: "datetimepicker",
|
|
4514
4572
|
props: {
|
|
4515
4573
|
modelValue: { default: void 0 },
|
|
@@ -4551,16 +4609,16 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4551
4609
|
}), O = p(() => {
|
|
4552
4610
|
const te = ne(m.value, t.firstDayOfWeek), se = y.value ? ge(y.value) : null, de = ge(/* @__PURE__ */ new Date());
|
|
4553
4611
|
return Array.from({ length: 42 }, (he, Be) => {
|
|
4554
|
-
const xe = ae(te, Be),
|
|
4612
|
+
const xe = ae(te, Be), qe = ge(xe);
|
|
4555
4613
|
return {
|
|
4556
|
-
key: `${
|
|
4557
|
-
iso:
|
|
4614
|
+
key: `${qe}-${Be}`,
|
|
4615
|
+
iso: qe,
|
|
4558
4616
|
date: xe,
|
|
4559
4617
|
day: xe.getDate(),
|
|
4560
4618
|
inCurrentMonth: xe.getMonth() === m.value.getMonth(),
|
|
4561
4619
|
isDisabled: we(xe, M.value, S.value),
|
|
4562
|
-
isSelected: se ===
|
|
4563
|
-
isToday:
|
|
4620
|
+
isSelected: se === qe,
|
|
4621
|
+
isToday: qe === de
|
|
4564
4622
|
};
|
|
4565
4623
|
});
|
|
4566
4624
|
}), P = p(() => {
|
|
@@ -4581,7 +4639,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4581
4639
|
r.value ? "vf-datetimepicker_open" : ""
|
|
4582
4640
|
];
|
|
4583
4641
|
return t.size !== "normal" && te.push(`vf-datetimepicker_${t.size}`), t.disabled && te.push("vf-datetimepicker_disabled"), te.filter(Boolean);
|
|
4584
|
-
}),
|
|
4642
|
+
}), V = (te) => e("focus", te), w = (te) => e("blur", te), R = () => {
|
|
4585
4643
|
if (!y.value || l.value === null || Se(y.value, l.value, M.value, S.value))
|
|
4586
4644
|
return;
|
|
4587
4645
|
const te = ve(y.value, l.value);
|
|
@@ -4610,7 +4668,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4610
4668
|
return;
|
|
4611
4669
|
}
|
|
4612
4670
|
F();
|
|
4613
|
-
},
|
|
4671
|
+
}, L = () => {
|
|
4614
4672
|
m.value = X(m.value, -1);
|
|
4615
4673
|
}, W = () => {
|
|
4616
4674
|
m.value = X(m.value, 1);
|
|
@@ -4629,17 +4687,17 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4629
4687
|
return;
|
|
4630
4688
|
const te = n.value, se = d.value, de = async () => {
|
|
4631
4689
|
const {
|
|
4632
|
-
x:
|
|
4633
|
-
y:
|
|
4634
|
-
placement:
|
|
4690
|
+
x: qe,
|
|
4691
|
+
y: Vt,
|
|
4692
|
+
placement: Lt
|
|
4635
4693
|
} = await Re(te, se, {
|
|
4636
4694
|
placement: u.value,
|
|
4637
4695
|
strategy: "fixed",
|
|
4638
4696
|
middleware: [Ie(2), Te({ placements: ["bottom", "top"] })]
|
|
4639
4697
|
});
|
|
4640
|
-
c.value =
|
|
4641
|
-
const rt = 8, Ft = se.getBoundingClientRect().width, Tt = Math.max(rt, window.innerWidth - Ft - rt), It = Math.min(Math.max(
|
|
4642
|
-
se.style.left = `${It}px`, se.style.top = `${
|
|
4698
|
+
c.value = Lt ?? u.value;
|
|
4699
|
+
const rt = 8, Ft = se.getBoundingClientRect().width, Tt = Math.max(rt, window.innerWidth - Ft - rt), It = Math.min(Math.max(qe, rt), Tt);
|
|
4700
|
+
se.style.left = `${It}px`, se.style.top = `${Vt}px`;
|
|
4643
4701
|
}, he = async () => {
|
|
4644
4702
|
await de();
|
|
4645
4703
|
}, Be = De(te, () => {
|
|
@@ -4672,7 +4730,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4672
4730
|
return;
|
|
4673
4731
|
}
|
|
4674
4732
|
await ze(), k || H(), k == null || k.update();
|
|
4675
|
-
}),
|
|
4733
|
+
}), Le(() => {
|
|
4676
4734
|
document.addEventListener("click", K);
|
|
4677
4735
|
}), ke(() => {
|
|
4678
4736
|
document.removeEventListener("click", K), k == null || k.destroy(), k = null;
|
|
@@ -4768,7 +4826,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4768
4826
|
ce(re(q, ["prevent"]), ["enter"]),
|
|
4769
4827
|
ce(re(A, ["prevent"]), ["esc"])
|
|
4770
4828
|
],
|
|
4771
|
-
onFocus:
|
|
4829
|
+
onFocus: V,
|
|
4772
4830
|
onBlur: w
|
|
4773
4831
|
}, [
|
|
4774
4832
|
x("span", {
|
|
@@ -4779,7 +4837,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4779
4837
|
"aria-hidden": "true"
|
|
4780
4838
|
}, "▾", -1))
|
|
4781
4839
|
], 40, Ir),
|
|
4782
|
-
(v(),
|
|
4840
|
+
(v(), pe(Ve, { to: "body" }, [
|
|
4783
4841
|
Ce(x("div", {
|
|
4784
4842
|
id: f,
|
|
4785
4843
|
ref_key: "panel",
|
|
@@ -4795,7 +4853,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4795
4853
|
class: "vf-datetimepicker__nav",
|
|
4796
4854
|
type: "button",
|
|
4797
4855
|
"aria-label": "Previous month",
|
|
4798
|
-
onClick:
|
|
4856
|
+
onClick: L
|
|
4799
4857
|
}, " ‹ "),
|
|
4800
4858
|
x("span", Pr, G(C.value), 1),
|
|
4801
4859
|
x("button", {
|
|
@@ -4806,13 +4864,13 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4806
4864
|
}, " › ")
|
|
4807
4865
|
]),
|
|
4808
4866
|
x("div", Or, [
|
|
4809
|
-
(v(!0), g(ue, null,
|
|
4867
|
+
(v(!0), g(ue, null, me(I.value, (de) => (v(), g("span", {
|
|
4810
4868
|
key: de,
|
|
4811
4869
|
class: "vf-datetimepicker__weekday"
|
|
4812
4870
|
}, G(de), 1))), 128))
|
|
4813
4871
|
]),
|
|
4814
4872
|
x("div", Er, [
|
|
4815
|
-
(v(!0), g(ue, null,
|
|
4873
|
+
(v(!0), g(ue, null, me(O.value, (de) => (v(), g("button", {
|
|
4816
4874
|
key: de.key,
|
|
4817
4875
|
class: Z(["vf-datetimepicker__day", {
|
|
4818
4876
|
"is-outside": !de.inCurrentMonth,
|
|
@@ -4827,7 +4885,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4827
4885
|
])
|
|
4828
4886
|
]),
|
|
4829
4887
|
x("div", Hr, [
|
|
4830
|
-
(v(!0), g(ue, null,
|
|
4888
|
+
(v(!0), g(ue, null, me(P.value, (de) => (v(), g("button", {
|
|
4831
4889
|
key: de.value,
|
|
4832
4890
|
class: Z(["vf-datetimepicker__time", { "is-active": de.isSelected, "is-disabled": de.isDisabled }]),
|
|
4833
4891
|
type: "button",
|
|
@@ -4844,13 +4902,13 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4844
4902
|
]))
|
|
4845
4903
|
], 2));
|
|
4846
4904
|
}
|
|
4847
|
-
}), Kr = { class: "vf-calendar__header" }, Nr = ["disabled"], Gr = { class: "vf-calendar__month-label" },
|
|
4905
|
+
}), Kr = { class: "vf-calendar__header" }, Nr = ["disabled"], Gr = { class: "vf-calendar__month-label" }, jr = ["disabled"], Yr = {
|
|
4848
4906
|
class: "vf-calendar__weekdays",
|
|
4849
4907
|
role: "row"
|
|
4850
4908
|
}, Xr = {
|
|
4851
4909
|
class: "vf-calendar__days",
|
|
4852
4910
|
role: "grid"
|
|
4853
|
-
}, Ur = ["disabled", "data-date", "onClick"],
|
|
4911
|
+
}, Ur = ["disabled", "data-date", "onClick"], xc = /* @__PURE__ */ oe({
|
|
4854
4912
|
__name: "calendar",
|
|
4855
4913
|
props: {
|
|
4856
4914
|
modelValue: { default: void 0 },
|
|
@@ -4870,13 +4928,13 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4870
4928
|
month: "long"
|
|
4871
4929
|
})), u = p(() => {
|
|
4872
4930
|
const O = new Intl.DateTimeFormat(e.locale, { weekday: "short" }), P = new Date(2026, 0, 4);
|
|
4873
|
-
return Array.from({ length: 7 }, ($,
|
|
4874
|
-
const w = (
|
|
4931
|
+
return Array.from({ length: 7 }, ($, V) => {
|
|
4932
|
+
const w = (V + e.firstDayOfWeek) % 7, R = new Date(P);
|
|
4875
4933
|
return R.setDate(P.getDate() + w), O.format(R);
|
|
4876
4934
|
});
|
|
4877
4935
|
}), c = p(() => {
|
|
4878
4936
|
const O = h(t.value, e.firstDayOfWeek), P = i.value ? C(i.value) : null, $ = C(/* @__PURE__ */ new Date());
|
|
4879
|
-
return Array.from({ length: 42 }, (
|
|
4937
|
+
return Array.from({ length: 42 }, (V, w) => {
|
|
4880
4938
|
const R = S(O, w), D = C(R);
|
|
4881
4939
|
return {
|
|
4882
4940
|
key: `${D}-${w}`,
|
|
@@ -4916,8 +4974,8 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4916
4974
|
const P = O.match(/^(\d{4})-(\d{2})-(\d{2})$/);
|
|
4917
4975
|
if (!P)
|
|
4918
4976
|
return null;
|
|
4919
|
-
const $ = Number(P[1]),
|
|
4920
|
-
return R.getFullYear() !== $ || R.getMonth() !==
|
|
4977
|
+
const $ = Number(P[1]), V = Number(P[2]) - 1, w = Number(P[3]), R = new Date($, V, w);
|
|
4978
|
+
return R.getFullYear() !== $ || R.getMonth() !== V || R.getDate() !== w ? null : _(R);
|
|
4921
4979
|
}
|
|
4922
4980
|
function _(O) {
|
|
4923
4981
|
return new Date(O.getFullYear(), O.getMonth(), O.getDate());
|
|
@@ -4936,12 +4994,12 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4936
4994
|
return S($, -w);
|
|
4937
4995
|
}
|
|
4938
4996
|
function C(O) {
|
|
4939
|
-
const P = O.getFullYear(), $ = `${O.getMonth() + 1}`.padStart(2, "0"),
|
|
4940
|
-
return `${P}-${$}-${
|
|
4997
|
+
const P = O.getFullYear(), $ = `${O.getMonth() + 1}`.padStart(2, "0"), V = `${O.getDate()}`.padStart(2, "0");
|
|
4998
|
+
return `${P}-${$}-${V}`;
|
|
4941
4999
|
}
|
|
4942
5000
|
function I(O, P, $) {
|
|
4943
|
-
const
|
|
4944
|
-
return !!(P &&
|
|
5001
|
+
const V = _(O).getTime();
|
|
5002
|
+
return !!(P && V < P.getTime() || $ && V > $.getTime());
|
|
4945
5003
|
}
|
|
4946
5004
|
return (O, P) => (v(), g("div", {
|
|
4947
5005
|
class: Z(f.value)
|
|
@@ -4961,16 +5019,16 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4961
5019
|
"aria-label": "Next month",
|
|
4962
5020
|
disabled: O.disabled,
|
|
4963
5021
|
onClick: y
|
|
4964
|
-
}, " › ", 8,
|
|
5022
|
+
}, " › ", 8, jr)
|
|
4965
5023
|
]),
|
|
4966
|
-
x("div",
|
|
4967
|
-
(v(!0), g(ue, null,
|
|
5024
|
+
x("div", Yr, [
|
|
5025
|
+
(v(!0), g(ue, null, me(u.value, ($) => (v(), g("span", {
|
|
4968
5026
|
key: $,
|
|
4969
5027
|
class: "vf-calendar__weekday"
|
|
4970
5028
|
}, G($), 1))), 128))
|
|
4971
5029
|
]),
|
|
4972
5030
|
x("div", Xr, [
|
|
4973
|
-
(v(!0), g(ue, null,
|
|
5031
|
+
(v(!0), g(ue, null, me(c.value, ($) => (v(), g("button", {
|
|
4974
5032
|
key: $.key,
|
|
4975
5033
|
class: Z(["vf-calendar__day", {
|
|
4976
5034
|
"is-outside": !$.inCurrentMonth,
|
|
@@ -4980,12 +5038,12 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
4980
5038
|
type: "button",
|
|
4981
5039
|
disabled: O.disabled || $.isDisabled,
|
|
4982
5040
|
"data-date": $.iso,
|
|
4983
|
-
onClick: (
|
|
5041
|
+
onClick: (V) => l($.date)
|
|
4984
5042
|
}, G($.day), 11, Ur))), 128))
|
|
4985
5043
|
])
|
|
4986
5044
|
], 2));
|
|
4987
5045
|
}
|
|
4988
|
-
}), qr = ["disabled"], Qr = ["disabled", "aria-current", "aria-label", "onClick"], Zr = ["disabled"],
|
|
5046
|
+
}), qr = ["disabled"], Qr = ["disabled", "aria-current", "aria-label", "onClick"], Zr = ["disabled"], Vc = /* @__PURE__ */ oe({
|
|
4989
5047
|
__name: "pagination",
|
|
4990
5048
|
props: {
|
|
4991
5049
|
modelValue: { default: 1 },
|
|
@@ -5049,7 +5107,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
5049
5107
|
"aria-label": "Previous page",
|
|
5050
5108
|
onClick: k[0] || (k[0] = (_) => y(d.value - 1, _))
|
|
5051
5109
|
}, G(l.prevLabel), 9, qr),
|
|
5052
|
-
(v(!0), g(ue, null,
|
|
5110
|
+
(v(!0), g(ue, null, me(f.value, (_) => (v(), g("button", {
|
|
5053
5111
|
key: _.key,
|
|
5054
5112
|
class: Z(["vf-pagination__item", {
|
|
5055
5113
|
"is-current": _.type === "page" && _.page === d.value,
|
|
@@ -5079,7 +5137,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
5079
5137
|
}), Jr = ["checked", "disabled"], el = {
|
|
5080
5138
|
key: 0,
|
|
5081
5139
|
class: "vf-checkbox__label"
|
|
5082
|
-
},
|
|
5140
|
+
}, Lc = /* @__PURE__ */ oe({
|
|
5083
5141
|
__name: "checkbox",
|
|
5084
5142
|
props: {
|
|
5085
5143
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -5114,7 +5172,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
5114
5172
|
])) : Q("", !0)
|
|
5115
5173
|
], 2));
|
|
5116
5174
|
}
|
|
5117
|
-
}), $t = Symbol("VueForgeRadioGroup"), tl = ["aria-disabled", "aria-label", "aria-labelledby"],
|
|
5175
|
+
}), $t = Symbol("VueForgeRadioGroup"), tl = ["aria-disabled", "aria-label", "aria-labelledby"], Fc = /* @__PURE__ */ oe({
|
|
5118
5176
|
__name: "radio-group",
|
|
5119
5177
|
props: {
|
|
5120
5178
|
modelValue: { type: [String, Number, Boolean, null], default: void 0 },
|
|
@@ -5152,7 +5210,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
5152
5210
|
}), al = ["name", "value", "checked", "disabled"], ol = {
|
|
5153
5211
|
key: 0,
|
|
5154
5212
|
class: "vf-radio__label"
|
|
5155
|
-
},
|
|
5213
|
+
}, Tc = /* @__PURE__ */ oe({
|
|
5156
5214
|
__name: "radio-button",
|
|
5157
5215
|
props: {
|
|
5158
5216
|
modelValue: { type: [String, Number, Boolean, null], default: void 0 },
|
|
@@ -5164,7 +5222,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
5164
5222
|
},
|
|
5165
5223
|
emits: ["update:modelValue", "change"],
|
|
5166
5224
|
setup(s, { emit: o }) {
|
|
5167
|
-
const a = o, e = s, t =
|
|
5225
|
+
const a = o, e = s, t = Xe($t, null), i = p(() => t ? t.modelValue.value : e.modelValue), n = p(() => t ? t.name.value : e.name), d = p(() => t ? t.variant.value : e.variant), r = p(() => (t ? t.disabled.value : !1) || e.disabled), u = p(() => i.value === e.value), c = p(() => {
|
|
5168
5226
|
const m = ["vf-radio", `vf-radio_${d.value}`];
|
|
5169
5227
|
return r.value && m.push("vf-radio_disabled"), m;
|
|
5170
5228
|
}), f = (m) => {
|
|
@@ -5190,7 +5248,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
5190
5248
|
])) : Q("", !0)
|
|
5191
5249
|
], 2));
|
|
5192
5250
|
}
|
|
5193
|
-
}), rl = ["aria-label", "aria-labelledby"], ll = ["aria-checked", "disabled", "onClick", "onKeydown"],
|
|
5251
|
+
}), rl = ["aria-label", "aria-labelledby"], ll = ["aria-checked", "disabled", "onClick", "onKeydown"], Ic = /* @__PURE__ */ oe({
|
|
5194
5252
|
__name: "segmented-control",
|
|
5195
5253
|
props: {
|
|
5196
5254
|
modelValue: { default: void 0 },
|
|
@@ -5236,7 +5294,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
5236
5294
|
"aria-label": l.ariaLabel || void 0,
|
|
5237
5295
|
"aria-labelledby": l.ariaLabelledby || void 0
|
|
5238
5296
|
}, [
|
|
5239
|
-
(v(!0), g(ue, null,
|
|
5297
|
+
(v(!0), g(ue, null, me(i.value, (_, B) => (v(), g("button", {
|
|
5240
5298
|
key: _.key,
|
|
5241
5299
|
ref_for: !0,
|
|
5242
5300
|
ref: (M) => m(M, B),
|
|
@@ -5252,7 +5310,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
5252
5310
|
}, G(_.label), 43, ll))), 128))
|
|
5253
5311
|
], 10, rl));
|
|
5254
5312
|
}
|
|
5255
|
-
}), ut = Symbol("VueForgeTabs"), nl = ["aria-orientation", "aria-label", "aria-labelledby"], sl = { class: "vf-tabs__panels" },
|
|
5313
|
+
}), ut = Symbol("VueForgeTabs"), nl = ["aria-orientation", "aria-label", "aria-labelledby"], sl = { class: "vf-tabs__panels" }, Dc = /* @__PURE__ */ oe({
|
|
5256
5314
|
__name: "tabs",
|
|
5257
5315
|
props: {
|
|
5258
5316
|
modelValue: { default: void 0 },
|
|
@@ -5311,7 +5369,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
5311
5369
|
])
|
|
5312
5370
|
], 2));
|
|
5313
5371
|
}
|
|
5314
|
-
}), il = ["id", "aria-selected", "aria-controls", "disabled", "tabindex"],
|
|
5372
|
+
}), il = ["id", "aria-selected", "aria-controls", "disabled", "tabindex"], Rc = /* @__PURE__ */ oe({
|
|
5315
5373
|
__name: "tab",
|
|
5316
5374
|
props: {
|
|
5317
5375
|
value: {},
|
|
@@ -5320,7 +5378,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
5320
5378
|
},
|
|
5321
5379
|
emits: ["change"],
|
|
5322
5380
|
setup(s, { emit: o }) {
|
|
5323
|
-
const a = o, e = s, t =
|
|
5381
|
+
const a = o, e = s, t = Xe(ut, null), i = p(() => (t == null ? void 0 : t.activeValue.value) === e.value), n = p(() => ((t == null ? void 0 : t.disabled.value) ?? !1) || e.disabled), d = p(() => t ? t.getTabId(e.value) : void 0), r = p(() => t ? t.getPanelId(e.value) : void 0), u = p(() => n.value ? -1 : i.value ? 0 : -1), c = (f) => {
|
|
5324
5382
|
!t || n.value || (t.onChange(e.value, f), a("change", e.value, f));
|
|
5325
5383
|
};
|
|
5326
5384
|
return (f, m) => (v(), g("button", {
|
|
@@ -5339,13 +5397,13 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
5339
5397
|
])
|
|
5340
5398
|
], 10, il));
|
|
5341
5399
|
}
|
|
5342
|
-
}), dl = ["id", "aria-labelledby"],
|
|
5400
|
+
}), dl = ["id", "aria-labelledby"], Mc = /* @__PURE__ */ oe({
|
|
5343
5401
|
__name: "tab-panel",
|
|
5344
5402
|
props: {
|
|
5345
5403
|
value: {}
|
|
5346
5404
|
},
|
|
5347
5405
|
setup(s) {
|
|
5348
|
-
const o = s, a =
|
|
5406
|
+
const o = s, a = Xe(ut, null), e = p(() => (a == null ? void 0 : a.activeValue.value) === o.value), t = p(() => a ? a.getTabId(o.value) : void 0), i = p(() => a ? a.getPanelId(o.value) : void 0);
|
|
5349
5407
|
return (n, d) => Ce((v(), g("div", {
|
|
5350
5408
|
id: i.value,
|
|
5351
5409
|
class: "vf-tab-panel",
|
|
@@ -5358,7 +5416,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
5358
5416
|
[$e, e.value]
|
|
5359
5417
|
]);
|
|
5360
5418
|
}
|
|
5361
|
-
}), wt = Symbol("VueForgeAccordion"), ul = ["aria-label", "aria-labelledby"],
|
|
5419
|
+
}), wt = Symbol("VueForgeAccordion"), ul = ["aria-label", "aria-labelledby"], Pc = /* @__PURE__ */ oe({
|
|
5362
5420
|
__name: "accordion",
|
|
5363
5421
|
props: {
|
|
5364
5422
|
modelValue: { default: void 0 },
|
|
@@ -5403,7 +5461,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
5403
5461
|
j(f.$slots, "default")
|
|
5404
5462
|
], 10, ul));
|
|
5405
5463
|
}
|
|
5406
|
-
}), cl = ["id", "disabled", "aria-expanded", "aria-controls"], vl = { class: "vf-accordion__title" }, fl = ["id", "aria-labelledby", "aria-hidden"], pl = { class: "vf-accordion__panel-inner" },
|
|
5464
|
+
}), cl = ["id", "disabled", "aria-expanded", "aria-controls"], vl = { class: "vf-accordion__title" }, fl = ["id", "aria-labelledby", "aria-hidden"], pl = { class: "vf-accordion__panel-inner" }, Oc = /* @__PURE__ */ oe({
|
|
5407
5465
|
__name: "accordion-item",
|
|
5408
5466
|
props: {
|
|
5409
5467
|
value: {},
|
|
@@ -5412,7 +5470,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
5412
5470
|
unmount: { type: Boolean, default: !1 }
|
|
5413
5471
|
},
|
|
5414
5472
|
setup(s) {
|
|
5415
|
-
const o = s, a =
|
|
5473
|
+
const o = s, a = Xe(wt, null), e = p(() => {
|
|
5416
5474
|
if (!a)
|
|
5417
5475
|
return !1;
|
|
5418
5476
|
const c = a.modelValue.value;
|
|
@@ -5465,7 +5523,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
5465
5523
|
}, hl = {
|
|
5466
5524
|
key: 1,
|
|
5467
5525
|
class: "vf-toast__message"
|
|
5468
|
-
},
|
|
5526
|
+
}, Ec = /* @__PURE__ */ oe({
|
|
5469
5527
|
__name: "toast",
|
|
5470
5528
|
props: {
|
|
5471
5529
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -5524,14 +5582,14 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
5524
5582
|
[$e, r.modelValue]
|
|
5525
5583
|
]);
|
|
5526
5584
|
}
|
|
5527
|
-
}),
|
|
5585
|
+
}), Ac = /* @__PURE__ */ oe({
|
|
5528
5586
|
__name: "toast-container",
|
|
5529
5587
|
props: {
|
|
5530
5588
|
position: { default: "top-right" }
|
|
5531
5589
|
},
|
|
5532
5590
|
setup(s) {
|
|
5533
5591
|
const o = s, a = p(() => `vf-toast-container_${o.position}`);
|
|
5534
|
-
return (e, t) => (v(),
|
|
5592
|
+
return (e, t) => (v(), pe(Ve, { to: "body" }, [
|
|
5535
5593
|
x("div", {
|
|
5536
5594
|
class: Z(["vf-toast-container", a.value]),
|
|
5537
5595
|
role: "region",
|
|
@@ -5554,7 +5612,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
5554
5612
|
}, wl = {
|
|
5555
5613
|
key: 1,
|
|
5556
5614
|
class: "vf-alert__actions"
|
|
5557
|
-
},
|
|
5615
|
+
}, Hc = /* @__PURE__ */ oe({
|
|
5558
5616
|
__name: "alert",
|
|
5559
5617
|
props: {
|
|
5560
5618
|
modelValue: { type: Boolean },
|
|
@@ -5627,10 +5685,10 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
5627
5685
|
}, xl = {
|
|
5628
5686
|
key: 1,
|
|
5629
5687
|
class: "vf-empty-state__description"
|
|
5630
|
-
},
|
|
5688
|
+
}, Vl = {
|
|
5631
5689
|
key: 1,
|
|
5632
5690
|
class: "vf-empty-state__actions"
|
|
5633
|
-
},
|
|
5691
|
+
}, Wc = /* @__PURE__ */ oe({
|
|
5634
5692
|
__name: "empty-state",
|
|
5635
5693
|
props: {
|
|
5636
5694
|
title: { default: "" },
|
|
@@ -5666,15 +5724,15 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
5666
5724
|
])
|
|
5667
5725
|
])) : Q("", !0)
|
|
5668
5726
|
]),
|
|
5669
|
-
e.$slots.actions ? (v(), g("div",
|
|
5727
|
+
e.$slots.actions ? (v(), g("div", Vl, [
|
|
5670
5728
|
j(e.$slots, "actions")
|
|
5671
5729
|
])) : Q("", !0)
|
|
5672
5730
|
], 2));
|
|
5673
5731
|
}
|
|
5674
|
-
}),
|
|
5732
|
+
}), Ll = ["checked", "disabled"], Fl = {
|
|
5675
5733
|
key: 0,
|
|
5676
5734
|
class: "vf-switch__label"
|
|
5677
|
-
},
|
|
5735
|
+
}, Kc = /* @__PURE__ */ oe({
|
|
5678
5736
|
__name: "switch",
|
|
5679
5737
|
props: {
|
|
5680
5738
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -5699,7 +5757,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
5699
5757
|
checked: n.modelValue,
|
|
5700
5758
|
disabled: n.disabled,
|
|
5701
5759
|
onChange: i
|
|
5702
|
-
}, null, 40,
|
|
5760
|
+
}, null, 40, Ll),
|
|
5703
5761
|
d[0] || (d[0] = x("span", { class: "vf-switch__track" }, [
|
|
5704
5762
|
x("span", { class: "vf-switch__thumb" })
|
|
5705
5763
|
], -1)),
|
|
@@ -5710,7 +5768,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
5710
5768
|
])) : Q("", !0)
|
|
5711
5769
|
], 2));
|
|
5712
5770
|
}
|
|
5713
|
-
}), Tl = { class: "vf-popover" }, Il = ["aria-expanded", "onKeydown"],
|
|
5771
|
+
}), Tl = { class: "vf-popover" }, Il = ["aria-expanded", "onKeydown"], Nc = /* @__PURE__ */ oe({
|
|
5714
5772
|
__name: "popover",
|
|
5715
5773
|
emits: ["click", "onClick"],
|
|
5716
5774
|
setup(s, { expose: o, emit: a }) {
|
|
@@ -5805,34 +5863,34 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
5805
5863
|
setup(s, { expose: o, emit: a }) {
|
|
5806
5864
|
const e = a, t = s;
|
|
5807
5865
|
let i = 0, n = 0, d = "", r = null;
|
|
5808
|
-
const u = N(null), c = Rt(), f =
|
|
5809
|
-
const
|
|
5810
|
-
return t.size !== "md" &&
|
|
5866
|
+
const u = N(null), c = Rt(), f = Ue(), m = `vf-modal-title-${++i}`, y = `vf-modal-body-${i}`, l = p(() => !!t.title || !!f.header), k = p(() => !!f.body || !!f.default), _ = p(() => {
|
|
5867
|
+
const V = ["vf-modal"];
|
|
5868
|
+
return t.size !== "md" && V.push(`vf-modal_${t.size}`), V;
|
|
5811
5869
|
}), B = () => e("update:modelValue", !0), M = () => {
|
|
5812
5870
|
e("update:modelValue", !1), e("close");
|
|
5813
5871
|
}, S = () => {
|
|
5814
5872
|
t.closeOnOverlay && M();
|
|
5815
|
-
}, h = (
|
|
5816
|
-
!t.modelValue || !t.closeOnEsc ||
|
|
5873
|
+
}, h = (V) => {
|
|
5874
|
+
!t.modelValue || !t.closeOnEsc || V.key === "Escape" && (V.preventDefault(), M());
|
|
5817
5875
|
}, C = () => u.value ? Array.from(u.value.querySelectorAll('a[href],button:not([disabled]),textarea:not([disabled]),input:not([disabled]),select:not([disabled]),[tabindex]:not([tabindex="-1"])')).filter((w) => !w.hasAttribute("disabled") && !w.getAttribute("aria-hidden")) : [], I = () => {
|
|
5818
5876
|
var w;
|
|
5819
|
-
const
|
|
5820
|
-
|
|
5821
|
-
}, O = (
|
|
5877
|
+
const V = C();
|
|
5878
|
+
V.length ? V[0].focus() : (w = u.value) == null || w.focus();
|
|
5879
|
+
}, O = (V) => {
|
|
5822
5880
|
var F;
|
|
5823
|
-
if (
|
|
5881
|
+
if (V.key !== "Tab")
|
|
5824
5882
|
return;
|
|
5825
5883
|
const w = C();
|
|
5826
5884
|
if (!w.length) {
|
|
5827
|
-
|
|
5885
|
+
V.preventDefault(), (F = u.value) == null || F.focus();
|
|
5828
5886
|
return;
|
|
5829
5887
|
}
|
|
5830
5888
|
const R = w[0], D = w[w.length - 1], z = document.activeElement;
|
|
5831
|
-
if (
|
|
5832
|
-
|
|
5889
|
+
if (V.shiftKey && z === R) {
|
|
5890
|
+
V.preventDefault(), D.focus();
|
|
5833
5891
|
return;
|
|
5834
5892
|
}
|
|
5835
|
-
!
|
|
5893
|
+
!V.shiftKey && z === D && (V.preventDefault(), R.focus());
|
|
5836
5894
|
}, P = () => {
|
|
5837
5895
|
!t.lockScroll || typeof document > "u" || (n === 0 && (d = document.body.style.overflow, document.body.style.overflow = "hidden"), n += 1);
|
|
5838
5896
|
}, $ = () => {
|
|
@@ -5840,13 +5898,13 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
5840
5898
|
};
|
|
5841
5899
|
return ie(
|
|
5842
5900
|
() => t.modelValue,
|
|
5843
|
-
async (
|
|
5844
|
-
|
|
5901
|
+
async (V) => {
|
|
5902
|
+
V ? (typeof document < "u" && (r = document.activeElement), P(), e("open"), await ze(), I(), typeof document < "u" && document.addEventListener("keydown", h)) : ($(), typeof document < "u" && (document.removeEventListener("keydown", h), r == null || r.focus()));
|
|
5845
5903
|
},
|
|
5846
5904
|
{ immediate: !0 }
|
|
5847
5905
|
), ke(() => {
|
|
5848
5906
|
$(), typeof document < "u" && document.removeEventListener("keydown", h);
|
|
5849
|
-
}), o({ open: B, close: M }), (
|
|
5907
|
+
}), o({ open: B, close: M }), (V, w) => (v(), pe(Ve, { to: "body" }, [
|
|
5850
5908
|
Ce(x("div", st(We(c), {
|
|
5851
5909
|
class: _.value,
|
|
5852
5910
|
role: "presentation"
|
|
@@ -5871,12 +5929,12 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
5871
5929
|
id: m,
|
|
5872
5930
|
class: "vf-modal__header-content"
|
|
5873
5931
|
}, [
|
|
5874
|
-
j(
|
|
5875
|
-
|
|
5932
|
+
j(V.$slots, "header", {}, () => [
|
|
5933
|
+
V.title ? (v(), g("h3", Ml, G(V.title), 1)) : Q("", !0)
|
|
5876
5934
|
])
|
|
5877
5935
|
])
|
|
5878
5936
|
])) : Q("", !0),
|
|
5879
|
-
|
|
5937
|
+
V.showClose ? j(V.$slots, "close", {
|
|
5880
5938
|
key: 1,
|
|
5881
5939
|
close: M
|
|
5882
5940
|
}, () => [
|
|
@@ -5887,24 +5945,24 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
5887
5945
|
onClick: M
|
|
5888
5946
|
}, "×")
|
|
5889
5947
|
]) : Q("", !0),
|
|
5890
|
-
|
|
5948
|
+
V.$slots.body || V.$slots.default ? (v(), g("div", {
|
|
5891
5949
|
key: 2,
|
|
5892
5950
|
id: y,
|
|
5893
5951
|
class: "vf-modal__body"
|
|
5894
5952
|
}, [
|
|
5895
|
-
j(
|
|
5896
|
-
|
|
5953
|
+
j(V.$slots, "body"),
|
|
5954
|
+
V.$slots.body ? Q("", !0) : j(V.$slots, "default", { key: 0 })
|
|
5897
5955
|
])) : Q("", !0),
|
|
5898
|
-
|
|
5899
|
-
j(
|
|
5956
|
+
V.$slots.footer ? (v(), g("div", Pl, [
|
|
5957
|
+
j(V.$slots, "footer")
|
|
5900
5958
|
])) : Q("", !0)
|
|
5901
5959
|
], 40, Dl)
|
|
5902
5960
|
], 16), [
|
|
5903
|
-
[$e,
|
|
5961
|
+
[$e, V.modelValue]
|
|
5904
5962
|
])
|
|
5905
5963
|
]));
|
|
5906
5964
|
}
|
|
5907
|
-
}), El = { class: "vf-confirm-dialog__message" }, Al = { class: "vf-confirm-dialog__actions" },
|
|
5965
|
+
}), El = { class: "vf-confirm-dialog__message" }, Al = { class: "vf-confirm-dialog__actions" }, Gc = /* @__PURE__ */ oe({
|
|
5908
5966
|
__name: "confirm-dialog",
|
|
5909
5967
|
props: {
|
|
5910
5968
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -5950,7 +6008,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
5950
6008
|
close: () => {
|
|
5951
6009
|
n.value = "cancel", d();
|
|
5952
6010
|
}
|
|
5953
|
-
}), (m, y) => (v(),
|
|
6011
|
+
}), (m, y) => (v(), pe(Ol, {
|
|
5954
6012
|
ref_key: "modal",
|
|
5955
6013
|
ref: i,
|
|
5956
6014
|
class: "vf-confirm-dialog",
|
|
@@ -6008,7 +6066,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
6008
6066
|
}, Nl = {
|
|
6009
6067
|
key: 3,
|
|
6010
6068
|
class: "vf-drawer__footer"
|
|
6011
|
-
},
|
|
6069
|
+
}, jc = /* @__PURE__ */ oe({
|
|
6012
6070
|
__name: "drawer",
|
|
6013
6071
|
props: {
|
|
6014
6072
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -6025,7 +6083,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
6025
6083
|
setup(s, { expose: o, emit: a }) {
|
|
6026
6084
|
const e = a, t = s;
|
|
6027
6085
|
let i = 0, n = 0, d = "", r = null;
|
|
6028
|
-
const u = N(null), c =
|
|
6086
|
+
const u = N(null), c = Ue(), f = `vf-drawer-title-${++i}`, m = `vf-drawer-body-${i}`, y = p(() => !!t.title || !!c.header), l = p(() => !!c.body || !!c.default), k = p(() => {
|
|
6029
6087
|
switch (t.position) {
|
|
6030
6088
|
case "left":
|
|
6031
6089
|
return "translate3d(-100%, 0, 0)";
|
|
@@ -6070,18 +6128,18 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
6070
6128
|
!w.shiftKey && F === z && (w.preventDefault(), D.focus());
|
|
6071
6129
|
}, $ = () => {
|
|
6072
6130
|
!t.lockScroll || typeof document > "u" || (n === 0 && (d = document.body.style.overflow, document.body.style.overflow = "hidden"), n += 1);
|
|
6073
|
-
},
|
|
6131
|
+
}, V = () => {
|
|
6074
6132
|
!t.lockScroll || typeof document > "u" || (n = Math.max(0, n - 1), n === 0 && (document.body.style.overflow = d));
|
|
6075
6133
|
};
|
|
6076
6134
|
return ie(
|
|
6077
6135
|
() => t.modelValue,
|
|
6078
6136
|
async (w) => {
|
|
6079
|
-
w ? (typeof document < "u" && (r = document.activeElement), $(), e("open"), await ze(), O(), typeof document < "u" && document.addEventListener("keydown", C)) : (
|
|
6137
|
+
w ? (typeof document < "u" && (r = document.activeElement), $(), e("open"), await ze(), O(), typeof document < "u" && document.addEventListener("keydown", C)) : (V(), typeof document < "u" && (document.removeEventListener("keydown", C), r == null || r.focus()));
|
|
6080
6138
|
},
|
|
6081
6139
|
{ immediate: !0 }
|
|
6082
6140
|
), ke(() => {
|
|
6083
|
-
|
|
6084
|
-
}), o({ open: M, close: S }), (w, R) => (v(),
|
|
6141
|
+
V(), typeof document < "u" && document.removeEventListener("keydown", C);
|
|
6142
|
+
}), o({ open: M, close: S }), (w, R) => (v(), pe(Ve, { to: "body" }, [
|
|
6085
6143
|
Ge(Mt, {
|
|
6086
6144
|
name: "vf-drawer",
|
|
6087
6145
|
duration: { enter: 320, leave: 320 }
|
|
@@ -6149,7 +6207,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
6149
6207
|
})
|
|
6150
6208
|
]));
|
|
6151
6209
|
}
|
|
6152
|
-
}), Gl = ["aria-expanded", "aria-disabled", "onKeydown"],
|
|
6210
|
+
}), Gl = ["aria-expanded", "aria-disabled", "onKeydown"], jl = ["data-placement"], Yl = /* @__PURE__ */ oe({
|
|
6153
6211
|
name: "VfDropdown",
|
|
6154
6212
|
__name: "dropdown",
|
|
6155
6213
|
props: {
|
|
@@ -6181,14 +6239,14 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
6181
6239
|
}, h = ($) => {
|
|
6182
6240
|
if (e("select", $), !t.closeOnSelect)
|
|
6183
6241
|
return;
|
|
6184
|
-
const
|
|
6185
|
-
|
|
6242
|
+
const V = $.target;
|
|
6243
|
+
V && (V.closest(".vf-menu__parent") || (V.closest(".vf-menu__link") || V.closest("[data-dropdown-close]")) && B());
|
|
6186
6244
|
}, C = ($) => {
|
|
6187
6245
|
var w;
|
|
6188
6246
|
if (!u.value || !n.value)
|
|
6189
6247
|
return;
|
|
6190
|
-
const
|
|
6191
|
-
n.value.contains(
|
|
6248
|
+
const V = $.target;
|
|
6249
|
+
n.value.contains(V) || (w = r.value) != null && w.contains(V) || B();
|
|
6192
6250
|
}, I = ($) => {
|
|
6193
6251
|
!u.value || !t.closeOnEsc || $.key === "Escape" && ($.preventDefault(), B());
|
|
6194
6252
|
}, O = ($) => {
|
|
@@ -6210,17 +6268,17 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
6210
6268
|
}, P = () => {
|
|
6211
6269
|
if (!d.value || !r.value)
|
|
6212
6270
|
return;
|
|
6213
|
-
const $ = d.value,
|
|
6271
|
+
const $ = d.value, V = r.value, w = async () => {
|
|
6214
6272
|
const {
|
|
6215
6273
|
x: F,
|
|
6216
6274
|
y: A,
|
|
6217
6275
|
placement: q
|
|
6218
|
-
} = await Re($,
|
|
6276
|
+
} = await Re($, V, {
|
|
6219
6277
|
placement: c.value,
|
|
6220
6278
|
strategy: "fixed",
|
|
6221
6279
|
middleware: [Ie(t.offset), Te({ placements: O(c.value) })]
|
|
6222
6280
|
});
|
|
6223
|
-
f.value = q ?? c.value, t.matchTriggerWidth && (
|
|
6281
|
+
f.value = q ?? c.value, t.matchTriggerWidth && (V.style.minWidth = `${$.getBoundingClientRect().width}px`), V.style.left = `${F}px`, V.style.top = `${A}px`;
|
|
6224
6282
|
}, R = async () => {
|
|
6225
6283
|
await w();
|
|
6226
6284
|
}, D = De($, () => {
|
|
@@ -6252,11 +6310,11 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
6252
6310
|
return;
|
|
6253
6311
|
}
|
|
6254
6312
|
await ze(), y || P(), y == null || y.update();
|
|
6255
|
-
}),
|
|
6313
|
+
}), Le(() => {
|
|
6256
6314
|
document.addEventListener("click", C), document.addEventListener("keydown", I);
|
|
6257
6315
|
}), ke(() => {
|
|
6258
6316
|
document.removeEventListener("click", C), document.removeEventListener("keydown", I), y == null || y.destroy(), y = null;
|
|
6259
|
-
}), o({ open: _, close: B, toggle: M }), ($,
|
|
6317
|
+
}), o({ open: _, close: B, toggle: M }), ($, V) => (v(), g("div", {
|
|
6260
6318
|
ref_key: "root",
|
|
6261
6319
|
ref: n,
|
|
6262
6320
|
class: Z(["vf-dropdown", { "vf-dropdown_disabled": $.disabled }])
|
|
@@ -6278,7 +6336,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
6278
6336
|
}, [
|
|
6279
6337
|
j($.$slots, "trigger")
|
|
6280
6338
|
], 40, Gl),
|
|
6281
|
-
(v(),
|
|
6339
|
+
(v(), pe(Ve, { to: "body" }, [
|
|
6282
6340
|
Ce(x("div", {
|
|
6283
6341
|
id: m,
|
|
6284
6342
|
ref_key: "panel",
|
|
@@ -6289,18 +6347,18 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
6289
6347
|
onClick: h
|
|
6290
6348
|
}, [
|
|
6291
6349
|
j($.$slots, "default", {}, () => [
|
|
6292
|
-
t.items.length ? (v(),
|
|
6350
|
+
t.items.length ? (v(), pe(ht, {
|
|
6293
6351
|
key: 0,
|
|
6294
6352
|
items: t.items
|
|
6295
6353
|
}, null, 8, ["items"])) : Q("", !0)
|
|
6296
6354
|
])
|
|
6297
|
-
], 8,
|
|
6355
|
+
], 8, jl), [
|
|
6298
6356
|
[$e, u.value]
|
|
6299
6357
|
])
|
|
6300
6358
|
]))
|
|
6301
6359
|
], 2));
|
|
6302
6360
|
}
|
|
6303
|
-
}),
|
|
6361
|
+
}), Yc = /* @__PURE__ */ oe({
|
|
6304
6362
|
name: "VfSplitButton",
|
|
6305
6363
|
__name: "split-button",
|
|
6306
6364
|
props: {
|
|
@@ -6323,7 +6381,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
6323
6381
|
},
|
|
6324
6382
|
emits: ["click", "update:modelValue", "open", "close", "select"],
|
|
6325
6383
|
setup(s, { expose: o, emit: a }) {
|
|
6326
|
-
const e = s, t = a, i =
|
|
6384
|
+
const e = s, t = a, i = Xe(dt, null), n = N(null), d = p(() => e.size ?? (i == null ? void 0 : i.value.size) ?? "normal"), r = p(() => e.variant ?? (i == null ? void 0 : i.value.variant)), u = p(() => e.severity ?? (i == null ? void 0 : i.value.severity) ?? "primary"), c = p(() => e.disabled || (i == null ? void 0 : i.value.disabled) === !0), f = p(() => {
|
|
6327
6385
|
const l = ["vf-splitbutton"];
|
|
6328
6386
|
return (c.value || e.loading) && l.push("vf-splitbutton_disabled"), (d.value === "small" || d.value === "large") && l.push(`vf-splitbutton_${d.value}`), l;
|
|
6329
6387
|
}), m = (l) => {
|
|
@@ -6352,7 +6410,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
6352
6410
|
}), (l, k) => (v(), g("div", {
|
|
6353
6411
|
class: Z(["vf-splitbutton", f.value])
|
|
6354
6412
|
}, [
|
|
6355
|
-
l.$slots.default ? (v(),
|
|
6413
|
+
l.$slots.default ? (v(), pe(Ze, {
|
|
6356
6414
|
key: 0,
|
|
6357
6415
|
class: "vf-splitbutton__main",
|
|
6358
6416
|
label: l.label,
|
|
@@ -6369,7 +6427,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
6369
6427
|
j(l.$slots, "default")
|
|
6370
6428
|
]),
|
|
6371
6429
|
_: 3
|
|
6372
|
-
}, 8, ["label", "icon", "type", "size", "variant", "severity", "loading", "disabled"])) : (v(),
|
|
6430
|
+
}, 8, ["label", "icon", "type", "size", "variant", "severity", "loading", "disabled"])) : (v(), pe(Ze, {
|
|
6373
6431
|
key: 1,
|
|
6374
6432
|
class: "vf-splitbutton__main",
|
|
6375
6433
|
label: l.label,
|
|
@@ -6382,7 +6440,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
6382
6440
|
disabled: c.value,
|
|
6383
6441
|
onClick: m
|
|
6384
6442
|
}, null, 8, ["label", "icon", "type", "size", "variant", "severity", "loading", "disabled"])),
|
|
6385
|
-
Ge(
|
|
6443
|
+
Ge(Yl, {
|
|
6386
6444
|
ref_key: "dropdown",
|
|
6387
6445
|
ref: n,
|
|
6388
6446
|
class: "vf-splitbutton__dropdown",
|
|
@@ -6422,7 +6480,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
6422
6480
|
]), 1032, ["model-value", "items", "placement", "offset", "disabled", "close-on-select", "close-on-esc", "match-trigger-width"])
|
|
6423
6481
|
], 2));
|
|
6424
6482
|
}
|
|
6425
|
-
}),
|
|
6483
|
+
}), Xc = /* @__PURE__ */ oe({
|
|
6426
6484
|
name: "VfContextMenu",
|
|
6427
6485
|
__name: "context-menu",
|
|
6428
6486
|
props: {
|
|
@@ -6450,9 +6508,9 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
6450
6508
|
}, k = () => {
|
|
6451
6509
|
if (!d.value)
|
|
6452
6510
|
return;
|
|
6453
|
-
const $ = d.value.getBoundingClientRect(),
|
|
6511
|
+
const $ = d.value.getBoundingClientRect(), V = window.innerWidth, w = window.innerHeight, R = 8;
|
|
6454
6512
|
let D = f.value.x + t.offset, z = f.value.y + t.offset;
|
|
6455
|
-
D + $.width >
|
|
6513
|
+
D + $.width > V - R && (D = Math.max(R, V - $.width - R)), z + $.height > w - R && (z = Math.max(R, w - $.height - R)), u.value = {
|
|
6456
6514
|
left: `${D}px`,
|
|
6457
6515
|
top: `${z}px`,
|
|
6458
6516
|
minWidth: "var(--vf-context-menu-min-width)"
|
|
@@ -6471,11 +6529,11 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
6471
6529
|
const $ = P.target;
|
|
6472
6530
|
$ && ($.closest(".vf-menu__parent") || ($.closest(".vf-menu__link") || $.closest("[data-context-menu-close]")) && B());
|
|
6473
6531
|
}, C = (P) => {
|
|
6474
|
-
var
|
|
6532
|
+
var V;
|
|
6475
6533
|
if (!r.value || !n.value)
|
|
6476
6534
|
return;
|
|
6477
6535
|
const $ = P.target;
|
|
6478
|
-
n.value.contains($) || (
|
|
6536
|
+
n.value.contains($) || (V = d.value) != null && V.contains($) || B();
|
|
6479
6537
|
}, I = (P) => {
|
|
6480
6538
|
!r.value || !t.closeOnEsc || P.key === "Escape" && (P.preventDefault(), B());
|
|
6481
6539
|
}, O = () => {
|
|
@@ -6489,7 +6547,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
6489
6547
|
{ immediate: !0 }
|
|
6490
6548
|
), ie(r, async (P) => {
|
|
6491
6549
|
P ? (!f.value.x && !f.value.y && (f.value = y()), e("open"), await ze(), k()) : e("close");
|
|
6492
|
-
}),
|
|
6550
|
+
}), Le(() => {
|
|
6493
6551
|
document.addEventListener("click", C), document.addEventListener("keydown", I), window.addEventListener("resize", O);
|
|
6494
6552
|
}), ke(() => {
|
|
6495
6553
|
document.removeEventListener("click", C), document.removeEventListener("keydown", I), window.removeEventListener("resize", O);
|
|
@@ -6504,7 +6562,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
6504
6562
|
}, [
|
|
6505
6563
|
j(P.$slots, "default")
|
|
6506
6564
|
], 34),
|
|
6507
|
-
(v(),
|
|
6565
|
+
(v(), pe(Ve, { to: "body" }, [
|
|
6508
6566
|
Ce(x("div", {
|
|
6509
6567
|
id: c,
|
|
6510
6568
|
ref_key: "panel",
|
|
@@ -6515,7 +6573,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
6515
6573
|
onClick: h
|
|
6516
6574
|
}, [
|
|
6517
6575
|
j(P.$slots, "menu", {}, () => [
|
|
6518
|
-
t.items.length ? (v(),
|
|
6576
|
+
t.items.length ? (v(), pe(ht, {
|
|
6519
6577
|
key: 0,
|
|
6520
6578
|
items: t.items
|
|
6521
6579
|
}, null, 8, ["items"])) : Q("", !0)
|
|
@@ -6544,7 +6602,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
6544
6602
|
}, nn = {
|
|
6545
6603
|
key: 1,
|
|
6546
6604
|
class: "vf-command-palette__empty"
|
|
6547
|
-
},
|
|
6605
|
+
}, Uc = /* @__PURE__ */ oe({
|
|
6548
6606
|
name: "VfCommandPalette",
|
|
6549
6607
|
__name: "command-palette",
|
|
6550
6608
|
props: {
|
|
@@ -6636,7 +6694,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
6636
6694
|
return;
|
|
6637
6695
|
}
|
|
6638
6696
|
D.key === "Escape" && e.closeOnEsc && (D.preventDefault(), S());
|
|
6639
|
-
},
|
|
6697
|
+
}, V = () => {
|
|
6640
6698
|
e.closeOnOverlay && S();
|
|
6641
6699
|
}, w = (D) => {
|
|
6642
6700
|
if (!(D instanceof Element))
|
|
@@ -6664,15 +6722,15 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
6664
6722
|
m.value.some((z) => z._index === u.value && !z.disabled) || _();
|
|
6665
6723
|
},
|
|
6666
6724
|
{ deep: !0 }
|
|
6667
|
-
),
|
|
6725
|
+
), Le(() => {
|
|
6668
6726
|
document.addEventListener("keydown", R);
|
|
6669
6727
|
}), ke(() => {
|
|
6670
6728
|
document.removeEventListener("keydown", R);
|
|
6671
|
-
}), o({ open: M, close: S, toggle: h }), (D, z) => (v(),
|
|
6729
|
+
}), o({ open: M, close: S, toggle: h }), (D, z) => (v(), pe(Ve, { to: "body" }, [
|
|
6672
6730
|
Ce(x("div", Xl, [
|
|
6673
6731
|
x("div", {
|
|
6674
6732
|
class: "vf-command-palette__overlay",
|
|
6675
|
-
onClick:
|
|
6733
|
+
onClick: V
|
|
6676
6734
|
}),
|
|
6677
6735
|
x("div", {
|
|
6678
6736
|
ref_key: "panel",
|
|
@@ -6695,13 +6753,13 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
6695
6753
|
}, null, 40, Ql)
|
|
6696
6754
|
]),
|
|
6697
6755
|
x("div", Zl, [
|
|
6698
|
-
y.value.length ? (v(!0), g(ue, { key: 0 },
|
|
6756
|
+
y.value.length ? (v(!0), g(ue, { key: 0 }, me(y.value, (F) => (v(), g("div", {
|
|
6699
6757
|
key: F.name,
|
|
6700
6758
|
class: "vf-command-palette__group",
|
|
6701
6759
|
"data-group": F.name
|
|
6702
6760
|
}, [
|
|
6703
6761
|
F.name ? (v(), g("div", en, G(F.name), 1)) : Q("", !0),
|
|
6704
|
-
(v(!0), g(ue, null,
|
|
6762
|
+
(v(!0), g(ue, null, me(F.items, (A) => (v(), g("button", {
|
|
6705
6763
|
key: A._key,
|
|
6706
6764
|
class: Z(["vf-command-palette__item", {
|
|
6707
6765
|
"is-active": A._index === u.value,
|
|
@@ -6748,7 +6806,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
6748
6806
|
}, Bn = ["onClick"], xn = {
|
|
6749
6807
|
key: 1,
|
|
6750
6808
|
class: "vf-notification-center__empty"
|
|
6751
|
-
},
|
|
6809
|
+
}, qc = /* @__PURE__ */ oe({
|
|
6752
6810
|
__name: "notification-center",
|
|
6753
6811
|
props: {
|
|
6754
6812
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -6820,7 +6878,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
6820
6878
|
const M = i.value.map((S) => ({ ...S }));
|
|
6821
6879
|
i.value = [], u(), a("clear", M);
|
|
6822
6880
|
};
|
|
6823
|
-
return (M, S) => (v(),
|
|
6881
|
+
return (M, S) => (v(), pe(Ve, { to: "body" }, [
|
|
6824
6882
|
Ce(x("div", sn, [
|
|
6825
6883
|
x("div", {
|
|
6826
6884
|
class: "vf-notification-center__overlay",
|
|
@@ -6863,7 +6921,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
6863
6921
|
]),
|
|
6864
6922
|
x("div", hn, [
|
|
6865
6923
|
i.value.length ? (v(), g("ul", yn, [
|
|
6866
|
-
(v(!0), g(ue, null,
|
|
6924
|
+
(v(!0), g(ue, null, me(i.value, (h, C) => (v(), g("li", {
|
|
6867
6925
|
key: String(h.id),
|
|
6868
6926
|
class: Z(["vf-notification-center__item", { "is-unread": !h.read }]),
|
|
6869
6927
|
"data-severity": h.severity || "neutral"
|
|
@@ -6904,10 +6962,10 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
6904
6962
|
])
|
|
6905
6963
|
]));
|
|
6906
6964
|
}
|
|
6907
|
-
}),
|
|
6965
|
+
}), Vn = ["aria-hidden"], Ln = ["aria-label"], Fn = { class: "vf-app-shell__header" }, Tn = ["aria-label"], In = { class: "vf-app-shell__header-content" }, Dn = ["aria-label"], Rn = {
|
|
6908
6966
|
key: 1,
|
|
6909
6967
|
class: "vf-app-shell__footer"
|
|
6910
|
-
},
|
|
6968
|
+
}, Qc = /* @__PURE__ */ oe({
|
|
6911
6969
|
__name: "app-shell",
|
|
6912
6970
|
props: {
|
|
6913
6971
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -6925,7 +6983,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
6925
6983
|
},
|
|
6926
6984
|
emits: ["update:modelValue", "sidebar-toggle", "breakpoint-change"],
|
|
6927
6985
|
setup(s, { emit: o }) {
|
|
6928
|
-
const a = o, e = s, t =
|
|
6986
|
+
const a = o, e = s, t = Ue(), i = p(() => !!t.footer), n = N(!!e.modelValue), d = N(!1), r = N(!1), u = p(() => ({
|
|
6929
6987
|
"--vf-app-shell-sidebar-width-prop": e.sidebarWidth,
|
|
6930
6988
|
"--vf-app-shell-sidebar-collapsed-width-prop": e.sidebarCollapsedWidth
|
|
6931
6989
|
})), c = () => {
|
|
@@ -6975,14 +7033,14 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
6975
7033
|
mobile: d.value,
|
|
6976
7034
|
collapsed: n.value
|
|
6977
7035
|
})
|
|
6978
|
-
], 8,
|
|
7036
|
+
], 8, Vn),
|
|
6979
7037
|
d.value && r.value ? (v(), g("button", {
|
|
6980
7038
|
key: 0,
|
|
6981
7039
|
type: "button",
|
|
6982
7040
|
class: "vf-app-shell__overlay",
|
|
6983
7041
|
"aria-label": k.closeSidebarLabel,
|
|
6984
7042
|
onClick: y
|
|
6985
|
-
}, null, 8,
|
|
7043
|
+
}, null, 8, Ln)) : Q("", !0),
|
|
6986
7044
|
x("header", Fn, [
|
|
6987
7045
|
k.showToggle ? (v(), g("button", {
|
|
6988
7046
|
key: 0,
|
|
@@ -7014,10 +7072,10 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
7014
7072
|
])) : Q("", !0)
|
|
7015
7073
|
], 6));
|
|
7016
7074
|
}
|
|
7017
|
-
}), Mn = ["aria-label"], Pn = { class: "vf-kanban-board__columns" }, On = ["data-column-id"], En = { class: "vf-kanban-board__column-header" }, An = { class: "vf-kanban-board__column-title" }, Hn = { class: "vf-kanban-board__column-count" }, Wn = ["onDrop"], Kn = ["onClick", "onDragstart", "onDrop"], Nn = { class: "vf-kanban-board__card" }, Gn = { class: "vf-kanban-board__card-title" },
|
|
7075
|
+
}), Mn = ["aria-label"], Pn = { class: "vf-kanban-board__columns" }, On = ["data-column-id"], En = { class: "vf-kanban-board__column-header" }, An = { class: "vf-kanban-board__column-title" }, Hn = { class: "vf-kanban-board__column-count" }, Wn = ["onDrop"], Kn = ["onClick", "onDragstart", "onDrop"], Nn = { class: "vf-kanban-board__card" }, Gn = { class: "vf-kanban-board__card-title" }, jn = {
|
|
7018
7076
|
key: 0,
|
|
7019
7077
|
class: "vf-kanban-board__card-description"
|
|
7020
|
-
},
|
|
7078
|
+
}, Yn = {
|
|
7021
7079
|
key: 1,
|
|
7022
7080
|
class: "vf-kanban-board__tags"
|
|
7023
7081
|
}, Xn = {
|
|
@@ -7026,7 +7084,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
7026
7084
|
}, Un = {
|
|
7027
7085
|
key: 0,
|
|
7028
7086
|
class: "vf-kanban-board__empty"
|
|
7029
|
-
}, qn = { class: "vf-kanban-board__column-footer" },
|
|
7087
|
+
}, qn = { class: "vf-kanban-board__column-footer" }, Zc = /* @__PURE__ */ oe({
|
|
7030
7088
|
__name: "kanban-board",
|
|
7031
7089
|
props: {
|
|
7032
7090
|
columns: { default: () => [] },
|
|
@@ -7048,17 +7106,17 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
7048
7106
|
const h = [...t.value], C = h.findIndex((w) => String(w.id) === String(B));
|
|
7049
7107
|
if (C < 0)
|
|
7050
7108
|
return;
|
|
7051
|
-
const O = h[C].columnId, [P] = h.splice(C, 1), $ = c(h, M, S),
|
|
7109
|
+
const O = h[C].columnId, [P] = h.splice(C, 1), $ = c(h, M, S), V = {
|
|
7052
7110
|
...P,
|
|
7053
7111
|
columnId: M
|
|
7054
7112
|
};
|
|
7055
|
-
h.splice($, 0,
|
|
7113
|
+
h.splice($, 0, V), t.value = h, a(
|
|
7056
7114
|
"update:items",
|
|
7057
7115
|
h.map((w) => ({
|
|
7058
7116
|
...w,
|
|
7059
7117
|
tags: w.tags ? [...w.tags] : []
|
|
7060
7118
|
}))
|
|
7061
|
-
), a("move",
|
|
7119
|
+
), a("move", V, O, M);
|
|
7062
7120
|
}, m = (B) => {
|
|
7063
7121
|
a("click", B);
|
|
7064
7122
|
}, y = (B, M) => {
|
|
@@ -7086,7 +7144,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
7086
7144
|
"aria-label": B.ariaLabel || void 0
|
|
7087
7145
|
}, [
|
|
7088
7146
|
x("div", Pn, [
|
|
7089
|
-
(v(!0), g(ue, null,
|
|
7147
|
+
(v(!0), g(ue, null, me(d.value, (S) => (v(), g("section", {
|
|
7090
7148
|
key: String(S.id),
|
|
7091
7149
|
class: "vf-kanban-board__column",
|
|
7092
7150
|
"data-column-id": String(S.id)
|
|
@@ -7106,7 +7164,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
7106
7164
|
}, ["prevent"])),
|
|
7107
7165
|
onDrop: re((h) => _(S.id, h), ["prevent"])
|
|
7108
7166
|
}, [
|
|
7109
|
-
(v(!0), g(ue, null,
|
|
7167
|
+
(v(!0), g(ue, null, me(u(S.id), (h, C) => (v(), g("li", {
|
|
7110
7168
|
key: String(h.id),
|
|
7111
7169
|
class: Z(["vf-kanban-board__item", {
|
|
7112
7170
|
"is-dragging": i.value === h.id,
|
|
@@ -7131,9 +7189,9 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
7131
7189
|
return [
|
|
7132
7190
|
x("div", Nn, [
|
|
7133
7191
|
x("p", Gn, G(h.title), 1),
|
|
7134
|
-
h.description ? (v(), g("p",
|
|
7135
|
-
(I = h.tags) != null && I.length ? (v(), g("div",
|
|
7136
|
-
(v(!0), g(ue, null,
|
|
7192
|
+
h.description ? (v(), g("p", jn, G(h.description), 1)) : Q("", !0),
|
|
7193
|
+
(I = h.tags) != null && I.length ? (v(), g("div", Yn, [
|
|
7194
|
+
(v(!0), g(ue, null, me(h.tags, (O) => (v(), g("span", {
|
|
7137
7195
|
key: O,
|
|
7138
7196
|
class: "vf-kanban-board__tag"
|
|
7139
7197
|
}, G(O), 1))), 128))
|
|
@@ -7163,7 +7221,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
7163
7221
|
key: 0,
|
|
7164
7222
|
class: "vf-tooltip__arrow",
|
|
7165
7223
|
"aria-hidden": "true"
|
|
7166
|
-
},
|
|
7224
|
+
}, Jc = /* @__PURE__ */ oe({
|
|
7167
7225
|
__name: "tooltip",
|
|
7168
7226
|
props: {
|
|
7169
7227
|
text: { default: "" },
|
|
@@ -7214,7 +7272,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
7214
7272
|
return;
|
|
7215
7273
|
}
|
|
7216
7274
|
r || f(), r == null || r.update();
|
|
7217
|
-
}),
|
|
7275
|
+
}), Le(() => {
|
|
7218
7276
|
i.value && f();
|
|
7219
7277
|
}), ke(() => {
|
|
7220
7278
|
r == null || r.destroy(), r = null;
|
|
@@ -7235,7 +7293,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
7235
7293
|
}, [
|
|
7236
7294
|
j(y.$slots, "default")
|
|
7237
7295
|
], 544),
|
|
7238
|
-
(v(),
|
|
7296
|
+
(v(), pe(Ve, { to: "body" }, [
|
|
7239
7297
|
Ce(x("div", {
|
|
7240
7298
|
id: d,
|
|
7241
7299
|
ref_key: "panel",
|
|
@@ -7268,7 +7326,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
7268
7326
|
}, rs = {
|
|
7269
7327
|
key: 2,
|
|
7270
7328
|
class: "vf-tour__progress"
|
|
7271
|
-
}, ls = { class: "vf-tour__actions" }, ns = ["disabled"],
|
|
7329
|
+
}, ls = { class: "vf-tour__actions" }, ns = ["disabled"], ev = /* @__PURE__ */ oe({
|
|
7272
7330
|
__name: "tour",
|
|
7273
7331
|
props: {
|
|
7274
7332
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -7336,7 +7394,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
7336
7394
|
n.value = K ?? z(), D.style.left = `${b}px`, D.style.top = `${E}px`;
|
|
7337
7395
|
}, q = async () => {
|
|
7338
7396
|
B(), await A();
|
|
7339
|
-
},
|
|
7397
|
+
}, L = De(R, () => {
|
|
7340
7398
|
q();
|
|
7341
7399
|
}), W = () => {
|
|
7342
7400
|
q();
|
|
@@ -7344,7 +7402,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
7344
7402
|
document.addEventListener("scroll", W, !0), window.addEventListener("resize", W, !1), u = {
|
|
7345
7403
|
update: q,
|
|
7346
7404
|
destroy: () => {
|
|
7347
|
-
|
|
7405
|
+
L(), document.removeEventListener("scroll", W, !0), window.removeEventListener("resize", W, !1);
|
|
7348
7406
|
}
|
|
7349
7407
|
}, u.update();
|
|
7350
7408
|
}, h = async () => {
|
|
@@ -7365,7 +7423,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
7365
7423
|
m.value || I(i.value - 1, "prev");
|
|
7366
7424
|
}, $ = () => {
|
|
7367
7425
|
a("skip", f.value), C("skip");
|
|
7368
|
-
},
|
|
7426
|
+
}, V = () => {
|
|
7369
7427
|
e.closeOnOverlay && C("overlay");
|
|
7370
7428
|
}, w = (R) => {
|
|
7371
7429
|
!e.modelValue || !e.closeOnEsc || R.key === "Escape" && (R.preventDefault(), C("esc"));
|
|
@@ -7386,11 +7444,11 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
7386
7444
|
u == null || u.destroy(), u = null, typeof document < "u" && document.removeEventListener("keydown", w, !1);
|
|
7387
7445
|
}), (R, D) => {
|
|
7388
7446
|
var z, F;
|
|
7389
|
-
return v(),
|
|
7447
|
+
return v(), pe(Ve, { to: "body" }, [
|
|
7390
7448
|
Ce(x("div", es, [
|
|
7391
7449
|
x("div", {
|
|
7392
7450
|
class: "vf-tour__overlay",
|
|
7393
|
-
onClick:
|
|
7451
|
+
onClick: V
|
|
7394
7452
|
}),
|
|
7395
7453
|
R.mask && l.value ? (v(), g("div", {
|
|
7396
7454
|
key: 0,
|
|
@@ -7465,7 +7523,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
7465
7523
|
]);
|
|
7466
7524
|
};
|
|
7467
7525
|
}
|
|
7468
|
-
}),
|
|
7526
|
+
}), tv = /* @__PURE__ */ oe({
|
|
7469
7527
|
__name: "skeleton",
|
|
7470
7528
|
props: {
|
|
7471
7529
|
width: { default: "" },
|
|
@@ -7503,7 +7561,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
7503
7561
|
}, cs = {
|
|
7504
7562
|
key: 2,
|
|
7505
7563
|
class: "vf-progress__label"
|
|
7506
|
-
},
|
|
7564
|
+
}, av = /* @__PURE__ */ oe({
|
|
7507
7565
|
__name: "progress",
|
|
7508
7566
|
props: {
|
|
7509
7567
|
value: { default: null },
|
|
@@ -7515,7 +7573,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
7515
7573
|
ariaLabel: { default: "" }
|
|
7516
7574
|
},
|
|
7517
7575
|
setup(s) {
|
|
7518
|
-
const o = s, a =
|
|
7576
|
+
const o = s, a = Ue(), e = (y) => Math.min(100, Math.max(0, y)), t = p(() => o.value === void 0 || o.value === null || Number.isNaN(o.value)), i = p(() => t.value ? 0 : e(Number(o.value))), n = p(() => t.value ? void 0 : i.value), d = p(() => !!a.default), r = p(() => o.label ? o.label : o.showValue && !t.value ? `${Math.round(i.value)}%` : ""), u = p(() => {
|
|
7519
7577
|
const y = ["vf-progress", `vf-progress_${o.variant}`, `vf-progress_size-${o.size}`];
|
|
7520
7578
|
return t.value && y.push("vf-progress_indeterminate"), y;
|
|
7521
7579
|
}), c = p(() => {
|
|
@@ -7571,7 +7629,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
7571
7629
|
])) : Q("", !0)
|
|
7572
7630
|
], 10, ss));
|
|
7573
7631
|
}
|
|
7574
|
-
}), vs = ["data-variant", "data-severity", "aria-label"],
|
|
7632
|
+
}), vs = ["data-variant", "data-severity", "aria-label"], ov = /* @__PURE__ */ oe({
|
|
7575
7633
|
__name: "badge",
|
|
7576
7634
|
props: {
|
|
7577
7635
|
label: { default: "" },
|
|
@@ -7597,7 +7655,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
7597
7655
|
}), fs = ["data-variant", "data-severity", "aria-label"], ps = {
|
|
7598
7656
|
key: 0,
|
|
7599
7657
|
class: "vf-chip__icon"
|
|
7600
|
-
}, ms = { class: "vf-chip__label" }, gs = ["disabled", "aria-label"],
|
|
7658
|
+
}, ms = { class: "vf-chip__label" }, gs = ["disabled", "aria-label"], rv = /* @__PURE__ */ oe({
|
|
7601
7659
|
__name: "chip",
|
|
7602
7660
|
props: {
|
|
7603
7661
|
label: { default: "" },
|
|
@@ -7652,7 +7710,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
7652
7710
|
}), bs = ["aria-label", "aria-labelledby"], hs = ["disabled", "data-value", "onClick"], ys = { class: "vf-filter-chips__label" }, _s = {
|
|
7653
7711
|
key: 0,
|
|
7654
7712
|
class: "vf-filter-chips__count"
|
|
7655
|
-
}, ks = ["disabled", "aria-label"],
|
|
7713
|
+
}, ks = ["disabled", "aria-label"], lv = /* @__PURE__ */ oe({
|
|
7656
7714
|
__name: "filter-chips",
|
|
7657
7715
|
props: {
|
|
7658
7716
|
modelValue: { default: null },
|
|
@@ -7706,7 +7764,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
7706
7764
|
"aria-label": c.ariaLabel || void 0,
|
|
7707
7765
|
"aria-labelledby": c.ariaLabelledby || void 0
|
|
7708
7766
|
}, [
|
|
7709
|
-
(v(!0), g(ue, null,
|
|
7767
|
+
(v(!0), g(ue, null, me(c.options, (m) => (v(), g("button", {
|
|
7710
7768
|
key: String(m.value),
|
|
7711
7769
|
class: Z(["vf-filter-chips__chip", { "is-active": d(m.value) }]),
|
|
7712
7770
|
type: "button",
|
|
@@ -7730,7 +7788,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
7730
7788
|
}), Cs = ["data-status", "aria-label"], $s = { class: "vf-avatar__content" }, ws = ["src", "alt"], zs = {
|
|
7731
7789
|
key: 1,
|
|
7732
7790
|
class: "vf-avatar__initials"
|
|
7733
|
-
}, Ss = ["data-status"],
|
|
7791
|
+
}, Ss = ["data-status"], nv = /* @__PURE__ */ oe({
|
|
7734
7792
|
__name: "avatar",
|
|
7735
7793
|
props: {
|
|
7736
7794
|
src: { default: "" },
|
|
@@ -7788,7 +7846,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
7788
7846
|
}), Bs = ["aria-label", "data-severity"], xs = {
|
|
7789
7847
|
key: 0,
|
|
7790
7848
|
class: "vf-spinner__label"
|
|
7791
|
-
},
|
|
7849
|
+
}, sv = /* @__PURE__ */ oe({
|
|
7792
7850
|
name: "VfSpinner",
|
|
7793
7851
|
__name: "spinner",
|
|
7794
7852
|
props: {
|
|
@@ -7799,7 +7857,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
7799
7857
|
ariaLabel: { default: "Loading" }
|
|
7800
7858
|
},
|
|
7801
7859
|
setup(s) {
|
|
7802
|
-
const o = s, a =
|
|
7860
|
+
const o = s, a = Ue(), e = p(() => !!a.default), t = p(() => o.label || ""), i = p(() => ["vf-spinner", `vf-spinner_${o.variant}`, `vf-spinner_size-${o.size}`]);
|
|
7803
7861
|
return (n, d) => (v(), g("div", {
|
|
7804
7862
|
class: Z(i.value),
|
|
7805
7863
|
role: "status",
|
|
@@ -7817,7 +7875,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
7817
7875
|
])) : Q("", !0)
|
|
7818
7876
|
], 10, Bs));
|
|
7819
7877
|
}
|
|
7820
|
-
}),
|
|
7878
|
+
}), Vs = ["aria-label"], Ls = {
|
|
7821
7879
|
key: 0,
|
|
7822
7880
|
class: "vf-datatable__head"
|
|
7823
7881
|
}, Fs = { class: "vf-datatable__row" }, Ts = ["aria-sort"], Is = ["onClick"], Ds = { class: "vf-datatable__header-text" }, Rs = {
|
|
@@ -7829,7 +7887,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
7829
7887
|
}, Os = ["colspan"], Es = {
|
|
7830
7888
|
key: 1,
|
|
7831
7889
|
class: "vf-datatable__row vf-datatable__row_state"
|
|
7832
|
-
}, As = ["colspan"], Hs = ["onClick"],
|
|
7890
|
+
}, As = ["colspan"], Hs = ["onClick"], iv = /* @__PURE__ */ oe({
|
|
7833
7891
|
__name: "data-table",
|
|
7834
7892
|
props: {
|
|
7835
7893
|
rows: { default: () => [] },
|
|
@@ -7862,59 +7920,59 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
7862
7920
|
i.value = $ ?? null;
|
|
7863
7921
|
}
|
|
7864
7922
|
);
|
|
7865
|
-
const n = p(() => t.value), d = p(() => i.value), r = p(() => Math.max(1, a.columns.length)), u = ($) => $.sortable === !1 ? !1 : $.sortable === !0 ? !0 : a.sortable, c = ($,
|
|
7866
|
-
const $ = a.rows ?? [],
|
|
7867
|
-
return !
|
|
7868
|
-
const z = R == null ? void 0 : R[
|
|
7923
|
+
const n = p(() => t.value), d = p(() => i.value), r = p(() => Math.max(1, a.columns.length)), u = ($) => $.sortable === !1 ? !1 : $.sortable === !0 ? !0 : a.sortable, c = ($, V) => $ == null && V == null ? 0 : $ == null ? -1 : V == null ? 1 : typeof $ == "number" && typeof V == "number" ? $ - V : String($).localeCompare(String(V)), f = p(() => {
|
|
7924
|
+
const $ = a.rows ?? [], V = n.value, w = d.value;
|
|
7925
|
+
return !V || !w ? $ : [...$].sort((R, D) => {
|
|
7926
|
+
const z = R == null ? void 0 : R[V], F = D == null ? void 0 : D[V], A = c(z, F);
|
|
7869
7927
|
return w === "asc" ? A : -A;
|
|
7870
7928
|
});
|
|
7871
7929
|
}), m = p(() => {
|
|
7872
7930
|
const $ = ["vf-datatable", `vf-datatable_${a.variant}`];
|
|
7873
7931
|
return a.size !== "normal" && $.push(`vf-datatable_${a.size}`), a.striped && $.push("vf-datatable_striped"), a.hover && $.push("vf-datatable_hover"), $;
|
|
7874
|
-
}), y = ($,
|
|
7932
|
+
}), y = ($, V) => {
|
|
7875
7933
|
if (typeof a.rowKey == "function")
|
|
7876
|
-
return a.rowKey($,
|
|
7934
|
+
return a.rowKey($, V);
|
|
7877
7935
|
if (a.rowKey && typeof a.rowKey == "string") {
|
|
7878
7936
|
const w = $ == null ? void 0 : $[a.rowKey];
|
|
7879
|
-
return typeof w == "string" || typeof w == "number" ? w :
|
|
7937
|
+
return typeof w == "string" || typeof w == "number" ? w : V;
|
|
7880
7938
|
}
|
|
7881
|
-
return
|
|
7882
|
-
}, l = ($,
|
|
7883
|
-
const w = l($,
|
|
7884
|
-
return
|
|
7939
|
+
return V;
|
|
7940
|
+
}, l = ($, V) => $ == null ? void 0 : $[V.field], k = ($, V) => {
|
|
7941
|
+
const w = l($, V);
|
|
7942
|
+
return V.formatter ? V.formatter($, w, V) : w ?? "";
|
|
7885
7943
|
}, _ = ($) => {
|
|
7886
7944
|
if (!u($))
|
|
7887
7945
|
return;
|
|
7888
|
-
let
|
|
7889
|
-
n.value === $.field && (d.value === "asc" ? w = "desc" : d.value === "desc" ? (
|
|
7946
|
+
let V = $.field, w = "asc";
|
|
7947
|
+
n.value === $.field && (d.value === "asc" ? w = "desc" : d.value === "desc" ? (V = null, w = null) : w = "asc"), t.value = V, i.value = w, e("update:sortField", V), e("update:sortOrder", w), e("sort", V, w);
|
|
7890
7948
|
}, B = ($) => n.value !== $.field ? "↕" : d.value === "asc" ? "↑" : "↓", M = ($) => n.value !== $.field ? "" : "is-active", S = ($) => {
|
|
7891
7949
|
if (u($))
|
|
7892
7950
|
return n.value !== $.field ? "none" : d.value === "asc" ? "ascending" : "descending";
|
|
7893
7951
|
}, h = ($) => {
|
|
7894
|
-
const
|
|
7895
|
-
return a.striped && $ % 2 === 1 &&
|
|
7952
|
+
const V = [];
|
|
7953
|
+
return a.striped && $ % 2 === 1 && V.push("vf-datatable__row_striped"), V;
|
|
7896
7954
|
}, C = ($) => {
|
|
7897
|
-
const
|
|
7898
|
-
return $.align &&
|
|
7955
|
+
const V = [];
|
|
7956
|
+
return $.align && V.push(`vf-datatable__cell_${$.align}`), u($) && V.push("vf-datatable__header_sortable"), V;
|
|
7899
7957
|
}, I = ($) => {
|
|
7900
|
-
const
|
|
7901
|
-
return $.align &&
|
|
7958
|
+
const V = [];
|
|
7959
|
+
return $.align && V.push(`vf-datatable__cell_${$.align}`), V;
|
|
7902
7960
|
}, O = ($) => {
|
|
7903
|
-
const
|
|
7904
|
-
return $.width && (
|
|
7905
|
-
}, P = ($,
|
|
7906
|
-
e("rowClick", $,
|
|
7961
|
+
const V = {};
|
|
7962
|
+
return $.width && (V.width = $.width), $.minWidth && (V.minWidth = $.minWidth), V;
|
|
7963
|
+
}, P = ($, V, w) => {
|
|
7964
|
+
e("rowClick", $, V, w);
|
|
7907
7965
|
};
|
|
7908
|
-
return ($,
|
|
7966
|
+
return ($, V) => (v(), g("div", {
|
|
7909
7967
|
class: Z(m.value)
|
|
7910
7968
|
}, [
|
|
7911
7969
|
x("table", {
|
|
7912
7970
|
class: "vf-datatable__table",
|
|
7913
7971
|
"aria-label": $.ariaLabel
|
|
7914
7972
|
}, [
|
|
7915
|
-
$.showHeader ? (v(), g("thead",
|
|
7973
|
+
$.showHeader ? (v(), g("thead", Ls, [
|
|
7916
7974
|
x("tr", Fs, [
|
|
7917
|
-
(v(!0), g(ue, null,
|
|
7975
|
+
(v(!0), g(ue, null, me($.columns, (w) => (v(), g("th", {
|
|
7918
7976
|
key: w.field,
|
|
7919
7977
|
class: Z(["vf-datatable__header", C(w)]),
|
|
7920
7978
|
style: ye(O(w)),
|
|
@@ -7959,12 +8017,12 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
7959
8017
|
fe(G($.loadingText), 1)
|
|
7960
8018
|
])
|
|
7961
8019
|
], 8, Os)
|
|
7962
|
-
])) : f.value.length ? (v(!0), g(ue, { key: 2 },
|
|
8020
|
+
])) : f.value.length ? (v(!0), g(ue, { key: 2 }, me(f.value, (w, R) => (v(), g("tr", {
|
|
7963
8021
|
key: y(w, R),
|
|
7964
8022
|
class: Z(["vf-datatable__row", h(R)]),
|
|
7965
8023
|
onClick: (D) => P(w, R, D)
|
|
7966
8024
|
}, [
|
|
7967
|
-
(v(!0), g(ue, null,
|
|
8025
|
+
(v(!0), g(ue, null, me($.columns, (D) => (v(), g("td", {
|
|
7968
8026
|
key: D.field,
|
|
7969
8027
|
class: Z(["vf-datatable__cell", I(D)]),
|
|
7970
8028
|
style: ye(O(D))
|
|
@@ -7990,19 +8048,19 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
7990
8048
|
], 8, As)
|
|
7991
8049
|
]))
|
|
7992
8050
|
])
|
|
7993
|
-
], 8,
|
|
8051
|
+
], 8, Vs)
|
|
7994
8052
|
], 2));
|
|
7995
8053
|
}
|
|
7996
8054
|
}), Ws = { class: "vf-slider__control" }, Ks = ["min", "max", "step", "value", "disabled", "aria-label"], Ns = ["min", "max", "step", "value", "disabled", "aria-label"], Gs = {
|
|
7997
8055
|
key: 0,
|
|
7998
8056
|
class: "vf-slider__marks"
|
|
7999
|
-
},
|
|
8057
|
+
}, js = {
|
|
8000
8058
|
key: 0,
|
|
8001
8059
|
class: "vf-slider__mark-label"
|
|
8002
|
-
},
|
|
8060
|
+
}, Ys = {
|
|
8003
8061
|
key: 1,
|
|
8004
8062
|
class: "vf-slider__value"
|
|
8005
|
-
},
|
|
8063
|
+
}, dv = /* @__PURE__ */ oe({
|
|
8006
8064
|
name: "VfSlider",
|
|
8007
8065
|
__name: "slider",
|
|
8008
8066
|
props: {
|
|
@@ -8022,68 +8080,68 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
8022
8080
|
},
|
|
8023
8081
|
emits: ["update:modelValue", "input", "change", "focus", "blur"],
|
|
8024
8082
|
setup(s, { emit: o }) {
|
|
8025
|
-
const a = o, e = s, t = p(() => e.range || Array.isArray(e.modelValue)), i = p(() => Number.isFinite(e.min) ? e.min : 0), n = p(() => Number.isFinite(e.max) ? e.max : 100), d = p(() => e.step && e.step > 0 ? e.step : 1), r = (
|
|
8026
|
-
const W =
|
|
8083
|
+
const a = o, e = s, t = p(() => e.range || Array.isArray(e.modelValue)), i = p(() => Number.isFinite(e.min) ? e.min : 0), n = p(() => Number.isFinite(e.max) ? e.max : 100), d = p(() => e.step && e.step > 0 ? e.step : 1), r = (L) => {
|
|
8084
|
+
const W = L.toString();
|
|
8027
8085
|
return W.includes(".") ? W.split(".")[1].length : 0;
|
|
8028
|
-
}, u = (
|
|
8029
|
-
const W = Number(
|
|
8086
|
+
}, u = (L) => Math.min(n.value, Math.max(i.value, L)), c = (L) => {
|
|
8087
|
+
const W = Number(L), b = i.value, E = Number.isFinite(W) ? W : b, K = u(E), H = d.value, T = r(H), Y = Math.round((K - i.value) / H) * H + i.value;
|
|
8030
8088
|
return Number.parseFloat(Y.toFixed(T));
|
|
8031
8089
|
}, f = p(() => {
|
|
8032
8090
|
if (!t.value) {
|
|
8033
8091
|
const E = c(e.modelValue ?? i.value);
|
|
8034
8092
|
return [E, E];
|
|
8035
8093
|
}
|
|
8036
|
-
const
|
|
8037
|
-
let W = c(
|
|
8094
|
+
const L = Array.isArray(e.modelValue) ? e.modelValue : [i.value, n.value];
|
|
8095
|
+
let W = c(L[0]), b = c(L[1]);
|
|
8038
8096
|
return W > b && ([W, b] = [b, W]), [W, b];
|
|
8039
8097
|
}), m = p(
|
|
8040
8098
|
() => t.value ? f.value[0] : c(e.modelValue ?? i.value)
|
|
8041
|
-
), y = p(() => t.value ? f.value[1] : c(e.modelValue ?? i.value)), l = (
|
|
8099
|
+
), y = p(() => t.value ? f.value[1] : c(e.modelValue ?? i.value)), l = (L) => {
|
|
8042
8100
|
const W = n.value - i.value;
|
|
8043
|
-
return W <= 0 ? 0 : (
|
|
8101
|
+
return W <= 0 ? 0 : (L - i.value) / W * 100;
|
|
8044
8102
|
}, k = p(() => t.value ? l(m.value) : 0), _ = p(() => l(t.value ? y.value : m.value)), B = p(() => ({
|
|
8045
8103
|
"--vf-slider-start": `${k.value}%`,
|
|
8046
8104
|
"--vf-slider-end": `${_.value}%`
|
|
8047
8105
|
})), M = p(() => {
|
|
8048
|
-
const
|
|
8049
|
-
return e.size !== "normal" &&
|
|
8106
|
+
const L = ["vf-slider", `vf-slider_${e.variant}`];
|
|
8107
|
+
return e.size !== "normal" && L.push(`vf-slider_${e.size}`), e.disabled && L.push("vf-slider_disabled"), t.value && L.push("vf-slider_range"), L;
|
|
8050
8108
|
}), S = p(() => ({
|
|
8051
8109
|
zIndex: t.value && k.value > 50 ? 4 : 3
|
|
8052
8110
|
})), h = p(() => ({
|
|
8053
8111
|
zIndex: t.value && k.value > 50 ? 3 : 4
|
|
8054
|
-
})), C = (
|
|
8112
|
+
})), C = (L, W, b) => {
|
|
8055
8113
|
if (e.disabled)
|
|
8056
8114
|
return;
|
|
8057
|
-
const E = c(Number(
|
|
8115
|
+
const E = c(Number(L));
|
|
8058
8116
|
a("update:modelValue", E), a(b, W);
|
|
8059
|
-
}, I = (
|
|
8117
|
+
}, I = (L, W, b, E) => {
|
|
8060
8118
|
if (e.disabled)
|
|
8061
8119
|
return;
|
|
8062
|
-
const K = c(Number(
|
|
8120
|
+
const K = c(Number(L));
|
|
8063
8121
|
let [H, T] = f.value;
|
|
8064
8122
|
W === "start" ? H = Math.min(K, T) : T = Math.max(K, H), a("update:modelValue", [H, T]), a(E, b);
|
|
8065
|
-
}, O = (
|
|
8066
|
-
const W =
|
|
8123
|
+
}, O = (L) => {
|
|
8124
|
+
const W = L.target;
|
|
8067
8125
|
if (t.value) {
|
|
8068
|
-
I(W.value, "start",
|
|
8126
|
+
I(W.value, "start", L, "input");
|
|
8069
8127
|
return;
|
|
8070
8128
|
}
|
|
8071
|
-
C(W.value,
|
|
8072
|
-
}, P = (
|
|
8073
|
-
const W =
|
|
8074
|
-
I(W.value, "end",
|
|
8075
|
-
}, $ = (
|
|
8076
|
-
const W =
|
|
8129
|
+
C(W.value, L, "input");
|
|
8130
|
+
}, P = (L) => {
|
|
8131
|
+
const W = L.target;
|
|
8132
|
+
I(W.value, "end", L, "input");
|
|
8133
|
+
}, $ = (L) => {
|
|
8134
|
+
const W = L.target;
|
|
8077
8135
|
if (t.value) {
|
|
8078
|
-
I(W.value, "start",
|
|
8136
|
+
I(W.value, "start", L, "change");
|
|
8079
8137
|
return;
|
|
8080
8138
|
}
|
|
8081
|
-
C(W.value,
|
|
8082
|
-
},
|
|
8083
|
-
const W =
|
|
8084
|
-
I(W.value, "end",
|
|
8085
|
-
}, w = (
|
|
8086
|
-
return (
|
|
8139
|
+
C(W.value, L, "change");
|
|
8140
|
+
}, V = (L) => {
|
|
8141
|
+
const W = L.target;
|
|
8142
|
+
I(W.value, "end", L, "change");
|
|
8143
|
+
}, w = (L) => a("focus", L), R = (L) => a("blur", L), D = p(() => e.marks ?? []), z = (L) => ({ left: `${l(u(L))}%` }), F = p(() => t.value ? `${f.value[0]} - ${f.value[1]}` : `${m.value}`), A = p(() => t.value ? e.ariaLabelStart : e.ariaLabel), q = p(() => t.value ? e.ariaLabelEnd : e.ariaLabel);
|
|
8144
|
+
return (L, W) => (v(), g("div", {
|
|
8087
8145
|
class: Z(M.value),
|
|
8088
8146
|
style: ye(B.value)
|
|
8089
8147
|
}, [
|
|
@@ -8098,7 +8156,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
8098
8156
|
max: n.value,
|
|
8099
8157
|
step: d.value,
|
|
8100
8158
|
value: m.value,
|
|
8101
|
-
disabled:
|
|
8159
|
+
disabled: L.disabled,
|
|
8102
8160
|
"aria-label": A.value,
|
|
8103
8161
|
style: ye(S.value),
|
|
8104
8162
|
onInput: O,
|
|
@@ -8114,28 +8172,28 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
8114
8172
|
max: n.value,
|
|
8115
8173
|
step: d.value,
|
|
8116
8174
|
value: y.value,
|
|
8117
|
-
disabled:
|
|
8175
|
+
disabled: L.disabled,
|
|
8118
8176
|
"aria-label": q.value,
|
|
8119
8177
|
style: ye(h.value),
|
|
8120
8178
|
onInput: P,
|
|
8121
|
-
onChange:
|
|
8179
|
+
onChange: V,
|
|
8122
8180
|
onFocus: w,
|
|
8123
8181
|
onBlur: R
|
|
8124
8182
|
}, null, 44, Ns)) : Q("", !0)
|
|
8125
8183
|
]),
|
|
8126
8184
|
D.value.length ? (v(), g("div", Gs, [
|
|
8127
|
-
(v(!0), g(ue, null,
|
|
8185
|
+
(v(!0), g(ue, null, me(D.value, (b) => (v(), g("span", {
|
|
8128
8186
|
key: b.value,
|
|
8129
8187
|
class: "vf-slider__mark",
|
|
8130
8188
|
style: ye(z(b.value))
|
|
8131
8189
|
}, [
|
|
8132
|
-
b.label ? (v(), g("span",
|
|
8190
|
+
b.label ? (v(), g("span", js, G(b.label), 1)) : Q("", !0)
|
|
8133
8191
|
], 4))), 128))
|
|
8134
8192
|
])) : Q("", !0),
|
|
8135
|
-
|
|
8193
|
+
L.showValue ? (v(), g("div", Ys, G(F.value), 1)) : Q("", !0)
|
|
8136
8194
|
], 6));
|
|
8137
8195
|
}
|
|
8138
|
-
}), zt = Symbol("VueForgeSplitter"), Xs = ["aria-orientation", "aria-valuenow", "onMousedown", "onKeydown"],
|
|
8196
|
+
}), zt = Symbol("VueForgeSplitter"), Xs = ["aria-orientation", "aria-valuenow", "onMousedown", "onKeydown"], uv = /* @__PURE__ */ oe({
|
|
8139
8197
|
__name: "splitter",
|
|
8140
8198
|
props: {
|
|
8141
8199
|
modelValue: { default: () => [] },
|
|
@@ -8148,25 +8206,25 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
8148
8206
|
setup(s, { emit: o }) {
|
|
8149
8207
|
const a = s, e = o;
|
|
8150
8208
|
let t = 0;
|
|
8151
|
-
const i = N(null), n = N([]), d = N([]), r = N(null), u = (
|
|
8209
|
+
const i = N(null), n = N([]), d = N([]), r = N(null), u = (L) => typeof L == "number" ? `${L}px` : L, c = (L) => typeof L == "number" && Number.isFinite(L) && L > 0, f = (L, W, b) => Math.min(b, Math.max(W, L)), m = (L, W = 4) => {
|
|
8152
8210
|
const b = 10 ** W;
|
|
8153
|
-
return Math.round(
|
|
8154
|
-
}, y = (
|
|
8155
|
-
if (!
|
|
8211
|
+
return Math.round(L * b) / b;
|
|
8212
|
+
}, y = (L) => {
|
|
8213
|
+
if (!L.length)
|
|
8156
8214
|
return [];
|
|
8157
|
-
const W =
|
|
8215
|
+
const W = L.reduce((T, Y) => T + Y, 0);
|
|
8158
8216
|
if (W <= 0) {
|
|
8159
|
-
const T = 100 /
|
|
8160
|
-
return
|
|
8161
|
-
(Y, ee) => ee ===
|
|
8217
|
+
const T = 100 / L.length;
|
|
8218
|
+
return L.map(
|
|
8219
|
+
(Y, ee) => ee === L.length - 1 ? m(100 - T * (L.length - 1)) : T
|
|
8162
8220
|
);
|
|
8163
8221
|
}
|
|
8164
|
-
const E =
|
|
8222
|
+
const E = L.map((T) => T / W * 100).map((T) => m(T)), K = m(100 - E.reduce((T, Y) => T + Y, 0)), H = E.length - 1;
|
|
8165
8223
|
return E[H] = m(E[H] + K), E;
|
|
8166
|
-
}, l = (
|
|
8167
|
-
if (!
|
|
8224
|
+
}, l = (L, W) => {
|
|
8225
|
+
if (!L.length)
|
|
8168
8226
|
return [];
|
|
8169
|
-
const E = W.reduce((ee, le) => ee + le, 0) >= 100 ? y(W) : W.map((ee) => Math.max(ee, 0)), K =
|
|
8227
|
+
const E = W.reduce((ee, le) => ee + le, 0) >= 100 ? y(W) : W.map((ee) => Math.max(ee, 0)), K = L.map((ee, le) => Math.max(ee, E[le] ?? 0));
|
|
8170
8228
|
let H = K.reduce((ee, le) => ee + le, 0);
|
|
8171
8229
|
if (H > 100) {
|
|
8172
8230
|
let ee = H - 100, le = 0;
|
|
@@ -8193,15 +8251,15 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
8193
8251
|
}
|
|
8194
8252
|
const T = K.map((ee) => m(ee)), Y = m(100 - T.reduce((ee, le) => ee + le, 0));
|
|
8195
8253
|
return T[T.length - 1] = m(T[T.length - 1] + Y), T;
|
|
8196
|
-
}, k = (
|
|
8197
|
-
if (!
|
|
8254
|
+
}, k = (L) => {
|
|
8255
|
+
if (!L)
|
|
8198
8256
|
return [];
|
|
8199
8257
|
const W = a.modelValue;
|
|
8200
|
-
if (W.length ===
|
|
8258
|
+
if (W.length === L && W.every(c))
|
|
8201
8259
|
return y(W);
|
|
8202
8260
|
const b = n.value.map((Y) => Y.size), E = b.filter(c);
|
|
8203
8261
|
if (!E.length)
|
|
8204
|
-
return y(Array.from({ length:
|
|
8262
|
+
return y(Array.from({ length: L }, () => 1));
|
|
8205
8263
|
const K = E.reduce((Y, ee) => Y + ee, 0), H = b.length - E.length, T = b.map((Y) => c(Y) ? Y : 0);
|
|
8206
8264
|
if (K < 100 && H > 0) {
|
|
8207
8265
|
const ee = (100 - K) / H;
|
|
@@ -8210,17 +8268,17 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
8210
8268
|
return y(T);
|
|
8211
8269
|
}
|
|
8212
8270
|
return y(T);
|
|
8213
|
-
}, _ = () => n.value.map((
|
|
8271
|
+
}, _ = () => n.value.map((L, W) => {
|
|
8214
8272
|
const b = a.minSizes[W];
|
|
8215
|
-
return c(b) ? b : c(
|
|
8273
|
+
return c(b) ? b : c(L.minSize) ? L.minSize : 5;
|
|
8216
8274
|
}), B = () => {
|
|
8217
|
-
const
|
|
8275
|
+
const L = n.value.length, W = k(L), b = l(W, _());
|
|
8218
8276
|
d.value = b;
|
|
8219
8277
|
}, M = p(() => {
|
|
8220
|
-
const
|
|
8221
|
-
return a.disabled &&
|
|
8222
|
-
}), S = p(() => Math.max(0, n.value.length - 1)), h = p(() => a.direction === "horizontal" ? "vertical" : "horizontal"), C = p(() => u(a.gutterSize)), I = (
|
|
8223
|
-
const W = n.value.findIndex((K) => K.id ===
|
|
8278
|
+
const L = ["vf-splitter", `vf-splitter_${a.direction}`];
|
|
8279
|
+
return a.disabled && L.push("vf-splitter_disabled"), L;
|
|
8280
|
+
}), S = p(() => Math.max(0, n.value.length - 1)), h = p(() => a.direction === "horizontal" ? "vertical" : "horizontal"), C = p(() => u(a.gutterSize)), I = (L) => {
|
|
8281
|
+
const W = n.value.findIndex((K) => K.id === L);
|
|
8224
8282
|
if (W < 0)
|
|
8225
8283
|
return;
|
|
8226
8284
|
const b = `${d.value[W] ?? 0}%`, E = `${_()[W] ?? 0}%`;
|
|
@@ -8231,8 +8289,8 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
8231
8289
|
flex: `0 0 ${b}`,
|
|
8232
8290
|
minWidth: E
|
|
8233
8291
|
};
|
|
8234
|
-
}, O = (
|
|
8235
|
-
const W = O(
|
|
8292
|
+
}, O = (L) => d.value.slice(0, L + 1).reduce((W, b) => W + b, 0), P = (L) => {
|
|
8293
|
+
const W = O(L);
|
|
8236
8294
|
return a.direction === "vertical" ? {
|
|
8237
8295
|
top: `calc(${W}% - (${C.value} / 2))`,
|
|
8238
8296
|
left: "0",
|
|
@@ -8244,54 +8302,54 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
8244
8302
|
bottom: "0",
|
|
8245
8303
|
width: C.value
|
|
8246
8304
|
};
|
|
8247
|
-
}, $ = (
|
|
8305
|
+
}, $ = (L, W, b = !0) => {
|
|
8248
8306
|
const E = [...d.value];
|
|
8249
|
-
if (!E[
|
|
8307
|
+
if (!E[L] || !E[L + 1])
|
|
8250
8308
|
return;
|
|
8251
|
-
const K = _(), H = E[
|
|
8252
|
-
E[
|
|
8309
|
+
const K = _(), H = E[L] + E[L + 1], T = K[L] ?? 0, Y = K[L + 1] ?? 0, ee = f(E[L] + W, T, H - Y), le = H - ee;
|
|
8310
|
+
E[L] = m(ee), E[L + 1] = m(le);
|
|
8253
8311
|
const U = l(y(E), K);
|
|
8254
8312
|
d.value = U, b && e("update:modelValue", [...U]);
|
|
8255
8313
|
};
|
|
8256
|
-
let
|
|
8257
|
-
const R = (
|
|
8314
|
+
let V = 0, w = [0, 0];
|
|
8315
|
+
const R = (L) => {
|
|
8258
8316
|
if (r.value === null || !i.value)
|
|
8259
8317
|
return;
|
|
8260
8318
|
const W = i.value.getBoundingClientRect(), b = a.direction === "vertical" ? W.height : W.width;
|
|
8261
8319
|
if (b <= 0)
|
|
8262
8320
|
return;
|
|
8263
|
-
const K = ((a.direction === "vertical" ?
|
|
8321
|
+
const K = ((a.direction === "vertical" ? L.clientY : L.clientX) - V) / b * 100, T = w[0] + K - (d.value[r.value] ?? 0);
|
|
8264
8322
|
$(r.value, T, !0);
|
|
8265
8323
|
}, D = () => {
|
|
8266
8324
|
r.value !== null && (r.value = null, window.removeEventListener("mousemove", R), window.removeEventListener("mouseup", D), e("change", [...d.value]));
|
|
8267
|
-
}, z = (
|
|
8268
|
-
a.disabled || !i.value || (r.value = W,
|
|
8269
|
-
}, F = (
|
|
8325
|
+
}, z = (L, W) => {
|
|
8326
|
+
a.disabled || !i.value || (r.value = W, V = a.direction === "vertical" ? L.clientY : L.clientX, w = [d.value[W] ?? 0, d.value[W + 1] ?? 0], window.addEventListener("mousemove", R), window.addEventListener("mouseup", D));
|
|
8327
|
+
}, F = (L, W) => {
|
|
8270
8328
|
if (a.disabled)
|
|
8271
8329
|
return;
|
|
8272
8330
|
const b = a.direction === "horizontal", E = b ? "ArrowLeft" : "ArrowUp", K = b ? "ArrowRight" : "ArrowDown";
|
|
8273
|
-
if ([E, K, "Home", "End"].includes(
|
|
8274
|
-
if (
|
|
8331
|
+
if ([E, K, "Home", "End"].includes(L.key)) {
|
|
8332
|
+
if (L.preventDefault(), L.key === "Home") {
|
|
8275
8333
|
const H = _(), T = d.value[W] ?? 0, Y = H[W] ?? 0;
|
|
8276
8334
|
$(W, Y - T);
|
|
8277
|
-
} else if (
|
|
8335
|
+
} else if (L.key === "End") {
|
|
8278
8336
|
const H = _(), T = (d.value[W] ?? 0) + (d.value[W + 1] ?? 0), Y = d.value[W] ?? 0, ee = T - (H[W + 1] ?? 0);
|
|
8279
8337
|
$(W, ee - Y);
|
|
8280
8338
|
} else {
|
|
8281
|
-
const H =
|
|
8339
|
+
const H = L.shiftKey ? 5 : 2, T = L.key === K ? H : -H;
|
|
8282
8340
|
$(W, T);
|
|
8283
8341
|
}
|
|
8284
8342
|
e("change", [...d.value]);
|
|
8285
8343
|
}
|
|
8286
|
-
}, A = (
|
|
8344
|
+
}, A = (L) => {
|
|
8287
8345
|
const W = `vf-splitter-panel-${++t}`;
|
|
8288
8346
|
return n.value.push({
|
|
8289
8347
|
id: W,
|
|
8290
|
-
size:
|
|
8291
|
-
minSize:
|
|
8348
|
+
size: L.size,
|
|
8349
|
+
minSize: L.minSize
|
|
8292
8350
|
}), B(), W;
|
|
8293
|
-
}, q = (
|
|
8294
|
-
n.value = n.value.filter((W) => W.id !==
|
|
8351
|
+
}, q = (L) => {
|
|
8352
|
+
n.value = n.value.filter((W) => W.id !== L), B();
|
|
8295
8353
|
};
|
|
8296
8354
|
return Qe(zt, {
|
|
8297
8355
|
direction: p(() => a.direction),
|
|
@@ -8313,13 +8371,13 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
8313
8371
|
{ deep: !0 }
|
|
8314
8372
|
), ke(() => {
|
|
8315
8373
|
D();
|
|
8316
|
-
}), (
|
|
8374
|
+
}), (L, W) => (v(), g("div", {
|
|
8317
8375
|
ref_key: "root",
|
|
8318
8376
|
ref: i,
|
|
8319
8377
|
class: Z(M.value)
|
|
8320
8378
|
}, [
|
|
8321
|
-
j(
|
|
8322
|
-
(v(!0), g(ue, null,
|
|
8379
|
+
j(L.$slots, "default"),
|
|
8380
|
+
(v(!0), g(ue, null, me(S.value, (b, E) => (v(), g("div", {
|
|
8323
8381
|
key: `gutter-${E}`,
|
|
8324
8382
|
class: Z(["vf-splitter__gutter", { "is-dragging": r.value === E }]),
|
|
8325
8383
|
style: ye(P(E)),
|
|
@@ -8334,14 +8392,14 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
8334
8392
|
]), 46, Xs))), 128))
|
|
8335
8393
|
], 2));
|
|
8336
8394
|
}
|
|
8337
|
-
}),
|
|
8395
|
+
}), cv = /* @__PURE__ */ oe({
|
|
8338
8396
|
__name: "splitter-panel",
|
|
8339
8397
|
props: {
|
|
8340
8398
|
size: { default: void 0 },
|
|
8341
8399
|
minSize: { default: void 0 }
|
|
8342
8400
|
},
|
|
8343
8401
|
setup(s) {
|
|
8344
|
-
const o = s, a =
|
|
8402
|
+
const o = s, a = Xe(zt, null);
|
|
8345
8403
|
if (!a)
|
|
8346
8404
|
throw new Error("SplitterPanel must be used inside Splitter");
|
|
8347
8405
|
const e = a.registerPanel({
|
|
@@ -8373,7 +8431,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
8373
8431
|
}, ai = {
|
|
8374
8432
|
key: 1,
|
|
8375
8433
|
class: "vf-stepper__description"
|
|
8376
|
-
},
|
|
8434
|
+
}, vv = /* @__PURE__ */ oe({
|
|
8377
8435
|
name: "VfStepper",
|
|
8378
8436
|
__name: "stepper",
|
|
8379
8437
|
props: {
|
|
@@ -8413,11 +8471,11 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
8413
8471
|
"aria-labelledby": h.ariaLabelledby || void 0
|
|
8414
8472
|
}, [
|
|
8415
8473
|
x("ol", qs, [
|
|
8416
|
-
(v(!0), g(ue, null,
|
|
8474
|
+
(v(!0), g(ue, null, me(t.value, (I, O) => (v(), g("li", {
|
|
8417
8475
|
key: S(I, O),
|
|
8418
8476
|
class: Z(["vf-stepper__item", l(I, O)])
|
|
8419
8477
|
}, [
|
|
8420
|
-
(v(),
|
|
8478
|
+
(v(), pe(Ye(k(I)), {
|
|
8421
8479
|
class: "vf-stepper__button",
|
|
8422
8480
|
type: _(I),
|
|
8423
8481
|
disabled: B(I),
|
|
@@ -8469,7 +8527,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
8469
8527
|
}, li = { class: "vf-wizard__list" }, ni = ["id", "aria-selected", "aria-controls", "disabled", "onClick"], si = { class: "vf-wizard__indicator" }, ii = { class: "vf-wizard__meta" }, di = { class: "vf-wizard__title" }, ui = {
|
|
8470
8528
|
key: 0,
|
|
8471
8529
|
class: "vf-wizard__description"
|
|
8472
|
-
}, ci = { class: "vf-wizard__content" }, vi = { class: "vf-wizard__footer" }, fi = ["disabled"],
|
|
8530
|
+
}, ci = { class: "vf-wizard__content" }, vi = { class: "vf-wizard__footer" }, fi = ["disabled"], fv = /* @__PURE__ */ oe({
|
|
8473
8531
|
__name: "wizard",
|
|
8474
8532
|
props: {
|
|
8475
8533
|
modelValue: { default: void 0 },
|
|
@@ -8521,7 +8579,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
8521
8579
|
const F = r.value[z];
|
|
8522
8580
|
if (!F)
|
|
8523
8581
|
return !0;
|
|
8524
|
-
const A = F.value, q = F.validate ? await F.validate(A, z) : !0,
|
|
8582
|
+
const A = F.value, q = F.validate ? await F.validate(A, z) : !0, L = e.validateStep ? await e.validateStep(F, z, A) : !0, W = (T) => T == null || T === !0 ? "" : T === !1 ? "Step is invalid" : String(T), b = W(q), E = W(L), K = b || E;
|
|
8525
8583
|
if (K)
|
|
8526
8584
|
return d.value = {
|
|
8527
8585
|
...d.value,
|
|
@@ -8532,7 +8590,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
8532
8590
|
}, $ = async (z, F) => {
|
|
8533
8591
|
const A = r.value[z];
|
|
8534
8592
|
!A || C(A, z) || u.value >= 0 && z > u.value && !await P(u.value) || O(A.value, F);
|
|
8535
|
-
},
|
|
8593
|
+
}, V = async () => {
|
|
8536
8594
|
u.value <= 0 || await $(u.value - 1, "prev");
|
|
8537
8595
|
}, w = async () => {
|
|
8538
8596
|
u.value < 0 || !await P(u.value) || a("complete", n.value, c.value, u.value);
|
|
@@ -8569,7 +8627,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
8569
8627
|
}, [
|
|
8570
8628
|
x("nav", ri, [
|
|
8571
8629
|
x("ol", li, [
|
|
8572
|
-
(v(!0), g(ue, null,
|
|
8630
|
+
(v(!0), g(ue, null, me(r.value, (A, q) => (v(), g("li", {
|
|
8573
8631
|
key: String(A.value),
|
|
8574
8632
|
class: Z(["vf-wizard__item", h(A, q)])
|
|
8575
8633
|
}, [
|
|
@@ -8581,7 +8639,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
8581
8639
|
"aria-selected": B(A.value) ? "true" : "false",
|
|
8582
8640
|
"aria-controls": _(A.value),
|
|
8583
8641
|
disabled: C(A, q),
|
|
8584
|
-
onClick: (
|
|
8642
|
+
onClick: (L) => D(q)
|
|
8585
8643
|
}, [
|
|
8586
8644
|
x("span", si, [
|
|
8587
8645
|
j(z.$slots, "indicator", {
|
|
@@ -8609,14 +8667,14 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
8609
8667
|
isFirst: f.value,
|
|
8610
8668
|
isLast: m.value,
|
|
8611
8669
|
next: R,
|
|
8612
|
-
prev:
|
|
8670
|
+
prev: V,
|
|
8613
8671
|
complete: w
|
|
8614
8672
|
}, () => [
|
|
8615
8673
|
x("button", {
|
|
8616
8674
|
class: "vf-wizard__button vf-wizard__button_secondary",
|
|
8617
8675
|
type: "button",
|
|
8618
8676
|
disabled: f.value,
|
|
8619
|
-
onClick:
|
|
8677
|
+
onClick: V
|
|
8620
8678
|
}, G(z.prevLabel), 9, fi),
|
|
8621
8679
|
x("button", {
|
|
8622
8680
|
class: "vf-wizard__button vf-wizard__button_primary",
|
|
@@ -8627,13 +8685,13 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
8627
8685
|
])
|
|
8628
8686
|
], 10, oi));
|
|
8629
8687
|
}
|
|
8630
|
-
}), pi = ["id", "aria-labelledby", "aria-hidden"],
|
|
8688
|
+
}), pi = ["id", "aria-labelledby", "aria-hidden"], pv = /* @__PURE__ */ oe({
|
|
8631
8689
|
__name: "wizard-step",
|
|
8632
8690
|
props: {
|
|
8633
8691
|
value: {}
|
|
8634
8692
|
},
|
|
8635
8693
|
setup(s) {
|
|
8636
|
-
const o = s, a =
|
|
8694
|
+
const o = s, a = Xe(St, null);
|
|
8637
8695
|
if (!a)
|
|
8638
8696
|
throw new Error("WizardStep must be used inside Wizard");
|
|
8639
8697
|
const e = p(() => a.isActive(o.value)), t = p(() => a.getPanelId(o.value)), i = p(() => a.getStepId(o.value));
|
|
@@ -8665,7 +8723,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
8665
8723
|
}, zi = {
|
|
8666
8724
|
key: 2,
|
|
8667
8725
|
class: "vf-timeline__description"
|
|
8668
|
-
},
|
|
8726
|
+
}, mv = /* @__PURE__ */ oe({
|
|
8669
8727
|
name: "VfTimeline",
|
|
8670
8728
|
__name: "timeline",
|
|
8671
8729
|
props: {
|
|
@@ -8683,7 +8741,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
8683
8741
|
"aria-labelledby": i.ariaLabelledby || void 0
|
|
8684
8742
|
}, [
|
|
8685
8743
|
x("ol", gi, [
|
|
8686
|
-
(v(!0), g(ue, null,
|
|
8744
|
+
(v(!0), g(ue, null, me(a.value, (d, r) => (v(), g("li", {
|
|
8687
8745
|
key: t(d, r),
|
|
8688
8746
|
class: "vf-timeline__item",
|
|
8689
8747
|
"data-status": d.status ?? "neutral"
|
|
@@ -8694,7 +8752,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
8694
8752
|
item: d,
|
|
8695
8753
|
index: r
|
|
8696
8754
|
}, () => [
|
|
8697
|
-
d.icon ? (v(),
|
|
8755
|
+
d.icon ? (v(), pe(We(Ne), {
|
|
8698
8756
|
key: 0,
|
|
8699
8757
|
icon: d.icon
|
|
8700
8758
|
}, null, 8, ["icon"])) : (v(), g("span", _i))
|
|
@@ -8716,7 +8774,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
8716
8774
|
])
|
|
8717
8775
|
], 10, mi));
|
|
8718
8776
|
}
|
|
8719
|
-
}), Si = ["aria-label", "aria-readonly", "aria-disabled"], Bi = ["aria-checked", "aria-label", "tabindex", "disabled", "onClick", "onKeydown"], xi = { class: "vf-rating__icon vf-rating__icon_empty" },
|
|
8777
|
+
}), Si = ["aria-label", "aria-readonly", "aria-disabled"], Bi = ["aria-checked", "aria-label", "tabindex", "disabled", "onClick", "onKeydown"], xi = { class: "vf-rating__icon vf-rating__icon_empty" }, Vi = { class: "vf-rating__icon_inner" }, gv = /* @__PURE__ */ oe({
|
|
8720
8778
|
__name: "rating",
|
|
8721
8779
|
props: {
|
|
8722
8780
|
modelValue: { default: 0 },
|
|
@@ -8764,10 +8822,10 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
8764
8822
|
t.value = r.value;
|
|
8765
8823
|
return;
|
|
8766
8824
|
}
|
|
8767
|
-
let A = 0, q = z,
|
|
8825
|
+
let A = 0, q = z, L = Number.POSITIVE_INFINITY;
|
|
8768
8826
|
R.forEach((b, E) => {
|
|
8769
8827
|
const K = b.getBoundingClientRect(), H = K.left + K.width / 2, T = Math.abs(D - H);
|
|
8770
|
-
T <
|
|
8828
|
+
T < L && (L = T, A = E, q = K);
|
|
8771
8829
|
});
|
|
8772
8830
|
let W = A + 1;
|
|
8773
8831
|
if (e.allowHalf) {
|
|
@@ -8809,7 +8867,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
8809
8867
|
}, C = (w) => a("focus", w), I = (w) => a("blur", w), O = (w) => {
|
|
8810
8868
|
const R = c.value - (w - 1), D = Math.min(1, Math.max(0, R));
|
|
8811
8869
|
return e.allowHalf ? D >= 1 ? "100%" : D >= 0.5 ? "50%" : "0%" : D >= 1 ? "100%" : "0%";
|
|
8812
|
-
}, P = (w) => w === f.value ? 0 : -1, $ = (w) => (e.modelValue ?? 0) === 0 ? !1 : w === f.value,
|
|
8870
|
+
}, P = (w) => w === f.value ? 0 : -1, $ = (w) => (e.modelValue ?? 0) === 0 ? !1 : w === f.value, V = (w) => e.ariaLabel ? `${e.ariaLabel} ${w}` : `${w}`;
|
|
8813
8871
|
return (w, R) => (v(), g("div", {
|
|
8814
8872
|
class: Z(["vf-rating", m.value]),
|
|
8815
8873
|
ref_key: "rootRef",
|
|
@@ -8821,7 +8879,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
8821
8879
|
onMousemove: B,
|
|
8822
8880
|
onMouseleave: M
|
|
8823
8881
|
}, [
|
|
8824
|
-
(v(!0), g(ue, null,
|
|
8882
|
+
(v(!0), g(ue, null, me(u.value, (D) => (v(), g("button", {
|
|
8825
8883
|
key: D,
|
|
8826
8884
|
type: "button",
|
|
8827
8885
|
class: "vf-rating__item",
|
|
@@ -8830,7 +8888,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
8830
8888
|
ref: n,
|
|
8831
8889
|
role: "radio",
|
|
8832
8890
|
"aria-checked": $(D),
|
|
8833
|
-
"aria-label":
|
|
8891
|
+
"aria-label": V(D),
|
|
8834
8892
|
tabindex: P(D),
|
|
8835
8893
|
disabled: w.disabled,
|
|
8836
8894
|
onFocus: C,
|
|
@@ -8856,7 +8914,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
8856
8914
|
class: "vf-rating__icon vf-rating__icon_fill",
|
|
8857
8915
|
style: ye({ width: O(D) })
|
|
8858
8916
|
}, [
|
|
8859
|
-
x("span",
|
|
8917
|
+
x("span", Vi, [
|
|
8860
8918
|
j(w.$slots, "active-icon", {}, () => [
|
|
8861
8919
|
R[1] || (R[1] = x("svg", {
|
|
8862
8920
|
viewBox: "0 0 24 24",
|
|
@@ -8874,7 +8932,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
8874
8932
|
], 40, Bi))), 128))
|
|
8875
8933
|
], 42, Si));
|
|
8876
8934
|
}
|
|
8877
|
-
}),
|
|
8935
|
+
}), Li = {
|
|
8878
8936
|
class: "vf-tree__node",
|
|
8879
8937
|
role: "none"
|
|
8880
8938
|
}, Fi = ["aria-level", "aria-expanded", "aria-selected", "aria-disabled", "tabindex"], Ti = ["disabled", "aria-label"], Ii = {
|
|
@@ -8973,7 +9031,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
8973
9031
|
};
|
|
8974
9032
|
return (l, k) => {
|
|
8975
9033
|
const _ = nt("TreeNode", !0);
|
|
8976
|
-
return v(), g("li",
|
|
9034
|
+
return v(), g("li", Li, [
|
|
8977
9035
|
x("div", {
|
|
8978
9036
|
class: Z(["vf-tree__row", n.value]),
|
|
8979
9037
|
style: ye(d.value),
|
|
@@ -9008,7 +9066,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
9008
9066
|
])
|
|
9009
9067
|
], 46, Fi),
|
|
9010
9068
|
a.value && i.value ? (v(), g("ul", Ri, [
|
|
9011
|
-
(v(!0), g(ue, null,
|
|
9069
|
+
(v(!0), g(ue, null, me(l.node.children, (B) => (v(), pe(_, {
|
|
9012
9070
|
key: B.key,
|
|
9013
9071
|
node: B,
|
|
9014
9072
|
level: l.level + 1,
|
|
@@ -9078,7 +9136,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
9078
9136
|
"aria-labelledby": l.ariaLabelledby || void 0
|
|
9079
9137
|
}, [
|
|
9080
9138
|
x("ul", Oi, [
|
|
9081
|
-
(v(!0), g(ue, null,
|
|
9139
|
+
(v(!0), g(ue, null, me(l.items, (_) => (v(), pe(Mi, {
|
|
9082
9140
|
key: _.key,
|
|
9083
9141
|
node: _,
|
|
9084
9142
|
level: 1,
|
|
@@ -9110,7 +9168,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
9110
9168
|
}, Gi = {
|
|
9111
9169
|
key: 3,
|
|
9112
9170
|
class: "vf-treeselect__empty"
|
|
9113
|
-
},
|
|
9171
|
+
}, bv = /* @__PURE__ */ oe({
|
|
9114
9172
|
__name: "tree-select",
|
|
9115
9173
|
props: {
|
|
9116
9174
|
items: { default: () => [] },
|
|
@@ -9183,7 +9241,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
9183
9241
|
return t.size !== "normal" && H.push(`vf-treeselect_${t.size}`), t.disabled && H.push("vf-treeselect_disabled"), H.filter(Boolean);
|
|
9184
9242
|
}), $ = () => {
|
|
9185
9243
|
u.value = !1, f.value = "bottom", m.value = "bottom", c.value = "";
|
|
9186
|
-
},
|
|
9244
|
+
}, V = async () => {
|
|
9187
9245
|
var H;
|
|
9188
9246
|
t.disabled || (u.value = !0, f.value = "bottom", m.value = "bottom", t.filter && (await ze(), (H = r.value) == null || H.focus()));
|
|
9189
9247
|
}, w = () => {
|
|
@@ -9191,7 +9249,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
9191
9249
|
$();
|
|
9192
9250
|
return;
|
|
9193
9251
|
}
|
|
9194
|
-
|
|
9252
|
+
V();
|
|
9195
9253
|
}, R = (H) => {
|
|
9196
9254
|
t.readonly || (e("update:modelValue", H), t.multiple || $());
|
|
9197
9255
|
}, D = (H, T, Y) => {
|
|
@@ -9207,7 +9265,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
9207
9265
|
return;
|
|
9208
9266
|
const H = t.multiple ? [] : void 0;
|
|
9209
9267
|
e("update:modelValue", H), e("change", H);
|
|
9210
|
-
},
|
|
9268
|
+
}, L = (H) => {
|
|
9211
9269
|
const T = H.target;
|
|
9212
9270
|
c.value = T.value, e("search", T.value);
|
|
9213
9271
|
}, W = (H) => e("focus", H), b = (H) => e("blur", H), E = (H) => {
|
|
@@ -9256,7 +9314,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
9256
9314
|
l == null || l.update();
|
|
9257
9315
|
},
|
|
9258
9316
|
{ deep: !0 }
|
|
9259
|
-
),
|
|
9317
|
+
), Le(() => {
|
|
9260
9318
|
document.addEventListener("click", E);
|
|
9261
9319
|
}), ke(() => {
|
|
9262
9320
|
document.removeEventListener("click", E), l == null || l.destroy(), l = null;
|
|
@@ -9276,7 +9334,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
9276
9334
|
"aria-haspopup": "tree",
|
|
9277
9335
|
onClick: w,
|
|
9278
9336
|
onKeydown: [
|
|
9279
|
-
ce(re(
|
|
9337
|
+
ce(re(V, ["prevent"]), ["down"]),
|
|
9280
9338
|
ce(re(w, ["prevent"]), ["enter"]),
|
|
9281
9339
|
ce(re($, ["prevent"]), ["esc"])
|
|
9282
9340
|
],
|
|
@@ -9298,7 +9356,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
9298
9356
|
"aria-label": "Clear selection",
|
|
9299
9357
|
onClick: re(q, ["stop"])
|
|
9300
9358
|
}, " ✕ ")) : Q("", !0),
|
|
9301
|
-
(v(),
|
|
9359
|
+
(v(), pe(Ve, { to: "body" }, [
|
|
9302
9360
|
Ce(x("div", {
|
|
9303
9361
|
id: y,
|
|
9304
9362
|
ref_key: "panel",
|
|
@@ -9314,11 +9372,11 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
9314
9372
|
type: "text",
|
|
9315
9373
|
value: c.value,
|
|
9316
9374
|
placeholder: H.searchPlaceholder,
|
|
9317
|
-
onInput:
|
|
9375
|
+
onInput: L,
|
|
9318
9376
|
onKeydown: ce(re($, ["prevent"]), ["esc"])
|
|
9319
9377
|
}, null, 40, Ki)
|
|
9320
9378
|
])) : Q("", !0),
|
|
9321
|
-
H.loading ? (v(), g("div", Ni, G(H.loadingText), 1)) : O.value.length > 0 ? (v(),
|
|
9379
|
+
H.loading ? (v(), g("div", Ni, G(H.loadingText), 1)) : O.value.length > 0 ? (v(), pe(Ei, {
|
|
9322
9380
|
key: 2,
|
|
9323
9381
|
class: "vf-treeselect__tree",
|
|
9324
9382
|
items: O.value,
|
|
@@ -9347,7 +9405,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
9347
9405
|
]))
|
|
9348
9406
|
], 2));
|
|
9349
9407
|
}
|
|
9350
|
-
}),
|
|
9408
|
+
}), ji = ["aria-label"], Yi = { class: "vf-breadcrumbs__list" }, Xi = {
|
|
9351
9409
|
key: 0,
|
|
9352
9410
|
class: "vf-breadcrumbs__current",
|
|
9353
9411
|
"aria-current": "page"
|
|
@@ -9355,7 +9413,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
9355
9413
|
key: 0,
|
|
9356
9414
|
class: "vf-breadcrumbs__separator",
|
|
9357
9415
|
"aria-hidden": "true"
|
|
9358
|
-
},
|
|
9416
|
+
}, hv = /* @__PURE__ */ oe({
|
|
9359
9417
|
name: "VfBreadcrumbs",
|
|
9360
9418
|
__name: "breadcrumbs",
|
|
9361
9419
|
props: {
|
|
@@ -9369,8 +9427,8 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
9369
9427
|
class: "vf-breadcrumbs",
|
|
9370
9428
|
"aria-label": n.ariaLabel
|
|
9371
9429
|
}, [
|
|
9372
|
-
x("ol",
|
|
9373
|
-
(v(!0), g(ue, null,
|
|
9430
|
+
x("ol", Yi, [
|
|
9431
|
+
(v(!0), g(ue, null, me(a.value, (r, u) => (v(), g(ue, {
|
|
9374
9432
|
key: i(r, u)
|
|
9375
9433
|
}, [
|
|
9376
9434
|
x("li", {
|
|
@@ -9382,7 +9440,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
9382
9440
|
isLast: u === a.value.length - 1,
|
|
9383
9441
|
active: t(r, u)
|
|
9384
9442
|
}, () => [
|
|
9385
|
-
t(r, u) ? (v(), g("span", Xi, G(r.label), 1)) : (v(),
|
|
9443
|
+
t(r, u) ? (v(), g("span", Xi, G(r.label), 1)) : (v(), pe(it, {
|
|
9386
9444
|
key: 1,
|
|
9387
9445
|
class: "vf-breadcrumbs__link",
|
|
9388
9446
|
to: r.to,
|
|
@@ -9403,12 +9461,12 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
9403
9461
|
])) : Q("", !0)
|
|
9404
9462
|
], 64))), 128))
|
|
9405
9463
|
])
|
|
9406
|
-
], 8,
|
|
9464
|
+
], 8, ji));
|
|
9407
9465
|
}
|
|
9408
9466
|
}), qi = ["aria-orientation", "aria-label"], Qi = {
|
|
9409
9467
|
key: 0,
|
|
9410
9468
|
class: "vf-divider__label"
|
|
9411
|
-
},
|
|
9469
|
+
}, yv = /* @__PURE__ */ oe({
|
|
9412
9470
|
name: "VfDivider",
|
|
9413
9471
|
__name: "divider",
|
|
9414
9472
|
props: {
|
|
@@ -9419,7 +9477,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
9419
9477
|
ariaLabel: { default: "Divider" }
|
|
9420
9478
|
},
|
|
9421
9479
|
setup(s) {
|
|
9422
|
-
const o = s, a =
|
|
9480
|
+
const o = s, a = Ue(), e = p(() => o.orientation === "horizontal" && (!!o.label || !!a.default)), t = p(() => {
|
|
9423
9481
|
const i = ["vf-divider", `vf-divider_${o.orientation}`, `vf-divider_${o.variant}`];
|
|
9424
9482
|
return o.inset && i.push("vf-divider_inset"), e.value && i.push("vf-divider_with-label"), i;
|
|
9425
9483
|
});
|
|
@@ -9454,7 +9512,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
9454
9512
|
}, ld = {
|
|
9455
9513
|
key: 0,
|
|
9456
9514
|
class: "vf-page-header__actions"
|
|
9457
|
-
},
|
|
9515
|
+
}, _v = /* @__PURE__ */ oe({
|
|
9458
9516
|
name: "VfPageHeader",
|
|
9459
9517
|
__name: "page-header",
|
|
9460
9518
|
props: {
|
|
@@ -9464,7 +9522,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
9464
9522
|
divider: { type: Boolean, default: !1 }
|
|
9465
9523
|
},
|
|
9466
9524
|
setup(s) {
|
|
9467
|
-
const o = s, a =
|
|
9525
|
+
const o = s, a = Ue(), e = p(() => !!o.title || !!a.title), t = p(() => !!o.subtitle || !!a.subtitle), i = p(() => {
|
|
9468
9526
|
const n = ["vf-page-header"];
|
|
9469
9527
|
return o.size !== "normal" && n.push(`vf-page-header_${o.size}`), o.divider && n.push("vf-page-header_divider"), n;
|
|
9470
9528
|
});
|
|
@@ -9505,7 +9563,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
9505
9563
|
}, id = {
|
|
9506
9564
|
key: 2,
|
|
9507
9565
|
class: "vf-virtual-scroller__content vf-virtual-scroller__content_static"
|
|
9508
|
-
},
|
|
9566
|
+
}, kv = /* @__PURE__ */ oe({
|
|
9509
9567
|
name: "VfVirtualScroller",
|
|
9510
9568
|
__name: "virtual-scroller",
|
|
9511
9569
|
props: {
|
|
@@ -9557,7 +9615,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
9557
9615
|
return F;
|
|
9558
9616
|
}
|
|
9559
9617
|
return z;
|
|
9560
|
-
},
|
|
9618
|
+
}, V = () => {
|
|
9561
9619
|
const D = { start: l.value, end: Math.max(l.value, _.value - 1) };
|
|
9562
9620
|
(n.value.start !== D.start || n.value.end !== D.end) && (n.value = D, a("rangeChange", D));
|
|
9563
9621
|
}, w = () => {
|
|
@@ -9565,12 +9623,12 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
9565
9623
|
D && !d.value && (d.value = !0, a("reachEnd")), D || (d.value = !1);
|
|
9566
9624
|
}, R = (D) => {
|
|
9567
9625
|
const z = D.target;
|
|
9568
|
-
i.value = z.scrollTop, a("scroll", D),
|
|
9626
|
+
i.value = z.scrollTop, a("scroll", D), V(), w();
|
|
9569
9627
|
};
|
|
9570
9628
|
return ie(
|
|
9571
9629
|
() => [e.items, e.virtual, e.itemHeight, e.overscan],
|
|
9572
9630
|
() => {
|
|
9573
|
-
|
|
9631
|
+
V(), w();
|
|
9574
9632
|
},
|
|
9575
9633
|
{ immediate: !0 }
|
|
9576
9634
|
), (D, z) => (v(), g("div", {
|
|
@@ -9591,7 +9649,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
9591
9649
|
class: "vf-virtual-scroller__content",
|
|
9592
9650
|
style: ye(O.value)
|
|
9593
9651
|
}, [
|
|
9594
|
-
(v(!0), g(ue, null,
|
|
9652
|
+
(v(!0), g(ue, null, me(B.value, (F) => (v(), g("div", {
|
|
9595
9653
|
key: F.key,
|
|
9596
9654
|
class: "vf-virtual-scroller__item",
|
|
9597
9655
|
style: ye(P.value),
|
|
@@ -9606,7 +9664,7 @@ const ho = (s, o) => s.strategy ? s.strategy : bo(o) ? "fixed" : "absolute", Ke
|
|
|
9606
9664
|
], 4))), 128))
|
|
9607
9665
|
], 4)
|
|
9608
9666
|
], 4)) : (v(), g("div", id, [
|
|
9609
|
-
(v(!0), g(ue, null,
|
|
9667
|
+
(v(!0), g(ue, null, me(r.value, (F, A) => (v(), g("div", {
|
|
9610
9668
|
key: $(F, A),
|
|
9611
9669
|
class: "vf-virtual-scroller__item",
|
|
9612
9670
|
style: ye(P.value),
|
|
@@ -9770,7 +9828,7 @@ const xt = (s) => {
|
|
|
9770
9828
|
return;
|
|
9771
9829
|
const a = vt(o.preset, o.overrides), { selector: e, darkSelector: t } = kd(o);
|
|
9772
9830
|
He = { ...o }, Cd(a, e, t, o.strict);
|
|
9773
|
-
},
|
|
9831
|
+
}, Cv = (s) => {
|
|
9774
9832
|
if (!He)
|
|
9775
9833
|
return;
|
|
9776
9834
|
const o = s.overrides === void 0 ? He.overrides : vt(He.overrides ?? {}, s.overrides ?? {}), a = {
|
|
@@ -9780,7 +9838,7 @@ const xt = (s) => {
|
|
|
9780
9838
|
darkSelector: s.darkSelector ?? He.darkSelector
|
|
9781
9839
|
};
|
|
9782
9840
|
xt(a);
|
|
9783
|
-
},
|
|
9841
|
+
}, $v = () => He ? { ...He } : null, wv = {
|
|
9784
9842
|
install(s, o = {}) {
|
|
9785
9843
|
o.theme && xt(o.theme);
|
|
9786
9844
|
}
|
|
@@ -10025,7 +10083,17 @@ const xt = (s) => {
|
|
|
10025
10083
|
backgroundColorMuted: "var(--vf-bg-soft-color)",
|
|
10026
10084
|
backgroundColorElevated: "var(--vf-gray-100)",
|
|
10027
10085
|
borderColor: "var(--vf-border-color)"
|
|
10086
|
+
}, Vd = {
|
|
10087
|
+
gap: "0.75rem",
|
|
10088
|
+
alignItems: "stretch",
|
|
10089
|
+
justifyContent: "flex-start",
|
|
10090
|
+
wrap: "nowrap"
|
|
10028
10091
|
}, Ld = {
|
|
10092
|
+
gap: "0.75rem",
|
|
10093
|
+
alignItems: "center",
|
|
10094
|
+
justifyContent: "flex-start",
|
|
10095
|
+
wrap: "wrap"
|
|
10096
|
+
}, Fd = {
|
|
10029
10097
|
gap: "0.5rem",
|
|
10030
10098
|
fontSize: "var(--vf-typography-font-size)",
|
|
10031
10099
|
padding: "var(--vf-controls-padding-y) var(--vf-controls-padding-x)",
|
|
@@ -10046,7 +10114,7 @@ const xt = (s) => {
|
|
|
10046
10114
|
padding: "var(--vf-sizes-lg-padding-y) var(--vf-sizes-lg-padding-x)",
|
|
10047
10115
|
fontSize: "var(--vf-sizes-lg-font-size)"
|
|
10048
10116
|
}
|
|
10049
|
-
},
|
|
10117
|
+
}, Td = {
|
|
10050
10118
|
gap: "0",
|
|
10051
10119
|
borderRadius: "var(--vf-radii-md)",
|
|
10052
10120
|
addonPadding: "0 var(--vf-controls-padding-x)",
|
|
@@ -10064,7 +10132,7 @@ const xt = (s) => {
|
|
|
10064
10132
|
addonPadding: "0 var(--vf-sizes-lg-padding-x)",
|
|
10065
10133
|
addonFontSize: "var(--vf-sizes-lg-font-size)"
|
|
10066
10134
|
}
|
|
10067
|
-
},
|
|
10135
|
+
}, Id = {
|
|
10068
10136
|
gap: "0.5rem",
|
|
10069
10137
|
fontSize: "var(--vf-typography-font-size)",
|
|
10070
10138
|
padding: "var(--vf-controls-padding-y) var(--vf-controls-padding-x)",
|
|
@@ -10097,7 +10165,7 @@ const xt = (s) => {
|
|
|
10097
10165
|
fontSize: "var(--vf-sizes-lg-font-size)",
|
|
10098
10166
|
buttonPadding: "0.26rem 0.62rem"
|
|
10099
10167
|
}
|
|
10100
|
-
},
|
|
10168
|
+
}, Dd = {
|
|
10101
10169
|
gap: "0.5rem",
|
|
10102
10170
|
fontSize: "var(--vf-typography-font-size)",
|
|
10103
10171
|
padding: "var(--vf-controls-padding-y) var(--vf-controls-padding-x)",
|
|
@@ -10130,7 +10198,7 @@ const xt = (s) => {
|
|
|
10130
10198
|
iconSize: "0.9rem",
|
|
10131
10199
|
clearSize: "1.25rem"
|
|
10132
10200
|
}
|
|
10133
|
-
},
|
|
10201
|
+
}, Rd = {
|
|
10134
10202
|
minWidth: "14rem",
|
|
10135
10203
|
fontSize: "var(--vf-typography-font-size)",
|
|
10136
10204
|
padding: "var(--vf-controls-padding-y) var(--vf-controls-padding-x)",
|
|
@@ -10165,7 +10233,7 @@ const xt = (s) => {
|
|
|
10165
10233
|
padding: "var(--vf-sizes-lg-padding-y) var(--vf-sizes-lg-padding-x)",
|
|
10166
10234
|
fontSize: "var(--vf-sizes-lg-font-size)"
|
|
10167
10235
|
}
|
|
10168
|
-
},
|
|
10236
|
+
}, Md = {
|
|
10169
10237
|
gap: "0.5rem",
|
|
10170
10238
|
fontSize: "var(--vf-typography-font-size)",
|
|
10171
10239
|
padding: "var(--vf-controls-padding-y) var(--vf-controls-padding-x)",
|
|
@@ -10199,7 +10267,7 @@ const xt = (s) => {
|
|
|
10199
10267
|
padding: "var(--vf-sizes-lg-padding-y) var(--vf-sizes-lg-padding-x)",
|
|
10200
10268
|
fontSize: "var(--vf-sizes-lg-font-size)"
|
|
10201
10269
|
}
|
|
10202
|
-
},
|
|
10270
|
+
}, Pd = {
|
|
10203
10271
|
gap: "0.5rem",
|
|
10204
10272
|
fontSize: "var(--vf-typography-font-size)",
|
|
10205
10273
|
cellSize: "2.25rem",
|
|
@@ -10223,7 +10291,7 @@ const xt = (s) => {
|
|
|
10223
10291
|
padding: "0.35rem",
|
|
10224
10292
|
fontSize: "var(--vf-sizes-lg-font-size)"
|
|
10225
10293
|
}
|
|
10226
|
-
},
|
|
10294
|
+
}, Od = {
|
|
10227
10295
|
minWidth: "12rem",
|
|
10228
10296
|
gap: "0.5rem",
|
|
10229
10297
|
fontSize: "var(--vf-typography-font-size)",
|
|
@@ -10261,7 +10329,7 @@ const xt = (s) => {
|
|
|
10261
10329
|
swatchSize: "1.15rem",
|
|
10262
10330
|
presetSize: "1.5rem"
|
|
10263
10331
|
}
|
|
10264
|
-
},
|
|
10332
|
+
}, Ed = {
|
|
10265
10333
|
gap: "0.5rem",
|
|
10266
10334
|
fontSize: "var(--vf-typography-font-size)",
|
|
10267
10335
|
padding: "var(--vf-controls-padding-y) var(--vf-controls-padding-x)",
|
|
@@ -10282,7 +10350,7 @@ const xt = (s) => {
|
|
|
10282
10350
|
padding: "var(--vf-sizes-lg-padding-y) var(--vf-sizes-lg-padding-x)",
|
|
10283
10351
|
fontSize: "var(--vf-sizes-lg-font-size)"
|
|
10284
10352
|
}
|
|
10285
|
-
},
|
|
10353
|
+
}, Ad = {
|
|
10286
10354
|
gap: "0.5rem",
|
|
10287
10355
|
fontSize: "var(--vf-typography-font-size)",
|
|
10288
10356
|
padding: "var(--vf-controls-padding-y) var(--vf-controls-padding-x)",
|
|
@@ -10315,11 +10383,11 @@ const xt = (s) => {
|
|
|
10315
10383
|
controlWidth: "1.75rem",
|
|
10316
10384
|
controlFontSize: "0.8rem"
|
|
10317
10385
|
}
|
|
10318
|
-
},
|
|
10386
|
+
}, Hd = {
|
|
10319
10387
|
gap: "0.75rem",
|
|
10320
10388
|
textColor: "var(--vf-text-color)",
|
|
10321
10389
|
disabledOpacity: "var(--vf-states-disabled-opacity)"
|
|
10322
|
-
},
|
|
10390
|
+
}, Wd = {
|
|
10323
10391
|
gap: "0.375rem",
|
|
10324
10392
|
textColor: "var(--vf-text-color)",
|
|
10325
10393
|
labelFontSize: "0.875rem",
|
|
@@ -10341,7 +10409,7 @@ const xt = (s) => {
|
|
|
10341
10409
|
labelFontSize: "0.9375rem",
|
|
10342
10410
|
hintFontSize: "0.875rem"
|
|
10343
10411
|
}
|
|
10344
|
-
},
|
|
10412
|
+
}, Kd = {
|
|
10345
10413
|
gap: "0.5rem",
|
|
10346
10414
|
fontSize: "var(--vf-typography-font-size)",
|
|
10347
10415
|
padding: "var(--vf-controls-padding-y) var(--vf-controls-padding-x)",
|
|
@@ -10364,7 +10432,7 @@ const xt = (s) => {
|
|
|
10364
10432
|
padding: "var(--vf-sizes-lg-padding-y) var(--vf-sizes-lg-padding-x)",
|
|
10365
10433
|
fontSize: "var(--vf-sizes-lg-font-size)"
|
|
10366
10434
|
}
|
|
10367
|
-
},
|
|
10435
|
+
}, Nd = {
|
|
10368
10436
|
gap: "0.5rem",
|
|
10369
10437
|
fontSize: "var(--vf-typography-font-size)",
|
|
10370
10438
|
padding: "var(--vf-controls-padding-y) var(--vf-controls-padding-x)",
|
|
@@ -10404,7 +10472,7 @@ const xt = (s) => {
|
|
|
10404
10472
|
fontSize: "var(--vf-sizes-lg-font-size)",
|
|
10405
10473
|
toolbarButtonPadding: "0.3rem 0.55rem"
|
|
10406
10474
|
}
|
|
10407
|
-
},
|
|
10475
|
+
}, Gd = {
|
|
10408
10476
|
minHeight: "2.75rem",
|
|
10409
10477
|
fontSize: "var(--vf-typography-font-size)",
|
|
10410
10478
|
gap: "0.75rem",
|
|
@@ -10445,10 +10513,10 @@ const xt = (s) => {
|
|
|
10445
10513
|
fontSize: "var(--vf-sizes-lg-font-size)",
|
|
10446
10514
|
buttonPadding: "0.45rem 0.9rem"
|
|
10447
10515
|
}
|
|
10448
|
-
},
|
|
10516
|
+
}, jd = {
|
|
10449
10517
|
hoverColor: "var(--vf-blue)",
|
|
10450
10518
|
activeColor: "var(--vf-blue)"
|
|
10451
|
-
},
|
|
10519
|
+
}, Yd = {
|
|
10452
10520
|
gap: "0.35rem",
|
|
10453
10521
|
fontSize: "var(--vf-typography-font-size)",
|
|
10454
10522
|
textColor: "var(--vf-secondary-text-color)",
|
|
@@ -10456,7 +10524,7 @@ const xt = (s) => {
|
|
|
10456
10524
|
activeColor: "var(--vf-text-color)",
|
|
10457
10525
|
separatorColor: "var(--vf-divider-color)",
|
|
10458
10526
|
disabledOpacity: "var(--vf-states-disabled-opacity)"
|
|
10459
|
-
},
|
|
10527
|
+
}, Xd = {
|
|
10460
10528
|
color: "var(--vf-border-color)",
|
|
10461
10529
|
textColor: "var(--vf-secondary-text-color)",
|
|
10462
10530
|
thickness: "1px",
|
|
@@ -10465,7 +10533,7 @@ const xt = (s) => {
|
|
|
10465
10533
|
inset: "1rem",
|
|
10466
10534
|
labelPadding: "0 0.4rem",
|
|
10467
10535
|
labelFontSize: "0.875rem"
|
|
10468
|
-
},
|
|
10536
|
+
}, Ud = {
|
|
10469
10537
|
gap: "0.5rem",
|
|
10470
10538
|
contentGap: "0.35rem",
|
|
10471
10539
|
breadcrumbGap: "0.25rem",
|
|
@@ -10492,7 +10560,7 @@ const xt = (s) => {
|
|
|
10492
10560
|
titleFontSize: "2rem",
|
|
10493
10561
|
subtitleFontSize: "1.05rem"
|
|
10494
10562
|
}
|
|
10495
|
-
},
|
|
10563
|
+
}, qd = {
|
|
10496
10564
|
iconGap: "6px",
|
|
10497
10565
|
submenuOffset: "12px",
|
|
10498
10566
|
separatorThickness: "1px",
|
|
@@ -10512,7 +10580,7 @@ const xt = (s) => {
|
|
|
10512
10580
|
marginBottom: "0.5rem",
|
|
10513
10581
|
marginLeft: "0.5rem"
|
|
10514
10582
|
}
|
|
10515
|
-
},
|
|
10583
|
+
}, Qd = {
|
|
10516
10584
|
width: "90vw",
|
|
10517
10585
|
maxWidth: "520px",
|
|
10518
10586
|
maxHeight: "80vh",
|
|
@@ -10539,13 +10607,13 @@ const xt = (s) => {
|
|
|
10539
10607
|
closeColor: "var(--vf-text-color)",
|
|
10540
10608
|
closeFontSize: "1.25rem",
|
|
10541
10609
|
closeHoverBackgroundColor: "rgba(0, 0, 0, 0.06)"
|
|
10542
|
-
},
|
|
10610
|
+
}, Zd = {
|
|
10543
10611
|
maxWidth: "420px",
|
|
10544
10612
|
messageColor: "var(--vf-secondary-text-color)",
|
|
10545
10613
|
messageFontSize: "0.95rem",
|
|
10546
10614
|
messageLineHeight: "1.5",
|
|
10547
10615
|
actionsGap: "0.5rem"
|
|
10548
|
-
},
|
|
10616
|
+
}, Jd = {
|
|
10549
10617
|
width: "320px",
|
|
10550
10618
|
widthSm: "260px",
|
|
10551
10619
|
widthLg: "420px",
|
|
@@ -10571,9 +10639,9 @@ const xt = (s) => {
|
|
|
10571
10639
|
closeColor: "var(--vf-text-color)",
|
|
10572
10640
|
closeFontSize: "1.25rem",
|
|
10573
10641
|
closeHoverBackgroundColor: "rgba(0, 0, 0, 0.06)"
|
|
10574
|
-
},
|
|
10642
|
+
}, eu = {
|
|
10575
10643
|
backgroundColor: "var(--vf-bg-color)"
|
|
10576
|
-
},
|
|
10644
|
+
}, tu = {
|
|
10577
10645
|
panelPadding: "0.25rem",
|
|
10578
10646
|
panelBorderRadius: "8px",
|
|
10579
10647
|
panelBorderColor: "var(--vf-border-color)",
|
|
@@ -10582,7 +10650,7 @@ const xt = (s) => {
|
|
|
10582
10650
|
zIndex: "50",
|
|
10583
10651
|
disabledOpacity: "var(--vf-states-disabled-opacity)",
|
|
10584
10652
|
itemPadding: "0.25rem 0.5rem"
|
|
10585
|
-
},
|
|
10653
|
+
}, au = {
|
|
10586
10654
|
borderRadius: "var(--vf-button-border-radius)",
|
|
10587
10655
|
toggleMinWidth: "2.25rem",
|
|
10588
10656
|
togglePaddingX: "0.55rem",
|
|
@@ -10594,7 +10662,7 @@ const xt = (s) => {
|
|
|
10594
10662
|
large: {
|
|
10595
10663
|
toggleMinWidth: "2.5rem"
|
|
10596
10664
|
}
|
|
10597
|
-
},
|
|
10665
|
+
}, ou = {
|
|
10598
10666
|
minWidth: "11rem",
|
|
10599
10667
|
panelPadding: "0.25rem",
|
|
10600
10668
|
panelBorderRadius: "8px",
|
|
@@ -10604,7 +10672,7 @@ const xt = (s) => {
|
|
|
10604
10672
|
zIndex: "60",
|
|
10605
10673
|
disabledOpacity: "var(--vf-states-disabled-opacity)",
|
|
10606
10674
|
itemPadding: "0.25rem 0.5rem"
|
|
10607
|
-
},
|
|
10675
|
+
}, ru = {
|
|
10608
10676
|
width: "92vw",
|
|
10609
10677
|
maxWidth: "640px",
|
|
10610
10678
|
maxHeight: "70vh",
|
|
@@ -10647,7 +10715,7 @@ const xt = (s) => {
|
|
|
10647
10715
|
shortcutFontSize: "0.75rem",
|
|
10648
10716
|
emptyPadding: "1rem 0.5rem",
|
|
10649
10717
|
emptyColor: "var(--vf-secondary-text-color)"
|
|
10650
|
-
},
|
|
10718
|
+
}, lu = {
|
|
10651
10719
|
zIndex: "125",
|
|
10652
10720
|
overlayBackgroundColor: "rgba(0, 0, 0, 0.35)",
|
|
10653
10721
|
top: "1rem",
|
|
@@ -10688,7 +10756,7 @@ const xt = (s) => {
|
|
|
10688
10756
|
itemMetaColor: "var(--vf-secondary-text-color)",
|
|
10689
10757
|
emptyPadding: "1rem",
|
|
10690
10758
|
emptyColor: "var(--vf-secondary-text-color)"
|
|
10691
|
-
},
|
|
10759
|
+
}, nu = {
|
|
10692
10760
|
gap: "0",
|
|
10693
10761
|
backgroundColor: "var(--vf-bg-color)",
|
|
10694
10762
|
textColor: "var(--vf-text-color)",
|
|
@@ -10711,7 +10779,7 @@ const xt = (s) => {
|
|
|
10711
10779
|
toggleHoverBackgroundColor: "rgba(var(--vf-gray-600-rgb), 0.16)",
|
|
10712
10780
|
overlayBackgroundColor: "rgba(0, 0, 0, 0.34)",
|
|
10713
10781
|
zIndex: "110"
|
|
10714
|
-
},
|
|
10782
|
+
}, su = {
|
|
10715
10783
|
gap: "0.5rem",
|
|
10716
10784
|
columnMinWidth: "17rem",
|
|
10717
10785
|
columnGap: "0.75rem",
|
|
@@ -10750,7 +10818,7 @@ const xt = (s) => {
|
|
|
10750
10818
|
columnFooterPadding: "0.6rem 0.75rem",
|
|
10751
10819
|
columnFooterBorderColor: "var(--vf-border-color)",
|
|
10752
10820
|
dragOpacity: "0.6"
|
|
10753
|
-
},
|
|
10821
|
+
}, iu = {
|
|
10754
10822
|
minWidth: "12rem",
|
|
10755
10823
|
fontSize: "var(--vf-typography-font-size)",
|
|
10756
10824
|
controlGap: "0.75rem",
|
|
@@ -10783,7 +10851,7 @@ const xt = (s) => {
|
|
|
10783
10851
|
padding: "var(--vf-sizes-lg-padding-y) var(--vf-sizes-lg-padding-x)",
|
|
10784
10852
|
fontSize: "var(--vf-sizes-lg-font-size)"
|
|
10785
10853
|
}
|
|
10786
|
-
},
|
|
10854
|
+
}, du = {
|
|
10787
10855
|
minWidth: "12rem",
|
|
10788
10856
|
fontSize: "var(--vf-typography-font-size)",
|
|
10789
10857
|
controlGap: "0.5rem",
|
|
@@ -10822,7 +10890,7 @@ const xt = (s) => {
|
|
|
10822
10890
|
padding: "var(--vf-sizes-lg-padding-y) var(--vf-sizes-lg-padding-x)",
|
|
10823
10891
|
fontSize: "var(--vf-sizes-lg-font-size)"
|
|
10824
10892
|
}
|
|
10825
|
-
},
|
|
10893
|
+
}, uu = {
|
|
10826
10894
|
minWidth: "12rem",
|
|
10827
10895
|
fontSize: "var(--vf-typography-font-size)",
|
|
10828
10896
|
controlGap: "0.5rem",
|
|
@@ -10864,7 +10932,7 @@ const xt = (s) => {
|
|
|
10864
10932
|
padding: "var(--vf-sizes-lg-padding-y) var(--vf-sizes-lg-padding-x)",
|
|
10865
10933
|
fontSize: "var(--vf-sizes-lg-font-size)"
|
|
10866
10934
|
}
|
|
10867
|
-
},
|
|
10935
|
+
}, cu = {
|
|
10868
10936
|
minWidth: "12rem",
|
|
10869
10937
|
fontSize: "var(--vf-typography-font-size)",
|
|
10870
10938
|
controlGap: "0.5rem",
|
|
@@ -10909,7 +10977,7 @@ const xt = (s) => {
|
|
|
10909
10977
|
padding: "var(--vf-sizes-lg-padding-y) var(--vf-sizes-lg-padding-x)",
|
|
10910
10978
|
fontSize: "var(--vf-sizes-lg-font-size)"
|
|
10911
10979
|
}
|
|
10912
|
-
},
|
|
10980
|
+
}, vu = {
|
|
10913
10981
|
minWidth: "12rem",
|
|
10914
10982
|
minHeight: "var(--vf-controls-height)",
|
|
10915
10983
|
fontSize: "var(--vf-typography-font-size)",
|
|
@@ -10964,7 +11032,7 @@ const xt = (s) => {
|
|
|
10964
11032
|
chipPadding: "0.25rem 0.55rem",
|
|
10965
11033
|
chipFontSize: "0.9em"
|
|
10966
11034
|
}
|
|
10967
|
-
},
|
|
11035
|
+
}, fu = {
|
|
10968
11036
|
minWidth: "12rem",
|
|
10969
11037
|
fontSize: "var(--vf-typography-font-size)",
|
|
10970
11038
|
controlGap: "0.75rem",
|
|
@@ -11014,7 +11082,7 @@ const xt = (s) => {
|
|
|
11014
11082
|
fontSize: "var(--vf-sizes-lg-font-size)",
|
|
11015
11083
|
daySize: "2.2rem"
|
|
11016
11084
|
}
|
|
11017
|
-
},
|
|
11085
|
+
}, pu = {
|
|
11018
11086
|
minWidth: "14rem",
|
|
11019
11087
|
fontSize: "var(--vf-typography-font-size)",
|
|
11020
11088
|
controlGap: "0.75rem",
|
|
@@ -11066,7 +11134,7 @@ const xt = (s) => {
|
|
|
11066
11134
|
fontSize: "var(--vf-sizes-lg-font-size)",
|
|
11067
11135
|
daySize: "2.2rem"
|
|
11068
11136
|
}
|
|
11069
|
-
},
|
|
11137
|
+
}, mu = {
|
|
11070
11138
|
minWidth: "10rem",
|
|
11071
11139
|
fontSize: "var(--vf-typography-font-size)",
|
|
11072
11140
|
controlGap: "0.75rem",
|
|
@@ -11100,7 +11168,7 @@ const xt = (s) => {
|
|
|
11100
11168
|
padding: "var(--vf-sizes-lg-padding-y) var(--vf-sizes-lg-padding-x)",
|
|
11101
11169
|
fontSize: "var(--vf-sizes-lg-font-size)"
|
|
11102
11170
|
}
|
|
11103
|
-
},
|
|
11171
|
+
}, gu = {
|
|
11104
11172
|
minWidth: "14rem",
|
|
11105
11173
|
fontSize: "var(--vf-typography-font-size)",
|
|
11106
11174
|
controlGap: "0.75rem",
|
|
@@ -11161,7 +11229,7 @@ const xt = (s) => {
|
|
|
11161
11229
|
fontSize: "var(--vf-sizes-lg-font-size)",
|
|
11162
11230
|
daySize: "2.2rem"
|
|
11163
11231
|
}
|
|
11164
|
-
},
|
|
11232
|
+
}, bu = {
|
|
11165
11233
|
width: "100%",
|
|
11166
11234
|
fontSize: "var(--vf-typography-font-size)",
|
|
11167
11235
|
padding: "0.5rem",
|
|
@@ -11199,7 +11267,7 @@ const xt = (s) => {
|
|
|
11199
11267
|
fontSize: "var(--vf-sizes-lg-font-size)",
|
|
11200
11268
|
daySize: "2.2rem"
|
|
11201
11269
|
}
|
|
11202
|
-
},
|
|
11270
|
+
}, hu = {
|
|
11203
11271
|
gap: "0.4rem",
|
|
11204
11272
|
itemMinWidth: "2rem",
|
|
11205
11273
|
fontSize: "var(--vf-typography-font-size)",
|
|
@@ -11224,7 +11292,7 @@ const xt = (s) => {
|
|
|
11224
11292
|
fontSize: "var(--vf-sizes-lg-font-size)",
|
|
11225
11293
|
padding: "0.45rem 0.8rem"
|
|
11226
11294
|
}
|
|
11227
|
-
},
|
|
11295
|
+
}, yu = {
|
|
11228
11296
|
size: "1rem",
|
|
11229
11297
|
gap: "0.5rem",
|
|
11230
11298
|
borderRadius: "var(--vf-radii-sm)",
|
|
@@ -11236,7 +11304,7 @@ const xt = (s) => {
|
|
|
11236
11304
|
checkColor: "#ffffff",
|
|
11237
11305
|
textColor: "var(--vf-text-color)",
|
|
11238
11306
|
disabledOpacity: "var(--vf-states-disabled-opacity)"
|
|
11239
|
-
},
|
|
11307
|
+
}, _u = {
|
|
11240
11308
|
size: "1rem",
|
|
11241
11309
|
dotSize: "0.45rem",
|
|
11242
11310
|
gap: "0.5rem",
|
|
@@ -11250,7 +11318,7 @@ const xt = (s) => {
|
|
|
11250
11318
|
dotColor: "#ffffff",
|
|
11251
11319
|
textColor: "var(--vf-text-color)",
|
|
11252
11320
|
disabledOpacity: "var(--vf-states-disabled-opacity)"
|
|
11253
|
-
},
|
|
11321
|
+
}, ku = {
|
|
11254
11322
|
width: "2.25rem",
|
|
11255
11323
|
height: "1.25rem",
|
|
11256
11324
|
thumbSize: "1rem",
|
|
@@ -11262,7 +11330,7 @@ const xt = (s) => {
|
|
|
11262
11330
|
thumbColor: "#ffffff",
|
|
11263
11331
|
textColor: "var(--vf-text-color)",
|
|
11264
11332
|
disabledOpacity: "var(--vf-states-disabled-opacity)"
|
|
11265
|
-
},
|
|
11333
|
+
}, Cu = {
|
|
11266
11334
|
fontSize: "0.95rem",
|
|
11267
11335
|
padding: "0.16rem",
|
|
11268
11336
|
gap: "0.16rem",
|
|
@@ -11288,7 +11356,7 @@ const xt = (s) => {
|
|
|
11288
11356
|
padding: "0.2rem",
|
|
11289
11357
|
segmentPadding: "0.42rem 0.78rem"
|
|
11290
11358
|
}
|
|
11291
|
-
},
|
|
11359
|
+
}, $u = {
|
|
11292
11360
|
gap: "0.75rem",
|
|
11293
11361
|
listGap: "0.5rem",
|
|
11294
11362
|
listBorderWidth: "1px",
|
|
@@ -11309,7 +11377,7 @@ const xt = (s) => {
|
|
|
11309
11377
|
panelBackgroundColor: "transparent",
|
|
11310
11378
|
panelTextColor: "var(--vf-text-color)",
|
|
11311
11379
|
disabledOpacity: "var(--vf-states-disabled-opacity)"
|
|
11312
|
-
},
|
|
11380
|
+
}, wu = {
|
|
11313
11381
|
gap: "0.75rem",
|
|
11314
11382
|
borderRadius: "var(--vf-radii-md)",
|
|
11315
11383
|
borderColor: "var(--vf-border-color)",
|
|
@@ -11340,7 +11408,7 @@ const xt = (s) => {
|
|
|
11340
11408
|
headerFontSize: "1rem",
|
|
11341
11409
|
contentPadding: "0.9rem 1.1rem"
|
|
11342
11410
|
}
|
|
11343
|
-
},
|
|
11411
|
+
}, zu = {
|
|
11344
11412
|
padding: "0.35rem 0.6rem",
|
|
11345
11413
|
borderRadius: "8px",
|
|
11346
11414
|
backgroundColor: "rgba(0, 0, 0, 0.8)",
|
|
@@ -11351,7 +11419,7 @@ const xt = (s) => {
|
|
|
11351
11419
|
zIndex: "120",
|
|
11352
11420
|
maxWidth: "240px",
|
|
11353
11421
|
arrowSize: "8px"
|
|
11354
|
-
},
|
|
11422
|
+
}, Su = {
|
|
11355
11423
|
zIndex: "120",
|
|
11356
11424
|
overlayBackgroundColor: "rgba(0, 0, 0, 0.45)",
|
|
11357
11425
|
width: "22rem",
|
|
@@ -11389,7 +11457,7 @@ const xt = (s) => {
|
|
|
11389
11457
|
spotlightBorderWidth: "2px",
|
|
11390
11458
|
spotlightBorderColor: "rgba(var(--vf-blue-600-rgb), 0.55)",
|
|
11391
11459
|
disabledOpacity: "var(--vf-states-disabled-opacity)"
|
|
11392
|
-
},
|
|
11460
|
+
}, Bu = {
|
|
11393
11461
|
width: "100%",
|
|
11394
11462
|
height: "1rem",
|
|
11395
11463
|
lineHeight: "0.9rem",
|
|
@@ -11397,7 +11465,7 @@ const xt = (s) => {
|
|
|
11397
11465
|
backgroundColor: "var(--vf-gutter-color)",
|
|
11398
11466
|
shimmerColor: "var(--vf-bg-color)",
|
|
11399
11467
|
animationDuration: "2s"
|
|
11400
|
-
},
|
|
11468
|
+
}, xu = {
|
|
11401
11469
|
borderColor: "var(--vf-border-color)",
|
|
11402
11470
|
borderRadius: "var(--vf-radii-md)",
|
|
11403
11471
|
backgroundColor: "var(--vf-bg-color)",
|
|
@@ -11428,7 +11496,7 @@ const xt = (s) => {
|
|
|
11428
11496
|
fontSize: "var(--vf-sizes-lg-font-size)",
|
|
11429
11497
|
cellPadding: "0.75rem 0.9rem"
|
|
11430
11498
|
}
|
|
11431
|
-
},
|
|
11499
|
+
}, Vu = {
|
|
11432
11500
|
gap: "0.75rem",
|
|
11433
11501
|
padding: "0.75rem 0.9rem",
|
|
11434
11502
|
borderRadius: "var(--vf-radii-md)",
|
|
@@ -11467,7 +11535,7 @@ const xt = (s) => {
|
|
|
11467
11535
|
borderColor: "rgba(var(--vf-red-600-rgb), 0.45)",
|
|
11468
11536
|
textColor: "var(--vf-text-color)"
|
|
11469
11537
|
}
|
|
11470
|
-
},
|
|
11538
|
+
}, Lu = {
|
|
11471
11539
|
gap: "0.75rem",
|
|
11472
11540
|
padding: "0.75rem 0.9rem",
|
|
11473
11541
|
borderRadius: "var(--vf-radii-md)",
|
|
@@ -11505,7 +11573,7 @@ const xt = (s) => {
|
|
|
11505
11573
|
borderColor: "rgba(var(--vf-red-600-rgb), 0.45)",
|
|
11506
11574
|
textColor: "var(--vf-text-color)"
|
|
11507
11575
|
}
|
|
11508
|
-
},
|
|
11576
|
+
}, Fu = {
|
|
11509
11577
|
gap: "0.75rem",
|
|
11510
11578
|
bodyGap: "0.35rem",
|
|
11511
11579
|
padding: "1.25rem",
|
|
@@ -11536,7 +11604,7 @@ const xt = (s) => {
|
|
|
11536
11604
|
titleFontSize: "1.125rem",
|
|
11537
11605
|
descriptionFontSize: "1rem"
|
|
11538
11606
|
}
|
|
11539
|
-
},
|
|
11607
|
+
}, Tu = {
|
|
11540
11608
|
width: "100%",
|
|
11541
11609
|
height: "0.5rem",
|
|
11542
11610
|
borderRadius: "999px",
|
|
@@ -11572,7 +11640,7 @@ const xt = (s) => {
|
|
|
11572
11640
|
circularSize: "3.25rem",
|
|
11573
11641
|
circularThickness: "7"
|
|
11574
11642
|
}
|
|
11575
|
-
},
|
|
11643
|
+
}, Iu = {
|
|
11576
11644
|
fontSize: "0.75rem",
|
|
11577
11645
|
lineHeight: "1",
|
|
11578
11646
|
paddingX: "0.5rem",
|
|
@@ -11637,7 +11705,7 @@ const xt = (s) => {
|
|
|
11637
11705
|
paddingX: "0.65rem",
|
|
11638
11706
|
paddingY: "0.3rem"
|
|
11639
11707
|
}
|
|
11640
|
-
},
|
|
11708
|
+
}, Du = {
|
|
11641
11709
|
fontSize: "0.8125rem",
|
|
11642
11710
|
lineHeight: "1",
|
|
11643
11711
|
paddingX: "0.55rem",
|
|
@@ -11709,7 +11777,7 @@ const xt = (s) => {
|
|
|
11709
11777
|
paddingX: "0.7rem",
|
|
11710
11778
|
paddingY: "0.28rem"
|
|
11711
11779
|
}
|
|
11712
|
-
},
|
|
11780
|
+
}, Ru = {
|
|
11713
11781
|
fontSize: "0.8125rem",
|
|
11714
11782
|
gap: "0.35rem",
|
|
11715
11783
|
chipGap: "0.3rem",
|
|
@@ -11741,7 +11809,7 @@ const xt = (s) => {
|
|
|
11741
11809
|
fontSize: "0.95rem",
|
|
11742
11810
|
chipPadding: "0.38rem 0.72rem"
|
|
11743
11811
|
}
|
|
11744
|
-
},
|
|
11812
|
+
}, Mu = {
|
|
11745
11813
|
size: "2.5rem",
|
|
11746
11814
|
fontSize: "0.9rem",
|
|
11747
11815
|
fontWeight: "600",
|
|
@@ -11767,7 +11835,7 @@ const xt = (s) => {
|
|
|
11767
11835
|
fontSize: "1rem",
|
|
11768
11836
|
statusSize: "0.75rem"
|
|
11769
11837
|
}
|
|
11770
|
-
},
|
|
11838
|
+
}, Pu = {
|
|
11771
11839
|
size: "1.5rem",
|
|
11772
11840
|
thickness: "2px",
|
|
11773
11841
|
color: "var(--vf-blue-600)",
|
|
@@ -11802,7 +11870,7 @@ const xt = (s) => {
|
|
|
11802
11870
|
thickness: "3px",
|
|
11803
11871
|
labelFontSize: "1rem"
|
|
11804
11872
|
}
|
|
11805
|
-
},
|
|
11873
|
+
}, Ou = {
|
|
11806
11874
|
width: "100%",
|
|
11807
11875
|
gap: "0.5rem",
|
|
11808
11876
|
textColor: "var(--vf-text-color)",
|
|
@@ -11834,7 +11902,7 @@ const xt = (s) => {
|
|
|
11834
11902
|
thumbSize: "1.25rem",
|
|
11835
11903
|
valueFontSize: "1rem"
|
|
11836
11904
|
}
|
|
11837
|
-
},
|
|
11905
|
+
}, Eu = {
|
|
11838
11906
|
borderColor: "var(--vf-border-color)",
|
|
11839
11907
|
borderRadius: "var(--vf-radii-md)",
|
|
11840
11908
|
panelBackgroundColor: "var(--vf-controls-background-color)",
|
|
@@ -11844,7 +11912,7 @@ const xt = (s) => {
|
|
|
11844
11912
|
handleColor: "var(--vf-border-color)",
|
|
11845
11913
|
gutterActiveBackgroundColor: "rgba(var(--vf-blue-600-rgb), 0.12)",
|
|
11846
11914
|
disabledOpacity: "var(--vf-states-disabled-opacity)"
|
|
11847
|
-
},
|
|
11915
|
+
}, Au = {
|
|
11848
11916
|
gap: "1rem",
|
|
11849
11917
|
itemGap: "0.75rem",
|
|
11850
11918
|
lineThickness: "2px",
|
|
@@ -11887,7 +11955,7 @@ const xt = (s) => {
|
|
|
11887
11955
|
lineLength: "1.75rem",
|
|
11888
11956
|
itemGap: "1rem"
|
|
11889
11957
|
}
|
|
11890
|
-
},
|
|
11958
|
+
}, Hu = {
|
|
11891
11959
|
gap: "1rem",
|
|
11892
11960
|
borderColor: "var(--vf-border-color)",
|
|
11893
11961
|
headerPaddingBottom: "0.75rem",
|
|
@@ -11925,7 +11993,7 @@ const xt = (s) => {
|
|
|
11925
11993
|
secondaryButtonTextColor: "var(--vf-text-color)",
|
|
11926
11994
|
secondaryButtonHoverBackgroundColor: "rgba(var(--vf-gray-600-rgb), 0.12)",
|
|
11927
11995
|
disabledOpacity: "var(--vf-states-disabled-opacity)"
|
|
11928
|
-
},
|
|
11996
|
+
}, Wu = {
|
|
11929
11997
|
gap: "1rem",
|
|
11930
11998
|
itemGap: "0.75rem",
|
|
11931
11999
|
markerSize: "1.75rem",
|
|
@@ -11989,7 +12057,7 @@ const xt = (s) => {
|
|
|
11989
12057
|
titleFontSize: "1.125rem",
|
|
11990
12058
|
descriptionFontSize: "1rem"
|
|
11991
12059
|
}
|
|
11992
|
-
},
|
|
12060
|
+
}, Ku = {
|
|
11993
12061
|
gap: "0.25rem",
|
|
11994
12062
|
size: "1.1rem",
|
|
11995
12063
|
color: "var(--vf-gutter-color)",
|
|
@@ -12004,7 +12072,7 @@ const xt = (s) => {
|
|
|
12004
12072
|
large: {
|
|
12005
12073
|
size: "1.35rem"
|
|
12006
12074
|
}
|
|
12007
|
-
},
|
|
12075
|
+
}, Nu = {
|
|
12008
12076
|
gap: "0.3rem",
|
|
12009
12077
|
indent: "1rem",
|
|
12010
12078
|
rowGap: "0.5rem",
|
|
@@ -12038,7 +12106,7 @@ const xt = (s) => {
|
|
|
12038
12106
|
rowFontSize: "1rem",
|
|
12039
12107
|
toggleSize: "1.1rem"
|
|
12040
12108
|
}
|
|
12041
|
-
},
|
|
12109
|
+
}, Gu = {
|
|
12042
12110
|
minWidth: "14rem",
|
|
12043
12111
|
fontSize: "var(--vf-typography-font-size)",
|
|
12044
12112
|
controlGap: "0.75rem",
|
|
@@ -12077,7 +12145,7 @@ const xt = (s) => {
|
|
|
12077
12145
|
padding: "var(--vf-sizes-lg-padding-y) var(--vf-sizes-lg-padding-x)",
|
|
12078
12146
|
fontSize: "var(--vf-sizes-lg-font-size)"
|
|
12079
12147
|
}
|
|
12080
|
-
},
|
|
12148
|
+
}, ju = {
|
|
12081
12149
|
fontSize: "var(--vf-typography-font-size)",
|
|
12082
12150
|
borderColor: "var(--vf-border-color)",
|
|
12083
12151
|
borderRadius: "var(--vf-radii-md)",
|
|
@@ -12088,7 +12156,7 @@ const xt = (s) => {
|
|
|
12088
12156
|
itemBorderColor: "var(--vf-border-color)",
|
|
12089
12157
|
emptyPadding: "0.75rem",
|
|
12090
12158
|
emptyColor: "var(--vf-secondary-text-color)"
|
|
12091
|
-
},
|
|
12159
|
+
}, zv = {
|
|
12092
12160
|
...gt,
|
|
12093
12161
|
components: {
|
|
12094
12162
|
base: gt,
|
|
@@ -12098,167 +12166,171 @@ const xt = (s) => {
|
|
|
12098
12166
|
container: Sd,
|
|
12099
12167
|
grid: Bd,
|
|
12100
12168
|
section: xd,
|
|
12101
|
-
|
|
12102
|
-
|
|
12103
|
-
|
|
12104
|
-
|
|
12105
|
-
|
|
12106
|
-
|
|
12107
|
-
|
|
12108
|
-
|
|
12109
|
-
|
|
12110
|
-
|
|
12111
|
-
|
|
12112
|
-
|
|
12113
|
-
|
|
12114
|
-
|
|
12115
|
-
|
|
12116
|
-
|
|
12117
|
-
|
|
12118
|
-
|
|
12119
|
-
|
|
12120
|
-
|
|
12121
|
-
|
|
12122
|
-
|
|
12123
|
-
|
|
12124
|
-
|
|
12125
|
-
|
|
12126
|
-
|
|
12127
|
-
|
|
12128
|
-
|
|
12129
|
-
|
|
12130
|
-
|
|
12131
|
-
|
|
12132
|
-
|
|
12133
|
-
|
|
12134
|
-
|
|
12135
|
-
|
|
12136
|
-
|
|
12137
|
-
|
|
12138
|
-
|
|
12139
|
-
|
|
12140
|
-
|
|
12141
|
-
|
|
12142
|
-
|
|
12143
|
-
|
|
12144
|
-
|
|
12145
|
-
|
|
12146
|
-
|
|
12147
|
-
|
|
12148
|
-
|
|
12149
|
-
|
|
12150
|
-
|
|
12151
|
-
|
|
12152
|
-
|
|
12153
|
-
|
|
12154
|
-
|
|
12155
|
-
|
|
12156
|
-
|
|
12157
|
-
|
|
12158
|
-
|
|
12159
|
-
|
|
12160
|
-
|
|
12161
|
-
|
|
12162
|
-
|
|
12163
|
-
|
|
12164
|
-
|
|
12165
|
-
|
|
12166
|
-
|
|
12167
|
-
|
|
12168
|
-
|
|
12169
|
-
|
|
12170
|
-
|
|
12169
|
+
stack: Vd,
|
|
12170
|
+
inline: Ld,
|
|
12171
|
+
input: Fd,
|
|
12172
|
+
inputGroup: Td,
|
|
12173
|
+
inlineEdit: Id,
|
|
12174
|
+
searchInput: Dd,
|
|
12175
|
+
mentionInput: Rd,
|
|
12176
|
+
passwordInput: Md,
|
|
12177
|
+
otpInput: Pd,
|
|
12178
|
+
colorPicker: Od,
|
|
12179
|
+
maskedInput: Ed,
|
|
12180
|
+
numberInput: Ad,
|
|
12181
|
+
form: Hd,
|
|
12182
|
+
formField: Wd,
|
|
12183
|
+
textarea: Kd,
|
|
12184
|
+
richTextEditor: Nd,
|
|
12185
|
+
fileUpload: Gd,
|
|
12186
|
+
link: jd,
|
|
12187
|
+
breadcrumbs: Yd,
|
|
12188
|
+
divider: Xd,
|
|
12189
|
+
pageHeader: Ud,
|
|
12190
|
+
menu: qd,
|
|
12191
|
+
modal: Qd,
|
|
12192
|
+
confirmDialog: Zd,
|
|
12193
|
+
drawer: Jd,
|
|
12194
|
+
popover: eu,
|
|
12195
|
+
dropdown: tu,
|
|
12196
|
+
splitbutton: au,
|
|
12197
|
+
contextMenu: ou,
|
|
12198
|
+
commandPalette: ru,
|
|
12199
|
+
notificationCenter: lu,
|
|
12200
|
+
appShell: nu,
|
|
12201
|
+
kanbanBoard: su,
|
|
12202
|
+
select: iu,
|
|
12203
|
+
autocomplete: du,
|
|
12204
|
+
combobox: uu,
|
|
12205
|
+
multiselect: cu,
|
|
12206
|
+
taginput: vu,
|
|
12207
|
+
datepicker: fu,
|
|
12208
|
+
daterangepicker: pu,
|
|
12209
|
+
timepicker: mu,
|
|
12210
|
+
datetimepicker: gu,
|
|
12211
|
+
calendar: bu,
|
|
12212
|
+
pagination: hu,
|
|
12213
|
+
checkbox: yu,
|
|
12214
|
+
radio: _u,
|
|
12215
|
+
switch: ku,
|
|
12216
|
+
segmentedControl: Cu,
|
|
12217
|
+
tabs: $u,
|
|
12218
|
+
accordion: wu,
|
|
12219
|
+
tooltip: zu,
|
|
12220
|
+
tour: Su,
|
|
12221
|
+
skeleton: Bu,
|
|
12222
|
+
datatable: xu,
|
|
12223
|
+
toast: Vu,
|
|
12224
|
+
alert: Lu,
|
|
12225
|
+
emptyState: Fu,
|
|
12226
|
+
progress: Tu,
|
|
12227
|
+
badge: Iu,
|
|
12228
|
+
chip: Du,
|
|
12229
|
+
filterChips: Ru,
|
|
12230
|
+
avatar: Mu,
|
|
12231
|
+
spinner: Pu,
|
|
12232
|
+
slider: Ou,
|
|
12233
|
+
splitter: Eu,
|
|
12234
|
+
stepper: Au,
|
|
12235
|
+
wizard: Hu,
|
|
12236
|
+
timeline: Wu,
|
|
12237
|
+
rating: Ku,
|
|
12238
|
+
tree: Nu,
|
|
12239
|
+
treeselect: Gu,
|
|
12240
|
+
virtualScroller: ju
|
|
12171
12241
|
}
|
|
12172
12242
|
};
|
|
12173
12243
|
export {
|
|
12174
|
-
|
|
12175
|
-
|
|
12176
|
-
|
|
12177
|
-
|
|
12178
|
-
|
|
12179
|
-
|
|
12180
|
-
|
|
12181
|
-
|
|
12244
|
+
Pc as Accordion,
|
|
12245
|
+
Oc as AccordionItem,
|
|
12246
|
+
Hc as Alert,
|
|
12247
|
+
Qc as AppShell,
|
|
12248
|
+
_c as Autocomplete,
|
|
12249
|
+
nv as Avatar,
|
|
12250
|
+
ov as Badge,
|
|
12251
|
+
hv as Breadcrumbs,
|
|
12182
12252
|
Ze as Button,
|
|
12183
|
-
|
|
12184
|
-
|
|
12253
|
+
ac as ButtonGroup,
|
|
12254
|
+
xc as Calendar,
|
|
12185
12255
|
qt as Card,
|
|
12186
|
-
|
|
12187
|
-
|
|
12188
|
-
|
|
12189
|
-
|
|
12190
|
-
|
|
12191
|
-
|
|
12192
|
-
|
|
12193
|
-
|
|
12194
|
-
|
|
12195
|
-
|
|
12196
|
-
|
|
12197
|
-
|
|
12198
|
-
|
|
12199
|
-
|
|
12200
|
-
|
|
12201
|
-
|
|
12202
|
-
|
|
12203
|
-
|
|
12204
|
-
|
|
12205
|
-
|
|
12206
|
-
|
|
12207
|
-
|
|
12208
|
-
|
|
12209
|
-
|
|
12210
|
-
|
|
12211
|
-
|
|
12212
|
-
|
|
12213
|
-
|
|
12256
|
+
Lc as Checkbox,
|
|
12257
|
+
rv as Chip,
|
|
12258
|
+
cc as ColorPicker,
|
|
12259
|
+
kc as Combobox,
|
|
12260
|
+
Uc as CommandPalette,
|
|
12261
|
+
Gc as ConfirmDialog,
|
|
12262
|
+
qu as Container,
|
|
12263
|
+
Xc as ContextMenu,
|
|
12264
|
+
iv as DataTable,
|
|
12265
|
+
wc as DatePicker,
|
|
12266
|
+
zc as DateRangePicker,
|
|
12267
|
+
Bc as DateTimePicker,
|
|
12268
|
+
zv as DefaultTheme,
|
|
12269
|
+
yv as Divider,
|
|
12270
|
+
jc as Drawer,
|
|
12271
|
+
Yl as Dropdown,
|
|
12272
|
+
Wc as EmptyState,
|
|
12273
|
+
hc as FileUpload,
|
|
12274
|
+
lv as FilterChips,
|
|
12275
|
+
pc as Form,
|
|
12276
|
+
mc as FormField,
|
|
12277
|
+
Zu as Grid,
|
|
12278
|
+
Ju as GridItem,
|
|
12279
|
+
tc as Inline,
|
|
12280
|
+
nc as InlineEdit,
|
|
12281
|
+
oc as Input,
|
|
12282
|
+
lc as InputAddon,
|
|
12283
|
+
rc as InputGroup,
|
|
12284
|
+
Zc as KanbanBoard,
|
|
12214
12285
|
it as Link,
|
|
12215
|
-
|
|
12216
|
-
|
|
12286
|
+
vc as MaskedInput,
|
|
12287
|
+
ic as MentionInput,
|
|
12217
12288
|
ht as Menu,
|
|
12218
12289
|
Ol as Modal,
|
|
12219
|
-
|
|
12220
|
-
|
|
12221
|
-
|
|
12222
|
-
|
|
12223
|
-
|
|
12224
|
-
|
|
12225
|
-
|
|
12226
|
-
|
|
12227
|
-
|
|
12228
|
-
|
|
12229
|
-
|
|
12230
|
-
|
|
12231
|
-
|
|
12232
|
-
|
|
12233
|
-
|
|
12234
|
-
|
|
12235
|
-
|
|
12236
|
-
|
|
12237
|
-
|
|
12238
|
-
|
|
12239
|
-
|
|
12240
|
-
|
|
12241
|
-
|
|
12242
|
-
|
|
12243
|
-
|
|
12244
|
-
|
|
12245
|
-
|
|
12246
|
-
|
|
12247
|
-
|
|
12248
|
-
|
|
12249
|
-
|
|
12250
|
-
|
|
12251
|
-
|
|
12252
|
-
|
|
12253
|
-
|
|
12254
|
-
|
|
12290
|
+
Cc as MultiSelect,
|
|
12291
|
+
qc as NotificationCenter,
|
|
12292
|
+
fc as NumberInput,
|
|
12293
|
+
uc as OtpInput,
|
|
12294
|
+
_v as PageHeader,
|
|
12295
|
+
Vc as Pagination,
|
|
12296
|
+
dc as PasswordInput,
|
|
12297
|
+
Nc as Popover,
|
|
12298
|
+
av as Progress,
|
|
12299
|
+
Tc as RadioButton,
|
|
12300
|
+
Fc as RadioGroup,
|
|
12301
|
+
gv as Rating,
|
|
12302
|
+
bc as RichTextEditor,
|
|
12303
|
+
sc as SearchInput,
|
|
12304
|
+
Qu as Section,
|
|
12305
|
+
Ic as SegmentedControl,
|
|
12306
|
+
yc as Select,
|
|
12307
|
+
tv as Skeleton,
|
|
12308
|
+
dv as Slider,
|
|
12309
|
+
sv as Spinner,
|
|
12310
|
+
Yc as SplitButton,
|
|
12311
|
+
uv as Splitter,
|
|
12312
|
+
cv as SplitterPanel,
|
|
12313
|
+
ec as Stack,
|
|
12314
|
+
vv as Stepper,
|
|
12315
|
+
Kc as Switch,
|
|
12316
|
+
Rc as Tab,
|
|
12317
|
+
Mc as TabPanel,
|
|
12318
|
+
Dc as Tabs,
|
|
12319
|
+
$c as TagInput,
|
|
12320
|
+
gc as Textarea,
|
|
12321
|
+
Sc as TimePicker,
|
|
12322
|
+
mv as Timeline,
|
|
12323
|
+
Ec as Toast,
|
|
12324
|
+
Ac as ToastContainer,
|
|
12325
|
+
Jc as Tooltip,
|
|
12326
|
+
ev as Tour,
|
|
12255
12327
|
Ei as Tree,
|
|
12256
|
-
|
|
12257
|
-
|
|
12258
|
-
|
|
12259
|
-
|
|
12260
|
-
|
|
12261
|
-
|
|
12328
|
+
bv as TreeSelect,
|
|
12329
|
+
kv as VirtualScroller,
|
|
12330
|
+
wv as VueForge,
|
|
12331
|
+
fv as Wizard,
|
|
12332
|
+
pv as WizardStep,
|
|
12333
|
+
$v as getTheme,
|
|
12262
12334
|
xt as setTheme,
|
|
12263
|
-
|
|
12335
|
+
Cv as updateTheme
|
|
12264
12336
|
};
|