super-page-runtime 2.3.17 → 2.3.19-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/page-expose-util.js +70 -70
- package/dist/es/components/runtime/utils/assemblys-config.js +1 -1
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +67 -66
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +31 -30
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +66 -65
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +47 -46
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +33 -32
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/charts/chart-util.js +73 -64
- package/dist/es/components/runtime/utils/events/event-util.js +3 -3
- package/dist/es/components/runtime/utils/events/print-label.js +25 -26
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +3 -1
- package/dist/es/components/runtime/utils/events/standard-event.js +591 -554
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/page-init-util.js +5 -7
- package/dist/es/components/runtime/utils/page-store.js +10 -10
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
- 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-chart-header-group.vue.js +6 -10
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.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 +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/chart-table-util.js +93 -98
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +148 -145
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.d.ts +5 -0
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +20 -0
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +36 -24
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +194 -194
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +37 -37
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +37 -38
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +5 -7
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +4 -5
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +11 -13
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.d.ts +14 -0
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +6 -0
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.d.ts +14 -0
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +26 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +28 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +9 -9
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +22 -13
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +165 -161
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +134 -86
- package/package.json +2 -2
|
@@ -1,43 +1,43 @@
|
|
|
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 {
|
|
6
|
-
import { getOperationButtons as
|
|
7
|
-
import
|
|
8
|
-
import { getDefaultValue as
|
|
9
|
-
import { getSizeConfig as
|
|
10
|
-
import { getComponentRefByCode as
|
|
11
|
-
import { getRowStyleUtil as
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
let
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
const
|
|
18
|
-
let
|
|
19
|
-
|
|
20
|
-
const
|
|
21
|
-
|
|
5
|
+
import { isMobileBrowser as N, isPromise as B } from "agilebuilder-ui/src/utils/common-util";
|
|
6
|
+
import { getOperationButtons as P, popupToPage as F } from "../../../../utils/table-utils.js";
|
|
7
|
+
import H from "../../../../utils/eventBus.js";
|
|
8
|
+
import { getDefaultValue as U } from "../../../../utils/page-init-util.js";
|
|
9
|
+
import { getSizeConfig as M, caculateShowCondition as L, decomposeVariable as $ } from "../../../../utils/page-helper-util.js";
|
|
10
|
+
import { getComponentRefByCode as _ } from "../../../../utils/global-refs.js";
|
|
11
|
+
import { getRowStyleUtil as A, getCellStyleUtil as G, getHeaderCellStyleUtil as z } from "../../chart/table/chart-table-util.js";
|
|
12
|
+
const W = ["id"], q = e({ __name: "main-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: q2, emit: Q }) {
|
|
13
|
+
const Y = e2, J = Y.pageContext;
|
|
14
|
+
let K = Y.configure;
|
|
15
|
+
const X = t({});
|
|
16
|
+
J.isTest ? X.value = Y.configure.runtime ? Y.configure.runtime : {} : J.tableRuntimes && J.tableRuntimes[K.uuid] && (K = JSON.parse(J.tableRuntimes[K.uuid].configure), X.value = K.runtime ? K.runtime : {});
|
|
17
|
+
const Z = X.value.style, ee = X.value.class, te = J.systemCode, ne = J.backendUrl, oe = K.props && K.props.dataOrigin && K.props.dataOrigin.tableName;
|
|
18
|
+
let ie = E(J.backendUrl, J.isTest);
|
|
19
|
+
ie || (ie = window.$vueApp.config.globalProperties.baseURL);
|
|
20
|
+
const ae = t({}), le = [], re = t({});
|
|
21
|
+
re.value = function() {
|
|
22
22
|
var _a;
|
|
23
|
-
const e3 =
|
|
24
|
-
let n2 =
|
|
23
|
+
const e3 = J.systemCode, t2 = J.code;
|
|
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 =
|
|
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: !(!K.props || !K.props.otherSettings || void 0 !== K.props.otherSettings.isBreakLine && false !== K.props.otherSettings.isBreakLine), 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
|
-
((_a2 =
|
|
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
|
+
P(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" };
|
|
37
37
|
n3.prop = t3.name, e4.initSortInfo.push(n3);
|
|
38
38
|
}));
|
|
39
39
|
}(i2), function(e4) {
|
|
40
|
-
const t3 =
|
|
40
|
+
const t3 = K.props ? K.props.dataOrigin : {};
|
|
41
41
|
if (t3.treeTable) {
|
|
42
42
|
let n3;
|
|
43
43
|
const o3 = t3.rowKey;
|
|
@@ -45,141 +45,141 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
45
45
|
const o4 = t3.lazy, i3 = t3.defaultExpandAll;
|
|
46
46
|
e4.lazy = null == o4 || o4, e4.defaultExpandAll = null != i3 && i3;
|
|
47
47
|
const a2 = { parentProp: n3, lazy: e4.lazy, defaultExpandAll: e4.defaultExpandAll };
|
|
48
|
-
e4.extraParam.listViewTreeSetting = JSON.stringify(a2), e4.subRowUrl =
|
|
48
|
+
e4.extraParam.listViewTreeSetting = JSON.stringify(a2), e4.subRowUrl = ie + "/dsc/commons/list-subs";
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
}(i2), function(e4) {
|
|
52
|
-
const t3 =
|
|
53
|
-
c(e4, t3,
|
|
54
|
-
const n3 =
|
|
52
|
+
const t3 = K.runtime && K.runtime.events ? K.runtime.events : [];
|
|
53
|
+
c(e4, t3, J, K);
|
|
54
|
+
const n3 = J.customEvents;
|
|
55
55
|
n3 && (e4.eventCallBack = n3);
|
|
56
56
|
}(i2), i2;
|
|
57
57
|
}();
|
|
58
|
-
const
|
|
59
|
-
let e3 =
|
|
60
|
-
e3 && (e3 = O(e3,
|
|
58
|
+
const ue = t(), se = t(), ce = function() {
|
|
59
|
+
let e3 = ie + "/dsc/commons/list";
|
|
60
|
+
e3 && (e3 = O(e3, te, ne, J.isTest));
|
|
61
61
|
return e3;
|
|
62
|
-
}(),
|
|
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
63
|
function Se() {
|
|
64
|
-
|
|
65
|
-
const t2 =
|
|
66
|
-
t2 && t2.length > 1 &&
|
|
67
|
-
}),
|
|
64
|
+
K.props.linkages && K.props.linkages.length > 0 && (K.props.linkages.forEach((e3) => {
|
|
65
|
+
const t2 = $(e3.fieldName);
|
|
66
|
+
t2 && t2.length > 1 && le.push(t2[1]);
|
|
67
|
+
}), le.length > 0 && function() {
|
|
68
68
|
let e3 = [];
|
|
69
|
-
|
|
70
|
-
if (
|
|
71
|
-
const n2 =
|
|
69
|
+
Y.pageContext.toolsInputComponents && Y.pageContext.toolsInputComponents.length > 0 && Y.pageContext.toolsInputComponents.forEach((t2) => {
|
|
70
|
+
if (K.props.linkages.some((e4) => e4.fieldName === t2.prop) && t2.defaultValue) {
|
|
71
|
+
const n2 = $(t2.prop);
|
|
72
72
|
n2 && n2.length > 1 && e3.push(n2[1]);
|
|
73
73
|
}
|
|
74
74
|
});
|
|
75
|
-
if (0 === e3.length)
|
|
75
|
+
if (0 === e3.length) Ke();
|
|
76
76
|
else {
|
|
77
|
-
const t2 =
|
|
78
|
-
e3 = e3.filter((e4) => k(t2, e4)), 0 === e3.length ? (
|
|
79
|
-
o(() =>
|
|
80
|
-
const t4 =
|
|
81
|
-
0 === e3.length ?
|
|
77
|
+
const t2 = Je();
|
|
78
|
+
e3 = e3.filter((e4) => k(t2, e4)), 0 === e3.length ? (je(t2), Ke()) : le.forEach((t3) => {
|
|
79
|
+
o(() => Y.pageContext.entity.page[t3], () => {
|
|
80
|
+
const t4 = Je();
|
|
81
|
+
0 === e3.length ? je(t4) : (e3 = e3.filter((e4) => k(t4, e4)), 0 === e3.length && je(t4));
|
|
82
82
|
}, { immediate: true });
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
}());
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
|
|
87
|
+
function Ce({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
|
|
88
|
+
ye(null, null, n2, t2, e3);
|
|
89
89
|
}
|
|
90
|
-
function
|
|
91
|
-
const a2 =
|
|
92
|
-
a2.props.base.tableUuid = l2.uuid,
|
|
93
|
-
true === l3.canExecute && (
|
|
94
|
-
d(
|
|
90
|
+
function ye(e3, t2, n2, o2, i2) {
|
|
91
|
+
const a2 = ae.value.lineEditSave, l2 = K;
|
|
92
|
+
a2.props.base.tableUuid = l2.uuid, re.value.lineEditOptions.beforeSave = De, J.editData = n2, p({ pageContext: J, configureObj: a2 }).then((l3) => {
|
|
93
|
+
true === l3.canExecute && (re.value.lineEditOptions.saveRow = Ee, se.value.saveRow(i2, pe).then(() => {
|
|
94
|
+
d(J, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
95
95
|
}));
|
|
96
96
|
}).finally(() => {
|
|
97
|
-
|
|
97
|
+
J.editData = null;
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function xe(e3) {
|
|
101
101
|
if (!e3) return;
|
|
102
102
|
let t2;
|
|
103
103
|
const n2 = y(e3.events, "click");
|
|
104
104
|
if (n2) {
|
|
105
|
-
if (
|
|
106
|
-
t2 = x(
|
|
105
|
+
if (ae.value[n2] = e3, "lineEditSave" === n2 ? t2 = ye : "restoreEdit" === n2 ? t2 = Oe : "lineEditUpdate" === n2 ? t2 = Re : "lineEditDelete" === n2 && (t2 = Ie), !t2) {
|
|
106
|
+
t2 = x(J, e3.events, "click");
|
|
107
107
|
}
|
|
108
|
-
} else
|
|
108
|
+
} else ae.value[e3.uuid] = e3, t2 = Pe;
|
|
109
109
|
return { onClick: t2, eventName: n2 };
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
const o2 =
|
|
111
|
+
function De({ row: e3, columns: t2, additionalParamMap: n2 }) {
|
|
112
|
+
const o2 = ae.value.lineEditSave, i2 = K;
|
|
113
113
|
o2.props.base.tableUuid = i2.uuid;
|
|
114
|
-
return f(
|
|
114
|
+
return f(J, o2, { row: e3, columns: t2 });
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
const l2 =
|
|
116
|
+
function Ee({ row: e3, columns: t2, dataTypeMap: n2, dynamicColumnInfo: o2, additionalParamMap: i2, mainDefaultValueColumns: a2 }) {
|
|
117
|
+
const l2 = ae.value.lineEditSave, r2 = K;
|
|
118
118
|
return l2.props.base.tableUuid = r2.uuid, new Promise((t3, n3) => {
|
|
119
119
|
const i3 = { tableName: r2.props.dataOrigin.tableName };
|
|
120
|
-
V(
|
|
120
|
+
V(J, l2, "/dsc/commons", false, a2, o2, e3, i3).then((e4) => {
|
|
121
121
|
t3(e4 ? e4.entity : {});
|
|
122
122
|
}).catch((e4) => {
|
|
123
123
|
n3(e4);
|
|
124
124
|
});
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
|
|
127
|
+
function Te({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
|
|
128
|
+
Oe(null, null, n2, t2, e3);
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
const a2 =
|
|
130
|
+
function Oe(e3, t2, n2, o2, i2) {
|
|
131
|
+
const a2 = ae.value.restoreEdit, l2 = K;
|
|
132
132
|
a2.props.base.tableUuid = l2.uuid;
|
|
133
|
-
const r2 = f(
|
|
133
|
+
const r2 = f(J, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
134
134
|
if (!r2) return;
|
|
135
|
-
|
|
136
|
-
e4 &&
|
|
137
|
-
}) :
|
|
138
|
-
d(
|
|
135
|
+
B(r2) ? r2.then((e4) => {
|
|
136
|
+
e4 && se.value.restoreRow(i2, pe);
|
|
137
|
+
}) : se.value.restoreRow(i2, pe);
|
|
138
|
+
d(J, K, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
const a2 =
|
|
140
|
+
function Re(e3, t2, n2, o2, i2) {
|
|
141
|
+
const a2 = ae.value.lineEditUpdate, l2 = K;
|
|
142
142
|
a2.props.base.tableUuid = l2.uuid;
|
|
143
|
-
const r2 = f(
|
|
144
|
-
r2 && (
|
|
145
|
-
l3 &&
|
|
146
|
-
}) :
|
|
143
|
+
const r2 = f(J, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
144
|
+
r2 && (B(r2) ? r2.then((l3) => {
|
|
145
|
+
l3 && ke(e3, t2, n2, o2, i2, a2);
|
|
146
|
+
}) : ke(e3, t2, n2, o2, i2, a2));
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
|
|
148
|
+
function ke(e3, t2, n2, o2, i2, a2) {
|
|
149
|
+
J.editData = n2, p({ pageContext: J, configureObj: a2 }).then((a3) => {
|
|
150
150
|
if (true === a3.canExecute) {
|
|
151
|
-
|
|
152
|
-
d(
|
|
151
|
+
se.value.editRow(i2, pe);
|
|
152
|
+
d(J, K, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
153
153
|
}
|
|
154
154
|
}).finally(() => {
|
|
155
|
-
|
|
155
|
+
J.editData = null;
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
const a2 =
|
|
158
|
+
function Ie(e3, t2, n2, o2, i2) {
|
|
159
|
+
const a2 = ae.value.lineEditDelete, l2 = K;
|
|
160
160
|
a2.props.base.tableUuid = l2.uuid;
|
|
161
|
-
const r2 = f(
|
|
162
|
-
r2 && (
|
|
163
|
-
l3 &&
|
|
164
|
-
}) :
|
|
161
|
+
const r2 = f(J, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
162
|
+
r2 && (B(r2) ? r2.then((l3) => {
|
|
163
|
+
l3 && Ve(e3, t2, n2, o2, i2, a2);
|
|
164
|
+
}) : Ve(e3, t2, n2, o2, i2, a2));
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
if (n2.id || n2.ID)
|
|
166
|
+
function Ve(e3, t2, n2, o2, i2, a2) {
|
|
167
|
+
if (n2.id || n2.ID) J.editData = n2, p({ pageContext: J, configureObj: a2 }).then((e4) => {
|
|
168
168
|
if (true === e4.canExecute) {
|
|
169
169
|
const e5 = [];
|
|
170
|
-
n2.id ? e5.push(n2.id) : e5.push(n2.ID), j.delete({ pageContext:
|
|
170
|
+
n2.id ? e5.push(n2.id) : e5.push(n2.ID), j.delete({ pageContext: J, configureObj: a2, ids: e5 });
|
|
171
171
|
}
|
|
172
172
|
}).finally(() => {
|
|
173
|
-
|
|
173
|
+
J.editData = null;
|
|
174
174
|
});
|
|
175
175
|
else {
|
|
176
|
-
|
|
177
|
-
d(
|
|
176
|
+
Oe(e3, t2, n2, o2, i2);
|
|
177
|
+
d(J, K, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
function
|
|
181
|
-
if (!
|
|
182
|
-
const t2 =
|
|
180
|
+
function je(e3) {
|
|
181
|
+
if (!J.dataTypeMaps) return;
|
|
182
|
+
const t2 = J.dataTypeMaps;
|
|
183
183
|
let n2 = [];
|
|
184
184
|
if (e3) for (var o2 in e3) {
|
|
185
185
|
const a2 = e3[o2];
|
|
@@ -194,124 +194,124 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
194
194
|
}
|
|
195
195
|
} else {
|
|
196
196
|
const e4 = { leftBracket: "(" };
|
|
197
|
-
e4.propName = o2, e4.propDbName = o2, e4.dataType = t2[o2] ? t2[o2] : "TEXT", e4.operator = "EQ", e4.propValue = a2,
|
|
197
|
+
e4.propName = o2, e4.propDbName = o2, e4.dataType = t2[o2] ? t2[o2] : "TEXT", e4.operator = "EQ", e4.propValue = a2, et(e4, o2), e4.rightBracket = ")", e4.joinSign = "and", n2.push(e4);
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
|
|
200
|
+
se.value.toolbarRefresh(null, null, n2);
|
|
201
201
|
}
|
|
202
|
-
function
|
|
203
|
-
const t2 =
|
|
202
|
+
function Ne(e3) {
|
|
203
|
+
const t2 = Be();
|
|
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
|
|
210
|
-
if (!
|
|
211
|
-
const e3 =
|
|
209
|
+
function Be() {
|
|
210
|
+
if (!se.value) return;
|
|
211
|
+
const e3 = M(Y.pageContext, Y.configure);
|
|
212
212
|
if (e3) {
|
|
213
213
|
if (e3.isCalcHeight) {
|
|
214
|
-
let e4 =
|
|
215
|
-
if (e4 || (e4 =
|
|
214
|
+
let e4 = se.value.$el;
|
|
215
|
+
if (e4 || (e4 = se.value), !e4) return;
|
|
216
216
|
const t2 = e4.getBoundingClientRect();
|
|
217
217
|
return window.innerHeight - t2.y - 90;
|
|
218
218
|
}
|
|
219
|
-
if (e3.fixHeight &&
|
|
219
|
+
if (e3.fixHeight && se.value && (se.value.tableHeight = e3.fixHeight), e3.maxHeight) return e3.maxHeight;
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
|
-
function
|
|
223
|
-
const l2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2, button: a2, id: n2.ID ? n2.ID : n2.id }, r2 =
|
|
224
|
-
r2.props.base.tableUuid = u2.uuid, D(null,
|
|
225
|
-
}
|
|
226
|
-
function Pe(e3) {
|
|
227
|
-
"close_open_win" === e3.data && ue.value && ue.value.refresh();
|
|
222
|
+
function Pe(e3, t2, n2, o2, i2, a2) {
|
|
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
|
+
r2.props.base.tableUuid = u2.uuid, D(null, J, r2, "click", l2);
|
|
228
225
|
}
|
|
229
|
-
function Fe(e3
|
|
230
|
-
|
|
231
|
-
g(Y, J, { selection: e3, row: t2 });
|
|
226
|
+
function Fe(e3) {
|
|
227
|
+
"close_open_win" === e3.data && se.value && se.value.refresh();
|
|
232
228
|
}
|
|
233
|
-
function He(e3) {
|
|
234
|
-
|
|
235
|
-
|
|
229
|
+
function He(e3, t2) {
|
|
230
|
+
fe.value = e3;
|
|
231
|
+
g(J, K, { selection: e3, row: t2 });
|
|
236
232
|
}
|
|
237
233
|
function Ue(e3) {
|
|
238
|
-
|
|
234
|
+
fe.value = e3;
|
|
235
|
+
m(J, K, { selection: e3 });
|
|
239
236
|
}
|
|
240
|
-
function
|
|
241
|
-
|
|
237
|
+
function Me(e3) {
|
|
238
|
+
v(J, K, { newSelection: e3 });
|
|
242
239
|
}
|
|
243
|
-
function
|
|
244
|
-
|
|
240
|
+
function Le(e3, t2, n2, o2) {
|
|
241
|
+
h(J, K, { row: e3, column: t2, cell: n2, event: o2 });
|
|
245
242
|
}
|
|
246
|
-
function $e(e3, t2, n2) {
|
|
247
|
-
|
|
243
|
+
function $e(e3, t2, n2, o2) {
|
|
244
|
+
b(J, K, { row: e3, column: t2, cell: n2, event: o2 });
|
|
248
245
|
}
|
|
249
246
|
function _e(e3, t2, n2) {
|
|
250
|
-
w(
|
|
247
|
+
w(J, K, { row: e3, column: t2, event: n2 });
|
|
251
248
|
}
|
|
252
|
-
function Ae(e3, t2) {
|
|
253
|
-
|
|
249
|
+
function Ae(e3, t2, n2) {
|
|
250
|
+
S(J, K, { row: e3, column: t2, event: n2 });
|
|
254
251
|
}
|
|
255
|
-
function Ge() {
|
|
256
|
-
|
|
252
|
+
function Ge(e3, t2) {
|
|
253
|
+
C(J, K, { column: e3, event: t2 });
|
|
257
254
|
}
|
|
258
|
-
function ze(
|
|
259
|
-
|
|
255
|
+
function ze() {
|
|
256
|
+
fe.value = [];
|
|
260
257
|
}
|
|
261
258
|
function We(e3) {
|
|
262
|
-
|
|
259
|
+
be.value = true;
|
|
263
260
|
}
|
|
264
261
|
function qe(e3) {
|
|
265
|
-
return A(e3,
|
|
262
|
+
return A(e3, [], Y);
|
|
266
263
|
}
|
|
267
264
|
function Qe(e3) {
|
|
268
|
-
|
|
269
|
-
|
|
265
|
+
return G(e3, e3.cellStyle, Y);
|
|
266
|
+
}
|
|
267
|
+
function Ye(e3) {
|
|
268
|
+
const t2 = e3.titleStyle, n2 = Y.configure.style.titleStyle;
|
|
269
|
+
return z(e3, { cellTitleStyle: t2, titleStyle: n2 }, Y);
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function Je() {
|
|
272
272
|
const e3 = {};
|
|
273
|
-
return
|
|
274
|
-
e3[t2] =
|
|
273
|
+
return le.forEach((t2) => {
|
|
274
|
+
e3[t2] = Y.pageContext.entity.page[t2];
|
|
275
275
|
}), e3;
|
|
276
276
|
}
|
|
277
|
-
function
|
|
278
|
-
|
|
279
|
-
o(() =>
|
|
280
|
-
|
|
277
|
+
function Ke() {
|
|
278
|
+
le.forEach((e3) => {
|
|
279
|
+
o(() => Y.pageContext.entity.page[e3], () => {
|
|
280
|
+
je(Je());
|
|
281
281
|
});
|
|
282
282
|
});
|
|
283
283
|
}
|
|
284
284
|
n(() => {
|
|
285
|
-
const e3 =
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
}),
|
|
289
|
-
|
|
290
|
-
}),
|
|
291
|
-
|
|
292
|
-
}),
|
|
293
|
-
|
|
294
|
-
}),
|
|
295
|
-
}), o(() =>
|
|
296
|
-
|
|
297
|
-
}), o(() =>
|
|
298
|
-
|
|
285
|
+
const e3 = Xe();
|
|
286
|
+
se.value && e3 && e3.distanceToBottom && (se.value.tableHeight = e3.distanceToBottom - 110), Y.pageContext.pageRuntimeStyle, window.addEventListener("message", Fe), H.$on(de + "-close-component-page-dialog", function({ jumpInfo: e4, popEntity: t2, popPageCode: n2 }) {
|
|
287
|
+
se.value.closePageDialog({ entity: t2, pageCode: n2, jumpInfo: e4 });
|
|
288
|
+
}), H.$on(de + "_close-dialog-get-entity", () => {
|
|
289
|
+
H.$emit(de + "_close-super-dialog");
|
|
290
|
+
}), H.$on(pe + "-pickFileDone", (e4) => {
|
|
291
|
+
se.value.pickFileDone(e4);
|
|
292
|
+
}), H.$on(pe + "-scanDone", (e4) => {
|
|
293
|
+
se.value.scanDone(e4);
|
|
294
|
+
}), re.value.formSetMaxHeight = Be(), re.value && re.value.configureObj.props.base && re.value.configureObj.props.base.isSafeDelete && we("setSafeDeleteTableCode", re.value.extraParam.tableName);
|
|
295
|
+
}), o(() => Y.pageContext.searchFormData, (e3) => {
|
|
296
|
+
me.value.data = e3;
|
|
297
|
+
}), o(() => Y.pageContext.entity.data, (e3) => {
|
|
298
|
+
je(Y.pageContext.entity.data);
|
|
299
299
|
}), i(() => {
|
|
300
|
-
window.removeEventListener("message",
|
|
300
|
+
window.removeEventListener("message", Fe), H.$off(de + "-close-component-page-dialog"), H.$off(de + "_close-dialog-get-entity"), H.$off(pe + "-pickFileDone"), H.$off(pe + "-scanDone");
|
|
301
301
|
});
|
|
302
|
-
const
|
|
303
|
-
if (!
|
|
304
|
-
let e3 =
|
|
302
|
+
const Xe = () => {
|
|
303
|
+
if (!ue.value) return null;
|
|
304
|
+
let e3 = ue.value.closest(".app-container");
|
|
305
305
|
if (!e3) return null;
|
|
306
|
-
const t2 =
|
|
306
|
+
const t2 = ue.value.getBoundingClientRect(), n2 = e3.getBoundingClientRect(), o2 = window.scrollY;
|
|
307
307
|
return { distanceToTop: t2.top + o2 - n2.top, distanceToBottom: n2.bottom - t2.top };
|
|
308
308
|
};
|
|
309
|
-
function
|
|
309
|
+
function Ze({ row: e3, editConditions: t2 }) {
|
|
310
310
|
let n2 = true;
|
|
311
|
-
return t2 && t2.length > 0 && (n2 = L(
|
|
311
|
+
return t2 && t2.length > 0 && (n2 = L(Y.pageContext, t2, e3)), n2;
|
|
312
312
|
}
|
|
313
|
-
function
|
|
314
|
-
const n2 =
|
|
313
|
+
function et(e3, t2) {
|
|
314
|
+
const n2 = _(Y.pageContext, t2);
|
|
315
315
|
if (n2) {
|
|
316
316
|
const t3 = n2.getConfigure();
|
|
317
317
|
if ("datePicker" === t3.name) {
|
|
@@ -320,62 +320,62 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
|
-
return
|
|
324
|
-
return
|
|
323
|
+
return q2({ refresh: function(e3, t2, n2, o2) {
|
|
324
|
+
return se.value.refresh(e3, t2, n2, o2);
|
|
325
325
|
}, createRow: function() {
|
|
326
|
-
return
|
|
327
|
-
}, clearSelections:
|
|
328
|
-
return
|
|
326
|
+
return se.value.createRow(pe, {}, { getDefaultValueFunc: U });
|
|
327
|
+
}, clearSelections: ze, getSelections: function() {
|
|
328
|
+
return fe.value;
|
|
329
329
|
}, getSelectionIds: function() {
|
|
330
330
|
const e3 = [];
|
|
331
|
-
return null !==
|
|
331
|
+
return null !== fe.value && fe.value.forEach((t2) => {
|
|
332
332
|
e3.push(t2.id ? t2.id : t2.ID ? t2.ID : null);
|
|
333
333
|
}), e3;
|
|
334
334
|
}, getTableConfigure: function() {
|
|
335
|
-
return
|
|
335
|
+
return K;
|
|
336
336
|
}, isDeleteChange: function(e3) {
|
|
337
|
-
|
|
337
|
+
se.value.isDeleteChange(e3);
|
|
338
338
|
}, validatorSunTableListData: function() {
|
|
339
|
-
return
|
|
339
|
+
return se.value.validatorSunTableListData();
|
|
340
340
|
}, showMobileSearch: function() {
|
|
341
|
-
|
|
341
|
+
be.value && se.value.showMobileSearch();
|
|
342
342
|
}, getTableSelectOptions: function() {
|
|
343
|
-
if (
|
|
343
|
+
if (se.value) return se.value.getTableSelectOptions(pe);
|
|
344
344
|
}, dynamicControlTableEdit: function(e3, t2, n2) {
|
|
345
|
-
|
|
345
|
+
se.value && se.value.dynamicControlTableEdit(e3, t2, n2);
|
|
346
346
|
}, doLayout: function(e3) {
|
|
347
|
-
|
|
347
|
+
se.value && se.value.doLayout(e3);
|
|
348
348
|
}, changeOperationAddState: function(e3) {
|
|
349
349
|
}, scrollTo: function(e3, t2) {
|
|
350
|
-
|
|
350
|
+
se.value && se.value.scrollTo(e3, t2);
|
|
351
351
|
}, setScrollTop: function(e3) {
|
|
352
|
-
|
|
352
|
+
se.value && se.value.setScrollTop(e3);
|
|
353
353
|
}, setScrollLeft: function(e3) {
|
|
354
|
-
|
|
354
|
+
se.value && se.value.setScrollLeft(e3);
|
|
355
355
|
}, getSuperGridRef: function() {
|
|
356
|
-
return
|
|
356
|
+
return se.value;
|
|
357
357
|
}, getSuperGridTableRef: function() {
|
|
358
|
-
return
|
|
358
|
+
return se.value.getSuperGridTableRef();
|
|
359
359
|
}, setCurrentRowIndex: function(e3) {
|
|
360
360
|
var _a;
|
|
361
|
-
(_a =
|
|
361
|
+
(_a = se.value) == null ? void 0 : _a.setCurrentRowIndex(e3);
|
|
362
362
|
}, setScrollTopByRowIndex: function(e3) {
|
|
363
363
|
var _a;
|
|
364
|
-
(_a =
|
|
364
|
+
(_a = se.value) == null ? void 0 : _a.setScrollTopByRowIndex(e3);
|
|
365
365
|
}, getTableData: function() {
|
|
366
366
|
var _a;
|
|
367
|
-
return (_a =
|
|
367
|
+
return (_a = se.value) == null ? void 0 : _a.getTableData();
|
|
368
368
|
}, handleSearch: function(e3, t2) {
|
|
369
369
|
var _a;
|
|
370
|
-
return (_a =
|
|
370
|
+
return (_a = se.value) == null ? void 0 : _a.handleSearch(e3, t2);
|
|
371
371
|
}, getColumns: function() {
|
|
372
372
|
var _a;
|
|
373
|
-
return (_a =
|
|
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:
|
|
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: Le, onCellDblclick: $e, onRowClick: _e, onRowDblclick: Ae, 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 {
|
|
380
|
-
|
|
380
|
+
q as default
|
|
381
381
|
};
|
|
@@ -78,7 +78,7 @@ const f = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }
|
|
|
78
78
|
}, getColumns: function() {
|
|
79
79
|
var _a;
|
|
80
80
|
return (_a = b.value) == null ? void 0 : _a.getColumns();
|
|
81
|
-
} }), (
|
|
81
|
+
} }), (e3, t2) => (o(), u("div", null, [r(g) && "form" === r(g) && C.value ? (o(), a(i, { key: 0, ref_key: "gridRef", ref: b, pageContext: e3.pageContext, configure: d.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"])) : r(g) && "form" === r(g) ? l("", true) : (o(), a(c, { key: 1, ref_key: "gridRef", ref: b, pageContext: e3.pageContext, configure: d.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"]))]));
|
|
82
82
|
} });
|
|
83
83
|
export {
|
|
84
84
|
f as default
|