@chase-shao/vue-component-lib 1.2.85 → 1.2.87

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 m, getCurrentInstance as pe, defineComponent as E, mergeModels as ce, useModel as ye, resolveComponent as w, createBlock as F, openBlock as f, onMounted as ue, computed as W, withCtx as x, createElementBlock as V, Fragment as M, renderList as q, createVNode as B, nextTick as lt, createTextVNode as re, inject as me, normalizeStyle as qe, normalizeClass as Ye, createElementVNode as y, useTemplateRef as Fe, createCommentVNode as ne, toDisplayString as te, resolveDynamicComponent as He, renderSlot as de, reactive as ct, onActivated as dt } from "vue";
1
+ import { ref as m, getCurrentInstance as pe, defineComponent as E, mergeModels as ce, useModel as ye, resolveComponent as C, createBlock as F, openBlock as d, onMounted as ue, computed as G, withCtx as y, createElementBlock as w, Fragment as O, renderList as W, createVNode as B, nextTick as lt, createTextVNode as re, inject as me, normalizeStyle as qe, normalizeClass as Ye, createElementVNode as k, useTemplateRef as Fe, createCommentVNode as ne, toDisplayString as Z, resolveDynamicComponent as He, renderSlot as de, reactive as ct, onActivated as dt } from "vue";
2
2
  import ut from "axios";
3
3
  import { defineStore as ft } from "pinia";
4
4
  import { Modal as pt } from "@arco-design/web-vue";
@@ -358,18 +358,18 @@ const ge = (t, n) => {
358
358
  }),
359
359
  emits: /* @__PURE__ */ ce(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
360
360
  setup(t, { expose: n, emit: a }) {
361
- const e = t, o = a, l = ye(t, "modelValue"), s = (d) => ge(e.validations, d), c = (d) => {
362
- o("input", d);
363
- }, i = (d) => {
364
- const g = s(d);
361
+ const e = t, o = a, l = ye(t, "modelValue"), s = (u) => ge(e.validations, u), c = (u) => {
362
+ o("input", u);
363
+ }, i = (u) => {
364
+ const g = s(u);
365
365
  o("error", g.res ? "" : g.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((_) => {
366
- _.event === "change" && o(_.event, _.handlerName, d);
366
+ _.event === "change" && o(_.event, _.handlerName, u);
367
367
  });
368
368
  };
369
369
  n({
370
370
  validate() {
371
- const d = s(e.modelValue);
372
- return o("error", d.res ? "" : d.errorMessages), d.res;
371
+ const u = s(e.modelValue);
372
+ return o("error", u.res ? "" : u.errorMessages), u.res;
373
373
  }
374
374
  });
375
375
  const r = { props: e, emits: o, model: l, validate: s, inputHandler: c, changeHandler: i };
@@ -382,8 +382,8 @@ const ge = (t, n) => {
382
382
  return a;
383
383
  };
384
384
  function Xt(t, n, a, e, o, l) {
385
- const s = w("AInput");
386
- return f(), F(s, {
385
+ const s = C("AInput");
386
+ return d(), F(s, {
387
387
  modelValue: e.model,
388
388
  "onUpdate:modelValue": n[0] || (n[0] = (c) => e.model = c),
389
389
  "allow-clear": "",
@@ -415,10 +415,10 @@ const Ke = /* @__PURE__ */ Q(Jt, [["render", Xt], ["__file", "InputText.vue"]]),
415
415
  });
416
416
  const i = (_) => ge(e.validations, _), r = (_) => {
417
417
  o("input", _);
418
- }, d = (_) => {
419
- const k = i(_);
420
- o("error", k.res ? "" : k.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((u) => {
421
- u.event === "change" && o(u.event, u.handlerName, _);
418
+ }, u = (_) => {
419
+ const S = i(_);
420
+ o("error", S.res ? "" : S.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((f) => {
421
+ f.event === "change" && o(f.event, f.handlerName, _);
422
422
  });
423
423
  };
424
424
  n({
@@ -427,13 +427,13 @@ const Ke = /* @__PURE__ */ Q(Jt, [["render", Xt], ["__file", "InputText.vue"]]),
427
427
  return o("error", _.res ? "" : _.errorMessages), _.res;
428
428
  }
429
429
  });
430
- const g = { props: e, emits: o, model: l, max: s, min: c, validate: i, inputHandler: r, changeHandler: d };
430
+ const g = { props: e, emits: o, model: l, max: s, min: c, validate: i, inputHandler: r, changeHandler: u };
431
431
  return Object.defineProperty(g, "__isScriptSetup", { enumerable: !1, value: !0 }), g;
432
432
  }
433
433
  });
434
434
  function en(t, n, a, e, o, l) {
435
- const s = w("AInputNumber");
436
- return f(), F(s, {
435
+ const s = C("AInputNumber");
436
+ return d(), F(s, {
437
437
  modelValue: e.model,
438
438
  "onUpdate:modelValue": n[0] || (n[0] = (c) => e.model = c),
439
439
  clearable: "",
@@ -458,39 +458,39 @@ const tn = /* @__PURE__ */ Q(Zt, [["render", en], ["__file", "InputNumber.vue"]]
458
458
  }),
459
459
  emits: /* @__PURE__ */ ce(["update:modelValue", "change"], ["update:modelValue"]),
460
460
  setup(t, { expose: n, emit: a }) {
461
- const e = t, o = a, l = m(!1), s = m(e.config.options ?? []), c = ye(t, "modelValue"), i = (k) => ge(e.validations, k), r = W(() => {
462
- const k = {};
463
- return e.triggers && e.triggers.length > 0 && e.triggers.forEach((u) => {
464
- k[u.event] = (p) => {
465
- o(u.event, u.handlerName, p);
466
- const A = i(p);
467
- o("error", A.res ? "" : A.errorMessages);
461
+ const e = t, o = a, l = m(!1), s = m(e.config.options ?? []), c = ye(t, "modelValue"), i = (S) => ge(e.validations, S), r = G(() => {
462
+ const S = {};
463
+ return e.triggers && e.triggers.length > 0 && e.triggers.forEach((f) => {
464
+ S[f.event] = (p) => {
465
+ o(f.event, f.handlerName, p);
466
+ const V = i(p);
467
+ o("error", V.res ? "" : V.errorMessages);
468
468
  };
469
- }), k;
470
- }), d = async () => {
469
+ }), S;
470
+ }), u = async () => {
471
471
  e.config.dataSourceProvider && (s.value = await Lt(e.config.dataSourceProvider));
472
472
  };
473
- ue(d);
474
- const g = (k) => {
475
- o("update:modelValue", k);
476
- const u = i(k);
477
- o("error", u.res ? "" : u.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((p) => {
478
- p.event === "change" && o(p.event, p.handlerName, k);
473
+ ue(u);
474
+ const g = (S) => {
475
+ o("update:modelValue", S);
476
+ const f = i(S);
477
+ o("error", f.res ? "" : f.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((p) => {
478
+ p.event === "change" && o(p.event, p.handlerName, S);
479
479
  });
480
480
  };
481
481
  n({
482
482
  validate() {
483
- const k = i(e.modelValue);
484
- return o("error", k.res ? "" : k.errorMessages), k.res;
483
+ const S = i(e.modelValue);
484
+ return o("error", S.res ? "" : S.errorMessages), S.res;
485
485
  }
486
486
  });
487
- const _ = { props: e, emits: o, loading: l, _options: s, model: c, validate: i, eventHandlers: r, loadOptions: d, changeHandler: g };
487
+ const _ = { props: e, emits: o, loading: l, _options: s, model: c, validate: i, eventHandlers: r, loadOptions: u, changeHandler: g };
488
488
  return Object.defineProperty(_, "__isScriptSetup", { enumerable: !1, value: !0 }), _;
489
489
  }
490
490
  });
491
491
  function on(t, n, a, e, o, l) {
492
- const s = w("AOption"), c = w("ASelect");
493
- return f(), F(c, {
492
+ const s = C("AOption"), c = C("ASelect");
493
+ return d(), F(c, {
494
494
  "allow-clear": "",
495
495
  modelValue: e.model,
496
496
  "onUpdate:modelValue": n[0] || (n[0] = (i) => e.model = i),
@@ -500,8 +500,8 @@ function on(t, n, a, e, o, l) {
500
500
  disabled: e.props.config.readonly,
501
501
  onChange: e.changeHandler
502
502
  }, {
503
- default: x(() => [
504
- (f(!0), V(M, null, q(e._options, (i) => (f(), F(s, {
503
+ default: y(() => [
504
+ (d(!0), w(O, null, W(e._options, (i) => (d(), F(s, {
505
505
  key: i.value,
506
506
  value: i.value,
507
507
  label: i.label
@@ -541,12 +541,12 @@ const We = /* @__PURE__ */ Q(nn, [["render", on], ["__file", "SelectList.vue"]])
541
541
  }
542
542
  });
543
543
  function rn(t, n, a, e, o, l) {
544
- const s = w("ACascader"), c = w("ASpace");
545
- return f(), F(c, {
544
+ const s = C("ACascader"), c = C("ASpace");
545
+ return d(), F(c, {
546
546
  direction: "vertical",
547
547
  size: "large"
548
548
  }, {
549
- default: x(() => [
549
+ default: y(() => [
550
550
  B(s, {
551
551
  "field-names": e.fieldNames,
552
552
  "model-value": a.modelValue,
@@ -574,66 +574,66 @@ const sn = /* @__PURE__ */ Q(an, [["render", rn], ["__file", "Cascader.vue"]]),
574
574
  setup(t, { expose: n, emit: a }) {
575
575
  const e = t, o = a, l = m({});
576
576
  ue(async () => {
577
- const C = await Xe();
577
+ const x = await Xe();
578
578
  l.value = {
579
- Authorization: `Bearer ${C}`
579
+ Authorization: `Bearer ${x}`
580
580
  };
581
581
  });
582
- const s = (C) => ge(e.validations, C), c = Le(), i = c.apiBase, r = m(null), d = m("");
583
- function g(C, b, h) {
584
- return C.replace(/{WorkflowId}/g, b).replace(/{ClassName}/g, h);
582
+ const s = (x) => ge(e.validations, x), c = Le(), i = c.apiBase, r = m(null), u = m("");
583
+ function g(x, b, h) {
584
+ return x.replace(/{WorkflowId}/g, b).replace(/{ClassName}/g, h);
585
585
  }
586
- const _ = W(() => {
586
+ const _ = G(() => {
587
587
  if (e.config.uploadURL) {
588
- const C = i + e.config.uploadURL;
589
- return g(C, d.value, e.className);
588
+ const x = i + e.config.uploadURL;
589
+ return g(x, u.value, e.className);
590
590
  }
591
591
  return "";
592
- }), k = (C) => {
593
- C.stopPropagation(), r.value.submit();
592
+ }), S = (x) => {
593
+ x.stopPropagation(), r.value.submit();
594
594
  };
595
- function u(C) {
596
- const { file: b, name: h } = C, I = h ?? b.name;
597
- return new Promise((S, U) => {
595
+ function f(x) {
596
+ const { file: b, name: h } = x, I = h ?? b.name;
597
+ return new Promise((A, U) => {
598
598
  pt.confirm({
599
599
  title: "Confirm Delete",
600
600
  content: `Are you sure you want to delete ${I}?`,
601
601
  async onOk() {
602
- if (C.status !== "init" && e.config.removeFile)
603
- return await e.config.removeFile(C.uid), S(!0);
604
- S(!0);
602
+ if (x.status !== "init" && e.config.removeFile)
603
+ return await e.config.removeFile(x.uid), A(!0);
604
+ A(!0);
605
605
  },
606
606
  onCancel: () => U("cancel")
607
607
  });
608
608
  });
609
609
  }
610
- const p = m(null), A = m(null), J = (C) => {
611
- p.value && (p.value(C), p.value = null, A.value = null);
612
- }, Z = (C) => {
613
- A.value && (A.value(C), p.value = null, A.value = null);
614
- }, $ = m([]), X = (C) => {
615
- $.value = C.filter((b) => b.status === "init");
610
+ const p = m(null), V = m(null), J = (x) => {
611
+ p.value && (p.value(x), p.value = null, V.value = null);
612
+ }, ee = (x) => {
613
+ V.value && (V.value(x), p.value = null, V.value = null);
614
+ }, $ = m([]), X = (x) => {
615
+ $.value = x.filter((b) => b.status === "init");
616
616
  };
617
617
  n({
618
- submit(C) {
618
+ submit(x) {
619
619
  return new Promise((b, h) => {
620
- r.value ? (e.config.uploadURL && (d.value = C), p.value = b, A.value = h, $.value.length ? lt(() => {
620
+ r.value ? (e.config.uploadURL && (u.value = x), p.value = b, V.value = h, $.value.length ? lt(() => {
621
621
  r.value?.submit();
622
- }) : b(C)) : b(C);
622
+ }) : b(x)) : b(x);
623
623
  });
624
624
  },
625
625
  validate() {
626
- const C = e.config.files ?? [], b = [...$.value, ...C].length > 0 ? "hasFile" : "", h = s(b);
626
+ const x = e.config.files ?? [], b = [...$.value, ...x].length > 0 ? "hasFile" : "", h = s(b);
627
627
  return o("error", h.res ? "" : h.errorMessages), h.res;
628
628
  }
629
629
  });
630
- const oe = { props: e, emits: o, headers: l, validate: s, config: c, ApiBase: i, uploadRef: r, id: d, replaceIdAndClassName: g, action: _, submit: k, onBeforeRemove: u, uploadPromiseResolve: p, uploadPromiseReject: A, handleUploadSuccess: J, handleUploadError: Z, readyFiles: $, onChange: X };
630
+ const oe = { props: e, emits: o, headers: l, validate: s, config: c, ApiBase: i, uploadRef: r, id: u, replaceIdAndClassName: g, action: _, submit: S, onBeforeRemove: f, uploadPromiseResolve: p, uploadPromiseReject: V, handleUploadSuccess: J, handleUploadError: ee, readyFiles: $, onChange: X };
631
631
  return Object.defineProperty(oe, "__isScriptSetup", { enumerable: !1, value: !0 }), oe;
632
632
  }
633
633
  });
634
634
  function cn(t, n, a, e, o, l) {
635
- const s = w("a-button"), c = w("a-upload");
636
- return f(), F(c, {
635
+ const s = C("a-button"), c = C("a-upload");
636
+ return d(), F(c, {
637
637
  ref: "uploadRef",
638
638
  "default-file-list": e.props.config.files,
639
639
  action: e.action,
@@ -646,10 +646,10 @@ function cn(t, n, a, e, o, l) {
646
646
  onSuccess: e.handleUploadSuccess,
647
647
  onError: e.handleUploadError
648
648
  }, {
649
- "start-icon": x(() => n[0] || (n[0] = [])),
650
- "upload-button": x(() => [
649
+ "start-icon": y(() => n[0] || (n[0] = [])),
650
+ "upload-button": y(() => [
651
651
  B(s, { type: "primary" }, {
652
- default: x(() => n[1] || (n[1] = [
652
+ default: y(() => n[1] || (n[1] = [
653
653
  re("Select File", -1)
654
654
  ])),
655
655
  _: 1,
@@ -675,8 +675,8 @@ const dn = /* @__PURE__ */ Q(ln, [["render", cn], ["__file", "FileUpload.vue"]])
675
675
  o("update:modelValue", r), o("input", r);
676
676
  }, c = (r) => {
677
677
  o("update:modelValue", r);
678
- const d = l(r);
679
- o("error", d.res ? "" : d.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((g) => {
678
+ const u = l(r);
679
+ o("error", u.res ? "" : u.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((g) => {
680
680
  g.event === "change" && o(g.event, g.handlerName, r);
681
681
  });
682
682
  };
@@ -691,8 +691,8 @@ const dn = /* @__PURE__ */ Q(ln, [["render", cn], ["__file", "FileUpload.vue"]])
691
691
  }
692
692
  });
693
693
  function fn(t, n, a, e, o, l) {
694
- const s = w("ATextarea");
695
- return f(), F(s, {
694
+ const s = C("ATextarea");
695
+ return d(), F(s, {
696
696
  "model-value": e.props.modelValue,
697
697
  placeholder: "Please enter something",
698
698
  "allow-clear": "",
@@ -717,8 +717,8 @@ const pn = /* @__PURE__ */ Q(un, [["render", fn], ["__file", "TextArea.vue"]]),
717
717
  emits: /* @__PURE__ */ ce(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
718
718
  setup(t, { expose: n, emit: a }) {
719
719
  const e = t, o = a, l = ye(t, "modelValue"), s = (r) => ge(e.validations, r), c = (r) => {
720
- const d = s(r);
721
- o("error", d.res ? "" : d.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((g) => {
720
+ const u = s(r);
721
+ o("error", u.res ? "" : u.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((g) => {
722
722
  g.event === "change" && o(g.event, g.handlerName, r);
723
723
  });
724
724
  };
@@ -733,15 +733,15 @@ const pn = /* @__PURE__ */ Q(un, [["render", fn], ["__file", "TextArea.vue"]]),
733
733
  }
734
734
  });
735
735
  function gn(t, n, a, e, o, l) {
736
- const s = w("ACheckbox");
737
- return f(), F(s, {
736
+ const s = C("ACheckbox");
737
+ return d(), F(s, {
738
738
  modelValue: e.model,
739
739
  "onUpdate:modelValue": n[0] || (n[0] = (c) => e.model = c),
740
740
  clearable: "",
741
741
  disabled: e.props.readonly || e.props.config.Readonly,
742
742
  onChange: e.changeHandler
743
743
  }, {
744
- default: x(() => n[1] || (n[1] = [
744
+ default: y(() => n[1] || (n[1] = [
745
745
  re("Yes", -1)
746
746
  ])),
747
747
  _: 1,
@@ -788,7 +788,7 @@ const wn = E({
788
788
  click: (t) => !0
789
789
  },
790
790
  setup(t, { emit: n }) {
791
- const a = et("icon"), e = W(() => [a, `${a}-question-circle`, { [`${a}-spin`]: t.spin }]), o = W(() => {
791
+ const a = et("icon"), e = G(() => [a, `${a}-question-circle`, { [`${a}-spin`]: t.spin }]), o = G(() => {
792
792
  const s = {};
793
793
  return t.size && (s.fontSize = tt(t.size) ? `${t.size}px` : t.size), t.rotate && (s.transform = `rotate(${t.rotate}deg)`), s;
794
794
  });
@@ -802,7 +802,7 @@ const wn = E({
802
802
  }
803
803
  }), kn = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
804
804
  function Cn(t, n, a, e, o, l) {
805
- return f(), V("svg", {
805
+ return d(), w("svg", {
806
806
  viewBox: "0 0 48 48",
807
807
  fill: "none",
808
808
  xmlns: "http://www.w3.org/2000/svg",
@@ -814,8 +814,8 @@ function Cn(t, n, a, e, o, l) {
814
814
  "stroke-linejoin": t.strokeLinejoin,
815
815
  onClick: n[0] || (n[0] = (...s) => t.onClick && t.onClick(...s))
816
816
  }, n[1] || (n[1] = [
817
- 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),
818
- 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)
817
+ k("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),
818
+ k("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)
819
819
  ]), 14, kn);
820
820
  }
821
821
  var Ue = /* @__PURE__ */ nt(wn, [["render", Cn]]);
@@ -852,7 +852,7 @@ const Sn = Object.assign(Ue, {
852
852
  click: (t) => !0
853
853
  },
854
854
  setup(t, { emit: n }) {
855
- const a = et("icon"), e = W(() => [a, `${a}-download`, { [`${a}-spin`]: t.spin }]), o = W(() => {
855
+ const a = et("icon"), e = G(() => [a, `${a}-download`, { [`${a}-spin`]: t.spin }]), o = G(() => {
856
856
  const s = {};
857
857
  return t.size && (s.fontSize = tt(t.size) ? `${t.size}px` : t.size), t.rotate && (s.transform = `rotate(${t.rotate}deg)`), s;
858
858
  });
@@ -866,7 +866,7 @@ const Sn = Object.assign(Ue, {
866
866
  }
867
867
  }), An = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
868
868
  function Vn(t, n, a, e, o, l) {
869
- return f(), V("svg", {
869
+ return d(), w("svg", {
870
870
  viewBox: "0 0 48 48",
871
871
  fill: "none",
872
872
  xmlns: "http://www.w3.org/2000/svg",
@@ -878,7 +878,7 @@ function Vn(t, n, a, e, o, l) {
878
878
  "stroke-linejoin": t.strokeLinejoin,
879
879
  onClick: n[0] || (n[0] = (...s) => t.onClick && t.onClick(...s))
880
880
  }, n[1] || (n[1] = [
881
- y("path", { d: "m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6" }, null, -1)
881
+ k("path", { d: "m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6" }, null, -1)
882
882
  ]), 14, An);
883
883
  }
884
884
  var De = /* @__PURE__ */ nt(xn, [["render", Vn]]);
@@ -904,7 +904,7 @@ const In = Object.assign(De, {
904
904
  }),
905
905
  emits: /* @__PURE__ */ ce(["update:modelValue", "change", "error"], ["update:modelValue"]),
906
906
  setup(t, { expose: n, emit: a }) {
907
- const e = t, o = a, l = ye(t, "modelValue"), s = Fe("widgetRef"), c = W(() => {
907
+ const e = t, o = a, l = ye(t, "modelValue"), s = Fe("widgetRef"), c = G(() => {
908
908
  switch (e.config?.widget?.widget) {
909
909
  case "TextBox":
910
910
  return Ke;
@@ -925,23 +925,23 @@ const In = Object.assign(De, {
925
925
  default:
926
926
  return Ke;
927
927
  }
928
- }), i = m(""), r = (u) => {
929
- i.value = u;
930
- }, d = (u, p) => {
931
- o("change", u, p);
928
+ }), i = m(""), r = (f) => {
929
+ i.value = f;
930
+ }, u = (f, p) => {
931
+ o("change", f, p);
932
932
  };
933
933
  function g() {
934
934
  return e.config?.widget?.widget === "File";
935
935
  }
936
- function _(u) {
937
- return u === "OtherInformationText" ? "Other Information" : u === "Other Information" ? "" : u;
936
+ function _(f) {
937
+ return f === "OtherInformationText" ? "Other Information" : f === "Other Information" ? "" : f;
938
938
  }
939
939
  n({
940
940
  isFileUpload() {
941
941
  return e.config?.widget?.widget === "File";
942
942
  },
943
- submit(u) {
944
- return g() ? s.value.submit(u) : Promise.resolve(u);
943
+ submit(f) {
944
+ return g() ? s.value.submit(f) : Promise.resolve(f);
945
945
  },
946
946
  validate() {
947
947
  return s.value?.validate();
@@ -950,10 +950,10 @@ const In = Object.assign(De, {
950
950
  return e?.config?.widget?.title;
951
951
  }
952
952
  });
953
- const k = { props: e, emits: o, model: l, widgetRef: s, curComp: c, errMsg: i, errHandler: r, changeHandler: d, isFileUpload: g, formatTitle: _, get IconQuestionCircle() {
953
+ const S = { props: e, emits: o, model: l, widgetRef: s, curComp: c, errMsg: i, errHandler: r, changeHandler: u, isFileUpload: g, formatTitle: _, get IconQuestionCircle() {
954
954
  return Sn;
955
955
  } };
956
- return Object.defineProperty(k, "__isScriptSetup", { enumerable: !1, value: !0 }), k;
956
+ return Object.defineProperty(S, "__isScriptSetup", { enumerable: !1, value: !0 }), S;
957
957
  }
958
958
  }), Pn = { class: "title" }, Nn = {
959
959
  key: 0,
@@ -963,23 +963,26 @@ const In = Object.assign(De, {
963
963
  class: "err-msg"
964
964
  };
965
965
  function Dn(t, n, a, e, o, l) {
966
- const s = w("a-tooltip");
967
- return f(), V("div", null, [
968
- y("div", Pn, [
969
- re(te(e.formatTitle(e.props?.config?.widget?.title)) + " ", 1),
970
- e.props.config.validations.length ? (f(), V("span", Nn, "*")) : ne("", !0),
971
- e.props.config.widget.isVisible ? (f(), F(s, {
966
+ const s = C("a-tooltip");
967
+ return d(), w("div", null, [
968
+ k("div", Pn, [
969
+ re(Z(e.formatTitle(e.props?.config?.widget?.title)) + " ", 1),
970
+ e.props.config.validations.length ? (d(), w("span", Nn, "*")) : ne("", !0),
971
+ e.props.config.widget.isVisible ? (d(), F(s, {
972
972
  key: 1,
973
- content: e.props.config.outputText
973
+ "background-color": "#7A00E6"
974
974
  }, {
975
- default: x(() => [
975
+ content: y(() => [
976
+ (d(!0), w(O, null, W(e.props.config.widget.outputText, (c) => (d(), w("div", null, Z(c), 1))), 256))
977
+ ]),
978
+ default: y(() => [
976
979
  B(e.IconQuestionCircle, { class: "icon" })
977
980
  ]),
978
981
  _: 1
979
- }, 8, ["content"])) : ne("", !0)
982
+ })) : ne("", !0)
980
983
  ]),
981
- y("div", null, [
982
- (f(), F(He(e.curComp), {
984
+ k("div", null, [
985
+ (d(), F(He(e.curComp), {
983
986
  ref: "widgetRef",
984
987
  modelValue: e.model,
985
988
  "onUpdate:modelValue": n[0] || (n[0] = (c) => e.model = c),
@@ -991,11 +994,11 @@ function Dn(t, n, a, e, o, l) {
991
994
  onError: e.errHandler,
992
995
  onChange: e.changeHandler
993
996
  }, null, 40, ["modelValue", "field-key", "config", "validations", "triggers", "class-name"])),
994
- e.errMsg.length > 0 ? (f(), V("div", Un, te(e.errMsg), 1)) : ne("", !0)
997
+ e.errMsg.length > 0 ? (d(), w("div", Un, Z(e.errMsg), 1)) : ne("", !0)
995
998
  ])
996
999
  ]);
997
1000
  }
998
- const je = /* @__PURE__ */ Q(Tn, [["render", Dn], ["__scopeId", "data-v-08801578"], ["__file", "index.vue"]]), Bn = /* @__PURE__ */ E({
1001
+ const je = /* @__PURE__ */ Q(Tn, [["render", Dn], ["__scopeId", "data-v-9e5e8c37"], ["__file", "index.vue"]]), Bn = /* @__PURE__ */ E({
999
1002
  __name: "SubmitButton",
1000
1003
  props: {
1001
1004
  url: {},
@@ -1014,13 +1017,13 @@ const je = /* @__PURE__ */ Q(Tn, [["render", Dn], ["__scopeId", "data-v-08801578
1014
1017
  }
1015
1018
  });
1016
1019
  function Fn(t, n, a, e, o, l) {
1017
- const s = w("AButton");
1018
- return f(), F(s, {
1020
+ const s = C("AButton");
1021
+ return d(), F(s, {
1019
1022
  loading: a.loading,
1020
1023
  type: "primary",
1021
1024
  onClick: e.clickHandler
1022
1025
  }, {
1023
- default: x(() => [
1026
+ default: y(() => [
1024
1027
  de(t.$slots, "default")
1025
1028
  ]),
1026
1029
  _: 3
@@ -1045,9 +1048,9 @@ const Ge = /* @__PURE__ */ Q(Bn, [["render", Fn], ["__file", "SubmitButton.vue"]
1045
1048
  }
1046
1049
  });
1047
1050
  function Ln(t, n, a, e, o, l) {
1048
- const s = w("ALink");
1049
- return f(), F(s, { onClick: e.clickHandler }, {
1050
- default: x(() => [
1051
+ const s = C("ALink");
1052
+ return d(), F(s, { onClick: e.clickHandler }, {
1053
+ default: y(() => [
1051
1054
  de(t.$slots, "default")
1052
1055
  ]),
1053
1056
  _: 3
@@ -1063,10 +1066,10 @@ const Rn = /* @__PURE__ */ Q(Hn, [["render", Ln], ["__file", "DetailLink.vue"]])
1063
1066
  setup(t, { expose: n, emit: a }) {
1064
1067
  n();
1065
1068
  const e = t, o = a;
1066
- function l(d, g) {
1067
- o("click", e.config.widget, d, g, e.config.title);
1069
+ function l(u, g) {
1070
+ o("click", e.config.widget, u, g, e.config.title);
1068
1071
  }
1069
- const s = W(() => {
1072
+ const s = G(() => {
1070
1073
  switch (e.config.location) {
1071
1074
  case "InOperation":
1072
1075
  return Ge;
@@ -1075,19 +1078,19 @@ const Rn = /* @__PURE__ */ Q(Hn, [["render", Ln], ["__file", "DetailLink.vue"]])
1075
1078
  default:
1076
1079
  return Ge;
1077
1080
  }
1078
- }), c = W(() => e.config.widget === Y.Submit ? e.config.requestUrl ?? "" : e.config.widget === Y.Link ? e.config.redirectUrl ?? "" : ""), i = W(() => e.config.redirectType ?? "Details"), r = { props: e, emits: o, clickHandler: l, curComp: s, curUrl: c, redirectType: i };
1081
+ }), c = G(() => e.config.widget === Y.Submit ? e.config.requestUrl ?? "" : e.config.widget === Y.Link ? e.config.redirectUrl ?? "" : ""), i = G(() => e.config.redirectType ?? "Details"), r = { props: e, emits: o, clickHandler: l, curComp: s, curUrl: c, redirectType: i };
1079
1082
  return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
1080
1083
  }
1081
1084
  });
1082
1085
  function $n(t, n, a, e, o, l) {
1083
- return f(), F(He(e.curComp), {
1086
+ return d(), F(He(e.curComp), {
1084
1087
  url: e.curUrl,
1085
1088
  "redirect-type": e.redirectType,
1086
1089
  loading: a.loading,
1087
1090
  onClick: e.clickHandler
1088
1091
  }, {
1089
- default: x(() => [
1090
- re(te(e.props.config.title), 1)
1092
+ default: y(() => [
1093
+ re(Z(e.props.config.title), 1)
1091
1094
  ]),
1092
1095
  _: 1
1093
1096
  }, 8, ["url", "redirect-type", "loading"]);
@@ -1123,25 +1126,25 @@ const Mn = /* @__PURE__ */ E({
1123
1126
  }
1124
1127
  }), En = { class: "top-bar" }, zn = { class: "banner-info" }, Kn = { class: "page-title" }, Wn = { class: "page-subtitle" }, Gn = { class: "avatar-wrapper" }, qn = { class: "user-email" };
1125
1128
  function Yn(t, n, a, e, o, l) {
1126
- const s = w("a-avatar"), c = w("a-popover");
1127
- return f(), V("div", En, [
1128
- y("div", zn, [
1129
- y("div", Kn, te(a.title), 1),
1130
- y("div", Wn, te(a.subTitle), 1)
1129
+ const s = C("a-avatar"), c = C("a-popover");
1130
+ return d(), w("div", En, [
1131
+ k("div", zn, [
1132
+ k("div", Kn, Z(a.title), 1),
1133
+ k("div", Wn, Z(a.subTitle), 1)
1131
1134
  ]),
1132
- y("div", Gn, [
1135
+ k("div", Gn, [
1133
1136
  B(c, { trigger: "click" }, {
1134
- content: x(() => [
1135
- y("div", qn, te(a.email), 1)
1137
+ content: y(() => [
1138
+ k("div", qn, Z(a.email), 1)
1136
1139
  ]),
1137
- default: x(() => [
1140
+ default: y(() => [
1138
1141
  B(s, {
1139
1142
  size: 48,
1140
1143
  autoFixFontSize: "",
1141
1144
  style: { cursor: "pointer", background: "#165DFF", color: "#fff" }
1142
1145
  }, {
1143
- default: x(() => [
1144
- re(te(a.email.charAt(0).toUpperCase()), 1)
1146
+ default: y(() => [
1147
+ re(Z(a.email.charAt(0).toUpperCase()), 1)
1145
1148
  ]),
1146
1149
  _: 1
1147
1150
  })
@@ -1251,56 +1254,56 @@ const Qn = /* @__PURE__ */ E({
1251
1254
  title: "",
1252
1255
  subTitle: ""
1253
1256
  }
1254
- }), d = m([]), g = m({});
1257
+ }), u = m([]), g = m({});
1255
1258
  function _(h) {
1256
- return h ? Object.entries(h).map(([S, U]) => ({
1257
- fieldKey: S,
1259
+ return h ? Object.entries(h).map(([A, U]) => ({
1260
+ fieldKey: A,
1258
1261
  ...U
1259
- })).filter((S) => S.widget && S.widget.widget !== "Hidden").filter((S) => !X.value.includes(S.fieldKey)) : [];
1262
+ })).filter((A) => A.widget && A.widget.widget !== "Hidden").filter((A) => !X.value.includes(A.fieldKey)) : [];
1260
1263
  }
1261
- function k(h) {
1262
- return h ? Object.entries(h).filter(([S, U]) => U.dependent).reduce((S, [U, j]) => (S[U] = j.dependent, S), {}) : [];
1264
+ function S(h) {
1265
+ return h ? Object.entries(h).filter(([A, U]) => U.dependent).reduce((A, [U, j]) => (A[U] = j.dependent, A), {}) : [];
1263
1266
  }
1264
- const u = W(() => r.value?.actions ? [...r.value.actions].reverse() : []), p = m({}), A = m(!1);
1267
+ const f = G(() => r.value?.actions ? [...r.value.actions].reverse() : []), p = m({}), V = m(!1);
1265
1268
  ue(async () => {
1266
- A.value = !0;
1269
+ V.value = !0;
1267
1270
  const h = new Te().setWorkflowId(i.workflowId).setClassName(i.className).setStore({ svrStore: e, bpmStore: a }).build();
1268
- r.value = await h.getPageData(), d.value = _(r.value.fields), g.value = k(r.value.fields);
1271
+ r.value = await h.getPageData(), u.value = _(r.value.fields), g.value = S(r.value.fields);
1269
1272
  for (const I in r.value.fields) {
1270
1273
  if (r.value.fields[I].widget?.widget === "File") {
1271
- const S = d.value.find((U) => U.fieldKey === I);
1272
- S && S.widget && (S.widget.files = []);
1274
+ const A = u.value.find((U) => U.fieldKey === I);
1275
+ A && A.widget && (A.widget.files = []);
1273
1276
  }
1274
1277
  p.value[I] = r.value.fields[I].modelValue;
1275
1278
  }
1276
- A.value = !1;
1279
+ V.value = !1;
1277
1280
  });
1278
1281
  function J() {
1279
1282
  return e()?.userInfo?.email_address ?? "";
1280
1283
  }
1281
- async function Z(h, I, S, U, j) {
1284
+ async function ee(h, I, A, U, j) {
1282
1285
  switch (I) {
1283
1286
  case Y.Submit:
1284
1287
  let L = !0;
1285
- if (s.value?.forEach((G) => {
1286
- G?.validate && (G.validate() || (L = !1));
1288
+ if (s.value?.forEach((q) => {
1289
+ q?.validate && (q.validate() || (L = !1));
1287
1290
  }), !L) {
1288
1291
  c?.appContext.config.globalProperties.$message.error("form validation failed, please check the input fields");
1289
1292
  return;
1290
1293
  }
1291
- A.value = !0;
1294
+ V.value = !0;
1292
1295
  try {
1293
- const G = await Tt(i.className, { ...p.value, ...g.value }, S), se = s.value?.map((ie) => ie?.submit ? ie.submit(G.toString()) : Promise.resolve()) || [];
1294
- await Promise.all(se), A.value = !1, c?.appContext.config.globalProperties.$notification.success(`Your grading request has been submitted, ID is ${G.toString()}.`), o.push({ name: "Details", params: { workflowId: G.toString() } });
1296
+ const q = await Tt(i.className, { ...p.value, ...g.value }, A), se = s.value?.map((ie) => ie?.submit ? ie.submit(q.toString()) : Promise.resolve()) || [];
1297
+ await Promise.all(se), V.value = !1, c?.appContext.config.globalProperties.$notification.success(`Your grading request has been submitted, ID is ${q.toString()}.`), o.push({ name: "Details", params: { workflowId: q.toString() } });
1295
1298
  } catch {
1296
- c?.appContext.config.globalProperties.$notification.error("Failed to submit your grading request"), A.value = !1;
1299
+ c?.appContext.config.globalProperties.$notification.error("Failed to submit your grading request"), V.value = !1;
1297
1300
  }
1298
1301
  break;
1299
1302
  case Y.Link:
1300
1303
  try {
1301
1304
  await l[h.eventName || ""]?.(p.value, X), o.push({ name: U, params: { className: i.className } });
1302
- } catch (G) {
1303
- console.error("Error in link action trigger:", G);
1305
+ } catch (q) {
1306
+ console.error("Error in link action trigger:", q);
1304
1307
  }
1305
1308
  break;
1306
1309
  default:
@@ -1316,9 +1319,9 @@ const Qn = /* @__PURE__ */ E({
1316
1319
  "positionId"
1317
1320
  ], X = m($);
1318
1321
  function oe(h, I) {
1319
- l[h]?.({ fieldValue: I, hiddenFields: X, formData: p }), r.value && (d.value = _(r.value.fields));
1322
+ l[h]?.({ fieldValue: I, hiddenFields: X, formData: p }), r.value && (u.value = _(r.value.fields));
1320
1323
  }
1321
- const C = W(() => Oe(d.value)), b = { bpmStore: a, svrStore: e, router: o, triggers: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: d, _dependent: g, genField: _, genDependentField: k, reversedActions: u, _data: p, loading: A, getApproverEmail: J, clickHandler: Z, newHiddenFields: $, hiddenFields: X, changeHandler: oe, groupedFields: C, DataWidgets: je, ActionButton: Se, TopBar: Ie };
1324
+ const x = G(() => Oe(u.value)), b = { bpmStore: a, svrStore: e, router: o, triggers: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: u, _dependent: g, genField: _, genDependentField: S, reversedActions: f, _data: p, loading: V, getApproverEmail: J, clickHandler: ee, newHiddenFields: $, hiddenFields: X, changeHandler: oe, groupedFields: x, DataWidgets: je, ActionButton: Se, TopBar: Ie };
1322
1325
  return Object.defineProperty(b, "__isScriptSetup", { enumerable: !1, value: !0 }), b;
1323
1326
  }
1324
1327
  }), Jn = { class: "page-container" }, Xn = { class: "page-body" }, Zn = { class: "form-card" }, eo = { class: "form-fields-vertical" }, to = { class: "form-fields" }, no = {
@@ -1326,29 +1329,29 @@ const Qn = /* @__PURE__ */ E({
1326
1329
  class: "form-content"
1327
1330
  }, oo = { class: "page-footer" }, ao = { class: "action-container" }, ro = { class: "action-buttons" };
1328
1331
  function so(t, n, a, e, o, l) {
1329
- const s = w("a-card"), c = w("a-spin");
1330
- return f(), V("div", Jn, [
1332
+ const s = C("a-card"), c = C("a-spin");
1333
+ return d(), w("div", Jn, [
1331
1334
  B(e.TopBar, {
1332
1335
  title: e.pageData.banner.title,
1333
1336
  subTitle: e.pageData.banner.subTitle,
1334
1337
  email: e.getApproverEmail()
1335
1338
  }, null, 8, ["title", "subTitle", "email"]),
1336
- y("div", Xn, [
1339
+ k("div", Xn, [
1337
1340
  B(c, {
1338
1341
  loading: e.loading,
1339
1342
  class: "form-container"
1340
1343
  }, {
1341
- default: x(() => [
1342
- y("div", Zn, [
1343
- y("div", eo, [
1344
- (f(!0), V(M, null, q(e.groupedFields, (i) => (f(), F(s, {
1344
+ default: y(() => [
1345
+ k("div", Zn, [
1346
+ k("div", eo, [
1347
+ (d(!0), w(O, null, W(e.groupedFields, (i) => (d(), F(s, {
1345
1348
  key: i.name,
1346
1349
  title: i.name,
1347
1350
  style: { "margin-bottom": "24px" }
1348
1351
  }, {
1349
- default: x(() => [
1350
- y("div", to, [
1351
- (f(!0), V(M, null, q(i.fields, (r) => (f(), F(e.DataWidgets, {
1352
+ default: y(() => [
1353
+ k("div", to, [
1354
+ (d(!0), w(O, null, W(i.fields, (r) => (d(), F(e.DataWidgets, {
1352
1355
  key: r.fieldKey,
1353
1356
  ref_for: !0,
1354
1357
  ref: "dataWidgets",
@@ -1356,7 +1359,7 @@ function so(t, n, a, e, o, l) {
1356
1359
  config: r,
1357
1360
  "class-name": a.className,
1358
1361
  modelValue: e._data[r.fieldKey],
1359
- "onUpdate:modelValue": (d) => e._data[r.fieldKey] = d,
1362
+ "onUpdate:modelValue": (u) => e._data[r.fieldKey] = u,
1360
1363
  class: "form-field",
1361
1364
  onChange: e.changeHandler
1362
1365
  }, null, 8, ["field-key", "config", "class-name", "modelValue", "onUpdate:modelValue"]))), 128))
@@ -1365,7 +1368,7 @@ function so(t, n, a, e, o, l) {
1365
1368
  _: 2
1366
1369
  }, 1032, ["title"]))), 128))
1367
1370
  ]),
1368
- t.$slots.content ? (f(), V("div", no, [
1371
+ t.$slots.content ? (d(), w("div", no, [
1369
1372
  de(t.$slots, "content", {}, void 0, !0)
1370
1373
  ])) : ne("", !0)
1371
1374
  ])
@@ -1373,11 +1376,11 @@ function so(t, n, a, e, o, l) {
1373
1376
  _: 3
1374
1377
  }, 8, ["loading"])
1375
1378
  ]),
1376
- y("div", oo, [
1377
- y("div", ao, [
1379
+ k("div", oo, [
1380
+ k("div", ao, [
1378
1381
  de(t.$slots, "action", {}, void 0, !0),
1379
- y("div", ro, [
1380
- (f(!0), V(M, null, q(e.reversedActions, (i) => (f(), F(e.ActionButton, {
1382
+ k("div", ro, [
1383
+ (d(!0), w(O, null, W(e.reversedActions, (i) => (d(), F(e.ActionButton, {
1381
1384
  key: i.title,
1382
1385
  loading: e.loading,
1383
1386
  config: i,
@@ -1405,19 +1408,19 @@ const io = /* @__PURE__ */ Q(Qn, [["render", so], ["__scopeId", "data-v-2fce8732
1405
1408
  title: "",
1406
1409
  subTitle: ""
1407
1410
  }
1408
- }), d = m([]), g = m({});
1411
+ }), u = m([]), g = m({});
1409
1412
  function _(b) {
1410
- return b ? Object.entries(b).map(([I, S]) => ({
1413
+ return b ? Object.entries(b).map(([I, A]) => ({
1411
1414
  fieldKey: I,
1412
- ...S
1415
+ ...A
1413
1416
  })).filter((I) => I.widget && I.widget.widget !== "Hidden").filter((I) => !$.value.includes(I.fieldKey)) : [];
1414
1417
  }
1415
- function k(b) {
1416
- return b ? Object.entries(b).filter(([I, S]) => S.dependent).reduce((I, [S, U]) => (I[S] = U.dependent, I), {}) : [];
1418
+ function S(b) {
1419
+ return b ? Object.entries(b).filter(([I, A]) => A.dependent).reduce((I, [A, U]) => (I[A] = U.dependent, I), {}) : [];
1417
1420
  }
1418
- const u = W(() => r.value?.actions ? [...r.value.actions].reverse() : []), p = m({}), A = m(!1);
1421
+ const f = G(() => r.value?.actions ? [...r.value.actions].reverse() : []), p = m({}), V = m(!1);
1419
1422
  ue(async () => {
1420
- A.value = !0;
1423
+ V.value = !0;
1421
1424
  const b = new Te().setPageActionType(fe.Update).setClassName(i.className).setStore({ svrStore: o, bpmStore: l }).setWorkflowId(i.workflowId).build();
1422
1425
  r.value = await b.getPageData();
1423
1426
  const h = await b.getBtnList(), I = await b.getFiles();
@@ -1425,21 +1428,21 @@ const io = /* @__PURE__ */ Q(Qn, [["render", so], ["__scopeId", "data-v-2fce8732
1425
1428
  const j = h.find((L) => L.button === U.title);
1426
1429
  return j ? j.isShow : !0;
1427
1430
  });
1428
- const S = r.value.fields.requestType.modelValue;
1429
- e.Test?.({ fieldValue: S, hiddenFields: $, formData: p }), d.value = _(r.value.fields), g.value = k(r.value.fields);
1431
+ const A = r.value.fields.requestType.modelValue;
1432
+ e.Test?.({ fieldValue: A, hiddenFields: $, formData: p }), u.value = _(r.value.fields), g.value = S(r.value.fields);
1430
1433
  for (const U in r.value.fields) {
1431
1434
  if (r.value.fields[U].widget?.widget === "File") {
1432
- const j = d.value.find((L) => L.fieldKey === U);
1435
+ const j = u.value.find((L) => L.fieldKey === U);
1433
1436
  j && j.widget && (j.widget.files = I[U] ?? [], j.widget.removeFile = (L) => b.removeFile(L));
1434
1437
  }
1435
1438
  p.value[U] = r.value.fields[U].modelValue;
1436
1439
  }
1437
- A.value = !1;
1440
+ V.value = !1;
1438
1441
  });
1439
1442
  function J() {
1440
1443
  return o()?.userInfo?.email_address ?? "";
1441
1444
  }
1442
- async function Z(b, h, I, S, U) {
1445
+ async function ee(b, h, I, A, U) {
1443
1446
  switch (h) {
1444
1447
  case Y.Submit:
1445
1448
  let j = !0;
@@ -1449,17 +1452,17 @@ const io = /* @__PURE__ */ Q(Qn, [["render", so], ["__scopeId", "data-v-2fce8732
1449
1452
  c?.appContext.config.globalProperties.$message.error("form validation failed, please check the input fields");
1450
1453
  return;
1451
1454
  }
1452
- A.value = !0;
1455
+ V.value = !0;
1453
1456
  try {
1454
- const L = await Pt(i.className, i.workflowId, { ...p.value, ...g.value }, I), G = s.value?.map((se) => se?.submit ? se.submit(L.toString()) : Promise.resolve()) || [];
1455
- await Promise.all(G), A.value = !1, c?.appContext.config.globalProperties.$notification.success(`Your grading request has been submitted, ID is ${L.toString()}.`);
1457
+ const L = await Pt(i.className, i.workflowId, { ...p.value, ...g.value }, I), q = s.value?.map((se) => se?.submit ? se.submit(L.toString()) : Promise.resolve()) || [];
1458
+ await Promise.all(q), V.value = !1, c?.appContext.config.globalProperties.$notification.success(`Your grading request has been submitted, ID is ${L.toString()}.`);
1456
1459
  } catch {
1457
- c?.appContext.config.globalProperties.$notification.error("Failed to submit your grading request"), A.value = !1;
1460
+ c?.appContext.config.globalProperties.$notification.error("Failed to submit your grading request"), V.value = !1;
1458
1461
  }
1459
1462
  break;
1460
1463
  case Y.Link:
1461
1464
  try {
1462
- await e[b.eventName || ""]?.(p.value, $), a.push({ name: S, params: { className: i.className } });
1465
+ await e[b.eventName || ""]?.(p.value, $), a.push({ name: A, params: { className: i.className } });
1463
1466
  } catch {
1464
1467
  }
1465
1468
  break;
@@ -1469,39 +1472,39 @@ const io = /* @__PURE__ */ Q(Qn, [["render", so], ["__scopeId", "data-v-2fce8732
1469
1472
  }
1470
1473
  const $ = m([]);
1471
1474
  function X(b, h) {
1472
- e[b]?.({ fieldValue: h, hiddenFields: $, formData: p }), r.value && (d.value = _(r.value.fields));
1475
+ e[b]?.({ fieldValue: h, hiddenFields: $, formData: p }), r.value && (u.value = _(r.value.fields));
1473
1476
  }
1474
- const oe = W(() => Oe(d.value)), C = { router: a, triggers: e, svrStore: o, bpmStore: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: d, _dependent: g, genField: _, genDependentField: k, reversedActions: u, _data: p, loading: A, getApproverEmail: J, clickHandler: Z, hiddenFields: $, changeHandler: X, groupedFields: oe, DataWidgets: je, ActionButton: Se, TopBar: Ie };
1475
- return Object.defineProperty(C, "__isScriptSetup", { enumerable: !1, value: !0 }), C;
1477
+ const oe = G(() => Oe(u.value)), x = { router: a, triggers: e, svrStore: o, bpmStore: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: u, _dependent: g, genField: _, genDependentField: S, reversedActions: f, _data: p, loading: V, getApproverEmail: J, clickHandler: ee, hiddenFields: $, changeHandler: X, groupedFields: oe, DataWidgets: je, ActionButton: Se, TopBar: Ie };
1478
+ return Object.defineProperty(x, "__isScriptSetup", { enumerable: !1, value: !0 }), x;
1476
1479
  }
1477
1480
  }), co = { class: "page-container" }, uo = { class: "page-body" }, fo = { class: "form-card" }, po = { class: "form-fields-vertical" }, mo = { class: "form-fields" }, go = {
1478
1481
  key: 0,
1479
1482
  class: "form-content"
1480
1483
  }, _o = { class: "page-footer" }, vo = { class: "action-container" }, bo = { class: "action-buttons" };
1481
1484
  function ho(t, n, a, e, o, l) {
1482
- const s = w("a-card"), c = w("a-spin");
1483
- return f(), V("div", co, [
1485
+ const s = C("a-card"), c = C("a-spin");
1486
+ return d(), w("div", co, [
1484
1487
  B(e.TopBar, {
1485
1488
  title: e.pageData.banner.title,
1486
1489
  subTitle: e.pageData.banner.subTitle,
1487
1490
  email: e.getApproverEmail()
1488
1491
  }, null, 8, ["title", "subTitle", "email"]),
1489
- y("div", uo, [
1492
+ k("div", uo, [
1490
1493
  B(c, {
1491
1494
  loading: e.loading,
1492
1495
  class: "form-container"
1493
1496
  }, {
1494
- default: x(() => [
1495
- y("div", fo, [
1496
- y("div", po, [
1497
- (f(!0), V(M, null, q(e.groupedFields, (i) => (f(), F(s, {
1497
+ default: y(() => [
1498
+ k("div", fo, [
1499
+ k("div", po, [
1500
+ (d(!0), w(O, null, W(e.groupedFields, (i) => (d(), F(s, {
1498
1501
  key: i.name,
1499
1502
  title: i.name,
1500
1503
  style: { "margin-bottom": "24px" }
1501
1504
  }, {
1502
- default: x(() => [
1503
- y("div", mo, [
1504
- (f(!0), V(M, null, q(i.fields, (r) => (f(), F(e.DataWidgets, {
1505
+ default: y(() => [
1506
+ k("div", mo, [
1507
+ (d(!0), w(O, null, W(i.fields, (r) => (d(), F(e.DataWidgets, {
1505
1508
  key: r.fieldKey,
1506
1509
  ref_for: !0,
1507
1510
  ref: "dataWidgets",
@@ -1509,7 +1512,7 @@ function ho(t, n, a, e, o, l) {
1509
1512
  config: r,
1510
1513
  "class-name": a.className,
1511
1514
  modelValue: e._data[r.fieldKey],
1512
- "onUpdate:modelValue": (d) => e._data[r.fieldKey] = d,
1515
+ "onUpdate:modelValue": (u) => e._data[r.fieldKey] = u,
1513
1516
  class: "form-field",
1514
1517
  onChange: e.changeHandler
1515
1518
  }, null, 8, ["field-key", "config", "class-name", "modelValue", "onUpdate:modelValue"]))), 128))
@@ -1518,7 +1521,7 @@ function ho(t, n, a, e, o, l) {
1518
1521
  _: 2
1519
1522
  }, 1032, ["title"]))), 128))
1520
1523
  ]),
1521
- t.$slots.content ? (f(), V("div", go, [
1524
+ t.$slots.content ? (d(), w("div", go, [
1522
1525
  de(t.$slots, "content", {}, void 0, !0)
1523
1526
  ])) : ne("", !0)
1524
1527
  ])
@@ -1526,11 +1529,11 @@ function ho(t, n, a, e, o, l) {
1526
1529
  _: 3
1527
1530
  }, 8, ["loading"])
1528
1531
  ]),
1529
- y("div", _o, [
1530
- y("div", vo, [
1532
+ k("div", _o, [
1533
+ k("div", vo, [
1531
1534
  de(t.$slots, "action", {}, void 0, !0),
1532
- y("div", bo, [
1533
- (f(!0), V(M, null, q(e.reversedActions, (i) => (f(), F(e.ActionButton, {
1535
+ k("div", bo, [
1536
+ (d(!0), w(O, null, W(e.reversedActions, (i) => (d(), F(e.ActionButton, {
1534
1537
  key: i.title,
1535
1538
  loading: e.loading,
1536
1539
  config: i,
@@ -1556,7 +1559,7 @@ const ko = /* @__PURE__ */ E({
1556
1559
  n();
1557
1560
  const a = Ve(), e = Ae(), o = $e(), l = xe(), s = wo(), c = pe(), i = t;
1558
1561
  let r;
1559
- const d = m({
1562
+ const u = m({
1560
1563
  pageType: "",
1561
1564
  fields: {},
1562
1565
  globalValidations: [],
@@ -1566,13 +1569,13 @@ const ko = /* @__PURE__ */ E({
1566
1569
  }
1567
1570
  }), g = m([]);
1568
1571
  function _(P) {
1569
- return P ? Object.entries(P).map(([O, T]) => (typeof T.modelValue == "boolean" ? T.fieldValue = T.modelValue ? "Yes" : "No" : T.fieldValue = T.modelValue, {
1570
- fieldKey: O,
1572
+ return P ? Object.entries(P).map(([M, T]) => (typeof T.modelValue == "boolean" ? T.fieldValue = T.modelValue ? "Yes" : "No" : T.fieldValue = T.modelValue, {
1573
+ fieldKey: M,
1571
1574
  ...T
1572
- })).filter((O) => O.widget && O.widget.widget !== "Hidden").filter((O) => !b.value.includes(O.fieldKey)) : [];
1575
+ })).filter((M) => M.widget && M.widget.widget !== "Hidden").filter((M) => !b.value.includes(M.fieldKey)) : [];
1573
1576
  }
1574
- const k = W(() => Oe(g.value)), u = W(() => d.value?.actions ? [...d.value.actions].reverse() : []), p = m(!0), A = (P, H) => {
1575
- const O = P.findIndex((T) => T.isCurrent);
1577
+ const S = G(() => Oe(g.value)), f = G(() => u.value?.actions ? [...u.value.actions].reverse() : []), p = m(!0), V = (P, H) => {
1578
+ const M = P.findIndex((T) => T.isCurrent);
1576
1579
  return P.map((T, ae) => {
1577
1580
  const D = {
1578
1581
  id: T.id,
@@ -1588,69 +1591,69 @@ const ko = /* @__PURE__ */ E({
1588
1591
  if (ve && be && ve?.email?.toLowerCase() !== be?.approverEmail?.toLowerCase() && (D.title = `${be.name}`, D.proxy = `Proxy: ${ve.name}`), T.sort > 1 ? D.sub = "Approver Role: " + T.nodeName.replace("Submit", "").replace("Approve", "") : D.sub = "Submit Application", T.isCurrent && H !== -1)
1589
1592
  D.desc = "In Approval", D.status = 1;
1590
1593
  else {
1591
- const ee = T.workflowHistorys[T.workflowHistorys.length - 1];
1592
- if (ee && ee.status === 100)
1593
- D.time = ke(ee.takeActionAt, "yyyy-MM-dd hh:mm:ss"), D.status = 2, D.desc = "approve success!";
1594
- else if (ee && ee.status === 999)
1595
- D.time = ke(ee.takeActionAt, "yyyy-MM-dd hh:mm:ss"), D.status = 0, D.desc = "approve reject!";
1596
- else if (ee)
1597
- if (D.time = ke(ee.takeActionAt, "yyyy-MM-dd hh:mm:ss"), T.sort === 1)
1594
+ const te = T.workflowHistorys[T.workflowHistorys.length - 1];
1595
+ if (te && te.status === 100)
1596
+ D.time = ke(te.takeActionAt, "yyyy-MM-dd hh:mm:ss"), D.status = 2, D.desc = "approve success!";
1597
+ else if (te && te.status === 999)
1598
+ D.time = ke(te.takeActionAt, "yyyy-MM-dd hh:mm:ss"), D.status = 0, D.desc = "approve reject!";
1599
+ else if (te)
1600
+ if (D.time = ke(te.takeActionAt, "yyyy-MM-dd hh:mm:ss"), T.sort === 1)
1598
1601
  D.status = 2, D.desc = "";
1599
1602
  else {
1600
- const Me = ee.workflowHistoryApprovers[0];
1603
+ const Me = te.workflowHistoryApprovers[0];
1601
1604
  D.status = 3, D.desc = Me?.reason ? `Rejected reason: ${Me.reason}` : "Rejected";
1602
1605
  }
1603
- else ae < O || O === -1 ? (D.status = 0, D.desc = "Skipped") : (D.status = 0, D.desc = "Pending Approval");
1604
- ee && ee.status;
1606
+ else ae < M || M === -1 ? (D.status = 0, D.desc = "Skipped") : (D.status = 0, D.desc = "Pending Approval");
1607
+ te && te.status;
1605
1608
  }
1606
1609
  return D;
1607
1610
  });
1608
- }, J = m([]), Z = m(!1), $ = m(!1), X = m(!1), oe = m(!1);
1609
- async function C() {
1611
+ }, J = m([]), ee = m(!1), $ = m(!1), X = m(!1), oe = m(!1);
1612
+ async function x() {
1610
1613
  const P = await r.getBtnList();
1611
- d.value.actions = d.value.actions?.filter((H) => {
1612
- const O = P.find((T) => T.button === H.title);
1613
- return O ? O.isShow : !0;
1614
- }), Z.value = P.find((H) => H.button === "IsGlobal")?.isShow ?? !1, $.value = P.find((H) => H.button === "AssignButton")?.isShow ?? !1, X.value = P.find((H) => H.button === "AssignList")?.isShow ?? !1, oe.value = P.find((H) => H.button === "AddCommentsButton")?.isShow ?? !1;
1614
+ u.value.actions = u.value.actions?.filter((H) => {
1615
+ const M = P.find((T) => T.button === H.title);
1616
+ return M ? M.isShow : !0;
1617
+ }), ee.value = P.find((H) => H.button === "IsGlobal")?.isShow ?? !1, $.value = P.find((H) => H.button === "AssignButton")?.isShow ?? !1, X.value = P.find((H) => H.button === "AssignList")?.isShow ?? !1, oe.value = P.find((H) => H.button === "AddCommentsButton")?.isShow ?? !1;
1615
1618
  }
1616
1619
  const b = m([]);
1617
1620
  async function h() {
1618
- p.value = !0, r = new Te().setPageActionType(fe.Details).setClassName(i.className).setStore({ svrStore: a, bpmStore: e }).setWorkflowId(i.workflowId).build(), d.value = await r.getPageData();
1621
+ p.value = !0, r = new Te().setPageActionType(fe.Details).setClassName(i.className).setStore({ svrStore: a, bpmStore: e }).setWorkflowId(i.workflowId).build(), u.value = await r.getPageData();
1619
1622
  const P = await r.getFiles();
1620
- se.value = await r.getApprovers(), L.value = await r.getCommentsHistory(), ie.value = await r.getAssociator(), C();
1621
- const H = d.value.fields.requestType.modelValue;
1622
- o.Test?.({ fieldValue: H, hiddenFields: b }), g.value = _(d.value.fields);
1623
- for (const T in d.value.fields)
1624
- if (d.value.fields[T].widget?.widget === "File") {
1623
+ se.value = await r.getApprovers(), L.value = await r.getCommentsHistory(), ie.value = await r.getAssociator(), x();
1624
+ const H = u.value.fields.requestType.modelValue;
1625
+ o.Test?.({ fieldValue: H, hiddenFields: b }), g.value = _(u.value.fields);
1626
+ for (const T in u.value.fields)
1627
+ if (u.value.fields[T].widget?.widget === "File") {
1625
1628
  const ae = g.value.find((D) => D.fieldKey === T);
1626
1629
  ae && ae.widget && (ae.widget.files = P[T] ?? []);
1627
1630
  }
1628
- const O = await r.getProcess();
1629
- J.value = A(O, 0), p.value = !1;
1631
+ const M = await r.getProcess();
1632
+ J.value = V(M, 0), p.value = !1;
1630
1633
  }
1631
1634
  ue(h);
1632
1635
  async function I(P, H) {
1633
1636
  return o[P]?.(H);
1634
1637
  }
1635
- function S() {
1638
+ function A() {
1636
1639
  return a()?.userInfo?.email_address ?? "";
1637
1640
  }
1638
- async function U(P, H, O, T, ae) {
1641
+ async function U(P, H, M, T, ae) {
1639
1642
  try {
1640
1643
  switch (H) {
1641
1644
  case Y.Submit:
1642
- const { reason: D, ifGlobal: ve } = await I(ae, { isGlobal: Z.value });
1645
+ const { reason: D, ifGlobal: ve } = await I(ae, { isGlobal: ee.value });
1643
1646
  p.value = !0;
1644
1647
  const we = ae === "Approve" ? "100" : "-1";
1645
- await Ht(i.className, i.workflowId, S(), D, [Number(i.workflowId)], O, we, ve), p.value = !1;
1648
+ await Ht(i.className, i.workflowId, A(), D, [Number(i.workflowId)], M, we, ve), p.value = !1;
1646
1649
  const be = ae === "Approve" ? `Request ID ${i.workflowId} has been approved.` : `Request ID ${i.workflowId} has been rejected.`;
1647
1650
  c?.appContext.config.globalProperties.$notification.success(be), h();
1648
1651
  break;
1649
1652
  case Y.Link:
1650
1653
  try {
1651
1654
  await o[P.eventName || ""]?.(), l.push({ name: T, params: { className: i.className, workflowId: i.workflowId } });
1652
- } catch (ee) {
1653
- console.error("Error in link action trigger:", ee);
1655
+ } catch (te) {
1656
+ console.error("Error in link action trigger:", te);
1654
1657
  }
1655
1658
  break;
1656
1659
  case Y.Button:
@@ -1669,7 +1672,7 @@ const ko = /* @__PURE__ */ E({
1669
1672
  } catch {
1670
1673
  }
1671
1674
  }
1672
- const j = m(""), L = m([]), G = m(""), se = m([]), ie = m([]);
1675
+ const j = m(""), L = m([]), q = m(""), se = m([]), ie = m([]);
1673
1676
  async function _e(P) {
1674
1677
  if (!P) {
1675
1678
  c?.appContext.config.globalProperties.$message.error("Please select an approver");
@@ -1677,7 +1680,7 @@ const ko = /* @__PURE__ */ E({
1677
1680
  }
1678
1681
  await v("Confirm Assign Approver", "Do you want to assign the selected approver?");
1679
1682
  try {
1680
- await r.assignApprover(P), ie.value = await r.getAssociator(), C(), c?.appContext.config.globalProperties.$notification.success("Assign Approver clicked!");
1683
+ await r.assignApprover(P), ie.value = await r.getAssociator(), x(), c?.appContext.config.globalProperties.$notification.success("Assign Approver clicked!");
1681
1684
  } catch (H) {
1682
1685
  if (H.status === 409) {
1683
1686
  c?.appContext.config.globalProperties.$notification.error("This user is already an associator");
@@ -1687,9 +1690,9 @@ const ko = /* @__PURE__ */ E({
1687
1690
  }
1688
1691
  }
1689
1692
  async function v(P, H) {
1690
- const { Modal: O } = await import("@arco-design/web-vue");
1693
+ const { Modal: M } = await import("@arco-design/web-vue");
1691
1694
  return new Promise((T, ae) => {
1692
- O.confirm({
1695
+ M.confirm({
1693
1696
  title: P,
1694
1697
  content: H,
1695
1698
  okText: "OK",
@@ -1722,7 +1725,7 @@ const ko = /* @__PURE__ */ E({
1722
1725
  return r;
1723
1726
  }, set page(P) {
1724
1727
  r = P;
1725
- }, pageData: d, _fields: g, genField: _, groupedFields: k, reversedActions: u, loading: p, mapWorkflowSteps: A, steps: J, isGlobal: Z, isShowAssignSelect: $, isShowAssignList: X, isShowCommentTextArea: oe, reloadButtonList: C, hiddenFields: b, load: h, triggerFn: I, getApproverEmail: S, clickHandler: U, comment: j, commentsHistory: L, selectedApprover: G, approvers: se, associators: ie, onAssignApprover: _e, confirmDialog: v, onDeleteAssociator: N, onAddComment: R, ActionButton: Se, get IconDownload() {
1728
+ }, pageData: u, _fields: g, genField: _, groupedFields: S, reversedActions: f, loading: p, mapWorkflowSteps: V, steps: J, isGlobal: ee, isShowAssignSelect: $, isShowAssignList: X, isShowCommentTextArea: oe, reloadButtonList: x, hiddenFields: b, load: h, triggerFn: I, getApproverEmail: A, clickHandler: U, comment: j, commentsHistory: L, selectedApprover: q, approvers: se, associators: ie, onAssignApprover: _e, confirmDialog: v, onDeleteAssociator: N, onAddComment: R, ActionButton: Se, get IconDownload() {
1726
1729
  return In;
1727
1730
  }, TopBar: Ie, get formatDate() {
1728
1731
  return ke;
@@ -1740,49 +1743,49 @@ const ko = /* @__PURE__ */ E({
1740
1743
  class: "detail-content"
1741
1744
  }, Bo = { class: "page-footer" }, Fo = { class: "action-container" }, Ho = { class: "action-buttons" };
1742
1745
  function Lo(t, n, a, e, o, l) {
1743
- const s = w("a-link"), c = w("a-space"), i = w("a-card");
1744
- w("a-option"), w("a-select");
1745
- const r = w("a-button"), d = w("a-list-item"), g = w("a-list"), _ = w("a-textarea"), k = w("a-spin");
1746
- return f(), V("div", Co, [
1746
+ const s = C("a-link"), c = C("a-space"), i = C("a-card");
1747
+ C("a-option"), C("a-select");
1748
+ const r = C("a-button"), u = C("a-list-item"), g = C("a-list"), _ = C("a-textarea"), S = C("a-spin");
1749
+ return d(), w("div", Co, [
1747
1750
  B(e.TopBar, {
1748
1751
  title: e.pageData.banner.title,
1749
1752
  subTitle: e.pageData.banner.subTitle,
1750
1753
  email: e.getApproverEmail()
1751
1754
  }, null, 8, ["title", "subTitle", "email"]),
1752
- y("div", So, [
1753
- B(k, {
1755
+ k("div", So, [
1756
+ B(S, {
1754
1757
  loading: e.loading,
1755
1758
  class: "detail-container"
1756
1759
  }, {
1757
- default: x(() => [
1758
- y("div", xo, [
1759
- (f(), F(He(e.customComps.Steps), { steps: e.steps }, null, 8, ["steps"])),
1760
- y("div", Ao, [
1761
- (f(!0), V(M, null, q(e.groupedFields, (u) => (f(), F(i, {
1762
- key: u.name,
1763
- title: u.name,
1760
+ default: y(() => [
1761
+ k("div", xo, [
1762
+ (d(), F(He(e.customComps.Steps), { steps: e.steps }, null, 8, ["steps"])),
1763
+ k("div", Ao, [
1764
+ (d(!0), w(O, null, W(e.groupedFields, (f) => (d(), F(i, {
1765
+ key: f.name,
1766
+ title: f.name,
1764
1767
  style: { "margin-bottom": "24px" }
1765
1768
  }, {
1766
- default: x(() => [
1767
- y("div", Vo, [
1768
- (f(!0), V(M, null, q(u.fields, (p) => (f(), V("div", {
1769
+ default: y(() => [
1770
+ k("div", Vo, [
1771
+ (d(!0), w(O, null, W(f.fields, (p) => (d(), w("div", {
1769
1772
  key: p.fieldKey,
1770
1773
  class: "detail-field-wrapper"
1771
1774
  }, [
1772
- y("div", Io, [
1773
- y("div", To, te(p.widget?.title), 1),
1774
- p.widget?.widget === "File" ? (f(!0), V(M, { key: 0 }, q(p.widget.files, (A) => (f(), V("div", {
1775
+ k("div", Io, [
1776
+ k("div", To, Z(p.widget?.title), 1),
1777
+ p.widget?.widget === "File" ? (d(!0), w(O, { key: 0 }, W(p.widget.files, (V) => (d(), w("div", {
1775
1778
  class: "field-value",
1776
- key: A.id
1779
+ key: V.id
1777
1780
  }, [
1778
1781
  B(c, null, {
1779
- default: x(() => [
1780
- re(te(A.name) + " ", 1),
1782
+ default: y(() => [
1783
+ re(Z(V.name) + " ", 1),
1781
1784
  B(s, {
1782
- href: A.url,
1785
+ href: V.url,
1783
1786
  target: "_blank"
1784
1787
  }, {
1785
- default: x(() => [
1788
+ default: y(() => [
1786
1789
  B(e.IconDownload, { style: { color: "#7A00E6" } })
1787
1790
  ]),
1788
1791
  _: 2
@@ -1790,7 +1793,7 @@ function Lo(t, n, a, e, o, l) {
1790
1793
  ]),
1791
1794
  _: 2
1792
1795
  }, 1024)
1793
- ]))), 128)) : (f(), V("div", Po, te(p.fieldValue), 1))
1796
+ ]))), 128)) : (d(), w("div", Po, Z(p.fieldValue), 1))
1794
1797
  ])
1795
1798
  ]))), 128))
1796
1799
  ])
@@ -1799,18 +1802,18 @@ function Lo(t, n, a, e, o, l) {
1799
1802
  }, 1032, ["title"]))), 128)),
1800
1803
  ne("", !0),
1801
1804
  ne("", !0),
1802
- e.isShowCommentTextArea ? (f(), V("div", No, [
1803
- y("div", Uo, [
1804
- n[6] || (n[6] = y("div", { class: "field-label" }, "Comment", -1)),
1805
+ e.isShowCommentTextArea ? (d(), w("div", No, [
1806
+ k("div", Uo, [
1807
+ n[6] || (n[6] = k("div", { class: "field-label" }, "Comment", -1)),
1805
1808
  B(_, {
1806
1809
  modelValue: e.comment,
1807
- "onUpdate:modelValue": n[1] || (n[1] = (u) => e.comment = u)
1810
+ "onUpdate:modelValue": n[1] || (n[1] = (f) => e.comment = f)
1808
1811
  }, null, 8, ["modelValue"]),
1809
1812
  B(r, {
1810
1813
  type: "primary",
1811
1814
  onClick: e.onAddComment
1812
1815
  }, {
1813
- default: x(() => n[5] || (n[5] = [
1816
+ default: y(() => n[5] || (n[5] = [
1814
1817
  re("Add Comment", -1)
1815
1818
  ])),
1816
1819
  _: 1,
@@ -1818,16 +1821,16 @@ function Lo(t, n, a, e, o, l) {
1818
1821
  })
1819
1822
  ])
1820
1823
  ])) : ne("", !0),
1821
- e.commentsHistory.length ? (f(), F(g, { key: 3 }, {
1822
- header: x(() => n[7] || (n[7] = [
1824
+ e.commentsHistory.length ? (d(), F(g, { key: 3 }, {
1825
+ header: y(() => n[7] || (n[7] = [
1823
1826
  re(" Comments History ", -1)
1824
1827
  ])),
1825
- default: x(() => [
1826
- (f(!0), V(M, null, q(e.commentsHistory, (u) => (f(), F(d, {
1827
- key: u.associator
1828
+ default: y(() => [
1829
+ (d(!0), w(O, null, W(e.commentsHistory, (f) => (d(), F(u, {
1830
+ key: f.associator
1828
1831
  }, {
1829
- default: x(() => [
1830
- re(te(u.associator) + ": " + te(u.comments) + " (" + te(e.formatDate(u.createdAt)) + ") ", 1)
1832
+ default: y(() => [
1833
+ re(Z(f.associator) + ": " + Z(f.comments) + " (" + Z(e.formatDate(f.createdAt)) + ") ", 1)
1831
1834
  ]),
1832
1835
  _: 2
1833
1836
  }, 1024))), 128))
@@ -1835,7 +1838,7 @@ function Lo(t, n, a, e, o, l) {
1835
1838
  _: 1
1836
1839
  })) : ne("", !0)
1837
1840
  ]),
1838
- t.$slots.content ? (f(), V("div", Do, [
1841
+ t.$slots.content ? (d(), w("div", Do, [
1839
1842
  de(t.$slots, "content", {}, void 0, !0)
1840
1843
  ])) : ne("", !0)
1841
1844
  ])
@@ -1843,16 +1846,16 @@ function Lo(t, n, a, e, o, l) {
1843
1846
  _: 3
1844
1847
  }, 8, ["loading"])
1845
1848
  ]),
1846
- y("div", Bo, [
1847
- y("div", Fo, [
1849
+ k("div", Bo, [
1850
+ k("div", Fo, [
1848
1851
  de(t.$slots, "action", {}, void 0, !0),
1849
- y("div", Ho, [
1850
- (f(!0), V(M, null, q(e.reversedActions, (u) => (f(), F(e.ActionButton, {
1851
- key: u.title,
1852
+ k("div", Ho, [
1853
+ (d(!0), w(O, null, W(e.reversedActions, (f) => (d(), F(e.ActionButton, {
1854
+ key: f.title,
1852
1855
  loading: e.loading,
1853
- config: u,
1856
+ config: f,
1854
1857
  class: "action-button",
1855
- onClick: (...p) => e.clickHandler(u, ...p)
1858
+ onClick: (...p) => e.clickHandler(f, ...p)
1856
1859
  }, null, 8, ["loading", "config", "onClick"]))), 128))
1857
1860
  ])
1858
1861
  ])
@@ -1877,7 +1880,7 @@ const Ro = /* @__PURE__ */ Q(ko, [["render", Lo], ["__scopeId", "data-v-180a216d
1877
1880
  filters: []
1878
1881
  });
1879
1882
  function r() {
1880
- const v = Object.entries(S.value).filter(([, { value: N }]) => N && N !== "").map(([N, { value: R, operator: le }]) => ({
1883
+ const v = Object.entries(A.value).filter(([, { value: N }]) => N && N !== "").map(([N, { value: R, operator: le }]) => ({
1881
1884
  key: N,
1882
1885
  value: R,
1883
1886
  operator: le
@@ -1893,8 +1896,8 @@ const Ro = /* @__PURE__ */ Q(ko, [["render", Lo], ["__scopeId", "data-v-180a216d
1893
1896
  }]
1894
1897
  };
1895
1898
  }
1896
- const d = W(() => ({
1897
- x: k.value.length * 150 + 250
1899
+ const u = G(() => ({
1900
+ x: S.value.length * 150 + 250
1898
1901
  // 只设置横向滚动
1899
1902
  // 移除 y 属性,让表格高度自适应
1900
1903
  })), g = (v) => {
@@ -1918,18 +1921,18 @@ const Ro = /* @__PURE__ */ Q(ko, [["render", Lo], ["__scopeId", "data-v-180a216d
1918
1921
  minWidth: 200,
1919
1922
  fixed: "right",
1920
1923
  resizable: !1
1921
- }), k.value = N;
1922
- }, _ = m([]), k = m([]), u = m(!0), p = m(!0), A = m(), J = async () => {
1924
+ }), S.value = N;
1925
+ }, _ = m([]), S = m([]), f = m(!0), p = m(!0), V = m(), J = async () => {
1923
1926
  p.value = !0;
1924
1927
  const v = await It(s.className, r());
1925
1928
  _.value = v.data, i.total = v.totalCount, p.value = !1;
1926
- }, Z = m(!1);
1929
+ }, ee = m(!1);
1927
1930
  ue(async () => {
1928
- u.value = !0;
1931
+ f.value = !0;
1929
1932
  const v = new Te().setPageActionType(fe.List).setClassName(s.className).setStore({ svrStore: a, bpmStore: e }).build();
1930
- c.value = await v.getPageData(), g(c.value.fields), j(c.value.fields), L(), I(c.value?.tabs?.[0]?.key || ""), A.value = c.value.actions, u.value = !1, Z.value = !0;
1933
+ c.value = await v.getPageData(), g(c.value.fields), j(c.value.fields), L(), I(c.value?.tabs?.[0]?.key || ""), V.value = c.value.actions, f.value = !1, ee.value = !0;
1931
1934
  }), dt(() => {
1932
- Z.value && J();
1935
+ ee.value && J();
1933
1936
  });
1934
1937
  const $ = (v) => {
1935
1938
  i.current = v, J();
@@ -1945,7 +1948,7 @@ const Ro = /* @__PURE__ */ Q(ko, [["render", Lo], ["__scopeId", "data-v-180a216d
1945
1948
  console.warn("Unknown action type:", v);
1946
1949
  }
1947
1950
  }
1948
- function C(v, N, R) {
1951
+ function x(v, N, R) {
1949
1952
  switch (v) {
1950
1953
  case Y.Submit:
1951
1954
  qt(N, { filters: [{ key: "approverList", value: b(), operator: 2 }] }), l?.appContext.config.globalProperties.$notification.success("submit success!");
@@ -1970,7 +1973,7 @@ const Ro = /* @__PURE__ */ Q(ko, [["render", Lo], ["__scopeId", "data-v-180a216d
1970
1973
  value: h(R.value, b())
1971
1974
  })) || [], i.current = 1, J();
1972
1975
  }
1973
- const S = m({}), U = m([]);
1976
+ const A = m({}), U = m([]);
1974
1977
  function j(v) {
1975
1978
  if (!v) return [];
1976
1979
  U.value = Object.entries(v).filter(([, N]) => N.isFiltered).map(([N, R]) => ({ fieldKey: N, fieldConfig: R }));
@@ -1979,39 +1982,39 @@ const Ro = /* @__PURE__ */ Q(ko, [["render", Lo], ["__scopeId", "data-v-180a216d
1979
1982
  const v = {};
1980
1983
  U.value.forEach(({ fieldKey: N, fieldConfig: R }) => {
1981
1984
  v[N] = {}, v[N].value = R.modelValue, v[N].operator = R.operator;
1982
- }), S.value = v;
1983
- }, G = () => {
1985
+ }), A.value = v;
1986
+ }, q = () => {
1984
1987
  i.current = 1, J();
1985
1988
  }, se = () => {
1986
- c.value && L(), G();
1989
+ c.value && L(), q();
1987
1990
  };
1988
1991
  function ie(v, N) {
1989
1992
  return !(v.location !== "InTable" || v.title === "Update" && (N.status === 100 || N.status === -1));
1990
1993
  }
1991
- const _e = { svrStore: a, bpmStore: e, router: o, instance: l, props: s, pageData: c, paging: i, createListParams: r, scroll: d, mapColumns: g, _data: _, _columns: k, loadingPage: u, loadingTable: p, actions: A, loadData: J, mounted: Z, pageChangeHandler: $, pageSizeChangeHandler: X, clickHandler: oe, createHandler: C, getApproverEmail: b, replaceEmail: h, tabHandler: I, searchForm: S, searchableFields: U, mapSearchableFields: j, initSearchForm: L, handleSearch: G, handleReset: se, judgeHiddenActions: ie, ActionButton: Se, DataWidgets: je, TopBar: Ie };
1994
+ const _e = { svrStore: a, bpmStore: e, router: o, instance: l, props: s, pageData: c, paging: i, createListParams: r, scroll: u, mapColumns: g, _data: _, _columns: S, loadingPage: f, loadingTable: p, actions: V, loadData: J, mounted: ee, pageChangeHandler: $, pageSizeChangeHandler: X, clickHandler: oe, createHandler: x, getApproverEmail: b, replaceEmail: h, tabHandler: I, searchForm: A, searchableFields: U, mapSearchableFields: j, initSearchForm: L, handleSearch: q, handleReset: se, judgeHiddenActions: ie, ActionButton: Se, DataWidgets: je, TopBar: Ie };
1992
1995
  return Object.defineProperty(_e, "__isScriptSetup", { enumerable: !1, value: !0 }), _e;
1993
1996
  }
1994
1997
  }), $o = { class: "list-container" }, Oo = { class: "query-title" };
1995
1998
  function Mo(t, n, a, e, o, l) {
1996
- const s = w("a-space"), c = w("a-col"), i = w("a-button"), r = w("a-row"), d = w("a-card"), g = w("a-tab-pane"), _ = w("a-tabs"), k = w("a-table");
1997
- return f(), V("div", $o, [
1999
+ const s = C("a-space"), c = C("a-col"), i = C("a-button"), r = C("a-row"), u = C("a-card"), g = C("a-tab-pane"), _ = C("a-tabs"), S = C("a-table");
2000
+ return d(), w("div", $o, [
1998
2001
  B(e.TopBar, {
1999
2002
  title: e.pageData?.banner.title ?? "",
2000
2003
  subTitle: e.pageData?.banner.subTitle ?? "",
2001
2004
  email: e.getApproverEmail()
2002
2005
  }, null, 8, ["title", "subTitle", "email"]),
2003
- B(d, null, {
2004
- default: x(() => [
2005
- y("div", Oo, [
2006
- n[0] || (n[0] = y("h3", null, "Search Conditions", -1)),
2006
+ B(u, null, {
2007
+ default: y(() => [
2008
+ k("div", Oo, [
2009
+ n[0] || (n[0] = k("h3", null, "Search Conditions", -1)),
2007
2010
  B(s, { size: "medium" }, {
2008
- default: x(() => [
2009
- (f(!0), V(M, null, q(e.actions, (u) => (f(), V(M, {
2010
- key: u.title
2011
+ default: y(() => [
2012
+ (d(!0), w(O, null, W(e.actions, (f) => (d(), w(O, {
2013
+ key: f.title
2011
2014
  }, [
2012
- u.location === "InOperation" ? (f(), F(e.ActionButton, {
2015
+ f.location === "InOperation" ? (d(), F(e.ActionButton, {
2013
2016
  key: 0,
2014
- config: u,
2017
+ config: f,
2015
2018
  onClick: e.createHandler
2016
2019
  }, null, 8, ["config"])) : ne("", !0)
2017
2020
  ], 64))), 128))
@@ -2020,18 +2023,18 @@ function Mo(t, n, a, e, o, l) {
2020
2023
  })
2021
2024
  ]),
2022
2025
  B(r, { gutter: [24, 20] }, {
2023
- default: x(() => [
2024
- (f(!0), V(M, null, q(e.searchableFields, (u) => (f(), F(c, {
2025
- key: u.fieldKey,
2026
+ default: y(() => [
2027
+ (d(!0), w(O, null, W(e.searchableFields, (f) => (d(), F(c, {
2028
+ key: f.fieldKey,
2026
2029
  span: 6,
2027
2030
  class: "search-col"
2028
2031
  }, {
2029
- default: x(() => [
2032
+ default: y(() => [
2030
2033
  B(e.DataWidgets, {
2031
- name: u.fieldKey,
2032
- config: u.fieldConfig,
2033
- modelValue: e.searchForm[u.fieldKey].value,
2034
- "onUpdate:modelValue": (p) => e.searchForm[u.fieldKey].value = p,
2034
+ name: f.fieldKey,
2035
+ config: f.fieldConfig,
2036
+ modelValue: e.searchForm[f.fieldKey].value,
2037
+ "onUpdate:modelValue": (p) => e.searchForm[f.fieldKey].value = p,
2035
2038
  class: "form-field"
2036
2039
  }, null, 8, ["name", "config", "modelValue", "onUpdate:modelValue"])
2037
2040
  ]),
@@ -2041,15 +2044,15 @@ function Mo(t, n, a, e, o, l) {
2041
2044
  span: 6,
2042
2045
  class: "search-col form-buttons"
2043
2046
  }, {
2044
- default: x(() => [
2047
+ default: y(() => [
2045
2048
  B(s, { size: "medium" }, {
2046
- default: x(() => [
2049
+ default: y(() => [
2047
2050
  B(i, {
2048
2051
  type: "primary",
2049
2052
  size: "medium",
2050
2053
  onClick: e.handleSearch
2051
2054
  }, {
2052
- default: x(() => n[1] || (n[1] = [
2055
+ default: y(() => n[1] || (n[1] = [
2053
2056
  re(" Search ", -1)
2054
2057
  ])),
2055
2058
  _: 1,
@@ -2059,7 +2062,7 @@ function Mo(t, n, a, e, o, l) {
2059
2062
  size: "medium",
2060
2063
  onClick: e.handleReset
2061
2064
  }, {
2062
- default: x(() => n[2] || (n[2] = [
2065
+ default: y(() => n[2] || (n[2] = [
2063
2066
  re(" Reset ", -1)
2064
2067
  ])),
2065
2068
  _: 1,
@@ -2081,15 +2084,15 @@ function Mo(t, n, a, e, o, l) {
2081
2084
  size: "large",
2082
2085
  onTabClick: e.tabHandler
2083
2086
  }, {
2084
- default: x(() => [
2085
- (f(!0), V(M, null, q(e.pageData?.tabs, (u) => (f(), F(g, {
2086
- key: u.key,
2087
- title: u.title
2087
+ default: y(() => [
2088
+ (d(!0), w(O, null, W(e.pageData?.tabs, (f) => (d(), F(g, {
2089
+ key: f.key,
2090
+ title: f.title
2088
2091
  }, null, 8, ["title"]))), 128))
2089
2092
  ]),
2090
2093
  _: 1
2091
2094
  }),
2092
- B(k, {
2095
+ B(S, {
2093
2096
  columns: e._columns,
2094
2097
  data: e._data,
2095
2098
  stripe: "",
@@ -2108,17 +2111,17 @@ function Mo(t, n, a, e, o, l) {
2108
2111
  onPageChange: e.pageChangeHandler,
2109
2112
  onPageSizeChange: e.pageSizeChangeHandler
2110
2113
  }, {
2111
- optional: x(({ record: u }) => [
2114
+ optional: y(({ record: f }) => [
2112
2115
  B(s, { size: "small" }, {
2113
- default: x(() => [
2114
- (f(!0), V(M, null, q(e.actions, (p) => (f(), V(M, {
2116
+ default: y(() => [
2117
+ (d(!0), w(O, null, W(e.actions, (p) => (d(), w(O, {
2115
2118
  key: p.title
2116
2119
  }, [
2117
- e.judgeHiddenActions(p, u) ? (f(), F(e.ActionButton, {
2120
+ e.judgeHiddenActions(p, f) ? (d(), F(e.ActionButton, {
2118
2121
  key: 0,
2119
2122
  config: p,
2120
2123
  size: "small",
2121
- onClick: (...A) => e.clickHandler(...A, u.workflowId)
2124
+ onClick: (...V) => e.clickHandler(...V, f.workflowId)
2122
2125
  }, null, 8, ["config", "onClick"])) : ne("", !0)
2123
2126
  ], 64))), 128))
2124
2127
  ]),