@chase-shao/vue-component-lib 1.2.67 → 1.2.69

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, defineComponent as G, mergeModels as re, useModel as we, resolveComponent as S, createBlock as L, openBlock as u, onMounted as de, computed as X, withCtx as p, createElementBlock as V, Fragment as K, renderList as E, createVNode as F, nextTick as rt, createTextVNode as q, useTemplateRef as De, createElementVNode as I, createCommentVNode as se, toDisplayString as J, resolveDynamicComponent as Pe, renderSlot as ue, inject as me, getCurrentInstance as be, reactive as Me, normalizeStyle as it, normalizeClass as lt, unref as Te, onActivated as ct } from "vue";
1
+ import { ref as g, defineComponent as G, mergeModels as re, useModel as we, resolveComponent as S, createBlock as L, openBlock as u, onMounted as de, computed as X, withCtx as p, createElementBlock as V, Fragment as K, renderList as z, createVNode as F, nextTick as rt, createTextVNode as q, useTemplateRef as De, createElementVNode as T, createCommentVNode as se, toDisplayString as J, resolveDynamicComponent as Pe, renderSlot as ue, inject as me, getCurrentInstance as be, reactive as Me, normalizeStyle as it, normalizeClass as lt, unref as Te, onActivated as ct } from "vue";
2
2
  import ut from "axios";
3
3
  import { defineStore as dt } from "pinia";
4
4
  import { Modal as ft } from "@arco-design/web-vue";
@@ -316,13 +316,13 @@ async function Kt(e, t = null) {
316
316
  const ge = (e, t) => {
317
317
  let a = "";
318
318
  return { res: e.every((n) => {
319
- const c = zt(n, t);
319
+ const c = Et(n, t);
320
320
  return c || (a = n.errorMessage), c;
321
321
  }), errorMessages: a };
322
- }, zt = (e, t) => {
322
+ }, Et = (e, t) => {
323
323
  const { ruleName: a, ruleParameter: o } = e;
324
- return Et[a](o, t);
325
- }, Et = {
324
+ return zt[a](o, t);
325
+ }, zt = {
326
326
  Regex: (e, t) => new RegExp(e).test(t),
327
327
  Required: (e, t) => !!t
328
328
  }, Ge = /* @__PURE__ */ G({
@@ -357,7 +357,7 @@ const ge = (e, t) => {
357
357
  const d = S("AInput");
358
358
  return u(), L(d, {
359
359
  modelValue: c.value,
360
- "onUpdate:modelValue": _[0] || (_[0] = (w) => c.value = w),
360
+ "onUpdate:modelValue": _[0] || (_[0] = (h) => c.value = h),
361
361
  "allow-clear": "",
362
362
  disabled: o.readonly || o.config.Readonly,
363
363
  onInput: l,
@@ -389,8 +389,8 @@ const ge = (e, t) => {
389
389
  const s = (d) => ge(o.validations, d), i = (d) => {
390
390
  n("input", d);
391
391
  }, _ = (d) => {
392
- const w = s(d);
393
- n("error", w.res ? "" : w.errorMessages), o.triggers && o.triggers.length > 0 && o.triggers.forEach((x) => {
392
+ const h = s(d);
393
+ n("error", h.res ? "" : h.errorMessages), o.triggers && o.triggers.length > 0 && o.triggers.forEach((x) => {
394
394
  x.event === "change" && n(x.event, x.handlerName, d);
395
395
  });
396
396
  };
@@ -399,11 +399,11 @@ const ge = (e, t) => {
399
399
  const d = s(o.modelValue);
400
400
  return n("error", d.res ? "" : d.errorMessages), d.res;
401
401
  }
402
- }), (d, w) => {
402
+ }), (d, h) => {
403
403
  const x = S("AInputNumber");
404
404
  return u(), L(x, {
405
405
  modelValue: c.value,
406
- "onUpdate:modelValue": w[0] || (w[0] = (m) => c.value = m),
406
+ "onUpdate:modelValue": h[0] || (h[0] = (m) => c.value = m),
407
407
  clearable: "",
408
408
  disabled: o.readonly,
409
409
  min: l.value,
@@ -430,9 +430,9 @@ const ge = (e, t) => {
430
430
  const o = e, n = a, c = g(!1), r = g(o.config.options ?? []), l = we(e, "modelValue"), s = (d) => ge(o.validations, d);
431
431
  X(() => {
432
432
  const d = {};
433
- return o.triggers && o.triggers.length > 0 && o.triggers.forEach((w) => {
434
- d[w.event] = (x) => {
435
- n(w.event, w.handlerName, x);
433
+ return o.triggers && o.triggers.length > 0 && o.triggers.forEach((h) => {
434
+ d[h.event] = (x) => {
435
+ n(h.event, h.handlerName, x);
436
436
  const m = s(x);
437
437
  n("error", m.res ? "" : m.errorMessages);
438
438
  };
@@ -442,8 +442,8 @@ const ge = (e, t) => {
442
442
  });
443
443
  const _ = (d) => {
444
444
  n("update:modelValue", d);
445
- const w = s(d);
446
- n("error", w.res ? "" : w.errorMessages), o.triggers && o.triggers.length > 0 && o.triggers.forEach((x) => {
445
+ const h = s(d);
446
+ n("error", h.res ? "" : h.errorMessages), o.triggers && o.triggers.length > 0 && o.triggers.forEach((x) => {
447
447
  x.event === "change" && n(x.event, x.handlerName, d);
448
448
  });
449
449
  };
@@ -452,12 +452,12 @@ const ge = (e, t) => {
452
452
  const d = s(o.modelValue);
453
453
  return n("error", d.res ? "" : d.errorMessages), d.res;
454
454
  }
455
- }), (d, w) => {
455
+ }), (d, h) => {
456
456
  const x = S("AOption"), m = S("ASelect");
457
457
  return u(), L(m, {
458
458
  "allow-clear": "",
459
459
  modelValue: l.value,
460
- "onUpdate:modelValue": w[0] || (w[0] = (k) => l.value = k),
460
+ "onUpdate:modelValue": h[0] || (h[0] = (k) => l.value = k),
461
461
  loading: c.value,
462
462
  "filter-option": !0,
463
463
  "allow-search": !0,
@@ -465,7 +465,7 @@ const ge = (e, t) => {
465
465
  onChange: _
466
466
  }, {
467
467
  default: p(() => [
468
- (u(!0), V(K, null, E(r.value, (k) => (u(), L(x, {
468
+ (u(!0), V(K, null, z(r.value, (k) => (u(), L(x, {
469
469
  key: k.value,
470
470
  value: k.value,
471
471
  label: k.label
@@ -541,10 +541,10 @@ const ge = (e, t) => {
541
541
  };
542
542
  });
543
543
  const r = (m) => ge(o.validations, m), s = Be().apiBase, i = g(null), _ = g("");
544
- function d(m, k, z) {
545
- return m.replace(/{WorkflowId}/g, k).replace(/{ClassName}/g, z);
544
+ function d(m, k, E) {
545
+ return m.replace(/{WorkflowId}/g, k).replace(/{ClassName}/g, E);
546
546
  }
547
- const w = X(() => {
547
+ const h = X(() => {
548
548
  if (o.config.uploadURL) {
549
549
  const m = s + o.config.uploadURL;
550
550
  return d(m, _.value, o.className);
@@ -552,7 +552,7 @@ const ge = (e, t) => {
552
552
  return "";
553
553
  });
554
554
  function x(m) {
555
- const { file: k, name: z } = m, ee = z ?? k.name;
555
+ const { file: k, name: E } = m, ee = E ?? k.name;
556
556
  return new Promise((oe, ne) => {
557
557
  ft.confirm({
558
558
  title: "Confirm Delete",
@@ -577,12 +577,12 @@ const ge = (e, t) => {
577
577
  return n("error", m.res ? "" : m.errorMessages), m.res;
578
578
  }
579
579
  }), (m, k) => {
580
- const z = S("a-button"), ee = S("a-upload");
580
+ const E = S("a-button"), ee = S("a-upload");
581
581
  return u(), L(ee, {
582
582
  ref_key: "uploadRef",
583
583
  ref: i,
584
584
  "default-file-list": o.config.files,
585
- action: w.value,
585
+ action: h.value,
586
586
  limit: o.config.allowedNumber,
587
587
  "auto-upload": !1,
588
588
  name: "files",
@@ -591,7 +591,7 @@ const ge = (e, t) => {
591
591
  }, {
592
592
  "start-icon": p(() => k[0] || (k[0] = [])),
593
593
  "upload-button": p(() => [
594
- F(z, { type: "primary" }, {
594
+ F(E, { type: "primary" }, {
595
595
  default: p(() => k[1] || (k[1] = [
596
596
  q("Select File", -1)
597
597
  ])),
@@ -727,10 +727,10 @@ const ge = (e, t) => {
727
727
  default:
728
728
  return Ge;
729
729
  }
730
- }), s = g(""), i = (w) => {
731
- s.value = w;
732
- }, _ = (w, x) => {
733
- n("change", w, x);
730
+ }), s = g(""), i = (h) => {
731
+ s.value = h;
732
+ }, _ = (h, x) => {
733
+ n("change", h, x);
734
734
  };
735
735
  function d() {
736
736
  return o.config?.widget?.widget === "File";
@@ -739,8 +739,8 @@ const ge = (e, t) => {
739
739
  isFileUpload() {
740
740
  return o.config?.widget?.widget === "File";
741
741
  },
742
- submit(w) {
743
- d() && r.value.submit(w);
742
+ submit(h) {
743
+ d() && r.value.submit(h);
744
744
  },
745
745
  validate() {
746
746
  return r.value?.validate();
@@ -748,12 +748,12 @@ const ge = (e, t) => {
748
748
  getCompName() {
749
749
  return o?.config?.widget?.title;
750
750
  }
751
- }), (w, x) => (u(), V("div", null, [
752
- I("div", Yt, [
751
+ }), (h, x) => (u(), V("div", null, [
752
+ T("div", Yt, [
753
753
  q(J(o?.config?.widget?.title) + " ", 1),
754
754
  o.config.validations.length ? (u(), V("span", Jt, "*")) : se("", !0)
755
755
  ]),
756
- I("div", null, [
756
+ T("div", null, [
757
757
  (u(), L(Pe(l.value), {
758
758
  ref_key: "widgetRef",
759
759
  ref: r,
@@ -865,7 +865,7 @@ function Ve() {
865
865
  return e || pt();
866
866
  }
867
867
  const tt = Symbol("library-triggers");
868
- function ze() {
868
+ function Ee() {
869
869
  const e = me(tt, null);
870
870
  return e || {};
871
871
  }
@@ -887,14 +887,14 @@ const oo = { class: "top-bar" }, no = { class: "banner-info" }, ao = { class: "p
887
887
  return (t, a) => {
888
888
  const o = S("a-avatar"), n = S("a-popover");
889
889
  return u(), V("div", oo, [
890
- I("div", no, [
891
- I("div", ao, J(t.title), 1),
892
- I("div", so, J(t.subTitle), 1)
890
+ T("div", no, [
891
+ T("div", ao, J(t.title), 1),
892
+ T("div", so, J(t.subTitle), 1)
893
893
  ]),
894
- I("div", ro, [
894
+ T("div", ro, [
895
895
  F(n, { trigger: "click" }, {
896
896
  content: p(() => [
897
- I("div", io, J(t.email), 1)
897
+ T("div", io, J(t.email), 1)
898
898
  ]),
899
899
  default: p(() => [
900
900
  F(o, {
@@ -915,7 +915,7 @@ const oo = { class: "top-bar" }, no = { class: "banner-info" }, ao = { class: "p
915
915
  };
916
916
  }
917
917
  }), $e = /* @__PURE__ */ ve(lo, [["__scopeId", "data-v-c0457235"]]);
918
- function Ee(e) {
918
+ function ze(e) {
919
919
  const t = Be(), a = [];
920
920
  if (t.fieldsGroup) {
921
921
  t.fieldsGroup.forEach((c) => {
@@ -935,7 +935,7 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
935
935
  className: {}
936
936
  },
937
937
  setup(e) {
938
- const t = Se(), a = xe(), o = Ve(), n = ze(), c = De("dataWidgets"), r = be(), l = e, s = g({
938
+ const t = Se(), a = xe(), o = Ve(), n = Ee(), c = De("dataWidgets"), r = be(), l = e, s = g({
939
939
  pageType: "",
940
940
  fields: {},
941
941
  globalValidations: [],
@@ -944,34 +944,34 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
944
944
  subTitle: ""
945
945
  }
946
946
  }), i = g([]), _ = g({});
947
- function d(T) {
948
- return T ? Object.entries(T).map(([v, $]) => ({
947
+ function d($) {
948
+ return $ ? Object.entries($).map(([v, A]) => ({
949
949
  fieldKey: v,
950
- ...$
950
+ ...A
951
951
  })).filter((v) => v.widget && v.widget.widget !== "Hidden").filter((v) => !ne.value.includes(v.fieldKey)) : [];
952
952
  }
953
- function w(T) {
954
- return T ? Object.entries(T).filter(([v, $]) => $.dependent).reduce((v, [$, b]) => (v[$] = b.dependent, v), {}) : [];
953
+ function h($) {
954
+ return $ ? Object.entries($).filter(([v, A]) => A.dependent).reduce((v, [A, w]) => (v[A] = w.dependent, v), {}) : [];
955
955
  }
956
956
  const x = X(() => s.value?.actions ? [...s.value.actions].reverse() : []), m = Me({}), k = g(!1);
957
957
  de(async () => {
958
958
  k.value = !0, s.value = await Ce(pe.Create, l.className, {
959
959
  svrStore: a,
960
960
  bpmStore: t
961
- }), i.value = d(s.value.fields), _.value = w(s.value.fields);
962
- for (const T in s.value.fields) {
963
- if (s.value.fields[T].widget?.widget === "File") {
964
- const U = i.value.find((v) => v.fieldKey === T);
961
+ }), i.value = d(s.value.fields), _.value = h(s.value.fields);
962
+ for (const $ in s.value.fields) {
963
+ if (s.value.fields[$].widget?.widget === "File") {
964
+ const U = i.value.find((v) => v.fieldKey === $);
965
965
  U && U.widget && (U.widget.files = []);
966
966
  }
967
- m[T] = s.value.fields[T].modelValue;
967
+ m[$] = s.value.fields[$].modelValue;
968
968
  }
969
969
  k.value = !1;
970
970
  });
971
- function z() {
971
+ function E() {
972
972
  return a()?.userInfo?.email_address ?? "";
973
973
  }
974
- async function ee(T, U, v, $, b) {
974
+ async function ee($, U, v, A, w) {
975
975
  switch (U) {
976
976
  case Z.Submit:
977
977
  let D = !0;
@@ -988,7 +988,7 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
988
988
  }), console.log("🚀 ~ clickHandler ~ res.toString():", te.toString()), r?.appContext.config.globalProperties.$notification.success("create success!"), o.push({ name: "Details", params: { workflowId: te.toString() } });
989
989
  break;
990
990
  case Z.Link:
991
- $ === "List" && o.push({ name: "List", params: { className: l.className } });
991
+ A === "List" && o.push({ name: "List", params: { className: l.className } });
992
992
  break;
993
993
  default:
994
994
  console.warn("Unknown action type:", U);
@@ -1002,40 +1002,40 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
1002
1002
  "jobAttachmentPrevious",
1003
1003
  "positionId"
1004
1004
  ]);
1005
- function le(T, U) {
1006
- n[T]?.(U, ne), s.value && (i.value = d(s.value.fields));
1005
+ function le($, U) {
1006
+ n[$]?.(U, ne), s.value && (i.value = d(s.value.fields));
1007
1007
  }
1008
- const B = X(() => Ee(i.value));
1009
- return (T, U) => {
1010
- const v = S("a-card"), $ = S("a-spin");
1008
+ const B = X(() => ze(i.value));
1009
+ return ($, U) => {
1010
+ const v = S("a-card"), A = S("a-spin");
1011
1011
  return u(), V("div", co, [
1012
1012
  F($e, {
1013
1013
  title: s.value.banner.title,
1014
1014
  subTitle: s.value.banner.subTitle,
1015
- email: z()
1015
+ email: E()
1016
1016
  }, null, 8, ["title", "subTitle", "email"]),
1017
- I("div", uo, [
1018
- F($, {
1017
+ T("div", uo, [
1018
+ F(A, {
1019
1019
  loading: k.value,
1020
1020
  class: "form-container"
1021
1021
  }, {
1022
1022
  default: p(() => [
1023
- I("div", fo, [
1024
- I("div", po, [
1025
- (u(!0), V(K, null, E(B.value, (b) => (u(), L(v, {
1026
- key: b.name,
1027
- title: b.name,
1023
+ T("div", fo, [
1024
+ T("div", po, [
1025
+ (u(!0), V(K, null, z(B.value, (w) => (u(), L(v, {
1026
+ key: w.name,
1027
+ title: w.name,
1028
1028
  style: { "margin-bottom": "24px" }
1029
1029
  }, {
1030
1030
  default: p(() => [
1031
- I("div", mo, [
1032
- (u(!0), V(K, null, E(b.fields, (D) => (u(), L(Ke, {
1031
+ T("div", mo, [
1032
+ (u(!0), V(K, null, z(w.fields, (D) => (u(), L(Ke, {
1033
1033
  key: D.fieldKey,
1034
1034
  ref_for: !0,
1035
1035
  ref: "dataWidgets",
1036
1036
  "field-key": D.fieldKey,
1037
1037
  config: D,
1038
- "class-name": T.className,
1038
+ "class-name": $.className,
1039
1039
  modelValue: m[D.fieldKey],
1040
1040
  "onUpdate:modelValue": (te) => m[D.fieldKey] = te,
1041
1041
  class: "form-field",
@@ -1046,24 +1046,24 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
1046
1046
  _: 2
1047
1047
  }, 1032, ["title"]))), 128))
1048
1048
  ]),
1049
- T.$slots.content ? (u(), V("div", go, [
1050
- ue(T.$slots, "content", {}, void 0, !0)
1049
+ $.$slots.content ? (u(), V("div", go, [
1050
+ ue($.$slots, "content", {}, void 0, !0)
1051
1051
  ])) : se("", !0)
1052
1052
  ])
1053
1053
  ]),
1054
1054
  _: 3
1055
1055
  }, 8, ["loading"])
1056
1056
  ]),
1057
- I("div", vo, [
1058
- I("div", _o, [
1059
- ue(T.$slots, "action", {}, void 0, !0),
1060
- I("div", yo, [
1061
- (u(!0), V(K, null, E(x.value, (b) => (u(), L(ye, {
1062
- key: b.Title,
1057
+ T("div", vo, [
1058
+ T("div", _o, [
1059
+ ue($.$slots, "action", {}, void 0, !0),
1060
+ T("div", yo, [
1061
+ (u(!0), V(K, null, z(x.value, (w) => (u(), L(ye, {
1062
+ key: w.Title,
1063
1063
  loading: k.value,
1064
- config: b,
1064
+ config: w,
1065
1065
  class: "action-button",
1066
- onClick: (...D) => ee(b, ...D)
1066
+ onClick: (...D) => ee(w, ...D)
1067
1067
  }, null, 8, ["loading", "config", "onClick"]))), 128))
1068
1068
  ])
1069
1069
  ])
@@ -1081,7 +1081,7 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
1081
1081
  workflowId: {}
1082
1082
  },
1083
1083
  setup(e) {
1084
- const t = Ve(), a = ze(), o = xe(), n = Se(), c = De("dataWidgets"), r = be(), l = e, s = g({
1084
+ const t = Ve(), a = Ee(), o = xe(), n = Se(), c = De("dataWidgets"), r = be(), l = e, s = g({
1085
1085
  pageType: "",
1086
1086
  fields: {},
1087
1087
  globalValidations: [],
@@ -1096,8 +1096,8 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
1096
1096
  ...v
1097
1097
  })).filter((U) => U.widget && U.widget.widget !== "Hidden").filter((U) => !oe.value.includes(U.fieldKey)) : [];
1098
1098
  }
1099
- function w(B) {
1100
- return B ? Object.entries(B).filter(([U, v]) => v.dependent).reduce((U, [v, $]) => (U[v] = $.dependent, U), {}) : [];
1099
+ function h(B) {
1100
+ return B ? Object.entries(B).filter(([U, v]) => v.dependent).reduce((U, [v, A]) => (U[v] = A.dependent, U), {}) : [];
1101
1101
  }
1102
1102
  const x = X(() => s.value?.actions ? [...s.value.actions].reverse() : []), m = Me({}), k = g(!1);
1103
1103
  de(async () => {
@@ -1107,32 +1107,32 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
1107
1107
  }, {
1108
1108
  workflowId: l.workflowId
1109
1109
  });
1110
- const B = await Qe(pe.Update, l.className, { workflowId: l.workflowId, email: z() }), T = await Ze(l.className, l.workflowId);
1110
+ const B = await Qe(pe.Update, l.className, { workflowId: l.workflowId, email: E() }), $ = await Ze(l.className, l.workflowId);
1111
1111
  s.value.actions = s.value.actions?.filter((v) => {
1112
- const $ = B.find((b) => b.button === v.title);
1113
- return $ ? $.isShow : !0;
1112
+ const A = B.find((w) => w.button === v.title);
1113
+ return A ? A.isShow : !0;
1114
1114
  });
1115
1115
  const U = s.value.fields.requestType.modelValue;
1116
- a.Test?.(U, oe), i.value = d(s.value.fields), _.value = w(s.value.fields);
1116
+ a.Test?.(U, oe), i.value = d(s.value.fields), _.value = h(s.value.fields);
1117
1117
  for (const v in s.value.fields) {
1118
1118
  if (s.value.fields[v].widget?.widget === "File") {
1119
- const $ = i.value.find((b) => b.fieldKey === v);
1120
- $ && $.widget && ($.widget.files = T[v] ?? [], $.widget.removeFile = (b) => Dt(l.className, b));
1119
+ const A = i.value.find((w) => w.fieldKey === v);
1120
+ A && A.widget && (A.widget.files = $[v] ?? [], A.widget.removeFile = (w) => Dt(l.className, w));
1121
1121
  }
1122
1122
  m[v] = s.value.fields[v].modelValue;
1123
1123
  }
1124
1124
  k.value = !1;
1125
1125
  });
1126
- function z() {
1126
+ function E() {
1127
1127
  return o()?.userInfo?.email_address ?? "";
1128
1128
  }
1129
- async function ee(B, T, U, v, $) {
1130
- switch (T) {
1129
+ async function ee(B, $, U, v, A) {
1130
+ switch ($) {
1131
1131
  case Z.Submit:
1132
- let b = !0;
1132
+ let w = !0;
1133
1133
  if (c.value?.forEach((D) => {
1134
- D?.validate && (D.validate() || (b = !1));
1135
- }), !b) {
1134
+ D?.validate && (D.validate() || (w = !1));
1135
+ }), !w) {
1136
1136
  r?.appContext.config.globalProperties.$message.error("form validation failed, please check the input fields");
1137
1137
  return;
1138
1138
  }
@@ -1144,46 +1144,46 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
1144
1144
  t.push({ name: v, params: { className: l.className } });
1145
1145
  break;
1146
1146
  default:
1147
- console.warn("Unknown action type:", T);
1147
+ console.warn("Unknown action type:", $);
1148
1148
  }
1149
1149
  }
1150
1150
  const oe = g([]);
1151
- function ne(B, T) {
1152
- a[B]?.(T, oe), s.value && (i.value = d(s.value.fields));
1151
+ function ne(B, $) {
1152
+ a[B]?.($, oe), s.value && (i.value = d(s.value.fields));
1153
1153
  }
1154
- const le = X(() => Ee(i.value));
1155
- return (B, T) => {
1154
+ const le = X(() => ze(i.value));
1155
+ return (B, $) => {
1156
1156
  const U = S("a-card"), v = S("a-spin");
1157
1157
  return u(), V("div", ho, [
1158
1158
  F($e, {
1159
1159
  title: s.value.banner.title,
1160
1160
  subTitle: s.value.banner.subTitle,
1161
- email: z()
1161
+ email: E()
1162
1162
  }, null, 8, ["title", "subTitle", "email"]),
1163
- I("div", ko, [
1163
+ T("div", ko, [
1164
1164
  F(v, {
1165
1165
  loading: k.value,
1166
1166
  class: "form-container"
1167
1167
  }, {
1168
1168
  default: p(() => [
1169
- I("div", Co, [
1170
- I("div", Vo, [
1171
- (u(!0), V(K, null, E(le.value, ($) => (u(), L(U, {
1172
- key: $.name,
1173
- title: $.name,
1169
+ T("div", Co, [
1170
+ T("div", Vo, [
1171
+ (u(!0), V(K, null, z(le.value, (A) => (u(), L(U, {
1172
+ key: A.name,
1173
+ title: A.name,
1174
1174
  style: { "margin-bottom": "24px" }
1175
1175
  }, {
1176
1176
  default: p(() => [
1177
- I("div", So, [
1178
- (u(!0), V(K, null, E($.fields, (b) => (u(), L(Ke, {
1179
- key: b.fieldKey,
1177
+ T("div", So, [
1178
+ (u(!0), V(K, null, z(A.fields, (w) => (u(), L(Ke, {
1179
+ key: w.fieldKey,
1180
1180
  ref_for: !0,
1181
1181
  ref: "dataWidgets",
1182
- "field-key": b.fieldKey,
1183
- config: b,
1182
+ "field-key": w.fieldKey,
1183
+ config: w,
1184
1184
  "class-name": B.className,
1185
- modelValue: m[b.fieldKey],
1186
- "onUpdate:modelValue": (D) => m[b.fieldKey] = D,
1185
+ modelValue: m[w.fieldKey],
1186
+ "onUpdate:modelValue": (D) => m[w.fieldKey] = D,
1187
1187
  class: "form-field",
1188
1188
  onChange: ne
1189
1189
  }, null, 8, ["field-key", "config", "class-name", "modelValue", "onUpdate:modelValue"]))), 128))
@@ -1200,16 +1200,16 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
1200
1200
  _: 3
1201
1201
  }, 8, ["loading"])
1202
1202
  ]),
1203
- I("div", $o, [
1204
- I("div", Ao, [
1203
+ T("div", $o, [
1204
+ T("div", Ao, [
1205
1205
  ue(B.$slots, "action", {}, void 0, !0),
1206
- I("div", Io, [
1207
- (u(!0), V(K, null, E(x.value, ($) => (u(), L(ye, {
1208
- key: $.Title,
1206
+ T("div", Io, [
1207
+ (u(!0), V(K, null, z(x.value, (A) => (u(), L(ye, {
1208
+ key: A.Title,
1209
1209
  loading: k.value,
1210
- config: $,
1210
+ config: A,
1211
1211
  class: "action-button",
1212
- onClick: (...b) => ee($, ...b)
1212
+ onClick: (...w) => ee(A, ...w)
1213
1213
  }, null, 8, ["loading", "config", "onClick"]))), 128))
1214
1214
  ])
1215
1215
  ])
@@ -1274,7 +1274,7 @@ const Ho = G({
1274
1274
  };
1275
1275
  }
1276
1276
  }), Ko = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1277
- function zo(e, t, a, o, n, c) {
1277
+ function Eo(e, t, a, o, n, c) {
1278
1278
  return u(), V("svg", {
1279
1279
  viewBox: "0 0 48 48",
1280
1280
  fill: "none",
@@ -1287,11 +1287,11 @@ function zo(e, t, a, o, n, c) {
1287
1287
  "stroke-linejoin": e.strokeLinejoin,
1288
1288
  onClick: t[0] || (t[0] = (...r) => e.onClick && e.onClick(...r))
1289
1289
  }, t[1] || (t[1] = [
1290
- I("path", { d: "m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6" }, null, -1)
1290
+ T("path", { d: "m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6" }, null, -1)
1291
1291
  ]), 14, Ko);
1292
1292
  }
1293
- var Fe = /* @__PURE__ */ Bo(Ho, [["render", zo]]);
1294
- const Eo = Object.assign(Fe, {
1293
+ var Fe = /* @__PURE__ */ Bo(Ho, [["render", Eo]]);
1294
+ const zo = Object.assign(Fe, {
1295
1295
  install: (e, t) => {
1296
1296
  var a;
1297
1297
  const o = (a = t?.iconPrefix) != null ? a : "";
@@ -1313,7 +1313,7 @@ const Eo = Object.assign(Fe, {
1313
1313
  workflowId: {}
1314
1314
  },
1315
1315
  setup(e) {
1316
- const t = xe(), a = Se(), o = ze(), n = Ve(), c = No(), r = be(), l = e, s = g({
1316
+ const t = xe(), a = Se(), o = Ee(), n = Ve(), c = No(), r = be(), l = e, s = g({
1317
1317
  pageType: "",
1318
1318
  fields: {},
1319
1319
  globalValidations: [],
@@ -1322,15 +1322,15 @@ const Eo = Object.assign(Fe, {
1322
1322
  subTitle: ""
1323
1323
  }
1324
1324
  }), i = g([]);
1325
- function _(h) {
1326
- return h ? Object.entries(h).map(([H, C]) => (typeof C.modelValue == "boolean" ? C.fieldValue = C.modelValue ? "Yes" : "No" : C.fieldValue = C.modelValue, {
1325
+ function _(b) {
1326
+ return b ? Object.entries(b).map(([H, C]) => (typeof C.modelValue == "boolean" ? C.fieldValue = C.modelValue ? "Yes" : "No" : C.fieldValue = C.modelValue, {
1327
1327
  fieldKey: H,
1328
1328
  ...C
1329
1329
  })).filter((H) => H.widget && H.widget.widget !== "Hidden").filter((H) => !B.value.includes(H.fieldKey)) : [];
1330
1330
  }
1331
- const d = X(() => Ee(i.value)), w = X(() => s.value?.actions ? [...s.value.actions].reverse() : []), x = g(!0), m = (h, f) => {
1332
- const H = h.findIndex((C) => C.isCurrent);
1333
- return h.map((C, Y) => {
1331
+ const d = X(() => ze(i.value)), h = X(() => s.value?.actions ? [...s.value.actions].reverse() : []), x = g(!0), m = (b, f) => {
1332
+ const H = b.findIndex((C) => C.isCurrent);
1333
+ return b.map((C, Y) => {
1334
1334
  const N = {
1335
1335
  id: C.id,
1336
1336
  title: "",
@@ -1362,51 +1362,51 @@ const Eo = Object.assign(Fe, {
1362
1362
  }
1363
1363
  return N;
1364
1364
  });
1365
- }, k = g([]), z = g(!1), ee = g(!1), oe = g(!1), ne = g(!1);
1365
+ }, k = g([]), E = g(!1), ee = g(!1), oe = g(!1), ne = g(!1);
1366
1366
  async function le() {
1367
- const h = await Qe(pe.Details, l.className, { workflowId: l.workflowId, email: v() });
1367
+ const b = await Qe(pe.Details, l.className, { workflowId: l.workflowId, email: v() });
1368
1368
  s.value.actions = s.value.actions?.filter((f) => {
1369
- const H = h.find((C) => C.button === f.title);
1369
+ const H = b.find((C) => C.button === f.title);
1370
1370
  return H ? H.isShow : !0;
1371
- }), z.value = h.find((f) => f.button === "IsGlobal")?.isShow ?? !1, ee.value = h.find((f) => f.button === "AssignButton")?.isShow ?? !1, oe.value = h.find((f) => f.button === "AssignList")?.isShow ?? !1, ne.value = h.find((f) => f.button === "AddCommentsButton")?.isShow ?? !1;
1371
+ }), E.value = b.find((f) => f.button === "IsGlobal")?.isShow ?? !1, ee.value = b.find((f) => f.button === "AssignButton")?.isShow ?? !1, oe.value = b.find((f) => f.button === "AssignList")?.isShow ?? !1, ne.value = b.find((f) => f.button === "AddCommentsButton")?.isShow ?? !1;
1372
1372
  }
1373
1373
  const B = g([]);
1374
- async function T() {
1374
+ async function $() {
1375
1375
  x.value = !0, s.value = await Ce(pe.Details, l.className, {
1376
1376
  svrStore: t,
1377
1377
  bpmStore: a
1378
1378
  }, {
1379
1379
  workflowId: l.workflowId
1380
1380
  });
1381
- const h = await Ze(l.className, l.workflowId);
1381
+ const b = await Ze(l.className, l.workflowId);
1382
1382
  ae.value = await Pt(), D.value = await Oe(l.workflowId), fe.value = await Le(l.workflowId), le();
1383
1383
  const f = s.value.fields.requestType.modelValue;
1384
1384
  o.Test?.(f, B), i.value = _(s.value.fields);
1385
1385
  for (const C in s.value.fields)
1386
1386
  if (s.value.fields[C].widget?.widget === "File") {
1387
1387
  const Y = i.value.find((N) => N.fieldKey === C);
1388
- Y && Y.widget && (Y.widget.files = h[C] ?? []);
1388
+ Y && Y.widget && (Y.widget.files = b[C] ?? []);
1389
1389
  }
1390
1390
  const H = await Ft(l.className, l.workflowId);
1391
1391
  k.value = m(H, 0), x.value = !1;
1392
1392
  }
1393
- de(T);
1394
- async function U(h, f) {
1395
- return o[h]?.(f);
1393
+ de($);
1394
+ async function U(b, f) {
1395
+ return o[b]?.(f);
1396
1396
  }
1397
1397
  function v() {
1398
1398
  return t()?.userInfo?.email_address ?? "";
1399
1399
  }
1400
- async function $(h, f, H, C, Y) {
1400
+ async function A(b, f, H, C, Y) {
1401
1401
  try {
1402
1402
  switch (f) {
1403
1403
  case Z.Submit:
1404
- const { reason: N, ifGlobal: ie } = await U(Y, { isGlobal: z.value });
1404
+ const { reason: N, ifGlobal: ie } = await U(Y, { isGlobal: E.value });
1405
1405
  x.value = !0;
1406
1406
  const P = Y === "Approve" ? "100" : "-1";
1407
1407
  await Nt(l.className, l.workflowId, v(), N, [Number(l.workflowId)], H, P, ie), x.value = !1;
1408
1408
  const Q = Y === "Approve" ? "approve success!" : "approve reject!";
1409
- r?.appContext.config.globalProperties.$notification.success(Q), T();
1409
+ r?.appContext.config.globalProperties.$notification.success(Q), $();
1410
1410
  break;
1411
1411
  case Z.Link:
1412
1412
  C === "List" && n.push({ name: "List", params: { className: l.className } });
@@ -1417,7 +1417,7 @@ const Eo = Object.assign(Fe, {
1417
1417
  } catch {
1418
1418
  }
1419
1419
  }
1420
- const b = g(""), D = g([]), te = g(""), ae = g([]), fe = g([]);
1420
+ const w = g(""), D = g([]), te = g(""), ae = g([]), fe = g([]);
1421
1421
  async function Ae() {
1422
1422
  if (!te.value) {
1423
1423
  r?.appContext.config.globalProperties.$message.error("Please select an approver");
@@ -1426,19 +1426,19 @@ const Eo = Object.assign(Fe, {
1426
1426
  await y("Confirm Assign Approver", "Do you want to assign the selected approver?");
1427
1427
  try {
1428
1428
  await Mt(l.workflowId, te.value), fe.value = await Le(l.workflowId), le(), r?.appContext.config.globalProperties.$notification.success("Assign Approver clicked!");
1429
- } catch (h) {
1430
- if (h.status === 409) {
1429
+ } catch (b) {
1430
+ if (b.status === 409) {
1431
1431
  r?.appContext.config.globalProperties.$notification.error("This user is already an associator");
1432
1432
  return;
1433
1433
  }
1434
1434
  r?.appContext.config.globalProperties.$notification.error("Failed to assign approver");
1435
1435
  }
1436
1436
  }
1437
- async function y(h, f) {
1437
+ async function y(b, f) {
1438
1438
  const { Modal: H } = await import("@arco-design/web-vue");
1439
1439
  return new Promise((C, Y) => {
1440
1440
  H.confirm({
1441
- title: h,
1441
+ title: b,
1442
1442
  content: f,
1443
1443
  okText: "OK",
1444
1444
  cancelText: "Cancel",
@@ -1447,26 +1447,26 @@ const Eo = Object.assign(Fe, {
1447
1447
  });
1448
1448
  });
1449
1449
  }
1450
- async function A(h) {
1450
+ async function I(b) {
1451
1451
  try {
1452
1452
  await y("Confirm Delete Associator", "Do you want to delete this associator?");
1453
1453
  } catch {
1454
1454
  return;
1455
1455
  }
1456
1456
  try {
1457
- await Ht(String(h)), fe.value = await Le(l.workflowId), r?.appContext.config.globalProperties.$notification.success("Associator deleted successfully!");
1457
+ await Ht(String(b)), fe.value = await Le(l.workflowId), r?.appContext.config.globalProperties.$notification.success("Associator deleted successfully!");
1458
1458
  } catch {
1459
1459
  r?.appContext.config.globalProperties.$notification.error("Failed to delete associator");
1460
1460
  }
1461
1461
  }
1462
1462
  async function R() {
1463
- if (!b.value.trim()) {
1463
+ if (!w.value.trim()) {
1464
1464
  r?.appContext.config.globalProperties.$message.error("Comment cannot be empty");
1465
1465
  return;
1466
1466
  }
1467
- await Bt(l.workflowId, v(), b.value), b.value = "", D.value = await Oe(l.workflowId), r?.appContext.config.globalProperties.$notification.success("Add Comment clicked!");
1467
+ await Bt(l.workflowId, v(), w.value), w.value = "", D.value = await Oe(l.workflowId), r?.appContext.config.globalProperties.$notification.success("Add Comment clicked!");
1468
1468
  }
1469
- return (h, f) => {
1469
+ return (b, f) => {
1470
1470
  const H = S("a-link"), C = S("a-space"), Y = S("a-card"), N = S("a-option"), ie = S("a-select"), P = S("a-button"), Q = S("a-list-item"), W = S("a-list"), he = S("a-textarea"), st = S("a-spin");
1471
1471
  return u(), V("div", jo, [
1472
1472
  F($e, {
@@ -1474,29 +1474,29 @@ const Eo = Object.assign(Fe, {
1474
1474
  subTitle: s.value.banner.subTitle,
1475
1475
  email: v()
1476
1476
  }, null, 8, ["title", "subTitle", "email"]),
1477
- I("div", Oo, [
1477
+ T("div", Oo, [
1478
1478
  F(st, {
1479
1479
  loading: x.value,
1480
1480
  class: "detail-container"
1481
1481
  }, {
1482
1482
  default: p(() => [
1483
- I("div", Go, [
1483
+ T("div", Go, [
1484
1484
  (u(), L(Pe(Te(c).Steps), { steps: k.value }, null, 8, ["steps"])),
1485
- I("div", Wo, [
1486
- (u(!0), V(K, null, E(d.value, (M) => (u(), L(Y, {
1485
+ T("div", Wo, [
1486
+ (u(!0), V(K, null, z(d.value, (M) => (u(), L(Y, {
1487
1487
  key: M.name,
1488
1488
  title: M.name,
1489
1489
  style: { "margin-bottom": "24px" }
1490
1490
  }, {
1491
1491
  default: p(() => [
1492
- I("div", qo, [
1493
- (u(!0), V(K, null, E(M.fields, (ce) => (u(), V("div", {
1492
+ T("div", qo, [
1493
+ (u(!0), V(K, null, z(M.fields, (ce) => (u(), V("div", {
1494
1494
  key: ce.fieldKey,
1495
1495
  class: "detail-field-wrapper"
1496
1496
  }, [
1497
- I("div", Yo, [
1498
- I("div", Jo, J(ce.widget?.title), 1),
1499
- ce.widget?.widget === "File" ? (u(!0), V(K, { key: 0 }, E(ce.widget.files, (Ie) => (u(), V("div", {
1497
+ T("div", Yo, [
1498
+ T("div", Jo, J(ce.widget?.title), 1),
1499
+ ce.widget?.widget === "File" ? (u(!0), V(K, { key: 0 }, z(ce.widget.files, (Ie) => (u(), V("div", {
1500
1500
  class: "field-value",
1501
1501
  key: Ie.id
1502
1502
  }, [
@@ -1508,7 +1508,7 @@ const Eo = Object.assign(Fe, {
1508
1508
  target: "_blank"
1509
1509
  }, {
1510
1510
  default: p(() => [
1511
- F(Te(Eo), { style: { color: "#7A00E6" } })
1511
+ F(Te(zo), { style: { color: "#7A00E6" } })
1512
1512
  ]),
1513
1513
  _: 2
1514
1514
  }, 1032, ["href"])
@@ -1529,7 +1529,7 @@ const Eo = Object.assign(Fe, {
1529
1529
  "onUpdate:modelValue": f[0] || (f[0] = (M) => te.value = M)
1530
1530
  }, {
1531
1531
  default: p(() => [
1532
- (u(!0), V(K, null, E(ae.value, (M) => (u(), L(N, {
1532
+ (u(!0), V(K, null, z(ae.value, (M) => (u(), L(N, {
1533
1533
  key: M.value,
1534
1534
  value: M.value
1535
1535
  }, {
@@ -1559,14 +1559,14 @@ const Eo = Object.assign(Fe, {
1559
1559
  q(" Associators ", -1)
1560
1560
  ])),
1561
1561
  default: p(() => [
1562
- (u(!0), V(K, null, E(fe.value, (M) => (u(), L(Q, {
1562
+ (u(!0), V(K, null, z(fe.value, (M) => (u(), L(Q, {
1563
1563
  key: M.id
1564
1564
  }, {
1565
1565
  actions: p(() => [
1566
1566
  F(P, {
1567
1567
  type: "text",
1568
1568
  status: "danger",
1569
- onClick: (ce) => A(M.id)
1569
+ onClick: (ce) => I(M.id)
1570
1570
  }, {
1571
1571
  default: p(() => f[4] || (f[4] = [
1572
1572
  q(" Delete ", -1)
@@ -1584,11 +1584,11 @@ const Eo = Object.assign(Fe, {
1584
1584
  _: 1
1585
1585
  })) : se("", !0),
1586
1586
  ne.value ? (u(), V("div", Qo, [
1587
- I("div", Zo, [
1588
- f[6] || (f[6] = I("div", { class: "field-label" }, "Comment", -1)),
1587
+ T("div", Zo, [
1588
+ f[6] || (f[6] = T("div", { class: "field-label" }, "Comment", -1)),
1589
1589
  F(he, {
1590
- modelValue: b.value,
1591
- "onUpdate:modelValue": f[1] || (f[1] = (M) => b.value = M)
1590
+ modelValue: w.value,
1591
+ "onUpdate:modelValue": f[1] || (f[1] = (M) => w.value = M)
1592
1592
  }, null, 8, ["modelValue"]),
1593
1593
  F(P, {
1594
1594
  type: "primary",
@@ -1607,7 +1607,7 @@ const Eo = Object.assign(Fe, {
1607
1607
  q(" Comments History ", -1)
1608
1608
  ])),
1609
1609
  default: p(() => [
1610
- (u(!0), V(K, null, E(D.value, (M) => (u(), L(Q, {
1610
+ (u(!0), V(K, null, z(D.value, (M) => (u(), L(Q, {
1611
1611
  key: M.associator
1612
1612
  }, {
1613
1613
  default: p(() => [
@@ -1619,24 +1619,24 @@ const Eo = Object.assign(Fe, {
1619
1619
  _: 1
1620
1620
  })) : se("", !0)
1621
1621
  ]),
1622
- h.$slots.content ? (u(), V("div", en, [
1623
- ue(h.$slots, "content", {}, void 0, !0)
1622
+ b.$slots.content ? (u(), V("div", en, [
1623
+ ue(b.$slots, "content", {}, void 0, !0)
1624
1624
  ])) : se("", !0)
1625
1625
  ])
1626
1626
  ]),
1627
1627
  _: 3
1628
1628
  }, 8, ["loading"])
1629
1629
  ]),
1630
- I("div", tn, [
1631
- I("div", on, [
1632
- ue(h.$slots, "action", {}, void 0, !0),
1633
- I("div", nn, [
1634
- (u(!0), V(K, null, E(w.value, (M) => (u(), L(ye, {
1630
+ T("div", tn, [
1631
+ T("div", on, [
1632
+ ue(b.$slots, "action", {}, void 0, !0),
1633
+ T("div", nn, [
1634
+ (u(!0), V(K, null, z(h.value, (M) => (u(), L(ye, {
1635
1635
  key: M.Title,
1636
1636
  loading: x.value,
1637
1637
  config: M,
1638
1638
  class: "action-button",
1639
- onClick: (...ce) => $(M, ...ce)
1639
+ onClick: (...ce) => A(M, ...ce)
1640
1640
  }, null, 8, ["loading", "config", "onClick"]))), 128))
1641
1641
  ])
1642
1642
  ])
@@ -1661,10 +1661,10 @@ const Eo = Object.assign(Fe, {
1661
1661
  filters: []
1662
1662
  });
1663
1663
  function s() {
1664
- const y = Object.entries($.value).filter(([, { value: A }]) => A && A !== "").map(([A, { value: R, operator: h }]) => ({
1665
- key: A,
1664
+ const y = Object.entries(A.value).filter(([, { value: I }]) => I && I !== "").map(([I, { value: R, operator: b }]) => ({
1665
+ key: I,
1666
1666
  value: R,
1667
- operator: h
1667
+ operator: b
1668
1668
  // 根据实际需要调整操作符
1669
1669
  }));
1670
1670
  return {
@@ -1678,14 +1678,14 @@ const Eo = Object.assign(Fe, {
1678
1678
  };
1679
1679
  }
1680
1680
  const i = X(() => ({
1681
- x: w.value.length * 150 + 250
1681
+ x: h.value.length * 150 + 250
1682
1682
  // 只设置横向滚动
1683
1683
  // 移除 y 属性,让表格高度自适应
1684
1684
  })), _ = (y) => {
1685
- const A = Object.entries(y).filter(([, R]) => R.widget?.column).map(([R, h], f) => ({
1686
- title: h.widget.title,
1685
+ const I = Object.entries(y).filter(([, R]) => R.widget?.column).map(([R, b], f) => ({
1686
+ title: b.widget.title,
1687
1687
  dataIndex: R.charAt(0).toLowerCase() + R.slice(1),
1688
- order: h.order,
1688
+ order: b.order,
1689
1689
  ellipsis: !0,
1690
1690
  tooltip: !0,
1691
1691
  width: 150,
@@ -1693,8 +1693,8 @@ const Eo = Object.assign(Fe, {
1693
1693
  // 启用最小宽度
1694
1694
  resizable: !0
1695
1695
  // 启用列宽调整
1696
- })).sort((R, h) => R.order - h.order);
1697
- A.push({
1696
+ })).sort((R, b) => R.order - b.order);
1697
+ I.push({
1698
1698
  title: "Actions",
1699
1699
  slotName: "optional",
1700
1700
  align: "center",
@@ -1702,8 +1702,8 @@ const Eo = Object.assign(Fe, {
1702
1702
  minWidth: 200,
1703
1703
  fixed: "right",
1704
1704
  resizable: !1
1705
- }), w.value = A, console.log("🚀 ~ mapColumns ~ _columns.value:", w.value);
1706
- }, d = g([]), w = g([]), x = g(!0), m = g(!0), k = g(), z = async () => {
1705
+ }), h.value = I;
1706
+ }, d = g([]), h = g([]), x = g(!0), m = g(!0), k = g(), E = async () => {
1707
1707
  m.value = !0;
1708
1708
  const y = await Vt(c.className, s());
1709
1709
  d.value = y.data, console.log("🚀 ~ loadData ~ _data.value:", d.value), l.total = y.totalCount, m.value = !1;
@@ -1714,14 +1714,14 @@ const Eo = Object.assign(Fe, {
1714
1714
  bpmStore: a
1715
1715
  }), _(r.value.fields), D(r.value.fields), te(), v(r.value?.tabs?.[0]?.key || ""), k.value = r.value.actions, x.value = !1, ee.value = !0;
1716
1716
  }), ct(() => {
1717
- ee.value && z();
1717
+ ee.value && E();
1718
1718
  });
1719
1719
  const oe = (y) => {
1720
- l.current = y, z();
1720
+ l.current = y, E();
1721
1721
  }, ne = (y) => {
1722
- l.pageSize = y, z();
1722
+ l.pageSize = y, E();
1723
1723
  };
1724
- function le(y, A, R, h, f) {
1724
+ function le(y, I, R, b, f) {
1725
1725
  switch (y) {
1726
1726
  case Z.Link:
1727
1727
  o.push({ name: R, params: { workflowId: f } });
@@ -1730,10 +1730,10 @@ const Eo = Object.assign(Fe, {
1730
1730
  console.warn("Unknown action type:", y);
1731
1731
  }
1732
1732
  }
1733
- function B(y, A, R) {
1733
+ function B(y, I, R) {
1734
1734
  switch (y) {
1735
1735
  case Z.Submit:
1736
- Kt(A, { filters: [{ key: "approverList", value: "jessica.zhan@sanofi.com", operator: 2 }] }), n?.appContext.config.globalProperties.$notification.success("submit success!");
1736
+ Kt(I, { filters: [{ key: "approverList", value: $(), operator: 2 }] }), n?.appContext.config.globalProperties.$notification.success("submit success!");
1737
1737
  break;
1738
1738
  case Z.Link:
1739
1739
  o.push({ name: R });
@@ -1742,52 +1742,52 @@ const Eo = Object.assign(Fe, {
1742
1742
  console.warn("Unknown action type:", y);
1743
1743
  }
1744
1744
  }
1745
- function T() {
1745
+ function $() {
1746
1746
  return t()?.userInfo?.email_address ?? "";
1747
1747
  }
1748
- function U(y, A) {
1749
- return typeof y != "string" || y.indexOf("{currentUserEmail}") === -1 ? y : y.replace(/{currentUserEmail}/g, A);
1748
+ function U(y, I) {
1749
+ return typeof y != "string" || y.indexOf("{currentUserEmail}") === -1 ? y : y.replace(/{currentUserEmail}/g, I);
1750
1750
  }
1751
1751
  function v(y) {
1752
- const A = r.value?.tabs?.find((R) => R.key === y)?.filters;
1753
- l.filters = A?.map((R) => ({
1752
+ const I = r.value?.tabs?.find((R) => R.key === y)?.filters;
1753
+ l.filters = I?.map((R) => ({
1754
1754
  ...R,
1755
- value: U(R.value, T())
1756
- })) || [], z();
1755
+ value: U(R.value, $())
1756
+ })) || [], E();
1757
1757
  }
1758
- const $ = g({}), b = g([]);
1758
+ const A = g({}), w = g([]);
1759
1759
  function D(y) {
1760
1760
  if (!y) return [];
1761
- b.value = Object.entries(y).filter(([, A]) => A.isFiltered).map(([A, R]) => ({ fieldKey: A, fieldConfig: R }));
1761
+ w.value = Object.entries(y).filter(([, I]) => I.isFiltered).map(([I, R]) => ({ fieldKey: I, fieldConfig: R }));
1762
1762
  }
1763
1763
  const te = () => {
1764
1764
  const y = {};
1765
- b.value.forEach(({ fieldKey: A, fieldConfig: R }) => {
1766
- y[A] = {}, y[A].value = R.modelValue, y[A].operator = R.operator;
1767
- }), $.value = y;
1765
+ w.value.forEach(({ fieldKey: I, fieldConfig: R }) => {
1766
+ y[I] = {}, y[I].value = R.modelValue, y[I].operator = R.operator;
1767
+ }), A.value = y;
1768
1768
  }, ae = () => {
1769
- l.current = 1, z();
1769
+ l.current = 1, E();
1770
1770
  }, fe = () => {
1771
1771
  r.value && te(), ae();
1772
1772
  };
1773
- function Ae(y, A) {
1774
- return !(y.location !== "InTable" || y.title === "Update" && (A.status === 100 || A.status === -1));
1773
+ function Ae(y, I) {
1774
+ return !(y.location !== "InTable" || y.title === "Update" && (I.status === 100 || I.status === -1));
1775
1775
  }
1776
- return (y, A) => {
1777
- const R = S("a-space"), h = S("a-col"), f = S("a-button"), H = S("a-row"), C = S("a-card"), Y = S("a-tab-pane"), N = S("a-tabs"), ie = S("a-table");
1776
+ return (y, I) => {
1777
+ const R = S("a-space"), b = S("a-col"), f = S("a-button"), H = S("a-row"), C = S("a-card"), Y = S("a-tab-pane"), N = S("a-tabs"), ie = S("a-table");
1778
1778
  return u(), V("div", rn, [
1779
1779
  F($e, {
1780
1780
  title: r.value?.banner.title ?? "",
1781
1781
  subTitle: r.value?.banner.subTitle ?? "",
1782
- email: T()
1782
+ email: $()
1783
1783
  }, null, 8, ["title", "subTitle", "email"]),
1784
1784
  F(C, null, {
1785
1785
  default: p(() => [
1786
- I("div", ln, [
1787
- A[0] || (A[0] = I("h3", null, "Search Conditions", -1)),
1786
+ T("div", ln, [
1787
+ I[0] || (I[0] = T("h3", null, "Search Conditions", -1)),
1788
1788
  F(R, { size: "medium" }, {
1789
1789
  default: p(() => [
1790
- (u(!0), V(K, null, E(k.value, (P) => (u(), V(K, {
1790
+ (u(!0), V(K, null, z(k.value, (P) => (u(), V(K, {
1791
1791
  key: P.title
1792
1792
  }, [
1793
1793
  P.location === "InOperation" ? (u(), L(ye, {
@@ -1802,7 +1802,7 @@ const Eo = Object.assign(Fe, {
1802
1802
  ]),
1803
1803
  F(H, { gutter: [24, 20] }, {
1804
1804
  default: p(() => [
1805
- (u(!0), V(K, null, E(b.value, (P) => (u(), L(h, {
1805
+ (u(!0), V(K, null, z(w.value, (P) => (u(), L(b, {
1806
1806
  key: P.fieldKey,
1807
1807
  span: 6,
1808
1808
  class: "search-col"
@@ -1811,14 +1811,14 @@ const Eo = Object.assign(Fe, {
1811
1811
  F(Ke, {
1812
1812
  name: P.fieldKey,
1813
1813
  config: P.fieldConfig,
1814
- modelValue: $.value[P.fieldKey].value,
1815
- "onUpdate:modelValue": (Q) => $.value[P.fieldKey].value = Q,
1814
+ modelValue: A.value[P.fieldKey].value,
1815
+ "onUpdate:modelValue": (Q) => A.value[P.fieldKey].value = Q,
1816
1816
  class: "form-field"
1817
1817
  }, null, 8, ["name", "config", "modelValue", "onUpdate:modelValue"])
1818
1818
  ]),
1819
1819
  _: 2
1820
1820
  }, 1024))), 128)),
1821
- F(h, {
1821
+ F(b, {
1822
1822
  span: 6,
1823
1823
  class: "search-col form-buttons"
1824
1824
  }, {
@@ -1830,7 +1830,7 @@ const Eo = Object.assign(Fe, {
1830
1830
  size: "medium",
1831
1831
  onClick: ae
1832
1832
  }, {
1833
- default: p(() => A[1] || (A[1] = [
1833
+ default: p(() => I[1] || (I[1] = [
1834
1834
  q(" Search ", -1)
1835
1835
  ])),
1836
1836
  _: 1,
@@ -1840,7 +1840,7 @@ const Eo = Object.assign(Fe, {
1840
1840
  size: "medium",
1841
1841
  onClick: fe
1842
1842
  }, {
1843
- default: p(() => A[2] || (A[2] = [
1843
+ default: p(() => I[2] || (I[2] = [
1844
1844
  q(" Reset ", -1)
1845
1845
  ])),
1846
1846
  _: 1,
@@ -1863,7 +1863,7 @@ const Eo = Object.assign(Fe, {
1863
1863
  onTabClick: v
1864
1864
  }, {
1865
1865
  default: p(() => [
1866
- (u(!0), V(K, null, E(r.value?.tabs, (P) => (u(), L(Y, {
1866
+ (u(!0), V(K, null, z(r.value?.tabs, (P) => (u(), L(Y, {
1867
1867
  key: P.key,
1868
1868
  title: P.title
1869
1869
  }, null, 8, ["title"]))), 128))
@@ -1871,7 +1871,7 @@ const Eo = Object.assign(Fe, {
1871
1871
  _: 1
1872
1872
  }),
1873
1873
  F(ie, {
1874
- columns: w.value,
1874
+ columns: h.value,
1875
1875
  data: d.value,
1876
1876
  stripe: "",
1877
1877
  border: "",
@@ -1893,7 +1893,7 @@ const Eo = Object.assign(Fe, {
1893
1893
  optional: p(({ record: P }) => [
1894
1894
  F(R, { size: "small" }, {
1895
1895
  default: p(() => [
1896
- (u(!0), V(K, null, E(k.value, (Q) => (u(), V(K, {
1896
+ (u(!0), V(K, null, z(k.value, (Q) => (u(), V(K, {
1897
1897
  key: Q.title
1898
1898
  }, [
1899
1899
  Ae(Q, P) ? (u(), L(ye, {
@@ -1912,7 +1912,7 @@ const Eo = Object.assign(Fe, {
1912
1912
  ]);
1913
1913
  };
1914
1914
  }
1915
- }), un = /* @__PURE__ */ ve(cn, [["__scopeId", "data-v-7ed94b4d"]]), vn = {
1915
+ }), un = /* @__PURE__ */ ve(cn, [["__scopeId", "data-v-a83216cf"]]), vn = {
1916
1916
  install(e, t = {}) {
1917
1917
  t.config && yt(t.config), t.router && e.provide(et, t.router), t.pinia && e.provide(to, t.pinia), t.useBpmStore && e.provide(ot, t.useBpmStore), t.useSvrStore && e.provide(nt, t.useSvrStore), t.triggers && e.provide(tt, t.triggers), t.customComps && e.provide(at, t.customComps), e.component("CreateView", bo), e.component("UpdateView", Uo), e.component("DetailView", sn), e.component("ListView", un);
1918
1918
  }