@3squared/forge-ui-3 0.13.1 → 0.15.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.
Files changed (37) hide show
  1. package/dist/esm/forge-ui-3.js +724 -690
  2. package/dist/esm/style.css +2 -2
  3. package/dist/src/components/ForgeActionButton.vue.d.ts +4 -4
  4. package/dist/src/components/ForgeAlert.vue.d.ts +4 -4
  5. package/dist/src/components/ForgeCheckbox.vue.d.ts +4 -4
  6. package/dist/src/components/ForgeChips.vue.d.ts +4 -4
  7. package/dist/src/components/ForgeDatepicker.vue.d.ts +4 -4
  8. package/dist/src/components/ForgeForm.vue.d.ts +4 -4
  9. package/dist/src/components/ForgeFormField.vue.d.ts +14 -4
  10. package/dist/src/components/ForgeInlineEditor.vue.d.ts +4 -4
  11. package/dist/src/components/ForgeLink.vue.d.ts +1 -1
  12. package/dist/src/components/ForgeLoader.vue.d.ts +4 -4
  13. package/dist/src/components/ForgeModal.vue.d.ts +5 -5
  14. package/dist/src/components/ForgeMultiSelect.vue.d.ts +5 -5
  15. package/dist/src/components/ForgeMultiSelectPreview.vue.d.ts +4 -4
  16. package/dist/src/components/ForgeNavbar.vue.d.ts +5 -5
  17. package/dist/src/components/ForgePageHeader.vue.d.ts +1 -1
  18. package/dist/src/components/ForgeProgressBar.vue.d.ts +4 -4
  19. package/dist/src/components/ForgeRemainingCharacters.vue.d.ts +4 -4
  20. package/dist/src/components/ForgeStatWidget.vue.d.ts +4 -4
  21. package/dist/src/components/ForgeStepper.vue.d.ts +5 -5
  22. package/dist/src/components/ForgeTile.vue.d.ts +4 -4
  23. package/dist/src/components/file-uploader/ForgeFileUploader.vue.d.ts +4 -4
  24. package/dist/src/components/file-uploader/components/DragDropArea.vue.d.ts +3 -3
  25. package/dist/src/components/file-uploader/components/FileInfo.vue.d.ts +4 -4
  26. package/dist/src/components/file-uploader/components/MaxFileSize.vue.d.ts +1 -1
  27. package/dist/src/components/file-uploader/components/UploadButton.vue.d.ts +3 -3
  28. package/dist/src/components/file-uploader/components/UploadStatus.vue.d.ts +1 -1
  29. package/dist/src/components/table/ForgeFilterHeader.vue.d.ts +3 -3
  30. package/dist/src/components/table/ForgePaginationHeader.vue.d.ts +5 -5
  31. package/dist/src/components/table/ForgeTable.vue.d.ts +6 -5
  32. package/dist/src/passthroughs/Button.pt.d.ts +64 -8
  33. package/dist/src/passthroughs/Column.pt.d.ts +8 -2
  34. package/dist/src/passthroughs/Dropdown.pt.d.ts +5 -1
  35. package/package.json +7 -7
  36. package/src/styles/components/_file-uploader.scss +2 -1
  37. package/src/styles/components/_multiselect.scss +42 -249
@@ -1,5 +1,5 @@
1
1
  import be from "primevue/message";
2
- import { defineComponent as F, openBlock as i, createBlock as w, normalizeProps as Q, guardReactiveProps as ee, withCtx as g, createElementVNode as c, normalizeClass as B, unref as m, createCommentVNode as S, createVNode as b, renderSlot as $, ref as I, createElementBlock as y, Fragment as L, mergeProps as _, mergeModels as E, useModel as A, computed as x, createTextVNode as O, toDisplayString as h, withDirectives as j, vShow as H, createSlots as te, renderList as Y, onMounted as ne, isRef as se, withKeys as J, useAttrs as fe, withModifiers as q, normalizeStyle as ge, watch as de } from "vue";
2
+ import { defineComponent as F, openBlock as i, createBlock as w, normalizeProps as Q, guardReactiveProps as ee, withCtx as g, createElementVNode as c, normalizeClass as B, unref as m, createCommentVNode as S, createVNode as f, renderSlot as $, ref as I, createElementBlock as v, Fragment as L, mergeProps as _, mergeModels as E, useModel as A, computed as k, createTextVNode as O, toDisplayString as h, withDirectives as j, vShow as H, createSlots as te, renderList as Y, onMounted as ne, isRef as se, withKeys as J, useAttrs as fe, withModifiers as q, normalizeStyle as ge, watch as de } from "vue";
3
3
  import { Icon as V } from "@iconify/vue";
4
4
  import R from "primevue/button";
5
5
  import he from "primevue/toast";
@@ -12,14 +12,14 @@ import { vOnClickOutside as $e } from "@vueuse/components";
12
12
  import Be from "primevue/menubar";
13
13
  import Fe from "vue-multiselect";
14
14
  import _e from "primevue/calendar";
15
- import ae from "primevue/dropdown";
15
+ import le from "primevue/dropdown";
16
16
  import Se from "primevue/inputmask";
17
17
  import Ve from "primevue/textarea";
18
18
  import ue from "primevue/inputnumber";
19
19
  import Ce from "primevue/chips";
20
20
  import Te from "primevue/progressbar";
21
- import Me from "primevue/divider";
22
- import Pe from "primevue/steps";
21
+ import Pe from "primevue/divider";
22
+ import Me from "primevue/steps";
23
23
  import Ie from "primevue/datatable";
24
24
  import ze from "primevue/multiselect";
25
25
  import { BlockBlobClient as ce } from "@azure/storage-blob";
@@ -33,47 +33,54 @@ const De = {
33
33
  {
34
34
  "btn-brand": e.severity === "brand" && !e.outlined && !e.link && !e.text,
35
35
  "btn-outline-brand": e.severity === "brand" && e.outlined,
36
- "text-brand fw-bold btn-text-brand": e.severity === "brand" && e.text
36
+ "text-brand fw-bold btn-text-brand": e.severity === "brand" && e.text,
37
+ "link-brand text-decoration-underline link-underline-brand": e.severity === "brand" && e.link
37
38
  },
38
39
  // Primary
39
40
  {
40
41
  "btn-primary": (e.severity === null || e.severity === "primary") && !e.outlined && !e.link && !e.text,
41
42
  "btn-outline-primary": (e.severity === null || e.severity === "primary") && e.outlined,
42
- "text-primary fw-bold btn-text-primary": (e.severity === null || e.severity === "primary") && e.text
43
+ "text-primary fw-bold btn-text-primary": (e.severity === null || e.severity === "primary") && e.text,
44
+ "link-primary text-decoration-underline link-underline-primary": (e.severity === null || e.severity === "primary") && e.link
43
45
  },
44
46
  // Secondary
45
47
  {
46
48
  "btn-secondary": e.severity === "secondary" && !e.outlined && !e.link && !e.text,
47
49
  "btn-outline-secondary": e.severity === "secondary" && e.outlined,
48
- "text-secondary fw-bold btn-text-secondary": e.severity === "secondary" && e.text
50
+ "text-secondary fw-bold btn-text-secondary": e.severity === "secondary" && e.text,
51
+ "link-secondary text-decoration-underline link-underline-secondary": e.severity === "secondary" && e.link
49
52
  },
50
53
  // Success
51
54
  {
52
55
  "btn-success text-white": e.severity === "success" && !e.outlined && !e.link && !e.text,
53
56
  "btn-outline-success": e.severity === "success" && e.outlined,
54
- "text-success fw-bold btn-text-success": e.severity === "success" && e.text
57
+ "text-success fw-bold btn-text-success": e.severity === "success" && e.text,
58
+ "link-success text-decoration-underline link-underline-success": e.severity === "success" && e.link
55
59
  },
56
60
  // Warning
57
61
  {
58
62
  "btn-warning text-white": e.severity === "warning" && !e.outlined && !e.link && !e.text,
59
63
  "btn-outline-warning": e.severity === "warning" && e.outlined,
60
- "text-warning fw-bold btn-text-warning": e.severity === "warning" && e.text
64
+ "text-warning fw-bold btn-text-warning": e.severity === "warning" && e.text,
65
+ "link-warning text-decoration-underline link-underline-warning": e.severity === "warning" && e.link
61
66
  },
62
67
  // Danger
63
68
  {
64
69
  "btn-danger text-white": e.severity === "danger" && !e.outlined && !e.link && !e.text,
65
70
  "btn-outline-danger": e.severity === "danger" && e.outlined,
66
- "text-danger fw-bold btn-text-danger": e.severity === "danger" && e.text
71
+ "text-danger fw-bold btn-text-danger": e.severity === "danger" && e.text,
72
+ "link-danger text-decoration-underline link-underline-danger": e.severity === "danger" && e.link
67
73
  },
68
74
  // Info
69
75
  {
70
76
  "btn-info text-white": e.severity === "info" && !e.outlined && !e.link && !e.text,
71
77
  "btn-outline-info": e.severity === "info" && e.outlined,
72
- "text-info fw-bold btn-text-info": e.severity === "info" && e.text
78
+ "text-info fw-bold btn-text-info": e.severity === "info" && e.text,
79
+ "link-info text-decoration-underline link-underline-info": e.severity === "info" && e.link
73
80
  },
74
81
  // Misc
75
82
  {
76
- "btn-link": e.link,
83
+ "p-0 border-0": e.link,
77
84
  shadow: e.raised,
78
85
  "rounded-pill": e.rounded,
79
86
  "btn-lg": e.size == "large",
@@ -185,19 +192,26 @@ const De = {
185
192
  clearicon: "ms-auto my-auto",
186
193
  loadingIcon: "spinner-border spinner-border-sm border-0",
187
194
  itemGroupLabel: "ps-2 fw-bold",
188
- input: "w-100"
195
+ input: ({ instance: e }) => ({
196
+ class: [
197
+ "w-100",
198
+ {
199
+ "filter-placeholder": e.modelValue === void 0
200
+ }
201
+ ]
202
+ })
189
203
  }
190
204
  }, Ne = {
191
205
  column: {
192
206
  sortBadge: "ms-2 my-auto cursor-pointer",
193
207
  headerCell: (e) => {
194
- var t, a, o, l;
208
+ var t, l, o, a;
195
209
  return {
196
210
  class: [
197
211
  {
198
212
  "cursor-move": e.props.reorderableColumns,
199
- "position-sticky": ((t = e.column) == null ? void 0 : t.context.frozen) !== void 0 || ((a = e.column) == null ? void 0 : a.context.frozen) || ((o = e.column) == null ? void 0 : o.context.frozen) === "",
200
- "overflow-hidden position-relative bg-clip-padding": (l = e.column) == null ? void 0 : l.context.resizable
213
+ "position-sticky": ((t = e.column) == null ? void 0 : t.context.frozen) !== void 0 || ((l = e.column) == null ? void 0 : l.context.frozen) || ((o = e.column) == null ? void 0 : o.context.frozen) === "",
214
+ "overflow-hidden position-relative bg-clip-padding": (a = e.column) == null ? void 0 : a.context.resizable
201
215
  }
202
216
  ]
203
217
  };
@@ -229,9 +243,12 @@ const De = {
229
243
  }
230
244
  ]
231
245
  }),
232
- headerFilterClearButton: () => ({
246
+ headerFilterClearButton: ({ props: e }) => (console.log(), {
233
247
  class: [
234
- "btn"
248
+ "btn",
249
+ {
250
+ "d-none": e.filters[e.field].value === null
251
+ }
235
252
  ]
236
253
  }),
237
254
  filterOverlay: {
@@ -286,13 +303,13 @@ const De = {
286
303
  }, Ee = {
287
304
  inputtext: {
288
305
  root: (e) => {
289
- var t, a;
306
+ var t, l;
290
307
  return {
291
308
  class: [
292
309
  "form-control",
293
310
  {
294
311
  "form-control-lg": ((t = e.props.size) == null ? void 0 : t.toLowerCase()) == "large",
295
- "form-control-sm": ((a = e.props.size) == null ? void 0 : a.toLowerCase()) == "small"
312
+ "form-control-sm": ((l = e.props.size) == null ? void 0 : l.toLowerCase()) == "small"
296
313
  }
297
314
  ]
298
315
  };
@@ -723,7 +740,7 @@ const De = {
723
740
  ]
724
741
  })
725
742
  }
726
- }, at = {
743
+ }, lt = {
727
744
  tooltip: {
728
745
  root: ({ context: e }) => ({
729
746
  class: [
@@ -745,7 +762,7 @@ const De = {
745
762
  class: ["tooltip-inner"]
746
763
  }
747
764
  }
748
- }, lt = {
765
+ }, at = {
749
766
  selectbutton: {
750
767
  root: () => ({
751
768
  class: ["btn-group"]
@@ -805,7 +822,7 @@ const De = {
805
822
  button: "preview-button",
806
823
  mask: "position-fixed top-0 start-0 w-100 h-100 d-flex align-items-center justify-content-center mask",
807
824
  preview: "preview",
808
- toolbar: "position-absolute top-0 end-0 d-flex p-3",
825
+ toolbar: "position-absolute top-0 end-0 d-flex p-3 z-3",
809
826
  rotaterightbutton: "btn text-white",
810
827
  rotateleftbutton: "btn text-white",
811
828
  zoomoutbutton: "btn text-white",
@@ -836,21 +853,21 @@ const De = {
836
853
  class: ["ps-1"]
837
854
  }),
838
855
  icon: ({ props: e }) => {
839
- var t, a, o, l;
856
+ var t, l, o, a;
840
857
  return {
841
858
  class: [
842
859
  "toast-icon",
843
860
  {
844
861
  "text-primary": ((t = e.message) == null ? void 0 : t.severity) === "info",
845
- "text-success": ((a = e.message) == null ? void 0 : a.severity) === "success",
862
+ "text-success": ((l = e.message) == null ? void 0 : l.severity) === "success",
846
863
  "text-danger": ((o = e.message) == null ? void 0 : o.severity) === "error",
847
- "text-warning": ((l = e.message) == null ? void 0 : l.severity) === "warn"
864
+ "text-warning": ((a = e.message) == null ? void 0 : a.severity) === "warn"
848
865
  }
849
866
  ]
850
867
  };
851
868
  }
852
869
  }
853
- }, ml = {
870
+ }, ca = {
854
871
  ...et,
855
872
  ...De,
856
873
  ...nt,
@@ -871,16 +888,16 @@ const De = {
871
888
  ...Ye,
872
889
  ...Xe,
873
890
  ...ot,
874
- ...lt,
891
+ ...at,
875
892
  ...Ke,
876
893
  ...Qe,
877
894
  ...We,
878
895
  ...rt,
879
896
  ...je,
880
897
  directives: {
881
- ...at
898
+ ...lt
882
899
  }
883
- }, le = /* @__PURE__ */ F({
900
+ }, ae = /* @__PURE__ */ F({
884
901
  __name: "ForgeAlert",
885
902
  props: {
886
903
  severity: { default: "primary" },
@@ -896,9 +913,9 @@ const De = {
896
913
  },
897
914
  setup(e) {
898
915
  const t = e;
899
- return (a, o) => {
900
- const l = be;
901
- return i(), w(l, Q(ee({ ...a.$attrs, ...t })), {
916
+ return (l, o) => {
917
+ const a = be;
918
+ return i(), w(a, Q(ee({ ...l.$attrs, ...t })), {
902
919
  messageicon: g(() => [
903
920
  c("div", {
904
921
  class: B(t.icon ? "me-2 pe-1" : "")
@@ -913,16 +930,16 @@ const De = {
913
930
  ], 2)
914
931
  ]),
915
932
  closeicon: g(() => [
916
- b(m(V), { icon: "bi:x" })
933
+ f(m(V), { icon: "bi:x" })
917
934
  ]),
918
935
  default: g(() => [
919
- $(a.$slots, "default")
936
+ $(l.$slots, "default")
920
937
  ]),
921
938
  _: 3
922
939
  }, 16);
923
940
  };
924
941
  }
925
- }), pl = /* @__PURE__ */ F({
942
+ }), ma = /* @__PURE__ */ F({
926
943
  __name: "ForgeActionButton",
927
944
  props: {
928
945
  action: {},
@@ -931,24 +948,24 @@ const De = {
931
948
  params: { default: Array }
932
949
  },
933
950
  setup(e) {
934
- const t = I(!1), a = e, o = async () => {
951
+ const t = I(!1), l = e, o = async () => {
935
952
  t.value = !0;
936
953
  try {
937
- await a.action.apply(this, a.params);
938
- } catch (l) {
939
- await a.errorAction.apply(this, a.errorParams ? [...a.errorParams, l] : [l]);
954
+ await l.action.apply(this, l.params);
955
+ } catch (a) {
956
+ await l.errorAction.apply(this, l.errorParams ? [...l.errorParams, a] : [a]);
940
957
  }
941
958
  t.value = !1;
942
959
  };
943
- return (l, n) => {
944
- const u = R;
945
- return i(), y(L, null, [
946
- b(u, _({ ...a, ...l.$attrs }, {
960
+ return (a, n) => {
961
+ const d = R;
962
+ return i(), v(L, null, [
963
+ f(d, _({ ...l, ...a.$attrs }, {
947
964
  loading: t.value,
948
- disabled: t.value || a.disabled,
965
+ disabled: t.value || l.disabled,
949
966
  onClick: o
950
967
  }), null, 16, ["loading", "disabled"]),
951
- b(m(he))
968
+ f(m(he))
952
969
  ], 64);
953
970
  };
954
971
  }
@@ -982,33 +999,33 @@ const De = {
982
999
  }),
983
1000
  emits: ["update:modelValue"],
984
1001
  setup(e) {
985
- const t = e, a = A(e, "modelValue"), {
1002
+ const t = e, l = A(e, "modelValue"), {
986
1003
  handleChange: o,
987
- errors: l,
1004
+ errors: a,
988
1005
  errorMessage: n
989
1006
  } = K(() => t.name ?? "", void 0, {
990
1007
  type: "checkbox",
991
- checkedValue: a.value
992
- }), u = x(() => l.value.length > 0);
993
- return (r, d) => {
1008
+ checkedValue: l.value
1009
+ }), d = k(() => a.value.length > 0);
1010
+ return (r, u) => {
994
1011
  const p = we;
995
- return i(), y("div", dt, [
1012
+ return i(), v("div", dt, [
996
1013
  c("div", _({
997
1014
  class: "d-flex cursor-pointer",
998
1015
  "data-cy": "checkbox-container",
999
- onClick: d[2] || (d[2] = (v) => m(o)(a.value))
1016
+ onClick: u[2] || (u[2] = (y) => m(o)(l.value))
1000
1017
  }, { ...r.$attrs }), [
1001
- b(p, _({ ...t }, {
1018
+ f(p, _({ ...t }, {
1002
1019
  binary: "",
1003
- modelValue: a.value,
1004
- "onUpdate:modelValue": d[0] || (d[0] = (v) => a.value = v),
1020
+ modelValue: l.value,
1021
+ "onUpdate:modelValue": u[0] || (u[0] = (y) => l.value = y),
1005
1022
  "input-id": t.name,
1006
- "input-class": { "is-invalid": u.value }
1023
+ "input-class": { "is-invalid": d.value }
1007
1024
  }), null, 16, ["modelValue", "input-id", "input-class"]),
1008
1025
  c("label", {
1009
1026
  for: t.name,
1010
- onClick: d[1] || (d[1] = (v) => m(o)(a.value)),
1011
- class: B([`${t.disabled ? "opacity-50" : "cursor-pointer"} ${u.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
1027
+ onClick: u[1] || (u[1] = (y) => m(o)(l.value)),
1028
+ class: B([`${t.disabled ? "opacity-50" : "cursor-pointer"} ${d.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
1012
1029
  }, [
1013
1030
  $(r.$slots, "default", {}, () => [
1014
1031
  O(h(t.label), 1)
@@ -1019,7 +1036,7 @@ const De = {
1019
1036
  "data-cy": "error",
1020
1037
  class: "text-invalid"
1021
1038
  }, h(m(n)), 513), [
1022
- [H, u.value]
1039
+ [H, d.value]
1023
1040
  ])
1024
1041
  ]);
1025
1042
  };
@@ -1031,17 +1048,17 @@ const De = {
1031
1048
  },
1032
1049
  setup(e) {
1033
1050
  const t = e;
1034
- return (a, o) => {
1035
- const l = xe;
1036
- return i(), y("div", mt, [
1037
- b(l, {
1051
+ return (l, o) => {
1052
+ const a = xe;
1053
+ return i(), v("div", mt, [
1054
+ f(a, {
1038
1055
  "animation-duration": ".75",
1039
1056
  class: B(`text-${t.severity === void 0 ? "primary" : t.severity}`)
1040
1057
  }, null, 8, ["class"])
1041
1058
  ]);
1042
1059
  };
1043
1060
  }
1044
- }), pt = ["href", "target"], vl = /* @__PURE__ */ F({
1061
+ }), pt = ["href", "target"], pa = /* @__PURE__ */ F({
1045
1062
  __name: "ForgeLink",
1046
1063
  props: {
1047
1064
  url: {},
@@ -1059,7 +1076,7 @@ const De = {
1059
1076
  iconName: {}
1060
1077
  },
1061
1078
  setup(e) {
1062
- const t = x(() => ({
1079
+ const t = k(() => ({
1063
1080
  [`link-${e.severity}`]: e.severity,
1064
1081
  [`link-underline-${e.underlineSeverity}`]: e.underlineSeverity,
1065
1082
  [`link-opacity-${e.opacity}`]: e.opacity,
@@ -1068,14 +1085,14 @@ const De = {
1068
1085
  [`link-underline-opacity-${e.underlineHoverOpacity ?? e.hoverOpacity}-hover`]: e.underlineHoverOpacity || e.hoverOpacity,
1069
1086
  [`link-offset-${e.underlineOffset}`]: e.underlineOffset,
1070
1087
  "icon-link icon-link-hover": e.animateIconOnHover
1071
- })), a = x(() => ({
1088
+ })), l = k(() => ({
1072
1089
  "order-2": e.positionIconEnd,
1073
1090
  "me-1": !e.positionIconEnd && !e.animateIconOnHover,
1074
1091
  "ms-1": e.positionIconEnd && !e.animateIconOnHover,
1075
1092
  "ms-0": e.positionIconEnd && e.animateIconOnHover,
1076
1093
  "me-0": e.animateIconOnHover
1077
1094
  }));
1078
- return (o, l) => (i(), y("a", {
1095
+ return (o, a) => (i(), v("a", {
1079
1096
  id: "link",
1080
1097
  class: B(["cursor-pointer d-flex", t.value]),
1081
1098
  href: o.url,
@@ -1086,34 +1103,34 @@ const De = {
1086
1103
  key: 0,
1087
1104
  id: "link-icon",
1088
1105
  icon: o.iconName,
1089
- class: B(["bi my-auto", a.value])
1106
+ class: B(["bi my-auto", l.value])
1090
1107
  }, null, 8, ["icon", "class"])) : S("", !0),
1091
1108
  O(" " + h(o.label), 1)
1092
1109
  ])
1093
1110
  ], 10, pt));
1094
1111
  }
1095
1112
  });
1096
- function vt(e) {
1113
+ function yt(e) {
1097
1114
  const t = {
1098
1115
  errorMessage: "",
1099
1116
  errorDetails: []
1100
1117
  };
1101
1118
  if (e.exception && (t.errorMessage = e.exception), e.message && (Array.isArray(e.message) ? t.errorDetails = e.message : t.errorMessage = e.message), e.response) {
1102
- const a = JSON.parse(e.response);
1103
- a.errors && (t.errorDetails = Object.values(a.errors).flat()), a.message && (t.errorDetails = a.message);
1119
+ const l = JSON.parse(e.response);
1120
+ l.errors && (t.errorDetails = Object.values(l.errors).flat()), l.message && (t.errorDetails = l.message);
1104
1121
  }
1105
1122
  return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
1106
1123
  }
1107
- function yl(e, t) {
1108
- return e.map((a) => ({ id: a, label: t ? t(a) : `${a}` }));
1124
+ function ya(e, t) {
1125
+ return e.map((l) => ({ id: l, label: t ? t(l) : `${l}` }));
1109
1126
  }
1110
- function bl(e, t, a) {
1111
- return { id: e, label: t ?? e.toString(), shortLabel: a };
1127
+ function va(e, t, l) {
1128
+ return { id: e, label: t ?? e.toString(), shortLabel: l };
1112
1129
  }
1113
- const yt = { key: 0 }, bt = {
1130
+ const vt = { key: 0 }, bt = {
1114
1131
  class: "d-flex w-100",
1115
1132
  "data-cy": "footer"
1116
- }, fl = /* @__PURE__ */ F({
1133
+ }, ba = /* @__PURE__ */ F({
1117
1134
  __name: "ForgeModal",
1118
1135
  props: /* @__PURE__ */ E({
1119
1136
  cancelText: { default: "Cancel" },
@@ -1159,34 +1176,34 @@ const yt = { key: 0 }, bt = {
1159
1176
  }),
1160
1177
  emits: ["update:visible"],
1161
1178
  setup(e) {
1162
- const t = A(e, "visible"), a = I(!1), o = e, l = I(!1), n = I({
1179
+ const t = A(e, "visible"), l = I(!1), o = e, a = I(!1), n = I({
1163
1180
  hasError: !1,
1164
1181
  header: "",
1165
1182
  message: []
1166
- }), u = () => {
1167
- a.value = !1;
1183
+ }), d = () => {
1184
+ l.value = !1;
1168
1185
  }, r = () => {
1169
- a.value = !0;
1170
- }, d = () => {
1186
+ l.value = !0;
1187
+ }, u = () => {
1171
1188
  t.value = !1;
1172
1189
  }, p = async () => {
1173
1190
  if (o.onConfirm) {
1174
- l.value = !0, n.value.hasError = !1;
1191
+ a.value = !0, n.value.hasError = !1;
1175
1192
  try {
1176
1193
  const s = await o.onConfirm();
1177
- (s || s == null) && d();
1194
+ (s || s == null) && u();
1178
1195
  } catch (s) {
1179
1196
  n.value.hasError = !0;
1180
- const T = vt(s);
1197
+ const T = yt(s);
1181
1198
  n.value.header = T.errorMessage, n.value.message = T.errorDetails;
1182
1199
  }
1183
- l.value = !1;
1200
+ a.value = !1;
1184
1201
  }
1185
- }, v = x(() => ({
1202
+ }, y = k(() => ({
1186
1203
  root: [
1187
1204
  "modal modal-dialog modal-content h-auto m-0",
1188
1205
  {
1189
- "mw-100 vh-100 vw-100 top-0 start-0": a.value,
1206
+ "mw-100 vh-100 vw-100 top-0 start-0": l.value,
1190
1207
  "modal-sm": o.size === "sm",
1191
1208
  "modal-lg": o.size === "lg",
1192
1209
  "modal-xl": o.size === "xl"
@@ -1194,35 +1211,35 @@ const yt = { key: 0 }, bt = {
1194
1211
  ]
1195
1212
  }));
1196
1213
  return (s, T) => {
1197
- const C = R, M = ke;
1198
- return i(), w(M, _(o, {
1214
+ const C = R, P = ke;
1215
+ return i(), w(P, _(o, {
1199
1216
  onMaximize: r,
1200
- onUnmaximize: u,
1201
- pt: v.value
1217
+ onUnmaximize: d,
1218
+ pt: y.value
1202
1219
  }), te({
1203
1220
  closeicon: g(() => [
1204
- b(m(V), {
1221
+ f(m(V), {
1205
1222
  "data-cy": "close-icon",
1206
1223
  icon: "bi:x-lg",
1207
1224
  width: "18",
1208
1225
  height: "18",
1209
- onClick: d
1226
+ onClick: u
1210
1227
  })
1211
1228
  ]),
1212
1229
  maximizeicon: g(() => [
1213
- b(m(V), {
1230
+ f(m(V), {
1214
1231
  "data-cy": "maximisable-icon",
1215
- icon: a.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
1232
+ icon: l.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
1216
1233
  width: "16",
1217
1234
  height: "16"
1218
1235
  }, null, 8, ["icon"])
1219
1236
  ]),
1220
1237
  _: 2
1221
1238
  }, [
1222
- Y(s.$slots, (P, z) => ({
1239
+ Y(s.$slots, (M, z) => ({
1223
1240
  name: z,
1224
- fn: g((f) => [
1225
- n.value.hasError ? (i(), w(le, {
1241
+ fn: g((b) => [
1242
+ n.value.hasError ? (i(), w(ae, {
1226
1243
  key: 0,
1227
1244
  severity: "danger",
1228
1245
  "data-cy": "error"
@@ -1231,15 +1248,15 @@ const yt = { key: 0 }, bt = {
1231
1248
  c("p", {
1232
1249
  class: B(n.value.message.length > 0 ? "my-auto" : "mb-0")
1233
1250
  }, h(n.value.header), 3),
1234
- n.value.message.length > 0 ? (i(), y("ul", yt, [
1235
- (i(!0), y(L, null, Y(n.value.message, (k) => (i(), y("li", { key: k }, h(k), 1))), 128))
1251
+ n.value.message.length > 0 ? (i(), v("ul", vt, [
1252
+ (i(!0), v(L, null, Y(n.value.message, (x) => (i(), v("li", { key: x }, h(x), 1))), 128))
1236
1253
  ])) : S("", !0)
1237
1254
  ]),
1238
1255
  _: 1
1239
1256
  })) : S("", !0),
1240
- $(s.$slots, z, Q(ee(f || {}))),
1241
- l.value ? $(s.$slots, "loader", { key: 1 }, () => [
1242
- b(me, { "data-cy": "loader" })
1257
+ $(s.$slots, z, Q(ee(b || {}))),
1258
+ a.value ? $(s.$slots, "loader", { key: 1 }, () => [
1259
+ f(me, { "data-cy": "loader" })
1243
1260
  ]) : S("", !0)
1244
1261
  ])
1245
1262
  })),
@@ -1247,15 +1264,15 @@ const yt = { key: 0 }, bt = {
1247
1264
  name: "footer",
1248
1265
  fn: g(() => [
1249
1266
  c("div", bt, [
1250
- b(C, {
1267
+ f(C, {
1251
1268
  label: s.cancelText,
1252
1269
  class: B(o.cancelClass),
1253
1270
  outlined: "",
1254
- onClick: d,
1271
+ onClick: u,
1255
1272
  id: "cancel-button",
1256
1273
  type: o.cancelButtonType
1257
1274
  }, null, 8, ["label", "class", "type"]),
1258
- b(C, {
1275
+ f(C, {
1259
1276
  label: s.submitText,
1260
1277
  class: B([o.submitClass, "ms-auto"]),
1261
1278
  onClick: p,
@@ -1284,13 +1301,13 @@ const yt = { key: 0 }, bt = {
1284
1301
  }),
1285
1302
  emits: ["update:modelValue"],
1286
1303
  setup(e) {
1287
- const t = e, a = A(e, "modelValue"), o = I(!1), l = I(), n = () => {
1304
+ const t = e, l = A(e, "modelValue"), o = I(!1), a = I(), n = () => {
1288
1305
  var C;
1289
- o.value = !o.value, (C = l.value) == null || C.focus();
1290
- }, u = async () => {
1306
+ o.value = !o.value, (C = a.value) == null || C.focus();
1307
+ }, d = async () => {
1291
1308
  if (T.value)
1292
1309
  return !1;
1293
- if (a.value = s.value, t.completeAction)
1310
+ if (l.value = s.value, t.completeAction)
1294
1311
  try {
1295
1312
  await t.completeAction.apply(this, t.params), o.value = !o.value;
1296
1313
  } catch {
@@ -1300,58 +1317,58 @@ const yt = { key: 0 }, bt = {
1300
1317
  o.value = !o.value;
1301
1318
  }, r = () => {
1302
1319
  o.value = !o.value;
1303
- }, d = () => {
1320
+ }, u = () => {
1304
1321
  s.value = null;
1305
- }, { errorMessage: p, errors: v, value: s } = K(() => t.name, void 0, {
1306
- initialValue: a.value
1322
+ }, { errorMessage: p, errors: y, value: s } = K(() => t.name, void 0, {
1323
+ initialValue: l.value
1307
1324
  });
1308
1325
  ne(() => {
1309
- s.value = a.value;
1326
+ s.value = l.value;
1310
1327
  });
1311
- const T = x(() => v.value.length > 0);
1312
- return (C, M) => {
1313
- const P = ie, z = R;
1314
- return i(), y("div", {
1328
+ const T = k(() => y.value.length > 0);
1329
+ return (C, P) => {
1330
+ const M = ie, z = R;
1331
+ return i(), v("div", {
1315
1332
  id: t.name
1316
1333
  }, [
1317
- C.readonly ? (i(), y("div", xt, [
1334
+ C.readonly ? (i(), v("div", xt, [
1318
1335
  $(C.$slots, "default", {}, () => [
1319
1336
  c("span", kt, h(m(s)), 1)
1320
1337
  ])
1321
- ])) : (i(), y("div", gt, [
1322
- o.value ? (i(), y("div", ht, [
1323
- j((i(), y("div", wt, [
1338
+ ])) : (i(), v("div", gt, [
1339
+ o.value ? (i(), v("div", ht, [
1340
+ j((i(), v("div", wt, [
1324
1341
  $(C.$slots, "editor", {
1325
1342
  class: B({ "is-invalid": T.value }),
1326
- editFinished: u,
1343
+ editFinished: d,
1327
1344
  cancel: r,
1328
1345
  val: m(s)
1329
1346
  }, () => [
1330
- b(P, {
1347
+ f(M, {
1331
1348
  "data-cy": "input",
1332
1349
  ref_key: "input",
1333
- ref: l,
1350
+ ref: a,
1334
1351
  modelValue: m(s),
1335
- "onUpdate:modelValue": M[0] || (M[0] = (f) => se(s) ? s.value = f : null),
1352
+ "onUpdate:modelValue": P[0] || (P[0] = (b) => se(s) ? s.value = b : null),
1336
1353
  modelModifiers: { trim: !0 },
1337
1354
  class: B({ "is-invalid": T.value }),
1338
1355
  onKeydown: [
1339
- J(u, ["enter"]),
1356
+ J(d, ["enter"]),
1340
1357
  J(r, ["esc"])
1341
1358
  ]
1342
1359
  }, null, 8, ["modelValue", "class"])
1343
1360
  ]),
1344
- b(m(V), {
1361
+ f(m(V), {
1345
1362
  icon: "bi:x-circle",
1346
1363
  class: "mx-2 cursor-pointer",
1347
- onClick: d,
1348
- onKeydown: J(d, ["enter"]),
1364
+ onClick: u,
1365
+ onKeydown: J(u, ["enter"]),
1349
1366
  "data-cy": "clear-icon"
1350
1367
  })
1351
1368
  ])), [
1352
- [m($e), u]
1369
+ [m($e), d]
1353
1370
  ])
1354
- ])) : (i(), y("div", {
1371
+ ])) : (i(), v("div", {
1355
1372
  key: 1,
1356
1373
  class: "d-flex text-muted",
1357
1374
  onClick: n,
@@ -1363,12 +1380,12 @@ const yt = { key: 0 }, bt = {
1363
1380
  "data-cy": "value"
1364
1381
  }, h(m(s) ? m(s) : "Click to edit"), 3)
1365
1382
  ]),
1366
- b(z, {
1383
+ f(z, {
1367
1384
  link: "",
1368
1385
  class: "p-0 m-0"
1369
1386
  }, {
1370
1387
  default: g(() => [
1371
- b(m(V), {
1388
+ f(m(V), {
1372
1389
  icon: "bi:pencil",
1373
1390
  class: B(T.value ? "text-invalid" : "text-muted"),
1374
1391
  "data-cy": "edit-icon",
@@ -1388,7 +1405,7 @@ const yt = { key: 0 }, bt = {
1388
1405
  ], 8, ft);
1389
1406
  };
1390
1407
  }
1391
- }), Bt = ["href"], gl = /* @__PURE__ */ F({
1408
+ }), Bt = ["href"], fa = /* @__PURE__ */ F({
1392
1409
  __name: "ForgeNavbar",
1393
1410
  props: {
1394
1411
  severity: { default: "light" },
@@ -1405,7 +1422,7 @@ const yt = { key: 0 }, bt = {
1405
1422
  unstyled: { type: Boolean }
1406
1423
  },
1407
1424
  setup(e) {
1408
- const t = e, a = x(() => ({
1425
+ const t = e, l = k(() => ({
1409
1426
  root: () => ({
1410
1427
  class: [
1411
1428
  "navbar container-fluid navbar-expand-lg",
@@ -1432,10 +1449,10 @@ const yt = { key: 0 }, bt = {
1432
1449
  ]
1433
1450
  })
1434
1451
  }));
1435
- return (o, l) => {
1452
+ return (o, a) => {
1436
1453
  const n = Be;
1437
1454
  return i(), w(n, _({ ...t, ...o.$attrs }, {
1438
- pt: a.value,
1455
+ pt: l.value,
1439
1456
  "data-cy": "navbar"
1440
1457
  }), te({
1441
1458
  start: g(() => [
@@ -1445,13 +1462,13 @@ const yt = { key: 0 }, bt = {
1445
1462
  "data-cy": "logo"
1446
1463
  }, [
1447
1464
  $(o.$slots, "logo", {}, () => [
1448
- O(" Logo ")
1465
+ a[0] || (a[0] = O(" Logo "))
1449
1466
  ])
1450
1467
  ], 8, Bt)
1451
1468
  ]),
1452
1469
  menubuttonicon: g(() => [
1453
1470
  $(o.$slots, "menubuttonicon", {}, () => [
1454
- b(m(V), {
1471
+ f(m(V), {
1455
1472
  icon: "bi:list",
1456
1473
  class: B(t.severity === "light" ? "text-black" : "text-white"),
1457
1474
  height: "24",
@@ -1461,16 +1478,16 @@ const yt = { key: 0 }, bt = {
1461
1478
  ]),
1462
1479
  _: 2
1463
1480
  }, [
1464
- Y(o.$slots, (u, r) => ({
1481
+ Y(o.$slots, (d, r) => ({
1465
1482
  name: r,
1466
- fn: g((d) => [
1467
- $(o.$slots, r, Q(ee(d)))
1483
+ fn: g((u) => [
1484
+ $(o.$slots, r, Q(ee(u)))
1468
1485
  ])
1469
1486
  }))
1470
1487
  ]), 1040, ["pt"]);
1471
1488
  };
1472
1489
  }
1473
- }), Ft = ["checked"], _t = /* @__PURE__ */ c("div", { class: "my-auto ms-1" }, "Toggle all", -1), St = ["data-cy"], Vt = ["checked"], Ct = { class: "my-auto ms-1" }, Tt = { class: "multiselect__tag d-inline-flex" }, Mt = { class: "my-auto" }, pe = /* @__PURE__ */ F({
1490
+ }), Ft = { class: "multiselect__caret" }, _t = ["checked"], St = ["data-cy"], Vt = ["checked"], Ct = { class: "my-auto ms-1" }, Tt = { class: "multiselect__tag d-inline-flex" }, Pt = { class: "my-auto" }, pe = /* @__PURE__ */ F({
1474
1491
  __name: "ForgeMultiSelect",
1475
1492
  props: {
1476
1493
  severity: { default: "primary" },
@@ -1482,37 +1499,37 @@ const yt = { key: 0 }, bt = {
1482
1499
  },
1483
1500
  emits: ["update:modelValue"],
1484
1501
  setup(e, { emit: t }) {
1485
- const a = e, o = (N, D) => {
1502
+ const l = e, o = (N, D) => {
1486
1503
  const U = {
1487
1504
  ...D,
1488
1505
  $isDisabled: D.$isDisabled ?? !1
1489
1506
  };
1490
1507
  N(U);
1491
- }, l = fe(), n = t, { errors: u, value: r, errorMessage: d } = K(() => a.name, void 0, {
1492
- initialValue: l.modelValue
1493
- }), p = I(!1), v = x(() => ({
1508
+ }, a = fe(), n = t, { errors: d, value: r, errorMessage: u } = K(() => l.name, void 0, {
1509
+ initialValue: a.modelValue
1510
+ }), p = I(!1), y = k(() => ({
1494
1511
  multiple: !0,
1495
1512
  label: "label",
1496
1513
  trackBy: "id",
1497
1514
  showPointer: !p.value,
1498
- placeholder: l.searchable === null || l.searchable ? "Search" : "Select",
1515
+ placeholder: a.searchable === null || a.searchable ? "Search" : "Select",
1499
1516
  allowEmpty: !0,
1500
1517
  selectValue: "",
1501
- closeOnSelect: !!(l.multiple === null || l.multiple),
1502
- clearOnSelect: !!(l.multiple === null || l.multiple),
1503
- searchable: !!(l.searchable === null || l.searchable) && l.modelValue.length === l.options.length,
1518
+ closeOnSelect: !!(a.multiple === null || a.multiple),
1519
+ clearOnSelect: !!(a.multiple === null || a.multiple),
1520
+ searchable: !!(a.searchable === null || a.searchable) && a.modelValue.length === a.options.length,
1504
1521
  async: !1,
1505
- ...l
1506
- })), s = x(() => `forge-multiselect-${a.severity}`), T = x(() => `multiselect__option ${p.value ? " multiselect__option--highlight" : ""} ${C.value ? " multiselect__option--selected" : ""}`), C = x(() => v.value && !(v.value.multiple || !a.showSelectAll || v.value.async) ? !1 : l.modelValue.length === l.options.length), M = x(() => u.value.length > 0), P = x(() => !!((l.allowEmpty == null || l.allowEmpty) && a.showClearSelection && (v.value.multiple ? l.modelValue.length > 0 : l.modelValue))), z = () => p.value = !0, f = () => p.value = !1, k = () => {
1507
- r.value = v.value.multiple ? [] : null, n("update:modelValue", r.value);
1522
+ ...a
1523
+ })), s = k(() => `forge-multiselect-${l.severity}`), T = k(() => `multiselect__option ${p.value ? " multiselect__option--highlight" : ""} ${C.value ? " multiselect__option--selected" : ""}`), C = k(() => y.value && !(y.value.multiple || !l.showSelectAll || y.value.async) ? !1 : a.modelValue.length === a.options.length), P = k(() => d.value.length > 0), M = k(() => !!((a.allowEmpty == null || a.allowEmpty) && l.showClearSelection && (y.value.multiple ? a.modelValue.length > 0 : a.modelValue))), z = () => p.value = !0, b = () => p.value = !1, x = () => {
1524
+ r.value = y.value.multiple ? [] : null, n("update:modelValue", r.value);
1508
1525
  }, G = (N) => {
1509
- n("update:modelValue", a.selectValue ? N.map((D) => D[a.selectValue]) : N);
1510
- }, Z = (N) => l.modelValue !== null ? l.modelValue.some((D) => v.value.selectValue ? N[a.selectValue] === D : N.id === D.id && N.label === D.label) : !1, oe = () => {
1511
- C.value ? k() : (r.value = [...l.options], n("update:modelValue", [...l.options]));
1526
+ n("update:modelValue", l.selectValue ? N.map((D) => D[l.selectValue]) : N);
1527
+ }, Z = (N) => a.modelValue !== null ? a.modelValue.some((D) => y.value.selectValue ? N[l.selectValue] === D : N.id === D.id && N.label === D.label) : !1, oe = () => {
1528
+ C.value ? x() : (r.value = [...a.options], n("update:modelValue", [...a.options]));
1512
1529
  };
1513
- return (N, D) => (i(), y(L, null, [
1514
- b(m(Fe), _(v.value, {
1515
- class: [s.value, M.value ? "is-invalid" : ""],
1530
+ return (N, D) => (i(), v(L, null, [
1531
+ f(m(Fe), _(y.value, {
1532
+ class: [s.value, P.value ? "is-invalid" : ""],
1516
1533
  "data-cy": "multiselect",
1517
1534
  "onUpdate:modelValue": [
1518
1535
  G,
@@ -1521,46 +1538,48 @@ const yt = { key: 0 }, bt = {
1521
1538
  modelValue: m(r)
1522
1539
  }), te({
1523
1540
  caret: g(({ toggle: U }) => [
1524
- P.value ? (i(), w(m(V), {
1525
- key: 0,
1526
- icon: "bi:x",
1527
- class: "my-auto multiselect__clear-icon",
1528
- onMousedown: D[0] || (D[0] = q((W) => k(), ["prevent", "stop"])),
1529
- "data-cy": "clear",
1530
- height: "18px",
1531
- width: "18px"
1532
- })) : S("", !0),
1533
- b(m(V), {
1534
- icon: "bi:chevron-down",
1535
- onClick: U,
1536
- class: "multiselect__select"
1537
- }, null, 8, ["onClick"])
1541
+ c("div", Ft, [
1542
+ M.value ? (i(), w(m(V), {
1543
+ key: 0,
1544
+ icon: "bi:x",
1545
+ class: "my-auto text-black multiselect__clear",
1546
+ onMousedown: D[0] || (D[0] = q((W) => x(), ["prevent", "stop"])),
1547
+ "data-cy": "clear",
1548
+ height: "18px",
1549
+ width: "18px"
1550
+ })) : S("", !0),
1551
+ f(m(V), {
1552
+ icon: "bi:chevron-down",
1553
+ onClick: U,
1554
+ class: "multiselect__arrow"
1555
+ }, null, 8, ["onClick"])
1556
+ ])
1538
1557
  ]),
1539
1558
  tag: g(({ option: U, remove: W }) => [
1540
1559
  c("div", Tt, [
1541
- c("div", Mt, h(U.label), 1),
1542
- b(m(V), {
1560
+ c("div", Pt, h(U.label), 1),
1561
+ f(m(V), {
1543
1562
  icon: "bi:x",
1544
1563
  class: "my-auto multiselect__tag-icon",
1545
- onMousedown: q((Na) => o(W, U), ["prevent", "stop"]),
1564
+ onMousedown: q((Al) => o(W, U), ["prevent", "stop"]),
1546
1565
  height: "18px",
1547
1566
  width: "18px"
1548
1567
  }, null, 8, ["onMousedown"])
1549
1568
  ])
1550
1569
  ]),
1551
1570
  default: g(() => [
1552
- (i(!0), y(L, null, Y(N.$slots, (U, W) => $(N.$slots, W, { slot: W })), 256))
1571
+ (i(!0), v(L, null, Y(N.$slots, (U, W) => $(N.$slots, W, { slot: W })), 256))
1553
1572
  ]),
1554
1573
  _: 2
1555
1574
  }, [
1556
- v.value.multiple && N.showSelectAll && !v.value.async ? {
1575
+ y.value.multiple && N.showSelectAll && !y.value.async ? {
1557
1576
  name: "beforeList",
1558
1577
  fn: g(() => [
1559
1578
  c("li", {
1560
1579
  class: "multiselect__element",
1561
1580
  onClick: oe,
1562
1581
  onMouseover: z,
1563
- onMouseleave: f,
1582
+ onMouseleave: b,
1564
1583
  "data-cy": "toggle-all"
1565
1584
  }, [
1566
1585
  c("div", {
@@ -1571,14 +1590,14 @@ const yt = { key: 0 }, bt = {
1571
1590
  name: "selected",
1572
1591
  type: "checkbox",
1573
1592
  class: "form-check-input px-2 py-2 rounded ms-2 cursor-pointer"
1574
- }, null, 8, Ft),
1575
- _t
1593
+ }, null, 8, _t),
1594
+ D[2] || (D[2] = c("div", { class: "my-auto ms-1" }, "Toggle all", -1))
1576
1595
  ], 2)
1577
1596
  ], 32)
1578
1597
  ]),
1579
1598
  key: "0"
1580
1599
  } : void 0,
1581
- v.value.multiple ? {
1600
+ y.value.multiple ? {
1582
1601
  name: "option",
1583
1602
  fn: g(({ option: U }) => [
1584
1603
  c("div", {
@@ -1591,7 +1610,7 @@ const yt = { key: 0 }, bt = {
1591
1610
  type: "checkbox",
1592
1611
  class: "form-check-input px-2 py-2 rounded ms-2 cursor-pointer"
1593
1612
  }, null, 8, Vt),
1594
- c("div", Ct, h(U[v.value.label]), 1)
1613
+ c("div", Ct, h(U[y.value.label]), 1)
1595
1614
  ], 8, St)
1596
1615
  ]),
1597
1616
  key: "1"
@@ -1600,12 +1619,12 @@ const yt = { key: 0 }, bt = {
1600
1619
  j(c("small", {
1601
1620
  "data-cy": "error",
1602
1621
  class: "invalid-feedback"
1603
- }, h(m(d)), 513), [
1604
- [H, M.value]
1622
+ }, h(m(u)), 513), [
1623
+ [H, P.value]
1605
1624
  ])
1606
1625
  ], 64));
1607
1626
  }
1608
- }), Pt = {
1627
+ }), Mt = {
1609
1628
  key: 0,
1610
1629
  class: "pl-1"
1611
1630
  }, It = { class: "border alternating-item-list" }, zt = {
@@ -1615,7 +1634,7 @@ const yt = { key: 0 }, bt = {
1615
1634
  }, Ot = { class: "d-inline-block" }, Dt = {
1616
1635
  key: 1,
1617
1636
  class: "p-2 item d-flex justify-content-between align-items-center"
1618
- }, hl = /* @__PURE__ */ F({
1637
+ }, ga = /* @__PURE__ */ F({
1619
1638
  __name: "ForgeMultiSelectPreview",
1620
1639
  props: /* @__PURE__ */ E({
1621
1640
  title: { default: "Selected Items" },
@@ -1630,63 +1649,63 @@ const yt = { key: 0 }, bt = {
1630
1649
  }),
1631
1650
  emits: ["update:modelValue"],
1632
1651
  setup(e) {
1633
- const t = e, a = A(e, "modelValue"), o = (l) => {
1634
- a.value = a.value.filter((n) => n.id !== l);
1652
+ const t = e, l = A(e, "modelValue"), o = (a) => {
1653
+ l.value = l.value.filter((n) => n.id !== a);
1635
1654
  };
1636
- return (l, n) => {
1637
- const u = R;
1638
- return i(), y("div", {
1639
- class: B(l.orientation === "column" ? "row" : ""),
1655
+ return (a, n) => {
1656
+ const d = R;
1657
+ return i(), v("div", {
1658
+ class: B(a.orientation === "column" ? "row" : ""),
1640
1659
  "data-cy": "multiselect-preview"
1641
1660
  }, [
1642
1661
  c("div", {
1643
- class: B(l.orientation === "row" ? "col-12 mb-1" : "col"),
1662
+ class: B(a.orientation === "row" ? "col-12 mb-1" : "col"),
1644
1663
  "data-cy": "multiselect-container"
1645
1664
  }, [
1646
- b(pe, _({
1647
- modelValue: a.value,
1648
- "onUpdate:modelValue": n[0] || (n[0] = (r) => a.value = r),
1649
- "limit-text": () => `${a.value.length} selected`,
1665
+ f(pe, _({
1666
+ modelValue: l.value,
1667
+ "onUpdate:modelValue": n[0] || (n[0] = (r) => l.value = r),
1668
+ "limit-text": () => `${l.value.length} selected`,
1650
1669
  options: t.options
1651
- }, { ...l.$attrs }), {
1652
- tag: g(() => [
1670
+ }, { ...a.$attrs }), {
1671
+ tag: g(() => n[1] || (n[1] = [
1653
1672
  O(h(""))
1654
- ]),
1673
+ ])),
1655
1674
  selection: g(() => [
1656
- a.value.length > 0 ? (i(), y("span", Pt, h(a.value.length) + " items selected", 1)) : S("", !0)
1675
+ l.value.length > 0 ? (i(), v("span", Mt, h(l.value.length) + " items selected", 1)) : S("", !0)
1657
1676
  ]),
1658
1677
  default: g(() => [
1659
- (i(!0), y(L, null, Y(l.$slots, (r, d) => $(l.$slots, d, { slot: d })), 256))
1678
+ (i(!0), v(L, null, Y(a.$slots, (r, u) => $(a.$slots, u, { slot: u })), 256))
1660
1679
  ]),
1661
1680
  _: 3
1662
1681
  }, 16, ["modelValue", "limit-text", "options"]),
1663
- $(l.$slots, "after-multi-select")
1682
+ $(a.$slots, "after-multi-select")
1664
1683
  ], 2),
1665
1684
  c("div", {
1666
- class: B(l.orientation === "row" ? "col-12" : "col"),
1685
+ class: B(a.orientation === "row" ? "col-12" : "col"),
1667
1686
  "data-cy": "options-preview"
1668
1687
  }, [
1669
1688
  c("div", {
1670
- style: ge({ height: l.height }),
1689
+ style: ge({ height: a.height }),
1671
1690
  class: "overflow-auto"
1672
1691
  }, [
1673
1692
  c("div", It, [
1674
- l.title ? (i(), y("div", zt, h(l.title), 1)) : S("", !0),
1675
- (i(!0), y(L, null, Y(a.value, (r) => (i(), y("div", {
1693
+ a.title ? (i(), v("div", zt, h(a.title), 1)) : S("", !0),
1694
+ (i(!0), v(L, null, Y(l.value, (r) => (i(), v("div", {
1676
1695
  key: r.id,
1677
1696
  class: "p-2 item d-flex justify-content-between align-items-center"
1678
1697
  }, [
1679
- $(l.$slots, "list-item", { item: r }, () => [
1698
+ $(a.$slots, "list-item", { item: r }, () => [
1680
1699
  c("span", Ot, h(r.shortLabel ? r.shortLabel : r.label), 1)
1681
1700
  ]),
1682
- l.canRemoveItemFromPreview ? (i(), w(u, {
1701
+ a.canRemoveItemFromPreview ? (i(), w(d, {
1683
1702
  key: 0,
1684
1703
  link: "",
1685
1704
  class: "m-0 p-0 d-flex align-items-center",
1686
- onClick: (d) => o(r.id)
1705
+ onClick: (u) => o(r.id)
1687
1706
  }, {
1688
1707
  default: g(() => [
1689
- b(m(V), {
1708
+ f(m(V), {
1690
1709
  icon: "bi:x",
1691
1710
  class: "close-icon",
1692
1711
  "data-cy": `close-icon-${r.id}`
@@ -1695,7 +1714,7 @@ const yt = { key: 0 }, bt = {
1695
1714
  _: 2
1696
1715
  }, 1032, ["onClick"])) : S("", !0)
1697
1716
  ]))), 128)),
1698
- a.value.length === 0 ? (i(), y("div", Dt, h(t.optionsPreviewEmptyText), 1)) : S("", !0)
1717
+ l.value.length === 0 ? (i(), v("div", Dt, h(t.optionsPreviewEmptyText), 1)) : S("", !0)
1699
1718
  ])
1700
1719
  ], 4)
1701
1720
  ], 2)
@@ -1708,21 +1727,21 @@ const yt = { key: 0 }, bt = {
1708
1727
  }, Nt = {
1709
1728
  "data-cy": "slot",
1710
1729
  class: "d-flex align-items-center"
1711
- }, wl = /* @__PURE__ */ F({
1730
+ }, ha = /* @__PURE__ */ F({
1712
1731
  __name: "ForgePageHeader",
1713
1732
  props: {
1714
1733
  title: {}
1715
1734
  },
1716
1735
  setup(e) {
1717
1736
  const t = e;
1718
- return (a, o) => (i(), y("div", Ut, [
1737
+ return (l, o) => (i(), v("div", Ut, [
1719
1738
  c("h3", At, h(t.title), 1),
1720
1739
  c("div", Nt, [
1721
- $(a.$slots, "default")
1740
+ $(l.$slots, "default")
1722
1741
  ])
1723
1742
  ]));
1724
1743
  }
1725
- }), Et = { class: "d-flex" }, Lt = { "data-cy": "before-slot" }, Rt = { class: "position-relative w-100" }, jt = { "data-cy": "after-slot" }, ve = /* @__PURE__ */ F({
1744
+ }), Et = { class: "d-flex" }, Lt = { "data-cy": "before-slot" }, Rt = { class: "position-relative w-100" }, jt = { "data-cy": "after-slot" }, ye = /* @__PURE__ */ F({
1726
1745
  __name: "ForgeDatepicker",
1727
1746
  props: /* @__PURE__ */ E({
1728
1747
  severity: { default: "primary" },
@@ -1795,11 +1814,11 @@ const yt = { key: 0 }, bt = {
1795
1814
  }),
1796
1815
  emits: ["update:modelValue"],
1797
1816
  setup(e) {
1798
- const t = e, a = A(e, "modelValue"), { errors: o, errorMessage: l, handleChange: n, handleBlur: u, setValue: r } = K(() => t.name, void 0, {
1799
- initialValue: a.value
1800
- }), d = () => {
1801
- r(null), a.value = null;
1802
- }, p = x(() => o.value.length > 0), v = x(() => ({
1817
+ const t = e, l = A(e, "modelValue"), { errors: o, errorMessage: a, handleChange: n, handleBlur: d, setValue: r } = K(() => t.name, void 0, {
1818
+ initialValue: l.value
1819
+ }), u = () => {
1820
+ r(null), l.value = null;
1821
+ }, p = k(() => o.value.length > 0), y = k(() => ({
1803
1822
  day: ({ context: s }) => ({
1804
1823
  class: [
1805
1824
  `text-center date-${t.severity === void 0 ? "primary" : t.severity}`,
@@ -1892,33 +1911,33 @@ const yt = { key: 0 }, bt = {
1892
1911
  }));
1893
1912
  return (s, T) => {
1894
1913
  const C = _e;
1895
- return i(), y(L, null, [
1914
+ return i(), v(L, null, [
1896
1915
  c("div", Et, [
1897
1916
  c("span", Lt, [
1898
1917
  $(s.$slots, "before")
1899
1918
  ]),
1900
1919
  c("div", Rt, [
1901
- b(C, _({ ...t, ...s.$attrs }, {
1902
- pt: v.value,
1903
- modelValue: a.value,
1920
+ f(C, _({ ...t, ...s.$attrs }, {
1921
+ pt: y.value,
1922
+ modelValue: l.value,
1904
1923
  "onUpdate:modelValue": [
1905
- T[0] || (T[0] = (M) => a.value = M),
1924
+ T[0] || (T[0] = (P) => l.value = P),
1906
1925
  m(n)
1907
1926
  ],
1908
- onBlur: m(u),
1927
+ onBlur: m(d),
1909
1928
  "input-class": { "is-invalid": p.value }
1910
1929
  }), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "onBlur", "input-class"]),
1911
- j(b(m(V), {
1930
+ j(f(m(V), {
1912
1931
  "data-cy": "icon",
1913
1932
  icon: "bi:calendar4",
1914
1933
  class: B(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${p.value ? "text-danger-dark" : "text-muted"}`])
1915
1934
  }, null, 8, ["class"]), [
1916
1935
  [H, t.showIcon]
1917
1936
  ]),
1918
- j(b(m(V), {
1937
+ j(f(m(V), {
1919
1938
  "data-cy": "icon",
1920
1939
  icon: "bi:x",
1921
- onClick: d,
1940
+ onClick: u,
1922
1941
  class: B(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer bg-white", t.showIcon ? "datepicker-close-icon" : "me-2"])
1923
1942
  }, null, 8, ["class"]), [
1924
1943
  [H, t.modelValue]
@@ -1931,25 +1950,25 @@ const yt = { key: 0 }, bt = {
1931
1950
  j(c("small", {
1932
1951
  "data-cy": "error",
1933
1952
  class: "text-invalid"
1934
- }, h(m(l)), 513), [
1953
+ }, h(m(a)), 513), [
1935
1954
  [H, p.value]
1936
1955
  ])
1937
1956
  ], 64);
1938
1957
  };
1939
1958
  }
1940
- }), xl = /* @__PURE__ */ F({
1959
+ }), wa = /* @__PURE__ */ F({
1941
1960
  __name: "ForgeRemainingCharacters",
1942
1961
  props: {
1943
1962
  maxCount: { default: 300 },
1944
1963
  currentCount: {}
1945
1964
  },
1946
1965
  setup(e) {
1947
- const t = e, a = x(() => t.maxCount - t.currentCount);
1948
- return (o, l) => (i(), y("div", {
1949
- class: B(a.value < 0 ? "text-danger" : "")
1950
- }, "Remaining characters: " + h(a.value), 3));
1966
+ const t = e, l = k(() => t.maxCount - t.currentCount);
1967
+ return (o, a) => (i(), v("div", {
1968
+ class: B(l.value < 0 ? "text-danger" : "")
1969
+ }, "Remaining characters: " + h(l.value), 3));
1951
1970
  }
1952
- }), Ht = /* @__PURE__ */ c("hr", null, null, -1), qt = { class: "d-flex justify-content-between" }, kl = /* @__PURE__ */ F({
1971
+ }), Ht = { class: "d-flex justify-content-between" }, xa = /* @__PURE__ */ F({
1953
1972
  __name: "ForgeForm",
1954
1973
  props: {
1955
1974
  onSubmit: {},
@@ -1961,36 +1980,36 @@ const yt = { key: 0 }, bt = {
1961
1980
  hideCancel: { type: Boolean, default: !1 }
1962
1981
  },
1963
1982
  setup(e) {
1964
- const t = e, a = I(!1), o = I({
1983
+ const t = e, l = I(!1), o = I({
1965
1984
  hasError: !1,
1966
1985
  message: ""
1967
1986
  });
1968
- async function l() {
1969
- a.value = !0, o.value.hasError = !1;
1987
+ async function a() {
1988
+ l.value = !0, o.value.hasError = !1;
1970
1989
  try {
1971
1990
  await t.onSubmit();
1972
1991
  } catch (n) {
1973
1992
  o.value.hasError = !0, n.message && (o.value.message = n.message);
1974
1993
  }
1975
- a.value = !1;
1994
+ l.value = !1;
1976
1995
  }
1977
- return (n, u) => {
1996
+ return (n, d) => {
1978
1997
  const r = R;
1979
- return i(), y("form", _(n.$attrs, {
1998
+ return i(), v("form", _(n.$attrs, {
1980
1999
  novalidate: "",
1981
2000
  class: "position-relative shadow-sm border p-4 bg-white",
1982
- onSubmit: q(l, ["prevent"])
2001
+ onSubmit: q(a, ["prevent"])
1983
2002
  }), [
1984
- n.hideTitle ? S("", !0) : (i(), y(L, { key: 0 }, [
2003
+ n.hideTitle ? S("", !0) : (i(), v(L, { key: 0 }, [
1985
2004
  $(n.$slots, "title", {}, () => [
1986
2005
  c("h3", {
1987
2006
  class: B(n.titleClass),
1988
2007
  "data-cy": "form-title"
1989
2008
  }, h(n.title), 3)
1990
2009
  ]),
1991
- Ht
2010
+ d[1] || (d[1] = c("hr", null, null, -1))
1992
2011
  ], 64)),
1993
- o.value.hasError ? (i(), w(le, {
2012
+ o.value.hasError ? (i(), w(ae, {
1994
2013
  key: 1,
1995
2014
  severity: "danger",
1996
2015
  "data-cy": "error"
@@ -2005,7 +2024,7 @@ const yt = { key: 0 }, bt = {
2005
2024
  _: 3
2006
2025
  })) : S("", !0),
2007
2026
  $(n.$slots, "default"),
2008
- c("div", qt, [
2027
+ c("div", Ht, [
2009
2028
  $(n.$slots, "cancel", {}, () => [
2010
2029
  n.hideCancel ? S("", !0) : (i(), w(r, {
2011
2030
  key: 0,
@@ -2013,7 +2032,7 @@ const yt = { key: 0 }, bt = {
2013
2032
  type: "reset",
2014
2033
  severity: "secondary",
2015
2034
  outlined: "",
2016
- onClick: u[0] || (u[0] = (d) => n.$emit("cancel"))
2035
+ onClick: d[0] || (d[0] = (u) => n.$emit("cancel"))
2017
2036
  }, {
2018
2037
  default: g(() => [
2019
2038
  O(h(n.cancelText), 1)
@@ -2021,8 +2040,8 @@ const yt = { key: 0 }, bt = {
2021
2040
  _: 1
2022
2041
  }))
2023
2042
  ]),
2024
- $(n.$slots, "submit", { submit: l }, () => [
2025
- b(r, {
2043
+ $(n.$slots, "submit", { submit: a }, () => [
2044
+ f(r, {
2026
2045
  "data-cy": "submit-btn",
2027
2046
  type: "submit",
2028
2047
  severity: "primary",
@@ -2035,20 +2054,21 @@ const yt = { key: 0 }, bt = {
2035
2054
  })
2036
2055
  ])
2037
2056
  ]),
2038
- a.value ? (i(), w(me, {
2057
+ l.value ? (i(), w(me, {
2039
2058
  key: 2,
2040
2059
  "data-cy": "loading-spinner"
2041
2060
  })) : S("", !0)
2042
2061
  ], 16);
2043
2062
  };
2044
2063
  }
2045
- }), Yt = {
2064
+ }), qt = {
2046
2065
  key: 1,
2047
2066
  class: "d-flex flex-column w-100"
2048
- }, Gt = ["for"], $l = /* @__PURE__ */ F({
2067
+ }, Yt = ["for"], ka = /* @__PURE__ */ F({
2049
2068
  __name: "ForgeFormField",
2050
2069
  props: /* @__PURE__ */ E({
2051
2070
  name: {},
2071
+ fieldLabelPosition: { default: "top" },
2052
2072
  fieldLabel: {},
2053
2073
  type: { default: "text" },
2054
2074
  mask: { default: "" },
@@ -2059,92 +2079,97 @@ const yt = { key: 0 }, bt = {
2059
2079
  }),
2060
2080
  emits: ["update:modelValue"],
2061
2081
  setup(e) {
2062
- const t = A(e, "modelValue"), a = e, o = (v) => {
2063
- a.type == "number" ? r(v.value) : r(v);
2064
- }, { errors: l, value: n, errorMessage: u, handleChange: r, handleBlur: d } = K(() => a.name, void 0, {
2082
+ const t = A(e, "modelValue"), l = e, o = (y) => {
2083
+ l.type == "number" ? r(y.value) : r(y);
2084
+ }, { errors: a, value: n, errorMessage: d, handleChange: r, handleBlur: u } = K(() => l.name, void 0, {
2065
2085
  initialValue: t.value
2066
- }), p = x(() => l.value.length > 0);
2067
- return de(() => n.value, (v) => {
2068
- t.value = v;
2069
- }, { immediate: !0 }), (v, s) => {
2070
- const T = Ve, C = Se, M = ie, P = ae, z = pe, f = ve;
2071
- return a.type === "checkbox" ? (i(), w(ct, _({
2086
+ }), p = k(() => a.value.length > 0);
2087
+ return de(() => n.value, (y) => {
2088
+ t.value = y;
2089
+ }, { immediate: !0 }), (y, s) => {
2090
+ const T = Ve, C = Se, P = ie, M = le, z = pe, b = ye;
2091
+ return l.type === "checkbox" ? (i(), w(ct, _({
2072
2092
  key: 0,
2073
- id: a.name,
2074
- label: a.fieldLabel
2075
- }, v.$attrs, {
2076
- name: a.name,
2093
+ id: l.name,
2094
+ label: l.fieldLabel
2095
+ }, y.$attrs, {
2096
+ name: l.name,
2077
2097
  modelValue: t.value,
2078
- "onUpdate:modelValue": s[0] || (s[0] = (k) => t.value = k)
2079
- }), null, 16, ["id", "label", "name", "modelValue"])) : (i(), y("div", Yt, [
2080
- c("label", {
2081
- for: a.name,
2082
- class: "mb-1"
2083
- }, h(a.fieldLabel), 9, Gt),
2084
- a.type === "number" ? (i(), w(m(ue), _({
2085
- key: 0,
2086
- id: a.name
2087
- }, v.$attrs, {
2088
- placeholder: a.placeholder,
2089
- "input-class": { "is-invalid": p.value },
2090
- class: { "is-invalid": p.value },
2091
- modelValue: t.value,
2092
- "onUpdate:modelValue": s[1] || (s[1] = (k) => t.value = k),
2093
- onInput: o
2094
- }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (i(), w(T, _({
2095
- key: 1,
2096
- id: a.name
2097
- }, v.$attrs, {
2098
- placeholder: a.placeholder,
2099
- class: { "is-invalid": p.value },
2100
- modelValue: t.value,
2101
- "onUpdate:modelValue": s[2] || (s[2] = (k) => t.value = k),
2102
- onInput: o,
2103
- onBlur: m(d)
2104
- }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (i(), w(C, _({
2105
- key: 2,
2106
- id: a.name
2107
- }, v.$attrs, {
2108
- placeholder: a.placeholder,
2109
- mask: a.mask,
2110
- class: { "is-invalid": p.value },
2111
- modelValue: t.value,
2112
- "onUpdate:modelValue": s[3] || (s[3] = (k) => t.value = k),
2113
- onComplete: o,
2114
- onBlur: m(d)
2115
- }), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (i(), w(M, _({
2116
- key: 3,
2117
- id: a.name
2118
- }, v.$attrs, {
2119
- placeholder: a.placeholder,
2120
- class: { "is-invalid": p.value },
2121
- modelValue: t.value,
2122
- "onUpdate:modelValue": s[4] || (s[4] = (k) => t.value = k),
2123
- onInput: o,
2124
- onBlur: m(d)
2125
- }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (i(), w(P, _({ key: 4 }, { ...a, ...v.$attrs }, {
2126
- modelValue: t.value,
2127
- "onUpdate:modelValue": s[5] || (s[5] = (k) => t.value = k),
2128
- class: { "is-invalid": p.value }
2129
- }), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (i(), w(z, _({ key: 5 }, { ...a, ...v.$attrs }, {
2130
- modelValue: t.value,
2131
- "onUpdate:modelValue": s[6] || (s[6] = (k) => t.value = k),
2132
- class: { "is-invalid": p.value }
2133
- }), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (i(), w(f, _({ key: 6 }, { ...a, ...v.$attrs }, {
2134
- modelValue: t.value,
2135
- "onUpdate:modelValue": s[7] || (s[7] = (k) => t.value = k),
2136
- class: { "is-invalid": p.value }
2137
- }), null, 16, ["modelValue", "class"])) : S("", !0),
2098
+ "onUpdate:modelValue": s[0] || (s[0] = (x) => t.value = x)
2099
+ }), null, 16, ["id", "label", "name", "modelValue"])) : (i(), v("div", qt, [
2100
+ c("div", {
2101
+ "data-cy": "input-wrapper",
2102
+ class: B(["d-flex", l.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
2103
+ }, [
2104
+ c("label", {
2105
+ for: l.name,
2106
+ class: B(l.fieldLabelPosition === "top" ? "mb-1" : "me-2")
2107
+ }, h(l.fieldLabel), 11, Yt),
2108
+ l.type === "number" ? (i(), w(m(ue), _({
2109
+ key: 0,
2110
+ id: l.name
2111
+ }, y.$attrs, {
2112
+ placeholder: l.placeholder,
2113
+ "input-class": { "is-invalid": p.value },
2114
+ class: { "is-invalid": p.value },
2115
+ modelValue: t.value,
2116
+ "onUpdate:modelValue": s[1] || (s[1] = (x) => t.value = x),
2117
+ onInput: o
2118
+ }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : l.type === "textarea" ? (i(), w(T, _({
2119
+ key: 1,
2120
+ id: l.name
2121
+ }, y.$attrs, {
2122
+ placeholder: l.placeholder,
2123
+ class: { "is-invalid": p.value },
2124
+ modelValue: t.value,
2125
+ "onUpdate:modelValue": s[2] || (s[2] = (x) => t.value = x),
2126
+ onInput: o,
2127
+ onBlur: m(u)
2128
+ }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : l.type === "mask" ? (i(), w(C, _({
2129
+ key: 2,
2130
+ id: l.name
2131
+ }, y.$attrs, {
2132
+ placeholder: l.placeholder,
2133
+ mask: l.mask,
2134
+ class: { "is-invalid": p.value },
2135
+ modelValue: t.value,
2136
+ "onUpdate:modelValue": s[3] || (s[3] = (x) => t.value = x),
2137
+ onComplete: o,
2138
+ onBlur: m(u)
2139
+ }), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : l.type === "text" ? (i(), w(P, _({
2140
+ key: 3,
2141
+ id: l.name
2142
+ }, y.$attrs, {
2143
+ placeholder: l.placeholder,
2144
+ class: { "is-invalid": p.value },
2145
+ modelValue: t.value,
2146
+ "onUpdate:modelValue": s[4] || (s[4] = (x) => t.value = x),
2147
+ onInput: o,
2148
+ onBlur: m(u)
2149
+ }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : l.type === "select" ? (i(), w(M, _({ key: 4 }, { ...l, ...y.$attrs }, {
2150
+ modelValue: t.value,
2151
+ "onUpdate:modelValue": s[5] || (s[5] = (x) => t.value = x),
2152
+ class: { "is-invalid": p.value }
2153
+ }), null, 16, ["modelValue", "class"])) : l.type === "multiselect" ? (i(), w(z, _({ key: 5 }, { ...l, ...y.$attrs }, {
2154
+ modelValue: t.value,
2155
+ "onUpdate:modelValue": s[6] || (s[6] = (x) => t.value = x),
2156
+ class: { "is-invalid": p.value }
2157
+ }), null, 16, ["modelValue", "class"])) : l.type === "datepicker" ? (i(), w(b, _({ key: 6 }, { ...l, ...y.$attrs }, {
2158
+ modelValue: t.value,
2159
+ "onUpdate:modelValue": s[7] || (s[7] = (x) => t.value = x),
2160
+ class: { "is-invalid": p.value }
2161
+ }), null, 16, ["modelValue", "class"])) : S("", !0)
2162
+ ], 2),
2138
2163
  j(c("small", {
2139
2164
  "data-cy": "error",
2140
2165
  class: "invalid-feedback"
2141
- }, h(m(u)), 513), [
2142
- [H, p.value && a.type !== "multiselect" && a.type !== "datepicker"]
2166
+ }, h(m(d)), 513), [
2167
+ [H, p.value && l.type !== "multiselect" && l.type !== "datepicker"]
2143
2168
  ])
2144
2169
  ]));
2145
2170
  };
2146
2171
  }
2147
- }), Bl = /* @__PURE__ */ F({
2172
+ }), $a = /* @__PURE__ */ F({
2148
2173
  __name: "ForgeChips",
2149
2174
  props: {
2150
2175
  chipSeverity: { default: "primary" },
@@ -2171,9 +2196,9 @@ const yt = { key: 0 }, bt = {
2171
2196
  unstyled: { type: Boolean }
2172
2197
  },
2173
2198
  setup(e) {
2174
- const t = e, { errors: a, value: o, errorMessage: l } = K(() => t.name, void 0, {
2199
+ const t = e, { errors: l, value: o, errorMessage: a } = K(() => t.name, void 0, {
2175
2200
  initialValue: t.modelValue
2176
- }), n = x(() => a.value.length > 0), u = x(() => ({
2201
+ }), n = k(() => l.value.length > 0), d = k(() => ({
2177
2202
  inputtoken: "list-unstyled",
2178
2203
  input: "border-0",
2179
2204
  container: ({ props: r }) => ({
@@ -2204,19 +2229,19 @@ const yt = { key: 0 }, bt = {
2204
2229
  ]
2205
2230
  }
2206
2231
  }));
2207
- return (r, d) => {
2232
+ return (r, u) => {
2208
2233
  const p = Ce;
2209
- return i(), y(L, null, [
2210
- b(p, _({ ...t, ...r.$attrs }, {
2211
- pt: u.value,
2234
+ return i(), v(L, null, [
2235
+ f(p, _({ ...t, ...r.$attrs }, {
2236
+ pt: d.value,
2212
2237
  "model-value": m(o),
2213
- "onUpdate:modelValue": d[0] || (d[0] = (v) => se(o) ? o.value = v : null)
2238
+ "onUpdate:modelValue": u[0] || (u[0] = (y) => se(o) ? o.value = y : null)
2214
2239
  }), {
2215
- removetokenicon: g(({ removeCallback: v }) => [
2216
- j(b(m(V), {
2240
+ removetokenicon: g(({ removeCallback: y }) => [
2241
+ j(f(m(V), {
2217
2242
  icon: "bi:x",
2218
2243
  class: "cursor-pointer",
2219
- onClick: v
2244
+ onClick: y
2220
2245
  }, null, 8, ["onClick"]), [
2221
2246
  [H, !t.disabled]
2222
2247
  ])
@@ -2226,13 +2251,13 @@ const yt = { key: 0 }, bt = {
2226
2251
  j(c("small", {
2227
2252
  "data-cy": "error",
2228
2253
  class: "text-invalid"
2229
- }, h(m(l)), 513), [
2254
+ }, h(m(a)), 513), [
2230
2255
  [H, n.value]
2231
2256
  ])
2232
2257
  ], 64);
2233
2258
  };
2234
2259
  }
2235
- }), Kt = /* @__PURE__ */ F({
2260
+ }), Gt = /* @__PURE__ */ F({
2236
2261
  __name: "ForgeProgressBar",
2237
2262
  props: {
2238
2263
  severity: { default: "primary" },
@@ -2247,7 +2272,7 @@ const yt = { key: 0 }, bt = {
2247
2272
  unstyled: { type: Boolean }
2248
2273
  },
2249
2274
  setup(e) {
2250
- const t = e, a = x(() => t.striped ? "progress-bar-striped" : null), o = x(() => t.animate ? "progress-bar-animated" : null), l = x(() => {
2275
+ const t = e, l = k(() => t.striped ? "progress-bar-striped" : null), o = k(() => t.animate ? "progress-bar-animated" : null), a = k(() => {
2251
2276
  switch (t.severity) {
2252
2277
  case "brand":
2253
2278
  return "bg-brand";
@@ -2266,25 +2291,25 @@ const yt = { key: 0 }, bt = {
2266
2291
  default:
2267
2292
  return "bg-primary";
2268
2293
  }
2269
- }), n = x(() => ({
2294
+ }), n = k(() => ({
2270
2295
  root: {
2271
2296
  style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
2272
2297
  },
2273
2298
  value: {
2274
- class: [l.value, a.value, o.value]
2299
+ class: [a.value, l.value, o.value]
2275
2300
  }
2276
2301
  }));
2277
- return (u, r) => {
2278
- const d = Te;
2279
- return i(), w(d, _({ ...u.$attrs, ...t }, { pt: n.value }), {
2302
+ return (d, r) => {
2303
+ const u = Te;
2304
+ return i(), w(u, _({ ...d.$attrs, ...t }, { pt: n.value }), {
2280
2305
  default: g(() => [
2281
- $(u.$slots, "default")
2306
+ $(d.$slots, "default")
2282
2307
  ]),
2283
2308
  _: 3
2284
2309
  }, 16, ["pt"]);
2285
2310
  };
2286
2311
  }
2287
- }), Wt = { class: "value text-white w-100 text-center" }, Fl = /* @__PURE__ */ F({
2312
+ }), Kt = { class: "value text-white w-100 text-center" }, Ba = /* @__PURE__ */ F({
2288
2313
  __name: "ForgeStatWidget",
2289
2314
  props: {
2290
2315
  size: { default: "md" },
@@ -2292,18 +2317,18 @@ const yt = { key: 0 }, bt = {
2292
2317
  },
2293
2318
  setup(e) {
2294
2319
  const t = e;
2295
- return (a, o) => (i(), y("div", _(a.$attrs, {
2320
+ return (l, o) => (i(), v("div", _(l.$attrs, {
2296
2321
  class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
2297
2322
  }), [
2298
- c("span", Wt, [
2299
- $(a.$slots, "default")
2323
+ c("span", Kt, [
2324
+ $(l.$slots, "default")
2300
2325
  ])
2301
2326
  ], 16));
2302
2327
  }
2303
- }), Zt = {
2328
+ }), Wt = {
2304
2329
  class: "d-flex flex-column align-items-center",
2305
2330
  "data-cy": "stepper"
2306
- }, Jt = { class: "d-flex align-items-center justify-content-center w-100" }, _l = /* @__PURE__ */ F({
2331
+ }, Zt = { class: "d-flex align-items-center justify-content-center w-100" }, Fa = /* @__PURE__ */ F({
2307
2332
  __name: "ForgeStepper",
2308
2333
  props: {
2309
2334
  currentStep: { default: 0 },
@@ -2319,21 +2344,21 @@ const yt = { key: 0 }, bt = {
2319
2344
  },
2320
2345
  emits: ["update:currentStep"],
2321
2346
  setup(e, { emit: t }) {
2322
- const a = t, o = e, l = I(o.currentStep), n = () => {
2347
+ const l = t, o = e, a = I(o.currentStep), n = () => {
2323
2348
  do
2324
- l.value--;
2325
- while (o.model[l.value].disabled);
2326
- a("update:currentStep", l.value);
2327
- }, u = () => {
2328
- if (l.value < o.model.length - 1)
2349
+ a.value--;
2350
+ while (o.model[a.value].disabled);
2351
+ l("update:currentStep", a.value);
2352
+ }, d = () => {
2353
+ if (a.value < o.model.length - 1)
2329
2354
  do
2330
- l.value++;
2331
- while (o.model[l.value].disabled);
2332
- a("update:currentStep", l.value);
2333
- }, r = x(() => {
2334
- const p = o.model.findIndex((v) => !v.disabled);
2335
- return !(p < l.value && p > -1);
2336
- }), d = x(() => ({
2355
+ a.value++;
2356
+ while (o.model[a.value].disabled);
2357
+ l("update:currentStep", a.value);
2358
+ }, r = k(() => {
2359
+ const p = o.model.findIndex((y) => !y.disabled);
2360
+ return !(p < a.value && p > -1);
2361
+ }), u = k(() => ({
2337
2362
  menuitem: (p) => ({
2338
2363
  class: [{
2339
2364
  "cursor-pointer": !p.context.disabled
@@ -2344,13 +2369,13 @@ const yt = { key: 0 }, bt = {
2344
2369
  "d-flex align-items-center justify-content-center mb-2 step",
2345
2370
  {
2346
2371
  inactive: p.context.disabled,
2347
- "bg-primary text-white": p.context.index === l.value && (o.severity === void 0 || o.severity === "primary"),
2348
- "bg-brand text-white": p.context.index === l.value && o.severity === "brand",
2349
- "bg-secondary text-white": p.context.index === l.value && o.severity === "secondary",
2350
- "bg-success text-white": p.context.index === l.value && o.severity === "success",
2351
- "bg-warning text-white": p.context.index === l.value && o.severity === "warning",
2352
- "bg-danger text-white": p.context.index === l.value && o.severity === "danger",
2353
- "bg-info text-white": p.context.index === l.value && o.severity === "info"
2372
+ "bg-primary text-white": p.context.index === a.value && (o.severity === void 0 || o.severity === "primary"),
2373
+ "bg-brand text-white": p.context.index === a.value && o.severity === "brand",
2374
+ "bg-secondary text-white": p.context.index === a.value && o.severity === "secondary",
2375
+ "bg-success text-white": p.context.index === a.value && o.severity === "success",
2376
+ "bg-warning text-white": p.context.index === a.value && o.severity === "warning",
2377
+ "bg-danger text-white": p.context.index === a.value && o.severity === "danger",
2378
+ "bg-info text-white": p.context.index === a.value && o.severity === "info"
2354
2379
  }
2355
2380
  ]
2356
2381
  }),
@@ -2358,22 +2383,22 @@ const yt = { key: 0 }, bt = {
2358
2383
  class: [
2359
2384
  "h5",
2360
2385
  {
2361
- "border-bottom border-2 border-primary": p.context.index === l.value && (o.severity === void 0 || o.severity === "primary"),
2362
- "border-bottom border-2 border-brand": p.context.index === l.value && o.severity === "brand",
2363
- "border-bottom border-2 border-secondary": p.context.index === l.value && o.severity === "secondary",
2364
- "border-bottom border-2 border-success": p.context.index === l.value && o.severity === "success",
2365
- "border-bottom border-2 border-warning": p.context.index === l.value && o.severity === "warning",
2366
- "border-bottom border-2 border-danger": p.context.index === l.value && o.severity === "danger",
2367
- "border-bottom border-2 border-info": p.context.index === l.value && o.severity === "info"
2386
+ "border-bottom border-2 border-primary": p.context.index === a.value && (o.severity === void 0 || o.severity === "primary"),
2387
+ "border-bottom border-2 border-brand": p.context.index === a.value && o.severity === "brand",
2388
+ "border-bottom border-2 border-secondary": p.context.index === a.value && o.severity === "secondary",
2389
+ "border-bottom border-2 border-success": p.context.index === a.value && o.severity === "success",
2390
+ "border-bottom border-2 border-warning": p.context.index === a.value && o.severity === "warning",
2391
+ "border-bottom border-2 border-danger": p.context.index === a.value && o.severity === "danger",
2392
+ "border-bottom border-2 border-info": p.context.index === a.value && o.severity === "info"
2368
2393
  }
2369
2394
  ]
2370
2395
  })
2371
2396
  }));
2372
- return (p, v) => {
2373
- const s = R, T = Pe, C = Me;
2374
- return i(), y("div", Zt, [
2375
- c("div", Jt, [
2376
- b(s, {
2397
+ return (p, y) => {
2398
+ const s = R, T = Me, C = Pe;
2399
+ return i(), v("div", Wt, [
2400
+ c("div", Zt, [
2401
+ f(s, {
2377
2402
  severity: o.severity,
2378
2403
  disabled: r.value,
2379
2404
  onClick: n,
@@ -2381,41 +2406,41 @@ const yt = { key: 0 }, bt = {
2381
2406
  "data-cy": "back-button"
2382
2407
  }, {
2383
2408
  default: g(() => [
2384
- b(m(V), {
2409
+ f(m(V), {
2385
2410
  icon: "bi:chevron-left",
2386
2411
  class: "mb-1"
2387
2412
  })
2388
2413
  ]),
2389
2414
  _: 1
2390
2415
  }, 8, ["severity", "disabled"]),
2391
- b(T, {
2392
- "active-step": l.value,
2393
- "onUpdate:activeStep": v[0] || (v[0] = (M) => l.value = M),
2416
+ f(T, {
2417
+ "active-step": a.value,
2418
+ "onUpdate:activeStep": y[0] || (y[0] = (P) => a.value = P),
2394
2419
  model: o.model,
2395
- pt: d.value,
2420
+ pt: u.value,
2396
2421
  readonly: !1
2397
2422
  }, null, 8, ["active-step", "model", "pt"])
2398
2423
  ]),
2399
- b(C, { class: "m-4" }),
2400
- (i(!0), y(L, null, Y(o.model, (M, P) => (i(), y("div", {
2401
- key: P,
2424
+ f(C, { class: "m-4" }),
2425
+ (i(!0), v(L, null, Y(o.model, (P, M) => (i(), v("div", {
2426
+ key: M,
2402
2427
  class: "w-100"
2403
2428
  }, [
2404
- P === l.value ? $(p.$slots, M.key ?? M.label, {
2429
+ M === a.value ? $(p.$slots, P.key ?? P.label, {
2405
2430
  key: 0,
2406
- nextStep: u,
2431
+ nextStep: d,
2407
2432
  previousStep: n
2408
2433
  }, () => [
2409
- b(le, {
2434
+ f(ae, {
2410
2435
  severity: "info",
2411
2436
  "data-cy": "alert"
2412
2437
  }, {
2413
2438
  default: g(() => [
2414
- O(" Please add Slot Content for the key " + h(M.key ?? M.label) + " ", 1),
2415
- b(s, {
2439
+ O(" Please add Slot Content for the key " + h(P.key ?? P.label) + " ", 1),
2440
+ f(s, {
2416
2441
  severity: "primary",
2417
2442
  label: "Next",
2418
- onClick: u,
2443
+ onClick: d,
2419
2444
  class: "ms-2"
2420
2445
  })
2421
2446
  ]),
@@ -2426,7 +2451,7 @@ const yt = { key: 0 }, bt = {
2426
2451
  ]);
2427
2452
  };
2428
2453
  }
2429
- }), Xt = { class: "p-4 text-wrap w-100" }, Qt = { class: "p-4 text-wrap w-100" }, Sl = /* @__PURE__ */ F({
2454
+ }), Jt = { class: "p-4 text-wrap w-100" }, Xt = { class: "p-4 text-wrap w-100" }, _a = /* @__PURE__ */ F({
2430
2455
  __name: "ForgeTile",
2431
2456
  props: {
2432
2457
  severity: { default: "primary" },
@@ -2435,32 +2460,32 @@ const yt = { key: 0 }, bt = {
2435
2460
  selected: { type: Boolean, default: !1 }
2436
2461
  },
2437
2462
  setup(e) {
2438
- const t = e, a = x(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), o = x(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`);
2439
- return (l, n) => {
2440
- const u = R;
2441
- return t.clickable ? (i(), w(u, {
2463
+ const t = e, l = k(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), o = k(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`);
2464
+ return (a, n) => {
2465
+ const d = R;
2466
+ return t.clickable ? (i(), w(d, {
2442
2467
  key: 0,
2443
- class: B(["d-flex w-100 p-0 text-body", a.value]),
2468
+ class: B(["d-flex w-100 p-0 text-body", l.value]),
2444
2469
  severity: t.severity,
2445
2470
  unstyled: "",
2446
2471
  "data-cy": "button-tile"
2447
2472
  }, {
2448
2473
  default: g(() => [
2449
- c("div", Xt, [
2450
- $(l.$slots, "default", {}, () => [
2451
- O("Tile Content")
2474
+ c("div", Jt, [
2475
+ $(a.$slots, "default", {}, () => [
2476
+ n[0] || (n[0] = O("Tile Content"))
2452
2477
  ])
2453
2478
  ])
2454
2479
  ]),
2455
2480
  _: 3
2456
- }, 8, ["severity", "class"])) : (i(), y("div", {
2481
+ }, 8, ["severity", "class"])) : (i(), v("div", {
2457
2482
  key: 1,
2458
2483
  class: B(["d-flex w-100", o.value]),
2459
2484
  "data-cy": "tile"
2460
2485
  }, [
2461
- c("div", Qt, [
2462
- $(l.$slots, "default", {}, () => [
2463
- O("Tile Content")
2486
+ c("div", Xt, [
2487
+ $(a.$slots, "default", {}, () => [
2488
+ n[1] || (n[1] = O("Tile Content"))
2464
2489
  ])
2465
2490
  ])
2466
2491
  ], 2));
@@ -2470,13 +2495,13 @@ const yt = { key: 0 }, bt = {
2470
2495
  function X(e, t) {
2471
2496
  return e > 1 ? `${t}s` : t;
2472
2497
  }
2473
- const ea = {
2498
+ const Qt = {
2474
2499
  class: "d-flex justify-content-start align-items-baseline",
2475
2500
  "data-cy": "pagination-header"
2476
- }, ta = { class: "ms-2" }, aa = { key: 0 }, la = /* @__PURE__ */ c("span", { class: "mx-2" }, "|", -1), oa = {
2501
+ }, el = { class: "ms-2" }, tl = { key: 0 }, ll = {
2477
2502
  class: "w-auto",
2478
2503
  "data-cy": "total"
2479
- }, na = /* @__PURE__ */ F({
2504
+ }, al = /* @__PURE__ */ F({
2480
2505
  __name: "ForgePaginationHeader",
2481
2506
  props: {
2482
2507
  total: {},
@@ -2485,28 +2510,31 @@ const ea = {
2485
2510
  },
2486
2511
  emits: ["update:perPage"],
2487
2512
  setup(e, { emit: t }) {
2488
- const a = t, o = e, l = (u) => {
2489
- a("update:perPage", u.value);
2490
- }, n = x(() => {
2491
- const u = Math.ceil(o.total / o.perPage);
2492
- return `${u} ${X(u, "page")}`;
2513
+ const l = t, o = e, a = (d) => {
2514
+ l("update:perPage", d.value);
2515
+ }, n = k(() => {
2516
+ const d = Math.ceil(o.total / o.perPage);
2517
+ return `${d} ${X(d, "page")}`;
2493
2518
  });
2494
- return (u, r) => (i(), y("div", ea, [
2495
- O(" Number of results per page "),
2496
- c("div", ta, [
2497
- b(m(ae), {
2519
+ return (d, r) => (i(), v("div", Qt, [
2520
+ r[2] || (r[2] = O(" Number of results per page ")),
2521
+ c("div", el, [
2522
+ f(m(le), {
2498
2523
  options: o.pageSizes,
2499
2524
  "model-value": o.perPage,
2500
- onChange: r[0] || (r[0] = (d) => l(d))
2525
+ onChange: r[0] || (r[0] = (u) => a(u))
2501
2526
  }, null, 8, ["options", "model-value"])
2502
2527
  ]),
2503
- o.total ? (i(), y("div", aa, [
2504
- la,
2505
- c("span", oa, h(o.total) + " " + h(m(X)(o.total, "result")) + " across " + h(n.value), 1)
2528
+ o.total ? (i(), v("div", tl, [
2529
+ r[1] || (r[1] = c("span", { class: "mx-2" }, "|", -1)),
2530
+ c("span", ll, h(o.total) + " " + h(m(X)(o.total, "result")) + " across " + h(n.value), 1)
2506
2531
  ])) : S("", !0)
2507
2532
  ]));
2508
2533
  }
2509
- }), sa = { class: "position-relative" }, ia = { "data-cy": "above-table-slot" }, ra = { class: "d-flex" }, da = { class: "d-flex align-items-end mb-2" }, ua = { key: 0 }, ca = { class: "ms-auto" }, ma = /* @__PURE__ */ c("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1), Vl = /* @__PURE__ */ F({
2534
+ }), ol = { class: "position-relative" }, nl = { "data-cy": "above-table-slot" }, sl = { class: "d-flex w-100" }, il = {
2535
+ class: "mx-auto",
2536
+ "data-cy": "empty-message"
2537
+ }, rl = { class: "d-flex" }, dl = { class: "d-flex align-items-end mb-2" }, ul = { key: 0 }, cl = { class: "ms-auto" }, Sa = /* @__PURE__ */ F({
2510
2538
  __name: "ForgeTable",
2511
2539
  props: {
2512
2540
  value: {},
@@ -2516,6 +2544,7 @@ const ea = {
2516
2544
  stickyHeader: { type: Boolean, default: !0 },
2517
2545
  severity: {},
2518
2546
  clearAll: {},
2547
+ emptyMessage: {},
2519
2548
  dataKey: {},
2520
2549
  rows: {},
2521
2550
  first: {},
@@ -2587,17 +2616,17 @@ const ea = {
2587
2616
  },
2588
2617
  emits: ["update:filters", "update:tableContext", "sort", "page"],
2589
2618
  setup(e, { emit: t }) {
2590
- const a = t, o = e, l = I(), n = I([10, 20, 50, 100]), u = I(20), r = I({
2619
+ const l = t, o = e, a = I(), n = I([10, 20, 50, 100]), d = I(20), r = I({
2591
2620
  filters: o.filters,
2592
- perPage: u.value,
2621
+ perPage: d.value,
2593
2622
  page: 0,
2594
2623
  sortDirection: "None",
2595
2624
  sortField: "",
2596
2625
  total: o.totalRecords ?? o.value.length
2597
- }), d = x(() => o.totalRecords ?? o.value.length), p = x(() => {
2598
- const f = Math.ceil(d.value / u.value);
2599
- return `${f} ${X(f, "page")}`;
2600
- }), v = x(() => ({
2626
+ }), u = k(() => o.totalRecords ?? o.value.length), p = k(() => {
2627
+ const b = Math.ceil(u.value / d.value);
2628
+ return `${b} ${X(b, "page")}`;
2629
+ }), y = k(() => ({
2601
2630
  thead: () => ({
2602
2631
  class: [
2603
2632
  {
@@ -2623,90 +2652,95 @@ const ea = {
2623
2652
  if (o.clearAll)
2624
2653
  o.clearAll();
2625
2654
  else
2626
- for (const f in o.filters)
2627
- typeof o.filters[f] == "string" ? o.filters[f] = "" : o.filters[f].value = null;
2628
- M(o.filters);
2655
+ for (const b in o.filters)
2656
+ typeof o.filters[b] == "string" ? o.filters[b] = "" : o.filters[b].value = null;
2657
+ P(o.filters);
2629
2658
  }, T = () => {
2630
- l.value.exportCSV();
2631
- }, C = (f) => {
2632
- var k;
2633
- r.value.sortDirection = f.sortOrder === 1 ? "Asc" : f.sortOrder === -1 ? "Desc" : "None", r.value.sortField = ((k = f.sortField) == null ? void 0 : k.toString()) ?? "", a("update:tableContext", r.value), a("sort", f);
2634
- }, M = (f) => {
2635
- r.value.filters = f, a("update:tableContext", r.value), a("update:filters", f);
2636
- }, P = (f) => {
2637
- r.value.page = f.page, a("update:tableContext", r.value), a("page", f);
2659
+ a.value.exportCSV();
2660
+ }, C = (b) => {
2661
+ var x;
2662
+ r.value.sortDirection = b.sortOrder === 1 ? "Asc" : b.sortOrder === -1 ? "Desc" : "None", r.value.sortField = ((x = b.sortField) == null ? void 0 : x.toString()) ?? "", l("update:tableContext", r.value), l("sort", b);
2663
+ }, P = (b) => {
2664
+ r.value.filters = b, l("update:tableContext", r.value), l("update:filters", b);
2665
+ }, M = (b) => {
2666
+ r.value.page = b.page, l("update:tableContext", r.value), l("page", b);
2638
2667
  }, z = () => {
2639
- r.value.perPage = u.value, a("update:tableContext", r.value);
2668
+ r.value.perPage = d.value, l("update:tableContext", r.value);
2640
2669
  };
2641
- return de(() => o.filters, (f) => {
2642
- r.value.filters = f, a("update:tableContext", r.value);
2643
- }, { deep: !0 }), ne(() => a("update:tableContext", r.value)), (f, k) => (i(), y("div", sa, [
2644
- c("span", ia, [
2645
- $(f.$slots, "above-table")
2670
+ return de(() => o.filters, (b) => {
2671
+ r.value.filters = b, l("update:tableContext", r.value);
2672
+ }, { deep: !0 }), ne(() => l("update:tableContext", r.value)), (b, x) => (i(), v("div", ol, [
2673
+ c("span", nl, [
2674
+ $(b.$slots, "above-table")
2646
2675
  ]),
2647
- b(m(Ie), _({
2676
+ f(m(Ie), _({
2648
2677
  class: ["w-100", `${o.severity ? `forge-table-${o.severity}` : ""}`]
2649
- }, { ...o, ...f.$attrs }, {
2650
- pt: v.value,
2651
- rows: u.value,
2652
- "total-records": d.value,
2678
+ }, { ...o, ...b.$attrs }, {
2679
+ pt: y.value,
2680
+ rows: d.value,
2681
+ "total-records": u.value,
2653
2682
  "filter-display": o.filters ? "row" : void 0,
2654
2683
  ref_key: "forgeTable",
2655
- ref: l,
2684
+ ref: a,
2656
2685
  "data-cy": "table",
2657
- "onUpdate:filters": M,
2686
+ "onUpdate:filters": P,
2658
2687
  onSort: C,
2659
- onPage: P
2688
+ onPage: M
2660
2689
  }), te({
2690
+ empty: g(() => [
2691
+ c("div", sl, [
2692
+ c("h5", il, h(b.emptyMessage ?? "No items Found."), 1)
2693
+ ])
2694
+ ]),
2661
2695
  header: g(() => [
2662
2696
  c("div", {
2663
2697
  class: B(o.loading ? "opacity-50" : "")
2664
2698
  }, [
2665
- c("div", ra, [
2666
- c("div", da, [
2667
- f.paginator && !f.legacyPaginationFooter ? (i(), y("span", ua, [
2668
- b(na, {
2669
- total: d.value,
2699
+ c("div", rl, [
2700
+ c("div", dl, [
2701
+ b.paginator && !b.legacyPaginationFooter ? (i(), v("span", ul, [
2702
+ f(al, {
2703
+ total: u.value,
2670
2704
  "page-sizes": n.value,
2671
- "per-page": u.value,
2705
+ "per-page": d.value,
2672
2706
  "onUpdate:perPage": [
2673
- k[0] || (k[0] = (G) => u.value = G),
2707
+ x[0] || (x[0] = (G) => d.value = G),
2674
2708
  z
2675
2709
  ]
2676
2710
  }, null, 8, ["total", "page-sizes", "per-page"])
2677
2711
  ])) : S("", !0)
2678
2712
  ]),
2679
- c("div", ca, [
2680
- f.showClearButton ? (i(), w(m(R), {
2713
+ c("div", cl, [
2714
+ b.showClearButton ? (i(), w(m(R), {
2681
2715
  key: 0,
2682
2716
  outlined: "",
2683
- class: B(f.showExporterButton ? "me-2" : ""),
2717
+ class: B(b.showExporterButton ? "me-2" : ""),
2684
2718
  onClick: s,
2685
2719
  "data-cy": "clear-all"
2686
2720
  }, {
2687
2721
  default: g(() => [
2688
- b(m(V), {
2722
+ f(m(V), {
2689
2723
  icon: "bi:funnel-fill",
2690
2724
  width: "24",
2691
2725
  height: "24"
2692
2726
  }),
2693
- O(" Clear ")
2727
+ x[2] || (x[2] = O(" Clear "))
2694
2728
  ]),
2695
2729
  _: 1
2696
2730
  }, 8, ["class"])) : S("", !0),
2697
- f.showExporterButton ? (i(), w(m(R), {
2731
+ b.showExporterButton ? (i(), w(m(R), {
2698
2732
  key: 1,
2699
2733
  outlined: "",
2700
2734
  onClick: T,
2701
2735
  "data-cy": "exporter"
2702
2736
  }, {
2703
2737
  default: g(() => [
2704
- b(m(V), {
2738
+ f(m(V), {
2705
2739
  icon: "typcn:export",
2706
2740
  width: "24",
2707
2741
  height: "24"
2708
2742
  }),
2709
- O(" Export ")
2743
+ x[3] || (x[3] = O(" Export "))
2710
2744
  ]),
2711
2745
  _: 1
2712
2746
  })) : S("", !0)
@@ -2715,28 +2749,28 @@ const ea = {
2715
2749
  ], 2)
2716
2750
  ]),
2717
2751
  default: g(() => [
2718
- $(f.$slots, "default")
2752
+ $(b.$slots, "default")
2719
2753
  ]),
2720
2754
  _: 2
2721
2755
  }, [
2722
- Y(f.$slots, (G, Z) => ({
2756
+ Y(b.$slots, (G, Z) => ({
2723
2757
  name: Z,
2724
2758
  fn: g((oe) => [
2725
- $(f.$slots, Z, Q(ee(oe || {})))
2759
+ $(b.$slots, Z, Q(ee(oe || {})))
2726
2760
  ])
2727
2761
  })),
2728
- f.legacyPaginationFooter ? {
2762
+ b.legacyPaginationFooter ? {
2729
2763
  name: "paginatorstart",
2730
2764
  fn: g(() => [
2731
2765
  c("span", {
2732
2766
  class: B(["d-flex", o.loading ? "opacity-50" : ""]),
2733
2767
  "data-cy": "legacy-page-size"
2734
2768
  }, [
2735
- ma,
2736
- b(m(ae), {
2769
+ x[4] || (x[4] = c("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
2770
+ f(m(le), {
2737
2771
  options: n.value,
2738
- modelValue: u.value,
2739
- "onUpdate:modelValue": k[1] || (k[1] = (G) => u.value = G),
2772
+ modelValue: d.value,
2773
+ "onUpdate:modelValue": x[1] || (x[1] = (G) => d.value = G),
2740
2774
  class: "ms-2",
2741
2775
  onClick: z
2742
2776
  }, null, 8, ["options", "modelValue"])
@@ -2744,20 +2778,20 @@ const ea = {
2744
2778
  ]),
2745
2779
  key: "0"
2746
2780
  } : void 0,
2747
- f.legacyPaginationFooter ? {
2781
+ b.legacyPaginationFooter ? {
2748
2782
  name: "paginatorend",
2749
2783
  fn: g(() => [
2750
2784
  c("span", {
2751
2785
  "data-cy": "legacy-total",
2752
2786
  class: B(o.loading ? "opacity-50" : "")
2753
- }, h(d.value) + " " + h(m(X)(d.value, "result")) + " across " + h(p.value), 3)
2787
+ }, h(u.value) + " " + h(m(X)(u.value, "result")) + " across " + h(p.value), 3)
2754
2788
  ]),
2755
2789
  key: "1"
2756
2790
  } : void 0
2757
2791
  ]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
2758
2792
  ]));
2759
2793
  }
2760
- }), pa = { class: "d-flex position-relative" }, va = { class: "d-flex w-100" }, ya = { class: "d-flex w-100" }, Cl = /* @__PURE__ */ F({
2794
+ }), ml = { class: "d-flex position-relative" }, pl = { class: "d-flex w-100" }, yl = { class: "d-flex w-100" }, Va = /* @__PURE__ */ F({
2761
2795
  __name: "ForgeFilterHeader",
2762
2796
  props: /* @__PURE__ */ E({
2763
2797
  dataType: {},
@@ -2772,56 +2806,56 @@ const ea = {
2772
2806
  }),
2773
2807
  emits: ["update:modelValue"],
2774
2808
  setup(e) {
2775
- const t = A(e, "modelValue"), a = (l, n) => {
2776
- if (!l || Array.isArray(l) && l.length === 0)
2809
+ const t = A(e, "modelValue"), l = (a, n) => {
2810
+ if (!a || Array.isArray(a) && a.length === 0)
2777
2811
  return n;
2778
- const u = (r) => {
2812
+ const d = (r) => {
2779
2813
  var p;
2780
- const d = (p = e.dropdownOptions) == null ? void 0 : p.find(
2781
- (v) => e.optionValue ? v[e.optionValue] === r : Object.keys(v).every((s) => r.hasOwnProperty(s) && v[s] === r[s])
2814
+ const u = (p = e.dropdownOptions) == null ? void 0 : p.find(
2815
+ (y) => e.optionValue ? y[e.optionValue] === r : Object.keys(y).every((s) => r.hasOwnProperty(s) && y[s] === r[s])
2782
2816
  );
2783
- return e.optionLabel ? d[e.optionLabel] : d;
2817
+ return e.optionLabel ? u[e.optionLabel] : u;
2784
2818
  };
2785
- return Array.isArray(l) ? l.map(u).join(", ") : u(l);
2819
+ return Array.isArray(a) ? a.map(d).join(", ") : d(a);
2786
2820
  }, o = () => {
2787
2821
  e.clearFilter ? e.clearFilter() : t.value = null;
2788
2822
  };
2789
- return (l, n) => {
2790
- const u = ue, r = R;
2791
- return i(), y("div", pa, [
2792
- l.dataType === "numeric" ? (i(), w(u, _({
2823
+ return (a, n) => {
2824
+ const d = ue, r = R;
2825
+ return i(), v("div", ml, [
2826
+ a.dataType === "numeric" ? (i(), w(d, _({
2793
2827
  key: 0,
2794
2828
  modelValue: t.value,
2795
- "onUpdate:modelValue": n[0] || (n[0] = (d) => t.value = d)
2796
- }, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (i(), w(ve, _({
2829
+ "onUpdate:modelValue": n[0] || (n[0] = (u) => t.value = u)
2830
+ }, a.$attrs), null, 16, ["modelValue"])) : a.dataType === "date" ? (i(), w(ye, _({
2797
2831
  key: 1,
2798
2832
  modelValue: t.value,
2799
- "onUpdate:modelValue": n[1] || (n[1] = (d) => t.value = d)
2800
- }, l.$attrs, {
2833
+ "onUpdate:modelValue": n[1] || (n[1] = (u) => t.value = u)
2834
+ }, a.$attrs, {
2801
2835
  "show-icon": !1,
2802
2836
  "show-on-focus": !0
2803
- }), null, 16, ["modelValue"])) : l.dataType === "select" ? (i(), w(m(ae), _({
2837
+ }), null, 16, ["modelValue"])) : a.dataType === "select" ? (i(), w(m(le), _({
2804
2838
  key: 2,
2805
2839
  modelValue: t.value,
2806
- "onUpdate:modelValue": n[2] || (n[2] = (d) => t.value = d)
2807
- }, l.$attrs, {
2808
- options: l.dropdownOptions,
2809
- "option-value": l.optionValue,
2810
- "option-label": l.optionLabel
2840
+ "onUpdate:modelValue": n[2] || (n[2] = (u) => t.value = u)
2841
+ }, a.$attrs, {
2842
+ options: a.dropdownOptions,
2843
+ "option-value": a.optionValue,
2844
+ "option-label": a.optionLabel
2811
2845
  }), {
2812
- value: g(({ value: d, placeholder: p }) => [
2813
- c("div", va, [
2846
+ value: g(({ value: u, placeholder: p }) => [
2847
+ c("div", pl, [
2814
2848
  c("span", {
2815
- class: B({ "filter-placeholder": d === null })
2816
- }, h(a(d, p)), 3),
2817
- l.showClearButton && t.value !== null ? (i(), w(r, {
2849
+ class: B({ "filter-placeholder": u === null })
2850
+ }, h(l(u, p)), 3),
2851
+ a.showClearButton && t.value !== null ? (i(), w(r, {
2818
2852
  key: 0,
2819
2853
  onClick: q(o, ["prevent"]),
2820
2854
  size: "small",
2821
2855
  class: "bg-transparent border-0 ms-auto p-0 pe-1"
2822
2856
  }, {
2823
2857
  default: g(() => [
2824
- b(m(V), {
2858
+ f(m(V), {
2825
2859
  icon: "bi:x",
2826
2860
  width: "1rem",
2827
2861
  height: "1rem",
@@ -2833,30 +2867,30 @@ const ea = {
2833
2867
  ])
2834
2868
  ]),
2835
2869
  _: 1
2836
- }, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (i(), w(m(ze), _({
2870
+ }, 16, ["modelValue", "options", "option-value", "option-label"])) : a.dataType === "multiselect" ? (i(), w(m(ze), _({
2837
2871
  key: 3,
2838
2872
  modelValue: t.value,
2839
- "onUpdate:modelValue": n[3] || (n[3] = (d) => t.value = d)
2840
- }, l.$attrs, {
2841
- options: l.dropdownOptions,
2873
+ "onUpdate:modelValue": n[3] || (n[3] = (u) => t.value = u)
2874
+ }, a.$attrs, {
2875
+ options: a.dropdownOptions,
2842
2876
  showToggleAll: !1,
2843
- "option-label": l.optionLabel,
2844
- "option-value": l.optionValue,
2877
+ "option-label": a.optionLabel,
2878
+ "option-value": a.optionValue,
2845
2879
  filter: ""
2846
2880
  }), {
2847
- value: g(({ value: d, placeholder: p }) => [
2848
- c("div", ya, [
2881
+ value: g(({ value: u, placeholder: p }) => [
2882
+ c("div", yl, [
2849
2883
  c("span", {
2850
- class: B({ "filter-placeholder": (d == null ? void 0 : d.length) === 0 || d === null })
2851
- }, h(a(d, p)), 3),
2852
- l.showClearButton && (d == null ? void 0 : d.length) > 0 ? (i(), w(r, {
2884
+ class: B({ "filter-placeholder": (u == null ? void 0 : u.length) === 0 || u === null })
2885
+ }, h(l(u, p)), 3),
2886
+ a.showClearButton && (u == null ? void 0 : u.length) > 0 ? (i(), w(r, {
2853
2887
  key: 0,
2854
2888
  onClick: q(o, ["prevent"]),
2855
2889
  size: "small",
2856
2890
  class: "bg-transparent border-0 ms-auto p-0 pe-1"
2857
2891
  }, {
2858
2892
  default: g(() => [
2859
- b(m(V), {
2893
+ f(m(V), {
2860
2894
  icon: "bi:x",
2861
2895
  width: "1rem",
2862
2896
  height: "1rem",
@@ -2871,16 +2905,16 @@ const ea = {
2871
2905
  }, 16, ["modelValue", "options", "option-label", "option-value"])) : (i(), w(m(ie), _({
2872
2906
  key: 4,
2873
2907
  modelValue: t.value,
2874
- "onUpdate:modelValue": n[4] || (n[4] = (d) => t.value = d)
2875
- }, l.$attrs), null, 16, ["modelValue"])),
2876
- l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (i(), w(r, {
2908
+ "onUpdate:modelValue": n[4] || (n[4] = (u) => t.value = u)
2909
+ }, a.$attrs), null, 16, ["modelValue"])),
2910
+ a.showClearButton && t.value !== null && a.dataType !== "select" && a.dataType !== "multiselect" && a.dataType !== "date" ? (i(), w(r, {
2877
2911
  key: 5,
2878
2912
  onClick: q(o, ["prevent"]),
2879
2913
  size: "small",
2880
2914
  class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
2881
2915
  }, {
2882
2916
  default: g(() => [
2883
- b(m(V), {
2917
+ f(m(V), {
2884
2918
  icon: "bi:x",
2885
2919
  width: "1rem",
2886
2920
  height: "1rem",
@@ -2893,48 +2927,48 @@ const ea = {
2893
2927
  };
2894
2928
  }
2895
2929
  });
2896
- function ye(e, t, a, o) {
2897
- const l = t.flatMap((n) => n.file);
2930
+ function ve(e, t, l, o) {
2931
+ const a = t.flatMap((n) => n.file);
2898
2932
  return t = t.map((n) => ({ ...n, status: n.status == "Duplicate" ? "Not Uploaded" : n.status })), e.forEach((n) => {
2899
- const u = l.findIndex((d) => d.name === n.name);
2933
+ const d = a.findIndex((u) => u.name === n.name);
2900
2934
  let r = "Not Uploaded";
2901
- u === -1 ? ((!a.includes(n.type) || !(n.size <= o)) && (r = a.includes(n.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
2935
+ d === -1 ? ((!l.includes(n.type) || !(n.size <= o)) && (r = l.includes(n.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
2902
2936
  file: n,
2903
2937
  status: r,
2904
2938
  blobFileName: null
2905
- })) : t[u].status = "Duplicate";
2939
+ })) : t[d].status = "Duplicate";
2906
2940
  }), t;
2907
2941
  }
2908
- async function ba(e, t) {
2942
+ async function vl(e, t) {
2909
2943
  if (e === "Uploaded" && t !== null)
2910
2944
  try {
2911
2945
  await new ce(t).delete();
2912
- } catch (a) {
2913
- if (a !== "BlobNotFound") {
2946
+ } catch (l) {
2947
+ if (l !== "BlobNotFound") {
2914
2948
  e = "DeleteFileFailed";
2915
2949
  return;
2916
2950
  }
2917
2951
  }
2918
2952
  }
2919
- function re(e, t = !0, a = 1) {
2953
+ function re(e, t = !0, l = 1) {
2920
2954
  const o = t ? 1e3 : 1024;
2921
2955
  if (Math.abs(e) < o)
2922
2956
  return e + " B";
2923
- const l = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
2957
+ const a = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
2924
2958
  let n = -1;
2925
- const u = 10 ** a;
2959
+ const d = 10 ** l;
2926
2960
  do
2927
2961
  e /= o, ++n;
2928
- while (Math.round(Math.abs(e) * u) / u >= o && n < l.length - 1);
2929
- return e.toFixed(a) + " " + l[n];
2962
+ while (Math.round(Math.abs(e) * d) / d >= o && n < a.length - 1);
2963
+ return e.toFixed(l) + " " + a[n];
2930
2964
  }
2931
- function fa(e) {
2965
+ function bl(e) {
2932
2966
  return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
2933
2967
  }
2934
- function ga(e) {
2968
+ function fl(e) {
2935
2969
  return URL.createObjectURL(e);
2936
2970
  }
2937
- const ha = { class: "d-flex justify-content-between" }, wa = ["accept", "disabled", "multiple"], xa = /* @__PURE__ */ F({
2971
+ const gl = { class: "d-flex justify-content-between" }, hl = ["accept", "disabled", "multiple"], wl = /* @__PURE__ */ F({
2938
2972
  __name: "UploadButton",
2939
2973
  props: /* @__PURE__ */ E({
2940
2974
  acceptedFileTypes: {},
@@ -2946,52 +2980,52 @@ const ha = { class: "d-flex justify-content-between" }, wa = ["accept", "disable
2946
2980
  }),
2947
2981
  emits: ["update:modelValue"],
2948
2982
  setup(e) {
2949
- const t = A(e, "modelValue"), a = x(() => e.maxFileInput <= t.value.length), o = (l) => {
2950
- t.value = ye(l, t.value, e.acceptedFileTypes, e.maxFileInput);
2983
+ const t = A(e, "modelValue"), l = k(() => e.maxFileInput <= t.value.length), o = (a) => {
2984
+ t.value = ve(a, t.value, e.acceptedFileTypes, e.maxFileInput);
2951
2985
  };
2952
- return (l, n) => (i(), y("div", ha, [
2953
- $(l.$slots, "message"),
2986
+ return (a, n) => (i(), v("div", gl, [
2987
+ $(a.$slots, "message"),
2954
2988
  c("div", null, [
2955
2989
  c("input", {
2956
2990
  id: "file-input",
2957
2991
  type: "file",
2958
2992
  class: "d-none",
2959
- accept: l.acceptedFileTypes.join(", "),
2960
- disabled: a.value,
2961
- multiple: l.maxFileInput > 1,
2962
- onInput: n[0] || (n[0] = (u) => o([...u.target.files]))
2963
- }, null, 40, wa),
2993
+ accept: a.acceptedFileTypes.join(", "),
2994
+ disabled: l.value,
2995
+ multiple: a.maxFileInput > 1,
2996
+ onInput: n[0] || (n[0] = (d) => o([...d.target.files]))
2997
+ }, null, 40, hl),
2964
2998
  c("label", {
2965
- class: B([{ disabled: a.value }, "btn btn-primary"]),
2999
+ class: B([{ disabled: l.value }, "btn btn-primary"]),
2966
3000
  id: "file-input-button",
2967
3001
  for: "file-input"
2968
3002
  }, [
2969
- $(l.$slots, "button-content", {}, () => [
2970
- b(m(V), {
3003
+ $(a.$slots, "button-content", {}, () => [
3004
+ f(m(V), {
2971
3005
  icon: "bi:upload",
2972
3006
  class: "me-2",
2973
3007
  height: "20px",
2974
3008
  width: "20px"
2975
3009
  }),
2976
- O(" Browse your computer ")
3010
+ n[1] || (n[1] = O(" Browse your computer "))
2977
3011
  ])
2978
3012
  ], 2)
2979
3013
  ]),
2980
- l.showDragDropArea ? (i(), y("div", {
3014
+ a.showDragDropArea ? (i(), v("div", {
2981
3015
  class: "ms-auto",
2982
- key: l.acceptedFileTypes.length,
3016
+ key: a.acceptedFileTypes.length,
2983
3017
  id: "accepted-file-types"
2984
- }, "Accepted File Types: " + h(l.acceptedFileTypes.map((u) => u.split("/").pop()).join(", ")), 1)) : S("", !0)
3018
+ }, "Accepted File Types: " + h(a.acceptedFileTypes.map((d) => d.split("/").pop()).join(", ")), 1)) : S("", !0)
2985
3019
  ]));
2986
3020
  }
2987
- }), ka = {
3021
+ }), xl = {
2988
3022
  key: 0,
2989
3023
  class: "py-4 px-3",
2990
3024
  id: "placeholder-message"
2991
- }, $a = {
3025
+ }, kl = {
2992
3026
  key: 1,
2993
3027
  class: "d-flex flex-column"
2994
- }, Ba = /* @__PURE__ */ F({
3028
+ }, $l = /* @__PURE__ */ F({
2995
3029
  __name: "DragDropArea",
2996
3030
  props: /* @__PURE__ */ E({
2997
3031
  maxFileInput: {},
@@ -3003,30 +3037,30 @@ const ha = { class: "d-flex justify-content-between" }, wa = ["accept", "disable
3003
3037
  }),
3004
3038
  emits: ["update:modelValue"],
3005
3039
  setup(e) {
3006
- const t = A(e, "modelValue"), a = I(!1), o = x(() => e.maxFileInput <= t.value.length), l = (n) => {
3007
- a.value = !1, n.dataTransfer.files.length > e.maxFileInput || o.value ? n.preventDefault() : t.value = ye([...n.dataTransfer.files], t.value, e.acceptedFileTypes, e.maxFileSize);
3040
+ const t = A(e, "modelValue"), l = I(!1), o = k(() => e.maxFileInput <= t.value.length), a = (n) => {
3041
+ l.value = !1, n.dataTransfer.files.length > e.maxFileInput || o.value ? n.preventDefault() : t.value = ve([...n.dataTransfer.files], t.value, e.acceptedFileTypes, e.maxFileSize);
3008
3042
  };
3009
- return (n, u) => (i(), y("div", {
3043
+ return (n, d) => (i(), v("div", {
3010
3044
  id: "drag-drop-area",
3011
- class: B(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
3012
- onDragleave: u[0] || (u[0] = q((r) => a.value = !1, ["prevent"])),
3013
- onDragover: u[1] || (u[1] = q((r) => a.value = !0, ["prevent"])),
3014
- onDrop: q(l, ["prevent"])
3045
+ class: B(`${l.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
3046
+ onDragleave: d[0] || (d[0] = q((r) => l.value = !1, ["prevent"])),
3047
+ onDragover: d[1] || (d[1] = q((r) => l.value = !0, ["prevent"])),
3048
+ onDrop: q(a, ["prevent"])
3015
3049
  }, [
3016
- t.value.length === 0 ? (i(), y("div", ka, [
3017
- b(m(V), {
3050
+ t.value.length === 0 ? (i(), v("div", xl, [
3051
+ f(m(V), {
3018
3052
  icon: "bi:upload",
3019
3053
  class: "me-2",
3020
3054
  height: "20px",
3021
3055
  width: "20px"
3022
3056
  }),
3023
- O(" Drag and drop files here ")
3024
- ])) : (i(), y("div", $a, [
3057
+ d[2] || (d[2] = O(" Drag and drop files here "))
3058
+ ])) : (i(), v("div", kl, [
3025
3059
  $(n.$slots, "default")
3026
3060
  ]))
3027
3061
  ], 34));
3028
3062
  }
3029
- }), Fa = { class: "d-flex align-items-center me-2" }, _a = /* @__PURE__ */ F({
3063
+ }), Bl = { class: "d-flex align-items-center me-2" }, Fl = /* @__PURE__ */ F({
3030
3064
  __name: "UploadStatus",
3031
3065
  props: {
3032
3066
  fileSize: {},
@@ -3035,7 +3069,7 @@ const ha = { class: "d-flex justify-content-between" }, wa = ["accept", "disable
3035
3069
  uploadStatus: {}
3036
3070
  },
3037
3071
  setup(e) {
3038
- const t = x(() => e.uploadStatus === "Failed" || e.uploadStatus === "InvalidFileType" || e.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), a = x(() => {
3072
+ const t = k(() => e.uploadStatus === "Failed" || e.uploadStatus === "InvalidFileType" || e.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), l = k(() => {
3039
3073
  switch (e.uploadStatus) {
3040
3074
  case "InvalidFileType":
3041
3075
  return "Upload Failed: File type is not accepted.";
@@ -3051,8 +3085,8 @@ const ha = { class: "d-flex justify-content-between" }, wa = ["accept", "disable
3051
3085
  return "Upload Failed: Connection error, please try again.";
3052
3086
  }
3053
3087
  });
3054
- return (o, l) => (i(), y("div", Fa, [
3055
- o.uploadStatus === "Uploading" ? (i(), w(Kt, {
3088
+ return (o, a) => (i(), v("div", Bl, [
3089
+ o.uploadStatus === "Uploading" ? (i(), w(Gt, {
3056
3090
  key: 0,
3057
3091
  pixelWidth: 200,
3058
3092
  animate: "",
@@ -3063,29 +3097,29 @@ const ha = { class: "d-flex justify-content-between" }, wa = ["accept", "disable
3063
3097
  ]),
3064
3098
  _: 1
3065
3099
  })) : S("", !0),
3066
- o.uploadStatus !== "Uploading" && o.uploadStatus !== "Not Uploaded" && o.uploadStatus !== "Uploaded" && o.uploadStatus !== "Preparing" ? (i(), w(le, {
3100
+ o.uploadStatus !== "Uploading" && o.uploadStatus !== "Not Uploaded" && o.uploadStatus !== "Uploaded" && o.uploadStatus !== "Preparing" ? (i(), w(ae, {
3067
3101
  key: 1,
3068
3102
  id: "upload-status-alert",
3069
3103
  severity: t.value,
3070
3104
  class: "mb-0 w-75 ms-auto"
3071
3105
  }, {
3072
3106
  default: g(() => [
3073
- O(h(a.value), 1)
3107
+ O(h(l.value), 1)
3074
3108
  ]),
3075
3109
  _: 1
3076
3110
  }, 8, ["severity"])) : S("", !0)
3077
3111
  ]));
3078
3112
  }
3079
- }), Sa = ["data-cy"], Va = { class: "ms-3 d-flex flex-column" }, Ca = {
3113
+ }), _l = ["data-cy"], Sl = { class: "ms-3 d-flex flex-column" }, Vl = {
3080
3114
  key: 1,
3081
3115
  id: "file-name"
3082
- }, Ta = {
3116
+ }, Cl = {
3083
3117
  class: "text-black-50",
3084
3118
  id: "file-type"
3085
- }, Ma = {
3119
+ }, Tl = {
3086
3120
  class: "text-black-50",
3087
3121
  id: "file-size"
3088
- }, Pa = { class: "ms-auto my-auto d-flex" }, Ia = /* @__PURE__ */ F({
3122
+ }, Pl = { class: "ms-auto my-auto d-flex" }, Ml = /* @__PURE__ */ F({
3089
3123
  __name: "FileInfo",
3090
3124
  props: /* @__PURE__ */ E({
3091
3125
  editableFileName: { type: Boolean },
@@ -3104,52 +3138,52 @@ const ha = { class: "d-flex justify-content-between" }, wa = ["accept", "disable
3104
3138
  }),
3105
3139
  emits: /* @__PURE__ */ E(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
3106
3140
  setup(e, { emit: t }) {
3107
- const a = A(e, "file"), o = A(e, "blobFileName"), l = A(e, "uploadStatus"), n = t, u = I(a.value.name), r = I(""), d = I(0), p = I(), v = x(() => e.acceptedFileTypes.includes(a.value.type)), s = x(() => a.value.size <= e.maxFileSize), T = () => {
3108
- a.value = new File([a.value], u.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() });
3141
+ const l = A(e, "file"), o = A(e, "blobFileName"), a = A(e, "uploadStatus"), n = t, d = I(l.value.name), r = I(""), u = I(0), p = I(), y = k(() => e.acceptedFileTypes.includes(l.value.type)), s = k(() => l.value.size <= e.maxFileSize), T = () => {
3142
+ l.value = new File([l.value], d.value, { type: l.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() });
3109
3143
  }, C = async () => {
3110
- if (!v.value || !s.value) {
3111
- l.value = v.value ? "InvalidFileSize" : "InvalidFileType";
3144
+ if (!y.value || !s.value) {
3145
+ a.value = y.value ? "InvalidFileSize" : "InvalidFileType";
3112
3146
  return;
3113
3147
  }
3114
- l.value = "Preparing", p.value = new AbortController();
3115
- const [P, z] = await e.getFileUrlAction(a.value.name);
3116
- if (!P) {
3117
- l.value = "Failed";
3148
+ a.value = "Preparing", p.value = new AbortController();
3149
+ const [M, z] = await e.getFileUrlAction(l.value.name);
3150
+ if (!M) {
3151
+ a.value = "Failed";
3118
3152
  return;
3119
3153
  }
3120
3154
  try {
3121
- l.value = "Uploading";
3122
- const f = new ce(P), k = {
3155
+ a.value = "Uploading";
3156
+ const b = new ce(M), x = {
3123
3157
  abortSignal: p.value.signal,
3124
- onProgress: (G) => d.value = G.loadedBytes,
3158
+ onProgress: (G) => u.value = G.loadedBytes,
3125
3159
  tags: { temp: "true" }
3126
3160
  };
3127
- await f.uploadData(a.value, k), r.value = P, l.value = "Uploaded", o.value = z;
3128
- } catch (f) {
3129
- if (f.name === "AbortError") {
3130
- l.value = "Aborted";
3161
+ await b.uploadData(l.value, x), r.value = M, a.value = "Uploaded", o.value = z;
3162
+ } catch (b) {
3163
+ if (b.name === "AbortError") {
3164
+ a.value = "Aborted";
3131
3165
  return;
3132
3166
  }
3133
- l.value = "Failed";
3167
+ a.value = "Failed";
3134
3168
  }
3135
- }, M = async () => {
3136
- await ba(l.value, r.value), n("deleted", a.value);
3169
+ }, P = async () => {
3170
+ await vl(a.value, r.value), n("deleted", l.value);
3137
3171
  };
3138
3172
  return ne(() => {
3139
3173
  e.autoUploadToBlob && C();
3140
- }), (P, z) => {
3141
- const f = R;
3142
- return i(), y("div", {
3174
+ }), (M, z) => {
3175
+ const b = R;
3176
+ return i(), v("div", {
3143
3177
  class: "py-4 px-3 d-flex",
3144
- "data-cy": `file-info-${a.value.name}`
3178
+ "data-cy": `file-info-${l.value.name}`
3145
3179
  }, [
3146
3180
  c("div", null, [
3147
- m(fa)(a.value.type) ? (i(), w(m(Oe), {
3181
+ m(bl)(l.value.type) ? (i(), w(m(Oe), {
3148
3182
  key: 0,
3149
3183
  id: "thumbnail-image",
3150
3184
  "image-class": "image-file-thumbnail border",
3151
- src: m(ga)(a.value),
3152
- alt: a.value.name,
3185
+ src: m(fl)(l.value),
3186
+ alt: l.value.name,
3153
3187
  width: "75px",
3154
3188
  preview: ""
3155
3189
  }, null, 8, ["src", "alt"])) : (i(), w(m(V), {
@@ -3160,76 +3194,76 @@ const ha = { class: "d-flex justify-content-between" }, wa = ["accept", "disable
3160
3194
  width: "75px"
3161
3195
  }))
3162
3196
  ]),
3163
- c("div", Va, [
3197
+ c("div", Sl, [
3164
3198
  c("div", null, [
3165
- P.editableFileName ? (i(), w($t, {
3199
+ M.editableFileName ? (i(), w($t, {
3166
3200
  key: 0,
3167
3201
  id: "edit-file-name",
3168
- modelValue: u.value,
3169
- "onUpdate:modelValue": z[0] || (z[0] = (k) => u.value = k),
3170
- rules: P.customFileNameRules,
3171
- name: a.value.name,
3202
+ modelValue: d.value,
3203
+ "onUpdate:modelValue": z[0] || (z[0] = (x) => d.value = x),
3204
+ rules: M.customFileNameRules,
3205
+ name: l.value.name,
3172
3206
  "complete-action": T
3173
- }, null, 8, ["modelValue", "rules", "name"])) : (i(), y("span", Ca, h(a.value.name), 1))
3207
+ }, null, 8, ["modelValue", "rules", "name"])) : (i(), v("span", Vl, h(l.value.name), 1))
3174
3208
  ]),
3175
- c("span", Ta, "File type: " + h(a.value.type.split("/").pop()), 1),
3176
- c("span", Ma, "File size: " + h(m(re)(a.value.size)), 1)
3209
+ c("span", Cl, "File type: " + h(l.value.type.split("/").pop()), 1),
3210
+ c("span", Tl, "File size: " + h(m(re)(l.value.size)), 1)
3177
3211
  ]),
3178
- c("div", Pa, [
3179
- (i(), w(_a, {
3180
- key: l.value,
3181
- "file-size": a.value.size,
3182
- "upload-status": l.value,
3183
- "bytes-uploaded": d.value,
3184
- "max-file-size": P.maxFileSize
3212
+ c("div", Pl, [
3213
+ (i(), w(Fl, {
3214
+ key: a.value,
3215
+ "file-size": l.value.size,
3216
+ "upload-status": a.value,
3217
+ "bytes-uploaded": u.value,
3218
+ "max-file-size": M.maxFileSize
3185
3219
  }, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
3186
- l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (i(), w(f, {
3220
+ a.value === "Not Uploaded" || a.value === "Failed" || a.value === "Duplicate" || a.value === "Aborted" ? (i(), w(b, {
3187
3221
  key: 0,
3188
3222
  link: "",
3189
3223
  onClick: C
3190
3224
  }, {
3191
3225
  default: g(() => [
3192
- b(m(V), {
3193
- icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
3226
+ f(m(V), {
3227
+ icon: a.value === "Not Uploaded" || a.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
3194
3228
  }, null, 8, ["icon"])
3195
3229
  ]),
3196
3230
  _: 1
3197
3231
  })) : S("", !0),
3198
- l.value === "Uploading" ? (i(), w(f, {
3232
+ a.value === "Uploading" ? (i(), w(b, {
3199
3233
  key: 1,
3200
3234
  link: "",
3201
- onClick: z[1] || (z[1] = (k) => p.value.value.abort())
3235
+ onClick: z[1] || (z[1] = (x) => p.value.value.abort())
3202
3236
  }, {
3203
3237
  default: g(() => [
3204
- b(m(V), { icon: "bi:x-circle-fill" })
3238
+ f(m(V), { icon: "bi:x-circle-fill" })
3205
3239
  ]),
3206
3240
  _: 1
3207
- })) : (i(), w(f, {
3241
+ })) : (i(), w(b, {
3208
3242
  key: 2,
3209
3243
  link: "",
3210
- onClick: M,
3244
+ onClick: P,
3211
3245
  id: "delete-button"
3212
3246
  }, {
3213
3247
  default: g(() => [
3214
- b(m(V), { icon: "bi:trash" })
3248
+ f(m(V), { icon: "bi:trash" })
3215
3249
  ]),
3216
3250
  _: 1
3217
3251
  }))
3218
3252
  ])
3219
- ], 8, Sa);
3253
+ ], 8, _l);
3220
3254
  };
3221
3255
  }
3222
- }), za = { class: "d-flex justify-content-end mt-1" }, Oa = { id: "max-file-size" }, Da = /* @__PURE__ */ F({
3256
+ }), Il = { class: "d-flex justify-content-end mt-1" }, zl = { id: "max-file-size" }, Ol = /* @__PURE__ */ F({
3223
3257
  __name: "MaxFileSize",
3224
3258
  props: {
3225
3259
  maxFileSize: {}
3226
3260
  },
3227
3261
  setup(e) {
3228
- return (t, a) => (i(), y("div", za, [
3229
- c("div", Oa, "Max file size: " + h(m(re)(t.maxFileSize)), 1)
3262
+ return (t, l) => (i(), v("div", Il, [
3263
+ c("div", zl, "Max file size: " + h(m(re)(t.maxFileSize)), 1)
3230
3264
  ]));
3231
3265
  }
3232
- }), Ua = { "data-cy": "file-uploader" }, Aa = { key: 0 }, Tl = /* @__PURE__ */ F({
3266
+ }), Dl = { "data-cy": "file-uploader" }, Ul = { key: 0 }, Ca = /* @__PURE__ */ F({
3233
3267
  __name: "ForgeFileUploader",
3234
3268
  props: /* @__PURE__ */ E({
3235
3269
  acceptedFileTypes: {},
@@ -3246,72 +3280,72 @@ const ha = { class: "d-flex justify-content-between" }, wa = ["accept", "disable
3246
3280
  }),
3247
3281
  emits: ["update:modelValue"],
3248
3282
  setup(e) {
3249
- const t = A(e, "modelValue"), a = e, o = (l) => {
3250
- t.value = t.value.filter((n) => n.file != l);
3283
+ const t = A(e, "modelValue"), l = e, o = (a) => {
3284
+ t.value = t.value.filter((n) => n.file != a);
3251
3285
  };
3252
- return (l, n) => (i(), y("div", Ua, [
3253
- b(xa, _(a, {
3286
+ return (a, n) => (i(), v("div", Dl, [
3287
+ f(wl, _(l, {
3254
3288
  modelValue: t.value,
3255
- "onUpdate:modelValue": n[0] || (n[0] = (u) => t.value = u)
3289
+ "onUpdate:modelValue": n[0] || (n[0] = (d) => t.value = d)
3256
3290
  }), null, 16, ["modelValue"]),
3257
- l.showDragDropArea ? (i(), y("div", Aa, [
3258
- b(Ba, {
3259
- "max-file-input": a.maxFileInput,
3260
- "max-file-size": a.maxFileSize,
3261
- "accepted-file-types": a.acceptedFileTypes,
3291
+ a.showDragDropArea ? (i(), v("div", Ul, [
3292
+ f($l, {
3293
+ "max-file-input": l.maxFileInput,
3294
+ "max-file-size": l.maxFileSize,
3295
+ "accepted-file-types": l.acceptedFileTypes,
3262
3296
  modelValue: t.value,
3263
- "onUpdate:modelValue": n[1] || (n[1] = (u) => t.value = u)
3297
+ "onUpdate:modelValue": n[1] || (n[1] = (d) => t.value = d)
3264
3298
  }, {
3265
3299
  default: g(() => [
3266
- (i(!0), y(L, null, Y(t.value, ({ file: u }, r) => (i(), y("span", null, [
3267
- (i(), w(Ia, _({
3268
- key: u.name,
3300
+ (i(!0), v(L, null, Y(t.value, ({ file: d }, r) => (i(), v("span", null, [
3301
+ (i(), w(Ml, _({
3302
+ key: d.name,
3269
3303
  class: r === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
3270
3304
  file: t.value[r].file,
3271
- "onUpdate:file": (d) => t.value[r].file = d,
3305
+ "onUpdate:file": (u) => t.value[r].file = u,
3272
3306
  "blob-file-name": t.value[r].blobFileName,
3273
- "onUpdate:blobFileName": (d) => t.value[r].blobFileName = d,
3307
+ "onUpdate:blobFileName": (u) => t.value[r].blobFileName = u,
3274
3308
  "upload-status": t.value[r].status,
3275
- "onUpdate:uploadStatus": (d) => t.value[r].status = d,
3309
+ "onUpdate:uploadStatus": (u) => t.value[r].status = u,
3276
3310
  ref_for: !0
3277
- }, a, { onDeleted: o }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
3311
+ }, l, { onDeleted: o }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
3278
3312
  ]))), 256))
3279
3313
  ]),
3280
3314
  _: 1
3281
3315
  }, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
3282
- b(Da, {
3283
- "max-file-size": a.maxFileSize
3316
+ f(Ol, {
3317
+ "max-file-size": l.maxFileSize
3284
3318
  }, null, 8, ["max-file-size"])
3285
3319
  ])) : S("", !0)
3286
3320
  ]));
3287
3321
  }
3288
3322
  });
3289
3323
  export {
3290
- ml as Bootstrap_PT,
3291
- pl as ForgeActionButton,
3292
- le as ForgeAlert,
3324
+ ca as Bootstrap_PT,
3325
+ ma as ForgeActionButton,
3326
+ ae as ForgeAlert,
3293
3327
  ct as ForgeCheckbox,
3294
- Bl as ForgeChips,
3295
- ve as ForgeDatepicker,
3296
- Tl as ForgeFileUploader,
3297
- Cl as ForgeFilterHeader,
3298
- kl as ForgeForm,
3299
- $l as ForgeFormField,
3328
+ $a as ForgeChips,
3329
+ ye as ForgeDatepicker,
3330
+ Ca as ForgeFileUploader,
3331
+ Va as ForgeFilterHeader,
3332
+ xa as ForgeForm,
3333
+ ka as ForgeFormField,
3300
3334
  $t as ForgeInlineEditor,
3301
- vl as ForgeLink,
3335
+ pa as ForgeLink,
3302
3336
  me as ForgeLoader,
3303
- fl as ForgeModal,
3337
+ ba as ForgeModal,
3304
3338
  pe as ForgeMultiSelect,
3305
- hl as ForgeMultiSelectPreview,
3306
- gl as ForgeNavbar,
3307
- wl as ForgePageHeader,
3308
- Kt as ForgeProgressBar,
3309
- xl as ForgeRemainingCharacters,
3310
- Fl as ForgeStatWidget,
3311
- _l as ForgeStepper,
3312
- Vl as ForgeTable,
3313
- Sl as ForgeTile,
3314
- bl as convertToMultiSelectOption,
3315
- yl as enumToMultiSelectList,
3316
- vt as parseError
3339
+ ga as ForgeMultiSelectPreview,
3340
+ fa as ForgeNavbar,
3341
+ ha as ForgePageHeader,
3342
+ Gt as ForgeProgressBar,
3343
+ wa as ForgeRemainingCharacters,
3344
+ Ba as ForgeStatWidget,
3345
+ Fa as ForgeStepper,
3346
+ Sa as ForgeTable,
3347
+ _a as ForgeTile,
3348
+ va as convertToMultiSelectOption,
3349
+ ya as enumToMultiSelectList,
3350
+ yt as parseError
3317
3351
  };