@chase-shao/vue-component-lib 1.2.63 → 1.2.64

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