super-page-runtime 1.0.14 → 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 (543) hide show
  1. package/.eslintrc.cjs +26 -0
  2. package/.prettierrc.json +8 -0
  3. package/{src → components}/index.ts +3 -3
  4. package/{src/components → components}/runtime/views/assemblys/button/button/button-runtime.vue +5 -2
  5. package/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue +26 -0
  6. package/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue +93 -0
  7. package/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue +59 -0
  8. package/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue +46 -0
  9. package/components/runtime/views/assemblys/chart/pie/pie-runtime.vue +56 -0
  10. package/components/runtime/views/assemblys/chart/radar/radar-runtime.vue +55 -0
  11. package/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue +57 -0
  12. package/components/runtime/views/assemblys/common/export-form-report-dialog.vue +108 -0
  13. package/{src/components → components}/runtime/views/assemblys/container/card/card-runtime.vue +4 -1
  14. package/{src/components → components}/runtime/views/assemblys/container/collapse/collapse-runtime.vue +5 -2
  15. package/components/runtime/views/assemblys/container/container/container-runtime.vue +41 -0
  16. package/components/runtime/views/assemblys/container/flex/flex-runtime.vue +35 -0
  17. package/components/runtime/views/assemblys/container/form/form-runtime.vue +37 -0
  18. package/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue +32 -0
  19. package/{src/components → components}/runtime/views/assemblys/container/tabs/tabs-runtime.vue +5 -2
  20. package/components/runtime/views/assemblys/container/tools/tools-runtime.vue +99 -0
  21. package/components/runtime/views/assemblys/data/bar-code/barcode-attr-base.vue +117 -0
  22. package/components/runtime/views/assemblys/data/bar-code/barcode-attr.vue +28 -0
  23. package/components/runtime/views/assemblys/data/bar-code/barcode-design.vue +103 -0
  24. package/{src/components → components}/runtime/views/assemblys/data/table/main-table-runtime.vue +12 -6
  25. package/{src/components → components}/runtime/views/assemblys/data/table/sub-table-runtime.vue +10 -7
  26. package/{src/components → components}/runtime/views/assemblys/data/table/table-runtime.vue +2 -2
  27. package/components/runtime/views/assemblys/data/tree/tree-attr.vue +28 -0
  28. package/components/runtime/views/assemblys/data/tree/tree-design.vue +125 -0
  29. package/{src/components → components}/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue +10 -4
  30. package/components/runtime/views/assemblys/form/custom/custom-attr.vue +28 -0
  31. package/components/runtime/views/assemblys/form/custom/custom-design.vue +57 -0
  32. package/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue +80 -0
  33. package/{src/components → components}/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue +6 -3
  34. package/components/runtime/views/assemblys/form/divider/divider-runtime.vue +44 -0
  35. package/{src/components → components}/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue +5 -2
  36. package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr.vue +28 -0
  37. package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-design.vue +104 -0
  38. package/components/runtime/views/assemblys/form/image-upload/imageupload-attr.vue +28 -0
  39. package/components/runtime/views/assemblys/form/image-upload/imageupload-design.vue +76 -0
  40. package/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue +62 -0
  41. package/components/runtime/views/assemblys/form/input-show/input-show-attr-style.vue +70 -0
  42. package/components/runtime/views/assemblys/form/input-show/input-show-attr.vue +28 -0
  43. package/components/runtime/views/assemblys/form/input-show/input-show-design.vue +155 -0
  44. package/{src/components → components}/runtime/views/assemblys/form/input-text/inputtext-runtime.vue +7 -4
  45. package/components/runtime/views/assemblys/form/label/label-runtime.vue +143 -0
  46. package/components/runtime/views/assemblys/form/link/link-runtime.vue +70 -0
  47. package/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue +24 -0
  48. package/{src/components → components}/runtime/views/assemblys/form/radio/radio-runtime.vue +10 -4
  49. package/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue +169 -0
  50. package/{src/components → components}/runtime/views/assemblys/form/select/select-runtime.vue +11 -5
  51. package/components/runtime/views/assemblys/form/switch/switch-runtime.vue +63 -0
  52. package/components/runtime/views/assemblys/form/tag/tag-runtime.vue +65 -0
  53. package/{src/components → components}/runtime/views/assemblys/form/textarea/textarea-runtime.vue +6 -3
  54. package/{src/components → components}/runtime/views/assemblys/object-render.vue +6 -6
  55. package/{src/components → components}/runtime/views/assemblys/page/page-attr-base-20240429-1.vue +1 -1
  56. package/components/runtime/views/assemblys/page/page-attr-base.vue +259 -0
  57. package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr.vue +28 -0
  58. package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr.vue +28 -0
  59. package/{src/components → components}/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue +20 -17
  60. package/{src/components → components}/runtime/views/super-page.vue +13 -8
  61. package/cypress/e2e/example.cy.ts +8 -0
  62. package/cypress/e2e/tsconfig.json +10 -0
  63. package/cypress/fixtures/example.json +5 -0
  64. package/cypress/support/commands.ts +39 -0
  65. package/cypress/support/e2e.ts +20 -0
  66. package/cypress.config.ts +8 -0
  67. package/env.d.ts +1 -0
  68. package/index.html +13 -0
  69. package/lib/components/index.d.ts +5 -0
  70. package/{dist/lib → lib}/components/runtime/views/assemblys/object-render.vue.d.ts +1 -1
  71. package/{dist/lib → lib}/components/runtime/views/super-page.vue.d.ts +1 -1
  72. package/{dist/lib → lib}/index.js +3 -3
  73. package/{dist/lib/components → lib}/runtime/views/assemblys/button/button/button-runtime.vue2.js +1 -1
  74. package/{dist/lib/components → lib}/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +1 -1
  75. package/{dist/lib/components → lib}/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
  76. package/{dist/lib/components → lib}/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +2 -9
  77. package/{dist/lib/components → lib}/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
  78. package/{dist/lib/components → lib}/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
  79. package/{dist/lib/components → lib}/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
  80. package/{dist/lib/components → lib}/runtime/views/assemblys/common/export-form-report-dialog.vue.js +3 -9
  81. package/{dist/lib/components → lib}/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -1
  82. package/{dist/lib/components → lib}/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -1
  83. package/{dist/lib/components → lib}/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -1
  84. package/{dist/lib/components → lib}/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -1
  85. package/{dist/lib/components → lib}/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -1
  86. package/{dist/lib/components → lib}/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -1
  87. package/{dist/lib/components → lib}/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -1
  88. package/{dist/lib/components → lib}/runtime/views/assemblys/data/table/main-table-runtime.vue.js +4 -5
  89. package/{dist/lib/components → lib}/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +5 -5
  90. package/{dist/lib/components → lib}/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -5
  91. package/{dist/lib/components → lib}/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +2 -2
  92. package/{dist/lib/components → lib}/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +2 -2
  93. package/{dist/lib/components → lib}/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +1 -5
  94. package/{dist/lib/components → lib}/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +1 -1
  95. package/{dist/lib/components → lib}/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +1 -1
  96. package/{dist/lib/components → lib}/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +2 -2
  97. package/{dist/lib/components → lib}/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +3 -3
  98. package/{dist/lib/components → lib}/runtime/views/assemblys/form/label/label-runtime.vue2.js +10 -4
  99. package/{dist/lib/components → lib}/runtime/views/assemblys/form/link/link-runtime.vue2.js +2 -2
  100. package/{dist/lib/components → lib}/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +2 -2
  101. package/{dist/lib/components → lib}/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +15 -3
  102. package/{dist/lib/components → lib}/runtime/views/assemblys/form/select/select-runtime.vue2.js +2 -2
  103. package/{dist/lib/components → lib}/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +2 -2
  104. package/{dist/lib/components → lib}/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +2 -2
  105. package/{dist/lib/components → lib}/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +2 -2
  106. package/{dist/lib/components → lib}/runtime/views/assemblys/object-render.vue.js +5 -5
  107. package/{dist/lib/components → lib}/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +2 -2
  108. package/{dist/lib/components → lib}/runtime/views/super-page.vue.js +7 -8
  109. package/lib/src/utils/charts/chart-util.js +15 -0
  110. package/{dist/es/components/runtime → lib/src}/utils/events/event-util.d.ts +1 -1
  111. package/{dist/lib/components → lib}/super-page-dialog/super-page-dialog.vue.js +0 -1
  112. package/lib/wf-editor/wf-editor.css +4 -0
  113. package/{dist/lib/components → lib}/wf-editor/wf-editor.vue.js +3 -3
  114. package/package-ws.json +70 -0
  115. package/package.json +3 -7
  116. package/src/utils/charts/chart-util.ts +41 -0
  117. package/src/utils/container-style-util.ts +237 -0
  118. package/src/{components/runtime/utils → utils}/events/event-util.ts +2 -3
  119. package/src/{components/runtime/utils → utils}/events/standard-event.ts +1 -1
  120. package/src/{components/runtime/utils → utils}/events/validator-util.ts +1 -1
  121. package/tsconfig copy.json +17 -0
  122. package/tsconfig.app copy.json +14 -0
  123. package/tsconfig.app.json +14 -0
  124. package/tsconfig.json +17 -0
  125. package/tsconfig.node copy.json +19 -0
  126. package/tsconfig.node.json +19 -0
  127. package/tsconfig.vitest copy.json +11 -0
  128. package/tsconfig.vitest.json +11 -0
  129. package/vite.config copy.ts +109 -0
  130. package/vite.config.ts +86 -0
  131. package/vitest.config.ts +14 -0
  132. package/dist/es/_virtual/_plugin-vue_export-helper.js +0 -10
  133. package/dist/es/assets/chart-themes/theme1.js +0 -8
  134. package/dist/es/assets/chart-themes/theme2.js +0 -8
  135. package/dist/es/assets/chart-themes/theme3.js +0 -8
  136. package/dist/es/components/runtime/index.js +0 -4
  137. package/dist/es/components/runtime/utils/api/api-util.js +0 -128
  138. package/dist/es/components/runtime/utils/assemblys-config.js +0 -257
  139. package/dist/es/components/runtime/utils/charts/chart-util.js +0 -15
  140. package/dist/es/components/runtime/utils/common-util.js +0 -81
  141. package/dist/es/components/runtime/utils/events/event-util.js +0 -525
  142. package/dist/es/components/runtime/utils/events/standard-event.js +0 -1623
  143. package/dist/es/components/runtime/utils/events/validator-util.js +0 -389
  144. package/dist/es/components/runtime/utils/global-refs.js +0 -65
  145. package/dist/es/components/runtime/utils/interfaces/page-design-types.js +0 -9
  146. package/dist/es/components/runtime/utils/page-helper-util.js +0 -503
  147. package/dist/es/components/runtime/utils/page-init-util.js +0 -200
  148. package/dist/es/components/runtime/utils/store-util.js +0 -17
  149. package/dist/es/components/runtime/utils/store.js +0 -4
  150. package/dist/es/components/runtime/utils/table-utils.js +0 -23
  151. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -4
  152. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +0 -55
  153. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -4
  154. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -36
  155. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -4
  156. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -111
  157. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -4
  158. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -54
  159. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -4
  160. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -50
  161. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -4
  162. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -51
  163. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -4
  164. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -51
  165. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -4
  166. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -52
  167. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +0 -148
  168. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -4
  169. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -128
  170. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -4
  171. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -105
  172. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -4
  173. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -4
  174. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -73
  175. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -4
  176. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -75
  177. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -4
  178. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -80
  179. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -4
  180. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -44
  181. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -4
  182. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -45
  183. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -4
  184. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -31
  185. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -4
  186. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -70
  187. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -4
  188. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -76
  189. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +0 -642
  190. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -4
  191. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +0 -453
  192. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -4
  193. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -4
  194. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -88
  195. package/dist/es/components/runtime/views/assemblys/error-render.vue.js +0 -23
  196. package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +0 -4
  197. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -4
  198. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -157
  199. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -4
  200. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -83
  201. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -4
  202. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -64
  203. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -4
  204. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +0 -41
  205. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -4
  206. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -75
  207. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -4
  208. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -64
  209. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -4
  210. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -128
  211. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -4
  212. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +0 -128
  213. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -4
  214. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -78
  215. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -4
  216. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -30
  217. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -4
  218. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -158
  219. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -4
  220. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -163
  221. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -4
  222. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +0 -202
  223. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -4
  224. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +0 -64
  225. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -4
  226. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +0 -64
  227. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -4
  228. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -66
  229. package/dist/es/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
  230. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +0 -143
  231. package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +0 -4
  232. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -4
  233. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +0 -62
  234. package/dist/es/components/runtime/views/super-page.vue.d.ts +0 -91
  235. package/dist/es/components/runtime/views/super-page.vue.js +0 -481
  236. package/dist/es/components/runtime/views/super-page.vue2.js +0 -4
  237. package/dist/es/components/super-page-dialog/index.js +0 -4
  238. package/dist/es/components/super-page-dialog/super-page-dialog.vue.js +0 -75
  239. package/dist/es/components/super-page-dialog/super-page-dialog.vue2.js +0 -4
  240. package/dist/es/components/wf-editor/index.js +0 -4
  241. package/dist/es/components/wf-editor/wf-editor.css +0 -4
  242. package/dist/es/components/wf-editor/wf-editor.vue.js +0 -16
  243. package/dist/es/index.d.ts +0 -5
  244. package/dist/es/index.js +0 -8
  245. package/dist/lib/components/runtime/index.d.ts +0 -3
  246. package/dist/lib/components/runtime/utils/api/api-util.d.ts +0 -11
  247. package/dist/lib/components/runtime/utils/charts/chart-util.js +0 -15
  248. package/dist/lib/components/runtime/utils/common-util.d.ts +0 -11
  249. package/dist/lib/components/runtime/utils/events/event-util.d.ts +0 -48
  250. package/dist/lib/components/runtime/utils/events/standard-event.d.ts +0 -61
  251. package/dist/lib/components/runtime/utils/events/validator-util.d.ts +0 -4
  252. package/dist/lib/components/runtime/utils/global-refs.d.ts +0 -59
  253. package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +0 -221
  254. package/dist/lib/components/runtime/utils/page-helper-util.d.ts +0 -87
  255. package/dist/lib/components/runtime/utils/page-init-util.d.ts +0 -38
  256. package/dist/lib/components/runtime/utils/store-util.d.ts +0 -15
  257. package/dist/lib/components/runtime/utils/store.d.ts +0 -2
  258. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -24
  259. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -35
  260. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -26
  261. package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +0 -22
  262. package/dist/lib/components/super-page-dialog/index.d.ts +0 -3
  263. package/dist/lib/components/super-page-dialog/super-page-dialog.vue.d.ts +0 -36
  264. package/dist/lib/components/wf-editor/index.d.ts +0 -3
  265. package/dist/lib/components/wf-editor/wf-editor.css +0 -4
  266. package/dist/lib/components/wf-editor/wf-editor.vue.d.ts +0 -2
  267. package/dist/lib/favicon.ico +0 -0
  268. package/dist/lib/index.d.ts +0 -5
  269. package/src/components/runtime/utils/charts/chart-util.ts +0 -37
  270. package/src/components/runtime/utils/container-style-util.ts +0 -223
  271. package/src/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue +0 -27
  272. package/src/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue +0 -85
  273. package/src/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue +0 -61
  274. package/src/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue +0 -54
  275. package/src/components/runtime/views/assemblys/chart/pie/pie-runtime.vue +0 -57
  276. package/src/components/runtime/views/assemblys/chart/radar/radar-runtime.vue +0 -56
  277. package/src/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue +0 -58
  278. package/src/components/runtime/views/assemblys/common/export-form-report-dialog.vue +0 -118
  279. package/src/components/runtime/views/assemblys/container/container/container-runtime.vue +0 -50
  280. package/src/components/runtime/views/assemblys/container/flex/flex-runtime.vue +0 -33
  281. package/src/components/runtime/views/assemblys/container/form/form-runtime.vue +0 -35
  282. package/src/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue +0 -28
  283. package/src/components/runtime/views/assemblys/container/tools/tools-runtime.vue +0 -97
  284. package/src/components/runtime/views/assemblys/data/bar-code/barcode-attr-base.vue +0 -110
  285. package/src/components/runtime/views/assemblys/data/bar-code/barcode-attr.vue +0 -29
  286. package/src/components/runtime/views/assemblys/data/bar-code/barcode-design.vue +0 -95
  287. package/src/components/runtime/views/assemblys/data/tree/tree-attr.vue +0 -29
  288. package/src/components/runtime/views/assemblys/data/tree/tree-design.vue +0 -114
  289. package/src/components/runtime/views/assemblys/form/custom/custom-attr.vue +0 -29
  290. package/src/components/runtime/views/assemblys/form/custom/custom-design.vue +0 -46
  291. package/src/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue +0 -74
  292. package/src/components/runtime/views/assemblys/form/divider/divider-runtime.vue +0 -40
  293. package/src/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr.vue +0 -29
  294. package/src/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-design.vue +0 -84
  295. package/src/components/runtime/views/assemblys/form/image-upload/imageupload-attr.vue +0 -29
  296. package/src/components/runtime/views/assemblys/form/image-upload/imageupload-design.vue +0 -66
  297. package/src/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue +0 -57
  298. package/src/components/runtime/views/assemblys/form/input-show/input-show-attr-style.vue +0 -58
  299. package/src/components/runtime/views/assemblys/form/input-show/input-show-attr.vue +0 -29
  300. package/src/components/runtime/views/assemblys/form/input-show/input-show-design.vue +0 -132
  301. package/src/components/runtime/views/assemblys/form/label/label-runtime.vue +0 -115
  302. package/src/components/runtime/views/assemblys/form/link/link-runtime.vue +0 -67
  303. package/src/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue +0 -23
  304. package/src/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue +0 -153
  305. package/src/components/runtime/views/assemblys/form/switch/switch-runtime.vue +0 -58
  306. package/src/components/runtime/views/assemblys/form/tag/tag-runtime.vue +0 -60
  307. package/src/components/runtime/views/assemblys/page/page-attr-base.vue +0 -252
  308. package/src/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr.vue +0 -29
  309. package/src/components/runtime/views/assemblys/workflow/text-history/texthistory-attr.vue +0 -29
  310. /package/{src/App.vue → App.vue} +0 -0
  311. /package/{src/components → components}/runtime/index.ts +0 -0
  312. /package/{src/components → components}/runtime/utils/assemblys-config.js +0 -0
  313. /package/{src/components → components}/runtime/views/assemblys/chart/common/common-attr-assistant.vue +0 -0
  314. /package/{src/components → components}/runtime/views/assemblys/chart/common/common-attr-base.vue +0 -0
  315. /package/{src/components → components}/runtime/views/assemblys/chart/common/common-attr-drill.vue +0 -0
  316. /package/{src/components → components}/runtime/views/assemblys/chart/common/common-attr-groupby.vue +0 -0
  317. /package/{src/components → components}/runtime/views/assemblys/chart/common/common-attr-serieslist.vue +0 -0
  318. /package/{src/components → components}/runtime/views/assemblys/chart/common/common-attr-sortby.vue +0 -0
  319. /package/{src/components → components}/runtime/views/assemblys/chart/common/common-style-custom.vue +0 -0
  320. /package/{src/components → components}/runtime/views/assemblys/chart/common/common-style-datazoom.vue +0 -0
  321. /package/{src/components → components}/runtime/views/assemblys/chart/common/common-style-font-subtitle.vue +0 -0
  322. /package/{src/components → components}/runtime/views/assemblys/chart/common/common-style-font-title.vue +0 -0
  323. /package/{src/components → components}/runtime/views/assemblys/chart/common/common-style-grid.vue +0 -0
  324. /package/{src/components → components}/runtime/views/assemblys/chart/common/common-style-legend.vue +0 -0
  325. /package/{src/components → components}/runtime/views/assemblys/chart/common/common-style-tooltip.vue +0 -0
  326. /package/{src/components → components}/runtime/views/assemblys/chart/common/common-style-xaxis.vue +0 -0
  327. /package/{src/components → components}/runtime/views/assemblys/chart/common/common-style-yaxis.vue +0 -0
  328. /package/{src/components → components}/runtime/views/assemblys/chart/common-series/common-attr-dataset.vue +0 -0
  329. /package/{src/components → components}/runtime/views/assemblys/chart/common-series/common-attr-dynamic.vue +0 -0
  330. /package/{src/components → components}/runtime/views/assemblys/chart/common-series/common-attr-testdatas.vue +0 -0
  331. /package/{src/components → components}/runtime/views/assemblys/chart/common-series/common-style-label.vue +0 -0
  332. /package/{src/components → components}/runtime/views/assemblys/common/common-attr-cursor.vue +0 -0
  333. /package/{src/components → components}/runtime/views/assemblys/common/common-attr-size.vue +0 -0
  334. /package/{src/components → components}/runtime/views/assemblys/common/common-select-table.vue +0 -0
  335. /package/{src/components → components}/runtime/views/assemblys/common/common-style-background.vue +0 -0
  336. /package/{src/components → components}/runtime/views/assemblys/common/common-style-border.vue +0 -0
  337. /package/{src/components → components}/runtime/views/assemblys/common/common-style-custom.vue +0 -0
  338. /package/{src/components → components}/runtime/views/assemblys/common/common-style-font-head.vue +0 -0
  339. /package/{src/components → components}/runtime/views/assemblys/common/common-style-font.vue +0 -0
  340. /package/{src/components → components}/runtime/views/assemblys/common/common-style-margin.vue +0 -0
  341. /package/{src/components → components}/runtime/views/assemblys/common/common-style-padding.vue +0 -0
  342. /package/{src/components → components}/runtime/views/assemblys/common/common-style-position.vue +0 -0
  343. /package/{src/components → components}/runtime/views/assemblys/common/common-style-shadow.vue +0 -0
  344. /package/{src/components → components}/runtime/views/assemblys/common/remove-signer-dialog.vue +0 -0
  345. /package/{src/components → components}/runtime/views/assemblys/common/task-informition-dialog.vue +0 -0
  346. /package/{src/components → components}/runtime/views/assemblys/common-attr-events.vue +0 -0
  347. /package/{src/components → components}/runtime/views/assemblys/data/bar-code/barcode-attr-event.vue +0 -0
  348. /package/{src/components → components}/runtime/views/assemblys/data/bar-code/barcode-attr-style.vue +0 -0
  349. /package/{src/components → components}/runtime/views/assemblys/data/component/attr-header.vue +0 -0
  350. /package/{src/components → components}/runtime/views/assemblys/data/component/attr-style.vue +0 -0
  351. /package/{src/components → components}/runtime/views/assemblys/data/component/column-config.vue +0 -0
  352. /package/{src/components → components}/runtime/views/assemblys/data/component/combinedHeader.vue +0 -0
  353. /package/{src/components → components}/runtime/views/assemblys/data/component/composite-header.vue +0 -0
  354. /package/{src/components → components}/runtime/views/assemblys/data/component/configuration-value.vue +0 -0
  355. /package/{src/components → components}/runtime/views/assemblys/data/component/data-origin-tree.vue +0 -0
  356. /package/{src/components → components}/runtime/views/assemblys/data/component/data-origin.vue +0 -0
  357. /package/{src/components → components}/runtime/views/assemblys/data/component/formatting.vue +0 -0
  358. /package/{src/components → components}/runtime/views/assemblys/data/component/in-parameter.vue +0 -0
  359. /package/{src/components → components}/runtime/views/assemblys/data/component/querySetting.vue +0 -0
  360. /package/{src/components → components}/runtime/views/assemblys/data/component/return-set-table.vue +0 -0
  361. /package/{src/components → components}/runtime/views/assemblys/data/component/row-backgroud-color.vue +0 -0
  362. /package/{src/components → components}/runtime/views/assemblys/data/component/select-data-table.vue +0 -0
  363. /package/{src/components → components}/runtime/views/assemblys/data/tree/tree-attr-base.vue +0 -0
  364. /package/{src/components → components}/runtime/views/assemblys/data/tree/tree-attr-event.vue +0 -0
  365. /package/{src/components → components}/runtime/views/assemblys/data/tree/tree-attr-style.vue +0 -0
  366. /package/{src/components → components}/runtime/views/assemblys/error-attr.vue +0 -0
  367. /package/{src/components → components}/runtime/views/assemblys/error-render.vue +0 -0
  368. /package/{src/components → components}/runtime/views/assemblys/form/cascader/cascader-design.vue +0 -0
  369. /package/{src/components → components}/runtime/views/assemblys/form/colors/colors-design.vue +0 -0
  370. /package/{src/components → components}/runtime/views/assemblys/form/common/analytic-rule.vue +0 -0
  371. /package/{src/components → components}/runtime/views/assemblys/form/common/attr-event.vue +0 -0
  372. /package/{src/components → components}/runtime/views/assemblys/form/common/attr-header.vue +0 -0
  373. /package/{src/components → components}/runtime/views/assemblys/form/common/attr-style.vue +0 -0
  374. /package/{src/components → components}/runtime/views/assemblys/form/common/bar-code-rule.vue +0 -0
  375. /package/{src/components → components}/runtime/views/assemblys/form/common/condition.vue +0 -0
  376. /package/{src/components → components}/runtime/views/assemblys/form/common/data-origin.vue +0 -0
  377. /package/{src/components → components}/runtime/views/assemblys/form/common/data-orign-in-parameter.vue +0 -0
  378. /package/{src/components → components}/runtime/views/assemblys/form/common/dataorigin-input-table.vue +0 -0
  379. /package/{src/components → components}/runtime/views/assemblys/form/common/default-value-setting.vue +0 -0
  380. /package/{src/components → components}/runtime/views/assemblys/form/common/dimension-input.vue +0 -0
  381. /package/{src/components → components}/runtime/views/assemblys/form/common/dynamic-data-source-setting.vue +0 -0
  382. /package/{src/components → components}/runtime/views/assemblys/form/common/formatting-label.vue +0 -0
  383. /package/{src/components → components}/runtime/views/assemblys/form/common/grid-num-select.vue +0 -0
  384. /package/{src/components → components}/runtime/views/assemblys/form/common/icon-set-dialog.vue +0 -0
  385. /package/{src/components → components}/runtime/views/assemblys/form/common/linkage.vue +0 -0
  386. /package/{src/components → components}/runtime/views/assemblys/form/common/overall-height.vue +0 -0
  387. /package/{src/components → components}/runtime/views/assemblys/form/common/overall-width.vue +0 -0
  388. /package/{src/components → components}/runtime/views/assemblys/form/common/pre-suffix.vue +0 -0
  389. /package/{src/components → components}/runtime/views/assemblys/form/common/rich-text.vue +0 -0
  390. /package/{src/components → components}/runtime/views/assemblys/form/common/row-ul-li.vue +0 -0
  391. /package/{src/components → components}/runtime/views/assemblys/form/common/setoption-table.vue +0 -0
  392. /package/{src/components → components}/runtime/views/assemblys/form/common/size-input.vue +0 -0
  393. /package/{src/components → components}/runtime/views/assemblys/form/common/suffixmodule.vue +0 -0
  394. /package/{src/components → components}/runtime/views/assemblys/form/common/title.vue +0 -0
  395. /package/{src/components → components}/runtime/views/assemblys/form/common/uploading.vue +0 -0
  396. /package/{src/components → components}/runtime/views/assemblys/form/common/verification.vue +0 -0
  397. /package/{src/components → components}/runtime/views/assemblys/form/common/voluntarily.vue +0 -0
  398. /package/{src/components → components}/runtime/views/assemblys/form/custom/custom-attr-base.vue +0 -0
  399. /package/{src/components → components}/runtime/views/assemblys/form/custom/custom-attr-event.vue +0 -0
  400. /package/{src/components → components}/runtime/views/assemblys/form/custom/custom-attr-style.vue +0 -0
  401. /package/{src/components → components}/runtime/views/assemblys/form/datetime/datetime-design.vue +0 -0
  402. /package/{src/components → components}/runtime/views/assemblys/form/file-picture/picture-design.vue +0 -0
  403. /package/{src/components → components}/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-base.vue +0 -0
  404. /package/{src/components → components}/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-event.vue +0 -0
  405. /package/{src/components → components}/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-style.vue +0 -0
  406. /package/{src/components → components}/runtime/views/assemblys/form/image-upload/imageupload-attr-base.vue +0 -0
  407. /package/{src/components → components}/runtime/views/assemblys/form/image-upload/imageupload-attr-event.vue +0 -0
  408. /package/{src/components → components}/runtime/views/assemblys/form/image-upload/imageupload-attr-style.vue +0 -0
  409. /package/{src/components → components}/runtime/views/assemblys/form/input-show/input-show-attr-base.vue +0 -0
  410. /package/{src/components → components}/runtime/views/assemblys/form/input-show/input-show-attr-event.vue +0 -0
  411. /package/{src/components → components}/runtime/views/assemblys/form/rate/rate-design.vue +0 -0
  412. /package/{src/components → components}/runtime/views/assemblys/form/slider/slider-design.vue +0 -0
  413. /package/{src/components → components}/runtime/views/assemblys/form/text/text-design.vue +0 -0
  414. /package/{src/components → components}/runtime/views/assemblys/form/transfer/transfer-design.vue +0 -0
  415. /package/{src/components → components}/runtime/views/assemblys/page/page-attr-events.vue +0 -0
  416. /package/{src/components → components}/runtime/views/assemblys/page/page-attr-style.vue +0 -0
  417. /package/{src/components → components}/runtime/views/assemblys/page/page-attr.vue +0 -0
  418. /package/{src/components → components}/runtime/views/assemblys/page/variable-dialog.vue +0 -0
  419. /package/{src/components → components}/runtime/views/assemblys/workflow/component/combination.vue +0 -0
  420. /package/{src/components → components}/runtime/views/assemblys/workflow/component/condition-dialog.vue +0 -0
  421. /package/{src/components → components}/runtime/views/assemblys/workflow/component/event-dialog.vue +0 -0
  422. /package/{src/components → components}/runtime/views/assemblys/workflow/component/journal-set-dialog.vue +0 -0
  423. /package/{src/components → components}/runtime/views/assemblys/workflow/component/logical-setup-dialog.vue +0 -0
  424. /package/{src/components → components}/runtime/views/assemblys/workflow/component/rule-dialog.vue +0 -0
  425. /package/{src/components → components}/runtime/views/assemblys/workflow/component/set-dialog.vue +0 -0
  426. /package/{src/components → components}/runtime/views/assemblys/workflow/component/task-trigger-dialog.vue +0 -0
  427. /package/{src/components → components}/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-base.vue +0 -0
  428. /package/{src/components → components}/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-event.vue +0 -0
  429. /package/{src/components → components}/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-style.vue +0 -0
  430. /package/{src/components → components}/runtime/views/assemblys/workflow/picture-flow/pictureflow-design.vue +0 -0
  431. /package/{src/components → components}/runtime/views/assemblys/workflow/text-history/texthistory-attr-base.vue +0 -0
  432. /package/{src/components → components}/runtime/views/assemblys/workflow/text-history/texthistory-attr-event.vue +0 -0
  433. /package/{src/components → components}/runtime/views/assemblys/workflow/text-history/texthistory-attr-style.vue +0 -0
  434. /package/{src/components → components}/runtime/views/assemblys/workflow/text-history/texthistory-design.vue +0 -0
  435. /package/{src/components → components}/runtime/views/render/page-view.vue +0 -0
  436. /package/{src/components → components}/runtime/views/super-page copy.vue +0 -0
  437. /package/{src/components → components}/super-page-dialog/index.ts +0 -0
  438. /package/{src/components → components}/super-page-dialog/super-page-dialog.vue +0 -0
  439. /package/{src/components → components}/wf-editor/index.ts +0 -0
  440. /package/{src/components → components}/wf-editor/wf-editor.vue +0 -0
  441. /package/{dist/lib → lib}/_virtual/_plugin-vue_export-helper.js +0 -0
  442. /package/{dist/es → lib}/components/runtime/index.d.ts +0 -0
  443. /package/{dist/es → lib}/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -0
  444. /package/{dist/es → lib}/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -0
  445. /package/{dist/es → lib}/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -0
  446. /package/{dist/es → lib}/components/runtime/views/assemblys/error-render.vue.d.ts +0 -0
  447. /package/{dist/es → lib}/components/super-page-dialog/index.d.ts +0 -0
  448. /package/{dist/es → lib}/components/super-page-dialog/super-page-dialog.vue.d.ts +0 -0
  449. /package/{dist/es → lib}/components/wf-editor/index.d.ts +0 -0
  450. /package/{dist/es → lib}/components/wf-editor/wf-editor.vue.d.ts +0 -0
  451. /package/{dist/es → lib}/favicon.ico +0 -0
  452. /package/{dist/lib/components → lib}/runtime/index.js +0 -0
  453. /package/{dist/lib/components → lib}/runtime/utils/assemblys-config.js +0 -0
  454. /package/{dist/lib/components → lib}/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -0
  455. /package/{dist/lib/components → lib}/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -0
  456. /package/{dist/lib/components → lib}/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -0
  457. /package/{dist/lib/components → lib}/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -0
  458. /package/{dist/lib/components → lib}/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -0
  459. /package/{dist/lib/components → lib}/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -0
  460. /package/{dist/lib/components → lib}/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -0
  461. /package/{dist/lib/components → lib}/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -0
  462. /package/{dist/lib/components → lib}/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -0
  463. /package/{dist/lib/components → lib}/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -0
  464. /package/{dist/lib/components → lib}/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -0
  465. /package/{dist/lib/components → lib}/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -0
  466. /package/{dist/lib/components → lib}/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -0
  467. /package/{dist/lib/components → lib}/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -0
  468. /package/{dist/lib/components → lib}/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -0
  469. /package/{dist/lib/components → lib}/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -0
  470. /package/{dist/lib/components → lib}/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -0
  471. /package/{dist/lib/components → lib}/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -0
  472. /package/{dist/lib/components → lib}/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -0
  473. /package/{dist/lib/components → lib}/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -0
  474. /package/{dist/lib/components → lib}/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -0
  475. /package/{dist/lib/components → lib}/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -0
  476. /package/{dist/lib/components → lib}/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -0
  477. /package/{dist/lib/components → lib}/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -0
  478. /package/{dist/lib/components → lib}/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -0
  479. /package/{dist/lib/components → lib}/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -0
  480. /package/{dist/lib/components → lib}/runtime/views/assemblys/error-render.vue.js +0 -0
  481. /package/{dist/lib/components → lib}/runtime/views/assemblys/error-render.vue2.js +0 -0
  482. /package/{dist/lib/components → lib}/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -0
  483. /package/{dist/lib/components → lib}/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -0
  484. /package/{dist/lib/components → lib}/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -0
  485. /package/{dist/lib/components → lib}/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -0
  486. /package/{dist/lib/components → lib}/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -0
  487. /package/{dist/lib/components → lib}/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -0
  488. /package/{dist/lib/components → lib}/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -0
  489. /package/{dist/lib/components → lib}/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -0
  490. /package/{dist/lib/components → lib}/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -0
  491. /package/{dist/lib/components → lib}/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -0
  492. /package/{dist/lib/components → lib}/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -0
  493. /package/{dist/lib/components → lib}/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -0
  494. /package/{dist/lib/components → lib}/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -0
  495. /package/{dist/lib/components → lib}/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -0
  496. /package/{dist/lib/components → lib}/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -0
  497. /package/{dist/lib/components → lib}/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -0
  498. /package/{dist/lib/components → lib}/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -0
  499. /package/{dist/lib/components → lib}/runtime/views/assemblys/object-render.vue2.js +0 -0
  500. /package/{dist/lib/components → lib}/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -0
  501. /package/{dist/lib/components → lib}/runtime/views/super-page.vue2.js +0 -0
  502. /package/{dist/lib → lib/src}/assets/chart-themes/theme1.js +0 -0
  503. /package/{dist/lib → lib/src}/assets/chart-themes/theme2.js +0 -0
  504. /package/{dist/lib → lib/src}/assets/chart-themes/theme3.js +0 -0
  505. /package/{dist/es/components/runtime → lib/src}/utils/api/api-util.d.ts +0 -0
  506. /package/{dist/lib/components/runtime → lib/src}/utils/api/api-util.js +0 -0
  507. /package/{dist/es/components/runtime → lib/src}/utils/common-util.d.ts +0 -0
  508. /package/{dist/lib/components/runtime → lib/src}/utils/common-util.js +0 -0
  509. /package/{dist/lib/components/runtime → lib/src}/utils/events/event-util.js +0 -0
  510. /package/{dist/es/components/runtime → lib/src}/utils/events/standard-event.d.ts +0 -0
  511. /package/{dist/lib/components/runtime → lib/src}/utils/events/standard-event.js +0 -0
  512. /package/{dist/es/components/runtime → lib/src}/utils/events/validator-util.d.ts +0 -0
  513. /package/{dist/lib/components/runtime → lib/src}/utils/events/validator-util.js +0 -0
  514. /package/{dist/es/components/runtime → lib/src}/utils/global-refs.d.ts +0 -0
  515. /package/{dist/lib/components/runtime → lib/src}/utils/global-refs.js +0 -0
  516. /package/{dist/es/components/runtime → lib/src}/utils/interfaces/page-design-types.d.ts +0 -0
  517. /package/{dist/lib/components/runtime → lib/src}/utils/interfaces/page-design-types.js +0 -0
  518. /package/{dist/es/components/runtime → lib/src}/utils/page-helper-util.d.ts +0 -0
  519. /package/{dist/lib/components/runtime → lib/src}/utils/page-helper-util.js +0 -0
  520. /package/{dist/es/components/runtime → lib/src}/utils/page-init-util.d.ts +0 -0
  521. /package/{dist/lib/components/runtime → lib/src}/utils/page-init-util.js +0 -0
  522. /package/{dist/es/components/runtime → lib/src}/utils/store-util.d.ts +0 -0
  523. /package/{dist/lib/components/runtime → lib/src}/utils/store-util.js +0 -0
  524. /package/{dist/es/components/runtime → lib/src}/utils/store.d.ts +0 -0
  525. /package/{dist/lib/components/runtime → lib/src}/utils/store.js +0 -0
  526. /package/{dist/lib/components/runtime → lib/src}/utils/table-utils.js +0 -0
  527. /package/{dist/lib/components → lib}/super-page-dialog/index.js +0 -0
  528. /package/{dist/lib/components → lib}/super-page-dialog/super-page-dialog.vue2.js +0 -0
  529. /package/{dist/lib/components → lib}/wf-editor/index.js +0 -0
  530. /package/{src/main.ts → main.ts} +0 -0
  531. /package/{dist → public}/favicon.ico +0 -0
  532. /package/src/{components/runtime/utils → utils}/api/api-util.ts +0 -0
  533. /package/src/{components/runtime/utils → utils}/common-util.ts +0 -0
  534. /package/src/{components/runtime/utils → utils}/eventBus.ts +0 -0
  535. /package/src/{components/runtime/utils → utils}/events/jump-page-util.ts +0 -0
  536. /package/src/{components/runtime/utils → utils}/global-refs.ts +0 -0
  537. /package/src/{components/runtime/utils → utils}/interfaces/page-design-types.ts +0 -0
  538. /package/src/{components/runtime/utils → utils}/page-helper-util.ts +0 -0
  539. /package/src/{components/runtime/utils → utils}/page-init-util.ts +0 -0
  540. /package/src/{components/runtime/utils → utils}/page-permission-util.ts +0 -0
  541. /package/src/{components/runtime/utils → utils}/store-util.ts +0 -0
  542. /package/src/{components/runtime/utils → utils}/store.ts +0 -0
  543. /package/src/{components/runtime/utils → utils}/table-utils.ts +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
- };