@chase-shao/vue-component-lib 1.2.76 → 1.2.78

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,10 +1,10 @@
1
- import { ref as _, getCurrentInstance as pe, defineComponent as G, mergeModels as ie, useModel as ye, resolveComponent as S, createBlock as U, openBlock as d, onMounted as de, computed as ee, withCtx as v, createElementBlock as C, Fragment as j, renderList as E, createVNode as P, nextTick as ot, createTextVNode as X, useTemplateRef as Ne, createElementVNode as V, createCommentVNode as se, toDisplayString as Z, resolveDynamicComponent as He, renderSlot as ce, inject as me, reactive as Le, normalizeStyle as at, normalizeClass as rt, onActivated as st } from "vue";
1
+ import { ref as m, getCurrentInstance as pe, defineComponent as q, mergeModels as ie, useModel as ye, resolveComponent as S, createBlock as P, openBlock as d, onMounted as ce, computed as Z, withCtx as v, createElementBlock as C, Fragment as j, renderList as $, createVNode as D, nextTick as ot, createTextVNode as J, useTemplateRef as Ne, createElementVNode as A, createCommentVNode as se, toDisplayString as Q, resolveDynamicComponent as He, renderSlot as le, inject as me, reactive as Fe, normalizeStyle as at, normalizeClass as rt, onActivated as st } from "vue";
2
2
  import it from "axios";
3
3
  import { defineStore as lt } from "pinia";
4
4
  import { Modal as ct } from "@arco-design/web-vue";
5
5
  import { useRouter as dt } from "vue-router";
6
6
  const ut = lt("main", () => ({
7
- token: _(void 0)
7
+ token: m(void 0)
8
8
  })), ft = async (t) => new Promise((n) => setTimeout(n, t)), pt = async (t, n, a, e = void 0) => {
9
9
  if (t[n] === void 0)
10
10
  try {
@@ -52,12 +52,12 @@ let De = {};
52
52
  function gt(t) {
53
53
  De = { ...De, ...t };
54
54
  }
55
- function Re() {
55
+ function Le() {
56
56
  return De;
57
57
  }
58
58
  const _t = pe();
59
59
  function Ge() {
60
- const t = Re();
60
+ const t = Le();
61
61
  return {
62
62
  apiBase: t.apiBase || void 0 || "",
63
63
  appSecret: t.appSecret || void 0 || ""
@@ -97,7 +97,7 @@ const qe = async () => {
97
97
  e.token = void 0;
98
98
  }, (o.data?.expireSeconds ?? 3600) * 1e3), o?.data?.token;
99
99
  });
100
- }, $ = async () => {
100
+ }, K = async () => {
101
101
  const t = await qe(), n = We();
102
102
  return n.defaults.headers.common.Authorization = `Bearer ${t}`, n;
103
103
  }, Ie = {
@@ -107,11 +107,11 @@ const qe = async () => {
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
- }, z = [];
110
+ }, W = [];
111
111
  for (let t = 0; t < 256; ++t)
112
- z.push((t + 256).toString(16).slice(1));
112
+ W.push((t + 256).toString(16).slice(1));
113
113
  function bt(t, n = 0) {
114
- return (z[t[n + 0]] + z[t[n + 1]] + z[t[n + 2]] + z[t[n + 3]] + "-" + z[t[n + 4]] + z[t[n + 5]] + "-" + z[t[n + 6]] + z[t[n + 7]] + "-" + z[t[n + 8]] + z[t[n + 9]] + "-" + z[t[n + 10]] + z[t[n + 11]] + z[t[n + 12]] + z[t[n + 13]] + z[t[n + 14]] + z[t[n + 15]]).toLowerCase();
114
+ return (W[t[n + 0]] + W[t[n + 1]] + W[t[n + 2]] + W[t[n + 3]] + "-" + W[t[n + 4]] + W[t[n + 5]] + "-" + W[t[n + 6]] + W[t[n + 7]] + "-" + W[t[n + 8]] + W[t[n + 9]] + "-" + W[t[n + 10]] + W[t[n + 11]] + W[t[n + 12]] + W[t[n + 13]] + W[t[n + 14]] + W[t[n + 15]]).toLowerCase();
115
115
  }
116
116
  let Te;
117
117
  const yt = new Uint8Array(16);
@@ -133,7 +133,7 @@ function Ye(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, bt(e);
135
135
  }
136
- var te = /* @__PURE__ */ ((t) => (t[t.Submit = 0] = "Submit", t[t.Link = 1] = "Link", t))(te || {}), fe = /* @__PURE__ */ ((t) => (t[t.Create = 0] = "Create", t[t.Update = 1] = "Update", t[t.Details = 2] = "Details", t[t.List = 3] = "List", t))(fe || {});
136
+ var ee = /* @__PURE__ */ ((t) => (t[t.Submit = 0] = "Submit", t[t.Link = 1] = "Link", t))(ee || {}), fe = /* @__PURE__ */ ((t) => (t[t.Create = 0] = "Create", t[t.Update = 1] = "Update", t[t.Details = 2] = "Details", t[t.List = 3] = "List", t))(fe || {});
137
137
  function kt(t, n, a) {
138
138
  const e = {
139
139
  pageType: "",
@@ -171,13 +171,13 @@ function kt(t, n, a) {
171
171
  redirectUrl: o.redirectUrl,
172
172
  redirectType: o.redirectType,
173
173
  title: o.title,
174
- widget: o.widget === "Link" ? te.Link : te.Submit,
174
+ widget: o.widget === "Link" ? ee.Link : ee.Submit,
175
175
  location: o.location,
176
176
  attributeType: o.attributeType,
177
177
  readonly: o.readonly,
178
178
  eventName: o.eventName
179
179
  });
180
- } else o.attributeType === "Banner" && (e.banner.title = o.title, e.banner.subTitle = n === 0 ? o.subTitle : Be(o.subTitle, t.workflowId.propertyValue));
180
+ } else o.attributeType === "Banner" && (e.banner.title = o.title, e.banner.subTitle = n === 0 ? o.subTitle : Re(o.subTitle, t.workflowId.propertyValue));
181
181
  }), e.tabs && (e.tabs = e.tabs.sort((o, l) => o.order - l.order)), Object.entries(t).forEach(([o, l]) => {
182
182
  if (o === "__ClassAttributes" || o === "className" || o === "id" || o === "deleteFlag" || o === "status" || o === "workFlowReason" || n !== 3 && o === "workflowId")
183
183
  return;
@@ -214,11 +214,11 @@ function kt(t, n, a) {
214
214
  }), e;
215
215
  }
216
216
  const ke = async (t, n, a, e) => {
217
- const l = await (await $()).get(`/General/${n}/${t}/page`, { params: e });
217
+ const l = await (await K()).get(`/General/${n}/${t}/page`, { params: e });
218
218
  return kt(l?.data, t, a);
219
- }, Je = async (t, n, a) => (await (await $()).post(`/${n}/${t}/button/List`, null, { params: a }))?.data;
219
+ }, Je = async (t, n, a) => (await (await K()).post(`/${n}/${t}/button/List`, null, { params: a }))?.data;
220
220
  async function Ct(t, n) {
221
- const e = await (await $()).post(`/General/${t}/list`, n);
221
+ const e = await (await K()).post(`/General/${t}/list`, n);
222
222
  return {
223
223
  data: e.data.data,
224
224
  totalCount: e.data.totalCount
@@ -238,17 +238,17 @@ async function Ct(t, n) {
238
238
  };
239
239
  }
240
240
  async function St(t, n, a) {
241
- return (await (await $()).post(a, n, {
241
+ return (await (await K()).post(a, n, {
242
242
  params: {
243
243
  className: t
244
244
  }
245
245
  })).data;
246
246
  }
247
247
  async function xt(t, n, a, e) {
248
- const o = await $(), l = Be(e, n);
248
+ const o = await K(), l = Re(e, n);
249
249
  return (await o.put(l, a))?.data;
250
250
  }
251
- function Be(t, n) {
251
+ function Re(t, n) {
252
252
  return t.replace(/{WorkflowId}/g, n);
253
253
  }
254
254
  function Vt(t, n) {
@@ -267,19 +267,19 @@ function Ut(t, n) {
267
267
  return t.replace(/{ClassName}/g, encodeURIComponent(n));
268
268
  }
269
269
  async function Pt(t, n, a, e, o, l, s, c) {
270
- const i = await $();
271
- let r = Be(l, n);
270
+ const i = await K();
271
+ let r = Re(l, n);
272
272
  return r = Vt(r, a), r = At(r, e), r = It(r, s), r = Tt(r, c), r = Ut(r, t), (await i.put(r, o))?.data;
273
273
  }
274
274
  async function Dt(t, n) {
275
- const o = (await (await $()).get(t, { params: { value: n } }))?.data;
275
+ const o = (await (await K()).get(t, { params: { value: n } }))?.data;
276
276
  return Object.entries(o).map(([l, s]) => ({
277
277
  value: l,
278
278
  label: s
279
279
  }));
280
280
  }
281
281
  async function Nt(t, n) {
282
- return (await (await $()).get(`/General/${t}/${n}/process`))?.data;
282
+ return (await (await K()).get(`/General/${t}/${n}/process`))?.data;
283
283
  }
284
284
  function Ht(t) {
285
285
  return {
@@ -289,40 +289,40 @@ function Ht(t) {
289
289
  };
290
290
  }
291
291
  async function Xe(t, n) {
292
- return (await (await $()).get(`/General/${t}/${n}/upload/get`))?.data.reduce((l, s) => {
292
+ return (await (await K()).get(`/General/${t}/${n}/upload/get`))?.data.reduce((l, s) => {
293
293
  const { category: c } = s;
294
294
  return l[c] || (l[c] = []), l[c].push(Ht(s)), l;
295
295
  }, {});
296
296
  }
297
- async function Lt(t, n) {
298
- return (await $()).post(`/General/${t}/${n}/delete/attachment`);
297
+ async function Ft(t, n) {
298
+ return (await K()).post(`/General/${t}/${n}/delete/attachment`);
299
299
  }
300
- async function Rt() {
301
- const n = await (await $()).get("/Grading/dropdown/approvers");
300
+ async function Lt() {
301
+ const n = await (await K()).get("/Grading/dropdown/approvers");
302
302
  return Object.entries(n?.data).map(([a, e]) => ({
303
303
  label: a,
304
304
  value: e
305
305
  }));
306
306
  }
307
- async function Bt(t, n) {
308
- return await (await $()).post(`Grading/AssignComments/${t}/${encodeURIComponent(n)}`);
307
+ async function Rt(t, n) {
308
+ return await (await K()).post(`Grading/AssignComments/${t}/${encodeURIComponent(n)}`);
309
309
  }
310
- async function Ft(t, n, a) {
311
- return await (await $()).post(`Grading/AddComments/${t}/${encodeURIComponent(n)}`, a, {
310
+ async function Bt(t, n, a) {
311
+ return await (await K()).post(`Grading/AddComments/${t}/${encodeURIComponent(n)}`, a, {
312
312
  headers: { "Content-Type": "application/json;charset=UTF-8" }
313
313
  });
314
314
  }
315
315
  async function $e(t) {
316
- return (await (await $()).get(`Grading/GetComments/${t}`))?.data;
316
+ return (await (await K()).get(`Grading/GetComments/${t}`))?.data;
317
317
  }
318
318
  async function Ue(t) {
319
- return (await (await $()).get(`Grading/GetAssociator/${t}`))?.data;
319
+ return (await (await K()).get(`Grading/GetAssociator/${t}`))?.data;
320
320
  }
321
321
  async function jt(t) {
322
- return await (await $()).delete(`Grading/DeleteAssociator/${t}`);
322
+ return await (await K()).delete(`Grading/DeleteAssociator/${t}`);
323
323
  }
324
324
  async function Mt(t, n = null) {
325
- const e = await (await $()).post(t, n, {
325
+ const e = await (await K()).post(t, n, {
326
326
  responseType: "blob"
327
327
  });
328
328
  mt(e?.data, "WorkflowData.xlsx");
@@ -339,7 +339,7 @@ const ge = (t, n) => {
339
339
  }, Et = {
340
340
  Regex: (t, n) => new RegExp(t).test(n),
341
341
  Required: (t, n) => !!n
342
- }, $t = /* @__PURE__ */ G({
342
+ }, $t = /* @__PURE__ */ q({
343
343
  __name: "InputText",
344
344
  props: /* @__PURE__ */ ie({
345
345
  fieldKey: {},
@@ -357,9 +357,9 @@ const ge = (t, n) => {
357
357
  const e = t, o = a, l = ye(t, "modelValue"), s = (u) => ge(e.validations, u), c = (u) => {
358
358
  o("input", u);
359
359
  }, i = (u) => {
360
- const m = s(u);
361
- o("error", m.res ? "" : m.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((g) => {
362
- g.event === "change" && o(g.event, g.handlerName, u);
360
+ const g = s(u);
361
+ o("error", g.res ? "" : g.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((_) => {
362
+ _.event === "change" && o(_.event, _.handlerName, u);
363
363
  });
364
364
  };
365
365
  n({
@@ -371,7 +371,7 @@ const ge = (t, n) => {
371
371
  const r = { props: e, emits: o, model: l, validate: s, inputHandler: c, changeHandler: i };
372
372
  return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
373
373
  }
374
- }), Q = (t, n) => {
374
+ }), X = (t, n) => {
375
375
  const a = t.__vccOpts || t;
376
376
  for (const [e, o] of n)
377
377
  a[e] = o;
@@ -379,7 +379,7 @@ const ge = (t, n) => {
379
379
  };
380
380
  function Kt(t, n, a, e, o, l) {
381
381
  const s = S("AInput");
382
- return d(), U(s, {
382
+ return d(), P(s, {
383
383
  modelValue: e.model,
384
384
  "onUpdate:modelValue": n[0] || (n[0] = (c) => e.model = c),
385
385
  "allow-clear": "",
@@ -388,7 +388,7 @@ function Kt(t, n, a, e, o, l) {
388
388
  onChange: e.changeHandler
389
389
  }, null, 8, ["modelValue", "disabled"]);
390
390
  }
391
- const Ke = /* @__PURE__ */ Q($t, [["render", Kt], ["__file", "InputText.vue"]]), zt = /* @__PURE__ */ G({
391
+ const Ke = /* @__PURE__ */ X($t, [["render", Kt], ["__file", "InputText.vue"]]), zt = /* @__PURE__ */ q({
392
392
  __name: "InputNumber",
393
393
  props: /* @__PURE__ */ ie({
394
394
  fieldKey: {},
@@ -403,33 +403,33 @@ const Ke = /* @__PURE__ */ Q($t, [["render", Kt], ["__file", "InputText.vue"]]),
403
403
  }),
404
404
  emits: /* @__PURE__ */ ie(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
405
405
  setup(t, { expose: n, emit: a }) {
406
- const e = t, o = a, l = ye(t, "modelValue"), s = _(100), c = _(1);
407
- de(() => {
408
- e.validations && e.validations.forEach((g) => {
409
- g.ruleName === "Max" && (s.value = g.ruleParameter), g.ruleName === "Min" && (c.value = g.ruleParameter);
406
+ const e = t, o = a, l = ye(t, "modelValue"), s = m(100), c = m(1);
407
+ ce(() => {
408
+ e.validations && e.validations.forEach((_) => {
409
+ _.ruleName === "Max" && (s.value = _.ruleParameter), _.ruleName === "Min" && (c.value = _.ruleParameter);
410
410
  });
411
411
  });
412
- const i = (g) => ge(e.validations, g), r = (g) => {
413
- o("input", g);
414
- }, u = (g) => {
415
- const b = i(g);
412
+ const i = (_) => ge(e.validations, _), r = (_) => {
413
+ o("input", _);
414
+ }, u = (_) => {
415
+ const b = i(_);
416
416
  o("error", b.res ? "" : b.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((p) => {
417
- p.event === "change" && o(p.event, p.handlerName, g);
417
+ p.event === "change" && o(p.event, p.handlerName, _);
418
418
  });
419
419
  };
420
420
  n({
421
421
  validate() {
422
- const g = i(e.modelValue);
423
- return o("error", g.res ? "" : g.errorMessages), g.res;
422
+ const _ = i(e.modelValue);
423
+ return o("error", _.res ? "" : _.errorMessages), _.res;
424
424
  }
425
425
  });
426
- const m = { props: e, emits: o, model: l, max: s, min: c, validate: i, inputHandler: r, changeHandler: u };
427
- return Object.defineProperty(m, "__isScriptSetup", { enumerable: !1, value: !0 }), m;
426
+ const g = { props: e, emits: o, model: l, max: s, min: c, validate: i, inputHandler: r, changeHandler: u };
427
+ return Object.defineProperty(g, "__isScriptSetup", { enumerable: !1, value: !0 }), g;
428
428
  }
429
429
  });
430
430
  function Gt(t, n, a, e, o, l) {
431
431
  const s = S("AInputNumber");
432
- return d(), U(s, {
432
+ return d(), P(s, {
433
433
  modelValue: e.model,
434
434
  "onUpdate:modelValue": n[0] || (n[0] = (c) => e.model = c),
435
435
  clearable: "",
@@ -439,7 +439,7 @@ function Gt(t, n, a, e, o, l) {
439
439
  onChange: e.changeHandler
440
440
  }, null, 8, ["modelValue", "disabled", "min"]);
441
441
  }
442
- const Wt = /* @__PURE__ */ Q(zt, [["render", Gt], ["__file", "InputNumber.vue"]]), qt = /* @__PURE__ */ G({
442
+ const Wt = /* @__PURE__ */ X(zt, [["render", Gt], ["__file", "InputNumber.vue"]]), qt = /* @__PURE__ */ q({
443
443
  __name: "SelectList",
444
444
  props: /* @__PURE__ */ ie({
445
445
  fieldKey: {},
@@ -454,24 +454,24 @@ const Wt = /* @__PURE__ */ Q(zt, [["render", Gt], ["__file", "InputNumber.vue"]]
454
454
  }),
455
455
  emits: /* @__PURE__ */ ie(["update:modelValue", "change"], ["update:modelValue"]),
456
456
  setup(t, { expose: n, emit: a }) {
457
- const e = t, o = a, l = _(!1), s = _(e.config.options ?? []), c = ye(t, "modelValue"), i = (b) => ge(e.validations, b), r = ee(() => {
457
+ const e = t, o = a, l = m(!1), s = m(e.config.options ?? []), c = ye(t, "modelValue"), i = (b) => ge(e.validations, b), r = Z(() => {
458
458
  const b = {};
459
459
  return e.triggers && e.triggers.length > 0 && e.triggers.forEach((p) => {
460
- b[p.event] = (y) => {
461
- o(p.event, p.handlerName, y);
462
- const f = i(y);
460
+ b[p.event] = (w) => {
461
+ o(p.event, p.handlerName, w);
462
+ const f = i(w);
463
463
  o("error", f.res ? "" : f.errorMessages);
464
464
  };
465
465
  }), b;
466
466
  }), u = async () => {
467
467
  e.config.dataSourceProvider && (s.value = await Dt(e.config.dataSourceProvider));
468
468
  };
469
- de(u);
470
- const m = (b) => {
469
+ ce(u);
470
+ const g = (b) => {
471
471
  o("update:modelValue", b);
472
472
  const p = i(b);
473
- o("error", p.res ? "" : p.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((y) => {
474
- y.event === "change" && o(y.event, y.handlerName, b);
473
+ o("error", p.res ? "" : p.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((w) => {
474
+ w.event === "change" && o(w.event, w.handlerName, b);
475
475
  });
476
476
  };
477
477
  n({
@@ -480,13 +480,13 @@ const Wt = /* @__PURE__ */ Q(zt, [["render", Gt], ["__file", "InputNumber.vue"]]
480
480
  return o("error", b.res ? "" : b.errorMessages), b.res;
481
481
  }
482
482
  });
483
- const g = { props: e, emits: o, loading: l, _options: s, model: c, validate: i, eventHandlers: r, loadOptions: u, changeHandler: m };
484
- return Object.defineProperty(g, "__isScriptSetup", { enumerable: !1, value: !0 }), g;
483
+ const _ = { props: e, emits: o, loading: l, _options: s, model: c, validate: i, eventHandlers: r, loadOptions: u, changeHandler: g };
484
+ return Object.defineProperty(_, "__isScriptSetup", { enumerable: !1, value: !0 }), _;
485
485
  }
486
486
  });
487
487
  function Yt(t, n, a, e, o, l) {
488
488
  const s = S("AOption"), c = S("ASelect");
489
- return d(), U(c, {
489
+ return d(), P(c, {
490
490
  "allow-clear": "",
491
491
  modelValue: e.model,
492
492
  "onUpdate:modelValue": n[0] || (n[0] = (i) => e.model = i),
@@ -497,7 +497,7 @@ function Yt(t, n, a, e, o, l) {
497
497
  onChange: e.changeHandler
498
498
  }, {
499
499
  default: v(() => [
500
- (d(!0), C(j, null, E(e._options, (i) => (d(), U(s, {
500
+ (d(!0), C(j, null, $(e._options, (i) => (d(), P(s, {
501
501
  key: i.value,
502
502
  value: i.value,
503
503
  label: i.label
@@ -506,7 +506,7 @@ function Yt(t, n, a, e, o, l) {
506
506
  _: 1
507
507
  }, 8, ["modelValue", "loading", "disabled"]);
508
508
  }
509
- const ze = /* @__PURE__ */ Q(qt, [["render", Yt], ["__file", "SelectList.vue"]]), Jt = /* @__PURE__ */ G({
509
+ const ze = /* @__PURE__ */ X(qt, [["render", Yt], ["__file", "SelectList.vue"]]), Jt = /* @__PURE__ */ q({
510
510
  __name: "Cascader",
511
511
  props: {
512
512
  modelValue: {},
@@ -514,15 +514,15 @@ const ze = /* @__PURE__ */ Q(qt, [["render", Yt], ["__file", "SelectList.vue"]])
514
514
  },
515
515
  emits: ["update:modelValue", "change"],
516
516
  setup(t, { expose: n, emit: a }) {
517
- const e = t, o = a, l = _(e.config.options ?? []), s = (r) => {
517
+ const e = t, o = a, l = m(e.config.options ?? []), s = (r) => {
518
518
  o("update:modelValue", r), o("change", r);
519
519
  };
520
- de(async () => {
520
+ ce(async () => {
521
521
  if (e.config) {
522
522
  const r = e.config.dataSourceProvider;
523
523
  if (r) {
524
- const m = await (await $()).get(r);
525
- l.value = m.data;
524
+ const g = await (await K()).get(r);
525
+ l.value = g.data;
526
526
  }
527
527
  }
528
528
  });
@@ -538,12 +538,12 @@ const ze = /* @__PURE__ */ Q(qt, [["render", Yt], ["__file", "SelectList.vue"]])
538
538
  });
539
539
  function Xt(t, n, a, e, o, l) {
540
540
  const s = S("ACascader"), c = S("ASpace");
541
- return d(), U(c, {
541
+ return d(), P(c, {
542
542
  direction: "vertical",
543
543
  size: "large"
544
544
  }, {
545
545
  default: v(() => [
546
- P(s, {
546
+ D(s, {
547
547
  "field-names": e.fieldNames,
548
548
  "model-value": a.modelValue,
549
549
  options: e._options,
@@ -555,7 +555,7 @@ function Xt(t, n, a, e, o, l) {
555
555
  _: 1
556
556
  });
557
557
  }
558
- const Qt = /* @__PURE__ */ Q(Jt, [["render", Xt], ["__file", "Cascader.vue"]]), Zt = /* @__PURE__ */ G({
558
+ const Qt = /* @__PURE__ */ X(Jt, [["render", Xt], ["__file", "Cascader.vue"]]), Zt = /* @__PURE__ */ q({
559
559
  __name: "FileUpload",
560
560
  props: {
561
561
  className: {},
@@ -568,52 +568,54 @@ const Qt = /* @__PURE__ */ Q(Jt, [["render", Xt], ["__file", "Cascader.vue"]]),
568
568
  },
569
569
  emits: ["update:modelValue", "change", "error", "input"],
570
570
  setup(t, { expose: n, emit: a }) {
571
- const e = t, o = a, l = _({});
572
- de(async () => {
571
+ const e = t, o = a, l = m({});
572
+ ce(async () => {
573
573
  const h = await qe();
574
574
  l.value = {
575
575
  Authorization: `Bearer ${h}`
576
576
  };
577
577
  });
578
- const s = (h) => ge(e.validations, h), c = Re(), i = c.apiBase, r = _(null), u = _("");
579
- function m(h, K, Y) {
580
- return h.replace(/{WorkflowId}/g, K).replace(/{ClassName}/g, Y);
578
+ const s = (h) => ge(e.validations, h), c = Le(), i = c.apiBase, r = m(null), u = m("");
579
+ function g(h, I, x) {
580
+ return h.replace(/{WorkflowId}/g, I).replace(/{ClassName}/g, x);
581
581
  }
582
- const g = ee(() => {
582
+ const _ = Z(() => {
583
583
  if (e.config.uploadURL) {
584
584
  const h = i + e.config.uploadURL;
585
- return m(h, u.value, e.className);
585
+ return g(h, u.value, e.className);
586
586
  }
587
587
  return "";
588
588
  }), b = (h) => {
589
589
  h.stopPropagation(), r.value.submit();
590
590
  };
591
591
  function p(h) {
592
- const { file: K, name: Y } = h, F = Y ?? K.name;
593
- return new Promise((A, x) => {
592
+ const { file: I, name: x } = h, V = x ?? I.name;
593
+ return new Promise((y, N) => {
594
594
  ct.confirm({
595
595
  title: "Confirm Delete",
596
- content: `Are you sure you want to delete ${F}?`,
596
+ content: `Are you sure you want to delete ${V}?`,
597
597
  async onOk() {
598
598
  if (h.status !== "init" && e.config.removeFile)
599
- return await e.config.removeFile(h.uid), A(!0);
600
- A(!0);
599
+ return await e.config.removeFile(h.uid), y(!0);
600
+ y(!0);
601
601
  },
602
- onCancel: () => x("cancel")
602
+ onCancel: () => N("cancel")
603
603
  });
604
604
  });
605
605
  }
606
- const y = _(null), f = _(null), L = (h) => {
607
- y.value && (y.value(h), y.value = null, f.value = null);
608
- }, W = (h) => {
609
- f.value && (f.value(h), y.value = null, f.value = null);
606
+ const w = m(null), f = m(null), L = (h) => {
607
+ w.value && (w.value(h), w.value = null, f.value = null);
608
+ }, Y = (h) => {
609
+ f.value && (f.value(h), w.value = null, f.value = null);
610
+ }, z = m([]), te = (h) => {
611
+ z.value = h.filter((I) => I.status === "init");
610
612
  };
611
613
  n({
612
614
  submit(h) {
613
- return new Promise((K, Y) => {
614
- r.value ? (e.config.uploadURL && (u.value = h), y.value = K, f.value = Y, ot(() => {
615
+ return new Promise((I, x) => {
616
+ r.value ? (e.config.uploadURL && (u.value = h), w.value = I, f.value = x, z.value.length ? ot(() => {
615
617
  r.value?.submit();
616
- })) : K(h);
618
+ }) : I(h)) : I(h);
617
619
  });
618
620
  },
619
621
  validate() {
@@ -621,13 +623,13 @@ const Qt = /* @__PURE__ */ Q(Jt, [["render", Xt], ["__file", "Cascader.vue"]]),
621
623
  return o("error", h.res ? "" : h.errorMessages), h.res;
622
624
  }
623
625
  });
624
- const q = { props: e, emits: o, headers: l, validate: s, config: c, ApiBase: i, uploadRef: r, id: u, replaceIdAndClassName: m, action: g, submit: b, onBeforeRemove: p, uploadPromiseResolve: y, uploadPromiseReject: f, handleUploadSuccess: L, handleUploadError: W };
625
- return Object.defineProperty(q, "__isScriptSetup", { enumerable: !1, value: !0 }), q;
626
+ const oe = { props: e, emits: o, headers: l, validate: s, config: c, ApiBase: i, uploadRef: r, id: u, replaceIdAndClassName: g, action: _, submit: b, onBeforeRemove: p, uploadPromiseResolve: w, uploadPromiseReject: f, handleUploadSuccess: L, handleUploadError: Y, readyFiles: z, onChange: te };
627
+ return Object.defineProperty(oe, "__isScriptSetup", { enumerable: !1, value: !0 }), oe;
626
628
  }
627
629
  });
628
630
  function en(t, n, a, e, o, l) {
629
631
  const s = S("a-button"), c = S("a-upload");
630
- return d(), U(c, {
632
+ return d(), P(c, {
631
633
  ref: "uploadRef",
632
634
  "default-file-list": e.props.config.files,
633
635
  action: e.action,
@@ -635,15 +637,16 @@ function en(t, n, a, e, o, l) {
635
637
  "auto-upload": !1,
636
638
  name: "files",
637
639
  headers: e.headers,
640
+ onChange: e.onChange,
638
641
  onBeforeRemove: e.onBeforeRemove,
639
642
  onSuccess: e.handleUploadSuccess,
640
643
  onError: e.handleUploadError
641
644
  }, {
642
645
  "start-icon": v(() => n[0] || (n[0] = [])),
643
646
  "upload-button": v(() => [
644
- P(s, { type: "primary" }, {
647
+ D(s, { type: "primary" }, {
645
648
  default: v(() => n[1] || (n[1] = [
646
- X("Select File", -1)
649
+ J("Select File", -1)
647
650
  ])),
648
651
  _: 1,
649
652
  __: [1]
@@ -652,7 +655,7 @@ function en(t, n, a, e, o, l) {
652
655
  _: 1
653
656
  }, 8, ["default-file-list", "action", "limit", "headers"]);
654
657
  }
655
- const tn = /* @__PURE__ */ Q(Zt, [["render", en], ["__file", "FileUpload.vue"]]), nn = /* @__PURE__ */ G({
658
+ const tn = /* @__PURE__ */ X(Zt, [["render", en], ["__file", "FileUpload.vue"]]), nn = /* @__PURE__ */ q({
656
659
  __name: "TextArea",
657
660
  props: {
658
661
  fieldKey: {},
@@ -669,8 +672,8 @@ const tn = /* @__PURE__ */ Q(Zt, [["render", en], ["__file", "FileUpload.vue"]])
669
672
  }, c = (r) => {
670
673
  o("update:modelValue", r);
671
674
  const u = l(r);
672
- o("error", u.res ? "" : u.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((m) => {
673
- m.event === "change" && o(m.event, m.handlerName, r);
675
+ o("error", u.res ? "" : u.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((g) => {
676
+ g.event === "change" && o(g.event, g.handlerName, r);
674
677
  });
675
678
  };
676
679
  n({
@@ -685,7 +688,7 @@ const tn = /* @__PURE__ */ Q(Zt, [["render", en], ["__file", "FileUpload.vue"]])
685
688
  });
686
689
  function on(t, n, a, e, o, l) {
687
690
  const s = S("ATextarea");
688
- return d(), U(s, {
691
+ return d(), P(s, {
689
692
  "model-value": e.props.modelValue,
690
693
  placeholder: "Please enter something",
691
694
  "allow-clear": "",
@@ -694,7 +697,7 @@ function on(t, n, a, e, o, l) {
694
697
  onChange: e.changeHandler
695
698
  }, null, 8, ["model-value", "disabled"]);
696
699
  }
697
- const an = /* @__PURE__ */ Q(nn, [["render", on], ["__file", "TextArea.vue"]]), rn = /* @__PURE__ */ G({
700
+ const an = /* @__PURE__ */ X(nn, [["render", on], ["__file", "TextArea.vue"]]), rn = /* @__PURE__ */ q({
698
701
  __name: "CheckBox",
699
702
  props: /* @__PURE__ */ ie({
700
703
  fieldKey: {},
@@ -711,8 +714,8 @@ const an = /* @__PURE__ */ Q(nn, [["render", on], ["__file", "TextArea.vue"]]),
711
714
  setup(t, { expose: n, emit: a }) {
712
715
  const e = t, o = a, l = ye(t, "modelValue"), s = (r) => ge(e.validations, r), c = (r) => {
713
716
  const u = s(r);
714
- o("error", u.res ? "" : u.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((m) => {
715
- m.event === "change" && o(m.event, m.handlerName, r);
717
+ o("error", u.res ? "" : u.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((g) => {
718
+ g.event === "change" && o(g.event, g.handlerName, r);
716
719
  });
717
720
  };
718
721
  n({
@@ -727,7 +730,7 @@ const an = /* @__PURE__ */ Q(nn, [["render", on], ["__file", "TextArea.vue"]]),
727
730
  });
728
731
  function sn(t, n, a, e, o, l) {
729
732
  const s = S("ACheckbox");
730
- return d(), U(s, {
733
+ return d(), P(s, {
731
734
  modelValue: e.model,
732
735
  "onUpdate:modelValue": n[0] || (n[0] = (c) => e.model = c),
733
736
  clearable: "",
@@ -735,13 +738,13 @@ function sn(t, n, a, e, o, l) {
735
738
  onChange: e.changeHandler
736
739
  }, {
737
740
  default: v(() => n[1] || (n[1] = [
738
- X("Yes", -1)
741
+ J("Yes", -1)
739
742
  ])),
740
743
  _: 1,
741
744
  __: [1]
742
745
  }, 8, ["modelValue", "disabled"]);
743
746
  }
744
- const ln = /* @__PURE__ */ Q(rn, [["render", sn], ["__file", "CheckBox.vue"]]), cn = /* @__PURE__ */ G({
747
+ const ln = /* @__PURE__ */ X(rn, [["render", sn], ["__file", "CheckBox.vue"]]), cn = /* @__PURE__ */ q({
745
748
  __name: "index",
746
749
  props: /* @__PURE__ */ ie({
747
750
  config: {},
@@ -757,7 +760,7 @@ const ln = /* @__PURE__ */ Q(rn, [["render", sn], ["__file", "CheckBox.vue"]]),
757
760
  }),
758
761
  emits: /* @__PURE__ */ ie(["update:modelValue", "change", "error"], ["update:modelValue"]),
759
762
  setup(t, { expose: n, emit: a }) {
760
- const e = t, o = a, l = ye(t, "modelValue"), s = Ne("widgetRef"), c = ee(() => {
763
+ const e = t, o = a, l = ye(t, "modelValue"), s = Ne("widgetRef"), c = Z(() => {
761
764
  switch (e.config?.widget?.widget) {
762
765
  case "TextBox":
763
766
  return Ke;
@@ -778,12 +781,12 @@ const ln = /* @__PURE__ */ Q(rn, [["render", sn], ["__file", "CheckBox.vue"]]),
778
781
  default:
779
782
  return Ke;
780
783
  }
781
- }), i = _(""), r = (b) => {
784
+ }), i = m(""), r = (b) => {
782
785
  i.value = b;
783
786
  }, u = (b, p) => {
784
787
  o("change", b, p);
785
788
  };
786
- function m() {
789
+ function g() {
787
790
  return e.config?.widget?.widget === "File";
788
791
  }
789
792
  n({
@@ -791,7 +794,7 @@ const ln = /* @__PURE__ */ Q(rn, [["render", sn], ["__file", "CheckBox.vue"]]),
791
794
  return e.config?.widget?.widget === "File";
792
795
  },
793
796
  submit(b) {
794
- return m() ? s.value.submit(b) : Promise.resolve(b);
797
+ return g() ? s.value.submit(b) : Promise.resolve(b);
795
798
  },
796
799
  validate() {
797
800
  return s.value?.validate();
@@ -800,8 +803,8 @@ const ln = /* @__PURE__ */ Q(rn, [["render", sn], ["__file", "CheckBox.vue"]]),
800
803
  return e?.config?.widget?.title;
801
804
  }
802
805
  });
803
- const g = { props: e, emits: o, model: l, widgetRef: s, curComp: c, errMsg: i, errHandler: r, changeHandler: u, isFileUpload: m };
804
- return Object.defineProperty(g, "__isScriptSetup", { enumerable: !1, value: !0 }), g;
806
+ const _ = { props: e, emits: o, model: l, widgetRef: s, curComp: c, errMsg: i, errHandler: r, changeHandler: u, isFileUpload: g };
807
+ return Object.defineProperty(_, "__isScriptSetup", { enumerable: !1, value: !0 }), _;
805
808
  }
806
809
  }), dn = { class: "title" }, un = {
807
810
  key: 0,
@@ -812,12 +815,12 @@ const ln = /* @__PURE__ */ Q(rn, [["render", sn], ["__file", "CheckBox.vue"]]),
812
815
  };
813
816
  function pn(t, n, a, e, o, l) {
814
817
  return d(), C("div", null, [
815
- V("div", dn, [
816
- X(Z(e.props?.config?.widget?.title) + " ", 1),
818
+ A("div", dn, [
819
+ J(Q(e.props?.config?.widget?.title) + " ", 1),
817
820
  e.props.config.validations.length ? (d(), C("span", un, "*")) : se("", !0)
818
821
  ]),
819
- V("div", null, [
820
- (d(), U(He(e.curComp), {
822
+ A("div", null, [
823
+ (d(), P(He(e.curComp), {
821
824
  ref: "widgetRef",
822
825
  modelValue: e.model,
823
826
  "onUpdate:modelValue": n[0] || (n[0] = (s) => e.model = s),
@@ -829,11 +832,11 @@ function pn(t, n, a, e, o, l) {
829
832
  onError: e.errHandler,
830
833
  onChange: e.changeHandler
831
834
  }, null, 40, ["modelValue", "field-key", "config", "validations", "triggers", "class-name"])),
832
- e.errMsg.length > 0 ? (d(), C("div", fn, Z(e.errMsg), 1)) : se("", !0)
835
+ e.errMsg.length > 0 ? (d(), C("div", fn, Q(e.errMsg), 1)) : se("", !0)
833
836
  ])
834
837
  ]);
835
838
  }
836
- const Fe = /* @__PURE__ */ Q(cn, [["render", pn], ["__scopeId", "data-v-4bc9e33b"], ["__file", "index.vue"]]), mn = /* @__PURE__ */ G({
839
+ const Be = /* @__PURE__ */ X(cn, [["render", pn], ["__scopeId", "data-v-4bc9e33b"], ["__file", "index.vue"]]), mn = /* @__PURE__ */ q({
837
840
  __name: "SubmitButton",
838
841
  props: {
839
842
  url: {},
@@ -853,18 +856,18 @@ const Fe = /* @__PURE__ */ Q(cn, [["render", pn], ["__scopeId", "data-v-4bc9e33b
853
856
  });
854
857
  function gn(t, n, a, e, o, l) {
855
858
  const s = S("AButton");
856
- return d(), U(s, {
859
+ return d(), P(s, {
857
860
  loading: a.loading,
858
861
  type: "primary",
859
862
  onClick: e.clickHandler
860
863
  }, {
861
864
  default: v(() => [
862
- ce(t.$slots, "default")
865
+ le(t.$slots, "default")
863
866
  ]),
864
867
  _: 3
865
868
  }, 8, ["loading"]);
866
869
  }
867
- const _n = /* @__PURE__ */ Q(mn, [["render", gn], ["__file", "SubmitButton.vue"]]), vn = /* @__PURE__ */ G({
870
+ const _n = /* @__PURE__ */ X(mn, [["render", gn], ["__file", "SubmitButton.vue"]]), vn = /* @__PURE__ */ q({
868
871
  __name: "DetailLink",
869
872
  props: {
870
873
  url: {},
@@ -884,14 +887,14 @@ const _n = /* @__PURE__ */ Q(mn, [["render", gn], ["__file", "SubmitButton.vue"]
884
887
  });
885
888
  function bn(t, n, a, e, o, l) {
886
889
  const s = S("ALink");
887
- return d(), U(s, { onClick: e.clickHandler }, {
890
+ return d(), P(s, { onClick: e.clickHandler }, {
888
891
  default: v(() => [
889
- ce(t.$slots, "default")
892
+ le(t.$slots, "default")
890
893
  ]),
891
894
  _: 3
892
895
  });
893
896
  }
894
- const yn = /* @__PURE__ */ Q(vn, [["render", bn], ["__file", "DetailLink.vue"]]), wn = /* @__PURE__ */ G({
897
+ const yn = /* @__PURE__ */ X(vn, [["render", bn], ["__file", "DetailLink.vue"]]), wn = /* @__PURE__ */ q({
895
898
  __name: "index",
896
899
  props: {
897
900
  config: {},
@@ -901,10 +904,10 @@ const yn = /* @__PURE__ */ Q(vn, [["render", bn], ["__file", "DetailLink.vue"]])
901
904
  setup(t, { expose: n, emit: a }) {
902
905
  n();
903
906
  const e = t, o = a;
904
- function l(u, m) {
905
- o("click", e.config.widget, u, m, e.config.title);
907
+ function l(u, g) {
908
+ o("click", e.config.widget, u, g, e.config.title);
906
909
  }
907
- const s = ee(() => {
910
+ const s = Z(() => {
908
911
  switch (e.config.location) {
909
912
  case "InOperation":
910
913
  return _n;
@@ -912,24 +915,24 @@ const yn = /* @__PURE__ */ Q(vn, [["render", bn], ["__file", "DetailLink.vue"]])
912
915
  default:
913
916
  return yn;
914
917
  }
915
- }), c = ee(() => e.config.widget === te.Submit ? e.config.requestUrl ?? "" : e.config.widget === te.Link ? e.config.redirectUrl ?? "" : ""), i = ee(() => e.config.redirectType ?? "Details"), r = { props: e, emits: o, clickHandler: l, curComp: s, curUrl: c, redirectType: i };
918
+ }), c = Z(() => e.config.widget === ee.Submit ? e.config.requestUrl ?? "" : e.config.widget === ee.Link ? e.config.redirectUrl ?? "" : ""), i = Z(() => e.config.redirectType ?? "Details"), r = { props: e, emits: o, clickHandler: l, curComp: s, curUrl: c, redirectType: i };
916
919
  return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
917
920
  }
918
921
  });
919
922
  function hn(t, n, a, e, o, l) {
920
- return d(), U(He(e.curComp), {
923
+ return d(), P(He(e.curComp), {
921
924
  url: e.curUrl,
922
925
  "redirect-type": e.redirectType,
923
926
  loading: a.loading,
924
927
  onClick: e.clickHandler
925
928
  }, {
926
929
  default: v(() => [
927
- X(Z(e.props.config.title), 1)
930
+ J(Q(e.props.config.title), 1)
928
931
  ]),
929
932
  _: 1
930
933
  }, 8, ["url", "redirect-type", "loading"]);
931
934
  }
932
- const Ce = /* @__PURE__ */ Q(wn, [["render", hn], ["__file", "index.vue"]]), Qe = Symbol("library-router");
935
+ const Ce = /* @__PURE__ */ X(wn, [["render", hn], ["__file", "index.vue"]]), Qe = Symbol("library-router");
933
936
  function Se() {
934
937
  const t = me(Qe, null);
935
938
  return t || dt();
@@ -946,7 +949,7 @@ function xe() {
946
949
  function Ve() {
947
950
  return me(tt, null);
948
951
  }
949
- const Cn = /* @__PURE__ */ G({
952
+ const Cn = /* @__PURE__ */ q({
950
953
  __name: "TopBar",
951
954
  props: {
952
955
  title: {},
@@ -962,23 +965,23 @@ const Cn = /* @__PURE__ */ G({
962
965
  function Un(t, n, a, e, o, l) {
963
966
  const s = S("a-avatar"), c = S("a-popover");
964
967
  return d(), C("div", Sn, [
965
- V("div", xn, [
966
- V("div", Vn, Z(a.title), 1),
967
- V("div", An, Z(a.subTitle), 1)
968
+ A("div", xn, [
969
+ A("div", Vn, Q(a.title), 1),
970
+ A("div", An, Q(a.subTitle), 1)
968
971
  ]),
969
- V("div", In, [
970
- P(c, { trigger: "click" }, {
972
+ A("div", In, [
973
+ D(c, { trigger: "click" }, {
971
974
  content: v(() => [
972
- V("div", Tn, Z(a.email), 1)
975
+ A("div", Tn, Q(a.email), 1)
973
976
  ]),
974
977
  default: v(() => [
975
- P(s, {
978
+ D(s, {
976
979
  size: 48,
977
980
  autoFixFontSize: "",
978
981
  style: { cursor: "pointer", background: "#165DFF", color: "#fff" }
979
982
  }, {
980
983
  default: v(() => [
981
- X(Z(a.email.charAt(0).toUpperCase()), 1)
984
+ J(Q(a.email.charAt(0).toUpperCase()), 1)
982
985
  ]),
983
986
  _: 1
984
987
  })
@@ -988,9 +991,9 @@ function Un(t, n, a, e, o, l) {
988
991
  ])
989
992
  ]);
990
993
  }
991
- const Ae = /* @__PURE__ */ Q(Cn, [["render", Un], ["__scopeId", "data-v-c0457235"], ["__file", "TopBar.vue"]]);
994
+ const Ae = /* @__PURE__ */ X(Cn, [["render", Un], ["__scopeId", "data-v-c0457235"], ["__file", "TopBar.vue"]]);
992
995
  function Me(t) {
993
- const n = Re(), a = [];
996
+ const n = Le(), a = [];
994
997
  if (n.fieldsGroup) {
995
998
  n.fieldsGroup.forEach((l) => {
996
999
  const s = l.keys.map((c) => t.find((i) => i.fieldKey === c)).filter(Boolean);
@@ -1000,14 +1003,14 @@ function Me(t) {
1000
1003
  return o.length && a.push({ name: "Previous Grading (if applicable)", fields: o }), a;
1001
1004
  }
1002
1005
  }
1003
- const Pn = /* @__PURE__ */ G({
1006
+ const Pn = /* @__PURE__ */ q({
1004
1007
  __name: "CreateView",
1005
1008
  props: {
1006
1009
  className: {}
1007
1010
  },
1008
1011
  setup(t, { expose: n }) {
1009
1012
  n();
1010
- const a = xe(), e = Ve(), o = Se(), l = je(), s = Ne("dataWidgets"), c = pe(), i = t, r = _({
1013
+ const a = xe(), e = Ve(), o = Se(), l = je(), s = Ne("dataWidgets"), c = pe(), i = t, r = m({
1011
1014
  pageType: "",
1012
1015
  fields: {},
1013
1016
  globalValidations: [],
@@ -1015,103 +1018,105 @@ const Pn = /* @__PURE__ */ G({
1015
1018
  title: "",
1016
1019
  subTitle: ""
1017
1020
  }
1018
- }), u = _([]), m = _({});
1019
- function g(A) {
1020
- return A ? Object.entries(A).map(([k, H]) => ({
1021
- fieldKey: k,
1022
- ...H
1023
- })).filter((k) => k.widget && k.widget.widget !== "Hidden").filter((k) => !h.value.includes(k.fieldKey)) : [];
1021
+ }), u = m([]), g = m({});
1022
+ function _(x) {
1023
+ return x ? Object.entries(x).map(([y, N]) => ({
1024
+ fieldKey: y,
1025
+ ...N
1026
+ })).filter((y) => y.widget && y.widget.widget !== "Hidden").filter((y) => !te.value.includes(y.fieldKey)) : [];
1024
1027
  }
1025
- function b(A) {
1026
- return A ? Object.entries(A).filter(([k, H]) => H.dependent).reduce((k, [H, M]) => (k[H] = M.dependent, k), {}) : [];
1028
+ function b(x) {
1029
+ return x ? Object.entries(x).filter(([y, N]) => N.dependent).reduce((y, [N, M]) => (y[N] = M.dependent, y), {}) : [];
1027
1030
  }
1028
- const p = ee(() => r.value?.actions ? [...r.value.actions].reverse() : []), y = Le({}), f = _(!1);
1029
- de(async () => {
1031
+ const p = Z(() => r.value?.actions ? [...r.value.actions].reverse() : []), w = Fe({}), f = m(!1);
1032
+ ce(async () => {
1030
1033
  f.value = !0, r.value = await ke(fe.Create, i.className, {
1031
1034
  svrStore: e,
1032
1035
  bpmStore: a
1033
- }), u.value = g(r.value.fields), m.value = b(r.value.fields);
1034
- for (const A in r.value.fields) {
1035
- if (r.value.fields[A].widget?.widget === "File") {
1036
- const x = u.value.find((k) => k.fieldKey === A);
1037
- x && x.widget && (x.widget.files = []);
1036
+ }), u.value = _(r.value.fields), g.value = b(r.value.fields);
1037
+ for (const x in r.value.fields) {
1038
+ if (r.value.fields[x].widget?.widget === "File") {
1039
+ const V = u.value.find((y) => y.fieldKey === x);
1040
+ V && V.widget && (V.widget.files = []);
1038
1041
  }
1039
- y[A] = r.value.fields[A].modelValue;
1042
+ w[x] = r.value.fields[x].modelValue;
1040
1043
  }
1041
1044
  f.value = !1;
1042
1045
  });
1043
1046
  function L() {
1044
1047
  return e()?.userInfo?.email_address ?? "";
1045
1048
  }
1046
- async function W(A, x, k, H, M) {
1047
- switch (x) {
1048
- case te.Submit:
1049
- let oe = !0;
1050
- if (s.value?.forEach((ae) => {
1051
- ae?.validate && (ae.validate() || (oe = !1));
1052
- }), !oe) {
1049
+ async function Y(x, V, y, N, M) {
1050
+ switch (V) {
1051
+ case ee.Submit:
1052
+ let O = !0;
1053
+ if (s.value?.forEach((G) => {
1054
+ G?.validate && (G.validate() || (O = !1));
1055
+ }), !O) {
1053
1056
  c?.appContext.config.globalProperties.$message.error("form validation failed, please check the input fields");
1054
1057
  return;
1055
1058
  }
1056
1059
  f.value = !0;
1057
- const J = await St(i.className, { ...y, ...m.value }, k);
1058
- f.value = !1;
1059
- const le = s.value?.map((ae) => ae?.submit ? ae.submit(J.toString()) : Promise.resolve()) || [];
1060
- await Promise.all(le), c?.appContext.config.globalProperties.$notification.success(`Your grading request has been submitted, ID is ${J.toString()}.`), o.push({ name: "Details", params: { workflowId: J.toString() } });
1060
+ try {
1061
+ const G = await St(i.className, { ...w, ...g.value }, y), ae = s.value?.map((de) => de?.submit ? de.submit(G.toString()) : Promise.resolve()) || [];
1062
+ await Promise.all(ae), f.value = !1, c?.appContext.config.globalProperties.$notification.success(`Your grading request has been submitted, ID is ${G.toString()}.`), o.push({ name: "Details", params: { workflowId: G.toString() } });
1063
+ } catch {
1064
+ c?.appContext.config.globalProperties.$notification.error("Failed to submit your grading request"), f.value = !1;
1065
+ }
1061
1066
  break;
1062
- case te.Link:
1067
+ case ee.Link:
1063
1068
  try {
1064
- await l[A.eventName || ""]?.(y, h), o.push({ name: H, params: { className: i.className } });
1065
- } catch (ae) {
1066
- console.error("Error in link action trigger:", ae);
1069
+ await l[x.eventName || ""]?.(w, te), o.push({ name: N, params: { className: i.className } });
1070
+ } catch (G) {
1071
+ console.error("Error in link action trigger:", G);
1067
1072
  }
1068
1073
  break;
1069
1074
  default:
1070
- console.warn("Unknown action type:", x);
1075
+ console.warn("Unknown action type:", V);
1071
1076
  }
1072
1077
  }
1073
- const q = [
1078
+ const z = [
1074
1079
  "jobScpope",
1075
1080
  "currentWorkdayId",
1076
1081
  "originalGrade",
1077
1082
  "jobTitlePrevious",
1078
1083
  "jobAttachmentPrevious",
1079
1084
  "positionId"
1080
- ], h = _(q);
1081
- function K(A, x) {
1082
- l[A]?.(x, h), r.value && (u.value = g(r.value.fields));
1085
+ ], te = m(z);
1086
+ function oe(x, V) {
1087
+ l[x]?.(V, te), r.value && (u.value = _(r.value.fields));
1083
1088
  }
1084
- const Y = ee(() => Me(u.value)), F = { bpmStore: a, svrStore: e, router: o, triggers: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: u, _dependent: m, genField: g, genDependentField: b, reversedActions: p, _data: y, loading: f, getApproverEmail: L, clickHandler: W, newHiddenFields: q, hiddenFields: h, changeHandler: K, groupedFields: Y, DataWidgets: Fe, ActionButton: Ce, TopBar: Ae };
1085
- return Object.defineProperty(F, "__isScriptSetup", { enumerable: !1, value: !0 }), F;
1089
+ const h = Z(() => Me(u.value)), I = { bpmStore: a, svrStore: e, router: o, triggers: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: u, _dependent: g, genField: _, genDependentField: b, reversedActions: p, _data: w, loading: f, getApproverEmail: L, clickHandler: Y, newHiddenFields: z, hiddenFields: te, changeHandler: oe, groupedFields: h, DataWidgets: Be, ActionButton: Ce, TopBar: Ae };
1090
+ return Object.defineProperty(I, "__isScriptSetup", { enumerable: !1, value: !0 }), I;
1086
1091
  }
1087
- }), Dn = { class: "page-container" }, Nn = { class: "page-body" }, Hn = { class: "form-card" }, Ln = { class: "form-fields-vertical" }, Rn = { class: "form-fields" }, Bn = {
1092
+ }), Dn = { class: "page-container" }, Nn = { class: "page-body" }, Hn = { class: "form-card" }, Fn = { class: "form-fields-vertical" }, Ln = { class: "form-fields" }, Rn = {
1088
1093
  key: 0,
1089
1094
  class: "form-content"
1090
- }, Fn = { class: "page-footer" }, jn = { class: "action-container" }, Mn = { class: "action-buttons" };
1095
+ }, Bn = { class: "page-footer" }, jn = { class: "action-container" }, Mn = { class: "action-buttons" };
1091
1096
  function On(t, n, a, e, o, l) {
1092
1097
  const s = S("a-card"), c = S("a-spin");
1093
1098
  return d(), C("div", Dn, [
1094
- P(e.TopBar, {
1099
+ D(e.TopBar, {
1095
1100
  title: e.pageData.banner.title,
1096
1101
  subTitle: e.pageData.banner.subTitle,
1097
1102
  email: e.getApproverEmail()
1098
1103
  }, null, 8, ["title", "subTitle", "email"]),
1099
- V("div", Nn, [
1100
- P(c, {
1104
+ A("div", Nn, [
1105
+ D(c, {
1101
1106
  loading: e.loading,
1102
1107
  class: "form-container"
1103
1108
  }, {
1104
1109
  default: v(() => [
1105
- V("div", Hn, [
1106
- V("div", Ln, [
1107
- (d(!0), C(j, null, E(e.groupedFields, (i) => (d(), U(s, {
1110
+ A("div", Hn, [
1111
+ A("div", Fn, [
1112
+ (d(!0), C(j, null, $(e.groupedFields, (i) => (d(), P(s, {
1108
1113
  key: i.name,
1109
1114
  title: i.name,
1110
1115
  style: { "margin-bottom": "24px" }
1111
1116
  }, {
1112
1117
  default: v(() => [
1113
- V("div", Rn, [
1114
- (d(!0), C(j, null, E(i.fields, (r) => (d(), U(e.DataWidgets, {
1118
+ A("div", Ln, [
1119
+ (d(!0), C(j, null, $(i.fields, (r) => (d(), P(e.DataWidgets, {
1115
1120
  key: r.fieldKey,
1116
1121
  ref_for: !0,
1117
1122
  ref: "dataWidgets",
@@ -1128,19 +1133,19 @@ function On(t, n, a, e, o, l) {
1128
1133
  _: 2
1129
1134
  }, 1032, ["title"]))), 128))
1130
1135
  ]),
1131
- t.$slots.content ? (d(), C("div", Bn, [
1132
- ce(t.$slots, "content", {}, void 0, !0)
1136
+ t.$slots.content ? (d(), C("div", Rn, [
1137
+ le(t.$slots, "content", {}, void 0, !0)
1133
1138
  ])) : se("", !0)
1134
1139
  ])
1135
1140
  ]),
1136
1141
  _: 3
1137
1142
  }, 8, ["loading"])
1138
1143
  ]),
1139
- V("div", Fn, [
1140
- V("div", jn, [
1141
- ce(t.$slots, "action", {}, void 0, !0),
1142
- V("div", Mn, [
1143
- (d(!0), C(j, null, E(e.reversedActions, (i) => (d(), U(e.ActionButton, {
1144
+ A("div", Bn, [
1145
+ A("div", jn, [
1146
+ le(t.$slots, "action", {}, void 0, !0),
1147
+ A("div", Mn, [
1148
+ (d(!0), C(j, null, $(e.reversedActions, (i) => (d(), P(e.ActionButton, {
1144
1149
  key: i.Title,
1145
1150
  loading: e.loading,
1146
1151
  config: i,
@@ -1152,7 +1157,7 @@ function On(t, n, a, e, o, l) {
1152
1157
  ])
1153
1158
  ]);
1154
1159
  }
1155
- const En = /* @__PURE__ */ Q(Pn, [["render", On], ["__scopeId", "data-v-531a10e7"], ["__file", "CreateView.vue"]]), $n = /* @__PURE__ */ G({
1160
+ const En = /* @__PURE__ */ X(Pn, [["render", On], ["__scopeId", "data-v-7b45a965"], ["__file", "CreateView.vue"]]), $n = /* @__PURE__ */ q({
1156
1161
  __name: "UpdateView",
1157
1162
  props: {
1158
1163
  className: {},
@@ -1160,7 +1165,7 @@ const En = /* @__PURE__ */ Q(Pn, [["render", On], ["__scopeId", "data-v-531a10e7
1160
1165
  },
1161
1166
  setup(t, { expose: n }) {
1162
1167
  n();
1163
- const a = Se(), e = je(), o = Ve(), l = xe(), s = Ne("dataWidgets"), c = pe(), i = t, r = _({
1168
+ const a = Se(), e = je(), o = Ve(), l = xe(), s = Ne("dataWidgets"), c = pe(), i = t, r = m({
1164
1169
  pageType: "",
1165
1170
  fields: {},
1166
1171
  globalValidations: [],
@@ -1168,73 +1173,77 @@ const En = /* @__PURE__ */ Q(Pn, [["render", On], ["__scopeId", "data-v-531a10e7
1168
1173
  title: "",
1169
1174
  subTitle: ""
1170
1175
  }
1171
- }), u = _([]), m = _({});
1172
- function g(F) {
1173
- return F ? Object.entries(F).map(([x, k]) => ({
1174
- fieldKey: x,
1175
- ...k
1176
- })).filter((x) => x.widget && x.widget.widget !== "Hidden").filter((x) => !q.value.includes(x.fieldKey)) : [];
1176
+ }), u = m([]), g = m({});
1177
+ function _(I) {
1178
+ return I ? Object.entries(I).map(([V, y]) => ({
1179
+ fieldKey: V,
1180
+ ...y
1181
+ })).filter((V) => V.widget && V.widget.widget !== "Hidden").filter((V) => !z.value.includes(V.fieldKey)) : [];
1177
1182
  }
1178
- function b(F) {
1179
- return F ? Object.entries(F).filter(([x, k]) => k.dependent).reduce((x, [k, H]) => (x[k] = H.dependent, x), {}) : [];
1183
+ function b(I) {
1184
+ return I ? Object.entries(I).filter(([V, y]) => y.dependent).reduce((V, [y, N]) => (V[y] = N.dependent, V), {}) : [];
1180
1185
  }
1181
- const p = ee(() => r.value?.actions ? [...r.value.actions].reverse() : []), y = Le({}), f = _(!1);
1182
- de(async () => {
1186
+ const p = Z(() => r.value?.actions ? [...r.value.actions].reverse() : []), w = Fe({}), f = m(!1);
1187
+ ce(async () => {
1183
1188
  f.value = !0, r.value = await ke(fe.Update, i.className, {
1184
1189
  svrStore: o,
1185
1190
  bpmStore: l
1186
1191
  }, {
1187
1192
  workflowId: i.workflowId
1188
1193
  });
1189
- const F = await Je(fe.Update, i.className, { workflowId: i.workflowId, email: L() }), A = await Xe(i.className, i.workflowId);
1190
- r.value.actions = r.value.actions?.filter((k) => {
1191
- const H = F.find((M) => M.button === k.title);
1192
- return H ? H.isShow : !0;
1194
+ const I = await Je(fe.Update, i.className, { workflowId: i.workflowId, email: L() }), x = await Xe(i.className, i.workflowId);
1195
+ r.value.actions = r.value.actions?.filter((y) => {
1196
+ const N = I.find((M) => M.button === y.title);
1197
+ return N ? N.isShow : !0;
1193
1198
  });
1194
- const x = r.value.fields.requestType.modelValue;
1195
- e.Test?.(x, q), u.value = g(r.value.fields), m.value = b(r.value.fields);
1196
- for (const k in r.value.fields) {
1197
- if (r.value.fields[k].widget?.widget === "File") {
1198
- const H = u.value.find((M) => M.fieldKey === k);
1199
- H && H.widget && (H.widget.files = A[k] ?? [], H.widget.removeFile = (M) => Lt(i.className, M));
1199
+ const V = r.value.fields.requestType.modelValue;
1200
+ e.Test?.(V, z), u.value = _(r.value.fields), g.value = b(r.value.fields);
1201
+ for (const y in r.value.fields) {
1202
+ if (r.value.fields[y].widget?.widget === "File") {
1203
+ const N = u.value.find((M) => M.fieldKey === y);
1204
+ N && N.widget && (N.widget.files = x[y] ?? [], N.widget.removeFile = (M) => Ft(i.className, M));
1200
1205
  }
1201
- y[k] = r.value.fields[k].modelValue;
1206
+ w[y] = r.value.fields[y].modelValue;
1202
1207
  }
1203
1208
  f.value = !1;
1204
1209
  });
1205
1210
  function L() {
1206
1211
  return o()?.userInfo?.email_address ?? "";
1207
1212
  }
1208
- async function W(F, A, x, k, H) {
1209
- switch (A) {
1210
- case te.Submit:
1213
+ async function Y(I, x, V, y, N) {
1214
+ switch (x) {
1215
+ case ee.Submit:
1211
1216
  let M = !0;
1212
- if (s.value?.forEach((J) => {
1213
- J?.validate && (J.validate() || (M = !1));
1217
+ if (s.value?.forEach((O) => {
1218
+ O?.validate && (O.validate() || (M = !1));
1214
1219
  }), !M) {
1215
1220
  c?.appContext.config.globalProperties.$message.error("form validation failed, please check the input fields");
1216
1221
  return;
1217
1222
  }
1218
- f.value = !0, await xt(i.className, i.workflowId, { ...y, ...m.value }, x), f.value = !1;
1219
- const oe = s.value?.map((J) => J?.submit ? J.submit(i.workflowId) : Promise.resolve()) || [];
1220
- await Promise.all(oe), c?.appContext.config.globalProperties.$notification.success(`Your grading request has been submitted, ID is ${i.workflowId}.`);
1223
+ f.value = !0;
1224
+ try {
1225
+ const O = await xt(i.className, i.workflowId, { ...w, ...g.value }, V), G = s.value?.map((ae) => ae?.submit ? ae.submit(O.toString()) : Promise.resolve()) || [];
1226
+ await Promise.all(G), f.value = !1, c?.appContext.config.globalProperties.$notification.success(`Your grading request has been submitted, ID is ${O.toString()}.`);
1227
+ } catch {
1228
+ c?.appContext.config.globalProperties.$notification.error("Failed to submit your grading request"), f.value = !1;
1229
+ }
1221
1230
  break;
1222
- case te.Link:
1231
+ case ee.Link:
1223
1232
  try {
1224
- await e[F.eventName || ""]?.(y, q), a.push({ name: k, params: { className: i.className } });
1233
+ await e[I.eventName || ""]?.(w, z), a.push({ name: y, params: { className: i.className } });
1225
1234
  } catch {
1226
1235
  }
1227
1236
  break;
1228
1237
  default:
1229
- console.warn("Unknown action type:", A);
1238
+ console.warn("Unknown action type:", x);
1230
1239
  }
1231
1240
  }
1232
- const q = _([]);
1233
- function h(F, A) {
1234
- e[F]?.(A, q), r.value && (u.value = g(r.value.fields));
1241
+ const z = m([]);
1242
+ function te(I, x) {
1243
+ e[I]?.(x, z), r.value && (u.value = _(r.value.fields));
1235
1244
  }
1236
- const K = ee(() => Me(u.value)), Y = { router: a, triggers: e, svrStore: o, bpmStore: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: u, _dependent: m, genField: g, genDependentField: b, reversedActions: p, _data: y, loading: f, getApproverEmail: L, clickHandler: W, hiddenFields: q, changeHandler: h, groupedFields: K, DataWidgets: Fe, ActionButton: Ce, TopBar: Ae };
1237
- return Object.defineProperty(Y, "__isScriptSetup", { enumerable: !1, value: !0 }), Y;
1245
+ const oe = Z(() => Me(u.value)), h = { router: a, triggers: e, svrStore: o, bpmStore: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: u, _dependent: g, genField: _, genDependentField: b, reversedActions: p, _data: w, loading: f, getApproverEmail: L, clickHandler: Y, hiddenFields: z, changeHandler: te, groupedFields: oe, DataWidgets: Be, ActionButton: Ce, TopBar: Ae };
1246
+ return Object.defineProperty(h, "__isScriptSetup", { enumerable: !1, value: !0 }), h;
1238
1247
  }
1239
1248
  }), Kn = { class: "page-container" }, zn = { class: "page-body" }, Gn = { class: "form-card" }, Wn = { class: "form-fields-vertical" }, qn = { class: "form-fields" }, Yn = {
1240
1249
  key: 0,
@@ -1243,27 +1252,27 @@ const En = /* @__PURE__ */ Q(Pn, [["render", On], ["__scopeId", "data-v-531a10e7
1243
1252
  function Zn(t, n, a, e, o, l) {
1244
1253
  const s = S("a-card"), c = S("a-spin");
1245
1254
  return d(), C("div", Kn, [
1246
- P(e.TopBar, {
1255
+ D(e.TopBar, {
1247
1256
  title: e.pageData.banner.title,
1248
1257
  subTitle: e.pageData.banner.subTitle,
1249
1258
  email: e.getApproverEmail()
1250
1259
  }, null, 8, ["title", "subTitle", "email"]),
1251
- V("div", zn, [
1252
- P(c, {
1260
+ A("div", zn, [
1261
+ D(c, {
1253
1262
  loading: e.loading,
1254
1263
  class: "form-container"
1255
1264
  }, {
1256
1265
  default: v(() => [
1257
- V("div", Gn, [
1258
- V("div", Wn, [
1259
- (d(!0), C(j, null, E(e.groupedFields, (i) => (d(), U(s, {
1266
+ A("div", Gn, [
1267
+ A("div", Wn, [
1268
+ (d(!0), C(j, null, $(e.groupedFields, (i) => (d(), P(s, {
1260
1269
  key: i.name,
1261
1270
  title: i.name,
1262
1271
  style: { "margin-bottom": "24px" }
1263
1272
  }, {
1264
1273
  default: v(() => [
1265
- V("div", qn, [
1266
- (d(!0), C(j, null, E(i.fields, (r) => (d(), U(e.DataWidgets, {
1274
+ A("div", qn, [
1275
+ (d(!0), C(j, null, $(i.fields, (r) => (d(), P(e.DataWidgets, {
1267
1276
  key: r.fieldKey,
1268
1277
  ref_for: !0,
1269
1278
  ref: "dataWidgets",
@@ -1281,18 +1290,18 @@ function Zn(t, n, a, e, o, l) {
1281
1290
  }, 1032, ["title"]))), 128))
1282
1291
  ]),
1283
1292
  t.$slots.content ? (d(), C("div", Yn, [
1284
- ce(t.$slots, "content", {}, void 0, !0)
1293
+ le(t.$slots, "content", {}, void 0, !0)
1285
1294
  ])) : se("", !0)
1286
1295
  ])
1287
1296
  ]),
1288
1297
  _: 3
1289
1298
  }, 8, ["loading"])
1290
1299
  ]),
1291
- V("div", Jn, [
1292
- V("div", Xn, [
1293
- ce(t.$slots, "action", {}, void 0, !0),
1294
- V("div", Qn, [
1295
- (d(!0), C(j, null, E(e.reversedActions, (i) => (d(), U(e.ActionButton, {
1300
+ A("div", Jn, [
1301
+ A("div", Xn, [
1302
+ le(t.$slots, "action", {}, void 0, !0),
1303
+ A("div", Qn, [
1304
+ (d(!0), C(j, null, $(e.reversedActions, (i) => (d(), P(e.ActionButton, {
1296
1305
  key: i.Title,
1297
1306
  loading: e.loading,
1298
1307
  config: i,
@@ -1304,7 +1313,7 @@ function Zn(t, n, a, e, o, l) {
1304
1313
  ])
1305
1314
  ]);
1306
1315
  }
1307
- const eo = /* @__PURE__ */ Q($n, [["render", Zn], ["__scopeId", "data-v-0195d20b"], ["__file", "UpdateView.vue"]]), nt = Symbol("library-custom-comp");
1316
+ const eo = /* @__PURE__ */ X($n, [["render", Zn], ["__scopeId", "data-v-72d4c7ff"], ["__file", "UpdateView.vue"]]), nt = Symbol("library-custom-comp");
1308
1317
  function to() {
1309
1318
  return me(nt, null);
1310
1319
  }
@@ -1321,7 +1330,7 @@ var lo = (t, n) => {
1321
1330
  t[a] = e;
1322
1331
  return t;
1323
1332
  };
1324
- const co = G({
1333
+ const co = q({
1325
1334
  name: "IconDownload",
1326
1335
  props: {
1327
1336
  size: {
@@ -1348,7 +1357,7 @@ const co = G({
1348
1357
  click: (t) => !0
1349
1358
  },
1350
1359
  setup(t, { emit: n }) {
1351
- const a = ro("icon"), e = ee(() => [a, `${a}-download`, { [`${a}-spin`]: t.spin }]), o = ee(() => {
1360
+ const a = ro("icon"), e = Z(() => [a, `${a}-download`, { [`${a}-spin`]: t.spin }]), o = Z(() => {
1352
1361
  const s = {};
1353
1362
  return t.size && (s.fontSize = io(t.size) ? `${t.size}px` : t.size), t.rotate && (s.transform = `rotate(${t.rotate}deg)`), s;
1354
1363
  });
@@ -1374,7 +1383,7 @@ function fo(t, n, a, e, o, l) {
1374
1383
  "stroke-linejoin": t.strokeLinejoin,
1375
1384
  onClick: n[0] || (n[0] = (...s) => t.onClick && t.onClick(...s))
1376
1385
  }, n[1] || (n[1] = [
1377
- V("path", { d: "m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6" }, null, -1)
1386
+ A("path", { d: "m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6" }, null, -1)
1378
1387
  ]), 14, uo);
1379
1388
  }
1380
1389
  var Pe = /* @__PURE__ */ lo(co, [["render", fo]]);
@@ -1384,7 +1393,7 @@ const po = Object.assign(Pe, {
1384
1393
  const e = (a = n?.iconPrefix) != null ? a : "";
1385
1394
  t.component(e + Pe.name, Pe);
1386
1395
  }
1387
- }), mo = /* @__PURE__ */ G({
1396
+ }), mo = /* @__PURE__ */ q({
1388
1397
  __name: "DetailView",
1389
1398
  props: {
1390
1399
  className: {},
@@ -1392,7 +1401,7 @@ const po = Object.assign(Pe, {
1392
1401
  },
1393
1402
  setup(t, { expose: n }) {
1394
1403
  n();
1395
- const a = Ve(), e = xe(), o = je(), l = Se(), s = to(), c = pe(), i = t, r = _({
1404
+ const a = Ve(), e = xe(), o = je(), l = Se(), s = to(), c = pe(), i = t, r = m({
1396
1405
  pageType: "",
1397
1406
  fields: {},
1398
1407
  globalValidations: [],
@@ -1400,18 +1409,18 @@ const po = Object.assign(Pe, {
1400
1409
  title: "",
1401
1410
  subTitle: ""
1402
1411
  }
1403
- }), u = _([]);
1404
- function m(I) {
1405
- return I ? Object.entries(I).map(([O, T]) => (typeof T.modelValue == "boolean" ? T.fieldValue = T.modelValue ? "Yes" : "No" : T.fieldValue = T.modelValue, {
1406
- fieldKey: O,
1407
- ...T
1408
- })).filter((O) => O.widget && O.widget.widget !== "Hidden").filter((O) => !Y.value.includes(O.fieldKey)) : [];
1412
+ }), u = m([]);
1413
+ function g(T) {
1414
+ return T ? Object.entries(T).map(([E, U]) => (typeof U.modelValue == "boolean" ? U.fieldValue = U.modelValue ? "Yes" : "No" : U.fieldValue = U.modelValue, {
1415
+ fieldKey: E,
1416
+ ...U
1417
+ })).filter((E) => E.widget && E.widget.widget !== "Hidden").filter((E) => !h.value.includes(E.fieldKey)) : [];
1409
1418
  }
1410
- const g = ee(() => Me(u.value)), b = ee(() => r.value?.actions ? [...r.value.actions].reverse() : []), p = _(!0), y = (I, R) => {
1411
- const O = I.findIndex((T) => T.isCurrent);
1412
- return I.map((T, re) => {
1413
- const N = {
1414
- id: T.id,
1419
+ const _ = Z(() => Me(u.value)), b = Z(() => r.value?.actions ? [...r.value.actions].reverse() : []), p = m(!0), w = (T, R) => {
1420
+ const E = T.findIndex((U) => U.isCurrent);
1421
+ return T.map((U, re) => {
1422
+ const F = {
1423
+ id: U.id,
1415
1424
  title: "",
1416
1425
  proxy: "",
1417
1426
  sub: "",
@@ -1419,77 +1428,77 @@ const po = Object.assign(Pe, {
1419
1428
  status: 1,
1420
1429
  time: ""
1421
1430
  };
1422
- N.title = T.workflowProcessApprovers[0]?.name;
1423
- const _e = T.workflowProcessApprovers[T.workflowProcessApprovers.length - 1], we = T.workflowHistorys[T.workflowHistorys.length - 1], ve = we?.workflowHistoryApprovers[we?.workflowHistoryApprovers?.length - 1];
1424
- if (_e && ve && _e?.email?.toLowerCase() !== ve?.approverEmail?.toLowerCase() && (N.title = `${ve.name}`, N.proxy = `Proxy: ${_e.name}`), T.sort > 1 ? N.sub = "Approver Role: " + T.nodeName.replace("Submit", "").replace("Approve", "") : N.sub = "Submit Application", T.isCurrent && R !== -1)
1425
- N.desc = "In Approval", N.status = 1;
1431
+ F.title = U.workflowProcessApprovers[0]?.name;
1432
+ const _e = U.workflowProcessApprovers[U.workflowProcessApprovers.length - 1], we = U.workflowHistorys[U.workflowHistorys.length - 1], ve = we?.workflowHistoryApprovers[we?.workflowHistoryApprovers?.length - 1];
1433
+ if (_e && ve && _e?.email?.toLowerCase() !== ve?.approverEmail?.toLowerCase() && (F.title = `${ve.name}`, F.proxy = `Proxy: ${_e.name}`), U.sort > 1 ? F.sub = "Approver Role: " + U.nodeName.replace("Submit", "").replace("Approve", "") : F.sub = "Submit Application", U.isCurrent && R !== -1)
1434
+ F.desc = "In Approval", F.status = 1;
1426
1435
  else {
1427
- const ne = T.workflowHistorys[T.workflowHistorys.length - 1];
1436
+ const ne = U.workflowHistorys[U.workflowHistorys.length - 1];
1428
1437
  if (ne && ne.status === 100)
1429
- N.time = he(ne.takeActionAt, "yyyy-MM-dd hh:mm:ss"), N.status = 2, N.desc = "approve success!";
1438
+ F.time = he(ne.takeActionAt, "yyyy-MM-dd hh:mm:ss"), F.status = 2, F.desc = "approve success!";
1430
1439
  else if (ne && ne.status === 999)
1431
- N.time = he(ne.takeActionAt, "yyyy-MM-dd hh:mm:ss"), N.status = 0, N.desc = "approve reject!";
1440
+ F.time = he(ne.takeActionAt, "yyyy-MM-dd hh:mm:ss"), F.status = 0, F.desc = "approve reject!";
1432
1441
  else if (ne)
1433
- if (N.time = he(ne.takeActionAt, "yyyy-MM-dd hh:mm:ss"), T.sort === 1)
1434
- N.status = 2, N.desc = "";
1442
+ if (F.time = he(ne.takeActionAt, "yyyy-MM-dd hh:mm:ss"), U.sort === 1)
1443
+ F.status = 2, F.desc = "";
1435
1444
  else {
1436
1445
  const Oe = ne.workflowHistoryApprovers[0];
1437
- N.status = 3, N.desc = Oe?.reason ? `Rejected reason: ${Oe.reason}` : "Rejected";
1446
+ F.status = 3, F.desc = Oe?.reason ? `Rejected reason: ${Oe.reason}` : "Rejected";
1438
1447
  }
1439
- else re < O || O === -1 ? (N.status = 0, N.desc = "Skipped") : (N.status = 0, N.desc = "Pending Approval");
1448
+ else re < E || E === -1 ? (F.status = 0, F.desc = "Skipped") : (F.status = 0, F.desc = "Pending Approval");
1440
1449
  ne && ne.status;
1441
1450
  }
1442
- return N;
1451
+ return F;
1443
1452
  });
1444
- }, f = _([]), L = _(!1), W = _(!1), q = _(!1), h = _(!1);
1445
- async function K() {
1446
- const I = await Je(fe.Details, i.className, { workflowId: i.workflowId, email: x() });
1453
+ }, f = m([]), L = m(!1), Y = m(!1), z = m(!1), te = m(!1);
1454
+ async function oe() {
1455
+ const T = await Je(fe.Details, i.className, { workflowId: i.workflowId, email: V() });
1447
1456
  r.value.actions = r.value.actions?.filter((R) => {
1448
- const O = I.find((T) => T.button === R.title);
1449
- return O ? O.isShow : !0;
1450
- }), L.value = I.find((R) => R.button === "IsGlobal")?.isShow ?? !1, W.value = I.find((R) => R.button === "AssignButton")?.isShow ?? !1, q.value = I.find((R) => R.button === "AssignList")?.isShow ?? !1, h.value = I.find((R) => R.button === "AddCommentsButton")?.isShow ?? !1;
1457
+ const E = T.find((U) => U.button === R.title);
1458
+ return E ? E.isShow : !0;
1459
+ }), L.value = T.find((R) => R.button === "IsGlobal")?.isShow ?? !1, Y.value = T.find((R) => R.button === "AssignButton")?.isShow ?? !1, z.value = T.find((R) => R.button === "AssignList")?.isShow ?? !1, te.value = T.find((R) => R.button === "AddCommentsButton")?.isShow ?? !1;
1451
1460
  }
1452
- const Y = _([]);
1453
- async function F() {
1461
+ const h = m([]);
1462
+ async function I() {
1454
1463
  p.value = !0, r.value = await ke(fe.Details, i.className, {
1455
1464
  svrStore: a,
1456
1465
  bpmStore: e
1457
1466
  }, {
1458
1467
  workflowId: i.workflowId
1459
1468
  });
1460
- const I = await Xe(i.className, i.workflowId);
1461
- J.value = await Rt(), M.value = await $e(i.workflowId), le.value = await Ue(i.workflowId), K();
1469
+ const T = await Xe(i.className, i.workflowId);
1470
+ G.value = await Lt(), M.value = await $e(i.workflowId), ae.value = await Ue(i.workflowId), oe();
1462
1471
  const R = r.value.fields.requestType.modelValue;
1463
- o.Test?.(R, Y), u.value = m(r.value.fields);
1464
- for (const T in r.value.fields)
1465
- if (r.value.fields[T].widget?.widget === "File") {
1466
- const re = u.value.find((N) => N.fieldKey === T);
1467
- re && re.widget && (re.widget.files = I[T] ?? []);
1472
+ o.Test?.(R, h), u.value = g(r.value.fields);
1473
+ for (const U in r.value.fields)
1474
+ if (r.value.fields[U].widget?.widget === "File") {
1475
+ const re = u.value.find((F) => F.fieldKey === U);
1476
+ re && re.widget && (re.widget.files = T[U] ?? []);
1468
1477
  }
1469
- const O = await Nt(i.className, i.workflowId);
1470
- f.value = y(O, 0), p.value = !1;
1478
+ const E = await Nt(i.className, i.workflowId);
1479
+ f.value = w(E, 0), p.value = !1;
1471
1480
  }
1472
- de(F);
1473
- async function A(I, R) {
1474
- return o[I]?.(R);
1481
+ ce(I);
1482
+ async function x(T, R) {
1483
+ return o[T]?.(R);
1475
1484
  }
1476
- function x() {
1485
+ function V() {
1477
1486
  return a()?.userInfo?.email_address ?? "";
1478
1487
  }
1479
- async function k(I, R, O, T, re) {
1488
+ async function y(T, R, E, U, re) {
1480
1489
  try {
1481
1490
  switch (R) {
1482
- case te.Submit:
1483
- const { reason: N, ifGlobal: _e } = await A(re, { isGlobal: L.value });
1491
+ case ee.Submit:
1492
+ const { reason: F, ifGlobal: _e } = await x(re, { isGlobal: L.value });
1484
1493
  p.value = !0;
1485
1494
  const we = re === "Approve" ? "100" : "-1";
1486
- await Pt(i.className, i.workflowId, x(), N, [Number(i.workflowId)], O, we, _e), p.value = !1;
1495
+ await Pt(i.className, i.workflowId, V(), F, [Number(i.workflowId)], E, we, _e), p.value = !1;
1487
1496
  const ve = re === "Approve" ? `Request ID ${i.workflowId} has been approved.` : `Request ID ${i.workflowId} has been rejected.`;
1488
- c?.appContext.config.globalProperties.$notification.success(ve), F();
1497
+ c?.appContext.config.globalProperties.$notification.success(ve), I();
1489
1498
  break;
1490
- case te.Link:
1499
+ case ee.Link:
1491
1500
  try {
1492
- await o[I.eventName || ""]?.(), l.push({ name: T, params: { className: i.className } });
1501
+ await o[T.eventName || ""]?.(), l.push({ name: U, params: { className: i.className } });
1493
1502
  } catch (ne) {
1494
1503
  console.error("Error in link action trigger:", ne);
1495
1504
  }
@@ -1500,56 +1509,56 @@ const po = Object.assign(Pe, {
1500
1509
  } catch {
1501
1510
  }
1502
1511
  }
1503
- const H = _(""), M = _([]), oe = _(""), J = _([]), le = _([]);
1504
- async function ae() {
1505
- if (!oe.value) {
1512
+ const N = m(""), M = m([]), O = m(""), G = m([]), ae = m([]);
1513
+ async function de() {
1514
+ if (!O.value) {
1506
1515
  c?.appContext.config.globalProperties.$message.error("Please select an approver");
1507
1516
  return;
1508
1517
  }
1509
1518
  await ue("Confirm Assign Approver", "Do you want to assign the selected approver?");
1510
1519
  try {
1511
- await Bt(i.workflowId, oe.value), le.value = await Ue(i.workflowId), K(), c?.appContext.config.globalProperties.$notification.success("Assign Approver clicked!");
1512
- } catch (I) {
1513
- if (I.status === 409) {
1520
+ await Rt(i.workflowId, O.value), ae.value = await Ue(i.workflowId), oe(), c?.appContext.config.globalProperties.$notification.success("Assign Approver clicked!");
1521
+ } catch (T) {
1522
+ if (T.status === 409) {
1514
1523
  c?.appContext.config.globalProperties.$notification.error("This user is already an associator");
1515
1524
  return;
1516
1525
  }
1517
1526
  c?.appContext.config.globalProperties.$notification.error("Failed to assign approver");
1518
1527
  }
1519
1528
  }
1520
- async function ue(I, R) {
1521
- const { Modal: O } = await import("@arco-design/web-vue");
1522
- return new Promise((T, re) => {
1523
- O.confirm({
1524
- title: I,
1529
+ async function ue(T, R) {
1530
+ const { Modal: E } = await import("@arco-design/web-vue");
1531
+ return new Promise((U, re) => {
1532
+ E.confirm({
1533
+ title: T,
1525
1534
  content: R,
1526
1535
  okText: "OK",
1527
1536
  cancelText: "Cancel",
1528
- onOk: () => T(!0),
1537
+ onOk: () => U(!0),
1529
1538
  onCancel: () => re()
1530
1539
  });
1531
1540
  });
1532
1541
  }
1533
- async function w(I) {
1542
+ async function k(T) {
1534
1543
  try {
1535
1544
  await ue("Confirm Delete Associator", "Do you want to delete this associator?");
1536
1545
  } catch {
1537
1546
  return;
1538
1547
  }
1539
1548
  try {
1540
- await jt(String(I)), le.value = await Ue(i.workflowId), c?.appContext.config.globalProperties.$notification.success("Associator deleted successfully!");
1549
+ await jt(String(T)), ae.value = await Ue(i.workflowId), c?.appContext.config.globalProperties.$notification.success("Associator deleted successfully!");
1541
1550
  } catch {
1542
1551
  c?.appContext.config.globalProperties.$notification.error("Failed to delete associator");
1543
1552
  }
1544
1553
  }
1545
- async function D() {
1546
- if (!H.value.trim()) {
1554
+ async function H() {
1555
+ if (!N.value.trim()) {
1547
1556
  c?.appContext.config.globalProperties.$message.error("Comment cannot be empty");
1548
1557
  return;
1549
1558
  }
1550
- await Ft(i.workflowId, x(), H.value), H.value = "", M.value = await $e(i.workflowId), c?.appContext.config.globalProperties.$notification.success("Add Comment clicked!");
1559
+ await Bt(i.workflowId, V(), N.value), N.value = "", M.value = await $e(i.workflowId), c?.appContext.config.globalProperties.$notification.success("Add Comment clicked!");
1551
1560
  }
1552
- const B = { svrStore: a, bpmStore: e, triggers: o, router: l, customComps: s, instance: c, props: i, pageData: r, _fields: u, genField: m, groupedFields: g, reversedActions: b, loading: p, mapWorkflowSteps: y, steps: f, isGlobal: L, isShowAssignSelect: W, isShowAssignList: q, isShowCommentTextArea: h, reloadButtonList: K, hiddenFields: Y, load: F, triggerFn: A, getApproverEmail: x, clickHandler: k, comment: H, commentsHistory: M, selectedApprover: oe, approvers: J, associators: le, onAssignApprover: ae, confirmDialog: ue, onDeleteAssociator: w, onAddComment: D, ActionButton: Ce, get IconDownload() {
1561
+ const B = { svrStore: a, bpmStore: e, triggers: o, router: l, customComps: s, instance: c, props: i, pageData: r, _fields: u, genField: g, groupedFields: _, reversedActions: b, loading: p, mapWorkflowSteps: w, steps: f, isGlobal: L, isShowAssignSelect: Y, isShowAssignList: z, isShowCommentTextArea: te, reloadButtonList: oe, hiddenFields: h, load: I, triggerFn: x, getApproverEmail: V, clickHandler: y, comment: N, commentsHistory: M, selectedApprover: O, approvers: G, associators: ae, onAssignApprover: de, confirmDialog: ue, onDeleteAssociator: k, onAddComment: H, ActionButton: Ce, get IconDownload() {
1553
1562
  return po;
1554
1563
  }, TopBar: Ae, get formatDate() {
1555
1564
  return he;
@@ -1567,86 +1576,86 @@ const po = Object.assign(Pe, {
1567
1576
  class: "detail-content"
1568
1577
  }, Vo = { class: "page-footer" }, Ao = { class: "action-container" }, Io = { class: "action-buttons" };
1569
1578
  function To(t, n, a, e, o, l) {
1570
- const s = S("a-link"), c = S("a-space"), i = S("a-card"), r = S("a-option"), u = S("a-select"), m = S("a-button"), g = S("a-list-item"), b = S("a-list"), p = S("a-textarea"), y = S("a-spin");
1579
+ const s = S("a-link"), c = S("a-space"), i = S("a-card"), r = S("a-option"), u = S("a-select"), g = S("a-button"), _ = S("a-list-item"), b = S("a-list"), p = S("a-textarea"), w = S("a-spin");
1571
1580
  return d(), C("div", go, [
1572
- P(e.TopBar, {
1581
+ D(e.TopBar, {
1573
1582
  title: e.pageData.banner.title,
1574
1583
  subTitle: e.pageData.banner.subTitle,
1575
1584
  email: e.getApproverEmail()
1576
1585
  }, null, 8, ["title", "subTitle", "email"]),
1577
- V("div", _o, [
1578
- P(y, {
1586
+ A("div", _o, [
1587
+ D(w, {
1579
1588
  loading: e.loading,
1580
1589
  class: "detail-container"
1581
1590
  }, {
1582
1591
  default: v(() => [
1583
- V("div", vo, [
1584
- (d(), U(He(e.customComps.Steps), { steps: e.steps }, null, 8, ["steps"])),
1585
- V("div", bo, [
1586
- (d(!0), C(j, null, E(e.groupedFields, (f) => (d(), U(i, {
1592
+ A("div", vo, [
1593
+ (d(), P(He(e.customComps.Steps), { steps: e.steps }, null, 8, ["steps"])),
1594
+ A("div", bo, [
1595
+ (d(!0), C(j, null, $(e.groupedFields, (f) => (d(), P(i, {
1587
1596
  key: f.name,
1588
1597
  title: f.name,
1589
1598
  style: { "margin-bottom": "24px" }
1590
1599
  }, {
1591
1600
  default: v(() => [
1592
- V("div", yo, [
1593
- (d(!0), C(j, null, E(f.fields, (L) => (d(), C("div", {
1601
+ A("div", yo, [
1602
+ (d(!0), C(j, null, $(f.fields, (L) => (d(), C("div", {
1594
1603
  key: L.fieldKey,
1595
1604
  class: "detail-field-wrapper"
1596
1605
  }, [
1597
- V("div", wo, [
1598
- V("div", ho, Z(L.widget?.title), 1),
1599
- L.widget?.widget === "File" ? (d(!0), C(j, { key: 0 }, E(L.widget.files, (W) => (d(), C("div", {
1606
+ A("div", wo, [
1607
+ A("div", ho, Q(L.widget?.title), 1),
1608
+ L.widget?.widget === "File" ? (d(!0), C(j, { key: 0 }, $(L.widget.files, (Y) => (d(), C("div", {
1600
1609
  class: "field-value",
1601
- key: W.id
1610
+ key: Y.id
1602
1611
  }, [
1603
- P(c, null, {
1612
+ D(c, null, {
1604
1613
  default: v(() => [
1605
- X(Z(W.name) + " ", 1),
1606
- P(s, {
1607
- href: W.url,
1614
+ J(Q(Y.name) + " ", 1),
1615
+ D(s, {
1616
+ href: Y.url,
1608
1617
  target: "_blank"
1609
1618
  }, {
1610
1619
  default: v(() => [
1611
- P(e.IconDownload, { style: { color: "#7A00E6" } })
1620
+ D(e.IconDownload, { style: { color: "#7A00E6" } })
1612
1621
  ]),
1613
1622
  _: 2
1614
1623
  }, 1032, ["href"])
1615
1624
  ]),
1616
1625
  _: 2
1617
1626
  }, 1024)
1618
- ]))), 128)) : (d(), C("div", ko, Z(L.fieldValue), 1))
1627
+ ]))), 128)) : (d(), C("div", ko, Q(L.fieldValue), 1))
1619
1628
  ])
1620
1629
  ]))), 128))
1621
1630
  ])
1622
1631
  ]),
1623
1632
  _: 2
1624
1633
  }, 1032, ["title"]))), 128)),
1625
- e.isShowAssignSelect ? (d(), U(c, { key: 0 }, {
1634
+ e.isShowAssignSelect ? (d(), P(c, { key: 0 }, {
1626
1635
  default: v(() => [
1627
- P(u, {
1636
+ D(u, {
1628
1637
  modelValue: e.selectedApprover,
1629
1638
  "onUpdate:modelValue": n[0] || (n[0] = (f) => e.selectedApprover = f)
1630
1639
  }, {
1631
1640
  default: v(() => [
1632
- (d(!0), C(j, null, E(e.approvers, (f) => (d(), U(r, {
1641
+ (d(!0), C(j, null, $(e.approvers, (f) => (d(), P(r, {
1633
1642
  key: f.value,
1634
1643
  value: f.value
1635
1644
  }, {
1636
1645
  default: v(() => [
1637
- X(Z(f.label), 1)
1646
+ J(Q(f.label), 1)
1638
1647
  ]),
1639
1648
  _: 2
1640
1649
  }, 1032, ["value"]))), 128))
1641
1650
  ]),
1642
1651
  _: 1
1643
1652
  }, 8, ["modelValue"]),
1644
- P(m, {
1653
+ D(g, {
1645
1654
  type: "primary",
1646
1655
  onClick: e.onAssignApprover
1647
1656
  }, {
1648
1657
  default: v(() => n[2] || (n[2] = [
1649
- X("Assign for comment", -1)
1658
+ J("Assign for comment", -1)
1650
1659
  ])),
1651
1660
  _: 1,
1652
1661
  __: [2]
@@ -1654,29 +1663,29 @@ function To(t, n, a, e, o, l) {
1654
1663
  ]),
1655
1664
  _: 1
1656
1665
  })) : se("", !0),
1657
- e.isShowAssignList ? (d(), U(b, { key: 1 }, {
1666
+ e.isShowAssignList ? (d(), P(b, { key: 1 }, {
1658
1667
  header: v(() => n[3] || (n[3] = [
1659
- X(" Associators ", -1)
1668
+ J(" Associators ", -1)
1660
1669
  ])),
1661
1670
  default: v(() => [
1662
- (d(!0), C(j, null, E(e.associators, (f) => (d(), U(g, {
1671
+ (d(!0), C(j, null, $(e.associators, (f) => (d(), P(_, {
1663
1672
  key: f.id
1664
1673
  }, {
1665
1674
  actions: v(() => [
1666
- P(m, {
1675
+ D(g, {
1667
1676
  type: "text",
1668
1677
  status: "danger",
1669
1678
  onClick: (L) => e.onDeleteAssociator(f.id)
1670
1679
  }, {
1671
1680
  default: v(() => n[4] || (n[4] = [
1672
- X(" Delete ", -1)
1681
+ J(" Delete ", -1)
1673
1682
  ])),
1674
1683
  _: 2,
1675
1684
  __: [4]
1676
1685
  }, 1032, ["onClick"])
1677
1686
  ]),
1678
1687
  default: v(() => [
1679
- X(" " + Z(f.associator), 1)
1688
+ J(" " + Q(f.associator), 1)
1680
1689
  ]),
1681
1690
  _: 2
1682
1691
  }, 1024))), 128))
@@ -1684,34 +1693,34 @@ function To(t, n, a, e, o, l) {
1684
1693
  _: 1
1685
1694
  })) : se("", !0),
1686
1695
  e.isShowCommentTextArea ? (d(), C("div", Co, [
1687
- V("div", So, [
1688
- n[6] || (n[6] = V("div", { class: "field-label" }, "Comment", -1)),
1689
- P(p, {
1696
+ A("div", So, [
1697
+ n[6] || (n[6] = A("div", { class: "field-label" }, "Comment", -1)),
1698
+ D(p, {
1690
1699
  modelValue: e.comment,
1691
1700
  "onUpdate:modelValue": n[1] || (n[1] = (f) => e.comment = f)
1692
1701
  }, null, 8, ["modelValue"]),
1693
- P(m, {
1702
+ D(g, {
1694
1703
  type: "primary",
1695
1704
  onClick: e.onAddComment
1696
1705
  }, {
1697
1706
  default: v(() => n[5] || (n[5] = [
1698
- X("Add Comment", -1)
1707
+ J("Add Comment", -1)
1699
1708
  ])),
1700
1709
  _: 1,
1701
1710
  __: [5]
1702
1711
  })
1703
1712
  ])
1704
1713
  ])) : se("", !0),
1705
- e.commentsHistory.length ? (d(), U(b, { key: 3 }, {
1714
+ e.commentsHistory.length ? (d(), P(b, { key: 3 }, {
1706
1715
  header: v(() => n[7] || (n[7] = [
1707
- X(" Comments History ", -1)
1716
+ J(" Comments History ", -1)
1708
1717
  ])),
1709
1718
  default: v(() => [
1710
- (d(!0), C(j, null, E(e.commentsHistory, (f) => (d(), U(g, {
1719
+ (d(!0), C(j, null, $(e.commentsHistory, (f) => (d(), P(_, {
1711
1720
  key: f.associator
1712
1721
  }, {
1713
1722
  default: v(() => [
1714
- X(Z(f.associator) + ": " + Z(f.comments) + " (" + Z(e.formatDate(f.createdAt)) + ") ", 1)
1723
+ J(Q(f.associator) + ": " + Q(f.comments) + " (" + Q(e.formatDate(f.createdAt)) + ") ", 1)
1715
1724
  ]),
1716
1725
  _: 2
1717
1726
  }, 1024))), 128))
@@ -1720,18 +1729,18 @@ function To(t, n, a, e, o, l) {
1720
1729
  })) : se("", !0)
1721
1730
  ]),
1722
1731
  t.$slots.content ? (d(), C("div", xo, [
1723
- ce(t.$slots, "content", {}, void 0, !0)
1732
+ le(t.$slots, "content", {}, void 0, !0)
1724
1733
  ])) : se("", !0)
1725
1734
  ])
1726
1735
  ]),
1727
1736
  _: 3
1728
1737
  }, 8, ["loading"])
1729
1738
  ]),
1730
- V("div", Vo, [
1731
- V("div", Ao, [
1732
- ce(t.$slots, "action", {}, void 0, !0),
1733
- V("div", Io, [
1734
- (d(!0), C(j, null, E(e.reversedActions, (f) => (d(), U(e.ActionButton, {
1739
+ A("div", Vo, [
1740
+ A("div", Ao, [
1741
+ le(t.$slots, "action", {}, void 0, !0),
1742
+ A("div", Io, [
1743
+ (d(!0), C(j, null, $(e.reversedActions, (f) => (d(), P(e.ActionButton, {
1735
1744
  key: f.Title,
1736
1745
  loading: e.loading,
1737
1746
  config: f,
@@ -1743,7 +1752,7 @@ function To(t, n, a, e, o, l) {
1743
1752
  ])
1744
1753
  ]);
1745
1754
  }
1746
- const Uo = /* @__PURE__ */ Q(mo, [["render", To], ["__scopeId", "data-v-07443410"], ["__file", "DetailView.vue"]]), Po = /* @__PURE__ */ G({
1755
+ const Uo = /* @__PURE__ */ X(mo, [["render", To], ["__scopeId", "data-v-07443410"], ["__file", "DetailView.vue"]]), Po = /* @__PURE__ */ q({
1747
1756
  name: "ListView",
1748
1757
  __name: "ListView",
1749
1758
  props: {
@@ -1751,7 +1760,7 @@ const Uo = /* @__PURE__ */ Q(mo, [["render", To], ["__scopeId", "data-v-07443410
1751
1760
  },
1752
1761
  setup(t, { expose: n }) {
1753
1762
  n();
1754
- const a = Ve(), e = xe(), o = Se(), l = pe(), s = t, c = _(), i = Le({
1763
+ const a = Ve(), e = xe(), o = Se(), l = pe(), s = t, c = m(), i = Fe({
1755
1764
  current: 1,
1756
1765
  total: 0,
1757
1766
  pageSize: 10,
@@ -1761,31 +1770,31 @@ const Uo = /* @__PURE__ */ Q(mo, [["render", To], ["__scopeId", "data-v-07443410
1761
1770
  filters: []
1762
1771
  });
1763
1772
  function r() {
1764
- const w = Object.entries(k.value).filter(([, { value: D }]) => D && D !== "").map(([D, { value: B, operator: I }]) => ({
1765
- key: D,
1773
+ const k = Object.entries(y.value).filter(([, { value: H }]) => H && H !== "").map(([H, { value: B, operator: T }]) => ({
1774
+ key: H,
1766
1775
  value: B,
1767
- operator: I
1776
+ operator: T
1768
1777
  // 根据实际需要调整操作符
1769
1778
  }));
1770
1779
  return {
1771
1780
  pageNumber: i.current,
1772
1781
  pageSize: i.pageSize,
1773
- filters: [...i.filters, ...w],
1782
+ filters: [...i.filters, ...k],
1774
1783
  sorts: [{
1775
1784
  key: "workflowId",
1776
1785
  type: 1
1777
1786
  }]
1778
1787
  };
1779
1788
  }
1780
- const u = ee(() => ({
1789
+ const u = Z(() => ({
1781
1790
  x: b.value.length * 150 + 250
1782
1791
  // 只设置横向滚动
1783
1792
  // 移除 y 属性,让表格高度自适应
1784
- })), m = (w) => {
1785
- const D = Object.entries(w).filter(([, B]) => B.widget?.column).map(([B, I], R) => ({
1786
- title: I.widget.title,
1793
+ })), g = (k) => {
1794
+ const H = Object.entries(k).filter(([, B]) => B.widget?.column).map(([B, T], R) => ({
1795
+ title: T.widget.title,
1787
1796
  dataIndex: B.charAt(0).toLowerCase() + B.slice(1),
1788
- order: I.order,
1797
+ order: T.order,
1789
1798
  ellipsis: !0,
1790
1799
  tooltip: !0,
1791
1800
  width: 150,
@@ -1793,8 +1802,8 @@ const Uo = /* @__PURE__ */ Q(mo, [["render", To], ["__scopeId", "data-v-07443410
1793
1802
  // 启用最小宽度
1794
1803
  resizable: !0
1795
1804
  // 启用列宽调整
1796
- })).sort((B, I) => B.order - I.order);
1797
- D.push({
1805
+ })).sort((B, T) => B.order - T.order);
1806
+ H.push({
1798
1807
  title: "Actions",
1799
1808
  slotName: "optional",
1800
1809
  align: "center",
@@ -1802,99 +1811,99 @@ const Uo = /* @__PURE__ */ Q(mo, [["render", To], ["__scopeId", "data-v-07443410
1802
1811
  minWidth: 200,
1803
1812
  fixed: "right",
1804
1813
  resizable: !1
1805
- }), b.value = D;
1806
- }, g = _([]), b = _([]), p = _(!0), y = _(!0), f = _(), L = async () => {
1807
- y.value = !0;
1808
- const w = await Ct(s.className, r());
1809
- g.value = w.data, i.total = w.totalCount, y.value = !1;
1810
- }, W = _(!1);
1811
- de(async () => {
1814
+ }), b.value = H;
1815
+ }, _ = m([]), b = m([]), p = m(!0), w = m(!0), f = m(), L = async () => {
1816
+ w.value = !0;
1817
+ const k = await Ct(s.className, r());
1818
+ _.value = k.data, i.total = k.totalCount, w.value = !1;
1819
+ }, Y = m(!1);
1820
+ ce(async () => {
1812
1821
  p.value = !0, c.value = await ke(3, s.className, {
1813
1822
  svrStore: a,
1814
1823
  bpmStore: e
1815
- }), m(c.value.fields), M(c.value.fields), oe(), x(c.value?.tabs?.[0]?.key || ""), f.value = c.value.actions, p.value = !1, W.value = !0;
1824
+ }), g(c.value.fields), M(c.value.fields), O(), V(c.value?.tabs?.[0]?.key || ""), f.value = c.value.actions, p.value = !1, Y.value = !0;
1816
1825
  }), st(() => {
1817
- W.value && L();
1826
+ Y.value && L();
1818
1827
  });
1819
- const q = (w) => {
1820
- i.current = w, L();
1821
- }, h = (w) => {
1822
- i.pageSize = w, L();
1828
+ const z = (k) => {
1829
+ i.current = k, L();
1830
+ }, te = (k) => {
1831
+ i.pageSize = k, L();
1823
1832
  };
1824
- function K(w, D, B, I, R) {
1825
- switch (w) {
1826
- case te.Link:
1833
+ function oe(k, H, B, T, R) {
1834
+ switch (k) {
1835
+ case ee.Link:
1827
1836
  o.push({ name: B, params: { workflowId: R } });
1828
1837
  break;
1829
1838
  default:
1830
- console.warn("Unknown action type:", w);
1839
+ console.warn("Unknown action type:", k);
1831
1840
  }
1832
1841
  }
1833
- function Y(w, D, B) {
1834
- switch (w) {
1835
- case te.Submit:
1836
- Mt(D, { filters: [{ key: "approverList", value: F(), operator: 2 }] }), l?.appContext.config.globalProperties.$notification.success("submit success!");
1842
+ function h(k, H, B) {
1843
+ switch (k) {
1844
+ case ee.Submit:
1845
+ Mt(H, { filters: [{ key: "approverList", value: I(), operator: 2 }] }), l?.appContext.config.globalProperties.$notification.success("submit success!");
1837
1846
  break;
1838
- case te.Link:
1847
+ case ee.Link:
1839
1848
  o.push({ name: B });
1840
1849
  break;
1841
1850
  default:
1842
- console.warn("Unknown action type:", w);
1851
+ console.warn("Unknown action type:", k);
1843
1852
  }
1844
1853
  }
1845
- function F() {
1854
+ function I() {
1846
1855
  return a()?.userInfo?.email_address ?? "";
1847
1856
  }
1848
- function A(w, D) {
1849
- return typeof w != "string" || w.indexOf("{currentUserEmail}") === -1 ? w : w.replace(/{currentUserEmail}/g, D);
1857
+ function x(k, H) {
1858
+ return typeof k != "string" || k.indexOf("{currentUserEmail}") === -1 ? k : k.replace(/{currentUserEmail}/g, H);
1850
1859
  }
1851
- function x(w) {
1852
- const D = c.value?.tabs?.find((B) => B.key === w)?.filters;
1853
- i.filters = D?.map((B) => ({
1860
+ function V(k) {
1861
+ const H = c.value?.tabs?.find((B) => B.key === k)?.filters;
1862
+ i.filters = H?.map((B) => ({
1854
1863
  ...B,
1855
- value: A(B.value, F())
1864
+ value: x(B.value, I())
1856
1865
  })) || [], i.current = 1, L();
1857
1866
  }
1858
- const k = _({}), H = _([]);
1859
- function M(w) {
1860
- if (!w) return [];
1861
- H.value = Object.entries(w).filter(([, D]) => D.isFiltered).map(([D, B]) => ({ fieldKey: D, fieldConfig: B }));
1867
+ const y = m({}), N = m([]);
1868
+ function M(k) {
1869
+ if (!k) return [];
1870
+ N.value = Object.entries(k).filter(([, H]) => H.isFiltered).map(([H, B]) => ({ fieldKey: H, fieldConfig: B }));
1862
1871
  }
1863
- const oe = () => {
1864
- const w = {};
1865
- H.value.forEach(({ fieldKey: D, fieldConfig: B }) => {
1866
- w[D] = {}, w[D].value = B.modelValue, w[D].operator = B.operator;
1867
- }), k.value = w;
1868
- }, J = () => {
1872
+ const O = () => {
1873
+ const k = {};
1874
+ N.value.forEach(({ fieldKey: H, fieldConfig: B }) => {
1875
+ k[H] = {}, k[H].value = B.modelValue, k[H].operator = B.operator;
1876
+ }), y.value = k;
1877
+ }, G = () => {
1869
1878
  i.current = 1, L();
1870
- }, le = () => {
1871
- c.value && oe(), J();
1879
+ }, ae = () => {
1880
+ c.value && O(), G();
1872
1881
  };
1873
- function ae(w, D) {
1874
- return !(w.location !== "InTable" || w.title === "Update" && (D.status === 100 || D.status === -1));
1882
+ function de(k, H) {
1883
+ return !(k.location !== "InTable" || k.title === "Update" && (H.status === 100 || H.status === -1));
1875
1884
  }
1876
- const ue = { svrStore: a, bpmStore: e, router: o, instance: l, props: s, pageData: c, paging: i, createListParams: r, scroll: u, mapColumns: m, _data: g, _columns: b, loadingPage: p, loadingTable: y, actions: f, loadData: L, mounted: W, pageChangeHandler: q, pageSizeChangeHandler: h, clickHandler: K, createHandler: Y, getApproverEmail: F, replaceEmail: A, tabHandler: x, searchForm: k, searchableFields: H, mapSearchableFields: M, initSearchForm: oe, handleSearch: J, handleReset: le, judgeHiddenActions: ae, ActionButton: Ce, DataWidgets: Fe, TopBar: Ae };
1885
+ const ue = { svrStore: a, bpmStore: e, router: o, instance: l, props: s, pageData: c, paging: i, createListParams: r, scroll: u, mapColumns: g, _data: _, _columns: b, loadingPage: p, loadingTable: w, actions: f, loadData: L, mounted: Y, pageChangeHandler: z, pageSizeChangeHandler: te, clickHandler: oe, createHandler: h, getApproverEmail: I, replaceEmail: x, tabHandler: V, searchForm: y, searchableFields: N, mapSearchableFields: M, initSearchForm: O, handleSearch: G, handleReset: ae, judgeHiddenActions: de, ActionButton: Ce, DataWidgets: Be, TopBar: Ae };
1877
1886
  return Object.defineProperty(ue, "__isScriptSetup", { enumerable: !1, value: !0 }), ue;
1878
1887
  }
1879
1888
  }), Do = { class: "list-container" }, No = { class: "query-title" };
1880
1889
  function Ho(t, n, a, e, o, l) {
1881
- const s = S("a-space"), c = S("a-col"), i = S("a-button"), r = S("a-row"), u = S("a-card"), m = S("a-tab-pane"), g = S("a-tabs"), b = S("a-table");
1890
+ const s = S("a-space"), c = S("a-col"), i = S("a-button"), r = S("a-row"), u = S("a-card"), g = S("a-tab-pane"), _ = S("a-tabs"), b = S("a-table");
1882
1891
  return d(), C("div", Do, [
1883
- P(e.TopBar, {
1892
+ D(e.TopBar, {
1884
1893
  title: e.pageData?.banner.title ?? "",
1885
1894
  subTitle: e.pageData?.banner.subTitle ?? "",
1886
1895
  email: e.getApproverEmail()
1887
1896
  }, null, 8, ["title", "subTitle", "email"]),
1888
- P(u, null, {
1897
+ D(u, null, {
1889
1898
  default: v(() => [
1890
- V("div", No, [
1891
- n[0] || (n[0] = V("h3", null, "Search Conditions", -1)),
1892
- P(s, { size: "medium" }, {
1899
+ A("div", No, [
1900
+ n[0] || (n[0] = A("h3", null, "Search Conditions", -1)),
1901
+ D(s, { size: "medium" }, {
1893
1902
  default: v(() => [
1894
- (d(!0), C(j, null, E(e.actions, (p) => (d(), C(j, {
1903
+ (d(!0), C(j, null, $(e.actions, (p) => (d(), C(j, {
1895
1904
  key: p.title
1896
1905
  }, [
1897
- p.location === "InOperation" ? (d(), U(e.ActionButton, {
1906
+ p.location === "InOperation" ? (d(), P(e.ActionButton, {
1898
1907
  key: 0,
1899
1908
  config: p,
1900
1909
  onClick: e.createHandler
@@ -1904,48 +1913,48 @@ function Ho(t, n, a, e, o, l) {
1904
1913
  _: 1
1905
1914
  })
1906
1915
  ]),
1907
- P(r, { gutter: [24, 20] }, {
1916
+ D(r, { gutter: [24, 20] }, {
1908
1917
  default: v(() => [
1909
- (d(!0), C(j, null, E(e.searchableFields, (p) => (d(), U(c, {
1918
+ (d(!0), C(j, null, $(e.searchableFields, (p) => (d(), P(c, {
1910
1919
  key: p.fieldKey,
1911
1920
  span: 6,
1912
1921
  class: "search-col"
1913
1922
  }, {
1914
1923
  default: v(() => [
1915
- P(e.DataWidgets, {
1924
+ D(e.DataWidgets, {
1916
1925
  name: p.fieldKey,
1917
1926
  config: p.fieldConfig,
1918
1927
  modelValue: e.searchForm[p.fieldKey].value,
1919
- "onUpdate:modelValue": (y) => e.searchForm[p.fieldKey].value = y,
1928
+ "onUpdate:modelValue": (w) => e.searchForm[p.fieldKey].value = w,
1920
1929
  class: "form-field"
1921
1930
  }, null, 8, ["name", "config", "modelValue", "onUpdate:modelValue"])
1922
1931
  ]),
1923
1932
  _: 2
1924
1933
  }, 1024))), 128)),
1925
- P(c, {
1934
+ D(c, {
1926
1935
  span: 6,
1927
1936
  class: "search-col form-buttons"
1928
1937
  }, {
1929
1938
  default: v(() => [
1930
- P(s, { size: "medium" }, {
1939
+ D(s, { size: "medium" }, {
1931
1940
  default: v(() => [
1932
- P(i, {
1941
+ D(i, {
1933
1942
  type: "primary",
1934
1943
  size: "medium",
1935
1944
  onClick: e.handleSearch
1936
1945
  }, {
1937
1946
  default: v(() => n[1] || (n[1] = [
1938
- X(" Search ", -1)
1947
+ J(" Search ", -1)
1939
1948
  ])),
1940
1949
  _: 1,
1941
1950
  __: [1]
1942
1951
  }),
1943
- P(i, {
1952
+ D(i, {
1944
1953
  size: "medium",
1945
1954
  onClick: e.handleReset
1946
1955
  }, {
1947
1956
  default: v(() => n[2] || (n[2] = [
1948
- X(" Reset ", -1)
1957
+ J(" Reset ", -1)
1949
1958
  ])),
1950
1959
  _: 1,
1951
1960
  __: [2]
@@ -1962,19 +1971,19 @@ function Ho(t, n, a, e, o, l) {
1962
1971
  ]),
1963
1972
  _: 1
1964
1973
  }),
1965
- P(g, {
1974
+ D(_, {
1966
1975
  size: "large",
1967
1976
  onTabClick: e.tabHandler
1968
1977
  }, {
1969
1978
  default: v(() => [
1970
- (d(!0), C(j, null, E(e.pageData?.tabs, (p) => (d(), U(m, {
1979
+ (d(!0), C(j, null, $(e.pageData?.tabs, (p) => (d(), P(g, {
1971
1980
  key: p.key,
1972
1981
  title: p.title
1973
1982
  }, null, 8, ["title"]))), 128))
1974
1983
  ]),
1975
1984
  _: 1
1976
1985
  }),
1977
- P(b, {
1986
+ D(b, {
1978
1987
  columns: e._columns,
1979
1988
  data: e._data,
1980
1989
  stripe: "",
@@ -1994,14 +2003,14 @@ function Ho(t, n, a, e, o, l) {
1994
2003
  onPageSizeChange: e.pageSizeChangeHandler
1995
2004
  }, {
1996
2005
  optional: v(({ record: p }) => [
1997
- P(s, { size: "small" }, {
2006
+ D(s, { size: "small" }, {
1998
2007
  default: v(() => [
1999
- (d(!0), C(j, null, E(e.actions, (y) => (d(), C(j, {
2000
- key: y.title
2008
+ (d(!0), C(j, null, $(e.actions, (w) => (d(), C(j, {
2009
+ key: w.title
2001
2010
  }, [
2002
- e.judgeHiddenActions(y, p) ? (d(), U(e.ActionButton, {
2011
+ e.judgeHiddenActions(w, p) ? (d(), P(e.ActionButton, {
2003
2012
  key: 0,
2004
- config: y,
2013
+ config: w,
2005
2014
  size: "small",
2006
2015
  onClick: (...f) => e.clickHandler(...f, p.workflowId)
2007
2016
  }, null, 8, ["config", "onClick"])) : se("", !0)
@@ -2014,9 +2023,9 @@ function Ho(t, n, a, e, o, l) {
2014
2023
  }, 8, ["columns", "data", "pagination", "loading", "scroll"])
2015
2024
  ]);
2016
2025
  }
2017
- const Lo = /* @__PURE__ */ Q(Po, [["render", Ho], ["__scopeId", "data-v-a82f2228"], ["__file", "ListView.vue"]]), Oo = {
2026
+ const Fo = /* @__PURE__ */ X(Po, [["render", Ho], ["__scopeId", "data-v-a82f2228"], ["__file", "ListView.vue"]]), Oo = {
2018
2027
  install(t, n = {}) {
2019
- n.config && gt(n.config), n.router && t.provide(Qe, n.router), n.pinia && t.provide(kn, n.pinia), n.useBpmStore && t.provide(et, n.useBpmStore), n.useSvrStore && t.provide(tt, n.useSvrStore), n.triggers && t.provide(Ze, n.triggers), n.customComps && t.provide(nt, n.customComps), t.component("CreateView", En), t.component("UpdateView", eo), t.component("DetailView", Uo), t.component("ListView", Lo);
2028
+ n.config && gt(n.config), n.router && t.provide(Qe, n.router), n.pinia && t.provide(kn, n.pinia), n.useBpmStore && t.provide(et, n.useBpmStore), n.useSvrStore && t.provide(tt, n.useSvrStore), n.triggers && t.provide(Ze, n.triggers), n.customComps && t.provide(nt, n.customComps), t.component("CreateView", En), t.component("UpdateView", eo), t.component("DetailView", Uo), t.component("ListView", Fo);
2020
2029
  }
2021
2030
  };
2022
2031
  export {