@3squared/forge-ui-3 1.1.1 → 1.1.3

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,11 +1,11 @@
1
1
  import ge from "primevue/message";
2
- import { defineComponent as F, openBlock as r, createBlock as w, normalizeProps as Q, guardReactiveProps as ee, withCtx as f, createElementVNode as c, normalizeClass as B, unref as p, createCommentVNode as S, createVNode as y, renderSlot as $, ref as P, createElementBlock as b, Fragment as N, mergeProps as V, mergeModels as R, useModel as U, computed as x, createTextVNode as z, toDisplayString as h, withDirectives as j, vShow as q, createSlots as te, renderList as H, onMounted as le, isRef as se, withKeys as J, useAttrs as he, withModifiers as Y, normalizeStyle as we, watch as de } from "vue";
2
+ import { defineComponent as F, openBlock as r, createBlock as w, normalizeProps as Q, guardReactiveProps as ee, withCtx as f, createElementVNode as m, normalizeClass as B, unref as p, createCommentVNode as S, createVNode as y, renderSlot as $, ref as P, createElementBlock as b, Fragment as N, mergeProps as V, mergeModels as R, useModel as U, computed as k, createTextVNode as z, toDisplayString as h, withDirectives as j, vShow as q, createSlots as te, renderList as H, onMounted as le, isRef as se, withKeys as J, useAttrs as he, withModifiers as Y, normalizeStyle as we, watch as de } from "vue";
3
3
  import { Icon as _ } from "@iconify/vue";
4
4
  import E from "primevue/button";
5
- import ke from "primevue/toast";
5
+ import xe from "primevue/toast";
6
6
  import ue from "primevue/checkbox";
7
7
  import { useField as K } from "vee-validate";
8
- import xe from "primevue/progressspinner";
8
+ import ke from "primevue/progressspinner";
9
9
  import $e from "primevue/dialog";
10
10
  import ie from "primevue/inputtext";
11
11
  import { vOnClickOutside as Be } from "@vueuse/components";
@@ -919,7 +919,7 @@ const Ue = {
919
919
  const a = ge;
920
920
  return r(), w(a, Q(ee({ ...l.$attrs, ...t })), {
921
921
  messageicon: f(() => [
922
- c("div", {
922
+ m("div", {
923
923
  class: B(t.icon ? "me-2 pe-1" : "")
924
924
  }, [
925
925
  t.icon ? (r(), w(p(_), {
@@ -941,7 +941,7 @@ const Ue = {
941
941
  }, 16);
942
942
  };
943
943
  }
944
- }), ka = /* @__PURE__ */ F({
944
+ }), xa = /* @__PURE__ */ F({
945
945
  __name: "ForgeActionButton",
946
946
  props: {
947
947
  action: {},
@@ -967,7 +967,7 @@ const Ue = {
967
967
  disabled: t.value || l.disabled,
968
968
  onClick: o
969
969
  }), null, 16, ["loading", "disabled"]),
970
- y(p(ke))
970
+ y(p(xe))
971
971
  ], 64);
972
972
  };
973
973
  }
@@ -1001,44 +1001,46 @@ const Ue = {
1001
1001
  }),
1002
1002
  emits: ["update:modelValue"],
1003
1003
  setup(e) {
1004
- const t = e, l = U(e, "modelValue"), {
1005
- handleChange: o,
1006
- errors: a,
1007
- errorMessage: n
1008
- } = K(() => t.name ?? "", void 0, {
1009
- type: "checkbox",
1010
- checkedValue: l.value
1011
- }), d = x(() => a.value.length > 0);
1012
- return (i, u) => {
1013
- const m = ue;
1004
+ const t = e, l = U(e, "modelValue"), { handleChange: o, errors: a, errorMessage: n } = K(
1005
+ () => t.name ?? "",
1006
+ void 0,
1007
+ {
1008
+ type: "checkbox",
1009
+ checkedValue: l.value
1010
+ }
1011
+ ), d = (u) => {
1012
+ t.name ? o(u) : l.value = u;
1013
+ }, i = k(() => a.value.length > 0);
1014
+ return (u, c) => {
1015
+ const v = ue;
1014
1016
  return r(), b("div", ut, [
1015
- c("div", V({
1017
+ m("div", V({
1016
1018
  class: "d-flex cursor-pointer",
1017
1019
  "data-cy": "checkbox-container",
1018
- onClick: u[2] || (u[2] = (v) => p(o)(l.value))
1019
- }, { ...i.$attrs }), [
1020
- y(m, V({ ...t }, {
1020
+ onClick: c[2] || (c[2] = (s) => d(l.value))
1021
+ }, { ...u.$attrs }), [
1022
+ y(v, V({ ...t }, {
1021
1023
  binary: "",
1022
1024
  modelValue: l.value,
1023
- "onUpdate:modelValue": u[0] || (u[0] = (v) => l.value = v),
1025
+ "onUpdate:modelValue": c[0] || (c[0] = (s) => l.value = s),
1024
1026
  "input-id": t.name,
1025
- "input-class": { "is-invalid": d.value }
1027
+ "input-class": { "is-invalid": i.value }
1026
1028
  }), null, 16, ["modelValue", "input-id", "input-class"]),
1027
- c("label", {
1029
+ m("label", {
1028
1030
  for: t.name,
1029
- onClick: u[1] || (u[1] = (v) => p(o)(l.value)),
1030
- class: B([`${t.disabled ? "opacity-50" : "cursor-pointer"} ${d.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
1031
+ onClick: c[1] || (c[1] = (s) => d(!l.value)),
1032
+ class: B([`${t.disabled ? "opacity-50" : "cursor-pointer"} ${i.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
1031
1033
  }, [
1032
- $(i.$slots, "default", {}, () => [
1034
+ $(u.$slots, "default", {}, () => [
1033
1035
  z(h(t.label), 1)
1034
1036
  ])
1035
1037
  ], 10, ct)
1036
1038
  ], 16),
1037
- j(c("small", {
1039
+ j(m("small", {
1038
1040
  "data-cy": "error",
1039
1041
  class: "text-invalid"
1040
1042
  }, h(p(n)), 513), [
1041
- [q, d.value]
1043
+ [q, i.value]
1042
1044
  ])
1043
1045
  ]);
1044
1046
  };
@@ -1051,7 +1053,7 @@ const Ue = {
1051
1053
  setup(e) {
1052
1054
  const t = e;
1053
1055
  return (l, o) => {
1054
- const a = xe;
1056
+ const a = ke;
1055
1057
  return r(), b("div", pt, [
1056
1058
  y(a, {
1057
1059
  "animation-duration": ".75",
@@ -1060,7 +1062,7 @@ const Ue = {
1060
1062
  ]);
1061
1063
  };
1062
1064
  }
1063
- }), vt = ["href", "target"], xa = /* @__PURE__ */ F({
1065
+ }), vt = ["href", "target"], ka = /* @__PURE__ */ F({
1064
1066
  __name: "ForgeLink",
1065
1067
  props: {
1066
1068
  url: {},
@@ -1078,7 +1080,7 @@ const Ue = {
1078
1080
  iconName: {}
1079
1081
  },
1080
1082
  setup(e) {
1081
- const t = x(() => ({
1083
+ const t = k(() => ({
1082
1084
  [`link-${e.severity}`]: e.severity,
1083
1085
  [`link-underline-${e.underlineSeverity}`]: e.underlineSeverity,
1084
1086
  [`link-opacity-${e.opacity}`]: e.opacity,
@@ -1087,7 +1089,7 @@ const Ue = {
1087
1089
  [`link-underline-opacity-${e.underlineHoverOpacity ?? e.hoverOpacity}-hover`]: e.underlineHoverOpacity || e.hoverOpacity,
1088
1090
  [`link-offset-${e.underlineOffset}`]: e.underlineOffset,
1089
1091
  "icon-link icon-link-hover": e.animateIconOnHover
1090
- })), l = x(() => ({
1092
+ })), l = k(() => ({
1091
1093
  "order-2": e.positionIconEnd,
1092
1094
  "me-1": !e.positionIconEnd && !e.animateIconOnHover,
1093
1095
  "ms-1": e.positionIconEnd && !e.animateIconOnHover,
@@ -1188,7 +1190,7 @@ const bt = { key: 0 }, ft = {
1188
1190
  l.value = !0;
1189
1191
  }, u = () => {
1190
1192
  t.value = !1;
1191
- }, m = async () => {
1193
+ }, c = async () => {
1192
1194
  if (o.onConfirm) {
1193
1195
  a.value = !0, n.value.hasError = !1;
1194
1196
  try {
@@ -1201,7 +1203,7 @@ const bt = { key: 0 }, ft = {
1201
1203
  }
1202
1204
  a.value = !1;
1203
1205
  }
1204
- }, v = x(() => ({
1206
+ }, v = k(() => ({
1205
1207
  root: [
1206
1208
  "modal modal-dialog modal-content h-auto m-0",
1207
1209
  {
@@ -1247,11 +1249,11 @@ const bt = { key: 0 }, ft = {
1247
1249
  "data-cy": "error"
1248
1250
  }, {
1249
1251
  default: f(() => [
1250
- c("p", {
1252
+ m("p", {
1251
1253
  class: B(n.value.message.length > 0 ? "my-auto" : "mb-0")
1252
1254
  }, h(n.value.header), 3),
1253
1255
  n.value.message.length > 0 ? (r(), b("ul", bt, [
1254
- (r(!0), b(N, null, H(n.value.message, (k) => (r(), b("li", { key: k }, h(k), 1))), 128))
1256
+ (r(!0), b(N, null, H(n.value.message, (x) => (r(), b("li", { key: x }, h(x), 1))), 128))
1255
1257
  ])) : S("", !0)
1256
1258
  ]),
1257
1259
  _: 1
@@ -1265,7 +1267,7 @@ const bt = { key: 0 }, ft = {
1265
1267
  s.showFooter ? {
1266
1268
  name: "footer",
1267
1269
  fn: f(() => [
1268
- c("div", ft, [
1270
+ m("div", ft, [
1269
1271
  y(T, {
1270
1272
  label: s.cancelText,
1271
1273
  class: B(o.cancelClass),
@@ -1277,7 +1279,7 @@ const bt = { key: 0 }, ft = {
1277
1279
  y(T, {
1278
1280
  label: s.submitText,
1279
1281
  class: B([o.submitClass, "ms-auto"]),
1280
- onClick: m,
1282
+ onClick: c,
1281
1283
  id: "submit-button",
1282
1284
  type: o.submitButtonType
1283
1285
  }, null, 8, ["label", "class", "type"])
@@ -1288,7 +1290,7 @@ const bt = { key: 0 }, ft = {
1288
1290
  ]), 1040, ["pt"]);
1289
1291
  };
1290
1292
  }
1291
- }), gt = ["id"], ht = { key: 0 }, wt = { key: 0 }, kt = { class: "d-flex justify-content-between align-items-center position-relative" }, xt = { key: 1 }, $t = { "data-cy": "readonly-value" }, Bt = /* @__PURE__ */ F({
1293
+ }), gt = ["id"], ht = { key: 0 }, wt = { key: 0 }, xt = { class: "d-flex justify-content-between align-items-center position-relative" }, kt = { key: 1 }, $t = { "data-cy": "readonly-value" }, Bt = /* @__PURE__ */ F({
1292
1294
  __name: "ForgeInlineEditor",
1293
1295
  props: /* @__PURE__ */ R({
1294
1296
  name: { default: "" },
@@ -1321,25 +1323,25 @@ const bt = { key: 0 }, ft = {
1321
1323
  o.value = !o.value;
1322
1324
  }, u = () => {
1323
1325
  s.value = null;
1324
- }, { errorMessage: m, errors: v, value: s } = K(() => t.name, void 0, {
1326
+ }, { errorMessage: c, errors: v, value: s } = K(() => t.name, void 0, {
1325
1327
  initialValue: l.value
1326
1328
  });
1327
1329
  le(() => {
1328
1330
  s.value = l.value;
1329
1331
  });
1330
- const C = x(() => v.value.length > 0);
1332
+ const C = k(() => v.value.length > 0);
1331
1333
  return (T, M) => {
1332
1334
  const I = ie, O = E;
1333
1335
  return r(), b("div", {
1334
1336
  id: t.name
1335
1337
  }, [
1336
- T.readonly ? (r(), b("div", xt, [
1338
+ T.readonly ? (r(), b("div", kt, [
1337
1339
  $(T.$slots, "default", {}, () => [
1338
- c("span", $t, h(p(s)), 1)
1340
+ m("span", $t, h(p(s)), 1)
1339
1341
  ])
1340
1342
  ])) : (r(), b("div", ht, [
1341
1343
  o.value ? (r(), b("div", wt, [
1342
- j((r(), b("div", kt, [
1344
+ j((r(), b("div", xt, [
1343
1345
  $(T.$slots, "editor", {
1344
1346
  class: B({ "is-invalid": C.value }),
1345
1347
  editFinished: d,
@@ -1377,7 +1379,7 @@ const bt = { key: 0 }, ft = {
1377
1379
  onFocus: n
1378
1380
  }, [
1379
1381
  $(T.$slots, "default", {}, () => [
1380
- c("div", {
1382
+ m("div", {
1381
1383
  class: B(["pe-2 cursor-pointer", { "text-invalid": C.value }]),
1382
1384
  "data-cy": "value"
1383
1385
  }, h(p(s) ? p(s) : "Click to edit"), 3)
@@ -1398,10 +1400,10 @@ const bt = { key: 0 }, ft = {
1398
1400
  })
1399
1401
  ], 32))
1400
1402
  ])),
1401
- j(c("small", {
1403
+ j(m("small", {
1402
1404
  "data-cy": "error",
1403
1405
  class: "text-invalid"
1404
- }, h(p(m)), 513), [
1406
+ }, h(p(c)), 513), [
1405
1407
  [q, C.value]
1406
1408
  ])
1407
1409
  ], 8, gt);
@@ -1424,7 +1426,7 @@ const bt = { key: 0 }, ft = {
1424
1426
  unstyled: { type: Boolean }
1425
1427
  },
1426
1428
  setup(e) {
1427
- const t = e, l = x(() => ({
1429
+ const t = e, l = k(() => ({
1428
1430
  root: () => ({
1429
1431
  class: [
1430
1432
  "navbar container-fluid navbar-expand-lg",
@@ -1458,7 +1460,7 @@ const bt = { key: 0 }, ft = {
1458
1460
  "data-cy": "navbar"
1459
1461
  }), te({
1460
1462
  start: f(() => [
1461
- c("a", {
1463
+ m("a", {
1462
1464
  href: o.logoUrl,
1463
1465
  class: "navbar-brand ms-3",
1464
1466
  "data-cy": "logo"
@@ -1509,11 +1511,11 @@ const bt = { key: 0 }, ft = {
1509
1511
  L(A);
1510
1512
  }, a = he(), n = t, { errors: d, value: i, errorMessage: u } = K(() => l.name, void 0, {
1511
1513
  initialValue: a.modelValue
1512
- }), m = P(!1), v = x(() => ({
1514
+ }), c = P(!1), v = k(() => ({
1513
1515
  multiple: !0,
1514
1516
  label: "label",
1515
1517
  trackBy: "id",
1516
- showPointer: !m.value,
1518
+ showPointer: !c.value,
1517
1519
  placeholder: a.searchable === null || a.searchable ? "Search" : "Select",
1518
1520
  allowEmpty: !0,
1519
1521
  selectValue: "",
@@ -1522,12 +1524,12 @@ const bt = { key: 0 }, ft = {
1522
1524
  searchable: !!(a.searchable === null || a.searchable) && a.modelValue.length === a.options.length,
1523
1525
  async: !1,
1524
1526
  ...a
1525
- })), s = x(() => `forge-multiselect-${l.severity}`), C = x(() => `multiselect__option ${m.value ? " multiselect__option--highlight" : ""} ${T.value ? " multiselect__option--selected" : ""}`), T = x(() => v.value && !(v.value.multiple || !l.showSelectAll || v.value.async) ? !1 : a.modelValue.length === a.options.length), M = x(() => d.value.length > 0), I = x(() => !!((a.allowEmpty == null || a.allowEmpty) && l.showClearSelection && (v.value.multiple ? a.modelValue.length > 0 : a.modelValue))), O = () => m.value = !0, g = () => m.value = !1, k = () => {
1527
+ })), s = k(() => `forge-multiselect-${l.severity}`), C = k(() => `multiselect__option ${c.value ? " multiselect__option--highlight" : ""} ${T.value ? " multiselect__option--selected" : ""}`), T = k(() => v.value && !(v.value.multiple || !l.showSelectAll || v.value.async) ? !1 : a.modelValue.length === a.options.length), M = k(() => d.value.length > 0), I = k(() => !!((a.allowEmpty == null || a.allowEmpty) && l.showClearSelection && (v.value.multiple ? a.modelValue.length > 0 : a.modelValue))), O = () => c.value = !0, g = () => c.value = !1, x = () => {
1526
1528
  i.value = v.value.multiple ? [] : null, n("update:modelValue", i.value);
1527
1529
  }, G = (L) => {
1528
1530
  n("update:modelValue", l.selectValue ? L.map((D) => D[l.selectValue]) : L);
1529
1531
  }, Z = (L) => a.modelValue !== null ? a.modelValue.some((D) => v.value.selectValue ? L[l.selectValue] === D : L.id === D.id && L.label === D.label) : !1, ne = () => {
1530
- T.value ? k() : (i.value = [...a.options], n("update:modelValue", [...a.options]));
1532
+ T.value ? x() : (i.value = [...a.options], n("update:modelValue", [...a.options]));
1531
1533
  };
1532
1534
  return (L, D) => (r(), b(N, null, [
1533
1535
  y(p(_e), V(v.value, {
@@ -1540,12 +1542,12 @@ const bt = { key: 0 }, ft = {
1540
1542
  modelValue: p(i)
1541
1543
  }), te({
1542
1544
  caret: f(({ toggle: A }) => [
1543
- c("div", _t, [
1545
+ m("div", _t, [
1544
1546
  I.value ? (r(), w(p(_), {
1545
1547
  key: 0,
1546
1548
  icon: "bi:x",
1547
1549
  class: "my-auto text-black multiselect__clear",
1548
- onMousedown: D[0] || (D[0] = Y((W) => k(), ["prevent", "stop"])),
1550
+ onMousedown: D[0] || (D[0] = Y((W) => x(), ["prevent", "stop"])),
1549
1551
  "data-cy": "clear",
1550
1552
  height: "18px",
1551
1553
  width: "18px"
@@ -1558,8 +1560,8 @@ const bt = { key: 0 }, ft = {
1558
1560
  ])
1559
1561
  ]),
1560
1562
  tag: f(({ option: A, remove: W }) => [
1561
- c("div", Pt, [
1562
- c("div", Mt, h(A.label), 1),
1563
+ m("div", Pt, [
1564
+ m("div", Mt, h(A.label), 1),
1563
1565
  y(p(_), {
1564
1566
  icon: "bi:x",
1565
1567
  class: "my-auto multiselect__tag-icon",
@@ -1577,23 +1579,23 @@ const bt = { key: 0 }, ft = {
1577
1579
  v.value.multiple && L.showSelectAll && !v.value.async ? {
1578
1580
  name: "beforeList",
1579
1581
  fn: f(() => [
1580
- c("li", {
1582
+ m("li", {
1581
1583
  class: "multiselect__element",
1582
1584
  onClick: ne,
1583
1585
  onMouseover: O,
1584
1586
  onMouseleave: g,
1585
1587
  "data-cy": "toggle-all"
1586
1588
  }, [
1587
- c("div", {
1589
+ m("div", {
1588
1590
  class: B(["d-flex py-1", C.value])
1589
1591
  }, [
1590
- c("input", {
1592
+ m("input", {
1591
1593
  checked: T.value,
1592
1594
  name: "selected",
1593
1595
  type: "checkbox",
1594
1596
  class: "form-check-input px-2 py-2 rounded ms-2 cursor-pointer"
1595
1597
  }, null, 8, Vt),
1596
- D[2] || (D[2] = c("div", { class: "my-auto ms-1" }, "Toggle all", -1))
1598
+ D[2] || (D[2] = m("div", { class: "my-auto ms-1" }, "Toggle all", -1))
1597
1599
  ], 2)
1598
1600
  ], 32)
1599
1601
  ]),
@@ -1602,23 +1604,23 @@ const bt = { key: 0 }, ft = {
1602
1604
  v.value.multiple ? {
1603
1605
  name: "option",
1604
1606
  fn: f(({ option: A }) => [
1605
- c("div", {
1607
+ m("div", {
1606
1608
  class: "d-flex py-1",
1607
1609
  "data-cy": A.label
1608
1610
  }, [
1609
- c("input", {
1611
+ m("input", {
1610
1612
  checked: Z(A),
1611
1613
  name: "selected",
1612
1614
  type: "checkbox",
1613
1615
  class: "form-check-input px-2 py-2 rounded ms-2 cursor-pointer"
1614
1616
  }, null, 8, Ct),
1615
- c("div", Tt, h(A[v.value.label]), 1)
1617
+ m("div", Tt, h(A[v.value.label]), 1)
1616
1618
  ], 8, St)
1617
1619
  ]),
1618
1620
  key: "1"
1619
1621
  } : void 0
1620
1622
  ]), 1040, ["class", "modelValue"]),
1621
- j(c("small", {
1623
+ j(m("small", {
1622
1624
  "data-cy": "error",
1623
1625
  class: "invalid-feedback"
1624
1626
  }, h(p(u)), 513), [
@@ -1660,7 +1662,7 @@ const bt = { key: 0 }, ft = {
1660
1662
  class: B(a.orientation === "column" ? "row" : ""),
1661
1663
  "data-cy": "multiselect-preview"
1662
1664
  }, [
1663
- c("div", {
1665
+ m("div", {
1664
1666
  class: B(a.orientation === "row" ? "col-12 mb-1" : "col"),
1665
1667
  "data-cy": "multiselect-container"
1666
1668
  }, [
@@ -1683,22 +1685,22 @@ const bt = { key: 0 }, ft = {
1683
1685
  }, 16, ["modelValue", "limit-text", "options"]),
1684
1686
  $(a.$slots, "after-multi-select")
1685
1687
  ], 2),
1686
- c("div", {
1688
+ m("div", {
1687
1689
  class: B(a.orientation === "row" ? "col-12" : "col"),
1688
1690
  "data-cy": "options-preview"
1689
1691
  }, [
1690
- c("div", {
1692
+ m("div", {
1691
1693
  style: we({ height: a.height }),
1692
1694
  class: "overflow-auto"
1693
1695
  }, [
1694
- c("div", zt, [
1696
+ m("div", zt, [
1695
1697
  a.title ? (r(), b("div", Ot, h(a.title), 1)) : S("", !0),
1696
1698
  (r(!0), b(N, null, H(l.value, (i) => (r(), b("div", {
1697
1699
  key: i.id,
1698
1700
  class: "p-2 item d-flex justify-content-between align-items-center"
1699
1701
  }, [
1700
1702
  $(a.$slots, "list-item", { item: i }, () => [
1701
- c("span", Dt, h(i.shortLabel ? i.shortLabel : i.label), 1)
1703
+ m("span", Dt, h(i.shortLabel ? i.shortLabel : i.label), 1)
1702
1704
  ]),
1703
1705
  a.canRemoveItemFromPreview ? (r(), w(d, {
1704
1706
  key: 0,
@@ -1737,8 +1739,8 @@ const bt = { key: 0 }, ft = {
1737
1739
  setup(e) {
1738
1740
  const t = e;
1739
1741
  return (l, o) => (r(), b("div", At, [
1740
- c("h3", Nt, h(t.title), 1),
1741
- c("div", Et, [
1742
+ m("h3", Nt, h(t.title), 1),
1743
+ m("div", Et, [
1742
1744
  $(l.$slots, "default")
1743
1745
  ])
1744
1746
  ]));
@@ -1820,7 +1822,7 @@ const bt = { key: 0 }, ft = {
1820
1822
  initialValue: l.value
1821
1823
  }), u = () => {
1822
1824
  i(null), l.value = null;
1823
- }, m = x(() => o.value.length > 0), v = x(() => ({
1825
+ }, c = k(() => o.value.length > 0), v = k(() => ({
1824
1826
  day: ({ context: s }) => ({
1825
1827
  class: [
1826
1828
  `text-center date-${t.severity === void 0 ? "primary" : t.severity}`,
@@ -1914,11 +1916,11 @@ const bt = { key: 0 }, ft = {
1914
1916
  return (s, C) => {
1915
1917
  const T = Ve;
1916
1918
  return r(), b(N, null, [
1917
- c("div", Lt, [
1918
- c("span", Rt, [
1919
+ m("div", Lt, [
1920
+ m("span", Rt, [
1919
1921
  $(s.$slots, "before")
1920
1922
  ]),
1921
- c("div", jt, [
1923
+ m("div", jt, [
1922
1924
  y(T, V({ ...t, ...s.$attrs }, {
1923
1925
  pt: v.value,
1924
1926
  modelValue: l.value,
@@ -1927,12 +1929,12 @@ const bt = { key: 0 }, ft = {
1927
1929
  p(n)
1928
1930
  ],
1929
1931
  onBlur: p(d),
1930
- "input-class": { "datepicker-invalid": m.value }
1932
+ "input-class": { "datepicker-invalid": c.value }
1931
1933
  }), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "onBlur", "input-class"]),
1932
1934
  j(y(p(_), {
1933
1935
  "data-cy": "icon",
1934
1936
  icon: "bi:calendar4",
1935
- class: B(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${m.value ? "text-danger-dark" : "text-muted"}`])
1937
+ class: B(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${c.value ? "text-danger-dark" : "text-muted"}`])
1936
1938
  }, null, 8, ["class"]), [
1937
1939
  [q, t.showIcon]
1938
1940
  ]),
@@ -1945,15 +1947,15 @@ const bt = { key: 0 }, ft = {
1945
1947
  [q, t.modelValue]
1946
1948
  ])
1947
1949
  ]),
1948
- c("span", Ht, [
1950
+ m("span", Ht, [
1949
1951
  $(s.$slots, "after")
1950
1952
  ])
1951
1953
  ]),
1952
- j(c("small", {
1954
+ j(m("small", {
1953
1955
  "data-cy": "error",
1954
1956
  class: "text-invalid"
1955
1957
  }, h(p(a)), 513), [
1956
- [q, m.value]
1958
+ [q, c.value]
1957
1959
  ])
1958
1960
  ], 64);
1959
1961
  };
@@ -1965,7 +1967,7 @@ const bt = { key: 0 }, ft = {
1965
1967
  currentCount: {}
1966
1968
  },
1967
1969
  setup(e) {
1968
- const t = e, l = x(() => t.maxCount - t.currentCount);
1970
+ const t = e, l = k(() => t.maxCount - t.currentCount);
1969
1971
  return (o, a) => (r(), b("div", {
1970
1972
  class: B(l.value < 0 ? "text-danger" : "")
1971
1973
  }, "Remaining characters: " + h(l.value), 3));
@@ -2004,12 +2006,12 @@ const bt = { key: 0 }, ft = {
2004
2006
  }), [
2005
2007
  n.hideTitle ? S("", !0) : (r(), b(N, { key: 0 }, [
2006
2008
  $(n.$slots, "title", {}, () => [
2007
- c("h3", {
2009
+ m("h3", {
2008
2010
  class: B(n.titleClass),
2009
2011
  "data-cy": "form-title"
2010
2012
  }, h(n.title), 3)
2011
2013
  ]),
2012
- d[1] || (d[1] = c("hr", null, null, -1))
2014
+ d[1] || (d[1] = m("hr", null, null, -1))
2013
2015
  ], 64)),
2014
2016
  o.value.hasError ? (r(), w(oe, {
2015
2017
  key: 1,
@@ -2026,7 +2028,7 @@ const bt = { key: 0 }, ft = {
2026
2028
  _: 3
2027
2029
  })) : S("", !0),
2028
2030
  $(n.$slots, "default"),
2029
- c("div", qt, [
2031
+ m("div", qt, [
2030
2032
  $(n.$slots, "cancel", {}, () => [
2031
2033
  n.hideCancel ? S("", !0) : (r(), w(i, {
2032
2034
  key: 0,
@@ -2085,7 +2087,7 @@ const bt = { key: 0 }, ft = {
2085
2087
  l.type == "number" ? i(v.value) : i(v);
2086
2088
  }, { errors: a, value: n, errorMessage: d, handleChange: i, handleBlur: u } = K(() => l.name, void 0, {
2087
2089
  initialValue: t.value
2088
- }), m = x(() => a.value.length > 0);
2090
+ }), c = k(() => a.value.length > 0);
2089
2091
  return de(() => n.value, (v) => {
2090
2092
  t.value = v;
2091
2093
  }, { immediate: !0 }), (v, s) => {
@@ -2097,13 +2099,13 @@ const bt = { key: 0 }, ft = {
2097
2099
  }, v.$attrs, {
2098
2100
  name: l.name,
2099
2101
  modelValue: t.value,
2100
- "onUpdate:modelValue": s[0] || (s[0] = (k) => t.value = k)
2102
+ "onUpdate:modelValue": s[0] || (s[0] = (x) => t.value = x)
2101
2103
  }), null, 16, ["id", "label", "name", "modelValue"])) : (r(), b("div", Yt, [
2102
- c("div", {
2104
+ m("div", {
2103
2105
  "data-cy": "input-wrapper",
2104
2106
  class: B(["d-flex", l.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
2105
2107
  }, [
2106
- c("label", {
2108
+ m("label", {
2107
2109
  for: l.name,
2108
2110
  class: B(l.fieldLabelPosition === "top" ? "mb-1" : "me-2")
2109
2111
  }, h(l.fieldLabel), 11, Gt),
@@ -2112,19 +2114,19 @@ const bt = { key: 0 }, ft = {
2112
2114
  id: l.name
2113
2115
  }, v.$attrs, {
2114
2116
  placeholder: l.placeholder,
2115
- "input-class": { "is-invalid": m.value },
2116
- class: { "is-invalid": m.value },
2117
+ "input-class": { "is-invalid": c.value },
2118
+ class: { "is-invalid": c.value },
2117
2119
  modelValue: t.value,
2118
- "onUpdate:modelValue": s[1] || (s[1] = (k) => t.value = k),
2120
+ "onUpdate:modelValue": s[1] || (s[1] = (x) => t.value = x),
2119
2121
  onInput: o
2120
2122
  }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : l.type === "textarea" ? (r(), w(C, V({
2121
2123
  key: 1,
2122
2124
  id: l.name
2123
2125
  }, v.$attrs, {
2124
2126
  placeholder: l.placeholder,
2125
- class: { "is-invalid": m.value },
2127
+ class: { "is-invalid": c.value },
2126
2128
  modelValue: t.value,
2127
- "onUpdate:modelValue": s[2] || (s[2] = (k) => t.value = k),
2129
+ "onUpdate:modelValue": s[2] || (s[2] = (x) => t.value = x),
2128
2130
  onInput: o,
2129
2131
  onBlur: p(u)
2130
2132
  }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : l.type === "mask" ? (r(), w(T, V({
@@ -2133,9 +2135,9 @@ const bt = { key: 0 }, ft = {
2133
2135
  }, v.$attrs, {
2134
2136
  placeholder: l.placeholder,
2135
2137
  mask: l.mask,
2136
- class: { "is-invalid": m.value },
2138
+ class: { "is-invalid": c.value },
2137
2139
  modelValue: t.value,
2138
- "onUpdate:modelValue": s[3] || (s[3] = (k) => t.value = k),
2140
+ "onUpdate:modelValue": s[3] || (s[3] = (x) => t.value = x),
2139
2141
  onComplete: o,
2140
2142
  onBlur: p(u)
2141
2143
  }), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : l.type === "text" ? (r(), w(M, V({
@@ -2143,30 +2145,30 @@ const bt = { key: 0 }, ft = {
2143
2145
  id: l.name
2144
2146
  }, v.$attrs, {
2145
2147
  placeholder: l.placeholder,
2146
- class: { "is-invalid": m.value },
2148
+ class: { "is-invalid": c.value },
2147
2149
  modelValue: t.value,
2148
- "onUpdate:modelValue": s[4] || (s[4] = (k) => t.value = k),
2150
+ "onUpdate:modelValue": s[4] || (s[4] = (x) => t.value = x),
2149
2151
  onInput: o,
2150
2152
  onBlur: p(u)
2151
2153
  }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : l.type === "select" ? (r(), w(I, V({ key: 4 }, { ...l, ...v.$attrs }, {
2152
2154
  modelValue: t.value,
2153
- "onUpdate:modelValue": s[5] || (s[5] = (k) => t.value = k),
2154
- class: { "is-invalid": m.value }
2155
+ "onUpdate:modelValue": s[5] || (s[5] = (x) => t.value = x),
2156
+ class: { "is-invalid": c.value }
2155
2157
  }), null, 16, ["modelValue", "class"])) : l.type === "multiselect" ? (r(), w(O, V({ key: 5 }, { ...l, ...v.$attrs }, {
2156
2158
  modelValue: t.value,
2157
- "onUpdate:modelValue": s[6] || (s[6] = (k) => t.value = k),
2158
- class: { "is-invalid": m.value }
2159
+ "onUpdate:modelValue": s[6] || (s[6] = (x) => t.value = x),
2160
+ class: { "is-invalid": c.value }
2159
2161
  }), null, 16, ["modelValue", "class"])) : l.type === "datepicker" ? (r(), w(g, V({ key: 6 }, { ...l, ...v.$attrs }, {
2160
2162
  modelValue: t.value,
2161
- "onUpdate:modelValue": s[7] || (s[7] = (k) => t.value = k),
2162
- class: { "is-invalid": m.value }
2163
+ "onUpdate:modelValue": s[7] || (s[7] = (x) => t.value = x),
2164
+ class: { "is-invalid": c.value }
2163
2165
  }), null, 16, ["modelValue", "class"])) : S("", !0)
2164
2166
  ], 2),
2165
- j(c("small", {
2167
+ j(m("small", {
2166
2168
  "data-cy": "error",
2167
2169
  class: "invalid-feedback"
2168
2170
  }, h(p(d)), 513), [
2169
- [q, m.value && l.type !== "multiselect" && l.type !== "datepicker"]
2171
+ [q, c.value && l.type !== "multiselect" && l.type !== "datepicker"]
2170
2172
  ])
2171
2173
  ]));
2172
2174
  };
@@ -2200,7 +2202,7 @@ const bt = { key: 0 }, ft = {
2200
2202
  setup(e) {
2201
2203
  const t = e, { errors: l, value: o, errorMessage: a } = K(() => t.name, void 0, {
2202
2204
  initialValue: t.modelValue
2203
- }), n = x(() => l.value.length > 0), d = x(() => ({
2205
+ }), n = k(() => l.value.length > 0), d = k(() => ({
2204
2206
  inputtoken: "list-unstyled",
2205
2207
  input: "border-0",
2206
2208
  container: ({ props: i }) => ({
@@ -2232,9 +2234,9 @@ const bt = { key: 0 }, ft = {
2232
2234
  }
2233
2235
  }));
2234
2236
  return (i, u) => {
2235
- const m = Te;
2237
+ const c = Te;
2236
2238
  return r(), b(N, null, [
2237
- y(m, V({ ...t, ...i.$attrs }, {
2239
+ y(c, V({ ...t, ...i.$attrs }, {
2238
2240
  pt: d.value,
2239
2241
  "model-value": p(o),
2240
2242
  "onUpdate:modelValue": u[0] || (u[0] = (v) => se(o) ? o.value = v : null)
@@ -2250,7 +2252,7 @@ const bt = { key: 0 }, ft = {
2250
2252
  ]),
2251
2253
  _: 1
2252
2254
  }, 16, ["pt", "model-value"]),
2253
- j(c("small", {
2255
+ j(m("small", {
2254
2256
  "data-cy": "error",
2255
2257
  class: "text-invalid"
2256
2258
  }, h(p(a)), 513), [
@@ -2274,7 +2276,7 @@ const bt = { key: 0 }, ft = {
2274
2276
  unstyled: { type: Boolean }
2275
2277
  },
2276
2278
  setup(e) {
2277
- const t = e, l = x(() => t.striped ? "progress-bar-striped" : null), o = x(() => t.animate ? "progress-bar-animated" : null), a = x(() => {
2279
+ const t = e, l = k(() => t.striped ? "progress-bar-striped" : null), o = k(() => t.animate ? "progress-bar-animated" : null), a = k(() => {
2278
2280
  switch (t.severity) {
2279
2281
  case "brand":
2280
2282
  return "bg-brand";
@@ -2293,7 +2295,7 @@ const bt = { key: 0 }, ft = {
2293
2295
  default:
2294
2296
  return "bg-primary";
2295
2297
  }
2296
- }), n = x(() => ({
2298
+ }), n = k(() => ({
2297
2299
  root: {
2298
2300
  style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
2299
2301
  },
@@ -2322,7 +2324,7 @@ const bt = { key: 0 }, ft = {
2322
2324
  return (l, o) => (r(), b("div", V(l.$attrs, {
2323
2325
  class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
2324
2326
  }), [
2325
- c("span", Wt, [
2327
+ m("span", Wt, [
2326
2328
  $(l.$slots, "default")
2327
2329
  ])
2328
2330
  ], 16));
@@ -2357,49 +2359,49 @@ const bt = { key: 0 }, ft = {
2357
2359
  a.value++;
2358
2360
  while (o.model[a.value].disabled);
2359
2361
  l("update:currentStep", a.value);
2360
- }, i = x(() => {
2361
- const m = o.model.findIndex((v) => !v.disabled);
2362
- return !(m < a.value && m > -1);
2363
- }), u = x(() => ({
2364
- menuitem: (m) => ({
2362
+ }, i = k(() => {
2363
+ const c = o.model.findIndex((v) => !v.disabled);
2364
+ return !(c < a.value && c > -1);
2365
+ }), u = k(() => ({
2366
+ menuitem: (c) => ({
2365
2367
  class: [{
2366
- "cursor-pointer": !m.context.disabled
2368
+ "cursor-pointer": !c.context.disabled
2367
2369
  }]
2368
2370
  }),
2369
- step: (m) => ({
2371
+ step: (c) => ({
2370
2372
  class: [
2371
2373
  "d-flex align-items-center justify-content-center mb-2 step",
2372
2374
  {
2373
- inactive: m.context.disabled,
2374
- "bg-primary text-white": m.context.index === a.value && (o.severity === void 0 || o.severity === "primary"),
2375
- "bg-brand text-white": m.context.index === a.value && o.severity === "brand",
2376
- "bg-secondary text-white": m.context.index === a.value && o.severity === "secondary",
2377
- "bg-success text-white": m.context.index === a.value && o.severity === "success",
2378
- "bg-warning text-white": m.context.index === a.value && o.severity === "warning",
2379
- "bg-danger text-white": m.context.index === a.value && o.severity === "danger",
2380
- "bg-info text-white": m.context.index === a.value && o.severity === "info"
2375
+ inactive: c.context.disabled,
2376
+ "bg-primary text-white": c.context.index === a.value && (o.severity === void 0 || o.severity === "primary"),
2377
+ "bg-brand text-white": c.context.index === a.value && o.severity === "brand",
2378
+ "bg-secondary text-white": c.context.index === a.value && o.severity === "secondary",
2379
+ "bg-success text-white": c.context.index === a.value && o.severity === "success",
2380
+ "bg-warning text-white": c.context.index === a.value && o.severity === "warning",
2381
+ "bg-danger text-white": c.context.index === a.value && o.severity === "danger",
2382
+ "bg-info text-white": c.context.index === a.value && o.severity === "info"
2381
2383
  }
2382
2384
  ]
2383
2385
  }),
2384
- label: (m) => ({
2386
+ label: (c) => ({
2385
2387
  class: [
2386
2388
  "h5",
2387
2389
  {
2388
- "border-bottom border-2 border-primary": m.context.index === a.value && (o.severity === void 0 || o.severity === "primary"),
2389
- "border-bottom border-2 border-brand": m.context.index === a.value && o.severity === "brand",
2390
- "border-bottom border-2 border-secondary": m.context.index === a.value && o.severity === "secondary",
2391
- "border-bottom border-2 border-success": m.context.index === a.value && o.severity === "success",
2392
- "border-bottom border-2 border-warning": m.context.index === a.value && o.severity === "warning",
2393
- "border-bottom border-2 border-danger": m.context.index === a.value && o.severity === "danger",
2394
- "border-bottom border-2 border-info": m.context.index === a.value && o.severity === "info"
2390
+ "border-bottom border-2 border-primary": c.context.index === a.value && (o.severity === void 0 || o.severity === "primary"),
2391
+ "border-bottom border-2 border-brand": c.context.index === a.value && o.severity === "brand",
2392
+ "border-bottom border-2 border-secondary": c.context.index === a.value && o.severity === "secondary",
2393
+ "border-bottom border-2 border-success": c.context.index === a.value && o.severity === "success",
2394
+ "border-bottom border-2 border-warning": c.context.index === a.value && o.severity === "warning",
2395
+ "border-bottom border-2 border-danger": c.context.index === a.value && o.severity === "danger",
2396
+ "border-bottom border-2 border-info": c.context.index === a.value && o.severity === "info"
2395
2397
  }
2396
2398
  ]
2397
2399
  })
2398
2400
  }));
2399
- return (m, v) => {
2401
+ return (c, v) => {
2400
2402
  const s = E, C = Ie, T = Me;
2401
2403
  return r(), b("div", Zt, [
2402
- c("div", Jt, [
2404
+ m("div", Jt, [
2403
2405
  y(s, {
2404
2406
  severity: o.severity,
2405
2407
  disabled: i.value,
@@ -2428,7 +2430,7 @@ const bt = { key: 0 }, ft = {
2428
2430
  key: I,
2429
2431
  class: "w-100"
2430
2432
  }, [
2431
- I === a.value ? $(m.$slots, M.key ?? M.label, {
2433
+ I === a.value ? $(c.$slots, M.key ?? M.label, {
2432
2434
  key: 0,
2433
2435
  nextStep: d,
2434
2436
  previousStep: n
@@ -2462,7 +2464,7 @@ const bt = { key: 0 }, ft = {
2462
2464
  selected: { type: Boolean, default: !1 }
2463
2465
  },
2464
2466
  setup(e) {
2465
- const t = e, l = x(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), o = x(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`);
2467
+ const t = e, l = k(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), o = k(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`);
2466
2468
  return (a, n) => {
2467
2469
  const d = E;
2468
2470
  return t.clickable ? (r(), w(d, {
@@ -2473,7 +2475,7 @@ const bt = { key: 0 }, ft = {
2473
2475
  "data-cy": "button-tile"
2474
2476
  }, {
2475
2477
  default: f(() => [
2476
- c("div", Xt, [
2478
+ m("div", Xt, [
2477
2479
  $(a.$slots, "default", {}, () => [
2478
2480
  n[0] || (n[0] = z("Tile Content"))
2479
2481
  ])
@@ -2485,7 +2487,7 @@ const bt = { key: 0 }, ft = {
2485
2487
  class: B(["d-flex w-100", o.value]),
2486
2488
  "data-cy": "tile"
2487
2489
  }, [
2488
- c("div", Qt, [
2490
+ m("div", Qt, [
2489
2491
  $(a.$slots, "default", {}, () => [
2490
2492
  n[1] || (n[1] = z("Tile Content"))
2491
2493
  ])
@@ -2514,13 +2516,13 @@ const el = {
2514
2516
  setup(e, { emit: t }) {
2515
2517
  const l = t, o = e, a = (d) => {
2516
2518
  l("update:perPage", d.value);
2517
- }, n = x(() => {
2519
+ }, n = k(() => {
2518
2520
  const d = Math.ceil(o.total / o.perPage);
2519
2521
  return `${d} ${X(d, "page")}`;
2520
2522
  });
2521
2523
  return (d, i) => (r(), b("div", el, [
2522
2524
  i[2] || (i[2] = z(" Number of results per page ")),
2523
- c("div", tl, [
2525
+ m("div", tl, [
2524
2526
  y(p(ae), {
2525
2527
  options: o.pageSizes,
2526
2528
  "model-value": o.perPage,
@@ -2529,8 +2531,8 @@ const el = {
2529
2531
  }, null, 8, ["options", "model-value"])
2530
2532
  ]),
2531
2533
  o.total ? (r(), b("div", ll, [
2532
- i[1] || (i[1] = c("span", { class: "mx-2" }, "|", -1)),
2533
- c("span", al, h(o.total) + " " + h(p(X)(o.total, "result")) + " across " + h(n.value), 1)
2534
+ i[1] || (i[1] = m("span", { class: "mx-2" }, "|", -1)),
2535
+ m("span", al, h(o.total) + " " + h(p(X)(o.total, "result")) + " across " + h(n.value), 1)
2534
2536
  ])) : S("", !0)
2535
2537
  ]));
2536
2538
  }
@@ -2626,10 +2628,10 @@ const el = {
2626
2628
  sortDirection: "None",
2627
2629
  sortField: "",
2628
2630
  total: o.totalRecords ?? o.value.length
2629
- }), u = x(() => o.totalRecords ?? o.value.length), m = x(() => {
2631
+ }), u = k(() => o.totalRecords ?? o.value.length), c = k(() => {
2630
2632
  const g = Math.ceil(u.value / d.value);
2631
2633
  return `${g} ${X(g, "page")}`;
2632
- }), v = x(() => ({
2634
+ }), v = k(() => ({
2633
2635
  thead: () => ({
2634
2636
  class: [
2635
2637
  {
@@ -2661,8 +2663,8 @@ const el = {
2661
2663
  }, C = () => {
2662
2664
  a.value.exportCSV();
2663
2665
  }, T = (g) => {
2664
- var k;
2665
- i.value.sortDirection = g.sortOrder === 1 ? "Asc" : g.sortOrder === -1 ? "Desc" : "None", i.value.sortField = ((k = g.sortField) == null ? void 0 : k.toString()) ?? "", l("update:tableContext", i.value), l("sort", g);
2666
+ var x;
2667
+ i.value.sortDirection = g.sortOrder === 1 ? "Asc" : g.sortOrder === -1 ? "Desc" : "None", i.value.sortField = ((x = g.sortField) == null ? void 0 : x.toString()) ?? "", l("update:tableContext", i.value), l("sort", g);
2666
2668
  }, M = (g) => {
2667
2669
  i.value.filters = g, l("update:tableContext", i.value), l("update:filters", g);
2668
2670
  }, I = (g) => {
@@ -2672,8 +2674,8 @@ const el = {
2672
2674
  };
2673
2675
  return de(() => o.filters, (g) => {
2674
2676
  i.value.filters = g, l("update:tableContext", i.value);
2675
- }, { deep: !0 }), le(() => l("update:tableContext", i.value)), (g, k) => (r(), b("div", nl, [
2676
- c("span", sl, [
2677
+ }, { deep: !0 }), le(() => l("update:tableContext", i.value)), (g, x) => (r(), b("div", nl, [
2678
+ m("span", sl, [
2677
2679
  $(g.$slots, "above-table")
2678
2680
  ]),
2679
2681
  y(p(ze), V({
@@ -2691,29 +2693,29 @@ const el = {
2691
2693
  onPage: I
2692
2694
  }), te({
2693
2695
  empty: f(() => [
2694
- c("div", il, [
2695
- c("h5", rl, h(g.emptyMessage ?? "No items Found."), 1)
2696
+ m("div", il, [
2697
+ m("h5", rl, h(g.emptyMessage ?? "No items Found."), 1)
2696
2698
  ])
2697
2699
  ]),
2698
2700
  header: f(() => [
2699
- c("div", {
2701
+ m("div", {
2700
2702
  class: B(o.loading ? "opacity-50" : "")
2701
2703
  }, [
2702
- c("div", dl, [
2703
- c("div", ul, [
2704
+ m("div", dl, [
2705
+ m("div", ul, [
2704
2706
  g.paginator && !g.legacyPaginationFooter ? (r(), b("span", cl, [
2705
2707
  y(ol, {
2706
2708
  total: u.value,
2707
2709
  "page-sizes": n.value,
2708
2710
  "per-page": d.value,
2709
2711
  "onUpdate:perPage": [
2710
- k[0] || (k[0] = (G) => d.value = G),
2712
+ x[0] || (x[0] = (G) => d.value = G),
2711
2713
  O
2712
2714
  ]
2713
2715
  }, null, 8, ["total", "page-sizes", "per-page"])
2714
2716
  ])) : S("", !0)
2715
2717
  ]),
2716
- c("div", ml, [
2718
+ m("div", ml, [
2717
2719
  g.showClearButton ? (r(), w(p(E), {
2718
2720
  key: 0,
2719
2721
  outlined: "",
@@ -2727,7 +2729,7 @@ const el = {
2727
2729
  width: "24",
2728
2730
  height: "24"
2729
2731
  }),
2730
- k[2] || (k[2] = z(" Clear "))
2732
+ x[2] || (x[2] = z(" Clear "))
2731
2733
  ]),
2732
2734
  _: 1
2733
2735
  }, 8, ["class"])) : S("", !0),
@@ -2743,7 +2745,7 @@ const el = {
2743
2745
  width: "24",
2744
2746
  height: "24"
2745
2747
  }),
2746
- k[3] || (k[3] = z(" Export "))
2748
+ x[3] || (x[3] = z(" Export "))
2747
2749
  ]),
2748
2750
  _: 1
2749
2751
  })) : S("", !0),
@@ -2766,15 +2768,15 @@ const el = {
2766
2768
  g.legacyPaginationFooter ? {
2767
2769
  name: "paginatorstart",
2768
2770
  fn: f(() => [
2769
- c("span", {
2771
+ m("span", {
2770
2772
  class: B(["d-flex", o.loading ? "opacity-50" : ""]),
2771
2773
  "data-cy": "legacy-page-size"
2772
2774
  }, [
2773
- k[4] || (k[4] = c("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
2775
+ x[4] || (x[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
2774
2776
  y(p(ae), {
2775
2777
  options: n.value,
2776
2778
  modelValue: d.value,
2777
- "onUpdate:modelValue": k[1] || (k[1] = (G) => d.value = G),
2779
+ "onUpdate:modelValue": x[1] || (x[1] = (G) => d.value = G),
2778
2780
  class: "ms-2",
2779
2781
  onClick: O
2780
2782
  }, null, 8, ["options", "modelValue"])
@@ -2785,10 +2787,10 @@ const el = {
2785
2787
  g.legacyPaginationFooter ? {
2786
2788
  name: "paginatorend",
2787
2789
  fn: f(() => [
2788
- c("span", {
2790
+ m("span", {
2789
2791
  "data-cy": "legacy-total",
2790
2792
  class: B(o.loading ? "opacity-50" : "")
2791
- }, h(u.value) + " " + h(p(X)(u.value, "result")) + " across " + h(m.value), 3)
2793
+ }, h(u.value) + " " + h(p(X)(u.value, "result")) + " across " + h(c.value), 3)
2792
2794
  ]),
2793
2795
  key: "1"
2794
2796
  } : void 0
@@ -2814,8 +2816,8 @@ const el = {
2814
2816
  if (!a || Array.isArray(a) && a.length === 0)
2815
2817
  return n;
2816
2818
  const d = (i) => {
2817
- var m;
2818
- const u = (m = e.dropdownOptions) == null ? void 0 : m.find(
2819
+ var c;
2820
+ const u = (c = e.dropdownOptions) == null ? void 0 : c.find(
2819
2821
  (v) => e.optionValue ? v[e.optionValue] === i : Object.keys(v).every((s) => i.hasOwnProperty(s) && v[s] === i[s])
2820
2822
  );
2821
2823
  return e.optionLabel ? u[e.optionLabel] : u;
@@ -2847,11 +2849,11 @@ const el = {
2847
2849
  "option-value": a.optionValue,
2848
2850
  "option-label": a.optionLabel
2849
2851
  }), {
2850
- value: f(({ value: u, placeholder: m }) => [
2851
- c("div", vl, [
2852
- c("span", {
2852
+ value: f(({ value: u, placeholder: c }) => [
2853
+ m("div", vl, [
2854
+ m("span", {
2853
2855
  class: B({ "filter-placeholder": u === null })
2854
- }, h(l(u, m)), 3),
2856
+ }, h(l(u, c)), 3),
2855
2857
  a.showClearButton && t.value !== null ? (r(), w(i, {
2856
2858
  key: 0,
2857
2859
  onClick: Y(o, ["prevent"]),
@@ -2882,11 +2884,11 @@ const el = {
2882
2884
  "option-value": a.optionValue,
2883
2885
  filter: ""
2884
2886
  }), {
2885
- value: f(({ value: u, placeholder: m }) => [
2886
- c("div", yl, [
2887
- c("span", {
2887
+ value: f(({ value: u, placeholder: c }) => [
2888
+ m("div", yl, [
2889
+ m("span", {
2888
2890
  class: B({ "filter-placeholder": (u == null ? void 0 : u.length) === 0 || u === null })
2889
- }, h(l(u, m)), 3),
2891
+ }, h(l(u, c)), 3),
2890
2892
  a.showClearButton && (u == null ? void 0 : u.length) > 0 ? (r(), w(i, {
2891
2893
  key: 0,
2892
2894
  onClick: Y(o, ["prevent"]),
@@ -2972,10 +2974,10 @@ function fl(e) {
2972
2974
  function gl(e) {
2973
2975
  return URL.createObjectURL(e);
2974
2976
  }
2975
- const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disabled", "multiple"], kl = {
2977
+ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disabled", "multiple"], xl = {
2976
2978
  class: "text-break accepted-file-types-container",
2977
2979
  id: "accepted-file-types-overlay"
2978
- }, xl = /* @__PURE__ */ F({
2980
+ }, kl = /* @__PURE__ */ F({
2979
2981
  __name: "UploadButton",
2980
2982
  props: /* @__PURE__ */ R({
2981
2983
  acceptedFileTypes: {},
@@ -2987,24 +2989,24 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
2987
2989
  }),
2988
2990
  emits: ["update:modelValue"],
2989
2991
  setup(e) {
2990
- const t = U(e, "modelValue"), l = P(), o = (d) => l.value.toggle(d), a = x(() => e.maxFileInput <= t.value.length), n = (d) => {
2992
+ const t = U(e, "modelValue"), l = P(), o = (d) => l.value.toggle(d), a = k(() => e.maxFileInput <= t.value.length), n = (d) => {
2991
2993
  t.value = fe(d, t.value, e.acceptedFileTypes.map((i) => i.fileType), e.maxFileInput);
2992
2994
  };
2993
2995
  return (d, i) => {
2994
2996
  const u = E;
2995
2997
  return r(), b("div", hl, [
2996
2998
  $(d.$slots, "message"),
2997
- c("div", null, [
2998
- c("input", {
2999
+ m("div", null, [
3000
+ m("input", {
2999
3001
  id: "file-input",
3000
3002
  type: "file",
3001
3003
  class: "d-none",
3002
3004
  accept: d.acceptedFileTypes.join(", "),
3003
3005
  disabled: a.value,
3004
3006
  multiple: d.maxFileInput > 1,
3005
- onInput: i[0] || (i[0] = (m) => n([...m.target.files]))
3007
+ onInput: i[0] || (i[0] = (c) => n([...c.target.files]))
3006
3008
  }, null, 40, wl),
3007
- c("label", {
3009
+ m("label", {
3008
3010
  class: B([{ disabled: a.value }, "btn btn-primary"]),
3009
3011
  id: "file-input-button",
3010
3012
  for: "file-input"
@@ -3037,7 +3039,7 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
3037
3039
  ref: l
3038
3040
  }, {
3039
3041
  default: f(() => [
3040
- c("div", kl, h(d.acceptedFileTypes.map((m) => m.label ?? m.fileType.split("/").pop()).join(", ")), 1)
3042
+ m("div", xl, h(d.acceptedFileTypes.map((c) => c.label ?? c.fileType.split("/").pop()).join(", ")), 1)
3041
3043
  ]),
3042
3044
  _: 1
3043
3045
  }, 512)
@@ -3063,7 +3065,7 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
3063
3065
  }),
3064
3066
  emits: ["update:modelValue"],
3065
3067
  setup(e) {
3066
- const t = U(e, "modelValue"), l = P(!1), o = x(() => e.maxFileInput <= t.value.length), a = (n) => {
3068
+ const t = U(e, "modelValue"), l = P(!1), o = k(() => e.maxFileInput <= t.value.length), a = (n) => {
3067
3069
  l.value = !1, n.dataTransfer.files.length > e.maxFileInput || o.value ? n.preventDefault() : t.value = fe([...n.dataTransfer.files], t.value, e.acceptedFileTypes.map((d) => d.fileType), e.maxFileSize);
3068
3070
  };
3069
3071
  return (n, d) => (r(), b("div", {
@@ -3095,7 +3097,7 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
3095
3097
  uploadStatus: {}
3096
3098
  },
3097
3099
  setup(e) {
3098
- const t = x(() => e.uploadStatus === "Failed" || e.uploadStatus === "InvalidFileType" || e.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), l = x(() => {
3100
+ const t = k(() => e.uploadStatus === "Failed" || e.uploadStatus === "InvalidFileType" || e.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), l = k(() => {
3099
3101
  switch (e.uploadStatus) {
3100
3102
  case "InvalidFileType":
3101
3103
  return "Upload Failed: File type is not accepted.";
@@ -3164,14 +3166,14 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
3164
3166
  }),
3165
3167
  emits: /* @__PURE__ */ R(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
3166
3168
  setup(e, { emit: t }) {
3167
- const l = U(e, "file"), o = U(e, "blobFileName"), a = U(e, "uploadStatus"), n = t, d = P(l.value.name), i = P(""), u = P(0), m = P(), v = x(() => e.acceptedFileTypes.includes(l.value.type)), s = x(() => l.value.size <= e.maxFileSize), C = () => {
3169
+ const l = U(e, "file"), o = U(e, "blobFileName"), a = U(e, "uploadStatus"), n = t, d = P(l.value.name), i = P(""), u = P(0), c = P(), v = k(() => e.acceptedFileTypes.some(({ fileType: I }) => I === l.value.type)), s = k(() => l.value.size <= e.maxFileSize), C = () => {
3168
3170
  l.value = new File([l.value], d.value, { type: l.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() });
3169
3171
  }, T = async () => {
3170
3172
  if (!v.value || !s.value) {
3171
3173
  a.value = v.value ? "InvalidFileSize" : "InvalidFileType";
3172
3174
  return;
3173
3175
  }
3174
- a.value = "Preparing", m.value = new AbortController();
3176
+ a.value = "Preparing", c.value = new AbortController();
3175
3177
  const [I, O] = await e.getFileUrlAction(l.value.name);
3176
3178
  if (!I) {
3177
3179
  a.value = "Failed";
@@ -3179,12 +3181,12 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
3179
3181
  }
3180
3182
  try {
3181
3183
  a.value = "Uploading";
3182
- const g = new me(I), k = {
3183
- abortSignal: m.value.signal,
3184
+ const g = new me(I), x = {
3185
+ abortSignal: c.value.signal,
3184
3186
  onProgress: (G) => u.value = G.loadedBytes,
3185
3187
  tags: { temp: "true" }
3186
3188
  };
3187
- await g.uploadData(l.value, k), i.value = I, a.value = "Uploaded", o.value = O;
3189
+ await g.uploadData(l.value, x), i.value = I, a.value = "Uploaded", o.value = O;
3188
3190
  } catch (g) {
3189
3191
  if (g.name === "AbortError") {
3190
3192
  a.value = "Aborted";
@@ -3203,7 +3205,7 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
3203
3205
  class: "py-4 px-3 d-flex",
3204
3206
  "data-cy": `file-info-${l.value.name}`
3205
3207
  }, [
3206
- c("div", null, [
3208
+ m("div", null, [
3207
3209
  p(fl)(l.value.type) ? (r(), w(p(De), {
3208
3210
  key: 0,
3209
3211
  id: "thumbnail-image",
@@ -3220,22 +3222,22 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
3220
3222
  width: "75px"
3221
3223
  }))
3222
3224
  ]),
3223
- c("div", Cl, [
3224
- c("div", null, [
3225
+ m("div", Cl, [
3226
+ m("div", null, [
3225
3227
  I.editableFileName ? (r(), w(Bt, {
3226
3228
  key: 0,
3227
3229
  id: "edit-file-name",
3228
3230
  modelValue: d.value,
3229
- "onUpdate:modelValue": O[0] || (O[0] = (k) => d.value = k),
3231
+ "onUpdate:modelValue": O[0] || (O[0] = (x) => d.value = x),
3230
3232
  rules: I.customFileNameRules,
3231
3233
  name: l.value.name,
3232
3234
  "complete-action": C
3233
3235
  }, null, 8, ["modelValue", "rules", "name"])) : (r(), b("span", Tl, h(l.value.name), 1))
3234
3236
  ]),
3235
- c("span", Pl, "File type: " + h(l.value.type.split("/").pop()), 1),
3236
- c("span", Ml, "File size: " + h(p(re)(l.value.size)), 1)
3237
+ m("span", Pl, "File type: " + h(l.value.type.split("/").pop()), 1),
3238
+ m("span", Ml, "File size: " + h(p(re)(l.value.size)), 1)
3237
3239
  ]),
3238
- c("div", Il, [
3240
+ m("div", Il, [
3239
3241
  (r(), w(Vl, {
3240
3242
  key: a.value,
3241
3243
  "file-size": l.value.size,
@@ -3258,7 +3260,7 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
3258
3260
  a.value === "Uploading" ? (r(), w(g, {
3259
3261
  key: 1,
3260
3262
  link: "",
3261
- onClick: O[1] || (O[1] = (k) => m.value.value.abort())
3263
+ onClick: O[1] || (O[1] = (x) => c.value.value.abort())
3262
3264
  }, {
3263
3265
  default: f(() => [
3264
3266
  y(p(_), { icon: "bi:x-circle-fill" })
@@ -3286,7 +3288,7 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
3286
3288
  },
3287
3289
  setup(e) {
3288
3290
  return (t, l) => (r(), b("div", Ol, [
3289
- c("div", Dl, "Max file size: " + h(p(re)(t.maxFileSize)), 1)
3291
+ m("div", Dl, "Max file size: " + h(p(re)(t.maxFileSize)), 1)
3290
3292
  ]));
3291
3293
  }
3292
3294
  }), Al = { "data-cy": "file-uploader" }, Nl = { key: 0 }, Aa = /* @__PURE__ */ F({
@@ -3310,7 +3312,7 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
3310
3312
  t.value = t.value.filter((n) => n.file != a);
3311
3313
  };
3312
3314
  return (a, n) => (r(), b("div", Al, [
3313
- y(xl, V(l, {
3315
+ y(kl, V(l, {
3314
3316
  modelValue: t.value,
3315
3317
  "onUpdate:modelValue": n[0] || (n[0] = (d) => t.value = d)
3316
3318
  }), null, 16, ["modelValue"]),
@@ -3356,23 +3358,23 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
3356
3358
  const t = U(e, "modelValue"), l = P(), o = P(!1), a = P([]), n = P([]), d = (u) => {
3357
3359
  l.value.toggle(u);
3358
3360
  }, i = (u) => {
3359
- const m = n.value.find((v) => v.field === u);
3360
- m.selected = !m.selected, t.value = n.value.filter((v) => v.selected);
3361
+ const c = n.value.find((v) => v.field === u);
3362
+ c.selected = !c.selected, t.value = n.value.filter((v) => v.selected);
3361
3363
  };
3362
3364
  return le(() => {
3363
3365
  a.value = [...t.value], n.value = [...t.value].map((u) => ({ ...u, selected: !0 }));
3364
- }), (u, m) => (r(), b(N, null, [
3366
+ }), (u, c) => (r(), b(N, null, [
3365
3367
  y(p(E), {
3366
3368
  onClick: d,
3367
3369
  class: "ms-2"
3368
3370
  }, {
3369
3371
  default: f(() => [
3370
- c("div", El, [
3371
- c("div", Ll, [
3372
+ m("div", El, [
3373
+ m("div", Ll, [
3372
3374
  y(p(_), { icon: "bi:layout-three-columns" })
3373
3375
  ]),
3374
3376
  z(" Columns (" + h(t.value.length ?? 0) + "/" + h(a.value.length ?? 0) + ") ", 1),
3375
- c("div", Rl, [
3377
+ m("div", Rl, [
3376
3378
  y(p(_), {
3377
3379
  icon: o.value ? "bi:chevron-up" : "bi:chevron-down"
3378
3380
  }, null, 8, ["icon"])
@@ -3385,11 +3387,11 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
3385
3387
  ref_key: "columnCustomiserPanel",
3386
3388
  ref: l,
3387
3389
  class: "column-customiser",
3388
- onHide: m[0] || (m[0] = () => o.value = !1),
3389
- onShow: m[1] || (m[1] = () => o.value = !0)
3390
+ onHide: c[0] || (c[0] = () => o.value = !1),
3391
+ onShow: c[1] || (c[1] = () => o.value = !0)
3390
3392
  }, {
3391
3393
  default: f(() => [
3392
- c("div", jl, [
3394
+ m("div", jl, [
3393
3395
  (r(!0), b(N, null, H(a.value, (v, s) => (r(), b("div", {
3394
3396
  class: B(["d-flex cursor-pointer", {
3395
3397
  "border-top": s !== 0,
@@ -3405,7 +3407,7 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
3405
3407
  binary: "",
3406
3408
  class: "cursor-pointer"
3407
3409
  }, null, 8, ["id", "model-value"]),
3408
- c("label", {
3410
+ m("label", {
3409
3411
  for: v.field,
3410
3412
  class: "cursor-pointer"
3411
3413
  }, h(v.header), 9, ql)
@@ -3419,7 +3421,7 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
3419
3421
  });
3420
3422
  export {
3421
3423
  wa as Bootstrap_PT,
3422
- ka as ForgeActionButton,
3424
+ xa as ForgeActionButton,
3423
3425
  oe as ForgeAlert,
3424
3426
  mt as ForgeCheckbox,
3425
3427
  Ma as ForgeChips,
@@ -3430,7 +3432,7 @@ export {
3430
3432
  Ta as ForgeForm,
3431
3433
  Pa as ForgeFormField,
3432
3434
  Bt as ForgeInlineEditor,
3433
- xa as ForgeLink,
3435
+ ka as ForgeLink,
3434
3436
  ve as ForgeLoader,
3435
3437
  Fa as ForgeModal,
3436
3438
  ye as ForgeMultiSelect,
@@ -1,5 +1,6 @@
1
1
  import { FileUploadStatus } from '../utilities/utilities';
2
2
  import { TypedSchema } from 'vee-validate';
3
+ import { ForgeFileType } from '../../../types/forge-types';
3
4
 
4
5
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
6
  file: {
@@ -19,7 +20,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
19
20
  required: true;
20
21
  };
21
22
  acceptedFileTypes: {
22
- type: import('vue').PropType<string>;
23
+ type: import('vue').PropType<ForgeFileType[]>;
23
24
  required: true;
24
25
  };
25
26
  maxFileSize: {
@@ -56,7 +57,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
56
57
  required: true;
57
58
  };
58
59
  acceptedFileTypes: {
59
- type: import('vue').PropType<string>;
60
+ type: import('vue').PropType<ForgeFileType[]>;
60
61
  required: true;
61
62
  };
62
63
  maxFileSize: {
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": "1.1.1",
5
+ "version": "1.1.3",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "contributors": [
@@ -41,13 +41,13 @@
41
41
  "yup": "^1.4.0"
42
42
  },
43
43
  "devDependencies": {
44
- "@cypress/code-coverage": "3.13.5",
44
+ "@cypress/code-coverage": "3.13.6",
45
45
  "@vitejs/plugin-vue": "5.1.4",
46
46
  "@vitest/coverage-v8": "1.6.0",
47
47
  "@vitest/ui": "1.6.0",
48
- "cypress": "13.15.1",
48
+ "cypress": "13.15.2",
49
49
  "cypress-real-events": "1.13.0",
50
- "sass": "1.80.5",
50
+ "sass": "1.80.6",
51
51
  "typescript": "5.6.3",
52
52
  "unplugin-vue-components": "0.27.4",
53
53
  "rollup-plugin-visualizer": "5.12.0",
@@ -58,7 +58,7 @@
58
58
  "vite-plugin-dts": "3.9.1"
59
59
  },
60
60
  "optionalDependencies": {
61
- "@rollup/rollup-linux-x64-gnu": "4.24.3"
61
+ "@rollup/rollup-linux-x64-gnu": "4.24.4"
62
62
  },
63
63
  "nyc": {
64
64
  "all": true,