@3squared/forge-ui-3 2.8.0 → 2.8.1

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,5 +1,5 @@
1
1
  import he from "primevue/message";
2
- import { defineComponent as F, openBlock as d, createBlock as v, normalizeProps as K, guardReactiveProps as Z, withCtx as b, createElementVNode as m, normalizeClass as B, unref as c, createCommentVNode as C, createVNode as x, renderSlot as k, ref as _, createElementBlock as f, Fragment as O, mergeProps as S, renderList as A, mergeModels as N, useModel as D, computed as z, createTextVNode as I, toDisplayString as w, withDirectives as H, vShow as Y, createSlots as ie, onMounted as le, isRef as we, withKeys as X, normalizeStyle as ke, withModifiers as G, watch as ce, h as $e, useTemplateRef as Fe } from "vue";
2
+ import { defineComponent as F, openBlock as d, createBlock as v, normalizeProps as K, guardReactiveProps as Z, withCtx as b, createElementVNode as m, normalizeClass as B, unref as u, createCommentVNode as C, createVNode as x, renderSlot as k, ref as I, createElementBlock as f, Fragment as O, mergeProps as S, renderList as A, mergeModels as N, useModel as D, computed as z, createTextVNode as _, toDisplayString as w, withDirectives as H, vShow as Y, createSlots as ie, onMounted as le, isRef as we, withKeys as X, normalizeStyle as ke, withModifiers as G, watch as ce, h as $e, useTemplateRef as Fe } from "vue";
3
3
  import { Icon as T } from "@iconify/vue";
4
4
  import q from "primevue/button";
5
5
  import Be from "primevue/toast";
@@ -10,9 +10,9 @@ import ze from "primevue/progressspinner";
10
10
  import Te from "primevue/dialog";
11
11
  import ne from "primevue/inputtext";
12
12
  import { vOnClickOutside as je } from "@vueuse/components";
13
- import _e from "primevue/menubar";
13
+ import Ie from "primevue/menubar";
14
14
  import oe from "primevue/multiselect";
15
- import Ie from "primevue/datepicker";
15
+ import _e from "primevue/datepicker";
16
16
  import te from "primevue/select";
17
17
  import Pe from "primevue/inputmask";
18
18
  import Ve from "primevue/textarea";
@@ -165,13 +165,12 @@ const We = {
165
165
  root: () => ({
166
166
  class: ["form-check"]
167
167
  }),
168
- input: ({ context: e, state: t }) => ({
168
+ input: ({ context: e, props: t }) => ({
169
169
  class: [
170
170
  "form-check-input px-2 py-2 rounded",
171
171
  {
172
172
  "bg-primary": e == null ? void 0 : e.checked,
173
- "cursor-pointer": !(e != null && e.disabled),
174
- "form-check-input__focus": t.focused
173
+ "cursor-pointer": !t.disabled && !t.readonly
175
174
  }
176
175
  ]
177
176
  })
@@ -1195,7 +1194,7 @@ const We = {
1195
1194
  m("div", {
1196
1195
  class: B(t.icon ? "me-2 pe-1" : "")
1197
1196
  }, [
1198
- t.icon ? (d(), v(c(T), {
1197
+ t.icon ? (d(), v(u(T), {
1199
1198
  key: 0,
1200
1199
  "data-cy": "message-icon",
1201
1200
  icon: t.icon,
@@ -1205,7 +1204,7 @@ const We = {
1205
1204
  ], 2)
1206
1205
  ]),
1207
1206
  closeicon: b(() => [
1208
- x(c(T), { icon: "bi:x" })
1207
+ x(u(T), { icon: "bi:x" })
1209
1208
  ]),
1210
1209
  default: b(() => [
1211
1210
  k(a.$slots, "default")
@@ -1223,7 +1222,7 @@ const We = {
1223
1222
  params: { default: Array }
1224
1223
  },
1225
1224
  setup(e) {
1226
- const t = _(!1), a = e, i = async () => {
1225
+ const t = I(!1), a = e, i = async () => {
1227
1226
  t.value = !0;
1228
1227
  try {
1229
1228
  await a.action.apply(this, a.params);
@@ -1240,14 +1239,14 @@ const We = {
1240
1239
  disabled: t.value || a.disabled,
1241
1240
  onClick: i
1242
1241
  }), null, 16, ["loading", "disabled"]),
1243
- x(c(Be))
1242
+ x(u(Be))
1244
1243
  ], 64);
1245
1244
  };
1246
1245
  }
1247
1246
  }), Ni = /* @__PURE__ */ F({
1248
1247
  __name: "ForgeAutoComplete",
1249
1248
  setup(e) {
1250
- return (t, a) => (d(), v(c(Se), S({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
1249
+ return (t, a) => (d(), v(u(Se), S({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
1251
1250
  default: b(() => [
1252
1251
  (d(!0), f(O, null, A(t.$slots, (i, l) => k(t.$slots, l, { slot: l })), 256))
1253
1252
  ]),
@@ -1296,39 +1295,39 @@ const We = {
1296
1295
  type: "checkbox",
1297
1296
  checkedValue: a.value
1298
1297
  }
1299
- ), o = (p) => {
1300
- t.name ? i(p) : a.value = p;
1298
+ ), o = (p, c) => {
1299
+ (t.disabled || t.readonly) && p.preventDefault(), t.name ? i(c) : a.value = c;
1301
1300
  }, r = z(() => l.value.length > 0);
1302
- return (p, u) => {
1301
+ return (p, c) => {
1303
1302
  const y = Ce;
1304
1303
  return d(), f("div", Ct, [
1305
1304
  m("div", S({
1306
1305
  class: "d-flex",
1307
1306
  "data-cy": "checkbox-container",
1308
- onClick: u[2] || (u[2] = (s) => o(a.value))
1307
+ onClick: c[2] || (c[2] = (s) => o(s, a.value))
1309
1308
  }, { ...p.$attrs }), [
1310
1309
  x(y, S({ ...t }, {
1311
1310
  binary: "",
1312
1311
  modelValue: a.value,
1313
- "onUpdate:modelValue": u[0] || (u[0] = (s) => a.value = s),
1312
+ "onUpdate:modelValue": c[0] || (c[0] = (s) => a.value = s),
1314
1313
  "input-id": t.name,
1315
1314
  "input-class": { "is-invalid": r.value },
1316
- class: t.disabled ? "" : "cursor-pointer"
1315
+ class: t.disabled || t.readonly ? "" : "cursor-pointer"
1317
1316
  }), null, 16, ["modelValue", "input-id", "input-class", "class"]),
1318
1317
  m("label", {
1319
1318
  for: t.name,
1320
- onClick: u[1] || (u[1] = (s) => o(!a.value)),
1321
- class: B([`${t.disabled ? "opacity-50" : "cursor-pointer"} ${r.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
1319
+ onClick: c[1] || (c[1] = (s) => o(s, !a.value)),
1320
+ class: B([`${t.disabled || t.readonly ? "opacity-50" : "cursor-pointer"} ${r.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
1322
1321
  }, [
1323
1322
  k(p.$slots, "default", {}, () => [
1324
- I(w(t.label), 1)
1323
+ _(w(t.label), 1)
1325
1324
  ])
1326
1325
  ], 10, zt)
1327
1326
  ], 16),
1328
1327
  H(m("small", {
1329
1328
  "data-cy": "error",
1330
1329
  class: "text-invalid"
1331
- }, w(c(n)), 513), [
1330
+ }, w(u(n)), 513), [
1332
1331
  [Y, r.value]
1333
1332
  ])
1334
1333
  ]);
@@ -1392,18 +1391,18 @@ const We = {
1392
1391
  target: i.target
1393
1392
  }, [
1394
1393
  k(i.$slots, "default", {}, () => [
1395
- i.iconName ? (d(), v(c(T), {
1394
+ i.iconName ? (d(), v(u(T), {
1396
1395
  key: 0,
1397
1396
  id: "link-icon",
1398
1397
  icon: i.iconName,
1399
1398
  class: B(["bi my-auto", a.value])
1400
1399
  }, null, 8, ["icon", "class"])) : C("", !0),
1401
- I(" " + w(i.label), 1)
1400
+ _(" " + w(i.label), 1)
1402
1401
  ])
1403
1402
  ], 10, jt));
1404
1403
  }
1405
1404
  });
1406
- function _t(e) {
1405
+ function It(e) {
1407
1406
  const t = {
1408
1407
  errorMessage: "",
1409
1408
  errorDetails: []
@@ -1420,7 +1419,7 @@ function Ai(e, t) {
1420
1419
  function qi(e, t, a) {
1421
1420
  return { id: e, label: t ?? e.toString(), shortLabel: a };
1422
1421
  }
1423
- const It = { key: 0 }, Pt = {
1422
+ const _t = { key: 0 }, Pt = {
1424
1423
  class: "d-flex w-100",
1425
1424
  "data-cy": "footer"
1426
1425
  }, Ei = /* @__PURE__ */ F({
@@ -1473,7 +1472,7 @@ const It = { key: 0 }, Pt = {
1473
1472
  }),
1474
1473
  emits: ["update:visible"],
1475
1474
  setup(e) {
1476
- const t = D(e, "visible"), a = _(!1), i = e, l = _(!1), n = _({
1475
+ const t = D(e, "visible"), a = I(!1), i = e, l = I(!1), n = I({
1477
1476
  hasError: !1,
1478
1477
  header: "",
1479
1478
  message: []
@@ -1483,7 +1482,7 @@ const It = { key: 0 }, Pt = {
1483
1482
  a.value = !0;
1484
1483
  }, p = () => {
1485
1484
  t.value = !1;
1486
- }, u = async () => {
1485
+ }, c = async () => {
1487
1486
  if (i.onConfirm) {
1488
1487
  l.value = !0, n.value.hasError = !1;
1489
1488
  try {
@@ -1491,7 +1490,7 @@ const It = { key: 0 }, Pt = {
1491
1490
  (s || s == null) && p();
1492
1491
  } catch (s) {
1493
1492
  n.value.hasError = !0;
1494
- const $ = _t(s);
1493
+ const $ = It(s);
1495
1494
  n.value.header = $.errorMessage, n.value.message = $.errorDetails;
1496
1495
  }
1497
1496
  l.value = !1;
@@ -1515,7 +1514,7 @@ const It = { key: 0 }, Pt = {
1515
1514
  pt: y.value
1516
1515
  }), ie({
1517
1516
  closeicon: b(() => [
1518
- x(c(T), {
1517
+ x(u(T), {
1519
1518
  "data-cy": "close-icon",
1520
1519
  icon: "bi:x-lg",
1521
1520
  width: "18",
@@ -1524,7 +1523,7 @@ const It = { key: 0 }, Pt = {
1524
1523
  })
1525
1524
  ]),
1526
1525
  maximizeicon: b(() => [
1527
- x(c(T), {
1526
+ x(u(T), {
1528
1527
  "data-cy": "maximisable-icon",
1529
1528
  icon: a.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
1530
1529
  width: "16",
@@ -1545,7 +1544,7 @@ const It = { key: 0 }, Pt = {
1545
1544
  m("p", {
1546
1545
  class: B(n.value.message.length > 0 ? "my-auto" : "mb-0")
1547
1546
  }, w(n.value.header), 3),
1548
- n.value.message.length > 0 ? (d(), f("ul", It, [
1547
+ n.value.message.length > 0 ? (d(), f("ul", _t, [
1549
1548
  (d(!0), f(O, null, A(n.value.message, (h) => (d(), f("li", { key: h }, w(h), 1))), 128))
1550
1549
  ])) : C("", !0)
1551
1550
  ]),
@@ -1572,7 +1571,7 @@ const It = { key: 0 }, Pt = {
1572
1571
  x(j, {
1573
1572
  label: s.submitText,
1574
1573
  class: B([i.submitClass, "ms-auto"]),
1575
- onClick: u,
1574
+ onClick: c,
1576
1575
  id: "submit-button",
1577
1576
  type: i.submitButtonType
1578
1577
  }, null, 8, ["label", "class", "type"])
@@ -1598,7 +1597,7 @@ const It = { key: 0 }, Pt = {
1598
1597
  }),
1599
1598
  emits: ["update:modelValue"],
1600
1599
  setup(e) {
1601
- const t = e, a = D(e, "modelValue"), i = _(!1), l = _(), n = () => {
1600
+ const t = e, a = D(e, "modelValue"), i = I(!1), l = I(), n = () => {
1602
1601
  var j;
1603
1602
  i.value = !i.value, (j = l.value) == null || j.focus();
1604
1603
  }, o = async () => {
@@ -1616,7 +1615,7 @@ const It = { key: 0 }, Pt = {
1616
1615
  i.value = !i.value;
1617
1616
  }, p = () => {
1618
1617
  s.value = null;
1619
- }, { errorMessage: u, errors: y, value: s } = ee(() => t.name, void 0, {
1618
+ }, { errorMessage: c, errors: y, value: s } = ee(() => t.name, void 0, {
1620
1619
  initialValue: a.value
1621
1620
  });
1622
1621
  le(() => {
@@ -1630,7 +1629,7 @@ const It = { key: 0 }, Pt = {
1630
1629
  }, [
1631
1630
  j.readonly ? (d(), f("div", Nt, [
1632
1631
  k(j.$slots, "default", {}, () => [
1633
- m("span", Ut, w(c(s)), 1)
1632
+ m("span", Ut, w(u(s)), 1)
1634
1633
  ])
1635
1634
  ])) : (d(), f("div", Mt, [
1636
1635
  i.value ? (d(), f("div", Dt, [
@@ -1639,10 +1638,10 @@ const It = { key: 0 }, Pt = {
1639
1638
  class: B({ "is-invalid": $.value }),
1640
1639
  editFinished: o,
1641
1640
  cancel: r,
1642
- val: c(s)
1641
+ val: u(s)
1643
1642
  }, () => [
1644
1643
  x(M, {
1645
- modelValue: c(s),
1644
+ modelValue: u(s),
1646
1645
  "onUpdate:modelValue": V[0] || (V[0] = (g) => we(s) ? s.value = g : null),
1647
1646
  modelModifiers: { trim: !0 },
1648
1647
  "data-cy": "input",
@@ -1655,7 +1654,7 @@ const It = { key: 0 }, Pt = {
1655
1654
  ]
1656
1655
  }, null, 8, ["modelValue", "class"])
1657
1656
  ]),
1658
- x(c(T), {
1657
+ x(u(T), {
1659
1658
  icon: "bi:x-circle",
1660
1659
  class: "mx-2 cursor-pointer",
1661
1660
  onClick: p,
@@ -1663,7 +1662,7 @@ const It = { key: 0 }, Pt = {
1663
1662
  "data-cy": "clear-icon"
1664
1663
  })
1665
1664
  ])), [
1666
- [c(je), o]
1665
+ [u(je), o]
1667
1666
  ])
1668
1667
  ])) : (d(), f("div", {
1669
1668
  key: 1,
@@ -1675,14 +1674,14 @@ const It = { key: 0 }, Pt = {
1675
1674
  m("div", {
1676
1675
  class: B(["pe-2 cursor-pointer", { "text-invalid": $.value }]),
1677
1676
  "data-cy": "value"
1678
- }, w(c(s) ? c(s) : "Click to edit"), 3)
1677
+ }, w(u(s) ? u(s) : "Click to edit"), 3)
1679
1678
  ]),
1680
1679
  x(U, {
1681
1680
  link: "",
1682
1681
  class: "p-0 m-0"
1683
1682
  }, {
1684
1683
  default: b(() => [
1685
- x(c(T), {
1684
+ x(u(T), {
1686
1685
  icon: "bi:pencil",
1687
1686
  class: B($.value ? "text-invalid" : "text-muted"),
1688
1687
  "data-cy": "edit-icon",
@@ -1696,7 +1695,7 @@ const It = { key: 0 }, Pt = {
1696
1695
  H(m("small", {
1697
1696
  "data-cy": "error",
1698
1697
  class: "text-invalid"
1699
- }, w(c(u)), 513), [
1698
+ }, w(u(c)), 513), [
1700
1699
  [Y, $.value]
1701
1700
  ])
1702
1701
  ], 8, Vt);
@@ -1746,7 +1745,7 @@ const It = { key: 0 }, Pt = {
1746
1745
  ]
1747
1746
  })
1748
1747
  }));
1749
- return (i, l) => (d(), v(c(_e), S({ ...t, ...i.$attrs }, {
1748
+ return (i, l) => (d(), v(u(Ie), S({ ...t, ...i.$attrs }, {
1750
1749
  pt: a.value,
1751
1750
  "data-cy": "navbar"
1752
1751
  }), ie({
@@ -1757,13 +1756,13 @@ const It = { key: 0 }, Pt = {
1757
1756
  "data-cy": "logo"
1758
1757
  }, [
1759
1758
  k(i.$slots, "logo", {}, () => [
1760
- l[0] || (l[0] = I(" Logo "))
1759
+ l[0] || (l[0] = _(" Logo "))
1761
1760
  ])
1762
1761
  ], 8, qt)
1763
1762
  ]),
1764
1763
  buttonicon: b(() => [
1765
1764
  k(i.$slots, "buttonIcon", {}, () => [
1766
- x(c(T), {
1765
+ x(u(T), {
1767
1766
  icon: "bi:list",
1768
1767
  class: B(t.severity === "light" ? "text-black" : "text-white"),
1769
1768
  height: "24",
@@ -1827,7 +1826,7 @@ const It = { key: 0 }, Pt = {
1827
1826
  "data-cy": "multiselect"
1828
1827
  }), {
1829
1828
  default: b(() => [
1830
- (d(!0), f(O, null, A(l.$slots, (p, u) => k(l.$slots, u, { slot: u })), 256))
1829
+ (d(!0), f(O, null, A(l.$slots, (p, c) => k(l.$slots, c, { slot: c })), 256))
1831
1830
  ]),
1832
1831
  _: 3
1833
1832
  }, 16, ["modelValue", "options", "placeholder"]),
@@ -1854,10 +1853,10 @@ const It = { key: 0 }, Pt = {
1854
1853
  key: 0,
1855
1854
  link: "",
1856
1855
  class: "m-0 p-0 d-flex align-items-center",
1857
- onClick: (u) => i(p.id)
1856
+ onClick: (c) => i(p.id)
1858
1857
  }, {
1859
1858
  default: b(() => [
1860
- x(c(T), {
1859
+ x(u(T), {
1861
1860
  icon: "bi:x",
1862
1861
  class: "close-icon",
1863
1862
  "data-cy": `close-icon-${p.id}`
@@ -1973,7 +1972,7 @@ const It = { key: 0 }, Pt = {
1973
1972
  initialValue: a.value
1974
1973
  }), p = () => {
1975
1974
  r(null), a.value = null;
1976
- }, u = z(() => i.value.length > 0), y = z(() => ({
1975
+ }, c = z(() => i.value.length > 0), y = z(() => ({
1977
1976
  dayCell: ({ context: s }) => ({
1978
1977
  class: [
1979
1978
  `text-center date-${t.severity === void 0 ? "primary" : t.severity}`,
@@ -2065,7 +2064,7 @@ const It = { key: 0 }, Pt = {
2065
2064
  })
2066
2065
  }));
2067
2066
  return (s, $) => {
2068
- const j = Ie;
2067
+ const j = _e;
2069
2068
  return d(), f(O, null, [
2070
2069
  m("div", Kt, [
2071
2070
  m("span", Zt, [
@@ -2077,19 +2076,19 @@ const It = { key: 0 }, Pt = {
2077
2076
  modelValue: a.value,
2078
2077
  "onUpdate:modelValue": [
2079
2078
  $[0] || ($[0] = (V) => a.value = V),
2080
- c(n)
2079
+ u(n)
2081
2080
  ],
2082
- onBlur: $[1] || ($[1] = () => c(o)),
2083
- "input-class": { "datepicker-invalid": u.value }
2081
+ onBlur: $[1] || ($[1] = () => u(o)),
2082
+ "input-class": { "datepicker-invalid": c.value }
2084
2083
  }), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "input-class"]),
2085
- H(x(c(T), {
2084
+ H(x(u(T), {
2086
2085
  "data-cy": "icon",
2087
2086
  icon: "bi:calendar4",
2088
- class: B(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${u.value ? "text-danger-dark" : "text-muted"}`])
2087
+ class: B(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${c.value ? "text-danger-dark" : "text-muted"}`])
2089
2088
  }, null, 8, ["class"]), [
2090
2089
  [Y, t.showIcon]
2091
2090
  ]),
2092
- H(x(c(T), {
2091
+ H(x(u(T), {
2093
2092
  "data-cy": "icon",
2094
2093
  icon: "bi:x",
2095
2094
  onClick: p,
@@ -2105,8 +2104,8 @@ const It = { key: 0 }, Pt = {
2105
2104
  H(m("small", {
2106
2105
  "data-cy": "error",
2107
2106
  class: "text-invalid"
2108
- }, w(c(l)), 513), [
2109
- [Y, u.value]
2107
+ }, w(u(l)), 513), [
2108
+ [Y, c.value]
2110
2109
  ])
2111
2110
  ], 64);
2112
2111
  };
@@ -2135,7 +2134,7 @@ const It = { key: 0 }, Pt = {
2135
2134
  hideCancel: { type: Boolean, default: !1 }
2136
2135
  },
2137
2136
  setup(e) {
2138
- const t = e, a = _(!1), i = _({
2137
+ const t = e, a = I(!1), i = I({
2139
2138
  hasError: !1,
2140
2139
  message: ""
2141
2140
  });
@@ -2173,7 +2172,7 @@ const It = { key: 0 }, Pt = {
2173
2172
  k(n.$slots, "error", {
2174
2173
  error: i.value.message
2175
2174
  }, () => [
2176
- I(w(i.value.message), 1)
2175
+ _(w(i.value.message), 1)
2177
2176
  ])
2178
2177
  ]),
2179
2178
  _: 3
@@ -2190,7 +2189,7 @@ const It = { key: 0 }, Pt = {
2190
2189
  onClick: o[0] || (o[0] = (p) => n.$emit("cancel"))
2191
2190
  }, {
2192
2191
  default: b(() => [
2193
- I(w(n.cancelText), 1)
2192
+ _(w(n.cancelText), 1)
2194
2193
  ]),
2195
2194
  _: 1
2196
2195
  }))
@@ -2203,7 +2202,7 @@ const It = { key: 0 }, Pt = {
2203
2202
  class: "ms-auto"
2204
2203
  }, {
2205
2204
  default: b(() => [
2206
- I(w(n.submitText), 1)
2205
+ _(w(n.submitText), 1)
2207
2206
  ]),
2208
2207
  _: 1
2209
2208
  })
@@ -2239,7 +2238,7 @@ const It = { key: 0 }, Pt = {
2239
2238
  a.type == "number" ? r(y.value) : r(y);
2240
2239
  }, { errors: l, value: n, errorMessage: o, handleChange: r, handleBlur: p } = ee(() => a.name, void 0, {
2241
2240
  initialValue: t.value
2242
- }), u = z(() => l.value.length > 0);
2241
+ }), c = z(() => l.value.length > 0);
2243
2242
  return ce(() => n.value, (y) => {
2244
2243
  t.value = y;
2245
2244
  }, { immediate: !0 }), (y, s) => {
@@ -2261,13 +2260,13 @@ const It = { key: 0 }, Pt = {
2261
2260
  for: a.name,
2262
2261
  class: B(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
2263
2262
  }, w(a.fieldLabel), 11, aa),
2264
- a.type === "number" ? (d(), v(c(ue), S({
2263
+ a.type === "number" ? (d(), v(u(ue), S({
2265
2264
  key: 0,
2266
2265
  id: a.name
2267
2266
  }, y.$attrs, {
2268
2267
  placeholder: a.placeholder,
2269
- "input-class": { "is-invalid": u.value },
2270
- class: { "is-invalid": u.value },
2268
+ "input-class": { "is-invalid": c.value },
2269
+ class: { "is-invalid": c.value },
2271
2270
  modelValue: t.value,
2272
2271
  "onUpdate:modelValue": s[1] || (s[1] = (h) => t.value = h),
2273
2272
  onInput: i
@@ -2276,55 +2275,55 @@ const It = { key: 0 }, Pt = {
2276
2275
  id: a.name
2277
2276
  }, y.$attrs, {
2278
2277
  placeholder: a.placeholder,
2279
- class: { "is-invalid": u.value },
2278
+ class: { "is-invalid": c.value },
2280
2279
  modelValue: t.value,
2281
2280
  "onUpdate:modelValue": s[2] || (s[2] = (h) => t.value = h),
2282
2281
  onInput: i,
2283
- onBlur: c(p)
2282
+ onBlur: u(p)
2284
2283
  }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(), v(j, S({
2285
2284
  key: 2,
2286
2285
  id: a.name
2287
2286
  }, y.$attrs, {
2288
2287
  placeholder: a.placeholder,
2289
2288
  mask: a.mask,
2290
- class: { "is-invalid": u.value },
2289
+ class: { "is-invalid": c.value },
2291
2290
  modelValue: t.value,
2292
2291
  "onUpdate:modelValue": s[3] || (s[3] = (h) => t.value = h),
2293
2292
  onComplete: i,
2294
- onBlur: c(p)
2293
+ onBlur: u(p)
2295
2294
  }), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(), v(V, S({
2296
2295
  key: 3,
2297
2296
  id: a.name
2298
2297
  }, y.$attrs, {
2299
2298
  placeholder: a.placeholder,
2300
- class: { "is-invalid": u.value },
2299
+ class: { "is-invalid": c.value },
2301
2300
  modelValue: t.value,
2302
2301
  "onUpdate:modelValue": s[4] || (s[4] = (h) => t.value = h),
2303
2302
  onInput: i,
2304
- onBlur: c(p)
2303
+ onBlur: u(p)
2305
2304
  }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(), v(M, S({ key: 4 }, { ...a, ...y.$attrs }, {
2306
2305
  modelValue: t.value,
2307
2306
  "onUpdate:modelValue": s[5] || (s[5] = (h) => t.value = h),
2308
- class: { "is-invalid": u.value }
2307
+ class: { "is-invalid": c.value }
2309
2308
  }), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(), v(U, S({ key: 5 }, { ...a, ...y.$attrs }, {
2310
2309
  modelValue: t.value,
2311
2310
  "onUpdate:modelValue": s[6] || (s[6] = (h) => t.value = h),
2312
- class: { "is-invalid": u.value }
2311
+ class: { "is-invalid": c.value }
2313
2312
  }), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(), v(Wt, S({ key: 6 }, { ...a, ...y.$attrs }, {
2314
2313
  modelValue: t.value,
2315
2314
  "onUpdate:modelValue": s[7] || (s[7] = (h) => t.value = h),
2316
- class: { "is-invalid": u.value }
2315
+ class: { "is-invalid": c.value }
2317
2316
  }), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(), v(g, S({ key: 7 }, { ...a, ...y.$attrs }, {
2318
2317
  modelValue: t.value,
2319
2318
  "onUpdate:modelValue": s[8] || (s[8] = (h) => t.value = h),
2320
- class: { "is-invalid": u.value }
2319
+ class: { "is-invalid": c.value }
2321
2320
  }), null, 16, ["modelValue", "class"])) : C("", !0)
2322
2321
  ], 2),
2323
2322
  H(m("small", {
2324
2323
  "data-cy": "error",
2325
2324
  class: "invalid-feedback"
2326
- }, w(c(o)), 513), [
2327
- [Y, u.value && a.type !== "multiselect" && a.type !== "datepicker"]
2325
+ }, w(u(o)), 513), [
2326
+ [Y, c.value && a.type !== "multiselect" && a.type !== "datepicker"]
2328
2327
  ])
2329
2328
  ]));
2330
2329
  };
@@ -2741,11 +2740,11 @@ var la = /* @__PURE__ */ F({
2741
2740
  const o = /(\r\n|\n\r|\n|\r)+/g, r = /\s+/g;
2742
2741
  var p = t.split(o).filter((M) => M.length > 0);
2743
2742
  for (let M = 0; M < p.length; M++) {
2744
- for (var u = p[M].split(r).filter((U) => U.length > 0), y = "", s = 0; s < u.length; s++) {
2745
- var $ = y + u[s] + " ", j = e.measureText($), V = j.width;
2746
- V > l && s > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(y, a, i) : e.fillText(y, a, i), y = u[s] + " ", i += n) : y = $;
2743
+ for (var c = p[M].split(r).filter((U) => U.length > 0), y = "", s = 0; s < c.length; s++) {
2744
+ var $ = y + c[s] + " ", j = e.measureText($), V = j.width;
2745
+ V > l && s > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(y, a, i) : e.fillText(y, a, i), y = c[s] + " ", i += n) : y = $;
2747
2746
  }
2748
- this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(y, a, i) : e.fillText(y, a, i), i += u.length > 0 ? n : 0;
2747
+ this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(y, a, i) : e.fillText(y, a, i), i += c.length > 0 ? n : 0;
2749
2748
  }
2750
2749
  },
2751
2750
  save() {
@@ -2765,9 +2764,9 @@ var la = /* @__PURE__ */ F({
2765
2764
  const n = new Image();
2766
2765
  n.src = a.source, n.onload = () => {
2767
2766
  a && t && t.drawImage(n, a.x, a.y, Number(i), Number(l));
2768
- let o = document.createElement("canvas"), r = o.getContext("2d"), p = this.outputWidth === void 0 ? this.width : this.outputWidth, u = this.outputHeight === void 0 ? this.height : this.outputHeight;
2769
- if (o.width = Number(p), o.height = Number(u), r)
2770
- return r.drawImage(e, 0, 0, Number(p), Number(u)), this.$emit("update:image", o.toDataURL("image/" + this.saveAs, 1)), o.toDataURL("image/" + this.saveAs, 1);
2767
+ let o = document.createElement("canvas"), r = o.getContext("2d"), p = this.outputWidth === void 0 ? this.width : this.outputWidth, c = this.outputHeight === void 0 ? this.height : this.outputHeight;
2768
+ if (o.width = Number(p), o.height = Number(c), r)
2769
+ return r.drawImage(e, 0, 0, Number(p), Number(c)), this.$emit("update:image", o.toDataURL("image/" + this.saveAs, 1)), o.toDataURL("image/" + this.saveAs, 1);
2771
2770
  };
2772
2771
  } else if (a.type === "Text") {
2773
2772
  let i = a.fontStyle && a.fontStyle.font ? a.fontStyle.font : "20px serif", l = a.fontStyle && a.fontStyle.textAlign ? a.fontStyle.textAlign : "start", n = a.fontStyle && a.fontStyle.textBaseline ? a.fontStyle.textBaseline : "alphabetic", o = a.fontStyle && a.fontStyle.color ? a.fontStyle.color : "#000000";
@@ -2776,9 +2775,9 @@ var la = /* @__PURE__ */ F({
2776
2775
  a.fontStyle && a.fontStyle.width ? s = a.x + Math.floor(a.fontStyle.width / 2) : s = a.x, a.fontStyle && a.fontStyle.lineHeight ? $ = a.y + Math.floor(a.fontStyle.lineHeight / 2) : $ = a.y, t.translate(s, $), t.rotate(a.fontStyle.rotate * Math.PI / 180), t.translate(s * -1, $ * -1);
2777
2776
  }
2778
2777
  a.fontStyle && a.fontStyle.drawType && a.fontStyle.drawType === "stroke" ? (t.strokeStyle = a.fontStyle.color, a.fontStyle && a.fontStyle.width ? this.wrapText(t, a.source, a.x, a.y, a.fontStyle.width, a.fontStyle.lineHeight) : t.strokeText(a.source, a.x, a.y)) : (t.fillStyle = o, a.fontStyle && a.fontStyle.width ? this.wrapText(t, a.source, a.x, a.y, a.fontStyle.width, a.fontStyle.lineHeight) : t.fillText(a.source, a.x, a.y));
2779
- let r = document.createElement("canvas"), p = r.getContext("2d"), u = this.outputWidth === void 0 ? this.width : this.outputWidth, y = this.outputHeight === void 0 ? this.height : this.outputHeight;
2780
- if (r.width = Number(u), r.height = Number(y), p)
2781
- return p.drawImage(e, 0, 0, Number(u), Number(y)), this.$emit("update:image", r.toDataURL("image/" + this.saveAs, 1)), r.toDataURL("image/" + this.saveAs, 1);
2778
+ let r = document.createElement("canvas"), p = r.getContext("2d"), c = this.outputWidth === void 0 ? this.width : this.outputWidth, y = this.outputHeight === void 0 ? this.height : this.outputHeight;
2779
+ if (r.width = Number(c), r.height = Number(y), p)
2780
+ return p.drawImage(e, 0, 0, Number(c), Number(y)), this.$emit("update:image", r.toDataURL("image/" + this.saveAs, 1)), r.toDataURL("image/" + this.saveAs, 1);
2782
2781
  }
2783
2782
  },
2784
2783
  isEmpty() {
@@ -2829,19 +2828,19 @@ const na = { class: "d-flex flex-column" }, oa = { class: "d-flex flex-row mt-1
2829
2828
  },
2830
2829
  emits: ["save"],
2831
2830
  setup(e, { emit: t }) {
2832
- const a = e, i = t, l = Fe("drawingCanvas"), n = _(), o = () => {
2831
+ const a = e, i = t, l = Fe("drawingCanvas"), n = I(), o = () => {
2833
2832
  l == null || l.value.reset();
2834
2833
  }, r = () => {
2835
2834
  l == null || l.value.redo();
2836
2835
  }, p = () => {
2837
2836
  l == null || l.value.undo();
2838
- }, u = () => {
2837
+ }, c = () => {
2839
2838
  i("save", l.value.isEmpty());
2840
2839
  };
2841
2840
  return (y, s) => {
2842
2841
  const $ = q;
2843
2842
  return d(), f("div", na, [
2844
- x(c(la), S({
2843
+ x(u(la), S({
2845
2844
  ref_key: "drawingCanvas",
2846
2845
  ref: l,
2847
2846
  image: n.value,
@@ -2862,7 +2861,7 @@ const na = { class: "d-flex flex-column" }, oa = { class: "d-flex flex-row mt-1
2862
2861
  "data-cy": "undo-button"
2863
2862
  }, {
2864
2863
  default: b(() => s[1] || (s[1] = [
2865
- I("Undo")
2864
+ _("Undo")
2866
2865
  ])),
2867
2866
  _: 1
2868
2867
  })) : C("", !0),
@@ -2873,7 +2872,7 @@ const na = { class: "d-flex flex-column" }, oa = { class: "d-flex flex-row mt-1
2873
2872
  "data-cy": "redo-button"
2874
2873
  }, {
2875
2874
  default: b(() => s[2] || (s[2] = [
2876
- I("Redo")
2875
+ _("Redo")
2877
2876
  ])),
2878
2877
  _: 1
2879
2878
  })) : C("", !0),
@@ -2884,18 +2883,18 @@ const na = { class: "d-flex flex-column" }, oa = { class: "d-flex flex-row mt-1
2884
2883
  "data-cy": "clear-button"
2885
2884
  }, {
2886
2885
  default: b(() => s[3] || (s[3] = [
2887
- I("Clear")
2886
+ _("Clear")
2888
2887
  ])),
2889
2888
  _: 1
2890
2889
  })) : C("", !0),
2891
2890
  a.showSave ? (d(), v($, {
2892
2891
  key: 3,
2893
- onClick: u,
2892
+ onClick: c,
2894
2893
  class: "ms-auto",
2895
2894
  "data-cy": "save-button"
2896
2895
  }, {
2897
2896
  default: b(() => s[4] || (s[4] = [
2898
- I("Save")
2897
+ _("Save")
2899
2898
  ])),
2900
2899
  _: 1
2901
2900
  })) : C("", !0)
@@ -2966,11 +2965,11 @@ const na = { class: "d-flex flex-column" }, oa = { class: "d-flex flex-row mt-1
2966
2965
  ]
2967
2966
  })
2968
2967
  }));
2969
- return (i, l) => (d(), v(c(Ne), { value: i.currentStep }, {
2968
+ return (i, l) => (d(), v(u(Ne), { value: i.currentStep }, {
2970
2969
  default: b(() => [
2971
- x(c(Ue), null, {
2970
+ x(u(Ue), null, {
2972
2971
  default: b(() => [
2973
- (d(!0), f(O, null, A(i.steps, (n) => (d(), v(c(Oe), S({
2972
+ (d(!0), f(O, null, A(i.steps, (n) => (d(), v(u(Oe), S({
2974
2973
  key: n.value,
2975
2974
  value: n.value,
2976
2975
  disabled: n.disabled,
@@ -2984,9 +2983,9 @@ const na = { class: "d-flex flex-column" }, oa = { class: "d-flex flex-row mt-1
2984
2983
  ]),
2985
2984
  _: 1
2986
2985
  }),
2987
- x(c(qe), null, {
2986
+ x(u(qe), null, {
2988
2987
  default: b(() => [
2989
- (d(!0), f(O, null, A(i.steps, (n) => (d(), v(c(Ae), {
2988
+ (d(!0), f(O, null, A(i.steps, (n) => (d(), v(u(Ae), {
2990
2989
  key: n.value,
2991
2990
  value: n.value
2992
2991
  }, {
@@ -3024,7 +3023,7 @@ const na = { class: "d-flex flex-column" }, oa = { class: "d-flex flex-row mt-1
3024
3023
  default: b(() => [
3025
3024
  m("div", da, [
3026
3025
  k(l.$slots, "default", {}, () => [
3027
- n[0] || (n[0] = I("Tile Content"))
3026
+ n[0] || (n[0] = _("Tile Content"))
3028
3027
  ])
3029
3028
  ])
3030
3029
  ]),
@@ -3036,7 +3035,7 @@ const na = { class: "d-flex flex-column" }, oa = { class: "d-flex flex-row mt-1
3036
3035
  }, [
3037
3036
  m("div", pa, [
3038
3037
  k(l.$slots, "default", {}, () => [
3039
- n[1] || (n[1] = I("Tile Content"))
3038
+ n[1] || (n[1] = _("Tile Content"))
3040
3039
  ])
3041
3040
  ])
3042
3041
  ], 2));
@@ -3068,9 +3067,9 @@ const ca = {
3068
3067
  return `${o} ${Q(o, "page")}`;
3069
3068
  });
3070
3069
  return (o, r) => (d(), f("div", ca, [
3071
- r[2] || (r[2] = I(" Number of results per page ")),
3070
+ r[2] || (r[2] = _(" Number of results per page ")),
3072
3071
  m("div", ua, [
3073
- x(c(te), {
3072
+ x(u(te), {
3074
3073
  options: i.pageSizes,
3075
3074
  "model-value": i.perPage,
3076
3075
  class: "page-size",
@@ -3079,7 +3078,7 @@ const ca = {
3079
3078
  ]),
3080
3079
  i.total ? (d(), f("div", ma, [
3081
3080
  r[1] || (r[1] = m("span", { class: "mx-2" }, "|", -1)),
3082
- m("span", va, w(i.total) + " " + w(c(Q)(i.total, "result")) + " across " + w(n.value), 1)
3081
+ m("span", va, w(i.total) + " " + w(u(Q)(i.total, "result")) + " across " + w(n.value), 1)
3083
3082
  ])) : C("", !0)
3084
3083
  ]));
3085
3084
  }
@@ -3172,14 +3171,14 @@ const ca = {
3172
3171
  },
3173
3172
  emits: ["update:filters", "update:tableContext", "sort", "page"],
3174
3173
  setup(e, { emit: t }) {
3175
- const a = t, i = e, l = _(), n = _([5, 10, 20, 50, 100]), o = _(10), r = _({
3174
+ const a = t, i = e, l = I(), n = I([5, 10, 20, 50, 100]), o = I(10), r = I({
3176
3175
  filters: i.filters,
3177
3176
  perPage: o.value,
3178
3177
  page: 0,
3179
3178
  sortDirection: "None",
3180
3179
  sortField: "",
3181
3180
  total: i.totalRecords ?? i.value.length
3182
- }), p = z(() => i.totalRecords ?? i.value.length), u = z(() => {
3181
+ }), p = z(() => i.totalRecords ?? i.value.length), c = z(() => {
3183
3182
  const g = Math.ceil(p.value / o.value);
3184
3183
  return `${g} ${Q(g, "page")}`;
3185
3184
  }), y = z(() => ({
@@ -3229,7 +3228,7 @@ const ca = {
3229
3228
  m("span", ba, [
3230
3229
  k(g.$slots, "above-table")
3231
3230
  ]),
3232
- x(c(Ee), S({
3231
+ x(u(Ee), S({
3233
3232
  class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
3234
3233
  }, { ...i, ...g.$attrs }, {
3235
3234
  pt: y.value,
@@ -3268,7 +3267,7 @@ const ca = {
3268
3267
  ])) : C("", !0)
3269
3268
  ]),
3270
3269
  m("div", $a, [
3271
- g.showClearButton ? (d(), v(c(q), {
3270
+ g.showClearButton ? (d(), v(u(q), {
3272
3271
  key: 0,
3273
3272
  outlined: "",
3274
3273
  class: B(g.showExporterButton ? "me-2" : ""),
@@ -3276,28 +3275,28 @@ const ca = {
3276
3275
  "data-cy": "clear-all"
3277
3276
  }, {
3278
3277
  default: b(() => [
3279
- x(c(T), {
3278
+ x(u(T), {
3280
3279
  icon: "bi:funnel-fill",
3281
3280
  width: "24",
3282
3281
  height: "24"
3283
3282
  }),
3284
- h[2] || (h[2] = I(" Clear "))
3283
+ h[2] || (h[2] = _(" Clear "))
3285
3284
  ]),
3286
3285
  _: 1
3287
3286
  }, 8, ["class"])) : C("", !0),
3288
- g.showExporterButton ? (d(), v(c(q), {
3287
+ g.showExporterButton ? (d(), v(u(q), {
3289
3288
  key: 1,
3290
3289
  outlined: "",
3291
3290
  onClick: $,
3292
3291
  "data-cy": "exporter"
3293
3292
  }, {
3294
3293
  default: b(() => [
3295
- x(c(T), {
3294
+ x(u(T), {
3296
3295
  icon: "typcn:export",
3297
3296
  width: "24",
3298
3297
  height: "24"
3299
3298
  }),
3300
- h[3] || (h[3] = I(" Export "))
3299
+ h[3] || (h[3] = _(" Export "))
3301
3300
  ]),
3302
3301
  _: 1
3303
3302
  })) : C("", !0),
@@ -3325,7 +3324,7 @@ const ca = {
3325
3324
  "data-cy": "legacy-page-size"
3326
3325
  }, [
3327
3326
  h[4] || (h[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
3328
- x(c(te), {
3327
+ x(u(te), {
3329
3328
  options: n.value,
3330
3329
  modelValue: o.value,
3331
3330
  "onUpdate:modelValue": h[1] || (h[1] = (P) => o.value = P),
@@ -3342,7 +3341,7 @@ const ca = {
3342
3341
  m("span", {
3343
3342
  "data-cy": "legacy-total",
3344
3343
  class: B(i.loading ? "opacity-50" : "")
3345
- }, w(p.value) + " " + w(c(Q)(p.value, "result")) + " across " + w(u.value), 3)
3344
+ }, w(p.value) + " " + w(u(Q)(p.value, "result")) + " across " + w(c.value), 3)
3346
3345
  ]),
3347
3346
  key: "1"
3348
3347
  } : void 0
@@ -3368,8 +3367,8 @@ const ca = {
3368
3367
  if (!l || Array.isArray(l) && l.length === 0)
3369
3368
  return n;
3370
3369
  const o = (r) => {
3371
- var u;
3372
- const p = (u = e.dropdownOptions) == null ? void 0 : u.find(
3370
+ var c;
3371
+ const p = (c = e.dropdownOptions) == null ? void 0 : c.find(
3373
3372
  (y) => e.optionValue ? y[e.optionValue] === r : Object.keys(y).every((s) => r.hasOwnProperty(s) && y[s] === r[s])
3374
3373
  );
3375
3374
  return e.optionLabel ? p[e.optionLabel] : p;
@@ -3392,7 +3391,7 @@ const ca = {
3392
3391
  }, l.$attrs, {
3393
3392
  "show-icon": !1,
3394
3393
  "show-on-focus": !0
3395
- }), null, 16, ["modelValue"])) : l.dataType === "select" ? (d(), v(c(te), S({
3394
+ }), null, 16, ["modelValue"])) : l.dataType === "select" ? (d(), v(u(te), S({
3396
3395
  key: 2,
3397
3396
  modelValue: t.value,
3398
3397
  "onUpdate:modelValue": n[2] || (n[2] = (p) => t.value = p)
@@ -3401,11 +3400,11 @@ const ca = {
3401
3400
  "option-value": l.optionValue,
3402
3401
  "option-label": l.optionLabel
3403
3402
  }), {
3404
- value: b(({ value: p, placeholder: u }) => [
3403
+ value: b(({ value: p, placeholder: c }) => [
3405
3404
  m("div", Ba, [
3406
3405
  m("span", {
3407
3406
  class: B({ "filter-placeholder": p === null })
3408
- }, w(a(p, u)), 3),
3407
+ }, w(a(p, c)), 3),
3409
3408
  l.showClearButton && t.value !== null ? (d(), v(r, {
3410
3409
  key: 0,
3411
3410
  onClick: G(i, ["prevent"]),
@@ -3413,7 +3412,7 @@ const ca = {
3413
3412
  class: "bg-transparent border-0 ms-auto p-0 pe-1"
3414
3413
  }, {
3415
3414
  default: b(() => [
3416
- x(c(T), {
3415
+ x(u(T), {
3417
3416
  icon: "bi:x",
3418
3417
  width: "1rem",
3419
3418
  height: "1rem",
@@ -3425,7 +3424,7 @@ const ca = {
3425
3424
  ])
3426
3425
  ]),
3427
3426
  _: 1
3428
- }, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (d(), v(c(oe), S({
3427
+ }, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (d(), v(u(oe), S({
3429
3428
  key: 3,
3430
3429
  modelValue: t.value,
3431
3430
  "onUpdate:modelValue": n[3] || (n[3] = (p) => t.value = p)
@@ -3435,7 +3434,7 @@ const ca = {
3435
3434
  "option-label": l.optionLabel,
3436
3435
  "option-value": l.optionValue,
3437
3436
  filter: ""
3438
- }), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(), v(c(ne), S({
3437
+ }), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(), v(u(ne), S({
3439
3438
  key: 4,
3440
3439
  modelValue: t.value,
3441
3440
  "onUpdate:modelValue": n[4] || (n[4] = (p) => t.value = p)
@@ -3447,7 +3446,7 @@ const ca = {
3447
3446
  class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
3448
3447
  }, {
3449
3448
  default: b(() => [
3450
- x(c(T), {
3449
+ x(u(T), {
3451
3450
  icon: "bi:x",
3452
3451
  width: "1rem",
3453
3452
  height: "1rem",
@@ -4532,9 +4531,9 @@ class ye {
4532
4531
  const p = r.startsWith("*");
4533
4532
  if (r = p ? r.slice(1) : r, n == null || n.add(r), o && E(this, J, "f").set(i, r), o = !1, p)
4534
4533
  continue;
4535
- const u = E(this, W, "f").get(r);
4536
- if (u && u != i && !a)
4537
- throw new Error(`"${i} -> ${r}" conflicts with "${u} -> ${r}". Pass \`force=true\` to override this definition.`);
4534
+ const c = E(this, W, "f").get(r);
4535
+ if (c && c != i && !a)
4536
+ throw new Error(`"${i} -> ${r}" conflicts with "${c} -> ${r}". Pass \`force=true\` to override this definition.`);
4538
4537
  E(this, W, "f").set(r, i);
4539
4538
  }
4540
4539
  }
@@ -4615,7 +4614,7 @@ function ja() {
4615
4614
  const e = new ye(de, re);
4616
4615
  return e.define({ "application/vnd.ms-outlook": ["pst"] }), e;
4617
4616
  }
4618
- const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disabled", "multiple"], Pa = {
4617
+ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disabled", "multiple"], Pa = {
4619
4618
  class: "text-break accepted-file-types-container",
4620
4619
  id: "accepted-file-types-overlay"
4621
4620
  }, Va = /* @__PURE__ */ F({
@@ -4630,12 +4629,12 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
4630
4629
  }),
4631
4630
  emits: ["update:modelValue"],
4632
4631
  setup(e) {
4633
- const t = D(e, "modelValue"), a = _(), i = (o) => a.value.toggle(o), l = z(() => e.maxFileInput <= t.value.length), n = (o) => {
4632
+ const t = D(e, "modelValue"), a = I(), i = (o) => a.value.toggle(o), l = z(() => e.maxFileInput <= t.value.length), n = (o) => {
4634
4633
  t.value = xe(o, t.value, e.acceptedFileTypes.map((r) => r.fileType), e.maxFileInput);
4635
4634
  };
4636
4635
  return (o, r) => {
4637
4636
  const p = q;
4638
- return d(), f("div", _a, [
4637
+ return d(), f("div", Ia, [
4639
4638
  k(o.$slots, "message"),
4640
4639
  m("div", null, [
4641
4640
  m("input", {
@@ -4645,21 +4644,21 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
4645
4644
  accept: o.acceptedFileTypes.join(", "),
4646
4645
  disabled: l.value,
4647
4646
  multiple: o.maxFileInput > 1,
4648
- onInput: r[0] || (r[0] = (u) => n([...u.target.files]))
4649
- }, null, 40, Ia),
4647
+ onInput: r[0] || (r[0] = (c) => n([...c.target.files]))
4648
+ }, null, 40, _a),
4650
4649
  m("label", {
4651
4650
  class: B([{ disabled: l.value }, "btn btn-primary"]),
4652
4651
  id: "file-input-button",
4653
4652
  for: "file-input"
4654
4653
  }, [
4655
4654
  k(o.$slots, "button-content", {}, () => [
4656
- x(c(T), {
4655
+ x(u(T), {
4657
4656
  icon: "bi:upload",
4658
4657
  class: "me-2",
4659
4658
  height: "20px",
4660
4659
  width: "20px"
4661
4660
  }),
4662
- r[1] || (r[1] = I(" Browse your computer "))
4661
+ r[1] || (r[1] = _(" Browse your computer "))
4663
4662
  ])
4664
4663
  ], 2)
4665
4664
  ]),
@@ -4671,16 +4670,16 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
4671
4670
  onClick: i
4672
4671
  }, {
4673
4672
  default: b(() => r[2] || (r[2] = [
4674
- I("Accepted File Types")
4673
+ _("Accepted File Types")
4675
4674
  ])),
4676
4675
  _: 1
4677
4676
  })) : C("", !0),
4678
- x(c(ve), {
4677
+ x(u(ve), {
4679
4678
  ref_key: "acceptedFilesOverlay",
4680
4679
  ref: a
4681
4680
  }, {
4682
4681
  default: b(() => [
4683
- m("div", Pa, w(o.acceptedFileTypes.map((u) => u.label ?? u.fileType.split("/").pop()).join(", ")), 1)
4682
+ m("div", Pa, w(o.acceptedFileTypes.map((c) => c.label ?? c.fileType.split("/").pop()).join(", ")), 1)
4684
4683
  ]),
4685
4684
  _: 1
4686
4685
  }, 512)
@@ -4706,7 +4705,7 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
4706
4705
  }),
4707
4706
  emits: ["update:modelValue"],
4708
4707
  setup(e) {
4709
- const t = D(e, "modelValue"), a = _(!1), i = z(() => e.maxFileInput <= t.value.length), l = (n) => {
4708
+ const t = D(e, "modelValue"), a = I(!1), i = z(() => e.maxFileInput <= t.value.length), l = (n) => {
4710
4709
  a.value = !1, n.dataTransfer.files.length > e.maxFileInput || i.value ? n.preventDefault() : t.value = xe([...n.dataTransfer.files], t.value, e.acceptedFileTypes.map((o) => o.fileType), e.maxFileSize);
4711
4710
  };
4712
4711
  return (n, o) => (d(), f("div", {
@@ -4717,13 +4716,13 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
4717
4716
  onDrop: G(l, ["prevent"])
4718
4717
  }, [
4719
4718
  t.value.length === 0 ? (d(), f("div", Ma, [
4720
- x(c(T), {
4719
+ x(u(T), {
4721
4720
  icon: "bi:upload",
4722
4721
  class: "me-2",
4723
4722
  height: "20px",
4724
4723
  width: "20px"
4725
4724
  }),
4726
- o[2] || (o[2] = I(" Drag and drop files here "))
4725
+ o[2] || (o[2] = _(" Drag and drop files here "))
4727
4726
  ])) : (d(), f("div", Da, [
4728
4727
  k(n.$slots, "default")
4729
4728
  ]))
@@ -4762,7 +4761,7 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
4762
4761
  striped: ""
4763
4762
  }, {
4764
4763
  default: b(() => [
4765
- I(w((i.bytesUploaded / i.fileSize * 100).toFixed(0)) + "%", 1)
4764
+ _(w((i.bytesUploaded / i.fileSize * 100).toFixed(0)) + "%", 1)
4766
4765
  ]),
4767
4766
  _: 1
4768
4767
  })) : C("", !0),
@@ -4773,7 +4772,7 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
4773
4772
  class: "mb-0 w-75 ms-auto"
4774
4773
  }, {
4775
4774
  default: b(() => [
4776
- I(w(a.value), 1)
4775
+ _(w(a.value), 1)
4777
4776
  ]),
4778
4777
  _: 1
4779
4778
  }, 8, ["severity"])) : C("", !0)
@@ -4807,7 +4806,7 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
4807
4806
  }),
4808
4807
  emits: /* @__PURE__ */ N(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
4809
4808
  setup(e, { emit: t }) {
4810
- const a = D(e, "file"), i = D(e, "blobFileName"), l = D(e, "uploadStatus"), n = t, o = _(a.value.name), r = _(""), p = _(0), u = _(), y = z(() => e.acceptedFileTypes.some(({ fileType: g }) => g === a.value.type)), s = z(() => a.value.size <= e.maxFileSize), $ = z(() => a.value.type ? a.value.type : ja().getType(a.value.name)), j = () => {
4809
+ const a = D(e, "file"), i = D(e, "blobFileName"), l = D(e, "uploadStatus"), n = t, o = I(a.value.name), r = I(""), p = I(0), c = I(), y = z(() => e.acceptedFileTypes.some(({ fileType: g }) => g === a.value.type)), s = z(() => a.value.size <= e.maxFileSize), $ = z(() => a.value.type ? a.value.type : ja().getType(a.value.name)), j = () => {
4811
4810
  o.value != null && (V(), a.value = new File([a.value], o.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
4812
4811
  }, V = () => {
4813
4812
  let g = o.value.split("."), h = Sa.getExtension($.value), P = o.value.split(".").pop();
@@ -4817,7 +4816,7 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
4817
4816
  l.value = y.value ? "InvalidFileSize" : "InvalidFileType";
4818
4817
  return;
4819
4818
  }
4820
- l.value = "Preparing", u.value = new AbortController();
4819
+ l.value = "Preparing", c.value = new AbortController();
4821
4820
  const [g, h] = await e.getFileUrlAction(a.value.name);
4822
4821
  if (!g) {
4823
4822
  l.value = "Failed";
@@ -4826,7 +4825,7 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
4826
4825
  try {
4827
4826
  l.value = "Uploading";
4828
4827
  const P = new me(g), L = {
4829
- abortSignal: u.value.signal,
4828
+ abortSignal: c.value.signal,
4830
4829
  onProgress: (ae) => p.value = ae.loadedBytes,
4831
4830
  blobHTTPHeaders: {
4832
4831
  blobContentType: $.value,
@@ -4854,15 +4853,15 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
4854
4853
  "data-cy": `file-info-${a.value.name}`
4855
4854
  }, [
4856
4855
  m("div", null, [
4857
- c(za)(a.value.type) ? (d(), v(c(Le), {
4856
+ u(za)(a.value.type) ? (d(), v(u(Le), {
4858
4857
  key: 0,
4859
4858
  id: "thumbnail-image",
4860
4859
  "image-class": "image-file-thumbnail border",
4861
- src: c(Ta)(a.value),
4860
+ src: u(Ta)(a.value),
4862
4861
  alt: a.value.name,
4863
4862
  width: "75px",
4864
4863
  preview: ""
4865
- }, null, 8, ["src", "alt"])) : (d(), v(c(T), {
4864
+ }, null, 8, ["src", "alt"])) : (d(), v(u(T), {
4866
4865
  key: 1,
4867
4866
  id: "file-earmark",
4868
4867
  icon: "bi:file-earmark",
@@ -4883,7 +4882,7 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
4883
4882
  }, null, 8, ["modelValue", "rules", "name"])) : (d(), f("span", Ea, w(o.value), 1))
4884
4883
  ]),
4885
4884
  m("span", La, "File type: " + w(a.value.type.split("/").pop()), 1),
4886
- m("span", Ra, "File size: " + w(c(pe)(a.value.size)), 1)
4885
+ m("span", Ra, "File size: " + w(u(pe)(a.value.size)), 1)
4887
4886
  ]),
4888
4887
  m("div", Ha, [
4889
4888
  (d(), v(Ua, {
@@ -4899,7 +4898,7 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
4899
4898
  onClick: M
4900
4899
  }, {
4901
4900
  default: b(() => [
4902
- x(c(T), {
4901
+ x(u(T), {
4903
4902
  icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
4904
4903
  }, null, 8, ["icon"])
4905
4904
  ]),
@@ -4908,10 +4907,10 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
4908
4907
  l.value === "Uploading" ? (d(), v(P, {
4909
4908
  key: 1,
4910
4909
  link: "",
4911
- onClick: h[1] || (h[1] = (L) => u.value.value.abort())
4910
+ onClick: h[1] || (h[1] = (L) => c.value.value.abort())
4912
4911
  }, {
4913
4912
  default: b(() => [
4914
- x(c(T), { icon: "bi:x-circle-fill" })
4913
+ x(u(T), { icon: "bi:x-circle-fill" })
4915
4914
  ]),
4916
4915
  _: 1
4917
4916
  })) : (d(), v(P, {
@@ -4921,7 +4920,7 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
4921
4920
  id: "delete-button"
4922
4921
  }, {
4923
4922
  default: b(() => [
4924
- x(c(T), { icon: "bi:trash" })
4923
+ x(u(T), { icon: "bi:trash" })
4925
4924
  ]),
4926
4925
  _: 1
4927
4926
  }))
@@ -4936,7 +4935,7 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
4936
4935
  },
4937
4936
  setup(e) {
4938
4937
  return (t, a) => (d(), f("div", Ya, [
4939
- m("div", Ga, "Max file size: " + w(c(pe)(t.maxFileSize)), 1)
4938
+ m("div", Ga, "Max file size: " + w(u(pe)(t.maxFileSize)), 1)
4940
4939
  ]));
4941
4940
  }
4942
4941
  }), Ka = { "data-cy": "file-uploader" }, Za = { key: 0 }, tl = /* @__PURE__ */ F({
@@ -5003,22 +5002,22 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
5003
5002
  },
5004
5003
  emits: ["update:modelValue"],
5005
5004
  setup(e) {
5006
- const t = D(e, "modelValue"), a = _(), i = _(!1), l = (n) => {
5005
+ const t = D(e, "modelValue"), a = I(), i = I(!1), l = (n) => {
5007
5006
  a.value.toggle(n);
5008
5007
  };
5009
5008
  return (n, o) => (d(), f(O, null, [
5010
- x(c(q), {
5009
+ x(u(q), {
5011
5010
  onClick: l,
5012
5011
  class: "ms-2"
5013
5012
  }, {
5014
5013
  default: b(() => [
5015
5014
  m("div", Xa, [
5016
5015
  m("div", Qa, [
5017
- x(c(T), { icon: "bi:layout-three-columns" })
5016
+ x(u(T), { icon: "bi:layout-three-columns" })
5018
5017
  ]),
5019
- I(" Columns (" + w(t.value.filter((r) => r.selected).length ?? 0) + "/" + w(t.value.length ?? 0) + ") ", 1),
5018
+ _(" Columns (" + w(t.value.filter((r) => r.selected).length ?? 0) + "/" + w(t.value.length ?? 0) + ") ", 1),
5020
5019
  m("div", ei, [
5021
- x(c(T), {
5020
+ x(u(T), {
5022
5021
  icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
5023
5022
  }, null, 8, ["icon"])
5024
5023
  ])
@@ -5026,7 +5025,7 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
5026
5025
  ]),
5027
5026
  _: 1
5028
5027
  }),
5029
- x(c(ve), {
5028
+ x(u(ve), {
5030
5029
  ref_key: "columnCustomiserPanel",
5031
5030
  ref: a,
5032
5031
  class: "column-customiser",
@@ -5046,7 +5045,7 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
5046
5045
  x(fe, {
5047
5046
  id: r.field,
5048
5047
  modelValue: r.selected,
5049
- "onUpdate:modelValue": (u) => r.selected = u,
5048
+ "onUpdate:modelValue": (c) => r.selected = c,
5050
5049
  binary: "",
5051
5050
  class: "cursor-pointer",
5052
5051
  label: r.header
@@ -5065,12 +5064,12 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
5065
5064
  const i = Re;
5066
5065
  return d(), v(i, K(Z({ ...t.$attrs })), {
5067
5066
  toggleicon: b(({ collapsed: l }) => [
5068
- l ? (d(), v(c(T), {
5067
+ l ? (d(), v(u(T), {
5069
5068
  key: 0,
5070
5069
  "data-cy": "message-icon",
5071
5070
  icon: "bi:chevron-down"
5072
5071
  })) : C("", !0),
5073
- l ? C("", !0) : (d(), v(c(T), {
5072
+ l ? C("", !0) : (d(), v(u(T), {
5074
5073
  key: 1,
5075
5074
  "data-cy": "message-icon",
5076
5075
  icon: "bi:chevron-up"
@@ -5109,7 +5108,7 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
5109
5108
  ]
5110
5109
  })
5111
5110
  }));
5112
- return (i, l) => (d(), v(c(He), S({ ...i.$attrs, ...t }, {
5111
+ return (i, l) => (d(), v(u(He), S({ ...i.$attrs, ...t }, {
5113
5112
  severity: t.severity,
5114
5113
  pt: a.value
5115
5114
  }), null, 16, ["severity", "pt"]));
@@ -5136,11 +5135,11 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
5136
5135
  }), o.selected = !o.selected, i("change", o));
5137
5136
  };
5138
5137
  return (o, r) => (d(), f("div", ii, [
5139
- (d(!0), f(O, null, A(l.value, (p, u) => (d(), v(ai, {
5138
+ (d(!0), f(O, null, A(l.value, (p, c) => (d(), v(ai, {
5140
5139
  onLabel: p.label,
5141
5140
  offLabel: p.label,
5142
5141
  severity: p.severity,
5143
- key: u,
5142
+ key: c,
5144
5143
  onChange: (y) => n(p),
5145
5144
  defaultValue: p.selected,
5146
5145
  disabled: p.disabled,
@@ -5191,5 +5190,5 @@ export {
5191
5190
  ai as ForgeToggleButton,
5192
5191
  qi as convertToMultiSelectOption,
5193
5192
  Ai as enumToMultiSelectList,
5194
- _t as parseError
5193
+ It as parseError
5195
5194
  };
@@ -4,11 +4,10 @@ declare const _default: {
4
4
  root: () => {
5
5
  class: string[];
6
6
  };
7
- input: ({ context, state }: CheckboxPassThroughMethodOptions) => {
7
+ input: ({ context, props }: CheckboxPassThroughMethodOptions) => {
8
8
  class: (string | {
9
9
  "bg-primary": boolean;
10
10
  "cursor-pointer": boolean;
11
- "form-check-input__focus": any;
12
11
  })[];
13
12
  };
14
13
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@3squared/forge-ui-3",
3
3
  "repository": "https://github.com/3Squared/ForgeUI-3",
4
4
  "description": "ForgeUI 3 is Vue 3 UI Library which combines a variety of popular packages to create a consistent UI for your application.",
5
- "version": "2.8.0",
5
+ "version": "2.8.1",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "contributors": [