@3squared/forge-ui-3 0.6.1 → 0.7.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,28 +1,28 @@
1
- import fe from "primevue/message";
2
- import { defineComponent as F, openBlock as s, createBlock as w, normalizeProps as Q, guardReactiveProps as ee, withCtx as b, createElementVNode as m, normalizeClass as _, unref as u, createCommentVNode as B, createVNode as v, renderSlot as k, ref as M, createElementBlock as p, Fragment as A, mergeProps as S, onMounted as oe, watch as ge, computed as x, isRef as j, createTextVNode as P, toDisplayString as h, withDirectives as L, vShow as Y, mergeModels as q, useModel as R, createSlots as te, renderList as H, withKeys as J, useAttrs as de, withModifiers as G, normalizeStyle as he } from "vue";
3
- import { Icon as C } from "@iconify/vue";
4
- import E from "primevue/button";
1
+ import ge from "primevue/message";
2
+ import { defineComponent as F, openBlock as s, createBlock as k, normalizeProps as ee, guardReactiveProps as te, withCtx as g, createElementVNode as u, normalizeClass as B, unref as c, createCommentVNode as C, createVNode as b, renderSlot as _, ref as M, createElementBlock as v, Fragment as N, mergeProps as V, onMounted as ae, watch as ie, computed as w, isRef as le, createTextVNode as z, toDisplayString as h, withDirectives as L, vShow as q, mergeModels as H, useModel as E, createSlots as oe, renderList as j, withKeys as X, useAttrs as me, withModifiers as G, normalizeStyle as he } from "vue";
3
+ import { Icon as T } from "@iconify/vue";
4
+ import R from "primevue/button";
5
5
  import we from "primevue/toast";
6
6
  import xe from "primevue/checkbox";
7
7
  import { useField as W } from "vee-validate";
8
8
  import ke from "primevue/progressspinner";
9
- import $e from "primevue/dialog";
10
- import ne from "primevue/inputtext";
11
- import { vOnClickOutside as _e } from "@vueuse/components";
12
- import Fe from "primevue/menubar";
13
- import Be from "vue-multiselect";
9
+ import _e from "primevue/dialog";
10
+ import re from "primevue/inputtext";
11
+ import { vOnClickOutside as $e } from "@vueuse/components";
12
+ import Be from "primevue/menubar";
13
+ import Fe from "vue-multiselect";
14
14
  import Se from "primevue/calendar";
15
15
  import Ce from "primevue/inputmask";
16
16
  import Ve from "primevue/textarea";
17
- import ue from "primevue/inputnumber";
17
+ import pe from "primevue/inputnumber";
18
18
  import Te from "primevue/chips";
19
- import Me from "primevue/progressbar";
20
- import Pe from "primevue/divider";
19
+ import Pe from "primevue/progressbar";
20
+ import Me from "primevue/divider";
21
21
  import Ie from "primevue/steps";
22
22
  import ze from "primevue/datatable";
23
- import se from "primevue/dropdown";
23
+ import de from "primevue/dropdown";
24
24
  import Oe from "primevue/multiselect";
25
- import { BlockBlobClient as ce } from "@azure/storage-blob";
25
+ import { BlockBlobClient as ve } from "@azure/storage-blob";
26
26
  import De from "primevue/image";
27
27
  const Ue = {
28
28
  button: {
@@ -126,7 +126,7 @@ const Ue = {
126
126
  ]
127
127
  })
128
128
  }
129
- }, re = {
129
+ }, ce = {
130
130
  dropdown: {
131
131
  root: ({ props: e }) => ({
132
132
  class: [
@@ -190,12 +190,12 @@ const Ue = {
190
190
  column: {
191
191
  sortBadge: "ms-2 my-auto cursor-pointer",
192
192
  headerCell: (e) => {
193
- var t, n, a, l;
193
+ var t, l, a, o;
194
194
  return {
195
195
  class: [{
196
196
  "cursor-move": e.props.reorderableColumns,
197
- "position-sticky": ((t = e.column) == null ? void 0 : t.context.frozen) !== void 0 || ((n = e.column) == null ? void 0 : n.context.frozen) || ((a = e.column) == null ? void 0 : a.context.frozen) === "",
198
- "overflow-hidden position-relative bg-clip-padding": (l = e.column) == null ? void 0 : l.context.resizable
197
+ "position-sticky": ((t = e.column) == null ? void 0 : t.context.frozen) !== void 0 || ((l = e.column) == null ? void 0 : l.context.frozen) || ((a = e.column) == null ? void 0 : a.context.frozen) === "",
198
+ "overflow-hidden position-relative bg-clip-padding": (o = e.column) == null ? void 0 : o.context.resizable
199
199
  }]
200
200
  };
201
201
  },
@@ -282,13 +282,13 @@ const Ue = {
282
282
  }, Ee = {
283
283
  inputtext: {
284
284
  root: (e) => {
285
- var t, n;
285
+ var t, l;
286
286
  return {
287
287
  class: [
288
288
  "form-control",
289
289
  {
290
290
  "form-control-lg": ((t = e.props.size) == null ? void 0 : t.toLowerCase()) == "large",
291
- "form-control-sm": ((n = e.props.size) == null ? void 0 : n.toLowerCase()) == "small"
291
+ "form-control-sm": ((l = e.props.size) == null ? void 0 : l.toLowerCase()) == "small"
292
292
  }
293
293
  ]
294
294
  };
@@ -583,13 +583,13 @@ const Ue = {
583
583
  };
584
584
  },
585
585
  pages: "d-flex",
586
- firstPageButton: "page-link",
587
- previousPageButton: "page-link",
588
- nextPageButton: "page-link",
589
- lastPageButton: "page-link me-2",
586
+ firstPageButton: "page-link cursor-pointer",
587
+ previousPageButton: "page-link cursor-pointer",
588
+ nextPageButton: "page-link cursor-pointer",
589
+ lastPageButton: "page-link me-2 cursor-pointer",
590
590
  pageButton: ({ context: e }) => ({
591
591
  class: [
592
- "page-link",
592
+ "page-link cursor-pointer",
593
593
  {
594
594
  active: e.active,
595
595
  disabled: e.disabled
@@ -801,15 +801,15 @@ const Ue = {
801
801
  class: ["ps-1"]
802
802
  }),
803
803
  icon: ({ props: e }) => {
804
- var t, n, a, l;
804
+ var t, l, a, o;
805
805
  return {
806
806
  class: [
807
807
  "toast-icon",
808
808
  {
809
809
  "text-primary": ((t = e.message) == null ? void 0 : t.severity) === "info",
810
- "text-success": ((n = e.message) == null ? void 0 : n.severity) === "success",
810
+ "text-success": ((l = e.message) == null ? void 0 : l.severity) === "success",
811
811
  "text-danger": ((a = e.message) == null ? void 0 : a.severity) === "error",
812
- "text-warning": ((l = e.message) == null ? void 0 : l.severity) === "warn"
812
+ "text-warning": ((o = e.message) == null ? void 0 : o.severity) === "warn"
813
813
  }
814
814
  ]
815
815
  };
@@ -825,13 +825,13 @@ const Ue = {
825
825
  ...Ze,
826
826
  ...Ye,
827
827
  ...nt,
828
- ...re,
828
+ ...ce,
829
829
  ...st,
830
830
  ...Ee,
831
831
  ...Re,
832
832
  ...Le,
833
833
  ...Ge,
834
- ...re,
834
+ ...ce,
835
835
  ...et,
836
836
  ...qe,
837
837
  ...Je,
@@ -845,7 +845,7 @@ const Ue = {
845
845
  directives: {
846
846
  ...tt
847
847
  }
848
- }, ae = /* @__PURE__ */ F({
848
+ }, ne = /* @__PURE__ */ F({
849
849
  __name: "ForgeAlert",
850
850
  props: {
851
851
  severity: { default: "primary" },
@@ -861,27 +861,27 @@ const Ue = {
861
861
  },
862
862
  setup(e) {
863
863
  const t = e;
864
- return (n, a) => {
865
- const l = fe;
866
- return s(), w(l, Q(ee({ ...n.$attrs, ...t })), {
867
- messageicon: b(() => [
868
- m("div", {
869
- class: _(t.icon ? "me-2 pe-1" : "")
864
+ return (l, a) => {
865
+ const o = ge;
866
+ return s(), k(o, ee(te({ ...l.$attrs, ...t })), {
867
+ messageicon: g(() => [
868
+ u("div", {
869
+ class: B(t.icon ? "me-2 pe-1" : "")
870
870
  }, [
871
- t.icon ? (s(), w(u(C), {
871
+ t.icon ? (s(), k(c(T), {
872
872
  key: 0,
873
873
  "data-cy": "message-icon",
874
874
  icon: t.icon,
875
- class: _(`text-${t.severity}`),
875
+ class: B(`text-${t.severity}`),
876
876
  height: 35
877
- }, null, 8, ["icon", "class"])) : B("", !0)
877
+ }, null, 8, ["icon", "class"])) : C("", !0)
878
878
  ], 2)
879
879
  ]),
880
- closeicon: b(() => [
881
- v(u(C), { icon: "bi:x" })
880
+ closeicon: g(() => [
881
+ b(c(T), { icon: "bi:x" })
882
882
  ]),
883
- default: b(() => [
884
- k(n.$slots, "default")
883
+ default: g(() => [
884
+ _(l.$slots, "default")
885
885
  ]),
886
886
  _: 3
887
887
  }, 16);
@@ -896,32 +896,31 @@ const Ue = {
896
896
  params: { default: Array }
897
897
  },
898
898
  setup(e) {
899
- const t = M(!1), n = e, a = async () => {
899
+ const t = M(!1), l = e, a = async () => {
900
900
  t.value = !0;
901
901
  try {
902
- await n.action.apply(this, n.params);
903
- } catch (l) {
904
- await n.errorAction.apply(this, n.errorParams ? [...n.errorParams, l] : [l]);
902
+ await l.action.apply(this, l.params);
903
+ } catch (o) {
904
+ await l.errorAction.apply(this, l.errorParams ? [...l.errorParams, o] : [o]);
905
905
  }
906
906
  t.value = !1;
907
907
  };
908
- return (l, o) => {
909
- const i = E;
910
- return s(), p(A, null, [
911
- v(i, S({ ...n, ...l.$attrs }, {
908
+ return (o, n) => {
909
+ const i = R;
910
+ return s(), v(N, null, [
911
+ b(i, V({ ...l, ...o.$attrs }, {
912
912
  loading: t.value,
913
- disabled: t.value || n.disabled,
913
+ disabled: t.value || l.disabled,
914
914
  onClick: a
915
915
  }), null, 16, ["loading", "disabled"]),
916
- v(u(we))
916
+ b(c(we))
917
917
  ], 64);
918
918
  };
919
919
  }
920
- }), rt = /* @__PURE__ */ m("div", null, null, -1), dt = ["for"], me = /* @__PURE__ */ F({
920
+ }), rt = /* @__PURE__ */ u("div", null, null, -1), dt = ["for"], ye = /* @__PURE__ */ F({
921
921
  __name: "ForgeCheckbox",
922
922
  props: {
923
923
  label: { default: "" },
924
- rules: {},
925
924
  value: {},
926
925
  modelValue: {},
927
926
  name: {},
@@ -945,70 +944,70 @@ const Ue = {
945
944
  },
946
945
  emits: ["update:modelValue"],
947
946
  setup(e, { emit: t }) {
948
- const n = t, a = e, { checked: l, handleChange: o, setValue: i, errors: d, errorMessage: f } = W(() => a.name ?? a.label, a.rules, {
947
+ const l = t, a = e, { checked: o, handleChange: n, setValue: i, errors: d, errorMessage: y } = W(() => a.name ?? a.label, void 0, {
949
948
  type: "checkbox",
950
949
  checkedValue: !0
951
- }), r = (y) => {
952
- a.disabled || (o(y), n("update:modelValue", !a.modelValue));
950
+ }), r = (p) => {
951
+ a.disabled || (n(p), l("update:modelValue", !a.modelValue));
953
952
  };
954
- oe(() => {
955
- a.value !== void 0 && a.value !== (l == null ? void 0 : l.value) ? i(a.value) : a.modelValue !== void 0 && a.modelValue !== (l == null ? void 0 : l.value) && i(a.modelValue);
956
- }), ge(() => a.value, (y) => {
957
- i(y);
953
+ ae(() => {
954
+ a.value !== void 0 && a.value !== (o == null ? void 0 : o.value) ? i(a.value) : a.modelValue !== void 0 && a.modelValue !== (o == null ? void 0 : o.value) && i(a.modelValue);
955
+ }), ie(() => a.value, (p) => {
956
+ i(p);
958
957
  });
959
- const g = x(() => d.value.length > 0);
960
- return (y, c) => {
958
+ const m = w(() => d.value.length > 0);
959
+ return (p, x) => {
961
960
  const $ = xe;
962
- return s(), p(A, null, [
963
- m("div", S({
961
+ return s(), v(N, null, [
962
+ u("div", V({
964
963
  class: "d-flex",
965
964
  "data-cy": "checkbox-container"
966
- }, { ...y.$attrs }), [
967
- v($, S({
965
+ }, { ...p.$attrs }), [
966
+ b($, V({
968
967
  id: a.name
969
968
  }, { ...a }, {
970
- modelValue: u(l),
971
- "onUpdate:modelValue": c[0] || (c[0] = (V) => j(l) ? l.value = V : null),
972
- "input-class": { "is-invalid": g.value },
969
+ modelValue: c(o),
970
+ "onUpdate:modelValue": x[0] || (x[0] = (P) => le(o) ? o.value = P : null),
971
+ "input-class": { "is-invalid": m.value },
973
972
  onChange: r
974
973
  }), {
975
- icon: b(() => [
974
+ icon: g(() => [
976
975
  rt
977
976
  ]),
978
977
  _: 1
979
978
  }, 16, ["id", "modelValue", "input-class"]),
980
- m("label", {
979
+ u("label", {
981
980
  for: a.name,
982
- class: _(`${a.disabled ? "opacity-50" : "cursor-pointer"}`),
981
+ class: B(`${a.disabled ? "opacity-50" : "cursor-pointer"} ${m.value ? "text-danger-dark" : ""}`),
983
982
  onClick: r
984
983
  }, [
985
- k(y.$slots, "default", {}, () => [
986
- P(h(a.label), 1)
984
+ _(p.$slots, "default", {}, () => [
985
+ z(h(a.label), 1)
987
986
  ])
988
987
  ], 10, dt)
989
988
  ], 16),
990
- L(m("small", {
989
+ L(u("small", {
991
990
  "data-cy": "error",
992
991
  class: "text-invalid"
993
- }, h(u(f)), 513), [
994
- [Y, g.value]
992
+ }, h(c(y)), 513), [
993
+ [q, m.value]
995
994
  ])
996
995
  ], 64);
997
996
  };
998
997
  }
999
- }), ut = { class: "forge-loader" }, pe = /* @__PURE__ */ F({
998
+ }), ut = { class: "forge-loader" }, be = /* @__PURE__ */ F({
1000
999
  __name: "ForgeLoader",
1001
1000
  props: {
1002
1001
  severity: { default: "primary" }
1003
1002
  },
1004
1003
  setup(e) {
1005
1004
  const t = e;
1006
- return (n, a) => {
1007
- const l = ke;
1008
- return s(), p("div", ut, [
1009
- v(l, {
1005
+ return (l, a) => {
1006
+ const o = ke;
1007
+ return s(), v("div", ut, [
1008
+ b(o, {
1010
1009
  "animation-duration": ".75",
1011
- class: _(`text-${t.severity === void 0 ? "primary" : t.severity}`)
1010
+ class: B(`text-${t.severity === void 0 ? "primary" : t.severity}`)
1012
1011
  }, null, 8, ["class"])
1013
1012
  ]);
1014
1013
  };
@@ -1031,7 +1030,7 @@ const Ue = {
1031
1030
  iconName: {}
1032
1031
  },
1033
1032
  setup(e) {
1034
- const t = x(() => ({
1033
+ const t = w(() => ({
1035
1034
  [`link-${e.severity}`]: e.severity,
1036
1035
  [`link-underline-${e.underlineSeverity}`]: e.underlineSeverity,
1037
1036
  [`link-opacity-${e.opacity}`]: e.opacity,
@@ -1040,27 +1039,27 @@ const Ue = {
1040
1039
  [`link-underline-opacity-${e.underlineHoverOpacity ?? e.hoverOpacity}-hover`]: e.underlineHoverOpacity || e.hoverOpacity,
1041
1040
  [`link-offset-${e.underlineOffset}`]: e.underlineOffset,
1042
1041
  "icon-link icon-link-hover": e.animateIconOnHover
1043
- })), n = x(() => ({
1042
+ })), l = w(() => ({
1044
1043
  "order-2": e.positionIconEnd,
1045
1044
  "me-1": !e.positionIconEnd && !e.animateIconOnHover,
1046
1045
  "ms-1": e.positionIconEnd && !e.animateIconOnHover,
1047
1046
  "ms-0": e.positionIconEnd && e.animateIconOnHover,
1048
1047
  "me-0": e.animateIconOnHover
1049
1048
  }));
1050
- return (a, l) => (s(), p("a", {
1049
+ return (a, o) => (s(), v("a", {
1051
1050
  id: "link",
1052
- class: _(["cursor-pointer d-flex", t.value]),
1051
+ class: B(["cursor-pointer d-flex", t.value]),
1053
1052
  href: a.url,
1054
1053
  target: a.target
1055
1054
  }, [
1056
- k(a.$slots, "default", {}, () => [
1057
- a.iconName ? (s(), w(u(C), {
1055
+ _(a.$slots, "default", {}, () => [
1056
+ a.iconName ? (s(), k(c(T), {
1058
1057
  key: 0,
1059
1058
  id: "link-icon",
1060
1059
  icon: a.iconName,
1061
- class: _(["bi my-auto", n.value])
1062
- }, null, 8, ["icon", "class"])) : B("", !0),
1063
- P(" " + h(a.label), 1)
1060
+ class: B(["bi my-auto", l.value])
1061
+ }, null, 8, ["icon", "class"])) : C("", !0),
1062
+ z(" " + h(a.label), 1)
1064
1063
  ])
1065
1064
  ], 10, ct));
1066
1065
  }
@@ -1071,21 +1070,23 @@ function mt(e) {
1071
1070
  errorDetails: []
1072
1071
  };
1073
1072
  if (e.exception && (t.errorMessage = e.exception), e.message && (Array.isArray(e.message) ? t.errorDetails = e.message : t.errorMessage = e.message), e.response) {
1074
- const n = JSON.parse(e.response);
1075
- n.errors && (t.errorDetails = Object.values(n.errors).flat()), n.message && (t.errorDetails = n.message);
1073
+ const l = JSON.parse(e.response);
1074
+ l.errors && (t.errorDetails = Object.values(l.errors).flat()), l.message && (t.errorDetails = l.message);
1076
1075
  }
1077
1076
  return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
1078
1077
  }
1079
- const pt = { key: 0 }, yt = {
1078
+ const pt = { key: 0 }, vt = {
1080
1079
  class: "d-flex w-100",
1081
1080
  "data-cy": "footer"
1082
1081
  }, dl = /* @__PURE__ */ F({
1083
1082
  __name: "ForgeModal",
1084
- props: /* @__PURE__ */ q({
1083
+ props: /* @__PURE__ */ H({
1085
1084
  cancelText: { default: "Cancel" },
1086
1085
  submitText: { default: "Submit" },
1087
1086
  showFooter: { type: Boolean, default: !0 },
1088
1087
  onConfirm: { type: [Function, null], default: null },
1088
+ submitButtonType: { default: "button" },
1089
+ cancelButtonType: { default: "button" },
1089
1090
  header: { default: "Header" },
1090
1091
  footer: {},
1091
1092
  visible: { type: Boolean },
@@ -1122,104 +1123,106 @@ const pt = { key: 0 }, yt = {
1122
1123
  }),
1123
1124
  emits: ["update:visible"],
1124
1125
  setup(e) {
1125
- const t = R(e, "visible"), n = M(!1), a = e, l = M(!1), o = M({
1126
+ const t = E(e, "visible"), l = M(!1), a = e, o = M(!1), n = M({
1126
1127
  hasError: !1,
1127
1128
  header: "",
1128
1129
  message: []
1129
1130
  }), i = () => {
1130
- n.value = !1;
1131
+ l.value = !1;
1131
1132
  }, d = () => {
1132
- n.value = !0;
1133
- }, f = () => {
1133
+ l.value = !0;
1134
+ }, y = () => {
1134
1135
  t.value = !1;
1135
1136
  }, r = async () => {
1136
1137
  if (a.onConfirm) {
1137
- l.value = !0, o.value.hasError = !1;
1138
+ o.value = !0, n.value.hasError = !1;
1138
1139
  try {
1139
- const y = await a.onConfirm();
1140
- (y || y == null) && f();
1141
- } catch (y) {
1142
- o.value.hasError = !0;
1143
- const c = mt(y);
1144
- o.value.header = c.errorMessage, o.value.message = c.errorDetails;
1140
+ const p = await a.onConfirm();
1141
+ (p || p == null) && y();
1142
+ } catch (p) {
1143
+ n.value.hasError = !0;
1144
+ const x = mt(p);
1145
+ n.value.header = x.errorMessage, n.value.message = x.errorDetails;
1145
1146
  }
1146
- l.value = !1;
1147
+ o.value = !1;
1147
1148
  }
1148
- }, g = x(() => ({
1149
+ }, m = w(() => ({
1149
1150
  root: [
1150
1151
  "modal modal-dialog modal-content h-auto m-0",
1151
1152
  {
1152
- "mw-100 vh-100 vw-100 top-0 start-0": n.value
1153
+ "mw-100 vh-100 vw-100 top-0 start-0": l.value
1153
1154
  }
1154
1155
  ]
1155
1156
  }));
1156
- return (y, c) => {
1157
- const $ = E, V = $e;
1158
- return s(), w(V, S(a, {
1157
+ return (p, x) => {
1158
+ const $ = R, P = _e;
1159
+ return s(), k(P, V(a, {
1159
1160
  onMaximize: d,
1160
1161
  onUnmaximize: i,
1161
- pt: g.value
1162
- }), te({
1163
- closeicon: b(() => [
1164
- v(u(C), {
1162
+ pt: m.value
1163
+ }), oe({
1164
+ closeicon: g(() => [
1165
+ b(c(T), {
1165
1166
  "data-cy": "close-icon",
1166
1167
  icon: "bi:x-lg",
1167
1168
  width: "18",
1168
1169
  height: "18",
1169
- onClick: f
1170
+ onClick: y
1170
1171
  })
1171
1172
  ]),
1172
- maximizeicon: b(() => [
1173
- v(u(C), {
1173
+ maximizeicon: g(() => [
1174
+ b(c(T), {
1174
1175
  "data-cy": "maximisable-icon",
1175
- icon: n.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
1176
+ icon: l.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
1176
1177
  width: "16",
1177
1178
  height: "16"
1178
1179
  }, null, 8, ["icon"])
1179
1180
  ]),
1180
1181
  _: 2
1181
1182
  }, [
1182
- H(y.$slots, (T, I) => ({
1183
- name: I,
1184
- fn: b((z) => [
1185
- o.value.hasError ? (s(), w(ae, {
1183
+ j(p.$slots, (S, O) => ({
1184
+ name: O,
1185
+ fn: g((f) => [
1186
+ n.value.hasError ? (s(), k(ne, {
1186
1187
  key: 0,
1187
1188
  severity: "danger",
1188
1189
  "data-cy": "error"
1189
1190
  }, {
1190
- default: b(() => [
1191
- m("p", {
1192
- class: _(o.value.message.length > 0 ? "my-auto" : "mb-0")
1193
- }, h(o.value.header), 3),
1194
- o.value.message.length > 0 ? (s(), p("ul", pt, [
1195
- (s(!0), p(A, null, H(o.value.message, (N) => (s(), p("li", { key: N }, h(N), 1))), 128))
1196
- ])) : B("", !0)
1191
+ default: g(() => [
1192
+ u("p", {
1193
+ class: B(n.value.message.length > 0 ? "my-auto" : "mb-0")
1194
+ }, h(n.value.header), 3),
1195
+ n.value.message.length > 0 ? (s(), v("ul", pt, [
1196
+ (s(!0), v(N, null, j(n.value.message, (I) => (s(), v("li", { key: I }, h(I), 1))), 128))
1197
+ ])) : C("", !0)
1197
1198
  ]),
1198
1199
  _: 1
1199
- })) : B("", !0),
1200
- k(y.$slots, I, Q(ee(z || {}))),
1201
- l.value ? k(y.$slots, "loader", { key: 1 }, () => [
1202
- v(pe, { "data-cy": "loader" })
1203
- ]) : B("", !0)
1200
+ })) : C("", !0),
1201
+ _(p.$slots, O, ee(te(f || {}))),
1202
+ o.value ? _(p.$slots, "loader", { key: 1 }, () => [
1203
+ b(be, { "data-cy": "loader" })
1204
+ ]) : C("", !0)
1204
1205
  ])
1205
1206
  })),
1206
- y.showFooter ? {
1207
+ p.showFooter ? {
1207
1208
  name: "footer",
1208
- fn: b(() => [
1209
- m("div", yt, [
1210
- v($, {
1211
- label: y.cancelText,
1212
- class: _(a.cancelClass),
1209
+ fn: g(() => [
1210
+ u("div", vt, [
1211
+ b($, {
1212
+ label: p.cancelText,
1213
+ class: B(a.cancelClass),
1213
1214
  outlined: "",
1214
- onClick: f,
1215
- id: "cancel-button"
1216
- }, null, 8, ["label", "class"]),
1217
- v($, {
1218
- label: y.submitText,
1219
- class: _([a.submitClass, "ms-auto"]),
1215
+ onClick: y,
1216
+ id: "cancel-button",
1217
+ type: a.cancelButtonType
1218
+ }, null, 8, ["label", "class", "type"]),
1219
+ b($, {
1220
+ label: p.submitText,
1221
+ class: B([a.submitClass, "ms-auto"]),
1220
1222
  onClick: r,
1221
- id: "submit-button"
1222
- }, null, 8, ["label", "class"])
1223
+ id: "submit-button",
1224
+ type: a.submitButtonType
1225
+ }, null, 8, ["label", "class", "type"])
1223
1226
  ])
1224
1227
  ]),
1225
1228
  key: "0"
@@ -1227,9 +1230,9 @@ const pt = { key: 0 }, yt = {
1227
1230
  ]), 1040, ["pt"]);
1228
1231
  };
1229
1232
  }
1230
- }), vt = ["id"], bt = { key: 0 }, ft = { key: 0 }, gt = { class: "d-flex justify-content-between align-items-center position-relative" }, ht = { key: 1 }, wt = { "data-cy": "readonly-value" }, xt = /* @__PURE__ */ F({
1233
+ }), yt = ["id"], bt = { key: 0 }, ft = { key: 0 }, gt = { class: "d-flex justify-content-between align-items-center position-relative" }, ht = { key: 1 }, wt = { "data-cy": "readonly-value" }, xt = /* @__PURE__ */ F({
1231
1234
  __name: "ForgeInlineEditor",
1232
- props: /* @__PURE__ */ q({
1235
+ props: /* @__PURE__ */ H({
1233
1236
  name: { default: "" },
1234
1237
  rules: {},
1235
1238
  completeAction: {},
@@ -1243,13 +1246,13 @@ const pt = { key: 0 }, yt = {
1243
1246
  }),
1244
1247
  emits: ["update:modelValue"],
1245
1248
  setup(e) {
1246
- const t = e, n = R(e, "modelValue"), a = M(!1), l = M(), o = () => {
1249
+ const t = e, l = E(e, "modelValue"), a = M(!1), o = M(), n = () => {
1247
1250
  var $;
1248
- a.value = !a.value, ($ = l.value) == null || $.focus();
1251
+ a.value = !a.value, ($ = o.value) == null || $.focus();
1249
1252
  }, i = async () => {
1250
- if (c.value)
1253
+ if (x.value)
1251
1254
  return !1;
1252
- if (n.value = y.value, t.completeAction)
1255
+ if (l.value = p.value, t.completeAction)
1253
1256
  try {
1254
1257
  await t.completeAction.apply(this, t.params), a.value = !a.value;
1255
1258
  } catch {
@@ -1259,90 +1262,90 @@ const pt = { key: 0 }, yt = {
1259
1262
  a.value = !a.value;
1260
1263
  }, d = () => {
1261
1264
  a.value = !a.value;
1262
- }, f = () => {
1263
- y.value = null;
1264
- }, { errorMessage: r, errors: g, value: y } = W(() => t.name, t.rules);
1265
- oe(() => {
1266
- y.value = n.value;
1265
+ }, y = () => {
1266
+ p.value = null;
1267
+ }, { errorMessage: r, errors: m, value: p } = W(() => t.name, t.rules);
1268
+ ae(() => {
1269
+ p.value = l.value;
1267
1270
  });
1268
- const c = x(() => g.value.length > 0);
1269
- return ($, V) => {
1270
- const T = ne, I = E;
1271
- return s(), p("div", {
1271
+ const x = w(() => m.value.length > 0);
1272
+ return ($, P) => {
1273
+ const S = re, O = R;
1274
+ return s(), v("div", {
1272
1275
  id: t.name
1273
1276
  }, [
1274
- $.readonly ? (s(), p("div", ht, [
1275
- k($.$slots, "default", {}, () => [
1276
- m("span", wt, h(u(y)), 1)
1277
+ $.readonly ? (s(), v("div", ht, [
1278
+ _($.$slots, "default", {}, () => [
1279
+ u("span", wt, h(c(p)), 1)
1277
1280
  ])
1278
- ])) : (s(), p("div", bt, [
1279
- a.value ? (s(), p("div", ft, [
1280
- L((s(), p("div", gt, [
1281
- k($.$slots, "editor", {
1282
- class: _({ "is-invalid": c.value }),
1281
+ ])) : (s(), v("div", bt, [
1282
+ a.value ? (s(), v("div", ft, [
1283
+ L((s(), v("div", gt, [
1284
+ _($.$slots, "editor", {
1285
+ class: B({ "is-invalid": x.value }),
1283
1286
  editFinished: i,
1284
1287
  cancel: d,
1285
- val: u(y)
1288
+ val: c(p)
1286
1289
  }, () => [
1287
- v(T, {
1290
+ b(S, {
1288
1291
  "data-cy": "input",
1289
1292
  ref_key: "input",
1290
- ref: l,
1291
- modelValue: u(y),
1292
- "onUpdate:modelValue": V[0] || (V[0] = (z) => j(y) ? y.value = z : null),
1293
+ ref: o,
1294
+ modelValue: c(p),
1295
+ "onUpdate:modelValue": P[0] || (P[0] = (f) => le(p) ? p.value = f : null),
1293
1296
  modelModifiers: { trim: !0 },
1294
- class: _({ "is-invalid": c.value }),
1297
+ class: B({ "is-invalid": x.value }),
1295
1298
  onKeydown: [
1296
- J(i, ["enter"]),
1297
- J(d, ["esc"])
1299
+ X(i, ["enter"]),
1300
+ X(d, ["esc"])
1298
1301
  ]
1299
1302
  }, null, 8, ["modelValue", "class"])
1300
1303
  ]),
1301
- v(u(C), {
1304
+ b(c(T), {
1302
1305
  icon: "bi:x-circle",
1303
1306
  class: "mx-2 cursor-pointer",
1304
- onClick: f,
1305
- onKeydown: J(f, ["enter"]),
1307
+ onClick: y,
1308
+ onKeydown: X(y, ["enter"]),
1306
1309
  "data-cy": "clear-icon"
1307
1310
  })
1308
1311
  ])), [
1309
- [u(_e), i]
1312
+ [c($e), i]
1310
1313
  ])
1311
- ])) : (s(), p("div", {
1314
+ ])) : (s(), v("div", {
1312
1315
  key: 1,
1313
1316
  class: "d-flex text-muted",
1314
- onClick: o,
1315
- onFocus: o
1317
+ onClick: n,
1318
+ onFocus: n
1316
1319
  }, [
1317
- k($.$slots, "default", {}, () => [
1318
- m("div", {
1319
- class: _(["pe-2 cursor-pointer", { "text-invalid": c.value }]),
1320
+ _($.$slots, "default", {}, () => [
1321
+ u("div", {
1322
+ class: B(["pe-2 cursor-pointer", { "text-invalid": x.value }]),
1320
1323
  "data-cy": "value"
1321
- }, h(u(y) ? u(y) : "Click to edit"), 3)
1324
+ }, h(c(p) ? c(p) : "Click to edit"), 3)
1322
1325
  ]),
1323
- v(I, {
1326
+ b(O, {
1324
1327
  link: "",
1325
1328
  class: "p-0 m-0"
1326
1329
  }, {
1327
- default: b(() => [
1328
- v(u(C), {
1330
+ default: g(() => [
1331
+ b(c(T), {
1329
1332
  icon: "bi:pencil",
1330
- class: _(c.value ? "text-invalid" : "text-muted"),
1333
+ class: B(x.value ? "text-invalid" : "text-muted"),
1331
1334
  "data-cy": "edit-icon",
1332
- onKeydown: J(o, ["enter"])
1335
+ onKeydown: X(n, ["enter"])
1333
1336
  }, null, 8, ["class"])
1334
1337
  ]),
1335
1338
  _: 1
1336
1339
  })
1337
1340
  ], 32))
1338
1341
  ])),
1339
- L(m("small", {
1342
+ L(u("small", {
1340
1343
  "data-cy": "error",
1341
1344
  class: "text-invalid"
1342
- }, h(u(r)), 513), [
1343
- [Y, c.value]
1345
+ }, h(c(r)), 513), [
1346
+ [q, x.value]
1344
1347
  ])
1345
- ], 8, vt);
1348
+ ], 8, yt);
1346
1349
  };
1347
1350
  }
1348
1351
  }), kt = ["href"], ul = /* @__PURE__ */ F({
@@ -1362,7 +1365,7 @@ const pt = { key: 0 }, yt = {
1362
1365
  unstyled: { type: Boolean }
1363
1366
  },
1364
1367
  setup(e) {
1365
- const t = e, n = x(() => ({
1368
+ const t = e, l = w(() => ({
1366
1369
  root: () => ({
1367
1370
  class: [
1368
1371
  "navbar container-fluid navbar-expand-lg",
@@ -1389,28 +1392,28 @@ const pt = { key: 0 }, yt = {
1389
1392
  ]
1390
1393
  })
1391
1394
  }));
1392
- return (a, l) => {
1393
- const o = Fe;
1394
- return s(), w(o, S({ ...t, ...a.$attrs }, {
1395
- pt: n.value,
1395
+ return (a, o) => {
1396
+ const n = Be;
1397
+ return s(), k(n, V({ ...t, ...a.$attrs }, {
1398
+ pt: l.value,
1396
1399
  "data-cy": "navbar"
1397
- }), te({
1398
- start: b(() => [
1399
- m("a", {
1400
+ }), oe({
1401
+ start: g(() => [
1402
+ u("a", {
1400
1403
  href: a.logoUrl,
1401
1404
  class: "navbar-brand ms-3",
1402
1405
  "data-cy": "logo"
1403
1406
  }, [
1404
- k(a.$slots, "logo", {}, () => [
1405
- P(" Logo ")
1407
+ _(a.$slots, "logo", {}, () => [
1408
+ z(" Logo ")
1406
1409
  ])
1407
1410
  ], 8, kt)
1408
1411
  ]),
1409
- menubuttonicon: b(() => [
1410
- k(a.$slots, "menubuttonicon", {}, () => [
1411
- v(u(C), {
1412
+ menubuttonicon: g(() => [
1413
+ _(a.$slots, "menubuttonicon", {}, () => [
1414
+ b(c(T), {
1412
1415
  icon: "bi:list",
1413
- class: _(t.severity === "light" ? "text-black" : "text-white"),
1416
+ class: B(t.severity === "light" ? "text-black" : "text-white"),
1414
1417
  height: "24",
1415
1418
  "data-cy": "burger-icon"
1416
1419
  }, null, 8, ["class"])
@@ -1418,16 +1421,16 @@ const pt = { key: 0 }, yt = {
1418
1421
  ]),
1419
1422
  _: 2
1420
1423
  }, [
1421
- H(a.$slots, (i, d) => ({
1424
+ j(a.$slots, (i, d) => ({
1422
1425
  name: d,
1423
- fn: b((f) => [
1424
- k(a.$slots, d, Q(ee(f)))
1426
+ fn: g((y) => [
1427
+ _(a.$slots, d, ee(te(y)))
1425
1428
  ])
1426
1429
  }))
1427
1430
  ]), 1040, ["pt"]);
1428
1431
  };
1429
1432
  }
1430
- }), $t = /* @__PURE__ */ m("div", { class: "ps-1" }, "Select all", -1), _t = ["data-cy"], Ft = { class: "ps-1 w-100" }, Bt = { class: "multiselect__tag d-inline-flex" }, St = { class: "my-auto" }, Ct = /* @__PURE__ */ F({
1433
+ }), _t = /* @__PURE__ */ u("div", { class: "ps-1" }, "Select all", -1), $t = ["data-cy"], Bt = { class: "ps-1 w-100" }, Ft = { class: "multiselect__tag d-inline-flex" }, St = { class: "my-auto" }, Ct = /* @__PURE__ */ F({
1431
1434
  __name: "ForgeMultiSelect",
1432
1435
  props: {
1433
1436
  severity: { default: "primary" },
@@ -1440,93 +1443,93 @@ const pt = { key: 0 }, yt = {
1440
1443
  },
1441
1444
  emits: ["update:modelValue"],
1442
1445
  setup(e, { emit: t }) {
1443
- const n = e, a = (D, O) => {
1444
- const Z = {
1445
- ...O,
1446
- $isDisabled: O.$isDisabled ?? !1
1446
+ const l = e, a = (U, D) => {
1447
+ const J = {
1448
+ ...D,
1449
+ $isDisabled: D.$isDisabled ?? !1
1447
1450
  };
1448
- D(Z);
1449
- }, l = de(), o = t, { errors: i, value: d, errorMessage: f } = W(() => n.name, n.rules), r = M(!1), g = x(() => ({
1451
+ U(J);
1452
+ }, o = me(), n = t, { errors: i, value: d, errorMessage: y } = W(() => l.name, l.rules), r = M(!1), m = w(() => ({
1450
1453
  multiple: !0,
1451
1454
  label: "label",
1452
1455
  trackBy: "id",
1453
1456
  showPointer: !r.value,
1454
- placeholder: l.searchable === null || l.searchable ? "Search" : "Select",
1457
+ placeholder: o.searchable === null || o.searchable ? "Search" : "Select",
1455
1458
  allowEmpty: !0,
1456
1459
  selectValue: "",
1457
- closeOnSelect: !!(l.multiple === null || l.multiple),
1458
- clearOnSelect: !!(l.multiple === null || l.multiple),
1459
- searchable: !!(l.searchable === null || l.searchable) && l.modelValue.length === l.options.length,
1460
+ closeOnSelect: !!(o.multiple === null || o.multiple),
1461
+ clearOnSelect: !!(o.multiple === null || o.multiple),
1462
+ searchable: !!(o.searchable === null || o.searchable) && o.modelValue.length === o.options.length,
1460
1463
  async: !1,
1461
- ...l
1462
- })), y = x(() => `forge-multiselect-${n.severity}`), c = x(() => `multiselect__option ${r.value ? " multiselect__option--highlight" : ""} ${$.value ? " multiselect__option--selected" : ""}`), $ = x(() => g.value && !(g.value.multiple || !n.showSelectAll || g.value.async) ? !1 : l.modelValue.length === l.options.length), V = x(() => i.value.length > 0), T = x(() => !!((l.allowEmpty == null || l.allowEmpty) && n.showClearSelection && (g.value.multiple ? l.modelValue.length > 0 : l.modelValue))), I = () => r.value = !0, z = () => r.value = !1, N = () => {
1463
- d.value = g.value.multiple ? [] : null, o("update:modelValue", d.value);
1464
- }, le = (D) => {
1465
- o("update:modelValue", n.selectValue ? D.map((O) => O[n.selectValue]) : D);
1466
- }, ve = (D) => l.modelValue !== null ? l.modelValue.some((O) => g.value.selectValue ? D[n.selectValue] === O : D.id === O.id && D.label === O.label) : !1, be = () => {
1467
- $.value ? N() : (d.value = [...l.options], o("update:modelValue", [...l.options]));
1464
+ ...o
1465
+ })), p = w(() => `forge-multiselect-${l.severity}`), x = w(() => `multiselect__option ${r.value ? " multiselect__option--highlight" : ""} ${$.value ? " multiselect__option--selected" : ""}`), $ = w(() => m.value && !(m.value.multiple || !l.showSelectAll || m.value.async) ? !1 : o.modelValue.length === o.options.length), P = w(() => i.value.length > 0), S = w(() => !!((o.allowEmpty == null || o.allowEmpty) && l.showClearSelection && (m.value.multiple ? o.modelValue.length > 0 : o.modelValue))), O = () => r.value = !0, f = () => r.value = !1, I = () => {
1466
+ d.value = m.value.multiple ? [] : null, n("update:modelValue", d.value);
1467
+ }, Y = (U) => {
1468
+ n("update:modelValue", l.selectValue ? U.map((D) => D[l.selectValue]) : U);
1469
+ }, Z = (U) => o.modelValue !== null ? o.modelValue.some((D) => m.value.selectValue ? U[l.selectValue] === D : U.id === D.id && U.label === D.label) : !1, se = () => {
1470
+ $.value ? I() : (d.value = [...o.options], n("update:modelValue", [...o.options]));
1468
1471
  };
1469
- return (D, O) => {
1470
- const Z = me;
1471
- return s(), p(A, null, [
1472
- v(u(Be), S(g.value, {
1473
- class: [y.value, V.value ? "is-invalid" : ""],
1472
+ return (U, D) => {
1473
+ const J = ye;
1474
+ return s(), v(N, null, [
1475
+ b(c(Fe), V(m.value, {
1476
+ class: [p.value, P.value ? "is-invalid" : ""],
1474
1477
  "data-cy": "multiselect",
1475
1478
  "onUpdate:modelValue": [
1476
- le,
1477
- O[1] || (O[1] = (U) => j(d) ? d.value = U : null)
1479
+ Y,
1480
+ D[1] || (D[1] = (A) => le(d) ? d.value = A : null)
1478
1481
  ],
1479
- modelValue: u(d)
1480
- }), te({
1481
- caret: b(({ toggle: U }) => [
1482
- T.value ? (s(), w(u(C), {
1482
+ modelValue: c(d)
1483
+ }), oe({
1484
+ caret: g(({ toggle: A }) => [
1485
+ S.value ? (s(), k(c(T), {
1483
1486
  key: 0,
1484
1487
  icon: "bi:x",
1485
1488
  class: "my-auto multiselect__clear-icon",
1486
- onMousedown: O[0] || (O[0] = G((K) => N(), ["prevent", "stop"])),
1489
+ onMousedown: D[0] || (D[0] = G((K) => I(), ["prevent", "stop"])),
1487
1490
  "data-cy": "clear",
1488
1491
  height: "18px",
1489
1492
  width: "18px"
1490
- })) : B("", !0),
1491
- v(u(C), {
1493
+ })) : C("", !0),
1494
+ b(c(T), {
1492
1495
  icon: "bi:chevron-down",
1493
- onClick: U,
1496
+ onClick: A,
1494
1497
  class: "multiselect__select"
1495
1498
  }, null, 8, ["onClick"])
1496
1499
  ]),
1497
- tag: b(({ option: U, remove: K }) => [
1498
- m("div", Bt, [
1499
- m("div", St, h(U.label), 1),
1500
- v(u(C), {
1500
+ tag: g(({ option: A, remove: K }) => [
1501
+ u("div", Ft, [
1502
+ u("div", St, h(A.label), 1),
1503
+ b(c(T), {
1501
1504
  icon: "bi:x",
1502
1505
  class: "my-auto multiselect__tag-icon",
1503
- onMousedown: G((Ia) => a(K, U), ["prevent", "stop"]),
1506
+ onMousedown: G((Ia) => a(K, A), ["prevent", "stop"]),
1504
1507
  height: "18px",
1505
1508
  width: "18px"
1506
1509
  }, null, 8, ["onMousedown"])
1507
1510
  ])
1508
1511
  ]),
1509
- default: b(() => [
1510
- (s(!0), p(A, null, H(D.$slots, (U, K) => k(D.$slots, K, { slot: K })), 256))
1512
+ default: g(() => [
1513
+ (s(!0), v(N, null, j(U.$slots, (A, K) => _(U.$slots, K, { slot: K })), 256))
1511
1514
  ]),
1512
1515
  _: 2
1513
1516
  }, [
1514
- g.value.multiple && D.showSelectAll && !g.value.async ? {
1517
+ m.value.multiple && U.showSelectAll && !m.value.async ? {
1515
1518
  name: "beforeList",
1516
- fn: b(() => [
1517
- m("li", {
1519
+ fn: g(() => [
1520
+ u("li", {
1518
1521
  class: "multiselect__element",
1519
- onClick: be,
1520
- onMouseover: I,
1521
- onMouseleave: z,
1522
+ onClick: se,
1523
+ onMouseover: O,
1524
+ onMouseleave: f,
1522
1525
  "data-cy": "toggle-all"
1523
1526
  }, [
1524
- m("span", {
1525
- class: _(`${c.value}`)
1527
+ u("span", {
1528
+ class: B(`${x.value}`)
1526
1529
  }, [
1527
- v(Z, { value: $.value }, {
1528
- default: b(() => [
1529
- $t
1530
+ b(J, { value: $.value }, {
1531
+ default: g(() => [
1532
+ _t
1530
1533
  ]),
1531
1534
  _: 1
1532
1535
  }, 8, ["value"])
@@ -1535,31 +1538,31 @@ const pt = { key: 0 }, yt = {
1535
1538
  ]),
1536
1539
  key: "0"
1537
1540
  } : void 0,
1538
- g.value.multiple ? {
1541
+ m.value.multiple ? {
1539
1542
  name: "option",
1540
- fn: b(({ option: U }) => [
1541
- m("div", {
1542
- "data-cy": U.label
1543
+ fn: g(({ option: A }) => [
1544
+ u("div", {
1545
+ "data-cy": A.label
1543
1546
  }, [
1544
- (s(), w(Z, {
1545
- value: ve(U),
1546
- key: U
1547
+ (s(), k(J, {
1548
+ value: Z(A),
1549
+ key: A
1547
1550
  }, {
1548
- default: b(() => [
1549
- m("div", Ft, h(U[g.value.label]), 1)
1551
+ default: g(() => [
1552
+ u("div", Bt, h(A[m.value.label]), 1)
1550
1553
  ]),
1551
1554
  _: 2
1552
1555
  }, 1032, ["value"]))
1553
- ], 8, _t)
1556
+ ], 8, $t)
1554
1557
  ]),
1555
1558
  key: "1"
1556
1559
  } : void 0
1557
1560
  ]), 1040, ["class", "modelValue"]),
1558
- L(m("small", {
1561
+ L(u("small", {
1559
1562
  "data-cy": "error",
1560
1563
  class: "invalid-feedback"
1561
- }, h(u(f)), 513), [
1562
- [Y, V.value]
1564
+ }, h(c(y)), 513), [
1565
+ [q, P.value]
1563
1566
  ])
1564
1567
  ], 64);
1565
1568
  };
@@ -1567,11 +1570,11 @@ const pt = { key: 0 }, yt = {
1567
1570
  }), Vt = {
1568
1571
  key: 0,
1569
1572
  class: "pl-1"
1570
- }, Tt = { class: "border alternating-item-list" }, Mt = {
1573
+ }, Tt = { class: "border alternating-item-list" }, Pt = {
1571
1574
  key: 0,
1572
1575
  class: "p-2 border-top border-bottom",
1573
1576
  "data-cy": "title"
1574
- }, Pt = { class: "d-inline-block" }, It = {
1577
+ }, Mt = { class: "d-inline-block" }, It = {
1575
1578
  key: 1,
1576
1579
  class: "p-2 item d-flex justify-content-between align-items-center"
1577
1580
  }, cl = /* @__PURE__ */ F({
@@ -1585,77 +1588,77 @@ const pt = { key: 0 }, yt = {
1585
1588
  },
1586
1589
  emits: ["update:modelValue"],
1587
1590
  setup(e, { emit: t }) {
1588
- const n = e, a = de(), l = t, o = x(() => `${a.modelValue.length} selected`), i = x(() => a.modelValue.length), d = (r) => {
1589
- l("update:modelValue", r);
1590
- }, f = (r) => {
1591
- d(a.modelValue.filter((g) => g.id !== r));
1591
+ const l = e, a = me(), o = t, n = w(() => `${a.modelValue.length} selected`), i = w(() => a.modelValue.length), d = (r) => {
1592
+ o("update:modelValue", r);
1593
+ }, y = (r) => {
1594
+ d(a.modelValue.filter((m) => m.id !== r));
1592
1595
  };
1593
- return (r, g) => {
1594
- const y = E;
1595
- return s(), p("div", {
1596
- class: _(r.orientation === "column" ? "row" : ""),
1596
+ return (r, m) => {
1597
+ const p = R;
1598
+ return s(), v("div", {
1599
+ class: B(r.orientation === "column" ? "row" : ""),
1597
1600
  "data-cy": "multiselect-preview"
1598
1601
  }, [
1599
- m("div", {
1600
- class: _(r.orientation === "row" ? "col-12 mb-1" : "col"),
1602
+ u("div", {
1603
+ class: B(r.orientation === "row" ? "col-12 mb-1" : "col"),
1601
1604
  "data-cy": "multiselect-container"
1602
1605
  }, [
1603
- v(Ct, {
1606
+ b(Ct, {
1604
1607
  "onUpdate:modelValue": [
1605
- g[0] || (g[0] = (c) => d(c)),
1606
- g[1] || (g[1] = (c) => r.$attrs.modelValue = c)
1608
+ m[0] || (m[0] = (x) => d(x)),
1609
+ m[1] || (m[1] = (x) => r.$attrs.modelValue = x)
1607
1610
  ],
1608
1611
  modelValue: r.$attrs.modelValue,
1609
- "limit-text": o.value,
1610
- options: n.options
1612
+ "limit-text": n.value,
1613
+ options: l.options
1611
1614
  }, {
1612
- tag: b(() => [
1613
- P(h(""))
1615
+ tag: g(() => [
1616
+ z(h(""))
1614
1617
  ]),
1615
- selection: b(() => [
1616
- r.$attrs.modelValue.length > 0 ? (s(), p("span", Vt, h(i.value) + " items selected", 1)) : B("", !0)
1618
+ selection: g(() => [
1619
+ r.$attrs.modelValue.length > 0 ? (s(), v("span", Vt, h(i.value) + " items selected", 1)) : C("", !0)
1617
1620
  ]),
1618
- default: b(() => [
1619
- (s(!0), p(A, null, H(r.$slots, (c, $) => k(r.$slots, $, { slot: $ })), 256))
1621
+ default: g(() => [
1622
+ (s(!0), v(N, null, j(r.$slots, (x, $) => _(r.$slots, $, { slot: $ })), 256))
1620
1623
  ]),
1621
1624
  _: 3
1622
1625
  }, 8, ["modelValue", "limit-text", "options"]),
1623
- k(r.$slots, "after-multi-select")
1626
+ _(r.$slots, "after-multi-select")
1624
1627
  ], 2),
1625
- m("div", {
1626
- class: _(r.orientation === "row" ? "col-12" : "col"),
1628
+ u("div", {
1629
+ class: B(r.orientation === "row" ? "col-12" : "col"),
1627
1630
  "data-cy": "options-preview"
1628
1631
  }, [
1629
- m("div", {
1632
+ u("div", {
1630
1633
  style: he({ height: r.height }),
1631
1634
  class: "overflow-auto"
1632
1635
  }, [
1633
- m("div", Tt, [
1634
- r.title ? (s(), p("div", Mt, h(r.title), 1)) : B("", !0),
1635
- (s(!0), p(A, null, H(r.$attrs.modelValue, (c) => (s(), p("div", {
1636
- key: c.id,
1636
+ u("div", Tt, [
1637
+ r.title ? (s(), v("div", Pt, h(r.title), 1)) : C("", !0),
1638
+ (s(!0), v(N, null, j(r.$attrs.modelValue, (x) => (s(), v("div", {
1639
+ key: x.id,
1637
1640
  class: "p-2 item d-flex justify-content-between align-items-center"
1638
1641
  }, [
1639
- k(r.$slots, "list-item", { item: c }, () => [
1640
- m("span", Pt, h(c.shortLabel ? c.shortLabel : c.label), 1)
1642
+ _(r.$slots, "list-item", { item: x }, () => [
1643
+ u("span", Mt, h(x.shortLabel ? x.shortLabel : x.label), 1)
1641
1644
  ]),
1642
- r.canRemoveItemFromPreview ? (s(), w(y, {
1645
+ r.canRemoveItemFromPreview ? (s(), k(p, {
1643
1646
  key: 0,
1644
1647
  link: "",
1645
1648
  class: "m-0 p-0 d-flex align-items-center",
1646
- onClick: ($) => f(c.id)
1649
+ onClick: ($) => y(x.id)
1647
1650
  }, {
1648
- default: b(() => [
1649
- v(u(C), {
1651
+ default: g(() => [
1652
+ b(c(T), {
1650
1653
  icon: "bi:x",
1651
1654
  class: "close-icon",
1652
- "data-cy": `close-icon-${c.id}`
1655
+ "data-cy": `close-icon-${x.id}`
1653
1656
  }, null, 8, ["data-cy"])
1654
1657
  ]),
1655
1658
  _: 2
1656
- }, 1032, ["onClick"])) : B("", !0)
1659
+ }, 1032, ["onClick"])) : C("", !0)
1657
1660
  ]))), 128)),
1658
- r.$attrs.modelValue.length === 0 ? (s(), p("div", It, "No Items Selected.")) : B("", !0)
1661
+ r.$attrs.modelValue.length === 0 ? (s(), v("div", It, "No Items Selected.")) : C("", !0)
1659
1662
  ])
1660
1663
  ], 4)
1661
1664
  ], 2)
@@ -1675,16 +1678,16 @@ const pt = { key: 0 }, yt = {
1675
1678
  },
1676
1679
  setup(e) {
1677
1680
  const t = e;
1678
- return (n, a) => (s(), p("div", zt, [
1679
- m("h3", Ot, h(t.title), 1),
1680
- m("div", Dt, [
1681
- k(n.$slots, "default")
1681
+ return (l, a) => (s(), v("div", zt, [
1682
+ u("h3", Ot, h(t.title), 1),
1683
+ u("div", Dt, [
1684
+ _(l.$slots, "default")
1682
1685
  ])
1683
1686
  ]));
1684
1687
  }
1685
1688
  }), Ut = { "data-cy": "before-slot" }, At = { class: "position-relative" }, Nt = { "data-cy": "after-slot" }, Et = /* @__PURE__ */ F({
1686
1689
  __name: "ForgeDatepicker",
1687
- props: /* @__PURE__ */ q({
1690
+ props: /* @__PURE__ */ H({
1688
1691
  severity: { default: "primary" },
1689
1692
  modelValue: {},
1690
1693
  selectionMode: { default: "single" },
@@ -1743,6 +1746,7 @@ const pt = { key: 0 }, yt = {
1743
1746
  panelStyle: {},
1744
1747
  panelClass: {},
1745
1748
  panelProps: {},
1749
+ name: {},
1746
1750
  ariaLabelledby: {},
1747
1751
  ariaLabel: {},
1748
1752
  pt: {},
@@ -1754,35 +1758,35 @@ const pt = { key: 0 }, yt = {
1754
1758
  }),
1755
1759
  emits: ["update:modelValue"],
1756
1760
  setup(e) {
1757
- const t = e, n = R(e, "modelValue"), a = () => {
1758
- n.value = null;
1759
- }, l = x(() => ({
1760
- day: ({ context: o }) => ({
1761
+ const t = e, l = E(e, "modelValue"), a = () => {
1762
+ l.value = null;
1763
+ }, o = w(() => ({
1764
+ day: ({ context: n }) => ({
1761
1765
  class: [
1762
1766
  `text-center date-${t.severity === void 0 ? "primary" : t.severity}`,
1763
1767
  {
1764
- "cursor-pointer": !o.disabled,
1765
- "pe-none": o.disabled,
1766
- "text-white": o.selected
1768
+ "cursor-pointer": !n.disabled,
1769
+ "pe-none": n.disabled,
1770
+ "text-white": n.selected
1767
1771
  },
1768
1772
  // Severities
1769
1773
  {
1770
- selected: o.selected && !o.disabled,
1771
- "text-primary": !o.selected && o.today && (t.severity === void 0 || t.severity === "primary"),
1772
- "text-brand": !o.selected && o.today && t.severity === "brand",
1773
- "text-secondary": !o.selected && o.today && t.severity === "secondary",
1774
- "text-success": !o.selected && o.today && t.severity === "success",
1775
- "text-warning": !o.selected && o.today && t.severity === "warning",
1776
- "text-danger": !o.selected && o.today && t.severity === "danger",
1777
- "text-info": !o.selected && o.today && t.severity === "info"
1774
+ selected: n.selected && !n.disabled,
1775
+ "text-primary": !n.selected && n.today && (t.severity === void 0 || t.severity === "primary"),
1776
+ "text-brand": !n.selected && n.today && t.severity === "brand",
1777
+ "text-secondary": !n.selected && n.today && t.severity === "secondary",
1778
+ "text-success": !n.selected && n.today && t.severity === "success",
1779
+ "text-warning": !n.selected && n.today && t.severity === "warning",
1780
+ "text-danger": !n.selected && n.today && t.severity === "danger",
1781
+ "text-info": !n.selected && n.today && t.severity === "info"
1778
1782
  }
1779
1783
  ]
1780
1784
  }),
1781
- dayLabel: ({ context: o }) => ({
1785
+ dayLabel: ({ context: n }) => ({
1782
1786
  class: [
1783
1787
  // Disabled States
1784
1788
  {
1785
- "text-muted": o.disabled
1789
+ "text-muted": n.disabled
1786
1790
  }
1787
1791
  ]
1788
1792
  }),
@@ -1818,65 +1822,65 @@ const pt = { key: 0 }, yt = {
1818
1822
  ]
1819
1823
  })
1820
1824
  },
1821
- year: ({ context: o }) => ({
1825
+ year: ({ context: n }) => ({
1822
1826
  class: [
1823
1827
  "col-3 text-center cursor-pointer py-2",
1824
1828
  {
1825
- "text-primary": (t.severity === void 0 || t.severity === "primary") && o.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1826
- "text-brand": t.severity === "brand" && o.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1827
- "text-secondary": t.severity === "secondary" && o.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1828
- "text-success": t.severity === "success" && o.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1829
- "text-warning": t.severity === "warning" && o.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1830
- "text-danger": t.severity === "danger" && o.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1831
- "text-info": t.severity === "info" && o.year.value === (/* @__PURE__ */ new Date()).getFullYear()
1829
+ "text-primary": (t.severity === void 0 || t.severity === "primary") && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1830
+ "text-brand": t.severity === "brand" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1831
+ "text-secondary": t.severity === "secondary" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1832
+ "text-success": t.severity === "success" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1833
+ "text-warning": t.severity === "warning" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1834
+ "text-danger": t.severity === "danger" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1835
+ "text-info": t.severity === "info" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear()
1832
1836
  }
1833
1837
  ]
1834
1838
  }),
1835
- month: ({ context: o }) => ({
1839
+ month: ({ context: n }) => ({
1836
1840
  class: [
1837
1841
  "col-3 text-center cursor-pointer py-2",
1838
1842
  {
1839
- "text-primary": (t.severity === void 0 || t.severity === "primary") && o.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1840
- "text-brand": t.severity === "brand" && o.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1841
- "text-secondary": t.severity === "secondary" && o.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1842
- "text-success": t.severity === "success" && o.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1843
- "text-warning": t.severity === "warning" && o.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1844
- "text-danger": t.severity === "danger" && o.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1845
- "text-info": t.severity === "info" && o.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1
1843
+ "text-primary": (t.severity === void 0 || t.severity === "primary") && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1844
+ "text-brand": t.severity === "brand" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1845
+ "text-secondary": t.severity === "secondary" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1846
+ "text-success": t.severity === "success" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1847
+ "text-warning": t.severity === "warning" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1848
+ "text-danger": t.severity === "danger" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1849
+ "text-info": t.severity === "info" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1
1846
1850
  }
1847
1851
  ]
1848
1852
  })
1849
1853
  }));
1850
- return (o, i) => {
1854
+ return (n, i) => {
1851
1855
  const d = Se;
1852
- return s(), p(A, null, [
1853
- m("span", Ut, [
1854
- k(o.$slots, "before")
1856
+ return s(), v(N, null, [
1857
+ u("span", Ut, [
1858
+ _(n.$slots, "before")
1855
1859
  ]),
1856
- m("div", At, [
1857
- v(d, S({ ...t, ...o.$attrs }, {
1858
- pt: l.value,
1859
- modelValue: n.value,
1860
- "onUpdate:modelValue": i[0] || (i[0] = (f) => n.value = f)
1860
+ u("div", At, [
1861
+ b(d, V({ ...t, ...n.$attrs }, {
1862
+ pt: o.value,
1863
+ modelValue: l.value,
1864
+ "onUpdate:modelValue": i[0] || (i[0] = (y) => l.value = y)
1861
1865
  }), null, 16, ["pt", "modelValue"]),
1862
- L(v(u(C), {
1866
+ L(b(c(T), {
1863
1867
  "data-cy": "icon",
1864
1868
  icon: "bi:calendar4",
1865
1869
  class: "position-absolute end-0 top-50 bottom-50 my-auto me-2 text-muted"
1866
1870
  }, null, 512), [
1867
- [Y, t.showIcon]
1871
+ [q, t.showIcon]
1868
1872
  ]),
1869
- L(v(u(C), {
1873
+ L(b(c(T), {
1870
1874
  "data-cy": "icon",
1871
1875
  icon: "bi:x",
1872
1876
  onClick: a,
1873
- class: _(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer", t.showIcon ? "datepicker-close-icon" : "me-2"])
1877
+ class: B(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer", t.showIcon ? "datepicker-close-icon" : "me-2"])
1874
1878
  }, null, 8, ["class"]), [
1875
- [Y, t.modelValue]
1879
+ [q, t.modelValue]
1876
1880
  ])
1877
1881
  ]),
1878
- m("span", Nt, [
1879
- k(o.$slots, "after")
1882
+ u("span", Nt, [
1883
+ _(n.$slots, "after")
1880
1884
  ])
1881
1885
  ], 64);
1882
1886
  };
@@ -1888,12 +1892,12 @@ const pt = { key: 0 }, yt = {
1888
1892
  currentCount: {}
1889
1893
  },
1890
1894
  setup(e) {
1891
- const t = e, n = x(() => t.maxCount - t.currentCount);
1892
- return (a, l) => (s(), p("div", {
1893
- class: _(n.value < 0 ? "text-danger" : "")
1894
- }, "Remaining characters: " + h(n.value), 3));
1895
+ const t = e, l = w(() => t.maxCount - t.currentCount);
1896
+ return (a, o) => (s(), v("div", {
1897
+ class: B(l.value < 0 ? "text-danger" : "")
1898
+ }, "Remaining characters: " + h(l.value), 3));
1895
1899
  }
1896
- }), Rt = /* @__PURE__ */ m("hr", null, null, -1), Lt = { class: "d-flex justify-content-between" }, yl = /* @__PURE__ */ F({
1900
+ }), Rt = /* @__PURE__ */ u("hr", null, null, -1), Lt = { class: "d-flex justify-content-between" }, vl = /* @__PURE__ */ F({
1897
1901
  __name: "ForgeForm",
1898
1902
  props: {
1899
1903
  onSubmit: {},
@@ -1905,150 +1909,174 @@ const pt = { key: 0 }, yt = {
1905
1909
  hideCancel: { type: Boolean, default: !1 }
1906
1910
  },
1907
1911
  setup(e) {
1908
- const t = e, n = M(!1), a = M({
1912
+ const t = e, l = M(!1), a = M({
1909
1913
  hasError: !1,
1910
1914
  message: ""
1911
1915
  });
1912
- async function l() {
1913
- n.value = !0, a.value.hasError = !1;
1916
+ async function o() {
1917
+ l.value = !0, a.value.hasError = !1;
1914
1918
  try {
1915
1919
  await t.onSubmit();
1916
- } catch (o) {
1917
- a.value.hasError = !0, o.message && (a.value.message = o.message);
1920
+ } catch (n) {
1921
+ a.value.hasError = !0, n.message && (a.value.message = n.message);
1918
1922
  }
1919
- n.value = !1;
1923
+ l.value = !1;
1920
1924
  }
1921
- return (o, i) => {
1922
- const d = E;
1923
- return s(), p("form", S(o.$attrs, {
1925
+ return (n, i) => {
1926
+ const d = R;
1927
+ return s(), v("form", V(n.$attrs, {
1924
1928
  novalidate: "",
1925
1929
  class: "position-relative shadow-sm border p-4 bg-white",
1926
- onSubmit: G(l, ["prevent"])
1930
+ onSubmit: G(o, ["prevent"])
1927
1931
  }), [
1928
- o.hideTitle ? B("", !0) : (s(), p(A, { key: 0 }, [
1929
- k(o.$slots, "title", {}, () => [
1930
- m("h3", {
1931
- class: _(o.titleClass),
1932
+ n.hideTitle ? C("", !0) : (s(), v(N, { key: 0 }, [
1933
+ _(n.$slots, "title", {}, () => [
1934
+ u("h3", {
1935
+ class: B(n.titleClass),
1932
1936
  "data-cy": "form-title"
1933
- }, h(o.title), 3)
1937
+ }, h(n.title), 3)
1934
1938
  ]),
1935
1939
  Rt
1936
1940
  ], 64)),
1937
- a.value.hasError ? (s(), w(ae, {
1941
+ a.value.hasError ? (s(), k(ne, {
1938
1942
  key: 1,
1939
1943
  severity: "danger",
1940
1944
  "data-cy": "error"
1941
1945
  }, {
1942
- default: b(() => [
1943
- k(o.$slots, "error", {
1946
+ default: g(() => [
1947
+ _(n.$slots, "error", {
1944
1948
  error: a.value.message
1945
1949
  }, () => [
1946
- P(h(a.value.message), 1)
1950
+ z(h(a.value.message), 1)
1947
1951
  ])
1948
1952
  ]),
1949
1953
  _: 3
1950
- })) : B("", !0),
1951
- k(o.$slots, "default"),
1952
- m("div", Lt, [
1953
- k(o.$slots, "cancel", {}, () => [
1954
- o.hideCancel ? B("", !0) : (s(), w(d, {
1954
+ })) : C("", !0),
1955
+ _(n.$slots, "default"),
1956
+ u("div", Lt, [
1957
+ _(n.$slots, "cancel", {}, () => [
1958
+ n.hideCancel ? C("", !0) : (s(), k(d, {
1955
1959
  key: 0,
1956
1960
  "data-cy": "cancel-btn",
1957
1961
  type: "reset",
1958
1962
  severity: "secondary",
1959
1963
  outlined: "",
1960
- onClick: i[0] || (i[0] = (f) => o.$emit("cancel"))
1964
+ onClick: i[0] || (i[0] = (y) => n.$emit("cancel"))
1961
1965
  }, {
1962
- default: b(() => [
1963
- P(h(o.cancelText), 1)
1966
+ default: g(() => [
1967
+ z(h(n.cancelText), 1)
1964
1968
  ]),
1965
1969
  _: 1
1966
1970
  }))
1967
1971
  ]),
1968
- k(o.$slots, "submit", { submit: l }, () => [
1969
- v(d, {
1972
+ _(n.$slots, "submit", { submit: o }, () => [
1973
+ b(d, {
1970
1974
  "data-cy": "submit-btn",
1971
1975
  type: "submit",
1972
1976
  severity: "primary",
1973
1977
  class: "ms-auto"
1974
1978
  }, {
1975
- default: b(() => [
1976
- P(h(o.submitText), 1)
1979
+ default: g(() => [
1980
+ z(h(n.submitText), 1)
1977
1981
  ]),
1978
1982
  _: 1
1979
1983
  })
1980
1984
  ])
1981
1985
  ]),
1982
- n.value ? (s(), w(pe, {
1986
+ l.value ? (s(), k(be, {
1983
1987
  key: 2,
1984
1988
  "data-cy": "loading-spinner"
1985
- })) : B("", !0)
1989
+ })) : C("", !0)
1986
1990
  ], 16);
1987
1991
  };
1988
1992
  }
1989
- }), Ht = { class: "d-flex flex-column" }, jt = ["for"], vl = /* @__PURE__ */ F({
1993
+ }), Ht = {
1994
+ key: 1,
1995
+ class: "d-flex flex-column"
1996
+ }, jt = ["for"], yl = /* @__PURE__ */ F({
1990
1997
  __name: "ForgeFormField",
1991
- props: {
1998
+ props: /* @__PURE__ */ H({
1992
1999
  name: {},
1993
2000
  label: {},
1994
2001
  type: { default: "text" },
1995
- rules: {},
1996
2002
  mask: { default: "" },
1997
2003
  placeholder: { default: "" }
1998
- },
2004
+ }, {
2005
+ modelValue: {},
2006
+ modelModifiers: {}
2007
+ }),
2008
+ emits: ["update:modelValue"],
1999
2009
  setup(e) {
2000
- const t = e, { errors: n, value: a, errorMessage: l } = W(() => t.name, t.rules), o = x(() => n.value.length > 0);
2001
- return (i, d) => {
2002
- const f = Ve, r = Ce, g = ne;
2003
- return s(), p("div", Ht, [
2004
- t.type !== "checkbox" ? (s(), p("label", {
2010
+ const t = E(e, "modelValue"), l = e, a = (m) => {
2011
+ l.type == "number" ? d(m.value) : d(m);
2012
+ }, { errors: o, value: n, errorMessage: i, handleChange: d, handleBlur: y } = W(() => l.name, void 0, {
2013
+ initialValue: t.value
2014
+ }), r = w(() => o.value.length > 0);
2015
+ return ie(() => n.value, (m) => {
2016
+ t.value = m;
2017
+ }, { immediate: !0 }), (m, p) => {
2018
+ const x = Ve, $ = Ce, P = re;
2019
+ return l.type === "checkbox" ? (s(), k(ye, V({
2020
+ key: 0,
2021
+ id: l.name,
2022
+ label: l.label
2023
+ }, m.$attrs, {
2024
+ name: l.name,
2025
+ modelValue: t.value,
2026
+ "onUpdate:modelValue": p[0] || (p[0] = (S) => t.value = S)
2027
+ }), null, 16, ["id", "label", "name", "modelValue"])) : (s(), v("div", Ht, [
2028
+ u("label", {
2029
+ for: l.name
2030
+ }, h(l.label), 9, jt),
2031
+ l.type === "number" ? (s(), k(c(pe), V({
2005
2032
  key: 0,
2006
- for: t.name
2007
- }, h(t.label), 9, jt)) : B("", !0),
2008
- t.type === "checkbox" ? (s(), w(me, S({
2033
+ id: l.name
2034
+ }, m.$attrs, {
2035
+ placeholder: l.placeholder,
2036
+ "input-class": { "is-invalid": r.value },
2037
+ class: { "is-invalid": r.value },
2038
+ modelValue: t.value,
2039
+ "onUpdate:modelValue": p[1] || (p[1] = (S) => t.value = S),
2040
+ onInput: a
2041
+ }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : l.type === "textarea" ? (s(), k(x, V({
2009
2042
  key: 1,
2010
- id: t.name,
2011
- rules: i.rules,
2012
- label: t.label
2013
- }, i.$attrs), null, 16, ["id", "rules", "label"])) : t.type === "number" ? (s(), w(u(ue), S({
2043
+ id: l.name
2044
+ }, m.$attrs, {
2045
+ placeholder: l.placeholder,
2046
+ class: { "is-invalid": r.value },
2047
+ modelValue: t.value,
2048
+ "onUpdate:modelValue": p[2] || (p[2] = (S) => t.value = S),
2049
+ onInput: a,
2050
+ onBlur: c(y)
2051
+ }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : l.type === "mask" ? (s(), k($, V({
2014
2052
  key: 2,
2015
- id: t.name,
2016
- placeholder: t.placeholder,
2017
- modelValue: u(a),
2018
- "onUpdate:modelValue": d[0] || (d[0] = (y) => j(a) ? a.value = y : null),
2019
- "input-class": { "is-invalid": o.value },
2020
- class: { "is-invalid": o.value }
2021
- }, i.$attrs), null, 16, ["id", "placeholder", "modelValue", "input-class", "class"])) : t.type === "textarea" ? (s(), w(f, S({
2053
+ id: l.name
2054
+ }, m.$attrs, {
2055
+ placeholder: l.placeholder,
2056
+ mask: l.mask,
2057
+ class: { "is-invalid": r.value },
2058
+ modelValue: t.value,
2059
+ "onUpdate:modelValue": p[3] || (p[3] = (S) => t.value = S),
2060
+ onInput: a,
2061
+ onBlur: c(y)
2062
+ }), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : l.type === "text" ? (s(), k(P, V({
2022
2063
  key: 3,
2023
- id: t.name,
2024
- placeholder: t.placeholder,
2025
- modelValue: u(a),
2026
- "onUpdate:modelValue": d[1] || (d[1] = (y) => j(a) ? a.value = y : null),
2027
- class: { "is-invalid": o.value }
2028
- }, i.$attrs), null, 16, ["id", "placeholder", "modelValue", "class"])) : t.type === "mask" ? (s(), w(r, S({
2029
- key: 4,
2030
- id: t.name,
2031
- placeholder: t.placeholder,
2032
- modelValue: u(a),
2033
- "onUpdate:modelValue": d[2] || (d[2] = (y) => j(a) ? a.value = y : null),
2034
- mask: t.mask,
2035
- class: { "is-invalid": o.value }
2036
- }, i.$attrs), null, 16, ["id", "placeholder", "modelValue", "mask", "class"])) : t.type === "text" ? (s(), w(g, S({
2037
- key: 5,
2038
- id: t.name,
2039
- placeholder: t.placeholder,
2040
- modelValue: u(a),
2041
- "onUpdate:modelValue": d[3] || (d[3] = (y) => j(a) ? a.value = y : null),
2042
- class: { "is-invalid": o.value }
2043
- }, i.$attrs), null, 16, ["id", "placeholder", "modelValue", "class"])) : B("", !0),
2044
- t.type !== "checkbox" ? L((s(), p("small", {
2045
- key: 6,
2064
+ id: l.name
2065
+ }, m.$attrs, {
2066
+ placeholder: l.placeholder,
2067
+ class: { "is-invalid": r.value },
2068
+ modelValue: t.value,
2069
+ "onUpdate:modelValue": p[4] || (p[4] = (S) => t.value = S),
2070
+ onInput: a,
2071
+ onBlur: c(y)
2072
+ }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : C("", !0),
2073
+ L(u("small", {
2046
2074
  "data-cy": "error",
2047
2075
  class: "invalid-feedback"
2048
- }, h(u(l)), 513)), [
2049
- [Y, o.value]
2050
- ]) : B("", !0)
2051
- ]);
2076
+ }, h(c(i)), 513), [
2077
+ [q, r.value]
2078
+ ])
2079
+ ]));
2052
2080
  };
2053
2081
  }
2054
2082
  }), bl = /* @__PURE__ */ F({
@@ -2079,9 +2107,9 @@ const pt = { key: 0 }, yt = {
2079
2107
  unstyled: { type: Boolean }
2080
2108
  },
2081
2109
  setup(e) {
2082
- const t = e, { errors: n, value: a, errorMessage: l } = W(() => t.name, t.rules);
2110
+ const t = e, { errors: l, value: a, errorMessage: o } = W(() => t.name, t.rules);
2083
2111
  a.value = t.modelValue;
2084
- const o = x(() => n.value.length > 0), i = x(() => ({
2112
+ const n = w(() => l.value.length > 0), i = w(() => ({
2085
2113
  inputtoken: "list-unstyled",
2086
2114
  input: "border-0",
2087
2115
  container: ({ props: d }) => ({
@@ -2089,7 +2117,7 @@ const pt = { key: 0 }, yt = {
2089
2117
  "form-control mb-0 d-flex",
2090
2118
  {
2091
2119
  disabled: d.disabled,
2092
- "is-invalid": o.value
2120
+ "is-invalid": n.value
2093
2121
  }
2094
2122
  ]
2095
2123
  }),
@@ -2112,30 +2140,30 @@ const pt = { key: 0 }, yt = {
2112
2140
  ]
2113
2141
  }
2114
2142
  }));
2115
- return (d, f) => {
2143
+ return (d, y) => {
2116
2144
  const r = Te;
2117
- return s(), p(A, null, [
2118
- v(r, S({ ...t, ...d.$attrs }, {
2145
+ return s(), v(N, null, [
2146
+ b(r, V({ ...t, ...d.$attrs }, {
2119
2147
  pt: i.value,
2120
- "model-value": u(a),
2121
- "onUpdate:modelValue": f[0] || (f[0] = (g) => j(a) ? a.value = g : null)
2148
+ "model-value": c(a),
2149
+ "onUpdate:modelValue": y[0] || (y[0] = (m) => le(a) ? a.value = m : null)
2122
2150
  }), {
2123
- removetokenicon: b(({ removeCallback: g }) => [
2124
- L(v(u(C), {
2151
+ removetokenicon: g(({ removeCallback: m }) => [
2152
+ L(b(c(T), {
2125
2153
  icon: "bi:x",
2126
2154
  class: "cursor-pointer",
2127
- onClick: g
2155
+ onClick: m
2128
2156
  }, null, 8, ["onClick"]), [
2129
- [Y, !t.disabled]
2157
+ [q, !t.disabled]
2130
2158
  ])
2131
2159
  ]),
2132
2160
  _: 1
2133
2161
  }, 16, ["pt", "model-value"]),
2134
- L(m("small", {
2162
+ L(u("small", {
2135
2163
  "data-cy": "error",
2136
2164
  class: "text-invalid"
2137
- }, h(u(l)), 513), [
2138
- [Y, o.value]
2165
+ }, h(c(o)), 513), [
2166
+ [q, n.value]
2139
2167
  ])
2140
2168
  ], 64);
2141
2169
  };
@@ -2155,7 +2183,7 @@ const pt = { key: 0 }, yt = {
2155
2183
  unstyled: { type: Boolean }
2156
2184
  },
2157
2185
  setup(e) {
2158
- const t = e, n = x(() => t.striped ? "progress-bar-striped" : null), a = x(() => t.animate ? "progress-bar-animated" : null), l = x(() => {
2186
+ const t = e, l = w(() => t.striped ? "progress-bar-striped" : null), a = w(() => t.animate ? "progress-bar-animated" : null), o = w(() => {
2159
2187
  switch (t.severity) {
2160
2188
  case "brand":
2161
2189
  return "bg-brand";
@@ -2174,19 +2202,19 @@ const pt = { key: 0 }, yt = {
2174
2202
  default:
2175
2203
  return "bg-primary";
2176
2204
  }
2177
- }), o = x(() => ({
2205
+ }), n = w(() => ({
2178
2206
  root: {
2179
2207
  style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
2180
2208
  },
2181
2209
  value: {
2182
- class: [l.value, n.value, a.value]
2210
+ class: [o.value, l.value, a.value]
2183
2211
  }
2184
2212
  }));
2185
2213
  return (i, d) => {
2186
- const f = Me;
2187
- return s(), w(f, S({ ...i.$attrs, ...t }, { pt: o.value }), {
2188
- default: b(() => [
2189
- k(i.$slots, "default")
2214
+ const y = Pe;
2215
+ return s(), k(y, V({ ...i.$attrs, ...t }, { pt: n.value }), {
2216
+ default: g(() => [
2217
+ _(i.$slots, "default")
2190
2218
  ]),
2191
2219
  _: 3
2192
2220
  }, 16, ["pt"]);
@@ -2200,11 +2228,11 @@ const pt = { key: 0 }, yt = {
2200
2228
  },
2201
2229
  setup(e) {
2202
2230
  const t = e;
2203
- return (n, a) => (s(), p("div", S(n.$attrs, {
2231
+ return (l, a) => (s(), v("div", V(l.$attrs, {
2204
2232
  class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
2205
2233
  }), [
2206
- m("span", qt, [
2207
- k(n.$slots, "default")
2234
+ u("span", qt, [
2235
+ _(l.$slots, "default")
2208
2236
  ])
2209
2237
  ], 16));
2210
2238
  }
@@ -2227,21 +2255,21 @@ const pt = { key: 0 }, yt = {
2227
2255
  },
2228
2256
  emits: ["update:currentStep"],
2229
2257
  setup(e, { emit: t }) {
2230
- const n = t, a = e, l = M(a.currentStep), o = () => {
2258
+ const l = t, a = e, o = M(a.currentStep), n = () => {
2231
2259
  do
2232
- l.value--;
2233
- while (a.model[l.value].disabled);
2234
- n("update:currentStep", l.value);
2260
+ o.value--;
2261
+ while (a.model[o.value].disabled);
2262
+ l("update:currentStep", o.value);
2235
2263
  }, i = () => {
2236
- if (l.value < a.model.length - 1)
2264
+ if (o.value < a.model.length - 1)
2237
2265
  do
2238
- l.value++;
2239
- while (a.model[l.value].disabled);
2240
- n("update:currentStep", l.value);
2241
- }, d = x(() => {
2242
- const r = a.model.findIndex((g) => !g.disabled);
2243
- return !(r < l.value && r > -1);
2244
- }), f = x(() => ({
2266
+ o.value++;
2267
+ while (a.model[o.value].disabled);
2268
+ l("update:currentStep", o.value);
2269
+ }, d = w(() => {
2270
+ const r = a.model.findIndex((m) => !m.disabled);
2271
+ return !(r < o.value && r > -1);
2272
+ }), y = w(() => ({
2245
2273
  menuitem: (r) => ({
2246
2274
  class: [{
2247
2275
  "cursor-pointer": !r.context.disabled
@@ -2252,13 +2280,13 @@ const pt = { key: 0 }, yt = {
2252
2280
  "d-flex align-items-center justify-content-center mb-2 step",
2253
2281
  {
2254
2282
  inactive: r.context.disabled,
2255
- "bg-primary text-white": r.context.index === l.value && (a.severity === void 0 || a.severity === "primary"),
2256
- "bg-brand text-white": r.context.index === l.value && a.severity === "brand",
2257
- "bg-secondary text-white": r.context.index === l.value && a.severity === "secondary",
2258
- "bg-success text-white": r.context.index === l.value && a.severity === "success",
2259
- "bg-warning text-white": r.context.index === l.value && a.severity === "warning",
2260
- "bg-danger text-white": r.context.index === l.value && a.severity === "danger",
2261
- "bg-info text-white": r.context.index === l.value && a.severity === "info"
2283
+ "bg-primary text-white": r.context.index === o.value && (a.severity === void 0 || a.severity === "primary"),
2284
+ "bg-brand text-white": r.context.index === o.value && a.severity === "brand",
2285
+ "bg-secondary text-white": r.context.index === o.value && a.severity === "secondary",
2286
+ "bg-success text-white": r.context.index === o.value && a.severity === "success",
2287
+ "bg-warning text-white": r.context.index === o.value && a.severity === "warning",
2288
+ "bg-danger text-white": r.context.index === o.value && a.severity === "danger",
2289
+ "bg-info text-white": r.context.index === o.value && a.severity === "info"
2262
2290
  }
2263
2291
  ]
2264
2292
  }),
@@ -2266,61 +2294,61 @@ const pt = { key: 0 }, yt = {
2266
2294
  class: [
2267
2295
  "h5",
2268
2296
  {
2269
- "border-bottom border-2 border-primary": r.context.index === l.value && (a.severity === void 0 || a.severity === "primary"),
2270
- "border-bottom border-2 border-brand": r.context.index === l.value && a.severity === "brand",
2271
- "border-bottom border-2 border-secondary": r.context.index === l.value && a.severity === "secondary",
2272
- "border-bottom border-2 border-success": r.context.index === l.value && a.severity === "success",
2273
- "border-bottom border-2 border-warning": r.context.index === l.value && a.severity === "warning",
2274
- "border-bottom border-2 border-danger": r.context.index === l.value && a.severity === "danger",
2275
- "border-bottom border-2 border-info": r.context.index === l.value && a.severity === "info"
2297
+ "border-bottom border-2 border-primary": r.context.index === o.value && (a.severity === void 0 || a.severity === "primary"),
2298
+ "border-bottom border-2 border-brand": r.context.index === o.value && a.severity === "brand",
2299
+ "border-bottom border-2 border-secondary": r.context.index === o.value && a.severity === "secondary",
2300
+ "border-bottom border-2 border-success": r.context.index === o.value && a.severity === "success",
2301
+ "border-bottom border-2 border-warning": r.context.index === o.value && a.severity === "warning",
2302
+ "border-bottom border-2 border-danger": r.context.index === o.value && a.severity === "danger",
2303
+ "border-bottom border-2 border-info": r.context.index === o.value && a.severity === "info"
2276
2304
  }
2277
2305
  ]
2278
2306
  })
2279
2307
  }));
2280
- return (r, g) => {
2281
- const y = E, c = Ie, $ = Pe;
2282
- return s(), p("div", Gt, [
2283
- m("div", Kt, [
2284
- v(y, {
2308
+ return (r, m) => {
2309
+ const p = R, x = Ie, $ = Me;
2310
+ return s(), v("div", Gt, [
2311
+ u("div", Kt, [
2312
+ b(p, {
2285
2313
  severity: a.severity,
2286
2314
  disabled: d.value,
2287
- onClick: o,
2315
+ onClick: n,
2288
2316
  class: "rounded-circle py-2 me-4",
2289
2317
  "data-cy": "back-button"
2290
2318
  }, {
2291
- default: b(() => [
2292
- v(u(C), {
2319
+ default: g(() => [
2320
+ b(c(T), {
2293
2321
  icon: "bi:chevron-left",
2294
2322
  class: "mb-1"
2295
2323
  })
2296
2324
  ]),
2297
2325
  _: 1
2298
2326
  }, 8, ["severity", "disabled"]),
2299
- v(c, {
2300
- "active-step": l.value,
2301
- "onUpdate:activeStep": g[0] || (g[0] = (V) => l.value = V),
2327
+ b(x, {
2328
+ "active-step": o.value,
2329
+ "onUpdate:activeStep": m[0] || (m[0] = (P) => o.value = P),
2302
2330
  model: a.model,
2303
- pt: f.value,
2331
+ pt: y.value,
2304
2332
  readonly: !1
2305
2333
  }, null, 8, ["active-step", "model", "pt"])
2306
2334
  ]),
2307
- v($),
2308
- (s(!0), p(A, null, H(a.model, (V, T) => (s(), p("div", {
2309
- key: T,
2335
+ b($),
2336
+ (s(!0), v(N, null, j(a.model, (P, S) => (s(), v("div", {
2337
+ key: S,
2310
2338
  class: "w-100"
2311
2339
  }, [
2312
- T === l.value ? k(r.$slots, V.key ?? V.label, {
2340
+ S === o.value ? _(r.$slots, P.key ?? P.label, {
2313
2341
  key: 0,
2314
2342
  nextStep: i,
2315
- previousStep: o
2343
+ previousStep: n
2316
2344
  }, () => [
2317
- v(ae, {
2345
+ b(ne, {
2318
2346
  severity: "info",
2319
2347
  "data-cy": "alert"
2320
2348
  }, {
2321
- default: b(() => [
2322
- P(" Please add Slot Content for the key " + h(V.key ?? V.label) + " ", 1),
2323
- v(y, {
2349
+ default: g(() => [
2350
+ z(" Please add Slot Content for the key " + h(P.key ?? P.label) + " ", 1),
2351
+ b(p, {
2324
2352
  severity: "primary",
2325
2353
  label: "Next",
2326
2354
  onClick: i,
@@ -2329,7 +2357,7 @@ const pt = { key: 0 }, yt = {
2329
2357
  ]),
2330
2358
  _: 2
2331
2359
  }, 1024)
2332
- ]) : B("", !0)
2360
+ ]) : C("", !0)
2333
2361
  ]))), 128))
2334
2362
  ]);
2335
2363
  };
@@ -2342,45 +2370,45 @@ const pt = { key: 0 }, yt = {
2342
2370
  clickable: { type: Boolean, default: !1 }
2343
2371
  },
2344
2372
  setup(e) {
2345
- const t = e, n = x(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "border-0" : `tile-bar-${t.barPosition}`}`), a = x(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`}`);
2346
- return (l, o) => {
2347
- const i = E;
2348
- return t.clickable ? (s(), w(i, {
2373
+ const t = e, l = w(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "border-0" : `tile-bar-${t.barPosition}`}`), a = w(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`}`);
2374
+ return (o, n) => {
2375
+ const i = R;
2376
+ return t.clickable ? (s(), k(i, {
2349
2377
  key: 0,
2350
- class: _(["d-flex w-100 p-0 text-body", n.value]),
2378
+ class: B(["d-flex w-100 p-0 text-body", l.value]),
2351
2379
  severity: t.severity,
2352
2380
  unstyled: "",
2353
2381
  "data-cy": "button-tile"
2354
2382
  }, {
2355
- default: b(() => [
2356
- m("div", Wt, [
2357
- k(l.$slots, "default", {}, () => [
2358
- P("Tile Content")
2383
+ default: g(() => [
2384
+ u("div", Wt, [
2385
+ _(o.$slots, "default", {}, () => [
2386
+ z("Tile Content")
2359
2387
  ])
2360
2388
  ])
2361
2389
  ]),
2362
2390
  _: 3
2363
- }, 8, ["severity", "class"])) : (s(), p("div", {
2391
+ }, 8, ["severity", "class"])) : (s(), v("div", {
2364
2392
  key: 1,
2365
- class: _(["d-flex w-100", a.value]),
2393
+ class: B(["d-flex w-100", a.value]),
2366
2394
  "data-cy": "tile"
2367
2395
  }, [
2368
- m("div", Zt, [
2369
- k(l.$slots, "default", {}, () => [
2370
- P("Tile Content")
2396
+ u("div", Zt, [
2397
+ _(o.$slots, "default", {}, () => [
2398
+ z("Tile Content")
2371
2399
  ])
2372
2400
  ])
2373
2401
  ], 2));
2374
2402
  };
2375
2403
  }
2376
2404
  });
2377
- function X(e, t) {
2405
+ function Q(e, t) {
2378
2406
  return e > 1 ? `${t}s` : t;
2379
2407
  }
2380
2408
  const Jt = {
2381
2409
  class: "d-flex justify-content-start align-items-baseline",
2382
2410
  "data-cy": "pagination-header"
2383
- }, Xt = { class: "ms-2" }, Qt = { key: 0 }, ea = /* @__PURE__ */ m("span", { class: "mx-2" }, "|", -1), ta = {
2411
+ }, Xt = { class: "ms-2" }, Qt = { key: 0 }, ea = /* @__PURE__ */ u("span", { class: "mx-2" }, "|", -1), ta = {
2384
2412
  class: "w-auto",
2385
2413
  "data-cy": "total"
2386
2414
  }, aa = /* @__PURE__ */ F({
@@ -2392,33 +2420,32 @@ const Jt = {
2392
2420
  },
2393
2421
  emits: ["update:perPage"],
2394
2422
  setup(e, { emit: t }) {
2395
- const n = t, a = e, l = (i) => {
2396
- n("update:perPage", i.value);
2397
- }, o = x(() => {
2423
+ const l = t, a = e, o = (i) => {
2424
+ l("update:perPage", i.value);
2425
+ }, n = w(() => {
2398
2426
  const i = Math.ceil(a.total / a.perPage);
2399
- return `${i} ${X(i, "page")}`;
2427
+ return `${i} ${Q(i, "page")}`;
2400
2428
  });
2401
- return (i, d) => (s(), p("div", Jt, [
2402
- P(" Number of results per page "),
2403
- m("div", Xt, [
2404
- v(u(se), {
2429
+ return (i, d) => (s(), v("div", Jt, [
2430
+ z(" Number of results per page "),
2431
+ u("div", Xt, [
2432
+ b(c(de), {
2405
2433
  options: a.pageSizes,
2406
2434
  "model-value": a.perPage,
2407
- onChange: d[0] || (d[0] = (f) => l(f))
2435
+ onChange: d[0] || (d[0] = (y) => o(y))
2408
2436
  }, null, 8, ["options", "model-value"])
2409
2437
  ]),
2410
- a.total ? (s(), p("div", Qt, [
2438
+ a.total ? (s(), v("div", Qt, [
2411
2439
  ea,
2412
- m("span", ta, h(a.total) + " " + h(u(X)(a.total, "result")) + " across " + h(o.value), 1)
2413
- ])) : B("", !0)
2440
+ u("span", ta, h(a.total) + " " + h(c(Q)(a.total, "result")) + " across " + h(n.value), 1)
2441
+ ])) : C("", !0)
2414
2442
  ]));
2415
2443
  }
2416
- }), la = { class: "position-relative" }, oa = { "data-cy": "above-table-slot" }, na = { class: "d-flex" }, sa = { class: "d-flex align-items-end mb-2" }, ia = { key: 0 }, ra = { class: "ms-auto" }, da = /* @__PURE__ */ m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1), wl = /* @__PURE__ */ F({
2444
+ }), la = { class: "position-relative" }, oa = { "data-cy": "above-table-slot" }, na = { class: "d-flex" }, sa = { class: "d-flex align-items-end mb-2" }, ia = { key: 0 }, ra = { class: "ms-auto" }, da = /* @__PURE__ */ u("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1), wl = /* @__PURE__ */ F({
2417
2445
  __name: "ForgeTable",
2418
2446
  props: {
2419
2447
  value: {},
2420
2448
  legacyPaginationFooter: { type: Boolean, default: !1 },
2421
- total: {},
2422
2449
  showClearButton: { type: Boolean, default: !1 },
2423
2450
  showExporterButton: { type: Boolean, default: !1 },
2424
2451
  stickyHeader: { type: Boolean, default: !0 },
@@ -2492,20 +2519,19 @@ const Jt = {
2492
2519
  ptOptions: {},
2493
2520
  unstyled: { type: Boolean }
2494
2521
  },
2495
- emits: ["update:filters"],
2522
+ emits: ["update:filters", "update:tableContext", "sort", "page"],
2496
2523
  setup(e, { emit: t }) {
2497
- const n = t, a = e, l = M([10, 20, 50, 100]), o = M(20), i = M(), d = () => {
2498
- for (const c in a.filters)
2499
- a.filters[c].value = null;
2500
- f(a.filters);
2501
- }, f = (c) => {
2502
- n("update:filters", c);
2503
- }, r = x(() => {
2504
- const c = Math.ceil((a.total ?? a.value.length) / o.value);
2505
- return `${c} ${X(c, "page")}`;
2506
- }), g = () => {
2507
- i.value.exportCSV();
2508
- }, y = x(() => ({
2524
+ const l = t, a = e, o = M(), n = M([10, 20, 50, 100]), i = M(20), d = M({
2525
+ filters: a.filters,
2526
+ perPage: i.value,
2527
+ page: 0,
2528
+ sortDirection: "None",
2529
+ sortField: "",
2530
+ total: a.totalRecords ?? a.value.length
2531
+ }), y = w(() => a.totalRecords ?? a.value.length), r = w(() => {
2532
+ const f = Math.ceil(y.value / i.value);
2533
+ return `${f} ${Q(f, "page")}`;
2534
+ }), m = w(() => ({
2509
2535
  thead: () => ({
2510
2536
  class: [
2511
2537
  {
@@ -2527,116 +2553,139 @@ const Jt = {
2527
2553
  }
2528
2554
  ]
2529
2555
  })
2530
- }));
2531
- return (c, $) => (s(), p("div", la, [
2532
- m("span", oa, [
2533
- k(c.$slots, "above-table")
2556
+ })), p = () => {
2557
+ for (const f in a.filters)
2558
+ typeof a.filters[f] == "string" ? a.filters[f] = "" : a.filters[f].value = null;
2559
+ P(a.filters);
2560
+ }, x = () => {
2561
+ o.value.exportCSV();
2562
+ }, $ = (f) => {
2563
+ var I;
2564
+ d.value.sortDirection = f.sortOrder === 1 ? "Asc" : f.sortOrder === -1 ? "Desc" : "None", d.value.sortField = ((I = f.sortField) == null ? void 0 : I.toString()) ?? "", l("update:tableContext", d.value), l("sort", f);
2565
+ }, P = (f) => {
2566
+ d.value.filters = f, l("update:tableContext", d.value), l("update:filters", f);
2567
+ }, S = (f) => {
2568
+ d.value.page = f.page, l("update:tableContext", d.value), l("page", f);
2569
+ }, O = () => {
2570
+ d.value.perPage = i.value, l("update:tableContext", d.value);
2571
+ };
2572
+ return ie(() => a.filters, (f) => {
2573
+ d.value.filters = f, l("update:tableContext", d.value);
2574
+ }, { deep: !0 }), ae(() => l("update:tableContext", d.value)), (f, I) => (s(), v("div", la, [
2575
+ u("span", oa, [
2576
+ _(f.$slots, "above-table")
2534
2577
  ]),
2535
- v(u(ze), S({
2578
+ b(c(ze), V({
2536
2579
  class: ["w-100", `${a.severity ? `forge-table-${a.severity}` : ""}`]
2537
- }, { ...a, ...c.$attrs }, {
2538
- rows: o.value,
2539
- "total-records": c.total,
2580
+ }, { ...a, ...f.$attrs }, {
2581
+ pt: m.value,
2582
+ rows: i.value,
2583
+ "total-records": y.value,
2540
2584
  "filter-display": a.filters ? "row" : void 0,
2541
2585
  ref_key: "forgeTable",
2542
- ref: i,
2543
- "onUpdate:filters": f,
2544
- pt: y.value,
2545
- "data-cy": "table"
2546
- }), te({
2547
- header: b(() => [
2548
- m("div", {
2549
- class: _(a.loading ? "opacity-50" : "")
2586
+ ref: o,
2587
+ "data-cy": "table",
2588
+ "onUpdate:filters": P,
2589
+ onSort: $,
2590
+ onPage: S
2591
+ }), oe({
2592
+ header: g(() => [
2593
+ u("div", {
2594
+ class: B(a.loading ? "opacity-50" : "")
2550
2595
  }, [
2551
- m("div", na, [
2552
- m("div", sa, [
2553
- c.paginator && !c.legacyPaginationFooter ? (s(), p("span", ia, [
2554
- v(aa, {
2555
- total: c.total ?? c.value.length,
2556
- "page-sizes": l.value,
2557
- "per-page": o.value,
2558
- "onUpdate:perPage": $[0] || ($[0] = (V) => o.value = V)
2596
+ u("div", na, [
2597
+ u("div", sa, [
2598
+ f.paginator && !f.legacyPaginationFooter ? (s(), v("span", ia, [
2599
+ b(aa, {
2600
+ total: y.value,
2601
+ "page-sizes": n.value,
2602
+ "per-page": i.value,
2603
+ "onUpdate:perPage": [
2604
+ I[0] || (I[0] = (Y) => i.value = Y),
2605
+ O
2606
+ ]
2559
2607
  }, null, 8, ["total", "page-sizes", "per-page"])
2560
- ])) : B("", !0)
2608
+ ])) : C("", !0)
2561
2609
  ]),
2562
- m("div", ra, [
2563
- c.showClearButton ? (s(), w(u(E), {
2610
+ u("div", ra, [
2611
+ f.showClearButton ? (s(), k(c(R), {
2564
2612
  key: 0,
2565
2613
  outlined: "",
2566
- class: _(c.showExporterButton ? "me-2" : ""),
2567
- onClick: d,
2614
+ class: B(f.showExporterButton ? "me-2" : ""),
2615
+ onClick: p,
2568
2616
  "data-cy": "clear-all"
2569
2617
  }, {
2570
- default: b(() => [
2571
- v(u(C), {
2618
+ default: g(() => [
2619
+ b(c(T), {
2572
2620
  icon: "bi:funnel-fill",
2573
2621
  width: "24",
2574
2622
  height: "24"
2575
2623
  }),
2576
- P(" Clear ")
2624
+ z(" Clear ")
2577
2625
  ]),
2578
2626
  _: 1
2579
- }, 8, ["class"])) : B("", !0),
2580
- c.showExporterButton ? (s(), w(u(E), {
2627
+ }, 8, ["class"])) : C("", !0),
2628
+ f.showExporterButton ? (s(), k(c(R), {
2581
2629
  key: 1,
2582
2630
  outlined: "",
2583
- onClick: g,
2631
+ onClick: x,
2584
2632
  "data-cy": "exporter"
2585
2633
  }, {
2586
- default: b(() => [
2587
- v(u(C), {
2634
+ default: g(() => [
2635
+ b(c(T), {
2588
2636
  icon: "typcn:export",
2589
2637
  width: "24",
2590
2638
  height: "24"
2591
2639
  }),
2592
- P(" Export ")
2640
+ z(" Export ")
2593
2641
  ]),
2594
2642
  _: 1
2595
- })) : B("", !0)
2643
+ })) : C("", !0)
2596
2644
  ])
2597
2645
  ])
2598
2646
  ], 2)
2599
2647
  ]),
2600
- default: b(() => [
2601
- k(c.$slots, "default")
2648
+ default: g(() => [
2649
+ _(f.$slots, "default")
2602
2650
  ]),
2603
2651
  _: 2
2604
2652
  }, [
2605
- H(c.$slots, (V, T) => ({
2606
- name: T,
2607
- fn: b((I) => [
2608
- k(c.$slots, T, Q(ee(I || {})))
2653
+ j(f.$slots, (Y, Z) => ({
2654
+ name: Z,
2655
+ fn: g((se) => [
2656
+ _(f.$slots, Z, ee(te(se || {})))
2609
2657
  ])
2610
2658
  })),
2611
- c.legacyPaginationFooter ? {
2659
+ f.legacyPaginationFooter ? {
2612
2660
  name: "paginatorstart",
2613
- fn: b(() => [
2614
- m("span", {
2615
- class: _(["d-flex", a.loading ? "opacity-50" : ""]),
2661
+ fn: g(() => [
2662
+ u("span", {
2663
+ class: B(["d-flex", a.loading ? "opacity-50" : ""]),
2616
2664
  "data-cy": "legacy-page-size"
2617
2665
  }, [
2618
2666
  da,
2619
- v(u(se), {
2620
- options: l.value,
2621
- modelValue: o.value,
2622
- "onUpdate:modelValue": $[1] || ($[1] = (V) => o.value = V),
2623
- class: "ms-2"
2667
+ b(c(de), {
2668
+ options: n.value,
2669
+ modelValue: i.value,
2670
+ "onUpdate:modelValue": I[1] || (I[1] = (Y) => i.value = Y),
2671
+ class: "ms-2",
2672
+ onClick: O
2624
2673
  }, null, 8, ["options", "modelValue"])
2625
2674
  ], 2)
2626
2675
  ]),
2627
2676
  key: "0"
2628
2677
  } : void 0,
2629
- c.legacyPaginationFooter ? {
2678
+ f.legacyPaginationFooter ? {
2630
2679
  name: "paginatorend",
2631
- fn: b(() => [
2632
- m("span", {
2680
+ fn: g(() => [
2681
+ u("span", {
2633
2682
  "data-cy": "legacy-total",
2634
- class: _(a.loading ? "opacity-50" : "")
2635
- }, h(c.total ?? c.value.length) + " " + h(u(X)(c.total ?? c.value.length, "result")) + " across " + h(r.value), 3)
2683
+ class: B(a.loading ? "opacity-50" : "")
2684
+ }, h(y.value) + " " + h(c(Q)(y.value, "result")) + " across " + h(r.value), 3)
2636
2685
  ]),
2637
2686
  key: "1"
2638
2687
  } : void 0
2639
- ]), 1040, ["class", "rows", "total-records", "filter-display", "pt"])
2688
+ ]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
2640
2689
  ]));
2641
2690
  }
2642
2691
  }), xl = /* @__PURE__ */ F({
@@ -2646,32 +2695,32 @@ const Jt = {
2646
2695
  dropdownOptions: {}
2647
2696
  },
2648
2697
  setup(e) {
2649
- return (t, n) => {
2650
- const a = ue;
2651
- return t.dataType === "numeric" ? (s(), w(a, S({ key: 0 }, t.$attrs, { class: "w-100" }), null, 16)) : t.dataType === "date" ? (s(), w(Et, S({ key: 1 }, t.$attrs, {
2698
+ return (t, l) => {
2699
+ const a = pe;
2700
+ return t.dataType === "numeric" ? (s(), k(a, V({ key: 0 }, t.$attrs, { class: "w-100" }), null, 16)) : t.dataType === "date" ? (s(), k(Et, V({ key: 1 }, t.$attrs, {
2652
2701
  "show-icon": !1,
2653
2702
  "show-on-focus": !0,
2654
2703
  class: "w-100"
2655
- }), null, 16)) : t.dataType === "select" ? (s(), w(u(se), S({ key: 2 }, t.$attrs, {
2704
+ }), null, 16)) : t.dataType === "select" ? (s(), k(c(de), V({ key: 2 }, t.$attrs, {
2656
2705
  options: t.dropdownOptions,
2657
2706
  class: "dropdown-input w-100"
2658
- }), null, 16, ["options"])) : t.dataType === "multiselect" ? (s(), w(u(Oe), S({ key: 3 }, t.$attrs, {
2707
+ }), null, 16, ["options"])) : t.dataType === "multiselect" ? (s(), k(c(Oe), V({ key: 3 }, t.$attrs, {
2659
2708
  options: t.dropdownOptions,
2660
2709
  showToggleAll: !1,
2661
2710
  placeholder: " ",
2662
2711
  filter: "",
2663
2712
  class: "w-100 dropdown-input"
2664
- }), null, 16, ["options"])) : (s(), w(u(ne), S({ key: 4 }, t.$attrs, { class: "w-100" }), null, 16));
2713
+ }), null, 16, ["options"])) : (s(), k(c(re), V({ key: 4 }, t.$attrs, { class: "w-100" }), null, 16));
2665
2714
  };
2666
2715
  }
2667
2716
  });
2668
- function ye(e, t, n, a) {
2669
- const l = t.flatMap((o) => o.file);
2670
- return t = t.map((o) => ({ ...o, status: o.status == "Duplicate" ? "Not Uploaded" : o.status })), e.forEach((o) => {
2671
- const i = l.findIndex((f) => f.name === o.name);
2717
+ function fe(e, t, l, a) {
2718
+ const o = t.flatMap((n) => n.file);
2719
+ return t = t.map((n) => ({ ...n, status: n.status == "Duplicate" ? "Not Uploaded" : n.status })), e.forEach((n) => {
2720
+ const i = o.findIndex((y) => y.name === n.name);
2672
2721
  let d = "Not Uploaded";
2673
- i === -1 ? ((!n.includes(o.type) || !(o.size <= a)) && (d = n.includes(o.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
2674
- file: o,
2722
+ i === -1 ? ((!l.includes(n.type) || !(n.size <= a)) && (d = l.includes(n.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
2723
+ file: n,
2675
2724
  status: d,
2676
2725
  blobFileName: null
2677
2726
  })) : t[i].status = "Duplicate";
@@ -2680,25 +2729,25 @@ function ye(e, t, n, a) {
2680
2729
  async function ua(e, t) {
2681
2730
  if (e === "Uploaded" && t !== null)
2682
2731
  try {
2683
- await new ce(t).delete();
2684
- } catch (n) {
2685
- if (n !== "BlobNotFound") {
2732
+ await new ve(t).delete();
2733
+ } catch (l) {
2734
+ if (l !== "BlobNotFound") {
2686
2735
  e = "DeleteFileFailed";
2687
2736
  return;
2688
2737
  }
2689
2738
  }
2690
2739
  }
2691
- function ie(e, t = !0, n = 1) {
2740
+ function ue(e, t = !0, l = 1) {
2692
2741
  const a = t ? 1e3 : 1024;
2693
2742
  if (Math.abs(e) < a)
2694
2743
  return e + " B";
2695
- const l = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
2696
- let o = -1;
2697
- const i = 10 ** n;
2744
+ const o = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
2745
+ let n = -1;
2746
+ const i = 10 ** l;
2698
2747
  do
2699
- e /= a, ++o;
2700
- while (Math.round(Math.abs(e) * i) / i >= a && o < l.length - 1);
2701
- return e.toFixed(n) + " " + l[o];
2748
+ e /= a, ++n;
2749
+ while (Math.round(Math.abs(e) * i) / i >= a && n < o.length - 1);
2750
+ return e.toFixed(l) + " " + o[n];
2702
2751
  }
2703
2752
  function ca(e) {
2704
2753
  return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
@@ -2706,9 +2755,9 @@ function ca(e) {
2706
2755
  function ma(e) {
2707
2756
  return URL.createObjectURL(e);
2708
2757
  }
2709
- const pa = { class: "d-flex justify-content-between" }, ya = ["accept", "disabled", "multiple"], va = /* @__PURE__ */ F({
2758
+ const pa = { class: "d-flex justify-content-between" }, va = ["accept", "disabled", "multiple"], ya = /* @__PURE__ */ F({
2710
2759
  __name: "UploadButton",
2711
- props: /* @__PURE__ */ q({
2760
+ props: /* @__PURE__ */ H({
2712
2761
  acceptedFileTypes: {},
2713
2762
  maxFileInput: {},
2714
2763
  showDragDropArea: { type: Boolean }
@@ -2718,42 +2767,42 @@ const pa = { class: "d-flex justify-content-between" }, ya = ["accept", "disable
2718
2767
  }),
2719
2768
  emits: ["update:modelValue"],
2720
2769
  setup(e) {
2721
- const t = R(e, "modelValue"), n = x(() => e.maxFileInput <= t.value.length), a = (l) => {
2722
- t.value = ye(l, t.value, e.acceptedFileTypes, e.maxFileInput);
2770
+ const t = E(e, "modelValue"), l = w(() => e.maxFileInput <= t.value.length), a = (o) => {
2771
+ t.value = fe(o, t.value, e.acceptedFileTypes, e.maxFileInput);
2723
2772
  };
2724
- return (l, o) => (s(), p("div", pa, [
2725
- k(l.$slots, "message"),
2726
- m("div", null, [
2727
- m("input", {
2773
+ return (o, n) => (s(), v("div", pa, [
2774
+ _(o.$slots, "message"),
2775
+ u("div", null, [
2776
+ u("input", {
2728
2777
  id: "file-input",
2729
2778
  type: "file",
2730
2779
  class: "d-none",
2731
- accept: l.acceptedFileTypes.join(", "),
2732
- disabled: n.value,
2733
- multiple: l.maxFileInput > 1,
2734
- onInput: o[0] || (o[0] = (i) => a([...i.target.files]))
2735
- }, null, 40, ya),
2736
- m("label", {
2737
- class: _([{ disabled: n.value }, "btn btn-primary"]),
2780
+ accept: o.acceptedFileTypes.join(", "),
2781
+ disabled: l.value,
2782
+ multiple: o.maxFileInput > 1,
2783
+ onInput: n[0] || (n[0] = (i) => a([...i.target.files]))
2784
+ }, null, 40, va),
2785
+ u("label", {
2786
+ class: B([{ disabled: l.value }, "btn btn-primary"]),
2738
2787
  id: "file-input-button",
2739
2788
  for: "file-input"
2740
2789
  }, [
2741
- k(l.$slots, "button-content", {}, () => [
2742
- v(u(C), {
2790
+ _(o.$slots, "button-content", {}, () => [
2791
+ b(c(T), {
2743
2792
  icon: "bi:upload",
2744
2793
  class: "me-2",
2745
2794
  height: "20px",
2746
2795
  width: "20px"
2747
2796
  }),
2748
- P(" Browse your computer ")
2797
+ z(" Browse your computer ")
2749
2798
  ])
2750
2799
  ], 2)
2751
2800
  ]),
2752
- l.showDragDropArea ? (s(), p("div", {
2801
+ o.showDragDropArea ? (s(), v("div", {
2753
2802
  class: "ms-auto",
2754
- key: l.acceptedFileTypes.length,
2803
+ key: o.acceptedFileTypes.length,
2755
2804
  id: "accepted-file-types"
2756
- }, "Accepted File Types: " + h(l.acceptedFileTypes.map((i) => i.split("/").pop()).join(", ")), 1)) : B("", !0)
2805
+ }, "Accepted File Types: " + h(o.acceptedFileTypes.map((i) => i.split("/").pop()).join(", ")), 1)) : C("", !0)
2757
2806
  ]));
2758
2807
  }
2759
2808
  }), ba = {
@@ -2765,7 +2814,7 @@ const pa = { class: "d-flex justify-content-between" }, ya = ["accept", "disable
2765
2814
  class: "d-flex flex-column"
2766
2815
  }, ga = /* @__PURE__ */ F({
2767
2816
  __name: "DragDropArea",
2768
- props: /* @__PURE__ */ q({
2817
+ props: /* @__PURE__ */ H({
2769
2818
  maxFileInput: {},
2770
2819
  maxFileSize: {},
2771
2820
  acceptedFileTypes: {}
@@ -2775,26 +2824,26 @@ const pa = { class: "d-flex justify-content-between" }, ya = ["accept", "disable
2775
2824
  }),
2776
2825
  emits: ["update:modelValue"],
2777
2826
  setup(e) {
2778
- const t = R(e, "modelValue"), n = M(!1), a = x(() => e.maxFileInput <= t.value.length), l = (o) => {
2779
- n.value = !1, o.dataTransfer.files.length > e.maxFileInput || a.value ? o.preventDefault() : t.value = ye([...o.dataTransfer.files], t.value, e.acceptedFileTypes, e.maxFileSize);
2827
+ const t = E(e, "modelValue"), l = M(!1), a = w(() => e.maxFileInput <= t.value.length), o = (n) => {
2828
+ l.value = !1, n.dataTransfer.files.length > e.maxFileInput || a.value ? n.preventDefault() : t.value = fe([...n.dataTransfer.files], t.value, e.acceptedFileTypes, e.maxFileSize);
2780
2829
  };
2781
- return (o, i) => (s(), p("div", {
2830
+ return (n, i) => (s(), v("div", {
2782
2831
  id: "drag-drop-area",
2783
- class: _(`${n.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
2784
- onDragleave: i[0] || (i[0] = G((d) => n.value = !1, ["prevent"])),
2785
- onDragover: i[1] || (i[1] = G((d) => n.value = !0, ["prevent"])),
2786
- onDrop: G(l, ["prevent"])
2832
+ class: B(`${l.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
2833
+ onDragleave: i[0] || (i[0] = G((d) => l.value = !1, ["prevent"])),
2834
+ onDragover: i[1] || (i[1] = G((d) => l.value = !0, ["prevent"])),
2835
+ onDrop: G(o, ["prevent"])
2787
2836
  }, [
2788
- t.value.length === 0 ? (s(), p("div", ba, [
2789
- v(u(C), {
2837
+ t.value.length === 0 ? (s(), v("div", ba, [
2838
+ b(c(T), {
2790
2839
  icon: "bi:upload",
2791
2840
  class: "me-2",
2792
2841
  height: "20px",
2793
2842
  width: "20px"
2794
2843
  }),
2795
- P(" Drag and drop files here ")
2796
- ])) : (s(), p("div", fa, [
2797
- k(o.$slots, "default")
2844
+ z(" Drag and drop files here ")
2845
+ ])) : (s(), v("div", fa, [
2846
+ _(n.$slots, "default")
2798
2847
  ]))
2799
2848
  ], 34));
2800
2849
  }
@@ -2807,12 +2856,12 @@ const pa = { class: "d-flex justify-content-between" }, ya = ["accept", "disable
2807
2856
  uploadStatus: {}
2808
2857
  },
2809
2858
  setup(e) {
2810
- const t = x(() => e.uploadStatus === "Failed" || e.uploadStatus === "InvalidFileType" || e.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), n = x(() => {
2859
+ const t = w(() => e.uploadStatus === "Failed" || e.uploadStatus === "InvalidFileType" || e.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), l = w(() => {
2811
2860
  switch (e.uploadStatus) {
2812
2861
  case "InvalidFileType":
2813
2862
  return "Upload Failed: File type is not accepted.";
2814
2863
  case "InvalidFileSize":
2815
- return `Upload Failed: File size exceeds the ${ie(e.maxFileSize)} limit.`;
2864
+ return `Upload Failed: File size exceeds the ${ue(e.maxFileSize)} limit.`;
2816
2865
  case "Aborted":
2817
2866
  return "Upload Failed: User cancelled.";
2818
2867
  case "DeleteFileFailed":
@@ -2823,43 +2872,43 @@ const pa = { class: "d-flex justify-content-between" }, ya = ["accept", "disable
2823
2872
  return "Upload Failed: Connection error, please try again.";
2824
2873
  }
2825
2874
  });
2826
- return (a, l) => (s(), p("div", ha, [
2827
- a.uploadStatus === "Uploading" ? (s(), w(Yt, {
2875
+ return (a, o) => (s(), v("div", ha, [
2876
+ a.uploadStatus === "Uploading" ? (s(), k(Yt, {
2828
2877
  key: 0,
2829
2878
  pixelWidth: 200,
2830
2879
  animate: "",
2831
2880
  striped: ""
2832
2881
  }, {
2833
- default: b(() => [
2834
- P(h((a.bytesUploaded / a.fileSize * 100).toFixed(0)) + "%", 1)
2882
+ default: g(() => [
2883
+ z(h((a.bytesUploaded / a.fileSize * 100).toFixed(0)) + "%", 1)
2835
2884
  ]),
2836
2885
  _: 1
2837
- })) : B("", !0),
2838
- a.uploadStatus !== "Uploading" && a.uploadStatus !== "Not Uploaded" && a.uploadStatus !== "Uploaded" && a.uploadStatus !== "Preparing" ? (s(), w(ae, {
2886
+ })) : C("", !0),
2887
+ a.uploadStatus !== "Uploading" && a.uploadStatus !== "Not Uploaded" && a.uploadStatus !== "Uploaded" && a.uploadStatus !== "Preparing" ? (s(), k(ne, {
2839
2888
  key: 1,
2840
2889
  id: "upload-status-alert",
2841
2890
  severity: t.value,
2842
2891
  class: "mb-0 w-75 ms-auto"
2843
2892
  }, {
2844
- default: b(() => [
2845
- P(h(n.value), 1)
2893
+ default: g(() => [
2894
+ z(h(l.value), 1)
2846
2895
  ]),
2847
2896
  _: 1
2848
- }, 8, ["severity"])) : B("", !0)
2897
+ }, 8, ["severity"])) : C("", !0)
2849
2898
  ]));
2850
2899
  }
2851
- }), xa = ["data-cy"], ka = { class: "ms-3 d-flex flex-column" }, $a = {
2900
+ }), xa = ["data-cy"], ka = { class: "ms-3 d-flex flex-column" }, _a = {
2852
2901
  key: 1,
2853
2902
  id: "file-name"
2854
- }, _a = {
2903
+ }, $a = {
2855
2904
  class: "text-black-50",
2856
2905
  id: "file-type"
2857
- }, Fa = {
2906
+ }, Ba = {
2858
2907
  class: "text-black-50",
2859
2908
  id: "file-size"
2860
- }, Ba = { class: "ms-auto my-auto d-flex" }, Sa = /* @__PURE__ */ F({
2909
+ }, Fa = { class: "ms-auto my-auto d-flex" }, Sa = /* @__PURE__ */ F({
2861
2910
  __name: "FileInfo",
2862
- props: /* @__PURE__ */ q({
2911
+ props: /* @__PURE__ */ H({
2863
2912
  editableFileName: { type: Boolean },
2864
2913
  acceptedFileTypes: {},
2865
2914
  maxFileSize: {},
@@ -2874,57 +2923,57 @@ const pa = { class: "d-flex justify-content-between" }, ya = ["accept", "disable
2874
2923
  uploadStatus: { required: !0 },
2875
2924
  uploadStatusModifiers: {}
2876
2925
  }),
2877
- emits: /* @__PURE__ */ q(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
2926
+ emits: /* @__PURE__ */ H(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
2878
2927
  setup(e, { emit: t }) {
2879
- const n = R(e, "file"), a = R(e, "blobFileName"), l = R(e, "uploadStatus"), o = t, i = M(n.value.name), d = M(""), f = M(0), r = M(), g = x(() => e.acceptedFileTypes.includes(n.value.type)), y = x(() => n.value.size <= e.maxFileSize), c = () => {
2880
- n.value = new File([n.value], i.value, { type: n.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() });
2928
+ const l = E(e, "file"), a = E(e, "blobFileName"), o = E(e, "uploadStatus"), n = t, i = M(l.value.name), d = M(""), y = M(0), r = M(), m = w(() => e.acceptedFileTypes.includes(l.value.type)), p = w(() => l.value.size <= e.maxFileSize), x = () => {
2929
+ l.value = new File([l.value], i.value, { type: l.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() });
2881
2930
  }, $ = async () => {
2882
- if (!g.value || !y.value) {
2883
- l.value = g.value ? "InvalidFileSize" : "InvalidFileType";
2931
+ if (!m.value || !p.value) {
2932
+ o.value = m.value ? "InvalidFileSize" : "InvalidFileType";
2884
2933
  return;
2885
2934
  }
2886
- l.value = "Preparing", r.value = new AbortController();
2887
- const [T, I] = await e.getFileUrlAction(n.value.name);
2888
- if (!T) {
2889
- l.value = "Failed";
2935
+ o.value = "Preparing", r.value = new AbortController();
2936
+ const [S, O] = await e.getFileUrlAction(l.value.name);
2937
+ if (!S) {
2938
+ o.value = "Failed";
2890
2939
  return;
2891
2940
  }
2892
2941
  try {
2893
- l.value = "Uploading";
2894
- const z = new ce(T), N = {
2942
+ o.value = "Uploading";
2943
+ const f = new ve(S), I = {
2895
2944
  abortSignal: r.value.signal,
2896
- onProgress: (le) => f.value = le.loadedBytes,
2945
+ onProgress: (Y) => y.value = Y.loadedBytes,
2897
2946
  tags: { temp: "true" }
2898
2947
  };
2899
- await z.uploadData(n.value, N), d.value = T, l.value = "Uploaded", a.value = I;
2900
- } catch (z) {
2901
- if (z.name === "AbortError") {
2902
- l.value = "Aborted";
2948
+ await f.uploadData(l.value, I), d.value = S, o.value = "Uploaded", a.value = O;
2949
+ } catch (f) {
2950
+ if (f.name === "AbortError") {
2951
+ o.value = "Aborted";
2903
2952
  return;
2904
2953
  }
2905
- l.value = "Failed";
2954
+ o.value = "Failed";
2906
2955
  }
2907
- }, V = async () => {
2908
- await ua(l.value, d.value), o("deleted", n.value);
2956
+ }, P = async () => {
2957
+ await ua(o.value, d.value), n("deleted", l.value);
2909
2958
  };
2910
- return oe(() => {
2959
+ return ae(() => {
2911
2960
  e.autoUploadToBlob && $();
2912
- }), (T, I) => {
2913
- const z = E;
2914
- return s(), p("div", {
2961
+ }), (S, O) => {
2962
+ const f = R;
2963
+ return s(), v("div", {
2915
2964
  class: "py-4 px-3 d-flex",
2916
- "data-cy": `file-info-${n.value.name}`
2965
+ "data-cy": `file-info-${l.value.name}`
2917
2966
  }, [
2918
- m("div", null, [
2919
- u(ca)(n.value.type) ? (s(), w(u(De), {
2967
+ u("div", null, [
2968
+ c(ca)(l.value.type) ? (s(), k(c(De), {
2920
2969
  key: 0,
2921
2970
  id: "thumbnail-image",
2922
2971
  "image-class": "image-file-thumbnail border",
2923
- src: u(ma)(n.value),
2924
- alt: n.value.name,
2972
+ src: c(ma)(l.value),
2973
+ alt: l.value.name,
2925
2974
  width: "75px",
2926
2975
  preview: ""
2927
- }, null, 8, ["src", "alt"])) : (s(), w(u(C), {
2976
+ }, null, 8, ["src", "alt"])) : (s(), k(c(T), {
2928
2977
  key: 1,
2929
2978
  id: "file-earmark",
2930
2979
  icon: "bi:file-earmark",
@@ -2932,58 +2981,58 @@ const pa = { class: "d-flex justify-content-between" }, ya = ["accept", "disable
2932
2981
  width: "75px"
2933
2982
  }))
2934
2983
  ]),
2935
- m("div", ka, [
2936
- m("div", null, [
2937
- T.editableFileName ? (s(), w(xt, {
2984
+ u("div", ka, [
2985
+ u("div", null, [
2986
+ S.editableFileName ? (s(), k(xt, {
2938
2987
  key: 0,
2939
2988
  id: "edit-file-name",
2940
2989
  modelValue: i.value,
2941
- "onUpdate:modelValue": I[0] || (I[0] = (N) => i.value = N),
2942
- rules: T.customFileNameRules,
2943
- name: n.value.name,
2944
- "complete-action": c
2945
- }, null, 8, ["modelValue", "rules", "name"])) : (s(), p("span", $a, h(n.value.name), 1))
2990
+ "onUpdate:modelValue": O[0] || (O[0] = (I) => i.value = I),
2991
+ rules: S.customFileNameRules,
2992
+ name: l.value.name,
2993
+ "complete-action": x
2994
+ }, null, 8, ["modelValue", "rules", "name"])) : (s(), v("span", _a, h(l.value.name), 1))
2946
2995
  ]),
2947
- m("span", _a, "File type: " + h(n.value.type.split("/").pop()), 1),
2948
- m("span", Fa, "File size: " + h(u(ie)(n.value.size)), 1)
2996
+ u("span", $a, "File type: " + h(l.value.type.split("/").pop()), 1),
2997
+ u("span", Ba, "File size: " + h(c(ue)(l.value.size)), 1)
2949
2998
  ]),
2950
- m("div", Ba, [
2951
- (s(), w(wa, {
2952
- key: l.value,
2953
- "file-size": n.value.size,
2954
- "upload-status": l.value,
2955
- "bytes-uploaded": f.value,
2956
- "max-file-size": T.maxFileSize
2999
+ u("div", Fa, [
3000
+ (s(), k(wa, {
3001
+ key: o.value,
3002
+ "file-size": l.value.size,
3003
+ "upload-status": o.value,
3004
+ "bytes-uploaded": y.value,
3005
+ "max-file-size": S.maxFileSize
2957
3006
  }, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
2958
- l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (s(), w(z, {
3007
+ o.value === "Not Uploaded" || o.value === "Failed" || o.value === "Duplicate" || o.value === "Aborted" ? (s(), k(f, {
2959
3008
  key: 0,
2960
3009
  link: "",
2961
3010
  onClick: $
2962
3011
  }, {
2963
- default: b(() => [
2964
- v(u(C), {
2965
- icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
3012
+ default: g(() => [
3013
+ b(c(T), {
3014
+ icon: o.value === "Not Uploaded" || o.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
2966
3015
  }, null, 8, ["icon"])
2967
3016
  ]),
2968
3017
  _: 1
2969
- })) : B("", !0),
2970
- l.value === "Uploading" ? (s(), w(z, {
3018
+ })) : C("", !0),
3019
+ o.value === "Uploading" ? (s(), k(f, {
2971
3020
  key: 1,
2972
3021
  link: "",
2973
- onClick: I[1] || (I[1] = (N) => r.value.value.abort())
3022
+ onClick: O[1] || (O[1] = (I) => r.value.value.abort())
2974
3023
  }, {
2975
- default: b(() => [
2976
- v(u(C), { icon: "bi:x-circle-fill" })
3024
+ default: g(() => [
3025
+ b(c(T), { icon: "bi:x-circle-fill" })
2977
3026
  ]),
2978
3027
  _: 1
2979
- })) : (s(), w(z, {
3028
+ })) : (s(), k(f, {
2980
3029
  key: 2,
2981
3030
  link: "",
2982
- onClick: V,
3031
+ onClick: P,
2983
3032
  id: "delete-button"
2984
3033
  }, {
2985
- default: b(() => [
2986
- v(u(C), { icon: "bi:trash" })
3034
+ default: g(() => [
3035
+ b(c(T), { icon: "bi:trash" })
2987
3036
  ]),
2988
3037
  _: 1
2989
3038
  }))
@@ -2997,13 +3046,13 @@ const pa = { class: "d-flex justify-content-between" }, ya = ["accept", "disable
2997
3046
  maxFileSize: {}
2998
3047
  },
2999
3048
  setup(e) {
3000
- return (t, n) => (s(), p("div", Ca, [
3001
- m("div", Va, "Max file size: " + h(u(ie)(t.maxFileSize)), 1)
3049
+ return (t, l) => (s(), v("div", Ca, [
3050
+ u("div", Va, "Max file size: " + h(c(ue)(t.maxFileSize)), 1)
3002
3051
  ]));
3003
3052
  }
3004
- }), Ma = { "data-cy": "file-uploader" }, Pa = { key: 0 }, kl = /* @__PURE__ */ F({
3053
+ }), Pa = { "data-cy": "file-uploader" }, Ma = { key: 0 }, kl = /* @__PURE__ */ F({
3005
3054
  __name: "ForgeFileUploader",
3006
- props: /* @__PURE__ */ q({
3055
+ props: /* @__PURE__ */ H({
3007
3056
  acceptedFileTypes: {},
3008
3057
  maxFileSize: {},
3009
3058
  getFileUrlAction: {},
@@ -3018,60 +3067,60 @@ const pa = { class: "d-flex justify-content-between" }, ya = ["accept", "disable
3018
3067
  }),
3019
3068
  emits: ["update:modelValue"],
3020
3069
  setup(e) {
3021
- const t = R(e, "modelValue"), n = e, a = (l) => {
3022
- t.value = t.value.filter((o) => o.file != l);
3070
+ const t = E(e, "modelValue"), l = e, a = (o) => {
3071
+ t.value = t.value.filter((n) => n.file != o);
3023
3072
  };
3024
- return (l, o) => (s(), p("div", Ma, [
3025
- v(va, S(n, {
3073
+ return (o, n) => (s(), v("div", Pa, [
3074
+ b(ya, V(l, {
3026
3075
  modelValue: t.value,
3027
- "onUpdate:modelValue": o[0] || (o[0] = (i) => t.value = i)
3076
+ "onUpdate:modelValue": n[0] || (n[0] = (i) => t.value = i)
3028
3077
  }), null, 16, ["modelValue"]),
3029
- l.showDragDropArea ? (s(), p("div", Pa, [
3030
- v(ga, {
3031
- "max-file-input": n.maxFileInput,
3032
- "max-file-size": n.maxFileSize,
3033
- "accepted-file-types": n.acceptedFileTypes,
3078
+ o.showDragDropArea ? (s(), v("div", Ma, [
3079
+ b(ga, {
3080
+ "max-file-input": l.maxFileInput,
3081
+ "max-file-size": l.maxFileSize,
3082
+ "accepted-file-types": l.acceptedFileTypes,
3034
3083
  modelValue: t.value,
3035
- "onUpdate:modelValue": o[1] || (o[1] = (i) => t.value = i)
3084
+ "onUpdate:modelValue": n[1] || (n[1] = (i) => t.value = i)
3036
3085
  }, {
3037
- default: b(() => [
3038
- (s(!0), p(A, null, H(t.value, ({ file: i }, d) => (s(), p("span", null, [
3039
- (s(), w(Sa, S({
3086
+ default: g(() => [
3087
+ (s(!0), v(N, null, j(t.value, ({ file: i }, d) => (s(), v("span", null, [
3088
+ (s(), k(Sa, V({
3040
3089
  key: i.name,
3041
3090
  class: d === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
3042
3091
  file: t.value[d].file,
3043
- "onUpdate:file": (f) => t.value[d].file = f,
3092
+ "onUpdate:file": (y) => t.value[d].file = y,
3044
3093
  "blob-file-name": t.value[d].blobFileName,
3045
- "onUpdate:blobFileName": (f) => t.value[d].blobFileName = f,
3094
+ "onUpdate:blobFileName": (y) => t.value[d].blobFileName = y,
3046
3095
  "upload-status": t.value[d].status,
3047
- "onUpdate:uploadStatus": (f) => t.value[d].status = f,
3096
+ "onUpdate:uploadStatus": (y) => t.value[d].status = y,
3048
3097
  ref_for: !0
3049
- }, n, { onDeleted: a }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
3098
+ }, l, { onDeleted: a }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
3050
3099
  ]))), 256))
3051
3100
  ]),
3052
3101
  _: 1
3053
3102
  }, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
3054
- v(Ta, {
3055
- "max-file-size": n.maxFileSize
3103
+ b(Ta, {
3104
+ "max-file-size": l.maxFileSize
3056
3105
  }, null, 8, ["max-file-size"])
3057
- ])) : B("", !0)
3106
+ ])) : C("", !0)
3058
3107
  ]));
3059
3108
  }
3060
3109
  });
3061
3110
  export {
3062
3111
  sl as Bootstrap_PT,
3063
3112
  il as ForgeActionButton,
3064
- ae as ForgeAlert,
3065
- me as ForgeCheckbox,
3113
+ ne as ForgeAlert,
3114
+ ye as ForgeCheckbox,
3066
3115
  bl as ForgeChips,
3067
3116
  Et as ForgeDatepicker,
3068
3117
  kl as ForgeFileUploader,
3069
3118
  xl as ForgeFilterHeader,
3070
- yl as ForgeForm,
3071
- vl as ForgeFormField,
3119
+ vl as ForgeForm,
3120
+ yl as ForgeFormField,
3072
3121
  xt as ForgeInlineEditor,
3073
3122
  rl as ForgeLink,
3074
- pe as ForgeLoader,
3123
+ be as ForgeLoader,
3075
3124
  dl as ForgeModal,
3076
3125
  Ct as ForgeMultiSelect,
3077
3126
  cl as ForgeMultiSelectPreview,