@rocketui/vue 0.0.15 → 0.0.17
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 +527 -446
- package/dist/rocket-ui-vue.umd.cjs +1 -1
- package/dist/style.css +2 -2
- package/dist/types/main.d.ts +3 -1
- package/package.json +1 -1
package/dist/rocket-ui-vue.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const B = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as I, computed as $, openBlock as f, createElementBlock as m, normalizeClass as x, unref as w, normalizeStyle as We, toDisplayString as C, reactive as G, Fragment as Q, renderList as q, createElementVNode as _, createVNode as ne, createBlock as N, renderSlot as A, createCommentVNode as R, mergeProps as Pe, withModifiers as O, watch as U, ref as E, withDirectives as Ae, withKeys as ye, vModelText as Fe, vShow as Ue, onMounted as Ze, withCtx as Qe, createTextVNode as Xe, useCssVars as Ke, watchEffect as Ge } from "vue";
|
|
2
|
+
const B = /* @__PURE__ */ I({
|
|
3
3
|
__name: "RIcon",
|
|
4
4
|
props: {
|
|
5
5
|
name: { default: "" },
|
|
@@ -17,12 +17,12 @@ const B = /* @__PURE__ */ L({
|
|
|
17
17
|
alignItems: "center",
|
|
18
18
|
justifyContent: "center"
|
|
19
19
|
})), a = $(() => n.kind === "filled" ? "material-icons" : `material-icons-${n.kind}`);
|
|
20
|
-
return (o, s) => (
|
|
21
|
-
class:
|
|
22
|
-
style:
|
|
20
|
+
return (o, s) => (f(), m("span", {
|
|
21
|
+
class: x(w(a)),
|
|
22
|
+
style: We(w(e))
|
|
23
23
|
}, C(n.name), 7));
|
|
24
24
|
}
|
|
25
|
-
}),
|
|
25
|
+
}), Je = ["onClick"], qe = { class: "accordion__title" }, et = { class: "accordion__icon" }, tt = { class: "accordion__content" }, Rn = /* @__PURE__ */ I({
|
|
26
26
|
__name: "RAccordion",
|
|
27
27
|
props: {
|
|
28
28
|
accordions: null
|
|
@@ -41,34 +41,34 @@ const B = /* @__PURE__ */ L({
|
|
|
41
41
|
e[l].open = l === o ? !e[l].open : !1;
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
|
-
return (o, s) => (
|
|
44
|
+
return (o, s) => (f(!0), m(Q, null, q(e, (l, i) => (f(), m("div", {
|
|
45
45
|
key: i,
|
|
46
|
-
class:
|
|
46
|
+
class: x({
|
|
47
47
|
accordion: !0,
|
|
48
48
|
"accordion--opened": l.open,
|
|
49
49
|
"accordion--disabled": l.disabled
|
|
50
50
|
})
|
|
51
51
|
}, [
|
|
52
|
-
|
|
52
|
+
_("div", {
|
|
53
53
|
class: "accordion__header",
|
|
54
54
|
onClick: (r) => a(i)
|
|
55
55
|
}, [
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
_("div", qe, C(l.title), 1),
|
|
57
|
+
_("div", et, [
|
|
58
|
+
ne(B, {
|
|
59
59
|
name: l.open ? "expand_less" : "expand_more"
|
|
60
60
|
}, null, 8, ["name"])
|
|
61
61
|
])
|
|
62
|
-
], 8,
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
], 8, Je),
|
|
63
|
+
_("div", tt, [
|
|
64
|
+
_("span", null, C(l.content), 1)
|
|
65
65
|
])
|
|
66
66
|
], 2))), 128));
|
|
67
67
|
}
|
|
68
|
-
}),
|
|
68
|
+
}), nt = { class: "icon" }, ot = { class: "texts" }, at = { class: "texts__title" }, st = { class: "texts__description" }, lt = {
|
|
69
69
|
key: 0,
|
|
70
70
|
class: "close"
|
|
71
|
-
},
|
|
71
|
+
}, In = /* @__PURE__ */ I({
|
|
72
72
|
__name: "RAlert",
|
|
73
73
|
props: {
|
|
74
74
|
type: { default: "info" },
|
|
@@ -95,21 +95,21 @@ const B = /* @__PURE__ */ L({
|
|
|
95
95
|
})[e.size]), l = () => {
|
|
96
96
|
n("close");
|
|
97
97
|
};
|
|
98
|
-
return (i, r) => (
|
|
99
|
-
class:
|
|
98
|
+
return (i, r) => (f(), m("div", {
|
|
99
|
+
class: x(w(a))
|
|
100
100
|
}, [
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
_("div", nt, [
|
|
102
|
+
ne(B, {
|
|
103
103
|
name: w(o),
|
|
104
104
|
size: w(s)
|
|
105
105
|
}, null, 8, ["name", "size"])
|
|
106
106
|
]),
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
_("div", ot, [
|
|
108
|
+
_("p", at, C(e.title), 1),
|
|
109
|
+
_("p", st, C(e.description), 1)
|
|
110
110
|
]),
|
|
111
|
-
e.closable ? (
|
|
112
|
-
i.$slots.close ?
|
|
111
|
+
e.closable ? (f(), m("div", lt, [
|
|
112
|
+
i.$slots.close ? A(i.$slots, "close", { key: 1 }) : (f(), N(B, {
|
|
113
113
|
key: 0,
|
|
114
114
|
class: "close__button",
|
|
115
115
|
name: "close",
|
|
@@ -119,11 +119,11 @@ const B = /* @__PURE__ */ L({
|
|
|
119
119
|
])) : R("", !0)
|
|
120
120
|
], 2));
|
|
121
121
|
}
|
|
122
|
-
}),
|
|
122
|
+
}), ke = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjciIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyNyAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjQ5OTMgMTRDMTcuMTgyNyAxNCAyMC4xNjYgMTEuMDE2NyAyMC4xNjYgNy4zMzMzNEMyMC4xNjYgMy42NSAxNy4xODI3IDAuNjY2NjcyIDEzLjQ5OTMgMC42NjY2NzJDOS44MTYwMiAwLjY2NjY3MiA2LjgzMjY4IDMuNjUgNi44MzI2OCA3LjMzMzM0QzYuODMyNjggMTEuMDE2NyA5LjgxNjAyIDE0IDEzLjQ5OTMgMTRaTTEzLjQ5OTMgMTcuMzMzM0M5LjA0OTM1IDE3LjMzMzMgMC4xNjYwMTYgMTkuNTY2NyAwLjE2NjAxNiAyNFYyNS42NjY3QzAuMTY2MDE2IDI2LjU4MzMgMC45MTYwMTYgMjcuMzMzMyAxLjgzMjY4IDI3LjMzMzNIMjUuMTY2QzI2LjA4MjcgMjcuMzMzMyAyNi44MzI3IDI2LjU4MzMgMjYuODMyNyAyNS42NjY3VjI0QzI2LjgzMjcgMTkuNTY2NyAxNy45NDkzIDE3LjMzMzMgMTMuNDk5MyAxNy4zMzMzWiIgZmlsbD0iIzRDNUJFMSIvPgo8L3N2Zz4K", it = { class: "avatar__wrapper" }, rt = ["alt", "src"], An = /* @__PURE__ */ I({
|
|
123
123
|
__name: "RAvatar",
|
|
124
124
|
props: {
|
|
125
125
|
type: { default: "image" },
|
|
126
|
-
src: { default:
|
|
126
|
+
src: { default: ke },
|
|
127
127
|
alt: { default: "Avatar" },
|
|
128
128
|
size: { default: "2xl" },
|
|
129
129
|
online: { type: Boolean, default: !1 },
|
|
@@ -133,35 +133,35 @@ const B = /* @__PURE__ */ L({
|
|
|
133
133
|
const n = t, e = $(() => ({
|
|
134
134
|
avatar: !0,
|
|
135
135
|
[`avatar--${n.size}`]: !0
|
|
136
|
-
})), a = $(() => n.type === "image" && !n.src), o = $(() => a.value ?
|
|
136
|
+
})), a = $(() => n.type === "image" && !n.src), o = $(() => a.value ? ke : n.src), s = (l) => {
|
|
137
137
|
const i = l.split(" ");
|
|
138
138
|
return i.length === 1 ? i[0].substring(0, 2) : `${i[0].charAt(0)}${i[1].charAt(0)}`;
|
|
139
139
|
};
|
|
140
|
-
return (l, i) => (
|
|
141
|
-
|
|
142
|
-
class:
|
|
140
|
+
return (l, i) => (f(), m("div", it, [
|
|
141
|
+
_("div", {
|
|
142
|
+
class: x(w(e))
|
|
143
143
|
}, [
|
|
144
|
-
n.type === "text" ? (
|
|
144
|
+
n.type === "text" ? (f(), m("p", {
|
|
145
145
|
key: 0,
|
|
146
|
-
class:
|
|
147
|
-
}, C(s(n.text)), 3)) : (
|
|
146
|
+
class: x({ avatar__text: !0, [`avatar__text--${n.size}`]: !0 })
|
|
147
|
+
}, C(s(n.text)), 3)) : (f(), m("img", {
|
|
148
148
|
key: 1,
|
|
149
149
|
alt: n.alt,
|
|
150
|
-
class:
|
|
150
|
+
class: x({
|
|
151
151
|
avatar__image: !0,
|
|
152
152
|
[`avatar__image--${n.size}`]: !0,
|
|
153
153
|
"avatar__image--anonymous": w(a)
|
|
154
154
|
}),
|
|
155
155
|
src: w(o)
|
|
156
|
-
}, null, 10,
|
|
156
|
+
}, null, 10, rt))
|
|
157
157
|
], 2),
|
|
158
|
-
n.online ? (
|
|
158
|
+
n.online ? (f(), m("span", {
|
|
159
159
|
key: 0,
|
|
160
|
-
class:
|
|
160
|
+
class: x({ avatar__online: !0, [`avatar__online--${n.size}`]: !0 })
|
|
161
161
|
}, null, 2)) : R("", !0)
|
|
162
162
|
]));
|
|
163
163
|
}
|
|
164
|
-
}),
|
|
164
|
+
}), ct = { class: "badge-wrapper group" }, Ln = /* @__PURE__ */ I({
|
|
165
165
|
__name: "RBadge",
|
|
166
166
|
props: {
|
|
167
167
|
variant: { default: "primary" },
|
|
@@ -183,15 +183,15 @@ const B = /* @__PURE__ */ L({
|
|
|
183
183
|
"badge--no-content": !n.content,
|
|
184
184
|
[`badge--${n.variant}`]: n.variant
|
|
185
185
|
}));
|
|
186
|
-
return (a, o) => (
|
|
187
|
-
|
|
188
|
-
class:
|
|
186
|
+
return (a, o) => (f(), m("div", ct, [
|
|
187
|
+
_("span", {
|
|
188
|
+
class: x(w(e)),
|
|
189
189
|
onClick: o[0] || (o[0] = (s) => a.$emit("click"))
|
|
190
190
|
}, C(n.content), 3),
|
|
191
|
-
|
|
191
|
+
A(a.$slots, "default")
|
|
192
192
|
]));
|
|
193
193
|
}
|
|
194
|
-
}),
|
|
194
|
+
}), dt = ["disabled"], ut = /* @__PURE__ */ I({
|
|
195
195
|
__name: "RButton",
|
|
196
196
|
props: {
|
|
197
197
|
variant: { default: "primary" },
|
|
@@ -221,38 +221,38 @@ const B = /* @__PURE__ */ L({
|
|
|
221
221
|
height: l ? `${l}px` : ""
|
|
222
222
|
};
|
|
223
223
|
});
|
|
224
|
-
return (s, l) => (
|
|
224
|
+
return (s, l) => (f(), m("button", Pe(s.$attrs, {
|
|
225
225
|
class: w(e),
|
|
226
226
|
disabled: t.disabled || t.loading,
|
|
227
227
|
style: w(o),
|
|
228
|
-
onClick: l[0] || (l[0] =
|
|
228
|
+
onClick: l[0] || (l[0] = O((i) => s.$emit("click"), ["stop"]))
|
|
229
229
|
}), [
|
|
230
|
-
|
|
231
|
-
s.$slots["custom-icon"] ? R("", !0) : (
|
|
230
|
+
A(s.$slots, "custom-icon"),
|
|
231
|
+
s.$slots["custom-icon"] ? R("", !0) : (f(), N(B, {
|
|
232
232
|
key: 0,
|
|
233
|
-
class:
|
|
233
|
+
class: x({
|
|
234
234
|
"button__prepend-icon": !0,
|
|
235
235
|
"button__prepend-icon--only": n.onlyIcon
|
|
236
236
|
}),
|
|
237
237
|
name: n.prependIcon,
|
|
238
238
|
size: w(a)
|
|
239
239
|
}, null, 8, ["class", "name", "size"])),
|
|
240
|
-
n.onlyIcon ? R("", !0) :
|
|
241
|
-
!s.$slots["custom-icon"] && !n.onlyIcon ? (
|
|
240
|
+
n.onlyIcon ? R("", !0) : A(s.$slots, "default", { key: 1 }),
|
|
241
|
+
!s.$slots["custom-icon"] && !n.onlyIcon ? (f(), N(B, {
|
|
242
242
|
key: 2,
|
|
243
243
|
class: "button__append-icon",
|
|
244
244
|
name: n.appendIcon,
|
|
245
245
|
size: w(a)
|
|
246
246
|
}, null, 8, ["name", "size"])) : R("", !0)
|
|
247
|
-
], 16,
|
|
247
|
+
], 16, dt));
|
|
248
248
|
}
|
|
249
|
-
}),
|
|
249
|
+
}), ft = { class: "checkbox-wrapper" }, pt = { class: "checkbox-container" }, ht = ["id", "checked", "disabled", "indeterminate"], mt = ["data-disabled"], _t = { class: "checkbox-texts" }, gt = ["data-disabled", "for"], vt = {
|
|
250
250
|
key: 0,
|
|
251
251
|
class: "checkbox-texts__error"
|
|
252
|
-
},
|
|
252
|
+
}, bt = {
|
|
253
253
|
key: 1,
|
|
254
254
|
class: "checkbox-texts__hint"
|
|
255
|
-
},
|
|
255
|
+
}, Nn = /* @__PURE__ */ I({
|
|
256
256
|
__name: "RCheckbox",
|
|
257
257
|
props: {
|
|
258
258
|
id: { default: "" },
|
|
@@ -301,9 +301,9 @@ const B = /* @__PURE__ */ L({
|
|
|
301
301
|
// TODO: find a better way to do this
|
|
302
302
|
immediate: !0
|
|
303
303
|
}
|
|
304
|
-
), (r, u) => (
|
|
305
|
-
|
|
306
|
-
|
|
304
|
+
), (r, u) => (f(), m("div", ft, [
|
|
305
|
+
_("div", pt, [
|
|
306
|
+
_("input", {
|
|
307
307
|
id: e.id,
|
|
308
308
|
checked: a.checked,
|
|
309
309
|
class: "checkbox-container__input",
|
|
@@ -311,28 +311,28 @@ const B = /* @__PURE__ */ L({
|
|
|
311
311
|
indeterminate: a.indeterminate,
|
|
312
312
|
type: "checkbox",
|
|
313
313
|
onChange: i
|
|
314
|
-
}, null, 40,
|
|
315
|
-
|
|
316
|
-
class:
|
|
314
|
+
}, null, 40, ht),
|
|
315
|
+
_("div", {
|
|
316
|
+
class: x(w(l)),
|
|
317
317
|
"data-disabled": e.disabled
|
|
318
318
|
}, [
|
|
319
|
-
|
|
319
|
+
ne(B, {
|
|
320
320
|
name: w(s),
|
|
321
321
|
size: "16"
|
|
322
322
|
}, null, 8, ["name"])
|
|
323
|
-
], 10,
|
|
323
|
+
], 10, mt)
|
|
324
324
|
]),
|
|
325
|
-
|
|
326
|
-
|
|
325
|
+
_("div", _t, [
|
|
326
|
+
_("label", {
|
|
327
327
|
class: "checkbox-texts__label",
|
|
328
328
|
"data-disabled": e.disabled,
|
|
329
329
|
for: e.id
|
|
330
|
-
}, C(e.label), 9,
|
|
331
|
-
e.errorMsg ? (
|
|
330
|
+
}, C(e.label), 9, gt),
|
|
331
|
+
e.errorMsg ? (f(), m("p", vt, C(e.errorMsg), 1)) : (f(), m("p", bt, C(e.hint), 1))
|
|
332
332
|
])
|
|
333
333
|
]));
|
|
334
334
|
}
|
|
335
|
-
}),
|
|
335
|
+
}), yt = /* @__PURE__ */ I({
|
|
336
336
|
__name: "RChip",
|
|
337
337
|
props: {
|
|
338
338
|
variant: { default: "primary" },
|
|
@@ -356,39 +356,39 @@ const B = /* @__PURE__ */ L({
|
|
|
356
356
|
}, l = (i) => {
|
|
357
357
|
e.disabled || n("click:close", i);
|
|
358
358
|
};
|
|
359
|
-
return (i, r) => (
|
|
360
|
-
class:
|
|
359
|
+
return (i, r) => (f(), m("div", {
|
|
360
|
+
class: x(w(a))
|
|
361
361
|
}, [
|
|
362
|
-
|
|
362
|
+
_("div", {
|
|
363
363
|
class: "chip__content",
|
|
364
|
-
onClick: r[0] || (r[0] =
|
|
364
|
+
onClick: r[0] || (r[0] = O((u) => s(u), ["stop"]))
|
|
365
365
|
}, [
|
|
366
|
-
e.prependIcon ? (
|
|
366
|
+
e.prependIcon ? (f(), N(B, {
|
|
367
367
|
key: 0,
|
|
368
368
|
"aria-disabled": e.disabled,
|
|
369
369
|
class: "chip__prepend-icon",
|
|
370
370
|
name: e.prependIcon,
|
|
371
371
|
size: w(o)
|
|
372
372
|
}, null, 8, ["aria-disabled", "name", "size"])) : R("", !0),
|
|
373
|
-
|
|
373
|
+
_("span", null, C(e.label), 1)
|
|
374
374
|
]),
|
|
375
|
-
e.appendIcon ? (
|
|
375
|
+
e.appendIcon ? (f(), N(B, {
|
|
376
376
|
key: 0,
|
|
377
377
|
"aria-disabled": e.disabled,
|
|
378
378
|
class: "chip__append-icon",
|
|
379
379
|
name: e.appendIcon,
|
|
380
380
|
size: w(o),
|
|
381
|
-
onClick: r[1] || (r[1] =
|
|
381
|
+
onClick: r[1] || (r[1] = O((u) => l(u), ["stop"]))
|
|
382
382
|
}, null, 8, ["aria-disabled", "name", "size"])) : R("", !0)
|
|
383
383
|
], 2));
|
|
384
384
|
}
|
|
385
|
-
}),
|
|
385
|
+
}), kt = { class: "dropdown-wrapper" }, xt = {
|
|
386
386
|
key: 0,
|
|
387
387
|
class: "dropdown__tags"
|
|
388
|
-
},
|
|
388
|
+
}, wt = {
|
|
389
389
|
key: 1,
|
|
390
390
|
class: "dropdown__multiple"
|
|
391
|
-
},
|
|
391
|
+
}, $t = ["disabled", "placeholder", "readonly"], Mt = ["aria-disabled", "onClick"], Tt = { style: { display: "flex", "align-items": "center" } }, Bn = /* @__PURE__ */ I({
|
|
392
392
|
__name: "RDropdown",
|
|
393
393
|
props: {
|
|
394
394
|
placeholder: { default: "" },
|
|
@@ -404,19 +404,19 @@ const B = /* @__PURE__ */ L({
|
|
|
404
404
|
},
|
|
405
405
|
emits: ["update:modelValue"],
|
|
406
406
|
setup(t, { emit: n }) {
|
|
407
|
-
const e = t, a =
|
|
408
|
-
var c,
|
|
407
|
+
const e = t, a = E(""), o = G([]), s = E(!1), l = E(""), i = E(null), r = E(null), u = (h) => {
|
|
408
|
+
var c, p, k, M, D, L;
|
|
409
409
|
if (!e.disabled) {
|
|
410
410
|
if (h.stopPropagation(), s.value = !s.value, s.value) {
|
|
411
|
-
(c = i.value) == null || c.classList.add("dropdown--active"), (
|
|
411
|
+
(c = i.value) == null || c.classList.add("dropdown--active"), (p = i.value) == null || p.focus(), e.searchable && ((k = r.value) == null || k.focus()), document.addEventListener("click", u);
|
|
412
412
|
return;
|
|
413
413
|
}
|
|
414
|
-
(M = i.value) == null || M.classList.remove("dropdown--active"), (
|
|
414
|
+
(M = i.value) == null || M.classList.remove("dropdown--active"), (D = i.value) == null || D.blur(), (L = r.value) == null || L.blur(), document.removeEventListener("click", u);
|
|
415
415
|
}
|
|
416
|
-
},
|
|
417
|
-
var
|
|
416
|
+
}, g = (h, c) => {
|
|
417
|
+
var p;
|
|
418
418
|
if (e.multiple || e.taggable) {
|
|
419
|
-
h.stopPropagation(), o.includes(c) ? o.splice(o.indexOf(c), 1) : o.push(c), l.value = "", e.searchable && ((
|
|
419
|
+
h.stopPropagation(), o.includes(c) ? o.splice(o.indexOf(c), 1) : o.push(c), l.value = "", e.searchable && ((p = r.value) == null || p.focus());
|
|
420
420
|
return;
|
|
421
421
|
}
|
|
422
422
|
d(h, c);
|
|
@@ -430,62 +430,62 @@ const B = /* @__PURE__ */ L({
|
|
|
430
430
|
if (h instanceof KeyboardEvent && h.key !== "Backspace" || l.value !== "")
|
|
431
431
|
return;
|
|
432
432
|
h.stopPropagation();
|
|
433
|
-
const
|
|
434
|
-
o.splice(
|
|
435
|
-
},
|
|
436
|
-
var
|
|
433
|
+
const p = o.findIndex((k) => k.value === c.value);
|
|
434
|
+
o.splice(p, 1);
|
|
435
|
+
}, v = (h) => {
|
|
436
|
+
var k;
|
|
437
437
|
if (!e.taggable)
|
|
438
438
|
return;
|
|
439
439
|
h.stopPropagation();
|
|
440
440
|
const c = l.value;
|
|
441
441
|
if (c === "")
|
|
442
442
|
return;
|
|
443
|
-
e.options.find((M) => M.label === c) || (o.push({ value: c, label: c }), l.value = "", (
|
|
443
|
+
e.options.find((M) => M.label === c) || (o.push({ value: c, label: c }), l.value = "", (k = r.value) == null || k.focus());
|
|
444
444
|
}, b = $(() => e.searchable ? e.options.filter((c) => c.label.toLowerCase().includes(l.value.toLowerCase())) : e.options);
|
|
445
445
|
return U(o, (h) => {
|
|
446
446
|
n("update:modelValue", h);
|
|
447
|
-
}), (h, c) => (
|
|
448
|
-
|
|
447
|
+
}), (h, c) => (f(), m("div", kt, [
|
|
448
|
+
_("div", {
|
|
449
449
|
ref_key: "dropdown",
|
|
450
450
|
ref: i,
|
|
451
|
-
class:
|
|
451
|
+
class: x({
|
|
452
452
|
dropdown: !0,
|
|
453
453
|
"dropdown--disabled": e.disabled,
|
|
454
454
|
"dropdown--loading": e.loading
|
|
455
455
|
}),
|
|
456
456
|
onClick: u
|
|
457
457
|
}, [
|
|
458
|
-
|
|
459
|
-
class:
|
|
458
|
+
_("div", {
|
|
459
|
+
class: x({
|
|
460
460
|
"dropdown__prepend-icon": !0,
|
|
461
461
|
"dropdown__prepend-icon--active": s.value
|
|
462
462
|
})
|
|
463
463
|
}, [
|
|
464
|
-
e.prependIcon ? (
|
|
464
|
+
e.prependIcon ? (f(), N(B, {
|
|
465
465
|
key: 1,
|
|
466
466
|
name: e.prependIcon
|
|
467
|
-
}, null, 8, ["name"])) :
|
|
467
|
+
}, null, 8, ["name"])) : A(h.$slots, "prepend-icon", { key: 0 })
|
|
468
468
|
], 2),
|
|
469
|
-
e.taggable ? (
|
|
470
|
-
(
|
|
471
|
-
key:
|
|
472
|
-
label:
|
|
469
|
+
e.taggable ? (f(), m("div", xt, [
|
|
470
|
+
(f(!0), m(Q, null, q(o, (p, k) => (f(), N(yt, {
|
|
471
|
+
key: k,
|
|
472
|
+
label: p.label,
|
|
473
473
|
appendIcon: "close",
|
|
474
474
|
class: "dropdown__tags__chip",
|
|
475
475
|
variant: "primary",
|
|
476
|
-
"onClick:close": (M) => y(M,
|
|
476
|
+
"onClick:close": (M) => y(M, p)
|
|
477
477
|
}, null, 8, ["label", "onClick:close"]))), 128))
|
|
478
478
|
])) : R("", !0),
|
|
479
|
-
e.multiple ? (
|
|
480
|
-
(
|
|
479
|
+
e.multiple ? (f(), m("div", wt, [
|
|
480
|
+
(f(!0), m(Q, null, q(o, (p, k) => (f(), m("p", { key: k }, C(p.label + ","), 1))), 128))
|
|
481
481
|
])) : R("", !0),
|
|
482
|
-
|
|
482
|
+
Ae(_("input", {
|
|
483
483
|
id: "select",
|
|
484
484
|
ref_key: "input",
|
|
485
485
|
ref: r,
|
|
486
486
|
type: "text",
|
|
487
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
488
|
-
class:
|
|
487
|
+
"onUpdate:modelValue": c[0] || (c[0] = (p) => l.value = p),
|
|
488
|
+
class: x({
|
|
489
489
|
dropdown__input: !0,
|
|
490
490
|
"dropdown__input--loading": e.loading
|
|
491
491
|
}),
|
|
@@ -493,65 +493,65 @@ const B = /* @__PURE__ */ L({
|
|
|
493
493
|
placeholder: e.placeholder,
|
|
494
494
|
readonly: !e.searchable,
|
|
495
495
|
onKeydown: [
|
|
496
|
-
c[1] || (c[1] = ye((
|
|
497
|
-
c[2] || (c[2] = ye((
|
|
496
|
+
c[1] || (c[1] = ye((p) => y(p, o[o.length - 1]), ["backspace"])),
|
|
497
|
+
c[2] || (c[2] = ye((p) => v(p), ["enter"]))
|
|
498
498
|
]
|
|
499
|
-
}, null, 42,
|
|
499
|
+
}, null, 42, $t), [
|
|
500
500
|
[Fe, l.value]
|
|
501
501
|
]),
|
|
502
|
-
|
|
503
|
-
class:
|
|
502
|
+
_("div", {
|
|
503
|
+
class: x({
|
|
504
504
|
"dropdown__append-icon": !0,
|
|
505
505
|
"dropdown__append-icon--active": s.value
|
|
506
506
|
})
|
|
507
507
|
}, [
|
|
508
|
-
e.appendIcon ? (
|
|
508
|
+
e.appendIcon ? (f(), N(B, {
|
|
509
509
|
key: 1,
|
|
510
510
|
name: e.appendIcon
|
|
511
|
-
}, null, 8, ["name"])) :
|
|
511
|
+
}, null, 8, ["name"])) : A(h.$slots, "append-icon", { key: 0 })
|
|
512
512
|
], 2)
|
|
513
513
|
], 2),
|
|
514
|
-
|
|
515
|
-
class:
|
|
514
|
+
_("ul", {
|
|
515
|
+
class: x({ "dropdown-options": !0, "dropdown-options--active": s.value })
|
|
516
516
|
}, [
|
|
517
|
-
(
|
|
518
|
-
key:
|
|
519
|
-
class:
|
|
517
|
+
(f(!0), m(Q, null, q(w(b), (p) => (f(), m("li", {
|
|
518
|
+
key: p.value,
|
|
519
|
+
class: x({
|
|
520
520
|
"dropdown-options__option": !0,
|
|
521
|
-
"dropdown-options__option--active":
|
|
521
|
+
"dropdown-options__option--active": p.value === a.value || (o == null ? void 0 : o.includes(p))
|
|
522
522
|
}),
|
|
523
|
-
"aria-disabled":
|
|
524
|
-
onClick: (
|
|
523
|
+
"aria-disabled": p.disabled,
|
|
524
|
+
onClick: (k) => g(k, p)
|
|
525
525
|
}, [
|
|
526
|
-
|
|
527
|
-
|
|
526
|
+
_("div", Tt, [
|
|
527
|
+
p.prependIcon ? (f(), N(B, {
|
|
528
528
|
key: 1,
|
|
529
|
-
class:
|
|
529
|
+
class: x({
|
|
530
530
|
"dropdown-options__option__prepend-icon": !0,
|
|
531
|
-
"dropdown-options__option__prepend-icon--active":
|
|
531
|
+
"dropdown-options__option__prepend-icon--active": p.value === a.value || (o == null ? void 0 : o.includes(p))
|
|
532
532
|
}),
|
|
533
|
-
name:
|
|
534
|
-
}, null, 8, ["class", "name"])) :
|
|
535
|
-
|
|
536
|
-
class:
|
|
533
|
+
name: p.prependIcon
|
|
534
|
+
}, null, 8, ["class", "name"])) : A(h.$slots, "option-prepend", { key: 0 }),
|
|
535
|
+
_("p", {
|
|
536
|
+
class: x({
|
|
537
537
|
"dropdown-options__option__label": !0,
|
|
538
|
-
"dropdown-options__option__label--active":
|
|
538
|
+
"dropdown-options__option__label--active": p.value === a.value || (o == null ? void 0 : o.includes(p))
|
|
539
539
|
})
|
|
540
|
-
}, C(
|
|
540
|
+
}, C(p.label), 3)
|
|
541
541
|
]),
|
|
542
|
-
|
|
542
|
+
p.value === a.value || o != null && o.includes(p) ? (f(), N(B, {
|
|
543
543
|
key: 0,
|
|
544
|
-
class:
|
|
544
|
+
class: x({
|
|
545
545
|
"dropdown-options__option__append-icon": !0,
|
|
546
|
-
"dropdown-options__option__append-icon--active":
|
|
546
|
+
"dropdown-options__option__append-icon--active": p.value === a.value || (o == null ? void 0 : o.includes(p))
|
|
547
547
|
}),
|
|
548
548
|
name: "check"
|
|
549
549
|
}, null, 8, ["class"])) : R("", !0)
|
|
550
|
-
], 10,
|
|
550
|
+
], 10, Mt))), 128))
|
|
551
551
|
], 2)
|
|
552
552
|
]));
|
|
553
553
|
}
|
|
554
|
-
}), zt = ["id", "for"],
|
|
554
|
+
}), zt = ["id", "for"], Le = /* @__PURE__ */ I({
|
|
555
555
|
__name: "RLabel",
|
|
556
556
|
props: {
|
|
557
557
|
id: { default: "" },
|
|
@@ -560,18 +560,97 @@ const B = /* @__PURE__ */ L({
|
|
|
560
560
|
},
|
|
561
561
|
setup(t) {
|
|
562
562
|
const n = t;
|
|
563
|
-
return (e, a) => (
|
|
563
|
+
return (e, a) => (f(), m("label", {
|
|
564
564
|
id: n.id,
|
|
565
565
|
for: n.for
|
|
566
566
|
}, C(n.text), 9, zt));
|
|
567
567
|
}
|
|
568
|
-
}),
|
|
568
|
+
}), Ct = ["onClick"], Rt = ["open"], It = { class: "dialog__header" }, At = {
|
|
569
|
+
key: 0,
|
|
570
|
+
class: "icon"
|
|
571
|
+
}, Lt = {
|
|
572
|
+
key: 1,
|
|
573
|
+
class: "title"
|
|
574
|
+
}, Nt = {
|
|
575
|
+
key: 2,
|
|
576
|
+
class: "description"
|
|
577
|
+
}, Bt = { class: "dialog__body" }, Dt = { class: "dialog__actions" }, Dn = /* @__PURE__ */ I({
|
|
578
|
+
__name: "RModal",
|
|
579
|
+
props: {
|
|
580
|
+
modelValue: { type: Boolean, default: !1 },
|
|
581
|
+
block: { type: Boolean, default: !1 },
|
|
582
|
+
title: { default: "" },
|
|
583
|
+
description: { default: "" },
|
|
584
|
+
icon: null
|
|
585
|
+
},
|
|
586
|
+
emits: ["update:modelValue"],
|
|
587
|
+
setup(t, { emit: n }) {
|
|
588
|
+
const e = t, a = $(() => ({
|
|
589
|
+
dialog: !0,
|
|
590
|
+
"dialog--block": e.block
|
|
591
|
+
})), o = (s) => {
|
|
592
|
+
s.target === s.currentTarget && n("update:modelValue", !1);
|
|
593
|
+
};
|
|
594
|
+
return (s, l) => Ae((f(), m("div", {
|
|
595
|
+
class: "modal",
|
|
596
|
+
onClick: O(o, ["stop"])
|
|
597
|
+
}, [
|
|
598
|
+
_("div", {
|
|
599
|
+
role: "dialog",
|
|
600
|
+
"aria-modal": "true",
|
|
601
|
+
class: x(w(a)),
|
|
602
|
+
open: e.modelValue
|
|
603
|
+
}, [
|
|
604
|
+
_("div", It, [
|
|
605
|
+
A(s.$slots, "header"),
|
|
606
|
+
e.icon ? (f(), m("div", At, [
|
|
607
|
+
ne(B, {
|
|
608
|
+
name: e.icon,
|
|
609
|
+
kind: "outlined"
|
|
610
|
+
}, null, 8, ["name"])
|
|
611
|
+
])) : R("", !0),
|
|
612
|
+
e.title ? (f(), m("div", Lt, C(e.title), 1)) : R("", !0),
|
|
613
|
+
e.description ? (f(), m("div", Nt, C(e.description), 1)) : R("", !0)
|
|
614
|
+
]),
|
|
615
|
+
_("div", Bt, [
|
|
616
|
+
A(s.$slots, "default")
|
|
617
|
+
]),
|
|
618
|
+
_("div", Dt, [
|
|
619
|
+
A(s.$slots, "actions")
|
|
620
|
+
])
|
|
621
|
+
], 10, Rt)
|
|
622
|
+
], 8, Ct)), [
|
|
623
|
+
[Ue, t.modelValue]
|
|
624
|
+
]);
|
|
625
|
+
}
|
|
626
|
+
}), jt = { class: "nav" }, Et = { class: "actions" }, jn = /* @__PURE__ */ I({
|
|
627
|
+
__name: "RSidebar",
|
|
628
|
+
props: {
|
|
629
|
+
modelValue: { type: Boolean, default: !1 }
|
|
630
|
+
},
|
|
631
|
+
setup(t) {
|
|
632
|
+
const n = t, e = $(() => ({
|
|
633
|
+
sidebar: !0,
|
|
634
|
+
"sidebar--open": n.modelValue
|
|
635
|
+
}));
|
|
636
|
+
return (a, o) => (f(), m("aside", {
|
|
637
|
+
class: x(w(e))
|
|
638
|
+
}, [
|
|
639
|
+
_("nav", jt, [
|
|
640
|
+
A(a.$slots, "default")
|
|
641
|
+
]),
|
|
642
|
+
_("div", Et, [
|
|
643
|
+
A(a.$slots, "actions")
|
|
644
|
+
])
|
|
645
|
+
], 2));
|
|
646
|
+
}
|
|
647
|
+
}), Vt = { class: "snackbar__text" }, Ot = {
|
|
569
648
|
key: 0,
|
|
570
649
|
class: "snackbar__action"
|
|
571
|
-
},
|
|
650
|
+
}, St = {
|
|
572
651
|
key: 1,
|
|
573
652
|
class: "snackbar__close"
|
|
574
|
-
},
|
|
653
|
+
}, En = /* @__PURE__ */ I({
|
|
575
654
|
__name: "RSnackbar",
|
|
576
655
|
props: {
|
|
577
656
|
text: { default: "" },
|
|
@@ -584,12 +663,12 @@ const B = /* @__PURE__ */ L({
|
|
|
584
663
|
},
|
|
585
664
|
emits: ["action", "close"],
|
|
586
665
|
setup(t, { emit: n }) {
|
|
587
|
-
const e = t, a =
|
|
666
|
+
const e = t, a = E(!1), o = () => {
|
|
588
667
|
n("action");
|
|
589
668
|
}, s = () => {
|
|
590
669
|
a.value = !1, n("close");
|
|
591
670
|
};
|
|
592
|
-
return
|
|
671
|
+
return Ze(() => {
|
|
593
672
|
e.timeout && setTimeout(() => {
|
|
594
673
|
a.value = !1, n("close");
|
|
595
674
|
}, e.timeout);
|
|
@@ -599,46 +678,46 @@ const B = /* @__PURE__ */ L({
|
|
|
599
678
|
a.value = l;
|
|
600
679
|
},
|
|
601
680
|
{ immediate: !0 }
|
|
602
|
-
), (l, i) => (
|
|
603
|
-
class:
|
|
681
|
+
), (l, i) => (f(), m("div", {
|
|
682
|
+
class: x({
|
|
604
683
|
snackbar: !0,
|
|
605
684
|
"snackbar--closed": !a.value,
|
|
606
685
|
[e.left ? "snackbar--left" : "snackbar--right"]: !0
|
|
607
686
|
})
|
|
608
687
|
}, [
|
|
609
|
-
|
|
610
|
-
e.showAction ? (
|
|
611
|
-
|
|
612
|
-
l.$slots.action ? R("", !0) : (
|
|
688
|
+
_("div", Vt, C(e.text), 1),
|
|
689
|
+
e.showAction ? (f(), m("div", Ot, [
|
|
690
|
+
A(l.$slots, "action"),
|
|
691
|
+
l.$slots.action ? R("", !0) : (f(), N(ut, {
|
|
613
692
|
key: 0,
|
|
614
693
|
size: "small",
|
|
615
694
|
variant: "ghost",
|
|
616
695
|
onClick: o
|
|
617
696
|
}, {
|
|
618
|
-
default:
|
|
619
|
-
|
|
697
|
+
default: Qe(() => [
|
|
698
|
+
Xe(C(e.actionText), 1)
|
|
620
699
|
]),
|
|
621
700
|
_: 1
|
|
622
701
|
}))
|
|
623
702
|
])) : R("", !0),
|
|
624
|
-
e.showClose ? (
|
|
625
|
-
|
|
626
|
-
l.$slots.close ? R("", !0) : (
|
|
703
|
+
e.showClose ? (f(), m("div", St, [
|
|
704
|
+
A(l.$slots, "close"),
|
|
705
|
+
l.$slots.close ? R("", !0) : (f(), N(B, {
|
|
627
706
|
key: 0,
|
|
628
707
|
name: "close",
|
|
629
708
|
size: "14",
|
|
630
|
-
onClick:
|
|
709
|
+
onClick: O(s, ["stop"])
|
|
631
710
|
}, null, 8, ["onClick"]))
|
|
632
711
|
])) : R("", !0)
|
|
633
712
|
], 2));
|
|
634
713
|
}
|
|
635
|
-
}),
|
|
714
|
+
}), Ht = { class: "switch-container" }, Yt = ["id", "checked"], Wt = /* @__PURE__ */ _("span", { class: "slider round" }, null, -1), Pt = ["id", "for"], Ft = {
|
|
636
715
|
key: 0,
|
|
637
716
|
class: "switch-texts__error"
|
|
638
|
-
},
|
|
717
|
+
}, Ut = {
|
|
639
718
|
key: 1,
|
|
640
719
|
class: "switch-texts__hint"
|
|
641
|
-
},
|
|
720
|
+
}, Vn = /* @__PURE__ */ I({
|
|
642
721
|
__name: "RSwitch",
|
|
643
722
|
props: {
|
|
644
723
|
id: { default: "switch" },
|
|
@@ -671,40 +750,40 @@ const B = /* @__PURE__ */ L({
|
|
|
671
750
|
// TODO: find a better way to do this
|
|
672
751
|
immediate: !0
|
|
673
752
|
}
|
|
674
|
-
), (l, i) => (
|
|
675
|
-
|
|
676
|
-
class:
|
|
753
|
+
), (l, i) => (f(), m("div", Ht, [
|
|
754
|
+
_("div", {
|
|
755
|
+
class: x(w(o))
|
|
677
756
|
}, [
|
|
678
|
-
|
|
757
|
+
_("input", {
|
|
679
758
|
id: e.id,
|
|
680
759
|
checked: a.checked,
|
|
681
760
|
class: "switch__input",
|
|
682
761
|
type: "checkbox",
|
|
683
762
|
onChange: s
|
|
684
|
-
}, null, 40,
|
|
685
|
-
|
|
763
|
+
}, null, 40, Yt),
|
|
764
|
+
Wt
|
|
686
765
|
], 2),
|
|
687
|
-
|
|
688
|
-
class:
|
|
766
|
+
_("div", {
|
|
767
|
+
class: x({
|
|
689
768
|
"switch-texts": !0,
|
|
690
769
|
[`switch-texts--${e.size}`]: !0
|
|
691
770
|
})
|
|
692
771
|
}, [
|
|
693
|
-
|
|
772
|
+
_("label", {
|
|
694
773
|
id: e.id,
|
|
695
774
|
class: "switch-texts__label",
|
|
696
775
|
for: e.id
|
|
697
|
-
}, C(e.label), 9,
|
|
698
|
-
e.errorMsg ? (
|
|
776
|
+
}, C(e.label), 9, Pt),
|
|
777
|
+
e.errorMsg ? (f(), m("p", Ft, C(e.errorMsg), 1)) : (f(), m("p", Ut, C(e.hint), 1))
|
|
699
778
|
], 2)
|
|
700
779
|
]));
|
|
701
780
|
}
|
|
702
781
|
});
|
|
703
782
|
var le = /* @__PURE__ */ ((t) => (t.DEFAULT = "default", t.TEXT_ONLY = "text-only", t.ICON_ONLY = "icon-only", t))(le || {});
|
|
704
|
-
const
|
|
783
|
+
const Zt = ["aria-disabled", "aria-selected", "disabled"], Qt = {
|
|
705
784
|
key: 2,
|
|
706
785
|
class: "tab-item__label"
|
|
707
|
-
},
|
|
786
|
+
}, Xt = /* @__PURE__ */ I({
|
|
708
787
|
__name: "RTabItem",
|
|
709
788
|
props: {
|
|
710
789
|
id: null,
|
|
@@ -724,39 +803,39 @@ const jt = ["aria-disabled", "aria-selected", "disabled"], Et = {
|
|
|
724
803
|
function o(s) {
|
|
725
804
|
n("update:modelValue", s);
|
|
726
805
|
}
|
|
727
|
-
return (s, l) => (
|
|
806
|
+
return (s, l) => (f(), m("button", {
|
|
728
807
|
"aria-disabled": e.disabled,
|
|
729
808
|
"aria-selected": e.active,
|
|
730
|
-
class:
|
|
809
|
+
class: x(w(a)),
|
|
731
810
|
disabled: e.disabled,
|
|
732
811
|
onClick: l[0] || (l[0] = (i) => o(e.id))
|
|
733
812
|
}, [
|
|
734
|
-
!s.$slots.icon && t.variant !== w(le).TEXT_ONLY ? (
|
|
813
|
+
!s.$slots.icon && t.variant !== w(le).TEXT_ONLY ? (f(), N(B, {
|
|
735
814
|
key: 0,
|
|
736
815
|
class: "tab-item__icon",
|
|
737
816
|
name: e.icon,
|
|
738
817
|
size: "16"
|
|
739
|
-
}, null, 8, ["name"])) :
|
|
740
|
-
t.variant !== w(le).ICON_ONLY ? (
|
|
741
|
-
], 10,
|
|
818
|
+
}, null, 8, ["name"])) : A(s.$slots, "custom-icon", { key: 1 }),
|
|
819
|
+
t.variant !== w(le).ICON_ONLY ? (f(), m("span", Qt, C(e.label), 1)) : R("", !0)
|
|
820
|
+
], 10, Zt));
|
|
742
821
|
}
|
|
743
|
-
}),
|
|
822
|
+
}), Kt = { class: "tabs-wrapper" }, Gt = { class: "tab-content" }, On = /* @__PURE__ */ I({
|
|
744
823
|
__name: "RTabs",
|
|
745
824
|
props: {
|
|
746
825
|
tabs: { default: () => [] },
|
|
747
826
|
scrollable: { type: Boolean, default: !1 }
|
|
748
827
|
},
|
|
749
828
|
setup(t) {
|
|
750
|
-
const n = t, e =
|
|
829
|
+
const n = t, e = E(0), a = $(() => ({
|
|
751
830
|
tabs: !0,
|
|
752
831
|
"tabs--scrollable": n.scrollable
|
|
753
832
|
}));
|
|
754
|
-
return (o, s) => (
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
class:
|
|
833
|
+
return (o, s) => (f(), m(Q, null, [
|
|
834
|
+
_("div", Kt, [
|
|
835
|
+
_("div", {
|
|
836
|
+
class: x(w(a))
|
|
758
837
|
}, [
|
|
759
|
-
(
|
|
838
|
+
(f(!0), m(Q, null, q(n.tabs, (l, i) => (f(), N(Xt, {
|
|
760
839
|
id: l.id,
|
|
761
840
|
key: i,
|
|
762
841
|
modelValue: e.value,
|
|
@@ -768,18 +847,18 @@ const jt = ["aria-disabled", "aria-selected", "disabled"], Et = {
|
|
|
768
847
|
}, null, 8, ["id", "modelValue", "active", "disabled", "icon", "label"]))), 128))
|
|
769
848
|
], 2)
|
|
770
849
|
]),
|
|
771
|
-
|
|
772
|
-
|
|
850
|
+
_("div", Gt, [
|
|
851
|
+
A(o.$slots, "tab", { activeTab: e.value })
|
|
773
852
|
])
|
|
774
853
|
], 64));
|
|
775
854
|
}
|
|
776
|
-
}),
|
|
855
|
+
}), Jt = { class: "container" }, qt = ["id", "disabled", "placeholder", "value"], en = {
|
|
777
856
|
key: 1,
|
|
778
857
|
class: "textarea__error"
|
|
779
|
-
},
|
|
858
|
+
}, tn = {
|
|
780
859
|
key: 2,
|
|
781
860
|
class: "textarea__hint"
|
|
782
|
-
},
|
|
861
|
+
}, Sn = /* @__PURE__ */ I({
|
|
783
862
|
__name: "RTextArea",
|
|
784
863
|
props: {
|
|
785
864
|
id: { default: "" },
|
|
@@ -806,17 +885,17 @@ const jt = ["aria-disabled", "aria-selected", "disabled"], Et = {
|
|
|
806
885
|
{
|
|
807
886
|
immediate: !0
|
|
808
887
|
}
|
|
809
|
-
), (s, l) => (
|
|
810
|
-
e.label ? (
|
|
888
|
+
), (s, l) => (f(), m("div", Jt, [
|
|
889
|
+
e.label ? (f(), N(Le, {
|
|
811
890
|
key: 0,
|
|
812
891
|
id: "textarea",
|
|
813
892
|
class: "textarea__label",
|
|
814
893
|
for: "textarea",
|
|
815
894
|
text: e.label
|
|
816
895
|
}, null, 8, ["text"])) : R("", !0),
|
|
817
|
-
|
|
896
|
+
_("textarea", {
|
|
818
897
|
id: e.id,
|
|
819
|
-
class:
|
|
898
|
+
class: x(["textarea", {
|
|
820
899
|
"textarea--error": e.errorMsg,
|
|
821
900
|
"textarea--disabled": e.disabled
|
|
822
901
|
}]),
|
|
@@ -824,18 +903,18 @@ const jt = ["aria-disabled", "aria-selected", "disabled"], Et = {
|
|
|
824
903
|
placeholder: e.placeholder,
|
|
825
904
|
value: a.value,
|
|
826
905
|
onInput: o
|
|
827
|
-
}, null, 42,
|
|
828
|
-
e.errorMsg ? (
|
|
906
|
+
}, null, 42, qt),
|
|
907
|
+
e.errorMsg ? (f(), m("p", en, C(e.errorMsg), 1)) : (f(), m("p", tn, C(e.hint), 1))
|
|
829
908
|
]));
|
|
830
909
|
}
|
|
831
|
-
}),
|
|
832
|
-
class: /* @__PURE__ */
|
|
910
|
+
}), nn = {
|
|
911
|
+
class: /* @__PURE__ */ x({
|
|
833
912
|
textfield__wrapper: !0
|
|
834
913
|
})
|
|
835
|
-
},
|
|
914
|
+
}, on = { class: "input-wrapper" }, an = ["id", "disabled", "placeholder", "type", "value"], sn = { class: "textfield__error" }, ln = {
|
|
836
915
|
key: 0,
|
|
837
916
|
class: "textfield__hint"
|
|
838
|
-
},
|
|
917
|
+
}, Hn = /* @__PURE__ */ I({
|
|
839
918
|
__name: "RTextfield",
|
|
840
919
|
props: {
|
|
841
920
|
id: { default: "" },
|
|
@@ -860,106 +939,106 @@ const jt = ["aria-disabled", "aria-selected", "disabled"], Et = {
|
|
|
860
939
|
"click:clear"
|
|
861
940
|
],
|
|
862
941
|
setup(t, { emit: n }) {
|
|
863
|
-
const e = t, a =
|
|
942
|
+
const e = t, a = E(), o = G({
|
|
864
943
|
value: ""
|
|
865
|
-
}), s =
|
|
944
|
+
}), s = E(e.type), l = {
|
|
866
945
|
password: "lock_outline",
|
|
867
946
|
email: "mail_outline",
|
|
868
947
|
tel: "phone",
|
|
869
948
|
url: "link",
|
|
870
949
|
number: "123",
|
|
871
950
|
text: ""
|
|
872
|
-
}, i =
|
|
873
|
-
const { disabled:
|
|
951
|
+
}, i = E(!1), r = $(() => !!o.value), u = $(() => {
|
|
952
|
+
const { disabled: T, loading: z, clearable: j, errorMsg: V } = e;
|
|
874
953
|
return {
|
|
875
954
|
textfield: !0,
|
|
876
|
-
"textfield--error":
|
|
877
|
-
"textfield--loading":
|
|
878
|
-
"textfield--disabled":
|
|
879
|
-
"textfield--clearable":
|
|
955
|
+
"textfield--error": V == null ? void 0 : V.length,
|
|
956
|
+
"textfield--loading": z,
|
|
957
|
+
"textfield--disabled": T,
|
|
958
|
+
"textfield--clearable": j,
|
|
880
959
|
"textfield--focus": i.value,
|
|
881
960
|
"textfield--filled": r.value
|
|
882
961
|
};
|
|
883
|
-
}),
|
|
962
|
+
}), g = $(() => ({
|
|
884
963
|
"textfield__prepend-icon": !0,
|
|
885
964
|
"textfield__prepend-icon--loading": e.loading,
|
|
886
|
-
"textfield__prepend-icon--error":
|
|
965
|
+
"textfield__prepend-icon--error": v.value && r.value
|
|
887
966
|
})), d = $(() => ({
|
|
888
967
|
"textfield__append-icon": !0,
|
|
889
968
|
"textfield__append-icon--clear": b.value,
|
|
890
|
-
"textfield__append-icon--error":
|
|
891
|
-
})), y = $(() => o.value.length > 0),
|
|
892
|
-
var
|
|
893
|
-
return (
|
|
969
|
+
"textfield__append-icon--error": v.value
|
|
970
|
+
})), y = $(() => o.value.length > 0), v = $(() => {
|
|
971
|
+
var T;
|
|
972
|
+
return (T = e.errorMsg) == null ? void 0 : T.length;
|
|
894
973
|
}), b = $(() => e.clearable && y.value), h = $(() => {
|
|
895
|
-
const { prependIcon:
|
|
896
|
-
return
|
|
974
|
+
const { prependIcon: T, type: z } = e;
|
|
975
|
+
return T || l[z];
|
|
897
976
|
}), c = $(() => {
|
|
898
|
-
const { appendIcon:
|
|
899
|
-
return
|
|
900
|
-
}),
|
|
977
|
+
const { appendIcon: T, type: z } = e;
|
|
978
|
+
return v.value ? "error_outline" : b.value && ["text", "email"].includes(z) ? "clear" : z === "password" && s.value === "password" ? "visibility" : z === "password" && s.value === "text" ? "visibility_off" : T;
|
|
979
|
+
}), p = () => {
|
|
901
980
|
i.value = !0, n("focus", {
|
|
902
981
|
value: o.value
|
|
903
982
|
});
|
|
904
|
-
},
|
|
983
|
+
}, k = () => {
|
|
905
984
|
i.value = !1, n("blur", {
|
|
906
985
|
value: o.value
|
|
907
986
|
});
|
|
908
987
|
}, M = () => {
|
|
909
|
-
var
|
|
988
|
+
var T;
|
|
910
989
|
if (b.value) {
|
|
911
|
-
o.value = "", (
|
|
990
|
+
o.value = "", (T = a.value) == null || T.focus(), n("click:clear", {
|
|
912
991
|
value: o.value
|
|
913
992
|
});
|
|
914
993
|
return;
|
|
915
994
|
}
|
|
916
995
|
n("click:icon", {
|
|
917
996
|
value: o.value
|
|
918
|
-
}),
|
|
919
|
-
},
|
|
997
|
+
}), D();
|
|
998
|
+
}, D = () => {
|
|
920
999
|
s.value = s.value === "password" ? "text" : "password";
|
|
921
|
-
},
|
|
922
|
-
const
|
|
923
|
-
o.value =
|
|
924
|
-
},
|
|
925
|
-
var
|
|
926
|
-
(
|
|
1000
|
+
}, L = (T) => {
|
|
1001
|
+
const z = T.target;
|
|
1002
|
+
o.value = z.value;
|
|
1003
|
+
}, W = () => {
|
|
1004
|
+
var T;
|
|
1005
|
+
(T = a.value) == null || T.focus();
|
|
927
1006
|
};
|
|
928
1007
|
return U(
|
|
929
1008
|
() => e.modelValue,
|
|
930
|
-
(
|
|
931
|
-
o.value =
|
|
1009
|
+
(T) => {
|
|
1010
|
+
o.value = T;
|
|
932
1011
|
},
|
|
933
1012
|
{
|
|
934
1013
|
immediate: !0
|
|
935
1014
|
}
|
|
936
1015
|
), U(
|
|
937
1016
|
() => o.value,
|
|
938
|
-
(
|
|
939
|
-
n("update:modelValue",
|
|
1017
|
+
(T) => {
|
|
1018
|
+
n("update:modelValue", T);
|
|
940
1019
|
}
|
|
941
|
-
), (
|
|
942
|
-
|
|
943
|
-
|
|
1020
|
+
), (T, z) => (f(), m("fieldset", null, [
|
|
1021
|
+
_("div", nn, [
|
|
1022
|
+
ne(Le, {
|
|
944
1023
|
id: e.id,
|
|
945
|
-
class:
|
|
1024
|
+
class: x({
|
|
946
1025
|
textfield__label: !0
|
|
947
1026
|
}),
|
|
948
1027
|
for: e.id,
|
|
949
1028
|
text: e.label,
|
|
950
|
-
onClick:
|
|
1029
|
+
onClick: W
|
|
951
1030
|
}, null, 8, ["id", "for", "text"]),
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
class:
|
|
1031
|
+
_("div", on, [
|
|
1032
|
+
_("div", {
|
|
1033
|
+
class: x(w(u))
|
|
955
1034
|
}, [
|
|
956
|
-
w(h) ? (
|
|
1035
|
+
w(h) ? (f(), N(B, {
|
|
957
1036
|
key: 0,
|
|
958
|
-
class:
|
|
1037
|
+
class: x(w(g)),
|
|
959
1038
|
name: w(h),
|
|
960
1039
|
size: 16
|
|
961
1040
|
}, null, 8, ["class", "name"])) : R("", !0),
|
|
962
|
-
|
|
1041
|
+
_("input", {
|
|
963
1042
|
ref_key: "inputRef",
|
|
964
1043
|
ref: a,
|
|
965
1044
|
id: e.id,
|
|
@@ -967,43 +1046,43 @@ const jt = ["aria-disabled", "aria-selected", "disabled"], Et = {
|
|
|
967
1046
|
placeholder: e.placeholder,
|
|
968
1047
|
type: s.value,
|
|
969
1048
|
value: o.value,
|
|
970
|
-
onBlur:
|
|
971
|
-
onFocus:
|
|
972
|
-
onInput:
|
|
973
|
-
}, null, 40,
|
|
974
|
-
w(c) ? (
|
|
1049
|
+
onBlur: k,
|
|
1050
|
+
onFocus: p,
|
|
1051
|
+
onInput: L
|
|
1052
|
+
}, null, 40, an),
|
|
1053
|
+
w(c) ? (f(), N(B, {
|
|
975
1054
|
key: 1,
|
|
976
|
-
class:
|
|
1055
|
+
class: x(w(d)),
|
|
977
1056
|
color: e.iconColor,
|
|
978
1057
|
name: `${w(c)}`,
|
|
979
1058
|
size: 16,
|
|
980
1059
|
onClick: M
|
|
981
1060
|
}, null, 8, ["class", "color", "name"])) : R("", !0)
|
|
982
1061
|
], 2),
|
|
983
|
-
|
|
984
|
-
e.errorMsg ? R("", !0) : (
|
|
1062
|
+
_("div", sn, C(e.errorMsg), 1),
|
|
1063
|
+
e.errorMsg ? R("", !0) : (f(), m("div", ln, C(e.hint), 1))
|
|
985
1064
|
])
|
|
986
1065
|
])
|
|
987
1066
|
]));
|
|
988
1067
|
}
|
|
989
1068
|
});
|
|
990
|
-
function
|
|
1069
|
+
function oe(t) {
|
|
991
1070
|
return t.split("-")[0];
|
|
992
1071
|
}
|
|
993
1072
|
function ue(t) {
|
|
994
1073
|
return t.split("-")[1];
|
|
995
1074
|
}
|
|
996
|
-
function
|
|
997
|
-
return ["top", "bottom"].includes(
|
|
1075
|
+
function ae(t) {
|
|
1076
|
+
return ["top", "bottom"].includes(oe(t)) ? "x" : "y";
|
|
998
1077
|
}
|
|
999
1078
|
function ge(t) {
|
|
1000
1079
|
return t === "y" ? "height" : "width";
|
|
1001
1080
|
}
|
|
1002
|
-
function
|
|
1081
|
+
function xe(t, n, e) {
|
|
1003
1082
|
let { reference: a, floating: o } = t;
|
|
1004
|
-
const s = a.x + a.width / 2 - o.width / 2, l = a.y + a.height / 2 - o.height / 2, i =
|
|
1083
|
+
const s = a.x + a.width / 2 - o.width / 2, l = a.y + a.height / 2 - o.height / 2, i = ae(n), r = ge(i), u = a[r] / 2 - o[r] / 2, g = i === "x";
|
|
1005
1084
|
let d;
|
|
1006
|
-
switch (
|
|
1085
|
+
switch (oe(n)) {
|
|
1007
1086
|
case "top":
|
|
1008
1087
|
d = { x: s, y: a.y - o.height };
|
|
1009
1088
|
break;
|
|
@@ -1021,95 +1100,95 @@ function ke(t, n, e) {
|
|
|
1021
1100
|
}
|
|
1022
1101
|
switch (ue(n)) {
|
|
1023
1102
|
case "start":
|
|
1024
|
-
d[i] -= u * (e &&
|
|
1103
|
+
d[i] -= u * (e && g ? -1 : 1);
|
|
1025
1104
|
break;
|
|
1026
1105
|
case "end":
|
|
1027
|
-
d[i] += u * (e &&
|
|
1106
|
+
d[i] += u * (e && g ? -1 : 1);
|
|
1028
1107
|
}
|
|
1029
1108
|
return d;
|
|
1030
1109
|
}
|
|
1031
|
-
const
|
|
1110
|
+
const rn = async (t, n, e) => {
|
|
1032
1111
|
const { placement: a = "bottom", strategy: o = "absolute", middleware: s = [], platform: l } = e, i = s.filter(Boolean), r = await (l.isRTL == null ? void 0 : l.isRTL(n));
|
|
1033
|
-
let u = await l.getElementRects({ reference: t, floating: n, strategy: o }), { x:
|
|
1112
|
+
let u = await l.getElementRects({ reference: t, floating: n, strategy: o }), { x: g, y: d } = xe(u, a, r), y = a, v = {}, b = 0;
|
|
1034
1113
|
for (let h = 0; h < i.length; h++) {
|
|
1035
|
-
const { name: c, fn:
|
|
1036
|
-
|
|
1114
|
+
const { name: c, fn: p } = i[h], { x: k, y: M, data: D, reset: L } = await p({ x: g, y: d, initialPlacement: a, placement: y, strategy: o, middlewareData: v, rects: u, platform: l, elements: { reference: t, floating: n } });
|
|
1115
|
+
g = k ?? g, d = M ?? d, v = { ...v, [c]: { ...v[c], ...D } }, L && b <= 50 && (b++, typeof L == "object" && (L.placement && (y = L.placement), L.rects && (u = L.rects === !0 ? await l.getElementRects({ reference: t, floating: n, strategy: o }) : L.rects), { x: g, y: d } = xe(u, y, r)), h = -1);
|
|
1037
1116
|
}
|
|
1038
|
-
return { x:
|
|
1117
|
+
return { x: g, y: d, placement: y, strategy: o, middlewareData: v };
|
|
1039
1118
|
};
|
|
1040
|
-
function
|
|
1119
|
+
function Ne(t) {
|
|
1041
1120
|
return typeof t != "number" ? function(n) {
|
|
1042
1121
|
return { top: 0, right: 0, bottom: 0, left: 0, ...n };
|
|
1043
1122
|
}(t) : { top: t, right: t, bottom: t, left: t };
|
|
1044
1123
|
}
|
|
1045
|
-
function
|
|
1124
|
+
function ie(t) {
|
|
1046
1125
|
return { ...t, top: t.y, left: t.x, right: t.x + t.width, bottom: t.y + t.height };
|
|
1047
1126
|
}
|
|
1048
|
-
async function
|
|
1127
|
+
async function re(t, n) {
|
|
1049
1128
|
var e;
|
|
1050
1129
|
n === void 0 && (n = {});
|
|
1051
|
-
const { x: a, y: o, platform: s, rects: l, elements: i, strategy: r } = t, { boundary: u = "clippingAncestors", rootBoundary:
|
|
1052
|
-
return { top: c.top -
|
|
1130
|
+
const { x: a, y: o, platform: s, rects: l, elements: i, strategy: r } = t, { boundary: u = "clippingAncestors", rootBoundary: g = "viewport", elementContext: d = "floating", altBoundary: y = !1, padding: v = 0 } = n, b = Ne(v), h = i[y ? d === "floating" ? "reference" : "floating" : d], c = ie(await s.getClippingRect({ element: (e = await (s.isElement == null ? void 0 : s.isElement(h))) == null || e ? h : h.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(i.floating)), boundary: u, rootBoundary: g, strategy: r })), p = ie(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: d === "floating" ? { ...l.floating, x: a, y: o } : l.reference, offsetParent: await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(i.floating)), strategy: r }) : l[d]);
|
|
1131
|
+
return { top: c.top - p.top + b.top, bottom: p.bottom - c.bottom + b.bottom, left: c.left - p.left + b.left, right: p.right - c.right + b.right };
|
|
1053
1132
|
}
|
|
1054
|
-
const
|
|
1133
|
+
const cn = Math.min, dn = Math.max;
|
|
1055
1134
|
function me(t, n, e) {
|
|
1056
|
-
return
|
|
1135
|
+
return dn(t, cn(n, e));
|
|
1057
1136
|
}
|
|
1058
|
-
const
|
|
1137
|
+
const un = (t) => ({ name: "arrow", options: t, async fn(n) {
|
|
1059
1138
|
const { element: e, padding: a = 0 } = t ?? {}, { x: o, y: s, placement: l, rects: i, platform: r } = n;
|
|
1060
1139
|
if (e == null)
|
|
1061
1140
|
return {};
|
|
1062
|
-
const u =
|
|
1063
|
-
let
|
|
1064
|
-
|
|
1065
|
-
const
|
|
1066
|
-
return { [d]:
|
|
1067
|
-
} }),
|
|
1068
|
-
function
|
|
1069
|
-
return t.replace(/left|right|bottom|top/g, (n) =>
|
|
1141
|
+
const u = Ne(a), g = { x: o, y: s }, d = ae(l), y = ue(l), v = ge(d), b = await r.getDimensions(e), h = d === "y" ? "top" : "left", c = d === "y" ? "bottom" : "right", p = i.reference[v] + i.reference[d] - g[d] - i.floating[v], k = g[d] - i.reference[d], M = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(e));
|
|
1142
|
+
let D = M ? d === "y" ? M.clientHeight || 0 : M.clientWidth || 0 : 0;
|
|
1143
|
+
D === 0 && (D = i.floating[v]);
|
|
1144
|
+
const L = p / 2 - k / 2, W = u[h], T = D - b[v] - u[c], z = D / 2 - b[v] / 2 + L, j = me(W, z, T), V = (y === "start" ? u[h] : u[c]) > 0 && z !== j && i.reference[v] <= i.floating[v];
|
|
1145
|
+
return { [d]: g[d] - (V ? z < W ? W - z : T - z : 0), data: { [d]: j, centerOffset: z - j } };
|
|
1146
|
+
} }), fn = { left: "right", right: "left", bottom: "top", top: "bottom" };
|
|
1147
|
+
function ce(t) {
|
|
1148
|
+
return t.replace(/left|right|bottom|top/g, (n) => fn[n]);
|
|
1070
1149
|
}
|
|
1071
|
-
function
|
|
1150
|
+
function pn(t, n, e) {
|
|
1072
1151
|
e === void 0 && (e = !1);
|
|
1073
|
-
const a = ue(t), o =
|
|
1152
|
+
const a = ue(t), o = ae(t), s = ge(o);
|
|
1074
1153
|
let l = o === "x" ? a === (e ? "end" : "start") ? "right" : "left" : a === "start" ? "bottom" : "top";
|
|
1075
|
-
return n.reference[s] > n.floating[s] && (l =
|
|
1154
|
+
return n.reference[s] > n.floating[s] && (l = ce(l)), { main: l, cross: ce(l) };
|
|
1076
1155
|
}
|
|
1077
|
-
const
|
|
1156
|
+
const hn = { start: "end", end: "start" };
|
|
1078
1157
|
function we(t) {
|
|
1079
|
-
return t.replace(/start|end/g, (n) =>
|
|
1158
|
+
return t.replace(/start|end/g, (n) => hn[n]);
|
|
1080
1159
|
}
|
|
1081
|
-
const
|
|
1082
|
-
|
|
1083
|
-
const
|
|
1160
|
+
const Be = ["top", "right", "bottom", "left"];
|
|
1161
|
+
Be.reduce((t, n) => t.concat(n, n + "-start", n + "-end"), []);
|
|
1162
|
+
const mn = function(t) {
|
|
1084
1163
|
return t === void 0 && (t = {}), { name: "flip", options: t, async fn(n) {
|
|
1085
1164
|
var e;
|
|
1086
|
-
const { placement: a, middlewareData: o, rects: s, initialPlacement: l, platform: i, elements: r } = n, { mainAxis: u = !0, crossAxis:
|
|
1087
|
-
const
|
|
1088
|
-
return [we(
|
|
1089
|
-
}(l)),
|
|
1090
|
-
let
|
|
1091
|
-
if (u && M.push(
|
|
1092
|
-
const { main:
|
|
1093
|
-
M.push(
|
|
1165
|
+
const { placement: a, middlewareData: o, rects: s, initialPlacement: l, platform: i, elements: r } = n, { mainAxis: u = !0, crossAxis: g = !0, fallbackPlacements: d, fallbackStrategy: y = "bestFit", flipAlignment: v = !0, ...b } = t, h = oe(a), c = d || (h === l || !v ? [ce(l)] : function(z) {
|
|
1166
|
+
const j = ce(z);
|
|
1167
|
+
return [we(z), j, we(j)];
|
|
1168
|
+
}(l)), p = [l, ...c], k = await re(n, b), M = [];
|
|
1169
|
+
let D = ((e = o.flip) == null ? void 0 : e.overflows) || [];
|
|
1170
|
+
if (u && M.push(k[h]), g) {
|
|
1171
|
+
const { main: z, cross: j } = pn(a, s, await (i.isRTL == null ? void 0 : i.isRTL(r.floating)));
|
|
1172
|
+
M.push(k[z], k[j]);
|
|
1094
1173
|
}
|
|
1095
|
-
if (
|
|
1096
|
-
var
|
|
1097
|
-
const
|
|
1098
|
-
if (
|
|
1099
|
-
return { data: { index:
|
|
1100
|
-
let
|
|
1174
|
+
if (D = [...D, { placement: a, overflows: M }], !M.every((z) => z <= 0)) {
|
|
1175
|
+
var L, W;
|
|
1176
|
+
const z = ((L = (W = o.flip) == null ? void 0 : W.index) != null ? L : 0) + 1, j = p[z];
|
|
1177
|
+
if (j)
|
|
1178
|
+
return { data: { index: z, overflows: D }, reset: { placement: j } };
|
|
1179
|
+
let V = "bottom";
|
|
1101
1180
|
switch (y) {
|
|
1102
1181
|
case "bestFit": {
|
|
1103
|
-
var
|
|
1104
|
-
const be = (
|
|
1105
|
-
be && (
|
|
1182
|
+
var T;
|
|
1183
|
+
const be = (T = D.map((se) => [se, se.overflows.filter((J) => J > 0).reduce((J, Ye) => J + Ye, 0)]).sort((se, J) => se[1] - J[1])[0]) == null ? void 0 : T[0].placement;
|
|
1184
|
+
be && (V = be);
|
|
1106
1185
|
break;
|
|
1107
1186
|
}
|
|
1108
1187
|
case "initialPlacement":
|
|
1109
|
-
|
|
1188
|
+
V = l;
|
|
1110
1189
|
}
|
|
1111
|
-
if (a !==
|
|
1112
|
-
return { reset: { placement:
|
|
1190
|
+
if (a !== V)
|
|
1191
|
+
return { reset: { placement: V } };
|
|
1113
1192
|
}
|
|
1114
1193
|
return {};
|
|
1115
1194
|
} };
|
|
@@ -1118,132 +1197,132 @@ function $e(t, n) {
|
|
|
1118
1197
|
return { top: t.top - n.height, right: t.right - n.width, bottom: t.bottom - n.height, left: t.left - n.width };
|
|
1119
1198
|
}
|
|
1120
1199
|
function Me(t) {
|
|
1121
|
-
return
|
|
1200
|
+
return Be.some((n) => t[n] >= 0);
|
|
1122
1201
|
}
|
|
1123
|
-
const
|
|
1202
|
+
const _n = function(t) {
|
|
1124
1203
|
let { strategy: n = "referenceHidden", ...e } = t === void 0 ? {} : t;
|
|
1125
1204
|
return { name: "hide", async fn(a) {
|
|
1126
1205
|
const { rects: o } = a;
|
|
1127
1206
|
switch (n) {
|
|
1128
1207
|
case "referenceHidden": {
|
|
1129
|
-
const s = $e(await
|
|
1208
|
+
const s = $e(await re(a, { ...e, elementContext: "reference" }), o.reference);
|
|
1130
1209
|
return { data: { referenceHiddenOffsets: s, referenceHidden: Me(s) } };
|
|
1131
1210
|
}
|
|
1132
1211
|
case "escaped": {
|
|
1133
|
-
const s = $e(await
|
|
1212
|
+
const s = $e(await re(a, { ...e, altBoundary: !0 }), o.floating);
|
|
1134
1213
|
return { data: { escapedOffsets: s, escaped: Me(s) } };
|
|
1135
1214
|
}
|
|
1136
1215
|
default:
|
|
1137
1216
|
return {};
|
|
1138
1217
|
}
|
|
1139
1218
|
} };
|
|
1140
|
-
},
|
|
1219
|
+
}, gn = function(t) {
|
|
1141
1220
|
return t === void 0 && (t = 0), { name: "offset", options: t, async fn(n) {
|
|
1142
1221
|
const { x: e, y: a } = n, o = await async function(s, l) {
|
|
1143
|
-
const { placement: i, platform: r, elements: u } = s,
|
|
1144
|
-
let { mainAxis:
|
|
1145
|
-
return y && typeof M == "number" && (
|
|
1222
|
+
const { placement: i, platform: r, elements: u } = s, g = await (r.isRTL == null ? void 0 : r.isRTL(u.floating)), d = oe(i), y = ue(i), v = ae(i) === "x", b = ["left", "top"].includes(d) ? -1 : 1, h = g && v ? -1 : 1, c = typeof l == "function" ? l(s) : l;
|
|
1223
|
+
let { mainAxis: p, crossAxis: k, alignmentAxis: M } = typeof c == "number" ? { mainAxis: c, crossAxis: 0, alignmentAxis: null } : { mainAxis: 0, crossAxis: 0, alignmentAxis: null, ...c };
|
|
1224
|
+
return y && typeof M == "number" && (k = y === "end" ? -1 * M : M), v ? { x: k * h, y: p * b } : { x: p * b, y: k * h };
|
|
1146
1225
|
}(n, t);
|
|
1147
1226
|
return { x: e + o.x, y: a + o.y, data: o };
|
|
1148
1227
|
} };
|
|
1149
1228
|
};
|
|
1150
|
-
function
|
|
1229
|
+
function vn(t) {
|
|
1151
1230
|
return t === "x" ? "y" : "x";
|
|
1152
1231
|
}
|
|
1153
|
-
const
|
|
1232
|
+
const bn = function(t) {
|
|
1154
1233
|
return t === void 0 && (t = {}), { name: "shift", options: t, async fn(n) {
|
|
1155
1234
|
const { x: e, y: a, placement: o } = n, { mainAxis: s = !0, crossAxis: l = !1, limiter: i = { fn: (c) => {
|
|
1156
|
-
let { x:
|
|
1157
|
-
return { x:
|
|
1158
|
-
} }, ...r } = t, u = { x: e, y: a },
|
|
1159
|
-
let
|
|
1235
|
+
let { x: p, y: k } = c;
|
|
1236
|
+
return { x: p, y: k };
|
|
1237
|
+
} }, ...r } = t, u = { x: e, y: a }, g = await re(n, r), d = ae(oe(o)), y = vn(d);
|
|
1238
|
+
let v = u[d], b = u[y];
|
|
1160
1239
|
if (s) {
|
|
1161
1240
|
const c = d === "y" ? "bottom" : "right";
|
|
1162
|
-
|
|
1241
|
+
v = me(v + g[d === "y" ? "top" : "left"], v, v - g[c]);
|
|
1163
1242
|
}
|
|
1164
1243
|
if (l) {
|
|
1165
1244
|
const c = y === "y" ? "bottom" : "right";
|
|
1166
|
-
b = me(b +
|
|
1245
|
+
b = me(b + g[y === "y" ? "top" : "left"], b, b - g[c]);
|
|
1167
1246
|
}
|
|
1168
|
-
const h = i.fn({ ...n, [d]:
|
|
1247
|
+
const h = i.fn({ ...n, [d]: v, [y]: b });
|
|
1169
1248
|
return { ...h, data: { x: h.x - e, y: h.y - a } };
|
|
1170
1249
|
} };
|
|
1171
1250
|
};
|
|
1172
|
-
function
|
|
1251
|
+
function De(t) {
|
|
1173
1252
|
return t && t.document && t.location && t.alert && t.setInterval;
|
|
1174
1253
|
}
|
|
1175
|
-
function
|
|
1254
|
+
function Y(t) {
|
|
1176
1255
|
if (t == null)
|
|
1177
1256
|
return window;
|
|
1178
|
-
if (!
|
|
1257
|
+
if (!De(t)) {
|
|
1179
1258
|
const n = t.ownerDocument;
|
|
1180
1259
|
return n && n.defaultView || window;
|
|
1181
1260
|
}
|
|
1182
1261
|
return t;
|
|
1183
1262
|
}
|
|
1184
|
-
function
|
|
1185
|
-
return
|
|
1263
|
+
function S(t) {
|
|
1264
|
+
return Y(t).getComputedStyle(t);
|
|
1186
1265
|
}
|
|
1187
1266
|
function Z(t) {
|
|
1188
|
-
return
|
|
1267
|
+
return De(t) ? "" : t ? (t.nodeName || "").toLowerCase() : "";
|
|
1189
1268
|
}
|
|
1190
|
-
function
|
|
1269
|
+
function je() {
|
|
1191
1270
|
const t = navigator.userAgentData;
|
|
1192
1271
|
return t && Array.isArray(t.brands) ? t.brands.map((n) => n.brand + "/" + n.version).join(" ") : navigator.userAgent;
|
|
1193
1272
|
}
|
|
1194
1273
|
function H(t) {
|
|
1195
|
-
return t instanceof
|
|
1274
|
+
return t instanceof Y(t).HTMLElement;
|
|
1196
1275
|
}
|
|
1197
1276
|
function K(t) {
|
|
1198
|
-
return t instanceof
|
|
1277
|
+
return t instanceof Y(t).Element;
|
|
1199
1278
|
}
|
|
1200
|
-
function
|
|
1201
|
-
return typeof ShadowRoot > "u" ? !1 : t instanceof
|
|
1279
|
+
function Te(t) {
|
|
1280
|
+
return typeof ShadowRoot > "u" ? !1 : t instanceof Y(t).ShadowRoot || t instanceof ShadowRoot;
|
|
1202
1281
|
}
|
|
1203
1282
|
function fe(t) {
|
|
1204
|
-
const { overflow: n, overflowX: e, overflowY: a, display: o } =
|
|
1283
|
+
const { overflow: n, overflowX: e, overflowY: a, display: o } = S(t);
|
|
1205
1284
|
return /auto|scroll|overlay|hidden/.test(n + a + e) && !["inline", "contents"].includes(o);
|
|
1206
1285
|
}
|
|
1207
|
-
function
|
|
1286
|
+
function yn(t) {
|
|
1208
1287
|
return ["table", "td", "th"].includes(Z(t));
|
|
1209
1288
|
}
|
|
1210
1289
|
function _e(t) {
|
|
1211
|
-
const n = /firefox/i.test(
|
|
1290
|
+
const n = /firefox/i.test(je()), e = S(t), a = e.backdropFilter || e.WebkitBackdropFilter;
|
|
1212
1291
|
return e.transform !== "none" || e.perspective !== "none" || !!a && a !== "none" || n && e.willChange === "filter" || n && !!e.filter && e.filter !== "none" || ["transform", "perspective"].some((o) => e.willChange.includes(o)) || ["paint", "layout", "strict", "content"].some((o) => {
|
|
1213
1292
|
const s = e.contain;
|
|
1214
1293
|
return s != null && s.includes(o);
|
|
1215
1294
|
});
|
|
1216
1295
|
}
|
|
1217
|
-
function
|
|
1218
|
-
return !/^((?!chrome|android).)*safari/i.test(
|
|
1296
|
+
function Ee() {
|
|
1297
|
+
return !/^((?!chrome|android).)*safari/i.test(je());
|
|
1219
1298
|
}
|
|
1220
1299
|
function ve(t) {
|
|
1221
1300
|
return ["html", "body", "#document"].includes(Z(t));
|
|
1222
1301
|
}
|
|
1223
|
-
const
|
|
1302
|
+
const ze = Math.min, ee = Math.max, de = Math.round;
|
|
1224
1303
|
function X(t, n, e) {
|
|
1225
1304
|
var a, o, s, l;
|
|
1226
1305
|
n === void 0 && (n = !1), e === void 0 && (e = !1);
|
|
1227
1306
|
const i = t.getBoundingClientRect();
|
|
1228
1307
|
let r = 1, u = 1;
|
|
1229
|
-
n && H(t) && (r = t.offsetWidth > 0 &&
|
|
1230
|
-
const
|
|
1231
|
-
return { width: b, height: h, top:
|
|
1308
|
+
n && H(t) && (r = t.offsetWidth > 0 && de(i.width) / t.offsetWidth || 1, u = t.offsetHeight > 0 && de(i.height) / t.offsetHeight || 1);
|
|
1309
|
+
const g = K(t) ? Y(t) : window, d = !Ee() && e, y = (i.left + (d && (a = (o = g.visualViewport) == null ? void 0 : o.offsetLeft) != null ? a : 0)) / r, v = (i.top + (d && (s = (l = g.visualViewport) == null ? void 0 : l.offsetTop) != null ? s : 0)) / u, b = i.width / r, h = i.height / u;
|
|
1310
|
+
return { width: b, height: h, top: v, right: y + b, bottom: v + h, left: y, x: y, y: v };
|
|
1232
1311
|
}
|
|
1233
1312
|
function F(t) {
|
|
1234
|
-
return (n = t, (n instanceof
|
|
1313
|
+
return (n = t, (n instanceof Y(n).Node ? t.ownerDocument : t.document) || window.document).documentElement;
|
|
1235
1314
|
var n;
|
|
1236
1315
|
}
|
|
1237
1316
|
function pe(t) {
|
|
1238
1317
|
return K(t) ? { scrollLeft: t.scrollLeft, scrollTop: t.scrollTop } : { scrollLeft: t.pageXOffset, scrollTop: t.pageYOffset };
|
|
1239
1318
|
}
|
|
1240
|
-
function
|
|
1319
|
+
function Ve(t) {
|
|
1241
1320
|
return X(F(t)).left + pe(t).scrollLeft;
|
|
1242
1321
|
}
|
|
1243
|
-
function
|
|
1322
|
+
function kn(t, n, e) {
|
|
1244
1323
|
const a = H(n), o = F(n), s = X(t, a && function(r) {
|
|
1245
1324
|
const u = X(r);
|
|
1246
|
-
return
|
|
1325
|
+
return de(u.width) !== r.offsetWidth || de(u.height) !== r.offsetHeight;
|
|
1247
1326
|
}(n), e === "fixed");
|
|
1248
1327
|
let l = { scrollLeft: 0, scrollTop: 0 };
|
|
1249
1328
|
const i = { x: 0, y: 0 };
|
|
@@ -1252,24 +1331,24 @@ function dn(t, n, e) {
|
|
|
1252
1331
|
const r = X(n, !0);
|
|
1253
1332
|
i.x = r.x + n.clientLeft, i.y = r.y + n.clientTop;
|
|
1254
1333
|
} else
|
|
1255
|
-
o && (i.x =
|
|
1334
|
+
o && (i.x = Ve(o));
|
|
1256
1335
|
return { x: s.left + l.scrollLeft - i.x, y: s.top + l.scrollTop - i.y, width: s.width, height: s.height };
|
|
1257
1336
|
}
|
|
1258
1337
|
function te(t) {
|
|
1259
1338
|
if (Z(t) === "html")
|
|
1260
1339
|
return t;
|
|
1261
|
-
const n = t.assignedSlot || t.parentNode || (
|
|
1262
|
-
return
|
|
1340
|
+
const n = t.assignedSlot || t.parentNode || (Te(t) ? t.host : null) || F(t);
|
|
1341
|
+
return Te(n) ? n.host : n;
|
|
1263
1342
|
}
|
|
1264
1343
|
function Ce(t) {
|
|
1265
|
-
return H(t) &&
|
|
1344
|
+
return H(t) && S(t).position !== "fixed" ? t.offsetParent : null;
|
|
1266
1345
|
}
|
|
1267
1346
|
function Re(t) {
|
|
1268
|
-
const n =
|
|
1347
|
+
const n = Y(t);
|
|
1269
1348
|
let e = Ce(t);
|
|
1270
|
-
for (; e &&
|
|
1349
|
+
for (; e && yn(e) && S(e).position === "static"; )
|
|
1271
1350
|
e = Ce(e);
|
|
1272
|
-
return e && (Z(e) === "html" || Z(e) === "body" &&
|
|
1351
|
+
return e && (Z(e) === "html" || Z(e) === "body" && S(e).position === "static" && !_e(e)) ? n : e || function(a) {
|
|
1273
1352
|
let o = te(a);
|
|
1274
1353
|
for (; H(o) && !ve(o); ) {
|
|
1275
1354
|
if (_e(o))
|
|
@@ -1283,47 +1362,47 @@ function Oe(t) {
|
|
|
1283
1362
|
const n = te(t);
|
|
1284
1363
|
return ve(n) ? t.ownerDocument.body : H(n) && fe(n) ? n : Oe(n);
|
|
1285
1364
|
}
|
|
1286
|
-
function
|
|
1365
|
+
function Se(t, n) {
|
|
1287
1366
|
var e;
|
|
1288
1367
|
n === void 0 && (n = []);
|
|
1289
|
-
const a = Oe(t), o = a === ((e = t.ownerDocument) == null ? void 0 : e.body), s =
|
|
1290
|
-
return o ? i : i.concat(
|
|
1368
|
+
const a = Oe(t), o = a === ((e = t.ownerDocument) == null ? void 0 : e.body), s = Y(a), l = o ? [s].concat(s.visualViewport || [], fe(a) ? a : []) : a, i = n.concat(l);
|
|
1369
|
+
return o ? i : i.concat(Se(l));
|
|
1291
1370
|
}
|
|
1292
1371
|
function Ie(t, n, e) {
|
|
1293
|
-
return n === "viewport" ?
|
|
1294
|
-
const s =
|
|
1295
|
-
let r = l.clientWidth, u = l.clientHeight,
|
|
1372
|
+
return n === "viewport" ? ie(function(a, o) {
|
|
1373
|
+
const s = Y(a), l = F(a), i = s.visualViewport;
|
|
1374
|
+
let r = l.clientWidth, u = l.clientHeight, g = 0, d = 0;
|
|
1296
1375
|
if (i) {
|
|
1297
1376
|
r = i.width, u = i.height;
|
|
1298
|
-
const y =
|
|
1299
|
-
(y || !y && o === "fixed") && (
|
|
1377
|
+
const y = Ee();
|
|
1378
|
+
(y || !y && o === "fixed") && (g = i.offsetLeft, d = i.offsetTop);
|
|
1300
1379
|
}
|
|
1301
|
-
return { width: r, height: u, x:
|
|
1380
|
+
return { width: r, height: u, x: g, y: d };
|
|
1302
1381
|
}(t, e)) : K(n) ? function(a, o) {
|
|
1303
1382
|
const s = X(a, !1, o === "fixed"), l = s.top + a.clientTop, i = s.left + a.clientLeft;
|
|
1304
1383
|
return { top: l, left: i, x: i, y: l, right: i + a.clientWidth, bottom: l + a.clientHeight, width: a.clientWidth, height: a.clientHeight };
|
|
1305
|
-
}(n, e) :
|
|
1384
|
+
}(n, e) : ie(function(a) {
|
|
1306
1385
|
var o;
|
|
1307
1386
|
const s = F(a), l = pe(a), i = (o = a.ownerDocument) == null ? void 0 : o.body, r = ee(s.scrollWidth, s.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), u = ee(s.scrollHeight, s.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0);
|
|
1308
|
-
let
|
|
1387
|
+
let g = -l.scrollLeft + Ve(a);
|
|
1309
1388
|
const d = -l.scrollTop;
|
|
1310
|
-
return
|
|
1389
|
+
return S(i || s).direction === "rtl" && (g += ee(s.clientWidth, i ? i.clientWidth : 0) - r), { width: r, height: u, x: g, y: d };
|
|
1311
1390
|
}(F(t)));
|
|
1312
1391
|
}
|
|
1313
|
-
const
|
|
1392
|
+
const xn = { getClippingRect: function(t) {
|
|
1314
1393
|
let { element: n, boundary: e, rootBoundary: a, strategy: o } = t;
|
|
1315
1394
|
const s = e === "clippingAncestors" ? function(u) {
|
|
1316
|
-
let
|
|
1317
|
-
const y =
|
|
1318
|
-
let
|
|
1319
|
-
for (; K(
|
|
1320
|
-
const b =
|
|
1321
|
-
(y ? h || d : h || b.position !== "static" || !d || !["absolute", "fixed"].includes(d.position)) ? d = b :
|
|
1395
|
+
let g = Se(u).filter((b) => K(b) && Z(b) !== "body"), d = null;
|
|
1396
|
+
const y = S(u).position === "fixed";
|
|
1397
|
+
let v = y ? te(u) : u;
|
|
1398
|
+
for (; K(v) && !ve(v); ) {
|
|
1399
|
+
const b = S(v), h = _e(v);
|
|
1400
|
+
(y ? h || d : h || b.position !== "static" || !d || !["absolute", "fixed"].includes(d.position)) ? d = b : g = g.filter((c) => c !== v), v = te(v);
|
|
1322
1401
|
}
|
|
1323
|
-
return
|
|
1324
|
-
}(n) : [].concat(e), l = [...s, a], i = l[0], r = l.reduce((u,
|
|
1325
|
-
const d = Ie(n,
|
|
1326
|
-
return u.top = ee(d.top, u.top), u.right =
|
|
1402
|
+
return g;
|
|
1403
|
+
}(n) : [].concat(e), l = [...s, a], i = l[0], r = l.reduce((u, g) => {
|
|
1404
|
+
const d = Ie(n, g, o);
|
|
1405
|
+
return u.top = ee(d.top, u.top), u.right = ze(d.right, u.right), u.bottom = ze(d.bottom, u.bottom), u.left = ee(d.left, u.left), u;
|
|
1327
1406
|
}, Ie(n, i, o));
|
|
1328
1407
|
return { width: r.right - r.left, height: r.bottom - r.top, x: r.left, y: r.top };
|
|
1329
1408
|
}, convertOffsetParentRelativeRectToViewportRelativeRect: function(t) {
|
|
@@ -1346,24 +1425,24 @@ const un = { getClippingRect: function(t) {
|
|
|
1346
1425
|
}, getOffsetParent: Re, getDocumentElement: F, async getElementRects(t) {
|
|
1347
1426
|
let { reference: n, floating: e, strategy: a } = t;
|
|
1348
1427
|
const o = this.getOffsetParent || Re, s = this.getDimensions;
|
|
1349
|
-
return { reference:
|
|
1350
|
-
}, getClientRects: (t) => Array.from(t.getClientRects()), isRTL: (t) =>
|
|
1428
|
+
return { reference: kn(n, await o(e), a), floating: { x: 0, y: 0, ...await s(e) } };
|
|
1429
|
+
}, getClientRects: (t) => Array.from(t.getClientRects()), isRTL: (t) => S(t).direction === "rtl" }, wn = (t, n, e) => rn(t, n, { platform: xn, ...e });
|
|
1351
1430
|
function he({ value: t }, { value: n }, { value: e }, a, o, s) {
|
|
1352
|
-
!t || !n ||
|
|
1431
|
+
!t || !n || wn(t, n, {
|
|
1353
1432
|
placement: a,
|
|
1354
1433
|
middleware: [
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1434
|
+
gn(o),
|
|
1435
|
+
bn({ padding: s }),
|
|
1436
|
+
un({ element: e }),
|
|
1437
|
+
mn(),
|
|
1438
|
+
_n()
|
|
1360
1439
|
]
|
|
1361
1440
|
}).then(({ x: l, y: i, placement: r, middlewareData: u }) => {
|
|
1362
1441
|
if (Object.assign(n.style, {
|
|
1363
1442
|
left: `${l}px`,
|
|
1364
1443
|
top: `${i}px`
|
|
1365
1444
|
}), e && u.arrow) {
|
|
1366
|
-
const { x:
|
|
1445
|
+
const { x: g, y: d } = u.arrow, y = {
|
|
1367
1446
|
top: "bottom",
|
|
1368
1447
|
right: "left",
|
|
1369
1448
|
bottom: "top",
|
|
@@ -1371,7 +1450,7 @@ function he({ value: t }, { value: n }, { value: e }, a, o, s) {
|
|
|
1371
1450
|
/* Right */
|
|
1372
1451
|
}[r.split("-")[0]];
|
|
1373
1452
|
Object.assign(e.style, {
|
|
1374
|
-
left: l != null ? `${
|
|
1453
|
+
left: l != null ? `${g}px` : "",
|
|
1375
1454
|
top: i != null ? `${d}px` : "",
|
|
1376
1455
|
right: "",
|
|
1377
1456
|
bottom: "",
|
|
@@ -1380,15 +1459,15 @@ function he({ value: t }, { value: n }, { value: e }, a, o, s) {
|
|
|
1380
1459
|
}
|
|
1381
1460
|
});
|
|
1382
1461
|
}
|
|
1383
|
-
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 || {}),
|
|
1384
|
-
const
|
|
1462
|
+
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 || {}), P = /* @__PURE__ */ ((t) => (t.Click = "click", t.Hover = "hover", t.Manual = "manual", t))(P || {});
|
|
1463
|
+
const $n = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMousemove"], Mn = ["innerHTML"], Tn = /* @__PURE__ */ I({
|
|
1385
1464
|
__name: "RTooltip",
|
|
1386
1465
|
props: {
|
|
1387
1466
|
placement: { default: He.Top },
|
|
1388
1467
|
text: { default: "" },
|
|
1389
1468
|
dark: { type: Boolean, default: !0 },
|
|
1390
1469
|
light: { type: Boolean, default: !1 },
|
|
1391
|
-
triggers: { default:
|
|
1470
|
+
triggers: { default: P.Hover },
|
|
1392
1471
|
autoHide: { type: Boolean, default: !0 },
|
|
1393
1472
|
hideDelay: { default: 3e3 },
|
|
1394
1473
|
showDelay: { default: 0 },
|
|
@@ -1403,13 +1482,13 @@ const pn = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
|
|
|
1403
1482
|
emits: ["show", "hide"],
|
|
1404
1483
|
setup(t, { emit: n }) {
|
|
1405
1484
|
const e = t;
|
|
1406
|
-
|
|
1485
|
+
Ke((c) => ({
|
|
1407
1486
|
"271323d4": w(h)
|
|
1408
1487
|
}));
|
|
1409
|
-
const a =
|
|
1488
|
+
const a = E(null), o = E(null), s = E(null);
|
|
1410
1489
|
function l() {
|
|
1411
|
-
const { placement: c, offset:
|
|
1412
|
-
M || (o.value.style.display = "block", n("show"), he(a, o, s, c,
|
|
1490
|
+
const { placement: c, offset: p, padding: k, disabled: M } = e;
|
|
1491
|
+
M || (o.value.style.display = "block", n("show"), he(a, o, s, c, p, k), r(), e.outsideClick && u("add"));
|
|
1413
1492
|
}
|
|
1414
1493
|
function i() {
|
|
1415
1494
|
o.value.style.display = "", n("hide"), e.outsideClick && u("remove");
|
|
@@ -1420,75 +1499,75 @@ const pn = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
|
|
|
1420
1499
|
}, e.hideDelay);
|
|
1421
1500
|
}, u = (c) => {
|
|
1422
1501
|
c === "add" && document.addEventListener("click", i), c === "remove" && document.removeEventListener("click", i);
|
|
1423
|
-
},
|
|
1424
|
-
e.disabled || e.triggers ==
|
|
1502
|
+
}, g = () => {
|
|
1503
|
+
e.disabled || e.triggers == P.Click && (o.value.style.display === "block" ? i() : l());
|
|
1425
1504
|
}, d = () => {
|
|
1426
|
-
e.disabled || e.triggers ===
|
|
1505
|
+
e.disabled || e.triggers === P.Hover && l();
|
|
1427
1506
|
}, y = () => {
|
|
1428
1507
|
if (!e.disabled)
|
|
1429
|
-
if (o.value.style.display === "" && e.triggers ===
|
|
1508
|
+
if (o.value.style.display === "" && e.triggers === P.Hover) {
|
|
1430
1509
|
l();
|
|
1431
1510
|
return;
|
|
1432
1511
|
} else
|
|
1433
|
-
o.value.style.display !== "" && e.triggers ===
|
|
1434
|
-
},
|
|
1435
|
-
const { placement: c, offset:
|
|
1436
|
-
M || e.triggers ===
|
|
1512
|
+
o.value.style.display !== "" && e.triggers === P.Hover && i();
|
|
1513
|
+
}, v = () => {
|
|
1514
|
+
const { placement: c, offset: p, padding: k, disabled: M } = e;
|
|
1515
|
+
M || e.triggers === P.Hover && he(a, o, s, c, p, k);
|
|
1437
1516
|
}, b = $(() => ({
|
|
1438
1517
|
tooltip: !0,
|
|
1439
1518
|
"tooltip--dark": e.dark,
|
|
1440
1519
|
"tooltip--light": e.light
|
|
1441
1520
|
}));
|
|
1442
1521
|
window.onresize = () => {
|
|
1443
|
-
const { placement: c, offset:
|
|
1444
|
-
M || e.resizable && he(a, o, s, c,
|
|
1445
|
-
},
|
|
1522
|
+
const { placement: c, offset: p, padding: k, disabled: M } = e;
|
|
1523
|
+
M || e.resizable && he(a, o, s, c, p, k);
|
|
1524
|
+
}, Ge(
|
|
1446
1525
|
() => {
|
|
1447
|
-
e.disabled || e.shown && e.triggers ===
|
|
1526
|
+
e.disabled || e.shown && e.triggers === P.Manual && l();
|
|
1448
1527
|
},
|
|
1449
1528
|
{ flush: "post" }
|
|
1450
1529
|
// this is important to avoid infinite loop & for fire on mounted
|
|
1451
1530
|
);
|
|
1452
1531
|
const h = $(() => `${e.showDelay}ms`);
|
|
1453
|
-
return (c,
|
|
1454
|
-
|
|
1532
|
+
return (c, p) => (f(), m(Q, null, [
|
|
1533
|
+
_("div", {
|
|
1455
1534
|
ref_key: "trigger",
|
|
1456
1535
|
ref: a,
|
|
1457
1536
|
"aria-disabled": e.disabled,
|
|
1458
1537
|
class: "trigger",
|
|
1459
|
-
onClick:
|
|
1460
|
-
onMouseenter:
|
|
1461
|
-
onMouseleave:
|
|
1462
|
-
onMousemove:
|
|
1538
|
+
onClick: O(g, ["stop"]),
|
|
1539
|
+
onMouseenter: O(d, ["stop"]),
|
|
1540
|
+
onMouseleave: O(y, ["stop"]),
|
|
1541
|
+
onMousemove: O(v, ["stop"])
|
|
1463
1542
|
}, [
|
|
1464
|
-
|
|
1465
|
-
c.$slots.trigger ? R("", !0) : (
|
|
1543
|
+
A(c.$slots, "trigger", {}, void 0, !0),
|
|
1544
|
+
c.$slots.trigger ? R("", !0) : (f(), m("div", {
|
|
1466
1545
|
key: 0,
|
|
1467
1546
|
innerHTML: e.triggerContent
|
|
1468
|
-
}, null, 8,
|
|
1469
|
-
], 40,
|
|
1470
|
-
|
|
1547
|
+
}, null, 8, Mn))
|
|
1548
|
+
], 40, $n),
|
|
1549
|
+
_("div", {
|
|
1471
1550
|
id: "tooltip",
|
|
1472
1551
|
ref_key: "tooltip",
|
|
1473
1552
|
ref: o,
|
|
1474
|
-
class:
|
|
1553
|
+
class: x(w(b)),
|
|
1475
1554
|
role: "tooltip"
|
|
1476
1555
|
}, [
|
|
1477
|
-
|
|
1478
|
-
c.$slots.content ? R("", !0) : (
|
|
1556
|
+
A(c.$slots, "content", {}, void 0, !0),
|
|
1557
|
+
c.$slots.content ? R("", !0) : (f(), m("div", {
|
|
1479
1558
|
key: 0,
|
|
1480
|
-
class:
|
|
1559
|
+
class: x({
|
|
1481
1560
|
tooltip__content: !0,
|
|
1482
1561
|
"tooltip__content--dark": e.dark,
|
|
1483
1562
|
"tooltip__content--light": e.light
|
|
1484
1563
|
})
|
|
1485
1564
|
}, C(e.text), 3)),
|
|
1486
|
-
c.$slots.content ? R("", !0) : (
|
|
1565
|
+
c.$slots.content ? R("", !0) : (f(), m("div", {
|
|
1487
1566
|
key: 1,
|
|
1488
1567
|
id: "arrow",
|
|
1489
1568
|
ref_key: "arrowElement",
|
|
1490
1569
|
ref: s,
|
|
1491
|
-
class:
|
|
1570
|
+
class: x({
|
|
1492
1571
|
tooltip__arrow: !0,
|
|
1493
1572
|
"tooltip__arrow--dark": e.dark,
|
|
1494
1573
|
"tooltip__arrow--light": e.light
|
|
@@ -1498,28 +1577,30 @@ const pn = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
|
|
|
1498
1577
|
], 64));
|
|
1499
1578
|
}
|
|
1500
1579
|
});
|
|
1501
|
-
const
|
|
1580
|
+
const zn = (t, n) => {
|
|
1502
1581
|
const e = t.__vccOpts || t;
|
|
1503
1582
|
for (const [a, o] of n)
|
|
1504
1583
|
e[a] = o;
|
|
1505
1584
|
return e;
|
|
1506
|
-
},
|
|
1585
|
+
}, Yn = /* @__PURE__ */ zn(Tn, [["__scopeId", "data-v-ee5f5651"]]);
|
|
1507
1586
|
export {
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1587
|
+
Rn as RAccordion,
|
|
1588
|
+
In as RAlert,
|
|
1589
|
+
An as RAvatar,
|
|
1590
|
+
Ln as RBadge,
|
|
1591
|
+
ut as RButton,
|
|
1592
|
+
Nn as RCheckbox,
|
|
1593
|
+
yt as RChip,
|
|
1594
|
+
Bn as RDropdown,
|
|
1516
1595
|
B as RIcon,
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1596
|
+
Le as RLabel,
|
|
1597
|
+
Dn as RModal,
|
|
1598
|
+
jn as RSidebar,
|
|
1599
|
+
En as RSnackbar,
|
|
1600
|
+
Vn as RSwitch,
|
|
1601
|
+
Xt as RTabItem,
|
|
1602
|
+
On as RTabs,
|
|
1603
|
+
Sn as RTextArea,
|
|
1604
|
+
Hn as RTextfield,
|
|
1605
|
+
Yn as RTooltip
|
|
1525
1606
|
};
|