@chase-shao/vue-component-lib 1.2.48 → 1.2.50

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