super-page-runtime 1.0.17 → 1.3.13

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 (419) hide show
  1. package/dist/es/_virtual/_plugin-vue_export-helper.js +8 -0
  2. package/dist/es/assets/chart-themes/theme1.d.ts +4 -0
  3. package/dist/es/assets/chart-themes/theme1.js +4 -0
  4. package/dist/es/assets/chart-themes/theme2.d.ts +4 -0
  5. package/dist/es/assets/chart-themes/theme2.js +4 -0
  6. package/dist/es/assets/chart-themes/theme3.d.ts +4 -0
  7. package/dist/es/assets/chart-themes/theme3.js +4 -0
  8. package/dist/es/assets/file.png.js +4 -0
  9. package/dist/es/assets/folder.png.js +4 -0
  10. package/dist/es/components/runtime/index.d.ts +5 -0
  11. package/dist/es/components/runtime/utils/api/api-util.d.ts +1 -0
  12. package/dist/es/components/runtime/utils/api/api-util.js +4 -0
  13. package/dist/es/components/runtime/utils/api/page-expose-util.d.ts +1 -0
  14. package/dist/es/components/runtime/utils/api/page-expose-util.js +159 -0
  15. package/dist/es/components/runtime/utils/assemblys-config.js +20 -0
  16. package/dist/es/components/runtime/utils/barcode-util.d.ts +8 -0
  17. package/dist/es/components/runtime/utils/barcode-util.js +12 -0
  18. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +140 -0
  19. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +37 -0
  20. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +81 -0
  21. package/dist/es/components/runtime/utils/charts/chart-radar-util.js +55 -0
  22. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +46 -0
  23. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +113 -0
  24. package/dist/es/components/runtime/utils/charts/chart-util.js +274 -0
  25. package/dist/es/components/runtime/utils/common-util.d.ts +33 -0
  26. package/dist/es/components/runtime/utils/common-util.js +120 -0
  27. package/dist/es/components/runtime/utils/eventBus.d.ts +7 -0
  28. package/dist/es/components/runtime/utils/eventBus.js +5 -0
  29. package/{lib/src → dist/es/components/runtime}/utils/events/event-util.d.ts +45 -1
  30. package/dist/es/components/runtime/utils/events/event-util.js +403 -0
  31. package/dist/es/components/runtime/utils/events/print-label.d.ts +5 -0
  32. package/dist/es/components/runtime/utils/events/print-label.js +100 -0
  33. package/{lib/src → dist/es/components/runtime}/utils/events/standard-event.d.ts +29 -3
  34. package/dist/es/components/runtime/utils/events/standard-event.js +971 -0
  35. package/dist/es/components/runtime/utils/events/validator-util.d.ts +25 -0
  36. package/dist/es/components/runtime/utils/events/validator-util.js +309 -0
  37. package/dist/es/components/runtime/utils/form/date-shortcuts.d.ts +7 -0
  38. package/dist/es/components/runtime/utils/form/date-shortcuts.js +36 -0
  39. package/dist/es/components/runtime/utils/form/scan-util.js +93 -0
  40. package/{lib/src → dist/es/components/runtime}/utils/global-refs.d.ts +6 -0
  41. package/dist/es/components/runtime/utils/global-refs.js +57 -0
  42. package/dist/es/components/runtime/utils/i18n-util.d.ts +1 -0
  43. package/dist/es/components/runtime/utils/i18n-util.js +14 -0
  44. package/{lib/src → dist/es/components/runtime}/utils/interfaces/page-design-types.d.ts +32 -6
  45. package/dist/es/components/runtime/utils/interfaces/page-design-types.js +4 -0
  46. package/dist/es/components/runtime/utils/page-helper-util.d.ts +174 -0
  47. package/dist/es/components/runtime/utils/page-helper-util.js +386 -0
  48. package/{lib/src → dist/es/components/runtime}/utils/page-init-util.d.ts +12 -2
  49. package/dist/es/components/runtime/utils/page-init-util.js +203 -0
  50. package/dist/es/components/runtime/utils/page-permission-util.d.ts +26 -0
  51. package/dist/es/components/runtime/utils/page-permission-util.js +30 -0
  52. package/dist/es/components/runtime/utils/page-store.d.ts +46 -0
  53. package/dist/es/components/runtime/utils/page-store.js +26 -0
  54. package/dist/es/components/runtime/utils/store-util.js +13 -0
  55. package/dist/es/components/runtime/utils/store.js +4 -0
  56. package/dist/es/components/runtime/utils/table-utils.d.ts +34 -0
  57. package/dist/es/components/runtime/utils/table-utils.js +80 -0
  58. package/dist/es/components/runtime/utils/tree-utils.js +73 -0
  59. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +4 -0
  60. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +27 -0
  61. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +7 -0
  62. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +21 -0
  63. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +4 -0
  64. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +41 -0
  65. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +4 -0
  66. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +6 -0
  67. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +4 -0
  68. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +21 -0
  69. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +7 -0
  70. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +53 -0
  71. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +14 -0
  72. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +4 -0
  73. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +13 -0
  74. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +4 -0
  75. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +60 -0
  76. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +4 -0
  77. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +7 -0
  78. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +63 -0
  79. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +7 -0
  80. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +35 -0
  81. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +7 -0
  82. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +46 -0
  83. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +7 -0
  84. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +35 -0
  85. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +7 -0
  86. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +35 -0
  87. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +121 -0
  88. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +419 -0
  89. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +6 -0
  90. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +4 -0
  91. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +10 -0
  92. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.js +4 -0
  93. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +45 -0
  94. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +4 -0
  95. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +15 -0
  96. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +4 -0
  97. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +4 -0
  98. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +255 -0
  99. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +28 -0
  100. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +36 -0
  101. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +4 -0
  102. package/{lib → dist/es}/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +5 -5
  103. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +24 -0
  104. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +4 -0
  105. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.d.ts +31 -0
  106. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +35 -0
  107. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue2.js +4 -0
  108. package/{lib → dist/es}/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +5 -5
  109. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +19 -0
  110. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +4 -0
  111. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +7 -0
  112. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +29 -0
  113. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +4 -0
  114. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +21 -0
  115. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +4 -0
  116. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +18 -0
  117. package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.js +7 -0
  118. package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue2.js +29 -0
  119. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.d.ts +94 -0
  120. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +7 -0
  121. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +81 -0
  122. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +4 -0
  123. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +25 -0
  124. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +4 -0
  125. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +20 -0
  126. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +4 -0
  127. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +14 -0
  128. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +7 -0
  129. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +96 -0
  130. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +7 -0
  131. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +35 -0
  132. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +4 -0
  133. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +69 -0
  134. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +378 -0
  135. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +4 -0
  136. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +300 -0
  137. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +4 -0
  138. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +4 -0
  139. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +82 -0
  140. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +7 -0
  141. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +134 -0
  142. package/{lib → dist/es}/components/runtime/views/assemblys/error-render.vue.d.ts +4 -4
  143. package/dist/es/components/runtime/views/assemblys/error-render.vue.js +5 -0
  144. package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +4 -0
  145. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +4 -0
  146. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +50 -0
  147. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +38 -0
  148. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +4 -0
  149. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +4 -0
  150. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +69 -0
  151. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +4 -0
  152. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +90 -0
  153. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +4 -0
  154. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +55 -0
  155. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +4 -0
  156. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +24 -0
  157. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +4 -0
  158. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +75 -0
  159. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +4 -0
  160. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +28 -0
  161. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +4 -0
  162. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +82 -0
  163. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +4 -0
  164. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +37 -0
  165. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +4 -0
  166. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +32 -0
  167. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +7 -0
  168. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +16 -0
  169. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +4 -0
  170. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +73 -0
  171. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +4 -0
  172. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +102 -0
  173. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +4 -0
  174. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +97 -0
  175. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +4 -0
  176. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +16 -0
  177. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +4 -0
  178. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +36 -0
  179. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +4 -0
  180. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +44 -0
  181. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +4 -0
  182. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +28 -0
  183. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.d.ts +17 -0
  184. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +83 -0
  185. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +4 -0
  186. package/dist/es/components/runtime/views/assemblys/object-render.vue.d.ts +17 -0
  187. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +129 -0
  188. package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +4 -0
  189. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +4 -0
  190. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +20 -0
  191. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +4 -0
  192. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +23 -0
  193. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +7 -0
  194. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +24 -0
  195. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +4 -0
  196. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +18 -0
  197. package/dist/es/components/runtime/views/home-chart.vue.d.ts +23 -0
  198. package/dist/es/components/runtime/views/home-chart.vue.js +47 -0
  199. package/dist/es/components/runtime/views/home-chart.vue2.js +4 -0
  200. package/{lib/components/super-page-dialog → dist/es/components/runtime/views}/super-page-dialog.vue.d.ts +7 -3
  201. package/dist/es/components/runtime/views/super-page-dialog.vue.js +26 -0
  202. package/dist/es/components/runtime/views/super-page-dialog.vue3.js +5 -0
  203. package/{lib → dist/es}/components/runtime/views/super-page.vue.d.ts +43 -10
  204. package/dist/es/components/runtime/views/super-page.vue.js +7 -0
  205. package/dist/es/components/runtime/views/super-page.vue2.js +262 -0
  206. package/dist/es/i18n/langs/cn.js +4 -0
  207. package/dist/es/i18n/langs/en.js +4 -0
  208. package/dist/es/index.d.ts +16 -0
  209. package/dist/es/index.js +30 -0
  210. package/dist/es/style.css +633 -0
  211. package/package.json +74 -71
  212. package/lib/_virtual/_plugin-vue_export-helper.js +0 -9
  213. package/lib/components/index.d.ts +0 -5
  214. package/lib/components/runtime/index.d.ts +0 -3
  215. package/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -24
  216. package/lib/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
  217. package/lib/components/super-page-dialog/index.d.ts +0 -3
  218. package/lib/components/wf-editor/index.d.ts +0 -3
  219. package/lib/components/wf-editor/wf-editor.vue.d.ts +0 -2
  220. package/lib/index.js +0 -8
  221. package/lib/runtime/index.js +0 -3
  222. package/lib/runtime/utils/assemblys-config.js +0 -258
  223. package/lib/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -3
  224. package/lib/runtime/views/assemblys/button/button/button-runtime.vue2.js +0 -54
  225. package/lib/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -3
  226. package/lib/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -35
  227. package/lib/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -3
  228. package/lib/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -110
  229. package/lib/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -3
  230. package/lib/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -53
  231. package/lib/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -3
  232. package/lib/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -42
  233. package/lib/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -3
  234. package/lib/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -50
  235. package/lib/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -3
  236. package/lib/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -50
  237. package/lib/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -3
  238. package/lib/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -51
  239. package/lib/runtime/views/assemblys/common/export-form-report-dialog.vue.js +0 -141
  240. package/lib/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -3
  241. package/lib/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -127
  242. package/lib/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -3
  243. package/lib/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -104
  244. package/lib/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -3
  245. package/lib/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -3
  246. package/lib/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -72
  247. package/lib/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -3
  248. package/lib/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -73
  249. package/lib/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -3
  250. package/lib/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -78
  251. package/lib/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -3
  252. package/lib/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -42
  253. package/lib/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -3
  254. package/lib/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -43
  255. package/lib/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -3
  256. package/lib/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -29
  257. package/lib/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -3
  258. package/lib/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -68
  259. package/lib/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -3
  260. package/lib/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -74
  261. package/lib/runtime/views/assemblys/data/table/main-table-runtime.vue.js +0 -640
  262. package/lib/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -3
  263. package/lib/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +0 -452
  264. package/lib/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -3
  265. package/lib/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -3
  266. package/lib/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -82
  267. package/lib/runtime/views/assemblys/error-render.vue.js +0 -22
  268. package/lib/runtime/views/assemblys/error-render.vue2.js +0 -3
  269. package/lib/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -3
  270. package/lib/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -156
  271. package/lib/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -3
  272. package/lib/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -82
  273. package/lib/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -3
  274. package/lib/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -59
  275. package/lib/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -3
  276. package/lib/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +0 -40
  277. package/lib/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -3
  278. package/lib/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -74
  279. package/lib/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -3
  280. package/lib/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -63
  281. package/lib/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -3
  282. package/lib/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -127
  283. package/lib/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -3
  284. package/lib/runtime/views/assemblys/form/label/label-runtime.vue2.js +0 -133
  285. package/lib/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -3
  286. package/lib/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -77
  287. package/lib/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -3
  288. package/lib/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -29
  289. package/lib/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -3
  290. package/lib/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -157
  291. package/lib/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -3
  292. package/lib/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -174
  293. package/lib/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -3
  294. package/lib/runtime/views/assemblys/form/select/select-runtime.vue2.js +0 -201
  295. package/lib/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -3
  296. package/lib/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +0 -63
  297. package/lib/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -3
  298. package/lib/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +0 -63
  299. package/lib/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -3
  300. package/lib/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -65
  301. package/lib/runtime/views/assemblys/object-render.vue.js +0 -142
  302. package/lib/runtime/views/assemblys/object-render.vue2.js +0 -3
  303. package/lib/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -3
  304. package/lib/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +0 -61
  305. package/lib/runtime/views/super-page.vue.js +0 -479
  306. package/lib/runtime/views/super-page.vue2.js +0 -3
  307. package/lib/src/assets/chart-themes/theme1.js +0 -7
  308. package/lib/src/assets/chart-themes/theme2.js +0 -7
  309. package/lib/src/assets/chart-themes/theme3.js +0 -7
  310. package/lib/src/utils/api/api-util.d.ts +0 -11
  311. package/lib/src/utils/api/api-util.js +0 -128
  312. package/lib/src/utils/charts/chart-util.js +0 -15
  313. package/lib/src/utils/common-util.d.ts +0 -11
  314. package/lib/src/utils/common-util.js +0 -81
  315. package/lib/src/utils/events/event-util.js +0 -525
  316. package/lib/src/utils/events/standard-event.js +0 -1623
  317. package/lib/src/utils/events/validator-util.d.ts +0 -4
  318. package/lib/src/utils/events/validator-util.js +0 -389
  319. package/lib/src/utils/global-refs.js +0 -65
  320. package/lib/src/utils/interfaces/page-design-types.js +0 -9
  321. package/lib/src/utils/page-helper-util.d.ts +0 -87
  322. package/lib/src/utils/page-helper-util.js +0 -503
  323. package/lib/src/utils/page-init-util.js +0 -200
  324. package/lib/src/utils/store-util.js +0 -17
  325. package/lib/src/utils/store.js +0 -3
  326. package/lib/src/utils/table-utils.js +0 -23
  327. package/lib/super-page-dialog/index.js +0 -3
  328. package/lib/super-page-dialog/super-page-dialog.vue.js +0 -73
  329. package/lib/super-page-dialog/super-page-dialog.vue2.js +0 -3
  330. package/lib/wf-editor/index.js +0 -3
  331. package/lib/wf-editor/wf-editor.css +0 -4
  332. package/lib/wf-editor/wf-editor.vue.js +0 -15
  333. package/src/assets/base.css +0 -86
  334. package/src/assets/chart-themes/theme1.ts +0 -6
  335. package/src/assets/chart-themes/theme2.ts +0 -6
  336. package/src/assets/chart-themes/theme3.ts +0 -6
  337. package/src/assets/images/button/button-group.png +0 -0
  338. package/src/assets/images/button/button.png +0 -0
  339. package/src/assets/images/chart/chart-column.png +0 -0
  340. package/src/assets/images/chart/chart-gauge.png +0 -0
  341. package/src/assets/images/chart/chart-pie.png +0 -0
  342. package/src/assets/images/chart/chart-radar.png +0 -0
  343. package/src/assets/images/chart/chart-scatter.png +0 -0
  344. package/src/assets/images/container/container-card.png +0 -0
  345. package/src/assets/images/container/container-collapse.png +0 -0
  346. package/src/assets/images/container/container-container.png +0 -0
  347. package/src/assets/images/container/container-flex.png +0 -0
  348. package/src/assets/images/container/container-form.png +0 -0
  349. package/src/assets/images/container/container-iframe.png +0 -0
  350. package/src/assets/images/container/container-normal.png +0 -0
  351. package/src/assets/images/container/container-tabs.png +0 -0
  352. package/src/assets/images/container/container-tools.png +0 -0
  353. package/src/assets/images/data/data-process.png +0 -0
  354. package/src/assets/images/data/data-step.png +0 -0
  355. package/src/assets/images/data/data-table-column.png +0 -0
  356. package/src/assets/images/data/data-table.png +0 -0
  357. package/src/assets/images/data/data-timeline.png +0 -0
  358. package/src/assets/images/data/data-tree.png +0 -0
  359. package/src/assets/images/form/form-cascader.png +0 -0
  360. package/src/assets/images/form/form-check.png +0 -0
  361. package/src/assets/images/form/form-color.png +0 -0
  362. package/src/assets/images/form/form-count.png +0 -0
  363. package/src/assets/images/form/form-custom.png +0 -0
  364. package/src/assets/images/form/form-date.png +0 -0
  365. package/src/assets/images/form/form-dept.png +0 -0
  366. package/src/assets/images/form/form-divider.png +0 -0
  367. package/src/assets/images/form/form-file.png +0 -0
  368. package/src/assets/images/form/form-image-upload.png +0 -0
  369. package/src/assets/images/form/form-img.png +0 -0
  370. package/src/assets/images/form/form-input.png +0 -0
  371. package/src/assets/images/form/form-label.png +0 -0
  372. package/src/assets/images/form/form-link.png +0 -0
  373. package/src/assets/images/form/form-radio.png +0 -0
  374. package/src/assets/images/form/form-scan.png +0 -0
  375. package/src/assets/images/form/form-score.png +0 -0
  376. package/src/assets/images/form/form-select.png +0 -0
  377. package/src/assets/images/form/form-slider.png +0 -0
  378. package/src/assets/images/form/form-space.png +0 -0
  379. package/src/assets/images/form/form-switch.png +0 -0
  380. package/src/assets/images/form/form-text.png +0 -0
  381. package/src/assets/images/form/form-textarea.png +0 -0
  382. package/src/assets/images/form/form-transfer.png +0 -0
  383. package/src/assets/images/form/form-zoom.png +0 -0
  384. package/src/assets/images/group-button.png +0 -0
  385. package/src/assets/images/group-chart.png +0 -0
  386. package/src/assets/images/group-container.png +0 -0
  387. package/src/assets/images/group-data.png +0 -0
  388. package/src/assets/images/group-form.png +0 -0
  389. package/src/assets/images/group-workflow.png +0 -0
  390. package/src/assets/images/workflow/workflow-button.png +0 -0
  391. package/src/assets/images/workflow/workflow-history-texts.png +0 -0
  392. package/src/assets/images/workflow/workflow-history.png +0 -0
  393. package/src/assets/images/workflow/workflow-imagehistory.png +0 -0
  394. package/src/assets/images/workflow/workflow-texthistory .png +0 -0
  395. package/src/assets/logo.svg +0 -1
  396. package/src/assets/main.css +0 -1
  397. package/src/i18n/langs/cn.js +0 -52
  398. package/src/i18n/langs/en.js +0 -52
  399. package/src/stores/counter.ts +0 -12
  400. package/src/utils/api/api-util.ts +0 -176
  401. package/src/utils/charts/chart-util.ts +0 -41
  402. package/src/utils/common-util.ts +0 -96
  403. package/src/utils/container-style-util.ts +0 -237
  404. package/src/utils/eventBus.ts +0 -14
  405. package/src/utils/events/event-util.ts +0 -790
  406. package/src/utils/events/jump-page-util.ts +0 -0
  407. package/src/utils/events/standard-event.ts +0 -2075
  408. package/src/utils/events/validator-util.ts +0 -474
  409. package/src/utils/global-refs.ts +0 -160
  410. package/src/utils/interfaces/page-design-types.ts +0 -259
  411. package/src/utils/page-helper-util.ts +0 -850
  412. package/src/utils/page-init-util.ts +0 -291
  413. package/src/utils/page-permission-util.ts +0 -521
  414. package/src/utils/store-util.ts +0 -41
  415. package/src/utils/store.ts +0 -3
  416. package/src/utils/table-utils.ts +0 -31
  417. /package/{lib/src → dist/es/components/runtime}/utils/store-util.d.ts +0 -0
  418. /package/{lib/src → dist/es/components/runtime}/utils/store.d.ts +0 -0
  419. /package/{lib → dist/es}/favicon.ico +0 -0
@@ -0,0 +1,46 @@
1
+ import { getValueFromSource as o } from "../page-helper-util.js";
2
+ import { deepCopy as s } from "../common-util.js";
3
+ import { setDefaultGrid as i, caculateFormulaValue as e, executeChartFormula as r } from "./chart-util.js";
4
+ function t(t2, a, l, u) {
5
+ if (!u || !u.result) return;
6
+ i(l);
7
+ const f = u && u.result ? u.result : {}, c = a.serviceDataField;
8
+ let d = null;
9
+ c ? d = f[c] : f && (d = Array.isArray(f) ? f : [f]), d || (d = []);
10
+ const n = a.items ? a.items : [], p = [], m = {};
11
+ for (const o2 of n) {
12
+ const s2 = o2.props ? o2.props : {}, i2 = o2.props ? o2.style : {}, e2 = s2.xaxisField, r2 = s2.sizeField, t3 = { uuid: o2.uuid, xaxisField: e2, yaxisField: s2.yaxisField, yaxisSource: s2.yaxisSource, formula: s2.formula, sizeField: r2, symbolSize: i2.symbolSize, data: [] };
13
+ p.push(t3), m[t3.uuid] = t3;
14
+ }
15
+ const x = [], y = e(n, d, x);
16
+ for (const o2 of p) if ("formula" === o2.yaxisSource) {
17
+ let s2 = o2.formula ? o2.formula : "";
18
+ for (const o3 in y) s2 = s2.replace(new RegExp(o3.replace("$", "\\$"), "g"), y[o3]);
19
+ o2.formula = s2;
20
+ }
21
+ const F = {};
22
+ for (const s2 of d) if (s2) {
23
+ for (const i2 of x) {
24
+ const e2 = o(s2, i2, void 0);
25
+ let r2 = F[i2];
26
+ void 0 === e2 || isNaN(e2) || (void 0 === r2 ? r2 = e2 : r2 += e2), F[i2] = r2;
27
+ }
28
+ for (const i2 of p) {
29
+ const e2 = i2.data, a2 = [];
30
+ if (a2.push(o(s2, i2.xaxisField, void 0)), "formula" === i2.yaxisSource) {
31
+ const o2 = r(i2.formula, F, s2, t2);
32
+ a2.push(o2);
33
+ } else a2.push(o(s2, i2.yaxisField, void 0));
34
+ i2.sizeField ? a2.push(o(s2, i2.xaxisField, void 0)) : a2.push(i2.symbolSize), e2.push(a2);
35
+ }
36
+ }
37
+ const h = a.defaultSeries, S = s(h);
38
+ for (const o2 of S) {
39
+ const s2 = m[o2.uuid];
40
+ o2.data = s2.data;
41
+ }
42
+ l.series = S, a.cacheDatas = d, a.rawResult = u;
43
+ }
44
+ export {
45
+ t as updateChartOption
46
+ };
@@ -0,0 +1,113 @@
1
+ import { PageContext, Component } from '../interfaces/page-design-types';
2
+
3
+ /**
4
+ * 统计图通用字段名
5
+ */
6
+ export declare enum CommonName {
7
+ X_FIELD_NAME = "__x",//横坐标字段名
8
+ Y_TEMP_NAME = "__y"
9
+ }
10
+ /**
11
+ * 获取主题对象
12
+ * @param themeName 获取自定义的主题名称
13
+ * @returns
14
+ */
15
+ export declare function getCustomTheme(themeName: string): any;
16
+ /**
17
+ * 获取所有主题对象
18
+ * @returns
19
+ */
20
+ export declare function getCustomThemeOptions(): Array<any>;
21
+ /**
22
+ * 获取数据的格式化方法
23
+ * @param labelNumFormat
24
+ * @param labelNumPrecision
25
+ * @param isValueFormatter 是否值格式化,value: number | string, dataIndex: number
26
+ * @returns
27
+ */
28
+ export declare function getNumFormatter(labelNumFormat: any, numPrecision: any, numPrefix: any, numAppend: any, isValueFormatter: any): (params: any) => any;
29
+ /**
30
+ * 初始化格式化方法
31
+ * @param pageContext
32
+ * @param configure
33
+ * @param chartOption
34
+ * @returns
35
+ */
36
+ export declare function initChartOption(configure: Component, chartOption: any): void;
37
+ /**
38
+ * 统计图选中时把维度值设置到变量中
39
+ * @param pageContext
40
+ * @param configure
41
+ * @param chart
42
+ * @param variable
43
+ */
44
+ export declare function monitorChartClickToVariable(pageContext: PageContext, configure: Component, chart: any): void;
45
+ /**
46
+ * 清除统计图的选中
47
+ * @param pageContext
48
+ * @param configure
49
+ * @param chart
50
+ * @returns
51
+ */
52
+ export declare function clearChartSelected(pageContext: PageContext, configure: Component, chart: any): void;
53
+ export declare function updateClickVariablesForSelected(pageContext: PageContext, configure: Component): void;
54
+ export declare function sortDatas(pageContext: PageContext, configure: Component, datas: Array<any>): void;
55
+ /**
56
+ * 限制显示数量
57
+ * @param datas
58
+ * @param groupFields
59
+ * @param limitNum
60
+ */
61
+ export declare function limitDatas(pageContext: PageContext, configure: Component, datas: Array<any>, groupFields: Array<string>, numFields: Array<string>): Array<any>;
62
+ /**
63
+ * 提前计算公式中用到的汇总变量
64
+ * @param itemConfs
65
+ * @param datas
66
+ * @param accumulateFields 累计计算的字段
67
+ * @returns
68
+ */
69
+ export declare function caculateFormulaValue(itemConfs: any, datas: any, accumulateFields: Set<string>): any;
70
+ /**
71
+ * 获取数据源中的最小值
72
+ * @param datas 数据源
73
+ * @param fieldName 字段名
74
+ */
75
+ export declare function getMinValue(datas: any, fieldName: string): any;
76
+ /**
77
+ * 获取数据源中的最大值
78
+ * @param datas 数据源
79
+ * @param fieldName 字段名
80
+ */
81
+ export declare function getMaxValue(datas: any, fieldName: string): any;
82
+ /**
83
+ * 获取数据源中的汇总值
84
+ * @param datas 数据源
85
+ * @param fieldName 字段名
86
+ */
87
+ export declare function getSumValue(datas: any, fieldName: string): any;
88
+ /**
89
+ * 获取平均值
90
+ * @param datas 数据源
91
+ * @param fieldName 字段名
92
+ */
93
+ export declare function getAvgValue(datas: any, fieldName: string): any;
94
+ /**
95
+ * 执行统计图的计算公式
96
+ * @param formulaStr 计算公式
97
+ * @param accumulateMap 累计存储
98
+ * @param rowData 行记录
99
+ * @param pageContext 页面对象
100
+ */
101
+ export declare function executeChartFormula(formulaStr: string, accumulateMap: any, rowData: any, pageContext: PageContext): any;
102
+ /**
103
+ * 导出图表工具方法
104
+ * @param chartDom
105
+ * @returns
106
+ */
107
+ export declare function exportCommonChart(chartRef: any): {
108
+ isTable: boolean;
109
+ fileContent: any;
110
+ fileSize: string;
111
+ };
112
+ export declare function setHomeChartInitConfigValue(initConfig: any, tempContext: any, homeChartSettingUserId: any): void;
113
+ export declare function setDefaultGrid(chartOption: any): void;
@@ -0,0 +1,274 @@
1
+ import t from "../../../../assets/chart-themes/theme1.js";
2
+ import e from "../../../../assets/chart-themes/theme2.js";
3
+ import n from "../../../../assets/chart-themes/theme3.js";
4
+ import { getDefaultValue as i } from "../page-init-util.js";
5
+ import { getValueFromSource as s, setValueForVariableName as o, getParamNames as r, formatVariableValue as l, getValueFromVariable as a, setVariableValue as c } from "../page-helper-util.js";
6
+ import { appendDefaultMethods as f } from "../events/event-util.js";
7
+ var u = ((t2) => (t2.X_FIELD_NAME = "__x", t2.Y_TEMP_NAME = "__y", t2))(u || {});
8
+ const d = { theme1: t, theme2: e, theme3: n };
9
+ function p(t2) {
10
+ return d[t2];
11
+ }
12
+ function h() {
13
+ return [{ value: "theme1", label: "主题1" }, { value: "theme2", label: "主题2" }, { value: "theme3", label: "主题3" }];
14
+ }
15
+ function m(t2, e2, n2, i2, s2) {
16
+ return function(o2) {
17
+ let r2 = o2 == null ? void 0 : o2.value;
18
+ if (s2 && (r2 = o2), null == r2 || null == r2) return r2;
19
+ if (Array.isArray(r2)) return r2;
20
+ if (isNaN(r2) || !t2 || !t2.indexOf) return r2;
21
+ if (t2.indexOf("precision") > -1) {
22
+ let t3 = parseInt(e2);
23
+ (null == t3 || isNaN(t3)) && (t3 = 2), r2 = parseFloat(parseFloat(r2).toFixed(t3));
24
+ }
25
+ let l2 = "";
26
+ t2.indexOf("prefix") > -1 && n2 && (l2 = n2);
27
+ let a2 = "";
28
+ return t2.indexOf("append") > -1 && i2 && (a2 = i2), l2 + r2.toLocaleString() + a2;
29
+ };
30
+ }
31
+ function g(t2, e2) {
32
+ if (!e2) return;
33
+ if (e2.tooltipFormatterArgs && (e2.tooltip || (e2.tooltip = {}), e2.tooltip.valueFormatter = m.apply(e2, e2.tooltipFormatterArgs)), e2.series) {
34
+ const n3 = t2.props ? t2.props.enableDrill : null;
35
+ for (const i3 of e2.series) e2.radar || (i3.data = []), i3.labelFormatterArgs && (i3.label || (i3.label = {}), i3.label.formatter = m.apply(i3, i3.labelFormatterArgs)), !n3 && t2.clickSet && t2.clickSet.selected && i3.emphasis && (i3.emphasis.disabled = false), "pie" === i3.type && t2.clickSet && t2.clickSet.selected && (t2.clickSet.multiple ? i3.selectedMode = "multiple" : i3.selectedMode = "single");
36
+ }
37
+ if (e2.radar) for (const t3 of e2.radar) t3.indicator = [];
38
+ const n2 = e2.series;
39
+ t2.defaultSeries = n2;
40
+ const i2 = e2.xAxis;
41
+ i2 && i2.length > 0 && i2[0].data && (i2[0].data = []), t2.defaultXaxis = i2;
42
+ const s2 = e2.yAxis;
43
+ if (s2) for (const t3 of s2) t3.data && (t3.data = []), "auto" === t3._dataMin && (t3.min = function(t4) {
44
+ if (t4.min) return 10 * Math.floor(t4.min / 10);
45
+ }), "auto" === t3._dataMax && (t3.max = function(t4) {
46
+ if (t4.max) return 10 * Math.ceil(t4.max / 10);
47
+ });
48
+ t2.defaultYaxis = s2;
49
+ }
50
+ function x(t2, e2, n2) {
51
+ if (!(n2 && e2 && e2.clickSet && t2)) return;
52
+ const i2 = e2.clickSet;
53
+ n2.on("click", function(s2) {
54
+ let o2 = e2.highlightInfos ? e2.highlightInfos : [], r2 = -1;
55
+ if (o2) {
56
+ const t3 = [];
57
+ for (let l2 = 0; l2 < o2.length; l2++) {
58
+ const a2 = o2[l2], c2 = a2.seriesIndex === s2.seriesIndex && a2.dataIndex === s2.dataIndex;
59
+ if (c2 || !i2.multiple) {
60
+ if (i2.selected) {
61
+ const t4 = "chart-pie" === e2.name ? "unselect" : "downplay";
62
+ n2.dispatchAction({ type: t4, seriesIndex: a2.seriesIndex, dataIndex: a2.dataIndex });
63
+ }
64
+ } else t3.push(a2);
65
+ c2 && (r2 = l2);
66
+ }
67
+ o2 = t3;
68
+ }
69
+ if (-1 === r2) {
70
+ if (i2.selected) {
71
+ const t3 = "chart-pie" === e2.name ? "select" : "highlight";
72
+ n2.dispatchAction({ type: t3, seriesIndex: s2.seriesIndex, dataIndex: s2.dataIndex });
73
+ }
74
+ o2.push({ seriesIndex: s2.seriesIndex, dataIndex: s2.dataIndex });
75
+ }
76
+ e2.highlightInfos = o2, b(t2, e2);
77
+ });
78
+ }
79
+ function I(t2, e2, n2) {
80
+ if (!n2 || !e2 || !t2) return;
81
+ const i2 = e2.highlightInfos ? e2.highlightInfos : [];
82
+ for (let t3 = 0; t3 < i2.length; t3++) {
83
+ const s2 = i2[t3], o2 = "chart-pie" === e2.name ? "unselect" : "downplay";
84
+ n2.dispatchAction({ type: o2, seriesIndex: s2.seriesIndex, dataIndex: s2.dataIndex });
85
+ }
86
+ e2.highlightInfos = [], b(t2, e2);
87
+ }
88
+ function b(t2, e2) {
89
+ if (!e2.clickSet) return;
90
+ const n2 = e2.clickSet, i2 = n2.variables;
91
+ if (!i2 || 0 == i2.length) return;
92
+ const r2 = e2.highlightInfos ? e2.highlightInfos : [], l2 = e2.cacheDatas ? e2.cacheDatas : [], a2 = [], c2 = [];
93
+ for (const t3 of r2) c2.includes(t3.dataIndex) || (c2.push(t3.dataIndex), t3.dataIndex < l2.length && a2.push(l2[t3.dataIndex]));
94
+ for (const e3 of i2) {
95
+ if (!e3.fieldName || !e3.variable) continue;
96
+ const i3 = [];
97
+ for (const t3 of a2) {
98
+ const n3 = s(t3, e3.fieldName, void 0);
99
+ null != n3 && i3.push(n3);
100
+ }
101
+ n2.multiple ? o(t2.entity, e3.variable, i3) : o(t2.entity, e3.variable, i3.length > 0 ? i3[0] : void 0);
102
+ }
103
+ }
104
+ function v(t2, e2, n2) {
105
+ const i2 = e2.items ? e2.items : [], o2 = e2.props ? e2.props.orderByTarget : "";
106
+ let r2 = null;
107
+ if ("x" == o2 || "X" == o2) r2 = "__x";
108
+ else if (o2) {
109
+ for (const t3 of i2) if (t3.uuid == o2) {
110
+ const e3 = t3.props ? t3.props : {}, n3 = e3.yaxisSource, i3 = e3.yaxisField;
111
+ if (i3 && (!n3 || "variable" == n3)) {
112
+ r2 = i3;
113
+ break;
114
+ }
115
+ }
116
+ }
117
+ if (!r2) return;
118
+ const a2 = e2.props ? e2.props.orderSource : "";
119
+ let c2 = e2.props ? e2.props.orderFix : "";
120
+ if ("variable" == a2) {
121
+ const n3 = e2.props ? e2.props.orderVariable : "";
122
+ c2 = l(t2, n3);
123
+ }
124
+ c2 = "desc" == c2 || "DESC" == c2 ? "desc" : "asc", n2.sort((t3, e3) => {
125
+ const n3 = s(t3, r2, void 0), i3 = s(e3, r2, void 0);
126
+ return "desc" === c2 ? i3 - n3 : n3 - i3;
127
+ });
128
+ }
129
+ function N(t2, e2, n2, i2, o2) {
130
+ if (!n2) return n2;
131
+ const r2 = e2.props ? e2.props : {};
132
+ if (!r2.limitQuantity) return n2;
133
+ let a2 = null;
134
+ if (r2.itemNumVariable ? (a2 = l(t2, r2.itemNumVariable), a2 = parseInt(a2)) : a2 = r2.itemNumFix ? r2.itemNumFix : 10, null == a2 || null == a2 || isNaN(a2)) return n2;
135
+ if (n2.length < a2) return n2;
136
+ const c2 = r2.overItemAlias, f2 = [], u2 = {};
137
+ i2 = i2 || [], o2 = o2 || [];
138
+ for (let t3 = 0; t3 < n2.length; t3++) {
139
+ const e3 = n2[t3];
140
+ if (t3 < a2) f2.push(e3);
141
+ else {
142
+ if (!c2) break;
143
+ for (const t4 of i2) {
144
+ if (!t4) continue;
145
+ let n3 = s(e3, t4, void 0);
146
+ n3 = null == n3 || null == n3 ? "" : n3, u2[t4] || (u2[t4] = []);
147
+ const i3 = u2[t4];
148
+ i3.includes(n3) || i3.push(n3);
149
+ }
150
+ for (const t4 of o2) {
151
+ if (!t4) continue;
152
+ const n3 = s(e3, t4, void 0);
153
+ if (isNaN(n3)) continue;
154
+ const i3 = u2[t4];
155
+ isNaN(i3) ? u2[t4] = n3 : u2[t4] = n3 + i3;
156
+ }
157
+ }
158
+ }
159
+ return c2 && (u2.__x = c2, f2.push(u2)), f2;
160
+ }
161
+ function y(t2, e2, n2) {
162
+ const i2 = {};
163
+ for (const s2 of t2) {
164
+ const t3 = s2.props ? s2.props : {};
165
+ if ("formula" === t3.yaxisSource) {
166
+ const s3 = r(t3.formula);
167
+ for (const t4 of s3) if (!(t4 in i2)) {
168
+ if (t4.startsWith("${min.")) i2[t4] = S(e2, t4.substring(6, t4.length - 1));
169
+ else if (t4.startsWith("${max.")) i2[t4] = F(e2, t4.substring(6, t4.length - 1));
170
+ else if (t4.startsWith("${sum.")) i2[t4] = _(e2, t4.substring(6, t4.length - 1));
171
+ else if (t4.startsWith("${avg.")) i2[t4] = A(e2, t4.substring(6, t4.length - 1));
172
+ else if (t4.startsWith("${add.")) {
173
+ const e3 = t4.substring(6, t4.length - 1);
174
+ n2.add(e3);
175
+ }
176
+ }
177
+ }
178
+ }
179
+ return i2;
180
+ }
181
+ function S(t2, e2) {
182
+ let n2;
183
+ for (const i2 of t2) {
184
+ const t3 = parseFloat(s(i2, e2, null));
185
+ (void 0 === n2 || !isNaN(t3) && t3 < n2) && (n2 = t3);
186
+ }
187
+ return n2;
188
+ }
189
+ function F(t2, e2) {
190
+ let n2;
191
+ for (const i2 of t2) {
192
+ const t3 = parseFloat(s(i2, e2, null));
193
+ (void 0 === n2 || !isNaN(t3) && t3 > n2) && (n2 = t3);
194
+ }
195
+ return n2;
196
+ }
197
+ function _(t2, e2) {
198
+ let n2;
199
+ for (const i2 of t2) {
200
+ const t3 = parseFloat(s(i2, e2, null));
201
+ void 0 === n2 ? n2 = t3 : isNaN(t3) || (n2 += t3);
202
+ }
203
+ return n2;
204
+ }
205
+ function A(t2, e2) {
206
+ const n2 = _(t2, e2);
207
+ return void 0 === n2 || 0 === t2.length ? n2 : parseFloat((n2 / t2.length).toFixed(5));
208
+ }
209
+ function k(t2, e2, n2, i2) {
210
+ if (!t2) return;
211
+ if (e2) for (const n3 in e2) t2 = t2.replace(new RegExp("\\${add." + n3 + "}", "g"), e2[n3]);
212
+ const o2 = r(t2);
213
+ for (const e3 of o2) {
214
+ let o3 = null;
215
+ o3 = e3.startsWith("${row.") ? s(n2, e3.substring(6, e3.length - 1), null) : a(i2.entity, e3), t2 = t2.replace(new RegExp(e3.replace("$", "\\$"), "g"), o3);
216
+ }
217
+ t2.includes("return ") || (t2 = "return " + t2);
218
+ const l2 = new Function("params", t2);
219
+ return f(l2, i2), l2({ pageContext: i2, row: n2 });
220
+ }
221
+ function M(t2) {
222
+ if (!t2 || !t2.$el) return;
223
+ const e2 = t2.$el.getElementsByTagName("canvas");
224
+ if (!e2 || 0 === e2.length) return;
225
+ const n2 = e2[0], i2 = n2.width + ":" + n2.height;
226
+ return { isTable: false, fileContent: n2.toDataURL(), fileSize: i2 };
227
+ }
228
+ function $(t2, e2, n2) {
229
+ const s2 = window.localStorage.getItem("HOME_MY_CHARTS_CONDITIONS");
230
+ let r2 = true;
231
+ if (s2) {
232
+ const t3 = JSON.parse(s2);
233
+ if (t3[n2]) {
234
+ const i2 = t3[n2];
235
+ if (Object.keys(i2).length > 0) {
236
+ r2 = false;
237
+ for (const t4 in i2) null !== i2[t4] && void 0 !== i2[t4] && o(e2.entity, t4, i2[t4]);
238
+ }
239
+ }
240
+ }
241
+ if (r2 && t2) {
242
+ for (const n3 of t2) if (n3.prop && n3.value) {
243
+ const t3 = i(e2, n3.value, "input-text", false), s3 = n3.prop.substring(2, n3.prop.length - 1).split(".");
244
+ null != t3 && c(e2.entity, s3, t3);
245
+ }
246
+ }
247
+ }
248
+ function w(t2) {
249
+ if (t2 == null ? void 0 : t2.grid) {
250
+ const e2 = t2.grid, n2 = (t3) => !t3 || "0" === t3;
251
+ n2(e2.top) && n2(e2.right) && n2(e2.bottom) && n2(e2.left) && Object.assign(e2, { right: "10%", bottom: "60", left: "10%" });
252
+ }
253
+ }
254
+ export {
255
+ u as CommonName,
256
+ y as caculateFormulaValue,
257
+ I as clearChartSelected,
258
+ k as executeChartFormula,
259
+ M as exportCommonChart,
260
+ A as getAvgValue,
261
+ p as getCustomTheme,
262
+ h as getCustomThemeOptions,
263
+ F as getMaxValue,
264
+ S as getMinValue,
265
+ m as getNumFormatter,
266
+ _ as getSumValue,
267
+ g as initChartOption,
268
+ N as limitDatas,
269
+ x as monitorChartClickToVariable,
270
+ w as setDefaultGrid,
271
+ $ as setHomeChartInitConfigValue,
272
+ v as sortDatas,
273
+ b as updateClickVariablesForSelected
274
+ };
@@ -0,0 +1,33 @@
1
+ import { Component, PageContext } from './interfaces/page-design-types';
2
+
3
+ export declare function isArrayFn(value: any): boolean;
4
+ export declare function getBaseUrl(backendUrl: string | null | undefined, isTest?: boolean): any;
5
+ export declare function getRealRestApiPath(orgRestApiPath: any, systemCode: any, backendUrl: any, isTest?: boolean): any;
6
+ /**
7
+ * 封装模板文件列表
8
+ * @param templateFiles
9
+ * @returns
10
+ */
11
+ export declare function packageTemplateFiles(templateFiles: any, pageContext: PageContext, configure: Component): any;
12
+ export declare function upperFirstCase(str: any): any;
13
+ export declare function getListCode(pageCode: any, pageVersion: any, tableUuid: any): string;
14
+ /**
15
+ * 深度复制
16
+ * @returns
17
+ */
18
+ export declare function deepCopy(srcObj: any): any;
19
+ export declare function getWorkflowId(pageContext: any): any;
20
+ /**
21
+ * 获得当前属性名,封装到class中,操作dom时可能会使用
22
+ * @param configure
23
+ * @returns
24
+ */
25
+ export declare function getPropClassName(configure: Component): any;
26
+ export declare function isNumber(numStr: any): boolean;
27
+ export declare function isWorkflowPage(pageContext: PageContext): boolean;
28
+ export declare function refreshMobileDialogType(jumpPageSetting: any, isMobile: boolean): void;
29
+ export declare function isVariableInvalidValue(values: any, variable: string): boolean;
30
+ /**
31
+ * 给主表字段添加必填高亮样式
32
+ */
33
+ export declare function addRequiredClassUtil(): string;
@@ -0,0 +1,120 @@
1
+ import { getSystemBackendUrl as e } from "agilebuilder-ui/src/utils/common-util";
2
+ import { getLanguageWithLocale as t } from "agilebuilder-ui/src/utils/util";
3
+ import { ExpressionEvaluator as n } from "../views/assemblys/chart/table/chart-table-util.js";
4
+ import { getCustomFunc as r } from "./events/event-util.js";
5
+ function o(e2) {
6
+ return "function" == typeof Array.isArray ? Array.isArray(e2) : "[object Array]" === Object.prototype.toString.call(e2);
7
+ }
8
+ function i(t2, n2) {
9
+ if (n2) return t2;
10
+ {
11
+ const { baseURL: n3, projectModel: r2 } = window.$vueApp.config.globalProperties;
12
+ let o2 = n3;
13
+ return "developing.model" === r2 || t2 && (o2 = e(t2)), o2;
14
+ }
15
+ }
16
+ function u(e2, t2, n2, r2) {
17
+ let o2 = e2;
18
+ if (e2 && n2 && !function(e3) {
19
+ return 0 === e3.indexOf("http:") || 0 === e3.indexOf("https:");
20
+ }(e2)) {
21
+ o2 = i(n2, r2) + "/" + t2 + e2;
22
+ }
23
+ return o2;
24
+ }
25
+ function l(e2, o2, i2) {
26
+ if (!e2 || 0 === e2.length) return e2;
27
+ let u2 = e2;
28
+ if (Array.isArray(e2)) {
29
+ e2[0].templates && (u2 = function(e3, t2, o3) {
30
+ const i3 = [];
31
+ return e3.forEach((e4) => {
32
+ let u3 = true;
33
+ if (e4.scopeFunc) {
34
+ const n2 = r(t2, e4.scopeFunc);
35
+ n2 && (u3 = n2.apply(n2, [{ pageContext: t2, configureObj: o3, template: e4 }]));
36
+ } else e4.conditions && e4.conditions.length > 0 && (u3 = n.evaluate(t2, e4.conditions));
37
+ false !== u3 && e4.templates.forEach((e5) => {
38
+ i3.push({ templateUuid: e5.templateUuid, templateName: e5.templateName });
39
+ });
40
+ }), i3;
41
+ }(e2, o2, i2));
42
+ const l2 = t(), a2 = [], s2 = [], p2 = "~-~-";
43
+ return u2.forEach((e3) => {
44
+ const t2 = e3.templateName;
45
+ if (t2.indexOf(p2) > 0) {
46
+ const n2 = t2.substring(0, t2.indexOf(p2)), r2 = t2.substring(t2.indexOf(p2) + p2.length, t2.lastIndexOf(p2)), o3 = t2.substring(t2.lastIndexOf(p2) + p2.length);
47
+ l2 === r2 && s2.indexOf(n2) < 0 && (a2.push({ templateUuid: e3.templateUuid, templateName: o3 }), s2.push(n2));
48
+ } else a2.push(e3);
49
+ }), a2;
50
+ }
51
+ }
52
+ function a(e2) {
53
+ return e2.toLowerCase().replace(/( |^)[a-z]/g, (e3) => e3.toUpperCase());
54
+ }
55
+ function s(e2, t2, n2) {
56
+ return "V" + t2 + "__" + e2 + "__" + n2;
57
+ }
58
+ function p(e2) {
59
+ if ("object" != typeof e2 || null == e2) return e2;
60
+ const t2 = Array.isArray(e2) ? [] : {};
61
+ for (const n2 in e2) e2.hasOwnProperty(n2) && (t2[n2] = p(e2[n2]));
62
+ return t2;
63
+ }
64
+ function f(e2) {
65
+ let t2;
66
+ return e2.entity && e2.entity.data && (t2 = e2.entity.data.WORKFLOW_ID, t2 || (t2 = e2.entity.data.workflow_id), t2 || (t2 = e2.entity.data.workflowId)), t2;
67
+ }
68
+ function c(e2) {
69
+ var _a, _b, _c, _d;
70
+ let t2;
71
+ if (e2 && ((_b = (_a = e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop)) {
72
+ let n2 = (_d = (_c = e2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.prop;
73
+ n2.indexOf("${") >= 0 && (n2 = n2.substring(2, n2.lastIndexOf("}")));
74
+ const r2 = n2.split(".");
75
+ 2 === r2.length ? t2 = r2[1] : 3 === r2.length && (t2 = r2[1] + "__" + r2[2]);
76
+ } else e2.code && (t2 = e2.code);
77
+ return t2;
78
+ }
79
+ function d(e2) {
80
+ try {
81
+ if (null != e2) {
82
+ const t2 = parseInt(e2 + "");
83
+ if (Number.isInteger(t2)) return true;
84
+ }
85
+ return false;
86
+ } catch (e3) {
87
+ return false;
88
+ }
89
+ }
90
+ function m(e2) {
91
+ return !!e2.isWorkflowEntity || !(void 0 !== e2.isWorkflowEntity || !e2.workflowCode);
92
+ }
93
+ function g(e2, t2) {
94
+ if (e2 && t2) {
95
+ let t3 = e2.jumpPageMobileOpenMode;
96
+ t3 || (e2.jumpPageOpenMode ? (t3 = e2.jumpPageOpenMode, "newTab" === t3 && (t3 = "refresh")) : t3 = "refresh"), "refresh" === t3 && (e2.dialogType = "drawer", e2.jumpPageWidth = "100%", e2.isRefreshWhenClosePopup = true), e2.jumpMode = t3, e2.jumpPageMobileOpenMode = t3, e2.jumpPageTitle || (e2.jumpPageTitle = "QMS质量管理系统");
97
+ }
98
+ }
99
+ function h(e2, t2) {
100
+ return null === e2[t2] || void 0 === e2[t2] || "" === e2[t2];
101
+ }
102
+ function y() {
103
+ return "required_bg";
104
+ }
105
+ export {
106
+ y as addRequiredClassUtil,
107
+ p as deepCopy,
108
+ i as getBaseUrl,
109
+ s as getListCode,
110
+ c as getPropClassName,
111
+ u as getRealRestApiPath,
112
+ f as getWorkflowId,
113
+ o as isArrayFn,
114
+ d as isNumber,
115
+ h as isVariableInvalidValue,
116
+ m as isWorkflowPage,
117
+ l as packageTemplateFiles,
118
+ g as refreshMobileDialogType,
119
+ a as upperFirstCase
120
+ };
@@ -0,0 +1,7 @@
1
+ interface eventBus {
2
+ $on: any;
3
+ $emit: any;
4
+ $off: any;
5
+ }
6
+ declare const bus: eventBus;
7
+ export default bus;
@@ -0,0 +1,5 @@
1
+ import o from "mitt";
2
+ const t = o(), f = { $on: t.on, $emit: t.emit, $off: t.off };
3
+ export {
4
+ f as default
5
+ };
@@ -1,18 +1,44 @@
1
- import { Component, PageContext, PageDesign } from '../../utils/interfaces/page-design-types';
1
+ import { PageDesign, Component, PageContext } from '../interfaces/page-design-types';
2
2
 
3
3
  /**
4
4
  * 缓存页面事件,并转为Function对象,并绑定自定义方法到window对象上
5
5
  * @param pageDesign
6
6
  */
7
7
  export declare function initPageEvents(pageDesign: PageDesign, pageContext: PageContext): void;
8
+ /**
9
+ * 获取自定义方法
10
+ * @param pageContext
11
+ * @param funcName
12
+ * @returns
13
+ */
14
+ export declare function getCustomFunc(pageContext: PageContext, funcName: any): any;
15
+ /**
16
+ * 为功能添加默认的方法
17
+ * @param func 函数
18
+ * @param pageContext
19
+ */
20
+ export declare function appendDefaultMethods(func: any, pageContext: PageContext): void;
8
21
  /**
9
22
  * 页面销毁时,将window上注册的函数移除掉
10
23
  * @param pageDesign
11
24
  */
12
25
  export declare function removeCustomFuncFromWindow(pageDesign: PageDesign): void;
13
26
  export declare function handleEvent($event: any, pageContext: PageContext, configure: Component, eventType: string, otherParams?: object): any;
27
+ export declare function handleFormEvent($event: any, pageContext: PageContext, configure: Component, eventType: string, otherParams?: object): any;
28
+ export declare function handleAfterInitEvent($event: any, pageContext: PageContext, configure: Component, otherParams?: object): any;
14
29
  export declare function getHandleEvent($event: any, pageContext: PageContext, configure: Component, eventType: string, otherParams?: object): any;
30
+ export declare function getTableUuid(pageContext: PageContext, configure: Component): any;
31
+ export declare function handleEventByEventName(pageContext: PageContext, configure: Component, eventName: string, otherParams?: object): any;
32
+ export declare function doSuffixOrPrefixClickEvent($event: any, pageContext: PageContext, configure: Component, eventType: any, otherParams?: object): void;
15
33
  export declare function doBeforeClickEvent(pageContext: PageContext, configure: Component, otherParams?: object): any;
34
+ /**
35
+ * TODO: 跳转页面功能
36
+ * 跳转页面功能
37
+ * @param $event
38
+ * @param pageContext
39
+ * @param configure
40
+ */
41
+ export declare function doClickJumpPageEvent(pageContext: PageContext, configure: Component, eventParams: object): void;
16
42
  export declare function doAfterClickEvent(pageContext: PageContext, configure: Component, otherParams?: object): void;
17
43
  /**
18
44
  * 获得事件Function对象
@@ -20,6 +46,13 @@ export declare function doAfterClickEvent(pageContext: PageContext, configure: C
20
46
  * @param eventType change、click等事件类型
21
47
  */
22
48
  export declare function getEventFuncByType(pageContext: PageContext, events: Array<any>, eventType: string): any;
49
+ /**
50
+ * 根据事件类型,获得事件名称
51
+ * @param events
52
+ * @param eventType
53
+ * @returns
54
+ */
55
+ export declare function getEventNameByType(events: Array<any>, eventType: string): any;
23
56
  /**
24
57
  * 获得事件Function对象
25
58
  * @param events 该组件所有事件集合
@@ -46,3 +79,14 @@ export declare function cellDblClick(pageContext: any, configureObj: any, params
46
79
  export declare function rowClick(pageContext: any, configureObj: any, params: any): any;
47
80
  export declare function rowDblClick(pageContext: any, configureObj: any, params: any): any;
48
81
  export declare function headerClick(pageContext: any, configureObj: any, params: any): any;
82
+ export declare function fileUploadBeforeUpload(params: any): any;
83
+ export declare function fileUploadUploaded(pageContext: any, configureObj: any, params: any): any;
84
+ export declare function fileUploadBeforeDelete(pageContext: any, configureObj: any, params: any): any;
85
+ export declare function fileUploadDeleted(pageContext: any, configureObj: any, params: any): any;
86
+ /**
87
+ * 当前按钮的点击事件是否是列表的 显示查询 事件。移动端时才需要显示这个按钮。
88
+ * @param configure 组件配置
89
+ */
90
+ export declare function isShowComponent(configure: Component): boolean;
91
+ export declare function handleChartEvent(pageContext: PageContext, configure: Component, eventType: string, chartOption: object, otherParams?: object): any;
92
+ export declare function isShowMobileEvent(pageContext: PageContext, configure: Component): any;