super-page-runtime 2.3.41-sit1 → 2.3.42-sit1
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/api-util.js +7 -4
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +22 -22
- package/dist/es/components/runtime/utils/events/event-util.js +45 -43
- package/dist/es/components/runtime/utils/events/standard-event.js +17 -17
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/page-init-util.js +20 -20
- package/dist/es/components/runtime/utils/page-store.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +94 -92
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +9 -8
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +56 -51
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +58 -56
- package/dist/es/components/runtime/views/super-page.vue.d.ts +2 -0
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +166 -160
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +86 -86
- package/package.json +2 -2
|
@@ -21,7 +21,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
21
21
|
const ne = (_a = z.props) == null ? void 0 : _a.dataOrigin.principalLinkage, oe = t({}), le = F;
|
|
22
22
|
oe.value = function() {
|
|
23
23
|
var _a2, _b, _c, _d;
|
|
24
|
-
const e3 = { title: (z == null ? void 0 : z.title) || null, isSql: true, subTableData: null, rowKeyProp: ne, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: j.code, pageVersion: j.version, pageContext: j, configureObj: z, showPageArea: false, showRowForm: false, showOverflowTooltip: (_b = (_a2 = z == null ? void 0 : z.props) == null ? void 0 : _a2.otherSettings) == null ? void 0 : _b.showOverflowTooltip, backendUrl: Z, cellStyleRender:
|
|
24
|
+
const e3 = { title: (z == null ? void 0 : z.title) || null, isSql: true, subTableData: null, rowKeyProp: ne, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: j.code, pageVersion: j.version, pageContext: j, configureObj: z, showPageArea: false, showRowForm: false, showOverflowTooltip: (_b = (_a2 = z == null ? void 0 : z.props) == null ? void 0 : _a2.otherSettings) == null ? void 0 : _b.showOverflowTooltip, backendUrl: Z, cellStyleRender: Le, rowStyleRender: He, titleStyleRender: Ue, allEditable: (_d = (_c = z.props) == null ? void 0 : _c.base) == null ? void 0 : _d.allEditable };
|
|
25
25
|
return Q && (e3.tableStyle = Q), W && (e3.tableClass = W), z.props && z.props.base && true === z.props.base.subPaging ? e3.showPageArea = true : e3.showPageArea = false, z.props.base.showRowForm && (e3.showRowForm = z.props.base.showRowForm), function(e4) {
|
|
26
26
|
const t2 = z.props ? z.props.dataOrigin : {};
|
|
27
27
|
if (t2.treeTable) {
|
|
@@ -47,7 +47,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
47
47
|
}
|
|
48
48
|
t2.showOperationButton = !(!z.props || !z.props.base) && z.props.base.showOperation, t2.isPdfEditor = false, t2.tableRecordMaxNum = z.props && z.props.otherSettings ? z.props.otherSettings.tableRecordMaxNum : null;
|
|
49
49
|
let n2 = C(j, z);
|
|
50
|
-
n2 && n2.fixHeight && (t2.formSetHeight = n2.fixHeight), n2 && n2.maxHeight && (t2.formSetMaxHeight = n2.maxHeight), t2.validateEitConditions =
|
|
50
|
+
n2 && n2.fixHeight && (t2.formSetHeight = n2.fixHeight), n2 && n2.maxHeight && (t2.formSetMaxHeight = n2.maxHeight), t2.validateEitConditions = Be;
|
|
51
51
|
}
|
|
52
52
|
function re() {
|
|
53
53
|
if (z.props && z.props.otherSettings) {
|
|
@@ -76,6 +76,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
76
76
|
}
|
|
77
77
|
function be(e3) {
|
|
78
78
|
e3 || (e3 = oe.value), function(e4) {
|
|
79
|
+
var _a2;
|
|
79
80
|
e4 || (e4 = oe.value);
|
|
80
81
|
const t3 = j.fieldPermissionMap, n2 = j.actionPermissionMap;
|
|
81
82
|
if (t3 && null != t3) {
|
|
@@ -92,18 +93,19 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
92
93
|
}
|
|
93
94
|
e4.operations || (e4.operations = {});
|
|
94
95
|
const o2 = function() {
|
|
95
|
-
let e5 = []
|
|
96
|
-
if (
|
|
97
|
-
const
|
|
98
|
-
e5.push(
|
|
96
|
+
let e5 = [];
|
|
97
|
+
if (we(null, null, null, null, null, true, "canAdd")) {
|
|
98
|
+
const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: Te, isStandard: true };
|
|
99
|
+
e5.push(t4);
|
|
99
100
|
}
|
|
100
|
-
if (
|
|
101
|
-
const
|
|
102
|
-
e5.push(
|
|
101
|
+
if (xe(null, null, null, null, null, true)) {
|
|
102
|
+
const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: ye, isShow: Ce, isStandard: true };
|
|
103
|
+
e5.push(t4);
|
|
103
104
|
}
|
|
104
|
-
return R(j, z, e5,
|
|
105
|
+
return R(j, z, e5, he), e5;
|
|
105
106
|
}();
|
|
106
|
-
|
|
107
|
+
((_a2 = z.props.base.showOperationCondition) == null ? void 0 : _a2.length) > 0 && (e4.operations.showOperationFunc = me);
|
|
108
|
+
e4.operations.operation = o2, e4.subTableCanAdd = we(null, null, null, null, null, true, "canAdd"), e4.subTableCanDelete = we(null, null, null, null, null, true, "canDelete");
|
|
107
109
|
}(e3), c(e3, B, j, z);
|
|
108
110
|
const t2 = j.customEvents;
|
|
109
111
|
t2 && (e3.eventCallBack = t2), ee.value = true, ge();
|
|
@@ -111,6 +113,9 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
111
113
|
function ge() {
|
|
112
114
|
j.tableUuids || (j.tableUuids = []), j.tableUuids.indexOf(z.uuid) < 0 && j.tableUuids.push(z.uuid);
|
|
113
115
|
}
|
|
116
|
+
function me() {
|
|
117
|
+
return w($.pageContext, z.props.base.showOperationCondition);
|
|
118
|
+
}
|
|
114
119
|
n(() => {
|
|
115
120
|
const e3 = z.uuid, t2 = j.subTableWatchProps;
|
|
116
121
|
P.$on("_refreshSubTable_" + e3, (n2) => {
|
|
@@ -122,7 +127,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
122
127
|
ae();
|
|
123
128
|
}), P.$on("_refreshChildData_" + e3, (e4) => {
|
|
124
129
|
!function(e5) {
|
|
125
|
-
|
|
130
|
+
Ge(e5), de = setTimeout(() => {
|
|
126
131
|
ie.value && (ie.value.refreshChildData(G, e5, z.props && z.props.base && true === z.props.base.subPaging), oe.value.extraParam.entityMap = j.entity.data);
|
|
127
132
|
}, 10);
|
|
128
133
|
}(e4);
|
|
@@ -136,16 +141,16 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
136
141
|
const e3 = z.uuid;
|
|
137
142
|
P.$off("_refreshSubTable_" + e3), P.$off("_refreshSubTableHandle_" + e3), P.$off("_refreshChildData_" + e3), P.$off(G + "-pickFileDone"), P.$off(G + "-scanDone");
|
|
138
143
|
});
|
|
139
|
-
const
|
|
140
|
-
function
|
|
144
|
+
const ve = t({});
|
|
145
|
+
function he(e3) {
|
|
141
146
|
if (!e3) return;
|
|
142
|
-
return
|
|
147
|
+
return ve.value[e3.uuid] = e3, Se;
|
|
143
148
|
}
|
|
144
|
-
function
|
|
145
|
-
const a2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2, button: i2, id: n2.ID ? n2.ID : n2.id }, u2 =
|
|
149
|
+
function Se(e3, t2, n2, o2, l2, i2) {
|
|
150
|
+
const a2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2, button: i2, id: n2.ID ? n2.ID : n2.id }, u2 = ve.value[i2.sourceButton.uuid], r2 = z;
|
|
146
151
|
u2.props.base.tableUuid = r2.uuid, S(null, j, u2, "click", a2);
|
|
147
152
|
}
|
|
148
|
-
function
|
|
153
|
+
function we(e3, t2, n2, o2, l2, i2, a2) {
|
|
149
154
|
a2 || (a2 = "canAdd");
|
|
150
155
|
if (!w($.pageContext, z.props.base.showOperationCondition)) return false;
|
|
151
156
|
const u2 = j.fieldPermissionMap, r2 = j.actionPermissionMap;
|
|
@@ -160,11 +165,11 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
160
165
|
}
|
|
161
166
|
return s2;
|
|
162
167
|
}
|
|
163
|
-
function
|
|
164
|
-
let a2 =
|
|
168
|
+
function Te(e3, t2, n2, o2, l2, i2) {
|
|
169
|
+
let a2 = we(0, 0, 0, 0, 0, 0, "canAdd");
|
|
165
170
|
return true === a2 && (a2 = w($.pageContext, z.props.base.showAddBtnCondition, n2)), a2;
|
|
166
171
|
}
|
|
167
|
-
function
|
|
172
|
+
function xe(e3, t2, n2, o2, l2, i2) {
|
|
168
173
|
const a2 = j.fieldPermissionMap, u2 = j.actionPermissionMap;
|
|
169
174
|
let r2 = true;
|
|
170
175
|
if (a2 && null !== a2) {
|
|
@@ -184,94 +189,94 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
184
189
|
}
|
|
185
190
|
return r2;
|
|
186
191
|
}
|
|
187
|
-
function
|
|
188
|
-
let a2 =
|
|
192
|
+
function Ce(e3, t2, n2, o2, l2, i2) {
|
|
193
|
+
let a2 = xe(0, 0, n2, 0, 0, i2);
|
|
189
194
|
return true === a2 && (a2 = w($.pageContext, z.props.base.showDeleteBtnCondition, n2)), a2;
|
|
190
195
|
}
|
|
191
|
-
function
|
|
196
|
+
function De(e3, t2, n2, o2, l2) {
|
|
192
197
|
ie.value.createRow(G, {}, { getDefaultValueFunc: y }, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2 }).then(() => {
|
|
193
|
-
|
|
198
|
+
qe(l2);
|
|
194
199
|
});
|
|
195
200
|
}
|
|
196
|
-
function
|
|
201
|
+
function ye(e3, t2, n2, o2, l2, i2, a2, u2) {
|
|
197
202
|
ie.value.deleteRow(l2, G, false, a2, u2, n2);
|
|
198
203
|
}
|
|
199
|
-
function
|
|
204
|
+
function Pe(e3) {
|
|
200
205
|
T(X, Y, e3);
|
|
201
206
|
}
|
|
202
|
-
function
|
|
207
|
+
function Ie(e3) {
|
|
203
208
|
j.subTablePageInfo || (j.subTablePageInfo = {}), j.subTablePageInfo[L] || (j.subTablePageInfo[L] = {}), j.subTablePageInfo[L].title = z.title ? z.title : z.code, j.subTablePageInfo[L].pageSize = e3;
|
|
204
209
|
}
|
|
205
|
-
function
|
|
210
|
+
function Re(e3) {
|
|
206
211
|
const t2 = e3.key, n2 = e3.value;
|
|
207
212
|
j.selectOptions || (j.selectOptions = {}), j.selectOptions[t2] = n2;
|
|
208
213
|
}
|
|
209
|
-
function
|
|
214
|
+
function Oe(e3) {
|
|
210
215
|
const t2 = j.code + "_";
|
|
211
216
|
P.$emit(t2 + "prohibit-edit", e3);
|
|
212
217
|
}
|
|
213
|
-
function
|
|
218
|
+
function _e(e3) {
|
|
214
219
|
const t2 = j.entity.data;
|
|
215
220
|
if (e3) for (const n2 in e3) t2[n2] = e3[n2];
|
|
216
221
|
}
|
|
217
|
-
function
|
|
222
|
+
function ke(e3, t2) {
|
|
218
223
|
if (void 0 !== t2) {
|
|
219
224
|
q.value = e3;
|
|
220
225
|
p(j, z, { selection: e3, row: t2 });
|
|
221
226
|
}
|
|
222
227
|
}
|
|
223
|
-
function
|
|
228
|
+
function Ae(e3) {
|
|
224
229
|
q.value = e3;
|
|
225
230
|
d(j, z, { selection: e3 });
|
|
226
231
|
}
|
|
227
|
-
function
|
|
232
|
+
function Me(e3) {
|
|
228
233
|
f(j, z, { newSelection: e3 });
|
|
229
234
|
}
|
|
230
|
-
function
|
|
235
|
+
function Ee(e3, t2, n2, o2) {
|
|
231
236
|
b(j, z, { row: e3, column: t2, cell: n2, event: o2 });
|
|
232
237
|
}
|
|
233
|
-
function
|
|
238
|
+
function Ne(e3, t2, n2, o2) {
|
|
234
239
|
g(j, z, { row: e3, column: t2, cell: n2, event: o2 });
|
|
235
240
|
}
|
|
236
|
-
function
|
|
241
|
+
function Fe(e3, t2, n2) {
|
|
237
242
|
m(j, z, { row: e3, column: t2, event: n2 });
|
|
238
243
|
}
|
|
239
|
-
function
|
|
244
|
+
function $e(e3, t2, n2) {
|
|
240
245
|
v(j, z, { row: e3, column: t2, event: n2 });
|
|
241
246
|
}
|
|
242
|
-
function
|
|
247
|
+
function je(e3, t2) {
|
|
243
248
|
h(j, z, { column: e3, event: t2 });
|
|
244
249
|
}
|
|
245
|
-
function
|
|
250
|
+
function ze(e3) {
|
|
246
251
|
j.entity.data = e3;
|
|
247
252
|
}
|
|
248
|
-
function
|
|
253
|
+
function Ve() {
|
|
249
254
|
return x(X, Y);
|
|
250
255
|
}
|
|
251
|
-
function
|
|
256
|
+
function Ge(e3) {
|
|
252
257
|
return T(X, Y, e3);
|
|
253
258
|
}
|
|
254
|
-
function
|
|
259
|
+
function He(e3) {
|
|
255
260
|
return A(e3, null, $);
|
|
256
261
|
}
|
|
257
|
-
function
|
|
262
|
+
function Le(e3) {
|
|
258
263
|
return M(e3, e3.cellStyle, $);
|
|
259
264
|
}
|
|
260
|
-
function
|
|
265
|
+
function Ue(e3) {
|
|
261
266
|
const t2 = e3.titleStyle, n2 = $.configure.style.titleStyle;
|
|
262
267
|
return E(e3, { cellTitleStyle: t2, titleStyle: n2 }, $);
|
|
263
268
|
}
|
|
264
|
-
function
|
|
269
|
+
function Be({ row: e3, editConditions: t2 }) {
|
|
265
270
|
let n2 = true;
|
|
266
271
|
return t2 && t2.length > 0 && (n2 = w($.pageContext, t2, e3)), n2;
|
|
267
272
|
}
|
|
268
|
-
function
|
|
273
|
+
function qe(e3) {
|
|
269
274
|
var _a2;
|
|
270
275
|
(_a2 = ie.value) == null ? void 0 : _a2.setScrollTopByRowIndex(e3);
|
|
271
276
|
}
|
|
272
277
|
return function(e3) {
|
|
273
278
|
const t2 = re();
|
|
274
|
-
t2 ? fe(t2, e3) : (ue(t2, e3), e3.isPageInfo = false, e3.subTableData =
|
|
279
|
+
t2 ? fe(t2, e3) : (ue(t2, e3), e3.isPageInfo = false, e3.subTableData = Ve(), be(e3));
|
|
275
280
|
}(oe.value), N2({ createRow: function() {
|
|
276
281
|
return ie.value.createRow(G);
|
|
277
282
|
}, getSelections: function() {
|
|
@@ -287,7 +292,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
287
292
|
return z;
|
|
288
293
|
}, validatorSunTableListData: function() {
|
|
289
294
|
return ie.value.validatorSunTableListData();
|
|
290
|
-
}, getValue:
|
|
295
|
+
}, getValue: Ve, setValue: Ge, getTableSelectOptions: function() {
|
|
291
296
|
if (ie.value) return ie.value.getTableSelectOptions(G);
|
|
292
297
|
}, dynamicControlTableEdit: function(e3, t2, n2) {
|
|
293
298
|
ie.value && ie.value.dynamicControlTableEdit(e3, t2, n2);
|
|
@@ -308,7 +313,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
308
313
|
}, setCurrentRowIndex: function(e3) {
|
|
309
314
|
var _a2;
|
|
310
315
|
(_a2 = ie.value) == null ? void 0 : _a2.setCurrentRowIndex(e3);
|
|
311
|
-
}, setScrollTopByRowIndex:
|
|
316
|
+
}, setScrollTopByRowIndex: qe, getTableData: function() {
|
|
312
317
|
var _a2;
|
|
313
318
|
return (_a2 = ie.value) == null ? void 0 : _a2.getTableData();
|
|
314
319
|
}, addRequiredClass: function(e3, t2, n2) {
|
|
@@ -322,7 +327,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
322
327
|
(_a2 = ie.value) == null ? void 0 : _a2.scrollToCell({ fieldName: e3, rowIndex: t2, pageNum: n2 });
|
|
323
328
|
} }), (e3, t2) => {
|
|
324
329
|
const n2 = l("super-grid");
|
|
325
|
-
return a(), i("div", null, [ee.value ? (a(), u(n2, { key: 0, ref_key: "gridRef", ref: ie, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(G), settings: s(K), isDialog: s(j).isDialog, onSelect:
|
|
330
|
+
return a(), i("div", null, [ee.value ? (a(), u(n2, { key: 0, ref_key: "gridRef", ref: ie, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(G), settings: s(K), isDialog: s(j).isDialog, onSelect: ke, onSelectAll: Ae, onSelectionChange: Me, onCellClick: Ee, onCellDblclick: Ne, onRowClick: Fe, onRowDblclick: $e, onHeaderClick: je, onFnProhibitToEdit: Oe, onChangeGridData: Pe, onReloadGrid: fe, onRefresMainTableFields: _e, onSetSelectOptions: Re, onChangeRowsPerPage: Ie, onNewOpenGridDialog: s(I), onChangeFormData: ze }, null, 8, ["url", "options", "code", "settings", "isDialog", "onNewOpenGridDialog"])) : r("", true)]);
|
|
326
331
|
};
|
|
327
332
|
} });
|
|
328
333
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./label-runtime.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const t = r(e, [["__scopeId", "data-v-
|
|
4
|
+
const t = r(e, [["__scopeId", "data-v-c76703c3"]]);
|
|
5
5
|
export {
|
|
6
6
|
t as default
|
|
7
7
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as u, createElementBlock as i, createBlock as o, openBlock as s, normalizeStyle as p, normalizeClass as r, unref as f, createElementVNode as c, toDisplayString as v, createSlots as y, withCtx as g, createCommentVNode as m, createTextVNode as d } from "vue";
|
|
2
2
|
import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
|
|
3
|
-
import { getVariableValue as h, formatValueByType as
|
|
4
|
-
import { SuperIcon as
|
|
5
|
-
import { getCustomFunc as
|
|
3
|
+
import { getVariableValue as h, formatValueByType as w } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import { SuperIcon as T } from "agilebuilder-ui";
|
|
5
|
+
import { getCustomFunc as k, handleAfterInitEvent as C, handleFormEvent as _ } from "../../../../utils/events/event-util.js";
|
|
6
6
|
import { $t as I } from "../../../../utils/i18n-util.js";
|
|
7
7
|
const b = { style: { width: "100%", "text-align": "center", "font-weight": "700", "font-size": "24px" } }, V = { style: { overflow: "hidden", "white-space": "nowrap" } }, j = ["title"], R = e({ __name: "label-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: R2 }) {
|
|
8
8
|
const S = e2, P = S.pageContext.entity ? S.pageContext.entity : {};
|
|
@@ -14,9 +14,9 @@ const b = { style: { width: "100%", "text-align": "center", "font-weight": "700"
|
|
|
14
14
|
let t2 = null;
|
|
15
15
|
B.value && (t2 = B.value.filter((t3) => t3.value == e3)), t2 && t2.length > 0 && (e3 = t2[0].label);
|
|
16
16
|
} else if ("custom" === G) {
|
|
17
|
-
const t2 =
|
|
17
|
+
const t2 = k(S.pageContext, W.value.formatFunc);
|
|
18
18
|
t2 && (e3 = t2.apply(t2, [{ pageContext: S.pageContext, configureObj: S.configure, value: e3 }]));
|
|
19
|
-
} else e3 =
|
|
19
|
+
} else e3 = w(e3, G, W.value);
|
|
20
20
|
return e3 = null == e3 ? "" : e3, e3;
|
|
21
21
|
}), J = t(null), K = t(null), L = t(null);
|
|
22
22
|
return n(() => {
|
|
@@ -28,7 +28,7 @@ const b = { style: { width: "100%", "text-align": "center", "font-weight": "700"
|
|
|
28
28
|
B.value = e3 || [];
|
|
29
29
|
} }), (e3, t2) => {
|
|
30
30
|
const l2 = u("el-form-item");
|
|
31
|
-
return W.value.whetherTittle ? (s(), i("div", { key: 0, ref_key: "titleRef", ref: L, class: r(f(z)), style: p(f(A)) }, [c("div", b, v(W.value.title), 1)], 6)) : W.value.tittleShow ? (s(), o(l2, { key: 1, ref_key: "formItemRef", ref: J, required: !!W.value.required, class: r([f(z), W.value.contentAlign ? "form-item-align-" + W.value.contentAlign : "formNo" === W.value.showType ? "form-item-align-flex-end" : ""]), "label-width": W.value.labelWidth, style: p(f(A)) }, y({ default: g(() => [c("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: K, onClick: t2[0] || (t2[0] = (t3) => f(_)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", V, [W.value.preIconValue || W.value.preText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != W.value.iconPosition, "el-input-group__append": "outer" == W.value.iconPosition }), style: p(f(F)) }, [W.value.preIconType && W.value.preIconValue ? (s(), o(f(
|
|
31
|
+
return W.value.whetherTitle || W.value.whetherTittle ? (s(), i("div", { key: 0, ref_key: "titleRef", ref: L, class: r(f(z)), style: p(f(A)) }, [c("div", b, v(f(I)(W.value.title)), 1)], 6)) : W.value.tittleShow ? (s(), o(l2, { key: 1, ref_key: "formItemRef", ref: J, required: !!W.value.required, class: r([f(z), W.value.contentAlign ? "form-item-align-" + W.value.contentAlign : "formNo" === W.value.showType ? "form-item-align-flex-end" : ""]), "label-width": W.value.labelWidth, style: p(f(A)) }, y({ default: g(() => [c("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: K, onClick: t2[0] || (t2[0] = (t3) => f(_)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", V, [W.value.preIconValue || W.value.preText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != W.value.iconPosition, "el-input-group__append": "outer" == W.value.iconPosition }), style: p(f(F)) }, [W.value.preIconType && W.value.preIconValue ? (s(), o(f(T), { key: 0, iconType: W.value.preIconType, iconValue: W.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + v(f(I)(W.value.preText)), 1)], 6)) : m("", true), d(" " + v(H.value), 1)]), W.value.sufIconValue || W.value.sufText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != W.value.iconPosition, "el-input-group__append": "outer" == W.value.iconPosition }) }, [W.value.sufIconType && W.value.sufIconValue ? (s(), o(f(T), { key: 0, style: {}, iconType: W.value.sufIconType, iconValue: W.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : m("", true), c("span", null, " " + v(f(I)(W.value.sufText)), 1)], 2)) : m("", true)], 512)]), _: 2 }, [W.value.tittleShow ? { name: "label", fn: g(() => [c("div", { ref_key: "titleRef", ref: L, style: p({ ...f(D), ...f(N) }) }, v(f(I)(W.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : (s(), i("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: t2[1] || (t2[1] = (t3) => f(_)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: H.value }, v(W.value.prefixIcon) + " " + v(H.value), 9, j), W.value.suffixTxt ? (s(), i("span", { key: 0, class: r(f(E)), style: p(f(F)) }, v(f(I)(W.value.suffixTxt)), 7)) : m("", true)]));
|
|
32
32
|
};
|
|
33
33
|
} });
|
|
34
34
|
export {
|
|
@@ -11,118 +11,121 @@ import { usePageContextStore as B } from "../../utils/page-store.js";
|
|
|
11
11
|
import { isHasFieldAuth as H } from "../../utils/table-utils.js";
|
|
12
12
|
import { checkPermission as R } from "agilebuilder-ui/src/utils/permission.js";
|
|
13
13
|
import { isMobileBrowser as F } from "agilebuilder-ui/src/utils/common-util";
|
|
14
|
-
const
|
|
14
|
+
const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
15
15
|
var _a, _b, _c;
|
|
16
|
-
const
|
|
17
|
-
null ==
|
|
18
|
-
let
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
const
|
|
22
|
-
|
|
16
|
+
const L2 = e2;
|
|
17
|
+
null == L2.configure.style && (L2.configure.style = {});
|
|
18
|
+
let k = null;
|
|
19
|
+
const D = w(L2.configure, L2.pageContext);
|
|
20
|
+
L2.configure && L2.configure.props && L2.configure.props.base && (L2.configure.props.base.functionCode = D);
|
|
21
|
+
const E = R(D || "true", L2.pageContext.systemCode), J = H(L2.pageContext, L2.configure), W = E && J;
|
|
22
|
+
L2.configure && L2.configure.props && L2.configure.props.base && (L2.configure.props.base.isHasFieldAuthPermission = W), j(L2.pageContext, L2.configure, W);
|
|
23
23
|
let q = o(null), z = o(true), G = o("");
|
|
24
|
-
if (
|
|
24
|
+
if (L2.configure && L2.configure.props) {
|
|
25
25
|
let e3 = [];
|
|
26
|
-
((_a =
|
|
26
|
+
((_a = L2.configure.props.base) == null ? void 0 : _a.showConditions) && (e3 = "string" == typeof L2.configure.props.base.showConditions ? JSON.parse(L2.configure.props.base.showConditions) : L2.configure.props.base.showConditions), z = t(() => {
|
|
27
27
|
var _a2;
|
|
28
28
|
let o2 = true;
|
|
29
29
|
if (W) if (q.value && null !== q.value) o2 = "show" === q.value;
|
|
30
|
-
else if (O(
|
|
30
|
+
else if (O(L2.pageContext, L2.configure)) if (e3 && e3.length > 0) o2 = V(L2.pageContext, e3);
|
|
31
31
|
else {
|
|
32
|
-
const e4 = (_a2 =
|
|
32
|
+
const e4 = (_a2 = L2.configure.props.base) == null ? void 0 : _a2.state;
|
|
33
33
|
e4 && "hidden" === e4 && (o2 = false);
|
|
34
34
|
}
|
|
35
35
|
else o2 = false;
|
|
36
36
|
else o2 = false;
|
|
37
37
|
return o2;
|
|
38
38
|
});
|
|
39
|
-
if (
|
|
40
|
-
if (
|
|
39
|
+
if (L2.configure._dynamicShowFlag = z, (_b = L2.configure.props) == null ? void 0 : _b.hiddenNotValidator) {
|
|
40
|
+
if (L2.pageContext.hiddenNotValidatorCodes || (L2.pageContext.hiddenNotValidatorCodes = /* @__PURE__ */ new Set()), "table" === L2.configure.name) k = L2.configure.code ? L2.configure.code : L2.configure.uuid;
|
|
41
41
|
else {
|
|
42
|
-
let e4 = N(
|
|
43
|
-
|
|
42
|
+
let e4 = N(L2.configure);
|
|
43
|
+
k = e4 && e4.length > 0 ? e4[1] : null;
|
|
44
44
|
}
|
|
45
45
|
n(z, (e4) => {
|
|
46
|
-
e4 ?
|
|
46
|
+
e4 ? L2.pageContext.hiddenNotValidatorCodes.delete(k) : L2.pageContext.hiddenNotValidatorCodes.add(k);
|
|
47
47
|
}, { immediate: true });
|
|
48
48
|
}
|
|
49
|
-
if ((_c =
|
|
50
|
-
const e4 =
|
|
49
|
+
if ((_c = L2.configure.props.base) == null ? void 0 : _c.editConditions) {
|
|
50
|
+
const e4 = L2.configure.props.base.editConditions;
|
|
51
51
|
if (e4.length > 0) {
|
|
52
|
-
const o2 =
|
|
53
|
-
if (n2.rawSate = n2.state, S(
|
|
54
|
-
const e5 =
|
|
52
|
+
const o2 = L2.configure.runtime ? L2.configure.runtime : {}, n2 = o2.props ? o2.props : {};
|
|
53
|
+
if (n2.rawSate = n2.state, S(L2.pageContext) && L2.pageContext.fieldPermissionMap) {
|
|
54
|
+
const e5 = L2.configure.props.base;
|
|
55
55
|
if (e5 && e5.prop) {
|
|
56
56
|
let o3 = e5.prop;
|
|
57
57
|
o3 = _(o3);
|
|
58
|
-
const t2 =
|
|
58
|
+
const t2 = L2.pageContext.fieldPermissionMap.get(o3);
|
|
59
59
|
t2 && false === t2.canEdit && (G.value = "disabled");
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
n2.state = t({ get() {
|
|
63
63
|
if ("disabled" === G.value) return G.value;
|
|
64
|
-
return V(
|
|
64
|
+
return V(L2.pageContext, e4) ? "" : "disabled";
|
|
65
65
|
}, set() {
|
|
66
66
|
} });
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
const I = o({});
|
|
71
|
-
I.value = i(h(
|
|
71
|
+
I.value = i(h(L2.configure.name));
|
|
72
72
|
const K = o(true);
|
|
73
73
|
null == I.value && (I.value = v, K.value = false);
|
|
74
|
-
const Q = o(null), U = o({}), X = o(""), Y = T(
|
|
74
|
+
const Q = o(null), U = o({}), X = o(""), Y = T(L2.configure);
|
|
75
75
|
Y && (X.value = Y);
|
|
76
|
-
const Z =
|
|
76
|
+
const Z = L2.configure.runtime && L2.configure.runtime.common ? L2.configure.runtime.common : {};
|
|
77
77
|
if (Z.class && (X.value += " " + Z.class), Z.style) {
|
|
78
78
|
Object.assign(U.value, Z.style);
|
|
79
|
-
const e3 =
|
|
79
|
+
const e3 = L2.pageContext && L2.pageContext.dimensions ? L2.pageContext.dimensions : b.PC, o2 = Z.style[e3 + "_style"];
|
|
80
80
|
o2 && Object.assign(U.value, o2);
|
|
81
81
|
const t2 = Z.style[e3 + "_class"];
|
|
82
82
|
t2 && (X.value += " " + t2);
|
|
83
83
|
}
|
|
84
84
|
const ee = B();
|
|
85
|
-
|
|
85
|
+
let oe = false;
|
|
86
|
+
function te(e3) {
|
|
87
|
+
var _a2, _b2, _c2;
|
|
88
|
+
if (!e3) return;
|
|
86
89
|
if (Q.value = e3, e3 && !e3.show && (e3.show = function() {
|
|
87
90
|
q.value = "show";
|
|
88
91
|
}), e3 && !e3.hide && (e3.hide = function() {
|
|
89
92
|
q.value = "hide";
|
|
90
93
|
}), e3 && !e3.getConfigure && (e3.getConfigure = function() {
|
|
91
|
-
return
|
|
92
|
-
}),
|
|
93
|
-
else if ("table" ===
|
|
94
|
-
else if (
|
|
95
|
-
const e4 =
|
|
94
|
+
return L2.configure;
|
|
95
|
+
}), L2.configure.uuid && x(L2.pageContext, L2.configure.uuid, Q), L2.configure.code) y(L2.pageContext, L2.configure.code, Q);
|
|
96
|
+
else if ("table" === L2.configure.name) y(L2.pageContext, L2.configure.uuid, Q);
|
|
97
|
+
else if (L2.configure.props && L2.configure.props.base) {
|
|
98
|
+
const e4 = L2.configure.props.base;
|
|
96
99
|
if (e4.prop) {
|
|
97
100
|
let o3 = e4.prop;
|
|
98
|
-
o3.startsWith("${") && (o3 = o3.substring(2, o3.length - 1)), o3.includes(".") && (o3 = o3.substring(o3.indexOf(".") + 1)), y(
|
|
101
|
+
o3.startsWith("${") && (o3 = o3.substring(2, o3.length - 1)), o3.includes(".") && (o3 = o3.substring(o3.indexOf(".") + 1)), y(L2.pageContext, o3, Q);
|
|
99
102
|
}
|
|
100
103
|
}
|
|
101
|
-
const o2 =
|
|
104
|
+
const o2 = L2.configure.props ? L2.configure.props.base : null;
|
|
102
105
|
if (o2 && o2.prop) {
|
|
103
106
|
let e4 = o2.prop;
|
|
104
|
-
e4 = _(e4), M(
|
|
107
|
+
e4 = _(e4), M(L2.pageContext, e4), L2.pageContext.propTitleMap = L2.pageContext.propTitleMap || {}, L2.pageContext.propTitleMap[e4] = o2.title ? o2.title : e4;
|
|
105
108
|
}
|
|
106
109
|
!function() {
|
|
107
110
|
if (!Q.value) return;
|
|
108
|
-
const e4 = A(
|
|
109
|
-
"table" !==
|
|
110
|
-
var
|
|
111
|
-
if (!(((
|
|
111
|
+
const e4 = A(L2.pageContext, L2.configure);
|
|
112
|
+
"table" !== L2.configure.name && e4 && e4.isCalcHeight && C(() => {
|
|
113
|
+
var _a3;
|
|
114
|
+
if (!(((_a3 = Q.value) == null ? void 0 : _a3.$el) || Q.value)) return;
|
|
112
115
|
const e5 = (o3 = 0) => {
|
|
113
116
|
if (!Q.value) return;
|
|
114
117
|
let t2 = Q.value.$el || Q.value;
|
|
115
118
|
if (!t2) return;
|
|
116
119
|
const n2 = t2.getBoundingClientRect();
|
|
117
|
-
null !==
|
|
120
|
+
null !== ie && Math.abs(n2.y - ie) < 1 ? ne() : o3 < 10 ? (ie = n2.y, re = setTimeout(() => {
|
|
118
121
|
e5(o3 + 1);
|
|
119
|
-
}, 50)) :
|
|
122
|
+
}, 50)) : ne();
|
|
120
123
|
};
|
|
121
|
-
|
|
124
|
+
ie = null, e5();
|
|
122
125
|
});
|
|
123
|
-
}();
|
|
126
|
+
}(), se(), oe || (oe = true, ee.countComponentsLoadedNumber(), ((_c2 = (_b2 = (_a2 = L2.configure.props) == null ? void 0 : _a2.base) == null ? void 0 : _b2.autoAnchorConditions) == null ? void 0 : _c2.length) > 0 && ee.setAutoAnchorComponentConditions(L2.configure.uuid, L2.configure.props.base.autoAnchorConditions));
|
|
124
127
|
}
|
|
125
|
-
function
|
|
128
|
+
function ne() {
|
|
126
129
|
if (!Q.value) return;
|
|
127
130
|
let e3 = Q.value.$el;
|
|
128
131
|
e3 || (e3 = Q.value);
|
|
@@ -130,34 +133,33 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
130
133
|
if (!e3 || !o2) return;
|
|
131
134
|
const t2 = e3.getBoundingClientRect();
|
|
132
135
|
let n2 = window.innerHeight - t2.y - 30, i2 = n2 + "";
|
|
133
|
-
if ("tabs" ===
|
|
136
|
+
if ("tabs" === L2.configure.name && L2.pageContext.isDialog && !F()) {
|
|
134
137
|
const o3 = e3.closest(".runtime-page-container");
|
|
135
138
|
if (o3) {
|
|
136
139
|
const e4 = o3.getBoundingClientRect(), r2 = t2.y - e4.y;
|
|
137
140
|
n2 = e4.height - r2 - 30, i2 = n2 + "px";
|
|
138
141
|
}
|
|
139
142
|
} else $(n2) && (i2 = n2 + "px");
|
|
140
|
-
U.value.height = i2, U.value["overflow-y"] = "auto", U.value["overflow-x"] = "hidden",
|
|
143
|
+
U.value.height = i2, U.value["overflow-y"] = "auto", U.value["overflow-x"] = "hidden", L2.configure.sytle || (L2.configure.sytle = {}), L2.configure.sytle._heightStyle = i2;
|
|
141
144
|
}
|
|
142
145
|
r(() => {
|
|
143
|
-
|
|
144
|
-
re(), ee.countComponentsLoadedNumber(), ((_c2 = (_b2 = (_a2 = k2.configure.props) == null ? void 0 : _a2.base) == null ? void 0 : _b2.autoAnchorConditions) == null ? void 0 : _c2.length) > 0 && ee.setAutoAnchorComponentConditions(k2.configure.uuid, k2.configure.props.base.autoAnchorConditions);
|
|
146
|
+
W && P(L2.configure) || ee.countComponentsLoadedNumber();
|
|
145
147
|
}), s(() => {
|
|
146
148
|
var _a2;
|
|
147
|
-
|
|
149
|
+
re && clearTimeout(re), k && ((_a2 = L2.pageContext.hiddenNotValidatorCodes) == null ? void 0 : _a2.delete(k));
|
|
148
150
|
});
|
|
149
|
-
let
|
|
150
|
-
const
|
|
151
|
+
let ie = null, re = null;
|
|
152
|
+
const se = () => {
|
|
151
153
|
if (!Q.value) return;
|
|
152
154
|
let e3 = Q.value.$el;
|
|
153
155
|
e3 || (e3 = Q.value);
|
|
154
156
|
const o2 = e3.parentNode;
|
|
155
157
|
if (!e3 || !o2) return;
|
|
156
|
-
const t2 =
|
|
158
|
+
const t2 = L2.configure.props ? L2.configure.props : {}, n2 = L2.configure.style ? L2.configure.style : {}, i2 = t2.position;
|
|
157
159
|
"top" == i2 || "bottom" == i2 || n2.position;
|
|
158
160
|
};
|
|
159
|
-
return (e3, o2) => a(W) && a(P)(e3.configure) ? u((g(), p(c(I.value), { key: 0, ref:
|
|
161
|
+
return (e3, o2) => a(W) && a(P)(e3.configure) ? u((g(), p(c(I.value), { key: 0, ref: te, style: d(U.value), class: f(X.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[m, a(z)]]) : l("", true);
|
|
160
162
|
} });
|
|
161
163
|
export {
|
|
162
|
-
|
|
164
|
+
L as default
|
|
163
165
|
};
|
|
@@ -3,6 +3,7 @@ import { PageDesign } from '../utils/interfaces/page-design-types';
|
|
|
3
3
|
|
|
4
4
|
declare function pickFileDone(data: any): void;
|
|
5
5
|
declare function uploadFileDone(data: any): void;
|
|
6
|
+
declare function uploadFileError(data: any): void;
|
|
6
7
|
declare function scanDone(data: any): void;
|
|
7
8
|
declare function getFormFormatData(): any;
|
|
8
9
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
@@ -61,6 +62,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
61
62
|
}>, {
|
|
62
63
|
pickFileDone: typeof pickFileDone;
|
|
63
64
|
uploadFileDone: typeof uploadFileDone;
|
|
65
|
+
uploadFileError: typeof uploadFileError;
|
|
64
66
|
scanDone: typeof scanDone;
|
|
65
67
|
getFormFormatData: typeof getFormFormatData;
|
|
66
68
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|