@chase-shao/vue-component-lib 1.2.114 → 1.2.117

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.
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { ref as g, getCurrentInstance as me, inject as be, defineComponent as G, mergeModels as ce, useModel as Ce, resolveComponent as x, createBlock as H, openBlock as u, onMounted as ge, computed as z, withCtx as C, createElementBlock as v, Fragment as M, renderList as W, createVNode as F, nextTick as yt, createElementVNode as w, createTextVNode as ae, toDisplayString as q, normalizeStyle as et, normalizeClass as tt, createCommentVNode as se, useTemplateRef as Ie, resolveDynamicComponent as ze, renderSlot as ue, reactive as wt, onActivated as kt } from "vue";
1
+ import { ref as g, getCurrentInstance as ge, inject as we, defineComponent as G, mergeModels as ce, useModel as xe, resolveComponent as x, createBlock as H, openBlock as u, onMounted as _e, computed as M, withCtx as C, createElementBlock as v, Fragment as z, renderList as W, createVNode as F, nextTick as wt, createElementVNode as y, createTextVNode as ae, toDisplayString as q, normalizeStyle as et, normalizeClass as tt, createCommentVNode as se, useTemplateRef as Ie, resolveDynamicComponent as Me, renderSlot as ue, reactive as yt, onActivated as kt } from "vue";
2
2
  import St from "axios";
3
3
  import { defineStore as Ct } from "pinia";
4
4
  import { useRouter as xt } from "vue-router";
@@ -9,7 +9,7 @@ const ot = Ct("main", () => {
9
9
  token: t,
10
10
  error: o
11
11
  };
12
- }), Vt = async (t) => new Promise((o) => setTimeout(o, t)), At = async (t, o, n, e = void 0) => {
12
+ }), At = async (t) => new Promise((o) => setTimeout(o, t)), Vt = async (t, o, n, e = void 0) => {
13
13
  if (t[o] === void 0)
14
14
  try {
15
15
  t[o] = null, t[o] = await n() || e;
@@ -17,27 +17,27 @@ const ot = Ct("main", () => {
17
17
  console.error(a), t[o] = void 0;
18
18
  }
19
19
  for (; t[o] === null; )
20
- await Vt(100);
20
+ await At(100);
21
21
  return t[o];
22
- }, ke = (t) => {
22
+ }, Se = (t) => {
23
23
  const o = `0${t}`;
24
24
  return o.substring(o.length - 2);
25
- }, Ve = (t, o = "yyyy-MM-dd hh:mm:ss") => {
25
+ }, Ae = (t, o = "yyyy-MM-dd hh:mm:ss") => {
26
26
  if (!t || typeof t == "string" && t.length === 0)
27
27
  return "";
28
28
  try {
29
29
  const n = new Date(t), e = [
30
30
  ["yyyy", n.getFullYear()],
31
31
  ["yy", n.getFullYear().toString().substring(2)],
32
- ["MM", ke(n.getMonth() + 1)],
32
+ ["MM", Se(n.getMonth() + 1)],
33
33
  ["M", n.getMonth() + 1],
34
- ["dd", ke(n.getDate())],
34
+ ["dd", Se(n.getDate())],
35
35
  ["d", n.getDate()],
36
- ["hh", ke(n.getHours())],
36
+ ["hh", Se(n.getHours())],
37
37
  ["h", n.getHours()],
38
- ["mm", ke(n.getMinutes())],
38
+ ["mm", Se(n.getMinutes())],
39
39
  ["m", n.getMinutes()],
40
- ["ss", ke(n.getSeconds())],
40
+ ["ss", Se(n.getSeconds())],
41
41
  ["s", n.getSeconds()]
42
42
  ];
43
43
  for (const [a, r] of e)
@@ -64,17 +64,17 @@ let je = null;
64
64
  function Ft(t) {
65
65
  je = t ?? null;
66
66
  }
67
- function ve() {
68
- if (me()) {
69
- const o = be(nt, null);
67
+ function he() {
68
+ if (ge()) {
69
+ const o = we(nt, null);
70
70
  return o || xt();
71
71
  }
72
72
  if (je)
73
73
  return je;
74
74
  throw new Error("Router is unavailable. Pass router when installing the plugin before using useLibraryRouter outside setup().");
75
75
  }
76
- const rt = me();
77
- function Me(t) {
76
+ const rt = ge();
77
+ function ze(t) {
78
78
  if (!t || typeof t != "object") return !1;
79
79
  const o = Object.getPrototypeOf(t);
80
80
  return o === Object.prototype || o === null;
@@ -82,13 +82,13 @@ function Me(t) {
82
82
  function at(t) {
83
83
  return typeof t != "string" ? t : t.replace(/[&<>"']/g, "");
84
84
  }
85
- function Se(t) {
85
+ function Ce(t) {
86
86
  if (Array.isArray(t))
87
- return t.map(Se);
88
- if (Me(t)) {
87
+ return t.map(Ce);
88
+ if (ze(t)) {
89
89
  const o = {};
90
90
  return Object.keys(t).forEach((n) => {
91
- o[n] = Se(t[n]);
91
+ o[n] = Ce(t[n]);
92
92
  }), o;
93
93
  }
94
94
  return at(t);
@@ -96,19 +96,19 @@ function Se(t) {
96
96
  function Nt(t) {
97
97
  const o = (t.method || "").toLowerCase();
98
98
  if (o === "get")
99
- return t.params && (Me(t.params) || Array.isArray(t.params)) && (t.params = Se(t.params)), t;
99
+ return t.params && (ze(t.params) || Array.isArray(t.params)) && (t.params = Ce(t.params)), t;
100
100
  if (!["post", "put"].includes(o)) return t;
101
101
  const n = t.headers || {}, a = (n["Content-Type"] || n["content-type"] || "").includes("application/json");
102
- if (t.data && (a || Me(t.data) || Array.isArray(t.data)))
102
+ if (t.data && (a || ze(t.data) || Array.isArray(t.data)))
103
103
  if (typeof t.data == "string")
104
104
  try {
105
105
  const r = JSON.parse(t.data);
106
- t.data = JSON.stringify(Se(r));
106
+ t.data = JSON.stringify(Ce(r));
107
107
  } catch {
108
108
  return t;
109
109
  }
110
110
  else
111
- t.data = Se(t.data);
111
+ t.data = Ce(t.data);
112
112
  return t.data && typeof t.data == "string" && (t.data = at(t.data)), t;
113
113
  }
114
114
  function st() {
@@ -133,10 +133,10 @@ const Ut = (t) => {
133
133
  if (t.response) {
134
134
  if (t.response.status !== 400) {
135
135
  if (t.response.status === 401)
136
- ve().push("/error/401");
136
+ he().push("/error/401");
137
137
  else if (t.response.status >= 500) {
138
138
  const o = ot();
139
- o.error = t, ve().push("/error/500");
139
+ o.error = t, he().push("/error/500");
140
140
  }
141
141
  }
142
142
  } else t.request ? console.error("error with request", t.request) : console.error("Error", t.message);
@@ -154,7 +154,7 @@ function it() {
154
154
  }
155
155
  const lt = async () => {
156
156
  const { apiBase: t, appSecret: o } = st(), n = it(), e = ot();
157
- return await At(e, "token", async () => {
157
+ return await Vt(e, "token", async () => {
158
158
  const a = await n.post(`${t}/GenerateToken`, {
159
159
  appid: "bpm",
160
160
  appsecret: o
@@ -199,7 +199,7 @@ function ct(t, o, n) {
199
199
  throw new Error("Random bytes length must be >= 16");
200
200
  return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, Dt(e);
201
201
  }
202
- var X = /* @__PURE__ */ ((t) => (t[t.Submit = 0] = "Submit", t[t.Link = 1] = "Link", t[t.Button = 2] = "Button", t))(X || {}), he = /* @__PURE__ */ ((t) => (t[t.Create = 0] = "Create", t[t.Update = 1] = "Update", t[t.Details = 2] = "Details", t[t.List = 3] = "List", t[t.ReCreate = 5] = "ReCreate", t))(he || {});
202
+ var X = /* @__PURE__ */ ((t) => (t[t.Submit = 0] = "Submit", t[t.Link = 1] = "Link", t[t.Button = 2] = "Button", t))(X || {}), be = /* @__PURE__ */ ((t) => (t[t.Create = 0] = "Create", t[t.Update = 1] = "Update", t[t.Details = 2] = "Details", t[t.List = 3] = "List", t[t.ReCreate = 5] = "ReCreate", t))(be || {});
203
203
  function Ot(t, o, n) {
204
204
  const e = {
205
205
  pageType: "",
@@ -327,14 +327,14 @@ async function jt(t, o) {
327
327
  // ),
328
328
  };
329
329
  }
330
- async function Mt(t, o, n) {
330
+ async function zt(t, o, n) {
331
331
  return (await (await Y()).post(n, o, {
332
332
  params: {
333
333
  className: t
334
334
  }
335
335
  })).data;
336
336
  }
337
- async function zt(t, o, n, e) {
337
+ async function Mt(t, o, n, e) {
338
338
  const a = await Y(), r = dt(e, o);
339
339
  return (await a.put(r, n))?.data;
340
340
  }
@@ -433,7 +433,7 @@ const ye = (t, o) => {
433
433
  }),
434
434
  emits: /* @__PURE__ */ ce(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
435
435
  setup(t, { expose: o, emit: n }) {
436
- const e = t, a = n, r = Ce(t, "modelValue"), s = (d) => ye(e.validations, d), l = (d) => {
436
+ const e = t, a = n, r = xe(t, "modelValue"), s = (d) => ye(e.validations, d), l = (d) => {
437
437
  a("input", d);
438
438
  }, c = (d) => {
439
439
  const _ = s(d);
@@ -483,8 +483,8 @@ const Ye = /* @__PURE__ */ Z(ao, [["render", so], ["__file", "InputText.vue"]]),
483
483
  }),
484
484
  emits: /* @__PURE__ */ ce(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
485
485
  setup(t, { expose: o, emit: n }) {
486
- const e = t, a = n, r = Ce(t, "modelValue"), s = g(e.config.maxLength ?? 100), l = g(1);
487
- ge(() => {
486
+ const e = t, a = n, r = xe(t, "modelValue"), s = g(e.config.maxLength ?? 100), l = g(1);
487
+ _e(() => {
488
488
  e.validations && e.validations.forEach((h) => {
489
489
  h.ruleName === "Max" && (s.value = h.ruleParameter), h.ruleName === "Min" && (l.value = h.ruleParameter);
490
490
  });
@@ -492,8 +492,8 @@ const Ye = /* @__PURE__ */ Z(ao, [["render", so], ["__file", "InputText.vue"]]),
492
492
  const c = (h) => ye(e.validations, h), i = (h) => {
493
493
  a("input", h);
494
494
  }, d = (h) => {
495
- const y = c(h);
496
- a("error", y.res ? "" : y.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((f) => {
495
+ const w = c(h);
496
+ a("error", w.res ? "" : w.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((f) => {
497
497
  f.event === "change" && a(f.event, f.handlerName, h);
498
498
  });
499
499
  };
@@ -535,34 +535,34 @@ const co = /* @__PURE__ */ Z(io, [["render", lo], ["__file", "InputNumber.vue"]]
535
535
  }),
536
536
  emits: /* @__PURE__ */ ce(["update:modelValue", "change"], ["update:modelValue"]),
537
537
  setup(t, { expose: o, emit: n }) {
538
- const e = t, a = n, r = g(!1), s = g(e.config.options ?? []), l = Ce(t, "modelValue"), c = (y) => ye(e.validations, y), i = z(() => {
539
- const y = {};
538
+ const e = t, a = n, r = g(!1), s = g(e.config.options ?? []), l = xe(t, "modelValue"), c = (w) => ye(e.validations, w), i = M(() => {
539
+ const w = {};
540
540
  return e.triggers && e.triggers.length > 0 && e.triggers.forEach((f) => {
541
- y[f.event] = (m) => {
541
+ w[f.event] = (m) => {
542
542
  a(f.event, f.handlerName, m);
543
543
  const k = c(m);
544
544
  a("error", k.res ? "" : k.errorMessages);
545
545
  };
546
- }), y;
546
+ }), w;
547
547
  }), d = async () => {
548
548
  if (e.config.dataSourceProvider) {
549
549
  s.value = await Kt(e.config.dataSourceProvider);
550
- const y = e.modelValue;
551
- y != null && y !== "" && (s.value.some((m) => m.value === y) || a("update:modelValue", ""));
550
+ const w = e.modelValue;
551
+ w != null && w !== "" && (s.value.some((m) => m.value === w) || a("update:modelValue", ""));
552
552
  }
553
553
  };
554
- ge(d);
555
- const _ = (y) => {
556
- a("update:modelValue", y);
557
- const f = c(y);
554
+ _e(d);
555
+ const _ = (w) => {
556
+ a("update:modelValue", w);
557
+ const f = c(w);
558
558
  a("error", f.res ? "" : f.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((m) => {
559
- m.event === "change" && a(m.event, m.handlerName, y);
559
+ m.event === "change" && a(m.event, m.handlerName, w);
560
560
  });
561
561
  };
562
562
  o({
563
563
  validate() {
564
- const y = c(e.modelValue);
565
- return a("error", y.res ? "" : y.errorMessages), y.res;
564
+ const w = c(e.modelValue);
565
+ return a("error", w.res ? "" : w.errorMessages), w.res;
566
566
  }
567
567
  });
568
568
  const h = { props: e, emits: a, loading: r, _options: s, model: l, validate: c, eventHandlers: i, loadOptions: d, changeHandler: _ };
@@ -582,7 +582,7 @@ function fo(t, o, n, e, a, r) {
582
582
  onChange: e.changeHandler
583
583
  }, {
584
584
  default: C(() => [
585
- (u(!0), v(M, null, W(e._options, (c) => (u(), H(s, {
585
+ (u(!0), v(z, null, W(e._options, (c) => (u(), H(s, {
586
586
  key: c.value,
587
587
  value: c.value,
588
588
  label: c.label
@@ -602,7 +602,7 @@ const Qe = /* @__PURE__ */ Z(uo, [["render", fo], ["__file", "SelectList.vue"]])
602
602
  const e = t, a = n, r = g(e.config.options ?? []), s = (i) => {
603
603
  a("update:modelValue", i), a("change", i);
604
604
  };
605
- ge(async () => {
605
+ _e(async () => {
606
606
  if (e.config) {
607
607
  const i = e.config.dataSourceProvider;
608
608
  if (i) {
@@ -658,14 +658,14 @@ const go = /* @__PURE__ */ Z(po, [["render", mo], ["__file", "Cascader.vue"]]),
658
658
  function _(p, L, $) {
659
659
  return p.replace(/{WorkflowId}/g, L).replace(/{ClassName}/g, $);
660
660
  }
661
- const h = z(() => {
661
+ const h = M(() => {
662
662
  if (e.config.uploadURL) {
663
663
  const p = c + e.config.uploadURL;
664
664
  return _(p, d.value, e.className);
665
665
  }
666
666
  return "";
667
667
  });
668
- function y(p) {
668
+ function w(p) {
669
669
  if (!(typeof p != "number" || p <= 0))
670
670
  return p * Ze;
671
671
  }
@@ -673,7 +673,7 @@ const go = /* @__PURE__ */ Z(po, [["render", mo], ["__file", "Cascader.vue"]]),
673
673
  if (!(typeof p != "number" || p <= 0))
674
674
  return p;
675
675
  }
676
- const m = z(() => y(e.maxSize ?? e.config.maxSize)), k = z(() => f(e.minSize ?? e.config.minSize)), ee = z(() => m.value ? K(m.value) : "unlimited"), re = z(() => k.value ? K(k.value) : "0 B");
676
+ const m = M(() => w(e.maxSize ?? e.config.maxSize)), k = M(() => f(e.minSize ?? e.config.minSize)), ee = M(() => m.value ? K(m.value) : "unlimited"), re = M(() => k.value ? K(k.value) : "0 B");
677
677
  function K(p) {
678
678
  return p < 1024 ? `${p} B` : p < 1024 * 1024 ? `${Math.round(p / 1024)} KB` : p < 1024 * 1024 * 1024 ? `${Math.round(p / (1024 * 1024))} MB` : `${Math.round(p / (1024 * 1024 * 1024))} GB`;
679
679
  }
@@ -686,7 +686,7 @@ const go = /* @__PURE__ */ Z(po, [["render", mo], ["__file", "Cascader.vue"]]),
686
686
  };
687
687
  function le(p) {
688
688
  const { file: L, name: $ } = p, oe = $ ?? L.name;
689
- return new Promise((b, A) => {
689
+ return new Promise((b, V) => {
690
690
  Tt.confirm({
691
691
  title: "Confirm Delete",
692
692
  content: `Are you sure you want to delete ${oe}?`,
@@ -695,7 +695,7 @@ const go = /* @__PURE__ */ Z(po, [["render", mo], ["__file", "Cascader.vue"]]),
695
695
  return await e.config.removeFile(p.uid), b(!0);
696
696
  b(!0);
697
697
  },
698
- onCancel: () => A("cancel")
698
+ onCancel: () => V("cancel")
699
699
  });
700
700
  });
701
701
  }
@@ -703,33 +703,33 @@ const go = /* @__PURE__ */ Z(po, [["render", mo], ["__file", "Cascader.vue"]]),
703
703
  I.value && (I.value(p), I.value = null, T.value = null);
704
704
  }, S = (p) => {
705
705
  T.value && (T.value(p), I.value = null, T.value = null);
706
- }, V = g([]), O = (p) => {
707
- V.value = p.filter((L) => L.status === "init");
706
+ }, A = g([]), O = (p) => {
707
+ A.value = p.filter((L) => L.status === "init");
708
708
  };
709
709
  o({
710
710
  submit(p) {
711
711
  return new Promise((L, $) => {
712
- i.value ? (e.config.uploadURL && (d.value = p), I.value = L, T.value = $, V.value.length ? lt().then((oe) => {
712
+ i.value ? (e.config.uploadURL && (d.value = p), I.value = L, T.value = $, A.value.length ? lt().then((oe) => {
713
713
  r.value = {
714
714
  Authorization: `Bearer ${oe}`
715
- }, yt(() => {
715
+ }, wt(() => {
716
716
  i.value?.submit();
717
717
  });
718
718
  }) : L(p)) : L(p);
719
719
  });
720
720
  },
721
721
  validate() {
722
- const p = e.config.files ?? [], L = [...V.value, ...p].length > 0 ? "hasFile" : "", $ = s(L);
722
+ const p = e.config.files ?? [], L = [...A.value, ...p].length > 0 ? "hasFile" : "", $ = s(L);
723
723
  return a("error", $.res ? "" : $.errorMessages), $.res;
724
724
  }
725
725
  });
726
- const D = { props: e, emits: a, headers: r, validate: s, config: l, ApiBase: c, uploadRef: i, id: d, replaceIdAndClassName: _, action: h, MB_SIZE: Ze, mbToBytes: y, normalizeBytes: f, maxFileSize: m, minFileSize: k, maxFileSizeText: ee, minFileSizeText: re, formatFileSize: K, onBeforeUpload: te, submit: ie, onBeforeRemove: le, uploadPromiseResolve: I, uploadPromiseReject: T, handleUploadSuccess: P, handleUploadError: S, readyFiles: V, onChange: O };
726
+ const D = { props: e, emits: a, headers: r, validate: s, config: l, ApiBase: c, uploadRef: i, id: d, replaceIdAndClassName: _, action: h, MB_SIZE: Ze, mbToBytes: w, normalizeBytes: f, maxFileSize: m, minFileSize: k, maxFileSizeText: ee, minFileSizeText: re, formatFileSize: K, onBeforeUpload: te, submit: ie, onBeforeRemove: le, uploadPromiseResolve: I, uploadPromiseReject: T, handleUploadSuccess: P, handleUploadError: S, readyFiles: A, onChange: O };
727
727
  return Object.defineProperty(D, "__isScriptSetup", { enumerable: !1, value: !0 }), D;
728
728
  }
729
729
  }), vo = { style: { "margin-top": "8px", color: "#86909c", "font-size": "12px" } };
730
730
  function ho(t, o, n, e, a, r) {
731
731
  const s = x("a-button"), l = x("a-upload");
732
- return u(), v(M, null, [
732
+ return u(), v(z, null, [
733
733
  F(l, {
734
734
  ref: "uploadRef",
735
735
  "default-file-list": e.props.config.files,
@@ -756,10 +756,10 @@ function ho(t, o, n, e, a, r) {
756
756
  ]),
757
757
  _: 1
758
758
  }, 8, ["default-file-list", "action", "limit", "headers"]),
759
- w("div", vo, " The maximum file size for uploads is " + q(e.maxFileSizeText) + ", and the minimum file size is greater than " + q(e.minFileSizeText) + ". ", 1)
759
+ y("div", vo, " The maximum file size for uploads is " + q(e.maxFileSizeText) + ", and the minimum file size is greater than " + q(e.minFileSizeText) + ". ", 1)
760
760
  ], 64);
761
761
  }
762
- const bo = /* @__PURE__ */ Z(_o, [["render", ho], ["__file", "FileUpload.vue"]]), yo = /* @__PURE__ */ G({
762
+ const bo = /* @__PURE__ */ Z(_o, [["render", ho], ["__file", "FileUpload.vue"]]), wo = /* @__PURE__ */ G({
763
763
  __name: "TextArea",
764
764
  props: {
765
765
  fieldKey: {},
@@ -789,7 +789,7 @@ const bo = /* @__PURE__ */ Z(_o, [["render", ho], ["__file", "FileUpload.vue"]])
789
789
  return Object.defineProperty(c, "__isScriptSetup", { enumerable: !1, value: !0 }), c;
790
790
  }
791
791
  });
792
- function wo(t, o, n, e, a, r) {
792
+ function yo(t, o, n, e, a, r) {
793
793
  const s = x("ATextarea");
794
794
  return u(), H(s, {
795
795
  "model-value": e.props.modelValue,
@@ -806,7 +806,7 @@ function wo(t, o, n, e, a, r) {
806
806
  onChange: e.changeHandler
807
807
  }, null, 8, ["model-value", "disabled", "max-length"]);
808
808
  }
809
- const ko = /* @__PURE__ */ Z(yo, [["render", wo], ["__file", "TextArea.vue"]]), So = /* @__PURE__ */ G({
809
+ const ko = /* @__PURE__ */ Z(wo, [["render", yo], ["__file", "TextArea.vue"]]), So = /* @__PURE__ */ G({
810
810
  __name: "CheckBox",
811
811
  props: /* @__PURE__ */ ce({
812
812
  fieldKey: {},
@@ -820,7 +820,7 @@ const ko = /* @__PURE__ */ Z(yo, [["render", wo], ["__file", "TextArea.vue"]]),
820
820
  }),
821
821
  emits: /* @__PURE__ */ ce(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
822
822
  setup(t, { expose: o, emit: n }) {
823
- const e = t, a = n, r = Ce(t, "modelValue"), s = (i) => ye(e.validations, i), l = (i) => {
823
+ const e = t, a = n, r = xe(t, "modelValue"), s = (i) => ye(e.validations, i), l = (i) => {
824
824
  const d = s(i);
825
825
  a("error", d.res ? "" : d.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((_) => {
826
826
  _.event === "change" && a(_.event, _.handlerName, i);
@@ -852,10 +852,10 @@ function Co(t, o, n, e, a, r) {
852
852
  __: [1]
853
853
  }, 8, ["modelValue", "disabled"]);
854
854
  }
855
- const xo = /* @__PURE__ */ Z(So, [["render", Co], ["__file", "CheckBox.vue"]]), To = Symbol("ArcoConfigProvider"), Vo = "arco", Ao = "$arco", ut = (t) => {
855
+ const xo = /* @__PURE__ */ Z(So, [["render", Co], ["__file", "CheckBox.vue"]]), To = Symbol("ArcoConfigProvider"), Ao = "arco", Vo = "$arco", ut = (t) => {
856
856
  var o, n, e;
857
- const a = me(), r = be(To, void 0);
858
- return `${(e = (n = r?.prefixCls) != null ? n : (o = a?.appContext.config.globalProperties[Ao]) == null ? void 0 : o.classPrefix) != null ? e : Vo}-${t}`;
857
+ const a = ge(), r = we(To, void 0);
858
+ return `${(e = (n = r?.prefixCls) != null ? n : (o = a?.appContext.config.globalProperties[Vo]) == null ? void 0 : o.classPrefix) != null ? e : Ao}-${t}`;
859
859
  }, Io = Object.prototype.toString;
860
860
  function ft(t) {
861
861
  return Io.call(t) === "[object Number]" && t === t;
@@ -892,7 +892,7 @@ const Po = G({
892
892
  click: (t) => !0
893
893
  },
894
894
  setup(t, { emit: o }) {
895
- const n = ut("icon"), e = z(() => [n, `${n}-question-circle`, { [`${n}-spin`]: t.spin }]), a = z(() => {
895
+ const n = ut("icon"), e = M(() => [n, `${n}-question-circle`, { [`${n}-spin`]: t.spin }]), a = M(() => {
896
896
  const s = {};
897
897
  return t.size && (s.fontSize = ft(t.size) ? `${t.size}px` : t.size), t.rotate && (s.transform = `rotate(${t.rotate}deg)`), s;
898
898
  });
@@ -918,8 +918,8 @@ function No(t, o, n, e, a, r) {
918
918
  "stroke-linejoin": t.strokeLinejoin,
919
919
  onClick: o[0] || (o[0] = (...s) => t.onClick && t.onClick(...s))
920
920
  }, o[1] || (o[1] = [
921
- w("path", { d: "M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z" }, null, -1),
922
- w("path", { d: "M24.006 31v4.008m0-6.008L24 28c0-3 3-4 4.78-6.402C30.558 19.195 28.288 15 23.987 15c-4.014 0-5.382 2.548-5.388 4.514v.465" }, null, -1)
921
+ y("path", { d: "M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z" }, null, -1),
922
+ y("path", { d: "M24.006 31v4.008m0-6.008L24 28c0-3 3-4 4.78-6.402C30.558 19.195 28.288 15 23.987 15c-4.014 0-5.382 2.548-5.388 4.514v.465" }, null, -1)
923
923
  ]), 14, Fo);
924
924
  }
925
925
  var He = /* @__PURE__ */ pt(Po, [["render", No]]);
@@ -956,7 +956,7 @@ const Ro = Object.assign(He, {
956
956
  click: (t) => !0
957
957
  },
958
958
  setup(t, { emit: o }) {
959
- const n = ut("icon"), e = z(() => [n, `${n}-download`, { [`${n}-spin`]: t.spin }]), a = z(() => {
959
+ const n = ut("icon"), e = M(() => [n, `${n}-download`, { [`${n}-spin`]: t.spin }]), a = M(() => {
960
960
  const s = {};
961
961
  return t.size && (s.fontSize = ft(t.size) ? `${t.size}px` : t.size), t.rotate && (s.transform = `rotate(${t.rotate}deg)`), s;
962
962
  });
@@ -982,7 +982,7 @@ function Lo(t, o, n, e, a, r) {
982
982
  "stroke-linejoin": t.strokeLinejoin,
983
983
  onClick: o[0] || (o[0] = (...s) => t.onClick && t.onClick(...s))
984
984
  }, o[1] || (o[1] = [
985
- w("path", { d: "m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6" }, null, -1)
985
+ y("path", { d: "m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6" }, null, -1)
986
986
  ]), 14, Do);
987
987
  }
988
988
  var Oe = /* @__PURE__ */ pt(Uo, [["render", Lo]]);
@@ -1000,7 +1000,7 @@ const Bo = Object.assign(Oe, {
1000
1000
  },
1001
1001
  setup(t, { expose: o }) {
1002
1002
  o();
1003
- const n = t, e = (l) => l.length > 0 && typeof l[0] != "string", a = z(() => e(n.outputText) ? [] : n.outputText), r = z(() => e(n.outputText) ? n.outputText : []), s = { props: n, isTreeArray: e, stringOutput: a, treeOutput: r, get IconQuestionCircle() {
1003
+ const n = t, e = (l) => l.length > 0 && typeof l[0] != "string", a = M(() => e(n.outputText) ? [] : n.outputText), r = M(() => e(n.outputText) ? n.outputText : []), s = { props: n, isTreeArray: e, stringOutput: a, treeOutput: r, get IconQuestionCircle() {
1004
1004
  return Ro;
1005
1005
  } };
1006
1006
  return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
@@ -1013,19 +1013,19 @@ function jo(t, o, n, e, a, r) {
1013
1013
  "background-color": "#7A00E6"
1014
1014
  }, {
1015
1015
  content: C(() => [
1016
- e.stringOutput.length ? (u(!0), v(M, { key: 0 }, W(e.stringOutput, (l) => (u(), v("p", { key: l }, q(l), 1))), 128)) : (u(!0), v(M, { key: 1 }, W(e.treeOutput, (l) => (u(), v("ul", {
1016
+ e.stringOutput.length ? (u(!0), v(z, { key: 0 }, W(e.stringOutput, (l) => (u(), v("p", { key: l }, q(l), 1))), 128)) : (u(!0), v(z, { key: 1 }, W(e.treeOutput, (l) => (u(), v("ul", {
1017
1017
  key: l.title,
1018
1018
  class: "list-unstyled"
1019
1019
  }, [
1020
- w("li", null, [
1021
- w("b", null, q(l.title), 1),
1022
- w("ul", Oo, [
1023
- (u(!0), v(M, null, W(l.items, (c) => (u(), v("li", {
1020
+ y("li", null, [
1021
+ y("b", null, q(l.title), 1),
1022
+ y("ul", Oo, [
1023
+ (u(!0), v(z, null, W(l.items, (c) => (u(), v("li", {
1024
1024
  key: c.title
1025
1025
  }, [
1026
- w("u", null, q(c.title), 1),
1027
- w("ul", $o, [
1028
- (u(!0), v(M, null, W(c.items, (i) => (u(), v("li", null, q(i), 1))), 256))
1026
+ y("u", null, q(c.title), 1),
1027
+ y("ul", $o, [
1028
+ (u(!0), v(z, null, W(c.items, (i) => (u(), v("li", null, q(i), 1))), 256))
1029
1029
  ])
1030
1030
  ]))), 128))
1031
1031
  ])
@@ -1038,7 +1038,7 @@ function jo(t, o, n, e, a, r) {
1038
1038
  _: 1
1039
1039
  })) : se("", !0);
1040
1040
  }
1041
- const mt = /* @__PURE__ */ Z(Ho, [["render", jo], ["__scopeId", "data-v-1d3893b1"], ["__file", "ToolTip.vue"]]), Mo = /* @__PURE__ */ G({
1041
+ const mt = /* @__PURE__ */ Z(Ho, [["render", jo], ["__scopeId", "data-v-1d3893b1"], ["__file", "ToolTip.vue"]]), zo = /* @__PURE__ */ G({
1042
1042
  __name: "index",
1043
1043
  props: /* @__PURE__ */ ce({
1044
1044
  config: {},
@@ -1054,7 +1054,7 @@ const mt = /* @__PURE__ */ Z(Ho, [["render", jo], ["__scopeId", "data-v-1d3893b1
1054
1054
  }),
1055
1055
  emits: /* @__PURE__ */ ce(["update:modelValue", "change", "error"], ["update:modelValue"]),
1056
1056
  setup(t, { expose: o, emit: n }) {
1057
- const e = t, a = n, r = Ce(t, "modelValue"), s = Ie("widgetRef"), l = z(() => {
1057
+ const e = t, a = n, r = xe(t, "modelValue"), s = Ie("widgetRef"), l = M(() => {
1058
1058
  switch (e.config?.widget?.widget) {
1059
1059
  case "TextBox":
1060
1060
  return Ye;
@@ -1100,10 +1100,10 @@ const mt = /* @__PURE__ */ Z(Ho, [["render", jo], ["__scopeId", "data-v-1d3893b1
1100
1100
  return e?.config?.widget?.title;
1101
1101
  }
1102
1102
  });
1103
- const y = { props: e, emits: a, model: r, widgetRef: s, curComp: l, errMsg: c, errHandler: i, changeHandler: d, isFileUpload: _, formatTitle: h, ToolTip: mt };
1104
- return Object.defineProperty(y, "__isScriptSetup", { enumerable: !1, value: !0 }), y;
1103
+ const w = { props: e, emits: a, model: r, widgetRef: s, curComp: l, errMsg: c, errHandler: i, changeHandler: d, isFileUpload: _, formatTitle: h, ToolTip: mt };
1104
+ return Object.defineProperty(w, "__isScriptSetup", { enumerable: !1, value: !0 }), w;
1105
1105
  }
1106
- }), zo = { class: "title" }, Eo = {
1106
+ }), Mo = { class: "title" }, Eo = {
1107
1107
  key: 0,
1108
1108
  class: "required"
1109
1109
  }, Ko = {
@@ -1112,7 +1112,7 @@ const mt = /* @__PURE__ */ Z(Ho, [["render", jo], ["__scopeId", "data-v-1d3893b1
1112
1112
  };
1113
1113
  function Wo(t, o, n, e, a, r) {
1114
1114
  return u(), v("div", null, [
1115
- w("div", zo, [
1115
+ y("div", Mo, [
1116
1116
  ae(q(e.formatTitle(e.props?.config?.widget?.title)) + " ", 1),
1117
1117
  e.props.required || e.props.config.validations.some((s) => s.ruleName === "Required") ? (u(), v("span", Eo, " * ")) : se("", !0),
1118
1118
  F(e.ToolTip, {
@@ -1120,8 +1120,8 @@ function Wo(t, o, n, e, a, r) {
1120
1120
  "output-text": e.props.config.widget?.outputText ?? []
1121
1121
  }, null, 8, ["is-visible", "output-text"])
1122
1122
  ]),
1123
- w("div", null, [
1124
- (u(), H(ze(e.curComp), {
1123
+ y("div", null, [
1124
+ (u(), H(Me(e.curComp), {
1125
1125
  ref: "widgetRef",
1126
1126
  modelValue: e.model,
1127
1127
  "onUpdate:modelValue": o[0] || (o[0] = (s) => e.model = s),
@@ -1137,7 +1137,7 @@ function Wo(t, o, n, e, a, r) {
1137
1137
  ])
1138
1138
  ]);
1139
1139
  }
1140
- const Pe = /* @__PURE__ */ Z(Mo, [["render", Wo], ["__scopeId", "data-v-67595df1"], ["__file", "index.vue"]]), qo = /* @__PURE__ */ G({
1140
+ const Pe = /* @__PURE__ */ Z(zo, [["render", Wo], ["__scopeId", "data-v-67595df1"], ["__file", "index.vue"]]), qo = /* @__PURE__ */ G({
1141
1141
  __name: "SubmitButton",
1142
1142
  props: {
1143
1143
  url: {},
@@ -1208,7 +1208,7 @@ const Qo = /* @__PURE__ */ Z(Jo, [["render", Yo], ["__file", "DetailLink.vue"]])
1208
1208
  function r(d, _) {
1209
1209
  a("click", e.config.widget, d, _, e.config.title);
1210
1210
  }
1211
- const s = z(() => {
1211
+ const s = M(() => {
1212
1212
  switch (e.config.location) {
1213
1213
  case "InOperation":
1214
1214
  return Xe;
@@ -1217,12 +1217,12 @@ const Qo = /* @__PURE__ */ Z(Jo, [["render", Yo], ["__file", "DetailLink.vue"]])
1217
1217
  default:
1218
1218
  return Xe;
1219
1219
  }
1220
- }), l = z(() => e.config.widget === X.Submit ? e.config.requestUrl ?? "" : e.config.widget === X.Link ? e.config.redirectUrl ?? "" : ""), c = z(() => e.config.redirectType ?? "Details"), i = { props: e, emits: a, clickHandler: r, curComp: s, curUrl: l, redirectType: c };
1220
+ }), l = M(() => e.config.widget === X.Submit ? e.config.requestUrl ?? "" : e.config.widget === X.Link ? e.config.redirectUrl ?? "" : ""), c = M(() => e.config.redirectType ?? "Details"), i = { props: e, emits: a, clickHandler: r, curComp: s, curUrl: l, redirectType: c };
1221
1221
  return Object.defineProperty(i, "__isScriptSetup", { enumerable: !1, value: !0 }), i;
1222
1222
  }
1223
1223
  });
1224
1224
  function Xo(t, o, n, e, a, r) {
1225
- return u(), H(ze(e.curComp), {
1225
+ return u(), H(Me(e.curComp), {
1226
1226
  url: e.curUrl,
1227
1227
  "redirect-type": e.redirectType,
1228
1228
  loading: n.loading,
@@ -1236,15 +1236,15 @@ function Xo(t, o, n, e, a, r) {
1236
1236
  }
1237
1237
  const Fe = /* @__PURE__ */ Z(Zo, [["render", Xo], ["__file", "index.vue"]]), gt = Symbol("library-triggers");
1238
1238
  function Ke() {
1239
- const t = be(gt, null);
1239
+ const t = we(gt, null);
1240
1240
  return t || {};
1241
1241
  }
1242
1242
  const en = Symbol("library-pinia"), _t = Symbol("library-bpmStore"), vt = Symbol("library-svrStore");
1243
1243
  function Ne() {
1244
- return be(_t, null);
1244
+ return we(_t, null);
1245
1245
  }
1246
1246
  function Re() {
1247
- return be(vt, null);
1247
+ return we(vt, null);
1248
1248
  }
1249
1249
  const tn = /* @__PURE__ */ G({
1250
1250
  __name: "TopBar",
@@ -1262,14 +1262,14 @@ const tn = /* @__PURE__ */ G({
1262
1262
  function cn(t, o, n, e, a, r) {
1263
1263
  const s = x("a-avatar"), l = x("a-popover");
1264
1264
  return u(), v("div", on, [
1265
- w("div", nn, [
1266
- w("div", rn, q(n.title), 1),
1267
- w("div", an, q(n.subTitle), 1)
1265
+ y("div", nn, [
1266
+ y("div", rn, q(n.title), 1),
1267
+ y("div", an, q(n.subTitle), 1)
1268
1268
  ]),
1269
- w("div", sn, [
1269
+ y("div", sn, [
1270
1270
  F(l, { trigger: "click" }, {
1271
1271
  content: C(() => [
1272
- w("div", ln, q(n.email), 1)
1272
+ y("div", ln, q(n.email), 1)
1273
1273
  ]),
1274
1274
  default: C(() => [
1275
1275
  F(s, {
@@ -1321,10 +1321,10 @@ class De {
1321
1321
  return this.opt = o, this;
1322
1322
  }
1323
1323
  build() {
1324
- return this.pageActionType ? this.opt.workflowId ? new Ae(this.pageActionType, this.className, this.store, this.opt) : new Ae(this.pageActionType, this.className, this.store) : this.opt.workflowId ? new Ae(he.ReCreate, this.className, this.store, this.opt) : new Ae(he.Create, this.className, this.store);
1324
+ return this.pageActionType ? this.opt.workflowId ? new Ve(this.pageActionType, this.className, this.store, this.opt) : new Ve(this.pageActionType, this.className, this.store) : this.opt.workflowId ? new Ve(be.ReCreate, this.className, this.store, this.opt) : new Ve(be.Create, this.className, this.store);
1325
1325
  }
1326
1326
  }
1327
- class Ae {
1327
+ class Ve {
1328
1328
  pageActionType;
1329
1329
  className;
1330
1330
  store;
@@ -1380,7 +1380,7 @@ const dn = /* @__PURE__ */ G({
1380
1380
  },
1381
1381
  setup(t, { expose: o }) {
1382
1382
  o();
1383
- const n = Ne(), e = Re(), a = ve(), r = Ke(), s = Ie("dataWidgets"), l = me(), c = t, i = g({
1383
+ const n = Ne(), e = Re(), a = he(), r = Ke(), s = Ie("dataWidgets"), l = ge(), c = t, i = g({
1384
1384
  pageType: "",
1385
1385
  fields: {},
1386
1386
  globalValidations: [],
@@ -1397,28 +1397,28 @@ const dn = /* @__PURE__ */ G({
1397
1397
  }
1398
1398
  }), d = g([]), _ = g({});
1399
1399
  function h(T) {
1400
- return T ? Object.entries(T).map(([S, V]) => ({
1400
+ return T ? Object.entries(T).map(([S, A]) => ({
1401
1401
  fieldKey: S,
1402
- ...V
1402
+ ...A
1403
1403
  })).filter((S) => S.widget && S.widget.widget !== "Hidden").filter((S) => !te.value.includes(S.fieldKey)) : [];
1404
1404
  }
1405
- function y(T) {
1406
- return T ? Object.entries(T).filter(([S, V]) => V.dependent).reduce(
1407
- (S, [V, O]) => (S[V] = O.dependent, S),
1405
+ function w(T) {
1406
+ return T ? Object.entries(T).filter(([S, A]) => A.dependent).reduce(
1407
+ (S, [A, O]) => (S[A] = O.dependent, S),
1408
1408
  {}
1409
1409
  ) : [];
1410
1410
  }
1411
- const f = z(() => i.value?.actions ? [...i.value.actions].reverse() : []), m = g({}), k = g(!1);
1412
- ge(async () => {
1411
+ const f = M(() => i.value?.actions ? [...i.value.actions].reverse() : []), m = g({}), k = g(!1);
1412
+ _e(async () => {
1413
1413
  k.value = !0;
1414
1414
  const T = new De().setWorkflowId(c.workflowId).setClassName(c.className).setStore({ svrStore: e, bpmStore: n }).build();
1415
1415
  i.value = await T.getPageData();
1416
1416
  const P = i.value.fields.requestType.modelValue;
1417
- r.Test?.({ fieldValue: P, hiddenFields: te, formData: m }), d.value = h(i.value.fields), _.value = y(i.value.fields);
1417
+ r.Test?.({ fieldValue: P, hiddenFields: te, formData: m }), d.value = h(i.value.fields), _.value = w(i.value.fields);
1418
1418
  for (const S in i.value.fields) {
1419
1419
  if (i.value.fields[S].widget?.widget === "File") {
1420
- const V = d.value.find((O) => O.fieldKey === S);
1421
- V && V.widget && (V.widget.files = []);
1420
+ const A = d.value.find((O) => O.fieldKey === S);
1421
+ A && A.widget && (A.widget.files = []);
1422
1422
  }
1423
1423
  m.value[S] = i.value.fields[S].modelValue;
1424
1424
  }
@@ -1427,7 +1427,7 @@ const dn = /* @__PURE__ */ G({
1427
1427
  function ee() {
1428
1428
  return e()?.userInfo?.email_address ?? "";
1429
1429
  }
1430
- async function re(T, P, S, V, O) {
1430
+ async function re(T, P, S, A, O) {
1431
1431
  switch (P) {
1432
1432
  case X.Submit:
1433
1433
  let D = !0;
@@ -1447,7 +1447,7 @@ const dn = /* @__PURE__ */ G({
1447
1447
  ..._.value
1448
1448
  };
1449
1449
  r.createPageBeforeSubmit?.(p);
1450
- const L = await Mt(
1450
+ const L = await zt(
1451
1451
  c.className,
1452
1452
  p,
1453
1453
  S
@@ -1470,10 +1470,10 @@ const dn = /* @__PURE__ */ G({
1470
1470
  case X.Link:
1471
1471
  try {
1472
1472
  await r[T.eventName || ""]?.(m.value, te), a.push({
1473
- name: V,
1473
+ name: A,
1474
1474
  params: { className: c.className }
1475
1475
  }), await r[`${T.eventName || ""}Success`]?.({
1476
- message: `Router to ${V} pushed`
1476
+ message: `Router to ${A} pushed`
1477
1477
  });
1478
1478
  } catch (p) {
1479
1479
  console.error("Error in link action trigger:", p);
@@ -1494,14 +1494,14 @@ const dn = /* @__PURE__ */ G({
1494
1494
  function ie(T, P) {
1495
1495
  r[T]?.({ fieldValue: P, hiddenFields: te, formData: m }), i.value && (d.value = h(i.value.fields));
1496
1496
  }
1497
- const le = z(() => We(d.value)), I = { bpmStore: n, svrStore: e, router: a, triggers: r, dataWidgetsRefs: s, instance: l, props: c, pageData: i, _fields: d, _dependent: _, genField: h, genDependentField: y, reversedActions: f, _data: m, loading: k, getApproverEmail: ee, clickHandler: re, newHiddenFields: K, hiddenFields: te, changeHandler: ie, groupedFields: le, DataWidgets: Pe, ActionButton: Fe, TopBar: Ue };
1497
+ const le = M(() => We(d.value)), I = { bpmStore: n, svrStore: e, router: a, triggers: r, dataWidgetsRefs: s, instance: l, props: c, pageData: i, _fields: d, _dependent: _, genField: h, genDependentField: w, reversedActions: f, _data: m, loading: k, getApproverEmail: ee, clickHandler: re, newHiddenFields: K, hiddenFields: te, changeHandler: ie, groupedFields: le, DataWidgets: Pe, ActionButton: Fe, TopBar: Ue };
1498
1498
  return Object.defineProperty(I, "__isScriptSetup", { enumerable: !1, value: !0 }), I;
1499
1499
  }
1500
1500
  }), un = { class: "page-container" }, fn = { class: "page-body" }, pn = { class: "form-card" }, mn = { class: "form-fields-vertical" }, gn = { class: "form-fields" }, _n = {
1501
1501
  key: 0,
1502
1502
  class: "form-content"
1503
1503
  }, vn = { class: "page-footer" }, hn = { class: "action-container" }, bn = { class: "action-buttons" };
1504
- function yn(t, o, n, e, a, r) {
1504
+ function wn(t, o, n, e, a, r) {
1505
1505
  const s = x("a-card"), l = x("a-spin");
1506
1506
  return u(), v("div", un, [
1507
1507
  F(e.TopBar, {
@@ -1509,22 +1509,22 @@ function yn(t, o, n, e, a, r) {
1509
1509
  subTitle: e.pageData.banner.subTitle,
1510
1510
  email: e.getApproverEmail()
1511
1511
  }, null, 8, ["title", "subTitle", "email"]),
1512
- w("div", fn, [
1512
+ y("div", fn, [
1513
1513
  F(l, {
1514
1514
  loading: e.loading,
1515
1515
  class: "form-container"
1516
1516
  }, {
1517
1517
  default: C(() => [
1518
- w("div", pn, [
1519
- w("div", mn, [
1520
- (u(!0), v(M, null, W(e.groupedFields, (c) => (u(), H(s, {
1518
+ y("div", pn, [
1519
+ y("div", mn, [
1520
+ (u(!0), v(z, null, W(e.groupedFields, (c) => (u(), H(s, {
1521
1521
  key: c.name,
1522
1522
  title: c.name,
1523
1523
  style: { "margin-bottom": "24px" }
1524
1524
  }, {
1525
1525
  default: C(() => [
1526
- w("div", gn, [
1527
- (u(!0), v(M, null, W(c.fields, (i) => (u(), H(e.DataWidgets, {
1526
+ y("div", gn, [
1527
+ (u(!0), v(z, null, W(c.fields, (i) => (u(), H(e.DataWidgets, {
1528
1528
  key: i.fieldKey,
1529
1529
  ref_for: !0,
1530
1530
  ref: "dataWidgets",
@@ -1549,11 +1549,11 @@ function yn(t, o, n, e, a, r) {
1549
1549
  _: 3
1550
1550
  }, 8, ["loading"])
1551
1551
  ]),
1552
- w("div", vn, [
1553
- w("div", hn, [
1552
+ y("div", vn, [
1553
+ y("div", hn, [
1554
1554
  ue(t.$slots, "action", {}, void 0, !0),
1555
- w("div", bn, [
1556
- (u(!0), v(M, null, W(e.reversedActions, (c) => (u(), H(e.ActionButton, {
1555
+ y("div", bn, [
1556
+ (u(!0), v(z, null, W(e.reversedActions, (c) => (u(), H(e.ActionButton, {
1557
1557
  key: c.title,
1558
1558
  loading: e.loading,
1559
1559
  config: c,
@@ -1565,7 +1565,7 @@ function yn(t, o, n, e, a, r) {
1565
1565
  ])
1566
1566
  ]);
1567
1567
  }
1568
- const wn = /* @__PURE__ */ Z(dn, [["render", yn], ["__scopeId", "data-v-31413447"], ["__file", "CreateView.vue"]]), kn = /* @__PURE__ */ G({
1568
+ const yn = /* @__PURE__ */ Z(dn, [["render", wn], ["__scopeId", "data-v-31413447"], ["__file", "CreateView.vue"]]), kn = /* @__PURE__ */ G({
1569
1569
  __name: "UpdateView",
1570
1570
  props: {
1571
1571
  className: {},
@@ -1573,7 +1573,7 @@ const wn = /* @__PURE__ */ Z(dn, [["render", yn], ["__scopeId", "data-v-31413447
1573
1573
  },
1574
1574
  setup(t, { expose: o }) {
1575
1575
  o();
1576
- const n = ve(), e = Ke(), a = Re(), r = Ne(), s = Ie("dataWidgets"), l = me(), c = t, i = g({
1576
+ const n = he(), e = Ke(), a = Re(), r = Ne(), s = Ie("dataWidgets"), l = ge(), c = t, i = g({
1577
1577
  pageType: "",
1578
1578
  fields: {},
1579
1579
  globalValidations: [],
@@ -1595,34 +1595,34 @@ const wn = /* @__PURE__ */ Z(dn, [["render", yn], ["__scopeId", "data-v-31413447
1595
1595
  ...S
1596
1596
  })).filter((P) => P.widget && P.widget.widget !== "Hidden").filter((P) => !K.value.includes(P.fieldKey)) : [];
1597
1597
  }
1598
- function y(I) {
1599
- return I ? Object.entries(I).filter(([P, S]) => S.dependent).reduce((P, [S, V]) => (P[S] = V.dependent, P), {}) : [];
1598
+ function w(I) {
1599
+ return I ? Object.entries(I).filter(([P, S]) => S.dependent).reduce((P, [S, A]) => (P[S] = A.dependent, P), {}) : [];
1600
1600
  }
1601
- const f = z(() => i.value?.actions ? [...i.value.actions].reverse() : []), m = g({}), k = g(!1);
1602
- ge(async () => {
1601
+ const f = M(() => i.value?.actions ? [...i.value.actions].reverse() : []), m = g({}), k = g(!1);
1602
+ _e(async () => {
1603
1603
  k.value = !0;
1604
- const I = new De().setPageActionType(he.Update).setClassName(c.className).setStore({ svrStore: a, bpmStore: r }).setWorkflowId(c.workflowId).build();
1604
+ const I = new De().setPageActionType(be.Update).setClassName(c.className).setStore({ svrStore: a, bpmStore: r }).setWorkflowId(c.workflowId).build();
1605
1605
  i.value = await I.getPageData();
1606
1606
  const T = await I.getBtnList(), P = await I.getFiles();
1607
- i.value.actions = i.value.actions?.filter((V) => {
1608
- const O = T.find((D) => D.button === V.title);
1607
+ i.value.actions = i.value.actions?.filter((A) => {
1608
+ const O = T.find((D) => D.button === A.title);
1609
1609
  return O ? O.isShow : !0;
1610
1610
  });
1611
1611
  const S = i.value.fields.requestType.modelValue;
1612
- e.Test?.({ fieldValue: S, hiddenFields: K, formData: m }), d.value = h(i.value.fields), _.value = y(i.value.fields);
1613
- for (const V in i.value.fields) {
1614
- if (i.value.fields[V].widget?.widget === "File") {
1615
- const O = d.value.find((D) => D.fieldKey === V);
1616
- O && O.widget && (O.widget.files = P[V] ?? [], O.widget.removeFile = (D) => I.removeFile(D));
1612
+ e.Test?.({ fieldValue: S, hiddenFields: K, formData: m }), d.value = h(i.value.fields), _.value = w(i.value.fields);
1613
+ for (const A in i.value.fields) {
1614
+ if (i.value.fields[A].widget?.widget === "File") {
1615
+ const O = d.value.find((D) => D.fieldKey === A);
1616
+ O && O.widget && (O.widget.files = P[A] ?? [], O.widget.removeFile = (D) => I.removeFile(D));
1617
1617
  }
1618
- m.value[V] = i.value.fields[V].modelValue;
1618
+ m.value[A] = i.value.fields[A].modelValue;
1619
1619
  }
1620
1620
  k.value = !1;
1621
1621
  });
1622
1622
  function ee() {
1623
1623
  return a()?.userInfo?.email_address ?? "";
1624
1624
  }
1625
- async function re(I, T, P, S, V) {
1625
+ async function re(I, T, P, S, A) {
1626
1626
  switch (T) {
1627
1627
  case X.Submit:
1628
1628
  let O = !0;
@@ -1636,7 +1636,7 @@ const wn = /* @__PURE__ */ Z(dn, [["render", yn], ["__scopeId", "data-v-31413447
1636
1636
  try {
1637
1637
  const D = { ...m.value, ..._.value };
1638
1638
  e.updatePageBeforeSubmit?.(D, r().employeeInfo);
1639
- const p = await zt(c.className, c.workflowId, D, P), L = s.value?.map(($) => $?.submit ? $.submit(p.toString()) : Promise.resolve()) || [];
1639
+ const p = await Mt(c.className, c.workflowId, D, P), L = s.value?.map(($) => $?.submit ? $.submit(p.toString()) : Promise.resolve()) || [];
1640
1640
  await Promise.all(L), k.value = !1, l?.appContext.config.globalProperties.$notification.success(`Your grading request has been submitted, ID is ${p.toString()}.`);
1641
1641
  } catch {
1642
1642
  l?.appContext.config.globalProperties.$notification.error("Failed to submit your grading request"), k.value = !1;
@@ -1656,10 +1656,10 @@ const wn = /* @__PURE__ */ Z(dn, [["render", yn], ["__scopeId", "data-v-31413447
1656
1656
  function te(I, T) {
1657
1657
  e[I]?.({ fieldValue: T, hiddenFields: K, formData: m }), i.value && (d.value = h(i.value.fields));
1658
1658
  }
1659
- const ie = z(() => We(d.value)), le = { router: n, triggers: e, svrStore: a, bpmStore: r, dataWidgetsRefs: s, instance: l, props: c, pageData: i, _fields: d, _dependent: _, genField: h, genDependentField: y, reversedActions: f, _data: m, loading: k, getApproverEmail: ee, clickHandler: re, hiddenFields: K, changeHandler: te, groupedFields: ie, DataWidgets: Pe, ActionButton: Fe, TopBar: Ue };
1659
+ const ie = M(() => We(d.value)), le = { router: n, triggers: e, svrStore: a, bpmStore: r, dataWidgetsRefs: s, instance: l, props: c, pageData: i, _fields: d, _dependent: _, genField: h, genDependentField: w, reversedActions: f, _data: m, loading: k, getApproverEmail: ee, clickHandler: re, hiddenFields: K, changeHandler: te, groupedFields: ie, DataWidgets: Pe, ActionButton: Fe, TopBar: Ue };
1660
1660
  return Object.defineProperty(le, "__isScriptSetup", { enumerable: !1, value: !0 }), le;
1661
1661
  }
1662
- }), Sn = { class: "page-container" }, Cn = { class: "page-body" }, xn = { class: "form-card" }, Tn = { class: "form-fields-vertical" }, Vn = { class: "form-fields" }, An = {
1662
+ }), Sn = { class: "page-container" }, Cn = { class: "page-body" }, xn = { class: "form-card" }, Tn = { class: "form-fields-vertical" }, An = { class: "form-fields" }, Vn = {
1663
1663
  key: 0,
1664
1664
  class: "form-content"
1665
1665
  }, In = { class: "page-footer" }, Pn = { class: "action-container" }, Fn = { class: "action-buttons" };
@@ -1671,22 +1671,22 @@ function Nn(t, o, n, e, a, r) {
1671
1671
  subTitle: e.pageData.banner.subTitle,
1672
1672
  email: e.getApproverEmail()
1673
1673
  }, null, 8, ["title", "subTitle", "email"]),
1674
- w("div", Cn, [
1674
+ y("div", Cn, [
1675
1675
  F(l, {
1676
1676
  loading: e.loading,
1677
1677
  class: "form-container"
1678
1678
  }, {
1679
1679
  default: C(() => [
1680
- w("div", xn, [
1681
- w("div", Tn, [
1682
- (u(!0), v(M, null, W(e.groupedFields, (c) => (u(), H(s, {
1680
+ y("div", xn, [
1681
+ y("div", Tn, [
1682
+ (u(!0), v(z, null, W(e.groupedFields, (c) => (u(), H(s, {
1683
1683
  key: c.name,
1684
1684
  title: c.name,
1685
1685
  style: { "margin-bottom": "24px" }
1686
1686
  }, {
1687
1687
  default: C(() => [
1688
- w("div", Vn, [
1689
- (u(!0), v(M, null, W(c.fields, (i) => (u(), H(e.DataWidgets, {
1688
+ y("div", An, [
1689
+ (u(!0), v(z, null, W(c.fields, (i) => (u(), H(e.DataWidgets, {
1690
1690
  key: i.fieldKey,
1691
1691
  ref_for: !0,
1692
1692
  ref: "dataWidgets",
@@ -1703,7 +1703,7 @@ function Nn(t, o, n, e, a, r) {
1703
1703
  _: 2
1704
1704
  }, 1032, ["title"]))), 128))
1705
1705
  ]),
1706
- t.$slots.content ? (u(), v("div", An, [
1706
+ t.$slots.content ? (u(), v("div", Vn, [
1707
1707
  ue(t.$slots, "content", {}, void 0, !0)
1708
1708
  ])) : se("", !0)
1709
1709
  ])
@@ -1711,11 +1711,11 @@ function Nn(t, o, n, e, a, r) {
1711
1711
  _: 3
1712
1712
  }, 8, ["loading"])
1713
1713
  ]),
1714
- w("div", In, [
1715
- w("div", Pn, [
1714
+ y("div", In, [
1715
+ y("div", Pn, [
1716
1716
  ue(t.$slots, "action", {}, void 0, !0),
1717
- w("div", Fn, [
1718
- (u(!0), v(M, null, W(e.reversedActions, (c) => (u(), H(e.ActionButton, {
1717
+ y("div", Fn, [
1718
+ (u(!0), v(z, null, W(e.reversedActions, (c) => (u(), H(e.ActionButton, {
1719
1719
  key: c.title,
1720
1720
  loading: e.loading,
1721
1721
  config: c,
@@ -1729,7 +1729,7 @@ function Nn(t, o, n, e, a, r) {
1729
1729
  }
1730
1730
  const Rn = /* @__PURE__ */ Z(kn, [["render", Nn], ["__scopeId", "data-v-605f261e"], ["__file", "UpdateView.vue"]]), ht = Symbol("library-custom-comp");
1731
1731
  function Un() {
1732
- return be(ht, null);
1732
+ return we(ht, null);
1733
1733
  }
1734
1734
  const Dn = /* @__PURE__ */ G({
1735
1735
  __name: "DetailView",
@@ -1739,7 +1739,7 @@ const Dn = /* @__PURE__ */ G({
1739
1739
  },
1740
1740
  setup(t, { expose: o }) {
1741
1741
  o();
1742
- const n = Re(), e = Ne(), a = Ke(), r = ve(), s = Un(), l = me(), c = t;
1742
+ const n = Re(), e = Ne(), a = Ke(), r = he(), s = Un(), l = ge(), c = t;
1743
1743
  let i;
1744
1744
  const d = g({
1745
1745
  pageType: "",
@@ -1757,7 +1757,7 @@ const Dn = /* @__PURE__ */ G({
1757
1757
  workflowId: ""
1758
1758
  }
1759
1759
  }), _ = g([]), h = Ie("dataWidgets");
1760
- function y(N) {
1760
+ function w(N) {
1761
1761
  return N ? Object.entries(N).map(([J, R]) => {
1762
1762
  typeof R.modelValue == "boolean" ? R.fieldValue = R.modelValue ? "Yes" : "No" : R.fieldValue = R.modelValue;
1763
1763
  const E = {
@@ -1779,7 +1779,7 @@ const Dn = /* @__PURE__ */ G({
1779
1779
  };
1780
1780
  }).filter((J) => J.widget && J.widget.widget !== "Hidden").filter((J) => !T.value.includes(J.fieldKey)) : [];
1781
1781
  }
1782
- const f = z(() => We(_.value)), m = z(() => d.value?.actions ? [...d.value.actions].reverse() : []), k = g(!0), ee = (N, j) => {
1782
+ const f = M(() => We(_.value)), m = M(() => d.value?.actions ? [...d.value.actions].reverse() : []), k = g(!0), ee = (N, j) => {
1783
1783
  const J = N.findIndex((R) => R.isCurrent);
1784
1784
  return N.map((R, E) => {
1785
1785
  const U = {
@@ -1792,21 +1792,23 @@ const Dn = /* @__PURE__ */ G({
1792
1792
  time: ""
1793
1793
  };
1794
1794
  U.title = R.workflowProcessApprovers[0]?.name;
1795
- const pe = R.workflowProcessApprovers[R.workflowProcessApprovers.length - 1], xe = R.workflowHistorys[R.workflowHistorys.length - 1], we = xe?.workflowHistoryApprovers[xe?.workflowHistoryApprovers?.length - 1];
1796
- if (pe && we && pe?.email?.toLowerCase() !== we?.approverEmail?.toLowerCase() && (U.title = `${we.name}`, U.proxy = `Proxy: ${pe.name}`), R.sort > 1 ? U.sub = "Approver Role: " + R.nodeName.replace("Submit", "").replace("Approve", "") : U.sub = "Submit Application", R.isCurrent && j !== -1)
1795
+ const pe = R.workflowProcessApprovers[R.workflowProcessApprovers.length - 1], Te = R.workflowHistorys[R.workflowHistorys.length - 1], ke = Te?.workflowHistoryApprovers[Te?.workflowHistoryApprovers?.length - 1];
1796
+ if (pe && ke && pe?.email?.toLowerCase() !== ke?.approverEmail?.toLowerCase() && (U.title = `${ke.name}`, U.proxy = `Proxy: ${pe.name}`), R.sort > 1 ? U.sub = "Approver Role: " + R.nodeName.replace("Submit", "").replace("Approve", "") : U.sub = "Submit Application", R.isCurrent && j !== -1)
1797
1797
  U.desc = "In Approval", U.status = 1;
1798
1798
  else {
1799
1799
  const ne = R.workflowHistorys[R.workflowHistorys.length - 1];
1800
- if (ne && ne.status === 100)
1801
- U.time = Ve(ne.takeActionAt, "yyyy-MM-dd hh:mm:ss"), U.status = 2, U.desc = "approve success!";
1802
- else if (ne && ne.status === 999)
1803
- U.time = Ve(ne.takeActionAt, "yyyy-MM-dd hh:mm:ss"), U.status = 0, U.desc = "approve reject!";
1800
+ if (ne && ne.status === 100) {
1801
+ U.time = Ae(ne.takeActionAt, "yyyy-MM-dd hh:mm:ss"), U.status = 2;
1802
+ const me = ne.workflowHistoryApprovers[0];
1803
+ U.desc = me?.reason ? `Approve reason: ${me.reason}` : "Rejected";
1804
+ } else if (ne && ne.status === 999)
1805
+ U.time = Ae(ne.takeActionAt, "yyyy-MM-dd hh:mm:ss"), U.status = 0, U.desc = "approve reject!";
1804
1806
  else if (ne)
1805
- if (U.time = Ve(ne.takeActionAt, "yyyy-MM-dd hh:mm:ss"), R.sort === 1)
1807
+ if (U.time = Ae(ne.takeActionAt, "yyyy-MM-dd hh:mm:ss"), R.sort === 1)
1806
1808
  U.status = 2, U.desc = "";
1807
1809
  else {
1808
- const Te = ne.workflowHistoryApprovers[0];
1809
- U.status = 3, U.desc = Te?.reason ? `Rejected reason: ${Te.reason}` : "Rejected";
1810
+ const me = ne.workflowHistoryApprovers[0];
1811
+ U.status = 3, U.desc = me?.reason ? `Rejected reason: ${me.reason}` : "Rejected";
1810
1812
  }
1811
1813
  else E < J || J === -1 ? (U.status = 0, U.desc = "Skipped") : (U.status = 0, U.desc = "Pending Approval");
1812
1814
  ne && ne.status;
@@ -1823,11 +1825,11 @@ const Dn = /* @__PURE__ */ G({
1823
1825
  }
1824
1826
  const T = g([]);
1825
1827
  async function P() {
1826
- k.value = !0, i = new De().setPageActionType(he.Details).setClassName(c.className).setStore({ svrStore: n, bpmStore: e }).setWorkflowId(c.workflowId).build(), d.value = await i.getPageData();
1828
+ k.value = !0, i = new De().setPageActionType(be.Details).setClassName(c.className).setStore({ svrStore: n, bpmStore: e }).setWorkflowId(c.workflowId).build(), d.value = await i.getPageData();
1827
1829
  const N = await i.getFiles();
1828
1830
  $.value = await i.getApprovers(), p.value = await i.getCommentsHistory(), oe.value = await i.getAssociator(), await I(), a.detailPageLoaded?.(d, e().employeeInfo);
1829
1831
  const j = d.value.fields.requestType.modelValue;
1830
- a.Test?.({ fieldValue: j, hiddenFields: T }), _.value = y(d.value.fields);
1832
+ a.Test?.({ fieldValue: j, hiddenFields: T }), _.value = w(d.value.fields);
1831
1833
  for (const R in d.value.fields)
1832
1834
  if (d.value.fields[R].widget?.widget === "File") {
1833
1835
  const E = _.value.find((U) => U.fieldKey === R);
@@ -1836,11 +1838,11 @@ const Dn = /* @__PURE__ */ G({
1836
1838
  const J = await i.getProcess();
1837
1839
  re.value = ee(J, 0), k.value = !1;
1838
1840
  }
1839
- ge(P);
1841
+ _e(P);
1840
1842
  async function S(N, j) {
1841
1843
  return a[N]?.(j);
1842
1844
  }
1843
- function V() {
1845
+ function A() {
1844
1846
  return n()?.userInfo?.email_address ?? "";
1845
1847
  }
1846
1848
  async function O(N, j, J, R, E) {
@@ -1848,31 +1850,31 @@ const Dn = /* @__PURE__ */ G({
1848
1850
  switch (j) {
1849
1851
  case X.Submit:
1850
1852
  let U = !0;
1851
- if (h.value?.forEach((_e) => {
1852
- _e?.validate && !_e.validate() && (U = !1);
1853
+ if (h.value?.forEach((ve) => {
1854
+ ve?.validate && !ve.validate() && (U = !1);
1853
1855
  }), !U) {
1854
1856
  l?.appContext.config.globalProperties.$message.error(
1855
1857
  "Please complete all required fields before submit."
1856
1858
  );
1857
1859
  return;
1858
1860
  }
1859
- const { reason: pe, ifGlobal: xe } = await S(E, {
1861
+ const { reason: pe, ifGlobal: Te } = await S(E, {
1860
1862
  isGlobal: K.value
1861
1863
  });
1862
1864
  k.value = !0;
1863
- const we = _.value.find((_e) => _e.fieldKey === "approvedGrade")?.modelValue, ne = E === "Approve" ? "100" : "-1", Te = await Et(
1865
+ const ke = _.value.find((ve) => ve.fieldKey === "approvedGrade")?.modelValue, ne = E === "Approve" ? "100" : "-1", me = await Et(
1864
1866
  c.className,
1865
1867
  c.workflowId,
1866
- V(),
1868
+ A(),
1867
1869
  pe,
1868
1870
  J,
1869
1871
  ne,
1870
- xe,
1871
- we
1872
+ Te,
1873
+ ke
1872
1874
  );
1873
1875
  await S(`${E}Success`, {
1874
1876
  workflowId: c.workflowId,
1875
- res: Te
1877
+ res: me
1876
1878
  }), k.value = !1;
1877
1879
  const bt = E === "Approve" ? `Request ID ${c.workflowId} has been approved.` : `Request ID ${c.workflowId} has been rejected.`;
1878
1880
  l?.appContext.config.globalProperties.$notification.success(
@@ -1885,8 +1887,8 @@ const Dn = /* @__PURE__ */ G({
1885
1887
  name: R,
1886
1888
  params: { className: c.className, workflowId: c.workflowId }
1887
1889
  });
1888
- } catch (_e) {
1889
- console.error("Error in link action trigger:", _e);
1890
+ } catch (ve) {
1891
+ console.error("Error in link action trigger:", ve);
1890
1892
  }
1891
1893
  break;
1892
1894
  case X.Button:
@@ -1913,7 +1915,7 @@ const Dn = /* @__PURE__ */ G({
1913
1915
  );
1914
1916
  return;
1915
1917
  }
1916
- await A(
1918
+ await V(
1917
1919
  "Confirm Assign Approver",
1918
1920
  "Do you want to assign the selected approver?"
1919
1921
  );
@@ -1933,7 +1935,7 @@ const Dn = /* @__PURE__ */ G({
1933
1935
  );
1934
1936
  }
1935
1937
  }
1936
- async function A(N, j) {
1938
+ async function V(N, j) {
1937
1939
  const { Modal: J } = await import("@arco-design/web-vue");
1938
1940
  return new Promise((R, E) => {
1939
1941
  J.confirm({
@@ -1948,7 +1950,7 @@ const Dn = /* @__PURE__ */ G({
1948
1950
  }
1949
1951
  async function B(N) {
1950
1952
  try {
1951
- await A(
1953
+ await V(
1952
1954
  "Confirm Delete Associator",
1953
1955
  "Do you want to delete this associator?"
1954
1956
  );
@@ -1983,17 +1985,17 @@ const Dn = /* @__PURE__ */ G({
1983
1985
  return i;
1984
1986
  }, set page(N) {
1985
1987
  i = N;
1986
- }, pageData: d, _fields: _, dataWidgetsRefs: h, genField: y, groupedFields: f, reversedActions: m, loading: k, mapWorkflowSteps: ee, steps: re, isGlobal: K, isShowAssignSelect: te, isShowAssignList: ie, isShowCommentTextArea: le, reloadButtonList: I, hiddenFields: T, load: P, triggerFn: S, getApproverEmail: V, clickHandler: O, comment: D, commentsHistory: p, selectedApprover: L, approvers: $, associators: oe, onAssignApprover: b, confirmDialog: A, onDeleteAssociator: B, onAddComment: de, formatTitle: fe, ActionButton: Fe, get IconDownload() {
1988
+ }, pageData: d, _fields: _, dataWidgetsRefs: h, genField: w, groupedFields: f, reversedActions: m, loading: k, mapWorkflowSteps: ee, steps: re, isGlobal: K, isShowAssignSelect: te, isShowAssignList: ie, isShowCommentTextArea: le, reloadButtonList: I, hiddenFields: T, load: P, triggerFn: S, getApproverEmail: A, clickHandler: O, comment: D, commentsHistory: p, selectedApprover: L, approvers: $, associators: oe, onAssignApprover: b, confirmDialog: V, onDeleteAssociator: B, onAddComment: de, formatTitle: fe, ActionButton: Fe, get IconDownload() {
1987
1989
  return Bo;
1988
1990
  }, TopBar: Ue, get formatDate() {
1989
- return Ve;
1991
+ return Ae;
1990
1992
  }, ToolTip: mt, DataWidgets: Pe };
1991
1993
  return Object.defineProperty(qe, "__isScriptSetup", { enumerable: !1, value: !0 }), qe;
1992
1994
  }
1993
- }), Ln = { class: "page-container" }, Bn = { class: "page-body" }, Hn = { class: "detail-card" }, On = { class: "form-fields-vertical" }, $n = { class: "detail-fields" }, jn = { class: "detail-field" }, Mn = {
1995
+ }), Ln = { class: "page-container" }, Bn = { class: "page-body" }, Hn = { class: "detail-card" }, On = { class: "form-fields-vertical" }, $n = { class: "detail-fields" }, jn = { class: "detail-field" }, zn = {
1994
1996
  key: 0,
1995
1997
  class: "detail-field"
1996
- }, zn = { class: "field-label" }, En = {
1998
+ }, Mn = { class: "field-label" }, En = {
1997
1999
  key: 1,
1998
2000
  class: "field-value"
1999
2001
  }, Kn = {
@@ -2006,43 +2008,43 @@ const Dn = /* @__PURE__ */ G({
2006
2008
  function Qn(t, o, n, e, a, r) {
2007
2009
  const s = x("a-link"), l = x("a-space"), c = x("a-card");
2008
2010
  x("a-option"), x("a-select");
2009
- const i = x("a-button"), d = x("a-list-item"), _ = x("a-list"), h = x("a-textarea"), y = x("a-spin");
2011
+ const i = x("a-button"), d = x("a-list-item"), _ = x("a-list"), h = x("a-textarea"), w = x("a-spin");
2010
2012
  return u(), v("div", Ln, [
2011
2013
  F(e.TopBar, {
2012
2014
  title: e.pageData.banner.title,
2013
2015
  subTitle: e.pageData.banner.subTitle,
2014
2016
  email: e.getApproverEmail()
2015
2017
  }, null, 8, ["title", "subTitle", "email"]),
2016
- w("div", Bn, [
2017
- F(y, {
2018
+ y("div", Bn, [
2019
+ F(w, {
2018
2020
  loading: e.loading,
2019
2021
  class: "detail-container"
2020
2022
  }, {
2021
2023
  default: C(() => [
2022
- w("div", Hn, [
2023
- (u(), H(ze(e.customComps.Steps), { steps: e.steps }, null, 8, ["steps"])),
2024
- w("div", On, [
2025
- (u(!0), v(M, null, W(e.groupedFields, (f) => (u(), H(c, {
2024
+ y("div", Hn, [
2025
+ (u(), H(Me(e.customComps.Steps), { steps: e.steps }, null, 8, ["steps"])),
2026
+ y("div", On, [
2027
+ (u(!0), v(z, null, W(e.groupedFields, (f) => (u(), H(c, {
2026
2028
  key: f.name,
2027
2029
  title: f.name,
2028
2030
  style: { "margin-bottom": "24px" }
2029
2031
  }, {
2030
2032
  default: C(() => [
2031
- w("div", $n, [
2032
- (u(!0), v(M, null, W(f.fields, (m) => (u(), v("div", {
2033
+ y("div", $n, [
2034
+ (u(!0), v(z, null, W(f.fields, (m) => (u(), v("div", {
2033
2035
  key: m.fieldKey,
2034
2036
  class: "detail-field-wrapper"
2035
2037
  }, [
2036
- w("div", jn, [
2037
- m.widget?.readonly ? (u(), v(M, { key: 1 }, [
2038
- w("div", zn, [
2038
+ y("div", jn, [
2039
+ m.widget?.readonly ? (u(), v(z, { key: 1 }, [
2040
+ y("div", Mn, [
2039
2041
  ae(q(e.formatTitle(m.widget?.title)) + " ", 1),
2040
2042
  F(e.ToolTip, {
2041
2043
  "is-visible": m.widget?.isVisible ?? !1,
2042
2044
  "output-text": m.widget?.outputText ?? []
2043
2045
  }, null, 8, ["is-visible", "output-text"])
2044
2046
  ]),
2045
- m.widget?.widget === "File" ? (u(!0), v(M, { key: 0 }, W(m.widget.files, (k) => (u(), v("div", {
2047
+ m.widget?.widget === "File" ? (u(!0), v(z, { key: 0 }, W(m.widget.files, (k) => (u(), v("div", {
2046
2048
  class: "field-value",
2047
2049
  key: k.id
2048
2050
  }, [
@@ -2062,7 +2064,7 @@ function Qn(t, o, n, e, a, r) {
2062
2064
  _: 2
2063
2065
  }, 1024)
2064
2066
  ]))), 128)) : (u(), v("div", En, q(m.fieldValue), 1))
2065
- ], 64)) : (u(), v("div", Mn, [
2067
+ ], 64)) : (u(), v("div", zn, [
2066
2068
  F(e.DataWidgets, {
2067
2069
  ref_for: !0,
2068
2070
  ref: "dataWidgets",
@@ -2084,12 +2086,17 @@ function Qn(t, o, n, e, a, r) {
2084
2086
  se("", !0),
2085
2087
  se("", !0),
2086
2088
  e.isShowCommentTextArea ? (u(), v("div", Kn, [
2087
- w("div", Wn, [
2088
- o[6] || (o[6] = w("div", { class: "field-label" }, "Comment", -1)),
2089
+ y("div", Wn, [
2090
+ o[6] || (o[6] = y("div", { class: "field-label" }, "Comment", -1)),
2089
2091
  F(h, {
2090
2092
  modelValue: e.comment,
2091
2093
  "onUpdate:modelValue": o[1] || (o[1] = (f) => e.comment = f),
2092
- "max-length": 200
2094
+ "max-length": 200,
2095
+ "show-word-limit": "",
2096
+ "auto-size": {
2097
+ minRows: 2,
2098
+ maxRows: 2
2099
+ }
2093
2100
  }, null, 8, ["modelValue"]),
2094
2101
  F(i, {
2095
2102
  type: "primary",
@@ -2108,7 +2115,7 @@ function Qn(t, o, n, e, a, r) {
2108
2115
  ae(" Comments History ", -1)
2109
2116
  ])),
2110
2117
  default: C(() => [
2111
- (u(!0), v(M, null, W(e.commentsHistory, (f) => (u(), H(d, {
2118
+ (u(!0), v(z, null, W(e.commentsHistory, (f) => (u(), H(d, {
2112
2119
  key: f.associator
2113
2120
  }, {
2114
2121
  default: C(() => [
@@ -2128,11 +2135,11 @@ function Qn(t, o, n, e, a, r) {
2128
2135
  _: 3
2129
2136
  }, 8, ["loading"])
2130
2137
  ]),
2131
- w("div", Gn, [
2132
- w("div", Jn, [
2138
+ y("div", Gn, [
2139
+ y("div", Jn, [
2133
2140
  ue(t.$slots, "action", {}, void 0, !0),
2134
- w("div", Yn, [
2135
- (u(!0), v(M, null, W(e.reversedActions, (f) => (u(), H(e.ActionButton, {
2141
+ y("div", Yn, [
2142
+ (u(!0), v(z, null, W(e.reversedActions, (f) => (u(), H(e.ActionButton, {
2136
2143
  key: f.title,
2137
2144
  loading: e.loading,
2138
2145
  config: f,
@@ -2144,7 +2151,7 @@ function Qn(t, o, n, e, a, r) {
2144
2151
  ])
2145
2152
  ]);
2146
2153
  }
2147
- const Zn = /* @__PURE__ */ Z(Dn, [["render", Qn], ["__scopeId", "data-v-2d758766"], ["__file", "DetailView.vue"]]), Xn = /* @__PURE__ */ G({
2154
+ const Zn = /* @__PURE__ */ Z(Dn, [["render", Qn], ["__scopeId", "data-v-bf6f2ab3"], ["__file", "DetailView.vue"]]), Xn = /* @__PURE__ */ G({
2148
2155
  name: "ListView",
2149
2156
  __name: "ListView",
2150
2157
  props: {
@@ -2152,7 +2159,7 @@ const Zn = /* @__PURE__ */ Z(Dn, [["render", Qn], ["__scopeId", "data-v-2d758766
2152
2159
  },
2153
2160
  setup(t, { expose: o }) {
2154
2161
  o();
2155
- const n = Re(), e = Ne(), a = ve(), r = me(), s = t, l = g(), c = wt({
2162
+ const n = Re(), e = Ne(), a = he(), r = ge(), s = t, l = g(), c = yt({
2156
2163
  current: 1,
2157
2164
  total: 0,
2158
2165
  pageSize: 10,
@@ -2162,10 +2169,10 @@ const Zn = /* @__PURE__ */ Z(Dn, [["render", Qn], ["__scopeId", "data-v-2d758766
2162
2169
  filters: []
2163
2170
  });
2164
2171
  function i() {
2165
- const b = Object.entries(S.value).filter(([, { value: A }]) => A && A !== "").map(([A, { value: B, operator: de }]) => {
2172
+ const b = Object.entries(S.value).filter(([, { value: V }]) => V && V !== "").map(([V, { value: B, operator: de }]) => {
2166
2173
  const fe = typeof B == "string" ? B.trim() : B;
2167
2174
  return {
2168
- key: A,
2175
+ key: V,
2169
2176
  value: fe,
2170
2177
  operator: de
2171
2178
  // 根据实际需要调整操作符
@@ -2181,12 +2188,12 @@ const Zn = /* @__PURE__ */ Z(Dn, [["render", Qn], ["__scopeId", "data-v-2d758766
2181
2188
  }]
2182
2189
  };
2183
2190
  }
2184
- const d = z(() => ({
2185
- x: y.value.length * 150 + 250
2191
+ const d = M(() => ({
2192
+ x: w.value.length * 150 + 250
2186
2193
  // 只设置横向滚动
2187
2194
  // 移除 y 属性,让表格高度自适应
2188
2195
  })), _ = (b) => {
2189
- const A = Object.entries(b).filter(([, B]) => B.widget?.column).map(([B, de], fe) => ({
2196
+ const V = Object.entries(b).filter(([, B]) => B.widget?.column).map(([B, de], fe) => ({
2190
2197
  title: de.widget.title,
2191
2198
  dataIndex: B.charAt(0).toLowerCase() + B.slice(1),
2192
2199
  order: de.order,
@@ -2198,7 +2205,7 @@ const Zn = /* @__PURE__ */ Z(Dn, [["render", Qn], ["__scopeId", "data-v-2d758766
2198
2205
  resizable: !0
2199
2206
  // 启用列宽调整
2200
2207
  })).sort((B, de) => B.order - de.order);
2201
- A.push({
2208
+ V.push({
2202
2209
  title: "Actions",
2203
2210
  slotName: "optional",
2204
2211
  align: "center",
@@ -2206,15 +2213,15 @@ const Zn = /* @__PURE__ */ Z(Dn, [["render", Qn], ["__scopeId", "data-v-2d758766
2206
2213
  minWidth: 200,
2207
2214
  fixed: "right",
2208
2215
  resizable: !1
2209
- }), y.value = A;
2210
- }, h = g([]), y = g([]), f = g(!0), m = g(!0), k = g(), ee = async () => {
2216
+ }), w.value = V;
2217
+ }, h = g([]), w = g([]), f = g(!0), m = g(!0), k = g(), ee = async () => {
2211
2218
  m.value = !0;
2212
2219
  const b = await jt(s.className, i());
2213
2220
  h.value = b.data, c.total = b.totalCount, m.value = !1;
2214
2221
  }, re = g(!1);
2215
- ge(async () => {
2222
+ _e(async () => {
2216
2223
  f.value = !0;
2217
- const b = new De().setPageActionType(he.List).setClassName(s.className).setStore({ svrStore: n, bpmStore: e }).build();
2224
+ const b = new De().setPageActionType(be.List).setClassName(s.className).setStore({ svrStore: n, bpmStore: e }).build();
2218
2225
  l.value = await b.getPageData(), _(l.value.fields), O(l.value.fields), D(), P(l.value?.tabs?.[0]?.key || ""), k.value = l.value.actions, f.value = !1, re.value = !0;
2219
2226
  }), kt(() => {
2220
2227
  re.value && ee();
@@ -2224,7 +2231,7 @@ const Zn = /* @__PURE__ */ Z(Dn, [["render", Qn], ["__scopeId", "data-v-2d758766
2224
2231
  }, te = (b) => {
2225
2232
  c.pageSize = b, ee();
2226
2233
  };
2227
- function ie(b, A, B, de, fe) {
2234
+ function ie(b, V, B, de, fe) {
2228
2235
  switch (b) {
2229
2236
  case X.Link:
2230
2237
  a.push({ name: B, params: { workflowId: fe } });
@@ -2233,10 +2240,10 @@ const Zn = /* @__PURE__ */ Z(Dn, [["render", Qn], ["__scopeId", "data-v-2d758766
2233
2240
  console.warn("Unknown action type:", b);
2234
2241
  }
2235
2242
  }
2236
- function le(b, A, B) {
2243
+ function le(b, V, B) {
2237
2244
  switch (b) {
2238
2245
  case X.Submit:
2239
- oo(A, { filters: [{ key: "approverList", value: I(), operator: 2 }] }), r?.appContext.config.globalProperties.$notification.success("submit success!");
2246
+ oo(V, { filters: [{ key: "approverList", value: I(), operator: 2 }] }), r?.appContext.config.globalProperties.$notification.success("submit success!");
2240
2247
  break;
2241
2248
  case X.Link:
2242
2249
  a.push({ name: B });
@@ -2248,40 +2255,40 @@ const Zn = /* @__PURE__ */ Z(Dn, [["render", Qn], ["__scopeId", "data-v-2d758766
2248
2255
  function I() {
2249
2256
  return n()?.userInfo?.email_address ?? "";
2250
2257
  }
2251
- function T(b, A) {
2252
- return typeof b != "string" || b.indexOf("{currentUserEmail}") === -1 ? b : b.replace(/{currentUserEmail}/g, A);
2258
+ function T(b, V) {
2259
+ return typeof b != "string" || b.indexOf("{currentUserEmail}") === -1 ? b : b.replace(/{currentUserEmail}/g, V);
2253
2260
  }
2254
2261
  function P(b) {
2255
- const A = l.value?.tabs?.find((B) => B.key === b)?.filters;
2256
- c.filters = A?.map((B) => ({
2262
+ const V = l.value?.tabs?.find((B) => B.key === b)?.filters;
2263
+ c.filters = V?.map((B) => ({
2257
2264
  ...B,
2258
2265
  value: T(B.value, I())
2259
2266
  })) || [], c.current = 1, ee();
2260
2267
  }
2261
- const S = g({}), V = g([]);
2268
+ const S = g({}), A = g([]);
2262
2269
  function O(b) {
2263
2270
  if (!b) return [];
2264
- V.value = Object.entries(b).filter(([, A]) => A.isFiltered).map(([A, B]) => ({ fieldKey: A, fieldConfig: B }));
2271
+ A.value = Object.entries(b).filter(([, V]) => V.isFiltered).map(([V, B]) => ({ fieldKey: V, fieldConfig: B }));
2265
2272
  }
2266
2273
  const D = () => {
2267
2274
  const b = {};
2268
- V.value.forEach(({ fieldKey: A, fieldConfig: B }) => {
2269
- b[A] = {}, b[A].value = B.modelValue, b[A].operator = B.operator;
2275
+ A.value.forEach(({ fieldKey: V, fieldConfig: B }) => {
2276
+ b[V] = {}, b[V].value = B.modelValue, b[V].operator = B.operator;
2270
2277
  }), S.value = b;
2271
2278
  }, p = () => {
2272
2279
  c.current = 1, ee();
2273
2280
  }, L = () => {
2274
2281
  l.value && D(), p();
2275
2282
  };
2276
- function $(b, A) {
2277
- return !(b.location !== "InTable" || b.title === "Update" && (A.sort === 3 || A.status === 100 || A.status === -1));
2283
+ function $(b, V) {
2284
+ return !(b.location !== "InTable" || b.title === "Update" && (V.sort === 3 || V.status === 100 || V.status === -1));
2278
2285
  }
2279
- const oe = { svrStore: n, bpmStore: e, router: a, instance: r, props: s, pageData: l, paging: c, createListParams: i, scroll: d, mapColumns: _, _data: h, _columns: y, loadingPage: f, loadingTable: m, actions: k, loadData: ee, mounted: re, pageChangeHandler: K, pageSizeChangeHandler: te, clickHandler: ie, createHandler: le, getApproverEmail: I, replaceEmail: T, tabHandler: P, searchForm: S, searchableFields: V, mapSearchableFields: O, initSearchForm: D, handleSearch: p, handleReset: L, judgeHiddenActions: $, ActionButton: Fe, DataWidgets: Pe, TopBar: Ue };
2286
+ const oe = { svrStore: n, bpmStore: e, router: a, instance: r, props: s, pageData: l, paging: c, createListParams: i, scroll: d, mapColumns: _, _data: h, _columns: w, loadingPage: f, loadingTable: m, actions: k, loadData: ee, mounted: re, pageChangeHandler: K, pageSizeChangeHandler: te, clickHandler: ie, createHandler: le, getApproverEmail: I, replaceEmail: T, tabHandler: P, searchForm: S, searchableFields: A, mapSearchableFields: O, initSearchForm: D, handleSearch: p, handleReset: L, judgeHiddenActions: $, ActionButton: Fe, DataWidgets: Pe, TopBar: Ue };
2280
2287
  return Object.defineProperty(oe, "__isScriptSetup", { enumerable: !1, value: !0 }), oe;
2281
2288
  }
2282
2289
  }), er = { class: "list-container" }, tr = { class: "query-title" };
2283
2290
  function or(t, o, n, e, a, r) {
2284
- const s = x("a-space"), l = x("a-col"), c = x("a-button"), i = x("a-row"), d = x("a-card"), _ = x("a-tab-pane"), h = x("a-tabs"), y = x("a-table");
2291
+ const s = x("a-space"), l = x("a-col"), c = x("a-button"), i = x("a-row"), d = x("a-card"), _ = x("a-tab-pane"), h = x("a-tabs"), w = x("a-table");
2285
2292
  return u(), v("div", er, [
2286
2293
  F(e.TopBar, {
2287
2294
  title: e.pageData?.banner.title ?? "",
@@ -2290,11 +2297,11 @@ function or(t, o, n, e, a, r) {
2290
2297
  }, null, 8, ["title", "subTitle", "email"]),
2291
2298
  F(d, null, {
2292
2299
  default: C(() => [
2293
- w("div", tr, [
2294
- o[0] || (o[0] = w("h3", null, "Search Conditions", -1)),
2300
+ y("div", tr, [
2301
+ o[0] || (o[0] = y("h3", null, "Search Conditions", -1)),
2295
2302
  F(s, { size: "medium" }, {
2296
2303
  default: C(() => [
2297
- (u(!0), v(M, null, W(e.actions, (f) => (u(), v(M, {
2304
+ (u(!0), v(z, null, W(e.actions, (f) => (u(), v(z, {
2298
2305
  key: f.title
2299
2306
  }, [
2300
2307
  f.location === "InOperation" ? (u(), H(e.ActionButton, {
@@ -2309,7 +2316,7 @@ function or(t, o, n, e, a, r) {
2309
2316
  ]),
2310
2317
  F(i, { gutter: [24, 20] }, {
2311
2318
  default: C(() => [
2312
- (u(!0), v(M, null, W(e.searchableFields, (f) => (u(), H(l, {
2319
+ (u(!0), v(z, null, W(e.searchableFields, (f) => (u(), H(l, {
2313
2320
  key: f.fieldKey,
2314
2321
  span: 6,
2315
2322
  class: "search-col"
@@ -2370,14 +2377,14 @@ function or(t, o, n, e, a, r) {
2370
2377
  onTabClick: e.tabHandler
2371
2378
  }, {
2372
2379
  default: C(() => [
2373
- (u(!0), v(M, null, W(e.pageData?.tabs, (f) => (u(), H(_, {
2380
+ (u(!0), v(z, null, W(e.pageData?.tabs, (f) => (u(), H(_, {
2374
2381
  key: f.key,
2375
2382
  title: f.title
2376
2383
  }, null, 8, ["title"]))), 128))
2377
2384
  ]),
2378
2385
  _: 1
2379
2386
  }),
2380
- F(y, {
2387
+ F(w, {
2381
2388
  columns: e._columns,
2382
2389
  data: e._data,
2383
2390
  stripe: "",
@@ -2399,7 +2406,7 @@ function or(t, o, n, e, a, r) {
2399
2406
  optional: C(({ record: f }) => [
2400
2407
  F(s, { size: "small" }, {
2401
2408
  default: C(() => [
2402
- (u(!0), v(M, null, W(e.actions, (m) => (u(), v(M, {
2409
+ (u(!0), v(z, null, W(e.actions, (m) => (u(), v(z, {
2403
2410
  key: m.title
2404
2411
  }, [
2405
2412
  e.judgeHiddenActions(m, f) ? (u(), H(e.ActionButton, {
@@ -2419,7 +2426,7 @@ function or(t, o, n, e, a, r) {
2419
2426
  }
2420
2427
  const nr = /* @__PURE__ */ Z(Xn, [["render", or], ["__scopeId", "data-v-a24e1b40"], ["__file", "ListView.vue"]]), cr = {
2421
2428
  install(t, o = {}) {
2422
- o.config && Pt(o.config), o.router && (Ft(o.router), t.provide(nt, o.router)), o.pinia && t.provide(en, o.pinia), o.useBpmStore && t.provide(_t, o.useBpmStore), o.useSvrStore && t.provide(vt, o.useSvrStore), o.triggers && t.provide(gt, o.triggers), o.customComps && t.provide(ht, o.customComps), t.component("CreateView", wn), t.component("UpdateView", Rn), t.component("DetailView", Zn), t.component("ListView", nr);
2429
+ o.config && Pt(o.config), o.router && (Ft(o.router), t.provide(nt, o.router)), o.pinia && t.provide(en, o.pinia), o.useBpmStore && t.provide(_t, o.useBpmStore), o.useSvrStore && t.provide(vt, o.useSvrStore), o.triggers && t.provide(gt, o.triggers), o.customComps && t.provide(ht, o.customComps), t.component("CreateView", yn), t.component("UpdateView", Rn), t.component("DetailView", Zn), t.component("ListView", nr);
2423
2430
  }
2424
2431
  };
2425
2432
  export {