super-page-runtime 2.3.22 → 2.3.23
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 +28 -37
- package/dist/es/components/runtime/utils/events/standard-event.js +363 -364
- package/dist/es/components/runtime/utils/events/validator-util.js +4 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +30 -30
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +68 -68
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +29 -29
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +13 -22
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +77 -77
- package/package.json +2 -2
|
@@ -84,11 +84,13 @@ function g(e2, n2, r2) {
|
|
|
84
84
|
if (u4 && u4.notEmpty) {
|
|
85
85
|
let r8 = false;
|
|
86
86
|
if (n5[o5] ? Array.isArray(n5[o5]) && 0 === n5[o5].length && (r8 = true) : r8 = true, r8) {
|
|
87
|
-
const r9 = s(e5, o5)
|
|
87
|
+
const r9 = s(e5, o5);
|
|
88
|
+
if (!r9) return true;
|
|
89
|
+
const l4 = r9.getConfigure();
|
|
88
90
|
if ((_a = u4.notEmptyCondition) == null ? void 0 : _a.parentCondition) {
|
|
89
91
|
if (false === a(u4.notEmptyCondition.parentCondition.replaceAll("${field[", "${parent["), e5.dataTypeMaps, n5, {}, (_b = e5.entity) == null ? void 0 : _b.request, (_c = e5.entity) == null ? void 0 : _c.task, e5.contextParam)) return true;
|
|
90
92
|
}
|
|
91
|
-
return t({ showClose: true, message: i().t("superPageRuntimeMessage.xxxNotEmpty", { label:
|
|
93
|
+
return t({ showClose: true, message: i().t("superPageRuntimeMessage.xxxNotEmpty", { label: l4.title ? l4.title : o5 }), type: "warning" }), false;
|
|
92
94
|
}
|
|
93
95
|
}
|
|
94
96
|
}
|
|
@@ -251,7 +251,7 @@ const Q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
251
251
|
}(r2), columns: e3, title: oe == null ? void 0 : oe.title };
|
|
252
252
|
} }), (o2, r2) => {
|
|
253
253
|
const t2 = i("el-table");
|
|
254
|
-
return u(), a("div", { style: l(s(Y)), class: p([s(Z), "amb-widget-chart amb-widget-flex"]), ref: "thisRef" }, [c(g(b, { ref_key: "headerRef", ref: re, headerInfo: s(oe), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[d, s(oe).showHeader || e2.pageContext.showHomepageSearch]]), g(t2, { ref_key: "gridRef", ref: he, data: ne.value, style: { width: "100%" }, "max-height": s(be), "header-cell-style": je, "row-style": $e, "cell-style": Fe, "show-summary": le.value, stripe: e2.configure.props.base.stripe, "summary-method": ke, "span-method": Ne }, { default: h(() => [te.value ? (u(true), a(v, { key: 0 }, y(ue.value, (o3, r3) => (u(), a(v, { key: r3 }, [o3.isLeaf ? (u(), f(I, { key: 1, configure: e2.configure, pageContext: e2.pageContext, column: pe.value[o3.columnUuid] }, null, 8, ["configure", "pageContext", "column"])) : (u(), f(N, { key: 0, configure: e2.configure, pageContext: e2.pageContext, groupColumn: o3, columnsConfigKeyValues: pe.value }, null, 8, ["configure", "pageContext", "groupColumn", "columnsConfigKeyValues"]))], 64))), 128)) : (u(true), a(v, { key: 1 }, y(ve.value, (o3, r3) => (u(), f(I, { key: r3, column: o3, configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["column", "configure", "pageContext"]))), 128))]), _: 1 }, 8, ["data", "max-height", "show-summary", "stripe"]), e2.configure.pageination && e2.configure.pageination.enable ? (u(), f(R, { key: 0, configure: e2.configure, "table-data": ne.value, total: ye.value, onPageChange: Ie, onPageSizeChange: Re }, null, 8, ["configure", "table-data", "total"])) : m("", true)], 6);
|
|
254
|
+
return u(), a("div", { style: l(s(Y)), class: p([s(Z), "amb-widget-chart amb-widget-flex amb-chart-table"]), ref: "thisRef" }, [c(g(b, { ref_key: "headerRef", ref: re, headerInfo: s(oe), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[d, s(oe).showHeader || e2.pageContext.showHomepageSearch]]), g(t2, { ref_key: "gridRef", ref: he, data: ne.value, style: { width: "100%" }, "max-height": s(be), "header-cell-style": je, "row-style": $e, "cell-style": Fe, "show-summary": le.value, stripe: e2.configure.props.base.stripe, "summary-method": ke, "span-method": Ne }, { default: h(() => [te.value ? (u(true), a(v, { key: 0 }, y(ue.value, (o3, r3) => (u(), a(v, { key: r3 }, [o3.isLeaf ? (u(), f(I, { key: 1, configure: e2.configure, pageContext: e2.pageContext, column: pe.value[o3.columnUuid] }, null, 8, ["configure", "pageContext", "column"])) : (u(), f(N, { key: 0, configure: e2.configure, pageContext: e2.pageContext, groupColumn: o3, columnsConfigKeyValues: pe.value }, null, 8, ["configure", "pageContext", "groupColumn", "columnsConfigKeyValues"]))], 64))), 128)) : (u(true), a(v, { key: 1 }, y(ve.value, (o3, r3) => (u(), f(I, { key: r3, column: o3, configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["column", "configure", "pageContext"]))), 128))]), _: 1 }, 8, ["data", "max-height", "show-summary", "stripe"]), e2.configure.pageination && e2.configure.pageination.enable ? (u(), f(R, { key: 0, configure: e2.configure, "table-data": ne.value, total: ye.value, onPageChange: Ie, onPageSizeChange: Re }, null, 8, ["configure", "table-data", "total"])) : m("", true)], 6);
|
|
255
255
|
};
|
|
256
256
|
} });
|
|
257
257
|
export {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as e, ref as t, onMounted as n, watch as o, onUnmounted as i, resolveComponent as a, createElementBlock as l, openBlock as r, unref as u, createVNode as s } from "vue";
|
|
2
|
-
import { setTableEvents as c, canExecuteButton as p, doAfterClickEvent as d, doBeforeClickEvent as f, gridSelectRecord as g, gridSelectAllRecords as m, gridSelectionChange as v, cellClick as h, cellDblClick as b, rowClick as
|
|
2
|
+
import { setTableEvents as c, canExecuteButton as p, doAfterClickEvent as d, doBeforeClickEvent as f, gridSelectRecord as g, gridSelectAllRecords as m, gridSelectionChange as v, cellClick as h, cellDblClick as b, rowClick as w, rowDblClick as S, headerClick as C, getEventNameByType as y, getEventFuncByType as x, getHandleEvent as D } from "../../../../utils/events/event-util.js";
|
|
3
3
|
import { getBaseUrl as E, getListCode as T, getRealRestApiPath as O, isWorkflowPage as R, isVariableInvalidValue as k } from "../../../../utils/common-util.js";
|
|
4
4
|
import { getAdditionalParamMap as I, getSaveFormRequestWithRow as V, standardEvents as j } from "../../../../utils/events/standard-event.js";
|
|
5
|
-
import { isMobileBrowser as N, isPromise as
|
|
6
|
-
import { getOperationButtons as
|
|
5
|
+
import { isMobileBrowser as N, isPromise as P } from "agilebuilder-ui/src/utils/common-util";
|
|
6
|
+
import { getOperationButtons as B, popupToPage as F } from "../../../../utils/table-utils.js";
|
|
7
7
|
import H from "../../../../utils/eventBus.js";
|
|
8
8
|
import { getDefaultValue as U } from "../../../../utils/page-init-util.js";
|
|
9
|
-
import { getSizeConfig as M, caculateShowCondition as
|
|
10
|
-
import { getComponentRefByCode as
|
|
11
|
-
import { getRowStyleUtil as
|
|
9
|
+
import { getSizeConfig as M, caculateShowCondition as $, decomposeVariable as _ } from "../../../../utils/page-helper-util.js";
|
|
10
|
+
import { getComponentRefByCode as A } from "../../../../utils/global-refs.js";
|
|
11
|
+
import { getRowStyleUtil as L, getCellStyleUtil as G, getHeaderCellStyleUtil as z } from "../../chart/table/chart-table-util.js";
|
|
12
12
|
const W = ["id"], q = e({ __name: "main-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: q2, emit: Q }) {
|
|
13
13
|
const Y = e2, J = Y.pageContext;
|
|
14
14
|
let K = Y.configure;
|
|
@@ -19,18 +19,18 @@ const W = ["id"], q = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
19
19
|
ie || (ie = window.$vueApp.config.globalProperties.baseURL);
|
|
20
20
|
const ae = t({}), le = [], re = t({});
|
|
21
21
|
re.value = function() {
|
|
22
|
-
var _a;
|
|
22
|
+
var _a, _b, _c;
|
|
23
23
|
const e3 = J.systemCode, t2 = J.code;
|
|
24
24
|
let n2 = K.props && K.props.dataOrigin && "[]" !== K.props.dataOrigin.sqlFilterCondition ? K.props.dataOrigin.sqlFilterCondition : null;
|
|
25
25
|
null == n2 && (n2 = []);
|
|
26
|
-
const o2 = (_a = K.props) == null ? void 0 : _a.dataOrigin.principalLinkage, i2 = { isSql: true, optionTableHeight: 0, rowKeyProp: o2, extraParam: { beanName: J.beanName, functionCode: t2 + ".listData", tableName: oe, systemCode: e3, pageCode: J.code, pageVersion: J.version, isMobile: N() }, initSearchForm: n2, lineEditOptions: { aftersaveIsCreateRow: false, autoSave: false, enter: Ce, esc: Te }, indexContinuous: !(!K.props || !K.props.otherSettings) && K.props.otherSettings.serialNumberContinuous, initSearch: !K.props || false !== K.props.dataOrigin.initializationQuery, resizeHeight: Ne, pageCode: J.code, pageVersion: J.version, additionalParamMap: I(J), showOverflowTooltip:
|
|
26
|
+
const o2 = (_a = K.props) == null ? void 0 : _a.dataOrigin.principalLinkage, i2 = { isSql: true, optionTableHeight: 0, rowKeyProp: o2, extraParam: { beanName: J.beanName, functionCode: t2 + ".listData", tableName: oe, systemCode: e3, pageCode: J.code, pageVersion: J.version, isMobile: N() }, initSearchForm: n2, lineEditOptions: { aftersaveIsCreateRow: false, autoSave: false, enter: Ce, esc: Te }, indexContinuous: !(!K.props || !K.props.otherSettings) && K.props.otherSettings.serialNumberContinuous, initSearch: !K.props || false !== K.props.dataOrigin.initializationQuery, resizeHeight: Ne, pageCode: J.code, pageVersion: J.version, additionalParamMap: I(J), showOverflowTooltip: (_c = (_b = K == null ? void 0 : K.props) == null ? void 0 : _b.otherSettings) == null ? void 0 : _c.showOverflowTooltip, isEnableEnterEvent: K.props && K.props.otherSettings && K.props.otherSettings.isEnableEnterEvent, isWithDataPermission: !!(K.props && K.props.otherSettings && K.props.otherSettings.isWithDataPermission) && K.props.otherSettings.isWithDataPermission, pageDevMode: false, isWorkflowEntity: R(J), tableClass: ee, tableStyle: Z, pageContext: J, configureObj: K, backendUrl: ie, cellStyleRender: Qe, rowStyleRender: qe, titleStyleRender: Ye, validateEitConditions: Ze };
|
|
27
27
|
return function(e4) {
|
|
28
28
|
var _a2;
|
|
29
29
|
((_a2 = K.props.highOrder) == null ? void 0 : _a2.mergeFields) && K.props.highOrder.mergeFields.length > 0 && (e4.mergeFields = K.props.highOrder.mergeFields.join(","));
|
|
30
30
|
}(i2), function(e4) {
|
|
31
31
|
const t3 = [];
|
|
32
32
|
e4.operations || (e4.operations = {});
|
|
33
|
-
|
|
33
|
+
B(J, K, t3, xe), e4.operations.operation = t3;
|
|
34
34
|
}(i2), function(e4) {
|
|
35
35
|
K.props && K.props.dataOrigin && K.props.dataOrigin.sortField && (e4.initSortInfo = [], K.props.dataOrigin.sortField.forEach((t3) => {
|
|
36
36
|
const n3 = { order: "desc" === t3.type ? "desc" : "asc" };
|
|
@@ -59,16 +59,16 @@ const W = ["id"], q = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
59
59
|
let e3 = ie + "/dsc/commons/list";
|
|
60
60
|
e3 && (e3 = O(e3, te, ne, J.isTest));
|
|
61
61
|
return e3;
|
|
62
|
-
}(), pe = T(J.code, J.version, K.uuid), de = J.code + "_" + pe, fe = t([]), ge = J.entity.page, me = t({ data: [] }), ve = J.superGridItems, he = ve ? ve[K.uuid] : null, be = t(false),
|
|
63
|
-
function
|
|
62
|
+
}(), pe = T(J.code, J.version, K.uuid), de = J.code + "_" + pe, fe = t([]), ge = J.entity.page, me = t({ data: [] }), ve = J.superGridItems, he = ve ? ve[K.uuid] : null, be = t(false), we = Q;
|
|
63
|
+
function Se() {
|
|
64
64
|
K.props.linkages && K.props.linkages.length > 0 && (K.props.linkages.forEach((e3) => {
|
|
65
|
-
const t2 =
|
|
65
|
+
const t2 = _(e3.fieldName);
|
|
66
66
|
t2 && t2.length > 1 && le.push(t2[1]);
|
|
67
67
|
}), le.length > 0 && function() {
|
|
68
68
|
let e3 = [];
|
|
69
69
|
Y.pageContext.toolsInputComponents && Y.pageContext.toolsInputComponents.length > 0 && Y.pageContext.toolsInputComponents.forEach((t2) => {
|
|
70
70
|
if (K.props.linkages.some((e4) => e4.fieldName === t2.prop) && t2.defaultValue) {
|
|
71
|
-
const n2 =
|
|
71
|
+
const n2 = _(t2.prop);
|
|
72
72
|
n2 && n2.length > 1 && e3.push(n2[1]);
|
|
73
73
|
}
|
|
74
74
|
});
|
|
@@ -105,7 +105,7 @@ const W = ["id"], q = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
105
105
|
if (ae.value[n2] = e3, "lineEditSave" === n2 ? t2 = ye : "restoreEdit" === n2 ? t2 = Oe : "lineEditUpdate" === n2 ? t2 = Re : "lineEditDelete" === n2 && (t2 = Ie), !t2) {
|
|
106
106
|
t2 = x(J, e3.events, "click");
|
|
107
107
|
}
|
|
108
|
-
} else ae.value[e3.uuid] = e3, t2 =
|
|
108
|
+
} else ae.value[e3.uuid] = e3, t2 = Be;
|
|
109
109
|
return { onClick: t2, eventName: n2 };
|
|
110
110
|
}
|
|
111
111
|
function De({ row: e3, columns: t2, additionalParamMap: n2 }) {
|
|
@@ -132,7 +132,7 @@ const W = ["id"], q = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
132
132
|
a2.props.base.tableUuid = l2.uuid;
|
|
133
133
|
const r2 = f(J, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
134
134
|
if (!r2) return;
|
|
135
|
-
|
|
135
|
+
P(r2) ? r2.then((e4) => {
|
|
136
136
|
e4 && se.value.restoreRow(i2, pe);
|
|
137
137
|
}) : se.value.restoreRow(i2, pe);
|
|
138
138
|
d(J, K, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
@@ -141,7 +141,7 @@ const W = ["id"], q = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
141
141
|
const a2 = ae.value.lineEditUpdate, l2 = K;
|
|
142
142
|
a2.props.base.tableUuid = l2.uuid;
|
|
143
143
|
const r2 = f(J, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
144
|
-
r2 && (
|
|
144
|
+
r2 && (P(r2) ? r2.then((l3) => {
|
|
145
145
|
l3 && ke(e3, t2, n2, o2, i2, a2);
|
|
146
146
|
}) : ke(e3, t2, n2, o2, i2, a2));
|
|
147
147
|
}
|
|
@@ -159,7 +159,7 @@ const W = ["id"], q = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
159
159
|
const a2 = ae.value.lineEditDelete, l2 = K;
|
|
160
160
|
a2.props.base.tableUuid = l2.uuid;
|
|
161
161
|
const r2 = f(J, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
162
|
-
r2 && (
|
|
162
|
+
r2 && (P(r2) ? r2.then((l3) => {
|
|
163
163
|
l3 && Ve(e3, t2, n2, o2, i2, a2);
|
|
164
164
|
}) : Ve(e3, t2, n2, o2, i2, a2));
|
|
165
165
|
}
|
|
@@ -200,13 +200,13 @@ const W = ["id"], q = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
200
200
|
se.value.toolbarRefresh(null, null, n2);
|
|
201
201
|
}
|
|
202
202
|
function Ne(e3) {
|
|
203
|
-
const t2 =
|
|
203
|
+
const t2 = Pe();
|
|
204
204
|
if (t2) {
|
|
205
205
|
let n2 = 0;
|
|
206
206
|
return e3.searchHeight && (n2 = e3.searchHeight), t2 - 10 - n2;
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function Pe() {
|
|
210
210
|
if (!se.value) return;
|
|
211
211
|
const e3 = M(Y.pageContext, Y.configure);
|
|
212
212
|
if (e3) {
|
|
@@ -219,7 +219,7 @@ const W = ["id"], q = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
219
219
|
if (e3.fixHeight && se.value && (se.value.tableHeight = e3.fixHeight), e3.maxHeight) return e3.maxHeight;
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function Be(e3, t2, n2, o2, i2, a2) {
|
|
223
223
|
const l2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2, button: a2, id: n2.ID ? n2.ID : n2.id }, r2 = ae.value[a2.sourceButton.uuid], u2 = K;
|
|
224
224
|
r2.props.base.tableUuid = u2.uuid, D(null, J, r2, "click", l2);
|
|
225
225
|
}
|
|
@@ -237,18 +237,18 @@ const W = ["id"], q = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
237
237
|
function Me(e3) {
|
|
238
238
|
v(J, K, { newSelection: e3 });
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function $e(e3, t2, n2, o2) {
|
|
241
241
|
h(J, K, { row: e3, column: t2, cell: n2, event: o2 });
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function _e(e3, t2, n2, o2) {
|
|
244
244
|
b(J, K, { row: e3, column: t2, cell: n2, event: o2 });
|
|
245
245
|
}
|
|
246
|
-
function _e(e3, t2, n2) {
|
|
247
|
-
S(J, K, { row: e3, column: t2, event: n2 });
|
|
248
|
-
}
|
|
249
246
|
function Ae(e3, t2, n2) {
|
|
250
247
|
w(J, K, { row: e3, column: t2, event: n2 });
|
|
251
248
|
}
|
|
249
|
+
function Le(e3, t2, n2) {
|
|
250
|
+
S(J, K, { row: e3, column: t2, event: n2 });
|
|
251
|
+
}
|
|
252
252
|
function Ge(e3, t2) {
|
|
253
253
|
C(J, K, { column: e3, event: t2 });
|
|
254
254
|
}
|
|
@@ -259,7 +259,7 @@ const W = ["id"], q = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
259
259
|
be.value = true;
|
|
260
260
|
}
|
|
261
261
|
function qe(e3) {
|
|
262
|
-
return
|
|
262
|
+
return L(e3, [], Y);
|
|
263
263
|
}
|
|
264
264
|
function Qe(e3) {
|
|
265
265
|
return G(e3, e3.cellStyle, Y);
|
|
@@ -291,7 +291,7 @@ const W = ["id"], q = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
291
291
|
se.value.pickFileDone(e4);
|
|
292
292
|
}), H.$on(pe + "-scanDone", (e4) => {
|
|
293
293
|
se.value.scanDone(e4);
|
|
294
|
-
}), re.value.formSetMaxHeight =
|
|
294
|
+
}), re.value.formSetMaxHeight = Pe(), re.value && re.value.configureObj.props.base && re.value.configureObj.props.base.isSafeDelete && we("setSafeDeleteTableCode", re.value.extraParam.tableName);
|
|
295
295
|
}), o(() => Y.pageContext.searchFormData, (e3) => {
|
|
296
296
|
me.value.data = e3;
|
|
297
297
|
}), o(() => Y.pageContext.entity.data, (e3) => {
|
|
@@ -308,10 +308,10 @@ const W = ["id"], q = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
308
308
|
};
|
|
309
309
|
function Ze({ row: e3, editConditions: t2 }) {
|
|
310
310
|
let n2 = true;
|
|
311
|
-
return t2 && t2.length > 0 && (n2 =
|
|
311
|
+
return t2 && t2.length > 0 && (n2 = $(Y.pageContext, t2, e3)), n2;
|
|
312
312
|
}
|
|
313
313
|
function et(e3, t2) {
|
|
314
|
-
const n2 =
|
|
314
|
+
const n2 = A(Y.pageContext, t2);
|
|
315
315
|
if (n2) {
|
|
316
316
|
const t3 = n2.getConfigure();
|
|
317
317
|
if ("datePicker" === t3.name) {
|
|
@@ -373,7 +373,7 @@ const W = ["id"], q = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
373
373
|
return (_a = se.value) == null ? void 0 : _a.getColumns();
|
|
374
374
|
} }), (e3, t2) => {
|
|
375
375
|
const n2 = a("super-grid");
|
|
376
|
-
return r(), l("div", { ref_key: "tableDivRef", ref: ue, id: u(pe) + "_tableDiv" }, [s(n2, { ref_key: "gridRef", ref: se, url: u(ce), options: re.value, code: u(pe), settings: u(he), "search-form-info": me.value, "list-toolbar-form-data": u(ge), isDialog: u(J).isDialog, onSelect: He, onSelectAll: Ue, onSelectionChange: Me, onCellClick:
|
|
376
|
+
return r(), l("div", { ref_key: "tableDivRef", ref: ue, id: u(pe) + "_tableDiv" }, [s(n2, { ref_key: "gridRef", ref: se, url: u(ce), options: re.value, code: u(pe), settings: u(he), "search-form-info": me.value, "list-toolbar-form-data": u(ge), isDialog: u(J).isDialog, onSelect: He, onSelectAll: Ue, onSelectionChange: Me, onCellClick: $e, onCellDblclick: _e, onRowClick: Ae, onRowDblclick: Le, onHeaderClick: Ge, onRefresh: ze, onNewOpenGridDialog: u(F), onCanShowMobileSearch: We, onGridOnmounted: Se }, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "isDialog", "onNewOpenGridDialog"])], 8, W);
|
|
377
377
|
};
|
|
378
378
|
} });
|
|
379
379
|
export {
|
|
@@ -4,26 +4,26 @@ import { caculateShowCondition as w, setVariableValue as T, getVariableValue as
|
|
|
4
4
|
import { getModelFields as D, getDefaultValue as y } from "../../../../utils/page-init-util.js";
|
|
5
5
|
import P from "../../../../utils/eventBus.js";
|
|
6
6
|
import { popupToPage as R, getOperationButtons as I } from "../../../../utils/table-utils.js";
|
|
7
|
-
import { getListCode as O, getBaseUrl as
|
|
8
|
-
import { getAdditionalParamMap as
|
|
7
|
+
import { getListCode as O, getBaseUrl as _ } from "../../../../utils/common-util.js";
|
|
8
|
+
import { getAdditionalParamMap as k } from "../../../../utils/events/standard-event.js";
|
|
9
9
|
import { getRowStyleUtil as A, getCellStyleUtil as M, getHeaderCellStyleUtil as E } from "../../chart/table/chart-table-util.js";
|
|
10
10
|
const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: F2, emit: $ }) {
|
|
11
11
|
var _a;
|
|
12
12
|
const j = e2, z = j.pageContext;
|
|
13
|
-
let
|
|
14
|
-
const
|
|
15
|
-
z.isTest ?
|
|
16
|
-
const
|
|
17
|
-
let Y = D(j.configure,
|
|
13
|
+
let N = j.configure;
|
|
14
|
+
const V = j.configure.runtime ? j.configure.runtime : {};
|
|
15
|
+
z.isTest ? V.value = j.configure.runtime ? j.configure.runtime : {} : z.tableRuntimes && z.tableRuntimes[N.uuid] && (N = JSON.parse(z.tableRuntimes[N.uuid].configure), V.value = N.runtime ? N.runtime : {});
|
|
16
|
+
const G = O(z.code, z.version, N.uuid), H = z.entity.data, L = N.code ? N.code : G, U = k(z), B = V && V.events ? V.events : [], q = t([]), J = z.superGridItems, K = J ? J[N.uuid] : null, Q = V.style, W = V.class, X = j.pageContext.entity ? j.pageContext.entity : {};
|
|
17
|
+
let Y = D(j.configure, L), Z = _(z.backendUrl, z.isTest);
|
|
18
18
|
Z || (Z = window.$vueApp.config.globalProperties.baseURL);
|
|
19
19
|
const ee = t(false);
|
|
20
20
|
let te = t(0);
|
|
21
|
-
const ne = (_a =
|
|
21
|
+
const ne = (_a = N.props) == null ? void 0 : _a.dataOrigin.principalLinkage, oe = t({}), le = $;
|
|
22
22
|
oe.value = function() {
|
|
23
|
-
var _a2, _b;
|
|
24
|
-
const e3 = { title: (
|
|
25
|
-
return Q && (e3.tableStyle = Q), W && (e3.tableClass = W),
|
|
26
|
-
const t2 =
|
|
23
|
+
var _a2, _b, _c, _d;
|
|
24
|
+
const e3 = { title: (N == null ? void 0 : N.title) || null, isSql: true, subTableData: null, rowKeyProp: ne, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: z.code, pageVersion: z.version, pageContext: z, configureObj: N, showPageArea: false, showRowForm: false, showOverflowTooltip: (_b = (_a2 = N == null ? void 0 : N.props) == null ? void 0 : _a2.otherSettings) == null ? void 0 : _b.showOverflowTooltip, backendUrl: Z, cellStyleRender: He, rowStyleRender: Ge, titleStyleRender: Le, allEditable: (_d = (_c = N.props) == null ? void 0 : _c.base) == null ? void 0 : _d.allEditable };
|
|
25
|
+
return Q && (e3.tableStyle = Q), W && (e3.tableClass = W), N.props && N.props.base && true === N.props.base.subPaging ? e3.showPageArea = true : e3.showPageArea = false, N.props.base.showRowForm && (e3.showRowForm = N.props.base.showRowForm), function(e4) {
|
|
26
|
+
const t2 = N.props ? N.props.dataOrigin : {};
|
|
27
27
|
if (t2.treeTable) {
|
|
28
28
|
let n2;
|
|
29
29
|
const o2 = t2.rowKey;
|
|
@@ -38,23 +38,23 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
38
38
|
}();
|
|
39
39
|
const ie = t(null);
|
|
40
40
|
function ae() {
|
|
41
|
-
ie.value && (oe.value.subTableData = null, ie.value.reloadSubTableData(
|
|
41
|
+
ie.value && (oe.value.subTableData = null, ie.value.reloadSubTableData(G));
|
|
42
42
|
}
|
|
43
43
|
function ue(e3, t2) {
|
|
44
|
-
if (t2 || (t2 = oe.value), void 0 === e3 && (e3 = re()), t2.isPageInfo = false, t2.isFormSubTable = true, t2.canRrefreshSubtableData = e3, t2.getFormData = se, t2.getGridData = ce, t2.extraParam.subTableListViewCode =
|
|
44
|
+
if (t2 || (t2 = oe.value), void 0 === e3 && (e3 = re()), t2.isPageInfo = false, t2.isFormSubTable = true, t2.canRrefreshSubtableData = e3, t2.getFormData = se, t2.getGridData = ce, t2.extraParam.subTableListViewCode = G, t2.extraParam.beanName = z.beanName, t2.extraParam.subtableSetting = N.props && N.props.otherSettings ? JSON.stringify(N.props.otherSettings) : null, t2.extraParam.additionalParamMap = U, t2.extraParam.entityMap = z.entity.data, t2.extraParam.contextMap = z.entity.context, t2.extraParam.taskMap = z.entity.task, !(N.props && N.props.base && N.props.base.showOperation)) {
|
|
45
45
|
let e4 = t2.hiddenColumns;
|
|
46
46
|
e4 ? e4.push("operation") : e4 = ["operation"], t2.hiddenColumns = e4;
|
|
47
47
|
}
|
|
48
|
-
t2.showOperationButton = !(!
|
|
49
|
-
let n2 = C(z,
|
|
50
|
-
n2 && n2.fixHeight && (t2.formSetHeight = n2.fixHeight), n2 && n2.maxHeight && (t2.formSetMaxHeight = n2.maxHeight), t2.validateEitConditions =
|
|
48
|
+
t2.showOperationButton = !(!N.props || !N.props.base) && N.props.base.showOperation, t2.isPdfEditor = false, t2.tableRecordMaxNum = N.props && N.props.otherSettings ? N.props.otherSettings.tableRecordMaxNum : null;
|
|
49
|
+
let n2 = C(z, N);
|
|
50
|
+
n2 && n2.fixHeight && (t2.formSetHeight = n2.fixHeight), n2 && n2.maxHeight && (t2.formSetMaxHeight = n2.maxHeight), t2.validateEitConditions = Ue;
|
|
51
51
|
}
|
|
52
52
|
function re() {
|
|
53
|
-
if (
|
|
54
|
-
if (
|
|
53
|
+
if (N.props && N.props.otherSettings) {
|
|
54
|
+
if (N.props.otherSettings.sourceQueryTableData && N.props.otherSettings.timeToInitializeSubTable && N.props.otherSettings.timeToInitializeSubTable.length > 0) {
|
|
55
55
|
let e3 = false;
|
|
56
|
-
if (-1 !==
|
|
57
|
-
const t2 =
|
|
56
|
+
if (-1 !== N.props.otherSettings.timeToInitializeSubTable.indexOf("create") && (e3 = !H.id && !H.ID), -1 !== N.props.otherSettings.timeToInitializeSubTable.indexOf("noData")) {
|
|
57
|
+
const t2 = H[L];
|
|
58
58
|
(!t2 || t2.length <= 0) && (e3 = true);
|
|
59
59
|
}
|
|
60
60
|
return e3;
|
|
@@ -79,7 +79,7 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
79
79
|
e4 || (e4 = oe.value);
|
|
80
80
|
const t3 = z.fieldPermissionMap, n2 = z.actionPermissionMap;
|
|
81
81
|
if (t3 && null != t3) {
|
|
82
|
-
let n3 = t3.get(
|
|
82
|
+
let n3 = t3.get(L);
|
|
83
83
|
if (!n3) {
|
|
84
84
|
const e5 = t3.get("all_fields");
|
|
85
85
|
e5 && (n3 = [e5]);
|
|
@@ -87,12 +87,12 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
87
87
|
e4.validateRules = n3 || null;
|
|
88
88
|
}
|
|
89
89
|
if (n2 && null != n2) {
|
|
90
|
-
let t4 = n2.get(
|
|
90
|
+
let t4 = n2.get(L);
|
|
91
91
|
t4 || (t4 = n2.get("all_sub_tables")), e4.actionPermission = t4;
|
|
92
92
|
}
|
|
93
93
|
e4.operations || (e4.operations = {});
|
|
94
94
|
const o2 = function() {
|
|
95
|
-
let e5 = [], t4 = w(j.pageContext,
|
|
95
|
+
let e5 = [], t4 = w(j.pageContext, N.props.base.showOperationCondition);
|
|
96
96
|
if (t4 && Se(null, null, null, null, null, true, "canAdd")) {
|
|
97
97
|
const t5 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: Ce, isShow: we };
|
|
98
98
|
e5.push(t5);
|
|
@@ -101,18 +101,18 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
101
101
|
const t5 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: xe };
|
|
102
102
|
e5.push(t5);
|
|
103
103
|
}
|
|
104
|
-
return I(z,
|
|
104
|
+
return I(z, N, e5, ve), e5;
|
|
105
105
|
}();
|
|
106
106
|
e4.operations.operation = o2, e4.subTableCanAdd = Se(null, null, null, null, null, true, "canAdd"), e4.subTableCanDelete = Se(null, null, null, null, null, true, "canDelete");
|
|
107
|
-
}(e3), c(e3,
|
|
107
|
+
}(e3), c(e3, B, z, N);
|
|
108
108
|
const t2 = z.customEvents;
|
|
109
109
|
t2 && (e3.eventCallBack = t2), ee.value = true, ge();
|
|
110
110
|
}
|
|
111
111
|
function ge() {
|
|
112
|
-
z.tableUuids || (z.tableUuids = []), z.tableUuids.indexOf(
|
|
112
|
+
z.tableUuids || (z.tableUuids = []), z.tableUuids.indexOf(N.uuid) < 0 && z.tableUuids.push(N.uuid);
|
|
113
113
|
}
|
|
114
114
|
n(() => {
|
|
115
|
-
const e3 =
|
|
115
|
+
const e3 = N.uuid, t2 = z.subTableWatchProps;
|
|
116
116
|
P.$on("_refreshSubTable_" + e3, (n2) => {
|
|
117
117
|
const o2 = n2.propName;
|
|
118
118
|
if (t2 && t2[e3] && t2[e3].length > 0) {
|
|
@@ -122,19 +122,19 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
122
122
|
ae();
|
|
123
123
|
}), P.$on("_refreshChildData_" + e3, (e4) => {
|
|
124
124
|
!function(e5) {
|
|
125
|
-
|
|
126
|
-
ie.value && (ie.value.refreshChildData(
|
|
125
|
+
Ve(e5), de = setTimeout(() => {
|
|
126
|
+
ie.value && (ie.value.refreshChildData(G, e5, N.props && N.props.base && true === N.props.base.subPaging), oe.value.extraParam.entityMap = z.entity.data);
|
|
127
127
|
}, 10);
|
|
128
128
|
}(e4);
|
|
129
|
-
}), P.$on(
|
|
129
|
+
}), P.$on(G + "-pickFileDone", (e4) => {
|
|
130
130
|
ie.value.pickFileDone(e4);
|
|
131
|
-
}), P.$on(
|
|
131
|
+
}), P.$on(G + "-scanDone", (e4) => {
|
|
132
132
|
ie.value.scanDone(e4);
|
|
133
133
|
}), oe.value && oe.value.configureObj.props.base && oe.value.configureObj.props.base.isSafeDelete && le("setSafeDeleteTableCode", oe.value.extraParam.tableName);
|
|
134
134
|
}), o(() => {
|
|
135
135
|
pe && clearTimeout(pe), de && clearTimeout(de);
|
|
136
|
-
const e3 =
|
|
137
|
-
P.$off("_refreshSubTable_" + e3), P.$off("_refreshSubTableHandle_" + e3), P.$off("_refreshChildData_" + e3), P.$off(
|
|
136
|
+
const e3 = N.uuid;
|
|
137
|
+
P.$off("_refreshSubTable_" + e3), P.$off("_refreshSubTableHandle_" + e3), P.$off("_refreshChildData_" + e3), P.$off(G + "-pickFileDone"), P.$off(G + "-scanDone");
|
|
138
138
|
});
|
|
139
139
|
const me = t({});
|
|
140
140
|
function ve(e3) {
|
|
@@ -142,27 +142,27 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
142
142
|
return me.value[e3.uuid] = e3, he;
|
|
143
143
|
}
|
|
144
144
|
function he(e3, t2, n2, o2, l2, i2) {
|
|
145
|
-
const a2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2, button: i2, id: n2.ID ? n2.ID : n2.id }, u2 = me.value[i2.sourceButton.uuid], r2 =
|
|
145
|
+
const a2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2, button: i2, id: n2.ID ? n2.ID : n2.id }, u2 = me.value[i2.sourceButton.uuid], r2 = N;
|
|
146
146
|
u2.props.base.tableUuid = r2.uuid, S(null, z, u2, "click", a2);
|
|
147
147
|
}
|
|
148
148
|
function Se(e3, t2, n2, o2, l2, i2, a2) {
|
|
149
149
|
a2 || (a2 = "canAdd");
|
|
150
|
-
if (!w(j.pageContext,
|
|
150
|
+
if (!w(j.pageContext, N.props.base.showOperationCondition)) return false;
|
|
151
151
|
const u2 = z.fieldPermissionMap, r2 = z.actionPermissionMap;
|
|
152
152
|
let s2 = true;
|
|
153
153
|
if (u2 && null !== u2) {
|
|
154
154
|
const e4 = u2.get("all_fields");
|
|
155
155
|
void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (s2 = false);
|
|
156
156
|
}
|
|
157
|
-
if (true === s2 &&
|
|
158
|
-
let e4 = r2.get(
|
|
157
|
+
if (true === s2 && L && r2 && null !== r2) {
|
|
158
|
+
let e4 = r2.get(L);
|
|
159
159
|
e4 || (e4 = r2.get("all_sub_tables")), e4 && void 0 !== e4[a2] && false === e4[a2] && (s2 = false);
|
|
160
160
|
}
|
|
161
161
|
return s2;
|
|
162
162
|
}
|
|
163
163
|
function we(e3, t2, n2, o2, l2, i2) {
|
|
164
164
|
let a2 = Se(0, 0, 0, 0, 0, 0, "canAdd");
|
|
165
|
-
return true === a2 && (a2 = w(j.pageContext,
|
|
165
|
+
return true === a2 && (a2 = w(j.pageContext, N.props.base.showAddBtnCondition, n2)), a2;
|
|
166
166
|
}
|
|
167
167
|
function Te(e3, t2, n2, o2, l2, i2) {
|
|
168
168
|
const a2 = z.fieldPermissionMap, u2 = z.actionPermissionMap;
|
|
@@ -171,8 +171,8 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
171
171
|
const e4 = a2.get("all_fields");
|
|
172
172
|
void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (r2 = false);
|
|
173
173
|
}
|
|
174
|
-
if (true === r2 &&
|
|
175
|
-
let e4 = u2.get(
|
|
174
|
+
if (true === r2 && L && u2 && null !== u2) {
|
|
175
|
+
let e4 = u2.get(L);
|
|
176
176
|
if (e4 || (e4 = u2.get("all_sub_tables")), e4 && void 0 !== e4.canDelete && false === e4.canDelete && (r2 = false), e4 && void 0 !== e4.canDelete && true === e4.canDelete && e4.deleteRowIndexes) if (e4.deleteRowIndexes.length > 0) if (i2) r2 = true;
|
|
177
177
|
else {
|
|
178
178
|
const t3 = function(e5) {
|
|
@@ -186,19 +186,19 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
186
186
|
}
|
|
187
187
|
function xe(e3, t2, n2, o2, l2, i2) {
|
|
188
188
|
let a2 = Te(0, 0, n2, 0, 0, i2);
|
|
189
|
-
return true === a2 && (a2 = w(j.pageContext,
|
|
189
|
+
return true === a2 && (a2 = w(j.pageContext, N.props.base.showDeleteBtnCondition, n2)), a2;
|
|
190
190
|
}
|
|
191
191
|
function Ce(e3, t2, n2, o2, l2) {
|
|
192
|
-
ie.value.createRow(
|
|
192
|
+
ie.value.createRow(G, {}, { getDefaultValueFunc: y }, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2 });
|
|
193
193
|
}
|
|
194
194
|
function De(e3, t2, n2, o2, l2) {
|
|
195
|
-
ie.value.deleteRow(l2,
|
|
195
|
+
ie.value.deleteRow(l2, G, false);
|
|
196
196
|
}
|
|
197
197
|
function ye(e3) {
|
|
198
198
|
T(X, Y, e3);
|
|
199
199
|
}
|
|
200
200
|
function Pe(e3) {
|
|
201
|
-
z.subTablePageInfo || (z.subTablePageInfo = {}), z.subTablePageInfo[
|
|
201
|
+
z.subTablePageInfo || (z.subTablePageInfo = {}), z.subTablePageInfo[L] || (z.subTablePageInfo[L] = {}), z.subTablePageInfo[L].pageSize = e3;
|
|
202
202
|
}
|
|
203
203
|
function Re(e3) {
|
|
204
204
|
const t2 = e3.key, n2 = e3.value;
|
|
@@ -212,62 +212,62 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
212
212
|
const t2 = z.entity.data;
|
|
213
213
|
if (e3) for (const n2 in e3) t2[n2] = e3[n2];
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function _e(e3, t2) {
|
|
216
216
|
if (void 0 !== t2) {
|
|
217
217
|
q.value = e3;
|
|
218
|
-
p(z,
|
|
218
|
+
p(z, N, { selection: e3, row: t2 });
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function ke(e3) {
|
|
222
222
|
q.value = e3;
|
|
223
|
-
d(z,
|
|
223
|
+
d(z, N, { selection: e3 });
|
|
224
224
|
}
|
|
225
225
|
function Ae(e3) {
|
|
226
|
-
f(z,
|
|
226
|
+
f(z, N, { newSelection: e3 });
|
|
227
227
|
}
|
|
228
228
|
function Me(e3, t2, n2, o2) {
|
|
229
|
-
b(z,
|
|
229
|
+
b(z, N, { row: e3, column: t2, cell: n2, event: o2 });
|
|
230
230
|
}
|
|
231
231
|
function Ee(e3, t2, n2, o2) {
|
|
232
|
-
g(z,
|
|
232
|
+
g(z, N, { row: e3, column: t2, cell: n2, event: o2 });
|
|
233
233
|
}
|
|
234
234
|
function Fe(e3, t2, n2) {
|
|
235
|
-
m(z,
|
|
235
|
+
m(z, N, { row: e3, column: t2, event: n2 });
|
|
236
236
|
}
|
|
237
237
|
function $e(e3, t2, n2) {
|
|
238
|
-
v(z,
|
|
238
|
+
v(z, N, { row: e3, column: t2, event: n2 });
|
|
239
239
|
}
|
|
240
240
|
function je(e3, t2) {
|
|
241
|
-
h(z,
|
|
241
|
+
h(z, N, { column: e3, event: t2 });
|
|
242
242
|
}
|
|
243
243
|
function ze(e3) {
|
|
244
244
|
z.entity.data = e3;
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function Ne() {
|
|
247
247
|
return x(X, Y);
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function Ve(e3) {
|
|
250
250
|
return T(X, Y, e3);
|
|
251
251
|
}
|
|
252
|
-
function
|
|
252
|
+
function Ge(e3) {
|
|
253
253
|
return A(e3, null, j);
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function He(e3) {
|
|
256
256
|
return M(e3, e3.cellStyle, j);
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function Le(e3) {
|
|
259
259
|
const t2 = e3.titleStyle, n2 = j.configure.style.titleStyle;
|
|
260
260
|
return E(e3, { cellTitleStyle: t2, titleStyle: n2 }, j);
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function Ue({ row: e3, editConditions: t2 }) {
|
|
263
263
|
let n2 = true;
|
|
264
264
|
return t2 && t2.length > 0 && (n2 = w(j.pageContext, t2, e3)), n2;
|
|
265
265
|
}
|
|
266
266
|
return function(e3) {
|
|
267
267
|
const t2 = re();
|
|
268
|
-
t2 ? fe(t2, e3) : (ue(t2, e3), e3.isPageInfo = false, e3.subTableData =
|
|
268
|
+
t2 ? fe(t2, e3) : (ue(t2, e3), e3.isPageInfo = false, e3.subTableData = Ne(), be(e3));
|
|
269
269
|
}(oe.value), F2({ createRow: function() {
|
|
270
|
-
return ie.value.createRow(
|
|
270
|
+
return ie.value.createRow(G);
|
|
271
271
|
}, getSelections: function() {
|
|
272
272
|
return q.value;
|
|
273
273
|
}, getSelectionIds: function() {
|
|
@@ -278,11 +278,11 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
278
278
|
}, clearSelections: function() {
|
|
279
279
|
q.value = [];
|
|
280
280
|
}, getTableConfigure: function() {
|
|
281
|
-
return
|
|
281
|
+
return N;
|
|
282
282
|
}, validatorSunTableListData: function() {
|
|
283
283
|
return ie.value.validatorSunTableListData();
|
|
284
|
-
}, getValue:
|
|
285
|
-
if (ie.value) return ie.value.getTableSelectOptions(
|
|
284
|
+
}, getValue: Ne, setValue: Ve, getTableSelectOptions: function() {
|
|
285
|
+
if (ie.value) return ie.value.getTableSelectOptions(G);
|
|
286
286
|
}, dynamicControlTableEdit: function(e3, t2, n2) {
|
|
287
287
|
ie.value && ie.value.dynamicControlTableEdit(e3, t2, n2);
|
|
288
288
|
}, doLayout: function(e3) {
|
|
@@ -310,13 +310,13 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
310
310
|
return (_a2 = ie.value) == null ? void 0 : _a2.getTableData();
|
|
311
311
|
}, addRequiredClass: function(e3, t2, n2) {
|
|
312
312
|
var _a2;
|
|
313
|
-
(_a2 = ie.value) == null ? void 0 : _a2.addRequiredClass(e3,
|
|
313
|
+
(_a2 = ie.value) == null ? void 0 : _a2.addRequiredClass(e3, G, t2, n2);
|
|
314
314
|
}, getColumns: function() {
|
|
315
315
|
var _a2;
|
|
316
316
|
return (_a2 = ie.value) == null ? void 0 : _a2.getColumns();
|
|
317
317
|
} }), (e3, t2) => {
|
|
318
318
|
const n2 = l("super-grid");
|
|
319
|
-
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(
|
|
319
|
+
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(z).isDialog, onSelect: _e, onSelectAll: ke, onSelectionChange: Ae, onCellClick: Me, onCellDblclick: Ee, onRowClick: Fe, onRowDblclick: $e, onHeaderClick: je, onFnProhibitToEdit: Ie, onChangeGridData: ye, onReloadGrid: fe, onRefresMainTableFields: Oe, onSetSelectOptions: Re, onChangeRowsPerPage: Pe, onNewOpenGridDialog: s(R), onChangeFormData: ze }, null, 8, ["url", "options", "code", "settings", "isDialog", "onNewOpenGridDialog"])) : r("", true)]);
|
|
320
320
|
};
|
|
321
321
|
} });
|
|
322
322
|
export {
|