@chase-shao/vue-component-lib 1.2.52 → 1.2.53

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 k, defineComponent as K, mergeModels as ne, useModel as ge, resolveComponent as V, createBlock as F, openBlock as d, onMounted as re, computed as O, withCtx as b, createElementBlock as $, Fragment as D, renderList as B, createVNode as N, nextTick as Ze, createTextVNode as Y, useTemplateRef as Ae, createElementVNode as h, createCommentVNode as ae, toDisplayString as W, resolveDynamicComponent as Te, renderSlot as se, inject as ce, getCurrentInstance as _e, reactive as Ue, normalizeStyle as et, normalizeClass as tt, unref as Ve, onActivated as nt } from "vue";
1
+ import { ref as k, defineComponent as j, mergeModels as ne, useModel as ge, resolveComponent as V, createBlock as F, openBlock as d, onMounted as re, computed as O, withCtx as b, createElementBlock as $, Fragment as D, renderList as K, createVNode as N, nextTick as Ze, createTextVNode as Y, useTemplateRef as Ae, createElementVNode as h, createCommentVNode as ae, toDisplayString as W, resolveDynamicComponent as Te, renderSlot as se, inject as ce, getCurrentInstance as _e, reactive as Ue, normalizeStyle as et, normalizeClass as tt, unref as Ve, onActivated as nt } from "vue";
2
2
  import ot from "axios";
3
3
  import { defineStore as at } from "pinia";
4
4
  import { Modal as st } from "@arco-design/web-vue";
@@ -15,7 +15,7 @@ const lt = at("main", () => ({
15
15
  for (; e[t] === null; )
16
16
  await it(100);
17
17
  return e[t];
18
- }, pe = (e) => {
18
+ }, fe = (e) => {
19
19
  const t = `0${e}`;
20
20
  return t.substring(t.length - 2);
21
21
  }, ve = (e, t = "yyyy-MM-dd hh:mm:ss") => {
@@ -25,19 +25,19 @@ const lt = at("main", () => ({
25
25
  const a = new Date(e), n = [
26
26
  ["yyyy", a.getFullYear()],
27
27
  ["yy", a.getFullYear().toString().substring(2)],
28
- ["MM", pe(a.getMonth() + 1)],
28
+ ["MM", fe(a.getMonth() + 1)],
29
29
  ["M", a.getMonth() + 1],
30
- ["dd", pe(a.getDate())],
30
+ ["dd", fe(a.getDate())],
31
31
  ["d", a.getDate()],
32
- ["hh", pe(a.getHours())],
32
+ ["hh", fe(a.getHours())],
33
33
  ["h", a.getHours()],
34
- ["mm", pe(a.getMinutes())],
34
+ ["mm", fe(a.getMinutes())],
35
35
  ["m", a.getMinutes()],
36
- ["ss", pe(a.getSeconds())],
36
+ ["ss", fe(a.getSeconds())],
37
37
  ["s", a.getSeconds()]
38
38
  ];
39
- for (const [o, l] of n)
40
- t = t.replace(o, l);
39
+ for (const [o, i] of n)
40
+ t = t.replace(o, i);
41
41
  return t;
42
42
  } catch {
43
43
  return e.toLocaleString();
@@ -85,28 +85,28 @@ const ze = async () => {
85
85
  ApproverEmail: (e) => e.svrStore()?.userInfo?.email_address ?? "test.email@dataGetter.ts",
86
86
  ApproverPositionCode: (e) => e.bpmStore()?.positionCode ?? 999,
87
87
  RejectReason: () => "Test Reject Reason"
88
- }, H = [];
88
+ }, B = [];
89
89
  for (let e = 0; e < 256; ++e)
90
- H.push((e + 256).toString(16).slice(1));
90
+ B.push((e + 256).toString(16).slice(1));
91
91
  function dt(e, t = 0) {
92
- return (H[e[t + 0]] + H[e[t + 1]] + H[e[t + 2]] + H[e[t + 3]] + "-" + H[e[t + 4]] + H[e[t + 5]] + "-" + H[e[t + 6]] + H[e[t + 7]] + "-" + H[e[t + 8]] + H[e[t + 9]] + "-" + H[e[t + 10]] + H[e[t + 11]] + H[e[t + 12]] + H[e[t + 13]] + H[e[t + 14]] + H[e[t + 15]]).toLowerCase();
92
+ return (B[e[t + 0]] + B[e[t + 1]] + B[e[t + 2]] + B[e[t + 3]] + "-" + B[e[t + 4]] + B[e[t + 5]] + "-" + B[e[t + 6]] + B[e[t + 7]] + "-" + B[e[t + 8]] + B[e[t + 9]] + "-" + B[e[t + 10]] + B[e[t + 11]] + B[e[t + 12]] + B[e[t + 13]] + B[e[t + 14]] + B[e[t + 15]]).toLowerCase();
93
93
  }
94
94
  let $e;
95
- const ft = new Uint8Array(16);
96
- function pt() {
95
+ const pt = new Uint8Array(16);
96
+ function ft() {
97
97
  if (!$e) {
98
98
  if (typeof crypto > "u" || !crypto.getRandomValues)
99
99
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
100
100
  $e = crypto.getRandomValues.bind(crypto);
101
101
  }
102
- return $e(ft);
102
+ return $e(pt);
103
103
  }
104
104
  const mt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Me = { randomUUID: mt };
105
105
  function Ee(e, t, a) {
106
106
  if (Me.randomUUID && !e)
107
107
  return Me.randomUUID();
108
108
  e = e || {};
109
- const n = e.random ?? e.rng?.() ?? pt();
109
+ const n = e.random ?? e.rng?.() ?? ft();
110
110
  if (n.length < 16)
111
111
  throw new Error("Random bytes length must be >= 16");
112
112
  return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, dt(n);
@@ -155,15 +155,16 @@ function gt(e, t, a) {
155
155
  loading: !1
156
156
  });
157
157
  } else o.attributeType === "Banner" && (n.banner.title = o.title, n.banner.subTitle = t === 0 ? o.subTitle : Fe(o.subTitle, e.workflowId.propertyValue));
158
- }), n.tabs && (n.tabs = n.tabs.sort((o, l) => o.order - l.order)), Object.entries(e).forEach(([o, l]) => {
158
+ }), n.tabs && (n.tabs = n.tabs.sort((o, i) => o.order - i.order)), Object.entries(e).forEach(([o, i]) => {
159
159
  if (o === "__ClassAttributes" || o === "className" || o === "id" || o === "deleteFlag" || o === "status" || o === "workFlowReason" || t !== 3 && o === "workflowId")
160
160
  return;
161
161
  const r = {
162
162
  validations: [],
163
163
  triggers: [],
164
164
  isFiltered: !1,
165
- dependent: ""
166
- }, { attributes: c, propertyValue: s } = l;
165
+ dependent: "",
166
+ operator: ""
167
+ }, { attributes: c, propertyValue: s } = i;
167
168
  switch (s) {
168
169
  case null:
169
170
  r.modelValue = "";
@@ -175,23 +176,23 @@ function gt(e, t, a) {
175
176
  r.modelValue = s;
176
177
  break;
177
178
  }
178
- o === "onBehalf" && t === 0 && (r.modelValue = Se.CurrentUserEmail(a)), c?.forEach((i) => {
179
- i.order || i.Order ? r.order = i.order ?? i.Order : i.attributeType === "UIControl" ? r.widget = {
180
- ...i,
179
+ o === "onBehalf" && t === 0 && (r.modelValue = Se.CurrentUserEmail(a)), c?.forEach((l) => {
180
+ l.order || l.Order ? r.order = l.order ?? l.Order : l.attributeType === "UIControl" ? r.widget = {
181
+ ...l,
181
182
  column: !0
182
- } : i.attributeType === "UIValidationControl" && t !== 3 ? r.widget?.widget !== "CheckBox" && r.validations.push(i) : i.attributeType === "UIListed" ? r.widget = {
183
- ...i,
183
+ } : l.attributeType === "UIValidationControl" && t !== 3 ? r.widget?.widget !== "CheckBox" && r.validations.push(l) : l.attributeType === "UIListed" ? r.widget = {
184
+ ...l,
184
185
  column: !0
185
- } : i.attributeType === "UIFiltered" ? r.isFiltered = !0 : i.dependentType ? r.dependent = Se[i.dependentType] ? Se[i.dependentType](a) : "" : i.eventType === "Change" && r.triggers?.push({
186
+ } : l.attributeType === "UIFiltered" ? (r.isFiltered = !0, r.operator = l.operatorType) : l.dependentType ? r.dependent = Se[l.dependentType] ? Se[l.dependentType](a) : "" : l.eventType === "Change" && r.triggers?.push({
186
187
  event: "change",
187
- handlerName: i.eventName
188
+ handlerName: l.eventName
188
189
  });
189
190
  }), n.fields[o] = r;
190
191
  }), n;
191
192
  }
192
193
  const ye = async (e, t, a, n) => {
193
- const l = await (await G()).get(`/General/${t}/${e}/page`, { params: n });
194
- return gt(l?.data, e, a);
194
+ const i = await (await G()).get(`/General/${t}/${e}/page`, { params: n });
195
+ return gt(i?.data, e, a);
195
196
  }, Oe = async (e, t, a) => (await (await G()).post(`/${t}/${e}/button/List`, null, { params: a }))?.data;
196
197
  async function vt(e, t) {
197
198
  const n = await (await G()).post(`/General/${e}/list`, t);
@@ -222,8 +223,8 @@ async function _t(e, t, a) {
222
223
  return o.data.length > 0 ? o.data[0] : 0;
223
224
  }
224
225
  async function yt(e, t, a, n) {
225
- const o = await G(), l = Fe(n, t);
226
- return (await o.put(l, a))?.data;
226
+ const o = await G(), i = Fe(n, t);
227
+ return (await o.put(i, a))?.data;
227
228
  }
228
229
  function Fe(e, t) {
229
230
  return e.replace(/{WorkflowId}/g, t);
@@ -243,15 +244,15 @@ function kt(e, t) {
243
244
  function Ct(e, t) {
244
245
  return e.replace(/{ClassName}/g, encodeURIComponent(t));
245
246
  }
246
- async function Vt(e, t, a, n, o, l, r, c) {
247
+ async function Vt(e, t, a, n, o, i, r, c) {
247
248
  const s = await G();
248
- let i = Fe(l, t);
249
- return i = wt(i, a), i = bt(i, n), i = ht(i, r), i = kt(i, c), i = Ct(i, e), (await s.put(i, o))?.data;
249
+ let l = Fe(i, t);
250
+ return l = wt(l, a), l = bt(l, n), l = ht(l, r), l = kt(l, c), l = Ct(l, e), (await s.put(l, o))?.data;
250
251
  }
251
252
  async function St(e, t) {
252
253
  const o = (await (await G()).get(e, { params: { value: t } }))?.data;
253
- return Object.entries(o).map(([l, r]) => ({
254
- value: l,
254
+ return Object.entries(o).map(([i, r]) => ({
255
+ value: i,
255
256
  label: r
256
257
  }));
257
258
  }
@@ -266,9 +267,9 @@ function xt(e) {
266
267
  };
267
268
  }
268
269
  async function Ge(e, t) {
269
- return (await (await G()).get(`/General/${e}/${t}/upload/get`))?.data.reduce((l, r) => {
270
+ return (await (await G()).get(`/General/${e}/${t}/upload/get`))?.data.reduce((i, r) => {
270
271
  const { category: c } = r;
271
- return l[c] || (l[c] = []), l[c].push(xt(r)), l;
272
+ return i[c] || (i[c] = []), i[c].push(xt(r)), i;
272
273
  }, {});
273
274
  }
274
275
  async function It(e, t) {
@@ -295,8 +296,8 @@ async function De(e) {
295
296
  const ue = (e, t) => {
296
297
  let a = "";
297
298
  return { res: e.every((o) => {
298
- const l = Nt(o, t);
299
- return l || (a = o.errorMessage), l;
299
+ const i = Nt(o, t);
300
+ return i || (a = o.errorMessage), i;
300
301
  }), errorMessages: a };
301
302
  }, Nt = (e, t) => {
302
303
  const { ruleName: a, ruleParameter: n } = e;
@@ -304,7 +305,7 @@ const ue = (e, t) => {
304
305
  }, Ft = {
305
306
  Regex: (e, t) => new RegExp(e).test(t),
306
307
  Required: (e, t) => !!t
307
- }, He = /* @__PURE__ */ K({
308
+ }, He = /* @__PURE__ */ j({
308
309
  __name: "InputText",
309
310
  props: /* @__PURE__ */ ne({
310
311
  fieldKey: {},
@@ -319,24 +320,24 @@ const ue = (e, t) => {
319
320
  }),
320
321
  emits: /* @__PURE__ */ ne(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
321
322
  setup(e, { expose: t, emit: a }) {
322
- const n = e, o = a, l = ge(e, "modelValue"), r = (i) => ue(n.validations, i), c = (i) => {
323
- o("input", i);
324
- }, s = (i) => {
325
- const y = r(i);
326
- o("error", y.res ? "" : y.errorMessages), n.triggers && n.triggers.length > 0 && n.triggers.forEach((f) => {
327
- f.event === "change" && o(f.event, f.handlerName, i);
323
+ const n = e, o = a, i = ge(e, "modelValue"), r = (l) => ue(n.validations, l), c = (l) => {
324
+ o("input", l);
325
+ }, s = (l) => {
326
+ const y = r(l);
327
+ o("error", y.res ? "" : y.errorMessages), n.triggers && n.triggers.length > 0 && n.triggers.forEach((p) => {
328
+ p.event === "change" && o(p.event, p.handlerName, l);
328
329
  });
329
330
  };
330
331
  return t({
331
332
  validate() {
332
- const i = r(n.modelValue);
333
- return o("error", i.res ? "" : i.errorMessages), i.res;
333
+ const l = r(n.modelValue);
334
+ return o("error", l.res ? "" : l.errorMessages), l.res;
334
335
  }
335
- }), (i, y) => {
336
- const f = V("AInput");
337
- return d(), F(f, {
338
- modelValue: l.value,
339
- "onUpdate:modelValue": y[0] || (y[0] = (S) => l.value = S),
336
+ }), (l, y) => {
337
+ const p = V("AInput");
338
+ return d(), F(p, {
339
+ modelValue: i.value,
340
+ "onUpdate:modelValue": y[0] || (y[0] = (S) => i.value = S),
340
341
  "allow-clear": "",
341
342
  disabled: n.readonly || n.config.Readonly,
342
343
  onInput: c,
@@ -344,7 +345,7 @@ const ue = (e, t) => {
344
345
  }, null, 8, ["modelValue", "disabled"]);
345
346
  };
346
347
  }
347
- }), Lt = /* @__PURE__ */ K({
348
+ }), Lt = /* @__PURE__ */ j({
348
349
  __name: "InputNumber",
349
350
  props: /* @__PURE__ */ ne({
350
351
  fieldKey: {},
@@ -359,40 +360,40 @@ const ue = (e, t) => {
359
360
  }),
360
361
  emits: /* @__PURE__ */ ne(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
361
362
  setup(e, { expose: t, emit: a }) {
362
- const n = e, o = a, l = ge(e, "modelValue"), r = k(100), c = k(0);
363
+ const n = e, o = a, i = ge(e, "modelValue"), r = k(100), c = k(0);
363
364
  re(() => {
364
- n.validations && n.validations.forEach((f) => {
365
- f.ruleName === "Max" && (r.value = f.ruleParameter), f.ruleName === "Min" && (c.value = f.ruleParameter);
365
+ n.validations && n.validations.forEach((p) => {
366
+ p.ruleName === "Max" && (r.value = p.ruleParameter), p.ruleName === "Min" && (c.value = p.ruleParameter);
366
367
  });
367
368
  });
368
- const s = (f) => ue(n.validations, f), i = (f) => {
369
- o("input", f);
370
- }, y = (f) => {
371
- const S = s(f);
369
+ const s = (p) => ue(n.validations, p), l = (p) => {
370
+ o("input", p);
371
+ }, y = (p) => {
372
+ const S = s(p);
372
373
  o("error", S.res ? "" : S.errorMessages), n.triggers && n.triggers.length > 0 && n.triggers.forEach((x) => {
373
- x.event === "change" && o(x.event, x.handlerName, f);
374
+ x.event === "change" && o(x.event, x.handlerName, p);
374
375
  });
375
376
  };
376
377
  return t({
377
378
  validate() {
378
- const f = s(n.modelValue);
379
- return o("error", f.res ? "" : f.errorMessages), f.res;
379
+ const p = s(n.modelValue);
380
+ return o("error", p.res ? "" : p.errorMessages), p.res;
380
381
  }
381
- }), (f, S) => {
382
+ }), (p, S) => {
382
383
  const x = V("AInputNumber");
383
384
  return d(), F(x, {
384
- modelValue: l.value,
385
- "onUpdate:modelValue": S[0] || (S[0] = (_) => l.value = _),
385
+ modelValue: i.value,
386
+ "onUpdate:modelValue": S[0] || (S[0] = (_) => i.value = _),
386
387
  clearable: "",
387
388
  disabled: n.readonly,
388
389
  min: c.value,
389
390
  max: r.value,
390
- onInput: i,
391
+ onInput: l,
391
392
  onChange: y
392
393
  }, null, 8, ["modelValue", "disabled", "min", "max"]);
393
394
  };
394
395
  }
395
- }), Be = /* @__PURE__ */ K({
396
+ }), Be = /* @__PURE__ */ j({
396
397
  __name: "SelectList",
397
398
  props: /* @__PURE__ */ ne({
398
399
  fieldKey: {},
@@ -407,54 +408,54 @@ const ue = (e, t) => {
407
408
  }),
408
409
  emits: /* @__PURE__ */ ne(["update:modelValue", "change"], ["update:modelValue"]),
409
410
  setup(e, { expose: t, emit: a }) {
410
- const n = e, o = a, l = k(!1), r = k(n.config.options ?? []), c = ge(e, "modelValue"), s = (f) => ue(n.validations, f);
411
+ const n = e, o = a, i = k(!1), r = k(n.config.options ?? []), c = ge(e, "modelValue"), s = (p) => ue(n.validations, p);
411
412
  O(() => {
412
- const f = {};
413
+ const p = {};
413
414
  return n.triggers && n.triggers.length > 0 && n.triggers.forEach((S) => {
414
- f[S.event] = (x) => {
415
+ p[S.event] = (x) => {
415
416
  o(S.event, S.handlerName, x);
416
417
  const _ = s(x);
417
418
  o("error", _.res ? "" : _.errorMessages);
418
419
  };
419
- }), f;
420
+ }), p;
420
421
  }), re(async () => {
421
422
  n.config.dataSourceProvider && (r.value = await St(n.config.dataSourceProvider));
422
423
  });
423
- const y = (f) => {
424
- o("update:modelValue", f);
425
- const S = s(f);
424
+ const y = (p) => {
425
+ o("update:modelValue", p);
426
+ const S = s(p);
426
427
  o("error", S.res ? "" : S.errorMessages), n.triggers && n.triggers.length > 0 && n.triggers.forEach((x) => {
427
- x.event === "change" && o(x.event, x.handlerName, f);
428
+ x.event === "change" && o(x.event, x.handlerName, p);
428
429
  });
429
430
  };
430
431
  return t({
431
432
  validate() {
432
- const f = s(n.modelValue);
433
- return o("error", f.res ? "" : f.errorMessages), f.res;
433
+ const p = s(n.modelValue);
434
+ return o("error", p.res ? "" : p.errorMessages), p.res;
434
435
  }
435
- }), (f, S) => {
436
+ }), (p, S) => {
436
437
  const x = V("AOption"), _ = V("ASelect");
437
438
  return d(), F(_, {
438
439
  "allow-clear": "",
439
440
  modelValue: c.value,
440
- "onUpdate:modelValue": S[0] || (S[0] = (T) => c.value = T),
441
- loading: l.value,
441
+ "onUpdate:modelValue": S[0] || (S[0] = (U) => c.value = U),
442
+ loading: i.value,
442
443
  "filter-option": !0,
443
444
  "allow-search": !0,
444
445
  onChange: y
445
446
  }, {
446
447
  default: b(() => [
447
- (d(!0), $(D, null, B(r.value, (T) => (d(), F(x, {
448
- key: T.value,
449
- value: T.value,
450
- label: T.label
448
+ (d(!0), $(D, null, K(r.value, (U) => (d(), F(x, {
449
+ key: U.value,
450
+ value: U.value,
451
+ label: U.label
451
452
  }, null, 8, ["value", "label"]))), 128))
452
453
  ]),
453
454
  _: 1
454
455
  }, 8, ["modelValue", "loading"]);
455
456
  };
456
457
  }
457
- }), Pt = /* @__PURE__ */ K({
458
+ }), Pt = /* @__PURE__ */ j({
458
459
  __name: "Cascader",
459
460
  props: {
460
461
  modelValue: {},
@@ -462,7 +463,7 @@ const ue = (e, t) => {
462
463
  },
463
464
  emits: ["update:modelValue", "change"],
464
465
  setup(e, { expose: t, emit: a }) {
465
- const n = e, o = a, l = k(n.config.options ?? []), r = (s) => {
466
+ const n = e, o = a, i = k(n.config.options ?? []), r = (s) => {
466
467
  o("update:modelValue", s), o("change", s);
467
468
  };
468
469
  re(async () => {
@@ -470,7 +471,7 @@ const ue = (e, t) => {
470
471
  const s = n.config.dataSourceProvider;
471
472
  if (s) {
472
473
  const y = await (await G()).get(s);
473
- l.value = y.data;
474
+ i.value = y.data;
474
475
  }
475
476
  }
476
477
  });
@@ -479,9 +480,9 @@ const ue = (e, t) => {
479
480
  validate() {
480
481
  return !0;
481
482
  }
482
- }), (s, i) => {
483
- const y = V("ACascader"), f = V("ASpace");
484
- return d(), F(f, {
483
+ }), (s, l) => {
484
+ const y = V("ACascader"), p = V("ASpace");
485
+ return d(), F(p, {
485
486
  direction: "vertical",
486
487
  size: "large"
487
488
  }, {
@@ -489,7 +490,7 @@ const ue = (e, t) => {
489
490
  N(y, {
490
491
  "field-names": c,
491
492
  "model-value": s.modelValue,
492
- options: l.value,
493
+ options: i.value,
493
494
  style: { width: "320px" },
494
495
  placeholder: "Please select ...",
495
496
  onChange: r
@@ -499,7 +500,7 @@ const ue = (e, t) => {
499
500
  });
500
501
  };
501
502
  }
502
- }), Rt = /* @__PURE__ */ K({
503
+ }), Rt = /* @__PURE__ */ j({
503
504
  __name: "FileUpload",
504
505
  props: {
505
506
  className: {},
@@ -512,26 +513,26 @@ const ue = (e, t) => {
512
513
  },
513
514
  emits: ["update:modelValue", "change", "error", "input"],
514
515
  setup(e, { expose: t, emit: a }) {
515
- const n = e, o = a, l = k({});
516
+ const n = e, o = a, i = k({});
516
517
  re(async () => {
517
518
  const _ = await ze();
518
- l.value = {
519
+ i.value = {
519
520
  Authorization: `Bearer ${_}`
520
521
  };
521
522
  });
522
- const r = (_) => ue(n.validations, _), s = Ne().apiBase, i = k(null), y = k("");
523
- function f(_, T, j) {
524
- return _.replace(/{WorkflowId}/g, T).replace(/{ClassName}/g, j);
523
+ const r = (_) => ue(n.validations, _), s = Ne().apiBase, l = k(null), y = k("");
524
+ function p(_, U, z) {
525
+ return _.replace(/{WorkflowId}/g, U).replace(/{ClassName}/g, z);
525
526
  }
526
527
  const S = O(() => {
527
528
  if (n.config.uploadURL) {
528
529
  const _ = s + n.config.uploadURL;
529
- return f(_, y.value, n.className);
530
+ return p(_, y.value, n.className);
530
531
  }
531
532
  return "";
532
533
  });
533
534
  function x(_) {
534
- const { file: T, name: j } = _, X = j ?? T.name;
535
+ const { file: U, name: z } = _, X = z ?? U.name;
535
536
  return new Promise((Q, Z) => {
536
537
  st.confirm({
537
538
  title: "Confirm Delete",
@@ -547,31 +548,31 @@ const ue = (e, t) => {
547
548
  }
548
549
  return t({
549
550
  submit(_) {
550
- i.value && (n.config.uploadURL && (y.value = _), Ze(() => {
551
- i.value.submit();
551
+ l.value && (n.config.uploadURL && (y.value = _), Ze(() => {
552
+ l.value.submit();
552
553
  }));
553
554
  },
554
555
  validate() {
555
556
  const _ = r(n.modelValue);
556
557
  return o("error", _.res ? "" : _.errorMessages), _.res;
557
558
  }
558
- }), (_, T) => {
559
- const j = V("a-button"), X = V("a-upload");
559
+ }), (_, U) => {
560
+ const z = V("a-button"), X = V("a-upload");
560
561
  return d(), F(X, {
561
562
  ref_key: "uploadRef",
562
- ref: i,
563
+ ref: l,
563
564
  "default-file-list": n.config.files,
564
565
  action: S.value,
565
566
  limit: n.config.allowedNumber,
566
567
  "auto-upload": !1,
567
568
  name: "files",
568
- headers: l.value,
569
+ headers: i.value,
569
570
  onBeforeRemove: x
570
571
  }, {
571
- "start-icon": b(() => T[0] || (T[0] = [])),
572
+ "start-icon": b(() => U[0] || (U[0] = [])),
572
573
  "upload-button": b(() => [
573
- N(j, { type: "primary" }, {
574
- default: b(() => T[1] || (T[1] = [
574
+ N(z, { type: "primary" }, {
575
+ default: b(() => U[1] || (U[1] = [
575
576
  Y("Select File", -1)
576
577
  ])),
577
578
  _: 1,
@@ -582,7 +583,7 @@ const ue = (e, t) => {
582
583
  }, 8, ["default-file-list", "action", "limit", "headers"]);
583
584
  };
584
585
  }
585
- }), Mt = /* @__PURE__ */ K({
586
+ }), Mt = /* @__PURE__ */ j({
586
587
  __name: "TextArea",
587
588
  props: {
588
589
  fieldKey: {},
@@ -594,21 +595,21 @@ const ue = (e, t) => {
594
595
  },
595
596
  emits: ["update:modelValue", "change", "error", "input"],
596
597
  setup(e, { expose: t, emit: a }) {
597
- const n = e, o = a, l = (s) => ue(n.validations, s), r = (s) => {
598
+ const n = e, o = a, i = (s) => ue(n.validations, s), r = (s) => {
598
599
  o("update:modelValue", s), o("input", s);
599
600
  }, c = (s) => {
600
601
  o("update:modelValue", s);
601
- const i = l(s);
602
- o("error", i.res ? "" : i.errorMessages), n.triggers && n.triggers.length > 0 && n.triggers.forEach((y) => {
602
+ const l = i(s);
603
+ o("error", l.res ? "" : l.errorMessages), n.triggers && n.triggers.length > 0 && n.triggers.forEach((y) => {
603
604
  y.event === "change" && o(y.event, y.handlerName, s);
604
605
  });
605
606
  };
606
607
  return t({
607
608
  validate() {
608
- const s = l(n.modelValue);
609
+ const s = i(n.modelValue);
609
610
  return o("error", s.res ? "" : s.errorMessages), s.res;
610
611
  }
611
- }), (s, i) => {
612
+ }), (s, l) => {
612
613
  const y = V("ATextarea");
613
614
  return d(), F(y, {
614
615
  "model-value": n.modelValue,
@@ -620,7 +621,7 @@ const ue = (e, t) => {
620
621
  }, null, 8, ["model-value", "disabled"]);
621
622
  };
622
623
  }
623
- }), Dt = /* @__PURE__ */ K({
624
+ }), Dt = /* @__PURE__ */ j({
624
625
  __name: "CheckBox",
625
626
  props: /* @__PURE__ */ ne({
626
627
  fieldKey: {},
@@ -635,9 +636,9 @@ const ue = (e, t) => {
635
636
  }),
636
637
  emits: /* @__PURE__ */ ne(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
637
638
  setup(e, { expose: t, emit: a }) {
638
- const n = e, o = a, l = ge(e, "modelValue"), r = (s) => ue(n.validations, s), c = (s) => {
639
- const i = r(s);
640
- o("error", i.res ? "" : i.errorMessages), n.triggers && n.triggers.length > 0 && n.triggers.forEach((y) => {
639
+ const n = e, o = a, i = ge(e, "modelValue"), r = (s) => ue(n.validations, s), c = (s) => {
640
+ const l = r(s);
641
+ o("error", l.res ? "" : l.errorMessages), n.triggers && n.triggers.length > 0 && n.triggers.forEach((y) => {
641
642
  y.event === "change" && o(y.event, y.handlerName, s);
642
643
  });
643
644
  };
@@ -646,16 +647,16 @@ const ue = (e, t) => {
646
647
  const s = r(n.modelValue);
647
648
  return o("error", s.res ? "" : s.errorMessages), s.res;
648
649
  }
649
- }), (s, i) => {
650
+ }), (s, l) => {
650
651
  const y = V("ACheckbox");
651
652
  return d(), F(y, {
652
- modelValue: l.value,
653
- "onUpdate:modelValue": i[0] || (i[0] = (f) => l.value = f),
653
+ modelValue: i.value,
654
+ "onUpdate:modelValue": l[0] || (l[0] = (p) => i.value = p),
654
655
  clearable: "",
655
656
  disabled: n.readonly || n.config.Readonly,
656
657
  onChange: c
657
658
  }, {
658
- default: b(() => i[1] || (i[1] = [
659
+ default: b(() => l[1] || (l[1] = [
659
660
  Y("Yes", -1)
660
661
  ])),
661
662
  _: 1,
@@ -669,7 +670,7 @@ const ue = (e, t) => {
669
670
  }, Kt = {
670
671
  key: 0,
671
672
  class: "err-msg"
672
- }, jt = /* @__PURE__ */ K({
673
+ }, jt = /* @__PURE__ */ j({
673
674
  __name: "index",
674
675
  props: /* @__PURE__ */ ne({
675
676
  config: {},
@@ -685,7 +686,7 @@ const ue = (e, t) => {
685
686
  }),
686
687
  emits: /* @__PURE__ */ ne(["update:modelValue", "change", "error"], ["update:modelValue"]),
687
688
  setup(e, { expose: t, emit: a }) {
688
- const n = e, o = a, l = ge(e, "modelValue"), r = Ae("widgetRef"), c = O(() => {
689
+ const n = e, o = a, i = ge(e, "modelValue"), r = Ae("widgetRef"), c = O(() => {
689
690
  switch (n.config?.widget?.widget) {
690
691
  case "TextBox":
691
692
  return He;
@@ -706,12 +707,12 @@ const ue = (e, t) => {
706
707
  default:
707
708
  return He;
708
709
  }
709
- }), s = k(""), i = (S) => {
710
+ }), s = k(""), l = (S) => {
710
711
  s.value = S;
711
712
  }, y = (S, x) => {
712
713
  o("change", S, x);
713
714
  };
714
- function f() {
715
+ function p() {
715
716
  return n.config?.widget?.widget === "File";
716
717
  }
717
718
  return t({
@@ -719,7 +720,7 @@ const ue = (e, t) => {
719
720
  return n.config?.widget?.widget === "File";
720
721
  },
721
722
  submit(S) {
722
- f() && r.value.submit(S);
723
+ p() && r.value.submit(S);
723
724
  },
724
725
  validate() {
725
726
  return r.value?.validate();
@@ -736,14 +737,14 @@ const ue = (e, t) => {
736
737
  (d(), F(Te(c.value), {
737
738
  ref_key: "widgetRef",
738
739
  ref: r,
739
- modelValue: l.value,
740
- "onUpdate:modelValue": x[0] || (x[0] = (_) => l.value = _),
740
+ modelValue: i.value,
741
+ "onUpdate:modelValue": x[0] || (x[0] = (_) => i.value = _),
741
742
  "field-key": n.fieldKey,
742
743
  config: n.config.widget,
743
744
  validations: n.config.validations,
744
745
  triggers: n.config.triggers,
745
746
  "class-name": n.className,
746
- onError: i,
747
+ onError: l,
747
748
  onChange: y
748
749
  }, null, 40, ["modelValue", "field-key", "config", "validations", "triggers", "class-name"])),
749
750
  s.value.length > 0 ? (d(), $("div", Kt, W(s.value), 1)) : ae("", !0)
@@ -755,7 +756,7 @@ const ue = (e, t) => {
755
756
  for (const [n, o] of t)
756
757
  a[n] = o;
757
758
  return a;
758
- }, Le = /* @__PURE__ */ de(jt, [["__scopeId", "data-v-1022c8cb"]]), zt = /* @__PURE__ */ K({
759
+ }, Le = /* @__PURE__ */ de(jt, [["__scopeId", "data-v-1022c8cb"]]), zt = /* @__PURE__ */ j({
759
760
  __name: "SubmitButton",
760
761
  props: {
761
762
  url: {},
@@ -768,21 +769,21 @@ const ue = (e, t) => {
768
769
  function o() {
769
770
  n("click", a.url, a.redirectType);
770
771
  }
771
- return (l, r) => {
772
+ return (i, r) => {
772
773
  const c = V("AButton");
773
774
  return d(), F(c, {
774
- loading: l.loading,
775
+ loading: i.loading,
775
776
  type: "primary",
776
777
  onClick: o
777
778
  }, {
778
779
  default: b(() => [
779
- se(l.$slots, "default")
780
+ se(i.$slots, "default")
780
781
  ]),
781
782
  _: 3
782
783
  }, 8, ["loading"]);
783
784
  };
784
785
  }
785
- }), Et = /* @__PURE__ */ K({
786
+ }), Et = /* @__PURE__ */ j({
786
787
  __name: "DetailLink",
787
788
  props: {
788
789
  url: {},
@@ -795,17 +796,17 @@ const ue = (e, t) => {
795
796
  function o() {
796
797
  n("click", a.url, a.redirectType);
797
798
  }
798
- return (l, r) => {
799
+ return (i, r) => {
799
800
  const c = V("ALink");
800
801
  return d(), F(c, { onClick: o }, {
801
802
  default: b(() => [
802
- se(l.$slots, "default")
803
+ se(i.$slots, "default")
803
804
  ]),
804
805
  _: 3
805
806
  });
806
807
  };
807
808
  }
808
- }), me = /* @__PURE__ */ K({
809
+ }), me = /* @__PURE__ */ j({
809
810
  __name: "index",
810
811
  props: {
811
812
  config: {},
@@ -814,10 +815,10 @@ const ue = (e, t) => {
814
815
  emits: ["click"],
815
816
  setup(e, { emit: t }) {
816
817
  const a = e, n = t;
817
- function o(s, i) {
818
- n("click", a.config.widget, s, i, a.config.title);
818
+ function o(s, l) {
819
+ n("click", a.config.widget, s, l, a.config.title);
819
820
  }
820
- const l = O(() => {
821
+ const i = O(() => {
821
822
  switch (a.config.location) {
822
823
  case "InOperation":
823
824
  return zt;
@@ -826,7 +827,7 @@ const ue = (e, t) => {
826
827
  return Et;
827
828
  }
828
829
  }), r = O(() => a.config.widget === J.Submit ? a.config.requestUrl ?? "" : a.config.widget === J.Link ? a.config.redirectUrl ?? "" : ""), c = O(() => a.config.redirectType ?? "Details");
829
- return (s, i) => (d(), F(Te(l.value), {
830
+ return (s, l) => (d(), F(Te(i.value), {
830
831
  url: r.value,
831
832
  "redirect-type": c.value,
832
833
  loading: s.loading,
@@ -855,7 +856,7 @@ function be() {
855
856
  function he() {
856
857
  return ce(Je, null);
857
858
  }
858
- const Gt = { class: "top-bar" }, Wt = { class: "banner-info" }, qt = { class: "page-title" }, Yt = { class: "page-subtitle" }, Jt = { class: "avatar-wrapper" }, Xt = { class: "user-email" }, Qt = /* @__PURE__ */ K({
859
+ const Gt = { class: "top-bar" }, Wt = { class: "banner-info" }, qt = { class: "page-title" }, Yt = { class: "page-subtitle" }, Jt = { class: "avatar-wrapper" }, Xt = { class: "user-email" }, Qt = /* @__PURE__ */ j({
859
860
  __name: "TopBar",
860
861
  props: {
861
862
  title: {},
@@ -897,24 +898,24 @@ const Gt = { class: "top-bar" }, Wt = { class: "banner-info" }, qt = { class: "p
897
898
  function Re(e) {
898
899
  const t = Ne(), a = [];
899
900
  if (t.fieldsGroup) {
900
- t.fieldsGroup.forEach((l) => {
901
- const r = l.keys.map((c) => e.find((s) => s.fieldKey === c)).filter(Boolean);
902
- r.length && a.push({ name: l.name, fields: r });
901
+ t.fieldsGroup.forEach((i) => {
902
+ const r = i.keys.map((c) => e.find((s) => s.fieldKey === c)).filter(Boolean);
903
+ r.length && a.push({ name: i.name, fields: r });
903
904
  });
904
- const n = t.fieldsGroup.flatMap((l) => l.keys), o = e.filter((l) => !n.includes(l.fieldKey));
905
+ const n = t.fieldsGroup.flatMap((i) => i.keys), o = e.filter((i) => !n.includes(i.fieldKey));
905
906
  return o.length && a.push({ name: "未分组字段", fields: o }), a;
906
907
  }
907
908
  }
908
909
  const Zt = { class: "page-container" }, en = { class: "page-body" }, tn = { class: "form-card" }, nn = { class: "form-fields-vertical" }, on = { class: "form-fields" }, an = {
909
910
  key: 0,
910
911
  class: "form-content"
911
- }, sn = { class: "page-footer" }, rn = { class: "action-container" }, ln = { class: "action-buttons" }, cn = /* @__PURE__ */ K({
912
+ }, sn = { class: "page-footer" }, rn = { class: "action-container" }, ln = { class: "action-buttons" }, cn = /* @__PURE__ */ j({
912
913
  __name: "CreateView",
913
914
  props: {
914
915
  className: {}
915
916
  },
916
917
  setup(e) {
917
- const t = be(), a = he(), n = we(), o = Pe(), l = Ae("dataWidgets"), r = _e(), c = e, s = k({
918
+ const t = be(), a = he(), n = we(), o = Pe(), i = Ae("dataWidgets"), r = _e(), c = e, s = k({
918
919
  pageType: "",
919
920
  fields: {},
920
921
  globalValidations: [],
@@ -922,47 +923,47 @@ const Zt = { class: "page-container" }, en = { class: "page-body" }, tn = { clas
922
923
  title: "",
923
924
  subTitle: ""
924
925
  }
925
- }), i = k([]), y = k({});
926
- function f(g) {
927
- return g ? Object.entries(g).map(([p, I]) => ({
928
- fieldKey: p,
926
+ }), l = k([]), y = k({});
927
+ function p(g) {
928
+ return g ? Object.entries(g).map(([m, I]) => ({
929
+ fieldKey: m,
929
930
  ...I
930
- })).filter((p) => p.widget && p.widget.widget !== "Hidden").filter((p) => !Z.value.includes(p.fieldKey)) : [];
931
+ })).filter((m) => m.widget && m.widget.widget !== "Hidden").filter((m) => !Z.value.includes(m.fieldKey)) : [];
931
932
  }
932
933
  function S(g) {
933
- return g ? Object.entries(g).filter(([p, I]) => I.dependent).reduce((p, [I, A]) => (p[I] = A.dependent, p), {}) : [];
934
+ return g ? Object.entries(g).filter(([m, I]) => I.dependent).reduce((m, [I, A]) => (m[I] = A.dependent, m), {}) : [];
934
935
  }
935
- const x = O(() => s.value?.actions ? [...s.value.actions].reverse() : []), _ = Ue({}), T = k(!1);
936
+ const x = O(() => s.value?.actions ? [...s.value.actions].reverse() : []), _ = Ue({}), U = k(!1);
936
937
  re(async () => {
937
- T.value = !0, s.value = await ye(ie.Create, c.className, {
938
+ U.value = !0, s.value = await ye(ie.Create, c.className, {
938
939
  svrStore: a,
939
940
  bpmStore: t
940
- }), i.value = f(s.value.fields), y.value = S(s.value.fields);
941
+ }), l.value = p(s.value.fields), y.value = S(s.value.fields);
941
942
  for (const g in s.value.fields) {
942
943
  if (s.value.fields[g].widget?.widget === "File") {
943
- const L = i.value.find((p) => p.fieldKey === g);
944
+ const L = l.value.find((m) => m.fieldKey === g);
944
945
  L && L.widget && (L.widget.files = []);
945
946
  }
946
947
  _[g] = s.value.fields[g].modelValue;
947
948
  }
948
- T.value = !1;
949
+ U.value = !1;
949
950
  });
950
- function j() {
951
+ function z() {
951
952
  return a()?.userInfo?.email_address ?? "";
952
953
  }
953
- async function X(g, L, p, I, A) {
954
+ async function X(g, L, m, I, A) {
954
955
  switch (L) {
955
956
  case J.Submit:
956
957
  let v = !0;
957
- if (l.value?.forEach((P) => {
958
+ if (i.value?.forEach((P) => {
958
959
  P?.validate && (P.validate() || (v = !1));
959
960
  }), !v) {
960
961
  r?.appContext.config.globalProperties.$message.error("form validation failed, please check the input fields");
961
962
  return;
962
963
  }
963
964
  g.loading = !0;
964
- const w = await _t(c.className, { ..._, ...y.value }, p);
965
- g.loading = !1, l.value?.forEach((P) => {
965
+ const w = await _t(c.className, { ..._, ...y.value }, m);
966
+ g.loading = !1, i.value?.forEach((P) => {
966
967
  P?.submit && P.submit(w.toString());
967
968
  }), r?.appContext.config.globalProperties.$notification.success("create success!"), n.push({ name: "Details", params: { workflowId: w.toString() } });
968
969
  break;
@@ -982,33 +983,33 @@ const Zt = { class: "page-container" }, en = { class: "page-body" }, tn = { clas
982
983
  "positionId"
983
984
  ]);
984
985
  function ee(g, L) {
985
- o[g]?.(L, Z), s.value && (i.value = f(s.value.fields));
986
+ o[g]?.(L, Z), s.value && (l.value = p(s.value.fields));
986
987
  }
987
- const te = O(() => Re(i.value));
988
+ const te = O(() => Re(l.value));
988
989
  return (g, L) => {
989
- const p = V("a-card"), I = V("a-spin");
990
+ const m = V("a-card"), I = V("a-spin");
990
991
  return d(), $("div", Zt, [
991
992
  N(ke, {
992
993
  title: s.value.banner.title,
993
994
  subTitle: s.value.banner.subTitle,
994
- email: j()
995
+ email: z()
995
996
  }, null, 8, ["title", "subTitle", "email"]),
996
997
  h("div", en, [
997
998
  N(I, {
998
- loading: T.value,
999
+ loading: U.value,
999
1000
  class: "form-container"
1000
1001
  }, {
1001
1002
  default: b(() => [
1002
1003
  h("div", tn, [
1003
1004
  h("div", nn, [
1004
- (d(!0), $(D, null, B(te.value, (A) => (d(), F(p, {
1005
+ (d(!0), $(D, null, K(te.value, (A) => (d(), F(m, {
1005
1006
  key: A.name,
1006
1007
  title: A.name,
1007
1008
  style: { "margin-bottom": "24px" }
1008
1009
  }, {
1009
1010
  default: b(() => [
1010
1011
  h("div", on, [
1011
- (d(!0), $(D, null, B(A.fields, (v) => (d(), F(Le, {
1012
+ (d(!0), $(D, null, K(A.fields, (v) => (d(), F(Le, {
1012
1013
  key: v.fieldKey,
1013
1014
  ref_for: !0,
1014
1015
  ref: "dataWidgets",
@@ -1037,7 +1038,7 @@ const Zt = { class: "page-container" }, en = { class: "page-body" }, tn = { clas
1037
1038
  h("div", rn, [
1038
1039
  se(g.$slots, "action", {}, void 0, !0),
1039
1040
  h("div", ln, [
1040
- (d(!0), $(D, null, B(x.value, (A) => (d(), F(me, {
1041
+ (d(!0), $(D, null, K(x.value, (A) => (d(), F(me, {
1041
1042
  key: A.Title,
1042
1043
  loading: A.loading,
1043
1044
  config: A,
@@ -1050,17 +1051,17 @@ const Zt = { class: "page-container" }, en = { class: "page-body" }, tn = { clas
1050
1051
  ]);
1051
1052
  };
1052
1053
  }
1053
- }), un = /* @__PURE__ */ de(cn, [["__scopeId", "data-v-ca3b2cdb"]]), dn = { class: "page-container" }, fn = { class: "page-body" }, pn = { class: "form-card" }, mn = { class: "form-fields-vertical" }, gn = { class: "form-fields" }, vn = {
1054
+ }), un = /* @__PURE__ */ de(cn, [["__scopeId", "data-v-ca3b2cdb"]]), dn = { class: "page-container" }, pn = { class: "page-body" }, fn = { class: "form-card" }, mn = { class: "form-fields-vertical" }, gn = { class: "form-fields" }, vn = {
1054
1055
  key: 0,
1055
1056
  class: "form-content"
1056
- }, _n = { class: "page-footer" }, yn = { class: "action-container" }, wn = { class: "action-buttons" }, bn = /* @__PURE__ */ K({
1057
+ }, _n = { class: "page-footer" }, yn = { class: "action-container" }, wn = { class: "action-buttons" }, bn = /* @__PURE__ */ j({
1057
1058
  __name: "UpdateView",
1058
1059
  props: {
1059
1060
  className: {},
1060
1061
  workflowId: {}
1061
1062
  },
1062
1063
  setup(e) {
1063
- const t = we(), a = Pe(), n = he(), o = be(), l = Ae("dataWidgets"), r = _e(), c = e, s = k({
1064
+ const t = we(), a = Pe(), n = he(), o = be(), i = Ae("dataWidgets"), r = _e(), c = e, s = k({
1064
1065
  pageType: "",
1065
1066
  fields: {},
1066
1067
  globalValidations: [],
@@ -1068,52 +1069,52 @@ const Zt = { class: "page-container" }, en = { class: "page-body" }, tn = { clas
1068
1069
  title: "",
1069
1070
  subTitle: ""
1070
1071
  }
1071
- }), i = k([]), y = k({});
1072
- function f(g) {
1073
- return g ? Object.entries(g).map(([p, I]) => ({
1074
- fieldKey: p,
1072
+ }), l = k([]), y = k({});
1073
+ function p(g) {
1074
+ return g ? Object.entries(g).map(([m, I]) => ({
1075
+ fieldKey: m,
1075
1076
  ...I
1076
- })).filter((p) => p.widget && p.widget.widget !== "Hidden").filter((p) => !Z.value.includes(p.fieldKey)) : [];
1077
+ })).filter((m) => m.widget && m.widget.widget !== "Hidden").filter((m) => !Z.value.includes(m.fieldKey)) : [];
1077
1078
  }
1078
1079
  function S(g) {
1079
- return g ? Object.entries(g).filter(([p, I]) => I.dependent).reduce((p, [I, A]) => (p[I] = A.dependent, p), {}) : [];
1080
+ return g ? Object.entries(g).filter(([m, I]) => I.dependent).reduce((m, [I, A]) => (m[I] = A.dependent, m), {}) : [];
1080
1081
  }
1081
- const x = O(() => s.value?.actions ? [...s.value.actions].reverse() : []), _ = Ue({}), T = k(!1);
1082
+ const x = O(() => s.value?.actions ? [...s.value.actions].reverse() : []), _ = Ue({}), U = k(!1);
1082
1083
  re(async () => {
1083
- T.value = !0, s.value = await ye(ie.Update, c.className, {
1084
+ U.value = !0, s.value = await ye(ie.Update, c.className, {
1084
1085
  svrStore: n,
1085
1086
  bpmStore: o
1086
1087
  }, {
1087
1088
  workflowId: c.workflowId
1088
1089
  });
1089
- const g = await Oe(ie.Update, c.className, { workflowId: c.workflowId, email: j() }), L = await Ge(c.className, c.workflowId);
1090
- s.value.actions = s.value.actions?.filter((p) => {
1091
- const I = g.find((A) => A.button === p.title);
1090
+ const g = await Oe(ie.Update, c.className, { workflowId: c.workflowId, email: z() }), L = await Ge(c.className, c.workflowId);
1091
+ s.value.actions = s.value.actions?.filter((m) => {
1092
+ const I = g.find((A) => A.button === m.title);
1092
1093
  return I ? I.isShow : !0;
1093
- }), i.value = f(s.value.fields), y.value = S(s.value.fields);
1094
- for (const p in s.value.fields) {
1095
- if (s.value.fields[p].widget?.widget === "File") {
1096
- const I = i.value.find((A) => A.fieldKey === p);
1097
- I && I.widget && (I.widget.files = L[p] ?? [], I.widget.removeFile = (A) => It(c.className, A));
1094
+ }), l.value = p(s.value.fields), y.value = S(s.value.fields);
1095
+ for (const m in s.value.fields) {
1096
+ if (s.value.fields[m].widget?.widget === "File") {
1097
+ const I = l.value.find((A) => A.fieldKey === m);
1098
+ I && I.widget && (I.widget.files = L[m] ?? [], I.widget.removeFile = (A) => It(c.className, A));
1098
1099
  }
1099
- _[p] = s.value.fields[p].modelValue;
1100
+ _[m] = s.value.fields[m].modelValue;
1100
1101
  }
1101
- T.value = !1;
1102
+ U.value = !1;
1102
1103
  });
1103
- function j() {
1104
+ function z() {
1104
1105
  return n()?.userInfo?.email_address ?? "";
1105
1106
  }
1106
- async function X(g, L, p, I, A) {
1107
+ async function X(g, L, m, I, A) {
1107
1108
  switch (L) {
1108
1109
  case J.Submit:
1109
1110
  let v = !0;
1110
- if (l.value?.forEach((w) => {
1111
+ if (i.value?.forEach((w) => {
1111
1112
  w?.validate && (w.validate() || (v = !1));
1112
1113
  }), !v) {
1113
1114
  r?.appContext.config.globalProperties.$message.error("form validation failed, please check the input fields");
1114
1115
  return;
1115
1116
  }
1116
- g.loading = !0, await yt(c.className, c.workflowId, { ..._, ...y.value }, p), g.loading = !1, l.value?.forEach((w) => {
1117
+ g.loading = !0, await yt(c.className, c.workflowId, { ..._, ...y.value }, m), g.loading = !1, i.value?.forEach((w) => {
1117
1118
  w?.submit && w.submit(c.workflowId);
1118
1119
  }), r?.appContext.config.globalProperties.$notification.success("update success!");
1119
1120
  break;
@@ -1133,33 +1134,33 @@ const Zt = { class: "page-container" }, en = { class: "page-body" }, tn = { clas
1133
1134
  "positionId"
1134
1135
  ]);
1135
1136
  function ee(g, L) {
1136
- a[g]?.(L, Z), s.value && (i.value = f(s.value.fields));
1137
+ a[g]?.(L, Z), s.value && (l.value = p(s.value.fields));
1137
1138
  }
1138
- const te = O(() => Re(i.value));
1139
+ const te = O(() => Re(l.value));
1139
1140
  return (g, L) => {
1140
- const p = V("a-card"), I = V("a-spin");
1141
+ const m = V("a-card"), I = V("a-spin");
1141
1142
  return d(), $("div", dn, [
1142
1143
  N(ke, {
1143
1144
  title: s.value.banner.title,
1144
1145
  subTitle: s.value.banner.subTitle,
1145
- email: j()
1146
+ email: z()
1146
1147
  }, null, 8, ["title", "subTitle", "email"]),
1147
- h("div", fn, [
1148
+ h("div", pn, [
1148
1149
  N(I, {
1149
- loading: T.value,
1150
+ loading: U.value,
1150
1151
  class: "form-container"
1151
1152
  }, {
1152
1153
  default: b(() => [
1153
- h("div", pn, [
1154
+ h("div", fn, [
1154
1155
  h("div", mn, [
1155
- (d(!0), $(D, null, B(te.value, (A) => (d(), F(p, {
1156
+ (d(!0), $(D, null, K(te.value, (A) => (d(), F(m, {
1156
1157
  key: A.name,
1157
1158
  title: A.name,
1158
1159
  style: { "margin-bottom": "24px" }
1159
1160
  }, {
1160
1161
  default: b(() => [
1161
1162
  h("div", gn, [
1162
- (d(!0), $(D, null, B(A.fields, (v) => (d(), F(Le, {
1163
+ (d(!0), $(D, null, K(A.fields, (v) => (d(), F(Le, {
1163
1164
  key: v.fieldKey,
1164
1165
  ref_for: !0,
1165
1166
  ref: "dataWidgets",
@@ -1188,7 +1189,7 @@ const Zt = { class: "page-container" }, en = { class: "page-body" }, tn = { clas
1188
1189
  h("div", yn, [
1189
1190
  se(g.$slots, "action", {}, void 0, !0),
1190
1191
  h("div", wn, [
1191
- (d(!0), $(D, null, B(x.value, (A) => (d(), F(me, {
1192
+ (d(!0), $(D, null, K(x.value, (A) => (d(), F(me, {
1192
1193
  key: A.Title,
1193
1194
  loading: A.loading,
1194
1195
  config: A,
@@ -1207,8 +1208,8 @@ function kn() {
1207
1208
  }
1208
1209
  const Cn = Symbol("ArcoConfigProvider"), Vn = "arco", Sn = "$arco", $n = (e) => {
1209
1210
  var t, a, n;
1210
- const o = _e(), l = ce(Cn, void 0);
1211
- return `${(n = (a = l?.prefixCls) != null ? a : (t = o?.appContext.config.globalProperties[Sn]) == null ? void 0 : t.classPrefix) != null ? n : Vn}-${e}`;
1211
+ const o = _e(), i = ce(Cn, void 0);
1212
+ return `${(n = (a = i?.prefixCls) != null ? a : (t = o?.appContext.config.globalProperties[Sn]) == null ? void 0 : t.classPrefix) != null ? n : Vn}-${e}`;
1212
1213
  }, xn = Object.prototype.toString;
1213
1214
  function In(e) {
1214
1215
  return xn.call(e) === "[object Number]" && e === e;
@@ -1218,7 +1219,7 @@ var An = (e, t) => {
1218
1219
  e[a] = n;
1219
1220
  return e;
1220
1221
  };
1221
- const Tn = K({
1222
+ const Tn = j({
1222
1223
  name: "IconDownload",
1223
1224
  props: {
1224
1225
  size: {
@@ -1258,7 +1259,7 @@ const Tn = K({
1258
1259
  };
1259
1260
  }
1260
1261
  }), Un = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1261
- function Nn(e, t, a, n, o, l) {
1262
+ function Nn(e, t, a, n, o, i) {
1262
1263
  return d(), $("svg", {
1263
1264
  viewBox: "0 0 48 48",
1264
1265
  fill: "none",
@@ -1287,14 +1288,14 @@ const Fn = Object.assign(xe, {
1287
1288
  }, jn = { class: "detail-field-wrapper" }, zn = { class: "detail-field" }, En = {
1288
1289
  key: 0,
1289
1290
  class: "detail-content"
1290
- }, On = { class: "page-footer" }, Gn = { class: "action-container" }, Wn = { class: "action-buttons" }, qn = /* @__PURE__ */ K({
1291
+ }, On = { class: "page-footer" }, Gn = { class: "action-container" }, Wn = { class: "action-buttons" }, qn = /* @__PURE__ */ j({
1291
1292
  __name: "DetailView",
1292
1293
  props: {
1293
1294
  className: {},
1294
1295
  workflowId: {}
1295
1296
  },
1296
1297
  setup(e) {
1297
- const t = he(), a = be(), n = Pe(), o = we(), l = kn(), r = _e(), c = e, s = k({
1298
+ const t = he(), a = be(), n = Pe(), o = we(), i = kn(), r = _e(), c = e, s = k({
1298
1299
  pageType: "",
1299
1300
  fields: {},
1300
1301
  globalValidations: [],
@@ -1302,16 +1303,16 @@ const Fn = Object.assign(xe, {
1302
1303
  title: "",
1303
1304
  subTitle: ""
1304
1305
  }
1305
- }), i = k([]);
1306
+ }), l = k([]);
1306
1307
  function y(v) {
1307
1308
  return v ? Object.entries(v).map(([P, C]) => (typeof C.modelValue == "boolean" ? C.fieldValue = C.modelValue ? "Yes" : "No" : C.fieldValue = C.modelValue, {
1308
1309
  fieldKey: P,
1309
1310
  ...C
1310
1311
  })).filter((P) => P.widget && P.widget.widget !== "Hidden") : [];
1311
1312
  }
1312
- const f = O(() => Re(i.value)), S = O(() => s.value?.actions ? [...s.value.actions].reverse() : []), x = k(!0), _ = (v, w) => {
1313
+ const p = O(() => Re(l.value)), S = O(() => s.value?.actions ? [...s.value.actions].reverse() : []), x = k(!0), _ = (v, w) => {
1313
1314
  const P = v.findIndex((C) => C.isCurrent);
1314
- return v.map((C, m) => {
1315
+ return v.map((C, f) => {
1315
1316
  const u = {
1316
1317
  id: C.id,
1317
1318
  title: "",
@@ -1322,8 +1323,8 @@ const Fn = Object.assign(xe, {
1322
1323
  time: ""
1323
1324
  };
1324
1325
  u.title = C.workflowProcessApprovers[0]?.name;
1325
- const U = C.workflowProcessApprovers[C.workflowProcessApprovers.length - 1], z = C.workflowHistorys[C.workflowHistorys.length - 1], q = z?.workflowHistoryApprovers[z?.workflowHistoryApprovers?.length - 1];
1326
- if (U && q && U?.email?.toLowerCase() !== q?.approverEmail?.toLowerCase() && (u.title = `${q.name}`, u.proxy = `Proxy: ${U.name}`), C.sort > 1 ? u.sub = "Approver Role: " + C.nodeName.replace("Submit", "").replace("Approve", "") : u.sub = "Submit Application", C.isCurrent && w !== -1)
1326
+ const T = C.workflowProcessApprovers[C.workflowProcessApprovers.length - 1], H = C.workflowHistorys[C.workflowHistorys.length - 1], q = H?.workflowHistoryApprovers[H?.workflowHistoryApprovers?.length - 1];
1327
+ if (T && q && T?.email?.toLowerCase() !== q?.approverEmail?.toLowerCase() && (u.title = `${q.name}`, u.proxy = `Proxy: ${T.name}`), C.sort > 1 ? u.sub = "Approver Role: " + C.nodeName.replace("Submit", "").replace("Approve", "") : u.sub = "Submit Application", C.isCurrent && w !== -1)
1327
1328
  u.desc = "In Approval", u.status = 1;
1328
1329
  else {
1329
1330
  const E = C.workflowHistorys[C.workflowHistorys.length - 1];
@@ -1338,12 +1339,12 @@ const Fn = Object.assign(xe, {
1338
1339
  const le = E.workflowHistoryApprovers[0];
1339
1340
  u.status = 3, u.desc = le?.reason ? `Rejected reason: ${le.reason}` : "Rejected";
1340
1341
  }
1341
- else m < P || P === -1 ? (u.status = 0, u.desc = "Skipped") : (u.status = 0, u.desc = "Pending Approval");
1342
+ else f < P || P === -1 ? (u.status = 0, u.desc = "Skipped") : (u.status = 0, u.desc = "Pending Approval");
1342
1343
  E && E.status;
1343
1344
  }
1344
1345
  return u;
1345
1346
  });
1346
- }, T = k([]), j = k(!1);
1347
+ }, U = k([]), z = k(!1);
1347
1348
  re(async () => {
1348
1349
  x.value = !0, s.value = await ye(ie.Details, c.className, {
1349
1350
  svrStore: t,
@@ -1353,16 +1354,16 @@ const Fn = Object.assign(xe, {
1353
1354
  });
1354
1355
  const v = await Oe(ie.Details, c.className, { workflowId: c.workflowId, email: Q() }), w = await Ge(c.className, c.workflowId);
1355
1356
  L.value = await At(), te.value = await De(c.workflowId), s.value.actions = s.value.actions?.filter((C) => {
1356
- const m = v.find((u) => u.button === C.title);
1357
- return m ? m.isShow : !0;
1358
- }), j.value = v.find((C) => C.button === "IsGlobal")?.isShow ?? !1, i.value = y(s.value.fields);
1357
+ const f = v.find((u) => u.button === C.title);
1358
+ return f ? f.isShow : !0;
1359
+ }), z.value = v.find((C) => C.button === "IsGlobal")?.isShow ?? !1, l.value = y(s.value.fields);
1359
1360
  for (const C in s.value.fields)
1360
1361
  if (s.value.fields[C].widget?.widget === "File") {
1361
- const m = i.value.find((u) => u.fieldKey === C);
1362
- m && m.widget && (m.widget.files = w[C] ?? []);
1362
+ const f = l.value.find((u) => u.fieldKey === C);
1363
+ f && f.widget && (f.widget.files = w[C] ?? []);
1363
1364
  }
1364
1365
  const P = await $t(c.className, c.workflowId);
1365
- T.value = _(P, 0), x.value = !1;
1366
+ U.value = _(P, 0), x.value = !1;
1366
1367
  });
1367
1368
  async function X(v, w) {
1368
1369
  return n[v]?.(w);
@@ -1370,14 +1371,14 @@ const Fn = Object.assign(xe, {
1370
1371
  function Q() {
1371
1372
  return t()?.userInfo?.email_address ?? "";
1372
1373
  }
1373
- async function Z(v, w, P, C, m) {
1374
+ async function Z(v, w, P, C, f) {
1374
1375
  try {
1375
1376
  switch (w) {
1376
1377
  case J.Submit:
1377
1378
  v.loading = !0;
1378
- const { reason: u, ifGlobal: U } = await X(m, { isGlobal: j.value }), z = m === "Approve" ? "100" : "-1";
1379
- await Vt(c.className, c.workflowId, Q(), u, [Number(c.workflowId)], P, z, U), v.loading = !1;
1380
- const q = m === "Approve" ? "approve success!" : "approve reject!";
1379
+ const { reason: u, ifGlobal: T } = await X(f, { isGlobal: z.value }), H = f === "Approve" ? "100" : "-1";
1380
+ await Vt(c.className, c.workflowId, Q(), u, [Number(c.workflowId)], P, H, T), v.loading = !1;
1381
+ const q = f === "Approve" ? "approve success!" : "approve reject!";
1381
1382
  r?.appContext.config.globalProperties.$notification.success(q);
1382
1383
  break;
1383
1384
  case J.Link:
@@ -1390,7 +1391,7 @@ const Fn = Object.assign(xe, {
1390
1391
  }
1391
1392
  }
1392
1393
  const ee = k(""), te = k([]), g = k(""), L = k([]);
1393
- async function p() {
1394
+ async function m() {
1394
1395
  if (!g.value) {
1395
1396
  r?.appContext.config.globalProperties.$message.error("Please select an approver");
1396
1397
  return;
@@ -1418,7 +1419,7 @@ const Fn = Object.assign(xe, {
1418
1419
  await Ut(c.workflowId, Q(), ee.value), ee.value = "", te.value = await De(c.workflowId), r?.appContext.config.globalProperties.$notification.success("Add Comment clicked!");
1419
1420
  }
1420
1421
  return (v, w) => {
1421
- const P = V("a-link"), C = V("a-space"), m = V("a-card"), u = V("a-option"), U = V("a-select"), z = V("a-button"), q = V("a-textarea"), E = V("a-list-item"), le = V("a-list"), Ce = V("a-spin");
1422
+ const P = V("a-link"), C = V("a-space"), f = V("a-card"), u = V("a-option"), T = V("a-select"), H = V("a-button"), q = V("a-textarea"), E = V("a-list-item"), le = V("a-list"), Ce = V("a-spin");
1422
1423
  return d(), $("div", Ln, [
1423
1424
  N(ke, {
1424
1425
  title: s.value.banner.title,
@@ -1432,22 +1433,22 @@ const Fn = Object.assign(xe, {
1432
1433
  }, {
1433
1434
  default: b(() => [
1434
1435
  h("div", Rn, [
1435
- (d(), F(Te(Ve(l).Steps), { steps: T.value }, null, 8, ["steps"])),
1436
+ (d(), F(Te(Ve(i).Steps), { steps: U.value }, null, 8, ["steps"])),
1436
1437
  h("div", Mn, [
1437
- (d(!0), $(D, null, B(f.value, (R) => (d(), F(m, {
1438
+ (d(!0), $(D, null, K(p.value, (R) => (d(), F(f, {
1438
1439
  key: R.name,
1439
1440
  title: R.name,
1440
1441
  style: { "margin-bottom": "24px" }
1441
1442
  }, {
1442
1443
  default: b(() => [
1443
1444
  h("div", Dn, [
1444
- (d(!0), $(D, null, B(R.fields, (oe) => (d(), $("div", {
1445
+ (d(!0), $(D, null, K(R.fields, (oe) => (d(), $("div", {
1445
1446
  key: oe.fieldKey,
1446
1447
  class: "detail-field-wrapper"
1447
1448
  }, [
1448
1449
  h("div", Hn, [
1449
1450
  h("div", Bn, W(oe.widget?.title), 1),
1450
- oe.widget?.widget === "File" ? (d(!0), $(D, { key: 0 }, B(oe.widget.files, (M) => (d(), $("div", {
1451
+ oe.widget?.widget === "File" ? (d(!0), $(D, { key: 0 }, K(oe.widget.files, (M) => (d(), $("div", {
1451
1452
  class: "field-value",
1452
1453
  key: M.id
1453
1454
  }, [
@@ -1475,12 +1476,12 @@ const Fn = Object.assign(xe, {
1475
1476
  }, 1032, ["title"]))), 128)),
1476
1477
  N(C, null, {
1477
1478
  default: b(() => [
1478
- N(U, {
1479
+ N(T, {
1479
1480
  modelValue: g.value,
1480
1481
  "onUpdate:modelValue": w[0] || (w[0] = (R) => g.value = R)
1481
1482
  }, {
1482
1483
  default: b(() => [
1483
- (d(!0), $(D, null, B(L.value, (R) => (d(), F(u, {
1484
+ (d(!0), $(D, null, K(L.value, (R) => (d(), F(u, {
1484
1485
  key: R.value,
1485
1486
  value: R.value
1486
1487
  }, {
@@ -1492,9 +1493,9 @@ const Fn = Object.assign(xe, {
1492
1493
  ]),
1493
1494
  _: 1
1494
1495
  }, 8, ["modelValue"]),
1495
- N(z, {
1496
+ N(H, {
1496
1497
  type: "primary",
1497
- onClick: p
1498
+ onClick: m
1498
1499
  }, {
1499
1500
  default: b(() => w[2] || (w[2] = [
1500
1501
  Y("Assign Approver", -1)
@@ -1512,7 +1513,7 @@ const Fn = Object.assign(xe, {
1512
1513
  modelValue: ee.value,
1513
1514
  "onUpdate:modelValue": w[1] || (w[1] = (R) => ee.value = R)
1514
1515
  }, null, 8, ["modelValue"]),
1515
- N(z, {
1516
+ N(H, {
1516
1517
  type: "primary",
1517
1518
  onClick: A
1518
1519
  }, {
@@ -1529,7 +1530,7 @@ const Fn = Object.assign(xe, {
1529
1530
  Y(" Comments History ", -1)
1530
1531
  ])),
1531
1532
  default: b(() => [
1532
- (d(!0), $(D, null, B(te.value, (R) => (d(), F(E, {
1533
+ (d(!0), $(D, null, K(te.value, (R) => (d(), F(E, {
1533
1534
  key: R.associator
1534
1535
  }, {
1535
1536
  default: b(() => [
@@ -1553,7 +1554,7 @@ const Fn = Object.assign(xe, {
1553
1554
  h("div", Gn, [
1554
1555
  se(v.$slots, "action", {}, void 0, !0),
1555
1556
  h("div", Wn, [
1556
- (d(!0), $(D, null, B(S.value, (R) => (d(), F(me, {
1557
+ (d(!0), $(D, null, K(S.value, (R) => (d(), F(me, {
1557
1558
  key: R.Title,
1558
1559
  loading: R.loading,
1559
1560
  config: R,
@@ -1566,14 +1567,14 @@ const Fn = Object.assign(xe, {
1566
1567
  ]);
1567
1568
  };
1568
1569
  }
1569
- }), Yn = /* @__PURE__ */ de(qn, [["__scopeId", "data-v-9d23c75b"]]), Jn = { class: "list-container" }, Xn = { class: "query-title" }, Qn = { class: "field-wrapper" }, Zn = /* @__PURE__ */ K({
1570
+ }), Yn = /* @__PURE__ */ de(qn, [["__scopeId", "data-v-9d23c75b"]]), Jn = { class: "list-container" }, Xn = { class: "query-title" }, Qn = { class: "field-wrapper" }, Zn = /* @__PURE__ */ j({
1570
1571
  name: "ListView",
1571
1572
  __name: "ListView",
1572
1573
  props: {
1573
1574
  className: {}
1574
1575
  },
1575
1576
  setup(e) {
1576
- const t = he(), a = be(), n = we(), o = e, l = k(), r = Ue({
1577
+ const t = he(), a = be(), n = we(), o = e, i = k(), r = Ue({
1577
1578
  current: 1,
1578
1579
  total: 0,
1579
1580
  pageSize: 10,
@@ -1583,15 +1584,16 @@ const Fn = Object.assign(xe, {
1583
1584
  filters: []
1584
1585
  });
1585
1586
  function c() {
1586
- const m = Object.entries(p.value).filter(([, u]) => u && u !== "").map(([u, U]) => ({
1587
+ const f = Object.entries(m.value).filter(([, { value: u }]) => u && u !== "").map(([u, { value: T, operator: H }]) => ({
1587
1588
  key: u,
1588
- value: U
1589
- // operator: 'like' // 根据实际需要调整操作符
1589
+ value: T,
1590
+ operator: H
1591
+ // 根据实际需要调整操作符
1590
1592
  }));
1591
- return {
1593
+ return console.log("🚀 ~ createListParams ~ searchFilters:", m.value), {
1592
1594
  pageNumber: r.current,
1593
1595
  pageSize: r.pageSize,
1594
- filters: [...r.filters, ...m],
1596
+ filters: [...r.filters, ...f],
1595
1597
  sorts: [{
1596
1598
  key: "status",
1597
1599
  type: 0
@@ -1599,14 +1601,14 @@ const Fn = Object.assign(xe, {
1599
1601
  };
1600
1602
  }
1601
1603
  const s = O(() => ({
1602
- x: f.value.length * 150 + 250
1604
+ x: p.value.length * 150 + 250
1603
1605
  // 只设置横向滚动
1604
1606
  // 移除 y 属性,让表格高度自适应
1605
- })), i = (m) => {
1606
- const u = Object.entries(m).filter(([, U]) => U.widget?.column).map(([U, z], q) => ({
1607
- title: z.widget.title,
1608
- dataIndex: U.charAt(0).toLowerCase() + U.slice(1),
1609
- order: z.order,
1607
+ })), l = (f) => {
1608
+ const u = Object.entries(f).filter(([, T]) => T.widget?.column).map(([T, H], q) => ({
1609
+ title: H.widget.title,
1610
+ dataIndex: T.charAt(0).toLowerCase() + T.slice(1),
1611
+ order: H.order,
1610
1612
  ellipsis: !0,
1611
1613
  tooltip: !0,
1612
1614
  width: 150,
@@ -1614,7 +1616,7 @@ const Fn = Object.assign(xe, {
1614
1616
  // 启用最小宽度
1615
1617
  resizable: !0
1616
1618
  // 启用列宽调整
1617
- })).sort((U, z) => U.order - z.order);
1619
+ })).sort((T, H) => T.order - H.order);
1618
1620
  u.push({
1619
1621
  title: "Actions",
1620
1622
  slotName: "optional",
@@ -1623,80 +1625,80 @@ const Fn = Object.assign(xe, {
1623
1625
  minWidth: 200,
1624
1626
  fixed: "right",
1625
1627
  resizable: !1
1626
- }), f.value = u;
1627
- }, y = k([]), f = k([]), S = k(!0), x = k(!0), _ = k(), T = async () => {
1628
+ }), p.value = u;
1629
+ }, y = k([]), p = k([]), S = k(!0), x = k(!0), _ = k(), U = async () => {
1628
1630
  x.value = !0;
1629
- const m = await vt(o.className, c());
1630
- y.value = m.data, r.total = m.totalCount, x.value = !1;
1631
- }, j = k(!1);
1631
+ const f = await vt(o.className, c());
1632
+ y.value = f.data, r.total = f.totalCount, x.value = !1;
1633
+ }, z = k(!1);
1632
1634
  re(async () => {
1633
- S.value = !0, l.value = await ye(3, o.className, {
1635
+ S.value = !0, i.value = await ye(3, o.className, {
1634
1636
  svrStore: t,
1635
1637
  bpmStore: a
1636
- }), i(l.value.fields), A(l.value.fields), v(), L(l.value?.tabs?.[0]?.key || ""), _.value = l.value.actions, S.value = !1, j.value = !0;
1638
+ }), l(i.value.fields), A(i.value.fields), v(), L(i.value?.tabs?.[0]?.key || ""), _.value = i.value.actions, S.value = !1, z.value = !0;
1637
1639
  }), nt(() => {
1638
- j.value && T();
1640
+ z.value && U();
1639
1641
  });
1640
- const X = (m) => {
1641
- r.current = m, T();
1642
- }, Q = (m) => {
1643
- r.pageSize = m, T();
1642
+ const X = (f) => {
1643
+ r.current = f, U();
1644
+ }, Q = (f) => {
1645
+ r.pageSize = f, U();
1644
1646
  };
1645
- function Z(m, u, U, z, q) {
1646
- switch (m) {
1647
+ function Z(f, u, T, H, q) {
1648
+ switch (f) {
1647
1649
  case J.Link:
1648
- n.push({ name: U, params: { workflowId: q } });
1650
+ n.push({ name: T, params: { workflowId: q } });
1649
1651
  break;
1650
1652
  default:
1651
- console.warn("Unknown action type:", m);
1653
+ console.warn("Unknown action type:", f);
1652
1654
  }
1653
1655
  }
1654
- function ee(m, u, U) {
1655
- switch (m) {
1656
+ function ee(f, u, T) {
1657
+ switch (f) {
1656
1658
  case J.Link:
1657
- n.push({ name: U });
1659
+ n.push({ name: T });
1658
1660
  break;
1659
1661
  default:
1660
- console.warn("Unknown action type:", m);
1662
+ console.warn("Unknown action type:", f);
1661
1663
  }
1662
1664
  }
1663
1665
  function te() {
1664
1666
  return t()?.userInfo?.email_address ?? "";
1665
1667
  }
1666
- function g(m, u) {
1667
- return m.replace(/{currentUserEmail}/g, u);
1668
+ function g(f, u) {
1669
+ return f.replace(/{currentUserEmail}/g, u);
1668
1670
  }
1669
- function L(m) {
1670
- const u = l.value?.tabs?.find((U) => U.key === m)?.filters;
1671
- r.filters = u?.map((U) => ({
1672
- ...U,
1673
- value: g(U.value, te())
1674
- })) || [], T();
1671
+ function L(f) {
1672
+ const u = i.value?.tabs?.find((T) => T.key === f)?.filters;
1673
+ r.filters = u?.map((T) => ({
1674
+ ...T,
1675
+ value: g(T.value, te())
1676
+ })) || [], U();
1675
1677
  }
1676
- const p = k({}), I = k([]);
1677
- function A(m) {
1678
- if (!m) return [];
1679
- I.value = Object.entries(m).filter(([, u]) => u.isFiltered).map(([u, U]) => ({ fieldKey: u, fieldConfig: U }));
1678
+ const m = k({}), I = k([]);
1679
+ function A(f) {
1680
+ if (!f) return [];
1681
+ I.value = Object.entries(f).filter(([, u]) => u.isFiltered).map(([u, T]) => ({ fieldKey: u, fieldConfig: T }));
1680
1682
  }
1681
1683
  const v = () => {
1682
- const m = {};
1683
- I.value.forEach(({ fieldKey: u, fieldConfig: U }) => {
1684
- m[u] = U.modelValue;
1685
- }), p.value = m;
1684
+ const f = {};
1685
+ I.value.forEach(({ fieldKey: u, fieldConfig: T }) => {
1686
+ f[u] = {}, f[u].value = T.modelValue, f[u].operator = T.operator;
1687
+ }), m.value = f;
1686
1688
  }, w = () => {
1687
- r.current = 1, T();
1689
+ r.current = 1, U();
1688
1690
  }, P = () => {
1689
- l.value && v(), w();
1691
+ i.value && v(), w();
1690
1692
  };
1691
- function C(m, u) {
1692
- return !(m.location !== "InTable" || m.title === "Update" && (u.status === 100 || u.status === -1));
1693
+ function C(f, u) {
1694
+ return !(f.location !== "InTable" || f.title === "Update" && (u.status === 100 || u.status === -1));
1693
1695
  }
1694
- return (m, u) => {
1695
- const U = V("a-col"), z = V("a-button"), q = V("a-space"), E = V("a-row"), le = V("a-card"), Ce = V("a-tab-pane"), R = V("a-tabs"), oe = V("a-table");
1696
+ return (f, u) => {
1697
+ const T = V("a-col"), H = V("a-button"), q = V("a-space"), E = V("a-row"), le = V("a-card"), Ce = V("a-tab-pane"), R = V("a-tabs"), oe = V("a-table");
1696
1698
  return d(), $("div", Jn, [
1697
1699
  N(ke, {
1698
- title: l.value?.banner.title ?? "",
1699
- subTitle: l.value?.banner.subTitle ?? "",
1700
+ title: i.value?.banner.title ?? "",
1701
+ subTitle: i.value?.banner.subTitle ?? "",
1700
1702
  email: te()
1701
1703
  }, null, 8, ["title", "subTitle", "email"]),
1702
1704
  N(le, null, {
@@ -1704,7 +1706,7 @@ const Fn = Object.assign(xe, {
1704
1706
  h("div", Xn, [
1705
1707
  u[0] || (u[0] = h("h3", null, "Search Conditions", -1)),
1706
1708
  h("div", null, [
1707
- (d(!0), $(D, null, B(_.value, (M) => (d(), $(D, {
1709
+ (d(!0), $(D, null, K(_.value, (M) => (d(), $(D, {
1708
1710
  key: M.title
1709
1711
  }, [
1710
1712
  M.location === "InOperation" ? (d(), F(me, {
@@ -1720,7 +1722,7 @@ const Fn = Object.assign(xe, {
1720
1722
  class: "search-row"
1721
1723
  }, {
1722
1724
  default: b(() => [
1723
- (d(!0), $(D, null, B(I.value, (M) => (d(), F(U, {
1725
+ (d(!0), $(D, null, K(I.value, (M) => (d(), F(T, {
1724
1726
  key: M.fieldKey,
1725
1727
  span: 6,
1726
1728
  class: "search-col"
@@ -1729,14 +1731,14 @@ const Fn = Object.assign(xe, {
1729
1731
  N(Le, {
1730
1732
  name: M.fieldKey,
1731
1733
  config: M.fieldConfig,
1732
- modelValue: p.value[M.fieldKey],
1733
- "onUpdate:modelValue": (fe) => p.value[M.fieldKey] = fe,
1734
+ modelValue: m.value[M.fieldKey].value,
1735
+ "onUpdate:modelValue": (pe) => m.value[M.fieldKey].value = pe,
1734
1736
  class: "form-field"
1735
1737
  }, null, 8, ["name", "config", "modelValue", "onUpdate:modelValue"])
1736
1738
  ]),
1737
1739
  _: 2
1738
1740
  }, 1024))), 128)),
1739
- N(U, {
1741
+ N(T, {
1740
1742
  span: 6,
1741
1743
  class: "search-col"
1742
1744
  }, {
@@ -1744,7 +1746,7 @@ const Fn = Object.assign(xe, {
1744
1746
  h("div", Qn, [
1745
1747
  N(q, { size: "medium" }, {
1746
1748
  default: b(() => [
1747
- N(z, {
1749
+ N(H, {
1748
1750
  type: "primary",
1749
1751
  size: "medium",
1750
1752
  onClick: w
@@ -1755,7 +1757,7 @@ const Fn = Object.assign(xe, {
1755
1757
  _: 1,
1756
1758
  __: [1]
1757
1759
  }),
1758
- N(z, {
1760
+ N(H, {
1759
1761
  size: "medium",
1760
1762
  onClick: P
1761
1763
  }, {
@@ -1783,7 +1785,7 @@ const Fn = Object.assign(xe, {
1783
1785
  onTabClick: L
1784
1786
  }, {
1785
1787
  default: b(() => [
1786
- (d(!0), $(D, null, B(l.value?.tabs, (M) => (d(), F(Ce, {
1788
+ (d(!0), $(D, null, K(i.value?.tabs, (M) => (d(), F(Ce, {
1787
1789
  key: M.key,
1788
1790
  title: M.title
1789
1791
  }, null, 8, ["title"]))), 128))
@@ -1791,7 +1793,7 @@ const Fn = Object.assign(xe, {
1791
1793
  _: 1
1792
1794
  }),
1793
1795
  N(oe, {
1794
- columns: f.value,
1796
+ columns: p.value,
1795
1797
  data: y.value,
1796
1798
  stripe: "",
1797
1799
  border: "",
@@ -1813,12 +1815,12 @@ const Fn = Object.assign(xe, {
1813
1815
  optional: b(({ record: M }) => [
1814
1816
  N(q, { size: "small" }, {
1815
1817
  default: b(() => [
1816
- (d(!0), $(D, null, B(_.value, (fe) => (d(), $(D, {
1817
- key: fe.title
1818
+ (d(!0), $(D, null, K(_.value, (pe) => (d(), $(D, {
1819
+ key: pe.title
1818
1820
  }, [
1819
- C(fe, M) ? (d(), F(me, {
1821
+ C(pe, M) ? (d(), F(me, {
1820
1822
  key: 0,
1821
- config: fe,
1823
+ config: pe,
1822
1824
  size: "small",
1823
1825
  onClick: (...Qe) => Z(...Qe, M.workflowId)
1824
1826
  }, null, 8, ["config", "onClick"])) : ae("", !0)
@@ -1832,7 +1834,7 @@ const Fn = Object.assign(xe, {
1832
1834
  ]);
1833
1835
  };
1834
1836
  }
1835
- }), eo = /* @__PURE__ */ de(Zn, [["__scopeId", "data-v-1fecbf78"]]), ro = {
1837
+ }), eo = /* @__PURE__ */ de(Zn, [["__scopeId", "data-v-02400871"]]), ro = {
1836
1838
  install(e, t = {}) {
1837
1839
  t.config && ut(t.config), t.router && e.provide(We, t.router), t.pinia && e.provide(Ot, t.pinia), t.useBpmStore && e.provide(Ye, t.useBpmStore), t.useSvrStore && e.provide(Je, t.useSvrStore), t.triggers && e.provide(qe, t.triggers), t.customComps && e.provide(Xe, t.customComps), e.component("CreateView", un), e.component("UpdateView", hn), e.component("DetailView", Yn), e.component("ListView", eo);
1838
1840
  }