@chase-shao/vue-component-lib 1.2.102 → 1.2.103

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,11 +1,11 @@
1
- import { ref as m, getCurrentInstance as ge, defineComponent as z, mergeModels as le, useModel as he, resolveComponent as x, createBlock as R, openBlock as u, onMounted as fe, computed as E, withCtx as S, createElementBlock as _, Fragment as $, renderList as j, createVNode as N, nextTick as ut, createTextVNode as re, inject as _e, normalizeStyle as Qe, normalizeClass as Je, createElementVNode as w, createCommentVNode as se, toDisplayString as q, useTemplateRef as Oe, resolveDynamicComponent as $e, renderSlot as ue, reactive as ft, onActivated as pt } from "vue";
2
- import mt from "axios";
3
- import { defineStore as gt } from "pinia";
4
- import { Modal as _t } from "@arco-design/web-vue";
5
- import { useRouter as vt } from "vue-router";
6
- const bt = gt("main", () => ({
1
+ import { ref as m, getCurrentInstance as ve, defineComponent as z, mergeModels as ce, useModel as ke, resolveComponent as V, createBlock as D, openBlock as u, onMounted as fe, computed as K, withCtx as x, createElementBlock as _, Fragment as O, renderList as M, createVNode as F, nextTick as pt, createTextVNode as ae, inject as be, normalizeStyle as Je, normalizeClass as Xe, createElementVNode as y, createCommentVNode as re, toDisplayString as Q, useTemplateRef as Ae, resolveDynamicComponent as $e, renderSlot as ue, reactive as mt, onActivated as gt } from "vue";
2
+ import _t from "axios";
3
+ import { defineStore as vt } from "pinia";
4
+ import { Modal as bt } from "@arco-design/web-vue";
5
+ import { useRouter as yt } from "vue-router";
6
+ const wt = vt("main", () => ({
7
7
  token: m(void 0)
8
- })), wt = async (t) => new Promise((o) => setTimeout(o, t)), yt = async (t, o, n, e = void 0) => {
8
+ })), ht = async (t) => new Promise((o) => setTimeout(o, t)), kt = async (t, o, n, e = void 0) => {
9
9
  if (t[o] === void 0)
10
10
  try {
11
11
  t[o] = null, t[o] = await n() || e;
@@ -13,27 +13,27 @@ const bt = gt("main", () => ({
13
13
  console.error(r), t[o] = void 0;
14
14
  }
15
15
  for (; t[o] === null; )
16
- await wt(100);
16
+ await ht(100);
17
17
  return t[o];
18
- }, ye = (t) => {
18
+ }, he = (t) => {
19
19
  const o = `0${t}`;
20
20
  return o.substring(o.length - 2);
21
- }, Se = (t, o = "yyyy-MM-dd hh:mm:ss") => {
21
+ }, xe = (t, o = "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 n = new Date(t), e = [
26
26
  ["yyyy", n.getFullYear()],
27
27
  ["yy", n.getFullYear().toString().substring(2)],
28
- ["MM", ye(n.getMonth() + 1)],
28
+ ["MM", he(n.getMonth() + 1)],
29
29
  ["M", n.getMonth() + 1],
30
- ["dd", ye(n.getDate())],
30
+ ["dd", he(n.getDate())],
31
31
  ["d", n.getDate()],
32
- ["hh", ye(n.getHours())],
32
+ ["hh", he(n.getHours())],
33
33
  ["h", n.getHours()],
34
- ["mm", ye(n.getMinutes())],
34
+ ["mm", he(n.getMinutes())],
35
35
  ["m", n.getMinutes()],
36
- ["ss", ye(n.getSeconds())],
36
+ ["ss", he(n.getSeconds())],
37
37
  ["s", n.getSeconds()]
38
38
  ];
39
39
  for (const [r, a] of e)
@@ -42,28 +42,28 @@ const bt = gt("main", () => ({
42
42
  } catch {
43
43
  return t.toLocaleString();
44
44
  }
45
- }, ht = (t, o) => {
45
+ }, Ct = (t, o) => {
46
46
  let n;
47
47
  t instanceof Blob ? n = t : n = new Blob([t]);
48
48
  const e = document.createElement("a"), r = window.URL.createObjectURL(n);
49
49
  e.href = r, e.download = o, e.click(), window.URL.revokeObjectURL(r);
50
50
  };
51
- let Le = {};
52
- function kt(t) {
53
- Le = { ...Le, ...t };
51
+ let Oe = {};
52
+ function St(t) {
53
+ Oe = { ...Oe, ...t };
54
54
  }
55
55
  function je() {
56
- return Le;
56
+ return Oe;
57
57
  }
58
- const Ct = ge();
59
- function Xe() {
58
+ const xt = ve();
59
+ function Ze() {
60
60
  const t = je();
61
61
  return {
62
62
  apiBase: t.apiBase || void 0 || "",
63
63
  appSecret: t.appSecret || void 0 || ""
64
64
  };
65
65
  }
66
- function St(t) {
66
+ function Vt(t) {
67
67
  if (!t?.data?.statusCode)
68
68
  return t;
69
69
  switch (t.data.statusCode) {
@@ -71,22 +71,22 @@ function St(t) {
71
71
  return t.data.data = t.data.result, t.data;
72
72
  case 0:
73
73
  default:
74
- return Ct?.appContext.config.globalProperties.$notification.error(t.data.msg), null;
74
+ return xt?.appContext.config.globalProperties.$notification.error(t.data.msg), null;
75
75
  }
76
76
  }
77
- function Ze() {
78
- const { apiBase: t } = Xe(), o = mt.create({
77
+ function et() {
78
+ const { apiBase: t } = Ze(), o = _t.create({
79
79
  baseURL: t,
80
80
  timeout: 20 * 1e3,
81
81
  // 20s
82
82
  // headers: { 'Content-Type': 'application/json' },
83
83
  withCredentials: !0
84
84
  });
85
- return o.interceptors.response.use(St), o;
85
+ return o.interceptors.response.use(Vt), o;
86
86
  }
87
- const et = async () => {
88
- const { apiBase: t, appSecret: o } = Xe(), n = Ze(), e = bt();
89
- return await yt(e, "token", async () => {
87
+ const tt = async () => {
88
+ const { apiBase: t, appSecret: o } = Ze(), n = et(), e = wt();
89
+ return await kt(e, "token", async () => {
90
90
  const r = await n.get(`${t}/GenerateToken`, {
91
91
  params: {
92
92
  appid: "bpm",
@@ -97,8 +97,8 @@ const et = async () => {
97
97
  e.token = void 0;
98
98
  }, (r.data?.expireSeconds ?? 3600) * 1e3), r?.data?.token;
99
99
  });
100
- }, W = async () => {
101
- const t = await et(), o = Ze();
100
+ }, q = async () => {
101
+ const t = await tt(), o = et();
102
102
  return o.defaults.headers.common.Authorization = `Bearer ${t}`, o;
103
103
  }, De = {
104
104
  CurrentUserEmail: (t) => t.svrStore()?.userInfo?.email_address ?? "test.email@dataGetter.ts",
@@ -107,34 +107,34 @@ const et = async () => {
107
107
  ApproverEmail: (t) => t.svrStore()?.userInfo?.email_address ?? "test.email@dataGetter.ts",
108
108
  ApproverPositionCode: (t) => t.bpmStore()?.positionCode ?? 999,
109
109
  RejectReason: () => "Test Reject Reason"
110
- }, G = [];
110
+ }, Y = [];
111
111
  for (let t = 0; t < 256; ++t)
112
- G.push((t + 256).toString(16).slice(1));
113
- function xt(t, o = 0) {
114
- return (G[t[o + 0]] + G[t[o + 1]] + G[t[o + 2]] + G[t[o + 3]] + "-" + G[t[o + 4]] + G[t[o + 5]] + "-" + G[t[o + 6]] + G[t[o + 7]] + "-" + G[t[o + 8]] + G[t[o + 9]] + "-" + G[t[o + 10]] + G[t[o + 11]] + G[t[o + 12]] + G[t[o + 13]] + G[t[o + 14]] + G[t[o + 15]]).toLowerCase();
112
+ Y.push((t + 256).toString(16).slice(1));
113
+ function At(t, o = 0) {
114
+ return (Y[t[o + 0]] + Y[t[o + 1]] + Y[t[o + 2]] + Y[t[o + 3]] + "-" + Y[t[o + 4]] + Y[t[o + 5]] + "-" + Y[t[o + 6]] + Y[t[o + 7]] + "-" + Y[t[o + 8]] + Y[t[o + 9]] + "-" + Y[t[o + 10]] + Y[t[o + 11]] + Y[t[o + 12]] + Y[t[o + 13]] + Y[t[o + 14]] + Y[t[o + 15]]).toLowerCase();
115
115
  }
116
- let Re;
117
- const Vt = new Uint8Array(16);
118
- function At() {
119
- if (!Re) {
116
+ let Be;
117
+ const Tt = new Uint8Array(16);
118
+ function It() {
119
+ if (!Be) {
120
120
  if (typeof crypto > "u" || !crypto.getRandomValues)
121
121
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
122
- Re = crypto.getRandomValues.bind(crypto);
122
+ Be = crypto.getRandomValues.bind(crypto);
123
123
  }
124
- return Re(Vt);
124
+ return Be(Tt);
125
125
  }
126
- const Tt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ke = { randomUUID: Tt };
127
- function tt(t, o, n) {
128
- if (Ke.randomUUID && !t)
129
- return Ke.randomUUID();
126
+ const Pt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), We = { randomUUID: Pt };
127
+ function ot(t, o, n) {
128
+ if (We.randomUUID && !t)
129
+ return We.randomUUID();
130
130
  t = t || {};
131
- const e = t.random ?? t.rng?.() ?? At();
131
+ const e = t.random ?? t.rng?.() ?? It();
132
132
  if (e.length < 16)
133
133
  throw new Error("Random bytes length must be >= 16");
134
- return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, xt(e);
134
+ return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, At(e);
135
135
  }
136
- var J = /* @__PURE__ */ ((t) => (t[t.Submit = 0] = "Submit", t[t.Link = 1] = "Link", t[t.Button = 2] = "Button", t))(J || {}), me = /* @__PURE__ */ ((t) => (t[t.Create = 0] = "Create", t[t.Update = 1] = "Update", t[t.Details = 2] = "Details", t[t.List = 3] = "List", t[t.ReCreate = 5] = "ReCreate", t))(me || {});
137
- function It(t, o, n) {
136
+ var X = /* @__PURE__ */ ((t) => (t[t.Submit = 0] = "Submit", t[t.Link = 1] = "Link", t[t.Button = 2] = "Button", t))(X || {}), _e = /* @__PURE__ */ ((t) => (t[t.Create = 0] = "Create", t[t.Update = 1] = "Update", t[t.Details = 2] = "Details", t[t.List = 3] = "List", t[t.ReCreate = 5] = "ReCreate", t))(_e || {});
137
+ function Nt(t, o, n) {
138
138
  const e = {
139
139
  pageType: "",
140
140
  fields: {},
@@ -165,7 +165,7 @@ function It(t, o, n) {
165
165
  const i = a.showToRoles.split(",").map((c) => c.trim()), l = n.bpmStore().employeeInfo.roleList.some((c) => i.includes(c.name)) || a.showToRoles === "";
166
166
  if (a.widget === "Tab") {
167
167
  e.tabs || (e.tabs = []), l && e.tabs.push({
168
- key: tt(),
168
+ key: ot(),
169
169
  title: a.title,
170
170
  filters: a.filters ? JSON.parse(a.filters) : [],
171
171
  order: a.order
@@ -181,7 +181,7 @@ function It(t, o, n) {
181
181
  redirectUrl: a.redirectUrl,
182
182
  redirectType: a.redirectType,
183
183
  title: a.title,
184
- widget: a.widget === "Link" ? J.Link : a.widget === "Submit" ? J.Submit : J.Button,
184
+ widget: a.widget === "Link" ? X.Link : a.widget === "Submit" ? X.Submit : X.Button,
185
185
  location: a.location,
186
186
  attributeType: a.attributeType,
187
187
  readonly: a.readonly,
@@ -237,12 +237,12 @@ function It(t, o, n) {
237
237
  }), e.fields[a] = l;
238
238
  }), e.pageFields = r, e;
239
239
  }
240
- const We = async (t, o, n, e) => {
241
- const a = await (await W()).get(`/General/${o}/${t}/page`, { params: e });
242
- return It(a?.data, t, n);
243
- }, Pt = async (t, o, n) => (await (await W()).post(`/${o}/${t}/button/List`, null, { params: n }))?.data;
244
- async function Nt(t, o) {
245
- const e = await (await W()).post(`/General/${t}/list`, o);
240
+ const Ge = async (t, o, n, e) => {
241
+ const a = await (await q()).get(`/General/${o}/${t}/page`, { params: e });
242
+ return Nt(a?.data, t, n);
243
+ }, Ft = async (t, o, n) => (await (await q()).post(`/${o}/${t}/button/List`, null, { params: n }))?.data;
244
+ async function Ut(t, o) {
245
+ const e = await (await q()).post(`/General/${t}/list`, o);
246
246
  return {
247
247
  data: e.data.data,
248
248
  totalCount: e.data.totalCount
@@ -261,111 +261,111 @@ async function Nt(t, o) {
261
261
  // ),
262
262
  };
263
263
  }
264
- async function Ft(t, o, n) {
265
- return (await (await W()).post(n, o, {
264
+ async function Rt(t, o, n) {
265
+ return (await (await q()).post(n, o, {
266
266
  params: {
267
267
  className: t
268
268
  }
269
269
  })).data;
270
270
  }
271
- async function Ut(t, o, n, e) {
272
- const r = await W(), a = Me(e, o);
271
+ async function Dt(t, o, n, e) {
272
+ const r = await q(), a = Me(e, o);
273
273
  return (await r.put(a, n))?.data;
274
274
  }
275
275
  function Me(t, o) {
276
276
  return t.replace(/{WorkflowId}/g, encodeURIComponent(o));
277
277
  }
278
- function Dt(t, o) {
278
+ function Bt(t, o) {
279
279
  return t.replace(/{ApproverEmail}/g, encodeURIComponent(o));
280
280
  }
281
- function Rt(t, o) {
281
+ function Ht(t, o) {
282
282
  return t.replace(/{WorkFlowReason}/g, encodeURIComponent(o));
283
283
  }
284
- function Bt(t, o) {
284
+ function Lt(t, o) {
285
285
  return t.replace(/{Status}/g, o);
286
286
  }
287
- function Ht(t, o) {
287
+ function Ot(t, o) {
288
288
  return t.replace(/{IfTriggerGlobal_RandP_Approval}/g, o);
289
289
  }
290
- function Lt(t, o) {
290
+ function $t(t, o) {
291
291
  return t.replace(/{ClassName}/g, encodeURIComponent(o));
292
292
  }
293
- async function Ot(t, o, n, e, r, a, i, l) {
294
- const c = await W();
293
+ async function jt(t, o, n, e, r, a, i, l) {
294
+ const c = await q();
295
295
  let s = Me(r, o);
296
- return s = Dt(s, n), s = Rt(s, e), s = Bt(s, a), s = Ht(s, i), s = Lt(s, t), (await c.put(s, l))?.data;
296
+ return s = Bt(s, n), s = Ht(s, e), s = Lt(s, a), s = Ot(s, i), s = $t(s, t), (await c.put(s, l))?.data;
297
297
  }
298
- async function $t(t, o) {
299
- const r = (await (await W()).get(t, { params: { value: o } }))?.data;
298
+ async function Mt(t, o) {
299
+ const r = (await (await q()).get(t, { params: { value: o } }))?.data;
300
300
  return Object.entries(r).map(([a, i]) => ({
301
301
  value: a,
302
302
  label: i
303
303
  }));
304
304
  }
305
- async function jt(t, o) {
306
- return (await (await W()).get(`/General/${t}/${o}/process`))?.data;
305
+ async function Et(t, o) {
306
+ return (await (await q()).get(`/General/${t}/${o}/process`))?.data;
307
307
  }
308
- function Mt(t) {
308
+ function Kt(t) {
309
309
  return {
310
- uid: t.id ?? tt(),
310
+ uid: t.id ?? ot(),
311
311
  name: t.attachmentName ?? "unknown",
312
312
  url: t.attachmentKey ?? ""
313
313
  };
314
314
  }
315
- async function Et(t, o) {
316
- return (await (await W()).get(`/General/${t}/${o}/upload/get`))?.data.reduce((a, i) => {
315
+ async function zt(t, o) {
316
+ return (await (await q()).get(`/General/${t}/${o}/upload/get`))?.data.reduce((a, i) => {
317
317
  const { category: l } = i;
318
- return a[l] || (a[l] = []), a[l].push(Mt(i)), a;
318
+ return a[l] || (a[l] = []), a[l].push(Kt(i)), a;
319
319
  }, {});
320
320
  }
321
- async function zt(t, o) {
322
- return (await W()).post(`/General/${t}/${o}/delete/attachment`);
321
+ async function Wt(t, o) {
322
+ return (await q()).post(`/General/${t}/${o}/delete/attachment`);
323
323
  }
324
- async function Kt() {
325
- const o = await (await W()).get("/Grading/dropdown/approvers");
324
+ async function Gt() {
325
+ const o = await (await q()).get("/Grading/dropdown/approvers");
326
326
  return Object.entries(o?.data).map(([n, e]) => ({
327
327
  label: n,
328
328
  value: e
329
329
  }));
330
330
  }
331
- async function Wt(t, o) {
332
- return await (await W()).post(`Grading/AssignComments/${t}/${encodeURIComponent(o)}`);
331
+ async function qt(t, o) {
332
+ return await (await q()).post(`Grading/AssignComments/${t}/${encodeURIComponent(o)}`);
333
333
  }
334
- async function Gt(t, o, n) {
335
- return await (await W()).post(`Grading/AddComments/${t}/${encodeURIComponent(o)}`, n, {
334
+ async function Yt(t, o, n) {
335
+ return await (await q()).post(`Grading/AddComments/${t}/${encodeURIComponent(o)}`, n, {
336
336
  headers: { "Content-Type": "application/json;charset=UTF-8" }
337
337
  });
338
338
  }
339
- async function qt(t) {
340
- return (await (await W()).get(`Grading/GetComments/${t}`))?.data;
339
+ async function Qt(t) {
340
+ return (await (await q()).get(`Grading/GetComments/${t}`))?.data;
341
341
  }
342
- async function Yt(t) {
343
- return (await (await W()).get(`Grading/GetAssociator/${t}`))?.data;
342
+ async function Jt(t) {
343
+ return (await (await q()).get(`Grading/GetAssociator/${t}`))?.data;
344
344
  }
345
- async function Qt(t) {
346
- return await (await W()).delete(`Grading/DeleteAssociator/${t}`);
345
+ async function Xt(t) {
346
+ return await (await q()).delete(`Grading/DeleteAssociator/${t}`);
347
347
  }
348
- async function Jt(t, o = null) {
349
- const e = await (await W()).post(t, o, {
348
+ async function Zt(t, o = null) {
349
+ const e = await (await q()).post(t, o, {
350
350
  responseType: "blob"
351
351
  });
352
- ht(e?.data, "WorkflowData.xlsx");
352
+ Ct(e?.data, "WorkflowData.xlsx");
353
353
  }
354
- const ve = (t, o) => {
354
+ const ye = (t, o) => {
355
355
  let n = "";
356
356
  return { res: t.every((r) => {
357
- const a = Xt(r, o);
357
+ const a = eo(r, o);
358
358
  return a || (n = r.errorMessage), a;
359
359
  }), errorMessages: n };
360
- }, Xt = (t, o) => {
360
+ }, eo = (t, o) => {
361
361
  const { ruleName: n, ruleParameter: e } = t;
362
- return Zt[n](e, o);
363
- }, Zt = {
362
+ return to[n](e, o);
363
+ }, to = {
364
364
  Regex: (t, o) => new RegExp(t).test(o),
365
365
  Required: (t, o) => !!o
366
- }, eo = /* @__PURE__ */ z({
366
+ }, oo = /* @__PURE__ */ z({
367
367
  __name: "InputText",
368
- props: /* @__PURE__ */ le({
368
+ props: /* @__PURE__ */ ce({
369
369
  fieldKey: {},
370
370
  modelValue: {},
371
371
  config: {},
@@ -376,9 +376,9 @@ const ve = (t, o) => {
376
376
  modelValue: {},
377
377
  modelModifiers: {}
378
378
  }),
379
- emits: /* @__PURE__ */ le(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
379
+ emits: /* @__PURE__ */ ce(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
380
380
  setup(t, { expose: o, emit: n }) {
381
- const e = t, r = n, a = he(t, "modelValue"), i = (d) => ve(e.validations, d), l = (d) => {
381
+ const e = t, r = n, a = ke(t, "modelValue"), i = (d) => ye(e.validations, d), l = (d) => {
382
382
  r("input", d);
383
383
  }, c = (d) => {
384
384
  const g = i(d);
@@ -395,15 +395,15 @@ const ve = (t, o) => {
395
395
  const s = { props: e, emits: r, model: a, validate: i, inputHandler: l, changeHandler: c };
396
396
  return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
397
397
  }
398
- }), Y = (t, o) => {
398
+ }), J = (t, o) => {
399
399
  const n = t.__vccOpts || t;
400
400
  for (const [e, r] of o)
401
401
  n[e] = r;
402
402
  return n;
403
403
  };
404
- function to(t, o, n, e, r, a) {
405
- const i = x("AInput");
406
- return u(), R(i, {
404
+ function no(t, o, n, e, r, a) {
405
+ const i = V("AInput");
406
+ return u(), D(i, {
407
407
  modelValue: e.model,
408
408
  "onUpdate:modelValue": o[0] || (o[0] = (l) => e.model = l),
409
409
  "allow-clear": "",
@@ -412,9 +412,9 @@ function to(t, o, n, e, r, a) {
412
412
  onChange: e.changeHandler
413
413
  }, null, 8, ["modelValue", "disabled"]);
414
414
  }
415
- const Ge = /* @__PURE__ */ Y(eo, [["render", to], ["__file", "InputText.vue"]]), oo = /* @__PURE__ */ z({
415
+ const qe = /* @__PURE__ */ J(oo, [["render", no], ["__file", "InputText.vue"]]), ao = /* @__PURE__ */ z({
416
416
  __name: "InputNumber",
417
- props: /* @__PURE__ */ le({
417
+ props: /* @__PURE__ */ ce({
418
418
  fieldKey: {},
419
419
  modelValue: {},
420
420
  config: {},
@@ -425,19 +425,19 @@ const Ge = /* @__PURE__ */ Y(eo, [["render", to], ["__file", "InputText.vue"]]),
425
425
  modelValue: {},
426
426
  modelModifiers: {}
427
427
  }),
428
- emits: /* @__PURE__ */ le(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
428
+ emits: /* @__PURE__ */ ce(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
429
429
  setup(t, { expose: o, emit: n }) {
430
- const e = t, r = n, a = he(t, "modelValue"), i = m(100), l = m(1);
430
+ const e = t, r = n, a = ke(t, "modelValue"), i = m(100), l = m(1);
431
431
  fe(() => {
432
432
  e.validations && e.validations.forEach((v) => {
433
433
  v.ruleName === "Max" && (i.value = v.ruleParameter), v.ruleName === "Min" && (l.value = v.ruleParameter);
434
434
  });
435
435
  });
436
- const c = (v) => ve(e.validations, v), s = (v) => {
436
+ const c = (v) => ye(e.validations, v), s = (v) => {
437
437
  r("input", v);
438
438
  }, d = (v) => {
439
- const y = c(v);
440
- r("error", y.res ? "" : y.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((f) => {
439
+ const b = c(v);
440
+ r("error", b.res ? "" : b.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((f) => {
441
441
  f.event === "change" && r(f.event, f.handlerName, v);
442
442
  });
443
443
  };
@@ -451,9 +451,9 @@ const Ge = /* @__PURE__ */ Y(eo, [["render", to], ["__file", "InputText.vue"]]),
451
451
  return Object.defineProperty(g, "__isScriptSetup", { enumerable: !1, value: !0 }), g;
452
452
  }
453
453
  });
454
- function no(t, o, n, e, r, a) {
455
- const i = x("AInputNumber");
456
- return u(), R(i, {
454
+ function ro(t, o, n, e, r, a) {
455
+ const i = V("AInputNumber");
456
+ return u(), D(i, {
457
457
  modelValue: e.model,
458
458
  "onUpdate:modelValue": o[0] || (o[0] = (l) => e.model = l),
459
459
  clearable: "",
@@ -463,9 +463,9 @@ function no(t, o, n, e, r, a) {
463
463
  onChange: e.changeHandler
464
464
  }, null, 8, ["modelValue", "disabled", "min"]);
465
465
  }
466
- const ao = /* @__PURE__ */ Y(oo, [["render", no], ["__file", "InputNumber.vue"]]), ro = /* @__PURE__ */ z({
466
+ const so = /* @__PURE__ */ J(ao, [["render", ro], ["__file", "InputNumber.vue"]]), io = /* @__PURE__ */ z({
467
467
  __name: "SelectList",
468
- props: /* @__PURE__ */ le({
468
+ props: /* @__PURE__ */ ce({
469
469
  fieldKey: {},
470
470
  modelValue: {},
471
471
  config: {},
@@ -476,45 +476,45 @@ const ao = /* @__PURE__ */ Y(oo, [["render", no], ["__file", "InputNumber.vue"]]
476
476
  modelValue: {},
477
477
  modelModifiers: {}
478
478
  }),
479
- emits: /* @__PURE__ */ le(["update:modelValue", "change"], ["update:modelValue"]),
479
+ emits: /* @__PURE__ */ ce(["update:modelValue", "change"], ["update:modelValue"]),
480
480
  setup(t, { expose: o, emit: n }) {
481
- const e = t, r = n, a = m(!1), i = m(e.config.options ?? []), l = he(t, "modelValue"), c = (y) => ve(e.validations, y), s = E(() => {
482
- const y = {};
481
+ const e = t, r = n, a = m(!1), i = m(e.config.options ?? []), l = ke(t, "modelValue"), c = (b) => ye(e.validations, b), s = K(() => {
482
+ const b = {};
483
483
  return e.triggers && e.triggers.length > 0 && e.triggers.forEach((f) => {
484
- y[f.event] = (p) => {
484
+ b[f.event] = (p) => {
485
485
  r(f.event, f.handlerName, p);
486
- const C = c(p);
487
- r("error", C.res ? "" : C.errorMessages);
486
+ const h = c(p);
487
+ r("error", h.res ? "" : h.errorMessages);
488
488
  };
489
- }), y;
489
+ }), b;
490
490
  }), d = async () => {
491
491
  if (e.config.dataSourceProvider) {
492
- i.value = await $t(e.config.dataSourceProvider);
493
- const y = e.modelValue;
494
- y != null && y !== "" && (i.value.some((p) => p.value === y) || r("update:modelValue", ""));
492
+ i.value = await Mt(e.config.dataSourceProvider);
493
+ const b = e.modelValue;
494
+ b != null && b !== "" && (i.value.some((p) => p.value === b) || r("update:modelValue", ""));
495
495
  }
496
496
  };
497
497
  fe(d);
498
- const g = (y) => {
499
- r("update:modelValue", y);
500
- const f = c(y);
498
+ const g = (b) => {
499
+ r("update:modelValue", b);
500
+ const f = c(b);
501
501
  r("error", f.res ? "" : f.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((p) => {
502
- p.event === "change" && r(p.event, p.handlerName, y);
502
+ p.event === "change" && r(p.event, p.handlerName, b);
503
503
  });
504
504
  };
505
505
  o({
506
506
  validate() {
507
- const y = c(e.modelValue);
508
- return r("error", y.res ? "" : y.errorMessages), y.res;
507
+ const b = c(e.modelValue);
508
+ return r("error", b.res ? "" : b.errorMessages), b.res;
509
509
  }
510
510
  });
511
511
  const v = { props: e, emits: r, loading: a, _options: i, model: l, validate: c, eventHandlers: s, loadOptions: d, changeHandler: g };
512
512
  return Object.defineProperty(v, "__isScriptSetup", { enumerable: !1, value: !0 }), v;
513
513
  }
514
514
  });
515
- function so(t, o, n, e, r, a) {
516
- const i = x("AOption"), l = x("ASelect");
517
- return u(), R(l, {
515
+ function lo(t, o, n, e, r, a) {
516
+ const i = V("AOption"), l = V("ASelect");
517
+ return u(), D(l, {
518
518
  "allow-clear": "",
519
519
  modelValue: e.model,
520
520
  "onUpdate:modelValue": o[0] || (o[0] = (c) => e.model = c),
@@ -524,8 +524,8 @@ function so(t, o, n, e, r, a) {
524
524
  disabled: e.props.config.readonly,
525
525
  onChange: e.changeHandler
526
526
  }, {
527
- default: S(() => [
528
- (u(!0), _($, null, j(e._options, (c) => (u(), R(i, {
527
+ default: x(() => [
528
+ (u(!0), _(O, null, M(e._options, (c) => (u(), D(i, {
529
529
  key: c.value,
530
530
  value: c.value,
531
531
  label: c.label
@@ -534,7 +534,7 @@ function so(t, o, n, e, r, a) {
534
534
  _: 1
535
535
  }, 8, ["modelValue", "loading", "disabled"]);
536
536
  }
537
- const qe = /* @__PURE__ */ Y(ro, [["render", so], ["__file", "SelectList.vue"]]), io = /* @__PURE__ */ z({
537
+ const Ye = /* @__PURE__ */ J(io, [["render", lo], ["__file", "SelectList.vue"]]), co = /* @__PURE__ */ z({
538
538
  __name: "Cascader",
539
539
  props: {
540
540
  modelValue: {},
@@ -549,7 +549,7 @@ const qe = /* @__PURE__ */ Y(ro, [["render", so], ["__file", "SelectList.vue"]])
549
549
  if (e.config) {
550
550
  const s = e.config.dataSourceProvider;
551
551
  if (s) {
552
- const g = await (await W()).get(s);
552
+ const g = await (await q()).get(s);
553
553
  a.value = g.data;
554
554
  }
555
555
  }
@@ -564,14 +564,14 @@ const qe = /* @__PURE__ */ Y(ro, [["render", so], ["__file", "SelectList.vue"]])
564
564
  return Object.defineProperty(c, "__isScriptSetup", { enumerable: !1, value: !0 }), c;
565
565
  }
566
566
  });
567
- function lo(t, o, n, e, r, a) {
568
- const i = x("ACascader"), l = x("ASpace");
569
- return u(), R(l, {
567
+ function uo(t, o, n, e, r, a) {
568
+ const i = V("ACascader"), l = V("ASpace");
569
+ return u(), D(l, {
570
570
  direction: "vertical",
571
571
  size: "large"
572
572
  }, {
573
- default: S(() => [
574
- N(i, {
573
+ default: x(() => [
574
+ F(i, {
575
575
  "field-names": e.fieldNames,
576
576
  "model-value": n.modelValue,
577
577
  options: e._options,
@@ -583,7 +583,7 @@ function lo(t, o, n, e, r, a) {
583
583
  _: 1
584
584
  });
585
585
  }
586
- const co = /* @__PURE__ */ Y(io, [["render", lo], ["__file", "Cascader.vue"]]), uo = /* @__PURE__ */ z({
586
+ const fo = /* @__PURE__ */ J(co, [["render", uo], ["__file", "Cascader.vue"]]), po = /* @__PURE__ */ z({
587
587
  __name: "FileUpload",
588
588
  props: {
589
589
  className: {},
@@ -598,66 +598,66 @@ const co = /* @__PURE__ */ Y(io, [["render", lo], ["__file", "Cascader.vue"]]),
598
598
  setup(t, { expose: o, emit: n }) {
599
599
  const e = t, r = n, a = m({});
600
600
  fe(async () => {
601
- const V = await et();
601
+ const A = await tt();
602
602
  a.value = {
603
- Authorization: `Bearer ${V}`
603
+ Authorization: `Bearer ${A}`
604
604
  };
605
605
  });
606
- const i = (V) => ve(e.validations, V), l = je(), c = l.apiBase, s = m(null), d = m("");
607
- function g(V, h, k) {
608
- return V.replace(/{WorkflowId}/g, h).replace(/{ClassName}/g, k);
606
+ const i = (A) => ye(e.validations, A), l = je(), c = l.apiBase, s = m(null), d = m("");
607
+ function g(A, k, C) {
608
+ return A.replace(/{WorkflowId}/g, k).replace(/{ClassName}/g, C);
609
609
  }
610
- const v = E(() => {
610
+ const v = K(() => {
611
611
  if (e.config.uploadURL) {
612
- const V = c + e.config.uploadURL;
613
- return g(V, d.value, e.className);
612
+ const A = c + e.config.uploadURL;
613
+ return g(A, d.value, e.className);
614
614
  }
615
615
  return "";
616
- }), y = (V) => {
617
- V.stopPropagation(), s.value.submit();
616
+ }), b = (A) => {
617
+ A.stopPropagation(), s.value.submit();
618
618
  };
619
- function f(V) {
620
- const { file: h, name: k } = V, T = k ?? h.name;
621
- return new Promise((A, U) => {
622
- _t.confirm({
619
+ function f(A) {
620
+ const { file: k, name: C } = A, T = C ?? k.name;
621
+ return new Promise((S, U) => {
622
+ bt.confirm({
623
623
  title: "Confirm Delete",
624
624
  content: `Are you sure you want to delete ${T}?`,
625
625
  async onOk() {
626
- if (V.status !== "init" && e.config.removeFile)
627
- return await e.config.removeFile(V.uid), A(!0);
628
- A(!0);
626
+ if (A.status !== "init" && e.config.removeFile)
627
+ return await e.config.removeFile(A.uid), S(!0);
628
+ S(!0);
629
629
  },
630
630
  onCancel: () => U("cancel")
631
631
  });
632
632
  });
633
633
  }
634
- const p = m(null), C = m(null), X = (V) => {
635
- p.value && (p.value(V), p.value = null, C.value = null);
636
- }, ee = (V) => {
637
- C.value && (C.value(V), p.value = null, C.value = null);
638
- }, M = m([]), Z = (V) => {
639
- M.value = V.filter((h) => h.status === "init");
634
+ const p = m(null), h = m(null), Z = (A) => {
635
+ p.value && (p.value(A), p.value = null, h.value = null);
636
+ }, oe = (A) => {
637
+ h.value && (h.value(A), p.value = null, h.value = null);
638
+ }, E = m([]), ee = (A) => {
639
+ E.value = A.filter((k) => k.status === "init");
640
640
  };
641
641
  o({
642
- submit(V) {
643
- return new Promise((h, k) => {
644
- s.value ? (e.config.uploadURL && (d.value = V), p.value = h, C.value = k, M.value.length ? ut(() => {
642
+ submit(A) {
643
+ return new Promise((k, C) => {
644
+ s.value ? (e.config.uploadURL && (d.value = A), p.value = k, h.value = C, E.value.length ? pt(() => {
645
645
  s.value?.submit();
646
- }) : h(V)) : h(V);
646
+ }) : k(A)) : k(A);
647
647
  });
648
648
  },
649
649
  validate() {
650
- const V = e.config.files ?? [], h = [...M.value, ...V].length > 0 ? "hasFile" : "", k = i(h);
651
- return r("error", k.res ? "" : k.errorMessages), k.res;
650
+ const A = e.config.files ?? [], k = [...E.value, ...A].length > 0 ? "hasFile" : "", C = i(k);
651
+ return r("error", C.res ? "" : C.errorMessages), C.res;
652
652
  }
653
653
  });
654
- const ie = { props: e, emits: r, headers: a, validate: i, config: l, ApiBase: c, uploadRef: s, id: d, replaceIdAndClassName: g, action: v, submit: y, onBeforeRemove: f, uploadPromiseResolve: p, uploadPromiseReject: C, handleUploadSuccess: X, handleUploadError: ee, readyFiles: M, onChange: Z };
655
- return Object.defineProperty(ie, "__isScriptSetup", { enumerable: !1, value: !0 }), ie;
654
+ const ne = { props: e, emits: r, headers: a, validate: i, config: l, ApiBase: c, uploadRef: s, id: d, replaceIdAndClassName: g, action: v, submit: b, onBeforeRemove: f, uploadPromiseResolve: p, uploadPromiseReject: h, handleUploadSuccess: Z, handleUploadError: oe, readyFiles: E, onChange: ee };
655
+ return Object.defineProperty(ne, "__isScriptSetup", { enumerable: !1, value: !0 }), ne;
656
656
  }
657
657
  });
658
- function fo(t, o, n, e, r, a) {
659
- const i = x("a-button"), l = x("a-upload");
660
- return u(), R(l, {
658
+ function mo(t, o, n, e, r, a) {
659
+ const i = V("a-button"), l = V("a-upload");
660
+ return u(), D(l, {
661
661
  ref: "uploadRef",
662
662
  "default-file-list": e.props.config.files,
663
663
  action: e.action,
@@ -670,11 +670,11 @@ function fo(t, o, n, e, r, a) {
670
670
  onSuccess: e.handleUploadSuccess,
671
671
  onError: e.handleUploadError
672
672
  }, {
673
- "start-icon": S(() => o[0] || (o[0] = [])),
674
- "upload-button": S(() => [
675
- N(i, { type: "primary" }, {
676
- default: S(() => o[1] || (o[1] = [
677
- re("Select File", -1)
673
+ "start-icon": x(() => o[0] || (o[0] = [])),
674
+ "upload-button": x(() => [
675
+ F(i, { type: "primary" }, {
676
+ default: x(() => o[1] || (o[1] = [
677
+ ae("Select File", -1)
678
678
  ])),
679
679
  _: 1,
680
680
  __: [1]
@@ -683,7 +683,7 @@ function fo(t, o, n, e, r, a) {
683
683
  _: 1
684
684
  }, 8, ["default-file-list", "action", "limit", "headers"]);
685
685
  }
686
- const po = /* @__PURE__ */ Y(uo, [["render", fo], ["__file", "FileUpload.vue"]]), mo = /* @__PURE__ */ z({
686
+ const go = /* @__PURE__ */ J(po, [["render", mo], ["__file", "FileUpload.vue"]]), _o = /* @__PURE__ */ z({
687
687
  __name: "TextArea",
688
688
  props: {
689
689
  fieldKey: {},
@@ -695,7 +695,7 @@ const po = /* @__PURE__ */ Y(uo, [["render", fo], ["__file", "FileUpload.vue"]])
695
695
  },
696
696
  emits: ["update:modelValue", "change", "error", "input"],
697
697
  setup(t, { expose: o, emit: n }) {
698
- const e = t, r = n, a = (s) => ve(e.validations, s), i = (s) => {
698
+ const e = t, r = n, a = (s) => ye(e.validations, s), i = (s) => {
699
699
  r("update:modelValue", s), r("input", s);
700
700
  }, l = (s) => {
701
701
  r("update:modelValue", s);
@@ -714,9 +714,9 @@ const po = /* @__PURE__ */ Y(uo, [["render", fo], ["__file", "FileUpload.vue"]])
714
714
  return Object.defineProperty(c, "__isScriptSetup", { enumerable: !1, value: !0 }), c;
715
715
  }
716
716
  });
717
- function go(t, o, n, e, r, a) {
718
- const i = x("ATextarea");
719
- return u(), R(i, {
717
+ function vo(t, o, n, e, r, a) {
718
+ const i = V("ATextarea");
719
+ return u(), D(i, {
720
720
  "model-value": e.props.modelValue,
721
721
  placeholder: "Please enter something",
722
722
  "allow-clear": "",
@@ -725,9 +725,9 @@ function go(t, o, n, e, r, a) {
725
725
  onChange: e.changeHandler
726
726
  }, null, 8, ["model-value", "disabled"]);
727
727
  }
728
- const _o = /* @__PURE__ */ Y(mo, [["render", go], ["__file", "TextArea.vue"]]), vo = /* @__PURE__ */ z({
728
+ const bo = /* @__PURE__ */ J(_o, [["render", vo], ["__file", "TextArea.vue"]]), yo = /* @__PURE__ */ z({
729
729
  __name: "CheckBox",
730
- props: /* @__PURE__ */ le({
730
+ props: /* @__PURE__ */ ce({
731
731
  fieldKey: {},
732
732
  modelValue: {},
733
733
  config: {},
@@ -738,9 +738,9 @@ const _o = /* @__PURE__ */ Y(mo, [["render", go], ["__file", "TextArea.vue"]]),
738
738
  modelValue: {},
739
739
  modelModifiers: {}
740
740
  }),
741
- emits: /* @__PURE__ */ le(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
741
+ emits: /* @__PURE__ */ ce(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
742
742
  setup(t, { expose: o, emit: n }) {
743
- const e = t, r = n, a = he(t, "modelValue"), i = (s) => ve(e.validations, s), l = (s) => {
743
+ const e = t, r = n, a = ke(t, "modelValue"), i = (s) => ye(e.validations, s), l = (s) => {
744
744
  const d = i(s);
745
745
  r("error", d.res ? "" : d.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((g) => {
746
746
  g.event === "change" && r(g.event, g.handlerName, s);
@@ -756,36 +756,36 @@ const _o = /* @__PURE__ */ Y(mo, [["render", go], ["__file", "TextArea.vue"]]),
756
756
  return Object.defineProperty(c, "__isScriptSetup", { enumerable: !1, value: !0 }), c;
757
757
  }
758
758
  });
759
- function bo(t, o, n, e, r, a) {
760
- const i = x("ACheckbox");
761
- return u(), R(i, {
759
+ function wo(t, o, n, e, r, a) {
760
+ const i = V("ACheckbox");
761
+ return u(), D(i, {
762
762
  modelValue: e.model,
763
763
  "onUpdate:modelValue": o[0] || (o[0] = (l) => e.model = l),
764
764
  clearable: "",
765
765
  disabled: e.props.readonly || e.props.config.Readonly,
766
766
  onChange: e.changeHandler
767
767
  }, {
768
- default: S(() => o[1] || (o[1] = [
769
- re("Yes", -1)
768
+ default: x(() => o[1] || (o[1] = [
769
+ ae("Yes", -1)
770
770
  ])),
771
771
  _: 1,
772
772
  __: [1]
773
773
  }, 8, ["modelValue", "disabled"]);
774
774
  }
775
- const wo = /* @__PURE__ */ Y(vo, [["render", bo], ["__file", "CheckBox.vue"]]), yo = Symbol("ArcoConfigProvider"), ho = "arco", ko = "$arco", ot = (t) => {
775
+ const ho = /* @__PURE__ */ J(yo, [["render", wo], ["__file", "CheckBox.vue"]]), ko = Symbol("ArcoConfigProvider"), Co = "arco", So = "$arco", nt = (t) => {
776
776
  var o, n, e;
777
- const r = ge(), a = _e(yo, void 0);
778
- return `${(e = (n = a?.prefixCls) != null ? n : (o = r?.appContext.config.globalProperties[ko]) == null ? void 0 : o.classPrefix) != null ? e : ho}-${t}`;
779
- }, Co = Object.prototype.toString;
780
- function nt(t) {
781
- return Co.call(t) === "[object Number]" && t === t;
777
+ const r = ve(), a = be(ko, void 0);
778
+ return `${(e = (n = a?.prefixCls) != null ? n : (o = r?.appContext.config.globalProperties[So]) == null ? void 0 : o.classPrefix) != null ? e : Co}-${t}`;
779
+ }, xo = Object.prototype.toString;
780
+ function at(t) {
781
+ return xo.call(t) === "[object Number]" && t === t;
782
782
  }
783
- var at = (t, o) => {
783
+ var rt = (t, o) => {
784
784
  for (const [n, e] of o)
785
785
  t[n] = e;
786
786
  return t;
787
787
  };
788
- const So = z({
788
+ const Vo = z({
789
789
  name: "IconQuestionCircle",
790
790
  props: {
791
791
  size: {
@@ -812,9 +812,9 @@ const So = z({
812
812
  click: (t) => !0
813
813
  },
814
814
  setup(t, { emit: o }) {
815
- const n = ot("icon"), e = E(() => [n, `${n}-question-circle`, { [`${n}-spin`]: t.spin }]), r = E(() => {
815
+ const n = nt("icon"), e = K(() => [n, `${n}-question-circle`, { [`${n}-spin`]: t.spin }]), r = K(() => {
816
816
  const i = {};
817
- return t.size && (i.fontSize = nt(t.size) ? `${t.size}px` : t.size), t.rotate && (i.transform = `rotate(${t.rotate}deg)`), i;
817
+ return t.size && (i.fontSize = at(t.size) ? `${t.size}px` : t.size), t.rotate && (i.transform = `rotate(${t.rotate}deg)`), i;
818
818
  });
819
819
  return {
820
820
  cls: e,
@@ -824,32 +824,32 @@ const So = z({
824
824
  }
825
825
  };
826
826
  }
827
- }), xo = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
828
- function Vo(t, o, n, e, r, a) {
827
+ }), Ao = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
828
+ function To(t, o, n, e, r, a) {
829
829
  return u(), _("svg", {
830
830
  viewBox: "0 0 48 48",
831
831
  fill: "none",
832
832
  xmlns: "http://www.w3.org/2000/svg",
833
833
  stroke: "currentColor",
834
- class: Je(t.cls),
835
- style: Qe(t.innerStyle),
834
+ class: Xe(t.cls),
835
+ style: Je(t.innerStyle),
836
836
  "stroke-width": t.strokeWidth,
837
837
  "stroke-linecap": t.strokeLinecap,
838
838
  "stroke-linejoin": t.strokeLinejoin,
839
839
  onClick: o[0] || (o[0] = (...i) => t.onClick && t.onClick(...i))
840
840
  }, o[1] || (o[1] = [
841
- w("path", { d: "M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z" }, null, -1),
842
- w("path", { d: "M24.006 31v4.008m0-6.008L24 28c0-3 3-4 4.78-6.402C30.558 19.195 28.288 15 23.987 15c-4.014 0-5.382 2.548-5.388 4.514v.465" }, null, -1)
843
- ]), 14, xo);
841
+ y("path", { d: "M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z" }, null, -1),
842
+ y("path", { d: "M24.006 31v4.008m0-6.008L24 28c0-3 3-4 4.78-6.402C30.558 19.195 28.288 15 23.987 15c-4.014 0-5.382 2.548-5.388 4.514v.465" }, null, -1)
843
+ ]), 14, Ao);
844
844
  }
845
- var Be = /* @__PURE__ */ at(So, [["render", Vo]]);
846
- const Ao = Object.assign(Be, {
845
+ var He = /* @__PURE__ */ rt(Vo, [["render", To]]);
846
+ const Io = Object.assign(He, {
847
847
  install: (t, o) => {
848
848
  var n;
849
849
  const e = (n = o?.iconPrefix) != null ? n : "";
850
- t.component(e + Be.name, Be);
850
+ t.component(e + He.name, He);
851
851
  }
852
- }), To = z({
852
+ }), Po = z({
853
853
  name: "IconDownload",
854
854
  props: {
855
855
  size: {
@@ -876,9 +876,9 @@ const Ao = Object.assign(Be, {
876
876
  click: (t) => !0
877
877
  },
878
878
  setup(t, { emit: o }) {
879
- const n = ot("icon"), e = E(() => [n, `${n}-download`, { [`${n}-spin`]: t.spin }]), r = E(() => {
879
+ const n = nt("icon"), e = K(() => [n, `${n}-download`, { [`${n}-spin`]: t.spin }]), r = K(() => {
880
880
  const i = {};
881
- return t.size && (i.fontSize = nt(t.size) ? `${t.size}px` : t.size), t.rotate && (i.transform = `rotate(${t.rotate}deg)`), i;
881
+ return t.size && (i.fontSize = at(t.size) ? `${t.size}px` : t.size), t.rotate && (i.transform = `rotate(${t.rotate}deg)`), i;
882
882
  });
883
883
  return {
884
884
  cls: e,
@@ -888,31 +888,31 @@ const Ao = Object.assign(Be, {
888
888
  }
889
889
  };
890
890
  }
891
- }), Io = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
892
- function Po(t, o, n, e, r, a) {
891
+ }), No = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
892
+ function Fo(t, o, n, e, r, a) {
893
893
  return u(), _("svg", {
894
894
  viewBox: "0 0 48 48",
895
895
  fill: "none",
896
896
  xmlns: "http://www.w3.org/2000/svg",
897
897
  stroke: "currentColor",
898
- class: Je(t.cls),
899
- style: Qe(t.innerStyle),
898
+ class: Xe(t.cls),
899
+ style: Je(t.innerStyle),
900
900
  "stroke-width": t.strokeWidth,
901
901
  "stroke-linecap": t.strokeLinecap,
902
902
  "stroke-linejoin": t.strokeLinejoin,
903
903
  onClick: o[0] || (o[0] = (...i) => t.onClick && t.onClick(...i))
904
904
  }, o[1] || (o[1] = [
905
- w("path", { d: "m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6" }, null, -1)
906
- ]), 14, Io);
905
+ y("path", { d: "m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6" }, null, -1)
906
+ ]), 14, No);
907
907
  }
908
- var He = /* @__PURE__ */ at(To, [["render", Po]]);
909
- const No = Object.assign(He, {
908
+ var Le = /* @__PURE__ */ rt(Po, [["render", Fo]]);
909
+ const Uo = Object.assign(Le, {
910
910
  install: (t, o) => {
911
911
  var n;
912
912
  const e = (n = o?.iconPrefix) != null ? n : "";
913
- t.component(e + He.name, He);
913
+ t.component(e + Le.name, Le);
914
914
  }
915
- }), Fo = /* @__PURE__ */ z({
915
+ }), Ro = /* @__PURE__ */ z({
916
916
  __name: "ToolTip",
917
917
  props: {
918
918
  isVisible: { type: Boolean },
@@ -920,49 +920,50 @@ const No = Object.assign(He, {
920
920
  },
921
921
  setup(t, { expose: o }) {
922
922
  o();
923
- const n = t, e = (l) => l.length > 0 && typeof l[0] != "string", r = E(() => e(n.outputText) ? [] : n.outputText), a = E(() => e(n.outputText) ? n.outputText : []), i = { props: n, isTreeArray: e, stringOutput: r, treeOutput: a, get IconQuestionCircle() {
924
- return Ao;
923
+ const n = t, e = (l) => l.length > 0 && typeof l[0] != "string", r = K(() => e(n.outputText) ? [] : n.outputText), a = K(() => e(n.outputText) ? n.outputText : []), i = { props: n, isTreeArray: e, stringOutput: r, treeOutput: a, get IconQuestionCircle() {
924
+ return Io;
925
925
  } };
926
926
  return Object.defineProperty(i, "__isScriptSetup", { enumerable: !1, value: !0 }), i;
927
927
  }
928
- }), Uo = { class: "list-unstyled" }, Do = { class: "list-style-square" };
929
- function Ro(t, o, n, e, r, a) {
930
- const i = x("a-tooltip");
931
- return e.props.isVisible ? (u(), R(i, {
928
+ }), Do = { class: "list-unstyled" }, Bo = { class: "list-style-square" };
929
+ function Ho(t, o, n, e, r, a) {
930
+ const i = V("a-tooltip");
931
+ return e.props.isVisible ? (u(), D(i, {
932
932
  key: 0,
933
933
  "background-color": "#7A00E6"
934
934
  }, {
935
- content: S(() => [
936
- e.stringOutput.length ? (u(!0), _($, { key: 0 }, j(e.stringOutput, (l) => (u(), _("p", { key: l }, q(l), 1))), 128)) : (u(!0), _($, { key: 1 }, j(e.treeOutput, (l) => (u(), _("ul", {
935
+ content: x(() => [
936
+ e.stringOutput.length ? (u(!0), _(O, { key: 0 }, M(e.stringOutput, (l) => (u(), _("p", { key: l }, Q(l), 1))), 128)) : (u(!0), _(O, { key: 1 }, M(e.treeOutput, (l) => (u(), _("ul", {
937
937
  key: l.title,
938
938
  class: "list-unstyled"
939
939
  }, [
940
- w("li", null, [
941
- w("b", null, q(l.title), 1),
942
- w("ul", Uo, [
943
- (u(!0), _($, null, j(l.items, (c) => (u(), _("li", {
940
+ y("li", null, [
941
+ y("b", null, Q(l.title), 1),
942
+ y("ul", Do, [
943
+ (u(!0), _(O, null, M(l.items, (c) => (u(), _("li", {
944
944
  key: c.title
945
945
  }, [
946
- w("u", null, q(c.title), 1),
947
- w("ul", Do, [
948
- (u(!0), _($, null, j(c.items, (s) => (u(), _("li", null, q(s), 1))), 256))
946
+ y("u", null, Q(c.title), 1),
947
+ y("ul", Bo, [
948
+ (u(!0), _(O, null, M(c.items, (s) => (u(), _("li", null, Q(s), 1))), 256))
949
949
  ])
950
950
  ]))), 128))
951
951
  ])
952
952
  ])
953
953
  ]))), 128))
954
954
  ]),
955
- default: S(() => [
956
- N(e.IconQuestionCircle, { class: "icon" })
955
+ default: x(() => [
956
+ F(e.IconQuestionCircle, { class: "icon" })
957
957
  ]),
958
958
  _: 1
959
- })) : se("", !0);
959
+ })) : re("", !0);
960
960
  }
961
- const rt = /* @__PURE__ */ Y(Fo, [["render", Ro], ["__scopeId", "data-v-1d3893b1"], ["__file", "ToolTip.vue"]]), Bo = /* @__PURE__ */ z({
961
+ const st = /* @__PURE__ */ J(Ro, [["render", Ho], ["__scopeId", "data-v-1d3893b1"], ["__file", "ToolTip.vue"]]), Lo = /* @__PURE__ */ z({
962
962
  __name: "index",
963
- props: /* @__PURE__ */ le({
963
+ props: /* @__PURE__ */ ce({
964
964
  config: {},
965
965
  className: {},
966
+ required: { type: Boolean },
966
967
  fieldKey: {},
967
968
  modelValue: {},
968
969
  readonly: { type: Boolean },
@@ -972,28 +973,28 @@ const rt = /* @__PURE__ */ Y(Fo, [["render", Ro], ["__scopeId", "data-v-1d3893b1
972
973
  modelValue: {},
973
974
  modelModifiers: {}
974
975
  }),
975
- emits: /* @__PURE__ */ le(["update:modelValue", "change", "error"], ["update:modelValue"]),
976
+ emits: /* @__PURE__ */ ce(["update:modelValue", "change", "error"], ["update:modelValue"]),
976
977
  setup(t, { expose: o, emit: n }) {
977
- const e = t, r = n, a = he(t, "modelValue"), i = Oe("widgetRef"), l = E(() => {
978
+ const e = t, r = n, a = ke(t, "modelValue"), i = Ae("widgetRef"), l = K(() => {
978
979
  switch (e.config?.widget?.widget) {
979
980
  case "TextBox":
980
- return Ge;
981
+ return qe;
981
982
  case "Number":
982
- return ao;
983
+ return so;
983
984
  case "SelectList":
984
- return qe;
985
+ return Ye;
985
986
  case "Cascade":
986
- return co;
987
+ return fo;
987
988
  case "File":
988
- return po;
989
+ return go;
989
990
  case "TextArea":
990
- return _o;
991
+ return bo;
991
992
  case "DropDown":
992
- return qe;
993
+ return Ye;
993
994
  case "CheckBox":
994
- return wo;
995
+ return ho;
995
996
  default:
996
- return Ge;
997
+ return qe;
997
998
  }
998
999
  }), c = m(""), s = (f) => {
999
1000
  c.value = f;
@@ -1020,28 +1021,28 @@ const rt = /* @__PURE__ */ Y(Fo, [["render", Ro], ["__scopeId", "data-v-1d3893b1
1020
1021
  return e?.config?.widget?.title;
1021
1022
  }
1022
1023
  });
1023
- const y = { props: e, emits: r, model: a, widgetRef: i, curComp: l, errMsg: c, errHandler: s, changeHandler: d, isFileUpload: g, formatTitle: v, ToolTip: rt };
1024
- return Object.defineProperty(y, "__isScriptSetup", { enumerable: !1, value: !0 }), y;
1024
+ const b = { props: e, emits: r, model: a, widgetRef: i, curComp: l, errMsg: c, errHandler: s, changeHandler: d, isFileUpload: g, formatTitle: v, ToolTip: st };
1025
+ return Object.defineProperty(b, "__isScriptSetup", { enumerable: !1, value: !0 }), b;
1025
1026
  }
1026
- }), Ho = { class: "title" }, Lo = {
1027
+ }), Oo = { class: "title" }, $o = {
1027
1028
  key: 0,
1028
1029
  class: "required"
1029
- }, Oo = {
1030
+ }, jo = {
1030
1031
  key: 0,
1031
1032
  class: "err-msg"
1032
1033
  };
1033
- function $o(t, o, n, e, r, a) {
1034
+ function Mo(t, o, n, e, r, a) {
1034
1035
  return u(), _("div", null, [
1035
- w("div", Ho, [
1036
- re(q(e.formatTitle(e.props?.config?.widget?.title)) + " ", 1),
1037
- e.props.config.validations.length ? (u(), _("span", Lo, "*")) : se("", !0),
1038
- N(e.ToolTip, {
1036
+ y("div", Oo, [
1037
+ ae(Q(e.formatTitle(e.props?.config?.widget?.title)) + " ", 1),
1038
+ e.props.required || e.props.config.validations.some((i) => i.ruleName === "Required") ? (u(), _("span", $o, " * ")) : re("", !0),
1039
+ F(e.ToolTip, {
1039
1040
  "is-visible": e.props.config.widget?.isVisible ?? !1,
1040
1041
  "output-text": e.props.config.widget?.outputText ?? []
1041
1042
  }, null, 8, ["is-visible", "output-text"])
1042
1043
  ]),
1043
- w("div", null, [
1044
- (u(), R($e(e.curComp), {
1044
+ y("div", null, [
1045
+ (u(), D($e(e.curComp), {
1045
1046
  ref: "widgetRef",
1046
1047
  modelValue: e.model,
1047
1048
  "onUpdate:modelValue": o[0] || (o[0] = (i) => e.model = i),
@@ -1053,11 +1054,11 @@ function $o(t, o, n, e, r, a) {
1053
1054
  onError: e.errHandler,
1054
1055
  onChange: e.changeHandler
1055
1056
  }, null, 40, ["modelValue", "field-key", "config", "validations", "triggers", "class-name"])),
1056
- e.errMsg.length > 0 ? (u(), _("div", Oo, q(e.errMsg), 1)) : se("", !0)
1057
+ e.errMsg.length > 0 ? (u(), _("div", jo, Q(e.errMsg), 1)) : re("", !0)
1057
1058
  ])
1058
1059
  ]);
1059
1060
  }
1060
- const Ve = /* @__PURE__ */ Y(Bo, [["render", $o], ["__scopeId", "data-v-af9c00b7"], ["__file", "index.vue"]]), jo = /* @__PURE__ */ z({
1061
+ const Te = /* @__PURE__ */ J(Lo, [["render", Mo], ["__scopeId", "data-v-67595df1"], ["__file", "index.vue"]]), Eo = /* @__PURE__ */ z({
1061
1062
  __name: "SubmitButton",
1062
1063
  props: {
1063
1064
  url: {},
@@ -1075,20 +1076,20 @@ const Ve = /* @__PURE__ */ Y(Bo, [["render", $o], ["__scopeId", "data-v-af9c00b7
1075
1076
  return Object.defineProperty(i, "__isScriptSetup", { enumerable: !1, value: !0 }), i;
1076
1077
  }
1077
1078
  });
1078
- function Mo(t, o, n, e, r, a) {
1079
- const i = x("AButton");
1080
- return u(), R(i, {
1079
+ function Ko(t, o, n, e, r, a) {
1080
+ const i = V("AButton");
1081
+ return u(), D(i, {
1081
1082
  loading: n.loading,
1082
1083
  type: "primary",
1083
1084
  onClick: e.clickHandler
1084
1085
  }, {
1085
- default: S(() => [
1086
+ default: x(() => [
1086
1087
  ue(t.$slots, "default")
1087
1088
  ]),
1088
1089
  _: 3
1089
1090
  }, 8, ["loading"]);
1090
1091
  }
1091
- const Ye = /* @__PURE__ */ Y(jo, [["render", Mo], ["__file", "SubmitButton.vue"]]), Eo = /* @__PURE__ */ z({
1092
+ const Qe = /* @__PURE__ */ J(Eo, [["render", Ko], ["__file", "SubmitButton.vue"]]), zo = /* @__PURE__ */ z({
1092
1093
  __name: "DetailLink",
1093
1094
  props: {
1094
1095
  url: {},
@@ -1106,16 +1107,16 @@ const Ye = /* @__PURE__ */ Y(jo, [["render", Mo], ["__file", "SubmitButton.vue"]
1106
1107
  return Object.defineProperty(i, "__isScriptSetup", { enumerable: !1, value: !0 }), i;
1107
1108
  }
1108
1109
  });
1109
- function zo(t, o, n, e, r, a) {
1110
- const i = x("ALink");
1111
- return u(), R(i, { onClick: e.clickHandler }, {
1112
- default: S(() => [
1110
+ function Wo(t, o, n, e, r, a) {
1111
+ const i = V("ALink");
1112
+ return u(), D(i, { onClick: e.clickHandler }, {
1113
+ default: x(() => [
1113
1114
  ue(t.$slots, "default")
1114
1115
  ]),
1115
1116
  _: 3
1116
1117
  });
1117
1118
  }
1118
- const Ko = /* @__PURE__ */ Y(Eo, [["render", zo], ["__file", "DetailLink.vue"]]), Wo = /* @__PURE__ */ z({
1119
+ const Go = /* @__PURE__ */ J(zo, [["render", Wo], ["__file", "DetailLink.vue"]]), qo = /* @__PURE__ */ z({
1119
1120
  __name: "index",
1120
1121
  props: {
1121
1122
  config: {},
@@ -1128,50 +1129,50 @@ const Ko = /* @__PURE__ */ Y(Eo, [["render", zo], ["__file", "DetailLink.vue"]])
1128
1129
  function a(d, g) {
1129
1130
  r("click", e.config.widget, d, g, e.config.title);
1130
1131
  }
1131
- const i = E(() => {
1132
+ const i = K(() => {
1132
1133
  switch (e.config.location) {
1133
1134
  case "InOperation":
1134
- return Ye;
1135
+ return Qe;
1135
1136
  case "InTable":
1136
- return Ko;
1137
+ return Go;
1137
1138
  default:
1138
- return Ye;
1139
+ return Qe;
1139
1140
  }
1140
- }), l = E(() => e.config.widget === J.Submit ? e.config.requestUrl ?? "" : e.config.widget === J.Link ? e.config.redirectUrl ?? "" : ""), c = E(() => e.config.redirectType ?? "Details"), s = { props: e, emits: r, clickHandler: a, curComp: i, curUrl: l, redirectType: c };
1141
+ }), l = K(() => e.config.widget === X.Submit ? e.config.requestUrl ?? "" : e.config.widget === X.Link ? e.config.redirectUrl ?? "" : ""), c = K(() => e.config.redirectType ?? "Details"), s = { props: e, emits: r, clickHandler: a, curComp: i, curUrl: l, redirectType: c };
1141
1142
  return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
1142
1143
  }
1143
1144
  });
1144
- function Go(t, o, n, e, r, a) {
1145
- return u(), R($e(e.curComp), {
1145
+ function Yo(t, o, n, e, r, a) {
1146
+ return u(), D($e(e.curComp), {
1146
1147
  url: e.curUrl,
1147
1148
  "redirect-type": e.redirectType,
1148
1149
  loading: n.loading,
1149
1150
  onClick: e.clickHandler
1150
1151
  }, {
1151
- default: S(() => [
1152
- re(q(e.props.config.title), 1)
1152
+ default: x(() => [
1153
+ ae(Q(e.props.config.title), 1)
1153
1154
  ]),
1154
1155
  _: 1
1155
1156
  }, 8, ["url", "redirect-type", "loading"]);
1156
1157
  }
1157
- const Ae = /* @__PURE__ */ Y(Wo, [["render", Go], ["__file", "index.vue"]]), st = Symbol("library-router");
1158
- function Te() {
1159
- const t = _e(st, null);
1160
- return t || vt();
1158
+ const Ie = /* @__PURE__ */ J(qo, [["render", Yo], ["__file", "index.vue"]]), it = Symbol("library-router");
1159
+ function Pe() {
1160
+ const t = be(it, null);
1161
+ return t || yt();
1161
1162
  }
1162
- const it = Symbol("library-triggers");
1163
+ const lt = Symbol("library-triggers");
1163
1164
  function Ee() {
1164
- const t = _e(it, null);
1165
+ const t = be(lt, null);
1165
1166
  return t || {};
1166
1167
  }
1167
- const qo = Symbol("library-pinia"), lt = Symbol("library-bpmStore"), ct = Symbol("library-svrStore");
1168
- function Ie() {
1169
- return _e(lt, null);
1168
+ const Qo = Symbol("library-pinia"), ct = Symbol("library-bpmStore"), dt = Symbol("library-svrStore");
1169
+ function Ne() {
1170
+ return be(ct, null);
1170
1171
  }
1171
- function Pe() {
1172
- return _e(ct, null);
1172
+ function Fe() {
1173
+ return be(dt, null);
1173
1174
  }
1174
- const Yo = /* @__PURE__ */ z({
1175
+ const Jo = /* @__PURE__ */ z({
1175
1176
  __name: "TopBar",
1176
1177
  props: {
1177
1178
  title: {},
@@ -1183,27 +1184,27 @@ const Yo = /* @__PURE__ */ z({
1183
1184
  const n = {};
1184
1185
  return Object.defineProperty(n, "__isScriptSetup", { enumerable: !1, value: !0 }), n;
1185
1186
  }
1186
- }), Qo = { class: "top-bar" }, Jo = { class: "banner-info" }, Xo = { class: "page-title" }, Zo = { class: "page-subtitle" }, en = { class: "avatar-wrapper" }, tn = { class: "user-email" };
1187
- function on(t, o, n, e, r, a) {
1188
- const i = x("a-avatar"), l = x("a-popover");
1189
- return u(), _("div", Qo, [
1190
- w("div", Jo, [
1191
- w("div", Xo, q(n.title), 1),
1192
- w("div", Zo, q(n.subTitle), 1)
1187
+ }), Xo = { class: "top-bar" }, Zo = { class: "banner-info" }, en = { class: "page-title" }, tn = { class: "page-subtitle" }, on = { class: "avatar-wrapper" }, nn = { class: "user-email" };
1188
+ function an(t, o, n, e, r, a) {
1189
+ const i = V("a-avatar"), l = V("a-popover");
1190
+ return u(), _("div", Xo, [
1191
+ y("div", Zo, [
1192
+ y("div", en, Q(n.title), 1),
1193
+ y("div", tn, Q(n.subTitle), 1)
1193
1194
  ]),
1194
- w("div", en, [
1195
- N(l, { trigger: "click" }, {
1196
- content: S(() => [
1197
- w("div", tn, q(n.email), 1)
1195
+ y("div", on, [
1196
+ F(l, { trigger: "click" }, {
1197
+ content: x(() => [
1198
+ y("div", nn, Q(n.email), 1)
1198
1199
  ]),
1199
- default: S(() => [
1200
- N(i, {
1200
+ default: x(() => [
1201
+ F(i, {
1201
1202
  size: 48,
1202
1203
  autoFixFontSize: "",
1203
1204
  style: { cursor: "pointer", background: "#165DFF", color: "#fff" }
1204
1205
  }, {
1205
- default: S(() => [
1206
- re(q(n.email.charAt(0).toUpperCase()), 1)
1206
+ default: x(() => [
1207
+ ae(Q(n.email.charAt(0).toUpperCase()), 1)
1207
1208
  ]),
1208
1209
  _: 1
1209
1210
  })
@@ -1213,8 +1214,8 @@ function on(t, o, n, e, r, a) {
1213
1214
  ])
1214
1215
  ]);
1215
1216
  }
1216
- const Ne = /* @__PURE__ */ Y(Yo, [["render", on], ["__scopeId", "data-v-c0457235"], ["__file", "TopBar.vue"]]);
1217
- function ze(t) {
1217
+ const Ue = /* @__PURE__ */ J(Jo, [["render", an], ["__scopeId", "data-v-c0457235"], ["__file", "TopBar.vue"]]);
1218
+ function Ke(t) {
1218
1219
  const o = je(), n = [];
1219
1220
  if (o.fieldsGroup) {
1220
1221
  o.fieldsGroup.forEach((a) => {
@@ -1225,7 +1226,7 @@ function ze(t) {
1225
1226
  return r.length && n.push({ name: "Grading Review History (For example: re-submit the grading request)", fields: r }), n;
1226
1227
  }
1227
1228
  }
1228
- class Fe {
1229
+ class Re {
1229
1230
  pageActionType;
1230
1231
  className = "";
1231
1232
  store = { svrStore: {}, bpmStore: {} };
@@ -1246,10 +1247,10 @@ class Fe {
1246
1247
  return this.opt = o, this;
1247
1248
  }
1248
1249
  build() {
1249
- return this.pageActionType ? this.opt.workflowId ? new xe(this.pageActionType, this.className, this.store, this.opt) : new xe(this.pageActionType, this.className, this.store) : this.opt.workflowId ? new xe(me.ReCreate, this.className, this.store, this.opt) : new xe(me.Create, this.className, this.store);
1250
+ return this.pageActionType ? this.opt.workflowId ? new Ve(this.pageActionType, this.className, this.store, this.opt) : new Ve(this.pageActionType, this.className, this.store) : this.opt.workflowId ? new Ve(_e.ReCreate, this.className, this.store, this.opt) : new Ve(_e.Create, this.className, this.store);
1250
1251
  }
1251
1252
  }
1252
- class xe {
1253
+ class Ve {
1253
1254
  pageActionType;
1254
1255
  className;
1255
1256
  store;
@@ -1264,40 +1265,40 @@ class xe {
1264
1265
  this.pageActionType = o, this.className = n, this.store = e, r && (this.opt = r);
1265
1266
  }
1266
1267
  getPageData() {
1267
- return this.opt ? We(this.pageActionType, this.className, this.store, this.opt) : We(this.pageActionType, this.className, this.store);
1268
+ return this.opt ? Ge(this.pageActionType, this.className, this.store, this.opt) : Ge(this.pageActionType, this.className, this.store);
1268
1269
  }
1269
1270
  getBtnList() {
1270
- return Pt(this.pageActionType, this.className, { workflowId: this.getWorkflowId(), email: this.getApproverEmail() });
1271
+ return Ft(this.pageActionType, this.className, { workflowId: this.getWorkflowId(), email: this.getApproverEmail() });
1271
1272
  }
1272
1273
  getFiles() {
1273
- return this.getWorkflowId() ? Et(this.className, this.getWorkflowId()) : Promise.resolve({});
1274
+ return this.getWorkflowId() ? zt(this.className, this.getWorkflowId()) : Promise.resolve({});
1274
1275
  }
1275
1276
  removeFile(o) {
1276
- return zt(this.className, o);
1277
+ return Wt(this.className, o);
1277
1278
  }
1278
1279
  getProcess() {
1279
- return jt(this.className, this.getWorkflowId());
1280
+ return Et(this.className, this.getWorkflowId());
1280
1281
  }
1281
1282
  getCommentsHistory() {
1282
- return qt(this.getWorkflowId());
1283
+ return Qt(this.getWorkflowId());
1283
1284
  }
1284
1285
  getAssociator() {
1285
- return Yt(this.getWorkflowId());
1286
+ return Jt(this.getWorkflowId());
1286
1287
  }
1287
1288
  getApprovers() {
1288
- return Kt();
1289
+ return Gt();
1289
1290
  }
1290
1291
  assignApprover(o) {
1291
- return Wt(this.getWorkflowId(), o);
1292
+ return qt(this.getWorkflowId(), o);
1292
1293
  }
1293
1294
  addComments(o) {
1294
- return Gt(this.getWorkflowId(), this.getApproverEmail(), o);
1295
+ return Yt(this.getWorkflowId(), this.getApproverEmail(), o);
1295
1296
  }
1296
1297
  deleteAssociator(o) {
1297
- return Qt(o);
1298
+ return Xt(o);
1298
1299
  }
1299
1300
  }
1300
- const nn = /* @__PURE__ */ z({
1301
+ const rn = /* @__PURE__ */ z({
1301
1302
  __name: "CreateView",
1302
1303
  props: {
1303
1304
  className: {},
@@ -1305,7 +1306,7 @@ const nn = /* @__PURE__ */ z({
1305
1306
  },
1306
1307
  setup(t, { expose: o }) {
1307
1308
  o();
1308
- const n = Ie(), e = Pe(), r = Te(), a = Ee(), i = Oe("dataWidgets"), l = ge(), c = t, s = m({
1309
+ const n = Ne(), e = Fe(), r = Pe(), a = Ee(), i = Ae("dataWidgets"), l = ve(), c = t, s = m({
1309
1310
  pageType: "",
1310
1311
  fields: {},
1311
1312
  globalValidations: [],
@@ -1321,133 +1322,133 @@ const nn = /* @__PURE__ */ z({
1321
1322
  workflowId: ""
1322
1323
  }
1323
1324
  }), d = m([]), g = m({});
1324
- function v(k) {
1325
- return k ? Object.entries(k).map(([A, U]) => ({
1326
- fieldKey: A,
1325
+ function v(C) {
1326
+ return C ? Object.entries(C).map(([S, U]) => ({
1327
+ fieldKey: S,
1327
1328
  ...U
1328
- })).filter((A) => A.widget && A.widget.widget !== "Hidden").filter((A) => !Z.value.includes(A.fieldKey)) : [];
1329
+ })).filter((S) => S.widget && S.widget.widget !== "Hidden").filter((S) => !ee.value.includes(S.fieldKey)) : [];
1329
1330
  }
1330
- function y(k) {
1331
- return k ? Object.entries(k).filter(([A, U]) => U.dependent).reduce(
1332
- (A, [U, L]) => (A[U] = L.dependent, A),
1331
+ function b(C) {
1332
+ return C ? Object.entries(C).filter(([S, U]) => U.dependent).reduce(
1333
+ (S, [U, $]) => (S[U] = $.dependent, S),
1333
1334
  {}
1334
1335
  ) : [];
1335
1336
  }
1336
- const f = E(() => s.value?.actions ? [...s.value.actions].reverse() : []), p = m({}), C = m(!1);
1337
+ const f = K(() => s.value?.actions ? [...s.value.actions].reverse() : []), p = m({}), h = m(!1);
1337
1338
  fe(async () => {
1338
- C.value = !0;
1339
- const k = new Fe().setWorkflowId(c.workflowId).setClassName(c.className).setStore({ svrStore: e, bpmStore: n }).build();
1340
- s.value = await k.getPageData(), d.value = v(s.value.fields), g.value = y(s.value.fields);
1339
+ h.value = !0;
1340
+ const C = new Re().setWorkflowId(c.workflowId).setClassName(c.className).setStore({ svrStore: e, bpmStore: n }).build();
1341
+ s.value = await C.getPageData(), d.value = v(s.value.fields), g.value = b(s.value.fields);
1341
1342
  for (const T in s.value.fields) {
1342
1343
  if (s.value.fields[T].widget?.widget === "File") {
1343
- const A = d.value.find((U) => U.fieldKey === T);
1344
- A && A.widget && (A.widget.files = []);
1344
+ const S = d.value.find((U) => U.fieldKey === T);
1345
+ S && S.widget && (S.widget.files = []);
1345
1346
  }
1346
1347
  p.value[T] = s.value.fields[T].modelValue;
1347
1348
  }
1348
- C.value = !1;
1349
+ h.value = !1;
1349
1350
  });
1350
- function X() {
1351
+ function Z() {
1351
1352
  return e()?.userInfo?.email_address ?? "";
1352
1353
  }
1353
- async function ee(k, T, A, U, L) {
1354
+ async function oe(C, T, S, U, $) {
1354
1355
  switch (T) {
1355
- case J.Submit:
1356
- let O = !0;
1357
- if (i.value?.forEach((Q) => {
1358
- Q?.validate && (Q.validate() || (O = !1));
1359
- }), !O) {
1356
+ case X.Submit:
1357
+ let H = !0;
1358
+ if (i.value?.forEach((W) => {
1359
+ W?.validate && (W.validate() || (H = !1));
1360
+ }), !H) {
1360
1361
  l?.appContext.config.globalProperties.$message.error(
1361
1362
  "form validation failed, please check the input fields"
1362
1363
  );
1363
1364
  return;
1364
1365
  }
1365
- C.value = !0;
1366
+ h.value = !0;
1366
1367
  try {
1367
- a[L]?.({ message: `${L} action triggered` });
1368
- const Q = {
1368
+ a[$]?.({ message: `${$} action triggered` });
1369
+ const W = {
1369
1370
  ...p.value,
1370
1371
  ...g.value
1371
1372
  };
1372
- a.createPageBeforeSubmit?.(Q);
1373
- const oe = await Ft(
1373
+ a.createPageBeforeSubmit?.(W);
1374
+ const ie = await Rt(
1374
1375
  c.className,
1375
- Q,
1376
- A
1376
+ W,
1377
+ S
1377
1378
  );
1378
- a[`${L}Success` || ""]?.({
1379
+ a[`${$}Success` || ""]?.({
1379
1380
  message: "Workflow created successfully",
1380
1381
  workflowId: c.workflowId,
1381
- res: oe
1382
+ res: ie
1382
1383
  });
1383
- const ne = i.value?.map((de) => de?.submit ? de.submit(oe.toString()) : Promise.resolve()) || [];
1384
- await Promise.all(ne), C.value = !1, l?.appContext.config.globalProperties.$notification.success(
1385
- `Your grading request has been submitted, ID is ${oe.toString()}.`
1386
- ), r.push({ name: "Details", params: { workflowId: oe.toString() } });
1384
+ const le = i.value?.map((se) => se?.submit ? se.submit(ie.toString()) : Promise.resolve()) || [];
1385
+ await Promise.all(le), h.value = !1, l?.appContext.config.globalProperties.$notification.success(
1386
+ `Your grading request has been submitted, ID is ${ie.toString()}.`
1387
+ ), r.push({ name: "Details", params: { workflowId: ie.toString() } });
1387
1388
  } catch {
1388
1389
  l?.appContext.config.globalProperties.$notification.error(
1389
1390
  "Failed to submit your grading request"
1390
- ), C.value = !1;
1391
+ ), h.value = !1;
1391
1392
  }
1392
1393
  break;
1393
- case J.Link:
1394
+ case X.Link:
1394
1395
  try {
1395
- await a[k.eventName || ""]?.(p.value, Z), r.push({
1396
+ await a[C.eventName || ""]?.(p.value, ee), r.push({
1396
1397
  name: U,
1397
1398
  params: { className: c.className }
1398
- }), await a[`${k.eventName || ""}Success`]?.({
1399
+ }), await a[`${C.eventName || ""}Success`]?.({
1399
1400
  message: `Router to ${U} pushed`
1400
1401
  });
1401
- } catch (Q) {
1402
- console.error("Error in link action trigger:", Q);
1402
+ } catch (W) {
1403
+ console.error("Error in link action trigger:", W);
1403
1404
  }
1404
1405
  break;
1405
1406
  default:
1406
1407
  console.warn("Unknown action type:", T);
1407
1408
  }
1408
1409
  }
1409
- const M = [
1410
+ const E = [
1410
1411
  "jobScpope",
1411
1412
  "currentWorkdayId",
1412
1413
  "originalGrade",
1413
1414
  "jobTitlePrevious",
1414
1415
  "jobAttachmentPrevious",
1415
1416
  "positionId"
1416
- ], Z = m(M);
1417
- function ie(k, T) {
1418
- a[k]?.({ fieldValue: T, hiddenFields: Z, formData: p }), s.value && (d.value = v(s.value.fields));
1417
+ ], ee = m(E);
1418
+ function ne(C, T) {
1419
+ a[C]?.({ fieldValue: T, hiddenFields: ee, formData: p }), s.value && (d.value = v(s.value.fields));
1419
1420
  }
1420
- const V = E(() => ze(d.value)), h = { bpmStore: n, svrStore: e, router: r, triggers: a, dataWidgetsRefs: i, instance: l, props: c, pageData: s, _fields: d, _dependent: g, genField: v, genDependentField: y, reversedActions: f, _data: p, loading: C, getApproverEmail: X, clickHandler: ee, newHiddenFields: M, hiddenFields: Z, changeHandler: ie, groupedFields: V, DataWidgets: Ve, ActionButton: Ae, TopBar: Ne };
1421
- return Object.defineProperty(h, "__isScriptSetup", { enumerable: !1, value: !0 }), h;
1421
+ const A = K(() => Ke(d.value)), k = { bpmStore: n, svrStore: e, router: r, triggers: a, dataWidgetsRefs: i, instance: l, props: c, pageData: s, _fields: d, _dependent: g, genField: v, genDependentField: b, reversedActions: f, _data: p, loading: h, getApproverEmail: Z, clickHandler: oe, newHiddenFields: E, hiddenFields: ee, changeHandler: ne, groupedFields: A, DataWidgets: Te, ActionButton: Ie, TopBar: Ue };
1422
+ return Object.defineProperty(k, "__isScriptSetup", { enumerable: !1, value: !0 }), k;
1422
1423
  }
1423
- }), an = { class: "page-container" }, rn = { class: "page-body" }, sn = { class: "form-card" }, ln = { class: "form-fields-vertical" }, cn = { class: "form-fields" }, dn = {
1424
+ }), sn = { class: "page-container" }, ln = { class: "page-body" }, cn = { class: "form-card" }, dn = { class: "form-fields-vertical" }, un = { class: "form-fields" }, fn = {
1424
1425
  key: 0,
1425
1426
  class: "form-content"
1426
- }, un = { class: "page-footer" }, fn = { class: "action-container" }, pn = { class: "action-buttons" };
1427
- function mn(t, o, n, e, r, a) {
1428
- const i = x("a-card"), l = x("a-spin");
1429
- return u(), _("div", an, [
1430
- N(e.TopBar, {
1427
+ }, pn = { class: "page-footer" }, mn = { class: "action-container" }, gn = { class: "action-buttons" };
1428
+ function _n(t, o, n, e, r, a) {
1429
+ const i = V("a-card"), l = V("a-spin");
1430
+ return u(), _("div", sn, [
1431
+ F(e.TopBar, {
1431
1432
  title: e.pageData.banner.title,
1432
1433
  subTitle: e.pageData.banner.subTitle,
1433
1434
  email: e.getApproverEmail()
1434
1435
  }, null, 8, ["title", "subTitle", "email"]),
1435
- w("div", rn, [
1436
- N(l, {
1436
+ y("div", ln, [
1437
+ F(l, {
1437
1438
  loading: e.loading,
1438
1439
  class: "form-container"
1439
1440
  }, {
1440
- default: S(() => [
1441
- w("div", sn, [
1442
- w("div", ln, [
1443
- (u(!0), _($, null, j(e.groupedFields, (c) => (u(), R(i, {
1441
+ default: x(() => [
1442
+ y("div", cn, [
1443
+ y("div", dn, [
1444
+ (u(!0), _(O, null, M(e.groupedFields, (c) => (u(), D(i, {
1444
1445
  key: c.name,
1445
1446
  title: c.name,
1446
1447
  style: { "margin-bottom": "24px" }
1447
1448
  }, {
1448
- default: S(() => [
1449
- w("div", cn, [
1450
- (u(!0), _($, null, j(c.fields, (s) => (u(), R(e.DataWidgets, {
1449
+ default: x(() => [
1450
+ y("div", un, [
1451
+ (u(!0), _(O, null, M(c.fields, (s) => (u(), D(e.DataWidgets, {
1451
1452
  key: s.fieldKey,
1452
1453
  ref_for: !0,
1453
1454
  ref: "dataWidgets",
@@ -1464,19 +1465,19 @@ function mn(t, o, n, e, r, a) {
1464
1465
  _: 2
1465
1466
  }, 1032, ["title"]))), 128))
1466
1467
  ]),
1467
- t.$slots.content ? (u(), _("div", dn, [
1468
+ t.$slots.content ? (u(), _("div", fn, [
1468
1469
  ue(t.$slots, "content", {}, void 0, !0)
1469
- ])) : se("", !0)
1470
+ ])) : re("", !0)
1470
1471
  ])
1471
1472
  ]),
1472
1473
  _: 3
1473
1474
  }, 8, ["loading"])
1474
1475
  ]),
1475
- w("div", un, [
1476
- w("div", fn, [
1476
+ y("div", pn, [
1477
+ y("div", mn, [
1477
1478
  ue(t.$slots, "action", {}, void 0, !0),
1478
- w("div", pn, [
1479
- (u(!0), _($, null, j(e.reversedActions, (c) => (u(), R(e.ActionButton, {
1479
+ y("div", gn, [
1480
+ (u(!0), _(O, null, M(e.reversedActions, (c) => (u(), D(e.ActionButton, {
1480
1481
  key: c.title,
1481
1482
  loading: e.loading,
1482
1483
  config: c,
@@ -1488,7 +1489,7 @@ function mn(t, o, n, e, r, a) {
1488
1489
  ])
1489
1490
  ]);
1490
1491
  }
1491
- const gn = /* @__PURE__ */ Y(nn, [["render", mn], ["__scopeId", "data-v-7ac0ce3d"], ["__file", "CreateView.vue"]]), _n = /* @__PURE__ */ z({
1492
+ const vn = /* @__PURE__ */ J(rn, [["render", _n], ["__scopeId", "data-v-7ac0ce3d"], ["__file", "CreateView.vue"]]), bn = /* @__PURE__ */ z({
1492
1493
  __name: "UpdateView",
1493
1494
  props: {
1494
1495
  className: {},
@@ -1496,7 +1497,7 @@ const gn = /* @__PURE__ */ Y(nn, [["render", mn], ["__scopeId", "data-v-7ac0ce3d
1496
1497
  },
1497
1498
  setup(t, { expose: o }) {
1498
1499
  o();
1499
- const n = Te(), e = Ee(), r = Pe(), a = Ie(), i = Oe("dataWidgets"), l = ge(), c = t, s = m({
1500
+ const n = Pe(), e = Ee(), r = Fe(), a = Ne(), i = Ae("dataWidgets"), l = ve(), c = t, s = m({
1500
1501
  pageType: "",
1501
1502
  fields: {},
1502
1503
  globalValidations: [],
@@ -1512,104 +1513,104 @@ const gn = /* @__PURE__ */ Y(nn, [["render", mn], ["__scopeId", "data-v-7ac0ce3d
1512
1513
  workflowId: ""
1513
1514
  }
1514
1515
  }), d = m([]), g = m({});
1515
- function v(h) {
1516
- return h ? Object.entries(h).map(([T, A]) => ({
1516
+ function v(k) {
1517
+ return k ? Object.entries(k).map(([T, S]) => ({
1517
1518
  fieldKey: T,
1518
- ...A
1519
- })).filter((T) => T.widget && T.widget.widget !== "Hidden").filter((T) => !M.value.includes(T.fieldKey)) : [];
1519
+ ...S
1520
+ })).filter((T) => T.widget && T.widget.widget !== "Hidden").filter((T) => !E.value.includes(T.fieldKey)) : [];
1520
1521
  }
1521
- function y(h) {
1522
- return h ? Object.entries(h).filter(([T, A]) => A.dependent).reduce((T, [A, U]) => (T[A] = U.dependent, T), {}) : [];
1522
+ function b(k) {
1523
+ return k ? Object.entries(k).filter(([T, S]) => S.dependent).reduce((T, [S, U]) => (T[S] = U.dependent, T), {}) : [];
1523
1524
  }
1524
- const f = E(() => s.value?.actions ? [...s.value.actions].reverse() : []), p = m({}), C = m(!1);
1525
+ const f = K(() => s.value?.actions ? [...s.value.actions].reverse() : []), p = m({}), h = m(!1);
1525
1526
  fe(async () => {
1526
- C.value = !0;
1527
- const h = new Fe().setPageActionType(me.Update).setClassName(c.className).setStore({ svrStore: r, bpmStore: a }).setWorkflowId(c.workflowId).build();
1528
- s.value = await h.getPageData();
1529
- const k = await h.getBtnList(), T = await h.getFiles();
1527
+ h.value = !0;
1528
+ const k = new Re().setPageActionType(_e.Update).setClassName(c.className).setStore({ svrStore: r, bpmStore: a }).setWorkflowId(c.workflowId).build();
1529
+ s.value = await k.getPageData();
1530
+ const C = await k.getBtnList(), T = await k.getFiles();
1530
1531
  s.value.actions = s.value.actions?.filter((U) => {
1531
- const L = k.find((O) => O.button === U.title);
1532
- return L ? L.isShow : !0;
1532
+ const $ = C.find((H) => H.button === U.title);
1533
+ return $ ? $.isShow : !0;
1533
1534
  });
1534
- const A = s.value.fields.requestType.modelValue;
1535
- e.Test?.({ fieldValue: A, hiddenFields: M, formData: p }), d.value = v(s.value.fields), g.value = y(s.value.fields);
1535
+ const S = s.value.fields.requestType.modelValue;
1536
+ e.Test?.({ fieldValue: S, hiddenFields: E, formData: p }), d.value = v(s.value.fields), g.value = b(s.value.fields);
1536
1537
  for (const U in s.value.fields) {
1537
1538
  if (s.value.fields[U].widget?.widget === "File") {
1538
- const L = d.value.find((O) => O.fieldKey === U);
1539
- L && L.widget && (L.widget.files = T[U] ?? [], L.widget.removeFile = (O) => h.removeFile(O));
1539
+ const $ = d.value.find((H) => H.fieldKey === U);
1540
+ $ && $.widget && ($.widget.files = T[U] ?? [], $.widget.removeFile = (H) => k.removeFile(H));
1540
1541
  }
1541
1542
  p.value[U] = s.value.fields[U].modelValue;
1542
1543
  }
1543
- C.value = !1;
1544
+ h.value = !1;
1544
1545
  });
1545
- function X() {
1546
+ function Z() {
1546
1547
  return r()?.userInfo?.email_address ?? "";
1547
1548
  }
1548
- async function ee(h, k, T, A, U) {
1549
- switch (k) {
1550
- case J.Submit:
1551
- let L = !0;
1552
- if (i.value?.forEach((O) => {
1553
- O?.validate && (O.validate() || (L = !1));
1554
- }), !L) {
1549
+ async function oe(k, C, T, S, U) {
1550
+ switch (C) {
1551
+ case X.Submit:
1552
+ let $ = !0;
1553
+ if (i.value?.forEach((H) => {
1554
+ H?.validate && (H.validate() || ($ = !1));
1555
+ }), !$) {
1555
1556
  l?.appContext.config.globalProperties.$message.error("form validation failed, please check the input fields");
1556
1557
  return;
1557
1558
  }
1558
- C.value = !0;
1559
+ h.value = !0;
1559
1560
  try {
1560
- const O = { ...p.value, ...g.value };
1561
- e.updatePageBeforeSubmit?.(O, a().employeeInfo);
1562
- const Q = await Ut(c.className, c.workflowId, O, T), oe = i.value?.map((ne) => ne?.submit ? ne.submit(Q.toString()) : Promise.resolve()) || [];
1563
- await Promise.all(oe), C.value = !1, l?.appContext.config.globalProperties.$notification.success(`Your grading request has been submitted, ID is ${Q.toString()}.`);
1561
+ const H = { ...p.value, ...g.value };
1562
+ e.updatePageBeforeSubmit?.(H, a().employeeInfo);
1563
+ const W = await Dt(c.className, c.workflowId, H, T), ie = i.value?.map((le) => le?.submit ? le.submit(W.toString()) : Promise.resolve()) || [];
1564
+ await Promise.all(ie), h.value = !1, l?.appContext.config.globalProperties.$notification.success(`Your grading request has been submitted, ID is ${W.toString()}.`);
1564
1565
  } catch {
1565
- l?.appContext.config.globalProperties.$notification.error("Failed to submit your grading request"), C.value = !1;
1566
+ l?.appContext.config.globalProperties.$notification.error("Failed to submit your grading request"), h.value = !1;
1566
1567
  }
1567
1568
  break;
1568
- case J.Link:
1569
+ case X.Link:
1569
1570
  try {
1570
- await e[h.eventName || ""]?.(p.value, M), n.push({ name: A, params: { className: c.className } });
1571
+ await e[k.eventName || ""]?.(p.value, E), n.push({ name: S, params: { className: c.className } });
1571
1572
  } catch {
1572
1573
  }
1573
1574
  break;
1574
1575
  default:
1575
- console.warn("Unknown action type:", k);
1576
+ console.warn("Unknown action type:", C);
1576
1577
  }
1577
1578
  }
1578
- const M = m([]);
1579
- function Z(h, k) {
1580
- e[h]?.({ fieldValue: k, hiddenFields: M, formData: p }), s.value && (d.value = v(s.value.fields));
1579
+ const E = m([]);
1580
+ function ee(k, C) {
1581
+ e[k]?.({ fieldValue: C, hiddenFields: E, formData: p }), s.value && (d.value = v(s.value.fields));
1581
1582
  }
1582
- const ie = E(() => ze(d.value)), V = { router: n, triggers: e, svrStore: r, bpmStore: a, dataWidgetsRefs: i, instance: l, props: c, pageData: s, _fields: d, _dependent: g, genField: v, genDependentField: y, reversedActions: f, _data: p, loading: C, getApproverEmail: X, clickHandler: ee, hiddenFields: M, changeHandler: Z, groupedFields: ie, DataWidgets: Ve, ActionButton: Ae, TopBar: Ne };
1583
- return Object.defineProperty(V, "__isScriptSetup", { enumerable: !1, value: !0 }), V;
1583
+ const ne = K(() => Ke(d.value)), A = { router: n, triggers: e, svrStore: r, bpmStore: a, dataWidgetsRefs: i, instance: l, props: c, pageData: s, _fields: d, _dependent: g, genField: v, genDependentField: b, reversedActions: f, _data: p, loading: h, getApproverEmail: Z, clickHandler: oe, hiddenFields: E, changeHandler: ee, groupedFields: ne, DataWidgets: Te, ActionButton: Ie, TopBar: Ue };
1584
+ return Object.defineProperty(A, "__isScriptSetup", { enumerable: !1, value: !0 }), A;
1584
1585
  }
1585
- }), vn = { class: "page-container" }, bn = { class: "page-body" }, wn = { class: "form-card" }, yn = { class: "form-fields-vertical" }, hn = { class: "form-fields" }, kn = {
1586
+ }), yn = { class: "page-container" }, wn = { class: "page-body" }, hn = { class: "form-card" }, kn = { class: "form-fields-vertical" }, Cn = { class: "form-fields" }, Sn = {
1586
1587
  key: 0,
1587
1588
  class: "form-content"
1588
- }, Cn = { class: "page-footer" }, Sn = { class: "action-container" }, xn = { class: "action-buttons" };
1589
- function Vn(t, o, n, e, r, a) {
1590
- const i = x("a-card"), l = x("a-spin");
1591
- return u(), _("div", vn, [
1592
- N(e.TopBar, {
1589
+ }, xn = { class: "page-footer" }, Vn = { class: "action-container" }, An = { class: "action-buttons" };
1590
+ function Tn(t, o, n, e, r, a) {
1591
+ const i = V("a-card"), l = V("a-spin");
1592
+ return u(), _("div", yn, [
1593
+ F(e.TopBar, {
1593
1594
  title: e.pageData.banner.title,
1594
1595
  subTitle: e.pageData.banner.subTitle,
1595
1596
  email: e.getApproverEmail()
1596
1597
  }, null, 8, ["title", "subTitle", "email"]),
1597
- w("div", bn, [
1598
- N(l, {
1598
+ y("div", wn, [
1599
+ F(l, {
1599
1600
  loading: e.loading,
1600
1601
  class: "form-container"
1601
1602
  }, {
1602
- default: S(() => [
1603
- w("div", wn, [
1604
- w("div", yn, [
1605
- (u(!0), _($, null, j(e.groupedFields, (c) => (u(), R(i, {
1603
+ default: x(() => [
1604
+ y("div", hn, [
1605
+ y("div", kn, [
1606
+ (u(!0), _(O, null, M(e.groupedFields, (c) => (u(), D(i, {
1606
1607
  key: c.name,
1607
1608
  title: c.name,
1608
1609
  style: { "margin-bottom": "24px" }
1609
1610
  }, {
1610
- default: S(() => [
1611
- w("div", hn, [
1612
- (u(!0), _($, null, j(c.fields, (s) => (u(), R(e.DataWidgets, {
1611
+ default: x(() => [
1612
+ y("div", Cn, [
1613
+ (u(!0), _(O, null, M(c.fields, (s) => (u(), D(e.DataWidgets, {
1613
1614
  key: s.fieldKey,
1614
1615
  ref_for: !0,
1615
1616
  ref: "dataWidgets",
@@ -1626,19 +1627,19 @@ function Vn(t, o, n, e, r, a) {
1626
1627
  _: 2
1627
1628
  }, 1032, ["title"]))), 128))
1628
1629
  ]),
1629
- t.$slots.content ? (u(), _("div", kn, [
1630
+ t.$slots.content ? (u(), _("div", Sn, [
1630
1631
  ue(t.$slots, "content", {}, void 0, !0)
1631
- ])) : se("", !0)
1632
+ ])) : re("", !0)
1632
1633
  ])
1633
1634
  ]),
1634
1635
  _: 3
1635
1636
  }, 8, ["loading"])
1636
1637
  ]),
1637
- w("div", Cn, [
1638
- w("div", Sn, [
1638
+ y("div", xn, [
1639
+ y("div", Vn, [
1639
1640
  ue(t.$slots, "action", {}, void 0, !0),
1640
- w("div", xn, [
1641
- (u(!0), _($, null, j(e.reversedActions, (c) => (u(), R(e.ActionButton, {
1641
+ y("div", An, [
1642
+ (u(!0), _(O, null, M(e.reversedActions, (c) => (u(), D(e.ActionButton, {
1642
1643
  key: c.title,
1643
1644
  loading: e.loading,
1644
1645
  config: c,
@@ -1650,11 +1651,11 @@ function Vn(t, o, n, e, r, a) {
1650
1651
  ])
1651
1652
  ]);
1652
1653
  }
1653
- const An = /* @__PURE__ */ Y(_n, [["render", Vn], ["__scopeId", "data-v-605f261e"], ["__file", "UpdateView.vue"]]), dt = Symbol("library-custom-comp");
1654
- function Tn() {
1655
- return _e(dt, null);
1654
+ const In = /* @__PURE__ */ J(bn, [["render", Tn], ["__scopeId", "data-v-605f261e"], ["__file", "UpdateView.vue"]]), ut = Symbol("library-custom-comp");
1655
+ function Pn() {
1656
+ return be(ut, null);
1656
1657
  }
1657
- const In = /* @__PURE__ */ z({
1658
+ const Nn = /* @__PURE__ */ z({
1658
1659
  __name: "DetailView",
1659
1660
  props: {
1660
1661
  className: {},
@@ -1662,7 +1663,7 @@ const In = /* @__PURE__ */ z({
1662
1663
  },
1663
1664
  setup(t, { expose: o }) {
1664
1665
  o();
1665
- const n = Pe(), e = Ie(), r = Ee(), a = Te(), i = Tn(), l = ge(), c = t;
1666
+ const n = Fe(), e = Ne(), r = Ee(), a = Pe(), i = Pn(), l = ve(), c = t;
1666
1667
  let s;
1667
1668
  const d = m({
1668
1669
  pageType: "",
@@ -1679,18 +1680,34 @@ const In = /* @__PURE__ */ z({
1679
1680
  workFlowReason: "",
1680
1681
  workflowId: ""
1681
1682
  }
1682
- }), g = m([]);
1683
- function v(I) {
1684
- return I ? Object.entries(I).map(([K, P]) => (typeof P.modelValue == "boolean" ? P.fieldValue = P.modelValue ? "Yes" : "No" : P.fieldValue = P.modelValue, {
1685
- fieldKey: K,
1686
- ...P
1687
- })).filter((K) => K.widget && K.widget.widget !== "Hidden").filter((K) => !h.value.includes(K.fieldKey)) : [];
1683
+ }), g = m([]), v = Ae("dataWidgets");
1684
+ function b(P) {
1685
+ return P ? Object.entries(P).map(([G, N]) => {
1686
+ typeof N.modelValue == "boolean" ? N.fieldValue = N.modelValue ? "Yes" : "No" : N.fieldValue = N.modelValue;
1687
+ const j = {
1688
+ fieldKey: G,
1689
+ ...N
1690
+ };
1691
+ return j.widget?.readonly || j.validations?.some(
1692
+ (me) => me.ruleName === "Required"
1693
+ ) ? j : {
1694
+ ...j,
1695
+ validations: [
1696
+ ...j.validations || [],
1697
+ {
1698
+ ruleName: "Required",
1699
+ ruleParameter: "",
1700
+ errorMessage: `${pe(j.widget?.title) || j.fieldKey} is required`
1701
+ }
1702
+ ]
1703
+ };
1704
+ }).filter((G) => G.widget && G.widget.widget !== "Hidden").filter((G) => !C.value.includes(G.fieldKey)) : [];
1688
1705
  }
1689
- const y = E(() => ze(g.value)), f = E(() => d.value?.actions ? [...d.value.actions].reverse() : []), p = m(!0), C = (I, H) => {
1690
- const K = I.findIndex((P) => P.isCurrent);
1691
- return I.map((P, ae) => {
1692
- const D = {
1693
- id: P.id,
1706
+ const f = K(() => Ke(g.value)), p = K(() => d.value?.actions ? [...d.value.actions].reverse() : []), h = m(!0), Z = (P, L) => {
1707
+ const G = P.findIndex((N) => N.isCurrent);
1708
+ return P.map((N, j) => {
1709
+ const R = {
1710
+ id: N.id,
1694
1711
  title: "",
1695
1712
  proxy: "",
1696
1713
  sub: "",
@@ -1698,131 +1715,140 @@ const In = /* @__PURE__ */ z({
1698
1715
  status: 1,
1699
1716
  time: ""
1700
1717
  };
1701
- D.title = P.workflowProcessApprovers[0]?.name;
1702
- const be = P.workflowProcessApprovers[P.workflowProcessApprovers.length - 1], ke = P.workflowHistorys[P.workflowHistorys.length - 1], we = ke?.workflowHistoryApprovers[ke?.workflowHistoryApprovers?.length - 1];
1703
- if (be && we && be?.email?.toLowerCase() !== we?.approverEmail?.toLowerCase() && (D.title = `${we.name}`, D.proxy = `Proxy: ${be.name}`), P.sort > 1 ? D.sub = "Approver Role: " + P.nodeName.replace("Submit", "").replace("Approve", "") : D.sub = "Submit Application", P.isCurrent && H !== -1)
1704
- D.desc = "In Approval", D.status = 1;
1718
+ R.title = N.workflowProcessApprovers[0]?.name;
1719
+ const me = N.workflowProcessApprovers[N.workflowProcessApprovers.length - 1], Ce = N.workflowHistorys[N.workflowHistorys.length - 1], we = Ce?.workflowHistoryApprovers[Ce?.workflowHistoryApprovers?.length - 1];
1720
+ if (me && we && me?.email?.toLowerCase() !== we?.approverEmail?.toLowerCase() && (R.title = `${we.name}`, R.proxy = `Proxy: ${me.name}`), N.sort > 1 ? R.sub = "Approver Role: " + N.nodeName.replace("Submit", "").replace("Approve", "") : R.sub = "Submit Application", N.isCurrent && L !== -1)
1721
+ R.desc = "In Approval", R.status = 1;
1705
1722
  else {
1706
- const te = P.workflowHistorys[P.workflowHistorys.length - 1];
1723
+ const te = N.workflowHistorys[N.workflowHistorys.length - 1];
1707
1724
  if (te && te.status === 100)
1708
- D.time = Se(te.takeActionAt, "yyyy-MM-dd hh:mm:ss"), D.status = 2, D.desc = "approve success!";
1725
+ R.time = xe(te.takeActionAt, "yyyy-MM-dd hh:mm:ss"), R.status = 2, R.desc = "approve success!";
1709
1726
  else if (te && te.status === 999)
1710
- D.time = Se(te.takeActionAt, "yyyy-MM-dd hh:mm:ss"), D.status = 0, D.desc = "approve reject!";
1727
+ R.time = xe(te.takeActionAt, "yyyy-MM-dd hh:mm:ss"), R.status = 0, R.desc = "approve reject!";
1711
1728
  else if (te)
1712
- if (D.time = Se(te.takeActionAt, "yyyy-MM-dd hh:mm:ss"), P.sort === 1)
1713
- D.status = 2, D.desc = "";
1729
+ if (R.time = xe(te.takeActionAt, "yyyy-MM-dd hh:mm:ss"), N.sort === 1)
1730
+ R.status = 2, R.desc = "";
1714
1731
  else {
1715
- const Ce = te.workflowHistoryApprovers[0];
1716
- D.status = 3, D.desc = Ce?.reason ? `Rejected reason: ${Ce.reason}` : "Rejected";
1732
+ const Se = te.workflowHistoryApprovers[0];
1733
+ R.status = 3, R.desc = Se?.reason ? `Rejected reason: ${Se.reason}` : "Rejected";
1717
1734
  }
1718
- else ae < K || K === -1 ? (D.status = 0, D.desc = "Skipped") : (D.status = 0, D.desc = "Pending Approval");
1735
+ else j < G || G === -1 ? (R.status = 0, R.desc = "Skipped") : (R.status = 0, R.desc = "Pending Approval");
1719
1736
  te && te.status;
1720
1737
  }
1721
- return D;
1738
+ return R;
1722
1739
  });
1723
- }, X = m([]), ee = m(!1), M = m(!1), Z = m(!1), ie = m(!1);
1724
- async function V() {
1725
- const I = await s.getBtnList();
1726
- d.value.actions = d.value.actions?.filter((H) => {
1727
- const K = I.find((P) => P.button === H.title);
1728
- return K ? K.isShow : !0;
1729
- }), ee.value = I.find((H) => H.button === "IsGlobal")?.isShow ?? !1, M.value = I.find((H) => H.button === "AssignButton")?.isShow ?? !1, Z.value = I.find((H) => H.button === "AssignList")?.isShow ?? !1, ie.value = I.find((H) => H.button === "AddCommentsButton")?.isShow ?? !1;
1730
- }
1731
- const h = m([]);
1740
+ }, oe = m([]), E = m(!1), ee = m(!1), ne = m(!1), A = m(!1);
1732
1741
  async function k() {
1733
- p.value = !0, s = new Fe().setPageActionType(me.Details).setClassName(c.className).setStore({ svrStore: n, bpmStore: e }).setWorkflowId(c.workflowId).build(), d.value = await s.getPageData();
1734
- const I = await s.getFiles();
1735
- oe.value = await s.getApprovers(), O.value = await s.getCommentsHistory(), ne.value = await s.getAssociator(), await V(), r.detailPageLoaded?.(d, e().employeeInfo);
1736
- const H = d.value.fields.requestType.modelValue;
1737
- r.Test?.({ fieldValue: H, hiddenFields: h }), g.value = v(d.value.fields);
1738
- for (const P in d.value.fields)
1739
- if (d.value.fields[P].widget?.widget === "File") {
1740
- const ae = g.value.find((D) => D.fieldKey === P);
1741
- ae && ae.widget && (ae.widget.files = I[P] ?? []);
1742
+ const P = await s.getBtnList();
1743
+ d.value.actions = d.value.actions?.filter((L) => {
1744
+ const G = P.find((N) => N.button === L.title);
1745
+ return G ? G.isShow : !0;
1746
+ }), E.value = P.find((L) => L.button === "IsGlobal")?.isShow ?? !1, ee.value = P.find((L) => L.button === "AssignButton")?.isShow ?? !1, ne.value = P.find((L) => L.button === "AssignList")?.isShow ?? !1, A.value = P.find((L) => L.button === "AddCommentsButton")?.isShow ?? !1;
1747
+ }
1748
+ const C = m([]);
1749
+ async function T() {
1750
+ h.value = !0, s = new Re().setPageActionType(_e.Details).setClassName(c.className).setStore({ svrStore: n, bpmStore: e }).setWorkflowId(c.workflowId).build(), d.value = await s.getPageData();
1751
+ const P = await s.getFiles();
1752
+ le.value = await s.getApprovers(), W.value = await s.getCommentsHistory(), se.value = await s.getAssociator(), await k(), r.detailPageLoaded?.(d, e().employeeInfo);
1753
+ const L = d.value.fields.requestType.modelValue;
1754
+ r.Test?.({ fieldValue: L, hiddenFields: C }), g.value = b(d.value.fields);
1755
+ for (const N in d.value.fields)
1756
+ if (d.value.fields[N].widget?.widget === "File") {
1757
+ const j = g.value.find((R) => R.fieldKey === N);
1758
+ j && j.widget && (j.widget.files = P[N] ?? []);
1742
1759
  }
1743
- const K = await s.getProcess();
1744
- X.value = C(K, 0), p.value = !1;
1760
+ const G = await s.getProcess();
1761
+ oe.value = Z(G, 0), h.value = !1;
1745
1762
  }
1746
- fe(k);
1747
- async function T(I, H) {
1748
- return r[I]?.(H);
1763
+ fe(T);
1764
+ async function S(P, L) {
1765
+ return r[P]?.(L);
1749
1766
  }
1750
- function A() {
1767
+ function U() {
1751
1768
  return n()?.userInfo?.email_address ?? "";
1752
1769
  }
1753
- async function U(I, H, K, P, ae) {
1770
+ async function $(P, L, G, N, j) {
1754
1771
  try {
1755
- switch (H) {
1756
- case J.Submit:
1757
- const { reason: D, ifGlobal: be } = await T(ae, {
1758
- isGlobal: ee.value
1772
+ switch (L) {
1773
+ case X.Submit:
1774
+ let R = !0;
1775
+ if (v.value?.forEach((ge) => {
1776
+ ge?.validate && !ge.validate() && (R = !1);
1777
+ }), !R) {
1778
+ l?.appContext.config.globalProperties.$message.error(
1779
+ "Please complete all required fields before submit."
1780
+ );
1781
+ return;
1782
+ }
1783
+ const { reason: me, ifGlobal: Ce } = await S(j, {
1784
+ isGlobal: E.value
1759
1785
  });
1760
- p.value = !0;
1761
- const ke = g.value.find((Ue) => Ue.fieldKey === "approvedGrade")?.modelValue, we = ae === "Approve" ? "100" : "-1", te = await Ot(
1786
+ h.value = !0;
1787
+ const we = g.value.find((ge) => ge.fieldKey === "approvedGrade")?.modelValue, te = j === "Approve" ? "100" : "-1", Se = await jt(
1762
1788
  c.className,
1763
1789
  c.workflowId,
1764
- A(),
1765
- D,
1766
- K,
1767
- we,
1768
- be,
1790
+ U(),
1791
+ me,
1792
+ G,
1793
+ te,
1794
+ Ce,
1769
1795
  {
1770
- approvedGrade: ke
1796
+ approvedGrade: we
1771
1797
  }
1772
1798
  );
1773
- await T(`${ae}Success`, {
1799
+ await S(`${j}Success`, {
1774
1800
  workflowId: c.workflowId,
1775
- res: te
1776
- }), p.value = !1;
1777
- const Ce = ae === "Approve" ? `Request ID ${c.workflowId} has been approved.` : `Request ID ${c.workflowId} has been rejected.`;
1801
+ res: Se
1802
+ }), h.value = !1;
1803
+ const ft = j === "Approve" ? `Request ID ${c.workflowId} has been approved.` : `Request ID ${c.workflowId} has been rejected.`;
1778
1804
  l?.appContext.config.globalProperties.$notification.success(
1779
- Ce
1780
- ), k();
1805
+ ft
1806
+ ), T();
1781
1807
  break;
1782
- case J.Link:
1808
+ case X.Link:
1783
1809
  try {
1784
- await r[I.eventName || ""]?.(), a.push({
1785
- name: P,
1810
+ await r[P.eventName || ""]?.(), a.push({
1811
+ name: N,
1786
1812
  params: { className: c.className, workflowId: c.workflowId }
1787
1813
  });
1788
- } catch (Ue) {
1789
- console.error("Error in link action trigger:", Ue);
1814
+ } catch (ge) {
1815
+ console.error("Error in link action trigger:", ge);
1790
1816
  }
1791
1817
  break;
1792
- case J.Button:
1793
- await r[I.eventName || ""]?.({
1794
- approvers: oe,
1795
- associators: ne,
1796
- isShowAssignSelect: M,
1797
- isShowAssignList: Z,
1798
- assignCallback: de,
1799
- deleteAssociatorCallback: F
1818
+ case X.Button:
1819
+ await r[P.eventName || ""]?.({
1820
+ approvers: le,
1821
+ associators: se,
1822
+ isShowAssignSelect: ee,
1823
+ isShowAssignList: ne,
1824
+ assignCallback: w,
1825
+ deleteAssociatorCallback: B
1800
1826
  });
1801
1827
  break;
1802
1828
  default:
1803
- console.warn("Unknown action type:", H);
1829
+ console.warn("Unknown action type:", L);
1804
1830
  }
1805
1831
  } catch {
1806
1832
  }
1807
1833
  }
1808
- const L = m(""), O = m([]), Q = m(""), oe = m([]), ne = m([]);
1809
- async function de(I) {
1810
- if (!I) {
1834
+ const H = m(""), W = m([]), ie = m(""), le = m([]), se = m([]);
1835
+ async function w(P) {
1836
+ if (!P) {
1811
1837
  l?.appContext.config.globalProperties.$message.error(
1812
1838
  "Please select an approver"
1813
1839
  );
1814
1840
  return;
1815
1841
  }
1816
- await b(
1842
+ await I(
1817
1843
  "Confirm Assign Approver",
1818
1844
  "Do you want to assign the selected approver?"
1819
1845
  );
1820
1846
  try {
1821
- await s.assignApprover(I), ne.value = await s.getAssociator(), V(), l?.appContext.config.globalProperties.$notification.success(
1847
+ await s.assignApprover(P), se.value = await s.getAssociator(), k(), l?.appContext.config.globalProperties.$notification.success(
1822
1848
  "Assign Approver clicked!"
1823
1849
  );
1824
- } catch (H) {
1825
- if (H.status === 409) {
1850
+ } catch (L) {
1851
+ if (L.status === 409) {
1826
1852
  l?.appContext.config.globalProperties.$notification.error(
1827
1853
  "This user is already an associator"
1828
1854
  );
@@ -1833,22 +1859,22 @@ const In = /* @__PURE__ */ z({
1833
1859
  );
1834
1860
  }
1835
1861
  }
1836
- async function b(I, H) {
1837
- const { Modal: K } = await import("@arco-design/web-vue");
1838
- return new Promise((P, ae) => {
1839
- K.confirm({
1840
- title: I,
1841
- content: H,
1862
+ async function I(P, L) {
1863
+ const { Modal: G } = await import("@arco-design/web-vue");
1864
+ return new Promise((N, j) => {
1865
+ G.confirm({
1866
+ title: P,
1867
+ content: L,
1842
1868
  okText: "OK",
1843
1869
  cancelText: "Cancel",
1844
- onOk: () => P(!0),
1845
- onCancel: () => ae()
1870
+ onOk: () => N(!0),
1871
+ onCancel: () => j()
1846
1872
  });
1847
1873
  });
1848
1874
  }
1849
- async function F(I) {
1875
+ async function B(P) {
1850
1876
  try {
1851
- await b(
1877
+ await I(
1852
1878
  "Confirm Delete Associator",
1853
1879
  "Do you want to delete this associator?"
1854
1880
  );
@@ -1856,7 +1882,7 @@ const In = /* @__PURE__ */ z({
1856
1882
  return;
1857
1883
  }
1858
1884
  try {
1859
- await s.deleteAssociator(I.toString()), ne.value = await s.getAssociator(), l?.appContext.config.globalProperties.$notification.success(
1885
+ await s.deleteAssociator(P.toString()), se.value = await s.getAssociator(), l?.appContext.config.globalProperties.$notification.success(
1860
1886
  "Associator deleted successfully!"
1861
1887
  );
1862
1888
  } catch {
@@ -1865,114 +1891,115 @@ const In = /* @__PURE__ */ z({
1865
1891
  );
1866
1892
  }
1867
1893
  }
1868
- async function B() {
1869
- if (!L.value.trim()) {
1894
+ async function de() {
1895
+ if (!H.value.trim()) {
1870
1896
  l?.appContext.config.globalProperties.$message.error(
1871
1897
  "Comment cannot be empty"
1872
1898
  );
1873
1899
  return;
1874
1900
  }
1875
- await s.addComments(L.value.trim()), L.value = "", O.value = await s.getCommentsHistory(), l?.appContext.config.globalProperties.$notification.success(
1901
+ await s.addComments(H.value.trim()), H.value = "", W.value = await s.getCommentsHistory(), l?.appContext.config.globalProperties.$notification.success(
1876
1902
  "Add Comment clicked!"
1877
1903
  );
1878
1904
  }
1879
- function ce(I) {
1880
- return I ? I === "OtherInformationText" ? "Other Information" : I : "";
1905
+ function pe(P) {
1906
+ return P ? P === "OtherInformationText" ? "Other Information" : P : "";
1881
1907
  }
1882
- const pe = { svrStore: n, bpmStore: e, triggers: r, router: a, customComps: i, instance: l, props: c, get page() {
1908
+ const ze = { svrStore: n, bpmStore: e, triggers: r, router: a, customComps: i, instance: l, props: c, get page() {
1883
1909
  return s;
1884
- }, set page(I) {
1885
- s = I;
1886
- }, pageData: d, _fields: g, genField: v, groupedFields: y, reversedActions: f, loading: p, mapWorkflowSteps: C, steps: X, isGlobal: ee, isShowAssignSelect: M, isShowAssignList: Z, isShowCommentTextArea: ie, reloadButtonList: V, hiddenFields: h, load: k, triggerFn: T, getApproverEmail: A, clickHandler: U, comment: L, commentsHistory: O, selectedApprover: Q, approvers: oe, associators: ne, onAssignApprover: de, confirmDialog: b, onDeleteAssociator: F, onAddComment: B, formatTitle: ce, ActionButton: Ae, get IconDownload() {
1887
- return No;
1888
- }, TopBar: Ne, get formatDate() {
1889
- return Se;
1890
- }, ToolTip: rt, DataWidgets: Ve };
1891
- return Object.defineProperty(pe, "__isScriptSetup", { enumerable: !1, value: !0 }), pe;
1910
+ }, set page(P) {
1911
+ s = P;
1912
+ }, pageData: d, _fields: g, dataWidgetsRefs: v, genField: b, groupedFields: f, reversedActions: p, loading: h, mapWorkflowSteps: Z, steps: oe, isGlobal: E, isShowAssignSelect: ee, isShowAssignList: ne, isShowCommentTextArea: A, reloadButtonList: k, hiddenFields: C, load: T, triggerFn: S, getApproverEmail: U, clickHandler: $, comment: H, commentsHistory: W, selectedApprover: ie, approvers: le, associators: se, onAssignApprover: w, confirmDialog: I, onDeleteAssociator: B, onAddComment: de, formatTitle: pe, ActionButton: Ie, get IconDownload() {
1913
+ return Uo;
1914
+ }, TopBar: Ue, get formatDate() {
1915
+ return xe;
1916
+ }, ToolTip: st, DataWidgets: Te };
1917
+ return Object.defineProperty(ze, "__isScriptSetup", { enumerable: !1, value: !0 }), ze;
1892
1918
  }
1893
- }), Pn = { class: "page-container" }, Nn = { class: "page-body" }, Fn = { class: "detail-card" }, Un = { class: "form-fields-vertical" }, Dn = { class: "detail-fields" }, Rn = { class: "detail-field" }, Bn = {
1919
+ }), Fn = { class: "page-container" }, Un = { class: "page-body" }, Rn = { class: "detail-card" }, Dn = { class: "form-fields-vertical" }, Bn = { class: "detail-fields" }, Hn = { class: "detail-field" }, Ln = {
1894
1920
  key: 0,
1895
1921
  class: "detail-field"
1896
- }, Hn = { class: "field-label" }, Ln = {
1922
+ }, On = { class: "field-label" }, $n = {
1897
1923
  key: 1,
1898
1924
  class: "field-value"
1899
- }, On = {
1925
+ }, jn = {
1900
1926
  key: 2,
1901
1927
  class: "detail-field-wrapper"
1902
- }, $n = { class: "detail-field" }, jn = {
1928
+ }, Mn = { class: "detail-field" }, En = {
1903
1929
  key: 0,
1904
1930
  class: "detail-content"
1905
- }, Mn = { class: "page-footer" }, En = { class: "action-container" }, zn = { class: "action-buttons" };
1906
- function Kn(t, o, n, e, r, a) {
1907
- const i = x("a-link"), l = x("a-space"), c = x("a-card");
1908
- x("a-option"), x("a-select");
1909
- const s = x("a-button"), d = x("a-list-item"), g = x("a-list"), v = x("a-textarea"), y = x("a-spin");
1910
- return u(), _("div", Pn, [
1911
- N(e.TopBar, {
1931
+ }, Kn = { class: "page-footer" }, zn = { class: "action-container" }, Wn = { class: "action-buttons" };
1932
+ function Gn(t, o, n, e, r, a) {
1933
+ const i = V("a-link"), l = V("a-space"), c = V("a-card");
1934
+ V("a-option"), V("a-select");
1935
+ const s = V("a-button"), d = V("a-list-item"), g = V("a-list"), v = V("a-textarea"), b = V("a-spin");
1936
+ return u(), _("div", Fn, [
1937
+ F(e.TopBar, {
1912
1938
  title: e.pageData.banner.title,
1913
1939
  subTitle: e.pageData.banner.subTitle,
1914
1940
  email: e.getApproverEmail()
1915
1941
  }, null, 8, ["title", "subTitle", "email"]),
1916
- w("div", Nn, [
1917
- N(y, {
1942
+ y("div", Un, [
1943
+ F(b, {
1918
1944
  loading: e.loading,
1919
1945
  class: "detail-container"
1920
1946
  }, {
1921
- default: S(() => [
1922
- w("div", Fn, [
1923
- (u(), R($e(e.customComps.Steps), { steps: e.steps }, null, 8, ["steps"])),
1924
- w("div", Un, [
1925
- (u(!0), _($, null, j(e.groupedFields, (f) => (u(), R(c, {
1947
+ default: x(() => [
1948
+ y("div", Rn, [
1949
+ (u(), D($e(e.customComps.Steps), { steps: e.steps }, null, 8, ["steps"])),
1950
+ y("div", Dn, [
1951
+ (u(!0), _(O, null, M(e.groupedFields, (f) => (u(), D(c, {
1926
1952
  key: f.name,
1927
1953
  title: f.name,
1928
1954
  style: { "margin-bottom": "24px" }
1929
1955
  }, {
1930
- default: S(() => [
1931
- w("div", Dn, [
1932
- (u(!0), _($, null, j(f.fields, (p) => (u(), _("div", {
1956
+ default: x(() => [
1957
+ y("div", Bn, [
1958
+ (u(!0), _(O, null, M(f.fields, (p) => (u(), _("div", {
1933
1959
  key: p.fieldKey,
1934
1960
  class: "detail-field-wrapper"
1935
1961
  }, [
1936
- w("div", Rn, [
1937
- p.widget?.readonly ? (u(), _($, { key: 1 }, [
1938
- w("div", Hn, [
1939
- re(q(e.formatTitle(p.widget?.title)) + " ", 1),
1940
- N(e.ToolTip, {
1962
+ y("div", Hn, [
1963
+ p.widget?.readonly ? (u(), _(O, { key: 1 }, [
1964
+ y("div", On, [
1965
+ ae(Q(e.formatTitle(p.widget?.title)) + " ", 1),
1966
+ F(e.ToolTip, {
1941
1967
  "is-visible": p.widget?.isVisible ?? !1,
1942
1968
  "output-text": p.widget?.outputText ?? []
1943
1969
  }, null, 8, ["is-visible", "output-text"])
1944
1970
  ]),
1945
- p.widget?.widget === "File" ? (u(!0), _($, { key: 0 }, j(p.widget.files, (C) => (u(), _("div", {
1971
+ p.widget?.widget === "File" ? (u(!0), _(O, { key: 0 }, M(p.widget.files, (h) => (u(), _("div", {
1946
1972
  class: "field-value",
1947
- key: C.id
1973
+ key: h.id
1948
1974
  }, [
1949
- N(l, null, {
1950
- default: S(() => [
1951
- re(q(C.name) + " ", 1),
1952
- N(i, {
1953
- href: C.url,
1975
+ F(l, null, {
1976
+ default: x(() => [
1977
+ ae(Q(h.name) + " ", 1),
1978
+ F(i, {
1979
+ href: h.url,
1954
1980
  target: "_blank"
1955
1981
  }, {
1956
- default: S(() => [
1957
- N(e.IconDownload, { style: { color: "#7A00E6" } })
1982
+ default: x(() => [
1983
+ F(e.IconDownload, { style: { color: "#7A00E6" } })
1958
1984
  ]),
1959
1985
  _: 2
1960
1986
  }, 1032, ["href"])
1961
1987
  ]),
1962
1988
  _: 2
1963
1989
  }, 1024)
1964
- ]))), 128)) : (u(), _("div", Ln, q(p.fieldValue), 1))
1965
- ], 64)) : (u(), _("div", Bn, [
1966
- N(e.DataWidgets, {
1990
+ ]))), 128)) : (u(), _("div", $n, Q(p.fieldValue), 1))
1991
+ ], 64)) : (u(), _("div", Ln, [
1992
+ F(e.DataWidgets, {
1967
1993
  ref_for: !0,
1968
1994
  ref: "dataWidgets",
1995
+ "field-key": p.fieldKey,
1969
1996
  name: p.fieldKey,
1970
1997
  config: p,
1971
1998
  "class-name": n.className,
1972
1999
  modelValue: p.modelValue,
1973
- "onUpdate:modelValue": (C) => p.modelValue = C,
2000
+ "onUpdate:modelValue": (h) => p.modelValue = h,
1974
2001
  class: "form-field"
1975
- }, null, 8, ["name", "config", "class-name", "modelValue", "onUpdate:modelValue"])
2002
+ }, null, 8, ["field-key", "name", "config", "class-name", "modelValue", "onUpdate:modelValue"])
1976
2003
  ]))
1977
2004
  ])
1978
2005
  ]))), 128))
@@ -1980,57 +2007,57 @@ function Kn(t, o, n, e, r, a) {
1980
2007
  ]),
1981
2008
  _: 2
1982
2009
  }, 1032, ["title"]))), 128)),
1983
- se("", !0),
1984
- se("", !0),
1985
- e.isShowCommentTextArea ? (u(), _("div", On, [
1986
- w("div", $n, [
1987
- o[6] || (o[6] = w("div", { class: "field-label" }, "Comment", -1)),
1988
- N(v, {
2010
+ re("", !0),
2011
+ re("", !0),
2012
+ e.isShowCommentTextArea ? (u(), _("div", jn, [
2013
+ y("div", Mn, [
2014
+ o[6] || (o[6] = y("div", { class: "field-label" }, "Comment", -1)),
2015
+ F(v, {
1989
2016
  modelValue: e.comment,
1990
2017
  "onUpdate:modelValue": o[1] || (o[1] = (f) => e.comment = f)
1991
2018
  }, null, 8, ["modelValue"]),
1992
- N(s, {
2019
+ F(s, {
1993
2020
  type: "primary",
1994
2021
  onClick: e.onAddComment
1995
2022
  }, {
1996
- default: S(() => o[5] || (o[5] = [
1997
- re("Add Comment", -1)
2023
+ default: x(() => o[5] || (o[5] = [
2024
+ ae("Add Comment", -1)
1998
2025
  ])),
1999
2026
  _: 1,
2000
2027
  __: [5]
2001
2028
  })
2002
2029
  ])
2003
- ])) : se("", !0),
2004
- e.commentsHistory.length ? (u(), R(g, { key: 3 }, {
2005
- header: S(() => o[7] || (o[7] = [
2006
- re(" Comments History ", -1)
2030
+ ])) : re("", !0),
2031
+ e.commentsHistory.length ? (u(), D(g, { key: 3 }, {
2032
+ header: x(() => o[7] || (o[7] = [
2033
+ ae(" Comments History ", -1)
2007
2034
  ])),
2008
- default: S(() => [
2009
- (u(!0), _($, null, j(e.commentsHistory, (f) => (u(), R(d, {
2035
+ default: x(() => [
2036
+ (u(!0), _(O, null, M(e.commentsHistory, (f) => (u(), D(d, {
2010
2037
  key: f.associator
2011
2038
  }, {
2012
- default: S(() => [
2013
- re(q(f.associator) + ": " + q(f.comments) + " (" + q(e.formatDate(f.createdAt)) + ") ", 1)
2039
+ default: x(() => [
2040
+ ae(Q(f.associator) + ": " + Q(f.comments) + " (" + Q(e.formatDate(f.createdAt)) + ") ", 1)
2014
2041
  ]),
2015
2042
  _: 2
2016
2043
  }, 1024))), 128))
2017
2044
  ]),
2018
2045
  _: 1
2019
- })) : se("", !0)
2046
+ })) : re("", !0)
2020
2047
  ]),
2021
- t.$slots.content ? (u(), _("div", jn, [
2048
+ t.$slots.content ? (u(), _("div", En, [
2022
2049
  ue(t.$slots, "content", {}, void 0, !0)
2023
- ])) : se("", !0)
2050
+ ])) : re("", !0)
2024
2051
  ])
2025
2052
  ]),
2026
2053
  _: 3
2027
2054
  }, 8, ["loading"])
2028
2055
  ]),
2029
- w("div", Mn, [
2030
- w("div", En, [
2056
+ y("div", Kn, [
2057
+ y("div", zn, [
2031
2058
  ue(t.$slots, "action", {}, void 0, !0),
2032
- w("div", zn, [
2033
- (u(!0), _($, null, j(e.reversedActions, (f) => (u(), R(e.ActionButton, {
2059
+ y("div", Wn, [
2060
+ (u(!0), _(O, null, M(e.reversedActions, (f) => (u(), D(e.ActionButton, {
2034
2061
  key: f.title,
2035
2062
  loading: e.loading,
2036
2063
  config: f,
@@ -2042,7 +2069,7 @@ function Kn(t, o, n, e, r, a) {
2042
2069
  ])
2043
2070
  ]);
2044
2071
  }
2045
- const Wn = /* @__PURE__ */ Y(In, [["render", Kn], ["__scopeId", "data-v-9373f9f8"], ["__file", "DetailView.vue"]]), Gn = /* @__PURE__ */ z({
2072
+ const qn = /* @__PURE__ */ J(Nn, [["render", Gn], ["__scopeId", "data-v-117ace1a"], ["__file", "DetailView.vue"]]), Yn = /* @__PURE__ */ z({
2046
2073
  name: "ListView",
2047
2074
  __name: "ListView",
2048
2075
  props: {
@@ -2050,7 +2077,7 @@ const Wn = /* @__PURE__ */ Y(In, [["render", Kn], ["__scopeId", "data-v-9373f9f8
2050
2077
  },
2051
2078
  setup(t, { expose: o }) {
2052
2079
  o();
2053
- const n = Pe(), e = Ie(), r = Te(), a = ge(), i = t, l = m(), c = ft({
2080
+ const n = Fe(), e = Ne(), r = Pe(), a = ve(), i = t, l = m(), c = mt({
2054
2081
  current: 1,
2055
2082
  total: 0,
2056
2083
  pageSize: 10,
@@ -2060,34 +2087,34 @@ const Wn = /* @__PURE__ */ Y(In, [["render", Kn], ["__scopeId", "data-v-9373f9f8
2060
2087
  filters: []
2061
2088
  });
2062
2089
  function s() {
2063
- const b = Object.entries(A.value).filter(([, { value: F }]) => F && F !== "").map(([F, { value: B, operator: ce }]) => {
2090
+ const w = Object.entries(S.value).filter(([, { value: I }]) => I && I !== "").map(([I, { value: B, operator: de }]) => {
2064
2091
  const pe = typeof B == "string" ? B.trim() : B;
2065
2092
  return {
2066
- key: F,
2093
+ key: I,
2067
2094
  value: pe,
2068
- operator: ce
2095
+ operator: de
2069
2096
  // 根据实际需要调整操作符
2070
2097
  };
2071
2098
  });
2072
2099
  return {
2073
2100
  pageNumber: c.current,
2074
2101
  pageSize: c.pageSize,
2075
- filters: [...c.filters, ...b],
2102
+ filters: [...c.filters, ...w],
2076
2103
  sorts: [{
2077
2104
  key: "workflowId",
2078
2105
  type: 1
2079
2106
  }]
2080
2107
  };
2081
2108
  }
2082
- const d = E(() => ({
2083
- x: y.value.length * 150 + 250
2109
+ const d = K(() => ({
2110
+ x: b.value.length * 150 + 250
2084
2111
  // 只设置横向滚动
2085
2112
  // 移除 y 属性,让表格高度自适应
2086
- })), g = (b) => {
2087
- const F = Object.entries(b).filter(([, B]) => B.widget?.column).map(([B, ce], pe) => ({
2088
- title: ce.widget.title,
2113
+ })), g = (w) => {
2114
+ const I = Object.entries(w).filter(([, B]) => B.widget?.column).map(([B, de], pe) => ({
2115
+ title: de.widget.title,
2089
2116
  dataIndex: B.charAt(0).toLowerCase() + B.slice(1),
2090
- order: ce.order,
2117
+ order: de.order,
2091
2118
  ellipsis: !0,
2092
2119
  tooltip: !0,
2093
2120
  width: 150,
@@ -2095,8 +2122,8 @@ const Wn = /* @__PURE__ */ Y(In, [["render", Kn], ["__scopeId", "data-v-9373f9f8
2095
2122
  // 启用最小宽度
2096
2123
  resizable: !0
2097
2124
  // 启用列宽调整
2098
- })).sort((B, ce) => B.order - ce.order);
2099
- F.push({
2125
+ })).sort((B, de) => B.order - de.order);
2126
+ I.push({
2100
2127
  title: "Actions",
2101
2128
  slotName: "optional",
2102
2129
  align: "center",
@@ -2104,116 +2131,116 @@ const Wn = /* @__PURE__ */ Y(In, [["render", Kn], ["__scopeId", "data-v-9373f9f8
2104
2131
  minWidth: 200,
2105
2132
  fixed: "right",
2106
2133
  resizable: !1
2107
- }), y.value = F;
2108
- }, v = m([]), y = m([]), f = m(!0), p = m(!0), C = m(), X = async () => {
2134
+ }), b.value = I;
2135
+ }, v = m([]), b = m([]), f = m(!0), p = m(!0), h = m(), Z = async () => {
2109
2136
  p.value = !0;
2110
- const b = await Nt(i.className, s());
2111
- v.value = b.data, c.total = b.totalCount, p.value = !1;
2112
- }, ee = m(!1);
2137
+ const w = await Ut(i.className, s());
2138
+ v.value = w.data, c.total = w.totalCount, p.value = !1;
2139
+ }, oe = m(!1);
2113
2140
  fe(async () => {
2114
2141
  f.value = !0;
2115
- const b = new Fe().setPageActionType(me.List).setClassName(i.className).setStore({ svrStore: n, bpmStore: e }).build();
2116
- l.value = await b.getPageData(), g(l.value.fields), L(l.value.fields), O(), T(l.value?.tabs?.[0]?.key || ""), C.value = l.value.actions, f.value = !1, ee.value = !0;
2117
- }), pt(() => {
2118
- ee.value && X();
2142
+ const w = new Re().setPageActionType(_e.List).setClassName(i.className).setStore({ svrStore: n, bpmStore: e }).build();
2143
+ l.value = await w.getPageData(), g(l.value.fields), $(l.value.fields), H(), T(l.value?.tabs?.[0]?.key || ""), h.value = l.value.actions, f.value = !1, oe.value = !0;
2144
+ }), gt(() => {
2145
+ oe.value && Z();
2119
2146
  });
2120
- const M = (b) => {
2121
- c.current = b, X();
2122
- }, Z = (b) => {
2123
- c.pageSize = b, X();
2147
+ const E = (w) => {
2148
+ c.current = w, Z();
2149
+ }, ee = (w) => {
2150
+ c.pageSize = w, Z();
2124
2151
  };
2125
- function ie(b, F, B, ce, pe) {
2126
- switch (b) {
2127
- case J.Link:
2152
+ function ne(w, I, B, de, pe) {
2153
+ switch (w) {
2154
+ case X.Link:
2128
2155
  r.push({ name: B, params: { workflowId: pe } });
2129
2156
  break;
2130
2157
  default:
2131
- console.warn("Unknown action type:", b);
2158
+ console.warn("Unknown action type:", w);
2132
2159
  }
2133
2160
  }
2134
- function V(b, F, B) {
2135
- switch (b) {
2136
- case J.Submit:
2137
- Jt(F, { filters: [{ key: "approverList", value: h(), operator: 2 }] }), a?.appContext.config.globalProperties.$notification.success("submit success!");
2161
+ function A(w, I, B) {
2162
+ switch (w) {
2163
+ case X.Submit:
2164
+ Zt(I, { filters: [{ key: "approverList", value: k(), operator: 2 }] }), a?.appContext.config.globalProperties.$notification.success("submit success!");
2138
2165
  break;
2139
- case J.Link:
2166
+ case X.Link:
2140
2167
  r.push({ name: B });
2141
2168
  break;
2142
2169
  default:
2143
- console.warn("Unknown action type:", b);
2170
+ console.warn("Unknown action type:", w);
2144
2171
  }
2145
2172
  }
2146
- function h() {
2173
+ function k() {
2147
2174
  return n()?.userInfo?.email_address ?? "";
2148
2175
  }
2149
- function k(b, F) {
2150
- return typeof b != "string" || b.indexOf("{currentUserEmail}") === -1 ? b : b.replace(/{currentUserEmail}/g, F);
2176
+ function C(w, I) {
2177
+ return typeof w != "string" || w.indexOf("{currentUserEmail}") === -1 ? w : w.replace(/{currentUserEmail}/g, I);
2151
2178
  }
2152
- function T(b) {
2153
- const F = l.value?.tabs?.find((B) => B.key === b)?.filters;
2154
- c.filters = F?.map((B) => ({
2179
+ function T(w) {
2180
+ const I = l.value?.tabs?.find((B) => B.key === w)?.filters;
2181
+ c.filters = I?.map((B) => ({
2155
2182
  ...B,
2156
- value: k(B.value, h())
2157
- })) || [], c.current = 1, X();
2183
+ value: C(B.value, k())
2184
+ })) || [], c.current = 1, Z();
2158
2185
  }
2159
- const A = m({}), U = m([]);
2160
- function L(b) {
2161
- if (!b) return [];
2162
- U.value = Object.entries(b).filter(([, F]) => F.isFiltered).map(([F, B]) => ({ fieldKey: F, fieldConfig: B }));
2186
+ const S = m({}), U = m([]);
2187
+ function $(w) {
2188
+ if (!w) return [];
2189
+ U.value = Object.entries(w).filter(([, I]) => I.isFiltered).map(([I, B]) => ({ fieldKey: I, fieldConfig: B }));
2163
2190
  }
2164
- const O = () => {
2165
- const b = {};
2166
- U.value.forEach(({ fieldKey: F, fieldConfig: B }) => {
2167
- b[F] = {}, b[F].value = B.modelValue, b[F].operator = B.operator;
2168
- }), A.value = b;
2169
- }, Q = () => {
2170
- c.current = 1, X();
2171
- }, oe = () => {
2172
- l.value && O(), Q();
2191
+ const H = () => {
2192
+ const w = {};
2193
+ U.value.forEach(({ fieldKey: I, fieldConfig: B }) => {
2194
+ w[I] = {}, w[I].value = B.modelValue, w[I].operator = B.operator;
2195
+ }), S.value = w;
2196
+ }, W = () => {
2197
+ c.current = 1, Z();
2198
+ }, ie = () => {
2199
+ l.value && H(), W();
2173
2200
  };
2174
- function ne(b, F) {
2175
- return !(b.location !== "InTable" || b.title === "Update" && (F.sort === 3 || F.status === 100 || F.status === -1));
2201
+ function le(w, I) {
2202
+ return !(w.location !== "InTable" || w.title === "Update" && (I.sort === 3 || I.status === 100 || I.status === -1));
2176
2203
  }
2177
- const de = { svrStore: n, bpmStore: e, router: r, instance: a, props: i, pageData: l, paging: c, createListParams: s, scroll: d, mapColumns: g, _data: v, _columns: y, loadingPage: f, loadingTable: p, actions: C, loadData: X, mounted: ee, pageChangeHandler: M, pageSizeChangeHandler: Z, clickHandler: ie, createHandler: V, getApproverEmail: h, replaceEmail: k, tabHandler: T, searchForm: A, searchableFields: U, mapSearchableFields: L, initSearchForm: O, handleSearch: Q, handleReset: oe, judgeHiddenActions: ne, ActionButton: Ae, DataWidgets: Ve, TopBar: Ne };
2178
- return Object.defineProperty(de, "__isScriptSetup", { enumerable: !1, value: !0 }), de;
2204
+ const se = { svrStore: n, bpmStore: e, router: r, instance: a, props: i, pageData: l, paging: c, createListParams: s, scroll: d, mapColumns: g, _data: v, _columns: b, loadingPage: f, loadingTable: p, actions: h, loadData: Z, mounted: oe, pageChangeHandler: E, pageSizeChangeHandler: ee, clickHandler: ne, createHandler: A, getApproverEmail: k, replaceEmail: C, tabHandler: T, searchForm: S, searchableFields: U, mapSearchableFields: $, initSearchForm: H, handleSearch: W, handleReset: ie, judgeHiddenActions: le, ActionButton: Ie, DataWidgets: Te, TopBar: Ue };
2205
+ return Object.defineProperty(se, "__isScriptSetup", { enumerable: !1, value: !0 }), se;
2179
2206
  }
2180
- }), qn = { class: "list-container" }, Yn = { class: "query-title" };
2181
- function Qn(t, o, n, e, r, a) {
2182
- const i = x("a-space"), l = x("a-col"), c = x("a-button"), s = x("a-row"), d = x("a-card"), g = x("a-tab-pane"), v = x("a-tabs"), y = x("a-table");
2183
- return u(), _("div", qn, [
2184
- N(e.TopBar, {
2207
+ }), Qn = { class: "list-container" }, Jn = { class: "query-title" };
2208
+ function Xn(t, o, n, e, r, a) {
2209
+ const i = V("a-space"), l = V("a-col"), c = V("a-button"), s = V("a-row"), d = V("a-card"), g = V("a-tab-pane"), v = V("a-tabs"), b = V("a-table");
2210
+ return u(), _("div", Qn, [
2211
+ F(e.TopBar, {
2185
2212
  title: e.pageData?.banner.title ?? "",
2186
2213
  subTitle: e.pageData?.banner.subTitle ?? "",
2187
2214
  email: e.getApproverEmail()
2188
2215
  }, null, 8, ["title", "subTitle", "email"]),
2189
- N(d, null, {
2190
- default: S(() => [
2191
- w("div", Yn, [
2192
- o[0] || (o[0] = w("h3", null, "Search Conditions", -1)),
2193
- N(i, { size: "medium" }, {
2194
- default: S(() => [
2195
- (u(!0), _($, null, j(e.actions, (f) => (u(), _($, {
2216
+ F(d, null, {
2217
+ default: x(() => [
2218
+ y("div", Jn, [
2219
+ o[0] || (o[0] = y("h3", null, "Search Conditions", -1)),
2220
+ F(i, { size: "medium" }, {
2221
+ default: x(() => [
2222
+ (u(!0), _(O, null, M(e.actions, (f) => (u(), _(O, {
2196
2223
  key: f.title
2197
2224
  }, [
2198
- f.location === "InOperation" ? (u(), R(e.ActionButton, {
2225
+ f.location === "InOperation" ? (u(), D(e.ActionButton, {
2199
2226
  key: 0,
2200
2227
  config: f,
2201
2228
  onClick: e.createHandler
2202
- }, null, 8, ["config"])) : se("", !0)
2229
+ }, null, 8, ["config"])) : re("", !0)
2203
2230
  ], 64))), 128))
2204
2231
  ]),
2205
2232
  _: 1
2206
2233
  })
2207
2234
  ]),
2208
- N(s, { gutter: [24, 20] }, {
2209
- default: S(() => [
2210
- (u(!0), _($, null, j(e.searchableFields, (f) => (u(), R(l, {
2235
+ F(s, { gutter: [24, 20] }, {
2236
+ default: x(() => [
2237
+ (u(!0), _(O, null, M(e.searchableFields, (f) => (u(), D(l, {
2211
2238
  key: f.fieldKey,
2212
2239
  span: 6,
2213
2240
  class: "search-col"
2214
2241
  }, {
2215
- default: S(() => [
2216
- N(e.DataWidgets, {
2242
+ default: x(() => [
2243
+ F(e.DataWidgets, {
2217
2244
  name: f.fieldKey,
2218
2245
  config: f.fieldConfig,
2219
2246
  modelValue: e.searchForm[f.fieldKey].value,
@@ -2223,30 +2250,30 @@ function Qn(t, o, n, e, r, a) {
2223
2250
  ]),
2224
2251
  _: 2
2225
2252
  }, 1024))), 128)),
2226
- N(l, {
2253
+ F(l, {
2227
2254
  span: 6,
2228
2255
  class: "search-col form-buttons"
2229
2256
  }, {
2230
- default: S(() => [
2231
- N(i, { size: "medium" }, {
2232
- default: S(() => [
2233
- N(c, {
2257
+ default: x(() => [
2258
+ F(i, { size: "medium" }, {
2259
+ default: x(() => [
2260
+ F(c, {
2234
2261
  type: "primary",
2235
2262
  size: "medium",
2236
2263
  onClick: e.handleSearch
2237
2264
  }, {
2238
- default: S(() => o[1] || (o[1] = [
2239
- re(" Search ", -1)
2265
+ default: x(() => o[1] || (o[1] = [
2266
+ ae(" Search ", -1)
2240
2267
  ])),
2241
2268
  _: 1,
2242
2269
  __: [1]
2243
2270
  }),
2244
- N(c, {
2271
+ F(c, {
2245
2272
  size: "medium",
2246
2273
  onClick: e.handleReset
2247
2274
  }, {
2248
- default: S(() => o[2] || (o[2] = [
2249
- re(" Reset ", -1)
2275
+ default: x(() => o[2] || (o[2] = [
2276
+ ae(" Reset ", -1)
2250
2277
  ])),
2251
2278
  _: 1,
2252
2279
  __: [2]
@@ -2263,19 +2290,19 @@ function Qn(t, o, n, e, r, a) {
2263
2290
  ]),
2264
2291
  _: 1
2265
2292
  }),
2266
- N(v, {
2293
+ F(v, {
2267
2294
  size: "large",
2268
2295
  onTabClick: e.tabHandler
2269
2296
  }, {
2270
- default: S(() => [
2271
- (u(!0), _($, null, j(e.pageData?.tabs, (f) => (u(), R(g, {
2297
+ default: x(() => [
2298
+ (u(!0), _(O, null, M(e.pageData?.tabs, (f) => (u(), D(g, {
2272
2299
  key: f.key,
2273
2300
  title: f.title
2274
2301
  }, null, 8, ["title"]))), 128))
2275
2302
  ]),
2276
2303
  _: 1
2277
2304
  }),
2278
- N(y, {
2305
+ F(b, {
2279
2306
  columns: e._columns,
2280
2307
  data: e._data,
2281
2308
  stripe: "",
@@ -2294,18 +2321,18 @@ function Qn(t, o, n, e, r, a) {
2294
2321
  onPageChange: e.pageChangeHandler,
2295
2322
  onPageSizeChange: e.pageSizeChangeHandler
2296
2323
  }, {
2297
- optional: S(({ record: f }) => [
2298
- N(i, { size: "small" }, {
2299
- default: S(() => [
2300
- (u(!0), _($, null, j(e.actions, (p) => (u(), _($, {
2324
+ optional: x(({ record: f }) => [
2325
+ F(i, { size: "small" }, {
2326
+ default: x(() => [
2327
+ (u(!0), _(O, null, M(e.actions, (p) => (u(), _(O, {
2301
2328
  key: p.title
2302
2329
  }, [
2303
- e.judgeHiddenActions(p, f) ? (u(), R(e.ActionButton, {
2330
+ e.judgeHiddenActions(p, f) ? (u(), D(e.ActionButton, {
2304
2331
  key: 0,
2305
2332
  config: p,
2306
2333
  size: "small",
2307
- onClick: (...C) => e.clickHandler(...C, f.workflowId)
2308
- }, null, 8, ["config", "onClick"])) : se("", !0)
2334
+ onClick: (...h) => e.clickHandler(...h, f.workflowId)
2335
+ }, null, 8, ["config", "onClick"])) : re("", !0)
2309
2336
  ], 64))), 128))
2310
2337
  ]),
2311
2338
  _: 2
@@ -2315,12 +2342,12 @@ function Qn(t, o, n, e, r, a) {
2315
2342
  }, 8, ["columns", "data", "pagination", "loading", "scroll"])
2316
2343
  ]);
2317
2344
  }
2318
- const Jn = /* @__PURE__ */ Y(Gn, [["render", Qn], ["__scopeId", "data-v-a24e1b40"], ["__file", "ListView.vue"]]), na = {
2345
+ const Zn = /* @__PURE__ */ J(Yn, [["render", Xn], ["__scopeId", "data-v-a24e1b40"], ["__file", "ListView.vue"]]), ra = {
2319
2346
  install(t, o = {}) {
2320
- o.config && kt(o.config), o.router && t.provide(st, o.router), o.pinia && t.provide(qo, o.pinia), o.useBpmStore && t.provide(lt, o.useBpmStore), o.useSvrStore && t.provide(ct, o.useSvrStore), o.triggers && t.provide(it, o.triggers), o.customComps && t.provide(dt, o.customComps), t.component("CreateView", gn), t.component("UpdateView", An), t.component("DetailView", Wn), t.component("ListView", Jn);
2347
+ o.config && St(o.config), o.router && t.provide(it, o.router), o.pinia && t.provide(Qo, o.pinia), o.useBpmStore && t.provide(ct, o.useBpmStore), o.useSvrStore && t.provide(dt, o.useSvrStore), o.triggers && t.provide(lt, o.triggers), o.customComps && t.provide(ut, o.customComps), t.component("CreateView", vn), t.component("UpdateView", In), t.component("DetailView", qn), t.component("ListView", Zn);
2321
2348
  }
2322
2349
  };
2323
2350
  export {
2324
- na as default
2351
+ ra as default
2325
2352
  };
2326
2353
  //# sourceMappingURL=index.es.js.map