super-page-runtime 2.3.6 → 2.3.7
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.
|
@@ -14,7 +14,7 @@ function h() {
|
|
|
14
14
|
}
|
|
15
15
|
function m(t2, e2, n2, i2, s2) {
|
|
16
16
|
return function(o2) {
|
|
17
|
-
let r2 = o2.value;
|
|
17
|
+
let r2 = o2 == null ? void 0 : o2.value;
|
|
18
18
|
if (s2 && (r2 = o2), null == r2 || null == r2) return r2;
|
|
19
19
|
if (Array.isArray(r2)) return r2;
|
|
20
20
|
if (isNaN(r2) || !t2 || !t2.indexOf) return r2;
|
|
@@ -71,7 +71,7 @@ const B = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
71
71
|
} else xe(o2, n2);
|
|
72
72
|
}
|
|
73
73
|
function xe(e3, o2) {
|
|
74
|
-
var _a2;
|
|
74
|
+
var _a2, _b, _c, _d, _e, _f, _g;
|
|
75
75
|
if (Oe("rowToColumn")) {
|
|
76
76
|
if (e3 = H(e3, M.configure, re.value), !oe.value) {
|
|
77
77
|
const o3 = function(e4, o4, n2) {
|
|
@@ -105,21 +105,21 @@ const B = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
105
105
|
re.value = o3;
|
|
106
106
|
}
|
|
107
107
|
} else Oe("columnToRow") && (oe.value || (re.value = _(M.configure)), e3 = z(e3, M.configure));
|
|
108
|
-
if (M.configure.props.dataOrigin.dataFormatting) {
|
|
108
|
+
if ((_b = (_a2 = M.configure.props) == null ? void 0 : _a2.dataOrigin) == null ? void 0 : _b.dataFormatting) {
|
|
109
109
|
const o3 = F(M.pageContext, M.configure.props.dataOrigin.dataFormatting);
|
|
110
110
|
if (o3) {
|
|
111
111
|
const n2 = o3.apply(o3, [{ tableData: e3 }]);
|
|
112
112
|
n2 && (e3 = n2);
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
if (Object.keys(ge.value).length > 0 && e3 && e3.length > 0 && A(ge.value, e3, M.pageContext.entity), ((
|
|
115
|
+
if (Object.keys(ge.value).length > 0 && e3 && e3.length > 0 && A(ge.value, e3, M.pageContext.entity), ((_c = M.configure.pageination) == null ? void 0 : _c.enable) ? function(e4) {
|
|
116
116
|
"frontend" === M.configure.pageination.type ? (de.value = he.length, Ie(1, M.configure.pageination.pageSize)) : "backend" === M.configure.pageination.type && (ne.value = he, M.configure.pageination.totalFrom && (de.value = e4.result[M.configure.pageination.totalFrom]));
|
|
117
|
-
}(o2) : ne.value = e3, M.configure.props.highOrder.groupField && M.configure.props.highOrder.groupField.length > 0) {
|
|
117
|
+
}(o2) : ne.value = e3, ((_e = (_d = M.configure.props) == null ? void 0 : _d.highOrder) == null ? void 0 : _e.groupField) && ((_g = (_f = M.configure.props) == null ? void 0 : _f.highOrder) == null ? void 0 : _g.groupField.length) > 0) {
|
|
118
118
|
const e4 = M.configure.props.highOrder.groupField;
|
|
119
119
|
ne.value = function(e5, o3) {
|
|
120
|
-
var _a3,
|
|
120
|
+
var _a3, _b2;
|
|
121
121
|
if (0 === le.value.length) return e5;
|
|
122
|
-
const n2 = [], r2 = (_a3 = M.configure.items) == null ? void 0 : _a3.filter((e6) => o3.includes(e6.props.base.prop)), t2 = (
|
|
122
|
+
const n2 = [], r2 = (_a3 = M.configure.items) == null ? void 0 : _a3.filter((e6) => o3.includes(e6.props.base.prop)), t2 = (_b2 = M.configure.items) == null ? void 0 : _b2.filter((e6) => true === e6.props.base.groupSummary), i2 = {};
|
|
123
123
|
e5.forEach((e6) => {
|
|
124
124
|
const n3 = o3.map((o4) => e6[o4]).join("|");
|
|
125
125
|
i2[n3] || (i2[n3] = []), i2[n3].push(e6);
|
|
@@ -226,7 +226,7 @@ const B = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
226
226
|
e3.forEach((e4) => {
|
|
227
227
|
const r2 = e4.props.base.prop, t2 = e4.props.base.name;
|
|
228
228
|
let i2 = { name: r2, label: t2, i18nKey: t2 };
|
|
229
|
-
e4.children && e4.
|
|
229
|
+
e4.children && e4.children.length > 0 && (i2.children = [], He(e4.children, i2.children, n2)), e4.props.format && e4.props.format.type && n2.push(e4), o2.push(i2);
|
|
230
230
|
});
|
|
231
231
|
}
|
|
232
232
|
return B2({ updateChartDatas: Ce, exportChart: function() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-runtime",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.7",
|
|
4
4
|
"description": "AgileBuilder super page runtime",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/es/index.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
|
49
49
|
"@vue/eslint-config-prettier": "^8.0.0",
|
|
50
50
|
"@vue/test-utils": "^2.4.4",
|
|
51
|
-
"agilebuilder-ui": "1.1.
|
|
51
|
+
"agilebuilder-ui": "1.1.43",
|
|
52
52
|
"axios": "^1.6.8",
|
|
53
53
|
"cypress": "^13.6.6",
|
|
54
54
|
"element-plus": "^2.6.1",
|