super-page-runtime 2.3.14 → 2.3.15-sit2

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.
Files changed (79) hide show
  1. package/dist/es/components/runtime/utils/ai-chat-util.js +16 -0
  2. package/dist/es/components/runtime/utils/api/page-expose-util.js +50 -50
  3. package/dist/es/components/runtime/utils/events/event-util.js +29 -29
  4. package/dist/es/components/runtime/utils/events/print-label.js +25 -26
  5. package/dist/es/components/runtime/utils/events/standard-event.d.ts +5 -0
  6. package/dist/es/components/runtime/utils/events/standard-event.js +163 -114
  7. package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
  8. package/dist/es/components/runtime/utils/page-init-util.js +117 -88
  9. package/dist/es/components/runtime/utils/page-permission-util.js +1 -1
  10. package/dist/es/components/runtime/utils/page-store.js +10 -10
  11. package/dist/es/components/runtime/utils/table-utils.js +1 -1
  12. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
  13. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
  14. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
  15. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
  16. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
  17. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
  18. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
  19. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
  20. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
  21. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
  22. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
  23. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
  24. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
  25. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +93 -98
  26. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +2 -3
  27. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
  28. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +11 -18
  29. package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.d.ts +26 -0
  30. package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.js +23 -0
  31. package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue2.js +4 -0
  32. package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.d.ts +35 -0
  33. package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.js +18 -0
  34. package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue2.js +4 -0
  35. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  36. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
  37. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
  38. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
  39. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
  40. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
  41. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
  42. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +1 -1
  43. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
  44. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
  45. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +18 -18
  46. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +19 -18
  47. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
  48. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
  49. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
  50. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
  51. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
  52. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +53 -42
  53. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
  54. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
  55. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +4 -4
  56. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
  57. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +37 -38
  58. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +5 -7
  59. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +3 -4
  60. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
  61. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +61 -62
  62. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +81 -58
  63. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
  64. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
  65. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
  66. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
  67. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
  68. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +17 -17
  69. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
  70. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
  71. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  72. package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
  73. package/dist/es/components/runtime/views/super-page.vue.d.ts +2 -0
  74. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  75. package/dist/es/components/runtime/views/super-page.vue2.js +200 -185
  76. package/dist/es/i18n/langs/cn.js +1 -1
  77. package/dist/es/i18n/langs/en.js +1 -1
  78. package/dist/es/style.css +76 -76
  79. package/package.json +3 -2
@@ -0,0 +1,23 @@
1
+ import { defineComponent as e, ref as t, onMounted as a, resolveComponent as l, createBlock as r, openBlock as s, withCtx as n, createVNode as u } from "vue";
2
+ import "element-plus";
3
+ import { useI18n as o } from "vue-i18n";
4
+ const i = e({ __name: "remove-signer-table", props: { taskId: { type: Number, default: null }, activeTasks: { type: Array, default: null } }, setup(e2, { expose: i2 }) {
5
+ const { t: p } = o(), c = e2, m = t([]), d = t([]);
6
+ function b(e3) {
7
+ m.value = e3;
8
+ }
9
+ return a(() => {
10
+ d.value = function() {
11
+ if (c.activeTasks && c.taskId) return c.activeTasks.filter((e3) => c.taskId !== e3.taskId);
12
+ return [];
13
+ }();
14
+ }), i2({ getSelections: function() {
15
+ return m.value;
16
+ } }), (e3, t2) => {
17
+ const a2 = l("el-table-column"), o2 = l("el-table");
18
+ return s(), r(o2, { data: d.value, border: "", style: { width: "100%" }, onSelect: b, onSelectAll: b }, { default: n(() => [u(a2, { type: "selection", width: "55" }), u(a2, { prop: "transactorName", label: e3.$t("superPageRuntimeMessage.transactorName"), width: "180" }, null, 8, ["label"]), u(a2, { prop: "transactor", label: e3.$t("superPageRuntimeMessage.transactor"), width: "180" }, null, 8, ["label"]), u(a2, { prop: "trustorName", label: e3.$t("superPageRuntimeMessage.trustorName"), width: "180" }, null, 8, ["label"])]), _: 1 }, 8, ["data"]);
19
+ };
20
+ } });
21
+ export {
22
+ i as default
23
+ };
@@ -0,0 +1,4 @@
1
+ import e from "./remove-signer-table.vue.js";
2
+ export {
3
+ e as default
4
+ };
@@ -0,0 +1,35 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ taskId: {
3
+ type: NumberConstructor;
4
+ default: any;
5
+ };
6
+ transactorInfo: {
7
+ type: ArrayConstructor;
8
+ default: any;
9
+ };
10
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ close: (...args: any[]) => void;
12
+ result: (...args: any[]) => void;
13
+ open: (...args: any[]) => void;
14
+ opend: (...args: any[]) => void;
15
+ closed: (...args: any[]) => void;
16
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
17
+ taskId: {
18
+ type: NumberConstructor;
19
+ default: any;
20
+ };
21
+ transactorInfo: {
22
+ type: ArrayConstructor;
23
+ default: any;
24
+ };
25
+ }>> & Readonly<{
26
+ onClose?: (...args: any[]) => any;
27
+ onResult?: (...args: any[]) => any;
28
+ onOpen?: (...args: any[]) => any;
29
+ onOpend?: (...args: any[]) => any;
30
+ onClosed?: (...args: any[]) => any;
31
+ }>, {
32
+ taskId: number;
33
+ transactorInfo: unknown[];
34
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
35
+ export default _default;
@@ -0,0 +1,18 @@
1
+ import { defineComponent as e, ref as t, resolveComponent as a, createElementBlock as s, openBlock as r, createVNode as o, withCtx as n, createCommentVNode as l, createElementVNode as u, toDisplayString as c, createBlock as i, createTextVNode as m } from "vue";
2
+ import { ElMessage as d } from "element-plus";
3
+ import p from "./remove-signer-table.vue.js";
4
+ import { useI18n as g } from "vue-i18n";
5
+ const f = { key: 0 }, v = { style: { color: "red" } }, k = { key: 1 }, y = { style: { color: "red" } }, I = { key: 2 }, M = { style: { color: "red" } }, b = { key: 3 }, R = { class: "dialog-footer" }, P = e({ __name: "remove-transactor-dialog", props: { taskId: { type: Number, default: null }, transactorInfo: { type: Array, default: null } }, emits: ["open", "opend", "close", "closed", "result"], setup(e2, { emit: P2 }) {
6
+ var _a, _b;
7
+ const { t: $ } = g(), h = e2, T = P2, N = t([]), _ = t(null), C = t([]);
8
+ function w() {
9
+ N.value = _.value.getSelections(), 0 !== N.value.length ? T("result", N.value) : d({ showClose: true, type: "warning", message: this.$t("superPageRuntimeMessage.pleaseSelectRemoverTransactors") });
10
+ }
11
+ return C.value = ((_a = h.transactorInfo) == null ? void 0 : _a.removeTransactors) ? (_b = h.transactorInfo) == null ? void 0 : _b.removeTransactors : [], (t2, d2) => {
12
+ const g2 = a("el-button"), P3 = a("el-dialog");
13
+ return r(), s("div", null, [o(P3, { "model-value": "", title: t2.$t("superPageRuntimeMessage.delTransactor"), "close-on-click-modal": false, "append-to-body": "", width: "30%", "max-height": "400", onOpen: d2[1] || (d2[1] = (e3) => T("open")), onOpend: d2[2] || (d2[2] = (e3) => T("opend")), onClose: d2[3] || (d2[3] = (e3) => T("close")), onClosed: d2[4] || (d2[4] = (e3) => T("closed")) }, { footer: n(() => [u("div", R, [e2.transactorInfo.transactorNumber > 1 ? (r(), i(g2, { key: 0, type: "primary", onClick: w }, { default: n(() => [m(c(t2.$t("superPageRuntimeMessage.sure")), 1)]), _: 1 })) : l("", true), o(g2, { type: "default", onClick: d2[0] || (d2[0] = (e3) => t2.$emit("close")) }, { default: n(() => [m(c(t2.$t("superPageRuntimeMessage.cancel")), 1)]), _: 1 })])]), default: n(() => [e2.transactorInfo.hasActiveSubProcess ? (r(), s("div", f, [u("span", v, c(t2.$t("superPageRuntimeMessage.taskMeaage1")), 1)])) : l("", true), 0 === e2.transactorInfo.transactorNumber ? (r(), s("div", k, [u("span", y, c(t2.$t("superPageRuntimeMessage.taskMeaage2")), 1)])) : l("", true), 1 === e2.transactorInfo.transactorNumber ? (r(), s("div", I, [u("span", M, c(t2.$t("superPageRuntimeMessage.taskMeaage3")), 1), u("span", null, c(t2.$t("superPageRuntimeMessage.handledBy")) + ":" + c(e2.transactorInfo.transactorName), 1)])) : l("", true), e2.transactorInfo.transactorNumber > 1 ? (r(), s("div", b, [o(p, { ref_key: "removeTableRef", ref: _, taskId: e2.taskId, activeTasks: C.value }, null, 8, ["taskId", "activeTasks"])])) : l("", true)]), _: 1 }, 8, ["title"])]);
14
+ };
15
+ } });
16
+ export {
17
+ P as default
18
+ };
@@ -0,0 +1,4 @@
1
+ import o from "./remove-transactor-dialog.vue.js";
2
+ export {
3
+ o as default
4
+ };
@@ -27,7 +27,7 @@ const f = { class: "dialog-footer" }, v = e({ __name: "save-chart-condition-dial
27
27
  p({ showClose: true, type: "success", message: C("superPageRuntimeMessage.successfulDelete") }), $();
28
28
  });
29
29
  var l3;
30
- } }, { default: u(() => [s(y2)]), _: 1 }, 8, ["onClick"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"])]);
30
+ } }, { default: u(() => [s(y2)]), _: 2 }, 1032, ["onClick"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"])]);
31
31
  };
32
32
  } });
33
33
  export {
@@ -19,9 +19,9 @@ const V = e({ __name: "card-runtime", props: { pageContext: {}, configure: {} },
19
19
  });
20
20
  }), V2({ test: function() {
21
21
  _.configure.props.title = "teee";
22
- } }), (o2, t2) => {
23
- const i2 = r("el-link");
24
- return s(), l(u(b), { ref_key: "thisRef", ref: z, style: p(u(A)), "data-collapse": String(D.value), class: a(["yx-card-box-view-main", u(B)]) }, c({ default: f(() => [g("div", { class: "yx-card-box-view-context", style: p(u(F)) }, [(s(true), m(y, null, d(e2.configure.items, (o3, t3) => (s(), l(S, { key: o3.uuid, pageContext: e2.pageContext, configure: o3 }, null, 8, ["pageContext", "configure"]))), 128))], 4)]), _: 2 }, [e2.configure.props.base.tittleShow ? { name: "header", fn: f(() => [g("div", { class: "yx-card-box-view-header", onClick: G }, [g("div", { class: "yx-card-box-view-title", style: p(u(E)) }, [e2.configure.props.iconType && e2.configure.props.iconValue ? (s(), l(u(h), { key: 0, iconType: e2.configure.props.iconType, iconValue: e2.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : v("", true), x(" " + C(u(j)(e2.configure.props.base.title)), 1)], 4), R.value ? (s(), l(i2, { key: 0, underline: false, icon: D.value ? u(k) : u(w), style: { margin: "-15px 0", "z-index": "1" } }, null, 8, ["icon"])) : v("", true)])]), key: "0" } : void 0]), 1032, ["style", "data-collapse", "class"]);
22
+ } }), (e3, o2) => {
23
+ const t2 = r("el-link");
24
+ return s(), l(u(b), { ref_key: "thisRef", ref: z, style: p(u(A)), "data-collapse": String(D.value), class: a(["yx-card-box-view-main", u(B)]) }, c({ default: f(() => [g("div", { class: "yx-card-box-view-context", style: p(u(F)) }, [(s(true), m(y, null, d(e3.configure.items, (o3, t3) => (s(), l(S, { key: o3.uuid, pageContext: e3.pageContext, configure: o3 }, null, 8, ["pageContext", "configure"]))), 128))], 4)]), _: 2 }, [e3.configure.props.base.tittleShow ? { name: "header", fn: f(() => [g("div", { class: "yx-card-box-view-header", onClick: G }, [g("div", { class: "yx-card-box-view-title", style: p(u(E)) }, [e3.configure.props.iconType && e3.configure.props.iconValue ? (s(), l(u(h), { key: 0, iconType: e3.configure.props.iconType, iconValue: e3.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : v("", true), x(" " + C(u(j)(e3.configure.props.base.title)), 1)], 4), R.value ? (s(), l(t2, { key: 0, underline: false, icon: D.value ? u(k) : u(w), style: { margin: "-15px 0", "z-index": "1" } }, null, 8, ["icon"])) : v("", true)])]), key: "0" } : void 0]), 1032, ["style", "data-collapse", "class"]);
25
25
  };
26
26
  } });
27
27
  export {
@@ -11,9 +11,9 @@ const _ = e({ __name: "collapse-runtime", props: { pageContext: {}, configure: {
11
11
  o(() => {
12
12
  j(null, _2.pageContext, _2.configure, { componentRef: b.value, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
13
13
  });
14
- }), (t2, n2) => {
15
- const o2 = l("SuperIcon"), j2 = l("el-collapse-item"), _3 = l("el-collapse");
16
- return u(), i(_3, { ref_key: "thisRef", ref: b, modelValue: a(h), "onUpdate:modelValue": n2[0] || (n2[0] = (e3) => s(h) ? h.value = e3 : null), style: p(a(O)), accordion: a(T), class: r(a(R)) }, { default: c(() => [(u(true), f(g, null, m(e2.configure.items, (t3, n3) => (u(), i(j2, { name: t3.index }, { title: c(() => [d("div", { style: p([a(S), { width: "100%" }]) }, [t3.iconType && t3.iconValue ? (u(), i(o2, { key: 0, iconType: t3.iconType, iconValue: t3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : y("", true), x(" " + v(a(V)(t3.label)), 1)], 4)]), default: c(() => [d("div", null, [(u(true), f(g, null, m(t3.items, (t4, n4) => (u(), i(C, { key: t4.uuid, configure: t4, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"]))), 128))])]), _: 2 }, 1032, ["name"]))), 256))]), _: 1 }, 8, ["modelValue", "style", "accordion", "class"]);
14
+ }), (e3, t2) => {
15
+ const n2 = l("SuperIcon"), o2 = l("el-collapse-item"), j2 = l("el-collapse");
16
+ return u(), i(j2, { ref_key: "thisRef", ref: b, modelValue: a(h), "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => s(h) ? h.value = e4 : null), style: p(a(O)), accordion: a(T), class: r(a(R)) }, { default: c(() => [(u(true), f(g, null, m(e3.configure.items, (t3, l2) => (u(), i(o2, { name: t3.index }, { title: c(() => [d("div", { style: p([a(S), { width: "100%" }]) }, [t3.iconType && t3.iconValue ? (u(), i(n2, { key: 0, iconType: t3.iconType, iconValue: t3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : y("", true), x(" " + v(a(V)(t3.label)), 1)], 4)]), default: c(() => [d("div", null, [(u(true), f(g, null, m(t3.items, (t4, n3) => (u(), i(C, { key: t4.uuid, configure: t4, pageContext: e3.pageContext }, null, 8, ["configure", "pageContext"]))), 128))])]), _: 2 }, 1032, ["name"]))), 256))]), _: 1 }, 8, ["modelValue", "style", "accordion", "class"]);
17
17
  };
18
18
  } });
19
19
  export {
@@ -8,9 +8,9 @@ const C = e({ __name: "container-runtime", props: { pageContext: {}, configure:
8
8
  o(() => {
9
9
  d(null, C2.pageContext, C2.configure, { componentRef: _.value, entity: C2.pageContext.entity.data, pageData: C2.pageContext.entity.page });
10
10
  });
11
- }), (t2, n2) => {
12
- const o2 = u("el-aside"), d2 = u("el-main"), C3 = u("el-container");
13
- return i(), l(C3, { ref_key: "thisRef", ref: _ }, { default: r(() => [e2.configure.props.useLeft ? (i(), l(o2, { key: 0, style: g(f(v)) }, { default: r(() => [(i(true), p(c, null, y(e2.configure.leftAslides, (t3, n3) => (i(), l(x, { key: t3.uuid, pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])) : s("", true), a(d2, { style: g(f(j)), class: m(f(R)) }, { default: r(() => [(i(true), p(c, null, y(e2.configure.items, (t3, n3) => (i(), l(x, { key: t3.uuid, pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style", "class"]), e2.configure.props.useRight ? (i(), l(o2, { key: 1, style: g(f(h)) }, { default: r(() => [(i(true), p(c, null, y(e2.configure.rightAslides, (t3, n3) => (i(), l(x, { key: t3.uuid, pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])) : s("", true)]), _: 1 }, 512);
11
+ }), (e3, t2) => {
12
+ const n2 = u("el-aside"), o2 = u("el-main"), d2 = u("el-container");
13
+ return i(), l(d2, { ref_key: "thisRef", ref: _ }, { default: r(() => [e3.configure.props.useLeft ? (i(), l(n2, { key: 0, style: g(f(v)) }, { default: r(() => [(i(true), p(c, null, y(e3.configure.leftAslides, (t3, n3) => (i(), l(x, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])) : s("", true), a(o2, { style: g(f(j)), class: m(f(R)) }, { default: r(() => [(i(true), p(c, null, y(e3.configure.items, (t3, n3) => (i(), l(x, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style", "class"]), e3.configure.props.useRight ? (i(), l(n2, { key: 1, style: g(f(h)) }, { default: r(() => [(i(true), p(c, null, y(e3.configure.rightAslides, (t3, n3) => (i(), l(x, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])) : s("", true)]), _: 1 }, 512);
14
14
  };
15
15
  } });
16
16
  export {
@@ -19,7 +19,6 @@ const p = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 },
19
19
  B.value = l2 ?? 0, R(n2 || i2 || false, e3);
20
20
  }
21
21
  } catch (e3) {
22
- console.error(e3);
23
22
  }
24
23
  }, R = (e3, t2) => {
25
24
  var _a;
@@ -56,7 +55,6 @@ const p = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 },
56
55
  })();
57
56
  b.value = e3, T.value = e3[0], b.value.forEach((e4) => e4.addEventListener("scroll", z)), window.addEventListener("resize", L), S();
58
57
  } catch (e3) {
59
- console.error(e3);
60
58
  }
61
59
  });
62
60
  }, 100);
@@ -15,9 +15,9 @@ const _ = e({ __name: "flex-runtime", props: { pageContext: {}, configure: {} },
15
15
  s(() => {
16
16
  v(null, _2.pageContext, _2.configure, { componentRef: j.value, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
17
17
  });
18
- }), (t2, n2) => {
19
- const s2 = l("el-col"), C2 = l("el-row");
20
- return o(), i(C2, { ref_key: "thisRef", ref: j, justify: b.value.flexJustify, gutter: b.value.flexGutter, align: b.value.alignItems, style: u([{ display: "flex" }, r(h)]), class: a(r(w)) }, { default: f(() => [(o(true), p(g, null, m(e2.configure.items, (t3, n3) => c((o(), i(s2, { key: t3.uuid, style: u(t3.itemStyle), span: t3.flexSpan }, { default: f(() => [y(d, { pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"])]), _: 2 }, 1032, ["style", "span"])), [[x, t3._dynamicShowFlag]])), 128))]), _: 1 }, 8, ["justify", "gutter", "align", "style", "class"]);
18
+ }), (e3, t2) => {
19
+ const n2 = l("el-col"), s2 = l("el-row");
20
+ return o(), i(s2, { ref_key: "thisRef", ref: j, justify: b.value.flexJustify, gutter: b.value.flexGutter, align: b.value.alignItems, style: u([{ display: "flex" }, r(h)]), class: a(r(w)) }, { default: f(() => [(o(true), p(g, null, m(e3.configure.items, (t3, s3) => c((o(), i(n2, { key: t3.uuid, style: u(t3.itemStyle), span: t3.flexSpan }, { default: f(() => [y(d, { pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"])]), _: 2 }, 1032, ["style", "span"])), [[x, t3._dynamicShowFlag]])), 128))]), _: 1 }, 8, ["justify", "gutter", "align", "style", "class"]);
21
21
  };
22
22
  } });
23
23
  export {
@@ -10,9 +10,9 @@ const b = e({ __name: "form-runtime", props: { pageContext: {}, configure: {} },
10
10
  i(() => {
11
11
  C(null, b2.pageContext, b2.configure, "afterFormLoad", { componentRef: P.value, entity: b2.pageContext.entity.data, pageData: b2.pageContext.entity.page });
12
12
  });
13
- }), (t2, o2) => {
14
- const i2 = n("el-form");
15
- return s(), l("div", null, [a(i2, { ref_key: "thisRef", ref: P, "label-width": p(j).labelWidth, "label-position": z.value, size: p(j).componentSize, style: u(_.value), class: r(p(k)) }, { default: f(() => [p(j).formTitle ? (s(), l("div", { key: 0, class: "amb-widget-form-title", style: u(w.value) }, g(p(j).formTitle), 5)) : m("", true), (s(true), l(c, null, d(e2.configure.items, (t3, o3) => (s(), y(v, { key: t3.uuid, pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["label-width", "label-position", "size", "style", "class"])]);
13
+ }), (e3, t2) => {
14
+ const o2 = n("el-form");
15
+ return s(), l("div", null, [a(o2, { ref_key: "thisRef", ref: P, "label-width": p(j).labelWidth, "label-position": z.value, size: p(j).componentSize, style: u(_.value), class: r(p(k)) }, { default: f(() => [p(j).formTitle ? (s(), l("div", { key: 0, class: "amb-widget-form-title", style: u(w.value) }, g(p(j).formTitle), 5)) : m("", true), (s(true), l(c, null, d(e3.configure.items, (t3, o3) => (s(), y(v, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["label-width", "label-position", "size", "style", "class"])]);
16
16
  };
17
17
  } });
18
18
  export {
@@ -7,7 +7,7 @@ const f = ["src"], p = e({ __name: "iframe-runtime", props: { pageContext: {}, c
7
7
  r(() => {
8
8
  l(null, p2.pageContext, p2.configure, { componentRef: c.value, entity: p2.pageContext.entity.data, pageData: p2.pageContext.entity.page });
9
9
  });
10
- }), (t2, n2) => (o(), i("iframe", { ref_key: "thisRef", ref: c, src: e2.configure.props.src, class: a(["amb-widget-container-iframe", u(x)]), style: s(u(m)) }, null, 14, f));
10
+ }), (e3, t2) => (o(), i("iframe", { ref_key: "thisRef", ref: c, src: e3.configure.props.src, class: a(["amb-widget-container-iframe", u(x)]), style: s(u(m)) }, null, 14, f));
11
11
  } });
12
12
  export {
13
13
  p as default
@@ -86,9 +86,9 @@ const A = e({ __name: "tabs-runtime", props: { pageContext: {}, configure: {} },
86
86
  P.configure.items.forEach((n2) => {
87
87
  e3.includes(n2.code) && t2.push(n2.code);
88
88
  }), w.value = [...new Set(t2)];
89
- } }), (t2, n2) => {
90
- const o2 = i("el-button");
91
- return u(), c(l(x), { ref_key: "thisRef", ref: O, modelValue: j.value, "onUpdate:modelValue": n2[0] || (n2[0] = (e3) => j.value = e3), type: e2.configure.props.cardType, "tab-position": e2.configure.props.tabPosition, style: s(l(B)), class: r([l(z), "runtime-page-container-tabs-view"]), closable: e2.configure.props.closable, "before-leave": S, onTabClick: D, onTabChange: F, onTabRemove: L, onTabAdd: q, onEdit: G }, { default: p(() => [(u(true), f(d, null, m(P.configure.items, (t3, n3) => (u(), c(l(C), { key: n3, label: t3.label, name: t3.code, lazy: !!e2.configure.props.lazy }, { label: p(() => [t3.iconType && t3.iconValue ? (u(), c(l(E), { key: 0, iconType: t3.iconType, iconValue: t3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : g("", true), b("span", { style: s(l(I)) }, y(l(V)(t3.label)), 5)]), default: p(() => [(e2.configure.props.isFullyRendered ?? 1) || t3.code === j.value ? (u(true), f(d, { key: 0 }, m(t3.items, (t4) => (u(), c(T, { key: t4.uuid, pageContext: e2.pageContext, configure: t4 }, null, 8, ["pageContext", "configure"]))), 128)) : g("", true)]), _: 2 }, 1032, ["label", "name", "lazy"]))), 128)), e2.configure.props.resetable ? (u(), c(l(C), { key: 0, disabled: "", name: "-1" }, { label: p(() => [e2.configure.props.resetable ? (u(), c(o2, { key: 0, type: "text", circle: "", onClick: v(H, ["stop"]) }, { default: p(() => [h(y(e2.configure.props.resetButtonName || "重置"), 1)]), _: 1 })) : g("", true)]), _: 1 })) : g("", true)]), _: 1 }, 8, ["modelValue", "type", "tab-position", "style", "class", "closable"]);
89
+ } }), (e3, t2) => {
90
+ const n2 = i("el-button");
91
+ return u(), c(l(x), { ref_key: "thisRef", ref: O, modelValue: j.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => j.value = e4), type: e3.configure.props.cardType, "tab-position": e3.configure.props.tabPosition, style: s(l(B)), class: r([l(z), "runtime-page-container-tabs-view"]), closable: e3.configure.props.closable, "before-leave": S, onTabClick: D, onTabChange: F, onTabRemove: L, onTabAdd: q, onEdit: G }, { default: p(() => [(u(true), f(d, null, m(P.configure.items, (t3, n3) => (u(), c(l(C), { key: n3, label: t3.label, name: t3.code, lazy: !!e3.configure.props.lazy }, { label: p(() => [t3.iconType && t3.iconValue ? (u(), c(l(E), { key: 0, iconType: t3.iconType, iconValue: t3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : g("", true), b("span", { style: s(l(I)) }, y(l(V)(t3.label)), 5)]), default: p(() => [(e3.configure.props.isFullyRendered ?? 1) || t3.code === j.value ? (u(true), f(d, { key: 0 }, m(t3.items, (t4) => (u(), c(T, { key: t4.uuid, pageContext: e3.pageContext, configure: t4 }, null, 8, ["pageContext", "configure"]))), 128)) : g("", true)]), _: 2 }, 1032, ["label", "name", "lazy"]))), 128)), e3.configure.props.resetable ? (u(), c(l(C), { key: 0, disabled: "", name: "-1" }, { label: p(() => [e3.configure.props.resetable ? (u(), c(n2, { key: 0, type: "text", circle: "", onClick: v(H, ["stop"]) }, { default: p(() => [h(y(e3.configure.props.resetButtonName || "重置"), 1)]), _: 1 })) : g("", true)]), _: 1 })) : g("", true)]), _: 1 }, 8, ["modelValue", "type", "tab-position", "style", "class", "closable"]);
92
92
  };
93
93
  } });
94
94
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, computed as t, ref as r, onMounted as a, watch as o, resolveComponent as l, createBlock as n, openBlock as u, normalizeStyle as i, normalizeClass as s, unref as c, withCtx as p, createElementBlock as m, createCommentVNode as f, toDisplayString as g } from "vue";
1
+ import { defineComponent as e, computed as t, ref as a, onMounted as r, watch as l, resolveComponent as o, createBlock as u, openBlock as n, normalizeStyle as i, normalizeClass as s, unref as p, withCtx as c, createElementBlock as m, createCommentVNode as f, toDisplayString as g } from "vue";
2
2
  import d from "qrcode";
3
3
  import v from "jsbarcode";
4
4
  import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
@@ -12,7 +12,7 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
12
12
  let k = y(q.pageContext, q.configure);
13
13
  const A = t({ get: () => x(N, k), set(e3) {
14
14
  h(N, k, e3);
15
- } }), E = q.configure.runtime ? q.configure.runtime : {}, _ = r(E.props ? E.props : {}), O = E.style, P = E.class, S = E.headerStyle, $ = r(""), I = r(null), Q = r(_.value.brCodeFormat ?? "CODE128"), V = r([]);
15
+ } }), E = q.configure.runtime ? q.configure.runtime : {}, _ = a(E.props ? E.props : {}), O = E.style, P = E.class, S = E.headerStyle, $ = a(""), I = a(null), Q = a(_.value.brCodeFormat ?? "CODE128"), V = a([]);
16
16
  function F(e3) {
17
17
  return h(N, k, e3);
18
18
  }
@@ -22,32 +22,31 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
22
22
  function L(e3) {
23
23
  var t2;
24
24
  "QR-code" === _.value.type ? (t2 = e3, d.toDataURL(t2, (e4, t3) => {
25
- e4 ? console.error(e4) : $.value = t3;
25
+ e4 || ($.value = t3);
26
26
  })) : function(e4) {
27
27
  try {
28
28
  v(I.value, e4, { format: Q.value });
29
29
  } catch (e5) {
30
- console.error("生成条形码时发生错误:", e5);
31
30
  }
32
31
  }(e3);
33
32
  }
34
- return a(() => {
33
+ return r(() => {
35
34
  _.value.generateRule && ("fixed" === _.value.generateRuleType ? (V.value = Array.from(_.value.generateRule.matchAll(/\$\{(\w+)\}/g), (e3) => e3[1]), V.value.forEach((e3) => {
36
- o(() => q.pageContext.entity.data[e3], (e4, t2) => {
35
+ l(() => q.pageContext.entity.data[e3], (e4, t2) => {
37
36
  null != e4 && function() {
38
37
  let e5 = true;
39
38
  V.value.forEach((t3) => {
40
39
  q.pageContext.entity.data[t3] || (e5 = false);
41
40
  }), e5 && J(function(e6, t3) {
42
- const r2 = /\$\{(\w+)\}/g;
43
- return e6.replace(r2, (e7, r3) => t3.hasOwnProperty(r3) ? t3[r3] : e7);
41
+ const a2 = /\$\{(\w+)\}/g;
42
+ return e6.replace(a2, (e7, a3) => t3.hasOwnProperty(a3) ? t3[a3] : e7);
44
43
  }(_.value.generateRule, q.pageContext.entity.data));
45
44
  }();
46
45
  });
47
46
  })) : w.get(window.$vueApp.config.globalProperties.baseAPI + "/dc/setting-barcode-models/by-code/" + _.value.generateRule).then((e3) => {
48
47
  const t2 = JSON.parse(e3.barcodeModelItems);
49
48
  t2.forEach((e4) => {
50
- "-1" !== e4.propDbName && -1 !== e4.propDbName && (V.value.push(e4.propDbName), o(() => q.pageContext.entity.data[e4.propDbName], (e5, r2) => {
49
+ "-1" !== e4.propDbName && -1 !== e4.propDbName && (V.value.push(e4.propDbName), l(() => q.pageContext.entity.data[e4.propDbName], (e5, a2) => {
51
50
  if (null != e5) {
52
51
  const e6 = b(t2, q.pageContext.entity.data);
53
52
  e6 && J(e6);
@@ -55,13 +54,12 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
55
54
  }));
56
55
  });
57
56
  }).catch((e3) => {
58
- console.error("获取条码规则失败:", e3);
59
57
  })), A.value && L(A.value);
60
58
  }), D2({ getValue: function() {
61
59
  return x(N, k);
62
60
  }, setValue: F }), (e3, t2) => {
63
- const r2 = l("el-form-item");
64
- return u(), n(r2, { required: !!_.value.required, class: s(c(P)), "label-width": _.value.labelWidth, style: i(c(O)) }, { label: p(() => [_.value.tittleShow ? (u(), m("div", { key: 0, style: i({ ...c(S) }) }, g(c(R)(_.value.title)), 5)) : f("", true)]), default: p(() => ["QR-code" === _.value.type ? (u(), m("img", { key: 0, src: $.value }, null, 8, j)) : (u(), m("canvas", { key: 1, ref_key: "barcode", ref: I }, null, 512))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
61
+ const a2 = o("el-form-item");
62
+ return n(), u(a2, { required: !!_.value.required, class: s(p(P)), "label-width": _.value.labelWidth, style: i(p(O)) }, { label: c(() => [_.value.tittleShow ? (n(), m("div", { key: 0, style: i({ ...p(S) }) }, g(p(R)(_.value.title)), 5)) : f("", true)]), default: c(() => ["QR-code" === _.value.type ? (n(), m("img", { key: 0, src: $.value }, null, 8, j)) : (n(), m("canvas", { key: 1, ref_key: "barcode", ref: I }, null, 512))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
65
63
  };
66
64
  } });
67
65
  export {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as e, ref as t, onMounted as n, watch as o, onUnmounted as i, resolveComponent as a, createElementBlock as l, openBlock as r, unref as u, createVNode as s } from "vue";
2
- import { setTableEvents as c, canExecuteButton as p, doAfterClickEvent as d, doBeforeClickEvent as f, gridSelectRecord as g, gridSelectAllRecords as m, gridSelectionChange as v, cellClick as h, cellDblClick as b, rowClick as S, rowDblClick as w, headerClick as C, getEventNameByType as y, getEventFuncByType as x, getHandleEvent as D } from "../../../../utils/events/event-util.js";
2
+ import { setTableEvents as c, canExecuteButton as p, doAfterClickEvent as d, doBeforeClickEvent as f, gridSelectRecord as g, gridSelectAllRecords as m, gridSelectionChange as v, cellClick as h, cellDblClick as b, rowClick as w, rowDblClick as S, headerClick as C, getEventNameByType as y, getEventFuncByType as x, getHandleEvent as D } from "../../../../utils/events/event-util.js";
3
3
  import { getBaseUrl as E, getListCode as T, getRealRestApiPath as O, isWorkflowPage as R, isVariableInvalidValue as k } from "../../../../utils/common-util.js";
4
4
  import { getAdditionalParamMap as I, getSaveFormRequestWithRow as V, standardEvents as j } from "../../../../utils/events/standard-event.js";
5
5
  import { isPromise as N } from "agilebuilder-ui/src/utils/common-util";
@@ -19,47 +19,48 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
19
19
  oe || (oe = window.$vueApp.config.globalProperties.baseURL);
20
20
  const ie = t({}), ae = [], le = t({});
21
21
  le.value = function() {
22
+ var _a;
22
23
  const e3 = Y.systemCode, t2 = Y.code;
23
24
  let n2 = J.props && J.props.dataOrigin && "[]" !== J.props.dataOrigin.sqlFilterCondition ? J.props.dataOrigin.sqlFilterCondition : null;
24
25
  null == n2 && (n2 = []);
25
- const o2 = { isSql: true, optionTableHeight: 0, rowKeyProp: J.props.dataOrigin.principalLinkage, extraParam: { beanName: Y.beanName, functionCode: t2 + ".listData", tableName: ne, systemCode: e3, pageCode: Y.code, pageVersion: Y.version }, initSearchForm: n2, lineEditOptions: { aftersaveIsCreateRow: false, autoSave: false, enter: we, esc: Ee }, indexContinuous: !(!J.props || !J.props.otherSettings) && J.props.otherSettings.serialNumberContinuous, initSearch: !J.props || false !== J.props.dataOrigin.initializationQuery, resizeHeight: je, pageCode: Y.code, pageVersion: Y.version, additionalParamMap: I(Y), showOverflowTooltip: !(!J.props || !J.props.otherSettings || void 0 !== J.props.otherSettings.isBreakLine && false !== J.props.otherSettings.isBreakLine), isEnableEnterEvent: J.props && J.props.otherSettings && J.props.otherSettings.isEnableEnterEvent, isWithDataPermission: !!(J.props && J.props.otherSettings && J.props.otherSettings.isWithDataPermission) && J.props.otherSettings.isWithDataPermission, pageDevMode: false, isWorkflowEntity: R(Y), tableClass: Z, tableStyle: X, pageContext: Y, configureObj: J, backendUrl: oe, cellStyleRender: qe, rowStyleRender: We, titleStyleRender: Qe, validateEitConditions: Xe };
26
+ const o2 = (_a = J.props) == null ? void 0 : _a.dataOrigin.principalLinkage, i2 = { isSql: true, optionTableHeight: 0, rowKeyProp: o2, extraParam: { beanName: Y.beanName, functionCode: t2 + ".listData", tableName: ne, systemCode: e3, pageCode: Y.code, pageVersion: Y.version }, initSearchForm: n2, lineEditOptions: { aftersaveIsCreateRow: false, autoSave: false, enter: Se, esc: Ee }, indexContinuous: !(!J.props || !J.props.otherSettings) && J.props.otherSettings.serialNumberContinuous, initSearch: !J.props || false !== J.props.dataOrigin.initializationQuery, resizeHeight: je, pageCode: Y.code, pageVersion: Y.version, additionalParamMap: I(Y), showOverflowTooltip: !(!J.props || !J.props.otherSettings || void 0 !== J.props.otherSettings.isBreakLine && false !== J.props.otherSettings.isBreakLine), isEnableEnterEvent: J.props && J.props.otherSettings && J.props.otherSettings.isEnableEnterEvent, isWithDataPermission: !!(J.props && J.props.otherSettings && J.props.otherSettings.isWithDataPermission) && J.props.otherSettings.isWithDataPermission, pageDevMode: false, isWorkflowEntity: R(Y), tableClass: Z, tableStyle: X, pageContext: Y, configureObj: J, backendUrl: oe, cellStyleRender: qe, rowStyleRender: We, titleStyleRender: Qe, validateEitConditions: Xe };
26
27
  return function(e4) {
27
- var _a;
28
- ((_a = J.props.highOrder) == null ? void 0 : _a.mergeFields) && J.props.highOrder.mergeFields.length > 0 && (e4.mergeFields = J.props.highOrder.mergeFields.join(","));
29
- }(o2), function(e4) {
28
+ var _a2;
29
+ ((_a2 = J.props.highOrder) == null ? void 0 : _a2.mergeFields) && J.props.highOrder.mergeFields.length > 0 && (e4.mergeFields = J.props.highOrder.mergeFields.join(","));
30
+ }(i2), function(e4) {
30
31
  const t3 = [];
31
32
  e4.operations || (e4.operations = {});
32
33
  B(Y, J, t3, ye), e4.operations.operation = t3;
33
- }(o2), function(e4) {
34
+ }(i2), function(e4) {
34
35
  J.props && J.props.dataOrigin && J.props.dataOrigin.sortField && (e4.initSortInfo = [], J.props.dataOrigin.sortField.forEach((t3) => {
35
36
  const n3 = { order: "desc" === t3.type ? "desc" : "asc" };
36
37
  n3.prop = t3.name, e4.initSortInfo.push(n3);
37
38
  }));
38
- }(o2), function(e4) {
39
+ }(i2), function(e4) {
39
40
  const t3 = J.props ? J.props.dataOrigin : {};
40
41
  if (t3.treeTable) {
41
42
  let n3;
42
43
  const o3 = t3.rowKey;
43
44
  if (n3 = o3 && o3.indexOf("~~") > 0 ? o3.substring(o3.indexOf("~~") + 2) : o3, e4.parentProp = n3, t3.checkStrictly && (e4.checkStrictly = t3.checkStrictly), e4.parentProp) {
44
- const o4 = t3.lazy, i2 = t3.defaultExpandAll;
45
- e4.lazy = null == o4 || o4, e4.defaultExpandAll = null != i2 && i2;
45
+ const o4 = t3.lazy, i3 = t3.defaultExpandAll;
46
+ e4.lazy = null == o4 || o4, e4.defaultExpandAll = null != i3 && i3;
46
47
  const a2 = { parentProp: n3, lazy: e4.lazy, defaultExpandAll: e4.defaultExpandAll };
47
48
  e4.extraParam.listViewTreeSetting = JSON.stringify(a2), e4.subRowUrl = oe + "/dsc/commons/list-subs";
48
49
  }
49
50
  }
50
- }(o2), function(e4) {
51
+ }(i2), function(e4) {
51
52
  const t3 = J.runtime && J.runtime.events ? J.runtime.events : [];
52
53
  c(e4, t3, Y, J);
53
54
  const n3 = Y.customEvents;
54
55
  n3 && (e4.eventCallBack = n3);
55
- }(o2), o2;
56
+ }(i2), i2;
56
57
  }();
57
58
  const re = t(), ue = t(), se = function() {
58
59
  let e3 = oe + "/dsc/commons/list";
59
60
  e3 && (e3 = O(e3, ee, te, Y.isTest));
60
61
  return e3;
61
62
  }(), ce = T(Y.code, Y.version, J.uuid), pe = Y.code + "_" + ce, de = t([]), fe = Y.entity.page, ge = t({ data: [] }), me = Y.superGridItems, ve = me ? me[J.uuid] : null, he = t(false), be = q;
62
- function Se() {
63
+ function we() {
63
64
  J.props.linkages && J.props.linkages.length > 0 && (J.props.linkages.forEach((e3) => {
64
65
  const t2 = M(e3.fieldName);
65
66
  t2 && t2.length > 1 && ae.push(t2[1]);
@@ -83,7 +84,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
83
84
  }
84
85
  }());
85
86
  }
86
- function we({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
87
+ function Se({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
87
88
  Ce(null, null, n2, t2, e3);
88
89
  }
89
90
  function Ce(e3, t2, n2, o2, i2) {
@@ -207,7 +208,6 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
207
208
  }
208
209
  function Ne() {
209
210
  if (!ue.value) return;
210
- Q.configure.name, Q.configure;
211
211
  const e3 = U(Q.pageContext, Q.configure);
212
212
  if (e3) {
213
213
  if (e3.isCalcHeight) {
@@ -244,10 +244,10 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
244
244
  b(Y, J, { row: e3, column: t2, cell: n2, event: o2 });
245
245
  }
246
246
  function $e(e3, t2, n2) {
247
- S(Y, J, { row: e3, column: t2, event: n2 });
247
+ w(Y, J, { row: e3, column: t2, event: n2 });
248
248
  }
249
249
  function _e(e3, t2, n2) {
250
- w(Y, J, { row: e3, column: t2, event: n2 });
250
+ S(Y, J, { row: e3, column: t2, event: n2 });
251
251
  }
252
252
  function Ae(e3, t2) {
253
253
  C(Y, J, { column: e3, event: t2 });
@@ -283,7 +283,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
283
283
  }
284
284
  n(() => {
285
285
  const e3 = Ke();
286
- ue.value && e3 && e3.distanceToBottom && (ue.value.tableHeight = e3.distanceToBottom - 110), Q.pageContext.pageRuntimeStyle && Q.pageContext.pageRuntimeStyle.height, window.addEventListener("message", Pe), F.$on(pe + "-close-component-page-dialog", function({ jumpInfo: e4, popEntity: t2, popPageCode: n2 }) {
286
+ ue.value && e3 && e3.distanceToBottom && (ue.value.tableHeight = e3.distanceToBottom - 110), Q.pageContext.pageRuntimeStyle, window.addEventListener("message", Pe), F.$on(pe + "-close-component-page-dialog", function({ jumpInfo: e4, popEntity: t2, popPageCode: n2 }) {
287
287
  ue.value.closePageDialog({ entity: t2, pageCode: n2, jumpInfo: e4 });
288
288
  }), F.$on(pe + "_close-dialog-get-entity", () => {
289
289
  F.$emit(pe + "_close-super-dialog");
@@ -370,7 +370,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
370
370
  return (_a = ue.value) == null ? void 0 : _a.handleSearch(e3, t2);
371
371
  } }), (e3, t2) => {
372
372
  const n2 = a("super-grid");
373
- return r(), l("div", { ref_key: "tableDivRef", ref: re, id: u(ce) + "_tableDiv" }, [s(n2, { ref_key: "gridRef", ref: ue, url: u(se), options: le.value, code: u(ce), settings: u(ve), "search-form-info": ge.value, "list-toolbar-form-data": u(fe), onSelect: Fe, onSelectAll: He, onSelectionChange: Ue, onCellClick: Le, onCellDblclick: Me, onRowClick: $e, onRowDblclick: _e, onHeaderClick: Ae, onRefresh: Ge, onNewOpenGridDialog: u(P), onCanShowMobileSearch: ze, onGridOnmounted: Se }, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "onNewOpenGridDialog"])], 8, z);
373
+ return r(), l("div", { ref_key: "tableDivRef", ref: re, id: u(ce) + "_tableDiv" }, [s(n2, { ref_key: "gridRef", ref: ue, url: u(se), options: le.value, code: u(ce), settings: u(ve), "search-form-info": ge.value, "list-toolbar-form-data": u(fe), isDialog: u(Y).isDialog, onSelect: Fe, onSelectAll: He, onSelectionChange: Ue, onCellClick: Le, onCellDblclick: Me, onRowClick: $e, onRowDblclick: _e, onHeaderClick: Ae, onRefresh: Ge, onNewOpenGridDialog: u(P), onCanShowMobileSearch: ze, onGridOnmounted: we }, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "isDialog", "onNewOpenGridDialog"])], 8, z);
374
374
  };
375
375
  } });
376
376
  export {
@@ -1,23 +1,24 @@
1
1
  import { defineComponent as e, ref as t, onMounted as n, onUnmounted as o, resolveComponent as l, createElementBlock as a, openBlock as i, createBlock as u, createCommentVNode as r, unref as s } from "vue";
2
2
  import { setTableEvents as c, gridSelectRecord as p, gridSelectAllRecords as d, gridSelectionChange as f, cellClick as v, cellDblClick as b, rowClick as g, rowDblClick as m, headerClick as h, getHandleEvent as S } from "../../../../utils/events/event-util.js";
3
- import { caculateShowCondition as w, setVariableValue as T, getVariableValue as x, getSizeConfig as C } from "../../../../utils/page-helper-util.js";
4
- import { getModelFields as D, getDefaultValue as y } from "../../../../utils/page-init-util.js";
3
+ import { caculateShowCondition as w, setVariableValue as T, getVariableValue as x, getSizeConfig as D } from "../../../../utils/page-helper-util.js";
4
+ import { getModelFields as C, getDefaultValue as y } from "../../../../utils/page-init-util.js";
5
5
  import P from "../../../../utils/eventBus.js";
6
6
  import { popupToPage as R, getOperationButtons as I } from "../../../../utils/table-utils.js";
7
7
  import { getListCode as O, getBaseUrl as _ } from "../../../../utils/common-util.js";
8
8
  import { getAdditionalParamMap as k } from "../../../../utils/events/standard-event.js";
9
9
  import { getRowStyleUtil as M, getCellStyleUtil as A, getHeaderCellStyleUtil as F } from "../../chart/table/chart-table-util.js";
10
10
  const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: $2, emit: j }) {
11
+ var _a;
11
12
  const L = e2, B = L.pageContext;
12
13
  let N = L.configure;
13
14
  const E = L.configure.runtime ? L.configure.runtime : {};
14
15
  B.isTest ? E.value = L.configure.runtime ? L.configure.runtime : {} : B.tableRuntimes && B.tableRuntimes[N.uuid] && (N = JSON.parse(B.tableRuntimes[N.uuid].configure), E.value = N.runtime ? N.runtime : {});
15
16
  const G = O(B.code, B.version, N.uuid), H = B.entity.data, V = N.code ? N.code : G, U = k(B), z = E && E.events ? E.events : [], q = t([]), J = B.superGridItems, K = J ? J[N.uuid] : null, Q = E.style, W = E.class, X = L.pageContext.entity ? L.pageContext.entity : {};
16
- let Y = D(L.configure, V), Z = _(B.backendUrl, B.isTest);
17
+ let Y = C(L.configure, V), Z = _(B.backendUrl, B.isTest);
17
18
  Z || (Z = window.$vueApp.config.globalProperties.baseURL);
18
19
  const ee = t(false);
19
20
  let te = t(0);
20
- const ne = N.props.dataOrigin.principalLinkage, oe = t({ isSql: true, subTableData: null, rowKeyProp: ne, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: B.code, pageVersion: B.version, pageContext: B, configureObj: N, showPageArea: false, showRowForm: false, showOverflowTooltip: !(!N.props || !N.props.otherSettings || void 0 !== N.props.otherSettings.isBreakLine && false !== N.props.otherSettings.isBreakLine), backendUrl: Z, cellStyleRender: function(e3) {
21
+ const ne = (_a = N.props) == null ? void 0 : _a.dataOrigin.principalLinkage, oe = t({ title: (N == null ? void 0 : N.title) || null, isSql: true, subTableData: null, rowKeyProp: ne, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: B.code, pageVersion: B.version, pageContext: B, configureObj: N, showPageArea: false, showRowForm: false, showOverflowTooltip: !(!N.props || !N.props.otherSettings || void 0 !== N.props.otherSettings.isBreakLine && false !== N.props.otherSettings.isBreakLine), backendUrl: Z, cellStyleRender: function(e3) {
21
22
  return A(e3, e3.cellStyle, L);
22
23
  }, rowStyleRender: function(e3) {
23
24
  return M(e3, null, L);
@@ -36,7 +37,7 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
36
37
  e4 ? e4.push("operation") : e4 = ["operation"], oe.value.hiddenColumns = e4;
37
38
  }
38
39
  oe.value.showOperationButton = !(!N.props || !N.props.base) && N.props.base.showOperation, oe.value.isPdfEditor = false, oe.value.tableRecordMaxNum = N.props && N.props.otherSettings ? N.props.otherSettings.tableRecordMaxNum : null;
39
- let t2 = C(B, N);
40
+ let t2 = D(B, N);
40
41
  t2 && t2.fixHeight && (oe.value.formSetHeight = t2.fixHeight), t2 && t2.maxHeight && (oe.value.formSetMaxHeight = t2.maxHeight), oe.value.validateEitConditions = Ge;
41
42
  }
42
43
  function re() {
@@ -83,11 +84,11 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
83
84
  const n2 = function() {
84
85
  let e5 = [], t3 = w(L.pageContext, N.props.base.showOperationCondition);
85
86
  if (t3 && Se(null, null, null, null, null, true, "canAdd")) {
86
- const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: Ce, isShow: we };
87
+ const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: we };
87
88
  e5.push(t4);
88
89
  }
89
90
  if (t3 && Te(null, null, null, null, null, true)) {
90
- const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: xe };
91
+ const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: Ce, isShow: xe };
91
92
  e5.push(t4);
92
93
  }
93
94
  return I(B, N, e5, me), e5;
@@ -177,10 +178,10 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
177
178
  let i2 = Te(0, 0, n2, 0, 0, a2);
178
179
  return true === i2 && (i2 = w(L.pageContext, N.props.base.showDeleteBtnCondition, n2)), i2;
179
180
  }
180
- function Ce(e3, t2, n2, o2, l2) {
181
+ function De(e3, t2, n2, o2, l2) {
181
182
  ae.value.createRow(G, {}, { getDefaultValueFunc: y }, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2 });
182
183
  }
183
- function De(e3, t2, n2, o2, l2) {
184
+ function Ce(e3, t2, n2, o2, l2) {
184
185
  ae.value.deleteRow(l2, G, false);
185
186
  }
186
187
  function ye(e3) {
@@ -279,20 +280,20 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
279
280
  }, getSuperGridTableRef: function() {
280
281
  return ae.value.getSuperGridTableRef();
281
282
  }, setCurrentRowIndex: function(e3) {
282
- var _a;
283
- (_a = ae.value) == null ? void 0 : _a.setCurrentRowIndex(e3);
283
+ var _a2;
284
+ (_a2 = ae.value) == null ? void 0 : _a2.setCurrentRowIndex(e3);
284
285
  }, setScrollTopByRowIndex: function(e3) {
285
- var _a;
286
- (_a = ae.value) == null ? void 0 : _a.setScrollTopByRowIndex(e3);
286
+ var _a2;
287
+ (_a2 = ae.value) == null ? void 0 : _a2.setScrollTopByRowIndex(e3);
287
288
  }, getTableData: function() {
288
- var _a;
289
- return (_a = ae.value) == null ? void 0 : _a.getTableData();
289
+ var _a2;
290
+ return (_a2 = ae.value) == null ? void 0 : _a2.getTableData();
290
291
  }, addRequiredClass: function(e3, t2, n2) {
291
- var _a;
292
- (_a = ae.value) == null ? void 0 : _a.addRequiredClass(e3, G, t2, n2);
292
+ var _a2;
293
+ (_a2 = ae.value) == null ? void 0 : _a2.addRequiredClass(e3, G, t2, n2);
293
294
  } }), (e3, t2) => {
294
295
  const n2 = l("super-grid");
295
- return i(), a("div", null, [ee.value ? (i(), u(n2, { key: 0, ref_key: "gridRef", ref: ae, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(G), settings: s(K), onSelect: _e, onSelectAll: ke, onSelectionChange: Me, onCellClick: Ae, onCellDblclick: Fe, onRowClick: $e, onRowDblclick: je, onHeaderClick: Le, onFnProhibitToEdit: Ie, onChangeGridData: ye, onReloadGrid: fe, onRefresMainTableFields: Oe, onSetSelectOptions: Re, onChangeRowsPerPage: Pe, onNewOpenGridDialog: s(R), onChangeFormData: Be }, null, 8, ["url", "options", "code", "settings", "onNewOpenGridDialog"])) : r("", true)]);
296
+ return i(), a("div", null, [ee.value ? (i(), u(n2, { key: 0, ref_key: "gridRef", ref: ae, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(G), settings: s(K), isDialog: s(B).isDialog, onSelect: _e, onSelectAll: ke, onSelectionChange: Me, onCellClick: Ae, onCellDblclick: Fe, onRowClick: $e, onRowDblclick: je, onHeaderClick: Le, onFnProhibitToEdit: Ie, onChangeGridData: ye, onReloadGrid: fe, onRefresMainTableFields: Oe, onSetSelectOptions: Re, onChangeRowsPerPage: Pe, onNewOpenGridDialog: s(R), onChangeFormData: Be }, null, 8, ["url", "options", "code", "settings", "isDialog", "onNewOpenGridDialog"])) : r("", true)]);
296
297
  };
297
298
  } });
298
299
  export {
@@ -75,7 +75,7 @@ const f = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }
75
75
  }, handleSearch: function(e3, t2) {
76
76
  var _a;
77
77
  (_a = b.value) == null ? void 0 : _a.handleSearch(e3, t2);
78
- } }), (t2, n2) => (a(), u("div", null, [r(g) && "form" === r(g) && C.value ? (a(), o(i, { key: 0, ref_key: "gridRef", ref: b, pageContext: e2.pageContext, configure: d.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"])) : r(g) && "form" === r(g) ? l("", true) : (a(), o(c, { key: 1, ref_key: "gridRef", ref: b, pageContext: e2.pageContext, configure: d.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"]))]));
78
+ } }), (e3, t2) => (a(), u("div", null, [r(g) && "form" === r(g) && C.value ? (a(), o(i, { key: 0, ref_key: "gridRef", ref: b, pageContext: e3.pageContext, configure: d.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"])) : r(g) && "form" === r(g) ? l("", true) : (a(), o(c, { key: 1, ref_key: "gridRef", ref: b, pageContext: e3.pageContext, configure: d.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"]))]));
79
79
  } });
80
80
  export {
81
81
  f as default