@chase-shao/vue-component-lib 1.2.70 → 1.2.72

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,4 +1,4 @@
1
- import { ref as g, defineComponent as G, mergeModels as re, useModel as ye, resolveComponent as S, createBlock as L, openBlock as u, onMounted as de, computed as X, withCtx as p, createElementBlock as V, Fragment as K, renderList as z, createVNode as F, nextTick as rt, createTextVNode as q, useTemplateRef as Re, createElementVNode as T, createCommentVNode as se, toDisplayString as J, resolveDynamicComponent as Pe, renderSlot as ue, inject as me, getCurrentInstance as be, reactive as Me, normalizeStyle as it, normalizeClass as lt, unref as Te, onActivated as ct } from "vue";
1
+ import { ref as g, getCurrentInstance as me, defineComponent as G, mergeModels as re, useModel as be, resolveComponent as S, createBlock as L, openBlock as u, onMounted as de, computed as X, withCtx as p, createElementBlock as V, Fragment as K, renderList as z, createVNode as R, nextTick as rt, createTextVNode as q, useTemplateRef as De, createElementVNode as T, createCommentVNode as se, toDisplayString as J, resolveDynamicComponent as Pe, renderSlot as ue, inject as ge, reactive as Me, normalizeStyle as it, normalizeClass as lt, unref as Te, onActivated as ct } from "vue";
2
2
  import ut from "axios";
3
3
  import { defineStore as dt } from "pinia";
4
4
  import { Modal as ft } from "@arco-design/web-vue";
@@ -15,7 +15,7 @@ const mt = dt("main", () => ({
15
15
  for (; e[t] === null; )
16
16
  await gt(100);
17
17
  return e[t];
18
- }, _e = (e) => {
18
+ }, we = (e) => {
19
19
  const t = `0${e}`;
20
20
  return t.substring(t.length - 2);
21
21
  }, ke = (e, t = "yyyy-MM-dd hh:mm:ss") => {
@@ -25,15 +25,15 @@ const mt = dt("main", () => ({
25
25
  const a = new Date(e), o = [
26
26
  ["yyyy", a.getFullYear()],
27
27
  ["yy", a.getFullYear().toString().substring(2)],
28
- ["MM", _e(a.getMonth() + 1)],
28
+ ["MM", we(a.getMonth() + 1)],
29
29
  ["M", a.getMonth() + 1],
30
- ["dd", _e(a.getDate())],
30
+ ["dd", we(a.getDate())],
31
31
  ["d", a.getDate()],
32
- ["hh", _e(a.getHours())],
32
+ ["hh", we(a.getHours())],
33
33
  ["h", a.getHours()],
34
- ["mm", _e(a.getMinutes())],
34
+ ["mm", we(a.getMinutes())],
35
35
  ["m", a.getMinutes()],
36
- ["ss", _e(a.getSeconds())],
36
+ ["ss", we(a.getSeconds())],
37
37
  ["s", a.getSeconds()]
38
38
  ];
39
39
  for (const [n, c] of o)
@@ -48,13 +48,14 @@ const mt = dt("main", () => ({
48
48
  const o = document.createElement("a"), n = window.URL.createObjectURL(a);
49
49
  o.href = n, o.download = t, o.click(), window.URL.revokeObjectURL(n);
50
50
  };
51
- let De = {};
51
+ let Fe = {};
52
52
  function wt(e) {
53
- De = { ...De, ...e };
53
+ Fe = { ...Fe, ...e };
54
54
  }
55
55
  function Be() {
56
- return De;
56
+ return Fe;
57
57
  }
58
+ const yt = me();
58
59
  function qe() {
59
60
  const e = Be();
60
61
  return {
@@ -62,15 +63,26 @@ function qe() {
62
63
  appSecret: e.appSecret || void 0 || ""
63
64
  };
64
65
  }
66
+ function bt(e) {
67
+ if (!e?.data?.statusCode)
68
+ return e;
69
+ switch (e.data.statusCode) {
70
+ case 1:
71
+ return e.data.data = e.data.result, e.data;
72
+ case 0:
73
+ default:
74
+ return yt?.appContext.config.globalProperties.$notification.error(e.data.msg), null;
75
+ }
76
+ }
65
77
  function Ye() {
66
- const { apiBase: e } = qe();
67
- return ut.create({
78
+ const { apiBase: e } = qe(), t = ut.create({
68
79
  baseURL: e,
69
- timeout: 1e4,
70
- // 10s
80
+ timeout: 20 * 1e3,
81
+ // 20s
71
82
  // headers: { 'Content-Type': 'application/json' },
72
83
  withCredentials: !0
73
84
  });
85
+ return t.interceptors.response.use(bt), t;
74
86
  }
75
87
  const Je = async () => {
76
88
  const { apiBase: e, appSecret: t } = qe(), a = Ye(), o = mt();
@@ -98,31 +110,31 @@ const Je = async () => {
98
110
  }, O = [];
99
111
  for (let e = 0; e < 256; ++e)
100
112
  O.push((e + 256).toString(16).slice(1));
101
- function yt(e, t = 0) {
113
+ function ht(e, t = 0) {
102
114
  return (O[e[t + 0]] + O[e[t + 1]] + O[e[t + 2]] + O[e[t + 3]] + "-" + O[e[t + 4]] + O[e[t + 5]] + "-" + O[e[t + 6]] + O[e[t + 7]] + "-" + O[e[t + 8]] + O[e[t + 9]] + "-" + O[e[t + 10]] + O[e[t + 11]] + O[e[t + 12]] + O[e[t + 13]] + O[e[t + 14]] + O[e[t + 15]]).toLowerCase();
103
115
  }
104
116
  let Ne;
105
- const bt = new Uint8Array(16);
106
- function ht() {
117
+ const kt = new Uint8Array(16);
118
+ function Ct() {
107
119
  if (!Ne) {
108
120
  if (typeof crypto > "u" || !crypto.getRandomValues)
109
121
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
110
122
  Ne = crypto.getRandomValues.bind(crypto);
111
123
  }
112
- return Ne(bt);
124
+ return Ne(kt);
113
125
  }
114
- const kt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), je = { randomUUID: kt };
126
+ const Vt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), je = { randomUUID: Vt };
115
127
  function Xe(e, t, a) {
116
128
  if (je.randomUUID && !e)
117
129
  return je.randomUUID();
118
130
  e = e || {};
119
- const o = e.random ?? e.rng?.() ?? ht();
131
+ const o = e.random ?? e.rng?.() ?? Ct();
120
132
  if (o.length < 16)
121
133
  throw new Error("Random bytes length must be >= 16");
122
- return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, yt(o);
134
+ return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, ht(o);
123
135
  }
124
136
  var Z = /* @__PURE__ */ ((e) => (e[e.Submit = 0] = "Submit", e[e.Link = 1] = "Link", e))(Z || {}), pe = /* @__PURE__ */ ((e) => (e[e.Create = 0] = "Create", e[e.Update = 1] = "Update", e[e.Details = 2] = "Details", e[e.List = 3] = "List", e))(pe || {});
125
- function Ct(e, t, a) {
137
+ function St(e, t, a) {
126
138
  const o = {
127
139
  pageType: "",
128
140
  fields: {},
@@ -143,8 +155,9 @@ function Ct(e, t, a) {
143
155
  appliesTo: n.propertyNames || ["*"]
144
156
  });
145
157
  else if (n.attributeType === "UIControl") {
158
+ const c = n.showToRoles.split(",").map((i) => i.trim()), r = a.bpmStore().employeeInfo.roleList.some((i) => c.includes(i.Name)) || n.showToRoles === "";
146
159
  if (n.widget === "Tab") {
147
- o.tabs || (o.tabs = []), o.tabs.push({
160
+ o.tabs || (o.tabs = []), r && o.tabs.push({
148
161
  key: Xe(),
149
162
  title: n.title,
150
163
  filters: n.filters ? JSON.parse(n.filters) : [],
@@ -152,7 +165,7 @@ function Ct(e, t, a) {
152
165
  });
153
166
  return;
154
167
  }
155
- o.actions || (o.actions = []), o.actions.push({
168
+ o.actions || (o.actions = []), r && o.actions.push({
156
169
  isSubmit: n.isSubmit,
157
170
  requestUrl: n.requestUrl,
158
171
  redirectUrl: n.redirectUrl,
@@ -201,9 +214,9 @@ function Ct(e, t, a) {
201
214
  }
202
215
  const Ce = async (e, t, a, o) => {
203
216
  const c = await (await j()).get(`/General/${t}/${e}/page`, { params: o });
204
- return Ct(c?.data, e, a);
217
+ return St(c?.data, e, a);
205
218
  }, Qe = async (e, t, a) => (await (await j()).post(`/${t}/${e}/button/List`, null, { params: a }))?.data;
206
- async function Vt(e, t) {
219
+ async function xt(e, t) {
207
220
  const o = await (await j()).post(`/General/${e}/list`, t);
208
221
  return {
209
222
  data: o.data.data,
@@ -223,51 +236,51 @@ async function Vt(e, t) {
223
236
  // ),
224
237
  };
225
238
  }
226
- async function St(e, t, a) {
239
+ async function $t(e, t, a) {
227
240
  return (await (await j()).post(a, t, {
228
241
  params: {
229
242
  className: e
230
243
  }
231
244
  })).data;
232
245
  }
233
- async function xt(e, t, a, o) {
246
+ async function It(e, t, a, o) {
234
247
  const n = await j(), c = He(o, t);
235
248
  return (await n.put(c, a))?.data;
236
249
  }
237
250
  function He(e, t) {
238
251
  return e.replace(/{WorkflowId}/g, t);
239
252
  }
240
- function $t(e, t) {
253
+ function At(e, t) {
241
254
  return e.replace(/{ApproverEmail}/g, encodeURIComponent(t));
242
255
  }
243
- function At(e, t) {
256
+ function Tt(e, t) {
244
257
  return e.replace(/{WorkFlowReason}/g, encodeURIComponent(t));
245
258
  }
246
- function It(e, t) {
259
+ function Ut(e, t) {
247
260
  return e.replace(/{Status}/g, t);
248
261
  }
249
- function Tt(e, t) {
262
+ function Nt(e, t) {
250
263
  return e.replace(/{IfTriggerGlobal_RandP_Approval}/g, t);
251
264
  }
252
- function Ut(e, t) {
265
+ function Lt(e, t) {
253
266
  return e.replace(/{ClassName}/g, encodeURIComponent(t));
254
267
  }
255
- async function Nt(e, t, a, o, n, c, r, i) {
268
+ async function Rt(e, t, a, o, n, c, r, i) {
256
269
  const s = await j();
257
270
  let l = He(c, t);
258
- return l = $t(l, a), l = At(l, o), l = It(l, r), l = Tt(l, i), l = Ut(l, e), (await s.put(l, n))?.data;
271
+ return l = At(l, a), l = Tt(l, o), l = Ut(l, r), l = Nt(l, i), l = Lt(l, e), (await s.put(l, n))?.data;
259
272
  }
260
- async function Lt(e, t) {
273
+ async function Ft(e, t) {
261
274
  const n = (await (await j()).get(e, { params: { value: t } }))?.data;
262
275
  return Object.entries(n).map(([c, r]) => ({
263
276
  value: c,
264
277
  label: r
265
278
  }));
266
279
  }
267
- async function Ft(e, t) {
280
+ async function Dt(e, t) {
268
281
  return (await (await j()).get(`/General/${e}/${t}/process`))?.data;
269
282
  }
270
- function Dt(e) {
283
+ function Pt(e) {
271
284
  return {
272
285
  uid: e.id ?? Xe(),
273
286
  name: e.attachmentName ?? "unknown",
@@ -277,23 +290,23 @@ function Dt(e) {
277
290
  async function Ze(e, t) {
278
291
  return (await (await j()).get(`/General/${e}/${t}/upload/get`))?.data.reduce((c, r) => {
279
292
  const { category: i } = r;
280
- return c[i] || (c[i] = []), c[i].push(Dt(r)), c;
293
+ return c[i] || (c[i] = []), c[i].push(Pt(r)), c;
281
294
  }, {});
282
295
  }
283
- async function Rt(e, t) {
296
+ async function Mt(e, t) {
284
297
  return (await j()).post(`/General/${e}/${t}/delete/attachment`);
285
298
  }
286
- async function Pt() {
299
+ async function Bt() {
287
300
  const t = await (await j()).get("/Grading/dropdown/approvers");
288
301
  return Object.entries(t?.data).map(([a, o]) => ({
289
302
  label: a,
290
303
  value: o
291
304
  }));
292
305
  }
293
- async function Mt(e, t) {
306
+ async function Ht(e, t) {
294
307
  return await (await j()).post(`Grading/AssignComments/${e}/${encodeURIComponent(t)}`);
295
308
  }
296
- async function Bt(e, t, a) {
309
+ async function Kt(e, t, a) {
297
310
  return await (await j()).post(`Grading/AddComments/${e}/${encodeURIComponent(t)}`, a, {
298
311
  headers: { "Content-Type": "application/json;charset=UTF-8" }
299
312
  });
@@ -304,25 +317,25 @@ async function Oe(e) {
304
317
  async function Le(e) {
305
318
  return (await (await j()).get(`Grading/GetAssociator/${e}`))?.data;
306
319
  }
307
- async function Ht(e) {
320
+ async function Et(e) {
308
321
  return await (await j()).delete(`Grading/DeleteAssociator/${e}`);
309
322
  }
310
- async function Kt(e, t = null) {
323
+ async function zt(e, t = null) {
311
324
  const o = await (await j()).post(e, t, {
312
325
  responseType: "blob"
313
326
  });
314
327
  _t(o?.data, "WorkflowData.xlsx");
315
328
  }
316
- const ge = (e, t) => {
329
+ const ve = (e, t) => {
317
330
  let a = "";
318
331
  return { res: e.every((n) => {
319
- const c = Et(n, t);
332
+ const c = jt(n, t);
320
333
  return c || (a = n.errorMessage), c;
321
334
  }), errorMessages: a };
322
- }, Et = (e, t) => {
335
+ }, jt = (e, t) => {
323
336
  const { ruleName: a, ruleParameter: o } = e;
324
- return zt[a](o, t);
325
- }, zt = {
337
+ return Ot[a](o, t);
338
+ }, Ot = {
326
339
  Regex: (e, t) => new RegExp(e).test(t),
327
340
  Required: (e, t) => !!t
328
341
  }, Ge = /* @__PURE__ */ G({
@@ -340,7 +353,7 @@ const ge = (e, t) => {
340
353
  }),
341
354
  emits: /* @__PURE__ */ re(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
342
355
  setup(e, { expose: t, emit: a }) {
343
- const o = e, n = a, c = ye(e, "modelValue"), r = (l) => ge(o.validations, l), i = (l) => {
356
+ const o = e, n = a, c = be(e, "modelValue"), r = (l) => ve(o.validations, l), i = (l) => {
344
357
  n("input", l);
345
358
  }, s = (l) => {
346
359
  const _ = r(l);
@@ -365,7 +378,7 @@ const ge = (e, t) => {
365
378
  }, null, 8, ["modelValue", "disabled"]);
366
379
  };
367
380
  }
368
- }), jt = /* @__PURE__ */ G({
381
+ }), Gt = /* @__PURE__ */ G({
369
382
  __name: "InputNumber",
370
383
  props: /* @__PURE__ */ re({
371
384
  fieldKey: {},
@@ -380,13 +393,13 @@ const ge = (e, t) => {
380
393
  }),
381
394
  emits: /* @__PURE__ */ re(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
382
395
  setup(e, { expose: t, emit: a }) {
383
- const o = e, n = a, c = ye(e, "modelValue"), r = g(100), i = g(1);
396
+ const o = e, n = a, c = be(e, "modelValue"), r = g(100), i = g(1);
384
397
  de(() => {
385
398
  o.validations && o.validations.forEach((d) => {
386
399
  d.ruleName === "Max" && (r.value = d.ruleParameter), d.ruleName === "Min" && (i.value = d.ruleParameter);
387
400
  });
388
401
  });
389
- const s = (d) => ge(o.validations, d), l = (d) => {
402
+ const s = (d) => ve(o.validations, d), l = (d) => {
390
403
  n("input", d);
391
404
  }, _ = (d) => {
392
405
  const h = s(d);
@@ -427,7 +440,7 @@ const ge = (e, t) => {
427
440
  }),
428
441
  emits: /* @__PURE__ */ re(["update:modelValue", "change"], ["update:modelValue"]),
429
442
  setup(e, { expose: t, emit: a }) {
430
- const o = e, n = a, c = g(!1), r = g(o.config.options ?? []), i = ye(e, "modelValue"), s = (d) => ge(o.validations, d);
443
+ const o = e, n = a, c = g(!1), r = g(o.config.options ?? []), i = be(e, "modelValue"), s = (d) => ve(o.validations, d);
431
444
  X(() => {
432
445
  const d = {};
433
446
  return o.triggers && o.triggers.length > 0 && o.triggers.forEach((h) => {
@@ -438,7 +451,7 @@ const ge = (e, t) => {
438
451
  };
439
452
  }), d;
440
453
  }), de(async () => {
441
- o.config.dataSourceProvider && (r.value = await Lt(o.config.dataSourceProvider));
454
+ o.config.dataSourceProvider && (r.value = await Ft(o.config.dataSourceProvider));
442
455
  });
443
456
  const _ = (d) => {
444
457
  n("update:modelValue", d);
@@ -461,7 +474,6 @@ const ge = (e, t) => {
461
474
  loading: c.value,
462
475
  "filter-option": !0,
463
476
  "allow-search": !0,
464
- disabled: d.config.readonly,
465
477
  onChange: _
466
478
  }, {
467
479
  default: p(() => [
@@ -472,10 +484,10 @@ const ge = (e, t) => {
472
484
  }, null, 8, ["value", "label"]))), 128))
473
485
  ]),
474
486
  _: 1
475
- }, 8, ["modelValue", "loading", "disabled"]);
487
+ }, 8, ["modelValue", "loading"]);
476
488
  };
477
489
  }
478
- }), Ot = /* @__PURE__ */ G({
490
+ }), Wt = /* @__PURE__ */ G({
479
491
  __name: "Cascader",
480
492
  props: {
481
493
  modelValue: {},
@@ -507,7 +519,7 @@ const ge = (e, t) => {
507
519
  size: "large"
508
520
  }, {
509
521
  default: p(() => [
510
- F(_, {
522
+ R(_, {
511
523
  "field-names": i,
512
524
  "model-value": s.modelValue,
513
525
  options: c.value,
@@ -520,7 +532,7 @@ const ge = (e, t) => {
520
532
  });
521
533
  };
522
534
  }
523
- }), Gt = /* @__PURE__ */ G({
535
+ }), qt = /* @__PURE__ */ G({
524
536
  __name: "FileUpload",
525
537
  props: {
526
538
  className: {},
@@ -540,7 +552,7 @@ const ge = (e, t) => {
540
552
  Authorization: `Bearer ${m}`
541
553
  };
542
554
  });
543
- const r = (m) => ge(o.validations, m), s = Be().apiBase, l = g(null), _ = g("");
555
+ const r = (m) => ve(o.validations, m), s = Be().apiBase, l = g(null), _ = g("");
544
556
  function d(m, k, E) {
545
557
  return m.replace(/{WorkflowId}/g, k).replace(/{ClassName}/g, E);
546
558
  }
@@ -591,7 +603,7 @@ const ge = (e, t) => {
591
603
  }, {
592
604
  "start-icon": p(() => k[0] || (k[0] = [])),
593
605
  "upload-button": p(() => [
594
- F(E, { type: "primary" }, {
606
+ R(E, { type: "primary" }, {
595
607
  default: p(() => k[1] || (k[1] = [
596
608
  q("Select File", -1)
597
609
  ])),
@@ -603,7 +615,7 @@ const ge = (e, t) => {
603
615
  }, 8, ["default-file-list", "action", "limit", "headers"]);
604
616
  };
605
617
  }
606
- }), Wt = /* @__PURE__ */ G({
618
+ }), Yt = /* @__PURE__ */ G({
607
619
  __name: "TextArea",
608
620
  props: {
609
621
  fieldKey: {},
@@ -615,7 +627,7 @@ const ge = (e, t) => {
615
627
  },
616
628
  emits: ["update:modelValue", "change", "error", "input"],
617
629
  setup(e, { expose: t, emit: a }) {
618
- const o = e, n = a, c = (s) => ge(o.validations, s), r = (s) => {
630
+ const o = e, n = a, c = (s) => ve(o.validations, s), r = (s) => {
619
631
  n("update:modelValue", s), n("input", s);
620
632
  }, i = (s) => {
621
633
  n("update:modelValue", s);
@@ -641,7 +653,7 @@ const ge = (e, t) => {
641
653
  }, null, 8, ["model-value", "disabled"]);
642
654
  };
643
655
  }
644
- }), qt = /* @__PURE__ */ G({
656
+ }), Jt = /* @__PURE__ */ G({
645
657
  __name: "CheckBox",
646
658
  props: /* @__PURE__ */ re({
647
659
  fieldKey: {},
@@ -656,7 +668,7 @@ const ge = (e, t) => {
656
668
  }),
657
669
  emits: /* @__PURE__ */ re(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
658
670
  setup(e, { expose: t, emit: a }) {
659
- const o = e, n = a, c = ye(e, "modelValue"), r = (s) => ge(o.validations, s), i = (s) => {
671
+ const o = e, n = a, c = be(e, "modelValue"), r = (s) => ve(o.validations, s), i = (s) => {
660
672
  const l = r(s);
661
673
  n("error", l.res ? "" : l.errorMessages), o.triggers && o.triggers.length > 0 && o.triggers.forEach((_) => {
662
674
  _.event === "change" && n(_.event, _.handlerName, s);
@@ -684,13 +696,13 @@ const ge = (e, t) => {
684
696
  }, 8, ["modelValue", "disabled"]);
685
697
  };
686
698
  }
687
- }), Yt = { class: "title" }, Jt = {
699
+ }), Xt = { class: "title" }, Qt = {
688
700
  key: 0,
689
701
  class: "required"
690
- }, Xt = {
702
+ }, Zt = {
691
703
  key: 0,
692
704
  class: "err-msg"
693
- }, Qt = /* @__PURE__ */ G({
705
+ }, eo = /* @__PURE__ */ G({
694
706
  __name: "index",
695
707
  props: /* @__PURE__ */ re({
696
708
  config: {},
@@ -706,24 +718,24 @@ const ge = (e, t) => {
706
718
  }),
707
719
  emits: /* @__PURE__ */ re(["update:modelValue", "change", "error"], ["update:modelValue"]),
708
720
  setup(e, { expose: t, emit: a }) {
709
- const o = e, n = a, c = ye(e, "modelValue"), r = Re("widgetRef"), i = X(() => {
721
+ const o = e, n = a, c = be(e, "modelValue"), r = De("widgetRef"), i = X(() => {
710
722
  switch (o.config?.widget?.widget) {
711
723
  case "TextBox":
712
724
  return Ge;
713
725
  case "Number":
714
- return jt;
726
+ return Gt;
715
727
  case "SelectList":
716
728
  return We;
717
729
  case "Cascade":
718
- return Ot;
730
+ return Wt;
719
731
  case "File":
720
- return Gt;
732
+ return qt;
721
733
  case "TextArea":
722
- return Wt;
734
+ return Yt;
723
735
  case "DropDown":
724
736
  return We;
725
737
  case "CheckBox":
726
- return qt;
738
+ return Jt;
727
739
  default:
728
740
  return Ge;
729
741
  }
@@ -749,9 +761,9 @@ const ge = (e, t) => {
749
761
  return o?.config?.widget?.title;
750
762
  }
751
763
  }), (h, x) => (u(), V("div", null, [
752
- T("div", Yt, [
764
+ T("div", Xt, [
753
765
  q(J(o?.config?.widget?.title) + " ", 1),
754
- o.config.validations.length ? (u(), V("span", Jt, "*")) : se("", !0)
766
+ o.config.validations.length ? (u(), V("span", Qt, "*")) : se("", !0)
755
767
  ]),
756
768
  T("div", null, [
757
769
  (u(), L(Pe(i.value), {
@@ -767,16 +779,16 @@ const ge = (e, t) => {
767
779
  onError: l,
768
780
  onChange: _
769
781
  }, null, 40, ["modelValue", "field-key", "config", "validations", "triggers", "class-name"])),
770
- s.value.length > 0 ? (u(), V("div", Xt, J(s.value), 1)) : se("", !0)
782
+ s.value.length > 0 ? (u(), V("div", Zt, J(s.value), 1)) : se("", !0)
771
783
  ])
772
784
  ]));
773
785
  }
774
- }), ve = (e, t) => {
786
+ }), _e = (e, t) => {
775
787
  const a = e.__vccOpts || e;
776
788
  for (const [o, n] of t)
777
789
  a[o] = n;
778
790
  return a;
779
- }, Ke = /* @__PURE__ */ ve(Qt, [["__scopeId", "data-v-1022c8cb"]]), Zt = /* @__PURE__ */ G({
791
+ }, Ke = /* @__PURE__ */ _e(eo, [["__scopeId", "data-v-1022c8cb"]]), to = /* @__PURE__ */ G({
780
792
  __name: "SubmitButton",
781
793
  props: {
782
794
  url: {},
@@ -803,7 +815,7 @@ const ge = (e, t) => {
803
815
  }, 8, ["loading"]);
804
816
  };
805
817
  }
806
- }), eo = /* @__PURE__ */ G({
818
+ }), oo = /* @__PURE__ */ G({
807
819
  __name: "DetailLink",
808
820
  props: {
809
821
  url: {},
@@ -826,7 +838,7 @@ const ge = (e, t) => {
826
838
  });
827
839
  };
828
840
  }
829
- }), we = /* @__PURE__ */ G({
841
+ }), ye = /* @__PURE__ */ G({
830
842
  __name: "index",
831
843
  props: {
832
844
  config: {},
@@ -841,10 +853,10 @@ const ge = (e, t) => {
841
853
  const c = X(() => {
842
854
  switch (a.config.location) {
843
855
  case "InOperation":
844
- return Zt;
856
+ return to;
845
857
  case "InTable":
846
858
  default:
847
- return eo;
859
+ return oo;
848
860
  }
849
861
  }), r = X(() => a.config.widget === Z.Submit ? a.config.requestUrl ?? "" : a.config.widget === Z.Link ? a.config.redirectUrl ?? "" : ""), i = X(() => a.config.redirectType ?? "Details");
850
862
  return (s, l) => (u(), L(Pe(c.value), {
@@ -861,22 +873,22 @@ const ge = (e, t) => {
861
873
  }
862
874
  }), et = Symbol("library-router");
863
875
  function Ve() {
864
- const e = me(et, null);
876
+ const e = ge(et, null);
865
877
  return e || pt();
866
878
  }
867
879
  const tt = Symbol("library-triggers");
868
880
  function Ee() {
869
- const e = me(tt, null);
881
+ const e = ge(tt, null);
870
882
  return e || {};
871
883
  }
872
- const to = Symbol("library-pinia"), ot = Symbol("library-bpmStore"), nt = Symbol("library-svrStore");
884
+ const no = Symbol("library-pinia"), ot = Symbol("library-bpmStore"), nt = Symbol("library-svrStore");
873
885
  function Se() {
874
- return me(ot, null);
886
+ return ge(ot, null);
875
887
  }
876
888
  function xe() {
877
- return me(nt, null);
889
+ return ge(nt, null);
878
890
  }
879
- const oo = { class: "top-bar" }, no = { class: "banner-info" }, ao = { class: "page-title" }, so = { class: "page-subtitle" }, ro = { class: "avatar-wrapper" }, io = { class: "user-email" }, lo = /* @__PURE__ */ G({
891
+ const ao = { class: "top-bar" }, so = { class: "banner-info" }, ro = { class: "page-title" }, io = { class: "page-subtitle" }, lo = { class: "avatar-wrapper" }, co = { class: "user-email" }, uo = /* @__PURE__ */ G({
880
892
  __name: "TopBar",
881
893
  props: {
882
894
  title: {},
@@ -886,18 +898,18 @@ const oo = { class: "top-bar" }, no = { class: "banner-info" }, ao = { class: "p
886
898
  setup(e) {
887
899
  return (t, a) => {
888
900
  const o = S("a-avatar"), n = S("a-popover");
889
- return u(), V("div", oo, [
890
- T("div", no, [
891
- T("div", ao, J(t.title), 1),
892
- T("div", so, J(t.subTitle), 1)
901
+ return u(), V("div", ao, [
902
+ T("div", so, [
903
+ T("div", ro, J(t.title), 1),
904
+ T("div", io, J(t.subTitle), 1)
893
905
  ]),
894
- T("div", ro, [
895
- F(n, { trigger: "click" }, {
906
+ T("div", lo, [
907
+ R(n, { trigger: "click" }, {
896
908
  content: p(() => [
897
- T("div", io, J(t.email), 1)
909
+ T("div", co, J(t.email), 1)
898
910
  ]),
899
911
  default: p(() => [
900
- F(o, {
912
+ R(o, {
901
913
  size: 48,
902
914
  autoFixFontSize: "",
903
915
  style: { cursor: "pointer", background: "#165DFF", color: "#fff" }
@@ -914,7 +926,7 @@ const oo = { class: "top-bar" }, no = { class: "banner-info" }, ao = { class: "p
914
926
  ]);
915
927
  };
916
928
  }
917
- }), $e = /* @__PURE__ */ ve(lo, [["__scopeId", "data-v-c0457235"]]);
929
+ }), $e = /* @__PURE__ */ _e(uo, [["__scopeId", "data-v-c0457235"]]);
918
930
  function ze(e) {
919
931
  const t = Be(), a = [];
920
932
  if (t.fieldsGroup) {
@@ -926,16 +938,16 @@ function ze(e) {
926
938
  return n.length && a.push({ name: "未分组字段", fields: n }), a;
927
939
  }
928
940
  }
929
- const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { class: "form-card" }, po = { class: "form-fields-vertical" }, mo = { class: "form-fields" }, go = {
941
+ const fo = { class: "page-container" }, po = { class: "page-body" }, mo = { class: "form-card" }, go = { class: "form-fields-vertical" }, vo = { class: "form-fields" }, _o = {
930
942
  key: 0,
931
943
  class: "form-content"
932
- }, vo = { class: "page-footer" }, _o = { class: "action-container" }, wo = { class: "action-buttons" }, yo = /* @__PURE__ */ G({
944
+ }, wo = { class: "page-footer" }, yo = { class: "action-container" }, bo = { class: "action-buttons" }, ho = /* @__PURE__ */ G({
933
945
  __name: "CreateView",
934
946
  props: {
935
947
  className: {}
936
948
  },
937
949
  setup(e) {
938
- const t = Se(), a = xe(), o = Ve(), n = Ee(), c = Re("dataWidgets"), r = be(), i = e, s = g({
950
+ const t = Se(), a = xe(), o = Ve(), n = Ee(), c = De("dataWidgets"), r = me(), i = e, s = g({
939
951
  pageType: "",
940
952
  fields: {},
941
953
  globalValidations: [],
@@ -945,13 +957,13 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
945
957
  }
946
958
  }), l = g([]), _ = g({});
947
959
  function d($) {
948
- return $ ? Object.entries($).map(([v, A]) => ({
960
+ return $ ? Object.entries($).map(([v, I]) => ({
949
961
  fieldKey: v,
950
- ...A
962
+ ...I
951
963
  })).filter((v) => v.widget && v.widget.widget !== "Hidden").filter((v) => !ne.value.includes(v.fieldKey)) : [];
952
964
  }
953
965
  function h($) {
954
- return $ ? Object.entries($).filter(([v, A]) => A.dependent).reduce((v, [A, y]) => (v[A] = y.dependent, v), {}) : [];
966
+ return $ ? Object.entries($).filter(([v, I]) => I.dependent).reduce((v, [I, y]) => (v[I] = y.dependent, v), {}) : [];
955
967
  }
956
968
  const x = X(() => s.value?.actions ? [...s.value.actions].reverse() : []), m = Me({}), k = g(!1);
957
969
  de(async () => {
@@ -971,24 +983,24 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
971
983
  function E() {
972
984
  return a()?.userInfo?.email_address ?? "";
973
985
  }
974
- async function ee($, U, v, A, y) {
986
+ async function ee($, U, v, I, y) {
975
987
  switch (U) {
976
988
  case Z.Submit:
977
- let R = !0;
989
+ let D = !0;
978
990
  if (c.value?.forEach((ae) => {
979
- ae?.validate && (ae.validate() || (R = !1));
980
- }), !R) {
991
+ ae?.validate && (ae.validate() || (D = !1));
992
+ }), !D) {
981
993
  r?.appContext.config.globalProperties.$message.error("form validation failed, please check the input fields");
982
994
  return;
983
995
  }
984
996
  k.value = !0;
985
- const te = await St(i.className, { ...m, ..._.value }, v);
997
+ const te = await $t(i.className, { ...m, ..._.value }, v);
986
998
  k.value = !1, c.value?.forEach((ae) => {
987
999
  ae?.submit && ae.submit(te.toString());
988
1000
  }), r?.appContext.config.globalProperties.$notification.success(`Your grading request has been submitted, ID is ${te.toString()}.`), o.push({ name: "Details", params: { workflowId: te.toString() } });
989
1001
  break;
990
1002
  case Z.Link:
991
- A === "List" && o.push({ name: "List", params: { className: i.className } });
1003
+ I === "List" && o.push({ name: "List", params: { className: i.className } });
992
1004
  break;
993
1005
  default:
994
1006
  console.warn("Unknown action type:", U);
@@ -1007,37 +1019,37 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
1007
1019
  }
1008
1020
  const B = X(() => ze(l.value));
1009
1021
  return ($, U) => {
1010
- const v = S("a-card"), A = S("a-spin");
1011
- return u(), V("div", co, [
1012
- F($e, {
1022
+ const v = S("a-card"), I = S("a-spin");
1023
+ return u(), V("div", fo, [
1024
+ R($e, {
1013
1025
  title: s.value.banner.title,
1014
1026
  subTitle: s.value.banner.subTitle,
1015
1027
  email: E()
1016
1028
  }, null, 8, ["title", "subTitle", "email"]),
1017
- T("div", uo, [
1018
- F(A, {
1029
+ T("div", po, [
1030
+ R(I, {
1019
1031
  loading: k.value,
1020
1032
  class: "form-container"
1021
1033
  }, {
1022
1034
  default: p(() => [
1023
- T("div", fo, [
1024
- T("div", po, [
1035
+ T("div", mo, [
1036
+ T("div", go, [
1025
1037
  (u(!0), V(K, null, z(B.value, (y) => (u(), L(v, {
1026
1038
  key: y.name,
1027
1039
  title: y.name,
1028
1040
  style: { "margin-bottom": "24px" }
1029
1041
  }, {
1030
1042
  default: p(() => [
1031
- T("div", mo, [
1032
- (u(!0), V(K, null, z(y.fields, (R) => (u(), L(Ke, {
1033
- key: R.fieldKey,
1043
+ T("div", vo, [
1044
+ (u(!0), V(K, null, z(y.fields, (D) => (u(), L(Ke, {
1045
+ key: D.fieldKey,
1034
1046
  ref_for: !0,
1035
1047
  ref: "dataWidgets",
1036
- "field-key": R.fieldKey,
1037
- config: R,
1048
+ "field-key": D.fieldKey,
1049
+ config: D,
1038
1050
  "class-name": $.className,
1039
- modelValue: m[R.fieldKey],
1040
- "onUpdate:modelValue": (te) => m[R.fieldKey] = te,
1051
+ modelValue: m[D.fieldKey],
1052
+ "onUpdate:modelValue": (te) => m[D.fieldKey] = te,
1041
1053
  class: "form-field",
1042
1054
  onChange: le
1043
1055
  }, null, 8, ["field-key", "config", "class-name", "modelValue", "onUpdate:modelValue"]))), 128))
@@ -1046,7 +1058,7 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
1046
1058
  _: 2
1047
1059
  }, 1032, ["title"]))), 128))
1048
1060
  ]),
1049
- $.$slots.content ? (u(), V("div", go, [
1061
+ $.$slots.content ? (u(), V("div", _o, [
1050
1062
  ue($.$slots, "content", {}, void 0, !0)
1051
1063
  ])) : se("", !0)
1052
1064
  ])
@@ -1054,16 +1066,16 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
1054
1066
  _: 3
1055
1067
  }, 8, ["loading"])
1056
1068
  ]),
1057
- T("div", vo, [
1058
- T("div", _o, [
1069
+ T("div", wo, [
1070
+ T("div", yo, [
1059
1071
  ue($.$slots, "action", {}, void 0, !0),
1060
- T("div", wo, [
1061
- (u(!0), V(K, null, z(x.value, (y) => (u(), L(we, {
1072
+ T("div", bo, [
1073
+ (u(!0), V(K, null, z(x.value, (y) => (u(), L(ye, {
1062
1074
  key: y.Title,
1063
1075
  loading: k.value,
1064
1076
  config: y,
1065
1077
  class: "action-button",
1066
- onClick: (...R) => ee(y, ...R)
1078
+ onClick: (...D) => ee(y, ...D)
1067
1079
  }, null, 8, ["loading", "config", "onClick"]))), 128))
1068
1080
  ])
1069
1081
  ])
@@ -1071,17 +1083,17 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
1071
1083
  ]);
1072
1084
  };
1073
1085
  }
1074
- }), bo = /* @__PURE__ */ ve(yo, [["__scopeId", "data-v-f3f47e02"]]), ho = { class: "page-container" }, ko = { class: "page-body" }, Co = { class: "form-card" }, Vo = { class: "form-fields-vertical" }, So = { class: "form-fields" }, xo = {
1086
+ }), ko = /* @__PURE__ */ _e(ho, [["__scopeId", "data-v-f3f47e02"]]), Co = { class: "page-container" }, Vo = { class: "page-body" }, So = { class: "form-card" }, xo = { class: "form-fields-vertical" }, $o = { class: "form-fields" }, Io = {
1075
1087
  key: 0,
1076
1088
  class: "form-content"
1077
- }, $o = { class: "page-footer" }, Ao = { class: "action-container" }, Io = { class: "action-buttons" }, To = /* @__PURE__ */ G({
1089
+ }, Ao = { class: "page-footer" }, To = { class: "action-container" }, Uo = { class: "action-buttons" }, No = /* @__PURE__ */ G({
1078
1090
  __name: "UpdateView",
1079
1091
  props: {
1080
1092
  className: {},
1081
1093
  workflowId: {}
1082
1094
  },
1083
1095
  setup(e) {
1084
- const t = Ve(), a = Ee(), o = xe(), n = Se(), c = Re("dataWidgets"), r = be(), i = e, s = g({
1096
+ const t = Ve(), a = Ee(), o = xe(), n = Se(), c = De("dataWidgets"), r = me(), i = e, s = g({
1085
1097
  pageType: "",
1086
1098
  fields: {},
1087
1099
  globalValidations: [],
@@ -1097,7 +1109,7 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
1097
1109
  })).filter((U) => U.widget && U.widget.widget !== "Hidden").filter((U) => !oe.value.includes(U.fieldKey)) : [];
1098
1110
  }
1099
1111
  function h(B) {
1100
- return B ? Object.entries(B).filter(([U, v]) => v.dependent).reduce((U, [v, A]) => (U[v] = A.dependent, U), {}) : [];
1112
+ return B ? Object.entries(B).filter(([U, v]) => v.dependent).reduce((U, [v, I]) => (U[v] = I.dependent, U), {}) : [];
1101
1113
  }
1102
1114
  const x = X(() => s.value?.actions ? [...s.value.actions].reverse() : []), m = Me({}), k = g(!1);
1103
1115
  de(async () => {
@@ -1109,15 +1121,15 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
1109
1121
  });
1110
1122
  const B = await Qe(pe.Update, i.className, { workflowId: i.workflowId, email: E() }), $ = await Ze(i.className, i.workflowId);
1111
1123
  s.value.actions = s.value.actions?.filter((v) => {
1112
- const A = B.find((y) => y.button === v.title);
1113
- return A ? A.isShow : !0;
1124
+ const I = B.find((y) => y.button === v.title);
1125
+ return I ? I.isShow : !0;
1114
1126
  });
1115
1127
  const U = s.value.fields.requestType.modelValue;
1116
1128
  a.Test?.(U, oe), l.value = d(s.value.fields), _.value = h(s.value.fields);
1117
1129
  for (const v in s.value.fields) {
1118
1130
  if (s.value.fields[v].widget?.widget === "File") {
1119
- const A = l.value.find((y) => y.fieldKey === v);
1120
- A && A.widget && (A.widget.files = $[v] ?? [], A.widget.removeFile = (y) => Rt(i.className, y));
1131
+ const I = l.value.find((y) => y.fieldKey === v);
1132
+ I && I.widget && (I.widget.files = $[v] ?? [], I.widget.removeFile = (y) => Mt(i.className, y));
1121
1133
  }
1122
1134
  m[v] = s.value.fields[v].modelValue;
1123
1135
  }
@@ -1126,18 +1138,18 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
1126
1138
  function E() {
1127
1139
  return o()?.userInfo?.email_address ?? "";
1128
1140
  }
1129
- async function ee(B, $, U, v, A) {
1141
+ async function ee(B, $, U, v, I) {
1130
1142
  switch ($) {
1131
1143
  case Z.Submit:
1132
1144
  let y = !0;
1133
- if (c.value?.forEach((R) => {
1134
- R?.validate && (R.validate() || (y = !1));
1145
+ if (c.value?.forEach((D) => {
1146
+ D?.validate && (D.validate() || (y = !1));
1135
1147
  }), !y) {
1136
1148
  r?.appContext.config.globalProperties.$message.error("form validation failed, please check the input fields");
1137
1149
  return;
1138
1150
  }
1139
- k.value = !0, await xt(i.className, i.workflowId, { ...m, ..._.value }, U), k.value = !1, c.value?.forEach((R) => {
1140
- R?.submit && R.submit(i.workflowId);
1151
+ k.value = !0, await It(i.className, i.workflowId, { ...m, ..._.value }, U), k.value = !1, c.value?.forEach((D) => {
1152
+ D?.submit && D.submit(i.workflowId);
1141
1153
  }), r?.appContext.config.globalProperties.$notification.success(`Your grading request has been submitted, ID is ${i.workflowId}.`);
1142
1154
  break;
1143
1155
  case Z.Link:
@@ -1154,28 +1166,28 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
1154
1166
  const le = X(() => ze(l.value));
1155
1167
  return (B, $) => {
1156
1168
  const U = S("a-card"), v = S("a-spin");
1157
- return u(), V("div", ho, [
1158
- F($e, {
1169
+ return u(), V("div", Co, [
1170
+ R($e, {
1159
1171
  title: s.value.banner.title,
1160
1172
  subTitle: s.value.banner.subTitle,
1161
1173
  email: E()
1162
1174
  }, null, 8, ["title", "subTitle", "email"]),
1163
- T("div", ko, [
1164
- F(v, {
1175
+ T("div", Vo, [
1176
+ R(v, {
1165
1177
  loading: k.value,
1166
1178
  class: "form-container"
1167
1179
  }, {
1168
1180
  default: p(() => [
1169
- T("div", Co, [
1170
- T("div", Vo, [
1171
- (u(!0), V(K, null, z(le.value, (A) => (u(), L(U, {
1172
- key: A.name,
1173
- title: A.name,
1181
+ T("div", So, [
1182
+ T("div", xo, [
1183
+ (u(!0), V(K, null, z(le.value, (I) => (u(), L(U, {
1184
+ key: I.name,
1185
+ title: I.name,
1174
1186
  style: { "margin-bottom": "24px" }
1175
1187
  }, {
1176
1188
  default: p(() => [
1177
- T("div", So, [
1178
- (u(!0), V(K, null, z(A.fields, (y) => (u(), L(Ke, {
1189
+ T("div", $o, [
1190
+ (u(!0), V(K, null, z(I.fields, (y) => (u(), L(Ke, {
1179
1191
  key: y.fieldKey,
1180
1192
  ref_for: !0,
1181
1193
  ref: "dataWidgets",
@@ -1183,7 +1195,7 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
1183
1195
  config: y,
1184
1196
  "class-name": B.className,
1185
1197
  modelValue: m[y.fieldKey],
1186
- "onUpdate:modelValue": (R) => m[y.fieldKey] = R,
1198
+ "onUpdate:modelValue": (D) => m[y.fieldKey] = D,
1187
1199
  class: "form-field",
1188
1200
  onChange: ne
1189
1201
  }, null, 8, ["field-key", "config", "class-name", "modelValue", "onUpdate:modelValue"]))), 128))
@@ -1192,7 +1204,7 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
1192
1204
  _: 2
1193
1205
  }, 1032, ["title"]))), 128))
1194
1206
  ]),
1195
- B.$slots.content ? (u(), V("div", xo, [
1207
+ B.$slots.content ? (u(), V("div", Io, [
1196
1208
  ue(B.$slots, "content", {}, void 0, !0)
1197
1209
  ])) : se("", !0)
1198
1210
  ])
@@ -1200,16 +1212,16 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
1200
1212
  _: 3
1201
1213
  }, 8, ["loading"])
1202
1214
  ]),
1203
- T("div", $o, [
1204
- T("div", Ao, [
1215
+ T("div", Ao, [
1216
+ T("div", To, [
1205
1217
  ue(B.$slots, "action", {}, void 0, !0),
1206
- T("div", Io, [
1207
- (u(!0), V(K, null, z(x.value, (A) => (u(), L(we, {
1208
- key: A.Title,
1218
+ T("div", Uo, [
1219
+ (u(!0), V(K, null, z(x.value, (I) => (u(), L(ye, {
1220
+ key: I.Title,
1209
1221
  loading: k.value,
1210
- config: A,
1222
+ config: I,
1211
1223
  class: "action-button",
1212
- onClick: (...y) => ee(A, ...y)
1224
+ onClick: (...y) => ee(I, ...y)
1213
1225
  }, null, 8, ["loading", "config", "onClick"]))), 128))
1214
1226
  ])
1215
1227
  ])
@@ -1217,24 +1229,24 @@ const co = { class: "page-container" }, uo = { class: "page-body" }, fo = { clas
1217
1229
  ]);
1218
1230
  };
1219
1231
  }
1220
- }), Uo = /* @__PURE__ */ ve(To, [["__scopeId", "data-v-8d95324e"]]), at = Symbol("library-custom-comp");
1221
- function No() {
1222
- return me(at, null);
1232
+ }), Lo = /* @__PURE__ */ _e(No, [["__scopeId", "data-v-8d95324e"]]), at = Symbol("library-custom-comp");
1233
+ function Ro() {
1234
+ return ge(at, null);
1223
1235
  }
1224
- const Lo = Symbol("ArcoConfigProvider"), Fo = "arco", Do = "$arco", Ro = (e) => {
1236
+ const Fo = Symbol("ArcoConfigProvider"), Do = "arco", Po = "$arco", Mo = (e) => {
1225
1237
  var t, a, o;
1226
- const n = be(), c = me(Lo, void 0);
1227
- return `${(o = (a = c?.prefixCls) != null ? a : (t = n?.appContext.config.globalProperties[Do]) == null ? void 0 : t.classPrefix) != null ? o : Fo}-${e}`;
1228
- }, Po = Object.prototype.toString;
1229
- function Mo(e) {
1230
- return Po.call(e) === "[object Number]" && e === e;
1238
+ const n = me(), c = ge(Fo, void 0);
1239
+ return `${(o = (a = c?.prefixCls) != null ? a : (t = n?.appContext.config.globalProperties[Po]) == null ? void 0 : t.classPrefix) != null ? o : Do}-${e}`;
1240
+ }, Bo = Object.prototype.toString;
1241
+ function Ho(e) {
1242
+ return Bo.call(e) === "[object Number]" && e === e;
1231
1243
  }
1232
- var Bo = (e, t) => {
1244
+ var Ko = (e, t) => {
1233
1245
  for (const [a, o] of t)
1234
1246
  e[a] = o;
1235
1247
  return e;
1236
1248
  };
1237
- const Ho = G({
1249
+ const Eo = G({
1238
1250
  name: "IconDownload",
1239
1251
  props: {
1240
1252
  size: {
@@ -1261,9 +1273,9 @@ const Ho = G({
1261
1273
  click: (e) => !0
1262
1274
  },
1263
1275
  setup(e, { emit: t }) {
1264
- const a = Ro("icon"), o = X(() => [a, `${a}-download`, { [`${a}-spin`]: e.spin }]), n = X(() => {
1276
+ const a = Mo("icon"), o = X(() => [a, `${a}-download`, { [`${a}-spin`]: e.spin }]), n = X(() => {
1265
1277
  const r = {};
1266
- return e.size && (r.fontSize = Mo(e.size) ? `${e.size}px` : e.size), e.rotate && (r.transform = `rotate(${e.rotate}deg)`), r;
1278
+ return e.size && (r.fontSize = Ho(e.size) ? `${e.size}px` : e.size), e.rotate && (r.transform = `rotate(${e.rotate}deg)`), r;
1267
1279
  });
1268
1280
  return {
1269
1281
  cls: o,
@@ -1273,8 +1285,8 @@ const Ho = G({
1273
1285
  }
1274
1286
  };
1275
1287
  }
1276
- }), Ko = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1277
- function Eo(e, t, a, o, n, c) {
1288
+ }), zo = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1289
+ function jo(e, t, a, o, n, c) {
1278
1290
  return u(), V("svg", {
1279
1291
  viewBox: "0 0 48 48",
1280
1292
  fill: "none",
@@ -1288,32 +1300,32 @@ function Eo(e, t, a, o, n, c) {
1288
1300
  onClick: t[0] || (t[0] = (...r) => e.onClick && e.onClick(...r))
1289
1301
  }, t[1] || (t[1] = [
1290
1302
  T("path", { d: "m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6" }, null, -1)
1291
- ]), 14, Ko);
1303
+ ]), 14, zo);
1292
1304
  }
1293
- var Fe = /* @__PURE__ */ Bo(Ho, [["render", Eo]]);
1294
- const zo = Object.assign(Fe, {
1305
+ var Re = /* @__PURE__ */ Ko(Eo, [["render", jo]]);
1306
+ const Oo = Object.assign(Re, {
1295
1307
  install: (e, t) => {
1296
1308
  var a;
1297
1309
  const o = (a = t?.iconPrefix) != null ? a : "";
1298
- e.component(o + Fe.name, Fe);
1310
+ e.component(o + Re.name, Re);
1299
1311
  }
1300
- }), jo = { class: "page-container" }, Oo = { class: "page-body" }, Go = { class: "detail-card" }, Wo = { class: "form-fields-vertical" }, qo = { class: "detail-fields" }, Yo = { class: "detail-field" }, Jo = { class: "field-label" }, Xo = {
1312
+ }), Go = { class: "page-container" }, Wo = { class: "page-body" }, qo = { class: "detail-card" }, Yo = { class: "form-fields-vertical" }, Jo = { class: "detail-fields" }, Xo = { class: "detail-field" }, Qo = { class: "field-label" }, Zo = {
1301
1313
  key: 1,
1302
1314
  class: "field-value"
1303
- }, Qo = {
1315
+ }, en = {
1304
1316
  key: 2,
1305
1317
  class: "detail-field-wrapper"
1306
- }, Zo = { class: "detail-field" }, en = {
1318
+ }, tn = { class: "detail-field" }, on = {
1307
1319
  key: 0,
1308
1320
  class: "detail-content"
1309
- }, tn = { class: "page-footer" }, on = { class: "action-container" }, nn = { class: "action-buttons" }, an = /* @__PURE__ */ G({
1321
+ }, nn = { class: "page-footer" }, an = { class: "action-container" }, sn = { class: "action-buttons" }, rn = /* @__PURE__ */ G({
1310
1322
  __name: "DetailView",
1311
1323
  props: {
1312
1324
  className: {},
1313
1325
  workflowId: {}
1314
1326
  },
1315
1327
  setup(e) {
1316
- const t = xe(), a = Se(), o = Ee(), n = Ve(), c = No(), r = be(), i = e, s = g({
1328
+ const t = xe(), a = Se(), o = Ee(), n = Ve(), c = Ro(), r = me(), i = e, s = g({
1317
1329
  pageType: "",
1318
1330
  fields: {},
1319
1331
  globalValidations: [],
@@ -1379,7 +1391,7 @@ const zo = Object.assign(Fe, {
1379
1391
  workflowId: i.workflowId
1380
1392
  });
1381
1393
  const b = await Ze(i.className, i.workflowId);
1382
- ae.value = await Pt(), R.value = await Oe(i.workflowId), fe.value = await Le(i.workflowId), le();
1394
+ ae.value = await Bt(), D.value = await Oe(i.workflowId), fe.value = await Le(i.workflowId), le();
1383
1395
  const f = s.value.fields.requestType.modelValue;
1384
1396
  o.Test?.(f, B), l.value = _(s.value.fields);
1385
1397
  for (const C in s.value.fields)
@@ -1387,7 +1399,7 @@ const zo = Object.assign(Fe, {
1387
1399
  const Y = l.value.find((N) => N.fieldKey === C);
1388
1400
  Y && Y.widget && (Y.widget.files = b[C] ?? []);
1389
1401
  }
1390
- const H = await Ft(i.className, i.workflowId);
1402
+ const H = await Dt(i.className, i.workflowId);
1391
1403
  k.value = m(H, 0), x.value = !1;
1392
1404
  }
1393
1405
  de($);
@@ -1397,14 +1409,14 @@ const zo = Object.assign(Fe, {
1397
1409
  function v() {
1398
1410
  return t()?.userInfo?.email_address ?? "";
1399
1411
  }
1400
- async function A(b, f, H, C, Y) {
1412
+ async function I(b, f, H, C, Y) {
1401
1413
  try {
1402
1414
  switch (f) {
1403
1415
  case Z.Submit:
1404
1416
  const { reason: N, ifGlobal: ie } = await U(Y, { isGlobal: E.value });
1405
1417
  x.value = !0;
1406
1418
  const P = Y === "Approve" ? "100" : "-1";
1407
- await Nt(i.className, i.workflowId, v(), N, [Number(i.workflowId)], H, P, ie), x.value = !1;
1419
+ await Rt(i.className, i.workflowId, v(), N, [Number(i.workflowId)], H, P, ie), x.value = !1;
1408
1420
  const Q = Y === "Approve" ? "approve success!" : "approve reject!";
1409
1421
  r?.appContext.config.globalProperties.$notification.success(Q), $();
1410
1422
  break;
@@ -1417,15 +1429,15 @@ const zo = Object.assign(Fe, {
1417
1429
  } catch {
1418
1430
  }
1419
1431
  }
1420
- const y = g(""), R = g([]), te = g(""), ae = g([]), fe = g([]);
1421
- async function Ae() {
1432
+ const y = g(""), D = g([]), te = g(""), ae = g([]), fe = g([]);
1433
+ async function Ie() {
1422
1434
  if (!te.value) {
1423
1435
  r?.appContext.config.globalProperties.$message.error("Please select an approver");
1424
1436
  return;
1425
1437
  }
1426
1438
  await w("Confirm Assign Approver", "Do you want to assign the selected approver?");
1427
1439
  try {
1428
- await Mt(i.workflowId, te.value), fe.value = await Le(i.workflowId), le(), r?.appContext.config.globalProperties.$notification.success("Assign Approver clicked!");
1440
+ await Ht(i.workflowId, te.value), fe.value = await Le(i.workflowId), le(), r?.appContext.config.globalProperties.$notification.success("Assign Approver clicked!");
1429
1441
  } catch (b) {
1430
1442
  if (b.status === 409) {
1431
1443
  r?.appContext.config.globalProperties.$notification.error("This user is already an associator");
@@ -1447,75 +1459,75 @@ const zo = Object.assign(Fe, {
1447
1459
  });
1448
1460
  });
1449
1461
  }
1450
- async function I(b) {
1462
+ async function A(b) {
1451
1463
  try {
1452
1464
  await w("Confirm Delete Associator", "Do you want to delete this associator?");
1453
1465
  } catch {
1454
1466
  return;
1455
1467
  }
1456
1468
  try {
1457
- await Ht(String(b)), fe.value = await Le(i.workflowId), r?.appContext.config.globalProperties.$notification.success("Associator deleted successfully!");
1469
+ await Et(String(b)), fe.value = await Le(i.workflowId), r?.appContext.config.globalProperties.$notification.success("Associator deleted successfully!");
1458
1470
  } catch {
1459
1471
  r?.appContext.config.globalProperties.$notification.error("Failed to delete associator");
1460
1472
  }
1461
1473
  }
1462
- async function D() {
1474
+ async function F() {
1463
1475
  if (!y.value.trim()) {
1464
1476
  r?.appContext.config.globalProperties.$message.error("Comment cannot be empty");
1465
1477
  return;
1466
1478
  }
1467
- await Bt(i.workflowId, v(), y.value), y.value = "", R.value = await Oe(i.workflowId), r?.appContext.config.globalProperties.$notification.success("Add Comment clicked!");
1479
+ await Kt(i.workflowId, v(), y.value), y.value = "", D.value = await Oe(i.workflowId), r?.appContext.config.globalProperties.$notification.success("Add Comment clicked!");
1468
1480
  }
1469
1481
  return (b, f) => {
1470
1482
  const H = S("a-link"), C = S("a-space"), Y = S("a-card"), N = S("a-option"), ie = S("a-select"), P = S("a-button"), Q = S("a-list-item"), W = S("a-list"), he = S("a-textarea"), st = S("a-spin");
1471
- return u(), V("div", jo, [
1472
- F($e, {
1483
+ return u(), V("div", Go, [
1484
+ R($e, {
1473
1485
  title: s.value.banner.title,
1474
1486
  subTitle: s.value.banner.subTitle,
1475
1487
  email: v()
1476
1488
  }, null, 8, ["title", "subTitle", "email"]),
1477
- T("div", Oo, [
1478
- F(st, {
1489
+ T("div", Wo, [
1490
+ R(st, {
1479
1491
  loading: x.value,
1480
1492
  class: "detail-container"
1481
1493
  }, {
1482
1494
  default: p(() => [
1483
- T("div", Go, [
1495
+ T("div", qo, [
1484
1496
  (u(), L(Pe(Te(c).Steps), { steps: k.value }, null, 8, ["steps"])),
1485
- T("div", Wo, [
1497
+ T("div", Yo, [
1486
1498
  (u(!0), V(K, null, z(d.value, (M) => (u(), L(Y, {
1487
1499
  key: M.name,
1488
1500
  title: M.name,
1489
1501
  style: { "margin-bottom": "24px" }
1490
1502
  }, {
1491
1503
  default: p(() => [
1492
- T("div", qo, [
1504
+ T("div", Jo, [
1493
1505
  (u(!0), V(K, null, z(M.fields, (ce) => (u(), V("div", {
1494
1506
  key: ce.fieldKey,
1495
1507
  class: "detail-field-wrapper"
1496
1508
  }, [
1497
- T("div", Yo, [
1498
- T("div", Jo, J(ce.widget?.title), 1),
1499
- ce.widget?.widget === "File" ? (u(!0), V(K, { key: 0 }, z(ce.widget.files, (Ie) => (u(), V("div", {
1509
+ T("div", Xo, [
1510
+ T("div", Qo, J(ce.widget?.title), 1),
1511
+ ce.widget?.widget === "File" ? (u(!0), V(K, { key: 0 }, z(ce.widget.files, (Ae) => (u(), V("div", {
1500
1512
  class: "field-value",
1501
- key: Ie.id
1513
+ key: Ae.id
1502
1514
  }, [
1503
- F(C, null, {
1515
+ R(C, null, {
1504
1516
  default: p(() => [
1505
- q(J(Ie.name) + " ", 1),
1506
- F(H, {
1507
- href: Ie.url,
1517
+ q(J(Ae.name) + " ", 1),
1518
+ R(H, {
1519
+ href: Ae.url,
1508
1520
  target: "_blank"
1509
1521
  }, {
1510
1522
  default: p(() => [
1511
- F(Te(zo), { style: { color: "#7A00E6" } })
1523
+ R(Te(Oo), { style: { color: "#7A00E6" } })
1512
1524
  ]),
1513
1525
  _: 2
1514
1526
  }, 1032, ["href"])
1515
1527
  ]),
1516
1528
  _: 2
1517
1529
  }, 1024)
1518
- ]))), 128)) : (u(), V("div", Xo, J(ce.fieldValue), 1))
1530
+ ]))), 128)) : (u(), V("div", Zo, J(ce.fieldValue), 1))
1519
1531
  ])
1520
1532
  ]))), 128))
1521
1533
  ])
@@ -1524,7 +1536,7 @@ const zo = Object.assign(Fe, {
1524
1536
  }, 1032, ["title"]))), 128)),
1525
1537
  ee.value ? (u(), L(C, { key: 0 }, {
1526
1538
  default: p(() => [
1527
- F(ie, {
1539
+ R(ie, {
1528
1540
  modelValue: te.value,
1529
1541
  "onUpdate:modelValue": f[0] || (f[0] = (M) => te.value = M)
1530
1542
  }, {
@@ -1541,9 +1553,9 @@ const zo = Object.assign(Fe, {
1541
1553
  ]),
1542
1554
  _: 1
1543
1555
  }, 8, ["modelValue"]),
1544
- F(P, {
1556
+ R(P, {
1545
1557
  type: "primary",
1546
- onClick: Ae
1558
+ onClick: Ie
1547
1559
  }, {
1548
1560
  default: p(() => f[2] || (f[2] = [
1549
1561
  q("Assign for comment", -1)
@@ -1563,10 +1575,10 @@ const zo = Object.assign(Fe, {
1563
1575
  key: M.id
1564
1576
  }, {
1565
1577
  actions: p(() => [
1566
- F(P, {
1578
+ R(P, {
1567
1579
  type: "text",
1568
1580
  status: "danger",
1569
- onClick: (ce) => I(M.id)
1581
+ onClick: (ce) => A(M.id)
1570
1582
  }, {
1571
1583
  default: p(() => f[4] || (f[4] = [
1572
1584
  q(" Delete ", -1)
@@ -1583,16 +1595,16 @@ const zo = Object.assign(Fe, {
1583
1595
  ]),
1584
1596
  _: 1
1585
1597
  })) : se("", !0),
1586
- ne.value ? (u(), V("div", Qo, [
1587
- T("div", Zo, [
1598
+ ne.value ? (u(), V("div", en, [
1599
+ T("div", tn, [
1588
1600
  f[6] || (f[6] = T("div", { class: "field-label" }, "Comment", -1)),
1589
- F(he, {
1601
+ R(he, {
1590
1602
  modelValue: y.value,
1591
1603
  "onUpdate:modelValue": f[1] || (f[1] = (M) => y.value = M)
1592
1604
  }, null, 8, ["modelValue"]),
1593
- F(P, {
1605
+ R(P, {
1594
1606
  type: "primary",
1595
- onClick: D
1607
+ onClick: F
1596
1608
  }, {
1597
1609
  default: p(() => f[5] || (f[5] = [
1598
1610
  q("Add Comment", -1)
@@ -1602,12 +1614,12 @@ const zo = Object.assign(Fe, {
1602
1614
  })
1603
1615
  ])
1604
1616
  ])) : se("", !0),
1605
- R.value.length ? (u(), L(W, { key: 3 }, {
1617
+ D.value.length ? (u(), L(W, { key: 3 }, {
1606
1618
  header: p(() => f[7] || (f[7] = [
1607
1619
  q(" Comments History ", -1)
1608
1620
  ])),
1609
1621
  default: p(() => [
1610
- (u(!0), V(K, null, z(R.value, (M) => (u(), L(Q, {
1622
+ (u(!0), V(K, null, z(D.value, (M) => (u(), L(Q, {
1611
1623
  key: M.associator
1612
1624
  }, {
1613
1625
  default: p(() => [
@@ -1619,7 +1631,7 @@ const zo = Object.assign(Fe, {
1619
1631
  _: 1
1620
1632
  })) : se("", !0)
1621
1633
  ]),
1622
- b.$slots.content ? (u(), V("div", en, [
1634
+ b.$slots.content ? (u(), V("div", on, [
1623
1635
  ue(b.$slots, "content", {}, void 0, !0)
1624
1636
  ])) : se("", !0)
1625
1637
  ])
@@ -1627,16 +1639,16 @@ const zo = Object.assign(Fe, {
1627
1639
  _: 3
1628
1640
  }, 8, ["loading"])
1629
1641
  ]),
1630
- T("div", tn, [
1631
- T("div", on, [
1642
+ T("div", nn, [
1643
+ T("div", an, [
1632
1644
  ue(b.$slots, "action", {}, void 0, !0),
1633
- T("div", nn, [
1634
- (u(!0), V(K, null, z(h.value, (M) => (u(), L(we, {
1645
+ T("div", sn, [
1646
+ (u(!0), V(K, null, z(h.value, (M) => (u(), L(ye, {
1635
1647
  key: M.Title,
1636
1648
  loading: x.value,
1637
1649
  config: M,
1638
1650
  class: "action-button",
1639
- onClick: (...ce) => A(M, ...ce)
1651
+ onClick: (...ce) => I(M, ...ce)
1640
1652
  }, null, 8, ["loading", "config", "onClick"]))), 128))
1641
1653
  ])
1642
1654
  ])
@@ -1644,14 +1656,14 @@ const zo = Object.assign(Fe, {
1644
1656
  ]);
1645
1657
  };
1646
1658
  }
1647
- }), sn = /* @__PURE__ */ ve(an, [["__scopeId", "data-v-50190ec4"]]), rn = { class: "list-container" }, ln = { class: "query-title" }, cn = /* @__PURE__ */ G({
1659
+ }), ln = /* @__PURE__ */ _e(rn, [["__scopeId", "data-v-50190ec4"]]), cn = { class: "list-container" }, un = { class: "query-title" }, dn = /* @__PURE__ */ G({
1648
1660
  name: "ListView",
1649
1661
  __name: "ListView",
1650
1662
  props: {
1651
1663
  className: {}
1652
1664
  },
1653
1665
  setup(e) {
1654
- const t = xe(), a = Se(), o = Ve(), n = be(), c = e, r = g(), i = Me({
1666
+ const t = xe(), a = Se(), o = Ve(), n = me(), c = e, r = g(), i = Me({
1655
1667
  current: 1,
1656
1668
  total: 0,
1657
1669
  pageSize: 10,
@@ -1661,9 +1673,9 @@ const zo = Object.assign(Fe, {
1661
1673
  filters: []
1662
1674
  });
1663
1675
  function s() {
1664
- const w = Object.entries(A.value).filter(([, { value: I }]) => I && I !== "").map(([I, { value: D, operator: b }]) => ({
1665
- key: I,
1666
- value: D,
1676
+ const w = Object.entries(I.value).filter(([, { value: A }]) => A && A !== "").map(([A, { value: F, operator: b }]) => ({
1677
+ key: A,
1678
+ value: F,
1667
1679
  operator: b
1668
1680
  // 根据实际需要调整操作符
1669
1681
  }));
@@ -1682,9 +1694,9 @@ const zo = Object.assign(Fe, {
1682
1694
  // 只设置横向滚动
1683
1695
  // 移除 y 属性,让表格高度自适应
1684
1696
  })), _ = (w) => {
1685
- const I = Object.entries(w).filter(([, D]) => D.widget?.column).map(([D, b], f) => ({
1697
+ const A = Object.entries(w).filter(([, F]) => F.widget?.column).map(([F, b], f) => ({
1686
1698
  title: b.widget.title,
1687
- dataIndex: D.charAt(0).toLowerCase() + D.slice(1),
1699
+ dataIndex: F.charAt(0).toLowerCase() + F.slice(1),
1688
1700
  order: b.order,
1689
1701
  ellipsis: !0,
1690
1702
  tooltip: !0,
@@ -1693,8 +1705,8 @@ const zo = Object.assign(Fe, {
1693
1705
  // 启用最小宽度
1694
1706
  resizable: !0
1695
1707
  // 启用列宽调整
1696
- })).sort((D, b) => D.order - b.order);
1697
- I.push({
1708
+ })).sort((F, b) => F.order - b.order);
1709
+ A.push({
1698
1710
  title: "Actions",
1699
1711
  slotName: "optional",
1700
1712
  align: "center",
@@ -1702,17 +1714,17 @@ const zo = Object.assign(Fe, {
1702
1714
  minWidth: 200,
1703
1715
  fixed: "right",
1704
1716
  resizable: !1
1705
- }), h.value = I;
1717
+ }), h.value = A;
1706
1718
  }, d = g([]), h = g([]), x = g(!0), m = g(!0), k = g(), E = async () => {
1707
1719
  m.value = !0;
1708
- const w = await Vt(c.className, s());
1709
- d.value = w.data, console.log("🚀 ~ loadData ~ _data.value:", d.value), i.total = w.totalCount, m.value = !1;
1720
+ const w = await xt(c.className, s());
1721
+ d.value = w.data, i.total = w.totalCount, m.value = !1;
1710
1722
  }, ee = g(!1);
1711
1723
  de(async () => {
1712
1724
  x.value = !0, r.value = await Ce(3, c.className, {
1713
1725
  svrStore: t,
1714
1726
  bpmStore: a
1715
- }), _(r.value.fields), R(r.value.fields), te(), v(r.value?.tabs?.[0]?.key || ""), k.value = r.value.actions, x.value = !1, ee.value = !0;
1727
+ }), _(r.value.fields), D(r.value.fields), te(), v(r.value?.tabs?.[0]?.key || ""), k.value = r.value.actions, x.value = !1, ee.value = !0;
1716
1728
  }), ct(() => {
1717
1729
  ee.value && E();
1718
1730
  });
@@ -1721,22 +1733,22 @@ const zo = Object.assign(Fe, {
1721
1733
  }, ne = (w) => {
1722
1734
  i.pageSize = w, E();
1723
1735
  };
1724
- function le(w, I, D, b, f) {
1736
+ function le(w, A, F, b, f) {
1725
1737
  switch (w) {
1726
1738
  case Z.Link:
1727
- o.push({ name: D, params: { workflowId: f } });
1739
+ o.push({ name: F, params: { workflowId: f } });
1728
1740
  break;
1729
1741
  default:
1730
1742
  console.warn("Unknown action type:", w);
1731
1743
  }
1732
1744
  }
1733
- function B(w, I, D) {
1745
+ function B(w, A, F) {
1734
1746
  switch (w) {
1735
1747
  case Z.Submit:
1736
- Kt(I, { filters: [{ key: "approverList", value: $(), operator: 2 }] }), n?.appContext.config.globalProperties.$notification.success("submit success!");
1748
+ zt(A, { filters: [{ key: "approverList", value: $(), operator: 2 }] }), n?.appContext.config.globalProperties.$notification.success("submit success!");
1737
1749
  break;
1738
1750
  case Z.Link:
1739
- o.push({ name: D });
1751
+ o.push({ name: F });
1740
1752
  break;
1741
1753
  default:
1742
1754
  console.warn("Unknown action type:", w);
@@ -1745,52 +1757,52 @@ const zo = Object.assign(Fe, {
1745
1757
  function $() {
1746
1758
  return t()?.userInfo?.email_address ?? "";
1747
1759
  }
1748
- function U(w, I) {
1749
- return typeof w != "string" || w.indexOf("{currentUserEmail}") === -1 ? w : w.replace(/{currentUserEmail}/g, I);
1760
+ function U(w, A) {
1761
+ return typeof w != "string" || w.indexOf("{currentUserEmail}") === -1 ? w : w.replace(/{currentUserEmail}/g, A);
1750
1762
  }
1751
1763
  function v(w) {
1752
- const I = r.value?.tabs?.find((D) => D.key === w)?.filters;
1753
- i.filters = I?.map((D) => ({
1754
- ...D,
1755
- value: U(D.value, $())
1764
+ const A = r.value?.tabs?.find((F) => F.key === w)?.filters;
1765
+ i.filters = A?.map((F) => ({
1766
+ ...F,
1767
+ value: U(F.value, $())
1756
1768
  })) || [], E();
1757
1769
  }
1758
- const A = g({}), y = g([]);
1759
- function R(w) {
1770
+ const I = g({}), y = g([]);
1771
+ function D(w) {
1760
1772
  if (!w) return [];
1761
- y.value = Object.entries(w).filter(([, I]) => I.isFiltered).map(([I, D]) => ({ fieldKey: I, fieldConfig: D }));
1773
+ y.value = Object.entries(w).filter(([, A]) => A.isFiltered).map(([A, F]) => ({ fieldKey: A, fieldConfig: F }));
1762
1774
  }
1763
1775
  const te = () => {
1764
1776
  const w = {};
1765
- y.value.forEach(({ fieldKey: I, fieldConfig: D }) => {
1766
- w[I] = {}, w[I].value = D.modelValue, w[I].operator = D.operator;
1767
- }), A.value = w;
1777
+ y.value.forEach(({ fieldKey: A, fieldConfig: F }) => {
1778
+ w[A] = {}, w[A].value = F.modelValue, w[A].operator = F.operator;
1779
+ }), I.value = w;
1768
1780
  }, ae = () => {
1769
1781
  i.current = 1, E();
1770
1782
  }, fe = () => {
1771
1783
  r.value && te(), ae();
1772
1784
  };
1773
- function Ae(w, I) {
1774
- return !(w.location !== "InTable" || w.title === "Update" && (I.status === 100 || I.status === -1));
1785
+ function Ie(w, A) {
1786
+ return !(w.location !== "InTable" || w.title === "Update" && (A.status === 100 || A.status === -1));
1775
1787
  }
1776
- return (w, I) => {
1777
- const D = S("a-space"), b = S("a-col"), f = S("a-button"), H = S("a-row"), C = S("a-card"), Y = S("a-tab-pane"), N = S("a-tabs"), ie = S("a-table");
1778
- return u(), V("div", rn, [
1779
- F($e, {
1788
+ return (w, A) => {
1789
+ const F = S("a-space"), b = S("a-col"), f = S("a-button"), H = S("a-row"), C = S("a-card"), Y = S("a-tab-pane"), N = S("a-tabs"), ie = S("a-table");
1790
+ return u(), V("div", cn, [
1791
+ R($e, {
1780
1792
  title: r.value?.banner.title ?? "",
1781
1793
  subTitle: r.value?.banner.subTitle ?? "",
1782
1794
  email: $()
1783
1795
  }, null, 8, ["title", "subTitle", "email"]),
1784
- F(C, null, {
1796
+ R(C, null, {
1785
1797
  default: p(() => [
1786
- T("div", ln, [
1787
- I[0] || (I[0] = T("h3", null, "Search Conditions", -1)),
1788
- F(D, { size: "medium" }, {
1798
+ T("div", un, [
1799
+ A[0] || (A[0] = T("h3", null, "Search Conditions", -1)),
1800
+ R(F, { size: "medium" }, {
1789
1801
  default: p(() => [
1790
1802
  (u(!0), V(K, null, z(k.value, (P) => (u(), V(K, {
1791
1803
  key: P.title
1792
1804
  }, [
1793
- P.location === "InOperation" ? (u(), L(we, {
1805
+ P.location === "InOperation" ? (u(), L(ye, {
1794
1806
  key: 0,
1795
1807
  config: P,
1796
1808
  onClick: B
@@ -1800,7 +1812,7 @@ const zo = Object.assign(Fe, {
1800
1812
  _: 1
1801
1813
  })
1802
1814
  ]),
1803
- F(H, { gutter: [24, 20] }, {
1815
+ R(H, { gutter: [24, 20] }, {
1804
1816
  default: p(() => [
1805
1817
  (u(!0), V(K, null, z(y.value, (P) => (u(), L(b, {
1806
1818
  key: P.fieldKey,
@@ -1808,39 +1820,39 @@ const zo = Object.assign(Fe, {
1808
1820
  class: "search-col"
1809
1821
  }, {
1810
1822
  default: p(() => [
1811
- F(Ke, {
1823
+ R(Ke, {
1812
1824
  name: P.fieldKey,
1813
1825
  config: P.fieldConfig,
1814
- modelValue: A.value[P.fieldKey].value,
1815
- "onUpdate:modelValue": (Q) => A.value[P.fieldKey].value = Q,
1826
+ modelValue: I.value[P.fieldKey].value,
1827
+ "onUpdate:modelValue": (Q) => I.value[P.fieldKey].value = Q,
1816
1828
  class: "form-field"
1817
1829
  }, null, 8, ["name", "config", "modelValue", "onUpdate:modelValue"])
1818
1830
  ]),
1819
1831
  _: 2
1820
1832
  }, 1024))), 128)),
1821
- F(b, {
1833
+ R(b, {
1822
1834
  span: 6,
1823
1835
  class: "search-col form-buttons"
1824
1836
  }, {
1825
1837
  default: p(() => [
1826
- F(D, { size: "medium" }, {
1838
+ R(F, { size: "medium" }, {
1827
1839
  default: p(() => [
1828
- F(f, {
1840
+ R(f, {
1829
1841
  type: "primary",
1830
1842
  size: "medium",
1831
1843
  onClick: ae
1832
1844
  }, {
1833
- default: p(() => I[1] || (I[1] = [
1845
+ default: p(() => A[1] || (A[1] = [
1834
1846
  q(" Search ", -1)
1835
1847
  ])),
1836
1848
  _: 1,
1837
1849
  __: [1]
1838
1850
  }),
1839
- F(f, {
1851
+ R(f, {
1840
1852
  size: "medium",
1841
1853
  onClick: fe
1842
1854
  }, {
1843
- default: p(() => I[2] || (I[2] = [
1855
+ default: p(() => A[2] || (A[2] = [
1844
1856
  q(" Reset ", -1)
1845
1857
  ])),
1846
1858
  _: 1,
@@ -1858,7 +1870,7 @@ const zo = Object.assign(Fe, {
1858
1870
  ]),
1859
1871
  _: 1
1860
1872
  }),
1861
- F(N, {
1873
+ R(N, {
1862
1874
  size: "large",
1863
1875
  onTabClick: v
1864
1876
  }, {
@@ -1870,7 +1882,7 @@ const zo = Object.assign(Fe, {
1870
1882
  ]),
1871
1883
  _: 1
1872
1884
  }),
1873
- F(ie, {
1885
+ R(ie, {
1874
1886
  columns: h.value,
1875
1887
  data: d.value,
1876
1888
  stripe: "",
@@ -1881,7 +1893,6 @@ const zo = Object.assign(Fe, {
1881
1893
  pageSize: i.pageSize,
1882
1894
  showTotal: i.showTotal,
1883
1895
  showPageSize: i.showPageSize,
1884
- showJumper: !0,
1885
1896
  pageSizeOptions: [10, 20, 50, 100]
1886
1897
  },
1887
1898
  loading: m.value,
@@ -1891,12 +1902,12 @@ const zo = Object.assign(Fe, {
1891
1902
  onPageSizeChange: ne
1892
1903
  }, {
1893
1904
  optional: p(({ record: P }) => [
1894
- F(D, { size: "small" }, {
1905
+ R(F, { size: "small" }, {
1895
1906
  default: p(() => [
1896
1907
  (u(!0), V(K, null, z(k.value, (Q) => (u(), V(K, {
1897
1908
  key: Q.title
1898
1909
  }, [
1899
- Ae(Q, P) ? (u(), L(we, {
1910
+ Ie(Q, P) ? (u(), L(ye, {
1900
1911
  key: 0,
1901
1912
  config: Q,
1902
1913
  size: "small",
@@ -1912,18 +1923,12 @@ const zo = Object.assign(Fe, {
1912
1923
  ]);
1913
1924
  };
1914
1925
  }
1915
- }), un = /* @__PURE__ */ ve(cn, [["__scopeId", "data-v-a83216cf"]]), vn = {
1926
+ }), fn = /* @__PURE__ */ _e(dn, [["__scopeId", "data-v-32799bcf"]]), wn = {
1916
1927
  install(e, t = {}) {
1917
- t.config && wt(t.config), t.router && e.provide(et, t.router), t.pinia && e.provide(to, t.pinia), t.useBpmStore && e.provide(ot, t.useBpmStore), t.useSvrStore && e.provide(nt, t.useSvrStore), t.triggers && e.provide(tt, t.triggers), t.customComps && e.provide(at, t.customComps), e.component("CreateView", bo), e.component("UpdateView", Uo), e.component("DetailView", sn), e.component("ListView", un);
1928
+ t.config && wt(t.config), t.router && e.provide(et, t.router), t.pinia && e.provide(no, t.pinia), t.useBpmStore && e.provide(ot, t.useBpmStore), t.useSvrStore && e.provide(nt, t.useSvrStore), t.triggers && e.provide(tt, t.triggers), t.customComps && e.provide(at, t.customComps), e.component("CreateView", ko), e.component("UpdateView", Lo), e.component("DetailView", ln), e.component("ListView", fn);
1918
1929
  }
1919
1930
  };
1920
1931
  export {
1921
- bo as CreateView,
1922
- sn as DetailView,
1923
- un as ListView,
1924
- to as PiniaKey,
1925
- et as RouterKey,
1926
- Uo as UpdateView,
1927
- vn as default
1932
+ wn as default
1928
1933
  };
1929
1934
  //# sourceMappingURL=index.es.js.map