super-page-runtime 2.2.83 → 2.2.86

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 (41) hide show
  1. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +74 -74
  2. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -1
  3. package/dist/es/components/runtime/utils/charts/chart-util.js +5 -5
  4. package/dist/es/components/runtime/utils/events/standard-event.js +211 -214
  5. package/dist/es/components/runtime/utils/events/validator-util.js +48 -38
  6. package/dist/es/components/runtime/utils/page-init-util.js +6 -5
  7. package/dist/es/components/runtime/utils/page-permission-util.js +16 -16
  8. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +16 -13
  9. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +4 -1
  10. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +15 -11
  11. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +1 -1
  12. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
  13. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +127 -113
  14. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +87 -53
  15. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +4 -4
  16. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  17. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
  18. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +1 -1
  19. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +6 -6
  20. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +1 -1
  21. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +38 -33
  22. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +1 -1
  23. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
  24. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +9 -8
  25. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +61 -59
  26. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +16 -14
  27. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +1 -1
  28. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +76 -72
  29. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +8 -3
  30. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +1 -1
  31. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +32 -32
  32. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +5 -4
  33. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +4 -1
  34. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +7 -7
  35. package/dist/es/components/runtime/views/super-page-dialog.vue.js +11 -11
  36. package/dist/es/components/runtime/views/{super-page-dialog.vue2.js → super-page-dialog.vue3.js} +1 -0
  37. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  38. package/dist/es/components/runtime/views/super-page.vue2.js +9 -7
  39. package/dist/es/index.js +1 -0
  40. package/dist/es/style.css +225 -99
  41. package/package.json +1 -1
@@ -1,6 +1,6 @@
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 s, createVNode as u } from "vue";
2
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 D } from "../../../../utils/events/event-util.js";
3
- import { getBaseUrl as E, getListCode as k, getRealRestApiPath as O, isWorkflowPage as T, isVariableInvalidValue as R } from "../../../../utils/common-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
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";
@@ -77,9 +77,9 @@ const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}
77
77
  }();
78
78
  const ae = t(), le = t(), re = function() {
79
79
  let e3 = te + "/dsc/commons/list";
80
- e3 && (e3 = O(e3, Y, Z, q.isTest));
80
+ e3 && (e3 = k(e3, Y, Z, q.isTest));
81
81
  return e3;
82
- }(), se = k(q.code, q.version, Q.uuid), ue = q.code + "_" + se, ce = t([]), pe = q.entity.page, de = t({ data: [] }), fe = q.superGridItems, ge = fe ? fe[Q.uuid] : null;
82
+ }(), se = O(q.code, q.version, Q.uuid), ue = q.code + "_" + se, ce = t([]), pe = q.entity.page, de = t({ data: [] }), fe = q.superGridItems, ge = fe ? fe[Q.uuid] : null;
83
83
  console.log("superGridSetting1111===", fe, ge);
84
84
  const me = t(false), ve = G;
85
85
  function he({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
@@ -100,7 +100,7 @@ const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}
100
100
  let t2;
101
101
  const n2 = y(e3.events, "click");
102
102
  if (n2) {
103
- if (ne.value[n2] = e3, "lineEditSave" === n2 ? t2 = be : "restoreEdit" === n2 ? t2 = xe : "lineEditUpdate" === n2 ? t2 = De : "lineEditDelete" === n2 && (t2 = ke), !t2) {
103
+ if (ne.value[n2] = e3, "lineEditSave" === n2 ? t2 = be : "restoreEdit" === n2 ? t2 = xe : "lineEditUpdate" === n2 ? t2 = De : "lineEditDelete" === n2 && (t2 = Oe), !t2) {
104
104
  t2 = x(q, e3.events, "click");
105
105
  }
106
106
  } else ne.value[e3.uuid] = e3, t2 = Ve;
@@ -153,15 +153,15 @@ const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}
153
153
  q.editData = null;
154
154
  });
155
155
  }
156
- function ke(e3, t2, n2, o2, i2) {
156
+ function Oe(e3, t2, n2, o2, i2) {
157
157
  const a2 = ne.value.lineEditDelete, l2 = Q;
158
158
  a2.props.base.tableUuid = l2.uuid;
159
159
  const r2 = f(q, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
160
160
  r2 && (N(r2) ? r2.then((l3) => {
161
- l3 && Oe(e3, t2, n2, o2, i2, a2);
162
- }) : Oe(e3, t2, n2, o2, i2, a2));
161
+ l3 && ke(e3, t2, n2, o2, i2, a2);
162
+ }) : ke(e3, t2, n2, o2, i2, a2));
163
163
  }
164
- function Oe(e3, t2, n2, o2, i2, a2) {
164
+ function ke(e3, t2, n2, o2, i2, a2) {
165
165
  if (n2.id || n2.ID) q.editData = n2, p({ pageContext: q, configureObj: a2 }).then((e4) => {
166
166
  if (true === e4.canExecute) {
167
167
  const e5 = [];
@@ -330,6 +330,7 @@ const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}
330
330
  le.value && le.value.dynamicControlTableEdit(e3, t2, n2);
331
331
  }, doLayout: function(e3) {
332
332
  le.value && le.value.doLayout(e3);
333
+ }, changeOperationAddState: function(e3) {
333
334
  } }), (e3, t2) => {
334
335
  const n2 = a("super-grid");
335
336
  return r(), l("div", { ref_key: "tableDivRef", ref: ae, id: s(se) + "_tableDiv" }, [u(n2, { ref_key: "gridRef", ref: le, url: s(re), options: ie.value, code: s(se), settings: s(ge), "search-form-info": de.value, "list-toolbar-form-data": s(pe), onSelect: Ne, onSelectAll: Pe, onSelectionChange: Be, onCellClick: Fe, onCellDblclick: He, onRowClick: Ue, onRowDblclick: Me, onHeaderClick: $e, onRefresh: _e, onNewOpenGridDialog: s(B), onCanShowMobileSearch: Le }, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "onNewOpenGridDialog"])], 8, A);
@@ -7,45 +7,45 @@ import { popupToPage as _, getOperationButtons as I } from "../../../../utils/ta
7
7
  import { getListCode as R, getBaseUrl as O } from "../../../../utils/common-util.js";
8
8
  import { getAdditionalParamMap as k } from "../../../../utils/events/standard-event.js";
9
9
  import { getRowStyleUtil as M, getCellStyleUtil as F, getHeaderCellStyleUtil as $ } from "../../chart/table/chart-table-util.js";
10
- const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: j2, emit: U }) {
11
- const H = e2, N = H.pageContext;
12
- let A = H.configure;
13
- const L = H.configure.runtime ? H.configure.runtime : {};
14
- N.isTest ? L.value = H.configure.runtime ? H.configure.runtime : {} : N.tableRuntimes && N.tableRuntimes[A.uuid] && (A = JSON.parse(N.tableRuntimes[A.uuid].configure), L.value = A.runtime ? A.runtime : {});
15
- const z = R(N.code, N.version, A.uuid), B = N.entity.data, E = A.code ? A.code : z, G = k(N), V = L && L.events ? L.events : [], J = t([]), q = N.superGridItems, K = q ? q[A.uuid] : null;
10
+ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: j2, emit: A }) {
11
+ const U = e2, H = U.pageContext;
12
+ let N = U.configure;
13
+ const L = U.configure.runtime ? U.configure.runtime : {};
14
+ H.isTest ? L.value = U.configure.runtime ? U.configure.runtime : {} : H.tableRuntimes && H.tableRuntimes[N.uuid] && (N = JSON.parse(H.tableRuntimes[N.uuid].configure), L.value = N.runtime ? N.runtime : {});
15
+ const z = R(H.code, H.version, N.uuid), B = H.entity.data, E = N.code ? N.code : z, G = k(H), V = L && L.events ? L.events : [], J = t([]), q = H.superGridItems, K = q ? q[N.uuid] : null;
16
16
  console.log("superGridSetting===", q, K);
17
- const Q = L.style, W = L.class, X = H.pageContext.entity ? H.pageContext.entity : {};
18
- let Y = C(H.configure, E), Z = O(N.backendUrl, N.isTest);
17
+ const Q = L.style, W = L.class, X = U.pageContext.entity ? U.pageContext.entity : {};
18
+ let Y = C(U.configure, E), Z = O(H.backendUrl, H.isTest);
19
19
  Z || (Z = window.$vueApp.config.globalProperties.baseURL);
20
20
  const ee = t(false);
21
21
  let te = t(0);
22
- const ne = A.props.dataOrigin.principalLinkage, oe = t({ isSql: true, subTableData: null, rowKeyProp: ne, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: N.code, pageVersion: N.version, pageContext: N, configureObj: A, showPageArea: false, showRowForm: false, showOverflowTooltip: !(!A.props || !A.props.otherSettings || void 0 !== A.props.otherSettings.isBreakLine && false !== A.props.otherSettings.isBreakLine), backendUrl: Z, cellStyleRender: function(e3) {
23
- return F(e3, e3.cellStyle, H);
22
+ const ne = N.props.dataOrigin.principalLinkage, oe = t({ isSql: true, subTableData: null, rowKeyProp: ne, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: H.code, pageVersion: H.version, pageContext: H, configureObj: N, showPageArea: false, showRowForm: false, showOverflowTooltip: !(!N.props || !N.props.otherSettings || void 0 !== N.props.otherSettings.isBreakLine && false !== N.props.otherSettings.isBreakLine), backendUrl: Z, cellStyleRender: function(e3) {
23
+ return F(e3, e3.cellStyle, U);
24
24
  }, rowStyleRender: function(e3) {
25
- return M(e3, null, H);
25
+ return M(e3, null, U);
26
26
  }, titleStyleRender: function(e3) {
27
- const t2 = e3.titleStyle, n2 = H.configure.style.titleStyle;
28
- return $(e3, { cellTitleStyle: t2, titleStyle: n2 }, H);
29
- } }), ae = U;
30
- Q && (oe.value.tableStyle = Q), W && (oe.value.tableClass = W), A.props && A.props.base && true === A.props.base.subPaging ? oe.value.showPageArea = true : oe.value.showPageArea = false, A.props.base.showRowForm && (oe.value.showRowForm = A.props.base.showRowForm);
27
+ const t2 = e3.titleStyle, n2 = U.configure.style.titleStyle;
28
+ return $(e3, { cellTitleStyle: t2, titleStyle: n2 }, U);
29
+ } }), ae = A;
30
+ Q && (oe.value.tableStyle = Q), W && (oe.value.tableClass = W), N.props && N.props.base && true === N.props.base.subPaging ? oe.value.showPageArea = true : oe.value.showPageArea = false, N.props.base.showRowForm && (oe.value.showRowForm = N.props.base.showRowForm);
31
31
  const ie = t(null);
32
32
  function le() {
33
33
  ie.value && (oe.value.subTableData = null, ie.value.reloadSubTableData(z));
34
34
  }
35
35
  function ue(e3) {
36
- if (void 0 === e3 && (e3 = se()), oe.value.isPageInfo = false, oe.value.isFormSubTable = true, oe.value.canRrefreshSubtableData = e3, oe.value.getFormData = re, oe.value.getGridData = ce, oe.value.extraParam.subTableListViewCode = z, oe.value.extraParam.beanName = N.beanName, oe.value.extraParam.subtableSetting = A.props && A.props.otherSettings ? JSON.stringify(A.props.otherSettings) : null, oe.value.extraParam.additionalParamMap = G, oe.value.extraParam.entityMap = N.entity.data, oe.value.extraParam.contextMap = N.entity.context, oe.value.extraParam.taskMap = N.entity.task, !(A.props && A.props.base && A.props.base.showOperation)) {
36
+ if (void 0 === e3 && (e3 = se()), oe.value.isPageInfo = false, oe.value.isFormSubTable = true, oe.value.canRrefreshSubtableData = e3, oe.value.getFormData = re, oe.value.getGridData = ce, oe.value.extraParam.subTableListViewCode = z, oe.value.extraParam.beanName = H.beanName, oe.value.extraParam.subtableSetting = N.props && N.props.otherSettings ? JSON.stringify(N.props.otherSettings) : null, oe.value.extraParam.additionalParamMap = G, oe.value.extraParam.entityMap = H.entity.data, oe.value.extraParam.contextMap = H.entity.context, oe.value.extraParam.taskMap = H.entity.task, !(N.props && N.props.base && N.props.base.showOperation)) {
37
37
  let e4 = oe.value.hiddenColumns;
38
38
  e4 ? e4.push("operation") : e4 = ["operation"], oe.value.hiddenColumns = e4;
39
39
  }
40
- oe.value.showOperationButton = !(!A.props || !A.props.base) && A.props.base.showOperation, oe.value.isPdfEditor = false, oe.value.tableRecordMaxNum = A.props && A.props.otherSettings ? A.props.otherSettings.tableRecordMaxNum : null;
41
- let t2 = x(N, A);
40
+ oe.value.showOperationButton = !(!N.props || !N.props.base) && N.props.base.showOperation, oe.value.isPdfEditor = false, oe.value.tableRecordMaxNum = N.props && N.props.otherSettings ? N.props.otherSettings.tableRecordMaxNum : null;
41
+ let t2 = x(H, N);
42
42
  t2 && t2.fixHeight && (oe.value.formSetHeight = t2.fixHeight), t2 && t2.maxHeight && (oe.value.formSetMaxHeight = t2.maxHeight);
43
43
  }
44
44
  function se() {
45
- if (A.props && A.props.otherSettings) {
46
- if (A.props.otherSettings.sourceQueryTableData && A.props.otherSettings.timeToInitializeSubTable && A.props.otherSettings.timeToInitializeSubTable.length > 0) {
45
+ if (N.props && N.props.otherSettings) {
46
+ if (N.props.otherSettings.sourceQueryTableData && N.props.otherSettings.timeToInitializeSubTable && N.props.otherSettings.timeToInitializeSubTable.length > 0) {
47
47
  let e3 = false;
48
- if (-1 !== A.props.otherSettings.timeToInitializeSubTable.indexOf("create") && (e3 = !B.id && !B.ID), -1 !== A.props.otherSettings.timeToInitializeSubTable.indexOf("noData")) {
48
+ if (-1 !== N.props.otherSettings.timeToInitializeSubTable.indexOf("create") && (e3 = !B.id && !B.ID), -1 !== N.props.otherSettings.timeToInitializeSubTable.indexOf("noData")) {
49
49
  const t2 = B[E];
50
50
  (!t2 || t2.length <= 0) && (e3 = true);
51
51
  }
@@ -55,7 +55,7 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
55
55
  }
56
56
  }
57
57
  function re() {
58
- return N.entity.data;
58
+ return H.entity.data;
59
59
  }
60
60
  function ce() {
61
61
  return D(X, Y);
@@ -68,7 +68,7 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
68
68
  }
69
69
  function be() {
70
70
  !function() {
71
- const e4 = N.fieldPermissionMap, t2 = N.actionPermissionMap;
71
+ const e4 = H.fieldPermissionMap, t2 = H.actionPermissionMap;
72
72
  if (e4 && null != e4) {
73
73
  let t3 = e4.get(E);
74
74
  if (!t3) {
@@ -83,7 +83,7 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
83
83
  }
84
84
  oe.value.operations || (oe.value.operations = {});
85
85
  const n2 = function() {
86
- let e5 = [], t3 = w(H.pageContext, A.props.base.showOperationCondition);
86
+ let e5 = [], t3 = w(U.pageContext, N.props.base.showOperationCondition);
87
87
  if (t3 && Se()) {
88
88
  const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: xe, isShow: we };
89
89
  e5.push(t4);
@@ -92,18 +92,18 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
92
92
  const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: Ce, isShow: De };
93
93
  e5.push(t4);
94
94
  }
95
- return I(N, A, e5, me), e5;
95
+ return I(H, N, e5, me), e5;
96
96
  }();
97
97
  oe.value.operations.operation = n2, oe.value.subTableCanAdd = Se();
98
- }(), c(oe.value, V, N, A);
99
- const e3 = N.customEvents;
98
+ }(), c(oe.value, V, H, N);
99
+ const e3 = H.customEvents;
100
100
  e3 && (oe.value.eventCallBack = e3), ee.value = true, ge();
101
101
  }
102
102
  function ge() {
103
- N.tableUuids || (N.tableUuids = []), N.tableUuids.indexOf(A.uuid) < 0 && N.tableUuids.push(A.uuid);
103
+ H.tableUuids || (H.tableUuids = []), H.tableUuids.indexOf(N.uuid) < 0 && H.tableUuids.push(N.uuid);
104
104
  }
105
105
  n(() => {
106
- const e3 = A.uuid, t2 = N.subTableWatchProps;
106
+ const e3 = N.uuid, t2 = H.subTableWatchProps;
107
107
  y.$on("_refreshSubTable_" + e3, (n2) => {
108
108
  console.log("-_refreshSubTable--tableUuid=", e3, "params=", n2);
109
109
  const o2 = n2.propName;
@@ -115,7 +115,7 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
115
115
  }), y.$on("_refreshChildData_" + e3, (t3) => {
116
116
  console.log("-_refreshChildData_--tableUuid=", e3), function(e4) {
117
117
  Le(e4), de = setTimeout(() => {
118
- ie.value && (ie.value.refreshChildData(z, e4, A.props && A.props.base && true === A.props.base.subPaging), oe.value.extraParam.entityMap = N.entity.data);
118
+ ie.value && (ie.value.refreshChildData(z, e4, N.props && N.props.base && true === N.props.base.subPaging), oe.value.extraParam.entityMap = H.entity.data);
119
119
  }, 10);
120
120
  }(t3);
121
121
  }), y.$on(z + "-pickFileDone", (e4) => {
@@ -125,7 +125,7 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
125
125
  }), oe.value && oe.value.configureObj.props.base && oe.value.configureObj.props.base.isSafeDelete && ae("setSafeDeleteTableCode", oe.value.extraParam.tableName);
126
126
  }), o(() => {
127
127
  pe && clearTimeout(pe), de && clearTimeout(de);
128
- const e3 = A.uuid;
128
+ const e3 = N.uuid;
129
129
  y.$off("_refreshSubTable_" + e3), y.$off("_refreshSubTableHandle_" + e3), y.$off("_refreshChildData_" + e3), y.$off(z + "-pickFileDone"), y.$off(z + "-scanDone");
130
130
  });
131
131
  const ve = t({});
@@ -134,12 +134,12 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
134
134
  return ve.value[e3.uuid] = e3, he;
135
135
  }
136
136
  function he(e3, t2, n2, o2, a2, i2) {
137
- const l2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: a2, button: i2, id: n2.ID ? n2.ID : n2.id }, u2 = ve.value[i2.sourceButton.uuid], s2 = A;
138
- u2.props.base.tableUuid = s2.uuid, S(null, N, u2, "click", l2);
137
+ const l2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: a2, button: i2, id: n2.ID ? n2.ID : n2.id }, u2 = ve.value[i2.sourceButton.uuid], s2 = N;
138
+ u2.props.base.tableUuid = s2.uuid, S(null, H, u2, "click", l2);
139
139
  }
140
140
  function Se(e3, t2, n2, o2, a2, i2) {
141
- if (!w(H.pageContext, A.props.base.showOperationCondition)) return false;
142
- const l2 = N.fieldPermissionMap, u2 = N.actionPermissionMap;
141
+ if (!w(U.pageContext, N.props.base.showOperationCondition)) return false;
142
+ const l2 = H.fieldPermissionMap, u2 = H.actionPermissionMap;
143
143
  let s2 = true;
144
144
  if (l2 && null !== l2) {
145
145
  const e4 = l2.get("all_fields");
@@ -153,10 +153,10 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
153
153
  }
154
154
  function we(e3, t2, n2, o2, a2, i2) {
155
155
  let l2 = Se();
156
- return true === l2 && (l2 = w(H.pageContext, A.props.base.showAddBtnCondition, n2)), l2;
156
+ return true === l2 && (l2 = w(U.pageContext, N.props.base.showAddBtnCondition, n2)), l2;
157
157
  }
158
158
  function Te(e3, t2, n2, o2, a2, i2) {
159
- const l2 = N.fieldPermissionMap, u2 = N.actionPermissionMap;
159
+ const l2 = H.fieldPermissionMap, u2 = H.actionPermissionMap;
160
160
  let s2 = true;
161
161
  if (l2 && null !== l2) {
162
162
  const e4 = l2.get("all_fields");
@@ -177,7 +177,7 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
177
177
  }
178
178
  function De(e3, t2, n2, o2, a2, i2) {
179
179
  let l2 = Te(0, 0, n2, 0, 0, i2);
180
- return true === l2 && (l2 = w(H.pageContext, A.props.base.showDeleteBtnCondition, n2)), l2;
180
+ return true === l2 && (l2 = w(U.pageContext, N.props.base.showDeleteBtnCondition, n2)), l2;
181
181
  }
182
182
  function xe(e3, t2, n2, o2, a2) {
183
183
  ie.value.createRow(z, {}, { getDefaultValueFunc: P });
@@ -189,52 +189,52 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
189
189
  T(X, Y, e3);
190
190
  }
191
191
  function ye(e3) {
192
- console.log("表单组件--Item--changeRowsPerpage==pageSize=", e3), N.subTablePageInfo || (N.subTablePageInfo = {}), N.subTablePageInfo[E] = { pageSize: e3 };
192
+ console.log("表单组件--Item--changeRowsPerpage==pageSize=", e3), H.subTablePageInfo || (H.subTablePageInfo = {}), H.subTablePageInfo[E] = { pageSize: e3 };
193
193
  }
194
194
  function _e(e3) {
195
195
  const t2 = e3.key, n2 = e3.value;
196
- N.selectOptions || (N.selectOptions = {}), N.selectOptions[t2] = n2;
196
+ H.selectOptions || (H.selectOptions = {}), H.selectOptions[t2] = n2;
197
197
  }
198
198
  function Ie(e3) {
199
- const t2 = N.code + "_";
199
+ const t2 = H.code + "_";
200
200
  y.$emit(t2 + "prohibit-edit", e3);
201
201
  }
202
202
  function Re(e3) {
203
- const t2 = N.entity.data;
203
+ const t2 = H.entity.data;
204
204
  if (e3) for (const n2 in e3) t2[n2] = e3[n2];
205
205
  }
206
206
  function Oe(e3, t2) {
207
207
  if (void 0 !== t2) {
208
208
  J.value = e3;
209
- p(N, A, { selection: e3, row: t2 });
209
+ p(H, N, { selection: e3, row: t2 });
210
210
  }
211
211
  }
212
212
  function ke(e3) {
213
213
  J.value = e3;
214
- d(N, A, { selection: e3 });
214
+ d(H, N, { selection: e3 });
215
215
  }
216
216
  function Me(e3) {
217
- f(N, A, { newSelection: e3 });
217
+ f(H, N, { newSelection: e3 });
218
218
  }
219
219
  function Fe(e3, t2, n2, o2) {
220
- b(N, A, { row: e3, column: t2, cell: n2, event: o2 });
220
+ b(H, N, { row: e3, column: t2, cell: n2, event: o2 });
221
221
  }
222
222
  function $e(e3, t2, n2, o2) {
223
- g(N, A, { row: e3, column: t2, cell: n2, event: o2 });
223
+ g(H, N, { row: e3, column: t2, cell: n2, event: o2 });
224
224
  }
225
225
  function je(e3, t2, n2) {
226
- v(N, A, { row: e3, column: t2, event: n2 });
226
+ v(H, N, { row: e3, column: t2, event: n2 });
227
227
  }
228
- function Ue(e3, t2, n2) {
229
- m(N, A, { row: e3, column: t2, event: n2 });
228
+ function Ae(e3, t2, n2) {
229
+ m(H, N, { row: e3, column: t2, event: n2 });
230
230
  }
231
- function He(e3, t2) {
232
- h(N, A, { column: e3, event: t2 });
231
+ function Ue(e3, t2) {
232
+ h(H, N, { column: e3, event: t2 });
233
233
  }
234
- function Ne(e3) {
235
- N.entity.data = e3;
234
+ function He(e3) {
235
+ H.entity.data = e3;
236
236
  }
237
- function Ae() {
237
+ function Ne() {
238
238
  return D(X, Y);
239
239
  }
240
240
  function Le(e3) {
@@ -242,7 +242,7 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
242
242
  }
243
243
  return function() {
244
244
  const e3 = se();
245
- e3 ? fe(e3) : (ue(e3), oe.value.isPageInfo = false, oe.value.subTableData = Ae(), be());
245
+ e3 ? fe(e3) : (ue(e3), oe.value.isPageInfo = false, oe.value.subTableData = Ne(), be());
246
246
  }(), j2({ createRow: function() {
247
247
  return ie.value.createRow(z);
248
248
  }, getSelections: function() {
@@ -255,18 +255,20 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
255
255
  }, clearSelections: function() {
256
256
  J.value = [];
257
257
  }, getTableConfigure: function() {
258
- return A;
258
+ return N;
259
259
  }, validatorSunTableListData: function() {
260
260
  return ie.value.validatorSunTableListData();
261
- }, getValue: Ae, setValue: Le, getTableSelectOptions: function() {
261
+ }, getValue: Ne, setValue: Le, getTableSelectOptions: function() {
262
262
  if (ie.value) return ie.value.getTableSelectOptions(z);
263
263
  }, dynamicControlTableEdit: function(e3, t2, n2) {
264
264
  ie.value && ie.value.dynamicControlTableEdit(e3, t2, n2);
265
265
  }, doLayout: function(e3) {
266
266
  ie.value && ie.value.doLayout(e3);
267
+ }, changeOperationAddState: function(e3) {
268
+ ie.value && ie.value.changeOperationAddState(e3);
267
269
  } }), (e3, t2) => {
268
270
  const n2 = a("super-grid");
269
- return l(), i("div", null, [ee.value ? (l(), u(n2, { key: 0, ref_key: "gridRef", ref: ie, url: r(Z) + "/dsc/commons/sub-table", options: oe.value, code: r(z), settings: r(K), onSelect: Oe, onSelectAll: ke, onSelectionChange: Me, onCellClick: Fe, onCellDblclick: $e, onRowClick: je, onRowDblclick: Ue, onHeaderClick: He, onFnProhibitToEdit: Ie, onChangeGridData: Pe, onReloadGrid: fe, onRefresMainTableFields: Re, onSetSelectOptions: _e, onChangeRowsPerPage: ye, onNewOpenGridDialog: r(_), onChangeFormData: Ne }, null, 8, ["url", "options", "code", "settings", "onNewOpenGridDialog"])) : s("", true)]);
271
+ return l(), i("div", null, [ee.value ? (l(), u(n2, { key: 0, ref_key: "gridRef", ref: ie, url: r(Z) + "/dsc/commons/sub-table", options: oe.value, code: r(z), settings: r(K), onSelect: Oe, onSelectAll: ke, onSelectionChange: Me, onCellClick: Fe, onCellDblclick: $e, onRowClick: je, onRowDblclick: Ae, onHeaderClick: Ue, onFnProhibitToEdit: Ie, onChangeGridData: Pe, onReloadGrid: fe, onRefresMainTableFields: Re, onSetSelectOptions: _e, onChangeRowsPerPage: ye, onNewOpenGridDialog: r(_), onChangeFormData: He }, null, 8, ["url", "options", "code", "settings", "onNewOpenGridDialog"])) : s("", true)]);
270
272
  };
271
273
  } });
272
274
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, createElementBlock as u, openBlock as n, createBlock as i, unref as l } from "vue";
1
+ import { defineComponent as e, ref as t, createElementBlock as n, openBlock as u, createBlock as i, unref as a } from "vue";
2
2
  import "agilebuilder-ui";
3
3
  import "agilebuilder-ui/src/utils/request";
4
4
  import "dayjs";
@@ -7,18 +7,18 @@ import "../../../../utils/global-refs.js";
7
7
  import "agilebuilder-ui/src/utils/common-util";
8
8
  import "agilebuilder-ui/src/utils/util";
9
9
  import o from "./sub-table-runtime.vue.js";
10
- import r from "./main-table-runtime.vue.js";
11
- const a = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: a2 }) {
12
- const c = e2, s = c.pageContext.pageType, f = t(null), g = c.configure.uuid, p = c.pageContext.superGridItems, d = p ? p[g] : null;
13
- f.value = d ? d.configure ? JSON.parse(d.configure) : null : c.configure;
10
+ import l from "./main-table-runtime.vue.js";
11
+ const r = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: r2 }) {
12
+ const c = e2, f = c.pageContext.pageType, s = t(null), g = c.configure.uuid, p = c.pageContext.superGridItems, d = p ? p[g] : null;
13
+ s.value = d ? d.configure ? JSON.parse(d.configure) : null : c.configure;
14
14
  const m = c.configure.runtime ? c.configure.runtime : {};
15
15
  m.style, m.class;
16
16
  const v = t(null);
17
- function b(e3) {
17
+ function S(e3) {
18
18
  c.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES ? c.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES.push(e3) : c.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES = [e3];
19
19
  }
20
- return a2({ refresh: function(e3, t2, u2, n2) {
21
- if (s && "list" === s) return v.value.refresh(e3, t2, u2, n2);
20
+ return r2({ refresh: function(e3, t2, n2, u2) {
21
+ if (f && "list" === f) return v.value.refresh(e3, t2, n2, u2);
22
22
  }, createRow: function() {
23
23
  return v.value.createRow();
24
24
  }, clearSelections: function() {
@@ -30,21 +30,23 @@ const a = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }
30
30
  }, getTableConfigure: function() {
31
31
  return v.value.getTableConfigure();
32
32
  }, isDeleteChange: function(e3) {
33
- s && "list" === s && v.value.isDeleteChange(e3);
33
+ f && "list" === f && v.value.isDeleteChange(e3);
34
34
  }, validatorSunTableListData: function() {
35
- if (s && "form" === s) return v.value.validatorSunTableListData();
35
+ if (f && "form" === f) return v.value.validatorSunTableListData();
36
36
  }, showMobileSearch: function() {
37
37
  v.value.showMobileSearch();
38
38
  }, getTableSelectOptions: function() {
39
39
  if (v.value) return v.value.getTableSelectOptions();
40
- }, dynamicControlTableEdit: function(e3, t2, u2) {
41
- v.value && v.value.dynamicControlTableEdit(e3, t2, u2);
40
+ }, dynamicControlTableEdit: function(e3, t2, n2) {
41
+ v.value && v.value.dynamicControlTableEdit(e3, t2, n2);
42
42
  }, getTableUuid: function() {
43
43
  return c.configure.uuid;
44
44
  }, doLayout: function(e3) {
45
45
  v.value && v.value.doLayout(e3);
46
- } }), (e3, t2) => (n(), u("div", null, [l(s) && "form" === l(s) ? (n(), i(o, { key: 0, ref_key: "gridRef", ref: v, pageContext: e3.pageContext, configure: f.value, onSetSafeDeleteTableCode: b }, null, 8, ["pageContext", "configure"])) : (n(), i(r, { key: 1, ref_key: "gridRef", ref: v, pageContext: e3.pageContext, configure: f.value, onSetSafeDeleteTableCode: b }, null, 8, ["pageContext", "configure"]))]));
46
+ }, changeOperationAddState: function(e3) {
47
+ v.value && v.value.changeOperationAddState(e3);
48
+ } }), (e3, t2) => (u(), n("div", null, [a(f) && "form" === a(f) ? (u(), i(o, { key: 0, ref_key: "gridRef", ref: v, pageContext: e3.pageContext, configure: s.value, onSetSafeDeleteTableCode: S }, null, 8, ["pageContext", "configure"])) : (u(), i(l, { key: 1, ref_key: "gridRef", ref: v, pageContext: e3.pageContext, configure: s.value, onSetSafeDeleteTableCode: S }, null, 8, ["pageContext", "configure"]))]));
47
49
  } });
48
50
  export {
49
- a as default
51
+ r as default
50
52
  };
@@ -1,7 +1,7 @@
1
1
  import e from "./tree-runtime.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const t = r(e, [["__scopeId", "data-v-c18f2291"]]);
4
+ const t = r(e, [["__scopeId", "data-v-4b43ab6c"]]);
5
5
  export {
6
6
  t as default
7
7
  };