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

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