super-page-runtime 2.3.4 → 2.3.5-rc1

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 (56) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +60 -52
  2. package/dist/es/components/runtime/utils/barcode-util.js +5 -5
  3. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +45 -46
  4. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +14 -16
  5. package/dist/es/components/runtime/utils/charts/chart-util.js +24 -26
  6. package/dist/es/components/runtime/utils/common-util.d.ts +1 -1
  7. package/dist/es/components/runtime/utils/common-util.js +62 -47
  8. package/dist/es/components/runtime/utils/events/event-util.js +116 -116
  9. package/dist/es/components/runtime/utils/events/print-label.js +0 -1
  10. package/dist/es/components/runtime/utils/events/standard-event.js +465 -475
  11. package/dist/es/components/runtime/utils/events/validator-util.js +23 -23
  12. package/dist/es/components/runtime/utils/form/scan-util.js +3 -4
  13. package/dist/es/components/runtime/utils/page-helper-util.js +275 -275
  14. package/dist/es/components/runtime/utils/page-init-util.d.ts +1 -1
  15. package/dist/es/components/runtime/utils/page-init-util.js +51 -43
  16. package/dist/es/components/runtime/utils/page-store.js +10 -10
  17. package/dist/es/components/runtime/utils/table-utils.d.ts +14 -0
  18. package/dist/es/components/runtime/utils/table-utils.js +62 -37
  19. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +12 -16
  20. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +3 -3
  21. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -6
  22. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +20 -20
  23. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +14 -15
  24. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +11 -12
  25. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +17 -18
  26. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +18 -19
  27. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +8 -1
  28. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +3 -3
  29. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +6 -6
  30. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +20 -20
  31. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +8 -4
  32. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +23 -23
  33. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +1 -1
  34. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +63 -63
  35. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +35 -37
  36. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +116 -119
  37. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +24 -15
  38. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +1 -1
  39. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +69 -70
  40. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -1
  41. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +35 -34
  42. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +17 -17
  43. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +30 -27
  44. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -6
  45. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -10
  46. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -1
  47. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -8
  48. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +2 -2
  49. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +63 -61
  50. package/dist/es/components/runtime/views/home-chart.vue.js +4 -4
  51. package/dist/es/components/runtime/views/super-page-dialog.vue.js +6 -6
  52. package/dist/es/components/runtime/views/super-page.vue.d.ts +2 -2
  53. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  54. package/dist/es/components/runtime/views/super-page.vue2.js +138 -140
  55. package/dist/es/style.css +82 -82
  56. package/package.json +2 -2
@@ -1,96 +1,96 @@
1
- import { defineComponent as e, ref as n, watch as t, onMounted as o, nextTick as a, resolveComponent as i, createBlock as c, openBlock as l, unref as u, normalizeClass as r, normalizeStyle as s, withCtx as p, createElementBlock as f, createCommentVNode as d, Fragment as g, renderList as m, createElementVNode as b, toDisplayString as y, withModifiers as v, createTextVNode as h } from "vue";
1
+ import { defineComponent as e, ref as t, watch as n, onMounted as o, nextTick as a, resolveComponent as i, createBlock as c, openBlock as u, unref as l, normalizeClass as r, normalizeStyle as s, withCtx as p, createElementBlock as f, createCommentVNode as g, Fragment as d, renderList as m, createElementVNode as b, toDisplayString as y, withModifiers as v, createTextVNode as h } from "vue";
2
2
  import { ElTabs as x, ElTabPane as C } from "element-plus";
3
3
  import T from "../../object-render.vue.js";
4
4
  import { SuperIcon as E } from "agilebuilder-ui";
5
- import { handleAfterInitEvent as k, handleEvent as w } from "../../../../utils/events/event-util.js";
6
- import { $t as N } from "../../../../utils/i18n-util.js";
7
- import { isPromise as V } from "../../../../utils/page-helper-util.js";
8
- const _ = e({ __name: "tabs-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: _2 }) {
9
- const A = e2, P = n(""), j = n([]);
10
- A.configure.items.forEach((e3) => {
5
+ import { handleAfterInitEvent as k, handleEvent as N } from "../../../../utils/events/event-util.js";
6
+ import { $t as V } from "../../../../utils/i18n-util.js";
7
+ import { isPromise as _ } from "../../../../utils/page-helper-util.js";
8
+ const A = e({ __name: "tabs-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: A2 }) {
9
+ const P = e2, j = t(""), w = t([]);
10
+ P.configure.items.forEach((e3) => {
11
11
  e3.code || (e3.code = e3.index);
12
- }), P.value = A.configure.props.defaultOpen ? A.configure.props.defaultOpen : 1;
13
- const O = n(null), R = A.configure.runtime ? A.configure.runtime : {}, B = R.style, z = R.class, I = R.headerStyle;
14
- function S(e3, n2) {
15
- return w(e3, A.pageContext, A.configure, "before-leave", { activeName: e3, oldActiveName: n2 }) ?? true;
12
+ }), j.value = P.configure.props.defaultOpen ? P.configure.props.defaultOpen : 1;
13
+ const O = t(null), R = P.configure.runtime ? P.configure.runtime : {}, B = R.style, z = R.class, I = R.headerStyle;
14
+ function S(e3, t2) {
15
+ return N(e3, P.pageContext, P.configure, "before-leave", { activeName: e3, oldActiveName: t2 }) ?? true;
16
16
  }
17
- function D(e3, n2) {
18
- const t2 = { pane: e3, ev: n2 }, o2 = e3.paneName;
19
- return A.pageContext.activeTab = o2, A.pageContext.activeLabel = t2.label, w(o2, A.pageContext, A.configure, "tab-click", t2);
17
+ function D(e3, t2) {
18
+ const n2 = { pane: e3, ev: t2 }, o2 = e3.paneName;
19
+ return P.pageContext.activeTab = o2, P.pageContext.activeLabel = n2.label, N(o2, P.pageContext, P.configure, "tab-click", n2);
20
20
  }
21
21
  function F(e3) {
22
- const n2 = { paneName: e3 };
23
- return A.pageContext.activeTab = e3, w(e3, A.pageContext, A.configure, "tab-change", n2);
22
+ const t2 = { paneName: e3 };
23
+ return P.pageContext.activeTab = e3, N(e3, P.pageContext, P.configure, "tab-change", t2);
24
24
  }
25
25
  function L(e3) {
26
- const n2 = { paneName: e3 }, t2 = w(e3, A.pageContext, A.configure, "tab-remove", n2);
27
- V(t2) ? t2.then((n3) => {
28
- false !== n3 && U(e3);
29
- }) : false !== t2 && U(e3);
26
+ const t2 = { paneName: e3 }, n2 = N(e3, P.pageContext, P.configure, "tab-remove", t2);
27
+ _(n2) ? n2.then((t3) => {
28
+ false !== t3 && U(e3);
29
+ }) : false !== n2 && U(e3);
30
30
  }
31
31
  function U(e3) {
32
- P.value === e3 && A.configure.items.forEach((n2, t2) => {
33
- if (n2.code === e3) {
34
- const e4 = A.configure.items[t2 + 1] || A.configure.items[t2 - 1];
35
- e4 && void 0 !== e4.code && (P.value = e4.code);
32
+ j.value === e3 && P.configure.items.forEach((t2, n2) => {
33
+ if (t2.code === e3) {
34
+ const e4 = P.configure.items[n2 + 1] || P.configure.items[n2 - 1];
35
+ e4 && void 0 !== e4.code && (j.value = e4.code);
36
36
  }
37
- }), j.value.includes(e3) || j.value.push(e3);
37
+ }), w.value.includes(e3) || w.value.push(e3);
38
38
  }
39
39
  function q() {
40
- return w(null, A.pageContext, A.configure, "tab-add");
40
+ return N(null, P.pageContext, P.configure, "tab-add");
41
41
  }
42
- function G(e3, n2) {
43
- const t2 = { paneName: e3, action: n2 };
44
- return w(e3, A.pageContext, A.configure, "edit", t2);
42
+ function G(e3, t2) {
43
+ const n2 = { paneName: e3, action: t2 };
44
+ return N(e3, P.pageContext, P.configure, "edit", n2);
45
45
  }
46
46
  function H() {
47
- const e3 = w(A.configure.items, A.pageContext, A.configure, "tab-reset");
48
- V(e3) ? e3.then((e4) => {
49
- j.value = [];
50
- }) : false !== e3 && (j.value = []);
47
+ const e3 = N(P.configure.items, P.pageContext, P.configure, "tab-reset");
48
+ _(e3) ? e3.then((e4) => {
49
+ w.value = [];
50
+ }) : false !== e3 && (w.value = []);
51
51
  }
52
- return t(j, (e3) => {
52
+ return n(w, (e3) => {
53
53
  e3 && e3.length > 0 ? e3.forEach((e4) => {
54
- const n2 = document.getElementById("tab-" + e4);
55
- n2 && (n2.style.display = "none");
56
- }) : A.configure.items.forEach((e4) => {
57
- const n2 = document.getElementById("tab-" + e4.code);
58
- n2 && (n2.style.display = "");
54
+ const t2 = document.getElementById("tab-" + e4);
55
+ t2 && (t2.style.display = "none");
56
+ }) : P.configure.items.forEach((e4) => {
57
+ const t2 = document.getElementById("tab-" + e4.code);
58
+ t2 && (t2.style.display = "");
59
59
  });
60
60
  }, { deep: true }), o(() => {
61
61
  a(() => {
62
62
  let e3 = [];
63
- A.configure.items.forEach((n2) => {
64
- n2.code && e3.push(document.getElementById("tab-" + n2.code));
65
- }), k(null, A.pageContext, A.configure, { componentRef: O.value, tabsDom: e3, entity: A.pageContext.entity.data, pageData: A.pageContext.entity.page });
63
+ P.configure.items.forEach((t2) => {
64
+ t2.code && e3.push(document.getElementById("tab-" + t2.code));
65
+ }), k(null, P.pageContext, P.configure, { componentRef: O.value, tabsDom: e3, entity: P.pageContext.entity.data, pageData: P.pageContext.entity.page });
66
66
  });
67
- }), _2({ thisRef: O, activeName: P, hiddenPanes: j, resetTab: H, hiddenTabPanes: function(e3) {
67
+ }), A2({ thisRef: O, activeName: j, hiddenPanes: w, resetTab: H, hiddenTabPanes: function(e3) {
68
68
  if (Array.isArray(e3)) {
69
- const n2 = [];
69
+ const t2 = [];
70
70
  e3.forEach((e4) => {
71
- j.value.includes(e4) || n2.push(e4);
72
- }), n2.length > 0 && j.value.push(...n2);
73
- } else console.warn("hiddenTabs expects an array of pane names.");
71
+ w.value.includes(e4) || t2.push(e4);
72
+ }), t2.length > 0 && w.value.push(...t2);
73
+ }
74
74
  }, showTabPanes: function(e3) {
75
- Array.isArray(e3) ? e3.forEach((e4) => {
76
- const n2 = j.value.indexOf(e4);
77
- n2 > -1 && j.value.splice(n2, 1);
78
- }) : console.warn("showTabs expects an array of pane names.");
75
+ Array.isArray(e3) && e3.forEach((e4) => {
76
+ const t2 = w.value.indexOf(e4);
77
+ t2 > -1 && w.value.splice(t2, 1);
78
+ });
79
79
  }, showTabPanesOnly: function(e3) {
80
- const n2 = [];
81
- A.configure.items.forEach((t2) => {
82
- e3.includes(t2.code) || n2.push(t2.code);
83
- }), j.value = [...new Set(n2)];
80
+ const t2 = [];
81
+ P.configure.items.forEach((n2) => {
82
+ e3.includes(n2.code) || t2.push(n2.code);
83
+ }), w.value = [...new Set(t2)];
84
84
  }, hiddenTabPanesOnly: function(e3) {
85
- const n2 = [];
86
- A.configure.items.forEach((t2) => {
87
- e3.includes(t2.code) && n2.push(t2.code);
88
- }), j.value = [...new Set(n2)];
89
- } }), (e3, n2) => {
90
- const t2 = i("el-button");
91
- return l(), c(u(x), { ref_key: "thisRef", ref: O, modelValue: P.value, "onUpdate:modelValue": n2[0] || (n2[0] = (e4) => P.value = e4), type: e3.configure.props.cardType, "tab-position": e3.configure.props.tabPosition, style: s(u(B)), class: r([u(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(() => [(l(true), f(g, null, m(A.configure.items, (n3, t3) => (l(), c(u(C), { key: t3, label: n3.label, name: n3.code, lazy: !!e3.configure.props.lazy }, { label: p(() => [n3.iconType && n3.iconValue ? (l(), c(u(E), { key: 0, iconType: n3.iconType, iconValue: n3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : d("", true), b("span", { style: s(u(I)) }, y(u(N)(n3.label)), 5)]), default: p(() => [(e3.configure.props.isFullyRendered ?? 1) || n3.code === P.value ? (l(true), f(g, { key: 0 }, m(n3.items, (n4) => (l(), c(T, { key: n4.uuid, pageContext: e3.pageContext, configure: n4 }, null, 8, ["pageContext", "configure"]))), 128)) : d("", true)]), _: 2 }, 1032, ["label", "name", "lazy"]))), 128)), e3.configure.props.resetable ? (l(), c(u(C), { key: 0, disabled: "", name: "-1" }, { label: p(() => [e3.configure.props.resetable ? (l(), c(t2, { key: 0, type: "text", circle: "", onClick: v(H, ["stop"]) }, { default: p(() => [h(y(e3.configure.props.resetButtonName || "重置"), 1)]), _: 1 })) : d("", true)]), _: 1 })) : d("", true)]), _: 1 }, 8, ["modelValue", "type", "tab-position", "style", "class", "closable"]);
85
+ const t2 = [];
86
+ P.configure.items.forEach((n2) => {
87
+ e3.includes(n2.code) && t2.push(n2.code);
88
+ }), w.value = [...new Set(t2)];
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 {
95
- _ as default
95
+ A as default
96
96
  };
@@ -1,12 +1,12 @@
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";
3
- import { getBaseUrl as E, getListCode as T, getRealRestApiPath as R, isWorkflowPage as O, isVariableInvalidValue as k } from "../../../../utils/common-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 E } from "../../../../utils/events/event-util.js";
3
+ import { getBaseUrl as D, getListCode as T, getRealRestApiPath as R, isWorkflowPage as O, 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";
6
- import { getOperationButtons as P, popupToPage as B } from "../../../../utils/table-utils.js";
6
+ import { getOperationButtons as B, popupToPage as P } from "../../../../utils/table-utils.js";
7
7
  import F from "../../../../utils/eventBus.js";
8
8
  import { getDefaultValue as H } from "../../../../utils/page-init-util.js";
9
- import { getSizeConfig as M, caculateShowCondition as U, decomposeVariable as L } from "../../../../utils/page-helper-util.js";
9
+ import { getSizeConfig as U, caculateShowCondition as L, decomposeVariable as M } from "../../../../utils/page-helper-util.js";
10
10
  import { getComponentRefByCode as $ } from "../../../../utils/global-refs.js";
11
11
  import { getRowStyleUtil as _, getCellStyleUtil as A, getHeaderCellStyleUtil as G } from "../../chart/table/chart-table-util.js";
12
12
  const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: W2, emit: q }) {
@@ -15,21 +15,21 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
15
15
  const K = t({});
16
16
  Y.isTest ? K.value = Q.configure.runtime ? Q.configure.runtime : {} : Y.tableRuntimes && Y.tableRuntimes[J.uuid] && (J = JSON.parse(Y.tableRuntimes[J.uuid].configure), K.value = J.runtime ? J.runtime : {});
17
17
  const X = K.value.style, Z = K.value.class, ee = Y.systemCode, te = Y.backendUrl, ne = J.props && J.props.dataOrigin && J.props.dataOrigin.tableName;
18
- let oe = E(Y.backendUrl, Y.isTest);
18
+ let oe = D(Y.backendUrl, Y.isTest);
19
19
  oe || (oe = window.$vueApp.config.globalProperties.baseURL);
20
20
  const ie = t({}), ae = [], le = t({});
21
21
  le.value = function() {
22
22
  const e3 = Y.systemCode, t2 = Y.code;
23
23
  let n2 = J.props && J.props.dataOrigin && "[]" !== J.props.dataOrigin.sqlFilterCondition ? J.props.dataOrigin.sqlFilterCondition : null;
24
24
  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: O(Y), tableClass: Z, tableStyle: X, pageContext: Y, configureObj: J, backendUrl: oe, cellStyleRender: qe, rowStyleRender: We, titleStyleRender: Qe, validateEitConditions: Xe };
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: Se, esc: De }, 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: O(Y), tableClass: Z, tableStyle: X, pageContext: Y, configureObj: J, backendUrl: oe, cellStyleRender: qe, rowStyleRender: We, titleStyleRender: Qe, validateEitConditions: Xe };
26
26
  return function(e4) {
27
27
  var _a;
28
28
  ((_a = J.props.highOrder) == null ? void 0 : _a.mergeFields) && J.props.highOrder.mergeFields.length > 0 && (e4.mergeFields = J.props.highOrder.mergeFields.join(","));
29
29
  }(o2), function(e4) {
30
30
  const t3 = [];
31
31
  e4.operations || (e4.operations = {});
32
- P(Y, J, t3, ye), e4.operations.operation = t3;
32
+ B(Y, J, t3, ye), e4.operations.operation = t3;
33
33
  }(o2), function(e4) {
34
34
  J.props && J.props.dataOrigin && J.props.dataOrigin.sortField && (e4.initSortInfo = [], J.props.dataOrigin.sortField.forEach((t3) => {
35
35
  const n3 = { order: "desc" === t3.type ? "desc" : "asc" };
@@ -58,18 +58,16 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
58
58
  let e3 = oe + "/dsc/commons/list";
59
59
  e3 && (e3 = R(e3, ee, te, Y.isTest));
60
60
  return e3;
61
- }(), 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;
62
- console.log("superGridSetting1111===", me, ve);
63
- const he = t(false), be = q;
64
- function Se() {
61
+ }(), 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 we() {
65
63
  J.props.linkages && J.props.linkages.length > 0 && (J.props.linkages.forEach((e3) => {
66
- const t2 = L(e3.fieldName);
64
+ const t2 = M(e3.fieldName);
67
65
  t2 && t2.length > 1 && ae.push(t2[1]);
68
66
  }), ae.length > 0 && function() {
69
67
  let e3 = [];
70
68
  Q.pageContext.toolsInputComponents && Q.pageContext.toolsInputComponents.length > 0 && Q.pageContext.toolsInputComponents.forEach((t2) => {
71
69
  if (J.props.linkages.some((e4) => e4.fieldName === t2.prop) && t2.defaultValue) {
72
- const n2 = L(t2.prop);
70
+ const n2 = M(t2.prop);
73
71
  n2 && n2.length > 1 && e3.push(n2[1]);
74
72
  }
75
73
  });
@@ -85,13 +83,13 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
85
83
  }
86
84
  }());
87
85
  }
88
- function we({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
86
+ function Se({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
89
87
  Ce(null, null, n2, t2, e3);
90
88
  }
91
89
  function Ce(e3, t2, n2, o2, i2) {
92
90
  const a2 = ie.value.lineEditSave, l2 = J;
93
91
  a2.props.base.tableUuid = l2.uuid, le.value.lineEditOptions.beforeSave = xe, Y.editData = n2, p({ pageContext: Y, configureObj: a2 }).then((l3) => {
94
- true === l3.canExecute && (le.value.lineEditOptions.saveRow = De, ue.value.saveRow(i2, ce).then(() => {
92
+ true === l3.canExecute && (le.value.lineEditOptions.saveRow = Ee, ue.value.saveRow(i2, ce).then(() => {
95
93
  d(Y, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
96
94
  }));
97
95
  }).finally(() => {
@@ -106,7 +104,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
106
104
  if (ie.value[n2] = e3, "lineEditSave" === n2 ? t2 = Ce : "restoreEdit" === n2 ? t2 = Te : "lineEditUpdate" === n2 ? t2 = Re : "lineEditDelete" === n2 && (t2 = ke), !t2) {
107
105
  t2 = x(Y, e3.events, "click");
108
106
  }
109
- } else ie.value[e3.uuid] = e3, t2 = Pe;
107
+ } else ie.value[e3.uuid] = e3, t2 = Be;
110
108
  return { onClick: t2, eventName: n2 };
111
109
  }
112
110
  function xe({ row: e3, columns: t2, additionalParamMap: n2 }) {
@@ -114,7 +112,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
114
112
  o2.props.base.tableUuid = i2.uuid;
115
113
  return f(Y, o2, { row: e3, columns: t2 });
116
114
  }
117
- function De({ row: e3, columns: t2, dataTypeMap: n2, dynamicColumnInfo: o2, additionalParamMap: i2, mainDefaultValueColumns: a2 }) {
115
+ function Ee({ row: e3, columns: t2, dataTypeMap: n2, dynamicColumnInfo: o2, additionalParamMap: i2, mainDefaultValueColumns: a2 }) {
118
116
  const l2 = ie.value.lineEditSave, r2 = J;
119
117
  return l2.props.base.tableUuid = r2.uuid, new Promise((t3, n3) => {
120
118
  const i3 = { tableName: r2.props.dataOrigin.tableName };
@@ -125,7 +123,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
125
123
  });
126
124
  });
127
125
  }
128
- function Ee({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
126
+ function De({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
129
127
  Te(null, null, n2, t2, e3);
130
128
  }
131
129
  function Te(e3, t2, n2, o2, i2) {
@@ -179,7 +177,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
179
177
  }
180
178
  }
181
179
  function Ve(e3) {
182
- if (!Y.dataTypeMaps) return void console.log("!pageContext['dataTypeMaps'] || !pageContext['dataTypeMaps'][tableName]");
180
+ if (!Y.dataTypeMaps) return;
183
181
  const t2 = Y.dataTypeMaps;
184
182
  let n2 = [];
185
183
  if (e3) for (var o2 in e3) {
@@ -198,7 +196,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
198
196
  e4.propName = o2, e4.propDbName = o2, e4.dataType = t2[o2] ? t2[o2] : "TEXT", e4.operator = "EQ", e4.propValue = a2, Ze(e4, o2), e4.rightBracket = ")", e4.joinSign = "and", n2.push(e4);
199
197
  }
200
198
  }
201
- console.log("toolbarRefresh"), ue.value.toolbarRefresh(null, null, n2);
199
+ ue.value.toolbarRefresh(null, null, n2);
202
200
  }
203
201
  function je(e3) {
204
202
  const t2 = Ne();
@@ -209,8 +207,8 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
209
207
  }
210
208
  function Ne() {
211
209
  if (!ue.value) return;
212
- console.log("objectRender---configure.name=", Q.configure.name, "props.configure=", Q.configure, "runtimeStyle.value=", X);
213
- const e3 = M(Q.pageContext, Q.configure);
210
+ Q.configure.name, Q.configure;
211
+ const e3 = U(Q.pageContext, Q.configure);
214
212
  if (e3) {
215
213
  if (e3.isCalcHeight) {
216
214
  let e4 = ue.value.$el;
@@ -221,11 +219,11 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
221
219
  if (e3.fixHeight && ue.value && (ue.value.tableHeight = e3.fixHeight), e3.maxHeight) return e3.maxHeight;
222
220
  }
223
221
  }
224
- function Pe(e3, t2, n2, o2, i2, a2) {
222
+ function Be(e3, t2, n2, o2, i2, a2) {
225
223
  const l2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2, button: a2, id: n2.ID ? n2.ID : n2.id }, r2 = ie.value[a2.sourceButton.uuid], u2 = J;
226
- r2.props.base.tableUuid = u2.uuid, D(null, Y, r2, "click", l2);
224
+ r2.props.base.tableUuid = u2.uuid, E(null, Y, r2, "click", l2);
227
225
  }
228
- function Be(e3) {
226
+ function Pe(e3) {
229
227
  "close_open_win" === e3.data && ue.value && ue.value.refresh();
230
228
  }
231
229
  function Fe(e3, t2) {
@@ -236,20 +234,20 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
236
234
  de.value = e3;
237
235
  m(Y, J, { selection: e3 });
238
236
  }
239
- function Me(e3) {
237
+ function Ue(e3) {
240
238
  v(Y, J, { newSelection: e3 });
241
239
  }
242
- function Ue(e3, t2, n2, o2) {
240
+ function Le(e3, t2, n2, o2) {
243
241
  h(Y, J, { row: e3, column: t2, cell: n2, event: o2 });
244
242
  }
245
- function Le(e3, t2, n2, o2) {
243
+ function Me(e3, t2, n2, o2) {
246
244
  b(Y, J, { row: e3, column: t2, cell: n2, event: o2 });
247
245
  }
248
246
  function $e(e3, t2, n2) {
249
- S(Y, J, { row: e3, column: t2, event: n2 });
247
+ w(Y, J, { row: e3, column: t2, event: n2 });
250
248
  }
251
249
  function _e(e3, t2, n2) {
252
- w(Y, J, { row: e3, column: t2, event: n2 });
250
+ S(Y, J, { row: e3, column: t2, event: n2 });
253
251
  }
254
252
  function Ae(e3, t2) {
255
253
  C(Y, J, { column: e3, event: t2 });
@@ -285,32 +283,32 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
285
283
  }
286
284
  n(() => {
287
285
  const e3 = Ke();
288
- ue.value && e3 && e3.distanceToBottom && (ue.value.tableHeight = e3.distanceToBottom - 110), Q.pageContext.pageRuntimeStyle && console.log("pageContext.pageHeight:", Q.pageContext.pageRuntimeStyle.height), window.addEventListener("message", Be), 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 && Q.pageContext.pageRuntimeStyle.height, window.addEventListener("message", Pe), F.$on(pe + "-close-component-page-dialog", function({ jumpInfo: e4, popEntity: t2, popPageCode: n2 }) {
289
287
  ue.value.closePageDialog({ entity: t2, pageCode: n2, jumpInfo: e4 });
290
288
  }), F.$on(pe + "_close-dialog-get-entity", () => {
291
289
  F.$emit(pe + "_close-super-dialog");
292
290
  }), F.$on(ce + "-pickFileDone", (e4) => {
293
- console.log("superPage5555---listCode---pickFileDone--listCode=", ce, "data=", e4), ue.value.pickFileDone(e4);
291
+ ue.value.pickFileDone(e4);
294
292
  }), F.$on(ce + "-scanDone", (e4) => {
295
- console.log("superPage5555---listCode---scanDone--listCode=", ce, "data=", e4), ue.value.scanDone(e4);
293
+ ue.value.scanDone(e4);
296
294
  }), le.value.formSetMaxHeight = Ne(), le.value && le.value.configureObj.props.base && le.value.configureObj.props.base.isSafeDelete && be("setSafeDeleteTableCode", le.value.extraParam.tableName);
297
295
  }), o(() => Q.pageContext.searchFormData, (e3) => {
298
296
  ge.value.data = e3;
299
297
  }), o(() => Q.pageContext.entity.data, (e3) => {
300
298
  Ve(Q.pageContext.entity.data);
301
299
  }), i(() => {
302
- window.removeEventListener("message", Be), F.$off(pe + "-close-component-page-dialog"), F.$off(pe + "_close-dialog-get-entity"), F.$off(ce + "-pickFileDone"), F.$off(ce + "-scanDone");
300
+ window.removeEventListener("message", Pe), F.$off(pe + "-close-component-page-dialog"), F.$off(pe + "_close-dialog-get-entity"), F.$off(ce + "-pickFileDone"), F.$off(ce + "-scanDone");
303
301
  });
304
302
  const Ke = () => {
305
303
  if (!re.value) return null;
306
304
  let e3 = re.value.closest(".app-container");
307
- if (!e3) return console.warn("未找到.app-container元素"), null;
305
+ if (!e3) return null;
308
306
  const t2 = re.value.getBoundingClientRect(), n2 = e3.getBoundingClientRect(), o2 = window.scrollY;
309
307
  return { distanceToTop: t2.top + o2 - n2.top, distanceToBottom: n2.bottom - t2.top };
310
308
  };
311
309
  function Xe({ row: e3, editConditions: t2 }) {
312
310
  let n2 = true;
313
- return t2 && t2.length > 0 && (n2 = U(Q.pageContext, t2, e3)), n2;
311
+ return t2 && t2.length > 0 && (n2 = L(Q.pageContext, t2, e3)), n2;
314
312
  }
315
313
  function Ze(e3, t2) {
316
314
  const n2 = $(Q.pageContext, t2);
@@ -366,7 +364,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
366
364
  (_a = ue.value) == null ? void 0 : _a.setScrollTopByRowIndex(e3);
367
365
  } }), (e3, t2) => {
368
366
  const n2 = a("super-grid");
369
- 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: Me, onCellClick: Ue, onCellDblclick: Le, onRowClick: $e, onRowDblclick: _e, onHeaderClick: Ae, onRefresh: Ge, onNewOpenGridDialog: u(B), onCanShowMobileSearch: ze, onGridOnmounted: Se }, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "onNewOpenGridDialog"])], 8, z);
367
+ 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: we }, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "onNewOpenGridDialog"])], 8, z);
370
368
  };
371
369
  } });
372
370
  export {