@3squared/forge-ui-3 1.1.2 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import 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 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";
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 C, 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
5
  import xe from "primevue/toast";
@@ -13,8 +13,8 @@ import Fe from "primevue/menubar";
13
13
  import _e from "vue-multiselect";
14
14
  import Ve from "primevue/calendar";
15
15
  import ae from "primevue/dropdown";
16
- import Se from "primevue/inputmask";
17
- import Ce from "primevue/textarea";
16
+ import Ce from "primevue/inputmask";
17
+ import Se from "primevue/textarea";
18
18
  import ce from "primevue/inputnumber";
19
19
  import Te from "primevue/chips";
20
20
  import Pe from "primevue/progressbar";
@@ -869,7 +869,30 @@ const Ue = {
869
869
  };
870
870
  }
871
871
  }
872
- }, wa = {
872
+ }, ut = {
873
+ fieldset: {
874
+ root: () => ({
875
+ class: [
876
+ "border rounded p-2 w-100"
877
+ ]
878
+ }),
879
+ legend: () => ({
880
+ class: [
881
+ "float-none w-auto px-2 mb-0 fw-semibold fs-6 fieldset-legend"
882
+ ]
883
+ }),
884
+ togglerIcon: () => ({
885
+ class: [
886
+ "me-1"
887
+ ]
888
+ }),
889
+ toggleableContent: () => ({
890
+ class: [
891
+ "px-2"
892
+ ]
893
+ })
894
+ }
895
+ }, xa = {
873
896
  ...tt,
874
897
  ...Ue,
875
898
  ...st,
@@ -896,6 +919,7 @@ const Ue = {
896
919
  ...Ze,
897
920
  ...dt,
898
921
  ...He,
922
+ ...ut,
899
923
  directives: {
900
924
  ...at
901
925
  }
@@ -928,7 +952,7 @@ const Ue = {
928
952
  icon: t.icon,
929
953
  class: B(`text-${t.severity}`),
930
954
  height: 35
931
- }, null, 8, ["icon", "class"])) : S("", !0)
955
+ }, null, 8, ["icon", "class"])) : C("", !0)
932
956
  ], 2)
933
957
  ]),
934
958
  closeicon: f(() => [
@@ -941,7 +965,7 @@ const Ue = {
941
965
  }, 16);
942
966
  };
943
967
  }
944
- }), xa = /* @__PURE__ */ F({
968
+ }), ka = /* @__PURE__ */ F({
945
969
  __name: "ForgeActionButton",
946
970
  props: {
947
971
  action: {},
@@ -971,7 +995,7 @@ const Ue = {
971
995
  ], 64);
972
996
  };
973
997
  }
974
- }), ut = { class: "d-flex flex-column" }, ct = ["for"], mt = /* @__PURE__ */ F({
998
+ }), ct = { class: "d-flex flex-column" }, mt = ["for"], pt = /* @__PURE__ */ F({
975
999
  __name: "ForgeCheckbox",
976
1000
  props: /* @__PURE__ */ R({
977
1001
  label: { default: "" },
@@ -1013,7 +1037,7 @@ const Ue = {
1013
1037
  }, i = k(() => a.value.length > 0);
1014
1038
  return (u, c) => {
1015
1039
  const v = ue;
1016
- return r(), b("div", ut, [
1040
+ return r(), b("div", ct, [
1017
1041
  m("div", V({
1018
1042
  class: "d-flex cursor-pointer",
1019
1043
  "data-cy": "checkbox-container",
@@ -1034,7 +1058,7 @@ const Ue = {
1034
1058
  $(u.$slots, "default", {}, () => [
1035
1059
  z(h(t.label), 1)
1036
1060
  ])
1037
- ], 10, ct)
1061
+ ], 10, mt)
1038
1062
  ], 16),
1039
1063
  j(m("small", {
1040
1064
  "data-cy": "error",
@@ -1045,7 +1069,7 @@ const Ue = {
1045
1069
  ]);
1046
1070
  };
1047
1071
  }
1048
- }), pt = { class: "forge-loader" }, ve = /* @__PURE__ */ F({
1072
+ }), vt = { class: "forge-loader" }, ve = /* @__PURE__ */ F({
1049
1073
  __name: "ForgeLoader",
1050
1074
  props: {
1051
1075
  severity: { default: "primary" }
@@ -1054,7 +1078,7 @@ const Ue = {
1054
1078
  const t = e;
1055
1079
  return (l, o) => {
1056
1080
  const a = ke;
1057
- return r(), b("div", pt, [
1081
+ return r(), b("div", vt, [
1058
1082
  y(a, {
1059
1083
  "animation-duration": ".75",
1060
1084
  class: B(`text-${t.severity === void 0 ? "primary" : t.severity}`)
@@ -1062,7 +1086,7 @@ const Ue = {
1062
1086
  ]);
1063
1087
  };
1064
1088
  }
1065
- }), vt = ["href", "target"], ka = /* @__PURE__ */ F({
1089
+ }), yt = ["href", "target"], $a = /* @__PURE__ */ F({
1066
1090
  __name: "ForgeLink",
1067
1091
  props: {
1068
1092
  url: {},
@@ -1108,13 +1132,13 @@ const Ue = {
1108
1132
  id: "link-icon",
1109
1133
  icon: o.iconName,
1110
1134
  class: B(["bi my-auto", l.value])
1111
- }, null, 8, ["icon", "class"])) : S("", !0),
1135
+ }, null, 8, ["icon", "class"])) : C("", !0),
1112
1136
  z(" " + h(o.label), 1)
1113
1137
  ])
1114
- ], 10, vt));
1138
+ ], 10, yt));
1115
1139
  }
1116
1140
  });
1117
- function yt(e) {
1141
+ function bt(e) {
1118
1142
  const t = {
1119
1143
  errorMessage: "",
1120
1144
  errorDetails: []
@@ -1125,16 +1149,16 @@ function yt(e) {
1125
1149
  }
1126
1150
  return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
1127
1151
  }
1128
- function $a(e, t) {
1152
+ function Ba(e, t) {
1129
1153
  return e.map((l) => ({ id: l, label: t ? t(l) : `${l}` }));
1130
1154
  }
1131
- function Ba(e, t, l) {
1155
+ function Fa(e, t, l) {
1132
1156
  return { id: e, label: t ?? e.toString(), shortLabel: l };
1133
1157
  }
1134
- const bt = { key: 0 }, ft = {
1158
+ const ft = { key: 0 }, gt = {
1135
1159
  class: "d-flex w-100",
1136
1160
  "data-cy": "footer"
1137
- }, Fa = /* @__PURE__ */ F({
1161
+ }, _a = /* @__PURE__ */ F({
1138
1162
  __name: "ForgeModal",
1139
1163
  props: /* @__PURE__ */ R({
1140
1164
  cancelText: { default: "Cancel" },
@@ -1198,8 +1222,8 @@ const bt = { key: 0 }, ft = {
1198
1222
  (s || s == null) && u();
1199
1223
  } catch (s) {
1200
1224
  n.value.hasError = !0;
1201
- const C = yt(s);
1202
- n.value.header = C.errorMessage, n.value.message = C.errorDetails;
1225
+ const S = bt(s);
1226
+ n.value.header = S.errorMessage, n.value.message = S.errorDetails;
1203
1227
  }
1204
1228
  a.value = !1;
1205
1229
  }
@@ -1214,7 +1238,7 @@ const bt = { key: 0 }, ft = {
1214
1238
  }
1215
1239
  ]
1216
1240
  }));
1217
- return (s, C) => {
1241
+ return (s, S) => {
1218
1242
  const T = E, M = $e;
1219
1243
  return r(), w(M, V(o, {
1220
1244
  onMaximize: i,
@@ -1252,22 +1276,22 @@ const bt = { key: 0 }, ft = {
1252
1276
  m("p", {
1253
1277
  class: B(n.value.message.length > 0 ? "my-auto" : "mb-0")
1254
1278
  }, h(n.value.header), 3),
1255
- n.value.message.length > 0 ? (r(), b("ul", bt, [
1279
+ n.value.message.length > 0 ? (r(), b("ul", ft, [
1256
1280
  (r(!0), b(N, null, H(n.value.message, (x) => (r(), b("li", { key: x }, h(x), 1))), 128))
1257
- ])) : S("", !0)
1281
+ ])) : C("", !0)
1258
1282
  ]),
1259
1283
  _: 1
1260
- })) : S("", !0),
1284
+ })) : C("", !0),
1261
1285
  $(s.$slots, O, Q(ee(g || {}))),
1262
1286
  a.value ? $(s.$slots, "loader", { key: 1 }, () => [
1263
1287
  y(ve, { "data-cy": "loader" })
1264
- ]) : S("", !0)
1288
+ ]) : C("", !0)
1265
1289
  ])
1266
1290
  })),
1267
1291
  s.showFooter ? {
1268
1292
  name: "footer",
1269
1293
  fn: f(() => [
1270
- m("div", ft, [
1294
+ m("div", gt, [
1271
1295
  y(T, {
1272
1296
  label: s.cancelText,
1273
1297
  class: B(o.cancelClass),
@@ -1290,7 +1314,7 @@ const bt = { key: 0 }, ft = {
1290
1314
  ]), 1040, ["pt"]);
1291
1315
  };
1292
1316
  }
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({
1317
+ }), ht = ["id"], wt = { key: 0 }, xt = { key: 0 }, kt = { class: "d-flex justify-content-between align-items-center position-relative" }, $t = { key: 1 }, Bt = { "data-cy": "readonly-value" }, Ft = /* @__PURE__ */ F({
1294
1318
  __name: "ForgeInlineEditor",
1295
1319
  props: /* @__PURE__ */ R({
1296
1320
  name: { default: "" },
@@ -1309,7 +1333,7 @@ const bt = { key: 0 }, ft = {
1309
1333
  var T;
1310
1334
  o.value = !o.value, (T = a.value) == null || T.focus();
1311
1335
  }, d = async () => {
1312
- if (C.value)
1336
+ if (S.value)
1313
1337
  return !1;
1314
1338
  if (l.value = s.value, t.completeAction)
1315
1339
  try {
@@ -1329,21 +1353,21 @@ const bt = { key: 0 }, ft = {
1329
1353
  le(() => {
1330
1354
  s.value = l.value;
1331
1355
  });
1332
- const C = k(() => v.value.length > 0);
1356
+ const S = k(() => v.value.length > 0);
1333
1357
  return (T, M) => {
1334
1358
  const I = ie, O = E;
1335
1359
  return r(), b("div", {
1336
1360
  id: t.name
1337
1361
  }, [
1338
- T.readonly ? (r(), b("div", kt, [
1362
+ T.readonly ? (r(), b("div", $t, [
1339
1363
  $(T.$slots, "default", {}, () => [
1340
- m("span", $t, h(p(s)), 1)
1364
+ m("span", Bt, h(p(s)), 1)
1341
1365
  ])
1342
- ])) : (r(), b("div", ht, [
1343
- o.value ? (r(), b("div", wt, [
1344
- j((r(), b("div", xt, [
1366
+ ])) : (r(), b("div", wt, [
1367
+ o.value ? (r(), b("div", xt, [
1368
+ j((r(), b("div", kt, [
1345
1369
  $(T.$slots, "editor", {
1346
- class: B({ "is-invalid": C.value }),
1370
+ class: B({ "is-invalid": S.value }),
1347
1371
  editFinished: d,
1348
1372
  cancel: i,
1349
1373
  val: p(s)
@@ -1355,7 +1379,7 @@ const bt = { key: 0 }, ft = {
1355
1379
  modelValue: p(s),
1356
1380
  "onUpdate:modelValue": M[0] || (M[0] = (g) => se(s) ? s.value = g : null),
1357
1381
  modelModifiers: { trim: !0 },
1358
- class: B({ "is-invalid": C.value }),
1382
+ class: B({ "is-invalid": S.value }),
1359
1383
  onKeydown: [
1360
1384
  J(d, ["enter"]),
1361
1385
  J(i, ["esc"])
@@ -1380,7 +1404,7 @@ const bt = { key: 0 }, ft = {
1380
1404
  }, [
1381
1405
  $(T.$slots, "default", {}, () => [
1382
1406
  m("div", {
1383
- class: B(["pe-2 cursor-pointer", { "text-invalid": C.value }]),
1407
+ class: B(["pe-2 cursor-pointer", { "text-invalid": S.value }]),
1384
1408
  "data-cy": "value"
1385
1409
  }, h(p(s) ? p(s) : "Click to edit"), 3)
1386
1410
  ]),
@@ -1391,7 +1415,7 @@ const bt = { key: 0 }, ft = {
1391
1415
  default: f(() => [
1392
1416
  y(p(_), {
1393
1417
  icon: "bi:pencil",
1394
- class: B(C.value ? "text-invalid" : "text-muted"),
1418
+ class: B(S.value ? "text-invalid" : "text-muted"),
1395
1419
  "data-cy": "edit-icon",
1396
1420
  onKeydown: J(n, ["enter"])
1397
1421
  }, null, 8, ["class"])
@@ -1404,12 +1428,12 @@ const bt = { key: 0 }, ft = {
1404
1428
  "data-cy": "error",
1405
1429
  class: "text-invalid"
1406
1430
  }, h(p(c)), 513), [
1407
- [q, C.value]
1431
+ [q, S.value]
1408
1432
  ])
1409
- ], 8, gt);
1433
+ ], 8, ht);
1410
1434
  };
1411
1435
  }
1412
- }), Ft = ["href"], _a = /* @__PURE__ */ F({
1436
+ }), _t = ["href"], Va = /* @__PURE__ */ F({
1413
1437
  __name: "ForgeNavbar",
1414
1438
  props: {
1415
1439
  severity: { default: "light" },
@@ -1468,7 +1492,7 @@ const bt = { key: 0 }, ft = {
1468
1492
  $(o.$slots, "logo", {}, () => [
1469
1493
  a[0] || (a[0] = z(" Logo "))
1470
1494
  ])
1471
- ], 8, Ft)
1495
+ ], 8, _t)
1472
1496
  ]),
1473
1497
  menubuttonicon: f(() => [
1474
1498
  $(o.$slots, "menubuttonicon", {}, () => [
@@ -1491,7 +1515,7 @@ const bt = { key: 0 }, ft = {
1491
1515
  ]), 1040, ["pt"]);
1492
1516
  };
1493
1517
  }
1494
- }), _t = { class: "multiselect__caret" }, Vt = ["checked"], St = ["data-cy"], Ct = ["checked"], Tt = { class: "my-auto ms-1" }, Pt = { class: "multiselect__tag d-inline-flex" }, Mt = { class: "my-auto" }, ye = /* @__PURE__ */ F({
1518
+ }), Vt = { class: "multiselect__caret" }, Ct = ["checked"], St = ["data-cy"], Tt = ["checked"], Pt = { class: "my-auto ms-1" }, Mt = { class: "multiselect__tag d-inline-flex" }, It = { class: "my-auto" }, ye = /* @__PURE__ */ F({
1495
1519
  __name: "ForgeMultiSelect",
1496
1520
  props: {
1497
1521
  severity: { default: "primary" },
@@ -1524,7 +1548,7 @@ const bt = { key: 0 }, ft = {
1524
1548
  searchable: !!(a.searchable === null || a.searchable) && a.modelValue.length === a.options.length,
1525
1549
  async: !1,
1526
1550
  ...a
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 = () => {
1551
+ })), s = k(() => `forge-multiselect-${l.severity}`), S = 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 = () => {
1528
1552
  i.value = v.value.multiple ? [] : null, n("update:modelValue", i.value);
1529
1553
  }, G = (L) => {
1530
1554
  n("update:modelValue", l.selectValue ? L.map((D) => D[l.selectValue]) : L);
@@ -1542,7 +1566,7 @@ const bt = { key: 0 }, ft = {
1542
1566
  modelValue: p(i)
1543
1567
  }), te({
1544
1568
  caret: f(({ toggle: A }) => [
1545
- m("div", _t, [
1569
+ m("div", Vt, [
1546
1570
  I.value ? (r(), w(p(_), {
1547
1571
  key: 0,
1548
1572
  icon: "bi:x",
@@ -1551,7 +1575,7 @@ const bt = { key: 0 }, ft = {
1551
1575
  "data-cy": "clear",
1552
1576
  height: "18px",
1553
1577
  width: "18px"
1554
- })) : S("", !0),
1578
+ })) : C("", !0),
1555
1579
  y(p(_), {
1556
1580
  icon: "bi:chevron-down",
1557
1581
  onClick: A,
@@ -1560,12 +1584,12 @@ const bt = { key: 0 }, ft = {
1560
1584
  ])
1561
1585
  ]),
1562
1586
  tag: f(({ option: A, remove: W }) => [
1563
- m("div", Pt, [
1564
- m("div", Mt, h(A.label), 1),
1587
+ m("div", Mt, [
1588
+ m("div", It, h(A.label), 1),
1565
1589
  y(p(_), {
1566
1590
  icon: "bi:x",
1567
1591
  class: "my-auto multiselect__tag-icon",
1568
- onMousedown: Y((Yl) => o(W, A), ["prevent", "stop"]),
1592
+ onMousedown: Y((Gl) => o(W, A), ["prevent", "stop"]),
1569
1593
  height: "18px",
1570
1594
  width: "18px"
1571
1595
  }, null, 8, ["onMousedown"])
@@ -1587,14 +1611,14 @@ const bt = { key: 0 }, ft = {
1587
1611
  "data-cy": "toggle-all"
1588
1612
  }, [
1589
1613
  m("div", {
1590
- class: B(["d-flex py-1", C.value])
1614
+ class: B(["d-flex py-1", S.value])
1591
1615
  }, [
1592
1616
  m("input", {
1593
1617
  checked: T.value,
1594
1618
  name: "selected",
1595
1619
  type: "checkbox",
1596
1620
  class: "form-check-input px-2 py-2 rounded ms-2 cursor-pointer"
1597
- }, null, 8, Vt),
1621
+ }, null, 8, Ct),
1598
1622
  D[2] || (D[2] = m("div", { class: "my-auto ms-1" }, "Toggle all", -1))
1599
1623
  ], 2)
1600
1624
  ], 32)
@@ -1613,8 +1637,8 @@ const bt = { key: 0 }, ft = {
1613
1637
  name: "selected",
1614
1638
  type: "checkbox",
1615
1639
  class: "form-check-input px-2 py-2 rounded ms-2 cursor-pointer"
1616
- }, null, 8, Ct),
1617
- m("div", Tt, h(A[v.value.label]), 1)
1640
+ }, null, 8, Tt),
1641
+ m("div", Pt, h(A[v.value.label]), 1)
1618
1642
  ], 8, St)
1619
1643
  ]),
1620
1644
  key: "1"
@@ -1628,17 +1652,17 @@ const bt = { key: 0 }, ft = {
1628
1652
  ])
1629
1653
  ], 64));
1630
1654
  }
1631
- }), It = {
1655
+ }), zt = {
1632
1656
  key: 0,
1633
1657
  class: "pl-1"
1634
- }, zt = { class: "border alternating-item-list" }, Ot = {
1658
+ }, Ot = { class: "border alternating-item-list" }, Dt = {
1635
1659
  key: 0,
1636
1660
  class: "p-2 border-top border-bottom",
1637
1661
  "data-cy": "title"
1638
- }, Dt = { class: "d-inline-block" }, Ut = {
1662
+ }, Ut = { class: "d-inline-block" }, At = {
1639
1663
  key: 1,
1640
1664
  class: "p-2 item d-flex justify-content-between align-items-center"
1641
- }, Va = /* @__PURE__ */ F({
1665
+ }, Ca = /* @__PURE__ */ F({
1642
1666
  __name: "ForgeMultiSelectPreview",
1643
1667
  props: /* @__PURE__ */ R({
1644
1668
  title: { default: "Selected Items" },
@@ -1676,7 +1700,7 @@ const bt = { key: 0 }, ft = {
1676
1700
  z(h(""))
1677
1701
  ])),
1678
1702
  selection: f(() => [
1679
- l.value.length > 0 ? (r(), b("span", It, h(l.value.length) + " items selected", 1)) : S("", !0)
1703
+ l.value.length > 0 ? (r(), b("span", zt, h(l.value.length) + " items selected", 1)) : C("", !0)
1680
1704
  ]),
1681
1705
  default: f(() => [
1682
1706
  (r(!0), b(N, null, H(a.$slots, (i, u) => $(a.$slots, u, { slot: u })), 256))
@@ -1693,14 +1717,14 @@ const bt = { key: 0 }, ft = {
1693
1717
  style: we({ height: a.height }),
1694
1718
  class: "overflow-auto"
1695
1719
  }, [
1696
- m("div", zt, [
1697
- a.title ? (r(), b("div", Ot, h(a.title), 1)) : S("", !0),
1720
+ m("div", Ot, [
1721
+ a.title ? (r(), b("div", Dt, h(a.title), 1)) : C("", !0),
1698
1722
  (r(!0), b(N, null, H(l.value, (i) => (r(), b("div", {
1699
1723
  key: i.id,
1700
1724
  class: "p-2 item d-flex justify-content-between align-items-center"
1701
1725
  }, [
1702
1726
  $(a.$slots, "list-item", { item: i }, () => [
1703
- m("span", Dt, h(i.shortLabel ? i.shortLabel : i.label), 1)
1727
+ m("span", Ut, h(i.shortLabel ? i.shortLabel : i.label), 1)
1704
1728
  ]),
1705
1729
  a.canRemoveItemFromPreview ? (r(), w(d, {
1706
1730
  key: 0,
@@ -1716,19 +1740,19 @@ const bt = { key: 0 }, ft = {
1716
1740
  }, null, 8, ["data-cy"])
1717
1741
  ]),
1718
1742
  _: 2
1719
- }, 1032, ["onClick"])) : S("", !0)
1743
+ }, 1032, ["onClick"])) : C("", !0)
1720
1744
  ]))), 128)),
1721
- l.value.length === 0 ? (r(), b("div", Ut, h(t.optionsPreviewEmptyText), 1)) : S("", !0)
1745
+ l.value.length === 0 ? (r(), b("div", At, h(t.optionsPreviewEmptyText), 1)) : C("", !0)
1722
1746
  ])
1723
1747
  ], 4)
1724
1748
  ], 2)
1725
1749
  ], 2);
1726
1750
  };
1727
1751
  }
1728
- }), At = { class: "d-flex justify-content-between pb-2" }, Nt = {
1752
+ }), Nt = { class: "d-flex justify-content-between pb-2" }, Et = {
1729
1753
  "data-cy": "title",
1730
1754
  class: "my-auto"
1731
- }, Et = {
1755
+ }, Lt = {
1732
1756
  "data-cy": "slot",
1733
1757
  class: "d-flex align-items-center"
1734
1758
  }, Sa = /* @__PURE__ */ F({
@@ -1738,14 +1762,14 @@ const bt = { key: 0 }, ft = {
1738
1762
  },
1739
1763
  setup(e) {
1740
1764
  const t = e;
1741
- return (l, o) => (r(), b("div", At, [
1742
- m("h3", Nt, h(t.title), 1),
1743
- m("div", Et, [
1765
+ return (l, o) => (r(), b("div", Nt, [
1766
+ m("h3", Et, h(t.title), 1),
1767
+ m("div", Lt, [
1744
1768
  $(l.$slots, "default")
1745
1769
  ])
1746
1770
  ]));
1747
1771
  }
1748
- }), Lt = { class: "d-flex" }, Rt = { "data-cy": "before-slot" }, jt = { class: "position-relative w-100" }, Ht = { "data-cy": "after-slot" }, be = /* @__PURE__ */ F({
1772
+ }), Rt = { class: "d-flex" }, jt = { "data-cy": "before-slot" }, Ht = { class: "position-relative w-100" }, qt = { "data-cy": "after-slot" }, be = /* @__PURE__ */ F({
1749
1773
  __name: "ForgeDatepicker",
1750
1774
  props: /* @__PURE__ */ R({
1751
1775
  severity: { default: "primary" },
@@ -1913,19 +1937,19 @@ const bt = { key: 0 }, ft = {
1913
1937
  ]
1914
1938
  })
1915
1939
  }));
1916
- return (s, C) => {
1940
+ return (s, S) => {
1917
1941
  const T = Ve;
1918
1942
  return r(), b(N, null, [
1919
- m("div", Lt, [
1920
- m("span", Rt, [
1943
+ m("div", Rt, [
1944
+ m("span", jt, [
1921
1945
  $(s.$slots, "before")
1922
1946
  ]),
1923
- m("div", jt, [
1947
+ m("div", Ht, [
1924
1948
  y(T, V({ ...t, ...s.$attrs }, {
1925
1949
  pt: v.value,
1926
1950
  modelValue: l.value,
1927
1951
  "onUpdate:modelValue": [
1928
- C[0] || (C[0] = (M) => l.value = M),
1952
+ S[0] || (S[0] = (M) => l.value = M),
1929
1953
  p(n)
1930
1954
  ],
1931
1955
  onBlur: p(d),
@@ -1947,7 +1971,7 @@ const bt = { key: 0 }, ft = {
1947
1971
  [q, t.modelValue]
1948
1972
  ])
1949
1973
  ]),
1950
- m("span", Ht, [
1974
+ m("span", qt, [
1951
1975
  $(s.$slots, "after")
1952
1976
  ])
1953
1977
  ]),
@@ -1960,7 +1984,7 @@ const bt = { key: 0 }, ft = {
1960
1984
  ], 64);
1961
1985
  };
1962
1986
  }
1963
- }), Ca = /* @__PURE__ */ F({
1987
+ }), Ta = /* @__PURE__ */ F({
1964
1988
  __name: "ForgeRemainingCharacters",
1965
1989
  props: {
1966
1990
  maxCount: { default: 300 },
@@ -1972,7 +1996,7 @@ const bt = { key: 0 }, ft = {
1972
1996
  class: B(l.value < 0 ? "text-danger" : "")
1973
1997
  }, "Remaining characters: " + h(l.value), 3));
1974
1998
  }
1975
- }), qt = { class: "d-flex justify-content-between" }, Ta = /* @__PURE__ */ F({
1999
+ }), Yt = { class: "d-flex justify-content-between" }, Pa = /* @__PURE__ */ F({
1976
2000
  __name: "ForgeForm",
1977
2001
  props: {
1978
2002
  onSubmit: {},
@@ -2004,7 +2028,7 @@ const bt = { key: 0 }, ft = {
2004
2028
  class: "position-relative shadow-sm border p-4 bg-white",
2005
2029
  onSubmit: Y(a, ["prevent"])
2006
2030
  }), [
2007
- n.hideTitle ? S("", !0) : (r(), b(N, { key: 0 }, [
2031
+ n.hideTitle ? C("", !0) : (r(), b(N, { key: 0 }, [
2008
2032
  $(n.$slots, "title", {}, () => [
2009
2033
  m("h3", {
2010
2034
  class: B(n.titleClass),
@@ -2026,11 +2050,11 @@ const bt = { key: 0 }, ft = {
2026
2050
  ])
2027
2051
  ]),
2028
2052
  _: 3
2029
- })) : S("", !0),
2053
+ })) : C("", !0),
2030
2054
  $(n.$slots, "default"),
2031
- m("div", qt, [
2055
+ m("div", Yt, [
2032
2056
  $(n.$slots, "cancel", {}, () => [
2033
- n.hideCancel ? S("", !0) : (r(), w(i, {
2057
+ n.hideCancel ? C("", !0) : (r(), w(i, {
2034
2058
  key: 0,
2035
2059
  "data-cy": "cancel-btn",
2036
2060
  type: "reset",
@@ -2061,14 +2085,14 @@ const bt = { key: 0 }, ft = {
2061
2085
  l.value ? (r(), w(ve, {
2062
2086
  key: 2,
2063
2087
  "data-cy": "loading-spinner"
2064
- })) : S("", !0)
2088
+ })) : C("", !0)
2065
2089
  ], 16);
2066
2090
  };
2067
2091
  }
2068
- }), Yt = {
2092
+ }), Gt = {
2069
2093
  key: 1,
2070
2094
  class: "d-flex flex-column w-100"
2071
- }, Gt = ["for"], Pa = /* @__PURE__ */ F({
2095
+ }, Kt = ["for"], Ma = /* @__PURE__ */ F({
2072
2096
  __name: "ForgeFormField",
2073
2097
  props: /* @__PURE__ */ R({
2074
2098
  name: {},
@@ -2091,8 +2115,8 @@ const bt = { key: 0 }, ft = {
2091
2115
  return de(() => n.value, (v) => {
2092
2116
  t.value = v;
2093
2117
  }, { immediate: !0 }), (v, s) => {
2094
- const C = Ce, T = Se, M = ie, I = ae, O = ye, g = be;
2095
- return l.type === "checkbox" ? (r(), w(mt, V({
2118
+ const S = Se, T = Ce, M = ie, I = ae, O = ye, g = be;
2119
+ return l.type === "checkbox" ? (r(), w(pt, V({
2096
2120
  key: 0,
2097
2121
  id: l.name,
2098
2122
  label: l.fieldLabel
@@ -2100,7 +2124,7 @@ const bt = { key: 0 }, ft = {
2100
2124
  name: l.name,
2101
2125
  modelValue: t.value,
2102
2126
  "onUpdate:modelValue": s[0] || (s[0] = (x) => t.value = x)
2103
- }), null, 16, ["id", "label", "name", "modelValue"])) : (r(), b("div", Yt, [
2127
+ }), null, 16, ["id", "label", "name", "modelValue"])) : (r(), b("div", Gt, [
2104
2128
  m("div", {
2105
2129
  "data-cy": "input-wrapper",
2106
2130
  class: B(["d-flex", l.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
@@ -2108,7 +2132,7 @@ const bt = { key: 0 }, ft = {
2108
2132
  m("label", {
2109
2133
  for: l.name,
2110
2134
  class: B(l.fieldLabelPosition === "top" ? "mb-1" : "me-2")
2111
- }, h(l.fieldLabel), 11, Gt),
2135
+ }, h(l.fieldLabel), 11, Kt),
2112
2136
  l.type === "number" ? (r(), w(p(ce), V({
2113
2137
  key: 0,
2114
2138
  id: l.name
@@ -2119,7 +2143,7 @@ const bt = { key: 0 }, ft = {
2119
2143
  modelValue: t.value,
2120
2144
  "onUpdate:modelValue": s[1] || (s[1] = (x) => t.value = x),
2121
2145
  onInput: o
2122
- }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : l.type === "textarea" ? (r(), w(C, V({
2146
+ }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : l.type === "textarea" ? (r(), w(S, V({
2123
2147
  key: 1,
2124
2148
  id: l.name
2125
2149
  }, v.$attrs, {
@@ -2162,7 +2186,7 @@ const bt = { key: 0 }, ft = {
2162
2186
  modelValue: t.value,
2163
2187
  "onUpdate:modelValue": s[7] || (s[7] = (x) => t.value = x),
2164
2188
  class: { "is-invalid": c.value }
2165
- }), null, 16, ["modelValue", "class"])) : S("", !0)
2189
+ }), null, 16, ["modelValue", "class"])) : C("", !0)
2166
2190
  ], 2),
2167
2191
  j(m("small", {
2168
2192
  "data-cy": "error",
@@ -2173,7 +2197,7 @@ const bt = { key: 0 }, ft = {
2173
2197
  ]));
2174
2198
  };
2175
2199
  }
2176
- }), Ma = /* @__PURE__ */ F({
2200
+ }), Ia = /* @__PURE__ */ F({
2177
2201
  __name: "ForgeChips",
2178
2202
  props: {
2179
2203
  chipSeverity: { default: "primary" },
@@ -2261,7 +2285,7 @@ const bt = { key: 0 }, ft = {
2261
2285
  ], 64);
2262
2286
  };
2263
2287
  }
2264
- }), Kt = /* @__PURE__ */ F({
2288
+ }), Wt = /* @__PURE__ */ F({
2265
2289
  __name: "ForgeProgressBar",
2266
2290
  props: {
2267
2291
  severity: { default: "primary" },
@@ -2313,7 +2337,7 @@ const bt = { key: 0 }, ft = {
2313
2337
  }, 16, ["pt"]);
2314
2338
  };
2315
2339
  }
2316
- }), Wt = { class: "value text-white w-100 text-center" }, Ia = /* @__PURE__ */ F({
2340
+ }), Zt = { class: "value text-white w-100 text-center" }, za = /* @__PURE__ */ F({
2317
2341
  __name: "ForgeStatWidget",
2318
2342
  props: {
2319
2343
  size: { default: "md" },
@@ -2324,15 +2348,15 @@ const bt = { key: 0 }, ft = {
2324
2348
  return (l, o) => (r(), b("div", V(l.$attrs, {
2325
2349
  class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
2326
2350
  }), [
2327
- m("span", Wt, [
2351
+ m("span", Zt, [
2328
2352
  $(l.$slots, "default")
2329
2353
  ])
2330
2354
  ], 16));
2331
2355
  }
2332
- }), Zt = {
2356
+ }), Jt = {
2333
2357
  class: "d-flex flex-column align-items-center",
2334
2358
  "data-cy": "stepper"
2335
- }, Jt = { class: "d-flex align-items-center justify-content-center w-100" }, za = /* @__PURE__ */ F({
2359
+ }, Xt = { class: "d-flex align-items-center justify-content-center w-100" }, Oa = /* @__PURE__ */ F({
2336
2360
  __name: "ForgeStepper",
2337
2361
  props: {
2338
2362
  currentStep: { default: 0 },
@@ -2399,9 +2423,9 @@ const bt = { key: 0 }, ft = {
2399
2423
  })
2400
2424
  }));
2401
2425
  return (c, v) => {
2402
- const s = E, C = Ie, T = Me;
2403
- return r(), b("div", Zt, [
2404
- m("div", Jt, [
2426
+ const s = E, S = Ie, T = Me;
2427
+ return r(), b("div", Jt, [
2428
+ m("div", Xt, [
2405
2429
  y(s, {
2406
2430
  severity: o.severity,
2407
2431
  disabled: i.value,
@@ -2417,7 +2441,7 @@ const bt = { key: 0 }, ft = {
2417
2441
  ]),
2418
2442
  _: 1
2419
2443
  }, 8, ["severity", "disabled"]),
2420
- y(C, {
2444
+ y(S, {
2421
2445
  "active-step": a.value,
2422
2446
  "onUpdate:activeStep": v[0] || (v[0] = (M) => a.value = M),
2423
2447
  model: o.model,
@@ -2450,12 +2474,12 @@ const bt = { key: 0 }, ft = {
2450
2474
  ]),
2451
2475
  _: 2
2452
2476
  }, 1024)
2453
- ]) : S("", !0)
2477
+ ]) : C("", !0)
2454
2478
  ]))), 128))
2455
2479
  ]);
2456
2480
  };
2457
2481
  }
2458
- }), Xt = { class: "p-4 text-wrap w-100" }, Qt = { class: "p-4 text-wrap w-100" }, Oa = /* @__PURE__ */ F({
2482
+ }), Qt = { class: "p-4 text-wrap w-100" }, el = { class: "p-4 text-wrap w-100" }, Da = /* @__PURE__ */ F({
2459
2483
  __name: "ForgeTile",
2460
2484
  props: {
2461
2485
  severity: { default: "primary" },
@@ -2475,7 +2499,7 @@ const bt = { key: 0 }, ft = {
2475
2499
  "data-cy": "button-tile"
2476
2500
  }, {
2477
2501
  default: f(() => [
2478
- m("div", Xt, [
2502
+ m("div", Qt, [
2479
2503
  $(a.$slots, "default", {}, () => [
2480
2504
  n[0] || (n[0] = z("Tile Content"))
2481
2505
  ])
@@ -2487,7 +2511,7 @@ const bt = { key: 0 }, ft = {
2487
2511
  class: B(["d-flex w-100", o.value]),
2488
2512
  "data-cy": "tile"
2489
2513
  }, [
2490
- m("div", Qt, [
2514
+ m("div", el, [
2491
2515
  $(a.$slots, "default", {}, () => [
2492
2516
  n[1] || (n[1] = z("Tile Content"))
2493
2517
  ])
@@ -2499,13 +2523,13 @@ const bt = { key: 0 }, ft = {
2499
2523
  function X(e, t) {
2500
2524
  return e > 1 ? `${t}s` : t;
2501
2525
  }
2502
- const el = {
2526
+ const tl = {
2503
2527
  class: "d-flex justify-content-start align-items-baseline",
2504
2528
  "data-cy": "pagination-header"
2505
- }, tl = { class: "ms-2" }, ll = { key: 0 }, al = {
2529
+ }, ll = { class: "ms-2" }, al = { key: 0 }, ol = {
2506
2530
  class: "w-auto",
2507
2531
  "data-cy": "total"
2508
- }, ol = /* @__PURE__ */ F({
2532
+ }, nl = /* @__PURE__ */ F({
2509
2533
  __name: "ForgePaginationHeader",
2510
2534
  props: {
2511
2535
  total: {},
@@ -2520,9 +2544,9 @@ const el = {
2520
2544
  const d = Math.ceil(o.total / o.perPage);
2521
2545
  return `${d} ${X(d, "page")}`;
2522
2546
  });
2523
- return (d, i) => (r(), b("div", el, [
2547
+ return (d, i) => (r(), b("div", tl, [
2524
2548
  i[2] || (i[2] = z(" Number of results per page ")),
2525
- m("div", tl, [
2549
+ m("div", ll, [
2526
2550
  y(p(ae), {
2527
2551
  options: o.pageSizes,
2528
2552
  "model-value": o.perPage,
@@ -2530,16 +2554,16 @@ const el = {
2530
2554
  onChange: i[0] || (i[0] = (u) => a(u))
2531
2555
  }, null, 8, ["options", "model-value"])
2532
2556
  ]),
2533
- o.total ? (r(), b("div", ll, [
2557
+ o.total ? (r(), b("div", al, [
2534
2558
  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)
2536
- ])) : S("", !0)
2559
+ m("span", ol, h(o.total) + " " + h(p(X)(o.total, "result")) + " across " + h(n.value), 1)
2560
+ ])) : C("", !0)
2537
2561
  ]));
2538
2562
  }
2539
- }), nl = { class: "position-relative" }, sl = { "data-cy": "above-table-slot" }, il = { class: "d-flex w-100" }, rl = {
2563
+ }), sl = { class: "position-relative" }, il = { "data-cy": "above-table-slot" }, rl = { class: "d-flex w-100" }, dl = {
2540
2564
  class: "mx-auto",
2541
2565
  "data-cy": "empty-message"
2542
- }, dl = { class: "d-flex" }, ul = { class: "d-flex align-items-end mb-2" }, cl = { key: 0 }, ml = { class: "ms-auto" }, Da = /* @__PURE__ */ F({
2566
+ }, ul = { class: "d-flex" }, cl = { class: "d-flex align-items-end mb-2" }, ml = { key: 0 }, pl = { class: "ms-auto" }, Ua = /* @__PURE__ */ F({
2543
2567
  __name: "ForgeTable",
2544
2568
  props: {
2545
2569
  value: {},
@@ -2660,7 +2684,7 @@ const el = {
2660
2684
  for (const g in o.filters)
2661
2685
  typeof o.filters[g] == "string" ? o.filters[g] = "" : o.filters[g].value = null;
2662
2686
  M(o.filters);
2663
- }, C = () => {
2687
+ }, S = () => {
2664
2688
  a.value.exportCSV();
2665
2689
  }, T = (g) => {
2666
2690
  var x;
@@ -2674,8 +2698,8 @@ const el = {
2674
2698
  };
2675
2699
  return de(() => o.filters, (g) => {
2676
2700
  i.value.filters = g, l("update:tableContext", i.value);
2677
- }, { deep: !0 }), le(() => l("update:tableContext", i.value)), (g, x) => (r(), b("div", nl, [
2678
- m("span", sl, [
2701
+ }, { deep: !0 }), le(() => l("update:tableContext", i.value)), (g, x) => (r(), b("div", sl, [
2702
+ m("span", il, [
2679
2703
  $(g.$slots, "above-table")
2680
2704
  ]),
2681
2705
  y(p(ze), V({
@@ -2693,18 +2717,18 @@ const el = {
2693
2717
  onPage: I
2694
2718
  }), te({
2695
2719
  empty: f(() => [
2696
- m("div", il, [
2697
- m("h5", rl, h(g.emptyMessage ?? "No items Found."), 1)
2720
+ m("div", rl, [
2721
+ m("h5", dl, h(g.emptyMessage ?? "No items Found."), 1)
2698
2722
  ])
2699
2723
  ]),
2700
2724
  header: f(() => [
2701
2725
  m("div", {
2702
2726
  class: B(o.loading ? "opacity-50" : "")
2703
2727
  }, [
2704
- m("div", dl, [
2705
- m("div", ul, [
2706
- g.paginator && !g.legacyPaginationFooter ? (r(), b("span", cl, [
2707
- y(ol, {
2728
+ m("div", ul, [
2729
+ m("div", cl, [
2730
+ g.paginator && !g.legacyPaginationFooter ? (r(), b("span", ml, [
2731
+ y(nl, {
2708
2732
  total: u.value,
2709
2733
  "page-sizes": n.value,
2710
2734
  "per-page": d.value,
@@ -2713,9 +2737,9 @@ const el = {
2713
2737
  O
2714
2738
  ]
2715
2739
  }, null, 8, ["total", "page-sizes", "per-page"])
2716
- ])) : S("", !0)
2740
+ ])) : C("", !0)
2717
2741
  ]),
2718
- m("div", ml, [
2742
+ m("div", pl, [
2719
2743
  g.showClearButton ? (r(), w(p(E), {
2720
2744
  key: 0,
2721
2745
  outlined: "",
@@ -2732,11 +2756,11 @@ const el = {
2732
2756
  x[2] || (x[2] = z(" Clear "))
2733
2757
  ]),
2734
2758
  _: 1
2735
- }, 8, ["class"])) : S("", !0),
2759
+ }, 8, ["class"])) : C("", !0),
2736
2760
  g.showExporterButton ? (r(), w(p(E), {
2737
2761
  key: 1,
2738
2762
  outlined: "",
2739
- onClick: C,
2763
+ onClick: S,
2740
2764
  "data-cy": "exporter"
2741
2765
  }, {
2742
2766
  default: f(() => [
@@ -2748,7 +2772,7 @@ const el = {
2748
2772
  x[3] || (x[3] = z(" Export "))
2749
2773
  ]),
2750
2774
  _: 1
2751
- })) : S("", !0),
2775
+ })) : C("", !0),
2752
2776
  $(g.$slots, "column-customiser")
2753
2777
  ])
2754
2778
  ])
@@ -2797,7 +2821,7 @@ const el = {
2797
2821
  ]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
2798
2822
  ]));
2799
2823
  }
2800
- }), pl = { class: "d-flex position-relative" }, vl = { class: "d-flex w-100" }, yl = { class: "d-flex w-100" }, Ua = /* @__PURE__ */ F({
2824
+ }), vl = { class: "d-flex position-relative" }, yl = { class: "d-flex w-100" }, bl = { class: "d-flex w-100" }, Aa = /* @__PURE__ */ F({
2801
2825
  __name: "ForgeFilterHeader",
2802
2826
  props: /* @__PURE__ */ R({
2803
2827
  dataType: {},
@@ -2828,7 +2852,7 @@ const el = {
2828
2852
  };
2829
2853
  return (a, n) => {
2830
2854
  const d = ce, i = E;
2831
- return r(), b("div", pl, [
2855
+ return r(), b("div", vl, [
2832
2856
  a.dataType === "numeric" ? (r(), w(d, V({
2833
2857
  key: 0,
2834
2858
  modelValue: t.value,
@@ -2850,7 +2874,7 @@ const el = {
2850
2874
  "option-label": a.optionLabel
2851
2875
  }), {
2852
2876
  value: f(({ value: u, placeholder: c }) => [
2853
- m("div", vl, [
2877
+ m("div", yl, [
2854
2878
  m("span", {
2855
2879
  class: B({ "filter-placeholder": u === null })
2856
2880
  }, h(l(u, c)), 3),
@@ -2869,7 +2893,7 @@ const el = {
2869
2893
  })
2870
2894
  ]),
2871
2895
  _: 1
2872
- })) : S("", !0)
2896
+ })) : C("", !0)
2873
2897
  ])
2874
2898
  ]),
2875
2899
  _: 1
@@ -2885,7 +2909,7 @@ const el = {
2885
2909
  filter: ""
2886
2910
  }), {
2887
2911
  value: f(({ value: u, placeholder: c }) => [
2888
- m("div", yl, [
2912
+ m("div", bl, [
2889
2913
  m("span", {
2890
2914
  class: B({ "filter-placeholder": (u == null ? void 0 : u.length) === 0 || u === null })
2891
2915
  }, h(l(u, c)), 3),
@@ -2904,7 +2928,7 @@ const el = {
2904
2928
  })
2905
2929
  ]),
2906
2930
  _: 1
2907
- })) : S("", !0)
2931
+ })) : C("", !0)
2908
2932
  ])
2909
2933
  ]),
2910
2934
  _: 1
@@ -2928,7 +2952,7 @@ const el = {
2928
2952
  })
2929
2953
  ]),
2930
2954
  _: 1
2931
- })) : S("", !0)
2955
+ })) : C("", !0)
2932
2956
  ]);
2933
2957
  };
2934
2958
  }
@@ -2945,7 +2969,7 @@ function fe(e, t, l, o) {
2945
2969
  })) : t[d].status = "Duplicate";
2946
2970
  }), t;
2947
2971
  }
2948
- async function bl(e, t) {
2972
+ async function fl(e, t) {
2949
2973
  if (e === "Uploaded" && t !== null)
2950
2974
  try {
2951
2975
  await new me(t).delete();
@@ -2968,16 +2992,16 @@ function re(e, t = !0, l = 1) {
2968
2992
  while (Math.round(Math.abs(e) * d) / d >= o && n < a.length - 1);
2969
2993
  return e.toFixed(l) + " " + a[n];
2970
2994
  }
2971
- function fl(e) {
2995
+ function gl(e) {
2972
2996
  return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
2973
2997
  }
2974
- function gl(e) {
2998
+ function hl(e) {
2975
2999
  return URL.createObjectURL(e);
2976
3000
  }
2977
- const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disabled", "multiple"], xl = {
3001
+ const wl = { class: "d-flex justify-content-between" }, xl = ["accept", "disabled", "multiple"], kl = {
2978
3002
  class: "text-break accepted-file-types-container",
2979
3003
  id: "accepted-file-types-overlay"
2980
- }, kl = /* @__PURE__ */ F({
3004
+ }, $l = /* @__PURE__ */ F({
2981
3005
  __name: "UploadButton",
2982
3006
  props: /* @__PURE__ */ R({
2983
3007
  acceptedFileTypes: {},
@@ -2994,7 +3018,7 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
2994
3018
  };
2995
3019
  return (d, i) => {
2996
3020
  const u = E;
2997
- return r(), b("div", hl, [
3021
+ return r(), b("div", wl, [
2998
3022
  $(d.$slots, "message"),
2999
3023
  m("div", null, [
3000
3024
  m("input", {
@@ -3005,7 +3029,7 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
3005
3029
  disabled: a.value,
3006
3030
  multiple: d.maxFileInput > 1,
3007
3031
  onInput: i[0] || (i[0] = (c) => n([...c.target.files]))
3008
- }, null, 40, wl),
3032
+ }, null, 40, xl),
3009
3033
  m("label", {
3010
3034
  class: B([{ disabled: a.value }, "btn btn-primary"]),
3011
3035
  id: "file-input-button",
@@ -3033,27 +3057,27 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
3033
3057
  z("Accepted File Types")
3034
3058
  ])),
3035
3059
  _: 1
3036
- })) : S("", !0),
3060
+ })) : C("", !0),
3037
3061
  y(p(pe), {
3038
3062
  ref_key: "acceptedFilesOverlay",
3039
3063
  ref: l
3040
3064
  }, {
3041
3065
  default: f(() => [
3042
- m("div", xl, h(d.acceptedFileTypes.map((c) => c.label ?? c.fileType.split("/").pop()).join(", ")), 1)
3066
+ m("div", kl, h(d.acceptedFileTypes.map((c) => c.label ?? c.fileType.split("/").pop()).join(", ")), 1)
3043
3067
  ]),
3044
3068
  _: 1
3045
3069
  }, 512)
3046
3070
  ]);
3047
3071
  };
3048
3072
  }
3049
- }), $l = {
3073
+ }), Bl = {
3050
3074
  key: 0,
3051
3075
  class: "py-4 px-3",
3052
3076
  id: "placeholder-message"
3053
- }, Bl = {
3077
+ }, Fl = {
3054
3078
  key: 1,
3055
3079
  class: "d-flex flex-column"
3056
- }, Fl = /* @__PURE__ */ F({
3080
+ }, _l = /* @__PURE__ */ F({
3057
3081
  __name: "DragDropArea",
3058
3082
  props: /* @__PURE__ */ R({
3059
3083
  maxFileInput: {},
@@ -3075,7 +3099,7 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
3075
3099
  onDragover: d[1] || (d[1] = Y((i) => l.value = !0, ["prevent"])),
3076
3100
  onDrop: Y(a, ["prevent"])
3077
3101
  }, [
3078
- t.value.length === 0 ? (r(), b("div", $l, [
3102
+ t.value.length === 0 ? (r(), b("div", Bl, [
3079
3103
  y(p(_), {
3080
3104
  icon: "bi:upload",
3081
3105
  class: "me-2",
@@ -3083,12 +3107,12 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
3083
3107
  width: "20px"
3084
3108
  }),
3085
3109
  d[2] || (d[2] = z(" Drag and drop files here "))
3086
- ])) : (r(), b("div", Bl, [
3110
+ ])) : (r(), b("div", Fl, [
3087
3111
  $(n.$slots, "default")
3088
3112
  ]))
3089
3113
  ], 34));
3090
3114
  }
3091
- }), _l = { class: "d-flex align-items-center me-2" }, Vl = /* @__PURE__ */ F({
3115
+ }), Vl = { class: "d-flex align-items-center me-2" }, Cl = /* @__PURE__ */ F({
3092
3116
  __name: "UploadStatus",
3093
3117
  props: {
3094
3118
  fileSize: {},
@@ -3113,8 +3137,8 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
3113
3137
  return "Upload Failed: Connection error, please try again.";
3114
3138
  }
3115
3139
  });
3116
- return (o, a) => (r(), b("div", _l, [
3117
- o.uploadStatus === "Uploading" ? (r(), w(Kt, {
3140
+ return (o, a) => (r(), b("div", Vl, [
3141
+ o.uploadStatus === "Uploading" ? (r(), w(Wt, {
3118
3142
  key: 0,
3119
3143
  pixelWidth: 200,
3120
3144
  animate: "",
@@ -3124,7 +3148,7 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
3124
3148
  z(h((o.bytesUploaded / o.fileSize * 100).toFixed(0)) + "%", 1)
3125
3149
  ]),
3126
3150
  _: 1
3127
- })) : S("", !0),
3151
+ })) : C("", !0),
3128
3152
  o.uploadStatus !== "Uploading" && o.uploadStatus !== "Not Uploaded" && o.uploadStatus !== "Uploaded" && o.uploadStatus !== "Preparing" ? (r(), w(oe, {
3129
3153
  key: 1,
3130
3154
  id: "upload-status-alert",
@@ -3135,19 +3159,19 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
3135
3159
  z(h(l.value), 1)
3136
3160
  ]),
3137
3161
  _: 1
3138
- }, 8, ["severity"])) : S("", !0)
3162
+ }, 8, ["severity"])) : C("", !0)
3139
3163
  ]));
3140
3164
  }
3141
- }), Sl = ["data-cy"], Cl = { class: "ms-3 d-flex flex-column" }, Tl = {
3165
+ }), Sl = ["data-cy"], Tl = { class: "ms-3 d-flex flex-column" }, Pl = {
3142
3166
  key: 1,
3143
3167
  id: "file-name"
3144
- }, Pl = {
3168
+ }, Ml = {
3145
3169
  class: "text-black-50",
3146
3170
  id: "file-type"
3147
- }, Ml = {
3171
+ }, Il = {
3148
3172
  class: "text-black-50",
3149
3173
  id: "file-size"
3150
- }, Il = { class: "ms-auto my-auto d-flex" }, zl = /* @__PURE__ */ F({
3174
+ }, zl = { class: "ms-auto my-auto d-flex" }, Ol = /* @__PURE__ */ F({
3151
3175
  __name: "FileInfo",
3152
3176
  props: /* @__PURE__ */ R({
3153
3177
  editableFileName: { type: Boolean },
@@ -3166,7 +3190,7 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
3166
3190
  }),
3167
3191
  emits: /* @__PURE__ */ R(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
3168
3192
  setup(e, { emit: t }) {
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.includes(l.value.type)), s = k(() => l.value.size <= e.maxFileSize), C = () => {
3193
+ 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), S = () => {
3170
3194
  l.value = new File([l.value], d.value, { type: l.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() });
3171
3195
  }, T = async () => {
3172
3196
  if (!v.value || !s.value) {
@@ -3195,7 +3219,7 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
3195
3219
  a.value = "Failed";
3196
3220
  }
3197
3221
  }, M = async () => {
3198
- await bl(a.value, i.value), n("deleted", l.value);
3222
+ await fl(a.value, i.value), n("deleted", l.value);
3199
3223
  };
3200
3224
  return le(() => {
3201
3225
  e.autoUploadToBlob && T();
@@ -3206,11 +3230,11 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
3206
3230
  "data-cy": `file-info-${l.value.name}`
3207
3231
  }, [
3208
3232
  m("div", null, [
3209
- p(fl)(l.value.type) ? (r(), w(p(De), {
3233
+ p(gl)(l.value.type) ? (r(), w(p(De), {
3210
3234
  key: 0,
3211
3235
  id: "thumbnail-image",
3212
3236
  "image-class": "image-file-thumbnail border",
3213
- src: p(gl)(l.value),
3237
+ src: p(hl)(l.value),
3214
3238
  alt: l.value.name,
3215
3239
  width: "75px",
3216
3240
  preview: ""
@@ -3222,23 +3246,23 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
3222
3246
  width: "75px"
3223
3247
  }))
3224
3248
  ]),
3225
- m("div", Cl, [
3249
+ m("div", Tl, [
3226
3250
  m("div", null, [
3227
- I.editableFileName ? (r(), w(Bt, {
3251
+ I.editableFileName ? (r(), w(Ft, {
3228
3252
  key: 0,
3229
3253
  id: "edit-file-name",
3230
3254
  modelValue: d.value,
3231
3255
  "onUpdate:modelValue": O[0] || (O[0] = (x) => d.value = x),
3232
3256
  rules: I.customFileNameRules,
3233
3257
  name: l.value.name,
3234
- "complete-action": C
3235
- }, null, 8, ["modelValue", "rules", "name"])) : (r(), b("span", Tl, h(l.value.name), 1))
3258
+ "complete-action": S
3259
+ }, null, 8, ["modelValue", "rules", "name"])) : (r(), b("span", Pl, h(l.value.name), 1))
3236
3260
  ]),
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)
3261
+ m("span", Ml, "File type: " + h(l.value.type.split("/").pop()), 1),
3262
+ m("span", Il, "File size: " + h(p(re)(l.value.size)), 1)
3239
3263
  ]),
3240
- m("div", Il, [
3241
- (r(), w(Vl, {
3264
+ m("div", zl, [
3265
+ (r(), w(Cl, {
3242
3266
  key: a.value,
3243
3267
  "file-size": l.value.size,
3244
3268
  "upload-status": a.value,
@@ -3256,7 +3280,7 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
3256
3280
  }, null, 8, ["icon"])
3257
3281
  ]),
3258
3282
  _: 1
3259
- })) : S("", !0),
3283
+ })) : C("", !0),
3260
3284
  a.value === "Uploading" ? (r(), w(g, {
3261
3285
  key: 1,
3262
3286
  link: "",
@@ -3281,17 +3305,17 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
3281
3305
  ], 8, Sl);
3282
3306
  };
3283
3307
  }
3284
- }), Ol = { class: "d-flex justify-content-end mt-1" }, Dl = { id: "max-file-size" }, Ul = /* @__PURE__ */ F({
3308
+ }), Dl = { class: "d-flex justify-content-end mt-1" }, Ul = { id: "max-file-size" }, Al = /* @__PURE__ */ F({
3285
3309
  __name: "MaxFileSize",
3286
3310
  props: {
3287
3311
  maxFileSize: {}
3288
3312
  },
3289
3313
  setup(e) {
3290
- return (t, l) => (r(), b("div", Ol, [
3291
- m("div", Dl, "Max file size: " + h(p(re)(t.maxFileSize)), 1)
3314
+ return (t, l) => (r(), b("div", Dl, [
3315
+ m("div", Ul, "Max file size: " + h(p(re)(t.maxFileSize)), 1)
3292
3316
  ]));
3293
3317
  }
3294
- }), Al = { "data-cy": "file-uploader" }, Nl = { key: 0 }, Aa = /* @__PURE__ */ F({
3318
+ }), Nl = { "data-cy": "file-uploader" }, El = { key: 0 }, Na = /* @__PURE__ */ F({
3295
3319
  __name: "ForgeFileUploader",
3296
3320
  props: /* @__PURE__ */ R({
3297
3321
  acceptedFileTypes: {},
@@ -3311,13 +3335,13 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
3311
3335
  const t = U(e, "modelValue"), l = e, o = (a) => {
3312
3336
  t.value = t.value.filter((n) => n.file != a);
3313
3337
  };
3314
- return (a, n) => (r(), b("div", Al, [
3315
- y(kl, V(l, {
3338
+ return (a, n) => (r(), b("div", Nl, [
3339
+ y($l, V(l, {
3316
3340
  modelValue: t.value,
3317
3341
  "onUpdate:modelValue": n[0] || (n[0] = (d) => t.value = d)
3318
3342
  }), null, 16, ["modelValue"]),
3319
- a.showDragDropArea ? (r(), b("div", Nl, [
3320
- y(Fl, {
3343
+ a.showDragDropArea ? (r(), b("div", El, [
3344
+ y(_l, {
3321
3345
  "max-file-input": l.maxFileInput,
3322
3346
  "max-file-size": l.maxFileSize,
3323
3347
  "accepted-file-types": l.acceptedFileTypes,
@@ -3326,7 +3350,7 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
3326
3350
  }, {
3327
3351
  default: f(() => [
3328
3352
  (r(!0), b(N, null, H(t.value, ({ file: d }, i) => (r(), b("span", null, [
3329
- (r(), w(zl, V({
3353
+ (r(), w(Ol, V({
3330
3354
  key: d.name,
3331
3355
  class: i === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
3332
3356
  file: t.value[i].file,
@@ -3341,13 +3365,13 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
3341
3365
  ]),
3342
3366
  _: 1
3343
3367
  }, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
3344
- y(Ul, {
3368
+ y(Al, {
3345
3369
  "max-file-size": l.maxFileSize
3346
3370
  }, null, 8, ["max-file-size"])
3347
- ])) : S("", !0)
3371
+ ])) : C("", !0)
3348
3372
  ]));
3349
3373
  }
3350
- }), El = { class: "d-flex" }, Ll = { class: "me-3" }, Rl = { class: "ms-2" }, jl = { class: "d-flex flex-column w-100" }, Hl = ["onClick"], ql = ["for"], Na = /* @__PURE__ */ F({
3374
+ }), Ll = { class: "d-flex" }, Rl = { class: "me-3" }, jl = { class: "ms-2" }, Hl = { class: "d-flex flex-column w-100" }, ql = ["onClick"], Yl = ["for"], Ea = /* @__PURE__ */ F({
3351
3375
  __name: "ForgeColumnCustomiser",
3352
3376
  props: {
3353
3377
  modelValue: { required: !0 },
@@ -3369,12 +3393,12 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
3369
3393
  class: "ms-2"
3370
3394
  }, {
3371
3395
  default: f(() => [
3372
- m("div", El, [
3373
- m("div", Ll, [
3396
+ m("div", Ll, [
3397
+ m("div", Rl, [
3374
3398
  y(p(_), { icon: "bi:layout-three-columns" })
3375
3399
  ]),
3376
3400
  z(" Columns (" + h(t.value.length ?? 0) + "/" + h(a.value.length ?? 0) + ") ", 1),
3377
- m("div", Rl, [
3401
+ m("div", jl, [
3378
3402
  y(p(_), {
3379
3403
  icon: o.value ? "bi:chevron-up" : "bi:chevron-down"
3380
3404
  }, null, 8, ["icon"])
@@ -3391,7 +3415,7 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
3391
3415
  onShow: c[1] || (c[1] = () => o.value = !0)
3392
3416
  }, {
3393
3417
  default: f(() => [
3394
- m("div", jl, [
3418
+ m("div", Hl, [
3395
3419
  (r(!0), b(N, null, H(a.value, (v, s) => (r(), b("div", {
3396
3420
  class: B(["d-flex cursor-pointer", {
3397
3421
  "border-top": s !== 0,
@@ -3399,19 +3423,19 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
3399
3423
  "pt-1": a.value.length - 1 === s,
3400
3424
  "pb-1": s === 0
3401
3425
  }]),
3402
- onClick: (C) => i(v.field)
3426
+ onClick: (S) => i(v.field)
3403
3427
  }, [
3404
3428
  y(p(ue), {
3405
3429
  id: v.field,
3406
- "model-value": n.value.find((C) => C.field === v.field).selected,
3430
+ "model-value": n.value.find((S) => S.field === v.field).selected,
3407
3431
  binary: "",
3408
3432
  class: "cursor-pointer"
3409
3433
  }, null, 8, ["id", "model-value"]),
3410
3434
  m("label", {
3411
3435
  for: v.field,
3412
3436
  class: "cursor-pointer"
3413
- }, h(v.header), 9, ql)
3414
- ], 10, Hl))), 256))
3437
+ }, h(v.header), 9, Yl)
3438
+ ], 10, ql))), 256))
3415
3439
  ])
3416
3440
  ]),
3417
3441
  _: 1
@@ -3420,32 +3444,32 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
3420
3444
  }
3421
3445
  });
3422
3446
  export {
3423
- wa as Bootstrap_PT,
3424
- xa as ForgeActionButton,
3447
+ xa as Bootstrap_PT,
3448
+ ka as ForgeActionButton,
3425
3449
  oe as ForgeAlert,
3426
- mt as ForgeCheckbox,
3427
- Ma as ForgeChips,
3428
- Na as ForgeColumnCustomiser,
3450
+ pt as ForgeCheckbox,
3451
+ Ia as ForgeChips,
3452
+ Ea as ForgeColumnCustomiser,
3429
3453
  be as ForgeDatepicker,
3430
- Aa as ForgeFileUploader,
3431
- Ua as ForgeFilterHeader,
3432
- Ta as ForgeForm,
3433
- Pa as ForgeFormField,
3434
- Bt as ForgeInlineEditor,
3435
- ka as ForgeLink,
3454
+ Na as ForgeFileUploader,
3455
+ Aa as ForgeFilterHeader,
3456
+ Pa as ForgeForm,
3457
+ Ma as ForgeFormField,
3458
+ Ft as ForgeInlineEditor,
3459
+ $a as ForgeLink,
3436
3460
  ve as ForgeLoader,
3437
- Fa as ForgeModal,
3461
+ _a as ForgeModal,
3438
3462
  ye as ForgeMultiSelect,
3439
- Va as ForgeMultiSelectPreview,
3440
- _a as ForgeNavbar,
3463
+ Ca as ForgeMultiSelectPreview,
3464
+ Va as ForgeNavbar,
3441
3465
  Sa as ForgePageHeader,
3442
- Kt as ForgeProgressBar,
3443
- Ca as ForgeRemainingCharacters,
3444
- Ia as ForgeStatWidget,
3445
- za as ForgeStepper,
3446
- Da as ForgeTable,
3447
- Oa as ForgeTile,
3448
- Ba as convertToMultiSelectOption,
3449
- $a as enumToMultiSelectList,
3450
- yt as parseError
3466
+ Wt as ForgeProgressBar,
3467
+ Ta as ForgeRemainingCharacters,
3468
+ za as ForgeStatWidget,
3469
+ Oa as ForgeStepper,
3470
+ Ua as ForgeTable,
3471
+ Da as ForgeTile,
3472
+ Fa as convertToMultiSelectOption,
3473
+ Ba as enumToMultiSelectList,
3474
+ bt as parseError
3451
3475
  };