super-page-runtime 2.3.20-sit2 → 2.3.21-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 (241) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +124 -133
  2. package/dist/es/components/runtime/utils/events/event-util.js +3 -3
  3. package/dist/es/components/runtime/utils/events/print-label.js +26 -25
  4. package/dist/es/components/runtime/utils/events/standard-event.js +568 -584
  5. package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
  6. package/dist/es/components/runtime/utils/page-init-util.js +11 -9
  7. package/dist/es/components/runtime/utils/table-utils.js +1 -1
  8. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
  9. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +8 -6
  10. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +17 -17
  11. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +98 -93
  12. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +3 -2
  13. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
  14. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +11 -9
  15. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +2 -0
  16. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +12 -10
  17. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +8 -8
  18. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +15 -15
  19. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +4 -4
  20. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +34 -34
  21. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +1 -1
  22. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +35 -34
  23. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +5 -3
  24. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +1 -0
  25. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +1 -1
  26. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +1 -0
  27. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +17 -15
  28. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +1 -1
  29. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
  30. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +6 -6
  31. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +13 -22
  32. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  33. package/dist/es/components/runtime/views/super-page-dialog.vue.js +1 -0
  34. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  35. package/dist/es/components/runtime/views/super-page.vue2.js +76 -75
  36. package/dist/es/i18n/langs/cn.js +1 -1
  37. package/dist/es/i18n/langs/en.js +1 -1
  38. package/dist/es/style.css +76 -76
  39. package/dist/lib/_virtual/_plugin-vue_export-helper.js +6 -0
  40. package/dist/lib/assets/chart-themes/bar-theme.js +2 -0
  41. package/dist/lib/assets/chart-themes/gauge-theme.js +2 -0
  42. package/dist/lib/assets/chart-themes/pie-theme.js +2 -0
  43. package/dist/lib/assets/chart-themes/radar-theme.js +2 -0
  44. package/dist/lib/assets/chart-themes/scatter-theme.js +2 -0
  45. package/dist/lib/assets/file.png.js +2 -0
  46. package/dist/lib/assets/folder.png.js +2 -0
  47. package/dist/lib/components/runtime/utils/ai-chat-util.js +13 -0
  48. package/dist/lib/components/runtime/utils/anchor-util.js +62 -0
  49. package/dist/lib/components/runtime/utils/api/api-util.js +3 -0
  50. package/dist/lib/components/runtime/utils/api/page-expose-util.js +169 -0
  51. package/dist/lib/components/runtime/utils/assemblys-config.js +16 -0
  52. package/dist/lib/components/runtime/utils/barcode-util.js +10 -0
  53. package/dist/lib/components/runtime/utils/charts/chart-columnline-util.js +137 -0
  54. package/dist/lib/components/runtime/utils/charts/chart-gauge-util.js +34 -0
  55. package/dist/lib/components/runtime/utils/charts/chart-pie-util.js +78 -0
  56. package/dist/lib/components/runtime/utils/charts/chart-radar-util.js +52 -0
  57. package/dist/lib/components/runtime/utils/charts/chart-scatter-util.js +43 -0
  58. package/dist/lib/components/runtime/utils/charts/chart-util.js +244 -0
  59. package/dist/lib/components/runtime/utils/common-util.js +91 -0
  60. package/dist/lib/components/runtime/utils/eventBus.js +3 -0
  61. package/dist/lib/components/runtime/utils/events/event-util.js +345 -0
  62. package/dist/lib/components/runtime/utils/events/print-label.js +97 -0
  63. package/dist/lib/components/runtime/utils/events/standard-event.js +1101 -0
  64. package/dist/lib/components/runtime/utils/events/validator-util.js +296 -0
  65. package/dist/lib/components/runtime/utils/form/date-shortcuts.js +34 -0
  66. package/dist/lib/components/runtime/utils/form/scan-util.js +90 -0
  67. package/dist/lib/components/runtime/utils/global-refs.js +42 -0
  68. package/dist/lib/components/runtime/utils/i18n-util.js +11 -0
  69. package/dist/lib/components/runtime/utils/interfaces/page-design-types.js +4 -0
  70. package/dist/lib/components/runtime/utils/page-helper-util.js +354 -0
  71. package/dist/lib/components/runtime/utils/page-init-util.js +244 -0
  72. package/dist/lib/components/runtime/utils/page-permission-util.js +26 -0
  73. package/dist/lib/components/runtime/utils/page-store.js +50 -0
  74. package/dist/lib/components/runtime/utils/store-util.js +11 -0
  75. package/dist/lib/components/runtime/utils/store.js +3 -0
  76. package/dist/lib/components/runtime/utils/table-utils.js +68 -0
  77. package/dist/lib/components/runtime/utils/tree-utils.js +54 -0
  78. package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.js +3 -0
  79. package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +24 -0
  80. package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +5 -0
  81. package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +17 -0
  82. package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +3 -0
  83. package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +35 -0
  84. package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +3 -0
  85. package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +3 -0
  86. package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +3 -0
  87. package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +17 -0
  88. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +5 -0
  89. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +41 -0
  90. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +11 -0
  91. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +3 -0
  92. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +11 -0
  93. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +3 -0
  94. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +53 -0
  95. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +3 -0
  96. package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +5 -0
  97. package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +48 -0
  98. package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +5 -0
  99. package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +24 -0
  100. package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +5 -0
  101. package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +34 -0
  102. package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +5 -0
  103. package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +24 -0
  104. package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +5 -0
  105. package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +24 -0
  106. package/dist/lib/components/runtime/views/assemblys/chart/table/chart-table-util.js +402 -0
  107. package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +3 -0
  108. package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +3 -0
  109. package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue.js +6 -0
  110. package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue2.js +3 -0
  111. package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue.js +36 -0
  112. package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +3 -0
  113. package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +13 -0
  114. package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +3 -0
  115. package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +3 -0
  116. package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +249 -0
  117. package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue.js +16 -0
  118. package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue2.js +3 -0
  119. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +32 -0
  120. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +3 -0
  121. package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue.js +32 -0
  122. package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue2.js +3 -0
  123. package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.js +19 -0
  124. package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue2.js +3 -0
  125. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +12 -0
  126. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +3 -0
  127. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue.js +21 -0
  128. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue2.js +3 -0
  129. package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.js +13 -0
  130. package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue2.js +3 -0
  131. package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +30 -0
  132. package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue2.js +3 -0
  133. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +15 -0
  134. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +3 -0
  135. package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.js +5 -0
  136. package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +21 -0
  137. package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +3 -0
  138. package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +17 -0
  139. package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.js +3 -0
  140. package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +15 -0
  141. package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue.js +5 -0
  142. package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue2.js +27 -0
  143. package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +5 -0
  144. package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +79 -0
  145. package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +3 -0
  146. package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +20 -0
  147. package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.js +3 -0
  148. package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +15 -0
  149. package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +3 -0
  150. package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +12 -0
  151. package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +5 -0
  152. package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +88 -0
  153. package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +5 -0
  154. package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +43 -0
  155. package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +3 -0
  156. package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +59 -0
  157. package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +382 -0
  158. package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +3 -0
  159. package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +322 -0
  160. package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +3 -0
  161. package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.js +3 -0
  162. package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +81 -0
  163. package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +5 -0
  164. package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +124 -0
  165. package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +3 -0
  166. package/dist/lib/components/runtime/views/assemblys/error-render.vue2.js +3 -0
  167. package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +3 -0
  168. package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +57 -0
  169. package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +35 -0
  170. package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +3 -0
  171. package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +3 -0
  172. package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +57 -0
  173. package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +3 -0
  174. package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +91 -0
  175. package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +3 -0
  176. package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +47 -0
  177. package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +3 -0
  178. package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +20 -0
  179. package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +3 -0
  180. package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +65 -0
  181. package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +3 -0
  182. package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +20 -0
  183. package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +3 -0
  184. package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +70 -0
  185. package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.js +5 -0
  186. package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +31 -0
  187. package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.js +3 -0
  188. package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +26 -0
  189. package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +5 -0
  190. package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +13 -0
  191. package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +3 -0
  192. package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +75 -0
  193. package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +5 -0
  194. package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +188 -0
  195. package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.js +3 -0
  196. package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +130 -0
  197. package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +3 -0
  198. package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +11 -0
  199. package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +3 -0
  200. package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +29 -0
  201. package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +3 -0
  202. package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +38 -0
  203. package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +3 -0
  204. package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +20 -0
  205. package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue.js +73 -0
  206. package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue2.js +3 -0
  207. package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +132 -0
  208. package/dist/lib/components/runtime/views/assemblys/object-render.vue2.js +3 -0
  209. package/dist/lib/components/runtime/views/assemblys/page-bottom.vue.js +3 -0
  210. package/dist/lib/components/runtime/views/assemblys/page-bottom.vue2.js +3 -0
  211. package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +5 -0
  212. package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +23 -0
  213. package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.js +5 -0
  214. package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +23 -0
  215. package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +5 -0
  216. package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +34 -0
  217. package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +3 -0
  218. package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +17 -0
  219. package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +3 -0
  220. package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +20 -0
  221. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +5 -0
  222. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +19 -0
  223. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +3 -0
  224. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +14 -0
  225. package/dist/lib/components/runtime/views/home-chart.vue.js +38 -0
  226. package/dist/lib/components/runtime/views/home-chart.vue2.js +3 -0
  227. package/dist/lib/components/runtime/views/super-page-dialog.vue.js +23 -0
  228. package/dist/lib/components/runtime/views/super-page-dialog.vue3.js +3 -0
  229. package/dist/lib/components/runtime/views/super-page.vue.js +5 -0
  230. package/dist/lib/components/runtime/views/super-page.vue2.js +264 -0
  231. package/dist/lib/favicon.ico +0 -0
  232. package/dist/lib/i18n/langs/cn.js +2 -0
  233. package/dist/lib/i18n/langs/en.js +2 -0
  234. package/dist/lib/index.js +6 -0
  235. package/dist/lib/style.css +996 -0
  236. package/dist/umd/favicon.ico +0 -0
  237. package/dist/umd/index.full.min.js +7429 -0
  238. package/dist/umd/style.css +996 -0
  239. package/package.json +2 -2
  240. package/dist/es/components/runtime/utils/events/data-backfill-util.d.ts +0 -27
  241. package/dist/es/components/runtime/utils/events/data-backfill-util.js +0 -39
@@ -0,0 +1,296 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const e = require("async-validator"), t = require("element-plus"), s = require("../global-refs.js"), n = require("agilebuilder-ui/src/utils/util"), r = require("./standard-event.js"), o = require("agilebuilder-ui/src/utils/common-util"), i = require("agilebuilder-ui/src/utils/calculator/calculator-util"), l = require("../common-util.js");
4
+ function a(e2, t2, s2) {
5
+ const n2 = {};
6
+ t2 || (t2 = {});
7
+ let r2 = 0;
8
+ const o2 = e2.split(".");
9
+ return o2.forEach((e3) => {
10
+ let i2;
11
+ if (r2 === o2.length - 1) i2 = function(e4, t3, s3) {
12
+ let n3;
13
+ for (let r3 = 0; r3 < t3.length; r3++) if (n3 = 0 === r3 ? e4[t3[r3]] : n3.fields[t3[r3]], r3 !== t3.length - 1) {
14
+ if (t3[r3 + 1] === s3) break;
15
+ }
16
+ return n3;
17
+ }(n2, o2, e3), i2.fields[e3] = s2;
18
+ else {
19
+ let s3;
20
+ 0 === r2 ? i2 = t2 : (s3 = function(e4, t3, s4) {
21
+ let n3;
22
+ for (let r3 = 0; r3 < t3.length; r3++) {
23
+ const o3 = t3[r3];
24
+ if (n3 = 0 === r3 ? e4[o3] : n3.fields[t3[r3]], o3 === s4) break;
25
+ }
26
+ return n3;
27
+ }(n2, o2, o2[r2 - 1]), i2 = s3.fields), i2[e3] || (i2[e3] = { type: "object", required: true, fields: {} }), 0 === r2 ? n2[e3] = i2[e3] : s3.fields[e3] = i2[e3];
28
+ }
29
+ r2++;
30
+ }), n2;
31
+ }
32
+ function u(e2, t2, s2, n2, r2, o2) {
33
+ return c(e2, t2, s2, n2, true, r2, o2);
34
+ }
35
+ function f(e2) {
36
+ if (e2) return Object.keys(e2).forEach((t2) => {
37
+ if (t2.indexOf(".") >= 0) {
38
+ let s2 = [];
39
+ s2 = t2.split("."), e2[s2[0]] ? e2[s2[0]].fields[s2[1]] = e2[t2][0] : (e2[s2[0]] = new Object(), e2[s2[0]].fields = new Object(), e2[s2[0]].fields[s2[1]] = e2[t2][0], e2[s2[0]].type = "object"), delete e2[t2];
40
+ }
41
+ }), e2;
42
+ }
43
+ function c(n2, r2, o2, i2, l2, a2, u2) {
44
+ let d2, g2 = f(r2);
45
+ if (r2 && null !== r2 || !o2 || (g2 = {}), !g2 || 0 === Object.keys(g2).length) return n2.validateErrorField = "", true;
46
+ return new e(g2).validate(n2, { first: true }, (e2, f2) => {
47
+ let g3;
48
+ if (e2) {
49
+ d2 = e2[0].message, g3 = e2[0].field, t.ElMessage({ message: d2, showClose: true, type: "warning", duration: 3e3 });
50
+ const n3 = s.getComponentRefByCode(u2, g3);
51
+ n3 && n3.addRequiredClass && n3.addRequiredClass();
52
+ } else d2 = true;
53
+ if (g3 && true === l2) {
54
+ if (/[A-Z]+/.test(g3) && void 0 !== n2[g3.toLowerCase()]) {
55
+ const e3 = JSON.parse(JSON.stringify(n2));
56
+ e3[g3.toUpperCase()] = n2[g3.toLowerCase()], delete e3[g3.toLowerCase()], d2 = c(e3, r2, o2, i2, false, a2, u2);
57
+ }
58
+ }
59
+ }), d2;
60
+ }
61
+ function d(e2) {
62
+ return new Promise((t2, n2) => {
63
+ const r2 = [], o2 = e2.customValidatorUuids;
64
+ o2 && o2.forEach((t3) => {
65
+ const n3 = s.getComponentRef(e2, t3);
66
+ n3 && n3.validator && r2.push(n3.validator());
67
+ }), r2 && r2.length > 0 ? Promise.all(r2).then((e3) => {
68
+ e3.includes(false) ? t2(false) : t2(true);
69
+ }) : t2(true);
70
+ });
71
+ }
72
+ function g(e2, r2, i2) {
73
+ return new Promise((a2, f2) => {
74
+ const c2 = JSON.parse(JSON.stringify(e2));
75
+ if (i2 && 0 !== Object.keys(i2).length) {
76
+ if (true === u(c2, i2, null, null, true, r2)) {
77
+ const e3 = function(e4) {
78
+ var _a;
79
+ if (!e4) return true;
80
+ if (l.isWorkflowPage(e4)) return true;
81
+ const r3 = e4.tableUuids;
82
+ if (!r3) return true;
83
+ for (let o2 = 0; o2 < r3.length; o2++) {
84
+ const i3 = r3[o2], l2 = s.getComponentRef(e4, i3);
85
+ if (l2) {
86
+ if (l2.getConfigure()) {
87
+ const e5 = l2.getConfigure();
88
+ if ((_a = e5 == null ? void 0 : e5.verification) == null ? void 0 : _a.notEmpty) {
89
+ const s2 = l2.getTableData();
90
+ if (!s2 || !Array.isArray(s2) || 0 === s2.length) return t.ElMessage({ showClose: true, message: n.getI18n().t("superPageRuntimeMessage.xxxNotEmpty", { label: e5.title ? e5.title : e5.code }), type: "warning" }), false;
91
+ }
92
+ }
93
+ if (!l2.validatorSunTableListData()) return false;
94
+ }
95
+ }
96
+ return true;
97
+ }(r2);
98
+ if (true === e3) {
99
+ const e4 = function(e5) {
100
+ const t2 = [];
101
+ e5.customRuleEvents && e5.customRuleEvents.length > 0 && e5.customRuleEvents.forEach((s2) => {
102
+ s2.events.forEach((n2) => {
103
+ const r3 = e5.customEvents[n2];
104
+ t2.push(r3.apply(r3, [{ prop: s2.prop, pageContext: e5 }]));
105
+ });
106
+ });
107
+ if (t2 && t2.length > 0) return new Promise((e6, s2) => {
108
+ const n2 = [], r3 = [];
109
+ t2.forEach((e7) => {
110
+ o.isPromise(e7) ? n2.push(e7) : r3.push(e7);
111
+ }), r3.includes(false) && e6(false), n2.length > 0 ? Promise.all(n2).then((t3) => {
112
+ t3.includes(false) ? e6(false) : e6(true);
113
+ }).catch((t3) => {
114
+ console.error(t3), e6(false);
115
+ }) : e6(true);
116
+ });
117
+ return null;
118
+ }(r2);
119
+ e4 && o.isPromise(e4) ? e4.then((e5) => {
120
+ e5 ? d(r2).then((e6) => {
121
+ a2(e6);
122
+ }) : a2(false);
123
+ }) : d(r2).then((e5) => {
124
+ a2(e5);
125
+ });
126
+ } else f2(new Error(n.getI18n().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);
127
+ } else f2(new Error(n.getI18n().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
128
+ } else a2(true);
129
+ });
130
+ }
131
+ function p(e2, t2, s2) {
132
+ if (!t2) return s2;
133
+ s2 || (s2 = {});
134
+ const n2 = l.isWorkflowPage(e2), r2 = Object.keys(t2), o2 = t2;
135
+ return r2.forEach((e3) => {
136
+ if ("__subRules" === e3) {
137
+ const e4 = o2.__subRules;
138
+ Object.keys(e4).forEach((t3) => {
139
+ s2.subRules || (s2.subRules = {}), s2.subRules[t3] ? Object.assign(s2.subRules[t3], e4[t3]) : s2.subRules[t3] = e4[t3];
140
+ });
141
+ } else y(o2[e3]), n2 ? (s2.rules[e3] = o2[e3], s2[e3] && (s2[e3] = o2[e3])) : s2[e3] = o2[e3];
142
+ }), f(s2);
143
+ }
144
+ function m(e2, t2) {
145
+ e2.forEach((e3) => {
146
+ e3.message;
147
+ const t3 = e3.label, s2 = n.getI18n().t(t3);
148
+ e3.required && (e3.message = n.getI18n().t("superPageRuntimeMessage.required", { label: s2 })), e3.myType && (e3.message = n.getI18n().t("superPageRuntimeMessage.formatMismatch", { label: s2 })), e3.patternType && (e3.message = n.getI18n().t("superPageRuntimeMessage.formatMismatch", { label: s2 })), void 0 !== e3.max && null !== e3.max && (e3.message = n.getI18n().t("superPageRuntimeMessage.overMaxLength", { label: s2, value: e3.max })), void 0 !== e3.min && null !== e3.min && (e3.message = n.getI18n().t("superPageRuntimeMessage.limitMinLength", { label: s2, value: e3.min }));
149
+ });
150
+ }
151
+ function b(e2, t2) {
152
+ const n2 = s.getAllComponentRefs(e2);
153
+ if (n2) for (const e3 in n2) {
154
+ const s2 = n2[e3];
155
+ R(s2 ? s2.value : s2, t2);
156
+ }
157
+ }
158
+ function R(e2, t2) {
159
+ var _a, _b, _c;
160
+ if (e2) {
161
+ const s2 = e2.getConfigure();
162
+ void 0 !== t2.show && (t2.show ? e2.show() : e2.hide()), void 0 !== t2.required && ((_a = s2 == null ? void 0 : s2.runtime) == null ? void 0 : _a.props) && (s2.runtime.props.required = t2.required), void 0 !== t2.readonly && ((_b = s2 == null ? void 0 : s2.runtime) == null ? void 0 : _b.props) && (t2.readonly ? s2.runtime.props.state = "readonly" : s2.runtime.props.state = "enabled"), void 0 !== t2.disabled && s2 && (((_c = s2 == null ? void 0 : s2.runtime) == null ? void 0 : _c.props) && (t2.disabled ? s2.runtime.props.state = "disabled" : s2.runtime.props.state = "enabled"), "table" === s2.name && e2.changeOperationAddState(false));
163
+ }
164
+ }
165
+ function y(e2) {
166
+ if (!(e2 == null ? void 0 : e2.type)) return;
167
+ const t2 = w[e2.type];
168
+ t2 && (e2.validator = t2.validator);
169
+ }
170
+ const w = { boolean: { validator: function(e2, t2, s2) {
171
+ return true === h(e2, t2) && ("number" == typeof t2 && (1 === t2 || 0 === t2) || "boolean" == typeof t2 && (true === t2 || false === t2));
172
+ } }, date: { validator: function(e2, t2, s2) {
173
+ if (true !== h(e2, t2)) return false;
174
+ const n2 = new Date(t2);
175
+ return !isNaN(n2.getTime());
176
+ } }, number: { validator: function(e2, t2, s2) {
177
+ return true === h(e2, t2) && (("string" != typeof t2 || "" !== t2.trim()) && ("number" == typeof t2 || !isNaN(Number(t2))));
178
+ } } }, h = (e2, t2) => null != t2 && "" !== t2 || !e2.required;
179
+ exports.disabledAllFields = function(e2) {
180
+ b(e2, { disabled: true });
181
+ }, exports.dynamicControlTableEdit = function(e2, t2, n2) {
182
+ var _a;
183
+ let r2, o2;
184
+ if (n2 ? (r2 = s.getComponentRefByCode(e2, n2), o2 = r2 ? r2.getTableUuid() : null) : (o2 = e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null, r2 = o2 ? s.getComponentRef(e2, o2) : null), !r2) return;
185
+ const i2 = e2.code, a2 = e2.version, u2 = l.getListCode(i2, a2, o2);
186
+ if (e2.workflowRules || (e2.workflowRules = { rules: {}, subRules: {} }), e2.workflowRules.subRules || (e2.workflowRules.subRules = {}), e2.workflowRules.subRules[n2] || (e2.workflowRules.subRules[n2] = {}), ((_a = e2.workflowRules) == null ? void 0 : _a.subRules) && e2.workflowRules.subRules[n2]) {
187
+ const s2 = e2.workflowRules.subRules[n2];
188
+ t2.forEach((e3) => {
189
+ s2[e3.name] = e3;
190
+ });
191
+ }
192
+ r2.dynamicControlTableEdit(e2, t2, u2);
193
+ }, exports.getWorkflowRules = function(e2) {
194
+ const t2 = e2.entity.data, s2 = { ...e2.entity.page, ...t2 }, n2 = r.getAdditionalParamMap(e2), o2 = e2.entity.context, i2 = e2.entity.task;
195
+ e2.formPropTiltleMap && Object.keys(e2.formPropTiltleMap).length > 0 && e2.completeTaskParam.fieldPermissions && e2.completeTaskParam.fieldPermissions.length > 0 && e2.completeTaskParam.fieldPermissions.forEach((t3) => {
196
+ t3.name && e2.formPropTiltleMap[t3.name] && (t3.label = e2.formPropTiltleMap[t3.name]);
197
+ });
198
+ let l2 = window.$vueApp.config.globalProperties.$getValidator(e2.completeTaskParam.fieldPermissions, s2, true, n2, i2, o2);
199
+ const a2 = e2.customRules;
200
+ return l2 = p(e2, a2, l2), l2 && (l2.rules || (l2.rules = {}), l2.subRules || (l2.subRules = {})), l2;
201
+ }, exports.i18nValidatePropRulesMessage = m, exports.i18nValidateRulesMessage = function(e2) {
202
+ if (!e2 || 0 === Object.keys(e2).length) return;
203
+ const t2 = {}, s2 = Object.keys(e2);
204
+ for (let n2 = 0; n2 < s2.length; n2++) {
205
+ const r2 = s2[n2], o2 = e2[r2];
206
+ m(o2), r2.indexOf(".") > 0 ? a(r2, t2, o2) : o2 && o2.length > 0 && (t2[r2] = [...o2]);
207
+ }
208
+ return t2;
209
+ }, exports.packageCustomRules = p, exports.packageCustomValidator = y, exports.setObjectPropRule = a, exports.updateComponentDisplayState = R, exports.updateFormItemEditState = function(e2, t2) {
210
+ if (!t2) return;
211
+ const n2 = {};
212
+ if (t2.forEach((e3) => {
213
+ const { name: t3, rules: s2 } = e3;
214
+ s2 ? n2[t3] = s2 : false === e3.required && (n2[t3] = []);
215
+ }), l.isWorkflowPage(e2)) {
216
+ let t3 = e2.workflowRules ? e2.workflowRules : { rules: {}, subRules: {} };
217
+ t3 = p(e2, n2, t3), e2.workflowRules = t3;
218
+ } else {
219
+ let t3 = e2.rules ? e2.rules : {};
220
+ t3 = p(e2, n2, t3), e2.rules = t3;
221
+ }
222
+ const r2 = t2.filter((e3) => "_all_fields" === e3.name);
223
+ r2 && r2.length > 0 && b(e2, r2[0]), t2.forEach((t3) => {
224
+ if ("_all_fields" !== t3.name) {
225
+ R(s.getComponentRefByCode(e2, t3.name), t3);
226
+ }
227
+ });
228
+ }, exports.validateDataModelFunc = function(e2, o2, a2) {
229
+ const u2 = e2.entity.data, f2 = { ...e2.entity.page, ...u2 }, c2 = e2.rules, d2 = o2.props.base ? o2.props.base.isEnableRequired : null;
230
+ return null != d2 && (a2 = d2), null == a2 && (a2 = false), function(e3, o3, a3, u3) {
231
+ if (e3) {
232
+ return l.isWorkflowPage(u3) ? function(e4, o4, l2) {
233
+ return new Promise((a4, u4) => {
234
+ const f3 = r.getAdditionalParamMap(o4), c3 = o4.entity.context, d3 = o4.entity.task, p2 = true, m2 = o4.subTablePageInfo;
235
+ g(e4, o4, l2).then((r2) => {
236
+ if (r2) {
237
+ let l3, u5, g2, b2, R2 = r2;
238
+ const y2 = o4.workflowRules;
239
+ if (y2) {
240
+ if (!function(e5, r4) {
241
+ var _a, _b, _c;
242
+ if (!e5.actionPermissions) return true;
243
+ const o5 = Object.keys(e5.actionPermissions);
244
+ for (let l4 = 0; l4 < o5.length; l4++) {
245
+ const a5 = o5[l4], u6 = e5.actionPermissions[a5];
246
+ if (u6 && u6.notEmpty) {
247
+ let o6 = false;
248
+ if (r4[a5] ? Array.isArray(r4[a5]) && 0 === r4[a5].length && (o6 = true) : o6 = true, o6) {
249
+ const o7 = s.getComponentRefByCode(e5, a5).getConfigure();
250
+ if ((_a = u6.notEmptyCondition) == null ? void 0 : _a.parentCondition) {
251
+ if (false === i.parseSubTablePermissionCondition(u6.notEmptyCondition.parentCondition.replaceAll("${field[", "${parent["), e5.dataTypeMaps, r4, {}, (_b = e5.entity) == null ? void 0 : _b.request, (_c = e5.entity) == null ? void 0 : _c.task, e5.contextParam)) return true;
252
+ }
253
+ return t.ElMessage({ showClose: true, message: n.getI18n().t("superPageRuntimeMessage.xxxNotEmpty", { label: o7.title ? o7.title : a5 }), type: "warning" }), false;
254
+ }
255
+ }
256
+ }
257
+ return true;
258
+ }(o4, e4)) return void a4(false);
259
+ const r3 = true, w2 = Object.assign({}, y2);
260
+ w2.subRules && (Object.keys(w2.subRules).length > 0 ? w2.totalSubRules || (w2.totalSubRules = {}) : delete w2.subRules);
261
+ const h2 = window.$vueApp.config.globalProperties.$formValidator(e4, w2, p2, f3, d3, c3, m2, r3);
262
+ R2 = h2.msg, l3 = h2.field, u5 = h2.listCode, g2 = h2.rowIndex, b2 = h2.pageNum;
263
+ } else R2 = true;
264
+ if (true !== R2) {
265
+ if (t.ElMessage({ showClose: true, message: R2 + "", type: "warning" }), u5) {
266
+ const e5 = s.getComponentRefByCode(o4, u5);
267
+ e5 && e5.addRequiredClass && e5.addRequiredClass(l3, g2, b2);
268
+ } else {
269
+ const e5 = s.getComponentRefByCode(o4, l3);
270
+ e5 && e5.addRequiredClass && e5.addRequiredClass();
271
+ }
272
+ a4(false);
273
+ } else Object.keys(e4).indexOf("validateErrorField") >= 0 && delete e4.validateErrorField, a4(e4);
274
+ } else u4(new Error(n.getI18n().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
275
+ }).catch((e5) => {
276
+ u4(e5);
277
+ });
278
+ });
279
+ }(o3, u3, a3) : function(e4, t2, s2) {
280
+ return new Promise((n2, r2) => {
281
+ g(e4, t2, s2).then((t3) => {
282
+ if (t3) {
283
+ const t4 = JSON.parse(JSON.stringify(e4));
284
+ Object.keys(t4).indexOf("validateErrorField") >= 0 && delete t4.validateErrorField, n2(t4);
285
+ } else n2(false);
286
+ }).catch((e5) => {
287
+ r2(e5);
288
+ });
289
+ });
290
+ }(o3, u3, a3);
291
+ }
292
+ return new Promise((e4, t2) => {
293
+ e4(true);
294
+ });
295
+ }(a2, f2, c2, e2);
296
+ }, exports.validator = u;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }), exports.getDateShortCuts = function(e, t, n) {
3
+ if (!e) return;
4
+ const s = [];
5
+ if (e.includes("today") && !["week", "month", "year"].includes(t)) {
6
+ const e2 = { text: "今天", value: () => /* @__PURE__ */ new Date() };
7
+ n.endsWith("range") && (e2.value = () => [/* @__PURE__ */ new Date(), /* @__PURE__ */ new Date()]), s.push(e2);
8
+ }
9
+ if (e.includes("yesterday") && !["week", "month", "year"].includes(t)) {
10
+ const e2 = /* @__PURE__ */ new Date();
11
+ e2.setTime(e2.getTime() - 864e5);
12
+ const t2 = { text: "昨天", value: () => e2 };
13
+ n.endsWith("range") && (t2.value = () => [e2, /* @__PURE__ */ new Date()]), s.push(t2);
14
+ }
15
+ if (e.includes("oneWeek") && !["month", "year"].includes(t)) {
16
+ const e2 = /* @__PURE__ */ new Date();
17
+ e2.setTime(e2.getTime() - 6048e5);
18
+ const t2 = { text: "一周前", value: () => e2 };
19
+ n.endsWith("range") && (t2.text = "一周", t2.value = () => [e2, /* @__PURE__ */ new Date()]), s.push(t2);
20
+ }
21
+ if (e.includes("oneMonth") && !["year"].includes(t)) {
22
+ const e2 = /* @__PURE__ */ new Date();
23
+ e2.getMonth() > 0 ? e2.setMonth(e2.getMonth() - 1) : (e2.setMonth(12), e2.setFullYear(e2.getFullYear() - 1));
24
+ const t2 = { text: "一月前", value: () => e2 };
25
+ n.endsWith("range") && (t2.text = "一月", t2.value = () => [e2, /* @__PURE__ */ new Date()]), s.push(t2);
26
+ }
27
+ if (e.includes("oneYear")) {
28
+ const e2 = /* @__PURE__ */ new Date();
29
+ e2.setFullYear(e2.getFullYear() - 1);
30
+ const t2 = { text: "一年前", value: () => e2 };
31
+ n.endsWith("range") && (t2.text = "一年", t2.value = () => [e2, /* @__PURE__ */ new Date()]), s.push(t2);
32
+ }
33
+ return s;
34
+ };
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const http = require("agilebuilder-ui/src/utils/request"), pageHelperUtil = require("../page-helper-util.js");
4
+ function formatScanRuleSets(e) {
5
+ const t = {};
6
+ return e.forEach((e2) => {
7
+ "group" === e2.type ? e2.outs.forEach((e3) => {
8
+ t[e3.ruleCode] || (t[e3.ruleCode] = { outs: [], adaptations: [] }), t[e3.ruleCode].outs.push(e3);
9
+ }) : t[e2.code] = { outs: e2.outs, adaptations: [] };
10
+ }), packageScanRuleSets(t);
11
+ }
12
+ function packageScanRuleSets(e) {
13
+ return new Promise((t, a) => {
14
+ Object.keys(e).length > 0 ? http.post(window.$vueApp.config.globalProperties.baseAPI + "/dc/setting-barcode-analysis/by-codes", Object.keys(e)).then((a2) => {
15
+ a2.forEach((a3) => {
16
+ const s = JSON.parse(a3.barcodeAnalysisOuts), n = /* @__PURE__ */ new Set(), l = {};
17
+ e[a3.code].outs.forEach((e2) => {
18
+ n.add(e2.returnedValue), l[e2.returnedValue] = e2.pageVariable;
19
+ });
20
+ const i2 = [];
21
+ s.forEach((e2) => {
22
+ n.has(e2.code) && (e2.pageVariable = l[e2.code], i2.push(e2));
23
+ }), e[a3.code].outs = i2, e[a3.code].adaptations = JSON.parse(a3.barcodeAnalysisAdaptations), t(e);
24
+ });
25
+ }) : t(null);
26
+ });
27
+ }
28
+ function analysisScanValue(scanValue, scanRuleSets) {
29
+ if (!scanValue) return null;
30
+ const scanSets = Object.values(scanRuleSets);
31
+ for (let i = 0; i < scanSets.length; i++) {
32
+ const scanSet = scanSets[i], adaptations = scanSet.adaptations;
33
+ let validStr = "";
34
+ for (let e = 0; e < adaptations.length; e++) {
35
+ const t = adaptations[e], a = _getScanIndexs(scanValue, t.startIndex, t.endIndex), s = a[0], n = a[1];
36
+ let l = scanValue.substring(s, n), i2 = t.value, r = t.operate;
37
+ if ("times" == r) {
38
+ const e2 = l.split(null == i2 ? "" : i2).length - 1;
39
+ i2 = e2, l = t.times, r = "=";
40
+ }
41
+ 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) {
42
+ const e2 = "and" == t.joinStr ? "&&" : "||";
43
+ validStr += e2;
44
+ }
45
+ }
46
+ let res = false;
47
+ if (validStr) try {
48
+ res = eval("(" + validStr + ")");
49
+ } catch (e) {
50
+ }
51
+ else res = true;
52
+ if (res) return executeAnalysisForScan(scanValue, scanSet);
53
+ }
54
+ return null;
55
+ }
56
+ function executeAnalysisForScan(e, t) {
57
+ if (!t || !e) return;
58
+ const a = t.outs, s = {};
59
+ return a.forEach((t2) => {
60
+ const a2 = t2.fieldName;
61
+ if (null != t2.fixedValue) s[a2] = t2.fixedValue;
62
+ else {
63
+ let n = e;
64
+ if (t2.splitChar && t2.splitNum) {
65
+ const a3 = (t2.splitChar, t2.splitChar), s2 = e.split(a3), l = t2.splitNum < 1 ? 1 : t2.splitNum;
66
+ n = l <= s2.length ? s2[l - 1] : "";
67
+ }
68
+ if (t2.splitChar2 && t2.splitNum2) {
69
+ const e2 = (t2.splitChar2, t2.splitChar2), a3 = n.split(e2), s2 = t2.splitNum2 < 1 ? 1 : t2.splitNum2;
70
+ n = s2 <= a3.length ? a3[s2 - 1] : "";
71
+ }
72
+ if (n.length > 0) {
73
+ const e2 = _getScanIndexs(n, t2.startIndex, t2.endIndex), a3 = e2[0], s2 = e2[1];
74
+ n = n.substring(a3, s2);
75
+ }
76
+ s[a2] = n;
77
+ }
78
+ }), { value: e, params: s, scanSet: t };
79
+ }
80
+ function _getScanIndexs(e, t, a) {
81
+ 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];
82
+ }
83
+ function setScanAnalysisValue(e, t, a) {
84
+ if (!t) return;
85
+ t.outs.forEach((t2) => {
86
+ const s = t2.fieldName, n = a[s];
87
+ pageHelperUtil.setValueForVariableName(e.entity, t2.pageVariable, n);
88
+ });
89
+ }
90
+ exports.analysisScanValue = analysisScanValue, exports.formatScanRuleSets = formatScanRuleSets, exports.setScanAnalysisValue = setScanAnalysisValue;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }), require("vue"), window.globalRefs || (window.globalRefs = {});
3
+ const e = window.globalRefs;
4
+ function n(e2, n2) {
5
+ return "pageRuntimeRef-" + e2 + "-" + (n2 || 1);
6
+ }
7
+ function o(e2, o2) {
8
+ return n(e2, o2) + "-code";
9
+ }
10
+ exports.addComponentRef = function(o2, t, r) {
11
+ if (!o2) return;
12
+ const i = n(o2.code, o2.version);
13
+ return e[i] || (e[i] = {}), e[i][t] = r, e[i];
14
+ }, exports.addComponentRefByCode = function(n2, t, r) {
15
+ if (!n2) return;
16
+ const i = o(n2.code, n2.version);
17
+ return e[i] || (e[i] = {}), e[i][t] = r, e[i];
18
+ }, exports.getAllComponentRefs = function(n2) {
19
+ if (!n2) return;
20
+ const t = o(n2.code, n2.version);
21
+ return e[t] || (e[t] = {}), e[t];
22
+ }, exports.getComponentRef = function(o2, t) {
23
+ if (!o2 || !t) return;
24
+ const r = n(o2.code, o2.version);
25
+ e[r] || (e[r] = {});
26
+ const i = e[r][t];
27
+ return i ? i.value : i;
28
+ }, exports.getComponentRefByCode = function(n2, t) {
29
+ if (!n2) return;
30
+ const r = o(n2.code, n2.version);
31
+ e[r] || (e[r] = {});
32
+ const i = e[r][t];
33
+ return i ? i.value : i;
34
+ }, exports.initComponentRefState = function(o2) {
35
+ if (!o2) return;
36
+ const t = n(o2.code, o2.version);
37
+ e[t] = {};
38
+ }, exports.removePageAllRef = function(o2) {
39
+ if (!o2) return;
40
+ const t = n(o2.code, o2.version);
41
+ e[t] = {};
42
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const e = require("./page-store.js"), t = require("agilebuilder-ui/src/utils/i18n-util"), r = require("vue-i18n");
4
+ let u = null, n = null;
5
+ exports.$t = (s, ...l) => {
6
+ n || (n = r.useI18n());
7
+ const o = e.usePageContextStore().pageContext;
8
+ if (null === u && (u = !!t.getEnableI18nState(o.systemCode)), !u) return s;
9
+ const i = `${o.systemCode}.${s}`, a = n.t(i, l || []);
10
+ return a !== i ? a : s;
11
+ };
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ var e = ((e2) => (e2.PC = "pc", e2.IPAD = "ipad", e2.PHONE = "phone", e2))(e || {});
4
+ exports.PageDimensions = e;