super-page-runtime 2.1.933 → 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 (183) hide show
  1. package/dist/es/_virtual/_plugin-vue_export-helper.js +5 -7
  2. package/dist/es/assets/chart-themes/theme1.js +2 -6
  3. package/dist/es/assets/chart-themes/theme2.js +2 -6
  4. package/dist/es/assets/chart-themes/theme3.js +2 -6
  5. package/dist/es/components/runtime/index.d.ts +2 -1
  6. package/dist/es/components/runtime/utils/api/api-util.js +4 -7
  7. package/dist/es/components/runtime/utils/api/page-expose-util.js +137 -435
  8. package/dist/es/components/runtime/utils/assemblys-config.js +11 -367
  9. package/dist/es/components/runtime/utils/barcode-util.js +9 -33
  10. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +122 -306
  11. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +29 -68
  12. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +68 -152
  13. package/dist/es/components/runtime/utils/charts/chart-radar-util.js +46 -124
  14. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +36 -99
  15. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -0
  16. package/dist/es/components/runtime/utils/charts/chart-util.js +226 -485
  17. package/dist/es/components/runtime/utils/common-util.js +76 -153
  18. package/dist/es/components/runtime/utils/eventBus.js +3 -9
  19. package/dist/es/components/runtime/utils/events/event-util.js +343 -727
  20. package/dist/es/components/runtime/utils/events/print-label.js +72 -140
  21. package/dist/es/components/runtime/utils/events/standard-event.d.ts +2 -2
  22. package/dist/es/components/runtime/utils/events/standard-event.js +810 -2299
  23. package/dist/es/components/runtime/utils/events/validator-util.js +222 -552
  24. package/dist/es/components/runtime/utils/form/date-shortcuts.js +28 -88
  25. package/dist/es/components/runtime/utils/form/scan-util.js +61 -162
  26. package/dist/es/components/runtime/utils/global-refs.js +53 -84
  27. package/dist/es/components/runtime/utils/i18n-util.js +11 -20
  28. package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +2 -0
  29. package/dist/es/components/runtime/utils/interfaces/page-design-types.js +2 -7
  30. package/dist/es/components/runtime/utils/page-helper-util.js +278 -658
  31. package/dist/es/components/runtime/utils/page-init-util.d.ts +6 -1
  32. package/dist/es/components/runtime/utils/page-init-util.js +132 -370
  33. package/dist/es/components/runtime/utils/page-permission-util.js +22 -531
  34. package/dist/es/components/runtime/utils/page-store.d.ts +2 -2
  35. package/dist/es/components/runtime/utils/page-store.js +8 -12
  36. package/dist/es/components/runtime/utils/store-util.js +9 -13
  37. package/dist/es/components/runtime/utils/store.js +2 -2
  38. package/dist/es/components/runtime/utils/table-utils.js +45 -84
  39. package/dist/es/components/runtime/utils/tree-utils.js +17 -37
  40. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +2 -2
  41. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +19 -75
  42. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +2 -2
  43. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +14 -46
  44. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +2 -2
  45. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +36 -132
  46. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +2 -2
  47. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +4 -18
  48. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +2 -2
  49. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +17 -107
  50. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +2 -2
  51. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +50 -198
  52. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +12 -42
  53. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +2 -2
  54. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +7 -60
  55. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +2 -2
  56. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +52 -169
  57. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +2 -2
  58. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +44 -0
  59. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +4 -0
  60. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +2 -2
  61. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +32 -107
  62. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +2 -2
  63. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +43 -164
  64. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +2 -2
  65. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +32 -115
  66. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +2 -2
  67. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +32 -116
  68. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +34 -1
  69. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +253 -449
  70. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +4 -42
  71. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +2 -2
  72. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +8 -62
  73. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.js +2 -2
  74. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +37 -231
  75. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +2 -2
  76. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +13 -62
  77. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +2 -2
  78. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +2 -2
  79. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +197 -510
  80. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +4 -4
  81. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +29 -139
  82. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +2 -2
  83. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +6 -6
  84. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +21 -125
  85. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +2 -2
  86. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +6 -6
  87. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +16 -102
  88. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +2 -2
  89. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +2 -2
  90. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +18 -81
  91. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +2 -2
  92. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +17 -82
  93. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +2 -2
  94. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +14 -86
  95. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +2 -2
  96. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +21 -79
  97. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +2 -2
  98. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +16 -61
  99. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +2 -2
  100. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +10 -37
  101. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +2 -2
  102. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +38 -127
  103. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +2 -2
  104. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +28 -76
  105. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +2 -2
  106. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +61 -178
  107. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +302 -803
  108. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +2 -2
  109. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +249 -594
  110. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +2 -2
  111. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +2 -2
  112. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +40 -115
  113. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +2 -2
  114. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +56 -215
  115. package/dist/es/components/runtime/views/assemblys/error-render.vue.d.ts +4 -4
  116. package/dist/es/components/runtime/views/assemblys/error-render.vue.js +3 -21
  117. package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +2 -2
  118. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +2 -2
  119. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +42 -154
  120. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +34 -98
  121. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +2 -2
  122. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +2 -2
  123. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +52 -200
  124. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +2 -2
  125. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +66 -239
  126. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +2 -2
  127. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +31 -104
  128. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +2 -2
  129. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +21 -59
  130. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +2 -2
  131. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +51 -173
  132. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +2 -2
  133. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +22 -103
  134. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +2 -2
  135. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +57 -249
  136. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +2 -2
  137. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +32 -174
  138. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +2 -2
  139. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +28 -107
  140. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +4 -4
  141. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +13 -50
  142. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +2 -2
  143. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +61 -189
  144. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +2 -2
  145. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +87 -244
  146. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +2 -2
  147. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +77 -261
  148. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +2 -2
  149. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +13 -57
  150. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +2 -2
  151. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +30 -155
  152. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +2 -2
  153. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +40 -129
  154. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +2 -2
  155. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +22 -107
  156. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.d.ts +17 -0
  157. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +97 -0
  158. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +4 -0
  159. package/dist/es/components/runtime/views/assemblys/object-render.vue.d.ts +1 -1
  160. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +125 -254
  161. package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +2 -2
  162. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +2 -2
  163. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +18 -46
  164. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +2 -2
  165. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +21 -49
  166. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +2 -2
  167. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +20 -58
  168. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +2 -2
  169. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +16 -53
  170. package/dist/es/components/runtime/views/home-chart.vue.d.ts +23 -0
  171. package/dist/es/components/runtime/views/home-chart.vue.js +36 -0
  172. package/dist/es/components/runtime/views/home-chart.vue2.js +4 -0
  173. package/dist/es/components/runtime/views/super-page-dialog.vue.d.ts +3 -3
  174. package/dist/es/components/runtime/views/super-page-dialog.vue.js +20 -134
  175. package/dist/es/components/runtime/views/super-page-dialog.vue2.js +2 -2
  176. package/dist/es/components/runtime/views/super-page.vue.d.ts +15 -6
  177. package/dist/es/components/runtime/views/super-page.vue.js +222 -708
  178. package/dist/es/components/runtime/views/super-page.vue2.js +2 -2
  179. package/dist/es/i18n/langs/cn.js +2 -55
  180. package/dist/es/i18n/langs/en.js +2 -55
  181. package/dist/es/index.d.ts +2 -2
  182. package/dist/es/index.js +6 -4
  183. package/package.json +3 -2
@@ -1,133 +1,44 @@
1
- import { defineComponent, ref, computed, onMounted, nextTick, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, Fragment, renderList, createTextVNode } from "vue";
2
- import { getFormModelFields } from "../../../../utils/page-init-util.js";
3
- import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
4
- import { handleAfterInitEvent, handleFormEvent } from "../../../../utils/events/event-util.js";
5
- import { $t } from "../../../../utils/i18n-util.js";
6
- const _sfc_main = /* @__PURE__ */ defineComponent({
7
- __name: "tag-runtime",
8
- props: {
9
- pageContext: {},
10
- configure: {}
11
- },
12
- setup(__props) {
13
- const props = __props;
14
- const modelFields = getFormModelFields(props.pageContext, props.configure);
15
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
16
- const runtimeStyle = runtimeInfo.style;
17
- const runtimeClass = runtimeInfo.class;
18
- const headerStyle = runtimeInfo.headerStyle;
19
- const titleExceedStyle = runtimeInfo.titleExceedStyle;
20
- const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
21
- let formatting = designProperty.value.formatting;
22
- const entity = props.pageContext.entity ? props.pageContext.entity : {};
23
- const dynamicValues = computed(() => {
24
- let resultValue = getVariableValue(entity, modelFields);
25
- if (resultValue === void 0 || resultValue === null) {
26
- resultValue = [];
27
- }
28
- if (!Array.isArray(resultValue)) {
29
- resultValue = (resultValue + "").split(",");
30
- }
31
- const options = [];
32
- let no = 1;
33
- for (const val of resultValue) {
34
- if (val === void 0 || val === null || val === "") {
35
- continue;
36
- }
37
- const o = {
38
- value: val,
39
- label: val
40
- };
41
- if (formatting) {
42
- o.label = formatting.replace(/\${value}/g, o.value).replace(/\${no}/g, no);
43
- }
44
- options.push(o);
45
- no++;
46
- }
47
- return options;
48
- });
49
- function closeTag($event, tag) {
50
- if (designProperty.value.closable) {
51
- let resultValue = getVariableValue(entity, modelFields);
52
- if (resultValue === void 0 || resultValue === null) {
53
- resultValue = [];
54
- }
55
- const isArray = Array.isArray(resultValue);
56
- if (!isArray) {
57
- resultValue = (resultValue + "").split(",");
58
- }
59
- const index = resultValue.indexOf(tag.value);
60
- if (index > -1) {
61
- resultValue.splice(index, 1);
62
- }
63
- if (!isArray) {
64
- resultValue = resultValue.join(",");
65
- }
66
- setVariableValue(entity, modelFields, resultValue);
67
- }
68
- handleFormEvent($event, props.pageContext, props.configure, "remove");
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as i, resolveComponent as o, createBlock as n, openBlock as r, normalizeStyle as u, normalizeClass as s, unref as p, withCtx as c, createElementBlock as f, Fragment as g, renderList as m, createTextVNode as v, toDisplayString as y, createCommentVNode as d } from "vue";
2
+ import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
3
+ import { getVariableValue as C, setVariableValue as b } from "../../../../utils/page-helper-util.js";
4
+ import { handleAfterInitEvent as h, handleFormEvent as k } from "../../../../utils/events/event-util.js";
5
+ import { $t as _ } from "../../../../utils/i18n-util.js";
6
+ const j = e({ __name: "tag-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
7
+ const j2 = e2, A = x(j2.pageContext, j2.configure), R = j2.configure.runtime ? j2.configure.runtime : {}, q = R.style, w = R.class, z = R.headerStyle, S = R.titleExceedStyle, I = t(R.props ? R.props : {});
8
+ let $ = I.value.formatting;
9
+ const D = j2.pageContext.entity ? j2.pageContext.entity : {}, E = l(() => {
10
+ let e3 = C(D, A);
11
+ null == e3 && (e3 = []), Array.isArray(e3) || (e3 = (e3 + "").split(","));
12
+ const t2 = [];
13
+ let l2 = 1;
14
+ for (const a2 of e3) {
15
+ if (null == a2 || "" === a2) continue;
16
+ const e4 = { value: a2, label: a2 };
17
+ $ && (e4.label = $.replace(/\${value}/g, e4.value).replace(/\${no}/g, l2)), t2.push(e4), l2++;
69
18
  }
70
- const formItemRef = ref(null);
71
- const titleRef = ref(null);
72
- onMounted(() => {
73
- nextTick(() => {
74
- const value = dynamicValues.value;
75
- handleAfterInitEvent(
76
- value,
77
- props.pageContext,
78
- props.configure,
79
- {
80
- formItemRef: formItemRef.value,
81
- titleRef: titleRef.value,
82
- value,
83
- entity: props.pageContext.entity.data,
84
- pageData: props.pageContext.entity.page
85
- }
86
- );
87
- });
19
+ return t2;
20
+ });
21
+ const O = t(null), W = t(null);
22
+ return a(() => {
23
+ i(() => {
24
+ const e3 = E.value;
25
+ h(e3, j2.pageContext, j2.configure, { formItemRef: O.value, titleRef: W.value, value: e3, entity: j2.pageContext.entity.data, pageData: j2.pageContext.entity.page });
88
26
  });
89
- return (_ctx, _cache) => {
90
- const _component_el_tag = resolveComponent("el-tag");
91
- const _component_el_form_item = resolveComponent("el-form-item");
92
- return openBlock(), createBlock(_component_el_form_item, {
93
- ref_key: "formItemRef",
94
- ref: formItemRef,
95
- required: designProperty.value.required,
96
- class: normalizeClass(unref(runtimeClass)),
97
- "label-width": designProperty.value.labelWidth,
98
- style: normalizeStyle(unref(runtimeStyle))
99
- }, {
100
- label: withCtx(() => [
101
- designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
102
- key: 0,
103
- ref_key: "titleRef",
104
- ref: titleRef,
105
- style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
106
- }, toDisplayString(unref($t)(designProperty.value.title)), 5)) : createCommentVNode("", true)
107
- ]),
108
- default: withCtx(() => [
109
- (openBlock(true), createElementBlock(Fragment, null, renderList(dynamicValues.value, (tag) => {
110
- return openBlock(), createBlock(_component_el_tag, {
111
- key: tag,
112
- size: designProperty.value.size,
113
- closable: designProperty.value.closable,
114
- type: designProperty.value.type,
115
- style: { "margin-right": "4px" },
116
- onClose: ($event) => closeTag($event, tag),
117
- onClick: _cache[0] || (_cache[0] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
118
- }, {
119
- default: withCtx(() => [
120
- createTextVNode(toDisplayString(tag.label), 1)
121
- ]),
122
- _: 2
123
- }, 1032, ["size", "closable", "type", "onClose"]);
124
- }), 128))
125
- ]),
126
- _: 1
127
- }, 8, ["required", "class", "label-width", "style"]);
128
- };
129
- }
130
- });
27
+ }), (e3, t2) => {
28
+ const l2 = o("el-tag"), a2 = o("el-form-item");
29
+ return r(), n(a2, { ref_key: "formItemRef", ref: O, required: I.value.required, class: s(p(w)), "label-width": I.value.labelWidth, style: u(p(q)) }, { label: c(() => [I.value.tittleShow ? (r(), f("div", { key: 0, ref_key: "titleRef", ref: W, style: u({ ...p(z), ...p(S) }) }, y(p(_)(I.value.title)), 5)) : d("", true)]), default: c(() => [(r(true), f(g, null, m(E.value, (a3) => (r(), n(l2, { key: a3, size: I.value.size, closable: I.value.closable, type: I.value.type, style: { "margin-right": "4px" }, onClose: (e4) => function(e5, t3) {
30
+ if (I.value.closable) {
31
+ let e6 = C(D, A);
32
+ null == e6 && (e6 = []);
33
+ const l3 = Array.isArray(e6);
34
+ l3 || (e6 = (e6 + "").split(","));
35
+ const a4 = e6.indexOf(t3.value);
36
+ a4 > -1 && e6.splice(a4, 1), l3 || (e6 = e6.join(",")), b(D, A, e6);
37
+ }
38
+ k(e5, j2.pageContext, j2.configure, "remove");
39
+ }(e4, a3), onClick: t2[0] || (t2[0] = (t3) => p(k)(t3, e3.pageContext, e3.configure, "click")) }, { default: c(() => [v(y(a3.label), 1)]), _: 2 }, 1032, ["size", "closable", "type", "onClose"]))), 128))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
40
+ };
41
+ } });
131
42
  export {
132
- _sfc_main as default
43
+ j as default
133
44
  };
@@ -1,4 +1,4 @@
1
- import _sfc_main from "./textarea-runtime.vue2.js";
1
+ import e from "./textarea-runtime.vue2.js";
2
2
  export {
3
- _sfc_main as default
3
+ e as default
4
4
  };
@@ -1,110 +1,25 @@
1
- import { defineComponent, computed, ref, onMounted, nextTick, resolveComponent, openBlock, createElementBlock, createVNode, normalizeClass, unref, normalizeStyle, withCtx, createBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode } from "vue";
2
- import { getFormModelFields } from "../../../../utils/page-init-util.js";
3
- import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
4
- import { handleAfterInitEvent, handleFormEvent } from "../../../../utils/events/event-util.js";
5
- import _sfc_main$1 from "../common/title-suffix-element.vue.js";
6
- import { $t } from "../../../../utils/i18n-util.js";
7
- const _sfc_main = /* @__PURE__ */ defineComponent({
8
- __name: "textarea-runtime",
9
- props: {
10
- pageContext: {},
11
- configure: {}
12
- },
13
- setup(__props) {
14
- const props = __props;
15
- const entity = props.pageContext.entity ? props.pageContext.entity : {};
16
- let dynamicFields = getFormModelFields(props.pageContext, props.configure);
17
- const dynamicModelMethod = computed({
18
- get() {
19
- return getVariableValue(entity, dynamicFields);
20
- },
21
- set(value) {
22
- setVariableValue(entity, dynamicFields, value);
23
- }
1
+ import { defineComponent as e, computed as t, ref as l, onMounted as a, nextTick as o, resolveComponent as n, createElementBlock as r, openBlock as u, createVNode as i, normalizeStyle as p, normalizeClass as s, unref as f, withCtx as m, createCommentVNode as g, createBlock as c, Fragment as d, createTextVNode as v, toDisplayString as x } from "vue";
2
+ import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
3
+ import { setVariableValue as h, getVariableValue as C } from "../../../../utils/page-helper-util.js";
4
+ import { handleAfterInitEvent as w, handleFormEvent as b } from "../../../../utils/events/event-util.js";
5
+ import k from "../common/title-suffix-element.vue.js";
6
+ import { $t as R } from "../../../../utils/i18n-util.js";
7
+ const _ = e({ __name: "textarea-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
8
+ const _2 = e2, j = _2.pageContext.entity ? _2.pageContext.entity : {};
9
+ let I = y(_2.pageContext, _2.configure);
10
+ const q = t({ get: () => C(j, I), set(e3) {
11
+ h(j, I, e3);
12
+ } }), z = _2.configure.runtime ? _2.configure.runtime : {}, S = l(z.props ? z.props : {}), V = z.style, B = z.class, D = z.headerStyle, E = z.titleExceedStyle, F = l(null), L = l(null), N = l(null);
13
+ return a(() => {
14
+ o(() => {
15
+ const e3 = q.value;
16
+ w(e3, _2.pageContext, _2.configure, { formItemRef: F.value, componentRef: L.value, titleRef: N.value, value: e3, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
24
17
  });
25
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
26
- const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
27
- const runtimeStyle = runtimeInfo.style;
28
- const runtimeClass = runtimeInfo.class;
29
- const headerStyle = runtimeInfo.headerStyle;
30
- const titleExceedStyle = runtimeInfo.titleExceedStyle;
31
- const formItemRef = ref(null);
32
- const componentRef = ref(null);
33
- const titleRef = ref(null);
34
- onMounted(() => {
35
- nextTick(() => {
36
- const value = dynamicModelMethod.value;
37
- handleAfterInitEvent(
38
- value,
39
- props.pageContext,
40
- props.configure,
41
- {
42
- formItemRef: formItemRef.value,
43
- componentRef: componentRef.value,
44
- titleRef: titleRef.value,
45
- value,
46
- entity: props.pageContext.entity.data,
47
- pageData: props.pageContext.entity.page
48
- }
49
- );
50
- });
51
- });
52
- return (_ctx, _cache) => {
53
- const _component_el_input = resolveComponent("el-input");
54
- const _component_el_form_item = resolveComponent("el-form-item");
55
- return openBlock(), createElementBlock("div", null, [
56
- createVNode(_component_el_form_item, {
57
- ref_key: "formItemRef",
58
- ref: formItemRef,
59
- required: designProperty.value.required ? true : false,
60
- class: normalizeClass(unref(runtimeClass)),
61
- "label-width": designProperty.value.labelWidth,
62
- style: normalizeStyle(unref(runtimeStyle))
63
- }, {
64
- label: withCtx(() => [
65
- designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
66
- key: 0,
67
- ref_key: "titleRef",
68
- ref: titleRef,
69
- style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
70
- }, [
71
- designProperty.value.prefixType ? (openBlock(), createBlock(_sfc_main$1, {
72
- key: 0,
73
- pageContext: _ctx.pageContext,
74
- property: designProperty.value
75
- }, null, 8, ["pageContext", "property"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
76
- createTextVNode(toDisplayString(unref($t)(designProperty.value.title)), 1)
77
- ], 64))
78
- ], 4)) : createCommentVNode("", true)
79
- ]),
80
- default: withCtx(() => [
81
- createVNode(_component_el_input, {
82
- ref_key: "componentRef",
83
- ref: componentRef,
84
- disabled: designProperty.value.state === "disabled",
85
- readonly: designProperty.value.state === "readonly",
86
- size: designProperty.value.size,
87
- clearable: designProperty.value.clearable,
88
- placeholder: designProperty.value.placeholder,
89
- modelValue: dynamicModelMethod.value,
90
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
91
- rows: designProperty.value.rows ? designProperty.value.rows : 2,
92
- maxlength: designProperty.value.maxLength,
93
- "show-word-limit": designProperty.value.showInputNum,
94
- type: "textarea",
95
- onInput: _cache[1] || (_cache[1] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "input")),
96
- onChange: _cache[2] || (_cache[2] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
97
- onBlur: _cache[3] || (_cache[3] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "blur")),
98
- onFocus: _cache[4] || (_cache[4] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "focus")),
99
- onClick: _cache[5] || (_cache[5] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
100
- }, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "show-word-limit"])
101
- ]),
102
- _: 1
103
- }, 8, ["required", "class", "label-width", "style"])
104
- ]);
105
- };
106
- }
107
- });
18
+ }), (e3, t2) => {
19
+ const l2 = n("el-input"), a2 = n("el-form-item");
20
+ return u(), r("div", null, [i(a2, { ref_key: "formItemRef", ref: F, required: !!S.value.required, class: s(f(B)), "label-width": S.value.labelWidth, style: p(f(V)) }, { label: m(() => [S.value.tittleShow ? (u(), r("div", { key: 0, ref_key: "titleRef", ref: N, style: p({ ...f(D), ...f(E) }) }, [S.value.prefixType ? (u(), c(k, { key: 0, pageContext: e3.pageContext, property: S.value }, null, 8, ["pageContext", "property"])) : (u(), r(d, { key: 1 }, [v(x(f(R)(S.value.title)), 1)], 64))], 4)) : g("", true)]), default: m(() => [i(l2, { ref_key: "componentRef", ref: L, disabled: "disabled" === S.value.state, readonly: "readonly" === S.value.state, size: S.value.size, clearable: S.value.clearable, placeholder: S.value.placeholder, modelValue: q.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => q.value = e4), rows: S.value.rows ? S.value.rows : 2, maxlength: S.value.maxLength, "show-word-limit": S.value.showInputNum, type: "textarea", onInput: t2[1] || (t2[1] = (t3) => f(b)(t3, e3.pageContext, e3.configure, "input")), onChange: t2[2] || (t2[2] = (t3) => f(b)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[3] || (t2[3] = (t3) => f(b)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[4] || (t2[4] = (t3) => f(b)(t3, e3.pageContext, e3.configure, "focus")), onClick: t2[5] || (t2[5] = (t3) => f(b)(t3, e3.pageContext, e3.configure, "click")) }, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "show-word-limit"])]), _: 1 }, 8, ["required", "class", "label-width", "style"])]);
21
+ };
22
+ } });
108
23
  export {
109
- _sfc_main as default
24
+ _ as default
110
25
  };
@@ -0,0 +1,17 @@
1
+ import { PageContext, Component } from '../../utils/interfaces/page-design-types.js';
2
+
3
+ interface MyProps {
4
+ pageContext: PageContext;
5
+ configure: Component;
6
+ }
7
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MyProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MyProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
8
+ export default _default;
9
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
10
+ type __VLS_TypePropsToRuntimeProps<T> = {
11
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
12
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
13
+ } : {
14
+ type: import('vue').PropType<T[K]>;
15
+ required: true;
16
+ };
17
+ };
@@ -0,0 +1,97 @@
1
+ import { defineComponent as e, ref as t, markRaw as o, onMounted as n, resolveDirective as i, withDirectives as u, createCommentVNode as s, unref as r, createBlock as l, openBlock as c, resolveDynamicComponent as p, normalizeClass as a, normalizeStyle as f, vShow as g, nextTick as v } from "vue";
2
+ import m from "./error-render.vue.js";
3
+ import { getRuntimeComponentByName as d } from "../../utils/assemblys-config.js";
4
+ import { PageDimensions as x } from "../../utils/interfaces/page-design-types.js";
5
+ import { addComponentRef as h, addComponentRefByCode as C } from "../../utils/global-refs.js";
6
+ import { getPermissionCodes as y, controlObjectRenderState as b } from "../../utils/page-init-util.js";
7
+ import { getFormPropName as w, getSizeConfig as j } from "../../utils/page-helper-util.js";
8
+ import { getPropClassName as _, isNumber as B } from "../../utils/common-util.js";
9
+ import { isShowComponent as R } from "../../utils/events/event-util.js";
10
+ const O = e({ __name: "home-chart-render", props: { pageContext: {}, configure: {} }, setup(e2) {
11
+ const O2 = e2;
12
+ null == O2.configure.style && (O2.configure.style = {});
13
+ const $ = y(O2.configure, O2.pageContext);
14
+ O2.configure && O2.configure.props && O2.configure.props.base && (O2.configure.props.base.functionCode = $);
15
+ let H = t(true), N = t(true);
16
+ const k = t({});
17
+ k.value = o(d(O2.configure.name));
18
+ const P = t(true);
19
+ null == k.value && (k.value = m, P.value = false);
20
+ const S = t(null), W = t({}), q = t(""), z = _(O2.configure);
21
+ z && (q.value = z);
22
+ const A = O2.configure.runtime && O2.configure.runtime.common ? O2.configure.runtime.common : {};
23
+ if (A.class && (q.value += " " + A.class), A.style) {
24
+ Object.assign(W.value, A.style);
25
+ const e3 = O2.pageContext && O2.pageContext.dimensions ? O2.pageContext.dimensions : x.PC, t2 = A.style[e3 + "_style"];
26
+ t2 && Object.assign(W.value, t2);
27
+ const o2 = A.style[e3 + "_class"];
28
+ o2 && (q.value += " " + o2);
29
+ }
30
+ function D(e3) {
31
+ if (S.value = e3, e3 && !e3.show && (e3.show = function() {
32
+ H.value = true;
33
+ }), e3 && !e3.hide && (e3.hide = function() {
34
+ H.value = false;
35
+ }), e3 && !e3.getConfigure && (e3.getConfigure = function() {
36
+ return O2.configure;
37
+ }), O2.configure.uuid && h(O2.pageContext, O2.configure.uuid, S), O2.configure.code) C(O2.pageContext, O2.configure.code, S);
38
+ else if (O2.configure.props && O2.configure.props.base) {
39
+ const e4 = O2.configure.props.base;
40
+ if (e4.prop) {
41
+ let t3 = e4.prop;
42
+ t3.startsWith("${") && (t3 = t3.substring(2, t3.length - 1)), t3.includes(".") && (t3 = t3.substring(t3.indexOf(".") + 1)), C(O2.pageContext, t3, S);
43
+ }
44
+ }
45
+ const t2 = O2.configure.props ? O2.configure.props.base : null;
46
+ if (t2 && t2.prop) {
47
+ let e4 = t2.prop;
48
+ e4 = w(e4), b(O2.pageContext, e4);
49
+ }
50
+ !function() {
51
+ if (!S.value) return;
52
+ const e4 = j(O2.pageContext, O2.configure);
53
+ "table" !== O2.configure.name && e4 && e4.isCalcHeight && v(() => {
54
+ let e5 = S.value.$el;
55
+ e5 || (e5 = S.value);
56
+ const t3 = e5.parentNode;
57
+ if (!e5 || !t3) return;
58
+ const o2 = e5.getBoundingClientRect();
59
+ let n2 = window.innerHeight - o2.y - 80, i2 = n2 + "";
60
+ B(n2) && (i2 = n2 + "px"), W.value.height = i2, W.value["overflow-y"] = "auto", W.value["overflow-x"] = "hidden", O2.configure.sytle || (O2.configure.sytle = {}), O2.configure.sytle._heightStyle = i2;
61
+ });
62
+ }();
63
+ }
64
+ n(() => {
65
+ E();
66
+ });
67
+ const E = () => {
68
+ if (!S.value) return;
69
+ let e3 = S.value.$el;
70
+ e3 || (e3 = S.value);
71
+ const t2 = e3.parentNode;
72
+ if (!e3 || !t2) return;
73
+ const o2 = O2.configure.props ? O2.configure.props : {}, n2 = O2.configure.style ? O2.configure.style : {}, i2 = o2.position;
74
+ if ("top" == i2 || "bottom" == i2) {
75
+ const o3 = [t2];
76
+ if (o3 && o3.length > 0) {
77
+ const e4 = o3[0].getBoundingClientRect();
78
+ "top" == i2 && (W.value.top = e4.top + "px"), "bottom" == i2 && (W.value.bottom = "10px");
79
+ }
80
+ const n3 = e3.getBoundingClientRect();
81
+ W.value.width = n3.width + "px";
82
+ } else if (n2.position && (W.value.position = n2.position, "relative" != W.value.position)) {
83
+ if (!W.value.width) {
84
+ const t3 = e3.getBoundingClientRect();
85
+ W.value.width = t3.width + "px";
86
+ }
87
+ n2.left && (W.value.left = n2.left + "px"), n2.top && (W.value.top = n2.top + "px");
88
+ }
89
+ };
90
+ return (e3, t2) => {
91
+ const o2 = i("permission");
92
+ return r(R)(e3.configure) ? u((c(), l(p(k.value), { key: 0, ref: D, style: f(W.value), class: a(q.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[g, r(N)], [o2, r($) ? r($) : "true"]]) : s("", true);
93
+ };
94
+ } });
95
+ export {
96
+ O as default
97
+ };
@@ -0,0 +1,4 @@
1
+ import e from "./home-chart-render.vue.js";
2
+ export {
3
+ e as default
4
+ };
@@ -4,7 +4,7 @@ interface MyProps {
4
4
  pageContext: PageContext;
5
5
  configure: Component;
6
6
  }
7
- declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<MyProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MyProps>>>, {}, {}>;
7
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MyProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MyProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
8
8
  export default _default;
9
9
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
10
10
  type __VLS_TypePropsToRuntimeProps<T> = {