super-page-runtime 2.3.48-cdnTmp1 → 2.3.48-tmp1

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