@chase-shao/vue-component-lib 1.2.99 → 1.2.100

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 me, defineComponent as z, mergeModels as le, useModel as we, resolveComponent as x, createBlock as F, openBlock as d, onMounted as ue, computed as E, withCtx as S, createElementBlock as _, Fragment as $, renderList as j, createVNode as N, nextTick as ut, createTextVNode as oe, inject as ge, normalizeStyle as Qe, normalizeClass as Je, createElementVNode as h, createCommentVNode as ae, toDisplayString as Y, useTemplateRef as Oe, resolveDynamicComponent as $e, renderSlot as de, reactive as ft, onActivated as pt } from "vue";
1
+ import { ref as m, getCurrentInstance as ge, defineComponent as z, mergeModels as ie, useModel as we, resolveComponent as x, createBlock as B, openBlock as d, onMounted as fe, computed as E, withCtx as S, createElementBlock as _, Fragment as $, renderList as j, createVNode as N, nextTick as ut, createTextVNode as ae, inject as _e, normalizeStyle as Qe, normalizeClass as Je, createElementVNode as h, createCommentVNode as re, toDisplayString as q, useTemplateRef as Oe, resolveDynamicComponent as $e, renderSlot as ue, reactive as ft, onActivated as pt } from "vue";
2
2
  import mt from "axios";
3
3
  import { defineStore as gt } from "pinia";
4
4
  import { Modal as _t } from "@arco-design/web-vue";
@@ -55,7 +55,7 @@ function kt(t) {
55
55
  function je() {
56
56
  return Re;
57
57
  }
58
- const Ct = me();
58
+ const Ct = ge();
59
59
  function Xe() {
60
60
  const t = je();
61
61
  return {
@@ -100,28 +100,28 @@ const et = async () => {
100
100
  }, W = async () => {
101
101
  const t = await et(), n = Ze();
102
102
  return n.defaults.headers.common.Authorization = `Bearer ${t}`, n;
103
- }, Be = {
103
+ }, He = {
104
104
  CurrentUserEmail: (t) => t.svrStore()?.userInfo?.email_address ?? "test.email@dataGetter.ts",
105
105
  CurrentUserPositionCode: (t) => t.bpmStore()?.positionCode ?? 888,
106
106
  CurrentDatetime: () => (/* @__PURE__ */ new Date()).toISOString(),
107
107
  ApproverEmail: (t) => t.svrStore()?.userInfo?.email_address ?? "test.email@dataGetter.ts",
108
108
  ApproverPositionCode: (t) => t.bpmStore()?.positionCode ?? 999,
109
109
  RejectReason: () => "Test Reject Reason"
110
- }, q = [];
110
+ }, G = [];
111
111
  for (let t = 0; t < 256; ++t)
112
- q.push((t + 256).toString(16).slice(1));
112
+ G.push((t + 256).toString(16).slice(1));
113
113
  function xt(t, n = 0) {
114
- return (q[t[n + 0]] + q[t[n + 1]] + q[t[n + 2]] + q[t[n + 3]] + "-" + q[t[n + 4]] + q[t[n + 5]] + "-" + q[t[n + 6]] + q[t[n + 7]] + "-" + q[t[n + 8]] + q[t[n + 9]] + "-" + q[t[n + 10]] + q[t[n + 11]] + q[t[n + 12]] + q[t[n + 13]] + q[t[n + 14]] + q[t[n + 15]]).toLowerCase();
114
+ return (G[t[n + 0]] + G[t[n + 1]] + G[t[n + 2]] + G[t[n + 3]] + "-" + G[t[n + 4]] + G[t[n + 5]] + "-" + G[t[n + 6]] + G[t[n + 7]] + "-" + G[t[n + 8]] + G[t[n + 9]] + "-" + G[t[n + 10]] + G[t[n + 11]] + G[t[n + 12]] + G[t[n + 13]] + G[t[n + 14]] + G[t[n + 15]]).toLowerCase();
115
115
  }
116
- let Fe;
116
+ let Be;
117
117
  const Vt = new Uint8Array(16);
118
118
  function At() {
119
- if (!Fe) {
119
+ if (!Be) {
120
120
  if (typeof crypto > "u" || !crypto.getRandomValues)
121
121
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
122
- Fe = crypto.getRandomValues.bind(crypto);
122
+ Be = crypto.getRandomValues.bind(crypto);
123
123
  }
124
- return Fe(Vt);
124
+ return Be(Vt);
125
125
  }
126
126
  const Tt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ke = { randomUUID: Tt };
127
127
  function tt(t, n, a) {
@@ -133,7 +133,7 @@ function tt(t, n, a) {
133
133
  throw new Error("Random bytes length must be >= 16");
134
134
  return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, xt(e);
135
135
  }
136
- var J = /* @__PURE__ */ ((t) => (t[t.Submit = 0] = "Submit", t[t.Link = 1] = "Link", t[t.Button = 2] = "Button", t))(J || {}), pe = /* @__PURE__ */ ((t) => (t[t.Create = 0] = "Create", t[t.Update = 1] = "Update", t[t.Details = 2] = "Details", t[t.List = 3] = "List", t[t.ReCreate = 5] = "ReCreate", t))(pe || {});
136
+ var Q = /* @__PURE__ */ ((t) => (t[t.Submit = 0] = "Submit", t[t.Link = 1] = "Link", t[t.Button = 2] = "Button", t))(Q || {}), me = /* @__PURE__ */ ((t) => (t[t.Create = 0] = "Create", t[t.Update = 1] = "Update", t[t.Details = 2] = "Details", t[t.List = 3] = "List", t[t.ReCreate = 5] = "ReCreate", t))(me || {});
137
137
  function It(t, n, a) {
138
138
  const e = {
139
139
  pageType: "",
@@ -174,7 +174,7 @@ function It(t, n, a) {
174
174
  redirectUrl: o.redirectUrl,
175
175
  redirectType: o.redirectType,
176
176
  title: o.title,
177
- widget: o.widget === "Link" ? J.Link : o.widget === "Submit" ? J.Submit : J.Button,
177
+ widget: o.widget === "Link" ? Q.Link : o.widget === "Submit" ? Q.Submit : Q.Button,
178
178
  location: o.location,
179
179
  attributeType: o.attributeType,
180
180
  readonly: o.readonly,
@@ -203,14 +203,14 @@ function It(t, n, a) {
203
203
  s.modelValue = i;
204
204
  break;
205
205
  }
206
- o === "onBehalf" && n === 0 && (s.modelValue = Be.CurrentUserEmail(a)), (n === 1 || n === 5) && (o === "directReports" || o === "employeesInTheTeam") && s.modelValue && (s.modelValue = Number(s.modelValue)), c?.forEach((r) => {
206
+ o === "onBehalf" && n === 0 && (s.modelValue = He.CurrentUserEmail(a)), (n === 1 || n === 5) && (o === "directReports" || o === "employeesInTheTeam") && s.modelValue && (s.modelValue = Number(s.modelValue)), c?.forEach((r) => {
207
207
  r.order || r.Order ? s.order = r.order ?? r.Order : r.attributeType === "UIControl" ? (r.outputText = r.outputText ? JSON.parse(r.outputText) : [], s.widget = {
208
208
  ...r,
209
209
  column: !0
210
210
  }) : r.attributeType === "UIValidationControl" && n !== 3 ? s.widget?.widget !== "CheckBox" && s.validations.push(r) : r.attributeType === "UIListed" ? s.widget = {
211
211
  ...r,
212
212
  column: !0
213
- } : r.attributeType === "UIFiltered" ? (s.isFiltered = !0, s.operator = r.operatorType) : r.dependentType ? s.dependent = Be[r.dependentType] ? Be[r.dependentType](a) : "" : r.eventType === "Change" && s.triggers?.push({
213
+ } : r.attributeType === "UIFiltered" ? (s.isFiltered = !0, s.operator = r.operatorType) : r.dependentType ? s.dependent = He[r.dependentType] ? He[r.dependentType](a) : "" : r.eventType === "Change" && s.triggers?.push({
214
214
  event: "change",
215
215
  handlerName: r.eventName
216
216
  });
@@ -255,13 +255,13 @@ async function Dt(t, n, a, e) {
255
255
  function Me(t, n) {
256
256
  return t.replace(/{WorkflowId}/g, encodeURIComponent(n));
257
257
  }
258
- function Bt(t, n) {
258
+ function Ht(t, n) {
259
259
  return t.replace(/{ApproverEmail}/g, encodeURIComponent(n));
260
260
  }
261
- function Ft(t, n) {
261
+ function Bt(t, n) {
262
262
  return t.replace(/{WorkFlowReason}/g, encodeURIComponent(n));
263
263
  }
264
- function Ht(t, n) {
264
+ function Ft(t, n) {
265
265
  return t.replace(/{Status}/g, n);
266
266
  }
267
267
  function Lt(t, n) {
@@ -273,7 +273,7 @@ function Rt(t, n) {
273
273
  async function Ot(t, n, a, e, o, l, s, c) {
274
274
  const i = await W();
275
275
  let r = Me(o, n);
276
- return r = Bt(r, a), r = Ft(r, e), r = Ht(r, l), r = Lt(r, s), r = Rt(r, t), (await i.put(r, c))?.data;
276
+ return r = Ht(r, a), r = Bt(r, e), r = Ft(r, l), r = Lt(r, s), r = Rt(r, t), (await i.put(r, c))?.data;
277
277
  }
278
278
  async function $t(t, n) {
279
279
  const o = (await (await W()).get(t, { params: { value: n } }))?.data;
@@ -331,7 +331,7 @@ async function Jt(t, n = null) {
331
331
  });
332
332
  wt(e?.data, "WorkflowData.xlsx");
333
333
  }
334
- const _e = (t, n) => {
334
+ const ve = (t, n) => {
335
335
  let a = "";
336
336
  return { res: t.every((o) => {
337
337
  const l = Xt(o, n);
@@ -345,7 +345,7 @@ const _e = (t, n) => {
345
345
  Required: (t, n) => !!n
346
346
  }, en = /* @__PURE__ */ z({
347
347
  __name: "InputText",
348
- props: /* @__PURE__ */ le({
348
+ props: /* @__PURE__ */ ie({
349
349
  fieldKey: {},
350
350
  modelValue: {},
351
351
  config: {},
@@ -356,9 +356,9 @@ const _e = (t, n) => {
356
356
  modelValue: {},
357
357
  modelModifiers: {}
358
358
  }),
359
- emits: /* @__PURE__ */ le(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
359
+ emits: /* @__PURE__ */ ie(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
360
360
  setup(t, { expose: n, emit: a }) {
361
- const e = t, o = a, l = we(t, "modelValue"), s = (u) => _e(e.validations, u), c = (u) => {
361
+ const e = t, o = a, l = we(t, "modelValue"), s = (u) => ve(e.validations, u), c = (u) => {
362
362
  o("input", u);
363
363
  }, i = (u) => {
364
364
  const g = s(u);
@@ -375,7 +375,7 @@ const _e = (t, n) => {
375
375
  const r = { props: e, emits: o, model: l, validate: s, inputHandler: c, changeHandler: i };
376
376
  return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
377
377
  }
378
- }), Q = (t, n) => {
378
+ }), Y = (t, n) => {
379
379
  const a = t.__vccOpts || t;
380
380
  for (const [e, o] of n)
381
381
  a[e] = o;
@@ -383,7 +383,7 @@ const _e = (t, n) => {
383
383
  };
384
384
  function tn(t, n, a, e, o, l) {
385
385
  const s = x("AInput");
386
- return d(), F(s, {
386
+ return d(), B(s, {
387
387
  modelValue: e.model,
388
388
  "onUpdate:modelValue": n[0] || (n[0] = (c) => e.model = c),
389
389
  "allow-clear": "",
@@ -392,9 +392,9 @@ function tn(t, n, a, e, o, l) {
392
392
  onChange: e.changeHandler
393
393
  }, null, 8, ["modelValue", "disabled"]);
394
394
  }
395
- const Ge = /* @__PURE__ */ Q(en, [["render", tn], ["__file", "InputText.vue"]]), nn = /* @__PURE__ */ z({
395
+ const Ge = /* @__PURE__ */ Y(en, [["render", tn], ["__file", "InputText.vue"]]), nn = /* @__PURE__ */ z({
396
396
  __name: "InputNumber",
397
- props: /* @__PURE__ */ le({
397
+ props: /* @__PURE__ */ ie({
398
398
  fieldKey: {},
399
399
  modelValue: {},
400
400
  config: {},
@@ -405,15 +405,15 @@ const Ge = /* @__PURE__ */ Q(en, [["render", tn], ["__file", "InputText.vue"]]),
405
405
  modelValue: {},
406
406
  modelModifiers: {}
407
407
  }),
408
- emits: /* @__PURE__ */ le(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
408
+ emits: /* @__PURE__ */ ie(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
409
409
  setup(t, { expose: n, emit: a }) {
410
410
  const e = t, o = a, l = we(t, "modelValue"), s = m(100), c = m(1);
411
- ue(() => {
411
+ fe(() => {
412
412
  e.validations && e.validations.forEach((v) => {
413
413
  v.ruleName === "Max" && (s.value = v.ruleParameter), v.ruleName === "Min" && (c.value = v.ruleParameter);
414
414
  });
415
415
  });
416
- const i = (v) => _e(e.validations, v), r = (v) => {
416
+ const i = (v) => ve(e.validations, v), r = (v) => {
417
417
  o("input", v);
418
418
  }, u = (v) => {
419
419
  const y = i(v);
@@ -433,7 +433,7 @@ const Ge = /* @__PURE__ */ Q(en, [["render", tn], ["__file", "InputText.vue"]]),
433
433
  });
434
434
  function on(t, n, a, e, o, l) {
435
435
  const s = x("AInputNumber");
436
- return d(), F(s, {
436
+ return d(), B(s, {
437
437
  modelValue: e.model,
438
438
  "onUpdate:modelValue": n[0] || (n[0] = (c) => e.model = c),
439
439
  clearable: "",
@@ -443,9 +443,9 @@ function on(t, n, a, e, o, l) {
443
443
  onChange: e.changeHandler
444
444
  }, null, 8, ["modelValue", "disabled", "min"]);
445
445
  }
446
- const an = /* @__PURE__ */ Q(nn, [["render", on], ["__file", "InputNumber.vue"]]), rn = /* @__PURE__ */ z({
446
+ const an = /* @__PURE__ */ Y(nn, [["render", on], ["__file", "InputNumber.vue"]]), rn = /* @__PURE__ */ z({
447
447
  __name: "SelectList",
448
- props: /* @__PURE__ */ le({
448
+ props: /* @__PURE__ */ ie({
449
449
  fieldKey: {},
450
450
  modelValue: {},
451
451
  config: {},
@@ -456,9 +456,9 @@ const an = /* @__PURE__ */ Q(nn, [["render", on], ["__file", "InputNumber.vue"]]
456
456
  modelValue: {},
457
457
  modelModifiers: {}
458
458
  }),
459
- emits: /* @__PURE__ */ le(["update:modelValue", "change"], ["update:modelValue"]),
459
+ emits: /* @__PURE__ */ ie(["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 = we(t, "modelValue"), i = (y) => _e(e.validations, y), r = E(() => {
461
+ const e = t, o = a, l = m(!1), s = m(e.config.options ?? []), c = we(t, "modelValue"), i = (y) => ve(e.validations, y), r = E(() => {
462
462
  const y = {};
463
463
  return e.triggers && e.triggers.length > 0 && e.triggers.forEach((f) => {
464
464
  y[f.event] = (p) => {
@@ -474,7 +474,7 @@ const an = /* @__PURE__ */ Q(nn, [["render", on], ["__file", "InputNumber.vue"]]
474
474
  y != null && y !== "" && (s.value.some((p) => p.value === y) || o("update:modelValue", ""));
475
475
  }
476
476
  };
477
- ue(u);
477
+ fe(u);
478
478
  const g = (y) => {
479
479
  o("update:modelValue", y);
480
480
  const f = i(y);
@@ -494,7 +494,7 @@ const an = /* @__PURE__ */ Q(nn, [["render", on], ["__file", "InputNumber.vue"]]
494
494
  });
495
495
  function sn(t, n, a, e, o, l) {
496
496
  const s = x("AOption"), c = x("ASelect");
497
- return d(), F(c, {
497
+ return d(), B(c, {
498
498
  "allow-clear": "",
499
499
  modelValue: e.model,
500
500
  "onUpdate:modelValue": n[0] || (n[0] = (i) => e.model = i),
@@ -505,7 +505,7 @@ function sn(t, n, a, e, o, l) {
505
505
  onChange: e.changeHandler
506
506
  }, {
507
507
  default: S(() => [
508
- (d(!0), _($, null, j(e._options, (i) => (d(), F(s, {
508
+ (d(!0), _($, null, j(e._options, (i) => (d(), B(s, {
509
509
  key: i.value,
510
510
  value: i.value,
511
511
  label: i.label
@@ -514,7 +514,7 @@ function sn(t, n, a, e, o, l) {
514
514
  _: 1
515
515
  }, 8, ["modelValue", "loading", "disabled"]);
516
516
  }
517
- const qe = /* @__PURE__ */ Q(rn, [["render", sn], ["__file", "SelectList.vue"]]), ln = /* @__PURE__ */ z({
517
+ const qe = /* @__PURE__ */ Y(rn, [["render", sn], ["__file", "SelectList.vue"]]), ln = /* @__PURE__ */ z({
518
518
  __name: "Cascader",
519
519
  props: {
520
520
  modelValue: {},
@@ -525,7 +525,7 @@ const qe = /* @__PURE__ */ Q(rn, [["render", sn], ["__file", "SelectList.vue"]])
525
525
  const e = t, o = a, l = m(e.config.options ?? []), s = (r) => {
526
526
  o("update:modelValue", r), o("change", r);
527
527
  };
528
- ue(async () => {
528
+ fe(async () => {
529
529
  if (e.config) {
530
530
  const r = e.config.dataSourceProvider;
531
531
  if (r) {
@@ -546,7 +546,7 @@ const qe = /* @__PURE__ */ Q(rn, [["render", sn], ["__file", "SelectList.vue"]])
546
546
  });
547
547
  function cn(t, n, a, e, o, l) {
548
548
  const s = x("ACascader"), c = x("ASpace");
549
- return d(), F(c, {
549
+ return d(), B(c, {
550
550
  direction: "vertical",
551
551
  size: "large"
552
552
  }, {
@@ -563,7 +563,7 @@ function cn(t, n, a, e, o, l) {
563
563
  _: 1
564
564
  });
565
565
  }
566
- const dn = /* @__PURE__ */ Q(ln, [["render", cn], ["__file", "Cascader.vue"]]), un = /* @__PURE__ */ z({
566
+ const dn = /* @__PURE__ */ Y(ln, [["render", cn], ["__file", "Cascader.vue"]]), un = /* @__PURE__ */ z({
567
567
  __name: "FileUpload",
568
568
  props: {
569
569
  className: {},
@@ -577,13 +577,13 @@ const dn = /* @__PURE__ */ Q(ln, [["render", cn], ["__file", "Cascader.vue"]]),
577
577
  emits: ["update:modelValue", "change", "error", "input"],
578
578
  setup(t, { expose: n, emit: a }) {
579
579
  const e = t, o = a, l = m({});
580
- ue(async () => {
580
+ fe(async () => {
581
581
  const V = await et();
582
582
  l.value = {
583
583
  Authorization: `Bearer ${V}`
584
584
  };
585
585
  });
586
- const s = (V) => _e(e.validations, V), c = je(), i = c.apiBase, r = m(null), u = m("");
586
+ const s = (V) => ve(e.validations, V), c = je(), i = c.apiBase, r = m(null), u = m("");
587
587
  function g(V, w, k) {
588
588
  return V.replace(/{WorkflowId}/g, w).replace(/{ClassName}/g, k);
589
589
  }
@@ -611,7 +611,7 @@ const dn = /* @__PURE__ */ Q(ln, [["render", cn], ["__file", "Cascader.vue"]]),
611
611
  });
612
612
  });
613
613
  }
614
- const p = m(null), C = m(null), X = (V) => {
614
+ const p = m(null), C = m(null), J = (V) => {
615
615
  p.value && (p.value(V), p.value = null, C.value = null);
616
616
  }, ee = (V) => {
617
617
  C.value && (C.value(V), p.value = null, C.value = null);
@@ -631,13 +631,13 @@ const dn = /* @__PURE__ */ Q(ln, [["render", cn], ["__file", "Cascader.vue"]]),
631
631
  return o("error", k.res ? "" : k.errorMessages), k.res;
632
632
  }
633
633
  });
634
- const re = { props: e, emits: o, headers: l, validate: s, config: c, ApiBase: i, uploadRef: r, id: u, replaceIdAndClassName: g, action: v, submit: y, onBeforeRemove: f, uploadPromiseResolve: p, uploadPromiseReject: C, handleUploadSuccess: X, handleUploadError: ee, readyFiles: M, onChange: Z };
635
- return Object.defineProperty(re, "__isScriptSetup", { enumerable: !1, value: !0 }), re;
634
+ const se = { props: e, emits: o, headers: l, validate: s, config: c, ApiBase: i, uploadRef: r, id: u, replaceIdAndClassName: g, action: v, submit: y, onBeforeRemove: f, uploadPromiseResolve: p, uploadPromiseReject: C, handleUploadSuccess: J, handleUploadError: ee, readyFiles: M, onChange: Z };
635
+ return Object.defineProperty(se, "__isScriptSetup", { enumerable: !1, value: !0 }), se;
636
636
  }
637
637
  });
638
638
  function fn(t, n, a, e, o, l) {
639
639
  const s = x("a-button"), c = x("a-upload");
640
- return d(), F(c, {
640
+ return d(), B(c, {
641
641
  ref: "uploadRef",
642
642
  "default-file-list": e.props.config.files,
643
643
  action: e.action,
@@ -654,7 +654,7 @@ function fn(t, n, a, e, o, l) {
654
654
  "upload-button": S(() => [
655
655
  N(s, { type: "primary" }, {
656
656
  default: S(() => n[1] || (n[1] = [
657
- oe("Select File", -1)
657
+ ae("Select File", -1)
658
658
  ])),
659
659
  _: 1,
660
660
  __: [1]
@@ -663,7 +663,7 @@ function fn(t, n, a, e, o, l) {
663
663
  _: 1
664
664
  }, 8, ["default-file-list", "action", "limit", "headers"]);
665
665
  }
666
- const pn = /* @__PURE__ */ Q(un, [["render", fn], ["__file", "FileUpload.vue"]]), mn = /* @__PURE__ */ z({
666
+ const pn = /* @__PURE__ */ Y(un, [["render", fn], ["__file", "FileUpload.vue"]]), mn = /* @__PURE__ */ z({
667
667
  __name: "TextArea",
668
668
  props: {
669
669
  fieldKey: {},
@@ -675,7 +675,7 @@ const pn = /* @__PURE__ */ Q(un, [["render", fn], ["__file", "FileUpload.vue"]])
675
675
  },
676
676
  emits: ["update:modelValue", "change", "error", "input"],
677
677
  setup(t, { expose: n, emit: a }) {
678
- const e = t, o = a, l = (r) => _e(e.validations, r), s = (r) => {
678
+ const e = t, o = a, l = (r) => ve(e.validations, r), s = (r) => {
679
679
  o("update:modelValue", r), o("input", r);
680
680
  }, c = (r) => {
681
681
  o("update:modelValue", r);
@@ -696,7 +696,7 @@ const pn = /* @__PURE__ */ Q(un, [["render", fn], ["__file", "FileUpload.vue"]])
696
696
  });
697
697
  function gn(t, n, a, e, o, l) {
698
698
  const s = x("ATextarea");
699
- return d(), F(s, {
699
+ return d(), B(s, {
700
700
  "model-value": e.props.modelValue,
701
701
  placeholder: "Please enter something",
702
702
  "allow-clear": "",
@@ -705,9 +705,9 @@ function gn(t, n, a, e, o, l) {
705
705
  onChange: e.changeHandler
706
706
  }, null, 8, ["model-value", "disabled"]);
707
707
  }
708
- const _n = /* @__PURE__ */ Q(mn, [["render", gn], ["__file", "TextArea.vue"]]), vn = /* @__PURE__ */ z({
708
+ const _n = /* @__PURE__ */ Y(mn, [["render", gn], ["__file", "TextArea.vue"]]), vn = /* @__PURE__ */ z({
709
709
  __name: "CheckBox",
710
- props: /* @__PURE__ */ le({
710
+ props: /* @__PURE__ */ ie({
711
711
  fieldKey: {},
712
712
  modelValue: {},
713
713
  config: {},
@@ -718,9 +718,9 @@ const _n = /* @__PURE__ */ Q(mn, [["render", gn], ["__file", "TextArea.vue"]]),
718
718
  modelValue: {},
719
719
  modelModifiers: {}
720
720
  }),
721
- emits: /* @__PURE__ */ le(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
721
+ emits: /* @__PURE__ */ ie(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
722
722
  setup(t, { expose: n, emit: a }) {
723
- const e = t, o = a, l = we(t, "modelValue"), s = (r) => _e(e.validations, r), c = (r) => {
723
+ const e = t, o = a, l = we(t, "modelValue"), s = (r) => ve(e.validations, r), c = (r) => {
724
724
  const u = s(r);
725
725
  o("error", u.res ? "" : u.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((g) => {
726
726
  g.event === "change" && o(g.event, g.handlerName, r);
@@ -738,7 +738,7 @@ const _n = /* @__PURE__ */ Q(mn, [["render", gn], ["__file", "TextArea.vue"]]),
738
738
  });
739
739
  function bn(t, n, a, e, o, l) {
740
740
  const s = x("ACheckbox");
741
- return d(), F(s, {
741
+ return d(), B(s, {
742
742
  modelValue: e.model,
743
743
  "onUpdate:modelValue": n[0] || (n[0] = (c) => e.model = c),
744
744
  clearable: "",
@@ -746,15 +746,15 @@ function bn(t, n, a, e, o, l) {
746
746
  onChange: e.changeHandler
747
747
  }, {
748
748
  default: S(() => n[1] || (n[1] = [
749
- oe("Yes", -1)
749
+ ae("Yes", -1)
750
750
  ])),
751
751
  _: 1,
752
752
  __: [1]
753
753
  }, 8, ["modelValue", "disabled"]);
754
754
  }
755
- const hn = /* @__PURE__ */ Q(vn, [["render", bn], ["__file", "CheckBox.vue"]]), yn = Symbol("ArcoConfigProvider"), wn = "arco", kn = "$arco", nt = (t) => {
755
+ const hn = /* @__PURE__ */ Y(vn, [["render", bn], ["__file", "CheckBox.vue"]]), yn = Symbol("ArcoConfigProvider"), wn = "arco", kn = "$arco", nt = (t) => {
756
756
  var n, a, e;
757
- const o = me(), l = ge(yn, void 0);
757
+ const o = ge(), l = _e(yn, void 0);
758
758
  return `${(e = (a = l?.prefixCls) != null ? a : (n = o?.appContext.config.globalProperties[kn]) == null ? void 0 : n.classPrefix) != null ? e : wn}-${t}`;
759
759
  }, Cn = Object.prototype.toString;
760
760
  function ot(t) {
@@ -822,12 +822,12 @@ function Vn(t, n, a, e, o, l) {
822
822
  h("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)
823
823
  ]), 14, xn);
824
824
  }
825
- var He = /* @__PURE__ */ at(Sn, [["render", Vn]]);
826
- const An = Object.assign(He, {
825
+ var Fe = /* @__PURE__ */ at(Sn, [["render", Vn]]);
826
+ const An = Object.assign(Fe, {
827
827
  install: (t, n) => {
828
828
  var a;
829
829
  const e = (a = n?.iconPrefix) != null ? a : "";
830
- t.component(e + He.name, He);
830
+ t.component(e + Fe.name, Fe);
831
831
  }
832
832
  }), Tn = z({
833
833
  name: "IconDownload",
@@ -905,27 +905,27 @@ const Nn = Object.assign(Le, {
905
905
  } };
906
906
  return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
907
907
  }
908
- }), Dn = { class: "list-unstyled" }, Bn = { class: "list-style-square" };
909
- function Fn(t, n, a, e, o, l) {
908
+ }), Dn = { class: "list-unstyled" }, Hn = { class: "list-style-square" };
909
+ function Bn(t, n, a, e, o, l) {
910
910
  const s = x("a-tooltip");
911
- return e.props.isVisible ? (d(), F(s, {
911
+ return e.props.isVisible ? (d(), B(s, {
912
912
  key: 0,
913
913
  "background-color": "#7A00E6"
914
914
  }, {
915
915
  content: S(() => [
916
- e.stringOutput.length ? (d(!0), _($, { key: 0 }, j(e.stringOutput, (c) => (d(), _("p", { key: c }, Y(c), 1))), 128)) : (d(!0), _($, { key: 1 }, j(e.treeOutput, (c) => (d(), _("ul", {
916
+ e.stringOutput.length ? (d(!0), _($, { key: 0 }, j(e.stringOutput, (c) => (d(), _("p", { key: c }, q(c), 1))), 128)) : (d(!0), _($, { key: 1 }, j(e.treeOutput, (c) => (d(), _("ul", {
917
917
  key: c.title,
918
918
  class: "list-unstyled"
919
919
  }, [
920
920
  h("li", null, [
921
- h("b", null, Y(c.title), 1),
921
+ h("b", null, q(c.title), 1),
922
922
  h("ul", Dn, [
923
923
  (d(!0), _($, null, j(c.items, (i) => (d(), _("li", {
924
924
  key: i.title
925
925
  }, [
926
- h("u", null, Y(i.title), 1),
927
- h("ul", Bn, [
928
- (d(!0), _($, null, j(i.items, (r) => (d(), _("li", null, Y(r), 1))), 256))
926
+ h("u", null, q(i.title), 1),
927
+ h("ul", Hn, [
928
+ (d(!0), _($, null, j(i.items, (r) => (d(), _("li", null, q(r), 1))), 256))
929
929
  ])
930
930
  ]))), 128))
931
931
  ])
@@ -936,11 +936,11 @@ function Fn(t, n, a, e, o, l) {
936
936
  N(e.IconQuestionCircle, { class: "icon" })
937
937
  ]),
938
938
  _: 1
939
- })) : ae("", !0);
939
+ })) : re("", !0);
940
940
  }
941
- const rt = /* @__PURE__ */ Q(Un, [["render", Fn], ["__scopeId", "data-v-1d3893b1"], ["__file", "ToolTip.vue"]]), Hn = /* @__PURE__ */ z({
941
+ const rt = /* @__PURE__ */ Y(Un, [["render", Bn], ["__scopeId", "data-v-1d3893b1"], ["__file", "ToolTip.vue"]]), Fn = /* @__PURE__ */ z({
942
942
  __name: "index",
943
- props: /* @__PURE__ */ le({
943
+ props: /* @__PURE__ */ ie({
944
944
  config: {},
945
945
  className: {},
946
946
  fieldKey: {},
@@ -952,7 +952,7 @@ const rt = /* @__PURE__ */ Q(Un, [["render", Fn], ["__scopeId", "data-v-1d3893b1
952
952
  modelValue: {},
953
953
  modelModifiers: {}
954
954
  }),
955
- emits: /* @__PURE__ */ le(["update:modelValue", "change", "error"], ["update:modelValue"]),
955
+ emits: /* @__PURE__ */ ie(["update:modelValue", "change", "error"], ["update:modelValue"]),
956
956
  setup(t, { expose: n, emit: a }) {
957
957
  const e = t, o = a, l = we(t, "modelValue"), s = Oe("widgetRef"), c = E(() => {
958
958
  switch (e.config?.widget?.widget) {
@@ -1013,15 +1013,15 @@ const rt = /* @__PURE__ */ Q(Un, [["render", Fn], ["__scopeId", "data-v-1d3893b1
1013
1013
  function $n(t, n, a, e, o, l) {
1014
1014
  return d(), _("div", null, [
1015
1015
  h("div", Ln, [
1016
- oe(Y(e.formatTitle(e.props?.config?.widget?.title)) + " ", 1),
1017
- e.props.config.validations.length ? (d(), _("span", Rn, "*")) : ae("", !0),
1016
+ ae(q(e.formatTitle(e.props?.config?.widget?.title)) + " ", 1),
1017
+ e.props.config.validations.length ? (d(), _("span", Rn, "*")) : re("", !0),
1018
1018
  N(e.ToolTip, {
1019
1019
  "is-visible": e.props.config.widget?.isVisible ?? !1,
1020
1020
  "output-text": e.props.config.widget?.outputText ?? []
1021
1021
  }, null, 8, ["is-visible", "output-text"])
1022
1022
  ]),
1023
1023
  h("div", null, [
1024
- (d(), F($e(e.curComp), {
1024
+ (d(), B($e(e.curComp), {
1025
1025
  ref: "widgetRef",
1026
1026
  modelValue: e.model,
1027
1027
  "onUpdate:modelValue": n[0] || (n[0] = (s) => e.model = s),
@@ -1033,11 +1033,11 @@ function $n(t, n, a, e, o, l) {
1033
1033
  onError: e.errHandler,
1034
1034
  onChange: e.changeHandler
1035
1035
  }, null, 40, ["modelValue", "field-key", "config", "validations", "triggers", "class-name"])),
1036
- e.errMsg.length > 0 ? (d(), _("div", On, Y(e.errMsg), 1)) : ae("", !0)
1036
+ e.errMsg.length > 0 ? (d(), _("div", On, q(e.errMsg), 1)) : re("", !0)
1037
1037
  ])
1038
1038
  ]);
1039
1039
  }
1040
- const Ve = /* @__PURE__ */ Q(Hn, [["render", $n], ["__scopeId", "data-v-af9c00b7"], ["__file", "index.vue"]]), jn = /* @__PURE__ */ z({
1040
+ const Ve = /* @__PURE__ */ Y(Fn, [["render", $n], ["__scopeId", "data-v-af9c00b7"], ["__file", "index.vue"]]), jn = /* @__PURE__ */ z({
1041
1041
  __name: "SubmitButton",
1042
1042
  props: {
1043
1043
  url: {},
@@ -1057,18 +1057,18 @@ const Ve = /* @__PURE__ */ Q(Hn, [["render", $n], ["__scopeId", "data-v-af9c00b7
1057
1057
  });
1058
1058
  function Mn(t, n, a, e, o, l) {
1059
1059
  const s = x("AButton");
1060
- return d(), F(s, {
1060
+ return d(), B(s, {
1061
1061
  loading: a.loading,
1062
1062
  type: "primary",
1063
1063
  onClick: e.clickHandler
1064
1064
  }, {
1065
1065
  default: S(() => [
1066
- de(t.$slots, "default")
1066
+ ue(t.$slots, "default")
1067
1067
  ]),
1068
1068
  _: 3
1069
1069
  }, 8, ["loading"]);
1070
1070
  }
1071
- const Ye = /* @__PURE__ */ Q(jn, [["render", Mn], ["__file", "SubmitButton.vue"]]), En = /* @__PURE__ */ z({
1071
+ const Ye = /* @__PURE__ */ Y(jn, [["render", Mn], ["__file", "SubmitButton.vue"]]), En = /* @__PURE__ */ z({
1072
1072
  __name: "DetailLink",
1073
1073
  props: {
1074
1074
  url: {},
@@ -1088,14 +1088,14 @@ const Ye = /* @__PURE__ */ Q(jn, [["render", Mn], ["__file", "SubmitButton.vue"]
1088
1088
  });
1089
1089
  function zn(t, n, a, e, o, l) {
1090
1090
  const s = x("ALink");
1091
- return d(), F(s, { onClick: e.clickHandler }, {
1091
+ return d(), B(s, { onClick: e.clickHandler }, {
1092
1092
  default: S(() => [
1093
- de(t.$slots, "default")
1093
+ ue(t.$slots, "default")
1094
1094
  ]),
1095
1095
  _: 3
1096
1096
  });
1097
1097
  }
1098
- const Kn = /* @__PURE__ */ Q(En, [["render", zn], ["__file", "DetailLink.vue"]]), Wn = /* @__PURE__ */ z({
1098
+ const Kn = /* @__PURE__ */ Y(En, [["render", zn], ["__file", "DetailLink.vue"]]), Wn = /* @__PURE__ */ z({
1099
1099
  __name: "index",
1100
1100
  props: {
1101
1101
  config: {},
@@ -1117,39 +1117,39 @@ const Kn = /* @__PURE__ */ Q(En, [["render", zn], ["__file", "DetailLink.vue"]])
1117
1117
  default:
1118
1118
  return Ye;
1119
1119
  }
1120
- }), c = E(() => e.config.widget === J.Submit ? e.config.requestUrl ?? "" : e.config.widget === J.Link ? e.config.redirectUrl ?? "" : ""), i = E(() => e.config.redirectType ?? "Details"), r = { props: e, emits: o, clickHandler: l, curComp: s, curUrl: c, redirectType: i };
1120
+ }), c = E(() => e.config.widget === Q.Submit ? e.config.requestUrl ?? "" : e.config.widget === Q.Link ? e.config.redirectUrl ?? "" : ""), i = E(() => e.config.redirectType ?? "Details"), r = { props: e, emits: o, clickHandler: l, curComp: s, curUrl: c, redirectType: i };
1121
1121
  return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
1122
1122
  }
1123
1123
  });
1124
1124
  function Gn(t, n, a, e, o, l) {
1125
- return d(), F($e(e.curComp), {
1125
+ return d(), B($e(e.curComp), {
1126
1126
  url: e.curUrl,
1127
1127
  "redirect-type": e.redirectType,
1128
1128
  loading: a.loading,
1129
1129
  onClick: e.clickHandler
1130
1130
  }, {
1131
1131
  default: S(() => [
1132
- oe(Y(e.props.config.title), 1)
1132
+ ae(q(e.props.config.title), 1)
1133
1133
  ]),
1134
1134
  _: 1
1135
1135
  }, 8, ["url", "redirect-type", "loading"]);
1136
1136
  }
1137
- const Ae = /* @__PURE__ */ Q(Wn, [["render", Gn], ["__file", "index.vue"]]), st = Symbol("library-router");
1137
+ const Ae = /* @__PURE__ */ Y(Wn, [["render", Gn], ["__file", "index.vue"]]), st = Symbol("library-router");
1138
1138
  function Te() {
1139
- const t = ge(st, null);
1139
+ const t = _e(st, null);
1140
1140
  return t || vt();
1141
1141
  }
1142
1142
  const it = Symbol("library-triggers");
1143
1143
  function Ee() {
1144
- const t = ge(it, null);
1144
+ const t = _e(it, null);
1145
1145
  return t || {};
1146
1146
  }
1147
1147
  const qn = Symbol("library-pinia"), lt = Symbol("library-bpmStore"), ct = Symbol("library-svrStore");
1148
1148
  function Ie() {
1149
- return ge(lt, null);
1149
+ return _e(lt, null);
1150
1150
  }
1151
1151
  function Pe() {
1152
- return ge(ct, null);
1152
+ return _e(ct, null);
1153
1153
  }
1154
1154
  const Yn = /* @__PURE__ */ z({
1155
1155
  __name: "TopBar",
@@ -1168,13 +1168,13 @@ function no(t, n, a, e, o, l) {
1168
1168
  const s = x("a-avatar"), c = x("a-popover");
1169
1169
  return d(), _("div", Qn, [
1170
1170
  h("div", Jn, [
1171
- h("div", Xn, Y(a.title), 1),
1172
- h("div", Zn, Y(a.subTitle), 1)
1171
+ h("div", Xn, q(a.title), 1),
1172
+ h("div", Zn, q(a.subTitle), 1)
1173
1173
  ]),
1174
1174
  h("div", eo, [
1175
1175
  N(c, { trigger: "click" }, {
1176
1176
  content: S(() => [
1177
- h("div", to, Y(a.email), 1)
1177
+ h("div", to, q(a.email), 1)
1178
1178
  ]),
1179
1179
  default: S(() => [
1180
1180
  N(s, {
@@ -1183,7 +1183,7 @@ function no(t, n, a, e, o, l) {
1183
1183
  style: { cursor: "pointer", background: "#165DFF", color: "#fff" }
1184
1184
  }, {
1185
1185
  default: S(() => [
1186
- oe(Y(a.email.charAt(0).toUpperCase()), 1)
1186
+ ae(q(a.email.charAt(0).toUpperCase()), 1)
1187
1187
  ]),
1188
1188
  _: 1
1189
1189
  })
@@ -1193,7 +1193,7 @@ function no(t, n, a, e, o, l) {
1193
1193
  ])
1194
1194
  ]);
1195
1195
  }
1196
- const Ne = /* @__PURE__ */ Q(Yn, [["render", no], ["__scopeId", "data-v-c0457235"], ["__file", "TopBar.vue"]]);
1196
+ const Ne = /* @__PURE__ */ Y(Yn, [["render", no], ["__scopeId", "data-v-c0457235"], ["__file", "TopBar.vue"]]);
1197
1197
  function ze(t) {
1198
1198
  const n = je(), a = [];
1199
1199
  if (n.fieldsGroup) {
@@ -1226,7 +1226,7 @@ class Ue {
1226
1226
  return this.opt = n, this;
1227
1227
  }
1228
1228
  build() {
1229
- return this.pageActionType ? this.opt.workflowId ? new xe(this.pageActionType, this.className, this.store, this.opt) : new xe(this.pageActionType, this.className, this.store) : this.opt.workflowId ? new xe(pe.ReCreate, this.className, this.store, this.opt) : new xe(pe.Create, this.className, this.store);
1229
+ return this.pageActionType ? this.opt.workflowId ? new xe(this.pageActionType, this.className, this.store, this.opt) : new xe(this.pageActionType, this.className, this.store) : this.opt.workflowId ? new xe(me.ReCreate, this.className, this.store, this.opt) : new xe(me.Create, this.className, this.store);
1230
1230
  }
1231
1231
  }
1232
1232
  class xe {
@@ -1285,7 +1285,7 @@ const oo = /* @__PURE__ */ z({
1285
1285
  },
1286
1286
  setup(t, { expose: n }) {
1287
1287
  n();
1288
- const a = Ie(), e = Pe(), o = Te(), l = Ee(), s = Oe("dataWidgets"), c = me(), i = t, r = m({
1288
+ const a = Ie(), e = Pe(), o = Te(), l = Ee(), s = Oe("dataWidgets"), c = ge(), i = t, r = m({
1289
1289
  pageType: "",
1290
1290
  fields: {},
1291
1291
  globalValidations: [],
@@ -1307,7 +1307,7 @@ const oo = /* @__PURE__ */ z({
1307
1307
  ) : [];
1308
1308
  }
1309
1309
  const f = E(() => r.value?.actions ? [...r.value.actions].reverse() : []), p = m({}), C = m(!1);
1310
- ue(async () => {
1310
+ fe(async () => {
1311
1311
  C.value = !0;
1312
1312
  const k = new Ue().setWorkflowId(i.workflowId).setClassName(i.className).setStore({ svrStore: e, bpmStore: a }).build();
1313
1313
  r.value = await k.getPageData(), u.value = v(r.value.fields), g.value = y(r.value.fields);
@@ -1320,15 +1320,15 @@ const oo = /* @__PURE__ */ z({
1320
1320
  }
1321
1321
  C.value = !1;
1322
1322
  });
1323
- function X() {
1323
+ function J() {
1324
1324
  return e()?.userInfo?.email_address ?? "";
1325
1325
  }
1326
1326
  async function ee(k, T, A, U, R) {
1327
1327
  switch (T) {
1328
- case J.Submit:
1328
+ case Q.Submit:
1329
1329
  let O = !0;
1330
- if (s.value?.forEach((G) => {
1331
- G?.validate && (G.validate() || (O = !1));
1330
+ if (s.value?.forEach((X) => {
1331
+ X?.validate && (X.validate() || (O = !1));
1332
1332
  }), !O) {
1333
1333
  c?.appContext.config.globalProperties.$message.error(
1334
1334
  "form validation failed, please check the input fields"
@@ -1338,27 +1338,32 @@ const oo = /* @__PURE__ */ z({
1338
1338
  C.value = !0;
1339
1339
  try {
1340
1340
  l[R]?.({ message: `${R} action triggered` });
1341
- const G = await Ut(
1341
+ const X = {
1342
+ ...p.value,
1343
+ ...g.value
1344
+ };
1345
+ l.createHardCode?.(X);
1346
+ const te = await Ut(
1342
1347
  i.className,
1343
- { ...p.value, ...g.value },
1348
+ X,
1344
1349
  A
1345
1350
  );
1346
1351
  l[`${R}Success` || ""]?.({
1347
1352
  message: "Workflow created successfully",
1348
1353
  workflowId: i.workflowId,
1349
- res: G
1354
+ res: te
1350
1355
  });
1351
- const se = s.value?.map((ie) => ie?.submit ? ie.submit(G.toString()) : Promise.resolve()) || [];
1352
- await Promise.all(se), C.value = !1, c?.appContext.config.globalProperties.$notification.success(
1353
- `Your grading request has been submitted, ID is ${G.toString()}.`
1354
- ), o.push({ name: "Details", params: { workflowId: G.toString() } });
1356
+ const le = s.value?.map((de) => de?.submit ? de.submit(te.toString()) : Promise.resolve()) || [];
1357
+ await Promise.all(le), C.value = !1, c?.appContext.config.globalProperties.$notification.success(
1358
+ `Your grading request has been submitted, ID is ${te.toString()}.`
1359
+ ), o.push({ name: "Details", params: { workflowId: te.toString() } });
1355
1360
  } catch {
1356
1361
  c?.appContext.config.globalProperties.$notification.error(
1357
1362
  "Failed to submit your grading request"
1358
1363
  ), C.value = !1;
1359
1364
  }
1360
1365
  break;
1361
- case J.Link:
1366
+ case Q.Link:
1362
1367
  try {
1363
1368
  await l[k.eventName || ""]?.(p.value, Z), o.push({
1364
1369
  name: U,
@@ -1366,8 +1371,8 @@ const oo = /* @__PURE__ */ z({
1366
1371
  }), await l[`${k.eventName || ""}Success`]?.({
1367
1372
  message: `Router to ${U} pushed`
1368
1373
  });
1369
- } catch (G) {
1370
- console.error("Error in link action trigger:", G);
1374
+ } catch (X) {
1375
+ console.error("Error in link action trigger:", X);
1371
1376
  }
1372
1377
  break;
1373
1378
  default:
@@ -1382,10 +1387,10 @@ const oo = /* @__PURE__ */ z({
1382
1387
  "jobAttachmentPrevious",
1383
1388
  "positionId"
1384
1389
  ], Z = m(M);
1385
- function re(k, T) {
1390
+ function se(k, T) {
1386
1391
  l[k]?.({ fieldValue: T, hiddenFields: Z, formData: p }), r.value && (u.value = v(r.value.fields));
1387
1392
  }
1388
- const V = E(() => ze(u.value)), w = { bpmStore: a, svrStore: e, router: o, triggers: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: u, _dependent: g, genField: v, genDependentField: y, reversedActions: f, _data: p, loading: C, getApproverEmail: X, clickHandler: ee, newHiddenFields: M, hiddenFields: Z, changeHandler: re, groupedFields: V, DataWidgets: Ve, ActionButton: Ae, TopBar: Ne };
1393
+ const V = E(() => ze(u.value)), w = { bpmStore: a, svrStore: e, router: o, triggers: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: u, _dependent: g, genField: v, genDependentField: y, reversedActions: f, _data: p, loading: C, getApproverEmail: J, clickHandler: ee, newHiddenFields: M, hiddenFields: Z, changeHandler: se, groupedFields: V, DataWidgets: Ve, ActionButton: Ae, TopBar: Ne };
1389
1394
  return Object.defineProperty(w, "__isScriptSetup", { enumerable: !1, value: !0 }), w;
1390
1395
  }
1391
1396
  }), ao = { class: "page-container" }, ro = { class: "page-body" }, so = { class: "form-card" }, io = { class: "form-fields-vertical" }, lo = { class: "form-fields" }, co = {
@@ -1408,14 +1413,14 @@ function mo(t, n, a, e, o, l) {
1408
1413
  default: S(() => [
1409
1414
  h("div", so, [
1410
1415
  h("div", io, [
1411
- (d(!0), _($, null, j(e.groupedFields, (i) => (d(), F(s, {
1416
+ (d(!0), _($, null, j(e.groupedFields, (i) => (d(), B(s, {
1412
1417
  key: i.name,
1413
1418
  title: i.name,
1414
1419
  style: { "margin-bottom": "24px" }
1415
1420
  }, {
1416
1421
  default: S(() => [
1417
1422
  h("div", lo, [
1418
- (d(!0), _($, null, j(i.fields, (r) => (d(), F(e.DataWidgets, {
1423
+ (d(!0), _($, null, j(i.fields, (r) => (d(), B(e.DataWidgets, {
1419
1424
  key: r.fieldKey,
1420
1425
  ref_for: !0,
1421
1426
  ref: "dataWidgets",
@@ -1433,8 +1438,8 @@ function mo(t, n, a, e, o, l) {
1433
1438
  }, 1032, ["title"]))), 128))
1434
1439
  ]),
1435
1440
  t.$slots.content ? (d(), _("div", co, [
1436
- de(t.$slots, "content", {}, void 0, !0)
1437
- ])) : ae("", !0)
1441
+ ue(t.$slots, "content", {}, void 0, !0)
1442
+ ])) : re("", !0)
1438
1443
  ])
1439
1444
  ]),
1440
1445
  _: 3
@@ -1442,9 +1447,9 @@ function mo(t, n, a, e, o, l) {
1442
1447
  ]),
1443
1448
  h("div", uo, [
1444
1449
  h("div", fo, [
1445
- de(t.$slots, "action", {}, void 0, !0),
1450
+ ue(t.$slots, "action", {}, void 0, !0),
1446
1451
  h("div", po, [
1447
- (d(!0), _($, null, j(e.reversedActions, (i) => (d(), F(e.ActionButton, {
1452
+ (d(!0), _($, null, j(e.reversedActions, (i) => (d(), B(e.ActionButton, {
1448
1453
  key: i.title,
1449
1454
  loading: e.loading,
1450
1455
  config: i,
@@ -1456,7 +1461,7 @@ function mo(t, n, a, e, o, l) {
1456
1461
  ])
1457
1462
  ]);
1458
1463
  }
1459
- const go = /* @__PURE__ */ Q(oo, [["render", mo], ["__scopeId", "data-v-190cbea6"], ["__file", "CreateView.vue"]]), _o = /* @__PURE__ */ z({
1464
+ const go = /* @__PURE__ */ Y(oo, [["render", mo], ["__scopeId", "data-v-8b157ce4"], ["__file", "CreateView.vue"]]), _o = /* @__PURE__ */ z({
1460
1465
  __name: "UpdateView",
1461
1466
  props: {
1462
1467
  className: {},
@@ -1464,7 +1469,7 @@ const go = /* @__PURE__ */ Q(oo, [["render", mo], ["__scopeId", "data-v-190cbea6
1464
1469
  },
1465
1470
  setup(t, { expose: n }) {
1466
1471
  n();
1467
- const a = Te(), e = Ee(), o = Pe(), l = Ie(), s = Oe("dataWidgets"), c = me(), i = t, r = m({
1472
+ const a = Te(), e = Ee(), o = Pe(), l = Ie(), s = Oe("dataWidgets"), c = ge(), i = t, r = m({
1468
1473
  pageType: "",
1469
1474
  fields: {},
1470
1475
  globalValidations: [],
@@ -1483,9 +1488,9 @@ const go = /* @__PURE__ */ Q(oo, [["render", mo], ["__scopeId", "data-v-190cbea6
1483
1488
  return w ? Object.entries(w).filter(([T, A]) => A.dependent).reduce((T, [A, U]) => (T[A] = U.dependent, T), {}) : [];
1484
1489
  }
1485
1490
  const f = E(() => r.value?.actions ? [...r.value.actions].reverse() : []), p = m({}), C = m(!1);
1486
- ue(async () => {
1491
+ fe(async () => {
1487
1492
  C.value = !0;
1488
- const w = new Ue().setPageActionType(pe.Update).setClassName(i.className).setStore({ svrStore: o, bpmStore: l }).setWorkflowId(i.workflowId).build();
1493
+ const w = new Ue().setPageActionType(me.Update).setClassName(i.className).setStore({ svrStore: o, bpmStore: l }).setWorkflowId(i.workflowId).build();
1489
1494
  r.value = await w.getPageData();
1490
1495
  const k = await w.getBtnList(), T = await w.getFiles();
1491
1496
  r.value.actions = r.value.actions?.filter((U) => {
@@ -1503,12 +1508,12 @@ const go = /* @__PURE__ */ Q(oo, [["render", mo], ["__scopeId", "data-v-190cbea6
1503
1508
  }
1504
1509
  C.value = !1;
1505
1510
  });
1506
- function X() {
1511
+ function J() {
1507
1512
  return o()?.userInfo?.email_address ?? "";
1508
1513
  }
1509
1514
  async function ee(w, k, T, A, U) {
1510
1515
  switch (k) {
1511
- case J.Submit:
1516
+ case Q.Submit:
1512
1517
  let R = !0;
1513
1518
  if (s.value?.forEach((O) => {
1514
1519
  O?.validate && (O.validate() || (R = !1));
@@ -1518,13 +1523,13 @@ const go = /* @__PURE__ */ Q(oo, [["render", mo], ["__scopeId", "data-v-190cbea6
1518
1523
  }
1519
1524
  C.value = !0;
1520
1525
  try {
1521
- const O = await Dt(i.className, i.workflowId, { ...p.value, ...g.value }, T), G = s.value?.map((se) => se?.submit ? se.submit(O.toString()) : Promise.resolve()) || [];
1522
- await Promise.all(G), C.value = !1, c?.appContext.config.globalProperties.$notification.success(`Your grading request has been submitted, ID is ${O.toString()}.`);
1526
+ const O = await Dt(i.className, i.workflowId, { ...p.value, ...g.value }, T), X = s.value?.map((te) => te?.submit ? te.submit(O.toString()) : Promise.resolve()) || [];
1527
+ await Promise.all(X), C.value = !1, c?.appContext.config.globalProperties.$notification.success(`Your grading request has been submitted, ID is ${O.toString()}.`);
1523
1528
  } catch {
1524
1529
  c?.appContext.config.globalProperties.$notification.error("Failed to submit your grading request"), C.value = !1;
1525
1530
  }
1526
1531
  break;
1527
- case J.Link:
1532
+ case Q.Link:
1528
1533
  try {
1529
1534
  await e[w.eventName || ""]?.(p.value, M), a.push({ name: A, params: { className: i.className } });
1530
1535
  } catch {
@@ -1538,7 +1543,7 @@ const go = /* @__PURE__ */ Q(oo, [["render", mo], ["__scopeId", "data-v-190cbea6
1538
1543
  function Z(w, k) {
1539
1544
  e[w]?.({ fieldValue: k, hiddenFields: M, formData: p }), r.value && (u.value = v(r.value.fields));
1540
1545
  }
1541
- const re = E(() => ze(u.value)), V = { router: a, triggers: e, svrStore: o, bpmStore: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: u, _dependent: g, genField: v, genDependentField: y, reversedActions: f, _data: p, loading: C, getApproverEmail: X, clickHandler: ee, hiddenFields: M, changeHandler: Z, groupedFields: re, DataWidgets: Ve, ActionButton: Ae, TopBar: Ne };
1546
+ const se = E(() => ze(u.value)), V = { router: a, triggers: e, svrStore: o, bpmStore: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: u, _dependent: g, genField: v, genDependentField: y, reversedActions: f, _data: p, loading: C, getApproverEmail: J, clickHandler: ee, hiddenFields: M, changeHandler: Z, groupedFields: se, DataWidgets: Ve, ActionButton: Ae, TopBar: Ne };
1542
1547
  return Object.defineProperty(V, "__isScriptSetup", { enumerable: !1, value: !0 }), V;
1543
1548
  }
1544
1549
  }), vo = { class: "page-container" }, bo = { class: "page-body" }, ho = { class: "form-card" }, yo = { class: "form-fields-vertical" }, wo = { class: "form-fields" }, ko = {
@@ -1561,14 +1566,14 @@ function Vo(t, n, a, e, o, l) {
1561
1566
  default: S(() => [
1562
1567
  h("div", ho, [
1563
1568
  h("div", yo, [
1564
- (d(!0), _($, null, j(e.groupedFields, (i) => (d(), F(s, {
1569
+ (d(!0), _($, null, j(e.groupedFields, (i) => (d(), B(s, {
1565
1570
  key: i.name,
1566
1571
  title: i.name,
1567
1572
  style: { "margin-bottom": "24px" }
1568
1573
  }, {
1569
1574
  default: S(() => [
1570
1575
  h("div", wo, [
1571
- (d(!0), _($, null, j(i.fields, (r) => (d(), F(e.DataWidgets, {
1576
+ (d(!0), _($, null, j(i.fields, (r) => (d(), B(e.DataWidgets, {
1572
1577
  key: r.fieldKey,
1573
1578
  ref_for: !0,
1574
1579
  ref: "dataWidgets",
@@ -1586,8 +1591,8 @@ function Vo(t, n, a, e, o, l) {
1586
1591
  }, 1032, ["title"]))), 128))
1587
1592
  ]),
1588
1593
  t.$slots.content ? (d(), _("div", ko, [
1589
- de(t.$slots, "content", {}, void 0, !0)
1590
- ])) : ae("", !0)
1594
+ ue(t.$slots, "content", {}, void 0, !0)
1595
+ ])) : re("", !0)
1591
1596
  ])
1592
1597
  ]),
1593
1598
  _: 3
@@ -1595,9 +1600,9 @@ function Vo(t, n, a, e, o, l) {
1595
1600
  ]),
1596
1601
  h("div", Co, [
1597
1602
  h("div", So, [
1598
- de(t.$slots, "action", {}, void 0, !0),
1603
+ ue(t.$slots, "action", {}, void 0, !0),
1599
1604
  h("div", xo, [
1600
- (d(!0), _($, null, j(e.reversedActions, (i) => (d(), F(e.ActionButton, {
1605
+ (d(!0), _($, null, j(e.reversedActions, (i) => (d(), B(e.ActionButton, {
1601
1606
  key: i.title,
1602
1607
  loading: e.loading,
1603
1608
  config: i,
@@ -1609,9 +1614,9 @@ function Vo(t, n, a, e, o, l) {
1609
1614
  ])
1610
1615
  ]);
1611
1616
  }
1612
- const Ao = /* @__PURE__ */ Q(_o, [["render", Vo], ["__scopeId", "data-v-a0ee3911"], ["__file", "UpdateView.vue"]]), dt = Symbol("library-custom-comp");
1617
+ const Ao = /* @__PURE__ */ Y(_o, [["render", Vo], ["__scopeId", "data-v-a0ee3911"], ["__file", "UpdateView.vue"]]), dt = Symbol("library-custom-comp");
1613
1618
  function To() {
1614
- return ge(dt, null);
1619
+ return _e(dt, null);
1615
1620
  }
1616
1621
  const Io = /* @__PURE__ */ z({
1617
1622
  __name: "DetailView",
@@ -1621,7 +1626,7 @@ const Io = /* @__PURE__ */ z({
1621
1626
  },
1622
1627
  setup(t, { expose: n }) {
1623
1628
  n();
1624
- const a = Pe(), e = Ie(), o = Ee(), l = Te(), s = To(), c = me(), i = t;
1629
+ const a = Pe(), e = Ie(), o = Ee(), l = Te(), s = To(), c = ge(), i = t;
1625
1630
  let r;
1626
1631
  const u = m({
1627
1632
  pageType: "",
@@ -1640,8 +1645,8 @@ const Io = /* @__PURE__ */ z({
1640
1645
  }
1641
1646
  const y = E(() => ze(g.value)), f = E(() => u.value?.actions ? [...u.value.actions].reverse() : []), p = m(!0), C = (I, L) => {
1642
1647
  const K = I.findIndex((P) => P.isCurrent);
1643
- return I.map((P, ne) => {
1644
- const B = {
1648
+ return I.map((P, oe) => {
1649
+ const H = {
1645
1650
  id: P.id,
1646
1651
  title: "",
1647
1652
  proxy: "",
@@ -1650,71 +1655,71 @@ const Io = /* @__PURE__ */ z({
1650
1655
  status: 1,
1651
1656
  time: ""
1652
1657
  };
1653
- B.title = P.workflowProcessApprovers[0]?.name;
1658
+ H.title = P.workflowProcessApprovers[0]?.name;
1654
1659
  const be = P.workflowProcessApprovers[P.workflowProcessApprovers.length - 1], ke = P.workflowHistorys[P.workflowHistorys.length - 1], he = ke?.workflowHistoryApprovers[ke?.workflowHistoryApprovers?.length - 1];
1655
- if (be && he && be?.email?.toLowerCase() !== he?.approverEmail?.toLowerCase() && (B.title = `${he.name}`, B.proxy = `Proxy: ${be.name}`), P.sort > 1 ? B.sub = "Approver Role: " + P.nodeName.replace("Submit", "").replace("Approve", "") : B.sub = "Submit Application", P.isCurrent && L !== -1)
1656
- B.desc = "In Approval", B.status = 1;
1660
+ if (be && he && be?.email?.toLowerCase() !== he?.approverEmail?.toLowerCase() && (H.title = `${he.name}`, H.proxy = `Proxy: ${be.name}`), P.sort > 1 ? H.sub = "Approver Role: " + P.nodeName.replace("Submit", "").replace("Approve", "") : H.sub = "Submit Application", P.isCurrent && L !== -1)
1661
+ H.desc = "In Approval", H.status = 1;
1657
1662
  else {
1658
- const te = P.workflowHistorys[P.workflowHistorys.length - 1];
1659
- if (te && te.status === 100)
1660
- B.time = Se(te.takeActionAt, "yyyy-MM-dd hh:mm:ss"), B.status = 2, B.desc = "approve success!";
1661
- else if (te && te.status === 999)
1662
- B.time = Se(te.takeActionAt, "yyyy-MM-dd hh:mm:ss"), B.status = 0, B.desc = "approve reject!";
1663
- else if (te)
1664
- if (B.time = Se(te.takeActionAt, "yyyy-MM-dd hh:mm:ss"), P.sort === 1)
1665
- B.status = 2, B.desc = "";
1663
+ const ne = P.workflowHistorys[P.workflowHistorys.length - 1];
1664
+ if (ne && ne.status === 100)
1665
+ H.time = Se(ne.takeActionAt, "yyyy-MM-dd hh:mm:ss"), H.status = 2, H.desc = "approve success!";
1666
+ else if (ne && ne.status === 999)
1667
+ H.time = Se(ne.takeActionAt, "yyyy-MM-dd hh:mm:ss"), H.status = 0, H.desc = "approve reject!";
1668
+ else if (ne)
1669
+ if (H.time = Se(ne.takeActionAt, "yyyy-MM-dd hh:mm:ss"), P.sort === 1)
1670
+ H.status = 2, H.desc = "";
1666
1671
  else {
1667
- const Ce = te.workflowHistoryApprovers[0];
1668
- B.status = 3, B.desc = Ce?.reason ? `Rejected reason: ${Ce.reason}` : "Rejected";
1672
+ const Ce = ne.workflowHistoryApprovers[0];
1673
+ H.status = 3, H.desc = Ce?.reason ? `Rejected reason: ${Ce.reason}` : "Rejected";
1669
1674
  }
1670
- else ne < K || K === -1 ? (B.status = 0, B.desc = "Skipped") : (B.status = 0, B.desc = "Pending Approval");
1671
- te && te.status;
1675
+ else oe < K || K === -1 ? (H.status = 0, H.desc = "Skipped") : (H.status = 0, H.desc = "Pending Approval");
1676
+ ne && ne.status;
1672
1677
  }
1673
- return B;
1678
+ return H;
1674
1679
  });
1675
- }, X = m([]), ee = m(!1), M = m(!1), Z = m(!1), re = m(!1);
1680
+ }, J = m([]), ee = m(!1), M = m(!1), Z = m(!1), se = m(!1);
1676
1681
  async function V() {
1677
1682
  const I = await r.getBtnList();
1678
1683
  u.value.actions = u.value.actions?.filter((L) => {
1679
1684
  const K = I.find((P) => P.button === L.title);
1680
1685
  return K ? K.isShow : !0;
1681
- }), ee.value = I.find((L) => L.button === "IsGlobal")?.isShow ?? !1, M.value = I.find((L) => L.button === "AssignButton")?.isShow ?? !1, Z.value = I.find((L) => L.button === "AssignList")?.isShow ?? !1, re.value = I.find((L) => L.button === "AddCommentsButton")?.isShow ?? !1;
1686
+ }), ee.value = I.find((L) => L.button === "IsGlobal")?.isShow ?? !1, M.value = I.find((L) => L.button === "AssignButton")?.isShow ?? !1, Z.value = I.find((L) => L.button === "AssignList")?.isShow ?? !1, se.value = I.find((L) => L.button === "AddCommentsButton")?.isShow ?? !1;
1682
1687
  }
1683
1688
  const w = m([]);
1684
1689
  async function k() {
1685
- p.value = !0, r = new Ue().setPageActionType(pe.Details).setClassName(i.className).setStore({ svrStore: a, bpmStore: e }).setWorkflowId(i.workflowId).build(), u.value = await r.getPageData();
1690
+ p.value = !0, r = new Ue().setPageActionType(me.Details).setClassName(i.className).setStore({ svrStore: a, bpmStore: e }).setWorkflowId(i.workflowId).build(), u.value = await r.getPageData();
1686
1691
  const I = await r.getFiles();
1687
- se.value = await r.getApprovers(), O.value = await r.getCommentsHistory(), ie.value = await r.getAssociator(), V();
1692
+ te.value = await r.getApprovers(), O.value = await r.getCommentsHistory(), le.value = await r.getAssociator(), V();
1688
1693
  const L = u.value.fields.requestType.modelValue;
1689
1694
  o.Test?.({ fieldValue: L, hiddenFields: w }), g.value = v(u.value.fields);
1690
1695
  for (const P in u.value.fields)
1691
1696
  if (u.value.fields[P].widget?.widget === "File") {
1692
- const ne = g.value.find((B) => B.fieldKey === P);
1693
- ne && ne.widget && (ne.widget.files = I[P] ?? []);
1697
+ const oe = g.value.find((H) => H.fieldKey === P);
1698
+ oe && oe.widget && (oe.widget.files = I[P] ?? []);
1694
1699
  }
1695
1700
  const K = await r.getProcess();
1696
- X.value = C(K, 0), p.value = !1;
1701
+ J.value = C(K, 0), p.value = !1;
1697
1702
  }
1698
- ue(k);
1703
+ fe(k);
1699
1704
  async function T(I, L) {
1700
1705
  return o[I]?.(L);
1701
1706
  }
1702
1707
  function A() {
1703
1708
  return a()?.userInfo?.email_address ?? "";
1704
1709
  }
1705
- async function U(I, L, K, P, ne) {
1710
+ async function U(I, L, K, P, oe) {
1706
1711
  try {
1707
1712
  switch (L) {
1708
- case J.Submit:
1709
- const { reason: B, ifGlobal: be } = await T(ne, {
1713
+ case Q.Submit:
1714
+ const { reason: H, ifGlobal: be } = await T(oe, {
1710
1715
  isGlobal: ee.value
1711
1716
  });
1712
1717
  p.value = !0;
1713
- const ke = g.value.find((De) => De.fieldKey === "approvedGrade")?.modelValue, he = ne === "Approve" ? "100" : "-1", te = await Ot(
1718
+ const ke = g.value.find((De) => De.fieldKey === "approvedGrade")?.modelValue, he = oe === "Approve" ? "100" : "-1", ne = await Ot(
1714
1719
  i.className,
1715
1720
  i.workflowId,
1716
1721
  A(),
1717
- B,
1722
+ H,
1718
1723
  K,
1719
1724
  he,
1720
1725
  be,
@@ -1722,16 +1727,16 @@ const Io = /* @__PURE__ */ z({
1722
1727
  approvedGrade: ke
1723
1728
  }
1724
1729
  );
1725
- await T(`${ne}Success`, {
1730
+ await T(`${oe}Success`, {
1726
1731
  workflowId: i.workflowId,
1727
- res: te
1732
+ res: ne
1728
1733
  }), p.value = !1;
1729
- const Ce = ne === "Approve" ? `Request ID ${i.workflowId} has been approved.` : `Request ID ${i.workflowId} has been rejected.`;
1734
+ const Ce = oe === "Approve" ? `Request ID ${i.workflowId} has been approved.` : `Request ID ${i.workflowId} has been rejected.`;
1730
1735
  c?.appContext.config.globalProperties.$notification.success(
1731
1736
  Ce
1732
1737
  ), k();
1733
1738
  break;
1734
- case J.Link:
1739
+ case Q.Link:
1735
1740
  try {
1736
1741
  await o[I.eventName || ""]?.(), l.push({
1737
1742
  name: P,
@@ -1741,13 +1746,13 @@ const Io = /* @__PURE__ */ z({
1741
1746
  console.error("Error in link action trigger:", De);
1742
1747
  }
1743
1748
  break;
1744
- case J.Button:
1749
+ case Q.Button:
1745
1750
  await o[I.eventName || ""]?.({
1746
- approvers: se,
1747
- associators: ie,
1751
+ approvers: te,
1752
+ associators: le,
1748
1753
  isShowAssignSelect: M,
1749
1754
  isShowAssignList: Z,
1750
- assignCallback: ve,
1755
+ assignCallback: de,
1751
1756
  deleteAssociatorCallback: D
1752
1757
  });
1753
1758
  break;
@@ -1757,8 +1762,8 @@ const Io = /* @__PURE__ */ z({
1757
1762
  } catch {
1758
1763
  }
1759
1764
  }
1760
- const R = m(""), O = m([]), G = m(""), se = m([]), ie = m([]);
1761
- async function ve(I) {
1765
+ const R = m(""), O = m([]), X = m(""), te = m([]), le = m([]);
1766
+ async function de(I) {
1762
1767
  if (!I) {
1763
1768
  c?.appContext.config.globalProperties.$message.error(
1764
1769
  "Please select an approver"
@@ -1770,7 +1775,7 @@ const Io = /* @__PURE__ */ z({
1770
1775
  "Do you want to assign the selected approver?"
1771
1776
  );
1772
1777
  try {
1773
- await r.assignApprover(I), ie.value = await r.getAssociator(), V(), c?.appContext.config.globalProperties.$notification.success(
1778
+ await r.assignApprover(I), le.value = await r.getAssociator(), V(), c?.appContext.config.globalProperties.$notification.success(
1774
1779
  "Assign Approver clicked!"
1775
1780
  );
1776
1781
  } catch (L) {
@@ -1787,14 +1792,14 @@ const Io = /* @__PURE__ */ z({
1787
1792
  }
1788
1793
  async function b(I, L) {
1789
1794
  const { Modal: K } = await import("@arco-design/web-vue");
1790
- return new Promise((P, ne) => {
1795
+ return new Promise((P, oe) => {
1791
1796
  K.confirm({
1792
1797
  title: I,
1793
1798
  content: L,
1794
1799
  okText: "OK",
1795
1800
  cancelText: "Cancel",
1796
1801
  onOk: () => P(!0),
1797
- onCancel: () => ne()
1802
+ onCancel: () => oe()
1798
1803
  });
1799
1804
  });
1800
1805
  }
@@ -1808,7 +1813,7 @@ const Io = /* @__PURE__ */ z({
1808
1813
  return;
1809
1814
  }
1810
1815
  try {
1811
- await r.deleteAssociator(I.toString()), ie.value = await r.getAssociator(), c?.appContext.config.globalProperties.$notification.success(
1816
+ await r.deleteAssociator(I.toString()), le.value = await r.getAssociator(), c?.appContext.config.globalProperties.$notification.success(
1812
1817
  "Associator deleted successfully!"
1813
1818
  );
1814
1819
  } catch {
@@ -1817,7 +1822,7 @@ const Io = /* @__PURE__ */ z({
1817
1822
  );
1818
1823
  }
1819
1824
  }
1820
- async function H() {
1825
+ async function F() {
1821
1826
  if (!R.value.trim()) {
1822
1827
  c?.appContext.config.globalProperties.$message.error(
1823
1828
  "Comment cannot be empty"
@@ -1831,18 +1836,18 @@ const Io = /* @__PURE__ */ z({
1831
1836
  function ce(I) {
1832
1837
  return I ? I === "OtherInformationText" ? "Other Information" : I : "";
1833
1838
  }
1834
- const fe = { svrStore: a, bpmStore: e, triggers: o, router: l, customComps: s, instance: c, props: i, get page() {
1839
+ const pe = { svrStore: a, bpmStore: e, triggers: o, router: l, customComps: s, instance: c, props: i, get page() {
1835
1840
  return r;
1836
1841
  }, set page(I) {
1837
1842
  r = I;
1838
- }, pageData: u, _fields: g, genField: v, groupedFields: y, reversedActions: f, loading: p, mapWorkflowSteps: C, steps: X, isGlobal: ee, isShowAssignSelect: M, isShowAssignList: Z, isShowCommentTextArea: re, reloadButtonList: V, hiddenFields: w, load: k, triggerFn: T, getApproverEmail: A, clickHandler: U, comment: R, commentsHistory: O, selectedApprover: G, approvers: se, associators: ie, onAssignApprover: ve, confirmDialog: b, onDeleteAssociator: D, onAddComment: H, formatTitle: ce, ActionButton: Ae, get IconDownload() {
1843
+ }, pageData: u, _fields: g, genField: v, groupedFields: y, reversedActions: f, loading: p, mapWorkflowSteps: C, steps: J, isGlobal: ee, isShowAssignSelect: M, isShowAssignList: Z, isShowCommentTextArea: se, reloadButtonList: V, hiddenFields: w, load: k, triggerFn: T, getApproverEmail: A, clickHandler: U, comment: R, commentsHistory: O, selectedApprover: X, approvers: te, associators: le, onAssignApprover: de, confirmDialog: b, onDeleteAssociator: D, onAddComment: F, formatTitle: ce, ActionButton: Ae, get IconDownload() {
1839
1844
  return Nn;
1840
1845
  }, TopBar: Ne, get formatDate() {
1841
1846
  return Se;
1842
1847
  }, ToolTip: rt, DataWidgets: Ve };
1843
- return Object.defineProperty(fe, "__isScriptSetup", { enumerable: !1, value: !0 }), fe;
1848
+ return Object.defineProperty(pe, "__isScriptSetup", { enumerable: !1, value: !0 }), pe;
1844
1849
  }
1845
- }), Po = { class: "page-container" }, No = { class: "page-body" }, Uo = { class: "detail-card" }, Do = { class: "form-fields-vertical" }, Bo = { class: "detail-fields" }, Fo = { class: "detail-field" }, Ho = {
1850
+ }), Po = { class: "page-container" }, No = { class: "page-body" }, Uo = { class: "detail-card" }, Do = { class: "form-fields-vertical" }, Ho = { class: "detail-fields" }, Bo = { class: "detail-field" }, Fo = {
1846
1851
  key: 0,
1847
1852
  class: "detail-field"
1848
1853
  }, Lo = { class: "field-label" }, Ro = {
@@ -1872,23 +1877,23 @@ function Ko(t, n, a, e, o, l) {
1872
1877
  }, {
1873
1878
  default: S(() => [
1874
1879
  h("div", Uo, [
1875
- (d(), F($e(e.customComps.Steps), { steps: e.steps }, null, 8, ["steps"])),
1880
+ (d(), B($e(e.customComps.Steps), { steps: e.steps }, null, 8, ["steps"])),
1876
1881
  h("div", Do, [
1877
- (d(!0), _($, null, j(e.groupedFields, (f) => (d(), F(i, {
1882
+ (d(!0), _($, null, j(e.groupedFields, (f) => (d(), B(i, {
1878
1883
  key: f.name,
1879
1884
  title: f.name,
1880
1885
  style: { "margin-bottom": "24px" }
1881
1886
  }, {
1882
1887
  default: S(() => [
1883
- h("div", Bo, [
1888
+ h("div", Ho, [
1884
1889
  (d(!0), _($, null, j(f.fields, (p) => (d(), _("div", {
1885
1890
  key: p.fieldKey,
1886
1891
  class: "detail-field-wrapper"
1887
1892
  }, [
1888
- h("div", Fo, [
1893
+ h("div", Bo, [
1889
1894
  p.widget?.readonly ? (d(), _($, { key: 1 }, [
1890
1895
  h("div", Lo, [
1891
- oe(Y(e.formatTitle(p.widget?.title)) + " ", 1),
1896
+ ae(q(e.formatTitle(p.widget?.title)) + " ", 1),
1892
1897
  N(e.ToolTip, {
1893
1898
  "is-visible": p.widget?.isVisible ?? !1,
1894
1899
  "output-text": p.widget?.outputText ?? []
@@ -1900,7 +1905,7 @@ function Ko(t, n, a, e, o, l) {
1900
1905
  }, [
1901
1906
  N(c, null, {
1902
1907
  default: S(() => [
1903
- oe(Y(C.name) + " ", 1),
1908
+ ae(q(C.name) + " ", 1),
1904
1909
  N(s, {
1905
1910
  href: C.url,
1906
1911
  target: "_blank"
@@ -1913,8 +1918,8 @@ function Ko(t, n, a, e, o, l) {
1913
1918
  ]),
1914
1919
  _: 2
1915
1920
  }, 1024)
1916
- ]))), 128)) : (d(), _("div", Ro, Y(p.fieldValue), 1))
1917
- ], 64)) : (d(), _("div", Ho, [
1921
+ ]))), 128)) : (d(), _("div", Ro, q(p.fieldValue), 1))
1922
+ ], 64)) : (d(), _("div", Fo, [
1918
1923
  N(e.DataWidgets, {
1919
1924
  ref_for: !0,
1920
1925
  ref: "dataWidgets",
@@ -1932,8 +1937,8 @@ function Ko(t, n, a, e, o, l) {
1932
1937
  ]),
1933
1938
  _: 2
1934
1939
  }, 1032, ["title"]))), 128)),
1935
- ae("", !0),
1936
- ae("", !0),
1940
+ re("", !0),
1941
+ re("", !0),
1937
1942
  e.isShowCommentTextArea ? (d(), _("div", Oo, [
1938
1943
  h("div", $o, [
1939
1944
  n[6] || (n[6] = h("div", { class: "field-label" }, "Comment", -1)),
@@ -1946,33 +1951,33 @@ function Ko(t, n, a, e, o, l) {
1946
1951
  onClick: e.onAddComment
1947
1952
  }, {
1948
1953
  default: S(() => n[5] || (n[5] = [
1949
- oe("Add Comment", -1)
1954
+ ae("Add Comment", -1)
1950
1955
  ])),
1951
1956
  _: 1,
1952
1957
  __: [5]
1953
1958
  })
1954
1959
  ])
1955
- ])) : ae("", !0),
1956
- e.commentsHistory.length ? (d(), F(g, { key: 3 }, {
1960
+ ])) : re("", !0),
1961
+ e.commentsHistory.length ? (d(), B(g, { key: 3 }, {
1957
1962
  header: S(() => n[7] || (n[7] = [
1958
- oe(" Comments History ", -1)
1963
+ ae(" Comments History ", -1)
1959
1964
  ])),
1960
1965
  default: S(() => [
1961
- (d(!0), _($, null, j(e.commentsHistory, (f) => (d(), F(u, {
1966
+ (d(!0), _($, null, j(e.commentsHistory, (f) => (d(), B(u, {
1962
1967
  key: f.associator
1963
1968
  }, {
1964
1969
  default: S(() => [
1965
- oe(Y(f.associator) + ": " + Y(f.comments) + " (" + Y(e.formatDate(f.createdAt)) + ") ", 1)
1970
+ ae(q(f.associator) + ": " + q(f.comments) + " (" + q(e.formatDate(f.createdAt)) + ") ", 1)
1966
1971
  ]),
1967
1972
  _: 2
1968
1973
  }, 1024))), 128))
1969
1974
  ]),
1970
1975
  _: 1
1971
- })) : ae("", !0)
1976
+ })) : re("", !0)
1972
1977
  ]),
1973
1978
  t.$slots.content ? (d(), _("div", jo, [
1974
- de(t.$slots, "content", {}, void 0, !0)
1975
- ])) : ae("", !0)
1979
+ ue(t.$slots, "content", {}, void 0, !0)
1980
+ ])) : re("", !0)
1976
1981
  ])
1977
1982
  ]),
1978
1983
  _: 3
@@ -1980,9 +1985,9 @@ function Ko(t, n, a, e, o, l) {
1980
1985
  ]),
1981
1986
  h("div", Mo, [
1982
1987
  h("div", Eo, [
1983
- de(t.$slots, "action", {}, void 0, !0),
1988
+ ue(t.$slots, "action", {}, void 0, !0),
1984
1989
  h("div", zo, [
1985
- (d(!0), _($, null, j(e.reversedActions, (f) => (d(), F(e.ActionButton, {
1990
+ (d(!0), _($, null, j(e.reversedActions, (f) => (d(), B(e.ActionButton, {
1986
1991
  key: f.title,
1987
1992
  loading: e.loading,
1988
1993
  config: f,
@@ -1994,7 +1999,7 @@ function Ko(t, n, a, e, o, l) {
1994
1999
  ])
1995
2000
  ]);
1996
2001
  }
1997
- const Wo = /* @__PURE__ */ Q(Io, [["render", Ko], ["__scopeId", "data-v-eab77026"], ["__file", "DetailView.vue"]]), Go = /* @__PURE__ */ z({
2002
+ const Wo = /* @__PURE__ */ Y(Io, [["render", Ko], ["__scopeId", "data-v-eab77026"], ["__file", "DetailView.vue"]]), Go = /* @__PURE__ */ z({
1998
2003
  name: "ListView",
1999
2004
  __name: "ListView",
2000
2005
  props: {
@@ -2002,7 +2007,7 @@ const Wo = /* @__PURE__ */ Q(Io, [["render", Ko], ["__scopeId", "data-v-eab77026
2002
2007
  },
2003
2008
  setup(t, { expose: n }) {
2004
2009
  n();
2005
- const a = Pe(), e = Ie(), o = Te(), l = me(), s = t, c = m(), i = ft({
2010
+ const a = Pe(), e = Ie(), o = Te(), l = ge(), s = t, c = m(), i = ft({
2006
2011
  current: 1,
2007
2012
  total: 0,
2008
2013
  pageSize: 10,
@@ -2012,11 +2017,11 @@ const Wo = /* @__PURE__ */ Q(Io, [["render", Ko], ["__scopeId", "data-v-eab77026
2012
2017
  filters: []
2013
2018
  });
2014
2019
  function r() {
2015
- const b = Object.entries(A.value).filter(([, { value: D }]) => D && D !== "").map(([D, { value: H, operator: ce }]) => {
2016
- const fe = typeof H == "string" ? H.trim() : H;
2020
+ const b = Object.entries(A.value).filter(([, { value: D }]) => D && D !== "").map(([D, { value: F, operator: ce }]) => {
2021
+ const pe = typeof F == "string" ? F.trim() : F;
2017
2022
  return {
2018
2023
  key: D,
2019
- value: fe,
2024
+ value: pe,
2020
2025
  operator: ce
2021
2026
  // 根据实际需要调整操作符
2022
2027
  };
@@ -2036,9 +2041,9 @@ const Wo = /* @__PURE__ */ Q(Io, [["render", Ko], ["__scopeId", "data-v-eab77026
2036
2041
  // 只设置横向滚动
2037
2042
  // 移除 y 属性,让表格高度自适应
2038
2043
  })), g = (b) => {
2039
- const D = Object.entries(b).filter(([, H]) => H.widget?.column).map(([H, ce], fe) => ({
2044
+ const D = Object.entries(b).filter(([, F]) => F.widget?.column).map(([F, ce], pe) => ({
2040
2045
  title: ce.widget.title,
2041
- dataIndex: H.charAt(0).toLowerCase() + H.slice(1),
2046
+ dataIndex: F.charAt(0).toLowerCase() + F.slice(1),
2042
2047
  order: ce.order,
2043
2048
  ellipsis: !0,
2044
2049
  tooltip: !0,
@@ -2047,7 +2052,7 @@ const Wo = /* @__PURE__ */ Q(Io, [["render", Ko], ["__scopeId", "data-v-eab77026
2047
2052
  // 启用最小宽度
2048
2053
  resizable: !0
2049
2054
  // 启用列宽调整
2050
- })).sort((H, ce) => H.order - ce.order);
2055
+ })).sort((F, ce) => F.order - ce.order);
2051
2056
  D.push({
2052
2057
  title: "Actions",
2053
2058
  slotName: "optional",
@@ -2057,39 +2062,39 @@ const Wo = /* @__PURE__ */ Q(Io, [["render", Ko], ["__scopeId", "data-v-eab77026
2057
2062
  fixed: "right",
2058
2063
  resizable: !1
2059
2064
  }), y.value = D;
2060
- }, v = m([]), y = m([]), f = m(!0), p = m(!0), C = m(), X = async () => {
2065
+ }, v = m([]), y = m([]), f = m(!0), p = m(!0), C = m(), J = async () => {
2061
2066
  p.value = !0;
2062
2067
  const b = await Nt(s.className, r());
2063
2068
  v.value = b.data, i.total = b.totalCount, p.value = !1;
2064
2069
  }, ee = m(!1);
2065
- ue(async () => {
2070
+ fe(async () => {
2066
2071
  f.value = !0;
2067
- const b = new Ue().setPageActionType(pe.List).setClassName(s.className).setStore({ svrStore: a, bpmStore: e }).build();
2072
+ const b = new Ue().setPageActionType(me.List).setClassName(s.className).setStore({ svrStore: a, bpmStore: e }).build();
2068
2073
  c.value = await b.getPageData(), g(c.value.fields), R(c.value.fields), O(), T(c.value?.tabs?.[0]?.key || ""), C.value = c.value.actions, f.value = !1, ee.value = !0;
2069
2074
  }), pt(() => {
2070
- ee.value && X();
2075
+ ee.value && J();
2071
2076
  });
2072
2077
  const M = (b) => {
2073
- i.current = b, X();
2078
+ i.current = b, J();
2074
2079
  }, Z = (b) => {
2075
- i.pageSize = b, X();
2080
+ i.pageSize = b, J();
2076
2081
  };
2077
- function re(b, D, H, ce, fe) {
2082
+ function se(b, D, F, ce, pe) {
2078
2083
  switch (b) {
2079
- case J.Link:
2080
- o.push({ name: H, params: { workflowId: fe } });
2084
+ case Q.Link:
2085
+ o.push({ name: F, params: { workflowId: pe } });
2081
2086
  break;
2082
2087
  default:
2083
2088
  console.warn("Unknown action type:", b);
2084
2089
  }
2085
2090
  }
2086
- function V(b, D, H) {
2091
+ function V(b, D, F) {
2087
2092
  switch (b) {
2088
- case J.Submit:
2093
+ case Q.Submit:
2089
2094
  Jt(D, { filters: [{ key: "approverList", value: w(), operator: 2 }] }), l?.appContext.config.globalProperties.$notification.success("submit success!");
2090
2095
  break;
2091
- case J.Link:
2092
- o.push({ name: H });
2096
+ case Q.Link:
2097
+ o.push({ name: F });
2093
2098
  break;
2094
2099
  default:
2095
2100
  console.warn("Unknown action type:", b);
@@ -2102,32 +2107,32 @@ const Wo = /* @__PURE__ */ Q(Io, [["render", Ko], ["__scopeId", "data-v-eab77026
2102
2107
  return typeof b != "string" || b.indexOf("{currentUserEmail}") === -1 ? b : b.replace(/{currentUserEmail}/g, D);
2103
2108
  }
2104
2109
  function T(b) {
2105
- const D = c.value?.tabs?.find((H) => H.key === b)?.filters;
2106
- i.filters = D?.map((H) => ({
2107
- ...H,
2108
- value: k(H.value, w())
2109
- })) || [], i.current = 1, X();
2110
+ const D = c.value?.tabs?.find((F) => F.key === b)?.filters;
2111
+ i.filters = D?.map((F) => ({
2112
+ ...F,
2113
+ value: k(F.value, w())
2114
+ })) || [], i.current = 1, J();
2110
2115
  }
2111
2116
  const A = m({}), U = m([]);
2112
2117
  function R(b) {
2113
2118
  if (!b) return [];
2114
- U.value = Object.entries(b).filter(([, D]) => D.isFiltered).map(([D, H]) => ({ fieldKey: D, fieldConfig: H }));
2119
+ U.value = Object.entries(b).filter(([, D]) => D.isFiltered).map(([D, F]) => ({ fieldKey: D, fieldConfig: F }));
2115
2120
  }
2116
2121
  const O = () => {
2117
2122
  const b = {};
2118
- U.value.forEach(({ fieldKey: D, fieldConfig: H }) => {
2119
- b[D] = {}, b[D].value = H.modelValue, b[D].operator = H.operator;
2123
+ U.value.forEach(({ fieldKey: D, fieldConfig: F }) => {
2124
+ b[D] = {}, b[D].value = F.modelValue, b[D].operator = F.operator;
2120
2125
  }), A.value = b;
2121
- }, G = () => {
2122
- i.current = 1, X();
2123
- }, se = () => {
2124
- c.value && O(), G();
2126
+ }, X = () => {
2127
+ i.current = 1, J();
2128
+ }, te = () => {
2129
+ c.value && O(), X();
2125
2130
  };
2126
- function ie(b, D) {
2131
+ function le(b, D) {
2127
2132
  return !(b.location !== "InTable" || b.title === "Update" && (D.status === 100 || D.status === -1));
2128
2133
  }
2129
- const ve = { svrStore: a, bpmStore: e, router: o, instance: l, props: s, pageData: c, paging: i, createListParams: r, scroll: u, mapColumns: g, _data: v, _columns: y, loadingPage: f, loadingTable: p, actions: C, loadData: X, mounted: ee, pageChangeHandler: M, pageSizeChangeHandler: Z, clickHandler: re, createHandler: V, getApproverEmail: w, replaceEmail: k, tabHandler: T, searchForm: A, searchableFields: U, mapSearchableFields: R, initSearchForm: O, handleSearch: G, handleReset: se, judgeHiddenActions: ie, ActionButton: Ae, DataWidgets: Ve, TopBar: Ne };
2130
- return Object.defineProperty(ve, "__isScriptSetup", { enumerable: !1, value: !0 }), ve;
2134
+ const de = { svrStore: a, bpmStore: e, router: o, instance: l, props: s, pageData: c, paging: i, createListParams: r, scroll: u, mapColumns: g, _data: v, _columns: y, loadingPage: f, loadingTable: p, actions: C, loadData: J, mounted: ee, pageChangeHandler: M, pageSizeChangeHandler: Z, clickHandler: se, createHandler: V, getApproverEmail: w, replaceEmail: k, tabHandler: T, searchForm: A, searchableFields: U, mapSearchableFields: R, initSearchForm: O, handleSearch: X, handleReset: te, judgeHiddenActions: le, ActionButton: Ae, DataWidgets: Ve, TopBar: Ne };
2135
+ return Object.defineProperty(de, "__isScriptSetup", { enumerable: !1, value: !0 }), de;
2131
2136
  }
2132
2137
  }), qo = { class: "list-container" }, Yo = { class: "query-title" };
2133
2138
  function Qo(t, n, a, e, o, l) {
@@ -2147,11 +2152,11 @@ function Qo(t, n, a, e, o, l) {
2147
2152
  (d(!0), _($, null, j(e.actions, (f) => (d(), _($, {
2148
2153
  key: f.title
2149
2154
  }, [
2150
- f.location === "InOperation" ? (d(), F(e.ActionButton, {
2155
+ f.location === "InOperation" ? (d(), B(e.ActionButton, {
2151
2156
  key: 0,
2152
2157
  config: f,
2153
2158
  onClick: e.createHandler
2154
- }, null, 8, ["config"])) : ae("", !0)
2159
+ }, null, 8, ["config"])) : re("", !0)
2155
2160
  ], 64))), 128))
2156
2161
  ]),
2157
2162
  _: 1
@@ -2159,7 +2164,7 @@ function Qo(t, n, a, e, o, l) {
2159
2164
  ]),
2160
2165
  N(r, { gutter: [24, 20] }, {
2161
2166
  default: S(() => [
2162
- (d(!0), _($, null, j(e.searchableFields, (f) => (d(), F(c, {
2167
+ (d(!0), _($, null, j(e.searchableFields, (f) => (d(), B(c, {
2163
2168
  key: f.fieldKey,
2164
2169
  span: 6,
2165
2170
  class: "search-col"
@@ -2188,7 +2193,7 @@ function Qo(t, n, a, e, o, l) {
2188
2193
  onClick: e.handleSearch
2189
2194
  }, {
2190
2195
  default: S(() => n[1] || (n[1] = [
2191
- oe(" Search ", -1)
2196
+ ae(" Search ", -1)
2192
2197
  ])),
2193
2198
  _: 1,
2194
2199
  __: [1]
@@ -2198,7 +2203,7 @@ function Qo(t, n, a, e, o, l) {
2198
2203
  onClick: e.handleReset
2199
2204
  }, {
2200
2205
  default: S(() => n[2] || (n[2] = [
2201
- oe(" Reset ", -1)
2206
+ ae(" Reset ", -1)
2202
2207
  ])),
2203
2208
  _: 1,
2204
2209
  __: [2]
@@ -2220,7 +2225,7 @@ function Qo(t, n, a, e, o, l) {
2220
2225
  onTabClick: e.tabHandler
2221
2226
  }, {
2222
2227
  default: S(() => [
2223
- (d(!0), _($, null, j(e.pageData?.tabs, (f) => (d(), F(g, {
2228
+ (d(!0), _($, null, j(e.pageData?.tabs, (f) => (d(), B(g, {
2224
2229
  key: f.key,
2225
2230
  title: f.title
2226
2231
  }, null, 8, ["title"]))), 128))
@@ -2252,12 +2257,12 @@ function Qo(t, n, a, e, o, l) {
2252
2257
  (d(!0), _($, null, j(e.actions, (p) => (d(), _($, {
2253
2258
  key: p.title
2254
2259
  }, [
2255
- e.judgeHiddenActions(p, f) ? (d(), F(e.ActionButton, {
2260
+ e.judgeHiddenActions(p, f) ? (d(), B(e.ActionButton, {
2256
2261
  key: 0,
2257
2262
  config: p,
2258
2263
  size: "small",
2259
2264
  onClick: (...C) => e.clickHandler(...C, f.workflowId)
2260
- }, null, 8, ["config", "onClick"])) : ae("", !0)
2265
+ }, null, 8, ["config", "onClick"])) : re("", !0)
2261
2266
  ], 64))), 128))
2262
2267
  ]),
2263
2268
  _: 2
@@ -2267,7 +2272,7 @@ function Qo(t, n, a, e, o, l) {
2267
2272
  }, 8, ["columns", "data", "pagination", "loading", "scroll"])
2268
2273
  ]);
2269
2274
  }
2270
- const Jo = /* @__PURE__ */ Q(Go, [["render", Qo], ["__scopeId", "data-v-710cb888"], ["__file", "ListView.vue"]]), oa = {
2275
+ const Jo = /* @__PURE__ */ Y(Go, [["render", Qo], ["__scopeId", "data-v-710cb888"], ["__file", "ListView.vue"]]), oa = {
2271
2276
  install(t, n = {}) {
2272
2277
  n.config && kt(n.config), n.router && t.provide(st, n.router), n.pinia && t.provide(qn, n.pinia), n.useBpmStore && t.provide(lt, n.useBpmStore), n.useSvrStore && t.provide(ct, n.useSvrStore), n.triggers && t.provide(it, n.triggers), n.customComps && t.provide(dt, n.customComps), t.component("CreateView", go), t.component("UpdateView", Ao), t.component("DetailView", Wo), t.component("ListView", Jo);
2273
2278
  }