super-page-runtime 2.2.0 → 2.2.1

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 (113) hide show
  1. package/dist/es/_virtual/_plugin-vue_export-helper.js +1 -2
  2. package/dist/es/components/runtime/index.d.ts +2 -1
  3. package/dist/es/components/runtime/utils/api/page-expose-util.js +70 -72
  4. package/dist/es/components/runtime/utils/assemblys-config.js +2 -4
  5. package/dist/es/components/runtime/utils/barcode-util.js +1 -2
  6. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +59 -81
  7. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +2 -4
  8. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +8 -16
  9. package/dist/es/components/runtime/utils/charts/chart-radar-util.js +10 -18
  10. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +20 -25
  11. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -0
  12. package/dist/es/components/runtime/utils/charts/chart-util.js +200 -218
  13. package/dist/es/components/runtime/utils/common-util.js +7 -14
  14. package/dist/es/components/runtime/utils/events/event-util.js +97 -115
  15. package/dist/es/components/runtime/utils/events/print-label.js +20 -21
  16. package/dist/es/components/runtime/utils/events/standard-event.d.ts +2 -2
  17. package/dist/es/components/runtime/utils/events/standard-event.js +295 -337
  18. package/dist/es/components/runtime/utils/events/validator-util.js +85 -116
  19. package/dist/es/components/runtime/utils/form/date-shortcuts.js +1 -2
  20. package/dist/es/components/runtime/utils/form/scan-util.js +10 -17
  21. package/dist/es/components/runtime/utils/global-refs.js +7 -14
  22. package/dist/es/components/runtime/utils/i18n-util.js +1 -2
  23. package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +2 -0
  24. package/dist/es/components/runtime/utils/page-helper-util.js +66 -116
  25. package/dist/es/components/runtime/utils/page-init-util.d.ts +6 -1
  26. package/dist/es/components/runtime/utils/page-init-util.js +65 -69
  27. package/dist/es/components/runtime/utils/page-permission-util.js +2 -4
  28. package/dist/es/components/runtime/utils/page-store.d.ts +2 -2
  29. package/dist/es/components/runtime/utils/table-utils.js +4 -8
  30. package/dist/es/components/runtime/utils/tree-utils.js +13 -15
  31. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +2 -2
  32. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +2 -2
  33. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -4
  34. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +2 -2
  35. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +2 -2
  36. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +24 -28
  37. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +2 -2
  38. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +2 -2
  39. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +44 -40
  40. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +44 -0
  41. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +4 -0
  42. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +20 -20
  43. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +20 -20
  44. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +20 -20
  45. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +22 -22
  46. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +34 -1
  47. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +205 -170
  48. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +2 -2
  49. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +2 -2
  50. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +19 -50
  51. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +2 -2
  52. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +151 -120
  53. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +4 -4
  54. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +2 -2
  55. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +6 -6
  56. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +9 -11
  57. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +6 -6
  58. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
  59. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +2 -2
  60. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +2 -2
  61. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +2 -2
  62. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +2 -2
  63. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +2 -2
  64. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +2 -2
  65. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +2 -2
  66. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +2 -2
  67. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +7 -7
  68. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +60 -72
  69. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +91 -95
  70. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +6 -9
  71. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +5 -5
  72. package/dist/es/components/runtime/views/assemblys/error-render.vue.d.ts +4 -4
  73. package/dist/es/components/runtime/views/assemblys/error-render.vue.js +2 -2
  74. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +6 -8
  75. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +4 -6
  76. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +7 -9
  77. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +10 -13
  78. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +25 -28
  79. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -4
  80. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +3 -4
  81. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +5 -5
  82. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +9 -10
  83. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +9 -11
  84. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +2 -2
  85. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +1 -1
  86. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +2 -2
  87. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +15 -20
  88. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +20 -25
  89. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +15 -20
  90. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +2 -2
  91. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +2 -2
  92. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +4 -5
  93. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +5 -5
  94. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.d.ts +17 -0
  95. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +97 -0
  96. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +4 -0
  97. package/dist/es/components/runtime/views/assemblys/object-render.vue.d.ts +1 -1
  98. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +33 -43
  99. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +3 -4
  100. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +3 -4
  101. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +3 -4
  102. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +2 -2
  103. package/dist/es/components/runtime/views/home-chart.vue.d.ts +23 -0
  104. package/dist/es/components/runtime/views/home-chart.vue.js +36 -0
  105. package/dist/es/components/runtime/views/home-chart.vue2.js +4 -0
  106. package/dist/es/components/runtime/views/super-page-dialog.vue.d.ts +3 -3
  107. package/dist/es/components/runtime/views/super-page-dialog.vue.js +15 -13
  108. package/dist/es/components/runtime/views/super-page.vue.d.ts +15 -6
  109. package/dist/es/components/runtime/views/super-page.vue.js +171 -182
  110. package/dist/es/index.d.ts +2 -2
  111. package/dist/es/index.js +6 -4
  112. package/package.json +74 -74
  113. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue3.js +0 -1
@@ -1,46 +1,50 @@
1
- import { defineComponent as e, ref as t, onMounted as n, onUnmounted as o, resolveComponent as a, openBlock as i, createElementBlock as l, createBlock as s, unref as u, createCommentVNode as r } from "vue";
1
+ import { defineComponent as e, ref as t, onMounted as n, onUnmounted as o, resolveComponent as a, createElementBlock as i, openBlock as l, createBlock as u, createCommentVNode as s, unref as r } from "vue";
2
2
  import { setTableEvents as c, gridSelectRecord as p, gridSelectAllRecords as f, gridSelectionChange as d, cellClick as b, cellDblClick as v, rowClick as g, rowDblClick as m, headerClick as h } from "../../../../utils/events/event-util.js";
3
3
  import { caculateShowCondition as S, setVariableValue as w, getVariableValue as x, getSizeConfig as T } from "../../../../utils/page-helper-util.js";
4
4
  import { getModelFields as D, getDefaultValue as C } from "../../../../utils/page-init-util.js";
5
5
  import y from "../../../../utils/eventBus.js";
6
- import { popupToPage as P, getOperationButtons as I } from "../../../../utils/table-utils.js";
7
- import { getListCode as R, getBaseUrl as _ } from "../../../../utils/common-util.js";
6
+ import { popupToPage as P, getOperationButtons as R } from "../../../../utils/table-utils.js";
7
+ import { getListCode as I, getBaseUrl as _ } from "../../../../utils/common-util.js";
8
8
  import { getAdditionalParamMap as O } from "../../../../utils/events/standard-event.js";
9
9
  import { getRowStyleUtil as k, getCellStyleUtil as M, getHeaderCellStyleUtil as F } from "../../chart/table/chart-table-util.js";
10
10
  const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: $2, emit: j }) {
11
- const A = e2, H = A.pageContext, N = A.configure, E = R(H.code, H.version, N.uuid), L = H.entity.data, z = N.code ? N.code : E, B = O(H), U = N.runtime && N.runtime.events ? N.runtime.events : [], G = t([]), V = H.superGridItems, q = V ? V[N.uuid] : null, J = A.configure.runtime ? A.configure.runtime : {}, Q = J.style, W = J.class, K = A.pageContext.entity ? A.pageContext.entity : {};
12
- let X = D(A.configure, z), Y = _(H.backendUrl, H.isTest);
11
+ const N = e2, A = N.pageContext;
12
+ let H = N.configure;
13
+ const E = N.configure.runtime ? N.configure.runtime : {};
14
+ A.isTest ? E.value = N.configure.runtime ? N.configure.runtime : {} : A.tableRuntimes && A.tableRuntimes[H.uuid] && (H = JSON.parse(A.tableRuntimes[H.uuid].configure), E.value = H.runtime ? H.runtime : {});
15
+ const L = I(A.code, A.version, H.uuid), z = A.entity.data, B = H.code ? H.code : L, U = O(A), G = E && E.events ? E.events : [], V = t([]), J = A.superGridItems, q = J ? J[H.uuid] : null, Q = E.style, W = E.class, K = N.pageContext.entity ? N.pageContext.entity : {};
16
+ let X = D(N.configure, B), Y = _(A.backendUrl, A.isTest);
13
17
  Y || (Y = window.$vueApp.config.globalProperties.baseURL);
14
18
  const Z = t(false);
15
19
  let ee = t(0);
16
- const te = t({ isSql: true, subTableData: null, 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: Y, cellStyleRender: function(e3) {
17
- return M(e3, e3.cellStyle, A);
20
+ const te = t({ isSql: true, subTableData: null, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: A.code, pageVersion: A.version, pageContext: A, configureObj: H, showPageArea: false, showRowForm: false, showOverflowTooltip: !(!H.props || !H.props.otherSettings || void 0 !== H.props.otherSettings.isBreakLine && false !== H.props.otherSettings.isBreakLine), backendUrl: Y, cellStyleRender: function(e3) {
21
+ return M(e3, e3.cellStyle, N);
18
22
  }, rowStyleRender: function(e3) {
19
- return k(e3, null, A);
23
+ return k(e3, null, N);
20
24
  }, titleStyleRender: function(e3) {
21
- const t2 = e3.titleStyle, n2 = A.configure.style.titleStyle;
22
- return F(e3, { cellTitleStyle: t2, titleStyle: n2 }, A);
25
+ const t2 = e3.titleStyle, n2 = N.configure.style.titleStyle;
26
+ return F(e3, { cellTitleStyle: t2, titleStyle: n2 }, N);
23
27
  } }), ne = j;
24
- Q && (te.value.tableStyle = Q), W && (te.value.tableClass = W), N.props && N.props.base && true === N.props.base.subPaging ? te.value.showPageArea = true : te.value.showPageArea = false, N.props.base.showRowForm && (te.value.showRowForm = N.props.base.showRowForm);
28
+ Q && (te.value.tableStyle = Q), W && (te.value.tableClass = W), H.props && H.props.base && true === H.props.base.subPaging ? te.value.showPageArea = true : te.value.showPageArea = false, H.props.base.showRowForm && (te.value.showRowForm = H.props.base.showRowForm);
25
29
  const oe = t(null);
26
30
  function ae() {
27
- oe.value && (te.value.subTableData = null, oe.value.reloadSubTableData(E));
31
+ oe.value && (te.value.subTableData = null, oe.value.reloadSubTableData(L));
28
32
  }
29
33
  function ie(e3) {
30
- if (void 0 === e3 && (e3 = le()), te.value.isPageInfo = false, te.value.isFormSubTable = true, te.value.canRrefreshSubtableData = e3, te.value.getFormData = se, te.value.getGridData = ue, te.value.extraParam.subTableListViewCode = E, te.value.extraParam.beanName = H.beanName, te.value.extraParam.subtableSetting = N.props && N.props.otherSettings ? JSON.stringify(N.props.otherSettings) : null, te.value.extraParam.additionalParamMap = B, te.value.extraParam.entityMap = H.entity.data, te.value.extraParam.contextMap = H.entity.context, te.value.extraParam.taskMap = H.entity.task, !(N.props && N.props.base && N.props.base.showOperation)) {
34
+ if (void 0 === e3 && (e3 = le()), te.value.isPageInfo = false, te.value.isFormSubTable = true, te.value.canRrefreshSubtableData = e3, te.value.getFormData = ue, te.value.getGridData = se, te.value.extraParam.subTableListViewCode = L, te.value.extraParam.beanName = A.beanName, te.value.extraParam.subtableSetting = H.props && H.props.otherSettings ? JSON.stringify(H.props.otherSettings) : null, te.value.extraParam.additionalParamMap = U, te.value.extraParam.entityMap = A.entity.data, te.value.extraParam.contextMap = A.entity.context, te.value.extraParam.taskMap = A.entity.task, !(H.props && H.props.base && H.props.base.showOperation)) {
31
35
  let e4 = te.value.hiddenColumns;
32
36
  e4 ? e4.push("operation") : e4 = ["operation"], te.value.hiddenColumns = e4;
33
37
  }
34
- te.value.showOperationButton = !(!N.props || !N.props.base) && N.props.base.showOperation, te.value.isPdfEditor = false, te.value.tableRecordMaxNum = N.props && N.props.otherSettings ? N.props.otherSettings.tableRecordMaxNum : null;
35
- let t2 = T(H, N);
38
+ te.value.showOperationButton = !(!H.props || !H.props.base) && H.props.base.showOperation, te.value.isPdfEditor = false, te.value.tableRecordMaxNum = H.props && H.props.otherSettings ? H.props.otherSettings.tableRecordMaxNum : null;
39
+ let t2 = T(A, H);
36
40
  t2 && t2.fixHeight && (te.value.formSetHeight = t2.fixHeight), t2 && t2.maxHeight && (te.value.formSetMaxHeight = t2.maxHeight);
37
41
  }
38
42
  function le() {
39
- if (N.props && N.props.otherSettings) {
40
- if (N.props.otherSettings.sourceQueryTableData && N.props.otherSettings.timeToInitializeSubTable && N.props.otherSettings.timeToInitializeSubTable.length > 0) {
43
+ if (H.props && H.props.otherSettings) {
44
+ if (H.props.otherSettings.sourceQueryTableData && H.props.otherSettings.timeToInitializeSubTable && H.props.otherSettings.timeToInitializeSubTable.length > 0) {
41
45
  let e3 = false;
42
- if (-1 !== N.props.otherSettings.timeToInitializeSubTable.indexOf("create") && (e3 = !L.id && !L.ID), -1 !== N.props.otherSettings.timeToInitializeSubTable.indexOf("noData")) {
43
- const t2 = L[z];
46
+ if (-1 !== H.props.otherSettings.timeToInitializeSubTable.indexOf("create") && (e3 = !z.id && !z.ID), -1 !== H.props.otherSettings.timeToInitializeSubTable.indexOf("noData")) {
47
+ const t2 = z[B];
44
48
  (!t2 || t2.length <= 0) && (e3 = true);
45
49
  }
46
50
  return e3;
@@ -48,10 +52,10 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
48
52
  return false;
49
53
  }
50
54
  }
51
- function se() {
52
- return H.entity.data;
53
- }
54
55
  function ue() {
56
+ return A.entity.data;
57
+ }
58
+ function se() {
55
59
  return x(K, X);
56
60
  }
57
61
  function re(e3) {
@@ -61,9 +65,9 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
61
65
  }
62
66
  function ce() {
63
67
  !function() {
64
- const e4 = H.fieldPermissionMap, t2 = H.actionPermissionMap;
68
+ const e4 = A.fieldPermissionMap, t2 = A.actionPermissionMap;
65
69
  if (e4 && null != e4) {
66
- let t3 = e4.get(z);
70
+ let t3 = e4.get(B);
67
71
  if (!t3) {
68
72
  const n3 = e4.get("all_fields");
69
73
  n3 && (t3 = [n3]);
@@ -71,12 +75,12 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
71
75
  te.value.validateRules = t3 || null;
72
76
  }
73
77
  if (t2 && null != t2) {
74
- let e5 = t2.get(z);
78
+ let e5 = t2.get(B);
75
79
  e5 || (e5 = t2.get("all_sub_tables")), te.value.actionPermission = e5;
76
80
  }
77
81
  te.value.operations || (te.value.operations = {});
78
82
  const n2 = function() {
79
- let e5 = [], t3 = S(A.pageContext, N.props.base.showOperationCondition);
83
+ let e5 = [], t3 = S(N.pageContext, H.props.base.showOperationCondition);
80
84
  if (t3 && fe()) {
81
85
  const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: ge, isShow: de };
82
86
  e5.push(t4);
@@ -85,119 +89,112 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
85
89
  const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: me, isShow: ve };
86
90
  e5.push(t4);
87
91
  }
88
- return I(H, N, e5), e5;
92
+ return R(A, H, e5), e5;
89
93
  }();
90
94
  te.value.operations.operation = n2, te.value.subTableCanAdd = fe();
91
- }(), c(te.value, U, H, N);
92
- const e3 = H.customEvents;
95
+ }(), c(te.value, G, A, H);
96
+ const e3 = A.customEvents;
93
97
  e3 && (te.value.eventCallBack = e3), Z.value = true, pe();
94
98
  }
95
99
  function pe() {
96
- H.tableUuids || (H.tableUuids = []), H.tableUuids.indexOf(N.uuid) < 0 && H.tableUuids.push(N.uuid);
100
+ A.tableUuids || (A.tableUuids = []), A.tableUuids.indexOf(H.uuid) < 0 && A.tableUuids.push(H.uuid);
97
101
  }
98
102
  function fe(e3, t2, n2, o2, a2, i2) {
99
- if (!S(A.pageContext, N.props.base.showOperationCondition))
100
- return false;
101
- const l2 = H.fieldPermissionMap, s2 = H.actionPermissionMap;
102
- let u2 = true;
103
+ if (!S(N.pageContext, H.props.base.showOperationCondition)) return false;
104
+ const l2 = A.fieldPermissionMap, u2 = A.actionPermissionMap;
105
+ let s2 = true;
103
106
  if (l2 && null !== l2) {
104
107
  const e4 = l2.get("all_fields");
105
- void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (u2 = false);
108
+ void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (s2 = false);
106
109
  }
107
- if (true === u2 && z && s2 && null !== s2) {
108
- let e4 = s2.get(z);
109
- e4 || (e4 = s2.get("all_sub_tables")), e4 && void 0 !== e4.canAdd && false === e4.canAdd && (u2 = false);
110
+ if (true === s2 && B && u2 && null !== u2) {
111
+ let e4 = u2.get(B);
112
+ e4 || (e4 = u2.get("all_sub_tables")), e4 && void 0 !== e4.canAdd && false === e4.canAdd && (s2 = false);
110
113
  }
111
- return u2;
114
+ return s2;
112
115
  }
113
116
  function de(e3, t2, n2, o2, a2, i2) {
114
117
  let l2 = fe();
115
- return true === l2 && (l2 = S(A.pageContext, N.props.base.showAddBtnCondition, n2)), l2;
118
+ return true === l2 && (l2 = S(N.pageContext, H.props.base.showAddBtnCondition, n2)), l2;
116
119
  }
117
120
  function be(e3, t2, n2, o2, a2, i2) {
118
- const l2 = H.fieldPermissionMap, s2 = H.actionPermissionMap;
119
- let u2 = true;
121
+ const l2 = A.fieldPermissionMap, u2 = A.actionPermissionMap;
122
+ let s2 = true;
120
123
  if (l2 && null !== l2) {
121
124
  const e4 = l2.get("all_fields");
122
- void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (u2 = false);
125
+ void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (s2 = false);
123
126
  }
124
- if (true === u2 && z && s2 && null !== s2) {
125
- let e4 = s2.get(z);
126
- if (e4 || (e4 = s2.get("all_sub_tables")), e4 && void 0 !== e4.canDelete && false === e4.canDelete && (u2 = false), e4 && void 0 !== e4.canDelete && true === e4.canDelete && e4.deleteRowIndexes)
127
- if (e4.deleteRowIndexes.length > 0)
128
- if (i2)
129
- u2 = true;
130
- else {
131
- const t3 = function(e5) {
132
- return e5 && e5.id ? e5.id : e5 && e5.ID ? e5.ID : void 0;
133
- }(n2);
134
- u2 = void 0 !== t3 && e4.deleteRowIndexes.indexOf(t3) >= 0;
135
- }
136
- else
137
- u2 = false;
127
+ if (true === s2 && B && u2 && null !== u2) {
128
+ let e4 = u2.get(B);
129
+ if (e4 || (e4 = u2.get("all_sub_tables")), e4 && void 0 !== e4.canDelete && false === e4.canDelete && (s2 = false), e4 && void 0 !== e4.canDelete && true === e4.canDelete && e4.deleteRowIndexes) if (e4.deleteRowIndexes.length > 0) if (i2) s2 = true;
130
+ else {
131
+ const t3 = function(e5) {
132
+ return e5 && e5.id ? e5.id : e5 && e5.ID ? e5.ID : void 0;
133
+ }(n2);
134
+ s2 = void 0 !== t3 && e4.deleteRowIndexes.indexOf(t3) >= 0;
135
+ }
136
+ else s2 = false;
138
137
  }
139
- return u2;
138
+ return s2;
140
139
  }
141
140
  function ve(e3, t2, n2, o2, a2, i2) {
142
141
  let l2 = be(0, 0, n2, 0, 0, i2);
143
- return true === l2 && (l2 = S(A.pageContext, N.props.base.showDeleteBtnCondition, n2)), l2;
142
+ return true === l2 && (l2 = S(N.pageContext, H.props.base.showDeleteBtnCondition, n2)), l2;
144
143
  }
145
144
  function ge(e3, t2, n2, o2, a2) {
146
- oe.value.createRow(E, {}, { getDefaultValueFunc: C });
145
+ oe.value.createRow(L, {}, { getDefaultValueFunc: C });
147
146
  }
148
147
  function me(e3, t2, n2, o2, a2) {
149
- oe.value.deleteRow(a2, E, false);
148
+ oe.value.deleteRow(a2, L, false);
150
149
  }
151
150
  function he(e3) {
152
151
  w(K, X, e3);
153
152
  }
154
153
  function Se(e3) {
155
- H.subTablePageInfo || (H.subTablePageInfo = {}), H.subTablePageInfo[z] = { pageSize: e3 };
154
+ A.subTablePageInfo || (A.subTablePageInfo = {}), A.subTablePageInfo[B] = { pageSize: e3 };
156
155
  }
157
156
  function we(e3) {
158
157
  const t2 = e3.key, n2 = e3.value;
159
- H.selectOptions || (H.selectOptions = {}), H.selectOptions[t2] = n2;
158
+ A.selectOptions || (A.selectOptions = {}), A.selectOptions[t2] = n2;
160
159
  }
161
160
  function xe(e3) {
162
- const t2 = H.code + "_";
161
+ const t2 = A.code + "_";
163
162
  y.$emit(t2 + "prohibit-edit", e3);
164
163
  }
165
164
  function Te(e3) {
166
- const t2 = H.entity.data;
167
- if (e3)
168
- for (const n2 in e3)
169
- t2[n2] = e3[n2];
165
+ const t2 = A.entity.data;
166
+ if (e3) for (const n2 in e3) t2[n2] = e3[n2];
170
167
  }
171
168
  function De(e3, t2) {
172
169
  if (void 0 !== t2) {
173
- G.value = e3;
174
- p(H, N, { selection: e3, row: t2 });
170
+ V.value = e3;
171
+ p(A, H, { selection: e3, row: t2 });
175
172
  }
176
173
  }
177
174
  function Ce(e3) {
178
- G.value = e3;
179
- f(H, N, { selection: e3 });
175
+ V.value = e3;
176
+ f(A, H, { selection: e3 });
180
177
  }
181
178
  function ye(e3) {
182
- d(H, N, { newSelection: e3 });
179
+ d(A, H, { newSelection: e3 });
183
180
  }
184
181
  function Pe(e3, t2, n2, o2) {
185
- b(H, N, { row: e3, column: t2, cell: n2, event: o2 });
182
+ b(A, H, { row: e3, column: t2, cell: n2, event: o2 });
186
183
  }
187
- function Ie(e3, t2, n2, o2) {
188
- v(H, N, { row: e3, column: t2, cell: n2, event: o2 });
184
+ function Re(e3, t2, n2, o2) {
185
+ v(A, H, { row: e3, column: t2, cell: n2, event: o2 });
189
186
  }
190
- function Re(e3, t2, n2) {
191
- g(H, N, { row: e3, column: t2, event: n2 });
187
+ function Ie(e3, t2, n2) {
188
+ g(A, H, { row: e3, column: t2, event: n2 });
192
189
  }
193
190
  function _e(e3, t2, n2) {
194
- m(H, N, { row: e3, column: t2, event: n2 });
191
+ m(A, H, { row: e3, column: t2, event: n2 });
195
192
  }
196
193
  function Oe(e3, t2) {
197
- h(H, N, { column: e3, event: t2 });
194
+ h(A, H, { column: e3, event: t2 });
198
195
  }
199
196
  function ke(e3) {
200
- H.entity.data = e3;
197
+ A.entity.data = e3;
201
198
  }
202
199
  function Me() {
203
200
  return x(K, X);
@@ -206,7 +203,7 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
206
203
  return w(K, X, e3);
207
204
  }
208
205
  return n(() => {
209
- const e3 = N.uuid, t2 = H.subTableWatchProps;
206
+ const e3 = H.uuid, t2 = A.subTableWatchProps;
210
207
  y.$on("_refreshSubTable_" + e3, (n2) => {
211
208
  const o2 = n2.propName;
212
209
  if (t2 && t2[e3] && t2[e3].length > 0) {
@@ -217,45 +214,44 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
217
214
  }), y.$on("_refreshChildData_" + e3, (e4) => {
218
215
  !function(e5) {
219
216
  Fe(e5), setTimeout(() => {
220
- oe.value && (oe.value.refreshChildData(E, e5, N.props && N.props.base && true === N.props.base.subPaging), te.value.extraParam.entityMap = H.entity.data);
217
+ oe.value && (oe.value.refreshChildData(L, e5, H.props && H.props.base && true === H.props.base.subPaging), te.value.extraParam.entityMap = A.entity.data);
221
218
  }, 10);
222
219
  }(e4);
223
- }), y.$on(E + "-pickFileDone", (e4) => {
220
+ }), y.$on(L + "-pickFileDone", (e4) => {
224
221
  oe.value.pickFileDone(e4);
225
- }), y.$on(E + "-scanDone", (e4) => {
222
+ }), y.$on(L + "-scanDone", (e4) => {
226
223
  oe.value.scanDone(e4);
227
224
  }), te.value && te.value.configureObj.props.base && te.value.configureObj.props.base.isSafeDelete && ne("setSafeDeleteTableCode", te.value.extraParam.tableName);
228
225
  }), o(() => {
229
- const e3 = N.uuid;
230
- y.$off("_refreshSubTable_" + e3), y.$off("_refreshSubTableHandle_" + e3), y.$off("_refreshChildData_" + e3), y.$off(E + "-pickFileDone"), y.$off(E + "-scanDone");
226
+ const e3 = H.uuid;
227
+ y.$off("_refreshSubTable_" + e3), y.$off("_refreshSubTableHandle_" + e3), y.$off("_refreshChildData_" + e3), y.$off(L + "-pickFileDone"), y.$off(L + "-scanDone");
231
228
  }), function() {
232
229
  const e3 = le();
233
230
  e3 ? re(e3) : (ie(e3), te.value.isPageInfo = false, te.value.subTableData = Me(), ce());
234
231
  }(), $2({ createRow: function() {
235
- return oe.value.createRow(E);
232
+ return oe.value.createRow(L);
236
233
  }, getSelections: function() {
237
- return G.value;
234
+ return V.value;
238
235
  }, getSelectionIds: function() {
239
236
  const e3 = [];
240
- return G.value && G.value.forEach((t2) => {
237
+ return V.value && V.value.forEach((t2) => {
241
238
  e3.push(t2.id ? t2.id : t2.ID ? t2.ID : null);
242
239
  }), e3;
243
240
  }, clearSelections: function() {
244
- G.value = [];
241
+ V.value = [];
245
242
  }, getTableConfigure: function() {
246
- return N;
243
+ return H;
247
244
  }, validatorSunTableListData: function() {
248
245
  return oe.value.validatorSunTableListData();
249
246
  }, getValue: Me, setValue: Fe, getTableSelectOptions: function() {
250
- if (oe.value)
251
- return oe.value.getTableSelectOptions(E);
247
+ if (oe.value) return oe.value.getTableSelectOptions(L);
252
248
  }, dynamicControlTableEdit: function(e3, t2, n2) {
253
249
  oe.value && oe.value.dynamicControlTableEdit(e3, t2, n2);
254
250
  }, doLayout: function(e3) {
255
251
  oe.value && oe.value.doLayout(e3);
256
252
  } }), (e3, t2) => {
257
253
  const n2 = a("super-grid");
258
- return i(), l("div", null, [Z.value ? (i(), s(n2, { key: 0, ref_key: "gridRef", ref: oe, url: u(Y) + "/dsc/commons/sub-table", options: te.value, code: u(E), settings: u(q), onSelect: De, onSelectAll: Ce, onSelectionChange: ye, onCellClick: Pe, onCellDblclick: Ie, onRowClick: Re, onRowDblclick: _e, onHeaderClick: Oe, onFnProhibitToEdit: xe, onChangeGridData: he, onReloadGrid: re, onRefresMainTableFields: Te, onSetSelectOptions: we, onChangeRowsPerPage: Se, onNewOpenGridDialog: u(P), onChangeFormData: ke }, null, 8, ["url", "options", "code", "settings", "onNewOpenGridDialog"])) : r("", true)]);
254
+ return l(), i("div", null, [Z.value ? (l(), u(n2, { key: 0, ref_key: "gridRef", ref: oe, url: r(Y) + "/dsc/commons/sub-table", options: te.value, code: r(L), settings: r(q), onSelect: De, onSelectAll: Ce, onSelectionChange: ye, onCellClick: Pe, onCellDblclick: Re, onRowClick: Ie, onRowDblclick: _e, onHeaderClick: Oe, onFnProhibitToEdit: xe, onChangeGridData: he, onReloadGrid: re, onRefresMainTableFields: Te, onSetSelectOptions: we, onChangeRowsPerPage: Se, onNewOpenGridDialog: r(P), onChangeFormData: ke }, null, 8, ["url", "options", "code", "settings", "onNewOpenGridDialog"])) : s("", true)]);
259
255
  };
260
256
  } });
261
257
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, openBlock as u, createElementBlock as n, unref as i, createBlock as l } from "vue";
1
+ import { defineComponent as e, ref as t, createElementBlock as u, openBlock as n, createBlock as i, unref as l } from "vue";
2
2
  import "agilebuilder-ui";
3
3
  import "agilebuilder-ui/src/utils/request";
4
4
  import "dayjs";
@@ -17,9 +17,8 @@ const a = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }
17
17
  function b(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() {
21
- if (s && "list" === s)
22
- return v.value.refresh();
20
+ return a2({ refresh: function(e3, t2, u2, n2) {
21
+ if (s && "list" === s) return v.value.refresh(e3, t2, u2, n2);
23
22
  }, createRow: function() {
24
23
  return v.value.createRow();
25
24
  }, clearSelections: function() {
@@ -33,20 +32,18 @@ const a = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }
33
32
  }, isDeleteChange: function(e3) {
34
33
  s && "list" === s && v.value.isDeleteChange(e3);
35
34
  }, validatorSunTableListData: function() {
36
- if (s && "form" === s)
37
- return v.value.validatorSunTableListData();
35
+ if (s && "form" === s) return v.value.validatorSunTableListData();
38
36
  }, showMobileSearch: function() {
39
37
  v.value.showMobileSearch();
40
38
  }, getTableSelectOptions: function() {
41
- if (v.value)
42
- return v.value.getTableSelectOptions();
39
+ if (v.value) return v.value.getTableSelectOptions();
43
40
  }, dynamicControlTableEdit: function(e3, t2, u2) {
44
41
  v.value && v.value.dynamicControlTableEdit(e3, t2, u2);
45
42
  }, getTableUuid: function() {
46
43
  return c.configure.uuid;
47
44
  }, doLayout: function(e3) {
48
45
  v.value && v.value.doLayout(e3);
49
- } }), (e3, t2) => (u(), n("div", null, [i(s) && "form" === i(s) ? (u(), l(o, { key: 0, ref_key: "gridRef", ref: v, pageContext: e3.pageContext, configure: f.value, onSetSafeDeleteTableCode: b }, null, 8, ["pageContext", "configure"])) : (u(), l(r, { key: 1, ref_key: "gridRef", ref: v, pageContext: e3.pageContext, configure: f.value, onSetSafeDeleteTableCode: b }, null, 8, ["pageContext", "configure"]))]));
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"]))]));
50
47
  } });
51
48
  export {
52
49
  a as default
@@ -1,14 +1,14 @@
1
- import { defineComponent as e, computed as a, ref as n, onMounted as l, nextTick as t, watch as o, resolveComponent as u, openBlock as i, createElementBlock as d, normalizeClass as c, unref as r, createBlock as p, createCommentVNode as s, normalizeStyle as v, withCtx as f, createElementVNode as g, createVNode as y, toDisplayString as h } from "vue";
1
+ import { defineComponent as e, computed as a, ref as n, onMounted as l, nextTick as t, watch as o, resolveComponent as u, createElementBlock as i, openBlock as d, normalizeClass as c, unref as r, createBlock as p, createCommentVNode as s, normalizeStyle as v, withCtx as f, createElementVNode as g, createVNode as y, toDisplayString as h } from "vue";
2
2
  import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
3
- import { getVariableValue as m, setVariableValue as C } from "../../../../utils/page-helper-util.js";
3
+ import { setVariableValue as m, getVariableValue as C } from "../../../../utils/page-helper-util.js";
4
4
  import { getMenuTreeData as k } from "../../../../utils/tree-utils.js";
5
5
  import { handleAfterInitEvent as V, handleFormEvent as T } from "../../../../utils/events/event-util.js";
6
6
  const b = ["title"], N = e({ __name: "tree-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: N2 }) {
7
7
  var _a, _b;
8
8
  const I = e2, S = I.pageContext.entity ? I.pageContext.entity : {};
9
9
  let _ = x(I.pageContext, I.configure);
10
- const j = a({ get: () => m(S, _), set(e3) {
11
- C(S, _, e3);
10
+ const j = a({ get: () => C(S, _), set(e3) {
11
+ m(S, _, e3);
12
12
  } }), w = n(!!((_b = (_a = I.configure.props) == null ? void 0 : _a.base) == null ? void 0 : _b.lazy)), z = I.configure.runtime ? I.configure.runtime : {}, M = z.style, W = z.class;
13
13
  z.headerStyle;
14
14
  const A = n(null), D = n(z.props ? z.props : {}), E = n({ id: "nodeId", label: "name", children: "children", isLeaf: "leaf", disabled: "disabled", nodeType: "nodeType", iconType: "iconType", iconValue: "iconValue" }), F = n(false), K = n(null), L = n(null), O = n(""), R = n(false);
@@ -54,7 +54,7 @@ const b = ["title"], N = e({ __name: "tree-runtime", props: { pageContext: {}, c
54
54
  A.value.getNode(e3);
55
55
  } }), (e3, a2) => {
56
56
  const n2 = u("el-input"), l2 = u("SuperIcon"), t2 = u("Folder"), o2 = u("el-icon"), x2 = u("el-tree");
57
- return i(), d("div", { class: c(r(W)) }, [D.value.filter ? (i(), p(n2, { key: 0, modelValue: O.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => O.value = e4), style: { width: "240px" }, placeholder: "请输入查询条件" }, null, 8, ["modelValue"])) : s("", true), F.value ? (i(), p(x2, { key: 1, ref_key: "menuTree", ref: A, style: v(r(M)), load: B, data: K.value, props: E.value, "default-expand-all": D.value.defaultExpandAll, "expand-on-click-node": D.value.expandOnClickNode, indent: D.value.retractWidth ? D.value.retractWidth : 18, accordion: D.value.accordion, "show-checkbox": !!D.value.showCheckbox, "highlight-current": "", lazy: w.value, "node-key": "nodeId", "filter-node-method": U, onNodeClick: q }, { default: f(({ node: e4, data: a3 }) => [g("span", { title: e4.label, class: "ellipsis" }, [a3.iconValue ? (i(), p(l2, { key: 0, iconType: a3.iconType, iconValue: a3.iconValue }, null, 8, ["iconType", "iconValue"])) : D.value.iconValue ? (i(), p(l2, { key: 1, iconType: D.value.iconType, iconValue: D.value.iconValue }, null, 8, ["iconType", "iconValue"])) : (i(), p(o2, { key: 2 }, { default: f(() => [y(t2)]), _: 1 })), g("span", null, h(e4.label), 1)], 8, b)]), _: 1 }, 8, ["style", "data", "props", "default-expand-all", "expand-on-click-node", "indent", "accordion", "show-checkbox", "lazy"])) : s("", true)], 2);
57
+ return d(), i("div", { class: c(r(W)) }, [D.value.filter ? (d(), p(n2, { key: 0, modelValue: O.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => O.value = e4), style: { width: "240px" }, placeholder: "请输入查询条件" }, null, 8, ["modelValue"])) : s("", true), F.value ? (d(), p(x2, { key: 1, ref_key: "menuTree", ref: A, style: v(r(M)), load: B, data: K.value, props: E.value, "default-expand-all": D.value.defaultExpandAll, "expand-on-click-node": D.value.expandOnClickNode, indent: D.value.retractWidth ? D.value.retractWidth : 18, accordion: D.value.accordion, "show-checkbox": !!D.value.showCheckbox, "highlight-current": "", lazy: w.value, "node-key": "nodeId", "filter-node-method": U, onNodeClick: q }, { default: f(({ node: e4, data: a3 }) => [g("span", { title: e4.label, class: "ellipsis" }, [a3.iconValue ? (d(), p(l2, { key: 0, iconType: a3.iconType, iconValue: a3.iconValue }, null, 8, ["iconType", "iconValue"])) : D.value.iconValue ? (d(), p(l2, { key: 1, iconType: D.value.iconType, iconValue: D.value.iconValue }, null, 8, ["iconType", "iconValue"])) : (d(), p(o2, { key: 2 }, { default: f(() => [y(t2)]), _: 1 })), g("span", null, h(e4.label), 1)], 8, b)]), _: 1 }, 8, ["style", "data", "props", "default-expand-all", "expand-on-click-node", "indent", "accordion", "show-checkbox", "lazy"])) : s("", true)], 2);
58
58
  };
59
59
  } });
60
60
  export {
@@ -1,4 +1,4 @@
1
- declare const _default: import('vue').DefineComponent<{
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
2
  configure: {
3
3
  type: ObjectConstructor;
4
4
  default: {
@@ -7,7 +7,7 @@ declare const _default: import('vue').DefineComponent<{
7
7
  };
8
8
  selectWidget: ObjectConstructor;
9
9
  indexObj: ObjectConstructor;
10
- }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
10
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
11
11
  configure: {
12
12
  type: ObjectConstructor;
13
13
  default: {
@@ -16,7 +16,7 @@ declare const _default: import('vue').DefineComponent<{
16
16
  };
17
17
  selectWidget: ObjectConstructor;
18
18
  indexObj: ObjectConstructor;
19
- }>>, {
19
+ }>> & Readonly<{}>, {
20
20
  configure: Record<string, any>;
21
- }, {}>;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
22
22
  export default _default;
@@ -1,5 +1,5 @@
1
- import { defineComponent as e, openBlock as t, createElementBlock as r, toDisplayString as n } from "vue";
2
- const o = { style: { "text-align": "center", color: "red" } }, c = e({ __name: "error-render", props: { configure: { type: Object, default: { name: "未知" } }, selectWidget: Object, indexObj: Object }, setup: (e2) => (c2, a) => (t(), r("div", o, " 不能识别的组件类型【" + n(e2.configure.name) + "】 ", 1)) });
1
+ import { defineComponent as e, createElementBlock as t, openBlock as r, toDisplayString as n } from "vue";
2
+ const o = { style: { "text-align": "center", color: "red" } }, c = e({ __name: "error-render", props: { configure: { type: Object, default: { name: "未知" } }, selectWidget: Object, indexObj: Object }, setup: (e2) => (c2, a) => (r(), t("div", o, " 不能识别的组件类型【" + n(e2.configure.name) + "】 ", 1)) });
3
3
  export {
4
4
  c as default
5
5
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as e, computed as t, ref as l, onMounted as o, nextTick as n, resolveComponent as a, openBlock as u, createBlock as i, normalizeClass as r, unref as s, normalizeStyle as p, withCtx as c, createElementBlock as f, toDisplayString as g, createCommentVNode as v, createVNode as d, Fragment as m, renderList as h } from "vue";
2
- import { getVariableValue as y, setVariableValue as x, getOptionDatasFromPage as b, monitorFieldChange as C, autoSetAfterSelect as k, queryOptionDatasources as _ } from "../../../../utils/page-helper-util.js";
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
3
  import { getFormModelFields as R } from "../../../../utils/page-init-util.js";
4
4
  import { handleFormEvent as S, handleAfterInitEvent as j } from "../../../../utils/events/event-util.js";
5
5
  import { $t as I } from "../../../../utils/i18n-util.js";
@@ -7,17 +7,15 @@ const V = e({ __name: "checkbox-runtime", props: { pageContext: {}, configure: {
7
7
  const w = e2, z = w.pageContext.entity ? w.pageContext.entity : {};
8
8
  let D = R(w.pageContext, w.configure);
9
9
  const O = t({ get() {
10
- let e3 = y(z, D);
10
+ let e3 = x(z, D);
11
11
  return e3 && "string" == typeof e3 && (e3 = e3.split(",")), e3;
12
12
  }, set(e3) {
13
- e3 && e3.length > 0 && (e3 = e3.join(",")), x(z, D, e3);
13
+ e3 && e3.length > 0 && (e3 = e3.join(",")), y(z, D, e3);
14
14
  } }), A = w.configure.runtime ? w.configure.runtime : {}, M = A.style, P = A.class, E = A.headerStyle, F = A.titleExceedStyle, T = l(A.props ? A.props : {}), U = l(T.value.options ? T.value.options : []), W = b(w.pageContext, w.configure);
15
15
  W.length > 0 && (U.value = W);
16
16
  const q = w.configure.props && w.configure.props.dataOrigin ? w.configure.props.dataOrigin : {}, B = q.optionValueSetType;
17
17
  let G = [];
18
- if (("dynamicData" == B || "dynamicData" == B || "service" == B) && q.autoSets)
19
- for (let e3 of q.autoSets)
20
- e3.source && G.push(e3);
18
+ if (("dynamicData" == B || "dynamicData" == B || "service" == B) && q.autoSets) for (let e3 of q.autoSets) e3.source && G.push(e3);
21
19
  w.configure && w.configure.props && w.configure.props.base && w.configure.props.base.optionProp && G.push({ source: "label", target: w.configure.props.base.optionProp }), T.value.changeMethod = function(e3) {
22
20
  if (G.length > -1) {
23
21
  let t2 = null;
@@ -41,7 +39,7 @@ const V = e({ __name: "checkbox-runtime", props: { pageContext: {}, configure: {
41
39
  U.value = e3 || [];
42
40
  } }), (e3, t2) => {
43
41
  const l2 = a("el-checkbox"), o2 = a("el-checkbox-group"), n2 = a("el-form-item");
44
- return u(), i(n2, { ref_key: "formItemRef", ref: K, class: r(s(P)), "label-width": T.value.labelWidth, style: p(s(M)) }, { label: c(() => [T.value.tittleShow ? (u(), f("div", { key: 0, ref_key: "titleRef", ref: N, style: p({ ...s(E), ...s(F) }) }, g(s(I)(T.value.title)), 5)) : v("", true)]), default: c(() => [d(o2, { ref_key: "componentRef", ref: L, disabled: "disabled" === T.value.state, size: T.value.size, onChange: T.value.changeMethod, modelValue: O.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => O.value = e4) }, { default: c(() => [(u(true), f(m, null, h(U.value, (t3) => (u(), i(l2, { key: t3.value, value: t3.value, label: t3.label, onClick: (l3) => s(S)(t3.value, e3.pageContext, e3.configure, "click", { values: O.value }) }, null, 8, ["value", "label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 1 }, 8, ["class", "label-width", "style"]);
42
+ return i(), u(n2, { ref_key: "formItemRef", ref: K, class: s(p(P)), "label-width": T.value.labelWidth, style: r(p(M)) }, { label: c(() => [T.value.tittleShow ? (i(), g("div", { key: 0, ref_key: "titleRef", ref: N, style: r({ ...p(E), ...p(F) }) }, h(p(I)(T.value.title)), 5)) : m("", true)]), default: c(() => [f(o2, { ref_key: "componentRef", ref: L, disabled: "disabled" === T.value.state, size: T.value.size, onChange: T.value.changeMethod, modelValue: O.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => O.value = e4) }, { default: c(() => [(i(true), g(v, null, d(U.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: O.value }) }, null, 8, ["value", "label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 1 }, 8, ["class", "label-width", "style"]);
45
43
  };
46
44
  } });
47
45
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, computed as l, resolveComponent as r, openBlock as t, createElementBlock as p, Fragment as o, createBlock as u, unref as a, isRef as i, createCommentVNode as n } from "vue";
1
+ import { defineComponent as e, computed as l, resolveComponent as r, createElementBlock as t, openBlock as p, Fragment as o, createBlock as u, createCommentVNode as a, unref as i, isRef as n } from "vue";
2
2
  import { formatVariableValue as s, setVariableValue as y, getVariableValue as f } from "../../../../utils/page-helper-util.js";
3
3
  const x = e({ __name: "title-suffix-element", props: { pageContext: {}, property: {} }, setup(e2) {
4
4
  const x2 = e2, c = x2.pageContext.entity;
@@ -6,8 +6,7 @@ const x = e({ __name: "title-suffix-element", props: { pageContext: {}, property
6
6
  if (x2.property.prefixPro && x2.property.prefixPro.startsWith("${")) {
7
7
  let e3 = x2.property.prefixPro;
8
8
  e3 = e3.substring(2, e3.length - 1), d = e3.split(".");
9
- } else
10
- d = [];
9
+ } else d = [];
11
10
  if (d.length > 0 && x2.property.prefixDefault) {
12
11
  const e3 = x2.property.prefixDefault;
13
12
  let l2 = s(x2.pageContext, e3);
@@ -28,11 +27,10 @@ const x = e({ __name: "title-suffix-element", props: { pageContext: {}, property
28
27
  l2 || (l2 = []), Array.isArray(l2) || (l2 = [l2]);
29
28
  const r2 = l2.indexOf(h);
30
29
  e3 ? -1 == r2 && l2.push(h) : r2 > -1 && l2.splice(r2, 1), y(c, d, l2);
31
- } else
32
- y(c, d, e3);
30
+ } else y(c, d, e3);
33
31
  } })), (e3, l2) => {
34
32
  const s2 = r("el-radio"), y2 = r("el-checkbox");
35
- return t(), p(o, null, ["radio" === e3.property.prefixType ? (t(), u(s2, { key: 0, value: e3.property.prefixValue, label: e3.property.title, modelValue: a(b), "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => i(b) ? b.value = e4 : b = e4) }, null, 8, ["value", "label", "modelValue"])) : n("", true), "checkbox" === e3.property.prefixType ? (t(), u(y2, { key: 1, label: e3.property.title, value: e3.property.prefixValue, modelValue: a(b), "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => i(b) ? b.value = e4 : b = e4) }, null, 8, ["label", "value", "modelValue"])) : n("", true)], 64);
33
+ return p(), t(o, null, ["radio" === e3.property.prefixType ? (p(), u(s2, { key: 0, value: e3.property.prefixValue, label: e3.property.title, modelValue: i(b), "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => n(b) ? b.value = e4 : b = e4) }, null, 8, ["value", "label", "modelValue"])) : a("", true), "checkbox" === e3.property.prefixType ? (p(), u(y2, { key: 1, label: e3.property.title, value: e3.property.prefixValue, modelValue: i(b), "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => n(b) ? b.value = e4 : b = e4) }, null, 8, ["label", "value", "modelValue"])) : a("", true)], 64);
36
34
  };
37
35
  } });
38
36
  export {
@@ -1,6 +1,6 @@
1
- import { defineComponent as e, computed as t, ref as o, onMounted as a, nextTick as n, onUnmounted as i, resolveComponent as u, openBlock as l, createBlock as r, normalizeClass as s, unref as p, normalizeStyle as g, withCtx as c, createElementBlock as m, toDisplayString as f, createCommentVNode as d, resolveDynamicComponent as v } from "vue";
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 g, normalizeClass as c, unref as m, withCtx as f, resolveDynamicComponent as d, toDisplayString as v } from "vue";
2
2
  import { getFormModelFields as C } from "../../../../utils/page-init-util.js";
3
- import { getVariableValue as x, setVariableValue as y, formatVariableValue as b, getFormPropName as h, setVariableValueWithProp as j } from "../../../../utils/page-helper-util.js";
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";
@@ -9,12 +9,10 @@ import { getAdditionalParamMap as E } from "../../../../utils/events/standard-ev
9
9
  import { $t as w } from "../../../../utils/i18n-util.js";
10
10
  import S from "../../../../utils/eventBus.js";
11
11
  const U = { 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 }) {
12
- const q = e2, z = q.pageContext.entity ? q.pageContext.entity : {}, F = C(q.pageContext, q.configure), G = t({ get: () => x(z, F), set(e3) {
13
- y(z, F, e3);
12
+ const q = e2, z = q.pageContext.entity ? q.pageContext.entity : {}, F = C(q.pageContext, q.configure), G = t({ get: () => y(z, F), set(e3) {
13
+ x(z, F, e3);
14
14
  } }), H = q.configure.runtime ? q.configure.runtime : {}, I = H.style, P = H.class, B = H.headerStyle, W = o(H.props ? H.props : {}), A = function(e3) {
15
- if (e3)
16
- for (let t2 in e3)
17
- e3.value[t2] = b(q.pageContext, t2);
15
+ if (e3) for (let t2 in e3) e3.value[t2] = b(q.pageContext, t2);
18
16
  }(H.customParams ? H.customParams : {}), J = E(q.pageContext), K = o(q.configure.props && q.configure.props.base ? q.configure.props.base.name : null);
19
17
  function L(e3, t2) {
20
18
  j(z, e3, t2);
@@ -37,7 +35,7 @@ const U = { key: 0, style: { width: "100%", height: "100%" } }, O = { key: 1, st
37
35
  return a(() => {
38
36
  S.$on(T.value + "-scanDone", (e3) => {
39
37
  const t2 = e3.result;
40
- y(z, F, t2);
38
+ x(z, F, t2);
41
39
  }), S.$on(T.value + "-pickFileDone", (e3) => {
42
40
  X.value.pickFileDone(e3);
43
41
  }), n(() => {
@@ -50,7 +48,7 @@ const U = { key: 0, style: { width: "100%", height: "100%" } }, O = { key: 1, st
50
48
  return X.value;
51
49
  } }), (e3, t2) => {
52
50
  const o2 = u("el-form-item");
53
- return W.value.tittleShow ? (l(), r(o2, { key: 0, ref_key: "formItemRef", ref: Y, required: W.value.required, class: s(p(P)), "label-width": W.value.labelWidth, style: g(p(I)) }, { label: c(() => [W.value.tittleShow ? (l(), m("div", { key: 0, ref_key: "titleRef", ref: Z, style: g({ ...p(B) }) }, f(p(w)(W.value.title)), 5)) : d("", true)]), default: c(() => [K.value ? (l(), m("div", U, [(l(), r(v(K.value), { ref_key: "customRef", ref: X, size: W.value.size, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: p(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": p(A), modelValue: G.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => G.value = e4), disabled: "disabled" === W.value.state, "additional-param-map": p(J), "component-id": T.value, onSetEntityValue: L, onSetCustomRules: M, onRestoreGridEdit: N, onHandleEvent: ee, onChange: t2[1] || (t2[1] = (t3) => p(k)(G.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["size", "entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : d("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : K.value ? (l(), m("div", O, [(l(), r(v(K.value), { ref_key: "customRef", ref: X, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: p(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": p(A), modelValue: G.value, "onUpdate:modelValue": t2[2] || (t2[2] = (e4) => G.value = e4), disabled: "disabled" === W.value.state, "additional-param-map": p(J), "component-id": T.value, onSetEntityValue: L, onSetCustomRules: M, onRestoreGridEdit: N, onHandleEvent: ee, onChange: t2[3] || (t2[3] = (t3) => p(k)(G.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : d("", true);
51
+ return W.value.tittleShow ? (p(), l(o2, { key: 0, ref_key: "formItemRef", ref: Y, required: W.value.required, class: c(m(P)), "label-width": W.value.labelWidth, style: g(m(I)) }, { label: f(() => [W.value.tittleShow ? (p(), r("div", { key: 0, ref_key: "titleRef", ref: Z, style: g({ ...m(B) }) }, v(m(w)(W.value.title)), 5)) : s("", true)]), default: f(() => [K.value ? (p(), r("div", U, [(p(), l(d(K.value), { ref_key: "customRef", ref: X, 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(A), modelValue: G.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => G.value = e4), disabled: "disabled" === W.value.state, "additional-param-map": m(J), "component-id": T.value, onSetEntityValue: L, onSetCustomRules: M, onRestoreGridEdit: N, onHandleEvent: ee, onChange: t2[1] || (t2[1] = (t3) => m(k)(G.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"])) : K.value ? (p(), r("div", O, [(p(), l(d(K.value), { ref_key: "customRef", ref: X, 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(A), modelValue: G.value, "onUpdate:modelValue": t2[2] || (t2[2] = (e4) => G.value = e4), disabled: "disabled" === W.value.state, "additional-param-map": m(J), "component-id": T.value, onSetEntityValue: L, onSetCustomRules: M, onRestoreGridEdit: N, onHandleEvent: ee, onChange: t2[3] || (t2[3] = (t3) => m(k)(G.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true);
54
52
  };
55
53
  } });
56
54
  export {