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

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