@3squared/forge-ui-3 2.15.0 → 2.16.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,12 +1,12 @@
1
1
  import Be from "primevue/message";
2
- import { defineComponent as S, openBlock as r, createBlock as b, normalizeProps as W, guardReactiveProps as G, withCtx as f, createElementVNode as m, normalizeClass as F, unref as u, createCommentVNode as C, createVNode as h, renderSlot as k, ref as P, createElementBlock as v, Fragment as A, mergeProps as _, renderList as E, mergeModels as R, useModel as N, computed as z, createTextVNode as M, toDisplayString as B, withDirectives as J, vShow as Z, createSlots as ae, onMounted as ne, isRef as Fe, withKeys as le, normalizeStyle as Se, withModifiers as X, watch as te, h as Ce, useTemplateRef as ze } from "vue";
3
- import { Icon as j } from "@iconify/vue";
2
+ import { defineComponent as S, openBlock as r, createBlock as y, normalizeProps as W, guardReactiveProps as G, withCtx as f, createElementVNode as m, normalizeClass as F, unref as u, createCommentVNode as C, createVNode as h, renderSlot as k, ref as j, createElementBlock as v, Fragment as A, mergeProps as P, renderList as E, mergeModels as R, useModel as N, computed as z, createTextVNode as M, toDisplayString as B, withDirectives as J, vShow as Z, createSlots as ae, onMounted as ne, isRef as Fe, withKeys as le, normalizeStyle as Se, withModifiers as X, watch as Q, h as Ce, useTemplateRef as ze } from "vue";
3
+ import { Icon as _ } from "@iconify/vue";
4
4
  import q from "primevue/button";
5
5
  import Te from "primevue/toast";
6
- import _e from "primevue/autocomplete";
7
- import je from "primevue/checkbox";
6
+ import Pe from "primevue/autocomplete";
7
+ import _e from "primevue/checkbox";
8
8
  import { useField as oe } from "vee-validate";
9
- import Pe from "primevue/progressspinner";
9
+ import je from "primevue/progressspinner";
10
10
  import Ie from "primevue/dialog";
11
11
  import se from "primevue/inputtext";
12
12
  import { vOnClickOutside as Me } from "@vueuse/components";
@@ -229,7 +229,7 @@ const Xe = {
229
229
  filterIcon: "d-none",
230
230
  label: ({ instance: e }) => ({
231
231
  class: [
232
- "w-100",
232
+ "w-100 ellipsis-overflow",
233
233
  {
234
234
  "filter-placeholder": e.modelValue === void 0
235
235
  }
@@ -1066,7 +1066,7 @@ const Xe = {
1066
1066
  pcFilterContainer: { root: "dropdown-item" },
1067
1067
  filterIcon: "d-none"
1068
1068
  }
1069
- }, _t = {
1069
+ }, Pt = {
1070
1070
  treeSelect: {
1071
1071
  root: ({ props: e }) => ({
1072
1072
  class: [
@@ -1078,8 +1078,8 @@ const Xe = {
1078
1078
  }),
1079
1079
  dropdown: "d-none",
1080
1080
  panel: "dropdown-menu overflow-y-auto show",
1081
- labelContainer: "w-100 me-2",
1082
- label: "w-100 d-flex ellipsis-overflow",
1081
+ labelContainer: "w-100 me-2 d-flex ellipsis-overflow",
1082
+ label: ({ props: e }) => ({ class: ["w-100 ellipsis-overflow", { "d-flex": e.display == "chip" }] }),
1083
1083
  clearIcon: "ms-auto my-auto",
1084
1084
  header: "p-2 w-100",
1085
1085
  pcTree: {
@@ -1088,7 +1088,7 @@ const Xe = {
1088
1088
  class: [
1089
1089
  "btn py-0 px-1",
1090
1090
  {
1091
- invisible: e.leaf
1091
+ "d-none": e.leaf
1092
1092
  }
1093
1093
  ]
1094
1094
  }),
@@ -1114,7 +1114,7 @@ const Xe = {
1114
1114
  filterIcon: "d-none"
1115
1115
  }
1116
1116
  }
1117
- }, jt = {
1117
+ }, _t = {
1118
1118
  fieldset: {
1119
1119
  root: () => ({
1120
1120
  class: [
@@ -1140,7 +1140,7 @@ const Xe = {
1140
1140
  ]
1141
1141
  })
1142
1142
  }
1143
- }, Pt = {
1143
+ }, jt = {
1144
1144
  accordionPanel: {
1145
1145
  root: "card my-2"
1146
1146
  },
@@ -1210,10 +1210,10 @@ const Xe = {
1210
1210
  ...mt,
1211
1211
  ...zt,
1212
1212
  ...st,
1213
- ...jt,
1214
1213
  ..._t,
1215
- ...Tt,
1216
1214
  ...Pt,
1215
+ ...Tt,
1216
+ ...jt,
1217
1217
  ...It,
1218
1218
  directives: {
1219
1219
  ...wt
@@ -1239,12 +1239,12 @@ const Xe = {
1239
1239
  const t = e;
1240
1240
  return (a, i) => {
1241
1241
  const l = Be;
1242
- return r(), b(l, W(G({ ...a.$attrs, ...t })), {
1242
+ return r(), y(l, W(G({ ...a.$attrs, ...t })), {
1243
1243
  icon: f(() => [
1244
1244
  m("div", {
1245
1245
  class: F(t.icon ? "me-2 pe-1" : "")
1246
1246
  }, [
1247
- t.icon ? (r(), b(u(j), {
1247
+ t.icon ? (r(), y(u(_), {
1248
1248
  key: 0,
1249
1249
  "data-cy": "message-icon",
1250
1250
  icon: t.icon,
@@ -1254,7 +1254,7 @@ const Xe = {
1254
1254
  ], 2)
1255
1255
  ]),
1256
1256
  closeicon: f(() => [
1257
- h(u(j), { icon: "bi:x" })
1257
+ h(u(_), { icon: "bi:x" })
1258
1258
  ]),
1259
1259
  default: f(() => [
1260
1260
  k(a.$slots, "default")
@@ -1272,7 +1272,7 @@ const Xe = {
1272
1272
  params: { default: Array }
1273
1273
  },
1274
1274
  setup(e) {
1275
- const t = P(!1), a = e, i = async () => {
1275
+ const t = j(!1), a = e, i = async () => {
1276
1276
  t.value = !0;
1277
1277
  try {
1278
1278
  await a.action.apply(this, a.params);
@@ -1284,7 +1284,7 @@ const Xe = {
1284
1284
  return (l, n) => {
1285
1285
  const o = q;
1286
1286
  return r(), v(A, null, [
1287
- h(o, _({ ...a, ...l.$attrs }, {
1287
+ h(o, P({ ...a, ...l.$attrs }, {
1288
1288
  loading: t.value,
1289
1289
  disabled: t.value || a.disabled,
1290
1290
  onClick: i
@@ -1296,7 +1296,7 @@ const Xe = {
1296
1296
  }), Xi = /* @__PURE__ */ S({
1297
1297
  __name: "ForgeAutoComplete",
1298
1298
  setup(e) {
1299
- return (t, a) => (r(), b(u(_e), _({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
1299
+ return (t, a) => (r(), y(u(Pe), P({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
1300
1300
  default: f(() => [
1301
1301
  (r(!0), v(A, null, E(t.$slots, (i, l) => k(t.$slots, l, { slot: l })), 256))
1302
1302
  ]),
@@ -1349,14 +1349,14 @@ const Xe = {
1349
1349
  (t.disabled || t.readonly) && p.preventDefault(), t.name ? i(c) : a.value = c;
1350
1350
  }, s = z(() => l.value.length > 0);
1351
1351
  return (p, c) => {
1352
- const y = je;
1352
+ const x = _e;
1353
1353
  return r(), v("div", Mt, [
1354
- m("div", _({
1354
+ m("div", P({
1355
1355
  class: "d-flex",
1356
1356
  "data-cy": "checkbox-container",
1357
1357
  onClick: c[2] || (c[2] = (d) => o(d, a.value))
1358
1358
  }, { ...p.$attrs }), [
1359
- h(y, _({ ...t }, {
1359
+ h(x, P({ ...t }, {
1360
1360
  binary: "",
1361
1361
  modelValue: a.value,
1362
1362
  "onUpdate:modelValue": c[0] || (c[0] = (d) => a.value = d),
@@ -1401,7 +1401,7 @@ const Xe = {
1401
1401
  })
1402
1402
  }));
1403
1403
  return (i, l) => {
1404
- const n = Pe;
1404
+ const n = je;
1405
1405
  return r(), v("div", {
1406
1406
  class: F(i.inLine ? "" : "forge-loader")
1407
1407
  }, [
@@ -1454,7 +1454,7 @@ const Xe = {
1454
1454
  target: i.target
1455
1455
  }, [
1456
1456
  k(i.$slots, "default", {}, () => [
1457
- i.iconName ? (r(), b(u(j), {
1457
+ i.iconName ? (r(), y(u(_), {
1458
1458
  key: 0,
1459
1459
  id: "link-icon",
1460
1460
  icon: i.iconName,
@@ -1546,7 +1546,7 @@ const Nt = { key: 0 }, At = {
1546
1546
  }),
1547
1547
  emits: ["update:visible", "update:error"],
1548
1548
  setup(e, { expose: t }) {
1549
- const a = N(e, "visible"), i = P(!1), l = e, n = P(!1), o = N(e, "error"), s = () => {
1549
+ const a = N(e, "visible"), i = j(!1), l = e, n = j(!1), o = N(e, "error"), s = () => {
1550
1550
  o.value = {
1551
1551
  hasError: !1,
1552
1552
  header: "",
@@ -1560,14 +1560,14 @@ const Nt = { key: 0 }, At = {
1560
1560
  i.value = !1;
1561
1561
  }, c = () => {
1562
1562
  i.value = !0;
1563
- }, y = () => {
1563
+ }, x = () => {
1564
1564
  l.resetErrorOnClose && s(), a.value = !1;
1565
1565
  }, d = async () => {
1566
1566
  if (l.onConfirm) {
1567
1567
  n.value = !0, o.value.hasError = !1;
1568
1568
  try {
1569
1569
  const T = await l.onConfirm();
1570
- (T || T == null) && y();
1570
+ (T || T == null) && x();
1571
1571
  } catch (T) {
1572
1572
  o.value.hasError = !0;
1573
1573
  const D = Ot(T);
@@ -1594,22 +1594,22 @@ const Nt = { key: 0 }, At = {
1594
1594
  }));
1595
1595
  return (T, D) => {
1596
1596
  const O = q, U = Ie;
1597
- return r(), b(U, _(l, {
1597
+ return r(), y(U, P(l, {
1598
1598
  onMaximize: c,
1599
1599
  onUnmaximize: p,
1600
1600
  pt: $.value
1601
1601
  }), ae({
1602
1602
  closeicon: f(() => [
1603
- h(u(j), {
1603
+ h(u(_), {
1604
1604
  "data-cy": "close-icon",
1605
1605
  icon: "bi:x-lg",
1606
1606
  width: "18",
1607
1607
  height: "18",
1608
- onClick: y
1608
+ onClick: x
1609
1609
  })
1610
1610
  ]),
1611
1611
  maximizeicon: f(() => [
1612
- h(u(j), {
1612
+ h(u(_), {
1613
1613
  "data-cy": "maximisable-icon",
1614
1614
  icon: i.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
1615
1615
  width: "16",
@@ -1618,11 +1618,11 @@ const Nt = { key: 0 }, At = {
1618
1618
  ]),
1619
1619
  _: 2
1620
1620
  }, [
1621
- E(T.$slots, (x, w) => ({
1621
+ E(T.$slots, (g, w) => ({
1622
1622
  name: w,
1623
1623
  fn: f((I) => [
1624
1624
  w !== "footer" ? (r(), v(A, { key: 0 }, [
1625
- o.value.hasError ? (r(), b(de, {
1625
+ o.value.hasError ? (r(), y(de, {
1626
1626
  key: 0,
1627
1627
  severity: "danger",
1628
1628
  "data-cy": "error"
@@ -1632,7 +1632,7 @@ const Nt = { key: 0 }, At = {
1632
1632
  class: F(o.value.message.length > 0 ? "my-auto" : "mb-0")
1633
1633
  }, B(o.value.header), 3),
1634
1634
  o.value.message.length > 0 ? (r(), v("ul", Nt, [
1635
- (r(!0), v(A, null, E(o.value.message, (g) => (r(), v("li", { key: g }, B(g), 1))), 128))
1635
+ (r(!0), v(A, null, E(o.value.message, (b) => (r(), v("li", { key: b }, B(b), 1))), 128))
1636
1636
  ])) : C("", !0)
1637
1637
  ]),
1638
1638
  _: 1
@@ -1652,7 +1652,7 @@ const Nt = { key: 0 }, At = {
1652
1652
  label: T.cancelText,
1653
1653
  class: F(l.cancelClass),
1654
1654
  outlined: "",
1655
- onClick: y,
1655
+ onClick: x,
1656
1656
  id: "cancel-button",
1657
1657
  type: l.cancelButtonType
1658
1658
  }, null, 8, ["label", "class", "type"]),
@@ -1685,7 +1685,7 @@ const Nt = { key: 0 }, At = {
1685
1685
  }),
1686
1686
  emits: ["update:modelValue"],
1687
1687
  setup(e) {
1688
- const t = e, a = N(e, "modelValue"), i = P(!1), l = P(), n = () => {
1688
+ const t = e, a = N(e, "modelValue"), i = j(!1), l = j(), n = () => {
1689
1689
  var T;
1690
1690
  i.value = !i.value, (T = l.value) == null || T.focus();
1691
1691
  }, o = async () => {
@@ -1703,13 +1703,13 @@ const Nt = { key: 0 }, At = {
1703
1703
  i.value = !i.value;
1704
1704
  }, p = () => {
1705
1705
  d.value = null;
1706
- }, { errorMessage: c, errors: y, value: d } = oe(() => t.name, void 0, {
1706
+ }, { errorMessage: c, errors: x, value: d } = oe(() => t.name, void 0, {
1707
1707
  initialValue: a.value
1708
1708
  });
1709
1709
  ne(() => {
1710
1710
  d.value = a.value;
1711
1711
  });
1712
- const $ = z(() => y.value.length > 0);
1712
+ const $ = z(() => x.value.length > 0);
1713
1713
  return (T, D) => {
1714
1714
  const O = se, U = q;
1715
1715
  return r(), v("div", {
@@ -1730,7 +1730,7 @@ const Nt = { key: 0 }, At = {
1730
1730
  }, () => [
1731
1731
  h(O, {
1732
1732
  modelValue: u(d),
1733
- "onUpdate:modelValue": D[0] || (D[0] = (x) => Fe(d) ? d.value = x : null),
1733
+ "onUpdate:modelValue": D[0] || (D[0] = (g) => Fe(d) ? d.value = g : null),
1734
1734
  modelModifiers: { trim: !0 },
1735
1735
  "data-cy": "input",
1736
1736
  ref_key: "input",
@@ -1742,7 +1742,7 @@ const Nt = { key: 0 }, At = {
1742
1742
  ]
1743
1743
  }, null, 8, ["modelValue", "class"])
1744
1744
  ]),
1745
- h(u(j), {
1745
+ h(u(_), {
1746
1746
  icon: "bi:x-circle",
1747
1747
  class: "mx-2 cursor-pointer",
1748
1748
  onClick: p,
@@ -1769,7 +1769,7 @@ const Nt = { key: 0 }, At = {
1769
1769
  class: "p-0 m-0"
1770
1770
  }, {
1771
1771
  default: f(() => [
1772
- h(u(j), {
1772
+ h(u(_), {
1773
1773
  icon: "bi:pencil",
1774
1774
  class: F($.value ? "text-invalid" : "text-muted"),
1775
1775
  "data-cy": "edit-icon",
@@ -1834,7 +1834,7 @@ const Nt = { key: 0 }, At = {
1834
1834
  ]
1835
1835
  })
1836
1836
  }));
1837
- return (i, l) => (r(), b(u(Ve), _({ ...t, ...i.$attrs }, {
1837
+ return (i, l) => (r(), y(u(Ve), P({ ...t, ...i.$attrs }, {
1838
1838
  pt: a.value,
1839
1839
  "data-cy": "navbar"
1840
1840
  }), ae({
@@ -1851,7 +1851,7 @@ const Nt = { key: 0 }, At = {
1851
1851
  ]),
1852
1852
  buttonicon: f(() => [
1853
1853
  k(i.$slots, "buttonIcon", {}, () => [
1854
- h(u(j), {
1854
+ h(u(_), {
1855
1855
  icon: "bi:list",
1856
1856
  class: F(t.severity === "light" ? "text-black" : "text-white"),
1857
1857
  height: "24",
@@ -1905,7 +1905,7 @@ const Nt = { key: 0 }, At = {
1905
1905
  class: F(l.orientation === "row" ? "col-12 mb-1" : "col"),
1906
1906
  "data-cy": "multiselect-container"
1907
1907
  }, [
1908
- h(o, _({
1908
+ h(o, P({
1909
1909
  modelValue: a.value,
1910
1910
  "onUpdate:modelValue": n[0] || (n[0] = (p) => a.value = p)
1911
1911
  }, { ...l.$attrs }, {
@@ -1938,14 +1938,14 @@ const Nt = { key: 0 }, At = {
1938
1938
  k(l.$slots, "list-item", { item: p }, () => [
1939
1939
  m("span", Kt, B(p.shortLabel ? p.shortLabel : p.label), 1)
1940
1940
  ]),
1941
- l.canRemoveItemFromPreview ? (r(), b(s, {
1941
+ l.canRemoveItemFromPreview ? (r(), y(s, {
1942
1942
  key: 0,
1943
1943
  link: "",
1944
1944
  class: "m-0 p-0 d-flex align-items-center",
1945
1945
  onClick: (c) => i(p.id)
1946
1946
  }, {
1947
1947
  default: f(() => [
1948
- h(u(j), {
1948
+ h(u(_), {
1949
1949
  icon: "bi:x",
1950
1950
  class: "close-icon",
1951
1951
  "data-cy": `close-icon-${p.id}`
@@ -2060,7 +2060,7 @@ const Nt = { key: 0 }, At = {
2060
2060
  initialValue: a.value
2061
2061
  }), p = () => {
2062
2062
  s(null), a.value = null;
2063
- }, c = z(() => i.value.length > 0), y = z(() => ({
2063
+ }, c = z(() => i.value.length > 0), x = z(() => ({
2064
2064
  dayCell: ({ context: d }) => ({
2065
2065
  class: [
2066
2066
  `text-center date-${t.severity === void 0 ? "primary" : t.severity}`,
@@ -2164,8 +2164,8 @@ const Nt = { key: 0 }, At = {
2164
2164
  k(d.$slots, "before")
2165
2165
  ]),
2166
2166
  m("div", la, [
2167
- h(T, _({ ...t, ...d.$attrs }, {
2168
- pt: y.value,
2167
+ h(T, P({ ...t, ...d.$attrs }, {
2168
+ pt: x.value,
2169
2169
  modelValue: a.value,
2170
2170
  "onUpdate:modelValue": [
2171
2171
  $[0] || ($[0] = (D) => a.value = D),
@@ -2174,14 +2174,14 @@ const Nt = { key: 0 }, At = {
2174
2174
  onBlur: $[1] || ($[1] = () => u(o)),
2175
2175
  "input-class": { "datepicker-invalid": c.value }
2176
2176
  }), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "input-class"]),
2177
- J(h(u(j), {
2177
+ J(h(u(_), {
2178
2178
  "data-cy": "icon",
2179
2179
  icon: "bi:calendar4",
2180
2180
  class: F(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${c.value ? "text-danger-dark" : "text-muted"}`])
2181
2181
  }, null, 8, ["class"]), [
2182
2182
  [Z, t.showIcon]
2183
2183
  ]),
2184
- J(h(u(j), {
2184
+ J(h(u(_), {
2185
2185
  "data-cy": "icon",
2186
2186
  icon: "bi:x",
2187
2187
  onClick: p,
@@ -2227,7 +2227,7 @@ const Nt = { key: 0 }, At = {
2227
2227
  hideCancel: { type: Boolean, default: !1 }
2228
2228
  },
2229
2229
  setup(e) {
2230
- const t = e, a = P(!1), i = P({
2230
+ const t = e, a = j(!1), i = j({
2231
2231
  hasError: !1,
2232
2232
  message: ""
2233
2233
  });
@@ -2242,7 +2242,7 @@ const Nt = { key: 0 }, At = {
2242
2242
  }
2243
2243
  return (n, o) => {
2244
2244
  const s = q;
2245
- return r(), v("form", _(n.$attrs, {
2245
+ return r(), v("form", P(n.$attrs, {
2246
2246
  novalidate: "",
2247
2247
  class: "position-relative shadow-sm border p-4 bg-white",
2248
2248
  onSubmit: X(l, ["prevent"])
@@ -2256,7 +2256,7 @@ const Nt = { key: 0 }, At = {
2256
2256
  ]),
2257
2257
  o[1] || (o[1] = m("hr", null, null, -1))
2258
2258
  ], 64)),
2259
- i.value.hasError ? (r(), b(de, {
2259
+ i.value.hasError ? (r(), y(de, {
2260
2260
  key: 1,
2261
2261
  severity: "danger",
2262
2262
  "data-cy": "error"
@@ -2273,7 +2273,7 @@ const Nt = { key: 0 }, At = {
2273
2273
  k(n.$slots, "default"),
2274
2274
  m("div", oa, [
2275
2275
  k(n.$slots, "cancel", {}, () => [
2276
- n.hideCancel ? C("", !0) : (r(), b(s, {
2276
+ n.hideCancel ? C("", !0) : (r(), y(s, {
2277
2277
  key: 0,
2278
2278
  "data-cy": "cancel-btn",
2279
2279
  type: "reset",
@@ -2301,7 +2301,7 @@ const Nt = { key: 0 }, At = {
2301
2301
  })
2302
2302
  ])
2303
2303
  ]),
2304
- a.value ? (r(), b(pe, {
2304
+ a.value ? (r(), y(pe, {
2305
2305
  key: 2,
2306
2306
  "data-cy": "loading-spinner"
2307
2307
  })) : C("", !0)
@@ -2331,20 +2331,20 @@ const Nt = { key: 0 }, At = {
2331
2331
  }),
2332
2332
  emits: ["update:modelValue"],
2333
2333
  setup(e) {
2334
- const t = N(e, "modelValue"), a = e, i = (y) => {
2335
- a.type == "number" ? s(y.value) : s(y);
2334
+ const t = N(e, "modelValue"), a = e, i = (x) => {
2335
+ a.type == "number" ? s(x.value) : s(x);
2336
2336
  }, { errors: l, value: n, errorMessage: o, handleChange: s, handleBlur: p } = oe(() => a.name, void 0, {
2337
2337
  initialValue: t.value
2338
2338
  }), c = z(() => l.value.length > 0);
2339
- return te(() => n.value, (y) => {
2340
- t.value = y;
2341
- }, { immediate: !0 }), (y, d) => {
2342
- const $ = Ne, T = Oe, D = se, O = ie, U = re, x = xe;
2343
- return a.type === "checkbox" ? (r(), b(ye, _({
2339
+ return Q(() => n.value, (x) => {
2340
+ t.value = x;
2341
+ }, { immediate: !0 }), (x, d) => {
2342
+ const $ = Ne, T = Oe, D = se, O = ie, U = re, g = xe;
2343
+ return a.type === "checkbox" ? (r(), y(ye, P({
2344
2344
  key: 0,
2345
2345
  id: a.name,
2346
2346
  label: a.fieldLabel
2347
- }, y.$attrs, {
2347
+ }, x.$attrs, {
2348
2348
  name: a.name,
2349
2349
  modelValue: t.value,
2350
2350
  "onUpdate:modelValue": d[0] || (d[0] = (w) => t.value = w)
@@ -2358,33 +2358,33 @@ const Nt = { key: 0 }, At = {
2358
2358
  class: F(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
2359
2359
  }, [
2360
2360
  M(B(a.fieldLabel) + " ", 1),
2361
- y.required ? (r(), v("span", da, "*")) : C("", !0)
2361
+ x.required ? (r(), v("span", da, "*")) : C("", !0)
2362
2362
  ], 10, ra),
2363
- k(y.$slots, "default", W(G({ modelValue: t.value, updateModel: u(s), hasErrors: c.value })), () => [
2364
- a.type === "number" ? (r(), b(u(fe), _({
2363
+ k(x.$slots, "default", W(G({ modelValue: t.value, updateModel: u(s), hasErrors: c.value })), () => [
2364
+ a.type === "number" ? (r(), y(u(fe), P({
2365
2365
  key: 0,
2366
2366
  id: a.name
2367
- }, y.$attrs, {
2367
+ }, x.$attrs, {
2368
2368
  placeholder: a.placeholder,
2369
2369
  "input-class": { "is-invalid": c.value },
2370
2370
  class: { "is-invalid": c.value },
2371
2371
  onInput: i,
2372
2372
  modelValue: t.value,
2373
2373
  "onUpdate:modelValue": d[1] || (d[1] = (w) => t.value = w)
2374
- }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (r(), b($, _({
2374
+ }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (r(), y($, P({
2375
2375
  key: 1,
2376
2376
  id: a.name
2377
- }, y.$attrs, {
2377
+ }, x.$attrs, {
2378
2378
  placeholder: a.placeholder,
2379
2379
  class: { "is-invalid": c.value },
2380
2380
  modelValue: t.value,
2381
2381
  "onUpdate:modelValue": d[2] || (d[2] = (w) => t.value = w),
2382
2382
  onInput: i,
2383
2383
  onBlur: u(p)
2384
- }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (r(), b(T, _({
2384
+ }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (r(), y(T, P({
2385
2385
  key: 2,
2386
2386
  id: a.name
2387
- }, y.$attrs, {
2387
+ }, x.$attrs, {
2388
2388
  placeholder: a.placeholder,
2389
2389
  mask: a.mask,
2390
2390
  class: { "is-invalid": c.value },
@@ -2392,29 +2392,29 @@ const Nt = { key: 0 }, At = {
2392
2392
  "onUpdate:modelValue": d[3] || (d[3] = (w) => t.value = w),
2393
2393
  onComplete: i,
2394
2394
  onBlur: u(p)
2395
- }), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (r(), b(D, _({
2395
+ }), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (r(), y(D, P({
2396
2396
  key: 3,
2397
2397
  id: a.name
2398
- }, y.$attrs, {
2398
+ }, x.$attrs, {
2399
2399
  placeholder: a.placeholder,
2400
2400
  class: { "is-invalid": c.value },
2401
2401
  modelValue: t.value,
2402
2402
  "onUpdate:modelValue": d[4] || (d[4] = (w) => t.value = w),
2403
2403
  onInput: i,
2404
2404
  onBlur: u(p)
2405
- }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (r(), b(O, _({ key: 4 }, { ...a, ...y.$attrs }, {
2405
+ }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (r(), y(O, P({ key: 4 }, { ...a, ...x.$attrs }, {
2406
2406
  modelValue: t.value,
2407
2407
  "onUpdate:modelValue": d[5] || (d[5] = (w) => t.value = w),
2408
2408
  class: { "is-invalid": c.value }
2409
- }), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (r(), b(U, _({ key: 5 }, { ...a, ...y.$attrs }, {
2409
+ }), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (r(), y(U, P({ key: 5 }, { ...a, ...x.$attrs }, {
2410
2410
  modelValue: t.value,
2411
2411
  "onUpdate:modelValue": d[6] || (d[6] = (w) => t.value = w),
2412
2412
  class: { "is-invalid": c.value }
2413
- }), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (r(), b(Xt, _({ key: 6 }, { ...a, ...y.$attrs }, {
2413
+ }), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (r(), y(Xt, P({ key: 6 }, { ...a, ...x.$attrs }, {
2414
2414
  modelValue: t.value,
2415
2415
  "onUpdate:modelValue": d[7] || (d[7] = (w) => t.value = w),
2416
2416
  class: { "is-invalid": c.value }
2417
- }), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (r(), b(x, _({ key: 7 }, { ...a, ...y.$attrs }, {
2417
+ }), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (r(), y(g, P({ key: 7 }, { ...a, ...x.$attrs }, {
2418
2418
  modelValue: t.value,
2419
2419
  "onUpdate:modelValue": d[8] || (d[8] = (w) => t.value = w),
2420
2420
  class: { "is-invalid": c.value }
@@ -2466,7 +2466,7 @@ const Nt = { key: 0 }, At = {
2466
2466
  }));
2467
2467
  return (i, l) => {
2468
2468
  const n = Ae;
2469
- return r(), b(n, _({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
2469
+ return r(), y(n, P({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
2470
2470
  default: f(() => [
2471
2471
  (r(!0), v(A, null, E(i.$slots, (o, s) => k(i.$slots, s, { slot: s })), 256))
2472
2472
  ]),
@@ -2521,7 +2521,7 @@ const Nt = { key: 0 }, At = {
2521
2521
  }));
2522
2522
  return (o, s) => {
2523
2523
  const p = Ee;
2524
- return r(), b(p, _({ ...o.$attrs, ...t }, { pt: n.value }), {
2524
+ return r(), y(p, P({ ...o.$attrs, ...t }, { pt: n.value }), {
2525
2525
  default: f(() => [
2526
2526
  k(o.$slots, "default")
2527
2527
  ]),
@@ -2845,11 +2845,11 @@ var pa = /* @__PURE__ */ S({
2845
2845
  const o = /(\r\n|\n\r|\n|\r)+/g, s = /\s+/g;
2846
2846
  var p = t.split(o).filter((O) => O.length > 0);
2847
2847
  for (let O = 0; O < p.length; O++) {
2848
- for (var c = p[O].split(s).filter((U) => U.length > 0), y = "", d = 0; d < c.length; d++) {
2849
- var $ = y + c[d] + " ", T = e.measureText($), D = T.width;
2850
- D > l && d > 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[d] + " ", i += n) : y = $;
2848
+ for (var c = p[O].split(s).filter((U) => U.length > 0), x = "", d = 0; d < c.length; d++) {
2849
+ var $ = x + c[d] + " ", T = e.measureText($), D = T.width;
2850
+ D > l && d > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(x, a, i) : e.fillText(x, a, i), x = c[d] + " ", i += n) : x = $;
2851
2851
  }
2852
- 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;
2852
+ this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(x, a, i) : e.fillText(x, a, i), i += c.length > 0 ? n : 0;
2853
2853
  }
2854
2854
  },
2855
2855
  save() {
@@ -2880,9 +2880,9 @@ var pa = /* @__PURE__ */ S({
2880
2880
  a.fontStyle && a.fontStyle.width ? d = a.x + Math.floor(a.fontStyle.width / 2) : d = a.x, a.fontStyle && a.fontStyle.lineHeight ? $ = a.y + Math.floor(a.fontStyle.lineHeight / 2) : $ = a.y, t.translate(d, $), t.rotate(a.fontStyle.rotate * Math.PI / 180), t.translate(d * -1, $ * -1);
2881
2881
  }
2882
2882
  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));
2883
- let s = document.createElement("canvas"), p = s.getContext("2d"), c = this.outputWidth === void 0 ? this.width : this.outputWidth, y = this.outputHeight === void 0 ? this.height : this.outputHeight;
2884
- if (s.width = Number(c), s.height = Number(y), p)
2885
- return p.drawImage(e, 0, 0, Number(c), Number(y)), this.$emit("update:image", s.toDataURL("image/" + this.saveAs, 1)), s.toDataURL("image/" + this.saveAs, 1);
2883
+ let s = document.createElement("canvas"), p = s.getContext("2d"), c = this.outputWidth === void 0 ? this.width : this.outputWidth, x = this.outputHeight === void 0 ? this.height : this.outputHeight;
2884
+ if (s.width = Number(c), s.height = Number(x), p)
2885
+ return p.drawImage(e, 0, 0, Number(c), Number(x)), this.$emit("update:image", s.toDataURL("image/" + this.saveAs, 1)), s.toDataURL("image/" + this.saveAs, 1);
2886
2886
  }
2887
2887
  },
2888
2888
  isEmpty() {
@@ -2933,7 +2933,7 @@ const ca = { class: "d-flex flex-column" }, ua = { class: "d-flex flex-row mt-1
2933
2933
  },
2934
2934
  emits: ["save"],
2935
2935
  setup(e, { emit: t }) {
2936
- const a = e, i = t, l = ze("drawingCanvas"), n = P(), o = () => {
2936
+ const a = e, i = t, l = ze("drawingCanvas"), n = j(), o = () => {
2937
2937
  l == null || l.value.reset();
2938
2938
  }, s = () => {
2939
2939
  l == null || l.value.redo();
@@ -2942,24 +2942,24 @@ const ca = { class: "d-flex flex-column" }, ua = { class: "d-flex flex-row mt-1
2942
2942
  }, c = () => {
2943
2943
  i("save", l.value.isEmpty());
2944
2944
  };
2945
- return (y, d) => {
2945
+ return (x, d) => {
2946
2946
  const $ = q;
2947
2947
  return r(), v("div", ca, [
2948
- h(u(pa), _({
2948
+ h(u(pa), P({
2949
2949
  ref_key: "drawingCanvas",
2950
2950
  ref: l,
2951
2951
  image: n.value,
2952
2952
  "onUpdate:image": d[0] || (d[0] = (T) => n.value = T),
2953
2953
  "data-cy": "drawing-canvas",
2954
2954
  class: "border canvas"
2955
- }, { ...y.$attrs }, {
2956
- height: y.height,
2957
- width: y.width,
2958
- style: `height: ${y.height}px; width: ${y.width}px`,
2959
- "line-join": y.lineJoin
2955
+ }, { ...x.$attrs }, {
2956
+ height: x.height,
2957
+ width: x.width,
2958
+ style: `height: ${x.height}px; width: ${x.width}px`,
2959
+ "line-join": x.lineJoin
2960
2960
  }), null, 16, ["image", "height", "width", "style", "line-join"]),
2961
2961
  m("div", ua, [
2962
- a.showUndo ? (r(), b($, {
2962
+ a.showUndo ? (r(), y($, {
2963
2963
  key: 0,
2964
2964
  onClick: p,
2965
2965
  outlined: "",
@@ -2970,7 +2970,7 @@ const ca = { class: "d-flex flex-column" }, ua = { class: "d-flex flex-row mt-1
2970
2970
  ])),
2971
2971
  _: 1
2972
2972
  })) : C("", !0),
2973
- a.showRedo ? (r(), b($, {
2973
+ a.showRedo ? (r(), y($, {
2974
2974
  key: 1,
2975
2975
  onClick: s,
2976
2976
  outlined: "",
@@ -2981,7 +2981,7 @@ const ca = { class: "d-flex flex-column" }, ua = { class: "d-flex flex-row mt-1
2981
2981
  ])),
2982
2982
  _: 1
2983
2983
  })) : C("", !0),
2984
- a.showClear ? (r(), b($, {
2984
+ a.showClear ? (r(), y($, {
2985
2985
  key: 2,
2986
2986
  onClick: o,
2987
2987
  outlined: "",
@@ -2992,7 +2992,7 @@ const ca = { class: "d-flex flex-column" }, ua = { class: "d-flex flex-row mt-1
2992
2992
  ])),
2993
2993
  _: 1
2994
2994
  })) : C("", !0),
2995
- a.showSave ? (r(), b($, {
2995
+ a.showSave ? (r(), y($, {
2996
2996
  key: 3,
2997
2997
  onClick: c,
2998
2998
  class: "ms-auto",
@@ -3015,7 +3015,7 @@ const ca = { class: "d-flex flex-column" }, ua = { class: "d-flex flex-row mt-1
3015
3015
  },
3016
3016
  setup(e) {
3017
3017
  const t = e;
3018
- return (a, i) => (r(), v("div", _(a.$attrs, {
3018
+ return (a, i) => (r(), v("div", P(a.$attrs, {
3019
3019
  class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
3020
3020
  }), [
3021
3021
  m("span", ma, [
@@ -3070,11 +3070,11 @@ const ca = { class: "d-flex flex-column" }, ua = { class: "d-flex flex-row mt-1
3070
3070
  ]
3071
3071
  })
3072
3072
  }));
3073
- return (i, l) => (r(), b(u(qe), { value: i.currentStep }, {
3073
+ return (i, l) => (r(), y(u(qe), { value: i.currentStep }, {
3074
3074
  default: f(() => [
3075
3075
  h(u(Le), null, {
3076
3076
  default: f(() => [
3077
- (r(!0), v(A, null, E(i.steps, (n) => (r(), b(u(Ue), _({
3077
+ (r(!0), v(A, null, E(i.steps, (n) => (r(), y(u(Ue), P({
3078
3078
  key: n.value,
3079
3079
  value: n.value,
3080
3080
  disabled: n.disabled,
@@ -3090,7 +3090,7 @@ const ca = { class: "d-flex flex-column" }, ua = { class: "d-flex flex-row mt-1
3090
3090
  }),
3091
3091
  h(u(He), null, {
3092
3092
  default: f(() => [
3093
- (r(!0), v(A, null, E(i.steps, (n) => (r(), b(u(Re), {
3093
+ (r(!0), v(A, null, E(i.steps, (n) => (r(), y(u(Re), {
3094
3094
  key: n.value,
3095
3095
  value: n.value
3096
3096
  }, {
@@ -3118,7 +3118,7 @@ const ca = { class: "d-flex flex-column" }, ua = { class: "d-flex flex-row mt-1
3118
3118
  const t = e, a = z(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), i = z(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`);
3119
3119
  return (l, n) => {
3120
3120
  const o = q;
3121
- return t.clickable ? (r(), b(o, {
3121
+ return t.clickable ? (r(), y(o, {
3122
3122
  key: 0,
3123
3123
  class: F(["d-flex w-100 p-0 text-body", a.value]),
3124
3124
  severity: t.severity,
@@ -3147,7 +3147,7 @@ const ca = { class: "d-flex flex-column" }, ua = { class: "d-flex flex-row mt-1
3147
3147
  };
3148
3148
  }
3149
3149
  });
3150
- function Q(e, t) {
3150
+ function ee(e, t) {
3151
3151
  return e > 1 ? `${t}s` : t;
3152
3152
  }
3153
3153
  const ba = {
@@ -3169,7 +3169,7 @@ const ba = {
3169
3169
  a("update:perPage", o.value);
3170
3170
  }, n = z(() => {
3171
3171
  const o = Math.ceil(i.total / i.perPage);
3172
- return `${o} ${Q(o, "page")}`;
3172
+ return `${o} ${ee(o, "page")}`;
3173
3173
  });
3174
3174
  return (o, s) => (r(), v("div", ba, [
3175
3175
  s[2] || (s[2] = M(" Number of results per page ")),
@@ -3178,12 +3178,13 @@ const ba = {
3178
3178
  options: i.pageSizes,
3179
3179
  "model-value": i.perPage,
3180
3180
  class: "page-size",
3181
- onChange: s[0] || (s[0] = (p) => l(p))
3181
+ onChange: s[0] || (s[0] = (p) => l(p)),
3182
+ "data-cy": "pagination-page-size-select"
3182
3183
  }, null, 8, ["options", "model-value"])
3183
3184
  ]),
3184
3185
  i.total ? (r(), v("div", xa, [
3185
3186
  s[1] || (s[1] = m("span", { class: "mx-2" }, "|", -1)),
3186
- m("span", ha, B(i.total) + " " + B(u(Q)(i.total, "result")) + " across " + B(n.value), 1)
3187
+ m("span", ha, B(i.total) + " " + B(u(ee)(i.total, "result")) + " across " + B(n.value), 1)
3187
3188
  ])) : C("", !0)
3188
3189
  ]));
3189
3190
  }
@@ -3201,6 +3202,7 @@ const ba = {
3201
3202
  severity: {},
3202
3203
  clearAll: {},
3203
3204
  emptyMessage: {},
3205
+ perPage: {},
3204
3206
  dataKey: {},
3205
3207
  rows: {},
3206
3208
  first: {},
@@ -3276,17 +3278,21 @@ const ba = {
3276
3278
  },
3277
3279
  emits: ["update:filters", "update:tableContext", "sort", "page"],
3278
3280
  setup(e, { emit: t }) {
3279
- const a = t, i = e, l = P(), n = P([5, 10, 20, 50, 100]), o = P(10), s = P({
3281
+ const a = t, i = e, l = j(), n = j([5, 10, 20, 50, 100]), o = j(i.perPage ?? 10), s = j({
3280
3282
  filters: i.filters,
3281
3283
  perPage: o.value,
3282
3284
  page: 0,
3283
3285
  sortDirection: "None",
3284
3286
  sortField: "",
3285
3287
  total: i.totalRecords ?? i.value.length
3286
- }), p = z(() => i.totalRecords ?? i.value.length), c = z(() => {
3287
- const x = Math.ceil(p.value / o.value);
3288
- return `${x} ${Q(x, "page")}`;
3289
- }), y = z(() => ({
3288
+ });
3289
+ Q(() => i.perPage, (g) => {
3290
+ g && (o.value = g, s.value.perPage = g);
3291
+ });
3292
+ const p = z(() => i.totalRecords ?? i.value.length), c = z(() => {
3293
+ const g = Math.ceil(p.value / o.value);
3294
+ return `${g} ${ee(g, "page")}`;
3295
+ }), x = z(() => ({
3290
3296
  thead: () => ({
3291
3297
  class: [
3292
3298
  {
@@ -3313,31 +3319,31 @@ const ba = {
3313
3319
  if (i.clearAll)
3314
3320
  i.clearAll();
3315
3321
  else
3316
- for (const x in i.filters)
3317
- typeof i.filters[x] == "string" ? i.filters[x] = "" : i.filters[x].value = null;
3322
+ for (const g in i.filters)
3323
+ typeof i.filters[g] == "string" ? i.filters[g] = "" : i.filters[g].value = null;
3318
3324
  D(i.filters);
3319
3325
  }, $ = () => {
3320
3326
  l.value.exportCSV();
3321
- }, T = (x) => {
3327
+ }, T = (g) => {
3322
3328
  var w;
3323
- s.value.sortDirection = x.sortOrder === 1 ? "Asc" : x.sortOrder === -1 ? "Desc" : "None", s.value.sortField = ((w = x.sortField) == null ? void 0 : w.toString()) ?? "", a("update:tableContext", s.value), a("sort", x);
3324
- }, D = (x) => {
3325
- s.value.filters = x, a("update:tableContext", s.value), a("update:filters", x);
3326
- }, O = (x) => {
3327
- s.value.page = x.page, a("update:tableContext", s.value), a("page", x);
3329
+ s.value.sortDirection = g.sortOrder === 1 ? "Asc" : g.sortOrder === -1 ? "Desc" : "None", s.value.sortField = ((w = g.sortField) == null ? void 0 : w.toString()) ?? "", a("update:tableContext", s.value), a("sort", g);
3330
+ }, D = (g) => {
3331
+ s.value.filters = g, a("update:tableContext", s.value), a("update:filters", g);
3332
+ }, O = (g) => {
3333
+ s.value.page = g.page, a("update:tableContext", s.value), a("page", g);
3328
3334
  }, U = () => {
3329
3335
  s.value.perPage = o.value, a("update:tableContext", s.value);
3330
3336
  };
3331
- return te(() => i.filters, (x) => {
3332
- s.value.filters = x, a("update:tableContext", s.value);
3333
- }, { deep: !0 }), ne(() => a("update:tableContext", s.value)), (x, w) => (r(), v("div", wa, [
3337
+ return Q(() => i.filters, (g) => {
3338
+ s.value.filters = g, a("update:tableContext", s.value);
3339
+ }, { deep: !0 }), ne(() => a("update:tableContext", s.value)), (g, w) => (r(), v("div", wa, [
3334
3340
  m("span", ka, [
3335
- k(x.$slots, "above-table")
3341
+ k(g.$slots, "above-table")
3336
3342
  ]),
3337
- h(u(We), _({
3343
+ h(u(We), P({
3338
3344
  class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
3339
- }, { ...i, ...x.$attrs }, {
3340
- pt: y.value,
3345
+ }, { ...i, ...g.$attrs }, {
3346
+ pt: x.value,
3341
3347
  rows: o.value,
3342
3348
  "total-records": p.value,
3343
3349
  "filter-display": i.filters ? "row" : void 0,
@@ -3351,7 +3357,7 @@ const ba = {
3351
3357
  }), ae({
3352
3358
  empty: f(() => [
3353
3359
  m("div", $a, [
3354
- m("h5", Ba, B(x.emptyMessage ?? "No items Found."), 1)
3360
+ m("h5", Ba, B(g.emptyMessage ?? "No items Found."), 1)
3355
3361
  ])
3356
3362
  ]),
3357
3363
  header: f(() => [
@@ -3360,7 +3366,7 @@ const ba = {
3360
3366
  }, [
3361
3367
  m("div", Fa, [
3362
3368
  m("div", Sa, [
3363
- x.paginator && !x.legacyPaginationFooter ? (r(), v("span", Ca, [
3369
+ g.paginator && !g.legacyPaginationFooter ? (r(), v("span", Ca, [
3364
3370
  h(he, {
3365
3371
  total: p.value,
3366
3372
  "page-sizes": n.value,
@@ -3373,15 +3379,15 @@ const ba = {
3373
3379
  ])) : C("", !0)
3374
3380
  ]),
3375
3381
  m("div", za, [
3376
- x.showClearButton ? (r(), b(u(q), {
3382
+ g.showClearButton ? (r(), y(u(q), {
3377
3383
  key: 0,
3378
3384
  outlined: "",
3379
- class: F(x.showExporterButton ? "me-2" : ""),
3385
+ class: F(g.showExporterButton ? "me-2" : ""),
3380
3386
  onClick: d,
3381
3387
  "data-cy": "clear-all"
3382
3388
  }, {
3383
3389
  default: f(() => [
3384
- h(u(j), {
3390
+ h(u(_), {
3385
3391
  icon: "bi:funnel-fill",
3386
3392
  width: "24",
3387
3393
  height: "24"
@@ -3390,14 +3396,14 @@ const ba = {
3390
3396
  ]),
3391
3397
  _: 1
3392
3398
  }, 8, ["class"])) : C("", !0),
3393
- x.showExporterButton ? (r(), b(u(q), {
3399
+ g.showExporterButton ? (r(), y(u(q), {
3394
3400
  key: 1,
3395
3401
  outlined: "",
3396
3402
  onClick: $,
3397
3403
  "data-cy": "exporter"
3398
3404
  }, {
3399
3405
  default: f(() => [
3400
- h(u(j), {
3406
+ h(u(_), {
3401
3407
  icon: "typcn:export",
3402
3408
  width: "24",
3403
3409
  height: "24"
@@ -3406,23 +3412,23 @@ const ba = {
3406
3412
  ]),
3407
3413
  _: 1
3408
3414
  })) : C("", !0),
3409
- k(x.$slots, "column-customiser")
3415
+ k(g.$slots, "column-customiser")
3410
3416
  ])
3411
3417
  ])
3412
3418
  ], 2)
3413
3419
  ]),
3414
3420
  default: f(() => [
3415
- k(x.$slots, "default")
3421
+ k(g.$slots, "default")
3416
3422
  ]),
3417
3423
  _: 2
3418
3424
  }, [
3419
- E(x.$slots, (I, g) => ({
3420
- name: g,
3425
+ E(g.$slots, (I, b) => ({
3426
+ name: b,
3421
3427
  fn: f((V) => [
3422
- k(x.$slots, g, W(G(V || {})))
3428
+ k(g.$slots, b, W(G(V || {})))
3423
3429
  ])
3424
3430
  })),
3425
- x.legacyPaginationFooter ? {
3431
+ g.legacyPaginationFooter ? {
3426
3432
  name: "paginatorstart",
3427
3433
  fn: f(() => [
3428
3434
  m("span", {
@@ -3441,20 +3447,20 @@ const ba = {
3441
3447
  ]),
3442
3448
  key: "0"
3443
3449
  } : void 0,
3444
- x.legacyPaginationFooter ? {
3450
+ g.legacyPaginationFooter ? {
3445
3451
  name: "paginatorend",
3446
3452
  fn: f(() => [
3447
3453
  m("span", {
3448
3454
  "data-cy": "legacy-total",
3449
3455
  class: F(i.loading ? "opacity-50" : "")
3450
- }, B(p.value) + " " + B(u(Q)(p.value, "result")) + " across " + B(c.value), 3)
3456
+ }, B(p.value) + " " + B(u(ee)(p.value, "result")) + " across " + B(c.value), 3)
3451
3457
  ]),
3452
3458
  key: "1"
3453
3459
  } : void 0
3454
3460
  ]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
3455
3461
  ]));
3456
3462
  }
3457
- }), Ta = { class: "position-relative" }, _a = { "data-cy": "above-table-slot" }, ja = { class: "d-flex" }, Pa = { class: "d-flex align-items-end mb-2" }, Ia = { key: 0 }, Ma = { class: "ms-auto" }, fl = /* @__PURE__ */ S({
3463
+ }), Ta = { class: "position-relative" }, Pa = { "data-cy": "above-table-slot" }, _a = { class: "d-flex" }, ja = { class: "d-flex align-items-end mb-2" }, Ia = { key: 0 }, Ma = { class: "ms-auto" }, fl = /* @__PURE__ */ S({
3458
3464
  __name: "ForgeTreeTable",
3459
3465
  props: {
3460
3466
  stripedRows: { type: Boolean, default: !1 },
@@ -3515,28 +3521,28 @@ const ba = {
3515
3521
  },
3516
3522
  emits: ["update:filters", "update:tableContext", "sort", "page"],
3517
3523
  setup(e, { emit: t }) {
3518
- const a = e, i = t, l = P([5, 10, 20, 50, 100]), n = P(10), o = P(0), s = P(0), p = P({
3524
+ const a = e, i = t, l = j([5, 10, 20, 50, 100]), n = j(10), o = j(0), s = j(0), p = j({
3519
3525
  filters: a.filters,
3520
3526
  perPage: n.value,
3521
3527
  page: 0,
3522
3528
  sortDirection: "None",
3523
3529
  sortField: "",
3524
3530
  total: a.totalRecords ?? a.value.length
3525
- }), c = z(() => a.totalRecords ?? a.value.length), y = z(() => {
3526
- const g = Math.ceil(c.value / n.value);
3527
- return `${g} ${Q(g, "page")}`;
3531
+ }), c = z(() => a.totalRecords ?? a.value.length), x = z(() => {
3532
+ const b = Math.ceil(c.value / n.value);
3533
+ return `${b} ${ee(b, "page")}`;
3528
3534
  }), d = z(() => ({
3529
3535
  root: "position-relative",
3530
- table: (g) => ({
3536
+ table: (b) => ({
3531
3537
  class: [
3532
3538
  "table position-relative",
3533
3539
  {
3534
- "table-striped": g.attrs.stripedRows,
3535
- "table-hover": g.props.rowHover,
3536
- "table-bordered": g.props.showGridlines,
3537
- "table-sm": g.props.size === "small",
3538
- "table-lg": g.props.size === "large",
3539
- "opacity-50": g.props.loading
3540
+ "table-striped": b.attrs.stripedRows,
3541
+ "table-hover": b.props.rowHover,
3542
+ "table-bordered": b.props.showGridlines,
3543
+ "table-sm": b.props.size === "small",
3544
+ "table-lg": b.props.size === "large",
3545
+ "opacity-50": b.props.loading
3540
3546
  }
3541
3547
  ]
3542
3548
  }),
@@ -3554,26 +3560,26 @@ const ba = {
3554
3560
  }
3555
3561
  ]
3556
3562
  }),
3557
- row: ({ instance: g }) => [
3563
+ row: ({ instance: b }) => [
3558
3564
  {
3559
- "parent-node": g.node.hasOwnProperty("children")
3565
+ "parent-node": b.node.hasOwnProperty("children")
3560
3566
  }
3561
3567
  ]
3562
3568
  }));
3563
- te(() => a.parentExpanderFullRow, (g) => {
3564
- g ? $() : T();
3569
+ Q(() => a.parentExpanderFullRow, (b) => {
3570
+ b ? $() : T();
3565
3571
  });
3566
3572
  const $ = () => {
3567
3573
  a.parentExpanderFullRow && setTimeout(
3568
3574
  () => {
3569
- const g = Array.from(
3575
+ const b = Array.from(
3570
3576
  document.querySelectorAll(".parent-node td.expander-cell")
3571
3577
  );
3572
3578
  Array.from(
3573
3579
  document.querySelectorAll(".parent-node td")
3574
3580
  ).forEach((L) => {
3575
3581
  L.classList.add("d-none");
3576
- }), g.forEach((L) => {
3582
+ }), b.forEach((L) => {
3577
3583
  L.setAttribute("colspan", a.totalColumns.toString()), L.classList.remove("d-none");
3578
3584
  });
3579
3585
  },
@@ -3582,12 +3588,12 @@ const ba = {
3582
3588
  }, T = () => {
3583
3589
  setTimeout(
3584
3590
  () => {
3585
- const g = Array.from(
3591
+ const b = Array.from(
3586
3592
  document.querySelectorAll(".parent-node td.expander-cell")
3587
3593
  ), V = Array.from(
3588
3594
  document.querySelectorAll(".parent-node td")
3589
3595
  );
3590
- g.forEach((L) => {
3596
+ b.forEach((L) => {
3591
3597
  L.removeAttribute("colspan");
3592
3598
  }), V.forEach((L) => {
3593
3599
  L.classList.remove("d-none");
@@ -3599,22 +3605,22 @@ const ba = {
3599
3605
  if (a.clearAll)
3600
3606
  a.clearAll();
3601
3607
  else
3602
- for (const g in a.filters)
3603
- typeof a.filters[g] == "string" ? a.filters[g] = "" : a.filters[g].value = null;
3608
+ for (const b in a.filters)
3609
+ typeof a.filters[b] == "string" ? a.filters[b] = "" : a.filters[b].value = null;
3604
3610
  U(a.filters);
3605
- }, O = (g) => {
3611
+ }, O = (b) => {
3606
3612
  var V;
3607
- p.value.sortDirection = g.sortOrder === 1 ? "Asc" : g.sortOrder === -1 ? "Desc" : "None", p.value.sortField = ((V = g.sortField) == null ? void 0 : V.toString()) ?? "", i("update:tableContext", p.value), i("sort", g), $();
3608
- }, U = (g) => {
3609
- p.value.filters = g, i("update:tableContext", p.value), i("update:filters", g), $();
3610
- }, x = (g) => {
3611
- p.value.page = s.value = g.page, I(), i("update:tableContext", p.value), i("page", g), $();
3613
+ p.value.sortDirection = b.sortOrder === 1 ? "Asc" : b.sortOrder === -1 ? "Desc" : "None", p.value.sortField = ((V = b.sortField) == null ? void 0 : V.toString()) ?? "", i("update:tableContext", p.value), i("sort", b), $();
3614
+ }, U = (b) => {
3615
+ p.value.filters = b, i("update:tableContext", p.value), i("update:filters", b), $();
3616
+ }, g = (b) => {
3617
+ p.value.page = s.value = b.page, I(), i("update:tableContext", p.value), i("page", b), $();
3612
3618
  }, w = () => {
3613
3619
  p.value.perPage = n.value, s.value = 0, p.value.page = s.value = Math.floor(o.value / n.value), I(), i("update:tableContext", p.value), $();
3614
3620
  };
3615
- te(() => a.filters, (g) => {
3616
- p.value.filters = g, i("update:tableContext", p.value);
3617
- }, { deep: !0 }), te(() => a.value, () => {
3621
+ Q(() => a.filters, (b) => {
3622
+ p.value.filters = b, i("update:tableContext", p.value);
3623
+ }, { deep: !0 }), Q(() => a.value, () => {
3618
3624
  $();
3619
3625
  }), ne(() => {
3620
3626
  $(), i("update:tableContext", p.value);
@@ -3622,20 +3628,20 @@ const ba = {
3622
3628
  const I = () => {
3623
3629
  o.value = s.value * n.value;
3624
3630
  };
3625
- return (g, V) => (r(), v("div", Ta, [
3626
- m("span", _a, [
3627
- k(g.$slots, "above-table")
3631
+ return (b, V) => (r(), v("div", Ta, [
3632
+ m("span", Pa, [
3633
+ k(b.$slots, "above-table")
3628
3634
  ]),
3629
- h(u(Ge), _({
3635
+ h(u(Ge), P({
3630
3636
  class: ["w-100", `${a.severity ? `forge-table-${a.severity}` : ""}`]
3631
- }, { ...a, ...g.$attrs }, {
3637
+ }, { ...a, ...b.$attrs }, {
3632
3638
  pt: d.value,
3633
3639
  "filter-display": a.filters ? "row" : void 0,
3634
- rows: g.paginator ? n.value : void 0,
3640
+ rows: b.paginator ? n.value : void 0,
3635
3641
  "data-cy": "tree-table",
3636
3642
  "onUpdate:filters": U,
3637
3643
  onSort: O,
3638
- onPage: x,
3644
+ onPage: g,
3639
3645
  onNodeExpand: V[2] || (V[2] = () => $()),
3640
3646
  showHeaders: "",
3641
3647
  first: o.value
@@ -3644,9 +3650,9 @@ const ba = {
3644
3650
  m("div", {
3645
3651
  class: F(a.loading ? "opacity-50" : "")
3646
3652
  }, [
3647
- m("div", ja, [
3648
- m("div", Pa, [
3649
- g.paginator && !g.legacyPaginationFooter ? (r(), v("span", Ia, [
3653
+ m("div", _a, [
3654
+ m("div", ja, [
3655
+ b.paginator && !b.legacyPaginationFooter ? (r(), v("span", Ia, [
3650
3656
  h(he, {
3651
3657
  total: c.value,
3652
3658
  "page-sizes": l.value,
@@ -3659,14 +3665,14 @@ const ba = {
3659
3665
  ])) : C("", !0)
3660
3666
  ]),
3661
3667
  m("div", Ma, [
3662
- g.showClearButton ? (r(), b(u(q), {
3668
+ b.showClearButton ? (r(), y(u(q), {
3663
3669
  key: 0,
3664
3670
  outlined: "",
3665
3671
  onClick: D,
3666
3672
  "data-cy": "clear-all"
3667
3673
  }, {
3668
3674
  default: f(() => [
3669
- h(u(j), {
3675
+ h(u(_), {
3670
3676
  icon: "bi:funnel-fill",
3671
3677
  width: "24",
3672
3678
  height: "24"
@@ -3675,23 +3681,23 @@ const ba = {
3675
3681
  ]),
3676
3682
  _: 1
3677
3683
  })) : C("", !0),
3678
- k(g.$slots, "column-customiser")
3684
+ k(b.$slots, "column-customiser")
3679
3685
  ])
3680
3686
  ])
3681
3687
  ], 2)
3682
3688
  ]),
3683
3689
  default: f(() => [
3684
- k(g.$slots, "default")
3690
+ k(b.$slots, "default")
3685
3691
  ]),
3686
3692
  _: 2
3687
3693
  }, [
3688
- E(g.$slots, (L, ve) => ({
3694
+ E(b.$slots, (L, ve) => ({
3689
3695
  name: ve,
3690
3696
  fn: f(($e) => [
3691
- k(g.$slots, ve, W(G($e || {})))
3697
+ k(b.$slots, ve, W(G($e || {})))
3692
3698
  ])
3693
3699
  })),
3694
- g.legacyPaginationFooter ? {
3700
+ b.legacyPaginationFooter ? {
3695
3701
  name: "paginatorstart",
3696
3702
  fn: f(() => [
3697
3703
  m("span", {
@@ -3710,13 +3716,13 @@ const ba = {
3710
3716
  ]),
3711
3717
  key: "0"
3712
3718
  } : void 0,
3713
- g.legacyPaginationFooter ? {
3719
+ b.legacyPaginationFooter ? {
3714
3720
  name: "paginatorend",
3715
3721
  fn: f(() => [
3716
3722
  m("span", {
3717
3723
  "data-cy": "legacy-total",
3718
3724
  class: F(a.loading ? "opacity-50" : "")
3719
- }, B(c.value) + " " + B(u(Q)(c.value, "result")) + " across " + B(y.value), 3)
3725
+ }, B(c.value) + " " + B(u(ee)(c.value, "result")) + " across " + B(x.value), 3)
3720
3726
  ]),
3721
3727
  key: "1"
3722
3728
  } : void 0
@@ -3744,7 +3750,7 @@ const ba = {
3744
3750
  const o = (s) => {
3745
3751
  var c;
3746
3752
  const p = (c = e.dropdownOptions) == null ? void 0 : c.find(
3747
- (y) => e.optionValue ? y[e.optionValue] === s : Object.keys(y).every((d) => s.hasOwnProperty(d) && y[d] === s[d])
3753
+ (x) => e.optionValue ? x[e.optionValue] === s : Object.keys(x).every((d) => s.hasOwnProperty(d) && x[d] === s[d])
3748
3754
  );
3749
3755
  return e.optionLabel ? p[e.optionLabel] : p;
3750
3756
  };
@@ -3755,19 +3761,19 @@ const ba = {
3755
3761
  return (l, n) => {
3756
3762
  const o = fe, s = q;
3757
3763
  return r(), v("div", Va, [
3758
- l.dataType === "numeric" ? (r(), b(o, _({
3764
+ l.dataType === "numeric" ? (r(), y(o, P({
3759
3765
  key: 0,
3760
3766
  modelValue: t.value,
3761
3767
  "onUpdate:modelValue": n[0] || (n[0] = (p) => t.value = p),
3762
3768
  modelModifiers: { trim: !0 }
3763
- }, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (r(), b(xe, _({
3769
+ }, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (r(), y(xe, P({
3764
3770
  key: 1,
3765
3771
  modelValue: t.value,
3766
3772
  "onUpdate:modelValue": n[1] || (n[1] = (p) => t.value = p)
3767
3773
  }, l.$attrs, {
3768
3774
  "show-icon": !1,
3769
3775
  "show-on-focus": !0
3770
- }), null, 16, ["modelValue"])) : l.dataType === "select" ? (r(), b(u(ie), _({
3776
+ }), null, 16, ["modelValue"])) : l.dataType === "select" ? (r(), y(u(ie), P({
3771
3777
  key: 2,
3772
3778
  modelValue: t.value,
3773
3779
  "onUpdate:modelValue": n[2] || (n[2] = (p) => t.value = p)
@@ -3781,14 +3787,14 @@ const ba = {
3781
3787
  m("span", {
3782
3788
  class: F({ "filter-placeholder": p === null })
3783
3789
  }, B(a(p, c)), 3),
3784
- l.showClearButton && t.value !== null ? (r(), b(s, {
3790
+ l.showClearButton && t.value !== null ? (r(), y(s, {
3785
3791
  key: 0,
3786
3792
  onClick: X(i, ["prevent"]),
3787
3793
  size: "small",
3788
3794
  class: "bg-transparent border-0 ms-auto p-0 pe-1"
3789
3795
  }, {
3790
3796
  default: f(() => [
3791
- h(u(j), {
3797
+ h(u(_), {
3792
3798
  icon: "bi:x",
3793
3799
  width: "1rem",
3794
3800
  height: "1rem",
@@ -3800,7 +3806,7 @@ const ba = {
3800
3806
  ])
3801
3807
  ]),
3802
3808
  _: 1
3803
- }, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (r(), b(u(re), _({
3809
+ }, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (r(), y(u(re), P({
3804
3810
  key: 3,
3805
3811
  modelValue: t.value,
3806
3812
  "onUpdate:modelValue": n[3] || (n[3] = (p) => t.value = p)
@@ -3810,20 +3816,20 @@ const ba = {
3810
3816
  "option-label": l.optionLabel,
3811
3817
  "option-value": l.optionValue,
3812
3818
  filter: ""
3813
- }), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (r(), b(u(se), _({
3819
+ }), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (r(), y(u(se), P({
3814
3820
  key: 4,
3815
3821
  modelValue: t.value,
3816
3822
  "onUpdate:modelValue": n[4] || (n[4] = (p) => t.value = p),
3817
3823
  modelModifiers: { trim: !0 }
3818
3824
  }, l.$attrs), null, 16, ["modelValue"])),
3819
- l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (r(), b(s, {
3825
+ l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (r(), y(s, {
3820
3826
  key: 5,
3821
3827
  onClick: X(i, ["prevent"]),
3822
3828
  size: "small",
3823
3829
  class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
3824
3830
  }, {
3825
3831
  default: f(() => [
3826
- h(u(j), {
3832
+ h(u(_), {
3827
3833
  icon: "bi:x",
3828
3834
  width: "1rem",
3829
3835
  height: "1rem",
@@ -4892,10 +4898,10 @@ var H = function(e, t, a, i) {
4892
4898
  if (a === "a" && !i) throw new TypeError("Private accessor was defined without a getter");
4893
4899
  if (typeof t == "function" ? e !== t || !i : !t.has(e)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4894
4900
  return a === "m" ? i : a === "a" ? i.call(e) : i ? i.value : t.get(e);
4895
- }, K, ee, Y;
4901
+ }, K, te, Y;
4896
4902
  class we {
4897
4903
  constructor(...t) {
4898
- K.set(this, /* @__PURE__ */ new Map()), ee.set(this, /* @__PURE__ */ new Map()), Y.set(this, /* @__PURE__ */ new Map());
4904
+ K.set(this, /* @__PURE__ */ new Map()), te.set(this, /* @__PURE__ */ new Map()), Y.set(this, /* @__PURE__ */ new Map());
4899
4905
  for (const a of t)
4900
4906
  this.define(a);
4901
4907
  }
@@ -4906,7 +4912,7 @@ class we {
4906
4912
  let o = !0;
4907
4913
  for (let s of l) {
4908
4914
  const p = s.startsWith("*");
4909
- if (s = p ? s.slice(1) : s, n == null || n.add(s), o && H(this, ee, "f").set(i, s), o = !1, p)
4915
+ if (s = p ? s.slice(1) : s, n == null || n.add(s), o && H(this, te, "f").set(i, s), o = !1, p)
4910
4916
  continue;
4911
4917
  const c = H(this, K, "f").get(s);
4912
4918
  if (c && c != i && !a)
@@ -4924,7 +4930,7 @@ class we {
4924
4930
  }
4925
4931
  getExtension(t) {
4926
4932
  var a;
4927
- return typeof t != "string" ? null : (t = (a = t == null ? void 0 : t.split) == null ? void 0 : a.call(t, ";")[0], (t && H(this, ee, "f").get(t.trim().toLowerCase())) ?? null);
4933
+ return typeof t != "string" ? null : (t = (a = t == null ? void 0 : t.split) == null ? void 0 : a.call(t, ";")[0], (t && H(this, te, "f").get(t.trim().toLowerCase())) ?? null);
4928
4934
  }
4929
4935
  getAllExtensions(t) {
4930
4936
  return typeof t != "string" ? null : H(this, Y, "f").get(t.toLowerCase()) ?? null;
@@ -4940,11 +4946,11 @@ class we {
4940
4946
  _getTestState() {
4941
4947
  return {
4942
4948
  types: H(this, K, "f"),
4943
- extensions: H(this, ee, "f")
4949
+ extensions: H(this, te, "f")
4944
4950
  };
4945
4951
  }
4946
4952
  }
4947
- K = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap();
4953
+ K = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap();
4948
4954
  const Oa = new we(ue, ce)._freeze();
4949
4955
  function ke(e, t, a, i) {
4950
4956
  const l = t.flatMap((n) => n.file);
@@ -5006,7 +5012,7 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
5006
5012
  }),
5007
5013
  emits: ["update:modelValue"],
5008
5014
  setup(e) {
5009
- const t = N(e, "modelValue"), a = P(), i = (o) => a.value.toggle(o), l = z(() => e.maxFileInput <= t.value.length), n = (o) => {
5015
+ const t = N(e, "modelValue"), a = j(), i = (o) => a.value.toggle(o), l = z(() => e.maxFileInput <= t.value.length), n = (o) => {
5010
5016
  t.value = ke(o, t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileInput);
5011
5017
  };
5012
5018
  return (o, s) => {
@@ -5029,7 +5035,7 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
5029
5035
  for: "file-input"
5030
5036
  }, [
5031
5037
  k(o.$slots, "button-content", {}, () => [
5032
- h(u(j), {
5038
+ h(u(_), {
5033
5039
  icon: "bi:upload",
5034
5040
  class: "me-2",
5035
5041
  height: "20px",
@@ -5039,7 +5045,7 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
5039
5045
  ])
5040
5046
  ], 2)
5041
5047
  ]),
5042
- o.showDragDropArea ? (r(), b(p, {
5048
+ o.showDragDropArea ? (r(), y(p, {
5043
5049
  link: "",
5044
5050
  class: "ms-auto",
5045
5051
  key: o.acceptedFileTypes.length,
@@ -5082,7 +5088,7 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
5082
5088
  }),
5083
5089
  emits: ["update:modelValue"],
5084
5090
  setup(e) {
5085
- const t = N(e, "modelValue"), a = P(!1), i = z(() => e.maxFileInput <= t.value.length), l = (n) => {
5091
+ const t = N(e, "modelValue"), a = j(!1), i = z(() => e.maxFileInput <= t.value.length), l = (n) => {
5086
5092
  a.value = !1, n.dataTransfer.files.length > e.maxFileInput || i.value ? n.preventDefault() : t.value = ke([...n.dataTransfer.files], t.value, e.acceptedFileTypes.map((o) => o.fileType), e.maxFileSize);
5087
5093
  };
5088
5094
  return (n, o) => (r(), v("div", {
@@ -5093,7 +5099,7 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
5093
5099
  onDrop: X(l, ["prevent"])
5094
5100
  }, [
5095
5101
  t.value.length === 0 ? (r(), v("div", Wa, [
5096
- h(u(j), {
5102
+ h(u(_), {
5097
5103
  icon: "bi:upload",
5098
5104
  class: "me-2",
5099
5105
  height: "20px",
@@ -5133,8 +5139,11 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
5133
5139
  return (l, n) => {
5134
5140
  const o = pe;
5135
5141
  return r(), v("div", Ja, [
5136
- t.uploadStatus === "Uploading" ? (r(), b(o, { key: 0 })) : C("", !0),
5137
- t.uploadStatus !== "Uploading" && t.uploadStatus !== "Not Uploaded" && t.uploadStatus !== "Uploaded" && t.uploadStatus !== "Preparing" ? (r(), b(de, {
5142
+ t.uploadStatus === "Uploading" ? (r(), y(o, {
5143
+ key: 0,
5144
+ "in-line": ""
5145
+ })) : C("", !0),
5146
+ t.uploadStatus !== "Uploading" && t.uploadStatus !== "Not Uploaded" && t.uploadStatus !== "Uploaded" && t.uploadStatus !== "Preparing" ? (r(), y(de, {
5138
5147
  key: 1,
5139
5148
  id: "upload-status-alert",
5140
5149
  severity: a.value,
@@ -5176,25 +5185,25 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
5176
5185
  }),
5177
5186
  emits: /* @__PURE__ */ R(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
5178
5187
  setup(e, { emit: t }) {
5179
- const a = N(e, "file"), i = N(e, "blobFileName"), l = N(e, "uploadStatus"), n = t, o = P(a.value.name), s = P(""), p = P(0), c = P(), y = z(() => e.acceptedFileTypes.some(({ fileType: x }) => x === a.value.type)), d = z(() => a.value.size <= e.maxFileSize), $ = z(() => a.value.type ? a.value.type : Ua().getType(a.value.name)), T = () => {
5188
+ const a = N(e, "file"), i = N(e, "blobFileName"), l = N(e, "uploadStatus"), n = t, o = j(a.value.name), s = j(""), p = j(0), c = j(), x = z(() => e.acceptedFileTypes.some(({ fileType: g }) => g === a.value.type)), d = z(() => a.value.size <= e.maxFileSize), $ = z(() => a.value.type ? a.value.type : Ua().getType(a.value.name)), T = () => {
5180
5189
  o.value != null && (D(), a.value = new File([a.value], o.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
5181
5190
  }, D = () => {
5182
- let x = o.value.split("."), w = Oa.getExtension($.value), I = o.value.split(".").pop();
5183
- x.length === 1 ? I && I.length > 0 && (o.value = [o.value, w].join(".")) : x.length > 1 && I !== w && (o.value = o.value.replace(I, w));
5191
+ let g = o.value.split("."), w = Oa.getExtension($.value), I = o.value.split(".").pop();
5192
+ g.length === 1 ? I && I.length > 0 && (o.value = [o.value, w].join(".")) : g.length > 1 && I !== w && (o.value = o.value.replace(I, w));
5184
5193
  }, O = async () => {
5185
- if (!y.value || !d.value) {
5186
- l.value = y.value ? "InvalidFileSize" : "InvalidFileType";
5194
+ if (!x.value || !d.value) {
5195
+ l.value = x.value ? "InvalidFileSize" : "InvalidFileType";
5187
5196
  return;
5188
5197
  }
5189
5198
  l.value = "Preparing", c.value = new AbortController();
5190
- const [x, w] = await e.getFileUrlAction(a.value.name);
5191
- if (!x) {
5199
+ const [g, w] = await e.getFileUrlAction(a.value.name);
5200
+ if (!g) {
5192
5201
  l.value = "Failed";
5193
5202
  return;
5194
5203
  }
5195
5204
  try {
5196
5205
  l.value = "Uploading";
5197
- const I = new ge(x), g = {
5206
+ const I = new ge(g), b = {
5198
5207
  abortSignal: c.value.signal,
5199
5208
  onProgress: (V) => p.value = V.loadedBytes,
5200
5209
  blobHTTPHeaders: {
@@ -5203,7 +5212,7 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
5203
5212
  },
5204
5213
  tags: { temp: "true" }
5205
5214
  };
5206
- await I.uploadData(a.value, g), s.value = x, l.value = "Uploaded", i.value = w;
5215
+ await I.uploadData(a.value, b), s.value = g, l.value = "Uploaded", i.value = w;
5207
5216
  } catch (I) {
5208
5217
  if (I.name === "AbortError") {
5209
5218
  l.value = "Aborted";
@@ -5216,14 +5225,14 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
5216
5225
  };
5217
5226
  return ne(() => {
5218
5227
  e.autoUploadToBlob && l.value != "Uploaded" && O();
5219
- }), (x, w) => {
5228
+ }), (g, w) => {
5220
5229
  const I = q;
5221
5230
  return r(), v("div", {
5222
5231
  class: "py-4 px-3 d-flex",
5223
5232
  "data-cy": `file-info-${a.value.name}`
5224
5233
  }, [
5225
5234
  m("div", null, [
5226
- u(Aa)(a.value.type) ? (r(), b(u(Ye), {
5235
+ u(Aa)(a.value.type) ? (r(), y(u(Ye), {
5227
5236
  key: 0,
5228
5237
  id: "thumbnail-image",
5229
5238
  "image-class": "image-file-thumbnail border",
@@ -5231,7 +5240,7 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
5231
5240
  alt: a.value.name,
5232
5241
  width: "75px",
5233
5242
  preview: ""
5234
- }, null, 8, ["src", "alt"])) : (r(), b(u(j), {
5243
+ }, null, 8, ["src", "alt"])) : (r(), y(u(_), {
5235
5244
  key: 1,
5236
5245
  id: "file-earmark",
5237
5246
  icon: "bi:file-earmark",
@@ -5241,12 +5250,12 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
5241
5250
  ]),
5242
5251
  m("div", Xa, [
5243
5252
  m("div", null, [
5244
- x.editableFileName ? (r(), b(Wt, {
5253
+ g.editableFileName ? (r(), y(Wt, {
5245
5254
  key: 0,
5246
5255
  id: "edit-file-name",
5247
5256
  modelValue: o.value,
5248
- "onUpdate:modelValue": w[0] || (w[0] = (g) => o.value = g),
5249
- rules: x.customFileNameRules,
5257
+ "onUpdate:modelValue": w[0] || (w[0] = (b) => o.value = b),
5258
+ rules: g.customFileNameRules,
5250
5259
  name: a.value.name,
5251
5260
  "complete-action": T
5252
5261
  }, null, 8, ["modelValue", "rules", "name"])) : (r(), v("span", Qa, B(o.value), 1))
@@ -5255,42 +5264,42 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
5255
5264
  m("span", ti, "File size: " + B(u(me)(a.value.size)), 1)
5256
5265
  ]),
5257
5266
  m("div", ai, [
5258
- (r(), b(Ka, {
5267
+ (r(), y(Ka, {
5259
5268
  key: l.value,
5260
5269
  "file-size": a.value.size,
5261
5270
  "upload-status": l.value,
5262
5271
  "bytes-uploaded": p.value,
5263
- "max-file-size": x.maxFileSize
5272
+ "max-file-size": g.maxFileSize
5264
5273
  }, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
5265
- l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (r(), b(I, {
5274
+ l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (r(), y(I, {
5266
5275
  key: 0,
5267
5276
  link: "",
5268
5277
  onClick: O
5269
5278
  }, {
5270
5279
  default: f(() => [
5271
- h(u(j), {
5280
+ h(u(_), {
5272
5281
  icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
5273
5282
  }, null, 8, ["icon"])
5274
5283
  ]),
5275
5284
  _: 1
5276
5285
  })) : C("", !0),
5277
- l.value === "Uploading" ? (r(), b(I, {
5286
+ l.value === "Uploading" ? (r(), y(I, {
5278
5287
  key: 1,
5279
5288
  link: "",
5280
- onClick: w[1] || (w[1] = (g) => c.value.abort())
5289
+ onClick: w[1] || (w[1] = (b) => c.value.abort())
5281
5290
  }, {
5282
5291
  default: f(() => [
5283
- h(u(j), { icon: "bi:x-circle-fill" })
5292
+ h(u(_), { icon: "bi:x-circle-fill" })
5284
5293
  ]),
5285
5294
  _: 1
5286
- })) : (r(), b(I, {
5295
+ })) : (r(), y(I, {
5287
5296
  key: 2,
5288
5297
  link: "",
5289
5298
  onClick: U,
5290
5299
  id: "delete-button"
5291
5300
  }, {
5292
5301
  default: f(() => [
5293
- h(u(j), { icon: "bi:trash" })
5302
+ h(u(_), { icon: "bi:trash" })
5294
5303
  ]),
5295
5304
  _: 1
5296
5305
  }))
@@ -5331,7 +5340,7 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
5331
5340
  t.value = t.value.filter((n) => n.file != l);
5332
5341
  };
5333
5342
  return (l, n) => (r(), v("div", ri, [
5334
- h(Ha, _(a, {
5343
+ h(Ha, P(a, {
5335
5344
  modelValue: t.value,
5336
5345
  "onUpdate:modelValue": n[0] || (n[0] = (o) => t.value = o)
5337
5346
  }), null, 16, ["modelValue"]),
@@ -5345,7 +5354,7 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
5345
5354
  }, {
5346
5355
  default: f(() => [
5347
5356
  (r(!0), v(A, null, E(t.value, ({ file: o }, s) => (r(), v("div", null, [
5348
- (r(), b(ii, _({
5357
+ (r(), y(ii, P({
5349
5358
  key: o.name,
5350
5359
  class: s === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
5351
5360
  file: t.value[s].file,
@@ -5375,7 +5384,7 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
5375
5384
  },
5376
5385
  emits: ["update:modelValue"],
5377
5386
  setup(e) {
5378
- const t = N(e, "modelValue"), a = P(), i = P(!1), l = (n) => {
5387
+ const t = N(e, "modelValue"), a = j(), i = j(!1), l = (n) => {
5379
5388
  a.value.toggle(n);
5380
5389
  };
5381
5390
  return (n, o) => (r(), v(A, null, [
@@ -5386,11 +5395,11 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
5386
5395
  default: f(() => [
5387
5396
  m("div", pi, [
5388
5397
  m("div", ci, [
5389
- h(u(j), { icon: "bi:layout-three-columns" })
5398
+ h(u(_), { icon: "bi:layout-three-columns" })
5390
5399
  ]),
5391
5400
  M(" Columns (" + B(t.value.filter((s) => s.selected).length ?? 0) + "/" + B(t.value.length ?? 0) + ") ", 1),
5392
5401
  m("div", ui, [
5393
- h(u(j), {
5402
+ h(u(_), {
5394
5403
  icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
5395
5404
  }, null, 8, ["icon"])
5396
5405
  ])
@@ -5435,14 +5444,14 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
5435
5444
  setup(e) {
5436
5445
  return (t, a) => {
5437
5446
  const i = Je;
5438
- return r(), b(i, W(G({ ...t.$attrs })), ae({
5447
+ return r(), y(i, W(G({ ...t.$attrs })), ae({
5439
5448
  toggleicon: f(({ collapsed: l }) => [
5440
- l ? (r(), b(u(j), {
5449
+ l ? (r(), y(u(_), {
5441
5450
  key: 0,
5442
5451
  "data-cy": "message-icon",
5443
5452
  icon: "bi:chevron-down"
5444
5453
  })) : C("", !0),
5445
- l ? C("", !0) : (r(), b(u(j), {
5454
+ l ? C("", !0) : (r(), y(u(_), {
5446
5455
  key: 1,
5447
5456
  "data-cy": "message-icon",
5448
5457
  icon: "bi:chevron-up"
@@ -5486,7 +5495,7 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
5486
5495
  ]
5487
5496
  })
5488
5497
  }));
5489
- return (i, l) => (r(), b(u(Ke), _({ ...i.$attrs, ...t }, {
5498
+ return (i, l) => (r(), y(u(Ke), P({ ...i.$attrs, ...t }, {
5490
5499
  severity: t.severity,
5491
5500
  pt: a.value
5492
5501
  }), null, 16, ["severity", "pt"]));
@@ -5525,7 +5534,7 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
5525
5534
  a.value = a.value === n.value && t.allowEmpty ? null : n.value;
5526
5535
  };
5527
5536
  return (n, o) => (r(), v("div", fi, [
5528
- (r(!0), v(A, null, E(n.options, (s, p) => (r(), b(vi, {
5537
+ (r(!0), v(A, null, E(n.options, (s, p) => (r(), y(vi, {
5529
5538
  key: p,
5530
5539
  onLabel: s.label,
5531
5540
  offLabel: s.label,
@@ -5552,7 +5561,7 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
5552
5561
  pcRejectButton: { root: "btn btn-outline-primary btn-sm" },
5553
5562
  pcAcceptButton: { root: "btn btn-primary btn-sm" }
5554
5563
  }));
5555
- return (a, i) => (r(), b(u(Ze), _({ pt: t.value }, { ...a.$attrs, ...a.$props }), {
5564
+ return (a, i) => (r(), y(u(Ze), P({ pt: t.value }, { ...a.$attrs, ...a.$props }), {
5556
5565
  default: f(() => [
5557
5566
  (r(!0), v(A, null, E(a.$slots, (l, n) => k(a.$slots, n, { slot: n })), 256))
5558
5567
  ]),