super-page-runtime 2.3.48-cdnTmp2 → 2.3.48-tmp1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (392) hide show
  1. package/dist/es/_virtual/_plugin-vue_export-helper.js +8 -0
  2. package/dist/es/components/runtime/utils/ai-chat-util.js +16 -0
  3. package/dist/es/components/runtime/utils/anchor-util.js +84 -0
  4. package/dist/es/components/runtime/utils/api/api-util.d.ts +1 -1
  5. package/dist/es/components/runtime/utils/api/api-util.js +7 -0
  6. package/dist/es/components/runtime/utils/api/page-expose-util.js +202 -0
  7. package/dist/es/components/runtime/utils/assemblys-config.js +20 -0
  8. package/dist/es/components/runtime/utils/barcode-util.js +12 -0
  9. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +168 -0
  10. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +38 -0
  11. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +82 -0
  12. package/dist/es/components/runtime/utils/charts/chart-radar-util.js +56 -0
  13. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +47 -0
  14. package/dist/es/components/runtime/utils/charts/chart-util.js +288 -0
  15. package/dist/es/components/runtime/utils/common-util.js +120 -0
  16. package/dist/es/components/runtime/utils/eventBus.js +8 -0
  17. package/dist/es/components/runtime/utils/events/data-backfill-util.js +39 -0
  18. package/dist/es/components/runtime/utils/events/event-util.js +447 -0
  19. package/dist/es/components/runtime/utils/events/print-label.js +100 -0
  20. package/dist/es/components/runtime/utils/events/standard-event.js +1226 -0
  21. package/dist/es/components/runtime/utils/events/validator-util.js +485 -0
  22. package/dist/es/components/runtime/utils/form/date-shortcuts.js +36 -0
  23. package/dist/es/components/runtime/utils/form/scan-util.js +93 -0
  24. package/dist/es/components/runtime/utils/global-refs.js +57 -0
  25. package/dist/es/components/runtime/utils/i18n-util.js +18 -0
  26. package/dist/es/components/runtime/utils/interfaces/page-design-types.js +4 -0
  27. package/dist/es/components/runtime/utils/page-helper-util.js +391 -0
  28. package/dist/es/components/runtime/utils/page-init-util.js +297 -0
  29. package/dist/es/components/runtime/utils/{page-permission-util.mjs → page-permission-util.js} +21 -20
  30. package/dist/es/components/runtime/utils/page-store.js +53 -0
  31. package/dist/es/components/runtime/utils/store-util.js +13 -0
  32. package/dist/es/components/runtime/utils/table-utils.js +89 -0
  33. package/dist/es/components/runtime/utils/tree-utils.js +73 -0
  34. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +4 -0
  35. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime2.vue.js +29 -0
  36. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +7 -0
  37. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime2.vue.js +21 -0
  38. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +4 -0
  39. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime2.vue.js +41 -0
  40. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +4 -0
  41. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime2.vue.js +6 -0
  42. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +4 -0
  43. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime2.vue.js +21 -0
  44. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +7 -0
  45. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime2.vue.js +53 -0
  46. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +14 -0
  47. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb2.vue.js +4 -0
  48. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +13 -0
  49. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group2.vue.js +4 -0
  50. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +60 -0
  51. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header2.vue.js +4 -0
  52. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +7 -0
  53. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search2.vue.js +64 -0
  54. package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +94 -0
  55. package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render2.vue.js +4 -0
  56. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +7 -0
  57. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime2.vue.js +35 -0
  58. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +7 -0
  59. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime2.vue.js +46 -0
  60. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +7 -0
  61. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime2.vue.js +35 -0
  62. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +7 -0
  63. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime2.vue.js +35 -0
  64. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +430 -0
  65. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +6 -0
  66. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item2.vue.js +4 -0
  67. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +10 -0
  68. package/dist/es/components/runtime/views/assemblys/chart/table/group-column2.vue.js +4 -0
  69. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +46 -0
  70. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column2.vue.js +4 -0
  71. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +17 -0
  72. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination2.vue.js +4 -0
  73. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +4 -0
  74. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime2.vue.js +268 -0
  75. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +20 -0
  76. package/dist/es/components/runtime/views/assemblys/common/event-call-component2.vue.js +4 -0
  77. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +36 -0
  78. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog2.vue.js +4 -0
  79. package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.js +35 -0
  80. package/dist/es/components/runtime/views/assemblys/common/file-task-notice2.vue.js +4 -0
  81. package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.js +32 -0
  82. package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message2.vue.js +4 -0
  83. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +17 -0
  84. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog2.vue.js +4 -0
  85. package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.js +23 -0
  86. package/dist/es/components/runtime/views/assemblys/common/remove-signer-table2.vue.js +4 -0
  87. package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.js +18 -0
  88. package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog2.vue.js +4 -0
  89. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +35 -0
  90. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog2.vue.js +4 -0
  91. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +19 -0
  92. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog2.vue.js +4 -0
  93. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +7 -0
  94. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime2.vue.js +35 -0
  95. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +4 -0
  96. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime2.vue.js +21 -0
  97. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +7 -0
  98. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime2.vue.js +27 -0
  99. package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.js +7 -0
  100. package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox2.vue.js +29 -0
  101. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +7 -0
  102. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix2.vue.js +81 -0
  103. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +4 -0
  104. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime2.vue.js +25 -0
  105. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +4 -0
  106. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime2.vue.js +25 -0
  107. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +4 -0
  108. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime2.vue.js +46 -0
  109. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +7 -0
  110. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime2.vue.js +96 -0
  111. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +7 -0
  112. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime2.vue.js +47 -0
  113. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +4 -0
  114. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime2.vue.js +69 -0
  115. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +383 -0
  116. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime2.vue.js +4 -0
  117. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +339 -0
  118. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime2.vue.js +4 -0
  119. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +4 -0
  120. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime2.vue.js +90 -0
  121. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +7 -0
  122. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime2.vue.js +135 -0
  123. package/dist/es/components/runtime/views/assemblys/error-render.vue.js +5 -0
  124. package/dist/es/components/runtime/views/assemblys/error-render2.vue.js +4 -0
  125. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +4 -0
  126. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime2.vue.js +66 -0
  127. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +38 -0
  128. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element2.vue.js +4 -0
  129. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +4 -0
  130. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime2.vue.js +69 -0
  131. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +4 -0
  132. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime2.vue.js +102 -0
  133. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +4 -0
  134. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime2.vue.js +55 -0
  135. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +4 -0
  136. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime2.vue.js +24 -0
  137. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +4 -0
  138. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime2.vue.js +115 -0
  139. package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue.js +4 -0
  140. package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime2.vue.js +91 -0
  141. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +4 -0
  142. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime2.vue.js +28 -0
  143. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +4 -0
  144. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime2.vue.js +81 -0
  145. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +7 -0
  146. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime2.vue.js +38 -0
  147. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +4 -0
  148. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime2.vue.js +43 -0
  149. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +7 -0
  150. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime2.vue.js +16 -0
  151. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +4 -0
  152. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime2.vue.js +84 -0
  153. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +8 -0
  154. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime2.vue.js +218 -0
  155. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +7 -0
  156. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime2.vue.js +156 -0
  157. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +4 -0
  158. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime2.vue.js +16 -0
  159. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +4 -0
  160. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime2.vue.js +36 -0
  161. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +4 -0
  162. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime2.vue.js +44 -0
  163. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +7 -0
  164. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime2.vue.js +28 -0
  165. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +83 -0
  166. package/dist/es/components/runtime/views/assemblys/home-chart-render2.vue.js +4 -0
  167. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +166 -0
  168. package/dist/es/components/runtime/views/assemblys/object-render2.vue.js +4 -0
  169. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +9 -0
  170. package/dist/es/components/runtime/views/assemblys/page-bottom2.vue.js +4 -0
  171. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +7 -0
  172. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box2.vue.js +56 -0
  173. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.js +7 -0
  174. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog2.vue.js +29 -0
  175. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +7 -0
  176. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime2.vue.js +45 -0
  177. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +4 -0
  178. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime2.vue.js +20 -0
  179. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +4 -0
  180. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime2.vue.js +23 -0
  181. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +7 -0
  182. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime2.vue.js +32 -0
  183. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +4 -0
  184. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime2.vue.js +27 -0
  185. package/dist/es/components/runtime/views/home-chart.vue.js +47 -0
  186. package/dist/es/components/runtime/views/home-chart2.vue.js +4 -0
  187. package/dist/es/components/runtime/views/super-page-dialog.vue.js +30 -0
  188. package/dist/es/components/runtime/views/super-page-dialog3.vue.js +5 -0
  189. package/dist/es/components/runtime/views/super-page.vue.js +7 -0
  190. package/dist/es/components/runtime/views/super-page2.vue.js +311 -0
  191. package/dist/es/index.js +32 -0
  192. package/dist/es/style.css +1052 -1
  193. package/package.json +11 -13
  194. package/dist/es/_virtual/_plugin-vue_export-helper.mjs +0 -8
  195. package/dist/es/components/runtime/utils/ai-chat-util.mjs +0 -16
  196. package/dist/es/components/runtime/utils/anchor-util.mjs +0 -83
  197. package/dist/es/components/runtime/utils/api/api-util.mjs +0 -12
  198. package/dist/es/components/runtime/utils/api/page-expose-util.mjs +0 -196
  199. package/dist/es/components/runtime/utils/assemblys-config.mjs +0 -19
  200. package/dist/es/components/runtime/utils/barcode-util.mjs +0 -12
  201. package/dist/es/components/runtime/utils/charts/chart-columnline-util.mjs +0 -169
  202. package/dist/es/components/runtime/utils/charts/chart-gauge-util.mjs +0 -38
  203. package/dist/es/components/runtime/utils/charts/chart-pie-util.mjs +0 -83
  204. package/dist/es/components/runtime/utils/charts/chart-radar-util.mjs +0 -56
  205. package/dist/es/components/runtime/utils/charts/chart-scatter-util.mjs +0 -47
  206. package/dist/es/components/runtime/utils/charts/chart-util.mjs +0 -285
  207. package/dist/es/components/runtime/utils/common-util.mjs +0 -116
  208. package/dist/es/components/runtime/utils/eventBus.mjs +0 -8
  209. package/dist/es/components/runtime/utils/events/data-backfill-util.mjs +0 -38
  210. package/dist/es/components/runtime/utils/events/event-util.mjs +0 -429
  211. package/dist/es/components/runtime/utils/events/print-label.mjs +0 -100
  212. package/dist/es/components/runtime/utils/events/standard-event.mjs +0 -1170
  213. package/dist/es/components/runtime/utils/events/validator-util.mjs +0 -462
  214. package/dist/es/components/runtime/utils/form/date-shortcuts.mjs +0 -36
  215. package/dist/es/components/runtime/utils/form/scan-util.mjs +0 -88
  216. package/dist/es/components/runtime/utils/global-refs.mjs +0 -57
  217. package/dist/es/components/runtime/utils/i18n-util.mjs +0 -14
  218. package/dist/es/components/runtime/utils/interfaces/page-design-types.mjs +0 -4
  219. package/dist/es/components/runtime/utils/page-helper-util.mjs +0 -381
  220. package/dist/es/components/runtime/utils/page-init-util.mjs +0 -281
  221. package/dist/es/components/runtime/utils/page-store.mjs +0 -53
  222. package/dist/es/components/runtime/utils/store-util.mjs +0 -13
  223. package/dist/es/components/runtime/utils/table-utils.mjs +0 -84
  224. package/dist/es/components/runtime/utils/tree-utils.mjs +0 -68
  225. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.mjs +0 -4
  226. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime2.vue.mjs +0 -29
  227. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.mjs +0 -7
  228. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime2.vue.mjs +0 -21
  229. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.mjs +0 -4
  230. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime2.vue.mjs +0 -41
  231. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.mjs +0 -4
  232. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime2.vue.mjs +0 -6
  233. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.mjs +0 -4
  234. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime2.vue.mjs +0 -21
  235. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.mjs +0 -7
  236. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime2.vue.mjs +0 -53
  237. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.mjs +0 -14
  238. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb2.vue.mjs +0 -4
  239. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.mjs +0 -13
  240. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group2.vue.mjs +0 -4
  241. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.mjs +0 -59
  242. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header2.vue.mjs +0 -4
  243. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.mjs +0 -7
  244. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search2.vue.mjs +0 -59
  245. package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.mjs +0 -93
  246. package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render2.vue.mjs +0 -4
  247. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.mjs +0 -7
  248. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime2.vue.mjs +0 -35
  249. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.mjs +0 -7
  250. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime2.vue.mjs +0 -46
  251. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.mjs +0 -7
  252. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime2.vue.mjs +0 -35
  253. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.mjs +0 -7
  254. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime2.vue.mjs +0 -35
  255. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.mjs +0 -425
  256. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.mjs +0 -6
  257. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item2.vue.mjs +0 -4
  258. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.mjs +0 -10
  259. package/dist/es/components/runtime/views/assemblys/chart/table/group-column2.vue.mjs +0 -4
  260. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.mjs +0 -42
  261. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column2.vue.mjs +0 -4
  262. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.mjs +0 -17
  263. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination2.vue.mjs +0 -4
  264. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.mjs +0 -4
  265. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime2.vue.mjs +0 -261
  266. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.mjs +0 -20
  267. package/dist/es/components/runtime/views/assemblys/common/event-call-component2.vue.mjs +0 -4
  268. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.mjs +0 -35
  269. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog2.vue.mjs +0 -4
  270. package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.mjs +0 -34
  271. package/dist/es/components/runtime/views/assemblys/common/file-task-notice2.vue.mjs +0 -4
  272. package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.mjs +0 -27
  273. package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message2.vue.mjs +0 -4
  274. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.mjs +0 -17
  275. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog2.vue.mjs +0 -4
  276. package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.mjs +0 -22
  277. package/dist/es/components/runtime/views/assemblys/common/remove-signer-table2.vue.mjs +0 -4
  278. package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.mjs +0 -18
  279. package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog2.vue.mjs +0 -4
  280. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.mjs +0 -35
  281. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog2.vue.mjs +0 -4
  282. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.mjs +0 -19
  283. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog2.vue.mjs +0 -4
  284. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.mjs +0 -7
  285. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime2.vue.mjs +0 -35
  286. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.mjs +0 -4
  287. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime2.vue.mjs +0 -21
  288. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.mjs +0 -7
  289. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime2.vue.mjs +0 -27
  290. package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.mjs +0 -7
  291. package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox2.vue.mjs +0 -29
  292. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.mjs +0 -7
  293. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix2.vue.mjs +0 -81
  294. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.mjs +0 -4
  295. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime2.vue.mjs +0 -25
  296. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.mjs +0 -4
  297. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime2.vue.mjs +0 -25
  298. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.mjs +0 -4
  299. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime2.vue.mjs +0 -43
  300. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.mjs +0 -7
  301. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime2.vue.mjs +0 -96
  302. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.mjs +0 -7
  303. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime2.vue.mjs +0 -47
  304. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.mjs +0 -4
  305. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime2.vue.mjs +0 -69
  306. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.mjs +0 -362
  307. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime2.vue.mjs +0 -4
  308. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.mjs +0 -329
  309. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime2.vue.mjs +0 -4
  310. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.mjs +0 -4
  311. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime2.vue.mjs +0 -90
  312. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.mjs +0 -7
  313. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime2.vue.mjs +0 -133
  314. package/dist/es/components/runtime/views/assemblys/error-render.vue.mjs +0 -5
  315. package/dist/es/components/runtime/views/assemblys/error-render2.vue.mjs +0 -4
  316. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.mjs +0 -4
  317. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime2.vue.mjs +0 -65
  318. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.mjs +0 -36
  319. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element2.vue.mjs +0 -4
  320. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.mjs +0 -4
  321. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime2.vue.mjs +0 -69
  322. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.mjs +0 -4
  323. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime2.vue.mjs +0 -102
  324. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.mjs +0 -4
  325. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime2.vue.mjs +0 -55
  326. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.mjs +0 -4
  327. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime2.vue.mjs +0 -24
  328. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.mjs +0 -4
  329. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime2.vue.mjs +0 -111
  330. package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue.mjs +0 -4
  331. package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime2.vue.mjs +0 -88
  332. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.mjs +0 -4
  333. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime2.vue.mjs +0 -28
  334. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.mjs +0 -4
  335. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime2.vue.mjs +0 -79
  336. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.mjs +0 -7
  337. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime2.vue.mjs +0 -37
  338. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.mjs +0 -4
  339. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime2.vue.mjs +0 -42
  340. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.mjs +0 -7
  341. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime2.vue.mjs +0 -16
  342. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.mjs +0 -4
  343. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime2.vue.mjs +0 -84
  344. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.mjs +0 -8
  345. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime2.vue.mjs +0 -215
  346. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.mjs +0 -7
  347. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime2.vue.mjs +0 -150
  348. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.mjs +0 -4
  349. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime2.vue.mjs +0 -16
  350. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.mjs +0 -4
  351. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime2.vue.mjs +0 -36
  352. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.mjs +0 -4
  353. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime2.vue.mjs +0 -43
  354. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.mjs +0 -7
  355. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime2.vue.mjs +0 -28
  356. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.mjs +0 -83
  357. package/dist/es/components/runtime/views/assemblys/home-chart-render2.vue.mjs +0 -4
  358. package/dist/es/components/runtime/views/assemblys/object-render.vue.mjs +0 -163
  359. package/dist/es/components/runtime/views/assemblys/object-render2.vue.mjs +0 -4
  360. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.mjs +0 -9
  361. package/dist/es/components/runtime/views/assemblys/page-bottom2.vue.mjs +0 -4
  362. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.mjs +0 -7
  363. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box2.vue.mjs +0 -56
  364. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.mjs +0 -7
  365. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog2.vue.mjs +0 -29
  366. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.mjs +0 -7
  367. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime2.vue.mjs +0 -45
  368. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.mjs +0 -4
  369. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime2.vue.mjs +0 -20
  370. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.mjs +0 -4
  371. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime2.vue.mjs +0 -23
  372. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.mjs +0 -7
  373. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime2.vue.mjs +0 -30
  374. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.mjs +0 -4
  375. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime2.vue.mjs +0 -27
  376. package/dist/es/components/runtime/views/home-chart.vue.mjs +0 -46
  377. package/dist/es/components/runtime/views/home-chart2.vue.mjs +0 -4
  378. package/dist/es/components/runtime/views/super-page-dialog.vue.mjs +0 -30
  379. package/dist/es/components/runtime/views/super-page-dialog3.vue.mjs +0 -5
  380. package/dist/es/components/runtime/views/super-page.vue.mjs +0 -7
  381. package/dist/es/components/runtime/views/super-page2.vue.mjs +0 -307
  382. package/dist/es/index.mjs +0 -32
  383. /package/dist/es/assets/chart-themes/{bar-theme.mjs → bar-theme.js} +0 -0
  384. /package/dist/es/assets/chart-themes/{gauge-theme.mjs → gauge-theme.js} +0 -0
  385. /package/dist/es/assets/chart-themes/{pie-theme.mjs → pie-theme.js} +0 -0
  386. /package/dist/es/assets/chart-themes/{radar-theme.mjs → radar-theme.js} +0 -0
  387. /package/dist/es/assets/chart-themes/{scatter-theme.mjs → scatter-theme.js} +0 -0
  388. /package/dist/es/assets/{file.png.mjs → file.png.js} +0 -0
  389. /package/dist/es/assets/{folder.png.mjs → folder.png.js} +0 -0
  390. /package/dist/es/components/runtime/utils/{store.mjs → store.js} +0 -0
  391. /package/dist/es/i18n/langs/{cn.mjs → cn.js} +0 -0
  392. /package/dist/es/i18n/langs/{en.mjs → en.js} +0 -0
@@ -0,0 +1,485 @@
1
+ import e from "async-validator";
2
+ import { ElMessage as t } from "element-plus";
3
+ import { getComponentRefByCode as r, getComponentRef as n, getAllComponentRefs as s } from "../global-refs.js";
4
+ import { getI18n as o } from "agilebuilder-ui/src/utils/util";
5
+ import { getAdditionalParamMap as i } from "./standard-event.js";
6
+ import { isPromise as l } from "agilebuilder-ui/src/utils/common-util";
7
+ import { parseSubTablePermissionCondition as a } from "agilebuilder-ui/src/utils/calculator/calculator-util";
8
+ import { isWorkflowPage as u, getListCode as f } from "../common-util.js";
9
+ import { scrollIntoComponentWithCode as c, scrollIntoComponentWithUuid as d } from "../anchor-util.js";
10
+ const m = ["downloadTemplate", "back", "exportForm", "exportPDF", "lineEditCreate", "workflowSave"];
11
+ function p(e2, t2 = /* @__PURE__ */ new WeakMap()) {
12
+ if ("function" == typeof structuredClone) try {
13
+ return structuredClone(e2);
14
+ } catch (e3) {
15
+ }
16
+ if (null === e2 || "object" != typeof e2) return e2;
17
+ const r2 = e2;
18
+ if (t2.has(r2)) return t2.get(r2);
19
+ if (Array.isArray(e2)) {
20
+ const n3 = [];
21
+ return t2.set(r2, n3), e2.forEach((e3, r3) => {
22
+ n3[r3] = p(e3, t2);
23
+ }), n3;
24
+ }
25
+ if (e2 instanceof Date) return new Date(e2.getTime());
26
+ if (e2 instanceof RegExp) return new RegExp(e2.source, e2.flags);
27
+ if (e2 instanceof Map) {
28
+ const n3 = /* @__PURE__ */ new Map();
29
+ return t2.set(r2, n3), e2.forEach((e3, r3) => {
30
+ n3.set(p(r3, t2), p(e3, t2));
31
+ }), n3;
32
+ }
33
+ if (e2 instanceof Set) {
34
+ const n3 = /* @__PURE__ */ new Set();
35
+ return t2.set(r2, n3), e2.forEach((e3) => {
36
+ n3.add(p(e3, t2));
37
+ }), n3;
38
+ }
39
+ const n2 = {};
40
+ return t2.set(r2, n2), Object.keys(e2).forEach((r3) => {
41
+ n2[r3] = p(e2[r3], t2);
42
+ }), n2;
43
+ }
44
+ function g(e2, t2, r2) {
45
+ const n2 = {};
46
+ t2 || (t2 = {});
47
+ let s2 = 0;
48
+ const o2 = e2.split(".");
49
+ return o2.forEach((e3) => {
50
+ let i2;
51
+ if (s2 === o2.length - 1) i2 = function(e4, t3, r3) {
52
+ let n3;
53
+ for (let s3 = 0; s3 < t3.length; s3++) if (n3 = 0 === s3 ? e4[t3[s3]] : n3.fields[t3[s3]], s3 !== t3.length - 1) {
54
+ if (t3[s3 + 1] === r3) break;
55
+ }
56
+ return n3;
57
+ }(n2, o2, e3), i2.fields[e3] = r2;
58
+ else {
59
+ let r3;
60
+ 0 === s2 ? i2 = t2 : (r3 = function(e4, t3, r4) {
61
+ let n3;
62
+ for (let s3 = 0; s3 < t3.length; s3++) {
63
+ const o3 = t3[s3];
64
+ if (n3 = 0 === s3 ? e4[o3] : n3.fields[t3[s3]], o3 === r4) break;
65
+ }
66
+ return n3;
67
+ }(n2, o2, o2[s2 - 1]), i2 = r3.fields), i2[e3] || (i2[e3] = { type: "object", required: true, fields: {} }), 0 === s2 ? n2[e3] = i2[e3] : r3.fields[e3] = i2[e3];
68
+ }
69
+ s2++;
70
+ }), n2;
71
+ }
72
+ function b(e2, t2, r2, n2, s2, o2) {
73
+ return y(e2, t2, r2, n2, true, s2, o2);
74
+ }
75
+ function h(e2) {
76
+ if (e2) return Object.keys(e2).forEach((t2) => {
77
+ if (t2.indexOf(".") >= 0) {
78
+ let r2 = [];
79
+ r2 = t2.split("."), e2[r2[0]] ? e2[r2[0]].fields[r2[1]] = e2[t2][0] : (e2[r2[0]] = new Object(), e2[r2[0]].fields = new Object(), e2[r2[0]].fields[r2[1]] = e2[t2][0], e2[r2[0]].type = "object"), delete e2[t2];
80
+ }
81
+ }), e2;
82
+ }
83
+ function y(n2, s2, i2, l2, a2, u2, f2) {
84
+ var _a;
85
+ let d2 = h(s2);
86
+ if (s2 && null !== s2 || !i2 || (d2 = {}), !d2 || 0 === Object.keys(d2).length) return n2.validateErrorField = "", true;
87
+ const m2 = ((_a = f2.props) == null ? void 0 : _a.highlightAllRequiredField) || false;
88
+ let p2;
89
+ return new e(d2).validate(n2, { first: !m2 }, (e2, g2) => {
90
+ if (m2) {
91
+ if (p2 = e2 || true, true === p2 && true === a2 && d2) {
92
+ const e3 = /[A-Z]+/, t2 = Object.keys(d2);
93
+ if (t2.some((t3) => e3.test(t3) && void 0 !== n2[t3.toLowerCase()])) {
94
+ const r2 = JSON.parse(JSON.stringify(n2));
95
+ t2.forEach((t3) => {
96
+ e3.test(t3) && void 0 !== n2[t3.toLowerCase()] && (r2[t3.toUpperCase()] = n2[t3.toLowerCase()], delete r2[t3.toLowerCase()]);
97
+ }), p2 = y(r2, s2, i2, l2, false, u2, f2);
98
+ }
99
+ }
100
+ true !== p2 && t({ showClose: true, message: o().t("superPageRuntimeMessage.pleaseInputRequiredInfo"), type: "warning" });
101
+ } else {
102
+ let o2;
103
+ if (e2) {
104
+ p2 = e2[0].message, o2 = e2[0].field, t({ message: p2, showClose: true, type: "warning", duration: 3e3 });
105
+ const n3 = r(f2, o2);
106
+ if (n3 && n3.addRequiredClass) {
107
+ n3.addRequiredClass();
108
+ try {
109
+ c(f2, o2);
110
+ } catch (e3) {
111
+ console.error("滚动失败", e3);
112
+ }
113
+ }
114
+ } else p2 = true;
115
+ if (o2 && true === a2) {
116
+ if (/[A-Z]+/.test(o2) && void 0 !== n2[o2.toLowerCase()]) {
117
+ const e3 = JSON.parse(JSON.stringify(n2));
118
+ e3[o2.toUpperCase()] = n2[o2.toLowerCase()], delete e3[o2.toLowerCase()], p2 = y(e3, s2, i2, l2, false, u2, f2);
119
+ }
120
+ }
121
+ }
122
+ }), p2;
123
+ }
124
+ function w(e2, n2, s2, l2) {
125
+ if (s2) {
126
+ if (J(s2.isStandard, s2.event)) return new Promise((e3, t2) => {
127
+ e3(true);
128
+ });
129
+ }
130
+ const f2 = e2.entity.data, c2 = { ...e2.entity.page, ...f2 }, d2 = e2.rules, m2 = n2.props.base ? n2.props.base.isEnableRequired : null;
131
+ return null != m2 && (l2 = m2), null == l2 && (l2 = false), function(e3, n3, s3, l3) {
132
+ if (e3) {
133
+ return u(l3) ? function(e4, n4, s4) {
134
+ return new Promise((l4, u2) => {
135
+ var _a;
136
+ const f3 = i(n4), c3 = n4.entity.context, d3 = n4.entity.task, m3 = true, g2 = n4.subTablePageInfo, b2 = ((_a = n4.props) == null ? void 0 : _a.highlightAllRequiredField) || false;
137
+ N(e4, n4, s4).then((s5) => {
138
+ if (s5) {
139
+ let i2 = s5;
140
+ const u3 = n4.workflowRules;
141
+ let h2 = null, y2 = null;
142
+ if (u3) {
143
+ if (!function(e5, n5) {
144
+ var _a2, _b, _c, _d;
145
+ if (!e5.actionPermissions) return true;
146
+ const s7 = Object.keys(e5.actionPermissions);
147
+ for (let i3 = 0; i3 < s7.length; i3++) {
148
+ const l5 = s7[i3], u4 = e5.actionPermissions[l5];
149
+ if (u4 && u4.notEmpty) {
150
+ if ((_a2 = e5.hiddenNotValidatorCodes) == null ? void 0 : _a2.has(l5)) continue;
151
+ let s8 = false;
152
+ if (n5[l5] ? Array.isArray(n5[l5]) && 0 === n5[l5].length && (s8 = true) : s8 = true, s8) {
153
+ const s9 = r(e5, l5);
154
+ if (!s9) return true;
155
+ const i4 = s9.getConfigure();
156
+ if ((_b = u4.notEmptyCondition) == null ? void 0 : _b.parentCondition) {
157
+ if (false === a(u4.notEmptyCondition.parentCondition.replaceAll("${field[", "${parent["), e5.dataTypeMaps, n5, {}, (_c = e5.entity) == null ? void 0 : _c.request, (_d = e5.entity) == null ? void 0 : _d.task, e5.contextParam)) return true;
158
+ }
159
+ return t({ showClose: true, message: o().t("superPageRuntimeMessage.xxxNotEmpty", { label: i4.title ? i4.title : l5 }), type: "warning" }), false;
160
+ }
161
+ }
162
+ }
163
+ return true;
164
+ }(n4, e4)) return void l4(false);
165
+ const s6 = true;
166
+ h2 = function(e5, t2) {
167
+ const r2 = p(e5);
168
+ t2 && t2.size > 0 && t2.forEach((e6) => {
169
+ delete r2[e6], r2.subRules && delete r2.subRules[e6], r2.rules && delete r2.rules[e6];
170
+ });
171
+ r2.subRules && (Object.keys(r2.subRules).length > 0 ? r2.totalSubRules || (r2.totalSubRules = {}) : delete r2.subRules);
172
+ return r2;
173
+ }(u3, n4.hiddenNotValidatorCodes), y2 = window.$vueApp.config.globalProperties.$formValidator(e4, h2, m3, f3, d3, c3, g2, s6, { returnAllErrors: b2 }), i2 = y2 && Array.isArray(y2) ? 1 === y2.length && y2[0].message ? y2[0].message : 0 === y2.length || o().t("superPageRuntimeMessage.pleaseInputRequiredInfo") : !y2 || y2.msg;
174
+ } else i2 = true;
175
+ true !== i2 ? (console.error("流程表单验证失败", h2, e4), t({ showClose: true, message: i2 + "", type: "warning" }), y2 && Array.isArray(y2) && y2.length > 0 ? (C(n4, y2), k(n4, P(n4, y2))) : y2.listCode ? (R(n4, y2), v(n4, y2)) : (R(n4, y2), E(n4, y2.field)), l4(false)) : (Object.keys(e4).indexOf("validateErrorField") >= 0 && delete e4.validateErrorField, l4(e4));
176
+ } else u2(new Error(o().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
177
+ }).catch((e5) => {
178
+ u2(e5);
179
+ });
180
+ });
181
+ }(n3, l3, s3) : function(e4, t2, r2) {
182
+ return new Promise((n4, s4) => {
183
+ N(e4, t2, r2).then((t3) => {
184
+ if (t3) {
185
+ const t4 = JSON.parse(JSON.stringify(e4));
186
+ Object.keys(t4).indexOf("validateErrorField") >= 0 && delete t4.validateErrorField, n4(t4);
187
+ } else n4(false);
188
+ }).catch((e5) => {
189
+ s4(e5);
190
+ });
191
+ });
192
+ }(n3, l3, s3);
193
+ }
194
+ return new Promise((e4, t2) => {
195
+ e4(true);
196
+ });
197
+ }(l2, c2, d2, e2);
198
+ }
199
+ function R(e2, t2) {
200
+ if (t2.listCode) {
201
+ const n2 = r(e2, t2.listCode);
202
+ (n2 == null ? void 0 : n2.addRequiredClass) && n2.addRequiredClass(t2.field, t2.rowIndex, t2.pageNum);
203
+ } else if (t2.field) {
204
+ const n2 = r(e2, t2.field);
205
+ (n2 == null ? void 0 : n2.addRequiredClass) && n2.addRequiredClass();
206
+ }
207
+ }
208
+ function C(e2, t2) {
209
+ t2.forEach((t3) => R(e2, t3));
210
+ }
211
+ function v(e2, t2) {
212
+ try {
213
+ c(e2, t2.listCode);
214
+ const n2 = r(e2, t2.listCode);
215
+ (n2 == null ? void 0 : n2.scrollToCell) && n2.scrollToCell({ fieldName: t2.field, rowIndex: t2.rowIndex, pageNum: t2.pageNum });
216
+ } catch (e3) {
217
+ console.error("滚动到验证失败的子表字段失败,可能是表格组件版本较低没有scrollToCell方法", e3);
218
+ }
219
+ }
220
+ function E(e2, t2) {
221
+ try {
222
+ c(e2, t2);
223
+ } catch (e3) {
224
+ console.error("滚动失败", e3);
225
+ }
226
+ }
227
+ function P(e2, t2) {
228
+ let n2 = null, s2 = 1 / 0;
229
+ return t2.forEach((t3) => {
230
+ const o2 = t3.listCode || t3.field;
231
+ if (!o2) return;
232
+ const i2 = r(e2, o2), l2 = (i2 == null ? void 0 : i2.$el) || i2;
233
+ if (l2 == null ? void 0 : l2.getBoundingClientRect) {
234
+ const e3 = l2.getBoundingClientRect();
235
+ e3.top < s2 && (s2 = e3.top, n2 = t3);
236
+ }
237
+ }), n2;
238
+ }
239
+ function k(e2, t2) {
240
+ t2 && (t2.listCode ? v(e2, t2) : t2.field && E(e2, t2.field));
241
+ }
242
+ function O(e2) {
243
+ return new Promise((t2, r2) => {
244
+ const s2 = [], o2 = e2.customValidatorUuids;
245
+ o2 && o2.forEach((t3) => {
246
+ const r3 = n(e2, t3);
247
+ r3 && r3.validator && s2.push(r3.validator());
248
+ }), s2 && s2.length > 0 ? Promise.all(s2).then((e3) => {
249
+ e3.includes(false) ? t2(false) : t2(true);
250
+ }) : t2(true);
251
+ });
252
+ }
253
+ function N(e2, t2, r2) {
254
+ return new Promise((n2, s2) => {
255
+ var _a;
256
+ const i2 = JSON.parse(JSON.stringify(e2)), a2 = p(r2), u2 = t2.hiddenNotValidatorCodes;
257
+ if (a2 && u2 && u2.size > 0 && u2.forEach((e3) => {
258
+ delete a2[e3];
259
+ }), a2 && 0 !== Object.keys(a2).length) {
260
+ const e3 = b(i2, a2, null, null, true, t2);
261
+ if (((_a = t2.props) == null ? void 0 : _a.highlightAllRequiredField) && e3 && Array.isArray(e3) && e3.length > 0 && (C(t2, e3), k(t2, P(t2, e3)), n2(false)), true === e3) {
262
+ if (true === x(t2)) {
263
+ const e4 = q(t2);
264
+ e4 && l(e4) ? e4.then((e5) => {
265
+ e5 ? O(t2).then((e6) => {
266
+ n2(e6);
267
+ }) : n2(false);
268
+ }) : O(t2).then((e5) => {
269
+ n2(e5);
270
+ });
271
+ } else s2(new Error(o().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);
272
+ } else s2(new Error(o().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
273
+ } else {
274
+ if (true === x(t2)) {
275
+ const e3 = q(t2);
276
+ e3 && l(e3) ? e3.then((e4) => {
277
+ e4 ? O(t2).then((e5) => {
278
+ n2(e5);
279
+ }) : n2(false);
280
+ }) : O(t2).then((e4) => {
281
+ n2(e4);
282
+ });
283
+ } else s2(new Error(o().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);
284
+ }
285
+ });
286
+ }
287
+ function j(e2, t2, r2) {
288
+ if (!t2) return r2;
289
+ r2 || (r2 = {});
290
+ const n2 = u(e2), s2 = Object.keys(t2), o2 = t2;
291
+ return s2.forEach((e3) => {
292
+ if ("__subRules" === e3) {
293
+ const e4 = o2.__subRules;
294
+ Object.keys(e4).forEach((t3) => {
295
+ r2.subRules || (r2.subRules = {}), r2.subRules[t3] ? Object.assign(r2.subRules[t3], e4[t3]) : r2.subRules[t3] = e4[t3];
296
+ });
297
+ } else _(o2[e3]), n2 ? (r2.rules[e3] = o2[e3], r2[e3] && (r2[e3] = o2[e3])) : r2[e3] = o2[e3];
298
+ }), h(r2);
299
+ }
300
+ function x(e2) {
301
+ var _a;
302
+ if (!e2) return true;
303
+ if (u(e2)) return true;
304
+ const r2 = e2.tableUuids;
305
+ if (!r2) return true;
306
+ for (let s2 = 0; s2 < r2.length; s2++) {
307
+ const i2 = r2[s2], l2 = e2.hiddenNotValidatorCodes;
308
+ if (l2 && l2.size > 0 && l2.has(i2)) continue;
309
+ const a2 = n(e2, i2);
310
+ if (a2) {
311
+ if (a2.getConfigure()) {
312
+ const r3 = a2.getConfigure();
313
+ if ((_a = r3 == null ? void 0 : r3.verification) == null ? void 0 : _a.notEmpty) {
314
+ const n2 = a2.getTableData();
315
+ if (!n2 || !Array.isArray(n2) || 0 === n2.length) {
316
+ try {
317
+ d(e2, i2);
318
+ } catch (e3) {
319
+ }
320
+ return t({ showClose: true, message: o().t("superPageRuntimeMessage.xxxNotEmpty", { label: r3.title ? r3.title : r3.code }), type: "warning" }), false;
321
+ }
322
+ }
323
+ }
324
+ if (false === a2.validatorSunTableListData()) {
325
+ try {
326
+ d(e2, i2);
327
+ } catch (e3) {
328
+ }
329
+ return false;
330
+ }
331
+ }
332
+ }
333
+ return true;
334
+ }
335
+ function T(e2) {
336
+ if (!e2 || 0 === Object.keys(e2).length) return;
337
+ const t2 = {}, r2 = Object.keys(e2);
338
+ for (let n2 = 0; n2 < r2.length; n2++) {
339
+ const s2 = r2[n2], o2 = e2[s2];
340
+ M(o2), s2.indexOf(".") > 0 ? g(s2, t2, o2) : o2 && o2.length > 0 && (t2[s2] = [...o2]);
341
+ }
342
+ return t2;
343
+ }
344
+ function M(e2, t2) {
345
+ e2.forEach((e3) => {
346
+ e3.message;
347
+ const t3 = e3.label, r2 = o().t(t3);
348
+ e3.required && (e3.message = o().t("superPageRuntimeMessage.required", { label: r2 })), e3.myType && (e3.message = o().t("superPageRuntimeMessage.formatMismatch", { label: r2 })), e3.patternType && (e3.message = o().t("superPageRuntimeMessage.formatMismatch", { label: r2 })), void 0 !== e3.max && null !== e3.max && (e3.message = o().t("superPageRuntimeMessage.overMaxLength", { label: r2, value: e3.max })), void 0 !== e3.min && null !== e3.min && (e3.message = o().t("superPageRuntimeMessage.limitMinLength", { label: r2, value: e3.min }));
349
+ });
350
+ }
351
+ function A(e2) {
352
+ const t2 = e2.entity.data, r2 = { ...e2.entity.page, ...t2 }, n2 = i(e2), s2 = e2.entity.context, o2 = e2.entity.task;
353
+ e2.formPropTiltleMap && Object.keys(e2.formPropTiltleMap).length > 0 && e2.completeTaskParam.fieldPermissions && e2.completeTaskParam.fieldPermissions.length > 0 && e2.completeTaskParam.fieldPermissions.forEach((t3) => {
354
+ t3.name && e2.formPropTiltleMap[t3.name] && (t3.label = e2.formPropTiltleMap[t3.name]);
355
+ });
356
+ let l2 = window.$vueApp.config.globalProperties.$getValidator(e2.completeTaskParam.fieldPermissions, r2, true, n2, o2, s2);
357
+ const a2 = e2.customRules;
358
+ return l2 = j(e2, a2, l2), l2 && (l2.rules || (l2.rules = {}), l2.subRules || (l2.subRules = {})), l2;
359
+ }
360
+ function q(e2) {
361
+ const t2 = [];
362
+ return e2.customRuleEvents && e2.customRuleEvents.length > 0 && e2.customRuleEvents.forEach((r2) => {
363
+ r2.events.forEach((n2) => {
364
+ const s2 = e2.customEvents[n2];
365
+ t2.push(s2.apply(s2, [{ prop: r2.prop, pageContext: e2 }]));
366
+ });
367
+ }), t2 && t2.length > 0 ? new Promise((e3, r2) => {
368
+ const n2 = [], s2 = [];
369
+ t2.forEach((e4) => {
370
+ l(e4) ? n2.push(e4) : s2.push(e4);
371
+ }), s2.includes(false) && e3(false), n2.length > 0 ? Promise.all(n2).then((t3) => {
372
+ t3.includes(false) ? e3(false) : e3(true);
373
+ }).catch((t3) => {
374
+ console.error(t3), e3(false);
375
+ }) : e3(true);
376
+ }) : null;
377
+ }
378
+ function S(e2, t2) {
379
+ if (!t2) return;
380
+ const n2 = {};
381
+ if (t2.forEach((e3) => {
382
+ const { name: t3, rules: r2 } = e3;
383
+ r2 ? n2[t3] = r2 : false === e3.required && (n2[t3] = []);
384
+ }), u(e2)) {
385
+ let t3 = e2.workflowRules ? e2.workflowRules : { rules: {}, subRules: {} };
386
+ t3 = j(e2, n2, t3), e2.workflowRules = t3;
387
+ } else {
388
+ let t3 = e2.rules ? e2.rules : {};
389
+ t3 = j(e2, n2, t3), e2.rules = t3;
390
+ }
391
+ const s2 = t2.filter((e3) => "_all_fields" === e3.name);
392
+ s2 && s2.length > 0 && L(e2, s2[0]), t2.forEach((t3) => {
393
+ if ("_all_fields" !== t3.name) {
394
+ const n3 = r(e2, t3.name);
395
+ D(e2, n3, t3);
396
+ }
397
+ });
398
+ }
399
+ function F(e2) {
400
+ L(e2, { disabled: true });
401
+ }
402
+ function L(e2, t2) {
403
+ const r2 = s(e2);
404
+ if (r2) for (const n2 in r2) {
405
+ const s2 = r2[n2];
406
+ D(e2, s2 ? s2.value : s2, t2);
407
+ }
408
+ }
409
+ function V(e2, t2, s2) {
410
+ var _a;
411
+ let o2, i2;
412
+ if (s2 ? (o2 = r(e2, s2), i2 = o2 ? o2.getTableUuid() : null) : (i2 = e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null, o2 = i2 ? n(e2, i2) : null), !o2) return;
413
+ const l2 = e2.code, a2 = e2.version, u2 = f(l2, a2, i2);
414
+ if (e2.workflowRules || (e2.workflowRules = { rules: {}, subRules: {} }), e2.workflowRules.subRules || (e2.workflowRules.subRules = {}), e2.workflowRules.subRules[s2] || (e2.workflowRules.subRules[s2] = {}), ((_a = e2.workflowRules) == null ? void 0 : _a.subRules) && e2.workflowRules.subRules[s2]) {
415
+ const r2 = e2.workflowRules.subRules[s2];
416
+ t2.forEach((e3) => {
417
+ r2[e3.name] = e3;
418
+ });
419
+ }
420
+ o2.dynamicControlTableEdit(e2, t2, u2);
421
+ }
422
+ function D(e2, t2, r2) {
423
+ var _a, _b, _c;
424
+ if (t2) {
425
+ const n2 = t2.getConfigure();
426
+ if (void 0 !== r2.show && (r2.show ? t2.show() : t2.hide()), void 0 !== r2.required && ((_a = n2 == null ? void 0 : n2.runtime) == null ? void 0 : _a.props) && (n2.runtime.props.required = r2.required), void 0 !== r2.readonly && ((_b = n2 == null ? void 0 : n2.runtime) == null ? void 0 : _b.props) && (r2.readonly ? n2.runtime.props.state = "readonly" : n2.runtime.props.state = "enabled"), void 0 !== r2.disabled && n2 && (((_c = n2 == null ? void 0 : n2.runtime) == null ? void 0 : _c.props) && (r2.disabled ? n2.runtime.props.state = "disabled" : n2.runtime.props.state = "enabled"), "table" === n2.name)) {
427
+ t2.changeOperationAddState(false);
428
+ const r3 = t2 ? t2.getTableUuid() : null, n3 = e2.code, s2 = e2.version, o2 = f(n3, s2, r3), i2 = [{ name: "_all_fields", disabled: true }];
429
+ t2.dynamicControlTableEdit(e2, i2, o2);
430
+ }
431
+ }
432
+ }
433
+ function _(t2) {
434
+ if ((t2 == null ? void 0 : t2.pattern) && "object" == typeof t2.pattern && 0 === Object.keys(t2.pattern).length && delete t2.pattern, !t2) return;
435
+ if (!t2.type) return void function(t3) {
436
+ var _a;
437
+ const r3 = (_a = e.validators) == null ? void 0 : _a.string;
438
+ if ("function" != typeof r3) return;
439
+ t3.validator = function(e2, t4, n2, s2, o2) {
440
+ if (null == t4 || "string" == typeof t4) return r3(e2, t4, n2, s2, o2);
441
+ if (Array.isArray(t4) && 0 === t4.length) return !e2.required;
442
+ const i2 = e2.type;
443
+ e2.type = void 0;
444
+ const l2 = r3(e2, t4, n2, s2, o2);
445
+ return e2.type = i2, l2;
446
+ };
447
+ }(t2);
448
+ const r2 = I[t2.type];
449
+ r2 && (t2.validator = r2.validator);
450
+ }
451
+ const I = { boolean: { validator: function(e2, t2, r2) {
452
+ return true === U(e2, t2) && ("number" == typeof t2 && (1 === t2 || 0 === t2) || "boolean" == typeof t2 && (true === t2 || false === t2));
453
+ } }, date: { validator: function(e2, t2, r2) {
454
+ if (true !== U(e2, t2)) return false;
455
+ const n2 = new Date(t2);
456
+ return !isNaN(n2.getTime());
457
+ } }, number: { validator: function(e2, t2, r2) {
458
+ return true === U(e2, t2) && (("string" != typeof t2 || "" !== t2.trim()) && ("number" == typeof t2 || !isNaN(Number(t2))));
459
+ } }, float: { validator: function(e2, t2, r2) {
460
+ return true === U(e2, t2) && function(e3) {
461
+ if ("number" == typeof e3) return !isNaN(e3);
462
+ if ("string" == typeof e3 && "" !== e3.trim()) return !isNaN(Number(e3));
463
+ return false;
464
+ }(t2);
465
+ } }, integer: { validator: function(e2, t2, r2) {
466
+ return true === U(e2, t2) && ("number" == typeof t2 ? Number.isInteger(t2) : "string" == typeof t2 && "" !== t2.trim() && /^-?\d+$/.test(t2.trim()));
467
+ } } };
468
+ const U = (e2, t2) => null != t2 && "" !== t2 || !e2.required;
469
+ function J(e2, t2) {
470
+ return e2 && m.includes(t2.eventName);
471
+ }
472
+ export {
473
+ F as disabledAllFields,
474
+ V as dynamicControlTableEdit,
475
+ A as getWorkflowRules,
476
+ M as i18nValidatePropRulesMessage,
477
+ T as i18nValidateRulesMessage,
478
+ J as isNotNeedValidateRequired,
479
+ j as packageCustomRules,
480
+ _ as packageCustomValidator,
481
+ g as setObjectPropRule,
482
+ S as updateFormItemEditState,
483
+ w as validateDataModelFunc,
484
+ b as validator
485
+ };
@@ -0,0 +1,36 @@
1
+ function e(e2, t, n) {
2
+ if (!e2) return;
3
+ const a = [];
4
+ if (e2.includes("today") && !["week", "month", "year"].includes(t)) {
5
+ const e3 = { text: "今天", value: () => /* @__PURE__ */ new Date() };
6
+ n.endsWith("range") && (e3.value = () => [/* @__PURE__ */ new Date(), /* @__PURE__ */ new Date()]), a.push(e3);
7
+ }
8
+ if (e2.includes("yesterday") && !["week", "month", "year"].includes(t)) {
9
+ const e3 = /* @__PURE__ */ new Date();
10
+ e3.setTime(e3.getTime() - 864e5);
11
+ const t2 = { text: "昨天", value: () => e3 };
12
+ n.endsWith("range") && (t2.value = () => [e3, /* @__PURE__ */ new Date()]), a.push(t2);
13
+ }
14
+ if (e2.includes("oneWeek") && !["month", "year"].includes(t)) {
15
+ const e3 = /* @__PURE__ */ new Date();
16
+ e3.setTime(e3.getTime() - 6048e5);
17
+ const t2 = { text: "一周前", value: () => e3 };
18
+ n.endsWith("range") && (t2.text = "一周", t2.value = () => [e3, /* @__PURE__ */ new Date()]), a.push(t2);
19
+ }
20
+ if (e2.includes("oneMonth") && !["year"].includes(t)) {
21
+ const e3 = /* @__PURE__ */ new Date();
22
+ e3.getMonth() > 0 ? e3.setMonth(e3.getMonth() - 1) : (e3.setMonth(12), e3.setFullYear(e3.getFullYear() - 1));
23
+ const t2 = { text: "一月前", value: () => e3 };
24
+ n.endsWith("range") && (t2.text = "一月", t2.value = () => [e3, /* @__PURE__ */ new Date()]), a.push(t2);
25
+ }
26
+ if (e2.includes("oneYear")) {
27
+ const e3 = /* @__PURE__ */ new Date();
28
+ e3.setFullYear(e3.getFullYear() - 1);
29
+ const t2 = { text: "一年前", value: () => e3 };
30
+ n.endsWith("range") && (t2.text = "一年", t2.value = () => [e3, /* @__PURE__ */ new Date()]), a.push(t2);
31
+ }
32
+ return a;
33
+ }
34
+ export {
35
+ e as getDateShortCuts
36
+ };
@@ -0,0 +1,93 @@
1
+ import http from "agilebuilder-ui/src/utils/request";
2
+ import { setValueForVariableName } from "../page-helper-util.js";
3
+ function formatScanRuleSets(e) {
4
+ const t = {};
5
+ return e.forEach((e2) => {
6
+ "group" === e2.type ? e2.outs.forEach((e3) => {
7
+ t[e3.ruleCode] || (t[e3.ruleCode] = { outs: [], adaptations: [] }), t[e3.ruleCode].outs.push(e3);
8
+ }) : t[e2.code] = { outs: e2.outs, adaptations: [] };
9
+ }), packageScanRuleSets(t);
10
+ }
11
+ function packageScanRuleSets(e) {
12
+ return new Promise((t, a) => {
13
+ Object.keys(e).length > 0 ? http.post(window.$vueApp.config.globalProperties.baseAPI + "/dc/setting-barcode-analysis/by-codes", Object.keys(e)).then((a2) => {
14
+ a2.forEach((a3) => {
15
+ const s = JSON.parse(a3.barcodeAnalysisOuts), n = /* @__PURE__ */ new Set(), l = {};
16
+ e[a3.code].outs.forEach((e2) => {
17
+ n.add(e2.returnedValue), l[e2.returnedValue] = e2.pageVariable;
18
+ });
19
+ const i2 = [];
20
+ s.forEach((e2) => {
21
+ n.has(e2.code) && (e2.pageVariable = l[e2.code], i2.push(e2));
22
+ }), e[a3.code].outs = i2, e[a3.code].adaptations = JSON.parse(a3.barcodeAnalysisAdaptations), t(e);
23
+ });
24
+ }) : t(null);
25
+ });
26
+ }
27
+ function analysisScanValue(scanValue, scanRuleSets) {
28
+ if (!scanValue) return null;
29
+ const scanSets = Object.values(scanRuleSets);
30
+ for (let i = 0; i < scanSets.length; i++) {
31
+ const scanSet = scanSets[i], adaptations = scanSet.adaptations;
32
+ let validStr = "";
33
+ for (let e = 0; e < adaptations.length; e++) {
34
+ const t = adaptations[e], a = _getScanIndexs(scanValue, t.startIndex, t.endIndex), s = a[0], n = a[1];
35
+ let l = scanValue.substring(s, n), i2 = t.value, r = t.operate;
36
+ if ("times" == r) {
37
+ const e2 = l.split(null == i2 ? "" : i2).length - 1;
38
+ i2 = e2, l = t.times, r = "=";
39
+ }
40
+ if ((isNaN(l) || isNaN(i2)) && (l = "'" + l + "'", i2 = "'" + i2 + "'"), t.leftBracket && (validStr += t.leftBracket), "<>" == r ? r = "!=" : "=" == r && (r = "=="), "include" == r || "notinclude" == r ? (validStr += l + ".indexOf(" + i2 + ")", validStr += "include" == r ? ">-1" : "<0") : validStr += l + r + i2, t.rightBracket && (validStr += t.rightBracket), t.joinStr && e + 1 < adaptations.length) {
41
+ const e2 = "and" == t.joinStr ? "&&" : "||";
42
+ validStr += e2;
43
+ }
44
+ }
45
+ let res = false;
46
+ if (validStr) try {
47
+ res = eval("(" + validStr + ")");
48
+ } catch (e) {
49
+ }
50
+ else res = true;
51
+ if (res) return executeAnalysisForScan(scanValue, scanSet);
52
+ }
53
+ return null;
54
+ }
55
+ function executeAnalysisForScan(e, t) {
56
+ if (!t || !e) return;
57
+ const a = t.outs, s = {};
58
+ return a.forEach((t2) => {
59
+ const a2 = t2.fieldName;
60
+ if (null != t2.fixedValue) s[a2] = t2.fixedValue;
61
+ else {
62
+ let n = e;
63
+ if (t2.splitChar && t2.splitNum) {
64
+ const a3 = (t2.splitChar, t2.splitChar), s2 = e.split(a3), l = t2.splitNum < 1 ? 1 : t2.splitNum;
65
+ n = l <= s2.length ? s2[l - 1] : "";
66
+ }
67
+ if (t2.splitChar2 && t2.splitNum2) {
68
+ const e2 = (t2.splitChar2, t2.splitChar2), a3 = n.split(e2), s2 = t2.splitNum2 < 1 ? 1 : t2.splitNum2;
69
+ n = s2 <= a3.length ? a3[s2 - 1] : "";
70
+ }
71
+ if (n.length > 0) {
72
+ const e2 = _getScanIndexs(n, t2.startIndex, t2.endIndex), a3 = e2[0], s2 = e2[1];
73
+ n = n.substring(a3, s2);
74
+ }
75
+ s[a2] = n;
76
+ }
77
+ }), { value: e, params: s, scanSet: t };
78
+ }
79
+ function _getScanIndexs(e, t, a) {
80
+ return t = (t = (t = null == t ? 0 : t - 1) < 0 ? 0 : t) > e.length - 1 ? e.length - 1 : t, (a = (a = (a = null == a ? e.length : a) > e.length ? e.length : a) < 1 ? 1 : a) < t && (a = t), [t, a];
81
+ }
82
+ function setScanAnalysisValue(e, t, a) {
83
+ if (!t) return;
84
+ t.outs.forEach((t2) => {
85
+ const s = t2.fieldName, n = a[s];
86
+ setValueForVariableName(e.entity, t2.pageVariable, n);
87
+ });
88
+ }
89
+ export {
90
+ analysisScanValue,
91
+ formatScanRuleSets,
92
+ setScanAnalysisValue
93
+ };
@@ -0,0 +1,57 @@
1
+ import "vue";
2
+ window.globalRefs || (window.globalRefs = {});
3
+ const n = window.globalRefs;
4
+ function o(o2, e2, r2) {
5
+ if (!o2) return;
6
+ const t2 = u(o2.code, o2.version);
7
+ return n[t2] || (n[t2] = {}), n[t2][e2] = r2, n[t2];
8
+ }
9
+ function e(o2, e2, r2) {
10
+ if (!o2) return;
11
+ const t2 = f(o2.code, o2.version);
12
+ return n[t2] || (n[t2] = {}), n[t2][e2] = r2, n[t2];
13
+ }
14
+ function r(o2, e2) {
15
+ if (!o2 || !e2) return;
16
+ const r2 = u(o2.code, o2.version);
17
+ n[r2] || (n[r2] = {});
18
+ const t2 = n[r2][e2];
19
+ return t2 ? t2.value : t2;
20
+ }
21
+ function t(o2, e2) {
22
+ if (!o2) return;
23
+ const r2 = f(o2.code, o2.version);
24
+ n[r2] || (n[r2] = {});
25
+ const t2 = n[r2][e2];
26
+ return t2 ? t2.value : t2;
27
+ }
28
+ function i(o2) {
29
+ if (!o2) return;
30
+ const e2 = u(o2.code, o2.version);
31
+ n[e2] = {};
32
+ }
33
+ function c(o2) {
34
+ if (!o2) return;
35
+ const e2 = u(o2.code, o2.version);
36
+ n[e2] = {};
37
+ }
38
+ function u(n2, o2) {
39
+ return "pageRuntimeRef-" + n2 + "-" + (o2 || 1);
40
+ }
41
+ function f(n2, o2) {
42
+ return u(n2, o2) + "-code";
43
+ }
44
+ function s(o2) {
45
+ if (!o2) return;
46
+ const e2 = f(o2.code, o2.version);
47
+ return n[e2] || (n[e2] = {}), n[e2];
48
+ }
49
+ export {
50
+ o as addComponentRef,
51
+ e as addComponentRefByCode,
52
+ s as getAllComponentRefs,
53
+ r as getComponentRef,
54
+ t as getComponentRefByCode,
55
+ c as initComponentRefState,
56
+ i as removePageAllRef
57
+ };
@@ -0,0 +1,18 @@
1
+ import { usePageContextStore as t } from "./page-store.js";
2
+ import { getEnableI18nState as e } from "agilebuilder-ui/src/utils/i18n-util";
3
+ import { useI18n as r } from "vue-i18n";
4
+ let o = null, n = null;
5
+ const i = (i2, ...s) => {
6
+ if (!i2) return "";
7
+ n || (n = r());
8
+ const u = t().pageContext;
9
+ null === o && (o = !!e(u.systemCode));
10
+ const l = `${u.systemCode}.${i2}`;
11
+ if (n.te(l)) return n.t(l, s || []);
12
+ if (n.te(i2)) return n.t(i2, s || []);
13
+ const m = n.t(i2, s || []);
14
+ return m || i2;
15
+ };
16
+ export {
17
+ i as $t
18
+ };