@3squared/forge-ui-3 0.5.5 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,14 @@
1
1
  import fe from "primevue/message";
2
- import { defineComponent as $, openBlock as s, createBlock as w, normalizeProps as Q, guardReactiveProps as ee, withCtx as v, createElementVNode as m, normalizeClass as B, unref as c, createCommentVNode as F, createVNode as y, renderSlot as k, ref as T, createElementBlock as p, Fragment as D, mergeProps as S, onMounted as oe, watch as ge, computed as x, isRef as H, createTextVNode as P, toDisplayString as g, withDirectives as L, vShow as Y, mergeModels as q, useModel as R, createSlots as te, renderList as j, withKeys as J, useAttrs as de, withModifiers as G, normalizeStyle as he } from "vue";
2
+ import { defineComponent as F, openBlock as s, createBlock as w, normalizeProps as Q, guardReactiveProps as ee, withCtx as b, createElementVNode as m, normalizeClass as _, unref as u, createCommentVNode as B, createVNode as v, renderSlot as k, ref as M, createElementBlock as p, Fragment as A, mergeProps as S, onMounted as oe, watch as ge, computed as x, isRef as j, createTextVNode as P, toDisplayString as h, withDirectives as L, vShow as Y, mergeModels as q, useModel as R, createSlots as te, renderList as H, withKeys as J, useAttrs as de, withModifiers as G, normalizeStyle as he } from "vue";
3
3
  import { Icon as C } from "@iconify/vue";
4
4
  import E from "primevue/button";
5
5
  import we from "primevue/toast";
6
6
  import xe from "primevue/checkbox";
7
7
  import { useField as W } from "vee-validate";
8
8
  import ke from "primevue/progressspinner";
9
- import _e from "primevue/dialog";
9
+ import $e from "primevue/dialog";
10
10
  import ne from "primevue/inputtext";
11
- import { vOnClickOutside as $e } from "@vueuse/components";
11
+ import { vOnClickOutside as _e } from "@vueuse/components";
12
12
  import Fe from "primevue/menubar";
13
13
  import Be from "vue-multiselect";
14
14
  import Se from "primevue/calendar";
@@ -307,7 +307,7 @@ const Ue = {
307
307
  root: "form-check form-switch",
308
308
  input: "form-check-input"
309
309
  }
310
- }, je = {
310
+ }, He = {
311
311
  textarea: {
312
312
  root: () => ({
313
313
  class: [
@@ -315,7 +315,7 @@ const Ue = {
315
315
  ]
316
316
  })
317
317
  }
318
- }, He = {
318
+ }, je = {
319
319
  // More PassThrough options in component file.
320
320
  chips: {
321
321
  root: "d-flex",
@@ -356,9 +356,12 @@ const Ue = {
356
356
  ]
357
357
  }),
358
358
  mask: ({ props: e }) => ({
359
- class: [{
360
- "modal-open": e.modal && e.visible
361
- }]
359
+ class: [
360
+ "z-3",
361
+ {
362
+ "modal-open": e.modal && e.visible
363
+ }
364
+ ]
362
365
  })
363
366
  }
364
367
  }, qe = {
@@ -535,7 +538,9 @@ const Ue = {
535
538
  })
536
539
  }
537
540
  }, Xe = {
541
+ // More PT options can be found in the ForgeTable file.
538
542
  dataTable: {
543
+ datatable: "position-relative",
539
544
  table: (e) => ({
540
545
  class: [
541
546
  "table position-relative",
@@ -555,9 +560,6 @@ const Ue = {
555
560
  }
556
561
  }),
557
562
  rowgrouptoggler: "btn",
558
- thead: () => ({
559
- class: "sticky-header"
560
- }),
561
563
  //@ts-ignore
562
564
  tbody: (e) => ({
563
565
  class: {
@@ -566,9 +568,6 @@ const Ue = {
566
568
  }),
567
569
  loadingOverlay: () => ({
568
570
  class: "table-overlay table-spinner"
569
- }),
570
- loadingIcon: () => ({
571
- class: "spinner-border border-0"
572
571
  })
573
572
  },
574
573
  paginator: {
@@ -816,12 +815,12 @@ const Ue = {
816
815
  };
817
816
  }
818
817
  }
819
- }, il = {
818
+ }, sl = {
820
819
  ...Qe,
821
820
  ...Ue,
822
821
  ...ot,
823
822
  ...Ae,
824
- ...He,
823
+ ...je,
825
824
  ...Ne,
826
825
  ...Ze,
827
826
  ...Ye,
@@ -842,11 +841,11 @@ const Ue = {
842
841
  ...Xe,
843
842
  ...We,
844
843
  ...it,
845
- ...je,
844
+ ...He,
846
845
  directives: {
847
846
  ...tt
848
847
  }
849
- }, ae = /* @__PURE__ */ $({
848
+ }, ae = /* @__PURE__ */ F({
850
849
  __name: "ForgeAlert",
851
850
  props: {
852
851
  severity: { default: "primary" },
@@ -865,30 +864,30 @@ const Ue = {
865
864
  return (n, a) => {
866
865
  const l = fe;
867
866
  return s(), w(l, Q(ee({ ...n.$attrs, ...t })), {
868
- messageicon: v(() => [
867
+ messageicon: b(() => [
869
868
  m("div", {
870
- class: B(t.icon ? "me-2 pe-1" : "")
869
+ class: _(t.icon ? "me-2 pe-1" : "")
871
870
  }, [
872
- t.icon ? (s(), w(c(C), {
871
+ t.icon ? (s(), w(u(C), {
873
872
  key: 0,
874
873
  "data-cy": "message-icon",
875
874
  icon: t.icon,
876
- class: B(`text-${t.severity}`),
875
+ class: _(`text-${t.severity}`),
877
876
  height: 35
878
- }, null, 8, ["icon", "class"])) : F("", !0)
877
+ }, null, 8, ["icon", "class"])) : B("", !0)
879
878
  ], 2)
880
879
  ]),
881
- closeicon: v(() => [
882
- y(c(C), { icon: "bi:x" })
880
+ closeicon: b(() => [
881
+ v(u(C), { icon: "bi:x" })
883
882
  ]),
884
- default: v(() => [
883
+ default: b(() => [
885
884
  k(n.$slots, "default")
886
885
  ]),
887
886
  _: 3
888
887
  }, 16);
889
888
  };
890
889
  }
891
- }), rl = /* @__PURE__ */ $({
890
+ }), il = /* @__PURE__ */ F({
892
891
  __name: "ForgeActionButton",
893
892
  props: {
894
893
  action: {},
@@ -897,7 +896,7 @@ const Ue = {
897
896
  params: { default: Array }
898
897
  },
899
898
  setup(e) {
900
- const t = T(!1), n = e, a = async () => {
899
+ const t = M(!1), n = e, a = async () => {
901
900
  t.value = !0;
902
901
  try {
903
902
  await n.action.apply(this, n.params);
@@ -908,17 +907,17 @@ const Ue = {
908
907
  };
909
908
  return (l, o) => {
910
909
  const i = E;
911
- return s(), p(D, null, [
912
- y(i, S({ ...n, ...l.$attrs }, {
910
+ return s(), p(A, null, [
911
+ v(i, S({ ...n, ...l.$attrs }, {
913
912
  loading: t.value,
914
913
  disabled: t.value || n.disabled,
915
914
  onClick: a
916
915
  }), null, 16, ["loading", "disabled"]),
917
- y(c(we))
916
+ v(u(we))
918
917
  ], 64);
919
918
  };
920
919
  }
921
- }), rt = /* @__PURE__ */ m("div", null, null, -1), dt = ["for"], me = /* @__PURE__ */ $({
920
+ }), rt = /* @__PURE__ */ m("div", null, null, -1), dt = ["for"], me = /* @__PURE__ */ F({
922
921
  __name: "ForgeCheckbox",
923
922
  props: {
924
923
  label: { default: "" },
@@ -946,58 +945,58 @@ const Ue = {
946
945
  },
947
946
  emits: ["update:modelValue"],
948
947
  setup(e, { emit: t }) {
949
- const n = t, a = e, { checked: l, handleChange: o, setValue: i, errors: u, errorMessage: b } = W(() => a.name ?? a.label, a.rules, {
948
+ const n = t, a = e, { checked: l, handleChange: o, setValue: i, errors: d, errorMessage: f } = W(() => a.name ?? a.label, a.rules, {
950
949
  type: "checkbox",
951
950
  checkedValue: !0
952
- }), d = (r) => {
953
- a.disabled || (o(r), n("update:modelValue", !a.modelValue));
951
+ }), r = (y) => {
952
+ a.disabled || (o(y), n("update:modelValue", !a.modelValue));
954
953
  };
955
954
  oe(() => {
956
955
  a.value !== void 0 && a.value !== (l == null ? void 0 : l.value) ? i(a.value) : a.modelValue !== void 0 && a.modelValue !== (l == null ? void 0 : l.value) && i(a.modelValue);
957
- }), ge(() => a.value, (r) => {
958
- i(r);
956
+ }), ge(() => a.value, (y) => {
957
+ i(y);
959
958
  });
960
- const f = x(() => u.value.length > 0);
961
- return (r, h) => {
962
- const _ = xe;
963
- return s(), p(D, null, [
959
+ const g = x(() => d.value.length > 0);
960
+ return (y, c) => {
961
+ const $ = xe;
962
+ return s(), p(A, null, [
964
963
  m("div", S({
965
964
  class: "d-flex",
966
965
  "data-cy": "checkbox-container"
967
- }, { ...r.$attrs }), [
968
- y(_, S({
966
+ }, { ...y.$attrs }), [
967
+ v($, S({
969
968
  id: a.name
970
969
  }, { ...a }, {
971
- modelValue: c(l),
972
- "onUpdate:modelValue": h[0] || (h[0] = (V) => H(l) ? l.value = V : null),
973
- "input-class": { "is-invalid": f.value },
974
- onChange: d
970
+ modelValue: u(l),
971
+ "onUpdate:modelValue": c[0] || (c[0] = (V) => j(l) ? l.value = V : null),
972
+ "input-class": { "is-invalid": g.value },
973
+ onChange: r
975
974
  }), {
976
- icon: v(() => [
975
+ icon: b(() => [
977
976
  rt
978
977
  ]),
979
978
  _: 1
980
979
  }, 16, ["id", "modelValue", "input-class"]),
981
980
  m("label", {
982
981
  for: a.name,
983
- class: B(`${a.disabled ? "opacity-50" : "cursor-pointer"}`),
984
- onClick: d
982
+ class: _(`${a.disabled ? "opacity-50" : "cursor-pointer"}`),
983
+ onClick: r
985
984
  }, [
986
- k(r.$slots, "default", {}, () => [
987
- P(g(a.label), 1)
985
+ k(y.$slots, "default", {}, () => [
986
+ P(h(a.label), 1)
988
987
  ])
989
988
  ], 10, dt)
990
989
  ], 16),
991
990
  L(m("small", {
992
991
  "data-cy": "error",
993
992
  class: "text-invalid"
994
- }, g(c(b)), 513), [
995
- [Y, f.value]
993
+ }, h(u(f)), 513), [
994
+ [Y, g.value]
996
995
  ])
997
996
  ], 64);
998
997
  };
999
998
  }
1000
- }), ut = { class: "forge-loader" }, pe = /* @__PURE__ */ $({
999
+ }), ut = { class: "forge-loader" }, pe = /* @__PURE__ */ F({
1001
1000
  __name: "ForgeLoader",
1002
1001
  props: {
1003
1002
  severity: { default: "primary" }
@@ -1007,14 +1006,14 @@ const Ue = {
1007
1006
  return (n, a) => {
1008
1007
  const l = ke;
1009
1008
  return s(), p("div", ut, [
1010
- y(l, {
1009
+ v(l, {
1011
1010
  "animation-duration": ".75",
1012
- class: B(`text-${t.severity === void 0 ? "primary" : t.severity}`)
1011
+ class: _(`text-${t.severity === void 0 ? "primary" : t.severity}`)
1013
1012
  }, null, 8, ["class"])
1014
1013
  ]);
1015
1014
  };
1016
1015
  }
1017
- }), ct = ["href", "target"], dl = /* @__PURE__ */ $({
1016
+ }), ct = ["href", "target"], rl = /* @__PURE__ */ F({
1018
1017
  __name: "ForgeLink",
1019
1018
  props: {
1020
1019
  url: {},
@@ -1050,18 +1049,18 @@ const Ue = {
1050
1049
  }));
1051
1050
  return (a, l) => (s(), p("a", {
1052
1051
  id: "link",
1053
- class: B(["cursor-pointer d-flex", t.value]),
1052
+ class: _(["cursor-pointer d-flex", t.value]),
1054
1053
  href: a.url,
1055
1054
  target: a.target
1056
1055
  }, [
1057
1056
  k(a.$slots, "default", {}, () => [
1058
- a.iconName ? (s(), w(c(C), {
1057
+ a.iconName ? (s(), w(u(C), {
1059
1058
  key: 0,
1060
1059
  id: "link-icon",
1061
1060
  icon: a.iconName,
1062
- class: B(["bi my-auto", n.value])
1063
- }, null, 8, ["icon", "class"])) : F("", !0),
1064
- P(" " + g(a.label), 1)
1061
+ class: _(["bi my-auto", n.value])
1062
+ }, null, 8, ["icon", "class"])) : B("", !0),
1063
+ P(" " + h(a.label), 1)
1065
1064
  ])
1066
1065
  ], 10, ct));
1067
1066
  }
@@ -1080,7 +1079,7 @@ function mt(e) {
1080
1079
  const pt = { key: 0 }, yt = {
1081
1080
  class: "d-flex w-100",
1082
1081
  "data-cy": "footer"
1083
- }, ul = /* @__PURE__ */ $({
1082
+ }, dl = /* @__PURE__ */ F({
1084
1083
  __name: "ForgeModal",
1085
1084
  props: /* @__PURE__ */ q({
1086
1085
  cancelText: { default: "Cancel" },
@@ -1123,30 +1122,30 @@ const pt = { key: 0 }, yt = {
1123
1122
  }),
1124
1123
  emits: ["update:visible"],
1125
1124
  setup(e) {
1126
- const t = R(e, "visible"), n = T(!1), a = e, l = T(!1), o = T({
1125
+ const t = R(e, "visible"), n = M(!1), a = e, l = M(!1), o = M({
1127
1126
  hasError: !1,
1128
1127
  header: "",
1129
1128
  message: []
1130
1129
  }), i = () => {
1131
1130
  n.value = !1;
1132
- }, u = () => {
1131
+ }, d = () => {
1133
1132
  n.value = !0;
1134
- }, b = () => {
1133
+ }, f = () => {
1135
1134
  t.value = !1;
1136
- }, d = async () => {
1135
+ }, r = async () => {
1137
1136
  if (a.onConfirm) {
1138
1137
  l.value = !0, o.value.hasError = !1;
1139
1138
  try {
1140
- const r = await a.onConfirm();
1141
- (r || r == null) && b();
1142
- } catch (r) {
1139
+ const y = await a.onConfirm();
1140
+ (y || y == null) && f();
1141
+ } catch (y) {
1143
1142
  o.value.hasError = !0;
1144
- const h = mt(r);
1145
- o.value.header = h.errorMessage, o.value.message = h.errorDetails;
1143
+ const c = mt(y);
1144
+ o.value.header = c.errorMessage, o.value.message = c.errorDetails;
1146
1145
  }
1147
1146
  l.value = !1;
1148
1147
  }
1149
- }, f = x(() => ({
1148
+ }, g = x(() => ({
1150
1149
  root: [
1151
1150
  "modal modal-dialog modal-content h-auto m-0",
1152
1151
  {
@@ -1154,24 +1153,24 @@ const pt = { key: 0 }, yt = {
1154
1153
  }
1155
1154
  ]
1156
1155
  }));
1157
- return (r, h) => {
1158
- const _ = E, V = _e;
1156
+ return (y, c) => {
1157
+ const $ = E, V = $e;
1159
1158
  return s(), w(V, S(a, {
1160
- onMaximize: u,
1159
+ onMaximize: d,
1161
1160
  onUnmaximize: i,
1162
- pt: f.value
1161
+ pt: g.value
1163
1162
  }), te({
1164
- closeicon: v(() => [
1165
- y(c(C), {
1163
+ closeicon: b(() => [
1164
+ v(u(C), {
1166
1165
  "data-cy": "close-icon",
1167
1166
  icon: "bi:x-lg",
1168
1167
  width: "18",
1169
1168
  height: "18",
1170
- onClick: b
1169
+ onClick: f
1171
1170
  })
1172
1171
  ]),
1173
- maximizeicon: v(() => [
1174
- y(c(C), {
1172
+ maximizeicon: b(() => [
1173
+ v(u(C), {
1175
1174
  "data-cy": "maximisable-icon",
1176
1175
  icon: n.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
1177
1176
  width: "16",
@@ -1180,45 +1179,45 @@ const pt = { key: 0 }, yt = {
1180
1179
  ]),
1181
1180
  _: 2
1182
1181
  }, [
1183
- j(r.$slots, (M, I) => ({
1182
+ H(y.$slots, (T, I) => ({
1184
1183
  name: I,
1185
- fn: v((z) => [
1184
+ fn: b((z) => [
1186
1185
  o.value.hasError ? (s(), w(ae, {
1187
1186
  key: 0,
1188
1187
  severity: "danger",
1189
1188
  "data-cy": "error"
1190
1189
  }, {
1191
- default: v(() => [
1190
+ default: b(() => [
1192
1191
  m("p", {
1193
- class: B(o.value.message.length > 0 ? "my-auto" : "mb-0")
1194
- }, g(o.value.header), 3),
1192
+ class: _(o.value.message.length > 0 ? "my-auto" : "mb-0")
1193
+ }, h(o.value.header), 3),
1195
1194
  o.value.message.length > 0 ? (s(), p("ul", pt, [
1196
- (s(!0), p(D, null, j(o.value.message, (N) => (s(), p("li", { key: N }, g(N), 1))), 128))
1197
- ])) : F("", !0)
1195
+ (s(!0), p(A, null, H(o.value.message, (N) => (s(), p("li", { key: N }, h(N), 1))), 128))
1196
+ ])) : B("", !0)
1198
1197
  ]),
1199
1198
  _: 1
1200
- })) : F("", !0),
1201
- k(r.$slots, I, Q(ee(z || {}))),
1202
- l.value ? k(r.$slots, "loader", { key: 1 }, () => [
1203
- y(pe, { "data-cy": "loader" })
1204
- ]) : F("", !0)
1199
+ })) : B("", !0),
1200
+ k(y.$slots, I, Q(ee(z || {}))),
1201
+ l.value ? k(y.$slots, "loader", { key: 1 }, () => [
1202
+ v(pe, { "data-cy": "loader" })
1203
+ ]) : B("", !0)
1205
1204
  ])
1206
1205
  })),
1207
- r.showFooter ? {
1206
+ y.showFooter ? {
1208
1207
  name: "footer",
1209
- fn: v(() => [
1208
+ fn: b(() => [
1210
1209
  m("div", yt, [
1211
- y(_, {
1212
- label: r.cancelText,
1213
- class: B(a.cancelClass),
1210
+ v($, {
1211
+ label: y.cancelText,
1212
+ class: _(a.cancelClass),
1214
1213
  outlined: "",
1215
- onClick: b,
1214
+ onClick: f,
1216
1215
  id: "cancel-button"
1217
1216
  }, null, 8, ["label", "class"]),
1218
- y(_, {
1219
- label: r.submitText,
1220
- class: B([a.submitClass, "ms-auto"]),
1221
- onClick: d,
1217
+ v($, {
1218
+ label: y.submitText,
1219
+ class: _([a.submitClass, "ms-auto"]),
1220
+ onClick: r,
1222
1221
  id: "submit-button"
1223
1222
  }, null, 8, ["label", "class"])
1224
1223
  ])
@@ -1228,7 +1227,7 @@ const pt = { key: 0 }, yt = {
1228
1227
  ]), 1040, ["pt"]);
1229
1228
  };
1230
1229
  }
1231
- }), vt = ["id"], bt = { key: 0 }, ft = { key: 0 }, gt = { class: "d-flex justify-content-between align-items-center position-relative" }, ht = { key: 1 }, wt = { "data-cy": "readonly-value" }, xt = /* @__PURE__ */ $({
1230
+ }), vt = ["id"], bt = { key: 0 }, ft = { key: 0 }, gt = { class: "d-flex justify-content-between align-items-center position-relative" }, ht = { key: 1 }, wt = { "data-cy": "readonly-value" }, xt = /* @__PURE__ */ F({
1232
1231
  __name: "ForgeInlineEditor",
1233
1232
  props: /* @__PURE__ */ q({
1234
1233
  name: { default: "" },
@@ -1244,13 +1243,13 @@ const pt = { key: 0 }, yt = {
1244
1243
  }),
1245
1244
  emits: ["update:modelValue"],
1246
1245
  setup(e) {
1247
- const t = e, n = R(e, "modelValue"), a = T(!1), l = T(), o = () => {
1248
- var _;
1249
- a.value = !a.value, (_ = l.value) == null || _.focus();
1246
+ const t = e, n = R(e, "modelValue"), a = M(!1), l = M(), o = () => {
1247
+ var $;
1248
+ a.value = !a.value, ($ = l.value) == null || $.focus();
1250
1249
  }, i = async () => {
1251
- if (h.value)
1250
+ if (c.value)
1252
1251
  return !1;
1253
- if (n.value = r.value, t.completeAction)
1252
+ if (n.value = y.value, t.completeAction)
1254
1253
  try {
1255
1254
  await t.completeAction.apply(this, t.params), a.value = !a.value;
1256
1255
  } catch {
@@ -1258,56 +1257,56 @@ const pt = { key: 0 }, yt = {
1258
1257
  }
1259
1258
  else
1260
1259
  a.value = !a.value;
1261
- }, u = () => {
1260
+ }, d = () => {
1262
1261
  a.value = !a.value;
1263
- }, b = () => {
1264
- r.value = null;
1265
- }, { errorMessage: d, errors: f, value: r } = W(() => t.name, t.rules);
1262
+ }, f = () => {
1263
+ y.value = null;
1264
+ }, { errorMessage: r, errors: g, value: y } = W(() => t.name, t.rules);
1266
1265
  oe(() => {
1267
- r.value = n.value;
1266
+ y.value = n.value;
1268
1267
  });
1269
- const h = x(() => f.value.length > 0);
1270
- return (_, V) => {
1271
- const M = ne, I = E;
1268
+ const c = x(() => g.value.length > 0);
1269
+ return ($, V) => {
1270
+ const T = ne, I = E;
1272
1271
  return s(), p("div", {
1273
1272
  id: t.name
1274
1273
  }, [
1275
- _.readonly ? (s(), p("div", ht, [
1276
- k(_.$slots, "default", {}, () => [
1277
- m("span", wt, g(c(r)), 1)
1274
+ $.readonly ? (s(), p("div", ht, [
1275
+ k($.$slots, "default", {}, () => [
1276
+ m("span", wt, h(u(y)), 1)
1278
1277
  ])
1279
1278
  ])) : (s(), p("div", bt, [
1280
1279
  a.value ? (s(), p("div", ft, [
1281
1280
  L((s(), p("div", gt, [
1282
- k(_.$slots, "editor", {
1283
- class: B({ "is-invalid": h.value }),
1281
+ k($.$slots, "editor", {
1282
+ class: _({ "is-invalid": c.value }),
1284
1283
  editFinished: i,
1285
- cancel: u,
1286
- val: c(r)
1284
+ cancel: d,
1285
+ val: u(y)
1287
1286
  }, () => [
1288
- y(M, {
1287
+ v(T, {
1289
1288
  "data-cy": "input",
1290
1289
  ref_key: "input",
1291
1290
  ref: l,
1292
- modelValue: c(r),
1293
- "onUpdate:modelValue": V[0] || (V[0] = (z) => H(r) ? r.value = z : null),
1291
+ modelValue: u(y),
1292
+ "onUpdate:modelValue": V[0] || (V[0] = (z) => j(y) ? y.value = z : null),
1294
1293
  modelModifiers: { trim: !0 },
1295
- class: B({ "is-invalid": h.value }),
1294
+ class: _({ "is-invalid": c.value }),
1296
1295
  onKeydown: [
1297
1296
  J(i, ["enter"]),
1298
- J(u, ["esc"])
1297
+ J(d, ["esc"])
1299
1298
  ]
1300
1299
  }, null, 8, ["modelValue", "class"])
1301
1300
  ]),
1302
- y(c(C), {
1301
+ v(u(C), {
1303
1302
  icon: "bi:x-circle",
1304
1303
  class: "mx-2 cursor-pointer",
1305
- onClick: b,
1306
- onKeydown: J(b, ["enter"]),
1304
+ onClick: f,
1305
+ onKeydown: J(f, ["enter"]),
1307
1306
  "data-cy": "clear-icon"
1308
1307
  })
1309
1308
  ])), [
1310
- [c($e), i]
1309
+ [u(_e), i]
1311
1310
  ])
1312
1311
  ])) : (s(), p("div", {
1313
1312
  key: 1,
@@ -1315,20 +1314,20 @@ const pt = { key: 0 }, yt = {
1315
1314
  onClick: o,
1316
1315
  onFocus: o
1317
1316
  }, [
1318
- k(_.$slots, "default", {}, () => [
1317
+ k($.$slots, "default", {}, () => [
1319
1318
  m("div", {
1320
- class: B(["pe-2 cursor-pointer", { "text-invalid": h.value }]),
1319
+ class: _(["pe-2 cursor-pointer", { "text-invalid": c.value }]),
1321
1320
  "data-cy": "value"
1322
- }, g(c(r) ? c(r) : "Click to edit"), 3)
1321
+ }, h(u(y) ? u(y) : "Click to edit"), 3)
1323
1322
  ]),
1324
- y(I, {
1323
+ v(I, {
1325
1324
  link: "",
1326
1325
  class: "p-0 m-0"
1327
1326
  }, {
1328
- default: v(() => [
1329
- y(c(C), {
1327
+ default: b(() => [
1328
+ v(u(C), {
1330
1329
  icon: "bi:pencil",
1331
- class: B(h.value ? "text-invalid" : "text-muted"),
1330
+ class: _(c.value ? "text-invalid" : "text-muted"),
1332
1331
  "data-cy": "edit-icon",
1333
1332
  onKeydown: J(o, ["enter"])
1334
1333
  }, null, 8, ["class"])
@@ -1340,13 +1339,13 @@ const pt = { key: 0 }, yt = {
1340
1339
  L(m("small", {
1341
1340
  "data-cy": "error",
1342
1341
  class: "text-invalid"
1343
- }, g(c(d)), 513), [
1344
- [Y, h.value]
1342
+ }, h(u(r)), 513), [
1343
+ [Y, c.value]
1345
1344
  ])
1346
1345
  ], 8, vt);
1347
1346
  };
1348
1347
  }
1349
- }), kt = ["href"], cl = /* @__PURE__ */ $({
1348
+ }), kt = ["href"], ul = /* @__PURE__ */ F({
1350
1349
  __name: "ForgeNavbar",
1351
1350
  props: {
1352
1351
  severity: { default: "light" },
@@ -1396,7 +1395,7 @@ const pt = { key: 0 }, yt = {
1396
1395
  pt: n.value,
1397
1396
  "data-cy": "navbar"
1398
1397
  }), te({
1399
- start: v(() => [
1398
+ start: b(() => [
1400
1399
  m("a", {
1401
1400
  href: a.logoUrl,
1402
1401
  class: "navbar-brand ms-3",
@@ -1407,11 +1406,11 @@ const pt = { key: 0 }, yt = {
1407
1406
  ])
1408
1407
  ], 8, kt)
1409
1408
  ]),
1410
- menubuttonicon: v(() => [
1409
+ menubuttonicon: b(() => [
1411
1410
  k(a.$slots, "menubuttonicon", {}, () => [
1412
- y(c(C), {
1411
+ v(u(C), {
1413
1412
  icon: "bi:list",
1414
- class: B(t.severity === "light" ? "text-black" : "text-white"),
1413
+ class: _(t.severity === "light" ? "text-black" : "text-white"),
1415
1414
  height: "24",
1416
1415
  "data-cy": "burger-icon"
1417
1416
  }, null, 8, ["class"])
@@ -1419,16 +1418,16 @@ const pt = { key: 0 }, yt = {
1419
1418
  ]),
1420
1419
  _: 2
1421
1420
  }, [
1422
- j(a.$slots, (i, u) => ({
1423
- name: u,
1424
- fn: v((b) => [
1425
- k(a.$slots, u, Q(ee(b)))
1421
+ H(a.$slots, (i, d) => ({
1422
+ name: d,
1423
+ fn: b((f) => [
1424
+ k(a.$slots, d, Q(ee(f)))
1426
1425
  ])
1427
1426
  }))
1428
1427
  ]), 1040, ["pt"]);
1429
1428
  };
1430
1429
  }
1431
- }), _t = /* @__PURE__ */ m("div", { class: "ps-1" }, "Select all", -1), $t = ["data-cy"], Ft = { class: "ps-1 w-100" }, Bt = { class: "multiselect__tag d-inline-flex" }, St = { class: "my-auto" }, Ct = /* @__PURE__ */ $({
1430
+ }), $t = /* @__PURE__ */ m("div", { class: "ps-1" }, "Select all", -1), _t = ["data-cy"], Ft = { class: "ps-1 w-100" }, Bt = { class: "multiselect__tag d-inline-flex" }, St = { class: "my-auto" }, Ct = /* @__PURE__ */ F({
1432
1431
  __name: "ForgeMultiSelect",
1433
1432
  props: {
1434
1433
  severity: { default: "primary" },
@@ -1441,17 +1440,17 @@ const pt = { key: 0 }, yt = {
1441
1440
  },
1442
1441
  emits: ["update:modelValue"],
1443
1442
  setup(e, { emit: t }) {
1444
- const n = e, a = (U, O) => {
1443
+ const n = e, a = (D, O) => {
1445
1444
  const Z = {
1446
1445
  ...O,
1447
1446
  $isDisabled: O.$isDisabled ?? !1
1448
1447
  };
1449
- U(Z);
1450
- }, l = de(), o = t, { errors: i, value: u, errorMessage: b } = W(() => n.name, n.rules), d = T(!1), f = x(() => ({
1448
+ D(Z);
1449
+ }, l = de(), o = t, { errors: i, value: d, errorMessage: f } = W(() => n.name, n.rules), r = M(!1), g = x(() => ({
1451
1450
  multiple: !0,
1452
1451
  label: "label",
1453
1452
  trackBy: "id",
1454
- showPointer: !d.value,
1453
+ showPointer: !r.value,
1455
1454
  placeholder: l.searchable === null || l.searchable ? "Search" : "Select",
1456
1455
  allowEmpty: !0,
1457
1456
  selectValue: "",
@@ -1460,27 +1459,27 @@ const pt = { key: 0 }, yt = {
1460
1459
  searchable: !!(l.searchable === null || l.searchable) && l.modelValue.length === l.options.length,
1461
1460
  async: !1,
1462
1461
  ...l
1463
- })), r = x(() => `forge-multiselect-${n.severity}`), h = x(() => `multiselect__option ${d.value ? " multiselect__option--highlight" : ""} ${_.value ? " multiselect__option--selected" : ""}`), _ = x(() => f.value && !(f.value.multiple || !n.showSelectAll || f.value.async) ? !1 : l.modelValue.length === l.options.length), V = x(() => i.value.length > 0), M = x(() => !!((l.allowEmpty == null || l.allowEmpty) && n.showClearSelection && (f.value.multiple ? l.modelValue.length > 0 : l.modelValue))), I = () => d.value = !0, z = () => d.value = !1, N = () => {
1464
- u.value = f.value.multiple ? [] : null, o("update:modelValue", u.value);
1465
- }, le = (U) => {
1466
- o("update:modelValue", n.selectValue ? U.map((O) => O[n.selectValue]) : U);
1467
- }, ve = (U) => l.modelValue !== null ? l.modelValue.some((O) => f.value.selectValue ? U[n.selectValue] === O : U.id === O.id && U.label === O.label) : !1, be = () => {
1468
- _.value ? N() : (u.value = [...l.options], o("update:modelValue", [...l.options]));
1462
+ })), y = x(() => `forge-multiselect-${n.severity}`), c = x(() => `multiselect__option ${r.value ? " multiselect__option--highlight" : ""} ${$.value ? " multiselect__option--selected" : ""}`), $ = x(() => g.value && !(g.value.multiple || !n.showSelectAll || g.value.async) ? !1 : l.modelValue.length === l.options.length), V = x(() => i.value.length > 0), T = x(() => !!((l.allowEmpty == null || l.allowEmpty) && n.showClearSelection && (g.value.multiple ? l.modelValue.length > 0 : l.modelValue))), I = () => r.value = !0, z = () => r.value = !1, N = () => {
1463
+ d.value = g.value.multiple ? [] : null, o("update:modelValue", d.value);
1464
+ }, le = (D) => {
1465
+ o("update:modelValue", n.selectValue ? D.map((O) => O[n.selectValue]) : D);
1466
+ }, ve = (D) => l.modelValue !== null ? l.modelValue.some((O) => g.value.selectValue ? D[n.selectValue] === O : D.id === O.id && D.label === O.label) : !1, be = () => {
1467
+ $.value ? N() : (d.value = [...l.options], o("update:modelValue", [...l.options]));
1469
1468
  };
1470
- return (U, O) => {
1469
+ return (D, O) => {
1471
1470
  const Z = me;
1472
- return s(), p(D, null, [
1473
- y(c(Be), S(f.value, {
1474
- class: [r.value, V.value ? "is-invalid" : ""],
1471
+ return s(), p(A, null, [
1472
+ v(u(Be), S(g.value, {
1473
+ class: [y.value, V.value ? "is-invalid" : ""],
1475
1474
  "data-cy": "multiselect",
1476
1475
  "onUpdate:modelValue": [
1477
1476
  le,
1478
- O[1] || (O[1] = (A) => H(u) ? u.value = A : null)
1477
+ O[1] || (O[1] = (U) => j(d) ? d.value = U : null)
1479
1478
  ],
1480
- modelValue: c(u)
1479
+ modelValue: u(d)
1481
1480
  }), te({
1482
- caret: v(({ toggle: A }) => [
1483
- M.value ? (s(), w(c(C), {
1481
+ caret: b(({ toggle: U }) => [
1482
+ T.value ? (s(), w(u(C), {
1484
1483
  key: 0,
1485
1484
  icon: "bi:x",
1486
1485
  class: "my-auto multiselect__clear-icon",
@@ -1488,33 +1487,33 @@ const pt = { key: 0 }, yt = {
1488
1487
  "data-cy": "clear",
1489
1488
  height: "18px",
1490
1489
  width: "18px"
1491
- })) : F("", !0),
1492
- y(c(C), {
1490
+ })) : B("", !0),
1491
+ v(u(C), {
1493
1492
  icon: "bi:chevron-down",
1494
- onClick: A,
1493
+ onClick: U,
1495
1494
  class: "multiselect__select"
1496
1495
  }, null, 8, ["onClick"])
1497
1496
  ]),
1498
- tag: v(({ option: A, remove: K }) => [
1497
+ tag: b(({ option: U, remove: K }) => [
1499
1498
  m("div", Bt, [
1500
- m("div", St, g(A.label), 1),
1501
- y(c(C), {
1499
+ m("div", St, h(U.label), 1),
1500
+ v(u(C), {
1502
1501
  icon: "bi:x",
1503
1502
  class: "my-auto multiselect__tag-icon",
1504
- onMousedown: G((za) => a(K, A), ["prevent", "stop"]),
1503
+ onMousedown: G((Ia) => a(K, U), ["prevent", "stop"]),
1505
1504
  height: "18px",
1506
1505
  width: "18px"
1507
1506
  }, null, 8, ["onMousedown"])
1508
1507
  ])
1509
1508
  ]),
1510
- default: v(() => [
1511
- (s(!0), p(D, null, j(U.$slots, (A, K) => k(U.$slots, K, { slot: K })), 256))
1509
+ default: b(() => [
1510
+ (s(!0), p(A, null, H(D.$slots, (U, K) => k(D.$slots, K, { slot: K })), 256))
1512
1511
  ]),
1513
1512
  _: 2
1514
1513
  }, [
1515
- f.value.multiple && U.showSelectAll && !f.value.async ? {
1514
+ g.value.multiple && D.showSelectAll && !g.value.async ? {
1516
1515
  name: "beforeList",
1517
- fn: v(() => [
1516
+ fn: b(() => [
1518
1517
  m("li", {
1519
1518
  class: "multiselect__element",
1520
1519
  onClick: be,
@@ -1523,11 +1522,11 @@ const pt = { key: 0 }, yt = {
1523
1522
  "data-cy": "toggle-all"
1524
1523
  }, [
1525
1524
  m("span", {
1526
- class: B(`${h.value}`)
1525
+ class: _(`${c.value}`)
1527
1526
  }, [
1528
- y(Z, { value: _.value }, {
1529
- default: v(() => [
1530
- _t
1527
+ v(Z, { value: $.value }, {
1528
+ default: b(() => [
1529
+ $t
1531
1530
  ]),
1532
1531
  _: 1
1533
1532
  }, 8, ["value"])
@@ -1536,22 +1535,22 @@ const pt = { key: 0 }, yt = {
1536
1535
  ]),
1537
1536
  key: "0"
1538
1537
  } : void 0,
1539
- f.value.multiple ? {
1538
+ g.value.multiple ? {
1540
1539
  name: "option",
1541
- fn: v(({ option: A }) => [
1540
+ fn: b(({ option: U }) => [
1542
1541
  m("div", {
1543
- "data-cy": A.label
1542
+ "data-cy": U.label
1544
1543
  }, [
1545
1544
  (s(), w(Z, {
1546
- value: ve(A),
1547
- key: A
1545
+ value: ve(U),
1546
+ key: U
1548
1547
  }, {
1549
- default: v(() => [
1550
- m("div", Ft, g(A[f.value.label]), 1)
1548
+ default: b(() => [
1549
+ m("div", Ft, h(U[g.value.label]), 1)
1551
1550
  ]),
1552
1551
  _: 2
1553
1552
  }, 1032, ["value"]))
1554
- ], 8, $t)
1553
+ ], 8, _t)
1555
1554
  ]),
1556
1555
  key: "1"
1557
1556
  } : void 0
@@ -1559,7 +1558,7 @@ const pt = { key: 0 }, yt = {
1559
1558
  L(m("small", {
1560
1559
  "data-cy": "error",
1561
1560
  class: "invalid-feedback"
1562
- }, g(c(b)), 513), [
1561
+ }, h(u(f)), 513), [
1563
1562
  [Y, V.value]
1564
1563
  ])
1565
1564
  ], 64);
@@ -1575,7 +1574,7 @@ const pt = { key: 0 }, yt = {
1575
1574
  }, Pt = { class: "d-inline-block" }, It = {
1576
1575
  key: 1,
1577
1576
  class: "p-2 item d-flex justify-content-between align-items-center"
1578
- }, ml = /* @__PURE__ */ $({
1577
+ }, cl = /* @__PURE__ */ F({
1579
1578
  __name: "ForgeMultiSelectPreview",
1580
1579
  props: {
1581
1580
  title: { default: "Selected Items" },
@@ -1586,77 +1585,77 @@ const pt = { key: 0 }, yt = {
1586
1585
  },
1587
1586
  emits: ["update:modelValue"],
1588
1587
  setup(e, { emit: t }) {
1589
- const n = e, a = de(), l = t, o = x(() => `${a.modelValue.length} selected`), i = x(() => a.modelValue.length), u = (d) => {
1590
- l("update:modelValue", d);
1591
- }, b = (d) => {
1592
- u(a.modelValue.filter((f) => f.id !== d));
1588
+ const n = e, a = de(), l = t, o = x(() => `${a.modelValue.length} selected`), i = x(() => a.modelValue.length), d = (r) => {
1589
+ l("update:modelValue", r);
1590
+ }, f = (r) => {
1591
+ d(a.modelValue.filter((g) => g.id !== r));
1593
1592
  };
1594
- return (d, f) => {
1595
- const r = E;
1593
+ return (r, g) => {
1594
+ const y = E;
1596
1595
  return s(), p("div", {
1597
- class: B(d.orientation === "column" ? "row" : ""),
1596
+ class: _(r.orientation === "column" ? "row" : ""),
1598
1597
  "data-cy": "multiselect-preview"
1599
1598
  }, [
1600
1599
  m("div", {
1601
- class: B(d.orientation === "row" ? "col-12 mb-1" : "col"),
1600
+ class: _(r.orientation === "row" ? "col-12 mb-1" : "col"),
1602
1601
  "data-cy": "multiselect-container"
1603
1602
  }, [
1604
- y(Ct, {
1603
+ v(Ct, {
1605
1604
  "onUpdate:modelValue": [
1606
- f[0] || (f[0] = (h) => u(h)),
1607
- f[1] || (f[1] = (h) => d.$attrs.modelValue = h)
1605
+ g[0] || (g[0] = (c) => d(c)),
1606
+ g[1] || (g[1] = (c) => r.$attrs.modelValue = c)
1608
1607
  ],
1609
- modelValue: d.$attrs.modelValue,
1608
+ modelValue: r.$attrs.modelValue,
1610
1609
  "limit-text": o.value,
1611
1610
  options: n.options
1612
1611
  }, {
1613
- tag: v(() => [
1614
- P(g(""))
1612
+ tag: b(() => [
1613
+ P(h(""))
1615
1614
  ]),
1616
- selection: v(() => [
1617
- d.$attrs.modelValue.length > 0 ? (s(), p("span", Vt, g(i.value) + " items selected", 1)) : F("", !0)
1615
+ selection: b(() => [
1616
+ r.$attrs.modelValue.length > 0 ? (s(), p("span", Vt, h(i.value) + " items selected", 1)) : B("", !0)
1618
1617
  ]),
1619
- default: v(() => [
1620
- (s(!0), p(D, null, j(d.$slots, (h, _) => k(d.$slots, _, { slot: _ })), 256))
1618
+ default: b(() => [
1619
+ (s(!0), p(A, null, H(r.$slots, (c, $) => k(r.$slots, $, { slot: $ })), 256))
1621
1620
  ]),
1622
1621
  _: 3
1623
1622
  }, 8, ["modelValue", "limit-text", "options"]),
1624
- k(d.$slots, "after-multi-select")
1623
+ k(r.$slots, "after-multi-select")
1625
1624
  ], 2),
1626
1625
  m("div", {
1627
- class: B(d.orientation === "row" ? "col-12" : "col"),
1626
+ class: _(r.orientation === "row" ? "col-12" : "col"),
1628
1627
  "data-cy": "options-preview"
1629
1628
  }, [
1630
1629
  m("div", {
1631
- style: he({ height: d.height }),
1630
+ style: he({ height: r.height }),
1632
1631
  class: "overflow-auto"
1633
1632
  }, [
1634
1633
  m("div", Tt, [
1635
- d.title ? (s(), p("div", Mt, g(d.title), 1)) : F("", !0),
1636
- (s(!0), p(D, null, j(d.$attrs.modelValue, (h) => (s(), p("div", {
1637
- key: h.id,
1634
+ r.title ? (s(), p("div", Mt, h(r.title), 1)) : B("", !0),
1635
+ (s(!0), p(A, null, H(r.$attrs.modelValue, (c) => (s(), p("div", {
1636
+ key: c.id,
1638
1637
  class: "p-2 item d-flex justify-content-between align-items-center"
1639
1638
  }, [
1640
- k(d.$slots, "list-item", { item: h }, () => [
1641
- m("span", Pt, g(h.shortLabel ? h.shortLabel : h.label), 1)
1639
+ k(r.$slots, "list-item", { item: c }, () => [
1640
+ m("span", Pt, h(c.shortLabel ? c.shortLabel : c.label), 1)
1642
1641
  ]),
1643
- d.canRemoveItemFromPreview ? (s(), w(r, {
1642
+ r.canRemoveItemFromPreview ? (s(), w(y, {
1644
1643
  key: 0,
1645
1644
  link: "",
1646
1645
  class: "m-0 p-0 d-flex align-items-center",
1647
- onClick: (_) => b(h.id)
1646
+ onClick: ($) => f(c.id)
1648
1647
  }, {
1649
- default: v(() => [
1650
- y(c(C), {
1648
+ default: b(() => [
1649
+ v(u(C), {
1651
1650
  icon: "bi:x",
1652
1651
  class: "close-icon",
1653
- "data-cy": `close-icon-${h.id}`
1652
+ "data-cy": `close-icon-${c.id}`
1654
1653
  }, null, 8, ["data-cy"])
1655
1654
  ]),
1656
1655
  _: 2
1657
- }, 1032, ["onClick"])) : F("", !0)
1656
+ }, 1032, ["onClick"])) : B("", !0)
1658
1657
  ]))), 128)),
1659
- d.$attrs.modelValue.length === 0 ? (s(), p("div", It, "No Items Selected.")) : F("", !0)
1658
+ r.$attrs.modelValue.length === 0 ? (s(), p("div", It, "No Items Selected.")) : B("", !0)
1660
1659
  ])
1661
1660
  ], 4)
1662
1661
  ], 2)
@@ -1665,11 +1664,11 @@ const pt = { key: 0 }, yt = {
1665
1664
  }
1666
1665
  }), zt = { class: "d-flex justify-content-between pb-2" }, Ot = {
1667
1666
  "data-cy": "title",
1668
- class: "h3"
1667
+ class: "my-auto"
1669
1668
  }, Dt = {
1670
1669
  "data-cy": "slot",
1671
1670
  class: "d-flex align-items-center"
1672
- }, pl = /* @__PURE__ */ $({
1671
+ }, ml = /* @__PURE__ */ F({
1673
1672
  __name: "ForgePageHeader",
1674
1673
  props: {
1675
1674
  title: {}
@@ -1677,13 +1676,13 @@ const pt = { key: 0 }, yt = {
1677
1676
  setup(e) {
1678
1677
  const t = e;
1679
1678
  return (n, a) => (s(), p("div", zt, [
1680
- m("h1", Ot, g(t.title), 1),
1679
+ m("h3", Ot, h(t.title), 1),
1681
1680
  m("div", Dt, [
1682
1681
  k(n.$slots, "default")
1683
1682
  ])
1684
1683
  ]));
1685
1684
  }
1686
- }), Ut = { "data-cy": "before-slot" }, At = { class: "position-relative" }, Nt = { "data-cy": "after-slot" }, Et = /* @__PURE__ */ $({
1685
+ }), Ut = { "data-cy": "before-slot" }, At = { class: "position-relative" }, Nt = { "data-cy": "after-slot" }, Et = /* @__PURE__ */ F({
1687
1686
  __name: "ForgeDatepicker",
1688
1687
  props: /* @__PURE__ */ q({
1689
1688
  severity: { default: "primary" },
@@ -1849,29 +1848,29 @@ const pt = { key: 0 }, yt = {
1849
1848
  })
1850
1849
  }));
1851
1850
  return (o, i) => {
1852
- const u = Se;
1853
- return s(), p(D, null, [
1851
+ const d = Se;
1852
+ return s(), p(A, null, [
1854
1853
  m("span", Ut, [
1855
1854
  k(o.$slots, "before")
1856
1855
  ]),
1857
1856
  m("div", At, [
1858
- y(u, S({ ...t, ...o.$attrs }, {
1857
+ v(d, S({ ...t, ...o.$attrs }, {
1859
1858
  pt: l.value,
1860
1859
  modelValue: n.value,
1861
- "onUpdate:modelValue": i[0] || (i[0] = (b) => n.value = b)
1860
+ "onUpdate:modelValue": i[0] || (i[0] = (f) => n.value = f)
1862
1861
  }), null, 16, ["pt", "modelValue"]),
1863
- L(y(c(C), {
1862
+ L(v(u(C), {
1864
1863
  "data-cy": "icon",
1865
1864
  icon: "bi:calendar4",
1866
1865
  class: "position-absolute end-0 top-50 bottom-50 my-auto me-2 text-muted"
1867
1866
  }, null, 512), [
1868
1867
  [Y, t.showIcon]
1869
1868
  ]),
1870
- L(y(c(C), {
1869
+ L(v(u(C), {
1871
1870
  "data-cy": "icon",
1872
1871
  icon: "bi:x",
1873
1872
  onClick: a,
1874
- class: B(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer", t.showIcon ? "datepicker-close-icon" : "me-2"])
1873
+ class: _(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer", t.showIcon ? "datepicker-close-icon" : "me-2"])
1875
1874
  }, null, 8, ["class"]), [
1876
1875
  [Y, t.modelValue]
1877
1876
  ])
@@ -1882,7 +1881,7 @@ const pt = { key: 0 }, yt = {
1882
1881
  ], 64);
1883
1882
  };
1884
1883
  }
1885
- }), yl = /* @__PURE__ */ $({
1884
+ }), pl = /* @__PURE__ */ F({
1886
1885
  __name: "ForgeRemainingCharacters",
1887
1886
  props: {
1888
1887
  maxCount: { default: 300 },
@@ -1891,10 +1890,10 @@ const pt = { key: 0 }, yt = {
1891
1890
  setup(e) {
1892
1891
  const t = e, n = x(() => t.maxCount - t.currentCount);
1893
1892
  return (a, l) => (s(), p("div", {
1894
- class: B(n.value < 0 ? "text-danger" : "")
1895
- }, "Remaining characters: " + g(n.value), 3));
1893
+ class: _(n.value < 0 ? "text-danger" : "")
1894
+ }, "Remaining characters: " + h(n.value), 3));
1896
1895
  }
1897
- }), Rt = /* @__PURE__ */ m("hr", null, null, -1), Lt = { class: "d-flex justify-content-between" }, vl = /* @__PURE__ */ $({
1896
+ }), Rt = /* @__PURE__ */ m("hr", null, null, -1), Lt = { class: "d-flex justify-content-between" }, yl = /* @__PURE__ */ F({
1898
1897
  __name: "ForgeForm",
1899
1898
  props: {
1900
1899
  onSubmit: {},
@@ -1906,7 +1905,7 @@ const pt = { key: 0 }, yt = {
1906
1905
  hideCancel: { type: Boolean, default: !1 }
1907
1906
  },
1908
1907
  setup(e) {
1909
- const t = e, n = T(!1), a = T({
1908
+ const t = e, n = M(!1), a = M({
1910
1909
  hasError: !1,
1911
1910
  message: ""
1912
1911
  });
@@ -1920,18 +1919,18 @@ const pt = { key: 0 }, yt = {
1920
1919
  n.value = !1;
1921
1920
  }
1922
1921
  return (o, i) => {
1923
- const u = E;
1922
+ const d = E;
1924
1923
  return s(), p("form", S(o.$attrs, {
1925
1924
  novalidate: "",
1926
1925
  class: "position-relative shadow-sm border p-4 bg-white",
1927
1926
  onSubmit: G(l, ["prevent"])
1928
1927
  }), [
1929
- o.hideTitle ? F("", !0) : (s(), p(D, { key: 0 }, [
1928
+ o.hideTitle ? B("", !0) : (s(), p(A, { key: 0 }, [
1930
1929
  k(o.$slots, "title", {}, () => [
1931
1930
  m("h3", {
1932
- class: B(o.titleClass),
1931
+ class: _(o.titleClass),
1933
1932
  "data-cy": "form-title"
1934
- }, g(o.title), 3)
1933
+ }, h(o.title), 3)
1935
1934
  ]),
1936
1935
  Rt
1937
1936
  ], 64)),
@@ -1940,41 +1939,41 @@ const pt = { key: 0 }, yt = {
1940
1939
  severity: "danger",
1941
1940
  "data-cy": "error"
1942
1941
  }, {
1943
- default: v(() => [
1942
+ default: b(() => [
1944
1943
  k(o.$slots, "error", {
1945
1944
  error: a.value.message
1946
1945
  }, () => [
1947
- P(g(a.value.message), 1)
1946
+ P(h(a.value.message), 1)
1948
1947
  ])
1949
1948
  ]),
1950
1949
  _: 3
1951
- })) : F("", !0),
1950
+ })) : B("", !0),
1952
1951
  k(o.$slots, "default"),
1953
1952
  m("div", Lt, [
1954
1953
  k(o.$slots, "cancel", {}, () => [
1955
- o.hideCancel ? F("", !0) : (s(), w(u, {
1954
+ o.hideCancel ? B("", !0) : (s(), w(d, {
1956
1955
  key: 0,
1957
1956
  "data-cy": "cancel-btn",
1958
1957
  type: "reset",
1959
1958
  severity: "secondary",
1960
1959
  outlined: "",
1961
- onClick: i[0] || (i[0] = (b) => o.$emit("cancel"))
1960
+ onClick: i[0] || (i[0] = (f) => o.$emit("cancel"))
1962
1961
  }, {
1963
- default: v(() => [
1964
- P(g(o.cancelText), 1)
1962
+ default: b(() => [
1963
+ P(h(o.cancelText), 1)
1965
1964
  ]),
1966
1965
  _: 1
1967
1966
  }))
1968
1967
  ]),
1969
1968
  k(o.$slots, "submit", { submit: l }, () => [
1970
- y(u, {
1969
+ v(d, {
1971
1970
  "data-cy": "submit-btn",
1972
1971
  type: "submit",
1973
1972
  severity: "primary",
1974
1973
  class: "ms-auto"
1975
1974
  }, {
1976
- default: v(() => [
1977
- P(g(o.submitText), 1)
1975
+ default: b(() => [
1976
+ P(h(o.submitText), 1)
1978
1977
  ]),
1979
1978
  _: 1
1980
1979
  })
@@ -1983,11 +1982,11 @@ const pt = { key: 0 }, yt = {
1983
1982
  n.value ? (s(), w(pe, {
1984
1983
  key: 2,
1985
1984
  "data-cy": "loading-spinner"
1986
- })) : F("", !0)
1985
+ })) : B("", !0)
1987
1986
  ], 16);
1988
1987
  };
1989
1988
  }
1990
- }), jt = { class: "d-flex flex-column" }, Ht = ["for"], bl = /* @__PURE__ */ $({
1989
+ }), Ht = { class: "d-flex flex-column" }, jt = ["for"], vl = /* @__PURE__ */ F({
1991
1990
  __name: "ForgeFormField",
1992
1991
  props: {
1993
1992
  name: {},
@@ -1999,60 +1998,60 @@ const pt = { key: 0 }, yt = {
1999
1998
  },
2000
1999
  setup(e) {
2001
2000
  const t = e, { errors: n, value: a, errorMessage: l } = W(() => t.name, t.rules), o = x(() => n.value.length > 0);
2002
- return (i, u) => {
2003
- const b = Ve, d = Ce, f = ne;
2004
- return s(), p("div", jt, [
2001
+ return (i, d) => {
2002
+ const f = Ve, r = Ce, g = ne;
2003
+ return s(), p("div", Ht, [
2005
2004
  t.type !== "checkbox" ? (s(), p("label", {
2006
2005
  key: 0,
2007
2006
  for: t.name
2008
- }, g(t.label), 9, Ht)) : F("", !0),
2007
+ }, h(t.label), 9, jt)) : B("", !0),
2009
2008
  t.type === "checkbox" ? (s(), w(me, S({
2010
2009
  key: 1,
2011
2010
  id: t.name,
2012
2011
  rules: i.rules,
2013
2012
  label: t.label
2014
- }, i.$attrs), null, 16, ["id", "rules", "label"])) : t.type === "number" ? (s(), w(c(ue), S({
2013
+ }, i.$attrs), null, 16, ["id", "rules", "label"])) : t.type === "number" ? (s(), w(u(ue), S({
2015
2014
  key: 2,
2016
2015
  id: t.name,
2017
2016
  placeholder: t.placeholder,
2018
- modelValue: c(a),
2019
- "onUpdate:modelValue": u[0] || (u[0] = (r) => H(a) ? a.value = r : null),
2017
+ modelValue: u(a),
2018
+ "onUpdate:modelValue": d[0] || (d[0] = (y) => j(a) ? a.value = y : null),
2020
2019
  "input-class": { "is-invalid": o.value },
2021
2020
  class: { "is-invalid": o.value }
2022
- }, i.$attrs), null, 16, ["id", "placeholder", "modelValue", "input-class", "class"])) : t.type === "textarea" ? (s(), w(b, S({
2021
+ }, i.$attrs), null, 16, ["id", "placeholder", "modelValue", "input-class", "class"])) : t.type === "textarea" ? (s(), w(f, S({
2023
2022
  key: 3,
2024
2023
  id: t.name,
2025
2024
  placeholder: t.placeholder,
2026
- modelValue: c(a),
2027
- "onUpdate:modelValue": u[1] || (u[1] = (r) => H(a) ? a.value = r : null),
2025
+ modelValue: u(a),
2026
+ "onUpdate:modelValue": d[1] || (d[1] = (y) => j(a) ? a.value = y : null),
2028
2027
  class: { "is-invalid": o.value }
2029
- }, i.$attrs), null, 16, ["id", "placeholder", "modelValue", "class"])) : t.type === "mask" ? (s(), w(d, S({
2028
+ }, i.$attrs), null, 16, ["id", "placeholder", "modelValue", "class"])) : t.type === "mask" ? (s(), w(r, S({
2030
2029
  key: 4,
2031
2030
  id: t.name,
2032
2031
  placeholder: t.placeholder,
2033
- modelValue: c(a),
2034
- "onUpdate:modelValue": u[2] || (u[2] = (r) => H(a) ? a.value = r : null),
2032
+ modelValue: u(a),
2033
+ "onUpdate:modelValue": d[2] || (d[2] = (y) => j(a) ? a.value = y : null),
2035
2034
  mask: t.mask,
2036
2035
  class: { "is-invalid": o.value }
2037
- }, i.$attrs), null, 16, ["id", "placeholder", "modelValue", "mask", "class"])) : t.type === "text" ? (s(), w(f, S({
2036
+ }, i.$attrs), null, 16, ["id", "placeholder", "modelValue", "mask", "class"])) : t.type === "text" ? (s(), w(g, S({
2038
2037
  key: 5,
2039
2038
  id: t.name,
2040
2039
  placeholder: t.placeholder,
2041
- modelValue: c(a),
2042
- "onUpdate:modelValue": u[3] || (u[3] = (r) => H(a) ? a.value = r : null),
2040
+ modelValue: u(a),
2041
+ "onUpdate:modelValue": d[3] || (d[3] = (y) => j(a) ? a.value = y : null),
2043
2042
  class: { "is-invalid": o.value }
2044
- }, i.$attrs), null, 16, ["id", "placeholder", "modelValue", "class"])) : F("", !0),
2043
+ }, i.$attrs), null, 16, ["id", "placeholder", "modelValue", "class"])) : B("", !0),
2045
2044
  t.type !== "checkbox" ? L((s(), p("small", {
2046
2045
  key: 6,
2047
2046
  "data-cy": "error",
2048
2047
  class: "invalid-feedback"
2049
- }, g(c(l)), 513)), [
2048
+ }, h(u(l)), 513)), [
2050
2049
  [Y, o.value]
2051
- ]) : F("", !0)
2050
+ ]) : B("", !0)
2052
2051
  ]);
2053
2052
  };
2054
2053
  }
2055
- }), fl = /* @__PURE__ */ $({
2054
+ }), bl = /* @__PURE__ */ F({
2056
2055
  __name: "ForgeChips",
2057
2056
  props: {
2058
2057
  chipSeverity: { default: "primary" },
@@ -2085,11 +2084,11 @@ const pt = { key: 0 }, yt = {
2085
2084
  const o = x(() => n.value.length > 0), i = x(() => ({
2086
2085
  inputtoken: "list-unstyled",
2087
2086
  input: "border-0",
2088
- container: ({ props: u }) => ({
2087
+ container: ({ props: d }) => ({
2089
2088
  class: [
2090
2089
  "form-control mb-0 d-flex",
2091
2090
  {
2092
- disabled: u.disabled,
2091
+ disabled: d.disabled,
2093
2092
  "is-invalid": o.value
2094
2093
  }
2095
2094
  ]
@@ -2113,19 +2112,19 @@ const pt = { key: 0 }, yt = {
2113
2112
  ]
2114
2113
  }
2115
2114
  }));
2116
- return (u, b) => {
2117
- const d = Te;
2118
- return s(), p(D, null, [
2119
- y(d, S({ ...t, ...u.$attrs }, {
2115
+ return (d, f) => {
2116
+ const r = Te;
2117
+ return s(), p(A, null, [
2118
+ v(r, S({ ...t, ...d.$attrs }, {
2120
2119
  pt: i.value,
2121
- "model-value": c(a),
2122
- "onUpdate:modelValue": b[0] || (b[0] = (f) => H(a) ? a.value = f : null)
2120
+ "model-value": u(a),
2121
+ "onUpdate:modelValue": f[0] || (f[0] = (g) => j(a) ? a.value = g : null)
2123
2122
  }), {
2124
- removetokenicon: v(({ removeCallback: f }) => [
2125
- L(y(c(C), {
2123
+ removetokenicon: b(({ removeCallback: g }) => [
2124
+ L(v(u(C), {
2126
2125
  icon: "bi:x",
2127
2126
  class: "cursor-pointer",
2128
- onClick: f
2127
+ onClick: g
2129
2128
  }, null, 8, ["onClick"]), [
2130
2129
  [Y, !t.disabled]
2131
2130
  ])
@@ -2135,13 +2134,13 @@ const pt = { key: 0 }, yt = {
2135
2134
  L(m("small", {
2136
2135
  "data-cy": "error",
2137
2136
  class: "text-invalid"
2138
- }, g(c(l)), 513), [
2137
+ }, h(u(l)), 513), [
2139
2138
  [Y, o.value]
2140
2139
  ])
2141
2140
  ], 64);
2142
2141
  };
2143
2142
  }
2144
- }), Yt = /* @__PURE__ */ $({
2143
+ }), Yt = /* @__PURE__ */ F({
2145
2144
  __name: "ForgeProgressBar",
2146
2145
  props: {
2147
2146
  severity: { default: "primary" },
@@ -2183,17 +2182,17 @@ const pt = { key: 0 }, yt = {
2183
2182
  class: [l.value, n.value, a.value]
2184
2183
  }
2185
2184
  }));
2186
- return (i, u) => {
2187
- const b = Me;
2188
- return s(), w(b, S({ ...i.$attrs, ...t }, { pt: o.value }), {
2189
- default: v(() => [
2185
+ return (i, d) => {
2186
+ const f = Me;
2187
+ return s(), w(f, S({ ...i.$attrs, ...t }, { pt: o.value }), {
2188
+ default: b(() => [
2190
2189
  k(i.$slots, "default")
2191
2190
  ]),
2192
2191
  _: 3
2193
2192
  }, 16, ["pt"]);
2194
2193
  };
2195
2194
  }
2196
- }), qt = { class: "value text-white w-100 text-center" }, gl = /* @__PURE__ */ $({
2195
+ }), qt = { class: "value text-white w-100 text-center" }, fl = /* @__PURE__ */ F({
2197
2196
  __name: "ForgeStatWidget",
2198
2197
  props: {
2199
2198
  size: { default: "md" },
@@ -2212,7 +2211,7 @@ const pt = { key: 0 }, yt = {
2212
2211
  }), Gt = {
2213
2212
  class: "d-flex flex-column align-items-center",
2214
2213
  "data-cy": "stepper"
2215
- }, Kt = { class: "d-flex align-items-center justify-content-center w-100" }, hl = /* @__PURE__ */ $({
2214
+ }, Kt = { class: "d-flex align-items-center justify-content-center w-100" }, gl = /* @__PURE__ */ F({
2216
2215
  __name: "ForgeStepper",
2217
2216
  props: {
2218
2217
  currentStep: { default: 0 },
@@ -2228,7 +2227,7 @@ const pt = { key: 0 }, yt = {
2228
2227
  },
2229
2228
  emits: ["update:currentStep"],
2230
2229
  setup(e, { emit: t }) {
2231
- const n = t, a = e, l = T(a.currentStep), o = () => {
2230
+ const n = t, a = e, l = M(a.currentStep), o = () => {
2232
2231
  do
2233
2232
  l.value--;
2234
2233
  while (a.model[l.value].disabled);
@@ -2239,89 +2238,89 @@ const pt = { key: 0 }, yt = {
2239
2238
  l.value++;
2240
2239
  while (a.model[l.value].disabled);
2241
2240
  n("update:currentStep", l.value);
2242
- }, u = x(() => {
2243
- const d = a.model.findIndex((f) => !f.disabled);
2244
- return !(d < l.value && d > -1);
2245
- }), b = x(() => ({
2246
- menuitem: (d) => ({
2241
+ }, d = x(() => {
2242
+ const r = a.model.findIndex((g) => !g.disabled);
2243
+ return !(r < l.value && r > -1);
2244
+ }), f = x(() => ({
2245
+ menuitem: (r) => ({
2247
2246
  class: [{
2248
- "cursor-pointer": !d.context.disabled
2247
+ "cursor-pointer": !r.context.disabled
2249
2248
  }]
2250
2249
  }),
2251
- step: (d) => ({
2250
+ step: (r) => ({
2252
2251
  class: [
2253
2252
  "d-flex align-items-center justify-content-center mb-2 step",
2254
2253
  {
2255
- inactive: d.context.disabled,
2256
- "bg-primary text-white": d.context.index === l.value && (a.severity === void 0 || a.severity === "primary"),
2257
- "bg-brand text-white": d.context.index === l.value && a.severity === "brand",
2258
- "bg-secondary text-white": d.context.index === l.value && a.severity === "secondary",
2259
- "bg-success text-white": d.context.index === l.value && a.severity === "success",
2260
- "bg-warning text-white": d.context.index === l.value && a.severity === "warning",
2261
- "bg-danger text-white": d.context.index === l.value && a.severity === "danger",
2262
- "bg-info text-white": d.context.index === l.value && a.severity === "info"
2254
+ inactive: r.context.disabled,
2255
+ "bg-primary text-white": r.context.index === l.value && (a.severity === void 0 || a.severity === "primary"),
2256
+ "bg-brand text-white": r.context.index === l.value && a.severity === "brand",
2257
+ "bg-secondary text-white": r.context.index === l.value && a.severity === "secondary",
2258
+ "bg-success text-white": r.context.index === l.value && a.severity === "success",
2259
+ "bg-warning text-white": r.context.index === l.value && a.severity === "warning",
2260
+ "bg-danger text-white": r.context.index === l.value && a.severity === "danger",
2261
+ "bg-info text-white": r.context.index === l.value && a.severity === "info"
2263
2262
  }
2264
2263
  ]
2265
2264
  }),
2266
- label: (d) => ({
2265
+ label: (r) => ({
2267
2266
  class: [
2268
2267
  "h5",
2269
2268
  {
2270
- "border-bottom border-2 border-primary": d.context.index === l.value && (a.severity === void 0 || a.severity === "primary"),
2271
- "border-bottom border-2 border-brand": d.context.index === l.value && a.severity === "brand",
2272
- "border-bottom border-2 border-secondary": d.context.index === l.value && a.severity === "secondary",
2273
- "border-bottom border-2 border-success": d.context.index === l.value && a.severity === "success",
2274
- "border-bottom border-2 border-warning": d.context.index === l.value && a.severity === "warning",
2275
- "border-bottom border-2 border-danger": d.context.index === l.value && a.severity === "danger",
2276
- "border-bottom border-2 border-info": d.context.index === l.value && a.severity === "info"
2269
+ "border-bottom border-2 border-primary": r.context.index === l.value && (a.severity === void 0 || a.severity === "primary"),
2270
+ "border-bottom border-2 border-brand": r.context.index === l.value && a.severity === "brand",
2271
+ "border-bottom border-2 border-secondary": r.context.index === l.value && a.severity === "secondary",
2272
+ "border-bottom border-2 border-success": r.context.index === l.value && a.severity === "success",
2273
+ "border-bottom border-2 border-warning": r.context.index === l.value && a.severity === "warning",
2274
+ "border-bottom border-2 border-danger": r.context.index === l.value && a.severity === "danger",
2275
+ "border-bottom border-2 border-info": r.context.index === l.value && a.severity === "info"
2277
2276
  }
2278
2277
  ]
2279
2278
  })
2280
2279
  }));
2281
- return (d, f) => {
2282
- const r = E, h = Ie, _ = Pe;
2280
+ return (r, g) => {
2281
+ const y = E, c = Ie, $ = Pe;
2283
2282
  return s(), p("div", Gt, [
2284
2283
  m("div", Kt, [
2285
- y(r, {
2284
+ v(y, {
2286
2285
  severity: a.severity,
2287
- disabled: u.value,
2286
+ disabled: d.value,
2288
2287
  onClick: o,
2289
2288
  class: "rounded-circle py-2 me-4",
2290
2289
  "data-cy": "back-button"
2291
2290
  }, {
2292
- default: v(() => [
2293
- y(c(C), {
2291
+ default: b(() => [
2292
+ v(u(C), {
2294
2293
  icon: "bi:chevron-left",
2295
2294
  class: "mb-1"
2296
2295
  })
2297
2296
  ]),
2298
2297
  _: 1
2299
2298
  }, 8, ["severity", "disabled"]),
2300
- y(h, {
2299
+ v(c, {
2301
2300
  "active-step": l.value,
2302
- "onUpdate:activeStep": f[0] || (f[0] = (V) => l.value = V),
2301
+ "onUpdate:activeStep": g[0] || (g[0] = (V) => l.value = V),
2303
2302
  model: a.model,
2304
- pt: b.value,
2303
+ pt: f.value,
2305
2304
  readonly: !1
2306
2305
  }, null, 8, ["active-step", "model", "pt"])
2307
2306
  ]),
2308
- y(_),
2309
- (s(!0), p(D, null, j(a.model, (V, M) => (s(), p("div", {
2310
- key: M,
2307
+ v($),
2308
+ (s(!0), p(A, null, H(a.model, (V, T) => (s(), p("div", {
2309
+ key: T,
2311
2310
  class: "w-100"
2312
2311
  }, [
2313
- M === l.value ? k(d.$slots, V.key ?? V.label, {
2312
+ T === l.value ? k(r.$slots, V.key ?? V.label, {
2314
2313
  key: 0,
2315
2314
  nextStep: i,
2316
2315
  previousStep: o
2317
2316
  }, () => [
2318
- y(ae, {
2317
+ v(ae, {
2319
2318
  severity: "info",
2320
2319
  "data-cy": "alert"
2321
2320
  }, {
2322
- default: v(() => [
2323
- P(" Please add Slot Content for the key " + g(V.key ?? V.label) + " ", 1),
2324
- y(r, {
2321
+ default: b(() => [
2322
+ P(" Please add Slot Content for the key " + h(V.key ?? V.label) + " ", 1),
2323
+ v(y, {
2325
2324
  severity: "primary",
2326
2325
  label: "Next",
2327
2326
  onClick: i,
@@ -2330,12 +2329,12 @@ const pt = { key: 0 }, yt = {
2330
2329
  ]),
2331
2330
  _: 2
2332
2331
  }, 1024)
2333
- ]) : F("", !0)
2332
+ ]) : B("", !0)
2334
2333
  ]))), 128))
2335
2334
  ]);
2336
2335
  };
2337
2336
  }
2338
- }), Wt = { class: "p-4 text-wrap w-100" }, Zt = { class: "p-4 text-wrap w-100" }, wl = /* @__PURE__ */ $({
2337
+ }), Wt = { class: "p-4 text-wrap w-100" }, Zt = { class: "p-4 text-wrap w-100" }, hl = /* @__PURE__ */ F({
2339
2338
  __name: "ForgeTile",
2340
2339
  props: {
2341
2340
  severity: { default: "primary" },
@@ -2348,12 +2347,12 @@ const pt = { key: 0 }, yt = {
2348
2347
  const i = E;
2349
2348
  return t.clickable ? (s(), w(i, {
2350
2349
  key: 0,
2351
- class: B(["d-flex w-100 p-0 text-body", n.value]),
2350
+ class: _(["d-flex w-100 p-0 text-body", n.value]),
2352
2351
  severity: t.severity,
2353
2352
  unstyled: "",
2354
2353
  "data-cy": "button-tile"
2355
2354
  }, {
2356
- default: v(() => [
2355
+ default: b(() => [
2357
2356
  m("div", Wt, [
2358
2357
  k(l.$slots, "default", {}, () => [
2359
2358
  P("Tile Content")
@@ -2363,7 +2362,7 @@ const pt = { key: 0 }, yt = {
2363
2362
  _: 3
2364
2363
  }, 8, ["severity", "class"])) : (s(), p("div", {
2365
2364
  key: 1,
2366
- class: B(["d-flex w-100", a.value]),
2365
+ class: _(["d-flex w-100", a.value]),
2367
2366
  "data-cy": "tile"
2368
2367
  }, [
2369
2368
  m("div", Zt, [
@@ -2384,7 +2383,7 @@ const Jt = {
2384
2383
  }, Xt = { class: "ms-2" }, Qt = { key: 0 }, ea = /* @__PURE__ */ m("span", { class: "mx-2" }, "|", -1), ta = {
2385
2384
  class: "w-auto",
2386
2385
  "data-cy": "total"
2387
- }, aa = /* @__PURE__ */ $({
2386
+ }, aa = /* @__PURE__ */ F({
2388
2387
  __name: "ForgePaginationHeader",
2389
2388
  props: {
2390
2389
  total: {},
@@ -2399,25 +2398,22 @@ const Jt = {
2399
2398
  const i = Math.ceil(a.total / a.perPage);
2400
2399
  return `${i} ${X(i, "page")}`;
2401
2400
  });
2402
- return (i, u) => (s(), p("div", Jt, [
2401
+ return (i, d) => (s(), p("div", Jt, [
2403
2402
  P(" Number of results per page "),
2404
2403
  m("div", Xt, [
2405
- y(c(se), {
2404
+ v(u(se), {
2406
2405
  options: a.pageSizes,
2407
2406
  "model-value": a.perPage,
2408
- onChange: u[0] || (u[0] = (b) => l(b))
2407
+ onChange: d[0] || (d[0] = (f) => l(f))
2409
2408
  }, null, 8, ["options", "model-value"])
2410
2409
  ]),
2411
2410
  a.total ? (s(), p("div", Qt, [
2412
2411
  ea,
2413
- m("span", ta, g(a.total) + " " + g(c(X)(a.total, "result")) + " across " + g(o.value), 1)
2414
- ])) : F("", !0)
2412
+ m("span", ta, h(a.total) + " " + h(u(X)(a.total, "result")) + " across " + h(o.value), 1)
2413
+ ])) : B("", !0)
2415
2414
  ]));
2416
2415
  }
2417
- }), la = { "data-cy": "above-table-slot" }, oa = { class: "d-flex" }, na = { class: "d-flex align-items-end mb-2" }, sa = { key: 0 }, ia = { class: "ms-auto" }, ra = {
2418
- class: "d-flex",
2419
- "data-cy": "legacy-page-size"
2420
- }, da = /* @__PURE__ */ m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1), ua = { "data-cy": "legacy-total" }, xl = /* @__PURE__ */ $({
2416
+ }), la = { class: "position-relative" }, oa = { "data-cy": "above-table-slot" }, na = { class: "d-flex" }, sa = { class: "d-flex align-items-end mb-2" }, ia = { key: 0 }, ra = { class: "ms-auto" }, da = /* @__PURE__ */ m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1), wl = /* @__PURE__ */ F({
2421
2417
  __name: "ForgeTable",
2422
2418
  props: {
2423
2419
  value: {},
@@ -2425,6 +2421,8 @@ const Jt = {
2425
2421
  total: {},
2426
2422
  showClearButton: { type: Boolean, default: !1 },
2427
2423
  showExporterButton: { type: Boolean, default: !1 },
2424
+ stickyHeader: { type: Boolean, default: !0 },
2425
+ severity: {},
2428
2426
  dataKey: {},
2429
2427
  rows: {},
2430
2428
  first: {},
@@ -2496,117 +2494,152 @@ const Jt = {
2496
2494
  },
2497
2495
  emits: ["update:filters"],
2498
2496
  setup(e, { emit: t }) {
2499
- const n = t, a = e, l = T([10, 20, 50, 100]), o = T(20), i = T(), u = () => {
2500
- for (const r in a.filters)
2501
- a.filters[r].value = null;
2502
- b(a.filters);
2503
- }, b = (r) => {
2504
- n("update:filters", r);
2505
- }, d = x(() => {
2506
- const r = Math.ceil((a.total ?? a.value.length) / o.value);
2507
- return `${r} ${X(r, "page")}`;
2508
- }), f = () => {
2497
+ const n = t, a = e, l = M([10, 20, 50, 100]), o = M(20), i = M(), d = () => {
2498
+ for (const c in a.filters)
2499
+ a.filters[c].value = null;
2500
+ f(a.filters);
2501
+ }, f = (c) => {
2502
+ n("update:filters", c);
2503
+ }, r = x(() => {
2504
+ const c = Math.ceil((a.total ?? a.value.length) / o.value);
2505
+ return `${c} ${X(c, "page")}`;
2506
+ }), g = () => {
2509
2507
  i.value.exportCSV();
2510
- };
2511
- return (r, h) => (s(), p(D, null, [
2512
- m("span", la, [
2513
- k(r.$slots, "above-table")
2508
+ }, y = x(() => ({
2509
+ thead: () => ({
2510
+ class: [
2511
+ {
2512
+ "sticky-header": a.stickyHeader
2513
+ }
2514
+ ],
2515
+ style: "position: "
2516
+ }),
2517
+ loadingIcon: () => ({
2518
+ class: [
2519
+ "spinner-border border-0",
2520
+ {
2521
+ "text-brand": a.severity === "brand",
2522
+ "text-primary": a.severity === "primary",
2523
+ "text-success": a.severity === "success",
2524
+ "text-warning": a.severity === "warning",
2525
+ "text-danger": a.severity === "danger",
2526
+ "text-info": a.severity === "info"
2527
+ }
2528
+ ]
2529
+ })
2530
+ }));
2531
+ return (c, $) => (s(), p("div", la, [
2532
+ m("span", oa, [
2533
+ k(c.$slots, "above-table")
2514
2534
  ]),
2515
- y(c(ze), S({ class: "w-100" }, { ...a, ...r.$attrs }, {
2535
+ v(u(ze), S({
2536
+ class: ["w-100", `${a.severity ? `forge-table-${a.severity}` : ""}`]
2537
+ }, { ...a, ...c.$attrs }, {
2516
2538
  rows: o.value,
2517
- "total-records": r.total,
2539
+ "total-records": c.total,
2518
2540
  "filter-display": a.filters ? "row" : void 0,
2519
2541
  ref_key: "forgeTable",
2520
2542
  ref: i,
2521
- "onUpdate:filters": b,
2543
+ "onUpdate:filters": f,
2544
+ pt: y.value,
2522
2545
  "data-cy": "table"
2523
2546
  }), te({
2524
- header: v(() => [
2525
- m("div", oa, [
2547
+ header: b(() => [
2548
+ m("div", {
2549
+ class: _(a.loading ? "opacity-50" : "")
2550
+ }, [
2526
2551
  m("div", na, [
2527
- r.paginator && !r.legacyPaginationFooter ? (s(), p("span", sa, [
2528
- y(aa, {
2529
- total: r.total ?? r.value.length,
2530
- "page-sizes": l.value,
2531
- "per-page": o.value,
2532
- "onUpdate:perPage": h[0] || (h[0] = (_) => o.value = _)
2533
- }, null, 8, ["total", "page-sizes", "per-page"])
2534
- ])) : F("", !0)
2535
- ]),
2536
- m("div", ia, [
2537
- r.showClearButton ? (s(), w(c(E), {
2538
- key: 0,
2539
- outlined: "",
2540
- class: B(r.showExporterButton ? "me-2" : ""),
2541
- onClick: u,
2542
- "data-cy": "clear-all"
2543
- }, {
2544
- default: v(() => [
2545
- y(c(C), {
2546
- icon: "bi:funnel-fill",
2547
- width: "24",
2548
- height: "24"
2549
- }),
2550
- P(" Clear ")
2551
- ]),
2552
- _: 1
2553
- }, 8, ["class"])) : F("", !0),
2554
- r.showExporterButton ? (s(), w(c(E), {
2555
- key: 1,
2556
- outlined: "",
2557
- onClick: f,
2558
- "data-cy": "exporter"
2559
- }, {
2560
- default: v(() => [
2561
- y(c(C), {
2562
- icon: "typcn:export",
2563
- width: "24",
2564
- height: "24"
2565
- }),
2566
- P(" Export ")
2567
- ]),
2568
- _: 1
2569
- })) : F("", !0)
2552
+ m("div", sa, [
2553
+ c.paginator && !c.legacyPaginationFooter ? (s(), p("span", ia, [
2554
+ v(aa, {
2555
+ total: c.total ?? c.value.length,
2556
+ "page-sizes": l.value,
2557
+ "per-page": o.value,
2558
+ "onUpdate:perPage": $[0] || ($[0] = (V) => o.value = V)
2559
+ }, null, 8, ["total", "page-sizes", "per-page"])
2560
+ ])) : B("", !0)
2561
+ ]),
2562
+ m("div", ra, [
2563
+ c.showClearButton ? (s(), w(u(E), {
2564
+ key: 0,
2565
+ outlined: "",
2566
+ class: _(c.showExporterButton ? "me-2" : ""),
2567
+ onClick: d,
2568
+ "data-cy": "clear-all"
2569
+ }, {
2570
+ default: b(() => [
2571
+ v(u(C), {
2572
+ icon: "bi:funnel-fill",
2573
+ width: "24",
2574
+ height: "24"
2575
+ }),
2576
+ P(" Clear ")
2577
+ ]),
2578
+ _: 1
2579
+ }, 8, ["class"])) : B("", !0),
2580
+ c.showExporterButton ? (s(), w(u(E), {
2581
+ key: 1,
2582
+ outlined: "",
2583
+ onClick: g,
2584
+ "data-cy": "exporter"
2585
+ }, {
2586
+ default: b(() => [
2587
+ v(u(C), {
2588
+ icon: "typcn:export",
2589
+ width: "24",
2590
+ height: "24"
2591
+ }),
2592
+ P(" Export ")
2593
+ ]),
2594
+ _: 1
2595
+ })) : B("", !0)
2596
+ ])
2570
2597
  ])
2571
- ])
2598
+ ], 2)
2572
2599
  ]),
2573
- default: v(() => [
2574
- k(r.$slots, "default")
2600
+ default: b(() => [
2601
+ k(c.$slots, "default")
2575
2602
  ]),
2576
2603
  _: 2
2577
2604
  }, [
2578
- j(r.$slots, (_, V) => ({
2579
- name: V,
2580
- fn: v((M) => [
2581
- k(r.$slots, V, Q(ee(M || {})))
2605
+ H(c.$slots, (V, T) => ({
2606
+ name: T,
2607
+ fn: b((I) => [
2608
+ k(c.$slots, T, Q(ee(I || {})))
2582
2609
  ])
2583
2610
  })),
2584
- r.legacyPaginationFooter ? {
2611
+ c.legacyPaginationFooter ? {
2585
2612
  name: "paginatorstart",
2586
- fn: v(() => [
2587
- m("span", ra, [
2613
+ fn: b(() => [
2614
+ m("span", {
2615
+ class: _(["d-flex", a.loading ? "opacity-50" : ""]),
2616
+ "data-cy": "legacy-page-size"
2617
+ }, [
2588
2618
  da,
2589
- y(c(se), {
2619
+ v(u(se), {
2590
2620
  options: l.value,
2591
2621
  modelValue: o.value,
2592
- "onUpdate:modelValue": h[1] || (h[1] = (_) => o.value = _),
2622
+ "onUpdate:modelValue": $[1] || ($[1] = (V) => o.value = V),
2593
2623
  class: "ms-2"
2594
2624
  }, null, 8, ["options", "modelValue"])
2595
- ])
2625
+ ], 2)
2596
2626
  ]),
2597
2627
  key: "0"
2598
2628
  } : void 0,
2599
- r.legacyPaginationFooter ? {
2629
+ c.legacyPaginationFooter ? {
2600
2630
  name: "paginatorend",
2601
- fn: v(() => [
2602
- m("span", ua, g(r.total ?? r.value.length) + " " + g(c(X)(r.total ?? r.value.length, "result")) + " across " + g(d.value), 1)
2631
+ fn: b(() => [
2632
+ m("span", {
2633
+ "data-cy": "legacy-total",
2634
+ class: _(a.loading ? "opacity-50" : "")
2635
+ }, h(c.total ?? c.value.length) + " " + h(u(X)(c.total ?? c.value.length, "result")) + " across " + h(r.value), 3)
2603
2636
  ]),
2604
2637
  key: "1"
2605
2638
  } : void 0
2606
- ]), 1040, ["rows", "total-records", "filter-display"])
2607
- ], 64));
2639
+ ]), 1040, ["class", "rows", "total-records", "filter-display", "pt"])
2640
+ ]));
2608
2641
  }
2609
- }), kl = /* @__PURE__ */ $({
2642
+ }), xl = /* @__PURE__ */ F({
2610
2643
  __name: "ForgeFilterHeader",
2611
2644
  props: {
2612
2645
  dataType: {},
@@ -2619,32 +2652,32 @@ const Jt = {
2619
2652
  "show-icon": !1,
2620
2653
  "show-on-focus": !0,
2621
2654
  class: "w-100"
2622
- }), null, 16)) : t.dataType === "select" ? (s(), w(c(se), S({ key: 2 }, t.$attrs, {
2655
+ }), null, 16)) : t.dataType === "select" ? (s(), w(u(se), S({ key: 2 }, t.$attrs, {
2623
2656
  options: t.dropdownOptions,
2624
2657
  class: "dropdown-input w-100"
2625
- }), null, 16, ["options"])) : t.dataType === "multiselect" ? (s(), w(c(Oe), S({ key: 3 }, t.$attrs, {
2658
+ }), null, 16, ["options"])) : t.dataType === "multiselect" ? (s(), w(u(Oe), S({ key: 3 }, t.$attrs, {
2626
2659
  options: t.dropdownOptions,
2627
2660
  showToggleAll: !1,
2628
2661
  placeholder: " ",
2629
2662
  filter: "",
2630
2663
  class: "w-100 dropdown-input"
2631
- }), null, 16, ["options"])) : (s(), w(c(ne), S({ key: 4 }, t.$attrs, { class: "w-100" }), null, 16));
2664
+ }), null, 16, ["options"])) : (s(), w(u(ne), S({ key: 4 }, t.$attrs, { class: "w-100" }), null, 16));
2632
2665
  };
2633
2666
  }
2634
2667
  });
2635
2668
  function ye(e, t, n, a) {
2636
2669
  const l = t.flatMap((o) => o.file);
2637
2670
  return t = t.map((o) => ({ ...o, status: o.status == "Duplicate" ? "Not Uploaded" : o.status })), e.forEach((o) => {
2638
- const i = l.findIndex((b) => b.name === o.name);
2639
- let u = "Not Uploaded";
2640
- i === -1 ? ((!n.includes(o.type) || !(o.size <= a)) && (u = n.includes(o.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
2671
+ const i = l.findIndex((f) => f.name === o.name);
2672
+ let d = "Not Uploaded";
2673
+ i === -1 ? ((!n.includes(o.type) || !(o.size <= a)) && (d = n.includes(o.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
2641
2674
  file: o,
2642
- status: u,
2675
+ status: d,
2643
2676
  blobFileName: null
2644
2677
  })) : t[i].status = "Duplicate";
2645
2678
  }), t;
2646
2679
  }
2647
- async function ca(e, t) {
2680
+ async function ua(e, t) {
2648
2681
  if (e === "Uploaded" && t !== null)
2649
2682
  try {
2650
2683
  await new ce(t).delete();
@@ -2667,13 +2700,13 @@ function ie(e, t = !0, n = 1) {
2667
2700
  while (Math.round(Math.abs(e) * i) / i >= a && o < l.length - 1);
2668
2701
  return e.toFixed(n) + " " + l[o];
2669
2702
  }
2670
- function ma(e) {
2703
+ function ca(e) {
2671
2704
  return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
2672
2705
  }
2673
- function pa(e) {
2706
+ function ma(e) {
2674
2707
  return URL.createObjectURL(e);
2675
2708
  }
2676
- const ya = { class: "d-flex justify-content-between" }, va = ["accept", "disabled", "multiple"], ba = /* @__PURE__ */ $({
2709
+ const pa = { class: "d-flex justify-content-between" }, ya = ["accept", "disabled", "multiple"], va = /* @__PURE__ */ F({
2677
2710
  __name: "UploadButton",
2678
2711
  props: /* @__PURE__ */ q({
2679
2712
  acceptedFileTypes: {},
@@ -2688,7 +2721,7 @@ const ya = { class: "d-flex justify-content-between" }, va = ["accept", "disable
2688
2721
  const t = R(e, "modelValue"), n = x(() => e.maxFileInput <= t.value.length), a = (l) => {
2689
2722
  t.value = ye(l, t.value, e.acceptedFileTypes, e.maxFileInput);
2690
2723
  };
2691
- return (l, o) => (s(), p("div", ya, [
2724
+ return (l, o) => (s(), p("div", pa, [
2692
2725
  k(l.$slots, "message"),
2693
2726
  m("div", null, [
2694
2727
  m("input", {
@@ -2699,14 +2732,14 @@ const ya = { class: "d-flex justify-content-between" }, va = ["accept", "disable
2699
2732
  disabled: n.value,
2700
2733
  multiple: l.maxFileInput > 1,
2701
2734
  onInput: o[0] || (o[0] = (i) => a([...i.target.files]))
2702
- }, null, 40, va),
2735
+ }, null, 40, ya),
2703
2736
  m("label", {
2704
- class: B([{ disabled: n.value }, "btn btn-primary"]),
2737
+ class: _([{ disabled: n.value }, "btn btn-primary"]),
2705
2738
  id: "file-input-button",
2706
2739
  for: "file-input"
2707
2740
  }, [
2708
2741
  k(l.$slots, "button-content", {}, () => [
2709
- y(c(C), {
2742
+ v(u(C), {
2710
2743
  icon: "bi:upload",
2711
2744
  class: "me-2",
2712
2745
  height: "20px",
@@ -2720,17 +2753,17 @@ const ya = { class: "d-flex justify-content-between" }, va = ["accept", "disable
2720
2753
  class: "ms-auto",
2721
2754
  key: l.acceptedFileTypes.length,
2722
2755
  id: "accepted-file-types"
2723
- }, "Accepted File Types: " + g(l.acceptedFileTypes.map((i) => i.split("/").pop()).join(", ")), 1)) : F("", !0)
2756
+ }, "Accepted File Types: " + h(l.acceptedFileTypes.map((i) => i.split("/").pop()).join(", ")), 1)) : B("", !0)
2724
2757
  ]));
2725
2758
  }
2726
- }), fa = {
2759
+ }), ba = {
2727
2760
  key: 0,
2728
2761
  class: "py-4 px-3",
2729
2762
  id: "placeholder-message"
2730
- }, ga = {
2763
+ }, fa = {
2731
2764
  key: 1,
2732
2765
  class: "d-flex flex-column"
2733
- }, ha = /* @__PURE__ */ $({
2766
+ }, ga = /* @__PURE__ */ F({
2734
2767
  __name: "DragDropArea",
2735
2768
  props: /* @__PURE__ */ q({
2736
2769
  maxFileInput: {},
@@ -2742,30 +2775,30 @@ const ya = { class: "d-flex justify-content-between" }, va = ["accept", "disable
2742
2775
  }),
2743
2776
  emits: ["update:modelValue"],
2744
2777
  setup(e) {
2745
- const t = R(e, "modelValue"), n = T(!1), a = x(() => e.maxFileInput <= t.value.length), l = (o) => {
2778
+ const t = R(e, "modelValue"), n = M(!1), a = x(() => e.maxFileInput <= t.value.length), l = (o) => {
2746
2779
  n.value = !1, o.dataTransfer.files.length > e.maxFileInput || a.value ? o.preventDefault() : t.value = ye([...o.dataTransfer.files], t.value, e.acceptedFileTypes, e.maxFileSize);
2747
2780
  };
2748
2781
  return (o, i) => (s(), p("div", {
2749
2782
  id: "drag-drop-area",
2750
- class: B(`${n.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
2751
- onDragleave: i[0] || (i[0] = G((u) => n.value = !1, ["prevent"])),
2752
- onDragover: i[1] || (i[1] = G((u) => n.value = !0, ["prevent"])),
2783
+ class: _(`${n.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
2784
+ onDragleave: i[0] || (i[0] = G((d) => n.value = !1, ["prevent"])),
2785
+ onDragover: i[1] || (i[1] = G((d) => n.value = !0, ["prevent"])),
2753
2786
  onDrop: G(l, ["prevent"])
2754
2787
  }, [
2755
- t.value.length === 0 ? (s(), p("div", fa, [
2756
- y(c(C), {
2788
+ t.value.length === 0 ? (s(), p("div", ba, [
2789
+ v(u(C), {
2757
2790
  icon: "bi:upload",
2758
2791
  class: "me-2",
2759
2792
  height: "20px",
2760
2793
  width: "20px"
2761
2794
  }),
2762
2795
  P(" Drag and drop files here ")
2763
- ])) : (s(), p("div", ga, [
2796
+ ])) : (s(), p("div", fa, [
2764
2797
  k(o.$slots, "default")
2765
2798
  ]))
2766
2799
  ], 34));
2767
2800
  }
2768
- }), wa = { class: "d-flex align-items-center me-2" }, xa = /* @__PURE__ */ $({
2801
+ }), ha = { class: "d-flex align-items-center me-2" }, wa = /* @__PURE__ */ F({
2769
2802
  __name: "UploadStatus",
2770
2803
  props: {
2771
2804
  fileSize: {},
@@ -2790,41 +2823,41 @@ const ya = { class: "d-flex justify-content-between" }, va = ["accept", "disable
2790
2823
  return "Upload Failed: Connection error, please try again.";
2791
2824
  }
2792
2825
  });
2793
- return (a, l) => (s(), p("div", wa, [
2826
+ return (a, l) => (s(), p("div", ha, [
2794
2827
  a.uploadStatus === "Uploading" ? (s(), w(Yt, {
2795
2828
  key: 0,
2796
2829
  pixelWidth: 200,
2797
2830
  animate: "",
2798
2831
  striped: ""
2799
2832
  }, {
2800
- default: v(() => [
2801
- P(g((a.bytesUploaded / a.fileSize * 100).toFixed(0)) + "%", 1)
2833
+ default: b(() => [
2834
+ P(h((a.bytesUploaded / a.fileSize * 100).toFixed(0)) + "%", 1)
2802
2835
  ]),
2803
2836
  _: 1
2804
- })) : F("", !0),
2837
+ })) : B("", !0),
2805
2838
  a.uploadStatus !== "Uploading" && a.uploadStatus !== "Not Uploaded" && a.uploadStatus !== "Uploaded" && a.uploadStatus !== "Preparing" ? (s(), w(ae, {
2806
2839
  key: 1,
2807
2840
  id: "upload-status-alert",
2808
2841
  severity: t.value,
2809
2842
  class: "mb-0 w-75 ms-auto"
2810
2843
  }, {
2811
- default: v(() => [
2812
- P(g(n.value), 1)
2844
+ default: b(() => [
2845
+ P(h(n.value), 1)
2813
2846
  ]),
2814
2847
  _: 1
2815
- }, 8, ["severity"])) : F("", !0)
2848
+ }, 8, ["severity"])) : B("", !0)
2816
2849
  ]));
2817
2850
  }
2818
- }), ka = ["data-cy"], _a = { class: "ms-3 d-flex flex-column" }, $a = {
2851
+ }), xa = ["data-cy"], ka = { class: "ms-3 d-flex flex-column" }, $a = {
2819
2852
  key: 1,
2820
2853
  id: "file-name"
2821
- }, Fa = {
2854
+ }, _a = {
2822
2855
  class: "text-black-50",
2823
2856
  id: "file-type"
2824
- }, Ba = {
2857
+ }, Fa = {
2825
2858
  class: "text-black-50",
2826
2859
  id: "file-size"
2827
- }, Sa = { class: "ms-auto my-auto d-flex" }, Ca = /* @__PURE__ */ $({
2860
+ }, Ba = { class: "ms-auto my-auto d-flex" }, Sa = /* @__PURE__ */ F({
2828
2861
  __name: "FileInfo",
2829
2862
  props: /* @__PURE__ */ q({
2830
2863
  editableFileName: { type: Boolean },
@@ -2843,27 +2876,27 @@ const ya = { class: "d-flex justify-content-between" }, va = ["accept", "disable
2843
2876
  }),
2844
2877
  emits: /* @__PURE__ */ q(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
2845
2878
  setup(e, { emit: t }) {
2846
- const n = R(e, "file"), a = R(e, "blobFileName"), l = R(e, "uploadStatus"), o = t, i = T(n.value.name), u = T(""), b = T(0), d = T(), f = x(() => e.acceptedFileTypes.includes(n.value.type)), r = x(() => n.value.size <= e.maxFileSize), h = () => {
2879
+ const n = R(e, "file"), a = R(e, "blobFileName"), l = R(e, "uploadStatus"), o = t, i = M(n.value.name), d = M(""), f = M(0), r = M(), g = x(() => e.acceptedFileTypes.includes(n.value.type)), y = x(() => n.value.size <= e.maxFileSize), c = () => {
2847
2880
  n.value = new File([n.value], i.value, { type: n.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() });
2848
- }, _ = async () => {
2849
- if (!f.value || !r.value) {
2850
- l.value = f.value ? "InvalidFileSize" : "InvalidFileType";
2881
+ }, $ = async () => {
2882
+ if (!g.value || !y.value) {
2883
+ l.value = g.value ? "InvalidFileSize" : "InvalidFileType";
2851
2884
  return;
2852
2885
  }
2853
- l.value = "Preparing", d.value = new AbortController();
2854
- const [M, I] = await e.getFileUrlAction(n.value.name);
2855
- if (!M) {
2886
+ l.value = "Preparing", r.value = new AbortController();
2887
+ const [T, I] = await e.getFileUrlAction(n.value.name);
2888
+ if (!T) {
2856
2889
  l.value = "Failed";
2857
2890
  return;
2858
2891
  }
2859
2892
  try {
2860
2893
  l.value = "Uploading";
2861
- const z = new ce(M), N = {
2862
- abortSignal: d.value.signal,
2863
- onProgress: (le) => b.value = le.loadedBytes,
2894
+ const z = new ce(T), N = {
2895
+ abortSignal: r.value.signal,
2896
+ onProgress: (le) => f.value = le.loadedBytes,
2864
2897
  tags: { temp: "true" }
2865
2898
  };
2866
- await z.uploadData(n.value, N), u.value = M, l.value = "Uploaded", a.value = I;
2899
+ await z.uploadData(n.value, N), d.value = T, l.value = "Uploaded", a.value = I;
2867
2900
  } catch (z) {
2868
2901
  if (z.name === "AbortError") {
2869
2902
  l.value = "Aborted";
@@ -2872,26 +2905,26 @@ const ya = { class: "d-flex justify-content-between" }, va = ["accept", "disable
2872
2905
  l.value = "Failed";
2873
2906
  }
2874
2907
  }, V = async () => {
2875
- await ca(l.value, u.value), o("deleted", n.value);
2908
+ await ua(l.value, d.value), o("deleted", n.value);
2876
2909
  };
2877
2910
  return oe(() => {
2878
- e.autoUploadToBlob && _();
2879
- }), (M, I) => {
2911
+ e.autoUploadToBlob && $();
2912
+ }), (T, I) => {
2880
2913
  const z = E;
2881
2914
  return s(), p("div", {
2882
2915
  class: "py-4 px-3 d-flex",
2883
2916
  "data-cy": `file-info-${n.value.name}`
2884
2917
  }, [
2885
2918
  m("div", null, [
2886
- c(ma)(n.value.type) ? (s(), w(c(De), {
2919
+ u(ca)(n.value.type) ? (s(), w(u(De), {
2887
2920
  key: 0,
2888
2921
  id: "thumbnail-image",
2889
2922
  "image-class": "image-file-thumbnail border",
2890
- src: c(pa)(n.value),
2923
+ src: u(ma)(n.value),
2891
2924
  alt: n.value.name,
2892
2925
  width: "75px",
2893
2926
  preview: ""
2894
- }, null, 8, ["src", "alt"])) : (s(), w(c(C), {
2927
+ }, null, 8, ["src", "alt"])) : (s(), w(u(C), {
2895
2928
  key: 1,
2896
2929
  id: "file-earmark",
2897
2930
  icon: "bi:file-earmark",
@@ -2899,48 +2932,48 @@ const ya = { class: "d-flex justify-content-between" }, va = ["accept", "disable
2899
2932
  width: "75px"
2900
2933
  }))
2901
2934
  ]),
2902
- m("div", _a, [
2935
+ m("div", ka, [
2903
2936
  m("div", null, [
2904
- M.editableFileName ? (s(), w(xt, {
2937
+ T.editableFileName ? (s(), w(xt, {
2905
2938
  key: 0,
2906
2939
  id: "edit-file-name",
2907
2940
  modelValue: i.value,
2908
2941
  "onUpdate:modelValue": I[0] || (I[0] = (N) => i.value = N),
2909
- rules: M.customFileNameRules,
2942
+ rules: T.customFileNameRules,
2910
2943
  name: n.value.name,
2911
- "complete-action": h
2912
- }, null, 8, ["modelValue", "rules", "name"])) : (s(), p("span", $a, g(n.value.name), 1))
2944
+ "complete-action": c
2945
+ }, null, 8, ["modelValue", "rules", "name"])) : (s(), p("span", $a, h(n.value.name), 1))
2913
2946
  ]),
2914
- m("span", Fa, "File type: " + g(n.value.type.split("/").pop()), 1),
2915
- m("span", Ba, "File size: " + g(c(ie)(n.value.size)), 1)
2947
+ m("span", _a, "File type: " + h(n.value.type.split("/").pop()), 1),
2948
+ m("span", Fa, "File size: " + h(u(ie)(n.value.size)), 1)
2916
2949
  ]),
2917
- m("div", Sa, [
2918
- (s(), w(xa, {
2950
+ m("div", Ba, [
2951
+ (s(), w(wa, {
2919
2952
  key: l.value,
2920
2953
  "file-size": n.value.size,
2921
2954
  "upload-status": l.value,
2922
- "bytes-uploaded": b.value,
2923
- "max-file-size": M.maxFileSize
2955
+ "bytes-uploaded": f.value,
2956
+ "max-file-size": T.maxFileSize
2924
2957
  }, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
2925
2958
  l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (s(), w(z, {
2926
2959
  key: 0,
2927
2960
  link: "",
2928
- onClick: _
2961
+ onClick: $
2929
2962
  }, {
2930
- default: v(() => [
2931
- y(c(C), {
2963
+ default: b(() => [
2964
+ v(u(C), {
2932
2965
  icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
2933
2966
  }, null, 8, ["icon"])
2934
2967
  ]),
2935
2968
  _: 1
2936
- })) : F("", !0),
2969
+ })) : B("", !0),
2937
2970
  l.value === "Uploading" ? (s(), w(z, {
2938
2971
  key: 1,
2939
2972
  link: "",
2940
- onClick: I[1] || (I[1] = (N) => d.value.value.abort())
2973
+ onClick: I[1] || (I[1] = (N) => r.value.value.abort())
2941
2974
  }, {
2942
- default: v(() => [
2943
- y(c(C), { icon: "bi:x-circle-fill" })
2975
+ default: b(() => [
2976
+ v(u(C), { icon: "bi:x-circle-fill" })
2944
2977
  ]),
2945
2978
  _: 1
2946
2979
  })) : (s(), w(z, {
@@ -2949,26 +2982,26 @@ const ya = { class: "d-flex justify-content-between" }, va = ["accept", "disable
2949
2982
  onClick: V,
2950
2983
  id: "delete-button"
2951
2984
  }, {
2952
- default: v(() => [
2953
- y(c(C), { icon: "bi:trash" })
2985
+ default: b(() => [
2986
+ v(u(C), { icon: "bi:trash" })
2954
2987
  ]),
2955
2988
  _: 1
2956
2989
  }))
2957
2990
  ])
2958
- ], 8, ka);
2991
+ ], 8, xa);
2959
2992
  };
2960
2993
  }
2961
- }), Va = { class: "d-flex justify-content-end mt-1" }, Ta = { id: "max-file-size" }, Ma = /* @__PURE__ */ $({
2994
+ }), Ca = { class: "d-flex justify-content-end mt-1" }, Va = { id: "max-file-size" }, Ta = /* @__PURE__ */ F({
2962
2995
  __name: "MaxFileSize",
2963
2996
  props: {
2964
2997
  maxFileSize: {}
2965
2998
  },
2966
2999
  setup(e) {
2967
- return (t, n) => (s(), p("div", Va, [
2968
- m("div", Ta, "Max file size: " + g(c(ie)(t.maxFileSize)), 1)
3000
+ return (t, n) => (s(), p("div", Ca, [
3001
+ m("div", Va, "Max file size: " + h(u(ie)(t.maxFileSize)), 1)
2969
3002
  ]));
2970
3003
  }
2971
- }), Pa = { "data-cy": "file-uploader" }, Ia = { key: 0 }, _l = /* @__PURE__ */ $({
3004
+ }), Ma = { "data-cy": "file-uploader" }, Pa = { key: 0 }, kl = /* @__PURE__ */ F({
2972
3005
  __name: "ForgeFileUploader",
2973
3006
  props: /* @__PURE__ */ q({
2974
3007
  acceptedFileTypes: {},
@@ -2988,66 +3021,66 @@ const ya = { class: "d-flex justify-content-between" }, va = ["accept", "disable
2988
3021
  const t = R(e, "modelValue"), n = e, a = (l) => {
2989
3022
  t.value = t.value.filter((o) => o.file != l);
2990
3023
  };
2991
- return (l, o) => (s(), p("div", Pa, [
2992
- y(ba, S(n, {
3024
+ return (l, o) => (s(), p("div", Ma, [
3025
+ v(va, S(n, {
2993
3026
  modelValue: t.value,
2994
3027
  "onUpdate:modelValue": o[0] || (o[0] = (i) => t.value = i)
2995
3028
  }), null, 16, ["modelValue"]),
2996
- l.showDragDropArea ? (s(), p("div", Ia, [
2997
- y(ha, {
3029
+ l.showDragDropArea ? (s(), p("div", Pa, [
3030
+ v(ga, {
2998
3031
  "max-file-input": n.maxFileInput,
2999
3032
  "max-file-size": n.maxFileSize,
3000
3033
  "accepted-file-types": n.acceptedFileTypes,
3001
3034
  modelValue: t.value,
3002
3035
  "onUpdate:modelValue": o[1] || (o[1] = (i) => t.value = i)
3003
3036
  }, {
3004
- default: v(() => [
3005
- (s(!0), p(D, null, j(t.value, ({ file: i }, u) => (s(), p("span", null, [
3006
- (s(), w(Ca, S({
3037
+ default: b(() => [
3038
+ (s(!0), p(A, null, H(t.value, ({ file: i }, d) => (s(), p("span", null, [
3039
+ (s(), w(Sa, S({
3007
3040
  key: i.name,
3008
- class: u === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
3009
- file: t.value[u].file,
3010
- "onUpdate:file": (b) => t.value[u].file = b,
3011
- "blob-file-name": t.value[u].blobFileName,
3012
- "onUpdate:blobFileName": (b) => t.value[u].blobFileName = b,
3013
- "upload-status": t.value[u].status,
3014
- "onUpdate:uploadStatus": (b) => t.value[u].status = b,
3041
+ class: d === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
3042
+ file: t.value[d].file,
3043
+ "onUpdate:file": (f) => t.value[d].file = f,
3044
+ "blob-file-name": t.value[d].blobFileName,
3045
+ "onUpdate:blobFileName": (f) => t.value[d].blobFileName = f,
3046
+ "upload-status": t.value[d].status,
3047
+ "onUpdate:uploadStatus": (f) => t.value[d].status = f,
3015
3048
  ref_for: !0
3016
3049
  }, n, { onDeleted: a }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
3017
3050
  ]))), 256))
3018
3051
  ]),
3019
3052
  _: 1
3020
3053
  }, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
3021
- y(Ma, {
3054
+ v(Ta, {
3022
3055
  "max-file-size": n.maxFileSize
3023
3056
  }, null, 8, ["max-file-size"])
3024
- ])) : F("", !0)
3057
+ ])) : B("", !0)
3025
3058
  ]));
3026
3059
  }
3027
3060
  });
3028
3061
  export {
3029
- il as Bootstrap_PT,
3030
- rl as ForgeActionButton,
3062
+ sl as Bootstrap_PT,
3063
+ il as ForgeActionButton,
3031
3064
  ae as ForgeAlert,
3032
3065
  me as ForgeCheckbox,
3033
- fl as ForgeChips,
3066
+ bl as ForgeChips,
3034
3067
  Et as ForgeDatepicker,
3035
- _l as ForgeFileUploader,
3036
- kl as ForgeFilterHeader,
3037
- vl as ForgeForm,
3038
- bl as ForgeFormField,
3068
+ kl as ForgeFileUploader,
3069
+ xl as ForgeFilterHeader,
3070
+ yl as ForgeForm,
3071
+ vl as ForgeFormField,
3039
3072
  xt as ForgeInlineEditor,
3040
- dl as ForgeLink,
3073
+ rl as ForgeLink,
3041
3074
  pe as ForgeLoader,
3042
- ul as ForgeModal,
3075
+ dl as ForgeModal,
3043
3076
  Ct as ForgeMultiSelect,
3044
- ml as ForgeMultiSelectPreview,
3045
- cl as ForgeNavbar,
3046
- pl as ForgePageHeader,
3077
+ cl as ForgeMultiSelectPreview,
3078
+ ul as ForgeNavbar,
3079
+ ml as ForgePageHeader,
3047
3080
  Yt as ForgeProgressBar,
3048
- yl as ForgeRemainingCharacters,
3049
- gl as ForgeStatWidget,
3050
- hl as ForgeStepper,
3051
- xl as ForgeTable,
3052
- wl as ForgeTile
3081
+ pl as ForgeRemainingCharacters,
3082
+ fl as ForgeStatWidget,
3083
+ gl as ForgeStepper,
3084
+ wl as ForgeTable,
3085
+ hl as ForgeTile
3053
3086
  };