super-page-runtime 2.3.22-tmp2 → 2.3.22-tmp3

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 (385) 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/dist/lib/_virtual/_plugin-vue_export-helper.cjs +1 -6
  187. package/dist/lib/assets/chart-themes/bar-theme.cjs +1 -2
  188. package/dist/lib/assets/chart-themes/gauge-theme.cjs +1 -2
  189. package/dist/lib/assets/chart-themes/pie-theme.cjs +1 -2
  190. package/dist/lib/assets/chart-themes/radar-theme.cjs +1 -2
  191. package/dist/lib/assets/chart-themes/scatter-theme.cjs +1 -2
  192. package/dist/lib/assets/file.png.cjs +1 -2
  193. package/dist/lib/assets/folder.png.cjs +1 -2
  194. package/dist/lib/components/runtime/utils/ai-chat-util.cjs +1 -13
  195. package/dist/lib/components/runtime/utils/anchor-util.cjs +1 -62
  196. package/dist/lib/components/runtime/utils/api/page-expose-util.cjs +1 -169
  197. package/dist/lib/components/runtime/utils/assemblys-config.cjs +1 -16
  198. package/dist/lib/components/runtime/utils/barcode-util.cjs +1 -10
  199. package/dist/lib/components/runtime/utils/charts/chart-columnline-util.cjs +2 -137
  200. package/dist/lib/components/runtime/utils/charts/chart-gauge-util.cjs +1 -34
  201. package/dist/lib/components/runtime/utils/charts/chart-pie-util.cjs +2 -78
  202. package/dist/lib/components/runtime/utils/charts/chart-radar-util.cjs +1 -52
  203. package/dist/lib/components/runtime/utils/charts/chart-scatter-util.cjs +1 -43
  204. package/dist/lib/components/runtime/utils/charts/chart-util.cjs +1 -244
  205. package/dist/lib/components/runtime/utils/common-util.cjs +1 -91
  206. package/dist/lib/components/runtime/utils/eventBus.cjs +1 -3
  207. package/dist/lib/components/runtime/utils/events/event-util.cjs +1 -345
  208. package/dist/lib/components/runtime/utils/events/print-label.cjs +1 -97
  209. package/dist/lib/components/runtime/utils/events/standard-event.cjs +1 -1101
  210. package/dist/lib/components/runtime/utils/events/validator-util.cjs +1 -296
  211. package/dist/lib/components/runtime/utils/form/date-shortcuts.cjs +1 -34
  212. package/dist/lib/components/runtime/utils/form/scan-util.cjs +1 -90
  213. package/dist/lib/components/runtime/utils/global-refs.cjs +1 -42
  214. package/dist/lib/components/runtime/utils/i18n-util.cjs +1 -11
  215. package/dist/lib/components/runtime/utils/interfaces/page-design-types.cjs +1 -4
  216. package/dist/lib/components/runtime/utils/page-helper-util.cjs +1 -354
  217. package/dist/lib/components/runtime/utils/page-init-util.cjs +1 -244
  218. package/dist/lib/components/runtime/utils/page-permission-util.cjs +1 -26
  219. package/dist/lib/components/runtime/utils/page-store.cjs +1 -50
  220. package/dist/lib/components/runtime/utils/store-util.cjs +1 -11
  221. package/dist/lib/components/runtime/utils/store.cjs +1 -3
  222. package/dist/lib/components/runtime/utils/table-utils.cjs +1 -68
  223. package/dist/lib/components/runtime/utils/tree-utils.cjs +1 -54
  224. package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.cjs +1 -3
  225. package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.cjs +1 -24
  226. package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.cjs +1 -5
  227. package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.cjs +1 -17
  228. package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.cjs +1 -3
  229. package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.cjs +1 -35
  230. package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.cjs +1 -3
  231. package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.cjs +1 -3
  232. package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.cjs +1 -3
  233. package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.cjs +1 -17
  234. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.cjs +1 -5
  235. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.cjs +1 -41
  236. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.cjs +1 -11
  237. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.cjs +1 -3
  238. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.cjs +1 -11
  239. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.cjs +1 -3
  240. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.cjs +1 -53
  241. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.cjs +1 -3
  242. package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.cjs +1 -5
  243. package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.cjs +1 -48
  244. package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.cjs +1 -5
  245. package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.cjs +1 -24
  246. package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.cjs +1 -5
  247. package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.cjs +1 -34
  248. package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.cjs +1 -5
  249. package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.cjs +1 -24
  250. package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.cjs +1 -5
  251. package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.cjs +1 -24
  252. package/dist/lib/components/runtime/views/assemblys/chart/table/chart-table-util.cjs +1 -402
  253. package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue.cjs +1 -3
  254. package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue2.cjs +1 -3
  255. package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue.cjs +1 -6
  256. package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue2.cjs +1 -3
  257. package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue.cjs +1 -36
  258. package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue2.cjs +1 -3
  259. package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue.cjs +1 -13
  260. package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue2.cjs +1 -3
  261. package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue.cjs +1 -3
  262. package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue2.cjs +1 -249
  263. package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue.cjs +1 -16
  264. package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue2.cjs +1 -3
  265. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.cjs +1 -32
  266. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.cjs +1 -3
  267. package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue.cjs +1 -32
  268. package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue2.cjs +1 -3
  269. package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.cjs +1 -19
  270. package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue2.cjs +1 -3
  271. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.cjs +1 -12
  272. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.cjs +1 -3
  273. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue.cjs +1 -21
  274. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue2.cjs +1 -3
  275. package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.cjs +1 -13
  276. package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue2.cjs +1 -3
  277. package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.cjs +1 -30
  278. package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue2.cjs +1 -3
  279. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.cjs +1 -15
  280. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.cjs +1 -3
  281. package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.cjs +1 -5
  282. package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.cjs +1 -21
  283. package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.cjs +1 -3
  284. package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.cjs +1 -17
  285. package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.cjs +1 -3
  286. package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.cjs +1 -15
  287. package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue.cjs +1 -5
  288. package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue2.cjs +1 -27
  289. package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue.cjs +1 -5
  290. package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.cjs +1 -79
  291. package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.cjs +1 -3
  292. package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.cjs +1 -20
  293. package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.cjs +1 -3
  294. package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.cjs +1 -15
  295. package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.cjs +1 -3
  296. package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.cjs +1 -12
  297. package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.cjs +1 -5
  298. package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.cjs +1 -88
  299. package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.cjs +1 -5
  300. package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.cjs +1 -43
  301. package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.cjs +1 -3
  302. package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.cjs +1 -59
  303. package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.cjs +1 -382
  304. package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.cjs +1 -3
  305. package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.cjs +1 -322
  306. package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.cjs +1 -3
  307. package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.cjs +1 -3
  308. package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.cjs +1 -81
  309. package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue.cjs +1 -5
  310. package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.cjs +1 -124
  311. package/dist/lib/components/runtime/views/assemblys/error-render.vue.cjs +1 -3
  312. package/dist/lib/components/runtime/views/assemblys/error-render.vue2.cjs +1 -3
  313. package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.cjs +1 -3
  314. package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.cjs +1 -57
  315. package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue.cjs +1 -35
  316. package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.cjs +1 -3
  317. package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime.vue.cjs +1 -3
  318. package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.cjs +1 -57
  319. package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.cjs +1 -3
  320. package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.cjs +1 -91
  321. package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.cjs +1 -3
  322. package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.cjs +1 -47
  323. package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.cjs +1 -3
  324. package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.cjs +1 -20
  325. package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.cjs +1 -3
  326. package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.cjs +1 -65
  327. package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.cjs +1 -3
  328. package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.cjs +1 -20
  329. package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.cjs +1 -3
  330. package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.cjs +1 -70
  331. package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.cjs +1 -5
  332. package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.cjs +1 -31
  333. package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.cjs +1 -3
  334. package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.cjs +1 -26
  335. package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.cjs +1 -5
  336. package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.cjs +1 -13
  337. package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.cjs +1 -3
  338. package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.cjs +1 -75
  339. package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.cjs +1 -5
  340. package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.cjs +1 -188
  341. package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.cjs +1 -3
  342. package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.cjs +1 -130
  343. package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.cjs +1 -3
  344. package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.cjs +1 -11
  345. package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.cjs +1 -3
  346. package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.cjs +1 -29
  347. package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.cjs +1 -3
  348. package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.cjs +1 -38
  349. package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.cjs +1 -3
  350. package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.cjs +1 -20
  351. package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue.cjs +1 -73
  352. package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue2.cjs +1 -3
  353. package/dist/lib/components/runtime/views/assemblys/object-render.vue.cjs +1 -132
  354. package/dist/lib/components/runtime/views/assemblys/object-render.vue2.cjs +1 -3
  355. package/dist/lib/components/runtime/views/assemblys/page-bottom.vue.cjs +1 -3
  356. package/dist/lib/components/runtime/views/assemblys/page-bottom.vue2.cjs +1 -3
  357. package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.cjs +1 -5
  358. package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.cjs +1 -23
  359. package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.cjs +1 -5
  360. package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.cjs +1 -23
  361. package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.cjs +1 -5
  362. package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.cjs +1 -34
  363. package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.cjs +1 -3
  364. package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.cjs +1 -17
  365. package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.cjs +1 -3
  366. package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.cjs +1 -20
  367. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.cjs +1 -5
  368. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.cjs +1 -19
  369. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.cjs +1 -3
  370. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.cjs +1 -14
  371. package/dist/lib/components/runtime/views/home-chart.vue.cjs +1 -38
  372. package/dist/lib/components/runtime/views/home-chart.vue2.cjs +1 -3
  373. package/dist/lib/components/runtime/views/super-page-dialog.vue.cjs +1 -23
  374. package/dist/lib/components/runtime/views/super-page-dialog.vue3.cjs +1 -3
  375. package/dist/lib/components/runtime/views/super-page.vue.cjs +1 -5
  376. package/dist/lib/components/runtime/views/super-page.vue2.cjs +1 -264
  377. package/dist/lib/i18n/langs/cn.cjs +1 -2
  378. package/dist/lib/i18n/langs/en.cjs +1 -2
  379. package/dist/lib/index.cjs +1 -6
  380. package/dist/lib/style.css +1 -996
  381. package/dist/umd/index.full.min.js +3 -7429
  382. package/dist/umd/style.css +1 -996
  383. package/package.json +77 -76
  384. package/dist/es/components/runtime/utils/api/api-util.mjs +0 -4
  385. package/dist/lib/components/runtime/utils/api/api-util.cjs +0 -3
@@ -1,354 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const agilebuilderUi = require("agilebuilder-ui"), dayjs = require("dayjs"), globalRefs = require("./global-refs.cjs"), vue = require("vue"), commonUtil = require("./common-util.cjs");
4
- function getComponentOptionConfigs(e, t, o, a) {
5
- return getComponentOptionConfigsBase(e, (t == null ? void 0 : t.systemCode) ? t.systemCode : o, (t == null ? void 0 : t.systemVersion) ? t == null ? void 0 : t.systemVersion : a);
6
- }
7
- function getComponentOptionConfigsBase(e, t, o) {
8
- if (!e.props || !e.props.dataOrigin) return;
9
- if (e.name && "table" === e.name) return;
10
- const a = e.props.dataOrigin, r = { uuid: e.uuid };
11
- if ("optionGroup" == a.optionValueSetType) r.type = "optionGroup", r.props = { code: a.optionGroup };
12
- else if ("dynamicData" == a.optionValueSetType) r.type = "dynamicData", r.filterType = a.filterType, r.props = { code: a.dynamicDataSourceCode };
13
- else if ("dataTable" == a.optionValueSetType) {
14
- r.filterType = a.filterType;
15
- const e2 = getTableQueryInfo(a, t, o);
16
- Object.assign(r, e2);
17
- } else if ("service" == a.optionValueSetType) {
18
- r.filterType = a.filterType;
19
- const e2 = getServiceQueryInfo(a, t, o);
20
- Object.assign(r, e2);
21
- }
22
- return r.type ? r : void 0;
23
- }
24
- function getTableQueryInfo(e, t, o) {
25
- const a = { type: "dataTable" };
26
- if (a.valueLabelSwitch = !!e.valueLabelSwitch, a.props = { tableName: e.tableName, systemCode: e.tableSysCode ? e.tableSysCode : t, systemVersion: e.tableSysVersion ? e.tableSysVersion : o }, e.sortFields) {
27
- const t2 = [];
28
- for (const o2 of e.sortFields) o2.name && t2.push({ prop: o2.name, order: o2.type ? o2.type : "asc" });
29
- a.props.sorts = t2;
30
- }
31
- const r = [];
32
- if (e.filterList) {
33
- const t2 = [];
34
- for (const o2 of e.filterList) {
35
- if (!o2.propName) continue;
36
- o2.propDbName || (o2.propDbName = o2.propName);
37
- const e2 = {};
38
- Object.assign(e2, o2);
39
- const a2 = getParamNames(o2.propValue);
40
- for (const e3 of a2) e3 && (e3.startsWith("${data.") || e3.startsWith("${task.") || e3.startsWith("${page.")) && (r.includes(e3) || r.push(e3));
41
- o2.propValue, t2.push(e2);
42
- }
43
- a.props.searchForm = t2;
44
- }
45
- a.props.monitorFields = r;
46
- const n = [];
47
- if (e.tableValueField && (a.props.valueField = e.tableValueField), e.tableLableField && -1 == n.indexOf(e.tableLableField) && (a.props.lableField = e.tableLableField), e.autoSets) for (const t2 of e.autoSets) t2.source && -1 == n.indexOf(t2.source) && n.push(t2.source);
48
- return a.props.queryFields = n, a.props.pageSize = e.displayQuantity, a;
49
- }
50
- function getServiceQueryInfo(e, t, o) {
51
- const a = { type: "service" };
52
- if (a.valueLabelSwitch = !!e.valueLabelSwitch, a.props = { serivceCode: e.serviceCode, systemCode: e.tableSysCode ? e.tableSysCode : t, systemVersion: e.tableSysVersion ? e.tableSysVersion : o }, e.serviceInputs) {
53
- const t2 = [];
54
- for (const o2 of e.serviceInputs) {
55
- if (!o2.name || o2.value) continue;
56
- const e2 = {};
57
- Object.assign(e2, o2), t2.push(e2);
58
- }
59
- a.props.inputs = t2;
60
- }
61
- return a.props.dataSetField = e.serviceDataSetField, a.props.valueField = e.serviceValueField, a.props.labelField = e.serviceLabelField, a;
62
- }
63
- function updateChartDatasources(e, t, o, a) {
64
- return new Promise((r, n) => {
65
- if (!t || 0 == t.length) return void n(new Error("无需查询的统计图配置!"));
66
- const s = commonUtil.deepCopy(t);
67
- s.forEach((t2) => {
68
- const o2 = t2.services;
69
- if (o2 && o2.length > 0) {
70
- const t3 = o2[0].serviceInputs;
71
- t3 && (o2[0].serviceInParams = {}, t3.forEach((t4) => {
72
- const a2 = t4.name, r2 = t4.value;
73
- o2[0].serviceInParams[a2] = getValueFromVariable(e.entity, r2);
74
- }), delete o2[0].serviceInputs);
75
- }
76
- });
77
- const i = e.entity ? e.entity : {}, u = {};
78
- i.request && Object.assign(u, i.request), i.page && Object.assign(u, i.page), o && Object.assign(u, o);
79
- const l = {};
80
- i.task && Object.assign(l, i.task);
81
- const p = { entityMap: i.data, additionalParamMap: u, taskMap: l, dataSourceList: s, systemCode: e.systemCode, pageCode: e.code }, c = e.backendUrl, g = commonUtil.getBaseUrl(c, e.isTest) + "/common/common-data/find-chart-datas";
82
- agilebuilderUi.http.post(g, p, { headers: { customSystem: e.systemCode } }).then((t2) => {
83
- var _a, _b;
84
- e.chartDataSourceMap || (e.chartDataSourceMap = {});
85
- for (const o2 in t2) {
86
- e.chartDataSourceMap[o2] = t2[o2];
87
- const r2 = globalRefs.getComponentRef(e, o2);
88
- if (r2) {
89
- const n2 = r2.getConfigure();
90
- if ((!a || n2 && (void 0 === n2.initializationQuery || n2.initializationQuery)) && r2.updateChartDatas && (r2.updateChartDatas(t2[o2]), (_b = (_a = n2.runtime) == null ? void 0 : _a.dataConfig) == null ? void 0 : _b.resultSet)) {
91
- const a2 = t2[o2] && t2[o2].length > 0 ? t2[o2][0] : {}, r3 = a2 && a2.result ? a2.result : {};
92
- let s2 = null;
93
- n2.serviceDataField ? s2 = r3[n2.serviceDataField] : r3 && (s2 = Array.isArray(r3) ? r3 : [r3]), s2 || (s2 = []), setValueForVariableName(e.entity, n2.runtime.dataConfig.resultSet, s2);
94
- }
95
- }
96
- }
97
- r(t2);
98
- }).catch((e2) => {
99
- n(e2);
100
- });
101
- });
102
- }
103
- function updateChartDatasourcesByComponent(e, t) {
104
- const o = e.initChartServiceConfigs.find((e2) => e2.uuid === t);
105
- o && updateChartDatasources(e, [o], null, false);
106
- }
107
- function updateOptionDatasources(e, t, o) {
108
- return new Promise((a, r) => {
109
- if (!t || 0 == t.length) return void r(new Error("无需查询的配置!"));
110
- const n = e.entity ? e.entity : {}, s = {};
111
- n.request && Object.assign(s, n.request), n.page && Object.assign(s, n.page), s.query = o;
112
- const i = { entityMap: n.data, additionalParamMap: s, dataSourceList: t, systemCode: e.systemCode, query: o }, u = e.backendUrl, l = commonUtil.getBaseUrl(u, e.isTest) + "/common/common-data/find-datas";
113
- agilebuilderUi.http.post(l, i).then((t2) => {
114
- e.optionSourceMap || (e.optionSourceMap = {});
115
- for (const o2 in t2) {
116
- e.optionSourceMap[o2] = t2[o2];
117
- const a2 = globalRefs.getComponentRef(e, o2);
118
- a2 && a2.updateOptions && a2.updateOptions(t2[o2]);
119
- }
120
- a(t2);
121
- }).catch((e2) => {
122
- r(e2);
123
- });
124
- });
125
- }
126
- function getOptionDatasFromPage(e, t) {
127
- return getComponentOptionDatasFromPage(e, t.uuid);
128
- }
129
- function getComponentOptionDatasFromPage(e, t) {
130
- const o = getOptionDatasSourceMap(e)[t];
131
- return o || [];
132
- }
133
- function getOptionDatasSourceMap(e) {
134
- if (!e || !e.optionSourceMap) return {};
135
- const t = e.optionSourceMap;
136
- return t || {};
137
- }
138
- function getChartDatasFromPage(e, t) {
139
- if (!e || !e.chartDataSourceMap || !t) return null;
140
- return e.chartDataSourceMap[t.uuid];
141
- }
142
- function queryOptionDatasources(e, t, o) {
143
- return updateOptionDatasources(e, t ? [t] : [], o);
144
- }
145
- function autoSetAfterSelect(e, t, o, a, r = []) {
146
- if (!o || 0 == o.length) return;
147
- const n = t.entity ? t.entity : {};
148
- for (const e2 of o) {
149
- if (!e2.source || !e2.target || r.includes(e2.target)) continue;
150
- const t2 = getValuesByField(a, e2.source);
151
- let o2 = e2.target;
152
- if (!o2 || !o2.startsWith("${")) continue;
153
- o2 = o2.substring(2, o2.length - 1);
154
- const s = o2.split(".");
155
- setVariableValue(n, s, null == t2 ? null : t2.join(","));
156
- }
157
- }
158
- function getValuesByField(e, t) {
159
- if (e) {
160
- const o = [];
161
- for (const a of e) {
162
- let e2 = a[t];
163
- null != e2 && null != e2 || (e2 = ""), o.push(e2);
164
- }
165
- return o;
166
- }
167
- return null;
168
- }
169
- function getVariableValue(e, t) {
170
- if (!e || !t || 0 == t.length) return;
171
- let o = e;
172
- for (let e2 = 0; e2 < t.length; e2++) {
173
- if (null == o) return o;
174
- o = o[t[e2]];
175
- }
176
- return o;
177
- }
178
- function setValueForVariableName(e, t, o) {
179
- if (!t || !t.startsWith("${")) return;
180
- setVariableValue(e, (t = t.substring(2, t.length - 1)).split("."), o);
181
- }
182
- function setVariableValue(e, t, o) {
183
- if (!e || !t || 0 == t.length) return;
184
- let a = e;
185
- for (let e2 = 0; e2 < t.length; e2++) {
186
- const r = t[e2];
187
- e2 + 1 === t.length ? a[r] = void 0 === o ? null : o : (void 0 === a[r] && (a[r] = {}), a = a[r]);
188
- }
189
- }
190
- function setVariableValueWithProp(e, t, o) {
191
- if (!e || !t) return;
192
- setVariableValue(e, t.split("."), o);
193
- }
194
- function formatVariableValue(e, t) {
195
- if (!e || "" == t || null == t || null == t) return t;
196
- const o = e.entity ? e.entity : {}, a = getParamNames(t);
197
- for (const e2 in a) {
198
- const r = a[e2], n = getValueFromVariable(o, r);
199
- if (n && "[object Date]" === Object.prototype.toString.call(n)) return dayjs(n).format("YYYY-MM-DD HH:mm:ss");
200
- if (n && "number" == typeof n) return n;
201
- t = t.replace(r, null == n ? "" : n);
202
- }
203
- return t;
204
- }
205
- function getParamNames(e) {
206
- if (!e) return [];
207
- const t = e.match(/\$\{[^\{|\}]+\}/g);
208
- return t || [];
209
- }
210
- function formatValueByType(e, t, o) {
211
- if (!t || "" == e || null == e || null == e) return e;
212
- if (o = o || {}, "number" == t || "percent" == t) {
213
- if (isNaN(e)) return e;
214
- let a = parseInt(o.decimalDigit);
215
- if ((null == a || isNaN(a)) && (a = -1), e = parseFloat(e), "percent" == t && (e *= 100), a > -1 && (e = parseFloat(e.toFixed(a))), "percent" == t) e += "%";
216
- else {
217
- if (o.thousandsSeparator) {
218
- const t2 = e.toString().split(".");
219
- t2[0] = t2[0].replace(/\B(?=(\d{3})+(?!\d))/g, ","), e = t2.length > 1 ? t2.join(".") : t2[0];
220
- }
221
- o.symbol && (e = o.symbol + "" + e);
222
- }
223
- return e;
224
- }
225
- if ("date" == t || "time" == t) {
226
- let a = "";
227
- return "date" == t ? (a = o.dateFormat, a || (a = "YYYY-MM-DD")) : (a = o.timeFormat, a || (a = "HH:mm:ss")), dayjs(e).format(a);
228
- }
229
- return "custom" == t && o.formatEventUuid, e;
230
- }
231
- function getValueFromVariable(e, t, o) {
232
- if (null == t || null == t) return t;
233
- if (t.startsWith("${") && t.endsWith("}")) {
234
- let a = t.substring(2, t.length - 1), r = null, n = null;
235
- if (a.startsWith("data.")) a = a.substring(5), n = e.data, r = "data";
236
- else if (a.startsWith("page.")) a = a.substring(5), r = "page", n = e.page;
237
- else if (a.startsWith("task.")) a = a.substring(5), r = "task", n = e.task;
238
- else if (a.startsWith("request.")) a = a.substring(8), r = "request", n = e.request;
239
- else if (a.startsWith("context.")) a = a.substring(8), r = "context", n = e.context;
240
- else if (a.startsWith("system.")) a = a.substring(7), r = "system", n = e.system;
241
- else {
242
- if (a.startsWith("fixed.")) return a.substring(6);
243
- a.startsWith("row.") && (a = a.substring(4), n = o, r = "row");
244
- }
245
- return a ? getValueFromSource(n, a, r) : "";
246
- }
247
- return t;
248
- }
249
- function getValueFromSource(e, t, o) {
250
- if ("context" != o && !e || !t) return;
251
- const a = t.indexOf(".");
252
- if (a > -1) {
253
- const r = t.substring(0, a), n = t.substring(a + 1);
254
- let s = e[r];
255
- return s && Array.isArray(s) && s.length > 0 && (s = s[0]), getValueFromSource(s, n, o);
256
- }
257
- if ("context" == o) {
258
- if ("currentDate" == t || "currentTime" == t) return /* @__PURE__ */ new Date();
259
- if (t.startsWith("currentDate") && t.length > 11) {
260
- const e2 = t.substring(11), o2 = e2.substring(0, 1);
261
- let a2 = parseInt(e2.substring(1, e2.length - 1), 10);
262
- const r = e2.substring(e2.length - 1), n = /* @__PURE__ */ new Date();
263
- return a2 = "+" === o2 ? a2 : -a2, "d" === r || "w" === r ? (a2 = "w" === r ? 7 * a2 : a2, n.setDate(n.getDate() + a2)) : "m" === r ? n.setMonth(n.getMonth() + a2) : "y" === r && n.setFullYear(n.getFullYear() + a2), n;
264
- }
265
- if (!e) return;
266
- }
267
- return e[t];
268
- }
269
- function caculateShowCondition(pageContext, showConditions, row) {
270
- if (!showConditions || 0 == showConditions.length || !pageContext || !pageContext.entity) return true;
271
- const entityData = pageContext.entity;
272
- let conditions = "";
273
- const maxLen = showConditions.length;
274
- for (let e = 0; e < maxLen; e++) {
275
- const t = showConditions[e], o = t.propName;
276
- let a = t.operator;
277
- if (!o || "" === o) continue;
278
- a || (a = "EQ");
279
- const r = getValueFromVariable(entityData, o, row);
280
- let n = getValueFromVariable(entityData, t.propValue, row);
281
- const s = t.dataType;
282
- "CONTAIN" != a && "NOT_CONTAIN" != a || r && !r.includes && (a = "CONTAIN" == a ? "EQ" : "NET");
283
- let i = t.variableIsNull, u;
284
- if (i || (i = "null"), "IS_NULL" !== a && "IS_NOT_NULL" !== a && (void 0 !== n && "" !== n || (n = null, "null" === i ? a = "IS_NULL" : "notequal" === i ? a = "IS_NOT_NULL" : u = true)), null == u) try {
285
- u = agilebuilderUi.executeExpression(r, a, n, s);
286
- } catch (e2) {
287
- u = false;
288
- }
289
- const l = t.leftBracket, p = t.rightBracket;
290
- let c = t.joinSign;
291
- if (l && null !== l && "" !== l && (conditions += l, conditions += " "), conditions += u + " ", p && null !== p && "" !== p && (conditions += p, conditions += " "), e < maxLen - 1 && c && null !== c && "" !== c) {
292
- const e2 = c.toLowerCase();
293
- "and" === e2 ? c = e2.replace("and", "&&") : "or" === e2 && (c = e2.replace("or", "||")), conditions += c + " ";
294
- }
295
- }
296
- return !conditions || eval("(" + conditions + ")");
297
- }
298
- function monitorFieldChange(e, t, o) {
299
- if (!o || !e || !t || 0 == t.length) return;
300
- const a = [], r = [];
301
- for (let e2 of t) if (e2.startsWith("${")) {
302
- e2 = e2.substring(2, e2.length - 1);
303
- const t2 = e2.split(".");
304
- "page" !== t2[0] && "task" !== t2[0] && "data" !== t2[0] || (a.push(t2), r.includes(t2[0]) || r.push(t2[0]));
305
- }
306
- let n = getMonitorFieldValues(a, e.entity), s = false;
307
- for (const t2 of r) vue.watch(e.entity[t2], () => {
308
- s && clearTimeout(s), s = setTimeout(function() {
309
- const t3 = getMonitorFieldValues(a, e.entity);
310
- n != t3 && (n = t3, o());
311
- }, 200);
312
- });
313
- }
314
- function getMonitorFieldValues(e, t) {
315
- let o = "";
316
- for (const a of e) o += "_" + getVariableValue(t, a);
317
- return o;
318
- }
319
- function getFormPropName(e) {
320
- return e && e.indexOf("${") >= 0 ? e.substring(e.indexOf(".") + 1, e.lastIndexOf("}")) : e;
321
- }
322
- function getSizeConfig(e, t) {
323
- const o = getPageModeType(e);
324
- let a;
325
- return t.props && t.props.size && t.props.size[o] && (a = t.props.size[o]), !a && t.props && t.props.size && (a = t.props.size.pc), a;
326
- }
327
- function getPageModeType(e) {
328
- let t = e.dimensions;
329
- return t || (t = "pc"), t;
330
- }
331
- function isPromise(e) {
332
- return e && "[object Promise]" === Object.prototype.toString.call(e);
333
- }
334
- function decomposeVariable(e) {
335
- if (!e) return [];
336
- const t = e.match(/\${(.*?)}/);
337
- return t ? t[1].split(".") : [];
338
- }
339
- function getModelFieldFromPageContext(e, t) {
340
- if (!t.modelFieldsMap) return;
341
- let o = null;
342
- for (let a = 0; a < e.length; a++) {
343
- const r = e[a];
344
- a + 1 === e.length && (o = t.modelFieldsMap[r]);
345
- }
346
- return o;
347
- }
348
- function isNumberDataType(e) {
349
- return "INTEGER" === e || "LONG" === e || "DOUBLE" === e || "FLOAT_COM" === e;
350
- }
351
- function isDateDataType(e) {
352
- return "DATE" === (e = e ? e.toUpperCase() : "") || "TIME" === e || "DATETIME" === e || "TIMESTAMP" === e;
353
- }
354
- exports.autoSetAfterSelect = autoSetAfterSelect, exports.caculateShowCondition = caculateShowCondition, exports.decomposeVariable = decomposeVariable, exports.formatValueByType = formatValueByType, exports.formatVariableValue = formatVariableValue, exports.getChartDatasFromPage = getChartDatasFromPage, exports.getComponentOptionConfigs = getComponentOptionConfigs, exports.getComponentOptionConfigsBase = getComponentOptionConfigsBase, exports.getComponentOptionDatasFromPage = getComponentOptionDatasFromPage, exports.getFormPropName = getFormPropName, exports.getModelFieldFromPageContext = getModelFieldFromPageContext, exports.getOptionDatasFromPage = getOptionDatasFromPage, exports.getOptionDatasSourceMap = getOptionDatasSourceMap, exports.getParamNames = getParamNames, exports.getSizeConfig = getSizeConfig, exports.getValueFromSource = getValueFromSource, exports.getValueFromVariable = getValueFromVariable, exports.getVariableValue = getVariableValue, exports.isDateDataType = isDateDataType, exports.isNumberDataType = isNumberDataType, exports.isPromise = isPromise, exports.monitorFieldChange = monitorFieldChange, exports.queryOptionDatasources = queryOptionDatasources, exports.setValueForVariableName = setValueForVariableName, exports.setVariableValue = setVariableValue, exports.setVariableValueWithProp = setVariableValueWithProp, exports.updateChartDatasources = updateChartDatasources, exports.updateChartDatasourcesByComponent = updateChartDatasourcesByComponent, exports.updateOptionDatasources = updateOptionDatasources;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const agilebuilderUi=require("agilebuilder-ui"),dayjs=require("dayjs"),globalRefs=require("./global-refs.cjs"),vue=require("vue"),commonUtil=require("./common-util.cjs");function getComponentOptionConfigs(e,t,a,o){return getComponentOptionConfigsBase(e,t!=null&&t.systemCode?t.systemCode:a,t!=null&&t.systemVersion?t==null?void 0:t.systemVersion:o)}function getComponentOptionConfigsBase(e,t,a){if(!e.props||!e.props.dataOrigin||e.name&&e.name==="table")return;const o=e.props.dataOrigin,r={uuid:e.uuid};if(o.optionValueSetType=="optionGroup")r.type="optionGroup",r.props={code:o.optionGroup};else if(o.optionValueSetType=="dynamicData")r.type="dynamicData",r.filterType=o.filterType,r.props={code:o.dynamicDataSourceCode};else if(o.optionValueSetType=="dataTable"){r.filterType=o.filterType;const s=getTableQueryInfo(o,t,a);Object.assign(r,s)}else if(o.optionValueSetType=="service"){r.filterType=o.filterType;const s=getServiceQueryInfo(o,t,a);Object.assign(r,s)}return r.type?r:void 0}function getTableQueryInfo(e,t,a){const o={type:"dataTable"};if(o.valueLabelSwitch=!!e.valueLabelSwitch,o.props={tableName:e.tableName,systemCode:e.tableSysCode?e.tableSysCode:t,systemVersion:e.tableSysVersion?e.tableSysVersion:a},e.sortFields){const n=[];for(const i of e.sortFields)i.name&&n.push({prop:i.name,order:i.type?i.type:"asc"});o.props.sorts=n}const r=[];if(e.filterList){const n=[];for(const i of e.filterList){if(!i.propName)continue;i.propDbName||(i.propDbName=i.propName);const u={};Object.assign(u,i);const c=getParamNames(i.propValue);for(const l of c)l&&(l.startsWith("${data.")||l.startsWith("${task.")||l.startsWith("${page."))&&(r.includes(l)||r.push(l));n.push(u)}o.props.searchForm=n}o.props.monitorFields=r;const s=[];if(e.tableValueField&&(o.props.valueField=e.tableValueField),e.tableLableField&&s.indexOf(e.tableLableField)==-1&&(o.props.lableField=e.tableLableField),e.autoSets)for(const n of e.autoSets)n.source&&s.indexOf(n.source)==-1&&s.push(n.source);return o.props.queryFields=s,o.props.pageSize=e.displayQuantity,o}function getServiceQueryInfo(e,t,a){const o={type:"service"};if(o.valueLabelSwitch=!!e.valueLabelSwitch,o.props={serivceCode:e.serviceCode,systemCode:e.tableSysCode?e.tableSysCode:t,systemVersion:e.tableSysVersion?e.tableSysVersion:a},e.serviceInputs){const r=[];for(const s of e.serviceInputs){if(!s.name||s.value)continue;const n={};Object.assign(n,s),r.push(n)}o.props.inputs=r}return o.props.dataSetField=e.serviceDataSetField,o.props.valueField=e.serviceValueField,o.props.labelField=e.serviceLabelField,o}function updateChartDatasources(e,t,a,o){return new Promise((r,s)=>{if(!t||t.length==0)return void s(new Error("无需查询的统计图配置!"));const n=commonUtil.deepCopy(t);n.forEach(f=>{const m=f.services;if(m&&m.length>0){const h=m[0].serviceInputs;h&&(m[0].serviceInParams={},h.forEach(d=>{const b=d.name,y=d.value;m[0].serviceInParams[b]=getValueFromVariable(e.entity,y)}),delete m[0].serviceInputs)}});const i=e.entity?e.entity:{},u={};i.request&&Object.assign(u,i.request),i.page&&Object.assign(u,i.page),a&&Object.assign(u,a);const c={};i.task&&Object.assign(c,i.task);const l={entityMap:i.data,additionalParamMap:u,taskMap:c,dataSourceList:n,systemCode:e.systemCode,pageCode:e.code},p=e.backendUrl,g=commonUtil.getBaseUrl(p,e.isTest)+"/common/common-data/find-chart-datas";agilebuilderUi.http.post(g,l,{headers:{customSystem:e.systemCode}}).then(f=>{var m,h;e.chartDataSourceMap||(e.chartDataSourceMap={});for(const d in f){e.chartDataSourceMap[d]=f[d];const b=globalRefs.getComponentRef(e,d);if(b){const y=b.getConfigure();if((!o||y&&(y.initializationQuery===void 0||y.initializationQuery))&&b.updateChartDatas&&(b.updateChartDatas(f[d]),(h=(m=y.runtime)==null?void 0:m.dataConfig)==null?void 0:h.resultSet)){const F=f[d]&&f[d].length>0?f[d][0]:{},V=F&&F.result?F.result:{};let C=null;y.serviceDataField?C=V[y.serviceDataField]:V&&(C=Array.isArray(V)?V:[V]),C||(C=[]),setValueForVariableName(e.entity,y.runtime.dataConfig.resultSet,C)}}}r(f)}).catch(f=>{s(f)})})}function updateChartDatasourcesByComponent(e,t){const a=e.initChartServiceConfigs.find(o=>o.uuid===t);a&&updateChartDatasources(e,[a],null,!1)}function updateOptionDatasources(e,t,a){return new Promise((o,r)=>{if(!t||t.length==0)return void r(new Error("无需查询的配置!"));const s=e.entity?e.entity:{},n={};s.request&&Object.assign(n,s.request),s.page&&Object.assign(n,s.page),n.query=a;const i={entityMap:s.data,additionalParamMap:n,dataSourceList:t,systemCode:e.systemCode,query:a},u=e.backendUrl,c=commonUtil.getBaseUrl(u,e.isTest)+"/common/common-data/find-datas";agilebuilderUi.http.post(c,i).then(l=>{e.optionSourceMap||(e.optionSourceMap={});for(const p in l){e.optionSourceMap[p]=l[p];const g=globalRefs.getComponentRef(e,p);g&&g.updateOptions&&g.updateOptions(l[p])}o(l)}).catch(l=>{r(l)})})}function getOptionDatasFromPage(e,t){return getComponentOptionDatasFromPage(e,t.uuid)}function getComponentOptionDatasFromPage(e,t){return getOptionDatasSourceMap(e)[t]||[]}function getOptionDatasSourceMap(e){return!e||!e.optionSourceMap?{}:e.optionSourceMap||{}}function getChartDatasFromPage(e,t){return!e||!e.chartDataSourceMap||!t?null:e.chartDataSourceMap[t.uuid]}function queryOptionDatasources(e,t,a){return updateOptionDatasources(e,t?[t]:[],a)}function autoSetAfterSelect(e,t,a,o,r=[]){if(!a||a.length==0)return;const s=t.entity?t.entity:{};for(const n of a){if(!n.source||!n.target||r.includes(n.target))continue;const i=getValuesByField(o,n.source);let u=n.target;if(!u||!u.startsWith("${"))continue;u=u.substring(2,u.length-1);const c=u.split(".");setVariableValue(s,c,i==null?null:i.join(","))}}function getValuesByField(e,t){if(e){const a=[];for(const o of e){let r=o[t];r!=null&&r!=null||(r=""),a.push(r)}return a}return null}function getVariableValue(e,t){if(!e||!t||t.length==0)return;let a=e;for(let o=0;o<t.length;o++){if(a==null)return a;a=a[t[o]]}return a}function setValueForVariableName(e,t,a){!t||!t.startsWith("${")||setVariableValue(e,(t=t.substring(2,t.length-1)).split("."),a)}function setVariableValue(e,t,a){if(!e||!t||t.length==0)return;let o=e;for(let r=0;r<t.length;r++){const s=t[r];r+1===t.length?o[s]=a===void 0?null:a:(o[s]===void 0&&(o[s]={}),o=o[s])}}function setVariableValueWithProp(e,t,a){!e||!t||setVariableValue(e,t.split("."),a)}function formatVariableValue(e,t){if(!e||t==""||t==null||t==null)return t;const a=e.entity?e.entity:{},o=getParamNames(t);for(const r in o){const s=o[r],n=getValueFromVariable(a,s);if(n&&Object.prototype.toString.call(n)==="[object Date]")return dayjs(n).format("YYYY-MM-DD HH:mm:ss");if(n&&typeof n=="number")return n;t=t.replace(s,n??"")}return t}function getParamNames(e){return e?e.match(/\$\{[^\{|\}]+\}/g)||[]:[]}function formatValueByType(e,t,a){if(!t||e==""||e==null||e==null)return e;if(a=a||{},t=="number"||t=="percent"){if(isNaN(e))return e;let o=parseInt(a.decimalDigit);if((o==null||isNaN(o))&&(o=-1),e=parseFloat(e),t=="percent"&&(e*=100),o>-1&&(e=parseFloat(e.toFixed(o))),t=="percent")e+="%";else{if(a.thousandsSeparator){const r=e.toString().split(".");r[0]=r[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),e=r.length>1?r.join("."):r[0]}a.symbol&&(e=a.symbol+""+e)}return e}if(t=="date"||t=="time"){let o="";return t=="date"?(o=a.dateFormat,o||(o="YYYY-MM-DD")):(o=a.timeFormat,o||(o="HH:mm:ss")),dayjs(e).format(o)}return t=="custom"&&a.formatEventUuid,e}function getValueFromVariable(e,t,a){if(t==null||t==null)return t;if(t.startsWith("${")&&t.endsWith("}")){let o=t.substring(2,t.length-1),r=null,s=null;if(o.startsWith("data."))o=o.substring(5),s=e.data,r="data";else if(o.startsWith("page."))o=o.substring(5),r="page",s=e.page;else if(o.startsWith("task."))o=o.substring(5),r="task",s=e.task;else if(o.startsWith("request."))o=o.substring(8),r="request",s=e.request;else if(o.startsWith("context."))o=o.substring(8),r="context",s=e.context;else if(o.startsWith("system."))o=o.substring(7),r="system",s=e.system;else{if(o.startsWith("fixed."))return o.substring(6);o.startsWith("row.")&&(o=o.substring(4),s=a,r="row")}return o?getValueFromSource(s,o,r):""}return t}function getValueFromSource(e,t,a){if(a!="context"&&!e||!t)return;const o=t.indexOf(".");if(o>-1){const r=t.substring(0,o),s=t.substring(o+1);let n=e[r];return n&&Array.isArray(n)&&n.length>0&&(n=n[0]),getValueFromSource(n,s,a)}if(a=="context"){if(t=="currentDate"||t=="currentTime")return new Date;if(t.startsWith("currentDate")&&t.length>11){const r=t.substring(11),s=r.substring(0,1);let n=parseInt(r.substring(1,r.length-1),10);const i=r.substring(r.length-1),u=new Date;return n=s==="+"?n:-n,i==="d"||i==="w"?(n=i==="w"?7*n:n,u.setDate(u.getDate()+n)):i==="m"?u.setMonth(u.getMonth()+n):i==="y"&&u.setFullYear(u.getFullYear()+n),u}if(!e)return}return e[t]}function caculateShowCondition(pageContext,showConditions,row){if(!showConditions||showConditions.length==0||!pageContext||!pageContext.entity)return!0;const entityData=pageContext.entity;let conditions="";const maxLen=showConditions.length;for(let e=0;e<maxLen;e++){const t=showConditions[e],a=t.propName;let o=t.operator;if(!a||a==="")continue;o||(o="EQ");const r=getValueFromVariable(entityData,a,row);let s=getValueFromVariable(entityData,t.propValue,row);const n=t.dataType;o!="CONTAIN"&&o!="NOT_CONTAIN"||r&&!r.includes&&(o=o=="CONTAIN"?"EQ":"NET");let i=t.variableIsNull,u;if(i||(i="null"),o!=="IS_NULL"&&o!=="IS_NOT_NULL"&&(s!==void 0&&s!==""||(s=null,i==="null"?o="IS_NULL":i==="notequal"?o="IS_NOT_NULL":u=!0)),u==null)try{u=agilebuilderUi.executeExpression(r,o,s,n)}catch{u=!1}const c=t.leftBracket,l=t.rightBracket;let p=t.joinSign;if(c&&c!==null&&c!==""&&(conditions+=c,conditions+=" "),conditions+=u+" ",l&&l!==null&&l!==""&&(conditions+=l,conditions+=" "),e<maxLen-1&&p&&p!==null&&p!==""){const g=p.toLowerCase();g==="and"?p=g.replace("and","&&"):g==="or"&&(p=g.replace("or","||")),conditions+=p+" "}}return!conditions||eval("("+conditions+")")}function monitorFieldChange(e,t,a){if(!a||!e||!t||t.length==0)return;const o=[],r=[];for(let i of t)if(i.startsWith("${")){i=i.substring(2,i.length-1);const u=i.split(".");u[0]!=="page"&&u[0]!=="task"&&u[0]!=="data"||(o.push(u),r.includes(u[0])||r.push(u[0]))}let s=getMonitorFieldValues(o,e.entity),n=!1;for(const i of r)vue.watch(e.entity[i],()=>{n&&clearTimeout(n),n=setTimeout(function(){const u=getMonitorFieldValues(o,e.entity);s!=u&&(s=u,a())},200)})}function getMonitorFieldValues(e,t){let a="";for(const o of e)a+="_"+getVariableValue(t,o);return a}function getFormPropName(e){return e&&e.indexOf("${")>=0?e.substring(e.indexOf(".")+1,e.lastIndexOf("}")):e}function getSizeConfig(e,t){const a=getPageModeType(e);let o;return t.props&&t.props.size&&t.props.size[a]&&(o=t.props.size[a]),!o&&t.props&&t.props.size&&(o=t.props.size.pc),o}function getPageModeType(e){let t=e.dimensions;return t||(t="pc"),t}function isPromise(e){return e&&Object.prototype.toString.call(e)==="[object Promise]"}function decomposeVariable(e){if(!e)return[];const t=e.match(/\${(.*?)}/);return t?t[1].split("."):[]}function getModelFieldFromPageContext(e,t){if(!t.modelFieldsMap)return;let a=null;for(let o=0;o<e.length;o++){const r=e[o];o+1===e.length&&(a=t.modelFieldsMap[r])}return a}function isNumberDataType(e){return e==="INTEGER"||e==="LONG"||e==="DOUBLE"||e==="FLOAT_COM"}function isDateDataType(e){return(e=e?e.toUpperCase():"")==="DATE"||e==="TIME"||e==="DATETIME"||e==="TIMESTAMP"}exports.autoSetAfterSelect=autoSetAfterSelect,exports.caculateShowCondition=caculateShowCondition,exports.decomposeVariable=decomposeVariable,exports.formatValueByType=formatValueByType,exports.formatVariableValue=formatVariableValue,exports.getChartDatasFromPage=getChartDatasFromPage,exports.getComponentOptionConfigs=getComponentOptionConfigs,exports.getComponentOptionConfigsBase=getComponentOptionConfigsBase,exports.getComponentOptionDatasFromPage=getComponentOptionDatasFromPage,exports.getFormPropName=getFormPropName,exports.getModelFieldFromPageContext=getModelFieldFromPageContext,exports.getOptionDatasFromPage=getOptionDatasFromPage,exports.getOptionDatasSourceMap=getOptionDatasSourceMap,exports.getParamNames=getParamNames,exports.getSizeConfig=getSizeConfig,exports.getValueFromSource=getValueFromSource,exports.getValueFromVariable=getValueFromVariable,exports.getVariableValue=getVariableValue,exports.isDateDataType=isDateDataType,exports.isNumberDataType=isNumberDataType,exports.isPromise=isPromise,exports.monitorFieldChange=monitorFieldChange,exports.queryOptionDatasources=queryOptionDatasources,exports.setValueForVariableName=setValueForVariableName,exports.setVariableValue=setVariableValue,exports.setVariableValueWithProp=setVariableValueWithProp,exports.updateChartDatasources=updateChartDatasources,exports.updateChartDatasourcesByComponent=updateChartDatasourcesByComponent,exports.updateOptionDatasources=updateOptionDatasources;
@@ -1,244 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const e = require("agilebuilder-ui"), t = require("./events/standard-event.cjs"), n = require("./interfaces/page-design-types.cjs"), i = require("./page-helper-util.cjs"), s = require("./api/page-expose-util.cjs"), o = require("./common-util.cjs"), r = require("./events/validator-util.cjs");
4
- function a(t2, n2) {
5
- let i2 = "";
6
- return t2 && n2 && (i2 = "?listViewTableName=" + t2 + "&listViewTablePublishVersion=" + n2), e.http.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/runtime-param" + i2);
7
- }
8
- function l() {
9
- return e.http.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/system-param");
10
- }
11
- function p(e2) {
12
- try {
13
- const t2 = function(e3) {
14
- if (!e3) return e3;
15
- try {
16
- const t3 = window.CryptoJS.enc.Latin1.parse("qwertyuasdfgh456"), n2 = window.CryptoJS.enc.Latin1.parse("1234567812345678");
17
- return window.CryptoJS.AES.decrypt(e3, t3, { iv: n2, mode: window.CryptoJS.mode.CBC, padding: window.CryptoJS.pad.ZeroPadding }).toString(CryptoJS.enc.Utf8);
18
- } catch (t3) {
19
- return e3;
20
- }
21
- }(e2);
22
- if (!t2) return {};
23
- return JSON.parse(t2);
24
- } catch (t2) {
25
- return e2;
26
- }
27
- }
28
- function u(e2) {
29
- try {
30
- return e2.props && e2.props.judgeHeavyList.length > 0 ? (e2.props.judgeHeavyList.forEach((e3) => {
31
- e3.duplicateFieldList && e3.duplicateFieldList.length > 0 && (e3.duplicateFieldList = e3.duplicateFieldList.map((e4) => "string" == typeof e4 ? { propDbName: e4 } : e4));
32
- }), e2.props.judgeHeavyList) : null;
33
- } catch (e3) {
34
- console.error("getJudgeHeavyList error:", e3);
35
- }
36
- }
37
- function d(t2, n2) {
38
- if (t2) {
39
- const i2 = e.getSessionCache(t2);
40
- if (i2) {
41
- const e2 = JSON.parse(i2);
42
- Object.assign(n2, e2);
43
- }
44
- }
45
- }
46
- function c(e2, t2) {
47
- let n2, i2 = t2;
48
- t2 || (n2 = e2.props.base ? e2.props.base : {}, i2 = n2.prop);
49
- let s2 = null;
50
- return t2 && !t2.startsWith("${") ? s2 = ["data", t2] : !e2 || i2 && i2.startsWith("${") ? i2.startsWith("${") ? (i2 = i2.substring(2, i2.length - 1), s2 = i2.split("."), e2 && s2.length < 2 && (s2 = [e2.uuid])) : e2 && (s2 = ["page", e2.uuid]) : s2 = ["page", e2.uuid], s2 || e2 ? s2 : ["temp"];
51
- }
52
- function f(e2, t2, n2, s2) {
53
- let o2;
54
- if (t2 && (o2 = i.formatVariableValue(e2, t2), null != o2 && null != o2 && n2)) {
55
- let e3 = false;
56
- "checkbox" == n2 ? e3 = true : "select" == n2 && (e3 = s2), e3 && (o2 = (o2 + "").split(","));
57
- }
58
- return o2;
59
- }
60
- function m(e2, t2) {
61
- const n2 = t2.pagePermissions;
62
- if (n2 && n2.length > 0) {
63
- for (let t3 = 0; t3 < n2.length; t3++) if (n2[t3].simpleCode === e2) return n2[t3];
64
- }
65
- return null;
66
- }
67
- function g(n2, i2, s2) {
68
- const o2 = n2.tableRuntimes, r2 = t.getAdditionalParamMap(i2);
69
- let a2;
70
- const l2 = n2.code;
71
- return r2 && Object.keys(r2) > 0 && (a2 = JSON.stringify(r2)), e.http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/super-grids", { tableRuntimes: o2, additionalParamMapJson: a2, pageCode: l2, publishVersion: s2, pageType: n2.pageType });
72
- }
73
- const b = ["button-detail", "print-label"];
74
- exports.controlObjectRenderState = function(e2, t2) {
75
- if (e2.initInfo) {
76
- ["dynamicControlFormEdit", "disableElement", "enableElement", "hideElement", "showElement"].forEach((n2) => {
77
- const i2 = e2.initInfo[n2];
78
- if (i2) if ("dynamicControlFormEdit" === n2) {
79
- let n3 = i2.filter((e3) => "_all_fields" === e3.name || e3.name === t2);
80
- if (n3 && n3.length > 0 && (n3 = n3.filter((e3) => "_all_fields" === e3.name), n3 && n3.length > 0)) {
81
- const e3 = o.deepCopy(n3[0]);
82
- e3.name = t2, n3 = [e3];
83
- }
84
- s.functions.dynamicControlFormEdit(e2, n3, false);
85
- } else "disableElement" === n2 ? i2.indexOf(t2) >= 0 && s.functions.disableElement(e2, [t2], false) : "enableElement" === n2 ? i2.indexOf(t2) >= 0 && s.functions.enableElement(e2, [t2], false) : "hideElement" === n2 ? i2.indexOf(t2) >= 0 && s.functions.hideElement(e2, [t2], false) : "showElement" === n2 && i2.indexOf(t2) >= 0 && s.functions.showElement(e2, [t2], false);
86
- });
87
- }
88
- }, exports.convertToPageContext = function(t2) {
89
- var _a, _b, _c;
90
- if (null == t2) return null;
91
- const i2 = { uuid: t2.uuid, name: t2.name, label: t2.label, code: t2.code, version: t2.version, dimensions: t2.dimensions, systemCode: t2.systemCode, systemVersion: t2.systemVersion, backendUrl: t2.backendUrl, rules: {}, tableUuids: t2.tableUuids, listCodesMap: t2.listCodesMap, listCodesInitSearchForm: t2.listCodesInitSearchForm, formNoRuleCode: t2.props ? t2.props.formNoRuleCode : null, judgeHeavyList: u(t2), pageType: t2.pageType, beanName: t2.props ? t2.props.beanName : null, importBeanName: t2.props ? t2.props.importBeanName : null, subTablePageInfo: t2.subTablePageInfo, workflowCode: t2.workflowCode, workflowVersion: t2.workflowVersion, refercePropMap: (_a = t2.runtime) == null ? void 0 : _a.refercePropMap, subTableWatchProps: t2.subTableWatchProps, dataTypeMaps: t2.dataTypeMaps, isWorkflowEntity: void 0 !== ((_b = t2.props) == null ? void 0 : _b.activeWorkflow) ? (_c = t2.props) == null ? void 0 : _c.activeWorkflow : t2.isWorkflowEntity, allChartUuids: t2.allChartUuids, branchFieldAuth: t2.branchFieldAuth, entity: { data: {}, task: {}, request: {}, page: {}, context: t2.contextParam, system: t2.systemParam }, propTitleMap: {} };
92
- if (t2.props && t2.props.notIdInitializationList) {
93
- let e2 = t2.props.notIdInitializationList;
94
- "string" == typeof e2 && (e2 = JSON.parse(e2)), e2.length > 0 && (i2.notIdInitializationList = e2);
95
- }
96
- if (t2.variables) {
97
- const e2 = i2.entity.page;
98
- for (const n2 of t2.variables) n2.name && (n2.isArrayElement ? e2[n2.name] = [] : n2.defaultValue ? e2[n2.name] = n2.defaultValue : e2[n2.name] = void 0);
99
- }
100
- return function(t3) {
101
- if (e.isMobileBrowser()) {
102
- t3.entity.page._isMobile = "true";
103
- const e2 = navigator ? navigator.userAgent : null;
104
- e2 ? e2.indexOf(" uni-app ") > 0 ? (t3.entity.page._isMobileApp = "true", t3.entity.page._isMobileBrowser = "false") : (t3.entity.page._isMobileApp = "false", t3.entity.page._isMobileBrowser = "true") : (t3.entity.page._isMobileApp = "false", t3.entity.page._isMobileBrowser = "false");
105
- } else t3.entity.page._isMobile = "false";
106
- }(i2), Object.assign(i2, t2), i2.dimensions = function() {
107
- const e2 = window.outerWidth;
108
- if (!e2) return n.PageDimensions.PC;
109
- return e2 > 768 ? n.PageDimensions.PC : e2 > 414 ? n.PageDimensions.IPAD : n.PageDimensions.PHONE;
110
- }(), i2.events = t2.runtime && t2.runtime.events ? t2.runtime.events : [], i2;
111
- }, exports.getDefaultValue = f, exports.getFormModelFields = function(e2, t2, n2) {
112
- var _a;
113
- const s2 = c(t2, n2), o2 = e2.entity;
114
- if (null == o2.data.ID && null == o2.data.id) {
115
- let n3, r2, a2 = false;
116
- t2 && (n3 = t2.props.base ? t2.props.base : {}, r2 = t2.name, a2 = n3.multiple);
117
- const l2 = i.getVariableValue(o2, s2);
118
- if (null == l2) {
119
- const t3 = n3 ? n3.defaultValue : null;
120
- if (t3) try {
121
- const l3 = f(e2, t3, r2, a2);
122
- if (null != l3 && "" !== l3) i.setVariableValue(o2, s2, l3);
123
- else if (((_a = n3.moreDefaultValue) == null ? void 0 : _a.length) > 0) {
124
- const t4 = n3.moreDefaultValue;
125
- for (let n4 = 0; n4 < t4.length; n4++) {
126
- const l4 = f(e2, t4[n4], r2, a2);
127
- if (null != l4 && "" !== l4) {
128
- i.setVariableValue(o2, s2, l4);
129
- break;
130
- }
131
- }
132
- }
133
- } catch (e3) {
134
- console.error("设置默认值出错:", s2, e3);
135
- }
136
- }
137
- }
138
- return s2;
139
- }, exports.getModelFields = c, exports.getPermissionCodes = function(e2, t2) {
140
- var _a, _b;
141
- if (false === ((_b = (_a = e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isPermission)) return "true";
142
- const n2 = [];
143
- if (e2.autoPermissions) for (const i2 of e2.autoPermissions) n2.push(t2.code + "." + i2.simpleCode);
144
- if (e2.functionCodes) {
145
- const i2 = e2.sourceTypes ? e2.sourceTypes : [], s2 = e2.functionCodes;
146
- for (let e3 = 0; e3 < s2.length; e3++) {
147
- const o2 = s2[e3], r2 = e3 < i2.length ? i2[e3] : "";
148
- let a2 = "";
149
- if ("service" == r2) a2 = o2;
150
- else if ("standard" === r2) a2 = t2.code + "." + o2;
151
- else {
152
- a2 = "custom" === m(o2, t2).type ? o2 : t2.code + "." + o2;
153
- }
154
- n2.includes(a2) || n2.push(a2);
155
- }
156
- }
157
- return n2.join(",");
158
- }, exports.packageAdditionalMapWithLocationSearch = function(e2) {
159
- let t2 = decodeURI(window.location.href);
160
- try {
161
- window.top && !Array.isArray(window.top) && (t2 = decodeURI(window.top.location.href));
162
- } catch (e3) {
163
- }
164
- if (t2 && t2.includes("?")) {
165
- t2 = t2.substring(t2.lastIndexOf("?") + 1);
166
- const n2 = t2.split("&");
167
- for (const t3 of n2) {
168
- const n3 = t3.split("=");
169
- let i2 = n3[0];
170
- if (i2) {
171
- const t4 = n3.length > 1 ? n3[1] : "";
172
- i2.indexOf("ai__") >= 0 && (i2 = i2.substring(i2.indexOf("ai__") + 4)), e2[i2] = t4;
173
- }
174
- }
175
- }
176
- e2._t_;
177
- }, exports.packageAdditionalMapWithPageRequest = function(e2, t2) {
178
- if (e2) {
179
- Object.assign(t2, e2);
180
- d(e2.paramStoreId, t2), delete e2.paramStoreId, e2.jumpMode && (t2.jumpMode = e2.jumpMode);
181
- }
182
- }, exports.packageAdditionalMapWithRoute = function(e2, t2) {
183
- if (e2 && (e2.params && Object.assign(t2, e2.params), e2.query, e2.query)) {
184
- Object.assign(t2, e2.query);
185
- d(e2.query.paramStoreId, t2);
186
- }
187
- }, exports.packageFormRules = function(e2, t2, n2) {
188
- var _a, _b;
189
- const s2 = t2.props && t2.props.base ? t2.props.base.prop : null, a2 = o.isWorkflowPage(e2);
190
- let l2 = false;
191
- if (a2 && b.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
192
- const n3 = e2.fieldPermissionMap.get("all_fields");
193
- false === (n3 == null ? void 0 : n3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", l2 = true);
194
- }
195
- if (s2) {
196
- const o2 = i.getFormPropName(s2);
197
- if (e2.rules || (e2.rules = {}), t2.props.rules && t2.props.rules.length > 0 && (e2.rules[o2] || (e2.rules[o2] = []), t2.props.rules.forEach((e3) => {
198
- r.packageCustomValidator(e3), !n2 && e3 && e3.required && (e3.required = false);
199
- }), e2.rules[o2] = t2.props.rules), a2 && !l2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
200
- const i2 = e2.fieldPermissionMap.get(o2);
201
- if (!n2 && e2.workflowRules && (e2.workflowRules[o2] || e2.workflowRules.rules && e2.workflowRules.rules[o2])) {
202
- let t3 = e2.workflowRules[o2];
203
- if (!t3 && e2.workflowRules.rules && (t3 = e2.workflowRules.rules[o2]), t3 && Array.isArray(t3) && t3.length > 0) for (let e3 = 0; e3 < t3.length; e3++) {
204
- const n3 = t3[e3];
205
- if (n3 && n3.required) {
206
- n3.required = false;
207
- break;
208
- }
209
- }
210
- else t3 && t3.required && (t3.required = false);
211
- }
212
- t2.runtime.props || (t2.runtime.props = {}), i2 ? (!n2 && i2.canEdit && (i2.canEdit = false), false === i2.canEdit ? t2.runtime.props.state = "disabled" : i2.canEdit && (t2.runtime.props.state = "", t2.runtime.props.required = true)) : t2.runtime.props.state = "";
213
- }
214
- ((_b = t2.props) == null ? void 0 : _b.customRuleEvents) && (e2.customRuleEvents || (e2.customRuleEvents = []), e2.customRuleEvents.push({ prop: o2, events: t2.props.customRuleEvents }));
215
- }
216
- }, exports.queryPageDesignByCode = function(t2) {
217
- return new Promise((n2, i2) => {
218
- (function(t3) {
219
- return e.http.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/runtime/" + t3);
220
- })(t2).then((e2) => {
221
- e2 ? l().then((t3) => {
222
- t3 && (e2.systemParam = p(t3)), a(e2.listViewTableName, e2.listViewTablePublishVersion).then((t4) => {
223
- t4 ? (e2.contextParam = p(t4.contextParam), e2.branchFieldAuth = t4.branchFieldAuth, e2.isWorkflowEntity = t4.isWorkflowEntity, e2.dataTypeMaps = t4.dataTypeMaps, n2(e2)) : n2(null);
224
- });
225
- }).catch(() => {
226
- n2(e2);
227
- }) : n2(null);
228
- });
229
- });
230
- }, exports.queryPageDesignWhenPreview = function(e2, t2) {
231
- return new Promise((n2, i2) => {
232
- e2 ? l().then((s2) => {
233
- s2 && (e2.systemParam = p(s2)), e2.tableRuntimes && Object.keys(e2.tableRuntimes).length > 0 ? g(e2, t2, e2.systemVersion).then((t3) => {
234
- e2.contextParam = p(t3.contextParam), e2.branchFieldAuth = t3.branchFieldAuth, e2.isWorkflowEntity = t3.isWorkflowEntity, e2.dataTypeMaps = t3.dataTypeMaps, e2.superGridItems = t3.superGrids, n2(e2);
235
- }).catch((e3) => {
236
- i2(e3);
237
- }) : a("", "").then((t3) => {
238
- t3 ? (e2.contextParam = p(t3.contextParam), e2.branchFieldAuth = t3.branchFieldAuth, e2.isWorkflowEntity = t3.isWorkflowEntity, e2.dataTypeMaps = t3.dataTypeMaps, n2(e2)) : n2(null);
239
- }).catch((e3) => {
240
- i2(e3);
241
- });
242
- }) : n2(null);
243
- });
244
- }, exports.queryPageSuperGrids = g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("agilebuilder-ui"),V=require("./events/standard-event.cjs"),h=require("./interfaces/page-design-types.cjs"),b=require("./page-helper-util.cjs"),m=require("./api/page-expose-util.cjs"),E=require("./common-util.cjs"),I=require("./events/validator-util.cjs");function M(e,i){let t="";return e&&i&&(t="?listViewTableName="+e+"&listViewTablePublishVersion="+i),f.http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/super-page-design/runtime-param"+t)}function C(){return f.http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/super-page-design/system-param")}function g(e){try{const i=function(t){if(!t)return t;try{const o=window.CryptoJS.enc.Latin1.parse("qwertyuasdfgh456"),s=window.CryptoJS.enc.Latin1.parse("1234567812345678");return window.CryptoJS.AES.decrypt(t,o,{iv:s,mode:window.CryptoJS.mode.CBC,padding:window.CryptoJS.pad.ZeroPadding}).toString(CryptoJS.enc.Utf8)}catch{return t}}(e);return i?JSON.parse(i):{}}catch{return e}}function T(e){try{return e.props&&e.props.judgeHeavyList.length>0?(e.props.judgeHeavyList.forEach(i=>{i.duplicateFieldList&&i.duplicateFieldList.length>0&&(i.duplicateFieldList=i.duplicateFieldList.map(t=>typeof t=="string"?{propDbName:t}:t))}),e.props.judgeHeavyList):null}catch(i){console.error("getJudgeHeavyList error:",i)}}function k(e,i){if(e){const t=f.getSessionCache(e);if(t){const o=JSON.parse(t);Object.assign(i,o)}}}function v(e,i){let t,o=i;i||(t=e.props.base?e.props.base:{},o=t.prop);let s=null;return i&&!i.startsWith("${")?s=["data",i]:!e||o&&o.startsWith("${")?o.startsWith("${")?(o=o.substring(2,o.length-1),s=o.split("."),e&&s.length<2&&(s=[e.uuid])):e&&(s=["page",e.uuid]):s=["page",e.uuid],s||e?s:["temp"]}function P(e,i,t,o){let s;if(i&&(s=b.formatVariableValue(e,i),s!=null&&s!=null&&t)){let n=!1;t=="checkbox"?n=!0:t=="select"&&(n=o),n&&(s=(s+"").split(","))}return s}function q(e,i){const t=i.pagePermissions;if(t&&t.length>0){for(let o=0;o<t.length;o++)if(t[o].simpleCode===e)return t[o]}return null}function A(e,i,t){const o=e.tableRuntimes,s=V.getAdditionalParamMap(i);let n;const r=e.code;return s&&Object.keys(s)>0&&(n=JSON.stringify(s)),f.http.post(window.$vueApp.config.globalProperties.baseAPI+"/component/super-page-design/super-grids",{tableRuntimes:o,additionalParamMapJson:n,pageCode:r,publishVersion:t,pageType:e.pageType})}const R=["button-detail","print-label"];exports.controlObjectRenderState=function(e,i){e.initInfo&&["dynamicControlFormEdit","disableElement","enableElement","hideElement","showElement"].forEach(t=>{const o=e.initInfo[t];if(o)if(t==="dynamicControlFormEdit"){let s=o.filter(n=>n.name==="_all_fields"||n.name===i);if(s&&s.length>0&&(s=s.filter(n=>n.name==="_all_fields"),s&&s.length>0)){const n=E.deepCopy(s[0]);n.name=i,s=[n]}m.functions.dynamicControlFormEdit(e,s,!1)}else t==="disableElement"?o.indexOf(i)>=0&&m.functions.disableElement(e,[i],!1):t==="enableElement"?o.indexOf(i)>=0&&m.functions.enableElement(e,[i],!1):t==="hideElement"?o.indexOf(i)>=0&&m.functions.hideElement(e,[i],!1):t==="showElement"&&o.indexOf(i)>=0&&m.functions.showElement(e,[i],!1)})},exports.convertToPageContext=function(e){var t,o,s;if(e==null)return null;const i={uuid:e.uuid,name:e.name,label:e.label,code:e.code,version:e.version,dimensions:e.dimensions,systemCode:e.systemCode,systemVersion:e.systemVersion,backendUrl:e.backendUrl,rules:{},tableUuids:e.tableUuids,listCodesMap:e.listCodesMap,listCodesInitSearchForm:e.listCodesInitSearchForm,formNoRuleCode:e.props?e.props.formNoRuleCode:null,judgeHeavyList:T(e),pageType:e.pageType,beanName:e.props?e.props.beanName:null,importBeanName:e.props?e.props.importBeanName:null,subTablePageInfo:e.subTablePageInfo,workflowCode:e.workflowCode,workflowVersion:e.workflowVersion,refercePropMap:(t=e.runtime)==null?void 0:t.refercePropMap,subTableWatchProps:e.subTableWatchProps,dataTypeMaps:e.dataTypeMaps,isWorkflowEntity:((o=e.props)==null?void 0:o.activeWorkflow)!==void 0?(s=e.props)==null?void 0:s.activeWorkflow:e.isWorkflowEntity,allChartUuids:e.allChartUuids,branchFieldAuth:e.branchFieldAuth,entity:{data:{},task:{},request:{},page:{},context:e.contextParam,system:e.systemParam},propTitleMap:{}};if(e.props&&e.props.notIdInitializationList){let n=e.props.notIdInitializationList;typeof n=="string"&&(n=JSON.parse(n)),n.length>0&&(i.notIdInitializationList=n)}if(e.variables){const n=i.entity.page;for(const r of e.variables)r.name&&(r.isArrayElement?n[r.name]=[]:r.defaultValue?n[r.name]=r.defaultValue:n[r.name]=void 0)}return function(n){if(f.isMobileBrowser()){n.entity.page._isMobile="true";const r=navigator?navigator.userAgent:null;r?r.indexOf(" uni-app ")>0?(n.entity.page._isMobileApp="true",n.entity.page._isMobileBrowser="false"):(n.entity.page._isMobileApp="false",n.entity.page._isMobileBrowser="true"):(n.entity.page._isMobileApp="false",n.entity.page._isMobileBrowser="false")}else n.entity.page._isMobile="false"}(i),Object.assign(i,e),i.dimensions=function(){const n=window.outerWidth;return n?n>768?h.PageDimensions.PC:n>414?h.PageDimensions.IPAD:h.PageDimensions.PHONE:h.PageDimensions.PC}(),i.events=e.runtime&&e.runtime.events?e.runtime.events:[],i},exports.getDefaultValue=P,exports.getFormModelFields=function(e,i,t){var n;const o=v(i,t),s=e.entity;if(s.data.ID==null&&s.data.id==null){let r,p,a=!1;if(i&&(r=i.props.base?i.props.base:{},p=i.name,a=r.multiple),b.getVariableValue(s,o)==null){const l=r?r.defaultValue:null;if(l)try{const d=P(e,l,p,a);if(d!=null&&d!=="")b.setVariableValue(s,o,d);else if(((n=r.moreDefaultValue)==null?void 0:n.length)>0){const c=r.moreDefaultValue;for(let y=0;y<c.length;y++){const w=P(e,c[y],p,a);if(w!=null&&w!==""){b.setVariableValue(s,o,w);break}}}}catch(d){console.error("设置默认值出错:",o,d)}}}return o},exports.getModelFields=v,exports.getPermissionCodes=function(e,i){var o,s;if(((s=(o=e.props)==null?void 0:o.base)==null?void 0:s.isPermission)===!1)return"true";const t=[];if(e.autoPermissions)for(const n of e.autoPermissions)t.push(i.code+"."+n.simpleCode);if(e.functionCodes){const n=e.sourceTypes?e.sourceTypes:[],r=e.functionCodes;for(let p=0;p<r.length;p++){const a=r[p],u=p<n.length?n[p]:"";let l="";u=="service"?l=a:u==="standard"?l=i.code+"."+a:l=q(a,i).type==="custom"?a:i.code+"."+a,t.includes(l)||t.push(l)}}return t.join(",")},exports.packageAdditionalMapWithLocationSearch=function(e){let i=decodeURI(window.location.href);try{window.top&&!Array.isArray(window.top)&&(i=decodeURI(window.top.location.href))}catch{}if(i&&i.includes("?")){i=i.substring(i.lastIndexOf("?")+1);const t=i.split("&");for(const o of t){const s=o.split("=");let n=s[0];if(n){const r=s.length>1?s[1]:"";n.indexOf("ai__")>=0&&(n=n.substring(n.indexOf("ai__")+4)),e[n]=r}}}},exports.packageAdditionalMapWithPageRequest=function(e,i){e&&(Object.assign(i,e),k(e.paramStoreId,i),delete e.paramStoreId,e.jumpMode&&(i.jumpMode=e.jumpMode))},exports.packageAdditionalMapWithRoute=function(e,i){e&&(e.params&&Object.assign(i,e.params),e.query,e.query)&&(Object.assign(i,e.query),k(e.query.paramStoreId,i))},exports.packageFormRules=function(e,i,t){var r,p;const o=i.props&&i.props.base?i.props.base.prop:null,s=E.isWorkflowPage(e);let n=!1;if(s&&R.indexOf(i.name)<0&&e.fieldPermissionMap){const a=e.fieldPermissionMap.get("all_fields");(a==null?void 0:a.canEdit)===!1&&((r=i.runtime)!=null&&r.props)&&(i.runtime.props.state="disabled",n=!0)}if(o){const a=b.getFormPropName(o);if(e.rules||(e.rules={}),i.props.rules&&i.props.rules.length>0&&(e.rules[a]||(e.rules[a]=[]),i.props.rules.forEach(u=>{I.packageCustomValidator(u),!t&&u&&u.required&&(u.required=!1)}),e.rules[a]=i.props.rules),s&&!n&&i.name!=="button-detail"&&e.fieldPermissionMap){const u=e.fieldPermissionMap.get(a);if(!t&&e.workflowRules&&(e.workflowRules[a]||e.workflowRules.rules&&e.workflowRules.rules[a])){let l=e.workflowRules[a];if(!l&&e.workflowRules.rules&&(l=e.workflowRules.rules[a]),l&&Array.isArray(l)&&l.length>0)for(let d=0;d<l.length;d++){const c=l[d];if(c&&c.required){c.required=!1;break}}else l&&l.required&&(l.required=!1)}i.runtime.props||(i.runtime.props={}),u?(!t&&u.canEdit&&(u.canEdit=!1),u.canEdit===!1?i.runtime.props.state="disabled":u.canEdit&&(i.runtime.props.state="",i.runtime.props.required=!0)):i.runtime.props.state=""}(p=i.props)!=null&&p.customRuleEvents&&(e.customRuleEvents||(e.customRuleEvents=[]),e.customRuleEvents.push({prop:a,events:i.props.customRuleEvents}))}},exports.queryPageDesignByCode=function(e){return new Promise((i,t)=>{(function(o){return f.http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/super-page-design/runtime/"+o)})(e).then(o=>{o?C().then(s=>{s&&(o.systemParam=g(s)),M(o.listViewTableName,o.listViewTablePublishVersion).then(n=>{n?(o.contextParam=g(n.contextParam),o.branchFieldAuth=n.branchFieldAuth,o.isWorkflowEntity=n.isWorkflowEntity,o.dataTypeMaps=n.dataTypeMaps,i(o)):i(null)})}).catch(()=>{i(o)}):i(null)})})},exports.queryPageDesignWhenPreview=function(e,i){return new Promise((t,o)=>{e?C().then(s=>{s&&(e.systemParam=g(s)),e.tableRuntimes&&Object.keys(e.tableRuntimes).length>0?A(e,i,e.systemVersion).then(n=>{e.contextParam=g(n.contextParam),e.branchFieldAuth=n.branchFieldAuth,e.isWorkflowEntity=n.isWorkflowEntity,e.dataTypeMaps=n.dataTypeMaps,e.superGridItems=n.superGrids,t(e)}).catch(n=>{o(n)}):M("","").then(n=>{n?(e.contextParam=g(n.contextParam),e.branchFieldAuth=n.branchFieldAuth,e.isWorkflowEntity=n.isWorkflowEntity,e.dataTypeMaps=n.dataTypeMaps,t(e)):t(null)}).catch(n=>{o(n)})}):t(null)})},exports.queryPageSuperGrids=A;