super-page-runtime 2.2.29 → 2.2.32

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.
@@ -379,7 +379,7 @@ function F(t2, s2, n2, o2, i2) {
379
379
  if (s3) {
380
380
  const n4 = s3;
381
381
  let o3;
382
- n4.entity && (o3 = n4.entity), n4.formNo && (e2.initFormNo = n4.formNo);
382
+ o3 = n4.entity ? n4.entity : n4, n4.formNo && (e2.initFormNo = n4.formNo);
383
383
  !function(e3, t4, s4) {
384
384
  const n5 = t4.props.base.successOperation;
385
385
  if (!n5 || null === n5) return;
@@ -73,6 +73,10 @@ export interface PageDesign extends Component {
73
73
  subTableWatchProps?: object;
74
74
  allChartUuids: Array<string>;
75
75
  }
76
+ interface PageRuntimeStyle {
77
+ height?: number;
78
+ width?: number;
79
+ }
76
80
  /**
77
81
  * 运行时页面对象
78
82
  */
@@ -143,6 +147,7 @@ export interface PageContext extends Component {
143
147
  subTableWatchProps?: object;
144
148
  [otherProp: string]: any;
145
149
  allChartUuids: Array<string>;
150
+ pageRuntimeStyle?: PageRuntimeStyle;
146
151
  }
147
152
  /**
148
153
  * 事件对象
@@ -228,3 +233,4 @@ export interface LogicTriggerSource extends Object {
228
233
  triggerType: string;
229
234
  triggerName: string;
230
235
  }
236
+ export {};
@@ -14,3 +14,7 @@ export declare function expressJump(pageContext: any, configure: any, linkPage:
14
14
  show: any;
15
15
  toPage: any;
16
16
  };
17
+ export declare function getDistanceToAppContainer(tableDivRef: any): {
18
+ distanceToTop: number;
19
+ distanceToBottom: number;
20
+ };
@@ -1,60 +1,63 @@
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, createVNode as u, unref 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 E, getHandleEvent as x } from "../../../../utils/events/event-util.js";
3
- import { getBaseUrl as D, getListCode as k, getRealRestApiPath as O, isWorkflowPage as I, isVariableInvalidValue as T } from "../../../../utils/common-util.js";
4
- import { getAdditionalParamMap as R, getSaveFormRequestWithRow as V, standardEvents as j } from "../../../../utils/events/standard-event.js";
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";
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
- import { getOperationButtons as P, popupToPage as U } from "../../../../utils/table-utils.js";
7
- import B from "../../../../utils/eventBus.js";
8
- import { getDefaultValue as M } from "../../../../utils/page-init-util.js";
9
- import { decomposeVariable as $, getSizeConfig as F } from "../../../../utils/page-helper-util.js";
10
- import { getRowStyleUtil as L, getCellStyleUtil as _, getHeaderCellStyleUtil as A } from "../../chart/table/chart-table-util.js";
11
- const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: H2, emit: z }) {
12
- const W = e2, q = W.pageContext;
13
- let G = W.configure;
14
- const Q = t({});
15
- q.isTest ? Q.value = W.configure.runtime ? W.configure.runtime : {} : q.tableRuntimes && q.tableRuntimes[G.uuid] && (G = JSON.parse(q.tableRuntimes[G.uuid].configure), Q.value = G.runtime ? G.runtime : {});
16
- const J = Q.value.style, K = Q.value.class, X = q.systemCode, Y = q.backendUrl, Z = G.props && G.props.dataOrigin && G.props.dataOrigin.tableName;
17
- let ee = D(q.backendUrl, q.isTest);
18
- ee || (ee = window.$vueApp.config.globalProperties.baseURL);
19
- const te = t({}), ne = [], oe = t({});
20
- oe.value = function() {
21
- const e3 = q.systemCode, t2 = q.code;
22
- let n2 = G.props && G.props.dataOrigin && "[]" !== G.props.dataOrigin.sqlFilterCondition ? G.props.dataOrigin.sqlFilterCondition : null;
6
+ import { getOperationButtons as P, popupToPage as B } from "../../../../utils/table-utils.js";
7
+ import F from "../../../../utils/eventBus.js";
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;
23
23
  null == n2 && (n2 = []);
24
- const i2 = { isSql: true, rowKeyProp: G.props.dataOrigin.principalLinkage, extraParam: { beanName: q.beanName, functionCode: t2 + ".listData", tableName: Z, systemCode: e3, pageCode: q.code, pageVersion: q.version }, initSearchForm: n2, lineEditOptions: { aftersaveIsCreateRow: false, autoSave: false, enter: me, esc: Se }, indexContinuous: !(!G.props || !G.props.otherSettings) && G.props.otherSettings.serialNumberContinuous, initSearch: !G.props || false !== G.props.dataOrigin.initializationQuery, resizeHeight: Oe, pageCode: q.code, pageVersion: q.version, additionalParamMap: R(q), showOverflowTooltip: !(!G.props || !G.props.otherSettings || void 0 !== G.props.otherSettings.isBreakLine && false !== G.props.otherSettings.isBreakLine), isEnableEnterEvent: G.props && G.props.otherSettings && G.props.otherSettings.isEnableEnterEvent, isWithDataPermission: !!(G.props && G.props.otherSettings && G.props.otherSettings.isWithDataPermission) && G.props.otherSettings.isWithDataPermission, pageDevMode: false, isWorkflowEntity: I(q), tableClass: K, tableStyle: J, pageContext: q, configureObj: G, backendUrl: ee, cellStyleRender: Ae, rowStyleRender: _e, titleStyleRender: He };
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
25
  (function(e4) {
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) {
26
29
  const t3 = [];
27
30
  e4.operations || (e4.operations = {});
28
- P(q, G, t3, he), e4.operations.operation = t3;
29
- })(i2), function(e4) {
30
- G.props && G.props.dataOrigin && G.props.dataOrigin.sortField && (e4.initSortInfo = [], G.props.dataOrigin.sortField.forEach((t3) => {
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
34
  const n3 = { order: "desc" === t3.type ? "desc" : "asc" };
32
35
  n3.prop = t3.name, e4.initSortInfo.push(n3);
33
36
  }));
34
- }(i2), G.props.linkages && G.props.linkages.length > 0 && (G.props.linkages.forEach((e4) => {
35
- const t3 = $(e4.fieldName);
36
- t3 && t3.length > 1 && ne.push(t3[1]);
37
- }), ne.length > 0 && function() {
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() {
38
41
  let e4 = [];
39
- W.pageContext.toolsInputComponents && W.pageContext.toolsInputComponents.length > 0 && W.pageContext.toolsInputComponents.forEach((t3) => {
40
- if (G.props.linkages.some((e5) => e5.fieldName === t3.prop) && t3.defaultValue) {
41
- const n3 = $(t3.prop);
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);
42
45
  n3 && n3.length > 1 && e4.push(n3[1]);
43
46
  }
44
47
  });
45
- if (0 === e4.length) We();
48
+ if (0 === e4.length) Ge();
46
49
  else {
47
- const t3 = ze();
48
- e4 = e4.filter((e5) => T(t3, e5)), 0 === e4.length ? (ke(t3), We()) : ne.forEach((t4) => {
49
- o(() => W.pageContext.entity.page[t4], () => {
50
- const t5 = ze();
51
- 0 === e4.length ? ke(t5) : (e4 = e4.filter((e5) => T(t5, e5)), 0 === e4.length && ke(t5));
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));
52
55
  }, { immediate: true });
53
56
  });
54
57
  }
55
58
  }());
56
59
  return function(e4) {
57
- const t3 = G.props ? G.props.dataOrigin : {};
60
+ const t3 = Q.props ? Q.props.dataOrigin : {};
58
61
  if (t3.treeTable) {
59
62
  let n3;
60
63
  const o2 = t3.rowKey;
@@ -62,117 +65,117 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
62
65
  const o3 = t3.lazy, i3 = t3.defaultExpandAll;
63
66
  e4.lazy = null == o3 || o3, e4.defaultExpandAll = null != i3 && i3;
64
67
  const a2 = { parentProp: n3, lazy: e4.lazy, defaultExpandAll: e4.defaultExpandAll };
65
- e4.extraParam.listViewTreeSetting = JSON.stringify(a2), e4.subRowUrl = ee + "/dsc/commons/list-subs";
68
+ e4.extraParam.listViewTreeSetting = JSON.stringify(a2), e4.subRowUrl = te + "/dsc/commons/list-subs";
66
69
  }
67
70
  }
68
71
  }(i2), function(e4) {
69
- const t3 = G.runtime && G.runtime.events ? G.runtime.events : [];
70
- c(e4, t3, q, G);
71
- const n3 = q.customEvents;
72
+ const t3 = Q.runtime && Q.runtime.events ? Q.runtime.events : [];
73
+ c(e4, t3, G, Q);
74
+ const n3 = G.customEvents;
72
75
  n3 && (e4.eventCallBack = n3);
73
76
  }(i2), i2;
74
77
  }();
75
- const ie = t(), ae = function() {
76
- let e3 = ee + "/dsc/commons/list";
77
- e3 && (e3 = O(e3, X, Y, q.isTest));
78
+ const ae = t(), le = t(), re = function() {
79
+ let e3 = te + "/dsc/commons/list";
80
+ e3 && (e3 = k(e3, Y, Z, G.isTest));
78
81
  return e3;
79
- }(), le = k(q.code, q.version, G.uuid), re = q.code + "_" + le, ue = t([]), se = q.entity.page, ce = t({ data: [] }), pe = q.superGridItems, de = pe ? pe[G.uuid] : null, fe = t(false), ge = z;
80
- function me({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
81
- ve(null, null, n2, t2, 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);
82
85
  }
83
- function ve(e3, t2, n2, o2, i2) {
84
- const a2 = te.value.lineEditSave, l2 = G;
85
- a2.props.base.tableUuid = l2.uuid, oe.value.lineEditOptions.beforeSave = be, q.editData = n2, p({ pageContext: q, configureObj: a2 }).then((l3) => {
86
- true === l3.canExecute && (oe.value.lineEditOptions.saveRow = we, ie.value.saveRow(i2, le).then(() => {
87
- d(q, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
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 });
88
91
  }));
89
92
  }).finally(() => {
90
- q.editData = null;
93
+ G.editData = null;
91
94
  });
92
95
  }
93
- function he(e3) {
96
+ function we(e3) {
94
97
  if (!e3) return;
95
98
  let t2;
96
99
  const n2 = C(e3.events, "click");
97
100
  if (n2) {
98
- if (te.value[n2] = e3, "lineEditSave" === n2 ? t2 = ve : "restoreEdit" === n2 ? t2 = ye : "lineEditUpdate" === n2 ? t2 = Ce : "lineEditDelete" === n2 && (t2 = xe), !t2) {
99
- t2 = E(q, e3.events, "click");
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");
100
103
  }
101
- } else te.value[e3.uuid] = e3, t2 = Te;
104
+ } else ne.value[e3.uuid] = e3, t2 = Ve;
102
105
  return t2;
103
106
  }
104
- function be({ row: e3, columns: t2, additionalParamMap: n2 }) {
105
- const o2 = te.value.lineEditSave, i2 = G;
107
+ function Se({ row: e3, columns: t2, additionalParamMap: n2 }) {
108
+ const o2 = ne.value.lineEditSave, i2 = Q;
106
109
  o2.props.base.tableUuid = i2.uuid;
107
- return f(q, o2, { row: e3, columns: t2 });
110
+ return f(G, o2, { row: e3, columns: t2 });
108
111
  }
109
- function we({ row: e3, columns: t2, dataTypeMap: n2, dynamicColumnInfo: o2, additionalParamMap: i2, mainDefaultValueColumns: a2 }) {
110
- const l2 = te.value.lineEditSave, r2 = G;
112
+ function ye({ row: e3, columns: t2, dataTypeMap: n2, dynamicColumnInfo: o2, additionalParamMap: i2, mainDefaultValueColumns: a2 }) {
113
+ const l2 = ne.value.lineEditSave, r2 = Q;
111
114
  return l2.props.base.tableUuid = r2.uuid, new Promise((t3, n3) => {
112
115
  const i3 = { tableName: r2.props.dataOrigin.tableName };
113
- V(q, l2, "/dsc/commons", false, a2, o2, e3, i3).then((e4) => {
116
+ V(G, l2, "/dsc/commons", false, a2, o2, e3, i3).then((e4) => {
114
117
  t3(e4 ? e4.entity : {});
115
118
  }).catch((e4) => {
116
119
  n3(e4);
117
120
  });
118
121
  });
119
122
  }
120
- function Se({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
121
- ye(null, null, n2, t2, e3);
123
+ function Ce({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
124
+ xe(null, null, n2, t2, e3);
122
125
  }
123
- function ye(e3, t2, n2, o2, i2) {
124
- const a2 = te.value.restoreEdit, l2 = G;
126
+ function xe(e3, t2, n2, o2, i2) {
127
+ const a2 = ne.value.restoreEdit, l2 = Q;
125
128
  a2.props.base.tableUuid = l2.uuid;
126
- const r2 = f(q, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
129
+ const r2 = f(G, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
127
130
  if (!r2) return;
128
131
  N(r2) ? r2.then((e4) => {
129
- e4 && ie.value.restoreRow(i2, le);
130
- }) : ie.value.restoreRow(i2, le);
131
- d(q, G, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
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 });
132
135
  }
133
- function Ce(e3, t2, n2, o2, i2) {
134
- const a2 = te.value.lineEditUpdate, l2 = G;
136
+ function De(e3, t2, n2, o2, i2) {
137
+ const a2 = ne.value.lineEditUpdate, l2 = Q;
135
138
  a2.props.base.tableUuid = l2.uuid;
136
- const r2 = f(q, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
139
+ const r2 = f(G, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
137
140
  r2 && (N(r2) ? r2.then((l3) => {
138
141
  l3 && Ee(e3, t2, n2, o2, i2, a2);
139
142
  }) : Ee(e3, t2, n2, o2, i2, a2));
140
143
  }
141
144
  function Ee(e3, t2, n2, o2, i2, a2) {
142
- q.editData = n2, p({ pageContext: q, configureObj: a2 }).then((a3) => {
145
+ G.editData = n2, p({ pageContext: G, configureObj: a2 }).then((a3) => {
143
146
  if (true === a3.canExecute) {
144
- ie.value.editRow(i2, le);
145
- d(q, G, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
147
+ le.value.editRow(i2, ue);
148
+ d(G, Q, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
146
149
  }
147
150
  }).finally(() => {
148
- q.editData = null;
151
+ G.editData = null;
149
152
  });
150
153
  }
151
- function xe(e3, t2, n2, o2, i2) {
152
- const a2 = te.value.lineEditDelete, l2 = G;
154
+ function Oe(e3, t2, n2, o2, i2) {
155
+ const a2 = ne.value.lineEditDelete, l2 = Q;
153
156
  a2.props.base.tableUuid = l2.uuid;
154
- const r2 = f(q, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
157
+ const r2 = f(G, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
155
158
  r2 && (N(r2) ? r2.then((l3) => {
156
- l3 && De(e3, t2, n2, o2, i2, a2);
157
- }) : De(e3, t2, n2, o2, i2, a2));
159
+ l3 && ke(e3, t2, n2, o2, i2, a2);
160
+ }) : ke(e3, t2, n2, o2, i2, a2));
158
161
  }
159
- function De(e3, t2, n2, o2, i2, a2) {
160
- if (n2.id || n2.ID) q.editData = n2, p({ pageContext: q, configureObj: a2 }).then((e4) => {
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) => {
161
164
  if (true === e4.canExecute) {
162
165
  const e5 = [];
163
- n2.id ? e5.push(n2.id) : e5.push(n2.ID), j.delete({ pageContext: q, configureObj: a2, ids: e5 });
166
+ n2.id ? e5.push(n2.id) : e5.push(n2.ID), j.delete({ pageContext: G, configureObj: a2, ids: e5 });
164
167
  }
165
168
  }).finally(() => {
166
- q.editData = null;
169
+ G.editData = null;
167
170
  });
168
171
  else {
169
- ye(e3, t2, n2, o2, i2);
170
- d(q, G, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
172
+ xe(e3, t2, n2, o2, i2);
173
+ d(G, Q, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
171
174
  }
172
175
  }
173
- function ke(e3) {
174
- if (!q.dataTypeMaps) return;
175
- const t2 = q.dataTypeMaps;
176
+ function Te(e3) {
177
+ if (!G.dataTypeMaps) return;
178
+ const t2 = G.dataTypeMaps;
176
179
  let n2 = [];
177
180
  if (e3) for (var o2 in e3) {
178
181
  const a2 = e3[o2];
@@ -190,9 +193,9 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
190
193
  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);
191
194
  }
192
195
  }
193
- ie.value.toolbarRefresh(null, null, n2);
196
+ le.value.toolbarRefresh(null, null, n2);
194
197
  }
195
- function Oe(e3) {
198
+ function Re(e3) {
196
199
  const t2 = Ie();
197
200
  if (t2) {
198
201
  let n2 = 0;
@@ -200,123 +203,135 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
200
203
  }
201
204
  }
202
205
  function Ie() {
203
- if (!ie.value) return;
204
- const e3 = F(W.pageContext, W.configure);
205
- if (e3 && e3.isCalcHeight) {
206
- let e4 = ie.value.$el;
207
- if (e4 || (e4 = ie.value), !e4) return;
208
- const t2 = e4.getBoundingClientRect();
209
- return window.innerHeight - t2.y - 90;
206
+ if (!le.value) return;
207
+ const e3 = M(q.pageContext, q.configure);
208
+ if (e3) {
209
+ if (e3.isCalcHeight) {
210
+ let e4 = le.value.$el;
211
+ if (e4 || (e4 = le.value), !e4) return;
212
+ const t2 = e4.getBoundingClientRect();
213
+ return window.innerHeight - t2.y - 90;
214
+ }
215
+ if (e3.fixHeight && le.value && (le.value.tableHeight = e3.fixHeight), e3.maxHeight) return e3.maxHeight;
210
216
  }
211
217
  }
212
- function Te(e3, t2, n2, o2, i2, a2) {
213
- const l2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2, button: a2, id: n2.ID ? n2.ID : n2.id }, r2 = te.value[a2.sourceButton.uuid], u2 = G;
214
- r2.props.base.tableUuid = u2.uuid, x(null, q, r2, "click", l2);
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);
215
221
  }
216
- function Re(e3) {
217
- "close_open_win" === e3.data && ie.value && ie.value.refresh();
222
+ function je(e3) {
223
+ "close_open_win" === e3.data && le.value && le.value.refresh();
218
224
  }
219
- function Ve(e3, t2) {
220
- ue.value = e3;
221
- g(q, G, { selection: e3, row: t2 });
225
+ function Ne(e3, t2) {
226
+ ce.value = e3;
227
+ g(G, Q, { selection: e3, row: t2 });
222
228
  }
223
- function je(e3) {
224
- ue.value = e3;
225
- m(q, G, { selection: e3 });
229
+ function Pe(e3) {
230
+ ce.value = e3;
231
+ m(G, Q, { selection: e3 });
226
232
  }
227
- function Ne(e3) {
228
- v(q, G, { newSelection: e3 });
233
+ function Be(e3) {
234
+ v(G, Q, { newSelection: e3 });
229
235
  }
230
- function Pe(e3, t2, n2, o2) {
231
- h(q, G, { row: e3, column: t2, cell: n2, event: o2 });
236
+ function Fe(e3, t2, n2, o2) {
237
+ h(G, Q, { row: e3, column: t2, cell: n2, event: o2 });
232
238
  }
233
- function Ue(e3, t2, n2, o2) {
234
- b(q, G, { row: e3, column: t2, cell: n2, event: o2 });
239
+ function He(e3, t2, n2, o2) {
240
+ b(G, Q, { row: e3, column: t2, cell: n2, event: o2 });
235
241
  }
236
- function Be(e3, t2, n2) {
237
- w(q, G, { row: e3, column: t2, event: n2 });
242
+ function Ue(e3, t2, n2) {
243
+ w(G, Q, { row: e3, column: t2, event: n2 });
238
244
  }
239
245
  function Me(e3, t2, n2) {
240
- S(q, G, { row: e3, column: t2, event: n2 });
246
+ S(G, Q, { row: e3, column: t2, event: n2 });
241
247
  }
242
248
  function $e(e3, t2) {
243
- y(q, G, { column: e3, event: t2 });
249
+ y(G, Q, { column: e3, event: t2 });
244
250
  }
245
- function Fe() {
246
- ue.value = [];
251
+ function _e() {
252
+ ce.value = [];
247
253
  }
248
254
  function Le(e3) {
249
- fe.value = true;
250
- }
251
- function _e(e3) {
252
- return L(e3, [], W);
255
+ me.value = true;
253
256
  }
254
257
  function Ae(e3) {
255
- return _(e3, e3.cellStyle, W);
258
+ return $(e3, [], q);
259
+ }
260
+ function ze(e3) {
261
+ return _(e3, e3.cellStyle, q);
256
262
  }
257
- function He(e3) {
258
- const t2 = e3.titleStyle, n2 = W.configure.style.titleStyle;
259
- return A(e3, { cellTitleStyle: t2, titleStyle: n2 }, W);
263
+ function We(e3) {
264
+ const t2 = e3.titleStyle, n2 = q.configure.style.titleStyle;
265
+ return L(e3, { cellTitleStyle: t2, titleStyle: n2 }, q);
260
266
  }
261
- function ze() {
267
+ function qe() {
262
268
  const e3 = {};
263
- return ne.forEach((t2) => {
264
- e3[t2] = W.pageContext.entity.page[t2];
269
+ return oe.forEach((t2) => {
270
+ e3[t2] = q.pageContext.entity.page[t2];
265
271
  }), e3;
266
272
  }
267
- function We() {
268
- ne.forEach((e3) => {
269
- o(() => W.pageContext.entity.page[e3], () => {
270
- ke(ze());
273
+ function Ge() {
274
+ oe.forEach((e3) => {
275
+ o(() => q.pageContext.entity.page[e3], () => {
276
+ Te(qe());
271
277
  });
272
278
  });
273
279
  }
274
- return n(() => {
275
- window.addEventListener("message", Re), B.$on(re + "-close-component-page-dialog", function({ jumpInfo: e3, popEntity: t2, popPageCode: n2 }) {
276
- ie.value.closePageDialog({ entity: t2, pageCode: n2, jumpInfo: e3 });
277
- }), B.$on(re + "_close-dialog-get-entity", () => {
278
- B.$emit(re + "_close-super-dialog");
279
- }), B.$on(le + "-pickFileDone", (e3) => {
280
- ie.value.pickFileDone(e3);
281
- }), B.$on(le + "-scanDone", (e3) => {
282
- ie.value.scanDone(e3);
283
- }), oe.value.formSetMaxHeight = Ie(), oe.value && oe.value.configureObj.props.base && oe.value.configureObj.props.base.isSafeDelete && ge("setSafeDeleteTableCode", oe.value.extraParam.tableName);
284
- }), o(() => W.pageContext.searchFormData, (e3) => {
285
- ce.value.data = e3;
286
- }), o(() => W.pageContext.entity.data, (e3) => {
287
- ke(W.pageContext.entity.data);
280
+ 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);
291
+ }), o(() => q.pageContext.searchFormData, (e3) => {
292
+ de.value.data = e3;
293
+ }), o(() => q.pageContext.entity.data, (e3) => {
294
+ Te(q.pageContext.entity.data);
288
295
  }), i(() => {
289
- window.removeEventListener("message", Re), B.$off(re + "-close-component-page-dialog"), B.$off(re + "_close-dialog-get-entity"), B.$off(le + "-pickFileDone"), B.$off(le + "-scanDone");
290
- }), H2({ refresh: function(e3, t2, n2, o2) {
291
- return ie.value.refresh(e3, t2, n2, o2);
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");
297
+ });
298
+ const Qe = () => {
299
+ if (!ae.value) return null;
300
+ let e3 = ae.value.closest(".app-container");
301
+ if (!e3) return null;
302
+ const t2 = ae.value.getBoundingClientRect(), n2 = e3.getBoundingClientRect(), o2 = window.scrollY;
303
+ return { distanceToTop: t2.top + o2 - n2.top, distanceToBottom: n2.bottom - t2.top };
304
+ };
305
+ return z2({ refresh: function(e3, t2, n2, o2) {
306
+ return le.value.refresh(e3, t2, n2, o2);
292
307
  }, createRow: function() {
293
- return ie.value.createRow(le, {}, { getDefaultValueFunc: M });
294
- }, clearSelections: Fe, getSelections: function() {
295
- return ue.value;
308
+ return le.value.createRow(ue, {}, { getDefaultValueFunc: H });
309
+ }, clearSelections: _e, getSelections: function() {
310
+ return ce.value;
296
311
  }, getSelectionIds: function() {
297
312
  const e3 = [];
298
- return null !== ue.value && ue.value.forEach((t2) => {
313
+ return null !== ce.value && ce.value.forEach((t2) => {
299
314
  e3.push(t2.id ? t2.id : t2.ID ? t2.ID : null);
300
315
  }), e3;
301
316
  }, getTableConfigure: function() {
302
- return G;
317
+ return Q;
303
318
  }, isDeleteChange: function(e3) {
304
- ie.value.isDeleteChange(e3);
319
+ le.value.isDeleteChange(e3);
305
320
  }, validatorSunTableListData: function() {
306
- return ie.value.validatorSunTableListData();
321
+ return le.value.validatorSunTableListData();
307
322
  }, showMobileSearch: function() {
308
- fe.value && ie.value.showMobileSearch();
323
+ me.value && le.value.showMobileSearch();
309
324
  }, getTableSelectOptions: function() {
310
- if (ie.value) return ie.value.getTableSelectOptions(le);
325
+ if (le.value) return le.value.getTableSelectOptions(ue);
311
326
  }, dynamicControlTableEdit: function(e3, t2, n2) {
312
- ie.value && ie.value.dynamicControlTableEdit(e3, t2, n2);
327
+ le.value && le.value.dynamicControlTableEdit(e3, t2, n2);
313
328
  }, doLayout: function(e3) {
314
- ie.value && ie.value.doLayout(e3);
329
+ le.value && le.value.doLayout(e3);
315
330
  } }), (e3, t2) => {
316
331
  const n2 = a("super-grid");
317
- return r(), l("div", null, [u(n2, { ref_key: "gridRef", ref: ie, url: s(ae), options: oe.value, code: s(le), settings: s(de), "search-form-info": ce.value, "list-toolbar-form-data": s(se), onSelect: Ve, onSelectAll: je, onSelectionChange: Ne, onCellClick: Pe, onCellDblclick: Ue, onRowClick: Be, onRowDblclick: Me, onHeaderClick: $e, onRefresh: Fe, onNewOpenGridDialog: s(U), onCanShowMobileSearch: Le }, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "onNewOpenGridDialog"])]);
332
+ 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);
318
333
  };
319
334
  } });
320
335
  export {
321
- H as default
336
+ z as default
322
337
  };
@@ -3,10 +3,10 @@ import y from "./assemblys/object-render.vue.js";
3
3
  import { updateOptionDatasources as h, updateChartDatasources as C } from "../utils/page-helper-util.js";
4
4
  import { queryPageSuperGrids as b, queryPageDesignByCode as P, convertToPageContext as j, packageAdditionalMapWithLocationSearch as k, packageAdditionalMapWithRoute as $, packageAdditionalMapWithPageRequest as x } from "../utils/page-init-util.js";
5
5
  import { addComponentRef as D, removePageAllRef as w, initComponentRefState as N } from "../utils/global-refs.js";
6
- import { removeCustomFuncFromWindow as q, handleEvent as T, initPageEvents as I, getCustomFunc as S } from "../utils/events/event-util.js";
6
+ import { removeCustomFuncFromWindow as q, handleEvent as S, initPageEvents as T, getCustomFunc as I } from "../utils/events/event-util.js";
7
7
  import _ from "./assemblys/common/export-form-report-dialog.vue.js";
8
- import O from "./assemblys/common/task-informition-dialog.vue.js";
9
- import R from "./assemblys/common/remove-signer-dialog.vue.js";
8
+ import R from "./assemblys/common/task-informition-dialog.vue.js";
9
+ import O from "./assemblys/common/remove-signer-dialog.vue.js";
10
10
  import F from "../utils/eventBus.js";
11
11
  import { getTaskInformitions as M, getRemoveSigner as V, getFormData as E, exportFormReport as W, doImportFinally as B, doAddSigner as H, doCreateCopyTask as J, doAssign as U, doReturnTaskTo as G, doRemoveSigners as L, updateValuesWhenCloseDialog as z, refreshFormOrListPage as A, getAdditionalParamMap as K } from "../utils/events/standard-event.js";
12
12
  import "../utils/api/api-util.js";
@@ -23,7 +23,7 @@ import { isMobileBrowser as re } from "agilebuilder-ui/src/utils/common-util";
23
23
  import { usePageContextStore as ve } from "../utils/page-store.js";
24
24
  import pe from "agilebuilder-ui/src/store";
25
25
  const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { pageCode: { type: String, required: false }, pageVersion: { type: Number, required: false }, pageId: { type: Number, required: false }, dataId: { type: Number, required: false }, pageDesign: { type: Object, required: false }, isTest: { type: Boolean, required: false }, dimensions: { type: String, required: false }, publishVersion: { type: Number, required: false }, taskId: { type: Number, required: false }, pageRequest: { type: Object, required: false }, contentHeight: { type: [String, Number], default: null }, isDialog: { type: Boolean, required: false } }, emits: ["open", "opened", "close", "closed"], setup(e2, { expose: ge2, emit: fe }) {
26
- const ce = ve(), { t: de } = X(), ye = e2, he = l(null), Ce = l([]), be = l(""), Pe = l({}), je = l(null), ke = l(null), $e = l(false), xe = l(false), De = l(false), we = l(false), Ne = l(false), qe = l(null), Te = l(false), Ie = l([]), Se = l([]), _e = l(false), Oe = l(null), Re = l(false), Fe = l(false), Me = l(null), Ve = l(null), Ee = l(null), We = l(null);
26
+ const ce = ve(), { t: de } = X(), ye = e2, he = l(null), Ce = l([]), be = l(""), Pe = l({}), je = l(null), ke = l(null), $e = l(false), xe = l(false), De = l(false), we = l(false), Ne = l(false), qe = l(null), Se = l(false), Te = l([]), Ie = l([]), _e = l(false), Re = l(null), Oe = l(false), Fe = l(false), Me = l(null), Ve = l(null), Ee = l(null), We = l(null);
27
27
  let Be = l(null);
28
28
  const He = l(null), Je = l(null), Ue = le(), Ge = l(0), Le = re();
29
29
  let ze, Ae, Ke;
@@ -44,7 +44,7 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
44
44
  }(Be.value, e3.initChartServiceConfigs);
45
45
  }, 200), Be.value.initDataSources = [], N(Be.value), Ce.value = Be.value.items ? Be.value.items : [];
46
46
  const a2 = Be.value.runtime ? Be.value.runtime : {};
47
- be.value = a2.class, Pe.value = a2.style, I(e3, Be.value), Z(Be.value.rules), T(null, Be.value, e3, "beforeload");
47
+ be.value = a2.class, Pe.value = a2.style, T(e3, Be.value), Z(Be.value.rules), S(null, Be.value, e3, "beforeload");
48
48
  const t2 = Be.value.code;
49
49
  return ce.setPageContext(Be.value), qe.value = t2 + "_", F.$on(qe.value + "export-form-report", (e4) => {
50
50
  ke.value = e4, He.value = e4.configureObj, Je.value = e4.pageContext, $e.value = true;
@@ -60,13 +60,13 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
60
60
  ke.value = e4, xe.value = true, Ne.value = true;
61
61
  }), F.$on(qe.value + "choose-return-node", (e4) => {
62
62
  ke.value = e4, M(e4).then((e5) => {
63
- Ie.value = e5, Te.value = true;
63
+ Te.value = e5, Se.value = true;
64
64
  }).catch((e5) => {
65
- Te.value = false;
65
+ Se.value = false;
66
66
  });
67
67
  }), F.$on(qe.value + "remove-signer", (e4) => {
68
68
  ke.value = e4, V(e4).then((l3) => {
69
- Oe.value = e4.pageContext.completeTaskParam.taskId, Se.value = l3, _e.value = true;
69
+ Re.value = e4.pageContext.completeTaskParam.taskId, Ie.value = l3, _e.value = true;
70
70
  }).catch((e5) => {
71
71
  _e.value = false;
72
72
  });
@@ -129,7 +129,7 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
129
129
  });
130
130
  }), F.$on("pageLoaded", () => {
131
131
  const e4 = { runtime: { events: Be.value.events }, systemCode: "", systemVersion: 0, code: "", version: 0, workflowCode: "", workflowVersion: 0, name: "", uuid: "", label: "" };
132
- T(null, Be.value, e4, "load");
132
+ S(null, Be.value, e4, "load");
133
133
  }), d(() => Be.value.isRefresh, (e4) => {
134
134
  e4 && (Ge.value++, Be.value.isRefresh = false);
135
135
  }), E(Be.value, null, (_a = ye.pageRequest) == null ? void 0 : _a.isNeedId);
@@ -143,7 +143,7 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
143
143
  l2 = Le ? window.innerHeight - a3.y - 28 : window.innerHeight - a3.y - 40;
144
144
  }
145
145
  let a2 = l2;
146
- ie(l2) && (a2 = l2 + "px"), e3.style.height = a2, e3.style["overflow-y"] = "auto";
146
+ ie(l2) && (a2 = l2 + "px"), e3.style.height = a2, e3.style["overflow-y"] = "auto", Be.value && (Be.value.pageRuntimeStyle || (Be.value.pageRuntimeStyle = {}), Be.value.pageRuntimeStyle.height = l2);
147
147
  });
148
148
  }
149
149
  function Ye() {
@@ -164,14 +164,14 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
164
164
  Be.value.isWorkflowEntity = e3.isWorkflowEntity, Be.value.dataTypeMaps = e3.dataTypeMaps, Be.value.superGridItems = e3.superGrids;
165
165
  }).catch((e3) => {
166
166
  }).finally(() => {
167
- Re.value = true, Xe();
168
- }) : (Re.value = true, Xe()), Ye();
167
+ Oe.value = true, Xe();
168
+ }) : (Oe.value = true, Xe()), Ye();
169
169
  });
170
170
  }, 0)) : ye.pageCode && P(ye.pageCode).then((e3) => {
171
171
  if (e3 && e3.designJson) {
172
172
  const l2 = e3.designJson, a2 = JSON.parse(l2);
173
173
  je.value = a2, Qe(a2).then(() => {
174
- Ye(), Re.value = true, Xe();
174
+ Ye(), Oe.value = true, Xe();
175
175
  });
176
176
  }
177
177
  });
@@ -180,17 +180,17 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
180
180
  Be.value && he.value && D(Be.value, "-1", he);
181
181
  });
182
182
  }), n(() => {
183
- w(Be.value), je.value && q(je.value), F.$off(qe.value + "export-form-report"), F.$off(qe.value + "export-pdf-report"), F.$off(qe.value + "import-file"), F.$off(qe.value + "assign-task"), F.$off(qe.value + "copy-task"), F.$off(qe.value + "add-signer"), F.$off(qe.value + "choose-return-node"), F.$off(qe.value + "remove-signer"), F.$off(qe.value + "prohibit-edit"), F.$off(qe.value + "open-dialog"), F.$off("pageLoaded"), Be.value && T(null, Be.value, Be.value, "onUnmounted"), ze && clearTimeout(ze), Ae && clearTimeout(Ae), Ke && clearTimeout(Ke);
183
+ w(Be.value), je.value && q(je.value), F.$off(qe.value + "export-form-report"), F.$off(qe.value + "export-pdf-report"), F.$off(qe.value + "import-file"), F.$off(qe.value + "assign-task"), F.$off(qe.value + "copy-task"), F.$off(qe.value + "add-signer"), F.$off(qe.value + "choose-return-node"), F.$off(qe.value + "remove-signer"), F.$off(qe.value + "prohibit-edit"), F.$off(qe.value + "open-dialog"), F.$off("pageLoaded"), Be.value && S(null, Be.value, Be.value, "onUnmounted"), ze && clearTimeout(ze), Ae && clearTimeout(Ae), Ke && clearTimeout(Ke);
184
184
  });
185
185
  const ll = l(null);
186
186
  function al(e3) {
187
187
  true === xe.value && (xe.value = false, H(ke.value, e3)), true === De.value && (De.value = false, J(ke.value, e3)), true === we.value && (we.value = false, U(ke.value, e3));
188
188
  }
189
189
  function tl(e3) {
190
- Ie.value = [], Te.value = false, G(ke.value, e3);
190
+ Te.value = [], Se.value = false, G(ke.value, e3);
191
191
  }
192
192
  function ul(e3) {
193
- Se.value = [], _e.value = false, L(ke.value, e3);
193
+ Ie.value = [], _e.value = false, L(ke.value, e3);
194
194
  }
195
195
  const nl = ae();
196
196
  function ol(e3) {
@@ -211,9 +211,9 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
211
211
  const l3 = e3.isNeedValueMapping;
212
212
  t2 = e3.dataModel, u2 = e3.sourceTableName, l3 && z(Ve.value, o2, t2, u2, Me.value ? Me.value.valueMappings : null);
213
213
  }
214
- T(null, Ve.value, o2, "closePopup", { sourceModel: t2, sourceTableName: u2, jumpPageSetting: Me.value, entity: Ve.value.entity.data, targetTableName: n2, pageContext: Be.value, parentPageContext: Ve.value, parentConfigureObj: o2, columnProp: i2 }), function(e4, l3, a3) {
214
+ S(null, Ve.value, o2, "closePopup", { sourceModel: t2, sourceTableName: u2, jumpPageSetting: Me.value, entity: Ve.value.entity.data, targetTableName: n2, pageContext: Be.value, parentPageContext: Ve.value, parentConfigureObj: o2, columnProp: i2 }), function(e4, l3, a3) {
215
215
  if (e4) {
216
- const t3 = S(Ve.value, e4);
216
+ const t3 = I(Ve.value, e4);
217
217
  t3 && t3.apply(t3, [{ pageContext: Be.value, parentPageContext: Ve.value, parentConfigureObj: a3, jumpPageSetting: Me.value, columnProp: l3 }]);
218
218
  }
219
219
  }(l2, i2, o2), A(Ve.value, Ee.value, a2, void 0 !== a2 && false === a2 ? "noOperation" : null), Ve.value = null, Ee.value = null, We.value = null, F.$off(qe.value + "close-dialog"), Fe.value = false;
@@ -227,14 +227,14 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
227
227
  }, scanDone: function(e3) {
228
228
  let l2 = e3.componentId, a2 = e3.listCode;
229
229
  (l2 || a2) && (a2 ? F.$emit(a2 + "-scanDone", e3) : F.$emit(l2 + "-scanDone", e3));
230
- } }), (e3, l2) => (i(), o("div", me, [Re.value ? (i(), o("div", { ref_key: "thisRef", ref: he, key: Ge.value, class: v(be.value), style: r(Pe.value) }, [(i(true), o(g, null, f(Ce.value, (e4, l3) => (i(), p(y, { key: e4.uuid, configure: e4, pageContext: c(Be) }, null, 8, ["configure", "pageContext"]))), 128)), $e.value ? (i(), p(_, { key: 0, configure: He.value, pageContext: Je.value, onClose: Ze, onExport: el }, null, 8, ["configure", "pageContext"])) : s("", true), m("input", { ref_key: "_selectFile_", ref: ll, type: "file", name: "_selectFile_", style: { display: "none" }, onChange: l2[0] || (l2[0] = (e4) => function() {
230
+ } }), (e3, l2) => (i(), o("div", me, [Oe.value ? (i(), o("div", { ref_key: "thisRef", ref: he, key: Ge.value, class: v(be.value), style: r(Pe.value) }, [(i(true), o(g, null, f(Ce.value, (e4, l3) => (i(), p(y, { key: e4.uuid, configure: e4, pageContext: c(Be) }, null, 8, ["configure", "pageContext"]))), 128)), $e.value ? (i(), p(_, { key: 0, configure: He.value, pageContext: Je.value, onClose: Ze, onExport: el }, null, 8, ["configure", "pageContext"])) : s("", true), m("input", { ref_key: "_selectFile_", ref: ll, type: "file", name: "_selectFile_", style: { display: "none" }, onChange: l2[0] || (l2[0] = (e4) => function() {
231
231
  if (ke.value) {
232
232
  if (!ll.value) return;
233
233
  if ("" === ll.value.value || null === ll.value.value) return;
234
234
  const e5 = ll.value.files[0];
235
235
  e5 ? (ll.value.value = null, B(ke.value, e5)) : Q({ showClose: true, type: "warning", message: de("superPageRuntimeMessage.noFileSelected") });
236
236
  }
237
- }()) }, null, 544), xe.value || De.value || we.value ? (i(), p(c(Y), { key: 1, width: "60%", multiple: Ne.value, onClose: al }, null, 8, ["multiple"])) : s("", true), Te.value ? (i(), p(O, { key: 2, "task-informitions": Ie.value, onClose: l2[1] || (l2[1] = (e4) => Te.value = false), onResult: tl }, null, 8, ["task-informitions"])) : s("", true), _e.value ? (i(), p(R, { key: 3, "task-id": Oe.value, "active-tasks": Se.value, onClose: l2[2] || (l2[2] = (e4) => _e.value = false), onResult: ul }, null, 8, ["task-id", "active-tasks"])) : s("", true), Fe.value ? (i(), p(ee, { key: 4, parentPageContext: Ve.value, parentPageEventParams: We.value, jumpPageSetting: Me.value, onClose: l2[3] || (l2[3] = (e4) => ol()) }, null, 8, ["parentPageContext", "parentPageEventParams", "jumpPageSetting"])) : s("", true)], 6)) : s("", true)]));
237
+ }()) }, null, 544), xe.value || De.value || we.value ? (i(), p(c(Y), { key: 1, width: "60%", multiple: Ne.value, onClose: al }, null, 8, ["multiple"])) : s("", true), Se.value ? (i(), p(R, { key: 2, "task-informitions": Te.value, onClose: l2[1] || (l2[1] = (e4) => Se.value = false), onResult: tl }, null, 8, ["task-informitions"])) : s("", true), _e.value ? (i(), p(O, { key: 3, "task-id": Re.value, "active-tasks": Ie.value, onClose: l2[2] || (l2[2] = (e4) => _e.value = false), onResult: ul }, null, 8, ["task-id", "active-tasks"])) : s("", true), Fe.value ? (i(), p(ee, { key: 4, parentPageContext: Ve.value, parentPageEventParams: We.value, jumpPageSetting: Me.value, onClose: l2[3] || (l2[3] = (e4) => ol()) }, null, 8, ["parentPageContext", "parentPageEventParams", "jumpPageSetting"])) : s("", true)], 6)) : s("", true)]));
238
238
  } });
239
239
  export {
240
240
  ge as default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.2.29",
3
+ "version": "2.2.32",
4
4
  "description": "AgileBuilder super page runtime",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",
@@ -48,7 +48,7 @@
48
48
  "@vitejs/plugin-vue-jsx": "^3.1.0",
49
49
  "@vue/eslint-config-prettier": "^8.0.0",
50
50
  "@vue/test-utils": "^2.4.4",
51
- "agilebuilder-ui": "1.1.12",
51
+ "agilebuilder-ui": "1.1.13",
52
52
  "axios": "^1.6.8",
53
53
  "cypress": "^13.6.6",
54
54
  "element-plus": "^2.6.1",