super-page-runtime 2.2.91 → 2.2.92-sit10

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.
Files changed (27) hide show
  1. package/dist/es/components/runtime/utils/charts/chart-util.js +26 -32
  2. package/dist/es/components/runtime/utils/common-util.js +1 -1
  3. package/dist/es/components/runtime/utils/events/event-util.js +111 -110
  4. package/dist/es/components/runtime/utils/events/print-label.js +53 -40
  5. package/dist/es/components/runtime/utils/events/standard-event.js +135 -123
  6. package/dist/es/components/runtime/utils/page-helper-util.d.ts +9 -1
  7. package/dist/es/components/runtime/utils/page-helper-util.js +91 -84
  8. package/dist/es/components/runtime/utils/page-init-util.js +23 -23
  9. package/dist/es/components/runtime/utils/page-permission-util.js +6 -6
  10. package/dist/es/components/runtime/utils/table-utils.js +5 -1
  11. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +2 -2
  12. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +22 -22
  13. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +16 -16
  14. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +21 -21
  15. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +18 -18
  16. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +17 -17
  17. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +53 -54
  18. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +198 -192
  19. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +94 -90
  20. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +49 -41
  21. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +24 -24
  22. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +51 -55
  23. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
  24. package/dist/es/index.d.ts +2 -2
  25. package/dist/es/index.js +2 -1
  26. package/dist/es/style.css +3 -3
  27. package/package.json +2 -2
@@ -1,181 +1,183 @@
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 w, rowDblClick as S, headerClick as y, getEventNameByType as C, getEventFuncByType as x, getHandleEvent as D } from "../../../../utils/events/event-util.js";
3
- import { getBaseUrl as E, getListCode as O, getRealRestApiPath as k, isWorkflowPage as T, isVariableInvalidValue as R } from "../../../../utils/common-util.js";
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 C, headerClick as S, getEventNameByType as y, getEventFuncByType as x, getHandleEvent as E } from "../../../../utils/events/event-util.js";
3
+ import { getBaseUrl as D, getListCode as O, getRealRestApiPath as k, isWorkflowPage as T, isVariableInvalidValue as R } from "../../../../utils/common-util.js";
4
4
  import { getAdditionalParamMap as I, getSaveFormRequestWithRow as V, standardEvents as j } from "../../../../utils/events/standard-event.js";
5
5
  import { isPromise as N } from "agilebuilder-ui/src/utils/common-util";
6
6
  import { getOperationButtons as P, popupToPage as B } from "../../../../utils/table-utils.js";
7
7
  import F from "../../../../utils/eventBus.js";
8
8
  import { getDefaultValue as H } from "../../../../utils/page-init-util.js";
9
- import { decomposeVariable as U, getSizeConfig as M } from "../../../../utils/page-helper-util.js";
10
- import { getRowStyleUtil as $, getCellStyleUtil as _, getHeaderCellStyleUtil as L } from "../../chart/table/chart-table-util.js";
11
- const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: z2, emit: W }) {
12
- const q = e2, G = q.pageContext;
13
- let Q = q.configure;
14
- const J = t({});
15
- G.isTest ? J.value = q.configure.runtime ? q.configure.runtime : {} : G.tableRuntimes && G.tableRuntimes[Q.uuid] && (Q = JSON.parse(G.tableRuntimes[Q.uuid].configure), J.value = Q.runtime ? Q.runtime : {});
16
- const K = J.value.style, X = J.value.class, Y = G.systemCode, Z = G.backendUrl, ee = Q.props && Q.props.dataOrigin && Q.props.dataOrigin.tableName;
17
- let te = E(G.backendUrl, G.isTest);
18
- te || (te = window.$vueApp.config.globalProperties.baseURL);
19
- const ne = t({}), oe = [], ie = t({});
20
- ie.value = function() {
21
- const e3 = G.systemCode, t2 = G.code;
22
- let n2 = Q.props && Q.props.dataOrigin && "[]" !== Q.props.dataOrigin.sqlFilterCondition ? Q.props.dataOrigin.sqlFilterCondition : null;
9
+ import { getSizeConfig as U, caculateShowCondition as M, decomposeVariable as $ } from "../../../../utils/page-helper-util.js";
10
+ import { getRowStyleUtil as _, getCellStyleUtil as L, getHeaderCellStyleUtil as A } from "../../chart/table/chart-table-util.js";
11
+ const z = ["id"], G = e({ __name: "main-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: G2, emit: W }) {
12
+ const q = e2, Q = q.pageContext;
13
+ let J = q.configure;
14
+ const K = t({});
15
+ Q.isTest ? K.value = q.configure.runtime ? q.configure.runtime : {} : Q.tableRuntimes && Q.tableRuntimes[J.uuid] && (J = JSON.parse(Q.tableRuntimes[J.uuid].configure), K.value = J.runtime ? J.runtime : {});
16
+ const X = K.value.style, Y = K.value.class, Z = Q.systemCode, ee = Q.backendUrl, te = J.props && J.props.dataOrigin && J.props.dataOrigin.tableName;
17
+ let ne = D(Q.backendUrl, Q.isTest);
18
+ ne || (ne = window.$vueApp.config.globalProperties.baseURL);
19
+ const oe = t({}), ie = [], ae = t({});
20
+ ae.value = function() {
21
+ const e3 = Q.systemCode, t2 = Q.code;
22
+ let n2 = J.props && J.props.dataOrigin && "[]" !== J.props.dataOrigin.sqlFilterCondition ? J.props.dataOrigin.sqlFilterCondition : null;
23
23
  null == n2 && (n2 = []);
24
- const i2 = { isSql: true, optionTableHeight: 0, rowKeyProp: Q.props.dataOrigin.principalLinkage, extraParam: { beanName: G.beanName, functionCode: t2 + ".listData", tableName: ee, systemCode: e3, pageCode: G.code, pageVersion: G.version }, initSearchForm: n2, lineEditOptions: { aftersaveIsCreateRow: false, autoSave: false, enter: he, esc: Ce }, indexContinuous: !(!Q.props || !Q.props.otherSettings) && Q.props.otherSettings.serialNumberContinuous, initSearch: !Q.props || false !== Q.props.dataOrigin.initializationQuery, resizeHeight: Re, pageCode: G.code, pageVersion: G.version, additionalParamMap: I(G), showOverflowTooltip: !(!Q.props || !Q.props.otherSettings || void 0 !== Q.props.otherSettings.isBreakLine && false !== Q.props.otherSettings.isBreakLine), isEnableEnterEvent: Q.props && Q.props.otherSettings && Q.props.otherSettings.isEnableEnterEvent, isWithDataPermission: !!(Q.props && Q.props.otherSettings && Q.props.otherSettings.isWithDataPermission) && Q.props.otherSettings.isWithDataPermission, pageDevMode: false, isWorkflowEntity: T(G), tableClass: X, tableStyle: K, pageContext: G, configureObj: Q, backendUrl: te, cellStyleRender: ze, rowStyleRender: Ae, titleStyleRender: We };
25
- (function(e4) {
24
+ const o2 = { isSql: true, optionTableHeight: 0, rowKeyProp: J.props.dataOrigin.principalLinkage, extraParam: { beanName: Q.beanName, functionCode: t2 + ".listData", tableName: te, systemCode: e3, pageCode: Q.code, pageVersion: Q.version }, initSearchForm: n2, lineEditOptions: { aftersaveIsCreateRow: false, autoSave: false, enter: we, esc: Ee }, indexContinuous: !(!J.props || !J.props.otherSettings) && J.props.otherSettings.serialNumberContinuous, initSearch: !J.props || false !== J.props.dataOrigin.initializationQuery, resizeHeight: Ve, pageCode: Q.code, pageVersion: Q.version, additionalParamMap: I(Q), showOverflowTooltip: !(!J.props || !J.props.otherSettings || void 0 !== J.props.otherSettings.isBreakLine && false !== J.props.otherSettings.isBreakLine), isEnableEnterEvent: J.props && J.props.otherSettings && J.props.otherSettings.isEnableEnterEvent, isWithDataPermission: !!(J.props && J.props.otherSettings && J.props.otherSettings.isWithDataPermission) && J.props.otherSettings.isWithDataPermission, pageDevMode: false, isWorkflowEntity: T(Q), tableClass: Y, tableStyle: X, pageContext: Q, configureObj: J, backendUrl: ne, cellStyleRender: We, rowStyleRender: Ge, titleStyleRender: qe, validateEitConditions: Xe };
25
+ return function(e4) {
26
26
  var _a;
27
- ((_a = Q.props.highOrder) == null ? void 0 : _a.mergeFields) && Q.props.highOrder.mergeFields.length > 0 && (e4.mergeFields = Q.props.highOrder.mergeFields.join(","));
28
- })(i2), function(e4) {
27
+ ((_a = J.props.highOrder) == null ? void 0 : _a.mergeFields) && J.props.highOrder.mergeFields.length > 0 && (e4.mergeFields = J.props.highOrder.mergeFields.join(","));
28
+ }(o2), function(e4) {
29
29
  const t3 = [];
30
30
  e4.operations || (e4.operations = {});
31
- P(G, Q, t3, we), e4.operations.operation = t3;
32
- }(i2), function(e4) {
33
- Q.props && Q.props.dataOrigin && Q.props.dataOrigin.sortField && (e4.initSortInfo = [], Q.props.dataOrigin.sortField.forEach((t3) => {
31
+ P(Q, J, t3, Se), e4.operations.operation = t3;
32
+ }(o2), function(e4) {
33
+ J.props && J.props.dataOrigin && J.props.dataOrigin.sortField && (e4.initSortInfo = [], J.props.dataOrigin.sortField.forEach((t3) => {
34
34
  const n3 = { order: "desc" === t3.type ? "desc" : "asc" };
35
35
  n3.prop = t3.name, e4.initSortInfo.push(n3);
36
36
  }));
37
- }(i2), Q.props.linkages && Q.props.linkages.length > 0 && (Q.props.linkages.forEach((e4) => {
38
- const t3 = U(e4.fieldName);
39
- t3 && t3.length > 1 && oe.push(t3[1]);
40
- }), oe.length > 0 && function() {
41
- let e4 = [];
42
- q.pageContext.toolsInputComponents && q.pageContext.toolsInputComponents.length > 0 && q.pageContext.toolsInputComponents.forEach((t3) => {
43
- if (Q.props.linkages.some((e5) => e5.fieldName === t3.prop) && t3.defaultValue) {
44
- const n3 = U(t3.prop);
45
- n3 && n3.length > 1 && e4.push(n3[1]);
46
- }
47
- });
48
- if (0 === e4.length) Ge();
49
- else {
50
- const t3 = qe();
51
- e4 = e4.filter((e5) => R(t3, e5)), 0 === e4.length ? (Te(t3), Ge()) : oe.forEach((t4) => {
52
- o(() => q.pageContext.entity.page[t4], () => {
53
- const t5 = qe();
54
- 0 === e4.length ? Te(t5) : (e4 = e4.filter((e5) => R(t5, e5)), 0 === e4.length && Te(t5));
55
- }, { immediate: true });
56
- });
57
- }
58
- }());
59
- return function(e4) {
60
- const t3 = Q.props ? Q.props.dataOrigin : {};
37
+ }(o2), function(e4) {
38
+ const t3 = J.props ? J.props.dataOrigin : {};
61
39
  if (t3.treeTable) {
62
40
  let n3;
63
- const o2 = t3.rowKey;
64
- if (n3 = o2 && o2.indexOf("~~") > 0 ? o2.substring(o2.indexOf("~~") + 2) : o2, e4.parentProp = n3, t3.checkStrictly && (e4.checkStrictly = t3.checkStrictly), e4.parentProp) {
65
- const o3 = t3.lazy, i3 = t3.defaultExpandAll;
66
- e4.lazy = null == o3 || o3, e4.defaultExpandAll = null != i3 && i3;
41
+ const o3 = t3.rowKey;
42
+ if (n3 = o3 && o3.indexOf("~~") > 0 ? o3.substring(o3.indexOf("~~") + 2) : o3, e4.parentProp = n3, t3.checkStrictly && (e4.checkStrictly = t3.checkStrictly), e4.parentProp) {
43
+ const o4 = t3.lazy, i2 = t3.defaultExpandAll;
44
+ e4.lazy = null == o4 || o4, e4.defaultExpandAll = null != i2 && i2;
67
45
  const a2 = { parentProp: n3, lazy: e4.lazy, defaultExpandAll: e4.defaultExpandAll };
68
- e4.extraParam.listViewTreeSetting = JSON.stringify(a2), e4.subRowUrl = te + "/dsc/commons/list-subs";
46
+ e4.extraParam.listViewTreeSetting = JSON.stringify(a2), e4.subRowUrl = ne + "/dsc/commons/list-subs";
69
47
  }
70
48
  }
71
- }(i2), function(e4) {
72
- const t3 = Q.runtime && Q.runtime.events ? Q.runtime.events : [];
73
- c(e4, t3, G, Q);
74
- const n3 = G.customEvents;
49
+ }(o2), function(e4) {
50
+ const t3 = J.runtime && J.runtime.events ? J.runtime.events : [];
51
+ c(e4, t3, Q, J);
52
+ const n3 = Q.customEvents;
75
53
  n3 && (e4.eventCallBack = n3);
76
- }(i2), i2;
54
+ }(o2), o2;
77
55
  }();
78
- const ae = t(), le = t(), re = function() {
79
- let e3 = te + "/dsc/commons/list";
80
- e3 && (e3 = k(e3, Y, Z, G.isTest));
56
+ const le = t(), re = t(), ue = function() {
57
+ let e3 = ne + "/dsc/commons/list";
58
+ e3 && (e3 = k(e3, Z, ee, Q.isTest));
81
59
  return e3;
82
- }(), ue = O(G.code, G.version, Q.uuid), se = G.code + "_" + ue, ce = t([]), pe = G.entity.page, de = t({ data: [] }), fe = G.superGridItems, ge = fe ? fe[Q.uuid] : null, me = t(false), ve = W;
83
- function he({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
84
- be(null, null, n2, t2, e3);
85
- }
86
- function be(e3, t2, n2, o2, i2) {
87
- const a2 = ne.value.lineEditSave, l2 = Q;
88
- a2.props.base.tableUuid = l2.uuid, ie.value.lineEditOptions.beforeSave = Se, G.editData = n2, p({ pageContext: G, configureObj: a2 }).then((l3) => {
89
- true === l3.canExecute && (ie.value.lineEditOptions.saveRow = ye, le.value.saveRow(i2, ue).then(() => {
90
- d(G, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
60
+ }(), se = O(Q.code, Q.version, J.uuid), ce = Q.code + "_" + se, pe = t([]), de = Q.entity.page, fe = t({ data: [] }), ge = Q.superGridItems, me = ge ? ge[J.uuid] : null, ve = t(false), he = W;
61
+ function be() {
62
+ J.props.linkages && J.props.linkages.length > 0 && (J.props.linkages.forEach((e3) => {
63
+ const t2 = $(e3.fieldName);
64
+ t2 && t2.length > 1 && ie.push(t2[1]);
65
+ }), ie.length > 0 && function() {
66
+ let e3 = [];
67
+ q.pageContext.toolsInputComponents && q.pageContext.toolsInputComponents.length > 0 && q.pageContext.toolsInputComponents.forEach((t2) => {
68
+ if (J.props.linkages.some((e4) => e4.fieldName === t2.prop) && t2.defaultValue) {
69
+ const n2 = $(t2.prop);
70
+ n2 && n2.length > 1 && e3.push(n2[1]);
71
+ }
72
+ });
73
+ if (0 === e3.length) Je();
74
+ else {
75
+ const t2 = Qe();
76
+ e3 = e3.filter((e4) => R(t2, e4)), 0 === e3.length ? (Ie(t2), Je()) : ie.forEach((t3) => {
77
+ o(() => q.pageContext.entity.page[t3], () => {
78
+ const t4 = Qe();
79
+ 0 === e3.length ? Ie(t4) : (e3 = e3.filter((e4) => R(t4, e4)), 0 === e3.length && Ie(t4));
80
+ }, { immediate: true });
81
+ });
82
+ }
83
+ }());
84
+ }
85
+ function we({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
86
+ Ce(null, null, n2, t2, e3);
87
+ }
88
+ function Ce(e3, t2, n2, o2, i2) {
89
+ const a2 = oe.value.lineEditSave, l2 = J;
90
+ a2.props.base.tableUuid = l2.uuid, ae.value.lineEditOptions.beforeSave = ye, Q.editData = n2, p({ pageContext: Q, configureObj: a2 }).then((l3) => {
91
+ true === l3.canExecute && (ae.value.lineEditOptions.saveRow = xe, re.value.saveRow(i2, se).then(() => {
92
+ d(Q, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
91
93
  }));
92
94
  }).finally(() => {
93
- G.editData = null;
95
+ Q.editData = null;
94
96
  });
95
97
  }
96
- function we(e3) {
98
+ function Se(e3) {
97
99
  if (!e3) return;
98
100
  let t2;
99
- const n2 = C(e3.events, "click");
101
+ const n2 = y(e3.events, "click");
100
102
  if (n2) {
101
- if (ne.value[n2] = e3, "lineEditSave" === n2 ? t2 = be : "restoreEdit" === n2 ? t2 = xe : "lineEditUpdate" === n2 ? t2 = De : "lineEditDelete" === n2 && (t2 = Oe), !t2) {
102
- t2 = x(G, e3.events, "click");
103
+ if (oe.value[n2] = e3, "lineEditSave" === n2 ? t2 = Ce : "restoreEdit" === n2 ? t2 = De : "lineEditUpdate" === n2 ? t2 = Oe : "lineEditDelete" === n2 && (t2 = Te), !t2) {
104
+ t2 = x(Q, e3.events, "click");
103
105
  }
104
- } else ne.value[e3.uuid] = e3, t2 = Ve;
105
- return t2;
106
+ } else oe.value[e3.uuid] = e3, t2 = Ne;
107
+ return { onClick: t2, eventName: n2 };
106
108
  }
107
- function Se({ row: e3, columns: t2, additionalParamMap: n2 }) {
108
- const o2 = ne.value.lineEditSave, i2 = Q;
109
+ function ye({ row: e3, columns: t2, additionalParamMap: n2 }) {
110
+ const o2 = oe.value.lineEditSave, i2 = J;
109
111
  o2.props.base.tableUuid = i2.uuid;
110
- return f(G, o2, { row: e3, columns: t2 });
112
+ return f(Q, o2, { row: e3, columns: t2 });
111
113
  }
112
- function ye({ row: e3, columns: t2, dataTypeMap: n2, dynamicColumnInfo: o2, additionalParamMap: i2, mainDefaultValueColumns: a2 }) {
113
- const l2 = ne.value.lineEditSave, r2 = Q;
114
+ function xe({ row: e3, columns: t2, dataTypeMap: n2, dynamicColumnInfo: o2, additionalParamMap: i2, mainDefaultValueColumns: a2 }) {
115
+ const l2 = oe.value.lineEditSave, r2 = J;
114
116
  return l2.props.base.tableUuid = r2.uuid, new Promise((t3, n3) => {
115
117
  const i3 = { tableName: r2.props.dataOrigin.tableName };
116
- V(G, l2, "/dsc/commons", false, a2, o2, e3, i3).then((e4) => {
118
+ V(Q, l2, "/dsc/commons", false, a2, o2, e3, i3).then((e4) => {
117
119
  t3(e4 ? e4.entity : {});
118
120
  }).catch((e4) => {
119
121
  n3(e4);
120
122
  });
121
123
  });
122
124
  }
123
- function Ce({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
124
- xe(null, null, n2, t2, e3);
125
+ function Ee({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
126
+ De(null, null, n2, t2, e3);
125
127
  }
126
- function xe(e3, t2, n2, o2, i2) {
127
- const a2 = ne.value.restoreEdit, l2 = Q;
128
+ function De(e3, t2, n2, o2, i2) {
129
+ const a2 = oe.value.restoreEdit, l2 = J;
128
130
  a2.props.base.tableUuid = l2.uuid;
129
- const r2 = f(G, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
131
+ const r2 = f(Q, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
130
132
  if (!r2) return;
131
133
  N(r2) ? r2.then((e4) => {
132
- e4 && le.value.restoreRow(i2, ue);
133
- }) : le.value.restoreRow(i2, ue);
134
- d(G, Q, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
134
+ e4 && re.value.restoreRow(i2, se);
135
+ }) : re.value.restoreRow(i2, se);
136
+ d(Q, J, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
135
137
  }
136
- function De(e3, t2, n2, o2, i2) {
137
- const a2 = ne.value.lineEditUpdate, l2 = Q;
138
+ function Oe(e3, t2, n2, o2, i2) {
139
+ const a2 = oe.value.lineEditUpdate, l2 = J;
138
140
  a2.props.base.tableUuid = l2.uuid;
139
- const r2 = f(G, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
141
+ const r2 = f(Q, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
140
142
  r2 && (N(r2) ? r2.then((l3) => {
141
- l3 && Ee(e3, t2, n2, o2, i2, a2);
142
- }) : Ee(e3, t2, n2, o2, i2, a2));
143
+ l3 && ke(e3, t2, n2, o2, i2, a2);
144
+ }) : ke(e3, t2, n2, o2, i2, a2));
143
145
  }
144
- function Ee(e3, t2, n2, o2, i2, a2) {
145
- G.editData = n2, p({ pageContext: G, configureObj: a2 }).then((a3) => {
146
+ function ke(e3, t2, n2, o2, i2, a2) {
147
+ Q.editData = n2, p({ pageContext: Q, configureObj: a2 }).then((a3) => {
146
148
  if (true === a3.canExecute) {
147
- le.value.editRow(i2, ue);
148
- d(G, Q, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
149
+ re.value.editRow(i2, se);
150
+ d(Q, J, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
149
151
  }
150
152
  }).finally(() => {
151
- G.editData = null;
153
+ Q.editData = null;
152
154
  });
153
155
  }
154
- function Oe(e3, t2, n2, o2, i2) {
155
- const a2 = ne.value.lineEditDelete, l2 = Q;
156
+ function Te(e3, t2, n2, o2, i2) {
157
+ const a2 = oe.value.lineEditDelete, l2 = J;
156
158
  a2.props.base.tableUuid = l2.uuid;
157
- const r2 = f(G, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
159
+ const r2 = f(Q, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
158
160
  r2 && (N(r2) ? r2.then((l3) => {
159
- l3 && ke(e3, t2, n2, o2, i2, a2);
160
- }) : ke(e3, t2, n2, o2, i2, a2));
161
+ l3 && Re(e3, t2, n2, o2, i2, a2);
162
+ }) : Re(e3, t2, n2, o2, i2, a2));
161
163
  }
162
- function ke(e3, t2, n2, o2, i2, a2) {
163
- if (n2.id || n2.ID) G.editData = n2, p({ pageContext: G, configureObj: a2 }).then((e4) => {
164
+ function Re(e3, t2, n2, o2, i2, a2) {
165
+ if (n2.id || n2.ID) Q.editData = n2, p({ pageContext: Q, configureObj: a2 }).then((e4) => {
164
166
  if (true === e4.canExecute) {
165
167
  const e5 = [];
166
- n2.id ? e5.push(n2.id) : e5.push(n2.ID), j.delete({ pageContext: G, configureObj: a2, ids: e5 });
168
+ n2.id ? e5.push(n2.id) : e5.push(n2.ID), j.delete({ pageContext: Q, configureObj: a2, ids: e5 });
167
169
  }
168
170
  }).finally(() => {
169
- G.editData = null;
171
+ Q.editData = null;
170
172
  });
171
173
  else {
172
- xe(e3, t2, n2, o2, i2);
173
- d(G, Q, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
174
+ De(e3, t2, n2, o2, i2);
175
+ d(Q, J, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
174
176
  }
175
177
  }
176
- function Te(e3) {
177
- if (!G.dataTypeMaps) return;
178
- const t2 = G.dataTypeMaps;
178
+ function Ie(e3) {
179
+ if (!Q.dataTypeMaps) return;
180
+ const t2 = Q.dataTypeMaps;
179
181
  let n2 = [];
180
182
  if (e3) for (var o2 in e3) {
181
183
  const a2 = e3[o2];
@@ -193,146 +195,150 @@ const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}
193
195
  e4.propName = o2, e4.propDbName = o2, e4.dataType = t2[o2] ? t2[o2] : "TEXT", e4.operator = "EQ", e4.propValue = a2, e4.rightBracket = ")", e4.joinSign = "and", n2.push(e4);
194
196
  }
195
197
  }
196
- le.value.toolbarRefresh(null, null, n2);
198
+ re.value.toolbarRefresh(null, null, n2);
197
199
  }
198
- function Re(e3) {
199
- const t2 = Ie();
200
+ function Ve(e3) {
201
+ const t2 = je();
200
202
  if (t2) {
201
203
  let n2 = 0;
202
204
  return e3.searchHeight && (n2 = e3.searchHeight), t2 - 20 - n2;
203
205
  }
204
206
  }
205
- function Ie() {
206
- if (!le.value) return;
207
- const e3 = M(q.pageContext, q.configure);
207
+ function je() {
208
+ if (!re.value) return;
209
+ const e3 = U(q.pageContext, q.configure);
208
210
  if (e3) {
209
211
  if (e3.isCalcHeight) {
210
- let e4 = le.value.$el;
211
- if (e4 || (e4 = le.value), !e4) return;
212
+ let e4 = re.value.$el;
213
+ if (e4 || (e4 = re.value), !e4) return;
212
214
  const t2 = e4.getBoundingClientRect();
213
215
  return window.innerHeight - t2.y - 90;
214
216
  }
215
- if (e3.fixHeight && le.value && (le.value.tableHeight = e3.fixHeight), e3.maxHeight) return e3.maxHeight;
217
+ if (e3.fixHeight && re.value && (re.value.tableHeight = e3.fixHeight), e3.maxHeight) return e3.maxHeight;
216
218
  }
217
219
  }
218
- function Ve(e3, t2, n2, o2, i2, a2) {
219
- const l2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2, button: a2, id: n2.ID ? n2.ID : n2.id }, r2 = ne.value[a2.sourceButton.uuid], u2 = Q;
220
- r2.props.base.tableUuid = u2.uuid, D(null, G, r2, "click", l2);
221
- }
222
- function je(e3) {
223
- "close_open_win" === e3.data && le.value && le.value.refresh();
224
- }
225
- function Ne(e3, t2) {
226
- ce.value = e3;
227
- g(G, Q, { selection: e3, row: t2 });
220
+ function Ne(e3, t2, n2, o2, i2, a2) {
221
+ const l2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2, button: a2, id: n2.ID ? n2.ID : n2.id }, r2 = oe.value[a2.sourceButton.uuid], u2 = J;
222
+ r2.props.base.tableUuid = u2.uuid, E(null, Q, r2, "click", l2);
228
223
  }
229
224
  function Pe(e3) {
230
- ce.value = e3;
231
- m(G, Q, { selection: e3 });
225
+ "close_open_win" === e3.data && re.value && re.value.refresh();
232
226
  }
233
- function Be(e3) {
234
- v(G, Q, { newSelection: e3 });
227
+ function Be(e3, t2) {
228
+ pe.value = e3;
229
+ g(Q, J, { selection: e3, row: t2 });
235
230
  }
236
- function Fe(e3, t2, n2, o2) {
237
- h(G, Q, { row: e3, column: t2, cell: n2, event: o2 });
231
+ function Fe(e3) {
232
+ pe.value = e3;
233
+ m(Q, J, { selection: e3 });
238
234
  }
239
- function He(e3, t2, n2, o2) {
240
- b(G, Q, { row: e3, column: t2, cell: n2, event: o2 });
235
+ function He(e3) {
236
+ v(Q, J, { newSelection: e3 });
241
237
  }
242
- function Ue(e3, t2, n2) {
243
- w(G, Q, { row: e3, column: t2, event: n2 });
238
+ function Ue(e3, t2, n2, o2) {
239
+ h(Q, J, { row: e3, column: t2, cell: n2, event: o2 });
244
240
  }
245
- function Me(e3, t2, n2) {
246
- S(G, Q, { row: e3, column: t2, event: n2 });
241
+ function Me(e3, t2, n2, o2) {
242
+ b(Q, J, { row: e3, column: t2, cell: n2, event: o2 });
247
243
  }
248
- function $e(e3, t2) {
249
- y(G, Q, { column: e3, event: t2 });
244
+ function $e(e3, t2, n2) {
245
+ w(Q, J, { row: e3, column: t2, event: n2 });
250
246
  }
251
- function _e() {
252
- ce.value = [];
247
+ function _e(e3, t2, n2) {
248
+ C(Q, J, { row: e3, column: t2, event: n2 });
253
249
  }
254
- function Le(e3) {
255
- me.value = true;
250
+ function Le(e3, t2) {
251
+ S(Q, J, { column: e3, event: t2 });
256
252
  }
257
- function Ae(e3) {
258
- return $(e3, [], q);
253
+ function Ae() {
254
+ pe.value = [];
259
255
  }
260
256
  function ze(e3) {
261
- return _(e3, e3.cellStyle, q);
257
+ ve.value = true;
258
+ }
259
+ function Ge(e3) {
260
+ return _(e3, [], q);
262
261
  }
263
262
  function We(e3) {
263
+ return L(e3, e3.cellStyle, q);
264
+ }
265
+ function qe(e3) {
264
266
  const t2 = e3.titleStyle, n2 = q.configure.style.titleStyle;
265
- return L(e3, { cellTitleStyle: t2, titleStyle: n2 }, q);
267
+ return A(e3, { cellTitleStyle: t2, titleStyle: n2 }, q);
266
268
  }
267
- function qe() {
269
+ function Qe() {
268
270
  const e3 = {};
269
- return oe.forEach((t2) => {
271
+ return ie.forEach((t2) => {
270
272
  e3[t2] = q.pageContext.entity.page[t2];
271
273
  }), e3;
272
274
  }
273
- function Ge() {
274
- oe.forEach((e3) => {
275
+ function Je() {
276
+ ie.forEach((e3) => {
275
277
  o(() => q.pageContext.entity.page[e3], () => {
276
- Te(qe());
278
+ Ie(Qe());
277
279
  });
278
280
  });
279
281
  }
280
282
  n(() => {
281
- const e3 = Qe();
282
- le.value && e3 && e3.distanceToBottom && (le.value.tableHeight = e3.distanceToBottom - 110), q.pageContext.pageRuntimeStyle, window.addEventListener("message", je), F.$on(se + "-close-component-page-dialog", function({ jumpInfo: e4, popEntity: t2, popPageCode: n2 }) {
283
- le.value.closePageDialog({ entity: t2, pageCode: n2, jumpInfo: e4 });
284
- }), F.$on(se + "_close-dialog-get-entity", () => {
285
- F.$emit(se + "_close-super-dialog");
286
- }), F.$on(ue + "-pickFileDone", (e4) => {
287
- le.value.pickFileDone(e4);
288
- }), F.$on(ue + "-scanDone", (e4) => {
289
- le.value.scanDone(e4);
290
- }), ie.value.formSetMaxHeight = Ie(), ie.value && ie.value.configureObj.props.base && ie.value.configureObj.props.base.isSafeDelete && ve("setSafeDeleteTableCode", ie.value.extraParam.tableName);
283
+ const e3 = Ke();
284
+ re.value && e3 && e3.distanceToBottom && (re.value.tableHeight = e3.distanceToBottom - 110), q.pageContext.pageRuntimeStyle, window.addEventListener("message", Pe), F.$on(ce + "-close-component-page-dialog", function({ jumpInfo: e4, popEntity: t2, popPageCode: n2 }) {
285
+ re.value.closePageDialog({ entity: t2, pageCode: n2, jumpInfo: e4 });
286
+ }), F.$on(ce + "_close-dialog-get-entity", () => {
287
+ F.$emit(ce + "_close-super-dialog");
288
+ }), F.$on(se + "-pickFileDone", (e4) => {
289
+ re.value.pickFileDone(e4);
290
+ }), F.$on(se + "-scanDone", (e4) => {
291
+ re.value.scanDone(e4);
292
+ }), ae.value.formSetMaxHeight = je(), ae.value && ae.value.configureObj.props.base && ae.value.configureObj.props.base.isSafeDelete && he("setSafeDeleteTableCode", ae.value.extraParam.tableName);
291
293
  }), o(() => q.pageContext.searchFormData, (e3) => {
292
- de.value.data = e3;
294
+ fe.value.data = e3;
293
295
  }), o(() => q.pageContext.entity.data, (e3) => {
294
- Te(q.pageContext.entity.data);
296
+ Ie(q.pageContext.entity.data);
295
297
  }), i(() => {
296
- window.removeEventListener("message", je), F.$off(se + "-close-component-page-dialog"), F.$off(se + "_close-dialog-get-entity"), F.$off(ue + "-pickFileDone"), F.$off(ue + "-scanDone");
298
+ window.removeEventListener("message", Pe), F.$off(ce + "-close-component-page-dialog"), F.$off(ce + "_close-dialog-get-entity"), F.$off(se + "-pickFileDone"), F.$off(se + "-scanDone");
297
299
  });
298
- const Qe = () => {
299
- if (!ae.value) return null;
300
- let e3 = ae.value.closest(".app-container");
300
+ const Ke = () => {
301
+ if (!le.value) return null;
302
+ let e3 = le.value.closest(".app-container");
301
303
  if (!e3) return null;
302
- const t2 = ae.value.getBoundingClientRect(), n2 = e3.getBoundingClientRect(), o2 = window.scrollY;
304
+ const t2 = le.value.getBoundingClientRect(), n2 = e3.getBoundingClientRect(), o2 = window.scrollY;
303
305
  return { distanceToTop: t2.top + o2 - n2.top, distanceToBottom: n2.bottom - t2.top };
304
306
  };
305
- return z2({ refresh: function(e3, t2, n2, o2) {
306
- return le.value.refresh(e3, t2, n2, o2);
307
+ function Xe({ row: e3, editConditions: t2 }) {
308
+ let n2 = true;
309
+ return t2 && t2.length > 0 && (n2 = M(q.pageContext, t2, e3)), n2;
310
+ }
311
+ return G2({ refresh: function(e3, t2, n2, o2) {
312
+ return re.value.refresh(e3, t2, n2, o2);
307
313
  }, createRow: function() {
308
- return le.value.createRow(ue, {}, { getDefaultValueFunc: H });
309
- }, clearSelections: _e, getSelections: function() {
310
- return ce.value;
314
+ return re.value.createRow(se, {}, { getDefaultValueFunc: H });
315
+ }, clearSelections: Ae, getSelections: function() {
316
+ return pe.value;
311
317
  }, getSelectionIds: function() {
312
318
  const e3 = [];
313
- return null !== ce.value && ce.value.forEach((t2) => {
319
+ return null !== pe.value && pe.value.forEach((t2) => {
314
320
  e3.push(t2.id ? t2.id : t2.ID ? t2.ID : null);
315
321
  }), e3;
316
322
  }, getTableConfigure: function() {
317
- return Q;
323
+ return J;
318
324
  }, isDeleteChange: function(e3) {
319
- le.value.isDeleteChange(e3);
325
+ re.value.isDeleteChange(e3);
320
326
  }, validatorSunTableListData: function() {
321
- return le.value.validatorSunTableListData();
327
+ return re.value.validatorSunTableListData();
322
328
  }, showMobileSearch: function() {
323
- me.value && le.value.showMobileSearch();
329
+ ve.value && re.value.showMobileSearch();
324
330
  }, getTableSelectOptions: function() {
325
- if (le.value) return le.value.getTableSelectOptions(ue);
331
+ if (re.value) return re.value.getTableSelectOptions(se);
326
332
  }, dynamicControlTableEdit: function(e3, t2, n2) {
327
- le.value && le.value.dynamicControlTableEdit(e3, t2, n2);
333
+ re.value && re.value.dynamicControlTableEdit(e3, t2, n2);
328
334
  }, doLayout: function(e3) {
329
- le.value && le.value.doLayout(e3);
335
+ re.value && re.value.doLayout(e3);
330
336
  }, changeOperationAddState: function(e3) {
331
337
  } }), (e3, t2) => {
332
338
  const n2 = a("super-grid");
333
- return r(), l("div", { ref_key: "tableDivRef", ref: ae, id: u(ue) + "_tableDiv" }, [s(n2, { ref_key: "gridRef", ref: le, url: u(re), options: ie.value, code: u(ue), settings: u(ge), "search-form-info": de.value, "list-toolbar-form-data": u(pe), onSelect: Ne, onSelectAll: Pe, onSelectionChange: Be, onCellClick: Fe, onCellDblclick: He, onRowClick: Ue, onRowDblclick: Me, onHeaderClick: $e, onRefresh: _e, onNewOpenGridDialog: u(B), onCanShowMobileSearch: Le }, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "onNewOpenGridDialog"])], 8, A);
339
+ return r(), l("div", { ref_key: "tableDivRef", ref: le, id: u(se) + "_tableDiv" }, [s(n2, { ref_key: "gridRef", ref: re, url: u(ue), options: ae.value, code: u(se), settings: u(me), "search-form-info": fe.value, "list-toolbar-form-data": u(de), onSelect: Be, onSelectAll: Fe, onSelectionChange: He, onCellClick: Ue, onCellDblclick: Me, onRowClick: $e, onRowDblclick: _e, onHeaderClick: Le, onRefresh: Ae, onNewOpenGridDialog: u(B), onCanShowMobileSearch: ze, onGridOnmounted: be }, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "onNewOpenGridDialog"])], 8, z);
334
340
  };
335
341
  } });
336
342
  export {
337
- z as default
343
+ G as default
338
344
  };