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.
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +2 -2
- package/dist/es/components/runtime/utils/events/standard-event.js +49 -41
- package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +2 -0
- package/dist/es/components/runtime/utils/page-helper-util.js +8 -12
- package/dist/es/components/runtime/utils/page-init-util.d.ts +6 -1
- package/dist/es/components/runtime/utils/page-init-util.js +38 -35
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +1 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +146 -112
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +19 -50
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +129 -105
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +16 -17
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +86 -82
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +25 -28
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +14 -12
- package/dist/es/components/runtime/views/super-page.vue.d.ts +9 -0
- package/dist/es/components/runtime/views/super-page.vue.js +163 -161
- package/package.json +2 -2
|
@@ -1,68 +1,73 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, onMounted as n, watch as
|
|
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 {
|
|
4
|
-
import { getCustomFunc as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { getSummaryTitleColumn as
|
|
9
|
-
|
|
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
|
|
12
|
-
let
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
|
24
|
+
function ve(e3) {
|
|
20
25
|
e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (!function(e4) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}(e3), e3.hasRender = true,
|
|
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
|
|
30
|
+
function ye(e3, o2) {
|
|
26
31
|
var _a2;
|
|
27
|
-
if (
|
|
28
|
-
if (e3 = T(e3,
|
|
29
|
-
const o3 = function(e4, o4, n2,
|
|
30
|
-
const
|
|
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 (
|
|
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
|
-
|
|
44
|
+
r2.forEach((n3) => {
|
|
40
45
|
var _a3;
|
|
41
|
-
const
|
|
42
|
-
|
|
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
|
-
}),
|
|
45
|
-
}(
|
|
46
|
-
|
|
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
|
-
|
|
50
|
-
if (
|
|
51
|
-
const o3 =
|
|
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(
|
|
58
|
-
"frontend" ===
|
|
59
|
-
}(o2) :
|
|
60
|
-
const e4 =
|
|
61
|
-
|
|
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 ===
|
|
68
|
+
if (0 === ue.value.length)
|
|
64
69
|
return e5;
|
|
65
|
-
const n2 = [],
|
|
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
|
-
|
|
74
|
-
const n3 = e7.props.base.prop,
|
|
75
|
-
a3[n3] =
|
|
76
|
-
}), n2.push(...o4),
|
|
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] =
|
|
79
|
-
}), n2.push(a3),
|
|
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
|
-
}(
|
|
87
|
+
}(ee.value, e4);
|
|
83
88
|
}
|
|
84
89
|
!function(e4) {
|
|
85
|
-
if (
|
|
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
|
-
}(
|
|
94
|
+
}(oe.value);
|
|
90
95
|
}
|
|
91
|
-
function
|
|
92
|
-
return
|
|
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
|
|
95
|
-
const o2 =
|
|
96
|
-
return
|
|
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
|
|
99
|
-
return
|
|
103
|
+
function xe(e3) {
|
|
104
|
+
return A(e3, pe, q);
|
|
100
105
|
}
|
|
101
|
-
function
|
|
102
|
-
const o2 =
|
|
103
|
-
return
|
|
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
|
-
|
|
106
|
-
|
|
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
|
-
|
|
111
|
-
else if ("variable" ===
|
|
112
|
-
|
|
113
|
-
const o2 =
|
|
114
|
-
o2 &&
|
|
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
|
|
118
|
-
const { columns: o2, data: n2 } = e3,
|
|
120
|
+
const Se = (e3) => {
|
|
121
|
+
const { columns: o2, data: n2 } = e3, r2 = [];
|
|
119
122
|
return o2.forEach((e4, o3) => {
|
|
120
|
-
if (
|
|
121
|
-
const
|
|
122
|
-
|
|
123
|
-
} else if (
|
|
124
|
-
const
|
|
125
|
-
|
|
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
|
-
}),
|
|
130
|
+
}), r2;
|
|
128
131
|
};
|
|
129
|
-
function
|
|
130
|
-
const
|
|
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
|
|
133
|
-
if (
|
|
134
|
-
const a3 =
|
|
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(
|
|
139
|
-
return { rowspan:
|
|
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
|
|
142
|
-
"frontend" ===
|
|
144
|
+
function je(e3, o2) {
|
|
145
|
+
"frontend" === q.configure.pageination.type ? ke(e3, o2) : Ee(e3, o2);
|
|
143
146
|
}
|
|
144
|
-
function
|
|
145
|
-
"frontend" ===
|
|
147
|
+
function Fe(e3, o2) {
|
|
148
|
+
"frontend" === q.configure.pageination.type ? ke(e3, o2) : Ee(e3, o2);
|
|
146
149
|
}
|
|
147
|
-
function
|
|
148
|
-
|
|
150
|
+
function ke(e3, o2) {
|
|
151
|
+
me && (ee.value = me.slice((e3 - 1) * o2, e3 * o2));
|
|
149
152
|
}
|
|
150
|
-
function
|
|
151
|
-
|
|
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
|
|
156
|
+
function Ie(e3) {
|
|
154
157
|
const o2 = e3.showCondition;
|
|
155
|
-
return
|
|
158
|
+
return F(q.pageContext, o2);
|
|
156
159
|
}
|
|
157
|
-
function
|
|
158
|
-
if (
|
|
159
|
-
const o2 =
|
|
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:
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
}) :
|
|
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
|
-
|
|
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
|
|
171
|
-
return a(), i("div", { style: u(
|
|
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
|
-
|
|
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
|
-
|
|
39
|
-
|
|
40
|
-
if (
|
|
41
|
-
|
|
42
|
-
|
|
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) {
|