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,35 @@
1
+ "use strict";
2
+ const e = require("vue"), l = require("../../../../utils/page-helper-util.js"), r = e.defineComponent({ __name: "title-suffix-element", props: { pageContext: {}, property: {} }, setup(r2) {
3
+ const t = r2, o = t.pageContext.entity;
4
+ let p = [];
5
+ if (t.property.prefixPro && t.property.prefixPro.startsWith("${")) {
6
+ let e2 = t.property.prefixPro;
7
+ e2 = e2.substring(2, e2.length - 1), p = e2.split(".");
8
+ } else p = [];
9
+ if (p.length > 0 && t.property.prefixDefault) {
10
+ const e2 = t.property.prefixDefault;
11
+ let r3 = l.formatVariableValue(t.pageContext, e2);
12
+ if (null != r3 && null != r3) {
13
+ "checkbox" === t.property.prefixType && (r3 = (r3 + "").split(",")), l.setVariableValue(o, p, r3);
14
+ }
15
+ }
16
+ const a = t.property.prefixType;
17
+ let u = t.property.prefixValue;
18
+ u = null == u || null == u ? "" : u;
19
+ let n = null;
20
+ return p.length > 0 && (n = e.computed({ get() {
21
+ const e2 = l.getVariableValue(o, p);
22
+ return "checkbox" === a ? null != e2 && (Array.isArray(e2) ? e2.includes(u) : e2 === u) : e2;
23
+ }, set(e2) {
24
+ if ("checkbox" === a) {
25
+ let r3 = l.getVariableValue(o, p);
26
+ r3 || (r3 = []), Array.isArray(r3) || (r3 = [r3]);
27
+ const t2 = r3.indexOf(u);
28
+ e2 ? -1 == t2 && r3.push(u) : t2 > -1 && r3.splice(t2, 1), l.setVariableValue(o, p, r3);
29
+ } else l.setVariableValue(o, p, e2);
30
+ } })), (l2, r3) => {
31
+ const t2 = e.resolveComponent("el-radio"), o2 = e.resolveComponent("el-checkbox");
32
+ return e.openBlock(), e.createElementBlock(e.Fragment, null, ["radio" === l2.property.prefixType ? (e.openBlock(), e.createBlock(t2, { key: 0, value: l2.property.prefixValue, label: l2.property.title, modelValue: e.unref(n), "onUpdate:modelValue": r3[0] || (r3[0] = (l3) => e.isRef(n) ? n.value = l3 : n = l3) }, null, 8, ["value", "label", "modelValue"])) : e.createCommentVNode("", true), "checkbox" === l2.property.prefixType ? (e.openBlock(), e.createBlock(o2, { key: 1, label: l2.property.title, value: l2.property.prefixValue, modelValue: e.unref(n), "onUpdate:modelValue": r3[1] || (r3[1] = (l3) => e.isRef(n) ? n.value = l3 : n = l3) }, null, 8, ["label", "value", "modelValue"])) : e.createCommentVNode("", true)], 64);
33
+ };
34
+ } });
35
+ module.exports = r;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ const e = require("./title-suffix-element.vue.js");
3
+ module.exports = e;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ const e = require("./custom-runtime.vue2.js");
3
+ module.exports = e;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ const e = require("vue"), t = require("../../../../utils/page-init-util.js"), n = require("../../../../utils/page-helper-util.js"), o = require("../../../../utils/events/event-util.js"), a = require("../../../../utils/events/validator-util.js"), i = require("../../../../utils/common-util.js"), u = require("../../../../utils/global-refs.js"), r = require("../../../../utils/events/standard-event.js"), l = require("../../../../utils/i18n-util.js"), s = require("../../../../utils/eventBus.js"), p = require("../../../../utils/api/page-expose-util.js"), c = { key: 0, style: { width: "100%", height: "100%" } }, d = { key: 1, style: { width: "100%", height: "100%" }, class: "amb-widget-richtext-single" }, f = e.defineComponent({ __name: "custom-runtime", props: { pageContext: {}, configure: {} }, setup(f2, { expose: m }) {
3
+ const g = f2, v = g.pageContext.entity ? g.pageContext.entity : {}, C = t.getFormModelFields(g.pageContext, g.configure), x = e.computed({ get: () => n.getVariableValue(v, C), set(e2) {
4
+ n.setVariableValue(v, C, e2);
5
+ } }), y = g.configure.runtime ? g.configure.runtime : {}, h = y.style, b = y.class, k = y.headerStyle, V = e.ref(y.props ? y.props : {}), q = function(e2) {
6
+ let t2 = {};
7
+ if (e2) for (let o2 in e2) {
8
+ const a2 = e2[o2];
9
+ t2[o2] = n.formatVariableValue(g.pageContext, a2);
10
+ }
11
+ return t2;
12
+ }(y.customParams ? y.customParams : {}), E = r.getAdditionalParamMap(g.pageContext), j = e.ref(g.configure.props && g.configure.props.base ? g.configure.props.base.name : null);
13
+ function R(e2, t2) {
14
+ n.setVariableValueWithProp(v, e2, t2);
15
+ }
16
+ function B(e2) {
17
+ p.functions.isHasFieldAuthPermission(g.configure) ? a.updateFormItemEditState(g.pageContext, e2) : console.error("没有该字段的权限,dynamicFields=", C ? C.join(".") : "");
18
+ }
19
+ function D() {
20
+ const e2 = g.pageContext.tableUuids;
21
+ e2 && e2.forEach((e3) => {
22
+ const t2 = i.getListCode(g.pageContext.code, g.pageContext.version, g.configure.uuid), n2 = u.getComponentRef(g.pageContext, e3);
23
+ n2 && n2.restoreGridEdit(t2);
24
+ });
25
+ }
26
+ g.configure.props.verification.custom && g.configure.props.verification.custom.enabled && (g.pageContext.customValidatorUuids || (g.pageContext.customValidatorUuids = []), g.pageContext.customValidatorUuids.push(g.configure.uuid));
27
+ const F = g.pageContext.code, w = e.ref(C && C.length > 0 ? F + "__" + C.join("__") : null), S = e.ref(null), _ = e.ref(null), U = e.ref(null);
28
+ function P(e2) {
29
+ o.handleEvent(x.value, g.pageContext, g.configure, e2);
30
+ }
31
+ return e.onMounted(() => {
32
+ s.$on(w.value + "-scanDone", (e2) => {
33
+ const t2 = e2.result;
34
+ n.setVariableValue(v, C, t2);
35
+ }), s.$on(w.value + "-pickFileDone", (e2) => {
36
+ w.value, S.value.pickFileDone(e2);
37
+ }), e.nextTick(() => {
38
+ const e2 = x.value;
39
+ o.handleAfterInitEvent(e2, g.pageContext, g.configure, { formItemRef: _.value, componentRef: S.value, titleRef: U.value, value: e2, entity: g.pageContext.entity.data, pageData: g.pageContext.entity.page });
40
+ });
41
+ }), e.onUnmounted(() => {
42
+ s.$off(w.value + "-scanDone"), s.$off(w.value + "-pickFileDone");
43
+ }), m({ getCustomRef: function() {
44
+ return S.value;
45
+ }, invokeCustomFunction: function(e2, ...t2) {
46
+ if (S.value && "function" == typeof S.value[e2]) return S.value[e2](...t2);
47
+ throw new Error(`执行失败:Function '${e2}' not found in custom component`);
48
+ }, hasCustomFunction: function(e2) {
49
+ return S.value && "function" == typeof S.value[e2];
50
+ }, addRequiredClass: function() {
51
+ requiredClass.value = addRequiredClassUtil();
52
+ } }), (t2, a2) => {
53
+ const i2 = e.resolveComponent("el-form-item");
54
+ return V.value.tittleShow ? (e.openBlock(), e.createBlock(i2, { key: 0, ref_key: "formItemRef", ref: _, required: V.value.required, class: e.normalizeClass(e.unref(b)), "label-width": V.value.labelWidth, style: e.normalizeStyle(e.unref(h)) }, { label: e.withCtx(() => [V.value.tittleShow ? (e.openBlock(), e.createElementBlock("div", { key: 0, ref_key: "titleRef", ref: U, style: e.normalizeStyle({ ...e.unref(k) }) }, e.toDisplayString(e.unref(l.$t)(V.value.title)), 5)) : e.createCommentVNode("", true)]), default: e.withCtx(() => [j.value ? (e.openBlock(), e.createElementBlock("div", c, [(e.openBlock(), e.createBlock(e.resolveDynamicComponent(j.value), { ref_key: "customRef", ref: S, size: V.value.size, entity: t2.pageContext.entity.data, pageData: t2.pageContext.entity.page, pageContext: t2.pageContext, configureObj: t2.configure, prop: e.unref(n.getFormPropName)(t2.configure.props && t2.configure.props.base ? t2.configure.props.base.prop : null), "custom-params": e.unref(q), modelValue: x.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e2) => x.value = e2), disabled: "disabled" === V.value.state, "additional-param-map": e.unref(E), "component-id": w.value, onSetEntityValue: R, onSetCustomRules: B, onRestoreGridEdit: D, onHandleEvent: P, onChange: a2[1] || (a2[1] = (n2) => e.unref(o.handleEvent)(x.value, t2.pageContext, t2.configure, "change")) }, null, 40, ["size", "entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : e.createCommentVNode("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : j.value ? (e.openBlock(), e.createElementBlock("div", d, [(e.openBlock(), e.createBlock(e.resolveDynamicComponent(j.value), { ref_key: "customRef", ref: S, entity: t2.pageContext.entity.data, pageData: t2.pageContext.entity.page, pageContext: t2.pageContext, configureObj: t2.configure, prop: e.unref(n.getFormPropName)(t2.configure.props && t2.configure.props.base ? t2.configure.props.base.prop : null), "custom-params": e.unref(q), modelValue: x.value, "onUpdate:modelValue": a2[2] || (a2[2] = (e2) => x.value = e2), disabled: "disabled" === V.value.state, "additional-param-map": e.unref(E), "component-id": w.value, onSetEntityValue: R, onSetCustomRules: B, onRestoreGridEdit: D, onHandleEvent: P, onChange: a2[3] || (a2[3] = (n2) => e.unref(o.handleEvent)(x.value, t2.pageContext, t2.configure, "change")) }, null, 40, ["entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : e.createCommentVNode("", true);
55
+ };
56
+ } });
57
+ module.exports = f;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ const e = require("./datepicker-runtime.vue2.js");
3
+ module.exports = e;
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ const e = require("vue"), a = require("../../../../utils/page-init-util.js"), l = require("../../../../utils/form/date-shortcuts.js"), t = require("../../../../utils/page-helper-util.js"), r = require("../../../../utils/events/event-util.js"), n = require("../common/title-suffix-element.vue.js"), o = require("dayjs"), u = require("../../../../utils/i18n-util.js"), i = require("../../../../utils/common-util.js"), d = require("agilebuilder-ui"), c = e.defineComponent({ __name: "datepicker-runtime", props: { pageContext: {}, configure: {} }, setup(c2, { expose: s }) {
3
+ var _a;
4
+ const v = c2, p = e.ref(null), f = v.pageContext.entity ? v.pageContext.entity : {}, g = v.configure.runtime ? v.configure.runtime : {}, m = g.style, h = g.class, y = g.headerStyle, C = g.titleExceedStyle, b = e.ref(g.props ? g.props : {});
5
+ let V = a.getFormModelFields(v.pageContext, v.configure, b.value.prop);
6
+ if (v.pageContext.modelFieldsMap && V && V.length > 0 && "data" === V[0]) {
7
+ const e2 = t.getModelFieldFromPageContext(V, v.pageContext);
8
+ e2 && function(e3) {
9
+ const a2 = e3.dataType;
10
+ t.isDateDataType(a2) && ("year" === b.value.dateType && "YYYY" === b.value.valueFormat || "month" === b.value.dateType && "YYYY-MM" === b.value.valueFormat) && (b.value.valueFormat = "x");
11
+ }(e2);
12
+ }
13
+ let x = null, F = false;
14
+ if (b.value.dateType && b.value.dateType.includes("range")) {
15
+ F = true;
16
+ let e2 = b.value.prop2;
17
+ e2 && e2.startsWith("${") || (e2 = "${page." + v.configure.uuid + "-2}");
18
+ const a2 = t.getValueFromVariable(f, e2, null);
19
+ if (e2 = e2.substring(2, e2.length - 1), x = e2.split("."), !(a2 || f.data && (f.data.id || f.data.ID)) && b.value.defaultValue2) {
20
+ const e3 = t.getValueFromVariable(f, b.value.defaultValue2);
21
+ if (null != e3 && "" !== e3) t.setVariableValue(f, x, e3);
22
+ else if (((_a = b.value.moreDefaultValue2) == null ? void 0 : _a.length) > 0) {
23
+ const e4 = b.value.moreDefaultValue2;
24
+ for (let a3 = 0; a3 < e4.length; a3++) {
25
+ const l2 = t.getValueFromVariable(f, e4[a3]);
26
+ if (null != l2 && "" !== l2) {
27
+ t.setVariableValue(f, x, l2);
28
+ break;
29
+ }
30
+ }
31
+ }
32
+ }
33
+ }
34
+ const k = e.ref(null), E = e.ref(null), T = e.ref(null);
35
+ function B(e2, a2) {
36
+ if (!e2) return e2;
37
+ if (a2) {
38
+ "number" != typeof e2 || isNaN(e2) || 4 !== e2.toString().length || (e2 = e2.toString());
39
+ try {
40
+ const l2 = o(e2);
41
+ let t2 = null;
42
+ return t2 = "x" === a2 ? l2.toDate().getTime() : o(e2).format(a2), t2;
43
+ } catch (a3) {
44
+ return console.error("日期值格式化错误", a3), console.error(`value: ${e2} ,valueFormat: ${b.value.valueFormat}`), e2;
45
+ }
46
+ }
47
+ return e2;
48
+ }
49
+ if (e.onMounted(() => {
50
+ e.nextTick(() => {
51
+ const e2 = q.value;
52
+ r.handleAfterInitEvent(e2, v.pageContext, v.configure, { formItemRef: k.value, componentRef: E.value, titleRef: T.value, value: e2, entity: v.pageContext.entity.data, pageData: v.pageContext.entity.page });
53
+ });
54
+ }), V) {
55
+ const e2 = t.getVariableValue(f, V), a2 = B(e2, b.value.valueFormat);
56
+ e2 !== a2 && t.setVariableValue(f, V, a2);
57
+ }
58
+ if (x) {
59
+ const e2 = t.getVariableValue(f, x), a2 = B(e2, b.value.valueFormat);
60
+ e2 !== a2 && t.setVariableValue(f, x, a2);
61
+ }
62
+ const q = e.computed({ get() {
63
+ if (F) {
64
+ const e2 = [];
65
+ let a2 = t.getVariableValue(f, V);
66
+ e2.push(B(a2, b.value.valueFormat));
67
+ let l2 = t.getVariableValue(f, x);
68
+ return e2.push(B(l2, b.value.valueFormat)), e2;
69
+ }
70
+ return B(t.getVariableValue(f, V), b.value.valueFormat);
71
+ }, set(e2) {
72
+ F ? Array.isArray(e2) ? (t.setVariableValue(f, V, e2[0]), t.setVariableValue(f, x, e2[1]), p.value = "") : null === e2 && (t.setVariableValue(f, V, null), t.setVariableValue(f, x, null)) : (t.setVariableValue(f, V, e2), null != e2 && (p.value = ""));
73
+ } }), z = e.ref(l.getDateShortCuts(b.value.dateScopeDetails, b.value.sourceType, b.value.dateType));
74
+ if (b.value.shortcutsFunc) {
75
+ const e2 = r.getCustomFunc(v.pageContext, b.value.shortcutsFunc);
76
+ if (e2) {
77
+ let a2 = e2.apply(e2, [{ pageContext: v.pageContext, configureObj: v.configure }]);
78
+ if (a2) {
79
+ Array.isArray(a2) || (a2 = [a2]), z.value || (z.value = []);
80
+ for (let e3 of a2) e3.text && e3.value && z.value.push(e3);
81
+ }
82
+ }
83
+ }
84
+ return s({ addRequiredClass: function() {
85
+ p.value = i.addRequiredClassUtil();
86
+ } }), (a2, l2) => {
87
+ const t2 = e.resolveComponent("el-time-picker"), o2 = e.resolveComponent("el-date-picker"), i2 = e.resolveComponent("el-form-item");
88
+ return e.openBlock(), e.createBlock(i2, { ref_key: "formItemRef", ref: k, required: b.value.required, class: e.normalizeClass(e.unref(h) + (p.value ? " " + p.value : "")), "label-width": b.value.labelWidth, style: e.normalizeStyle(e.unref(m)) }, { label: e.withCtx(() => [b.value.tittleShow ? (e.openBlock(), e.createElementBlock("div", { key: 0, ref_key: "titleRef", ref: T, style: e.normalizeStyle({ ...e.unref(y), ...e.unref(C) }) }, [b.value.prefixType ? (e.openBlock(), e.createBlock(n, { key: 0, pageContext: a2.pageContext, property: b.value }, null, 8, ["pageContext", "property"])) : (e.openBlock(), e.createElementBlock(e.Fragment, { key: 1 }, [e.createTextVNode(e.toDisplayString(e.unref(u.$t)(b.value.title)), 1)], 64))], 4)) : e.createCommentVNode("", true)]), default: e.withCtx(() => ["time" == b.value.dateType || "timerange" == b.value.dateType ? (e.openBlock(), e.createBlock(t2, { key: 0, ref_key: "componentRef", ref: E, "is-range": "timerange" == b.value.dateType, style: { width: "100%" }, "range-separator": "-", clearable: b.value.clearable, disabled: "disabled" === b.value.state, readonly: "readonly" === b.value.state, size: b.value.size, placeholder: b.value.placeholder, "start-placeholder": b.value.placeholder, "end-placeholder": b.value.endPlaceholder ? b.value.endPlaceholder : b.value.placeholder, "unlink-panels": true, format: b.value.format, "value-format": b.value.valueFormat, modelValue: q.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e2) => q.value = e2), shortcuts: z.value, type: b.value.dateType, onChange: l2[1] || (l2[1] = (l3) => e.unref(r.handleFormEvent)(l3, a2.pageContext, a2.configure, "change")), onBlur: l2[2] || (l2[2] = (l3) => e.unref(r.handleFormEvent)(l3, a2.pageContext, a2.configure, "blur")), onFocus: l2[3] || (l2[3] = (l3) => e.unref(r.handleFormEvent)(l3, a2.pageContext, a2.configure, "focus")), onVisibleChange: l2[4] || (l2[4] = (l3) => e.unref(r.handleFormEvent)(l3, a2.pageContext, a2.configure, "visible-change")), onPanelChange: l2[5] || (l2[5] = (l3) => e.unref(r.handleFormEvent)(l3, a2.pageContext, a2.configure, "panel-change")), onClear: l2[6] || (l2[6] = (l3) => e.unref(r.handleFormEvent)(l3, a2.pageContext, a2.configure, "clear")) }, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"])) : "combined" !== b.value.dateRangePickerMode && ["daterange", "datetimerange", "monthrange", "yearrange"].includes(b.value.dateType) ? (e.openBlock(), e.createBlock(e.unref(d.DatePickerRange), { key: 1, modelValue: q.value, "onUpdate:modelValue": l2[7] || (l2[7] = (e2) => q.value = e2), type: b.value.dateType, disabled: "disabled" === b.value.state, readonly: "readonly" === b.value.state, clearable: b.value.clearable, format: b.value.format, "value-format": b.value.valueFormat, placeholder: b.value.placeholder, "start-placeholder": b.value.placeholder, "end-placeholder": b.value.endPlaceholder ? b.value.endPlaceholder : b.value.placeholder, size: b.value.size, shortcuts: z.value, onChange: l2[8] || (l2[8] = (l3) => e.unref(r.handleFormEvent)(l3, a2.pageContext, a2.configure, "change")), onBlur: l2[9] || (l2[9] = (l3) => e.unref(r.handleFormEvent)(l3, a2.pageContext, a2.configure, "blur")), onFocus: l2[10] || (l2[10] = (l3) => e.unref(r.handleFormEvent)(l3, a2.pageContext, a2.configure, "focus")), onVisibleChange: l2[11] || (l2[11] = (l3) => e.unref(r.handleFormEvent)(l3, a2.pageContext, a2.configure, "visible-change")), onPanelChange: l2[12] || (l2[12] = (l3) => e.unref(r.handleFormEvent)(l3, a2.pageContext, a2.configure, "panel-change")), onClear: l2[13] || (l2[13] = (l3) => e.unref(r.handleFormEvent)(l3, a2.pageContext, a2.configure, "clear")) }, null, 8, ["modelValue", "type", "disabled", "readonly", "clearable", "format", "value-format", "placeholder", "start-placeholder", "end-placeholder", "size", "shortcuts"])) : (e.openBlock(), e.createBlock(o2, { key: 2, ref_key: "componentRef", ref: E, clearable: b.value.clearable, style: { width: "100%" }, "unlink-panels": true, disabled: "disabled" === b.value.state, readonly: "readonly" === b.value.state, size: b.value.size, placeholder: b.value.placeholder, "start-placeholder": b.value.placeholder, "end-placeholder": b.value.endPlaceholder ? b.value.endPlaceholder : b.value.placeholder, format: b.value.format, "value-format": b.value.valueFormat, modelValue: q.value, "onUpdate:modelValue": l2[14] || (l2[14] = (e2) => q.value = e2), shortcuts: z.value, type: b.value.dateType, onChange: l2[15] || (l2[15] = (l3) => e.unref(r.handleFormEvent)(l3, a2.pageContext, a2.configure, "change")), onBlur: l2[16] || (l2[16] = (l3) => e.unref(r.handleFormEvent)(l3, a2.pageContext, a2.configure, "blur")), onFocus: l2[17] || (l2[17] = (l3) => e.unref(r.handleFormEvent)(l3, a2.pageContext, a2.configure, "focus")), onVisibleChange: l2[18] || (l2[18] = (l3) => e.unref(r.handleFormEvent)(l3, a2.pageContext, a2.configure, "visible-change")), onPanelChange: l2[19] || (l2[19] = (l3) => e.unref(r.handleFormEvent)(l3, a2.pageContext, a2.configure, "panel-change")), onClear: l2[20] || (l2[20] = (l3) => e.unref(r.handleFormEvent)(l3, a2.pageContext, a2.configure, "clear")) }, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"]))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
89
+ };
90
+ } });
91
+ module.exports = c;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ const e = require("./depttree-runtime.vue2.js");
3
+ module.exports = e;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ const e = require("vue"), t = require("../../../../utils/page-init-util.js"), l = require("../../../../utils/events/event-util.js"), n = require("../common/title-suffix-element.vue.js"), o = require("../../../../utils/i18n-util.js"), r = require("../../../../utils/page-helper-util.js"), a = require("../../../../utils/common-util.js"), i = e.defineComponent({ __name: "depttree-runtime", props: { pageContext: {}, configure: {} }, setup(i2, { expose: u }) {
3
+ const p = i2, s = e.ref(null), d = e.ref([]), c = p.pageContext.entity ? p.pageContext.entity : {};
4
+ c.data || (c.data = {});
5
+ const f = c.data, m = c.page;
6
+ let g = t.getFormModelFields(p.pageContext, p.configure);
7
+ const v = g.length > 0 ? g[g.length - 1] : p.configure.uuid, C = p.configure.runtime ? p.configure.runtime : {}, y = e.ref(C.props ? C.props : {}), h = C.style, x = C.class, S = C.headerStyle, F = C.titleExceedStyle;
8
+ C.props.deptScope && ("field" == C.props.deptScope && C.props.deptScopeField ? (z(), function(t2, l2) {
9
+ if (0 === t2.indexOf("${fixed.")) return;
10
+ const n2 = t2.match(/\${(.*?)}/);
11
+ if (!n2) return;
12
+ const o2 = n2 ? n2[1].split(".") : [];
13
+ o2 && o2.length > 0 && e.watch(() => o2.reduce((e2, t3) => e2[t3], p.pageContext.entity), (e2, t3) => {
14
+ l2(e2, t3);
15
+ });
16
+ }(C.props.deptScopeField, (e2, t2) => {
17
+ z();
18
+ })) : "depts" == C.props.deptScope && C.props.deptScopeCodes && (d.value = C.props.deptScopeCodes.split(",")));
19
+ const k = e.ref(null), q = e.ref(null), V = e.ref(null);
20
+ e.onMounted(() => {
21
+ e.nextTick(() => {
22
+ const e2 = f ? f[v] : null;
23
+ l.handleAfterInitEvent(e2, p.pageContext, p.configure, { formItemRef: k.value, componentRef: q.value, titleRef: V.value, value: e2, entity: p.pageContext.entity.data, pageData: p.pageContext.entity.page });
24
+ });
25
+ });
26
+ const b = e.computed({ get: () => r.getVariableValue(c, g), set(e2) {
27
+ r.setVariableValue(c, g, e2), null != e2 && (s.value = "");
28
+ } }), B = y.value.autoSetFields ? y.value.autoSetFields : [];
29
+ let E = null;
30
+ function R(e2, t2) {
31
+ E ? E === e2 && (g.length > 0 ? l.handleFormEvent(r.getVariableValue(c, g), p.pageContext, p.configure, "change") : l.handleFormEvent(t2, p.pageContext, p.configure, "change")) : e2 === v && l.handleFormEvent(t2, p.pageContext, p.configure, "change");
32
+ }
33
+ function w() {
34
+ l.handleFormEvent(null, p.pageContext, p.configure, "click");
35
+ }
36
+ function z() {
37
+ const e2 = r.getValueFromVariable(p.pageContext.entity, C.props.deptScopeField);
38
+ d.value = e2 ? e2.split(",") : [];
39
+ }
40
+ return B.length - 1 > 0 && B[B.length - 1] && B[B.length - 1].model && (E = r.getFormPropName(B[B.length - 1].model)), u({ addRequiredClass: function() {
41
+ s.value = a.addRequiredClassUtil();
42
+ } }), (t2, l2) => {
43
+ const r2 = e.resolveComponent("OrganizationInput"), a2 = e.resolveComponent("el-form-item");
44
+ return e.openBlock(), e.createBlock(a2, { ref_key: "formItemRef", ref: k, required: y.value.required, class: e.normalizeClass(e.unref(x) + (s.value ? " " + s.value : "")), "label-width": y.value.labelWidth, style: e.normalizeStyle(e.unref(h)) }, { label: e.withCtx(() => [y.value.tittleShow ? (e.openBlock(), e.createElementBlock("div", { key: 0, ref_key: "titleRef", ref: V, style: e.normalizeStyle({ ...e.unref(S), ...e.unref(F) }) }, [y.value.prefixType ? (e.openBlock(), e.createBlock(n, { key: 0, pageContext: t2.pageContext, property: y.value }, null, 8, ["pageContext", "property"])) : (e.openBlock(), e.createElementBlock(e.Fragment, { key: 1 }, [e.createTextVNode(e.toDisplayString(e.unref(o.$t)(y.value.title)), 1)], 64))], 4)) : e.createCommentVNode("", true)]), default: e.withCtx(() => [e.createVNode(r2, { ref_key: "componentRef", ref: q, disabled: "disabled" == y.value.state, multiple: y.value.multiple, treeType: y.value.treeType, value: b.value, models: e.unref(f), departmentInfo: d.value, limitFilterColumn: y.value.limitFilterColumn, pageModels: e.unref(m), fields: e.unref(B), size: y.value.size, separator: y.value.separator, onSetValue: R, onShowTree: w }, null, 8, ["disabled", "multiple", "treeType", "value", "models", "departmentInfo", "limitFilterColumn", "pageModels", "fields", "size", "separator"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
45
+ };
46
+ } });
47
+ module.exports = i;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ const e = require("./divider-runtime.vue2.js");
3
+ module.exports = e;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ const e = require("vue"), t = require("../../../../utils/page-helper-util.js"), n = require("../../../../utils/events/event-util.js"), o = e.defineComponent({ __name: "divider-runtime", props: { pageContext: {}, configure: {} }, setup(o2) {
3
+ const r = o2, i = r.configure.runtime ? r.configure.runtime : {}, l = i.headerStyle, u = e.ref(i.props ? i.props : {});
4
+ let a = u.value.value;
5
+ const c = e.computed(() => {
6
+ if (!a) return "";
7
+ const e2 = t.formatVariableValue(r.pageContext, a);
8
+ return null == e2 || null == e2 ? "" : e2;
9
+ }), p = e.ref(null);
10
+ return e.onMounted(() => {
11
+ e.nextTick(() => {
12
+ const e2 = c.value;
13
+ n.handleAfterInitEvent(e2, r.pageContext, r.configure, { componentRef: p.value, value: e2, entity: r.pageContext.entity.data, pageData: r.pageContext.entity.page });
14
+ });
15
+ }), (t2, o3) => {
16
+ const r2 = e.resolveComponent("el-divider");
17
+ return e.openBlock(), e.createBlock(r2, { ref_key: "componentRef", ref: p, direction: u.value.direction, "border-style": u.value.borderType, "content-position": u.value.titlePosition, onClick: o3[0] || (o3[0] = (o4) => e.unref(n.handleFormEvent)(o4, t2.pageContext, t2.configure, "click")) }, { default: e.withCtx(() => [e.createElementVNode("div", { style: e.normalizeStyle(e.unref(l)) }, e.toDisplayString(c.value), 5)]), _: 1 }, 8, ["direction", "border-style", "content-position"]);
18
+ };
19
+ } });
20
+ module.exports = o;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ const e = require("./fileupload-runtime.vue2.js");
3
+ module.exports = e;
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ const e = require("vue"), l = require("../../../../utils/page-helper-util.js"), t = require("../../../../utils/events/event-util.js"), a = require("agilebuilder-ui/src/utils/request"), o = require("agilebuilder-ui"), i = require("../../../../utils/eventBus.js"), r = require("../../../../utils/i18n-util.js"), n = require("../../../../utils/common-util.js"), u = require("agilebuilder-ui/src/utils/common-util"), s = e.defineComponent({ __name: "fileupload-runtime", props: { pageContext: {}, configure: {} }, setup(s2, { expose: p }) {
3
+ var _a, _b, _c, _d, _e, _f, _g;
4
+ const d = s2, c = e.ref(null), f = d.configure.runtime ? d.configure.runtime : {}, m = e.ref(f.props ? f.props : {}), v = f.style, h = f.class, g = f.headerStyle, y = f.titleExceedStyle, C = d.pageContext.entity ? d.pageContext.entity : {}, w = d.configure.props.base ? d.configure.props.base : {}, b = R(w.prop), k = R(w.propName);
5
+ let x = e.ref({});
6
+ x.value.isShowWatermark = void 0 === ((_b = (_a = d.configure.props) == null ? void 0 : _a.watermark) == null ? void 0 : _b.isShowWatermark) ? "true" : ((_c = d.configure.props) == null ? void 0 : _c.watermark.isShowWatermark) + "", x.value.content = ((_e = (_d = d.configure.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e.content) ? (_g = (_f = d.configure.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.content : "", b && b.length > 1 && e.watch(() => d.pageContext.entity[b[0]][b[1]], (e2) => {
7
+ j(l.getVariableValue(C, b));
8
+ });
9
+ const q = d.pageContext.code, V = e.ref(b ? q + "__" + b.join("__") : null), N = l.getVariableValue(C, b), P = e.ref(null), S = e.ref(false), B = e.ref([]), _ = e.ref({});
10
+ function j(e2) {
11
+ if (e2) {
12
+ const l2 = e2.split(",");
13
+ if (l2.length > 0) {
14
+ const e3 = d.pageContext.backendUrl, t2 = u.getRelativeBaseUrl(e3 + "/common/fs-upload/search-file-names");
15
+ a.post(t2, l2).then((e4) => {
16
+ B.value = [];
17
+ const t3 = [];
18
+ for (let a2 = 0; a2 < l2.length; a2++) {
19
+ const o2 = l2[a2];
20
+ t3.push(e4[o2]), B.value.push({ showName: e4[o2], serverPath: o2 });
21
+ }
22
+ "input" === m.value.displayType && (_.value.showName = t3.join(","), _.value.serverPath = l2.join(","));
23
+ }).finally(() => {
24
+ S.value = true;
25
+ });
26
+ } else S.value = true;
27
+ } else B.value = [], _.value = {}, S.value = true;
28
+ }
29
+ function R(e2) {
30
+ return e2 ? (e2.startsWith("${") && (e2 = e2.substring(2, e2.length - 1)), e2.split(".")) : [];
31
+ }
32
+ function U(e2) {
33
+ return t.fileUploadBeforeUpload(e2);
34
+ }
35
+ j(N);
36
+ const z = (e2, l2, t2) => {
37
+ D();
38
+ }, T = (e2) => {
39
+ D();
40
+ }, D = () => {
41
+ const e2 = [], t2 = [];
42
+ if (m.value.limit && B.value.length > m.value.limit) {
43
+ const e3 = B.value.length - m.value.limit;
44
+ for (let l2 = 0; l2 < e3; l2++) B.value.shift();
45
+ }
46
+ for (let l2 = 0; l2 < B.value.length; l2++) e2.push(B.value[l2].showName), t2.push(B.value[l2].serverPath);
47
+ l.setVariableValue(d.pageContext.entity, b, t2.join(",")), l.setVariableValue(d.pageContext.entity, k, e2.join(",")), t2.length > 0 && (c.value = "");
48
+ }, F = e.ref(null), I = e.ref(null);
49
+ return e.onMounted(() => {
50
+ i.$on(V.value + "-pickFileDone", (e2) => {
51
+ V.value, P.value.pickFileDone(e2);
52
+ }), e.nextTick(() => {
53
+ const e2 = l.getVariableValue(C, b), a2 = { showName: l.getVariableValue(C, k), serverPath: e2 };
54
+ t.handleAfterInitEvent(a2, d.pageContext, d.configure, { formItemRef: F.value, componentRef: P.value, titleRef: I.value, value: a2, entity: d.pageContext.entity.data, pageData: d.pageContext.entity.page });
55
+ });
56
+ }), e.onUnmounted(() => {
57
+ i.$off(V.value + "-pickFileDone");
58
+ }), p({ addRequiredClass: function() {
59
+ c.value = n.addRequiredClassUtil();
60
+ } }), (l2, t2) => {
61
+ const a2 = e.resolveComponent("el-form-item");
62
+ return m.value.tittleShow ? (e.openBlock(), e.createBlock(a2, { key: 0, ref_key: "formItemRef", ref: F, required: m.value.required, class: e.normalizeClass(e.unref(h) + (c.value ? " " + c.value : "")), "label-width": m.value.labelWidth, style: e.normalizeStyle(e.unref(v)) }, { label: e.withCtx(() => [m.value.tittleShow ? (e.openBlock(), e.createElementBlock("div", { key: 0, ref_key: "titleRef", ref: I, style: e.normalizeStyle({ ...e.unref(g), ...e.unref(y) }) }, e.toDisplayString(e.unref(r.$t)(m.value.title)), 5)) : e.createCommentVNode("", true)]), default: e.withCtx(() => [S.value ? (e.openBlock(), e.createBlock(e.unref(o.FsUploadNew), { key: 0, ref_key: "fileUploadRef", ref: P, style: { width: "100%" }, disabled: "disabled" === m.value.state, displayType: m.value.displayType, accept: m.value.accept, multiple: m.value.multiple, placeholder: m.value.placeholder, limit: m.value.limit, "limit-file-size": m.value.limitFileSize, "disabled-no-preview": m.value.disabledNoPreview, "disabled-no-download": m.value.disabledNoDownload, openCameraOrChoosePhoto: m.value.openCameraOrChoosePhoto, "file-info": _.value, "file-list": B.value, "system-code": l2.pageContext.systemCode, componentId: V.value, watermark: e.unref(x), "on-success": z, "on-remove": T, "before-upload": U, pageContext: l2.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext"])) : e.createCommentVNode("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : S.value ? (e.openBlock(), e.createBlock(e.unref(o.FsUploadNew), { key: 1, ref_key: "fileUploadRef", ref: P, style: { width: "100%" }, disabled: "disabled" === m.value.state, displayType: m.value.displayType, accept: m.value.accept, multiple: m.value.multiple, placeholder: m.value.placeholder, limit: m.value.limit, "limit-file-size": m.value.limitFileSize, "disabled-no-preview": m.value.disabledNoPreview, "disabled-no-download": m.value.disabledNoDownload, openCameraOrChoosePhoto: m.value.openCameraOrChoosePhoto, "file-info": _.value, "file-list": B.value, "system-code": l2.pageContext.systemCode, componentId: V.value, watermark: e.unref(x), "on-success": z, "on-remove": T, "before-upload": U, pageContext: l2.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext"])) : e.createCommentVNode("", true);
63
+ };
64
+ } });
65
+ module.exports = s;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ const e = require("./input-number-runtime.vue2.js");
3
+ module.exports = e;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ const e = require("vue"), t = require("../../../../utils/page-init-util.js"), l = require("../../../../utils/page-helper-util.js"), n = require("../../../../utils/events/event-util.js"), o = require("../common/title-suffix-element.vue.js"), r = require("../../../../utils/i18n-util.js"), a = require("../../../../utils/common-util.js"), u = e.defineComponent({ __name: "input-number-runtime", props: { pageContext: {}, configure: {} }, setup(u2, { expose: i }) {
3
+ const s = u2, p = e.ref(null), c = s.pageContext.entity ? s.pageContext.entity : {};
4
+ let d = t.getFormModelFields(s.pageContext, s.configure);
5
+ const m = e.computed({ get: () => l.getVariableValue(c, d), set(e2) {
6
+ l.setVariableValue(c, d, e2), null != e2 && (p.value = "");
7
+ } }), f = s.configure.runtime ? s.configure.runtime : {}, v = f.style, g = f.class, y = f.headerStyle, x = f.titleExceedStyle, C = e.ref(f.props ? f.props : {}), h = e.ref(null), k = e.ref(null), b = e.ref(null);
8
+ return e.onMounted(() => {
9
+ e.nextTick(() => {
10
+ const e2 = m.value;
11
+ n.handleAfterInitEvent(e2, s.pageContext, s.configure, { formItemRef: h.value, componentRef: k.value, titleRef: b.value, value: e2, entity: s.pageContext.entity.data, pageData: s.pageContext.entity.page });
12
+ });
13
+ }), i({ addRequiredClass: function() {
14
+ p.value = a.addRequiredClassUtil();
15
+ } }), (t2, l2) => {
16
+ const a2 = e.resolveComponent("el-input-number"), u3 = e.resolveComponent("el-form-item");
17
+ return e.openBlock(), e.createBlock(u3, { ref_key: "formItemRef", ref: h, required: C.value.required, class: e.normalizeClass(e.unref(g) + (p.value ? " " + p.value : "")), "label-width": C.value.labelWidth, style: e.normalizeStyle(e.unref(v)) }, { label: e.withCtx(() => [C.value.tittleShow ? (e.openBlock(), e.createElementBlock("div", { key: 0, ref_key: "titleRef", ref: b, style: e.normalizeStyle({ ...e.unref(y), ...e.unref(x) }) }, [C.value.prefixType ? (e.openBlock(), e.createBlock(o, { key: 0, pageContext: t2.pageContext, property: C.value }, null, 8, ["pageContext", "property"])) : (e.openBlock(), e.createElementBlock(e.Fragment, { key: 1 }, [e.createTextVNode(e.toDisplayString(e.unref(r.$t)(C.value.title)), 1)], 64))], 4)) : e.createCommentVNode("", true)]), default: e.withCtx(() => [e.createVNode(a2, { ref_key: "componentRef", ref: k, disabled: "disabled" === C.value.state, readonly: "readonly" === C.value.state, controls: C.value.showButton, size: C.value.size, placeholder: C.value.placeholder, modelValue: m.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e2) => m.value = e2), precision: C.value.precision, step: C.value.step, min: C.value.min, max: C.value.max, onChange: l2[1] || (l2[1] = (l3) => e.unref(n.handleFormEvent)(l3, t2.pageContext, t2.configure, "change")), onBlur: l2[2] || (l2[2] = (l3) => e.unref(n.handleFormEvent)(l3, t2.pageContext, t2.configure, "blur")), onFocus: l2[3] || (l2[3] = (l3) => e.unref(n.handleFormEvent)(l3, t2.pageContext, t2.configure, "focus")) }, null, 8, ["disabled", "readonly", "controls", "size", "placeholder", "modelValue", "precision", "step", "min", "max"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
18
+ };
19
+ } });
20
+ module.exports = u;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ const e = require("./inputtext-runtime.vue2.js");
3
+ module.exports = e;
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ const e = require("vue"), t = require("agilebuilder-ui"), n = require("../../../../utils/page-init-util.js"), l = require("../../../../utils/page-helper-util.js"), o = require("../../../../utils/events/event-util.js"), a = require("../../../../utils/form/scan-util.js"), u = require("../common/title-suffix-element.vue.js"), r = require("agilebuilder-ui/src/utils/common-util"), i = require("../../../../utils/eventBus.js"), c = require("../../../../utils/i18n-util.js"), s = require("../../../../utils/common-util.js"), p = e.defineComponent({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(p2, { expose: f }) {
3
+ var _a, _b, _c;
4
+ const v = p2, d = v.pageContext.entity ? v.pageContext.entity : {}, g = e.ref("text");
5
+ let m = n.getFormModelFields(v.pageContext, v.configure);
6
+ if (v.pageContext.modelFieldsMap) {
7
+ const e2 = l.getModelFieldFromPageContext(m, v.pageContext);
8
+ e2 && (g.value = l.isNumberDataType(e2.dataType) ? "number" : "text");
9
+ }
10
+ const y = e.ref(r.isMobileBrowser()), x = v.pageContext.code, C = e.ref(m && m.length > 0 ? x + "__" + m.join("__") : null), k = e.ref(null), V = e.computed({ get: () => l.getVariableValue(d, m), set(e2) {
11
+ l.setVariableValue(d, m, e2), null != e2 && "" !== e2 && (k.value = "");
12
+ } }), h = e.ref(null), w = e.ref(null), T = e.ref(null), I = v.configure.runtime ? v.configure.runtime : {}, S = e.ref(I.props ? I.props : {}), b = e.ref(!!((_a = S.value.scan) == null ? void 0 : _a.enable));
13
+ let B = false;
14
+ const N = window.localStorage.getItem("auth_source");
15
+ N && "dingtalk" === N && (B = true);
16
+ let q = "";
17
+ const E = navigator.userAgent;
18
+ q = E.indexOf(" uni-app ") > 0 ? "app" : "browser";
19
+ const F = !(!y.value || !q || "app" !== q), _ = e.ref(!!((F || B) && b.value || y.value && b.value && "https:" === window.location.protocol));
20
+ let D = {};
21
+ ((_b = S.value.scan) == null ? void 0 : _b.enable) && ((_c = S.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (a.formatScanRuleSets(S.value.scan.ruleList).then((e2) => {
22
+ D = e2;
23
+ }), e.watch(() => V.value, (e2) => {
24
+ e2 = e2.trim();
25
+ const t2 = a.analysisScanValue(e2, D);
26
+ t2 && a.setScanAnalysisValue(v.pageContext, t2.scanSet, t2.params);
27
+ }));
28
+ const O = I.style, j = I.class, P = I.headerStyle, R = I.titleExceedStyle;
29
+ function M(e2) {
30
+ return l.setVariableValue(d, m, e2);
31
+ }
32
+ e.onMounted(() => {
33
+ i.$on(C.value + "-scanDone", (e2) => {
34
+ C.value, JSON.stringify(e2), M(e2.result), o.handleFormEvent(e2.result, v.pageContext, v.configure, "afterScanDone");
35
+ }), e.nextTick(() => {
36
+ var _a2;
37
+ const e2 = V.value;
38
+ o.handleAfterInitEvent(e2, v.pageContext, v.configure, { formItemRef: h.value, componentRef: w.value, titleRef: T.value, value: e2, entity: v.pageContext.entity.data, pageData: v.pageContext.entity.page }), _.value && ((_a2 = S.value.scan) == null ? void 0 : _a2.autoOpen) && z();
39
+ });
40
+ }), e.onUnmounted(() => {
41
+ i.$off(C.value + "-scanDone");
42
+ });
43
+ const $ = e.ref(false);
44
+ function z() {
45
+ if (F || B) {
46
+ const e2 = { type: "scan", componentId: C.value, systemCode: v.pageContext.systemCode };
47
+ B && (e2.type = "dingTalkScan"), window.parent.parent ? (window.parent.parent, window.parent.parent.postMessage(JSON.stringify(e2), "*")) : window.parent && (window.parent, window.parent.postMessage(JSON.stringify(e2), "*"));
48
+ } else if (y.value) if ("https:" === window.location.protocol) $.value = true;
49
+ else {
50
+ const e2 = { type: "scan", componentId: C.value, systemCode: v.pageContext.systemCode };
51
+ window.parent.postMessage(JSON.stringify(e2), "*");
52
+ }
53
+ else $.value = true;
54
+ }
55
+ function J(e2) {
56
+ $.value = false, M(e2);
57
+ }
58
+ return f({ getValue: function() {
59
+ return l.getVariableValue(d, m);
60
+ }, setValue: M, scanClick: z, addRequiredClass: function() {
61
+ k.value = s.addRequiredClassUtil();
62
+ } }), (n2, a2) => {
63
+ const r2 = e.resolveComponent("el-input"), i2 = e.resolveComponent("scan-code-input-browser"), s2 = e.resolveComponent("el-form-item");
64
+ return e.openBlock(), e.createBlock(s2, { ref_key: "formItemRef", ref: h, required: !!S.value.required, class: e.normalizeClass(e.unref(j) + (k.value ? " " + k.value : "")), "label-width": S.value.labelWidth, style: e.normalizeStyle(e.unref(O)) }, { label: e.withCtx(() => [S.value.tittleShow ? (e.openBlock(), e.createElementBlock("div", { key: 0, ref_key: "titleRef", ref: T, style: e.normalizeStyle({ ...e.unref(P), ...e.unref(R) }) }, [S.value.prefixType ? (e.openBlock(), e.createBlock(u, { key: 0, pageContext: n2.pageContext, property: S.value }, null, 8, ["pageContext", "property"])) : (e.openBlock(), e.createElementBlock(e.Fragment, { key: 1 }, [e.createTextVNode(e.toDisplayString(e.unref(c.$t)(S.value.title)), 1)], 64))], 4)) : e.createCommentVNode("", true)]), default: e.withCtx(() => [e.createVNode(r2, { ref_key: "componentRef", ref: w, disabled: "disabled" === S.value.state, readonly: "readonly" === S.value.state, size: S.value.size, clearable: S.value.clearable, placeholder: S.value.placeholder, maxlength: S.value.maxLength, "show-word-limit": S.value.showInputNum, type: g.value, modelValue: V.value, "onUpdate:modelValue": a2[5] || (a2[5] = (e2) => V.value = e2), onInput: a2[6] || (a2[6] = (t2) => e.unref(o.handleFormEvent)(t2, n2.pageContext, n2.configure, "input")), onChange: a2[7] || (a2[7] = (t2) => e.unref(o.handleFormEvent)(t2, n2.pageContext, n2.configure, "change")), onBlur: a2[8] || (a2[8] = (e2) => function(e3) {
65
+ let t2 = l.getVariableValue(d, m);
66
+ null != t2 && (t2 = t2.trim()), l.setVariableValue(d, m, t2), o.handleFormEvent(e3, v.pageContext, v.configure, "blur");
67
+ }(e2)), onFocus: a2[9] || (a2[9] = (t2) => e.unref(o.handleFormEvent)(t2, n2.pageContext, n2.configure, "focus")), onClick: a2[10] || (a2[10] = (t2) => e.unref(o.handleFormEvent)(t2, n2.pageContext, n2.configure, "click")), onClear: a2[11] || (a2[11] = (t2) => e.unref(o.handleFormEvent)(t2, n2.pageContext, n2.configure, "clear")) }, e.createSlots({ _: 2 }, ["outer" != S.value.iconPosition && (S.value.preIconType && S.value.preIconValue || S.value.preText) ? { name: "prefix", fn: e.withCtx(() => [S.value.preIconType && S.value.preIconValue ? (e.openBlock(), e.createBlock(e.unref(t.SuperIcon), { key: 0, style: { cursor: "pointer" }, iconType: S.value.preIconType, iconValue: S.value.preIconValue, onClick: a2[0] || (a2[0] = (t2) => e.unref(o.doSuffixOrPrefixClickEvent)(V.value, n2.pageContext, n2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : e.createCommentVNode("", true), e.createTextVNode(" " + e.toDisplayString(e.unref(c.$t)(S.value.preText)), 1)]), key: "0" } : void 0, "outer" == S.value.iconPosition && (S.value.preIconType && S.value.preIconValue || S.value.preText) ? { name: "prepend", fn: e.withCtx(() => [S.value.preIconType && S.value.preIconValue ? (e.openBlock(), e.createBlock(e.unref(t.SuperIcon), { key: 0, style: { cursor: "pointer" }, iconType: S.value.preIconType, iconValue: S.value.preIconValue, onClick: a2[1] || (a2[1] = (t2) => e.unref(o.doSuffixOrPrefixClickEvent)(V.value, n2.pageContext, n2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : e.createCommentVNode("", true), e.createTextVNode(" " + e.toDisplayString(e.unref(c.$t)(S.value.preText)), 1)]), key: "1" } : void 0, "outer" != S.value.iconPosition && (S.value.sufIconType && S.value.sufIconValue || S.value.sufText) ? { name: "suffix", fn: e.withCtx(() => [S.value.sufIconType && S.value.sufIconValue ? (e.openBlock(), e.createBlock(e.unref(t.SuperIcon), { key: 0, style: { cursor: "pointer" }, iconType: S.value.sufIconType, iconValue: S.value.sufIconValue, onClick: a2[2] || (a2[2] = (t2) => e.unref(o.doSuffixOrPrefixClickEvent)(V.value, n2.pageContext, n2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : e.createCommentVNode("", true), e.createTextVNode(" " + e.toDisplayString(e.unref(c.$t)(S.value.sufText)), 1)]), key: "2" } : void 0, _.value || "outer" == S.value.iconPosition && (S.value.sufIconType && S.value.sufIconValue || S.value.sufText) ? { name: "append", fn: e.withCtx(() => [_.value ? (e.openBlock(), e.createBlock(e.unref(t.SuperIcon), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: a2[3] || (a2[3] = (e2) => z()) })) : e.createCommentVNode("", true), S.value.sufIconType && S.value.sufIconValue ? (e.openBlock(), e.createBlock(e.unref(t.SuperIcon), { key: 1, style: { cursor: "pointer" }, iconType: S.value.sufIconType, iconValue: S.value.sufIconValue, onClick: a2[4] || (a2[4] = (t2) => e.unref(o.doSuffixOrPrefixClickEvent)(V.value, n2.pageContext, n2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : e.createCommentVNode("", true), e.createTextVNode(" " + e.toDisplayString(e.unref(c.$t)(S.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), $.value ? (e.openBlock(), e.createBlock(i2, { key: 0, onClose: J })) : e.createCommentVNode("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
68
+ };
69
+ } });
70
+ module.exports = p;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ const e = require("./label-runtime.vue2.js");
3
+ ;/* empty css */
4
+ const r = require("../../../../../../_virtual/_plugin-vue_export-helper.js")(e, [["__scopeId", "data-v-2ffad4a6"]]);
5
+ module.exports = r;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ const e = require("vue"), t = require("../../../../utils/page-init-util.js"), l = require("../../../../utils/page-helper-util.js"), n = require("agilebuilder-ui"), o = require("../../../../utils/events/event-util.js"), a = require("../../../../utils/i18n-util.js"), u = { style: { width: "100%", "text-align": "center", "font-weight": "700", "font-size": "24px" } }, i = { style: { overflow: "hidden", "white-space": "nowrap" } }, r = ["title"], s = e.defineComponent({ __name: "label-runtime", props: { pageContext: {}, configure: {} }, setup(s2, { expose: c }) {
3
+ const p = s2, f = p.pageContext.entity ? p.pageContext.entity : {};
4
+ let v = t.getFormModelFields(p.pageContext, p.configure);
5
+ const y = p.configure.runtime ? p.configure.runtime : {}, m = y.style, d = y.class, g = y.headerStyle, k = y.appendClass, x = y.appendStyle, C = y.titleExceedStyle, V = e.ref(y.props ? y.props : {});
6
+ const h = e.ref(V.value.options ? V.value.options : []), T = V.value.formatType;
7
+ V.value;
8
+ const S = e.computed(() => {
9
+ let e2 = l.getVariableValue(f, v);
10
+ if (T) if (V.value.hasOptions) {
11
+ let t2 = null;
12
+ h.value && (t2 = h.value.filter((t3) => t3.value == e2)), t2 && t2.length > 0 && (e2 = t2[0].label);
13
+ } else if ("custom" === T) {
14
+ const t2 = o.getCustomFunc(p.pageContext, V.value.formatFunc);
15
+ t2 && (e2 = t2.apply(t2, [{ pageContext: p.pageContext, configureObj: p.configure, value: e2 }]));
16
+ } else e2 = l.formatValueByType(e2, T, V.value);
17
+ return e2 = null == e2 ? "" : e2, e2;
18
+ }), w = e.ref(null), B = e.ref(null), I = e.ref(null);
19
+ return e.onMounted(() => {
20
+ e.nextTick(() => {
21
+ const e2 = S.value;
22
+ o.handleAfterInitEvent(e2, p.pageContext, p.configure, { formItemRef: w.value, componentRef: B.value, titleRef: I.value, value: e2, entity: p.pageContext.entity.data, pageData: p.pageContext.entity.page });
23
+ });
24
+ }), c({ updateOptions: function(e2) {
25
+ h.value = e2 || [];
26
+ } }), (t2, l2) => {
27
+ const s3 = e.resolveComponent("el-form-item");
28
+ return V.value.whetherTittle ? (e.openBlock(), e.createElementBlock("div", { key: 0, ref_key: "titleRef", ref: I, class: e.normalizeClass(e.unref(d)), style: e.normalizeStyle(e.unref(m)) }, [e.createElementVNode("div", u, e.toDisplayString(V.value.title), 1)], 6)) : V.value.tittleShow ? (e.openBlock(), e.createBlock(s3, { key: 1, ref_key: "formItemRef", ref: w, required: !!V.value.required, class: e.normalizeClass([e.unref(d), V.value.contentAlign ? "form-item-align-" + V.value.contentAlign : "formNo" === V.value.showType ? "form-item-align-flex-end" : ""]), "label-width": V.value.labelWidth, style: e.normalizeStyle(e.unref(m)) }, { label: e.withCtx(() => [V.value.tittleShow ? (e.openBlock(), e.createElementBlock("div", { key: 0, ref_key: "titleRef", ref: I, style: e.normalizeStyle({ ...e.unref(g), ...e.unref(C) }) }, e.toDisplayString(e.unref(a.$t)(V.value.title)), 5)) : e.createCommentVNode("", true)]), default: e.withCtx(() => [e.createElementVNode("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: B, onClick: l2[0] || (l2[0] = (l3) => e.unref(o.handleFormEvent)(l3, t2.pageContext, t2.configure, "click")) }, [e.createElementVNode("span", i, [V.value.preIconValue || V.value.preText ? (e.openBlock(), e.createElementBlock("span", { key: 0, class: e.normalizeClass({ "el-input__suffix": "outer" != V.value.iconPosition, "el-input-group__append": "outer" == V.value.iconPosition }), style: e.normalizeStyle(e.unref(x)) }, [V.value.preIconType && V.value.preIconValue ? (e.openBlock(), e.createBlock(e.unref(n.SuperIcon), { key: 0, iconType: V.value.preIconType, iconValue: V.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : e.createCommentVNode("", true), e.createTextVNode(" " + e.toDisplayString(e.unref(a.$t)(V.value.preText)), 1)], 6)) : e.createCommentVNode("", true), e.createTextVNode("  " + e.toDisplayString(S.value), 1)]), V.value.sufIconValue || V.value.sufText ? (e.openBlock(), e.createElementBlock("span", { key: 0, class: e.normalizeClass({ "el-input__suffix": "outer" != V.value.iconPosition, "el-input-group__append": "outer" == V.value.iconPosition }) }, [V.value.sufIconType && V.value.sufIconValue ? (e.openBlock(), e.createBlock(e.unref(n.SuperIcon), { key: 0, style: {}, iconType: V.value.sufIconType, iconValue: V.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : e.createCommentVNode("", true), e.createElementVNode("span", null, " " + e.toDisplayString(e.unref(a.$t)(V.value.sufText)), 1)], 2)) : e.createCommentVNode("", true)], 512)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : (e.openBlock(), e.createElementBlock("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: l2[1] || (l2[1] = (l3) => e.unref(o.handleFormEvent)(l3, t2.pageContext, t2.configure, "click")) }, [e.createElementVNode("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: S.value }, e.toDisplayString(V.value.prefixIcon) + " " + e.toDisplayString(S.value), 9, r), V.value.suffixTxt ? (e.openBlock(), e.createElementBlock("span", { key: 0, class: e.normalizeClass(e.unref(k)), style: e.normalizeStyle(e.unref(x)) }, e.toDisplayString(V.value.suffixTxt), 7)) : e.createCommentVNode("", true)]));
29
+ };
30
+ } });
31
+ module.exports = s;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ const e = require("./link-runtime.vue2.js");
3
+ module.exports = e;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ const e = require("vue"), t = require("../../../../utils/page-init-util.js"), l = require("../../../../utils/page-helper-util.js"), n = require("../../../../utils/events/event-util.js"), r = require("../../../../utils/i18n-util.js"), a = e.defineComponent({ __name: "link-runtime", props: { pageContext: {}, configure: {} }, setup(a2) {
3
+ const i = a2, o = t.getFormModelFields(i.pageContext, i.configure), u = i.configure.runtime ? i.configure.runtime : {}, s = u.style, p = u.class, c = u.headerStyle, f = e.ref(u.props ? u.props : {});
4
+ f.value;
5
+ let d = f.value.formatting;
6
+ const m = i.pageContext.entity ? i.pageContext.entity : {}, g = e.computed(() => {
7
+ let e2 = l.getVariableValue(m, o);
8
+ return e2 = null == e2 || null == e2 ? "" : e2, d && (e2 = d.replace(/\${value}/g, e2)), e2;
9
+ });
10
+ let v = f.value.tooltip, y = null;
11
+ v && (y = e.computed(() => {
12
+ let e2 = l.getVariableValue(m, o);
13
+ return e2 = null == e2 || null == e2 ? "" : e2, v.replace(/\${value}/g, e2);
14
+ }));
15
+ const C = e.ref(null), x = e.ref(null), k = e.ref(null);
16
+ return e.onMounted(() => {
17
+ e.nextTick(() => {
18
+ const e2 = g.value;
19
+ n.handleAfterInitEvent(e2, i.pageContext, i.configure, { formItemRef: C.value, componentRef: x.value, titleRef: k.value, value: e2, entity: i.pageContext.entity.data, pageData: i.pageContext.entity.page });
20
+ });
21
+ }), (t2, l2) => {
22
+ const a3 = e.resolveComponent("el-link"), i2 = e.resolveComponent("el-tooltip"), o2 = e.resolveComponent("el-form-item");
23
+ return e.openBlock(), e.createBlock(o2, { ref_key: "formItemRef", ref: C, class: e.normalizeClass(e.unref(p)), "label-width": f.value.labelWidth, style: e.normalizeStyle(e.unref(s)) }, { label: e.withCtx(() => [f.value.tittleShow ? (e.openBlock(), e.createElementBlock("div", { key: 0, ref_key: "titleRef", ref: k, style: e.normalizeStyle({ ...e.unref(c) }) }, e.toDisplayString(e.unref(r.$t)(f.value.title)), 5)) : e.createCommentVNode("", true)]), default: e.withCtx(() => [e.createVNode(i2, { disabled: !e.unref(y), content: e.unref(y) }, { default: e.withCtx(() => [e.createVNode(a3, { ref_key: "componentRef", ref: x, disabled: "disabled" === f.value.state, type: f.value.type, underline: f.value.underline, onClick: l2[0] || (l2[0] = (l3) => e.unref(n.handleEvent)(l3, t2.pageContext, t2.configure, "click", { skipValidate: true })) }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(g.value), 1)]), _: 1 }, 8, ["disabled", "type", "underline"])]), _: 1 }, 8, ["disabled", "content"])]), _: 1 }, 8, ["class", "label-width", "style"]);
24
+ };
25
+ } });
26
+ module.exports = a;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ const e = require("./placeholder-runtime.vue2.js");
3
+ ;/* empty css */
4
+ const r = require("../../../../../../_virtual/_plugin-vue_export-helper.js")(e, [["__scopeId", "data-v-96fc65d8"]]);
5
+ module.exports = r;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ const e = require("vue"), t = require("../../../../utils/events/event-util.js"), n = e.defineComponent({ __name: "placeholder-runtime", props: { pageContext: {}, configure: {} }, setup(n2) {
3
+ const r = n2, o = r.configure.runtime ? r.configure.runtime : {}, l = o.style, u = o.class, i = e.ref(null), a = e.ref(null);
4
+ return e.onMounted(() => {
5
+ e.nextTick(() => {
6
+ t.handleAfterInitEvent(null, r.pageContext, r.configure, { formItemRef: i.value, componentRef: a.value, entity: r.pageContext.entity.data, pageData: r.pageContext.entity.page });
7
+ });
8
+ }), (t2, n3) => {
9
+ const r2 = e.resolveComponent("el-form-item");
10
+ return e.openBlock(), e.createBlock(r2, { ref_key: "formItemRef", ref: i, class: e.normalizeClass(e.unref(u)), style: e.normalizeStyle(e.unref(l)) }, { default: e.withCtx(() => [e.createElementVNode("div", { ref_key: "componentRef", ref: a, style: { width: "100%", height: "100%" } }, " ", 512)]), _: 1 }, 8, ["class", "style"]);
11
+ };
12
+ } });
13
+ module.exports = n;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ const e = require("./radio-runtime.vue2.js");
3
+ module.exports = e;