@chase-shao/vue-component-lib 1.2.55 → 1.2.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,11 +1,11 @@
1
- import { ref as h, defineComponent as j, mergeModels as ne, useModel as _e, resolveComponent as V, createBlock as U, openBlock as u, onMounted as ce, computed as q, withCtx as y, createElementBlock as x, Fragment as M, renderList as B, createVNode as F, nextTick as nt, createTextVNode as O, useTemplateRef as Fe, createElementVNode as k, createCommentVNode as te, toDisplayString as W, resolveDynamicComponent as Le, renderSlot as le, inject as fe, getCurrentInstance as we, reactive as Pe, normalizeStyle as ot, normalizeClass as at, unref as $e, onActivated as st } from "vue";
2
- import rt from "axios";
3
- import { defineStore as it } from "pinia";
4
- import { Modal as lt } from "@arco-design/web-vue";
5
- import { useRouter as ct } from "vue-router";
6
- const ut = it("main", () => ({
7
- token: h(void 0)
8
- })), dt = async (e) => new Promise((t) => setTimeout(t, e)), ft = async (e, t, a, n = void 0) => {
1
+ import { ref as b, defineComponent as z, mergeModels as ae, useModel as _e, resolveComponent as S, createBlock as U, openBlock as u, onMounted as ce, computed as q, withCtx as _, createElementBlock as C, Fragment as M, renderList as B, createVNode as P, nextTick as ot, createTextVNode as O, useTemplateRef as Le, createElementVNode as h, createCommentVNode as Z, toDisplayString as W, resolveDynamicComponent as Pe, renderSlot as le, inject as fe, getCurrentInstance as we, reactive as De, normalizeStyle as at, normalizeClass as st, unref as Ae, onActivated as rt } from "vue";
2
+ import it from "axios";
3
+ import { defineStore as lt } from "pinia";
4
+ import { Modal as ct } from "@arco-design/web-vue";
5
+ import { useRouter as ut } from "vue-router";
6
+ const dt = lt("main", () => ({
7
+ token: b(void 0)
8
+ })), ft = async (e) => new Promise((t) => setTimeout(t, e)), pt = async (e, t, a, n = void 0) => {
9
9
  if (e[t] === void 0)
10
10
  try {
11
11
  e[t] = null, e[t] = await a() || n;
@@ -13,7 +13,7 @@ const ut = it("main", () => ({
13
13
  console.error(o), e[t] = void 0;
14
14
  }
15
15
  for (; e[t] === null; )
16
- await dt(100);
16
+ await ft(100);
17
17
  return e[t];
18
18
  }, ge = (e) => {
19
19
  const t = `0${e}`;
@@ -43,23 +43,23 @@ const ut = it("main", () => ({
43
43
  return e.toLocaleString();
44
44
  }
45
45
  };
46
- let Ne = {};
47
- function pt(e) {
48
- Ne = { ...Ne, ...e };
46
+ let Fe = {};
47
+ function mt(e) {
48
+ Fe = { ...Fe, ...e };
49
49
  }
50
- function De() {
51
- return Ne;
50
+ function Re() {
51
+ return Fe;
52
52
  }
53
- function Ge() {
54
- const e = De();
53
+ function Oe() {
54
+ const e = Re();
55
55
  return {
56
56
  apiBase: e.apiBase || void 0 || "",
57
57
  appSecret: e.appSecret || void 0 || ""
58
58
  };
59
59
  }
60
- function Oe() {
61
- const { apiBase: e } = Ge();
62
- return rt.create({
60
+ function We() {
61
+ const { apiBase: e } = Oe();
62
+ return it.create({
63
63
  baseURL: e,
64
64
  timeout: 1e4,
65
65
  // 10s
@@ -67,52 +67,52 @@ function Oe() {
67
67
  withCredentials: !0
68
68
  });
69
69
  }
70
- const We = async () => {
71
- const { apiBase: e, appSecret: t } = Ge(), a = Oe(), n = ut();
72
- return await ft(n, "token", async () => (await a.get(`${e}/GenerateToken`, {
70
+ const qe = async () => {
71
+ const { apiBase: e, appSecret: t } = Oe(), a = We(), n = dt();
72
+ return await pt(n, "token", async () => (await a.get(`${e}/GenerateToken`, {
73
73
  params: {
74
74
  appid: "bpm",
75
75
  appsecret: t
76
76
  }
77
77
  }))?.data?.token);
78
- }, z = async () => {
79
- const e = await We(), t = Oe();
78
+ }, E = async () => {
79
+ const e = await qe(), t = We();
80
80
  return t.defaults.headers.common.Authorization = `Bearer ${e}`, t;
81
- }, Ae = {
81
+ }, Ie = {
82
82
  CurrentUserEmail: (e) => e.svrStore()?.userInfo?.email_address ?? "test.email@dataGetter.ts",
83
83
  CurrentUserPositionCode: (e) => e.bpmStore()?.positionCode ?? 888,
84
84
  CurrentDatetime: () => (/* @__PURE__ */ new Date()).toISOString(),
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
- }, K = [];
88
+ }, j = [];
89
89
  for (let e = 0; e < 256; ++e)
90
- K.push((e + 256).toString(16).slice(1));
91
- function mt(e, t = 0) {
92
- return (K[e[t + 0]] + K[e[t + 1]] + K[e[t + 2]] + K[e[t + 3]] + "-" + K[e[t + 4]] + K[e[t + 5]] + "-" + K[e[t + 6]] + K[e[t + 7]] + "-" + K[e[t + 8]] + K[e[t + 9]] + "-" + K[e[t + 10]] + K[e[t + 11]] + K[e[t + 12]] + K[e[t + 13]] + K[e[t + 14]] + K[e[t + 15]]).toLowerCase();
90
+ j.push((e + 256).toString(16).slice(1));
91
+ function gt(e, t = 0) {
92
+ return (j[e[t + 0]] + j[e[t + 1]] + j[e[t + 2]] + j[e[t + 3]] + "-" + j[e[t + 4]] + j[e[t + 5]] + "-" + j[e[t + 6]] + j[e[t + 7]] + "-" + j[e[t + 8]] + j[e[t + 9]] + "-" + j[e[t + 10]] + j[e[t + 11]] + j[e[t + 12]] + j[e[t + 13]] + j[e[t + 14]] + j[e[t + 15]]).toLowerCase();
93
93
  }
94
- let Ie;
95
- const gt = new Uint8Array(16);
96
- function vt() {
97
- if (!Ie) {
94
+ let Te;
95
+ const vt = new Uint8Array(16);
96
+ function _t() {
97
+ if (!Te) {
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
- Ie = crypto.getRandomValues.bind(crypto);
100
+ Te = crypto.getRandomValues.bind(crypto);
101
101
  }
102
- return Ie(gt);
102
+ return Te(vt);
103
103
  }
104
- const _t = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ke = { randomUUID: _t };
105
- function qe(e, t, a) {
106
- if (Ke.randomUUID && !e)
107
- return Ke.randomUUID();
104
+ const yt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), je = { randomUUID: yt };
105
+ function Ye(e, t, a) {
106
+ if (je.randomUUID && !e)
107
+ return je.randomUUID();
108
108
  e = e || {};
109
- const n = e.random ?? e.rng?.() ?? vt();
109
+ const n = e.random ?? e.rng?.() ?? _t();
110
110
  if (n.length < 16)
111
111
  throw new Error("Random bytes length must be >= 16");
112
- return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, mt(n);
112
+ return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, gt(n);
113
113
  }
114
114
  var Y = /* @__PURE__ */ ((e) => (e[e.Submit = 0] = "Submit", e[e.Link = 1] = "Link", e))(Y || {}), de = /* @__PURE__ */ ((e) => (e[e.Create = 0] = "Create", e[e.Update = 1] = "Update", e[e.Details = 2] = "Details", e[e.List = 3] = "List", e))(de || {});
115
- function yt(e, t, a) {
115
+ function wt(e, t, a) {
116
116
  const n = {
117
117
  pageType: "",
118
118
  fields: {},
@@ -135,7 +135,7 @@ function yt(e, t, a) {
135
135
  else if (o.attributeType === "UIControl") {
136
136
  if (o.widget === "Tab") {
137
137
  n.tabs || (n.tabs = []), n.tabs.push({
138
- key: qe(),
138
+ key: Ye(),
139
139
  title: o.title,
140
140
  filters: o.filters ? JSON.parse(o.filters) : [],
141
141
  order: o.order
@@ -154,7 +154,7 @@ function yt(e, t, a) {
154
154
  readonly: o.readonly,
155
155
  loading: !1
156
156
  });
157
- } else o.attributeType === "Banner" && (n.banner.title = o.title, n.banner.subTitle = t === 0 ? o.subTitle : Re(o.subTitle, e.workflowId.propertyValue));
157
+ } else o.attributeType === "Banner" && (n.banner.title = o.title, n.banner.subTitle = t === 0 ? o.subTitle : Me(o.subTitle, e.workflowId.propertyValue));
158
158
  }), n.tabs && (n.tabs = n.tabs.sort((o, l) => o.order - l.order)), Object.entries(e).forEach(([o, l]) => {
159
159
  if (o === "__ClassAttributes" || o === "className" || o === "id" || o === "deleteFlag" || o === "status" || o === "workFlowReason" || t !== 3 && o === "workflowId")
160
160
  return;
@@ -176,14 +176,14 @@ function yt(e, t, a) {
176
176
  r.modelValue = s;
177
177
  break;
178
178
  }
179
- o === "onBehalf" && t === 0 && (r.modelValue = Ae.CurrentUserEmail(a)), c?.forEach((i) => {
179
+ o === "onBehalf" && t === 0 && (r.modelValue = Ie.CurrentUserEmail(a)), c?.forEach((i) => {
180
180
  i.order || i.Order ? r.order = i.order ?? i.Order : i.attributeType === "UIControl" ? r.widget = {
181
181
  ...i,
182
182
  column: !0
183
183
  } : i.attributeType === "UIValidationControl" && t !== 3 ? r.widget?.widget !== "CheckBox" && r.validations.push(i) : i.attributeType === "UIListed" ? r.widget = {
184
184
  ...i,
185
185
  column: !0
186
- } : i.attributeType === "UIFiltered" ? (r.isFiltered = !0, r.operator = i.operatorType) : i.dependentType ? r.dependent = Ae[i.dependentType] ? Ae[i.dependentType](a) : "" : i.eventType === "Change" && r.triggers?.push({
186
+ } : i.attributeType === "UIFiltered" ? (r.isFiltered = !0, r.operator = i.operatorType) : i.dependentType ? r.dependent = Ie[i.dependentType] ? Ie[i.dependentType](a) : "" : i.eventType === "Change" && r.triggers?.push({
187
187
  event: "change",
188
188
  handlerName: i.eventName
189
189
  });
@@ -191,11 +191,11 @@ function yt(e, t, a) {
191
191
  }), n;
192
192
  }
193
193
  const be = async (e, t, a, n) => {
194
- const l = await (await z()).get(`/General/${t}/${e}/page`, { params: n });
195
- return yt(l?.data, e, a);
196
- }, Ye = async (e, t, a) => (await (await z()).post(`/${t}/${e}/button/List`, null, { params: a }))?.data;
197
- async function wt(e, t) {
198
- const n = await (await z()).post(`/General/${e}/list`, t);
194
+ const l = await (await E()).get(`/General/${t}/${e}/page`, { params: n });
195
+ return wt(l?.data, e, a);
196
+ }, Je = async (e, t, a) => (await (await E()).post(`/${t}/${e}/button/List`, null, { params: a }))?.data;
197
+ async function bt(e, t) {
198
+ const n = await (await E()).post(`/General/${e}/list`, t);
199
199
  return {
200
200
  data: n.data.data,
201
201
  totalCount: n.data.totalCount
@@ -214,106 +214,106 @@ async function wt(e, t) {
214
214
  // ),
215
215
  };
216
216
  }
217
- async function bt(e, t, a) {
218
- const o = await (await z()).post(a, t, {
217
+ async function ht(e, t, a) {
218
+ const o = await (await E()).post(a, t, {
219
219
  params: {
220
220
  className: e
221
221
  }
222
222
  });
223
223
  return o.data.length > 0 ? o.data[0] : 0;
224
224
  }
225
- async function ht(e, t, a, n) {
226
- const o = await z(), l = Re(n, t);
225
+ async function kt(e, t, a, n) {
226
+ const o = await E(), l = Me(n, t);
227
227
  return (await o.put(l, a))?.data;
228
228
  }
229
- function Re(e, t) {
229
+ function Me(e, t) {
230
230
  return e.replace(/{WorkflowId}/g, t);
231
231
  }
232
- function kt(e, t) {
232
+ function Ct(e, t) {
233
233
  return e.replace(/{ApproverEmail}/g, encodeURIComponent(t));
234
234
  }
235
- function Ct(e, t) {
235
+ function St(e, t) {
236
236
  return e.replace(/{WorkFlowReason}/g, encodeURIComponent(t));
237
237
  }
238
238
  function Vt(e, t) {
239
239
  return e.replace(/{Status}/g, t);
240
240
  }
241
- function St(e, t) {
241
+ function xt(e, t) {
242
242
  return e.replace(/{IfTriggerGlobal_RandP_Approval}/g, t);
243
243
  }
244
- function xt(e, t) {
244
+ function $t(e, t) {
245
245
  return e.replace(/{ClassName}/g, encodeURIComponent(t));
246
246
  }
247
- async function $t(e, t, a, n, o, l, r, c) {
248
- const s = await z();
249
- let i = Re(l, t);
250
- return i = kt(i, a), i = Ct(i, n), i = Vt(i, r), i = St(i, c), i = xt(i, e), (await s.put(i, o))?.data;
247
+ async function At(e, t, a, n, o, l, r, c) {
248
+ const s = await E();
249
+ let i = Me(l, t);
250
+ return i = Ct(i, a), i = St(i, n), i = Vt(i, r), i = xt(i, c), i = $t(i, e), (await s.put(i, o))?.data;
251
251
  }
252
- async function At(e, t) {
253
- const o = (await (await z()).get(e, { params: { value: t } }))?.data;
252
+ async function It(e, t) {
253
+ const o = (await (await E()).get(e, { params: { value: t } }))?.data;
254
254
  return Object.entries(o).map(([l, r]) => ({
255
255
  value: l,
256
256
  label: r
257
257
  }));
258
258
  }
259
- async function It(e, t) {
260
- return (await (await z()).get(`/General/${e}/${t}/process`))?.data;
259
+ async function Tt(e, t) {
260
+ return (await (await E()).get(`/General/${e}/${t}/process`))?.data;
261
261
  }
262
- function Tt(e) {
262
+ function Ut(e) {
263
263
  return {
264
- uid: e.id ?? qe(),
264
+ uid: e.id ?? Ye(),
265
265
  name: e.attachmentName ?? "unknown",
266
266
  url: e.attachmentKey ?? ""
267
267
  };
268
268
  }
269
- async function Je(e, t) {
270
- return (await (await z()).get(`/General/${e}/${t}/upload/get`))?.data.reduce((l, r) => {
269
+ async function Xe(e, t) {
270
+ return (await (await E()).get(`/General/${e}/${t}/upload/get`))?.data.reduce((l, r) => {
271
271
  const { category: c } = r;
272
- return l[c] || (l[c] = []), l[c].push(Tt(r)), l;
272
+ return l[c] || (l[c] = []), l[c].push(Ut(r)), l;
273
273
  }, {});
274
274
  }
275
- async function Ut(e, t) {
276
- return (await z()).post(`/General/${e}/${t}/delete/attachment`);
275
+ async function Nt(e, t) {
276
+ return (await E()).post(`/General/${e}/${t}/delete/attachment`);
277
277
  }
278
- async function Nt() {
279
- const t = await (await z()).get("/Grading/dropdown/approvers");
278
+ async function Ft() {
279
+ const t = await (await E()).get("/Grading/dropdown/approvers");
280
280
  return Object.entries(t?.data).map(([a, n]) => ({
281
281
  label: a,
282
282
  value: n
283
283
  }));
284
284
  }
285
- async function Ft(e, t) {
286
- return await (await z()).post(`Grading/AssignComments/${e}/${encodeURIComponent(t)}`);
285
+ async function Lt(e, t) {
286
+ return await (await E()).post(`Grading/AssignComments/${e}/${encodeURIComponent(t)}`);
287
287
  }
288
- async function Lt(e, t, a) {
289
- return await (await z()).post(`Grading/AddComments/${e}/${encodeURIComponent(t)}`, a, {
288
+ async function Pt(e, t, a) {
289
+ return await (await E()).post(`Grading/AddComments/${e}/${encodeURIComponent(t)}`, a, {
290
290
  headers: { "Content-Type": "application/json;charset=UTF-8" }
291
291
  });
292
292
  }
293
- async function je(e) {
294
- return (await (await z()).get(`Grading/GetComments/${e}`))?.data;
293
+ async function ze(e) {
294
+ return (await (await E()).get(`Grading/GetComments/${e}`))?.data;
295
295
  }
296
- async function Te(e) {
297
- return (await (await z()).post(`Grading/GetAssociator/${e}`))?.data;
296
+ async function Ue(e) {
297
+ return (await (await E()).post(`Grading/GetAssociator/${e}`))?.data;
298
298
  }
299
- async function Pt(e) {
300
- return await (await z()).post(`Grading/DeleteAssociator/${e}`);
299
+ async function Dt(e) {
300
+ return await (await E()).post(`Grading/DeleteAssociator/${e}`);
301
301
  }
302
302
  const pe = (e, t) => {
303
303
  let a = "";
304
304
  return { res: e.every((o) => {
305
- const l = Dt(o, t);
305
+ const l = Rt(o, t);
306
306
  return l || (a = o.errorMessage), l;
307
307
  }), errorMessages: a };
308
- }, Dt = (e, t) => {
308
+ }, Rt = (e, t) => {
309
309
  const { ruleName: a, ruleParameter: n } = e;
310
- return Rt[a](n, t);
311
- }, Rt = {
310
+ return Mt[a](n, t);
311
+ }, Mt = {
312
312
  Regex: (e, t) => new RegExp(e).test(t),
313
313
  Required: (e, t) => !!t
314
- }, ze = /* @__PURE__ */ j({
314
+ }, Ee = /* @__PURE__ */ z({
315
315
  __name: "InputText",
316
- props: /* @__PURE__ */ ne({
316
+ props: /* @__PURE__ */ ae({
317
317
  fieldKey: {},
318
318
  modelValue: {},
319
319
  config: {},
@@ -324,14 +324,14 @@ const pe = (e, t) => {
324
324
  modelValue: {},
325
325
  modelModifiers: {}
326
326
  }),
327
- emits: /* @__PURE__ */ ne(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
327
+ emits: /* @__PURE__ */ ae(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
328
328
  setup(e, { expose: t, emit: a }) {
329
329
  const n = e, o = a, l = _e(e, "modelValue"), r = (i) => pe(n.validations, i), c = (i) => {
330
330
  o("input", i);
331
331
  }, s = (i) => {
332
- const w = r(i);
333
- o("error", w.res ? "" : w.errorMessages), n.triggers && n.triggers.length > 0 && n.triggers.forEach((f) => {
334
- f.event === "change" && o(f.event, f.handlerName, i);
332
+ const y = r(i);
333
+ o("error", y.res ? "" : y.errorMessages), n.triggers && n.triggers.length > 0 && n.triggers.forEach((d) => {
334
+ d.event === "change" && o(d.event, d.handlerName, i);
335
335
  });
336
336
  };
337
337
  return t({
@@ -339,11 +339,11 @@ const pe = (e, t) => {
339
339
  const i = r(n.modelValue);
340
340
  return o("error", i.res ? "" : i.errorMessages), i.res;
341
341
  }
342
- }), (i, w) => {
343
- const f = V("AInput");
344
- return u(), U(f, {
342
+ }), (i, y) => {
343
+ const d = S("AInput");
344
+ return u(), U(d, {
345
345
  modelValue: l.value,
346
- "onUpdate:modelValue": w[0] || (w[0] = (S) => l.value = S),
346
+ "onUpdate:modelValue": y[0] || (y[0] = (V) => l.value = V),
347
347
  "allow-clear": "",
348
348
  disabled: n.readonly || n.config.Readonly,
349
349
  onInput: c,
@@ -351,9 +351,9 @@ const pe = (e, t) => {
351
351
  }, null, 8, ["modelValue", "disabled"]);
352
352
  };
353
353
  }
354
- }), Mt = /* @__PURE__ */ j({
354
+ }), Ht = /* @__PURE__ */ z({
355
355
  __name: "InputNumber",
356
- props: /* @__PURE__ */ ne({
356
+ props: /* @__PURE__ */ ae({
357
357
  fieldKey: {},
358
358
  modelValue: {},
359
359
  config: {},
@@ -364,44 +364,44 @@ const pe = (e, t) => {
364
364
  modelValue: {},
365
365
  modelModifiers: {}
366
366
  }),
367
- emits: /* @__PURE__ */ ne(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
367
+ emits: /* @__PURE__ */ ae(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
368
368
  setup(e, { expose: t, emit: a }) {
369
- const n = e, o = a, l = _e(e, "modelValue"), r = h(100), c = h(0);
369
+ const n = e, o = a, l = _e(e, "modelValue"), r = b(100), c = b(0);
370
370
  ce(() => {
371
- n.validations && n.validations.forEach((f) => {
372
- f.ruleName === "Max" && (r.value = f.ruleParameter), f.ruleName === "Min" && (c.value = f.ruleParameter);
371
+ n.validations && n.validations.forEach((d) => {
372
+ d.ruleName === "Max" && (r.value = d.ruleParameter), d.ruleName === "Min" && (c.value = d.ruleParameter);
373
373
  });
374
374
  });
375
- const s = (f) => pe(n.validations, f), i = (f) => {
376
- o("input", f);
377
- }, w = (f) => {
378
- const S = s(f);
379
- o("error", S.res ? "" : S.errorMessages), n.triggers && n.triggers.length > 0 && n.triggers.forEach((I) => {
380
- I.event === "change" && o(I.event, I.handlerName, f);
375
+ const s = (d) => pe(n.validations, d), i = (d) => {
376
+ o("input", d);
377
+ }, y = (d) => {
378
+ const V = s(d);
379
+ o("error", V.res ? "" : V.errorMessages), n.triggers && n.triggers.length > 0 && n.triggers.forEach((I) => {
380
+ I.event === "change" && o(I.event, I.handlerName, d);
381
381
  });
382
382
  };
383
383
  return t({
384
384
  validate() {
385
- const f = s(n.modelValue);
386
- return o("error", f.res ? "" : f.errorMessages), f.res;
385
+ const d = s(n.modelValue);
386
+ return o("error", d.res ? "" : d.errorMessages), d.res;
387
387
  }
388
- }), (f, S) => {
389
- const I = V("AInputNumber");
388
+ }), (d, V) => {
389
+ const I = S("AInputNumber");
390
390
  return u(), U(I, {
391
391
  modelValue: l.value,
392
- "onUpdate:modelValue": S[0] || (S[0] = (_) => l.value = _),
392
+ "onUpdate:modelValue": V[0] || (V[0] = (v) => l.value = v),
393
393
  clearable: "",
394
394
  disabled: n.readonly,
395
395
  min: c.value,
396
396
  max: r.value,
397
397
  onInput: i,
398
- onChange: w
398
+ onChange: y
399
399
  }, null, 8, ["modelValue", "disabled", "min", "max"]);
400
400
  };
401
401
  }
402
- }), Ee = /* @__PURE__ */ j({
402
+ }), Ge = /* @__PURE__ */ z({
403
403
  __name: "SelectList",
404
- props: /* @__PURE__ */ ne({
404
+ props: /* @__PURE__ */ ae({
405
405
  fieldKey: {},
406
406
  modelValue: {},
407
407
  config: {},
@@ -412,46 +412,46 @@ const pe = (e, t) => {
412
412
  modelValue: {},
413
413
  modelModifiers: {}
414
414
  }),
415
- emits: /* @__PURE__ */ ne(["update:modelValue", "change"], ["update:modelValue"]),
415
+ emits: /* @__PURE__ */ ae(["update:modelValue", "change"], ["update:modelValue"]),
416
416
  setup(e, { expose: t, emit: a }) {
417
- const n = e, o = a, l = h(!1), r = h(n.config.options ?? []), c = _e(e, "modelValue"), s = (f) => pe(n.validations, f);
417
+ const n = e, o = a, l = b(!1), r = b(n.config.options ?? []), c = _e(e, "modelValue"), s = (d) => pe(n.validations, d);
418
418
  q(() => {
419
- const f = {};
420
- return n.triggers && n.triggers.length > 0 && n.triggers.forEach((S) => {
421
- f[S.event] = (I) => {
422
- o(S.event, S.handlerName, I);
423
- const _ = s(I);
424
- o("error", _.res ? "" : _.errorMessages);
419
+ const d = {};
420
+ return n.triggers && n.triggers.length > 0 && n.triggers.forEach((V) => {
421
+ d[V.event] = (I) => {
422
+ o(V.event, V.handlerName, I);
423
+ const v = s(I);
424
+ o("error", v.res ? "" : v.errorMessages);
425
425
  };
426
- }), f;
426
+ }), d;
427
427
  }), ce(async () => {
428
- n.config.dataSourceProvider && (r.value = await At(n.config.dataSourceProvider));
428
+ n.config.dataSourceProvider && (r.value = await It(n.config.dataSourceProvider));
429
429
  });
430
- const w = (f) => {
431
- o("update:modelValue", f);
432
- const S = s(f);
433
- o("error", S.res ? "" : S.errorMessages), n.triggers && n.triggers.length > 0 && n.triggers.forEach((I) => {
434
- I.event === "change" && o(I.event, I.handlerName, f);
430
+ const y = (d) => {
431
+ o("update:modelValue", d);
432
+ const V = s(d);
433
+ o("error", V.res ? "" : V.errorMessages), n.triggers && n.triggers.length > 0 && n.triggers.forEach((I) => {
434
+ I.event === "change" && o(I.event, I.handlerName, d);
435
435
  });
436
436
  };
437
437
  return t({
438
438
  validate() {
439
- const f = s(n.modelValue);
440
- return o("error", f.res ? "" : f.errorMessages), f.res;
439
+ const d = s(n.modelValue);
440
+ return o("error", d.res ? "" : d.errorMessages), d.res;
441
441
  }
442
- }), (f, S) => {
443
- const I = V("AOption"), _ = V("ASelect");
444
- return u(), U(_, {
442
+ }), (d, V) => {
443
+ const I = S("AOption"), v = S("ASelect");
444
+ return u(), U(v, {
445
445
  "allow-clear": "",
446
446
  modelValue: c.value,
447
- "onUpdate:modelValue": S[0] || (S[0] = (T) => c.value = T),
447
+ "onUpdate:modelValue": V[0] || (V[0] = (T) => c.value = T),
448
448
  loading: l.value,
449
449
  "filter-option": !0,
450
450
  "allow-search": !0,
451
- onChange: w
451
+ onChange: y
452
452
  }, {
453
- default: y(() => [
454
- (u(!0), x(M, null, B(r.value, (T) => (u(), U(I, {
453
+ default: _(() => [
454
+ (u(!0), C(M, null, B(r.value, (T) => (u(), U(I, {
455
455
  key: T.value,
456
456
  value: T.value,
457
457
  label: T.label
@@ -461,7 +461,7 @@ const pe = (e, t) => {
461
461
  }, 8, ["modelValue", "loading"]);
462
462
  };
463
463
  }
464
- }), Ht = /* @__PURE__ */ j({
464
+ }), Bt = /* @__PURE__ */ z({
465
465
  __name: "Cascader",
466
466
  props: {
467
467
  modelValue: {},
@@ -469,15 +469,15 @@ const pe = (e, t) => {
469
469
  },
470
470
  emits: ["update:modelValue", "change"],
471
471
  setup(e, { expose: t, emit: a }) {
472
- const n = e, o = a, l = h(n.config.options ?? []), r = (s) => {
472
+ const n = e, o = a, l = b(n.config.options ?? []), r = (s) => {
473
473
  o("update:modelValue", s), o("change", s);
474
474
  };
475
475
  ce(async () => {
476
476
  if (n.config) {
477
477
  const s = n.config.dataSourceProvider;
478
478
  if (s) {
479
- const w = await (await z()).get(s);
480
- l.value = w.data;
479
+ const y = await (await E()).get(s);
480
+ l.value = y.data;
481
481
  }
482
482
  }
483
483
  });
@@ -487,13 +487,13 @@ const pe = (e, t) => {
487
487
  return !0;
488
488
  }
489
489
  }), (s, i) => {
490
- const w = V("ACascader"), f = V("ASpace");
491
- return u(), U(f, {
490
+ const y = S("ACascader"), d = S("ASpace");
491
+ return u(), U(d, {
492
492
  direction: "vertical",
493
493
  size: "large"
494
494
  }, {
495
- default: y(() => [
496
- F(w, {
495
+ default: _(() => [
496
+ P(y, {
497
497
  "field-names": c,
498
498
  "model-value": s.modelValue,
499
499
  options: l.value,
@@ -506,7 +506,7 @@ const pe = (e, t) => {
506
506
  });
507
507
  };
508
508
  }
509
- }), Bt = /* @__PURE__ */ j({
509
+ }), Kt = /* @__PURE__ */ z({
510
510
  __name: "FileUpload",
511
511
  props: {
512
512
  className: {},
@@ -519,66 +519,66 @@ const pe = (e, t) => {
519
519
  },
520
520
  emits: ["update:modelValue", "change", "error", "input"],
521
521
  setup(e, { expose: t, emit: a }) {
522
- const n = e, o = a, l = h({});
522
+ const n = e, o = a, l = b({});
523
523
  ce(async () => {
524
- const _ = await We();
524
+ const v = await qe();
525
525
  l.value = {
526
- Authorization: `Bearer ${_}`
526
+ Authorization: `Bearer ${v}`
527
527
  };
528
528
  });
529
- const r = (_) => pe(n.validations, _), s = De().apiBase, i = h(null), w = h("");
530
- function f(_, T, E) {
531
- return _.replace(/{WorkflowId}/g, T).replace(/{ClassName}/g, E);
529
+ const r = (v) => pe(n.validations, v), s = Re().apiBase, i = b(null), y = b("");
530
+ function d(v, T, G) {
531
+ return v.replace(/{WorkflowId}/g, T).replace(/{ClassName}/g, G);
532
532
  }
533
- const S = q(() => {
533
+ const V = q(() => {
534
534
  if (n.config.uploadURL) {
535
- const _ = s + n.config.uploadURL;
536
- return f(_, w.value, n.className);
535
+ const v = s + n.config.uploadURL;
536
+ return d(v, y.value, n.className);
537
537
  }
538
538
  return "";
539
539
  });
540
- function I(_) {
541
- const { file: T, name: E } = _, J = E ?? T.name;
542
- return new Promise((oe, X) => {
543
- lt.confirm({
540
+ function I(v) {
541
+ const { file: T, name: G } = v, J = G ?? T.name;
542
+ return new Promise((se, X) => {
543
+ ct.confirm({
544
544
  title: "Confirm Delete",
545
545
  content: `Are you sure you want to delete ${J}?`,
546
546
  async onOk() {
547
- if (_.status !== "init" && n.config.removeFile)
548
- return await n.config.removeFile(_.uid), oe(!0);
549
- oe(!0);
547
+ if (v.status !== "init" && n.config.removeFile)
548
+ return await n.config.removeFile(v.uid), se(!0);
549
+ se(!0);
550
550
  },
551
551
  onCancel: () => X("cancel")
552
552
  });
553
553
  });
554
554
  }
555
555
  return t({
556
- submit(_) {
557
- i.value && (n.config.uploadURL && (w.value = _), nt(() => {
556
+ submit(v) {
557
+ i.value && (n.config.uploadURL && (y.value = v), ot(() => {
558
558
  i.value.submit();
559
559
  }));
560
560
  },
561
561
  validate() {
562
- const _ = r(n.modelValue);
563
- return o("error", _.res ? "" : _.errorMessages), _.res;
562
+ const v = r(n.modelValue);
563
+ return o("error", v.res ? "" : v.errorMessages), v.res;
564
564
  }
565
- }), (_, T) => {
566
- const E = V("a-button"), J = V("a-upload");
565
+ }), (v, T) => {
566
+ const G = S("a-button"), J = S("a-upload");
567
567
  return u(), U(J, {
568
568
  ref_key: "uploadRef",
569
569
  ref: i,
570
570
  "default-file-list": n.config.files,
571
- action: S.value,
571
+ action: V.value,
572
572
  limit: n.config.allowedNumber,
573
573
  "auto-upload": !1,
574
574
  name: "files",
575
575
  headers: l.value,
576
576
  onBeforeRemove: I
577
577
  }, {
578
- "start-icon": y(() => T[0] || (T[0] = [])),
579
- "upload-button": y(() => [
580
- F(E, { type: "primary" }, {
581
- default: y(() => T[1] || (T[1] = [
578
+ "start-icon": _(() => T[0] || (T[0] = [])),
579
+ "upload-button": _(() => [
580
+ P(G, { type: "primary" }, {
581
+ default: _(() => T[1] || (T[1] = [
582
582
  O("Select File", -1)
583
583
  ])),
584
584
  _: 1,
@@ -589,7 +589,7 @@ const pe = (e, t) => {
589
589
  }, 8, ["default-file-list", "action", "limit", "headers"]);
590
590
  };
591
591
  }
592
- }), Kt = /* @__PURE__ */ j({
592
+ }), jt = /* @__PURE__ */ z({
593
593
  __name: "TextArea",
594
594
  props: {
595
595
  fieldKey: {},
@@ -606,8 +606,8 @@ const pe = (e, t) => {
606
606
  }, c = (s) => {
607
607
  o("update:modelValue", s);
608
608
  const i = l(s);
609
- o("error", i.res ? "" : i.errorMessages), n.triggers && n.triggers.length > 0 && n.triggers.forEach((w) => {
610
- w.event === "change" && o(w.event, w.handlerName, s);
609
+ o("error", i.res ? "" : i.errorMessages), n.triggers && n.triggers.length > 0 && n.triggers.forEach((y) => {
610
+ y.event === "change" && o(y.event, y.handlerName, s);
611
611
  });
612
612
  };
613
613
  return t({
@@ -616,8 +616,8 @@ const pe = (e, t) => {
616
616
  return o("error", s.res ? "" : s.errorMessages), s.res;
617
617
  }
618
618
  }), (s, i) => {
619
- const w = V("ATextarea");
620
- return u(), U(w, {
619
+ const y = S("ATextarea");
620
+ return u(), U(y, {
621
621
  "model-value": n.modelValue,
622
622
  placeholder: "Please enter something",
623
623
  "allow-clear": "",
@@ -627,9 +627,9 @@ const pe = (e, t) => {
627
627
  }, null, 8, ["model-value", "disabled"]);
628
628
  };
629
629
  }
630
- }), jt = /* @__PURE__ */ j({
630
+ }), zt = /* @__PURE__ */ z({
631
631
  __name: "CheckBox",
632
- props: /* @__PURE__ */ ne({
632
+ props: /* @__PURE__ */ ae({
633
633
  fieldKey: {},
634
634
  modelValue: {},
635
635
  config: {},
@@ -640,12 +640,12 @@ const pe = (e, t) => {
640
640
  modelValue: {},
641
641
  modelModifiers: {}
642
642
  }),
643
- emits: /* @__PURE__ */ ne(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
643
+ emits: /* @__PURE__ */ ae(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
644
644
  setup(e, { expose: t, emit: a }) {
645
645
  const n = e, o = a, l = _e(e, "modelValue"), r = (s) => pe(n.validations, s), c = (s) => {
646
646
  const i = r(s);
647
- o("error", i.res ? "" : i.errorMessages), n.triggers && n.triggers.length > 0 && n.triggers.forEach((w) => {
648
- w.event === "change" && o(w.event, w.handlerName, s);
647
+ o("error", i.res ? "" : i.errorMessages), n.triggers && n.triggers.length > 0 && n.triggers.forEach((y) => {
648
+ y.event === "change" && o(y.event, y.handlerName, s);
649
649
  });
650
650
  };
651
651
  return t({
@@ -654,15 +654,15 @@ const pe = (e, t) => {
654
654
  return o("error", s.res ? "" : s.errorMessages), s.res;
655
655
  }
656
656
  }), (s, i) => {
657
- const w = V("ACheckbox");
658
- return u(), U(w, {
657
+ const y = S("ACheckbox");
658
+ return u(), U(y, {
659
659
  modelValue: l.value,
660
- "onUpdate:modelValue": i[0] || (i[0] = (f) => l.value = f),
660
+ "onUpdate:modelValue": i[0] || (i[0] = (d) => l.value = d),
661
661
  clearable: "",
662
662
  disabled: n.readonly || n.config.Readonly,
663
663
  onChange: c
664
664
  }, {
665
- default: y(() => i[1] || (i[1] = [
665
+ default: _(() => i[1] || (i[1] = [
666
666
  O("Yes", -1)
667
667
  ])),
668
668
  _: 1,
@@ -670,15 +670,15 @@ const pe = (e, t) => {
670
670
  }, 8, ["modelValue", "disabled"]);
671
671
  };
672
672
  }
673
- }), zt = { class: "title" }, Et = {
673
+ }), Et = { class: "title" }, Gt = {
674
674
  key: 0,
675
675
  class: "required"
676
- }, Gt = {
676
+ }, Ot = {
677
677
  key: 0,
678
678
  class: "err-msg"
679
- }, Ot = /* @__PURE__ */ j({
679
+ }, Wt = /* @__PURE__ */ z({
680
680
  __name: "index",
681
- props: /* @__PURE__ */ ne({
681
+ props: /* @__PURE__ */ ae({
682
682
  config: {},
683
683
  className: {},
684
684
  fieldKey: {},
@@ -690,43 +690,43 @@ const pe = (e, t) => {
690
690
  modelValue: {},
691
691
  modelModifiers: {}
692
692
  }),
693
- emits: /* @__PURE__ */ ne(["update:modelValue", "change", "error"], ["update:modelValue"]),
693
+ emits: /* @__PURE__ */ ae(["update:modelValue", "change", "error"], ["update:modelValue"]),
694
694
  setup(e, { expose: t, emit: a }) {
695
- const n = e, o = a, l = _e(e, "modelValue"), r = Fe("widgetRef"), c = q(() => {
695
+ const n = e, o = a, l = _e(e, "modelValue"), r = Le("widgetRef"), c = q(() => {
696
696
  switch (n.config?.widget?.widget) {
697
697
  case "TextBox":
698
- return ze;
698
+ return Ee;
699
699
  case "Number":
700
- return Mt;
700
+ return Ht;
701
701
  case "SelectList":
702
- return Ee;
702
+ return Ge;
703
703
  case "Cascade":
704
- return Ht;
705
- case "File":
706
704
  return Bt;
707
- case "TextArea":
705
+ case "File":
708
706
  return Kt;
707
+ case "TextArea":
708
+ return jt;
709
709
  case "DropDown":
710
- return Ee;
710
+ return Ge;
711
711
  case "CheckBox":
712
- return jt;
712
+ return zt;
713
713
  default:
714
- return ze;
714
+ return Ee;
715
715
  }
716
- }), s = h(""), i = (S) => {
717
- s.value = S;
718
- }, w = (S, I) => {
719
- o("change", S, I);
716
+ }), s = b(""), i = (V) => {
717
+ s.value = V;
718
+ }, y = (V, I) => {
719
+ o("change", V, I);
720
720
  };
721
- function f() {
721
+ function d() {
722
722
  return n.config?.widget?.widget === "File";
723
723
  }
724
724
  return t({
725
725
  isFileUpload() {
726
726
  return n.config?.widget?.widget === "File";
727
727
  },
728
- submit(S) {
729
- f() && r.value.submit(S);
728
+ submit(V) {
729
+ d() && r.value.submit(V);
730
730
  },
731
731
  validate() {
732
732
  return r.value?.validate();
@@ -734,26 +734,26 @@ const pe = (e, t) => {
734
734
  getCompName() {
735
735
  return n?.config?.widget?.title;
736
736
  }
737
- }), (S, I) => (u(), x("div", null, [
738
- k("div", zt, [
737
+ }), (V, I) => (u(), C("div", null, [
738
+ h("div", Et, [
739
739
  O(W(n?.config?.widget?.title) + " ", 1),
740
- n.config.validations.length ? (u(), x("span", Et, "*")) : te("", !0)
740
+ n.config.validations.length ? (u(), C("span", Gt, "*")) : Z("", !0)
741
741
  ]),
742
- k("div", null, [
743
- (u(), U(Le(c.value), {
742
+ h("div", null, [
743
+ (u(), U(Pe(c.value), {
744
744
  ref_key: "widgetRef",
745
745
  ref: r,
746
746
  modelValue: l.value,
747
- "onUpdate:modelValue": I[0] || (I[0] = (_) => l.value = _),
747
+ "onUpdate:modelValue": I[0] || (I[0] = (v) => l.value = v),
748
748
  "field-key": n.fieldKey,
749
749
  config: n.config.widget,
750
750
  validations: n.config.validations,
751
751
  triggers: n.config.triggers,
752
752
  "class-name": n.className,
753
753
  onError: i,
754
- onChange: w
754
+ onChange: y
755
755
  }, null, 40, ["modelValue", "field-key", "config", "validations", "triggers", "class-name"])),
756
- s.value.length > 0 ? (u(), x("div", Gt, W(s.value), 1)) : te("", !0)
756
+ s.value.length > 0 ? (u(), C("div", Ot, W(s.value), 1)) : Z("", !0)
757
757
  ])
758
758
  ]));
759
759
  }
@@ -762,7 +762,7 @@ const pe = (e, t) => {
762
762
  for (const [n, o] of t)
763
763
  a[n] = o;
764
764
  return a;
765
- }, Me = /* @__PURE__ */ me(Ot, [["__scopeId", "data-v-1022c8cb"]]), Wt = /* @__PURE__ */ j({
765
+ }, He = /* @__PURE__ */ me(Wt, [["__scopeId", "data-v-1022c8cb"]]), qt = /* @__PURE__ */ z({
766
766
  __name: "SubmitButton",
767
767
  props: {
768
768
  url: {},
@@ -776,20 +776,20 @@ const pe = (e, t) => {
776
776
  n("click", a.url, a.redirectType);
777
777
  }
778
778
  return (l, r) => {
779
- const c = V("AButton");
779
+ const c = S("AButton");
780
780
  return u(), U(c, {
781
781
  loading: l.loading,
782
782
  type: "primary",
783
783
  onClick: o
784
784
  }, {
785
- default: y(() => [
785
+ default: _(() => [
786
786
  le(l.$slots, "default")
787
787
  ]),
788
788
  _: 3
789
789
  }, 8, ["loading"]);
790
790
  };
791
791
  }
792
- }), qt = /* @__PURE__ */ j({
792
+ }), Yt = /* @__PURE__ */ z({
793
793
  __name: "DetailLink",
794
794
  props: {
795
795
  url: {},
@@ -803,16 +803,16 @@ const pe = (e, t) => {
803
803
  n("click", a.url, a.redirectType);
804
804
  }
805
805
  return (l, r) => {
806
- const c = V("ALink");
806
+ const c = S("ALink");
807
807
  return u(), U(c, { onClick: o }, {
808
- default: y(() => [
808
+ default: _(() => [
809
809
  le(l.$slots, "default")
810
810
  ]),
811
811
  _: 3
812
812
  });
813
813
  };
814
814
  }
815
- }), ve = /* @__PURE__ */ j({
815
+ }), ve = /* @__PURE__ */ z({
816
816
  __name: "index",
817
817
  props: {
818
818
  config: {},
@@ -827,42 +827,42 @@ const pe = (e, t) => {
827
827
  const l = q(() => {
828
828
  switch (a.config.location) {
829
829
  case "InOperation":
830
- return Wt;
830
+ return qt;
831
831
  case "InTable":
832
832
  default:
833
- return qt;
833
+ return Yt;
834
834
  }
835
835
  }), r = q(() => a.config.widget === Y.Submit ? a.config.requestUrl ?? "" : a.config.widget === Y.Link ? a.config.redirectUrl ?? "" : ""), c = q(() => a.config.redirectType ?? "Details");
836
- return (s, i) => (u(), U(Le(l.value), {
836
+ return (s, i) => (u(), U(Pe(l.value), {
837
837
  url: r.value,
838
838
  "redirect-type": c.value,
839
839
  loading: s.loading,
840
840
  onClick: o
841
841
  }, {
842
- default: y(() => [
842
+ default: _(() => [
843
843
  O(W(a.config.title), 1)
844
844
  ]),
845
845
  _: 1
846
846
  }, 8, ["url", "redirect-type", "loading"]));
847
847
  }
848
- }), Xe = Symbol("library-router");
848
+ }), Qe = Symbol("library-router");
849
849
  function he() {
850
- const e = fe(Xe, null);
851
- return e || ct();
852
- }
853
- const Qe = Symbol("library-triggers");
854
- function He() {
855
850
  const e = fe(Qe, null);
851
+ return e || ut();
852
+ }
853
+ const Ze = Symbol("library-triggers");
854
+ function Be() {
855
+ const e = fe(Ze, null);
856
856
  return e || {};
857
857
  }
858
- const Yt = Symbol("library-pinia"), Ze = Symbol("library-bpmStore"), et = Symbol("library-svrStore");
858
+ const Jt = Symbol("library-pinia"), et = Symbol("library-bpmStore"), tt = Symbol("library-svrStore");
859
859
  function ke() {
860
- return fe(Ze, null);
860
+ return fe(et, null);
861
861
  }
862
862
  function Ce() {
863
- return fe(et, null);
863
+ return fe(tt, null);
864
864
  }
865
- const Jt = { class: "top-bar" }, Xt = { class: "banner-info" }, Qt = { class: "page-title" }, Zt = { class: "page-subtitle" }, en = { class: "avatar-wrapper" }, tn = { class: "user-email" }, nn = /* @__PURE__ */ j({
865
+ const Xt = { class: "top-bar" }, Qt = { class: "banner-info" }, Zt = { class: "page-title" }, en = { class: "page-subtitle" }, tn = { class: "avatar-wrapper" }, nn = { class: "user-email" }, on = /* @__PURE__ */ z({
866
866
  __name: "TopBar",
867
867
  props: {
868
868
  title: {},
@@ -871,24 +871,24 @@ const Jt = { class: "top-bar" }, Xt = { class: "banner-info" }, Qt = { class: "p
871
871
  },
872
872
  setup(e) {
873
873
  return (t, a) => {
874
- const n = V("a-avatar"), o = V("a-popover");
875
- return u(), x("div", Jt, [
876
- k("div", Xt, [
877
- k("div", Qt, W(t.title), 1),
878
- k("div", Zt, W(t.subTitle), 1)
874
+ const n = S("a-avatar"), o = S("a-popover");
875
+ return u(), C("div", Xt, [
876
+ h("div", Qt, [
877
+ h("div", Zt, W(t.title), 1),
878
+ h("div", en, W(t.subTitle), 1)
879
879
  ]),
880
- k("div", en, [
881
- F(o, { trigger: "click" }, {
882
- content: y(() => [
883
- k("div", tn, W(t.email), 1)
880
+ h("div", tn, [
881
+ P(o, { trigger: "click" }, {
882
+ content: _(() => [
883
+ h("div", nn, W(t.email), 1)
884
884
  ]),
885
- default: y(() => [
886
- F(n, {
885
+ default: _(() => [
886
+ P(n, {
887
887
  size: 48,
888
888
  autoFixFontSize: "",
889
889
  style: { cursor: "pointer", background: "#165DFF", color: "#fff" }
890
890
  }, {
891
- default: y(() => [
891
+ default: _(() => [
892
892
  O(W(t.email.charAt(0).toUpperCase()), 1)
893
893
  ]),
894
894
  _: 1
@@ -900,9 +900,9 @@ const Jt = { class: "top-bar" }, Xt = { class: "banner-info" }, Qt = { class: "p
900
900
  ]);
901
901
  };
902
902
  }
903
- }), Ve = /* @__PURE__ */ me(nn, [["__scopeId", "data-v-c0457235"]]);
904
- function Be(e) {
905
- const t = De(), a = [];
903
+ }), Se = /* @__PURE__ */ me(on, [["__scopeId", "data-v-c0457235"]]);
904
+ function Ke(e) {
905
+ const t = Re(), a = [];
906
906
  if (t.fieldsGroup) {
907
907
  t.fieldsGroup.forEach((l) => {
908
908
  const r = l.keys.map((c) => e.find((s) => s.fieldKey === c)).filter(Boolean);
@@ -912,16 +912,16 @@ function Be(e) {
912
912
  return o.length && a.push({ name: "未分组字段", fields: o }), a;
913
913
  }
914
914
  }
915
- const on = { class: "page-container" }, an = { class: "page-body" }, sn = { class: "form-card" }, rn = { class: "form-fields-vertical" }, ln = { class: "form-fields" }, cn = {
915
+ const an = { class: "page-container" }, sn = { class: "page-body" }, rn = { class: "form-card" }, ln = { class: "form-fields-vertical" }, cn = { class: "form-fields" }, un = {
916
916
  key: 0,
917
917
  class: "form-content"
918
- }, un = { class: "page-footer" }, dn = { class: "action-container" }, fn = { class: "action-buttons" }, pn = /* @__PURE__ */ j({
918
+ }, dn = { class: "page-footer" }, fn = { class: "action-container" }, pn = { class: "action-buttons" }, mn = /* @__PURE__ */ z({
919
919
  __name: "CreateView",
920
920
  props: {
921
921
  className: {}
922
922
  },
923
923
  setup(e) {
924
- const t = ke(), a = Ce(), n = he(), o = He(), l = Fe("dataWidgets"), r = we(), c = e, s = h({
924
+ const t = ke(), a = Ce(), n = he(), o = Be(), l = Le("dataWidgets"), r = we(), c = e, s = b({
925
925
  pageType: "",
926
926
  fields: {},
927
927
  globalValidations: [],
@@ -929,58 +929,58 @@ const on = { class: "page-container" }, an = { class: "page-body" }, sn = { clas
929
929
  title: "",
930
930
  subTitle: ""
931
931
  }
932
- }), i = h([]), w = h({});
933
- function f(v) {
934
- return v ? Object.entries(v).map(([m, $]) => ({
932
+ }), i = b([]), y = b({});
933
+ function d(w) {
934
+ return w ? Object.entries(w).map(([m, k]) => ({
935
935
  fieldKey: m,
936
- ...$
936
+ ...k
937
937
  })).filter((m) => m.widget && m.widget.widget !== "Hidden").filter((m) => !X.value.includes(m.fieldKey)) : [];
938
938
  }
939
- function S(v) {
940
- return v ? Object.entries(v).filter(([m, $]) => $.dependent).reduce((m, [$, C]) => (m[$] = C.dependent, m), {}) : [];
939
+ function V(w) {
940
+ return w ? Object.entries(w).filter(([m, k]) => k.dependent).reduce((m, [k, $]) => (m[k] = $.dependent, m), {}) : [];
941
941
  }
942
- const I = q(() => s.value?.actions ? [...s.value.actions].reverse() : []), _ = Pe({}), T = h(!1);
942
+ const I = q(() => s.value?.actions ? [...s.value.actions].reverse() : []), v = De({}), T = b(!1);
943
943
  ce(async () => {
944
944
  T.value = !0, s.value = await be(de.Create, c.className, {
945
945
  svrStore: a,
946
946
  bpmStore: t
947
- }), i.value = f(s.value.fields), w.value = S(s.value.fields);
948
- for (const v in s.value.fields) {
949
- if (s.value.fields[v].widget?.widget === "File") {
950
- const N = i.value.find((m) => m.fieldKey === v);
947
+ }), i.value = d(s.value.fields), y.value = V(s.value.fields);
948
+ for (const w in s.value.fields) {
949
+ if (s.value.fields[w].widget?.widget === "File") {
950
+ const N = i.value.find((m) => m.fieldKey === w);
951
951
  N && N.widget && (N.widget.files = []);
952
952
  }
953
- _[v] = s.value.fields[v].modelValue;
953
+ v[w] = s.value.fields[w].modelValue;
954
954
  }
955
955
  T.value = !1;
956
956
  });
957
- function E() {
957
+ function G() {
958
958
  return a()?.userInfo?.email_address ?? "";
959
959
  }
960
- async function J(v, N, m, $, C) {
960
+ async function J(w, N, m, k, $) {
961
961
  switch (N) {
962
962
  case Y.Submit:
963
- let P = !0;
964
- if (l.value?.forEach((ae) => {
965
- ae?.validate && (ae.validate() || (P = !1));
966
- }), !P) {
963
+ let F = !0;
964
+ if (l.value?.forEach((ee) => {
965
+ ee?.validate && (ee.validate() || (F = !1));
966
+ }), !F) {
967
967
  r?.appContext.config.globalProperties.$message.error("form validation failed, please check the input fields");
968
968
  return;
969
969
  }
970
- v.loading = !0;
971
- const H = await bt(c.className, { ..._, ...w.value }, m);
972
- v.loading = !1, l.value?.forEach((ae) => {
973
- ae?.submit && ae.submit(H.toString());
974
- }), r?.appContext.config.globalProperties.$notification.success("create success!"), n.push({ name: "Details", params: { workflowId: H.toString() } });
970
+ w.loading = !0;
971
+ const K = await ht(c.className, { ...v, ...y.value }, m);
972
+ w.loading = !1, l.value?.forEach((ee) => {
973
+ ee?.submit && ee.submit(K.toString());
974
+ }), r?.appContext.config.globalProperties.$notification.success("create success!"), n.push({ name: "Details", params: { workflowId: K.toString() } });
975
975
  break;
976
976
  case Y.Link:
977
- $ === "List" && n.push({ name: "List", params: { className: c.className } });
977
+ k === "List" && n.push({ name: "List", params: { className: c.className } });
978
978
  break;
979
979
  default:
980
980
  console.warn("Unknown action type:", N);
981
981
  }
982
982
  }
983
- const X = h([
983
+ const X = b([
984
984
  "jobScpope",
985
985
  "currentWorkdayId",
986
986
  "originalGrade",
@@ -988,68 +988,68 @@ const on = { class: "page-container" }, an = { class: "page-body" }, sn = { clas
988
988
  "jobAttachmentPrevious",
989
989
  "positionId"
990
990
  ]);
991
- function Q(v, N) {
992
- o[v]?.(N, X), s.value && (i.value = f(s.value.fields));
991
+ function ue(w, N) {
992
+ o[w]?.(N, X), s.value && (i.value = d(s.value.fields));
993
993
  }
994
- const re = q(() => Be(i.value));
995
- return (v, N) => {
996
- const m = V("a-card"), $ = V("a-spin");
997
- return u(), x("div", on, [
998
- F(Ve, {
994
+ const Q = q(() => Ke(i.value));
995
+ return (w, N) => {
996
+ const m = S("a-card"), k = S("a-spin");
997
+ return u(), C("div", an, [
998
+ P(Se, {
999
999
  title: s.value.banner.title,
1000
1000
  subTitle: s.value.banner.subTitle,
1001
- email: E()
1001
+ email: G()
1002
1002
  }, null, 8, ["title", "subTitle", "email"]),
1003
- k("div", an, [
1004
- F($, {
1003
+ h("div", sn, [
1004
+ P(k, {
1005
1005
  loading: T.value,
1006
1006
  class: "form-container"
1007
1007
  }, {
1008
- default: y(() => [
1009
- k("div", sn, [
1010
- k("div", rn, [
1011
- (u(!0), x(M, null, B(re.value, (C) => (u(), U(m, {
1012
- key: C.name,
1013
- title: C.name,
1008
+ default: _(() => [
1009
+ h("div", rn, [
1010
+ h("div", ln, [
1011
+ (u(!0), C(M, null, B(Q.value, ($) => (u(), U(m, {
1012
+ key: $.name,
1013
+ title: $.name,
1014
1014
  style: { "margin-bottom": "24px" }
1015
1015
  }, {
1016
- default: y(() => [
1017
- k("div", ln, [
1018
- (u(!0), x(M, null, B(C.fields, (P) => (u(), U(Me, {
1019
- key: P.fieldKey,
1016
+ default: _(() => [
1017
+ h("div", cn, [
1018
+ (u(!0), C(M, null, B($.fields, (F) => (u(), U(He, {
1019
+ key: F.fieldKey,
1020
1020
  ref_for: !0,
1021
1021
  ref: "dataWidgets",
1022
- "field-key": P.fieldKey,
1023
- config: P,
1024
- "class-name": v.className,
1025
- modelValue: _[P.fieldKey],
1026
- "onUpdate:modelValue": (H) => _[P.fieldKey] = H,
1022
+ "field-key": F.fieldKey,
1023
+ config: F,
1024
+ "class-name": w.className,
1025
+ modelValue: v[F.fieldKey],
1026
+ "onUpdate:modelValue": (K) => v[F.fieldKey] = K,
1027
1027
  class: "form-field",
1028
- onChange: Q
1028
+ onChange: ue
1029
1029
  }, null, 8, ["field-key", "config", "class-name", "modelValue", "onUpdate:modelValue"]))), 128))
1030
1030
  ])
1031
1031
  ]),
1032
1032
  _: 2
1033
1033
  }, 1032, ["title"]))), 128))
1034
1034
  ]),
1035
- v.$slots.content ? (u(), x("div", cn, [
1036
- le(v.$slots, "content", {}, void 0, !0)
1037
- ])) : te("", !0)
1035
+ w.$slots.content ? (u(), C("div", un, [
1036
+ le(w.$slots, "content", {}, void 0, !0)
1037
+ ])) : Z("", !0)
1038
1038
  ])
1039
1039
  ]),
1040
1040
  _: 3
1041
1041
  }, 8, ["loading"])
1042
1042
  ]),
1043
- k("div", un, [
1044
- k("div", dn, [
1045
- le(v.$slots, "action", {}, void 0, !0),
1046
- k("div", fn, [
1047
- (u(!0), x(M, null, B(I.value, (C) => (u(), U(ve, {
1048
- key: C.Title,
1049
- loading: C.loading,
1050
- config: C,
1043
+ h("div", dn, [
1044
+ h("div", fn, [
1045
+ le(w.$slots, "action", {}, void 0, !0),
1046
+ h("div", pn, [
1047
+ (u(!0), C(M, null, B(I.value, ($) => (u(), U(ve, {
1048
+ key: $.Title,
1049
+ loading: $.loading,
1050
+ config: $,
1051
1051
  class: "action-button",
1052
- onClick: (...P) => J(C, ...P)
1052
+ onClick: (...F) => J($, ...F)
1053
1053
  }, null, 8, ["loading", "config", "onClick"]))), 128))
1054
1054
  ])
1055
1055
  ])
@@ -1057,17 +1057,17 @@ const on = { class: "page-container" }, an = { class: "page-body" }, sn = { clas
1057
1057
  ]);
1058
1058
  };
1059
1059
  }
1060
- }), mn = /* @__PURE__ */ me(pn, [["__scopeId", "data-v-ca3b2cdb"]]), gn = { class: "page-container" }, vn = { class: "page-body" }, _n = { class: "form-card" }, yn = { class: "form-fields-vertical" }, wn = { class: "form-fields" }, bn = {
1060
+ }), gn = /* @__PURE__ */ me(mn, [["__scopeId", "data-v-ca3b2cdb"]]), vn = { class: "page-container" }, _n = { class: "page-body" }, yn = { class: "form-card" }, wn = { class: "form-fields-vertical" }, bn = { class: "form-fields" }, hn = {
1061
1061
  key: 0,
1062
1062
  class: "form-content"
1063
- }, hn = { class: "page-footer" }, kn = { class: "action-container" }, Cn = { class: "action-buttons" }, Vn = /* @__PURE__ */ j({
1063
+ }, kn = { class: "page-footer" }, Cn = { class: "action-container" }, Sn = { class: "action-buttons" }, Vn = /* @__PURE__ */ z({
1064
1064
  __name: "UpdateView",
1065
1065
  props: {
1066
1066
  className: {},
1067
1067
  workflowId: {}
1068
1068
  },
1069
1069
  setup(e) {
1070
- const t = he(), a = He(), n = Ce(), o = ke(), l = Fe("dataWidgets"), r = we(), c = e, s = h({
1070
+ const t = he(), a = Be(), n = Ce(), o = ke(), l = Le("dataWidgets"), r = we(), c = e, s = b({
1071
1071
  pageType: "",
1072
1072
  fields: {},
1073
1073
  globalValidations: [],
@@ -1075,17 +1075,17 @@ const on = { class: "page-container" }, an = { class: "page-body" }, sn = { clas
1075
1075
  title: "",
1076
1076
  subTitle: ""
1077
1077
  }
1078
- }), i = h([]), w = h({});
1079
- function f(v) {
1080
- return v ? Object.entries(v).map(([m, $]) => ({
1078
+ }), i = b([]), y = b({});
1079
+ function d(w) {
1080
+ return w ? Object.entries(w).map(([m, k]) => ({
1081
1081
  fieldKey: m,
1082
- ...$
1082
+ ...k
1083
1083
  })).filter((m) => m.widget && m.widget.widget !== "Hidden").filter((m) => !X.value.includes(m.fieldKey)) : [];
1084
1084
  }
1085
- function S(v) {
1086
- return v ? Object.entries(v).filter(([m, $]) => $.dependent).reduce((m, [$, C]) => (m[$] = C.dependent, m), {}) : [];
1085
+ function V(w) {
1086
+ return w ? Object.entries(w).filter(([m, k]) => k.dependent).reduce((m, [k, $]) => (m[k] = $.dependent, m), {}) : [];
1087
1087
  }
1088
- const I = q(() => s.value?.actions ? [...s.value.actions].reverse() : []), _ = Pe({}), T = h(!1);
1088
+ const I = q(() => s.value?.actions ? [...s.value.actions].reverse() : []), v = De({}), T = b(!1);
1089
1089
  ce(async () => {
1090
1090
  T.value = !0, s.value = await be(de.Update, c.className, {
1091
1091
  svrStore: n,
@@ -1093,45 +1093,45 @@ const on = { class: "page-container" }, an = { class: "page-body" }, sn = { clas
1093
1093
  }, {
1094
1094
  workflowId: c.workflowId
1095
1095
  });
1096
- const v = await Ye(de.Update, c.className, { workflowId: c.workflowId, email: E() }), N = await Je(c.className, c.workflowId);
1096
+ const w = await Je(de.Update, c.className, { workflowId: c.workflowId, email: G() }), N = await Xe(c.className, c.workflowId);
1097
1097
  s.value.actions = s.value.actions?.filter((m) => {
1098
- const $ = v.find((C) => C.button === m.title);
1099
- return $ ? $.isShow : !0;
1100
- }), i.value = f(s.value.fields), w.value = S(s.value.fields);
1098
+ const k = w.find(($) => $.button === m.title);
1099
+ return k ? k.isShow : !0;
1100
+ }), i.value = d(s.value.fields), y.value = V(s.value.fields);
1101
1101
  for (const m in s.value.fields) {
1102
1102
  if (s.value.fields[m].widget?.widget === "File") {
1103
- const $ = i.value.find((C) => C.fieldKey === m);
1104
- $ && $.widget && ($.widget.files = N[m] ?? [], $.widget.removeFile = (C) => Ut(c.className, C));
1103
+ const k = i.value.find(($) => $.fieldKey === m);
1104
+ k && k.widget && (k.widget.files = N[m] ?? [], k.widget.removeFile = ($) => Nt(c.className, $));
1105
1105
  }
1106
- _[m] = s.value.fields[m].modelValue;
1106
+ v[m] = s.value.fields[m].modelValue;
1107
1107
  }
1108
1108
  T.value = !1;
1109
1109
  });
1110
- function E() {
1110
+ function G() {
1111
1111
  return n()?.userInfo?.email_address ?? "";
1112
1112
  }
1113
- async function J(v, N, m, $, C) {
1113
+ async function J(w, N, m, k, $) {
1114
1114
  switch (N) {
1115
1115
  case Y.Submit:
1116
- let P = !0;
1117
- if (l.value?.forEach((H) => {
1118
- H?.validate && (H.validate() || (P = !1));
1119
- }), !P) {
1116
+ let F = !0;
1117
+ if (l.value?.forEach((K) => {
1118
+ K?.validate && (K.validate() || (F = !1));
1119
+ }), !F) {
1120
1120
  r?.appContext.config.globalProperties.$message.error("form validation failed, please check the input fields");
1121
1121
  return;
1122
1122
  }
1123
- v.loading = !0, await ht(c.className, c.workflowId, { ..._, ...w.value }, m), v.loading = !1, l.value?.forEach((H) => {
1124
- H?.submit && H.submit(c.workflowId);
1123
+ w.loading = !0, await kt(c.className, c.workflowId, { ...v, ...y.value }, m), w.loading = !1, l.value?.forEach((K) => {
1124
+ K?.submit && K.submit(c.workflowId);
1125
1125
  }), r?.appContext.config.globalProperties.$notification.success("update success!");
1126
1126
  break;
1127
1127
  case Y.Link:
1128
- t.push({ name: $, params: { className: c.className } });
1128
+ t.push({ name: k, params: { className: c.className } });
1129
1129
  break;
1130
1130
  default:
1131
1131
  console.warn("Unknown action type:", N);
1132
1132
  }
1133
1133
  }
1134
- const X = h([
1134
+ const X = b([
1135
1135
  "jobScpope",
1136
1136
  "currentWorkdayId",
1137
1137
  "originalGrade",
@@ -1139,68 +1139,68 @@ const on = { class: "page-container" }, an = { class: "page-body" }, sn = { clas
1139
1139
  "jobAttachmentPrevious",
1140
1140
  "positionId"
1141
1141
  ]);
1142
- function Q(v, N) {
1143
- a[v]?.(N, X), s.value && (i.value = f(s.value.fields));
1142
+ function ue(w, N) {
1143
+ a[w]?.(N, X), s.value && (i.value = d(s.value.fields));
1144
1144
  }
1145
- const re = q(() => Be(i.value));
1146
- return (v, N) => {
1147
- const m = V("a-card"), $ = V("a-spin");
1148
- return u(), x("div", gn, [
1149
- F(Ve, {
1145
+ const Q = q(() => Ke(i.value));
1146
+ return (w, N) => {
1147
+ const m = S("a-card"), k = S("a-spin");
1148
+ return u(), C("div", vn, [
1149
+ P(Se, {
1150
1150
  title: s.value.banner.title,
1151
1151
  subTitle: s.value.banner.subTitle,
1152
- email: E()
1152
+ email: G()
1153
1153
  }, null, 8, ["title", "subTitle", "email"]),
1154
- k("div", vn, [
1155
- F($, {
1154
+ h("div", _n, [
1155
+ P(k, {
1156
1156
  loading: T.value,
1157
1157
  class: "form-container"
1158
1158
  }, {
1159
- default: y(() => [
1160
- k("div", _n, [
1161
- k("div", yn, [
1162
- (u(!0), x(M, null, B(re.value, (C) => (u(), U(m, {
1163
- key: C.name,
1164
- title: C.name,
1159
+ default: _(() => [
1160
+ h("div", yn, [
1161
+ h("div", wn, [
1162
+ (u(!0), C(M, null, B(Q.value, ($) => (u(), U(m, {
1163
+ key: $.name,
1164
+ title: $.name,
1165
1165
  style: { "margin-bottom": "24px" }
1166
1166
  }, {
1167
- default: y(() => [
1168
- k("div", wn, [
1169
- (u(!0), x(M, null, B(C.fields, (P) => (u(), U(Me, {
1170
- key: P.fieldKey,
1167
+ default: _(() => [
1168
+ h("div", bn, [
1169
+ (u(!0), C(M, null, B($.fields, (F) => (u(), U(He, {
1170
+ key: F.fieldKey,
1171
1171
  ref_for: !0,
1172
1172
  ref: "dataWidgets",
1173
- "field-key": P.fieldKey,
1174
- config: P,
1175
- "class-name": v.className,
1176
- modelValue: _[P.fieldKey],
1177
- "onUpdate:modelValue": (H) => _[P.fieldKey] = H,
1173
+ "field-key": F.fieldKey,
1174
+ config: F,
1175
+ "class-name": w.className,
1176
+ modelValue: v[F.fieldKey],
1177
+ "onUpdate:modelValue": (K) => v[F.fieldKey] = K,
1178
1178
  class: "form-field",
1179
- onChange: Q
1179
+ onChange: ue
1180
1180
  }, null, 8, ["field-key", "config", "class-name", "modelValue", "onUpdate:modelValue"]))), 128))
1181
1181
  ])
1182
1182
  ]),
1183
1183
  _: 2
1184
1184
  }, 1032, ["title"]))), 128))
1185
1185
  ]),
1186
- v.$slots.content ? (u(), x("div", bn, [
1187
- le(v.$slots, "content", {}, void 0, !0)
1188
- ])) : te("", !0)
1186
+ w.$slots.content ? (u(), C("div", hn, [
1187
+ le(w.$slots, "content", {}, void 0, !0)
1188
+ ])) : Z("", !0)
1189
1189
  ])
1190
1190
  ]),
1191
1191
  _: 3
1192
1192
  }, 8, ["loading"])
1193
1193
  ]),
1194
- k("div", hn, [
1195
- k("div", kn, [
1196
- le(v.$slots, "action", {}, void 0, !0),
1197
- k("div", Cn, [
1198
- (u(!0), x(M, null, B(I.value, (C) => (u(), U(ve, {
1199
- key: C.Title,
1200
- loading: C.loading,
1201
- config: C,
1194
+ h("div", kn, [
1195
+ h("div", Cn, [
1196
+ le(w.$slots, "action", {}, void 0, !0),
1197
+ h("div", Sn, [
1198
+ (u(!0), C(M, null, B(I.value, ($) => (u(), U(ve, {
1199
+ key: $.Title,
1200
+ loading: $.loading,
1201
+ config: $,
1202
1202
  class: "action-button",
1203
- onClick: (...P) => J(C, ...P)
1203
+ onClick: (...F) => J($, ...F)
1204
1204
  }, null, 8, ["loading", "config", "onClick"]))), 128))
1205
1205
  ])
1206
1206
  ])
@@ -1208,24 +1208,24 @@ const on = { class: "page-container" }, an = { class: "page-body" }, sn = { clas
1208
1208
  ]);
1209
1209
  };
1210
1210
  }
1211
- }), Sn = /* @__PURE__ */ me(Vn, [["__scopeId", "data-v-9e5cdbac"]]), tt = Symbol("library-custom-comp");
1212
- function xn() {
1213
- return fe(tt, null);
1211
+ }), xn = /* @__PURE__ */ me(Vn, [["__scopeId", "data-v-9e5cdbac"]]), nt = Symbol("library-custom-comp");
1212
+ function $n() {
1213
+ return fe(nt, null);
1214
1214
  }
1215
- const $n = Symbol("ArcoConfigProvider"), An = "arco", In = "$arco", Tn = (e) => {
1215
+ const An = Symbol("ArcoConfigProvider"), In = "arco", Tn = "$arco", Un = (e) => {
1216
1216
  var t, a, n;
1217
- const o = we(), l = fe($n, void 0);
1218
- return `${(n = (a = l?.prefixCls) != null ? a : (t = o?.appContext.config.globalProperties[In]) == null ? void 0 : t.classPrefix) != null ? n : An}-${e}`;
1219
- }, Un = Object.prototype.toString;
1220
- function Nn(e) {
1221
- return Un.call(e) === "[object Number]" && e === e;
1217
+ const o = we(), l = fe(An, void 0);
1218
+ return `${(n = (a = l?.prefixCls) != null ? a : (t = o?.appContext.config.globalProperties[Tn]) == null ? void 0 : t.classPrefix) != null ? n : In}-${e}`;
1219
+ }, Nn = Object.prototype.toString;
1220
+ function Fn(e) {
1221
+ return Nn.call(e) === "[object Number]" && e === e;
1222
1222
  }
1223
- var Fn = (e, t) => {
1223
+ var Ln = (e, t) => {
1224
1224
  for (const [a, n] of t)
1225
1225
  e[a] = n;
1226
1226
  return e;
1227
1227
  };
1228
- const Ln = j({
1228
+ const Pn = z({
1229
1229
  name: "IconDownload",
1230
1230
  props: {
1231
1231
  size: {
@@ -1252,9 +1252,9 @@ const Ln = j({
1252
1252
  click: (e) => !0
1253
1253
  },
1254
1254
  setup(e, { emit: t }) {
1255
- const a = Tn("icon"), n = q(() => [a, `${a}-download`, { [`${a}-spin`]: e.spin }]), o = q(() => {
1255
+ const a = Un("icon"), n = q(() => [a, `${a}-download`, { [`${a}-spin`]: e.spin }]), o = q(() => {
1256
1256
  const r = {};
1257
- return e.size && (r.fontSize = Nn(e.size) ? `${e.size}px` : e.size), e.rotate && (r.transform = `rotate(${e.rotate}deg)`), r;
1257
+ return e.size && (r.fontSize = Fn(e.size) ? `${e.size}px` : e.size), e.rotate && (r.transform = `rotate(${e.rotate}deg)`), r;
1258
1258
  });
1259
1259
  return {
1260
1260
  cls: n,
@@ -1264,44 +1264,47 @@ const Ln = j({
1264
1264
  }
1265
1265
  };
1266
1266
  }
1267
- }), Pn = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1268
- function Dn(e, t, a, n, o, l) {
1269
- return u(), x("svg", {
1267
+ }), Dn = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1268
+ function Rn(e, t, a, n, o, l) {
1269
+ return u(), C("svg", {
1270
1270
  viewBox: "0 0 48 48",
1271
1271
  fill: "none",
1272
1272
  xmlns: "http://www.w3.org/2000/svg",
1273
1273
  stroke: "currentColor",
1274
- class: at(e.cls),
1275
- style: ot(e.innerStyle),
1274
+ class: st(e.cls),
1275
+ style: at(e.innerStyle),
1276
1276
  "stroke-width": e.strokeWidth,
1277
1277
  "stroke-linecap": e.strokeLinecap,
1278
1278
  "stroke-linejoin": e.strokeLinejoin,
1279
1279
  onClick: t[0] || (t[0] = (...r) => e.onClick && e.onClick(...r))
1280
1280
  }, t[1] || (t[1] = [
1281
- k("path", { d: "m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6" }, null, -1)
1282
- ]), 14, Pn);
1281
+ h("path", { d: "m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6" }, null, -1)
1282
+ ]), 14, Dn);
1283
1283
  }
1284
- var Ue = /* @__PURE__ */ Fn(Ln, [["render", Dn]]);
1285
- const Rn = Object.assign(Ue, {
1284
+ var Ne = /* @__PURE__ */ Ln(Pn, [["render", Rn]]);
1285
+ const Mn = Object.assign(Ne, {
1286
1286
  install: (e, t) => {
1287
1287
  var a;
1288
1288
  const n = (a = t?.iconPrefix) != null ? a : "";
1289
- e.component(n + Ue.name, Ue);
1289
+ e.component(n + Ne.name, Ne);
1290
1290
  }
1291
- }), Mn = { class: "page-container" }, Hn = { class: "page-body" }, Bn = { class: "detail-card" }, Kn = { class: "form-fields-vertical" }, jn = { class: "detail-fields" }, zn = { class: "detail-field" }, En = { class: "field-label" }, Gn = {
1291
+ }), Hn = { class: "page-container" }, Bn = { class: "page-body" }, Kn = { class: "detail-card" }, jn = { class: "form-fields-vertical" }, zn = { class: "detail-fields" }, En = { class: "detail-field" }, Gn = { class: "field-label" }, On = {
1292
1292
  key: 1,
1293
1293
  class: "field-value"
1294
- }, On = { class: "detail-field-wrapper" }, Wn = { class: "detail-field" }, qn = {
1294
+ }, Wn = {
1295
+ key: 2,
1296
+ class: "detail-field-wrapper"
1297
+ }, qn = { class: "detail-field" }, Yn = {
1295
1298
  key: 0,
1296
1299
  class: "detail-content"
1297
- }, Yn = { class: "page-footer" }, Jn = { class: "action-container" }, Xn = { class: "action-buttons" }, Qn = /* @__PURE__ */ j({
1300
+ }, Jn = { class: "page-footer" }, Xn = { class: "action-container" }, Qn = { class: "action-buttons" }, Zn = /* @__PURE__ */ z({
1298
1301
  __name: "DetailView",
1299
1302
  props: {
1300
1303
  className: {},
1301
1304
  workflowId: {}
1302
1305
  },
1303
1306
  setup(e) {
1304
- const t = Ce(), a = ke(), n = He(), o = he(), l = xn(), r = we(), c = e, s = h({
1307
+ const t = Ce(), a = ke(), n = Be(), o = he(), l = $n(), r = we(), c = e, s = b({
1305
1308
  pageType: "",
1306
1309
  fields: {},
1307
1310
  globalValidations: [],
@@ -1309,16 +1312,16 @@ const Rn = Object.assign(Ue, {
1309
1312
  title: "",
1310
1313
  subTitle: ""
1311
1314
  }
1312
- }), i = h([]);
1313
- function w(p) {
1314
- return p ? Object.entries(p).map(([b, g]) => (typeof g.modelValue == "boolean" ? g.fieldValue = g.modelValue ? "Yes" : "No" : g.fieldValue = g.modelValue, {
1315
- fieldKey: b,
1315
+ }), i = b([]);
1316
+ function y(f) {
1317
+ return f ? Object.entries(f).map(([D, g]) => (typeof g.modelValue == "boolean" ? g.fieldValue = g.modelValue ? "Yes" : "No" : g.fieldValue = g.modelValue, {
1318
+ fieldKey: D,
1316
1319
  ...g
1317
- })).filter((b) => b.widget && b.widget.widget !== "Hidden") : [];
1320
+ })).filter((D) => D.widget && D.widget.widget !== "Hidden") : [];
1318
1321
  }
1319
- const f = q(() => Be(i.value)), S = q(() => s.value?.actions ? [...s.value.actions].reverse() : []), I = h(!0), _ = (p, d) => {
1320
- const b = p.findIndex((g) => g.isCurrent);
1321
- return p.map((g, D) => {
1322
+ const d = q(() => Ke(i.value)), V = q(() => s.value?.actions ? [...s.value.actions].reverse() : []), I = b(!0), v = (f, p) => {
1323
+ const D = f.findIndex((g) => g.isCurrent);
1324
+ return f.map((g, H) => {
1322
1325
  const A = {
1323
1326
  id: g.id,
1324
1327
  title: "",
@@ -1329,164 +1332,164 @@ const Rn = Object.assign(Ue, {
1329
1332
  time: ""
1330
1333
  };
1331
1334
  A.title = g.workflowProcessApprovers[0]?.name;
1332
- const se = g.workflowProcessApprovers[g.workflowProcessApprovers.length - 1], Z = g.workflowHistorys[g.workflowHistorys.length - 1], ee = Z?.workflowHistoryApprovers[Z?.workflowHistoryApprovers?.length - 1];
1333
- if (se && ee && se?.email?.toLowerCase() !== ee?.approverEmail?.toLowerCase() && (A.title = `${ee.name}`, A.proxy = `Proxy: ${se.name}`), g.sort > 1 ? A.sub = "Approver Role: " + g.nodeName.replace("Submit", "").replace("Approve", "") : A.sub = "Submit Application", g.isCurrent && d !== -1)
1335
+ const re = g.workflowProcessApprovers[g.workflowProcessApprovers.length - 1], te = g.workflowHistorys[g.workflowHistorys.length - 1], ne = te?.workflowHistoryApprovers[te?.workflowHistoryApprovers?.length - 1];
1336
+ if (re && ne && re?.email?.toLowerCase() !== ne?.approverEmail?.toLowerCase() && (A.title = `${ne.name}`, A.proxy = `Proxy: ${re.name}`), g.sort > 1 ? A.sub = "Approver Role: " + g.nodeName.replace("Submit", "").replace("Approve", "") : A.sub = "Submit Application", g.isCurrent && p !== -1)
1334
1337
  A.desc = "In Approval", A.status = 1;
1335
1338
  else {
1336
- const G = g.workflowHistorys[g.workflowHistorys.length - 1];
1337
- if (G && G.status === 100)
1338
- A.time = ye(G.takeActionAt, "yyyy-MM-dd hh:mm:ss"), A.status = 2, A.desc = "approve success!";
1339
- else if (G && G.status === 999)
1340
- A.time = ye(G.takeActionAt, "yyyy-MM-dd hh:mm:ss"), A.status = 0, A.desc = "approve reject!";
1341
- else if (G)
1342
- if (A.time = ye(G.takeActionAt, "yyyy-MM-dd hh:mm:ss"), g.sort === 1)
1339
+ const L = g.workflowHistorys[g.workflowHistorys.length - 1];
1340
+ if (L && L.status === 100)
1341
+ A.time = ye(L.takeActionAt, "yyyy-MM-dd hh:mm:ss"), A.status = 2, A.desc = "approve success!";
1342
+ else if (L && L.status === 999)
1343
+ A.time = ye(L.takeActionAt, "yyyy-MM-dd hh:mm:ss"), A.status = 0, A.desc = "approve reject!";
1344
+ else if (L)
1345
+ if (A.time = ye(L.takeActionAt, "yyyy-MM-dd hh:mm:ss"), g.sort === 1)
1343
1346
  A.status = 2, A.desc = "";
1344
1347
  else {
1345
- const R = G.workflowHistoryApprovers[0];
1346
- A.status = 3, A.desc = R?.reason ? `Rejected reason: ${R.reason}` : "Rejected";
1348
+ const oe = L.workflowHistoryApprovers[0];
1349
+ A.status = 3, A.desc = oe?.reason ? `Rejected reason: ${oe.reason}` : "Rejected";
1347
1350
  }
1348
- else D < b || b === -1 ? (A.status = 0, A.desc = "Skipped") : (A.status = 0, A.desc = "Pending Approval");
1349
- G && G.status;
1351
+ else H < D || D === -1 ? (A.status = 0, A.desc = "Skipped") : (A.status = 0, A.desc = "Pending Approval");
1352
+ L && L.status;
1350
1353
  }
1351
1354
  return A;
1352
1355
  });
1353
- }, T = h([]), E = h(!1), J = h(!1);
1354
- async function oe() {
1356
+ }, T = b([]), G = b(!1), J = b(!1), se = b(!1);
1357
+ async function X() {
1355
1358
  I.value = !0, s.value = await be(de.Details, c.className, {
1356
1359
  svrStore: t,
1357
1360
  bpmStore: a
1358
1361
  }, {
1359
1362
  workflowId: c.workflowId
1360
1363
  });
1361
- const p = await Ye(de.Details, c.className, { workflowId: c.workflowId, email: Q() }), d = await Je(c.className, c.workflowId);
1362
- $.value = await Nt(), N.value = await je(c.workflowId), C.value = await Te(c.workflowId), s.value.actions = s.value.actions?.filter((g) => {
1363
- const D = p.find((A) => A.button === g.title);
1364
- return D ? D.isShow : !0;
1365
- }), E.value = p.find((g) => g.button === "IsGlobal")?.isShow ?? !1, J.value = p.find((g) => g.button === "AssginButton")?.isShow ?? !1, i.value = w(s.value.fields);
1364
+ const f = await Je(de.Details, c.className, { workflowId: c.workflowId, email: Q() }), p = await Xe(c.className, c.workflowId);
1365
+ $.value = await Ft(), m.value = await ze(c.workflowId), F.value = await Ue(c.workflowId), s.value.actions = s.value.actions?.filter((g) => {
1366
+ const H = f.find((A) => A.button === g.title);
1367
+ return H ? H.isShow : !0;
1368
+ }), G.value = f.find((g) => g.button === "IsGlobal")?.isShow ?? !1, J.value = f.find((g) => g.button === "AssginButton")?.isShow ?? !1, se.value = f.find((g) => g.button === "CommentsText")?.isShow ?? !1, i.value = y(s.value.fields);
1366
1369
  for (const g in s.value.fields)
1367
1370
  if (s.value.fields[g].widget?.widget === "File") {
1368
- const D = i.value.find((A) => A.fieldKey === g);
1369
- D && D.widget && (D.widget.files = d[g] ?? []);
1371
+ const H = i.value.find((A) => A.fieldKey === g);
1372
+ H && H.widget && (H.widget.files = p[g] ?? []);
1370
1373
  }
1371
- const b = await It(c.className, c.workflowId);
1372
- T.value = _(b, 0), I.value = !1;
1374
+ const D = await Tt(c.className, c.workflowId);
1375
+ T.value = v(D, 0), I.value = !1;
1373
1376
  }
1374
- ce(oe);
1375
- async function X(p, d) {
1376
- return n[p]?.(d);
1377
+ ce(X);
1378
+ async function ue(f, p) {
1379
+ return n[f]?.(p);
1377
1380
  }
1378
1381
  function Q() {
1379
1382
  return t()?.userInfo?.email_address ?? "";
1380
1383
  }
1381
- async function re(p, d, b, g, D) {
1384
+ async function w(f, p, D, g, H) {
1382
1385
  try {
1383
- switch (d) {
1386
+ switch (p) {
1384
1387
  case Y.Submit:
1385
- p.loading = !0;
1386
- const { reason: A, ifGlobal: se } = await X(D, { isGlobal: E.value }), Z = D === "Approve" ? "100" : "-1";
1387
- await $t(c.className, c.workflowId, Q(), A, [Number(c.workflowId)], b, Z, se), p.loading = !1;
1388
- const ee = D === "Approve" ? "approve success!" : "approve reject!";
1389
- r?.appContext.config.globalProperties.$notification.success(ee), oe();
1388
+ f.loading = !0;
1389
+ const { reason: A, ifGlobal: re } = await ue(H, { isGlobal: G.value }), te = H === "Approve" ? "100" : "-1";
1390
+ await At(c.className, c.workflowId, Q(), A, [Number(c.workflowId)], D, te, re), f.loading = !1;
1391
+ const ne = H === "Approve" ? "approve success!" : "approve reject!";
1392
+ r?.appContext.config.globalProperties.$notification.success(ne), X();
1390
1393
  break;
1391
1394
  case Y.Link:
1392
1395
  g === "List" && o.push({ name: "List", params: { className: c.className } });
1393
1396
  break;
1394
1397
  default:
1395
- console.warn("Unknown action type:", d);
1398
+ console.warn("Unknown action type:", p);
1396
1399
  }
1397
1400
  } catch {
1398
1401
  }
1399
1402
  }
1400
- const v = h(""), N = h([]), m = h(""), $ = h([]), C = h([]);
1401
- async function P() {
1402
- if (!m.value) {
1403
+ const N = b(""), m = b([]), k = b(""), $ = b([]), F = b([]);
1404
+ async function K() {
1405
+ if (!k.value) {
1403
1406
  r?.appContext.config.globalProperties.$message.error("Please select an approver");
1404
1407
  return;
1405
1408
  }
1406
- await H("Confirm Assign Approver", "Do you want to assign the selected approver?"), await Ft(c.workflowId, m.value), C.value = await Te(c.workflowId), r?.appContext.config.globalProperties.$notification.success("Assign Approver clicked!");
1409
+ await ee("Confirm Assign Approver", "Do you want to assign the selected approver?"), await Lt(c.workflowId, k.value), F.value = await Ue(c.workflowId), r?.appContext.config.globalProperties.$notification.success("Assign Approver clicked!");
1407
1410
  }
1408
- async function H(p, d) {
1409
- const { Modal: b } = await import("@arco-design/web-vue");
1410
- return new Promise((g, D) => {
1411
- b.confirm({
1412
- title: p,
1413
- content: d,
1411
+ async function ee(f, p) {
1412
+ const { Modal: D } = await import("@arco-design/web-vue");
1413
+ return new Promise((g, H) => {
1414
+ D.confirm({
1415
+ title: f,
1416
+ content: p,
1414
1417
  okText: "OK",
1415
1418
  cancelText: "Cancel",
1416
1419
  onOk: () => g(!0),
1417
- onCancel: () => D()
1420
+ onCancel: () => H()
1418
1421
  });
1419
1422
  });
1420
1423
  }
1421
- async function ae(p) {
1424
+ async function Ve(f) {
1422
1425
  try {
1423
- await H("Confirm Delete Associator", "Do you want to delete this associator?");
1426
+ await ee("Confirm Delete Associator", "Do you want to delete this associator?");
1424
1427
  } catch {
1425
1428
  return;
1426
1429
  }
1427
1430
  try {
1428
- await Pt(String(p)), C.value = await Te(c.workflowId), r?.appContext.config.globalProperties.$notification.success("Associator deleted successfully!");
1431
+ await Dt(String(f)), F.value = await Ue(c.workflowId), r?.appContext.config.globalProperties.$notification.success("Associator deleted successfully!");
1429
1432
  } catch {
1430
1433
  r?.appContext.config.globalProperties.$notification.error("Failed to delete associator");
1431
1434
  }
1432
1435
  }
1433
- async function Se() {
1434
- if (!v.value.trim()) {
1436
+ async function x() {
1437
+ if (!N.value.trim()) {
1435
1438
  r?.appContext.config.globalProperties.$message.error("Comment cannot be empty");
1436
1439
  return;
1437
1440
  }
1438
- await Lt(c.workflowId, Q(), v.value), v.value = "", N.value = await je(c.workflowId), r?.appContext.config.globalProperties.$notification.success("Add Comment clicked!");
1441
+ await Pt(c.workflowId, Q(), N.value), N.value = "", m.value = await ze(c.workflowId), r?.appContext.config.globalProperties.$notification.success("Add Comment clicked!");
1439
1442
  }
1440
- return (p, d) => {
1441
- const b = V("a-link"), g = V("a-space"), D = V("a-card"), A = V("a-option"), se = V("a-select"), Z = V("a-button"), ee = V("a-list-item"), G = V("a-list"), R = V("a-textarea"), ue = V("a-spin");
1442
- return u(), x("div", Mn, [
1443
- F(Ve, {
1443
+ return (f, p) => {
1444
+ const D = S("a-link"), g = S("a-space"), H = S("a-card"), A = S("a-option"), re = S("a-select"), te = S("a-button"), ne = S("a-list-item"), L = S("a-list"), oe = S("a-textarea"), xe = S("a-spin");
1445
+ return u(), C("div", Hn, [
1446
+ P(Se, {
1444
1447
  title: s.value.banner.title,
1445
1448
  subTitle: s.value.banner.subTitle,
1446
1449
  email: Q()
1447
1450
  }, null, 8, ["title", "subTitle", "email"]),
1448
- k("div", Hn, [
1449
- F(ue, {
1451
+ h("div", Bn, [
1452
+ P(xe, {
1450
1453
  loading: I.value,
1451
1454
  class: "detail-container"
1452
1455
  }, {
1453
- default: y(() => [
1454
- k("div", Bn, [
1455
- (u(), U(Le($e(l).Steps), { steps: T.value }, null, 8, ["steps"])),
1456
- k("div", Kn, [
1457
- (u(!0), x(M, null, B(f.value, (L) => (u(), U(D, {
1458
- key: L.name,
1459
- title: L.name,
1456
+ default: _(() => [
1457
+ h("div", Kn, [
1458
+ (u(), U(Pe(Ae(l).Steps), { steps: T.value }, null, 8, ["steps"])),
1459
+ h("div", jn, [
1460
+ (u(!0), C(M, null, B(d.value, (R) => (u(), U(H, {
1461
+ key: R.name,
1462
+ title: R.name,
1460
1463
  style: { "margin-bottom": "24px" }
1461
1464
  }, {
1462
- default: y(() => [
1463
- k("div", jn, [
1464
- (u(!0), x(M, null, B(L.fields, (ie) => (u(), x("div", {
1465
+ default: _(() => [
1466
+ h("div", zn, [
1467
+ (u(!0), C(M, null, B(R.fields, (ie) => (u(), C("div", {
1465
1468
  key: ie.fieldKey,
1466
1469
  class: "detail-field-wrapper"
1467
1470
  }, [
1468
- k("div", zn, [
1469
- k("div", En, W(ie.widget?.title), 1),
1470
- ie.widget?.widget === "File" ? (u(!0), x(M, { key: 0 }, B(ie.widget.files, (xe) => (u(), x("div", {
1471
+ h("div", En, [
1472
+ h("div", Gn, W(ie.widget?.title), 1),
1473
+ ie.widget?.widget === "File" ? (u(!0), C(M, { key: 0 }, B(ie.widget.files, ($e) => (u(), C("div", {
1471
1474
  class: "field-value",
1472
- key: xe.id
1475
+ key: $e.id
1473
1476
  }, [
1474
- F(g, null, {
1475
- default: y(() => [
1476
- O(W(xe.name) + " ", 1),
1477
- F(b, {
1478
- href: xe.url,
1477
+ P(g, null, {
1478
+ default: _(() => [
1479
+ O(W($e.name) + " ", 1),
1480
+ P(D, {
1481
+ href: $e.url,
1479
1482
  target: "_blank"
1480
1483
  }, {
1481
- default: y(() => [
1482
- F($e(Rn), { style: { color: "#7A00E6" } })
1484
+ default: _(() => [
1485
+ P(Ae(Mn), { style: { color: "#7A00E6" } })
1483
1486
  ]),
1484
1487
  _: 2
1485
1488
  }, 1032, ["href"])
1486
1489
  ]),
1487
1490
  _: 2
1488
1491
  }, 1024)
1489
- ]))), 128)) : (u(), x("div", Gn, W(ie.fieldValue), 1))
1492
+ ]))), 128)) : (u(), C("div", On, W(ie.fieldValue), 1))
1490
1493
  ])
1491
1494
  ]))), 128))
1492
1495
  ])
@@ -1494,29 +1497,29 @@ const Rn = Object.assign(Ue, {
1494
1497
  _: 2
1495
1498
  }, 1032, ["title"]))), 128)),
1496
1499
  J.value ? (u(), U(g, { key: 0 }, {
1497
- default: y(() => [
1498
- F(se, {
1499
- modelValue: m.value,
1500
- "onUpdate:modelValue": d[0] || (d[0] = (L) => m.value = L)
1500
+ default: _(() => [
1501
+ P(re, {
1502
+ modelValue: k.value,
1503
+ "onUpdate:modelValue": p[0] || (p[0] = (R) => k.value = R)
1501
1504
  }, {
1502
- default: y(() => [
1503
- (u(!0), x(M, null, B($.value, (L) => (u(), U(A, {
1504
- key: L.value,
1505
- value: L.value
1505
+ default: _(() => [
1506
+ (u(!0), C(M, null, B($.value, (R) => (u(), U(A, {
1507
+ key: R.value,
1508
+ value: R.value
1506
1509
  }, {
1507
- default: y(() => [
1508
- O(W(L.label), 1)
1510
+ default: _(() => [
1511
+ O(W(R.label), 1)
1509
1512
  ]),
1510
1513
  _: 2
1511
1514
  }, 1032, ["value"]))), 128))
1512
1515
  ]),
1513
1516
  _: 1
1514
1517
  }, 8, ["modelValue"]),
1515
- F(Z, {
1518
+ P(te, {
1516
1519
  type: "primary",
1517
- onClick: P
1520
+ onClick: K
1518
1521
  }, {
1519
- default: y(() => d[2] || (d[2] = [
1522
+ default: _(() => p[2] || (p[2] = [
1520
1523
  O("Assign Approver", -1)
1521
1524
  ])),
1522
1525
  _: 1,
@@ -1524,90 +1527,90 @@ const Rn = Object.assign(Ue, {
1524
1527
  })
1525
1528
  ]),
1526
1529
  _: 1
1527
- })) : te("", !0),
1528
- C.value.length ? (u(), U(G, { key: 1 }, {
1529
- header: y(() => d[3] || (d[3] = [
1530
+ })) : Z("", !0),
1531
+ F.value.length ? (u(), U(L, { key: 1 }, {
1532
+ header: _(() => p[3] || (p[3] = [
1530
1533
  O(" Associators ", -1)
1531
1534
  ])),
1532
- default: y(() => [
1533
- (u(!0), x(M, null, B(C.value, (L) => (u(), U(ee, {
1534
- key: L.id
1535
+ default: _(() => [
1536
+ (u(!0), C(M, null, B(F.value, (R) => (u(), U(ne, {
1537
+ key: R.id
1535
1538
  }, {
1536
- actions: y(() => [
1537
- F(Z, {
1539
+ actions: _(() => [
1540
+ P(te, {
1538
1541
  type: "text",
1539
1542
  status: "danger",
1540
- onClick: (ie) => ae(L.id)
1543
+ onClick: (ie) => Ve(R.id)
1541
1544
  }, {
1542
- default: y(() => d[4] || (d[4] = [
1545
+ default: _(() => p[4] || (p[4] = [
1543
1546
  O(" Delete ", -1)
1544
1547
  ])),
1545
1548
  _: 2,
1546
1549
  __: [4]
1547
1550
  }, 1032, ["onClick"])
1548
1551
  ]),
1549
- default: y(() => [
1550
- O(" " + W(L.associator), 1)
1552
+ default: _(() => [
1553
+ O(" " + W(R.associator), 1)
1551
1554
  ]),
1552
1555
  _: 2
1553
1556
  }, 1024))), 128))
1554
1557
  ]),
1555
1558
  _: 1
1556
- })) : te("", !0),
1557
- k("div", On, [
1558
- k("div", Wn, [
1559
- d[6] || (d[6] = k("div", { class: "field-label" }, "Comment", -1)),
1560
- F(R, {
1561
- modelValue: v.value,
1562
- "onUpdate:modelValue": d[1] || (d[1] = (L) => v.value = L)
1559
+ })) : Z("", !0),
1560
+ se.value ? (u(), C("div", Wn, [
1561
+ h("div", qn, [
1562
+ p[6] || (p[6] = h("div", { class: "field-label" }, "Comment", -1)),
1563
+ P(oe, {
1564
+ modelValue: N.value,
1565
+ "onUpdate:modelValue": p[1] || (p[1] = (R) => N.value = R)
1563
1566
  }, null, 8, ["modelValue"]),
1564
- F(Z, {
1567
+ P(te, {
1565
1568
  type: "primary",
1566
- onClick: Se
1569
+ onClick: x
1567
1570
  }, {
1568
- default: y(() => d[5] || (d[5] = [
1571
+ default: _(() => p[5] || (p[5] = [
1569
1572
  O("Add Comment", -1)
1570
1573
  ])),
1571
1574
  _: 1,
1572
1575
  __: [5]
1573
1576
  })
1574
1577
  ])
1575
- ]),
1576
- N.value.length ? (u(), U(G, { key: 2 }, {
1577
- header: y(() => d[7] || (d[7] = [
1578
+ ])) : Z("", !0),
1579
+ m.value.length ? (u(), U(L, { key: 3 }, {
1580
+ header: _(() => p[7] || (p[7] = [
1578
1581
  O(" Comments History ", -1)
1579
1582
  ])),
1580
- default: y(() => [
1581
- (u(!0), x(M, null, B(N.value, (L) => (u(), U(ee, {
1582
- key: L.associator
1583
+ default: _(() => [
1584
+ (u(!0), C(M, null, B(m.value, (R) => (u(), U(ne, {
1585
+ key: R.associator
1583
1586
  }, {
1584
- default: y(() => [
1585
- O(W(L.associator) + ": " + W(L.comments) + " (" + W($e(ye)(L.createdAt)) + ") ", 1)
1587
+ default: _(() => [
1588
+ O(W(R.associator) + ": " + W(R.comments) + " (" + W(Ae(ye)(R.createdAt)) + ") ", 1)
1586
1589
  ]),
1587
1590
  _: 2
1588
1591
  }, 1024))), 128))
1589
1592
  ]),
1590
1593
  _: 1
1591
- })) : te("", !0)
1594
+ })) : Z("", !0)
1592
1595
  ]),
1593
- p.$slots.content ? (u(), x("div", qn, [
1594
- le(p.$slots, "content", {}, void 0, !0)
1595
- ])) : te("", !0)
1596
+ f.$slots.content ? (u(), C("div", Yn, [
1597
+ le(f.$slots, "content", {}, void 0, !0)
1598
+ ])) : Z("", !0)
1596
1599
  ])
1597
1600
  ]),
1598
1601
  _: 3
1599
1602
  }, 8, ["loading"])
1600
1603
  ]),
1601
- k("div", Yn, [
1602
- k("div", Jn, [
1603
- le(p.$slots, "action", {}, void 0, !0),
1604
- k("div", Xn, [
1605
- (u(!0), x(M, null, B(S.value, (L) => (u(), U(ve, {
1606
- key: L.Title,
1607
- loading: L.loading,
1608
- config: L,
1604
+ h("div", Jn, [
1605
+ h("div", Xn, [
1606
+ le(f.$slots, "action", {}, void 0, !0),
1607
+ h("div", Qn, [
1608
+ (u(!0), C(M, null, B(V.value, (R) => (u(), U(ve, {
1609
+ key: R.Title,
1610
+ loading: R.loading,
1611
+ config: R,
1609
1612
  class: "action-button",
1610
- onClick: (...ie) => re(L, ...ie)
1613
+ onClick: (...ie) => w(R, ...ie)
1611
1614
  }, null, 8, ["loading", "config", "onClick"]))), 128))
1612
1615
  ])
1613
1616
  ])
@@ -1615,14 +1618,14 @@ const Rn = Object.assign(Ue, {
1615
1618
  ]);
1616
1619
  };
1617
1620
  }
1618
- }), Zn = /* @__PURE__ */ me(Qn, [["__scopeId", "data-v-39bd940c"]]), eo = { class: "list-container" }, to = { class: "query-title" }, no = { class: "field-wrapper" }, oo = /* @__PURE__ */ j({
1621
+ }), eo = /* @__PURE__ */ me(Zn, [["__scopeId", "data-v-05e892b0"]]), to = { class: "list-container" }, no = { class: "query-title" }, oo = { class: "field-wrapper" }, ao = /* @__PURE__ */ z({
1619
1622
  name: "ListView",
1620
1623
  __name: "ListView",
1621
1624
  props: {
1622
1625
  className: {}
1623
1626
  },
1624
1627
  setup(e) {
1625
- const t = Ce(), a = ke(), n = he(), o = e, l = h(), r = Pe({
1628
+ const t = Ce(), a = ke(), n = he(), o = e, l = b(), r = De({
1626
1629
  current: 1,
1627
1630
  total: 0,
1628
1631
  pageSize: 10,
@@ -1632,16 +1635,16 @@ const Rn = Object.assign(Ue, {
1632
1635
  filters: []
1633
1636
  });
1634
1637
  function c() {
1635
- const p = Object.entries(m.value).filter(([, { value: d }]) => d && d !== "").map(([d, { value: b, operator: g }]) => ({
1636
- key: d,
1637
- value: b,
1638
- operator: g
1638
+ const x = Object.entries(m.value).filter(([, { value: f }]) => f && f !== "").map(([f, { value: p, operator: D }]) => ({
1639
+ key: f,
1640
+ value: p,
1641
+ operator: D
1639
1642
  // 根据实际需要调整操作符
1640
1643
  }));
1641
1644
  return console.log("🚀 ~ createListParams ~ searchFilters:", m.value), {
1642
1645
  pageNumber: r.current,
1643
1646
  pageSize: r.pageSize,
1644
- filters: [...r.filters, ...p],
1647
+ filters: [...r.filters, ...x],
1645
1648
  sorts: [{
1646
1649
  key: "status",
1647
1650
  type: 0
@@ -1649,14 +1652,14 @@ const Rn = Object.assign(Ue, {
1649
1652
  };
1650
1653
  }
1651
1654
  const s = q(() => ({
1652
- x: f.value.length * 150 + 250
1655
+ x: d.value.length * 150 + 250
1653
1656
  // 只设置横向滚动
1654
1657
  // 移除 y 属性,让表格高度自适应
1655
- })), i = (p) => {
1656
- const d = Object.entries(p).filter(([, b]) => b.widget?.column).map(([b, g], D) => ({
1657
- title: g.widget.title,
1658
- dataIndex: b.charAt(0).toLowerCase() + b.slice(1),
1659
- order: g.order,
1658
+ })), i = (x) => {
1659
+ const f = Object.entries(x).filter(([, p]) => p.widget?.column).map(([p, D], g) => ({
1660
+ title: D.widget.title,
1661
+ dataIndex: p.charAt(0).toLowerCase() + p.slice(1),
1662
+ order: D.order,
1660
1663
  ellipsis: !0,
1661
1664
  tooltip: !0,
1662
1665
  width: 150,
@@ -1664,8 +1667,8 @@ const Rn = Object.assign(Ue, {
1664
1667
  // 启用最小宽度
1665
1668
  resizable: !0
1666
1669
  // 启用列宽调整
1667
- })).sort((b, g) => b.order - g.order);
1668
- d.push({
1670
+ })).sort((p, D) => p.order - D.order);
1671
+ f.push({
1669
1672
  title: "Actions",
1670
1673
  slotName: "optional",
1671
1674
  align: "center",
@@ -1673,143 +1676,143 @@ const Rn = Object.assign(Ue, {
1673
1676
  minWidth: 200,
1674
1677
  fixed: "right",
1675
1678
  resizable: !1
1676
- }), f.value = d;
1677
- }, w = h([]), f = h([]), S = h(!0), I = h(!0), _ = h(), T = async () => {
1679
+ }), d.value = f;
1680
+ }, y = b([]), d = b([]), V = b(!0), I = b(!0), v = b(), T = async () => {
1678
1681
  I.value = !0;
1679
- const p = await wt(o.className, c());
1680
- w.value = p.data, r.total = p.totalCount, I.value = !1;
1681
- }, E = h(!1);
1682
+ const x = await bt(o.className, c());
1683
+ y.value = x.data, r.total = x.totalCount, I.value = !1;
1684
+ }, G = b(!1);
1682
1685
  ce(async () => {
1683
- S.value = !0, l.value = await be(3, o.className, {
1686
+ V.value = !0, l.value = await be(3, o.className, {
1684
1687
  svrStore: t,
1685
1688
  bpmStore: a
1686
- }), i(l.value.fields), C(l.value.fields), P(), N(l.value?.tabs?.[0]?.key || ""), _.value = l.value.actions, S.value = !1, E.value = !0;
1687
- }), st(() => {
1688
- E.value && T();
1689
+ }), i(l.value.fields), $(l.value.fields), F(), N(l.value?.tabs?.[0]?.key || ""), v.value = l.value.actions, V.value = !1, G.value = !0;
1690
+ }), rt(() => {
1691
+ G.value && T();
1689
1692
  });
1690
- const J = (p) => {
1691
- r.current = p, T();
1692
- }, oe = (p) => {
1693
- r.pageSize = p, T();
1693
+ const J = (x) => {
1694
+ r.current = x, T();
1695
+ }, se = (x) => {
1696
+ r.pageSize = x, T();
1694
1697
  };
1695
- function X(p, d, b, g, D) {
1696
- switch (p) {
1698
+ function X(x, f, p, D, g) {
1699
+ switch (x) {
1697
1700
  case Y.Link:
1698
- n.push({ name: b, params: { workflowId: D } });
1701
+ n.push({ name: p, params: { workflowId: g } });
1699
1702
  break;
1700
1703
  default:
1701
- console.warn("Unknown action type:", p);
1704
+ console.warn("Unknown action type:", x);
1702
1705
  }
1703
1706
  }
1704
- function Q(p, d, b) {
1705
- switch (p) {
1707
+ function ue(x, f, p) {
1708
+ switch (x) {
1706
1709
  case Y.Link:
1707
- n.push({ name: b });
1710
+ n.push({ name: p });
1708
1711
  break;
1709
1712
  default:
1710
- console.warn("Unknown action type:", p);
1713
+ console.warn("Unknown action type:", x);
1711
1714
  }
1712
1715
  }
1713
- function re() {
1716
+ function Q() {
1714
1717
  return t()?.userInfo?.email_address ?? "";
1715
1718
  }
1716
- function v(p, d) {
1717
- return p.replace(/{currentUserEmail}/g, d);
1719
+ function w(x, f) {
1720
+ return x.replace(/{currentUserEmail}/g, f);
1718
1721
  }
1719
- function N(p) {
1720
- const d = l.value?.tabs?.find((b) => b.key === p)?.filters;
1721
- r.filters = d?.map((b) => ({
1722
- ...b,
1723
- value: v(b.value, re())
1722
+ function N(x) {
1723
+ const f = l.value?.tabs?.find((p) => p.key === x)?.filters;
1724
+ r.filters = f?.map((p) => ({
1725
+ ...p,
1726
+ value: w(p.value, Q())
1724
1727
  })) || [], T();
1725
1728
  }
1726
- const m = h({}), $ = h([]);
1727
- function C(p) {
1728
- if (!p) return [];
1729
- $.value = Object.entries(p).filter(([, d]) => d.isFiltered).map(([d, b]) => ({ fieldKey: d, fieldConfig: b }));
1729
+ const m = b({}), k = b([]);
1730
+ function $(x) {
1731
+ if (!x) return [];
1732
+ k.value = Object.entries(x).filter(([, f]) => f.isFiltered).map(([f, p]) => ({ fieldKey: f, fieldConfig: p }));
1730
1733
  }
1731
- const P = () => {
1732
- const p = {};
1733
- $.value.forEach(({ fieldKey: d, fieldConfig: b }) => {
1734
- p[d] = {}, p[d].value = b.modelValue, p[d].operator = b.operator;
1735
- }), m.value = p;
1736
- }, H = () => {
1734
+ const F = () => {
1735
+ const x = {};
1736
+ k.value.forEach(({ fieldKey: f, fieldConfig: p }) => {
1737
+ x[f] = {}, x[f].value = p.modelValue, x[f].operator = p.operator;
1738
+ }), m.value = x;
1739
+ }, K = () => {
1737
1740
  r.current = 1, T();
1738
- }, ae = () => {
1739
- l.value && P(), H();
1741
+ }, ee = () => {
1742
+ l.value && F(), K();
1740
1743
  };
1741
- function Se(p, d) {
1742
- return !(p.location !== "InTable" || p.title === "Update" && (d.status === 100 || d.status === -1));
1744
+ function Ve(x, f) {
1745
+ return !(x.location !== "InTable" || x.title === "Update" && (f.status === 100 || f.status === -1));
1743
1746
  }
1744
- return (p, d) => {
1745
- const b = V("a-col"), g = V("a-button"), D = V("a-space"), A = V("a-row"), se = V("a-card"), Z = V("a-tab-pane"), ee = V("a-tabs"), G = V("a-table");
1746
- return u(), x("div", eo, [
1747
- F(Ve, {
1747
+ return (x, f) => {
1748
+ const p = S("a-col"), D = S("a-button"), g = S("a-space"), H = S("a-row"), A = S("a-card"), re = S("a-tab-pane"), te = S("a-tabs"), ne = S("a-table");
1749
+ return u(), C("div", to, [
1750
+ P(Se, {
1748
1751
  title: l.value?.banner.title ?? "",
1749
1752
  subTitle: l.value?.banner.subTitle ?? "",
1750
- email: re()
1753
+ email: Q()
1751
1754
  }, null, 8, ["title", "subTitle", "email"]),
1752
- F(se, null, {
1753
- default: y(() => [
1754
- k("div", to, [
1755
- d[0] || (d[0] = k("h3", null, "Search Conditions", -1)),
1756
- k("div", null, [
1757
- (u(!0), x(M, null, B(_.value, (R) => (u(), x(M, {
1758
- key: R.title
1755
+ P(A, null, {
1756
+ default: _(() => [
1757
+ h("div", no, [
1758
+ f[0] || (f[0] = h("h3", null, "Search Conditions", -1)),
1759
+ h("div", null, [
1760
+ (u(!0), C(M, null, B(v.value, (L) => (u(), C(M, {
1761
+ key: L.title
1759
1762
  }, [
1760
- R.location === "InOperation" ? (u(), U(ve, {
1763
+ L.location === "InOperation" ? (u(), U(ve, {
1761
1764
  key: 0,
1762
- config: R,
1763
- onClick: Q
1764
- }, null, 8, ["config"])) : te("", !0)
1765
+ config: L,
1766
+ onClick: ue
1767
+ }, null, 8, ["config"])) : Z("", !0)
1765
1768
  ], 64))), 128))
1766
1769
  ])
1767
1770
  ]),
1768
- F(A, {
1771
+ P(H, {
1769
1772
  gutter: [24, 20],
1770
1773
  class: "search-row"
1771
1774
  }, {
1772
- default: y(() => [
1773
- (u(!0), x(M, null, B($.value, (R) => (u(), U(b, {
1774
- key: R.fieldKey,
1775
+ default: _(() => [
1776
+ (u(!0), C(M, null, B(k.value, (L) => (u(), U(p, {
1777
+ key: L.fieldKey,
1775
1778
  span: 6,
1776
1779
  class: "search-col"
1777
1780
  }, {
1778
- default: y(() => [
1779
- F(Me, {
1780
- name: R.fieldKey,
1781
- config: R.fieldConfig,
1782
- modelValue: m.value[R.fieldKey].value,
1783
- "onUpdate:modelValue": (ue) => m.value[R.fieldKey].value = ue,
1781
+ default: _(() => [
1782
+ P(He, {
1783
+ name: L.fieldKey,
1784
+ config: L.fieldConfig,
1785
+ modelValue: m.value[L.fieldKey].value,
1786
+ "onUpdate:modelValue": (oe) => m.value[L.fieldKey].value = oe,
1784
1787
  class: "form-field"
1785
1788
  }, null, 8, ["name", "config", "modelValue", "onUpdate:modelValue"])
1786
1789
  ]),
1787
1790
  _: 2
1788
1791
  }, 1024))), 128)),
1789
- F(b, {
1792
+ P(p, {
1790
1793
  span: 6,
1791
1794
  class: "search-col"
1792
1795
  }, {
1793
- default: y(() => [
1794
- k("div", no, [
1795
- F(D, { size: "medium" }, {
1796
- default: y(() => [
1797
- F(g, {
1796
+ default: _(() => [
1797
+ h("div", oo, [
1798
+ P(g, { size: "medium" }, {
1799
+ default: _(() => [
1800
+ P(D, {
1798
1801
  type: "primary",
1799
1802
  size: "medium",
1800
- onClick: H
1803
+ onClick: K
1801
1804
  }, {
1802
- default: y(() => d[1] || (d[1] = [
1805
+ default: _(() => f[1] || (f[1] = [
1803
1806
  O(" Search ", -1)
1804
1807
  ])),
1805
1808
  _: 1,
1806
1809
  __: [1]
1807
1810
  }),
1808
- F(g, {
1811
+ P(D, {
1809
1812
  size: "medium",
1810
- onClick: ae
1813
+ onClick: ee
1811
1814
  }, {
1812
- default: y(() => d[2] || (d[2] = [
1815
+ default: _(() => f[2] || (f[2] = [
1813
1816
  O(" Reset ", -1)
1814
1817
  ])),
1815
1818
  _: 1,
@@ -1828,21 +1831,21 @@ const Rn = Object.assign(Ue, {
1828
1831
  ]),
1829
1832
  _: 1
1830
1833
  }),
1831
- F(ee, {
1834
+ P(te, {
1832
1835
  size: "large",
1833
1836
  onTabClick: N
1834
1837
  }, {
1835
- default: y(() => [
1836
- (u(!0), x(M, null, B(l.value?.tabs, (R) => (u(), U(Z, {
1837
- key: R.key,
1838
- title: R.title
1838
+ default: _(() => [
1839
+ (u(!0), C(M, null, B(l.value?.tabs, (L) => (u(), U(re, {
1840
+ key: L.key,
1841
+ title: L.title
1839
1842
  }, null, 8, ["title"]))), 128))
1840
1843
  ]),
1841
1844
  _: 1
1842
1845
  }),
1843
- F(G, {
1844
- columns: f.value,
1845
- data: w.value,
1846
+ P(ne, {
1847
+ columns: d.value,
1848
+ data: y.value,
1846
1849
  stripe: "",
1847
1850
  border: "",
1848
1851
  pagination: {
@@ -1858,20 +1861,20 @@ const Rn = Object.assign(Ue, {
1858
1861
  size: "medium",
1859
1862
  scroll: s.value,
1860
1863
  onPageChange: J,
1861
- onPageSizeChange: oe
1864
+ onPageSizeChange: se
1862
1865
  }, {
1863
- optional: y(({ record: R }) => [
1864
- F(D, { size: "small" }, {
1865
- default: y(() => [
1866
- (u(!0), x(M, null, B(_.value, (ue) => (u(), x(M, {
1867
- key: ue.title
1866
+ optional: _(({ record: L }) => [
1867
+ P(g, { size: "small" }, {
1868
+ default: _(() => [
1869
+ (u(!0), C(M, null, B(v.value, (oe) => (u(), C(M, {
1870
+ key: oe.title
1868
1871
  }, [
1869
- Se(ue, R) ? (u(), U(ve, {
1872
+ Ve(oe, L) ? (u(), U(ve, {
1870
1873
  key: 0,
1871
- config: ue,
1874
+ config: oe,
1872
1875
  size: "small",
1873
- onClick: (...L) => X(...L, R.workflowId)
1874
- }, null, 8, ["config", "onClick"])) : te("", !0)
1876
+ onClick: (...xe) => X(...xe, L.workflowId)
1877
+ }, null, 8, ["config", "onClick"])) : Z("", !0)
1875
1878
  ], 64))), 128))
1876
1879
  ]),
1877
1880
  _: 2
@@ -1882,18 +1885,18 @@ const Rn = Object.assign(Ue, {
1882
1885
  ]);
1883
1886
  };
1884
1887
  }
1885
- }), ao = /* @__PURE__ */ me(oo, [["__scopeId", "data-v-02400871"]]), uo = {
1888
+ }), so = /* @__PURE__ */ me(ao, [["__scopeId", "data-v-02400871"]]), fo = {
1886
1889
  install(e, t = {}) {
1887
- t.config && pt(t.config), t.router && e.provide(Xe, t.router), t.pinia && e.provide(Yt, t.pinia), t.useBpmStore && e.provide(Ze, t.useBpmStore), t.useSvrStore && e.provide(et, t.useSvrStore), t.triggers && e.provide(Qe, t.triggers), t.customComps && e.provide(tt, t.customComps), e.component("CreateView", mn), e.component("UpdateView", Sn), e.component("DetailView", Zn), e.component("ListView", ao);
1890
+ t.config && mt(t.config), t.router && e.provide(Qe, t.router), t.pinia && e.provide(Jt, t.pinia), t.useBpmStore && e.provide(et, t.useBpmStore), t.useSvrStore && e.provide(tt, t.useSvrStore), t.triggers && e.provide(Ze, t.triggers), t.customComps && e.provide(nt, t.customComps), e.component("CreateView", gn), e.component("UpdateView", xn), e.component("DetailView", eo), e.component("ListView", so);
1888
1891
  }
1889
1892
  };
1890
1893
  export {
1891
- mn as CreateView,
1892
- Zn as DetailView,
1893
- ao as ListView,
1894
- Yt as PiniaKey,
1895
- Xe as RouterKey,
1896
- Sn as UpdateView,
1897
- uo as default
1894
+ gn as CreateView,
1895
+ eo as DetailView,
1896
+ so as ListView,
1897
+ Jt as PiniaKey,
1898
+ Qe as RouterKey,
1899
+ xn as UpdateView,
1900
+ fo as default
1898
1901
  };
1899
1902
  //# sourceMappingURL=index.es.js.map