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

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 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 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";
@@ -74,7 +74,7 @@ function ve() {
74
74
  throw new Error("Router is unavailable. Pass router when installing the plugin before using useLibraryRouter outside setup().");
75
75
  }
76
76
  const rt = me();
77
- function Me(t) {
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;
@@ -85,7 +85,7 @@ function at(t) {
85
85
  function Se(t) {
86
86
  if (Array.isArray(t))
87
87
  return t.map(Se);
88
- if (Me(t)) {
88
+ if (ze(t)) {
89
89
  const o = {};
90
90
  return Object.keys(t).forEach((n) => {
91
91
  o[n] = Se(t[n]);
@@ -96,10 +96,10 @@ 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 = Se(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);
@@ -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
  }
@@ -407,7 +407,7 @@ async function oo(t, o = null) {
407
407
  });
408
408
  It(e?.data, "WorkflowData.xlsx");
409
409
  }
410
- const ye = (t, o) => {
410
+ const we = (t, o) => {
411
411
  let n = "";
412
412
  return { res: t.every((a) => {
413
413
  const r = no(a, o);
@@ -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 = Ce(t, "modelValue"), s = (d) => we(e.validations, d), l = (d) => {
437
437
  a("input", d);
438
438
  }, c = (d) => {
439
439
  const _ = s(d);
@@ -489,11 +489,11 @@ const Ye = /* @__PURE__ */ Z(ao, [["render", so], ["__file", "InputText.vue"]]),
489
489
  h.ruleName === "Max" && (s.value = h.ruleParameter), h.ruleName === "Min" && (l.value = h.ruleParameter);
490
490
  });
491
491
  });
492
- const c = (h) => ye(e.validations, h), i = (h) => {
492
+ const c = (h) => we(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 = Ce(t, "modelValue"), c = (w) => we(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
554
  ge(d);
555
- const _ = (y) => {
556
- a("update:modelValue", y);
557
- const f = c(y);
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
@@ -654,18 +654,18 @@ const go = /* @__PURE__ */ Z(po, [["render", mo], ["__file", "Cascader.vue"]]),
654
654
  },
655
655
  emits: ["update:modelValue", "change", "error", "input"],
656
656
  setup(t, { expose: o, emit: n }) {
657
- const e = t, a = n, r = g({}), s = (p) => ye(e.validations, p), l = Ee(), c = l.apiBase, i = g(null), d = g("");
657
+ const e = t, a = n, r = g({}), s = (p) => we(e.validations, p), l = Ee(), c = l.apiBase, i = g(null), d = g("");
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
  }
@@ -712,7 +712,7 @@ const go = /* @__PURE__ */ Z(po, [["render", mo], ["__file", "Cascader.vue"]]),
712
712
  i.value ? (e.config.uploadURL && (d.value = p), I.value = L, T.value = $, V.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);
@@ -723,13 +723,13 @@ const go = /* @__PURE__ */ Z(po, [["render", mo], ["__file", "Cascader.vue"]]),
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: V, 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: {},
@@ -770,7 +770,7 @@ const bo = /* @__PURE__ */ Z(_o, [["render", ho], ["__file", "FileUpload.vue"]])
770
770
  },
771
771
  emits: ["update:modelValue", "change", "error", "input"],
772
772
  setup(t, { expose: o, emit: n }) {
773
- const e = t, a = n, r = (i) => ye(e.validations, i), s = (i) => {
773
+ const e = t, a = n, r = (i) => we(e.validations, i), s = (i) => {
774
774
  a("update:modelValue", i), a("input", i);
775
775
  }, l = (i) => {
776
776
  a("update:modelValue", i);
@@ -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 = Ce(t, "modelValue"), s = (i) => we(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);
@@ -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 = Ce(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,
@@ -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, {
@@ -1402,19 +1402,19 @@ const dn = /* @__PURE__ */ G({
1402
1402
  ...V
1403
1403
  })).filter((S) => S.widget && S.widget.widget !== "Hidden").filter((S) => !te.value.includes(S.fieldKey)) : [];
1404
1404
  }
1405
- function y(T) {
1405
+ function w(T) {
1406
1406
  return T ? Object.entries(T).filter(([S, V]) => V.dependent).reduce(
1407
1407
  (S, [V, O]) => (S[V] = 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);
1411
+ const f = M(() => i.value?.actions ? [...i.value.actions].reverse() : []), m = g({}), k = g(!1);
1412
1412
  ge(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
1420
  const V = d.value.find((O) => O.fieldKey === S);
@@ -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
@@ -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: {},
@@ -1595,10 +1595,10 @@ 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) {
1598
+ function w(I) {
1599
1599
  return I ? Object.entries(I).filter(([P, S]) => S.dependent).reduce((P, [S, V]) => (P[S] = V.dependent, P), {}) : [];
1600
1600
  }
1601
- const f = z(() => i.value?.actions ? [...i.value.actions].reverse() : []), m = g({}), k = g(!1);
1601
+ const f = M(() => i.value?.actions ? [...i.value.actions].reverse() : []), m = g({}), k = g(!1);
1602
1602
  ge(async () => {
1603
1603
  k.value = !0;
1604
1604
  const I = new De().setPageActionType(he.Update).setClassName(c.className).setStore({ svrStore: a, bpmStore: r }).setWorkflowId(c.workflowId).build();
@@ -1609,7 +1609,7 @@ const wn = /* @__PURE__ */ Z(dn, [["render", yn], ["__scopeId", "data-v-31413447
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);
1612
+ e.Test?.({ fieldValue: S, hiddenFields: K, formData: m }), d.value = h(i.value.fields), _.value = w(i.value.fields);
1613
1613
  for (const V in i.value.fields) {
1614
1614
  if (i.value.fields[V].widget?.widget === "File") {
1615
1615
  const O = d.value.find((D) => D.fieldKey === V);
@@ -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,7 +1656,7 @@ 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
1662
  }), Sn = { class: "page-container" }, Cn = { class: "page-body" }, xn = { class: "form-card" }, Tn = { class: "form-fields-vertical" }, Vn = { class: "form-fields" }, An = {
@@ -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", Vn, [
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",
@@ -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,
@@ -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,8 +1792,8 @@ 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], xe = R.workflowHistorys[R.workflowHistorys.length - 1], ye = xe?.workflowHistoryApprovers[xe?.workflowHistoryApprovers?.length - 1];
1796
+ if (pe && ye && pe?.email?.toLowerCase() !== ye?.approverEmail?.toLowerCase() && (U.title = `${ye.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];
@@ -1827,7 +1827,7 @@ const Dn = /* @__PURE__ */ G({
1827
1827
  const N = await i.getFiles();
1828
1828
  $.value = await i.getApprovers(), p.value = await i.getCommentsHistory(), oe.value = await i.getAssociator(), await I(), a.detailPageLoaded?.(d, e().employeeInfo);
1829
1829
  const j = d.value.fields.requestType.modelValue;
1830
- a.Test?.({ fieldValue: j, hiddenFields: T }), _.value = y(d.value.fields);
1830
+ a.Test?.({ fieldValue: j, hiddenFields: T }), _.value = w(d.value.fields);
1831
1831
  for (const R in d.value.fields)
1832
1832
  if (d.value.fields[R].widget?.widget === "File") {
1833
1833
  const E = _.value.find((U) => U.fieldKey === R);
@@ -1860,7 +1860,7 @@ const Dn = /* @__PURE__ */ G({
1860
1860
  isGlobal: K.value
1861
1861
  });
1862
1862
  k.value = !0;
1863
- const we = _.value.find((_e) => _e.fieldKey === "approvedGrade")?.modelValue, ne = E === "Approve" ? "100" : "-1", Te = await Et(
1863
+ const ye = _.value.find((_e) => _e.fieldKey === "approvedGrade")?.modelValue, ne = E === "Approve" ? "100" : "-1", Te = await Et(
1864
1864
  c.className,
1865
1865
  c.workflowId,
1866
1866
  V(),
@@ -1868,7 +1868,7 @@ const Dn = /* @__PURE__ */ G({
1868
1868
  J,
1869
1869
  ne,
1870
1870
  xe,
1871
- we
1871
+ ye
1872
1872
  );
1873
1873
  await S(`${E}Success`, {
1874
1874
  workflowId: c.workflowId,
@@ -1983,17 +1983,17 @@ const Dn = /* @__PURE__ */ G({
1983
1983
  return i;
1984
1984
  }, set page(N) {
1985
1985
  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() {
1986
+ }, 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: 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() {
1987
1987
  return Bo;
1988
1988
  }, TopBar: Ue, get formatDate() {
1989
1989
  return Ve;
1990
1990
  }, ToolTip: mt, DataWidgets: Pe };
1991
1991
  return Object.defineProperty(qe, "__isScriptSetup", { enumerable: !1, value: !0 }), qe;
1992
1992
  }
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 = {
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" }, zn = {
1994
1994
  key: 0,
1995
1995
  class: "detail-field"
1996
- }, zn = { class: "field-label" }, En = {
1996
+ }, Mn = { class: "field-label" }, En = {
1997
1997
  key: 1,
1998
1998
  class: "field-value"
1999
1999
  }, Kn = {
@@ -2006,43 +2006,43 @@ const Dn = /* @__PURE__ */ G({
2006
2006
  function Qn(t, o, n, e, a, r) {
2007
2007
  const s = x("a-link"), l = x("a-space"), c = x("a-card");
2008
2008
  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");
2009
+ const i = x("a-button"), d = x("a-list-item"), _ = x("a-list"), h = x("a-textarea"), w = x("a-spin");
2010
2010
  return u(), v("div", Ln, [
2011
2011
  F(e.TopBar, {
2012
2012
  title: e.pageData.banner.title,
2013
2013
  subTitle: e.pageData.banner.subTitle,
2014
2014
  email: e.getApproverEmail()
2015
2015
  }, null, 8, ["title", "subTitle", "email"]),
2016
- w("div", Bn, [
2017
- F(y, {
2016
+ y("div", Bn, [
2017
+ F(w, {
2018
2018
  loading: e.loading,
2019
2019
  class: "detail-container"
2020
2020
  }, {
2021
2021
  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, {
2022
+ y("div", Hn, [
2023
+ (u(), H(Me(e.customComps.Steps), { steps: e.steps }, null, 8, ["steps"])),
2024
+ y("div", On, [
2025
+ (u(!0), v(z, null, W(e.groupedFields, (f) => (u(), H(c, {
2026
2026
  key: f.name,
2027
2027
  title: f.name,
2028
2028
  style: { "margin-bottom": "24px" }
2029
2029
  }, {
2030
2030
  default: C(() => [
2031
- w("div", $n, [
2032
- (u(!0), v(M, null, W(f.fields, (m) => (u(), v("div", {
2031
+ y("div", $n, [
2032
+ (u(!0), v(z, null, W(f.fields, (m) => (u(), v("div", {
2033
2033
  key: m.fieldKey,
2034
2034
  class: "detail-field-wrapper"
2035
2035
  }, [
2036
- w("div", jn, [
2037
- m.widget?.readonly ? (u(), v(M, { key: 1 }, [
2038
- w("div", zn, [
2036
+ y("div", jn, [
2037
+ m.widget?.readonly ? (u(), v(z, { key: 1 }, [
2038
+ y("div", Mn, [
2039
2039
  ae(q(e.formatTitle(m.widget?.title)) + " ", 1),
2040
2040
  F(e.ToolTip, {
2041
2041
  "is-visible": m.widget?.isVisible ?? !1,
2042
2042
  "output-text": m.widget?.outputText ?? []
2043
2043
  }, null, 8, ["is-visible", "output-text"])
2044
2044
  ]),
2045
- m.widget?.widget === "File" ? (u(!0), v(M, { key: 0 }, W(m.widget.files, (k) => (u(), v("div", {
2045
+ m.widget?.widget === "File" ? (u(!0), v(z, { key: 0 }, W(m.widget.files, (k) => (u(), v("div", {
2046
2046
  class: "field-value",
2047
2047
  key: k.id
2048
2048
  }, [
@@ -2062,7 +2062,7 @@ function Qn(t, o, n, e, a, r) {
2062
2062
  _: 2
2063
2063
  }, 1024)
2064
2064
  ]))), 128)) : (u(), v("div", En, q(m.fieldValue), 1))
2065
- ], 64)) : (u(), v("div", Mn, [
2065
+ ], 64)) : (u(), v("div", zn, [
2066
2066
  F(e.DataWidgets, {
2067
2067
  ref_for: !0,
2068
2068
  ref: "dataWidgets",
@@ -2084,12 +2084,17 @@ function Qn(t, o, n, e, a, r) {
2084
2084
  se("", !0),
2085
2085
  se("", !0),
2086
2086
  e.isShowCommentTextArea ? (u(), v("div", Kn, [
2087
- w("div", Wn, [
2088
- o[6] || (o[6] = w("div", { class: "field-label" }, "Comment", -1)),
2087
+ y("div", Wn, [
2088
+ o[6] || (o[6] = y("div", { class: "field-label" }, "Comment", -1)),
2089
2089
  F(h, {
2090
2090
  modelValue: e.comment,
2091
2091
  "onUpdate:modelValue": o[1] || (o[1] = (f) => e.comment = f),
2092
- "max-length": 200
2092
+ "max-length": 200,
2093
+ "show-word-limit": "",
2094
+ "auto-size": {
2095
+ minRows: 2,
2096
+ maxRows: 2
2097
+ }
2093
2098
  }, null, 8, ["modelValue"]),
2094
2099
  F(i, {
2095
2100
  type: "primary",
@@ -2108,7 +2113,7 @@ function Qn(t, o, n, e, a, r) {
2108
2113
  ae(" Comments History ", -1)
2109
2114
  ])),
2110
2115
  default: C(() => [
2111
- (u(!0), v(M, null, W(e.commentsHistory, (f) => (u(), H(d, {
2116
+ (u(!0), v(z, null, W(e.commentsHistory, (f) => (u(), H(d, {
2112
2117
  key: f.associator
2113
2118
  }, {
2114
2119
  default: C(() => [
@@ -2128,11 +2133,11 @@ function Qn(t, o, n, e, a, r) {
2128
2133
  _: 3
2129
2134
  }, 8, ["loading"])
2130
2135
  ]),
2131
- w("div", Gn, [
2132
- w("div", Jn, [
2136
+ y("div", Gn, [
2137
+ y("div", Jn, [
2133
2138
  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, {
2139
+ y("div", Yn, [
2140
+ (u(!0), v(z, null, W(e.reversedActions, (f) => (u(), H(e.ActionButton, {
2136
2141
  key: f.title,
2137
2142
  loading: e.loading,
2138
2143
  config: f,
@@ -2144,7 +2149,7 @@ function Qn(t, o, n, e, a, r) {
2144
2149
  ])
2145
2150
  ]);
2146
2151
  }
2147
- const Zn = /* @__PURE__ */ Z(Dn, [["render", Qn], ["__scopeId", "data-v-2d758766"], ["__file", "DetailView.vue"]]), Xn = /* @__PURE__ */ G({
2152
+ const Zn = /* @__PURE__ */ Z(Dn, [["render", Qn], ["__scopeId", "data-v-d11c86e6"], ["__file", "DetailView.vue"]]), Xn = /* @__PURE__ */ G({
2148
2153
  name: "ListView",
2149
2154
  __name: "ListView",
2150
2155
  props: {
@@ -2152,7 +2157,7 @@ const Zn = /* @__PURE__ */ Z(Dn, [["render", Qn], ["__scopeId", "data-v-2d758766
2152
2157
  },
2153
2158
  setup(t, { expose: o }) {
2154
2159
  o();
2155
- const n = Re(), e = Ne(), a = ve(), r = me(), s = t, l = g(), c = wt({
2160
+ const n = Re(), e = Ne(), a = ve(), r = me(), s = t, l = g(), c = yt({
2156
2161
  current: 1,
2157
2162
  total: 0,
2158
2163
  pageSize: 10,
@@ -2181,8 +2186,8 @@ const Zn = /* @__PURE__ */ Z(Dn, [["render", Qn], ["__scopeId", "data-v-2d758766
2181
2186
  }]
2182
2187
  };
2183
2188
  }
2184
- const d = z(() => ({
2185
- x: y.value.length * 150 + 250
2189
+ const d = M(() => ({
2190
+ x: w.value.length * 150 + 250
2186
2191
  // 只设置横向滚动
2187
2192
  // 移除 y 属性,让表格高度自适应
2188
2193
  })), _ = (b) => {
@@ -2206,8 +2211,8 @@ const Zn = /* @__PURE__ */ Z(Dn, [["render", Qn], ["__scopeId", "data-v-2d758766
2206
2211
  minWidth: 200,
2207
2212
  fixed: "right",
2208
2213
  resizable: !1
2209
- }), y.value = A;
2210
- }, h = g([]), y = g([]), f = g(!0), m = g(!0), k = g(), ee = async () => {
2214
+ }), w.value = A;
2215
+ }, h = g([]), w = g([]), f = g(!0), m = g(!0), k = g(), ee = async () => {
2211
2216
  m.value = !0;
2212
2217
  const b = await jt(s.className, i());
2213
2218
  h.value = b.data, c.total = b.totalCount, m.value = !1;
@@ -2276,12 +2281,12 @@ const Zn = /* @__PURE__ */ Z(Dn, [["render", Qn], ["__scopeId", "data-v-2d758766
2276
2281
  function $(b, A) {
2277
2282
  return !(b.location !== "InTable" || b.title === "Update" && (A.sort === 3 || A.status === 100 || A.status === -1));
2278
2283
  }
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 };
2284
+ 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: V, mapSearchableFields: O, initSearchForm: D, handleSearch: p, handleReset: L, judgeHiddenActions: $, ActionButton: Fe, DataWidgets: Pe, TopBar: Ue };
2280
2285
  return Object.defineProperty(oe, "__isScriptSetup", { enumerable: !1, value: !0 }), oe;
2281
2286
  }
2282
2287
  }), er = { class: "list-container" }, tr = { class: "query-title" };
2283
2288
  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");
2289
+ 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
2290
  return u(), v("div", er, [
2286
2291
  F(e.TopBar, {
2287
2292
  title: e.pageData?.banner.title ?? "",
@@ -2290,11 +2295,11 @@ function or(t, o, n, e, a, r) {
2290
2295
  }, null, 8, ["title", "subTitle", "email"]),
2291
2296
  F(d, null, {
2292
2297
  default: C(() => [
2293
- w("div", tr, [
2294
- o[0] || (o[0] = w("h3", null, "Search Conditions", -1)),
2298
+ y("div", tr, [
2299
+ o[0] || (o[0] = y("h3", null, "Search Conditions", -1)),
2295
2300
  F(s, { size: "medium" }, {
2296
2301
  default: C(() => [
2297
- (u(!0), v(M, null, W(e.actions, (f) => (u(), v(M, {
2302
+ (u(!0), v(z, null, W(e.actions, (f) => (u(), v(z, {
2298
2303
  key: f.title
2299
2304
  }, [
2300
2305
  f.location === "InOperation" ? (u(), H(e.ActionButton, {
@@ -2309,7 +2314,7 @@ function or(t, o, n, e, a, r) {
2309
2314
  ]),
2310
2315
  F(i, { gutter: [24, 20] }, {
2311
2316
  default: C(() => [
2312
- (u(!0), v(M, null, W(e.searchableFields, (f) => (u(), H(l, {
2317
+ (u(!0), v(z, null, W(e.searchableFields, (f) => (u(), H(l, {
2313
2318
  key: f.fieldKey,
2314
2319
  span: 6,
2315
2320
  class: "search-col"
@@ -2370,14 +2375,14 @@ function or(t, o, n, e, a, r) {
2370
2375
  onTabClick: e.tabHandler
2371
2376
  }, {
2372
2377
  default: C(() => [
2373
- (u(!0), v(M, null, W(e.pageData?.tabs, (f) => (u(), H(_, {
2378
+ (u(!0), v(z, null, W(e.pageData?.tabs, (f) => (u(), H(_, {
2374
2379
  key: f.key,
2375
2380
  title: f.title
2376
2381
  }, null, 8, ["title"]))), 128))
2377
2382
  ]),
2378
2383
  _: 1
2379
2384
  }),
2380
- F(y, {
2385
+ F(w, {
2381
2386
  columns: e._columns,
2382
2387
  data: e._data,
2383
2388
  stripe: "",
@@ -2399,7 +2404,7 @@ function or(t, o, n, e, a, r) {
2399
2404
  optional: C(({ record: f }) => [
2400
2405
  F(s, { size: "small" }, {
2401
2406
  default: C(() => [
2402
- (u(!0), v(M, null, W(e.actions, (m) => (u(), v(M, {
2407
+ (u(!0), v(z, null, W(e.actions, (m) => (u(), v(z, {
2403
2408
  key: m.title
2404
2409
  }, [
2405
2410
  e.judgeHiddenActions(m, f) ? (u(), H(e.ActionButton, {
@@ -2419,7 +2424,7 @@ function or(t, o, n, e, a, r) {
2419
2424
  }
2420
2425
  const nr = /* @__PURE__ */ Z(Xn, [["render", or], ["__scopeId", "data-v-a24e1b40"], ["__file", "ListView.vue"]]), cr = {
2421
2426
  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);
2427
+ 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
2428
  }
2424
2429
  };
2425
2430
  export {