super-page-runtime 1.0.15 → 1.0.16

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 (483) hide show
  1. package/.eslintrc.cjs +26 -0
  2. package/.prettierrc.json +8 -0
  3. package/App.vue +9 -0
  4. package/components/index.ts +17 -0
  5. package/components/runtime/index.ts +2 -0
  6. package/components/runtime/utils/assemblys-config.js +294 -0
  7. package/components/runtime/views/assemblys/button/button/button-runtime.vue +49 -0
  8. package/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue +26 -0
  9. package/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue +93 -0
  10. package/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue +59 -0
  11. package/components/runtime/views/assemblys/chart/common/common-attr-assistant.vue +32 -0
  12. package/components/runtime/views/assemblys/chart/common/common-attr-base.vue +60 -0
  13. package/components/runtime/views/assemblys/chart/common/common-attr-drill.vue +39 -0
  14. package/components/runtime/views/assemblys/chart/common/common-attr-groupby.vue +104 -0
  15. package/components/runtime/views/assemblys/chart/common/common-attr-serieslist.vue +145 -0
  16. package/components/runtime/views/assemblys/chart/common/common-attr-sortby.vue +119 -0
  17. package/components/runtime/views/assemblys/chart/common/common-style-custom.vue +28 -0
  18. package/components/runtime/views/assemblys/chart/common/common-style-datazoom.vue +45 -0
  19. package/components/runtime/views/assemblys/chart/common/common-style-font-subtitle.vue +78 -0
  20. package/components/runtime/views/assemblys/chart/common/common-style-font-title.vue +56 -0
  21. package/components/runtime/views/assemblys/chart/common/common-style-grid.vue +70 -0
  22. package/components/runtime/views/assemblys/chart/common/common-style-legend.vue +70 -0
  23. package/components/runtime/views/assemblys/chart/common/common-style-tooltip.vue +140 -0
  24. package/components/runtime/views/assemblys/chart/common/common-style-xaxis.vue +58 -0
  25. package/components/runtime/views/assemblys/chart/common/common-style-yaxis.vue +125 -0
  26. package/components/runtime/views/assemblys/chart/common-series/common-attr-dataset.vue +67 -0
  27. package/components/runtime/views/assemblys/chart/common-series/common-attr-dynamic.vue +57 -0
  28. package/components/runtime/views/assemblys/chart/common-series/common-attr-testdatas.vue +23 -0
  29. package/components/runtime/views/assemblys/chart/common-series/common-style-label.vue +209 -0
  30. package/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue +46 -0
  31. package/components/runtime/views/assemblys/chart/pie/pie-runtime.vue +56 -0
  32. package/components/runtime/views/assemblys/chart/radar/radar-runtime.vue +55 -0
  33. package/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue +57 -0
  34. package/components/runtime/views/assemblys/common/common-attr-cursor.vue +23 -0
  35. package/components/runtime/views/assemblys/common/common-attr-size.vue +54 -0
  36. package/components/runtime/views/assemblys/common/common-select-table.vue +287 -0
  37. package/components/runtime/views/assemblys/common/common-style-background.vue +46 -0
  38. package/components/runtime/views/assemblys/common/common-style-border.vue +37 -0
  39. package/components/runtime/views/assemblys/common/common-style-custom.vue +35 -0
  40. package/components/runtime/views/assemblys/common/common-style-font-head.vue +53 -0
  41. package/components/runtime/views/assemblys/common/common-style-font.vue +53 -0
  42. package/components/runtime/views/assemblys/common/common-style-margin.vue +34 -0
  43. package/components/runtime/views/assemblys/common/common-style-padding.vue +34 -0
  44. package/components/runtime/views/assemblys/common/common-style-position.vue +39 -0
  45. package/components/runtime/views/assemblys/common/common-style-shadow.vue +37 -0
  46. package/components/runtime/views/assemblys/common/export-form-report-dialog.vue +108 -0
  47. package/components/runtime/views/assemblys/common/remove-signer-dialog.vue +99 -0
  48. package/components/runtime/views/assemblys/common/task-informition-dialog.vue +69 -0
  49. package/components/runtime/views/assemblys/common-attr-events.vue +46 -0
  50. package/components/runtime/views/assemblys/container/card/card-runtime.vue +59 -0
  51. package/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue +59 -0
  52. package/components/runtime/views/assemblys/container/container/container-runtime.vue +41 -0
  53. package/components/runtime/views/assemblys/container/flex/flex-runtime.vue +35 -0
  54. package/components/runtime/views/assemblys/container/form/form-runtime.vue +37 -0
  55. package/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue +32 -0
  56. package/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue +54 -0
  57. package/components/runtime/views/assemblys/container/tools/tools-runtime.vue +99 -0
  58. package/components/runtime/views/assemblys/data/bar-code/barcode-attr-base.vue +117 -0
  59. package/components/runtime/views/assemblys/data/bar-code/barcode-attr-event.vue +14 -0
  60. package/components/runtime/views/assemblys/data/bar-code/barcode-attr-style.vue +25 -0
  61. package/components/runtime/views/assemblys/data/bar-code/barcode-attr.vue +28 -0
  62. package/components/runtime/views/assemblys/data/bar-code/barcode-design.vue +103 -0
  63. package/components/runtime/views/assemblys/data/component/attr-header.vue +69 -0
  64. package/components/runtime/views/assemblys/data/component/attr-style.vue +64 -0
  65. package/components/runtime/views/assemblys/data/component/column-config.vue +171 -0
  66. package/components/runtime/views/assemblys/data/component/combinedHeader.vue +96 -0
  67. package/components/runtime/views/assemblys/data/component/composite-header.vue +257 -0
  68. package/components/runtime/views/assemblys/data/component/configuration-value.vue +206 -0
  69. package/components/runtime/views/assemblys/data/component/data-origin-tree.vue +117 -0
  70. package/components/runtime/views/assemblys/data/component/data-origin.vue +260 -0
  71. package/components/runtime/views/assemblys/data/component/formatting.vue +200 -0
  72. package/components/runtime/views/assemblys/data/component/in-parameter.vue +56 -0
  73. package/components/runtime/views/assemblys/data/component/querySetting.vue +52 -0
  74. package/components/runtime/views/assemblys/data/component/return-set-table.vue +91 -0
  75. package/components/runtime/views/assemblys/data/component/row-backgroud-color.vue +58 -0
  76. package/components/runtime/views/assemblys/data/component/select-data-table.vue +86 -0
  77. package/components/runtime/views/assemblys/data/table/main-table-runtime.vue +858 -0
  78. package/components/runtime/views/assemblys/data/table/sub-table-runtime.vue +625 -0
  79. package/components/runtime/views/assemblys/data/table/table-runtime.vue +93 -0
  80. package/components/runtime/views/assemblys/data/tree/tree-attr-base.vue +137 -0
  81. package/components/runtime/views/assemblys/data/tree/tree-attr-event.vue +14 -0
  82. package/components/runtime/views/assemblys/data/tree/tree-attr-style.vue +55 -0
  83. package/components/runtime/views/assemblys/data/tree/tree-attr.vue +28 -0
  84. package/components/runtime/views/assemblys/data/tree/tree-design.vue +125 -0
  85. package/components/runtime/views/assemblys/error-attr.vue +15 -0
  86. package/components/runtime/views/assemblys/error-render.vue +17 -0
  87. package/components/runtime/views/assemblys/form/cascader/cascader-design.vue +288 -0
  88. package/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue +198 -0
  89. package/components/runtime/views/assemblys/form/colors/colors-design.vue +16 -0
  90. package/components/runtime/views/assemblys/form/common/analytic-rule.vue +148 -0
  91. package/components/runtime/views/assemblys/form/common/attr-event.vue +82 -0
  92. package/components/runtime/views/assemblys/form/common/attr-header.vue +54 -0
  93. package/components/runtime/views/assemblys/form/common/attr-style.vue +44 -0
  94. package/components/runtime/views/assemblys/form/common/bar-code-rule.vue +104 -0
  95. package/components/runtime/views/assemblys/form/common/condition.vue +147 -0
  96. package/components/runtime/views/assemblys/form/common/data-origin.vue +81 -0
  97. package/components/runtime/views/assemblys/form/common/data-orign-in-parameter.vue +64 -0
  98. package/components/runtime/views/assemblys/form/common/dataorigin-input-table.vue +106 -0
  99. package/components/runtime/views/assemblys/form/common/default-value-setting.vue +362 -0
  100. package/components/runtime/views/assemblys/form/common/dimension-input.vue +68 -0
  101. package/components/runtime/views/assemblys/form/common/dynamic-data-source-setting.vue +115 -0
  102. package/components/runtime/views/assemblys/form/common/formatting-label.vue +81 -0
  103. package/components/runtime/views/assemblys/form/common/grid-num-select.vue +43 -0
  104. package/components/runtime/views/assemblys/form/common/icon-set-dialog.vue +144 -0
  105. package/components/runtime/views/assemblys/form/common/linkage.vue +21 -0
  106. package/components/runtime/views/assemblys/form/common/overall-height.vue +20 -0
  107. package/components/runtime/views/assemblys/form/common/overall-width.vue +48 -0
  108. package/components/runtime/views/assemblys/form/common/pre-suffix.vue +33 -0
  109. package/components/runtime/views/assemblys/form/common/rich-text.vue +100 -0
  110. package/components/runtime/views/assemblys/form/common/row-ul-li.vue +55 -0
  111. package/components/runtime/views/assemblys/form/common/setoption-table.vue +86 -0
  112. package/components/runtime/views/assemblys/form/common/size-input.vue +65 -0
  113. package/components/runtime/views/assemblys/form/common/suffixmodule.vue +82 -0
  114. package/components/runtime/views/assemblys/form/common/title.vue +20 -0
  115. package/components/runtime/views/assemblys/form/common/uploading.vue +34 -0
  116. package/components/runtime/views/assemblys/form/common/verification.vue +79 -0
  117. package/components/runtime/views/assemblys/form/common/voluntarily.vue +27 -0
  118. package/components/runtime/views/assemblys/form/custom/custom-attr-base.vue +81 -0
  119. package/components/runtime/views/assemblys/form/custom/custom-attr-event.vue +14 -0
  120. package/components/runtime/views/assemblys/form/custom/custom-attr-style.vue +14 -0
  121. package/components/runtime/views/assemblys/form/custom/custom-attr.vue +28 -0
  122. package/components/runtime/views/assemblys/form/custom/custom-design.vue +57 -0
  123. package/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue +80 -0
  124. package/components/runtime/views/assemblys/form/datetime/datetime-design.vue +19 -0
  125. package/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue +60 -0
  126. package/components/runtime/views/assemblys/form/divider/divider-runtime.vue +44 -0
  127. package/components/runtime/views/assemblys/form/file-picture/picture-design.vue +80 -0
  128. package/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue +79 -0
  129. package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-base.vue +142 -0
  130. package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-event.vue +14 -0
  131. package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-style.vue +14 -0
  132. package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr.vue +28 -0
  133. package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-design.vue +104 -0
  134. package/components/runtime/views/assemblys/form/image-upload/imageupload-attr-base.vue +75 -0
  135. package/components/runtime/views/assemblys/form/image-upload/imageupload-attr-event.vue +13 -0
  136. package/components/runtime/views/assemblys/form/image-upload/imageupload-attr-style.vue +14 -0
  137. package/components/runtime/views/assemblys/form/image-upload/imageupload-attr.vue +28 -0
  138. package/components/runtime/views/assemblys/form/image-upload/imageupload-design.vue +76 -0
  139. package/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue +62 -0
  140. package/components/runtime/views/assemblys/form/input-show/input-show-attr-base.vue +68 -0
  141. package/components/runtime/views/assemblys/form/input-show/input-show-attr-event.vue +14 -0
  142. package/components/runtime/views/assemblys/form/input-show/input-show-attr-style.vue +70 -0
  143. package/components/runtime/views/assemblys/form/input-show/input-show-attr.vue +28 -0
  144. package/components/runtime/views/assemblys/form/input-show/input-show-design.vue +155 -0
  145. package/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue +142 -0
  146. package/components/runtime/views/assemblys/form/label/label-runtime.vue +143 -0
  147. package/components/runtime/views/assemblys/form/link/link-runtime.vue +70 -0
  148. package/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue +24 -0
  149. package/components/runtime/views/assemblys/form/radio/radio-runtime.vue +203 -0
  150. package/components/runtime/views/assemblys/form/rate/rate-design.vue +16 -0
  151. package/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue +169 -0
  152. package/components/runtime/views/assemblys/form/select/select-runtime.vue +247 -0
  153. package/components/runtime/views/assemblys/form/slider/slider-design.vue +16 -0
  154. package/components/runtime/views/assemblys/form/switch/switch-runtime.vue +63 -0
  155. package/components/runtime/views/assemblys/form/tag/tag-runtime.vue +65 -0
  156. package/components/runtime/views/assemblys/form/text/text-design.vue +19 -0
  157. package/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue +63 -0
  158. package/components/runtime/views/assemblys/form/transfer/transfer-design.vue +32 -0
  159. package/components/runtime/views/assemblys/object-render.vue +176 -0
  160. package/components/runtime/views/assemblys/page/page-attr-base-20240429-1.vue +179 -0
  161. package/components/runtime/views/assemblys/page/page-attr-base.vue +259 -0
  162. package/components/runtime/views/assemblys/page/page-attr-events.vue +50 -0
  163. package/components/runtime/views/assemblys/page/page-attr-style.vue +25 -0
  164. package/components/runtime/views/assemblys/page/page-attr.vue +84 -0
  165. package/components/runtime/views/assemblys/page/variable-dialog.vue +242 -0
  166. package/components/runtime/views/assemblys/workflow/component/combination.vue +206 -0
  167. package/components/runtime/views/assemblys/workflow/component/condition-dialog.vue +99 -0
  168. package/components/runtime/views/assemblys/workflow/component/event-dialog.vue +278 -0
  169. package/components/runtime/views/assemblys/workflow/component/journal-set-dialog.vue +174 -0
  170. package/components/runtime/views/assemblys/workflow/component/logical-setup-dialog.vue +155 -0
  171. package/components/runtime/views/assemblys/workflow/component/rule-dialog.vue +47 -0
  172. package/components/runtime/views/assemblys/workflow/component/set-dialog.vue +130 -0
  173. package/components/runtime/views/assemblys/workflow/component/task-trigger-dialog.vue +96 -0
  174. package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-base.vue +43 -0
  175. package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-event.vue +14 -0
  176. package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-style.vue +27 -0
  177. package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr.vue +28 -0
  178. package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-design.vue +17 -0
  179. package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-base.vue +60 -0
  180. package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-event.vue +14 -0
  181. package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-style.vue +27 -0
  182. package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr.vue +28 -0
  183. package/components/runtime/views/assemblys/workflow/text-history/texthistory-design.vue +17 -0
  184. package/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue +64 -0
  185. package/components/runtime/views/render/page-view.vue +80 -0
  186. package/components/runtime/views/super-page copy.vue +61 -0
  187. package/components/runtime/views/super-page.vue +667 -0
  188. package/components/super-page-dialog/index.ts +2 -0
  189. package/components/super-page-dialog/super-page-dialog.vue +267 -0
  190. package/components/wf-editor/index.ts +2 -0
  191. package/components/wf-editor/wf-editor.vue +15 -0
  192. package/cypress/e2e/example.cy.ts +8 -0
  193. package/cypress/e2e/tsconfig.json +10 -0
  194. package/cypress/fixtures/example.json +5 -0
  195. package/cypress/support/commands.ts +39 -0
  196. package/cypress/support/e2e.ts +20 -0
  197. package/cypress.config.ts +8 -0
  198. package/env.d.ts +1 -0
  199. package/index.html +13 -0
  200. package/{dist/lib/components → lib}/runtime/views/assemblys/button/button/button-runtime.vue2.js +1 -1
  201. package/{dist/lib/components → lib}/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +1 -1
  202. package/{dist/lib/components → lib}/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
  203. package/{dist/lib/components → lib}/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
  204. package/{dist/lib/components → lib}/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
  205. package/{dist/lib/components → lib}/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
  206. package/{dist/lib/components → lib}/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
  207. package/{dist/lib/components → lib}/runtime/views/assemblys/common/export-form-report-dialog.vue.js +1 -1
  208. package/{dist/lib/components → lib}/runtime/views/assemblys/data/table/main-table-runtime.vue.js +4 -4
  209. package/{dist/lib/components → lib}/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +5 -5
  210. package/{dist/lib/components → lib}/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +2 -2
  211. package/{dist/lib/components → lib}/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +2 -2
  212. package/{dist/lib/components → lib}/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +1 -1
  213. package/{dist/lib/components → lib}/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +1 -1
  214. package/{dist/lib/components → lib}/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +1 -1
  215. package/{dist/lib/components → lib}/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +2 -2
  216. package/{dist/lib/components → lib}/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +3 -3
  217. package/{dist/lib/components → lib}/runtime/views/assemblys/form/label/label-runtime.vue2.js +2 -2
  218. package/{dist/lib/components → lib}/runtime/views/assemblys/form/link/link-runtime.vue2.js +2 -2
  219. package/{dist/lib/components → lib}/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +2 -2
  220. package/{dist/lib/components → lib}/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +2 -2
  221. package/{dist/lib/components → lib}/runtime/views/assemblys/form/select/select-runtime.vue2.js +2 -2
  222. package/{dist/lib/components → lib}/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +2 -2
  223. package/{dist/lib/components → lib}/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +2 -2
  224. package/{dist/lib/components → lib}/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +2 -2
  225. package/{dist/lib/components → lib}/runtime/views/assemblys/object-render.vue.js +4 -4
  226. package/{dist/lib/components → lib}/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +2 -2
  227. package/{dist/lib/components → lib}/runtime/views/super-page.vue.js +7 -7
  228. package/{dist/lib/components → lib}/wf-editor/wf-editor.vue.js +1 -1
  229. package/main.ts +11 -0
  230. package/package-ws.json +70 -0
  231. package/package.json +3 -7
  232. package/tsconfig copy.json +17 -0
  233. package/tsconfig.app copy.json +14 -0
  234. package/tsconfig.app.json +14 -0
  235. package/tsconfig.json +17 -0
  236. package/tsconfig.node copy.json +19 -0
  237. package/tsconfig.node.json +19 -0
  238. package/tsconfig.vitest copy.json +11 -0
  239. package/tsconfig.vitest.json +11 -0
  240. package/vite.config copy.ts +109 -0
  241. package/vite.config.ts +86 -0
  242. package/vitest.config.ts +14 -0
  243. package/dist/es/_virtual/_plugin-vue_export-helper.js +0 -10
  244. package/dist/es/components/index.js +0 -8
  245. package/dist/es/components/runtime/index.js +0 -4
  246. package/dist/es/components/runtime/utils/assemblys-config.js +0 -257
  247. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -4
  248. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +0 -55
  249. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -4
  250. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -36
  251. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -4
  252. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -111
  253. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -4
  254. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -54
  255. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -4
  256. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -43
  257. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -4
  258. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -51
  259. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -4
  260. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -51
  261. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -4
  262. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -52
  263. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +0 -142
  264. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -4
  265. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -128
  266. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -4
  267. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -105
  268. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -4
  269. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -4
  270. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -73
  271. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -4
  272. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -74
  273. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -4
  274. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -79
  275. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -4
  276. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -43
  277. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -4
  278. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -44
  279. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -4
  280. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -30
  281. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -4
  282. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -69
  283. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -4
  284. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -75
  285. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +0 -641
  286. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -4
  287. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +0 -453
  288. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -4
  289. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -4
  290. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -83
  291. package/dist/es/components/runtime/views/assemblys/error-render.vue.js +0 -23
  292. package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +0 -4
  293. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -4
  294. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -157
  295. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -4
  296. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -83
  297. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -4
  298. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -60
  299. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -4
  300. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +0 -41
  301. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -4
  302. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -75
  303. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -4
  304. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -64
  305. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -4
  306. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -128
  307. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -4
  308. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +0 -134
  309. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -4
  310. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -78
  311. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -4
  312. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -30
  313. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -4
  314. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -158
  315. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -4
  316. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -175
  317. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -4
  318. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +0 -202
  319. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -4
  320. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +0 -64
  321. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -4
  322. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +0 -64
  323. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -4
  324. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -66
  325. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +0 -143
  326. package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +0 -4
  327. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -4
  328. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +0 -62
  329. package/dist/es/components/runtime/views/super-page.vue.js +0 -480
  330. package/dist/es/components/runtime/views/super-page.vue2.js +0 -4
  331. package/dist/es/components/super-page-dialog/index.js +0 -4
  332. package/dist/es/components/super-page-dialog/super-page-dialog.vue.js +0 -74
  333. package/dist/es/components/super-page-dialog/super-page-dialog.vue2.js +0 -4
  334. package/dist/es/components/wf-editor/index.js +0 -4
  335. package/dist/es/components/wf-editor/wf-editor.vue.js +0 -16
  336. package/dist/es/src/assets/chart-themes/theme1.js +0 -8
  337. package/dist/es/src/assets/chart-themes/theme2.js +0 -8
  338. package/dist/es/src/assets/chart-themes/theme3.js +0 -8
  339. package/dist/es/src/utils/api/api-util.js +0 -128
  340. package/dist/es/src/utils/charts/chart-util.js +0 -15
  341. package/dist/es/src/utils/common-util.js +0 -81
  342. package/dist/es/src/utils/events/event-util.js +0 -525
  343. package/dist/es/src/utils/events/standard-event.js +0 -1623
  344. package/dist/es/src/utils/events/validator-util.js +0 -389
  345. package/dist/es/src/utils/global-refs.js +0 -65
  346. package/dist/es/src/utils/interfaces/page-design-types.js +0 -9
  347. package/dist/es/src/utils/page-helper-util.js +0 -503
  348. package/dist/es/src/utils/page-init-util.js +0 -200
  349. package/dist/es/src/utils/store-util.js +0 -17
  350. package/dist/es/src/utils/store.js +0 -4
  351. package/dist/es/src/utils/table-utils.js +0 -23
  352. package/dist/lib/components/index.d.ts +0 -5
  353. package/dist/lib/components/runtime/index.d.ts +0 -3
  354. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -24
  355. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -35
  356. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -26
  357. package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +0 -22
  358. package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
  359. package/dist/lib/components/runtime/views/super-page.vue.d.ts +0 -91
  360. package/dist/lib/components/super-page-dialog/index.d.ts +0 -3
  361. package/dist/lib/components/super-page-dialog/super-page-dialog.vue.d.ts +0 -36
  362. package/dist/lib/components/wf-editor/index.d.ts +0 -3
  363. package/dist/lib/components/wf-editor/wf-editor.css +0 -4
  364. package/dist/lib/components/wf-editor/wf-editor.vue.d.ts +0 -2
  365. package/dist/lib/favicon.ico +0 -0
  366. package/dist/lib/src/utils/api/api-util.d.ts +0 -11
  367. package/dist/lib/src/utils/common-util.d.ts +0 -11
  368. package/dist/lib/src/utils/events/event-util.d.ts +0 -48
  369. package/dist/lib/src/utils/events/standard-event.d.ts +0 -61
  370. package/dist/lib/src/utils/events/validator-util.d.ts +0 -4
  371. package/dist/lib/src/utils/global-refs.d.ts +0 -59
  372. package/dist/lib/src/utils/interfaces/page-design-types.d.ts +0 -221
  373. package/dist/lib/src/utils/page-helper-util.d.ts +0 -87
  374. package/dist/lib/src/utils/page-init-util.d.ts +0 -38
  375. package/dist/lib/src/utils/store-util.d.ts +0 -15
  376. package/dist/lib/src/utils/store.d.ts +0 -2
  377. package/lib/components/index.js +0 -8
  378. /package/{dist/lib → lib}/_virtual/_plugin-vue_export-helper.js +0 -0
  379. /package/{dist/es → lib}/components/index.d.ts +0 -0
  380. /package/{dist/es → lib}/components/runtime/index.d.ts +0 -0
  381. /package/{dist/es → lib}/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -0
  382. /package/{dist/es → lib}/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -0
  383. /package/{dist/es → lib}/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -0
  384. /package/{dist/es → lib}/components/runtime/views/assemblys/error-render.vue.d.ts +0 -0
  385. /package/{dist/es → lib}/components/runtime/views/assemblys/object-render.vue.d.ts +0 -0
  386. /package/{dist/es → lib}/components/runtime/views/super-page.vue.d.ts +0 -0
  387. /package/{dist/es → lib}/components/super-page-dialog/index.d.ts +0 -0
  388. /package/{dist/es → lib}/components/super-page-dialog/super-page-dialog.vue.d.ts +0 -0
  389. /package/{dist/es → lib}/components/wf-editor/index.d.ts +0 -0
  390. /package/{dist/es → lib}/components/wf-editor/wf-editor.vue.d.ts +0 -0
  391. /package/{dist/es → lib}/favicon.ico +0 -0
  392. /package/{dist/lib/components → lib}/index.js +0 -0
  393. /package/{dist/lib/components → lib}/runtime/index.js +0 -0
  394. /package/{dist/lib/components → lib}/runtime/utils/assemblys-config.js +0 -0
  395. /package/{dist/lib/components → lib}/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -0
  396. /package/{dist/lib/components → lib}/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -0
  397. /package/{dist/lib/components → lib}/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -0
  398. /package/{dist/lib/components → lib}/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -0
  399. /package/{dist/lib/components → lib}/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -0
  400. /package/{dist/lib/components → lib}/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -0
  401. /package/{dist/lib/components → lib}/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -0
  402. /package/{dist/lib/components → lib}/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -0
  403. /package/{dist/lib/components → lib}/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -0
  404. /package/{dist/lib/components → lib}/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -0
  405. /package/{dist/lib/components → lib}/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -0
  406. /package/{dist/lib/components → lib}/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -0
  407. /package/{dist/lib/components → lib}/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -0
  408. /package/{dist/lib/components → lib}/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -0
  409. /package/{dist/lib/components → lib}/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -0
  410. /package/{dist/lib/components → lib}/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -0
  411. /package/{dist/lib/components → lib}/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -0
  412. /package/{dist/lib/components → lib}/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -0
  413. /package/{dist/lib/components → lib}/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -0
  414. /package/{dist/lib/components → lib}/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -0
  415. /package/{dist/lib/components → lib}/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -0
  416. /package/{dist/lib/components → lib}/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -0
  417. /package/{dist/lib/components → lib}/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -0
  418. /package/{dist/lib/components → lib}/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -0
  419. /package/{dist/lib/components → lib}/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -0
  420. /package/{dist/lib/components → lib}/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -0
  421. /package/{dist/lib/components → lib}/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -0
  422. /package/{dist/lib/components → lib}/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -0
  423. /package/{dist/lib/components → lib}/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -0
  424. /package/{dist/lib/components → lib}/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -0
  425. /package/{dist/lib/components → lib}/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -0
  426. /package/{dist/lib/components → lib}/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -0
  427. /package/{dist/lib/components → lib}/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -0
  428. /package/{dist/lib/components → lib}/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -0
  429. /package/{dist/lib/components → lib}/runtime/views/assemblys/error-render.vue.js +0 -0
  430. /package/{dist/lib/components → lib}/runtime/views/assemblys/error-render.vue2.js +0 -0
  431. /package/{dist/lib/components → lib}/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -0
  432. /package/{dist/lib/components → lib}/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -0
  433. /package/{dist/lib/components → lib}/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -0
  434. /package/{dist/lib/components → lib}/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -0
  435. /package/{dist/lib/components → lib}/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -0
  436. /package/{dist/lib/components → lib}/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -0
  437. /package/{dist/lib/components → lib}/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -0
  438. /package/{dist/lib/components → lib}/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -0
  439. /package/{dist/lib/components → lib}/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -0
  440. /package/{dist/lib/components → lib}/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -0
  441. /package/{dist/lib/components → lib}/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -0
  442. /package/{dist/lib/components → lib}/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -0
  443. /package/{dist/lib/components → lib}/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -0
  444. /package/{dist/lib/components → lib}/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -0
  445. /package/{dist/lib/components → lib}/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -0
  446. /package/{dist/lib/components → lib}/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -0
  447. /package/{dist/lib/components → lib}/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -0
  448. /package/{dist/lib/components → lib}/runtime/views/assemblys/object-render.vue2.js +0 -0
  449. /package/{dist/lib/components → lib}/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -0
  450. /package/{dist/lib/components → lib}/runtime/views/super-page.vue2.js +0 -0
  451. /package/{dist/lib → lib}/src/assets/chart-themes/theme1.js +0 -0
  452. /package/{dist/lib → lib}/src/assets/chart-themes/theme2.js +0 -0
  453. /package/{dist/lib → lib}/src/assets/chart-themes/theme3.js +0 -0
  454. /package/{dist/es → lib}/src/utils/api/api-util.d.ts +0 -0
  455. /package/{dist/lib → lib}/src/utils/api/api-util.js +0 -0
  456. /package/{dist/lib → lib}/src/utils/charts/chart-util.js +0 -0
  457. /package/{dist/es → lib}/src/utils/common-util.d.ts +0 -0
  458. /package/{dist/lib → lib}/src/utils/common-util.js +0 -0
  459. /package/{dist/es → lib}/src/utils/events/event-util.d.ts +0 -0
  460. /package/{dist/lib → lib}/src/utils/events/event-util.js +0 -0
  461. /package/{dist/es → lib}/src/utils/events/standard-event.d.ts +0 -0
  462. /package/{dist/lib → lib}/src/utils/events/standard-event.js +0 -0
  463. /package/{dist/es → lib}/src/utils/events/validator-util.d.ts +0 -0
  464. /package/{dist/lib → lib}/src/utils/events/validator-util.js +0 -0
  465. /package/{dist/es → lib}/src/utils/global-refs.d.ts +0 -0
  466. /package/{dist/lib → lib}/src/utils/global-refs.js +0 -0
  467. /package/{dist/es → lib}/src/utils/interfaces/page-design-types.d.ts +0 -0
  468. /package/{dist/lib → lib}/src/utils/interfaces/page-design-types.js +0 -0
  469. /package/{dist/es → lib}/src/utils/page-helper-util.d.ts +0 -0
  470. /package/{dist/lib → lib}/src/utils/page-helper-util.js +0 -0
  471. /package/{dist/es → lib}/src/utils/page-init-util.d.ts +0 -0
  472. /package/{dist/lib → lib}/src/utils/page-init-util.js +0 -0
  473. /package/{dist/es → lib}/src/utils/store-util.d.ts +0 -0
  474. /package/{dist/lib → lib}/src/utils/store-util.js +0 -0
  475. /package/{dist/es → lib}/src/utils/store.d.ts +0 -0
  476. /package/{dist/lib → lib}/src/utils/store.js +0 -0
  477. /package/{dist/lib → lib}/src/utils/table-utils.js +0 -0
  478. /package/{dist/lib/components → lib}/super-page-dialog/index.js +0 -0
  479. /package/{dist/lib/components → lib}/super-page-dialog/super-page-dialog.vue.js +0 -0
  480. /package/{dist/lib/components → lib}/super-page-dialog/super-page-dialog.vue2.js +0 -0
  481. /package/{dist/lib/components → lib}/wf-editor/index.js +0 -0
  482. /package/{dist/es/components → lib}/wf-editor/wf-editor.css +0 -0
  483. /package/{dist → public}/favicon.ico +0 -0
@@ -1,503 +0,0 @@
1
- import http from "agilebuilder-ui/src/utils/request";
2
- import dayjs from "dayjs";
3
- import { executeExpression } from "agilebuilder-ui/src/utils/calculator/calculator-util";
4
- import { getComponentRef } from "./global-refs.js";
5
- function getTableQueryInfo(dataOriginInfo, pageContext2) {
6
- const infoObj = {};
7
- infoObj.type = "dataTable";
8
- infoObj.props = {
9
- tableName: dataOriginInfo.tableName,
10
- systemCode: dataOriginInfo.tableSysCode ? dataOriginInfo.tableSysCode : pageContext2.systemCode,
11
- systemVersion: dataOriginInfo.tableSysCode ? dataOriginInfo.tableSysVersion : pageContext2.systemVersion
12
- };
13
- if (dataOriginInfo.sortFields) {
14
- const sortFields = [];
15
- for (const field of dataOriginInfo.sortFields) {
16
- if (field.name) {
17
- sortFields.push({
18
- prop: field.name,
19
- order: field.type ? field.type : "asc"
20
- });
21
- }
22
- }
23
- infoObj.props.sorts = sortFields;
24
- }
25
- const autoMonitorFields = [];
26
- if (dataOriginInfo.filterList) {
27
- const searchForm = [];
28
- for (const f of dataOriginInfo.filterList) {
29
- if (!f.propName) {
30
- continue;
31
- }
32
- if (!f.propDbName) {
33
- f.propDbName = f.propName;
34
- }
35
- const tempObj = {};
36
- Object.assign(tempObj, f);
37
- const paramsNames = getParamNames(f.propValue);
38
- for (const p of paramsNames) {
39
- if (p && (p.startsWith("${data.") || p.startsWith("${task.") || p.startsWith("${page."))) {
40
- if (!autoMonitorFields.includes(p)) {
41
- autoMonitorFields.push(p);
42
- }
43
- }
44
- }
45
- if (f.propValue)
46
- ;
47
- searchForm.push(tempObj);
48
- }
49
- infoObj.props.searchForm = searchForm;
50
- }
51
- infoObj.props.monitorFields = autoMonitorFields;
52
- const queryFields = [];
53
- if (dataOriginInfo.tableValueField) {
54
- infoObj.props.valueField = dataOriginInfo.tableValueField;
55
- }
56
- if (dataOriginInfo.tableLableField && queryFields.indexOf(dataOriginInfo.tableLableField) == -1) {
57
- infoObj.props.lableField = dataOriginInfo.tableLableField;
58
- }
59
- if (dataOriginInfo.autoSets) {
60
- for (const field of dataOriginInfo.autoSets) {
61
- if (field.source && queryFields.indexOf(field.source) == -1) {
62
- queryFields.push(field.source);
63
- }
64
- }
65
- }
66
- infoObj.props.queryFields = queryFields;
67
- infoObj.props.pageSize = dataOriginInfo.displayQuantity;
68
- return infoObj;
69
- }
70
- function updateOptionDatasources(pageContext2, dataSourceConfs, query) {
71
- return new Promise((resolve, reject) => {
72
- if (!dataSourceConfs || dataSourceConfs.length == 0) {
73
- reject(new Error("无需查询的配置!"));
74
- return;
75
- }
76
- const entityData2 = pageContext2.entity ? pageContext2.entity : {};
77
- const additionalParamMap = {};
78
- if (entityData2.request) {
79
- Object.assign(additionalParamMap, entityData2.request);
80
- }
81
- if (entityData2.page) {
82
- Object.assign(additionalParamMap, entityData2.page);
83
- }
84
- additionalParamMap.query = query;
85
- const param = {
86
- entityMap: entityData2.data,
87
- additionalParamMap,
88
- dataSourceList: dataSourceConfs,
89
- systemCode: pageContext2.systemCode,
90
- query
91
- };
92
- const url = window["$vueApp"].config.globalProperties.baseAPI + "common/common-data/find-datas";
93
- http.post(url, param).then((result) => {
94
- if (!pageContext2.optionSourceMap) {
95
- pageContext2.optionSourceMap = {};
96
- }
97
- for (const uuid in result) {
98
- pageContext2.optionSourceMap[uuid] = result[uuid];
99
- const componentObj = getComponentRef(pageContext2, uuid);
100
- if (componentObj && componentObj.updateOptions) {
101
- componentObj.updateOptions(result[uuid]);
102
- }
103
- }
104
- console.log("查询选项数据完成", result);
105
- resolve(result);
106
- }).catch((error) => {
107
- console.log("查询选项数据失败", error);
108
- reject(error);
109
- });
110
- });
111
- }
112
- function getOptionDatasFromPage(pageContext2, configure2) {
113
- if (!pageContext2 || !pageContext2.optionSourceMap || !configure2) {
114
- return [];
115
- }
116
- const cacheOptions = pageContext2.optionSourceMap[configure2.uuid];
117
- return cacheOptions ? cacheOptions : [];
118
- }
119
- function queryOptionDatasources(pageContext2, dataSourceConf, query) {
120
- return updateOptionDatasources(pageContext2, dataSourceConf ? [dataSourceConf] : [], query);
121
- }
122
- function queryOptions(component, pageContext2, query) {
123
- if (!component.props || !component.props.dataOrigin) {
124
- return new Promise(function(resolve, reject) {
125
- resolve([]);
126
- });
127
- }
128
- const dataOriginInfo = component.props.dataOrigin;
129
- if (dataOriginInfo.optionValueSetType == "dynamicData") {
130
- if (!dataOriginInfo.dynamicDataSourceCode) {
131
- return new Promise(function(resolve, reject) {
132
- throw new Error("未指定动态数据源!");
133
- });
134
- }
135
- return queryByDynamicCode(dataOriginInfo.dynamicDataSourceCode, query);
136
- } else if (dataOriginInfo.optionValueSetType == "dataTable") {
137
- if (!dataOriginInfo.tableName) {
138
- return new Promise(function(resolve, reject) {
139
- throw new Error("未指定查询的数据表!");
140
- });
141
- }
142
- const tempObj = getTableQueryInfo(dataOriginInfo, pageContext2);
143
- return queryByTable(tempObj);
144
- } else {
145
- return new Promise(function(resolve, reject) {
146
- throw new Error("无有效的查询设置!");
147
- });
148
- }
149
- }
150
- function queryByDynamicCode(dynamicCode, query) {
151
- const param = {
152
- code: dynamicCode,
153
- query
154
- };
155
- return http.post("", param);
156
- }
157
- function queryByTable(tableQueryInfo) {
158
- const param = tableQueryInfo.props;
159
- return http.post("", param);
160
- }
161
- function autoSetAfterSelect(component, pageContext2, autoSets, selItems) {
162
- if (!autoSets || autoSets.length == 0) {
163
- return;
164
- }
165
- const entity = pageContext2.entity ? pageContext2.entity : {};
166
- for (const as of autoSets) {
167
- if (!as.source || !as.target) {
168
- continue;
169
- }
170
- const values = getValuesByField(selItems, as.source);
171
- let targetField = as.target;
172
- if (!targetField || !targetField.startsWith("${")) {
173
- continue;
174
- }
175
- targetField = targetField.substring(2, targetField.length - 1);
176
- const fields = targetField.split(".");
177
- setVariableValue(entity, fields, values.join(","));
178
- }
179
- }
180
- function getValuesByField(items, fieldName) {
181
- if (!items) {
182
- return [""];
183
- } else {
184
- const values = [];
185
- for (const i of items) {
186
- let val = i[fieldName];
187
- if (val == void 0 || val == null) {
188
- val = "";
189
- }
190
- values.push(val);
191
- }
192
- return values;
193
- }
194
- }
195
- function getVariableValue(entity, fields) {
196
- if (!entity || !fields || fields.length == 0) {
197
- return;
198
- }
199
- let tempObj = entity;
200
- for (let i = 0; i < fields.length; i++) {
201
- if (tempObj == void 0) {
202
- return tempObj;
203
- }
204
- const fieldName = fields[i];
205
- tempObj = tempObj[fieldName];
206
- }
207
- return tempObj;
208
- }
209
- function setVariableValue(entity, fields, newValue) {
210
- if (!entity || !fields || fields.length == 0) {
211
- return;
212
- }
213
- let tempObj = entity;
214
- for (let i = 0; i < fields.length; i++) {
215
- const fieldName = fields[i];
216
- if (i + 1 == fields.length) {
217
- tempObj[fieldName] = newValue;
218
- } else {
219
- tempObj = tempObj[fieldName];
220
- if (tempObj == void 0) {
221
- tempObj[fieldName] = {};
222
- tempObj = tempObj[fieldName];
223
- }
224
- }
225
- }
226
- }
227
- function formatVariableValue(pageContext2, variable) {
228
- if (!pageContext2 || variable == "" || variable == null || variable == void 0) {
229
- return variable;
230
- }
231
- const entity = pageContext2.entity ? pageContext2.entity : {};
232
- const t = getParamNames(variable);
233
- for (const c in t) {
234
- const param = t[c];
235
- const paramValue = getValueFromVariable(entity, param);
236
- variable = variable.replace(
237
- param,
238
- paramValue == void 0 || paramValue == null ? "" : paramValue
239
- );
240
- }
241
- return variable;
242
- }
243
- function getParamNames(variable) {
244
- if (!variable) {
245
- return [];
246
- }
247
- const reg = /\$\{[^\{|\}]+\}/g;
248
- return variable.match(reg);
249
- }
250
- function formatValueByType(value, formatType, formatInfo) {
251
- if (!formatType || value == "" || value == null || value == void 0) {
252
- return value;
253
- }
254
- console.log("aaa", value, formatType, formatInfo);
255
- formatInfo = formatInfo ? formatInfo : {};
256
- if (formatType == "number" || formatType == "percent") {
257
- if (isNaN(value)) {
258
- return value;
259
- }
260
- let precision = parseInt(formatInfo.decimalDigit);
261
- if (precision == null || isNaN(precision)) {
262
- precision = -1;
263
- }
264
- value = parseFloat(value);
265
- if (formatType == "percent") {
266
- value = value * 100;
267
- }
268
- if (precision > -1) {
269
- value = parseFloat(value.toFixed(precision));
270
- }
271
- if (formatType == "percent") {
272
- value = value + "%";
273
- } else {
274
- if (formatInfo.thousandsSeparator) {
275
- const parts = value.toString().split(".");
276
- parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",");
277
- value = parts.length > 1 ? parts.join(".") : parts[0];
278
- }
279
- if (formatInfo.symbol) {
280
- value = formatInfo.symbol + "" + value;
281
- }
282
- }
283
- return value;
284
- } else if (formatType == "date" || formatType == "time") {
285
- let formatStr = "";
286
- if (formatType == "date") {
287
- formatStr = formatInfo.dateFormat;
288
- if (!formatStr) {
289
- formatStr = "YYYY-MM-DD";
290
- }
291
- } else {
292
- formatStr = formatInfo.timeFormat;
293
- if (!formatStr) {
294
- formatStr = "HH:mm:ss";
295
- }
296
- }
297
- return dayjs(value).format(formatStr);
298
- } else if (formatType == "custom" && formatInfo.formatEventUuid) {
299
- console.log("自定义方法", formatInfo);
300
- }
301
- return value;
302
- }
303
- function getValueFromVariable(entity, variable) {
304
- if (variable == null || variable == void 0) {
305
- return variable;
306
- }
307
- if (variable.startsWith("${") && variable.endsWith("}")) {
308
- let paramName = variable.substring(2, variable.length - 1);
309
- let paramType = null;
310
- let valueSource = null;
311
- if (paramName.startsWith("data.")) {
312
- paramName = paramName.substring(5);
313
- valueSource = entity.data;
314
- paramType = "data";
315
- } else if (paramName.startsWith("page.")) {
316
- paramName = paramName.substring(5);
317
- paramType = "page";
318
- valueSource = entity.page;
319
- } else if (paramName.startsWith("task.")) {
320
- paramName = paramName.substring(5);
321
- paramType = "task";
322
- valueSource = entity.task;
323
- } else if (paramName.startsWith("request.")) {
324
- paramName = paramName.substring(8);
325
- paramType = "request";
326
- valueSource = entity.request;
327
- } else if (paramName.startsWith("context.")) {
328
- paramName = paramName.substring(8);
329
- paramType = "context";
330
- valueSource = entity.context;
331
- } else if (paramName.startsWith("system.")) {
332
- paramName = paramName.substring(7);
333
- paramType = "system";
334
- valueSource = entity.system;
335
- } else if (paramName.startsWith("fixed.")) {
336
- return paramName.substring(6);
337
- }
338
- if (!paramName || !paramName) {
339
- console.log("获取变量失败", variable, entity);
340
- return "";
341
- }
342
- return getValueFromSource(valueSource, paramName, paramType);
343
- } else {
344
- return variable;
345
- }
346
- }
347
- function getValueFromSource(valueSource, paramName, paramType) {
348
- if (!valueSource || !paramName) {
349
- return void 0;
350
- }
351
- const firstIndex = paramName.indexOf(".");
352
- if (firstIndex > -1) {
353
- const tempParamName = paramName.substring(0, firstIndex);
354
- const newParamName = paramName.substring(firstIndex + 1);
355
- return getValueFromSource(valueSource[tempParamName], newParamName, paramType);
356
- } else {
357
- if (paramType == "context") {
358
- if (paramName == "currentDate" || paramName == "currentTime") {
359
- return /* @__PURE__ */ new Date();
360
- }
361
- }
362
- return valueSource[paramName];
363
- }
364
- }
365
- function openLink(component, pageContext2) {
366
- const linkPage = component && component.props && component.props.linkPage ? component.props.linkPage : {};
367
- if (!linkPage.linkType) {
368
- alert("未指定打开方式!");
369
- return;
370
- }
371
- let linkUrl = "";
372
- if (linkPage.linkType == "url") {
373
- linkUrl = linkPage.jumpPageUrl;
374
- if (!linkUrl) {
375
- alert("未设置链接地址!");
376
- return;
377
- }
378
- } else {
379
- if (!linkPage.jumpPageCode) {
380
- alert("未选择页面!");
381
- return;
382
- }
383
- linkUrl = "page:" + linkPage.jumpPageCode;
384
- }
385
- let appendParams = "";
386
- if (linkPage.isNeedId) {
387
- const entity = pageContext2.entity ? pageContext2.entity : {};
388
- const data = entity.data ? entity.data : {};
389
- appendParams = "id=" + (data.id ? data.id : "");
390
- }
391
- if (linkPage.appendParams) {
392
- for (const p of linkPage.appendParams) {
393
- if (!p.name) {
394
- continue;
395
- }
396
- if (appendParams.length > 0) {
397
- appendParams += "&";
398
- }
399
- appendParams += p.name + "=";
400
- appendParams += formatVariableValue(pageContext2, p.value);
401
- }
402
- }
403
- if (appendParams) {
404
- if (linkUrl.indexOf("?") == -1) {
405
- linkUrl += "?";
406
- } else {
407
- linkUrl += "&";
408
- }
409
- linkUrl += appendParams;
410
- }
411
- alert("链接到:" + linkUrl);
412
- }
413
- function caculateShowCondition(pageContext, configure, showConditions) {
414
- if (!showConditions || showConditions.length == 0 || !pageContext || !pageContext.entity) {
415
- return true;
416
- }
417
- const entityData = pageContext.entity;
418
- let conditions = "";
419
- const maxLen = showConditions.length;
420
- for (let i = 0; i < maxLen; i++) {
421
- const condition = showConditions[i];
422
- const propName = condition.propName;
423
- let operator = condition.operator;
424
- if (!propName || propName === "") {
425
- continue;
426
- }
427
- if (!operator) {
428
- operator = "EQ";
429
- }
430
- const leftValue = getValueFromVariable(entityData, propName);
431
- let propValue = getValueFromVariable(entityData, condition.propValue);
432
- const dataType = condition.dataType;
433
- if (operator == "CONTAIN" || operator == "NOT_CONTAIN") {
434
- if (leftValue && !leftValue.includes) {
435
- operator = operator == "CONTAIN" ? "EQ" : "NET";
436
- }
437
- }
438
- let variableIsNullStr = condition.variableIsNull;
439
- if (!variableIsNullStr) {
440
- variableIsNullStr = "null";
441
- }
442
- let conditionResult = void 0;
443
- if (propValue === void 0 || propValue === "") {
444
- propValue = null;
445
- if (variableIsNullStr === "null") {
446
- operator = "IS_NULL";
447
- } else if (variableIsNullStr === "notequal") {
448
- operator = "IS_NOT_NULL";
449
- } else {
450
- conditionResult = true;
451
- }
452
- }
453
- if (conditionResult == void 0) {
454
- try {
455
- conditionResult = executeExpression(leftValue, operator, propValue, dataType);
456
- } catch (e) {
457
- console.log("executeExpression error", e);
458
- conditionResult = false;
459
- }
460
- }
461
- const leftBracket = condition.leftBracket;
462
- const rightBracket = condition.rightBracket;
463
- let joinSign = condition.joinSign;
464
- if (leftBracket && leftBracket !== null && leftBracket !== "") {
465
- conditions = conditions + leftBracket;
466
- conditions = conditions + " ";
467
- }
468
- conditions += conditionResult + " ";
469
- if (rightBracket && rightBracket !== null && rightBracket !== "") {
470
- conditions = conditions + rightBracket;
471
- conditions = conditions + " ";
472
- }
473
- if (i < maxLen - 1) {
474
- if (joinSign && joinSign !== null && joinSign !== "") {
475
- const joinSignIgnoreCase = joinSign.toLowerCase();
476
- if (joinSignIgnoreCase === "and") {
477
- joinSign = joinSignIgnoreCase.replace("and", "&&");
478
- } else if (joinSignIgnoreCase === "or") {
479
- joinSign = joinSignIgnoreCase.replace("or", "||");
480
- }
481
- conditions += joinSign + " ";
482
- }
483
- }
484
- }
485
- if (conditions) {
486
- return eval("(" + conditions + ")");
487
- } else {
488
- return true;
489
- }
490
- }
491
- export {
492
- autoSetAfterSelect,
493
- caculateShowCondition,
494
- formatValueByType,
495
- formatVariableValue,
496
- getOptionDatasFromPage,
497
- getVariableValue,
498
- openLink,
499
- queryOptionDatasources,
500
- queryOptions,
501
- setVariableValue,
502
- updateOptionDatasources
503
- };
@@ -1,200 +0,0 @@
1
- import http from "agilebuilder-ui/src/utils/request";
2
- import { useRoute } from "vue-router";
3
- import { PageDimensions } from "./interfaces/page-design-types.js";
4
- import { formatVariableValue, setVariableValue } from "./page-helper-util.js";
5
- function queryPageDesignByCode(pageCode) {
6
- return http.get("/component/super-page-design/runtime/" + pageCode);
7
- }
8
- function convertToPageContext(pageDesign, pageRequest) {
9
- if (pageDesign == null) {
10
- return null;
11
- }
12
- const pageContext = {
13
- uuid: pageDesign.uuid,
14
- name: pageDesign.name,
15
- label: pageDesign.label,
16
- code: pageDesign.code,
17
- version: pageDesign.version,
18
- dimensions: pageDesign.dimensions,
19
- rules: pageDesign.rules,
20
- // 表单验证规则
21
- tableUuids: pageDesign.tableUuids,
22
- // 表格uuid集合
23
- tableNames: pageDesign.tableNames,
24
- // 当前页面中表格对应的数据表名集合,后台保存子表记录时需要
25
- formNoRuleCode: pageDesign.formNoRuleCode,
26
- // 表单编号规则
27
- judgeHeavyList: pageDesign.judgeHeavyList,
28
- // 判重组合字段集合配置
29
- conversionCodes: pageDesign.conversionCodes,
30
- // 数据转换规则
31
- pageType: pageDesign.pageType,
32
- // 页面类型:form、list、chart
33
- beanName: pageDesign.beanName,
34
- // 业务处理类,继承CommonBaseService接口的类
35
- importBeanName: pageDesign.importBeanName,
36
- // 导入处理类,继承ImportDefinitionService接口的类
37
- notIdInitializationList: pageDesign.notIdInitializationList,
38
- // 无ID或taskId时初始条件配置
39
- subTablePageInfo: pageDesign.subTablePageInfo,
40
- // 列表分页信息,格式是:{列表编码: 每页显示多少条记录},表单页面中校验有分页的子表时提示使用,提示信息格式:第 {pageNum} 页第 {row} 行记录
41
- customValidatorUuids: pageDesign.customEvents,
42
- // 自定义组件启用了“自定义校验”开关的uuid集合
43
- entity: {
44
- data: {},
45
- task: {},
46
- request: getRequestObject(pageRequest),
47
- //初始化request对象
48
- page: {},
49
- context: {},
50
- system: {}
51
- }
52
- };
53
- if (pageDesign.props.activeWorkflow && pageDesign.props.workflowSource && pageDesign.props.workflowSource === "link") {
54
- pageContext.workflowCode = pageDesign.props.linkWorkflowCode;
55
- } else if (pageDesign.props.activeWorkflow && pageDesign.props.workflowSource && pageDesign.props.workflowSource === "create") {
56
- pageContext.workflowCode = pageDesign.props.createWorkflowCode;
57
- }
58
- if (pageDesign.variables) {
59
- const pageObj = pageContext.entity.page;
60
- for (const variable of pageDesign.variables) {
61
- if (variable.name) {
62
- if (variable.isArrayElement) {
63
- pageObj[variable.name] = [];
64
- } else {
65
- pageObj[variable.name] = void 0;
66
- }
67
- }
68
- }
69
- }
70
- Object.assign(pageContext, pageDesign);
71
- pageContext.dimensions = getPageDimensions();
72
- return pageContext;
73
- }
74
- function getPageDimensions() {
75
- const winWidth = window.outerWidth;
76
- if (!winWidth) {
77
- return PageDimensions.PC;
78
- }
79
- if (winWidth > 768) {
80
- return PageDimensions.PC;
81
- } else if (winWidth > 414) {
82
- return PageDimensions.IPAD;
83
- } else {
84
- return PageDimensions.PHONE;
85
- }
86
- }
87
- function getRequestObject(pageRequest) {
88
- const requestObj = {};
89
- if (pageRequest) {
90
- Object.assign(requestObj, pageRequest);
91
- }
92
- let url = decodeURI(window.location.href);
93
- if (url && url.includes("?")) {
94
- url = url.substring(url.lastIndexOf("?") + 1);
95
- const strs = url.split("&");
96
- for (const str of strs) {
97
- const paramStrs = str.split("=");
98
- requestObj[paramStrs[0]] = paramStrs.length > 1 ? paramStrs[1] : "";
99
- }
100
- }
101
- const route = useRoute();
102
- if (route) {
103
- if (route.params) {
104
- Object.assign(requestObj, route.params);
105
- }
106
- if (route.query) {
107
- Object.assign(requestObj, route.query);
108
- }
109
- }
110
- if (requestObj["_t_"])
111
- ;
112
- return requestObj;
113
- }
114
- function getFormModelFields(pageContext, formItemConfigure) {
115
- if (!formItemConfigure) {
116
- return ["temp"];
117
- }
118
- const entity = pageContext.entity;
119
- const propsBase = formItemConfigure.props.base ? formItemConfigure.props.base : {};
120
- let propName = propsBase.prop;
121
- let fields = null;
122
- if (!propName || !propName.startsWith("${")) {
123
- fields = ["page", formItemConfigure.uuid];
124
- } else {
125
- propName = propName.substring(2, propName.length - 1);
126
- fields = propName.split(".");
127
- if (fields.length < 2) {
128
- fields = [formItemConfigure.uuid];
129
- }
130
- }
131
- if (entity.data.ID == void 0 && entity.data.ID == void 0) {
132
- if (propsBase.defaultValue) {
133
- let defaultValue = formatVariableValue(pageContext, propsBase.defaultValue);
134
- if (defaultValue != null && defaultValue != void 0) {
135
- let isMultiple = false;
136
- if (formItemConfigure.name == "checkbox") {
137
- isMultiple = true;
138
- } else if (formItemConfigure.name == "select") {
139
- isMultiple = propsBase.multiple;
140
- }
141
- if (isMultiple) {
142
- defaultValue = (defaultValue + "").split(",");
143
- }
144
- }
145
- setVariableValue(entity, fields, defaultValue);
146
- }
147
- }
148
- return fields;
149
- }
150
- function getPermissionCodes(configure, pageContext) {
151
- if (!pageContext || pageContext.isTest || !configure) {
152
- return "";
153
- }
154
- const codes = [];
155
- if (configure.autoPermissions) {
156
- for (const p of configure.autoPermissions) {
157
- codes.push(pageContext.code + "." + p.simpleCode);
158
- }
159
- }
160
- if (configure.functionCodes) {
161
- const sourceTypes = configure.sourceTypes ? configure.sourceTypes : [];
162
- const functionCodes = configure.functionCodes;
163
- for (let i = 0; i < functionCodes.length; i++) {
164
- const functionCode = functionCodes[i];
165
- const sourceType = i < sourceTypes.length ? sourceTypes[i] : "";
166
- let newCode = "";
167
- if (sourceType == "service") {
168
- newCode = functionCode;
169
- } else {
170
- newCode = pageContext.code + "." + functionCode;
171
- }
172
- if (!codes.includes(newCode)) {
173
- codes.push(newCode);
174
- }
175
- }
176
- }
177
- return codes.join(",");
178
- }
179
- function queryPageSuperGrids(pageDesign, pageContext, publishVersion) {
180
- const tableRuntimes = pageDesign.tableRuntimes;
181
- const additionalParamMap = pageContext.entity && pageContext.entity.request && Object.keys(pageContext.entity.request).length > 0 ? pageContext.entity.request : null;
182
- let additionalParamMapJson;
183
- const pageCode = pageContext.code;
184
- if (additionalParamMap) {
185
- additionalParamMapJson = JSON.stringify(additionalParamMap);
186
- }
187
- return http.post("/component/super-page-design/super-grids", {
188
- tableRuntimes,
189
- additionalParamMapJson,
190
- pageCode,
191
- publishVersion
192
- });
193
- }
194
- export {
195
- convertToPageContext,
196
- getFormModelFields,
197
- getPermissionCodes,
198
- queryPageDesignByCode,
199
- queryPageSuperGrids
200
- };