@useinsider/ab-components 0.0.17 → 0.0.18

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.
@@ -1,9 +1,9 @@
1
- import { defineComponent as T, computed as C, openBlock as u, createElementBlock as f, normalizeClass as s, unref as o, createBlock as U, createCommentVNode as z, toDisplayString as I, ref as v, reactive as me, onMounted as pe, watch as oe, Fragment as ue, createElementVNode as $, withDirectives as ve, normalizeStyle as F, withModifiers as Te, vModelText as He, renderList as we, createVNode as he, onBeforeUnmount as Ve, renderSlot as W, withCtx as ye, nextTick as ge, resolveDynamicComponent as Le } from "vue";
2
- const Ne = "_button__size_default_16zzc_1", Oe = "_button__size_small_16zzc_8", Ee = "_button_16zzc_1", We = "_button__label_16zzc_193", De = "_button__solid_16zzc_205", je = "_fill_16zzc_1125", G = {
3
- button__size_default: Ne,
4
- button__size_small: Oe,
5
- button: Ee,
6
- button__label: We,
1
+ import { defineComponent as T, computed as C, openBlock as u, createElementBlock as f, normalizeClass as s, unref as o, createBlock as U, createCommentVNode as $, toDisplayString as I, ref as v, reactive as me, onMounted as pe, watch as oe, Fragment as ue, createElementVNode as z, withDirectives as ve, normalizeStyle as F, withModifiers as Te, vModelText as He, renderList as we, vShow as Ve, createVNode as he, onBeforeUnmount as Le, renderSlot as W, withCtx as ye, nextTick as ge, resolveDynamicComponent as Ne } from "vue";
2
+ const Oe = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8", We = "_button_16zzc_1", De = "_button__label_16zzc_193", je = "_button__solid_16zzc_205", qe = "_fill_16zzc_1125", G = {
3
+ button__size_default: Oe,
4
+ button__size_small: Ee,
5
+ button: We,
6
+ button__label: De,
7
7
  "button__solid-primary": "_button__solid-primary_16zzc_205",
8
8
  "no-hover-effect": "_no-hover-effect_16zzc_212",
9
9
  "button--selected": "_button--selected_16zzc_234",
@@ -31,9 +31,9 @@ const Ne = "_button__size_default_16zzc_1", Oe = "_button__size_small_16zzc_8",
31
31
  "button__outline-danger": "_button__outline-danger_16zzc_1000",
32
32
  "button__outline-warning": "_button__outline-warning_16zzc_1037",
33
33
  "button__outline-smart": "_button__outline-smart_16zzc_1074",
34
- button__solid: De,
35
- fill: je
36
- }, qe = ["disabled"], co = /* @__PURE__ */ T({
34
+ button__solid: je,
35
+ fill: qe
36
+ }, Ae = ["disabled"], fo = /* @__PURE__ */ T({
37
37
  __name: "Button",
38
38
  props: {
39
39
  variant: {},
@@ -66,18 +66,18 @@ const Ne = "_button__size_default_16zzc_1", Oe = "_button__size_small_16zzc_8",
66
66
  d.value ? (u(), U(o(Q), {
67
67
  key: 0,
68
68
  name: d.value
69
- }, null, 8, ["name"])) : z("", !0),
69
+ }, null, 8, ["name"])) : $("", !0),
70
70
  c.label ? (u(), f("span", {
71
71
  key: 1,
72
72
  class: s(o(G).button__label)
73
- }, I(c.label), 3)) : z("", !0),
73
+ }, I(c.label), 3)) : $("", !0),
74
74
  c.rightIconName ? (u(), U(o(Q), {
75
75
  key: 2,
76
76
  name: c.rightIconName
77
- }, null, 8, ["name"])) : z("", !0)
78
- ], 10, qe));
77
+ }, null, 8, ["name"])) : $("", !0)
78
+ ], 10, Ae));
79
79
  }
80
- }), Ae = {
80
+ }), Re = {
81
81
  mounted(i, n) {
82
82
  i.clickOutsideEvent = (r) => {
83
83
  [i, ...n.value.exclude || []].some((a) => a && (a === r.target || a.contains(r.target))) || n.value.handler();
@@ -86,43 +86,43 @@ const Ne = "_button__size_default_16zzc_1", Oe = "_button__size_small_16zzc_8",
86
86
  unmounted(i) {
87
87
  i.clickOutsideEvent && document.removeEventListener("click", i.clickOutsideEvent);
88
88
  }
89
- }, Re = (i, n) => {
89
+ }, Ge = (i, n) => {
90
90
  var t;
91
91
  let r = 0;
92
92
  for (const a of i)
93
93
  if (a.toLowerCase() === ((t = n[r]) == null ? void 0 : t.toLowerCase()) && r++, r === n.length)
94
94
  return !0;
95
95
  return !1;
96
- }, Ge = (i, n, r) => {
96
+ }, Ye = (i, n, r) => {
97
97
  if (!r.trim())
98
98
  return i;
99
99
  const t = r.toLowerCase();
100
100
  return i.filter((a) => {
101
101
  const d = String(a[n]);
102
- return Re(d.toLowerCase(), t);
102
+ return Ge(d.toLowerCase(), t);
103
103
  }).sort((a, d) => {
104
104
  const c = String(a[n]).toLowerCase(), e = String(d[n]).toLowerCase();
105
105
  return c === t ? -1 : e === t ? 1 : c.startsWith(t) && !e.startsWith(t) ? -1 : !c.startsWith(t) && e.startsWith(t) ? 1 : c.length - e.length;
106
106
  });
107
- }, Ye = "_dropdown_c02u6_1", Xe = "_menu_c02u6_1", Fe = "_dropdown__valueContent_c02u6_183", Ue = "_dropdown__label_c02u6_194", Qe = "_dropdown__value_c02u6_183", Ze = "_dropdown__placeholder_c02u6_202", Je = "_dropdown__arrowIcon_c02u6_210", Ke = "_menu__searchContainer_c02u6_225", et = "_menu__searchInputWrap_c02u6_229", tt = "_menu__searchInput_c02u6_229", ot = "_menu__errorMessage_c02u6_251", nt = "_menu__addButton_c02u6_258", rt = "_menu__itemContainer_c02u6_266", at = "_menu__item_c02u6_266", k = {
108
- dropdown: Ye,
109
- menu: Xe,
110
- dropdown__valueContent: Fe,
107
+ }, Xe = "_dropdown_c02u6_1", Fe = "_menu_c02u6_1", Ue = "_dropdown__valueContent_c02u6_183", Qe = "_dropdown__label_c02u6_194", Ze = "_dropdown__value_c02u6_183", Je = "_dropdown__placeholder_c02u6_202", Ke = "_dropdown__arrowIcon_c02u6_210", et = "_menu__searchContainer_c02u6_225", tt = "_menu__searchInputWrap_c02u6_229", ot = "_menu__searchInput_c02u6_229", nt = "_menu__errorMessage_c02u6_251", rt = "_menu__addButton_c02u6_258", at = "_menu__itemContainer_c02u6_266", lt = "_menu__item_c02u6_266", x = {
108
+ dropdown: Xe,
109
+ menu: Fe,
110
+ dropdown__valueContent: Ue,
111
111
  "dropdown__valueContent--open": "_dropdown__valueContent--open_c02u6_191",
112
- dropdown__label: Ue,
113
- dropdown__value: Qe,
114
- dropdown__placeholder: Ze,
115
- dropdown__arrowIcon: Je,
116
- menu__searchContainer: Ke,
117
- menu__searchInputWrap: et,
118
- menu__searchInput: tt,
112
+ dropdown__label: Qe,
113
+ dropdown__value: Ze,
114
+ dropdown__placeholder: Je,
115
+ dropdown__arrowIcon: Ke,
116
+ menu__searchContainer: et,
117
+ menu__searchInputWrap: tt,
118
+ menu__searchInput: ot,
119
119
  "menu__searchInput--error": "_menu__searchInput--error_c02u6_248",
120
- menu__errorMessage: ot,
121
- menu__addButton: nt,
122
- menu__itemContainer: rt,
123
- menu__item: at,
120
+ menu__errorMessage: nt,
121
+ menu__addButton: rt,
122
+ menu__itemContainer: at,
123
+ menu__item: lt,
124
124
  "menu__item--active": "_menu__item--active_c02u6_304"
125
- }, lt = ["for"], st = ["placeholder"], _t = ["onClick"], fo = /* @__PURE__ */ T({
125
+ }, st = ["for"], _t = ["placeholder"], it = ["onClick"], bo = /* @__PURE__ */ T({
126
126
  __name: "DropdownMenu",
127
127
  props: {
128
128
  id: {},
@@ -139,7 +139,7 @@ const Ne = "_button__size_default_16zzc_1", Oe = "_button__size_small_16zzc_8",
139
139
  },
140
140
  emits: ["update:modelValue", "add-error", "item-added", "select-item"],
141
141
  setup(i, { emit: n }) {
142
- const r = Ae, t = i, a = n, d = v(), c = v(), e = v(!1), l = v(null), m = v(""), p = v(null), P = v({ x: 0, y: 0, width: 0, shouldOpenUp: !1, height: t.menuHeight }), H = me([...t.items]), B = me([...t.items]), A = () => {
142
+ const r = Re, t = i, a = n, d = v(), c = v(), e = v(!1), l = v(null), m = v(""), p = v(null), P = v({ x: 0, y: 0, width: 0, shouldOpenUp: !1, height: t.menuHeight }), H = me([...t.items]), B = me([...t.items]), A = () => {
143
143
  if (!d.value)
144
144
  return;
145
145
  const { offsetTop: b, offsetLeft: h, offsetWidth: g } = d.value, j = window.innerHeight, R = b + d.value.offsetHeight, ee = R + t.menuHeight > j;
@@ -170,7 +170,7 @@ const Ne = "_button__size_default_16zzc_1", Oe = "_button__size_small_16zzc_8",
170
170
  };
171
171
  B.push(g), N(), a("item-added", g);
172
172
  }, ae = () => {
173
- const b = Ge(B, "text", m.value);
173
+ const b = Ye(B, "text", m.value);
174
174
  H.splice(0, H.length, ...b);
175
175
  }, J = () => {
176
176
  p.value = "";
@@ -200,109 +200,109 @@ const Ne = "_button__size_default_16zzc_1", Oe = "_button__size_small_16zzc_8",
200
200
  },
201
201
  { deep: !0 }
202
202
  ), (b, h) => (u(), f(ue, null, [
203
- $("div", {
203
+ z("div", {
204
204
  ref_key: "dropdownRef",
205
205
  ref: d,
206
- class: s(o(k).dropdown)
206
+ class: s(o(x).dropdown)
207
207
  }, [
208
208
  b.label ? (u(), f("label", {
209
209
  key: 0,
210
- class: s(o(k).dropdown__label),
210
+ class: s(o(x).dropdown__label),
211
211
  for: b.id
212
- }, I(b.label), 11, lt)) : z("", !0),
213
- $("button", {
212
+ }, I(b.label), 11, st)) : $("", !0),
213
+ z("button", {
214
214
  class: s([
215
- o(k).dropdown__valueContent,
215
+ o(x).dropdown__valueContent,
216
216
  {
217
- [o(k)["dropdown__valueContent--open"]]: e.value
217
+ [o(x)["dropdown__valueContent--open"]]: e.value
218
218
  }
219
219
  ]),
220
220
  onClick: S
221
221
  }, [
222
- $("span", {
223
- class: s(o(k).dropdown__value)
222
+ z("span", {
223
+ class: s(o(x).dropdown__value)
224
224
  }, I(K.value), 3),
225
225
  b.placeholder && !K.value ? (u(), f("span", {
226
226
  key: 0,
227
- class: s(o(k).dropdown__placeholder)
228
- }, I(b.placeholder), 3)) : z("", !0),
227
+ class: s(o(x).dropdown__placeholder)
228
+ }, I(b.placeholder), 3)) : $("", !0),
229
229
  (u(), f("svg", {
230
230
  fill: "none",
231
231
  height: "17",
232
232
  viewBox: "0 0 16 17",
233
233
  width: "16",
234
234
  xmlns: "http://www.w3.org/2000/svg",
235
- class: s(o(k).dropdown__arrowIcon)
235
+ class: s(o(x).dropdown__arrowIcon)
236
236
  }, h[2] || (h[2] = [
237
- $("path", {
237
+ z("path", {
238
238
  d: "M8 11.2021L4.5359 6.70215L11.4641 6.70215L8 11.2021Z",
239
239
  fill: "#91949F"
240
240
  }, null, -1)
241
241
  ]), 2))
242
242
  ], 2)
243
243
  ], 2),
244
- e.value ? ve((u(), f("div", {
245
- key: 0,
244
+ ve((u(), f("div", {
246
245
  ref_key: "menuRef",
247
246
  ref: c,
248
- class: s(o(k).menu),
247
+ class: s(o(x).menu),
249
248
  style: F(le.value),
250
249
  onClick: h[1] || (h[1] = Te(() => {
251
250
  }, ["prevent"]))
252
251
  }, [
253
252
  t.searchable ? (u(), f("div", {
254
253
  key: 0,
255
- class: s(o(k).menu__searchContainer)
254
+ class: s(o(x).menu__searchContainer)
256
255
  }, [
257
- $("div", {
258
- class: s(o(k).menu__searchInputWrap)
256
+ z("div", {
257
+ class: s(o(x).menu__searchInputWrap)
259
258
  }, [
260
- ve($("input", {
259
+ ve(z("input", {
261
260
  type: "text",
262
261
  class: s([
263
- o(k).menu__searchInput,
262
+ o(x).menu__searchInput,
264
263
  {
265
- [o(k)["menu__searchInput--error"]]: p.value
264
+ [o(x)["menu__searchInput--error"]]: p.value
266
265
  }
267
266
  ]),
268
267
  placeholder: b.searchPlaceHolder,
269
268
  "onUpdate:modelValue": h[0] || (h[0] = (g) => m.value = g),
270
269
  onFocus: J,
271
270
  onInput: ae
272
- }, null, 42, st), [
271
+ }, null, 42, _t), [
273
272
  [He, m.value]
274
273
  ]),
275
274
  p.value ? (u(), f("p", {
276
275
  key: 0,
277
- class: s(o(k).menu__errorMessage)
278
- }, I(p.value), 3)) : z("", !0)
276
+ class: s(o(x).menu__errorMessage)
277
+ }, I(p.value), 3)) : $("", !0)
279
278
  ], 2),
280
279
  t.addable ? (u(), f("button", {
281
280
  key: 0,
282
- class: s(o(k).menu__addButton),
281
+ class: s(o(x).menu__addButton),
283
282
  onClick: D
284
- }, I(b.addButtonText), 3)) : z("", !0)
285
- ], 2)) : z("", !0),
286
- $("ul", {
287
- class: s(o(k).menu__itemContainer)
283
+ }, I(b.addButtonText), 3)) : $("", !0)
284
+ ], 2)) : $("", !0),
285
+ z("ul", {
286
+ class: s(o(x).menu__itemContainer)
288
287
  }, [
289
288
  (u(!0), f(ue, null, we(H, (g, j) => (u(), f("li", {
290
289
  key: `${g.value}-${j}`,
291
290
  class: s([
292
- o(k).menu__item,
291
+ o(x).menu__item,
293
292
  {
294
- [o(k)["menu__item--active"]]: l.value && g.value === l.value.value
293
+ [o(x)["menu__item--active"]]: l.value && g.value === l.value.value
295
294
  }
296
295
  ]),
297
296
  onClick: (R) => re(g)
298
- }, I(g.text), 11, _t))), 128))
297
+ }, I(g.text), 11, it))), 128))
299
298
  ], 2)
300
299
  ], 6)), [
300
+ [Ve, e.value],
301
301
  [o(r), { handler: Z, exclude: [d.value, c.value] }]
302
- ]) : z("", !0)
302
+ ])
303
303
  ], 64));
304
304
  }
305
- }), it = ["fill", "height", "width"], ut = ["xlink:href"], pt = /* @__PURE__ */ T({
305
+ }), ut = ["fill", "height", "width"], pt = ["xlink:href"], ct = /* @__PURE__ */ T({
306
306
  __name: "Icon",
307
307
  props: {
308
308
  name: {},
@@ -317,24 +317,24 @@ const Ne = "_button__size_default_16zzc_1", Oe = "_button__size_small_16zzc_8",
317
317
  height: r.value,
318
318
  width: r.value
319
319
  }, [
320
- $("use", {
320
+ z("use", {
321
321
  "xlink:href": `#${t.name}`
322
- }, null, 8, ut)
323
- ], 8, it));
322
+ }, null, 8, pt)
323
+ ], 8, ut));
324
324
  }
325
- }), ct = (i, n) => {
325
+ }), dt = (i, n) => {
326
326
  const r = i.__vccOpts || i;
327
327
  for (const [t, a] of n)
328
328
  r[t] = a;
329
329
  return r;
330
- }, Q = /* @__PURE__ */ ct(pt, [["__scopeId", "data-v-f04c8857"]]), dt = "_container_pab2j_1", ft = "_container__text_pab2j_185", bt = "_container__default_pab2j_189", mt = "_container__warning_pab2j_197", vt = "_container__alert_pab2j_205", gt = "_container__success_pab2j_213", ie = {
331
- container: dt,
332
- container__text: ft,
333
- container__default: bt,
334
- container__warning: mt,
335
- container__alert: vt,
336
- container__success: gt
337
- }, bo = /* @__PURE__ */ T({
330
+ }, Q = /* @__PURE__ */ dt(ct, [["__scopeId", "data-v-f04c8857"]]), ft = "_container_pab2j_1", bt = "_container__text_pab2j_185", mt = "_container__default_pab2j_189", vt = "_container__warning_pab2j_197", gt = "_container__alert_pab2j_205", wt = "_container__success_pab2j_213", ie = {
331
+ container: ft,
332
+ container__text: bt,
333
+ container__default: mt,
334
+ container__warning: vt,
335
+ container__alert: gt,
336
+ container__success: wt
337
+ }, mo = /* @__PURE__ */ T({
338
338
  __name: "OnPageMessage",
339
339
  props: {
340
340
  variant: { default: "default" },
@@ -363,28 +363,28 @@ const Ne = "_button__size_default_16zzc_1", Oe = "_button__size_small_16zzc_8",
363
363
  name: r.value,
364
364
  size: 24
365
365
  }, null, 8, ["name"]),
366
- $("span", {
366
+ z("span", {
367
367
  class: s(o(ie).container__text)
368
368
  }, I(t.text), 3)
369
369
  ], 2));
370
370
  }
371
- }), wt = "_button__size_default_4wo1i_1", ht = "_button__size_small_4wo1i_8", yt = "_button_4wo1i_1", zt = "_button__label_4wo1i_191", $t = "_button__solid_4wo1i_330", kt = "_segmentGroup_4wo1i_337", xt = "_fill_4wo1i_359", V = {
372
- button__size_default: wt,
373
- button__size_small: ht,
374
- button: yt,
375
- button__label: zt,
371
+ }), ht = "_button__size_default_4wo1i_1", yt = "_button__size_small_4wo1i_8", zt = "_button_4wo1i_1", $t = "_button__label_4wo1i_191", xt = "_button__solid_4wo1i_330", kt = "_segmentGroup_4wo1i_337", St = "_fill_4wo1i_359", V = {
372
+ button__size_default: ht,
373
+ button__size_small: yt,
374
+ button: zt,
375
+ button__label: $t,
376
376
  "button--primary": "_button--primary_4wo1i_208",
377
377
  "button--selected": "_button--selected_4wo1i_218",
378
378
  "button--secondary": "_button--secondary_4wo1i_231",
379
379
  "button--danger": "_button--danger_4wo1i_254",
380
380
  "button--warning": "_button--warning_4wo1i_277",
381
381
  "button--smart": "_button--smart_4wo1i_300",
382
- button__solid: $t,
382
+ button__solid: xt,
383
383
  segmentGroup: kt,
384
384
  "segmentGroup--vertical": "_segmentGroup--vertical_4wo1i_340",
385
385
  "segmentGroup--horizontal": "_segmentGroup--horizontal_4wo1i_349",
386
- fill: xt
387
- }, St = ["disabled", "onClick"], mo = /* @__PURE__ */ T({
386
+ fill: St
387
+ }, Ct = ["disabled", "onClick"], vo = /* @__PURE__ */ T({
388
388
  __name: "SegmentButton",
389
389
  props: {
390
390
  color: {},
@@ -430,23 +430,23 @@ const Ne = "_button__size_default_16zzc_1", Oe = "_button__size_small_16zzc_8",
430
430
  m.icon ? (u(), U(o(Q), {
431
431
  key: 0,
432
432
  name: m.icon
433
- }, null, 8, ["name"])) : z("", !0),
433
+ }, null, 8, ["name"])) : $("", !0),
434
434
  m.label ? (u(), f("span", {
435
435
  key: 1,
436
436
  class: s(o(V).button__label)
437
- }, I(m.label), 3)) : z("", !0)
438
- ], 10, St))), 128))
437
+ }, I(m.label), 3)) : $("", !0)
438
+ ], 10, Ct))), 128))
439
439
  ], 2));
440
440
  }
441
- }), Ct = "_wrapper__field_1fjsl_1", It = "_wrapper__label_1fjsl_1", Bt = "_wrapper__errorMessage_1fjsl_1", Pt = "_wrapper__counter_1fjsl_1", Mt = "_wrapper_1fjsl_1", Tt = "_wrapper__bottom_1fjsl_221", L = {
442
- wrapper__field: Ct,
443
- wrapper__label: It,
444
- wrapper__errorMessage: Bt,
445
- wrapper__counter: Pt,
446
- wrapper: Mt,
447
- wrapper__bottom: Tt,
441
+ }), It = "_wrapper__field_1fjsl_1", Bt = "_wrapper__label_1fjsl_1", Pt = "_wrapper__errorMessage_1fjsl_1", Mt = "_wrapper__counter_1fjsl_1", Tt = "_wrapper_1fjsl_1", Ht = "_wrapper__bottom_1fjsl_221", L = {
442
+ wrapper__field: It,
443
+ wrapper__label: Bt,
444
+ wrapper__errorMessage: Pt,
445
+ wrapper__counter: Mt,
446
+ wrapper: Tt,
447
+ wrapper__bottom: Ht,
448
448
  "wrapper--error": "_wrapper--error_1fjsl_234"
449
- }, Ht = ["for"], Vt = ["id", "maxlength", "name", "placeholder", "value"], Lt = ["id", "maxlength", "name", "placeholder", "value"], vo = /* @__PURE__ */ T({
449
+ }, Vt = ["for"], Lt = ["id", "maxlength", "name", "placeholder", "value"], Nt = ["id", "maxlength", "name", "placeholder", "value"], go = /* @__PURE__ */ T({
450
450
  __name: "TextInput",
451
451
  props: {
452
452
  id: {},
@@ -484,7 +484,7 @@ const Ne = "_button__size_default_16zzc_1", Oe = "_button__size_small_16zzc_8",
484
484
  key: 0,
485
485
  class: s(o(L).wrapper__label),
486
486
  for: e.id
487
- }, I(e.label), 11, Ht)) : z("", !0),
487
+ }, I(e.label), 11, Vt)) : $("", !0),
488
488
  e.multiline ? (u(), f("textarea", {
489
489
  key: 1,
490
490
  id: e.id,
@@ -506,7 +506,7 @@ const Ne = "_button__size_default_16zzc_1", Oe = "_button__size_small_16zzc_8",
506
506
  onFocus: l[2] || (l[2] = (p) => t("focus", p)),
507
507
  onInput: c,
508
508
  onPaste: l[3] || (l[3] = (p) => t("paste", p))
509
- }, null, 46, Vt)) : (u(), f("input", {
509
+ }, null, 46, Lt)) : (u(), f("input", {
510
510
  key: 2,
511
511
  id: e.id,
512
512
  type: "text",
@@ -525,33 +525,33 @@ const Ne = "_button__size_default_16zzc_1", Oe = "_button__size_small_16zzc_8",
525
525
  onFocus: l[6] || (l[6] = (p) => t("focus", p)),
526
526
  onInput: c,
527
527
  onPaste: l[7] || (l[7] = (p) => t("paste", p))
528
- }, null, 42, Lt)),
529
- $("div", {
528
+ }, null, 42, Nt)),
529
+ z("div", {
530
530
  class: s(o(L).wrapper__bottom)
531
531
  }, [
532
532
  e.error ? (u(), f("div", {
533
533
  key: 0,
534
534
  class: s(o(L).wrapper__errorMessage)
535
- }, I(e.error), 3)) : z("", !0),
535
+ }, I(e.error), 3)) : $("", !0),
536
536
  e.counter ? (u(), f("div", {
537
537
  key: 1,
538
538
  class: s(o(L).wrapper__counter)
539
- }, I(((m = e.modelValue) == null ? void 0 : m.toString().length) || 0), 3)) : z("", !0)
539
+ }, I(((m = e.modelValue) == null ? void 0 : m.toString().length) || 0), 3)) : $("", !0)
540
540
  ], 2)
541
541
  ], 2);
542
542
  };
543
543
  }
544
- }), Nt = "_wrapper__label_3sncs_1", Ot = "_wrapper__errorMessage_3sncs_1", Et = "_wrapper__counter_3sncs_1", Wt = "_wrapper_3sncs_1", Dt = "_wrapper__field_3sncs_8", jt = "_wrapper__size_default_3sncs_185", qt = "_wrapper__size_small_3sncs_188", At = "_wrapper__bottom_3sncs_225", O = {
545
- wrapper__label: Nt,
546
- wrapper__errorMessage: Ot,
547
- wrapper__counter: Et,
548
- wrapper: Wt,
549
- wrapper__field: Dt,
550
- wrapper__size_default: jt,
551
- wrapper__size_small: qt,
552
- wrapper__bottom: At,
544
+ }), Ot = "_wrapper__label_3sncs_1", Et = "_wrapper__errorMessage_3sncs_1", Wt = "_wrapper__counter_3sncs_1", Dt = "_wrapper_3sncs_1", jt = "_wrapper__field_3sncs_8", qt = "_wrapper__size_default_3sncs_185", At = "_wrapper__size_small_3sncs_188", Rt = "_wrapper__bottom_3sncs_225", O = {
545
+ wrapper__label: Ot,
546
+ wrapper__errorMessage: Et,
547
+ wrapper__counter: Wt,
548
+ wrapper: Dt,
549
+ wrapper__field: jt,
550
+ wrapper__size_default: qt,
551
+ wrapper__size_small: At,
552
+ wrapper__bottom: Rt,
553
553
  "wrapper--error": "_wrapper--error_3sncs_238"
554
- }, Rt = ["for"], Gt = ["id", "max", "maxlength", "min", "name", "placeholder", "value"], go = /* @__PURE__ */ T({
554
+ }, Gt = ["for"], Yt = ["id", "max", "maxlength", "min", "name", "placeholder", "value"], wo = /* @__PURE__ */ T({
555
555
  __name: "NumberInput",
556
556
  props: {
557
557
  id: {},
@@ -590,8 +590,8 @@ const Ne = "_button__size_default_16zzc_1", Oe = "_button__size_small_16zzc_8",
590
590
  key: 0,
591
591
  class: s(o(O).wrapper__label),
592
592
  for: e.id
593
- }, I(e.label), 11, Rt)) : z("", !0),
594
- $("input", {
593
+ }, I(e.label), 11, Gt)) : $("", !0),
594
+ z("input", {
595
595
  id: e.id,
596
596
  type: "number",
597
597
  class: s([
@@ -611,7 +611,7 @@ const Ne = "_button__size_default_16zzc_1", Oe = "_button__size_small_16zzc_8",
611
611
  onFocus: l[1] || (l[1] = (p) => t("focus", p)),
612
612
  onInput: d,
613
613
  onPaste: l[2] || (l[2] = (p) => t("paste", p))
614
- }, null, 42, Gt),
614
+ }, null, 42, Yt),
615
615
  e.counter || e.error ? (u(), f("div", {
616
616
  key: 1,
617
617
  class: s(o(O).wrapper__bottom)
@@ -619,22 +619,22 @@ const Ne = "_button__size_default_16zzc_1", Oe = "_button__size_small_16zzc_8",
619
619
  e.error ? (u(), f("div", {
620
620
  key: 0,
621
621
  class: s(o(O).wrapper__errorMessage)
622
- }, I(e.error), 3)) : z("", !0),
622
+ }, I(e.error), 3)) : $("", !0),
623
623
  e.counter ? (u(), f("div", {
624
624
  key: 1,
625
625
  class: s(o(O).wrapper__counter)
626
- }, I(((m = e.modelValue) == null ? void 0 : m.toString().length) || 0), 3)) : z("", !0)
627
- ], 2)) : z("", !0)
626
+ }, I(((m = e.modelValue) == null ? void 0 : m.toString().length) || 0), 3)) : $("", !0)
627
+ ], 2)) : $("", !0)
628
628
  ], 2);
629
629
  };
630
630
  }
631
- }), Yt = "_wrapper_d1zlt_169", Xt = "_wrapper__label_d1zlt_176", Ft = "_wrapper__input_d1zlt_200", Ut = "_wrapper_checked_d1zlt_210", Qt = "_wrapper_disabled_d1zlt_217", X = {
632
- wrapper: Yt,
633
- wrapper__label: Xt,
634
- wrapper__input: Ft,
635
- wrapper_checked: Ut,
636
- wrapper_disabled: Qt
637
- }, Zt = ["id", "checked", "disabled", "name"], Jt = ["for"], wo = /* @__PURE__ */ T({
631
+ }), Xt = "_wrapper_d1zlt_169", Ft = "_wrapper__label_d1zlt_176", Ut = "_wrapper__input_d1zlt_200", Qt = "_wrapper_checked_d1zlt_210", Zt = "_wrapper_disabled_d1zlt_217", X = {
632
+ wrapper: Xt,
633
+ wrapper__label: Ft,
634
+ wrapper__input: Ut,
635
+ wrapper_checked: Qt,
636
+ wrapper_disabled: Zt
637
+ }, Jt = ["id", "checked", "disabled", "name"], Kt = ["for"], ho = /* @__PURE__ */ T({
638
638
  __name: "Toggle",
639
639
  props: {
640
640
  id: {},
@@ -656,7 +656,7 @@ const Ne = "_button__size_default_16zzc_1", Oe = "_button__size_small_16zzc_8",
656
656
  }
657
657
  ])
658
658
  }, [
659
- $("input", {
659
+ z("input", {
660
660
  id: d.id,
661
661
  type: "checkbox",
662
662
  checked: d.checked,
@@ -664,21 +664,21 @@ const Ne = "_button__size_default_16zzc_1", Oe = "_button__size_small_16zzc_8",
664
664
  disabled: d.disabled,
665
665
  name: d.name,
666
666
  onClick: a
667
- }, null, 10, Zt),
668
- $("label", {
667
+ }, null, 10, Jt),
668
+ z("label", {
669
669
  class: s(o(X).wrapper__label),
670
670
  for: d.id
671
- }, null, 10, Jt)
671
+ }, null, 10, Kt)
672
672
  ], 2));
673
673
  }
674
674
  });
675
- function Kt(i = "") {
675
+ function eo(i = "") {
676
676
  return typeof i == "string" ? i.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, "") : i;
677
677
  }
678
- const eo = "_wrapper__box_1avga_1", to = "_wrapper_1avga_1", oo = "_wrapper__icon_1avga_184", no = "_wrapper__text_1avga_267", E = {
679
- wrapper__box: eo,
680
- wrapper: to,
681
- wrapper__icon: oo,
678
+ const to = "_wrapper__box_1avga_1", oo = "_wrapper_1avga_1", no = "_wrapper__icon_1avga_184", ro = "_wrapper__text_1avga_267", E = {
679
+ wrapper__box: to,
680
+ wrapper: oo,
681
+ wrapper__icon: no,
682
682
  "wrapper__box_bottom-start": "_wrapper__box_bottom-start_1avga_199",
683
683
  "wrapper__box_bottom-center": "_wrapper__box_bottom-center_1avga_205",
684
684
  "wrapper__box_bottom-end": "_wrapper__box_bottom-end_1avga_211",
@@ -691,7 +691,7 @@ const eo = "_wrapper__box_1avga_1", to = "_wrapper_1avga_1", oo = "_wrapper__ico
691
691
  "wrapper__box_left-start": "_wrapper__box_left-start_1avga_252",
692
692
  "wrapper__box_left-center": "_wrapper__box_left-center_1avga_257",
693
693
  "wrapper__box_left-end": "_wrapper__box_left-end_1avga_262",
694
- wrapper__text: no,
694
+ wrapper__text: ro,
695
695
  "wrapper__box-content": "_wrapper__box-content_1avga_296",
696
696
  "bottom-entrance": "_bottom-entrance_1avga_309",
697
697
  "top-entrance": "_top-entrance_1avga_312",
@@ -701,7 +701,7 @@ const eo = "_wrapper__box_1avga_1", to = "_wrapper_1avga_1", oo = "_wrapper__ico
701
701
  "top-leave": "_top-leave_1avga_324",
702
702
  "right-leave": "_right-leave_1avga_327",
703
703
  "left-leave": "_left-leave_1avga_330"
704
- }, ro = ["id"], ao = ["innerHTML"], ho = /* @__PURE__ */ T({
704
+ }, ao = ["id"], lo = ["innerHTML"], yo = /* @__PURE__ */ T({
705
705
  __name: "Tooltip",
706
706
  props: {
707
707
  id: {},
@@ -720,7 +720,7 @@ const eo = "_wrapper__box_1avga_1", to = "_wrapper_1avga_1", oo = "_wrapper__ico
720
720
  absolutePosition: { type: [Boolean, null, String, Object, Array] }
721
721
  },
722
722
  setup(i) {
723
- const n = i, r = v(null), t = v("center"), a = v("bottom"), d = v("center"), c = v(!1), e = v(""), l = v(!1), m = v(!1), p = v(""), P = v("d-n"), H = v(null), B = v(null), A = v(null), S = C(() => n.staticPosition.split(" ")[0]), N = C(() => n.staticPosition.split(" ")[1]), Z = C(() => n.iconName ? "mt-1" : "mt-0"), re = C(() => n.preventXss ? Kt(n.text) : n.text), D = C(() => n.absolutePositionStatus ? n.absoluteTrianglePosition : n.dynamicPosition && c.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 && m.value || p.value === "icon" && l.value ? "opa-1" : "opa-0"), J = C(() => n.absolutePositionStatus ? n.absoluteTriangleAlignment : n.dynamicPosition && c.value ? t.value === "center" ? "center" : t.value === "end" ? "end" : t.value === "start" ? "start" : d.value : N.value === "center" ? "center" : N.value === "left" || N.value === "top" ? "start" : N.value === "right" || N.value === "bottom" ? "end" : "center"), le = C(() => n.absolutePositionStatus ? "" : n.dynamicPosition && c.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 ? {
723
+ const n = i, r = v(null), t = v("center"), a = v("bottom"), d = v("center"), c = v(!1), e = v(""), l = v(!1), m = v(!1), p = v(""), P = v("d-n"), H = v(null), B = v(null), A = v(null), S = C(() => n.staticPosition.split(" ")[0]), N = C(() => n.staticPosition.split(" ")[1]), Z = C(() => n.iconName ? "mt-1" : "mt-0"), re = C(() => n.preventXss ? eo(n.text) : n.text), D = C(() => n.absolutePositionStatus ? n.absoluteTrianglePosition : n.dynamicPosition && c.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 && m.value || p.value === "icon" && l.value ? "opa-1" : "opa-0"), J = C(() => n.absolutePositionStatus ? n.absoluteTriangleAlignment : n.dynamicPosition && c.value ? t.value === "center" ? "center" : t.value === "end" ? "end" : t.value === "start" ? "start" : d.value : N.value === "center" ? "center" : N.value === "left" || N.value === "top" ? "start" : N.value === "right" || N.value === "bottom" ? "end" : "center"), le = C(() => n.absolutePositionStatus ? "" : n.dynamicPosition && c.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 ? {
724
724
  [`margin-${a.value === "bottom" ? "top" : "bottom"}`]: `${n.offsetY}px`
725
725
  } : D.value === "top" || D.value === "bottom" ? {
726
726
  [`margin-${D.value}`]: `${n.offsetY}px`
@@ -736,9 +736,9 @@ const eo = "_wrapper__box_1avga_1", to = "_wrapper_1avga_1", oo = "_wrapper__ico
736
736
  }, h = (_, w, y = !1) => {
737
737
  if (!_ || !B.value)
738
738
  return { left: !1, right: !1, top: !1, bottom: !1, center: !1 };
739
- const M = { left: 0, right: 0, top: 0, bottom: 0, width: 0, height: 0 }, Y = B.value.offsetHeight, q = window.innerWidth, _e = window.innerHeight, ce = _.offsetHeight, te = _.offsetWidth || 264, x = w && b(w) || M, de = y ? x == null ? void 0 : x.right : x == null ? void 0 : x.left, fe = y ? x == null ? void 0 : x.top : x == null ? void 0 : x.bottom, Ie = de + x.width + te + n.offsetX < q, Be = de + x.width / 2 - (te + n.offsetX) > 10, Pe = fe + ce < _e - n.offsetY, Me = fe - (ce + Y + n.offsetY) > 0;
739
+ const M = { left: 0, right: 0, top: 0, bottom: 0, width: 0, height: 0 }, Y = B.value.offsetHeight, q = window.innerWidth, _e = window.innerHeight, ce = _.offsetHeight, te = _.offsetWidth || 264, k = w && b(w) || M, de = y ? k == null ? void 0 : k.right : k == null ? void 0 : k.left, fe = y ? k == null ? void 0 : k.top : k == null ? void 0 : k.bottom, Ie = de + k.width + te + n.offsetX < q, Be = de + k.width / 2 - (te + n.offsetX) > 10, Pe = fe + ce < _e - n.offsetY, Me = fe - (ce + Y + n.offsetY) > 0;
740
740
  let be = !1;
741
- return n.iconName && (be = x.right + te / 2 < q && x.left - (te + n.offsetX) / 2 >= 10), {
741
+ return n.iconName && (be = k.right + te / 2 < q && k.left - (te + n.offsetX) / 2 >= 10), {
742
742
  left: Be,
743
743
  right: Ie,
744
744
  bottom: Pe,
@@ -817,12 +817,12 @@ const eo = "_wrapper__box_1avga_1", to = "_wrapper_1avga_1", oo = "_wrapper__ico
817
817
  p.value = "wrapper", P.value = "d-b", l.value = !0;
818
818
  }, se = () => {
819
819
  p.value = "icon", P.value = "d-b", m.value = !0;
820
- }, ke = () => {
821
- m.value = !1;
822
820
  }, xe = () => {
821
+ m.value = !1;
822
+ }, ke = () => {
823
823
  p.value = "", l.value = !1, m.value = !1;
824
824
  }, Se = () => {
825
- xe(), 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(() => {
825
+ ke(), 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(() => {
826
826
  e.value = "", P.value = "d-n";
827
827
  }, n.absolutePositionStatus ? 0 : 250);
828
828
  }, Ce = () => {
@@ -832,7 +832,7 @@ const eo = "_wrapper__box_1avga_1", to = "_wrapper_1avga_1", oo = "_wrapper__ico
832
832
  };
833
833
  return pe(() => {
834
834
  n.dynamicPosition && ze();
835
- }), Ve(() => {
835
+ }), Le(() => {
836
836
  ee();
837
837
  }), (_, w) => (u(), f("div", {
838
838
  id: _.id,
@@ -849,7 +849,7 @@ const eo = "_wrapper__box_1avga_1", to = "_wrapper_1avga_1", oo = "_wrapper__ico
849
849
  class: s(o(E).wrapper__icon),
850
850
  name: _.iconName,
851
851
  onMouseenter: se,
852
- onMouseleave: ke
852
+ onMouseleave: xe
853
853
  }, null, 8, ["class", "name"])) : (u(), f("div", {
854
854
  key: 1,
855
855
  class: s(o(E).wrapper__icon),
@@ -865,7 +865,7 @@ const eo = "_wrapper__box_1avga_1", to = "_wrapper_1avga_1", oo = "_wrapper__ico
865
865
  class: s([o(E).wrapper__box, le.value, ae.value, P.value]),
866
866
  style: F(_.absolutePosition)
867
867
  }, [
868
- he(o(uo), {
868
+ he(o(po), {
869
869
  "border-triangle": "",
870
870
  "border-triangle-align": J.value,
871
871
  "border-triangle-position": D.value,
@@ -873,21 +873,21 @@ const eo = "_wrapper__box_1avga_1", to = "_wrapper_1avga_1", oo = "_wrapper__ico
873
873
  style: F(K.value)
874
874
  }, {
875
875
  default: ye(() => [
876
- $("div", {
876
+ z("div", {
877
877
  class: s(o(E).wrapper__text),
878
878
  style: F({ maxHeight: `${_.maxHeight}px`, overflowY: "auto" })
879
879
  }, [
880
- $("div", { innerHTML: re.value }, null, 8, ao),
880
+ z("div", { innerHTML: re.value }, null, 8, lo),
881
881
  W(_.$slots, "contentSlot")
882
882
  ], 6)
883
883
  ]),
884
884
  _: 3
885
885
  }, 8, ["border-triangle-align", "border-triangle-position", "class", "style"])
886
- ], 6)) : z("", !0)
887
- ], 42, ro));
886
+ ], 6)) : $("", !0)
887
+ ], 42, ao));
888
888
  }
889
- }), lo = "_box_14qkh_169", so = "_flipBox_14qkh_257", ne = {
890
- box: lo,
889
+ }), so = "_box_14qkh_169", _o = "_flipBox_14qkh_257", ne = {
890
+ box: so,
891
891
  "box_top-start": "_box_top-start_14qkh_173",
892
892
  "box_top-center": "_box_top-center_14qkh_173",
893
893
  "box_top-end": "_box_top-end_14qkh_173",
@@ -900,8 +900,8 @@ const eo = "_wrapper__box_1avga_1", to = "_wrapper_1avga_1", oo = "_wrapper__ico
900
900
  "box_left-start": "_box_left-start_14qkh_173",
901
901
  "box_left-center": "_box_left-center_14qkh_173",
902
902
  "box_left-end": "_box_left-end_14qkh_173",
903
- flipBox: so
904
- }, _o = /* @__PURE__ */ T({
903
+ flipBox: _o
904
+ }, io = /* @__PURE__ */ T({
905
905
  __name: "DefaultBox",
906
906
  props: {
907
907
  border: {},
@@ -925,7 +925,7 @@ const eo = "_wrapper__box_1avga_1", to = "_wrapper_1avga_1", oo = "_wrapper__ico
925
925
  W(c.$slots, "default")
926
926
  ], 2));
927
927
  }
928
- }), io = /* @__PURE__ */ T({
928
+ }), uo = /* @__PURE__ */ T({
929
929
  __name: "FlipBox",
930
930
  props: {
931
931
  boxSpacing: { default: "" }
@@ -934,13 +934,13 @@ const eo = "_wrapper__box_1avga_1", to = "_wrapper_1avga_1", oo = "_wrapper__ico
934
934
  return (n, r) => (u(), f("div", {
935
935
  class: s([o(ne).flipBox, n.boxSpacing])
936
936
  }, [
937
- $("div", null, [
938
- $("div", {
937
+ z("div", null, [
938
+ z("div", {
939
939
  class: s([o(ne).box, n.boxSpacing])
940
940
  }, [
941
941
  W(n.$slots, "front")
942
942
  ], 2),
943
- $("div", {
943
+ z("div", {
944
944
  class: s([n.boxSpacing])
945
945
  }, [
946
946
  W(n.$slots, "reverse")
@@ -948,7 +948,7 @@ const eo = "_wrapper__box_1avga_1", to = "_wrapper_1avga_1", oo = "_wrapper__ico
948
948
  ])
949
949
  ], 2));
950
950
  }
951
- }), uo = /* @__PURE__ */ T({
951
+ }), po = /* @__PURE__ */ T({
952
952
  __name: "Box",
953
953
  props: {
954
954
  type: { default: "default" },
@@ -959,10 +959,10 @@ const eo = "_wrapper__box_1avga_1", to = "_wrapper_1avga_1", oo = "_wrapper__ico
959
959
  },
960
960
  setup(i) {
961
961
  const n = {
962
- default: _o,
963
- flip: io
962
+ default: io,
963
+ flip: uo
964
964
  };
965
- return (r, t) => (u(), U(Le(n[r.type]), {
965
+ return (r, t) => (u(), U(Ne(n[r.type]), {
966
966
  "border-triangle": r.borderTriangle,
967
967
  "border-triangle-align": r.borderTriangleAlign,
968
968
  "border-triangle-position": r.borderTrianglePosition,
@@ -978,15 +978,15 @@ const eo = "_wrapper__box_1avga_1", to = "_wrapper_1avga_1", oo = "_wrapper__ico
978
978
  }
979
979
  });
980
980
  export {
981
- uo as Box,
982
- co as Button,
983
- fo as DropdownMenu,
981
+ po as Box,
982
+ fo as Button,
983
+ bo as DropdownMenu,
984
984
  Q as Icon,
985
- go as NumberInput,
986
- bo as OnPageMessage,
987
- mo as SegmentButton,
988
- vo as TextInput,
989
- wo as Toggle,
990
- ho as Tooltip
985
+ wo as NumberInput,
986
+ mo as OnPageMessage,
987
+ vo as SegmentButton,
988
+ go as TextInput,
989
+ ho as Toggle,
990
+ yo as Tooltip
991
991
  };
992
992
  //# sourceMappingURL=ab-components.es.js.map