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

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