super-page-runtime 2.3.46 → 2.3.47-cdnTmp2

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 (645) hide show
  1. package/dist/es/_virtual/_plugin-vue_export-helper.mjs +8 -0
  2. package/dist/es/components/runtime/utils/ai-chat-util.mjs +16 -0
  3. package/dist/es/components/runtime/utils/anchor-util.mjs +83 -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.mjs +12 -0
  6. package/dist/es/components/runtime/utils/api/page-expose-util.mjs +196 -0
  7. package/dist/es/components/runtime/utils/assemblys-config.mjs +19 -0
  8. package/dist/es/components/runtime/utils/barcode-util.mjs +12 -0
  9. package/dist/es/components/runtime/utils/charts/chart-columnline-util.mjs +169 -0
  10. package/dist/es/components/runtime/utils/charts/chart-gauge-util.mjs +38 -0
  11. package/dist/es/components/runtime/utils/charts/chart-pie-util.mjs +83 -0
  12. package/dist/es/components/runtime/utils/charts/chart-radar-util.mjs +56 -0
  13. package/dist/es/components/runtime/utils/charts/chart-scatter-util.mjs +47 -0
  14. package/dist/es/components/runtime/utils/charts/chart-util.mjs +285 -0
  15. package/dist/es/components/runtime/utils/common-util.mjs +116 -0
  16. package/dist/es/components/runtime/utils/eventBus.mjs +8 -0
  17. package/dist/es/components/runtime/utils/events/data-backfill-util.mjs +38 -0
  18. package/dist/es/components/runtime/utils/events/event-util.mjs +429 -0
  19. package/dist/es/components/runtime/utils/events/print-label.mjs +100 -0
  20. package/dist/es/components/runtime/utils/events/standard-event.mjs +1170 -0
  21. package/dist/es/components/runtime/utils/events/validator-util.mjs +462 -0
  22. package/dist/es/components/runtime/utils/form/date-shortcuts.mjs +36 -0
  23. package/dist/es/components/runtime/utils/form/scan-util.mjs +88 -0
  24. package/dist/es/components/runtime/utils/global-refs.mjs +57 -0
  25. package/dist/es/components/runtime/utils/i18n-util.mjs +14 -0
  26. package/dist/es/components/runtime/utils/interfaces/page-design-types.mjs +4 -0
  27. package/dist/es/components/runtime/utils/page-helper-util.mjs +381 -0
  28. package/dist/es/components/runtime/utils/page-init-util.mjs +281 -0
  29. package/dist/es/components/runtime/utils/{page-permission-util.js → page-permission-util.mjs} +20 -21
  30. package/dist/es/components/runtime/utils/page-store.mjs +53 -0
  31. package/dist/es/components/runtime/utils/store-util.mjs +13 -0
  32. package/dist/es/components/runtime/utils/table-utils.mjs +84 -0
  33. package/dist/es/components/runtime/utils/tree-utils.mjs +68 -0
  34. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.mjs +4 -0
  35. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime2.vue.mjs +29 -0
  36. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.mjs +7 -0
  37. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime2.vue.mjs +21 -0
  38. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.mjs +4 -0
  39. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime2.vue.mjs +41 -0
  40. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.mjs +4 -0
  41. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime2.vue.mjs +6 -0
  42. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.mjs +4 -0
  43. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime2.vue.mjs +21 -0
  44. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.mjs +7 -0
  45. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime2.vue.mjs +53 -0
  46. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.mjs +14 -0
  47. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb2.vue.mjs +4 -0
  48. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.mjs +13 -0
  49. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group2.vue.mjs +4 -0
  50. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.mjs +59 -0
  51. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header2.vue.mjs +4 -0
  52. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.mjs +7 -0
  53. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search2.vue.mjs +59 -0
  54. package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.mjs +93 -0
  55. package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render2.vue.mjs +4 -0
  56. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.mjs +7 -0
  57. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime2.vue.mjs +35 -0
  58. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.mjs +7 -0
  59. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime2.vue.mjs +46 -0
  60. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.mjs +7 -0
  61. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime2.vue.mjs +35 -0
  62. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.mjs +7 -0
  63. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime2.vue.mjs +35 -0
  64. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.mjs +425 -0
  65. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.mjs +6 -0
  66. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item2.vue.mjs +4 -0
  67. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.mjs +10 -0
  68. package/dist/es/components/runtime/views/assemblys/chart/table/group-column2.vue.mjs +4 -0
  69. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.mjs +42 -0
  70. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column2.vue.mjs +4 -0
  71. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.mjs +17 -0
  72. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination2.vue.mjs +4 -0
  73. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.mjs +4 -0
  74. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime2.vue.mjs +261 -0
  75. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.mjs +20 -0
  76. package/dist/es/components/runtime/views/assemblys/common/event-call-component2.vue.mjs +4 -0
  77. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.mjs +35 -0
  78. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog2.vue.mjs +4 -0
  79. package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.mjs +34 -0
  80. package/dist/es/components/runtime/views/assemblys/common/file-task-notice2.vue.mjs +4 -0
  81. package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.mjs +27 -0
  82. package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message2.vue.mjs +4 -0
  83. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.mjs +17 -0
  84. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog2.vue.mjs +4 -0
  85. package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.mjs +22 -0
  86. package/dist/es/components/runtime/views/assemblys/common/remove-signer-table2.vue.mjs +4 -0
  87. package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.mjs +18 -0
  88. package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog2.vue.mjs +4 -0
  89. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.mjs +35 -0
  90. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog2.vue.mjs +4 -0
  91. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.mjs +19 -0
  92. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog2.vue.mjs +4 -0
  93. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.mjs +7 -0
  94. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime2.vue.mjs +35 -0
  95. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.mjs +4 -0
  96. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime2.vue.mjs +21 -0
  97. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.mjs +7 -0
  98. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime2.vue.mjs +27 -0
  99. package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.mjs +7 -0
  100. package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox2.vue.mjs +29 -0
  101. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.mjs +7 -0
  102. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix2.vue.mjs +81 -0
  103. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.mjs +4 -0
  104. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime2.vue.mjs +25 -0
  105. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.mjs +4 -0
  106. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime2.vue.mjs +25 -0
  107. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.mjs +4 -0
  108. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime2.vue.mjs +43 -0
  109. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.mjs +7 -0
  110. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime2.vue.mjs +96 -0
  111. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.mjs +7 -0
  112. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime2.vue.mjs +47 -0
  113. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.mjs +4 -0
  114. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime2.vue.mjs +69 -0
  115. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.mjs +362 -0
  116. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime2.vue.mjs +4 -0
  117. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.mjs +329 -0
  118. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime2.vue.mjs +4 -0
  119. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.mjs +4 -0
  120. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime2.vue.mjs +90 -0
  121. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.mjs +7 -0
  122. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime2.vue.mjs +133 -0
  123. package/dist/es/components/runtime/views/assemblys/error-render.vue.mjs +5 -0
  124. package/dist/es/components/runtime/views/assemblys/error-render2.vue.mjs +4 -0
  125. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.mjs +4 -0
  126. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime2.vue.mjs +65 -0
  127. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.mjs +36 -0
  128. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element2.vue.mjs +4 -0
  129. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.mjs +4 -0
  130. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime2.vue.mjs +69 -0
  131. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.mjs +4 -0
  132. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime2.vue.mjs +102 -0
  133. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.mjs +4 -0
  134. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime2.vue.mjs +55 -0
  135. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.mjs +4 -0
  136. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime2.vue.mjs +24 -0
  137. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.mjs +4 -0
  138. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime2.vue.mjs +111 -0
  139. package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue.mjs +4 -0
  140. package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime2.vue.mjs +88 -0
  141. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.mjs +4 -0
  142. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime2.vue.mjs +28 -0
  143. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.mjs +4 -0
  144. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime2.vue.mjs +79 -0
  145. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.mjs +7 -0
  146. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime2.vue.mjs +37 -0
  147. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.mjs +4 -0
  148. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime2.vue.mjs +42 -0
  149. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.mjs +7 -0
  150. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime2.vue.mjs +16 -0
  151. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.mjs +4 -0
  152. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime2.vue.mjs +84 -0
  153. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.mjs +8 -0
  154. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime2.vue.mjs +215 -0
  155. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.mjs +7 -0
  156. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime2.vue.mjs +150 -0
  157. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.mjs +4 -0
  158. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime2.vue.mjs +16 -0
  159. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.mjs +4 -0
  160. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime2.vue.mjs +36 -0
  161. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.mjs +4 -0
  162. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime2.vue.mjs +43 -0
  163. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.mjs +7 -0
  164. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime2.vue.mjs +28 -0
  165. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.mjs +83 -0
  166. package/dist/es/components/runtime/views/assemblys/home-chart-render2.vue.mjs +4 -0
  167. package/dist/es/components/runtime/views/assemblys/object-render.vue.mjs +163 -0
  168. package/dist/es/components/runtime/views/assemblys/object-render2.vue.mjs +4 -0
  169. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.mjs +9 -0
  170. package/dist/es/components/runtime/views/assemblys/page-bottom2.vue.mjs +4 -0
  171. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.mjs +7 -0
  172. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box2.vue.mjs +56 -0
  173. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.mjs +7 -0
  174. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog2.vue.mjs +29 -0
  175. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.mjs +7 -0
  176. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime2.vue.mjs +45 -0
  177. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.mjs +4 -0
  178. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime2.vue.mjs +20 -0
  179. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.mjs +4 -0
  180. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime2.vue.mjs +23 -0
  181. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.mjs +7 -0
  182. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime2.vue.mjs +30 -0
  183. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.mjs +4 -0
  184. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime2.vue.mjs +27 -0
  185. package/dist/es/components/runtime/views/home-chart.vue.mjs +46 -0
  186. package/dist/es/components/runtime/views/home-chart2.vue.mjs +4 -0
  187. package/dist/es/components/runtime/views/super-page-dialog.vue.mjs +30 -0
  188. package/dist/es/components/runtime/views/super-page-dialog3.vue.mjs +5 -0
  189. package/dist/es/components/runtime/views/super-page.vue.d.ts +2 -2
  190. package/dist/es/components/runtime/views/super-page.vue.mjs +7 -0
  191. package/dist/es/components/runtime/views/super-page2.vue.mjs +307 -0
  192. package/dist/es/i18n/langs/{cn.js → cn.mjs} +1 -1
  193. package/dist/es/i18n/langs/{en.js → en.mjs} +1 -1
  194. package/dist/es/index.mjs +32 -0
  195. package/dist/es/style.css +1 -1052
  196. package/dist/lib/_virtual/_plugin-vue_export-helper.cjs +1 -0
  197. package/dist/lib/assets/chart-themes/bar-theme.cjs +1 -0
  198. package/dist/lib/assets/chart-themes/bar-theme.d.ts +6 -0
  199. package/dist/lib/assets/chart-themes/gauge-theme.cjs +1 -0
  200. package/dist/lib/assets/chart-themes/gauge-theme.d.ts +6 -0
  201. package/dist/lib/assets/chart-themes/pie-theme.cjs +1 -0
  202. package/dist/lib/assets/chart-themes/pie-theme.d.ts +6 -0
  203. package/dist/lib/assets/chart-themes/radar-theme.cjs +1 -0
  204. package/dist/lib/assets/chart-themes/radar-theme.d.ts +6 -0
  205. package/dist/lib/assets/chart-themes/scatter-theme.cjs +1 -0
  206. package/dist/lib/assets/chart-themes/scatter-theme.d.ts +6 -0
  207. package/dist/lib/assets/file.png.cjs +1 -0
  208. package/dist/lib/assets/folder.png.cjs +1 -0
  209. package/dist/lib/components/runtime/index.d.ts +6 -0
  210. package/dist/lib/components/runtime/utils/ai-chat-util.cjs +1 -0
  211. package/dist/lib/components/runtime/utils/anchor-util.cjs +1 -0
  212. package/dist/lib/components/runtime/utils/anchor-util.d.ts +13 -0
  213. package/dist/lib/components/runtime/utils/api/api-util.cjs +1 -0
  214. package/dist/lib/components/runtime/utils/api/api-util.d.ts +1 -0
  215. package/dist/lib/components/runtime/utils/api/page-expose-util.cjs +1 -0
  216. package/dist/lib/components/runtime/utils/api/page-expose-util.d.ts +1 -0
  217. package/dist/lib/components/runtime/utils/assemblys-config.cjs +1 -0
  218. package/dist/lib/components/runtime/utils/barcode-util.cjs +1 -0
  219. package/dist/lib/components/runtime/utils/barcode-util.d.ts +8 -0
  220. package/dist/lib/components/runtime/utils/charts/chart-columnline-util.cjs +2 -0
  221. package/dist/lib/components/runtime/utils/charts/chart-gauge-util.cjs +1 -0
  222. package/dist/lib/components/runtime/utils/charts/chart-pie-util.cjs +2 -0
  223. package/dist/lib/components/runtime/utils/charts/chart-radar-util.cjs +1 -0
  224. package/dist/lib/components/runtime/utils/charts/chart-scatter-util.cjs +1 -0
  225. package/dist/lib/components/runtime/utils/charts/chart-util.cjs +1 -0
  226. package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +115 -0
  227. package/dist/lib/components/runtime/utils/common-util.cjs +1 -0
  228. package/dist/lib/components/runtime/utils/common-util.d.ts +33 -0
  229. package/dist/lib/components/runtime/utils/eventBus.cjs +1 -0
  230. package/dist/lib/components/runtime/utils/eventBus.d.ts +8 -0
  231. package/dist/lib/components/runtime/utils/events/data-backfill-util.cjs +1 -0
  232. package/dist/lib/components/runtime/utils/events/data-backfill-util.d.ts +27 -0
  233. package/dist/lib/components/runtime/utils/events/event-util.cjs +1 -0
  234. package/dist/lib/components/runtime/utils/events/event-util.d.ts +93 -0
  235. package/dist/lib/components/runtime/utils/events/print-label.cjs +1 -0
  236. package/dist/lib/components/runtime/utils/events/print-label.d.ts +5 -0
  237. package/dist/lib/components/runtime/utils/events/standard-event.cjs +1 -0
  238. package/dist/lib/components/runtime/utils/events/standard-event.d.ts +107 -0
  239. package/dist/lib/components/runtime/utils/events/validator-util.cjs +1 -0
  240. package/dist/lib/components/runtime/utils/events/validator-util.d.ts +31 -0
  241. package/dist/lib/components/runtime/utils/form/date-shortcuts.cjs +1 -0
  242. package/dist/lib/components/runtime/utils/form/date-shortcuts.d.ts +7 -0
  243. package/dist/lib/components/runtime/utils/form/scan-util.cjs +1 -0
  244. package/dist/lib/components/runtime/utils/global-refs.cjs +1 -0
  245. package/dist/lib/components/runtime/utils/global-refs.d.ts +65 -0
  246. package/dist/lib/components/runtime/utils/i18n-util.cjs +1 -0
  247. package/dist/lib/components/runtime/utils/i18n-util.d.ts +1 -0
  248. package/dist/lib/components/runtime/utils/interfaces/page-design-types.cjs +1 -0
  249. package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +259 -0
  250. package/dist/lib/components/runtime/utils/page-helper-util.cjs +1 -0
  251. package/dist/lib/components/runtime/utils/page-helper-util.d.ts +181 -0
  252. package/dist/lib/components/runtime/utils/page-init-util.cjs +1 -0
  253. package/dist/lib/components/runtime/utils/page-init-util.d.ts +55 -0
  254. package/dist/lib/components/runtime/utils/page-permission-util.cjs +1 -0
  255. package/dist/lib/components/runtime/utils/page-permission-util.d.ts +26 -0
  256. package/dist/lib/components/runtime/utils/page-store.cjs +1 -0
  257. package/dist/lib/components/runtime/utils/page-store.d.ts +58 -0
  258. package/dist/lib/components/runtime/utils/store-util.cjs +1 -0
  259. package/dist/lib/components/runtime/utils/store-util.d.ts +15 -0
  260. package/dist/lib/components/runtime/utils/store.cjs +1 -0
  261. package/dist/lib/components/runtime/utils/store.d.ts +2 -0
  262. package/dist/lib/components/runtime/utils/table-utils.cjs +1 -0
  263. package/dist/lib/components/runtime/utils/table-utils.d.ts +36 -0
  264. package/dist/lib/components/runtime/utils/tree-utils.cjs +1 -0
  265. package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.cjs +1 -0
  266. package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime2.vue.cjs +1 -0
  267. package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.cjs +1 -0
  268. package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime2.vue.cjs +1 -0
  269. package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.cjs +1 -0
  270. package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime2.vue.cjs +1 -0
  271. package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.cjs +1 -0
  272. package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime2.vue.cjs +1 -0
  273. package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.cjs +1 -0
  274. package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime2.vue.cjs +1 -0
  275. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.cjs +1 -0
  276. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime2.vue.cjs +1 -0
  277. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.cjs +1 -0
  278. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb2.vue.cjs +1 -0
  279. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.cjs +1 -0
  280. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group2.vue.cjs +1 -0
  281. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.cjs +1 -0
  282. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header2.vue.cjs +1 -0
  283. package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.cjs +1 -0
  284. package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search2.vue.cjs +1 -0
  285. package/dist/lib/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.cjs +1 -0
  286. package/dist/lib/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.d.ts +36 -0
  287. package/dist/lib/components/runtime/views/assemblys/chart/common/home-chart-condition-render2.vue.cjs +1 -0
  288. package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.cjs +1 -0
  289. package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime2.vue.cjs +1 -0
  290. package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.cjs +1 -0
  291. package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime2.vue.cjs +1 -0
  292. package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.cjs +1 -0
  293. package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime2.vue.cjs +1 -0
  294. package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.cjs +1 -0
  295. package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime2.vue.cjs +1 -0
  296. package/dist/lib/components/runtime/views/assemblys/chart/table/chart-table-util.cjs +1 -0
  297. package/dist/lib/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +121 -0
  298. package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue.cjs +1 -0
  299. package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item2.vue.cjs +1 -0
  300. package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue.cjs +1 -0
  301. package/dist/lib/components/runtime/views/assemblys/chart/table/group-column2.vue.cjs +1 -0
  302. package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue.cjs +1 -0
  303. package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column2.vue.cjs +1 -0
  304. package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue.cjs +1 -0
  305. package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination2.vue.cjs +1 -0
  306. package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue.cjs +1 -0
  307. package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime2.vue.cjs +1 -0
  308. package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue.cjs +1 -0
  309. package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue.d.ts +5 -0
  310. package/dist/lib/components/runtime/views/assemblys/common/event-call-component2.vue.cjs +1 -0
  311. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.cjs +1 -0
  312. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +28 -0
  313. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog2.vue.cjs +1 -0
  314. package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue.cjs +1 -0
  315. package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue.d.ts +27 -0
  316. package/dist/lib/components/runtime/views/assemblys/common/file-task-notice2.vue.cjs +1 -0
  317. package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.cjs +1 -0
  318. package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.d.ts +59 -0
  319. package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message2.vue.cjs +1 -0
  320. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.cjs +1 -0
  321. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +35 -0
  322. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog2.vue.cjs +1 -0
  323. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue.cjs +1 -0
  324. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue.d.ts +26 -0
  325. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table2.vue.cjs +1 -0
  326. package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.cjs +1 -0
  327. package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.d.ts +35 -0
  328. package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog2.vue.cjs +1 -0
  329. package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.cjs +1 -0
  330. package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.d.ts +31 -0
  331. package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog2.vue.cjs +1 -0
  332. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.cjs +1 -0
  333. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +26 -0
  334. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog2.vue.cjs +1 -0
  335. package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.cjs +1 -0
  336. package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime2.vue.cjs +1 -0
  337. package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.cjs +1 -0
  338. package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime2.vue.cjs +1 -0
  339. package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.cjs +1 -0
  340. package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime2.vue.cjs +1 -0
  341. package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue.cjs +1 -0
  342. package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox2.vue.cjs +1 -0
  343. package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue.cjs +1 -0
  344. package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue.d.ts +94 -0
  345. package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix2.vue.cjs +1 -0
  346. package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.cjs +1 -0
  347. package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime2.vue.cjs +1 -0
  348. package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.cjs +1 -0
  349. package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime2.vue.cjs +1 -0
  350. package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.cjs +1 -0
  351. package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime2.vue.cjs +1 -0
  352. package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.cjs +1 -0
  353. package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime2.vue.cjs +1 -0
  354. package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.cjs +1 -0
  355. package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime2.vue.cjs +1 -0
  356. package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.cjs +1 -0
  357. package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime2.vue.cjs +1 -0
  358. package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.cjs +1 -0
  359. package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime2.vue.cjs +1 -0
  360. package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.cjs +1 -0
  361. package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime2.vue.cjs +1 -0
  362. package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.cjs +1 -0
  363. package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime2.vue.cjs +1 -0
  364. package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue.cjs +1 -0
  365. package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime2.vue.cjs +1 -0
  366. package/dist/lib/components/runtime/views/assemblys/error-render.vue.cjs +1 -0
  367. package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +22 -0
  368. package/dist/lib/components/runtime/views/assemblys/error-render2.vue.cjs +1 -0
  369. package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.cjs +1 -0
  370. package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime2.vue.cjs +1 -0
  371. package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue.cjs +1 -0
  372. package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element2.vue.cjs +1 -0
  373. package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime.vue.cjs +1 -0
  374. package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime2.vue.cjs +1 -0
  375. package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.cjs +1 -0
  376. package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime2.vue.cjs +1 -0
  377. package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.cjs +1 -0
  378. package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime2.vue.cjs +1 -0
  379. package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.cjs +1 -0
  380. package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime2.vue.cjs +1 -0
  381. package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.cjs +1 -0
  382. package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime2.vue.cjs +1 -0
  383. package/dist/lib/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue.cjs +1 -0
  384. package/dist/lib/components/runtime/views/assemblys/form/image-upload/imageupload-runtime2.vue.cjs +1 -0
  385. package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.cjs +1 -0
  386. package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime2.vue.cjs +1 -0
  387. package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.cjs +1 -0
  388. package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime2.vue.cjs +1 -0
  389. package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.cjs +1 -0
  390. package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime2.vue.cjs +1 -0
  391. package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.cjs +1 -0
  392. package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime2.vue.cjs +1 -0
  393. package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.cjs +1 -0
  394. package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime2.vue.cjs +1 -0
  395. package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.cjs +1 -0
  396. package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime2.vue.cjs +1 -0
  397. package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.cjs +1 -0
  398. package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime2.vue.cjs +1 -0
  399. package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.cjs +1 -0
  400. package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime2.vue.cjs +1 -0
  401. package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.cjs +1 -0
  402. package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime2.vue.cjs +1 -0
  403. package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.cjs +1 -0
  404. package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime2.vue.cjs +1 -0
  405. package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.cjs +1 -0
  406. package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime2.vue.cjs +1 -0
  407. package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.cjs +1 -0
  408. package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime2.vue.cjs +1 -0
  409. package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue.cjs +1 -0
  410. package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue.d.ts +17 -0
  411. package/dist/lib/components/runtime/views/assemblys/home-chart-render2.vue.cjs +1 -0
  412. package/dist/lib/components/runtime/views/assemblys/object-render.vue.cjs +1 -0
  413. package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +17 -0
  414. package/dist/lib/components/runtime/views/assemblys/object-render2.vue.cjs +1 -0
  415. package/dist/lib/components/runtime/views/assemblys/page-bottom.vue.cjs +1 -0
  416. package/dist/lib/components/runtime/views/assemblys/page-bottom.vue.d.ts +14 -0
  417. package/dist/lib/components/runtime/views/assemblys/page-bottom2.vue.cjs +1 -0
  418. package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.cjs +1 -0
  419. package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.d.ts +19 -0
  420. package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box2.vue.cjs +1 -0
  421. package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.cjs +1 -0
  422. package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog2.vue.cjs +1 -0
  423. package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.cjs +1 -0
  424. package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime2.vue.cjs +1 -0
  425. package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.cjs +1 -0
  426. package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime2.vue.cjs +1 -0
  427. package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.cjs +1 -0
  428. package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime2.vue.cjs +1 -0
  429. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.cjs +1 -0
  430. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime2.vue.cjs +1 -0
  431. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.cjs +1 -0
  432. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime2.vue.cjs +1 -0
  433. package/dist/lib/components/runtime/views/home-chart.vue.cjs +1 -0
  434. package/dist/lib/components/runtime/views/home-chart.vue.d.ts +23 -0
  435. package/dist/lib/components/runtime/views/home-chart2.vue.cjs +1 -0
  436. package/dist/lib/components/runtime/views/super-page-dialog.vue.cjs +1 -0
  437. package/dist/lib/components/runtime/views/super-page-dialog.vue.d.ts +40 -0
  438. package/dist/lib/components/runtime/views/super-page-dialog3.vue.cjs +1 -0
  439. package/dist/lib/components/runtime/views/super-page.vue.cjs +1 -0
  440. package/dist/lib/components/runtime/views/super-page.vue.d.ts +137 -0
  441. package/dist/lib/components/runtime/views/super-page2.vue.cjs +1 -0
  442. package/dist/lib/favicon.ico +0 -0
  443. package/dist/lib/i18n/langs/cn.cjs +1 -0
  444. package/dist/lib/i18n/langs/en.cjs +1 -0
  445. package/dist/lib/index.cjs +1 -0
  446. package/dist/lib/index.d.ts +16 -0
  447. package/dist/lib/style.css +1 -0
  448. package/package.json +13 -11
  449. package/dist/es/_virtual/_plugin-vue_export-helper.js +0 -8
  450. package/dist/es/components/runtime/utils/ai-chat-util.js +0 -16
  451. package/dist/es/components/runtime/utils/anchor-util.js +0 -84
  452. package/dist/es/components/runtime/utils/api/api-util.js +0 -7
  453. package/dist/es/components/runtime/utils/api/page-expose-util.js +0 -202
  454. package/dist/es/components/runtime/utils/assemblys-config.js +0 -20
  455. package/dist/es/components/runtime/utils/barcode-util.js +0 -12
  456. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +0 -168
  457. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +0 -38
  458. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +0 -82
  459. package/dist/es/components/runtime/utils/charts/chart-radar-util.js +0 -56
  460. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +0 -47
  461. package/dist/es/components/runtime/utils/charts/chart-util.js +0 -288
  462. package/dist/es/components/runtime/utils/common-util.js +0 -120
  463. package/dist/es/components/runtime/utils/eventBus.js +0 -8
  464. package/dist/es/components/runtime/utils/events/data-backfill-util.js +0 -39
  465. package/dist/es/components/runtime/utils/events/event-util.js +0 -439
  466. package/dist/es/components/runtime/utils/events/print-label.js +0 -100
  467. package/dist/es/components/runtime/utils/events/standard-event.js +0 -1226
  468. package/dist/es/components/runtime/utils/events/validator-util.js +0 -463
  469. package/dist/es/components/runtime/utils/form/date-shortcuts.js +0 -36
  470. package/dist/es/components/runtime/utils/form/scan-util.js +0 -93
  471. package/dist/es/components/runtime/utils/global-refs.js +0 -57
  472. package/dist/es/components/runtime/utils/i18n-util.js +0 -14
  473. package/dist/es/components/runtime/utils/interfaces/page-design-types.js +0 -4
  474. package/dist/es/components/runtime/utils/page-helper-util.js +0 -391
  475. package/dist/es/components/runtime/utils/page-init-util.js +0 -297
  476. package/dist/es/components/runtime/utils/page-store.js +0 -53
  477. package/dist/es/components/runtime/utils/store-util.js +0 -13
  478. package/dist/es/components/runtime/utils/table-utils.js +0 -89
  479. package/dist/es/components/runtime/utils/tree-utils.js +0 -73
  480. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -4
  481. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +0 -29
  482. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -7
  483. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -21
  484. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -4
  485. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -41
  486. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +0 -4
  487. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +0 -6
  488. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +0 -4
  489. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +0 -21
  490. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -7
  491. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -53
  492. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +0 -14
  493. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +0 -4
  494. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +0 -13
  495. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +0 -4
  496. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +0 -60
  497. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +0 -4
  498. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +0 -7
  499. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +0 -64
  500. package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +0 -94
  501. package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue2.js +0 -4
  502. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -7
  503. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -35
  504. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -7
  505. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -46
  506. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -7
  507. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -35
  508. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -7
  509. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -35
  510. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +0 -430
  511. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +0 -6
  512. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +0 -4
  513. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +0 -10
  514. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.js +0 -4
  515. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +0 -46
  516. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +0 -4
  517. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +0 -17
  518. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +0 -4
  519. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +0 -4
  520. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +0 -268
  521. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +0 -20
  522. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue2.js +0 -4
  523. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +0 -36
  524. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -4
  525. package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.js +0 -35
  526. package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue2.js +0 -4
  527. package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.js +0 -32
  528. package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue2.js +0 -4
  529. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -17
  530. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -4
  531. package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.js +0 -23
  532. package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue2.js +0 -4
  533. package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.js +0 -18
  534. package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue2.js +0 -4
  535. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +0 -35
  536. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue2.js +0 -4
  537. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -19
  538. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -4
  539. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -7
  540. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -35
  541. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -4
  542. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -21
  543. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -7
  544. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -27
  545. package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.js +0 -7
  546. package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue2.js +0 -29
  547. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +0 -7
  548. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -81
  549. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -4
  550. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -25
  551. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -4
  552. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -25
  553. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -4
  554. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -46
  555. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -7
  556. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -96
  557. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -7
  558. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -47
  559. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +0 -4
  560. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +0 -69
  561. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +0 -383
  562. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -4
  563. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +0 -339
  564. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -4
  565. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -4
  566. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -90
  567. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +0 -7
  568. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +0 -134
  569. package/dist/es/components/runtime/views/assemblys/error-render.vue.js +0 -5
  570. package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +0 -4
  571. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -4
  572. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -66
  573. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +0 -38
  574. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +0 -4
  575. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +0 -4
  576. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +0 -69
  577. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -4
  578. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -102
  579. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -4
  580. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -55
  581. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -4
  582. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +0 -24
  583. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -4
  584. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -115
  585. package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue.js +0 -4
  586. package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +0 -91
  587. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -4
  588. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -28
  589. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -4
  590. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -83
  591. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -7
  592. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +0 -38
  593. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -4
  594. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -43
  595. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -7
  596. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -16
  597. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -4
  598. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -84
  599. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -8
  600. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -218
  601. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -7
  602. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +0 -156
  603. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +0 -4
  604. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +0 -16
  605. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -4
  606. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +0 -36
  607. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -4
  608. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +0 -44
  609. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -7
  610. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -28
  611. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +0 -83
  612. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +0 -4
  613. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +0 -166
  614. package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +0 -4
  615. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +0 -9
  616. package/dist/es/components/runtime/views/assemblys/page-bottom.vue2.js +0 -4
  617. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +0 -7
  618. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +0 -55
  619. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.js +0 -7
  620. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +0 -28
  621. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +0 -7
  622. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +0 -45
  623. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +0 -4
  624. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +0 -20
  625. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +0 -4
  626. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +0 -23
  627. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -7
  628. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +0 -32
  629. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +0 -4
  630. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +0 -27
  631. package/dist/es/components/runtime/views/home-chart.vue.js +0 -47
  632. package/dist/es/components/runtime/views/home-chart.vue2.js +0 -4
  633. package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -29
  634. package/dist/es/components/runtime/views/super-page-dialog.vue3.js +0 -5
  635. package/dist/es/components/runtime/views/super-page.vue.js +0 -7
  636. package/dist/es/components/runtime/views/super-page.vue2.js +0 -311
  637. package/dist/es/index.js +0 -32
  638. /package/dist/es/assets/chart-themes/{bar-theme.js → bar-theme.mjs} +0 -0
  639. /package/dist/es/assets/chart-themes/{gauge-theme.js → gauge-theme.mjs} +0 -0
  640. /package/dist/es/assets/chart-themes/{pie-theme.js → pie-theme.mjs} +0 -0
  641. /package/dist/es/assets/chart-themes/{radar-theme.js → radar-theme.mjs} +0 -0
  642. /package/dist/es/assets/chart-themes/{scatter-theme.js → scatter-theme.mjs} +0 -0
  643. /package/dist/es/assets/{file.png.js → file.png.mjs} +0 -0
  644. /package/dist/es/assets/{folder.png.js → folder.png.mjs} +0 -0
  645. /package/dist/es/components/runtime/utils/{store.js → store.mjs} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const N=require("agilebuilder-ui"),S=require("vue-plugin-hiprint"),A=require("../barcode-util.cjs");function I(t,f){N.http.post(window.$vueApp.config.globalProperties.baseAPI+"/component/print-models/by-codes",[f]).then(E=>{const d=JSON.parse(E[0].template),c=[];d.panels.forEach(e=>{e.printElements.forEach(r=>{r.options.textType!=="barcode"&&r.options.textType!=="qrcode"||c.push(r.options)})});const n=new S.hiprint.PrintTemplate({template:d}),u={callback:()=>{},styleHandler:()=>""},o={leftOffset:-1,topOffset:-1},p={};d.panels[0].printElements.forEach(e=>{if(e.options.dataType==="datetime"&&e.options.field){const r=e.options.field.substring(6);p[r]=e.options.dateFormat}}),t.pageContext.pageType?t.pageContext.pageType==="list"?function(e,r,y,a,h,x){const m=JSON.parse(JSON.stringify(e.selections));if(m.forEach(i=>{Object.keys(r).forEach(s=>{if(i[s]&&typeof i[s]=="number"&&!isNaN(i[s]))try{i[s]=new Date(i[s])}catch(g){console.error(`日期格式化失败: ${g}`)}})}),y.length>0){const i=[];y.forEach(s=>{i.push(function(g,l){return new Promise((b,C)=>{const v=g.field.split("."),P=[];v.length<2&&b([]);try{J(v[1]).then(O=>{l.forEach((j,q)=>{const w={type:v[0],name:v[1],value:null,index:q};w.value=A.generateCodeByRule(JSON.parse(O.barcodeModelItems),j),P.push(w)}),b(P)})}catch(O){console.error("获取条码规则失败:",O),b([])}})}(s,m))}),Promise.all(i).then(s=>{s.forEach(g=>{g.forEach(l=>{const b=l.index,C=m[b];C[l.type]||(C[l.type]={}),C[l.type][l.name]=l.value})}),a.print(m,h,x)})}else a.print(m,h,x)}(t,p,c,n,o,u):t.pageContext.pageType==="form"&&T(t,c,n,o,u):T(t,c,n,o,u)})}function T(t,f,E,d,c){if(f.length>0){const n=[];f.forEach(u=>{n.push(function(o,p){return new Promise((e,r)=>{const y=p.field.split("."),a={type:null,name:null,value:null};y.length<2&&e(a),a.type=y[0],a.name=y[1];try{J(a.name).then(h=>{const x=JSON.parse(h.barcodeModelItems);a.value=A.generateCodeByRule(x,o.entity.data),e(a)})}catch(h){console.error("获取条码规则失败:",h),e(a)}})}(t.pageContext,u))}),Promise.all(n).then(u=>{const o={};u.forEach(e=>{e.type&&e.name&&e.value&&(o[e.type]||(o[e.type]={}),o[e.type][e.name]=e.value)});const p={table:{}};Object.assign(p,t.pageContext.entity,o),p.table=t.pageContext.entity.data,E.print(p,d,c)})}else{const n={table:{}};Object.assign(n,t.pageContext.entity),n.table=t.pageContext.entity.data,E.print(n,d,c)}}function J(t){const f=encodeURIComponent(t);return N.http.get(window.$vueApp.config.globalProperties.baseAPI+`/component/setting-barcode-models/by-name?name=${f}`)}S.disAutoConnect();const M={printLabel:I};exports.default=M,exports.printLabel=I;
@@ -0,0 +1,5 @@
1
+ export declare function printLabel(params: any, templateUuid: string): void;
2
+ declare const _default: {
3
+ printLabel: typeof printLabel;
4
+ };
5
+ export default _default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../common-util.cjs"),g=require("agilebuilder-ui"),y=require("element-plus"),G=require("../global-refs.cjs"),D=require("../eventBus.cjs"),ne=require("axios"),W=require("./event-util.cjs"),Ce=require("../store-util.cjs"),J=require("../page-init-util.cjs"),Y=require("../page-helper-util.cjs"),Be=require("./print-label.cjs"),se=require("../table-utils.cjs"),he=require("./validator-util.cjs"),De=require("../api/page-expose-util.cjs"),be=require("../page-store.cjs"),_e=require("vue"),je=require("../../views/assemblys/common/file-task-notice.vue.cjs"),j=require("./data-backfill-util.cjs"),Fe={save:function(e){return Te(e,!1)},saveList:function(e){return Te(e,!0)},exportForm:function(e){const t=e.pageContext.code+"_";D.$emit(t+"export-form-report",e)},exportPDF:function(e){const t=e.pageContext.code+"_";D.$emit(t+"export-pdf-report",e)},submit:function(e){return Z(e,!1,"submit","/dsc/commons/submits")},submitList:function(e){return Z(e,!0,"submit","/dsc/commons/batch-submits")},agree:function(e){return Z(e,!1,"agree","/dsc/commons/approves")},agreeList:function(e){return Z(e,!0,"agree","/dsc/commons/batch-approves")},disagree:function(e){return Z(e,!1,"disagree","/dsc/commons/refuses")},disagreeList:function(e){return Z(e,!0,"disagree","/dsc/commons/batch-refuses")},back:function(e){const t=e.pageContext,o=t.entity?t.entity.data:{},a=!(!e.configureObj.props||!e.configureObj.props.base)&&e.configureObj.props.base.isNeedValueMapping;ge(t,e.configureObj,o,a)},delete:function(e){return function(t){return new Promise((o,a)=>{const n=t.ids;if(!n||n.length===0)return y.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.pleaseSelectRecord")}),void o(!0);y.ElMessageBox.confirm(g.getI18n().t("superPageRuntimeMessage.whetherToConfirmDeletion"),g.getI18n().t("superPageRuntimeMessage.tips"),{confirmButtonText:g.getI18n().t("superPageRuntimeMessage.sure"),cancelButtonText:g.getI18n().t("superPageRuntimeMessage.cancel"),type:"warning"}).then(()=>{var M,U,v,R,N,P;const s=t.pageContext,r=t.configureObj,c=r.props.base,l=s.systemCode,m=s.backendUrl,u=r.props.base.tableUuid?r.props.base.tableUuid:t.tableUuid,p=se.getTableNameByTableUuid(s,u);let d=f.getBaseUrl(m,s.isTest)+"/dsc/commons/"+p;d=f.getRealRestApiPath(d,l,m,s.isTest);const h=c.isPermission===void 0||c.isPermission==="true"||c.isPermission,T=!!f.isWorkflowPage(s)||!!s.isWorkflowEntityOrg,i=J.getPermissionCodes(r,s),C={ids:n,functionCode:i,isPermission:h+"",systemCode:l,isWorkflowEntity:T,listCodesMap:s.listCodesMap,pageCode:s.code,pageVersion:s.version};if(s.beanName&&(C.beanName=s.beanName),u){const k=(v=(U=(M=G.getComponentRefByCode(t.pageContext,u))==null?void 0:M.getConfigure())==null?void 0:U.props)==null?void 0:v.deleteLogicSetting;k&&k&&(typeof k=="object"?C.deleteLogicSetting=JSON.stringify(k):typeof k=="string"&&(C.deleteLogicSetting=k))}const b=(R=r.props.base)==null?void 0:R.logSetting;b&&(C.logSettingText=b.join(""));const w=r.props.base.isSafeDelete;w&&(C.isSafeDelete=w);const I=(P=(N=r.runtime)==null?void 0:N.props)==null?void 0:P.title;I&&(C.currentOperation=I),C.isMobile=g.isMobileBrowser(),g.http.delete(d,{data:C}).then(k=>{const S=G.getComponentRef(s,u);S&&(S.isDeleteChange(!0),S.clearSelections()),V(s,r,k,"superPageRuntimeMessage.successfulDelete",!0),o(!0)}).catch(k=>{a(k)})}).catch(()=>{a()})})}(e)},downloadTemplate:function(e){(function(t){var M,U,v,R;const o=t.pageContext,a=t.configureObj,n=a.props.base,s=f.packageTemplateFiles(n.templateFiles,o,a);let r,c;s&&s.length>0&&(r=s[0].templateUuid,c=s[0].templateName);const l=o.systemCode,m=o.backendUrl;let u=c,p="?1=1";r&&u&&r!=="undefined"&&u!=="undefined"&&r!=="null"&&u!=="null"?p+="&fileName="+encodeURI(r)+"&showName="+encodeURI(u):u?p+="&showName="+encodeURI(u):o.label&&((M=t.tableConfigure)!=null&&M.title?(p+="&showName="+encodeURI(g.getI18n().t(t.tableConfigure.title))+".xlsx",u=g.getI18n().t(t.tableConfigure.title)+".xlsx"):(p+="&showName="+encodeURI(o.label)+".xlsx",u=o.label+".xlsx"));const d=(U=a.props.base)==null?void 0:U.logSetting;d&&(p+="&logSettingText="+d.join("")),l&&(p+="&systemCode="+l);const h=t.listCode;h&&(p+="&listCode="+h),o.beanName&&(p+="&beanName="+o.beanName);const T=J.getPermissionCodes(a,o);T&&(p+="&functionCode="+T),o.tableName&&(p+="&tableName="+o.tableName),o.code&&(p+="&pageCode="+o.code),o.version&&(p+="&pageVersion="+o.version);const i=g.getToken();i&&(p+="&JWT="+i);const C=(R=(v=a.runtime)==null?void 0:v.props)==null?void 0:R.title;C&&(p+="&currentOperation="+encodeURI(C)),p+="&isMobile="+g.isMobileBrowser();const b="_RUN_CURRENT_ROLE",w=g.getSessionCache(b);w&&(p+="&"+b+"="+w),n&&(p+="&isPermission="+(n.isPermission===void 0||n.isPermission==="true"||n.isPermission));const I=f.getBaseUrl(m,o.isTest);window.$http({url:encodeURI(I+"/dsc/commons/download-files"+p),method:"get",responseType:"blob"}).then(N=>{const P=document.createElement("a"),k=new Blob([N],{type:"application/vnd.ms-excel;charset=UTF-8"});P.style.display="none",P.remove("download"),P.href=URL.createObjectURL(k),P.setAttribute("download",u||"template.xlsx"),document.body.appendChild(P),P.click(),document.body.removeChild(P)})})(e)},import:function(e){const t=e.pageContext.code+"_";D.$emit(t+"import-file",e)},export:function(e){return function(t){return new Promise((o,a)=>{var b,w,I,M,U,v,R,N,P,k,S,x;const n=t.pageContext,s=t.configureObj,r=s.props.base,c=t.listCode,l=t.selections,m={};l&&l.length>0&&(m.data=l);let u=n.label;u||(u=n.code);let p=!1;p=r.isAsync!==void 0&&r.isAsync!==null&&r.isAsync;const d=r.isPermission===void 0||r.isPermission==="true"||r.isPermission,h=J.getPermissionCodes(s,n),T=u,i={backendUrl:n.backendUrl,pageContext:n},C=(w=(b=s.runtime)==null?void 0:b.props)==null?void 0:w.title;C&&(i.currentOperation=C),i.isShowWatermark=((M=(I=s.props)==null?void 0:I.watermark)==null?void 0:M.isShowWatermark)===void 0?"true":((v=(U=s.props)==null?void 0:U.watermark)==null?void 0:v.isShowWatermark)+"",i.watermarkContent=(N=(R=s.props)==null?void 0:R.watermark)!=null&&N.content&&((k=(P=s.props)==null?void 0:P.watermark)==null?void 0:k.content.length)>0?(x=(S=s.props)==null?void 0:S.watermark)==null?void 0:x.content.join("-~"):"",window.$vueApp.config.globalProperties.$exportDataNew(m,T,c,h,null,i,p,n.code,d),p&&setTimeout(()=>{me(n)},100)})}(e)},search:function(e){const t=e.pageContext,o=e.tableUuid;G.getComponentRef(t,o).refresh()},showSearch:function(e){const t=e.pageContext,o=e.tableUuid;G.getComponentRef(t,o).showMobileSearch()},workflowSave:function(e){return D.$emit("clearTableAllStartEditing"),async function(t){return new Promise((o,a)=>{const n=t.pageContext;if(Q(n))return void o(!1);const s=n.entity.data,r=n.systemCode,c=n.backendUrl;let l=f.getBaseUrl(c,n.isTest)+"/dsc/workflow-commons";if(l=f.getRealRestApiPath(l,r,c,n.isTest),!l)return void y.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const m=_(t);let u;u=s.id||s.ID?g.http.put(l,m):g.http.post(l,m),j.cacheBackfillData(n.code,s),u.then(p=>{let d=!0;p&&(j.removeCacheFillData(n.code,s),d=z(p,!1,n,t,null)),d===!0&&y.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulSave")}),D.$emit("clearTableAllEndEditing"),o(!0)}).catch(p=>{a(p)})})}(e)},workflowStart:function(e){return D.$emit("clearTableAllStartEditing"),async function(t){return new Promise((o,a)=>{const n=t.pageContext,s=n.entity.data,r=n.systemCode,c=n.backendUrl;if(Q(n))return void o(!1);let l=f.getBaseUrl(c,n.isTest)+"/dsc/workflow-commons/start";if(l=f.getRealRestApiPath(l,r,c,n.isTest),!l)return void y.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const m=_(t);let u;s.workflow_id||s.WORKFLOW_ID?(l=f.getBaseUrl(c,n.isTest)+"/dsc/workflow-commons",l=f.getRealRestApiPath(l,r,c,n.isTest),u=g.http.put(l,m)):u=g.http.post(l,m),j.cacheBackfillData(n.code,s),u.then(p=>{let d=!0;p&&(j.removeCacheFillData(n.code,s),d=z(p,!1,n,t,null)),d===!0&&y.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulStart")}),D.$emit("clearTableAllEndEditing"),o(!0)}).catch(p=>{a(p)})})}(e)},submitProcess:function(e){return D.$emit("clearTableAllStartEditing"),function(t){return new Promise((o,a)=>{const n=t.pageContext;if(Q(n))return void o(!1);const s=n.systemCode,r=n.backendUrl;let c=f.getBaseUrl(r,n.isTest)+"/dsc/workflow-commons/submit";if(c=f.getRealRestApiPath(c,s,r,n.isTest),!c)return void y.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const l=_(t);j.cacheBackfillData(n.code,n.entity.data);const m=g.http.post(c,l);m?m.then(u=>{let p=!0;u&&(j.removeCacheFillData(n.code,n.entity.data),p=z(u,!1,n,t,null)),p===!0&&y.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulSubmit")}),D.$emit("clearTableAllEndEditing"),o(!0)}).catch(u=>{a(u)}):j.removeCacheFillData(n.code,n.entity.data)})}(e)},submitTask:function(e){return X(e,"SUBMIT")},approve:function(e){return X(e,"APPROVE")},refuse:function(e){return X(e,"REFUSE")},readed:function(e){return X(e,"READED")},agreement:function(e){return X(e,"AGREEMENT")},oppose:function(e){return X(e,"OPPOSE")},kiken:function(e){return X(e,"KIKEN")},assign:function(e){return function(t){const o=t.pageContext,a=o.code+"_";D.$emit(a+"assign-task",t)}(e)},copyTask:function(e){return function(t){const o=t.pageContext,a=o.code+"_";D.$emit(a+"copy-task",t)}(e)},addSigner:function(e){return function(t){const o=t.pageContext,a=o.code+"_";D.$emit(a+"add-signer",t)}(e)},drawTask:function(e){return function(t){const o=t.pageContext,a=o.backendUrl,n=f.getBaseUrl(a,o.isTest)+"/dsc/workflow-commons/draw-tasks",s=_(t);return H(t,s,n,"superPageRuntimeMessage.successfulDrawTask")}(e)},abandonReceive:function(e){return function(t){const o=t.pageContext,a=o.backendUrl,n=f.getBaseUrl(a,o.isTest)+"/dsc/workflow-commons/abandon-receives",s=_(t);return H(t,s,n,"superPageRuntimeMessage.successfulAbandonReceive")}(e)},returnToPreviousTask:function(e){return function(t){const o=t.pageContext,a=o.backendUrl,n=f.getBaseUrl(a,o.isTest)+"/dsc/workflow-commons/return-to-previous-tasks",s=_(t);return H(t,s,n,"superPageRuntimeMessage.successfulReturnToPreviousTask")}(e)},endInstance:function(e){return function(t){const o=t.pageContext,a=o.backendUrl,n=f.getBaseUrl(a,o.isTest)+"/dsc/workflow-commons/end-instance",s=_(t);return H(t,s,n,"superPageRuntimeMessage.successfulEndInstance")}(e)},returnTaskTo:function(e){return function(t){const o=t.pageContext,a=o.code+"_";D.$emit(a+"choose-return-node",t)}(e)},removeSigner:function(e){return function(t){const o=t.pageContext,a=o.code+"_";D.$emit(a+"remove-signer",t)}(e)},retrieveTask:function(e){return function(t){const o=t.pageContext,a=o.backendUrl,n=f.getBaseUrl(a,o.isTest)+"/dsc/workflow-commons/retrieves",s=_(t);return H(t,s,n,"superPageRuntimeMessage.successfulRetrieve")}(e)},extractWorkflow:function(e){return Ee(e)},extractWorkflowEvent:function(e){return function(t){const o=t.pageContext;D.$emit(o.code+"_event-call-component",{componentName:"extract-workflow-dialog",componentProps:{pageContext:t.pageContext,configure:t.configureObj}})}(e)},cancelExtractWorkflow:function(e){return function(t){const o=t.pageContext,a=o.backendUrl,n=f.getBaseUrl(a,o.isTest)+"/dsc/workflow-commons/cancel-extract",s=_(t);return H(t,s,n,"superPageRuntimeMessage.successfulCancelExtract")}(e)},approveExtractWorkflow:function(e){return function(t){const o=t.pageContext,a=o.backendUrl,n=f.getBaseUrl(a,o.isTest)+"/dsc/workflow-commons/approve-extract",s=_(t);return H(t,s,n,"superPageRuntimeMessage.successfulOperation")}(e)},refuseExtractWorkflow:function(e){return function(t){const o=t.pageContext,a=o.backendUrl,n=f.getBaseUrl(a,o.isTest)+"/dsc/workflow-commons/refuse-extract",s=_(t);return H(t,s,n,"superPageRuntimeMessage.successfulOperation")}(e)},viewDetail:function(e){},lineEditCreate:function(e){return function(t){const o=t.pageContext,a=t.tableUuid,n=G.getComponentRef(o,a);n&&(t.getDefaultValueFunc=J.getDefaultValue,n.createRow(t.listCode,{},t))}(e)},printLabel:function(e){return function(t){let o=null;try{if(o=t.menuItem?t.menuItem.templateUuid:t.configureObj.props.base.template[0].templateUuid,!o)throw new Error("未找到模板")}catch(a){console.error("打印标签失败,未在配置中找到找到模板",a,t)}Be.default.printLabel(t,o)}(e)},queryCharts:function(e){we(e)},resetCharts:function(e){var o,a;const t=e.pageContext;Object.assign(t.entity.data,f.deepCopy((o=t.initChartData)==null?void 0:o.data)),Object.assign(t.entity.page,f.deepCopy((a=t.initChartData)==null?void 0:a.page)),e.isInitChart=!0,we(e)},exportCharts:function(e){(function(t){var i,C,b,w,I,M,U,v,R,N,P,k;const o=t.pageContext,a=o.allChartUuids;if(!a||a.length==0)return;const n=t.configureObj;let s=null;n&&n.runtime&&(s=n.runtime.props);const r=s?s.state:void 0;s&&(s.state="disabled");const c=[];for(let S=0;S<a.length;S++){const x=a[S],E=G.getComponentRef(o,x);if(E){const A=E.getConfigure();A&&A.exportable&&A._dynamicShowFlag&&E.exportChart&&c.push(E.exportChart())}}if(!c||c.length==0)return;let l,m=o.label;m||(m=o.code),l=m;const u={reportDataList:c,beanName:o.beanName,systemCode:o.systemCode,pageCode:o.code},p=$(o);u.additionalParamMap=p;const d=(C=(i=n.runtime)==null?void 0:i.props)==null?void 0:C.title;d&&(u.currentOperation=d),u.isMobile=g.isMobileBrowser(),u.isShowWatermark=((w=(b=n.props)==null?void 0:b.watermark)==null?void 0:w.isShowWatermark)===void 0?"true":((M=(I=n.props)==null?void 0:I.watermark)==null?void 0:M.isShowWatermark)+"",u.watermark=(v=(U=n.props)==null?void 0:U.watermark)!=null&&v.content&&((N=(R=n.props)==null?void 0:R.watermark)==null?void 0:N.content.length)>0?(k=(P=n.props)==null?void 0:P.watermark)==null?void 0:k.content.join("-~"):"";const h=o.backendUrl,T=f.getBaseUrl(h,o.isTest)+"/dsc/commons/exportChart";pe(),ne.post(T,u,{responseType:"blob"}).then(S=>{const x=document.createElement("a");x.style.display="none",x.href=URL.createObjectURL(S.data),x.setAttribute("download",l+".xlsx"),document.body.appendChild(x),x.click(),document.body.removeChild(x)}).finally(()=>{s&&(s.state=r)})})(e)},saveQueryCharts:function(e){(function(t){const o=t.pageContext,a=t.configureObj,n=o.code+"_";D.$emit(n+"save-chart-condition",{pageContext:o,configureObj:a})})(e)},addTransactor:function(e){return function(t){const o=t.pageContext,a=o.code+"_";D.$emit(a+"add-transactor",t)}(e)},removeTransactor:function(e){return function(t){const o=t.pageContext,a=o.code+"_";D.$emit(a+"remove-transactor",t)}(e)}};function we(e){const t=e.pageContext,o=t.initChartServiceConfigs;if(!o||o.length==0)return;const a=e.configureObj;let n=null;a&&a.runtime&&(n=a.runtime.props);const s=n?n.state:void 0;n&&(n.state="disabled"),Y.updateChartDatasources(t,o,void 0,e.isInitChart).then(()=>{n&&(n.state=s)}).catch(()=>{n&&(n.state=s)})}function pe(){ne.defaults.headers.common.Authorization=g.getToken();const e=g.getRunCurrentRole();if(e){const t="_RUN_CURRENT_ROLE";ne.defaults.headers.common[t]=e}}function Q(e){if(e.fileuploadInfo&&e.fileuploadInfo.length>0){const t=e.fileuploadInfo[0];let o;return o=t.isTable&&t.tableTitle&&t.rowIndex!==void 0?g.getI18n().t("superPageRuntimeMessage.fileUploadUnCompleteTable",{label:t.label,tableTitle:t.tableTitle,rowIndex:t.rowIndex+1}):g.getI18n().t("superPageRuntimeMessage.fileUploadUnComplete",{label:t.label}),y.ElMessage({message:o,type:"warning",showClose:!0}),!0}return!1}function Te(e,t){return new Promise((o,a)=>{const n=e.pageContext,s=e.configureObj,r=e.mainDefaultValueColumns,c=e.dynamicColumnInfo,l=s.props.base.successOperation;let m=!1;if(l&&l==="noOperation"&&(m=!0),Q(n))return void o(!1);j.cacheBackfillData(n.code,n.entity.data);const u=ve(n,s,"/dsc/commons",m,r,c);u?u.then(p=>{p&&j.removeCacheFillData(n.code,n.entity.data),V(n,s,p,"superPageRuntimeMessage.successfulSave",t),o(p)}).catch(p=>{a(p)}):(j.removeCacheFillData(n.code,n.entity.data),a("保存时request不存在"))})}function Re(e,t,o,a,n,s,r){var I,M,U;const c=f.isWorkflowPage(e),l=e.systemCode,m=t.props.base.isPermission===void 0||t.props.base.isPermission==="true"||t.props.base.isPermission,u=J.getPermissionCodes(t,e);let p=r;p||(p=e.entity.data);const d={entity:p,tableName:e.tableName,formNoRuleCode:e.formNoRuleCode,isWorkflowEntity:c,functionCode:u,isPermission:m+"",listCodesMap:e.listCodesMap,pageCode:e.code,pageVersion:e.version,listCodesInitSearchForm:e.listCodesInitSearchForm};s&&(d.ids=s),e.judgeHeavyList&&(f.isArrayFn(e.judgeHeavyList)?d.judgeHeavyList=JSON.stringify(e.judgeHeavyList):d.judgeHeavyList=e.judgeHeavyList);const h=t.props.base.conversionCodes;h&&(f.isArrayFn(h)?d.dataConversionRule=h.join(","):typeof h=="string"&&(d.dataConversionRule=h));const T=fe(t);T&&(d.autoSetValueData=T);const i=(I=t.props.base)==null?void 0:I.logSetting;i&&(d.logSettingText=i.join("")),d.systemCode||(d.systemCode=l);const C=e.beanName;C&&(d.beanName=C),n&&(d.dynamicColumnInfo=n),a&&(d.mainDefaultValueColumns=a);const b=$(e);d.additionalParamMap=b,o!==void 0&&(d.unControlVersion=o);const w=(U=(M=t.runtime)==null?void 0:M.props)==null?void 0:U.title;return w&&(d.currentOperation=w),d.isMobile=g.isMobileBrowser(),d}function Ie(e,t,o,a,n,s,r,c,l){const m=e.systemCode,u=e.backendUrl,p=Re(e,t,a,n,s,null,r);return c&&c.tableName&&(p.tableName=c.tableName),l&&(p.isWorkflowEntity=!1),r||e.pageType!=="form"?ke(m,u,p,o,r,e.isTest):ke(m,u,p,o,e.entity.data,e.isTest)}function ve(e,t,o,a,n,s){return Ie(e,t,o,a,n,s,null,null)}function ke(e,t,o,a,n,s){let r,c=f.getBaseUrl(t,s)+a;return c=f.getRealRestApiPath(c,e,t,s),r=n&&(n.id||n.ID)?g.http.put(c,o):g.http.post(c,o),r}function V(e,t,o,a,n){const s=Me(e,t,n);if(s&&s==="list")(function(r,c,l,m){let u=c.props.base.successOperation;const p=c.props.base.isNeedValueMapping,d=W.getTableUuid(r,c);if(u||We.includes(c.name)||(u="refresh"),u==="refresh")d?G.getComponentRef(r,d).refresh():console.error("tableUuid is empty");else if(u==="closeWindow"||u==="closeWindowAndRefresh"){const h=f.deepCopy(r.entity.page);let T=l;T||(T={}),Object.assign(h,T),ge(r,c,h,p)}m&&y.ElMessage({message:g.getI18n().t(m),type:"success",showClose:!0})})(e,t,o,a),e.canClick=!0;else if(s&&s==="form")(function(r,c,l,m){if(l){const u=l;let p;p=u.entity?u.entity:u,u.formNo&&(r.initFormNo=u.formNo),ce(r,c,{...p,...r.entity.page})}else{const u=c.props.base.successOperation;u&&u!==null?ce(r,c,{...r.entity.page}):r.canClick=!0}m&&y.ElMessage({message:g.getI18n().t(m),type:"success",showClose:!0})})(e,t,o,a);else{const r=t.props.base.successOperation;r&&r!==null?ce(e,t,null):e.canClick=!0}}function Me(e,t,o){let a;return o===void 0?a=t.props.base.tableUuid?"list":null:o===!1&&(a="form"),a||(a=e.pageType),a}function ce(e,t,o){const a=t.props.base.successOperation;if(!a||a===null)return;const n=t.props.base.isNeedValueMapping;a==="noOperation"?e.canClick=!0:a==="refresh"?o&&(o.id||o.ID)?de(e,o.ID?o.ID:o.id):e.canClick=!0:a!=="closeWindow"&&a!=="closeWindowAndRefresh"||(ge(e,t,o,n),e.canClick=!0)}function ge(e,t,o,a){const n=e.entity&&e.entity.request?e.entity.request.jumpMode:null;if(n==="openWindow"||n==="newTab")window.parent?window.parent.close():window.close();else{const s=e.tableName,r=a!==void 0&&a===!0&&o&&o!==void 0,c=(e.entity&&e.entity.request?e.entity.request.parentPageCode:null)+"_close-dialog";D.$has(c)?D.$emit(c,{isNeedValueMapping:r,dataModel:o,sourceConfigureObj:t,sourceTableName:s,jumpMode:n}):n==="refresh"&&window.history.back()}}const We=["dropdown"];function Z(e,t,o,a){return new Promise((n,s)=>{const r=e.pageContext,c=e.configureObj;if(Q(r))return void n(!1);const l=e.mainDefaultValueColumns,m=e.dynamicColumnInfo,u=e.ids,p=c.props.base.successOperation;let d=!1;p&&p==="noOperation"&&(d=!0);let h=r.tableName;if(t){const i=c.props.base.tableUuid?c.props.base.tableUuid:e.tableUuid;h=se.getTableNameByTableUuid(r,i)}else j.cacheBackfillData(r.code,r.entity.data);const T=function(i,C,b,w,I,M,U,v,R){return new Promise((N,P)=>{const k=C.props.base.title,S="superPageRuntimeMessage.whetherToConfirm"+f.upperFirstCase(U);y.ElMessageBox.confirm(g.getI18n().t(S,{name:k}),g.getI18n().t("superPageRuntimeMessage.tips"),{confirmButtonText:g.getI18n().t("superPageRuntimeMessage.sure"),cancelButtonText:g.getI18n().t("superPageRuntimeMessage.cancel"),type:"warning"}).then(()=>{const x=i.systemCode,E=i.backendUrl,A=Re(i,C,w,I,M,v,null);A.tableName=R;let B=f.getBaseUrl(E,i.isTest)+b;B=f.getRealRestApiPath(B,x,E,i.isTest),g.http.post(B,A).then(O=>{N(O)}).catch(O=>{P(O)})}).catch(()=>{P("点击了取消按钮")})})}(r,c,a,d,l,m,o,u,h);T?T.then(i=>{!t&&i&&j.removeCacheFillData(r.code,r.entity.data),V(r,c,i,"superPageRuntimeMessage.successfulSave",t),n(i)}).catch(i=>{s(i)}):(t||j.removeCacheFillData(r.code,r.entity.data),s("request不存在"))})}function _(e){var T,i,C;const t=e.pageContext,o=e.configureObj,a=t.entity.data,n=t.systemCode,s=t.code;let r=J.getPermissionCodes(o,t);r||(r=s+".xxx"),a.id||a.ID||(a.PAGE_CODE=t.code,a.PAGE_VERSION=t.version);const c={entity:a,pageMoel:t.entity.page,formNoRuleCode:t.formNoRuleCode,tableName:t.tableName,emailTemplateCode:t.emailTemplateCode,definitionId:t.definitionId,functionCode:r,systemCode:n,listCodesMap:t.listCodesMap,pageCode:t.code,pageVersion:t.version,listCodesInitSearchForm:t.listCodesInitSearchForm};t.dataTypeMaps&&Object.keys(t.dataTypeMaps).length>0&&(c.dataTypeMap=t.dataTypeMaps),t.completeTaskParam&&(c.completeTaskParam={taskId:t.completeTaskParam.taskId,opinion:t.completeTaskParam.opinion}),t.judgeHeavyList&&(f.isArrayFn(t.judgeHeavyList)?c.judgeHeavyList=JSON.stringify(t.judgeHeavyList):c.judgeHeavyList=t.judgeHeavyList);const l=o.props.base.conversionCodes;l&&(f.isArrayFn(l)?c.dataConversionRule=l.join(","):typeof l=="string"&&(c.dataConversionRule=l));const m=fe(o);m&&(c.autoSetValueData=m),t.beanName&&(c.beanName=t.beanName);const u=(T=o.props.base)==null?void 0:T.logSetting;u&&(c.logSettingText=u.join("")),c.systemCode||(c.systemCode=n);const p=$(t);c.additionalParamMap=p,p.ids&&p.ids.length>0&&(typeof p.ids=="string"?c.ids=p.ids.split(","):Array.isArray(p.ids)?c.ids=p.ids:typeof ids=="number"?c.ids=[p.ids]:console.error("ids参数类型错误"));const d=o.props.base.successOperation;d&&d==="noOperation"&&(c.unControlVersion=!0),c.isWorkflowEntity=!0;const h=(C=(i=o.runtime)==null?void 0:i.props)==null?void 0:C.title;return h&&(c.currentOperation=h),c.isMobile=g.isMobileBrowser(),c.taskParamMap=t.entity.task,c}function z(e,t,o,a,n){const s=o.code,r=o.version;let c;if(e){t&&(o.initFormNo=e.formNo,o.emailTemplateCode=e.emailTemplateCode),e.entity&&(o.entity.data=e.entity,function(m,u){const p=$(u);m&&p&&g.setSessionCache(p._t_+"_id",m)}(e.entity.id||e.entity.ID,o));const l=e.completeTaskResult;if(l){const m=l.completeTaskTipType;if(m&&m==="MESSAGE"){const u=l.content;return y.ElMessage({showClose:!0,type:"warning",message:u}),!1}}if(e.completeTaskParam){const m=e.completeTaskParam;c=m.taskId,a&&(a.taskId=c),Ce.setStoreInfo(s,r,"_completeTaskParam",m),o.fieldPermissions=m.fieldPermissions,o.actionPermissions=m.actionPermissions,o.workflowButtonComponent=m.buttonComponent,o.completeTaskParam=m,o.completeTaskParam.opinion=null}o.entity||(o.entity={}),o.entity.task=e.taskParamMap,Ce.setStoreInfo(s,r,"_currentActivityName",e.taskName)}return a&&(a.operationResult=n),t||V(o,a.configureObj,e,null,!1),!0}async function X(e,t){const o=await Se(e);return new Promise((a,n)=>{var r;const s=e.pageContext;if(Q(s))a(!1);else if(o){const c=s.systemCode,l=s.backendUrl,m=o===!0?(r=s.completeTaskParam)==null?void 0:r.opinion:o;let u=f.getBaseUrl(l,s.isTest)+"/dsc/workflow-commons/complete-tasks";if(u=f.getRealRestApiPath(u,c,l,s.isTest),!u)return void y.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const p=_(e);p.completeTaskParam={operationResult:t,taskId:s.completeTaskParam?s.completeTaskParam.taskId:null,opinion:m||null};const d=g.http.post(u,p);j.cacheBackfillData(s.code,s.entity.data),d.then(h=>{let T=!0;h&&(j.removeCacheFillData(s.code,s.entity.data),T=z(h,!1,s,e,t)),T===!0&&y.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulCompleteTask")}),a(!0)}).catch(h=>{n(h)})}else a(!0)})}function Se(e){return new Promise((t,o)=>{var n,s,r,c,l;const a=e.configureObj;if(a){if((n=e.pageContext.workflowOpinion)!=null&&n.opinion)return void t(e.pageContext.workflowOpinion.opinion);let m=!1;if((r=(s=a.props)==null?void 0:s.base)!=null&&r.isMustOpinion&&(m=!0),m===!0){const u=e.pageContext,p=(l=(c=a.props)==null?void 0:c.base)==null?void 0:l.mustOpinionConditions;m=Y.caculateShowCondition(u,p)}m===!0?(y.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.pleaseInputOpinion")}),e.pageContext.workflowOpinion.focusOpinionInput=!0,t(!1)):t(!0)}else t(!0)})}function le(e){var u,p;const t=e.pageContext,o=t.entity.data,a=t.systemCode,n=t.code,s=e.configureObj,r=$(t),c=o.ID!==void 0&&o.ID!==null?o.ID:o.id,l={beanName:t.beanName,id:c,entity:o,additionalParamMap:r,tableName:t.tableName,functionCode:n+".xxx",isWorkflowEntity:!0,listCodesMap:t.listCodesMap,pageCode:t.code,pageVersion:t.version,listCodesInitSearchForm:t.listCodesInitSearchForm};l.completeTaskParam={taskId:t.completeTaskParam.taskId,systemCode:a},l.completeTaskParam.customTaskTitle=xe(e);const m=(p=(u=s==null?void 0:s.runtime)==null?void 0:u.props)==null?void 0:p.title;return m&&(l.currentOperation=m),l.isMobile=g.isMobileBrowser(),l}function xe(e){var o,a,n;let t=null;if(((a=(o=e.configureObj.props.task)==null?void 0:o.title)==null?void 0:a.length)>0)for(let s=0;s<e.configureObj.props.task.title.length;s++){const r=e.configureObj.props.task.title[s];if(r.config){if(!(((n=r.conditions)==null?void 0:n.length)>0)){t=r.config;break}if(Y.caculateShowCondition(e.pageContext,r.conditions)){t=r.config;break}}}return t}function $(e){if(e.entity){let t=f.deepCopy(e.entity.page);t||(t={});const o=e.entity.request;return o&&Object.assign(t,o),t}}async function H(e,t,o,a){const n=await Se(e);return new Promise((s,r)=>{var c;if(n){const l=e.pageContext,m=l.systemCode,u=l.backendUrl;if(l.completeTaskParam){const d=n===!0?(c=l.completeTaskParam)==null?void 0:c.opinion:n;t.completeTaskParam={taskId:l.completeTaskParam.taskId,opinion:d}}if(!(o=f.getRealRestApiPath(o,m,u,l.isTest)))return void y.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const p=g.http.post(o,t);p&&p.then(d=>{let h=!0;d&&(h=z(d,!1,l,e,null)),h===!0&&y.ElMessage({showClose:!0,type:"success",message:g.getI18n().t(a)}),s(!0)}).catch(d=>{r(d)})}else s(!0)})}function Ee(e){const t=e.pageContext,o=t.backendUrl;let a=f.getBaseUrl(o,t.isTest)+"/dsc/workflow-commons/initiate-extract";const n=_(e);if(t.completeTaskParam){const s=[];e._value.loginName&&s.push(e._value.loginName),n.completeTaskParam={taskId:t.completeTaskParam.taskId,opinion:e._value.opinion,transactors:s,customTaskTitle:xe(e)}}return new Promise((s,r)=>{const c=e.pageContext,l=c.systemCode,m=c.backendUrl;if(a=f.getRealRestApiPath(a,l,m,c.isTest),!a)return void y.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const u=g.http.post(a,n);u&&u.then(p=>{let d=!0;p&&(d=z(p,!1,c,e,null)),d===!0&&y.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulInitiateExtract")}),s(!0)}).catch(p=>{r(p)})})}function Le(e,t,o){return!(!e.processState||e.processState!=="EXTRACT"||e.active!=="WAIT_TRANSACT")}function de(e,t){e.entity.page||(e.entity.page={}),e.entity.page._isRefresh=!0,Ne(e,t).then(o=>{e.isRefresh=!0})}function Ne(e,t,o){const a=e.pageType;return a&&a==="form"?(e.canClick=!1,f.isWorkflowPage(e)?function(n,s,r){return new Promise((c,l)=>{var U;const m=n.systemCode,u=n.code,p=n.version,d=$(n);let h=s||null,T=s?[s]:null;r===void 0||r?(h||(h=d&&d.id?d.id:null),T||(T=d?d.ids:null)):(h=null,T=null,d._id=d.id,d.id=null);const i=d?d.taskId:null,C=u,b={pageCode:u,pageVersion:p,tableName:n.tableName,formNoRuleCode:n.formNoRuleCode,isWorkflowEntity:!0,systemCode:m,functionCode:C+".workflowGets",listCodesMap:n.listCodesMap,listCodesInitSearchForm:n.listCodesInitSearchForm};if(n.listCodesMap,(!n.listCodesMap||Object.keys(n.listCodesMap).length===0)&&n.tableUuids){const v={};n.tableUuids.forEach(R=>{const N=f.getListCode(u,p,R);v[N]=N}),b.listCodesMap=v}T&&(b.ids=Pe(T)),i?b.taskId=i:h?b.id=h:(d&&d._t_&&g.getSessionCache(d._t_+"_id")&&(b.id=g.getSessionCache(d._t_+"_id")),n.notIdInitializationList&&(b.noIdAndTaskIdInitSetting=JSON.stringify(n.notIdInitializationList))),d&&(b.additionalParamMap=d),n.beanName&&(b.beanName=n.beanName),n.refercePropMap&&(b.refercePropMap=n.refercePropMap),(U=n.props)!=null&&U.enableFormDataPermission&&(b.withDataPermission=!0),b.isMobile=g.isMobileBrowser();const w=f.getBaseUrl(n.backendUrl,n.isTest)+"/dsc/workflow-commons/gets",I=be.usePageContextStore();I.restorePageLoadState(),W.handleEvent(null,n,n,"beforeFormLoadData");const M=j.hasBackfillData(n.code,b.id);g.http.post(w,b).then(async v=>{M&&await ye(n,b.id,v),n.workflowOpinion={showOpinionBox:!1},n.definitionId=v.definitionId,n.entity.task=v.taskParamMap,n.dataTypeMaps=v.dataTypeMap,z(v,!0,n),n.workflowRules=he.getWorkflowRules(n);const R=n.pageType;R&&R==="form"&&function(N){(function(P){const k=new Map,S=P.fieldPermissions;if(S!==void 0)for(let x=0;x<S.length;x++){const E=S[x].name;if(E)if(E.indexOf("$")===0&&E.indexOf(".")>0){const A=S[x],B=JSON.parse(JSON.stringify(A)),O=E.substring(1,E.indexOf(".")),q=E.substring(E.indexOf(".")+1);if(B.name=q,B&&B.name==="all_fields")B.canEdit===!1?B.rowIndexes?k.set(O,[{name:"all_fields",canEdit:!1,rowIndexes:B.rowIndexes}]):k.set(O,[{name:"all_fields",canEdit:!1}]):B.rowIndexes?k.set(O,[{name:"all_fields",canEdit:!0,rowIndexes:B.rowIndexes}]):k.set(O,[{name:"all_fields",canEdit:!0}]);else{let L=k.get(O);L||(L=[]),L.push(B),k.set(O,L)}}else k.set(E,S[x])}P.fieldPermissionMap=k})(N),function(P){const k=P.fieldPermissionMap,S=new Map,x=P.actionPermissions;x!=null&&Object.keys(x).forEach(E=>{const A=x[E],B=k.get(E);if(B&&B.length>0&&B[0].name==="all_fields"&&B[0].canEdit===!1)A.canUpdate=!1,A.canAdd=!1;else{A&&Object.keys(A.deleteCondition).length!==0||(A.deleteCondition=null),A&&Object.keys(A.updateCondition).length!==0||(A.updateCondition=null);const O=A.canUpdate,q=A.updateRowIndexes;O!==void 0&&O===!1&&q!=null&&q.length>0&&k.set(E,[{name:"all_fields",canEdit:!1,rowIndexes:q}])}S.set(E,A)}),P.actionPermissionMap=S}(N)}(n),n.canClick=!0,W.handleEvent(null,n,n,"afterFormLoadData"),I.setFormPageDataLoadState(!0),c(v)}).catch(v=>{n.canClick=!0,l(v)})})}(e,t,o):function(n,s,r){return new Promise((c,l)=>{var v;const m=n.systemCode,u=n.code,p=n.version,d=$(n);let h=s||null,T=s?[s]:null;r===void 0||r?(h||(h=d&&d.id?d.id:null),T||(T=d?d.ids:null)):(h=null,T=null,d._id=d.id,d.id=null);const i=d?d.taskId:null,C=u,b=f.getBaseUrl(n.backendUrl,n.isTest),w={pageCode:u,pageVersion:p,tableName:n.tableName,formNoRuleCode:n.formNoRuleCode,id:h,systemCode:m,functionCode:C+".gets",listCodesMap:n.listCodesMap,listCodesInitSearchForm:n.listCodesInitSearchForm};if(!w.id&&d&&d._t_&&g.getSessionCache(d._t_+"_id")&&(w.id=g.getSessionCache(d._t_+"_id")),T&&(w.ids=Pe(T)),n.notIdInitializationList&&(w.noIdAndTaskIdInitSetting=JSON.stringify(n.notIdInitializationList)),d&&(w.additionalParamMap=d),n.beanName&&(w.beanName=n.beanName),i&&(w.taskId=i),(v=n.props)!=null&&v.enableFormDataPermission&&(w.withDataPermission=!0),n.listCodesMap,(!n.listCodesMap||Object.keys(n.listCodesMap).length===0)&&n.tableUuids){const R={};n.tableUuids.forEach(N=>{const P=f.getListCode(u,p,N);R[P]=P}),w.listCodesMap=R}n.refercePropMap&&(w.refercePropMap=n.refercePropMap),w.isMobile=g.isMobileBrowser();const I=b+"/dsc/commons/gets",M=be.usePageContextStore();M.restorePageLoadState(),W.handleEvent(null,n,n,"beforeFormLoadData");const U=j.hasBackfillData(n.code,w.id);g.http.post(I,w).then(async R=>{R&&(U&&await ye(n,w.id,R),n.entity.data=R.entity,n.initFormNo=R.formNo);const N=n.customRules,P=n.rules,k=he.packageCustomRules(n,N,P);n.rules=k,n.canClick=!0,W.handleEvent(null,n,n,"afterFormLoadData"),M.setFormPageDataLoadState(!0),c(R)}).catch(R=>{n.canClick=!0,l(R)})})}(e,t,o)):new Promise((n,s)=>{n(!0)})}async function ye(e,t,o){try{await y.ElMessageBox.confirm("检测到您有未保存的数据,是否继续填写上次未保存的数据?","提示",{confirmButtonText:"是",cancelButtonText:"否",type:"warning"}),o.entity=j.getRealFillData(e.code,t,o.entity)}catch{}j.removeCacheFillDataById(e.code,t)}function Pe(e){return e&&(typeof e=="string"?e=e.split(","):typeof e=="number"&&(e=[e])),e}function fe(e){const t=e.props.setValueList;if(t){if(f.isArrayFn(t)&&t.length>0)return JSON.stringify(t);if(typeof t=="string"&&t!=="[]")return t}return null}function me(e){e.exportNoticeInfo&&(e.exportNoticeInfo.noticeInterval&&clearInterval(e.exportNoticeInfo.noticeInterval),e.exportNoticeInfo.noticeComponent=null,e.exportNoticeInfo.noticeInterval=null),e.exportNoticeInfo={},Ae(e.exportNoticeInfo,e.backendUrl,e.code)}function Ue(e,t,o){e.lastFileTask&&!e.noticeComponent?e.noticeComponent=y.ElNotification({title:g.getI18n().t("superPageRuntimeMessage.logTip"),duration:0,position:"top-right",type:"success",onClose(){e.lastFileTask.taskState==="Success"||e.lastFileTask.taskState==="Fail"||e.lastFileTask.taskState==="PartSuccess"?ue(t,o,e.lastFileTask.id,e):(e.noticeComponent=null,e.noticeInterval==null&&Ae(e,t,o))},message:_e.h(je,{isShow:!0,backendUrl:t,lastFileTask:e.lastFileTask,onClickMsg(a){a.serverPath?function(n,s,r,c,l,m){ue(l,m,r,c);const u=g.getToken(),p=f.getBaseUrl(l),d=p+"/common/super-form/downloads?jwt="+u+"&showName="+encodeURI(n)+"&serverPath="+s;window.open(d)}(a.fileName,a.serverPath,a.id,e,t,o):ue(t,o,a.id,e),e.noticeComponent.close(),e.noticeComponent=null}})}):(e.noticeComponent!=null&&(e.noticeComponent.close(),e.noticeComponent=null),e.noticeInterval&&(clearInterval(e.noticeInterval),e.noticeInterval=null))}function Ae(e,t,o){e.noticeInterval||(e.noticeInterval=setInterval(()=>{e.noticeComponent||function(a,n,s){Oe(n,s).then(r=>{a.lastFileTask=r,Ue(a,n,s)})}(e,t,o)},3e3))}function Oe(e,t){return se.getCurrentUserFileTasks(e,t)}function ue(e,t,o,a){se.setFileTaskRead(e,o).then(()=>{(function(n,s,r){Oe(s,r).then(c=>{n.lastFileTask=c,Ue(n,s,r)})})(a,e,t)})}exports.checkAndTipFileUploading=Q,exports.dealAfterOperate=V,exports.dealCompleteTaskParam=z,exports.deleteChartCondition=function(e){const t=window.$vueApp.config.globalProperties.baseAPI+"/component/chart-search-condition/"+e;return g.http.delete(t)},exports.doAddSigner=function(e,t){if(t){const o=e.pageContext,a=e.configureObj,n=o.systemCode,s=o.backendUrl;let r=f.getBaseUrl(s,o.isTest)+"/dsc/workflow-commons/add-signers";if(r=f.getRealRestApiPath(r,n,s,o.isTest),!r)return void y.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const c=le(e);c.completeTaskParam.transactors=t.loginNames.join(",").split(",");const l=g.http.post(r,c);l&&l.then(m=>{y.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulOperation")}),m.entity&&V(o,a,m,null,!1),W.doAfterClickEvent(o,a)})}},exports.doAddTransactor=function(e,t){if(t){const o=e.pageContext,a=e.configureObj,n=o.systemCode,s=o.backendUrl;let r=f.getBaseUrl(s,o.isTest)+"/dsc/workflow-commons/add-transactors";if(r=f.getRealRestApiPath(r,n,s,o.isTest),!r)return void y.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const c=le(e);c.completeTaskParam.transactors=t.loginNames.join(",").split(",");const l=g.http.post(r,c);l&&l.then(m=>{y.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulOperation")}),m.entity&&V(o,a,m,null,!1),W.doAfterClickEvent(o,a)})}},exports.doAssign=function(e,t){if(t){const o=e.pageContext,a=e.configureObj,n=o.backendUrl,s=f.getBaseUrl(n,o.isTest)+"/dsc/workflow-commons/assigns",r=t.id?t.id:t.ID?t.ID:null,c=_(e);c.assigneeId=r,H(e,c,s,"superPageRuntimeMessage.successfulAssign").then(l=>{W.doAfterClickEvent(o,a)})}},exports.doCreateCopyTask=async function(e,t){if(t){const o=await function(a){return new Promise((n,s)=>{var c,l,m,u;const r=a.configureObj;if(r){let p=(l=(c=r.props)==null?void 0:c.base)==null?void 0:l.isMustRemark;if(p===void 0||p===!0){p=!0;const d=a.pageContext,h=(u=(m=r.props)==null?void 0:m.base)==null?void 0:u.mustRemarkConditions;p=Y.caculateShowCondition(d,h)}p===!0?y.ElMessageBox.prompt(g.getI18n().t("superPageRuntimeMessage.pleaseInputRemark"),g.getI18n().t("superPageRuntimeMessage.remark"),{confirmButtonText:g.getI18n().t("superPageRuntimeMessage.sure"),cancelButtonText:g.getI18n().t("superPageRuntimeMessage.cancel"),inputType:"textarea",inputValue:null,closeOnClickModal:!1,inputValidator:d=>!(!d||!d.trim())||g.getI18n().t("superPageRuntimeMessage.pleaseInputRemark")}).then(({value:d})=>{n(d)}).catch(()=>{n(!1)}):n(!0)}else n(!0)})}(e);if(o){const a=e.pageContext,n=e.configureObj,s=a.systemCode,r=a.backendUrl;let c=f.getBaseUrl(r,a.isTest)+"/dsc/workflow-commons/copies";if(c=f.getRealRestApiPath(c,s,r,a.isTest),!c)return void y.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const l=le(e);l.completeTaskParam.transactors=t.loginNames.join(",").split(","),o!==!0&&(l.completeTaskParam.remark=o);const m=g.http.post(c,l);m&&m.then(u=>{var p;y.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulOperation")}),V(a,n,{entity:(p=a.entity)==null?void 0:p.data},null),W.doAfterClickEvent(a,n)})}}},exports.doFileTaskFunc=me,exports.doImportFinally=function(e,t){var N,P,k,S,x;const o=e.pageContext,a=e.configureObj,n=e.tableConfigure,s=a.props.base,r=a.props.base.tableUuid?a.props.base.tableUuid:e.tableUuid,c=se.getTableNameByTableUuid(o,r),l=new FormData;l.append("multipartFile",t),c&&l.append("tableName",c);const m=(P=(N=a.runtime)==null?void 0:N.props)==null?void 0:P.title;m&&l.append("currentOperation",m),l.append("isMobile",g.isMobileBrowser()),o.importBeanName&&l.append("importBeanName",o.importBeanName),o.beanName&&l.append("beanName",o.beanName);const u=(k=n.props.importSetting)==null?void 0:k.listViewImportDuplicate;u&&l.append("importDuplicateRule",u);const p=o.judgeHeavyList;p&&l.append("judgeHeavyList",JSON.stringify(p));const d=fe(a);d&&l.append("autoSetValueData",d);const h=o.formNoRuleCode;h&&l.append("formNoRuleCode",h);const T=e.listCode;T&&l.append("listCode",T),((S=s==null?void 0:s.conversionCodes)==null?void 0:S.length)>0&&l.append("dataConversionRule",s.conversionCodes.join(","));let i=!1;i=s.isAsync!==void 0&&s.isAsync!==null&&s.isAsync,l.append("isAsync",i+""),l.append("pageCode",o.code);const C=f.isWorkflowPage(o);C!=null&&l.append("isWorkflowEntity",C+"");const b=J.getPermissionCodes(a,o);b&&l.append("functionCode",b);const w=$(o);l.append("additionalParamMapStr",JSON.stringify(w));const I=s.isPermission===void 0||s.isPermission==="true"||s.isPermission;l.append("isPermission",I+"");const M=o.systemCode;M&&l.append("systemCode",M);const U=(x=a.props.base)==null?void 0:x.logSetting;U&&l.append("logSettingText",U.join(""));const v=o.backendUrl;let R=f.getBaseUrl(v,o.isTest)+"/dsc/commons/import-data";R=f.getRealRestApiPath(R,M,v,o.isTest),g.http.post(R,l).then(E=>{if(i)y.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.asyncImport")}),me(o);else{let A=!1;E?(A=!1,y.ElMessage({dangerouslyUseHTMLString:!0,showClose:!0,type:"warning",message:E})):(y.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulImport")}),A=!0),V(o,a,E,null,!0),o.result=A,W.doAfterClickEvent(o,a)}}).catch(E=>{})},exports.doRemoveSigners=function(e,t){if(t){const o=e.pageContext,a=e.configureObj,n=o.systemCode,s=o.backendUrl;let r=f.getBaseUrl(s,o.isTest)+"/dsc/workflow-commons/remove-signers";if(r=f.getRealRestApiPath(r,n,s,o.isTest),!r)return void y.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const c=t.map(u=>u.id?u.id:u.ID?u.ID:null),l=_(e);l.ids=c;const m=g.http.post(r,l);m&&m.then(u=>{V(o,a,u,"superPageRuntimeMessage.successfulOperation",!1),W.doAfterClickEvent(o,a)})}},exports.doRemoveTransactors=function(e,t){if(t){const o=e.pageContext,a=e.configureObj,n=o.systemCode,s=o.backendUrl;let r=f.getBaseUrl(s,o.isTest)+"/dsc/workflow-commons/remove-transactors";if(r=f.getRealRestApiPath(r,n,s,o.isTest),!r)return void y.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const c=t.map(u=>u.taskId),l=_(e);l.ids=c;const m=g.http.post(r,l);m&&m.then(u=>{V(o,a,u,"superPageRuntimeMessage.successfulOperation",!1),W.doAfterClickEvent(o,a)})}},exports.doReturnTaskTo=function(e,t){const o=e.pageContext,a=e.configureObj,n=o.backendUrl,s=f.getBaseUrl(n,o.isTest)+"/dsc/workflow-commons/returnTaskTo",r=_(e);t.nodeName&&(r.returnToNodeName=t.nodeName),t.nodeId&&(r.returnToNodeId=t.nodeId),H(e,r,s,"superPageRuntimeMessage.successfulReturnTaskTo").then(c=>{W.doAfterClickEvent(o,a)})},exports.exportFormReport=function(e,t,o,a){var I,M,U,v,R,N,P,k,S,x,E,A,B;e.clickUuid=t.uuid,e.canClick=!1;const n=o.templateUuid,s=o.templateName,r=e.systemCode,c=(I=t.props.base)==null?void 0:I.logSetting,l=f.isWorkflowPage(e),m=e.beanName,u=t.props.base,p=t.tableName?t.tableName:e.tableName,d=e.backendUrl,h=De.functions.getFormViewData(e),T=u.isPermission===void 0||u.isPermission==="true"||u.isPermission,i={entity:h,fileName:n,showName:s,beanName:m,isWorkflowForm:l,functionCode:J.getPermissionCodes(t,e),tableName:p,isPermission:T+"",systemCode:r,listCodesMap:e.listCodesMap,pageCode:e.code,pageVersion:e.version,listCodesInitSearchForm:e.listCodesInitSearchForm};if(e.tableUuids&&e.tableUuids.length>0){const O={};e.tableUuids.forEach(q=>{const L=G.getComponentRef(e,q);if(L){const ee=L.getConfigure().code,K=L.getSuperGridRef().columns;K&&K.length>0&&(O[ee]=K)}}),i.subTableColumns=O}c&&(i.logSettingText=c.join(""));const C=(U=(M=t.runtime)==null?void 0:M.props)==null?void 0:U.title;C&&(i.currentOperation=C),i.isMobile=g.isMobileBrowser();const b=$(e);let w;i.additionalParamMap=b,i.isShowWatermark=((R=(v=t.props)==null?void 0:v.watermark)==null?void 0:R.isShowWatermark)===void 0?"true":((P=(N=t.props)==null?void 0:N.watermark)==null?void 0:P.isShowWatermark)+"",i.watermark=(S=(k=t.props)==null?void 0:k.watermark)!=null&&S.content&&((E=(x=t.props)==null?void 0:x.watermark)==null?void 0:E.content.length)>0?(B=(A=t.props)==null?void 0:A.watermark)==null?void 0:B.content.join("-~"):"",w=a?function(O,q,L,ee){return new Promise((K,ie)=>{const re=f.getBaseUrl(q,ee)+"/dsc/commons/export-pdf";pe();const te=ne.post(re,L,{headers:{"content-type":"application/json"},responseType:"blob"});window.$message.info("正在导出中..."),te.then(oe=>{const ae=new Blob([oe.data]),F=document.createElement("a");F.download=O.substring(0,O.lastIndexOf("."))+".pdf",F.style.display="none",F.target="_blank",F.href=URL.createObjectURL(ae),document.body.appendChild(F),F.click(),URL.revokeObjectURL(F.href),document.body.removeChild(F),K(!0)}).catch(oe=>{ie(oe)})})}(s,d,i,e.isTest):function(O,q,L,ee){return new Promise((K,ie)=>{const re=f.getBaseUrl(q,ee)+"/dsc/commons/export-reports";pe(),ne.post(re,L,{responseType:"blob"}).then(te=>{const oe=new Blob([te.data]);let ae="报告.xlsx";O&&(ae=O);const F=document.createElement("a");F.download=ae,F.style.display="none",F.target="_blank",F.href=URL.createObjectURL(oe),document.body.appendChild(F),F.click(),URL.revokeObjectURL(F.href),document.body.removeChild(F),K(!0)}).catch(te=>{ie(te)})})}(s,d,i,e.isTest),w&&w.then(()=>{W.doAfterClickEvent(e,t)}).catch(O=>{window.$message.error("导出失败..."),W.doAfterClickEvent(e,t)})},exports.extractWorkflowFunc=Ee,exports.getAdditionalParamMap=$,exports.getFormData=Ne,exports.getRemoveSigner=function(e){const t=e.pageContext,o=t.systemCode,a=t.backendUrl;let n=f.getBaseUrl(a,t.isTest)+"/dsc/workflow-commons/get-remove-signers";const s=_(e);if(n=f.getRealRestApiPath(n,o,a,t.isTest),n)return g.http.post(n,s);y.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")})},exports.getRemoveTransactor=function(e){const t=e.pageContext,o=t.systemCode,a=t.backendUrl;let n=f.getBaseUrl(a,t.isTest)+"/dsc/workflow-commons/get-remove-transactors";const s=_(e);if(n=f.getRealRestApiPath(n,o,a,t.isTest),n)return g.http.post(n,s);y.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")})},exports.getSaveFormRequest=ve,exports.getSaveFormRequestWithRow=Ie,exports.getTaskInformitions=function(e){const t=e.pageContext,o=t.systemCode,a=t.backendUrl,n=t.completeTaskParam;let s=f.getBaseUrl(a,t.isTest)+"/dsc/workflow-commons/returnable-task/"+n.taskId;if(s=f.getRealRestApiPath(s,o,a,t.isTest),!s)return void y.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const r=t.code,c=$(t),l={beanName:t.beanName,additionalParamMap:c,tableName:t.tableName,functionCode:r+".xxx",pageCode:t.code};return g.http.post(s,l)},exports.isVisibleWorkflowButton=function(e,t,o,a,n,s){var c,l,m,u,p,d,h,T;let r=!1;if(a&&a.archival)return r;if(t&&o&&(t==="workflowSave"?r=function(i){return!!((i.processState===void 0||i.processState===null||i.processState==="UNSUBMIT"&&i.active==="WAIT_TRANSACT"&&i.theTransactor===!0)&&(i.processState===void 0||i.showButtonSave===!0)||i.processState&&i.processState==="SUBMIT"&&i.theTransactor===!0&&i.processingMode!=="TYPE_READ"&&i.showButtonSave&&(i.active==="WAIT_TRANSACT"||i.active==="WAIT_DESIGNATE_TRANSACTOR"||i.active==="WAIT_CHOICE_TACHE"||i.active==="DRAW_WAIT"))}(o):t==="workflowStart"?r=function(i,C){return!!(i.processState===void 0||i.processState===null||C&&!C.workflow_id&&!C.WORKFLOW_ID)}(o,s):t==="submitProcess"?r=function(i){return(i.processState===void 0||i.processState===null||i.processState==="UNSUBMIT"&&i.active==="WAIT_TRANSACT"&&i.theTransactor===!0)&&(i.processState===void 0||i.showButtonSave===!0)}(o):t==="submitTask"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&i.theTransactor===!0&&i.active==="WAIT_TRANSACT"&&i.processingMode==="EDIT")}(o):t==="drawTask"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&i.active&&(i.active==="DRAW_WAIT"||i.active==="DEPT_DRAW_WAIT")&&i.showButtonDraw)}(o):t==="abandonReceive"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&(i.drawTask&&i.active==="WAIT_TRANSACT"||i.canAbandonDeptTask&&i.active==="WAIT_TRANSACT")&&i.showButtonAbandon)}(o):t==="approve"||t==="refuse"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&i.active==="WAIT_TRANSACT"&&(i.processingMode==="APPROVE"||i.processingMode==="COUNTERSIGN"))}(o):t==="readed"?r=function(i){return i.active==="WAIT_TRANSACT"&&i.processingMode==="TYPE_READ"}(o):t==="assign"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&i.processingMode!=="TYPE_READ"&&(i.active==="WAIT_TRANSACT"||i.active==="DRAW_WAIT"))}(o):t==="copyTask"?r=function(i,C){let b=!1;return i.processState&&i.processState==="SUBMIT"&&i.active==="WAIT_TRANSACT"&&i.processingMode!=="TYPE_READ"&&i.showButtonCopy&&(b=!0),C&&(C.props.base.state=b?"":"hidden"),!0}(o,n):t==="addSigner"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&i.active==="WAIT_TRANSACT"&&i.processingMode==="COUNTERSIGN"&&i.showButtonAddCounter)}(o):t==="removeSigner"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&i.active==="WAIT_TRANSACT"&&i.processingMode==="COUNTERSIGN"&&i.showButtonDelCounter)}(o):t==="retrieveTask"?r=function(i){return!!(i.processState&&i.processState!=="END"&&i.processState==="SUBMIT"&&i.showButtonGetBack===!0&&function(C){return!(C.active!=="COMPLETED"||C.processingMode==="TYPE_READ"||!C.showButtonGetBack)}(i))}(o):t==="agreement"||t==="oppose"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&i.active==="WAIT_TRANSACT"&&i.processingMode==="VOTE")}(o):t==="kiken"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&i.active==="WAIT_TRANSACT"&&i.processingMode==="VOTE"&&i.showButtonKiken)}(o):t==="extractWorkflow"?r=function(i,C,b){var M;const w=g.getCurrentUser(),I=w?w.loginName:null;if(i!=null&&i.processState){if(((M=C==null?void 0:C.firstNodeInfo)==null?void 0:M.nodeId)===(b==null?void 0:b.CURRENT_ACTIVITY_ID))return!1;if((i==null?void 0:i.processState)!=="END"&&(i==null?void 0:i.processState)!=="EXTRACT"&&(i==null?void 0:i.processState)!=="MANUAL_END"&&b&&(b.creator===I||b.CREATOR===I))return!0}return!1}(o,a,s):t==="cancelExtractWorkflow"?r=function(i,C,b){const w=g.getCurrentUser(),I=w?w.loginName:null;return!!((i==null?void 0:i.processState)==="EXTRACT"&&b&&(b.creator===I||b.CREATOR===I))}(o,0,s):t==="approveExtractWorkflow"||t==="refuseExtractWorkflow"?r=Le(o):t==="addTransactor"||t==="removeTransactor"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&(i.active==="WAIT_TRANSACT"||i.active==="DRAW_WAIT")&&i.processingMode!=="COUNTERSIGN")}(o):function(i,C){return i.processState&&i.processState==="SUBMIT"&&i.processingMode!=="TYPE_READ"&&!function(b){const w=b;let I=!0;return w&&(I=w.taskComplete),I}(C)}(o,a)&&(r=t!=="returnToPreviousTask"||function(i){return!!i.rebuttable}(o))),(n==null?void 0:n.check)&&["submitTask","approve","refuse","agreement","oppose","kiken","extractWorkflow","cancelExtractWorkflow","approveExtractWorkflow","refuseExtractWorkflow","returnToPreviousTask","returnTaskTo"].indexOf(t)!==-1&&r){if(e.workflowOpinion||(e.workflowOpinion={showOpinionBox:!1}),(l=(c=n.props)==null?void 0:c.base)==null?void 0:l.showOpinionBox){e.workflowOpinion.showOpinionBox=!0;const C=(u=(m=n.props)==null?void 0:m.base)==null?void 0:u.showOpinionBoxConditions;C&&C.length>0&&(e.workflowOpinion.showOpinionBox=Y.caculateShowCondition(e,C))}let i=!1;if((d=(p=n.props)==null?void 0:p.base)!=null&&d.isMustOpinion){if(i=!0,i===!0){const C=(T=(h=n.props)==null?void 0:h.base)==null?void 0:T.mustOpinionConditions;C&&C.length>0&&(i=Y.caculateShowCondition(e,C))}e.workflowOpinion.isRequired=i,i&&(e.workflowOpinion.showOpinionBox=!0)}}return e.workflowOpinion,r},exports.judgeDataNumber=function(e,t){const o=e.props.base;if(o.conditionsForExecution&&o.conditionsForExecution!==""){if(o.conditionsForExecution==="one"){if(!t||t.length!==1)return y.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo",{message:g.getI18n().t("superPageRuntimeMessage.onlyOneRecordCanBeselected")})}),!1}else if(o.conditionsForExecution==="more"&&(!t||t.length<=0))return y.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo",{message:g.getI18n().t("superPageRuntimeMessage.selectAtLeastOneRecord")})}),!1}return!0},exports.listChartConditions=function(e){const t=e.code,o=window.$vueApp.config.globalProperties.baseAPI+"/component/chart-search-condition/list/"+t;return g.http.get(o)},exports.refreshFormOrListPage=function(e,t,o,a){var r;t&&!t.props.base&&(t.props.base={});let n=a;n||(n=o?"refresh":(r=t.props.base)==null?void 0:r.successOperation);const s=Me(e,t);if(s&&s==="list"&&!n&&(n="refresh"),n==="refresh"){if(s&&s==="list"){const c=W.getTableUuid(e,t);c?G.getComponentRef(e,c).refresh():console.error("tableUuid is empty")}else if(s&&s==="form"){const c=e.entity.data;de(e,c.ID?c.ID:c.id)}}},exports.refreshPage=de,exports.saveChartConditionBase=function(e,t){const o=e.entity?e.entity:{},a={data:o.data,page:o.page},n={pageCode:e.code,queryCondition:JSON.stringify(a),name:t},s=window.$vueApp.config.globalProperties.baseAPI+"/component/chart-search-condition";return g.http.post(s,n)},exports.standardEvents=Fe,exports.updateValuesWhenCloseDialog=function({parentPageContext:e,parentEventParams:t,parentConfigureObj:o,sourceModel:a,sourceTableName:n,valueMappings:s}){var c;s||(s=o.runtime&&o.runtime.linkPage&&o.runtime.linkPage.valueMappings?o.runtime.linkPage.valueMappings:null)||(s=(c=o.props.linkPage)==null?void 0:c.valueMappings);const r=e.tableName;(function(l,m,u){if(l&&l!==null&&m){let p=l;Array.isArray(l)&&l.length>0&&(p=l[0]),m.forEach(d=>{const h=d.source;if(!h)return;const T=h.split("."),i=Y.getVariableValue(p,T),C=d.target,b=J.getModelFields(null,C);Y.setVariableValue(u.entity,b,i)})}})(a,s,e),W.handleEvent(null,e,o,"setValue",{sourceModel:a,sourceTableName:n,entity:e.entity.data,targetTableName:r,eventParams:t})};
@@ -0,0 +1,107 @@
1
+ import { PageContext } from '../interfaces/page-design-types';
2
+
3
+ export declare const standardEvents: {
4
+ save: (params: any) => Promise<unknown>;
5
+ saveList: (params: any) => Promise<unknown>;
6
+ exportForm: (params: any) => void;
7
+ exportPDF: (params: any) => void;
8
+ submit: (params: any) => Promise<unknown>;
9
+ submitList: (params: any) => Promise<unknown>;
10
+ agree: (params: any) => Promise<unknown>;
11
+ agreeList: (params: any) => Promise<unknown>;
12
+ disagree: (params: any) => Promise<unknown>;
13
+ disagreeList: (params: any) => Promise<unknown>;
14
+ back: (params: any) => void;
15
+ delete: (params: any) => Promise<unknown>;
16
+ downloadTemplate: (params: any) => void;
17
+ import: (params: any) => void;
18
+ export: (params: any) => Promise<unknown>;
19
+ search: (params: any) => void;
20
+ showSearch: (params: any) => void;
21
+ workflowSave: (params: any) => Promise<unknown>;
22
+ workflowStart: (params: any) => Promise<unknown>;
23
+ submitProcess: (params: any) => Promise<unknown>;
24
+ submitTask: (params: any) => Promise<unknown>;
25
+ approve: (params: any) => Promise<unknown>;
26
+ refuse: (params: any) => Promise<unknown>;
27
+ readed: (params: any) => Promise<unknown>;
28
+ agreement: (params: any) => Promise<unknown>;
29
+ oppose: (params: any) => Promise<unknown>;
30
+ kiken: (params: any) => Promise<unknown>;
31
+ assign: (params: any) => void;
32
+ copyTask: (params: any) => void;
33
+ addSigner: (params: any) => void;
34
+ drawTask: (params: any) => Promise<unknown>;
35
+ abandonReceive: (params: any) => Promise<unknown>;
36
+ returnToPreviousTask: (params: any) => Promise<unknown>;
37
+ endInstance: (params: any) => Promise<unknown>;
38
+ returnTaskTo: (params: any) => void;
39
+ removeSigner: (params: any) => void;
40
+ retrieveTask: (params: any) => Promise<unknown>;
41
+ extractWorkflow: (params: any) => Promise<unknown>;
42
+ extractWorkflowEvent: (params: any) => void;
43
+ cancelExtractWorkflow: (params: any) => Promise<unknown>;
44
+ approveExtractWorkflow: (params: any) => Promise<unknown>;
45
+ refuseExtractWorkflow: (params: any) => Promise<unknown>;
46
+ viewDetail: (params: any) => void;
47
+ lineEditCreate: (params: any) => void;
48
+ printLabel: (params: any) => void;
49
+ queryCharts: (params: any) => void;
50
+ resetCharts: (params: any) => void;
51
+ exportCharts: (params: any) => void;
52
+ saveQueryCharts: (params: any) => void;
53
+ addTransactor: (params: any) => void;
54
+ removeTransactor: (params: any) => void;
55
+ };
56
+ export declare function exportFormReport(pageContext: any, configureObj: any, templateFile: any, isPdf: any): void;
57
+ export declare function checkAndTipFileUploading(pageContext: any): boolean;
58
+ export declare function getSaveFormRequestWithRow(pageContext: PageContext, configureObj: any, url: string, isUnControlVersion: boolean, mainDefaultValueColumns: any, dynamicColumnInfo: any, row: any, otherParams: any, isTable?: any): any;
59
+ export declare function getSaveFormRequest(pageContext: PageContext, configureObj: any, url: any, isUnControlVersion: any, mainDefaultValueColumns: any, dynamicColumnInfo: any): any;
60
+ /**
61
+ * 按钮执行后页面处理方式:刷新、关闭弹框等等
62
+ * @param pageContext
63
+ * @param configureObj
64
+ * @param data
65
+ * @param successTip
66
+ * @param isListButton
67
+ */
68
+ export declare function dealAfterOperate(pageContext: any, configureObj: any, data: any, successTip: any, isListButton?: boolean): void;
69
+ export declare function updateValuesWhenCloseDialog({ parentPageContext, parentEventParams, parentConfigureObj, sourceModel, sourceTableName, valueMappings }: {
70
+ parentPageContext: any;
71
+ parentConfigureObj: any;
72
+ parentEventParams: any;
73
+ sourceModel: any;
74
+ sourceTableName: any;
75
+ valueMappings?: any;
76
+ }): void;
77
+ export declare function refreshFormOrListPage(pageContext: any, configureObj: any, isRefreshWhenClosePopup: any, mySuccessOperation: any): void;
78
+ export declare function doImportFinally(params: any, fileObj: any): void;
79
+ export declare function judgeDataNumber(buttonConfigureObj: any, ids: any): boolean;
80
+ export declare function dealCompleteTaskParam(commonEntity: any, isInit: any, pageContext: any, params?: any, operationResult?: any): boolean;
81
+ export declare function doAssign(params: any, selectNodeInfo: any): void;
82
+ export declare function getAdditionalParamMap(pageContext: any): any;
83
+ export declare function doAddSigner(params: any, selectNodeInfo: any): void;
84
+ export declare function doAddTransactor(params: any, selectNodeInfo: any): void;
85
+ export declare function doCreateCopyTask(params: any, selectNodeInfo: any): Promise<void>;
86
+ export declare function getTaskInformitions(params: any): any;
87
+ export declare function doReturnTaskTo(params: any, selectTaskNode: any): void;
88
+ export declare function getRemoveSigner(params: any): any;
89
+ export declare function doRemoveSigners(params: any, selectRemoveTasks: any): void;
90
+ export declare function getRemoveTransactor(params: any): any;
91
+ export declare function doRemoveTransactors(params: any, selectRemoveTasks: any): void;
92
+ export declare function extractWorkflowFunc(params: any): Promise<unknown>;
93
+ export declare function isVisibleWorkflowButton(pageContext: any, standardEventName: any, buttonInfo: any, completeTaskParam: any, btnConfigure: any, data: any): boolean;
94
+ /**
95
+ * 刷新页面
96
+ * @param pageContext
97
+ */
98
+ export declare function refreshPage(pageContext: PageContext, id?: any): void;
99
+ /**
100
+ * 获得表单数据
101
+ * @param pageContext
102
+ */
103
+ export declare function getFormData(pageContext: PageContext, id?: any, isNeedId?: boolean): Promise<unknown>;
104
+ export declare function saveChartConditionBase(pageContext: any, conditionName: string): any;
105
+ export declare function listChartConditions(pageContext: any): any;
106
+ export declare function deleteChartCondition(conditionId: any): any;
107
+ export declare function doFileTaskFunc(pageContext: any): void;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const oe=require("async-validator"),I=require("element-plus"),R=require("../global-refs.cjs"),m=require("agilebuilder-ui"),H=require("./standard-event.cjs"),M=require("../common-util.cjs"),T=require("../anchor-util.cjs"),he=["downloadTemplate","back","exportForm","exportPDF","lineEditCreate","workflowSave"];function v(e,t=new WeakMap){if(typeof structuredClone=="function")try{return structuredClone(e)}catch{}if(e===null||typeof e!="object")return e;const n=e;if(t.has(n))return t.get(n);if(Array.isArray(e)){const o=[];return t.set(n,o),e.forEach((i,s)=>{o[s]=v(i,t)}),o}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e.source,e.flags);if(e instanceof Map){const o=new Map;return t.set(n,o),e.forEach((i,s)=>{o.set(v(s,t),v(i,t))}),o}if(e instanceof Set){const o=new Set;return t.set(n,o),e.forEach(i=>{o.add(v(i,t))}),o}const r={};return t.set(n,r),Object.keys(e).forEach(o=>{r[o]=v(e[o],t)}),r}function K(e,t,n){const r={};t||(t={});let o=0;const i=e.split(".");return i.forEach(s=>{let l;if(o===i.length-1)l=function(u,a,d){let g;for(let c=0;c<a.length&&(g=c===0?u[a[c]]:g.fields[a[c]],!(c!==a.length-1&&a[c+1]===d));c++);return g}(r,i,s),l.fields[s]=n;else{let u;o===0?l=t:(u=function(a,d,g){let c;for(let f=0;f<d.length;f++){const b=d[f];if(c=f===0?a[b]:c.fields[d[f]],b===g)break}return c}(r,i,i[o-1]),l=u.fields),l[s]||(l[s]={type:"object",required:!0,fields:{}}),o===0?r[s]=l[s]:u.fields[s]=l[s]}o++}),r}function se(e,t,n,r,o,i){return U(e,t,n,r,!0,o,i)}function re(e){if(e)return Object.keys(e).forEach(t=>{if(t.indexOf(".")>=0){let n=[];n=t.split("."),e[n[0]]?e[n[0]].fields[n[1]]=e[t][0]:(e[n[0]]=new Object,e[n[0]].fields=new Object,e[n[0]].fields[n[1]]=e[t][0],e[n[0]].type="object"),delete e[t]}}),e}function U(e,t,n,r,o,i,s){var d;let l=re(t);if(t&&t!==null||!n||(l={}),!l||Object.keys(l).length===0)return e.validateErrorField="",!0;const u=((d=s.props)==null?void 0:d.highlightAllRequiredField)||!1;let a;return new oe(l).validate(e,{first:!u},(g,c)=>{if(u){if(a=g||!0,a===!0&&o===!0&&l){const f=/[A-Z]+/,b=Object.keys(l);if(b.some(h=>f.test(h)&&e[h.toLowerCase()]!==void 0)){const h=JSON.parse(JSON.stringify(e));b.forEach(w=>{f.test(w)&&e[w.toLowerCase()]!==void 0&&(h[w.toUpperCase()]=e[w.toLowerCase()],delete h[w.toLowerCase()])}),a=U(h,t,n,r,!1,i,s)}}a!==!0&&I.ElMessage({showClose:!0,message:m.getI18n().t("superPageRuntimeMessage.pleaseInputRequiredInfo"),type:"warning"})}else{let f;if(g){a=g[0].message,f=g[0].field,I.ElMessage({message:a,showClose:!0,type:"warning",duration:3e3});const b=R.getComponentRefByCode(s,f);if(b&&b.addRequiredClass){b.addRequiredClass();try{T.scrollIntoComponentWithCode(s,f)}catch(h){console.error("滚动失败",h)}}}else a=!0;if(f&&o===!0&&/[A-Z]+/.test(f)&&e[f.toLowerCase()]!==void 0){const b=JSON.parse(JSON.stringify(e));b[f.toUpperCase()]=e[f.toLowerCase()],delete b[f.toLowerCase()],a=U(b,t,n,r,!1,i,s)}}}),a}function W(e,t){if(t.listCode){const n=R.getComponentRefByCode(e,t.listCode);n!=null&&n.addRequiredClass&&n.addRequiredClass(t.field,t.rowIndex,t.pageNum)}else if(t.field){const n=R.getComponentRefByCode(e,t.field);n!=null&&n.addRequiredClass&&n.addRequiredClass()}}function ie(e,t){t.forEach(n=>W(e,n))}function le(e,t){try{T.scrollIntoComponentWithCode(e,t.listCode);const n=R.getComponentRefByCode(e,t.listCode);n!=null&&n.scrollToCell&&n.scrollToCell({fieldName:t.field,rowIndex:t.rowIndex,pageNum:t.pageNum})}catch(n){console.error("滚动到验证失败的子表字段失败,可能是表格组件版本较低没有scrollToCell方法",n)}}function ae(e,t){try{T.scrollIntoComponentWithCode(e,t)}catch(n){console.error("滚动失败",n)}}function ue(e,t){let n=null,r=1/0;return t.forEach(o=>{const i=o.listCode||o.field;if(!i)return;const s=R.getComponentRefByCode(e,i),l=(s==null?void 0:s.$el)||s;if(l!=null&&l.getBoundingClientRect){const u=l.getBoundingClientRect();u.top<r&&(r=u.top,n=o)}}),n}function fe(e,t){t&&(t.listCode?le(e,t):t.field&&ae(e,t.field))}function S(e){return new Promise((t,n)=>{const r=[],o=e.customValidatorUuids;o&&o.forEach(i=>{const s=R.getComponentRef(e,i);s&&s.validator&&r.push(s.validator())}),r&&r.length>0?Promise.all(r).then(i=>{i.includes(!1)?t(!1):t(!0)}):t(!0)})}function Q(e,t,n){return new Promise((r,o)=>{var u;const i=JSON.parse(JSON.stringify(e)),s=v(n),l=t.hiddenNotValidatorCodes;if(s&&l&&l.size>0&&l.forEach(a=>{delete s[a]}),s&&Object.keys(s).length!==0){const a=se(i,s,null,null,!0,t);if((u=t.props)!=null&&u.highlightAllRequiredField&&a&&Array.isArray(a)&&a.length>0&&(ie(t,a),fe(t,ue(t,a)),r(!1)),a===!0)if(X(t)===!0){const d=ee(t);d&&m.isPromise(d)?d.then(g=>{g?S(t).then(c=>{r(c)}):r(!1)}):S(t).then(g=>{r(g)})}else o(new Error(m.getI18n().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);else o(new Error(m.getI18n().t("superPageRuntimeMessage.formDataVerificationFailed")).message)}else if(X(t)===!0){const a=ee(t);a&&m.isPromise(a)?a.then(d=>{d?S(t).then(g=>{r(g)}):r(!1)}):S(t).then(d=>{r(d)})}else o(new Error(m.getI18n().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message)})}function F(e,t,n){if(!t)return n;n||(n={});const r=M.isWorkflowPage(e),o=Object.keys(t),i=t;return o.forEach(s=>{if(s==="__subRules"){const l=i.__subRules;Object.keys(l).forEach(u=>{n.subRules||(n.subRules={}),n.subRules[u]?Object.assign(n.subRules[u],l[u]):n.subRules[u]=l[u]})}else de(i[s]),r?(n.rules[s]=i[s],n[s]&&(n[s]=i[s])):n[s]=i[s]}),re(n)}function X(e){var n;if(!e||M.isWorkflowPage(e))return!0;const t=e.tableUuids;if(!t)return!0;for(let r=0;r<t.length;r++){const o=t[r],i=e.hiddenNotValidatorCodes;if(i&&i.size>0&&i.has(o))continue;const s=R.getComponentRef(e,o);if(s){if(s.getConfigure()){const l=s.getConfigure();if((n=l==null?void 0:l.verification)!=null&&n.notEmpty){const u=s.getTableData();if(!u||!Array.isArray(u)||u.length===0){try{T.scrollIntoComponentWithUuid(e,o)}catch{}return I.ElMessage({showClose:!0,message:m.getI18n().t("superPageRuntimeMessage.xxxNotEmpty",{label:l.title?l.title:l.code}),type:"warning"}),!1}}}if(s.validatorSunTableListData()===!1){try{T.scrollIntoComponentWithUuid(e,o)}catch{}return!1}}}return!0}function Y(e,t){e.forEach(n=>{n.message;const r=n.label,o=m.getI18n().t(r);n.required&&(n.message=m.getI18n().t("superPageRuntimeMessage.required",{label:o})),n.myType&&(n.message=m.getI18n().t("superPageRuntimeMessage.formatMismatch",{label:o})),n.patternType&&(n.message=m.getI18n().t("superPageRuntimeMessage.formatMismatch",{label:o})),n.max!==void 0&&n.max!==null&&(n.message=m.getI18n().t("superPageRuntimeMessage.overMaxLength",{label:o,value:n.max})),n.min!==void 0&&n.min!==null&&(n.message=m.getI18n().t("superPageRuntimeMessage.limitMinLength",{label:o,value:n.min}))})}function ee(e){const t=[];return e.customRuleEvents&&e.customRuleEvents.length>0&&e.customRuleEvents.forEach(n=>{n.events.forEach(r=>{const o=e.customEvents[r];t.push(o.apply(o,[{prop:n.prop,pageContext:e}]))})}),t&&t.length>0?new Promise((n,r)=>{const o=[],i=[];t.forEach(s=>{m.isPromise(s)?o.push(s):i.push(s)}),i.includes(!1)&&n(!1),o.length>0?Promise.all(o).then(s=>{s.includes(!1)?n(!1):n(!0)}).catch(s=>{console.error(s),n(!1)}):n(!0)}):null}function te(e,t){const n=R.getAllComponentRefs(e);if(n)for(const r in n){const o=n[r];ce(e,o&&o.value,t)}}function ce(e,t,n){var r,o,i;if(t){const s=t.getConfigure();if(n.show!==void 0&&(n.show?t.show():t.hide()),n.required!==void 0&&((r=s==null?void 0:s.runtime)!=null&&r.props)&&(s.runtime.props.required=n.required),n.readonly!==void 0&&((o=s==null?void 0:s.runtime)!=null&&o.props)&&(n.readonly?s.runtime.props.state="readonly":s.runtime.props.state="enabled"),n.disabled!==void 0&&s&&((i=s==null?void 0:s.runtime)!=null&&i.props&&(n.disabled?s.runtime.props.state="disabled":s.runtime.props.state="enabled"),s.name==="table")){t.changeOperationAddState(!1);const l=t?t.getTableUuid():null,u=e.code,a=e.version,d=M.getListCode(u,a,l),g=[{name:"_all_fields",disabled:!0}];t.dynamicControlTableEdit(e,g,d)}}}function de(e){if(e!=null&&e.pattern&&typeof e.pattern=="object"&&Object.keys(e.pattern).length===0&&delete e.pattern,!e)return;if(!e.type)return void function(n){var o;const r=(o=oe.validators)==null?void 0:o.string;typeof r=="function"&&(n.validator=function(i,s,l,u,a){if(s==null||typeof s=="string")return r(i,s,l,u,a);if(Array.isArray(s)&&s.length===0)return!i.required;const d=i.type;i.type=void 0;const g=r(i,s,l,u,a);return i.type=d,g})}(e);const t=ye[e.type];t&&(e.validator=t.validator)}const ye={boolean:{validator:function(e,t,n){return q(e,t)===!0&&(typeof t=="number"&&(t===1||t===0)||typeof t=="boolean"&&(t===!0||t===!1))}},date:{validator:function(e,t,n){if(q(e,t)!==!0)return!1;const r=new Date(t);return!isNaN(r.getTime())}},number:{validator:function(e,t,n){return q(e,t)===!0&&(typeof t!="string"||t.trim()!=="")&&(typeof t=="number"||!isNaN(Number(t)))}},float:{validator:function(e,t,n){return q(e,t)===!0&&function(r){return typeof r=="number"?!isNaN(r):typeof r=="string"&&r.trim()!==""?!isNaN(Number(r)):!1}(t)}},integer:{validator:function(e,t,n){return q(e,t)===!0&&(typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""&&/^-?\d+$/.test(t.trim()))}}},q=(e,t)=>t!=null&&t!==""||!e.required;function ne(e,t){return e&&he.includes(t.eventName)}exports.disabledAllFields=function(e){te(e,{disabled:!0})},exports.dynamicControlTableEdit=function(e,t,n){var u;let r,o;if(n?(r=R.getComponentRefByCode(e,n),o=r?r.getTableUuid():null):(o=e.tableUuids&&e.tableUuids.length>0?e.tableUuids[0]:null,r=o?R.getComponentRef(e,o):null),!r)return;const i=e.code,s=e.version,l=M.getListCode(i,s,o);if(e.workflowRules||(e.workflowRules={rules:{},subRules:{}}),e.workflowRules.subRules||(e.workflowRules.subRules={}),e.workflowRules.subRules[n]||(e.workflowRules.subRules[n]={}),((u=e.workflowRules)==null?void 0:u.subRules)&&e.workflowRules.subRules[n]){const a=e.workflowRules.subRules[n];t.forEach(d=>{a[d.name]=d})}r.dynamicControlTableEdit(e,t,l)},exports.getWorkflowRules=function(e){const t=e.entity.data,n={...e.entity.page,...t},r=H.getAdditionalParamMap(e),o=e.entity.context,i=e.entity.task;e.formPropTiltleMap&&Object.keys(e.formPropTiltleMap).length>0&&e.completeTaskParam.fieldPermissions&&e.completeTaskParam.fieldPermissions.length>0&&e.completeTaskParam.fieldPermissions.forEach(u=>{u.name&&e.formPropTiltleMap[u.name]&&(u.label=e.formPropTiltleMap[u.name])});let s=window.$vueApp.config.globalProperties.$getValidator(e.completeTaskParam.fieldPermissions,n,!0,r,i,o);const l=e.customRules;return s=F(e,l,s),s&&(s.rules||(s.rules={}),s.subRules||(s.subRules={})),s},exports.i18nValidatePropRulesMessage=Y,exports.i18nValidateRulesMessage=function(e){if(!e||Object.keys(e).length===0)return;const t={},n=Object.keys(e);for(let r=0;r<n.length;r++){const o=n[r],i=e[o];Y(i),o.indexOf(".")>0?K(o,t,i):i&&i.length>0&&(t[o]=[...i])}return t},exports.isNotNeedValidateRequired=ne,exports.packageCustomRules=F,exports.packageCustomValidator=de,exports.setObjectPropRule=K,exports.updateFormItemEditState=function(e,t){if(!t)return;const n={};if(t.forEach(o=>{const{name:i,rules:s}=o;s?n[i]=s:o.required===!1&&(n[i]=[])}),M.isWorkflowPage(e)){let o=e.workflowRules?e.workflowRules:{rules:{},subRules:{}};o=F(e,n,o),e.workflowRules=o}else{let o=e.rules?e.rules:{};o=F(e,n,o),e.rules=o}const r=t.filter(o=>o.name==="_all_fields");r&&r.length>0&&te(e,r[0]),t.forEach(o=>{if(o.name!=="_all_fields"){const i=R.getComponentRefByCode(e,o.name);ce(e,i,o)}})},exports.validateDataModelFunc=function(e,t,n,r){if(n&&ne(n.isStandard,n.event))return new Promise((u,a)=>{u(!0)});const o=e.entity.data,i={...e.entity.page,...o},s=e.rules,l=t.props.base?t.props.base.isEnableRequired:null;return l!=null&&(r=l),r==null&&(r=!1),function(u,a,d,g){return u?M.isWorkflowPage(g)?function(c,f,b){return new Promise((h,w)=>{var B;const O=H.getAdditionalParamMap(f),N=f.entity.context,ge=f.entity.task,pe=!0,me=f.subTablePageInfo,be=((B=f.props)==null?void 0:B.highlightAllRequiredField)||!1;Q(c,f,b).then(A=>{if(A){let x=A;const _=f.workflowRules;let V=null,p=null;if(_){if(!function(C,E){var k,J,$,z;if(!C.actionPermissions)return!0;const y=Object.keys(C.actionPermissions);for(let L=0;L<y.length;L++){const P=y[L],j=C.actionPermissions[P];if(j&&j.notEmpty){if((k=C.hiddenNotValidatorCodes)!=null&&k.has(P))continue;let D=!1;if(E[P]?Array.isArray(E[P])&&E[P].length===0&&(D=!0):D=!0,D){const Z=R.getComponentRefByCode(C,P);if(!Z)return!0;const G=Z.getConfigure();return(J=j.notEmptyCondition)!=null&&J.parentCondition&&m.parseSubTablePermissionCondition(j.notEmptyCondition.parentCondition.replaceAll("${field[","${parent["),C.dataTypeMaps,E,{},($=C.entity)==null?void 0:$.request,(z=C.entity)==null?void 0:z.task,C.contextParam)===!1?!0:(I.ElMessage({showClose:!0,message:m.getI18n().t("superPageRuntimeMessage.xxxNotEmpty",{label:G.title?G.title:P}),type:"warning"}),!1)}}}return!0}(f,c))return void h(!1);V=function(C,E){const y=v(C);return E&&E.size>0&&E.forEach(k=>{delete y[k],y.subRules&&delete y.subRules[k],y.rules&&delete y.rules[k]}),y.subRules&&(Object.keys(y.subRules).length>0?y.totalSubRules||(y.totalSubRules={}):delete y.subRules),y}(_,f.hiddenNotValidatorCodes),p=window.$vueApp.config.globalProperties.$formValidator(c,V,pe,O,ge,N,me,!0,{returnAllErrors:be}),x=p&&Array.isArray(p)?p.length===1&&p[0].message?p[0].message:p.length===0||m.getI18n().t("superPageRuntimeMessage.pleaseInputRequiredInfo"):!p||p.msg}else x=!0;x!==!0?(console.error("流程表单验证失败",V,c),I.ElMessage({showClose:!0,message:x+"",type:"warning"}),p&&Array.isArray(p)&&p.length>0?(ie(f,p),fe(f,ue(f,p))):p.listCode?(W(f,p),le(f,p)):(W(f,p),ae(f,p.field)),h(!1)):(Object.keys(c).indexOf("validateErrorField")>=0&&delete c.validateErrorField,h(c))}else w(new Error(m.getI18n().t("superPageRuntimeMessage.formDataVerificationFailed")).message)}).catch(A=>{w(A)})})}(a,g,d):function(c,f,b){return new Promise((h,w)=>{Q(c,f,b).then(O=>{if(O){const N=JSON.parse(JSON.stringify(c));Object.keys(N).indexOf("validateErrorField")>=0&&delete N.validateErrorField,h(N)}else h(!1)}).catch(O=>{w(O)})})}(a,g,d):new Promise((c,f)=>{c(!0)})}(r,i,s,e)},exports.validator=se;
@@ -0,0 +1,31 @@
1
+ import { PageContext } from '../interfaces/page-design-types';
2
+
3
+ export declare function setObjectPropRule(prop: any, rules: any, leafRule: any): {};
4
+ export declare function validator(entity: any, rules: any, columns: any, rowIndex: any, isSql: any, pageContext: any): any;
5
+ export declare function validateDataModelFunc(pageContext: any, configureObj: any, clickEventFunObj: any, isEnableRequired: any): Promise<unknown>;
6
+ /**
7
+ * 封装自定义校验规则
8
+ * @param orgCustomRules 自定义规则
9
+ * @param orgRules 原来的表单规则
10
+ * @returns 添加了自定义规则后的规则
11
+ */
12
+ export declare function packageCustomRules(pageContext: any, orgCustomRules: any, orgRules: any): any;
13
+ export declare function i18nValidateRulesMessage(rules: any): {};
14
+ export declare function i18nValidatePropRulesMessage(propRules: any, isResetMessage: boolean): void;
15
+ export declare function getWorkflowRules(pageContext: any): any;
16
+ export declare function updateFormItemEditState(pageContext: PageContext, customRules: any[]): void;
17
+ export declare function disabledAllFields(pageContext: PageContext): void;
18
+ export declare function dynamicControlTableEdit(pageContext: PageContext, customRules: any[], tableCode?: any): void;
19
+ /**
20
+ * 布尔型和日期校验需要自定义,为了兼容oracle和mysql数据库,
21
+ * 数字类型的校验,防止select、radio、checkbox传字符串类型的数字
22
+ * @param fieldRule
23
+ */
24
+ export declare function packageCustomValidator(fieldRule: any): void;
25
+ /**
26
+ * 是否需要必填验证。特殊的标准事件不需要必填验证。
27
+ * @param isStandardEvent
28
+ * @param clickEvent
29
+ * @returns 返回true表示不需要执行必填验证
30
+ */
31
+ export declare function isNotNeedValidateRequired(isStandardEvent: boolean, clickEvent: any): boolean;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),exports.getDateShortCuts=function(n,u,s){if(!n)return;const a=[];if(n.includes("today")&&!["week","month","year"].includes(u)){const e={text:"今天",value:()=>new Date};s.endsWith("range")&&(e.value=()=>[new Date,new Date]),a.push(e)}if(n.includes("yesterday")&&!["week","month","year"].includes(u)){const e=new Date;e.setTime(e.getTime()-864e5);const t={text:"昨天",value:()=>e};s.endsWith("range")&&(t.value=()=>[e,new Date]),a.push(t)}if(n.includes("oneWeek")&&!["month","year"].includes(u)){const e=new Date;e.setTime(e.getTime()-6048e5);const t={text:"一周前",value:()=>e};s.endsWith("range")&&(t.text="一周",t.value=()=>[e,new Date]),a.push(t)}if(n.includes("oneMonth")&&!["year"].includes(u)){const e=new Date;e.getMonth()>0?e.setMonth(e.getMonth()-1):(e.setMonth(12),e.setFullYear(e.getFullYear()-1));const t={text:"一月前",value:()=>e};s.endsWith("range")&&(t.text="一月",t.value=()=>[e,new Date]),a.push(t)}if(n.includes("oneYear")){const e=new Date;e.setFullYear(e.getFullYear()-1);const t={text:"一年前",value:()=>e};s.endsWith("range")&&(t.text="一年",t.value=()=>[e,new Date]),a.push(t)}return a};
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 快捷选择生成方式
3
+ * @param dateScopeDetails
4
+ * @param dateType
5
+ * @param rangeType
6
+ */
7
+ export declare function getDateShortCuts(dateScopeDetails: any[], dateType: string, rangeType: string): any;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const agilebuilderUi=require("agilebuilder-ui"),pageHelperUtil=require("../page-helper-util.cjs");function formatScanRuleSets(a){const e={};return a.forEach(s=>{s.type==="group"?s.outs.forEach(c=>{e[c.ruleCode]||(e[c.ruleCode]={outs:[],adaptations:[]}),e[c.ruleCode].outs.push(c)}):e[s.code]={outs:s.outs,adaptations:[]}}),packageScanRuleSets(e)}function packageScanRuleSets(a){return new Promise((e,s)=>{Object.keys(a).length>0?agilebuilderUi.http.post(window.$vueApp.config.globalProperties.baseAPI+"/dc/setting-barcode-analysis/by-codes",Object.keys(a)).then(c=>{c.forEach(t=>{const u=JSON.parse(t.barcodeAnalysisOuts),n=new Set,l={};a[t.code].outs.forEach(r=>{n.add(r.returnedValue),l[r.returnedValue]=r.pageVariable});const o=[];u.forEach(r=>{n.has(r.code)&&(r.pageVariable=l[r.code],o.push(r))}),a[t.code].outs=o,a[t.code].adaptations=JSON.parse(t.barcodeAnalysisAdaptations),e(a)})}):e(null)})}function analysisScanValue(scanValue,scanRuleSets){if(!scanValue)return null;const scanSets=Object.values(scanRuleSets);for(let i=0;i<scanSets.length;i++){const scanSet=scanSets[i],adaptations=scanSet.adaptations;let validStr="";for(let a=0;a<adaptations.length;a++){const e=adaptations[a],s=_getScanIndexs(scanValue,e.startIndex,e.endIndex),c=s[0],t=s[1];let u=scanValue.substring(c,t),n=e.value,l=e.operate;if(l=="times"&&(n=u.split(n??"").length-1,u=e.times,l="="),(isNaN(u)||isNaN(n))&&(u="'"+u+"'",n="'"+n+"'"),e.leftBracket&&(validStr+=e.leftBracket),l=="<>"?l="!=":l=="="&&(l="=="),l=="include"||l=="notinclude"?(validStr+=u+".indexOf("+n+")",validStr+=l=="include"?">-1":"<0"):validStr+=u+l+n,e.rightBracket&&(validStr+=e.rightBracket),e.joinStr&&a+1<adaptations.length){const o=e.joinStr=="and"?"&&":"||";validStr+=o}}let res=!1;if(validStr)try{res=eval("("+validStr+")")}catch(a){}else res=!0;if(res)return executeAnalysisForScan(scanValue,scanSet)}return null}function executeAnalysisForScan(a,e){if(!e||!a)return;const s=e.outs,c={};return s.forEach(t=>{const u=t.fieldName;if(t.fixedValue!=null)c[u]=t.fixedValue;else{let n=a;if(t.splitChar&&t.splitNum){const l=(t.splitChar,t.splitChar),o=a.split(l),r=t.splitNum<1?1:t.splitNum;n=r<=o.length?o[r-1]:""}if(t.splitChar2&&t.splitNum2){const l=(t.splitChar2,t.splitChar2),o=n.split(l),r=t.splitNum2<1?1:t.splitNum2;n=r<=o.length?o[r-1]:""}if(n.length>0){const l=_getScanIndexs(n,t.startIndex,t.endIndex),o=l[0],r=l[1];n=n.substring(o,r)}c[u]=n}}),{value:a,params:c,scanSet:e}}function _getScanIndexs(a,e,s){return e=(e=(e=e==null?0:e-1)<0?0:e)>a.length-1?a.length-1:e,(s=(s=(s=s??a.length)>a.length?a.length:s)<1?1:s)<e&&(s=e),[e,s]}function setScanAnalysisValue(a,e,s){e&&e.outs.forEach(c=>{const t=c.fieldName,u=s[t];pageHelperUtil.setValueForVariableName(a.entity,c.pageVariable,u)})}exports.analysisScanValue=analysisScanValue,exports.formatScanRuleSets=formatScanRuleSets,exports.setScanAnalysisValue=setScanAnalysisValue;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),require("vue"),window.globalRefs||(window.globalRefs={});const t=window.globalRefs;function i(e,n){return"pageRuntimeRef-"+e+"-"+(n||1)}function u(e,n){return i(e,n)+"-code"}exports.addComponentRef=function(e,n,r){if(!e)return;const o=i(e.code,e.version);return t[o]||(t[o]={}),t[o][n]=r,t[o]},exports.addComponentRefByCode=function(e,n,r){if(!e)return;const o=u(e.code,e.version);return t[o]||(t[o]={}),t[o][n]=r,t[o]},exports.getAllComponentRefs=function(e){if(!e)return;const n=u(e.code,e.version);return t[n]||(t[n]={}),t[n]},exports.getComponentRef=function(e,n){if(!e||!n)return;const r=i(e.code,e.version);t[r]||(t[r]={});const o=t[r][n];return o&&o.value},exports.getComponentRefByCode=function(e,n){if(!e)return;const r=u(e.code,e.version);t[r]||(t[r]={});const o=t[r][n];return o&&o.value},exports.initComponentRefState=function(e){if(!e)return;const n=i(e.code,e.version);t[n]={}},exports.removePageAllRef=function(e){if(!e)return;const n=i(e.code,e.version);t[n]={}};
@@ -0,0 +1,65 @@
1
+ import { PageContext } from './interfaces/page-design-types';
2
+
3
+ declare global {
4
+ interface Window {
5
+ globalRefs: any;
6
+ }
7
+ }
8
+ /**
9
+ * 添加组件引用对象
10
+ * @param pageContext 页面运行时对象
11
+ * @param componentIndex 对象ID
12
+ * @param refObj 引用对象
13
+ * @returns
14
+ */
15
+ export declare function addComponentRef(pageContext: PageContext, componentUuid: string, refObj: any): any;
16
+ /**
17
+ * 添加组件引用对象
18
+ * @param pageContext 页面运行时对象
19
+ * @param componentIndex 对象ID
20
+ * @param refObj 引用对象
21
+ * @returns
22
+ */
23
+ export declare function addComponentRefByCode(pageContext: PageContext, componentCode: string, refObj: any): any;
24
+ /**
25
+ * 获取组件引用对象
26
+ * @param pageDesign 页面设计对象
27
+ * @param componentIndex 对象ID
28
+ * @returns
29
+ */
30
+ export declare function getComponentRef(pageContext: PageContext, componentUuid: string): any;
31
+ /**
32
+ * 根据编码获取组件引用对象
33
+ * @param pageDesign 页面设计对象
34
+ * @param componentCode 对象code
35
+ * @returns
36
+ */
37
+ export declare function getComponentRefByCode(pageContext: PageContext, componentCode: string): any;
38
+ /**
39
+ * 移除组件引用对象
40
+ * @param pageDesign 页面设计对象
41
+ * @param componentIndex 对象ID
42
+ * @param refObj 引用对象
43
+ * @returns
44
+ */
45
+ export declare function removeComponentRef(pageContext: PageContext, componentUuid: string): any;
46
+ /**
47
+ * 移除页面所有引用
48
+ * @param pageDesign 页面设计对象
49
+ * @param componentIndex 对象ID
50
+ * @param refObj 引用对象
51
+ * @returns
52
+ */
53
+ export declare function removePageAllRef(pageContext: PageContext): void;
54
+ /**
55
+ * 初始化页面引用对象
56
+ * @param pageCode
57
+ * @param pageVersion
58
+ */
59
+ export declare function initComponentRefState(pageContext: PageContext): void;
60
+ /**
61
+ * 获取所有组件引用对象
62
+ * @param pageDesign 页面设计对象
63
+ * @returns
64
+ */
65
+ export declare function getAllComponentRefs(pageContext: PageContext): any;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./page-store.cjs"),o=require("agilebuilder-ui"),a=require("vue-i18n");let t=null,n=null;exports.$t=(e,...s)=>{n||(n=a.useI18n());const r=i.usePageContextStore().pageContext;if(t===null&&(t=!!o.i18nUtil.getEnableI18nState(r.systemCode)),!t)return e;const u=`${r.systemCode}.${e}`,l=n.t(u,s||[]);return l!==u?l:e};
@@ -0,0 +1 @@
1
+ export declare const $t: (key: string, ...args: any[]) => any;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var i=(e=>(e.PC="pc",e.IPAD="ipad",e.PHONE="phone",e))(i||{});exports.PageDimensions=i;