@useinsider/ab-components 0.0.20 → 0.0.21
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/ab-components.cjs.js +1 -1
- package/dist/ab-components.cjs.js.map +1 -1
- package/dist/ab-components.css +1 -1
- package/dist/ab-components.es.js +370 -352
- package/dist/ab-components.es.js.map +1 -1
- package/dist/ab-components.iife.js +1 -1
- package/dist/ab-components.iife.js.map +1 -1
- package/dist/ab-components.umd.js +1 -1
- package/dist/ab-components.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/ab-components.es.js
CHANGED
|
@@ -1,39 +1,41 @@
|
|
|
1
|
-
import { defineComponent as T, computed as C, openBlock as p, createElementBlock as
|
|
2
|
-
const Ne = "
|
|
3
|
-
button__size_default:
|
|
4
|
-
button__size_small:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"button__solid-
|
|
13
|
-
"button__solid-
|
|
14
|
-
"button__solid-
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"button__ghost-
|
|
18
|
-
"button__ghost-
|
|
19
|
-
"button__ghost-
|
|
20
|
-
"button__ghost-
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"button__text-
|
|
24
|
-
"button__text-
|
|
25
|
-
"button__text-
|
|
26
|
-
"button__text-
|
|
27
|
-
"button__text-
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"button__outline-
|
|
31
|
-
"button__outline-
|
|
32
|
-
"button__outline-
|
|
33
|
-
"button__outline-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
1
|
+
import { defineComponent as T, computed as C, openBlock as p, createElementBlock as m, normalizeClass as s, unref as o, createBlock as j, createCommentVNode as k, toDisplayString as I, ref as v, reactive as ve, onMounted as ce, watch as oe, Fragment as pe, createElementVNode as y, withDirectives as ge, normalizeStyle as U, withModifiers as Te, vModelText as qe, renderList as he, vShow as He, createVNode as ye, onBeforeUnmount as Ve, renderSlot as W, withCtx as ke, nextTick as we, resolveDynamicComponent as Le } from "vue";
|
|
2
|
+
const Oe = "_button__size_default_1vdmr_1", Ne = "_button__size_small_1vdmr_8", Ee = "_icon_1vdmr_136", We = "_spinner_1vdmr_1", De = "_button_1vdmr_1", Ae = "_button__label_1vdmr_212", Re = "_button__solid_1vdmr_224", Ge = "_fill_1vdmr_1144", G = {
|
|
3
|
+
button__size_default: Oe,
|
|
4
|
+
button__size_small: Ne,
|
|
5
|
+
icon: Ee,
|
|
6
|
+
spinner: We,
|
|
7
|
+
button: De,
|
|
8
|
+
button__label: Ae,
|
|
9
|
+
"button__solid-primary": "_button__solid-primary_1vdmr_224",
|
|
10
|
+
"no-hover-effect": "_no-hover-effect_1vdmr_231",
|
|
11
|
+
"button--selected": "_button--selected_1vdmr_253",
|
|
12
|
+
"button__solid-subtle-primary": "_button__solid-subtle-primary_1vdmr_260",
|
|
13
|
+
"button__solid-secondary": "_button__solid-secondary_1vdmr_296",
|
|
14
|
+
"button__solid-danger": "_button__solid-danger_1vdmr_332",
|
|
15
|
+
"button__solid-warning": "_button__solid-warning_1vdmr_368",
|
|
16
|
+
"button__solid-smart": "_button__solid-smart_1vdmr_404",
|
|
17
|
+
"button__ghost-primary": "_button__ghost-primary_1vdmr_440",
|
|
18
|
+
"button__ghost-subtle-primary": "_button__ghost-subtle-primary_1vdmr_476",
|
|
19
|
+
"button__ghost-secondary": "_button__ghost-secondary_1vdmr_512",
|
|
20
|
+
"button__ghost-danger": "_button__ghost-danger_1vdmr_548",
|
|
21
|
+
"button__ghost-warning": "_button__ghost-warning_1vdmr_584",
|
|
22
|
+
"button__ghost-smart": "_button__ghost-smart_1vdmr_620",
|
|
23
|
+
"button__text-primary": "_button__text-primary_1vdmr_656",
|
|
24
|
+
"button__text-text": "_button__text-text_1vdmr_692",
|
|
25
|
+
"button__text-subtle-primary": "_button__text-subtle-primary_1vdmr_728",
|
|
26
|
+
"button__text-secondary": "_button__text-secondary_1vdmr_764",
|
|
27
|
+
"button__text-danger": "_button__text-danger_1vdmr_800",
|
|
28
|
+
"button__text-warning": "_button__text-warning_1vdmr_836",
|
|
29
|
+
"button__text-smart": "_button__text-smart_1vdmr_872",
|
|
30
|
+
"button__outline-primary": "_button__outline-primary_1vdmr_908",
|
|
31
|
+
"button__outline-subtle-primary": "_button__outline-subtle-primary_1vdmr_945",
|
|
32
|
+
"button__outline-secondary": "_button__outline-secondary_1vdmr_982",
|
|
33
|
+
"button__outline-danger": "_button__outline-danger_1vdmr_1019",
|
|
34
|
+
"button__outline-warning": "_button__outline-warning_1vdmr_1056",
|
|
35
|
+
"button__outline-smart": "_button__outline-smart_1vdmr_1093",
|
|
36
|
+
button__solid: Re,
|
|
37
|
+
fill: Ge
|
|
38
|
+
}, Ye = ["disabled"], To = /* @__PURE__ */ T({
|
|
37
39
|
__name: "Button",
|
|
38
40
|
props: {
|
|
39
41
|
variant: {},
|
|
@@ -52,32 +54,32 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
|
|
|
52
54
|
const r = u, t = n, a = (d) => {
|
|
53
55
|
r.disabled || t("click", d);
|
|
54
56
|
}, _ = C(() => r.loadingStatus ? "loading-circle" : r.successStatus ? "line-check-natural" : r.leftIconName);
|
|
55
|
-
return (d, e) => (p(),
|
|
57
|
+
return (d, e) => (p(), m("button", {
|
|
56
58
|
class: s([
|
|
57
|
-
o(
|
|
58
|
-
o(
|
|
59
|
-
o(
|
|
60
|
-
o(
|
|
61
|
-
{ [o(
|
|
59
|
+
o(G).button,
|
|
60
|
+
o(G)[`button__${d.variant}`],
|
|
61
|
+
o(G)[`button__${d.variant}-${d.color}`],
|
|
62
|
+
o(G)[`button__size_${d.size}`],
|
|
63
|
+
{ [o(G).fill]: d.fill }
|
|
62
64
|
]),
|
|
63
65
|
disabled: r.disabled,
|
|
64
66
|
onClick: a
|
|
65
67
|
}, [
|
|
66
|
-
_.value ? (p(),
|
|
68
|
+
_.value ? (p(), j(o(Q), {
|
|
67
69
|
key: 0,
|
|
68
70
|
name: _.value
|
|
69
|
-
}, null, 8, ["name"])) :
|
|
70
|
-
d.label ? (p(),
|
|
71
|
+
}, null, 8, ["name"])) : k("", !0),
|
|
72
|
+
d.label ? (p(), m("span", {
|
|
71
73
|
key: 1,
|
|
72
|
-
class: s(o(
|
|
73
|
-
}, I(d.label), 3)) :
|
|
74
|
-
d.rightIconName ? (p(),
|
|
74
|
+
class: s(o(G).button__label)
|
|
75
|
+
}, I(d.label), 3)) : k("", !0),
|
|
76
|
+
d.rightIconName ? (p(), j(o(Q), {
|
|
75
77
|
key: 2,
|
|
76
78
|
name: d.rightIconName
|
|
77
|
-
}, null, 8, ["name"])) :
|
|
78
|
-
], 10,
|
|
79
|
+
}, null, 8, ["name"])) : k("", !0)
|
|
80
|
+
], 10, Ye));
|
|
79
81
|
}
|
|
80
|
-
}),
|
|
82
|
+
}), Xe = {
|
|
81
83
|
mounted(u, n) {
|
|
82
84
|
u.clickOutsideEvent = (r) => {
|
|
83
85
|
const t = (n.value.exclude || []).filter((_) => _.value).map((_) => _.value);
|
|
@@ -87,43 +89,45 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
|
|
|
87
89
|
unmounted(u) {
|
|
88
90
|
u.clickOutsideEvent && document.removeEventListener("click", u.clickOutsideEvent);
|
|
89
91
|
}
|
|
90
|
-
},
|
|
92
|
+
}, Fe = (u, n) => {
|
|
91
93
|
var t;
|
|
92
94
|
let r = 0;
|
|
93
95
|
for (const a of u)
|
|
94
96
|
if (a.toLowerCase() === ((t = n[r]) == null ? void 0 : t.toLowerCase()) && r++, r === n.length)
|
|
95
97
|
return !0;
|
|
96
98
|
return !1;
|
|
97
|
-
},
|
|
99
|
+
}, Ue = (u, n, r) => {
|
|
98
100
|
if (!r.trim())
|
|
99
101
|
return u;
|
|
100
102
|
const t = r.toLowerCase();
|
|
101
103
|
return u.filter((a) => {
|
|
102
104
|
const _ = String(a[n]);
|
|
103
|
-
return
|
|
105
|
+
return Fe(_.toLowerCase(), t);
|
|
104
106
|
}).sort((a, _) => {
|
|
105
107
|
const d = String(a[n]).toLowerCase(), e = String(_[n]).toLowerCase();
|
|
106
108
|
return d === t ? -1 : e === t ? 1 : d.startsWith(t) && !e.startsWith(t) ? -1 : !d.startsWith(t) && e.startsWith(t) ? 1 : d.length - e.length;
|
|
107
109
|
});
|
|
108
|
-
},
|
|
109
|
-
dropdown:
|
|
110
|
-
menu:
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
110
|
+
}, je = "_dropdown_18zqi_1", Qe = "_menu_18zqi_1", Ze = "_icon_18zqi_129", Je = "_spinner_18zqi_1", Ke = "_dropdown__valueContent_18zqi_202", et = "_dropdown__label_18zqi_213", tt = "_dropdown__value_18zqi_202", ot = "_dropdown__placeholder_18zqi_221", nt = "_dropdown__arrowIcon_18zqi_229", rt = "_menu__searchContainer_18zqi_244", at = "_menu__searchInputWrap_18zqi_248", lt = "_menu__searchInput_18zqi_248", st = "_menu__errorMessage_18zqi_270", _t = "_menu__addButton_18zqi_277", it = "_menu__itemContainer_18zqi_285", ut = "_menu__item_18zqi_285", $ = {
|
|
111
|
+
dropdown: je,
|
|
112
|
+
menu: Qe,
|
|
113
|
+
icon: Ze,
|
|
114
|
+
spinner: Je,
|
|
115
|
+
dropdown__valueContent: Ke,
|
|
116
|
+
"dropdown__valueContent--open": "_dropdown__valueContent--open_18zqi_210",
|
|
117
|
+
dropdown__label: et,
|
|
118
|
+
dropdown__value: tt,
|
|
119
|
+
dropdown__placeholder: ot,
|
|
120
|
+
dropdown__arrowIcon: nt,
|
|
121
|
+
menu__searchContainer: rt,
|
|
122
|
+
menu__searchInputWrap: at,
|
|
123
|
+
menu__searchInput: lt,
|
|
124
|
+
"menu__searchInput--error": "_menu__searchInput--error_18zqi_267",
|
|
125
|
+
menu__errorMessage: st,
|
|
126
|
+
menu__addButton: _t,
|
|
127
|
+
menu__itemContainer: it,
|
|
128
|
+
menu__item: ut,
|
|
129
|
+
"menu__item--active": "_menu__item--active_18zqi_323"
|
|
130
|
+
}, pt = ["for"], ct = ["placeholder"], dt = ["onClick"], qo = /* @__PURE__ */ T({
|
|
127
131
|
__name: "DropdownMenu",
|
|
128
132
|
props: {
|
|
129
133
|
id: {},
|
|
@@ -140,39 +144,39 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
|
|
|
140
144
|
},
|
|
141
145
|
emits: ["update:modelValue", "add-error", "item-added", "select-item"],
|
|
142
146
|
setup(u, { emit: n }) {
|
|
143
|
-
const r =
|
|
147
|
+
const r = Xe, t = u, a = n, _ = v(), d = v(), e = v(!1), l = v(null), b = v(""), c = v(null), P = v({ x: 0, y: 0, width: 0, shouldOpenUp: !1, height: t.menuHeight }), q = ve([...t.items]), B = ve([...t.items]), R = () => {
|
|
144
148
|
if (!_.value)
|
|
145
149
|
return;
|
|
146
|
-
const { offsetTop:
|
|
150
|
+
const { offsetTop: f, offsetLeft: g, offsetWidth: x } = _.value, O = window.innerHeight, Y = f + _.value.offsetHeight, ee = Y + t.menuHeight > O;
|
|
147
151
|
P.value = {
|
|
148
152
|
x: g + window.scrollX,
|
|
149
|
-
y: ee ?
|
|
153
|
+
y: ee ? f + window.scrollY : Y + window.scrollY,
|
|
150
154
|
width: x,
|
|
151
155
|
shouldOpenUp: ee,
|
|
152
156
|
height: t.menuHeight
|
|
153
157
|
};
|
|
154
158
|
}, S = () => {
|
|
155
|
-
|
|
156
|
-
},
|
|
157
|
-
c.value = null, b.value = "",
|
|
159
|
+
R(), e.value = !e.value;
|
|
160
|
+
}, L = () => {
|
|
161
|
+
c.value = null, b.value = "", q.splice(0, q.length, ...B);
|
|
158
162
|
}, Z = () => {
|
|
159
|
-
e.value = !1,
|
|
160
|
-
}, re = (
|
|
161
|
-
l.value =
|
|
162
|
-
},
|
|
163
|
-
const
|
|
163
|
+
e.value = !1, L();
|
|
164
|
+
}, re = (f) => {
|
|
165
|
+
l.value = f, a("select-item", f), a("update:modelValue", f.value), Z();
|
|
166
|
+
}, D = () => {
|
|
167
|
+
const f = b.value.trim(), g = t.validateAddItem(f, B);
|
|
164
168
|
if (g) {
|
|
165
169
|
c.value = g, a("add-error", g);
|
|
166
170
|
return;
|
|
167
171
|
}
|
|
168
172
|
const x = {
|
|
169
|
-
text:
|
|
170
|
-
value:
|
|
173
|
+
text: f,
|
|
174
|
+
value: f
|
|
171
175
|
};
|
|
172
|
-
B.push(x),
|
|
176
|
+
B.push(x), L(), a("item-added", x);
|
|
173
177
|
}, ae = () => {
|
|
174
|
-
const
|
|
175
|
-
|
|
178
|
+
const f = Ue(B, "text", b.value);
|
|
179
|
+
q.splice(0, q.length, ...f);
|
|
176
180
|
}, J = () => {
|
|
177
181
|
c.value = "";
|
|
178
182
|
}, le = C(() => ({
|
|
@@ -182,37 +186,37 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
|
|
|
182
186
|
height: `${t.menuHeight}px`
|
|
183
187
|
}));
|
|
184
188
|
ce(() => {
|
|
185
|
-
if (
|
|
186
|
-
const
|
|
187
|
-
|
|
189
|
+
if (R(), t.modelValue) {
|
|
190
|
+
const f = B.find((g) => g.value === t.modelValue);
|
|
191
|
+
f && (l.value = f);
|
|
188
192
|
}
|
|
189
193
|
});
|
|
190
194
|
const K = C(() => l.value ? l.value.text : "");
|
|
191
|
-
oe(() => t.modelValue, (
|
|
195
|
+
oe(() => t.modelValue, (f) => {
|
|
192
196
|
var g;
|
|
193
|
-
if (((g = l.value) == null ? void 0 : g.value) !==
|
|
194
|
-
const x = B.find((
|
|
197
|
+
if (((g = l.value) == null ? void 0 : g.value) !== f) {
|
|
198
|
+
const x = B.find((O) => O.value === f);
|
|
195
199
|
x && (l.value = x);
|
|
196
200
|
}
|
|
197
201
|
}), oe(
|
|
198
202
|
() => t.items,
|
|
199
|
-
(
|
|
200
|
-
B.splice(0, B.length, ...
|
|
203
|
+
(f) => {
|
|
204
|
+
B.splice(0, B.length, ...f), q.splice(0, q.length, ...f);
|
|
201
205
|
},
|
|
202
206
|
{ deep: !0 }
|
|
203
207
|
);
|
|
204
208
|
const se = v({ handler: Z, exclude: [_, d] });
|
|
205
|
-
return (
|
|
209
|
+
return (f, g) => (p(), m(pe, null, [
|
|
206
210
|
y("div", {
|
|
207
211
|
ref_key: "dropdownRef",
|
|
208
212
|
ref: _,
|
|
209
213
|
class: s(o($).dropdown)
|
|
210
214
|
}, [
|
|
211
|
-
|
|
215
|
+
f.label ? (p(), m("label", {
|
|
212
216
|
key: 0,
|
|
213
217
|
class: s(o($).dropdown__label),
|
|
214
|
-
for:
|
|
215
|
-
}, I(
|
|
218
|
+
for: f.id
|
|
219
|
+
}, I(f.label), 11, pt)) : k("", !0),
|
|
216
220
|
y("button", {
|
|
217
221
|
class: s([
|
|
218
222
|
o($).dropdown__valueContent,
|
|
@@ -225,11 +229,11 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
|
|
|
225
229
|
y("span", {
|
|
226
230
|
class: s(o($).dropdown__value)
|
|
227
231
|
}, I(K.value), 3),
|
|
228
|
-
|
|
232
|
+
f.placeholder && !K.value ? (p(), m("span", {
|
|
229
233
|
key: 0,
|
|
230
234
|
class: s(o($).dropdown__placeholder)
|
|
231
|
-
}, I(
|
|
232
|
-
(p(),
|
|
235
|
+
}, I(f.placeholder), 3)) : k("", !0),
|
|
236
|
+
(p(), m("svg", {
|
|
233
237
|
fill: "none",
|
|
234
238
|
height: "17",
|
|
235
239
|
viewBox: "0 0 16 17",
|
|
@@ -244,15 +248,15 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
|
|
|
244
248
|
]), 2))
|
|
245
249
|
], 2)
|
|
246
250
|
], 2),
|
|
247
|
-
ge((p(),
|
|
251
|
+
ge((p(), m("div", {
|
|
248
252
|
ref_key: "menuRef",
|
|
249
253
|
ref: d,
|
|
250
254
|
class: s(o($).menu),
|
|
251
|
-
style:
|
|
255
|
+
style: U(le.value),
|
|
252
256
|
onClick: g[1] || (g[1] = Te(() => {
|
|
253
257
|
}, ["prevent"]))
|
|
254
258
|
}, [
|
|
255
|
-
t.searchable ? (p(),
|
|
259
|
+
t.searchable ? (p(), m("div", {
|
|
256
260
|
key: 0,
|
|
257
261
|
class: s(o($).menu__searchContainer)
|
|
258
262
|
}, [
|
|
@@ -267,45 +271,45 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
|
|
|
267
271
|
[o($)["menu__searchInput--error"]]: c.value
|
|
268
272
|
}
|
|
269
273
|
]),
|
|
270
|
-
placeholder:
|
|
274
|
+
placeholder: f.searchPlaceHolder,
|
|
271
275
|
"onUpdate:modelValue": g[0] || (g[0] = (x) => b.value = x),
|
|
272
276
|
onFocus: J,
|
|
273
277
|
onInput: ae
|
|
274
|
-
}, null, 42,
|
|
275
|
-
[
|
|
278
|
+
}, null, 42, ct), [
|
|
279
|
+
[qe, b.value]
|
|
276
280
|
]),
|
|
277
|
-
c.value ? (p(),
|
|
281
|
+
c.value ? (p(), m("p", {
|
|
278
282
|
key: 0,
|
|
279
283
|
class: s(o($).menu__errorMessage)
|
|
280
|
-
}, I(c.value), 3)) :
|
|
284
|
+
}, I(c.value), 3)) : k("", !0)
|
|
281
285
|
], 2),
|
|
282
|
-
t.addable ? (p(),
|
|
286
|
+
t.addable ? (p(), m("button", {
|
|
283
287
|
key: 0,
|
|
284
288
|
class: s(o($).menu__addButton),
|
|
285
|
-
onClick:
|
|
286
|
-
}, I(
|
|
287
|
-
], 2)) :
|
|
289
|
+
onClick: D
|
|
290
|
+
}, I(f.addButtonText), 3)) : k("", !0)
|
|
291
|
+
], 2)) : k("", !0),
|
|
288
292
|
y("ul", {
|
|
289
293
|
class: s(o($).menu__itemContainer)
|
|
290
294
|
}, [
|
|
291
|
-
(p(!0),
|
|
292
|
-
key: `${x.value}-${
|
|
295
|
+
(p(!0), m(pe, null, he(q, (x, O) => (p(), m("li", {
|
|
296
|
+
key: `${x.value}-${O}`,
|
|
293
297
|
class: s([
|
|
294
298
|
o($).menu__item,
|
|
295
299
|
{
|
|
296
300
|
[o($)["menu__item--active"]]: l.value && x.value === l.value.value
|
|
297
301
|
}
|
|
298
302
|
]),
|
|
299
|
-
onClick: (
|
|
300
|
-
}, I(x.text), 11,
|
|
303
|
+
onClick: (Y) => re(x)
|
|
304
|
+
}, I(x.text), 11, dt))), 128))
|
|
301
305
|
], 2)
|
|
302
306
|
], 6)), [
|
|
303
|
-
[
|
|
307
|
+
[He, e.value],
|
|
304
308
|
[o(r), se.value]
|
|
305
309
|
])
|
|
306
310
|
], 64));
|
|
307
311
|
}
|
|
308
|
-
}),
|
|
312
|
+
}), mt = ["fill", "height", "width"], ft = ["xlink:href"], bt = /* @__PURE__ */ T({
|
|
309
313
|
__name: "Icon",
|
|
310
314
|
props: {
|
|
311
315
|
name: {},
|
|
@@ -314,7 +318,7 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
|
|
|
314
318
|
},
|
|
315
319
|
setup(u) {
|
|
316
320
|
const n = u, r = C(() => typeof n.size == "number" ? `${n.size}px` : n.size);
|
|
317
|
-
return (t, a) => (p(),
|
|
321
|
+
return (t, a) => (p(), m("svg", {
|
|
318
322
|
class: "icon",
|
|
319
323
|
fill: t.color || "currentColor",
|
|
320
324
|
height: r.value,
|
|
@@ -322,22 +326,24 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
|
|
|
322
326
|
}, [
|
|
323
327
|
y("use", {
|
|
324
328
|
"xlink:href": `#${t.name}`
|
|
325
|
-
}, null, 8,
|
|
326
|
-
], 8,
|
|
329
|
+
}, null, 8, ft)
|
|
330
|
+
], 8, mt));
|
|
327
331
|
}
|
|
328
|
-
}),
|
|
332
|
+
}), vt = (u, n) => {
|
|
329
333
|
const r = u.__vccOpts || u;
|
|
330
334
|
for (const [t, a] of n)
|
|
331
335
|
r[t] = a;
|
|
332
336
|
return r;
|
|
333
|
-
}, Q = /* @__PURE__ */
|
|
334
|
-
container:
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
337
|
+
}, Q = /* @__PURE__ */ vt(bt, [["__scopeId", "data-v-f04c8857"]]), gt = "_container_wovmm_1", wt = "_icon_wovmm_127", ht = "_spinner_wovmm_1", yt = "_container__text_wovmm_204", kt = "_container__default_wovmm_208", $t = "_container__warning_wovmm_216", xt = "_container__alert_wovmm_224", zt = "_container__success_wovmm_232", ue = {
|
|
338
|
+
container: gt,
|
|
339
|
+
icon: wt,
|
|
340
|
+
spinner: ht,
|
|
341
|
+
container__text: yt,
|
|
342
|
+
container__default: kt,
|
|
343
|
+
container__warning: $t,
|
|
344
|
+
container__alert: xt,
|
|
345
|
+
container__success: zt
|
|
346
|
+
}, Ho = /* @__PURE__ */ T({
|
|
341
347
|
__name: "OnPageMessage",
|
|
342
348
|
props: {
|
|
343
349
|
variant: { default: "default" },
|
|
@@ -356,7 +362,7 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
|
|
|
356
362
|
return "filled-info-circle";
|
|
357
363
|
}
|
|
358
364
|
});
|
|
359
|
-
return (t, a) => (p(),
|
|
365
|
+
return (t, a) => (p(), m("div", {
|
|
360
366
|
class: s([
|
|
361
367
|
o(ue).container,
|
|
362
368
|
o(ue)[`container__${t.variant}`]
|
|
@@ -371,23 +377,25 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
|
|
|
371
377
|
}, I(t.text), 3)
|
|
372
378
|
], 2));
|
|
373
379
|
}
|
|
374
|
-
}),
|
|
375
|
-
button__size_default:
|
|
376
|
-
button__size_small:
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
"button--
|
|
382
|
-
"button--
|
|
383
|
-
"button--
|
|
384
|
-
"button--
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
380
|
+
}), St = "_button__size_default_1r6q6_1", Ct = "_button__size_small_1r6q6_8", It = "_icon_1r6q6_136", Bt = "_spinner_1r6q6_1", Pt = "_button_1r6q6_1", Mt = "_button__label_1r6q6_210", Tt = "_button__solid_1r6q6_349", qt = "_segmentGroup_1r6q6_356", Ht = "_fill_1r6q6_378", H = {
|
|
381
|
+
button__size_default: St,
|
|
382
|
+
button__size_small: Ct,
|
|
383
|
+
icon: It,
|
|
384
|
+
spinner: Bt,
|
|
385
|
+
button: Pt,
|
|
386
|
+
button__label: Mt,
|
|
387
|
+
"button--primary": "_button--primary_1r6q6_227",
|
|
388
|
+
"button--selected": "_button--selected_1r6q6_237",
|
|
389
|
+
"button--secondary": "_button--secondary_1r6q6_250",
|
|
390
|
+
"button--danger": "_button--danger_1r6q6_273",
|
|
391
|
+
"button--warning": "_button--warning_1r6q6_296",
|
|
392
|
+
"button--smart": "_button--smart_1r6q6_319",
|
|
393
|
+
button__solid: Tt,
|
|
394
|
+
segmentGroup: qt,
|
|
395
|
+
"segmentGroup--vertical": "_segmentGroup--vertical_1r6q6_359",
|
|
396
|
+
"segmentGroup--horizontal": "_segmentGroup--horizontal_1r6q6_368",
|
|
397
|
+
fill: Ht
|
|
398
|
+
}, Vt = ["disabled", "onClick"], Vo = /* @__PURE__ */ T({
|
|
391
399
|
__name: "SegmentButton",
|
|
392
400
|
props: {
|
|
393
401
|
color: {},
|
|
@@ -409,47 +417,49 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
|
|
|
409
417
|
const d = v([...r.segments]);
|
|
410
418
|
return oe(() => r.segments, (e) => {
|
|
411
419
|
d.value = [...e], e.some((l) => l.value === a.value) || (a.value = "", t("update:modelValue", ""));
|
|
412
|
-
}, { deep: !0 }), (e, l) => (p(),
|
|
420
|
+
}, { deep: !0 }), (e, l) => (p(), m("div", {
|
|
413
421
|
class: s([
|
|
414
|
-
o(
|
|
415
|
-
o(
|
|
416
|
-
{ [o(
|
|
422
|
+
o(H).segmentGroup,
|
|
423
|
+
o(H)[`segmentGroup--${e.align}`],
|
|
424
|
+
{ [o(H).fill]: e.fill }
|
|
417
425
|
])
|
|
418
426
|
}, [
|
|
419
|
-
(p(!0),
|
|
427
|
+
(p(!0), m(pe, null, he(d.value, (b, c) => (p(), m("button", {
|
|
420
428
|
key: `${b.value}-${c}`,
|
|
421
429
|
class: s([
|
|
422
|
-
o(
|
|
423
|
-
o(
|
|
424
|
-
o(
|
|
425
|
-
o(
|
|
430
|
+
o(H).button,
|
|
431
|
+
o(H)[`button--${e.color}`],
|
|
432
|
+
o(H)[`button__size_${e.size}`],
|
|
433
|
+
o(H).fill,
|
|
426
434
|
{
|
|
427
|
-
[o(
|
|
435
|
+
[o(H)["button--selected"]]: b.value === a.value
|
|
428
436
|
}
|
|
429
437
|
]),
|
|
430
438
|
disabled: b.disabled || r.disabled,
|
|
431
439
|
onClick: (P) => _(b)
|
|
432
440
|
}, [
|
|
433
|
-
b.icon ? (p(),
|
|
441
|
+
b.icon ? (p(), j(o(Q), {
|
|
434
442
|
key: 0,
|
|
435
443
|
name: b.icon
|
|
436
|
-
}, null, 8, ["name"])) :
|
|
437
|
-
b.label ? (p(),
|
|
444
|
+
}, null, 8, ["name"])) : k("", !0),
|
|
445
|
+
b.label ? (p(), m("span", {
|
|
438
446
|
key: 1,
|
|
439
|
-
class: s(o(
|
|
440
|
-
}, I(b.label), 3)) :
|
|
441
|
-
], 10,
|
|
447
|
+
class: s(o(H).button__label)
|
|
448
|
+
}, I(b.label), 3)) : k("", !0)
|
|
449
|
+
], 10, Vt))), 128))
|
|
442
450
|
], 2));
|
|
443
451
|
}
|
|
444
|
-
}),
|
|
445
|
-
wrapper__field:
|
|
446
|
-
wrapper__label:
|
|
447
|
-
wrapper__errorMessage:
|
|
448
|
-
wrapper__counter:
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
452
|
+
}), Lt = "_wrapper__field_l1d3k_1", Ot = "_wrapper__label_l1d3k_1", Nt = "_wrapper__errorMessage_l1d3k_1", Et = "_wrapper__counter_l1d3k_1", Wt = "_icon_l1d3k_129", Dt = "_spinner_l1d3k_1", At = "_wrapper_l1d3k_1", Rt = "_wrapper__bottom_l1d3k_240", V = {
|
|
453
|
+
wrapper__field: Lt,
|
|
454
|
+
wrapper__label: Ot,
|
|
455
|
+
wrapper__errorMessage: Nt,
|
|
456
|
+
wrapper__counter: Et,
|
|
457
|
+
icon: Wt,
|
|
458
|
+
spinner: Dt,
|
|
459
|
+
wrapper: At,
|
|
460
|
+
wrapper__bottom: Rt,
|
|
461
|
+
"wrapper--error": "_wrapper--error_l1d3k_253"
|
|
462
|
+
}, Gt = ["for"], Yt = ["id", "maxlength", "name", "placeholder", "value"], Xt = ["id", "maxlength", "name", "placeholder", "value"], Lo = /* @__PURE__ */ T({
|
|
453
463
|
__name: "TextInput",
|
|
454
464
|
props: {
|
|
455
465
|
id: {},
|
|
@@ -480,43 +490,43 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
|
|
|
480
490
|
_();
|
|
481
491
|
}), (e, l) => {
|
|
482
492
|
var b;
|
|
483
|
-
return p(),
|
|
484
|
-
class: s(o(
|
|
493
|
+
return p(), m("div", {
|
|
494
|
+
class: s(o(V).wrapper)
|
|
485
495
|
}, [
|
|
486
|
-
e.label ? (p(),
|
|
496
|
+
e.label ? (p(), m("label", {
|
|
487
497
|
key: 0,
|
|
488
|
-
class: s(o(
|
|
498
|
+
class: s(o(V).wrapper__label),
|
|
489
499
|
for: e.id
|
|
490
|
-
}, I(e.label), 11,
|
|
491
|
-
e.multiline ? (p(),
|
|
500
|
+
}, I(e.label), 11, Gt)) : k("", !0),
|
|
501
|
+
e.multiline ? (p(), m("textarea", {
|
|
492
502
|
key: 1,
|
|
493
503
|
id: e.id,
|
|
494
504
|
ref_key: "textareaRef",
|
|
495
505
|
ref: a,
|
|
496
506
|
class: s([
|
|
497
|
-
o(
|
|
507
|
+
o(V).wrapper__field,
|
|
498
508
|
{
|
|
499
|
-
[o(
|
|
509
|
+
[o(V)["wrapper--error"]]: e.error
|
|
500
510
|
}
|
|
501
511
|
]),
|
|
502
512
|
maxlength: e.maxLength,
|
|
503
513
|
name: e.name,
|
|
504
514
|
placeholder: e.placeholder,
|
|
505
|
-
style:
|
|
515
|
+
style: U(e.maxHeight ? { maxHeight: `${e.maxHeight}px` } : void 0),
|
|
506
516
|
value: e.modelValue,
|
|
507
517
|
onBlur: l[0] || (l[0] = (c) => t("blur", c)),
|
|
508
518
|
onChange: l[1] || (l[1] = (c) => e.$emit("change", c)),
|
|
509
519
|
onFocus: l[2] || (l[2] = (c) => t("focus", c)),
|
|
510
520
|
onInput: d,
|
|
511
521
|
onPaste: l[3] || (l[3] = (c) => t("paste", c))
|
|
512
|
-
}, null, 46,
|
|
522
|
+
}, null, 46, Yt)) : (p(), m("input", {
|
|
513
523
|
key: 2,
|
|
514
524
|
id: e.id,
|
|
515
525
|
type: "text",
|
|
516
526
|
class: s([
|
|
517
|
-
o(
|
|
527
|
+
o(V).wrapper__field,
|
|
518
528
|
{
|
|
519
|
-
[o(
|
|
529
|
+
[o(V)["wrapper--error"]]: e.error
|
|
520
530
|
}
|
|
521
531
|
]),
|
|
522
532
|
maxlength: e.maxLength,
|
|
@@ -528,33 +538,35 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
|
|
|
528
538
|
onFocus: l[6] || (l[6] = (c) => t("focus", c)),
|
|
529
539
|
onInput: d,
|
|
530
540
|
onPaste: l[7] || (l[7] = (c) => t("paste", c))
|
|
531
|
-
}, null, 42,
|
|
541
|
+
}, null, 42, Xt)),
|
|
532
542
|
y("div", {
|
|
533
|
-
class: s(o(
|
|
543
|
+
class: s(o(V).wrapper__bottom)
|
|
534
544
|
}, [
|
|
535
|
-
e.error ? (p(),
|
|
545
|
+
e.error ? (p(), m("div", {
|
|
536
546
|
key: 0,
|
|
537
|
-
class: s(o(
|
|
538
|
-
}, I(e.error), 3)) :
|
|
539
|
-
e.counter ? (p(),
|
|
547
|
+
class: s(o(V).wrapper__errorMessage)
|
|
548
|
+
}, I(e.error), 3)) : k("", !0),
|
|
549
|
+
e.counter ? (p(), m("div", {
|
|
540
550
|
key: 1,
|
|
541
|
-
class: s(o(
|
|
542
|
-
}, I(((b = e.modelValue) == null ? void 0 : b.toString().length) || 0), 3)) :
|
|
551
|
+
class: s(o(V).wrapper__counter)
|
|
552
|
+
}, I(((b = e.modelValue) == null ? void 0 : b.toString().length) || 0), 3)) : k("", !0)
|
|
543
553
|
], 2)
|
|
544
554
|
], 2);
|
|
545
555
|
};
|
|
546
556
|
}
|
|
547
|
-
}),
|
|
548
|
-
wrapper__label:
|
|
549
|
-
wrapper__errorMessage:
|
|
550
|
-
wrapper__counter:
|
|
551
|
-
wrapper:
|
|
552
|
-
wrapper__field:
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
557
|
+
}), Ft = "_wrapper__label_k2iss_1", Ut = "_wrapper__errorMessage_k2iss_1", jt = "_wrapper__counter_k2iss_1", Qt = "_wrapper_k2iss_1", Zt = "_wrapper__field_k2iss_8", Jt = "_icon_k2iss_134", Kt = "_spinner_k2iss_1", eo = "_wrapper__size_default_k2iss_204", to = "_wrapper__size_small_k2iss_207", oo = "_wrapper__bottom_k2iss_244", N = {
|
|
558
|
+
wrapper__label: Ft,
|
|
559
|
+
wrapper__errorMessage: Ut,
|
|
560
|
+
wrapper__counter: jt,
|
|
561
|
+
wrapper: Qt,
|
|
562
|
+
wrapper__field: Zt,
|
|
563
|
+
icon: Jt,
|
|
564
|
+
spinner: Kt,
|
|
565
|
+
wrapper__size_default: eo,
|
|
566
|
+
wrapper__size_small: to,
|
|
567
|
+
wrapper__bottom: oo,
|
|
568
|
+
"wrapper--error": "_wrapper--error_k2iss_257"
|
|
569
|
+
}, no = ["for"], ro = ["id", "max", "maxlength", "min", "name", "placeholder", "value"], Oo = /* @__PURE__ */ T({
|
|
558
570
|
__name: "NumberInput",
|
|
559
571
|
props: {
|
|
560
572
|
id: {},
|
|
@@ -586,21 +598,21 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
|
|
|
586
598
|
};
|
|
587
599
|
return (e, l) => {
|
|
588
600
|
var b;
|
|
589
|
-
return p(),
|
|
590
|
-
class: s([o(
|
|
601
|
+
return p(), m("div", {
|
|
602
|
+
class: s([o(N).wrapper, o(N)[`wrapper__size_${e.size}`]])
|
|
591
603
|
}, [
|
|
592
|
-
e.label ? (p(),
|
|
604
|
+
e.label ? (p(), m("label", {
|
|
593
605
|
key: 0,
|
|
594
|
-
class: s(o(
|
|
606
|
+
class: s(o(N).wrapper__label),
|
|
595
607
|
for: e.id
|
|
596
|
-
}, I(e.label), 11,
|
|
608
|
+
}, I(e.label), 11, no)) : k("", !0),
|
|
597
609
|
y("input", {
|
|
598
610
|
id: e.id,
|
|
599
611
|
type: "number",
|
|
600
612
|
class: s([
|
|
601
|
-
o(
|
|
613
|
+
o(N).wrapper__field,
|
|
602
614
|
{
|
|
603
|
-
[o(
|
|
615
|
+
[o(N)["wrapper--error"]]: e.error || e.errorStatus
|
|
604
616
|
}
|
|
605
617
|
]),
|
|
606
618
|
max: e.max,
|
|
@@ -614,30 +626,32 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
|
|
|
614
626
|
onFocus: l[1] || (l[1] = (c) => t("focus", c)),
|
|
615
627
|
onInput: _,
|
|
616
628
|
onPaste: l[2] || (l[2] = (c) => t("paste", c))
|
|
617
|
-
}, null, 42,
|
|
618
|
-
e.counter || e.error ? (p(),
|
|
629
|
+
}, null, 42, ro),
|
|
630
|
+
e.counter || e.error ? (p(), m("div", {
|
|
619
631
|
key: 1,
|
|
620
|
-
class: s(o(
|
|
632
|
+
class: s(o(N).wrapper__bottom)
|
|
621
633
|
}, [
|
|
622
|
-
e.error ? (p(),
|
|
634
|
+
e.error ? (p(), m("div", {
|
|
623
635
|
key: 0,
|
|
624
|
-
class: s(o(
|
|
625
|
-
}, I(e.error), 3)) :
|
|
626
|
-
e.counter ? (p(),
|
|
636
|
+
class: s(o(N).wrapper__errorMessage)
|
|
637
|
+
}, I(e.error), 3)) : k("", !0),
|
|
638
|
+
e.counter ? (p(), m("div", {
|
|
627
639
|
key: 1,
|
|
628
|
-
class: s(o(
|
|
629
|
-
}, I(((b = e.modelValue) == null ? void 0 : b.toString().length) || 0), 3)) :
|
|
630
|
-
], 2)) :
|
|
640
|
+
class: s(o(N).wrapper__counter)
|
|
641
|
+
}, I(((b = e.modelValue) == null ? void 0 : b.toString().length) || 0), 3)) : k("", !0)
|
|
642
|
+
], 2)) : k("", !0)
|
|
631
643
|
], 2);
|
|
632
644
|
};
|
|
633
645
|
}
|
|
634
|
-
}),
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
646
|
+
}), ao = "_icon_15ntm_122", lo = "_spinner_15ntm_1", so = "_wrapper_15ntm_188", _o = "_wrapper__label_15ntm_195", io = "_wrapper__input_15ntm_219", uo = "_wrapper_checked_15ntm_229", po = "_wrapper_disabled_15ntm_236", F = {
|
|
647
|
+
icon: ao,
|
|
648
|
+
spinner: lo,
|
|
649
|
+
wrapper: so,
|
|
650
|
+
wrapper__label: _o,
|
|
651
|
+
wrapper__input: io,
|
|
652
|
+
wrapper_checked: uo,
|
|
653
|
+
wrapper_disabled: po
|
|
654
|
+
}, co = ["id", "checked", "disabled", "name"], mo = ["for"], No = /* @__PURE__ */ T({
|
|
641
655
|
__name: "Toggle",
|
|
642
656
|
props: {
|
|
643
657
|
id: {},
|
|
@@ -650,12 +664,12 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
|
|
|
650
664
|
const r = u, t = n, a = () => {
|
|
651
665
|
t("click", !r.checked);
|
|
652
666
|
};
|
|
653
|
-
return (_, d) => (p(),
|
|
667
|
+
return (_, d) => (p(), m("fieldset", {
|
|
654
668
|
class: s([
|
|
655
|
-
o(
|
|
669
|
+
o(F).wrapper,
|
|
656
670
|
{
|
|
657
|
-
[o(
|
|
658
|
-
[o(
|
|
671
|
+
[o(F).wrapper_checked]: _.checked,
|
|
672
|
+
[o(F).wrapper_disabled]: _.disabled
|
|
659
673
|
}
|
|
660
674
|
])
|
|
661
675
|
}, [
|
|
@@ -663,48 +677,50 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
|
|
|
663
677
|
id: _.id,
|
|
664
678
|
type: "checkbox",
|
|
665
679
|
checked: _.checked,
|
|
666
|
-
class: s(o(
|
|
680
|
+
class: s(o(F).wrapper__input),
|
|
667
681
|
disabled: _.disabled,
|
|
668
682
|
name: _.name,
|
|
669
683
|
onClick: a
|
|
670
|
-
}, null, 10,
|
|
684
|
+
}, null, 10, co),
|
|
671
685
|
y("label", {
|
|
672
|
-
class: s(o(
|
|
686
|
+
class: s(o(F).wrapper__label),
|
|
673
687
|
for: _.id
|
|
674
|
-
}, null, 10,
|
|
688
|
+
}, null, 10, mo)
|
|
675
689
|
], 2));
|
|
676
690
|
}
|
|
677
691
|
});
|
|
678
|
-
function
|
|
692
|
+
function fo(u = "") {
|
|
679
693
|
return typeof u == "string" ? u.replace(/<\/style>/gi, "").replace(/<(.*?) on(.*?)=['"](.*?)>/gi, "").replace(/(<meta |<style|<\/*script)(.*?)>/gi, "").replace(/(<([^>]+)>)/ig, "").replace(/<(.*?) (href|src)="j(.*)a(.*)v(.*)a(.*)s(.*)c(.*)r(.*)i(.*)p(.*)t(.*):(.*?)>/gi, "") : u;
|
|
680
694
|
}
|
|
681
|
-
const
|
|
682
|
-
wrapper__box:
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
"wrapper__box_bottom-
|
|
688
|
-
"
|
|
689
|
-
"
|
|
690
|
-
"wrapper__box_top-
|
|
691
|
-
"
|
|
692
|
-
"
|
|
693
|
-
"wrapper__box_right-
|
|
694
|
-
"
|
|
695
|
-
"
|
|
696
|
-
"wrapper__box_left-
|
|
697
|
-
|
|
698
|
-
"
|
|
699
|
-
|
|
700
|
-
"
|
|
701
|
-
"
|
|
702
|
-
"
|
|
703
|
-
"
|
|
704
|
-
"
|
|
705
|
-
"
|
|
706
|
-
"
|
|
707
|
-
|
|
695
|
+
const bo = "_wrapper__box_49orz_1", vo = "_icon_49orz_129", go = "_spinner_49orz_1", wo = "_wrapper_49orz_1", ho = "_wrapper__icon_49orz_203", yo = "_wrapper__text_49orz_286", E = {
|
|
696
|
+
wrapper__box: bo,
|
|
697
|
+
icon: vo,
|
|
698
|
+
spinner: go,
|
|
699
|
+
wrapper: wo,
|
|
700
|
+
wrapper__icon: ho,
|
|
701
|
+
"wrapper__box_bottom-start": "_wrapper__box_bottom-start_49orz_218",
|
|
702
|
+
"wrapper__box_bottom-center": "_wrapper__box_bottom-center_49orz_224",
|
|
703
|
+
"wrapper__box_bottom-end": "_wrapper__box_bottom-end_49orz_230",
|
|
704
|
+
"wrapper__box_top-start": "_wrapper__box_top-start_49orz_236",
|
|
705
|
+
"wrapper__box_top-center": "_wrapper__box_top-center_49orz_242",
|
|
706
|
+
"wrapper__box_top-end": "_wrapper__box_top-end_49orz_248",
|
|
707
|
+
"wrapper__box_right-start": "_wrapper__box_right-start_49orz_254",
|
|
708
|
+
"wrapper__box_right-center": "_wrapper__box_right-center_49orz_260",
|
|
709
|
+
"wrapper__box_right-end": "_wrapper__box_right-end_49orz_266",
|
|
710
|
+
"wrapper__box_left-start": "_wrapper__box_left-start_49orz_271",
|
|
711
|
+
"wrapper__box_left-center": "_wrapper__box_left-center_49orz_276",
|
|
712
|
+
"wrapper__box_left-end": "_wrapper__box_left-end_49orz_281",
|
|
713
|
+
wrapper__text: yo,
|
|
714
|
+
"wrapper__box-content": "_wrapper__box-content_49orz_315",
|
|
715
|
+
"bottom-entrance": "_bottom-entrance_49orz_328",
|
|
716
|
+
"top-entrance": "_top-entrance_49orz_331",
|
|
717
|
+
"left-entrance": "_left-entrance_49orz_334",
|
|
718
|
+
"right-entrance": "_right-entrance_49orz_337",
|
|
719
|
+
"bottom-leave": "_bottom-leave_49orz_340",
|
|
720
|
+
"top-leave": "_top-leave_49orz_343",
|
|
721
|
+
"right-leave": "_right-leave_49orz_346",
|
|
722
|
+
"left-leave": "_left-leave_49orz_349"
|
|
723
|
+
}, ko = ["id"], $o = ["innerHTML"], Eo = /* @__PURE__ */ T({
|
|
708
724
|
__name: "Tooltip",
|
|
709
725
|
props: {
|
|
710
726
|
id: {},
|
|
@@ -723,25 +739,25 @@ const to = "_wrapper__box_1avga_1", oo = "_wrapper_1avga_1", no = "_wrapper__ico
|
|
|
723
739
|
absolutePosition: { type: [Boolean, null, String, Object, Array] }
|
|
724
740
|
},
|
|
725
741
|
setup(u) {
|
|
726
|
-
const n = u, r = v(null), t = v("center"), a = v("bottom"), _ = v("center"), d = v(!1), e = v(""), l = v(!1), b = v(!1), c = v(""), P = v("d-n"),
|
|
742
|
+
const n = u, r = v(null), t = v("center"), a = v("bottom"), _ = v("center"), d = v(!1), e = v(""), l = v(!1), b = v(!1), c = v(""), P = v("d-n"), q = v(null), B = v(null), R = v(null), S = C(() => n.staticPosition.split(" ")[0]), L = C(() => n.staticPosition.split(" ")[1]), Z = C(() => n.iconName ? "mt-1" : "mt-0"), re = C(() => n.preventXss ? fo(n.text) : n.text), D = C(() => n.absolutePositionStatus ? n.absoluteTrianglePosition : n.dynamicPosition && d.value ? a.value === "bottom" ? "top" : "bottom" : S.value === "top" ? "bottom" : S.value === "bottom" ? "top" : S.value === "left" ? "right" : S.value === "right" ? "left" : "bottom"), ae = C(() => n.absolutePositionStatus ? "" : l.value && b.value || c.value === "icon" && l.value ? "opa-1" : "opa-0"), J = C(() => n.absolutePositionStatus ? n.absoluteTriangleAlignment : n.dynamicPosition && d.value ? t.value === "center" ? "center" : t.value === "end" ? "end" : t.value === "start" ? "start" : _.value : L.value === "center" ? "center" : L.value === "left" || L.value === "top" ? "start" : L.value === "right" || L.value === "bottom" ? "end" : "center"), le = C(() => n.absolutePositionStatus ? "" : n.dynamicPosition && d.value ? E[`wrapper__box_${a.value}-${t.value}`] : E[`wrapper__box_${S.value}-${J.value}`]), K = C(() => n.offsetX === 0 && n.offsetY === 0 ? {} : n.dynamicPosition ? {
|
|
727
743
|
[`margin-${a.value === "bottom" ? "top" : "bottom"}`]: `${n.offsetY}px`
|
|
728
|
-
} :
|
|
729
|
-
[`margin-${
|
|
730
|
-
} : { [`margin-${
|
|
731
|
-
const { offsetTop: w, offsetLeft: h, offsetWidth: M, offsetHeight:
|
|
744
|
+
} : D.value === "top" || D.value === "bottom" ? {
|
|
745
|
+
[`margin-${D.value}`]: `${n.offsetY}px`
|
|
746
|
+
} : { [`margin-${D.value}`]: `${n.offsetX}px` }), se = (i) => {
|
|
747
|
+
const { offsetTop: w, offsetLeft: h, offsetWidth: M, offsetHeight: X } = i, A = w + X, ie = h + M;
|
|
732
748
|
return {
|
|
733
749
|
top: w,
|
|
734
750
|
left: h,
|
|
735
751
|
width: M,
|
|
736
|
-
bottom:
|
|
752
|
+
bottom: A,
|
|
737
753
|
right: ie
|
|
738
754
|
};
|
|
739
|
-
},
|
|
755
|
+
}, f = (i, w, h = !1) => {
|
|
740
756
|
if (!i || !B.value)
|
|
741
757
|
return { left: !1, right: !1, top: !1, bottom: !1, center: !1 };
|
|
742
|
-
const M = { left: 0, right: 0, top: 0, bottom: 0, width: 0, height: 0 },
|
|
758
|
+
const M = { left: 0, right: 0, top: 0, bottom: 0, width: 0, height: 0 }, X = B.value.offsetHeight, A = window.innerWidth, ie = window.innerHeight, de = i.offsetHeight, te = i.offsetWidth || 264, z = w && se(w) || M, me = h ? z == null ? void 0 : z.right : z == null ? void 0 : z.left, fe = h ? z == null ? void 0 : z.top : z == null ? void 0 : z.bottom, Ie = me + z.width + te + n.offsetX < A, Be = me + z.width / 2 - (te + n.offsetX) > 10, Pe = fe + de < ie - n.offsetY, Me = fe - (de + X + n.offsetY) > 0;
|
|
743
759
|
let be = !1;
|
|
744
|
-
return n.iconName && (be =
|
|
760
|
+
return n.iconName && (be = z.right + te / 2 < A && z.left - (te + n.offsetX) / 2 >= 10), {
|
|
745
761
|
left: Be,
|
|
746
762
|
right: Ie,
|
|
747
763
|
bottom: Pe,
|
|
@@ -750,13 +766,13 @@ const to = "_wrapper__box_1avga_1", oo = "_wrapper_1avga_1", no = "_wrapper__ico
|
|
|
750
766
|
};
|
|
751
767
|
}, g = () => {
|
|
752
768
|
we(() => {
|
|
753
|
-
var
|
|
769
|
+
var A;
|
|
754
770
|
d.value = !0;
|
|
755
|
-
const { bottom: i, left: w, right: h, top: M, center:
|
|
756
|
-
|
|
757
|
-
(
|
|
771
|
+
const { bottom: i, left: w, right: h, top: M, center: X } = f(
|
|
772
|
+
R.value,
|
|
773
|
+
(A = R.value) == null ? void 0 : A.parentNode
|
|
758
774
|
);
|
|
759
|
-
if (
|
|
775
|
+
if (X) {
|
|
760
776
|
t.value = "center", a.value = i && !M ? "bottom" : "top";
|
|
761
777
|
return;
|
|
762
778
|
}
|
|
@@ -805,16 +821,16 @@ const to = "_wrapper__box_1avga_1", oo = "_wrapper_1avga_1", no = "_wrapper__ico
|
|
|
805
821
|
return !1;
|
|
806
822
|
const w = i.scrollHeight > i.offsetHeight, h = window.getComputedStyle(i).overflowY, M = ["auto", "scroll"].includes(h);
|
|
807
823
|
return w && M;
|
|
808
|
-
},
|
|
824
|
+
}, O = (i) => {
|
|
809
825
|
const w = (i == null ? void 0 : i.nodeType) === Node.COMMENT_NODE, h = (i == null ? void 0 : i.nodeType) === Node.DOCUMENT_NODE;
|
|
810
|
-
return !i || w || h ? document : x(i) ? i :
|
|
811
|
-
},
|
|
826
|
+
return !i || w || h ? document : x(i) ? i : O(i.parentNode);
|
|
827
|
+
}, Y = () => {
|
|
812
828
|
var i;
|
|
813
|
-
(i =
|
|
829
|
+
(i = q.value) == null || i.removeEventListener("scroll", g), window == null || window.removeEventListener("resize", g);
|
|
814
830
|
}, ee = () => {
|
|
815
831
|
we(() => {
|
|
816
832
|
var i;
|
|
817
|
-
|
|
833
|
+
q.value = O(B.value), (i = q.value) == null || i.addEventListener("scroll", g), window == null || window.addEventListener("resize", g);
|
|
818
834
|
});
|
|
819
835
|
}, $e = () => {
|
|
820
836
|
c.value = "wrapper", P.value = "d-b", l.value = !0;
|
|
@@ -822,10 +838,10 @@ const to = "_wrapper__box_1avga_1", oo = "_wrapper_1avga_1", no = "_wrapper__ico
|
|
|
822
838
|
c.value = "icon", P.value = "d-b", b.value = !0;
|
|
823
839
|
}, xe = () => {
|
|
824
840
|
b.value = !1;
|
|
825
|
-
},
|
|
841
|
+
}, ze = () => {
|
|
826
842
|
c.value = "", l.value = !1, b.value = !1;
|
|
827
843
|
}, Se = () => {
|
|
828
|
-
|
|
844
|
+
ze(), n.dynamicPosition ? a.value === "bottom" ? e.value = "bottom-leave" : a.value === "top" && (e.value = "top-leave") : S.value === "top" ? e.value = "top-leave" : S.value === "bottom" ? e.value = "bottom-leave" : S.value === "left" ? e.value = "left-leave" : S.value === "right" && (e.value = "right-leave"), setTimeout(() => {
|
|
829
845
|
e.value = "", P.value = "d-n";
|
|
830
846
|
}, n.absolutePositionStatus ? 0 : 250);
|
|
831
847
|
}, Ce = () => {
|
|
@@ -835,76 +851,78 @@ const to = "_wrapper__box_1avga_1", oo = "_wrapper_1avga_1", no = "_wrapper__ico
|
|
|
835
851
|
};
|
|
836
852
|
return ce(() => {
|
|
837
853
|
n.dynamicPosition && ee();
|
|
838
|
-
}),
|
|
839
|
-
|
|
840
|
-
}), (i, w) => (p(),
|
|
854
|
+
}), Ve(() => {
|
|
855
|
+
Y();
|
|
856
|
+
}), (i, w) => (p(), m("div", {
|
|
841
857
|
id: i.id,
|
|
842
858
|
ref_key: "tooltipRootRef",
|
|
843
859
|
ref: B,
|
|
844
|
-
class: s(o(
|
|
860
|
+
class: s(o(E).wrapper),
|
|
845
861
|
onMouseenter: Ce,
|
|
846
862
|
onMouseleave: Se
|
|
847
863
|
}, [
|
|
848
|
-
i.iconName ? (p(),
|
|
864
|
+
i.iconName ? (p(), j(o(Q), {
|
|
849
865
|
key: 0,
|
|
850
866
|
ref_key: "tooltipIconRef",
|
|
851
867
|
ref: r,
|
|
852
|
-
class: s(o(
|
|
868
|
+
class: s(o(E).wrapper__icon),
|
|
853
869
|
name: i.iconName,
|
|
854
870
|
onMouseenter: _e,
|
|
855
871
|
onMouseleave: xe
|
|
856
|
-
}, null, 8, ["class", "name"])) : (p(),
|
|
872
|
+
}, null, 8, ["class", "name"])) : (p(), m("div", {
|
|
857
873
|
key: 1,
|
|
858
|
-
class: s(o(
|
|
874
|
+
class: s(o(E).wrapper__icon),
|
|
859
875
|
onMouseenter: _e,
|
|
860
876
|
onMouseleave: _e
|
|
861
877
|
}, [
|
|
862
|
-
|
|
878
|
+
W(i.$slots, "triggerElement")
|
|
863
879
|
], 34)),
|
|
864
|
-
i.status ? (p(),
|
|
880
|
+
i.status ? (p(), m("div", {
|
|
865
881
|
key: 2,
|
|
866
882
|
ref_key: "tooltipPopupRef",
|
|
867
|
-
ref:
|
|
868
|
-
class: s([o(
|
|
869
|
-
style:
|
|
883
|
+
ref: R,
|
|
884
|
+
class: s([o(E).wrapper__box, le.value, ae.value, P.value]),
|
|
885
|
+
style: U(i.absolutePosition)
|
|
870
886
|
}, [
|
|
871
|
-
ye(o(
|
|
887
|
+
ye(o(Po), {
|
|
872
888
|
"border-triangle": "",
|
|
873
889
|
"border-triangle-align": J.value,
|
|
874
|
-
"border-triangle-position":
|
|
875
|
-
class: s([o(
|
|
876
|
-
style:
|
|
890
|
+
"border-triangle-position": D.value,
|
|
891
|
+
class: s([o(E)["wrapper__box-content"], Z.value, e.value]),
|
|
892
|
+
style: U(K.value)
|
|
877
893
|
}, {
|
|
878
|
-
default:
|
|
894
|
+
default: ke(() => [
|
|
879
895
|
y("div", {
|
|
880
|
-
class: s(o(
|
|
881
|
-
style:
|
|
896
|
+
class: s(o(E).wrapper__text),
|
|
897
|
+
style: U({ maxHeight: `${i.maxHeight}px`, overflowY: "auto" })
|
|
882
898
|
}, [
|
|
883
|
-
y("div", { innerHTML: re.value }, null, 8,
|
|
884
|
-
|
|
899
|
+
y("div", { innerHTML: re.value }, null, 8, $o),
|
|
900
|
+
W(i.$slots, "contentSlot")
|
|
885
901
|
], 6)
|
|
886
902
|
]),
|
|
887
903
|
_: 3
|
|
888
904
|
}, 8, ["border-triangle-align", "border-triangle-position", "class", "style"])
|
|
889
|
-
], 6)) :
|
|
890
|
-
], 42,
|
|
905
|
+
], 6)) : k("", !0)
|
|
906
|
+
], 42, ko));
|
|
891
907
|
}
|
|
892
|
-
}),
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
"box_top-
|
|
897
|
-
"
|
|
898
|
-
"
|
|
899
|
-
"box_right-
|
|
900
|
-
"
|
|
901
|
-
"
|
|
902
|
-
"box_bottom-
|
|
903
|
-
"
|
|
904
|
-
"
|
|
905
|
-
"box_left-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
+
}), xo = "_icon_1sx9k_122", zo = "_spinner_1sx9k_1", So = "_box_1sx9k_188", Co = "_flipBox_1sx9k_276", ne = {
|
|
909
|
+
icon: xo,
|
|
910
|
+
spinner: zo,
|
|
911
|
+
box: So,
|
|
912
|
+
"box_top-start": "_box_top-start_1sx9k_192",
|
|
913
|
+
"box_top-center": "_box_top-center_1sx9k_192",
|
|
914
|
+
"box_top-end": "_box_top-end_1sx9k_192",
|
|
915
|
+
"box_right-start": "_box_right-start_1sx9k_192",
|
|
916
|
+
"box_right-center": "_box_right-center_1sx9k_192",
|
|
917
|
+
"box_right-end": "_box_right-end_1sx9k_192",
|
|
918
|
+
"box_bottom-start": "_box_bottom-start_1sx9k_192",
|
|
919
|
+
"box_bottom-center": "_box_bottom-center_1sx9k_192",
|
|
920
|
+
"box_bottom-end": "_box_bottom-end_1sx9k_192",
|
|
921
|
+
"box_left-start": "_box_left-start_1sx9k_192",
|
|
922
|
+
"box_left-center": "_box_left-center_1sx9k_192",
|
|
923
|
+
"box_left-end": "_box_left-end_1sx9k_192",
|
|
924
|
+
flipBox: Co
|
|
925
|
+
}, Io = /* @__PURE__ */ T({
|
|
908
926
|
__name: "DefaultBox",
|
|
909
927
|
props: {
|
|
910
928
|
border: {},
|
|
@@ -921,37 +939,37 @@ const to = "_wrapper__box_1avga_1", oo = "_wrapper_1avga_1", no = "_wrapper__ico
|
|
|
921
939
|
function _() {
|
|
922
940
|
t("click");
|
|
923
941
|
}
|
|
924
|
-
return (d, e) => (p(),
|
|
942
|
+
return (d, e) => (p(), m("div", {
|
|
925
943
|
class: s([o(ne).box, a.value, d.border, d.borderRadius]),
|
|
926
944
|
onClick: _
|
|
927
945
|
}, [
|
|
928
|
-
|
|
946
|
+
W(d.$slots, "default")
|
|
929
947
|
], 2));
|
|
930
948
|
}
|
|
931
|
-
}),
|
|
949
|
+
}), Bo = /* @__PURE__ */ T({
|
|
932
950
|
__name: "FlipBox",
|
|
933
951
|
props: {
|
|
934
952
|
boxSpacing: { default: "" }
|
|
935
953
|
},
|
|
936
954
|
setup(u) {
|
|
937
|
-
return (n, r) => (p(),
|
|
955
|
+
return (n, r) => (p(), m("div", {
|
|
938
956
|
class: s([o(ne).flipBox, n.boxSpacing])
|
|
939
957
|
}, [
|
|
940
958
|
y("div", null, [
|
|
941
959
|
y("div", {
|
|
942
960
|
class: s([o(ne).box, n.boxSpacing])
|
|
943
961
|
}, [
|
|
944
|
-
|
|
962
|
+
W(n.$slots, "front")
|
|
945
963
|
], 2),
|
|
946
964
|
y("div", {
|
|
947
965
|
class: s([n.boxSpacing])
|
|
948
966
|
}, [
|
|
949
|
-
|
|
967
|
+
W(n.$slots, "reverse")
|
|
950
968
|
], 2)
|
|
951
969
|
])
|
|
952
970
|
], 2));
|
|
953
971
|
}
|
|
954
|
-
}),
|
|
972
|
+
}), Po = /* @__PURE__ */ T({
|
|
955
973
|
__name: "Box",
|
|
956
974
|
props: {
|
|
957
975
|
type: { default: "default" },
|
|
@@ -962,34 +980,34 @@ const to = "_wrapper__box_1avga_1", oo = "_wrapper_1avga_1", no = "_wrapper__ico
|
|
|
962
980
|
},
|
|
963
981
|
setup(u) {
|
|
964
982
|
const n = {
|
|
965
|
-
default:
|
|
966
|
-
flip:
|
|
983
|
+
default: Io,
|
|
984
|
+
flip: Bo
|
|
967
985
|
};
|
|
968
|
-
return (r, t) => (p(),
|
|
986
|
+
return (r, t) => (p(), j(Le(n[r.type]), {
|
|
969
987
|
"border-triangle": r.borderTriangle,
|
|
970
988
|
"border-triangle-align": r.borderTriangleAlign,
|
|
971
989
|
"border-triangle-position": r.borderTrianglePosition,
|
|
972
990
|
"box-spacing": r.boxSpacing
|
|
973
991
|
}, {
|
|
974
|
-
default:
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
992
|
+
default: ke(() => [
|
|
993
|
+
W(r.$slots, "default"),
|
|
994
|
+
W(r.$slots, "front"),
|
|
995
|
+
W(r.$slots, "reverse")
|
|
978
996
|
]),
|
|
979
997
|
_: 3
|
|
980
998
|
}, 8, ["border-triangle", "border-triangle-align", "border-triangle-position", "box-spacing"]));
|
|
981
999
|
}
|
|
982
1000
|
});
|
|
983
1001
|
export {
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
1002
|
+
Po as Box,
|
|
1003
|
+
To as Button,
|
|
1004
|
+
qo as DropdownMenu,
|
|
987
1005
|
Q as Icon,
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
1006
|
+
Oo as NumberInput,
|
|
1007
|
+
Ho as OnPageMessage,
|
|
1008
|
+
Vo as SegmentButton,
|
|
1009
|
+
Lo as TextInput,
|
|
1010
|
+
No as Toggle,
|
|
1011
|
+
Eo as Tooltip
|
|
994
1012
|
};
|
|
995
1013
|
//# sourceMappingURL=ab-components.es.js.map
|