@chase-shao/vue-component-lib 1.2.82 → 1.2.83

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.css CHANGED
@@ -1 +1 @@
1
- .title[data-v-4bc9e33b]{margin-bottom:.571428rem}.err-msg[data-v-4bc9e33b]{font-size:.857142rem;color:#fb4b2f;margin-top:.285714rem}.required[data-v-4bc9e33b]{color:#fb4b2f;font-size:1.285714rem}.top-bar[data-v-c0457235]{display:flex;align-items:flex-start;justify-content:space-between;padding:16px}.banner-info[data-v-c0457235]{display:flex;flex-direction:column;align-items:flex-start}.page-title[data-v-c0457235]{font-size:24px;font-weight:700;color:#1d2129;padding:12px 0 0}.page-subtitle[data-v-c0457235]{font-size:16px;color:#6b778c;margin-top:4px}.avatar-wrapper[data-v-c0457235]{display:flex;align-items:flex-start}.user-email[data-v-c0457235]{font-size:14px;color:#1d2129;padding:8px 12px}.page-container[data-v-c33c4a8c]{min-height:100vh;background-color:#f5f5f5;display:flex;flex-direction:column}.page-body[data-v-c33c4a8c]{flex:1;padding:24px 32px;overflow-y:auto}.form-container[data-v-c33c4a8c]{width:100%;margin:0 auto}.form-card[data-v-c33c4a8c]{background:#fff;border-radius:8px;box-shadow:0 2px 8px #0000000f;overflow:hidden}.form-fields-vertical[data-v-c33c4a8c]{display:flex;flex-direction:column;gap:24px;padding:32px}@media (max-width: 768px){.form-fields-vertical[data-v-c33c4a8c]{padding:24px 16px;gap:20px}}.form-fields[data-v-c33c4a8c]{padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));column-gap:72px;row-gap:24px}@media (max-width: 768px){.form-fields[data-v-c33c4a8c]{grid-template-columns:1fr;gap:20px}}.form-content[data-v-c33c4a8c]{border-top:1px solid #f0f0f0;padding:24px 32px;background:#fafafa}.page-footer[data-v-c33c4a8c]{background:#fff;border-top:1px solid #e8e8e8;padding:16px 32px;box-shadow:0 -2px 8px #0000000f}@media (max-width: 768px){.page-footer[data-v-c33c4a8c]{padding:16px}}.action-container[data-v-c33c4a8c]{max-width:1200px;margin:0 auto;display:flex;justify-content:flex-end;align-items:center;gap:12px}.action-buttons[data-v-c33c4a8c]{display:flex;gap:12px;align-items:center}.action-button[data-v-c33c4a8c]{min-width:88px;height:36px}.action-button[data-v-c33c4a8c]:hover{transform:translateY(-1px);transition:transform .2s ease}@media (max-width: 1024px){.form-fields[data-v-c33c4a8c]{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}}@media (max-width: 640px){.page-body[data-v-c33c4a8c]{padding:16px}.form-fields-vertical[data-v-c33c4a8c]{padding:20px 16px}.form-fields[data-v-c33c4a8c]{padding:0}.action-container[data-v-c33c4a8c]{flex-direction:column-reverse;align-items:stretch}.action-buttons[data-v-c33c4a8c]{justify-content:center}}.page-container[data-v-a3a1735a]{min-height:100vh;background-color:#f5f5f5;display:flex;flex-direction:column}.page-body[data-v-a3a1735a]{flex:1;padding:24px 32px;overflow-y:auto}.form-container[data-v-a3a1735a]{width:100%;margin:0 auto}.form-card[data-v-a3a1735a]{background:#fff;border-radius:8px;box-shadow:0 2px 8px #0000000f;overflow:hidden}.form-fields-vertical[data-v-a3a1735a]{display:flex;flex-direction:column;gap:24px;padding:32px}@media (max-width: 768px){.form-fields-vertical[data-v-a3a1735a]{padding:24px 16px;gap:20px}}.form-fields[data-v-a3a1735a]{padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));column-gap:72px;row-gap:24px}@media (max-width: 768px){.form-fields[data-v-a3a1735a]{grid-template-columns:1fr;gap:20px}}.form-content[data-v-a3a1735a]{border-top:1px solid #f0f0f0;padding:24px 32px;background:#fafafa}.page-footer[data-v-a3a1735a]{background:#fff;border-top:1px solid #e8e8e8;padding:16px 32px;box-shadow:0 -2px 8px #0000000f}@media (max-width: 768px){.page-footer[data-v-a3a1735a]{padding:16px}}.action-container[data-v-a3a1735a]{max-width:1200px;margin:0 auto;display:flex;justify-content:flex-end;align-items:center;gap:12px}.action-buttons[data-v-a3a1735a]{display:flex;gap:12px;align-items:center}.action-button[data-v-a3a1735a]{min-width:88px;height:36px}.action-button[data-v-a3a1735a]:hover{transform:translateY(-1px);transition:transform .2s ease}@media (max-width: 1024px){.form-fields[data-v-a3a1735a]{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}}@media (max-width: 640px){.page-body[data-v-a3a1735a]{padding:16px}.form-fields-vertical[data-v-a3a1735a]{padding:20px 16px}.form-fields[data-v-a3a1735a]{padding:0}.action-container[data-v-a3a1735a]{flex-direction:column-reverse;align-items:stretch}.action-buttons[data-v-a3a1735a]{justify-content:center}}.page-container[data-v-056d007a]{min-height:100vh;background-color:#f5f5f5;display:flex;flex-direction:column}.page-body[data-v-056d007a]{flex:1;padding:24px 32px;overflow-y:auto}.detail-container[data-v-056d007a]{width:100%;margin:0 auto}.detail-card[data-v-056d007a]{background:#fff;border-radius:8px;box-shadow:0 2px 8px #0000000f;overflow:hidden;padding-top:20px}.form-fields-vertical[data-v-056d007a]{display:flex;flex-direction:column;gap:24px;padding:32px}@media (max-width: 768px){.form-fields-vertical[data-v-056d007a]{padding:24px 16px;gap:20px}}.detail-fields[data-v-056d007a]{padding:32px;display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:24px}@media (max-width: 768px){.detail-fields[data-v-056d007a]{grid-template-columns:1fr;padding:24px 16px;gap:20px}}.detail-field-wrapper .detail-field[data-v-056d007a]{width:100%}.detail-field-wrapper .detail-field .field-label[data-v-056d007a]{font-weight:500;color:#262626;margin-bottom:8px;font-size:14px;line-height:1.4}.detail-field-wrapper .detail-field .field-value[data-v-056d007a]{color:#595959;padding:8px 12px;background-color:#fafafa;border-radius:4px;min-height:40px;display:flex;align-items:center;font-size:14px;line-height:1.5;border:1px solid #f0f0f0;word-break:break-word}.detail-content[data-v-056d007a]{border-top:1px solid #f0f0f0;padding:24px 32px;background:#fafafa}.page-footer[data-v-056d007a]{background:#fff;border-top:1px solid #e8e8e8;padding:16px 32px;box-shadow:0 -2px 8px #0000000f}@media (max-width: 768px){.page-footer[data-v-056d007a]{padding:16px}}.action-container[data-v-056d007a]{max-width:1200px;margin:0 auto;display:flex;justify-content:flex-end;align-items:center;gap:12px}.action-buttons[data-v-056d007a]{display:flex;gap:12px;align-items:center}.action-button[data-v-056d007a]{min-width:88px;height:36px}.action-button[data-v-056d007a]:hover{transform:translateY(-1px);transition:transform .2s ease}@media (max-width: 1024px){.detail-fields[data-v-056d007a]{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}}@media (max-width: 640px){.page-body[data-v-056d007a]{padding:16px}.detail-fields[data-v-056d007a]{padding:20px 16px}.action-container[data-v-056d007a]{flex-direction:column-reverse;align-items:stretch}.action-buttons[data-v-056d007a]{justify-content:center}}.list-container[data-v-639f4f42]{padding:16px}.list-container[data-v-639f4f42] .arco-table .arco-table-body{overflow-x:auto}.query-title[data-v-639f4f42]{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.field-label[data-v-639f4f42]{font-weight:500;margin-bottom:8px}.form-buttons[data-v-639f4f42]{margin-top:24px}.page-container .page-title{font-size:1.285714rem}.action-row .action+.action{margin-inline-start:.571428rem}.arco-spin{min-height:200px}
1
+ .title[data-v-4bc9e33b]{margin-bottom:.571428rem}.err-msg[data-v-4bc9e33b]{font-size:.857142rem;color:#fb4b2f;margin-top:.285714rem}.required[data-v-4bc9e33b]{color:#fb4b2f;font-size:1.285714rem}.top-bar[data-v-c0457235]{display:flex;align-items:flex-start;justify-content:space-between;padding:16px}.banner-info[data-v-c0457235]{display:flex;flex-direction:column;align-items:flex-start}.page-title[data-v-c0457235]{font-size:24px;font-weight:700;color:#1d2129;padding:12px 0 0}.page-subtitle[data-v-c0457235]{font-size:16px;color:#6b778c;margin-top:4px}.avatar-wrapper[data-v-c0457235]{display:flex;align-items:flex-start}.user-email[data-v-c0457235]{font-size:14px;color:#1d2129;padding:8px 12px}.page-container[data-v-68ab1bc3]{min-height:100vh;background-color:#f5f5f5;display:flex;flex-direction:column}.page-body[data-v-68ab1bc3]{flex:1;padding:24px 32px;overflow-y:auto}.form-container[data-v-68ab1bc3]{width:100%;margin:0 auto}.form-card[data-v-68ab1bc3]{background:#fff;border-radius:8px;box-shadow:0 2px 8px #0000000f;overflow:hidden}.form-fields-vertical[data-v-68ab1bc3]{display:flex;flex-direction:column;gap:24px;padding:32px}@media (max-width: 768px){.form-fields-vertical[data-v-68ab1bc3]{padding:24px 16px;gap:20px}}.form-fields[data-v-68ab1bc3]{padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));column-gap:72px;row-gap:24px}@media (max-width: 768px){.form-fields[data-v-68ab1bc3]{grid-template-columns:1fr;gap:20px}}.form-content[data-v-68ab1bc3]{border-top:1px solid #f0f0f0;padding:24px 32px;background:#fafafa}.page-footer[data-v-68ab1bc3]{background:#fff;border-top:1px solid #e8e8e8;padding:16px 32px;box-shadow:0 -2px 8px #0000000f}@media (max-width: 768px){.page-footer[data-v-68ab1bc3]{padding:16px}}.action-container[data-v-68ab1bc3]{max-width:1200px;margin:0 auto;display:flex;justify-content:flex-end;align-items:center;gap:12px}.action-buttons[data-v-68ab1bc3]{display:flex;gap:12px;align-items:center}.action-button[data-v-68ab1bc3]{min-width:88px;height:36px}.action-button[data-v-68ab1bc3]:hover{transform:translateY(-1px);transition:transform .2s ease}@media (max-width: 1024px){.form-fields[data-v-68ab1bc3]{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}}@media (max-width: 640px){.page-body[data-v-68ab1bc3]{padding:16px}.form-fields-vertical[data-v-68ab1bc3]{padding:20px 16px}.form-fields[data-v-68ab1bc3]{padding:0}.action-container[data-v-68ab1bc3]{flex-direction:column-reverse;align-items:stretch}.action-buttons[data-v-68ab1bc3]{justify-content:center}}.page-container[data-v-c638b3c1]{min-height:100vh;background-color:#f5f5f5;display:flex;flex-direction:column}.page-body[data-v-c638b3c1]{flex:1;padding:24px 32px;overflow-y:auto}.form-container[data-v-c638b3c1]{width:100%;margin:0 auto}.form-card[data-v-c638b3c1]{background:#fff;border-radius:8px;box-shadow:0 2px 8px #0000000f;overflow:hidden}.form-fields-vertical[data-v-c638b3c1]{display:flex;flex-direction:column;gap:24px;padding:32px}@media (max-width: 768px){.form-fields-vertical[data-v-c638b3c1]{padding:24px 16px;gap:20px}}.form-fields[data-v-c638b3c1]{padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));column-gap:72px;row-gap:24px}@media (max-width: 768px){.form-fields[data-v-c638b3c1]{grid-template-columns:1fr;gap:20px}}.form-content[data-v-c638b3c1]{border-top:1px solid #f0f0f0;padding:24px 32px;background:#fafafa}.page-footer[data-v-c638b3c1]{background:#fff;border-top:1px solid #e8e8e8;padding:16px 32px;box-shadow:0 -2px 8px #0000000f}@media (max-width: 768px){.page-footer[data-v-c638b3c1]{padding:16px}}.action-container[data-v-c638b3c1]{max-width:1200px;margin:0 auto;display:flex;justify-content:flex-end;align-items:center;gap:12px}.action-buttons[data-v-c638b3c1]{display:flex;gap:12px;align-items:center}.action-button[data-v-c638b3c1]{min-width:88px;height:36px}.action-button[data-v-c638b3c1]:hover{transform:translateY(-1px);transition:transform .2s ease}@media (max-width: 1024px){.form-fields[data-v-c638b3c1]{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}}@media (max-width: 640px){.page-body[data-v-c638b3c1]{padding:16px}.form-fields-vertical[data-v-c638b3c1]{padding:20px 16px}.form-fields[data-v-c638b3c1]{padding:0}.action-container[data-v-c638b3c1]{flex-direction:column-reverse;align-items:stretch}.action-buttons[data-v-c638b3c1]{justify-content:center}}.page-container[data-v-9de406ef]{min-height:100vh;background-color:#f5f5f5;display:flex;flex-direction:column}.page-body[data-v-9de406ef]{flex:1;padding:24px 32px;overflow-y:auto}.detail-container[data-v-9de406ef]{width:100%;margin:0 auto}.detail-card[data-v-9de406ef]{background:#fff;border-radius:8px;box-shadow:0 2px 8px #0000000f;overflow:hidden;padding-top:20px}.form-fields-vertical[data-v-9de406ef]{display:flex;flex-direction:column;gap:24px;padding:32px}@media (max-width: 768px){.form-fields-vertical[data-v-9de406ef]{padding:24px 16px;gap:20px}}.detail-fields[data-v-9de406ef]{padding:32px;display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:24px}@media (max-width: 768px){.detail-fields[data-v-9de406ef]{grid-template-columns:1fr;padding:24px 16px;gap:20px}}.detail-field-wrapper .detail-field[data-v-9de406ef]{width:100%}.detail-field-wrapper .detail-field .field-label[data-v-9de406ef]{font-weight:500;color:#262626;margin-bottom:8px;font-size:14px;line-height:1.4}.detail-field-wrapper .detail-field .field-value[data-v-9de406ef]{color:#595959;padding:8px 12px;background-color:#fafafa;border-radius:4px;min-height:40px;display:flex;align-items:center;font-size:14px;line-height:1.5;border:1px solid #f0f0f0;word-break:break-word}.detail-content[data-v-9de406ef]{border-top:1px solid #f0f0f0;padding:24px 32px;background:#fafafa}.page-footer[data-v-9de406ef]{background:#fff;border-top:1px solid #e8e8e8;padding:16px 32px;box-shadow:0 -2px 8px #0000000f}@media (max-width: 768px){.page-footer[data-v-9de406ef]{padding:16px}}.action-container[data-v-9de406ef]{max-width:1200px;margin:0 auto;display:flex;justify-content:flex-end;align-items:center;gap:12px}.action-buttons[data-v-9de406ef]{display:flex;gap:12px;align-items:center}.action-button[data-v-9de406ef]{min-width:88px;height:36px}.action-button[data-v-9de406ef]:hover{transform:translateY(-1px);transition:transform .2s ease}@media (max-width: 1024px){.detail-fields[data-v-9de406ef]{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}}@media (max-width: 640px){.page-body[data-v-9de406ef]{padding:16px}.detail-fields[data-v-9de406ef]{padding:20px 16px}.action-container[data-v-9de406ef]{flex-direction:column-reverse;align-items:stretch}.action-buttons[data-v-9de406ef]{justify-content:center}}.list-container[data-v-639f4f42]{padding:16px}.list-container[data-v-639f4f42] .arco-table .arco-table-body{overflow-x:auto}.query-title[data-v-639f4f42]{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.field-label[data-v-639f4f42]{font-weight:500;margin-bottom:8px}.form-buttons[data-v-639f4f42]{margin-top:24px}.page-container .page-title{font-size:1.285714rem}.action-row .action+.action{margin-inline-start:.571428rem}.arco-spin{min-height:200px}
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { ref as m, getCurrentInstance as pe, defineComponent as z, mergeModels as ce, useModel as ye, resolveComponent as k, createBlock as B, openBlock as u, onMounted as ue, computed as X, withCtx as S, createElementBlock as V, Fragment as $, renderList as G, createVNode as H, nextTick as ot, createTextVNode as re, useTemplateRef as He, createElementVNode as x, createCommentVNode as ae, toDisplayString as te, resolveDynamicComponent as Be, renderSlot as de, inject as me, reactive as Fe, normalizeStyle as at, normalizeClass as rt, onActivated as st } from "vue";
1
+ import { ref as m, getCurrentInstance as pe, defineComponent as z, mergeModels as ce, useModel as ye, resolveComponent as k, createBlock as B, openBlock as u, onMounted as ue, computed as X, withCtx as S, createElementBlock as V, Fragment as $, renderList as G, createVNode as H, nextTick as nt, createTextVNode as re, useTemplateRef as He, createElementVNode as x, createCommentVNode as ae, toDisplayString as te, resolveDynamicComponent as Be, renderSlot as de, inject as me, normalizeStyle as ot, normalizeClass as at, reactive as rt, onActivated as st } from "vue";
2
2
  import it from "axios";
3
3
  import { defineStore as lt } from "pinia";
4
4
  import { Modal as ct } from "@arco-design/web-vue";
@@ -52,12 +52,12 @@ let De = {};
52
52
  function gt(t) {
53
53
  De = { ...De, ...t };
54
54
  }
55
- function Re() {
55
+ function Fe() {
56
56
  return De;
57
57
  }
58
58
  const _t = pe();
59
- function qe() {
60
- const t = Re();
59
+ function Ge() {
60
+ const t = Fe();
61
61
  return {
62
62
  apiBase: t.apiBase || void 0 || "",
63
63
  appSecret: t.appSecret || void 0 || ""
@@ -74,8 +74,8 @@ function vt(t) {
74
74
  return _t?.appContext.config.globalProperties.$notification.error(t.data.msg), null;
75
75
  }
76
76
  }
77
- function Ye() {
78
- const { apiBase: t } = qe(), n = it.create({
77
+ function qe() {
78
+ const { apiBase: t } = Ge(), n = it.create({
79
79
  baseURL: t,
80
80
  timeout: 20 * 1e3,
81
81
  // 20s
@@ -84,8 +84,8 @@ function Ye() {
84
84
  });
85
85
  return n.interceptors.response.use(vt), n;
86
86
  }
87
- const Je = async () => {
88
- const { apiBase: t, appSecret: n } = qe(), a = Ye(), e = ut();
87
+ const Ye = async () => {
88
+ const { apiBase: t, appSecret: n } = Ge(), a = qe(), e = ut();
89
89
  return await pt(e, "token", async () => {
90
90
  const o = await a.get(`${t}/GenerateToken`, {
91
91
  params: {
@@ -98,7 +98,7 @@ const Je = async () => {
98
98
  }, (o.data?.expireSeconds ?? 3600) * 1e3), o?.data?.token;
99
99
  });
100
100
  }, E = async () => {
101
- const t = await Je(), n = Ye();
101
+ const t = await Ye(), n = qe();
102
102
  return n.defaults.headers.common.Authorization = `Bearer ${t}`, n;
103
103
  }, Pe = {
104
104
  CurrentUserEmail: (t) => t.svrStore()?.userInfo?.email_address ?? "test.email@dataGetter.ts",
@@ -123,10 +123,10 @@ function yt() {
123
123
  }
124
124
  return Ne(ht);
125
125
  }
126
- const wt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ee = { randomUUID: wt };
127
- function Xe(t, n, a) {
128
- if (Ee.randomUUID && !t)
129
- return Ee.randomUUID();
126
+ const wt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), $e = { randomUUID: wt };
127
+ function Je(t, n, a) {
128
+ if ($e.randomUUID && !t)
129
+ return $e.randomUUID();
130
130
  t = t || {};
131
131
  const e = t.random ?? t.rng?.() ?? yt();
132
132
  if (e.length < 16)
@@ -158,7 +158,7 @@ function kt(t, n, a) {
158
158
  const l = o.showToRoles.split(",").map((c) => c.trim()), s = a.bpmStore().employeeInfo.roleList.some((c) => l.includes(c.name)) || o.showToRoles === "";
159
159
  if (o.widget === "Tab") {
160
160
  e.tabs || (e.tabs = []), s && e.tabs.push({
161
- key: Xe(),
161
+ key: Je(),
162
162
  title: o.title,
163
163
  filters: o.filters ? JSON.parse(o.filters) : [],
164
164
  order: o.order
@@ -181,7 +181,7 @@ function kt(t, n, a) {
181
181
  eventName: o.eventName
182
182
  });
183
183
  }
184
- } else o.attributeType === "Banner" && (e.banner.title = o.title, n === 0 || n === 5 ? e.banner.subTitle = o.subTitle : e.banner.subTitle = Le(o.subTitle, t.workflowId.propertyValue));
184
+ } else o.attributeType === "Banner" && (e.banner.title = o.title, n === 0 || n === 5 ? e.banner.subTitle = o.subTitle : e.banner.subTitle = Re(o.subTitle, t.workflowId.propertyValue));
185
185
  }), e.tabs && (e.tabs = e.tabs.sort((o, l) => o.order - l.order)), Object.entries(t).forEach(([o, l]) => {
186
186
  if (o === "__ClassAttributes" || o === "className" || o === "id" || o === "deleteFlag" || o === "status" || o === "workFlowReason" || n !== 3 && o === "workflowId")
187
187
  return;
@@ -203,7 +203,7 @@ function kt(t, n, a) {
203
203
  s.modelValue = i;
204
204
  break;
205
205
  }
206
- o === "onBehalf" && n === 0 && (s.modelValue = Pe.CurrentUserEmail(a)), n === 1 && (o === "directReports" || o === "employeesInTheTeam") && s.modelValue && (s.modelValue = Number(s.modelValue)), c?.forEach((r) => {
206
+ o === "onBehalf" && n === 0 && (s.modelValue = Pe.CurrentUserEmail(a)), (n === 1 || n === 5) && (o === "directReports" || o === "employeesInTheTeam") && s.modelValue && (s.modelValue = Number(s.modelValue)), c?.forEach((r) => {
207
207
  r.order || r.Order ? s.order = r.order ?? r.Order : r.attributeType === "UIControl" ? s.widget = {
208
208
  ...r,
209
209
  column: !0
@@ -217,7 +217,7 @@ function kt(t, n, a) {
217
217
  }), e.fields[o] = s;
218
218
  }), e;
219
219
  }
220
- const Ke = async (t, n, a, e) => {
220
+ const Ee = async (t, n, a, e) => {
221
221
  const l = await (await E()).get(`/General/${n}/${t}/page`, { params: e });
222
222
  return kt(l?.data, t, a);
223
223
  }, Ct = async (t, n, a) => (await (await E()).post(`/${n}/${t}/button/List`, null, { params: a }))?.data;
@@ -249,10 +249,10 @@ async function xt(t, n, a) {
249
249
  })).data;
250
250
  }
251
251
  async function At(t, n, a, e) {
252
- const o = await E(), l = Le(e, n);
252
+ const o = await E(), l = Re(e, n);
253
253
  return (await o.put(l, a))?.data;
254
254
  }
255
- function Le(t, n) {
255
+ function Re(t, n) {
256
256
  return t.replace(/{WorkflowId}/g, n);
257
257
  }
258
258
  function Vt(t, n) {
@@ -272,7 +272,7 @@ function Nt(t, n) {
272
272
  }
273
273
  async function Ut(t, n, a, e, o, l, s, c) {
274
274
  const i = await E();
275
- let r = Le(l, n);
275
+ let r = Re(l, n);
276
276
  return r = Vt(r, a), r = Tt(r, e), r = It(r, s), r = Pt(r, c), r = Nt(r, t), (await i.put(r, o))?.data;
277
277
  }
278
278
  async function Dt(t, n) {
@@ -287,7 +287,7 @@ async function Ht(t, n) {
287
287
  }
288
288
  function Bt(t) {
289
289
  return {
290
- uid: t.id ?? Xe(),
290
+ uid: t.id ?? Je(),
291
291
  name: t.attachmentName ?? "unknown",
292
292
  url: t.attachmentKey ?? ""
293
293
  };
@@ -392,7 +392,7 @@ function qt(t, n, a, e, o, l) {
392
392
  onChange: e.changeHandler
393
393
  }, null, 8, ["modelValue", "disabled"]);
394
394
  }
395
- const ze = /* @__PURE__ */ Y(Gt, [["render", qt], ["__file", "InputText.vue"]]), Yt = /* @__PURE__ */ z({
395
+ const Ke = /* @__PURE__ */ Y(Gt, [["render", qt], ["__file", "InputText.vue"]]), Yt = /* @__PURE__ */ z({
396
396
  __name: "InputNumber",
397
397
  props: /* @__PURE__ */ ce({
398
398
  fieldKey: {},
@@ -510,7 +510,7 @@ function Zt(t, n, a, e, o, l) {
510
510
  _: 1
511
511
  }, 8, ["modelValue", "loading", "disabled"]);
512
512
  }
513
- const We = /* @__PURE__ */ Y(Qt, [["render", Zt], ["__file", "SelectList.vue"]]), en = /* @__PURE__ */ z({
513
+ const ze = /* @__PURE__ */ Y(Qt, [["render", Zt], ["__file", "SelectList.vue"]]), en = /* @__PURE__ */ z({
514
514
  __name: "Cascader",
515
515
  props: {
516
516
  modelValue: {},
@@ -574,12 +574,12 @@ const nn = /* @__PURE__ */ Y(en, [["render", tn], ["__file", "Cascader.vue"]]),
574
574
  setup(t, { expose: n, emit: a }) {
575
575
  const e = t, o = a, l = m({});
576
576
  ue(async () => {
577
- const h = await Je();
577
+ const h = await Ye();
578
578
  l.value = {
579
579
  Authorization: `Bearer ${h}`
580
580
  };
581
581
  });
582
- const s = (h) => ge(e.validations, h), c = Re(), i = c.apiBase, r = m(null), d = m("");
582
+ const s = (h) => ge(e.validations, h), c = Fe(), i = c.apiBase, r = m(null), d = m("");
583
583
  function g(h, y, T) {
584
584
  return h.replace(/{WorkflowId}/g, y).replace(/{ClassName}/g, T);
585
585
  }
@@ -617,7 +617,7 @@ const nn = /* @__PURE__ */ Y(en, [["render", tn], ["__file", "Cascader.vue"]]),
617
617
  n({
618
618
  submit(h) {
619
619
  return new Promise((y, T) => {
620
- r.value ? (e.config.uploadURL && (d.value = h), p.value = y, C.value = T, M.value.length ? ot(() => {
620
+ r.value ? (e.config.uploadURL && (d.value = h), p.value = y, C.value = T, M.value.length ? nt(() => {
621
621
  r.value?.submit();
622
622
  }) : y(h)) : y(h);
623
623
  });
@@ -767,11 +767,11 @@ const fn = /* @__PURE__ */ Y(dn, [["render", un], ["__file", "CheckBox.vue"]]),
767
767
  const e = t, o = a, l = ye(t, "modelValue"), s = He("widgetRef"), c = X(() => {
768
768
  switch (e.config?.widget?.widget) {
769
769
  case "TextBox":
770
- return ze;
770
+ return Ke;
771
771
  case "Number":
772
772
  return Xt;
773
773
  case "SelectList":
774
- return We;
774
+ return ze;
775
775
  case "Cascade":
776
776
  return nn;
777
777
  case "File":
@@ -779,11 +779,11 @@ const fn = /* @__PURE__ */ Y(dn, [["render", un], ["__file", "CheckBox.vue"]]),
779
779
  case "TextArea":
780
780
  return cn;
781
781
  case "DropDown":
782
- return We;
782
+ return ze;
783
783
  case "CheckBox":
784
784
  return fn;
785
785
  default:
786
- return ze;
786
+ return Ke;
787
787
  }
788
788
  }), i = m(""), r = (b) => {
789
789
  i.value = b;
@@ -840,7 +840,7 @@ function vn(t, n, a, e, o, l) {
840
840
  ])
841
841
  ]);
842
842
  }
843
- const je = /* @__PURE__ */ Y(pn, [["render", vn], ["__scopeId", "data-v-4bc9e33b"], ["__file", "index.vue"]]), bn = /* @__PURE__ */ z({
843
+ const Le = /* @__PURE__ */ Y(pn, [["render", vn], ["__scopeId", "data-v-4bc9e33b"], ["__file", "index.vue"]]), bn = /* @__PURE__ */ z({
844
844
  __name: "SubmitButton",
845
845
  props: {
846
846
  url: {},
@@ -871,7 +871,7 @@ function hn(t, n, a, e, o, l) {
871
871
  _: 3
872
872
  }, 8, ["loading"]);
873
873
  }
874
- const Ge = /* @__PURE__ */ Y(bn, [["render", hn], ["__file", "SubmitButton.vue"]]), yn = /* @__PURE__ */ z({
874
+ const We = /* @__PURE__ */ Y(bn, [["render", hn], ["__file", "SubmitButton.vue"]]), yn = /* @__PURE__ */ z({
875
875
  __name: "DetailLink",
876
876
  props: {
877
877
  url: {},
@@ -914,11 +914,11 @@ const kn = /* @__PURE__ */ Y(yn, [["render", wn], ["__file", "DetailLink.vue"]])
914
914
  const s = X(() => {
915
915
  switch (e.config.location) {
916
916
  case "InOperation":
917
- return Ge;
917
+ return We;
918
918
  case "InTable":
919
919
  return kn;
920
920
  default:
921
- return Ge;
921
+ return We;
922
922
  }
923
923
  }), c = X(() => e.config.widget === q.Submit ? e.config.requestUrl ?? "" : e.config.widget === q.Link ? e.config.redirectUrl ?? "" : ""), i = X(() => e.config.redirectType ?? "Details"), r = { props: e, emits: o, clickHandler: l, curComp: s, curUrl: c, redirectType: i };
924
924
  return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
@@ -937,22 +937,22 @@ function Sn(t, n, a, e, o, l) {
937
937
  _: 1
938
938
  }, 8, ["url", "redirect-type", "loading"]);
939
939
  }
940
- const Se = /* @__PURE__ */ Y(Cn, [["render", Sn], ["__file", "index.vue"]]), Qe = Symbol("library-router");
940
+ const Se = /* @__PURE__ */ Y(Cn, [["render", Sn], ["__file", "index.vue"]]), Xe = Symbol("library-router");
941
941
  function xe() {
942
- const t = me(Qe, null);
942
+ const t = me(Xe, null);
943
943
  return t || dt();
944
944
  }
945
- const Ze = Symbol("library-triggers");
946
- function Me() {
947
- const t = me(Ze, null);
945
+ const Qe = Symbol("library-triggers");
946
+ function je() {
947
+ const t = me(Qe, null);
948
948
  return t || {};
949
949
  }
950
- const xn = Symbol("library-pinia"), et = Symbol("library-bpmStore"), tt = Symbol("library-svrStore");
950
+ const xn = Symbol("library-pinia"), Ze = Symbol("library-bpmStore"), et = Symbol("library-svrStore");
951
951
  function Ae() {
952
- return me(et, null);
952
+ return me(Ze, null);
953
953
  }
954
954
  function Ve() {
955
- return me(tt, null);
955
+ return me(et, null);
956
956
  }
957
957
  const An = /* @__PURE__ */ z({
958
958
  __name: "TopBar",
@@ -997,8 +997,8 @@ function Dn(t, n, a, e, o, l) {
997
997
  ]);
998
998
  }
999
999
  const Te = /* @__PURE__ */ Y(An, [["render", Dn], ["__scopeId", "data-v-c0457235"], ["__file", "TopBar.vue"]]);
1000
- function Oe(t) {
1001
- const n = Re(), a = [];
1000
+ function Me(t) {
1001
+ const n = Fe(), a = [];
1002
1002
  if (n.fieldsGroup) {
1003
1003
  n.fieldsGroup.forEach((l) => {
1004
1004
  const s = l.keys.map((c) => t.find((i) => i.fieldKey === c)).filter(Boolean);
@@ -1047,7 +1047,7 @@ class Ce {
1047
1047
  this.pageActionType = n, this.className = a, this.store = e, o && (this.opt = o);
1048
1048
  }
1049
1049
  getPageData() {
1050
- return this.opt ? Ke(this.pageActionType, this.className, this.store, this.opt) : Ke(this.pageActionType, this.className, this.store);
1050
+ return this.opt ? Ee(this.pageActionType, this.className, this.store, this.opt) : Ee(this.pageActionType, this.className, this.store);
1051
1051
  }
1052
1052
  getBtnList() {
1053
1053
  return Ct(this.pageActionType, this.className, { workflowId: this.getWorkflowId(), email: this.getApproverEmail() });
@@ -1088,7 +1088,7 @@ const Hn = /* @__PURE__ */ z({
1088
1088
  },
1089
1089
  setup(t, { expose: n }) {
1090
1090
  n();
1091
- const a = Ae(), e = Ve(), o = xe(), l = Me(), s = He("dataWidgets"), c = pe(), i = t, r = m({
1091
+ const a = Ae(), e = Ve(), o = xe(), l = je(), s = He("dataWidgets"), c = pe(), i = t, r = m({
1092
1092
  pageType: "",
1093
1093
  fields: {},
1094
1094
  globalValidations: [],
@@ -1106,7 +1106,7 @@ const Hn = /* @__PURE__ */ z({
1106
1106
  function b(T) {
1107
1107
  return T ? Object.entries(T).filter(([w, U]) => U.dependent).reduce((w, [U, j]) => (w[U] = j.dependent, w), {}) : [];
1108
1108
  }
1109
- const f = X(() => r.value?.actions ? [...r.value.actions].reverse() : []), p = Fe({}), C = m(!1);
1109
+ const f = X(() => r.value?.actions ? [...r.value.actions].reverse() : []), p = m({}), C = m(!1);
1110
1110
  ue(async () => {
1111
1111
  C.value = !0;
1112
1112
  const T = new Ie().setWorkflowId(i.workflowId).setClassName(i.className).setStore({ svrStore: e, bpmStore: a }).build();
@@ -1116,7 +1116,7 @@ const Hn = /* @__PURE__ */ z({
1116
1116
  const w = d.value.find((U) => U.fieldKey === A);
1117
1117
  w && w.widget && (w.widget.files = []);
1118
1118
  }
1119
- p[A] = r.value.fields[A].modelValue;
1119
+ p.value[A] = r.value.fields[A].modelValue;
1120
1120
  }
1121
1121
  C.value = !1;
1122
1122
  });
@@ -1135,7 +1135,7 @@ const Hn = /* @__PURE__ */ z({
1135
1135
  }
1136
1136
  C.value = !0;
1137
1137
  try {
1138
- const W = await xt(i.className, { ...p, ...g.value }, w), se = s.value?.map((ie) => ie?.submit ? ie.submit(W.toString()) : Promise.resolve()) || [];
1138
+ const W = await xt(i.className, { ...p.value, ...g.value }, w), se = s.value?.map((ie) => ie?.submit ? ie.submit(W.toString()) : Promise.resolve()) || [];
1139
1139
  await Promise.all(se), C.value = !1, c?.appContext.config.globalProperties.$notification.success(`Your grading request has been submitted, ID is ${W.toString()}.`), o.push({ name: "Details", params: { workflowId: W.toString() } });
1140
1140
  } catch {
1141
1141
  c?.appContext.config.globalProperties.$notification.error("Failed to submit your grading request"), C.value = !1;
@@ -1143,7 +1143,7 @@ const Hn = /* @__PURE__ */ z({
1143
1143
  break;
1144
1144
  case q.Link:
1145
1145
  try {
1146
- await l[T.eventName || ""]?.(p, Q), o.push({ name: U, params: { className: i.className } });
1146
+ await l[T.eventName || ""]?.(p.value, Q), o.push({ name: U, params: { className: i.className } });
1147
1147
  } catch (W) {
1148
1148
  console.error("Error in link action trigger:", W);
1149
1149
  }
@@ -1161,9 +1161,9 @@ const Hn = /* @__PURE__ */ z({
1161
1161
  "positionId"
1162
1162
  ], Q = m(M);
1163
1163
  function ne(T, A) {
1164
- l[T]?.(A, Q), r.value && (d.value = _(r.value.fields));
1164
+ l[T]?.({ fieldValue: A, hiddenFields: Q, formData: p }), r.value && (d.value = _(r.value.fields));
1165
1165
  }
1166
- const h = X(() => Oe(d.value)), y = { bpmStore: a, svrStore: e, router: o, triggers: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: d, _dependent: g, genField: _, genDependentField: b, reversedActions: f, _data: p, loading: C, getApproverEmail: J, clickHandler: Z, newHiddenFields: M, hiddenFields: Q, changeHandler: ne, groupedFields: h, DataWidgets: je, ActionButton: Se, TopBar: Te };
1166
+ const h = X(() => Me(d.value)), y = { bpmStore: a, svrStore: e, router: o, triggers: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: d, _dependent: g, genField: _, genDependentField: b, reversedActions: f, _data: p, loading: C, getApproverEmail: J, clickHandler: Z, newHiddenFields: M, hiddenFields: Q, changeHandler: ne, groupedFields: h, DataWidgets: Le, ActionButton: Se, TopBar: Te };
1167
1167
  return Object.defineProperty(y, "__isScriptSetup", { enumerable: !1, value: !0 }), y;
1168
1168
  }
1169
1169
  }), Bn = { class: "page-container" }, Fn = { class: "page-body" }, Rn = { class: "form-card" }, Ln = { class: "form-fields-vertical" }, jn = { class: "form-fields" }, Mn = {
@@ -1234,7 +1234,7 @@ function Kn(t, n, a, e, o, l) {
1234
1234
  ])
1235
1235
  ]);
1236
1236
  }
1237
- const zn = /* @__PURE__ */ Y(Hn, [["render", Kn], ["__scopeId", "data-v-c33c4a8c"], ["__file", "CreateView.vue"]]), Wn = /* @__PURE__ */ z({
1237
+ const zn = /* @__PURE__ */ Y(Hn, [["render", Kn], ["__scopeId", "data-v-68ab1bc3"], ["__file", "CreateView.vue"]]), Wn = /* @__PURE__ */ z({
1238
1238
  __name: "UpdateView",
1239
1239
  props: {
1240
1240
  className: {},
@@ -1242,7 +1242,7 @@ const zn = /* @__PURE__ */ Y(Hn, [["render", Kn], ["__scopeId", "data-v-c33c4a8c
1242
1242
  },
1243
1243
  setup(t, { expose: n }) {
1244
1244
  n();
1245
- const a = xe(), e = Me(), o = Ve(), l = Ae(), s = He("dataWidgets"), c = pe(), i = t, r = m({
1245
+ const a = xe(), e = je(), o = Ve(), l = Ae(), s = He("dataWidgets"), c = pe(), i = t, r = m({
1246
1246
  pageType: "",
1247
1247
  fields: {},
1248
1248
  globalValidations: [],
@@ -1260,7 +1260,7 @@ const zn = /* @__PURE__ */ Y(Hn, [["render", Kn], ["__scopeId", "data-v-c33c4a8c
1260
1260
  function b(y) {
1261
1261
  return y ? Object.entries(y).filter(([A, w]) => w.dependent).reduce((A, [w, U]) => (A[w] = U.dependent, A), {}) : [];
1262
1262
  }
1263
- const f = X(() => r.value?.actions ? [...r.value.actions].reverse() : []), p = Fe({}), C = m(!1);
1263
+ const f = X(() => r.value?.actions ? [...r.value.actions].reverse() : []), p = m({}), C = m(!1);
1264
1264
  ue(async () => {
1265
1265
  C.value = !0;
1266
1266
  const y = new Ie().setPageActionType(fe.Update).setClassName(i.className).setStore({ svrStore: o, bpmStore: l }).setWorkflowId(i.workflowId).build();
@@ -1271,13 +1271,13 @@ const zn = /* @__PURE__ */ Y(Hn, [["render", Kn], ["__scopeId", "data-v-c33c4a8c
1271
1271
  return j ? j.isShow : !0;
1272
1272
  });
1273
1273
  const w = r.value.fields.requestType.modelValue;
1274
- e.Test?.(w, M), d.value = _(r.value.fields), g.value = b(r.value.fields);
1274
+ e.Test?.({ fieldValue: w, hiddenFields: M, formData: p }), d.value = _(r.value.fields), g.value = b(r.value.fields);
1275
1275
  for (const U in r.value.fields) {
1276
1276
  if (r.value.fields[U].widget?.widget === "File") {
1277
1277
  const j = d.value.find((R) => R.fieldKey === U);
1278
1278
  j && j.widget && (j.widget.files = A[U] ?? [], j.widget.removeFile = (R) => y.removeFile(R));
1279
1279
  }
1280
- p[U] = r.value.fields[U].modelValue;
1280
+ p.value[U] = r.value.fields[U].modelValue;
1281
1281
  }
1282
1282
  C.value = !1;
1283
1283
  });
@@ -1296,7 +1296,7 @@ const zn = /* @__PURE__ */ Y(Hn, [["render", Kn], ["__scopeId", "data-v-c33c4a8c
1296
1296
  }
1297
1297
  C.value = !0;
1298
1298
  try {
1299
- const R = await At(i.className, i.workflowId, { ...p, ...g.value }, A), W = s.value?.map((se) => se?.submit ? se.submit(R.toString()) : Promise.resolve()) || [];
1299
+ const R = await At(i.className, i.workflowId, { ...p.value, ...g.value }, A), W = s.value?.map((se) => se?.submit ? se.submit(R.toString()) : Promise.resolve()) || [];
1300
1300
  await Promise.all(W), C.value = !1, c?.appContext.config.globalProperties.$notification.success(`Your grading request has been submitted, ID is ${R.toString()}.`);
1301
1301
  } catch {
1302
1302
  c?.appContext.config.globalProperties.$notification.error("Failed to submit your grading request"), C.value = !1;
@@ -1304,7 +1304,7 @@ const zn = /* @__PURE__ */ Y(Hn, [["render", Kn], ["__scopeId", "data-v-c33c4a8c
1304
1304
  break;
1305
1305
  case q.Link:
1306
1306
  try {
1307
- await e[y.eventName || ""]?.(p, M), a.push({ name: w, params: { className: i.className } });
1307
+ await e[y.eventName || ""]?.(p.value, M), a.push({ name: w, params: { className: i.className } });
1308
1308
  } catch {
1309
1309
  }
1310
1310
  break;
@@ -1314,9 +1314,9 @@ const zn = /* @__PURE__ */ Y(Hn, [["render", Kn], ["__scopeId", "data-v-c33c4a8c
1314
1314
  }
1315
1315
  const M = m([]);
1316
1316
  function Q(y, T) {
1317
- e[y]?.(T, M), r.value && (d.value = _(r.value.fields));
1317
+ e[y]?.({ fieldValue: T, hiddenFields: M, formData: p }), r.value && (d.value = _(r.value.fields));
1318
1318
  }
1319
- const ne = X(() => Oe(d.value)), h = { router: a, triggers: e, svrStore: o, bpmStore: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: d, _dependent: g, genField: _, genDependentField: b, reversedActions: f, _data: p, loading: C, getApproverEmail: J, clickHandler: Z, hiddenFields: M, changeHandler: Q, groupedFields: ne, DataWidgets: je, ActionButton: Se, TopBar: Te };
1319
+ const ne = X(() => Me(d.value)), h = { router: a, triggers: e, svrStore: o, bpmStore: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: d, _dependent: g, genField: _, genDependentField: b, reversedActions: f, _data: p, loading: C, getApproverEmail: J, clickHandler: Z, hiddenFields: M, changeHandler: Q, groupedFields: ne, DataWidgets: Le, ActionButton: Se, TopBar: Te };
1320
1320
  return Object.defineProperty(h, "__isScriptSetup", { enumerable: !1, value: !0 }), h;
1321
1321
  }
1322
1322
  }), Gn = { class: "page-container" }, qn = { class: "page-body" }, Yn = { class: "form-card" }, Jn = { class: "form-fields-vertical" }, Xn = { class: "form-fields" }, Qn = {
@@ -1387,9 +1387,9 @@ function no(t, n, a, e, o, l) {
1387
1387
  ])
1388
1388
  ]);
1389
1389
  }
1390
- const oo = /* @__PURE__ */ Y(Wn, [["render", no], ["__scopeId", "data-v-a3a1735a"], ["__file", "UpdateView.vue"]]), nt = Symbol("library-custom-comp");
1390
+ const oo = /* @__PURE__ */ Y(Wn, [["render", no], ["__scopeId", "data-v-c638b3c1"], ["__file", "UpdateView.vue"]]), tt = Symbol("library-custom-comp");
1391
1391
  function ao() {
1392
- return me(nt, null);
1392
+ return me(tt, null);
1393
1393
  }
1394
1394
  const ro = Symbol("ArcoConfigProvider"), so = "arco", io = "$arco", lo = (t) => {
1395
1395
  var n, a, e;
@@ -1450,8 +1450,8 @@ function go(t, n, a, e, o, l) {
1450
1450
  fill: "none",
1451
1451
  xmlns: "http://www.w3.org/2000/svg",
1452
1452
  stroke: "currentColor",
1453
- class: rt(t.cls),
1454
- style: at(t.innerStyle),
1453
+ class: at(t.cls),
1454
+ style: ot(t.innerStyle),
1455
1455
  "stroke-width": t.strokeWidth,
1456
1456
  "stroke-linecap": t.strokeLinecap,
1457
1457
  "stroke-linejoin": t.strokeLinejoin,
@@ -1475,7 +1475,7 @@ const _o = Object.assign(Ue, {
1475
1475
  },
1476
1476
  setup(t, { expose: n }) {
1477
1477
  n();
1478
- const a = Ve(), e = Ae(), o = Me(), l = xe(), s = ao(), c = pe(), i = t;
1478
+ const a = Ve(), e = Ae(), o = je(), l = xe(), s = ao(), c = pe(), i = t;
1479
1479
  let r;
1480
1480
  const d = m({
1481
1481
  pageType: "",
@@ -1492,7 +1492,7 @@ const _o = Object.assign(Ue, {
1492
1492
  ...I
1493
1493
  })).filter((O) => O.widget && O.widget.widget !== "Hidden").filter((O) => !y.value.includes(O.fieldKey)) : [];
1494
1494
  }
1495
- const b = X(() => Oe(g.value)), f = X(() => d.value?.actions ? [...d.value.actions].reverse() : []), p = m(!0), C = (P, F) => {
1495
+ const b = X(() => Me(g.value)), f = X(() => d.value?.actions ? [...d.value.actions].reverse() : []), p = m(!0), C = (P, F) => {
1496
1496
  const O = P.findIndex((I) => I.isCurrent);
1497
1497
  return P.map((I, oe) => {
1498
1498
  const D = {
@@ -1518,8 +1518,8 @@ const _o = Object.assign(Ue, {
1518
1518
  if (D.time = ke(ee.takeActionAt, "yyyy-MM-dd hh:mm:ss"), I.sort === 1)
1519
1519
  D.status = 2, D.desc = "";
1520
1520
  else {
1521
- const $e = ee.workflowHistoryApprovers[0];
1522
- D.status = 3, D.desc = $e?.reason ? `Rejected reason: ${$e.reason}` : "Rejected";
1521
+ const Oe = ee.workflowHistoryApprovers[0];
1522
+ D.status = 3, D.desc = Oe?.reason ? `Rejected reason: ${Oe.reason}` : "Rejected";
1523
1523
  }
1524
1524
  else oe < O || O === -1 ? (D.status = 0, D.desc = "Skipped") : (D.status = 0, D.desc = "Pending Approval");
1525
1525
  ee && ee.status;
@@ -1540,7 +1540,7 @@ const _o = Object.assign(Ue, {
1540
1540
  const P = await r.getFiles();
1541
1541
  se.value = await r.getApprovers(), R.value = await r.getCommentsHistory(), ie.value = await r.getAssociator(), h();
1542
1542
  const F = d.value.fields.requestType.modelValue;
1543
- o.Test?.(F, y), g.value = _(d.value.fields);
1543
+ o.Test?.({ fieldValue: F, hiddenFields: y }), g.value = _(d.value.fields);
1544
1544
  for (const I in d.value.fields)
1545
1545
  if (d.value.fields[I].widget?.widget === "File") {
1546
1546
  const oe = g.value.find((D) => D.fieldKey === I);
@@ -1780,7 +1780,7 @@ function Uo(t, n, a, e, o, l) {
1780
1780
  ])
1781
1781
  ]);
1782
1782
  }
1783
- const Do = /* @__PURE__ */ Y(vo, [["render", Uo], ["__scopeId", "data-v-056d007a"], ["__file", "DetailView.vue"]]), Ho = /* @__PURE__ */ z({
1783
+ const Do = /* @__PURE__ */ Y(vo, [["render", Uo], ["__scopeId", "data-v-9de406ef"], ["__file", "DetailView.vue"]]), Ho = /* @__PURE__ */ z({
1784
1784
  name: "ListView",
1785
1785
  __name: "ListView",
1786
1786
  props: {
@@ -1788,7 +1788,7 @@ const Do = /* @__PURE__ */ Y(vo, [["render", Uo], ["__scopeId", "data-v-056d007a
1788
1788
  },
1789
1789
  setup(t, { expose: n }) {
1790
1790
  n();
1791
- const a = Ve(), e = Ae(), o = xe(), l = pe(), s = t, c = m(), i = Fe({
1791
+ const a = Ve(), e = Ae(), o = xe(), l = pe(), s = t, c = m(), i = rt({
1792
1792
  current: 1,
1793
1793
  total: 0,
1794
1794
  pageSize: 10,
@@ -1909,7 +1909,7 @@ const Do = /* @__PURE__ */ Y(vo, [["render", Uo], ["__scopeId", "data-v-056d007a
1909
1909
  function ie(v, N) {
1910
1910
  return !(v.location !== "InTable" || v.title === "Update" && (N.status === 100 || N.status === -1));
1911
1911
  }
1912
- const _e = { svrStore: a, bpmStore: e, router: o, instance: l, props: s, pageData: c, paging: i, createListParams: r, scroll: d, mapColumns: g, _data: _, _columns: b, loadingPage: f, loadingTable: p, actions: C, loadData: J, mounted: Z, pageChangeHandler: M, pageSizeChangeHandler: Q, clickHandler: ne, createHandler: h, getApproverEmail: y, replaceEmail: T, tabHandler: A, searchForm: w, searchableFields: U, mapSearchableFields: j, initSearchForm: R, handleSearch: W, handleReset: se, judgeHiddenActions: ie, ActionButton: Se, DataWidgets: je, TopBar: Te };
1912
+ const _e = { svrStore: a, bpmStore: e, router: o, instance: l, props: s, pageData: c, paging: i, createListParams: r, scroll: d, mapColumns: g, _data: _, _columns: b, loadingPage: f, loadingTable: p, actions: C, loadData: J, mounted: Z, pageChangeHandler: M, pageSizeChangeHandler: Q, clickHandler: ne, createHandler: h, getApproverEmail: y, replaceEmail: T, tabHandler: A, searchForm: w, searchableFields: U, mapSearchableFields: j, initSearchForm: R, handleSearch: W, handleReset: se, judgeHiddenActions: ie, ActionButton: Se, DataWidgets: Le, TopBar: Te };
1913
1913
  return Object.defineProperty(_e, "__isScriptSetup", { enumerable: !1, value: !0 }), _e;
1914
1914
  }
1915
1915
  }), Bo = { class: "list-container" }, Fo = { class: "query-title" };
@@ -2052,7 +2052,7 @@ function Ro(t, n, a, e, o, l) {
2052
2052
  }
2053
2053
  const Lo = /* @__PURE__ */ Y(Ho, [["render", Ro], ["__scopeId", "data-v-639f4f42"], ["__file", "ListView.vue"]]), Ko = {
2054
2054
  install(t, n = {}) {
2055
- n.config && gt(n.config), n.router && t.provide(Qe, n.router), n.pinia && t.provide(xn, n.pinia), n.useBpmStore && t.provide(et, n.useBpmStore), n.useSvrStore && t.provide(tt, n.useSvrStore), n.triggers && t.provide(Ze, n.triggers), n.customComps && t.provide(nt, n.customComps), t.component("CreateView", zn), t.component("UpdateView", oo), t.component("DetailView", Do), t.component("ListView", Lo);
2055
+ n.config && gt(n.config), n.router && t.provide(Xe, n.router), n.pinia && t.provide(xn, n.pinia), n.useBpmStore && t.provide(Ze, n.useBpmStore), n.useSvrStore && t.provide(et, n.useSvrStore), n.triggers && t.provide(Qe, n.triggers), n.customComps && t.provide(tt, n.customComps), t.component("CreateView", zn), t.component("UpdateView", oo), t.component("DetailView", Do), t.component("ListView", Lo);
2056
2056
  }
2057
2057
  };
2058
2058
  export {