@chase-shao/vue-component-lib 1.2.90 → 1.2.91

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,14 +1,14 @@
1
- import { ref as m, getCurrentInstance as pe, defineComponent as E, mergeModels as le, useModel as we, resolveComponent as C, createBlock as F, openBlock as d, onMounted as ue, computed as G, withCtx as k, createElementBlock as h, Fragment as O, renderList as M, createVNode as N, nextTick as dt, createTextVNode as ne, inject as me, normalizeStyle as Ye, normalizeClass as Qe, createElementVNode as b, createCommentVNode as oe, toDisplayString as Q, useTemplateRef as He, resolveDynamicComponent as Le, renderSlot as de, reactive as ut, onActivated as ft } from "vue";
1
+ import { ref as m, getCurrentInstance as pe, defineComponent as z, mergeModels as le, useModel as we, resolveComponent as C, createBlock as F, openBlock as d, onMounted as ue, computed as E, withCtx as k, createElementBlock as v, Fragment as O, renderList as $, createVNode as N, nextTick as dt, createTextVNode as ne, inject as me, normalizeStyle as Ye, normalizeClass as Qe, createElementVNode as h, createCommentVNode as oe, toDisplayString as q, useTemplateRef as He, resolveDynamicComponent as Le, renderSlot as de, reactive as ut, onActivated as ft } from "vue";
2
2
  import pt from "axios";
3
3
  import { defineStore as mt } from "pinia";
4
4
  import { Modal as gt } from "@arco-design/web-vue";
5
5
  import { useRouter as _t } from "vue-router";
6
6
  const vt = mt("main", () => ({
7
7
  token: m(void 0)
8
- })), bt = async (t) => new Promise((n) => setTimeout(n, t)), ht = async (t, n, a, e = void 0) => {
8
+ })), bt = async (t) => new Promise((n) => setTimeout(n, t)), ht = async (t, n, r, e = void 0) => {
9
9
  if (t[n] === void 0)
10
10
  try {
11
- t[n] = null, t[n] = await a() || e;
11
+ t[n] = null, t[n] = await r() || e;
12
12
  } catch (o) {
13
13
  console.error(o), t[n] = void 0;
14
14
  }
@@ -22,30 +22,30 @@ const vt = mt("main", () => ({
22
22
  if (!t || typeof t == "string" && t.length === 0)
23
23
  return "";
24
24
  try {
25
- const a = new Date(t), e = [
26
- ["yyyy", a.getFullYear()],
27
- ["yy", a.getFullYear().toString().substring(2)],
28
- ["MM", ye(a.getMonth() + 1)],
29
- ["M", a.getMonth() + 1],
30
- ["dd", ye(a.getDate())],
31
- ["d", a.getDate()],
32
- ["hh", ye(a.getHours())],
33
- ["h", a.getHours()],
34
- ["mm", ye(a.getMinutes())],
35
- ["m", a.getMinutes()],
36
- ["ss", ye(a.getSeconds())],
37
- ["s", a.getSeconds()]
25
+ const r = new Date(t), e = [
26
+ ["yyyy", r.getFullYear()],
27
+ ["yy", r.getFullYear().toString().substring(2)],
28
+ ["MM", ye(r.getMonth() + 1)],
29
+ ["M", r.getMonth() + 1],
30
+ ["dd", ye(r.getDate())],
31
+ ["d", r.getDate()],
32
+ ["hh", ye(r.getHours())],
33
+ ["h", r.getHours()],
34
+ ["mm", ye(r.getMinutes())],
35
+ ["m", r.getMinutes()],
36
+ ["ss", ye(r.getSeconds())],
37
+ ["s", r.getSeconds()]
38
38
  ];
39
- for (const [o, l] of e)
40
- n = n.replace(o, l);
39
+ for (const [o, c] of e)
40
+ n = n.replace(o, c);
41
41
  return n;
42
42
  } catch {
43
43
  return t.toLocaleString();
44
44
  }
45
45
  }, yt = (t, n) => {
46
- let a;
47
- t instanceof Blob ? a = t : a = new Blob([t]);
48
- const e = document.createElement("a"), o = window.URL.createObjectURL(a);
46
+ let r;
47
+ t instanceof Blob ? r = t : r = new Blob([t]);
48
+ const e = document.createElement("a"), o = window.URL.createObjectURL(r);
49
49
  e.href = o, e.download = n, e.click(), window.URL.revokeObjectURL(o);
50
50
  };
51
51
  let Fe = {};
@@ -85,9 +85,9 @@ function Xe() {
85
85
  return n.interceptors.response.use(Ct), n;
86
86
  }
87
87
  const Ze = async () => {
88
- const { apiBase: t, appSecret: n } = Je(), a = Xe(), e = vt();
88
+ const { apiBase: t, appSecret: n } = Je(), r = Xe(), e = vt();
89
89
  return await ht(e, "token", async () => {
90
- const o = await a.get(`${t}/GenerateToken`, {
90
+ const o = await r.get(`${t}/GenerateToken`, {
91
91
  params: {
92
92
  appid: "bpm",
93
93
  appsecret: n
@@ -97,7 +97,7 @@ const Ze = async () => {
97
97
  e.token = void 0;
98
98
  }, (o.data?.expireSeconds ?? 3600) * 1e3), o?.data?.token;
99
99
  });
100
- }, K = async () => {
100
+ }, W = async () => {
101
101
  const t = await Ze(), n = Xe();
102
102
  return n.defaults.headers.common.Authorization = `Bearer ${t}`, n;
103
103
  }, Ne = {
@@ -107,11 +107,11 @@ const Ze = 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
- }, W = [];
110
+ }, G = [];
111
111
  for (let t = 0; t < 256; ++t)
112
- W.push((t + 256).toString(16).slice(1));
112
+ G.push((t + 256).toString(16).slice(1));
113
113
  function St(t, n = 0) {
114
- return (W[t[n + 0]] + W[t[n + 1]] + W[t[n + 2]] + W[t[n + 3]] + "-" + W[t[n + 4]] + W[t[n + 5]] + "-" + W[t[n + 6]] + W[t[n + 7]] + "-" + W[t[n + 8]] + W[t[n + 9]] + "-" + W[t[n + 10]] + W[t[n + 11]] + W[t[n + 12]] + W[t[n + 13]] + W[t[n + 14]] + W[t[n + 15]]).toLowerCase();
114
+ return (G[t[n + 0]] + G[t[n + 1]] + G[t[n + 2]] + G[t[n + 3]] + "-" + G[t[n + 4]] + G[t[n + 5]] + "-" + G[t[n + 6]] + G[t[n + 7]] + "-" + G[t[n + 8]] + G[t[n + 9]] + "-" + G[t[n + 10]] + G[t[n + 11]] + G[t[n + 12]] + G[t[n + 13]] + G[t[n + 14]] + G[t[n + 15]]).toLowerCase();
115
115
  }
116
116
  let Ue;
117
117
  const xt = new Uint8Array(16);
@@ -124,7 +124,7 @@ function At() {
124
124
  return Ue(xt);
125
125
  }
126
126
  const Tt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ze = { randomUUID: Tt };
127
- function et(t, n, a) {
127
+ function et(t, n, r) {
128
128
  if (ze.randomUUID && !t)
129
129
  return ze.randomUUID();
130
130
  t = t || {};
@@ -134,7 +134,7 @@ function et(t, n, a) {
134
134
  return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, St(e);
135
135
  }
136
136
  var J = /* @__PURE__ */ ((t) => (t[t.Submit = 0] = "Submit", t[t.Link = 1] = "Link", t[t.Button = 2] = "Button", t))(J || {}), fe = /* @__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))(fe || {});
137
- function Vt(t, n, a) {
137
+ function Vt(t, n, r) {
138
138
  const e = {
139
139
  pageType: "",
140
140
  fields: {},
@@ -155,7 +155,7 @@ function Vt(t, n, a) {
155
155
  appliesTo: o.propertyNames || ["*"]
156
156
  });
157
157
  else if (o.attributeType === "UIControl") {
158
- const l = o.showToRoles.split(",").map((c) => c.trim()), s = a.bpmStore().employeeInfo.roleList.some((c) => l.includes(c.name)) || o.showToRoles === "";
158
+ const c = o.showToRoles.split(",").map((l) => l.trim()), s = r.bpmStore().employeeInfo.roleList.some((l) => c.includes(l.name)) || o.showToRoles === "";
159
159
  if (o.widget === "Tab") {
160
160
  e.tabs || (e.tabs = []), s && e.tabs.push({
161
161
  key: et(),
@@ -181,8 +181,8 @@ function Vt(t, n, a) {
181
181
  eventName: o.eventName
182
182
  });
183
183
  }
184
- } else o.attributeType === "Banner" && (e.banner.title = o.title, n === 0 || n === 5 ? e.banner.subTitle = o.subTitle : e.banner.subTitle = $e(o.subTitle, t.workflowId.propertyValue));
185
- }), e.tabs && (e.tabs = e.tabs.sort((o, l) => o.order - l.order)), Object.entries(t).forEach(([o, l]) => {
184
+ } else o.attributeType === "Banner" && (e.banner.title = o.title, n === 0 || n === 5 ? e.banner.subTitle = o.subTitle : e.banner.subTitle = Oe(o.subTitle, t.workflowId.propertyValue));
185
+ }), e.tabs && (e.tabs = e.tabs.sort((o, c) => o.order - c.order)), Object.entries(t).forEach(([o, c]) => {
186
186
  if (o === "__ClassAttributes" || o === "className" || o === "id" || o === "deleteFlag" || o === "status" || o === "workFlowReason" || n !== 3 && o === "workflowId")
187
187
  return;
188
188
  const s = {
@@ -191,7 +191,7 @@ function Vt(t, n, a) {
191
191
  isFiltered: !1,
192
192
  dependent: "",
193
193
  operator: ""
194
- }, { attributes: c, propertyValue: i } = l;
194
+ }, { attributes: l, propertyValue: i } = c;
195
195
  switch (i) {
196
196
  case null:
197
197
  s.modelValue = "";
@@ -203,26 +203,26 @@ function Vt(t, n, a) {
203
203
  s.modelValue = i;
204
204
  break;
205
205
  }
206
- o === "onBehalf" && n === 0 && (s.modelValue = Ne.CurrentUserEmail(a)), (n === 1 || n === 5) && (o === "directReports" || o === "employeesInTheTeam") && s.modelValue && (s.modelValue = Number(s.modelValue)), c?.forEach((r) => {
207
- r.order || r.Order ? s.order = r.order ?? r.Order : r.attributeType === "UIControl" ? (r.outputText = r.outputText ? JSON.parse(r.outputText) : [], s.widget = {
208
- ...r,
206
+ o === "onBehalf" && n === 0 && (s.modelValue = Ne.CurrentUserEmail(r)), (n === 1 || n === 5) && (o === "directReports" || o === "employeesInTheTeam") && s.modelValue && (s.modelValue = Number(s.modelValue)), l?.forEach((a) => {
207
+ a.order || a.Order ? s.order = a.order ?? a.Order : a.attributeType === "UIControl" ? (a.outputText = a.outputText ? JSON.parse(a.outputText) : [], s.widget = {
208
+ ...a,
209
209
  column: !0
210
- }) : r.attributeType === "UIValidationControl" && n !== 3 ? s.widget?.widget !== "CheckBox" && s.validations.push(r) : r.attributeType === "UIListed" ? s.widget = {
211
- ...r,
210
+ }) : a.attributeType === "UIValidationControl" && n !== 3 ? s.widget?.widget !== "CheckBox" && s.validations.push(a) : a.attributeType === "UIListed" ? s.widget = {
211
+ ...a,
212
212
  column: !0
213
- } : r.attributeType === "UIFiltered" ? (s.isFiltered = !0, s.operator = r.operatorType) : r.dependentType ? s.dependent = Ne[r.dependentType] ? Ne[r.dependentType](a) : "" : r.eventType === "Change" && s.triggers?.push({
213
+ } : a.attributeType === "UIFiltered" ? (s.isFiltered = !0, s.operator = a.operatorType) : a.dependentType ? s.dependent = Ne[a.dependentType] ? Ne[a.dependentType](r) : "" : a.eventType === "Change" && s.triggers?.push({
214
214
  event: "change",
215
- handlerName: r.eventName
215
+ handlerName: a.eventName
216
216
  });
217
217
  }), e.fields[o] = s;
218
218
  }), e;
219
219
  }
220
- const Ke = async (t, n, a, e) => {
221
- const l = await (await K()).get(`/General/${n}/${t}/page`, { params: e });
222
- return Vt(l?.data, t, a);
223
- }, It = async (t, n, a) => (await (await K()).post(`/${n}/${t}/button/List`, null, { params: a }))?.data;
220
+ const Ke = async (t, n, r, e) => {
221
+ const c = await (await W()).get(`/General/${n}/${t}/page`, { params: e });
222
+ return Vt(c?.data, t, r);
223
+ }, It = async (t, n, r) => (await (await W()).post(`/${n}/${t}/button/List`, null, { params: r }))?.data;
224
224
  async function Pt(t, n) {
225
- const e = await (await K()).post(`/General/${t}/list`, n);
225
+ const e = await (await W()).post(`/General/${t}/list`, n);
226
226
  return {
227
227
  data: e.data.data,
228
228
  totalCount: e.data.totalCount
@@ -241,18 +241,18 @@ async function Pt(t, n) {
241
241
  // ),
242
242
  };
243
243
  }
244
- async function Nt(t, n, a) {
245
- return (await (await K()).post(a, n, {
244
+ async function Nt(t, n, r) {
245
+ return (await (await W()).post(r, n, {
246
246
  params: {
247
247
  className: t
248
248
  }
249
249
  })).data;
250
250
  }
251
- async function Ut(t, n, a, e) {
252
- const o = await K(), l = $e(e, n);
253
- return (await o.put(l, a))?.data;
251
+ async function Ut(t, n, r, e) {
252
+ const o = await W(), c = Oe(e, n);
253
+ return (await o.put(c, r))?.data;
254
254
  }
255
- function $e(t, n) {
255
+ function Oe(t, n) {
256
256
  return t.replace(/{WorkflowId}/g, n);
257
257
  }
258
258
  function Dt(t, n) {
@@ -270,22 +270,22 @@ function Ht(t, n) {
270
270
  function Lt(t, n) {
271
271
  return t.replace(/{ClassName}/g, encodeURIComponent(n));
272
272
  }
273
- async function Rt(t, n, a, e, o, l, s, c) {
274
- const i = await K();
275
- let r = $e(l, n);
276
- return r = Dt(r, a), r = Bt(r, e), r = Ft(r, s), r = Ht(r, c), r = Lt(r, t), (await i.put(r, o))?.data;
273
+ async function Rt(t, n, r, e, o, c, s, l) {
274
+ const i = await W();
275
+ let a = Oe(c, n);
276
+ return a = Dt(a, r), a = Bt(a, e), a = Ft(a, s), a = Ht(a, l), a = Lt(a, t), (await i.put(a, o))?.data;
277
277
  }
278
- async function $t(t, n) {
279
- const o = (await (await K()).get(t, { params: { value: n } }))?.data;
280
- return Object.entries(o).map(([l, s]) => ({
281
- value: l,
278
+ async function Ot(t, n) {
279
+ const o = (await (await W()).get(t, { params: { value: n } }))?.data;
280
+ return Object.entries(o).map(([c, s]) => ({
281
+ value: c,
282
282
  label: s
283
283
  }));
284
284
  }
285
- async function Ot(t, n) {
286
- return (await (await K()).get(`/General/${t}/${n}/process`))?.data;
285
+ async function jt(t, n) {
286
+ return (await (await W()).get(`/General/${t}/${n}/process`))?.data;
287
287
  }
288
- function jt(t) {
288
+ function $t(t) {
289
289
  return {
290
290
  uid: t.id ?? et(),
291
291
  name: t.attachmentName ?? "unknown",
@@ -293,57 +293,57 @@ function jt(t) {
293
293
  };
294
294
  }
295
295
  async function Mt(t, n) {
296
- return (await (await K()).get(`/General/${t}/${n}/upload/get`))?.data.reduce((l, s) => {
297
- const { category: c } = s;
298
- return l[c] || (l[c] = []), l[c].push(jt(s)), l;
296
+ return (await (await W()).get(`/General/${t}/${n}/upload/get`))?.data.reduce((c, s) => {
297
+ const { category: l } = s;
298
+ return c[l] || (c[l] = []), c[l].push($t(s)), c;
299
299
  }, {});
300
300
  }
301
301
  async function Et(t, n) {
302
- return (await K()).post(`/General/${t}/${n}/delete/attachment`);
302
+ return (await W()).post(`/General/${t}/${n}/delete/attachment`);
303
303
  }
304
304
  async function zt() {
305
- const n = await (await K()).get("/Grading/dropdown/approvers");
306
- return Object.entries(n?.data).map(([a, e]) => ({
307
- label: a,
305
+ const n = await (await W()).get("/Grading/dropdown/approvers");
306
+ return Object.entries(n?.data).map(([r, e]) => ({
307
+ label: r,
308
308
  value: e
309
309
  }));
310
310
  }
311
311
  async function Kt(t, n) {
312
- return await (await K()).post(`Grading/AssignComments/${t}/${encodeURIComponent(n)}`);
312
+ return await (await W()).post(`Grading/AssignComments/${t}/${encodeURIComponent(n)}`);
313
313
  }
314
- async function Wt(t, n, a) {
315
- return await (await K()).post(`Grading/AddComments/${t}/${encodeURIComponent(n)}`, a, {
314
+ async function Wt(t, n, r) {
315
+ return await (await W()).post(`Grading/AddComments/${t}/${encodeURIComponent(n)}`, r, {
316
316
  headers: { "Content-Type": "application/json;charset=UTF-8" }
317
317
  });
318
318
  }
319
319
  async function Gt(t) {
320
- return (await (await K()).get(`Grading/GetComments/${t}`))?.data;
320
+ return (await (await W()).get(`Grading/GetComments/${t}`))?.data;
321
321
  }
322
322
  async function qt(t) {
323
- return (await (await K()).get(`Grading/GetAssociator/${t}`))?.data;
323
+ return (await (await W()).get(`Grading/GetAssociator/${t}`))?.data;
324
324
  }
325
325
  async function Yt(t) {
326
- return await (await K()).delete(`Grading/DeleteAssociator/${t}`);
326
+ return await (await W()).delete(`Grading/DeleteAssociator/${t}`);
327
327
  }
328
328
  async function Qt(t, n = null) {
329
- const e = await (await K()).post(t, n, {
329
+ const e = await (await W()).post(t, n, {
330
330
  responseType: "blob"
331
331
  });
332
332
  yt(e?.data, "WorkflowData.xlsx");
333
333
  }
334
334
  const ge = (t, n) => {
335
- let a = "";
335
+ let r = "";
336
336
  return { res: t.every((o) => {
337
- const l = Jt(o, n);
338
- return l || (a = o.errorMessage), l;
339
- }), errorMessages: a };
337
+ const c = Jt(o, n);
338
+ return c || (r = o.errorMessage), c;
339
+ }), errorMessages: r };
340
340
  }, Jt = (t, n) => {
341
- const { ruleName: a, ruleParameter: e } = t;
342
- return Xt[a](e, n);
341
+ const { ruleName: r, ruleParameter: e } = t;
342
+ return Xt[r](e, n);
343
343
  }, Xt = {
344
344
  Regex: (t, n) => new RegExp(t).test(n),
345
345
  Required: (t, n) => !!n
346
- }, Zt = /* @__PURE__ */ E({
346
+ }, Zt = /* @__PURE__ */ z({
347
347
  __name: "InputText",
348
348
  props: /* @__PURE__ */ le({
349
349
  fieldKey: {},
@@ -357,8 +357,8 @@ const ge = (t, n) => {
357
357
  modelModifiers: {}
358
358
  }),
359
359
  emits: /* @__PURE__ */ le(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
360
- setup(t, { expose: n, emit: a }) {
361
- const e = t, o = a, l = we(t, "modelValue"), s = (u) => ge(e.validations, u), c = (u) => {
360
+ setup(t, { expose: n, emit: r }) {
361
+ const e = t, o = r, c = we(t, "modelValue"), s = (u) => ge(e.validations, u), l = (u) => {
362
362
  o("input", u);
363
363
  }, i = (u) => {
364
364
  const g = s(u);
@@ -372,27 +372,27 @@ const ge = (t, n) => {
372
372
  return o("error", u.res ? "" : u.errorMessages), u.res;
373
373
  }
374
374
  });
375
- const r = { props: e, emits: o, model: l, validate: s, inputHandler: c, changeHandler: i };
376
- return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
375
+ const a = { props: e, emits: o, model: c, validate: s, inputHandler: l, changeHandler: i };
376
+ return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
377
377
  }
378
- }), q = (t, n) => {
379
- const a = t.__vccOpts || t;
378
+ }), Y = (t, n) => {
379
+ const r = t.__vccOpts || t;
380
380
  for (const [e, o] of n)
381
- a[e] = o;
382
- return a;
381
+ r[e] = o;
382
+ return r;
383
383
  };
384
- function en(t, n, a, e, o, l) {
384
+ function en(t, n, r, e, o, c) {
385
385
  const s = C("AInput");
386
386
  return d(), F(s, {
387
387
  modelValue: e.model,
388
- "onUpdate:modelValue": n[0] || (n[0] = (c) => e.model = c),
388
+ "onUpdate:modelValue": n[0] || (n[0] = (l) => e.model = l),
389
389
  "allow-clear": "",
390
390
  disabled: e.props.readonly || e.props.config.Readonly,
391
391
  onInput: e.inputHandler,
392
392
  onChange: e.changeHandler
393
393
  }, null, 8, ["modelValue", "disabled"]);
394
394
  }
395
- const We = /* @__PURE__ */ q(Zt, [["render", en], ["__file", "InputText.vue"]]), tn = /* @__PURE__ */ E({
395
+ const We = /* @__PURE__ */ Y(Zt, [["render", en], ["__file", "InputText.vue"]]), tn = /* @__PURE__ */ z({
396
396
  __name: "InputNumber",
397
397
  props: /* @__PURE__ */ le({
398
398
  fieldKey: {},
@@ -406,14 +406,14 @@ const We = /* @__PURE__ */ q(Zt, [["render", en], ["__file", "InputText.vue"]]),
406
406
  modelModifiers: {}
407
407
  }),
408
408
  emits: /* @__PURE__ */ le(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
409
- setup(t, { expose: n, emit: a }) {
410
- const e = t, o = a, l = we(t, "modelValue"), s = m(100), c = m(1);
409
+ setup(t, { expose: n, emit: r }) {
410
+ const e = t, o = r, c = we(t, "modelValue"), s = m(100), l = m(1);
411
411
  ue(() => {
412
412
  e.validations && e.validations.forEach((_) => {
413
- _.ruleName === "Max" && (s.value = _.ruleParameter), _.ruleName === "Min" && (c.value = _.ruleParameter);
413
+ _.ruleName === "Max" && (s.value = _.ruleParameter), _.ruleName === "Min" && (l.value = _.ruleParameter);
414
414
  });
415
415
  });
416
- const i = (_) => ge(e.validations, _), r = (_) => {
416
+ const i = (_) => ge(e.validations, _), a = (_) => {
417
417
  o("input", _);
418
418
  }, u = (_) => {
419
419
  const S = i(_);
@@ -427,15 +427,15 @@ const We = /* @__PURE__ */ q(Zt, [["render", en], ["__file", "InputText.vue"]]),
427
427
  return o("error", _.res ? "" : _.errorMessages), _.res;
428
428
  }
429
429
  });
430
- const g = { props: e, emits: o, model: l, max: s, min: c, validate: i, inputHandler: r, changeHandler: u };
430
+ const g = { props: e, emits: o, model: c, max: s, min: l, validate: i, inputHandler: a, changeHandler: u };
431
431
  return Object.defineProperty(g, "__isScriptSetup", { enumerable: !1, value: !0 }), g;
432
432
  }
433
433
  });
434
- function nn(t, n, a, e, o, l) {
434
+ function nn(t, n, r, e, o, c) {
435
435
  const s = C("AInputNumber");
436
436
  return d(), F(s, {
437
437
  modelValue: e.model,
438
- "onUpdate:modelValue": n[0] || (n[0] = (c) => e.model = c),
438
+ "onUpdate:modelValue": n[0] || (n[0] = (l) => e.model = l),
439
439
  clearable: "",
440
440
  disabled: e.props.readonly,
441
441
  min: e.min,
@@ -443,7 +443,7 @@ function nn(t, n, a, e, o, l) {
443
443
  onChange: e.changeHandler
444
444
  }, null, 8, ["modelValue", "disabled", "min"]);
445
445
  }
446
- const on = /* @__PURE__ */ q(tn, [["render", nn], ["__file", "InputNumber.vue"]]), an = /* @__PURE__ */ E({
446
+ const on = /* @__PURE__ */ Y(tn, [["render", nn], ["__file", "InputNumber.vue"]]), rn = /* @__PURE__ */ z({
447
447
  __name: "SelectList",
448
448
  props: /* @__PURE__ */ le({
449
449
  fieldKey: {},
@@ -457,8 +457,8 @@ const on = /* @__PURE__ */ q(tn, [["render", nn], ["__file", "InputNumber.vue"]]
457
457
  modelModifiers: {}
458
458
  }),
459
459
  emits: /* @__PURE__ */ le(["update:modelValue", "change"], ["update:modelValue"]),
460
- setup(t, { expose: n, emit: a }) {
461
- const e = t, o = a, l = m(!1), s = m(e.config.options ?? []), c = we(t, "modelValue"), i = (S) => ge(e.validations, S), r = G(() => {
460
+ setup(t, { expose: n, emit: r }) {
461
+ const e = t, o = r, c = m(!1), s = m(e.config.options ?? []), l = we(t, "modelValue"), i = (S) => ge(e.validations, S), a = E(() => {
462
462
  const S = {};
463
463
  return e.triggers && e.triggers.length > 0 && e.triggers.forEach((f) => {
464
464
  S[f.event] = (p) => {
@@ -468,7 +468,7 @@ const on = /* @__PURE__ */ q(tn, [["render", nn], ["__file", "InputNumber.vue"]]
468
468
  };
469
469
  }), S;
470
470
  }), u = async () => {
471
- e.config.dataSourceProvider && (s.value = await $t(e.config.dataSourceProvider));
471
+ e.config.dataSourceProvider && (s.value = await Ot(e.config.dataSourceProvider));
472
472
  };
473
473
  ue(u);
474
474
  const g = (S) => {
@@ -484,13 +484,13 @@ const on = /* @__PURE__ */ q(tn, [["render", nn], ["__file", "InputNumber.vue"]]
484
484
  return o("error", S.res ? "" : S.errorMessages), S.res;
485
485
  }
486
486
  });
487
- const _ = { props: e, emits: o, loading: l, _options: s, model: c, validate: i, eventHandlers: r, loadOptions: u, changeHandler: g };
487
+ const _ = { props: e, emits: o, loading: c, _options: s, model: l, validate: i, eventHandlers: a, loadOptions: u, changeHandler: g };
488
488
  return Object.defineProperty(_, "__isScriptSetup", { enumerable: !1, value: !0 }), _;
489
489
  }
490
490
  });
491
- function rn(t, n, a, e, o, l) {
492
- const s = C("AOption"), c = C("ASelect");
493
- return d(), F(c, {
491
+ function an(t, n, r, e, o, c) {
492
+ const s = C("AOption"), l = C("ASelect");
493
+ return d(), F(l, {
494
494
  "allow-clear": "",
495
495
  modelValue: e.model,
496
496
  "onUpdate:modelValue": n[0] || (n[0] = (i) => e.model = i),
@@ -501,7 +501,7 @@ function rn(t, n, a, e, o, l) {
501
501
  onChange: e.changeHandler
502
502
  }, {
503
503
  default: k(() => [
504
- (d(!0), h(O, null, M(e._options, (i) => (d(), F(s, {
504
+ (d(!0), v(O, null, $(e._options, (i) => (d(), F(s, {
505
505
  key: i.value,
506
506
  value: i.value,
507
507
  label: i.label
@@ -510,46 +510,46 @@ function rn(t, n, a, e, o, l) {
510
510
  _: 1
511
511
  }, 8, ["modelValue", "loading", "disabled"]);
512
512
  }
513
- const Ge = /* @__PURE__ */ q(an, [["render", rn], ["__file", "SelectList.vue"]]), sn = /* @__PURE__ */ E({
513
+ const Ge = /* @__PURE__ */ Y(rn, [["render", an], ["__file", "SelectList.vue"]]), sn = /* @__PURE__ */ z({
514
514
  __name: "Cascader",
515
515
  props: {
516
516
  modelValue: {},
517
517
  config: {}
518
518
  },
519
519
  emits: ["update:modelValue", "change"],
520
- setup(t, { expose: n, emit: a }) {
521
- const e = t, o = a, l = m(e.config.options ?? []), s = (r) => {
522
- o("update:modelValue", r), o("change", r);
520
+ setup(t, { expose: n, emit: r }) {
521
+ const e = t, o = r, c = m(e.config.options ?? []), s = (a) => {
522
+ o("update:modelValue", a), o("change", a);
523
523
  };
524
524
  ue(async () => {
525
525
  if (e.config) {
526
- const r = e.config.dataSourceProvider;
527
- if (r) {
528
- const g = await (await K()).get(r);
529
- l.value = g.data;
526
+ const a = e.config.dataSourceProvider;
527
+ if (a) {
528
+ const g = await (await W()).get(a);
529
+ c.value = g.data;
530
530
  }
531
531
  }
532
532
  });
533
- const c = { value: "key", label: "value" };
533
+ const l = { value: "key", label: "value" };
534
534
  n({
535
535
  validate() {
536
536
  return !0;
537
537
  }
538
538
  });
539
- const i = { props: e, emits: o, _options: l, changeHandler: s, fieldNames: c };
539
+ const i = { props: e, emits: o, _options: c, changeHandler: s, fieldNames: l };
540
540
  return Object.defineProperty(i, "__isScriptSetup", { enumerable: !1, value: !0 }), i;
541
541
  }
542
542
  });
543
- function ln(t, n, a, e, o, l) {
544
- const s = C("ACascader"), c = C("ASpace");
545
- return d(), F(c, {
543
+ function ln(t, n, r, e, o, c) {
544
+ const s = C("ACascader"), l = C("ASpace");
545
+ return d(), F(l, {
546
546
  direction: "vertical",
547
547
  size: "large"
548
548
  }, {
549
549
  default: k(() => [
550
550
  N(s, {
551
551
  "field-names": e.fieldNames,
552
- "model-value": a.modelValue,
552
+ "model-value": r.modelValue,
553
553
  options: e._options,
554
554
  style: { width: "320px" },
555
555
  placeholder: "Please select ...",
@@ -559,7 +559,7 @@ function ln(t, n, a, e, o, l) {
559
559
  _: 1
560
560
  });
561
561
  }
562
- const cn = /* @__PURE__ */ q(sn, [["render", ln], ["__file", "Cascader.vue"]]), dn = /* @__PURE__ */ E({
562
+ const cn = /* @__PURE__ */ Y(sn, [["render", ln], ["__file", "Cascader.vue"]]), dn = /* @__PURE__ */ z({
563
563
  __name: "FileUpload",
564
564
  props: {
565
565
  className: {},
@@ -571,26 +571,26 @@ const cn = /* @__PURE__ */ q(sn, [["render", ln], ["__file", "Cascader.vue"]]),
571
571
  triggers: {}
572
572
  },
573
573
  emits: ["update:modelValue", "change", "error", "input"],
574
- setup(t, { expose: n, emit: a }) {
575
- const e = t, o = a, l = m({});
574
+ setup(t, { expose: n, emit: r }) {
575
+ const e = t, o = r, c = m({});
576
576
  ue(async () => {
577
577
  const x = await Ze();
578
- l.value = {
578
+ c.value = {
579
579
  Authorization: `Bearer ${x}`
580
580
  };
581
581
  });
582
- const s = (x) => ge(e.validations, x), c = Re(), i = c.apiBase, r = m(null), u = m("");
582
+ const s = (x) => ge(e.validations, x), l = Re(), i = l.apiBase, a = m(null), u = m("");
583
583
  function g(x, y, w) {
584
584
  return x.replace(/{WorkflowId}/g, y).replace(/{ClassName}/g, w);
585
585
  }
586
- const _ = G(() => {
586
+ const _ = E(() => {
587
587
  if (e.config.uploadURL) {
588
588
  const x = i + e.config.uploadURL;
589
589
  return g(x, u.value, e.className);
590
590
  }
591
591
  return "";
592
592
  }), S = (x) => {
593
- x.stopPropagation(), r.value.submit();
593
+ x.stopPropagation(), a.value.submit();
594
594
  };
595
595
  function f(x) {
596
596
  const { file: y, name: w } = x, V = w ?? y.name;
@@ -611,29 +611,29 @@ const cn = /* @__PURE__ */ q(sn, [["render", ln], ["__file", "Cascader.vue"]]),
611
611
  p.value && (p.value(x), p.value = null, T.value = null);
612
612
  }, ee = (x) => {
613
613
  T.value && (T.value(x), p.value = null, T.value = null);
614
- }, j = m([]), Z = (x) => {
615
- j.value = x.filter((y) => y.status === "init");
614
+ }, M = m([]), Z = (x) => {
615
+ M.value = x.filter((y) => y.status === "init");
616
616
  };
617
617
  n({
618
618
  submit(x) {
619
619
  return new Promise((y, w) => {
620
- r.value ? (e.config.uploadURL && (u.value = x), p.value = y, T.value = w, j.value.length ? dt(() => {
621
- r.value?.submit();
620
+ a.value ? (e.config.uploadURL && (u.value = x), p.value = y, T.value = w, M.value.length ? dt(() => {
621
+ a.value?.submit();
622
622
  }) : y(x)) : y(x);
623
623
  });
624
624
  },
625
625
  validate() {
626
- const x = e.config.files ?? [], y = [...j.value, ...x].length > 0 ? "hasFile" : "", w = s(y);
626
+ const x = e.config.files ?? [], y = [...M.value, ...x].length > 0 ? "hasFile" : "", w = s(y);
627
627
  return o("error", w.res ? "" : w.errorMessages), w.res;
628
628
  }
629
629
  });
630
- const ae = { props: e, emits: o, headers: l, validate: s, config: c, ApiBase: i, uploadRef: r, id: u, replaceIdAndClassName: g, action: _, submit: S, onBeforeRemove: f, uploadPromiseResolve: p, uploadPromiseReject: T, handleUploadSuccess: X, handleUploadError: ee, readyFiles: j, onChange: Z };
631
- return Object.defineProperty(ae, "__isScriptSetup", { enumerable: !1, value: !0 }), ae;
630
+ const re = { props: e, emits: o, headers: c, validate: s, config: l, ApiBase: i, uploadRef: a, id: u, replaceIdAndClassName: g, action: _, submit: S, onBeforeRemove: f, uploadPromiseResolve: p, uploadPromiseReject: T, handleUploadSuccess: X, handleUploadError: ee, readyFiles: M, onChange: Z };
631
+ return Object.defineProperty(re, "__isScriptSetup", { enumerable: !1, value: !0 }), re;
632
632
  }
633
633
  });
634
- function un(t, n, a, e, o, l) {
635
- const s = C("a-button"), c = C("a-upload");
636
- return d(), F(c, {
634
+ function un(t, n, r, e, o, c) {
635
+ const s = C("a-button"), l = C("a-upload");
636
+ return d(), F(l, {
637
637
  ref: "uploadRef",
638
638
  "default-file-list": e.props.config.files,
639
639
  action: e.action,
@@ -659,7 +659,7 @@ function un(t, n, a, e, o, l) {
659
659
  _: 1
660
660
  }, 8, ["default-file-list", "action", "limit", "headers"]);
661
661
  }
662
- const fn = /* @__PURE__ */ q(dn, [["render", un], ["__file", "FileUpload.vue"]]), pn = /* @__PURE__ */ E({
662
+ const fn = /* @__PURE__ */ Y(dn, [["render", un], ["__file", "FileUpload.vue"]]), pn = /* @__PURE__ */ z({
663
663
  __name: "TextArea",
664
664
  props: {
665
665
  fieldKey: {},
@@ -670,27 +670,27 @@ const fn = /* @__PURE__ */ q(dn, [["render", un], ["__file", "FileUpload.vue"]])
670
670
  triggers: {}
671
671
  },
672
672
  emits: ["update:modelValue", "change", "error", "input"],
673
- setup(t, { expose: n, emit: a }) {
674
- const e = t, o = a, l = (r) => ge(e.validations, r), s = (r) => {
675
- o("update:modelValue", r), o("input", r);
676
- }, c = (r) => {
677
- o("update:modelValue", r);
678
- const u = l(r);
673
+ setup(t, { expose: n, emit: r }) {
674
+ const e = t, o = r, c = (a) => ge(e.validations, a), s = (a) => {
675
+ o("update:modelValue", a), o("input", a);
676
+ }, l = (a) => {
677
+ o("update:modelValue", a);
678
+ const u = c(a);
679
679
  o("error", u.res ? "" : u.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((g) => {
680
- g.event === "change" && o(g.event, g.handlerName, r);
680
+ g.event === "change" && o(g.event, g.handlerName, a);
681
681
  });
682
682
  };
683
683
  n({
684
684
  validate() {
685
- const r = l(e.modelValue);
686
- return o("error", r.res ? "" : r.errorMessages), r.res;
685
+ const a = c(e.modelValue);
686
+ return o("error", a.res ? "" : a.errorMessages), a.res;
687
687
  }
688
688
  });
689
- const i = { props: e, emits: o, validate: l, inputHandler: s, changeHandler: c };
689
+ const i = { props: e, emits: o, validate: c, inputHandler: s, changeHandler: l };
690
690
  return Object.defineProperty(i, "__isScriptSetup", { enumerable: !1, value: !0 }), i;
691
691
  }
692
692
  });
693
- function mn(t, n, a, e, o, l) {
693
+ function mn(t, n, r, e, o, c) {
694
694
  const s = C("ATextarea");
695
695
  return d(), F(s, {
696
696
  "model-value": e.props.modelValue,
@@ -701,7 +701,7 @@ function mn(t, n, a, e, o, l) {
701
701
  onChange: e.changeHandler
702
702
  }, null, 8, ["model-value", "disabled"]);
703
703
  }
704
- const gn = /* @__PURE__ */ q(pn, [["render", mn], ["__file", "TextArea.vue"]]), _n = /* @__PURE__ */ E({
704
+ const gn = /* @__PURE__ */ Y(pn, [["render", mn], ["__file", "TextArea.vue"]]), _n = /* @__PURE__ */ z({
705
705
  __name: "CheckBox",
706
706
  props: /* @__PURE__ */ le({
707
707
  fieldKey: {},
@@ -715,28 +715,28 @@ const gn = /* @__PURE__ */ q(pn, [["render", mn], ["__file", "TextArea.vue"]]),
715
715
  modelModifiers: {}
716
716
  }),
717
717
  emits: /* @__PURE__ */ le(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
718
- setup(t, { expose: n, emit: a }) {
719
- const e = t, o = a, l = we(t, "modelValue"), s = (r) => ge(e.validations, r), c = (r) => {
720
- const u = s(r);
718
+ setup(t, { expose: n, emit: r }) {
719
+ const e = t, o = r, c = we(t, "modelValue"), s = (a) => ge(e.validations, a), l = (a) => {
720
+ const u = s(a);
721
721
  o("error", u.res ? "" : u.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((g) => {
722
- g.event === "change" && o(g.event, g.handlerName, r);
722
+ g.event === "change" && o(g.event, g.handlerName, a);
723
723
  });
724
724
  };
725
725
  n({
726
726
  validate() {
727
- const r = s(e.modelValue);
728
- return o("error", r.res ? "" : r.errorMessages), r.res;
727
+ const a = s(e.modelValue);
728
+ return o("error", a.res ? "" : a.errorMessages), a.res;
729
729
  }
730
730
  });
731
- const i = { props: e, emits: o, model: l, validate: s, changeHandler: c };
731
+ const i = { props: e, emits: o, model: c, validate: s, changeHandler: l };
732
732
  return Object.defineProperty(i, "__isScriptSetup", { enumerable: !1, value: !0 }), i;
733
733
  }
734
734
  });
735
- function vn(t, n, a, e, o, l) {
735
+ function vn(t, n, r, e, o, c) {
736
736
  const s = C("ACheckbox");
737
737
  return d(), F(s, {
738
738
  modelValue: e.model,
739
- "onUpdate:modelValue": n[0] || (n[0] = (c) => e.model = c),
739
+ "onUpdate:modelValue": n[0] || (n[0] = (l) => e.model = l),
740
740
  clearable: "",
741
741
  disabled: e.props.readonly || e.props.config.Readonly,
742
742
  onChange: e.changeHandler
@@ -748,20 +748,20 @@ function vn(t, n, a, e, o, l) {
748
748
  __: [1]
749
749
  }, 8, ["modelValue", "disabled"]);
750
750
  }
751
- const bn = /* @__PURE__ */ q(_n, [["render", vn], ["__file", "CheckBox.vue"]]), hn = Symbol("ArcoConfigProvider"), yn = "arco", wn = "$arco", tt = (t) => {
752
- var n, a, e;
753
- const o = pe(), l = me(hn, void 0);
754
- return `${(e = (a = l?.prefixCls) != null ? a : (n = o?.appContext.config.globalProperties[wn]) == null ? void 0 : n.classPrefix) != null ? e : yn}-${t}`;
751
+ const bn = /* @__PURE__ */ Y(_n, [["render", vn], ["__file", "CheckBox.vue"]]), hn = Symbol("ArcoConfigProvider"), yn = "arco", wn = "$arco", tt = (t) => {
752
+ var n, r, e;
753
+ const o = pe(), c = me(hn, void 0);
754
+ return `${(e = (r = c?.prefixCls) != null ? r : (n = o?.appContext.config.globalProperties[wn]) == null ? void 0 : n.classPrefix) != null ? e : yn}-${t}`;
755
755
  }, kn = Object.prototype.toString;
756
756
  function nt(t) {
757
757
  return kn.call(t) === "[object Number]" && t === t;
758
758
  }
759
759
  var ot = (t, n) => {
760
- for (const [a, e] of n)
761
- t[a] = e;
760
+ for (const [r, e] of n)
761
+ t[r] = e;
762
762
  return t;
763
763
  };
764
- const Cn = E({
764
+ const Cn = z({
765
765
  name: "IconQuestionCircle",
766
766
  props: {
767
767
  size: {
@@ -788,7 +788,7 @@ const Cn = E({
788
788
  click: (t) => !0
789
789
  },
790
790
  setup(t, { emit: n }) {
791
- const a = tt("icon"), e = G(() => [a, `${a}-question-circle`, { [`${a}-spin`]: t.spin }]), o = G(() => {
791
+ const r = tt("icon"), e = E(() => [r, `${r}-question-circle`, { [`${r}-spin`]: t.spin }]), o = E(() => {
792
792
  const s = {};
793
793
  return t.size && (s.fontSize = nt(t.size) ? `${t.size}px` : t.size), t.rotate && (s.transform = `rotate(${t.rotate}deg)`), s;
794
794
  });
@@ -801,8 +801,8 @@ const Cn = E({
801
801
  };
802
802
  }
803
803
  }), Sn = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
804
- function xn(t, n, a, e, o, l) {
805
- return d(), h("svg", {
804
+ function xn(t, n, r, e, o, c) {
805
+ return d(), v("svg", {
806
806
  viewBox: "0 0 48 48",
807
807
  fill: "none",
808
808
  xmlns: "http://www.w3.org/2000/svg",
@@ -814,18 +814,18 @@ function xn(t, n, a, e, o, l) {
814
814
  "stroke-linejoin": t.strokeLinejoin,
815
815
  onClick: n[0] || (n[0] = (...s) => t.onClick && t.onClick(...s))
816
816
  }, n[1] || (n[1] = [
817
- b("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),
818
- b("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)
817
+ h("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),
818
+ h("path", { d: "M24.006 31v4.008m0-6.008L24 28c0-3 3-4 4.78-6.402C30.558 19.195 28.288 15 23.987 15c-4.014 0-5.382 2.548-5.388 4.514v.465" }, null, -1)
819
819
  ]), 14, Sn);
820
820
  }
821
821
  var De = /* @__PURE__ */ ot(Cn, [["render", xn]]);
822
822
  const An = Object.assign(De, {
823
823
  install: (t, n) => {
824
- var a;
825
- const e = (a = n?.iconPrefix) != null ? a : "";
824
+ var r;
825
+ const e = (r = n?.iconPrefix) != null ? r : "";
826
826
  t.component(e + De.name, De);
827
827
  }
828
- }), Tn = E({
828
+ }), Tn = z({
829
829
  name: "IconDownload",
830
830
  props: {
831
831
  size: {
@@ -852,7 +852,7 @@ const An = Object.assign(De, {
852
852
  click: (t) => !0
853
853
  },
854
854
  setup(t, { emit: n }) {
855
- const a = tt("icon"), e = G(() => [a, `${a}-download`, { [`${a}-spin`]: t.spin }]), o = G(() => {
855
+ const r = tt("icon"), e = E(() => [r, `${r}-download`, { [`${r}-spin`]: t.spin }]), o = E(() => {
856
856
  const s = {};
857
857
  return t.size && (s.fontSize = nt(t.size) ? `${t.size}px` : t.size), t.rotate && (s.transform = `rotate(${t.rotate}deg)`), s;
858
858
  });
@@ -865,8 +865,8 @@ const An = Object.assign(De, {
865
865
  };
866
866
  }
867
867
  }), Vn = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
868
- function In(t, n, a, e, o, l) {
869
- return d(), h("svg", {
868
+ function In(t, n, r, e, o, c) {
869
+ return d(), v("svg", {
870
870
  viewBox: "0 0 48 48",
871
871
  fill: "none",
872
872
  xmlns: "http://www.w3.org/2000/svg",
@@ -878,17 +878,17 @@ function In(t, n, a, e, o, l) {
878
878
  "stroke-linejoin": t.strokeLinejoin,
879
879
  onClick: n[0] || (n[0] = (...s) => t.onClick && t.onClick(...s))
880
880
  }, n[1] || (n[1] = [
881
- b("path", { d: "m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6" }, null, -1)
881
+ h("path", { d: "m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6" }, null, -1)
882
882
  ]), 14, Vn);
883
883
  }
884
884
  var Be = /* @__PURE__ */ ot(Tn, [["render", In]]);
885
885
  const Pn = Object.assign(Be, {
886
886
  install: (t, n) => {
887
- var a;
888
- const e = (a = n?.iconPrefix) != null ? a : "";
887
+ var r;
888
+ const e = (r = n?.iconPrefix) != null ? r : "";
889
889
  t.component(e + Be.name, Be);
890
890
  }
891
- }), Nn = /* @__PURE__ */ E({
891
+ }), Nn = /* @__PURE__ */ z({
892
892
  __name: "ToolTip",
893
893
  props: {
894
894
  isVisible: { type: Boolean },
@@ -896,32 +896,32 @@ const Pn = Object.assign(Be, {
896
896
  },
897
897
  setup(t, { expose: n }) {
898
898
  n();
899
- const e = { props: t, get IconQuestionCircle() {
899
+ const r = t, e = (l) => l.length > 0 && typeof l[0] != "string", o = E(() => e(r.outputText) ? [] : r.outputText), c = E(() => e(r.outputText) ? r.outputText : []), s = { props: r, isTreeArray: e, stringOutput: o, treeOutput: c, get IconQuestionCircle() {
900
900
  return An;
901
901
  } };
902
- return Object.defineProperty(e, "__isScriptSetup", { enumerable: !1, value: !0 }), e;
902
+ return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
903
903
  }
904
904
  }), Un = { class: "list-unstyled" }, Dn = { class: "list-style-square" };
905
- function Bn(t, n, a, e, o, l) {
905
+ function Bn(t, n, r, e, o, c) {
906
906
  const s = C("a-tooltip");
907
907
  return e.props.isVisible ? (d(), F(s, {
908
908
  key: 0,
909
909
  "background-color": "#7A00E6"
910
910
  }, {
911
911
  content: k(() => [
912
- (d(!0), h(O, null, M(e.props.outputText, (c) => (d(), h("ul", {
913
- key: c.title,
912
+ e.stringOutput.length ? (d(!0), v(O, { key: 0 }, $(e.stringOutput, (l) => (d(), v("p", { key: l }, q(l), 1))), 128)) : (d(!0), v(O, { key: 1 }, $(e.treeOutput, (l) => (d(), v("ul", {
913
+ key: l.title,
914
914
  class: "list-unstyled"
915
915
  }, [
916
- b("li", null, [
917
- b("b", null, Q(c.title), 1),
918
- b("ul", Un, [
919
- (d(!0), h(O, null, M(c.items, (i) => (d(), h("li", {
916
+ h("li", null, [
917
+ h("b", null, q(l.title), 1),
918
+ h("ul", Un, [
919
+ (d(!0), v(O, null, $(l.items, (i) => (d(), v("li", {
920
920
  key: i.title
921
921
  }, [
922
- b("u", null, Q(i.title), 1),
923
- b("ul", Dn, [
924
- (d(!0), h(O, null, M(i.items, (r) => (d(), h("li", null, Q(r), 1))), 256))
922
+ h("u", null, q(i.title), 1),
923
+ h("ul", Dn, [
924
+ (d(!0), v(O, null, $(i.items, (a) => (d(), v("li", null, q(a), 1))), 256))
925
925
  ])
926
926
  ]))), 128))
927
927
  ])
@@ -934,7 +934,7 @@ function Bn(t, n, a, e, o, l) {
934
934
  _: 1
935
935
  })) : oe("", !0);
936
936
  }
937
- const at = /* @__PURE__ */ q(Nn, [["render", Bn], ["__scopeId", "data-v-24e35b0b"], ["__file", "ToolTip.vue"]]), Fn = /* @__PURE__ */ E({
937
+ const rt = /* @__PURE__ */ Y(Nn, [["render", Bn], ["__scopeId", "data-v-1d3893b1"], ["__file", "ToolTip.vue"]]), Fn = /* @__PURE__ */ z({
938
938
  __name: "index",
939
939
  props: /* @__PURE__ */ le({
940
940
  config: {},
@@ -949,8 +949,8 @@ const at = /* @__PURE__ */ q(Nn, [["render", Bn], ["__scopeId", "data-v-24e35b0b
949
949
  modelModifiers: {}
950
950
  }),
951
951
  emits: /* @__PURE__ */ le(["update:modelValue", "change", "error"], ["update:modelValue"]),
952
- setup(t, { expose: n, emit: a }) {
953
- const e = t, o = a, l = we(t, "modelValue"), s = He("widgetRef"), c = G(() => {
952
+ setup(t, { expose: n, emit: r }) {
953
+ const e = t, o = r, c = we(t, "modelValue"), s = He("widgetRef"), l = E(() => {
954
954
  switch (e.config?.widget?.widget) {
955
955
  case "TextBox":
956
956
  return We;
@@ -971,7 +971,7 @@ const at = /* @__PURE__ */ q(Nn, [["render", Bn], ["__scopeId", "data-v-24e35b0b
971
971
  default:
972
972
  return We;
973
973
  }
974
- }), i = m(""), r = (f) => {
974
+ }), i = m(""), a = (f) => {
975
975
  i.value = f;
976
976
  }, u = (f, p) => {
977
977
  o("change", f, p);
@@ -996,7 +996,7 @@ const at = /* @__PURE__ */ q(Nn, [["render", Bn], ["__scopeId", "data-v-24e35b0b
996
996
  return e?.config?.widget?.title;
997
997
  }
998
998
  });
999
- const S = { props: e, emits: o, model: l, widgetRef: s, curComp: c, errMsg: i, errHandler: r, changeHandler: u, isFileUpload: g, formatTitle: _, ToolTip: at };
999
+ const S = { props: e, emits: o, model: c, widgetRef: s, curComp: l, errMsg: i, errHandler: a, changeHandler: u, isFileUpload: g, formatTitle: _, ToolTip: rt };
1000
1000
  return Object.defineProperty(S, "__isScriptSetup", { enumerable: !1, value: !0 }), S;
1001
1001
  }
1002
1002
  }), Hn = { class: "title" }, Ln = {
@@ -1006,17 +1006,17 @@ const at = /* @__PURE__ */ q(Nn, [["render", Bn], ["__scopeId", "data-v-24e35b0b
1006
1006
  key: 0,
1007
1007
  class: "err-msg"
1008
1008
  };
1009
- function $n(t, n, a, e, o, l) {
1010
- return d(), h("div", null, [
1011
- b("div", Hn, [
1012
- ne(Q(e.formatTitle(e.props?.config?.widget?.title)) + " ", 1),
1013
- e.props.config.validations.length ? (d(), h("span", Ln, "*")) : oe("", !0),
1009
+ function On(t, n, r, e, o, c) {
1010
+ return d(), v("div", null, [
1011
+ h("div", Hn, [
1012
+ ne(q(e.formatTitle(e.props?.config?.widget?.title)) + " ", 1),
1013
+ e.props.config.validations.length ? (d(), v("span", Ln, "*")) : oe("", !0),
1014
1014
  N(e.ToolTip, {
1015
1015
  "is-visible": e.props.config.widget?.isVisible ?? !1,
1016
1016
  "output-text": e.props.config.widget?.outputText ?? []
1017
1017
  }, null, 8, ["is-visible", "output-text"])
1018
1018
  ]),
1019
- b("div", null, [
1019
+ h("div", null, [
1020
1020
  (d(), F(Le(e.curComp), {
1021
1021
  ref: "widgetRef",
1022
1022
  modelValue: e.model,
@@ -1029,11 +1029,11 @@ function $n(t, n, a, e, o, l) {
1029
1029
  onError: e.errHandler,
1030
1030
  onChange: e.changeHandler
1031
1031
  }, null, 40, ["modelValue", "field-key", "config", "validations", "triggers", "class-name"])),
1032
- e.errMsg.length > 0 ? (d(), h("div", Rn, Q(e.errMsg), 1)) : oe("", !0)
1032
+ e.errMsg.length > 0 ? (d(), v("div", Rn, q(e.errMsg), 1)) : oe("", !0)
1033
1033
  ])
1034
1034
  ]);
1035
1035
  }
1036
- const Oe = /* @__PURE__ */ q(Fn, [["render", $n], ["__scopeId", "data-v-30216d05"], ["__file", "index.vue"]]), On = /* @__PURE__ */ E({
1036
+ const je = /* @__PURE__ */ Y(Fn, [["render", On], ["__scopeId", "data-v-30216d05"], ["__file", "index.vue"]]), jn = /* @__PURE__ */ z({
1037
1037
  __name: "SubmitButton",
1038
1038
  props: {
1039
1039
  url: {},
@@ -1041,20 +1041,20 @@ const Oe = /* @__PURE__ */ q(Fn, [["render", $n], ["__scopeId", "data-v-30216d05
1041
1041
  loading: { type: Boolean }
1042
1042
  },
1043
1043
  emits: ["click"],
1044
- setup(t, { expose: n, emit: a }) {
1044
+ setup(t, { expose: n, emit: r }) {
1045
1045
  n();
1046
- const e = t, o = a;
1047
- function l() {
1046
+ const e = t, o = r;
1047
+ function c() {
1048
1048
  o("click", e.url, e.redirectType);
1049
1049
  }
1050
- const s = { props: e, emits: o, clickHandler: l };
1050
+ const s = { props: e, emits: o, clickHandler: c };
1051
1051
  return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
1052
1052
  }
1053
1053
  });
1054
- function jn(t, n, a, e, o, l) {
1054
+ function $n(t, n, r, e, o, c) {
1055
1055
  const s = C("AButton");
1056
1056
  return d(), F(s, {
1057
- loading: a.loading,
1057
+ loading: r.loading,
1058
1058
  type: "primary",
1059
1059
  onClick: e.clickHandler
1060
1060
  }, {
@@ -1064,7 +1064,7 @@ function jn(t, n, a, e, o, l) {
1064
1064
  _: 3
1065
1065
  }, 8, ["loading"]);
1066
1066
  }
1067
- const qe = /* @__PURE__ */ q(On, [["render", jn], ["__file", "SubmitButton.vue"]]), Mn = /* @__PURE__ */ E({
1067
+ const qe = /* @__PURE__ */ Y(jn, [["render", $n], ["__file", "SubmitButton.vue"]]), Mn = /* @__PURE__ */ z({
1068
1068
  __name: "DetailLink",
1069
1069
  props: {
1070
1070
  url: {},
@@ -1072,17 +1072,17 @@ const qe = /* @__PURE__ */ q(On, [["render", jn], ["__file", "SubmitButton.vue"]
1072
1072
  loading: { type: Boolean }
1073
1073
  },
1074
1074
  emits: ["click"],
1075
- setup(t, { expose: n, emit: a }) {
1075
+ setup(t, { expose: n, emit: r }) {
1076
1076
  n();
1077
- const e = t, o = a;
1078
- function l() {
1077
+ const e = t, o = r;
1078
+ function c() {
1079
1079
  o("click", e.url, e.redirectType);
1080
1080
  }
1081
- const s = { props: e, emits: o, clickHandler: l };
1081
+ const s = { props: e, emits: o, clickHandler: c };
1082
1082
  return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
1083
1083
  }
1084
1084
  });
1085
- function En(t, n, a, e, o, l) {
1085
+ function En(t, n, r, e, o, c) {
1086
1086
  const s = C("ALink");
1087
1087
  return d(), F(s, { onClick: e.clickHandler }, {
1088
1088
  default: k(() => [
@@ -1091,20 +1091,20 @@ function En(t, n, a, e, o, l) {
1091
1091
  _: 3
1092
1092
  });
1093
1093
  }
1094
- const zn = /* @__PURE__ */ q(Mn, [["render", En], ["__file", "DetailLink.vue"]]), Kn = /* @__PURE__ */ E({
1094
+ const zn = /* @__PURE__ */ Y(Mn, [["render", En], ["__file", "DetailLink.vue"]]), Kn = /* @__PURE__ */ z({
1095
1095
  __name: "index",
1096
1096
  props: {
1097
1097
  config: {},
1098
1098
  loading: { type: Boolean }
1099
1099
  },
1100
1100
  emits: ["click"],
1101
- setup(t, { expose: n, emit: a }) {
1101
+ setup(t, { expose: n, emit: r }) {
1102
1102
  n();
1103
- const e = t, o = a;
1104
- function l(u, g) {
1103
+ const e = t, o = r;
1104
+ function c(u, g) {
1105
1105
  o("click", e.config.widget, u, g, e.config.title);
1106
1106
  }
1107
- const s = G(() => {
1107
+ const s = E(() => {
1108
1108
  switch (e.config.location) {
1109
1109
  case "InOperation":
1110
1110
  return qe;
@@ -1113,30 +1113,30 @@ const zn = /* @__PURE__ */ q(Mn, [["render", En], ["__file", "DetailLink.vue"]])
1113
1113
  default:
1114
1114
  return qe;
1115
1115
  }
1116
- }), c = G(() => e.config.widget === J.Submit ? e.config.requestUrl ?? "" : e.config.widget === J.Link ? e.config.redirectUrl ?? "" : ""), i = G(() => e.config.redirectType ?? "Details"), r = { props: e, emits: o, clickHandler: l, curComp: s, curUrl: c, redirectType: i };
1117
- return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
1116
+ }), l = E(() => e.config.widget === J.Submit ? e.config.requestUrl ?? "" : e.config.widget === J.Link ? e.config.redirectUrl ?? "" : ""), i = E(() => e.config.redirectType ?? "Details"), a = { props: e, emits: o, clickHandler: c, curComp: s, curUrl: l, redirectType: i };
1117
+ return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
1118
1118
  }
1119
1119
  });
1120
- function Wn(t, n, a, e, o, l) {
1120
+ function Wn(t, n, r, e, o, c) {
1121
1121
  return d(), F(Le(e.curComp), {
1122
1122
  url: e.curUrl,
1123
1123
  "redirect-type": e.redirectType,
1124
- loading: a.loading,
1124
+ loading: r.loading,
1125
1125
  onClick: e.clickHandler
1126
1126
  }, {
1127
1127
  default: k(() => [
1128
- ne(Q(e.props.config.title), 1)
1128
+ ne(q(e.props.config.title), 1)
1129
1129
  ]),
1130
1130
  _: 1
1131
1131
  }, 8, ["url", "redirect-type", "loading"]);
1132
1132
  }
1133
- const xe = /* @__PURE__ */ q(Kn, [["render", Wn], ["__file", "index.vue"]]), rt = Symbol("library-router");
1133
+ const xe = /* @__PURE__ */ Y(Kn, [["render", Wn], ["__file", "index.vue"]]), at = Symbol("library-router");
1134
1134
  function Ae() {
1135
- const t = me(rt, null);
1135
+ const t = me(at, null);
1136
1136
  return t || _t();
1137
1137
  }
1138
1138
  const st = Symbol("library-triggers");
1139
- function je() {
1139
+ function $e() {
1140
1140
  const t = me(st, null);
1141
1141
  return t || {};
1142
1142
  }
@@ -1147,7 +1147,7 @@ function Te() {
1147
1147
  function Ve() {
1148
1148
  return me(lt, null);
1149
1149
  }
1150
- const qn = /* @__PURE__ */ E({
1150
+ const qn = /* @__PURE__ */ z({
1151
1151
  __name: "TopBar",
1152
1152
  props: {
1153
1153
  title: {},
@@ -1156,21 +1156,21 @@ const qn = /* @__PURE__ */ E({
1156
1156
  },
1157
1157
  setup(t, { expose: n }) {
1158
1158
  n();
1159
- const a = {};
1160
- return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
1159
+ const r = {};
1160
+ return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
1161
1161
  }
1162
1162
  }), Yn = { class: "top-bar" }, Qn = { class: "banner-info" }, Jn = { class: "page-title" }, Xn = { class: "page-subtitle" }, Zn = { class: "avatar-wrapper" }, eo = { class: "user-email" };
1163
- function to(t, n, a, e, o, l) {
1164
- const s = C("a-avatar"), c = C("a-popover");
1165
- return d(), h("div", Yn, [
1166
- b("div", Qn, [
1167
- b("div", Jn, Q(a.title), 1),
1168
- b("div", Xn, Q(a.subTitle), 1)
1163
+ function to(t, n, r, e, o, c) {
1164
+ const s = C("a-avatar"), l = C("a-popover");
1165
+ return d(), v("div", Yn, [
1166
+ h("div", Qn, [
1167
+ h("div", Jn, q(r.title), 1),
1168
+ h("div", Xn, q(r.subTitle), 1)
1169
1169
  ]),
1170
- b("div", Zn, [
1171
- N(c, { trigger: "click" }, {
1170
+ h("div", Zn, [
1171
+ N(l, { trigger: "click" }, {
1172
1172
  content: k(() => [
1173
- b("div", eo, Q(a.email), 1)
1173
+ h("div", eo, q(r.email), 1)
1174
1174
  ]),
1175
1175
  default: k(() => [
1176
1176
  N(s, {
@@ -1179,7 +1179,7 @@ function to(t, n, a, e, o, l) {
1179
1179
  style: { cursor: "pointer", background: "#165DFF", color: "#fff" }
1180
1180
  }, {
1181
1181
  default: k(() => [
1182
- ne(Q(a.email.charAt(0).toUpperCase()), 1)
1182
+ ne(q(r.email.charAt(0).toUpperCase()), 1)
1183
1183
  ]),
1184
1184
  _: 1
1185
1185
  })
@@ -1189,16 +1189,16 @@ function to(t, n, a, e, o, l) {
1189
1189
  ])
1190
1190
  ]);
1191
1191
  }
1192
- const Ie = /* @__PURE__ */ q(qn, [["render", to], ["__scopeId", "data-v-c0457235"], ["__file", "TopBar.vue"]]);
1192
+ const Ie = /* @__PURE__ */ Y(qn, [["render", to], ["__scopeId", "data-v-c0457235"], ["__file", "TopBar.vue"]]);
1193
1193
  function Me(t) {
1194
- const n = Re(), a = [];
1194
+ const n = Re(), r = [];
1195
1195
  if (n.fieldsGroup) {
1196
- n.fieldsGroup.forEach((l) => {
1197
- const s = l.keys.map((c) => t.find((i) => i.fieldKey === c)).filter(Boolean);
1198
- s.length && a.push({ name: l.name, fields: s });
1196
+ n.fieldsGroup.forEach((c) => {
1197
+ const s = c.keys.map((l) => t.find((i) => i.fieldKey === l)).filter(Boolean);
1198
+ s.length && r.push({ name: c.name, fields: s });
1199
1199
  });
1200
- const e = n.fieldsGroup.flatMap((l) => l.keys), o = t.filter((l) => !e.includes(l.fieldKey));
1201
- return o.length && a.push({ name: "Grading Review History (For example: re-submit the grading request)", fields: o }), a;
1200
+ const e = n.fieldsGroup.flatMap((c) => c.keys), o = t.filter((c) => !e.includes(c.fieldKey));
1201
+ return o.length && r.push({ name: "Grading Review History (For example: re-submit the grading request)", fields: o }), r;
1202
1202
  }
1203
1203
  }
1204
1204
  class Pe {
@@ -1236,8 +1236,8 @@ class Se {
1236
1236
  getWorkflowId() {
1237
1237
  return this.opt?.workflowId ?? "";
1238
1238
  }
1239
- constructor(n, a, e, o) {
1240
- this.pageActionType = n, this.className = a, this.store = e, o && (this.opt = o);
1239
+ constructor(n, r, e, o) {
1240
+ this.pageActionType = n, this.className = r, this.store = e, o && (this.opt = o);
1241
1241
  }
1242
1242
  getPageData() {
1243
1243
  return this.opt ? Ke(this.pageActionType, this.className, this.store, this.opt) : Ke(this.pageActionType, this.className, this.store);
@@ -1252,7 +1252,7 @@ class Se {
1252
1252
  return Et(this.className, n);
1253
1253
  }
1254
1254
  getProcess() {
1255
- return Ot(this.className, this.getWorkflowId());
1255
+ return jt(this.className, this.getWorkflowId());
1256
1256
  }
1257
1257
  getCommentsHistory() {
1258
1258
  return Gt(this.getWorkflowId());
@@ -1273,7 +1273,7 @@ class Se {
1273
1273
  return Yt(n);
1274
1274
  }
1275
1275
  }
1276
- const no = /* @__PURE__ */ E({
1276
+ const no = /* @__PURE__ */ z({
1277
1277
  __name: "CreateView",
1278
1278
  props: {
1279
1279
  className: {},
@@ -1281,7 +1281,7 @@ const no = /* @__PURE__ */ E({
1281
1281
  },
1282
1282
  setup(t, { expose: n }) {
1283
1283
  n();
1284
- const a = Te(), e = Ve(), o = Ae(), l = je(), s = He("dataWidgets"), c = pe(), i = t, r = m({
1284
+ const r = Te(), e = Ve(), o = Ae(), c = $e(), s = He("dataWidgets"), l = pe(), i = t, a = m({
1285
1285
  pageType: "",
1286
1286
  fields: {},
1287
1287
  globalValidations: [],
@@ -1297,104 +1297,104 @@ const no = /* @__PURE__ */ E({
1297
1297
  })).filter((A) => A.widget && A.widget.widget !== "Hidden").filter((A) => !Z.value.includes(A.fieldKey)) : [];
1298
1298
  }
1299
1299
  function S(w) {
1300
- return w ? Object.entries(w).filter(([A, D]) => D.dependent).reduce((A, [D, $]) => (A[D] = $.dependent, A), {}) : [];
1300
+ return w ? Object.entries(w).filter(([A, D]) => D.dependent).reduce((A, [D, j]) => (A[D] = j.dependent, A), {}) : [];
1301
1301
  }
1302
- const f = G(() => r.value?.actions ? [...r.value.actions].reverse() : []), p = m({}), T = m(!1);
1302
+ const f = E(() => a.value?.actions ? [...a.value.actions].reverse() : []), p = m({}), T = m(!1);
1303
1303
  ue(async () => {
1304
1304
  T.value = !0;
1305
- const w = new Pe().setWorkflowId(i.workflowId).setClassName(i.className).setStore({ svrStore: e, bpmStore: a }).build();
1306
- r.value = await w.getPageData(), u.value = _(r.value.fields), g.value = S(r.value.fields);
1307
- for (const V in r.value.fields) {
1308
- if (r.value.fields[V].widget?.widget === "File") {
1305
+ const w = new Pe().setWorkflowId(i.workflowId).setClassName(i.className).setStore({ svrStore: e, bpmStore: r }).build();
1306
+ a.value = await w.getPageData(), u.value = _(a.value.fields), g.value = S(a.value.fields);
1307
+ for (const V in a.value.fields) {
1308
+ if (a.value.fields[V].widget?.widget === "File") {
1309
1309
  const A = u.value.find((D) => D.fieldKey === V);
1310
1310
  A && A.widget && (A.widget.files = []);
1311
1311
  }
1312
- p.value[V] = r.value.fields[V].modelValue;
1312
+ p.value[V] = a.value.fields[V].modelValue;
1313
1313
  }
1314
1314
  T.value = !1;
1315
1315
  });
1316
1316
  function X() {
1317
1317
  return e()?.userInfo?.email_address ?? "";
1318
1318
  }
1319
- async function ee(w, V, A, D, $) {
1319
+ async function ee(w, V, A, D, j) {
1320
1320
  switch (V) {
1321
1321
  case J.Submit:
1322
1322
  let L = !0;
1323
- if (s.value?.forEach((Y) => {
1324
- Y?.validate && (Y.validate() || (L = !1));
1323
+ if (s.value?.forEach((Q) => {
1324
+ Q?.validate && (Q.validate() || (L = !1));
1325
1325
  }), !L) {
1326
- c?.appContext.config.globalProperties.$message.error("form validation failed, please check the input fields");
1326
+ l?.appContext.config.globalProperties.$message.error("form validation failed, please check the input fields");
1327
1327
  return;
1328
1328
  }
1329
1329
  T.value = !0;
1330
1330
  try {
1331
- const Y = await Nt(i.className, { ...p.value, ...g.value }, A), se = s.value?.map((ie) => ie?.submit ? ie.submit(Y.toString()) : Promise.resolve()) || [];
1332
- await Promise.all(se), T.value = !1, c?.appContext.config.globalProperties.$notification.success(`Your grading request has been submitted, ID is ${Y.toString()}.`), o.push({ name: "Details", params: { workflowId: Y.toString() } });
1331
+ const Q = await Nt(i.className, { ...p.value, ...g.value }, A), se = s.value?.map((ie) => ie?.submit ? ie.submit(Q.toString()) : Promise.resolve()) || [];
1332
+ await Promise.all(se), T.value = !1, l?.appContext.config.globalProperties.$notification.success(`Your grading request has been submitted, ID is ${Q.toString()}.`), o.push({ name: "Details", params: { workflowId: Q.toString() } });
1333
1333
  } catch {
1334
- c?.appContext.config.globalProperties.$notification.error("Failed to submit your grading request"), T.value = !1;
1334
+ l?.appContext.config.globalProperties.$notification.error("Failed to submit your grading request"), T.value = !1;
1335
1335
  }
1336
1336
  break;
1337
1337
  case J.Link:
1338
1338
  try {
1339
- await l[w.eventName || ""]?.(p.value, Z), o.push({ name: D, params: { className: i.className } });
1340
- } catch (Y) {
1341
- console.error("Error in link action trigger:", Y);
1339
+ await c[w.eventName || ""]?.(p.value, Z), o.push({ name: D, params: { className: i.className } });
1340
+ } catch (Q) {
1341
+ console.error("Error in link action trigger:", Q);
1342
1342
  }
1343
1343
  break;
1344
1344
  default:
1345
1345
  console.warn("Unknown action type:", V);
1346
1346
  }
1347
1347
  }
1348
- const j = [
1348
+ const M = [
1349
1349
  "jobScpope",
1350
1350
  "currentWorkdayId",
1351
1351
  "originalGrade",
1352
1352
  "jobTitlePrevious",
1353
1353
  "jobAttachmentPrevious",
1354
1354
  "positionId"
1355
- ], Z = m(j);
1356
- function ae(w, V) {
1357
- l[w]?.({ fieldValue: V, hiddenFields: Z, formData: p }), r.value && (u.value = _(r.value.fields));
1355
+ ], Z = m(M);
1356
+ function re(w, V) {
1357
+ c[w]?.({ fieldValue: V, hiddenFields: Z, formData: p }), a.value && (u.value = _(a.value.fields));
1358
1358
  }
1359
- const x = G(() => Me(u.value)), y = { bpmStore: a, svrStore: e, router: o, triggers: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: u, _dependent: g, genField: _, genDependentField: S, reversedActions: f, _data: p, loading: T, getApproverEmail: X, clickHandler: ee, newHiddenFields: j, hiddenFields: Z, changeHandler: ae, groupedFields: x, DataWidgets: Oe, ActionButton: xe, TopBar: Ie };
1359
+ const x = E(() => Me(u.value)), y = { bpmStore: r, svrStore: e, router: o, triggers: c, dataWidgetsRefs: s, instance: l, props: i, pageData: a, _fields: u, _dependent: g, genField: _, genDependentField: S, reversedActions: f, _data: p, loading: T, getApproverEmail: X, clickHandler: ee, newHiddenFields: M, hiddenFields: Z, changeHandler: re, groupedFields: x, DataWidgets: je, ActionButton: xe, TopBar: Ie };
1360
1360
  return Object.defineProperty(y, "__isScriptSetup", { enumerable: !1, value: !0 }), y;
1361
1361
  }
1362
- }), oo = { class: "page-container" }, ao = { class: "page-body" }, ro = { class: "form-card" }, so = { class: "form-fields-vertical" }, io = { class: "form-fields" }, lo = {
1362
+ }), oo = { class: "page-container" }, ro = { class: "page-body" }, ao = { class: "form-card" }, so = { class: "form-fields-vertical" }, io = { class: "form-fields" }, lo = {
1363
1363
  key: 0,
1364
1364
  class: "form-content"
1365
1365
  }, co = { class: "page-footer" }, uo = { class: "action-container" }, fo = { class: "action-buttons" };
1366
- function po(t, n, a, e, o, l) {
1367
- const s = C("a-card"), c = C("a-spin");
1368
- return d(), h("div", oo, [
1366
+ function po(t, n, r, e, o, c) {
1367
+ const s = C("a-card"), l = C("a-spin");
1368
+ return d(), v("div", oo, [
1369
1369
  N(e.TopBar, {
1370
1370
  title: e.pageData.banner.title,
1371
1371
  subTitle: e.pageData.banner.subTitle,
1372
1372
  email: e.getApproverEmail()
1373
1373
  }, null, 8, ["title", "subTitle", "email"]),
1374
- b("div", ao, [
1375
- N(c, {
1374
+ h("div", ro, [
1375
+ N(l, {
1376
1376
  loading: e.loading,
1377
1377
  class: "form-container"
1378
1378
  }, {
1379
1379
  default: k(() => [
1380
- b("div", ro, [
1381
- b("div", so, [
1382
- (d(!0), h(O, null, M(e.groupedFields, (i) => (d(), F(s, {
1380
+ h("div", ao, [
1381
+ h("div", so, [
1382
+ (d(!0), v(O, null, $(e.groupedFields, (i) => (d(), F(s, {
1383
1383
  key: i.name,
1384
1384
  title: i.name,
1385
1385
  style: { "margin-bottom": "24px" }
1386
1386
  }, {
1387
1387
  default: k(() => [
1388
- b("div", io, [
1389
- (d(!0), h(O, null, M(i.fields, (r) => (d(), F(e.DataWidgets, {
1390
- key: r.fieldKey,
1388
+ h("div", io, [
1389
+ (d(!0), v(O, null, $(i.fields, (a) => (d(), F(e.DataWidgets, {
1390
+ key: a.fieldKey,
1391
1391
  ref_for: !0,
1392
1392
  ref: "dataWidgets",
1393
- "field-key": r.fieldKey,
1394
- config: r,
1395
- "class-name": a.className,
1396
- modelValue: e._data[r.fieldKey],
1397
- "onUpdate:modelValue": (u) => e._data[r.fieldKey] = u,
1393
+ "field-key": a.fieldKey,
1394
+ config: a,
1395
+ "class-name": r.className,
1396
+ modelValue: e._data[a.fieldKey],
1397
+ "onUpdate:modelValue": (u) => e._data[a.fieldKey] = u,
1398
1398
  class: "form-field",
1399
1399
  onChange: e.changeHandler
1400
1400
  }, null, 8, ["field-key", "config", "class-name", "modelValue", "onUpdate:modelValue"]))), 128))
@@ -1403,7 +1403,7 @@ function po(t, n, a, e, o, l) {
1403
1403
  _: 2
1404
1404
  }, 1032, ["title"]))), 128))
1405
1405
  ]),
1406
- t.$slots.content ? (d(), h("div", lo, [
1406
+ t.$slots.content ? (d(), v("div", lo, [
1407
1407
  de(t.$slots, "content", {}, void 0, !0)
1408
1408
  ])) : oe("", !0)
1409
1409
  ])
@@ -1411,23 +1411,23 @@ function po(t, n, a, e, o, l) {
1411
1411
  _: 3
1412
1412
  }, 8, ["loading"])
1413
1413
  ]),
1414
- b("div", co, [
1415
- b("div", uo, [
1414
+ h("div", co, [
1415
+ h("div", uo, [
1416
1416
  de(t.$slots, "action", {}, void 0, !0),
1417
- b("div", fo, [
1418
- (d(!0), h(O, null, M(e.reversedActions, (i) => (d(), F(e.ActionButton, {
1417
+ h("div", fo, [
1418
+ (d(!0), v(O, null, $(e.reversedActions, (i) => (d(), F(e.ActionButton, {
1419
1419
  key: i.title,
1420
1420
  loading: e.loading,
1421
1421
  config: i,
1422
1422
  class: "action-button",
1423
- onClick: (...r) => e.clickHandler(i, ...r)
1423
+ onClick: (...a) => e.clickHandler(i, ...a)
1424
1424
  }, null, 8, ["loading", "config", "onClick"]))), 128))
1425
1425
  ])
1426
1426
  ])
1427
1427
  ])
1428
1428
  ]);
1429
1429
  }
1430
- const mo = /* @__PURE__ */ q(no, [["render", po], ["__scopeId", "data-v-2fce8732"], ["__file", "CreateView.vue"]]), go = /* @__PURE__ */ E({
1430
+ const mo = /* @__PURE__ */ Y(no, [["render", po], ["__scopeId", "data-v-2fce8732"], ["__file", "CreateView.vue"]]), go = /* @__PURE__ */ z({
1431
1431
  __name: "UpdateView",
1432
1432
  props: {
1433
1433
  className: {},
@@ -1435,7 +1435,7 @@ const mo = /* @__PURE__ */ q(no, [["render", po], ["__scopeId", "data-v-2fce8732
1435
1435
  },
1436
1436
  setup(t, { expose: n }) {
1437
1437
  n();
1438
- const a = Ae(), e = je(), o = Ve(), l = Te(), s = He("dataWidgets"), c = pe(), i = t, r = m({
1438
+ const r = Ae(), e = $e(), o = Ve(), c = Te(), s = He("dataWidgets"), l = pe(), i = t, a = m({
1439
1439
  pageType: "",
1440
1440
  fields: {},
1441
1441
  globalValidations: [],
@@ -1448,29 +1448,29 @@ const mo = /* @__PURE__ */ q(no, [["render", po], ["__scopeId", "data-v-2fce8732
1448
1448
  return y ? Object.entries(y).map(([V, A]) => ({
1449
1449
  fieldKey: V,
1450
1450
  ...A
1451
- })).filter((V) => V.widget && V.widget.widget !== "Hidden").filter((V) => !j.value.includes(V.fieldKey)) : [];
1451
+ })).filter((V) => V.widget && V.widget.widget !== "Hidden").filter((V) => !M.value.includes(V.fieldKey)) : [];
1452
1452
  }
1453
1453
  function S(y) {
1454
1454
  return y ? Object.entries(y).filter(([V, A]) => A.dependent).reduce((V, [A, D]) => (V[A] = D.dependent, V), {}) : [];
1455
1455
  }
1456
- const f = G(() => r.value?.actions ? [...r.value.actions].reverse() : []), p = m({}), T = m(!1);
1456
+ const f = E(() => a.value?.actions ? [...a.value.actions].reverse() : []), p = m({}), T = m(!1);
1457
1457
  ue(async () => {
1458
1458
  T.value = !0;
1459
- const y = new Pe().setPageActionType(fe.Update).setClassName(i.className).setStore({ svrStore: o, bpmStore: l }).setWorkflowId(i.workflowId).build();
1460
- r.value = await y.getPageData();
1459
+ const y = new Pe().setPageActionType(fe.Update).setClassName(i.className).setStore({ svrStore: o, bpmStore: c }).setWorkflowId(i.workflowId).build();
1460
+ a.value = await y.getPageData();
1461
1461
  const w = await y.getBtnList(), V = await y.getFiles();
1462
- r.value.actions = r.value.actions?.filter((D) => {
1463
- const $ = w.find((L) => L.button === D.title);
1464
- return $ ? $.isShow : !0;
1462
+ a.value.actions = a.value.actions?.filter((D) => {
1463
+ const j = w.find((L) => L.button === D.title);
1464
+ return j ? j.isShow : !0;
1465
1465
  });
1466
- const A = r.value.fields.requestType.modelValue;
1467
- e.Test?.({ fieldValue: A, hiddenFields: j, formData: p }), u.value = _(r.value.fields), g.value = S(r.value.fields);
1468
- for (const D in r.value.fields) {
1469
- if (r.value.fields[D].widget?.widget === "File") {
1470
- const $ = u.value.find((L) => L.fieldKey === D);
1471
- $ && $.widget && ($.widget.files = V[D] ?? [], $.widget.removeFile = (L) => y.removeFile(L));
1466
+ const A = a.value.fields.requestType.modelValue;
1467
+ e.Test?.({ fieldValue: A, hiddenFields: M, formData: p }), u.value = _(a.value.fields), g.value = S(a.value.fields);
1468
+ for (const D in a.value.fields) {
1469
+ if (a.value.fields[D].widget?.widget === "File") {
1470
+ const j = u.value.find((L) => L.fieldKey === D);
1471
+ j && j.widget && (j.widget.files = V[D] ?? [], j.widget.removeFile = (L) => y.removeFile(L));
1472
1472
  }
1473
- p.value[D] = r.value.fields[D].modelValue;
1473
+ p.value[D] = a.value.fields[D].modelValue;
1474
1474
  }
1475
1475
  T.value = !1;
1476
1476
  });
@@ -1480,24 +1480,24 @@ const mo = /* @__PURE__ */ q(no, [["render", po], ["__scopeId", "data-v-2fce8732
1480
1480
  async function ee(y, w, V, A, D) {
1481
1481
  switch (w) {
1482
1482
  case J.Submit:
1483
- let $ = !0;
1483
+ let j = !0;
1484
1484
  if (s.value?.forEach((L) => {
1485
- L?.validate && (L.validate() || ($ = !1));
1486
- }), !$) {
1487
- c?.appContext.config.globalProperties.$message.error("form validation failed, please check the input fields");
1485
+ L?.validate && (L.validate() || (j = !1));
1486
+ }), !j) {
1487
+ l?.appContext.config.globalProperties.$message.error("form validation failed, please check the input fields");
1488
1488
  return;
1489
1489
  }
1490
1490
  T.value = !0;
1491
1491
  try {
1492
- const L = await Ut(i.className, i.workflowId, { ...p.value, ...g.value }, V), Y = s.value?.map((se) => se?.submit ? se.submit(L.toString()) : Promise.resolve()) || [];
1493
- await Promise.all(Y), T.value = !1, c?.appContext.config.globalProperties.$notification.success(`Your grading request has been submitted, ID is ${L.toString()}.`);
1492
+ const L = await Ut(i.className, i.workflowId, { ...p.value, ...g.value }, V), Q = s.value?.map((se) => se?.submit ? se.submit(L.toString()) : Promise.resolve()) || [];
1493
+ await Promise.all(Q), T.value = !1, l?.appContext.config.globalProperties.$notification.success(`Your grading request has been submitted, ID is ${L.toString()}.`);
1494
1494
  } catch {
1495
- c?.appContext.config.globalProperties.$notification.error("Failed to submit your grading request"), T.value = !1;
1495
+ l?.appContext.config.globalProperties.$notification.error("Failed to submit your grading request"), T.value = !1;
1496
1496
  }
1497
1497
  break;
1498
1498
  case J.Link:
1499
1499
  try {
1500
- await e[y.eventName || ""]?.(p.value, j), a.push({ name: A, params: { className: i.className } });
1500
+ await e[y.eventName || ""]?.(p.value, M), r.push({ name: A, params: { className: i.className } });
1501
1501
  } catch {
1502
1502
  }
1503
1503
  break;
@@ -1505,49 +1505,49 @@ const mo = /* @__PURE__ */ q(no, [["render", po], ["__scopeId", "data-v-2fce8732
1505
1505
  console.warn("Unknown action type:", w);
1506
1506
  }
1507
1507
  }
1508
- const j = m([]);
1508
+ const M = m([]);
1509
1509
  function Z(y, w) {
1510
- e[y]?.({ fieldValue: w, hiddenFields: j, formData: p }), r.value && (u.value = _(r.value.fields));
1510
+ e[y]?.({ fieldValue: w, hiddenFields: M, formData: p }), a.value && (u.value = _(a.value.fields));
1511
1511
  }
1512
- const ae = G(() => Me(u.value)), x = { router: a, triggers: e, svrStore: o, bpmStore: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: u, _dependent: g, genField: _, genDependentField: S, reversedActions: f, _data: p, loading: T, getApproverEmail: X, clickHandler: ee, hiddenFields: j, changeHandler: Z, groupedFields: ae, DataWidgets: Oe, ActionButton: xe, TopBar: Ie };
1512
+ const re = E(() => Me(u.value)), x = { router: r, triggers: e, svrStore: o, bpmStore: c, dataWidgetsRefs: s, instance: l, props: i, pageData: a, _fields: u, _dependent: g, genField: _, genDependentField: S, reversedActions: f, _data: p, loading: T, getApproverEmail: X, clickHandler: ee, hiddenFields: M, changeHandler: Z, groupedFields: re, DataWidgets: je, ActionButton: xe, TopBar: Ie };
1513
1513
  return Object.defineProperty(x, "__isScriptSetup", { enumerable: !1, value: !0 }), x;
1514
1514
  }
1515
1515
  }), _o = { class: "page-container" }, vo = { class: "page-body" }, bo = { class: "form-card" }, ho = { class: "form-fields-vertical" }, yo = { class: "form-fields" }, wo = {
1516
1516
  key: 0,
1517
1517
  class: "form-content"
1518
1518
  }, ko = { class: "page-footer" }, Co = { class: "action-container" }, So = { class: "action-buttons" };
1519
- function xo(t, n, a, e, o, l) {
1520
- const s = C("a-card"), c = C("a-spin");
1521
- return d(), h("div", _o, [
1519
+ function xo(t, n, r, e, o, c) {
1520
+ const s = C("a-card"), l = C("a-spin");
1521
+ return d(), v("div", _o, [
1522
1522
  N(e.TopBar, {
1523
1523
  title: e.pageData.banner.title,
1524
1524
  subTitle: e.pageData.banner.subTitle,
1525
1525
  email: e.getApproverEmail()
1526
1526
  }, null, 8, ["title", "subTitle", "email"]),
1527
- b("div", vo, [
1528
- N(c, {
1527
+ h("div", vo, [
1528
+ N(l, {
1529
1529
  loading: e.loading,
1530
1530
  class: "form-container"
1531
1531
  }, {
1532
1532
  default: k(() => [
1533
- b("div", bo, [
1534
- b("div", ho, [
1535
- (d(!0), h(O, null, M(e.groupedFields, (i) => (d(), F(s, {
1533
+ h("div", bo, [
1534
+ h("div", ho, [
1535
+ (d(!0), v(O, null, $(e.groupedFields, (i) => (d(), F(s, {
1536
1536
  key: i.name,
1537
1537
  title: i.name,
1538
1538
  style: { "margin-bottom": "24px" }
1539
1539
  }, {
1540
1540
  default: k(() => [
1541
- b("div", yo, [
1542
- (d(!0), h(O, null, M(i.fields, (r) => (d(), F(e.DataWidgets, {
1543
- key: r.fieldKey,
1541
+ h("div", yo, [
1542
+ (d(!0), v(O, null, $(i.fields, (a) => (d(), F(e.DataWidgets, {
1543
+ key: a.fieldKey,
1544
1544
  ref_for: !0,
1545
1545
  ref: "dataWidgets",
1546
- "field-key": r.fieldKey,
1547
- config: r,
1548
- "class-name": a.className,
1549
- modelValue: e._data[r.fieldKey],
1550
- "onUpdate:modelValue": (u) => e._data[r.fieldKey] = u,
1546
+ "field-key": a.fieldKey,
1547
+ config: a,
1548
+ "class-name": r.className,
1549
+ modelValue: e._data[a.fieldKey],
1550
+ "onUpdate:modelValue": (u) => e._data[a.fieldKey] = u,
1551
1551
  class: "form-field",
1552
1552
  onChange: e.changeHandler
1553
1553
  }, null, 8, ["field-key", "config", "class-name", "modelValue", "onUpdate:modelValue"]))), 128))
@@ -1556,7 +1556,7 @@ function xo(t, n, a, e, o, l) {
1556
1556
  _: 2
1557
1557
  }, 1032, ["title"]))), 128))
1558
1558
  ]),
1559
- t.$slots.content ? (d(), h("div", wo, [
1559
+ t.$slots.content ? (d(), v("div", wo, [
1560
1560
  de(t.$slots, "content", {}, void 0, !0)
1561
1561
  ])) : oe("", !0)
1562
1562
  ])
@@ -1564,27 +1564,27 @@ function xo(t, n, a, e, o, l) {
1564
1564
  _: 3
1565
1565
  }, 8, ["loading"])
1566
1566
  ]),
1567
- b("div", ko, [
1568
- b("div", Co, [
1567
+ h("div", ko, [
1568
+ h("div", Co, [
1569
1569
  de(t.$slots, "action", {}, void 0, !0),
1570
- b("div", So, [
1571
- (d(!0), h(O, null, M(e.reversedActions, (i) => (d(), F(e.ActionButton, {
1570
+ h("div", So, [
1571
+ (d(!0), v(O, null, $(e.reversedActions, (i) => (d(), F(e.ActionButton, {
1572
1572
  key: i.title,
1573
1573
  loading: e.loading,
1574
1574
  config: i,
1575
1575
  class: "action-button",
1576
- onClick: (...r) => e.clickHandler(i, ...r)
1576
+ onClick: (...a) => e.clickHandler(i, ...a)
1577
1577
  }, null, 8, ["loading", "config", "onClick"]))), 128))
1578
1578
  ])
1579
1579
  ])
1580
1580
  ])
1581
1581
  ]);
1582
1582
  }
1583
- const Ao = /* @__PURE__ */ q(go, [["render", xo], ["__scopeId", "data-v-a0ee3911"], ["__file", "UpdateView.vue"]]), ct = Symbol("library-custom-comp");
1583
+ const Ao = /* @__PURE__ */ Y(go, [["render", xo], ["__scopeId", "data-v-a0ee3911"], ["__file", "UpdateView.vue"]]), ct = Symbol("library-custom-comp");
1584
1584
  function To() {
1585
1585
  return me(ct, null);
1586
1586
  }
1587
- const Vo = /* @__PURE__ */ E({
1587
+ const Vo = /* @__PURE__ */ z({
1588
1588
  __name: "DetailView",
1589
1589
  props: {
1590
1590
  className: {},
@@ -1592,8 +1592,8 @@ const Vo = /* @__PURE__ */ E({
1592
1592
  },
1593
1593
  setup(t, { expose: n }) {
1594
1594
  n();
1595
- const a = Ve(), e = Te(), o = je(), l = Ae(), s = To(), c = pe(), i = t;
1596
- let r;
1595
+ const r = Ve(), e = Te(), o = $e(), c = Ae(), s = To(), l = pe(), i = t;
1596
+ let a;
1597
1597
  const u = m({
1598
1598
  pageType: "",
1599
1599
  fields: {},
@@ -1604,14 +1604,14 @@ const Vo = /* @__PURE__ */ E({
1604
1604
  }
1605
1605
  }), g = m([]);
1606
1606
  function _(I) {
1607
- return I ? Object.entries(I).map(([z, P]) => (typeof P.modelValue == "boolean" ? P.fieldValue = P.modelValue ? "Yes" : "No" : P.fieldValue = P.modelValue, {
1608
- fieldKey: z,
1607
+ return I ? Object.entries(I).map(([K, P]) => (typeof P.modelValue == "boolean" ? P.fieldValue = P.modelValue ? "Yes" : "No" : P.fieldValue = P.modelValue, {
1608
+ fieldKey: K,
1609
1609
  ...P
1610
- })).filter((z) => z.widget && z.widget.widget !== "Hidden").filter((z) => !y.value.includes(z.fieldKey)) : [];
1610
+ })).filter((K) => K.widget && K.widget.widget !== "Hidden").filter((K) => !y.value.includes(K.fieldKey)) : [];
1611
1611
  }
1612
- const S = G(() => Me(g.value)), f = G(() => u.value?.actions ? [...u.value.actions].reverse() : []), p = m(!0), T = (I, H) => {
1613
- const z = I.findIndex((P) => P.isCurrent);
1614
- return I.map((P, re) => {
1612
+ const S = E(() => Me(g.value)), f = E(() => u.value?.actions ? [...u.value.actions].reverse() : []), p = m(!0), T = (I, H) => {
1613
+ const K = I.findIndex((P) => P.isCurrent);
1614
+ return I.map((P, ae) => {
1615
1615
  const B = {
1616
1616
  id: P.id,
1617
1617
  title: "",
@@ -1638,55 +1638,55 @@ const Vo = /* @__PURE__ */ E({
1638
1638
  const Ee = te.workflowHistoryApprovers[0];
1639
1639
  B.status = 3, B.desc = Ee?.reason ? `Rejected reason: ${Ee.reason}` : "Rejected";
1640
1640
  }
1641
- else re < z || z === -1 ? (B.status = 0, B.desc = "Skipped") : (B.status = 0, B.desc = "Pending Approval");
1641
+ else ae < K || K === -1 ? (B.status = 0, B.desc = "Skipped") : (B.status = 0, B.desc = "Pending Approval");
1642
1642
  te && te.status;
1643
1643
  }
1644
1644
  return B;
1645
1645
  });
1646
- }, X = m([]), ee = m(!1), j = m(!1), Z = m(!1), ae = m(!1);
1646
+ }, X = m([]), ee = m(!1), M = m(!1), Z = m(!1), re = m(!1);
1647
1647
  async function x() {
1648
- const I = await r.getBtnList();
1648
+ const I = await a.getBtnList();
1649
1649
  u.value.actions = u.value.actions?.filter((H) => {
1650
- const z = I.find((P) => P.button === H.title);
1651
- return z ? z.isShow : !0;
1652
- }), ee.value = I.find((H) => H.button === "IsGlobal")?.isShow ?? !1, j.value = I.find((H) => H.button === "AssignButton")?.isShow ?? !1, Z.value = I.find((H) => H.button === "AssignList")?.isShow ?? !1, ae.value = I.find((H) => H.button === "AddCommentsButton")?.isShow ?? !1;
1650
+ const K = I.find((P) => P.button === H.title);
1651
+ return K ? K.isShow : !0;
1652
+ }), 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, re.value = I.find((H) => H.button === "AddCommentsButton")?.isShow ?? !1;
1653
1653
  }
1654
1654
  const y = m([]);
1655
1655
  async function w() {
1656
- p.value = !0, r = new Pe().setPageActionType(fe.Details).setClassName(i.className).setStore({ svrStore: a, bpmStore: e }).setWorkflowId(i.workflowId).build(), u.value = await r.getPageData();
1657
- const I = await r.getFiles();
1658
- se.value = await r.getApprovers(), L.value = await r.getCommentsHistory(), ie.value = await r.getAssociator(), x();
1656
+ p.value = !0, a = new Pe().setPageActionType(fe.Details).setClassName(i.className).setStore({ svrStore: r, bpmStore: e }).setWorkflowId(i.workflowId).build(), u.value = await a.getPageData();
1657
+ const I = await a.getFiles();
1658
+ se.value = await a.getApprovers(), L.value = await a.getCommentsHistory(), ie.value = await a.getAssociator(), x();
1659
1659
  const H = u.value.fields.requestType.modelValue;
1660
1660
  o.Test?.({ fieldValue: H, hiddenFields: y }), g.value = _(u.value.fields);
1661
1661
  for (const P in u.value.fields)
1662
1662
  if (u.value.fields[P].widget?.widget === "File") {
1663
- const re = g.value.find((B) => B.fieldKey === P);
1664
- re && re.widget && (re.widget.files = I[P] ?? []);
1663
+ const ae = g.value.find((B) => B.fieldKey === P);
1664
+ ae && ae.widget && (ae.widget.files = I[P] ?? []);
1665
1665
  }
1666
- const z = await r.getProcess();
1667
- X.value = T(z, 0), p.value = !1;
1666
+ const K = await a.getProcess();
1667
+ X.value = T(K, 0), p.value = !1;
1668
1668
  }
1669
1669
  ue(w);
1670
1670
  async function V(I, H) {
1671
1671
  return o[I]?.(H);
1672
1672
  }
1673
1673
  function A() {
1674
- return a()?.userInfo?.email_address ?? "";
1674
+ return r()?.userInfo?.email_address ?? "";
1675
1675
  }
1676
- async function D(I, H, z, P, re) {
1676
+ async function D(I, H, K, P, ae) {
1677
1677
  try {
1678
1678
  switch (H) {
1679
1679
  case J.Submit:
1680
- const { reason: B, ifGlobal: be } = await V(re, { isGlobal: ee.value });
1680
+ const { reason: B, ifGlobal: be } = await V(ae, { isGlobal: ee.value });
1681
1681
  p.value = !0;
1682
- const ke = re === "Approve" ? "100" : "-1";
1683
- await Rt(i.className, i.workflowId, A(), B, [Number(i.workflowId)], z, ke, be), p.value = !1;
1684
- const he = re === "Approve" ? `Request ID ${i.workflowId} has been approved.` : `Request ID ${i.workflowId} has been rejected.`;
1685
- c?.appContext.config.globalProperties.$notification.success(he), w();
1682
+ const ke = ae === "Approve" ? "100" : "-1";
1683
+ await Rt(i.className, i.workflowId, A(), B, [Number(i.workflowId)], K, ke, be), p.value = !1;
1684
+ const he = ae === "Approve" ? `Request ID ${i.workflowId} has been approved.` : `Request ID ${i.workflowId} has been rejected.`;
1685
+ l?.appContext.config.globalProperties.$notification.success(he), w();
1686
1686
  break;
1687
1687
  case J.Link:
1688
1688
  try {
1689
- await o[I.eventName || ""]?.(), l.push({ name: P, params: { className: i.className, workflowId: i.workflowId } });
1689
+ await o[I.eventName || ""]?.(), c.push({ name: P, params: { className: i.className, workflowId: i.workflowId } });
1690
1690
  } catch (te) {
1691
1691
  console.error("Error in link action trigger:", te);
1692
1692
  }
@@ -1695,7 +1695,7 @@ const Vo = /* @__PURE__ */ E({
1695
1695
  await o[I.eventName || ""]?.({
1696
1696
  approvers: se,
1697
1697
  associators: ie,
1698
- isShowAssignSelect: j,
1698
+ isShowAssignSelect: M,
1699
1699
  isShowAssignList: Z,
1700
1700
  assignCallback: _e,
1701
1701
  deleteAssociatorCallback: U
@@ -1707,67 +1707,67 @@ const Vo = /* @__PURE__ */ E({
1707
1707
  } catch {
1708
1708
  }
1709
1709
  }
1710
- const $ = m(""), L = m([]), Y = m(""), se = m([]), ie = m([]);
1710
+ const j = m(""), L = m([]), Q = m(""), se = m([]), ie = m([]);
1711
1711
  async function _e(I) {
1712
1712
  if (!I) {
1713
- c?.appContext.config.globalProperties.$message.error("Please select an approver");
1713
+ l?.appContext.config.globalProperties.$message.error("Please select an approver");
1714
1714
  return;
1715
1715
  }
1716
- await v("Confirm Assign Approver", "Do you want to assign the selected approver?");
1716
+ await b("Confirm Assign Approver", "Do you want to assign the selected approver?");
1717
1717
  try {
1718
- await r.assignApprover(I), ie.value = await r.getAssociator(), x(), c?.appContext.config.globalProperties.$notification.success("Assign Approver clicked!");
1718
+ await a.assignApprover(I), ie.value = await a.getAssociator(), x(), l?.appContext.config.globalProperties.$notification.success("Assign Approver clicked!");
1719
1719
  } catch (H) {
1720
1720
  if (H.status === 409) {
1721
- c?.appContext.config.globalProperties.$notification.error("This user is already an associator");
1721
+ l?.appContext.config.globalProperties.$notification.error("This user is already an associator");
1722
1722
  return;
1723
1723
  }
1724
- c?.appContext.config.globalProperties.$notification.error("Failed to assign approver");
1724
+ l?.appContext.config.globalProperties.$notification.error("Failed to assign approver");
1725
1725
  }
1726
1726
  }
1727
- async function v(I, H) {
1728
- const { Modal: z } = await import("@arco-design/web-vue");
1729
- return new Promise((P, re) => {
1730
- z.confirm({
1727
+ async function b(I, H) {
1728
+ const { Modal: K } = await import("@arco-design/web-vue");
1729
+ return new Promise((P, ae) => {
1730
+ K.confirm({
1731
1731
  title: I,
1732
1732
  content: H,
1733
1733
  okText: "OK",
1734
1734
  cancelText: "Cancel",
1735
1735
  onOk: () => P(!0),
1736
- onCancel: () => re()
1736
+ onCancel: () => ae()
1737
1737
  });
1738
1738
  });
1739
1739
  }
1740
1740
  async function U(I) {
1741
1741
  try {
1742
- await v("Confirm Delete Associator", "Do you want to delete this associator?");
1742
+ await b("Confirm Delete Associator", "Do you want to delete this associator?");
1743
1743
  } catch {
1744
1744
  return;
1745
1745
  }
1746
1746
  try {
1747
- await r.deleteAssociator(I.toString()), ie.value = await r.getAssociator(), c?.appContext.config.globalProperties.$notification.success("Associator deleted successfully!");
1747
+ await a.deleteAssociator(I.toString()), ie.value = await a.getAssociator(), l?.appContext.config.globalProperties.$notification.success("Associator deleted successfully!");
1748
1748
  } catch {
1749
- c?.appContext.config.globalProperties.$notification.error("Failed to delete associator");
1749
+ l?.appContext.config.globalProperties.$notification.error("Failed to delete associator");
1750
1750
  }
1751
1751
  }
1752
1752
  async function R() {
1753
- if (!$.value.trim()) {
1754
- c?.appContext.config.globalProperties.$message.error("Comment cannot be empty");
1753
+ if (!j.value.trim()) {
1754
+ l?.appContext.config.globalProperties.$message.error("Comment cannot be empty");
1755
1755
  return;
1756
1756
  }
1757
- await r.addComments($.value.trim()), $.value = "", L.value = await r.getCommentsHistory(), c?.appContext.config.globalProperties.$notification.success("Add Comment clicked!");
1757
+ await a.addComments(j.value.trim()), j.value = "", L.value = await a.getCommentsHistory(), l?.appContext.config.globalProperties.$notification.success("Add Comment clicked!");
1758
1758
  }
1759
1759
  function ce(I) {
1760
1760
  return I ? I === "OtherInformationText" ? "Other Information" : I === "Other Information" ? "" : I : "";
1761
1761
  }
1762
- const ve = { svrStore: a, bpmStore: e, triggers: o, router: l, customComps: s, instance: c, props: i, get page() {
1763
- return r;
1762
+ const ve = { svrStore: r, bpmStore: e, triggers: o, router: c, customComps: s, instance: l, props: i, get page() {
1763
+ return a;
1764
1764
  }, set page(I) {
1765
- r = I;
1766
- }, pageData: u, _fields: g, genField: _, groupedFields: S, reversedActions: f, loading: p, mapWorkflowSteps: T, steps: X, isGlobal: ee, isShowAssignSelect: j, isShowAssignList: Z, isShowCommentTextArea: ae, reloadButtonList: x, hiddenFields: y, load: w, triggerFn: V, getApproverEmail: A, clickHandler: D, comment: $, commentsHistory: L, selectedApprover: Y, approvers: se, associators: ie, onAssignApprover: _e, confirmDialog: v, onDeleteAssociator: U, onAddComment: R, formatTitle: ce, ActionButton: xe, get IconDownload() {
1765
+ a = I;
1766
+ }, pageData: u, _fields: g, genField: _, groupedFields: S, reversedActions: f, loading: p, mapWorkflowSteps: T, steps: X, isGlobal: ee, isShowAssignSelect: M, isShowAssignList: Z, isShowCommentTextArea: re, reloadButtonList: x, hiddenFields: y, load: w, triggerFn: V, getApproverEmail: A, clickHandler: D, comment: j, commentsHistory: L, selectedApprover: Q, approvers: se, associators: ie, onAssignApprover: _e, confirmDialog: b, onDeleteAssociator: U, onAddComment: R, formatTitle: ce, ActionButton: xe, get IconDownload() {
1767
1767
  return Pn;
1768
1768
  }, TopBar: Ie, get formatDate() {
1769
1769
  return Ce;
1770
- }, ToolTip: at };
1770
+ }, ToolTip: rt };
1771
1771
  return Object.defineProperty(ve, "__isScriptSetup", { enumerable: !1, value: !0 }), ve;
1772
1772
  }
1773
1773
  }), Io = { class: "page-container" }, Po = { class: "page-body" }, No = { class: "detail-card" }, Uo = { class: "form-fields-vertical" }, Do = { class: "detail-fields" }, Bo = { class: "detail-field" }, Fo = { class: "field-label" }, Ho = {
@@ -1776,55 +1776,55 @@ const Vo = /* @__PURE__ */ E({
1776
1776
  }, Lo = {
1777
1777
  key: 2,
1778
1778
  class: "detail-field-wrapper"
1779
- }, Ro = { class: "detail-field" }, $o = {
1779
+ }, Ro = { class: "detail-field" }, Oo = {
1780
1780
  key: 0,
1781
1781
  class: "detail-content"
1782
- }, Oo = { class: "page-footer" }, jo = { class: "action-container" }, Mo = { class: "action-buttons" };
1783
- function Eo(t, n, a, e, o, l) {
1784
- const s = C("a-link"), c = C("a-space"), i = C("a-card");
1782
+ }, jo = { class: "page-footer" }, $o = { class: "action-container" }, Mo = { class: "action-buttons" };
1783
+ function Eo(t, n, r, e, o, c) {
1784
+ const s = C("a-link"), l = C("a-space"), i = C("a-card");
1785
1785
  C("a-option"), C("a-select");
1786
- const r = C("a-button"), u = C("a-list-item"), g = C("a-list"), _ = C("a-textarea"), S = C("a-spin");
1787
- return d(), h("div", Io, [
1786
+ const a = C("a-button"), u = C("a-list-item"), g = C("a-list"), _ = C("a-textarea"), S = C("a-spin");
1787
+ return d(), v("div", Io, [
1788
1788
  N(e.TopBar, {
1789
1789
  title: e.pageData.banner.title,
1790
1790
  subTitle: e.pageData.banner.subTitle,
1791
1791
  email: e.getApproverEmail()
1792
1792
  }, null, 8, ["title", "subTitle", "email"]),
1793
- b("div", Po, [
1793
+ h("div", Po, [
1794
1794
  N(S, {
1795
1795
  loading: e.loading,
1796
1796
  class: "detail-container"
1797
1797
  }, {
1798
1798
  default: k(() => [
1799
- b("div", No, [
1799
+ h("div", No, [
1800
1800
  (d(), F(Le(e.customComps.Steps), { steps: e.steps }, null, 8, ["steps"])),
1801
- b("div", Uo, [
1802
- (d(!0), h(O, null, M(e.groupedFields, (f) => (d(), F(i, {
1801
+ h("div", Uo, [
1802
+ (d(!0), v(O, null, $(e.groupedFields, (f) => (d(), F(i, {
1803
1803
  key: f.name,
1804
1804
  title: f.name,
1805
1805
  style: { "margin-bottom": "24px" }
1806
1806
  }, {
1807
1807
  default: k(() => [
1808
- b("div", Do, [
1809
- (d(!0), h(O, null, M(f.fields, (p) => (d(), h("div", {
1808
+ h("div", Do, [
1809
+ (d(!0), v(O, null, $(f.fields, (p) => (d(), v("div", {
1810
1810
  key: p.fieldKey,
1811
1811
  class: "detail-field-wrapper"
1812
1812
  }, [
1813
- b("div", Bo, [
1814
- b("div", Fo, [
1815
- ne(Q(e.formatTitle(p.widget?.title)) + " ", 1),
1813
+ h("div", Bo, [
1814
+ h("div", Fo, [
1815
+ ne(q(e.formatTitle(p.widget?.title)) + " ", 1),
1816
1816
  N(e.ToolTip, {
1817
1817
  "is-visible": p.widget?.isVisible ?? !1,
1818
1818
  "output-text": p.widget?.outputText ?? []
1819
1819
  }, null, 8, ["is-visible", "output-text"])
1820
1820
  ]),
1821
- p.widget?.widget === "File" ? (d(!0), h(O, { key: 0 }, M(p.widget.files, (T) => (d(), h("div", {
1821
+ p.widget?.widget === "File" ? (d(!0), v(O, { key: 0 }, $(p.widget.files, (T) => (d(), v("div", {
1822
1822
  class: "field-value",
1823
1823
  key: T.id
1824
1824
  }, [
1825
- N(c, null, {
1825
+ N(l, null, {
1826
1826
  default: k(() => [
1827
- ne(Q(T.name) + " ", 1),
1827
+ ne(q(T.name) + " ", 1),
1828
1828
  N(s, {
1829
1829
  href: T.url,
1830
1830
  target: "_blank"
@@ -1837,7 +1837,7 @@ function Eo(t, n, a, e, o, l) {
1837
1837
  ]),
1838
1838
  _: 2
1839
1839
  }, 1024)
1840
- ]))), 128)) : (d(), h("div", Ho, Q(p.fieldValue), 1))
1840
+ ]))), 128)) : (d(), v("div", Ho, q(p.fieldValue), 1))
1841
1841
  ])
1842
1842
  ]))), 128))
1843
1843
  ])
@@ -1846,14 +1846,14 @@ function Eo(t, n, a, e, o, l) {
1846
1846
  }, 1032, ["title"]))), 128)),
1847
1847
  oe("", !0),
1848
1848
  oe("", !0),
1849
- e.isShowCommentTextArea ? (d(), h("div", Lo, [
1850
- b("div", Ro, [
1851
- n[6] || (n[6] = b("div", { class: "field-label" }, "Comment", -1)),
1849
+ e.isShowCommentTextArea ? (d(), v("div", Lo, [
1850
+ h("div", Ro, [
1851
+ n[6] || (n[6] = h("div", { class: "field-label" }, "Comment", -1)),
1852
1852
  N(_, {
1853
1853
  modelValue: e.comment,
1854
1854
  "onUpdate:modelValue": n[1] || (n[1] = (f) => e.comment = f)
1855
1855
  }, null, 8, ["modelValue"]),
1856
- N(r, {
1856
+ N(a, {
1857
1857
  type: "primary",
1858
1858
  onClick: e.onAddComment
1859
1859
  }, {
@@ -1870,11 +1870,11 @@ function Eo(t, n, a, e, o, l) {
1870
1870
  ne(" Comments History ", -1)
1871
1871
  ])),
1872
1872
  default: k(() => [
1873
- (d(!0), h(O, null, M(e.commentsHistory, (f) => (d(), F(u, {
1873
+ (d(!0), v(O, null, $(e.commentsHistory, (f) => (d(), F(u, {
1874
1874
  key: f.associator
1875
1875
  }, {
1876
1876
  default: k(() => [
1877
- ne(Q(f.associator) + ": " + Q(f.comments) + " (" + Q(e.formatDate(f.createdAt)) + ") ", 1)
1877
+ ne(q(f.associator) + ": " + q(f.comments) + " (" + q(e.formatDate(f.createdAt)) + ") ", 1)
1878
1878
  ]),
1879
1879
  _: 2
1880
1880
  }, 1024))), 128))
@@ -1882,7 +1882,7 @@ function Eo(t, n, a, e, o, l) {
1882
1882
  _: 1
1883
1883
  })) : oe("", !0)
1884
1884
  ]),
1885
- t.$slots.content ? (d(), h("div", $o, [
1885
+ t.$slots.content ? (d(), v("div", Oo, [
1886
1886
  de(t.$slots, "content", {}, void 0, !0)
1887
1887
  ])) : oe("", !0)
1888
1888
  ])
@@ -1890,11 +1890,11 @@ function Eo(t, n, a, e, o, l) {
1890
1890
  _: 3
1891
1891
  }, 8, ["loading"])
1892
1892
  ]),
1893
- b("div", Oo, [
1894
- b("div", jo, [
1893
+ h("div", jo, [
1894
+ h("div", $o, [
1895
1895
  de(t.$slots, "action", {}, void 0, !0),
1896
- b("div", Mo, [
1897
- (d(!0), h(O, null, M(e.reversedActions, (f) => (d(), F(e.ActionButton, {
1896
+ h("div", Mo, [
1897
+ (d(!0), v(O, null, $(e.reversedActions, (f) => (d(), F(e.ActionButton, {
1898
1898
  key: f.title,
1899
1899
  loading: e.loading,
1900
1900
  config: f,
@@ -1906,7 +1906,7 @@ function Eo(t, n, a, e, o, l) {
1906
1906
  ])
1907
1907
  ]);
1908
1908
  }
1909
- const zo = /* @__PURE__ */ q(Vo, [["render", Eo], ["__scopeId", "data-v-c382c4fa"], ["__file", "DetailView.vue"]]), Ko = /* @__PURE__ */ E({
1909
+ const zo = /* @__PURE__ */ Y(Vo, [["render", Eo], ["__scopeId", "data-v-c382c4fa"], ["__file", "DetailView.vue"]]), Ko = /* @__PURE__ */ z({
1910
1910
  name: "ListView",
1911
1911
  __name: "ListView",
1912
1912
  props: {
@@ -1914,7 +1914,7 @@ const zo = /* @__PURE__ */ q(Vo, [["render", Eo], ["__scopeId", "data-v-c382c4fa
1914
1914
  },
1915
1915
  setup(t, { expose: n }) {
1916
1916
  n();
1917
- const a = Ve(), e = Te(), o = Ae(), l = pe(), s = t, c = m(), i = ut({
1917
+ const r = Ve(), e = Te(), o = Ae(), c = pe(), s = t, l = m(), i = ut({
1918
1918
  current: 1,
1919
1919
  total: 0,
1920
1920
  pageSize: 10,
@@ -1923,8 +1923,8 @@ const zo = /* @__PURE__ */ q(Vo, [["render", Eo], ["__scopeId", "data-v-c382c4fa
1923
1923
  showPageSize: !0,
1924
1924
  filters: []
1925
1925
  });
1926
- function r() {
1927
- const v = Object.entries(A.value).filter(([, { value: U }]) => U && U !== "").map(([U, { value: R, operator: ce }]) => ({
1926
+ function a() {
1927
+ const b = Object.entries(A.value).filter(([, { value: U }]) => U && U !== "").map(([U, { value: R, operator: ce }]) => ({
1928
1928
  key: U,
1929
1929
  value: R,
1930
1930
  operator: ce
@@ -1933,19 +1933,19 @@ const zo = /* @__PURE__ */ q(Vo, [["render", Eo], ["__scopeId", "data-v-c382c4fa
1933
1933
  return {
1934
1934
  pageNumber: i.current,
1935
1935
  pageSize: i.pageSize,
1936
- filters: [...i.filters, ...v],
1936
+ filters: [...i.filters, ...b],
1937
1937
  sorts: [{
1938
1938
  key: "workflowId",
1939
1939
  type: 1
1940
1940
  }]
1941
1941
  };
1942
1942
  }
1943
- const u = G(() => ({
1943
+ const u = E(() => ({
1944
1944
  x: S.value.length * 150 + 250
1945
1945
  // 只设置横向滚动
1946
1946
  // 移除 y 属性,让表格高度自适应
1947
- })), g = (v) => {
1948
- const U = Object.entries(v).filter(([, R]) => R.widget?.column).map(([R, ce], ve) => ({
1947
+ })), g = (b) => {
1948
+ const U = Object.entries(b).filter(([, R]) => R.widget?.column).map(([R, ce], ve) => ({
1949
1949
  title: ce.widget.title,
1950
1950
  dataIndex: R.charAt(0).toLowerCase() + R.slice(1),
1951
1951
  order: ce.order,
@@ -1968,80 +1968,80 @@ const zo = /* @__PURE__ */ q(Vo, [["render", Eo], ["__scopeId", "data-v-c382c4fa
1968
1968
  }), S.value = U;
1969
1969
  }, _ = m([]), S = m([]), f = m(!0), p = m(!0), T = m(), X = async () => {
1970
1970
  p.value = !0;
1971
- const v = await Pt(s.className, r());
1972
- _.value = v.data, i.total = v.totalCount, p.value = !1;
1971
+ const b = await Pt(s.className, a());
1972
+ _.value = b.data, i.total = b.totalCount, p.value = !1;
1973
1973
  }, ee = m(!1);
1974
1974
  ue(async () => {
1975
1975
  f.value = !0;
1976
- const v = new Pe().setPageActionType(fe.List).setClassName(s.className).setStore({ svrStore: a, bpmStore: e }).build();
1977
- c.value = await v.getPageData(), g(c.value.fields), $(c.value.fields), L(), V(c.value?.tabs?.[0]?.key || ""), T.value = c.value.actions, f.value = !1, ee.value = !0;
1976
+ const b = new Pe().setPageActionType(fe.List).setClassName(s.className).setStore({ svrStore: r, bpmStore: e }).build();
1977
+ l.value = await b.getPageData(), g(l.value.fields), j(l.value.fields), L(), V(l.value?.tabs?.[0]?.key || ""), T.value = l.value.actions, f.value = !1, ee.value = !0;
1978
1978
  }), ft(() => {
1979
1979
  ee.value && X();
1980
1980
  });
1981
- const j = (v) => {
1982
- i.current = v, X();
1983
- }, Z = (v) => {
1984
- i.pageSize = v, X();
1981
+ const M = (b) => {
1982
+ i.current = b, X();
1983
+ }, Z = (b) => {
1984
+ i.pageSize = b, X();
1985
1985
  };
1986
- function ae(v, U, R, ce, ve) {
1987
- switch (v) {
1986
+ function re(b, U, R, ce, ve) {
1987
+ switch (b) {
1988
1988
  case J.Link:
1989
1989
  o.push({ name: R, params: { workflowId: ve } });
1990
1990
  break;
1991
1991
  default:
1992
- console.warn("Unknown action type:", v);
1992
+ console.warn("Unknown action type:", b);
1993
1993
  }
1994
1994
  }
1995
- function x(v, U, R) {
1996
- switch (v) {
1995
+ function x(b, U, R) {
1996
+ switch (b) {
1997
1997
  case J.Submit:
1998
- Qt(U, { filters: [{ key: "approverList", value: y(), operator: 2 }] }), l?.appContext.config.globalProperties.$notification.success("submit success!");
1998
+ Qt(U, { filters: [{ key: "approverList", value: y(), operator: 2 }] }), c?.appContext.config.globalProperties.$notification.success("submit success!");
1999
1999
  break;
2000
2000
  case J.Link:
2001
2001
  o.push({ name: R });
2002
2002
  break;
2003
2003
  default:
2004
- console.warn("Unknown action type:", v);
2004
+ console.warn("Unknown action type:", b);
2005
2005
  }
2006
2006
  }
2007
2007
  function y() {
2008
- return a()?.userInfo?.email_address ?? "";
2008
+ return r()?.userInfo?.email_address ?? "";
2009
2009
  }
2010
- function w(v, U) {
2011
- return typeof v != "string" || v.indexOf("{currentUserEmail}") === -1 ? v : v.replace(/{currentUserEmail}/g, U);
2010
+ function w(b, U) {
2011
+ return typeof b != "string" || b.indexOf("{currentUserEmail}") === -1 ? b : b.replace(/{currentUserEmail}/g, U);
2012
2012
  }
2013
- function V(v) {
2014
- const U = c.value?.tabs?.find((R) => R.key === v)?.filters;
2013
+ function V(b) {
2014
+ const U = l.value?.tabs?.find((R) => R.key === b)?.filters;
2015
2015
  i.filters = U?.map((R) => ({
2016
2016
  ...R,
2017
2017
  value: w(R.value, y())
2018
2018
  })) || [], i.current = 1, X();
2019
2019
  }
2020
2020
  const A = m({}), D = m([]);
2021
- function $(v) {
2022
- if (!v) return [];
2023
- D.value = Object.entries(v).filter(([, U]) => U.isFiltered).map(([U, R]) => ({ fieldKey: U, fieldConfig: R }));
2021
+ function j(b) {
2022
+ if (!b) return [];
2023
+ D.value = Object.entries(b).filter(([, U]) => U.isFiltered).map(([U, R]) => ({ fieldKey: U, fieldConfig: R }));
2024
2024
  }
2025
2025
  const L = () => {
2026
- const v = {};
2026
+ const b = {};
2027
2027
  D.value.forEach(({ fieldKey: U, fieldConfig: R }) => {
2028
- v[U] = {}, v[U].value = R.modelValue, v[U].operator = R.operator;
2029
- }), A.value = v;
2030
- }, Y = () => {
2028
+ b[U] = {}, b[U].value = R.modelValue, b[U].operator = R.operator;
2029
+ }), A.value = b;
2030
+ }, Q = () => {
2031
2031
  i.current = 1, X();
2032
2032
  }, se = () => {
2033
- c.value && L(), Y();
2033
+ l.value && L(), Q();
2034
2034
  };
2035
- function ie(v, U) {
2036
- return !(v.location !== "InTable" || v.title === "Update" && (U.status === 100 || U.status === -1));
2035
+ function ie(b, U) {
2036
+ return !(b.location !== "InTable" || b.title === "Update" && (U.status === 100 || U.status === -1));
2037
2037
  }
2038
- const _e = { svrStore: a, bpmStore: e, router: o, instance: l, props: s, pageData: c, paging: i, createListParams: r, scroll: u, mapColumns: g, _data: _, _columns: S, loadingPage: f, loadingTable: p, actions: T, loadData: X, mounted: ee, pageChangeHandler: j, pageSizeChangeHandler: Z, clickHandler: ae, createHandler: x, getApproverEmail: y, replaceEmail: w, tabHandler: V, searchForm: A, searchableFields: D, mapSearchableFields: $, initSearchForm: L, handleSearch: Y, handleReset: se, judgeHiddenActions: ie, ActionButton: xe, DataWidgets: Oe, TopBar: Ie };
2038
+ const _e = { svrStore: r, bpmStore: e, router: o, instance: c, props: s, pageData: l, paging: i, createListParams: a, scroll: u, mapColumns: g, _data: _, _columns: S, loadingPage: f, loadingTable: p, actions: T, loadData: X, mounted: ee, pageChangeHandler: M, pageSizeChangeHandler: Z, clickHandler: re, createHandler: x, getApproverEmail: y, replaceEmail: w, tabHandler: V, searchForm: A, searchableFields: D, mapSearchableFields: j, initSearchForm: L, handleSearch: Q, handleReset: se, judgeHiddenActions: ie, ActionButton: xe, DataWidgets: je, TopBar: Ie };
2039
2039
  return Object.defineProperty(_e, "__isScriptSetup", { enumerable: !1, value: !0 }), _e;
2040
2040
  }
2041
2041
  }), Wo = { class: "list-container" }, Go = { class: "query-title" };
2042
- function qo(t, n, a, e, o, l) {
2043
- const s = C("a-space"), c = C("a-col"), i = C("a-button"), r = C("a-row"), u = C("a-card"), g = C("a-tab-pane"), _ = C("a-tabs"), S = C("a-table");
2044
- return d(), h("div", Wo, [
2042
+ function qo(t, n, r, e, o, c) {
2043
+ const s = C("a-space"), l = C("a-col"), i = C("a-button"), a = C("a-row"), u = C("a-card"), g = C("a-tab-pane"), _ = C("a-tabs"), S = C("a-table");
2044
+ return d(), v("div", Wo, [
2045
2045
  N(e.TopBar, {
2046
2046
  title: e.pageData?.banner.title ?? "",
2047
2047
  subTitle: e.pageData?.banner.subTitle ?? "",
@@ -2049,11 +2049,11 @@ function qo(t, n, a, e, o, l) {
2049
2049
  }, null, 8, ["title", "subTitle", "email"]),
2050
2050
  N(u, null, {
2051
2051
  default: k(() => [
2052
- b("div", Go, [
2053
- n[0] || (n[0] = b("h3", null, "Search Conditions", -1)),
2052
+ h("div", Go, [
2053
+ n[0] || (n[0] = h("h3", null, "Search Conditions", -1)),
2054
2054
  N(s, { size: "medium" }, {
2055
2055
  default: k(() => [
2056
- (d(!0), h(O, null, M(e.actions, (f) => (d(), h(O, {
2056
+ (d(!0), v(O, null, $(e.actions, (f) => (d(), v(O, {
2057
2057
  key: f.title
2058
2058
  }, [
2059
2059
  f.location === "InOperation" ? (d(), F(e.ActionButton, {
@@ -2066,9 +2066,9 @@ function qo(t, n, a, e, o, l) {
2066
2066
  _: 1
2067
2067
  })
2068
2068
  ]),
2069
- N(r, { gutter: [24, 20] }, {
2069
+ N(a, { gutter: [24, 20] }, {
2070
2070
  default: k(() => [
2071
- (d(!0), h(O, null, M(e.searchableFields, (f) => (d(), F(c, {
2071
+ (d(!0), v(O, null, $(e.searchableFields, (f) => (d(), F(l, {
2072
2072
  key: f.fieldKey,
2073
2073
  span: 6,
2074
2074
  class: "search-col"
@@ -2084,7 +2084,7 @@ function qo(t, n, a, e, o, l) {
2084
2084
  ]),
2085
2085
  _: 2
2086
2086
  }, 1024))), 128)),
2087
- N(c, {
2087
+ N(l, {
2088
2088
  span: 6,
2089
2089
  class: "search-col form-buttons"
2090
2090
  }, {
@@ -2129,7 +2129,7 @@ function qo(t, n, a, e, o, l) {
2129
2129
  onTabClick: e.tabHandler
2130
2130
  }, {
2131
2131
  default: k(() => [
2132
- (d(!0), h(O, null, M(e.pageData?.tabs, (f) => (d(), F(g, {
2132
+ (d(!0), v(O, null, $(e.pageData?.tabs, (f) => (d(), F(g, {
2133
2133
  key: f.key,
2134
2134
  title: f.title
2135
2135
  }, null, 8, ["title"]))), 128))
@@ -2158,7 +2158,7 @@ function qo(t, n, a, e, o, l) {
2158
2158
  optional: k(({ record: f }) => [
2159
2159
  N(s, { size: "small" }, {
2160
2160
  default: k(() => [
2161
- (d(!0), h(O, null, M(e.actions, (p) => (d(), h(O, {
2161
+ (d(!0), v(O, null, $(e.actions, (p) => (d(), v(O, {
2162
2162
  key: p.title
2163
2163
  }, [
2164
2164
  e.judgeHiddenActions(p, f) ? (d(), F(e.ActionButton, {
@@ -2176,12 +2176,12 @@ function qo(t, n, a, e, o, l) {
2176
2176
  }, 8, ["columns", "data", "pagination", "loading", "scroll"])
2177
2177
  ]);
2178
2178
  }
2179
- const Yo = /* @__PURE__ */ q(Ko, [["render", qo], ["__scopeId", "data-v-639f4f42"], ["__file", "ListView.vue"]]), ta = {
2179
+ const Yo = /* @__PURE__ */ Y(Ko, [["render", qo], ["__scopeId", "data-v-639f4f42"], ["__file", "ListView.vue"]]), tr = {
2180
2180
  install(t, n = {}) {
2181
- n.config && wt(n.config), n.router && t.provide(rt, n.router), n.pinia && t.provide(Gn, n.pinia), n.useBpmStore && t.provide(it, n.useBpmStore), n.useSvrStore && t.provide(lt, n.useSvrStore), n.triggers && t.provide(st, n.triggers), n.customComps && t.provide(ct, n.customComps), t.component("CreateView", mo), t.component("UpdateView", Ao), t.component("DetailView", zo), t.component("ListView", Yo);
2181
+ n.config && wt(n.config), n.router && t.provide(at, n.router), n.pinia && t.provide(Gn, n.pinia), n.useBpmStore && t.provide(it, n.useBpmStore), n.useSvrStore && t.provide(lt, n.useSvrStore), n.triggers && t.provide(st, n.triggers), n.customComps && t.provide(ct, n.customComps), t.component("CreateView", mo), t.component("UpdateView", Ao), t.component("DetailView", zo), t.component("ListView", Yo);
2182
2182
  }
2183
2183
  };
2184
2184
  export {
2185
- ta as default
2185
+ tr as default
2186
2186
  };
2187
2187
  //# sourceMappingURL=index.es.js.map