super-page-runtime 2.3.20-sit2 → 2.3.21-tmp1

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 (241) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +124 -133
  2. package/dist/es/components/runtime/utils/events/event-util.js +3 -3
  3. package/dist/es/components/runtime/utils/events/print-label.js +26 -25
  4. package/dist/es/components/runtime/utils/events/standard-event.js +568 -584
  5. package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
  6. package/dist/es/components/runtime/utils/page-init-util.js +11 -9
  7. package/dist/es/components/runtime/utils/table-utils.js +1 -1
  8. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
  9. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +8 -6
  10. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +17 -17
  11. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +98 -93
  12. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +3 -2
  13. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
  14. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +11 -9
  15. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +2 -0
  16. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +12 -10
  17. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +8 -8
  18. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +15 -15
  19. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +4 -4
  20. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +34 -34
  21. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +1 -1
  22. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +35 -34
  23. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +5 -3
  24. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +1 -0
  25. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +1 -1
  26. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +1 -0
  27. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +17 -15
  28. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +1 -1
  29. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
  30. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +6 -6
  31. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +13 -22
  32. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  33. package/dist/es/components/runtime/views/super-page-dialog.vue.js +1 -0
  34. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  35. package/dist/es/components/runtime/views/super-page.vue2.js +76 -75
  36. package/dist/es/i18n/langs/cn.js +1 -1
  37. package/dist/es/i18n/langs/en.js +1 -1
  38. package/dist/es/style.css +76 -76
  39. package/dist/lib/_virtual/_plugin-vue_export-helper.js +6 -0
  40. package/dist/lib/assets/chart-themes/bar-theme.js +2 -0
  41. package/dist/lib/assets/chart-themes/gauge-theme.js +2 -0
  42. package/dist/lib/assets/chart-themes/pie-theme.js +2 -0
  43. package/dist/lib/assets/chart-themes/radar-theme.js +2 -0
  44. package/dist/lib/assets/chart-themes/scatter-theme.js +2 -0
  45. package/dist/lib/assets/file.png.js +2 -0
  46. package/dist/lib/assets/folder.png.js +2 -0
  47. package/dist/lib/components/runtime/utils/ai-chat-util.js +13 -0
  48. package/dist/lib/components/runtime/utils/anchor-util.js +62 -0
  49. package/dist/lib/components/runtime/utils/api/api-util.js +3 -0
  50. package/dist/lib/components/runtime/utils/api/page-expose-util.js +169 -0
  51. package/dist/lib/components/runtime/utils/assemblys-config.js +16 -0
  52. package/dist/lib/components/runtime/utils/barcode-util.js +10 -0
  53. package/dist/lib/components/runtime/utils/charts/chart-columnline-util.js +137 -0
  54. package/dist/lib/components/runtime/utils/charts/chart-gauge-util.js +34 -0
  55. package/dist/lib/components/runtime/utils/charts/chart-pie-util.js +78 -0
  56. package/dist/lib/components/runtime/utils/charts/chart-radar-util.js +52 -0
  57. package/dist/lib/components/runtime/utils/charts/chart-scatter-util.js +43 -0
  58. package/dist/lib/components/runtime/utils/charts/chart-util.js +244 -0
  59. package/dist/lib/components/runtime/utils/common-util.js +91 -0
  60. package/dist/lib/components/runtime/utils/eventBus.js +3 -0
  61. package/dist/lib/components/runtime/utils/events/event-util.js +345 -0
  62. package/dist/lib/components/runtime/utils/events/print-label.js +97 -0
  63. package/dist/lib/components/runtime/utils/events/standard-event.js +1101 -0
  64. package/dist/lib/components/runtime/utils/events/validator-util.js +296 -0
  65. package/dist/lib/components/runtime/utils/form/date-shortcuts.js +34 -0
  66. package/dist/lib/components/runtime/utils/form/scan-util.js +90 -0
  67. package/dist/lib/components/runtime/utils/global-refs.js +42 -0
  68. package/dist/lib/components/runtime/utils/i18n-util.js +11 -0
  69. package/dist/lib/components/runtime/utils/interfaces/page-design-types.js +4 -0
  70. package/dist/lib/components/runtime/utils/page-helper-util.js +354 -0
  71. package/dist/lib/components/runtime/utils/page-init-util.js +244 -0
  72. package/dist/lib/components/runtime/utils/page-permission-util.js +26 -0
  73. package/dist/lib/components/runtime/utils/page-store.js +50 -0
  74. package/dist/lib/components/runtime/utils/store-util.js +11 -0
  75. package/dist/lib/components/runtime/utils/store.js +3 -0
  76. package/dist/lib/components/runtime/utils/table-utils.js +68 -0
  77. package/dist/lib/components/runtime/utils/tree-utils.js +54 -0
  78. package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.js +3 -0
  79. package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +24 -0
  80. package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +5 -0
  81. package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +17 -0
  82. package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +3 -0
  83. package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +35 -0
  84. package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +3 -0
  85. package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +3 -0
  86. package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +3 -0
  87. package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +17 -0
  88. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +5 -0
  89. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +41 -0
  90. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +11 -0
  91. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +3 -0
  92. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +11 -0
  93. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +3 -0
  94. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +53 -0
  95. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +3 -0
  96. package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +5 -0
  97. package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +48 -0
  98. package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +5 -0
  99. package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +24 -0
  100. package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +5 -0
  101. package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +34 -0
  102. package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +5 -0
  103. package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +24 -0
  104. package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +5 -0
  105. package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +24 -0
  106. package/dist/lib/components/runtime/views/assemblys/chart/table/chart-table-util.js +402 -0
  107. package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +3 -0
  108. package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +3 -0
  109. package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue.js +6 -0
  110. package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue2.js +3 -0
  111. package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue.js +36 -0
  112. package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +3 -0
  113. package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +13 -0
  114. package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +3 -0
  115. package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +3 -0
  116. package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +249 -0
  117. package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue.js +16 -0
  118. package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue2.js +3 -0
  119. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +32 -0
  120. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +3 -0
  121. package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue.js +32 -0
  122. package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue2.js +3 -0
  123. package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.js +19 -0
  124. package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue2.js +3 -0
  125. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +12 -0
  126. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +3 -0
  127. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue.js +21 -0
  128. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue2.js +3 -0
  129. package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.js +13 -0
  130. package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue2.js +3 -0
  131. package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +30 -0
  132. package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue2.js +3 -0
  133. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +15 -0
  134. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +3 -0
  135. package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.js +5 -0
  136. package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +21 -0
  137. package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +3 -0
  138. package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +17 -0
  139. package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.js +3 -0
  140. package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +15 -0
  141. package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue.js +5 -0
  142. package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue2.js +27 -0
  143. package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +5 -0
  144. package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +79 -0
  145. package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +3 -0
  146. package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +20 -0
  147. package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.js +3 -0
  148. package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +15 -0
  149. package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +3 -0
  150. package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +12 -0
  151. package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +5 -0
  152. package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +88 -0
  153. package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +5 -0
  154. package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +43 -0
  155. package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +3 -0
  156. package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +59 -0
  157. package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +382 -0
  158. package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +3 -0
  159. package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +322 -0
  160. package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +3 -0
  161. package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.js +3 -0
  162. package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +81 -0
  163. package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +5 -0
  164. package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +124 -0
  165. package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +3 -0
  166. package/dist/lib/components/runtime/views/assemblys/error-render.vue2.js +3 -0
  167. package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +3 -0
  168. package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +57 -0
  169. package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +35 -0
  170. package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +3 -0
  171. package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +3 -0
  172. package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +57 -0
  173. package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +3 -0
  174. package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +91 -0
  175. package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +3 -0
  176. package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +47 -0
  177. package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +3 -0
  178. package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +20 -0
  179. package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +3 -0
  180. package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +65 -0
  181. package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +3 -0
  182. package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +20 -0
  183. package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +3 -0
  184. package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +70 -0
  185. package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.js +5 -0
  186. package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +31 -0
  187. package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.js +3 -0
  188. package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +26 -0
  189. package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +5 -0
  190. package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +13 -0
  191. package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +3 -0
  192. package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +75 -0
  193. package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +5 -0
  194. package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +188 -0
  195. package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.js +3 -0
  196. package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +130 -0
  197. package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +3 -0
  198. package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +11 -0
  199. package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +3 -0
  200. package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +29 -0
  201. package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +3 -0
  202. package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +38 -0
  203. package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +3 -0
  204. package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +20 -0
  205. package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue.js +73 -0
  206. package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue2.js +3 -0
  207. package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +132 -0
  208. package/dist/lib/components/runtime/views/assemblys/object-render.vue2.js +3 -0
  209. package/dist/lib/components/runtime/views/assemblys/page-bottom.vue.js +3 -0
  210. package/dist/lib/components/runtime/views/assemblys/page-bottom.vue2.js +3 -0
  211. package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +5 -0
  212. package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +23 -0
  213. package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.js +5 -0
  214. package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +23 -0
  215. package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +5 -0
  216. package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +34 -0
  217. package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +3 -0
  218. package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +17 -0
  219. package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +3 -0
  220. package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +20 -0
  221. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +5 -0
  222. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +19 -0
  223. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +3 -0
  224. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +14 -0
  225. package/dist/lib/components/runtime/views/home-chart.vue.js +38 -0
  226. package/dist/lib/components/runtime/views/home-chart.vue2.js +3 -0
  227. package/dist/lib/components/runtime/views/super-page-dialog.vue.js +23 -0
  228. package/dist/lib/components/runtime/views/super-page-dialog.vue3.js +3 -0
  229. package/dist/lib/components/runtime/views/super-page.vue.js +5 -0
  230. package/dist/lib/components/runtime/views/super-page.vue2.js +264 -0
  231. package/dist/lib/favicon.ico +0 -0
  232. package/dist/lib/i18n/langs/cn.js +2 -0
  233. package/dist/lib/i18n/langs/en.js +2 -0
  234. package/dist/lib/index.js +6 -0
  235. package/dist/lib/style.css +996 -0
  236. package/dist/umd/favicon.ico +0 -0
  237. package/dist/umd/index.full.min.js +7429 -0
  238. package/dist/umd/style.css +996 -0
  239. package/package.json +2 -2
  240. package/dist/es/components/runtime/utils/events/data-backfill-util.d.ts +0 -27
  241. package/dist/es/components/runtime/utils/events/data-backfill-util.js +0 -39
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ const e = require("vue"), r = require("../../../../utils/charts/chart-util.js"), t = require("../../../../utils/charts/chart-pie-util.js"), o = require("../../../../utils/events/event-util.js"), n = require("../../../../utils/page-helper-util.js"), a = require("../common/common-chart-header.vue.js"), u = require("echarts/core"), i = require("echarts/renderers"), l = require("echarts/charts"), c = require("echarts/components"), s = require("vue-echarts"), p = e.defineComponent({ __name: "pie-runtime", props: { pageContext: {}, configure: {} }, setup(p2, { expose: h }) {
3
+ u.use([i.CanvasRenderer, l.PieChart, c.GridComponent, c.LegendComponent, c.TitleComponent, c.TooltipComponent, c.ToolboxComponent]);
4
+ const g = p2, f = e.ref(null), m = e.ref(), d = e.ref(null), C = g.configure.props ? g.configure.props.enableDrill : null, v = g.configure.props ? g.configure.props.drillEndTrigger : null, x = g.configure.props ? g.configure.props.linkPage : null, k = g.configure.runtime ? g.configure.runtime : {}, q = k.style, R = k.class, D = k.dataConfig, V = k.headerInfo ? k.headerInfo : {}, b = k.chartOption, j = g.configure.props ? g.configure.props : {}, y = r.getCustomTheme(j.customTheme);
5
+ function w(e2) {
6
+ "clearDrill" == v ? d.value && d.value.closeDrill && d.value.closeDrill(0) : "clickEvent" == v && P();
7
+ }
8
+ function P() {
9
+ x && x.jumpPageUrl && o.doClickJumpPageEvent(g.pageContext, g.configure, void 0);
10
+ }
11
+ r.initChartOption(g.configure, b), e.onMounted(() => {
12
+ const e2 = n.getChartDatasFromPage(g.pageContext, g.configure);
13
+ e2 && _(e2), m.value && (C || x && x.jumpPageUrl) && m.value.chart.on("click", function(e3) {
14
+ C ? d.value && d.value.drill && d.value.drill(e3, g.configure.cacheDatas) : P();
15
+ }), !C && g.configure.clickSet && m.value && r.monitorChartClickToVariable(g.pageContext, g.configure, m.value.chart);
16
+ });
17
+ let T = V.groupValue;
18
+ function E(e2) {
19
+ D && (true !== e2 && (D.autoRefresh = true), n.updateChartDatasources(g.pageContext, [D], V.drillParams));
20
+ }
21
+ e.watch(V, () => {
22
+ T != V.groupValue && (T = V.groupValue, D && (D.services[0].groupValue = V.groupValue), E(false));
23
+ });
24
+ const S = V.monitorFields;
25
+ function _(e2) {
26
+ e2 || (e2 = []), Array.isArray(e2) && (e2 = e2.length > 0 ? e2[0] : {}), e2 || (e2 = {}), e2.hasRender ? e2.hasRender = true : (e2.hasRender = true, D.autoRefresh || (T = e2.groupValue, T && "checkbox" !== V.groupComponent && (T = T.join(",")), V.groupValue = T), D.autoRefresh && C || r.clearChartSelected(g.pageContext, g.configure, m.value.chart), D.autoRefresh = false, t.updateChartOption(g.pageContext, g.configure, b, e2), m.value && m.value.setOption(b, true));
27
+ }
28
+ return n.monitorFieldChange(g.pageContext, S, () => {
29
+ E(true);
30
+ }), h({ updateChartDatas: _, exportChart: function() {
31
+ return r.exportCommonChart(m.value, V);
32
+ } }), (r2, t2) => (e.openBlock(), e.createElementBlock("div", { style: e.normalizeStyle(e.unref(q)), class: e.normalizeClass([e.unref(R), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: f }, [e.withDirectives(e.createVNode(a, { ref_key: "headerRef", ref: d, headerInfo: e.unref(V), configure: r2.configure, pageContext: r2.pageContext, onDrillEnd: w, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[e.vShow, e.unref(V).showHeader || r2.pageContext.showHomepageSearch]]), e.createVNode(e.unref(s), { ref_key: "chartRef", ref: m, class: "amb-chart-content", theme: e.unref(y), option: e.unref(b), autoresize: "" }, null, 8, ["theme", "option"])], 6));
33
+ } });
34
+ module.exports = p;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ const e = require("./radar-runtime.vue2.js");
3
+ ;/* empty css */
4
+ const r = require("../../../../../../_virtual/_plugin-vue_export-helper.js")(e, [["__scopeId", "data-v-42f5f123"]]);
5
+ module.exports = r;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ const e = require("vue"), r = require("../../../../utils/charts/chart-util.js"), t = require("../../../../utils/page-helper-util.js"), o = require("../../../../utils/charts/chart-radar-util.js"), a = require("../common/common-chart-header.vue.js"), n = require("echarts/core"), u = require("echarts/renderers"), i = require("echarts/charts"), s = require("echarts/components"), c = require("vue-echarts"), h = e.defineComponent({ __name: "radar-runtime", props: { pageContext: {}, configure: {} }, setup(h2, { expose: l }) {
3
+ n.use([u.CanvasRenderer, i.RadarChart, s.GridComponent, s.TitleComponent, s.TooltipComponent, s.ToolboxComponent, s.LegendComponent]);
4
+ const p = h2, f = e.ref(null), m = e.ref(), g = e.ref(null), d = p.configure.runtime ? p.configure.runtime : {}, C = d.style, x = d.class, v = d.dataConfig, q = d.headerInfo ? d.headerInfo : {}, y = d.chartOption, R = p.configure.props ? p.configure.props : {}, w = r.getCustomTheme(R.customTheme);
5
+ r.initChartOption(p.configure, y), e.onMounted(() => {
6
+ const e2 = t.getChartDatasFromPage(p.pageContext, p.configure);
7
+ e2 && T(e2);
8
+ });
9
+ let V = q.groupValue;
10
+ function b() {
11
+ v && t.updateChartDatasources(p.pageContext, [v], q.drillParams);
12
+ }
13
+ e.watch(q, () => {
14
+ V != q.groupValue && (V = q.groupValue, v && (v.services[0].groupValue = q.groupValue), b());
15
+ });
16
+ const k = q.monitorFields;
17
+ function T(e2) {
18
+ e2 || (e2 = []), Array.isArray(e2) && (e2 = e2.length > 0 ? e2[0] : {}), e2 || (e2 = {}), e2.hasRender ? e2.hasRender = true : (e2.hasRender = true, o.updateChartOption(p.pageContext, p.configure, y, e2), m.value && m.value.setOption(y, true));
19
+ }
20
+ return t.monitorFieldChange(p.pageContext, k, b), l({ updateChartDatas: T, exportChart: function() {
21
+ return r.exportCommonChart(m.value, q);
22
+ } }), (r2, t2) => (e.openBlock(), e.createElementBlock("div", { style: e.normalizeStyle(e.unref(C)), class: e.normalizeClass([e.unref(x), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: f }, [e.withDirectives(e.createVNode(a, { ref_key: "headerRef", ref: g, headerInfo: e.unref(q), configure: r2.configure, pageContext: r2.pageContext, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[e.vShow, e.unref(q).showHeader || r2.pageContext.showHomepageSearch]]), e.createVNode(e.unref(c), { ref_key: "chartRef", ref: m, class: "amb-chart-content", theme: e.unref(w), option: e.unref(y), autoresize: "" }, null, 8, ["theme", "option"])], 6));
23
+ } });
24
+ module.exports = h;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ const e = require("./scatter-runtime.vue2.js");
3
+ ;/* empty css */
4
+ const r = require("../../../../../../_virtual/_plugin-vue_export-helper.js")(e, [["__scopeId", "data-v-4a36176c"]]);
5
+ module.exports = r;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ const e = require("vue"), r = require("../../../../utils/charts/chart-util.js"), t = require("../../../../utils/page-helper-util.js"), o = require("../../../../utils/charts/chart-scatter-util.js"), n = require("../common/common-chart-header.vue.js"), a = require("echarts/core"), u = require("echarts/renderers"), i = require("echarts/charts"), s = require("echarts/components"), c = require("vue-echarts"), h = e.defineComponent({ __name: "scatter-runtime", props: { pageContext: {}, configure: {} }, setup(h2, { expose: l }) {
3
+ a.use([u.CanvasRenderer, i.ScatterChart, s.GridComponent, s.LegendComponent, s.TitleComponent, s.TooltipComponent, s.ToolboxComponent, s.DataZoomComponent]);
4
+ const p = h2, f = e.ref(null), m = e.ref(), g = e.ref(null), d = p.configure.runtime ? p.configure.runtime : {}, C = d.style, x = d.class, v = d.dataConfig, q = d.headerInfo ? d.headerInfo : {}, y = d.chartOption, w = p.configure.props ? p.configure.props : {}, R = r.getCustomTheme(w.customTheme);
5
+ r.initChartOption(p.configure, y), e.onMounted(() => {
6
+ const e2 = t.getChartDatasFromPage(p.pageContext, p.configure);
7
+ e2 && D(e2);
8
+ });
9
+ let V = q.groupValue;
10
+ function b() {
11
+ v && t.updateChartDatasources(p.pageContext, [v], q.drillParams);
12
+ }
13
+ e.watch(q, () => {
14
+ V != q.groupValue && (V = q.groupValue, v && (v.services[0].groupValue = q.groupValue), b());
15
+ });
16
+ const k = q.monitorFields;
17
+ function D(e2) {
18
+ e2 || (e2 = []), Array.isArray(e2) && (e2 = e2.length > 0 ? e2[0] : {}), e2 || (e2 = {}), e2.hasRender ? e2.hasRender = true : (e2.hasRender = true, o.updateChartOption(p.pageContext, p.configure, y, e2), m.value && m.value.setOption(y, true));
19
+ }
20
+ return t.monitorFieldChange(p.pageContext, k, b), l({ updateChartDatas: D, exportChart: function() {
21
+ return r.exportCommonChart(m.value, q);
22
+ } }), (r2, t2) => (e.openBlock(), e.createElementBlock("div", { style: e.normalizeStyle(e.unref(C)), class: e.normalizeClass([e.unref(x), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: f }, [e.withDirectives(e.createVNode(n, { ref_key: "headerRef", ref: g, headerInfo: e.unref(q), configure: r2.configure, pageContext: r2.pageContext, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[e.vShow, e.unref(q).showHeader || r2.pageContext.showHomepageSearch]]), e.createVNode(e.unref(c), { ref_key: "chartRef", ref: m, class: "amb-chart-content", theme: e.unref(R), option: e.unref(y), autoresize: "" }, null, 8, ["theme", "option"])], 6));
23
+ } });
24
+ module.exports = h;
@@ -0,0 +1,402 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const pageHelperUtil = require("../../../../utils/page-helper-util.js"), eventUtil = require("../../../../utils/events/event-util.js"), chartUtil = require("../../../../utils/charts/chart-util.js");
4
+ class ExpressionEvaluator {
5
+ static evaluate(e, t, r) {
6
+ if (t && t.length > 0) {
7
+ const e2 = t[t.length - 1];
8
+ e2.joinSign && (e2.joinSign = "");
9
+ }
10
+ const o = t.map((t2) => this.createExpression(e, t2, r)).join(" ");
11
+ return this.evaluateExpression(o);
12
+ }
13
+ static createExpression(e, t, r) {
14
+ const { propName: o, operator: n, propValue: a, leftBracket: l, rightBracket: s, joinSign: i, dataType: c } = t;
15
+ if (!o || "" === o) return "";
16
+ const u = pageHelperUtil.getValueFromVariable(e.entity, o, r);
17
+ let p = `${l} ${this.getComparisonExpression(u, t, pageHelperUtil.getValueFromVariable(e.entity, a, r))} ${s}`;
18
+ return i && ("and" === i || "AND" === i ? p += "&&" : "or" !== i && "OR" !== i || (p += "||")), p.trim();
19
+ }
20
+ static getComparisonExpression(e, t, r) {
21
+ const { dataType: o, variableIsNull: n } = t;
22
+ let a = t.operator;
23
+ a || (a = "EQ");
24
+ let l = this.parseValue(e, o);
25
+ const s = this.parseValue(r, o);
26
+ if (null == s && n) {
27
+ if (null == l && (l = "null"), "null" === n) return `${l} === null`;
28
+ if ("ignore" === n) return "1=1";
29
+ if ("notequal" === n) return "1!=1";
30
+ }
31
+ switch (a) {
32
+ case "EQ":
33
+ return `${l} === ${s}`;
34
+ case "GT":
35
+ return `${l} > ${s}`;
36
+ case "LT":
37
+ return `${l} < ${s}`;
38
+ case "GET":
39
+ return `${l} >= ${s}`;
40
+ case "LET":
41
+ return `${l} <= ${s}`;
42
+ case "NET":
43
+ return `${l} !== ${s}`;
44
+ case "CONTAIN":
45
+ return `${l}.includes(${s})`;
46
+ case "NOT_CONTAIN":
47
+ return `!${l}.includes(${s})`;
48
+ case "IS_NULL":
49
+ return `${l} === null`;
50
+ case "IS_NOT_NULL":
51
+ return `${l} !== null`;
52
+ case "IN":
53
+ if ("TEXT" === o) {
54
+ return `${s.split(",")}.includes(${l})`;
55
+ }
56
+ return `[${s}].includes(${l})`;
57
+ default:
58
+ throw new Error(`比较符号不匹配: ${a}`);
59
+ }
60
+ }
61
+ static changeDataType(e) {
62
+ let t = e;
63
+ if (e) {
64
+ if ("TEXT" === e) t = "string";
65
+ else if ("DATE" === e || "TIME" === e) t = "date";
66
+ else if ("DOUBLE" === e || "FLOAT" === e || "INTEGER" === e || "LONG" === e) t = "number";
67
+ else if ("BOOLEAN" === e) return "boolean";
68
+ }
69
+ return t;
70
+ }
71
+ static parseValue(e, t) {
72
+ if (t = this.changeDataType(t), null == e) return null;
73
+ switch (t) {
74
+ case "number":
75
+ return getNumberValue(e);
76
+ case "date":
77
+ return new Date(e).getTime();
78
+ case "string":
79
+ default:
80
+ return `"${e}"`;
81
+ case "boolean":
82
+ return "true" === e || true === e || 1 === e;
83
+ }
84
+ }
85
+ static evaluateExpression(expression) {
86
+ try {
87
+ return eval(expression);
88
+ } catch (e) {
89
+ return console.error("表达式错误:", expression, e), false;
90
+ }
91
+ }
92
+ }
93
+ function getNumberValue(e) {
94
+ if (isNumber(e)) return Number(e);
95
+ if (e && e.indexOf(",") > 0) {
96
+ const t = e.split(","), r = [];
97
+ for (let e2 = 0; e2 < t.length; e2++) r.push(Number(t[e2]));
98
+ return r;
99
+ }
100
+ return e;
101
+ }
102
+ function isNumber(e) {
103
+ return "number" == typeof e && !isNaN(e);
104
+ }
105
+ function getSummaryTitleColumn(e) {
106
+ var _a;
107
+ const t = {};
108
+ return ((_a = e.props.summaries) == null ? void 0 : _a.titleColumn) && e.props.summaries.titleColumn.length > 0 && e.props.summaries.titleColumn.forEach((e2) => {
109
+ t[e2.prop] = e2;
110
+ }), t;
111
+ }
112
+ function getSummaryDataColumn(e, t) {
113
+ var _a;
114
+ const r = {};
115
+ return ((_a = e.props.summaries) == null ? void 0 : _a.dataColumn) && e.props.summaries.dataColumn.length > 0 && e.props.summaries.dataColumn.forEach((o) => {
116
+ var _a2;
117
+ const n = (_a2 = e.items) == null ? void 0 : _a2.find((e2) => o.prop === e2.props.base.prop);
118
+ n && ("table" === t && n.props.base.tableSummary || "group" === t && n.props.base.groupSummary) && (r[o.prop] = o);
119
+ }), r;
120
+ }
121
+ function summaryStatistics(e, t, r, o) {
122
+ let n = "";
123
+ const a = e.summaryMode, l = t.map((e2) => Number(e2[r])).filter((e2) => !Number.isNaN(e2));
124
+ if (l.length > 0) if ("custom" === a) {
125
+ const a2 = eventUtil.getCustomFunc(o, e.customFunc);
126
+ if (a2) try {
127
+ const e2 = a2.apply(a2, [{ data: t, prop: r }]);
128
+ n = e2 ? ` ${e2}` : " N/A";
129
+ } catch (e2) {
130
+ console.error("自定义函数脚本错误:", t, e2);
131
+ }
132
+ else n = " N/A";
133
+ } else switch (a) {
134
+ case "sum":
135
+ n = ` ${l.reduce((e2, t2) => e2 + t2, 0)}`;
136
+ break;
137
+ case "avg":
138
+ n = " " + l.reduce((e2, t2) => e2 + t2, 0) / l.length;
139
+ break;
140
+ case "min":
141
+ n = ` ${Math.min(...l)}`;
142
+ break;
143
+ case "max":
144
+ n = ` ${Math.max(...l)}`;
145
+ break;
146
+ default:
147
+ n = " N/A";
148
+ }
149
+ else n = " N/A";
150
+ return n;
151
+ }
152
+ function replacePlaceholders(e, t) {
153
+ if (e) return e.replace(/\$\{row\.(\w+)\}/g, (e2, r) => Object.prototype.hasOwnProperty.call(t, r) ? t[r] : "");
154
+ }
155
+ function getHeaderCellStyleUtil(e, t, r) {
156
+ var _a;
157
+ const o = {};
158
+ e.column.property && ((_a = t.titleStyle) == null ? void 0 : _a.forEach((t2) => {
159
+ if (t2.field && t2.field.includes(e.column.property)) if (t2.scopeFunc) {
160
+ const n2 = eventUtil.getCustomFunc(r.pageContext, t2.scopeFunc);
161
+ if (n2) try {
162
+ false !== n2.apply(n2, [{ item: t2, data: e }]) && copyStyle(o, t2);
163
+ } catch (r2) {
164
+ console.error("自定义函数脚本错误:", t2, e, r2);
165
+ }
166
+ } else copyStyle(o, t2);
167
+ }));
168
+ const n = getCellStyleUtil(e, t.cellTitleStyle, r);
169
+ return n && Object.assign(o, n), o;
170
+ }
171
+ function getRowStyleUtil(e, t, r) {
172
+ const o = {};
173
+ if (r.configure.style.rowStyle) for (let t2 = 0; t2 < r.configure.style.rowStyle.length; t2++) {
174
+ const n = r.configure.style.rowStyle[t2];
175
+ if (n.scopeFunc) {
176
+ const t3 = eventUtil.getCustomFunc(r.pageContext, n.scopeFunc);
177
+ if (t3) try {
178
+ const r2 = t3.apply(t3, [{ data: e }]);
179
+ null != r2 && false !== r2 && copyStyle(o, n);
180
+ } catch (t4) {
181
+ console.error("自定义函数脚本错误:", e, t4);
182
+ }
183
+ } else if (n.matchingCondition) {
184
+ const t3 = ExpressionEvaluator.evaluate(r.pageContext, n.matchingCondition, e.row);
185
+ (t3 || void 0 === t3) && copyStyle(o, n);
186
+ } else copyStyle(o, n);
187
+ }
188
+ if (t && t.length > 0 && -1 !== t.indexOf(e.rowIndex)) {
189
+ const e2 = {};
190
+ if (r.configure.style.collectStyle && r.configure.style.collectStyle.length > 0) for (let t2 = 0; t2 < r.configure.style.collectStyle.length; t2++) {
191
+ copyStyle(e2, r.configure.style.collectStyle[t2]);
192
+ }
193
+ return 0 === Object.keys(e2).length && (e2["background-color"] = "var(--el-table-row-hover-bg-color)"), e2;
194
+ }
195
+ return o;
196
+ }
197
+ function getCellStyleUtil(e, t, r) {
198
+ const o = {};
199
+ if (t) for (let n = 0; n < t.length; n++) {
200
+ const a = t[n];
201
+ if (isSetStyle(a)) if (a.scopeFunc) {
202
+ const t2 = eventUtil.getCustomFunc(r.pageContext, a.scopeFunc);
203
+ if (t2) try {
204
+ false !== t2.apply(t2, [{ data: e }]) && copyStyle(o, a);
205
+ } catch (t3) {
206
+ console.error("自定义函数脚本错误:", e, t3);
207
+ }
208
+ } else if (a.matchingCondition) {
209
+ const t2 = ExpressionEvaluator.evaluate(r.pageContext, a.matchingCondition, e.row);
210
+ (t2 || void 0 === t2) && copyStyle(o, a);
211
+ } else copyStyle(o, a);
212
+ }
213
+ return o;
214
+ }
215
+ function isSetStyle(e) {
216
+ let t;
217
+ return e.customStyle && (t = JSON.parse(e.customStyle)), !!(e.style && Object.keys(e.style).length > 0 || t && Object.keys(t).length > 0);
218
+ }
219
+ function copyStyle(e, t) {
220
+ Object.assign(e, t.style), t.customStyle && Object.assign(e, JSON.parse(t.customStyle));
221
+ }
222
+ function rowDataToColumn(e, t, r) {
223
+ const o = t.props.dataOrigin.groupField, n = t.props.dataOrigin.rowToColumn.titleColumns, a = t.props.dataOrigin.rowToColumn.dataColumns, l = [], s = {};
224
+ if (o && o.length > 0) e.forEach((e2) => {
225
+ const t2 = o.map((t3) => e2[t3]).join("|");
226
+ if (!s[t2]) {
227
+ const r2 = {};
228
+ o.forEach((t3) => r2[t3] = e2[t3]), s[t2] = r2, l.push(r2);
229
+ }
230
+ a.forEach((r2) => {
231
+ const o2 = `${n.map((t3) => e2[t3]).join("")}${r2}`;
232
+ s[t2][o2] = e2[r2];
233
+ });
234
+ });
235
+ else {
236
+ const t2 = [];
237
+ e.forEach((e2) => {
238
+ n.forEach((r2) => {
239
+ e2[r2] && t2.push(e2[r2]);
240
+ });
241
+ }), a.forEach((t3) => {
242
+ const o2 = {}, a2 = r.find((e2) => {
243
+ var _a, _b;
244
+ return ((_b = (_a = e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop) === t3;
245
+ });
246
+ a2 && (o2.$GroupColumn = a2.props.base.name), e.forEach((e2) => {
247
+ n.forEach((r2) => {
248
+ const n2 = e2[r2], a3 = e2[t3];
249
+ o2[n2] = a3;
250
+ });
251
+ }), l.push(o2);
252
+ });
253
+ }
254
+ return l;
255
+ }
256
+ function colDataToRow(e, t) {
257
+ const r = t.props.dataOrigin.groupField, o = t.props.dataOrigin.columnToRow.titleColumns, n = t.props.dataOrigin.columnToRow.dataColumns, a = t.props.dataOrigin.columnToRow.transColumns, l = t.props.dataOrigin.columnToRow.dataColumnsMapping;
258
+ if (0 === e.length) return e;
259
+ const s = [], i = groupBy(e, r), c = n.reduce((e2, t2) => t2.columns.length > e2.columns.length ? t2 : e2, n[0]), u = n.reduce((e2, t2) => (t2.columns.forEach((r2) => {
260
+ e2[r2] = t2.prop;
261
+ }), e2), {});
262
+ return i.forEach((e2) => {
263
+ c.columns.forEach((t2) => {
264
+ const i2 = c.prop, p = {};
265
+ if (r.forEach((t3) => {
266
+ p[t3] = e2[t3];
267
+ }), p[i2] = e2[t2], n.length > 1) {
268
+ const r2 = l.find((e3) => e3.props.includes(t2));
269
+ r2 && r2.props.length > 1 && r2.props.forEach((r3) => {
270
+ r3 !== t2 && u[r3] && (p[u[r3]] = e2[r3]);
271
+ });
272
+ }
273
+ o.forEach((e3) => {
274
+ const r2 = a.filter((t3) => t3.relatedTitle === e3.prop);
275
+ let o2 = false;
276
+ r2 && r2.length > 0 && r2.forEach((r3) => {
277
+ if (r3.columns.includes(t2)) return p[e3.prop] = r3.label, void (o2 = true);
278
+ }), o2 || (p[e3.prop] = t2);
279
+ }), s.push(p);
280
+ });
281
+ }), s;
282
+ }
283
+ function getColumnToRowTableConfig(e) {
284
+ const t = e.items, r = e.props.dataOrigin.groupField, o = e.props.dataOrigin.columnToRow.titleColumns, n = e.props.dataOrigin.columnToRow.dataColumns, a = [];
285
+ r && r.length > 0 && r.forEach((e2) => {
286
+ if (t) {
287
+ const r2 = t.find((t2) => t2.props.base.prop === e2);
288
+ r2 && a.push(r2);
289
+ }
290
+ });
291
+ return [...o, ...n].forEach((e2) => {
292
+ if (t) {
293
+ const r2 = t.find((t2) => t2.props.base.prop === e2);
294
+ r2 ? a.push(r2) : a.push({ uuid: (/* @__PURE__ */ new Date()).getTime(), name: "", props: { base: { prop: e2.prop, name: e2.title, sortable: true, headerAlign: "center", align: "center", fixed: false, visible: true, dataType: "string" }, format: {}, size: { pc: {} } }, style: {}, componentIndex: 0, runtime: { common: { class: "", style: { pc_style: {}, pc_class: "" } } } });
295
+ }
296
+ }), a;
297
+ }
298
+ function groupBy(e, t) {
299
+ const r = {};
300
+ return e.forEach((e2) => {
301
+ const o = t.map((t2) => e2[t2]).join("|");
302
+ r[o] || (r[o] = { ...e2, records: [] }, t.forEach((t2, n) => {
303
+ r[o][t2] = e2[t2];
304
+ })), r[o].records.push(e2);
305
+ }), Object.values(r).map((e2) => ({ ...e2, records: void 0 }));
306
+ }
307
+ function getIndexColumn() {
308
+ return { props: { base: { name: "序号", prop: "$index", columnWidth: 80, sortable: true, visible: true, displayOrder: 1, alignTitle: "center", alignContent: "center" } }, events: [], style: { titleFont: {}, contentFont: {}, width: {}, background: {}, tableCell: [{ type: "", model: "" }], conentPadding: {}, tittlePadding: {}, border: {}, shadow: {}, tittleClass: "" } };
309
+ }
310
+ function getNewColumnConfig(e, t, r, o) {
311
+ return { uuid: (/* @__PURE__ */ new Date()).getTime(), name: "", props: { base: { prop: e, name: t, displayOrder: r, sortable: true, headerAlign: "center", align: "center", fixed: false, visible: true, dataType: o }, format: {}, size: { pc: {} } }, style: {}, componentIndex: 0, runtime: { common: { class: "", style: { pc_style: {}, pc_class: "" } } } };
312
+ }
313
+ function computeFormula(itemConfs, datas, entity) {
314
+ Object.keys(itemConfs).forEach((key) => {
315
+ const paramNames = pageHelperUtil.getParamNames(itemConfs[key]);
316
+ datas.forEach((data, index) => {
317
+ const totalValueMap = {};
318
+ for (const e of paramNames) if (e.startsWith("${min.")) totalValueMap[e] = chartUtil.getMinValue(datas, getFieldName(e));
319
+ else if (e.startsWith("${max.")) totalValueMap[e] = chartUtil.getMaxValue(datas, getFieldName(e));
320
+ else if (e.startsWith("${sum.")) totalValueMap[e] = chartUtil.getSumValue(datas, getFieldName(e));
321
+ else if (e.startsWith("${avg.")) totalValueMap[e] = chartUtil.getAvgValue(datas, getFieldName(e));
322
+ else if (e.startsWith("${add.")) {
323
+ const t = getFieldName(e);
324
+ let r = 0;
325
+ try {
326
+ r = Number(data[t]), datas.slice(0, index).forEach((e2) => {
327
+ r += Number(e2[t]);
328
+ });
329
+ } catch (e2) {
330
+ console.error("计算错误:", e2), r = 0;
331
+ }
332
+ totalValueMap[e] = r;
333
+ } else (e.startsWith("${page.") || e.startsWith("${data.") || e.startsWith("${row.") || e.startsWith("${request.") || e.startsWith("${context.") || e.startsWith("${system.") || e.startsWith("${fixed.")) && (totalValueMap[e] = pageHelperUtil.getValueFromVariable(entity, e, data));
334
+ let expr = itemConfs[key];
335
+ Object.keys(totalValueMap).forEach((e) => {
336
+ expr.indexOf(e) > -1 && (expr = expr.replaceAll(e, totalValueMap[e]));
337
+ });
338
+ for (const e of paramNames) expr.indexOf(e) > -1 && (expr = expr.replaceAll(e, 0));
339
+ try {
340
+ data[key] = eval(expr);
341
+ } catch (e) {
342
+ console.error(itemConfs[key] + " 计算错误, 替换后表达式为:" + expr, e), data[key] = 0;
343
+ }
344
+ });
345
+ });
346
+ }
347
+ function getFieldName(e) {
348
+ return e.substring(6, e.length - 1);
349
+ }
350
+ function formatColContent(e, t, r, o, n) {
351
+ const a = e[r.props.base.prop];
352
+ switch (t.type) {
353
+ case "number":
354
+ return formatNumber(a, t);
355
+ case "currency":
356
+ return formatCurrency(a, t);
357
+ case "percent":
358
+ return formatPercent(a, t);
359
+ case "custom":
360
+ return formatCustomFunc(e, t, r, o, n);
361
+ default:
362
+ return a;
363
+ }
364
+ }
365
+ function formatNumber(e, t) {
366
+ let r = e;
367
+ return r || (r = 0), t.scientific && (r = Number(e).toExponential(t.scientificNum)), t.decimalDigit && (r = Number(e).toFixed(t.decimalDigit)), t.thousandsSeparator && (r = r.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")), t.symbol && (r = `${t.symbol} ${r}`), r;
368
+ }
369
+ function formatCurrency(e, t) {
370
+ let r = e;
371
+ return r || (r = 0), t.decimalDigit && (r = Number(e).toFixed(t.decimalDigit)), t.symbol && (r = `${t.symbol} ${r}`), r;
372
+ }
373
+ function formatPercent(e, t) {
374
+ let r = e;
375
+ return r || (r = 0), t.decimalDigit && (r = Number(e).toFixed(t.decimalDigit)), r + " %";
376
+ }
377
+ function formatCustomFunc(e, t, r, o, n) {
378
+ const a = eventUtil.getCustomFunc(o, t.customFunc);
379
+ if (a) {
380
+ try {
381
+ return a.apply(a, [{ pageContext: o, configureObj: n, row: e, prop: r.props.base.prop }]);
382
+ } catch (t2) {
383
+ console.error("自定义函数脚本错误:", e, t2);
384
+ }
385
+ return "";
386
+ }
387
+ }
388
+ function mergeRowByProperty(e, t, r, o, n) {
389
+ const a = e[o];
390
+ let l = 1, s = true;
391
+ for (let e2 = r - 1; e2 >= 0; e2--) {
392
+ if (n[e2][o] === a) {
393
+ s = false;
394
+ break;
395
+ }
396
+ break;
397
+ }
398
+ if (!s) return [0, 0];
399
+ for (let e2 = r + 1; e2 < n.length && n[e2][o] === a; e2++) l++;
400
+ return [l, 1];
401
+ }
402
+ exports.ExpressionEvaluator = ExpressionEvaluator, exports.colDataToRow = colDataToRow, exports.computeFormula = computeFormula, exports.formatColContent = formatColContent, exports.getCellStyleUtil = getCellStyleUtil, exports.getColumnToRowTableConfig = getColumnToRowTableConfig, exports.getHeaderCellStyleUtil = getHeaderCellStyleUtil, exports.getIndexColumn = getIndexColumn, exports.getNewColumnConfig = getNewColumnConfig, exports.getRowStyleUtil = getRowStyleUtil, exports.getSummaryDataColumn = getSummaryDataColumn, exports.getSummaryTitleColumn = getSummaryTitleColumn, exports.mergeRowByProperty = mergeRowByProperty, exports.replacePlaceholders = replacePlaceholders, exports.rowDataToColumn = rowDataToColumn, exports.summaryStatistics = summaryStatistics;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ const e = require("vue"), o = require("./group-column.vue.js"), u = e.defineComponent({ __name: "group-column-item", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) }, groupColumnItem: { type: Object, default: () => ({}) }, columnsConfigKeyValues: { type: Object, default: () => ({}) } }, setup: (u2) => (t, n) => (e.openBlock(), e.createBlock(o, { configure: u2.configure, pageContext: u2.pageContext, groupColumn: u2.groupColumnItem, columnsConfigKeyValues: u2.columnsConfigKeyValues }, null, 8, ["configure", "pageContext", "groupColumn", "columnsConfigKeyValues"])) });
3
+ module.exports = u;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ const e = require("./group-column-item.vue.js");
3
+ module.exports = e;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ const e = require("vue"), o = require("./normal-column.vue.js"), n = require("./group-column-item.vue.js"), t = e.defineComponent({ __name: "group-column", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) }, groupColumn: { type: Object, default: () => ({}) }, columnsConfigKeyValues: { type: Object, default: () => ({}) } }, setup: (t2) => (l, u) => {
3
+ const c = e.resolveComponent("el-table-column");
4
+ return e.openBlock(), e.createBlock(c, { "header-align": "center" }, { header: e.withCtx(() => [e.createTextVNode(e.toDisplayString(t2.groupColumn.titleText), 1)]), default: e.withCtx(() => [t2.groupColumn.children && t2.groupColumn.children.length > 0 ? (e.openBlock(true), e.createElementBlock(e.Fragment, { key: 0 }, e.renderList(t2.groupColumn.children, (l2, u2) => (e.openBlock(), e.createElementBlock(e.Fragment, { key: u2 }, [l2.children && l2.children.length > 0 ? (e.openBlock(), e.createBlock(n, { key: u2, configure: t2.configure, pageContext: t2.pageContext, groupColumnItem: l2, columnsConfigKeyValues: t2.columnsConfigKeyValues }, null, 8, ["configure", "pageContext", "groupColumnItem", "columnsConfigKeyValues"])) : (e.openBlock(), e.createBlock(o, { key: 1, pageContext: t2.pageContext, configure: t2.configure, column: t2.columnsConfigKeyValues[l2.columnUuid] }, null, 8, ["pageContext", "configure", "column"]))], 64))), 128)) : e.createCommentVNode("", true)]), _: 1 });
5
+ } });
6
+ module.exports = t;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ const e = require("./group-column.vue.js");
3
+ module.exports = e;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ const e = require("vue");
3
+ require("agilebuilder-ui/src/utils/common-util"), require("agilebuilder-ui/src/utils/util");
4
+ const o = require("./chart-table-util.js");
5
+ require("agilebuilder-ui/src/utils/request"), require("element-plus"), require("agilebuilder-ui/src/utils/auth"), require("../../../../utils/global-refs.js");
6
+ const t = require("../../../../utils/eventBus.js");
7
+ require("axios"), require("dayjs"), require("agilebuilder-ui/src/utils/calculator/calculator-util"), require("async-validator");
8
+ const r = require("../../../../utils/table-utils.js");
9
+ require("../../../../utils/events/print-label.js"), require("../../../../utils/page-store.js"), require("vue-i18n");
10
+ const l = { key: 0 }, n = { key: 1 }, p = { key: 1 }, s = { key: 2 }, c = e.defineComponent({ __name: "normal-column", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) }, column: { type: Object, default: () => ({}) } }, setup(c2) {
11
+ const a = c2, i = e.ref(false);
12
+ let u = null;
13
+ function m(e2, o2, t2, r2) {
14
+ }
15
+ function f(e2) {
16
+ const o2 = r.expressJump(a.pageContext, a.configure, a.column.linkPage, e2);
17
+ let t2 = false;
18
+ return o2 && (t2 = o2.show, u = o2.toPage), t2;
19
+ }
20
+ function g(e2) {
21
+ if (u) {
22
+ const o2 = a.pageContext.code + "_", r2 = JSON.parse(JSON.stringify(u));
23
+ r2.base = { successOperation: "closeWindow" };
24
+ const l2 = { id: e2.id ? e2.id : e2.ID, selections: [e2] };
25
+ t.$emit(o2 + "open-dialog", { pageContext: a.pageContext, configureObj: { props: r2 }, eventParams: l2 });
26
+ }
27
+ }
28
+ function k(e2, t2) {
29
+ return o.formatColContent(e2, t2, a.column, a.pageContext, a.configure);
30
+ }
31
+ return a.column.linkPage && a.column.linkPage.length > 0 && (i.value = true), (o2, t2) => {
32
+ const r2 = e.resolveComponent("el-table-column"), a2 = e.resolveComponent("el-progress"), u2 = e.resolveComponent("el-tag"), d = e.resolveComponent("el-link");
33
+ return "$index" === c2.column.props.base.prop ? (e.openBlock(), e.createBlock(r2, { key: 0, label: c2.column.props.base.name, type: "index", align: "center", "header-align": "center", width: "80" }, null, 8, ["label"])) : (e.openBlock(), e.createBlock(r2, { key: 1, prop: c2.column.props.base.prop, width: c2.column.props.base.width ? c2.column.props.base.width : "", label: c2.column.props.base.name, "header-align": c2.column.props.base.headerAlign, align: c2.column.props.base.align, fixed: !!c2.column.props.base.fixed && c2.column.props.base.fixed, formatter: m }, { default: e.withCtx((o3) => [c2.column.props.format && c2.column.props.format.type ? (e.openBlock(), e.createElementBlock(e.Fragment, { key: 0 }, [e.createTextVNode(e.toDisplayString(c2.column.props.format.status) + " ", 1), "customControl" === c2.column.props.format.type ? (e.openBlock(), e.createBlock(e.resolveDynamicComponent(c2.column.props.format.customControl), { key: 0, scope: o3, column: c2.column, configure: c2.configure, pageContext: c2.pageContext }, null, 8, ["scope", "column", "configure", "pageContext"])) : "progress" === c2.column.props.format.type ? (e.openBlock(), e.createBlock(a2, { key: 1, type: c2.column.props.format.progressType, percentage: o3.row[c2.column.props.base.prop], status: c2.column.props.format.status, "text-inside": c2.column.props.format.showText, "stroke-width": c2.column.props.format.strokeWidth, color: "custom" === c2.column.props.format.colorType ? c2.column.props.format.color : "" }, null, 8, ["type", "percentage", "status", "text-inside", "stroke-width", "color"])) : "icon" === c2.column.props.format.type ? (e.openBlock(), e.createElementBlock(e.Fragment, { key: 2 }, [c2.column.props.format.isTag ? (e.openBlock(), e.createElementBlock("span", l, [e.createVNode(u2, { type: c2.column.props.format.tagType, effect: c2.column.props.format.tagEffect, hit: c2.column.props.format.hit, size: c2.column.props.format.size }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(o3.row[c2.column.props.base.prop]), 1)]), _: 2 }, 1032, ["type", "effect", "hit", "size"])])) : (e.openBlock(), e.createElementBlock("span", n, ["pre" === c2.column.props.format.position ? (e.openBlock(), e.createElementBlock("i", { key: 0, class: e.normalizeClass(c2.column.props.format.icon) }, null, 2)) : e.createCommentVNode("", true), e.createElementVNode("span", null, e.toDisplayString(o3.row[c2.column.props.base.prop]), 1), "suf" === c2.column.props.format.position ? (e.openBlock(), e.createElementBlock("i", { key: 1, class: e.normalizeClass(c2.column.props.format.icon) }, null, 2)) : e.createCommentVNode("", true)]))], 64)) : (e.openBlock(), e.createElementBlock(e.Fragment, { key: 3 }, [i.value && f(o3.row) ? (e.openBlock(), e.createBlock(d, { key: 0, type: "primary", onClick: (e2) => g(o3.row) }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(k(o3.row, c2.column.props.format)), 1)]), _: 2 }, 1032, ["onClick"])) : (e.openBlock(), e.createElementBlock("span", p, e.toDisplayString(k(o3.row, c2.column.props.format)), 1))], 64))], 64)) : i.value && f(o3.row) ? (e.openBlock(), e.createBlock(d, { key: 1, type: "primary", onClick: (e2) => g(o3.row) }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(o3.row[c2.column.props.base.prop]), 1)]), _: 2 }, 1032, ["onClick"])) : (e.openBlock(), e.createElementBlock("span", s, e.toDisplayString(o3.row[c2.column.props.base.prop]), 1))]), _: 1 }, 8, ["prop", "width", "label", "header-align", "align", "fixed"]));
34
+ };
35
+ } });
36
+ module.exports = c;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ const e = require("./normal-column.vue.js");
3
+ module.exports = e;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ const e = require("vue"), a = { style: { padding: "5px", "text-align": "center" } }, t = e.defineComponent({ __name: "table-pageination", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) }, column: { type: Object, default: () => ({}) }, total: { type: Number, default: 0 } }, emits: ["pageChange", "pageSizeChange"], setup(t2, { emit: n }) {
3
+ const l = t2, p = n, o = e.ref(1), u = e.ref(l.configure.pageination.pageSize), r = (e2) => {
4
+ o.value = e2, p("pageChange", o.value, u.value);
5
+ }, g = (e2) => {
6
+ u.value = e2, p("pageSizeChange", o.value, u.value);
7
+ };
8
+ return (n2, l2) => {
9
+ const p2 = e.resolveComponent("el-pagination");
10
+ return e.openBlock(), e.createElementBlock("div", a, [e.createVNode(p2, { "current-page": o.value, "onUpdate:currentPage": l2[0] || (l2[0] = (e2) => o.value = e2), "page-size": u.value, "onUpdate:pageSize": l2[1] || (l2[1] = (e2) => u.value = e2), "page-sizes": [10, 30, 50, 100], size: "small", layout: "total, sizes, prev, pager, next, jumper", total: t2.total, onCurrentChange: r, onSizeChange: g }, null, 8, ["current-page", "page-size", "total"])]);
11
+ };
12
+ } });
13
+ module.exports = t;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ const e = require("./table-pageination.vue.js");
3
+ module.exports = e;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ const e = require("./table-runtime.vue2.js");
3
+ module.exports = e;