prlg-ui 1.8.1 → 1.8.2

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,7 +1,7 @@
1
- import { defineComponent as O, computed as P, resolveComponent as jt, createBlock as G, openBlock as d, resolveDynamicComponent as Ce, normalizeClass as L, withCtx as ee, createCommentVNode as T, createElementBlock as p, renderSlot as Y, Fragment as oe, createTextVNode as fe, toDisplayString as F, ref as A, useTemplateRef as Ie, onMounted as ve, createElementVNode as R, createVNode as q, renderList as me, unref as m, mergeModels as U, useModel as te, withDirectives as Me, vModelCheckbox as yt, shallowRef as Ae, watch as se, getCurrentScope as ko, onScopeDispose as $o, shallowReadonly as _e, useCssVars as So, toRefs as Co, useId as qe, onUnmounted as Ze, normalizeStyle as Z, Transition as De, nextTick as pe, withModifiers as Je, vModelDynamic as xo, vModelRadio as Ro, provide as be, useSlots as Wt, inject as de, toValue as ze, isRef as Mo, vModelText as Yt, toRef as Ue, createStaticVNode as Vo, Teleport as je, reactive as Ut, TransitionGroup as Po, vShow as Kt, createApp as Io } from "vue";
2
- import { P as Xt, j as Ao, k as To, I as bt, A as Bo, e as wt, g as Do, S as Lo, a as Oo, b as Zt, M as Eo, h as _o, i as zo, C as Ho, c as Go, E as Fo, B as No, d as qo, W as jo, f as Wo } from "./WarningFillIcon-cJBG6d6O.js";
1
+ import { defineComponent as O, computed as P, resolveComponent as Yt, createBlock as G, openBlock as d, resolveDynamicComponent as Ce, normalizeClass as L, withCtx as ee, createCommentVNode as T, createElementBlock as p, renderSlot as W, Fragment as oe, createTextVNode as fe, toDisplayString as F, ref as A, useTemplateRef as Ie, onMounted as ve, createElementVNode as R, createVNode as q, renderList as me, unref as m, mergeModels as U, useModel as te, withDirectives as Me, vModelCheckbox as yt, shallowRef as Ae, watch as se, getCurrentScope as ko, onScopeDispose as $o, shallowReadonly as _e, useCssVars as So, toRefs as Co, useId as qe, onUnmounted as Ze, normalizeStyle as Z, Transition as De, nextTick as pe, withModifiers as Je, vModelDynamic as xo, vModelRadio as Ro, provide as be, useSlots as jt, inject as de, toValue as ze, isRef as Mo, vModelText as Wt, toRef as Ue, createStaticVNode as Vo, Teleport as Ye, reactive as Ut, TransitionGroup as Po, vShow as Kt, createApp as Io } from "vue";
2
+ import { P as Xt, j as Ao, k as To, I as bt, A as Bo, e as wt, g as Do, S as Lo, a as Oo, b as Zt, M as Eo, h as _o, i as zo, C as Ho, c as Go, E as Fo, B as No, d as qo, W as Yo, f as jo } from "./WarningFillIcon-cJBG6d6O.js";
3
3
  import { o as Jt, d as K } from "./parseFileSize.util-CxVk4CvB.js";
4
- import { _ as le, a as Yo, C as Qt } from "./FileIcon-maHE2Nhr.js";
4
+ import { _ as le, a as Wo, C as Qt } from "./FileIcon-maHE2Nhr.js";
5
5
  import { u as lt, E as Uo, _ as Ko } from "./Portal.vue_vue_type_script_setup_true_lang-CMr1orYd.js";
6
6
  import { F as Dr, I as Lr } from "./Image-DdrY_gj3.js";
7
7
  const Xo = {
@@ -23,7 +23,7 @@ const Xo = {
23
23
  full: { type: Boolean }
24
24
  },
25
25
  setup(e) {
26
- const t = P(() => e.variant === "link" && e.url || e.url ? jt("RouterLink") : "button"), o = P(() => [
26
+ const t = P(() => e.variant === "link" && e.url || e.url ? Yt("RouterLink") : "button"), o = P(() => [
27
27
  "button",
28
28
  `button--${e.size}`,
29
29
  `button--${e.variant}`,
@@ -46,7 +46,7 @@ const Xo = {
46
46
  class: "button__icon"
47
47
  })) : T("", !0),
48
48
  a.iconOnly ? T("", !0) : (d(), p("div", Xo, [
49
- Y(a.$slots, "default"),
49
+ W(a.$slots, "default"),
50
50
  a.label && !a.$slots.default ? (d(), p(oe, { key: 0 }, [
51
51
  fe(F(a.label), 1)
52
52
  ], 64)) : T("", !0)
@@ -216,7 +216,7 @@ const Xo = {
216
216
  ]),
217
217
  s.label || s.$slots.label ? (d(), p("span", sn, [
218
218
  fe(F(s.label) + " ", 1),
219
- Y(s.$slots, "label")
219
+ W(s.$slots, "label")
220
220
  ])) : T("", !0),
221
221
  s.error && s.errorText ? (d(), p("span", rn, F(s.errorText), 1)) : T("", !0)
222
222
  ], 10, en));
@@ -267,7 +267,7 @@ function Oe(e, t) {
267
267
  function Te(e) {
268
268
  return e.split("-")[0];
269
269
  }
270
- function We(e) {
270
+ function je(e) {
271
271
  return e.split("-")[1];
272
272
  }
273
273
  function eo(e) {
@@ -285,7 +285,7 @@ function St(e) {
285
285
  }
286
286
  function pn(e, t, o) {
287
287
  o === void 0 && (o = !1);
288
- const a = We(e), n = St(e), r = $t(n);
288
+ const a = je(e), n = St(e), r = $t(n);
289
289
  let l = n === "x" ? a === (o ? "end" : "start") ? "right" : "left" : a === "start" ? "bottom" : "top";
290
290
  return t.reference[r] > t.floating[r] && (l = tt(l)), [l, tt(l)];
291
291
  }
@@ -310,7 +310,7 @@ function bn(e, t, o) {
310
310
  }
311
311
  }
312
312
  function wn(e, t, o, a) {
313
- const n = We(e);
313
+ const n = je(e);
314
314
  let r = bn(Te(e), o === "start", a);
315
315
  return n && (r = r.map((l) => l + "-" + n), t && (r = r.concat(r.map(vt)))), r;
316
316
  }
@@ -390,7 +390,7 @@ function It(e, t, o) {
390
390
  y: a.y
391
391
  };
392
392
  }
393
- switch (We(t)) {
393
+ switch (je(t)) {
394
394
  case "start":
395
395
  h[l] -= f * (o && u ? -1 : 1);
396
396
  break;
@@ -530,7 +530,7 @@ const Sn = (e) => ({
530
530
  }, h = St(n), g = $t(h), y = await l.getDimensions(u), w = h === "y", V = w ? "top" : "left", C = w ? "bottom" : "right", I = w ? "clientHeight" : "clientWidth", B = r.reference[g] + r.reference[h] - f[h] - r.floating[g], $ = f[h] - r.reference[h], S = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(u));
531
531
  let k = S ? S[I] : 0;
532
532
  (!k || !await (l.isElement == null ? void 0 : l.isElement(S))) && (k = s.floating[I] || r.floating[g]);
533
- const D = B / 2 - $ / 2, b = k / 2 - y[g] / 2 - 1, M = Le(v[V], b), x = Le(v[C], b), H = M, z = k - y[g] - x, E = k / 2 - y[g] / 2 + D, N = ft(H, E, z), _ = !i.arrow && We(n) != null && E !== N && r.reference[g] / 2 - (E < H ? M : x) - y[g] / 2 < 0, ne = _ ? E < H ? E - H : E - z : 0;
533
+ const D = B / 2 - $ / 2, b = k / 2 - y[g] / 2 - 1, M = Le(v[V], b), x = Le(v[C], b), H = M, z = k - y[g] - x, E = k / 2 - y[g] / 2 + D, N = ft(H, E, z), _ = !i.arrow && je(n) != null && E !== N && r.reference[g] / 2 - (E < H ? M : x) - y[g] / 2 < 0, ne = _ ? E < H ? E - H : E - z : 0;
534
534
  return {
535
535
  [h]: f[h] + ne,
536
536
  data: {
@@ -683,7 +683,7 @@ async function Mn(e, t) {
683
683
  placement: o,
684
684
  platform: a,
685
685
  elements: n
686
- } = e, r = await (a.isRTL == null ? void 0 : a.isRTL(n.floating)), l = Te(o), s = We(o), i = Re(o) === "y", u = Rn.has(l) ? -1 : 1, c = r && i ? -1 : 1, v = Oe(t, e);
686
+ } = e, r = await (a.isRTL == null ? void 0 : a.isRTL(n.floating)), l = Te(o), s = je(o), i = Re(o) === "y", u = Rn.has(l) ? -1 : 1, c = r && i ? -1 : 1, v = Oe(t, e);
687
687
  let {
688
688
  mainAxis: f,
689
689
  crossAxis: h,
@@ -798,7 +798,7 @@ const Vn = function(e) {
798
798
  apply: i = () => {
799
799
  },
800
800
  ...u
801
- } = Oe(e, t), c = await Ke(t, u), v = Te(n), f = We(n), h = Re(n) === "y", {
801
+ } = Oe(e, t), c = await Ke(t, u), v = Te(n), f = je(n), h = Re(n) === "y", {
802
802
  width: g,
803
803
  height: y
804
804
  } = r.floating;
@@ -1048,7 +1048,7 @@ function qn(e) {
1048
1048
  };
1049
1049
  }
1050
1050
  const Dt = 25;
1051
- function jn(e, t) {
1051
+ function Yn(e, t) {
1052
1052
  const o = ge(e), a = Ve(e), n = o.visualViewport;
1053
1053
  let r = a.clientWidth, l = a.clientHeight, s = 0, i = 0;
1054
1054
  if (n) {
@@ -1068,8 +1068,8 @@ function jn(e, t) {
1068
1068
  y: i
1069
1069
  };
1070
1070
  }
1071
- const Wn = /* @__PURE__ */ new Set(["absolute", "fixed"]);
1072
- function Yn(e, t) {
1071
+ const jn = /* @__PURE__ */ new Set(["absolute", "fixed"]);
1072
+ function Wn(e, t) {
1073
1073
  const o = Xe(e, !0, t === "fixed"), a = o.top + e.clientTop, n = o.left + e.clientLeft, r = xe(e) ? Ge(e) : Se(1), l = e.clientWidth * r.x, s = e.clientHeight * r.y, i = n * r.x, u = a * r.y;
1074
1074
  return {
1075
1075
  width: l,
@@ -1081,11 +1081,11 @@ function Yn(e, t) {
1081
1081
  function Lt(e, t, o) {
1082
1082
  let a;
1083
1083
  if (t === "viewport")
1084
- a = jn(e, o);
1084
+ a = Yn(e, o);
1085
1085
  else if (t === "document")
1086
1086
  a = qn(Ve(e));
1087
1087
  else if (ke(t))
1088
- a = Yn(t, o);
1088
+ a = Wn(t, o);
1089
1089
  else {
1090
1090
  const n = so(e);
1091
1091
  a = {
@@ -1110,7 +1110,7 @@ function Un(e, t) {
1110
1110
  let l = r ? Be(e) : e;
1111
1111
  for (; ke(l) && !Ne(l); ) {
1112
1112
  const s = $e(l), i = xt(l);
1113
- !i && s.position === "fixed" && (n = null), (r ? !i && !n : !i && s.position === "static" && !!n && Wn.has(n.position) || Qe(l) && !i && io(e, l)) ? a = a.filter((c) => c !== l) : n = s, l = Be(l);
1113
+ !i && s.position === "fixed" && (n = null), (r ? !i && !n : !i && s.position === "static" && !!n && jn.has(n.position) || Qe(l) && !i && io(e, l)) ? a = a.filter((c) => c !== l) : n = s, l = Be(l);
1114
1114
  }
1115
1115
  return t.set(e, a), a;
1116
1116
  }
@@ -1384,7 +1384,7 @@ const al = { class: "popover__content" }, sl = {
1384
1384
  },
1385
1385
  emits: ["update:modelValue"],
1386
1386
  setup(e, { expose: t, emit: o }) {
1387
- So((j) => ({
1387
+ So((Y) => ({
1388
1388
  aa040ed6: y.value
1389
1389
  }));
1390
1390
  const a = e, { placement: n, offset: r, arrowVisible: l, closeMode: s, modelValue: i, zIndex: u } = Co(a), c = o, v = Ie("reference"), f = Ie("floating"), h = Ie("arrow-block"), g = Ie("second-screen"), y = P(() => "23px"), w = P(() => r ? typeof r.value == "number" ? r.value + Number(y.value.split("px")[0]) : {
@@ -1397,9 +1397,9 @@ const al = { class: "popover__content" }, sl = {
1397
1397
  }), V = A([
1398
1398
  Et(),
1399
1399
  ol({
1400
- apply({ availableWidth: j, elements: X }) {
1400
+ apply({ availableWidth: Y, elements: X }) {
1401
1401
  Object.assign(X.floating.style, {
1402
- maxWidth: `${Math.max(200, j)}px`
1402
+ maxWidth: `${Math.max(200, Y)}px`
1403
1403
  });
1404
1404
  }
1405
1405
  }),
@@ -1421,28 +1421,28 @@ const al = { class: "popover__content" }, sl = {
1421
1421
  ]
1422
1422
  }), b = qe(), M = A(!1), x = A(!1), { lockScroll: H, unlockScroll: z } = lt(), E = P(() => i && i.value !== void 0), N = P({
1423
1423
  get: () => E.value ? i?.value : M.value,
1424
- set: (j) => {
1425
- E.value ? c("update:modelValue", j) : M.value = j;
1424
+ set: (Y) => {
1425
+ E.value ? c("update:modelValue", Y) : M.value = Y;
1426
1426
  }
1427
1427
  }), _ = () => {
1428
1428
  N.value = !0;
1429
1429
  }, ne = () => {
1430
- N.value = !1, W();
1430
+ N.value = !1, j();
1431
1431
  }, ce = () => {
1432
1432
  N.value = !N.value;
1433
1433
  }, ae = () => {
1434
1434
  E.value ? _() : ce();
1435
- }, ie = async (j) => {
1436
- j && j.stopPropagation(), f.value && (x.value = !0);
1437
- }, W = () => {
1435
+ }, ie = async (Y) => {
1436
+ Y && Y.stopPropagation(), f.value && (x.value = !0);
1437
+ }, j = () => {
1438
1438
  x.value = !1;
1439
- }, re = (j) => {
1439
+ }, re = (Y) => {
1440
1440
  if (s.value === "button-only" || E.value) return;
1441
- const X = j.composedPath();
1441
+ const X = Y.composedPath();
1442
1442
  if (!(g.value && X.includes(g.value))) {
1443
1443
  if (f.value && X.includes(f.value) || v.value && X.includes(v.value)) {
1444
1444
  setTimeout(() => {
1445
- x.value && W();
1445
+ x.value && j();
1446
1446
  }, 0);
1447
1447
  return;
1448
1448
  }
@@ -1450,25 +1450,25 @@ const al = { class: "popover__content" }, sl = {
1450
1450
  }
1451
1451
  }, ue = P(() => {
1452
1452
  if (!I.value.arrow) return {};
1453
- const { x: j, y: X } = I.value.arrow;
1453
+ const { x: Y, y: X } = I.value.arrow;
1454
1454
  switch ($.value) {
1455
1455
  case "top":
1456
1456
  return {
1457
- left: j ? `${j}px` : "-9px",
1457
+ left: Y ? `${Y}px` : "-9px",
1458
1458
  bottom: X ? `${X}px` : "-9px"
1459
1459
  };
1460
1460
  case "bottom":
1461
1461
  default:
1462
1462
  return {
1463
- left: j ? `${j}px` : "-9px",
1463
+ left: Y ? `${Y}px` : "-9px",
1464
1464
  top: X ? `${X}px` : "-9px"
1465
1465
  };
1466
1466
  }
1467
1467
  });
1468
- return se(I, (j) => {
1469
- E.value || (N.value = j.hide?.referenceHidden === !1);
1470
- }), se(N, (j) => {
1471
- j || W(), j && s.value === "button-only" ? H() : !j && s.value === "button-only" && z();
1468
+ return se(I, (Y) => {
1469
+ E.value || (N.value = Y.hide?.referenceHidden === !1);
1470
+ }), se(N, (Y) => {
1471
+ Y || j(), Y && s.value === "button-only" ? H() : !Y && s.value === "button-only" && z();
1472
1472
  }, { immediate: !0 }), se(a, () => {
1473
1473
  B();
1474
1474
  }, { deep: !0 }), ve(() => {
@@ -1485,10 +1485,10 @@ const al = { class: "popover__content" }, sl = {
1485
1485
  open: _,
1486
1486
  close: ne,
1487
1487
  openSecondScreen: ie,
1488
- closeSecondScreen: W,
1488
+ closeSecondScreen: j,
1489
1489
  isOpen: N,
1490
1490
  isSecondScreenOpen: x
1491
- }), (j, X) => (d(), p("div", {
1491
+ }), (Y, X) => (d(), p("div", {
1492
1492
  class: L(["popover", { "popover--with-arrow": m(l) }])
1493
1493
  }, [
1494
1494
  R("div", {
@@ -1497,7 +1497,7 @@ const al = { class: "popover__content" }, sl = {
1497
1497
  onClick: ae,
1498
1498
  style: Z({ zIndex: m(u) + 1 })
1499
1499
  }, [
1500
- Y(j.$slots, "trigger", {}, void 0, !0)
1500
+ W(Y.$slots, "trigger", {}, void 0, !0)
1501
1501
  ], 6),
1502
1502
  N.value && m(s) === "button-only" ? (d(), p("div", {
1503
1503
  key: 0,
@@ -1514,15 +1514,15 @@ const al = { class: "popover__content" }, sl = {
1514
1514
  }, [
1515
1515
  R("div", al, [
1516
1516
  m(l) ? (d(), p("div", sl, [
1517
- Y(j.$slots, "default", {
1517
+ W(Y.$slots, "default", {
1518
1518
  openSecondScreen: ie,
1519
- closeSecondScreen: W,
1519
+ closeSecondScreen: j,
1520
1520
  close: ne
1521
1521
  }, void 0, !0)
1522
- ])) : Y(j.$slots, "default", {
1522
+ ])) : W(Y.$slots, "default", {
1523
1523
  key: 1,
1524
1524
  openSecondScreen: ie,
1525
- closeSecondScreen: W,
1525
+ closeSecondScreen: j,
1526
1526
  close: ne
1527
1527
  }, void 0, !0)
1528
1528
  ]),
@@ -1544,7 +1544,7 @@ const al = { class: "popover__content" }, sl = {
1544
1544
  ref: "second-screen",
1545
1545
  style: Z(m(k))
1546
1546
  }, [
1547
- Y(j.$slots, "second-screen", { closeSecondScreen: W }, void 0, !0)
1547
+ W(Y.$slots, "second-screen", { closeSecondScreen: j }, void 0, !0)
1548
1548
  ], 4)) : T("", !0)
1549
1549
  ]),
1550
1550
  _: 3
@@ -1860,7 +1860,7 @@ const al = { class: "popover__content" }, sl = {
1860
1860
  (d(), G(Ce(n.icon)))
1861
1861
  ])) : T("", !0),
1862
1862
  R("div", Vl, [
1863
- Y(n.$slots, "default")
1863
+ W(n.$slots, "default")
1864
1864
  ])
1865
1865
  ]),
1866
1866
  n.removable ? (d(), p("button", {
@@ -1955,7 +1955,7 @@ const al = { class: "popover__content" }, sl = {
1955
1955
  class: "input__eye",
1956
1956
  onClick: c[6] || (c[6] = Je((v) => r.value = !r.value, ["prevent"]))
1957
1957
  }, [
1958
- r.value ? (d(), G(m(Yo), { key: 0 })) : (d(), G(m(Do), { key: 1 }))
1958
+ r.value ? (d(), G(m(Wo), { key: 0 })) : (d(), G(m(Do), { key: 1 }))
1959
1959
  ])) : T("", !0)
1960
1960
  ])
1961
1961
  ]),
@@ -1982,7 +1982,7 @@ const al = { class: "popover__content" }, sl = {
1982
1982
  }, [
1983
1983
  (d(), G(Ce(o.icon), { class: "icon-field__icon" })),
1984
1984
  R("div", Ol, [
1985
- Y(o.$slots, "default")
1985
+ W(o.$slots, "default")
1986
1986
  ])
1987
1987
  ], 2));
1988
1988
  }
@@ -2048,7 +2048,7 @@ const al = { class: "popover__content" }, sl = {
2048
2048
  }, [
2049
2049
  l.label ? (d(), p(oe, { key: 0 }, [
2050
2050
  fe(F(l.label), 1)
2051
- ], 64)) : Y(l.$slots, "default", { key: 1 })
2051
+ ], 64)) : W(l.$slots, "default", { key: 1 })
2052
2052
  ], 8, Hl)
2053
2053
  ], 2));
2054
2054
  }
@@ -2077,7 +2077,7 @@ const al = { class: "popover__content" }, sl = {
2077
2077
  onClick: r[1] || (r[1] = (l) => a("close"))
2078
2078
  }, {
2079
2079
  label: ee(() => [
2080
- n.$slots.option ? Y(n.$slots, "option", {
2080
+ n.$slots.option ? W(n.$slots, "option", {
2081
2081
  key: 0,
2082
2082
  option: n.item
2083
2083
  }) : (d(), p(oe, { key: 1 }, [
@@ -2093,7 +2093,7 @@ const al = { class: "popover__content" }, sl = {
2093
2093
  onClick: r[3] || (r[3] = (l) => a("close"))
2094
2094
  }, {
2095
2095
  default: ee(() => [
2096
- n.$slots.option ? Y(n.$slots, "option", {
2096
+ n.$slots.option ? W(n.$slots, "option", {
2097
2097
  key: 0,
2098
2098
  option: n.item
2099
2099
  }) : (d(), p(oe, { key: 1 }, [
@@ -2110,13 +2110,13 @@ const al = { class: "popover__content" }, sl = {
2110
2110
  }, ql = {
2111
2111
  key: 1,
2112
2112
  class: "dropdown__field-inner__text"
2113
- }, jl = {
2113
+ }, Yl = {
2114
2114
  key: 1,
2115
2115
  class: "dropdown__field-inner__text"
2116
- }, Wl = {
2116
+ }, jl = {
2117
2117
  class: "dropdown__popover",
2118
2118
  ref: "popover"
2119
- }, Yl = { class: "dropdown__popover-wrapper" }, Ul = {
2119
+ }, Wl = { class: "dropdown__popover-wrapper" }, Ul = {
2120
2120
  key: 0,
2121
2121
  class: "dropdown__popover-search"
2122
2122
  }, Kl = {
@@ -2210,7 +2210,7 @@ const al = { class: "popover__content" }, sl = {
2210
2210
  _: 2
2211
2211
  }, 1032, ["onRemove"]))), 128))
2212
2212
  ])) : (d(), p("span", ql, F(s.value ? w.placeholder : v.value), 1))
2213
- ], 64)) : (d(), p("span", jl, F(s.value ? w.placeholder : v.value), 1))
2213
+ ], 64)) : (d(), p("span", Yl, F(s.value ? w.placeholder : v.value), 1))
2214
2214
  ], 2),
2215
2215
  V[5] || (V[5] = R("div", { class: "dropdown__field-arrow" }, [
2216
2216
  R("svg", {
@@ -2226,8 +2226,8 @@ const al = { class: "popover__content" }, sl = {
2226
2226
  ])
2227
2227
  ], -1))
2228
2228
  ], 512),
2229
- R("div", Wl, [
2230
- R("div", Yl, [
2229
+ R("div", jl, [
2230
+ R("div", Wl, [
2231
2231
  w.searchable ? (d(), p("div", Ul, [
2232
2232
  q(m(El), {
2233
2233
  icon: m(Lo),
@@ -2363,24 +2363,28 @@ const al = { class: "popover__content" }, sl = {
2363
2363
  ])) : T("", !0);
2364
2364
  }
2365
2365
  }), Nt = /* @__PURE__ */ le(ia, [["__scopeId", "data-v-a62c3245"]]), ua = (e) => {
2366
- const t = A([]), o = A({
2366
+ const t = A([]), o = A([]), a = A({
2367
2367
  selectedMode: null
2368
- }), a = (r) => {
2369
- t.value.indexOf(r) > -1 || (r.selectionMode && (o.value.selectedMode = r.selectionMode), t.value.push(r));
2370
- }, n = (r) => {
2371
- const l = t.value.indexOf(r);
2372
- l > -1 && t.value.splice(l, 1);
2368
+ }), n = (s) => {
2369
+ t.value.indexOf(s) > -1 || (s.selectionMode && (a.value.selectedMode = s.selectionMode), t.value.push(s), r());
2370
+ }, r = () => {
2371
+ o.value = t.value.filter((s) => s.visible !== !1);
2372
+ }, l = (s) => {
2373
+ const i = t.value.indexOf(s);
2374
+ i > -1 && (t.value.splice(i, 1), r());
2373
2375
  };
2374
- return be("registerColumn", a), be("unregisterColumn", n), ve(() => {
2375
- e.value && t.value.unshift({
2376
+ return be("registerColumn", n), be("unregisterColumn", l), ve(() => {
2377
+ e.value && o.value.unshift({
2376
2378
  field: "_expander",
2377
2379
  header: "",
2378
2380
  style: { width: "30px" },
2379
2381
  align: "center"
2380
2382
  });
2381
2383
  }), {
2382
- columns: t,
2383
- options: o
2384
+ columns: o,
2385
+ allColumns: t,
2386
+ options: a,
2387
+ updateVisibleColumns: r
2384
2388
  };
2385
2389
  }, ca = (e, t) => {
2386
2390
  const o = A([]), a = P(() => Array.isArray(o.value) && o.value.length === t.length);
@@ -2502,7 +2506,7 @@ const al = { class: "popover__content" }, sl = {
2502
2506
  R("table", {
2503
2507
  class: L(B.value)
2504
2508
  }, [
2505
- Y(b.$slots, "default", {}, void 0, !0),
2509
+ W(b.$slots, "default", {}, void 0, !0),
2506
2510
  q(Ht, {
2507
2511
  size: b.size,
2508
2512
  columns: m(l),
@@ -2545,7 +2549,7 @@ const al = { class: "popover__content" }, sl = {
2545
2549
  key: 1,
2546
2550
  class: L(B.value)
2547
2551
  }, [
2548
- Y(b.$slots, "default", {}, void 0, !0),
2552
+ W(b.$slots, "default", {}, void 0, !0),
2549
2553
  q(Ht, {
2550
2554
  size: b.size,
2551
2555
  columns: m(l),
@@ -2595,10 +2599,11 @@ const al = { class: "popover__content" }, sl = {
2595
2599
  alignVertical: {},
2596
2600
  style: {},
2597
2601
  headerStyle: {},
2598
- selectionMode: {}
2602
+ selectionMode: {},
2603
+ visible: { type: Boolean }
2599
2604
  },
2600
2605
  setup(e) {
2601
- const t = e, o = Wt(), a = de("registerColumn"), n = {
2606
+ const t = e, o = jt(), a = de("registerColumn"), n = {
2602
2607
  header: t.header,
2603
2608
  field: t.field,
2604
2609
  description: t.description,
@@ -2606,6 +2611,7 @@ const al = { class: "popover__content" }, sl = {
2606
2611
  alignVertical: t.alignVertical,
2607
2612
  selectionMode: t.selectionMode,
2608
2613
  style: t.style,
2614
+ visible: t.visible ?? !0,
2609
2615
  headerSlot: o.header ? o.header : null,
2610
2616
  bodySlot: o.body ? o.body : null,
2611
2617
  footerSlot: o.footer ? o.footer : null
@@ -2811,10 +2817,10 @@ function ga(e, t) {
2811
2817
  const _ = k.selectionStart || 0, ne = k.selectionEnd || 0;
2812
2818
  if (_ !== ne) {
2813
2819
  l.value = f(""), e.value = "", pe(() => {
2814
- const { required: ae, optional: ie } = u(o), W = ae + ie;
2820
+ const { required: ae, optional: ie } = u(o), j = ae + ie;
2815
2821
  let re = 0;
2816
- for (let ue = 0; ue < W.length; ue++)
2817
- if (c(W[ue])) {
2822
+ for (let ue = 0; ue < j.length; ue++)
2823
+ if (c(j[ue])) {
2818
2824
  re = ue;
2819
2825
  break;
2820
2826
  }
@@ -2824,24 +2830,24 @@ function ga(e, t) {
2824
2830
  }
2825
2831
  if (D > 0 && l.value.length > 0) {
2826
2832
  const ae = l.value;
2827
- let ie = "", W = -1;
2828
- const { required: re, optional: ue } = u(o), j = re + ue;
2833
+ let ie = "", j = -1;
2834
+ const { required: re, optional: ue } = u(o), Y = re + ue;
2829
2835
  for (let X = D - 1; X >= 0; X--)
2830
- if (X < j.length && c(j[X])) {
2831
- W = X;
2836
+ if (X < Y.length && c(Y[X])) {
2837
+ j = X;
2832
2838
  break;
2833
2839
  }
2834
- if (W >= 0) {
2835
- let X = g(ae), Ye = 0;
2836
- for (let Pe = 0; Pe <= W; Pe++) {
2840
+ if (j >= 0) {
2841
+ let X = g(ae), We = 0;
2842
+ for (let Pe = 0; Pe <= j; Pe++) {
2837
2843
  const { required: bo, optional: wo } = u(o), Mt = bo + wo;
2838
2844
  if (Pe < Mt.length && c(Mt[Pe])) {
2839
- if (Pe === W) break;
2840
- Ye++;
2845
+ if (Pe === j) break;
2846
+ We++;
2841
2847
  }
2842
2848
  }
2843
- X = X.slice(0, Ye) + X.slice(Ye + 1), ie = f(X), l.value = ie, e.value = X, pe(() => {
2844
- k.setSelectionRange(W, W);
2849
+ X = X.slice(0, We) + X.slice(We + 1), ie = f(X), l.value = ie, e.value = X, pe(() => {
2850
+ k.setSelectionRange(j, j);
2845
2851
  });
2846
2852
  }
2847
2853
  }
@@ -2854,10 +2860,10 @@ function ga(e, t) {
2854
2860
  const _ = k.selectionStart || 0, ne = k.selectionEnd || 0;
2855
2861
  if (_ !== ne) {
2856
2862
  l.value = f(""), e.value = "", pe(() => {
2857
- const { required: ae, optional: ie } = u(o), W = ae + ie;
2863
+ const { required: ae, optional: ie } = u(o), j = ae + ie;
2858
2864
  let re = 0;
2859
- for (let ue = 0; ue < W.length; ue++)
2860
- if (c(W[ue])) {
2865
+ for (let ue = 0; ue < j.length; ue++)
2866
+ if (c(j[ue])) {
2861
2867
  re = ue;
2862
2868
  break;
2863
2869
  }
@@ -2868,25 +2874,25 @@ function ga(e, t) {
2868
2874
  if (D < l.value.length) {
2869
2875
  const ae = l.value;
2870
2876
  let ie = -1;
2871
- for (let W = D; W < ae.length; W++) {
2872
- const { required: re, optional: ue } = u(o), j = re + ue;
2873
- if (W < j.length && c(j[W])) {
2874
- ie = W;
2877
+ for (let j = D; j < ae.length; j++) {
2878
+ const { required: re, optional: ue } = u(o), Y = re + ue;
2879
+ if (j < Y.length && c(Y[j])) {
2880
+ ie = j;
2875
2881
  break;
2876
2882
  }
2877
2883
  }
2878
2884
  if (ie >= 0) {
2879
- let W = g(ae), re = 0;
2880
- for (let j = 0; j <= ie; j++) {
2881
- const { required: X, optional: Ye } = u(o), Pe = X + Ye;
2882
- if (j < Pe.length && c(Pe[j])) {
2883
- if (j === ie) break;
2885
+ let j = g(ae), re = 0;
2886
+ for (let Y = 0; Y <= ie; Y++) {
2887
+ const { required: X, optional: We } = u(o), Pe = X + We;
2888
+ if (Y < Pe.length && c(Pe[Y])) {
2889
+ if (Y === ie) break;
2884
2890
  re++;
2885
2891
  }
2886
2892
  }
2887
- W = W.slice(0, re) + W.slice(re + 1);
2888
- const ue = f(W);
2889
- l.value = ue, e.value = W, pe(() => {
2893
+ j = j.slice(0, re) + j.slice(re + 1);
2894
+ const ue = f(j);
2895
+ l.value = ue, e.value = j, pe(() => {
2890
2896
  k.setSelectionRange(D, D);
2891
2897
  });
2892
2898
  }
@@ -3066,7 +3072,7 @@ const Js = /* @__PURE__ */ O({
3066
3072
  max: s.max,
3067
3073
  onBlur: a
3068
3074
  }, null, 40, ya), [
3069
- [Yt, o.value]
3075
+ [Wt, o.value]
3070
3076
  ])
3071
3077
  ]),
3072
3078
  s.viewButtons ? (d(), G(m(we), {
@@ -3322,7 +3328,7 @@ const Js = /* @__PURE__ */ O({
3322
3328
  onFocusOut: u[2] || (u[2] = (c) => o("focusOut", c)),
3323
3329
  onBlur: u[3] || (u[3] = (c) => o("blur", c))
3324
3330
  }, null, 40, Ma), [
3325
- [Yt, a.value]
3331
+ [Wt, a.value]
3326
3332
  ]),
3327
3333
  R("div", Va, [
3328
3334
  i.smallText || i.error && i.errorText ? (d(), p("div", {
@@ -3520,7 +3526,7 @@ function Da(e, t = "dd.mm.yyyy", o = null, a = null) {
3520
3526
  }
3521
3527
  return r;
3522
3528
  }
3523
- function La(e, t, o = A(null), a = A(null), n = A(null), r = A(!1)) {
3529
+ function La(e, t, o = A(K().format("DD.MM.YYYY")), a = A(null), n = A(null), r = A(!1)) {
3524
3530
  const l = A(K()), s = () => {
3525
3531
  switch (e.value) {
3526
3532
  case "day":
@@ -3712,7 +3718,7 @@ const Oa = { class: "calendar__header" }, Ea = { class: "calendar__header-title"
3712
3718
  ], 2));
3713
3719
  }
3714
3720
  }), qa = /* @__PURE__ */ le(Na, [["__scopeId", "data-v-e2037ecf"]]);
3715
- class ja {
3721
+ class Ya {
3716
3722
  constructor() {
3717
3723
  }
3718
3724
  getPhoneMask(t, o = "(999) 999-99-99") {
@@ -3811,7 +3817,7 @@ class ja {
3811
3817
  return s ? l.format(o.toUpperCase()) : null;
3812
3818
  }
3813
3819
  }
3814
- const Wa = /* @__PURE__ */ O({
3820
+ const ja = /* @__PURE__ */ O({
3815
3821
  __name: "DatePicker",
3816
3822
  props: /* @__PURE__ */ U({
3817
3823
  placeholder: {},
@@ -3893,7 +3899,7 @@ const Wa = /* @__PURE__ */ O({
3893
3899
  return null;
3894
3900
  }
3895
3901
  }
3896
- const n = new ja(), r = e, l = t, s = te(e, "modelValue"), i = A(), u = A(), c = A(), v = A(!1), f = A(s.value), h = A({}), g = P(() => {
3902
+ const n = new Ya(), r = e, l = t, s = te(e, "modelValue"), i = A(), u = A(), c = A(), v = A(!1), f = A(s.value), h = A({}), g = P(() => {
3897
3903
  if (!s.value) return "";
3898
3904
  if (typeof s.value == "string")
3899
3905
  return s.value;
@@ -3978,7 +3984,7 @@ const Wa = /* @__PURE__ */ O({
3978
3984
  onFocus: V
3979
3985
  }, null, 8, ["label", "placeholder", "error", "error-text", "required", "disabled", "name", "allow-clear", "model-value", "readonly"])
3980
3986
  ], 512),
3981
- (d(), G(je, { to: "body" }, [
3987
+ (d(), G(Ye, { to: "body" }, [
3982
3988
  v.value ? (d(), p("div", {
3983
3989
  key: 0,
3984
3990
  ref_key: "popoverRef",
@@ -4007,7 +4013,7 @@ const Wa = /* @__PURE__ */ O({
4007
4013
  ]))
4008
4014
  ], 512));
4009
4015
  }
4010
- }), ar = /* @__PURE__ */ le(Wa, [["__scopeId", "data-v-b36a6481"]]), Ya = { class: "breadcrumb" }, Ua = ["onClick"], Ka = {
4016
+ }), ar = /* @__PURE__ */ le(ja, [["__scopeId", "data-v-b36a6481"]]), Wa = { class: "breadcrumb" }, Ua = ["onClick"], Ka = {
4011
4017
  key: 2,
4012
4018
  class: "breadcrumb__item breadcrumb__seporator"
4013
4019
  }, sr = /* @__PURE__ */ O({
@@ -4016,8 +4022,8 @@ const Wa = /* @__PURE__ */ O({
4016
4022
  items: {}
4017
4023
  },
4018
4024
  setup(e) {
4019
- const t = (o) => o.url ? jt("RouterLink") : "div";
4020
- return (o, a) => (d(), p("div", Ya, [
4025
+ const t = (o) => o.url ? Yt("RouterLink") : "div";
4026
+ return (o, a) => (d(), p("div", Wa, [
4021
4027
  (d(!0), p(oe, null, me(o.items, (n, r) => (d(), p(oe, null, [
4022
4028
  n.command ? (d(), p("button", {
4023
4029
  key: 0,
@@ -4177,8 +4183,8 @@ const ur = {
4177
4183
  `message--${t.type}`,
4178
4184
  { "message--outlined": t.outlined }
4179
4185
  ]), a = Ut({
4180
- error: Ae(Wo),
4181
- warning: Ae(jo),
4186
+ error: Ae(jo),
4187
+ warning: Ae(Yo),
4182
4188
  info: Ae(bt)
4183
4189
  });
4184
4190
  return (n, r) => (d(), p("div", {
@@ -4186,7 +4192,7 @@ const ur = {
4186
4192
  }, [
4187
4193
  (d(), G(Ce(a[t.type]), { class: "message__icon" })),
4188
4194
  R("div", os, [
4189
- n.$slots.default ? Y(n.$slots, "default", { key: 0 }, void 0, !0) : (d(), p(oe, { key: 1 }, [
4195
+ n.$slots.default ? W(n.$slots, "default", { key: 0 }, void 0, !0) : (d(), p(oe, { key: 1 }, [
4190
4196
  fe(F(t.message), 1)
4191
4197
  ], 64))
4192
4198
  ])
@@ -4244,7 +4250,7 @@ const ur = {
4244
4250
  class: "overlay-badge__badge",
4245
4251
  style: Z(t.value)
4246
4252
  }, null, 8, ["value", "variant", "style"])) : T("", !0),
4247
- Y(o.$slots, "default")
4253
+ W(o.$slots, "default")
4248
4254
  ], 2));
4249
4255
  }
4250
4256
  }), fr = /* @__PURE__ */ O({
@@ -4340,7 +4346,7 @@ const ur = {
4340
4346
  document.addEventListener("keydown", l);
4341
4347
  }), Ze(() => {
4342
4348
  document.removeEventListener("keydown", l), o();
4343
- }), (s, i) => (d(), G(je, { to: "body" }, [
4349
+ }), (s, i) => (d(), G(Ye, { to: "body" }, [
4344
4350
  q(De, { name: "confirm-dialog" }, {
4345
4351
  default: ee(() => [
4346
4352
  m(J) ? (d(), p("div", {
@@ -4490,7 +4496,7 @@ const ur = {
4490
4496
  document.addEventListener("keydown", u), window.addEventListener("scroll", c, !0), window.addEventListener("resize", v);
4491
4497
  }), Ze(() => {
4492
4498
  document.removeEventListener("keydown", u), window.removeEventListener("scroll", c, !0), window.removeEventListener("resize", v);
4493
- }), (f, h) => (d(), G(je, { to: "body" }, [
4499
+ }), (f, h) => (d(), G(Ye, { to: "body" }, [
4494
4500
  q(De, { name: "confirm" }, {
4495
4501
  default: ee(() => [
4496
4502
  m(Q) ? (d(), p("div", {
@@ -4569,7 +4575,7 @@ const ur = {
4569
4575
  isOpen: r,
4570
4576
  open: i,
4571
4577
  close: c
4572
- }), (v, f) => (d(), G(je, { to: "body" }, [
4578
+ }), (v, f) => (d(), G(Ye, { to: "body" }, [
4573
4579
  q(De, { name: "drawer-animate" }, {
4574
4580
  default: ee(() => [
4575
4581
  r.value ? (d(), p("div", {
@@ -4591,7 +4597,7 @@ const ur = {
4591
4597
  q(m(wt))
4592
4598
  ])
4593
4599
  ]),
4594
- Y(v.$slots, "default")
4600
+ W(v.$slots, "default")
4595
4601
  ], 2)
4596
4602
  ], 6)) : T("", !0)
4597
4603
  ]),
@@ -4615,12 +4621,12 @@ const ur = {
4615
4621
  }),
4616
4622
  emits: ["update:open"],
4617
4623
  setup(e) {
4618
- const t = A(e.title), o = te(e, "open"), a = Wt(), { unlockScroll: n, lockScroll: r } = lt(), l = P(() => ["modal", `modal--${e.position}`]), s = (i) => {
4624
+ const t = A(e.title), o = te(e, "open"), a = jt(), { unlockScroll: n, lockScroll: r } = lt(), l = P(() => ["modal", `modal--${e.position}`]), s = (i) => {
4619
4625
  t.value = i;
4620
4626
  };
4621
4627
  return se(o, () => {
4622
4628
  o.value ? r() : n();
4623
- }), (i, u) => (d(), G(je, { to: "body" }, [
4629
+ }), (i, u) => (d(), G(Ye, { to: "body" }, [
4624
4630
  q(De, { name: "modal-content-fade" }, {
4625
4631
  default: ee(() => [
4626
4632
  o.value ? (d(), p("div", {
@@ -4637,7 +4643,7 @@ const ur = {
4637
4643
  style: Z(i.style)
4638
4644
  }, [
4639
4645
  R("div", bs, [
4640
- Y(i.$slots, "header"),
4646
+ W(i.$slots, "header"),
4641
4647
  t.value && !a.header ? (d(), p("h2", ws, F(t.value), 1)) : T("", !0),
4642
4648
  R("button", {
4643
4649
  text: "",
@@ -4648,7 +4654,7 @@ const ur = {
4648
4654
  ])
4649
4655
  ]),
4650
4656
  R("div", ks, [
4651
- Y(i.$slots, "default", { setTitle: s })
4657
+ W(i.$slots, "default", { setTitle: s })
4652
4658
  ])
4653
4659
  ], 4)
4654
4660
  ], 6)) : T("", !0)
@@ -4675,7 +4681,7 @@ const ur = {
4675
4681
  e.multiple ? o.value.includes(n) ? o.value = o.value.filter((r) => r !== n) : o.value.push(n) : o.value = o.value[0] === n ? [] : [n];
4676
4682
  }
4677
4683
  return be("accordionOpenValues", o), be("accordionToggle", a), be("accordionIsMultiple", e.multiple ?? !1), be("accordionStyle", t), (n, r) => (d(), p("div", $s, [
4678
- Y(n.$slots, "default")
4684
+ W(n.$slots, "default")
4679
4685
  ]));
4680
4686
  }
4681
4687
  }), kr = /* @__PURE__ */ O({
@@ -4695,7 +4701,7 @@ const ur = {
4695
4701
  ref: o,
4696
4702
  class: "accordion-content"
4697
4703
  }, [
4698
- Y(r.$slots, "default")
4704
+ W(r.$slots, "default")
4699
4705
  ], 512), [
4700
4706
  [Kt, n.value]
4701
4707
  ])
@@ -4711,7 +4717,7 @@ const ur = {
4711
4717
  (...l) => m(o) && m(o)(...l))
4712
4718
  }, [
4713
4719
  R("span", Ss, [
4714
- Y(n.$slots, "default")
4720
+ W(n.$slots, "default")
4715
4721
  ]),
4716
4722
  R("span", Cs, [
4717
4723
  q(m(Zt))
@@ -4728,7 +4734,7 @@ const ur = {
4728
4734
  return be("panelValue", t.value), be("panelIsOpen", r), be("panelToggle", () => a?.(t.value)), (l, s) => (d(), p("div", {
4729
4735
  class: L(["accordion-panel", `accordion-panel--${m(n)}`])
4730
4736
  }, [
4731
- Y(l.$slots, "default")
4737
+ W(l.$slots, "default")
4732
4738
  ], 2));
4733
4739
  }
4734
4740
  }), xs = {
@@ -4747,7 +4753,7 @@ const ur = {
4747
4753
  class: L(t.value)
4748
4754
  }, [
4749
4755
  o.$slots.default ? (d(), p("div", xs, [
4750
- Y(o.$slots, "default")
4756
+ W(o.$slots, "default")
4751
4757
  ])) : T("", !0)
4752
4758
  ], 2));
4753
4759
  }
@@ -4828,7 +4834,7 @@ const ur = {
4828
4834
  role: "tab",
4829
4835
  "aria-selected": n.value
4830
4836
  }, [
4831
- Y(r.$slots, "default")
4837
+ W(r.$slots, "default")
4832
4838
  ], 10, Ds));
4833
4839
  }
4834
4840
  }), Ls = { class: "tabs" }, Mr = /* @__PURE__ */ O({
@@ -4846,7 +4852,7 @@ const ur = {
4846
4852
  n.value = l, a("update:value", l);
4847
4853
  }
4848
4854
  return be("tabsValue", n), be("setTabsValue", r), (l, s) => (d(), p("div", Ls, [
4849
- Y(l.$slots, "default")
4855
+ W(l.$slots, "default")
4850
4856
  ]));
4851
4857
  }
4852
4858
  }), Os = {
@@ -4860,7 +4866,7 @@ const ur = {
4860
4866
  setup(e) {
4861
4867
  const t = e, o = de("tabsValue"), a = P(() => o?.value === t.value);
4862
4868
  return (n, r) => Me((d(), p("div", Os, [
4863
- Y(n.$slots, "default")
4869
+ W(n.$slots, "default")
4864
4870
  ], 512)), [
4865
4871
  [Kt, a.value]
4866
4872
  ]);
@@ -4873,7 +4879,7 @@ const ur = {
4873
4879
  setup(e) {
4874
4880
  return (t, o) => (d(), p("div", Es, [
4875
4881
  R("div", _s, [
4876
- Y(t.$slots, "default")
4882
+ W(t.$slots, "default")
4877
4883
  ])
4878
4884
  ]));
4879
4885
  }
@@ -4881,7 +4887,7 @@ const ur = {
4881
4887
  __name: "TabPanels",
4882
4888
  setup(e) {
4883
4889
  return (t, o) => (d(), p("div", zs, [
4884
- Y(t.$slots, "default")
4890
+ W(t.$slots, "default")
4885
4891
  ]));
4886
4892
  }
4887
4893
  }), Hs = { class: "tooltip__content" }, Gs = /* @__PURE__ */ O({
@@ -4942,7 +4948,7 @@ const ur = {
4942
4948
  n.value = !1, i = null;
4943
4949
  }, 50);
4944
4950
  }
4945
- }), (g, y) => (d(), G(je, { to: "body" }, [
4951
+ }), (g, y) => (d(), G(Ye, { to: "body" }, [
4946
4952
  q(De, { name: "tooltip-fade" }, {
4947
4953
  default: ee(() => [
4948
4954
  n.value ? (d(), p("div", {