@3squared/forge-ui-3 2.8.0 → 2.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,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;
@@ -3384,7 +3383,8 @@ const ca = {
3384
3383
  l.dataType === "numeric" ? (d(), v(o, S({
3385
3384
  key: 0,
3386
3385
  modelValue: t.value,
3387
- "onUpdate:modelValue": n[0] || (n[0] = (p) => t.value = p)
3386
+ "onUpdate:modelValue": n[0] || (n[0] = (p) => t.value = p),
3387
+ modelModifiers: { trim: !0 }
3388
3388
  }, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (d(), v(be, S({
3389
3389
  key: 1,
3390
3390
  modelValue: t.value,
@@ -3392,7 +3392,7 @@ const ca = {
3392
3392
  }, l.$attrs, {
3393
3393
  "show-icon": !1,
3394
3394
  "show-on-focus": !0
3395
- }), null, 16, ["modelValue"])) : l.dataType === "select" ? (d(), v(c(te), S({
3395
+ }), null, 16, ["modelValue"])) : l.dataType === "select" ? (d(), v(u(te), S({
3396
3396
  key: 2,
3397
3397
  modelValue: t.value,
3398
3398
  "onUpdate:modelValue": n[2] || (n[2] = (p) => t.value = p)
@@ -3401,11 +3401,11 @@ const ca = {
3401
3401
  "option-value": l.optionValue,
3402
3402
  "option-label": l.optionLabel
3403
3403
  }), {
3404
- value: b(({ value: p, placeholder: u }) => [
3404
+ value: b(({ value: p, placeholder: c }) => [
3405
3405
  m("div", Ba, [
3406
3406
  m("span", {
3407
3407
  class: B({ "filter-placeholder": p === null })
3408
- }, w(a(p, u)), 3),
3408
+ }, w(a(p, c)), 3),
3409
3409
  l.showClearButton && t.value !== null ? (d(), v(r, {
3410
3410
  key: 0,
3411
3411
  onClick: G(i, ["prevent"]),
@@ -3413,7 +3413,7 @@ const ca = {
3413
3413
  class: "bg-transparent border-0 ms-auto p-0 pe-1"
3414
3414
  }, {
3415
3415
  default: b(() => [
3416
- x(c(T), {
3416
+ x(u(T), {
3417
3417
  icon: "bi:x",
3418
3418
  width: "1rem",
3419
3419
  height: "1rem",
@@ -3425,7 +3425,7 @@ const ca = {
3425
3425
  ])
3426
3426
  ]),
3427
3427
  _: 1
3428
- }, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (d(), v(c(oe), S({
3428
+ }, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (d(), v(u(oe), S({
3429
3429
  key: 3,
3430
3430
  modelValue: t.value,
3431
3431
  "onUpdate:modelValue": n[3] || (n[3] = (p) => t.value = p)
@@ -3435,10 +3435,11 @@ const ca = {
3435
3435
  "option-label": l.optionLabel,
3436
3436
  "option-value": l.optionValue,
3437
3437
  filter: ""
3438
- }), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(), v(c(ne), S({
3438
+ }), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(), v(u(ne), S({
3439
3439
  key: 4,
3440
3440
  modelValue: t.value,
3441
- "onUpdate:modelValue": n[4] || (n[4] = (p) => t.value = p)
3441
+ "onUpdate:modelValue": n[4] || (n[4] = (p) => t.value = p),
3442
+ modelModifiers: { trim: !0 }
3442
3443
  }, l.$attrs), null, 16, ["modelValue"])),
3443
3444
  l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (d(), v(r, {
3444
3445
  key: 5,
@@ -3447,7 +3448,7 @@ const ca = {
3447
3448
  class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
3448
3449
  }, {
3449
3450
  default: b(() => [
3450
- x(c(T), {
3451
+ x(u(T), {
3451
3452
  icon: "bi:x",
3452
3453
  width: "1rem",
3453
3454
  height: "1rem",
@@ -4532,9 +4533,9 @@ class ye {
4532
4533
  const p = r.startsWith("*");
4533
4534
  if (r = p ? r.slice(1) : r, n == null || n.add(r), o && E(this, J, "f").set(i, r), o = !1, p)
4534
4535
  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.`);
4536
+ const c = E(this, W, "f").get(r);
4537
+ if (c && c != i && !a)
4538
+ throw new Error(`"${i} -> ${r}" conflicts with "${c} -> ${r}". Pass \`force=true\` to override this definition.`);
4538
4539
  E(this, W, "f").set(r, i);
4539
4540
  }
4540
4541
  }
@@ -4615,7 +4616,7 @@ function ja() {
4615
4616
  const e = new ye(de, re);
4616
4617
  return e.define({ "application/vnd.ms-outlook": ["pst"] }), e;
4617
4618
  }
4618
- const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disabled", "multiple"], Pa = {
4619
+ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disabled", "multiple"], Pa = {
4619
4620
  class: "text-break accepted-file-types-container",
4620
4621
  id: "accepted-file-types-overlay"
4621
4622
  }, Va = /* @__PURE__ */ F({
@@ -4630,12 +4631,12 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
4630
4631
  }),
4631
4632
  emits: ["update:modelValue"],
4632
4633
  setup(e) {
4633
- const t = D(e, "modelValue"), a = _(), i = (o) => a.value.toggle(o), l = z(() => e.maxFileInput <= t.value.length), n = (o) => {
4634
+ const t = D(e, "modelValue"), a = I(), i = (o) => a.value.toggle(o), l = z(() => e.maxFileInput <= t.value.length), n = (o) => {
4634
4635
  t.value = xe(o, t.value, e.acceptedFileTypes.map((r) => r.fileType), e.maxFileInput);
4635
4636
  };
4636
4637
  return (o, r) => {
4637
4638
  const p = q;
4638
- return d(), f("div", _a, [
4639
+ return d(), f("div", Ia, [
4639
4640
  k(o.$slots, "message"),
4640
4641
  m("div", null, [
4641
4642
  m("input", {
@@ -4645,21 +4646,21 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
4645
4646
  accept: o.acceptedFileTypes.join(", "),
4646
4647
  disabled: l.value,
4647
4648
  multiple: o.maxFileInput > 1,
4648
- onInput: r[0] || (r[0] = (u) => n([...u.target.files]))
4649
- }, null, 40, Ia),
4649
+ onInput: r[0] || (r[0] = (c) => n([...c.target.files]))
4650
+ }, null, 40, _a),
4650
4651
  m("label", {
4651
4652
  class: B([{ disabled: l.value }, "btn btn-primary"]),
4652
4653
  id: "file-input-button",
4653
4654
  for: "file-input"
4654
4655
  }, [
4655
4656
  k(o.$slots, "button-content", {}, () => [
4656
- x(c(T), {
4657
+ x(u(T), {
4657
4658
  icon: "bi:upload",
4658
4659
  class: "me-2",
4659
4660
  height: "20px",
4660
4661
  width: "20px"
4661
4662
  }),
4662
- r[1] || (r[1] = I(" Browse your computer "))
4663
+ r[1] || (r[1] = _(" Browse your computer "))
4663
4664
  ])
4664
4665
  ], 2)
4665
4666
  ]),
@@ -4671,16 +4672,16 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
4671
4672
  onClick: i
4672
4673
  }, {
4673
4674
  default: b(() => r[2] || (r[2] = [
4674
- I("Accepted File Types")
4675
+ _("Accepted File Types")
4675
4676
  ])),
4676
4677
  _: 1
4677
4678
  })) : C("", !0),
4678
- x(c(ve), {
4679
+ x(u(ve), {
4679
4680
  ref_key: "acceptedFilesOverlay",
4680
4681
  ref: a
4681
4682
  }, {
4682
4683
  default: b(() => [
4683
- m("div", Pa, w(o.acceptedFileTypes.map((u) => u.label ?? u.fileType.split("/").pop()).join(", ")), 1)
4684
+ m("div", Pa, w(o.acceptedFileTypes.map((c) => c.label ?? c.fileType.split("/").pop()).join(", ")), 1)
4684
4685
  ]),
4685
4686
  _: 1
4686
4687
  }, 512)
@@ -4706,7 +4707,7 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
4706
4707
  }),
4707
4708
  emits: ["update:modelValue"],
4708
4709
  setup(e) {
4709
- const t = D(e, "modelValue"), a = _(!1), i = z(() => e.maxFileInput <= t.value.length), l = (n) => {
4710
+ const t = D(e, "modelValue"), a = I(!1), i = z(() => e.maxFileInput <= t.value.length), l = (n) => {
4710
4711
  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
4712
  };
4712
4713
  return (n, o) => (d(), f("div", {
@@ -4717,13 +4718,13 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
4717
4718
  onDrop: G(l, ["prevent"])
4718
4719
  }, [
4719
4720
  t.value.length === 0 ? (d(), f("div", Ma, [
4720
- x(c(T), {
4721
+ x(u(T), {
4721
4722
  icon: "bi:upload",
4722
4723
  class: "me-2",
4723
4724
  height: "20px",
4724
4725
  width: "20px"
4725
4726
  }),
4726
- o[2] || (o[2] = I(" Drag and drop files here "))
4727
+ o[2] || (o[2] = _(" Drag and drop files here "))
4727
4728
  ])) : (d(), f("div", Da, [
4728
4729
  k(n.$slots, "default")
4729
4730
  ]))
@@ -4762,7 +4763,7 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
4762
4763
  striped: ""
4763
4764
  }, {
4764
4765
  default: b(() => [
4765
- I(w((i.bytesUploaded / i.fileSize * 100).toFixed(0)) + "%", 1)
4766
+ _(w((i.bytesUploaded / i.fileSize * 100).toFixed(0)) + "%", 1)
4766
4767
  ]),
4767
4768
  _: 1
4768
4769
  })) : C("", !0),
@@ -4773,7 +4774,7 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
4773
4774
  class: "mb-0 w-75 ms-auto"
4774
4775
  }, {
4775
4776
  default: b(() => [
4776
- I(w(a.value), 1)
4777
+ _(w(a.value), 1)
4777
4778
  ]),
4778
4779
  _: 1
4779
4780
  }, 8, ["severity"])) : C("", !0)
@@ -4807,7 +4808,7 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
4807
4808
  }),
4808
4809
  emits: /* @__PURE__ */ N(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
4809
4810
  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 = () => {
4811
+ 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
4812
  o.value != null && (V(), a.value = new File([a.value], o.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
4812
4813
  }, V = () => {
4813
4814
  let g = o.value.split("."), h = Sa.getExtension($.value), P = o.value.split(".").pop();
@@ -4817,7 +4818,7 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
4817
4818
  l.value = y.value ? "InvalidFileSize" : "InvalidFileType";
4818
4819
  return;
4819
4820
  }
4820
- l.value = "Preparing", u.value = new AbortController();
4821
+ l.value = "Preparing", c.value = new AbortController();
4821
4822
  const [g, h] = await e.getFileUrlAction(a.value.name);
4822
4823
  if (!g) {
4823
4824
  l.value = "Failed";
@@ -4826,7 +4827,7 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
4826
4827
  try {
4827
4828
  l.value = "Uploading";
4828
4829
  const P = new me(g), L = {
4829
- abortSignal: u.value.signal,
4830
+ abortSignal: c.value.signal,
4830
4831
  onProgress: (ae) => p.value = ae.loadedBytes,
4831
4832
  blobHTTPHeaders: {
4832
4833
  blobContentType: $.value,
@@ -4854,15 +4855,15 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
4854
4855
  "data-cy": `file-info-${a.value.name}`
4855
4856
  }, [
4856
4857
  m("div", null, [
4857
- c(za)(a.value.type) ? (d(), v(c(Le), {
4858
+ u(za)(a.value.type) ? (d(), v(u(Le), {
4858
4859
  key: 0,
4859
4860
  id: "thumbnail-image",
4860
4861
  "image-class": "image-file-thumbnail border",
4861
- src: c(Ta)(a.value),
4862
+ src: u(Ta)(a.value),
4862
4863
  alt: a.value.name,
4863
4864
  width: "75px",
4864
4865
  preview: ""
4865
- }, null, 8, ["src", "alt"])) : (d(), v(c(T), {
4866
+ }, null, 8, ["src", "alt"])) : (d(), v(u(T), {
4866
4867
  key: 1,
4867
4868
  id: "file-earmark",
4868
4869
  icon: "bi:file-earmark",
@@ -4883,7 +4884,7 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
4883
4884
  }, null, 8, ["modelValue", "rules", "name"])) : (d(), f("span", Ea, w(o.value), 1))
4884
4885
  ]),
4885
4886
  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)
4887
+ m("span", Ra, "File size: " + w(u(pe)(a.value.size)), 1)
4887
4888
  ]),
4888
4889
  m("div", Ha, [
4889
4890
  (d(), v(Ua, {
@@ -4899,7 +4900,7 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
4899
4900
  onClick: M
4900
4901
  }, {
4901
4902
  default: b(() => [
4902
- x(c(T), {
4903
+ x(u(T), {
4903
4904
  icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
4904
4905
  }, null, 8, ["icon"])
4905
4906
  ]),
@@ -4908,10 +4909,10 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
4908
4909
  l.value === "Uploading" ? (d(), v(P, {
4909
4910
  key: 1,
4910
4911
  link: "",
4911
- onClick: h[1] || (h[1] = (L) => u.value.value.abort())
4912
+ onClick: h[1] || (h[1] = (L) => c.value.value.abort())
4912
4913
  }, {
4913
4914
  default: b(() => [
4914
- x(c(T), { icon: "bi:x-circle-fill" })
4915
+ x(u(T), { icon: "bi:x-circle-fill" })
4915
4916
  ]),
4916
4917
  _: 1
4917
4918
  })) : (d(), v(P, {
@@ -4921,7 +4922,7 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
4921
4922
  id: "delete-button"
4922
4923
  }, {
4923
4924
  default: b(() => [
4924
- x(c(T), { icon: "bi:trash" })
4925
+ x(u(T), { icon: "bi:trash" })
4925
4926
  ]),
4926
4927
  _: 1
4927
4928
  }))
@@ -4936,7 +4937,7 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
4936
4937
  },
4937
4938
  setup(e) {
4938
4939
  return (t, a) => (d(), f("div", Ya, [
4939
- m("div", Ga, "Max file size: " + w(c(pe)(t.maxFileSize)), 1)
4940
+ m("div", Ga, "Max file size: " + w(u(pe)(t.maxFileSize)), 1)
4940
4941
  ]));
4941
4942
  }
4942
4943
  }), Ka = { "data-cy": "file-uploader" }, Za = { key: 0 }, tl = /* @__PURE__ */ F({
@@ -5003,22 +5004,22 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
5003
5004
  },
5004
5005
  emits: ["update:modelValue"],
5005
5006
  setup(e) {
5006
- const t = D(e, "modelValue"), a = _(), i = _(!1), l = (n) => {
5007
+ const t = D(e, "modelValue"), a = I(), i = I(!1), l = (n) => {
5007
5008
  a.value.toggle(n);
5008
5009
  };
5009
5010
  return (n, o) => (d(), f(O, null, [
5010
- x(c(q), {
5011
+ x(u(q), {
5011
5012
  onClick: l,
5012
5013
  class: "ms-2"
5013
5014
  }, {
5014
5015
  default: b(() => [
5015
5016
  m("div", Xa, [
5016
5017
  m("div", Qa, [
5017
- x(c(T), { icon: "bi:layout-three-columns" })
5018
+ x(u(T), { icon: "bi:layout-three-columns" })
5018
5019
  ]),
5019
- I(" Columns (" + w(t.value.filter((r) => r.selected).length ?? 0) + "/" + w(t.value.length ?? 0) + ") ", 1),
5020
+ _(" Columns (" + w(t.value.filter((r) => r.selected).length ?? 0) + "/" + w(t.value.length ?? 0) + ") ", 1),
5020
5021
  m("div", ei, [
5021
- x(c(T), {
5022
+ x(u(T), {
5022
5023
  icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
5023
5024
  }, null, 8, ["icon"])
5024
5025
  ])
@@ -5026,7 +5027,7 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
5026
5027
  ]),
5027
5028
  _: 1
5028
5029
  }),
5029
- x(c(ve), {
5030
+ x(u(ve), {
5030
5031
  ref_key: "columnCustomiserPanel",
5031
5032
  ref: a,
5032
5033
  class: "column-customiser",
@@ -5046,7 +5047,7 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
5046
5047
  x(fe, {
5047
5048
  id: r.field,
5048
5049
  modelValue: r.selected,
5049
- "onUpdate:modelValue": (u) => r.selected = u,
5050
+ "onUpdate:modelValue": (c) => r.selected = c,
5050
5051
  binary: "",
5051
5052
  class: "cursor-pointer",
5052
5053
  label: r.header
@@ -5065,12 +5066,12 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
5065
5066
  const i = Re;
5066
5067
  return d(), v(i, K(Z({ ...t.$attrs })), {
5067
5068
  toggleicon: b(({ collapsed: l }) => [
5068
- l ? (d(), v(c(T), {
5069
+ l ? (d(), v(u(T), {
5069
5070
  key: 0,
5070
5071
  "data-cy": "message-icon",
5071
5072
  icon: "bi:chevron-down"
5072
5073
  })) : C("", !0),
5073
- l ? C("", !0) : (d(), v(c(T), {
5074
+ l ? C("", !0) : (d(), v(u(T), {
5074
5075
  key: 1,
5075
5076
  "data-cy": "message-icon",
5076
5077
  icon: "bi:chevron-up"
@@ -5109,7 +5110,7 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
5109
5110
  ]
5110
5111
  })
5111
5112
  }));
5112
- return (i, l) => (d(), v(c(He), S({ ...i.$attrs, ...t }, {
5113
+ return (i, l) => (d(), v(u(He), S({ ...i.$attrs, ...t }, {
5113
5114
  severity: t.severity,
5114
5115
  pt: a.value
5115
5116
  }), null, 16, ["severity", "pt"]));
@@ -5136,11 +5137,11 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
5136
5137
  }), o.selected = !o.selected, i("change", o));
5137
5138
  };
5138
5139
  return (o, r) => (d(), f("div", ii, [
5139
- (d(!0), f(O, null, A(l.value, (p, u) => (d(), v(ai, {
5140
+ (d(!0), f(O, null, A(l.value, (p, c) => (d(), v(ai, {
5140
5141
  onLabel: p.label,
5141
5142
  offLabel: p.label,
5142
5143
  severity: p.severity,
5143
- key: u,
5144
+ key: c,
5144
5145
  onChange: (y) => n(p),
5145
5146
  defaultValue: p.selected,
5146
5147
  disabled: p.disabled,
@@ -5191,5 +5192,5 @@ export {
5191
5192
  ai as ForgeToggleButton,
5192
5193
  qi as convertToMultiSelectOption,
5193
5194
  Ai as enumToMultiSelectList,
5194
- _t as parseError
5195
+ It as parseError
5195
5196
  };
@@ -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.2",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "contributors": [
@@ -49,19 +49,19 @@
49
49
  "@cypress/code-coverage": "3.13.11",
50
50
  "@primevue/auto-import-resolver": "4.2.5",
51
51
  "@vitejs/plugin-vue": "5.2.1",
52
- "@vitest/coverage-v8": "3.0.5",
53
- "@vitest/ui": "3.0.5",
52
+ "@vitest/coverage-v8": "3.0.6",
53
+ "@vitest/ui": "3.0.6",
54
54
  "cypress": "14.0.3",
55
55
  "cypress-real-events": "1.14.0",
56
56
  "rollup-plugin-visualizer": "5.14.0",
57
57
  "sass": "1.85.0",
58
58
  "typescript": "5.7.3",
59
- "unplugin-vue-components": "28.1.0",
59
+ "unplugin-vue-components": "28.2.0",
60
60
  "vite": "6.1.0",
61
61
  "vite-bundle-visualizer": "1.2.1",
62
62
  "vite-plugin-dts": "4.5.0",
63
63
  "vite-plugin-istanbul": "7.0.0",
64
- "vitest": "3.0.5",
64
+ "vitest": "3.0.6",
65
65
  "vue-drawing-canvas": "1.0.14"
66
66
  },
67
67
  "optionalDependencies": {