@chase-shao/vue-component-lib 1.2.89 → 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 K, mergeModels as le, useModel as we, resolveComponent as k, createBlock as D, openBlock as d, onMounted as ue, computed as q, withCtx as y, createElementBlock as h, Fragment as $, renderList as z, createVNode as U, nextTick as dt, createTextVNode as oe, inject as me, normalizeStyle as Qe, normalizeClass as Ye, createElementVNode as S, useTemplateRef as Fe, createCommentVNode as ne, toDisplayString as X, 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,38 +22,38 @@ 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
- let Be = {};
51
+ let Fe = {};
52
52
  function wt(t) {
53
- Be = { ...Be, ...t };
53
+ Fe = { ...Fe, ...t };
54
54
  }
55
55
  function Re() {
56
- return Be;
56
+ return Fe;
57
57
  }
58
58
  const kt = pe();
59
59
  function Je() {
@@ -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
@@ -123,8 +123,8 @@ function At() {
123
123
  }
124
124
  return Ue(xt);
125
125
  }
126
- const Vt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ze = { randomUUID: Vt };
127
- function et(t, n, a) {
126
+ const Tt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ze = { randomUUID: Tt };
127
+ function et(t, n, r) {
128
128
  if (ze.randomUUID && !t)
129
129
  return ze.randomUUID();
130
130
  t = t || {};
@@ -133,8 +133,8 @@ function et(t, n, a) {
133
133
  throw new Error("Random bytes length must be >= 16");
134
134
  return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, St(e);
135
135
  }
136
- var Y = /* @__PURE__ */ ((t) => (t[t.Submit = 0] = "Submit", t[t.Link = 1] = "Link", t[t.Button = 2] = "Button", t))(Y || {}), 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 It(t, n, a) {
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, r) {
138
138
  const e = {
139
139
  pageType: "",
140
140
  fields: {},
@@ -155,7 +155,7 @@ function It(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(),
@@ -174,15 +174,15 @@ function It(t, n, a) {
174
174
  redirectUrl: o.redirectUrl,
175
175
  redirectType: o.redirectType,
176
176
  title: o.title,
177
- widget: o.widget === "Link" ? Y.Link : o.widget === "Submit" ? Y.Submit : Y.Button,
177
+ widget: o.widget === "Link" ? J.Link : o.widget === "Submit" ? J.Submit : J.Button,
178
178
  location: o.location,
179
179
  attributeType: o.attributeType,
180
180
  readonly: o.readonly,
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 = je(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 It(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,24 +203,24 @@ function It(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" ? 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 W()).get(`/General/${n}/${t}/page`, { params: e });
222
- return It(l?.data, t, a);
223
- }, Tt = async (t, n, a) => (await (await W()).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
225
  const e = await (await W()).post(`/General/${t}/list`, n);
226
226
  return {
@@ -241,48 +241,48 @@ async function Pt(t, n) {
241
241
  // ),
242
242
  };
243
243
  }
244
- async function Nt(t, n, a) {
245
- return (await (await W()).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 W(), l = je(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 je(t, n) {
255
+ function Oe(t, n) {
256
256
  return t.replace(/{WorkflowId}/g, n);
257
257
  }
258
258
  function Dt(t, n) {
259
259
  return t.replace(/{ApproverEmail}/g, encodeURIComponent(n));
260
260
  }
261
- function Ht(t, n) {
261
+ function Bt(t, n) {
262
262
  return t.replace(/{WorkFlowReason}/g, encodeURIComponent(n));
263
263
  }
264
- function Bt(t, n) {
264
+ function Ft(t, n) {
265
265
  return t.replace(/{Status}/g, n);
266
266
  }
267
- function Ft(t, n) {
267
+ function Ht(t, n) {
268
268
  return t.replace(/{IfTriggerGlobal_RandP_Approval}/g, n);
269
269
  }
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) {
273
+ async function Rt(t, n, r, e, o, c, s, l) {
274
274
  const i = await W();
275
- let r = je(l, n);
276
- return r = Dt(r, a), r = Ht(r, e), r = Bt(r, s), r = Ft(r, c), r = Lt(r, t), (await i.put(r, o))?.data;
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 jt(t, n) {
278
+ async function Ot(t, n) {
279
279
  const o = (await (await W()).get(t, { params: { value: n } }))?.data;
280
- return Object.entries(o).map(([l, s]) => ({
281
- value: l,
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) {
285
+ async function jt(t, n) {
286
286
  return (await (await W()).get(`/General/${t}/${n}/process`))?.data;
287
287
  }
288
288
  function $t(t) {
@@ -293,9 +293,9 @@ function $t(t) {
293
293
  };
294
294
  }
295
295
  async function Mt(t, n) {
296
- return (await (await W()).get(`/General/${t}/${n}/upload/get`))?.data.reduce((l, s) => {
297
- const { category: c } = s;
298
- return l[c] || (l[c] = []), l[c].push($t(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) {
@@ -303,16 +303,16 @@ async function Et(t, n) {
303
303
  }
304
304
  async function zt() {
305
305
  const n = await (await W()).get("/Grading/dropdown/approvers");
306
- return Object.entries(n?.data).map(([a, e]) => ({
307
- label: a,
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
312
  return await (await W()).post(`Grading/AssignComments/${t}/${encodeURIComponent(n)}`);
313
313
  }
314
- async function Wt(t, n, a) {
315
- return await (await W()).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
  }
@@ -322,28 +322,28 @@ async function Gt(t) {
322
322
  async function qt(t) {
323
323
  return (await (await W()).get(`Grading/GetAssociator/${t}`))?.data;
324
324
  }
325
- async function Qt(t) {
325
+ async function Yt(t) {
326
326
  return await (await W()).delete(`Grading/DeleteAssociator/${t}`);
327
327
  }
328
- async function Yt(t, n = null) {
328
+ async function Qt(t, n = null) {
329
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__ */ K({
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
- }), J = (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) {
385
- const s = k("AInput");
386
- return d(), D(s, {
384
+ function en(t, n, r, e, o, c) {
385
+ const s = C("AInput");
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__ */ J(Zt, [["render", en], ["__file", "InputText.vue"]]), tn = /* @__PURE__ */ K({
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,19 +406,19 @@ const We = /* @__PURE__ */ J(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
- const x = i(_);
420
- o("error", x.res ? "" : x.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((p) => {
421
- p.event === "change" && o(p.event, p.handlerName, _);
419
+ const S = i(_);
420
+ o("error", S.res ? "" : S.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((f) => {
421
+ f.event === "change" && o(f.event, f.handlerName, _);
422
422
  });
423
423
  };
424
424
  n({
@@ -427,15 +427,15 @@ const We = /* @__PURE__ */ J(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) {
435
- const s = k("AInputNumber");
436
- return d(), D(s, {
434
+ function nn(t, n, r, e, o, c) {
435
+ const s = C("AInputNumber");
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__ */ J(tn, [["render", nn], ["__file", "InputNumber.vue"]]), an = /* @__PURE__ */ K({
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,40 +457,40 @@ const on = /* @__PURE__ */ J(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 = (x) => ge(e.validations, x), r = q(() => {
462
- const x = {};
463
- return e.triggers && e.triggers.length > 0 && e.triggers.forEach((p) => {
464
- x[p.event] = (f) => {
465
- o(p.event, p.handlerName, f);
466
- const b = i(f);
467
- o("error", b.res ? "" : b.errorMessages);
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
+ const S = {};
463
+ return e.triggers && e.triggers.length > 0 && e.triggers.forEach((f) => {
464
+ S[f.event] = (p) => {
465
+ o(f.event, f.handlerName, p);
466
+ const T = i(p);
467
+ o("error", T.res ? "" : T.errorMessages);
468
468
  };
469
- }), x;
469
+ }), S;
470
470
  }), u = async () => {
471
- e.config.dataSourceProvider && (s.value = await jt(e.config.dataSourceProvider));
471
+ e.config.dataSourceProvider && (s.value = await Ot(e.config.dataSourceProvider));
472
472
  };
473
473
  ue(u);
474
- const g = (x) => {
475
- o("update:modelValue", x);
476
- const p = i(x);
477
- o("error", p.res ? "" : p.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((f) => {
478
- f.event === "change" && o(f.event, f.handlerName, x);
474
+ const g = (S) => {
475
+ o("update:modelValue", S);
476
+ const f = i(S);
477
+ o("error", f.res ? "" : f.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((p) => {
478
+ p.event === "change" && o(p.event, p.handlerName, S);
479
479
  });
480
480
  };
481
481
  n({
482
482
  validate() {
483
- const x = i(e.modelValue);
484
- return o("error", x.res ? "" : x.errorMessages), x.res;
483
+ const S = i(e.modelValue);
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 = k("AOption"), c = k("ASelect");
493
- return d(), D(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),
@@ -500,8 +500,8 @@ function rn(t, n, a, e, o, l) {
500
500
  disabled: e.props.config.readonly,
501
501
  onChange: e.changeHandler
502
502
  }, {
503
- default: y(() => [
504
- (d(!0), h($, null, z(e._options, (i) => (d(), D(s, {
503
+ default: k(() => [
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__ */ J(an, [["render", rn], ["__file", "SelectList.vue"]]), sn = /* @__PURE__ */ K({
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 W()).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 = k("ACascader"), c = k("ASpace");
545
- return d(), D(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
- default: y(() => [
550
- U(s, {
549
+ default: k(() => [
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__ */ J(sn, [["render", ln], ["__file", "Cascader.vue"]]), dn = /* @__PURE__ */ K({
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,69 +571,69 @@ const cn = /* @__PURE__ */ J(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
- const A = await Ze();
578
- l.value = {
579
- Authorization: `Bearer ${A}`
577
+ const x = await Ze();
578
+ c.value = {
579
+ Authorization: `Bearer ${x}`
580
580
  };
581
581
  });
582
- const s = (A) => ge(e.validations, A), c = Re(), i = c.apiBase, r = m(null), u = m("");
583
- function g(A, w, C) {
584
- return A.replace(/{WorkflowId}/g, w).replace(/{ClassName}/g, C);
582
+ const s = (x) => ge(e.validations, x), l = Re(), i = l.apiBase, a = m(null), u = m("");
583
+ function g(x, y, w) {
584
+ return x.replace(/{WorkflowId}/g, y).replace(/{ClassName}/g, w);
585
585
  }
586
- const _ = q(() => {
586
+ const _ = E(() => {
587
587
  if (e.config.uploadURL) {
588
- const A = i + e.config.uploadURL;
589
- return g(A, u.value, e.className);
588
+ const x = i + e.config.uploadURL;
589
+ return g(x, u.value, e.className);
590
590
  }
591
591
  return "";
592
- }), x = (A) => {
593
- A.stopPropagation(), r.value.submit();
592
+ }), S = (x) => {
593
+ x.stopPropagation(), a.value.submit();
594
594
  };
595
- function p(A) {
596
- const { file: w, name: C } = A, I = C ?? w.name;
597
- return new Promise((V, H) => {
595
+ function f(x) {
596
+ const { file: y, name: w } = x, V = w ?? y.name;
597
+ return new Promise((A, D) => {
598
598
  gt.confirm({
599
599
  title: "Confirm Delete",
600
- content: `Are you sure you want to delete ${I}?`,
600
+ content: `Are you sure you want to delete ${V}?`,
601
601
  async onOk() {
602
- if (A.status !== "init" && e.config.removeFile)
603
- return await e.config.removeFile(A.uid), V(!0);
604
- V(!0);
602
+ if (x.status !== "init" && e.config.removeFile)
603
+ return await e.config.removeFile(x.uid), A(!0);
604
+ A(!0);
605
605
  },
606
- onCancel: () => H("cancel")
606
+ onCancel: () => D("cancel")
607
607
  });
608
608
  });
609
609
  }
610
- const f = m(null), b = m(null), j = (A) => {
611
- f.value && (f.value(A), f.value = null, b.value = null);
612
- }, ee = (A) => {
613
- b.value && (b.value(A), f.value = null, b.value = null);
614
- }, M = m([]), Z = (A) => {
615
- M.value = A.filter((w) => w.status === "init");
610
+ const p = m(null), T = m(null), X = (x) => {
611
+ p.value && (p.value(x), p.value = null, T.value = null);
612
+ }, ee = (x) => {
613
+ T.value && (T.value(x), p.value = null, T.value = null);
614
+ }, M = m([]), Z = (x) => {
615
+ M.value = x.filter((y) => y.status === "init");
616
616
  };
617
617
  n({
618
- submit(A) {
619
- return new Promise((w, C) => {
620
- r.value ? (e.config.uploadURL && (u.value = A), f.value = w, b.value = C, M.value.length ? dt(() => {
621
- r.value?.submit();
622
- }) : w(A)) : w(A);
618
+ submit(x) {
619
+ return new Promise((y, w) => {
620
+ a.value ? (e.config.uploadURL && (u.value = x), p.value = y, T.value = w, M.value.length ? dt(() => {
621
+ a.value?.submit();
622
+ }) : y(x)) : y(x);
623
623
  });
624
624
  },
625
625
  validate() {
626
- const A = e.config.files ?? [], w = [...M.value, ...A].length > 0 ? "hasFile" : "", C = s(w);
627
- return o("error", C.res ? "" : C.errorMessages), C.res;
626
+ const x = e.config.files ?? [], y = [...M.value, ...x].length > 0 ? "hasFile" : "", w = s(y);
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: x, onBeforeRemove: p, uploadPromiseResolve: f, uploadPromiseReject: b, handleUploadSuccess: j, handleUploadError: ee, readyFiles: M, 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 = k("a-button"), c = k("a-upload");
636
- return d(), D(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,
@@ -646,11 +646,11 @@ function un(t, n, a, e, o, l) {
646
646
  onSuccess: e.handleUploadSuccess,
647
647
  onError: e.handleUploadError
648
648
  }, {
649
- "start-icon": y(() => n[0] || (n[0] = [])),
650
- "upload-button": y(() => [
651
- U(s, { type: "primary" }, {
652
- default: y(() => n[1] || (n[1] = [
653
- oe("Select File", -1)
649
+ "start-icon": k(() => n[0] || (n[0] = [])),
650
+ "upload-button": k(() => [
651
+ N(s, { type: "primary" }, {
652
+ default: k(() => n[1] || (n[1] = [
653
+ ne("Select File", -1)
654
654
  ])),
655
655
  _: 1,
656
656
  __: [1]
@@ -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__ */ J(dn, [["render", un], ["__file", "FileUpload.vue"]]), pn = /* @__PURE__ */ K({
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,29 +670,29 @@ const fn = /* @__PURE__ */ J(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) {
694
- const s = k("ATextarea");
695
- return d(), D(s, {
693
+ function mn(t, n, r, e, o, c) {
694
+ const s = C("ATextarea");
695
+ return d(), F(s, {
696
696
  "model-value": e.props.modelValue,
697
697
  placeholder: "Please enter something",
698
698
  "allow-clear": "",
@@ -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__ */ J(pn, [["render", mn], ["__file", "TextArea.vue"]]), _n = /* @__PURE__ */ K({
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,53 +715,53 @@ const gn = /* @__PURE__ */ J(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) {
736
- const s = k("ACheckbox");
737
- return d(), D(s, {
735
+ function vn(t, n, r, e, o, c) {
736
+ const s = C("ACheckbox");
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
743
743
  }, {
744
- default: y(() => n[1] || (n[1] = [
745
- oe("Yes", -1)
744
+ default: k(() => n[1] || (n[1] = [
745
+ ne("Yes", -1)
746
746
  ])),
747
747
  _: 1,
748
748
  __: [1]
749
749
  }, 8, ["modelValue", "disabled"]);
750
750
  }
751
- const bn = /* @__PURE__ */ J(_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 = K({
764
+ const Cn = z({
765
765
  name: "IconQuestionCircle",
766
766
  props: {
767
767
  size: {
@@ -788,7 +788,7 @@ const Cn = K({
788
788
  click: (t) => !0
789
789
  },
790
790
  setup(t, { emit: n }) {
791
- const a = tt("icon"), e = q(() => [a, `${a}-question-circle`, { [`${a}-spin`]: t.spin }]), o = q(() => {
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,31 +801,31 @@ const Cn = K({
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",
809
809
  stroke: "currentColor",
810
- class: Ye(t.cls),
811
- style: Qe(t.innerStyle),
810
+ class: Qe(t.cls),
811
+ style: Ye(t.innerStyle),
812
812
  "stroke-width": t.strokeWidth,
813
813
  "stroke-linecap": t.strokeLinecap,
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
- S("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
- S("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
- const at = Object.assign(De, {
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
- }), An = K({
828
+ }), Tn = z({
829
829
  name: "IconDownload",
830
830
  props: {
831
831
  size: {
@@ -852,7 +852,7 @@ const at = Object.assign(De, {
852
852
  click: (t) => !0
853
853
  },
854
854
  setup(t, { emit: n }) {
855
- const a = tt("icon"), e = q(() => [a, `${a}-download`, { [`${a}-spin`]: t.spin }]), o = q(() => {
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,30 +865,76 @@ const at = 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",
873
873
  stroke: "currentColor",
874
- class: Ye(t.cls),
875
- style: Qe(t.innerStyle),
874
+ class: Qe(t.cls),
875
+ style: Ye(t.innerStyle),
876
876
  "stroke-width": t.strokeWidth,
877
877
  "stroke-linecap": t.strokeLinecap,
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
- S("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
- var He = /* @__PURE__ */ ot(An, [["render", In]]);
885
- const Tn = Object.assign(He, {
884
+ var Be = /* @__PURE__ */ ot(Tn, [["render", In]]);
885
+ const Pn = Object.assign(Be, {
886
886
  install: (t, n) => {
887
- var a;
888
- const e = (a = n?.iconPrefix) != null ? a : "";
889
- t.component(e + He.name, He);
887
+ var r;
888
+ const e = (r = n?.iconPrefix) != null ? r : "";
889
+ t.component(e + Be.name, Be);
890
+ }
891
+ }), Nn = /* @__PURE__ */ z({
892
+ __name: "ToolTip",
893
+ props: {
894
+ isVisible: { type: Boolean },
895
+ outputText: {}
896
+ },
897
+ setup(t, { expose: n }) {
898
+ n();
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
+ return An;
901
+ } };
902
+ return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
890
903
  }
891
- }), Pn = /* @__PURE__ */ K({
904
+ }), Un = { class: "list-unstyled" }, Dn = { class: "list-style-square" };
905
+ function Bn(t, n, r, e, o, c) {
906
+ const s = C("a-tooltip");
907
+ return e.props.isVisible ? (d(), F(s, {
908
+ key: 0,
909
+ "background-color": "#7A00E6"
910
+ }, {
911
+ content: k(() => [
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
+ class: "list-unstyled"
915
+ }, [
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
+ key: i.title
921
+ }, [
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
+ ])
926
+ ]))), 128))
927
+ ])
928
+ ])
929
+ ]))), 128))
930
+ ]),
931
+ default: k(() => [
932
+ N(e.IconQuestionCircle, { class: "icon" })
933
+ ]),
934
+ _: 1
935
+ })) : oe("", !0);
936
+ }
937
+ const rt = /* @__PURE__ */ Y(Nn, [["render", Bn], ["__scopeId", "data-v-1d3893b1"], ["__file", "ToolTip.vue"]]), Fn = /* @__PURE__ */ z({
892
938
  __name: "index",
893
939
  props: /* @__PURE__ */ le({
894
940
  config: {},
@@ -903,8 +949,8 @@ const Tn = Object.assign(He, {
903
949
  modelModifiers: {}
904
950
  }),
905
951
  emits: /* @__PURE__ */ le(["update:modelValue", "change", "error"], ["update:modelValue"]),
906
- setup(t, { expose: n, emit: a }) {
907
- const e = t, o = a, l = we(t, "modelValue"), s = Fe("widgetRef"), c = q(() => {
952
+ setup(t, { expose: n, emit: r }) {
953
+ const e = t, o = r, c = we(t, "modelValue"), s = He("widgetRef"), l = E(() => {
908
954
  switch (e.config?.widget?.widget) {
909
955
  case "TextBox":
910
956
  return We;
@@ -925,23 +971,23 @@ const Tn = Object.assign(He, {
925
971
  default:
926
972
  return We;
927
973
  }
928
- }), i = m(""), r = (p) => {
929
- i.value = p;
930
- }, u = (p, f) => {
931
- o("change", p, f);
974
+ }), i = m(""), a = (f) => {
975
+ i.value = f;
976
+ }, u = (f, p) => {
977
+ o("change", f, p);
932
978
  };
933
979
  function g() {
934
980
  return e.config?.widget?.widget === "File";
935
981
  }
936
- function _(p) {
937
- return p === "OtherInformationText" ? "Other Information" : p === "Other Information" ? "" : p;
982
+ function _(f) {
983
+ return f === "OtherInformationText" ? "Other Information" : f === "Other Information" ? "" : f;
938
984
  }
939
985
  n({
940
986
  isFileUpload() {
941
987
  return e.config?.widget?.widget === "File";
942
988
  },
943
- submit(p) {
944
- return g() ? s.value.submit(p) : Promise.resolve(p);
989
+ submit(f) {
990
+ return g() ? s.value.submit(f) : Promise.resolve(f);
945
991
  },
946
992
  validate() {
947
993
  return s.value?.validate();
@@ -950,42 +996,31 @@ const Tn = Object.assign(He, {
950
996
  return e?.config?.widget?.title;
951
997
  }
952
998
  });
953
- const x = { props: e, emits: o, model: l, widgetRef: s, curComp: c, errMsg: i, errHandler: r, changeHandler: u, isFileUpload: g, formatTitle: _, get IconQuestionCircle() {
954
- return at;
955
- } };
956
- return Object.defineProperty(x, "__isScriptSetup", { enumerable: !1, value: !0 }), x;
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
+ return Object.defineProperty(S, "__isScriptSetup", { enumerable: !1, value: !0 }), S;
957
1001
  }
958
- }), Nn = { class: "title" }, Un = {
1002
+ }), Hn = { class: "title" }, Ln = {
959
1003
  key: 0,
960
1004
  class: "required"
961
- }, Dn = {
1005
+ }, Rn = {
962
1006
  key: 0,
963
1007
  class: "err-msg"
964
1008
  };
965
- function Hn(t, n, a, e, o, l) {
966
- const s = k("a-tooltip");
967
- return d(), h("div", null, [
968
- S("div", Nn, [
969
- oe(X(e.formatTitle(e.props?.config?.widget?.title)) + " ", 1),
970
- e.props.config.validations.length ? (d(), h("span", Un, "*")) : ne("", !0),
971
- e.props.config.widget.isVisible ? (d(), D(s, {
972
- key: 1,
973
- "background-color": "#7A00E6"
974
- }, {
975
- content: y(() => [
976
- (d(!0), h($, null, z(e.props.config.widget.outputText, (c) => (d(), h("div", null, X(c), 1))), 256))
977
- ]),
978
- default: y(() => [
979
- U(e.IconQuestionCircle, { class: "icon" })
980
- ]),
981
- _: 1
982
- })) : ne("", !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
+ N(e.ToolTip, {
1015
+ "is-visible": e.props.config.widget?.isVisible ?? !1,
1016
+ "output-text": e.props.config.widget?.outputText ?? []
1017
+ }, null, 8, ["is-visible", "output-text"])
983
1018
  ]),
984
- S("div", null, [
985
- (d(), D(Le(e.curComp), {
1019
+ h("div", null, [
1020
+ (d(), F(Le(e.curComp), {
986
1021
  ref: "widgetRef",
987
1022
  modelValue: e.model,
988
- "onUpdate:modelValue": n[0] || (n[0] = (c) => e.model = c),
1023
+ "onUpdate:modelValue": n[0] || (n[0] = (s) => e.model = s),
989
1024
  "field-key": e.props.fieldKey,
990
1025
  config: e.props.config.widget,
991
1026
  validations: e.props.config.validations,
@@ -994,11 +1029,11 @@ function Hn(t, n, a, e, o, l) {
994
1029
  onError: e.errHandler,
995
1030
  onChange: e.changeHandler
996
1031
  }, null, 40, ["modelValue", "field-key", "config", "validations", "triggers", "class-name"])),
997
- e.errMsg.length > 0 ? (d(), h("div", Dn, X(e.errMsg), 1)) : ne("", !0)
1032
+ e.errMsg.length > 0 ? (d(), v("div", Rn, q(e.errMsg), 1)) : oe("", !0)
998
1033
  ])
999
1034
  ]);
1000
1035
  }
1001
- const Oe = /* @__PURE__ */ J(Pn, [["render", Hn], ["__scopeId", "data-v-9e5e8c37"], ["__file", "index.vue"]]), Bn = /* @__PURE__ */ K({
1036
+ const je = /* @__PURE__ */ Y(Fn, [["render", On], ["__scopeId", "data-v-30216d05"], ["__file", "index.vue"]]), jn = /* @__PURE__ */ z({
1002
1037
  __name: "SubmitButton",
1003
1038
  props: {
1004
1039
  url: {},
@@ -1006,30 +1041,30 @@ const Oe = /* @__PURE__ */ J(Pn, [["render", Hn], ["__scopeId", "data-v-9e5e8c37
1006
1041
  loading: { type: Boolean }
1007
1042
  },
1008
1043
  emits: ["click"],
1009
- setup(t, { expose: n, emit: a }) {
1044
+ setup(t, { expose: n, emit: r }) {
1010
1045
  n();
1011
- const e = t, o = a;
1012
- function l() {
1046
+ const e = t, o = r;
1047
+ function c() {
1013
1048
  o("click", e.url, e.redirectType);
1014
1049
  }
1015
- const s = { props: e, emits: o, clickHandler: l };
1050
+ const s = { props: e, emits: o, clickHandler: c };
1016
1051
  return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
1017
1052
  }
1018
1053
  });
1019
- function Fn(t, n, a, e, o, l) {
1020
- const s = k("AButton");
1021
- return d(), D(s, {
1022
- loading: a.loading,
1054
+ function $n(t, n, r, e, o, c) {
1055
+ const s = C("AButton");
1056
+ return d(), F(s, {
1057
+ loading: r.loading,
1023
1058
  type: "primary",
1024
1059
  onClick: e.clickHandler
1025
1060
  }, {
1026
- default: y(() => [
1061
+ default: k(() => [
1027
1062
  de(t.$slots, "default")
1028
1063
  ]),
1029
1064
  _: 3
1030
1065
  }, 8, ["loading"]);
1031
1066
  }
1032
- const qe = /* @__PURE__ */ J(Bn, [["render", Fn], ["__file", "SubmitButton.vue"]]), Ln = /* @__PURE__ */ K({
1067
+ const qe = /* @__PURE__ */ Y(jn, [["render", $n], ["__file", "SubmitButton.vue"]]), Mn = /* @__PURE__ */ z({
1033
1068
  __name: "DetailLink",
1034
1069
  props: {
1035
1070
  url: {},
@@ -1037,67 +1072,67 @@ const qe = /* @__PURE__ */ J(Bn, [["render", Fn], ["__file", "SubmitButton.vue"]
1037
1072
  loading: { type: Boolean }
1038
1073
  },
1039
1074
  emits: ["click"],
1040
- setup(t, { expose: n, emit: a }) {
1075
+ setup(t, { expose: n, emit: r }) {
1041
1076
  n();
1042
- const e = t, o = a;
1043
- function l() {
1077
+ const e = t, o = r;
1078
+ function c() {
1044
1079
  o("click", e.url, e.redirectType);
1045
1080
  }
1046
- const s = { props: e, emits: o, clickHandler: l };
1081
+ const s = { props: e, emits: o, clickHandler: c };
1047
1082
  return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
1048
1083
  }
1049
1084
  });
1050
- function Rn(t, n, a, e, o, l) {
1051
- const s = k("ALink");
1052
- return d(), D(s, { onClick: e.clickHandler }, {
1053
- default: y(() => [
1085
+ function En(t, n, r, e, o, c) {
1086
+ const s = C("ALink");
1087
+ return d(), F(s, { onClick: e.clickHandler }, {
1088
+ default: k(() => [
1054
1089
  de(t.$slots, "default")
1055
1090
  ]),
1056
1091
  _: 3
1057
1092
  });
1058
1093
  }
1059
- const jn = /* @__PURE__ */ J(Ln, [["render", Rn], ["__file", "DetailLink.vue"]]), On = /* @__PURE__ */ K({
1094
+ const zn = /* @__PURE__ */ Y(Mn, [["render", En], ["__file", "DetailLink.vue"]]), Kn = /* @__PURE__ */ z({
1060
1095
  __name: "index",
1061
1096
  props: {
1062
1097
  config: {},
1063
1098
  loading: { type: Boolean }
1064
1099
  },
1065
1100
  emits: ["click"],
1066
- setup(t, { expose: n, emit: a }) {
1101
+ setup(t, { expose: n, emit: r }) {
1067
1102
  n();
1068
- const e = t, o = a;
1069
- function l(u, g) {
1103
+ const e = t, o = r;
1104
+ function c(u, g) {
1070
1105
  o("click", e.config.widget, u, g, e.config.title);
1071
1106
  }
1072
- const s = q(() => {
1107
+ const s = E(() => {
1073
1108
  switch (e.config.location) {
1074
1109
  case "InOperation":
1075
1110
  return qe;
1076
1111
  case "InTable":
1077
- return jn;
1112
+ return zn;
1078
1113
  default:
1079
1114
  return qe;
1080
1115
  }
1081
- }), c = q(() => e.config.widget === Y.Submit ? e.config.requestUrl ?? "" : e.config.widget === Y.Link ? e.config.redirectUrl ?? "" : ""), i = q(() => e.config.redirectType ?? "Details"), r = { props: e, emits: o, clickHandler: l, curComp: s, curUrl: c, redirectType: i };
1082
- 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;
1083
1118
  }
1084
1119
  });
1085
- function $n(t, n, a, e, o, l) {
1086
- return d(), D(Le(e.curComp), {
1120
+ function Wn(t, n, r, e, o, c) {
1121
+ return d(), F(Le(e.curComp), {
1087
1122
  url: e.curUrl,
1088
1123
  "redirect-type": e.redirectType,
1089
- loading: a.loading,
1124
+ loading: r.loading,
1090
1125
  onClick: e.clickHandler
1091
1126
  }, {
1092
- default: y(() => [
1093
- oe(X(e.props.config.title), 1)
1127
+ default: k(() => [
1128
+ ne(q(e.props.config.title), 1)
1094
1129
  ]),
1095
1130
  _: 1
1096
1131
  }, 8, ["url", "redirect-type", "loading"]);
1097
1132
  }
1098
- const xe = /* @__PURE__ */ J(On, [["render", $n], ["__file", "index.vue"]]), rt = Symbol("library-router");
1133
+ const xe = /* @__PURE__ */ Y(Kn, [["render", Wn], ["__file", "index.vue"]]), at = Symbol("library-router");
1099
1134
  function Ae() {
1100
- const t = me(rt, null);
1135
+ const t = me(at, null);
1101
1136
  return t || _t();
1102
1137
  }
1103
1138
  const st = Symbol("library-triggers");
@@ -1105,14 +1140,14 @@ function $e() {
1105
1140
  const t = me(st, null);
1106
1141
  return t || {};
1107
1142
  }
1108
- const Mn = Symbol("library-pinia"), it = Symbol("library-bpmStore"), lt = Symbol("library-svrStore");
1109
- function Ve() {
1143
+ const Gn = Symbol("library-pinia"), it = Symbol("library-bpmStore"), lt = Symbol("library-svrStore");
1144
+ function Te() {
1110
1145
  return me(it, null);
1111
1146
  }
1112
- function Ie() {
1147
+ function Ve() {
1113
1148
  return me(lt, null);
1114
1149
  }
1115
- const En = /* @__PURE__ */ K({
1150
+ const qn = /* @__PURE__ */ z({
1116
1151
  __name: "TopBar",
1117
1152
  props: {
1118
1153
  title: {},
@@ -1121,30 +1156,30 @@ const En = /* @__PURE__ */ K({
1121
1156
  },
1122
1157
  setup(t, { expose: n }) {
1123
1158
  n();
1124
- const a = {};
1125
- return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
1159
+ const r = {};
1160
+ return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
1126
1161
  }
1127
- }), zn = { class: "top-bar" }, Kn = { class: "banner-info" }, Wn = { class: "page-title" }, Gn = { class: "page-subtitle" }, qn = { class: "avatar-wrapper" }, Qn = { class: "user-email" };
1128
- function Yn(t, n, a, e, o, l) {
1129
- const s = k("a-avatar"), c = k("a-popover");
1130
- return d(), h("div", zn, [
1131
- S("div", Kn, [
1132
- S("div", Wn, X(a.title), 1),
1133
- S("div", Gn, X(a.subTitle), 1)
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, 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)
1134
1169
  ]),
1135
- S("div", qn, [
1136
- U(c, { trigger: "click" }, {
1137
- content: y(() => [
1138
- S("div", Qn, X(a.email), 1)
1170
+ h("div", Zn, [
1171
+ N(l, { trigger: "click" }, {
1172
+ content: k(() => [
1173
+ h("div", eo, q(r.email), 1)
1139
1174
  ]),
1140
- default: y(() => [
1141
- U(s, {
1175
+ default: k(() => [
1176
+ N(s, {
1142
1177
  size: 48,
1143
1178
  autoFixFontSize: "",
1144
1179
  style: { cursor: "pointer", background: "#165DFF", color: "#fff" }
1145
1180
  }, {
1146
- default: y(() => [
1147
- oe(X(a.email.charAt(0).toUpperCase()), 1)
1181
+ default: k(() => [
1182
+ ne(q(r.email.charAt(0).toUpperCase()), 1)
1148
1183
  ]),
1149
1184
  _: 1
1150
1185
  })
@@ -1154,16 +1189,16 @@ function Yn(t, n, a, e, o, l) {
1154
1189
  ])
1155
1190
  ]);
1156
1191
  }
1157
- const Te = /* @__PURE__ */ J(En, [["render", Yn], ["__scopeId", "data-v-c0457235"], ["__file", "TopBar.vue"]]);
1192
+ const Ie = /* @__PURE__ */ Y(qn, [["render", to], ["__scopeId", "data-v-c0457235"], ["__file", "TopBar.vue"]]);
1158
1193
  function Me(t) {
1159
- const n = Re(), a = [];
1194
+ const n = Re(), r = [];
1160
1195
  if (n.fieldsGroup) {
1161
- n.fieldsGroup.forEach((l) => {
1162
- const s = l.keys.map((c) => t.find((i) => i.fieldKey === c)).filter(Boolean);
1163
- 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 });
1164
1199
  });
1165
- const e = n.fieldsGroup.flatMap((l) => l.keys), o = t.filter((l) => !e.includes(l.fieldKey));
1166
- return o.length && a.push({ name: "Grading Review History (if applicable)", 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;
1167
1202
  }
1168
1203
  }
1169
1204
  class Pe {
@@ -1201,14 +1236,14 @@ class Se {
1201
1236
  getWorkflowId() {
1202
1237
  return this.opt?.workflowId ?? "";
1203
1238
  }
1204
- constructor(n, a, e, o) {
1205
- 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);
1206
1241
  }
1207
1242
  getPageData() {
1208
1243
  return this.opt ? Ke(this.pageActionType, this.className, this.store, this.opt) : Ke(this.pageActionType, this.className, this.store);
1209
1244
  }
1210
1245
  getBtnList() {
1211
- return Tt(this.pageActionType, this.className, { workflowId: this.getWorkflowId(), email: this.getApproverEmail() });
1246
+ return It(this.pageActionType, this.className, { workflowId: this.getWorkflowId(), email: this.getApproverEmail() });
1212
1247
  }
1213
1248
  getFiles() {
1214
1249
  return this.getWorkflowId() ? Mt(this.className, this.getWorkflowId()) : Promise.resolve({});
@@ -1217,7 +1252,7 @@ class Se {
1217
1252
  return Et(this.className, n);
1218
1253
  }
1219
1254
  getProcess() {
1220
- return Ot(this.className, this.getWorkflowId());
1255
+ return jt(this.className, this.getWorkflowId());
1221
1256
  }
1222
1257
  getCommentsHistory() {
1223
1258
  return Gt(this.getWorkflowId());
@@ -1235,10 +1270,10 @@ class Se {
1235
1270
  return Wt(this.getWorkflowId(), this.getApproverEmail(), n);
1236
1271
  }
1237
1272
  deleteAssociator(n) {
1238
- return Qt(n);
1273
+ return Yt(n);
1239
1274
  }
1240
1275
  }
1241
- const Jn = /* @__PURE__ */ K({
1276
+ const no = /* @__PURE__ */ z({
1242
1277
  __name: "CreateView",
1243
1278
  props: {
1244
1279
  className: {},
@@ -1246,7 +1281,7 @@ const Jn = /* @__PURE__ */ K({
1246
1281
  },
1247
1282
  setup(t, { expose: n }) {
1248
1283
  n();
1249
- const a = Ve(), e = Ie(), o = Ae(), l = $e(), s = Fe("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({
1250
1285
  pageType: "",
1251
1286
  fields: {},
1252
1287
  globalValidations: [],
@@ -1255,59 +1290,59 @@ const Jn = /* @__PURE__ */ K({
1255
1290
  subTitle: ""
1256
1291
  }
1257
1292
  }), u = m([]), g = m({});
1258
- function _(C) {
1259
- return C ? Object.entries(C).map(([V, H]) => ({
1260
- fieldKey: V,
1261
- ...H
1262
- })).filter((V) => V.widget && V.widget.widget !== "Hidden").filter((V) => !Z.value.includes(V.fieldKey)) : [];
1293
+ function _(w) {
1294
+ return w ? Object.entries(w).map(([A, D]) => ({
1295
+ fieldKey: A,
1296
+ ...D
1297
+ })).filter((A) => A.widget && A.widget.widget !== "Hidden").filter((A) => !Z.value.includes(A.fieldKey)) : [];
1263
1298
  }
1264
- function x(C) {
1265
- return C ? Object.entries(C).filter(([V, H]) => H.dependent).reduce((V, [H, O]) => (V[H] = O.dependent, V), {}) : [];
1299
+ function S(w) {
1300
+ return w ? Object.entries(w).filter(([A, D]) => D.dependent).reduce((A, [D, j]) => (A[D] = j.dependent, A), {}) : [];
1266
1301
  }
1267
- const p = q(() => r.value?.actions ? [...r.value.actions].reverse() : []), f = m({}), b = m(!1);
1302
+ const f = E(() => a.value?.actions ? [...a.value.actions].reverse() : []), p = m({}), T = m(!1);
1268
1303
  ue(async () => {
1269
- b.value = !0;
1270
- const C = new Pe().setWorkflowId(i.workflowId).setClassName(i.className).setStore({ svrStore: e, bpmStore: a }).build();
1271
- r.value = await C.getPageData(), u.value = _(r.value.fields), g.value = x(r.value.fields);
1272
- for (const I in r.value.fields) {
1273
- if (r.value.fields[I].widget?.widget === "File") {
1274
- const V = u.value.find((H) => H.fieldKey === I);
1275
- V && V.widget && (V.widget.files = []);
1304
+ T.value = !0;
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
+ const A = u.value.find((D) => D.fieldKey === V);
1310
+ A && A.widget && (A.widget.files = []);
1276
1311
  }
1277
- f.value[I] = r.value.fields[I].modelValue;
1312
+ p.value[V] = a.value.fields[V].modelValue;
1278
1313
  }
1279
- b.value = !1;
1314
+ T.value = !1;
1280
1315
  });
1281
- function j() {
1316
+ function X() {
1282
1317
  return e()?.userInfo?.email_address ?? "";
1283
1318
  }
1284
- async function ee(C, I, V, H, O) {
1285
- switch (I) {
1286
- case Y.Submit:
1319
+ async function ee(w, V, A, D, j) {
1320
+ switch (V) {
1321
+ case J.Submit:
1287
1322
  let L = !0;
1288
1323
  if (s.value?.forEach((Q) => {
1289
1324
  Q?.validate && (Q.validate() || (L = !1));
1290
1325
  }), !L) {
1291
- 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");
1292
1327
  return;
1293
1328
  }
1294
- b.value = !0;
1329
+ T.value = !0;
1295
1330
  try {
1296
- const Q = await Nt(i.className, { ...f.value, ...g.value }, V), se = s.value?.map((ie) => ie?.submit ? ie.submit(Q.toString()) : Promise.resolve()) || [];
1297
- await Promise.all(se), b.value = !1, c?.appContext.config.globalProperties.$notification.success(`Your grading request has been submitted, ID is ${Q.toString()}.`), o.push({ name: "Details", params: { workflowId: Q.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() } });
1298
1333
  } catch {
1299
- c?.appContext.config.globalProperties.$notification.error("Failed to submit your grading request"), b.value = !1;
1334
+ l?.appContext.config.globalProperties.$notification.error("Failed to submit your grading request"), T.value = !1;
1300
1335
  }
1301
1336
  break;
1302
- case Y.Link:
1337
+ case J.Link:
1303
1338
  try {
1304
- await l[C.eventName || ""]?.(f.value, Z), o.push({ name: H, params: { className: i.className } });
1339
+ await c[w.eventName || ""]?.(p.value, Z), o.push({ name: D, params: { className: i.className } });
1305
1340
  } catch (Q) {
1306
1341
  console.error("Error in link action trigger:", Q);
1307
1342
  }
1308
1343
  break;
1309
1344
  default:
1310
- console.warn("Unknown action type:", I);
1345
+ console.warn("Unknown action type:", V);
1311
1346
  }
1312
1347
  }
1313
1348
  const M = [
@@ -1318,48 +1353,48 @@ const Jn = /* @__PURE__ */ K({
1318
1353
  "jobAttachmentPrevious",
1319
1354
  "positionId"
1320
1355
  ], Z = m(M);
1321
- function ae(C, I) {
1322
- l[C]?.({ fieldValue: I, hiddenFields: Z, formData: f }), r.value && (u.value = _(r.value.fields));
1356
+ function re(w, V) {
1357
+ c[w]?.({ fieldValue: V, hiddenFields: Z, formData: p }), a.value && (u.value = _(a.value.fields));
1323
1358
  }
1324
- const A = q(() => Me(u.value)), w = { bpmStore: a, svrStore: e, router: o, triggers: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: u, _dependent: g, genField: _, genDependentField: x, reversedActions: p, _data: f, loading: b, getApproverEmail: j, clickHandler: ee, newHiddenFields: M, hiddenFields: Z, changeHandler: ae, groupedFields: A, DataWidgets: Oe, ActionButton: xe, TopBar: Te };
1325
- return Object.defineProperty(w, "__isScriptSetup", { enumerable: !1, value: !0 }), w;
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
+ return Object.defineProperty(y, "__isScriptSetup", { enumerable: !1, value: !0 }), y;
1326
1361
  }
1327
- }), Xn = { class: "page-container" }, Zn = { class: "page-body" }, eo = { class: "form-card" }, to = { class: "form-fields-vertical" }, no = { class: "form-fields" }, oo = {
1362
+ }), oo = { class: "page-container" }, ro = { class: "page-body" }, ao = { class: "form-card" }, so = { class: "form-fields-vertical" }, io = { class: "form-fields" }, lo = {
1328
1363
  key: 0,
1329
1364
  class: "form-content"
1330
- }, ao = { class: "page-footer" }, ro = { class: "action-container" }, so = { class: "action-buttons" };
1331
- function io(t, n, a, e, o, l) {
1332
- const s = k("a-card"), c = k("a-spin");
1333
- return d(), h("div", Xn, [
1334
- U(e.TopBar, {
1365
+ }, co = { class: "page-footer" }, uo = { class: "action-container" }, fo = { class: "action-buttons" };
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
+ N(e.TopBar, {
1335
1370
  title: e.pageData.banner.title,
1336
1371
  subTitle: e.pageData.banner.subTitle,
1337
1372
  email: e.getApproverEmail()
1338
1373
  }, null, 8, ["title", "subTitle", "email"]),
1339
- S("div", Zn, [
1340
- U(c, {
1374
+ h("div", ro, [
1375
+ N(l, {
1341
1376
  loading: e.loading,
1342
1377
  class: "form-container"
1343
1378
  }, {
1344
- default: y(() => [
1345
- S("div", eo, [
1346
- S("div", to, [
1347
- (d(!0), h($, null, z(e.groupedFields, (i) => (d(), D(s, {
1379
+ default: k(() => [
1380
+ h("div", ao, [
1381
+ h("div", so, [
1382
+ (d(!0), v(O, null, $(e.groupedFields, (i) => (d(), F(s, {
1348
1383
  key: i.name,
1349
1384
  title: i.name,
1350
1385
  style: { "margin-bottom": "24px" }
1351
1386
  }, {
1352
- default: y(() => [
1353
- S("div", no, [
1354
- (d(!0), h($, null, z(i.fields, (r) => (d(), D(e.DataWidgets, {
1355
- key: r.fieldKey,
1387
+ default: k(() => [
1388
+ h("div", io, [
1389
+ (d(!0), v(O, null, $(i.fields, (a) => (d(), F(e.DataWidgets, {
1390
+ key: a.fieldKey,
1356
1391
  ref_for: !0,
1357
1392
  ref: "dataWidgets",
1358
- "field-key": r.fieldKey,
1359
- config: r,
1360
- "class-name": a.className,
1361
- modelValue: e._data[r.fieldKey],
1362
- "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,
1363
1398
  class: "form-field",
1364
1399
  onChange: e.changeHandler
1365
1400
  }, null, 8, ["field-key", "config", "class-name", "modelValue", "onUpdate:modelValue"]))), 128))
@@ -1368,31 +1403,31 @@ function io(t, n, a, e, o, l) {
1368
1403
  _: 2
1369
1404
  }, 1032, ["title"]))), 128))
1370
1405
  ]),
1371
- t.$slots.content ? (d(), h("div", oo, [
1406
+ t.$slots.content ? (d(), v("div", lo, [
1372
1407
  de(t.$slots, "content", {}, void 0, !0)
1373
- ])) : ne("", !0)
1408
+ ])) : oe("", !0)
1374
1409
  ])
1375
1410
  ]),
1376
1411
  _: 3
1377
1412
  }, 8, ["loading"])
1378
1413
  ]),
1379
- S("div", ao, [
1380
- S("div", ro, [
1414
+ h("div", co, [
1415
+ h("div", uo, [
1381
1416
  de(t.$slots, "action", {}, void 0, !0),
1382
- S("div", so, [
1383
- (d(!0), h($, null, z(e.reversedActions, (i) => (d(), D(e.ActionButton, {
1417
+ h("div", fo, [
1418
+ (d(!0), v(O, null, $(e.reversedActions, (i) => (d(), F(e.ActionButton, {
1384
1419
  key: i.title,
1385
1420
  loading: e.loading,
1386
1421
  config: i,
1387
1422
  class: "action-button",
1388
- onClick: (...r) => e.clickHandler(i, ...r)
1423
+ onClick: (...a) => e.clickHandler(i, ...a)
1389
1424
  }, null, 8, ["loading", "config", "onClick"]))), 128))
1390
1425
  ])
1391
1426
  ])
1392
1427
  ])
1393
1428
  ]);
1394
1429
  }
1395
- const lo = /* @__PURE__ */ J(Jn, [["render", io], ["__scopeId", "data-v-2fce8732"], ["__file", "CreateView.vue"]]), co = /* @__PURE__ */ K({
1430
+ const mo = /* @__PURE__ */ Y(no, [["render", po], ["__scopeId", "data-v-2fce8732"], ["__file", "CreateView.vue"]]), go = /* @__PURE__ */ z({
1396
1431
  __name: "UpdateView",
1397
1432
  props: {
1398
1433
  className: {},
@@ -1400,7 +1435,7 @@ const lo = /* @__PURE__ */ J(Jn, [["render", io], ["__scopeId", "data-v-2fce8732
1400
1435
  },
1401
1436
  setup(t, { expose: n }) {
1402
1437
  n();
1403
- const a = Ae(), e = $e(), o = Ie(), l = Ve(), s = Fe("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({
1404
1439
  pageType: "",
1405
1440
  fields: {},
1406
1441
  globalValidations: [],
@@ -1409,110 +1444,110 @@ const lo = /* @__PURE__ */ J(Jn, [["render", io], ["__scopeId", "data-v-2fce8732
1409
1444
  subTitle: ""
1410
1445
  }
1411
1446
  }), u = m([]), g = m({});
1412
- function _(w) {
1413
- return w ? Object.entries(w).map(([I, V]) => ({
1414
- fieldKey: I,
1415
- ...V
1416
- })).filter((I) => I.widget && I.widget.widget !== "Hidden").filter((I) => !M.value.includes(I.fieldKey)) : [];
1447
+ function _(y) {
1448
+ return y ? Object.entries(y).map(([V, A]) => ({
1449
+ fieldKey: V,
1450
+ ...A
1451
+ })).filter((V) => V.widget && V.widget.widget !== "Hidden").filter((V) => !M.value.includes(V.fieldKey)) : [];
1417
1452
  }
1418
- function x(w) {
1419
- return w ? Object.entries(w).filter(([I, V]) => V.dependent).reduce((I, [V, H]) => (I[V] = H.dependent, I), {}) : [];
1453
+ function S(y) {
1454
+ return y ? Object.entries(y).filter(([V, A]) => A.dependent).reduce((V, [A, D]) => (V[A] = D.dependent, V), {}) : [];
1420
1455
  }
1421
- const p = q(() => r.value?.actions ? [...r.value.actions].reverse() : []), f = m({}), b = m(!1);
1456
+ const f = E(() => a.value?.actions ? [...a.value.actions].reverse() : []), p = m({}), T = m(!1);
1422
1457
  ue(async () => {
1423
- b.value = !0;
1424
- const w = new Pe().setPageActionType(fe.Update).setClassName(i.className).setStore({ svrStore: o, bpmStore: l }).setWorkflowId(i.workflowId).build();
1425
- r.value = await w.getPageData();
1426
- const C = await w.getBtnList(), I = await w.getFiles();
1427
- r.value.actions = r.value.actions?.filter((H) => {
1428
- const O = C.find((L) => L.button === H.title);
1429
- return O ? O.isShow : !0;
1458
+ T.value = !0;
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
+ const w = await y.getBtnList(), V = await y.getFiles();
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;
1430
1465
  });
1431
- const V = r.value.fields.requestType.modelValue;
1432
- e.Test?.({ fieldValue: V, hiddenFields: M, formData: f }), u.value = _(r.value.fields), g.value = x(r.value.fields);
1433
- for (const H in r.value.fields) {
1434
- if (r.value.fields[H].widget?.widget === "File") {
1435
- const O = u.value.find((L) => L.fieldKey === H);
1436
- O && O.widget && (O.widget.files = I[H] ?? [], O.widget.removeFile = (L) => w.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));
1437
1472
  }
1438
- f.value[H] = r.value.fields[H].modelValue;
1473
+ p.value[D] = a.value.fields[D].modelValue;
1439
1474
  }
1440
- b.value = !1;
1475
+ T.value = !1;
1441
1476
  });
1442
- function j() {
1477
+ function X() {
1443
1478
  return o()?.userInfo?.email_address ?? "";
1444
1479
  }
1445
- async function ee(w, C, I, V, H) {
1446
- switch (C) {
1447
- case Y.Submit:
1448
- let O = !0;
1480
+ async function ee(y, w, V, A, D) {
1481
+ switch (w) {
1482
+ case J.Submit:
1483
+ let j = !0;
1449
1484
  if (s.value?.forEach((L) => {
1450
- L?.validate && (L.validate() || (O = !1));
1451
- }), !O) {
1452
- 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");
1453
1488
  return;
1454
1489
  }
1455
- b.value = !0;
1490
+ T.value = !0;
1456
1491
  try {
1457
- const L = await Ut(i.className, i.workflowId, { ...f.value, ...g.value }, I), Q = s.value?.map((se) => se?.submit ? se.submit(L.toString()) : Promise.resolve()) || [];
1458
- await Promise.all(Q), b.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()}.`);
1459
1494
  } catch {
1460
- c?.appContext.config.globalProperties.$notification.error("Failed to submit your grading request"), b.value = !1;
1495
+ l?.appContext.config.globalProperties.$notification.error("Failed to submit your grading request"), T.value = !1;
1461
1496
  }
1462
1497
  break;
1463
- case Y.Link:
1498
+ case J.Link:
1464
1499
  try {
1465
- await e[w.eventName || ""]?.(f.value, M), a.push({ name: V, params: { className: i.className } });
1500
+ await e[y.eventName || ""]?.(p.value, M), r.push({ name: A, params: { className: i.className } });
1466
1501
  } catch {
1467
1502
  }
1468
1503
  break;
1469
1504
  default:
1470
- console.warn("Unknown action type:", C);
1505
+ console.warn("Unknown action type:", w);
1471
1506
  }
1472
1507
  }
1473
1508
  const M = m([]);
1474
- function Z(w, C) {
1475
- e[w]?.({ fieldValue: C, hiddenFields: M, formData: f }), r.value && (u.value = _(r.value.fields));
1509
+ function Z(y, w) {
1510
+ e[y]?.({ fieldValue: w, hiddenFields: M, formData: p }), a.value && (u.value = _(a.value.fields));
1476
1511
  }
1477
- const ae = q(() => Me(u.value)), A = { router: a, triggers: e, svrStore: o, bpmStore: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: u, _dependent: g, genField: _, genDependentField: x, reversedActions: p, _data: f, loading: b, getApproverEmail: j, clickHandler: ee, hiddenFields: M, changeHandler: Z, groupedFields: ae, DataWidgets: Oe, ActionButton: xe, TopBar: Te };
1478
- return Object.defineProperty(A, "__isScriptSetup", { enumerable: !1, value: !0 }), A;
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
+ return Object.defineProperty(x, "__isScriptSetup", { enumerable: !1, value: !0 }), x;
1479
1514
  }
1480
- }), uo = { class: "page-container" }, fo = { class: "page-body" }, po = { class: "form-card" }, mo = { class: "form-fields-vertical" }, go = { class: "form-fields" }, _o = {
1515
+ }), _o = { class: "page-container" }, vo = { class: "page-body" }, bo = { class: "form-card" }, ho = { class: "form-fields-vertical" }, yo = { class: "form-fields" }, wo = {
1481
1516
  key: 0,
1482
1517
  class: "form-content"
1483
- }, vo = { class: "page-footer" }, bo = { class: "action-container" }, ho = { class: "action-buttons" };
1484
- function yo(t, n, a, e, o, l) {
1485
- const s = k("a-card"), c = k("a-spin");
1486
- return d(), h("div", uo, [
1487
- U(e.TopBar, {
1518
+ }, ko = { class: "page-footer" }, Co = { class: "action-container" }, So = { class: "action-buttons" };
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
+ N(e.TopBar, {
1488
1523
  title: e.pageData.banner.title,
1489
1524
  subTitle: e.pageData.banner.subTitle,
1490
1525
  email: e.getApproverEmail()
1491
1526
  }, null, 8, ["title", "subTitle", "email"]),
1492
- S("div", fo, [
1493
- U(c, {
1527
+ h("div", vo, [
1528
+ N(l, {
1494
1529
  loading: e.loading,
1495
1530
  class: "form-container"
1496
1531
  }, {
1497
- default: y(() => [
1498
- S("div", po, [
1499
- S("div", mo, [
1500
- (d(!0), h($, null, z(e.groupedFields, (i) => (d(), D(s, {
1532
+ default: k(() => [
1533
+ h("div", bo, [
1534
+ h("div", ho, [
1535
+ (d(!0), v(O, null, $(e.groupedFields, (i) => (d(), F(s, {
1501
1536
  key: i.name,
1502
1537
  title: i.name,
1503
1538
  style: { "margin-bottom": "24px" }
1504
1539
  }, {
1505
- default: y(() => [
1506
- S("div", go, [
1507
- (d(!0), h($, null, z(i.fields, (r) => (d(), D(e.DataWidgets, {
1508
- key: r.fieldKey,
1540
+ default: k(() => [
1541
+ h("div", yo, [
1542
+ (d(!0), v(O, null, $(i.fields, (a) => (d(), F(e.DataWidgets, {
1543
+ key: a.fieldKey,
1509
1544
  ref_for: !0,
1510
1545
  ref: "dataWidgets",
1511
- "field-key": r.fieldKey,
1512
- config: r,
1513
- "class-name": a.className,
1514
- modelValue: e._data[r.fieldKey],
1515
- "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,
1516
1551
  class: "form-field",
1517
1552
  onChange: e.changeHandler
1518
1553
  }, null, 8, ["field-key", "config", "class-name", "modelValue", "onUpdate:modelValue"]))), 128))
@@ -1521,35 +1556,35 @@ function yo(t, n, a, e, o, l) {
1521
1556
  _: 2
1522
1557
  }, 1032, ["title"]))), 128))
1523
1558
  ]),
1524
- t.$slots.content ? (d(), h("div", _o, [
1559
+ t.$slots.content ? (d(), v("div", wo, [
1525
1560
  de(t.$slots, "content", {}, void 0, !0)
1526
- ])) : ne("", !0)
1561
+ ])) : oe("", !0)
1527
1562
  ])
1528
1563
  ]),
1529
1564
  _: 3
1530
1565
  }, 8, ["loading"])
1531
1566
  ]),
1532
- S("div", vo, [
1533
- S("div", bo, [
1567
+ h("div", ko, [
1568
+ h("div", Co, [
1534
1569
  de(t.$slots, "action", {}, void 0, !0),
1535
- S("div", ho, [
1536
- (d(!0), h($, null, z(e.reversedActions, (i) => (d(), D(e.ActionButton, {
1570
+ h("div", So, [
1571
+ (d(!0), v(O, null, $(e.reversedActions, (i) => (d(), F(e.ActionButton, {
1537
1572
  key: i.title,
1538
1573
  loading: e.loading,
1539
1574
  config: i,
1540
1575
  class: "action-button",
1541
- onClick: (...r) => e.clickHandler(i, ...r)
1576
+ onClick: (...a) => e.clickHandler(i, ...a)
1542
1577
  }, null, 8, ["loading", "config", "onClick"]))), 128))
1543
1578
  ])
1544
1579
  ])
1545
1580
  ])
1546
1581
  ]);
1547
1582
  }
1548
- const wo = /* @__PURE__ */ J(co, [["render", yo], ["__scopeId", "data-v-a0ee3911"], ["__file", "UpdateView.vue"]]), ct = Symbol("library-custom-comp");
1549
- function ko() {
1583
+ const Ao = /* @__PURE__ */ Y(go, [["render", xo], ["__scopeId", "data-v-a0ee3911"], ["__file", "UpdateView.vue"]]), ct = Symbol("library-custom-comp");
1584
+ function To() {
1550
1585
  return me(ct, null);
1551
1586
  }
1552
- const Co = /* @__PURE__ */ K({
1587
+ const Vo = /* @__PURE__ */ z({
1553
1588
  __name: "DetailView",
1554
1589
  props: {
1555
1590
  className: {},
@@ -1557,8 +1592,8 @@ const Co = /* @__PURE__ */ K({
1557
1592
  },
1558
1593
  setup(t, { expose: n }) {
1559
1594
  n();
1560
- const a = Ie(), e = Ve(), o = $e(), l = Ae(), s = ko(), c = pe(), i = t;
1561
- let r;
1595
+ const r = Ve(), e = Te(), o = $e(), c = Ae(), s = To(), l = pe(), i = t;
1596
+ let a;
1562
1597
  const u = m({
1563
1598
  pageType: "",
1564
1599
  fields: {},
@@ -1568,15 +1603,15 @@ const Co = /* @__PURE__ */ K({
1568
1603
  subTitle: ""
1569
1604
  }
1570
1605
  }), g = m([]);
1571
- function _(T) {
1572
- return T ? Object.entries(T).map(([E, P]) => (typeof P.modelValue == "boolean" ? P.fieldValue = P.modelValue ? "Yes" : "No" : P.fieldValue = P.modelValue, {
1573
- fieldKey: E,
1606
+ function _(I) {
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,
1574
1609
  ...P
1575
- })).filter((E) => E.widget && E.widget.widget !== "Hidden").filter((E) => !w.value.includes(E.fieldKey)) : [];
1610
+ })).filter((K) => K.widget && K.widget.widget !== "Hidden").filter((K) => !y.value.includes(K.fieldKey)) : [];
1576
1611
  }
1577
- const x = q(() => Me(g.value)), p = q(() => u.value?.actions ? [...u.value.actions].reverse() : []), f = m(!0), b = (T, F) => {
1578
- const E = T.findIndex((P) => P.isCurrent);
1579
- return T.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) => {
1580
1615
  const B = {
1581
1616
  id: P.id,
1582
1617
  title: "",
@@ -1588,7 +1623,7 @@ const Co = /* @__PURE__ */ K({
1588
1623
  };
1589
1624
  B.title = P.workflowProcessApprovers[0]?.name;
1590
1625
  const be = P.workflowProcessApprovers[P.workflowProcessApprovers.length - 1], ke = P.workflowHistorys[P.workflowHistorys.length - 1], he = ke?.workflowHistoryApprovers[ke?.workflowHistoryApprovers?.length - 1];
1591
- if (be && he && be?.email?.toLowerCase() !== he?.approverEmail?.toLowerCase() && (B.title = `${he.name}`, B.proxy = `Proxy: ${be.name}`), P.sort > 1 ? B.sub = "Approver Role: " + P.nodeName.replace("Submit", "").replace("Approve", "") : B.sub = "Submit Application", P.isCurrent && F !== -1)
1626
+ if (be && he && be?.email?.toLowerCase() !== he?.approverEmail?.toLowerCase() && (B.title = `${he.name}`, B.proxy = `Proxy: ${be.name}`), P.sort > 1 ? B.sub = "Approver Role: " + P.nodeName.replace("Submit", "").replace("Approve", "") : B.sub = "Submit Application", P.isCurrent && H !== -1)
1592
1627
  B.desc = "In Approval", B.status = 1;
1593
1628
  else {
1594
1629
  const te = P.workflowHistorys[P.workflowHistorys.length - 1];
@@ -1603,285 +1638,275 @@ const Co = /* @__PURE__ */ K({
1603
1638
  const Ee = te.workflowHistoryApprovers[0];
1604
1639
  B.status = 3, B.desc = Ee?.reason ? `Rejected reason: ${Ee.reason}` : "Rejected";
1605
1640
  }
1606
- else re < E || E === -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");
1607
1642
  te && te.status;
1608
1643
  }
1609
1644
  return B;
1610
1645
  });
1611
- }, j = m([]), ee = m(!1), M = m(!1), Z = m(!1), ae = m(!1);
1612
- async function A() {
1613
- const T = await r.getBtnList();
1614
- u.value.actions = u.value.actions?.filter((F) => {
1615
- const E = T.find((P) => P.button === F.title);
1616
- return E ? E.isShow : !0;
1617
- }), ee.value = T.find((F) => F.button === "IsGlobal")?.isShow ?? !1, M.value = T.find((F) => F.button === "AssignButton")?.isShow ?? !1, Z.value = T.find((F) => F.button === "AssignList")?.isShow ?? !1, ae.value = T.find((F) => F.button === "AddCommentsButton")?.isShow ?? !1;
1646
+ }, X = m([]), ee = m(!1), M = m(!1), Z = m(!1), re = m(!1);
1647
+ async function x() {
1648
+ const I = await a.getBtnList();
1649
+ u.value.actions = u.value.actions?.filter((H) => {
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;
1618
1653
  }
1619
- const w = m([]);
1620
- async function C() {
1621
- f.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();
1622
- const T = await r.getFiles();
1623
- se.value = await r.getApprovers(), L.value = await r.getCommentsHistory(), ie.value = await r.getAssociator(), A();
1624
- const F = u.value.fields.requestType.modelValue;
1625
- o.Test?.({ fieldValue: F, hiddenFields: w }), g.value = _(u.value.fields);
1654
+ const y = m([]);
1655
+ async function w() {
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
+ const H = u.value.fields.requestType.modelValue;
1660
+ o.Test?.({ fieldValue: H, hiddenFields: y }), g.value = _(u.value.fields);
1626
1661
  for (const P in u.value.fields)
1627
1662
  if (u.value.fields[P].widget?.widget === "File") {
1628
- const re = g.value.find((B) => B.fieldKey === P);
1629
- re && re.widget && (re.widget.files = T[P] ?? []);
1663
+ const ae = g.value.find((B) => B.fieldKey === P);
1664
+ ae && ae.widget && (ae.widget.files = I[P] ?? []);
1630
1665
  }
1631
- const E = await r.getProcess();
1632
- j.value = b(E, 0), f.value = !1;
1666
+ const K = await a.getProcess();
1667
+ X.value = T(K, 0), p.value = !1;
1633
1668
  }
1634
- ue(C);
1635
- async function I(T, F) {
1636
- return o[T]?.(F);
1669
+ ue(w);
1670
+ async function V(I, H) {
1671
+ return o[I]?.(H);
1637
1672
  }
1638
- function V() {
1639
- return a()?.userInfo?.email_address ?? "";
1673
+ function A() {
1674
+ return r()?.userInfo?.email_address ?? "";
1640
1675
  }
1641
- async function H(T, F, E, P, re) {
1676
+ async function D(I, H, K, P, ae) {
1642
1677
  try {
1643
- switch (F) {
1644
- case Y.Submit:
1645
- const { reason: B, ifGlobal: be } = await I(re, { isGlobal: ee.value });
1646
- f.value = !0;
1647
- const ke = re === "Approve" ? "100" : "-1";
1648
- await Rt(i.className, i.workflowId, V(), B, [Number(i.workflowId)], E, ke, be), f.value = !1;
1649
- const he = re === "Approve" ? `Request ID ${i.workflowId} has been approved.` : `Request ID ${i.workflowId} has been rejected.`;
1650
- c?.appContext.config.globalProperties.$notification.success(he), C();
1678
+ switch (H) {
1679
+ case J.Submit:
1680
+ const { reason: B, ifGlobal: be } = await V(ae, { isGlobal: ee.value });
1681
+ p.value = !0;
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();
1651
1686
  break;
1652
- case Y.Link:
1687
+ case J.Link:
1653
1688
  try {
1654
- await o[T.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 } });
1655
1690
  } catch (te) {
1656
1691
  console.error("Error in link action trigger:", te);
1657
1692
  }
1658
1693
  break;
1659
- case Y.Button:
1660
- await o[T.eventName || ""]?.({
1694
+ case J.Button:
1695
+ await o[I.eventName || ""]?.({
1661
1696
  approvers: se,
1662
1697
  associators: ie,
1663
1698
  isShowAssignSelect: M,
1664
1699
  isShowAssignList: Z,
1665
1700
  assignCallback: _e,
1666
- deleteAssociatorCallback: N
1701
+ deleteAssociatorCallback: U
1667
1702
  });
1668
1703
  break;
1669
1704
  default:
1670
- console.warn("Unknown action type:", F);
1705
+ console.warn("Unknown action type:", H);
1671
1706
  }
1672
1707
  } catch {
1673
1708
  }
1674
1709
  }
1675
- const O = m(""), L = m([]), Q = m(""), se = m([]), ie = m([]);
1676
- async function _e(T) {
1677
- if (!T) {
1678
- c?.appContext.config.globalProperties.$message.error("Please select an approver");
1710
+ const j = m(""), L = m([]), Q = m(""), se = m([]), ie = m([]);
1711
+ async function _e(I) {
1712
+ if (!I) {
1713
+ l?.appContext.config.globalProperties.$message.error("Please select an approver");
1679
1714
  return;
1680
1715
  }
1681
- 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?");
1682
1717
  try {
1683
- await r.assignApprover(T), ie.value = await r.getAssociator(), A(), c?.appContext.config.globalProperties.$notification.success("Assign Approver clicked!");
1684
- } catch (F) {
1685
- if (F.status === 409) {
1686
- c?.appContext.config.globalProperties.$notification.error("This user is already an associator");
1718
+ await a.assignApprover(I), ie.value = await a.getAssociator(), x(), l?.appContext.config.globalProperties.$notification.success("Assign Approver clicked!");
1719
+ } catch (H) {
1720
+ if (H.status === 409) {
1721
+ l?.appContext.config.globalProperties.$notification.error("This user is already an associator");
1687
1722
  return;
1688
1723
  }
1689
- c?.appContext.config.globalProperties.$notification.error("Failed to assign approver");
1724
+ l?.appContext.config.globalProperties.$notification.error("Failed to assign approver");
1690
1725
  }
1691
1726
  }
1692
- async function v(T, F) {
1693
- const { Modal: E } = await import("@arco-design/web-vue");
1694
- return new Promise((P, re) => {
1695
- E.confirm({
1696
- title: T,
1697
- content: F,
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
+ title: I,
1732
+ content: H,
1698
1733
  okText: "OK",
1699
1734
  cancelText: "Cancel",
1700
1735
  onOk: () => P(!0),
1701
- onCancel: () => re()
1736
+ onCancel: () => ae()
1702
1737
  });
1703
1738
  });
1704
1739
  }
1705
- async function N(T) {
1740
+ async function U(I) {
1706
1741
  try {
1707
- 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?");
1708
1743
  } catch {
1709
1744
  return;
1710
1745
  }
1711
1746
  try {
1712
- await r.deleteAssociator(T.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!");
1713
1748
  } catch {
1714
- c?.appContext.config.globalProperties.$notification.error("Failed to delete associator");
1749
+ l?.appContext.config.globalProperties.$notification.error("Failed to delete associator");
1715
1750
  }
1716
1751
  }
1717
1752
  async function R() {
1718
- if (!O.value.trim()) {
1719
- 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");
1720
1755
  return;
1721
1756
  }
1722
- await r.addComments(O.value.trim()), O.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!");
1723
1758
  }
1724
- function ce(T) {
1725
- return T ? T === "OtherInformationText" ? "Other Information" : T === "Other Information" ? "" : T : "";
1759
+ function ce(I) {
1760
+ return I ? I === "OtherInformationText" ? "Other Information" : I === "Other Information" ? "" : I : "";
1726
1761
  }
1727
- const ve = { svrStore: a, bpmStore: e, triggers: o, router: l, customComps: s, instance: c, props: i, get page() {
1728
- return r;
1729
- }, set page(T) {
1730
- r = T;
1731
- }, pageData: u, _fields: g, genField: _, groupedFields: x, reversedActions: p, loading: f, mapWorkflowSteps: b, steps: j, isGlobal: ee, isShowAssignSelect: M, isShowAssignList: Z, isShowCommentTextArea: ae, reloadButtonList: A, hiddenFields: w, load: C, triggerFn: I, getApproverEmail: V, clickHandler: H, comment: O, commentsHistory: L, selectedApprover: Q, approvers: se, associators: ie, onAssignApprover: _e, confirmDialog: v, onDeleteAssociator: N, onAddComment: R, formatTitle: ce, ActionButton: xe, get IconDownload() {
1732
- return Tn;
1733
- }, TopBar: Te, get formatDate() {
1762
+ const ve = { svrStore: r, bpmStore: e, triggers: o, router: c, customComps: s, instance: l, props: i, get page() {
1763
+ return a;
1764
+ }, set page(I) {
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
+ return Pn;
1768
+ }, TopBar: Ie, get formatDate() {
1734
1769
  return Ce;
1735
- }, get IconQuestionCircle() {
1736
- return at;
1737
- } };
1770
+ }, ToolTip: rt };
1738
1771
  return Object.defineProperty(ve, "__isScriptSetup", { enumerable: !1, value: !0 }), ve;
1739
1772
  }
1740
- }), So = { class: "page-container" }, xo = { class: "page-body" }, Ao = { class: "detail-card" }, Vo = { class: "form-fields-vertical" }, Io = { class: "detail-fields" }, To = { class: "detail-field" }, Po = { class: "field-label" }, No = {
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 = {
1741
1774
  key: 1,
1742
1775
  class: "field-value"
1743
- }, Uo = {
1776
+ }, Lo = {
1744
1777
  key: 2,
1745
1778
  class: "detail-field-wrapper"
1746
- }, Do = { class: "detail-field" }, Ho = {
1779
+ }, Ro = { class: "detail-field" }, Oo = {
1747
1780
  key: 0,
1748
1781
  class: "detail-content"
1749
- }, Bo = { class: "page-footer" }, Fo = { class: "action-container" }, Lo = { class: "action-buttons" };
1750
- function Ro(t, n, a, e, o, l) {
1751
- const s = k("a-tooltip"), c = k("a-link"), i = k("a-space"), r = k("a-card");
1752
- k("a-option"), k("a-select");
1753
- const u = k("a-button"), g = k("a-list-item"), _ = k("a-list"), x = k("a-textarea"), p = k("a-spin");
1754
- return d(), h("div", So, [
1755
- U(e.TopBar, {
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
+ C("a-option"), C("a-select");
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
+ N(e.TopBar, {
1756
1789
  title: e.pageData.banner.title,
1757
1790
  subTitle: e.pageData.banner.subTitle,
1758
1791
  email: e.getApproverEmail()
1759
1792
  }, null, 8, ["title", "subTitle", "email"]),
1760
- S("div", xo, [
1761
- U(p, {
1793
+ h("div", Po, [
1794
+ N(S, {
1762
1795
  loading: e.loading,
1763
1796
  class: "detail-container"
1764
1797
  }, {
1765
- default: y(() => [
1766
- S("div", Ao, [
1767
- (d(), D(Le(e.customComps.Steps), { steps: e.steps }, null, 8, ["steps"])),
1768
- S("div", Vo, [
1769
- (d(!0), h($, null, z(e.groupedFields, (f) => (d(), D(r, {
1798
+ default: k(() => [
1799
+ h("div", No, [
1800
+ (d(), F(Le(e.customComps.Steps), { steps: e.steps }, null, 8, ["steps"])),
1801
+ h("div", Uo, [
1802
+ (d(!0), v(O, null, $(e.groupedFields, (f) => (d(), F(i, {
1770
1803
  key: f.name,
1771
1804
  title: f.name,
1772
1805
  style: { "margin-bottom": "24px" }
1773
1806
  }, {
1774
- default: y(() => [
1775
- S("div", Io, [
1776
- (d(!0), h($, null, z(f.fields, (b) => (d(), h("div", {
1777
- key: b.fieldKey,
1807
+ default: k(() => [
1808
+ h("div", Do, [
1809
+ (d(!0), v(O, null, $(f.fields, (p) => (d(), v("div", {
1810
+ key: p.fieldKey,
1778
1811
  class: "detail-field-wrapper"
1779
1812
  }, [
1780
- S("div", To, [
1781
- S("div", Po, [
1782
- oe(X(e.formatTitle(b.widget?.title)) + " ", 1),
1783
- b.widget?.isVisible ? (d(), D(s, {
1784
- key: 0,
1785
- "background-color": "#7A00E6"
1786
- }, {
1787
- content: y(() => [
1788
- (d(!0), h($, null, z(b.widget?.outputText, (j) => (d(), h("div", { key: j }, X(j), 1))), 128))
1789
- ]),
1790
- default: y(() => [
1791
- U(e.IconQuestionCircle, { class: "icon" })
1792
- ]),
1793
- _: 2
1794
- }, 1024)) : ne("", !0)
1813
+ h("div", Bo, [
1814
+ h("div", Fo, [
1815
+ ne(q(e.formatTitle(p.widget?.title)) + " ", 1),
1816
+ N(e.ToolTip, {
1817
+ "is-visible": p.widget?.isVisible ?? !1,
1818
+ "output-text": p.widget?.outputText ?? []
1819
+ }, null, 8, ["is-visible", "output-text"])
1795
1820
  ]),
1796
- b.widget?.widget === "File" ? (d(!0), h($, { key: 0 }, z(b.widget.files, (j) => (d(), h("div", {
1821
+ p.widget?.widget === "File" ? (d(!0), v(O, { key: 0 }, $(p.widget.files, (T) => (d(), v("div", {
1797
1822
  class: "field-value",
1798
- key: j.id
1823
+ key: T.id
1799
1824
  }, [
1800
- U(i, null, {
1801
- default: y(() => [
1802
- oe(X(j.name) + " ", 1),
1803
- U(c, {
1804
- href: j.url,
1825
+ N(l, null, {
1826
+ default: k(() => [
1827
+ ne(q(T.name) + " ", 1),
1828
+ N(s, {
1829
+ href: T.url,
1805
1830
  target: "_blank"
1806
1831
  }, {
1807
- default: y(() => [
1808
- U(e.IconDownload, { style: { color: "#7A00E6" } })
1832
+ default: k(() => [
1833
+ N(e.IconDownload, { style: { color: "#7A00E6" } })
1809
1834
  ]),
1810
1835
  _: 2
1811
1836
  }, 1032, ["href"])
1812
1837
  ]),
1813
1838
  _: 2
1814
1839
  }, 1024)
1815
- ]))), 128)) : (d(), h("div", No, X(b.fieldValue), 1))
1840
+ ]))), 128)) : (d(), v("div", Ho, q(p.fieldValue), 1))
1816
1841
  ])
1817
1842
  ]))), 128))
1818
1843
  ])
1819
1844
  ]),
1820
1845
  _: 2
1821
1846
  }, 1032, ["title"]))), 128)),
1822
- ne("", !0),
1823
- ne("", !0),
1824
- e.isShowCommentTextArea ? (d(), h("div", Uo, [
1825
- S("div", Do, [
1826
- n[6] || (n[6] = S("div", { class: "field-label" }, "Comment", -1)),
1827
- U(x, {
1847
+ oe("", !0),
1848
+ oe("", !0),
1849
+ e.isShowCommentTextArea ? (d(), v("div", Lo, [
1850
+ h("div", Ro, [
1851
+ n[6] || (n[6] = h("div", { class: "field-label" }, "Comment", -1)),
1852
+ N(_, {
1828
1853
  modelValue: e.comment,
1829
1854
  "onUpdate:modelValue": n[1] || (n[1] = (f) => e.comment = f)
1830
1855
  }, null, 8, ["modelValue"]),
1831
- U(u, {
1856
+ N(a, {
1832
1857
  type: "primary",
1833
1858
  onClick: e.onAddComment
1834
1859
  }, {
1835
- default: y(() => n[5] || (n[5] = [
1836
- oe("Add Comment", -1)
1860
+ default: k(() => n[5] || (n[5] = [
1861
+ ne("Add Comment", -1)
1837
1862
  ])),
1838
1863
  _: 1,
1839
1864
  __: [5]
1840
1865
  })
1841
1866
  ])
1842
- ])) : ne("", !0),
1843
- e.commentsHistory.length ? (d(), D(_, { key: 3 }, {
1844
- header: y(() => n[7] || (n[7] = [
1845
- oe(" Comments History ", -1)
1867
+ ])) : oe("", !0),
1868
+ e.commentsHistory.length ? (d(), F(g, { key: 3 }, {
1869
+ header: k(() => n[7] || (n[7] = [
1870
+ ne(" Comments History ", -1)
1846
1871
  ])),
1847
- default: y(() => [
1848
- (d(!0), h($, null, z(e.commentsHistory, (f) => (d(), D(g, {
1872
+ default: k(() => [
1873
+ (d(!0), v(O, null, $(e.commentsHistory, (f) => (d(), F(u, {
1849
1874
  key: f.associator
1850
1875
  }, {
1851
- default: y(() => [
1852
- oe(X(f.associator) + ": " + X(f.comments) + " (" + X(e.formatDate(f.createdAt)) + ") ", 1)
1876
+ default: k(() => [
1877
+ ne(q(f.associator) + ": " + q(f.comments) + " (" + q(e.formatDate(f.createdAt)) + ") ", 1)
1853
1878
  ]),
1854
1879
  _: 2
1855
1880
  }, 1024))), 128))
1856
1881
  ]),
1857
1882
  _: 1
1858
- })) : ne("", !0)
1883
+ })) : oe("", !0)
1859
1884
  ]),
1860
- t.$slots.content ? (d(), h("div", Ho, [
1885
+ t.$slots.content ? (d(), v("div", Oo, [
1861
1886
  de(t.$slots, "content", {}, void 0, !0)
1862
- ])) : ne("", !0)
1887
+ ])) : oe("", !0)
1863
1888
  ])
1864
1889
  ]),
1865
1890
  _: 3
1866
1891
  }, 8, ["loading"])
1867
1892
  ]),
1868
- S("div", Bo, [
1869
- S("div", Fo, [
1893
+ h("div", jo, [
1894
+ h("div", $o, [
1870
1895
  de(t.$slots, "action", {}, void 0, !0),
1871
- S("div", Lo, [
1872
- (d(!0), h($, null, z(e.reversedActions, (f) => (d(), D(e.ActionButton, {
1896
+ h("div", Mo, [
1897
+ (d(!0), v(O, null, $(e.reversedActions, (f) => (d(), F(e.ActionButton, {
1873
1898
  key: f.title,
1874
1899
  loading: e.loading,
1875
1900
  config: f,
1876
1901
  class: "action-button",
1877
- onClick: (...b) => e.clickHandler(f, ...b)
1902
+ onClick: (...p) => e.clickHandler(f, ...p)
1878
1903
  }, null, 8, ["loading", "config", "onClick"]))), 128))
1879
1904
  ])
1880
1905
  ])
1881
1906
  ])
1882
1907
  ]);
1883
1908
  }
1884
- const jo = /* @__PURE__ */ J(Co, [["render", Ro], ["__scopeId", "data-v-f3f30431"], ["__file", "DetailView.vue"]]), Oo = /* @__PURE__ */ K({
1909
+ const zo = /* @__PURE__ */ Y(Vo, [["render", Eo], ["__scopeId", "data-v-c382c4fa"], ["__file", "DetailView.vue"]]), Ko = /* @__PURE__ */ z({
1885
1910
  name: "ListView",
1886
1911
  __name: "ListView",
1887
1912
  props: {
@@ -1889,7 +1914,7 @@ const jo = /* @__PURE__ */ J(Co, [["render", Ro], ["__scopeId", "data-v-f3f30431
1889
1914
  },
1890
1915
  setup(t, { expose: n }) {
1891
1916
  n();
1892
- const a = Ie(), e = Ve(), 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({
1893
1918
  current: 1,
1894
1919
  total: 0,
1895
1920
  pageSize: 10,
@@ -1898,9 +1923,9 @@ const jo = /* @__PURE__ */ J(Co, [["render", Ro], ["__scopeId", "data-v-f3f30431
1898
1923
  showPageSize: !0,
1899
1924
  filters: []
1900
1925
  });
1901
- function r() {
1902
- const v = Object.entries(V.value).filter(([, { value: N }]) => N && N !== "").map(([N, { value: R, operator: ce }]) => ({
1903
- key: N,
1926
+ function a() {
1927
+ const b = Object.entries(A.value).filter(([, { value: U }]) => U && U !== "").map(([U, { value: R, operator: ce }]) => ({
1928
+ key: U,
1904
1929
  value: R,
1905
1930
  operator: ce
1906
1931
  // 根据实际需要调整操作符
@@ -1908,19 +1933,19 @@ const jo = /* @__PURE__ */ J(Co, [["render", Ro], ["__scopeId", "data-v-f3f30431
1908
1933
  return {
1909
1934
  pageNumber: i.current,
1910
1935
  pageSize: i.pageSize,
1911
- filters: [...i.filters, ...v],
1936
+ filters: [...i.filters, ...b],
1912
1937
  sorts: [{
1913
1938
  key: "workflowId",
1914
1939
  type: 1
1915
1940
  }]
1916
1941
  };
1917
1942
  }
1918
- const u = q(() => ({
1919
- x: x.value.length * 150 + 250
1943
+ const u = E(() => ({
1944
+ x: S.value.length * 150 + 250
1920
1945
  // 只设置横向滚动
1921
1946
  // 移除 y 属性,让表格高度自适应
1922
- })), g = (v) => {
1923
- const N = 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) => ({
1924
1949
  title: ce.widget.title,
1925
1950
  dataIndex: R.charAt(0).toLowerCase() + R.slice(1),
1926
1951
  order: ce.order,
@@ -1932,7 +1957,7 @@ const jo = /* @__PURE__ */ J(Co, [["render", Ro], ["__scopeId", "data-v-f3f30431
1932
1957
  resizable: !0
1933
1958
  // 启用列宽调整
1934
1959
  })).sort((R, ce) => R.order - ce.order);
1935
- N.push({
1960
+ U.push({
1936
1961
  title: "Actions",
1937
1962
  slotName: "optional",
1938
1963
  align: "center",
@@ -1940,149 +1965,149 @@ const jo = /* @__PURE__ */ J(Co, [["render", Ro], ["__scopeId", "data-v-f3f30431
1940
1965
  minWidth: 200,
1941
1966
  fixed: "right",
1942
1967
  resizable: !1
1943
- }), x.value = N;
1944
- }, _ = m([]), x = m([]), p = m(!0), f = m(!0), b = m(), j = async () => {
1945
- f.value = !0;
1946
- const v = await Pt(s.className, r());
1947
- _.value = v.data, i.total = v.totalCount, f.value = !1;
1968
+ }), S.value = U;
1969
+ }, _ = m([]), S = m([]), f = m(!0), p = m(!0), T = m(), X = async () => {
1970
+ p.value = !0;
1971
+ const b = await Pt(s.className, a());
1972
+ _.value = b.data, i.total = b.totalCount, p.value = !1;
1948
1973
  }, ee = m(!1);
1949
1974
  ue(async () => {
1950
- p.value = !0;
1951
- const v = new Pe().setPageActionType(fe.List).setClassName(s.className).setStore({ svrStore: a, bpmStore: e }).build();
1952
- c.value = await v.getPageData(), g(c.value.fields), O(c.value.fields), L(), I(c.value?.tabs?.[0]?.key || ""), b.value = c.value.actions, p.value = !1, ee.value = !0;
1975
+ f.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;
1953
1978
  }), ft(() => {
1954
- ee.value && j();
1979
+ ee.value && X();
1955
1980
  });
1956
- const M = (v) => {
1957
- i.current = v, j();
1958
- }, Z = (v) => {
1959
- i.pageSize = v, j();
1981
+ const M = (b) => {
1982
+ i.current = b, X();
1983
+ }, Z = (b) => {
1984
+ i.pageSize = b, X();
1960
1985
  };
1961
- function ae(v, N, R, ce, ve) {
1962
- switch (v) {
1963
- case Y.Link:
1986
+ function re(b, U, R, ce, ve) {
1987
+ switch (b) {
1988
+ case J.Link:
1964
1989
  o.push({ name: R, params: { workflowId: ve } });
1965
1990
  break;
1966
1991
  default:
1967
- console.warn("Unknown action type:", v);
1992
+ console.warn("Unknown action type:", b);
1968
1993
  }
1969
1994
  }
1970
- function A(v, N, R) {
1971
- switch (v) {
1972
- case Y.Submit:
1973
- Yt(N, { filters: [{ key: "approverList", value: w(), operator: 2 }] }), l?.appContext.config.globalProperties.$notification.success("submit success!");
1995
+ function x(b, U, R) {
1996
+ switch (b) {
1997
+ case J.Submit:
1998
+ Qt(U, { filters: [{ key: "approverList", value: y(), operator: 2 }] }), c?.appContext.config.globalProperties.$notification.success("submit success!");
1974
1999
  break;
1975
- case Y.Link:
2000
+ case J.Link:
1976
2001
  o.push({ name: R });
1977
2002
  break;
1978
2003
  default:
1979
- console.warn("Unknown action type:", v);
2004
+ console.warn("Unknown action type:", b);
1980
2005
  }
1981
2006
  }
1982
- function w() {
1983
- return a()?.userInfo?.email_address ?? "";
2007
+ function y() {
2008
+ return r()?.userInfo?.email_address ?? "";
1984
2009
  }
1985
- function C(v, N) {
1986
- return typeof v != "string" || v.indexOf("{currentUserEmail}") === -1 ? v : v.replace(/{currentUserEmail}/g, N);
2010
+ function w(b, U) {
2011
+ return typeof b != "string" || b.indexOf("{currentUserEmail}") === -1 ? b : b.replace(/{currentUserEmail}/g, U);
1987
2012
  }
1988
- function I(v) {
1989
- const N = c.value?.tabs?.find((R) => R.key === v)?.filters;
1990
- i.filters = N?.map((R) => ({
2013
+ function V(b) {
2014
+ const U = l.value?.tabs?.find((R) => R.key === b)?.filters;
2015
+ i.filters = U?.map((R) => ({
1991
2016
  ...R,
1992
- value: C(R.value, w())
1993
- })) || [], i.current = 1, j();
2017
+ value: w(R.value, y())
2018
+ })) || [], i.current = 1, X();
1994
2019
  }
1995
- const V = m({}), H = m([]);
1996
- function O(v) {
1997
- if (!v) return [];
1998
- H.value = Object.entries(v).filter(([, N]) => N.isFiltered).map(([N, R]) => ({ fieldKey: N, fieldConfig: R }));
2020
+ const A = m({}), D = m([]);
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 }));
1999
2024
  }
2000
2025
  const L = () => {
2001
- const v = {};
2002
- H.value.forEach(({ fieldKey: N, fieldConfig: R }) => {
2003
- v[N] = {}, v[N].value = R.modelValue, v[N].operator = R.operator;
2004
- }), V.value = v;
2026
+ const b = {};
2027
+ D.value.forEach(({ fieldKey: U, fieldConfig: R }) => {
2028
+ b[U] = {}, b[U].value = R.modelValue, b[U].operator = R.operator;
2029
+ }), A.value = b;
2005
2030
  }, Q = () => {
2006
- i.current = 1, j();
2031
+ i.current = 1, X();
2007
2032
  }, se = () => {
2008
- c.value && L(), Q();
2033
+ l.value && L(), Q();
2009
2034
  };
2010
- function ie(v, N) {
2011
- return !(v.location !== "InTable" || v.title === "Update" && (N.status === 100 || N.status === -1));
2035
+ function ie(b, U) {
2036
+ return !(b.location !== "InTable" || b.title === "Update" && (U.status === 100 || U.status === -1));
2012
2037
  }
2013
- const _e = { svrStore: a, bpmStore: e, router: o, instance: l, props: s, pageData: c, paging: i, createListParams: r, scroll: u, mapColumns: g, _data: _, _columns: x, loadingPage: p, loadingTable: f, actions: b, loadData: j, mounted: ee, pageChangeHandler: M, pageSizeChangeHandler: Z, clickHandler: ae, createHandler: A, getApproverEmail: w, replaceEmail: C, tabHandler: I, searchForm: V, searchableFields: H, mapSearchableFields: O, initSearchForm: L, handleSearch: Q, handleReset: se, judgeHiddenActions: ie, ActionButton: xe, DataWidgets: Oe, TopBar: Te };
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 };
2014
2039
  return Object.defineProperty(_e, "__isScriptSetup", { enumerable: !1, value: !0 }), _e;
2015
2040
  }
2016
- }), $o = { class: "list-container" }, Mo = { class: "query-title" };
2017
- function Eo(t, n, a, e, o, l) {
2018
- const s = k("a-space"), c = k("a-col"), i = k("a-button"), r = k("a-row"), u = k("a-card"), g = k("a-tab-pane"), _ = k("a-tabs"), x = k("a-table");
2019
- return d(), h("div", $o, [
2020
- U(e.TopBar, {
2041
+ }), Wo = { class: "list-container" }, Go = { class: "query-title" };
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
+ N(e.TopBar, {
2021
2046
  title: e.pageData?.banner.title ?? "",
2022
2047
  subTitle: e.pageData?.banner.subTitle ?? "",
2023
2048
  email: e.getApproverEmail()
2024
2049
  }, null, 8, ["title", "subTitle", "email"]),
2025
- U(u, null, {
2026
- default: y(() => [
2027
- S("div", Mo, [
2028
- n[0] || (n[0] = S("h3", null, "Search Conditions", -1)),
2029
- U(s, { size: "medium" }, {
2030
- default: y(() => [
2031
- (d(!0), h($, null, z(e.actions, (p) => (d(), h($, {
2032
- key: p.title
2050
+ N(u, null, {
2051
+ default: k(() => [
2052
+ h("div", Go, [
2053
+ n[0] || (n[0] = h("h3", null, "Search Conditions", -1)),
2054
+ N(s, { size: "medium" }, {
2055
+ default: k(() => [
2056
+ (d(!0), v(O, null, $(e.actions, (f) => (d(), v(O, {
2057
+ key: f.title
2033
2058
  }, [
2034
- p.location === "InOperation" ? (d(), D(e.ActionButton, {
2059
+ f.location === "InOperation" ? (d(), F(e.ActionButton, {
2035
2060
  key: 0,
2036
- config: p,
2061
+ config: f,
2037
2062
  onClick: e.createHandler
2038
- }, null, 8, ["config"])) : ne("", !0)
2063
+ }, null, 8, ["config"])) : oe("", !0)
2039
2064
  ], 64))), 128))
2040
2065
  ]),
2041
2066
  _: 1
2042
2067
  })
2043
2068
  ]),
2044
- U(r, { gutter: [24, 20] }, {
2045
- default: y(() => [
2046
- (d(!0), h($, null, z(e.searchableFields, (p) => (d(), D(c, {
2047
- key: p.fieldKey,
2069
+ N(a, { gutter: [24, 20] }, {
2070
+ default: k(() => [
2071
+ (d(!0), v(O, null, $(e.searchableFields, (f) => (d(), F(l, {
2072
+ key: f.fieldKey,
2048
2073
  span: 6,
2049
2074
  class: "search-col"
2050
2075
  }, {
2051
- default: y(() => [
2052
- U(e.DataWidgets, {
2053
- name: p.fieldKey,
2054
- config: p.fieldConfig,
2055
- modelValue: e.searchForm[p.fieldKey].value,
2056
- "onUpdate:modelValue": (f) => e.searchForm[p.fieldKey].value = f,
2076
+ default: k(() => [
2077
+ N(e.DataWidgets, {
2078
+ name: f.fieldKey,
2079
+ config: f.fieldConfig,
2080
+ modelValue: e.searchForm[f.fieldKey].value,
2081
+ "onUpdate:modelValue": (p) => e.searchForm[f.fieldKey].value = p,
2057
2082
  class: "form-field"
2058
2083
  }, null, 8, ["name", "config", "modelValue", "onUpdate:modelValue"])
2059
2084
  ]),
2060
2085
  _: 2
2061
2086
  }, 1024))), 128)),
2062
- U(c, {
2087
+ N(l, {
2063
2088
  span: 6,
2064
2089
  class: "search-col form-buttons"
2065
2090
  }, {
2066
- default: y(() => [
2067
- U(s, { size: "medium" }, {
2068
- default: y(() => [
2069
- U(i, {
2091
+ default: k(() => [
2092
+ N(s, { size: "medium" }, {
2093
+ default: k(() => [
2094
+ N(i, {
2070
2095
  type: "primary",
2071
2096
  size: "medium",
2072
2097
  onClick: e.handleSearch
2073
2098
  }, {
2074
- default: y(() => n[1] || (n[1] = [
2075
- oe(" Search ", -1)
2099
+ default: k(() => n[1] || (n[1] = [
2100
+ ne(" Search ", -1)
2076
2101
  ])),
2077
2102
  _: 1,
2078
2103
  __: [1]
2079
2104
  }),
2080
- U(i, {
2105
+ N(i, {
2081
2106
  size: "medium",
2082
2107
  onClick: e.handleReset
2083
2108
  }, {
2084
- default: y(() => n[2] || (n[2] = [
2085
- oe(" Reset ", -1)
2109
+ default: k(() => n[2] || (n[2] = [
2110
+ ne(" Reset ", -1)
2086
2111
  ])),
2087
2112
  _: 1,
2088
2113
  __: [2]
@@ -2099,19 +2124,19 @@ function Eo(t, n, a, e, o, l) {
2099
2124
  ]),
2100
2125
  _: 1
2101
2126
  }),
2102
- U(_, {
2127
+ N(_, {
2103
2128
  size: "large",
2104
2129
  onTabClick: e.tabHandler
2105
2130
  }, {
2106
- default: y(() => [
2107
- (d(!0), h($, null, z(e.pageData?.tabs, (p) => (d(), D(g, {
2108
- key: p.key,
2109
- title: p.title
2131
+ default: k(() => [
2132
+ (d(!0), v(O, null, $(e.pageData?.tabs, (f) => (d(), F(g, {
2133
+ key: f.key,
2134
+ title: f.title
2110
2135
  }, null, 8, ["title"]))), 128))
2111
2136
  ]),
2112
2137
  _: 1
2113
2138
  }),
2114
- U(x, {
2139
+ N(S, {
2115
2140
  columns: e._columns,
2116
2141
  data: e._data,
2117
2142
  stripe: "",
@@ -2130,18 +2155,18 @@ function Eo(t, n, a, e, o, l) {
2130
2155
  onPageChange: e.pageChangeHandler,
2131
2156
  onPageSizeChange: e.pageSizeChangeHandler
2132
2157
  }, {
2133
- optional: y(({ record: p }) => [
2134
- U(s, { size: "small" }, {
2135
- default: y(() => [
2136
- (d(!0), h($, null, z(e.actions, (f) => (d(), h($, {
2137
- key: f.title
2158
+ optional: k(({ record: f }) => [
2159
+ N(s, { size: "small" }, {
2160
+ default: k(() => [
2161
+ (d(!0), v(O, null, $(e.actions, (p) => (d(), v(O, {
2162
+ key: p.title
2138
2163
  }, [
2139
- e.judgeHiddenActions(f, p) ? (d(), D(e.ActionButton, {
2164
+ e.judgeHiddenActions(p, f) ? (d(), F(e.ActionButton, {
2140
2165
  key: 0,
2141
- config: f,
2166
+ config: p,
2142
2167
  size: "small",
2143
- onClick: (...b) => e.clickHandler(...b, p.workflowId)
2144
- }, null, 8, ["config", "onClick"])) : ne("", !0)
2168
+ onClick: (...T) => e.clickHandler(...T, f.workflowId)
2169
+ }, null, 8, ["config", "onClick"])) : oe("", !0)
2145
2170
  ], 64))), 128))
2146
2171
  ]),
2147
2172
  _: 2
@@ -2151,12 +2176,12 @@ function Eo(t, n, a, e, o, l) {
2151
2176
  }, 8, ["columns", "data", "pagination", "loading", "scroll"])
2152
2177
  ]);
2153
2178
  }
2154
- const zo = /* @__PURE__ */ J(Oo, [["render", Eo], ["__scopeId", "data-v-639f4f42"], ["__file", "ListView.vue"]]), Yo = {
2179
+ const Yo = /* @__PURE__ */ Y(Ko, [["render", qo], ["__scopeId", "data-v-639f4f42"], ["__file", "ListView.vue"]]), tr = {
2155
2180
  install(t, n = {}) {
2156
- n.config && wt(n.config), n.router && t.provide(rt, n.router), n.pinia && t.provide(Mn, 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", lo), t.component("UpdateView", wo), t.component("DetailView", jo), t.component("ListView", zo);
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);
2157
2182
  }
2158
2183
  };
2159
2184
  export {
2160
- Yo as default
2185
+ tr as default
2161
2186
  };
2162
2187
  //# sourceMappingURL=index.es.js.map