@rocketui/vue 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rocket-ui-vue.js +112 -112
- package/dist/rocket-ui-vue.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/dist/types/main.d.ts +17 -34
- package/package.json +1 -1
package/dist/rocket-ui-vue.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as N, computed as w, openBlock as p, createElementBlock as _, normalizeClass as k, unref as x, normalizeStyle as Ye, toDisplayString as C, createElementVNode as
|
|
1
|
+
import { defineComponent as N, computed as w, openBlock as p, createElementBlock as _, normalizeClass as k, unref as x, normalizeStyle as Ye, toDisplayString as C, createElementVNode as b, createVNode as ge, createBlock as L, renderSlot as O, createCommentVNode as z, mergeProps as We, withModifiers as W, reactive as ee, watch as F, ref as E, Fragment as X, renderList as le, withDirectives as Pe, withKeys as ye, vModelText as Fe, onMounted as Ue, withCtx as Ze, createTextVNode as Qe, useCssVars as Xe, watchEffect as Ke } from "vue";
|
|
2
2
|
const B = /* @__PURE__ */ N({
|
|
3
|
-
__name: "
|
|
3
|
+
__name: "RIcon",
|
|
4
4
|
props: {
|
|
5
5
|
name: { default: "" },
|
|
6
6
|
kind: { default: "round" },
|
|
@@ -26,7 +26,7 @@ const B = /* @__PURE__ */ N({
|
|
|
26
26
|
key: 0,
|
|
27
27
|
class: "close"
|
|
28
28
|
}, hn = /* @__PURE__ */ N({
|
|
29
|
-
__name: "
|
|
29
|
+
__name: "RAlert",
|
|
30
30
|
props: {
|
|
31
31
|
type: { default: "info" },
|
|
32
32
|
title: { default: "" },
|
|
@@ -55,15 +55,15 @@ const B = /* @__PURE__ */ N({
|
|
|
55
55
|
return (a, c) => (p(), _("div", {
|
|
56
56
|
class: k(x(l))
|
|
57
57
|
}, [
|
|
58
|
-
|
|
58
|
+
b("div", Ge, [
|
|
59
59
|
ge(B, {
|
|
60
60
|
name: x(o),
|
|
61
61
|
size: x(s)
|
|
62
62
|
}, null, 8, ["name", "size"])
|
|
63
63
|
]),
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
b("div", Je, [
|
|
65
|
+
b("p", qe, C(e.title), 1),
|
|
66
|
+
b("p", et, C(e.description), 1)
|
|
67
67
|
]),
|
|
68
68
|
e.closable ? (p(), _("div", tt, [
|
|
69
69
|
a.$slots.close ? O(a.$slots, "close", { key: 1 }) : (p(), L(B, {
|
|
@@ -77,7 +77,7 @@ const B = /* @__PURE__ */ N({
|
|
|
77
77
|
], 2));
|
|
78
78
|
}
|
|
79
79
|
}), xe = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjciIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyNyAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjQ5OTMgMTRDMTcuMTgyNyAxNCAyMC4xNjYgMTEuMDE2NyAyMC4xNjYgNy4zMzMzNEMyMC4xNjYgMy42NSAxNy4xODI3IDAuNjY2NjcyIDEzLjQ5OTMgMC42NjY2NzJDOS44MTYwMiAwLjY2NjY3MiA2LjgzMjY4IDMuNjUgNi44MzI2OCA3LjMzMzM0QzYuODMyNjggMTEuMDE2NyA5LjgxNjAyIDE0IDEzLjQ5OTMgMTRaTTEzLjQ5OTMgMTcuMzMzM0M5LjA0OTM1IDE3LjMzMzMgMC4xNjYwMTYgMTkuNTY2NyAwLjE2NjAxNiAyNFYyNS42NjY3QzAuMTY2MDE2IDI2LjU4MzMgMC45MTYwMTYgMjcuMzMzMyAxLjgzMjY4IDI3LjMzMzNIMjUuMTY2QzI2LjA4MjcgMjcuMzMzMyAyNi44MzI3IDI2LjU4MzMgMjYuODMyNyAyNS42NjY3VjI0QzI2LjgzMjcgMTkuNTY2NyAxNy45NDkzIDE3LjMzMzMgMTMuNDk5MyAxNy4zMzMzWiIgZmlsbD0iIzRDNUJFMSIvPgo8L3N2Zz4K", nt = { class: "avatar__wrapper" }, ot = ["alt", "src"], mn = /* @__PURE__ */ N({
|
|
80
|
-
__name: "
|
|
80
|
+
__name: "RAvatar",
|
|
81
81
|
props: {
|
|
82
82
|
type: { default: "image" },
|
|
83
83
|
src: { default: xe },
|
|
@@ -95,7 +95,7 @@ const B = /* @__PURE__ */ N({
|
|
|
95
95
|
return a.length === 1 ? a[0].substring(0, 2) : `${a[0].charAt(0)}${a[1].charAt(0)}`;
|
|
96
96
|
};
|
|
97
97
|
return (i, a) => (p(), _("div", nt, [
|
|
98
|
-
|
|
98
|
+
b("div", {
|
|
99
99
|
class: k(x(e))
|
|
100
100
|
}, [
|
|
101
101
|
n.type === "text" ? (p(), _("p", {
|
|
@@ -119,7 +119,7 @@ const B = /* @__PURE__ */ N({
|
|
|
119
119
|
]));
|
|
120
120
|
}
|
|
121
121
|
}), lt = { class: "badge-wrapper group" }, gn = /* @__PURE__ */ N({
|
|
122
|
-
__name: "
|
|
122
|
+
__name: "RBadge",
|
|
123
123
|
props: {
|
|
124
124
|
variant: { default: "primary" },
|
|
125
125
|
placement: { default: "right" },
|
|
@@ -141,7 +141,7 @@ const B = /* @__PURE__ */ N({
|
|
|
141
141
|
[`badge--${n.variant}`]: n.variant
|
|
142
142
|
}));
|
|
143
143
|
return (l, o) => (p(), _("div", lt, [
|
|
144
|
-
|
|
144
|
+
b("span", {
|
|
145
145
|
class: k(x(e)),
|
|
146
146
|
onClick: o[0] || (o[0] = (s) => l.$emit("click"))
|
|
147
147
|
}, C(n.content), 3),
|
|
@@ -149,7 +149,7 @@ const B = /* @__PURE__ */ N({
|
|
|
149
149
|
]));
|
|
150
150
|
}
|
|
151
151
|
}), st = ["disabled"], at = /* @__PURE__ */ N({
|
|
152
|
-
__name: "
|
|
152
|
+
__name: "RButton",
|
|
153
153
|
props: {
|
|
154
154
|
variant: { default: "primary" },
|
|
155
155
|
loading: { type: Boolean, default: !1 },
|
|
@@ -210,7 +210,7 @@ const B = /* @__PURE__ */ N({
|
|
|
210
210
|
key: 1,
|
|
211
211
|
class: "checkbox-texts__hint"
|
|
212
212
|
}, _n = /* @__PURE__ */ N({
|
|
213
|
-
__name: "
|
|
213
|
+
__name: "RCheckbox",
|
|
214
214
|
props: {
|
|
215
215
|
id: { default: "" },
|
|
216
216
|
modelValue: { default: !1 },
|
|
@@ -259,8 +259,8 @@ const B = /* @__PURE__ */ N({
|
|
|
259
259
|
immediate: !0
|
|
260
260
|
}
|
|
261
261
|
), (c, u) => (p(), _("div", it, [
|
|
262
|
-
|
|
263
|
-
|
|
262
|
+
b("div", rt, [
|
|
263
|
+
b("input", {
|
|
264
264
|
id: e.id,
|
|
265
265
|
checked: l.checked,
|
|
266
266
|
class: "checkbox-container__input",
|
|
@@ -269,7 +269,7 @@ const B = /* @__PURE__ */ N({
|
|
|
269
269
|
type: "checkbox",
|
|
270
270
|
onChange: a
|
|
271
271
|
}, null, 40, ct),
|
|
272
|
-
|
|
272
|
+
b("div", {
|
|
273
273
|
class: k(x(i)),
|
|
274
274
|
"data-disabled": e.disabled
|
|
275
275
|
}, [
|
|
@@ -279,8 +279,8 @@ const B = /* @__PURE__ */ N({
|
|
|
279
279
|
}, null, 8, ["name"])
|
|
280
280
|
], 10, dt)
|
|
281
281
|
]),
|
|
282
|
-
|
|
283
|
-
|
|
282
|
+
b("div", ut, [
|
|
283
|
+
b("label", {
|
|
284
284
|
class: "checkbox-texts__label",
|
|
285
285
|
"data-disabled": e.disabled,
|
|
286
286
|
for: e.id
|
|
@@ -290,7 +290,7 @@ const B = /* @__PURE__ */ N({
|
|
|
290
290
|
]));
|
|
291
291
|
}
|
|
292
292
|
}), mt = /* @__PURE__ */ N({
|
|
293
|
-
__name: "
|
|
293
|
+
__name: "RChip",
|
|
294
294
|
props: {
|
|
295
295
|
variant: { default: "primary" },
|
|
296
296
|
size: { default: "medium" },
|
|
@@ -316,7 +316,7 @@ const B = /* @__PURE__ */ N({
|
|
|
316
316
|
return (a, c) => (p(), _("div", {
|
|
317
317
|
class: k(x(l))
|
|
318
318
|
}, [
|
|
319
|
-
|
|
319
|
+
b("div", {
|
|
320
320
|
class: "chip__content",
|
|
321
321
|
onClick: c[0] || (c[0] = W((u) => s(u), ["stop"]))
|
|
322
322
|
}, [
|
|
@@ -327,7 +327,7 @@ const B = /* @__PURE__ */ N({
|
|
|
327
327
|
name: e.prependIcon,
|
|
328
328
|
size: x(o)
|
|
329
329
|
}, null, 8, ["aria-disabled", "name", "size"])) : z("", !0),
|
|
330
|
-
|
|
330
|
+
b("span", null, C(e.label), 1)
|
|
331
331
|
]),
|
|
332
332
|
e.appendIcon ? (p(), L(B, {
|
|
333
333
|
key: 0,
|
|
@@ -342,11 +342,11 @@ const B = /* @__PURE__ */ N({
|
|
|
342
342
|
}), gt = { class: "dropdown" }, _t = {
|
|
343
343
|
key: 0,
|
|
344
344
|
class: "select__tags"
|
|
345
|
-
},
|
|
345
|
+
}, vt = {
|
|
346
346
|
key: 1,
|
|
347
347
|
class: "select__multiple"
|
|
348
|
-
},
|
|
349
|
-
__name: "
|
|
348
|
+
}, bt = ["disabled", "placeholder"], yt = ["onClick"], xt = { style: { display: "flex", "align-items": "center" } }, vn = /* @__PURE__ */ N({
|
|
349
|
+
__name: "RDropdown",
|
|
350
350
|
props: {
|
|
351
351
|
placeholder: { default: "" },
|
|
352
352
|
options: { default: () => [] },
|
|
@@ -361,10 +361,10 @@ const B = /* @__PURE__ */ N({
|
|
|
361
361
|
emits: ["update:modelValue"],
|
|
362
362
|
setup(t, { emit: n }) {
|
|
363
363
|
const e = t, l = E(""), o = ee([]), s = E(!1), i = E(""), a = E(null), c = E(null), u = (h) => {
|
|
364
|
-
var f, r,
|
|
364
|
+
var f, r, v, $, M, A;
|
|
365
365
|
if (!e.disabled) {
|
|
366
366
|
if (h.stopPropagation(), s.value = !s.value, s.value) {
|
|
367
|
-
(f = a.value) == null || f.classList.add("select--active"), (r = a.value) == null || r.focus(), (
|
|
367
|
+
(f = a.value) == null || f.classList.add("select--active"), (r = a.value) == null || r.focus(), (v = c.value) == null || v.focus(), document.addEventListener("click", u);
|
|
368
368
|
return;
|
|
369
369
|
}
|
|
370
370
|
($ = a.value) == null || $.classList.remove("select--active"), (M = a.value) == null || M.blur(), (A = c.value) == null || A.blur(), document.removeEventListener("click", u);
|
|
@@ -380,28 +380,28 @@ const B = /* @__PURE__ */ N({
|
|
|
380
380
|
if (h instanceof KeyboardEvent && h.key !== "Backspace" || i.value !== "")
|
|
381
381
|
return;
|
|
382
382
|
h.stopPropagation();
|
|
383
|
-
const r = o.findIndex((
|
|
383
|
+
const r = o.findIndex((v) => v.value === f.value);
|
|
384
384
|
o.splice(r, 1);
|
|
385
385
|
}, y = (h) => {
|
|
386
|
-
var
|
|
386
|
+
var v;
|
|
387
387
|
if (!e.taggable)
|
|
388
388
|
return;
|
|
389
389
|
h.stopPropagation();
|
|
390
390
|
const f = i.value;
|
|
391
391
|
if (f === "")
|
|
392
392
|
return;
|
|
393
|
-
e.options.find(($) => $.label === f) || (o.push({ value: f, label: f }), i.value = "", (
|
|
393
|
+
e.options.find(($) => $.label === f) || (o.push({ value: f, label: f }), i.value = "", (v = c.value) == null || v.focus());
|
|
394
394
|
}, g = w(() => e.options.filter((f) => f.label.toLowerCase().includes(i.value.toLowerCase())));
|
|
395
395
|
return F(o, (h) => {
|
|
396
396
|
n("update:modelValue", h);
|
|
397
397
|
}), (h, f) => (p(), _("div", gt, [
|
|
398
|
-
|
|
398
|
+
b("div", {
|
|
399
399
|
ref_key: "select",
|
|
400
400
|
ref: a,
|
|
401
401
|
class: k({ select: !0, "select--disabled": e.disabled }),
|
|
402
402
|
onClick: u
|
|
403
403
|
}, [
|
|
404
|
-
|
|
404
|
+
b("div", {
|
|
405
405
|
class: k({
|
|
406
406
|
"select__prepend-icon": !0,
|
|
407
407
|
"select__prepend-icon--active": s.value
|
|
@@ -414,8 +414,8 @@ const B = /* @__PURE__ */ N({
|
|
|
414
414
|
}, null, 8, ["name"]))
|
|
415
415
|
], 2),
|
|
416
416
|
e.taggable ? (p(), _("div", _t, [
|
|
417
|
-
(p(!0), _(X, null, le(o, (r,
|
|
418
|
-
key:
|
|
417
|
+
(p(!0), _(X, null, le(o, (r, v) => (p(), L(mt, {
|
|
418
|
+
key: v,
|
|
419
419
|
appendIcon: "close",
|
|
420
420
|
class: "select__tags__chip",
|
|
421
421
|
label: r.label,
|
|
@@ -423,10 +423,10 @@ const B = /* @__PURE__ */ N({
|
|
|
423
423
|
onClickIcon: ($) => d($, r)
|
|
424
424
|
}, null, 8, ["label", "onClickIcon"]))), 128))
|
|
425
425
|
])) : z("", !0),
|
|
426
|
-
e.multiple ? (p(), _("div",
|
|
427
|
-
(p(!0), _(X, null, le(o, (r,
|
|
426
|
+
e.multiple ? (p(), _("div", vt, [
|
|
427
|
+
(p(!0), _(X, null, le(o, (r, v) => (p(), _("p", { key: v }, C(r.label + ","), 1))), 128))
|
|
428
428
|
])) : z("", !0),
|
|
429
|
-
Pe(
|
|
429
|
+
Pe(b("input", {
|
|
430
430
|
id: "select",
|
|
431
431
|
ref_key: "input",
|
|
432
432
|
ref: c,
|
|
@@ -439,10 +439,10 @@ const B = /* @__PURE__ */ N({
|
|
|
439
439
|
f[1] || (f[1] = ye((r) => d(r, o[o.length - 1]), ["backspace"])),
|
|
440
440
|
f[2] || (f[2] = ye((r) => y(r), ["enter"]))
|
|
441
441
|
]
|
|
442
|
-
}, null, 40,
|
|
442
|
+
}, null, 40, bt), [
|
|
443
443
|
[Fe, i.value]
|
|
444
444
|
]),
|
|
445
|
-
|
|
445
|
+
b("div", {
|
|
446
446
|
class: k({
|
|
447
447
|
"select__append-icon": !0,
|
|
448
448
|
"select__append-icon--active": s.value
|
|
@@ -455,7 +455,7 @@ const B = /* @__PURE__ */ N({
|
|
|
455
455
|
}, null, 8, ["name"]))
|
|
456
456
|
], 2)
|
|
457
457
|
], 2),
|
|
458
|
-
|
|
458
|
+
b("ul", {
|
|
459
459
|
class: k({ "select-options": !0, "select-options--active": s.value })
|
|
460
460
|
}, [
|
|
461
461
|
(p(!0), _(X, null, le(x(g), (r) => (p(), _("li", {
|
|
@@ -464,9 +464,9 @@ const B = /* @__PURE__ */ N({
|
|
|
464
464
|
"select-options__option": !0,
|
|
465
465
|
"select-options__option--active": r.label === l.value || (o == null ? void 0 : o.includes(r))
|
|
466
466
|
}),
|
|
467
|
-
onClick: (
|
|
467
|
+
onClick: (v) => m(v, r)
|
|
468
468
|
}, [
|
|
469
|
-
|
|
469
|
+
b("div", xt, [
|
|
470
470
|
O(h.$slots, "option-prepend"),
|
|
471
471
|
h.$slots["option-prepend"] ? z("", !0) : (p(), L(B, {
|
|
472
472
|
key: 0,
|
|
@@ -476,7 +476,7 @@ const B = /* @__PURE__ */ N({
|
|
|
476
476
|
}),
|
|
477
477
|
name: "face"
|
|
478
478
|
}, null, 8, ["class"])),
|
|
479
|
-
|
|
479
|
+
b("p", {
|
|
480
480
|
class: k({
|
|
481
481
|
"select-options__option__label": !0,
|
|
482
482
|
"select-options__option__label--active": r.label === l.value || (o == null ? void 0 : o.includes(r))
|
|
@@ -496,7 +496,7 @@ const B = /* @__PURE__ */ N({
|
|
|
496
496
|
]));
|
|
497
497
|
}
|
|
498
498
|
}), kt = ["id", "for"], Ae = /* @__PURE__ */ N({
|
|
499
|
-
__name: "
|
|
499
|
+
__name: "RLabel",
|
|
500
500
|
props: {
|
|
501
501
|
id: { default: "" },
|
|
502
502
|
for: { default: "" },
|
|
@@ -515,8 +515,8 @@ const B = /* @__PURE__ */ N({
|
|
|
515
515
|
}, Mt = {
|
|
516
516
|
key: 1,
|
|
517
517
|
class: "snackbar__close"
|
|
518
|
-
},
|
|
519
|
-
__name: "
|
|
518
|
+
}, bn = /* @__PURE__ */ N({
|
|
519
|
+
__name: "RSnackbar",
|
|
520
520
|
props: {
|
|
521
521
|
text: { default: "" },
|
|
522
522
|
actionText: { default: "" },
|
|
@@ -550,7 +550,7 @@ const B = /* @__PURE__ */ N({
|
|
|
550
550
|
[e.left ? "snackbar--left" : "snackbar--right"]: !0
|
|
551
551
|
})
|
|
552
552
|
}, [
|
|
553
|
-
|
|
553
|
+
b("div", wt, C(e.text), 1),
|
|
554
554
|
e.showAction ? (p(), _("div", $t, [
|
|
555
555
|
O(i.$slots, "action"),
|
|
556
556
|
i.$slots.action ? z("", !0) : (p(), L(at, {
|
|
@@ -576,14 +576,14 @@ const B = /* @__PURE__ */ N({
|
|
|
576
576
|
])) : z("", !0)
|
|
577
577
|
], 2));
|
|
578
578
|
}
|
|
579
|
-
}), Tt = { class: "switch-container" }, zt = ["id", "checked"], Ct = /* @__PURE__ */
|
|
579
|
+
}), Tt = { class: "switch-container" }, zt = ["id", "checked"], Ct = /* @__PURE__ */ b("span", { class: "slider round" }, null, -1), It = ["id", "for"], Lt = {
|
|
580
580
|
key: 0,
|
|
581
581
|
class: "switch-texts__error"
|
|
582
582
|
}, At = {
|
|
583
583
|
key: 1,
|
|
584
584
|
class: "switch-texts__hint"
|
|
585
585
|
}, yn = /* @__PURE__ */ N({
|
|
586
|
-
__name: "
|
|
586
|
+
__name: "RSwitch",
|
|
587
587
|
props: {
|
|
588
588
|
id: { default: "switch" },
|
|
589
589
|
modelValue: { default: !1 },
|
|
@@ -616,10 +616,10 @@ const B = /* @__PURE__ */ N({
|
|
|
616
616
|
immediate: !0
|
|
617
617
|
}
|
|
618
618
|
), (i, a) => (p(), _("div", Tt, [
|
|
619
|
-
|
|
619
|
+
b("div", {
|
|
620
620
|
class: k(x(o))
|
|
621
621
|
}, [
|
|
622
|
-
|
|
622
|
+
b("input", {
|
|
623
623
|
id: e.id,
|
|
624
624
|
checked: l.checked,
|
|
625
625
|
class: "switch__input",
|
|
@@ -628,13 +628,13 @@ const B = /* @__PURE__ */ N({
|
|
|
628
628
|
}, null, 40, zt),
|
|
629
629
|
Ct
|
|
630
630
|
], 2),
|
|
631
|
-
|
|
631
|
+
b("div", {
|
|
632
632
|
class: k({
|
|
633
633
|
"switch-texts": !0,
|
|
634
634
|
[`switch-texts--${e.size}`]: !0
|
|
635
635
|
})
|
|
636
636
|
}, [
|
|
637
|
-
|
|
637
|
+
b("label", {
|
|
638
638
|
id: e.id,
|
|
639
639
|
class: "switch-texts__label",
|
|
640
640
|
for: e.id
|
|
@@ -649,7 +649,7 @@ const Rt = ["aria-disabled", "aria-selected", "disabled"], Nt = {
|
|
|
649
649
|
key: 1,
|
|
650
650
|
class: "tab-item__label"
|
|
651
651
|
}, Dt = /* @__PURE__ */ N({
|
|
652
|
-
__name: "
|
|
652
|
+
__name: "RTabItem",
|
|
653
653
|
props: {
|
|
654
654
|
id: null,
|
|
655
655
|
variant: { default: se.DEFAULT },
|
|
@@ -686,7 +686,7 @@ const Rt = ["aria-disabled", "aria-selected", "disabled"], Nt = {
|
|
|
686
686
|
], 10, Rt));
|
|
687
687
|
}
|
|
688
688
|
}), Bt = { class: "tabs-wrapper" }, jt = { class: "tab-content" }, xn = /* @__PURE__ */ N({
|
|
689
|
-
__name: "
|
|
689
|
+
__name: "RTabs",
|
|
690
690
|
props: {
|
|
691
691
|
tabs: { default: () => [] },
|
|
692
692
|
scrollable: { type: Boolean, default: !1 }
|
|
@@ -697,8 +697,8 @@ const Rt = ["aria-disabled", "aria-selected", "disabled"], Nt = {
|
|
|
697
697
|
"tabs--scrollable": n.scrollable
|
|
698
698
|
}));
|
|
699
699
|
return (o, s) => (p(), _(X, null, [
|
|
700
|
-
|
|
701
|
-
|
|
700
|
+
b("div", Bt, [
|
|
701
|
+
b("div", {
|
|
702
702
|
class: k(x(l))
|
|
703
703
|
}, [
|
|
704
704
|
(p(!0), _(X, null, le(n.tabs, (i, a) => (p(), L(Dt, {
|
|
@@ -713,7 +713,7 @@ const Rt = ["aria-disabled", "aria-selected", "disabled"], Nt = {
|
|
|
713
713
|
}, null, 8, ["id", "modelValue", "active", "disabled", "icon", "label"]))), 128))
|
|
714
714
|
], 2)
|
|
715
715
|
]),
|
|
716
|
-
|
|
716
|
+
b("div", jt, [
|
|
717
717
|
O(o.$slots, "tab", { activeTab: e.value })
|
|
718
718
|
])
|
|
719
719
|
], 64));
|
|
@@ -725,7 +725,7 @@ const Rt = ["aria-disabled", "aria-selected", "disabled"], Nt = {
|
|
|
725
725
|
key: 2,
|
|
726
726
|
class: "textarea__hint"
|
|
727
727
|
}, kn = /* @__PURE__ */ N({
|
|
728
|
-
__name: "
|
|
728
|
+
__name: "RTextArea",
|
|
729
729
|
props: {
|
|
730
730
|
id: { default: "" },
|
|
731
731
|
modelValue: { default: "" },
|
|
@@ -759,7 +759,7 @@ const Rt = ["aria-disabled", "aria-selected", "disabled"], Nt = {
|
|
|
759
759
|
for: "textarea",
|
|
760
760
|
text: e.label
|
|
761
761
|
}, null, 8, ["text"])) : z("", !0),
|
|
762
|
-
|
|
762
|
+
b("textarea", {
|
|
763
763
|
id: e.id,
|
|
764
764
|
class: k(["textarea", {
|
|
765
765
|
"textarea--error": e.errorMsg,
|
|
@@ -781,7 +781,7 @@ const Rt = ["aria-disabled", "aria-selected", "disabled"], Nt = {
|
|
|
781
781
|
key: 0,
|
|
782
782
|
class: "textfield__hint"
|
|
783
783
|
}, wn = /* @__PURE__ */ N({
|
|
784
|
-
__name: "
|
|
784
|
+
__name: "RTextfield",
|
|
785
785
|
props: {
|
|
786
786
|
id: { default: "" },
|
|
787
787
|
type: { default: "text" },
|
|
@@ -842,7 +842,7 @@ const Rt = ["aria-disabled", "aria-selected", "disabled"], Nt = {
|
|
|
842
842
|
}), r = w(() => {
|
|
843
843
|
const { appendIcon: T, type: R } = e;
|
|
844
844
|
return g.value ? "error_outline" : h.value && ["text", "email"].includes(R) ? "clear" : R === "password" && s.value === "password" ? "visibility" : R === "password" && s.value === "text" ? "visibility_off" : T;
|
|
845
|
-
}),
|
|
845
|
+
}), v = () => {
|
|
846
846
|
a.value = !0, n("focus", {
|
|
847
847
|
value: o.value
|
|
848
848
|
});
|
|
@@ -881,7 +881,7 @@ const Rt = ["aria-disabled", "aria-selected", "disabled"], Nt = {
|
|
|
881
881
|
n("update:modelValue", T);
|
|
882
882
|
}
|
|
883
883
|
), (T, R) => (p(), _("fieldset", null, [
|
|
884
|
-
|
|
884
|
+
b("div", St, [
|
|
885
885
|
ge(Ae, {
|
|
886
886
|
id: e.id,
|
|
887
887
|
class: k({
|
|
@@ -890,8 +890,8 @@ const Rt = ["aria-disabled", "aria-selected", "disabled"], Nt = {
|
|
|
890
890
|
for: e.id,
|
|
891
891
|
text: e.label
|
|
892
892
|
}, null, 8, ["id", "for", "text"]),
|
|
893
|
-
|
|
894
|
-
|
|
893
|
+
b("div", Yt, [
|
|
894
|
+
b("div", {
|
|
895
895
|
class: k(x(u))
|
|
896
896
|
}, [
|
|
897
897
|
x(f) ? (p(), L(B, {
|
|
@@ -900,7 +900,7 @@ const Rt = ["aria-disabled", "aria-selected", "disabled"], Nt = {
|
|
|
900
900
|
name: x(f),
|
|
901
901
|
size: 16
|
|
902
902
|
}, null, 8, ["class", "name"])) : z("", !0),
|
|
903
|
-
|
|
903
|
+
b("input", {
|
|
904
904
|
id: e.id,
|
|
905
905
|
ref_key: "inputRef",
|
|
906
906
|
ref: l,
|
|
@@ -909,7 +909,7 @@ const Rt = ["aria-disabled", "aria-selected", "disabled"], Nt = {
|
|
|
909
909
|
type: s.value,
|
|
910
910
|
value: o.value,
|
|
911
911
|
onBlur: $,
|
|
912
|
-
onFocus:
|
|
912
|
+
onFocus: v,
|
|
913
913
|
onInput: j
|
|
914
914
|
}, null, 40, Wt),
|
|
915
915
|
x(r) ? (p(), L(B, {
|
|
@@ -921,7 +921,7 @@ const Rt = ["aria-disabled", "aria-selected", "disabled"], Nt = {
|
|
|
921
921
|
onClick: M
|
|
922
922
|
}, null, 8, ["class", "color", "name"])) : z("", !0)
|
|
923
923
|
], 2),
|
|
924
|
-
|
|
924
|
+
b("div", Pt, C(e.errorMsg), 1),
|
|
925
925
|
e.errorMsg ? z("", !0) : (p(), _("div", Ft, C(e.hint), 1))
|
|
926
926
|
])
|
|
927
927
|
])
|
|
@@ -973,7 +973,7 @@ const Ut = async (t, n, e) => {
|
|
|
973
973
|
const { placement: l = "bottom", strategy: o = "absolute", middleware: s = [], platform: i } = e, a = s.filter(Boolean), c = await (i.isRTL == null ? void 0 : i.isRTL(n));
|
|
974
974
|
let u = await i.getElementRects({ reference: t, floating: n, strategy: o }), { x: m, y: d } = ke(u, l, c), y = l, g = {}, h = 0;
|
|
975
975
|
for (let f = 0; f < a.length; f++) {
|
|
976
|
-
const { name: r, fn:
|
|
976
|
+
const { name: r, fn: v } = a[f], { x: $, y: M, data: A, reset: j } = await v({ x: m, y: d, initialPlacement: l, placement: y, strategy: o, middlewareData: g, rects: u, platform: i, elements: { reference: t, floating: n } });
|
|
977
977
|
m = $ ?? m, d = M ?? d, g = { ...g, [r]: { ...g[r], ...A } }, j && h <= 50 && (h++, typeof j == "object" && (j.placement && (y = j.placement), j.rects && (u = j.rects === !0 ? await i.getElementRects({ reference: t, floating: n, strategy: o }) : j.rects), { x: m, y: d } = ke(u, y, c)), f = -1);
|
|
978
978
|
}
|
|
979
979
|
return { x: m, y: d, placement: y, strategy: o, middlewareData: g };
|
|
@@ -989,8 +989,8 @@ function ae(t) {
|
|
|
989
989
|
async function ie(t, n) {
|
|
990
990
|
var e;
|
|
991
991
|
n === void 0 && (n = {});
|
|
992
|
-
const { x: l, y: o, platform: s, rects: i, elements: a, strategy: c } = t, { boundary: u = "clippingAncestors", rootBoundary: m = "viewport", elementContext: d = "floating", altBoundary: y = !1, padding: g = 0 } = n, h = Re(g), f = a[y ? d === "floating" ? "reference" : "floating" : d], r = ae(await s.getClippingRect({ element: (e = await (s.isElement == null ? void 0 : s.isElement(f))) == null || e ? f : f.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(a.floating)), boundary: u, rootBoundary: m, strategy: c })),
|
|
993
|
-
return { top: r.top -
|
|
992
|
+
const { x: l, y: o, platform: s, rects: i, elements: a, strategy: c } = t, { boundary: u = "clippingAncestors", rootBoundary: m = "viewport", elementContext: d = "floating", altBoundary: y = !1, padding: g = 0 } = n, h = Re(g), f = a[y ? d === "floating" ? "reference" : "floating" : d], r = ae(await s.getClippingRect({ element: (e = await (s.isElement == null ? void 0 : s.isElement(f))) == null || e ? f : f.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(a.floating)), boundary: u, rootBoundary: m, strategy: c })), v = ae(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: d === "floating" ? { ...i.floating, x: l, y: o } : i.reference, offsetParent: await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a.floating)), strategy: c }) : i[d]);
|
|
993
|
+
return { top: r.top - v.top + h.top, bottom: v.bottom - r.bottom + h.bottom, left: r.left - v.left + h.left, right: v.right - r.right + h.right };
|
|
994
994
|
}
|
|
995
995
|
const Zt = Math.min, Qt = Math.max;
|
|
996
996
|
function he(t, n, e) {
|
|
@@ -1000,10 +1000,10 @@ const Xt = (t) => ({ name: "arrow", options: t, async fn(n) {
|
|
|
1000
1000
|
const { element: e, padding: l = 0 } = t ?? {}, { x: o, y: s, placement: i, rects: a, platform: c } = n;
|
|
1001
1001
|
if (e == null)
|
|
1002
1002
|
return {};
|
|
1003
|
-
const u = Re(l), m = { x: o, y: s }, d = ne(i), y = de(i), g = _e(d), h = await c.getDimensions(e), f = d === "y" ? "top" : "left", r = d === "y" ? "bottom" : "right",
|
|
1003
|
+
const u = Re(l), m = { x: o, y: s }, d = ne(i), y = de(i), g = _e(d), h = await c.getDimensions(e), f = d === "y" ? "top" : "left", r = d === "y" ? "bottom" : "right", v = a.reference[g] + a.reference[d] - m[d] - a.floating[g], $ = m[d] - a.reference[d], M = await (c.getOffsetParent == null ? void 0 : c.getOffsetParent(e));
|
|
1004
1004
|
let A = M ? d === "y" ? M.clientHeight || 0 : M.clientWidth || 0 : 0;
|
|
1005
1005
|
A === 0 && (A = a.floating[g]);
|
|
1006
|
-
const j =
|
|
1006
|
+
const j = v / 2 - $ / 2, T = u[f], R = A - h[g] - u[r], I = A / 2 - h[g] / 2 + j, D = he(T, I, R), Q = (y === "start" ? u[f] : u[r]) > 0 && I !== D && a.reference[g] <= a.floating[g];
|
|
1007
1007
|
return { [d]: m[d] - (Q ? I < T ? T - I : R - I : 0), data: { [d]: D, centerOffset: I - D } };
|
|
1008
1008
|
} }), Kt = { left: "right", right: "left", bottom: "top", top: "bottom" };
|
|
1009
1009
|
function re(t) {
|
|
@@ -1027,7 +1027,7 @@ const qt = function(t) {
|
|
|
1027
1027
|
const { placement: l, middlewareData: o, rects: s, initialPlacement: i, platform: a, elements: c } = n, { mainAxis: u = !0, crossAxis: m = !0, fallbackPlacements: d, fallbackStrategy: y = "bestFit", flipAlignment: g = !0, ...h } = t, f = te(l), r = d || (f === i || !g ? [re(i)] : function(I) {
|
|
1028
1028
|
const D = re(I);
|
|
1029
1029
|
return [we(I), D, we(D)];
|
|
1030
|
-
}(i)),
|
|
1030
|
+
}(i)), v = [i, ...r], $ = await ie(n, h), M = [];
|
|
1031
1031
|
let A = ((e = o.flip) == null ? void 0 : e.overflows) || [];
|
|
1032
1032
|
if (u && M.push($[f]), m) {
|
|
1033
1033
|
const { main: I, cross: D } = Gt(l, s, await (a.isRTL == null ? void 0 : a.isRTL(c.floating)));
|
|
@@ -1035,15 +1035,15 @@ const qt = function(t) {
|
|
|
1035
1035
|
}
|
|
1036
1036
|
if (A = [...A, { placement: l, overflows: M }], !M.every((I) => I <= 0)) {
|
|
1037
1037
|
var j, T;
|
|
1038
|
-
const I = ((j = (T = o.flip) == null ? void 0 : T.index) != null ? j : 0) + 1, D =
|
|
1038
|
+
const I = ((j = (T = o.flip) == null ? void 0 : T.index) != null ? j : 0) + 1, D = v[I];
|
|
1039
1039
|
if (D)
|
|
1040
1040
|
return { data: { index: I, overflows: A }, reset: { placement: D } };
|
|
1041
1041
|
let Q = "bottom";
|
|
1042
1042
|
switch (y) {
|
|
1043
1043
|
case "bestFit": {
|
|
1044
1044
|
var R;
|
|
1045
|
-
const
|
|
1046
|
-
|
|
1045
|
+
const be = (R = A.map((oe) => [oe, oe.overflows.filter((G) => G > 0).reduce((G, Se) => G + Se, 0)]).sort((oe, G) => oe[1] - G[1])[0]) == null ? void 0 : R[0].placement;
|
|
1046
|
+
be && (Q = be);
|
|
1047
1047
|
break;
|
|
1048
1048
|
}
|
|
1049
1049
|
case "initialPlacement":
|
|
@@ -1082,8 +1082,8 @@ const en = function(t) {
|
|
|
1082
1082
|
return t === void 0 && (t = 0), { name: "offset", options: t, async fn(n) {
|
|
1083
1083
|
const { x: e, y: l } = n, o = await async function(s, i) {
|
|
1084
1084
|
const { placement: a, platform: c, elements: u } = s, m = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), d = te(a), y = de(a), g = ne(a) === "x", h = ["left", "top"].includes(d) ? -1 : 1, f = m && g ? -1 : 1, r = typeof i == "function" ? i(s) : i;
|
|
1085
|
-
let { mainAxis:
|
|
1086
|
-
return y && typeof M == "number" && ($ = y === "end" ? -1 * M : M), g ? { x: $ * f, y:
|
|
1085
|
+
let { mainAxis: v, crossAxis: $, alignmentAxis: M } = typeof r == "number" ? { mainAxis: r, crossAxis: 0, alignmentAxis: null } : { mainAxis: 0, crossAxis: 0, alignmentAxis: null, ...r };
|
|
1086
|
+
return y && typeof M == "number" && ($ = y === "end" ? -1 * M : M), g ? { x: $ * f, y: v * h } : { x: v * h, y: $ * f };
|
|
1087
1087
|
}(n, t);
|
|
1088
1088
|
return { x: e + o.x, y: l + o.y, data: o };
|
|
1089
1089
|
} };
|
|
@@ -1094,8 +1094,8 @@ function nn(t) {
|
|
|
1094
1094
|
const on = function(t) {
|
|
1095
1095
|
return t === void 0 && (t = {}), { name: "shift", options: t, async fn(n) {
|
|
1096
1096
|
const { x: e, y: l, placement: o } = n, { mainAxis: s = !0, crossAxis: i = !1, limiter: a = { fn: (r) => {
|
|
1097
|
-
let { x:
|
|
1098
|
-
return { x:
|
|
1097
|
+
let { x: v, y: $ } = r;
|
|
1098
|
+
return { x: v, y: $ };
|
|
1099
1099
|
} }, ...c } = t, u = { x: e, y: l }, m = await ie(n, c), d = ne(te(o)), y = nn(d);
|
|
1100
1100
|
let g = u[d], h = u[y];
|
|
1101
1101
|
if (s) {
|
|
@@ -1158,7 +1158,7 @@ function me(t) {
|
|
|
1158
1158
|
function je() {
|
|
1159
1159
|
return !/^((?!chrome|android).)*safari/i.test(Be());
|
|
1160
1160
|
}
|
|
1161
|
-
function
|
|
1161
|
+
function ve(t) {
|
|
1162
1162
|
return ["html", "body", "#document"].includes(U(t));
|
|
1163
1163
|
}
|
|
1164
1164
|
const ze = Math.min, J = Math.max, ce = Math.round;
|
|
@@ -1212,7 +1212,7 @@ function Ie(t) {
|
|
|
1212
1212
|
e = Ce(e);
|
|
1213
1213
|
return e && (U(e) === "html" || U(e) === "body" && V(e).position === "static" && !me(e)) ? n : e || function(l) {
|
|
1214
1214
|
let o = q(l);
|
|
1215
|
-
for (; H(o) && !
|
|
1215
|
+
for (; H(o) && !ve(o); ) {
|
|
1216
1216
|
if (me(o))
|
|
1217
1217
|
return o;
|
|
1218
1218
|
o = q(o);
|
|
@@ -1222,7 +1222,7 @@ function Ie(t) {
|
|
|
1222
1222
|
}
|
|
1223
1223
|
function Oe(t) {
|
|
1224
1224
|
const n = q(t);
|
|
1225
|
-
return
|
|
1225
|
+
return ve(n) ? t.ownerDocument.body : H(n) && ue(n) ? n : Oe(n);
|
|
1226
1226
|
}
|
|
1227
1227
|
function Ve(t, n) {
|
|
1228
1228
|
var e;
|
|
@@ -1257,7 +1257,7 @@ const an = { getClippingRect: function(t) {
|
|
|
1257
1257
|
let m = Ve(u).filter((h) => K(h) && U(h) !== "body"), d = null;
|
|
1258
1258
|
const y = V(u).position === "fixed";
|
|
1259
1259
|
let g = y ? q(u) : u;
|
|
1260
|
-
for (; K(g) && !
|
|
1260
|
+
for (; K(g) && !ve(g); ) {
|
|
1261
1261
|
const h = V(g), f = me(g);
|
|
1262
1262
|
(y ? f || d : f || h.position !== "static" || !d || !["absolute", "fixed"].includes(d.position)) ? d = h : m = m.filter((r) => r !== g), g = q(g);
|
|
1263
1263
|
}
|
|
@@ -1323,7 +1323,7 @@ function pe({ value: t }, { value: n }, { value: e }, l, o, s) {
|
|
|
1323
1323
|
}
|
|
1324
1324
|
var He = /* @__PURE__ */ ((t) => (t.Top = "top", t.Bottom = "bottom", t.Left = "left", t.Right = "right", t.TopStart = "top-start", t.TopEnd = "top-end", t.RightStart = "right-start", t.RightEnd = "right-end", t.BottomStart = "bottom-start", t.BottomEnd = "bottom-end", t.LeftStart = "left-start", t.LeftEnd = "left-end", t))(He || {}), Y = /* @__PURE__ */ ((t) => (t.Click = "click", t.Hover = "hover", t.Manual = "manual", t))(Y || {});
|
|
1325
1325
|
const cn = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMousemove"], dn = ["innerHTML"], un = /* @__PURE__ */ N({
|
|
1326
|
-
__name: "
|
|
1326
|
+
__name: "RTooltip",
|
|
1327
1327
|
props: {
|
|
1328
1328
|
placement: { default: He.Top },
|
|
1329
1329
|
text: { default: "" },
|
|
@@ -1345,12 +1345,12 @@ const cn = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
|
|
|
1345
1345
|
setup(t, { emit: n }) {
|
|
1346
1346
|
const e = t;
|
|
1347
1347
|
Xe((r) => ({
|
|
1348
|
-
"
|
|
1348
|
+
"271323d4": x(f)
|
|
1349
1349
|
}));
|
|
1350
1350
|
const l = E(null), o = E(null), s = E(null);
|
|
1351
1351
|
function i() {
|
|
1352
|
-
const { placement: r, offset:
|
|
1353
|
-
M || (o.value.style.display = "block", n("show"), pe(l, o, s, r,
|
|
1352
|
+
const { placement: r, offset: v, padding: $, disabled: M } = e;
|
|
1353
|
+
M || (o.value.style.display = "block", n("show"), pe(l, o, s, r, v, $), c(), e.outsideClick && u("add"));
|
|
1354
1354
|
}
|
|
1355
1355
|
function a() {
|
|
1356
1356
|
o.value.style.display = "", n("hide"), e.outsideClick && u("remove");
|
|
@@ -1373,16 +1373,16 @@ const cn = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
|
|
|
1373
1373
|
} else
|
|
1374
1374
|
o.value.style.display !== "" && e.triggers === Y.Hover && a();
|
|
1375
1375
|
}, g = () => {
|
|
1376
|
-
const { placement: r, offset:
|
|
1377
|
-
M || e.triggers === Y.Hover && pe(l, o, s, r,
|
|
1376
|
+
const { placement: r, offset: v, padding: $, disabled: M } = e;
|
|
1377
|
+
M || e.triggers === Y.Hover && pe(l, o, s, r, v, $);
|
|
1378
1378
|
}, h = w(() => ({
|
|
1379
1379
|
tooltip: !0,
|
|
1380
1380
|
"tooltip--dark": e.dark,
|
|
1381
1381
|
"tooltip--light": e.light
|
|
1382
1382
|
}));
|
|
1383
1383
|
window.onresize = () => {
|
|
1384
|
-
const { placement: r, offset:
|
|
1385
|
-
M || e.resizable && pe(l, o, s, r,
|
|
1384
|
+
const { placement: r, offset: v, padding: $, disabled: M } = e;
|
|
1385
|
+
M || e.resizable && pe(l, o, s, r, v, $);
|
|
1386
1386
|
}, Ke(
|
|
1387
1387
|
() => {
|
|
1388
1388
|
e.disabled || e.shown && e.triggers === Y.Manual && i();
|
|
@@ -1391,8 +1391,8 @@ const cn = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
|
|
|
1391
1391
|
// this is important to avoid infinite loop & for fire on mounted
|
|
1392
1392
|
);
|
|
1393
1393
|
const f = w(() => `${e.showDelay}ms`);
|
|
1394
|
-
return (r,
|
|
1395
|
-
|
|
1394
|
+
return (r, v) => (p(), _(X, null, [
|
|
1395
|
+
b("div", {
|
|
1396
1396
|
ref_key: "trigger",
|
|
1397
1397
|
ref: l,
|
|
1398
1398
|
"aria-disabled": e.disabled,
|
|
@@ -1408,7 +1408,7 @@ const cn = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
|
|
|
1408
1408
|
innerHTML: e.triggerContent
|
|
1409
1409
|
}, null, 8, dn))
|
|
1410
1410
|
], 40, cn),
|
|
1411
|
-
|
|
1411
|
+
b("div", {
|
|
1412
1412
|
id: "tooltip",
|
|
1413
1413
|
ref_key: "tooltip",
|
|
1414
1414
|
ref: o,
|
|
@@ -1444,22 +1444,22 @@ const fn = (t, n) => {
|
|
|
1444
1444
|
for (const [l, o] of n)
|
|
1445
1445
|
e[l] = o;
|
|
1446
1446
|
return e;
|
|
1447
|
-
}, $n = /* @__PURE__ */ fn(un, [["__scopeId", "data-v-
|
|
1447
|
+
}, $n = /* @__PURE__ */ fn(un, [["__scopeId", "data-v-ee5f5651"]]);
|
|
1448
1448
|
export {
|
|
1449
|
-
hn as
|
|
1450
|
-
mn as
|
|
1451
|
-
gn as
|
|
1452
|
-
at as
|
|
1453
|
-
_n as
|
|
1454
|
-
mt as
|
|
1455
|
-
|
|
1456
|
-
B as
|
|
1457
|
-
Ae as
|
|
1458
|
-
|
|
1459
|
-
yn as
|
|
1460
|
-
Dt as
|
|
1461
|
-
xn as
|
|
1462
|
-
kn as
|
|
1463
|
-
wn as
|
|
1464
|
-
$n as
|
|
1449
|
+
hn as Alert,
|
|
1450
|
+
mn as Avatar,
|
|
1451
|
+
gn as Badge,
|
|
1452
|
+
at as Button,
|
|
1453
|
+
_n as Checkbox,
|
|
1454
|
+
mt as Chip,
|
|
1455
|
+
vn as Dropdown,
|
|
1456
|
+
B as Icon,
|
|
1457
|
+
Ae as Label,
|
|
1458
|
+
bn as Snackbar,
|
|
1459
|
+
yn as Switch,
|
|
1460
|
+
Dt as TabItem,
|
|
1461
|
+
xn as Tabs,
|
|
1462
|
+
kn as TextArea,
|
|
1463
|
+
wn as Textfield,
|
|
1464
|
+
$n as Tooltip
|
|
1465
1465
|
};
|