@chase-shao/vue-component-lib 1.2.73 → 1.2.74
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.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.es.js +46 -46
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.title[data-v-1022c8cb]{margin-bottom:.571428rem}.err-msg[data-v-1022c8cb]{font-size:.857142rem;color:#fb4b2f;margin-top:.285714rem}.required[data-v-1022c8cb]{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-0943699d]{min-height:100vh;background-color:#f5f5f5;display:flex;flex-direction:column}.page-body[data-v-0943699d]{flex:1;padding:24px 32px;overflow-y:auto}.form-container[data-v-0943699d]{width:100%;margin:0 auto}.form-card[data-v-0943699d]{background:#fff;border-radius:8px;box-shadow:0 2px 8px #0000000f;overflow:hidden}.form-fields-vertical[data-v-0943699d]{display:flex;flex-direction:column;gap:24px;padding:32px}@media (max-width: 768px){.form-fields-vertical[data-v-0943699d]{padding:24px 16px;gap:20px}}.form-fields[data-v-0943699d]{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-0943699d]{grid-template-columns:1fr;gap:20px}}.form-content[data-v-0943699d]{border-top:1px solid #f0f0f0;padding:24px 32px;background:#fafafa}.page-footer[data-v-0943699d]{background:#fff;border-top:1px solid #e8e8e8;padding:16px 32px;box-shadow:0 -2px 8px #0000000f}@media (max-width: 768px){.page-footer[data-v-0943699d]{padding:16px}}.action-container[data-v-0943699d]{max-width:1200px;margin:0 auto;display:flex;justify-content:flex-end;align-items:center;gap:12px}.action-buttons[data-v-0943699d]{display:flex;gap:12px;align-items:center}.action-button[data-v-0943699d]{min-width:88px;height:36px}.action-button[data-v-0943699d]:hover{transform:translateY(-1px);transition:transform .2s ease}@media (max-width: 1024px){.form-fields[data-v-0943699d]{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}}@media (max-width: 640px){.page-body[data-v-0943699d]{padding:16px}.form-fields-vertical[data-v-0943699d]{padding:20px 16px}.form-fields[data-v-0943699d]{padding:0}.action-container[data-v-0943699d]{flex-direction:column-reverse;align-items:stretch}.action-buttons[data-v-0943699d]{justify-content:center}}.page-container[data-v-4723e039]{min-height:100vh;background-color:#f5f5f5;display:flex;flex-direction:column}.page-body[data-v-4723e039]{flex:1;padding:24px 32px;overflow-y:auto}.form-container[data-v-4723e039]{width:100%;margin:0 auto}.form-card[data-v-4723e039]{background:#fff;border-radius:8px;box-shadow:0 2px 8px #0000000f;overflow:hidden}.form-fields-vertical[data-v-4723e039]{display:flex;flex-direction:column;gap:24px;padding:32px}@media (max-width: 768px){.form-fields-vertical[data-v-4723e039]{padding:24px 16px;gap:20px}}.form-fields[data-v-4723e039]{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-4723e039]{grid-template-columns:1fr;gap:20px}}.form-content[data-v-4723e039]{border-top:1px solid #f0f0f0;padding:24px 32px;background:#fafafa}.page-footer[data-v-4723e039]{background:#fff;border-top:1px solid #e8e8e8;padding:16px 32px;box-shadow:0 -2px 8px #0000000f}@media (max-width: 768px){.page-footer[data-v-4723e039]{padding:16px}}.action-container[data-v-4723e039]{max-width:1200px;margin:0 auto;display:flex;justify-content:flex-end;align-items:center;gap:12px}.action-buttons[data-v-4723e039]{display:flex;gap:12px;align-items:center}.action-button[data-v-4723e039]{min-width:88px;height:36px}.action-button[data-v-4723e039]:hover{transform:translateY(-1px);transition:transform .2s ease}@media (max-width: 1024px){.form-fields[data-v-4723e039]{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}}@media (max-width: 640px){.page-body[data-v-4723e039]{padding:16px}.form-fields-vertical[data-v-4723e039]{padding:20px 16px}.form-fields[data-v-4723e039]{padding:0}.action-container[data-v-4723e039]{flex-direction:column-reverse;align-items:stretch}.action-buttons[data-v-4723e039]{justify-content:center}}.page-container[data-v-07443410]{min-height:100vh;background-color:#f5f5f5;display:flex;flex-direction:column}.page-body[data-v-07443410]{flex:1;padding:24px 32px;overflow-y:auto}.detail-container[data-v-07443410]{width:100%;margin:0 auto}.detail-card[data-v-07443410]{background:#fff;border-radius:8px;box-shadow:0 2px 8px #0000000f;overflow:hidden;padding-top:20px}.form-fields-vertical[data-v-07443410]{display:flex;flex-direction:column;gap:24px;padding:32px}@media (max-width: 768px){.form-fields-vertical[data-v-07443410]{padding:24px 16px;gap:20px}}.detail-fields[data-v-07443410]{padding:32px;display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:24px}@media (max-width: 768px){.detail-fields[data-v-07443410]{grid-template-columns:1fr;padding:24px 16px;gap:20px}}.detail-field-wrapper .detail-field[data-v-07443410]{width:100%}.detail-field-wrapper .detail-field .field-label[data-v-07443410]{font-weight:500;color:#262626;margin-bottom:8px;font-size:14px;line-height:1.4}.detail-field-wrapper .detail-field .field-value[data-v-07443410]{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-07443410]{border-top:1px solid #f0f0f0;padding:24px 32px;background:#fafafa}.page-footer[data-v-07443410]{background:#fff;border-top:1px solid #e8e8e8;padding:16px 32px;box-shadow:0 -2px 8px #0000000f}@media (max-width: 768px){.page-footer[data-v-07443410]{padding:16px}}.action-container[data-v-07443410]{max-width:1200px;margin:0 auto;display:flex;justify-content:flex-end;align-items:center;gap:12px}.action-buttons[data-v-07443410]{display:flex;gap:12px;align-items:center}.action-button[data-v-07443410]{min-width:88px;height:36px}.action-button[data-v-07443410]:hover{transform:translateY(-1px);transition:transform .2s ease}@media (max-width: 1024px){.detail-fields[data-v-07443410]{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}}@media (max-width: 640px){.page-body[data-v-07443410]{padding:16px}.detail-fields[data-v-07443410]{padding:20px 16px}.action-container[data-v-07443410]{flex-direction:column-reverse;align-items:stretch}.action-buttons[data-v-07443410]{justify-content:center}}.list-container[data-v-
|
|
1
|
+
.title[data-v-1022c8cb]{margin-bottom:.571428rem}.err-msg[data-v-1022c8cb]{font-size:.857142rem;color:#fb4b2f;margin-top:.285714rem}.required[data-v-1022c8cb]{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-0943699d]{min-height:100vh;background-color:#f5f5f5;display:flex;flex-direction:column}.page-body[data-v-0943699d]{flex:1;padding:24px 32px;overflow-y:auto}.form-container[data-v-0943699d]{width:100%;margin:0 auto}.form-card[data-v-0943699d]{background:#fff;border-radius:8px;box-shadow:0 2px 8px #0000000f;overflow:hidden}.form-fields-vertical[data-v-0943699d]{display:flex;flex-direction:column;gap:24px;padding:32px}@media (max-width: 768px){.form-fields-vertical[data-v-0943699d]{padding:24px 16px;gap:20px}}.form-fields[data-v-0943699d]{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-0943699d]{grid-template-columns:1fr;gap:20px}}.form-content[data-v-0943699d]{border-top:1px solid #f0f0f0;padding:24px 32px;background:#fafafa}.page-footer[data-v-0943699d]{background:#fff;border-top:1px solid #e8e8e8;padding:16px 32px;box-shadow:0 -2px 8px #0000000f}@media (max-width: 768px){.page-footer[data-v-0943699d]{padding:16px}}.action-container[data-v-0943699d]{max-width:1200px;margin:0 auto;display:flex;justify-content:flex-end;align-items:center;gap:12px}.action-buttons[data-v-0943699d]{display:flex;gap:12px;align-items:center}.action-button[data-v-0943699d]{min-width:88px;height:36px}.action-button[data-v-0943699d]:hover{transform:translateY(-1px);transition:transform .2s ease}@media (max-width: 1024px){.form-fields[data-v-0943699d]{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}}@media (max-width: 640px){.page-body[data-v-0943699d]{padding:16px}.form-fields-vertical[data-v-0943699d]{padding:20px 16px}.form-fields[data-v-0943699d]{padding:0}.action-container[data-v-0943699d]{flex-direction:column-reverse;align-items:stretch}.action-buttons[data-v-0943699d]{justify-content:center}}.page-container[data-v-4723e039]{min-height:100vh;background-color:#f5f5f5;display:flex;flex-direction:column}.page-body[data-v-4723e039]{flex:1;padding:24px 32px;overflow-y:auto}.form-container[data-v-4723e039]{width:100%;margin:0 auto}.form-card[data-v-4723e039]{background:#fff;border-radius:8px;box-shadow:0 2px 8px #0000000f;overflow:hidden}.form-fields-vertical[data-v-4723e039]{display:flex;flex-direction:column;gap:24px;padding:32px}@media (max-width: 768px){.form-fields-vertical[data-v-4723e039]{padding:24px 16px;gap:20px}}.form-fields[data-v-4723e039]{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-4723e039]{grid-template-columns:1fr;gap:20px}}.form-content[data-v-4723e039]{border-top:1px solid #f0f0f0;padding:24px 32px;background:#fafafa}.page-footer[data-v-4723e039]{background:#fff;border-top:1px solid #e8e8e8;padding:16px 32px;box-shadow:0 -2px 8px #0000000f}@media (max-width: 768px){.page-footer[data-v-4723e039]{padding:16px}}.action-container[data-v-4723e039]{max-width:1200px;margin:0 auto;display:flex;justify-content:flex-end;align-items:center;gap:12px}.action-buttons[data-v-4723e039]{display:flex;gap:12px;align-items:center}.action-button[data-v-4723e039]{min-width:88px;height:36px}.action-button[data-v-4723e039]:hover{transform:translateY(-1px);transition:transform .2s ease}@media (max-width: 1024px){.form-fields[data-v-4723e039]{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}}@media (max-width: 640px){.page-body[data-v-4723e039]{padding:16px}.form-fields-vertical[data-v-4723e039]{padding:20px 16px}.form-fields[data-v-4723e039]{padding:0}.action-container[data-v-4723e039]{flex-direction:column-reverse;align-items:stretch}.action-buttons[data-v-4723e039]{justify-content:center}}.page-container[data-v-07443410]{min-height:100vh;background-color:#f5f5f5;display:flex;flex-direction:column}.page-body[data-v-07443410]{flex:1;padding:24px 32px;overflow-y:auto}.detail-container[data-v-07443410]{width:100%;margin:0 auto}.detail-card[data-v-07443410]{background:#fff;border-radius:8px;box-shadow:0 2px 8px #0000000f;overflow:hidden;padding-top:20px}.form-fields-vertical[data-v-07443410]{display:flex;flex-direction:column;gap:24px;padding:32px}@media (max-width: 768px){.form-fields-vertical[data-v-07443410]{padding:24px 16px;gap:20px}}.detail-fields[data-v-07443410]{padding:32px;display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:24px}@media (max-width: 768px){.detail-fields[data-v-07443410]{grid-template-columns:1fr;padding:24px 16px;gap:20px}}.detail-field-wrapper .detail-field[data-v-07443410]{width:100%}.detail-field-wrapper .detail-field .field-label[data-v-07443410]{font-weight:500;color:#262626;margin-bottom:8px;font-size:14px;line-height:1.4}.detail-field-wrapper .detail-field .field-value[data-v-07443410]{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-07443410]{border-top:1px solid #f0f0f0;padding:24px 32px;background:#fafafa}.page-footer[data-v-07443410]{background:#fff;border-top:1px solid #e8e8e8;padding:16px 32px;box-shadow:0 -2px 8px #0000000f}@media (max-width: 768px){.page-footer[data-v-07443410]{padding:16px}}.action-container[data-v-07443410]{max-width:1200px;margin:0 auto;display:flex;justify-content:flex-end;align-items:center;gap:12px}.action-buttons[data-v-07443410]{display:flex;gap:12px;align-items:center}.action-button[data-v-07443410]{min-width:88px;height:36px}.action-button[data-v-07443410]:hover{transform:translateY(-1px);transition:transform .2s ease}@media (max-width: 1024px){.detail-fields[data-v-07443410]{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}}@media (max-width: 640px){.page-body[data-v-07443410]{padding:16px}.detail-fields[data-v-07443410]{padding:20px 16px}.action-container[data-v-07443410]{flex-direction:column-reverse;align-items:stretch}.action-buttons[data-v-07443410]{justify-content:center}}.list-container[data-v-e291e7ef]{padding:16px}.list-container[data-v-e291e7ef] .arco-table .arco-table-body{overflow-x:auto}.query-title[data-v-e291e7ef]{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.field-label[data-v-e291e7ef]{font-weight:500;margin-bottom:8px}.form-buttons[data-v-e291e7ef]{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
|
@@ -155,7 +155,7 @@ function kt(t, n, a) {
|
|
|
155
155
|
appliesTo: o.propertyNames || ["*"]
|
|
156
156
|
});
|
|
157
157
|
else if (o.attributeType === "UIControl") {
|
|
158
|
-
const l = o.showToRoles.split(",").map((c) => c.trim()), s = a.bpmStore().employeeInfo.roleList.some((c) => l.includes(c.
|
|
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
161
|
key: Ye(),
|
|
@@ -318,10 +318,10 @@ async function Ee(t) {
|
|
|
318
318
|
async function Ue(t) {
|
|
319
319
|
return (await (await E()).get(`Grading/GetAssociator/${t}`))?.data;
|
|
320
320
|
}
|
|
321
|
-
async function
|
|
321
|
+
async function jt(t) {
|
|
322
322
|
return await (await E()).delete(`Grading/DeleteAssociator/${t}`);
|
|
323
323
|
}
|
|
324
|
-
async function
|
|
324
|
+
async function Mt(t, n = null) {
|
|
325
325
|
const e = await (await E()).post(t, n, {
|
|
326
326
|
responseType: "blob"
|
|
327
327
|
});
|
|
@@ -576,8 +576,8 @@ const Qt = /* @__PURE__ */ q(Jt, [["render", Xt], ["__file", "Cascader.vue"]]),
|
|
|
576
576
|
};
|
|
577
577
|
});
|
|
578
578
|
const s = (d) => me(e.validations, d), c = Be(), i = c.apiBase, r = v(null), f = v("");
|
|
579
|
-
function m(d, U,
|
|
580
|
-
return d.replace(/{WorkflowId}/g, U).replace(/{ClassName}/g,
|
|
579
|
+
function m(d, U, j) {
|
|
580
|
+
return d.replace(/{WorkflowId}/g, U).replace(/{ClassName}/g, j);
|
|
581
581
|
}
|
|
582
582
|
const g = X(() => {
|
|
583
583
|
if (e.config.uploadURL) {
|
|
@@ -589,7 +589,7 @@ const Qt = /* @__PURE__ */ q(Jt, [["render", Xt], ["__file", "Cascader.vue"]]),
|
|
|
589
589
|
d.stopPropagation(), r.value.submit();
|
|
590
590
|
};
|
|
591
591
|
function p(d) {
|
|
592
|
-
const { file: U, name:
|
|
592
|
+
const { file: U, name: j } = d, Y = j ?? U.name;
|
|
593
593
|
return new Promise((Q, ne) => {
|
|
594
594
|
ct.confirm({
|
|
595
595
|
title: "Confirm Delete",
|
|
@@ -926,7 +926,7 @@ function Ce() {
|
|
|
926
926
|
return t || dt();
|
|
927
927
|
}
|
|
928
928
|
const Ze = Symbol("library-triggers");
|
|
929
|
-
function
|
|
929
|
+
function je() {
|
|
930
930
|
const t = pe(Ze, null);
|
|
931
931
|
return t || {};
|
|
932
932
|
}
|
|
@@ -980,7 +980,7 @@ function Un(t, n, a, e, o, l) {
|
|
|
980
980
|
]);
|
|
981
981
|
}
|
|
982
982
|
const Ve = /* @__PURE__ */ q(Cn, [["render", Un], ["__scopeId", "data-v-c0457235"], ["__file", "TopBar.vue"]]);
|
|
983
|
-
function
|
|
983
|
+
function Me(t) {
|
|
984
984
|
const n = Be(), a = [];
|
|
985
985
|
if (n.fieldsGroup) {
|
|
986
986
|
n.fieldsGroup.forEach((l) => {
|
|
@@ -998,7 +998,7 @@ const Dn = /* @__PURE__ */ G({
|
|
|
998
998
|
},
|
|
999
999
|
setup(t, { expose: n }) {
|
|
1000
1000
|
n();
|
|
1001
|
-
const a = Se(), e = xe(), o = Ce(), l =
|
|
1001
|
+
const a = Se(), e = xe(), o = Ce(), l = je(), s = Pe("dataWidgets"), c = fe(), i = t, r = v({
|
|
1002
1002
|
pageType: "",
|
|
1003
1003
|
fields: {},
|
|
1004
1004
|
globalValidations: [],
|
|
@@ -1014,7 +1014,7 @@ const Dn = /* @__PURE__ */ G({
|
|
|
1014
1014
|
})).filter((w) => w.widget && w.widget.widget !== "Hidden").filter((w) => !Q.value.includes(w.fieldKey)) : [];
|
|
1015
1015
|
}
|
|
1016
1016
|
function b(D) {
|
|
1017
|
-
return D ? Object.entries(D).filter(([w, H]) => H.dependent).reduce((w, [H,
|
|
1017
|
+
return D ? Object.entries(D).filter(([w, H]) => H.dependent).reduce((w, [H, M]) => (w[H] = M.dependent, w), {}) : [];
|
|
1018
1018
|
}
|
|
1019
1019
|
const p = X(() => r.value?.actions ? [...r.value.actions].reverse() : []), S = Le({}), d = v(!1);
|
|
1020
1020
|
ce(async () => {
|
|
@@ -1034,7 +1034,7 @@ const Dn = /* @__PURE__ */ G({
|
|
|
1034
1034
|
function U() {
|
|
1035
1035
|
return e()?.userInfo?.email_address ?? "";
|
|
1036
1036
|
}
|
|
1037
|
-
async function
|
|
1037
|
+
async function j(D, x, w, H, M) {
|
|
1038
1038
|
switch (x) {
|
|
1039
1039
|
case ee.Submit:
|
|
1040
1040
|
let K = !0;
|
|
@@ -1072,13 +1072,13 @@ const Dn = /* @__PURE__ */ G({
|
|
|
1072
1072
|
function ne(D, x) {
|
|
1073
1073
|
l[D]?.(x, Q), r.value && (f.value = g(r.value.fields));
|
|
1074
1074
|
}
|
|
1075
|
-
const re = X(() =>
|
|
1075
|
+
const re = X(() => Me(f.value)), F = { bpmStore: a, svrStore: e, router: o, triggers: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: f, _dependent: m, genField: g, genDependentField: b, reversedActions: p, _data: S, loading: d, getApproverEmail: U, clickHandler: j, newHiddenFields: Y, hiddenFields: Q, changeHandler: ne, groupedFields: re, DataWidgets: Re, ActionButton: ke, TopBar: Ve };
|
|
1076
1076
|
return Object.defineProperty(F, "__isScriptSetup", { enumerable: !1, value: !0 }), F;
|
|
1077
1077
|
}
|
|
1078
1078
|
}), Nn = { class: "page-container" }, Pn = { class: "page-body" }, Hn = { class: "form-card" }, Ln = { class: "form-fields-vertical" }, Bn = { class: "form-fields" }, Fn = {
|
|
1079
1079
|
key: 0,
|
|
1080
1080
|
class: "form-content"
|
|
1081
|
-
}, Rn = { class: "page-footer" },
|
|
1081
|
+
}, Rn = { class: "page-footer" }, jn = { class: "action-container" }, Mn = { class: "action-buttons" };
|
|
1082
1082
|
function On(t, n, a, e, o, l) {
|
|
1083
1083
|
const s = k("a-card"), c = k("a-spin");
|
|
1084
1084
|
return u(), h("div", Nn, [
|
|
@@ -1128,9 +1128,9 @@ function On(t, n, a, e, o, l) {
|
|
|
1128
1128
|
}, 8, ["loading"])
|
|
1129
1129
|
]),
|
|
1130
1130
|
C("div", Rn, [
|
|
1131
|
-
C("div",
|
|
1131
|
+
C("div", jn, [
|
|
1132
1132
|
le(t.$slots, "action", {}, void 0, !0),
|
|
1133
|
-
C("div",
|
|
1133
|
+
C("div", Mn, [
|
|
1134
1134
|
(u(!0), h(R, null, $(e.reversedActions, (i) => (u(), I(e.ActionButton, {
|
|
1135
1135
|
key: i.Title,
|
|
1136
1136
|
loading: e.loading,
|
|
@@ -1151,7 +1151,7 @@ const $n = /* @__PURE__ */ q(Dn, [["render", On], ["__scopeId", "data-v-0943699d
|
|
|
1151
1151
|
},
|
|
1152
1152
|
setup(t, { expose: n }) {
|
|
1153
1153
|
n();
|
|
1154
|
-
const a = Ce(), e =
|
|
1154
|
+
const a = Ce(), e = je(), o = xe(), l = Se(), s = Pe("dataWidgets"), c = fe(), i = t, r = v({
|
|
1155
1155
|
pageType: "",
|
|
1156
1156
|
fields: {},
|
|
1157
1157
|
globalValidations: [],
|
|
@@ -1179,15 +1179,15 @@ const $n = /* @__PURE__ */ q(Dn, [["render", On], ["__scopeId", "data-v-0943699d
|
|
|
1179
1179
|
});
|
|
1180
1180
|
const F = await Je(ue.Update, i.className, { workflowId: i.workflowId, email: U() }), D = await Xe(i.className, i.workflowId);
|
|
1181
1181
|
r.value.actions = r.value.actions?.filter((w) => {
|
|
1182
|
-
const H = F.find((
|
|
1182
|
+
const H = F.find((M) => M.button === w.title);
|
|
1183
1183
|
return H ? H.isShow : !0;
|
|
1184
1184
|
});
|
|
1185
1185
|
const x = r.value.fields.requestType.modelValue;
|
|
1186
1186
|
e.Test?.(x, Y), f.value = g(r.value.fields), m.value = b(r.value.fields);
|
|
1187
1187
|
for (const w in r.value.fields) {
|
|
1188
1188
|
if (r.value.fields[w].widget?.widget === "File") {
|
|
1189
|
-
const H = f.value.find((
|
|
1190
|
-
H && H.widget && (H.widget.files = D[w] ?? [], H.widget.removeFile = (
|
|
1189
|
+
const H = f.value.find((M) => M.fieldKey === w);
|
|
1190
|
+
H && H.widget && (H.widget.files = D[w] ?? [], H.widget.removeFile = (M) => Lt(i.className, M));
|
|
1191
1191
|
}
|
|
1192
1192
|
S[w] = r.value.fields[w].modelValue;
|
|
1193
1193
|
}
|
|
@@ -1196,13 +1196,13 @@ const $n = /* @__PURE__ */ q(Dn, [["render", On], ["__scopeId", "data-v-0943699d
|
|
|
1196
1196
|
function U() {
|
|
1197
1197
|
return o()?.userInfo?.email_address ?? "";
|
|
1198
1198
|
}
|
|
1199
|
-
async function
|
|
1199
|
+
async function j(F, D, x, w, H) {
|
|
1200
1200
|
switch (D) {
|
|
1201
1201
|
case ee.Submit:
|
|
1202
|
-
let
|
|
1202
|
+
let M = !0;
|
|
1203
1203
|
if (s.value?.forEach((K) => {
|
|
1204
|
-
K?.validate && (K.validate() || (
|
|
1205
|
-
}), !
|
|
1204
|
+
K?.validate && (K.validate() || (M = !1));
|
|
1205
|
+
}), !M) {
|
|
1206
1206
|
c?.appContext.config.globalProperties.$message.error("form validation failed, please check the input fields");
|
|
1207
1207
|
return;
|
|
1208
1208
|
}
|
|
@@ -1224,7 +1224,7 @@ const $n = /* @__PURE__ */ q(Dn, [["render", On], ["__scopeId", "data-v-0943699d
|
|
|
1224
1224
|
function Q(F, D) {
|
|
1225
1225
|
e[F]?.(D, Y), r.value && (f.value = g(r.value.fields));
|
|
1226
1226
|
}
|
|
1227
|
-
const ne = X(() =>
|
|
1227
|
+
const ne = X(() => Me(f.value)), re = { router: a, triggers: e, svrStore: o, bpmStore: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: f, _dependent: m, genField: g, genDependentField: b, reversedActions: p, _data: S, loading: d, getApproverEmail: U, clickHandler: j, hiddenFields: Y, changeHandler: Q, groupedFields: ne, DataWidgets: Re, ActionButton: ke, TopBar: Ve };
|
|
1228
1228
|
return Object.defineProperty(re, "__isScriptSetup", { enumerable: !1, value: !0 }), re;
|
|
1229
1229
|
}
|
|
1230
1230
|
}), Kn = { class: "page-container" }, zn = { class: "page-body" }, Gn = { class: "form-card" }, Wn = { class: "form-fields-vertical" }, qn = { class: "form-fields" }, Yn = {
|
|
@@ -1383,7 +1383,7 @@ const po = Object.assign(De, {
|
|
|
1383
1383
|
},
|
|
1384
1384
|
setup(t, { expose: n }) {
|
|
1385
1385
|
n();
|
|
1386
|
-
const a = xe(), e = Se(), o =
|
|
1386
|
+
const a = xe(), e = Se(), o = je(), l = Ce(), s = to(), c = fe(), i = t, r = v({
|
|
1387
1387
|
pageType: "",
|
|
1388
1388
|
fields: {},
|
|
1389
1389
|
globalValidations: [],
|
|
@@ -1398,7 +1398,7 @@ const po = Object.assign(De, {
|
|
|
1398
1398
|
...A
|
|
1399
1399
|
})).filter((O) => O.widget && O.widget.widget !== "Hidden").filter((O) => !re.value.includes(O.fieldKey)) : [];
|
|
1400
1400
|
}
|
|
1401
|
-
const g = X(() =>
|
|
1401
|
+
const g = X(() => Me(f.value)), b = X(() => r.value?.actions ? [...r.value.actions].reverse() : []), p = v(!0), S = (V, L) => {
|
|
1402
1402
|
const O = V.findIndex((A) => A.isCurrent);
|
|
1403
1403
|
return V.map((A, oe) => {
|
|
1404
1404
|
const P = {
|
|
@@ -1432,13 +1432,13 @@ const po = Object.assign(De, {
|
|
|
1432
1432
|
}
|
|
1433
1433
|
return P;
|
|
1434
1434
|
});
|
|
1435
|
-
}, d = v([]), U = v(!1),
|
|
1435
|
+
}, d = v([]), U = v(!1), j = v(!1), Y = v(!1), Q = v(!1);
|
|
1436
1436
|
async function ne() {
|
|
1437
1437
|
const V = await Je(ue.Details, i.className, { workflowId: i.workflowId, email: x() });
|
|
1438
1438
|
r.value.actions = r.value.actions?.filter((L) => {
|
|
1439
1439
|
const O = V.find((A) => A.button === L.title);
|
|
1440
1440
|
return O ? O.isShow : !0;
|
|
1441
|
-
}), U.value = V.find((L) => L.button === "IsGlobal")?.isShow ?? !1,
|
|
1441
|
+
}), U.value = V.find((L) => L.button === "IsGlobal")?.isShow ?? !1, j.value = V.find((L) => L.button === "AssignButton")?.isShow ?? !1, Y.value = V.find((L) => L.button === "AssignList")?.isShow ?? !1, Q.value = V.find((L) => L.button === "AddCommentsButton")?.isShow ?? !1;
|
|
1442
1442
|
}
|
|
1443
1443
|
const re = v([]);
|
|
1444
1444
|
async function F() {
|
|
@@ -1449,7 +1449,7 @@ const po = Object.assign(De, {
|
|
|
1449
1449
|
workflowId: i.workflowId
|
|
1450
1450
|
});
|
|
1451
1451
|
const V = await Xe(i.className, i.workflowId);
|
|
1452
|
-
ie.value = await Bt(),
|
|
1452
|
+
ie.value = await Bt(), M.value = await Ee(i.workflowId), Z.value = await Ue(i.workflowId), ne();
|
|
1453
1453
|
const L = r.value.fields.requestType.modelValue;
|
|
1454
1454
|
o.Test?.(L, re), f.value = m(r.value.fields);
|
|
1455
1455
|
for (const A in r.value.fields)
|
|
@@ -1491,7 +1491,7 @@ const po = Object.assign(De, {
|
|
|
1491
1491
|
} catch {
|
|
1492
1492
|
}
|
|
1493
1493
|
}
|
|
1494
|
-
const H = v(""),
|
|
1494
|
+
const H = v(""), M = v([]), K = v(""), ie = v([]), Z = v([]);
|
|
1495
1495
|
async function Ae() {
|
|
1496
1496
|
if (!K.value) {
|
|
1497
1497
|
c?.appContext.config.globalProperties.$message.error("Please select an approver");
|
|
@@ -1528,7 +1528,7 @@ const po = Object.assign(De, {
|
|
|
1528
1528
|
return;
|
|
1529
1529
|
}
|
|
1530
1530
|
try {
|
|
1531
|
-
await
|
|
1531
|
+
await jt(String(V)), Z.value = await Ue(i.workflowId), c?.appContext.config.globalProperties.$notification.success("Associator deleted successfully!");
|
|
1532
1532
|
} catch {
|
|
1533
1533
|
c?.appContext.config.globalProperties.$notification.error("Failed to delete associator");
|
|
1534
1534
|
}
|
|
@@ -1538,9 +1538,9 @@ const po = Object.assign(De, {
|
|
|
1538
1538
|
c?.appContext.config.globalProperties.$message.error("Comment cannot be empty");
|
|
1539
1539
|
return;
|
|
1540
1540
|
}
|
|
1541
|
-
await Rt(i.workflowId, x(), H.value), H.value = "",
|
|
1541
|
+
await Rt(i.workflowId, x(), H.value), H.value = "", M.value = await Ee(i.workflowId), c?.appContext.config.globalProperties.$notification.success("Add Comment clicked!");
|
|
1542
1542
|
}
|
|
1543
|
-
const B = { svrStore: a, bpmStore: e, triggers: o, router: l, customComps: s, instance: c, props: i, pageData: r, _fields: f, genField: m, groupedFields: g, reversedActions: b, loading: p, mapWorkflowSteps: S, steps: d, isGlobal: U, isShowAssignSelect:
|
|
1543
|
+
const B = { svrStore: a, bpmStore: e, triggers: o, router: l, customComps: s, instance: c, props: i, pageData: r, _fields: f, genField: m, groupedFields: g, reversedActions: b, loading: p, mapWorkflowSteps: S, steps: d, isGlobal: U, isShowAssignSelect: j, isShowAssignList: Y, isShowCommentTextArea: Q, reloadButtonList: ne, hiddenFields: re, load: F, triggerFn: D, getApproverEmail: x, clickHandler: w, comment: H, commentsHistory: M, selectedApprover: K, approvers: ie, associators: Z, onAssignApprover: Ae, confirmDialog: de, onDeleteAssociator: y, onAddComment: N, ActionButton: ke, get IconDownload() {
|
|
1544
1544
|
return po;
|
|
1545
1545
|
}, TopBar: Ve, get formatDate() {
|
|
1546
1546
|
return we;
|
|
@@ -1587,15 +1587,15 @@ function To(t, n, a, e, o, l) {
|
|
|
1587
1587
|
}, [
|
|
1588
1588
|
C("div", wo, [
|
|
1589
1589
|
C("div", ho, J(U.widget?.title), 1),
|
|
1590
|
-
U.widget?.widget === "File" ? (u(!0), h(R, { key: 0 }, $(U.widget.files, (
|
|
1590
|
+
U.widget?.widget === "File" ? (u(!0), h(R, { key: 0 }, $(U.widget.files, (j) => (u(), h("div", {
|
|
1591
1591
|
class: "field-value",
|
|
1592
|
-
key:
|
|
1592
|
+
key: j.id
|
|
1593
1593
|
}, [
|
|
1594
1594
|
T(c, null, {
|
|
1595
1595
|
default: _(() => [
|
|
1596
|
-
W(J(
|
|
1596
|
+
W(J(j.name) + " ", 1),
|
|
1597
1597
|
T(s, {
|
|
1598
|
-
href:
|
|
1598
|
+
href: j.url,
|
|
1599
1599
|
target: "_blank"
|
|
1600
1600
|
}, {
|
|
1601
1601
|
default: _(() => [
|
|
@@ -1763,7 +1763,7 @@ const Uo = /* @__PURE__ */ q(mo, [["render", To], ["__scopeId", "data-v-07443410
|
|
|
1763
1763
|
pageSize: i.pageSize,
|
|
1764
1764
|
filters: [...i.filters, ...y],
|
|
1765
1765
|
sorts: [{
|
|
1766
|
-
key: "
|
|
1766
|
+
key: "workflowId",
|
|
1767
1767
|
type: 0
|
|
1768
1768
|
}]
|
|
1769
1769
|
};
|
|
@@ -1798,14 +1798,14 @@ const Uo = /* @__PURE__ */ q(mo, [["render", To], ["__scopeId", "data-v-07443410
|
|
|
1798
1798
|
S.value = !0;
|
|
1799
1799
|
const y = await Ct(s.className, r());
|
|
1800
1800
|
g.value = y.data, i.total = y.totalCount, S.value = !1;
|
|
1801
|
-
},
|
|
1801
|
+
}, j = v(!1);
|
|
1802
1802
|
ce(async () => {
|
|
1803
|
-
|
|
1803
|
+
p.value = !0, c.value = await he(3, s.className, {
|
|
1804
1804
|
svrStore: a,
|
|
1805
1805
|
bpmStore: e
|
|
1806
|
-
}), m(c.value.fields),
|
|
1806
|
+
}), m(c.value.fields), M(c.value.fields), K(), x(c.value?.tabs?.[0]?.key || ""), d.value = c.value.actions, p.value = !1, j.value = !0;
|
|
1807
1807
|
}), st(() => {
|
|
1808
|
-
|
|
1808
|
+
j.value && U();
|
|
1809
1809
|
});
|
|
1810
1810
|
const Y = (y) => {
|
|
1811
1811
|
i.current = y, U();
|
|
@@ -1824,7 +1824,7 @@ const Uo = /* @__PURE__ */ q(mo, [["render", To], ["__scopeId", "data-v-07443410
|
|
|
1824
1824
|
function re(y, N, B) {
|
|
1825
1825
|
switch (y) {
|
|
1826
1826
|
case ee.Submit:
|
|
1827
|
-
|
|
1827
|
+
Mt(N, { filters: [{ key: "approverList", value: F(), operator: 2 }] }), l?.appContext.config.globalProperties.$notification.success("submit success!");
|
|
1828
1828
|
break;
|
|
1829
1829
|
case ee.Link:
|
|
1830
1830
|
o.push({ name: B });
|
|
@@ -1847,7 +1847,7 @@ const Uo = /* @__PURE__ */ q(mo, [["render", To], ["__scopeId", "data-v-07443410
|
|
|
1847
1847
|
})) || [], i.current = 1, U();
|
|
1848
1848
|
}
|
|
1849
1849
|
const w = v({}), H = v([]);
|
|
1850
|
-
function
|
|
1850
|
+
function M(y) {
|
|
1851
1851
|
if (!y) return [];
|
|
1852
1852
|
H.value = Object.entries(y).filter(([, N]) => N.isFiltered).map(([N, B]) => ({ fieldKey: N, fieldConfig: B }));
|
|
1853
1853
|
}
|
|
@@ -1864,7 +1864,7 @@ const Uo = /* @__PURE__ */ q(mo, [["render", To], ["__scopeId", "data-v-07443410
|
|
|
1864
1864
|
function Ae(y, N) {
|
|
1865
1865
|
return !(y.location !== "InTable" || y.title === "Update" && (N.status === 100 || N.status === -1));
|
|
1866
1866
|
}
|
|
1867
|
-
const de = { svrStore: a, bpmStore: e, router: o, instance: l, props: s, pageData: c, paging: i, createListParams: r, scroll: f, mapColumns: m, _data: g, _columns: b, loadingPage: p, loadingTable: S, actions: d, loadData: U, mounted:
|
|
1867
|
+
const de = { svrStore: a, bpmStore: e, router: o, instance: l, props: s, pageData: c, paging: i, createListParams: r, scroll: f, mapColumns: m, _data: g, _columns: b, loadingPage: p, loadingTable: S, actions: d, loadData: U, mounted: j, pageChangeHandler: Y, pageSizeChangeHandler: Q, clickHandler: ne, createHandler: re, getApproverEmail: F, replaceEmail: D, tabHandler: x, searchForm: w, searchableFields: H, mapSearchableFields: M, initSearchForm: K, handleSearch: ie, handleReset: Z, judgeHiddenActions: Ae, ActionButton: ke, DataWidgets: Re, TopBar: Ve };
|
|
1868
1868
|
return Object.defineProperty(de, "__isScriptSetup", { enumerable: !1, value: !0 }), de;
|
|
1869
1869
|
}
|
|
1870
1870
|
}), No = { class: "list-container" }, Po = { class: "query-title" };
|
|
@@ -2005,7 +2005,7 @@ function Ho(t, n, a, e, o, l) {
|
|
|
2005
2005
|
}, 8, ["columns", "data", "pagination", "loading", "scroll"])
|
|
2006
2006
|
]);
|
|
2007
2007
|
}
|
|
2008
|
-
const Lo = /* @__PURE__ */ q(Do, [["render", Ho], ["__scopeId", "data-v-
|
|
2008
|
+
const Lo = /* @__PURE__ */ q(Do, [["render", Ho], ["__scopeId", "data-v-e291e7ef"], ["__file", "ListView.vue"]]), Oo = {
|
|
2009
2009
|
install(t, n = {}) {
|
|
2010
2010
|
n.config && gt(n.config), n.router && t.provide(Qe, n.router), n.pinia && t.provide(kn, 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", $n), t.component("UpdateView", eo), t.component("DetailView", Uo), t.component("ListView", Lo);
|
|
2011
2011
|
}
|