super-page-runtime 2.2.90 → 2.2.91-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.
@@ -24,7 +24,11 @@ function u(t2, i2, s2, n2) {
24
24
  const o2 = e(i3, t2);
25
25
  o2 && (u3.permission = o2);
26
26
  }
27
- u3.label = o(u3.title), u3.sourceButton = { uuid: i3.uuid }, r3.props = u3, void 0 !== n2 && (r3.onClick = n2(i3)), s2.push(r3);
27
+ if (u3.label = o(u3.title), u3.sourceButton = { uuid: i3.uuid }, r3.props = u3, void 0 !== n2) {
28
+ const t3 = n2(i3);
29
+ r3.onClick = (t3 == null ? void 0 : t3.onClick) ?? t3, r3.eventName = t3 == null ? void 0 : t3.eventName;
30
+ }
31
+ s2.push(r3);
28
32
  });
29
33
  }
30
34
  function l(t2, e2, o2, n2) {
@@ -1,5 +1,5 @@
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";
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 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";
@@ -21,7 +21,7 @@ const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}
21
21
  const e3 = G.systemCode, t2 = G.code;
22
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, 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 };
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: ye }, 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
26
  var _a;
27
27
  ((_a = Q.props.highOrder) == null ? void 0 : _a.mergeFields) && Q.props.highOrder.mergeFields.length > 0 && (e4.mergeFields = Q.props.highOrder.mergeFields.join(","));
@@ -86,7 +86,7 @@ const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}
86
86
  function be(e3, t2, n2, o2, i2) {
87
87
  const a2 = ne.value.lineEditSave, l2 = Q;
88
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(() => {
89
+ true === l3.canExecute && (ie.value.lineEditOptions.saveRow = Ce, le.value.saveRow(i2, ue).then(() => {
90
90
  d(G, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
91
91
  }));
92
92
  }).finally(() => {
@@ -96,20 +96,20 @@ const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}
96
96
  function we(e3) {
97
97
  if (!e3) return;
98
98
  let t2;
99
- const n2 = C(e3.events, "click");
99
+ const n2 = y(e3.events, "click");
100
100
  if (n2) {
101
101
  if (ne.value[n2] = e3, "lineEditSave" === n2 ? t2 = be : "restoreEdit" === n2 ? t2 = xe : "lineEditUpdate" === n2 ? t2 = De : "lineEditDelete" === n2 && (t2 = Oe), !t2) {
102
102
  t2 = x(G, e3.events, "click");
103
103
  }
104
104
  } else ne.value[e3.uuid] = e3, t2 = Ve;
105
- return t2;
105
+ return { onClick: t2, eventName: n2 };
106
106
  }
107
107
  function Se({ row: e3, columns: t2, additionalParamMap: n2 }) {
108
108
  const o2 = ne.value.lineEditSave, i2 = Q;
109
109
  o2.props.base.tableUuid = i2.uuid;
110
110
  return f(G, o2, { row: e3, columns: t2 });
111
111
  }
112
- function ye({ row: e3, columns: t2, dataTypeMap: n2, dynamicColumnInfo: o2, additionalParamMap: i2, mainDefaultValueColumns: a2 }) {
112
+ function Ce({ row: e3, columns: t2, dataTypeMap: n2, dynamicColumnInfo: o2, additionalParamMap: i2, mainDefaultValueColumns: a2 }) {
113
113
  const l2 = ne.value.lineEditSave, r2 = Q;
114
114
  return l2.props.base.tableUuid = r2.uuid, new Promise((t3, n3) => {
115
115
  const i3 = { tableName: r2.props.dataOrigin.tableName };
@@ -120,7 +120,7 @@ const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}
120
120
  });
121
121
  });
122
122
  }
123
- function Ce({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
123
+ function ye({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
124
124
  xe(null, null, n2, t2, e3);
125
125
  }
126
126
  function xe(e3, t2, n2, o2, i2) {
@@ -246,7 +246,7 @@ const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}
246
246
  S(G, Q, { row: e3, column: t2, event: n2 });
247
247
  }
248
248
  function $e(e3, t2) {
249
- y(G, Q, { column: e3, event: t2 });
249
+ C(G, Q, { column: e3, event: t2 });
250
250
  }
251
251
  function _e() {
252
252
  ce.value = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.2.90",
3
+ "version": "2.2.91-sit1",
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.31",
51
+ "agilebuilder-ui": "1.1.33-sit1",
52
52
  "axios": "^1.6.8",
53
53
  "cypress": "^13.6.6",
54
54
  "element-plus": "^2.6.1",