super-page-runtime 2.3.22-tmp2 → 2.3.22-tmp4

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 (435) hide show
  1. package/dist/es/_virtual/_plugin-vue_export-helper.mjs +4 -4
  2. package/dist/es/components/runtime/utils/ai-chat-util.mjs +12 -12
  3. package/dist/es/components/runtime/utils/anchor-util.mjs +49 -49
  4. package/dist/es/components/runtime/utils/api/page-expose-util.mjs +142 -147
  5. package/dist/es/components/runtime/utils/assemblys-config.mjs +12 -13
  6. package/dist/es/components/runtime/utils/barcode-util.mjs +9 -9
  7. package/dist/es/components/runtime/utils/charts/chart-columnline-util.mjs +122 -121
  8. package/dist/es/components/runtime/utils/charts/chart-gauge-util.mjs +32 -32
  9. package/dist/es/components/runtime/utils/charts/chart-pie-util.mjs +71 -70
  10. package/dist/es/components/runtime/utils/charts/chart-radar-util.mjs +48 -48
  11. package/dist/es/components/runtime/utils/charts/chart-scatter-util.mjs +38 -38
  12. package/dist/es/components/runtime/utils/charts/chart-util.mjs +220 -223
  13. package/dist/es/components/runtime/utils/common-util.mjs +91 -94
  14. package/dist/es/components/runtime/utils/eventBus.mjs +3 -3
  15. package/dist/es/components/runtime/utils/events/event-util.mjs +341 -356
  16. package/dist/es/components/runtime/utils/events/print-label.mjs +75 -75
  17. package/dist/es/components/runtime/utils/events/standard-event.mjs +957 -1012
  18. package/dist/es/components/runtime/utils/events/validator-util.mjs +251 -269
  19. package/dist/es/components/runtime/utils/form/date-shortcuts.mjs +26 -26
  20. package/dist/es/components/runtime/utils/form/scan-util.mjs +51 -56
  21. package/dist/es/components/runtime/utils/global-refs.mjs +52 -53
  22. package/dist/es/components/runtime/utils/i18n-util.mjs +11 -11
  23. package/dist/es/components/runtime/utils/interfaces/page-design-types.mjs +2 -2
  24. package/dist/es/components/runtime/utils/page-helper-util.mjs +246 -255
  25. package/dist/es/components/runtime/utils/page-init-util.mjs +204 -222
  26. package/dist/es/components/runtime/utils/page-permission-util.mjs +20 -21
  27. package/dist/es/components/runtime/utils/page-store.mjs +38 -38
  28. package/dist/es/components/runtime/utils/store-util.mjs +9 -9
  29. package/dist/es/components/runtime/utils/table-utils.mjs +69 -74
  30. package/dist/es/components/runtime/utils/tree-utils.mjs +43 -53
  31. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.mjs +2 -2
  32. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.mjs +22 -22
  33. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.mjs +4 -4
  34. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.mjs +16 -16
  35. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.mjs +2 -2
  36. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.mjs +32 -32
  37. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.mjs +2 -2
  38. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.mjs +4 -4
  39. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.mjs +2 -2
  40. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.mjs +15 -16
  41. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.mjs +4 -4
  42. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.mjs +44 -44
  43. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.mjs +10 -10
  44. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.mjs +2 -2
  45. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.mjs +9 -9
  46. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.mjs +2 -2
  47. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.mjs +46 -47
  48. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.mjs +2 -2
  49. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.mjs +4 -4
  50. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.mjs +39 -46
  51. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.mjs +4 -4
  52. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.mjs +28 -28
  53. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.mjs +4 -4
  54. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.mjs +37 -37
  55. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.mjs +4 -4
  56. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.mjs +28 -28
  57. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.mjs +4 -4
  58. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.mjs +28 -28
  59. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.mjs +220 -231
  60. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.mjs +4 -4
  61. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.mjs +2 -2
  62. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.mjs +7 -7
  63. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.mjs +2 -2
  64. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.mjs +24 -33
  65. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.mjs +2 -2
  66. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.mjs +10 -10
  67. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.mjs +2 -2
  68. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.mjs +2 -2
  69. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.mjs +208 -215
  70. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.mjs +14 -14
  71. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue2.mjs +2 -2
  72. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.mjs +28 -29
  73. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.mjs +2 -2
  74. package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.mjs +24 -26
  75. package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue2.mjs +2 -2
  76. package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.mjs +13 -22
  77. package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue2.mjs +2 -2
  78. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.mjs +13 -12
  79. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.mjs +2 -2
  80. package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.mjs +16 -17
  81. package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue2.mjs +2 -2
  82. package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.mjs +14 -13
  83. package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue2.mjs +2 -2
  84. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.mjs +23 -23
  85. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue2.mjs +2 -2
  86. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.mjs +13 -13
  87. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.mjs +2 -2
  88. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.mjs +4 -4
  89. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.mjs +24 -24
  90. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.mjs +2 -2
  91. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.mjs +15 -16
  92. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.mjs +2 -2
  93. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.mjs +12 -13
  94. package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.mjs +4 -4
  95. package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue2.mjs +21 -21
  96. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.mjs +4 -4
  97. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.mjs +58 -58
  98. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.mjs +2 -2
  99. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.mjs +18 -18
  100. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.mjs +2 -2
  101. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.mjs +15 -15
  102. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.mjs +2 -2
  103. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.mjs +9 -10
  104. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.mjs +3 -3
  105. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.mjs +79 -79
  106. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.mjs +2 -2
  107. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.mjs +39 -40
  108. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.mjs +2 -2
  109. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.mjs +55 -55
  110. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.mjs +289 -309
  111. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.mjs +2 -2
  112. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.mjs +254 -261
  113. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.mjs +2 -2
  114. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.mjs +2 -2
  115. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.mjs +64 -66
  116. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.mjs +4 -4
  117. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.mjs +109 -111
  118. package/dist/es/components/runtime/views/assemblys/error-render.vue.mjs +3 -3
  119. package/dist/es/components/runtime/views/assemblys/error-render.vue2.mjs +2 -2
  120. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.mjs +2 -2
  121. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.mjs +49 -50
  122. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.mjs +31 -33
  123. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.mjs +2 -2
  124. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.mjs +2 -2
  125. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.mjs +56 -56
  126. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.mjs +2 -2
  127. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.mjs +80 -80
  128. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.mjs +2 -2
  129. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.mjs +45 -45
  130. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.mjs +2 -2
  131. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.mjs +19 -19
  132. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.mjs +2 -2
  133. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.mjs +60 -60
  134. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.mjs +2 -2
  135. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.mjs +23 -23
  136. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.mjs +2 -2
  137. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.mjs +67 -68
  138. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.mjs +4 -4
  139. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.mjs +32 -33
  140. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.mjs +2 -2
  141. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.mjs +25 -25
  142. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.mjs +3 -3
  143. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.mjs +11 -11
  144. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.mjs +2 -2
  145. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.mjs +64 -64
  146. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.mjs +4 -4
  147. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.mjs +154 -158
  148. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.mjs +2 -2
  149. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.mjs +105 -111
  150. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.mjs +2 -2
  151. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.mjs +12 -12
  152. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.mjs +2 -2
  153. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.mjs +30 -30
  154. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.mjs +2 -2
  155. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.mjs +36 -37
  156. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.mjs +2 -2
  157. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.mjs +23 -23
  158. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.mjs +62 -73
  159. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.mjs +2 -2
  160. package/dist/es/components/runtime/views/assemblys/object-render.vue.mjs +113 -124
  161. package/dist/es/components/runtime/views/assemblys/object-render.vue2.mjs +2 -2
  162. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.mjs +4 -4
  163. package/dist/es/components/runtime/views/assemblys/page-bottom.vue2.mjs +2 -2
  164. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.mjs +2 -2
  165. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.mjs +21 -21
  166. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.mjs +3 -3
  167. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.mjs +19 -19
  168. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.mjs +3 -3
  169. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.mjs +29 -29
  170. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.mjs +2 -2
  171. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.mjs +16 -16
  172. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.mjs +2 -2
  173. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.mjs +18 -18
  174. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.mjs +2 -2
  175. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.mjs +20 -21
  176. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.mjs +2 -2
  177. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.mjs +15 -15
  178. package/dist/es/components/runtime/views/home-chart.vue.mjs +38 -39
  179. package/dist/es/components/runtime/views/home-chart.vue2.mjs +2 -2
  180. package/dist/es/components/runtime/views/super-page-dialog.vue.mjs +18 -18
  181. package/dist/es/components/runtime/views/super-page-dialog.vue3.mjs +2 -2
  182. package/dist/es/components/runtime/views/super-page.vue.mjs +4 -4
  183. package/dist/es/components/runtime/views/super-page.vue2.mjs +234 -237
  184. package/dist/es/index.mjs +27 -27
  185. package/dist/es/style.css +1 -996
  186. package/package.json +76 -76
  187. package/dist/es/components/runtime/utils/api/api-util.mjs +0 -4
  188. package/dist/lib/_virtual/_plugin-vue_export-helper.cjs +0 -6
  189. package/dist/lib/assets/chart-themes/bar-theme.cjs +0 -2
  190. package/dist/lib/assets/chart-themes/bar-theme.d.ts +0 -6
  191. package/dist/lib/assets/chart-themes/gauge-theme.cjs +0 -2
  192. package/dist/lib/assets/chart-themes/gauge-theme.d.ts +0 -6
  193. package/dist/lib/assets/chart-themes/pie-theme.cjs +0 -2
  194. package/dist/lib/assets/chart-themes/pie-theme.d.ts +0 -6
  195. package/dist/lib/assets/chart-themes/radar-theme.cjs +0 -2
  196. package/dist/lib/assets/chart-themes/radar-theme.d.ts +0 -6
  197. package/dist/lib/assets/chart-themes/scatter-theme.cjs +0 -2
  198. package/dist/lib/assets/chart-themes/scatter-theme.d.ts +0 -6
  199. package/dist/lib/assets/file.png.cjs +0 -2
  200. package/dist/lib/assets/folder.png.cjs +0 -2
  201. package/dist/lib/components/runtime/index.d.ts +0 -5
  202. package/dist/lib/components/runtime/utils/ai-chat-util.cjs +0 -13
  203. package/dist/lib/components/runtime/utils/anchor-util.cjs +0 -62
  204. package/dist/lib/components/runtime/utils/anchor-util.d.ts +0 -13
  205. package/dist/lib/components/runtime/utils/api/api-util.cjs +0 -3
  206. package/dist/lib/components/runtime/utils/api/api-util.d.ts +0 -1
  207. package/dist/lib/components/runtime/utils/api/page-expose-util.cjs +0 -169
  208. package/dist/lib/components/runtime/utils/api/page-expose-util.d.ts +0 -1
  209. package/dist/lib/components/runtime/utils/assemblys-config.cjs +0 -16
  210. package/dist/lib/components/runtime/utils/barcode-util.cjs +0 -10
  211. package/dist/lib/components/runtime/utils/barcode-util.d.ts +0 -8
  212. package/dist/lib/components/runtime/utils/charts/chart-columnline-util.cjs +0 -137
  213. package/dist/lib/components/runtime/utils/charts/chart-gauge-util.cjs +0 -34
  214. package/dist/lib/components/runtime/utils/charts/chart-pie-util.cjs +0 -78
  215. package/dist/lib/components/runtime/utils/charts/chart-radar-util.cjs +0 -52
  216. package/dist/lib/components/runtime/utils/charts/chart-scatter-util.cjs +0 -43
  217. package/dist/lib/components/runtime/utils/charts/chart-util.cjs +0 -244
  218. package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +0 -115
  219. package/dist/lib/components/runtime/utils/common-util.cjs +0 -91
  220. package/dist/lib/components/runtime/utils/common-util.d.ts +0 -33
  221. package/dist/lib/components/runtime/utils/eventBus.cjs +0 -3
  222. package/dist/lib/components/runtime/utils/eventBus.d.ts +0 -7
  223. package/dist/lib/components/runtime/utils/events/event-util.cjs +0 -345
  224. package/dist/lib/components/runtime/utils/events/event-util.d.ts +0 -92
  225. package/dist/lib/components/runtime/utils/events/print-label.cjs +0 -97
  226. package/dist/lib/components/runtime/utils/events/print-label.d.ts +0 -5
  227. package/dist/lib/components/runtime/utils/events/standard-event.cjs +0 -1101
  228. package/dist/lib/components/runtime/utils/events/standard-event.d.ts +0 -99
  229. package/dist/lib/components/runtime/utils/events/validator-util.cjs +0 -296
  230. package/dist/lib/components/runtime/utils/events/validator-util.d.ts +0 -25
  231. package/dist/lib/components/runtime/utils/form/date-shortcuts.cjs +0 -34
  232. package/dist/lib/components/runtime/utils/form/date-shortcuts.d.ts +0 -7
  233. package/dist/lib/components/runtime/utils/form/scan-util.cjs +0 -90
  234. package/dist/lib/components/runtime/utils/global-refs.cjs +0 -42
  235. package/dist/lib/components/runtime/utils/global-refs.d.ts +0 -65
  236. package/dist/lib/components/runtime/utils/i18n-util.cjs +0 -11
  237. package/dist/lib/components/runtime/utils/i18n-util.d.ts +0 -1
  238. package/dist/lib/components/runtime/utils/interfaces/page-design-types.cjs +0 -4
  239. package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +0 -247
  240. package/dist/lib/components/runtime/utils/page-helper-util.cjs +0 -354
  241. package/dist/lib/components/runtime/utils/page-helper-util.d.ts +0 -174
  242. package/dist/lib/components/runtime/utils/page-init-util.cjs +0 -244
  243. package/dist/lib/components/runtime/utils/page-init-util.d.ts +0 -49
  244. package/dist/lib/components/runtime/utils/page-permission-util.cjs +0 -26
  245. package/dist/lib/components/runtime/utils/page-permission-util.d.ts +0 -26
  246. package/dist/lib/components/runtime/utils/page-store.cjs +0 -50
  247. package/dist/lib/components/runtime/utils/page-store.d.ts +0 -58
  248. package/dist/lib/components/runtime/utils/store-util.cjs +0 -11
  249. package/dist/lib/components/runtime/utils/store-util.d.ts +0 -15
  250. package/dist/lib/components/runtime/utils/store.cjs +0 -3
  251. package/dist/lib/components/runtime/utils/store.d.ts +0 -2
  252. package/dist/lib/components/runtime/utils/table-utils.cjs +0 -68
  253. package/dist/lib/components/runtime/utils/table-utils.d.ts +0 -36
  254. package/dist/lib/components/runtime/utils/tree-utils.cjs +0 -54
  255. package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.cjs +0 -3
  256. package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.cjs +0 -24
  257. package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.cjs +0 -5
  258. package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.cjs +0 -17
  259. package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.cjs +0 -3
  260. package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.cjs +0 -35
  261. package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.cjs +0 -3
  262. package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.cjs +0 -3
  263. package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.cjs +0 -3
  264. package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.cjs +0 -17
  265. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.cjs +0 -5
  266. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.cjs +0 -41
  267. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.cjs +0 -11
  268. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.cjs +0 -3
  269. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.cjs +0 -11
  270. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.cjs +0 -3
  271. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.cjs +0 -53
  272. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.cjs +0 -3
  273. package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.cjs +0 -5
  274. package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.cjs +0 -48
  275. package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.cjs +0 -5
  276. package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.cjs +0 -24
  277. package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.cjs +0 -5
  278. package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.cjs +0 -34
  279. package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.cjs +0 -5
  280. package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.cjs +0 -24
  281. package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.cjs +0 -5
  282. package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.cjs +0 -24
  283. package/dist/lib/components/runtime/views/assemblys/chart/table/chart-table-util.cjs +0 -402
  284. package/dist/lib/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +0 -121
  285. package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue.cjs +0 -3
  286. package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue2.cjs +0 -3
  287. package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue.cjs +0 -6
  288. package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue2.cjs +0 -3
  289. package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue.cjs +0 -36
  290. package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue2.cjs +0 -3
  291. package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue.cjs +0 -13
  292. package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue2.cjs +0 -3
  293. package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue.cjs +0 -3
  294. package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue2.cjs +0 -249
  295. package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue.cjs +0 -16
  296. package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue.d.ts +0 -5
  297. package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue2.cjs +0 -3
  298. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.cjs +0 -32
  299. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -28
  300. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.cjs +0 -3
  301. package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue.cjs +0 -32
  302. package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue.d.ts +0 -27
  303. package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue2.cjs +0 -3
  304. package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.cjs +0 -19
  305. package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.d.ts +0 -59
  306. package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue2.cjs +0 -3
  307. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.cjs +0 -12
  308. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -35
  309. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.cjs +0 -3
  310. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue.cjs +0 -21
  311. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue.d.ts +0 -26
  312. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue2.cjs +0 -3
  313. package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.cjs +0 -13
  314. package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.d.ts +0 -35
  315. package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue2.cjs +0 -3
  316. package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.cjs +0 -30
  317. package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.d.ts +0 -31
  318. package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue2.cjs +0 -3
  319. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.cjs +0 -15
  320. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -26
  321. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.cjs +0 -3
  322. package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.cjs +0 -5
  323. package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.cjs +0 -21
  324. package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.cjs +0 -3
  325. package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.cjs +0 -17
  326. package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.cjs +0 -3
  327. package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.cjs +0 -15
  328. package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue.cjs +0 -5
  329. package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue2.cjs +0 -27
  330. package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue.cjs +0 -5
  331. package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue.d.ts +0 -94
  332. package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.cjs +0 -79
  333. package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.cjs +0 -3
  334. package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.cjs +0 -20
  335. package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.cjs +0 -3
  336. package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.cjs +0 -15
  337. package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.cjs +0 -3
  338. package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.cjs +0 -12
  339. package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.cjs +0 -5
  340. package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.cjs +0 -88
  341. package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.cjs +0 -5
  342. package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.cjs +0 -43
  343. package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.cjs +0 -3
  344. package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.cjs +0 -59
  345. package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.cjs +0 -382
  346. package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.cjs +0 -3
  347. package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.cjs +0 -322
  348. package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.cjs +0 -3
  349. package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.cjs +0 -3
  350. package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.cjs +0 -81
  351. package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue.cjs +0 -5
  352. package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.cjs +0 -124
  353. package/dist/lib/components/runtime/views/assemblys/error-render.vue.cjs +0 -3
  354. package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +0 -22
  355. package/dist/lib/components/runtime/views/assemblys/error-render.vue2.cjs +0 -3
  356. package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.cjs +0 -3
  357. package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.cjs +0 -57
  358. package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue.cjs +0 -35
  359. package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.cjs +0 -3
  360. package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime.vue.cjs +0 -3
  361. package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.cjs +0 -57
  362. package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.cjs +0 -3
  363. package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.cjs +0 -91
  364. package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.cjs +0 -3
  365. package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.cjs +0 -47
  366. package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.cjs +0 -3
  367. package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.cjs +0 -20
  368. package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.cjs +0 -3
  369. package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.cjs +0 -65
  370. package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.cjs +0 -3
  371. package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.cjs +0 -20
  372. package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.cjs +0 -3
  373. package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.cjs +0 -70
  374. package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.cjs +0 -5
  375. package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.cjs +0 -31
  376. package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.cjs +0 -3
  377. package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.cjs +0 -26
  378. package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.cjs +0 -5
  379. package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.cjs +0 -13
  380. package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.cjs +0 -3
  381. package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.cjs +0 -75
  382. package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.cjs +0 -5
  383. package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.cjs +0 -188
  384. package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.cjs +0 -3
  385. package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.cjs +0 -130
  386. package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.cjs +0 -3
  387. package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.cjs +0 -11
  388. package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.cjs +0 -3
  389. package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.cjs +0 -29
  390. package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.cjs +0 -3
  391. package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.cjs +0 -38
  392. package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.cjs +0 -3
  393. package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.cjs +0 -20
  394. package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue.cjs +0 -73
  395. package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue.d.ts +0 -17
  396. package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue2.cjs +0 -3
  397. package/dist/lib/components/runtime/views/assemblys/object-render.vue.cjs +0 -132
  398. package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
  399. package/dist/lib/components/runtime/views/assemblys/object-render.vue2.cjs +0 -3
  400. package/dist/lib/components/runtime/views/assemblys/page-bottom.vue.cjs +0 -3
  401. package/dist/lib/components/runtime/views/assemblys/page-bottom.vue.d.ts +0 -14
  402. package/dist/lib/components/runtime/views/assemblys/page-bottom.vue2.cjs +0 -3
  403. package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.cjs +0 -5
  404. package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.d.ts +0 -14
  405. package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.cjs +0 -23
  406. package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.cjs +0 -5
  407. package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.cjs +0 -23
  408. package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.cjs +0 -5
  409. package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.cjs +0 -34
  410. package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.cjs +0 -3
  411. package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.cjs +0 -17
  412. package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.cjs +0 -3
  413. package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.cjs +0 -20
  414. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.cjs +0 -5
  415. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.cjs +0 -19
  416. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.cjs +0 -3
  417. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.cjs +0 -14
  418. package/dist/lib/components/runtime/views/home-chart.vue.cjs +0 -38
  419. package/dist/lib/components/runtime/views/home-chart.vue.d.ts +0 -23
  420. package/dist/lib/components/runtime/views/home-chart.vue2.cjs +0 -3
  421. package/dist/lib/components/runtime/views/super-page-dialog.vue.cjs +0 -23
  422. package/dist/lib/components/runtime/views/super-page-dialog.vue.d.ts +0 -40
  423. package/dist/lib/components/runtime/views/super-page-dialog.vue3.cjs +0 -3
  424. package/dist/lib/components/runtime/views/super-page.vue.cjs +0 -5
  425. package/dist/lib/components/runtime/views/super-page.vue.d.ts +0 -135
  426. package/dist/lib/components/runtime/views/super-page.vue2.cjs +0 -264
  427. package/dist/lib/favicon.ico +0 -0
  428. package/dist/lib/i18n/langs/cn.cjs +0 -2
  429. package/dist/lib/i18n/langs/en.cjs +0 -2
  430. package/dist/lib/index.cjs +0 -6
  431. package/dist/lib/index.d.ts +0 -16
  432. package/dist/lib/style.css +0 -996
  433. package/dist/umd/favicon.ico +0 -0
  434. package/dist/umd/index.full.min.js +0 -7429
  435. package/dist/umd/style.css +0 -996
@@ -1,137 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const e = require("../page-helper-util.cjs"), t = require("../common-util.cjs"), o = require("./chart-util.cjs"), a = require("../events/event-util.cjs");
4
- exports.updateChartOption = function(i, s, l, r) {
5
- if (!r || !r.result) return;
6
- o.setDefaultGrid(l), l.tooltip || (l.tooltip = {}), a.handleChartEvent(i, s, "beforeUpdateChart", l, { resultData: r });
7
- const u = r && r.result ? r.result : {};
8
- let n = r && r.groupValue ? r.groupValue : void 0;
9
- const c = s.serviceDataField;
10
- let d = null;
11
- c ? d = u[c] : u && (d = Array.isArray(u) ? u : [u]), d || (d = []), s.runtime.dataConfig.runtimeData = d;
12
- let f = s.props ? s.props.groups : null;
13
- if (f || (f = []), !n || 0 === n.length) {
14
- n = [];
15
- for (const e2 of f) n.push(e2.group);
16
- }
17
- const m = {}, p = [], h = [];
18
- for (const e2 of f) m[e2.group] = e2.target, e2.target && !p.includes(e2.target) && (p.push(e2.target), n.includes(e2.group) && h.push(e2.target));
19
- let y = s.props ? s.props.mulGroupShow : "";
20
- y = "break" == y ? "\r\n" : " ";
21
- for (const t2 of d) {
22
- if (!t2) continue;
23
- const a2 = [];
24
- for (const o2 of n) {
25
- const i3 = m[o2], s2 = e.getValueFromSource(t2, i3, void 0);
26
- s2 && a2.push(s2);
27
- }
28
- const i2 = a2.join(y);
29
- t2[o.CommonName.X_FIELD_NAME] = i2;
30
- }
31
- const g = s.items ? s.items : [], F = [], S = {}, v = [], D = {}, N = [], x = [], C = /* @__PURE__ */ new Set(), E = o.caculateFormulaValue(g, d, C);
32
- for (const e2 of C) N.push(e2);
33
- for (const e2 of g) {
34
- const t2 = e2.props ? e2.props : {}, o2 = t2.yaxisSource, a2 = t2.yaxisField, i2 = t2.isCumulative;
35
- let s2 = null;
36
- if (!a2 || o2 && "variable" != o2) if ("formula" == o2) {
37
- let o3 = t2.formula ? t2.formula : "";
38
- for (const e3 in E) o3 = o3.replace(new RegExp(e3.replace("$", "\\$"), "g"), E[e3]);
39
- s2 = { uuid: e2.uuid, type: "formula", formula: o3, data: [], dynamicDatas: [] };
40
- } else s2 = { uuid: e2.uuid, type: "fixed", field: t2.yaxisFix, data: [], dynamicDatas: [] };
41
- else s2 = { uuid: e2.uuid, type: "variable", field: a2, isCumulative: i2, data: [], dynamicDatas: [] }, a2 && !N.includes(a2) && N.push(a2), a2 && !x.includes(a2) && x.push(a2), i2 && !C.has(a2) && C.add(a2);
42
- null != s2 && (F.push(s2), S[e2.uuid] = s2), t2.dynamicSeriesField && !v.includes(t2.dynamicSeriesField) && s2 && (s2.dynamicField = t2.dynamicSeriesField, s2.dynamicSeriesTitle = t2.dynamicSeriesTitle, s2.dynamicShowStack = t2.dynamicShowStack, v.push(t2.dynamicSeriesField), D[t2.dynamicSeriesField] = a2);
43
- }
44
- const V = {};
45
- if (v.length > 0) {
46
- const t2 = [], a2 = {};
47
- for (const i2 of d) if (i2) for (const s2 of N) {
48
- const l2 = i2[o.CommonName.X_FIELD_NAME];
49
- let r2 = a2[l2];
50
- if (!r2) {
51
- r2 = {};
52
- for (const e2 of p) r2[e2] = i2[e2];
53
- r2[o.CommonName.X_FIELD_NAME] = i2[o.CommonName.X_FIELD_NAME], a2[l2] = r2, t2.push(r2);
54
- }
55
- let u2 = e.getValueFromSource(i2, s2, void 0);
56
- if (!isNaN(u2)) {
57
- const e2 = r2[s2];
58
- isNaN || (u2 += e2), r2[s2] = u2;
59
- }
60
- }
61
- for (const t3 of v) {
62
- const i2 = [];
63
- for (const s2 of d) {
64
- if (!s2) continue;
65
- const l2 = a2[s2[o.CommonName.X_FIELD_NAME]];
66
- if (!l2) continue;
67
- let r2 = e.getValueFromSource(s2, t3, void 0);
68
- r2 = null == r2 || null == r2 ? "" : r2, i2.includes(r2) || (i2.push(r2), x.push(r2), C.add(r2));
69
- const u2 = D[t3];
70
- if (void 0 !== u2) {
71
- const t4 = e.getValueFromSource(s2, u2, void 0);
72
- let o2 = l2[r2];
73
- void 0 === o2 ? o2 = t4 : isNaN(t4) || (o2 += t4), l2[r2] = o2;
74
- }
75
- }
76
- V[t3] = i2;
77
- }
78
- d = t2;
79
- }
80
- o.sortDatas(i, s, d), d = o.limitDatas(i, s, d, p, x);
81
- const b = [], A = {};
82
- for (const t2 of d) if (t2) {
83
- for (const o2 of C) {
84
- const a2 = e.getValueFromSource(t2, o2, void 0);
85
- let i2 = A[o2];
86
- void 0 === a2 || isNaN(a2) || (void 0 === i2 ? i2 = a2 : i2 += a2), A[o2] = i2;
87
- }
88
- b.push(t2[o.CommonName.X_FIELD_NAME]);
89
- for (const a2 of F) {
90
- let s2 = a2.data;
91
- const l2 = a2.dynamicDatas;
92
- if (a2.dynamicField) {
93
- let o2 = V[a2.dynamicField];
94
- o2 = o2 || [];
95
- for (let i2 = 0; i2 < o2.length; i2++) {
96
- i2 >= l2.length && l2.push([]), s2 = l2[i2];
97
- const r2 = o2[i2];
98
- let u2 = e.getValueFromSource(t2, r2, void 0);
99
- a2.isCumulative && (u2 = A[r2]), s2.push(u2);
100
- }
101
- } else if ("fixed" === a2.type) s2.push(a2.field);
102
- else if ("variable" === a2.type) {
103
- let o2 = e.getValueFromSource(t2, a2.field, void 0);
104
- a2.isCumulative && (o2 = A[a2.field]), s2.push(o2);
105
- } else if ("formula" === a2.type) {
106
- const e2 = o.executeChartFormula(a2.formula, A, t2, i);
107
- s2.push(e2);
108
- } else s2.push(void 0);
109
- }
110
- }
111
- const _ = s.defaultSeries, I = t.deepCopy(null == _ ? [] : _), w = [];
112
- for (const o2 of I) {
113
- const a2 = S[o2.uuid];
114
- if (a2.dynamicField) {
115
- let s2 = V[a2.dynamicField];
116
- s2 = s2 || [];
117
- const l2 = a2.dynamicDatas ? a2.dynamicDatas : [];
118
- for (let r2 = 0; r2 < s2.length; r2++) {
119
- const u2 = s2[r2], n2 = t.deepCopy(o2);
120
- if (a2.dynamicSeriesTitle) {
121
- const t2 = a2.dynamicSeriesTitle.replace("${name}", u2);
122
- n2.name = e.formatVariableValue(i, t2);
123
- } else n2.name = u2;
124
- n2.data = r2 < l2.length ? l2[r2] : [], "bar" == o2.type && a2.dynamicShowStack && (n2.stack = o2.uuid), w.push(n2);
125
- }
126
- } else o2.data = a2 ? a2.data : [], w.push(o2);
127
- }
128
- l.series = w;
129
- const M = s.defaultXaxis, X = s.defaultYaxis;
130
- if (l.isBar) {
131
- if (X) for (const e2 of X) e2.data = b;
132
- l.xAxis = M, l.yAxis = X;
133
- } else M && M.length > 0 && (M[0].data = b), l.xAxis = M, l.yAxis = X;
134
- o.formatToolboxI18n(l);
135
- const j = s.props ? s.props.selGroupVariable : null;
136
- !(s.props ? s.props.enableDrill : null) && j && (s.highlightInfos = [], e.setValueForVariableName(i.entity, j, null)), a.handleChartEvent(i, s, "afterUpdateChart", l, { resultData: r }), s.groupFields = h, s.cacheDatas = d, s.rawResult = r;
137
- };
@@ -1,34 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const e = require("../page-helper-util.cjs"), t = require("../common-util.cjs"), r = require("./chart-util.cjs"), o = require("../events/event-util.cjs");
4
- exports.updateChartOption = function(a, l, s, i) {
5
- if (!i || !i.result) return;
6
- o.handleChartEvent(a, l, "beforeUpdateChart", s, { resultData: i }), r.setDefaultGrid(s);
7
- const n = i && i.result ? i.result : {}, u = l.serviceDataField;
8
- let p = null;
9
- u ? p = n[u] : n && (p = [n]), p || (p = []);
10
- const c = l.props ? l.props.nameSource : void 0, d = l.props ? l.props.nameField : void 0, h = l.props ? l.props.nameFixed : void 0, f = l.props ? l.props.yaxisField : void 0, m = [d], v = [], g = [];
11
- for (const t2 of p) {
12
- if (!t2) continue;
13
- let r2 = null;
14
- r2 = "fixed" == c ? e.formatVariableValue(a, h) : e.getValueFromSource(t2, d, void 0), v.push(r2);
15
- const o2 = e.getValueFromSource(t2, f, void 0);
16
- g.push(o2);
17
- }
18
- const C = l.defaultSeries;
19
- let F = C[0].pieColors;
20
- F = F || [];
21
- let S = C[0].pieColorMap;
22
- S = S || {};
23
- const x = [];
24
- for (let e2 = 0; e2 < v.length && e2 < g.length; e2++) {
25
- const t2 = { value: g[e2], name: v[e2] };
26
- if (e2 < F.length || S[t2.name]) {
27
- let r2 = S[t2.name];
28
- r2 || (r2 = F[e2]), r2 && (t2.itemStyle = { color: r2 });
29
- }
30
- x.push(t2);
31
- }
32
- const b = t.deepCopy(C);
33
- b[0].data = x, s.series = [b[0]], r.formatToolboxI18n(s), o.handleChartEvent(a, l, "afterUpdateChart", s, { resultData: i }), l.groupFields = m, l.cacheDatas = p, l.rawResult = i;
34
- };
@@ -1,78 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const e = require("../page-helper-util.cjs"), o = require("../common-util.cjs"), t = require("./chart-util.cjs"), r = require("../events/event-util.cjs");
4
- exports.updateChartOption = function(s, a, l, n) {
5
- if (!n || !n.result) return;
6
- r.handleChartEvent(s, a, "beforeUpdateChart", l, { resultData: n }), t.setDefaultGrid(l);
7
- const u = n && n.result ? n.result : {};
8
- let i = n && n.groupValue ? n.groupValue : void 0;
9
- const p = a.serviceDataField;
10
- let c = null;
11
- p ? c = u[p] : u && (c = Array.isArray(u) ? u : [u]), c || (c = []);
12
- let f = a.props ? a.props.groups : null;
13
- if (f || (f = []), !i || 0 === i.length) {
14
- i = [];
15
- for (const e2 of f) i.push(e2.group);
16
- }
17
- const m = {}, g = [], h = [];
18
- for (const e2 of f) m[e2.group] = e2.target, e2.target && !g.includes(e2.target) && (g.push(e2.target), i.includes(e2.group) && h.push(e2.target));
19
- let d = a.props ? a.props.mulGroupShow : "";
20
- d = "break" == d ? "\r\n" : " ";
21
- for (const o2 of c) {
22
- if (!o2) continue;
23
- const r2 = [];
24
- for (const t2 of i) {
25
- const s3 = m[t2], a2 = e.getValueFromSource(o2, s3, void 0);
26
- a2 && r2.push(a2);
27
- }
28
- const s2 = r2.join(d);
29
- o2[t.CommonName.X_FIELD_NAME] = s2;
30
- }
31
- const y = a.items ? a.items : [];
32
- if (0 == y.length) return;
33
- const v = a.props ? a.props : {};
34
- let F = v.yaxisField;
35
- if (y[0].props.yaxisField = F, y[0].props.yaxisSource = v.yaxisSource, y[0].props.formula = v.formula, "formula" === v.yaxisSource) {
36
- const o2 = [], r2 = t.caculateFormulaValue(y, c, o2);
37
- let a2 = v.formula ? v.formula : "";
38
- for (const e2 in r2) a2 = a2.replace(new RegExp(e2.replace("$", "\\$"), "g"), r2[e2]);
39
- F = t.CommonName.Y_TEMP_NAME;
40
- const l2 = {};
41
- for (const r3 of c) {
42
- if (!r3) continue;
43
- for (const t2 of o2) {
44
- const o3 = e.getValueFromSource(r3, t2, void 0);
45
- let s2 = l2[t2];
46
- void 0 === o3 || isNaN(o3) || (void 0 === s2 ? s2 = o3 : s2 += o3), l2[t2] = s2;
47
- }
48
- const n2 = t.executeChartFormula(a2, l2, r3, s);
49
- r3[F] = n2;
50
- }
51
- }
52
- y[0].props.yaxisField = F, y[0].props.yaxisSource = "", t.sortDatas(s, a, c), c = t.limitDatas(s, a, c, g, [F]);
53
- const x = [], C = [];
54
- for (const o2 of c) {
55
- if (!o2) continue;
56
- x.push(o2[t.CommonName.X_FIELD_NAME]);
57
- const r2 = e.getValueFromSource(o2, F, void 0);
58
- C.push(r2);
59
- }
60
- const S = a.defaultSeries;
61
- let D = S[0].pieColors;
62
- D = D || [];
63
- let E = S[0].pieColorMap;
64
- E = E || {};
65
- const N = [];
66
- for (let e2 = 0; e2 < x.length && e2 < C.length; e2++) {
67
- const o2 = { value: C[e2], name: x[e2] };
68
- if (e2 < D.length || E[o2.name]) {
69
- let t2 = E[o2.name];
70
- t2 || (t2 = D[e2]), t2 && (o2.itemStyle = { color: t2 });
71
- }
72
- N.push(o2);
73
- }
74
- const V = o.deepCopy(S);
75
- V[0].data = N, l.series = [V[0]], t.formatToolboxI18n(l);
76
- const b = a.props ? a.props.selGroupVariable : null;
77
- !(a.props ? a.props.enableDrill : null) && b && (a.highlightInfos = [], e.setValueForVariableName(s.entity, b, null)), r.handleChartEvent(s, a, "afterUpdateChart", l, { resultData: n }), a.groupFields = h, a.cacheDatas = c, a.rawResult = n;
78
- };
@@ -1,52 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const e = require("../page-helper-util.cjs"), t = require("../common-util.cjs"), a = require("./chart-util.cjs"), r = require("../events/event-util.cjs");
4
- exports.updateChartOption = function(o, u, i, l) {
5
- if (!l || !l.result) return;
6
- r.handleChartEvent(o, u, "beforeUpdateChart", i, { resultData: l }), a.setDefaultGrid(i);
7
- const s = l && l.result ? l.result : {}, d = u.serviceDataField;
8
- let c = null;
9
- d ? c = s[d] : s && (c = Array.isArray(s) ? s : [s]), c || (c = []);
10
- const n = u.items ? u.items : [], f = [], p = {}, m = [], v = a.caculateFormulaValue(n, c, m);
11
- for (const e2 of n) {
12
- const t2 = e2.props ? e2.props : {}, a2 = t2.yaxisSource, r2 = t2.yaxisField;
13
- let o2 = null;
14
- if (!r2 || a2 && "variable" != a2) if ("formula" == a2) {
15
- let a3 = t2.formula ? t2.formula : "";
16
- for (const e3 in v) a3 = a3.replace(new RegExp(e3.replace("$", "\\$"), "g"), v[e3]);
17
- o2 = { uuid: e2.uuid, type: "formula", formula: a3, data: [] };
18
- } else o2 = { uuid: e2.uuid, type: "fixed", field: t2.yaxisFix, data: [] };
19
- else o2 = { uuid: e2.uuid, type: "variable", field: r2, data: [] };
20
- o2 && (f.push(o2), p[o2.uuid] = o2);
21
- }
22
- const h = u.props ? u.props : {}, x = h.nameField, y = h.maxSource, F = h.maxField, g = h.maxFixed, S = [], b = {};
23
- for (const t2 of c) {
24
- if (!t2) continue;
25
- const r2 = e.getValueFromSource(t2, x, void 0);
26
- let u2 = null;
27
- u2 = y && "variable" != y ? g : e.getValueFromSource(t2, F, void 0), S.push({ text: r2, max: u2 });
28
- for (const a2 of m) {
29
- const r3 = e.getValueFromSource(t2, a2, void 0);
30
- let o2 = b[a2];
31
- void 0 === r3 || isNaN(r3) || (void 0 === o2 ? o2 = r3 : o2 += r3), b[a2] = o2;
32
- }
33
- for (const r3 of f) {
34
- const u3 = r3.data;
35
- if ("fixed" == r3.type) u3.push(r3.field);
36
- else if ("variable" == r3.type) {
37
- const a2 = e.getValueFromSource(t2, r3.field, void 0);
38
- u3.push(a2);
39
- } else if ("formula" == r3.type) {
40
- const e2 = a.executeChartFormula(r3.formula, b, t2, o);
41
- u3.push(e2);
42
- } else u3.push(void 0);
43
- }
44
- }
45
- i.radar[0].indicator = S, a.formatToolboxI18n(i);
46
- const C = u.defaultSeries, j = t.deepCopy(C), D = j[0].data;
47
- for (const e2 of D) {
48
- const t2 = p[e2.uuid];
49
- e2.value = t2.data;
50
- }
51
- i.series = j, r.handleChartEvent(o, u, "afterUpdateChart", i, { resultData: l }), u.cacheDatas = c, u.rawResult = l;
52
- };
@@ -1,43 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const e = require("../page-helper-util.cjs"), o = require("../common-util.cjs"), t = require("./chart-util.cjs"), r = require("../events/event-util.cjs");
4
- exports.updateChartOption = function(s, a, i, u) {
5
- if (!u || !u.result) return;
6
- r.handleChartEvent(s, a, "beforeUpdateChart", i, { resultData: u }), t.setDefaultGrid(i);
7
- const l = u && u.result ? u.result : {}, c = a.serviceDataField;
8
- let d = null;
9
- c ? d = l[c] : l && (d = Array.isArray(l) ? l : [l]), d || (d = []);
10
- const n = a.items ? a.items : [], f = [], p = {};
11
- for (const e2 of n) {
12
- const o2 = e2.props ? e2.props : {}, t2 = e2.props ? e2.style : {}, r2 = o2.xaxisField, s2 = o2.sizeField, a2 = { uuid: e2.uuid, xaxisField: r2, yaxisField: o2.yaxisField, yaxisSource: o2.yaxisSource, formula: o2.formula, sizeField: s2, symbolSize: t2.symbolSize, data: [] };
13
- f.push(a2), p[a2.uuid] = a2;
14
- }
15
- const m = [], x = t.caculateFormulaValue(n, d, m);
16
- for (const e2 of f) if ("formula" === e2.yaxisSource) {
17
- let o2 = e2.formula ? e2.formula : "";
18
- for (const e3 in x) o2 = o2.replace(new RegExp(e3.replace("$", "\\$"), "g"), x[e3]);
19
- e2.formula = o2;
20
- }
21
- const h = {};
22
- for (const o2 of d) if (o2) {
23
- for (const t2 of m) {
24
- const r2 = e.getValueFromSource(o2, t2, void 0);
25
- let s2 = h[t2];
26
- void 0 === r2 || isNaN(r2) || (void 0 === s2 ? s2 = r2 : s2 += r2), h[t2] = s2;
27
- }
28
- for (const r2 of f) {
29
- const a2 = r2.data, i2 = [];
30
- if (i2.push(e.getValueFromSource(o2, r2.xaxisField, void 0)), "formula" === r2.yaxisSource) {
31
- const e2 = t.executeChartFormula(r2.formula, h, o2, s);
32
- i2.push(e2);
33
- } else i2.push(e.getValueFromSource(o2, r2.yaxisField, void 0));
34
- r2.sizeField ? i2.push(e.getValueFromSource(o2, r2.xaxisField, void 0)) : i2.push(r2.symbolSize), a2.push(i2);
35
- }
36
- }
37
- const F = a.defaultSeries, y = o.deepCopy(F);
38
- for (const e2 of y) {
39
- const o2 = p[e2.uuid];
40
- e2.data = o2.data;
41
- }
42
- i.series = y, t.formatToolboxI18n(i), r.handleChartEvent(s, a, "afterUpdateChart", i, { resultData: u }), a.cacheDatas = d, a.rawResult = u;
43
- };
@@ -1,244 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const e = require("../../../../assets/chart-themes/bar-theme.cjs"), t = require("../../../../assets/chart-themes/gauge-theme.cjs"), r = require("../../../../assets/chart-themes/pie-theme.cjs"), o = require("../../../../assets/chart-themes/radar-theme.cjs"), a = require("../../../../assets/chart-themes/scatter-theme.cjs"), s = require("../page-init-util.cjs"), i = require("../page-helper-util.cjs"), n = require("agilebuilder-ui"), l = require("../events/event-util.cjs");
4
- var c = ((e2) => (e2.X_FIELD_NAME = "__x", e2.Y_TEMP_NAME = "__y", e2))(c || {});
5
- function u(e2, t2, r2, o2, a2) {
6
- return function(s2) {
7
- let i2 = s2 == null ? void 0 : s2.value;
8
- if (a2 && (i2 = s2), null == i2 || null == i2) return i2;
9
- if (Array.isArray(i2)) return i2;
10
- if (isNaN(i2) || !e2 || !e2.indexOf) return i2;
11
- if (e2.indexOf("precision") > -1) {
12
- let e3 = parseInt(t2);
13
- (null == e3 || isNaN(e3)) && (e3 = 2), i2 = parseFloat(parseFloat(i2).toFixed(e3));
14
- }
15
- let n2 = "";
16
- e2.indexOf("prefix") > -1 && r2 && (n2 = r2);
17
- let l2 = "";
18
- return e2.indexOf("append") > -1 && o2 && (l2 = o2), n2 + i2.toLocaleString() + l2;
19
- };
20
- }
21
- function f(e2, t2) {
22
- if (!t2.clickSet) return;
23
- const r2 = t2.clickSet, o2 = r2.variables;
24
- if (!o2 || 0 == o2.length) return;
25
- const a2 = t2.highlightInfos ? t2.highlightInfos : [], s2 = t2.cacheDatas ? t2.cacheDatas : [], n2 = [], l2 = [];
26
- for (const e3 of a2) l2.includes(e3.dataIndex) || (l2.push(e3.dataIndex), e3.dataIndex < s2.length && n2.push(s2[e3.dataIndex]));
27
- for (const t3 of o2) {
28
- if (!t3.fieldName || !t3.variable) continue;
29
- const o3 = [];
30
- for (const e3 of n2) {
31
- const r3 = i.getValueFromSource(e3, t3.fieldName, void 0);
32
- null != r3 && o3.push(r3);
33
- }
34
- r2.multiple ? i.setValueForVariableName(e2.entity, t3.variable, o3) : i.setValueForVariableName(e2.entity, t3.variable, o3.length > 0 ? o3[0] : void 0);
35
- }
36
- }
37
- function p(e2, t2) {
38
- let r2;
39
- for (const o2 of e2) {
40
- const e3 = parseFloat(i.getValueFromSource(o2, t2, null));
41
- (void 0 === r2 || !isNaN(e3) && e3 < r2) && (r2 = e3);
42
- }
43
- return r2;
44
- }
45
- function d(e2, t2) {
46
- let r2;
47
- for (const o2 of e2) {
48
- const e3 = parseFloat(i.getValueFromSource(o2, t2, null));
49
- (void 0 === r2 || !isNaN(e3) && e3 > r2) && (r2 = e3);
50
- }
51
- return r2;
52
- }
53
- function h(e2, t2) {
54
- let r2;
55
- for (const o2 of e2) {
56
- const e3 = parseFloat(i.getValueFromSource(o2, t2, null));
57
- void 0 === r2 ? r2 = e3 : isNaN(e3) || (r2 += e3);
58
- }
59
- return r2;
60
- }
61
- function g(e2, t2) {
62
- const r2 = h(e2, t2);
63
- return void 0 === r2 || 0 === e2.length ? r2 : parseFloat((r2 / e2.length).toFixed(5));
64
- }
65
- exports.CommonName = c, exports.caculateFormulaValue = function(e2, t2, r2) {
66
- const o2 = {};
67
- for (const a2 of e2) {
68
- const e3 = a2.props ? a2.props : {};
69
- if ("formula" === e3.yaxisSource) {
70
- const a3 = i.getParamNames(e3.formula);
71
- for (const e4 of a3) if (!(e4 in o2)) {
72
- if (e4.startsWith("${min.")) o2[e4] = p(t2, e4.substring(6, e4.length - 1));
73
- else if (e4.startsWith("${max.")) o2[e4] = d(t2, e4.substring(6, e4.length - 1));
74
- else if (e4.startsWith("${sum.")) o2[e4] = h(t2, e4.substring(6, e4.length - 1));
75
- else if (e4.startsWith("${avg.")) o2[e4] = g(t2, e4.substring(6, e4.length - 1));
76
- else if (e4.startsWith("${add.")) {
77
- const t3 = e4.substring(6, e4.length - 1);
78
- r2.add(t3);
79
- }
80
- }
81
- }
82
- }
83
- return o2;
84
- }, exports.clearChartSelected = function(e2, t2, r2) {
85
- if (!r2 || !t2 || !e2) return;
86
- const o2 = t2.highlightInfos ? t2.highlightInfos : [];
87
- for (let e3 = 0; e3 < o2.length; e3++) {
88
- const a2 = o2[e3], s2 = "chart-pie" === t2.name ? "unselect" : "downplay";
89
- r2.dispatchAction({ type: s2, seriesIndex: a2.seriesIndex, dataIndex: a2.dataIndex });
90
- }
91
- t2.highlightInfos = [], f(e2, t2);
92
- }, exports.executeChartFormula = function(e2, t2, r2, o2) {
93
- if (!e2) return;
94
- if (t2) for (const r3 in t2) e2 = e2.replace(new RegExp("\\${add." + r3 + "}", "g"), t2[r3]);
95
- const a2 = i.getParamNames(e2);
96
- for (const t3 of a2) {
97
- let a3 = null;
98
- a3 = t3.startsWith("${row.") ? i.getValueFromSource(r2, t3.substring(6, t3.length - 1), null) : i.getValueFromVariable(o2.entity, t3), e2 = e2.replace(new RegExp(t3.replace("$", "\\$"), "g"), a3);
99
- }
100
- e2.includes("return ") || (e2 = "return " + e2);
101
- const s2 = new Function("params", e2);
102
- return l.appendDefaultMethods(s2, o2), s2({ pageContext: o2, row: r2 });
103
- }, exports.exportCommonChart = function(e2, t2) {
104
- if (!e2 || !e2.$el) return;
105
- const r2 = e2.$el.getElementsByTagName("canvas");
106
- if (!r2 || 0 === r2.length) return;
107
- const o2 = r2[0], a2 = o2.width + ":" + o2.height;
108
- return { isTable: false, fileContent: o2.toDataURL(), fileSize: a2, title: t2 == null ? void 0 : t2.title };
109
- }, exports.formatToolboxI18n = function(e2) {
110
- var _a;
111
- if ((_a = e2 == null ? void 0 : e2.toolbox) == null ? void 0 : _a.feature) {
112
- const t2 = e2.toolbox.feature;
113
- for (const e3 in t2) t2[e3].show && (t2[e3].title = n.getI18n().t("chartMessage." + e3), "dataView" === e3 && (t2[e3].lang = [n.getI18n().t("chartMessage.dataView"), n.getI18n().t("chartMessage.close"), n.getI18n().t("chartMessage.refresh")]));
114
- }
115
- }, exports.getAvgValue = g, exports.getCustomTheme = function(s2, i2 = "bar") {
116
- return "bar" === i2 ? e[s2] : "gauge" === i2 ? t[s2] : "pie" === i2 ? r[s2] : "radar" === i2 ? o[s2] : "scatter" === i2 ? a[s2] : e[s2];
117
- }, exports.getCustomThemeOptions = function() {
118
- return [{ value: "theme1", label: "主题1" }, { value: "theme2", label: "主题2" }, { value: "theme3", label: "主题3" }];
119
- }, exports.getMaxValue = d, exports.getMinValue = p, exports.getNumFormatter = u, exports.getSumValue = h, exports.initChartOption = function(e2, t2) {
120
- if (!t2) return;
121
- if (t2.tooltipFormatterArgs && (t2.tooltip || (t2.tooltip = {}), t2.tooltip.valueFormatter = u.apply(t2, t2.tooltipFormatterArgs)), t2.series) {
122
- const r3 = e2.props ? e2.props.enableDrill : null;
123
- for (const o3 of t2.series) t2.radar || (o3.data = []), o3.labelFormatterArgs && (o3.label || (o3.label = {}), o3.label.formatter = u.apply(o3, o3.labelFormatterArgs)), !r3 && e2.clickSet && e2.clickSet.selected && o3.emphasis && (o3.emphasis.disabled = false), "pie" === o3.type && e2.clickSet && e2.clickSet.selected && (e2.clickSet.multiple ? o3.selectedMode = "multiple" : o3.selectedMode = "single");
124
- }
125
- if (t2.radar) for (const e3 of t2.radar) e3.indicator = [];
126
- const r2 = t2.series;
127
- e2.defaultSeries = r2;
128
- const o2 = t2.xAxis;
129
- o2 && o2.length > 0 && o2[0].data && (o2[0].data = []), e2.defaultXaxis = o2;
130
- const a2 = t2.yAxis;
131
- if (a2) for (const e3 of a2) e3.data && (e3.data = []), "auto" === e3._dataMin && (e3.min = function(e4) {
132
- if (e4.min) return 10 * Math.floor(e4.min / 10);
133
- }), "auto" === e3._dataMax && (e3.max = function(e4) {
134
- if (e4.max) return 10 * Math.ceil(e4.max / 10);
135
- });
136
- e2.defaultYaxis = a2;
137
- }, exports.limitDatas = function(e2, t2, r2, o2, a2) {
138
- if (!r2) return r2;
139
- const s2 = t2.props ? t2.props : {};
140
- if (!s2.limitQuantity) return r2;
141
- let n2 = null;
142
- if (s2.itemNumVariable ? (n2 = i.formatVariableValue(e2, s2.itemNumVariable), n2 = parseInt(n2)) : n2 = s2.itemNumFix ? s2.itemNumFix : 10, null == n2 || null == n2 || isNaN(n2)) return r2;
143
- if (r2.length < n2) return r2;
144
- const l2 = s2.overItemAlias, c2 = [], u2 = {};
145
- o2 = o2 || [], a2 = a2 || [];
146
- for (let e3 = 0; e3 < r2.length; e3++) {
147
- const t3 = r2[e3];
148
- if (e3 < n2) c2.push(t3);
149
- else {
150
- if (!l2) break;
151
- for (const e4 of o2) {
152
- if (!e4) continue;
153
- let r3 = i.getValueFromSource(t3, e4, void 0);
154
- r3 = null == r3 || null == r3 ? "" : r3, u2[e4] || (u2[e4] = []);
155
- const o3 = u2[e4];
156
- o3.includes(r3) || o3.push(r3);
157
- }
158
- for (const e4 of a2) {
159
- if (!e4) continue;
160
- const r3 = i.getValueFromSource(t3, e4, void 0);
161
- if (isNaN(r3)) continue;
162
- const o3 = u2[e4];
163
- isNaN(o3) ? u2[e4] = r3 : u2[e4] = r3 + o3;
164
- }
165
- }
166
- }
167
- return l2 && (u2.__x = l2, c2.push(u2)), c2;
168
- }, exports.monitorChartClickToVariable = function(e2, t2, r2) {
169
- if (!(r2 && t2 && t2.clickSet && e2)) return;
170
- const o2 = t2.clickSet;
171
- r2.on("click", function(a2) {
172
- let s2 = t2.highlightInfos ? t2.highlightInfos : [], i2 = -1;
173
- if (s2) {
174
- const e3 = [];
175
- for (let n2 = 0; n2 < s2.length; n2++) {
176
- const l2 = s2[n2], c2 = l2.seriesIndex === a2.seriesIndex && l2.dataIndex === a2.dataIndex;
177
- if (c2 || !o2.multiple) {
178
- if (o2.selected) {
179
- const e4 = "chart-pie" === t2.name ? "unselect" : "downplay";
180
- r2.dispatchAction({ type: e4, seriesIndex: l2.seriesIndex, dataIndex: l2.dataIndex });
181
- }
182
- } else e3.push(l2);
183
- c2 && (i2 = n2);
184
- }
185
- s2 = e3;
186
- }
187
- if (-1 === i2) {
188
- if (o2.selected) {
189
- const e3 = "chart-pie" === t2.name ? "select" : "highlight";
190
- r2.dispatchAction({ type: e3, seriesIndex: a2.seriesIndex, dataIndex: a2.dataIndex });
191
- }
192
- s2.push({ seriesIndex: a2.seriesIndex, dataIndex: a2.dataIndex });
193
- }
194
- t2.highlightInfos = s2, f(e2, t2);
195
- });
196
- }, exports.setDefaultGrid = function(e2) {
197
- if (e2 == null ? void 0 : e2.grid) {
198
- const t2 = e2.grid, r2 = (e3) => !e3 || "0" === e3;
199
- r2(t2.top) && r2(t2.right) && r2(t2.bottom) && r2(t2.left) && Object.assign(t2, { right: "10%", bottom: "60", left: "10%" });
200
- }
201
- }, exports.setHomeChartInitConfigValue = function(e2, t2, r2) {
202
- const o2 = window.localStorage.getItem("HOME_MY_CHARTS_CONDITIONS");
203
- let a2 = true;
204
- if (o2) {
205
- const e3 = JSON.parse(o2);
206
- if (e3[r2]) {
207
- const o3 = e3[r2];
208
- if (Object.keys(o3).length > 0) {
209
- a2 = false;
210
- for (const e4 in o3) null !== o3[e4] && void 0 !== o3[e4] && i.setValueForVariableName(t2.entity, e4, o3[e4]);
211
- }
212
- }
213
- }
214
- if (a2 && e2) {
215
- for (const r3 of e2) if (r3.prop && r3.value) {
216
- const e3 = s.getDefaultValue(t2, r3.value, "input-text", false), o3 = r3.prop.substring(2, r3.prop.length - 1).split(".");
217
- null != e3 && i.setVariableValue(t2.entity, o3, e3);
218
- }
219
- }
220
- }, exports.sortDatas = function(e2, t2, r2) {
221
- const o2 = t2.items ? t2.items : [], a2 = t2.props ? t2.props.orderByTarget : "";
222
- let s2 = null;
223
- if ("x" == a2 || "X" == a2) s2 = "__x";
224
- else if (a2) {
225
- for (const e3 of o2) if (e3.uuid == a2) {
226
- const t3 = e3.props ? e3.props : {}, r3 = t3.yaxisSource, o3 = t3.yaxisField;
227
- if (o3 && (!r3 || "variable" == r3)) {
228
- s2 = o3;
229
- break;
230
- }
231
- }
232
- }
233
- if (!s2) return;
234
- const n2 = t2.props ? t2.props.orderSource : "";
235
- let l2 = t2.props ? t2.props.orderFix : "";
236
- if ("variable" == n2) {
237
- const r3 = t2.props ? t2.props.orderVariable : "";
238
- l2 = i.formatVariableValue(e2, r3);
239
- }
240
- l2 = "desc" == l2 || "DESC" == l2 ? "desc" : "asc", r2.sort((e3, t3) => {
241
- const r3 = i.getValueFromSource(e3, s2, void 0), o3 = i.getValueFromSource(t3, s2, void 0);
242
- return "desc" === l2 ? o3 - r3 : r3 - o3;
243
- });
244
- }, exports.updateClickVariablesForSelected = f;