@3squared/forge-ui-3 0.13.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,30 +1,30 @@
1
- import ge from "primevue/message";
2
- import { defineComponent as F, openBlock as i, createBlock as w, normalizeProps as ee, guardReactiveProps as te, withCtx as f, createElementVNode as c, normalizeClass as B, unref as p, createCommentVNode as V, createVNode as b, renderSlot as $, ref as I, createElementBlock as y, Fragment as N, mergeProps as S, mergeModels as E, useModel as U, onMounted as ae, watch as ie, computed as x, createTextVNode as O, toDisplayString as h, withDirectives as j, vShow as H, createSlots as le, renderList as q, isRef as re, withKeys as X, useAttrs as he, withModifiers as Y, normalizeStyle as we } from "vue";
3
- import { Icon as C } from "@iconify/vue";
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 f, renderSlot as $, ref as I, createElementBlock as v, 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";
3
+ import { Icon as V } from "@iconify/vue";
4
4
  import R from "primevue/button";
5
- import xe from "primevue/toast";
6
- import ke from "primevue/checkbox";
5
+ import he from "primevue/toast";
6
+ import we from "primevue/checkbox";
7
7
  import { useField as K } from "vee-validate";
8
- import $e from "primevue/progressspinner";
9
- import Be from "primevue/dialog";
10
- import de from "primevue/inputtext";
11
- import { vOnClickOutside as Fe } from "@vueuse/components";
12
- import _e from "primevue/menubar";
13
- import Se from "vue-multiselect";
14
- import Ve from "primevue/calendar";
15
- import oe from "primevue/dropdown";
16
- import Ce from "primevue/inputmask";
17
- import Te from "primevue/textarea";
18
- import ce from "primevue/inputnumber";
19
- import Me from "primevue/chips";
20
- import Pe from "primevue/progressbar";
21
- import Ie from "primevue/divider";
22
- import ze from "primevue/steps";
23
- import Oe from "primevue/datatable";
24
- import De from "primevue/multiselect";
25
- import { BlockBlobClient as me } from "@azure/storage-blob";
26
- import Ue from "primevue/image";
27
- const Ae = {
8
+ import xe from "primevue/progressspinner";
9
+ import ke from "primevue/dialog";
10
+ import ie from "primevue/inputtext";
11
+ import { vOnClickOutside as $e } from "@vueuse/components";
12
+ import Be from "primevue/menubar";
13
+ import Fe from "vue-multiselect";
14
+ import _e from "primevue/calendar";
15
+ import ae from "primevue/dropdown";
16
+ import Se from "primevue/inputmask";
17
+ import Ve from "primevue/textarea";
18
+ import ue from "primevue/inputnumber";
19
+ import Ce from "primevue/chips";
20
+ import Te from "primevue/progressbar";
21
+ import Me from "primevue/divider";
22
+ import Pe from "primevue/steps";
23
+ import Ie from "primevue/datatable";
24
+ import ze from "primevue/multiselect";
25
+ import { BlockBlobClient as ce } from "@azure/storage-blob";
26
+ import Oe from "primevue/image";
27
+ const De = {
28
28
  button: {
29
29
  root: ({ props: e }) => ({
30
30
  class: [
@@ -108,7 +108,7 @@ const Ae = {
108
108
  ]
109
109
  })
110
110
  }
111
- }, Ne = {
111
+ }, Ue = {
112
112
  checkbox: {
113
113
  root: () => ({
114
114
  class: [
@@ -126,7 +126,7 @@ const Ae = {
126
126
  ]
127
127
  })
128
128
  }
129
- }, Ee = {
129
+ }, Ae = {
130
130
  dropdown: {
131
131
  root: ({ props: e }) => ({
132
132
  class: [
@@ -185,9 +185,16 @@ const Ae = {
185
185
  clearicon: "ms-auto my-auto",
186
186
  loadingIcon: "spinner-border spinner-border-sm border-0",
187
187
  itemGroupLabel: "ps-2 fw-bold",
188
- input: "w-100"
188
+ input: ({ instance: e }) => ({
189
+ class: [
190
+ "w-100",
191
+ {
192
+ "filter-placeholder": e.modelValue === void 0
193
+ }
194
+ ]
195
+ })
189
196
  }
190
- }, Le = {
197
+ }, Ne = {
191
198
  column: {
192
199
  sortBadge: "ms-2 my-auto cursor-pointer",
193
200
  headerCell: (e) => {
@@ -283,7 +290,7 @@ const Ae = {
283
290
  ]
284
291
  })
285
292
  }
286
- }, Re = {
293
+ }, Ee = {
287
294
  inputtext: {
288
295
  root: (e) => {
289
296
  var t, a;
@@ -298,7 +305,7 @@ const Ae = {
298
305
  };
299
306
  }
300
307
  }
301
- }, je = {
308
+ }, Le = {
302
309
  inputmask: {
303
310
  root: () => ({
304
311
  class: [
@@ -306,12 +313,12 @@ const Ae = {
306
313
  ]
307
314
  })
308
315
  }
309
- }, He = {
316
+ }, Re = {
310
317
  inputSwitch: {
311
318
  root: "form-check form-switch",
312
319
  input: "form-check-input"
313
320
  }
314
- }, Ye = {
321
+ }, je = {
315
322
  textarea: {
316
323
  root: () => ({
317
324
  class: [
@@ -319,13 +326,13 @@ const Ae = {
319
326
  ]
320
327
  })
321
328
  }
322
- }, qe = {
329
+ }, He = {
323
330
  // More PassThrough options in component file.
324
331
  chips: {
325
332
  root: "d-flex",
326
333
  label: "pe-2"
327
334
  }
328
- }, Ge = {
335
+ }, qe = {
329
336
  dialog: {
330
337
  header: () => ({
331
338
  class: ["modal-header"]
@@ -368,7 +375,7 @@ const Ae = {
368
375
  ]
369
376
  })
370
377
  }
371
- }, Ke = {
378
+ }, Ye = {
372
379
  overlaypanel: {
373
380
  root: (e) => ({
374
381
  class: [
@@ -382,7 +389,7 @@ const Ae = {
382
389
  content: "d-flex position-relative",
383
390
  closeButton: "position-absolute top-0 end-0 p-1 btn btn-link text-black ms-2"
384
391
  }
385
- }, We = {
392
+ }, Ge = {
386
393
  message: {
387
394
  root: ({ props: e }) => ({
388
395
  class: [
@@ -411,13 +418,13 @@ const Ae = {
411
418
  class: ["px-0 ms-2 btn d-flex"]
412
419
  })
413
420
  }
414
- }, Ze = {
421
+ }, Ke = {
415
422
  // More PT options defined in ForgeStepper.
416
423
  steps: {
417
424
  root: "w-100 mx-2 line",
418
425
  menu: "p-0 m-0 list-unstyled d-flex justify-content-between "
419
426
  }
420
- }, Je = {
427
+ }, We = {
421
428
  tabview: {
422
429
  navContainer: () => ({
423
430
  class: ["nav nav-tabs position-relative"]
@@ -455,7 +462,7 @@ const Ae = {
455
462
  class: ["p-2"]
456
463
  })
457
464
  }
458
- }, Xe = {
465
+ }, Ze = {
459
466
  // More PassThrough options defined in ForgeDatepicker.
460
467
  calendar: {
461
468
  root: "d-inline-flex relative w-100",
@@ -528,7 +535,7 @@ const Ae = {
528
535
  decrementButton: "btn btn-sm",
529
536
  incrementButton: "btn btn-sm"
530
537
  }
531
- }, Qe = {
538
+ }, Je = {
532
539
  multiselect: {
533
540
  root: ({ props: e }) => ({
534
541
  class: [
@@ -559,7 +566,7 @@ const Ae = {
559
566
  ]
560
567
  })
561
568
  }
562
- }, et = {
569
+ }, Xe = {
563
570
  // More PassThrough options in component file.
564
571
  progressbar: {
565
572
  root: () => ({
@@ -572,7 +579,7 @@ const Ae = {
572
579
  class: ["text-white"]
573
580
  })
574
581
  }
575
- }, tt = {
582
+ }, Qe = {
576
583
  // More PT options can be found in the ForgeTable file.
577
584
  dataTable: {
578
585
  datatable: "position-relative",
@@ -632,7 +639,7 @@ const Ae = {
632
639
  ]
633
640
  })
634
641
  }
635
- }, at = {
642
+ }, et = {
636
643
  badge: {
637
644
  root: ({ props: e }) => ({
638
645
  class: [
@@ -653,7 +660,7 @@ const Ae = {
653
660
  ]
654
661
  })
655
662
  }
656
- }, lt = {
663
+ }, tt = {
657
664
  // More PassThrough options in component file.
658
665
  menubar: {
659
666
  menu: ({ instance: e }) => ({
@@ -723,7 +730,7 @@ const Ae = {
723
730
  ]
724
731
  })
725
732
  }
726
- }, ot = {
733
+ }, at = {
727
734
  tooltip: {
728
735
  root: ({ context: e }) => ({
729
736
  class: [
@@ -745,7 +752,7 @@ const Ae = {
745
752
  class: ["tooltip-inner"]
746
753
  }
747
754
  }
748
- }, nt = {
755
+ }, lt = {
749
756
  selectbutton: {
750
757
  root: () => ({
751
758
  class: ["btn-group"]
@@ -763,7 +770,7 @@ const Ae = {
763
770
  ]
764
771
  })
765
772
  }
766
- }, st = {
773
+ }, ot = {
767
774
  progressspinner: {
768
775
  spinner: () => ({
769
776
  class: [
@@ -771,7 +778,7 @@ const Ae = {
771
778
  ]
772
779
  })
773
780
  }
774
- }, it = {
781
+ }, nt = {
775
782
  card: {
776
783
  root: () => ({
777
784
  class: ["card"]
@@ -795,11 +802,11 @@ const Ae = {
795
802
  class: ["card-header"]
796
803
  })
797
804
  }
798
- }, rt = {
805
+ }, st = {
799
806
  divider: {
800
807
  root: "border-bottom w-100 m-1"
801
808
  }
802
- }, dt = {
809
+ }, it = {
803
810
  image: {
804
811
  root: "position-relative d-inline-block",
805
812
  button: "preview-button",
@@ -812,7 +819,7 @@ const Ae = {
812
819
  zoominbutton: "btn text-white",
813
820
  closebutton: "btn text-white"
814
821
  }
815
- }, ut = {
822
+ }, rt = {
816
823
  toast: {
817
824
  message: () => ({
818
825
  class: ["toast-container w-100 position-relative"]
@@ -850,37 +857,37 @@ const Ae = {
850
857
  };
851
858
  }
852
859
  }
853
- }, cl = {
854
- ...at,
855
- ...Ae,
856
- ...it,
860
+ }, vl = {
861
+ ...et,
862
+ ...De,
863
+ ...nt,
864
+ ...Ue,
865
+ ...He,
857
866
  ...Ne,
867
+ ...Ze,
858
868
  ...qe,
859
- ...Le,
860
- ...Xe,
861
- ...Ge,
862
- ...rt,
869
+ ...st,
870
+ ...Ae,
871
+ ...it,
863
872
  ...Ee,
864
- ...dt,
873
+ ...Le,
865
874
  ...Re,
866
- ...je,
867
- ...He,
868
- ...We,
869
- ...Qe,
870
- ...lt,
871
- ...Ke,
872
- ...et,
873
- ...st,
874
- ...nt,
875
- ...Ze,
876
- ...tt,
875
+ ...Ge,
877
876
  ...Je,
878
- ...ut,
877
+ ...tt,
879
878
  ...Ye,
879
+ ...Xe,
880
+ ...ot,
881
+ ...lt,
882
+ ...Ke,
883
+ ...Qe,
884
+ ...We,
885
+ ...rt,
886
+ ...je,
880
887
  directives: {
881
- ...ot
888
+ ...at
882
889
  }
883
- }, ne = /* @__PURE__ */ F({
890
+ }, le = /* @__PURE__ */ F({
884
891
  __name: "ForgeAlert",
885
892
  props: {
886
893
  severity: { default: "primary" },
@@ -897,32 +904,32 @@ const Ae = {
897
904
  setup(e) {
898
905
  const t = e;
899
906
  return (a, o) => {
900
- const l = ge;
901
- return i(), w(l, ee(te({ ...a.$attrs, ...t })), {
902
- messageicon: f(() => [
907
+ const l = be;
908
+ return i(), w(l, Q(ee({ ...a.$attrs, ...t })), {
909
+ messageicon: g(() => [
903
910
  c("div", {
904
911
  class: B(t.icon ? "me-2 pe-1" : "")
905
912
  }, [
906
- t.icon ? (i(), w(p(C), {
913
+ t.icon ? (i(), w(m(V), {
907
914
  key: 0,
908
915
  "data-cy": "message-icon",
909
916
  icon: t.icon,
910
917
  class: B(`text-${t.severity}`),
911
918
  height: 35
912
- }, null, 8, ["icon", "class"])) : V("", !0)
919
+ }, null, 8, ["icon", "class"])) : S("", !0)
913
920
  ], 2)
914
921
  ]),
915
- closeicon: f(() => [
916
- b(p(C), { icon: "bi:x" })
922
+ closeicon: g(() => [
923
+ f(m(V), { icon: "bi:x" })
917
924
  ]),
918
- default: f(() => [
925
+ default: g(() => [
919
926
  $(a.$slots, "default")
920
927
  ]),
921
928
  _: 3
922
929
  }, 16);
923
930
  };
924
931
  }
925
- }), ml = /* @__PURE__ */ F({
932
+ }), bl = /* @__PURE__ */ F({
926
933
  __name: "ForgeActionButton",
927
934
  props: {
928
935
  action: {},
@@ -941,18 +948,18 @@ const Ae = {
941
948
  t.value = !1;
942
949
  };
943
950
  return (l, n) => {
944
- const d = R;
945
- return i(), y(N, null, [
946
- b(d, S({ ...a, ...l.$attrs }, {
951
+ const u = R;
952
+ return i(), v(L, null, [
953
+ f(u, _({ ...a, ...l.$attrs }, {
947
954
  loading: t.value,
948
955
  disabled: t.value || a.disabled,
949
956
  onClick: o
950
957
  }), null, 16, ["loading", "disabled"]),
951
- b(p(xe))
958
+ f(m(he))
952
959
  ], 64);
953
960
  };
954
961
  }
955
- }), ct = /* @__PURE__ */ c("div", null, null, -1), mt = ["for"], pe = /* @__PURE__ */ F({
962
+ }), dt = { class: "d-flex flex-column" }, ut = ["for"], ct = /* @__PURE__ */ F({
956
963
  __name: "ForgeCheckbox",
957
964
  props: /* @__PURE__ */ E({
958
965
  label: { default: "" },
@@ -977,65 +984,54 @@ const Ae = {
977
984
  ptOptions: {},
978
985
  unstyled: { type: Boolean }
979
986
  }, {
980
- modelValue: { type: Boolean },
987
+ modelValue: { type: Boolean, required: !0 },
981
988
  modelModifiers: {}
982
989
  }),
983
990
  emits: ["update:modelValue"],
984
991
  setup(e) {
985
- const t = U(e, "modelValue"), a = e, { handleChange: o, checked: l, setValue: n, errors: d, errorMessage: r } = K(() => a.name ?? a.label, void 0, {
992
+ const t = e, a = A(e, "modelValue"), {
993
+ handleChange: o,
994
+ errors: l,
995
+ errorMessage: n
996
+ } = K(() => t.name ?? "", void 0, {
986
997
  type: "checkbox",
987
- checkedValue: t.value
988
- }), u = (v) => {
989
- a.disabled || (o(v), t.value = !t.value);
990
- };
991
- ae(() => {
992
- a.value !== void 0 && a.value !== (l == null ? void 0 : l.value) ? n(a.value) : a.modelValue !== void 0 && a.modelValue !== (l == null ? void 0 : l.value) && n(a.modelValue);
993
- }), ie(() => a.value, (v) => {
994
- n(v);
995
- });
996
- const m = x(() => d.value.length > 0);
997
- return (v, s) => {
998
- const T = ke;
999
- return i(), y(N, null, [
1000
- c("div", S({
1001
- class: "d-flex",
1002
- "data-cy": "checkbox-container"
1003
- }, { ...v.$attrs }), [
1004
- b(T, S({
1005
- id: a.name
1006
- }, { ...a }, {
1007
- modelValue: t.value,
1008
- "onUpdate:modelValue": [
1009
- s[0] || (s[0] = (_) => t.value = _),
1010
- u
1011
- ],
1012
- "input-class": { "is-invalid": m.value }
1013
- }), {
1014
- icon: f(() => [
1015
- ct
1016
- ]),
1017
- _: 1
1018
- }, 16, ["id", "modelValue", "input-class"]),
998
+ checkedValue: a.value
999
+ }), u = x(() => l.value.length > 0);
1000
+ return (r, d) => {
1001
+ const p = we;
1002
+ return i(), v("div", dt, [
1003
+ c("div", _({
1004
+ class: "d-flex cursor-pointer",
1005
+ "data-cy": "checkbox-container",
1006
+ onClick: d[2] || (d[2] = (y) => m(o)(a.value))
1007
+ }, { ...r.$attrs }), [
1008
+ f(p, _({ ...t }, {
1009
+ binary: "",
1010
+ modelValue: a.value,
1011
+ "onUpdate:modelValue": d[0] || (d[0] = (y) => a.value = y),
1012
+ "input-id": t.name,
1013
+ "input-class": { "is-invalid": u.value }
1014
+ }), null, 16, ["modelValue", "input-id", "input-class"]),
1019
1015
  c("label", {
1020
- for: a.name,
1021
- class: B(["w-100 my-auto", `${a.disabled ? "opacity-50" : "cursor-pointer"} ${m.value ? "text-danger-dark" : ""}`]),
1022
- onClick: u
1016
+ for: t.name,
1017
+ onClick: d[1] || (d[1] = (y) => m(o)(a.value)),
1018
+ class: B([`${t.disabled ? "opacity-50" : "cursor-pointer"} ${u.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
1023
1019
  }, [
1024
- $(v.$slots, "default", {}, () => [
1025
- O(h(a.label), 1)
1020
+ $(r.$slots, "default", {}, () => [
1021
+ O(h(t.label), 1)
1026
1022
  ])
1027
- ], 10, mt)
1023
+ ], 10, ut)
1028
1024
  ], 16),
1029
1025
  j(c("small", {
1030
1026
  "data-cy": "error",
1031
1027
  class: "text-invalid"
1032
- }, h(p(r)), 513), [
1033
- [H, m.value]
1028
+ }, h(m(n)), 513), [
1029
+ [H, u.value]
1034
1030
  ])
1035
- ], 64);
1031
+ ]);
1036
1032
  };
1037
1033
  }
1038
- }), pt = { class: "forge-loader" }, ve = /* @__PURE__ */ F({
1034
+ }), mt = { class: "forge-loader" }, me = /* @__PURE__ */ F({
1039
1035
  __name: "ForgeLoader",
1040
1036
  props: {
1041
1037
  severity: { default: "primary" }
@@ -1043,16 +1039,16 @@ const Ae = {
1043
1039
  setup(e) {
1044
1040
  const t = e;
1045
1041
  return (a, o) => {
1046
- const l = $e;
1047
- return i(), y("div", pt, [
1048
- b(l, {
1042
+ const l = xe;
1043
+ return i(), v("div", mt, [
1044
+ f(l, {
1049
1045
  "animation-duration": ".75",
1050
1046
  class: B(`text-${t.severity === void 0 ? "primary" : t.severity}`)
1051
1047
  }, null, 8, ["class"])
1052
1048
  ]);
1053
1049
  };
1054
1050
  }
1055
- }), vt = ["href", "target"], pl = /* @__PURE__ */ F({
1051
+ }), pt = ["href", "target"], fl = /* @__PURE__ */ F({
1056
1052
  __name: "ForgeLink",
1057
1053
  props: {
1058
1054
  url: {},
@@ -1086,22 +1082,22 @@ const Ae = {
1086
1082
  "ms-0": e.positionIconEnd && e.animateIconOnHover,
1087
1083
  "me-0": e.animateIconOnHover
1088
1084
  }));
1089
- return (o, l) => (i(), y("a", {
1085
+ return (o, l) => (i(), v("a", {
1090
1086
  id: "link",
1091
1087
  class: B(["cursor-pointer d-flex", t.value]),
1092
1088
  href: o.url,
1093
1089
  target: o.target
1094
1090
  }, [
1095
1091
  $(o.$slots, "default", {}, () => [
1096
- o.iconName ? (i(), w(p(C), {
1092
+ o.iconName ? (i(), w(m(V), {
1097
1093
  key: 0,
1098
1094
  id: "link-icon",
1099
1095
  icon: o.iconName,
1100
1096
  class: B(["bi my-auto", a.value])
1101
- }, null, 8, ["icon", "class"])) : V("", !0),
1097
+ }, null, 8, ["icon", "class"])) : S("", !0),
1102
1098
  O(" " + h(o.label), 1)
1103
1099
  ])
1104
- ], 10, vt));
1100
+ ], 10, pt));
1105
1101
  }
1106
1102
  });
1107
1103
  function yt(e) {
@@ -1115,16 +1111,16 @@ function yt(e) {
1115
1111
  }
1116
1112
  return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
1117
1113
  }
1118
- function vl(e, t) {
1114
+ function gl(e, t) {
1119
1115
  return e.map((a) => ({ id: a, label: t ? t(a) : `${a}` }));
1120
1116
  }
1121
- function yl(e, t, a) {
1117
+ function hl(e, t, a) {
1122
1118
  return { id: e, label: t ?? e.toString(), shortLabel: a };
1123
1119
  }
1124
- const bt = { key: 0 }, ft = {
1120
+ const vt = { key: 0 }, bt = {
1125
1121
  class: "d-flex w-100",
1126
1122
  "data-cy": "footer"
1127
- }, bl = /* @__PURE__ */ F({
1123
+ }, wl = /* @__PURE__ */ F({
1128
1124
  __name: "ForgeModal",
1129
1125
  props: /* @__PURE__ */ E({
1130
1126
  cancelText: { default: "Cancel" },
@@ -1170,22 +1166,22 @@ const bt = { key: 0 }, ft = {
1170
1166
  }),
1171
1167
  emits: ["update:visible"],
1172
1168
  setup(e) {
1173
- const t = U(e, "visible"), a = I(!1), o = e, l = I(!1), n = I({
1169
+ const t = A(e, "visible"), a = I(!1), o = e, l = I(!1), n = I({
1174
1170
  hasError: !1,
1175
1171
  header: "",
1176
1172
  message: []
1177
- }), d = () => {
1173
+ }), u = () => {
1178
1174
  a.value = !1;
1179
1175
  }, r = () => {
1180
1176
  a.value = !0;
1181
- }, u = () => {
1177
+ }, d = () => {
1182
1178
  t.value = !1;
1183
- }, m = async () => {
1179
+ }, p = async () => {
1184
1180
  if (o.onConfirm) {
1185
1181
  l.value = !0, n.value.hasError = !1;
1186
1182
  try {
1187
1183
  const s = await o.onConfirm();
1188
- (s || s == null) && u();
1184
+ (s || s == null) && d();
1189
1185
  } catch (s) {
1190
1186
  n.value.hasError = !0;
1191
1187
  const T = yt(s);
@@ -1193,7 +1189,7 @@ const bt = { key: 0 }, ft = {
1193
1189
  }
1194
1190
  l.value = !1;
1195
1191
  }
1196
- }, v = x(() => ({
1192
+ }, y = x(() => ({
1197
1193
  root: [
1198
1194
  "modal modal-dialog modal-content h-auto m-0",
1199
1195
  {
@@ -1205,23 +1201,23 @@ const bt = { key: 0 }, ft = {
1205
1201
  ]
1206
1202
  }));
1207
1203
  return (s, T) => {
1208
- const _ = R, M = Be;
1209
- return i(), w(M, S(o, {
1204
+ const C = R, M = ke;
1205
+ return i(), w(M, _(o, {
1210
1206
  onMaximize: r,
1211
- onUnmaximize: d,
1212
- pt: v.value
1213
- }), le({
1214
- closeicon: f(() => [
1215
- b(p(C), {
1207
+ onUnmaximize: u,
1208
+ pt: y.value
1209
+ }), te({
1210
+ closeicon: g(() => [
1211
+ f(m(V), {
1216
1212
  "data-cy": "close-icon",
1217
1213
  icon: "bi:x-lg",
1218
1214
  width: "18",
1219
1215
  height: "18",
1220
- onClick: u
1216
+ onClick: d
1221
1217
  })
1222
1218
  ]),
1223
- maximizeicon: f(() => [
1224
- b(p(C), {
1219
+ maximizeicon: g(() => [
1220
+ f(m(V), {
1225
1221
  "data-cy": "maximisable-icon",
1226
1222
  icon: a.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
1227
1223
  width: "16",
@@ -1230,46 +1226,46 @@ const bt = { key: 0 }, ft = {
1230
1226
  ]),
1231
1227
  _: 2
1232
1228
  }, [
1233
- q(s.$slots, (P, z) => ({
1229
+ Y(s.$slots, (P, z) => ({
1234
1230
  name: z,
1235
- fn: f((g) => [
1236
- n.value.hasError ? (i(), w(ne, {
1231
+ fn: g((b) => [
1232
+ n.value.hasError ? (i(), w(le, {
1237
1233
  key: 0,
1238
1234
  severity: "danger",
1239
1235
  "data-cy": "error"
1240
1236
  }, {
1241
- default: f(() => [
1237
+ default: g(() => [
1242
1238
  c("p", {
1243
1239
  class: B(n.value.message.length > 0 ? "my-auto" : "mb-0")
1244
1240
  }, h(n.value.header), 3),
1245
- n.value.message.length > 0 ? (i(), y("ul", bt, [
1246
- (i(!0), y(N, null, q(n.value.message, (k) => (i(), y("li", { key: k }, h(k), 1))), 128))
1247
- ])) : V("", !0)
1241
+ n.value.message.length > 0 ? (i(), v("ul", vt, [
1242
+ (i(!0), v(L, null, Y(n.value.message, (k) => (i(), v("li", { key: k }, h(k), 1))), 128))
1243
+ ])) : S("", !0)
1248
1244
  ]),
1249
1245
  _: 1
1250
- })) : V("", !0),
1251
- $(s.$slots, z, ee(te(g || {}))),
1246
+ })) : S("", !0),
1247
+ $(s.$slots, z, Q(ee(b || {}))),
1252
1248
  l.value ? $(s.$slots, "loader", { key: 1 }, () => [
1253
- b(ve, { "data-cy": "loader" })
1254
- ]) : V("", !0)
1249
+ f(me, { "data-cy": "loader" })
1250
+ ]) : S("", !0)
1255
1251
  ])
1256
1252
  })),
1257
1253
  s.showFooter ? {
1258
1254
  name: "footer",
1259
- fn: f(() => [
1260
- c("div", ft, [
1261
- b(_, {
1255
+ fn: g(() => [
1256
+ c("div", bt, [
1257
+ f(C, {
1262
1258
  label: s.cancelText,
1263
1259
  class: B(o.cancelClass),
1264
1260
  outlined: "",
1265
- onClick: u,
1261
+ onClick: d,
1266
1262
  id: "cancel-button",
1267
1263
  type: o.cancelButtonType
1268
1264
  }, null, 8, ["label", "class", "type"]),
1269
- b(_, {
1265
+ f(C, {
1270
1266
  label: s.submitText,
1271
1267
  class: B([o.submitClass, "ms-auto"]),
1272
- onClick: m,
1268
+ onClick: p,
1273
1269
  id: "submit-button",
1274
1270
  type: o.submitButtonType
1275
1271
  }, null, 8, ["label", "class", "type"])
@@ -1280,7 +1276,7 @@ const bt = { key: 0 }, ft = {
1280
1276
  ]), 1040, ["pt"]);
1281
1277
  };
1282
1278
  }
1283
- }), gt = ["id"], ht = { key: 0 }, wt = { key: 0 }, xt = { class: "d-flex justify-content-between align-items-center position-relative" }, kt = { key: 1 }, $t = { "data-cy": "readonly-value" }, Bt = /* @__PURE__ */ F({
1279
+ }), ft = ["id"], gt = { key: 0 }, ht = { key: 0 }, wt = { class: "d-flex justify-content-between align-items-center position-relative" }, xt = { key: 1 }, kt = { "data-cy": "readonly-value" }, $t = /* @__PURE__ */ F({
1284
1280
  __name: "ForgeInlineEditor",
1285
1281
  props: /* @__PURE__ */ E({
1286
1282
  name: { default: "" },
@@ -1295,10 +1291,10 @@ const bt = { key: 0 }, ft = {
1295
1291
  }),
1296
1292
  emits: ["update:modelValue"],
1297
1293
  setup(e) {
1298
- const t = e, a = U(e, "modelValue"), o = I(!1), l = I(), n = () => {
1299
- var _;
1300
- o.value = !o.value, (_ = l.value) == null || _.focus();
1301
- }, d = async () => {
1294
+ const t = e, a = A(e, "modelValue"), o = I(!1), l = I(), n = () => {
1295
+ var C;
1296
+ o.value = !o.value, (C = l.value) == null || C.focus();
1297
+ }, u = async () => {
1302
1298
  if (T.value)
1303
1299
  return !1;
1304
1300
  if (a.value = s.value, t.completeAction)
@@ -1311,79 +1307,79 @@ const bt = { key: 0 }, ft = {
1311
1307
  o.value = !o.value;
1312
1308
  }, r = () => {
1313
1309
  o.value = !o.value;
1314
- }, u = () => {
1310
+ }, d = () => {
1315
1311
  s.value = null;
1316
- }, { errorMessage: m, errors: v, value: s } = K(() => t.name, void 0, {
1312
+ }, { errorMessage: p, errors: y, value: s } = K(() => t.name, void 0, {
1317
1313
  initialValue: a.value
1318
1314
  });
1319
- ae(() => {
1315
+ ne(() => {
1320
1316
  s.value = a.value;
1321
1317
  });
1322
- const T = x(() => v.value.length > 0);
1323
- return (_, M) => {
1324
- const P = de, z = R;
1325
- return i(), y("div", {
1318
+ const T = x(() => y.value.length > 0);
1319
+ return (C, M) => {
1320
+ const P = ie, z = R;
1321
+ return i(), v("div", {
1326
1322
  id: t.name
1327
1323
  }, [
1328
- _.readonly ? (i(), y("div", kt, [
1329
- $(_.$slots, "default", {}, () => [
1330
- c("span", $t, h(p(s)), 1)
1324
+ C.readonly ? (i(), v("div", xt, [
1325
+ $(C.$slots, "default", {}, () => [
1326
+ c("span", kt, h(m(s)), 1)
1331
1327
  ])
1332
- ])) : (i(), y("div", ht, [
1333
- o.value ? (i(), y("div", wt, [
1334
- j((i(), y("div", xt, [
1335
- $(_.$slots, "editor", {
1328
+ ])) : (i(), v("div", gt, [
1329
+ o.value ? (i(), v("div", ht, [
1330
+ j((i(), v("div", wt, [
1331
+ $(C.$slots, "editor", {
1336
1332
  class: B({ "is-invalid": T.value }),
1337
- editFinished: d,
1333
+ editFinished: u,
1338
1334
  cancel: r,
1339
- val: p(s)
1335
+ val: m(s)
1340
1336
  }, () => [
1341
- b(P, {
1337
+ f(P, {
1342
1338
  "data-cy": "input",
1343
1339
  ref_key: "input",
1344
1340
  ref: l,
1345
- modelValue: p(s),
1346
- "onUpdate:modelValue": M[0] || (M[0] = (g) => re(s) ? s.value = g : null),
1341
+ modelValue: m(s),
1342
+ "onUpdate:modelValue": M[0] || (M[0] = (b) => se(s) ? s.value = b : null),
1347
1343
  modelModifiers: { trim: !0 },
1348
1344
  class: B({ "is-invalid": T.value }),
1349
1345
  onKeydown: [
1350
- X(d, ["enter"]),
1351
- X(r, ["esc"])
1346
+ J(u, ["enter"]),
1347
+ J(r, ["esc"])
1352
1348
  ]
1353
1349
  }, null, 8, ["modelValue", "class"])
1354
1350
  ]),
1355
- b(p(C), {
1351
+ f(m(V), {
1356
1352
  icon: "bi:x-circle",
1357
1353
  class: "mx-2 cursor-pointer",
1358
- onClick: u,
1359
- onKeydown: X(u, ["enter"]),
1354
+ onClick: d,
1355
+ onKeydown: J(d, ["enter"]),
1360
1356
  "data-cy": "clear-icon"
1361
1357
  })
1362
1358
  ])), [
1363
- [p(Fe), d]
1359
+ [m($e), u]
1364
1360
  ])
1365
- ])) : (i(), y("div", {
1361
+ ])) : (i(), v("div", {
1366
1362
  key: 1,
1367
1363
  class: "d-flex text-muted",
1368
1364
  onClick: n,
1369
1365
  onFocus: n
1370
1366
  }, [
1371
- $(_.$slots, "default", {}, () => [
1367
+ $(C.$slots, "default", {}, () => [
1372
1368
  c("div", {
1373
1369
  class: B(["pe-2 cursor-pointer", { "text-invalid": T.value }]),
1374
1370
  "data-cy": "value"
1375
- }, h(p(s) ? p(s) : "Click to edit"), 3)
1371
+ }, h(m(s) ? m(s) : "Click to edit"), 3)
1376
1372
  ]),
1377
- b(z, {
1373
+ f(z, {
1378
1374
  link: "",
1379
1375
  class: "p-0 m-0"
1380
1376
  }, {
1381
- default: f(() => [
1382
- b(p(C), {
1377
+ default: g(() => [
1378
+ f(m(V), {
1383
1379
  icon: "bi:pencil",
1384
1380
  class: B(T.value ? "text-invalid" : "text-muted"),
1385
1381
  "data-cy": "edit-icon",
1386
- onKeydown: X(n, ["enter"])
1382
+ onKeydown: J(n, ["enter"])
1387
1383
  }, null, 8, ["class"])
1388
1384
  ]),
1389
1385
  _: 1
@@ -1393,13 +1389,13 @@ const bt = { key: 0 }, ft = {
1393
1389
  j(c("small", {
1394
1390
  "data-cy": "error",
1395
1391
  class: "text-invalid"
1396
- }, h(p(m)), 513), [
1392
+ }, h(m(p)), 513), [
1397
1393
  [H, T.value]
1398
1394
  ])
1399
- ], 8, gt);
1395
+ ], 8, ft);
1400
1396
  };
1401
1397
  }
1402
- }), Ft = ["href"], fl = /* @__PURE__ */ F({
1398
+ }), Bt = ["href"], xl = /* @__PURE__ */ F({
1403
1399
  __name: "ForgeNavbar",
1404
1400
  props: {
1405
1401
  severity: { default: "light" },
@@ -1444,12 +1440,12 @@ const bt = { key: 0 }, ft = {
1444
1440
  })
1445
1441
  }));
1446
1442
  return (o, l) => {
1447
- const n = _e;
1448
- return i(), w(n, S({ ...t, ...o.$attrs }, {
1443
+ const n = Be;
1444
+ return i(), w(n, _({ ...t, ...o.$attrs }, {
1449
1445
  pt: a.value,
1450
1446
  "data-cy": "navbar"
1451
- }), le({
1452
- start: f(() => [
1447
+ }), te({
1448
+ start: g(() => [
1453
1449
  c("a", {
1454
1450
  href: o.logoUrl,
1455
1451
  class: "navbar-brand ms-3",
@@ -1458,11 +1454,11 @@ const bt = { key: 0 }, ft = {
1458
1454
  $(o.$slots, "logo", {}, () => [
1459
1455
  O(" Logo ")
1460
1456
  ])
1461
- ], 8, Ft)
1457
+ ], 8, Bt)
1462
1458
  ]),
1463
- menubuttonicon: f(() => [
1459
+ menubuttonicon: g(() => [
1464
1460
  $(o.$slots, "menubuttonicon", {}, () => [
1465
- b(p(C), {
1461
+ f(m(V), {
1466
1462
  icon: "bi:list",
1467
1463
  class: B(t.severity === "light" ? "text-black" : "text-white"),
1468
1464
  height: "24",
@@ -1472,16 +1468,16 @@ const bt = { key: 0 }, ft = {
1472
1468
  ]),
1473
1469
  _: 2
1474
1470
  }, [
1475
- q(o.$slots, (d, r) => ({
1471
+ Y(o.$slots, (u, r) => ({
1476
1472
  name: r,
1477
- fn: f((u) => [
1478
- $(o.$slots, r, ee(te(u)))
1473
+ fn: g((d) => [
1474
+ $(o.$slots, r, Q(ee(d)))
1479
1475
  ])
1480
1476
  }))
1481
1477
  ]), 1040, ["pt"]);
1482
1478
  };
1483
1479
  }
1484
- }), _t = /* @__PURE__ */ c("div", { class: "ps-1" }, "Select all", -1), St = ["data-cy"], Vt = { class: "ps-1 w-100" }, Ct = { class: "multiselect__tag d-inline-flex" }, Tt = { class: "my-auto" }, ye = /* @__PURE__ */ F({
1480
+ }), Ft = { class: "multiselect__caret" }, _t = ["checked"], St = /* @__PURE__ */ c("div", { class: "my-auto ms-1" }, "Toggle all", -1), Vt = ["data-cy"], Ct = ["checked"], Tt = { class: "my-auto ms-1" }, Mt = { class: "multiselect__tag d-inline-flex" }, Pt = { class: "my-auto" }, pe = /* @__PURE__ */ F({
1485
1481
  __name: "ForgeMultiSelect",
1486
1482
  props: {
1487
1483
  severity: { default: "primary" },
@@ -1493,19 +1489,19 @@ const bt = { key: 0 }, ft = {
1493
1489
  },
1494
1490
  emits: ["update:modelValue"],
1495
1491
  setup(e, { emit: t }) {
1496
- const a = e, o = (A, D) => {
1497
- const J = {
1492
+ const a = e, o = (N, D) => {
1493
+ const U = {
1498
1494
  ...D,
1499
1495
  $isDisabled: D.$isDisabled ?? !1
1500
1496
  };
1501
- A(J);
1502
- }, l = he(), n = t, { errors: d, value: r, errorMessage: u } = K(() => a.name, void 0, {
1497
+ N(U);
1498
+ }, l = fe(), n = t, { errors: u, value: r, errorMessage: d } = K(() => a.name, void 0, {
1503
1499
  initialValue: l.modelValue
1504
- }), m = I(!1), v = x(() => ({
1500
+ }), p = I(!1), y = x(() => ({
1505
1501
  multiple: !0,
1506
1502
  label: "label",
1507
1503
  trackBy: "id",
1508
- showPointer: !m.value,
1504
+ showPointer: !p.value,
1509
1505
  placeholder: l.searchable === null || l.searchable ? "Search" : "Select",
1510
1506
  allowEmpty: !0,
1511
1507
  selectValue: "",
@@ -1514,125 +1510,121 @@ const bt = { key: 0 }, ft = {
1514
1510
  searchable: !!(l.searchable === null || l.searchable) && l.modelValue.length === l.options.length,
1515
1511
  async: !1,
1516
1512
  ...l
1517
- })), s = x(() => `forge-multiselect-${a.severity}`), T = x(() => `multiselect__option ${m.value ? " multiselect__option--highlight" : ""} ${_.value ? " multiselect__option--selected" : ""}`), _ = x(() => v.value && !(v.value.multiple || !a.showSelectAll || v.value.async) ? !1 : l.modelValue.length === l.options.length), M = x(() => d.value.length > 0), P = x(() => !!((l.allowEmpty == null || l.allowEmpty) && a.showClearSelection && (v.value.multiple ? l.modelValue.length > 0 : l.modelValue))), z = () => m.value = !0, g = () => m.value = !1, k = () => {
1518
- r.value = v.value.multiple ? [] : null, n("update:modelValue", r.value);
1519
- }, G = (A) => {
1520
- n("update:modelValue", a.selectValue ? A.map((D) => D[a.selectValue]) : A);
1521
- }, Z = (A) => l.modelValue !== null ? l.modelValue.some((D) => v.value.selectValue ? A[a.selectValue] === D : A.id === D.id && A.label === D.label) : !1, se = () => {
1522
- _.value ? k() : (r.value = [...l.options], n("update:modelValue", [...l.options]));
1513
+ })), s = x(() => `forge-multiselect-${a.severity}`), T = x(() => `multiselect__option ${p.value ? " multiselect__option--highlight" : ""} ${C.value ? " multiselect__option--selected" : ""}`), C = x(() => y.value && !(y.value.multiple || !a.showSelectAll || y.value.async) ? !1 : l.modelValue.length === l.options.length), M = x(() => u.value.length > 0), P = x(() => !!((l.allowEmpty == null || l.allowEmpty) && a.showClearSelection && (y.value.multiple ? l.modelValue.length > 0 : l.modelValue))), z = () => p.value = !0, b = () => p.value = !1, k = () => {
1514
+ r.value = y.value.multiple ? [] : null, n("update:modelValue", r.value);
1515
+ }, G = (N) => {
1516
+ n("update:modelValue", a.selectValue ? N.map((D) => D[a.selectValue]) : N);
1517
+ }, Z = (N) => l.modelValue !== null ? l.modelValue.some((D) => y.value.selectValue ? N[a.selectValue] === D : N.id === D.id && N.label === D.label) : !1, oe = () => {
1518
+ C.value ? k() : (r.value = [...l.options], n("update:modelValue", [...l.options]));
1523
1519
  };
1524
- return (A, D) => {
1525
- const J = pe;
1526
- return i(), y(N, null, [
1527
- b(p(Se), S(v.value, {
1528
- class: [s.value, M.value ? "is-invalid" : ""],
1529
- "data-cy": "multiselect",
1530
- "onUpdate:modelValue": [
1531
- G,
1532
- D[1] || (D[1] = (L) => re(r) ? r.value = L : null)
1533
- ],
1534
- modelValue: p(r)
1535
- }), le({
1536
- caret: f(({ toggle: L }) => [
1537
- P.value ? (i(), w(p(C), {
1520
+ return (N, D) => (i(), v(L, null, [
1521
+ f(m(Fe), _(y.value, {
1522
+ class: [s.value, M.value ? "is-invalid" : ""],
1523
+ "data-cy": "multiselect",
1524
+ "onUpdate:modelValue": [
1525
+ G,
1526
+ D[1] || (D[1] = (U) => se(r) ? r.value = U : null)
1527
+ ],
1528
+ modelValue: m(r)
1529
+ }), te({
1530
+ caret: g(({ toggle: U }) => [
1531
+ c("div", Ft, [
1532
+ P.value ? (i(), w(m(V), {
1538
1533
  key: 0,
1539
1534
  icon: "bi:x",
1540
- class: "my-auto multiselect__clear-icon",
1541
- onMousedown: D[0] || (D[0] = Y((W) => k(), ["prevent", "stop"])),
1535
+ class: "my-auto text-black multiselect__clear",
1536
+ onMousedown: D[0] || (D[0] = q((W) => k(), ["prevent", "stop"])),
1542
1537
  "data-cy": "clear",
1543
1538
  height: "18px",
1544
1539
  width: "18px"
1545
- })) : V("", !0),
1546
- b(p(C), {
1540
+ })) : S("", !0),
1541
+ f(m(V), {
1547
1542
  icon: "bi:chevron-down",
1548
- onClick: L,
1549
- class: "multiselect__select"
1543
+ onClick: U,
1544
+ class: "multiselect__arrow"
1550
1545
  }, null, 8, ["onClick"])
1551
- ]),
1552
- tag: f(({ option: L, remove: W }) => [
1553
- c("div", Ct, [
1554
- c("div", Tt, h(L.label), 1),
1555
- b(p(C), {
1556
- icon: "bi:x",
1557
- class: "my-auto multiselect__tag-icon",
1558
- onMousedown: Y((Aa) => o(W, L), ["prevent", "stop"]),
1559
- height: "18px",
1560
- width: "18px"
1561
- }, null, 8, ["onMousedown"])
1562
- ])
1563
- ]),
1564
- default: f(() => [
1565
- (i(!0), y(N, null, q(A.$slots, (L, W) => $(A.$slots, W, { slot: W })), 256))
1566
- ]),
1567
- _: 2
1568
- }, [
1569
- v.value.multiple && A.showSelectAll && !v.value.async ? {
1570
- name: "beforeList",
1571
- fn: f(() => [
1572
- c("li", {
1573
- class: "multiselect__element",
1574
- onClick: se,
1575
- onMouseover: z,
1576
- onMouseleave: g,
1577
- "data-cy": "toggle-all"
1578
- }, [
1579
- c("span", {
1580
- class: B(`${T.value}`)
1581
- }, [
1582
- b(J, {
1583
- value: _.value,
1584
- class: "w-100 p-1"
1585
- }, {
1586
- default: f(() => [
1587
- _t
1588
- ]),
1589
- _: 1
1590
- }, 8, ["value"])
1591
- ], 2)
1592
- ], 32)
1593
- ]),
1594
- key: "0"
1595
- } : void 0,
1596
- v.value.multiple ? {
1597
- name: "option",
1598
- fn: f(({ option: L }) => [
1546
+ ])
1547
+ ]),
1548
+ tag: g(({ option: U, remove: W }) => [
1549
+ c("div", Mt, [
1550
+ c("div", Pt, h(U.label), 1),
1551
+ f(m(V), {
1552
+ icon: "bi:x",
1553
+ class: "my-auto multiselect__tag-icon",
1554
+ onMousedown: q((Ra) => o(W, U), ["prevent", "stop"]),
1555
+ height: "18px",
1556
+ width: "18px"
1557
+ }, null, 8, ["onMousedown"])
1558
+ ])
1559
+ ]),
1560
+ default: g(() => [
1561
+ (i(!0), v(L, null, Y(N.$slots, (U, W) => $(N.$slots, W, { slot: W })), 256))
1562
+ ]),
1563
+ _: 2
1564
+ }, [
1565
+ y.value.multiple && N.showSelectAll && !y.value.async ? {
1566
+ name: "beforeList",
1567
+ fn: g(() => [
1568
+ c("li", {
1569
+ class: "multiselect__element",
1570
+ onClick: oe,
1571
+ onMouseover: z,
1572
+ onMouseleave: b,
1573
+ "data-cy": "toggle-all"
1574
+ }, [
1599
1575
  c("div", {
1600
- "data-cy": L.label
1576
+ class: B(["d-flex py-1", T.value])
1601
1577
  }, [
1602
- b(J, {
1603
- value: Z(L),
1604
- class: "w-100 p-1"
1605
- }, {
1606
- default: f(() => [
1607
- c("div", Vt, h(L[v.value.label]), 1)
1608
- ]),
1609
- _: 2
1610
- }, 1032, ["value"])
1611
- ], 8, St)
1612
- ]),
1613
- key: "1"
1614
- } : void 0
1615
- ]), 1040, ["class", "modelValue"]),
1616
- j(c("small", {
1617
- "data-cy": "error",
1618
- class: "invalid-feedback"
1619
- }, h(p(u)), 513), [
1620
- [H, M.value]
1621
- ])
1622
- ], 64);
1623
- };
1578
+ c("input", {
1579
+ checked: C.value,
1580
+ name: "selected",
1581
+ type: "checkbox",
1582
+ class: "form-check-input px-2 py-2 rounded ms-2 cursor-pointer"
1583
+ }, null, 8, _t),
1584
+ St
1585
+ ], 2)
1586
+ ], 32)
1587
+ ]),
1588
+ key: "0"
1589
+ } : void 0,
1590
+ y.value.multiple ? {
1591
+ name: "option",
1592
+ fn: g(({ option: U }) => [
1593
+ c("div", {
1594
+ class: "d-flex py-1",
1595
+ "data-cy": U.label
1596
+ }, [
1597
+ c("input", {
1598
+ checked: Z(U),
1599
+ name: "selected",
1600
+ type: "checkbox",
1601
+ class: "form-check-input px-2 py-2 rounded ms-2 cursor-pointer"
1602
+ }, null, 8, Ct),
1603
+ c("div", Tt, h(U[y.value.label]), 1)
1604
+ ], 8, Vt)
1605
+ ]),
1606
+ key: "1"
1607
+ } : void 0
1608
+ ]), 1040, ["class", "modelValue"]),
1609
+ j(c("small", {
1610
+ "data-cy": "error",
1611
+ class: "invalid-feedback"
1612
+ }, h(m(d)), 513), [
1613
+ [H, M.value]
1614
+ ])
1615
+ ], 64));
1624
1616
  }
1625
- }), Mt = {
1617
+ }), It = {
1626
1618
  key: 0,
1627
1619
  class: "pl-1"
1628
- }, Pt = { class: "border alternating-item-list" }, It = {
1620
+ }, zt = { class: "border alternating-item-list" }, Ot = {
1629
1621
  key: 0,
1630
1622
  class: "p-2 border-top border-bottom",
1631
1623
  "data-cy": "title"
1632
- }, zt = { class: "d-inline-block" }, Ot = {
1624
+ }, Dt = { class: "d-inline-block" }, Ut = {
1633
1625
  key: 1,
1634
1626
  class: "p-2 item d-flex justify-content-between align-items-center"
1635
- }, gl = /* @__PURE__ */ F({
1627
+ }, kl = /* @__PURE__ */ F({
1636
1628
  __name: "ForgeMultiSelectPreview",
1637
1629
  props: /* @__PURE__ */ E({
1638
1630
  title: { default: "Selected Items" },
@@ -1647,12 +1639,12 @@ const bt = { key: 0 }, ft = {
1647
1639
  }),
1648
1640
  emits: ["update:modelValue"],
1649
1641
  setup(e) {
1650
- const t = e, a = U(e, "modelValue"), o = (l) => {
1642
+ const t = e, a = A(e, "modelValue"), o = (l) => {
1651
1643
  a.value = a.value.filter((n) => n.id !== l);
1652
1644
  };
1653
1645
  return (l, n) => {
1654
- const d = R;
1655
- return i(), y("div", {
1646
+ const u = R;
1647
+ return i(), v("div", {
1656
1648
  class: B(l.orientation === "column" ? "row" : ""),
1657
1649
  "data-cy": "multiselect-preview"
1658
1650
  }, [
@@ -1660,20 +1652,20 @@ const bt = { key: 0 }, ft = {
1660
1652
  class: B(l.orientation === "row" ? "col-12 mb-1" : "col"),
1661
1653
  "data-cy": "multiselect-container"
1662
1654
  }, [
1663
- b(ye, S({
1655
+ f(pe, _({
1664
1656
  modelValue: a.value,
1665
1657
  "onUpdate:modelValue": n[0] || (n[0] = (r) => a.value = r),
1666
1658
  "limit-text": () => `${a.value.length} selected`,
1667
1659
  options: t.options
1668
1660
  }, { ...l.$attrs }), {
1669
- tag: f(() => [
1661
+ tag: g(() => [
1670
1662
  O(h(""))
1671
1663
  ]),
1672
- selection: f(() => [
1673
- a.value.length > 0 ? (i(), y("span", Mt, h(a.value.length) + " items selected", 1)) : V("", !0)
1664
+ selection: g(() => [
1665
+ a.value.length > 0 ? (i(), v("span", It, h(a.value.length) + " items selected", 1)) : S("", !0)
1674
1666
  ]),
1675
- default: f(() => [
1676
- (i(!0), y(N, null, q(l.$slots, (r, u) => $(l.$slots, u, { slot: u })), 256))
1667
+ default: g(() => [
1668
+ (i(!0), v(L, null, Y(l.$slots, (r, d) => $(l.$slots, d, { slot: d })), 256))
1677
1669
  ]),
1678
1670
  _: 3
1679
1671
  }, 16, ["modelValue", "limit-text", "options"]),
@@ -1684,62 +1676,62 @@ const bt = { key: 0 }, ft = {
1684
1676
  "data-cy": "options-preview"
1685
1677
  }, [
1686
1678
  c("div", {
1687
- style: we({ height: l.height }),
1679
+ style: ge({ height: l.height }),
1688
1680
  class: "overflow-auto"
1689
1681
  }, [
1690
- c("div", Pt, [
1691
- l.title ? (i(), y("div", It, h(l.title), 1)) : V("", !0),
1692
- (i(!0), y(N, null, q(a.value, (r) => (i(), y("div", {
1682
+ c("div", zt, [
1683
+ l.title ? (i(), v("div", Ot, h(l.title), 1)) : S("", !0),
1684
+ (i(!0), v(L, null, Y(a.value, (r) => (i(), v("div", {
1693
1685
  key: r.id,
1694
1686
  class: "p-2 item d-flex justify-content-between align-items-center"
1695
1687
  }, [
1696
1688
  $(l.$slots, "list-item", { item: r }, () => [
1697
- c("span", zt, h(r.shortLabel ? r.shortLabel : r.label), 1)
1689
+ c("span", Dt, h(r.shortLabel ? r.shortLabel : r.label), 1)
1698
1690
  ]),
1699
- l.canRemoveItemFromPreview ? (i(), w(d, {
1691
+ l.canRemoveItemFromPreview ? (i(), w(u, {
1700
1692
  key: 0,
1701
1693
  link: "",
1702
1694
  class: "m-0 p-0 d-flex align-items-center",
1703
- onClick: (u) => o(r.id)
1695
+ onClick: (d) => o(r.id)
1704
1696
  }, {
1705
- default: f(() => [
1706
- b(p(C), {
1697
+ default: g(() => [
1698
+ f(m(V), {
1707
1699
  icon: "bi:x",
1708
1700
  class: "close-icon",
1709
1701
  "data-cy": `close-icon-${r.id}`
1710
1702
  }, null, 8, ["data-cy"])
1711
1703
  ]),
1712
1704
  _: 2
1713
- }, 1032, ["onClick"])) : V("", !0)
1705
+ }, 1032, ["onClick"])) : S("", !0)
1714
1706
  ]))), 128)),
1715
- a.value.length === 0 ? (i(), y("div", Ot, h(t.optionsPreviewEmptyText), 1)) : V("", !0)
1707
+ a.value.length === 0 ? (i(), v("div", Ut, h(t.optionsPreviewEmptyText), 1)) : S("", !0)
1716
1708
  ])
1717
1709
  ], 4)
1718
1710
  ], 2)
1719
1711
  ], 2);
1720
1712
  };
1721
1713
  }
1722
- }), Dt = { class: "d-flex justify-content-between pb-2" }, Ut = {
1714
+ }), At = { class: "d-flex justify-content-between pb-2" }, Nt = {
1723
1715
  "data-cy": "title",
1724
1716
  class: "my-auto"
1725
- }, At = {
1717
+ }, Et = {
1726
1718
  "data-cy": "slot",
1727
1719
  class: "d-flex align-items-center"
1728
- }, hl = /* @__PURE__ */ F({
1720
+ }, $l = /* @__PURE__ */ F({
1729
1721
  __name: "ForgePageHeader",
1730
1722
  props: {
1731
1723
  title: {}
1732
1724
  },
1733
1725
  setup(e) {
1734
1726
  const t = e;
1735
- return (a, o) => (i(), y("div", Dt, [
1736
- c("h3", Ut, h(t.title), 1),
1737
- c("div", At, [
1727
+ return (a, o) => (i(), v("div", At, [
1728
+ c("h3", Nt, h(t.title), 1),
1729
+ c("div", Et, [
1738
1730
  $(a.$slots, "default")
1739
1731
  ])
1740
1732
  ]));
1741
1733
  }
1742
- }), Nt = { class: "d-flex" }, Et = { "data-cy": "before-slot" }, Lt = { class: "position-relative w-100" }, Rt = { "data-cy": "after-slot" }, be = /* @__PURE__ */ F({
1734
+ }), Lt = { class: "d-flex" }, Rt = { "data-cy": "before-slot" }, jt = { class: "position-relative w-100" }, Ht = { "data-cy": "after-slot" }, ye = /* @__PURE__ */ F({
1743
1735
  __name: "ForgeDatepicker",
1744
1736
  props: /* @__PURE__ */ E({
1745
1737
  severity: { default: "primary" },
@@ -1812,11 +1804,11 @@ const bt = { key: 0 }, ft = {
1812
1804
  }),
1813
1805
  emits: ["update:modelValue"],
1814
1806
  setup(e) {
1815
- const t = e, a = U(e, "modelValue"), { errors: o, errorMessage: l, handleChange: n, handleBlur: d, setValue: r } = K(() => t.name, void 0, {
1807
+ const t = e, a = A(e, "modelValue"), { errors: o, errorMessage: l, handleChange: n, handleBlur: u, setValue: r } = K(() => t.name, void 0, {
1816
1808
  initialValue: a.value
1817
- }), u = () => {
1809
+ }), d = () => {
1818
1810
  r(null), a.value = null;
1819
- }, m = x(() => o.value.length > 0), v = x(() => ({
1811
+ }, p = x(() => o.value.length > 0), y = x(() => ({
1820
1812
  day: ({ context: s }) => ({
1821
1813
  class: [
1822
1814
  `text-center date-${t.severity === void 0 ? "primary" : t.severity}`,
@@ -1908,53 +1900,53 @@ const bt = { key: 0 }, ft = {
1908
1900
  })
1909
1901
  }));
1910
1902
  return (s, T) => {
1911
- const _ = Ve;
1912
- return i(), y(N, null, [
1913
- c("div", Nt, [
1914
- c("span", Et, [
1903
+ const C = _e;
1904
+ return i(), v(L, null, [
1905
+ c("div", Lt, [
1906
+ c("span", Rt, [
1915
1907
  $(s.$slots, "before")
1916
1908
  ]),
1917
- c("div", Lt, [
1918
- b(_, S({ ...t, ...s.$attrs }, {
1919
- pt: v.value,
1909
+ c("div", jt, [
1910
+ f(C, _({ ...t, ...s.$attrs }, {
1911
+ pt: y.value,
1920
1912
  modelValue: a.value,
1921
1913
  "onUpdate:modelValue": [
1922
1914
  T[0] || (T[0] = (M) => a.value = M),
1923
- p(n)
1915
+ m(n)
1924
1916
  ],
1925
- onBlur: p(d),
1926
- "input-class": { "is-invalid": m.value }
1917
+ onBlur: m(u),
1918
+ "input-class": { "is-invalid": p.value }
1927
1919
  }), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "onBlur", "input-class"]),
1928
- j(b(p(C), {
1920
+ j(f(m(V), {
1929
1921
  "data-cy": "icon",
1930
1922
  icon: "bi:calendar4",
1931
- class: B(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${m.value ? "text-danger-dark" : "text-muted"}`])
1923
+ class: B(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${p.value ? "text-danger-dark" : "text-muted"}`])
1932
1924
  }, null, 8, ["class"]), [
1933
1925
  [H, t.showIcon]
1934
1926
  ]),
1935
- j(b(p(C), {
1927
+ j(f(m(V), {
1936
1928
  "data-cy": "icon",
1937
1929
  icon: "bi:x",
1938
- onClick: u,
1930
+ onClick: d,
1939
1931
  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"])
1940
1932
  }, null, 8, ["class"]), [
1941
1933
  [H, t.modelValue]
1942
1934
  ])
1943
1935
  ]),
1944
- c("span", Rt, [
1936
+ c("span", Ht, [
1945
1937
  $(s.$slots, "after")
1946
1938
  ])
1947
1939
  ]),
1948
1940
  j(c("small", {
1949
1941
  "data-cy": "error",
1950
1942
  class: "text-invalid"
1951
- }, h(p(l)), 513), [
1952
- [H, m.value]
1943
+ }, h(m(l)), 513), [
1944
+ [H, p.value]
1953
1945
  ])
1954
1946
  ], 64);
1955
1947
  };
1956
1948
  }
1957
- }), wl = /* @__PURE__ */ F({
1949
+ }), Bl = /* @__PURE__ */ F({
1958
1950
  __name: "ForgeRemainingCharacters",
1959
1951
  props: {
1960
1952
  maxCount: { default: 300 },
@@ -1962,11 +1954,11 @@ const bt = { key: 0 }, ft = {
1962
1954
  },
1963
1955
  setup(e) {
1964
1956
  const t = e, a = x(() => t.maxCount - t.currentCount);
1965
- return (o, l) => (i(), y("div", {
1957
+ return (o, l) => (i(), v("div", {
1966
1958
  class: B(a.value < 0 ? "text-danger" : "")
1967
1959
  }, "Remaining characters: " + h(a.value), 3));
1968
1960
  }
1969
- }), jt = /* @__PURE__ */ c("hr", null, null, -1), Ht = { class: "d-flex justify-content-between" }, xl = /* @__PURE__ */ F({
1961
+ }), qt = /* @__PURE__ */ c("hr", null, null, -1), Yt = { class: "d-flex justify-content-between" }, Fl = /* @__PURE__ */ F({
1970
1962
  __name: "ForgeForm",
1971
1963
  props: {
1972
1964
  onSubmit: {},
@@ -1991,28 +1983,28 @@ const bt = { key: 0 }, ft = {
1991
1983
  }
1992
1984
  a.value = !1;
1993
1985
  }
1994
- return (n, d) => {
1986
+ return (n, u) => {
1995
1987
  const r = R;
1996
- return i(), y("form", S(n.$attrs, {
1988
+ return i(), v("form", _(n.$attrs, {
1997
1989
  novalidate: "",
1998
1990
  class: "position-relative shadow-sm border p-4 bg-white",
1999
- onSubmit: Y(l, ["prevent"])
1991
+ onSubmit: q(l, ["prevent"])
2000
1992
  }), [
2001
- n.hideTitle ? V("", !0) : (i(), y(N, { key: 0 }, [
1993
+ n.hideTitle ? S("", !0) : (i(), v(L, { key: 0 }, [
2002
1994
  $(n.$slots, "title", {}, () => [
2003
1995
  c("h3", {
2004
1996
  class: B(n.titleClass),
2005
1997
  "data-cy": "form-title"
2006
1998
  }, h(n.title), 3)
2007
1999
  ]),
2008
- jt
2000
+ qt
2009
2001
  ], 64)),
2010
- o.value.hasError ? (i(), w(ne, {
2002
+ o.value.hasError ? (i(), w(le, {
2011
2003
  key: 1,
2012
2004
  severity: "danger",
2013
2005
  "data-cy": "error"
2014
2006
  }, {
2015
- default: f(() => [
2007
+ default: g(() => [
2016
2008
  $(n.$slots, "error", {
2017
2009
  error: o.value.message
2018
2010
  }, () => [
@@ -2020,49 +2012,49 @@ const bt = { key: 0 }, ft = {
2020
2012
  ])
2021
2013
  ]),
2022
2014
  _: 3
2023
- })) : V("", !0),
2015
+ })) : S("", !0),
2024
2016
  $(n.$slots, "default"),
2025
- c("div", Ht, [
2017
+ c("div", Yt, [
2026
2018
  $(n.$slots, "cancel", {}, () => [
2027
- n.hideCancel ? V("", !0) : (i(), w(r, {
2019
+ n.hideCancel ? S("", !0) : (i(), w(r, {
2028
2020
  key: 0,
2029
2021
  "data-cy": "cancel-btn",
2030
2022
  type: "reset",
2031
2023
  severity: "secondary",
2032
2024
  outlined: "",
2033
- onClick: d[0] || (d[0] = (u) => n.$emit("cancel"))
2025
+ onClick: u[0] || (u[0] = (d) => n.$emit("cancel"))
2034
2026
  }, {
2035
- default: f(() => [
2027
+ default: g(() => [
2036
2028
  O(h(n.cancelText), 1)
2037
2029
  ]),
2038
2030
  _: 1
2039
2031
  }))
2040
2032
  ]),
2041
2033
  $(n.$slots, "submit", { submit: l }, () => [
2042
- b(r, {
2034
+ f(r, {
2043
2035
  "data-cy": "submit-btn",
2044
2036
  type: "submit",
2045
2037
  severity: "primary",
2046
2038
  class: "ms-auto"
2047
2039
  }, {
2048
- default: f(() => [
2040
+ default: g(() => [
2049
2041
  O(h(n.submitText), 1)
2050
2042
  ]),
2051
2043
  _: 1
2052
2044
  })
2053
2045
  ])
2054
2046
  ]),
2055
- a.value ? (i(), w(ve, {
2047
+ a.value ? (i(), w(me, {
2056
2048
  key: 2,
2057
2049
  "data-cy": "loading-spinner"
2058
- })) : V("", !0)
2050
+ })) : S("", !0)
2059
2051
  ], 16);
2060
2052
  };
2061
2053
  }
2062
- }), Yt = {
2054
+ }), Gt = {
2063
2055
  key: 1,
2064
2056
  class: "d-flex flex-column w-100"
2065
- }, qt = ["for"], kl = /* @__PURE__ */ F({
2057
+ }, Kt = ["for"], _l = /* @__PURE__ */ F({
2066
2058
  __name: "ForgeFormField",
2067
2059
  props: /* @__PURE__ */ E({
2068
2060
  name: {},
@@ -2076,92 +2068,92 @@ const bt = { key: 0 }, ft = {
2076
2068
  }),
2077
2069
  emits: ["update:modelValue"],
2078
2070
  setup(e) {
2079
- const t = U(e, "modelValue"), a = e, o = (v) => {
2080
- a.type == "number" ? r(v.value) : r(v);
2081
- }, { errors: l, value: n, errorMessage: d, handleChange: r, handleBlur: u } = K(() => a.name, void 0, {
2071
+ const t = A(e, "modelValue"), a = e, o = (y) => {
2072
+ a.type == "number" ? r(y.value) : r(y);
2073
+ }, { errors: l, value: n, errorMessage: u, handleChange: r, handleBlur: d } = K(() => a.name, void 0, {
2082
2074
  initialValue: t.value
2083
- }), m = x(() => l.value.length > 0);
2084
- return ie(() => n.value, (v) => {
2085
- t.value = v;
2086
- }, { immediate: !0 }), (v, s) => {
2087
- const T = Te, _ = Ce, M = de, P = oe, z = ye, g = be;
2088
- return a.type === "checkbox" ? (i(), w(pe, S({
2075
+ }), p = x(() => l.value.length > 0);
2076
+ return de(() => n.value, (y) => {
2077
+ t.value = y;
2078
+ }, { immediate: !0 }), (y, s) => {
2079
+ const T = Ve, C = Se, M = ie, P = ae, z = pe, b = ye;
2080
+ return a.type === "checkbox" ? (i(), w(ct, _({
2089
2081
  key: 0,
2090
2082
  id: a.name,
2091
2083
  label: a.fieldLabel
2092
- }, v.$attrs, {
2084
+ }, y.$attrs, {
2093
2085
  name: a.name,
2094
2086
  modelValue: t.value,
2095
2087
  "onUpdate:modelValue": s[0] || (s[0] = (k) => t.value = k)
2096
- }), null, 16, ["id", "label", "name", "modelValue"])) : (i(), y("div", Yt, [
2088
+ }), null, 16, ["id", "label", "name", "modelValue"])) : (i(), v("div", Gt, [
2097
2089
  c("label", {
2098
2090
  for: a.name,
2099
2091
  class: "mb-1"
2100
- }, h(a.fieldLabel), 9, qt),
2101
- a.type === "number" ? (i(), w(p(ce), S({
2092
+ }, h(a.fieldLabel), 9, Kt),
2093
+ a.type === "number" ? (i(), w(m(ue), _({
2102
2094
  key: 0,
2103
2095
  id: a.name
2104
- }, v.$attrs, {
2096
+ }, y.$attrs, {
2105
2097
  placeholder: a.placeholder,
2106
- "input-class": { "is-invalid": m.value },
2107
- class: { "is-invalid": m.value },
2098
+ "input-class": { "is-invalid": p.value },
2099
+ class: { "is-invalid": p.value },
2108
2100
  modelValue: t.value,
2109
2101
  "onUpdate:modelValue": s[1] || (s[1] = (k) => t.value = k),
2110
2102
  onInput: o
2111
- }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (i(), w(T, S({
2103
+ }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (i(), w(T, _({
2112
2104
  key: 1,
2113
2105
  id: a.name
2114
- }, v.$attrs, {
2106
+ }, y.$attrs, {
2115
2107
  placeholder: a.placeholder,
2116
- class: { "is-invalid": m.value },
2108
+ class: { "is-invalid": p.value },
2117
2109
  modelValue: t.value,
2118
2110
  "onUpdate:modelValue": s[2] || (s[2] = (k) => t.value = k),
2119
2111
  onInput: o,
2120
- onBlur: p(u)
2121
- }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (i(), w(_, S({
2112
+ onBlur: m(d)
2113
+ }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (i(), w(C, _({
2122
2114
  key: 2,
2123
2115
  id: a.name
2124
- }, v.$attrs, {
2116
+ }, y.$attrs, {
2125
2117
  placeholder: a.placeholder,
2126
2118
  mask: a.mask,
2127
- class: { "is-invalid": m.value },
2119
+ class: { "is-invalid": p.value },
2128
2120
  modelValue: t.value,
2129
2121
  "onUpdate:modelValue": s[3] || (s[3] = (k) => t.value = k),
2130
2122
  onComplete: o,
2131
- onBlur: p(u)
2132
- }), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (i(), w(M, S({
2123
+ onBlur: m(d)
2124
+ }), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (i(), w(M, _({
2133
2125
  key: 3,
2134
2126
  id: a.name
2135
- }, v.$attrs, {
2127
+ }, y.$attrs, {
2136
2128
  placeholder: a.placeholder,
2137
- class: { "is-invalid": m.value },
2129
+ class: { "is-invalid": p.value },
2138
2130
  modelValue: t.value,
2139
2131
  "onUpdate:modelValue": s[4] || (s[4] = (k) => t.value = k),
2140
2132
  onInput: o,
2141
- onBlur: p(u)
2142
- }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (i(), w(P, S({ key: 4 }, { ...a, ...v.$attrs }, {
2133
+ onBlur: m(d)
2134
+ }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (i(), w(P, _({ key: 4 }, { ...a, ...y.$attrs }, {
2143
2135
  modelValue: t.value,
2144
2136
  "onUpdate:modelValue": s[5] || (s[5] = (k) => t.value = k),
2145
- class: { "is-invalid": m.value }
2146
- }), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (i(), w(z, S({ key: 5 }, { ...a, ...v.$attrs }, {
2137
+ class: { "is-invalid": p.value }
2138
+ }), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (i(), w(z, _({ key: 5 }, { ...a, ...y.$attrs }, {
2147
2139
  modelValue: t.value,
2148
2140
  "onUpdate:modelValue": s[6] || (s[6] = (k) => t.value = k),
2149
- class: { "is-invalid": m.value }
2150
- }), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (i(), w(g, S({ key: 6 }, { ...a, ...v.$attrs }, {
2141
+ class: { "is-invalid": p.value }
2142
+ }), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (i(), w(b, _({ key: 6 }, { ...a, ...y.$attrs }, {
2151
2143
  modelValue: t.value,
2152
2144
  "onUpdate:modelValue": s[7] || (s[7] = (k) => t.value = k),
2153
- class: { "is-invalid": m.value }
2154
- }), null, 16, ["modelValue", "class"])) : V("", !0),
2145
+ class: { "is-invalid": p.value }
2146
+ }), null, 16, ["modelValue", "class"])) : S("", !0),
2155
2147
  j(c("small", {
2156
2148
  "data-cy": "error",
2157
2149
  class: "invalid-feedback"
2158
- }, h(p(d)), 513), [
2159
- [H, m.value && a.type !== "multiselect" && a.type !== "datepicker"]
2150
+ }, h(m(u)), 513), [
2151
+ [H, p.value && a.type !== "multiselect" && a.type !== "datepicker"]
2160
2152
  ])
2161
2153
  ]));
2162
2154
  };
2163
2155
  }
2164
- }), $l = /* @__PURE__ */ F({
2156
+ }), Sl = /* @__PURE__ */ F({
2165
2157
  __name: "ForgeChips",
2166
2158
  props: {
2167
2159
  chipSeverity: { default: "primary" },
@@ -2190,7 +2182,7 @@ const bt = { key: 0 }, ft = {
2190
2182
  setup(e) {
2191
2183
  const t = e, { errors: a, value: o, errorMessage: l } = K(() => t.name, void 0, {
2192
2184
  initialValue: t.modelValue
2193
- }), n = x(() => a.value.length > 0), d = x(() => ({
2185
+ }), n = x(() => a.value.length > 0), u = x(() => ({
2194
2186
  inputtoken: "list-unstyled",
2195
2187
  input: "border-0",
2196
2188
  container: ({ props: r }) => ({
@@ -2221,19 +2213,19 @@ const bt = { key: 0 }, ft = {
2221
2213
  ]
2222
2214
  }
2223
2215
  }));
2224
- return (r, u) => {
2225
- const m = Me;
2226
- return i(), y(N, null, [
2227
- b(m, S({ ...t, ...r.$attrs }, {
2228
- pt: d.value,
2229
- "model-value": p(o),
2230
- "onUpdate:modelValue": u[0] || (u[0] = (v) => re(o) ? o.value = v : null)
2216
+ return (r, d) => {
2217
+ const p = Ce;
2218
+ return i(), v(L, null, [
2219
+ f(p, _({ ...t, ...r.$attrs }, {
2220
+ pt: u.value,
2221
+ "model-value": m(o),
2222
+ "onUpdate:modelValue": d[0] || (d[0] = (y) => se(o) ? o.value = y : null)
2231
2223
  }), {
2232
- removetokenicon: f(({ removeCallback: v }) => [
2233
- j(b(p(C), {
2224
+ removetokenicon: g(({ removeCallback: y }) => [
2225
+ j(f(m(V), {
2234
2226
  icon: "bi:x",
2235
2227
  class: "cursor-pointer",
2236
- onClick: v
2228
+ onClick: y
2237
2229
  }, null, 8, ["onClick"]), [
2238
2230
  [H, !t.disabled]
2239
2231
  ])
@@ -2243,13 +2235,13 @@ const bt = { key: 0 }, ft = {
2243
2235
  j(c("small", {
2244
2236
  "data-cy": "error",
2245
2237
  class: "text-invalid"
2246
- }, h(p(l)), 513), [
2238
+ }, h(m(l)), 513), [
2247
2239
  [H, n.value]
2248
2240
  ])
2249
2241
  ], 64);
2250
2242
  };
2251
2243
  }
2252
- }), Gt = /* @__PURE__ */ F({
2244
+ }), Wt = /* @__PURE__ */ F({
2253
2245
  __name: "ForgeProgressBar",
2254
2246
  props: {
2255
2247
  severity: { default: "primary" },
@@ -2291,17 +2283,17 @@ const bt = { key: 0 }, ft = {
2291
2283
  class: [l.value, a.value, o.value]
2292
2284
  }
2293
2285
  }));
2294
- return (d, r) => {
2295
- const u = Pe;
2296
- return i(), w(u, S({ ...d.$attrs, ...t }, { pt: n.value }), {
2297
- default: f(() => [
2298
- $(d.$slots, "default")
2286
+ return (u, r) => {
2287
+ const d = Te;
2288
+ return i(), w(d, _({ ...u.$attrs, ...t }, { pt: n.value }), {
2289
+ default: g(() => [
2290
+ $(u.$slots, "default")
2299
2291
  ]),
2300
2292
  _: 3
2301
2293
  }, 16, ["pt"]);
2302
2294
  };
2303
2295
  }
2304
- }), Kt = { class: "value text-white w-100 text-center" }, Bl = /* @__PURE__ */ F({
2296
+ }), Zt = { class: "value text-white w-100 text-center" }, Vl = /* @__PURE__ */ F({
2305
2297
  __name: "ForgeStatWidget",
2306
2298
  props: {
2307
2299
  size: { default: "md" },
@@ -2309,18 +2301,18 @@ const bt = { key: 0 }, ft = {
2309
2301
  },
2310
2302
  setup(e) {
2311
2303
  const t = e;
2312
- return (a, o) => (i(), y("div", S(a.$attrs, {
2304
+ return (a, o) => (i(), v("div", _(a.$attrs, {
2313
2305
  class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
2314
2306
  }), [
2315
- c("span", Kt, [
2307
+ c("span", Zt, [
2316
2308
  $(a.$slots, "default")
2317
2309
  ])
2318
2310
  ], 16));
2319
2311
  }
2320
- }), Wt = {
2312
+ }), Jt = {
2321
2313
  class: "d-flex flex-column align-items-center",
2322
2314
  "data-cy": "stepper"
2323
- }, Zt = { class: "d-flex align-items-center justify-content-center w-100" }, Fl = /* @__PURE__ */ F({
2315
+ }, Xt = { class: "d-flex align-items-center justify-content-center w-100" }, Cl = /* @__PURE__ */ F({
2324
2316
  __name: "ForgeStepper",
2325
2317
  props: {
2326
2318
  currentStep: { default: 0 },
@@ -2341,109 +2333,109 @@ const bt = { key: 0 }, ft = {
2341
2333
  l.value--;
2342
2334
  while (o.model[l.value].disabled);
2343
2335
  a("update:currentStep", l.value);
2344
- }, d = () => {
2336
+ }, u = () => {
2345
2337
  if (l.value < o.model.length - 1)
2346
2338
  do
2347
2339
  l.value++;
2348
2340
  while (o.model[l.value].disabled);
2349
2341
  a("update:currentStep", l.value);
2350
2342
  }, r = x(() => {
2351
- const m = o.model.findIndex((v) => !v.disabled);
2352
- return !(m < l.value && m > -1);
2353
- }), u = x(() => ({
2354
- menuitem: (m) => ({
2343
+ const p = o.model.findIndex((y) => !y.disabled);
2344
+ return !(p < l.value && p > -1);
2345
+ }), d = x(() => ({
2346
+ menuitem: (p) => ({
2355
2347
  class: [{
2356
- "cursor-pointer": !m.context.disabled
2348
+ "cursor-pointer": !p.context.disabled
2357
2349
  }]
2358
2350
  }),
2359
- step: (m) => ({
2351
+ step: (p) => ({
2360
2352
  class: [
2361
2353
  "d-flex align-items-center justify-content-center mb-2 step",
2362
2354
  {
2363
- inactive: m.context.disabled,
2364
- "bg-primary text-white": m.context.index === l.value && (o.severity === void 0 || o.severity === "primary"),
2365
- "bg-brand text-white": m.context.index === l.value && o.severity === "brand",
2366
- "bg-secondary text-white": m.context.index === l.value && o.severity === "secondary",
2367
- "bg-success text-white": m.context.index === l.value && o.severity === "success",
2368
- "bg-warning text-white": m.context.index === l.value && o.severity === "warning",
2369
- "bg-danger text-white": m.context.index === l.value && o.severity === "danger",
2370
- "bg-info text-white": m.context.index === l.value && o.severity === "info"
2355
+ inactive: p.context.disabled,
2356
+ "bg-primary text-white": p.context.index === l.value && (o.severity === void 0 || o.severity === "primary"),
2357
+ "bg-brand text-white": p.context.index === l.value && o.severity === "brand",
2358
+ "bg-secondary text-white": p.context.index === l.value && o.severity === "secondary",
2359
+ "bg-success text-white": p.context.index === l.value && o.severity === "success",
2360
+ "bg-warning text-white": p.context.index === l.value && o.severity === "warning",
2361
+ "bg-danger text-white": p.context.index === l.value && o.severity === "danger",
2362
+ "bg-info text-white": p.context.index === l.value && o.severity === "info"
2371
2363
  }
2372
2364
  ]
2373
2365
  }),
2374
- label: (m) => ({
2366
+ label: (p) => ({
2375
2367
  class: [
2376
2368
  "h5",
2377
2369
  {
2378
- "border-bottom border-2 border-primary": m.context.index === l.value && (o.severity === void 0 || o.severity === "primary"),
2379
- "border-bottom border-2 border-brand": m.context.index === l.value && o.severity === "brand",
2380
- "border-bottom border-2 border-secondary": m.context.index === l.value && o.severity === "secondary",
2381
- "border-bottom border-2 border-success": m.context.index === l.value && o.severity === "success",
2382
- "border-bottom border-2 border-warning": m.context.index === l.value && o.severity === "warning",
2383
- "border-bottom border-2 border-danger": m.context.index === l.value && o.severity === "danger",
2384
- "border-bottom border-2 border-info": m.context.index === l.value && o.severity === "info"
2370
+ "border-bottom border-2 border-primary": p.context.index === l.value && (o.severity === void 0 || o.severity === "primary"),
2371
+ "border-bottom border-2 border-brand": p.context.index === l.value && o.severity === "brand",
2372
+ "border-bottom border-2 border-secondary": p.context.index === l.value && o.severity === "secondary",
2373
+ "border-bottom border-2 border-success": p.context.index === l.value && o.severity === "success",
2374
+ "border-bottom border-2 border-warning": p.context.index === l.value && o.severity === "warning",
2375
+ "border-bottom border-2 border-danger": p.context.index === l.value && o.severity === "danger",
2376
+ "border-bottom border-2 border-info": p.context.index === l.value && o.severity === "info"
2385
2377
  }
2386
2378
  ]
2387
2379
  })
2388
2380
  }));
2389
- return (m, v) => {
2390
- const s = R, T = ze, _ = Ie;
2391
- return i(), y("div", Wt, [
2392
- c("div", Zt, [
2393
- b(s, {
2381
+ return (p, y) => {
2382
+ const s = R, T = Pe, C = Me;
2383
+ return i(), v("div", Jt, [
2384
+ c("div", Xt, [
2385
+ f(s, {
2394
2386
  severity: o.severity,
2395
2387
  disabled: r.value,
2396
2388
  onClick: n,
2397
2389
  class: "rounded-circle py-2 me-4",
2398
2390
  "data-cy": "back-button"
2399
2391
  }, {
2400
- default: f(() => [
2401
- b(p(C), {
2392
+ default: g(() => [
2393
+ f(m(V), {
2402
2394
  icon: "bi:chevron-left",
2403
2395
  class: "mb-1"
2404
2396
  })
2405
2397
  ]),
2406
2398
  _: 1
2407
2399
  }, 8, ["severity", "disabled"]),
2408
- b(T, {
2400
+ f(T, {
2409
2401
  "active-step": l.value,
2410
- "onUpdate:activeStep": v[0] || (v[0] = (M) => l.value = M),
2402
+ "onUpdate:activeStep": y[0] || (y[0] = (M) => l.value = M),
2411
2403
  model: o.model,
2412
- pt: u.value,
2404
+ pt: d.value,
2413
2405
  readonly: !1
2414
2406
  }, null, 8, ["active-step", "model", "pt"])
2415
2407
  ]),
2416
- b(_, { class: "m-4" }),
2417
- (i(!0), y(N, null, q(o.model, (M, P) => (i(), y("div", {
2408
+ f(C, { class: "m-4" }),
2409
+ (i(!0), v(L, null, Y(o.model, (M, P) => (i(), v("div", {
2418
2410
  key: P,
2419
2411
  class: "w-100"
2420
2412
  }, [
2421
- P === l.value ? $(m.$slots, M.key ?? M.label, {
2413
+ P === l.value ? $(p.$slots, M.key ?? M.label, {
2422
2414
  key: 0,
2423
- nextStep: d,
2415
+ nextStep: u,
2424
2416
  previousStep: n
2425
2417
  }, () => [
2426
- b(ne, {
2418
+ f(le, {
2427
2419
  severity: "info",
2428
2420
  "data-cy": "alert"
2429
2421
  }, {
2430
- default: f(() => [
2422
+ default: g(() => [
2431
2423
  O(" Please add Slot Content for the key " + h(M.key ?? M.label) + " ", 1),
2432
- b(s, {
2424
+ f(s, {
2433
2425
  severity: "primary",
2434
2426
  label: "Next",
2435
- onClick: d,
2427
+ onClick: u,
2436
2428
  class: "ms-2"
2437
2429
  })
2438
2430
  ]),
2439
2431
  _: 2
2440
2432
  }, 1024)
2441
- ]) : V("", !0)
2433
+ ]) : S("", !0)
2442
2434
  ]))), 128))
2443
2435
  ]);
2444
2436
  };
2445
2437
  }
2446
- }), Jt = { class: "p-4 text-wrap w-100" }, Xt = { class: "p-4 text-wrap w-100" }, _l = /* @__PURE__ */ F({
2438
+ }), Qt = { class: "p-4 text-wrap w-100" }, ea = { class: "p-4 text-wrap w-100" }, Tl = /* @__PURE__ */ F({
2447
2439
  __name: "ForgeTile",
2448
2440
  props: {
2449
2441
  severity: { default: "primary" },
@@ -2454,28 +2446,28 @@ const bt = { key: 0 }, ft = {
2454
2446
  setup(e) {
2455
2447
  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" : ""}`);
2456
2448
  return (l, n) => {
2457
- const d = R;
2458
- return t.clickable ? (i(), w(d, {
2449
+ const u = R;
2450
+ return t.clickable ? (i(), w(u, {
2459
2451
  key: 0,
2460
2452
  class: B(["d-flex w-100 p-0 text-body", a.value]),
2461
2453
  severity: t.severity,
2462
2454
  unstyled: "",
2463
2455
  "data-cy": "button-tile"
2464
2456
  }, {
2465
- default: f(() => [
2466
- c("div", Jt, [
2457
+ default: g(() => [
2458
+ c("div", Qt, [
2467
2459
  $(l.$slots, "default", {}, () => [
2468
2460
  O("Tile Content")
2469
2461
  ])
2470
2462
  ])
2471
2463
  ]),
2472
2464
  _: 3
2473
- }, 8, ["severity", "class"])) : (i(), y("div", {
2465
+ }, 8, ["severity", "class"])) : (i(), v("div", {
2474
2466
  key: 1,
2475
2467
  class: B(["d-flex w-100", o.value]),
2476
2468
  "data-cy": "tile"
2477
2469
  }, [
2478
- c("div", Xt, [
2470
+ c("div", ea, [
2479
2471
  $(l.$slots, "default", {}, () => [
2480
2472
  O("Tile Content")
2481
2473
  ])
@@ -2484,16 +2476,16 @@ const bt = { key: 0 }, ft = {
2484
2476
  };
2485
2477
  }
2486
2478
  });
2487
- function Q(e, t) {
2479
+ function X(e, t) {
2488
2480
  return e > 1 ? `${t}s` : t;
2489
2481
  }
2490
- const Qt = {
2482
+ const ta = {
2491
2483
  class: "d-flex justify-content-start align-items-baseline",
2492
2484
  "data-cy": "pagination-header"
2493
- }, ea = { class: "ms-2" }, ta = { key: 0 }, aa = /* @__PURE__ */ c("span", { class: "mx-2" }, "|", -1), la = {
2485
+ }, aa = { class: "ms-2" }, la = { key: 0 }, oa = /* @__PURE__ */ c("span", { class: "mx-2" }, "|", -1), na = {
2494
2486
  class: "w-auto",
2495
2487
  "data-cy": "total"
2496
- }, oa = /* @__PURE__ */ F({
2488
+ }, sa = /* @__PURE__ */ F({
2497
2489
  __name: "ForgePaginationHeader",
2498
2490
  props: {
2499
2491
  total: {},
@@ -2502,28 +2494,31 @@ const Qt = {
2502
2494
  },
2503
2495
  emits: ["update:perPage"],
2504
2496
  setup(e, { emit: t }) {
2505
- const a = t, o = e, l = (d) => {
2506
- a("update:perPage", d.value);
2497
+ const a = t, o = e, l = (u) => {
2498
+ a("update:perPage", u.value);
2507
2499
  }, n = x(() => {
2508
- const d = Math.ceil(o.total / o.perPage);
2509
- return `${d} ${Q(d, "page")}`;
2500
+ const u = Math.ceil(o.total / o.perPage);
2501
+ return `${u} ${X(u, "page")}`;
2510
2502
  });
2511
- return (d, r) => (i(), y("div", Qt, [
2503
+ return (u, r) => (i(), v("div", ta, [
2512
2504
  O(" Number of results per page "),
2513
- c("div", ea, [
2514
- b(p(oe), {
2505
+ c("div", aa, [
2506
+ f(m(ae), {
2515
2507
  options: o.pageSizes,
2516
2508
  "model-value": o.perPage,
2517
- onChange: r[0] || (r[0] = (u) => l(u))
2509
+ onChange: r[0] || (r[0] = (d) => l(d))
2518
2510
  }, null, 8, ["options", "model-value"])
2519
2511
  ]),
2520
- o.total ? (i(), y("div", ta, [
2521
- aa,
2522
- c("span", la, h(o.total) + " " + h(p(Q)(o.total, "result")) + " across " + h(n.value), 1)
2523
- ])) : V("", !0)
2512
+ o.total ? (i(), v("div", la, [
2513
+ oa,
2514
+ c("span", na, h(o.total) + " " + h(m(X)(o.total, "result")) + " across " + h(n.value), 1)
2515
+ ])) : S("", !0)
2524
2516
  ]));
2525
2517
  }
2526
- }), na = { class: "position-relative" }, sa = { "data-cy": "above-table-slot" }, ia = { class: "d-flex" }, ra = { class: "d-flex align-items-end mb-2" }, da = { key: 0 }, ua = { class: "ms-auto" }, ca = /* @__PURE__ */ c("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1), Sl = /* @__PURE__ */ F({
2518
+ }), ia = { class: "position-relative" }, ra = { "data-cy": "above-table-slot" }, da = { class: "d-flex w-100" }, ua = {
2519
+ class: "mx-auto",
2520
+ "data-cy": "empty-message"
2521
+ }, ca = { class: "d-flex" }, ma = { class: "d-flex align-items-end mb-2" }, pa = { key: 0 }, ya = { class: "ms-auto" }, va = /* @__PURE__ */ c("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1), Ml = /* @__PURE__ */ F({
2527
2522
  __name: "ForgeTable",
2528
2523
  props: {
2529
2524
  value: {},
@@ -2533,6 +2528,7 @@ const Qt = {
2533
2528
  stickyHeader: { type: Boolean, default: !0 },
2534
2529
  severity: {},
2535
2530
  clearAll: {},
2531
+ emptyMessage: {},
2536
2532
  dataKey: {},
2537
2533
  rows: {},
2538
2534
  first: {},
@@ -2604,17 +2600,17 @@ const Qt = {
2604
2600
  },
2605
2601
  emits: ["update:filters", "update:tableContext", "sort", "page"],
2606
2602
  setup(e, { emit: t }) {
2607
- const a = t, o = e, l = I(), n = I([10, 20, 50, 100]), d = I(20), r = I({
2603
+ const a = t, o = e, l = I(), n = I([10, 20, 50, 100]), u = I(20), r = I({
2608
2604
  filters: o.filters,
2609
- perPage: d.value,
2605
+ perPage: u.value,
2610
2606
  page: 0,
2611
2607
  sortDirection: "None",
2612
2608
  sortField: "",
2613
2609
  total: o.totalRecords ?? o.value.length
2614
- }), u = x(() => o.totalRecords ?? o.value.length), m = x(() => {
2615
- const g = Math.ceil(u.value / d.value);
2616
- return `${g} ${Q(g, "page")}`;
2617
- }), v = x(() => ({
2610
+ }), d = x(() => o.totalRecords ?? o.value.length), p = x(() => {
2611
+ const b = Math.ceil(d.value / u.value);
2612
+ return `${b} ${X(b, "page")}`;
2613
+ }), y = x(() => ({
2618
2614
  thead: () => ({
2619
2615
  class: [
2620
2616
  {
@@ -2640,69 +2636,74 @@ const Qt = {
2640
2636
  if (o.clearAll)
2641
2637
  o.clearAll();
2642
2638
  else
2643
- for (const g in o.filters)
2644
- typeof o.filters[g] == "string" ? o.filters[g] = "" : o.filters[g].value = null;
2639
+ for (const b in o.filters)
2640
+ typeof o.filters[b] == "string" ? o.filters[b] = "" : o.filters[b].value = null;
2645
2641
  M(o.filters);
2646
2642
  }, T = () => {
2647
2643
  l.value.exportCSV();
2648
- }, _ = (g) => {
2644
+ }, C = (b) => {
2649
2645
  var k;
2650
- r.value.sortDirection = g.sortOrder === 1 ? "Asc" : g.sortOrder === -1 ? "Desc" : "None", r.value.sortField = ((k = g.sortField) == null ? void 0 : k.toString()) ?? "", a("update:tableContext", r.value), a("sort", g);
2651
- }, M = (g) => {
2652
- r.value.filters = g, a("update:tableContext", r.value), a("update:filters", g);
2653
- }, P = (g) => {
2654
- r.value.page = g.page, a("update:tableContext", r.value), a("page", g);
2646
+ r.value.sortDirection = b.sortOrder === 1 ? "Asc" : b.sortOrder === -1 ? "Desc" : "None", r.value.sortField = ((k = b.sortField) == null ? void 0 : k.toString()) ?? "", a("update:tableContext", r.value), a("sort", b);
2647
+ }, M = (b) => {
2648
+ r.value.filters = b, a("update:tableContext", r.value), a("update:filters", b);
2649
+ }, P = (b) => {
2650
+ r.value.page = b.page, a("update:tableContext", r.value), a("page", b);
2655
2651
  }, z = () => {
2656
- r.value.perPage = d.value, a("update:tableContext", r.value);
2652
+ r.value.perPage = u.value, a("update:tableContext", r.value);
2657
2653
  };
2658
- return ie(() => o.filters, (g) => {
2659
- r.value.filters = g, a("update:tableContext", r.value);
2660
- }, { deep: !0 }), ae(() => a("update:tableContext", r.value)), (g, k) => (i(), y("div", na, [
2661
- c("span", sa, [
2662
- $(g.$slots, "above-table")
2654
+ return de(() => o.filters, (b) => {
2655
+ r.value.filters = b, a("update:tableContext", r.value);
2656
+ }, { deep: !0 }), ne(() => a("update:tableContext", r.value)), (b, k) => (i(), v("div", ia, [
2657
+ c("span", ra, [
2658
+ $(b.$slots, "above-table")
2663
2659
  ]),
2664
- b(p(Oe), S({
2660
+ f(m(Ie), _({
2665
2661
  class: ["w-100", `${o.severity ? `forge-table-${o.severity}` : ""}`]
2666
- }, { ...o, ...g.$attrs }, {
2667
- pt: v.value,
2668
- rows: d.value,
2669
- "total-records": u.value,
2662
+ }, { ...o, ...b.$attrs }, {
2663
+ pt: y.value,
2664
+ rows: u.value,
2665
+ "total-records": d.value,
2670
2666
  "filter-display": o.filters ? "row" : void 0,
2671
2667
  ref_key: "forgeTable",
2672
2668
  ref: l,
2673
2669
  "data-cy": "table",
2674
2670
  "onUpdate:filters": M,
2675
- onSort: _,
2671
+ onSort: C,
2676
2672
  onPage: P
2677
- }), le({
2678
- header: f(() => [
2673
+ }), te({
2674
+ empty: g(() => [
2675
+ c("div", da, [
2676
+ c("h5", ua, h(b.emptyMessage ?? "No items Found."), 1)
2677
+ ])
2678
+ ]),
2679
+ header: g(() => [
2679
2680
  c("div", {
2680
2681
  class: B(o.loading ? "opacity-50" : "")
2681
2682
  }, [
2682
- c("div", ia, [
2683
- c("div", ra, [
2684
- g.paginator && !g.legacyPaginationFooter ? (i(), y("span", da, [
2685
- b(oa, {
2686
- total: u.value,
2683
+ c("div", ca, [
2684
+ c("div", ma, [
2685
+ b.paginator && !b.legacyPaginationFooter ? (i(), v("span", pa, [
2686
+ f(sa, {
2687
+ total: d.value,
2687
2688
  "page-sizes": n.value,
2688
- "per-page": d.value,
2689
+ "per-page": u.value,
2689
2690
  "onUpdate:perPage": [
2690
- k[0] || (k[0] = (G) => d.value = G),
2691
+ k[0] || (k[0] = (G) => u.value = G),
2691
2692
  z
2692
2693
  ]
2693
2694
  }, null, 8, ["total", "page-sizes", "per-page"])
2694
- ])) : V("", !0)
2695
+ ])) : S("", !0)
2695
2696
  ]),
2696
- c("div", ua, [
2697
- g.showClearButton ? (i(), w(p(R), {
2697
+ c("div", ya, [
2698
+ b.showClearButton ? (i(), w(m(R), {
2698
2699
  key: 0,
2699
2700
  outlined: "",
2700
- class: B(g.showExporterButton ? "me-2" : ""),
2701
+ class: B(b.showExporterButton ? "me-2" : ""),
2701
2702
  onClick: s,
2702
2703
  "data-cy": "clear-all"
2703
2704
  }, {
2704
- default: f(() => [
2705
- b(p(C), {
2705
+ default: g(() => [
2706
+ f(m(V), {
2706
2707
  icon: "bi:funnel-fill",
2707
2708
  width: "24",
2708
2709
  height: "24"
@@ -2710,15 +2711,15 @@ const Qt = {
2710
2711
  O(" Clear ")
2711
2712
  ]),
2712
2713
  _: 1
2713
- }, 8, ["class"])) : V("", !0),
2714
- g.showExporterButton ? (i(), w(p(R), {
2714
+ }, 8, ["class"])) : S("", !0),
2715
+ b.showExporterButton ? (i(), w(m(R), {
2715
2716
  key: 1,
2716
2717
  outlined: "",
2717
2718
  onClick: T,
2718
2719
  "data-cy": "exporter"
2719
2720
  }, {
2720
- default: f(() => [
2721
- b(p(C), {
2721
+ default: g(() => [
2722
+ f(m(V), {
2722
2723
  icon: "typcn:export",
2723
2724
  width: "24",
2724
2725
  height: "24"
@@ -2726,34 +2727,34 @@ const Qt = {
2726
2727
  O(" Export ")
2727
2728
  ]),
2728
2729
  _: 1
2729
- })) : V("", !0)
2730
+ })) : S("", !0)
2730
2731
  ])
2731
2732
  ])
2732
2733
  ], 2)
2733
2734
  ]),
2734
- default: f(() => [
2735
- $(g.$slots, "default")
2735
+ default: g(() => [
2736
+ $(b.$slots, "default")
2736
2737
  ]),
2737
2738
  _: 2
2738
2739
  }, [
2739
- q(g.$slots, (G, Z) => ({
2740
+ Y(b.$slots, (G, Z) => ({
2740
2741
  name: Z,
2741
- fn: f((se) => [
2742
- $(g.$slots, Z, ee(te(se || {})))
2742
+ fn: g((oe) => [
2743
+ $(b.$slots, Z, Q(ee(oe || {})))
2743
2744
  ])
2744
2745
  })),
2745
- g.legacyPaginationFooter ? {
2746
+ b.legacyPaginationFooter ? {
2746
2747
  name: "paginatorstart",
2747
- fn: f(() => [
2748
+ fn: g(() => [
2748
2749
  c("span", {
2749
2750
  class: B(["d-flex", o.loading ? "opacity-50" : ""]),
2750
2751
  "data-cy": "legacy-page-size"
2751
2752
  }, [
2752
- ca,
2753
- b(p(oe), {
2753
+ va,
2754
+ f(m(ae), {
2754
2755
  options: n.value,
2755
- modelValue: d.value,
2756
- "onUpdate:modelValue": k[1] || (k[1] = (G) => d.value = G),
2756
+ modelValue: u.value,
2757
+ "onUpdate:modelValue": k[1] || (k[1] = (G) => u.value = G),
2757
2758
  class: "ms-2",
2758
2759
  onClick: z
2759
2760
  }, null, 8, ["options", "modelValue"])
@@ -2761,20 +2762,20 @@ const Qt = {
2761
2762
  ]),
2762
2763
  key: "0"
2763
2764
  } : void 0,
2764
- g.legacyPaginationFooter ? {
2765
+ b.legacyPaginationFooter ? {
2765
2766
  name: "paginatorend",
2766
- fn: f(() => [
2767
+ fn: g(() => [
2767
2768
  c("span", {
2768
2769
  "data-cy": "legacy-total",
2769
2770
  class: B(o.loading ? "opacity-50" : "")
2770
- }, h(u.value) + " " + h(p(Q)(u.value, "result")) + " across " + h(m.value), 3)
2771
+ }, h(d.value) + " " + h(m(X)(d.value, "result")) + " across " + h(p.value), 3)
2771
2772
  ]),
2772
2773
  key: "1"
2773
2774
  } : void 0
2774
2775
  ]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
2775
2776
  ]));
2776
2777
  }
2777
- }), ma = { class: "d-flex position-relative" }, pa = { class: "d-flex w-100" }, va = { class: "d-flex w-100" }, Vl = /* @__PURE__ */ F({
2778
+ }), ba = { class: "d-flex position-relative" }, fa = { class: "d-flex w-100" }, ga = { class: "d-flex w-100" }, Pl = /* @__PURE__ */ F({
2778
2779
  __name: "ForgeFilterHeader",
2779
2780
  props: /* @__PURE__ */ E({
2780
2781
  dataType: {},
@@ -2789,56 +2790,56 @@ const Qt = {
2789
2790
  }),
2790
2791
  emits: ["update:modelValue"],
2791
2792
  setup(e) {
2792
- const t = U(e, "modelValue"), a = (l, n) => {
2793
+ const t = A(e, "modelValue"), a = (l, n) => {
2793
2794
  if (!l || Array.isArray(l) && l.length === 0)
2794
2795
  return n;
2795
- const d = (r) => {
2796
- var m;
2797
- const u = (m = e.dropdownOptions) == null ? void 0 : m.find(
2798
- (v) => e.optionValue ? v[e.optionValue] === r : Object.keys(v).every((s) => r.hasOwnProperty(s) && v[s] === r[s])
2796
+ const u = (r) => {
2797
+ var p;
2798
+ const d = (p = e.dropdownOptions) == null ? void 0 : p.find(
2799
+ (y) => e.optionValue ? y[e.optionValue] === r : Object.keys(y).every((s) => r.hasOwnProperty(s) && y[s] === r[s])
2799
2800
  );
2800
- return e.optionLabel ? u[e.optionLabel] : u;
2801
+ return e.optionLabel ? d[e.optionLabel] : d;
2801
2802
  };
2802
- return Array.isArray(l) ? l.map(d).join(", ") : d(l);
2803
+ return Array.isArray(l) ? l.map(u).join(", ") : u(l);
2803
2804
  }, o = () => {
2804
2805
  e.clearFilter ? e.clearFilter() : t.value = null;
2805
2806
  };
2806
2807
  return (l, n) => {
2807
- const d = ce, r = R;
2808
- return i(), y("div", ma, [
2809
- l.dataType === "numeric" ? (i(), w(d, S({
2808
+ const u = ue, r = R;
2809
+ return i(), v("div", ba, [
2810
+ l.dataType === "numeric" ? (i(), w(u, _({
2810
2811
  key: 0,
2811
2812
  modelValue: t.value,
2812
- "onUpdate:modelValue": n[0] || (n[0] = (u) => t.value = u)
2813
- }, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (i(), w(be, S({
2813
+ "onUpdate:modelValue": n[0] || (n[0] = (d) => t.value = d)
2814
+ }, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (i(), w(ye, _({
2814
2815
  key: 1,
2815
2816
  modelValue: t.value,
2816
- "onUpdate:modelValue": n[1] || (n[1] = (u) => t.value = u)
2817
+ "onUpdate:modelValue": n[1] || (n[1] = (d) => t.value = d)
2817
2818
  }, l.$attrs, {
2818
2819
  "show-icon": !1,
2819
2820
  "show-on-focus": !0
2820
- }), null, 16, ["modelValue"])) : l.dataType === "select" ? (i(), w(p(oe), S({
2821
+ }), null, 16, ["modelValue"])) : l.dataType === "select" ? (i(), w(m(ae), _({
2821
2822
  key: 2,
2822
2823
  modelValue: t.value,
2823
- "onUpdate:modelValue": n[2] || (n[2] = (u) => t.value = u)
2824
+ "onUpdate:modelValue": n[2] || (n[2] = (d) => t.value = d)
2824
2825
  }, l.$attrs, {
2825
2826
  options: l.dropdownOptions,
2826
2827
  "option-value": l.optionValue,
2827
2828
  "option-label": l.optionLabel
2828
2829
  }), {
2829
- value: f(({ value: u, placeholder: m }) => [
2830
- c("div", pa, [
2830
+ value: g(({ value: d, placeholder: p }) => [
2831
+ c("div", fa, [
2831
2832
  c("span", {
2832
- class: B({ "filter-placeholder": u === null })
2833
- }, h(a(u, m)), 3),
2833
+ class: B({ "filter-placeholder": d === null })
2834
+ }, h(a(d, p)), 3),
2834
2835
  l.showClearButton && t.value !== null ? (i(), w(r, {
2835
2836
  key: 0,
2836
- onClick: Y(o, ["prevent"]),
2837
+ onClick: q(o, ["prevent"]),
2837
2838
  size: "small",
2838
2839
  class: "bg-transparent border-0 ms-auto p-0 pe-1"
2839
2840
  }, {
2840
- default: f(() => [
2841
- b(p(C), {
2841
+ default: g(() => [
2842
+ f(m(V), {
2842
2843
  icon: "bi:x",
2843
2844
  width: "1rem",
2844
2845
  height: "1rem",
@@ -2846,14 +2847,14 @@ const Qt = {
2846
2847
  })
2847
2848
  ]),
2848
2849
  _: 1
2849
- })) : V("", !0)
2850
+ })) : S("", !0)
2850
2851
  ])
2851
2852
  ]),
2852
2853
  _: 1
2853
- }, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (i(), w(p(De), S({
2854
+ }, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (i(), w(m(ze), _({
2854
2855
  key: 3,
2855
2856
  modelValue: t.value,
2856
- "onUpdate:modelValue": n[3] || (n[3] = (u) => t.value = u)
2857
+ "onUpdate:modelValue": n[3] || (n[3] = (d) => t.value = d)
2857
2858
  }, l.$attrs, {
2858
2859
  options: l.dropdownOptions,
2859
2860
  showToggleAll: !1,
@@ -2861,19 +2862,19 @@ const Qt = {
2861
2862
  "option-value": l.optionValue,
2862
2863
  filter: ""
2863
2864
  }), {
2864
- value: f(({ value: u, placeholder: m }) => [
2865
- c("div", va, [
2865
+ value: g(({ value: d, placeholder: p }) => [
2866
+ c("div", ga, [
2866
2867
  c("span", {
2867
- class: B({ "filter-placeholder": (u == null ? void 0 : u.length) === 0 || u === null })
2868
- }, h(a(u, m)), 3),
2869
- l.showClearButton && (u == null ? void 0 : u.length) > 0 ? (i(), w(r, {
2868
+ class: B({ "filter-placeholder": (d == null ? void 0 : d.length) === 0 || d === null })
2869
+ }, h(a(d, p)), 3),
2870
+ l.showClearButton && (d == null ? void 0 : d.length) > 0 ? (i(), w(r, {
2870
2871
  key: 0,
2871
- onClick: Y(o, ["prevent"]),
2872
+ onClick: q(o, ["prevent"]),
2872
2873
  size: "small",
2873
2874
  class: "bg-transparent border-0 ms-auto p-0 pe-1"
2874
2875
  }, {
2875
- default: f(() => [
2876
- b(p(C), {
2876
+ default: g(() => [
2877
+ f(m(V), {
2877
2878
  icon: "bi:x",
2878
2879
  width: "1rem",
2879
2880
  height: "1rem",
@@ -2881,23 +2882,23 @@ const Qt = {
2881
2882
  })
2882
2883
  ]),
2883
2884
  _: 1
2884
- })) : V("", !0)
2885
+ })) : S("", !0)
2885
2886
  ])
2886
2887
  ]),
2887
2888
  _: 1
2888
- }, 16, ["modelValue", "options", "option-label", "option-value"])) : (i(), w(p(de), S({
2889
+ }, 16, ["modelValue", "options", "option-label", "option-value"])) : (i(), w(m(ie), _({
2889
2890
  key: 4,
2890
2891
  modelValue: t.value,
2891
- "onUpdate:modelValue": n[4] || (n[4] = (u) => t.value = u)
2892
+ "onUpdate:modelValue": n[4] || (n[4] = (d) => t.value = d)
2892
2893
  }, l.$attrs), null, 16, ["modelValue"])),
2893
2894
  l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (i(), w(r, {
2894
2895
  key: 5,
2895
- onClick: Y(o, ["prevent"]),
2896
+ onClick: q(o, ["prevent"]),
2896
2897
  size: "small",
2897
2898
  class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
2898
2899
  }, {
2899
- default: f(() => [
2900
- b(p(C), {
2900
+ default: g(() => [
2901
+ f(m(V), {
2901
2902
  icon: "bi:x",
2902
2903
  width: "1rem",
2903
2904
  height: "1rem",
@@ -2905,27 +2906,27 @@ const Qt = {
2905
2906
  })
2906
2907
  ]),
2907
2908
  _: 1
2908
- })) : V("", !0)
2909
+ })) : S("", !0)
2909
2910
  ]);
2910
2911
  };
2911
2912
  }
2912
2913
  });
2913
- function fe(e, t, a, o) {
2914
+ function ve(e, t, a, o) {
2914
2915
  const l = t.flatMap((n) => n.file);
2915
2916
  return t = t.map((n) => ({ ...n, status: n.status == "Duplicate" ? "Not Uploaded" : n.status })), e.forEach((n) => {
2916
- const d = l.findIndex((u) => u.name === n.name);
2917
+ const u = l.findIndex((d) => d.name === n.name);
2917
2918
  let r = "Not Uploaded";
2918
- d === -1 ? ((!a.includes(n.type) || !(n.size <= o)) && (r = a.includes(n.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
2919
+ u === -1 ? ((!a.includes(n.type) || !(n.size <= o)) && (r = a.includes(n.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
2919
2920
  file: n,
2920
2921
  status: r,
2921
2922
  blobFileName: null
2922
- })) : t[d].status = "Duplicate";
2923
+ })) : t[u].status = "Duplicate";
2923
2924
  }), t;
2924
2925
  }
2925
- async function ya(e, t) {
2926
+ async function ha(e, t) {
2926
2927
  if (e === "Uploaded" && t !== null)
2927
2928
  try {
2928
- await new me(t).delete();
2929
+ await new ce(t).delete();
2929
2930
  } catch (a) {
2930
2931
  if (a !== "BlobNotFound") {
2931
2932
  e = "DeleteFileFailed";
@@ -2933,25 +2934,25 @@ async function ya(e, t) {
2933
2934
  }
2934
2935
  }
2935
2936
  }
2936
- function ue(e, t = !0, a = 1) {
2937
+ function re(e, t = !0, a = 1) {
2937
2938
  const o = t ? 1e3 : 1024;
2938
2939
  if (Math.abs(e) < o)
2939
2940
  return e + " B";
2940
2941
  const l = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
2941
2942
  let n = -1;
2942
- const d = 10 ** a;
2943
+ const u = 10 ** a;
2943
2944
  do
2944
2945
  e /= o, ++n;
2945
- while (Math.round(Math.abs(e) * d) / d >= o && n < l.length - 1);
2946
+ while (Math.round(Math.abs(e) * u) / u >= o && n < l.length - 1);
2946
2947
  return e.toFixed(a) + " " + l[n];
2947
2948
  }
2948
- function ba(e) {
2949
+ function wa(e) {
2949
2950
  return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
2950
2951
  }
2951
- function fa(e) {
2952
+ function xa(e) {
2952
2953
  return URL.createObjectURL(e);
2953
2954
  }
2954
- const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disabled", "multiple"], wa = /* @__PURE__ */ F({
2955
+ const ka = { class: "d-flex justify-content-between" }, $a = ["accept", "disabled", "multiple"], Ba = /* @__PURE__ */ F({
2955
2956
  __name: "UploadButton",
2956
2957
  props: /* @__PURE__ */ E({
2957
2958
  acceptedFileTypes: {},
@@ -2963,10 +2964,10 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
2963
2964
  }),
2964
2965
  emits: ["update:modelValue"],
2965
2966
  setup(e) {
2966
- const t = U(e, "modelValue"), a = x(() => e.maxFileInput <= t.value.length), o = (l) => {
2967
- t.value = fe(l, t.value, e.acceptedFileTypes, e.maxFileInput);
2967
+ const t = A(e, "modelValue"), a = x(() => e.maxFileInput <= t.value.length), o = (l) => {
2968
+ t.value = ve(l, t.value, e.acceptedFileTypes, e.maxFileInput);
2968
2969
  };
2969
- return (l, n) => (i(), y("div", ga, [
2970
+ return (l, n) => (i(), v("div", ka, [
2970
2971
  $(l.$slots, "message"),
2971
2972
  c("div", null, [
2972
2973
  c("input", {
@@ -2976,15 +2977,15 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
2976
2977
  accept: l.acceptedFileTypes.join(", "),
2977
2978
  disabled: a.value,
2978
2979
  multiple: l.maxFileInput > 1,
2979
- onInput: n[0] || (n[0] = (d) => o([...d.target.files]))
2980
- }, null, 40, ha),
2980
+ onInput: n[0] || (n[0] = (u) => o([...u.target.files]))
2981
+ }, null, 40, $a),
2981
2982
  c("label", {
2982
2983
  class: B([{ disabled: a.value }, "btn btn-primary"]),
2983
2984
  id: "file-input-button",
2984
2985
  for: "file-input"
2985
2986
  }, [
2986
2987
  $(l.$slots, "button-content", {}, () => [
2987
- b(p(C), {
2988
+ f(m(V), {
2988
2989
  icon: "bi:upload",
2989
2990
  class: "me-2",
2990
2991
  height: "20px",
@@ -2994,21 +2995,21 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
2994
2995
  ])
2995
2996
  ], 2)
2996
2997
  ]),
2997
- l.showDragDropArea ? (i(), y("div", {
2998
+ l.showDragDropArea ? (i(), v("div", {
2998
2999
  class: "ms-auto",
2999
3000
  key: l.acceptedFileTypes.length,
3000
3001
  id: "accepted-file-types"
3001
- }, "Accepted File Types: " + h(l.acceptedFileTypes.map((d) => d.split("/").pop()).join(", ")), 1)) : V("", !0)
3002
+ }, "Accepted File Types: " + h(l.acceptedFileTypes.map((u) => u.split("/").pop()).join(", ")), 1)) : S("", !0)
3002
3003
  ]));
3003
3004
  }
3004
- }), xa = {
3005
+ }), Fa = {
3005
3006
  key: 0,
3006
3007
  class: "py-4 px-3",
3007
3008
  id: "placeholder-message"
3008
- }, ka = {
3009
+ }, _a = {
3009
3010
  key: 1,
3010
3011
  class: "d-flex flex-column"
3011
- }, $a = /* @__PURE__ */ F({
3012
+ }, Sa = /* @__PURE__ */ F({
3012
3013
  __name: "DragDropArea",
3013
3014
  props: /* @__PURE__ */ E({
3014
3015
  maxFileInput: {},
@@ -3020,30 +3021,30 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
3020
3021
  }),
3021
3022
  emits: ["update:modelValue"],
3022
3023
  setup(e) {
3023
- const t = U(e, "modelValue"), a = I(!1), o = x(() => e.maxFileInput <= t.value.length), l = (n) => {
3024
- a.value = !1, n.dataTransfer.files.length > e.maxFileInput || o.value ? n.preventDefault() : t.value = fe([...n.dataTransfer.files], t.value, e.acceptedFileTypes, e.maxFileSize);
3024
+ const t = A(e, "modelValue"), a = I(!1), o = x(() => e.maxFileInput <= t.value.length), l = (n) => {
3025
+ a.value = !1, n.dataTransfer.files.length > e.maxFileInput || o.value ? n.preventDefault() : t.value = ve([...n.dataTransfer.files], t.value, e.acceptedFileTypes, e.maxFileSize);
3025
3026
  };
3026
- return (n, d) => (i(), y("div", {
3027
+ return (n, u) => (i(), v("div", {
3027
3028
  id: "drag-drop-area",
3028
3029
  class: B(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
3029
- onDragleave: d[0] || (d[0] = Y((r) => a.value = !1, ["prevent"])),
3030
- onDragover: d[1] || (d[1] = Y((r) => a.value = !0, ["prevent"])),
3031
- onDrop: Y(l, ["prevent"])
3030
+ onDragleave: u[0] || (u[0] = q((r) => a.value = !1, ["prevent"])),
3031
+ onDragover: u[1] || (u[1] = q((r) => a.value = !0, ["prevent"])),
3032
+ onDrop: q(l, ["prevent"])
3032
3033
  }, [
3033
- t.value.length === 0 ? (i(), y("div", xa, [
3034
- b(p(C), {
3034
+ t.value.length === 0 ? (i(), v("div", Fa, [
3035
+ f(m(V), {
3035
3036
  icon: "bi:upload",
3036
3037
  class: "me-2",
3037
3038
  height: "20px",
3038
3039
  width: "20px"
3039
3040
  }),
3040
3041
  O(" Drag and drop files here ")
3041
- ])) : (i(), y("div", ka, [
3042
+ ])) : (i(), v("div", _a, [
3042
3043
  $(n.$slots, "default")
3043
3044
  ]))
3044
3045
  ], 34));
3045
3046
  }
3046
- }), Ba = { class: "d-flex align-items-center me-2" }, Fa = /* @__PURE__ */ F({
3047
+ }), Va = { class: "d-flex align-items-center me-2" }, Ca = /* @__PURE__ */ F({
3047
3048
  __name: "UploadStatus",
3048
3049
  props: {
3049
3050
  fileSize: {},
@@ -3057,7 +3058,7 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
3057
3058
  case "InvalidFileType":
3058
3059
  return "Upload Failed: File type is not accepted.";
3059
3060
  case "InvalidFileSize":
3060
- return `Upload Failed: File size exceeds the ${ue(e.maxFileSize)} limit.`;
3061
+ return `Upload Failed: File size exceeds the ${re(e.maxFileSize)} limit.`;
3061
3062
  case "Aborted":
3062
3063
  return "Upload Failed: User cancelled.";
3063
3064
  case "DeleteFileFailed":
@@ -3068,41 +3069,41 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
3068
3069
  return "Upload Failed: Connection error, please try again.";
3069
3070
  }
3070
3071
  });
3071
- return (o, l) => (i(), y("div", Ba, [
3072
- o.uploadStatus === "Uploading" ? (i(), w(Gt, {
3072
+ return (o, l) => (i(), v("div", Va, [
3073
+ o.uploadStatus === "Uploading" ? (i(), w(Wt, {
3073
3074
  key: 0,
3074
3075
  pixelWidth: 200,
3075
3076
  animate: "",
3076
3077
  striped: ""
3077
3078
  }, {
3078
- default: f(() => [
3079
+ default: g(() => [
3079
3080
  O(h((o.bytesUploaded / o.fileSize * 100).toFixed(0)) + "%", 1)
3080
3081
  ]),
3081
3082
  _: 1
3082
- })) : V("", !0),
3083
- o.uploadStatus !== "Uploading" && o.uploadStatus !== "Not Uploaded" && o.uploadStatus !== "Uploaded" && o.uploadStatus !== "Preparing" ? (i(), w(ne, {
3083
+ })) : S("", !0),
3084
+ o.uploadStatus !== "Uploading" && o.uploadStatus !== "Not Uploaded" && o.uploadStatus !== "Uploaded" && o.uploadStatus !== "Preparing" ? (i(), w(le, {
3084
3085
  key: 1,
3085
3086
  id: "upload-status-alert",
3086
3087
  severity: t.value,
3087
3088
  class: "mb-0 w-75 ms-auto"
3088
3089
  }, {
3089
- default: f(() => [
3090
+ default: g(() => [
3090
3091
  O(h(a.value), 1)
3091
3092
  ]),
3092
3093
  _: 1
3093
- }, 8, ["severity"])) : V("", !0)
3094
+ }, 8, ["severity"])) : S("", !0)
3094
3095
  ]));
3095
3096
  }
3096
- }), _a = ["data-cy"], Sa = { class: "ms-3 d-flex flex-column" }, Va = {
3097
+ }), Ta = ["data-cy"], Ma = { class: "ms-3 d-flex flex-column" }, Pa = {
3097
3098
  key: 1,
3098
3099
  id: "file-name"
3099
- }, Ca = {
3100
+ }, Ia = {
3100
3101
  class: "text-black-50",
3101
3102
  id: "file-type"
3102
- }, Ta = {
3103
+ }, za = {
3103
3104
  class: "text-black-50",
3104
3105
  id: "file-size"
3105
- }, Ma = { class: "ms-auto my-auto d-flex" }, Pa = /* @__PURE__ */ F({
3106
+ }, Oa = { class: "ms-auto my-auto d-flex" }, Da = /* @__PURE__ */ F({
3106
3107
  __name: "FileInfo",
3107
3108
  props: /* @__PURE__ */ E({
3108
3109
  editableFileName: { type: Boolean },
@@ -3121,14 +3122,14 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
3121
3122
  }),
3122
3123
  emits: /* @__PURE__ */ E(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
3123
3124
  setup(e, { emit: t }) {
3124
- const a = U(e, "file"), o = U(e, "blobFileName"), l = U(e, "uploadStatus"), n = t, d = I(a.value.name), r = I(""), u = I(0), m = I(), v = x(() => e.acceptedFileTypes.includes(a.value.type)), s = x(() => a.value.size <= e.maxFileSize), T = () => {
3125
- a.value = new File([a.value], d.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() });
3126
- }, _ = async () => {
3127
- if (!v.value || !s.value) {
3128
- l.value = v.value ? "InvalidFileSize" : "InvalidFileType";
3125
+ 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(), y = x(() => e.acceptedFileTypes.includes(a.value.type)), s = x(() => a.value.size <= e.maxFileSize), T = () => {
3126
+ a.value = new File([a.value], u.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() });
3127
+ }, C = async () => {
3128
+ if (!y.value || !s.value) {
3129
+ l.value = y.value ? "InvalidFileSize" : "InvalidFileType";
3129
3130
  return;
3130
3131
  }
3131
- l.value = "Preparing", m.value = new AbortController();
3132
+ l.value = "Preparing", p.value = new AbortController();
3132
3133
  const [P, z] = await e.getFileUrlAction(a.value.name);
3133
3134
  if (!P) {
3134
3135
  l.value = "Failed";
@@ -3136,40 +3137,40 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
3136
3137
  }
3137
3138
  try {
3138
3139
  l.value = "Uploading";
3139
- const g = new me(P), k = {
3140
- abortSignal: m.value.signal,
3141
- onProgress: (G) => u.value = G.loadedBytes,
3140
+ const b = new ce(P), k = {
3141
+ abortSignal: p.value.signal,
3142
+ onProgress: (G) => d.value = G.loadedBytes,
3142
3143
  tags: { temp: "true" }
3143
3144
  };
3144
- await g.uploadData(a.value, k), r.value = P, l.value = "Uploaded", o.value = z;
3145
- } catch (g) {
3146
- if (g.name === "AbortError") {
3145
+ await b.uploadData(a.value, k), r.value = P, l.value = "Uploaded", o.value = z;
3146
+ } catch (b) {
3147
+ if (b.name === "AbortError") {
3147
3148
  l.value = "Aborted";
3148
3149
  return;
3149
3150
  }
3150
3151
  l.value = "Failed";
3151
3152
  }
3152
3153
  }, M = async () => {
3153
- await ya(l.value, r.value), n("deleted", a.value);
3154
+ await ha(l.value, r.value), n("deleted", a.value);
3154
3155
  };
3155
- return ae(() => {
3156
- e.autoUploadToBlob && _();
3156
+ return ne(() => {
3157
+ e.autoUploadToBlob && C();
3157
3158
  }), (P, z) => {
3158
- const g = R;
3159
- return i(), y("div", {
3159
+ const b = R;
3160
+ return i(), v("div", {
3160
3161
  class: "py-4 px-3 d-flex",
3161
3162
  "data-cy": `file-info-${a.value.name}`
3162
3163
  }, [
3163
3164
  c("div", null, [
3164
- p(ba)(a.value.type) ? (i(), w(p(Ue), {
3165
+ m(wa)(a.value.type) ? (i(), w(m(Oe), {
3165
3166
  key: 0,
3166
3167
  id: "thumbnail-image",
3167
3168
  "image-class": "image-file-thumbnail border",
3168
- src: p(fa)(a.value),
3169
+ src: m(xa)(a.value),
3169
3170
  alt: a.value.name,
3170
3171
  width: "75px",
3171
3172
  preview: ""
3172
- }, null, 8, ["src", "alt"])) : (i(), w(p(C), {
3173
+ }, null, 8, ["src", "alt"])) : (i(), w(m(V), {
3173
3174
  key: 1,
3174
3175
  id: "file-earmark",
3175
3176
  icon: "bi:file-earmark",
@@ -3177,76 +3178,76 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
3177
3178
  width: "75px"
3178
3179
  }))
3179
3180
  ]),
3180
- c("div", Sa, [
3181
+ c("div", Ma, [
3181
3182
  c("div", null, [
3182
- P.editableFileName ? (i(), w(Bt, {
3183
+ P.editableFileName ? (i(), w($t, {
3183
3184
  key: 0,
3184
3185
  id: "edit-file-name",
3185
- modelValue: d.value,
3186
- "onUpdate:modelValue": z[0] || (z[0] = (k) => d.value = k),
3186
+ modelValue: u.value,
3187
+ "onUpdate:modelValue": z[0] || (z[0] = (k) => u.value = k),
3187
3188
  rules: P.customFileNameRules,
3188
3189
  name: a.value.name,
3189
3190
  "complete-action": T
3190
- }, null, 8, ["modelValue", "rules", "name"])) : (i(), y("span", Va, h(a.value.name), 1))
3191
+ }, null, 8, ["modelValue", "rules", "name"])) : (i(), v("span", Pa, h(a.value.name), 1))
3191
3192
  ]),
3192
- c("span", Ca, "File type: " + h(a.value.type.split("/").pop()), 1),
3193
- c("span", Ta, "File size: " + h(p(ue)(a.value.size)), 1)
3193
+ c("span", Ia, "File type: " + h(a.value.type.split("/").pop()), 1),
3194
+ c("span", za, "File size: " + h(m(re)(a.value.size)), 1)
3194
3195
  ]),
3195
- c("div", Ma, [
3196
- (i(), w(Fa, {
3196
+ c("div", Oa, [
3197
+ (i(), w(Ca, {
3197
3198
  key: l.value,
3198
3199
  "file-size": a.value.size,
3199
3200
  "upload-status": l.value,
3200
- "bytes-uploaded": u.value,
3201
+ "bytes-uploaded": d.value,
3201
3202
  "max-file-size": P.maxFileSize
3202
3203
  }, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
3203
- l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (i(), w(g, {
3204
+ l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (i(), w(b, {
3204
3205
  key: 0,
3205
3206
  link: "",
3206
- onClick: _
3207
+ onClick: C
3207
3208
  }, {
3208
- default: f(() => [
3209
- b(p(C), {
3209
+ default: g(() => [
3210
+ f(m(V), {
3210
3211
  icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
3211
3212
  }, null, 8, ["icon"])
3212
3213
  ]),
3213
3214
  _: 1
3214
- })) : V("", !0),
3215
- l.value === "Uploading" ? (i(), w(g, {
3215
+ })) : S("", !0),
3216
+ l.value === "Uploading" ? (i(), w(b, {
3216
3217
  key: 1,
3217
3218
  link: "",
3218
- onClick: z[1] || (z[1] = (k) => m.value.value.abort())
3219
+ onClick: z[1] || (z[1] = (k) => p.value.value.abort())
3219
3220
  }, {
3220
- default: f(() => [
3221
- b(p(C), { icon: "bi:x-circle-fill" })
3221
+ default: g(() => [
3222
+ f(m(V), { icon: "bi:x-circle-fill" })
3222
3223
  ]),
3223
3224
  _: 1
3224
- })) : (i(), w(g, {
3225
+ })) : (i(), w(b, {
3225
3226
  key: 2,
3226
3227
  link: "",
3227
3228
  onClick: M,
3228
3229
  id: "delete-button"
3229
3230
  }, {
3230
- default: f(() => [
3231
- b(p(C), { icon: "bi:trash" })
3231
+ default: g(() => [
3232
+ f(m(V), { icon: "bi:trash" })
3232
3233
  ]),
3233
3234
  _: 1
3234
3235
  }))
3235
3236
  ])
3236
- ], 8, _a);
3237
+ ], 8, Ta);
3237
3238
  };
3238
3239
  }
3239
- }), Ia = { class: "d-flex justify-content-end mt-1" }, za = { id: "max-file-size" }, Oa = /* @__PURE__ */ F({
3240
+ }), Ua = { class: "d-flex justify-content-end mt-1" }, Aa = { id: "max-file-size" }, Na = /* @__PURE__ */ F({
3240
3241
  __name: "MaxFileSize",
3241
3242
  props: {
3242
3243
  maxFileSize: {}
3243
3244
  },
3244
3245
  setup(e) {
3245
- return (t, a) => (i(), y("div", Ia, [
3246
- c("div", za, "Max file size: " + h(p(ue)(t.maxFileSize)), 1)
3246
+ return (t, a) => (i(), v("div", Ua, [
3247
+ c("div", Aa, "Max file size: " + h(m(re)(t.maxFileSize)), 1)
3247
3248
  ]));
3248
3249
  }
3249
- }), Da = { "data-cy": "file-uploader" }, Ua = { key: 0 }, Cl = /* @__PURE__ */ F({
3250
+ }), Ea = { "data-cy": "file-uploader" }, La = { key: 0 }, Il = /* @__PURE__ */ F({
3250
3251
  __name: "ForgeFileUploader",
3251
3252
  props: /* @__PURE__ */ E({
3252
3253
  acceptedFileTypes: {},
@@ -3263,72 +3264,72 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
3263
3264
  }),
3264
3265
  emits: ["update:modelValue"],
3265
3266
  setup(e) {
3266
- const t = U(e, "modelValue"), a = e, o = (l) => {
3267
+ const t = A(e, "modelValue"), a = e, o = (l) => {
3267
3268
  t.value = t.value.filter((n) => n.file != l);
3268
3269
  };
3269
- return (l, n) => (i(), y("div", Da, [
3270
- b(wa, S(a, {
3270
+ return (l, n) => (i(), v("div", Ea, [
3271
+ f(Ba, _(a, {
3271
3272
  modelValue: t.value,
3272
- "onUpdate:modelValue": n[0] || (n[0] = (d) => t.value = d)
3273
+ "onUpdate:modelValue": n[0] || (n[0] = (u) => t.value = u)
3273
3274
  }), null, 16, ["modelValue"]),
3274
- l.showDragDropArea ? (i(), y("div", Ua, [
3275
- b($a, {
3275
+ l.showDragDropArea ? (i(), v("div", La, [
3276
+ f(Sa, {
3276
3277
  "max-file-input": a.maxFileInput,
3277
3278
  "max-file-size": a.maxFileSize,
3278
3279
  "accepted-file-types": a.acceptedFileTypes,
3279
3280
  modelValue: t.value,
3280
- "onUpdate:modelValue": n[1] || (n[1] = (d) => t.value = d)
3281
+ "onUpdate:modelValue": n[1] || (n[1] = (u) => t.value = u)
3281
3282
  }, {
3282
- default: f(() => [
3283
- (i(!0), y(N, null, q(t.value, ({ file: d }, r) => (i(), y("span", null, [
3284
- (i(), w(Pa, S({
3285
- key: d.name,
3283
+ default: g(() => [
3284
+ (i(!0), v(L, null, Y(t.value, ({ file: u }, r) => (i(), v("span", null, [
3285
+ (i(), w(Da, _({
3286
+ key: u.name,
3286
3287
  class: r === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
3287
3288
  file: t.value[r].file,
3288
- "onUpdate:file": (u) => t.value[r].file = u,
3289
+ "onUpdate:file": (d) => t.value[r].file = d,
3289
3290
  "blob-file-name": t.value[r].blobFileName,
3290
- "onUpdate:blobFileName": (u) => t.value[r].blobFileName = u,
3291
+ "onUpdate:blobFileName": (d) => t.value[r].blobFileName = d,
3291
3292
  "upload-status": t.value[r].status,
3292
- "onUpdate:uploadStatus": (u) => t.value[r].status = u,
3293
+ "onUpdate:uploadStatus": (d) => t.value[r].status = d,
3293
3294
  ref_for: !0
3294
3295
  }, a, { onDeleted: o }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
3295
3296
  ]))), 256))
3296
3297
  ]),
3297
3298
  _: 1
3298
3299
  }, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
3299
- b(Oa, {
3300
+ f(Na, {
3300
3301
  "max-file-size": a.maxFileSize
3301
3302
  }, null, 8, ["max-file-size"])
3302
- ])) : V("", !0)
3303
+ ])) : S("", !0)
3303
3304
  ]));
3304
3305
  }
3305
3306
  });
3306
3307
  export {
3307
- cl as Bootstrap_PT,
3308
- ml as ForgeActionButton,
3309
- ne as ForgeAlert,
3310
- pe as ForgeCheckbox,
3311
- $l as ForgeChips,
3312
- be as ForgeDatepicker,
3313
- Cl as ForgeFileUploader,
3314
- Vl as ForgeFilterHeader,
3315
- xl as ForgeForm,
3316
- kl as ForgeFormField,
3317
- Bt as ForgeInlineEditor,
3318
- pl as ForgeLink,
3319
- ve as ForgeLoader,
3320
- bl as ForgeModal,
3321
- ye as ForgeMultiSelect,
3322
- gl as ForgeMultiSelectPreview,
3323
- fl as ForgeNavbar,
3324
- hl as ForgePageHeader,
3325
- Gt as ForgeProgressBar,
3326
- wl as ForgeRemainingCharacters,
3327
- Bl as ForgeStatWidget,
3328
- Fl as ForgeStepper,
3329
- Sl as ForgeTable,
3330
- _l as ForgeTile,
3331
- yl as convertToMultiSelectOption,
3332
- vl as enumToMultiSelectList,
3308
+ vl as Bootstrap_PT,
3309
+ bl as ForgeActionButton,
3310
+ le as ForgeAlert,
3311
+ ct as ForgeCheckbox,
3312
+ Sl as ForgeChips,
3313
+ ye as ForgeDatepicker,
3314
+ Il as ForgeFileUploader,
3315
+ Pl as ForgeFilterHeader,
3316
+ Fl as ForgeForm,
3317
+ _l as ForgeFormField,
3318
+ $t as ForgeInlineEditor,
3319
+ fl as ForgeLink,
3320
+ me as ForgeLoader,
3321
+ wl as ForgeModal,
3322
+ pe as ForgeMultiSelect,
3323
+ kl as ForgeMultiSelectPreview,
3324
+ xl as ForgeNavbar,
3325
+ $l as ForgePageHeader,
3326
+ Wt as ForgeProgressBar,
3327
+ Bl as ForgeRemainingCharacters,
3328
+ Vl as ForgeStatWidget,
3329
+ Cl as ForgeStepper,
3330
+ Ml as ForgeTable,
3331
+ Tl as ForgeTile,
3332
+ hl as convertToMultiSelectOption,
3333
+ gl as enumToMultiSelectList,
3333
3334
  yt as parseError
3334
3335
  };