super-page-runtime 2.2.0 → 2.2.3

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 (22) hide show
  1. package/dist/es/components/runtime/utils/events/standard-event.d.ts +2 -2
  2. package/dist/es/components/runtime/utils/events/standard-event.js +49 -41
  3. package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +2 -0
  4. package/dist/es/components/runtime/utils/page-helper-util.js +8 -12
  5. package/dist/es/components/runtime/utils/page-init-util.d.ts +6 -1
  6. package/dist/es/components/runtime/utils/page-init-util.js +38 -35
  7. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
  8. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
  9. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
  10. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +3 -3
  11. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
  12. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +1 -0
  13. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +146 -112
  14. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +19 -50
  15. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +129 -105
  16. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +16 -17
  17. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +86 -82
  18. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +25 -28
  19. package/dist/es/components/runtime/views/super-page-dialog.vue.js +14 -12
  20. package/dist/es/components/runtime/views/super-page.vue.d.ts +9 -0
  21. package/dist/es/components/runtime/views/super-page.vue.js +163 -161
  22. package/package.json +2 -2
@@ -1,68 +1,73 @@
1
- import { defineComponent as e, ref as o, onMounted as n, watch as t, resolveComponent as r, openBlock as a, createElementBlock as i, normalizeStyle as u, unref as l, normalizeClass as p, withDirectives as s, createVNode as c, vShow as g, withCtx as f, Fragment as d, renderList as m, createBlock as h, createCommentVNode as v, h as y } from "vue";
1
+ import { defineComponent as e, ref as o, onMounted as n, watch as r, resolveComponent as t, openBlock as a, createElementBlock as i, normalizeStyle as u, unref as p, normalizeClass as l, withDirectives as s, createVNode as c, vShow as g, withCtx as f, Fragment as m, renderList as d, createBlock as h, createCommentVNode as v, h as y } from "vue";
2
2
  import C from "../common/common-chart-header.vue.js";
3
- import { getChartDatasFromPage as b, getValueFromVariable as x, isPromise as O, setValueForVariableName as S, updateChartDatasourcesByComponent as w, caculateShowCondition as j } from "../../../../utils/page-helper-util.js";
4
- import { getCustomFunc as F } from "../../../../utils/events/event-util.js";
5
- import k from "./group-column.vue.js";
6
- import E from "./normal-column.vue.js";
7
- import I from "./table-pageination.vue.js";
8
- import { getSummaryTitleColumn as R, getSummaryDataColumn as $, rowDataToColumn as T, getColumnToRowTableConfig as _, colDataToRow as z, computeFormula as D, summaryStatistics as H, replacePlaceholders as P, getHeaderCellStyleUtil as J, getRowStyleUtil as K, getCellStyleUtil as N, getIndexColumn as U } from "./chart-table-util.js";
9
- const V = e({ __name: "table-runtime", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) } }, setup(e2, { expose: V2 }) {
3
+ import { getSizeConfig as b, getChartDatasFromPage as x, getValueFromVariable as O, isPromise as S, setValueForVariableName as w, updateChartDatasourcesByComponent as j, caculateShowCondition as F } from "../../../../utils/page-helper-util.js";
4
+ import { getCustomFunc as k } from "../../../../utils/events/event-util.js";
5
+ import E from "./group-column.vue.js";
6
+ import I from "./normal-column.vue.js";
7
+ import R from "./table-pageination.vue.js";
8
+ import { getSummaryTitleColumn as $, getSummaryDataColumn as H, rowDataToColumn as T, getColumnToRowTableConfig as _, colDataToRow as z, computeFormula as D, summaryStatistics as P, replacePlaceholders as K, getHeaderCellStyleUtil as N, getRowStyleUtil as A, getCellStyleUtil as J, getIndexColumn as U, formatColContent as V } from "./chart-table-util.js";
9
+ import { deepCopy as G } from "../../../../utils/common-util.js";
10
+ const L = e({ __name: "table-runtime", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) } }, setup(e2, { expose: L2 }) {
10
11
  var _a;
11
- const A = e2, G = A.configure.runtime ? A.configure.runtime : {}, L = G.style, q = G.class, B = G.dataConfig, M = G.headerInfo ? G.headerInfo : {}, Q = o(null), W = o(G.props.isEnableGroupHeader), X = o([]), Y = o([]), Z = o([]), ee = o({}), oe = o(false), ne = o({}), te = o({}), re = o({}), ae = [], ie = o({}), ue = o({}), le = o(null), pe = o(0);
12
- let se = [];
13
- function ce() {
14
- const e3 = A.configure.props.dataOrigin.variable.match(/\${(.*?)}/), o2 = e3 ? e3[1].split(".") : [];
15
- t(() => o2.reduce((e4, o3) => e4[o3], A.pageContext.entity), (e4) => {
16
- e4 ? fe(JSON.parse(JSON.stringify(e4)), null) : (X.value = [], A.configure.props.modelCustom ? je(null) : W.value ? Z.value = A.configure.props.groupHeaders : Y.value = A.configure.items);
12
+ const q = e2, B = q.configure.runtime ? q.configure.runtime : {}, M = B.style, Q = B.class, W = B.dataConfig, X = B.headerInfo ? B.headerInfo : {}, Y = o(null), Z = o(B.props.isEnableGroupHeader), ee = o([]), oe = o([]), ne = o([]), re = o({}), te = o(false), ae = o({}), ie = o({}), ue = o({}), pe = [], le = o({}), se = o({}), ce = o(null), ge = o(0);
13
+ let fe, me = [];
14
+ q.configure.props.modelCustom || (Z.value ? ne.value = q.configure.props.groupHeaders : oe.value = q.configure.items, (_a = q.configure.items) == null ? void 0 : _a.forEach((e3) => {
15
+ re.value[e3.uuid] = e3, Object.keys(e3.style).length > 0 && (le.value[e3.props.base.prop] = { cellStyle: e3.style, titleStyle: e3.titleStyle }), e3.formula && "" !== e3.formula.trim() && (se.value[e3.props.base.prop] = e3.formula);
16
+ })), te.value = q.configure.props.base.showSummary, (te.value || q.configure.props.highOrder.groupField && q.configure.props.highOrder.groupField.length > 0) && (ae.value = $(q.configure), te.value && (ie.value = H(q.configure, "table")), q.configure.props.highOrder.groupField && q.configure.props.highOrder.groupField.length > 0 && (ue.value = H(q.configure, "group")));
17
+ let de = b(q.pageContext, q.configure);
18
+ function he() {
19
+ const e3 = q.configure.props.dataOrigin.variable.match(/\${(.*?)}/), o2 = e3 ? e3[1].split(".") : [];
20
+ r(() => o2.reduce((e4, o3) => e4[o3], q.pageContext.entity), (e4) => {
21
+ e4 ? ye(JSON.parse(JSON.stringify(e4)), null) : (ee.value = [], q.configure.props.modelCustom ? Re(null) : Z.value ? ne.value = q.configure.props.groupHeaders : oe.value = q.configure.items);
17
22
  });
18
23
  }
19
- function ge(e3) {
24
+ function ve(e3) {
20
25
  e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (!function(e4) {
21
- je(e4), "service" === A.configure.props.dataOrigin.dataSource && e4.result ? se = e4.result[A.configure.props.dataOrigin.service.serviceDataField] : "variable" === A.configure.props.dataOrigin.dataSource && (ce(), se = x(A.pageContext.entity, A.configure.props.dataOrigin.variable));
22
- se && fe(se, e4);
23
- }(e3), e3.hasRender = true, B && (B.autoRefresh = false));
26
+ Re(e4), "service" === q.configure.props.dataOrigin.dataSource && e4.result ? me = e4.result[q.configure.props.dataOrigin.service.serviceDataField] : "variable" === q.configure.props.dataOrigin.dataSource && (he(), me = O(q.pageContext.entity, q.configure.props.dataOrigin.variable));
27
+ me && ye(me, e4);
28
+ }(e3), e3.hasRender = true, W && (W.autoRefresh = false));
24
29
  }
25
- function fe(e3, o2) {
30
+ function ye(e3, o2) {
26
31
  var _a2;
27
- if (de("rowToColumn")) {
28
- if (e3 = T(e3, A.configure), !W.value) {
29
- const o3 = function(e4, o4, n2, t2) {
30
- const r2 = [...e4].filter((e5) => !n2.includes(e5.props.base.prop) && !t2.includes(e5.props.base.prop)), a2 = new RegExp(`(${t2.join("|")})$`), i2 = /* @__PURE__ */ new Set();
32
+ if (Ce("rowToColumn")) {
33
+ if (e3 = T(e3, q.configure), !Z.value) {
34
+ const o3 = function(e4, o4, n2, r2) {
35
+ const t2 = [...e4].filter((e5) => !n2.includes(e5.props.base.prop) && !r2.includes(e5.props.base.prop)), a2 = new RegExp(`(${r2.join("|")})$`), i2 = /* @__PURE__ */ new Set();
31
36
  return o4.forEach((e5) => {
32
37
  Object.keys(e5).forEach((e6) => {
33
- if (t2.some((o5) => e6.includes(o5))) {
38
+ if (r2.some((o5) => e6.includes(o5))) {
34
39
  const o5 = e6.split(a2)[0];
35
40
  i2.add(o5);
36
41
  }
37
42
  });
38
43
  }), i2.forEach((e5) => {
39
- t2.forEach((n3) => {
44
+ r2.forEach((n3) => {
40
45
  var _a3;
41
- const t3 = (_a3 = Y.value.find((e6) => e6.props.base.prop === n3)) == null ? void 0 : _a3.props.base.name, a3 = { uuid: (/* @__PURE__ */ new Date()).getTime(), name: "", props: { base: { prop: `${e5}${n3}`, name: `${e5}${t3}`, displayOrder: r2.length + 1, sortable: true, headerAlign: "center", align: "center", fixed: false, visible: true, dataType: "number" == typeof o4[0][`${e5}${n3}`] ? "number" : "string" }, format: {}, size: { pc: {} } }, style: {}, componentIndex: 0, runtime: { common: { class: "", style: { pc_style: {}, pc_class: "" } } } };
42
- r2.push(a3);
46
+ const r3 = (_a3 = oe.value.find((e6) => e6.props.base.prop === n3)) == null ? void 0 : _a3.props.base.name, a3 = { uuid: (/* @__PURE__ */ new Date()).getTime(), name: "", props: { base: { prop: `${e5}${n3}`, name: `${e5}${r3}`, displayOrder: t2.length + 1, sortable: true, headerAlign: "center", align: "center", fixed: false, visible: true, dataType: "number" == typeof o4[0][`${e5}${n3}`] ? "number" : "string" }, format: {}, size: { pc: {} } }, style: {}, componentIndex: 0, runtime: { common: { class: "", style: { pc_style: {}, pc_class: "" } } } };
47
+ t2.push(a3);
43
48
  });
44
- }), r2;
45
- }(Y.value, e3, A.configure.props.dataOrigin.rowToColumn.titleColumns, A.configure.props.dataOrigin.rowToColumn.dataColumns);
46
- Y.value = o3;
49
+ }), t2;
50
+ }(oe.value, e3, q.configure.props.dataOrigin.rowToColumn.titleColumns, q.configure.props.dataOrigin.rowToColumn.dataColumns);
51
+ oe.value = o3;
47
52
  }
48
53
  } else
49
- de("columnToRow") && (W.value || (Y.value = _(A.configure)), e3 = z(e3, A.configure));
50
- if (A.configure.props.dataOrigin.dataFormatting) {
51
- const o3 = F(A.pageContext, A.configure.props.dataOrigin.dataFormatting);
54
+ Ce("columnToRow") && (Z.value || (oe.value = _(q.configure)), e3 = z(e3, q.configure));
55
+ if (q.configure.props.dataOrigin.dataFormatting) {
56
+ const o3 = k(q.pageContext, q.configure.props.dataOrigin.dataFormatting);
52
57
  if (o3) {
53
58
  const n2 = o3.apply(o3, [{ tableData: e3 }]);
54
59
  n2 && (e3 = n2);
55
60
  }
56
61
  }
57
- if (Object.keys(ue.value).length > 0 && e3 && e3.length > 0 && D(ue.value, e3, A.pageContext.entity), ((_a2 = A.configure.pageination) == null ? void 0 : _a2.enable) ? function(e4) {
58
- "frontend" === A.configure.pageination.type ? (pe.value = se.length, Oe(1, A.configure.pageination.pageSize)) : "backend" === A.configure.pageination.type && (X.value = se, A.configure.pageination.totalFrom && (pe.value = e4.result[A.configure.pageination.totalFrom]));
59
- }(o2) : X.value = e3, A.configure.props.highOrder.groupField && A.configure.props.highOrder.groupField.length > 0) {
60
- const e4 = A.configure.props.highOrder.groupField;
61
- X.value = function(e5, o3) {
62
+ if (Object.keys(se.value).length > 0 && e3 && e3.length > 0 && D(se.value, e3, q.pageContext.entity), ((_a2 = q.configure.pageination) == null ? void 0 : _a2.enable) ? function(e4) {
63
+ "frontend" === q.configure.pageination.type ? (ge.value = me.length, ke(1, q.configure.pageination.pageSize)) : "backend" === q.configure.pageination.type && (ee.value = me, q.configure.pageination.totalFrom && (ge.value = e4.result[q.configure.pageination.totalFrom]));
64
+ }(o2) : ee.value = e3, q.configure.props.highOrder.groupField && q.configure.props.highOrder.groupField.length > 0) {
65
+ const e4 = q.configure.props.highOrder.groupField;
66
+ ee.value = function(e5, o3) {
62
67
  var _a3, _b;
63
- if (0 === re.value.length)
68
+ if (0 === ue.value.length)
64
69
  return e5;
65
- const n2 = [], t2 = (_a3 = A.configure.items) == null ? void 0 : _a3.filter((e6) => o3.includes(e6.props.base.prop)), r2 = (_b = A.configure.items) == null ? void 0 : _b.filter((e6) => true === e6.props.base.groupSummary), a2 = {};
70
+ const n2 = [], r2 = (_a3 = q.configure.items) == null ? void 0 : _a3.filter((e6) => o3.includes(e6.props.base.prop)), t2 = (_b = q.configure.items) == null ? void 0 : _b.filter((e6) => true === e6.props.base.groupSummary), a2 = {};
66
71
  e5.forEach((e6) => {
67
72
  const n3 = o3.map((o4) => e6[o4]).join("|");
68
73
  a2[n3] || (a2[n3] = []), a2[n3].push(e6);
@@ -70,107 +75,126 @@ const V = e({ __name: "table-runtime", props: { configure: { type: Object, defau
70
75
  const i2 = Object.values(a2);
71
76
  for (let e6 = 0; e6 < i2.length; e6++) {
72
77
  const o4 = i2[e6], a3 = {};
73
- r2 == null ? void 0 : r2.forEach((e7) => {
74
- const n3 = e7.props.base.prop, t3 = H(re.value[n3], o4, n3, A.pageContext);
75
- a3[n3] = t3;
76
- }), n2.push(...o4), t2 == null ? void 0 : t2.forEach((e7) => {
78
+ t2 == null ? void 0 : t2.forEach((e7) => {
79
+ const n3 = e7.props.base.prop, r3 = P(ue.value[n3], o4, n3, q.pageContext);
80
+ a3[n3] = r3;
81
+ }), n2.push(...o4), r2 == null ? void 0 : r2.forEach((e7) => {
77
82
  const n3 = e7.props.base.prop;
78
- a3[n3] = P(e7.props.base.summaryTitle, o4[0]);
79
- }), n2.push(a3), ae.push(n2.length - 1);
83
+ a3[n3] = K(e7.props.base.summaryTitle, o4[0]);
84
+ }), n2.push(a3), pe.push(n2.length - 1);
80
85
  }
81
86
  return n2;
82
- }(X.value, e4);
87
+ }(ee.value, e4);
83
88
  }
84
89
  !function(e4) {
85
- if (A.configure.props.base.showIndex && -1 === e4.findIndex((e5) => "$index" === e5.props.base.prop)) {
90
+ if (q.configure.props.base.showIndex && -1 === e4.findIndex((e5) => "$index" === e5.props.base.prop)) {
86
91
  const o3 = U();
87
92
  o3 && e4.unshift(o3);
88
93
  }
89
- }(Y.value);
94
+ }(oe.value);
90
95
  }
91
- function de(e3) {
92
- return A.configure.props.dataOrigin.transition === e3 && A.configure.props.dataOrigin.groupField && A.configure.props.dataOrigin.groupField.length > 0 && A.configure.props.dataOrigin[e3].titleColumns && A.configure.props.dataOrigin[e3].titleColumns.length > 0 && A.configure.props.dataOrigin[e3].dataColumns && A.configure.props.dataOrigin[e3].dataColumns.length > 0;
96
+ function Ce(e3) {
97
+ return q.configure.props.dataOrigin.transition === e3 && q.configure.props.dataOrigin.groupField && q.configure.props.dataOrigin.groupField.length > 0 && q.configure.props.dataOrigin[e3].titleColumns && q.configure.props.dataOrigin[e3].titleColumns.length > 0 && q.configure.props.dataOrigin[e3].dataColumns && q.configure.props.dataOrigin[e3].dataColumns.length > 0;
93
98
  }
94
- function me(e3) {
95
- const o2 = ie.value[e3.column.property] ? ie.value[e3.column.property].titleStyle : null, n2 = L == null ? void 0 : L.titleStyle;
96
- return J(e3, { cellTitleStyle: o2, titleStyle: n2 }, A);
99
+ function be(e3) {
100
+ const o2 = le.value[e3.column.property] ? le.value[e3.column.property].titleStyle : null, n2 = M == null ? void 0 : M.titleStyle;
101
+ return N(e3, { cellTitleStyle: o2, titleStyle: n2 }, q);
97
102
  }
98
- function he(e3) {
99
- return K(e3, ae, A);
103
+ function xe(e3) {
104
+ return A(e3, pe, q);
100
105
  }
101
- function ve(e3) {
102
- const o2 = ie.value[e3.column.property] ? ie.value[e3.column.property].cellStyle : null;
103
- return N(e3, o2, A);
106
+ function Oe(e3) {
107
+ const o2 = le.value[e3.column.property] ? le.value[e3.column.property].cellStyle : null;
108
+ return J(e3, o2, q);
104
109
  }
105
- A.configure.props.modelCustom || (W.value ? Z.value = A.configure.props.groupHeaders : Y.value = A.configure.items, (_a = A.configure.items) == null ? void 0 : _a.forEach((e3) => {
106
- ee.value[e3.uuid] = e3, Object.keys(e3.style).length > 0 && (ie.value[e3.props.base.prop] = { cellStyle: e3.style, titleStyle: e3.titleStyle }), e3.formula && "" !== e3.formula.trim() && (ue.value[e3.props.base.prop] = e3.formula);
107
- })), oe.value = A.configure.props.base.showSummary, (oe.value || A.configure.props.highOrder.groupField && A.configure.props.highOrder.groupField.length > 0) && (ne.value = R(A.configure), oe.value && (te.value = $(A.configure, "table")), A.configure.props.highOrder.groupField && A.configure.props.highOrder.groupField.length > 0 && (re.value = $(A.configure, "group"))), n(() => {
108
- const e3 = b(A.pageContext, A.configure);
110
+ de && de.maxHeight && (fe = de.maxHeight), !fe && de && de.fixHeight && (fe = de.fixHeight), fe && (fe = Number(fe + "")), n(() => {
111
+ const e3 = x(q.pageContext, q.configure);
109
112
  if (e3)
110
- ge(e3);
111
- else if ("variable" === A.configure.props.dataOrigin.dataSource) {
112
- ce();
113
- const o2 = x(A.pageContext.entity, A.configure.props.dataOrigin.variable);
114
- o2 && fe(o2, e3);
113
+ ve(e3);
114
+ else if ("variable" === q.configure.props.dataOrigin.dataSource) {
115
+ he();
116
+ const o2 = O(q.pageContext.entity, q.configure.props.dataOrigin.variable);
117
+ o2 && ye(o2, e3);
115
118
  }
116
119
  });
117
- const ye = (e3) => {
118
- const { columns: o2, data: n2 } = e3, t2 = [];
120
+ const Se = (e3) => {
121
+ const { columns: o2, data: n2 } = e3, r2 = [];
119
122
  return o2.forEach((e4, o3) => {
120
- if (ne.value[e4.property]) {
121
- const r2 = ne.value[e4.property].label;
122
- t2[o3] = y("div", {}, [P(r2, n2)]);
123
- } else if (te.value[e4.property]) {
124
- const r2 = n2.filter((e5, o4) => !ae.includes(o4));
125
- t2[o3] = H(te.value[e4.property], r2, e4.property, A.pageContext);
123
+ if (ae.value[e4.property]) {
124
+ const t2 = ae.value[e4.property].label;
125
+ r2[o3] = y("div", {}, [K(t2, n2)]);
126
+ } else if (ie.value[e4.property]) {
127
+ const t2 = n2.filter((e5, o4) => !pe.includes(o4));
128
+ r2[o3] = P(ie.value[e4.property], t2, e4.property, q.pageContext);
126
129
  }
127
- }), t2;
130
+ }), r2;
128
131
  };
129
- function Ce({ row: e3, column: o2, rowIndex: n2, columnIndex: t2 }) {
130
- const r2 = o2.property, a2 = A.configure.props.highOrder;
132
+ function we({ row: e3, column: o2, rowIndex: n2, columnIndex: r2 }) {
133
+ const t2 = o2.property, a2 = q.configure.props.highOrder;
131
134
  if (a2.scopeFunc) {
132
- const r3 = F(A.pageContext, a2.scopeFunc);
133
- if (r3) {
134
- const a3 = r3.apply(r3, [{ tableData: X.value, row: e3, column: o2, rowIndex: n2, columnIndex: t2 }]);
135
+ const t3 = k(q.pageContext, a2.scopeFunc);
136
+ if (t3) {
137
+ const a3 = t3.apply(t3, [{ tableData: ee.value, row: e3, column: o2, rowIndex: n2, columnIndex: r2 }]);
135
138
  if (a3)
136
139
  return a3;
137
140
  }
138
- } else if (a2 && a2.mergeColumn, a2 && a2.mergeRow && a2.mergeRow.includes(r2) && 0 === n2)
139
- return { rowspan: X.value.length, colspan: 1 };
141
+ } else if (a2 && a2.mergeColumn, a2 && a2.mergeRow && a2.mergeRow.includes(t2) && 0 === n2)
142
+ return { rowspan: ee.value.length, colspan: 1 };
140
143
  }
141
- function be(e3, o2) {
142
- "frontend" === A.configure.pageination.type ? Oe(e3, o2) : Se(e3, o2);
144
+ function je(e3, o2) {
145
+ "frontend" === q.configure.pageination.type ? ke(e3, o2) : Ee(e3, o2);
143
146
  }
144
- function xe(e3, o2) {
145
- "frontend" === A.configure.pageination.type ? Oe(e3, o2) : Se(e3, o2);
147
+ function Fe(e3, o2) {
148
+ "frontend" === q.configure.pageination.type ? ke(e3, o2) : Ee(e3, o2);
146
149
  }
147
- function Oe(e3, o2) {
148
- se && (X.value = se.slice((e3 - 1) * o2, e3 * o2));
150
+ function ke(e3, o2) {
151
+ me && (ee.value = me.slice((e3 - 1) * o2, e3 * o2));
149
152
  }
150
- function Se(e3, o2) {
151
- A.configure.pageination.currentPageSet && S(A.pageContext.entity, A.configure.pageination.currentPageSet, e3), A.configure.pageination.pageSizeSet && S(A.pageContext.entity, A.configure.pageination.pageSizeSet, o2), w(A.pageContext, A.configure.uuid);
153
+ function Ee(e3, o2) {
154
+ q.configure.pageination.currentPageSet && w(q.pageContext.entity, q.configure.pageination.currentPageSet, e3), q.configure.pageination.pageSizeSet && w(q.pageContext.entity, q.configure.pageination.pageSizeSet, o2), j(q.pageContext, q.configure.uuid);
152
155
  }
153
- function we(e3) {
156
+ function Ie(e3) {
154
157
  const o2 = e3.showCondition;
155
- return j(A.pageContext, o2);
158
+ return F(q.pageContext, o2);
156
159
  }
157
- function je(e3) {
158
- if (A.configure.props.modelCustom) {
159
- const o2 = F(A.pageContext, A.configure.props.modelCustom);
160
+ function Re(e3) {
161
+ if (q.configure.props.modelCustom) {
162
+ const o2 = k(q.pageContext, q.configure.props.modelCustom);
160
163
  if (o2) {
161
- const n2 = o2.apply(o2, [{ pageContext: A.pageContext, configureObj: A.configure, value: e3 }]);
162
- O(n2) ? n2.then((e4) => {
163
- Y.value = e4.columns;
164
- }) : Y.value = n2.columns;
164
+ const n2 = o2.apply(o2, [{ pageContext: q.pageContext, configureObj: q.configure, value: e3 }]);
165
+ S(n2) ? n2.then((e4) => {
166
+ oe.value = e4.columns;
167
+ }) : oe.value = n2.columns;
165
168
  }
166
169
  }
167
170
  }
168
- return V2({ updateChartDatas: ge, exportChart: function() {
171
+ function $e(e3, o2, n2) {
172
+ e3.forEach((e4) => {
173
+ const r2 = e4.props.base.prop, t2 = e4.props.base.name;
174
+ let a2 = { name: r2, label: t2, i18nKey: t2 };
175
+ e4.children && e4.childern.length > 0 && (a2.children = [], $e(e4.children, a2.children, n2)), e4.props.format && e4.props.format.type && n2.push(e4), o2.push(a2);
176
+ });
177
+ }
178
+ return L2({ updateChartDatas: ve, exportChart: function() {
179
+ let e3 = [], o2 = [];
180
+ o2 = Z.value ? q.configure.props.groupHeaders : q.configure.items;
181
+ let n2 = [];
182
+ $e(o2, e3, n2);
183
+ return { isTable: true, dataArr: function(e4) {
184
+ let o3 = [];
185
+ ee.value && (o3 = G(ee.value), o3.forEach((o4) => {
186
+ e4.forEach((e5) => {
187
+ const n3 = V(o4, e5.props.format, e5, q.pageContext, q.configure);
188
+ o4[e5.props.base.prop] = n3;
189
+ });
190
+ }));
191
+ return o3;
192
+ }(n2), columns: e3 };
169
193
  } }), (o2, n2) => {
170
- const t2 = r("el-table");
171
- return a(), i("div", { style: u(l(L)), class: p([l(q), "amb-widget-chart"]), ref: "thisRef" }, [s(c(C, { ref_key: "headerRef", ref: Q, headerInfo: l(M), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[g, l(M).showHeader]]), c(t2, { ref_key: "gridRef", ref: le, data: X.value, style: { width: "100%" }, "header-cell-style": me, "row-style": he, "cell-style": ve, "show-summary": oe.value, stripe: e2.configure.props.base.stripe, "summary-method": ye, "span-method": Ce }, { default: f(() => [W.value ? (a(true), i(d, { key: 0 }, m(Z.value, (o3, n3) => (a(), i(d, { key: n3 }, [o3.isLeaf ? we(ee.value[o3.columnUuid]) ? (a(), h(E, { key: 1, configure: e2.configure, pageContext: e2.pageContext, column: ee.value[o3.columnUuid] }, null, 8, ["configure", "pageContext", "column"])) : v("", true) : (a(), h(k, { key: 0, configure: e2.configure, pageContext: e2.pageContext, groupColumn: o3, columnsConfigKeyValues: ee.value }, null, 8, ["configure", "pageContext", "groupColumn", "columnsConfigKeyValues"]))], 64))), 128)) : (a(true), i(d, { key: 1 }, m(Y.value, (o3, n3) => (a(), i(d, { key: n3 }, [we(o3) ? (a(), h(E, { key: 0, column: o3, configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["column", "configure", "pageContext"])) : v("", true)], 64))), 128))]), _: 1 }, 8, ["data", "show-summary", "stripe"]), e2.configure.pageination && e2.configure.pageination.enable ? (a(), h(I, { key: 0, configure: e2.configure, "table-data": X.value, total: pe.value, onPageChange: be, onPageSizeChange: xe }, null, 8, ["configure", "table-data", "total"])) : v("", true)], 6);
194
+ const r2 = t("el-table");
195
+ return a(), i("div", { style: u(p(M)), class: l([p(Q), "amb-widget-chart"]), ref: "thisRef" }, [s(c(C, { ref_key: "headerRef", ref: Y, headerInfo: p(X), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[g, p(X).showHeader]]), c(r2, { ref_key: "gridRef", ref: ce, data: ee.value, style: { width: "100%" }, "max-height": p(fe), "header-cell-style": be, "row-style": xe, "cell-style": Oe, "show-summary": te.value, stripe: e2.configure.props.base.stripe, "summary-method": Se, "span-method": we }, { default: f(() => [Z.value ? (a(true), i(m, { key: 0 }, d(ne.value, (o3, n3) => (a(), i(m, { key: n3 }, [o3.isLeaf ? Ie(re.value[o3.columnUuid]) ? (a(), h(I, { key: 1, configure: e2.configure, pageContext: e2.pageContext, column: re.value[o3.columnUuid] }, null, 8, ["configure", "pageContext", "column"])) : v("", true) : (a(), h(E, { key: 0, configure: e2.configure, pageContext: e2.pageContext, groupColumn: o3, columnsConfigKeyValues: re.value }, null, 8, ["configure", "pageContext", "groupColumn", "columnsConfigKeyValues"]))], 64))), 128)) : (a(true), i(m, { key: 1 }, d(oe.value, (o3, n3) => (a(), i(m, { key: n3 }, [Ie(o3) ? (a(), h(I, { key: 0, column: o3, configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["column", "configure", "pageContext"])) : v("", true)], 64))), 128))]), _: 1 }, 8, ["data", "max-height", "show-summary", "stripe"]), e2.configure.pageination && e2.configure.pageination.enable ? (a(), h(R, { key: 0, configure: e2.configure, "table-data": ee.value, total: ge.value, onPageChange: je, onPageSizeChange: Fe }, null, 8, ["configure", "table-data", "total"])) : v("", true)], 6);
172
196
  };
173
197
  } });
174
198
  export {
175
- V as default
199
+ L as default
176
200
  };
@@ -35,24 +35,23 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
35
35
  const t3 = $(e4.fieldName);
36
36
  t3 && t3.length > 1 && ne.push(t3[1]);
37
37
  }), ne.length > 0 && function() {
38
- if (W.pageContext.toolsInputComponents && W.pageContext.toolsInputComponents.length > 0) {
39
- let e4 = [];
40
- if (W.pageContext.toolsInputComponents.forEach((t3) => {
41
- if (G.props.linkages.some((e5) => e5.fieldName === t3.prop) && t3.defaultValue) {
42
- const n3 = $(t3.prop);
43
- n3 && n3.length > 1 && e4.push(n3[1]);
44
- }
45
- }), 0 === e4.length)
46
- We();
47
- else {
48
- const t3 = ze();
49
- e4 = e4.filter((e5) => T(t3, e5)), 0 === e4.length ? (Oe(t3), We()) : ne.forEach((t4) => {
50
- o(() => W.pageContext.entity.page[t4], () => {
51
- const t5 = ze();
52
- 0 === e4.length ? Oe(t5) : (e4 = e4.filter((e5) => T(t5, e5)), 0 === e4.length && Oe(t5));
53
- }, { immediate: true });
54
- });
38
+ let e4 = [];
39
+ W.pageContext.toolsInputComponents && W.pageContext.toolsInputComponents.length > 0 && W.pageContext.toolsInputComponents.forEach((t3) => {
40
+ if (G.props.linkages.some((e5) => e5.fieldName === t3.prop) && t3.defaultValue) {
41
+ const n3 = $(t3.prop);
42
+ n3 && n3.length > 1 && e4.push(n3[1]);
55
43
  }
44
+ });
45
+ if (0 === e4.length)
46
+ We();
47
+ else {
48
+ const t3 = ze();
49
+ e4 = e4.filter((e5) => T(t3, e5)), 0 === e4.length ? (Oe(t3), We()) : ne.forEach((t4) => {
50
+ o(() => W.pageContext.entity.page[t4], () => {
51
+ const t5 = ze();
52
+ 0 === e4.length ? Oe(t5) : (e4 = e4.filter((e5) => T(t5, e5)), 0 === e4.length && Oe(t5));
53
+ }, { immediate: true });
54
+ });
56
55
  }
57
56
  }());
58
57
  return function(e4) {