super-page-runtime 2.3.7 → 2.3.9-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.
Files changed (57) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +50 -50
  2. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +102 -102
  3. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +26 -24
  4. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +59 -58
  5. package/dist/es/components/runtime/utils/charts/chart-radar-util.js +38 -37
  6. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +28 -27
  7. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -0
  8. package/dist/es/components/runtime/utils/charts/chart-util.js +29 -22
  9. package/dist/es/components/runtime/utils/common-util.d.ts +4 -0
  10. package/dist/es/components/runtime/utils/common-util.js +4 -0
  11. package/dist/es/components/runtime/utils/events/event-util.js +3 -3
  12. package/dist/es/components/runtime/utils/events/print-label.js +25 -26
  13. package/dist/es/components/runtime/utils/events/standard-event.js +18 -18
  14. package/dist/es/components/runtime/utils/events/validator-util.d.ts +1 -1
  15. package/dist/es/components/runtime/utils/events/validator-util.js +122 -104
  16. package/dist/es/components/runtime/utils/page-init-util.js +24 -25
  17. package/dist/es/components/runtime/utils/page-store.js +10 -10
  18. package/dist/es/components/runtime/utils/table-utils.js +1 -1
  19. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +4 -1
  20. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +4 -4
  21. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
  22. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
  23. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +4 -1
  24. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +15 -15
  25. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +4 -1
  26. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +7 -7
  27. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +4 -1
  28. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +8 -8
  29. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +4 -1
  30. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +7 -7
  31. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +11 -12
  32. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
  33. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
  34. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
  35. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +19 -17
  36. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +26 -20
  37. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +10 -4
  38. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +31 -28
  39. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +32 -25
  40. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +52 -49
  41. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +33 -30
  42. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +38 -35
  43. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +18 -15
  44. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +57 -55
  45. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +3 -5
  46. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -1
  47. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +46 -43
  48. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +55 -53
  49. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +63 -61
  50. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +25 -22
  51. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +16 -13
  52. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  53. package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
  54. package/dist/es/components/runtime/views/super-page.vue2.js +11 -12
  55. package/dist/es/style.css +30 -0
  56. package/package.json +2 -2
  57. package/dist/es.zip +0 -0
@@ -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 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 C, getEventNameByType as y, getEventFuncByType as x, getHandleEvent as E } from "../../../../utils/events/event-util.js";
3
- import { getBaseUrl as D, getListCode as T, getRealRestApiPath as R, isWorkflowPage as O, isVariableInvalidValue as k } 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 S, headerClick as C, getEventNameByType as y, getEventFuncByType as x, getHandleEvent as D } from "../../../../utils/events/event-util.js";
3
+ import { getBaseUrl as E, getListCode as T, getRealRestApiPath as O, isWorkflowPage as R, isVariableInvalidValue as k } from "../../../../utils/common-util.js";
4
4
  import { getAdditionalParamMap as I, getSaveFormRequestWithRow as V, standardEvents as j } from "../../../../utils/events/standard-event.js";
5
5
  import { isPromise as N } from "agilebuilder-ui/src/utils/common-util";
6
6
  import { getOperationButtons as B, popupToPage as P } from "../../../../utils/table-utils.js";
@@ -15,14 +15,14 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
15
15
  const K = t({});
16
16
  Y.isTest ? K.value = Q.configure.runtime ? Q.configure.runtime : {} : Y.tableRuntimes && Y.tableRuntimes[J.uuid] && (J = JSON.parse(Y.tableRuntimes[J.uuid].configure), K.value = J.runtime ? J.runtime : {});
17
17
  const X = K.value.style, Z = K.value.class, ee = Y.systemCode, te = Y.backendUrl, ne = J.props && J.props.dataOrigin && J.props.dataOrigin.tableName;
18
- let oe = D(Y.backendUrl, Y.isTest);
18
+ let oe = E(Y.backendUrl, Y.isTest);
19
19
  oe || (oe = window.$vueApp.config.globalProperties.baseURL);
20
20
  const ie = t({}), ae = [], le = t({});
21
21
  le.value = function() {
22
22
  const e3 = Y.systemCode, t2 = Y.code;
23
23
  let n2 = J.props && J.props.dataOrigin && "[]" !== J.props.dataOrigin.sqlFilterCondition ? J.props.dataOrigin.sqlFilterCondition : null;
24
24
  null == n2 && (n2 = []);
25
- const o2 = { isSql: true, optionTableHeight: 0, rowKeyProp: J.props.dataOrigin.principalLinkage, extraParam: { beanName: Y.beanName, functionCode: t2 + ".listData", tableName: ne, systemCode: e3, pageCode: Y.code, pageVersion: Y.version }, initSearchForm: n2, lineEditOptions: { aftersaveIsCreateRow: false, autoSave: false, enter: Se, esc: De }, indexContinuous: !(!J.props || !J.props.otherSettings) && J.props.otherSettings.serialNumberContinuous, initSearch: !J.props || false !== J.props.dataOrigin.initializationQuery, resizeHeight: je, pageCode: Y.code, pageVersion: Y.version, additionalParamMap: I(Y), 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: O(Y), tableClass: Z, tableStyle: X, pageContext: Y, configureObj: J, backendUrl: oe, cellStyleRender: qe, rowStyleRender: We, titleStyleRender: Qe, validateEitConditions: Xe };
25
+ const o2 = { isSql: true, optionTableHeight: 0, rowKeyProp: J.props.dataOrigin.principalLinkage, extraParam: { beanName: Y.beanName, functionCode: t2 + ".listData", tableName: ne, systemCode: e3, pageCode: Y.code, pageVersion: Y.version }, initSearchForm: n2, lineEditOptions: { aftersaveIsCreateRow: false, autoSave: false, enter: Se, esc: Ee }, indexContinuous: !(!J.props || !J.props.otherSettings) && J.props.otherSettings.serialNumberContinuous, initSearch: !J.props || false !== J.props.dataOrigin.initializationQuery, resizeHeight: je, pageCode: Y.code, pageVersion: Y.version, additionalParamMap: I(Y), 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: R(Y), tableClass: Z, tableStyle: X, pageContext: Y, configureObj: J, backendUrl: oe, cellStyleRender: qe, rowStyleRender: We, titleStyleRender: Qe, validateEitConditions: Xe };
26
26
  return function(e4) {
27
27
  var _a;
28
28
  ((_a = J.props.highOrder) == null ? void 0 : _a.mergeFields) && J.props.highOrder.mergeFields.length > 0 && (e4.mergeFields = J.props.highOrder.mergeFields.join(","));
@@ -56,7 +56,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
56
56
  }();
57
57
  const re = t(), ue = t(), se = function() {
58
58
  let e3 = oe + "/dsc/commons/list";
59
- e3 && (e3 = R(e3, ee, te, Y.isTest));
59
+ e3 && (e3 = O(e3, ee, te, Y.isTest));
60
60
  return e3;
61
61
  }(), ce = T(Y.code, Y.version, J.uuid), pe = Y.code + "_" + ce, de = t([]), fe = Y.entity.page, ge = t({ data: [] }), me = Y.superGridItems, ve = me ? me[J.uuid] : null, he = t(false), be = q;
62
62
  function we() {
@@ -89,7 +89,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
89
89
  function Ce(e3, t2, n2, o2, i2) {
90
90
  const a2 = ie.value.lineEditSave, l2 = J;
91
91
  a2.props.base.tableUuid = l2.uuid, le.value.lineEditOptions.beforeSave = xe, Y.editData = n2, p({ pageContext: Y, configureObj: a2 }).then((l3) => {
92
- true === l3.canExecute && (le.value.lineEditOptions.saveRow = Ee, ue.value.saveRow(i2, ce).then(() => {
92
+ true === l3.canExecute && (le.value.lineEditOptions.saveRow = De, ue.value.saveRow(i2, ce).then(() => {
93
93
  d(Y, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
94
94
  }));
95
95
  }).finally(() => {
@@ -101,7 +101,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
101
101
  let t2;
102
102
  const n2 = y(e3.events, "click");
103
103
  if (n2) {
104
- if (ie.value[n2] = e3, "lineEditSave" === n2 ? t2 = Ce : "restoreEdit" === n2 ? t2 = Te : "lineEditUpdate" === n2 ? t2 = Re : "lineEditDelete" === n2 && (t2 = ke), !t2) {
104
+ if (ie.value[n2] = e3, "lineEditSave" === n2 ? t2 = Ce : "restoreEdit" === n2 ? t2 = Te : "lineEditUpdate" === n2 ? t2 = Oe : "lineEditDelete" === n2 && (t2 = ke), !t2) {
105
105
  t2 = x(Y, e3.events, "click");
106
106
  }
107
107
  } else ie.value[e3.uuid] = e3, t2 = Be;
@@ -112,7 +112,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
112
112
  o2.props.base.tableUuid = i2.uuid;
113
113
  return f(Y, o2, { row: e3, columns: t2 });
114
114
  }
115
- function Ee({ row: e3, columns: t2, dataTypeMap: n2, dynamicColumnInfo: o2, additionalParamMap: i2, mainDefaultValueColumns: a2 }) {
115
+ function De({ row: e3, columns: t2, dataTypeMap: n2, dynamicColumnInfo: o2, additionalParamMap: i2, mainDefaultValueColumns: a2 }) {
116
116
  const l2 = ie.value.lineEditSave, r2 = J;
117
117
  return l2.props.base.tableUuid = r2.uuid, new Promise((t3, n3) => {
118
118
  const i3 = { tableName: r2.props.dataOrigin.tableName };
@@ -123,7 +123,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
123
123
  });
124
124
  });
125
125
  }
126
- function De({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
126
+ function Ee({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
127
127
  Te(null, null, n2, t2, e3);
128
128
  }
129
129
  function Te(e3, t2, n2, o2, i2) {
@@ -136,15 +136,15 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
136
136
  }) : ue.value.restoreRow(i2, ce);
137
137
  d(Y, J, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
138
138
  }
139
- function Re(e3, t2, n2, o2, i2) {
139
+ function Oe(e3, t2, n2, o2, i2) {
140
140
  const a2 = ie.value.lineEditUpdate, l2 = J;
141
141
  a2.props.base.tableUuid = l2.uuid;
142
142
  const r2 = f(Y, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
143
143
  r2 && (N(r2) ? r2.then((l3) => {
144
- l3 && Oe(e3, t2, n2, o2, i2, a2);
145
- }) : Oe(e3, t2, n2, o2, i2, a2));
144
+ l3 && Re(e3, t2, n2, o2, i2, a2);
145
+ }) : Re(e3, t2, n2, o2, i2, a2));
146
146
  }
147
- function Oe(e3, t2, n2, o2, i2, a2) {
147
+ function Re(e3, t2, n2, o2, i2, a2) {
148
148
  Y.editData = n2, p({ pageContext: Y, configureObj: a2 }).then((a3) => {
149
149
  if (true === a3.canExecute) {
150
150
  ue.value.editRow(i2, ce);
@@ -207,7 +207,6 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
207
207
  }
208
208
  function Ne() {
209
209
  if (!ue.value) return;
210
- Q.configure.name, Q.configure;
211
210
  const e3 = U(Q.pageContext, Q.configure);
212
211
  if (e3) {
213
212
  if (e3.isCalcHeight) {
@@ -221,7 +220,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
221
220
  }
222
221
  function Be(e3, t2, n2, o2, i2, a2) {
223
222
  const l2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2, button: a2, id: n2.ID ? n2.ID : n2.id }, r2 = ie.value[a2.sourceButton.uuid], u2 = J;
224
- r2.props.base.tableUuid = u2.uuid, E(null, Y, r2, "click", l2);
223
+ r2.props.base.tableUuid = u2.uuid, D(null, Y, r2, "click", l2);
225
224
  }
226
225
  function Pe(e3) {
227
226
  "close_open_win" === e3.data && ue.value && ue.value.refresh();
@@ -283,7 +282,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
283
282
  }
284
283
  n(() => {
285
284
  const e3 = Ke();
286
- ue.value && e3 && e3.distanceToBottom && (ue.value.tableHeight = e3.distanceToBottom - 110), Q.pageContext.pageRuntimeStyle && Q.pageContext.pageRuntimeStyle.height, window.addEventListener("message", Pe), F.$on(pe + "-close-component-page-dialog", function({ jumpInfo: e4, popEntity: t2, popPageCode: n2 }) {
285
+ ue.value && e3 && e3.distanceToBottom && (ue.value.tableHeight = e3.distanceToBottom - 110), Q.pageContext.pageRuntimeStyle, window.addEventListener("message", Pe), F.$on(pe + "-close-component-page-dialog", function({ jumpInfo: e4, popEntity: t2, popPageCode: n2 }) {
287
286
  ue.value.closePageDialog({ entity: t2, pageCode: n2, jumpInfo: e4 });
288
287
  }), F.$on(pe + "_close-dialog-get-entity", () => {
289
288
  F.$emit(pe + "_close-super-dialog");
@@ -353,7 +352,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
353
352
  }, setScrollLeft: function(e3) {
354
353
  ue.value && ue.value.setScrollLeft(e3);
355
354
  }, getSuperGridRef: function() {
356
- return ue.value.getSuperGridRef();
355
+ return ue.value;
357
356
  }, getSuperGridTableRef: function() {
358
357
  return ue.value.getSuperGridTableRef();
359
358
  }, setCurrentRowIndex: function(e3) {
@@ -362,6 +361,9 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
362
361
  }, setScrollTopByRowIndex: function(e3) {
363
362
  var _a;
364
363
  (_a = ue.value) == null ? void 0 : _a.setScrollTopByRowIndex(e3);
364
+ }, getTableData: function() {
365
+ var _a;
366
+ return (_a = ue.value) == null ? void 0 : _a.getTableData();
365
367
  } }), (e3, t2) => {
366
368
  const n2 = a("super-grid");
367
369
  return r(), l("div", { ref_key: "tableDivRef", ref: re, id: u(ce) + "_tableDiv" }, [s(n2, { ref_key: "gridRef", ref: ue, url: u(se), options: le.value, code: u(ce), settings: u(ve), "search-form-info": ge.value, "list-toolbar-form-data": u(fe), onSelect: Fe, onSelectAll: He, onSelectionChange: Ue, onCellClick: Le, onCellDblclick: Me, onRowClick: $e, onRowDblclick: _e, onHeaderClick: Ae, onRefresh: Ge, onNewOpenGridDialog: u(P), onCanShowMobileSearch: ze, onGridOnmounted: we }, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "onNewOpenGridDialog"])], 8, z);
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as e, ref as t, onMounted as n, onUnmounted as o, resolveComponent as a, createElementBlock as l, openBlock as i, createBlock as u, createCommentVNode as r, unref as s } from "vue";
2
- import { setTableEvents as c, gridSelectRecord as p, gridSelectAllRecords as f, gridSelectionChange as d, cellClick as v, cellDblClick as b, rowClick as g, rowDblClick as m, headerClick as h, getHandleEvent as S } from "../../../../utils/events/event-util.js";
2
+ import { setTableEvents as c, gridSelectRecord as p, gridSelectAllRecords as d, gridSelectionChange as f, cellClick as v, cellDblClick as b, rowClick as g, rowDblClick as m, headerClick as h, getHandleEvent as S } from "../../../../utils/events/event-util.js";
3
3
  import { caculateShowCondition as w, setVariableValue as T, getVariableValue as x, getSizeConfig as C } from "../../../../utils/page-helper-util.js";
4
4
  import { getModelFields as D, getDefaultValue as y } from "../../../../utils/page-init-util.js";
5
5
  import P from "../../../../utils/eventBus.js";
6
- import { popupToPage as I, getOperationButtons as R } from "../../../../utils/table-utils.js";
6
+ import { popupToPage as R, getOperationButtons as I } from "../../../../utils/table-utils.js";
7
7
  import { getListCode as O, getBaseUrl as _ } 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";
@@ -12,7 +12,7 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
12
12
  let N = L.configure;
13
13
  const E = L.configure.runtime ? L.configure.runtime : {};
14
14
  B.isTest ? E.value = L.configure.runtime ? L.configure.runtime : {} : B.tableRuntimes && B.tableRuntimes[N.uuid] && (N = JSON.parse(B.tableRuntimes[N.uuid].configure), E.value = N.runtime ? N.runtime : {});
15
- const G = O(B.code, B.version, N.uuid), H = B.entity.data, V = N.code ? N.code : G, U = k(B), z = E && E.events ? E.events : [], J = t([]), q = B.superGridItems, K = q ? q[N.uuid] : null, Q = E.style, W = E.class, X = L.pageContext.entity ? L.pageContext.entity : {};
15
+ const G = O(B.code, B.version, N.uuid), H = B.entity.data, V = N.code ? N.code : G, U = k(B), z = E && E.events ? E.events : [], q = t([]), J = B.superGridItems, K = J ? J[N.uuid] : null, Q = E.style, W = E.class, X = L.pageContext.entity ? L.pageContext.entity : {};
16
16
  let Y = D(L.configure, V), Z = _(B.backendUrl, B.isTest);
17
17
  Z || (Z = window.$vueApp.config.globalProperties.baseURL);
18
18
  const ee = t(false);
@@ -58,8 +58,8 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
58
58
  function ce() {
59
59
  return x(X, Y);
60
60
  }
61
- let pe, fe;
62
- function de(e3) {
61
+ let pe, de;
62
+ function fe(e3) {
63
63
  ue(e3), oe.value.subTableData = null, ve(), ee.value = false, pe = setTimeout(() => {
64
64
  ee.value = true, te.value = te.value + 1, be();
65
65
  }, 10);
@@ -90,7 +90,7 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
90
90
  const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: xe };
91
91
  e5.push(t4);
92
92
  }
93
- return R(B, N, e5, me), e5;
93
+ return I(B, N, e5, me), e5;
94
94
  }();
95
95
  oe.value.operations.operation = n2, oe.value.subTableCanAdd = Se();
96
96
  }(), c(oe.value, z, B, N);
@@ -111,7 +111,7 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
111
111
  ie();
112
112
  }), P.$on("_refreshChildData_" + e3, (e4) => {
113
113
  !function(e5) {
114
- Ee(e5), fe = setTimeout(() => {
114
+ Ee(e5), de = setTimeout(() => {
115
115
  le.value && (le.value.refreshChildData(G, e5, N.props && N.props.base && true === N.props.base.subPaging), oe.value.extraParam.entityMap = B.entity.data);
116
116
  }, 10);
117
117
  }(e4);
@@ -121,7 +121,7 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
121
121
  le.value.scanDone(e4);
122
122
  }), oe.value && oe.value.configureObj.props.base && oe.value.configureObj.props.base.isSafeDelete && ae("setSafeDeleteTableCode", oe.value.extraParam.tableName);
123
123
  }), o(() => {
124
- pe && clearTimeout(pe), fe && clearTimeout(fe);
124
+ pe && clearTimeout(pe), de && clearTimeout(de);
125
125
  const e3 = N.uuid;
126
126
  P.$off("_refreshSubTable_" + e3), P.$off("_refreshSubTableHandle_" + e3), P.$off("_refreshChildData_" + e3), P.$off(G + "-pickFileDone"), P.$off(G + "-scanDone");
127
127
  });
@@ -188,11 +188,11 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
188
188
  function Pe(e3) {
189
189
  B.subTablePageInfo || (B.subTablePageInfo = {}), B.subTablePageInfo[V] || (B.subTablePageInfo[V] = {}), B.subTablePageInfo[V].pageSize = e3;
190
190
  }
191
- function Ie(e3) {
191
+ function Re(e3) {
192
192
  const t2 = e3.key, n2 = e3.value;
193
193
  B.selectOptions || (B.selectOptions = {}), B.selectOptions[t2] = n2;
194
194
  }
195
- function Re(e3) {
195
+ function Ie(e3) {
196
196
  const t2 = B.code + "_";
197
197
  P.$emit(t2 + "prohibit-edit", e3);
198
198
  }
@@ -202,16 +202,16 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
202
202
  }
203
203
  function _e(e3, t2) {
204
204
  if (void 0 !== t2) {
205
- J.value = e3;
205
+ q.value = e3;
206
206
  p(B, N, { selection: e3, row: t2 });
207
207
  }
208
208
  }
209
209
  function ke(e3) {
210
- J.value = e3;
211
- f(B, N, { selection: e3 });
210
+ q.value = e3;
211
+ d(B, N, { selection: e3 });
212
212
  }
213
213
  function Me(e3) {
214
- d(B, N, { newSelection: e3 });
214
+ f(B, N, { newSelection: e3 });
215
215
  }
216
216
  function Fe(e3, t2, n2, o2) {
217
217
  v(B, N, { row: e3, column: t2, cell: n2, event: o2 });
@@ -243,18 +243,18 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
243
243
  }
244
244
  return function() {
245
245
  const e3 = re();
246
- e3 ? de(e3) : (ue(e3), oe.value.isPageInfo = false, oe.value.subTableData = Ne(), ve());
246
+ e3 ? fe(e3) : (ue(e3), oe.value.isPageInfo = false, oe.value.subTableData = Ne(), ve());
247
247
  }(), j2({ createRow: function() {
248
248
  return le.value.createRow(G);
249
249
  }, getSelections: function() {
250
- return J.value;
250
+ return q.value;
251
251
  }, getSelectionIds: function() {
252
252
  const e3 = [];
253
- return J.value && J.value.forEach((t2) => {
253
+ return q.value && q.value.forEach((t2) => {
254
254
  e3.push(t2.id ? t2.id : t2.ID ? t2.ID : null);
255
255
  }), e3;
256
256
  }, clearSelections: function() {
257
- J.value = [];
257
+ q.value = [];
258
258
  }, getTableConfigure: function() {
259
259
  return N;
260
260
  }, validatorSunTableListData: function() {
@@ -276,16 +276,22 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
276
276
  }, getSuperGridRef: function() {
277
277
  return le.value;
278
278
  }, getSuperGridTableRef: function() {
279
- return le.value.getSuperGridRef();
279
+ return le.value.getSuperGridTableRef();
280
280
  }, setCurrentRowIndex: function(e3) {
281
281
  var _a;
282
282
  (_a = le.value) == null ? void 0 : _a.setCurrentRowIndex(e3);
283
283
  }, setScrollTopByRowIndex: function(e3) {
284
284
  var _a;
285
285
  (_a = le.value) == null ? void 0 : _a.setScrollTopByRowIndex(e3);
286
+ }, getTableData: function() {
287
+ var _a;
288
+ return (_a = le.value) == null ? void 0 : _a.getTableData();
289
+ }, addRequiredClass: function(e3, t2, n2) {
290
+ var _a;
291
+ (_a = le.value) == null ? void 0 : _a.addRequiredClass(e3, G, t2, n2);
286
292
  } }), (e3, t2) => {
287
293
  const n2 = a("super-grid");
288
- return i(), l("div", null, [ee.value ? (i(), u(n2, { key: 0, ref_key: "gridRef", ref: le, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(G), settings: s(K), onSelect: _e, onSelectAll: ke, onSelectionChange: Me, onCellClick: Fe, onCellDblclick: $e, onRowClick: je, onRowDblclick: Ae, onHeaderClick: Le, onFnProhibitToEdit: Re, onChangeGridData: ye, onReloadGrid: de, onRefresMainTableFields: Oe, onSetSelectOptions: Ie, onChangeRowsPerPage: Pe, onNewOpenGridDialog: s(I), onChangeFormData: Be }, null, 8, ["url", "options", "code", "settings", "onNewOpenGridDialog"])) : r("", true)]);
294
+ return i(), l("div", null, [ee.value ? (i(), u(n2, { key: 0, ref_key: "gridRef", ref: le, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(G), settings: s(K), onSelect: _e, onSelectAll: ke, onSelectionChange: Me, onCellClick: Fe, onCellDblclick: $e, onRowClick: je, onRowDblclick: Ae, onHeaderClick: Le, onFnProhibitToEdit: Ie, onChangeGridData: ye, onReloadGrid: fe, onRefresMainTableFields: Oe, onSetSelectOptions: Re, onChangeRowsPerPage: Pe, onNewOpenGridDialog: s(R), onChangeFormData: Be }, null, 8, ["url", "options", "code", "settings", "onNewOpenGridDialog"])) : r("", true)]);
289
295
  };
290
296
  } });
291
297
  export {
@@ -1,9 +1,9 @@
1
- import { defineComponent as e, ref as t, onUnmounted as n, createElementBlock as u, openBlock as o, createBlock as l, createCommentVNode as a, unref as r } from "vue";
1
+ import { defineComponent as e, ref as t, onUnmounted as n, createElementBlock as u, openBlock as o, createBlock as a, createCommentVNode as l, unref as r } from "vue";
2
2
  import i from "./sub-table-runtime.vue.js";
3
3
  import c from "./main-table-runtime.vue.js";
4
4
  const f = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: f2 }) {
5
- const s = e2, g = s.pageContext.pageType, p = t(null), d = s.configure.uuid, v = s.pageContext.superGridItems, S = v ? v[d] : null;
6
- p.value = S ? S.configure ? JSON.parse(S.configure) : null : s.configure;
5
+ const s = e2, g = s.pageContext.pageType, d = t(null), v = s.configure.uuid, p = s.pageContext.superGridItems, S = p ? p[v] : null;
6
+ d.value = S ? S.configure ? JSON.parse(S.configure) : null : s.configure;
7
7
  const T = s.configure.runtime ? s.configure.runtime : {};
8
8
  T.style, T.class;
9
9
  const C = t(true), b = t(null);
@@ -66,7 +66,13 @@ const f = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }
66
66
  C.value = false, m = setTimeout(() => {
67
67
  C.value = true;
68
68
  }, 10);
69
- } }), (e3, t2) => (o(), u("div", null, [r(g) && "form" === r(g) && C.value ? (o(), l(i, { key: 0, ref_key: "gridRef", ref: b, pageContext: e3.pageContext, configure: p.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"])) : r(g) && "form" === r(g) ? a("", true) : (o(), l(c, { key: 1, ref_key: "gridRef", ref: b, pageContext: e3.pageContext, configure: p.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"]))]));
69
+ }, getTableData: function() {
70
+ var _a;
71
+ return (_a = b.value) == null ? void 0 : _a.getTableData();
72
+ }, addRequiredClass: function(e3, t2, n2) {
73
+ var _a;
74
+ (_a = b.value) == null ? void 0 : _a.addRequiredClass(e3, t2, n2);
75
+ } }), (e3, t2) => (o(), u("div", null, [r(g) && "form" === r(g) && C.value ? (o(), a(i, { key: 0, ref_key: "gridRef", ref: b, pageContext: e3.pageContext, configure: d.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"])) : r(g) && "form" === r(g) ? l("", true) : (o(), a(c, { key: 1, ref_key: "gridRef", ref: b, pageContext: e3.pageContext, configure: d.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"]))]));
70
76
  } });
71
77
  export {
72
78
  f as default
@@ -1,45 +1,48 @@
1
- import { defineComponent as e, computed as t, ref as l, onMounted as o, nextTick as n, resolveComponent as a, createBlock as u, openBlock as i, normalizeStyle as r, normalizeClass as s, unref as p, withCtx as c, createVNode as f, createElementBlock as g, Fragment as v, renderList as d, createCommentVNode as m, toDisplayString as h } from "vue";
2
- import { setVariableValue as y, getVariableValue as x, getOptionDatasFromPage as b, monitorFieldChange as C, autoSetAfterSelect as k, queryOptionDatasources as _ } from "../../../../utils/page-helper-util.js";
3
- import { getFormModelFields as R } from "../../../../utils/page-init-util.js";
4
- import { handleFormEvent as S, handleAfterInitEvent as j } from "../../../../utils/events/event-util.js";
5
- import { $t as I } from "../../../../utils/i18n-util.js";
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as o, nextTick as n, resolveComponent as a, createBlock as u, openBlock as i, normalizeStyle as r, normalizeClass as s, unref as p, withCtx as c, createVNode as f, createElementBlock as g, Fragment as v, renderList as d, createCommentVNode as m, toDisplayString as h } from "vue";
2
+ import { setVariableValue as y, getVariableValue as x, getOptionDatasFromPage as C, monitorFieldChange as b, autoSetAfterSelect as k, queryOptionDatasources as R } from "../../../../utils/page-helper-util.js";
3
+ import { getFormModelFields as _ } from "../../../../utils/page-init-util.js";
4
+ import { handleFormEvent as j, handleAfterInitEvent as S } from "../../../../utils/events/event-util.js";
5
+ import { $t as q } from "../../../../utils/i18n-util.js";
6
+ import { addRequiredClassUtil as I } from "../../../../utils/common-util.js";
6
7
  const V = e({ __name: "checkbox-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: V2 }) {
7
- const q = e2, w = q.pageContext.entity ? q.pageContext.entity : {};
8
- let z = R(q.pageContext, q.configure);
9
- const D = t({ get() {
10
- let e3 = x(w, z);
8
+ const w = e2, z = t(null), D = w.pageContext.entity ? w.pageContext.entity : {};
9
+ let O = _(w.pageContext, w.configure);
10
+ const A = l({ get() {
11
+ let e3 = x(D, O);
11
12
  return e3 && "string" == typeof e3 && (e3 = e3.split(",")), e3;
12
13
  }, set(e3) {
13
- e3 && e3.length > 0 && (e3 = e3.join(",")), y(w, z, e3);
14
- } }), O = q.configure.runtime ? q.configure.runtime : {}, A = O.style, M = O.class, P = O.headerStyle, E = O.titleExceedStyle, F = l(O.props ? O.props : {}), T = l(F.value.options ? F.value.options : []), U = b(q.pageContext, q.configure);
15
- U.length > 0 && (T.value = U);
16
- const W = q.configure.props && q.configure.props.dataOrigin ? q.configure.props.dataOrigin : {}, B = W.optionValueSetType;
17
- let G = [];
18
- if (("dynamicData" == B || "dynamicData" == B || "service" == B) && W.autoSets) for (let e3 of W.autoSets) e3.source && G.push(e3);
19
- q.configure && q.configure.props && q.configure.props.base && q.configure.props.base.optionProp && G.push({ source: "label", target: q.configure.props.base.optionProp }), F.value.changeMethod = function(e3) {
20
- if (G.length > -1) {
14
+ e3 && e3.length > 0 && (e3 = e3.join(",")), y(D, O, e3), null != e3 && (z.value = "");
15
+ } }), M = w.configure.runtime ? w.configure.runtime : {}, P = M.style, E = M.class, F = M.headerStyle, T = M.titleExceedStyle, U = t(M.props ? M.props : {}), W = t(U.value.options ? U.value.options : []), B = C(w.pageContext, w.configure);
16
+ B.length > 0 && (W.value = B);
17
+ const G = w.configure.props && w.configure.props.dataOrigin ? w.configure.props.dataOrigin : {}, H = G.optionValueSetType;
18
+ let J = [];
19
+ if (("dynamicData" == H || "dynamicData" == H || "service" == H) && G.autoSets) for (let e3 of G.autoSets) e3.source && J.push(e3);
20
+ w.configure && w.configure.props && w.configure.props.base && w.configure.props.base.optionProp && J.push({ source: "label", target: w.configure.props.base.optionProp }), U.value.changeMethod = function(e3) {
21
+ if (J.length > -1) {
21
22
  let t2 = null;
22
- T.value && null != e3 && null != e3 && (t2 = T.value.filter((t3) => Array.isArray(e3) ? e3.includes(t3.value) : e3 === t3.value)), k(q.configure, q.pageContext, G, t2);
23
+ W.value && null != e3 && null != e3 && (t2 = W.value.filter((t3) => Array.isArray(e3) ? e3.includes(t3.value) : e3 === t3.value)), k(w.configure, w.pageContext, J, t2);
23
24
  }
24
- S(e3, q.pageContext, q.configure, "change");
25
+ j(e3, w.pageContext, w.configure, "change");
25
26
  };
26
- const H = F.value.optionconfigInfo ? F.value.optionconfigInfo : {};
27
- const J = F.value.monitorFields;
28
- C(q.pageContext, J, function() {
29
- _(q.pageContext, H, void 0).then((e3) => {
27
+ const K = U.value.optionconfigInfo ? U.value.optionconfigInfo : {};
28
+ const L = U.value.monitorFields;
29
+ b(w.pageContext, L, function() {
30
+ R(w.pageContext, K, void 0).then((e3) => {
30
31
  });
31
32
  });
32
- const K = l(null), L = l(null), N = l(null);
33
+ const N = t(null), Q = t(null), X = t(null);
33
34
  return o(() => {
34
35
  n(() => {
35
- const e3 = D.value;
36
- j(e3, q.pageContext, q.configure, { formItemRef: K.value, componentRef: L.value, titleRef: N.value, value: e3, entity: q.pageContext.entity.data, pageData: q.pageContext.entity.page });
36
+ const e3 = A.value;
37
+ S(e3, w.pageContext, w.configure, { formItemRef: N.value, componentRef: Q.value, titleRef: X.value, value: e3, entity: w.pageContext.entity.data, pageData: w.pageContext.entity.page });
37
38
  });
38
39
  }), V2({ updateOptions: function(e3) {
39
- T.value = e3 || [];
40
+ W.value = e3 || [];
41
+ }, addRequiredClass: function() {
42
+ z.value = I();
40
43
  } }), (e3, t2) => {
41
44
  const l2 = a("el-checkbox"), o2 = a("el-checkbox-group"), n2 = a("el-form-item");
42
- return i(), u(n2, { ref_key: "formItemRef", ref: K, class: s(p(M)), required: !!F.value.required, "label-width": F.value.labelWidth, style: r(p(A)) }, { label: c(() => [F.value.tittleShow ? (i(), g("div", { key: 0, ref_key: "titleRef", ref: N, style: r({ ...p(P), ...p(E) }) }, h(p(I)(F.value.title)), 5)) : m("", true)]), default: c(() => [f(o2, { ref_key: "componentRef", ref: L, disabled: "disabled" === F.value.state, size: F.value.size, onChange: F.value.changeMethod, modelValue: D.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => D.value = e4) }, { default: c(() => [(i(true), g(v, null, d(T.value, (t3) => (i(), u(l2, { key: t3.value, value: t3.value, label: t3.label, onClick: (l3) => p(S)(t3.value, e3.pageContext, e3.configure, "click", { values: D.value }) }, null, 8, ["value", "label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 1 }, 8, ["class", "required", "label-width", "style"]);
45
+ return i(), u(n2, { ref_key: "formItemRef", ref: N, class: s(p(E) + (z.value ? " " + z.value : "")), required: !!U.value.required, "label-width": U.value.labelWidth, style: r(p(P)) }, { label: c(() => [U.value.tittleShow ? (i(), g("div", { key: 0, ref_key: "titleRef", ref: X, style: r({ ...p(F), ...p(T) }) }, h(p(q)(U.value.title)), 5)) : m("", true)]), default: c(() => [f(o2, { ref_key: "componentRef", ref: Q, disabled: "disabled" === U.value.state, size: U.value.size, onChange: U.value.changeMethod, modelValue: A.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => A.value = e4) }, { default: c(() => [(i(true), g(v, null, d(W.value, (t3) => (i(), u(l2, { key: t3.value, value: t3.value, label: t3.label, onClick: (l3) => p(j)(t3.value, e3.pageContext, e3.configure, "click", { values: A.value }) }, null, 8, ["value", "label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 1 }, 8, ["class", "required", "label-width", "style"]);
43
46
  };
44
47
  } });
45
48
  export {
@@ -1,60 +1,67 @@
1
- import { defineComponent as e, computed as t, ref as o, onMounted as a, nextTick as n, onUnmounted as i, resolveComponent as u, createBlock as l, createElementBlock as r, createCommentVNode as s, openBlock as p, normalizeStyle as c, normalizeClass as g, unref as m, withCtx as d, resolveDynamicComponent as f, toDisplayString as v } from "vue";
1
+ import { defineComponent as e, computed as t, ref as o, onMounted as n, nextTick as a, onUnmounted as i, resolveComponent as u, createBlock as l, createElementBlock as r, createCommentVNode as s, openBlock as p, normalizeStyle as c, normalizeClass as f, unref as m, withCtx as d, resolveDynamicComponent as g, toDisplayString as v } from "vue";
2
2
  import { getFormModelFields as C } from "../../../../utils/page-init-util.js";
3
3
  import { setVariableValue as x, getVariableValue as y, formatVariableValue as b, getFormPropName as h, setVariableValueWithProp as j } from "../../../../utils/page-helper-util.js";
4
4
  import { handleAfterInitEvent as R, handleEvent as k } from "../../../../utils/events/event-util.js";
5
5
  import { updateFormItemEditState as V } from "../../../../utils/events/validator-util.js";
6
6
  import { getListCode as _ } from "../../../../utils/common-util.js";
7
7
  import { getComponentRef as D } from "../../../../utils/global-refs.js";
8
- import { getAdditionalParamMap as E } from "../../../../utils/events/standard-event.js";
9
- import { $t as w } from "../../../../utils/i18n-util.js";
10
- import S from "../../../../utils/eventBus.js";
11
- import { functions as U } from "../../../../utils/api/page-expose-util.js";
12
- const F = { key: 0, style: { width: "100%", height: "100%" } }, O = { key: 1, style: { width: "100%", height: "100%" }, class: "amb-widget-richtext-single" }, $ = e({ __name: "custom-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: $2 }) {
13
- const q = e2, z = q.pageContext.entity ? q.pageContext.entity : {}, G = C(q.pageContext, q.configure), H = t({ get: () => y(z, G), set(e3) {
8
+ import { getAdditionalParamMap as w } from "../../../../utils/events/standard-event.js";
9
+ import { $t as E } from "../../../../utils/i18n-util.js";
10
+ import F from "../../../../utils/eventBus.js";
11
+ import { functions as S } from "../../../../utils/api/page-expose-util.js";
12
+ const U = { key: 0, style: { width: "100%", height: "100%" } }, q = { key: 1, style: { width: "100%", height: "100%" }, class: "amb-widget-richtext-single" }, $ = e({ __name: "custom-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: $2 }) {
13
+ const O = e2, z = O.pageContext.entity ? O.pageContext.entity : {}, G = C(O.pageContext, O.configure), H = t({ get: () => y(z, G), set(e3) {
14
14
  x(z, G, e3);
15
- } }), P = q.configure.runtime ? q.configure.runtime : {}, I = P.style, A = P.class, B = P.headerStyle, W = o(P.props ? P.props : {}), J = function(e3) {
15
+ } }), P = O.configure.runtime ? O.configure.runtime : {}, I = P.style, A = P.class, B = P.headerStyle, W = o(P.props ? P.props : {}), J = function(e3) {
16
16
  let t2 = {};
17
17
  if (e3) for (let o2 in e3) {
18
- const a2 = e3[o2];
19
- t2[o2] = b(q.pageContext, a2);
18
+ const n2 = e3[o2];
19
+ t2[o2] = b(O.pageContext, n2);
20
20
  }
21
21
  return t2;
22
- }(P.customParams ? P.customParams : {}), K = E(q.pageContext), L = o(q.configure.props && q.configure.props.base ? q.configure.props.base.name : null);
22
+ }(P.customParams ? P.customParams : {}), K = w(O.pageContext), L = o(O.configure.props && O.configure.props.base ? O.configure.props.base.name : null);
23
23
  function M(e3, t2) {
24
24
  j(z, e3, t2);
25
25
  }
26
26
  function N(e3) {
27
- U.isHasFieldAuthPermission(q.configure) ? V(q.pageContext, e3) : console.error("没有该字段的权限,dynamicFields=", G ? G.join(".") : "");
27
+ S.isHasFieldAuthPermission(O.configure) && V(O.pageContext, e3);
28
28
  }
29
29
  function Q() {
30
- const e3 = q.pageContext.tableUuids;
30
+ const e3 = O.pageContext.tableUuids;
31
31
  e3 && e3.forEach((e4) => {
32
- const t2 = _(q.pageContext.code, q.pageContext.version, q.configure.uuid), o2 = D(q.pageContext, e4);
32
+ const t2 = _(O.pageContext.code, O.pageContext.version, O.configure.uuid), o2 = D(O.pageContext, e4);
33
33
  o2 && o2.restoreGridEdit(t2);
34
34
  });
35
35
  }
36
- q.configure.props.verification.custom && q.configure.props.verification.custom.enabled && (q.pageContext.customValidatorUuids || (q.pageContext.customValidatorUuids = []), q.pageContext.customValidatorUuids.push(q.configure.uuid));
37
- const T = q.pageContext.code, X = o(G && G.length > 0 ? T + "__" + G.join("__") : null), Y = o(null), Z = o(null), ee = o(null);
36
+ O.configure.props.verification.custom && O.configure.props.verification.custom.enabled && (O.pageContext.customValidatorUuids || (O.pageContext.customValidatorUuids = []), O.pageContext.customValidatorUuids.push(O.configure.uuid));
37
+ const T = O.pageContext.code, X = o(G && G.length > 0 ? T + "__" + G.join("__") : null), Y = o(null), Z = o(null), ee = o(null);
38
38
  function te(e3) {
39
- k(H.value, q.pageContext, q.configure, e3);
39
+ k(H.value, O.pageContext, O.configure, e3);
40
40
  }
41
- return a(() => {
42
- S.$on(X.value + "-scanDone", (e3) => {
41
+ return n(() => {
42
+ F.$on(X.value + "-scanDone", (e3) => {
43
43
  const t2 = e3.result;
44
44
  x(z, G, t2);
45
- }), S.$on(X.value + "-pickFileDone", (e3) => {
46
- X.value, Y.value.pickFileDone(e3);
47
- }), n(() => {
45
+ }), F.$on(X.value + "-pickFileDone", (e3) => {
46
+ Y.value.pickFileDone(e3);
47
+ }), a(() => {
48
48
  const e3 = H.value;
49
- R(e3, q.pageContext, q.configure, { formItemRef: Z.value, componentRef: Y.value, titleRef: ee.value, value: e3, entity: q.pageContext.entity.data, pageData: q.pageContext.entity.page });
49
+ R(e3, O.pageContext, O.configure, { formItemRef: Z.value, componentRef: Y.value, titleRef: ee.value, value: e3, entity: O.pageContext.entity.data, pageData: O.pageContext.entity.page });
50
50
  });
51
51
  }), i(() => {
52
- S.$off(X.value + "-scanDone"), S.$off(X.value + "-pickFileDone");
52
+ F.$off(X.value + "-scanDone"), F.$off(X.value + "-pickFileDone");
53
53
  }), $2({ getCustomRef: function() {
54
54
  return Y.value;
55
+ }, invokeCustomFunction: function(e3, ...t2) {
56
+ if (Y.value && "function" == typeof Y.value[e3]) return Y.value[e3](...t2);
57
+ throw new Error(`执行失败:Function '${e3}' not found in custom component`);
58
+ }, hasCustomFunction: function(e3) {
59
+ return Y.value && "function" == typeof Y.value[e3];
60
+ }, addRequiredClass: function() {
61
+ requiredClass.value = addRequiredClassUtil();
55
62
  } }), (e3, t2) => {
56
63
  const o2 = u("el-form-item");
57
- return W.value.tittleShow ? (p(), l(o2, { key: 0, ref_key: "formItemRef", ref: Z, required: W.value.required, class: g(m(A)), "label-width": W.value.labelWidth, style: c(m(I)) }, { label: d(() => [W.value.tittleShow ? (p(), r("div", { key: 0, ref_key: "titleRef", ref: ee, style: c({ ...m(B) }) }, v(m(w)(W.value.title)), 5)) : s("", true)]), default: d(() => [L.value ? (p(), r("div", F, [(p(), l(f(L.value), { ref_key: "customRef", ref: Y, size: W.value.size, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: m(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": m(J), modelValue: H.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => H.value = e4), disabled: "disabled" === W.value.state, "additional-param-map": m(K), "component-id": X.value, onSetEntityValue: M, onSetCustomRules: N, onRestoreGridEdit: Q, onHandleEvent: te, onChange: t2[1] || (t2[1] = (t3) => m(k)(H.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["size", "entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : L.value ? (p(), r("div", O, [(p(), l(f(L.value), { ref_key: "customRef", ref: Y, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: m(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": m(J), modelValue: H.value, "onUpdate:modelValue": t2[2] || (t2[2] = (e4) => H.value = e4), disabled: "disabled" === W.value.state, "additional-param-map": m(K), "component-id": X.value, onSetEntityValue: M, onSetCustomRules: N, onRestoreGridEdit: Q, onHandleEvent: te, onChange: t2[3] || (t2[3] = (t3) => m(k)(H.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true);
64
+ return W.value.tittleShow ? (p(), l(o2, { key: 0, ref_key: "formItemRef", ref: Z, required: W.value.required, class: f(m(A)), "label-width": W.value.labelWidth, style: c(m(I)) }, { label: d(() => [W.value.tittleShow ? (p(), r("div", { key: 0, ref_key: "titleRef", ref: ee, style: c({ ...m(B) }) }, v(m(E)(W.value.title)), 5)) : s("", true)]), default: d(() => [L.value ? (p(), r("div", U, [(p(), l(g(L.value), { ref_key: "customRef", ref: Y, size: W.value.size, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: m(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": m(J), modelValue: H.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => H.value = e4), disabled: "disabled" === W.value.state, "additional-param-map": m(K), "component-id": X.value, onSetEntityValue: M, onSetCustomRules: N, onRestoreGridEdit: Q, onHandleEvent: te, onChange: t2[1] || (t2[1] = (t3) => m(k)(H.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["size", "entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : L.value ? (p(), r("div", q, [(p(), l(g(L.value), { ref_key: "customRef", ref: Y, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: m(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": m(J), modelValue: H.value, "onUpdate:modelValue": t2[2] || (t2[2] = (e4) => H.value = e4), disabled: "disabled" === W.value.state, "additional-param-map": m(K), "component-id": X.value, onSetEntityValue: M, onSetCustomRules: N, onRestoreGridEdit: Q, onHandleEvent: te, onChange: t2[3] || (t2[3] = (t3) => m(k)(H.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true);
58
65
  };
59
66
  } });
60
67
  export {