super-page-runtime 2.3.17-sit1 → 2.3.17-sit3
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/api/page-expose-util.js +44 -31
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +2 -1
- package/dist/es/components/runtime/utils/charts/chart-util.js +5 -5
- package/dist/es/components/runtime/utils/events/standard-event.js +3 -2
- package/dist/es/components/runtime/utils/events/validator-util.d.ts +1 -1
- package/dist/es/components/runtime/utils/events/validator-util.js +172 -166
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +1 -1
- 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/common/common-homepage-search.vue2.js +11 -10
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.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.vue.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.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +3 -0
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +75 -72
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +5 -2
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +4 -1
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +20 -19
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +77 -70
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +7 -5
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +74 -58
- package/dist/es/style.css +122 -71
- package/package.json +2 -2
|
@@ -7,20 +7,21 @@ import { dynamicControlTableEdit as f, disabledAllFields as p, updateFormItemEdi
|
|
|
7
7
|
import { deepCopy as g, getBaseUrl as y } from "../common-util.js";
|
|
8
8
|
import { replacePrefix as b, isMobileBrowser as h } from "agilebuilder-ui/src/utils/common-util";
|
|
9
9
|
import { getFormModelFields as E, getModelFields as P } from "../page-init-util.js";
|
|
10
|
-
import { getCustomFunc as
|
|
11
|
-
import { isHasFieldPermissionAuth as
|
|
10
|
+
import { getCustomFunc as C } from "../events/event-util.js";
|
|
11
|
+
import { isHasFieldPermissionAuth as k } from "../table-utils.js";
|
|
12
|
+
import "dayjs";
|
|
12
13
|
const v = { showElement: function(e2, t2, n2) {
|
|
13
|
-
n2 ?
|
|
14
|
+
n2 ? V(e2, "showElement", t2) : t2.forEach((t3) => {
|
|
14
15
|
const n3 = s(e2, t3);
|
|
15
16
|
n3 && n3.show();
|
|
16
17
|
});
|
|
17
18
|
}, hideElement: function(e2, t2, n2) {
|
|
18
|
-
n2 ?
|
|
19
|
+
n2 ? V(e2, "hideElement", t2) : t2.forEach((t3) => {
|
|
19
20
|
const n3 = s(e2, t3);
|
|
20
21
|
n3 && n3.hide();
|
|
21
22
|
});
|
|
22
23
|
}, enableElement: function(e2, t2, n2) {
|
|
23
|
-
n2 ?
|
|
24
|
+
n2 ? V(e2, "enableElement", t2) : t2.forEach((t3) => {
|
|
24
25
|
const n3 = s(e2, t3);
|
|
25
26
|
if (n3) {
|
|
26
27
|
const e3 = n3.getConfigure();
|
|
@@ -28,7 +29,7 @@ const v = { showElement: function(e2, t2, n2) {
|
|
|
28
29
|
}
|
|
29
30
|
});
|
|
30
31
|
}, disableElement: function(e2, t2, n2) {
|
|
31
|
-
n2 ?
|
|
32
|
+
n2 ? V(e2, "disableElement", t2) : t2.forEach((t3) => {
|
|
32
33
|
const n3 = s(e2, t3);
|
|
33
34
|
if (n3) {
|
|
34
35
|
const e3 = n3.getConfigure();
|
|
@@ -48,7 +49,7 @@ const v = { showElement: function(e2, t2, n2) {
|
|
|
48
49
|
o(e2.entity, i2.startsWith("${") ? i2 : "${" + t2 + "." + i2 + "}", n2[i2]);
|
|
49
50
|
});
|
|
50
51
|
}, dynamicControlFormEdit: function(e2, t2, n2) {
|
|
51
|
-
n2 ?
|
|
52
|
+
n2 ? V(e2, "dynamicControlFormEdit", t2) : d(e2, t2);
|
|
52
53
|
}, disabledAllFields(e2) {
|
|
53
54
|
p(e2);
|
|
54
55
|
}, dynamicControlTableEdit(e2, t2, n2) {
|
|
@@ -96,11 +97,11 @@ const v = { showElement: function(e2, t2, n2) {
|
|
|
96
97
|
} else if (e3.name && ("select" === e3.name && ((_j = (_i = e3.props) == null ? void 0 : _i.base) == null ? void 0 : _j.multiple) || "checkbox" === e3.name)) {
|
|
97
98
|
const t2 = E(o2, e3), a2 = n(r2, t2);
|
|
98
99
|
if (a2) {
|
|
99
|
-
const e4 =
|
|
100
|
+
const e4 = j(a2.split(","), s3);
|
|
100
101
|
i(r2, t2, e4);
|
|
101
102
|
}
|
|
102
103
|
} else {
|
|
103
|
-
const t2 = E(o2, e3), a2 =
|
|
104
|
+
const t2 = E(o2, e3), a2 = j(n(r2, t2), s3);
|
|
104
105
|
i(r2, t2, a2);
|
|
105
106
|
}
|
|
106
107
|
}
|
|
@@ -111,41 +112,53 @@ const v = { showElement: function(e2, t2, n2) {
|
|
|
111
112
|
if (e2.indexOf("__") > 0 && (t2 = e2.substring(e2.lastIndexOf("__") + 2)), t2) {
|
|
112
113
|
const i2 = a(o2, t2);
|
|
113
114
|
if (i2) {
|
|
114
|
-
const t3 = i2.getConfigure(), o3 = t3.code ? t3.code : e2, a2 = P(t3, o3), s3 = n(r2, a2);
|
|
115
|
-
|
|
115
|
+
const t3 = i2.getConfigure(), o3 = t3.code ? t3.code : e2, a2 = P(t3, o3), s3 = n(r2, a2), l3 = i2.getTableSelectOptions(e2), c3 = i2.getColumns(), u2 = {}, m2 = {};
|
|
116
|
+
c3 && c3.length > 0 && c3.forEach((e3) => {
|
|
117
|
+
"DATE" === e3.dataType && (m2[e3.prop] = e3);
|
|
118
|
+
}), u2.formatDateColumns = m2, T(l3, s3, u2, i2);
|
|
116
119
|
}
|
|
117
120
|
}
|
|
118
121
|
}
|
|
119
122
|
return r2.data;
|
|
120
|
-
}, getFormData: (e2, t2) => c(e2, t2), getCustomFunc: (e2, t2) =>
|
|
123
|
+
}, getFormData: (e2, t2) => c(e2, t2), getCustomFunc: (e2, t2) => C(e2, t2), replaceUrlPrefix: (e2) => b(e2), isHasFieldAuthPermission: (e2) => {
|
|
121
124
|
var _a, _b, _c, _d;
|
|
122
125
|
return !(void 0 !== ((_b = (_a = e2 == null ? void 0 : e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isHasFieldAuthPermission) && !((_d = (_c = e2 == null ? void 0 : e2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.isHasFieldAuthPermission));
|
|
123
126
|
}, isHasFieldAuth(e2, t2) {
|
|
124
|
-
|
|
127
|
+
k(e2, null, t2);
|
|
125
128
|
}, isHasFieldAuthWithTable(e2, t2, n2) {
|
|
126
|
-
|
|
129
|
+
k(e2, t2, n2);
|
|
127
130
|
} };
|
|
128
|
-
function T(e2, t2) {
|
|
129
|
-
e2 && t2
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
131
|
+
function T(e2, t2, n2, i2) {
|
|
132
|
+
if (e2 && t2) {
|
|
133
|
+
const o2 = i2.getSuperGridRef();
|
|
134
|
+
t2.forEach((t3) => {
|
|
135
|
+
if (n2 == null ? void 0 : n2.formatDateColumns) {
|
|
136
|
+
const e3 = n2.formatDateColumns;
|
|
137
|
+
Object.keys(e3).forEach((n3) => {
|
|
138
|
+
const i3 = e3[n3];
|
|
139
|
+
t3[n3] && (t3[n3] = o2.rowDoFormat(i3, t3[n3]));
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
Object.keys(e2).forEach((n3) => {
|
|
143
|
+
const i3 = t3[n3], o3 = e2[n3], a2 = o3.options, s2 = o3.column;
|
|
144
|
+
let r2;
|
|
145
|
+
if (s2 && s2.componentType && ("multiselect" === s2.componentType || "checkbox" === s2.componentType)) {
|
|
146
|
+
if (i3) {
|
|
147
|
+
r2 = j(i3.split(","), a2);
|
|
148
|
+
}
|
|
149
|
+
} else r2 = j(i3, a2);
|
|
150
|
+
t3[n3] = r2;
|
|
151
|
+
});
|
|
139
152
|
});
|
|
140
|
-
}
|
|
153
|
+
}
|
|
141
154
|
}
|
|
142
|
-
function
|
|
155
|
+
function j(e2, t2) {
|
|
143
156
|
let n2;
|
|
144
157
|
return null != e2 && t2 && (Array.isArray(e2) ? (n2 = "", e2.forEach((i2) => {
|
|
145
|
-
n2 = n2 +
|
|
146
|
-
}), n2.indexOf(",") > 0 && (n2 = n2.substring(0, n2.lastIndexOf(",")))) : (n2 = e2, n2 =
|
|
158
|
+
n2 = n2 + O(e2, t2) + ",";
|
|
159
|
+
}), n2.indexOf(",") > 0 && (n2 = n2.substring(0, n2.lastIndexOf(",")))) : (n2 = e2, n2 = O(e2, t2))), n2;
|
|
147
160
|
}
|
|
148
|
-
function
|
|
161
|
+
function O(e2, t2) {
|
|
149
162
|
let n2 = e2;
|
|
150
163
|
if (null != e2 && t2) for (let i2 = 0; i2 < t2.length; i2++) {
|
|
151
164
|
const o2 = t2[i2].value, a2 = t2[i2].label ? t2[i2].label : t2[i2].name;
|
|
@@ -156,7 +169,7 @@ function j(e2, t2) {
|
|
|
156
169
|
}
|
|
157
170
|
return n2;
|
|
158
171
|
}
|
|
159
|
-
function
|
|
172
|
+
function V(e2, t2, n2) {
|
|
160
173
|
e2.initInfo || (e2.initInfo = {}), e2.initInfo[t2] = n2;
|
|
161
174
|
}
|
|
162
175
|
export {
|
|
@@ -104,10 +104,11 @@ export declare function executeChartFormula(formulaStr: string, accumulateMap: a
|
|
|
104
104
|
* @param chartDom
|
|
105
105
|
* @returns
|
|
106
106
|
*/
|
|
107
|
-
export declare function exportCommonChart(chartRef: any): {
|
|
107
|
+
export declare function exportCommonChart(chartRef: any, headerInfo: any): {
|
|
108
108
|
isTable: boolean;
|
|
109
109
|
fileContent: any;
|
|
110
110
|
fileSize: string;
|
|
111
|
+
title: any;
|
|
111
112
|
};
|
|
112
113
|
export declare function setHomeChartInitConfigValue(initConfig: any, tempContext: any, homeChartSettingUserId: any): void;
|
|
113
114
|
export declare function setDefaultGrid(chartOption: any): void;
|
|
@@ -218,12 +218,12 @@ function k(t2, e2, n2, i2) {
|
|
|
218
218
|
const l2 = new Function("params", t2);
|
|
219
219
|
return f(l2, i2), l2({ pageContext: i2, row: n2 });
|
|
220
220
|
}
|
|
221
|
-
function M(t2) {
|
|
221
|
+
function M(t2, e2) {
|
|
222
222
|
if (!t2 || !t2.$el) return;
|
|
223
|
-
const
|
|
224
|
-
if (!
|
|
225
|
-
const
|
|
226
|
-
return { isTable: false, fileContent:
|
|
223
|
+
const n2 = t2.$el.getElementsByTagName("canvas");
|
|
224
|
+
if (!n2 || 0 === n2.length) return;
|
|
225
|
+
const i2 = n2[0], s2 = i2.width + ":" + i2.height;
|
|
226
|
+
return { isTable: false, fileContent: i2.toDataURL(), fileSize: s2, title: e2 == null ? void 0 : e2.title };
|
|
227
227
|
}
|
|
228
228
|
function $(t2, e2, n2) {
|
|
229
229
|
const s2 = window.localStorage.getItem("HOME_MY_CHARTS_CONDITIONS");
|
|
@@ -386,7 +386,8 @@ function L(e2, s2, o2, a2) {
|
|
|
386
386
|
});
|
|
387
387
|
}(r2, f2, b2, e2.isTest), k2 && k2.then(() => {
|
|
388
388
|
y(e2, s2);
|
|
389
|
-
}).catch((
|
|
389
|
+
}).catch((t2) => {
|
|
390
|
+
window.$message.error("导出失败..."), y(e2, s2);
|
|
390
391
|
});
|
|
391
392
|
}
|
|
392
393
|
function B() {
|
|
@@ -1025,7 +1026,7 @@ function ye(e2, s2, o2) {
|
|
|
1025
1026
|
const w2 = b2 + "/dsc/commons/gets", h2 = j();
|
|
1026
1027
|
h2.restorePageLoadState(), k(null, e3, e3, "beforeFormLoadData"), c.post(w2, T2).then((t3) => {
|
|
1027
1028
|
t3 && (e3.entity.data = t3.entity, e3.initFormNo = t3.formNo);
|
|
1028
|
-
const s4 = e3.customRules, n2 = e3.rules, a4 = U(s4, n2);
|
|
1029
|
+
const s4 = e3.customRules, n2 = e3.rules, a4 = U(e3, s4, n2);
|
|
1029
1030
|
e3.rules = a4, e3.canClick = true, k(null, e3, e3, "afterFormLoadData"), h2.setFormPageDataLoadState(true), o3(t3);
|
|
1030
1031
|
}).catch((t3) => {
|
|
1031
1032
|
e3.canClick = true, a3(t3);
|
|
@@ -9,7 +9,7 @@ export declare function validateDataModelFunc(pageContext: any, configureObj: an
|
|
|
9
9
|
* @param orgRules 原来的表单规则
|
|
10
10
|
* @returns 添加了自定义规则后的规则
|
|
11
11
|
*/
|
|
12
|
-
export declare function packageCustomRules(orgCustomRules: any, orgRules: any): any;
|
|
12
|
+
export declare function packageCustomRules(pageContext: any, orgCustomRules: any, orgRules: any): any;
|
|
13
13
|
export declare function i18nValidateRulesMessage(rules: any): {};
|
|
14
14
|
export declare function i18nValidatePropRulesMessage(propRules: any, isResetMessage: boolean): void;
|
|
15
15
|
export declare function getWorkflowRules(pageContext: any): any;
|