super-page-runtime 1.0.17 → 1.3.13

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 (419) hide show
  1. package/dist/es/_virtual/_plugin-vue_export-helper.js +8 -0
  2. package/dist/es/assets/chart-themes/theme1.d.ts +4 -0
  3. package/dist/es/assets/chart-themes/theme1.js +4 -0
  4. package/dist/es/assets/chart-themes/theme2.d.ts +4 -0
  5. package/dist/es/assets/chart-themes/theme2.js +4 -0
  6. package/dist/es/assets/chart-themes/theme3.d.ts +4 -0
  7. package/dist/es/assets/chart-themes/theme3.js +4 -0
  8. package/dist/es/assets/file.png.js +4 -0
  9. package/dist/es/assets/folder.png.js +4 -0
  10. package/dist/es/components/runtime/index.d.ts +5 -0
  11. package/dist/es/components/runtime/utils/api/api-util.d.ts +1 -0
  12. package/dist/es/components/runtime/utils/api/api-util.js +4 -0
  13. package/dist/es/components/runtime/utils/api/page-expose-util.d.ts +1 -0
  14. package/dist/es/components/runtime/utils/api/page-expose-util.js +159 -0
  15. package/dist/es/components/runtime/utils/assemblys-config.js +20 -0
  16. package/dist/es/components/runtime/utils/barcode-util.d.ts +8 -0
  17. package/dist/es/components/runtime/utils/barcode-util.js +12 -0
  18. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +140 -0
  19. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +37 -0
  20. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +81 -0
  21. package/dist/es/components/runtime/utils/charts/chart-radar-util.js +55 -0
  22. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +46 -0
  23. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +113 -0
  24. package/dist/es/components/runtime/utils/charts/chart-util.js +274 -0
  25. package/dist/es/components/runtime/utils/common-util.d.ts +33 -0
  26. package/dist/es/components/runtime/utils/common-util.js +120 -0
  27. package/dist/es/components/runtime/utils/eventBus.d.ts +7 -0
  28. package/dist/es/components/runtime/utils/eventBus.js +5 -0
  29. package/{lib/src → dist/es/components/runtime}/utils/events/event-util.d.ts +45 -1
  30. package/dist/es/components/runtime/utils/events/event-util.js +403 -0
  31. package/dist/es/components/runtime/utils/events/print-label.d.ts +5 -0
  32. package/dist/es/components/runtime/utils/events/print-label.js +100 -0
  33. package/{lib/src → dist/es/components/runtime}/utils/events/standard-event.d.ts +29 -3
  34. package/dist/es/components/runtime/utils/events/standard-event.js +971 -0
  35. package/dist/es/components/runtime/utils/events/validator-util.d.ts +25 -0
  36. package/dist/es/components/runtime/utils/events/validator-util.js +309 -0
  37. package/dist/es/components/runtime/utils/form/date-shortcuts.d.ts +7 -0
  38. package/dist/es/components/runtime/utils/form/date-shortcuts.js +36 -0
  39. package/dist/es/components/runtime/utils/form/scan-util.js +93 -0
  40. package/{lib/src → dist/es/components/runtime}/utils/global-refs.d.ts +6 -0
  41. package/dist/es/components/runtime/utils/global-refs.js +57 -0
  42. package/dist/es/components/runtime/utils/i18n-util.d.ts +1 -0
  43. package/dist/es/components/runtime/utils/i18n-util.js +14 -0
  44. package/{lib/src → dist/es/components/runtime}/utils/interfaces/page-design-types.d.ts +32 -6
  45. package/dist/es/components/runtime/utils/interfaces/page-design-types.js +4 -0
  46. package/dist/es/components/runtime/utils/page-helper-util.d.ts +174 -0
  47. package/dist/es/components/runtime/utils/page-helper-util.js +386 -0
  48. package/{lib/src → dist/es/components/runtime}/utils/page-init-util.d.ts +12 -2
  49. package/dist/es/components/runtime/utils/page-init-util.js +203 -0
  50. package/dist/es/components/runtime/utils/page-permission-util.d.ts +26 -0
  51. package/dist/es/components/runtime/utils/page-permission-util.js +30 -0
  52. package/dist/es/components/runtime/utils/page-store.d.ts +46 -0
  53. package/dist/es/components/runtime/utils/page-store.js +26 -0
  54. package/dist/es/components/runtime/utils/store-util.js +13 -0
  55. package/dist/es/components/runtime/utils/store.js +4 -0
  56. package/dist/es/components/runtime/utils/table-utils.d.ts +34 -0
  57. package/dist/es/components/runtime/utils/table-utils.js +80 -0
  58. package/dist/es/components/runtime/utils/tree-utils.js +73 -0
  59. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +4 -0
  60. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +27 -0
  61. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +7 -0
  62. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +21 -0
  63. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +4 -0
  64. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +41 -0
  65. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +4 -0
  66. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +6 -0
  67. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +4 -0
  68. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +21 -0
  69. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +7 -0
  70. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +53 -0
  71. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +14 -0
  72. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +4 -0
  73. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +13 -0
  74. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +4 -0
  75. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +60 -0
  76. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +4 -0
  77. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +7 -0
  78. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +63 -0
  79. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +7 -0
  80. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +35 -0
  81. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +7 -0
  82. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +46 -0
  83. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +7 -0
  84. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +35 -0
  85. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +7 -0
  86. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +35 -0
  87. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +121 -0
  88. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +419 -0
  89. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +6 -0
  90. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +4 -0
  91. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +10 -0
  92. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.js +4 -0
  93. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +45 -0
  94. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +4 -0
  95. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +15 -0
  96. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +4 -0
  97. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +4 -0
  98. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +255 -0
  99. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +28 -0
  100. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +36 -0
  101. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +4 -0
  102. package/{lib → dist/es}/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +5 -5
  103. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +24 -0
  104. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +4 -0
  105. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.d.ts +31 -0
  106. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +35 -0
  107. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue2.js +4 -0
  108. package/{lib → dist/es}/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +5 -5
  109. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +19 -0
  110. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +4 -0
  111. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +7 -0
  112. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +29 -0
  113. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +4 -0
  114. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +21 -0
  115. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +4 -0
  116. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +18 -0
  117. package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.js +7 -0
  118. package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue2.js +29 -0
  119. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.d.ts +94 -0
  120. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +7 -0
  121. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +81 -0
  122. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +4 -0
  123. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +25 -0
  124. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +4 -0
  125. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +20 -0
  126. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +4 -0
  127. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +14 -0
  128. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +7 -0
  129. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +96 -0
  130. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +7 -0
  131. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +35 -0
  132. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +4 -0
  133. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +69 -0
  134. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +378 -0
  135. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +4 -0
  136. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +300 -0
  137. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +4 -0
  138. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +4 -0
  139. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +82 -0
  140. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +7 -0
  141. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +134 -0
  142. package/{lib → dist/es}/components/runtime/views/assemblys/error-render.vue.d.ts +4 -4
  143. package/dist/es/components/runtime/views/assemblys/error-render.vue.js +5 -0
  144. package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +4 -0
  145. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +4 -0
  146. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +50 -0
  147. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +38 -0
  148. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +4 -0
  149. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +4 -0
  150. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +69 -0
  151. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +4 -0
  152. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +90 -0
  153. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +4 -0
  154. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +55 -0
  155. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +4 -0
  156. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +24 -0
  157. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +4 -0
  158. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +75 -0
  159. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +4 -0
  160. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +28 -0
  161. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +4 -0
  162. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +82 -0
  163. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +4 -0
  164. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +37 -0
  165. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +4 -0
  166. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +32 -0
  167. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +7 -0
  168. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +16 -0
  169. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +4 -0
  170. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +73 -0
  171. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +4 -0
  172. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +102 -0
  173. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +4 -0
  174. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +97 -0
  175. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +4 -0
  176. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +16 -0
  177. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +4 -0
  178. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +36 -0
  179. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +4 -0
  180. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +44 -0
  181. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +4 -0
  182. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +28 -0
  183. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.d.ts +17 -0
  184. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +83 -0
  185. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +4 -0
  186. package/dist/es/components/runtime/views/assemblys/object-render.vue.d.ts +17 -0
  187. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +129 -0
  188. package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +4 -0
  189. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +4 -0
  190. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +20 -0
  191. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +4 -0
  192. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +23 -0
  193. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +7 -0
  194. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +24 -0
  195. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +4 -0
  196. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +18 -0
  197. package/dist/es/components/runtime/views/home-chart.vue.d.ts +23 -0
  198. package/dist/es/components/runtime/views/home-chart.vue.js +47 -0
  199. package/dist/es/components/runtime/views/home-chart.vue2.js +4 -0
  200. package/{lib/components/super-page-dialog → dist/es/components/runtime/views}/super-page-dialog.vue.d.ts +7 -3
  201. package/dist/es/components/runtime/views/super-page-dialog.vue.js +26 -0
  202. package/dist/es/components/runtime/views/super-page-dialog.vue3.js +5 -0
  203. package/{lib → dist/es}/components/runtime/views/super-page.vue.d.ts +43 -10
  204. package/dist/es/components/runtime/views/super-page.vue.js +7 -0
  205. package/dist/es/components/runtime/views/super-page.vue2.js +262 -0
  206. package/dist/es/i18n/langs/cn.js +4 -0
  207. package/dist/es/i18n/langs/en.js +4 -0
  208. package/dist/es/index.d.ts +16 -0
  209. package/dist/es/index.js +30 -0
  210. package/dist/es/style.css +633 -0
  211. package/package.json +74 -71
  212. package/lib/_virtual/_plugin-vue_export-helper.js +0 -9
  213. package/lib/components/index.d.ts +0 -5
  214. package/lib/components/runtime/index.d.ts +0 -3
  215. package/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -24
  216. package/lib/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
  217. package/lib/components/super-page-dialog/index.d.ts +0 -3
  218. package/lib/components/wf-editor/index.d.ts +0 -3
  219. package/lib/components/wf-editor/wf-editor.vue.d.ts +0 -2
  220. package/lib/index.js +0 -8
  221. package/lib/runtime/index.js +0 -3
  222. package/lib/runtime/utils/assemblys-config.js +0 -258
  223. package/lib/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -3
  224. package/lib/runtime/views/assemblys/button/button/button-runtime.vue2.js +0 -54
  225. package/lib/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -3
  226. package/lib/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -35
  227. package/lib/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -3
  228. package/lib/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -110
  229. package/lib/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -3
  230. package/lib/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -53
  231. package/lib/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -3
  232. package/lib/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -42
  233. package/lib/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -3
  234. package/lib/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -50
  235. package/lib/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -3
  236. package/lib/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -50
  237. package/lib/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -3
  238. package/lib/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -51
  239. package/lib/runtime/views/assemblys/common/export-form-report-dialog.vue.js +0 -141
  240. package/lib/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -3
  241. package/lib/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -127
  242. package/lib/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -3
  243. package/lib/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -104
  244. package/lib/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -3
  245. package/lib/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -3
  246. package/lib/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -72
  247. package/lib/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -3
  248. package/lib/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -73
  249. package/lib/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -3
  250. package/lib/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -78
  251. package/lib/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -3
  252. package/lib/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -42
  253. package/lib/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -3
  254. package/lib/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -43
  255. package/lib/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -3
  256. package/lib/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -29
  257. package/lib/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -3
  258. package/lib/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -68
  259. package/lib/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -3
  260. package/lib/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -74
  261. package/lib/runtime/views/assemblys/data/table/main-table-runtime.vue.js +0 -640
  262. package/lib/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -3
  263. package/lib/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +0 -452
  264. package/lib/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -3
  265. package/lib/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -3
  266. package/lib/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -82
  267. package/lib/runtime/views/assemblys/error-render.vue.js +0 -22
  268. package/lib/runtime/views/assemblys/error-render.vue2.js +0 -3
  269. package/lib/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -3
  270. package/lib/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -156
  271. package/lib/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -3
  272. package/lib/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -82
  273. package/lib/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -3
  274. package/lib/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -59
  275. package/lib/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -3
  276. package/lib/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +0 -40
  277. package/lib/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -3
  278. package/lib/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -74
  279. package/lib/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -3
  280. package/lib/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -63
  281. package/lib/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -3
  282. package/lib/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -127
  283. package/lib/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -3
  284. package/lib/runtime/views/assemblys/form/label/label-runtime.vue2.js +0 -133
  285. package/lib/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -3
  286. package/lib/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -77
  287. package/lib/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -3
  288. package/lib/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -29
  289. package/lib/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -3
  290. package/lib/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -157
  291. package/lib/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -3
  292. package/lib/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -174
  293. package/lib/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -3
  294. package/lib/runtime/views/assemblys/form/select/select-runtime.vue2.js +0 -201
  295. package/lib/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -3
  296. package/lib/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +0 -63
  297. package/lib/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -3
  298. package/lib/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +0 -63
  299. package/lib/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -3
  300. package/lib/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -65
  301. package/lib/runtime/views/assemblys/object-render.vue.js +0 -142
  302. package/lib/runtime/views/assemblys/object-render.vue2.js +0 -3
  303. package/lib/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -3
  304. package/lib/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +0 -61
  305. package/lib/runtime/views/super-page.vue.js +0 -479
  306. package/lib/runtime/views/super-page.vue2.js +0 -3
  307. package/lib/src/assets/chart-themes/theme1.js +0 -7
  308. package/lib/src/assets/chart-themes/theme2.js +0 -7
  309. package/lib/src/assets/chart-themes/theme3.js +0 -7
  310. package/lib/src/utils/api/api-util.d.ts +0 -11
  311. package/lib/src/utils/api/api-util.js +0 -128
  312. package/lib/src/utils/charts/chart-util.js +0 -15
  313. package/lib/src/utils/common-util.d.ts +0 -11
  314. package/lib/src/utils/common-util.js +0 -81
  315. package/lib/src/utils/events/event-util.js +0 -525
  316. package/lib/src/utils/events/standard-event.js +0 -1623
  317. package/lib/src/utils/events/validator-util.d.ts +0 -4
  318. package/lib/src/utils/events/validator-util.js +0 -389
  319. package/lib/src/utils/global-refs.js +0 -65
  320. package/lib/src/utils/interfaces/page-design-types.js +0 -9
  321. package/lib/src/utils/page-helper-util.d.ts +0 -87
  322. package/lib/src/utils/page-helper-util.js +0 -503
  323. package/lib/src/utils/page-init-util.js +0 -200
  324. package/lib/src/utils/store-util.js +0 -17
  325. package/lib/src/utils/store.js +0 -3
  326. package/lib/src/utils/table-utils.js +0 -23
  327. package/lib/super-page-dialog/index.js +0 -3
  328. package/lib/super-page-dialog/super-page-dialog.vue.js +0 -73
  329. package/lib/super-page-dialog/super-page-dialog.vue2.js +0 -3
  330. package/lib/wf-editor/index.js +0 -3
  331. package/lib/wf-editor/wf-editor.css +0 -4
  332. package/lib/wf-editor/wf-editor.vue.js +0 -15
  333. package/src/assets/base.css +0 -86
  334. package/src/assets/chart-themes/theme1.ts +0 -6
  335. package/src/assets/chart-themes/theme2.ts +0 -6
  336. package/src/assets/chart-themes/theme3.ts +0 -6
  337. package/src/assets/images/button/button-group.png +0 -0
  338. package/src/assets/images/button/button.png +0 -0
  339. package/src/assets/images/chart/chart-column.png +0 -0
  340. package/src/assets/images/chart/chart-gauge.png +0 -0
  341. package/src/assets/images/chart/chart-pie.png +0 -0
  342. package/src/assets/images/chart/chart-radar.png +0 -0
  343. package/src/assets/images/chart/chart-scatter.png +0 -0
  344. package/src/assets/images/container/container-card.png +0 -0
  345. package/src/assets/images/container/container-collapse.png +0 -0
  346. package/src/assets/images/container/container-container.png +0 -0
  347. package/src/assets/images/container/container-flex.png +0 -0
  348. package/src/assets/images/container/container-form.png +0 -0
  349. package/src/assets/images/container/container-iframe.png +0 -0
  350. package/src/assets/images/container/container-normal.png +0 -0
  351. package/src/assets/images/container/container-tabs.png +0 -0
  352. package/src/assets/images/container/container-tools.png +0 -0
  353. package/src/assets/images/data/data-process.png +0 -0
  354. package/src/assets/images/data/data-step.png +0 -0
  355. package/src/assets/images/data/data-table-column.png +0 -0
  356. package/src/assets/images/data/data-table.png +0 -0
  357. package/src/assets/images/data/data-timeline.png +0 -0
  358. package/src/assets/images/data/data-tree.png +0 -0
  359. package/src/assets/images/form/form-cascader.png +0 -0
  360. package/src/assets/images/form/form-check.png +0 -0
  361. package/src/assets/images/form/form-color.png +0 -0
  362. package/src/assets/images/form/form-count.png +0 -0
  363. package/src/assets/images/form/form-custom.png +0 -0
  364. package/src/assets/images/form/form-date.png +0 -0
  365. package/src/assets/images/form/form-dept.png +0 -0
  366. package/src/assets/images/form/form-divider.png +0 -0
  367. package/src/assets/images/form/form-file.png +0 -0
  368. package/src/assets/images/form/form-image-upload.png +0 -0
  369. package/src/assets/images/form/form-img.png +0 -0
  370. package/src/assets/images/form/form-input.png +0 -0
  371. package/src/assets/images/form/form-label.png +0 -0
  372. package/src/assets/images/form/form-link.png +0 -0
  373. package/src/assets/images/form/form-radio.png +0 -0
  374. package/src/assets/images/form/form-scan.png +0 -0
  375. package/src/assets/images/form/form-score.png +0 -0
  376. package/src/assets/images/form/form-select.png +0 -0
  377. package/src/assets/images/form/form-slider.png +0 -0
  378. package/src/assets/images/form/form-space.png +0 -0
  379. package/src/assets/images/form/form-switch.png +0 -0
  380. package/src/assets/images/form/form-text.png +0 -0
  381. package/src/assets/images/form/form-textarea.png +0 -0
  382. package/src/assets/images/form/form-transfer.png +0 -0
  383. package/src/assets/images/form/form-zoom.png +0 -0
  384. package/src/assets/images/group-button.png +0 -0
  385. package/src/assets/images/group-chart.png +0 -0
  386. package/src/assets/images/group-container.png +0 -0
  387. package/src/assets/images/group-data.png +0 -0
  388. package/src/assets/images/group-form.png +0 -0
  389. package/src/assets/images/group-workflow.png +0 -0
  390. package/src/assets/images/workflow/workflow-button.png +0 -0
  391. package/src/assets/images/workflow/workflow-history-texts.png +0 -0
  392. package/src/assets/images/workflow/workflow-history.png +0 -0
  393. package/src/assets/images/workflow/workflow-imagehistory.png +0 -0
  394. package/src/assets/images/workflow/workflow-texthistory .png +0 -0
  395. package/src/assets/logo.svg +0 -1
  396. package/src/assets/main.css +0 -1
  397. package/src/i18n/langs/cn.js +0 -52
  398. package/src/i18n/langs/en.js +0 -52
  399. package/src/stores/counter.ts +0 -12
  400. package/src/utils/api/api-util.ts +0 -176
  401. package/src/utils/charts/chart-util.ts +0 -41
  402. package/src/utils/common-util.ts +0 -96
  403. package/src/utils/container-style-util.ts +0 -237
  404. package/src/utils/eventBus.ts +0 -14
  405. package/src/utils/events/event-util.ts +0 -790
  406. package/src/utils/events/jump-page-util.ts +0 -0
  407. package/src/utils/events/standard-event.ts +0 -2075
  408. package/src/utils/events/validator-util.ts +0 -474
  409. package/src/utils/global-refs.ts +0 -160
  410. package/src/utils/interfaces/page-design-types.ts +0 -259
  411. package/src/utils/page-helper-util.ts +0 -850
  412. package/src/utils/page-init-util.ts +0 -291
  413. package/src/utils/page-permission-util.ts +0 -521
  414. package/src/utils/store-util.ts +0 -41
  415. package/src/utils/store.ts +0 -3
  416. package/src/utils/table-utils.ts +0 -31
  417. /package/{lib/src → dist/es/components/runtime}/utils/store-util.d.ts +0 -0
  418. /package/{lib/src → dist/es/components/runtime}/utils/store.d.ts +0 -0
  419. /package/{lib → dist/es}/favicon.ico +0 -0
@@ -0,0 +1,300 @@
1
+ import { defineComponent as e, ref as t, onMounted as n, onUnmounted as o, resolveComponent as l, createElementBlock as a, openBlock as i, createBlock as u, createCommentVNode as r, unref as s } from "vue";
2
+ import { setTableEvents as c, gridSelectRecord as p, gridSelectAllRecords as d, gridSelectionChange as f, cellClick as v, cellDblClick as b, rowClick as g, rowDblClick as m, headerClick as h, getHandleEvent as S } from "../../../../utils/events/event-util.js";
3
+ import { caculateShowCondition as w, setVariableValue as T, getVariableValue as x, getSizeConfig as C } from "../../../../utils/page-helper-util.js";
4
+ import { getModelFields as D, getDefaultValue as y } from "../../../../utils/page-init-util.js";
5
+ import P from "../../../../utils/eventBus.js";
6
+ import { popupToPage as R, getOperationButtons as I } from "../../../../utils/table-utils.js";
7
+ import { getListCode as O, getBaseUrl as _ } from "../../../../utils/common-util.js";
8
+ import { getAdditionalParamMap as k } from "../../../../utils/events/standard-event.js";
9
+ import { getRowStyleUtil as M, getCellStyleUtil as A, getHeaderCellStyleUtil as F } from "../../chart/table/chart-table-util.js";
10
+ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: $2, emit: j }) {
11
+ const L = e2, B = L.pageContext;
12
+ let N = L.configure;
13
+ const E = L.configure.runtime ? L.configure.runtime : {};
14
+ B.isTest ? E.value = L.configure.runtime ? L.configure.runtime : {} : B.tableRuntimes && B.tableRuntimes[N.uuid] && (N = JSON.parse(B.tableRuntimes[N.uuid].configure), E.value = N.runtime ? N.runtime : {});
15
+ const G = O(B.code, B.version, N.uuid), H = B.entity.data, V = N.code ? N.code : G, U = k(B), z = E && E.events ? E.events : [], q = t([]), J = B.superGridItems, K = J ? J[N.uuid] : null, Q = E.style, W = E.class, X = L.pageContext.entity ? L.pageContext.entity : {};
16
+ let Y = D(L.configure, V), Z = _(B.backendUrl, B.isTest);
17
+ Z || (Z = window.$vueApp.config.globalProperties.baseURL);
18
+ const ee = t(false);
19
+ let te = t(0);
20
+ const ne = N.props.dataOrigin.principalLinkage, oe = t({ isSql: true, subTableData: null, rowKeyProp: ne, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: B.code, pageVersion: B.version, pageContext: B, configureObj: N, showPageArea: false, showRowForm: false, showOverflowTooltip: !(!N.props || !N.props.otherSettings || void 0 !== N.props.otherSettings.isBreakLine && false !== N.props.otherSettings.isBreakLine), backendUrl: Z, cellStyleRender: function(e3) {
21
+ return A(e3, e3.cellStyle, L);
22
+ }, rowStyleRender: function(e3) {
23
+ return M(e3, null, L);
24
+ }, titleStyleRender: function(e3) {
25
+ const t2 = e3.titleStyle, n2 = L.configure.style.titleStyle;
26
+ return F(e3, { cellTitleStyle: t2, titleStyle: n2 }, L);
27
+ } }), le = j;
28
+ Q && (oe.value.tableStyle = Q), W && (oe.value.tableClass = W), N.props && N.props.base && true === N.props.base.subPaging ? oe.value.showPageArea = true : oe.value.showPageArea = false, N.props.base.showRowForm && (oe.value.showRowForm = N.props.base.showRowForm);
29
+ const ae = t(null);
30
+ function ie() {
31
+ ae.value && (oe.value.subTableData = null, ae.value.reloadSubTableData(G));
32
+ }
33
+ function ue(e3) {
34
+ if (void 0 === e3 && (e3 = re()), oe.value.isPageInfo = false, oe.value.isFormSubTable = true, oe.value.canRrefreshSubtableData = e3, oe.value.getFormData = se, oe.value.getGridData = ce, oe.value.extraParam.subTableListViewCode = G, oe.value.extraParam.beanName = B.beanName, oe.value.extraParam.subtableSetting = N.props && N.props.otherSettings ? JSON.stringify(N.props.otherSettings) : null, oe.value.extraParam.additionalParamMap = U, oe.value.extraParam.entityMap = B.entity.data, oe.value.extraParam.contextMap = B.entity.context, oe.value.extraParam.taskMap = B.entity.task, !(N.props && N.props.base && N.props.base.showOperation)) {
35
+ let e4 = oe.value.hiddenColumns;
36
+ e4 ? e4.push("operation") : e4 = ["operation"], oe.value.hiddenColumns = e4;
37
+ }
38
+ oe.value.showOperationButton = !(!N.props || !N.props.base) && N.props.base.showOperation, oe.value.isPdfEditor = false, oe.value.tableRecordMaxNum = N.props && N.props.otherSettings ? N.props.otherSettings.tableRecordMaxNum : null;
39
+ let t2 = C(B, N);
40
+ t2 && t2.fixHeight && (oe.value.formSetHeight = t2.fixHeight), t2 && t2.maxHeight && (oe.value.formSetMaxHeight = t2.maxHeight), oe.value.validateEitConditions = Ge;
41
+ }
42
+ function re() {
43
+ if (N.props && N.props.otherSettings) {
44
+ if (N.props.otherSettings.sourceQueryTableData && N.props.otherSettings.timeToInitializeSubTable && N.props.otherSettings.timeToInitializeSubTable.length > 0) {
45
+ let e3 = false;
46
+ if (-1 !== N.props.otherSettings.timeToInitializeSubTable.indexOf("create") && (e3 = !H.id && !H.ID), -1 !== N.props.otherSettings.timeToInitializeSubTable.indexOf("noData")) {
47
+ const t2 = H[V];
48
+ (!t2 || t2.length <= 0) && (e3 = true);
49
+ }
50
+ return e3;
51
+ }
52
+ return false;
53
+ }
54
+ }
55
+ function se() {
56
+ return B.entity.data;
57
+ }
58
+ function ce() {
59
+ return x(X, Y);
60
+ }
61
+ let pe, de;
62
+ function fe(e3) {
63
+ ue(e3), oe.value.subTableData = null, ve(), ee.value = false, pe = setTimeout(() => {
64
+ ee.value = true, te.value = te.value + 1, be();
65
+ }, 10);
66
+ }
67
+ function ve() {
68
+ !function() {
69
+ const e4 = B.fieldPermissionMap, t2 = B.actionPermissionMap;
70
+ if (e4 && null != e4) {
71
+ let t3 = e4.get(V);
72
+ if (!t3) {
73
+ const n3 = e4.get("all_fields");
74
+ n3 && (t3 = [n3]);
75
+ }
76
+ oe.value.validateRules = t3 || null;
77
+ }
78
+ if (t2 && null != t2) {
79
+ let e5 = t2.get(V);
80
+ e5 || (e5 = t2.get("all_sub_tables")), oe.value.actionPermission = e5;
81
+ }
82
+ oe.value.operations || (oe.value.operations = {});
83
+ const n2 = function() {
84
+ let e5 = [], t3 = w(L.pageContext, N.props.base.showOperationCondition);
85
+ if (t3 && Se(null, null, null, null, null, true, "canAdd")) {
86
+ const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: Ce, isShow: we };
87
+ e5.push(t4);
88
+ }
89
+ if (t3 && Te(null, null, null, null, null, true)) {
90
+ const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: xe };
91
+ e5.push(t4);
92
+ }
93
+ return I(B, N, e5, me), e5;
94
+ }();
95
+ oe.value.operations.operation = n2, oe.value.subTableCanAdd = Se(null, null, null, null, null, true, "canAdd"), oe.value.subTableCanDelete = Se(null, null, null, null, null, true, "canDelete");
96
+ }(), c(oe.value, z, B, N);
97
+ const e3 = B.customEvents;
98
+ e3 && (oe.value.eventCallBack = e3), ee.value = true, be();
99
+ }
100
+ function be() {
101
+ B.tableUuids || (B.tableUuids = []), B.tableUuids.indexOf(N.uuid) < 0 && B.tableUuids.push(N.uuid);
102
+ }
103
+ n(() => {
104
+ const e3 = N.uuid, t2 = B.subTableWatchProps;
105
+ P.$on("_refreshSubTable_" + e3, (n2) => {
106
+ const o2 = n2.propName;
107
+ if (t2 && t2[e3] && t2[e3].length > 0) {
108
+ t2[e3].indexOf(o2) >= 0 && ie();
109
+ }
110
+ }), P.$on("_refreshSubTableHandle_" + e3, (e4) => {
111
+ ie();
112
+ }), P.$on("_refreshChildData_" + e3, (e4) => {
113
+ !function(e5) {
114
+ Ee(e5), de = setTimeout(() => {
115
+ ae.value && (ae.value.refreshChildData(G, e5, N.props && N.props.base && true === N.props.base.subPaging), oe.value.extraParam.entityMap = B.entity.data);
116
+ }, 10);
117
+ }(e4);
118
+ }), P.$on(G + "-pickFileDone", (e4) => {
119
+ ae.value.pickFileDone(e4);
120
+ }), P.$on(G + "-scanDone", (e4) => {
121
+ ae.value.scanDone(e4);
122
+ }), oe.value && oe.value.configureObj.props.base && oe.value.configureObj.props.base.isSafeDelete && le("setSafeDeleteTableCode", oe.value.extraParam.tableName);
123
+ }), o(() => {
124
+ pe && clearTimeout(pe), de && clearTimeout(de);
125
+ const e3 = N.uuid;
126
+ P.$off("_refreshSubTable_" + e3), P.$off("_refreshSubTableHandle_" + e3), P.$off("_refreshChildData_" + e3), P.$off(G + "-pickFileDone"), P.$off(G + "-scanDone");
127
+ });
128
+ const ge = t({});
129
+ function me(e3) {
130
+ if (!e3) return;
131
+ return ge.value[e3.uuid] = e3, he;
132
+ }
133
+ function he(e3, t2, n2, o2, l2, a2) {
134
+ const i2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2, button: a2, id: n2.ID ? n2.ID : n2.id }, u2 = ge.value[a2.sourceButton.uuid], r2 = N;
135
+ u2.props.base.tableUuid = r2.uuid, S(null, B, u2, "click", i2);
136
+ }
137
+ function Se(e3, t2, n2, o2, l2, a2, i2) {
138
+ i2 || (i2 = "canAdd");
139
+ if (!w(L.pageContext, N.props.base.showOperationCondition)) return false;
140
+ const u2 = B.fieldPermissionMap, r2 = B.actionPermissionMap;
141
+ let s2 = true;
142
+ if (u2 && null !== u2) {
143
+ const e4 = u2.get("all_fields");
144
+ void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (s2 = false);
145
+ }
146
+ if (true === s2 && V && r2 && null !== r2) {
147
+ let e4 = r2.get(V);
148
+ e4 || (e4 = r2.get("all_sub_tables")), e4 && void 0 !== e4[i2] && false === e4[i2] && (s2 = false);
149
+ }
150
+ return s2;
151
+ }
152
+ function we(e3, t2, n2, o2, l2, a2) {
153
+ let i2 = Se(0, 0, 0, 0, 0, 0, "canAdd");
154
+ return true === i2 && (i2 = w(L.pageContext, N.props.base.showAddBtnCondition, n2)), i2;
155
+ }
156
+ function Te(e3, t2, n2, o2, l2, a2) {
157
+ const i2 = B.fieldPermissionMap, u2 = B.actionPermissionMap;
158
+ let r2 = true;
159
+ if (i2 && null !== i2) {
160
+ const e4 = i2.get("all_fields");
161
+ void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (r2 = false);
162
+ }
163
+ if (true === r2 && V && u2 && null !== u2) {
164
+ let e4 = u2.get(V);
165
+ if (e4 || (e4 = u2.get("all_sub_tables")), e4 && void 0 !== e4.canDelete && false === e4.canDelete && (r2 = false), e4 && void 0 !== e4.canDelete && true === e4.canDelete && e4.deleteRowIndexes) if (e4.deleteRowIndexes.length > 0) if (a2) r2 = true;
166
+ else {
167
+ const t3 = function(e5) {
168
+ return e5 && e5.id ? e5.id : e5 && e5.ID ? e5.ID : void 0;
169
+ }(n2);
170
+ r2 = void 0 !== t3 && e4.deleteRowIndexes.indexOf(t3) >= 0;
171
+ }
172
+ else r2 = false;
173
+ }
174
+ return r2;
175
+ }
176
+ function xe(e3, t2, n2, o2, l2, a2) {
177
+ let i2 = Te(0, 0, n2, 0, 0, a2);
178
+ return true === i2 && (i2 = w(L.pageContext, N.props.base.showDeleteBtnCondition, n2)), i2;
179
+ }
180
+ function Ce(e3, t2, n2, o2, l2) {
181
+ ae.value.createRow(G, {}, { getDefaultValueFunc: y }, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2 });
182
+ }
183
+ function De(e3, t2, n2, o2, l2) {
184
+ ae.value.deleteRow(l2, G, false);
185
+ }
186
+ function ye(e3) {
187
+ T(X, Y, e3);
188
+ }
189
+ function Pe(e3) {
190
+ B.subTablePageInfo || (B.subTablePageInfo = {}), B.subTablePageInfo[V] || (B.subTablePageInfo[V] = {}), B.subTablePageInfo[V].pageSize = e3;
191
+ }
192
+ function Re(e3) {
193
+ const t2 = e3.key, n2 = e3.value;
194
+ B.selectOptions || (B.selectOptions = {}), B.selectOptions[t2] = n2;
195
+ }
196
+ function Ie(e3) {
197
+ const t2 = B.code + "_";
198
+ P.$emit(t2 + "prohibit-edit", e3);
199
+ }
200
+ function Oe(e3) {
201
+ const t2 = B.entity.data;
202
+ if (e3) for (const n2 in e3) t2[n2] = e3[n2];
203
+ }
204
+ function _e(e3, t2) {
205
+ if (void 0 !== t2) {
206
+ q.value = e3;
207
+ p(B, N, { selection: e3, row: t2 });
208
+ }
209
+ }
210
+ function ke(e3) {
211
+ q.value = e3;
212
+ d(B, N, { selection: e3 });
213
+ }
214
+ function Me(e3) {
215
+ f(B, N, { newSelection: e3 });
216
+ }
217
+ function Ae(e3, t2, n2, o2) {
218
+ v(B, N, { row: e3, column: t2, cell: n2, event: o2 });
219
+ }
220
+ function Fe(e3, t2, n2, o2) {
221
+ b(B, N, { row: e3, column: t2, cell: n2, event: o2 });
222
+ }
223
+ function $e(e3, t2, n2) {
224
+ g(B, N, { row: e3, column: t2, event: n2 });
225
+ }
226
+ function je(e3, t2, n2) {
227
+ m(B, N, { row: e3, column: t2, event: n2 });
228
+ }
229
+ function Le(e3, t2) {
230
+ h(B, N, { column: e3, event: t2 });
231
+ }
232
+ function Be(e3) {
233
+ B.entity.data = e3;
234
+ }
235
+ function Ne() {
236
+ return x(X, Y);
237
+ }
238
+ function Ee(e3) {
239
+ return T(X, Y, e3);
240
+ }
241
+ function Ge({ row: e3, editConditions: t2 }) {
242
+ let n2 = true;
243
+ return t2 && t2.length > 0 && (n2 = w(L.pageContext, t2, e3)), n2;
244
+ }
245
+ return function() {
246
+ const e3 = re();
247
+ e3 ? fe(e3) : (ue(e3), oe.value.isPageInfo = false, oe.value.subTableData = Ne(), ve());
248
+ }(), $2({ createRow: function() {
249
+ return ae.value.createRow(G);
250
+ }, getSelections: function() {
251
+ return q.value;
252
+ }, getSelectionIds: function() {
253
+ const e3 = [];
254
+ return q.value && q.value.forEach((t2) => {
255
+ e3.push(t2.id ? t2.id : t2.ID ? t2.ID : null);
256
+ }), e3;
257
+ }, clearSelections: function() {
258
+ q.value = [];
259
+ }, getTableConfigure: function() {
260
+ return N;
261
+ }, validatorSunTableListData: function() {
262
+ return ae.value.validatorSunTableListData();
263
+ }, getValue: Ne, setValue: Ee, getTableSelectOptions: function() {
264
+ if (ae.value) return ae.value.getTableSelectOptions(G);
265
+ }, dynamicControlTableEdit: function(e3, t2, n2) {
266
+ ae.value && ae.value.dynamicControlTableEdit(e3, t2, n2);
267
+ }, doLayout: function(e3) {
268
+ ae.value && ae.value.doLayout(e3);
269
+ }, changeOperationAddState: function(e3) {
270
+ ae.value && ae.value.changeOperationAddState(e3);
271
+ }, scrollTo: function(e3, t2) {
272
+ ae.value && ae.value.scrollTo(e3, t2);
273
+ }, setScrollTop: function(e3) {
274
+ ae.value && ae.value.setScrollTop(e3);
275
+ }, setScrollLeft: function(e3) {
276
+ ae.value && ae.value.setScrollLeft(e3);
277
+ }, getSuperGridRef: function() {
278
+ return ae.value;
279
+ }, getSuperGridTableRef: function() {
280
+ return ae.value.getSuperGridTableRef();
281
+ }, setCurrentRowIndex: function(e3) {
282
+ var _a;
283
+ (_a = ae.value) == null ? void 0 : _a.setCurrentRowIndex(e3);
284
+ }, setScrollTopByRowIndex: function(e3) {
285
+ var _a;
286
+ (_a = ae.value) == null ? void 0 : _a.setScrollTopByRowIndex(e3);
287
+ }, getTableData: function() {
288
+ var _a;
289
+ return (_a = ae.value) == null ? void 0 : _a.getTableData();
290
+ }, addRequiredClass: function(e3, t2, n2) {
291
+ var _a;
292
+ (_a = ae.value) == null ? void 0 : _a.addRequiredClass(e3, G, t2, n2);
293
+ } }), (e3, t2) => {
294
+ const n2 = l("super-grid");
295
+ return i(), a("div", null, [ee.value ? (i(), u(n2, { key: 0, ref_key: "gridRef", ref: ae, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(G), settings: s(K), onSelect: _e, onSelectAll: ke, onSelectionChange: Me, onCellClick: Ae, onCellDblclick: Fe, onRowClick: $e, onRowDblclick: je, onHeaderClick: Le, onFnProhibitToEdit: Ie, onChangeGridData: ye, onReloadGrid: fe, onRefresMainTableFields: Oe, onSetSelectOptions: Re, onChangeRowsPerPage: Pe, onNewOpenGridDialog: s(R), onChangeFormData: Be }, null, 8, ["url", "options", "code", "settings", "onNewOpenGridDialog"])) : r("", true)]);
296
+ };
297
+ } });
298
+ export {
299
+ $ as default
300
+ };
@@ -0,0 +1,4 @@
1
+ import e from "./sub-table-runtime.vue.js";
2
+ export {
3
+ e as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import e from "./table-runtime.vue2.js";
2
+ export {
3
+ e as default
4
+ };
@@ -0,0 +1,82 @@
1
+ import { defineComponent as e, ref as t, onUnmounted as n, createElementBlock as u, openBlock as a, createBlock as o, createCommentVNode as l, unref as r } from "vue";
2
+ import i from "./sub-table-runtime.vue.js";
3
+ import c from "./main-table-runtime.vue.js";
4
+ const f = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: f2 }) {
5
+ const s = e2, g = s.pageContext.pageType, d = t(null), v = s.configure.uuid, S = s.pageContext.superGridItems, p = S ? S[v] : null;
6
+ d.value = p ? p.configure ? JSON.parse(p.configure) : null : s.configure;
7
+ const T = s.configure.runtime ? s.configure.runtime : {};
8
+ T.style, T.class;
9
+ const C = t(true), b = t(null);
10
+ let m = null;
11
+ function E(e3) {
12
+ s.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES ? s.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES.push(e3) : s.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES = [e3];
13
+ }
14
+ return n(() => {
15
+ m && clearTimeout(m);
16
+ }), f2({ refresh: function(e3, t2, n2, u2) {
17
+ if (g && "list" === g) return b.value.refresh(e3, t2, n2, u2);
18
+ }, createRow: function() {
19
+ return b.value.createRow();
20
+ }, clearSelections: function() {
21
+ return b.value.clearSelections();
22
+ }, getSelections: function() {
23
+ return b.value.getSelections();
24
+ }, getSelectionIds: function() {
25
+ return b.value.getSelectionIds();
26
+ }, getTableConfigure: function() {
27
+ return b.value.getTableConfigure();
28
+ }, isDeleteChange: function(e3) {
29
+ g && "list" === g && b.value.isDeleteChange(e3);
30
+ }, validatorSunTableListData: function() {
31
+ if (g && "form" === g) return b.value.validatorSunTableListData();
32
+ }, showMobileSearch: function() {
33
+ b.value.showMobileSearch();
34
+ }, getTableSelectOptions: function() {
35
+ if (b.value) return b.value.getTableSelectOptions();
36
+ }, dynamicControlTableEdit: function(e3, t2, n2) {
37
+ b.value && b.value.dynamicControlTableEdit(e3, t2, n2);
38
+ }, getTableUuid: function() {
39
+ return s.configure.uuid;
40
+ }, doLayout: function(e3) {
41
+ b.value && b.value.doLayout(e3);
42
+ }, changeOperationAddState: function(e3) {
43
+ b.value && b.value.changeOperationAddState(e3);
44
+ }, scrollTo: function(e3, t2) {
45
+ var _a;
46
+ (_a = b.value) == null ? void 0 : _a.scrollTo(e3, t2);
47
+ }, setScrollTop: function(e3) {
48
+ var _a;
49
+ (_a = b.value) == null ? void 0 : _a.setScrollTop(e3);
50
+ }, setScrollLeft: function(e3) {
51
+ var _a;
52
+ (_a = b.value) == null ? void 0 : _a.setScrollLeft(e3);
53
+ }, getSuperGridRef: function() {
54
+ var _a;
55
+ return (_a = b.value) == null ? void 0 : _a.getSuperGridRef();
56
+ }, getSuperGridTableRef: function() {
57
+ var _a;
58
+ return (_a = b.value) == null ? void 0 : _a.getSuperGridTableRef();
59
+ }, setCurrentRowIndex: function(e3) {
60
+ var _a;
61
+ (_a = b.value) == null ? void 0 : _a.setCurrentRowIndex(e3);
62
+ }, setScrollTopByRowIndex: function(e3) {
63
+ var _a;
64
+ (_a = b.value) == null ? void 0 : _a.setScrollTopByRowIndex(e3);
65
+ }, reloadSubTable: function() {
66
+ C.value = false, m = setTimeout(() => {
67
+ C.value = true;
68
+ }, 10);
69
+ }, getTableData: function() {
70
+ var _a;
71
+ return (_a = b.value) == null ? void 0 : _a.getTableData();
72
+ }, addRequiredClass: function(e3, t2, n2) {
73
+ var _a;
74
+ (_a = b.value) == null ? void 0 : _a.addRequiredClass(e3, t2, n2);
75
+ }, handleSearch: function(e3, t2) {
76
+ var _a;
77
+ (_a = b.value) == null ? void 0 : _a.handleSearch(e3, t2);
78
+ } }), (t2, n2) => (a(), u("div", null, [r(g) && "form" === r(g) && C.value ? (a(), o(i, { key: 0, ref_key: "gridRef", ref: b, pageContext: e2.pageContext, configure: d.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"])) : r(g) && "form" === r(g) ? l("", true) : (a(), o(c, { key: 1, ref_key: "gridRef", ref: b, pageContext: e2.pageContext, configure: d.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"]))]));
79
+ } });
80
+ export {
81
+ f as default
82
+ };
@@ -0,0 +1,7 @@
1
+ import e from "./tree-runtime.vue2.js";
2
+ /* empty css */
3
+ import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const t = r(e, [["__scopeId", "data-v-89330064"]]);
5
+ export {
6
+ t as default
7
+ };
@@ -0,0 +1,134 @@
1
+ import { defineComponent as e, ref as t, computed as a, onMounted as n, nextTick as l, watch as o, resolveComponent as d, createElementBlock as u, openBlock as i, normalizeClass as s, unref as r, createBlock as c, createCommentVNode as p, withDirectives as v, normalizeStyle as f, withCtx as g, createVNode as m, createElementVNode as h, createTextVNode as y, Fragment as C, toDisplayString as x, renderList as k, vShow as N } from "vue";
2
+ import T from "../../../../../../assets/folder.png.js";
3
+ import I from "../../../../../../assets/file.png.js";
4
+ import { getFormModelFields as V } from "../../../../utils/page-init-util.js";
5
+ import { setVariableValue as b, getVariableValue as L } from "../../../../utils/page-helper-util.js";
6
+ import { getMenuTreeData as M, createTreeNode as w, updateTreeNode as E, deleteNode as K } from "../../../../utils/tree-utils.js";
7
+ import { handleAfterInitEvent as _, handleFormEvent as j } from "../../../../utils/events/event-util.js";
8
+ import { ElMessageBox as S, ElMessage as z } from "element-plus";
9
+ import { checkPermission as B } from "agilebuilder-ui/src/utils/permission";
10
+ const P = { key: 0, class: "custom-tree-node" }, W = ["title"], R = { key: 0, class: "item-row" }, D = { class: "item-side" }, H = { key: 1, class: "item-side", style: { display: "flex", "align-items": "center" } }, O = ["onClick"], U = e({ __name: "tree-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: U2 }) {
11
+ var _a, _b, _c;
12
+ const $ = t(), A = t(false), X = e2, Y = X.pageContext.entity ? X.pageContext.entity : {}, q = t([]);
13
+ ((_a = X.configure.props) == null ? void 0 : _a.contextMenus) && (X.pageContext && X.configure && !X.pageContext.isTest ? X.configure.props.contextMenus.forEach((e3) => {
14
+ if (e3.functionCodes && e3.functionCodes.length > 0) for (let t2 = 0; t2 < e3.functionCodes.length; t2++) {
15
+ const a2 = e3.functionCodes[t2];
16
+ if (B(a2, X.pageContext.systemCode)) return void q.value.push(e3);
17
+ }
18
+ else q.value.push(e3);
19
+ }) : q.value = X.configure.props.contextMenus);
20
+ let F = V(X.pageContext, X.configure);
21
+ const G = a({ get: () => L(Y, F), set(e3) {
22
+ b(Y, F, e3);
23
+ } }), J = t(!!((_c = (_b = X.configure.props) == null ? void 0 : _b.base) == null ? void 0 : _c.lazy)), Q = X.configure.runtime ? X.configure.runtime : {}, Z = Q.style, ee = Q.class, te = t(), ae = t(Q.props ? Q.props : {}), ne = t({ id: "nodeId", label: "name", children: "children", isLeaf: "leaf", disabled: "disabled", nodeType: "nodeType", iconType: "iconType", iconValue: "iconValue" }), le = t(false), oe = t([]), de = t(null), ue = t(""), ie = t(false), se = t(""), re = t(""), ce = t("");
24
+ n(() => {
25
+ l(() => {
26
+ const e3 = G.value;
27
+ _(e3, X.pageContext, X.configure, { componentRef: te.value, value: e3, entity: X.pageContext.entity.data, pageData: X.pageContext.entity.page });
28
+ });
29
+ }), J.value ? le.value = true : M(X.pageContext, X.configure).then((e3) => {
30
+ oe.value = e3, le.value = true;
31
+ }), o(ue, (e3) => {
32
+ ie.value = true, te.value.filter(e3);
33
+ });
34
+ const pe = (e3, t2) => !e3 || t2.name.includes(e3);
35
+ function ve(e3, t2, a2) {
36
+ de.value = t2, j(null, X.pageContext, X.configure, "node-click", { data: e3, node: t2, nodeTree: a2 });
37
+ }
38
+ function fe(e3, t2) {
39
+ let a2 = "0";
40
+ a2 = 0 === e3.level ? "0" : e3.data.nodeId, function(e4, t3, a3) {
41
+ const n2 = { parentNodeId: e4, data: t3.data, searchValue: ue, isSearch: ie.value };
42
+ M(X.pageContext, X.configure, e4, t3, n2).then((n3) => {
43
+ if (ie.value = false, a3(n3), "0" === e4) {
44
+ !function(e5, t4) {
45
+ const a4 = { parentNodeId: e5, data: t4.data, searchValue: ue, isSearch: ie.value };
46
+ M(X.pageContext, X.configure, e5, t4, a4).then((t5) => {
47
+ ie.value = false, te.value.updateKeyChildren(e5, t5), te.value.store.nodesMap[e5] && (te.value.store.nodesMap[e5].expanded = true);
48
+ });
49
+ }(n3[0].nodeId, t3);
50
+ }
51
+ });
52
+ }(a2, e3, t2);
53
+ }
54
+ const ge = t({}), me = (e3, t2, a2, n2) => {
55
+ if (se.value) return void z.warning("请先保存当前编辑节点!");
56
+ document.removeEventListener("click", he), ge.value = a2, A.value = true;
57
+ const { clientX: l2, clientY: o2 } = e3, d2 = $.value;
58
+ if (d2) {
59
+ const { innerWidth: e4, innerHeight: t3 } = window, { offsetWidth: a3, offsetHeight: n3 } = d2, u2 = l2 + a3 > e4 ? l2 - a3 : l2, i2 = o2 + n3 > t3 ? o2 - n3 : o2;
60
+ d2.style.left = `${u2}px`, d2.style.top = `${i2}px`, d2.style.display = "block";
61
+ }
62
+ document.addEventListener("click", he);
63
+ }, he = () => {
64
+ A.value = false, document.removeEventListener("click", he);
65
+ }, ye = (e3, t2) => {
66
+ if (e3.parent && e3.parent.level > 0) {
67
+ const a2 = e3.parent.data.children.findIndex((t3) => t3.nodeId === e3.data.nodeId);
68
+ e3.parent.data.children[a2] = t2, e3.data = t2;
69
+ } else {
70
+ const a2 = e3.parent.data.findIndex((t3) => t3.nodeId === e3.data.nodeId);
71
+ e3.parent.data[a2] = t2, e3.data = t2;
72
+ }
73
+ }, Ce = () => {
74
+ se.value = "", ce.value = "", re.value = "";
75
+ }, xe = () => ({ nodeId: "primary" + (/* @__PURE__ */ new Date()).getTime(), name: "新增节点", disabled: false, iconType: "custom", isLeaf: true });
76
+ function ke(e3) {
77
+ e3.tipMessage ? S.confirm(e3.tipMessage, { confirmButtonText: "确定", cancelButtonText: "取消", type: "error" }).then(() => {
78
+ K(ge.value, X.configure, X.pageContext).then(() => {
79
+ z.success("删除成功!"), Ne(), ge.value = null;
80
+ });
81
+ }).catch(() => {
82
+ ge.value = null;
83
+ }) : K(ge.value, X.configure, X.pageContext).then(() => {
84
+ z.success("删除成功!"), Ne(), ge.value = null;
85
+ });
86
+ }
87
+ const Ne = () => {
88
+ const e3 = ge.value.parent;
89
+ te.value.remove(ge.value), e3.childNodes && 0 === e3.childNodes.length && (e3.data.isLeaf = true), e3.data.children && e3.data.children.length > 0 && (e3.data.children = e3.data.children.filter((e4) => e4.nodeId !== ge.value.data.nodeId));
90
+ };
91
+ return U2({ getSelectNode: function() {
92
+ return de.value;
93
+ }, expandNode: function(e3) {
94
+ e3.loaded = false, e3.expand();
95
+ }, loadTreeNodes: function() {
96
+ M(X.pageContext, X.configure).then((e3) => {
97
+ ie.value = false, oe.value = e3;
98
+ });
99
+ }, getNode: function(e3) {
100
+ te.value.getNode(e3);
101
+ }, getCheckedNodes: (e3, t2) => te.value.getCheckedNodes(e3, t2), setCheckedNodes: (e3) => {
102
+ te.value.setCheckedNodes(e3);
103
+ }, getCheckedKeys: (e3) => te.value.getCheckedKeysleafOnly(), setCheckedKeys: (e3, t2) => {
104
+ te.value.setCheckedKeys(e3, t2);
105
+ }, setChecked: (e3, t2, a2) => {
106
+ te.value.setChecked(e3, t2, a2);
107
+ }, getCurrentKey: () => te.value.getCurrentKey(), getCurrentNode: () => te.value.getCurrentNode(), setCurrentKey: (e3, t2 = true) => te.value.setCurrentKey(e3, t2), setCurrentNode: (e3, t2 = true) => te.value.setCurrentNode(e3, t2) }), (t2, a2) => {
108
+ var _a2;
109
+ const n2 = d("el-input"), l2 = d("el-button"), o2 = d("SuperIcon"), V2 = d("el-tree");
110
+ return i(), u("div", { class: s(["amb-tree-runtime-main", r(ee)]) }, [ae.value.filter ? (i(), c(n2, { key: 0, modelValue: ue.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => ue.value = e3), style: { width: "100%" }, placeholder: "请输入查询条件" }, null, 8, ["modelValue"])) : p("", true), le.value ? (i(), c(V2, { key: 1, ref_key: "menuTreeRef", ref: te, style: f(r(Z)), load: fe, data: oe.value, "node-key": "nodeId", props: ne.value, "default-expand-all": ae.value.defaultExpandAll, "expand-on-click-node": ae.value.expandOnClickNode, indent: ae.value.retractWidth ? ae.value.retractWidth : 18, accordion: ae.value.accordion, "show-checkbox": !!ae.value.showCheckbox, "highlight-current": "", lazy: J.value, "filter-node-method": pe, onNodeClick: ve, onNodeContextmenu: me }, { default: g(({ node: t3, data: d2 }) => [d2.nodeId === se.value ? (i(), u("div", P, [m(n2, { modelValue: ce.value, "onUpdate:modelValue": a2[1] || (a2[1] = (e3) => ce.value = e3), size: "small" }, null, 8, ["modelValue"]), h("div", null, [m(l2, { type: "primary", link: "", onClick: (e3) => ((e4) => {
111
+ "" !== ce.value ? (e4.data.name = ce.value, re.value && e4.data.nodeId === re.value ? w(e4, X.configure, X.pageContext).then((t4) => {
112
+ ye(e4, t4.currentNode), Ce(), z.success("保存成功!");
113
+ }) : E(e4, X.configure, X.pageContext).then((t4) => {
114
+ ye(e4, t4.currentNode), Ce(), z.success("保存成功!");
115
+ })) : z.warning("请输入节点名称");
116
+ })(t3) }, { default: g(() => [...a2[2] || (a2[2] = [y(" 保存 ", -1)])]), _: 1 }, 8, ["onClick"]), m(l2, { style: { "margin-left": "4px" }, type: "primary", link: "", onClick: (a3) => ((e3) => {
117
+ re.value && e3.data.nodeId === re.value && te.value.remove(e3), Ce();
118
+ })(t3, e2.configure, e2.pageContext) }, { default: g(() => [...a2[3] || (a2[3] = [y(" 撤销 ", -1)])]), _: 1 }, 8, ["onClick"])])])) : (i(), u("span", { key: 1, title: t3.label, class: "ellipsis" }, [d2.iconValue ? (i(), c(o2, { key: 0, iconType: d2.iconType, iconValue: d2.iconValue }, null, 8, ["iconType", "iconValue"])) : ae.value.iconValue ? (i(), c(o2, { key: 1, iconType: ae.value.iconType, iconValue: ae.value.iconValue }, null, 8, ["iconType", "iconValue"])) : (i(), u(C, { key: 2 }, [d2.isLeaf ? (i(), u("div", H, [a2[5] || (a2[5] = h("img", { src: I, class: "file" }, null, -1)), h("span", null, x(d2.name), 1)])) : (i(), u("div", R, [h("div", D, [a2[4] || (a2[4] = h("img", { src: T, class: "file" }, null, -1)), h("span", null, x(d2.name), 1)])]))], 64))], 8, W))]), _: 1 }, 8, ["style", "data", "props", "default-expand-all", "expand-on-click-node", "indent", "accordion", "show-checkbox", "lazy"])) : p("", true), v(h("div", null, [h("ul", { ref_key: "contxtMenuRef", ref: $, class: "context-menu" }, [(i(true), u(C, null, k(q.value, (e3, t3) => (i(), u("li", { key: t3, tabindex: "-1", class: "menu__item", onClick: (t4) => ((e4) => {
119
+ if (ge.value && "standard" === e4.type && e4.standardEvent) if ("edit" === e4.standardEvent) se.value = ge.value.data.nodeId, ce.value = ge.value.data.name;
120
+ else if ("delete" === e4.standardEvent) ge.value.childNodes && ge.value.childNodes.length > 0 && e4.deleteParentNodeTip ? (e4.deleteParentNodeTipMessage || (e4.deleteParentNodeTipMessage = "当前节点下有子节点,确认删除?"), S.confirm(e4.deleteParentNodeTipMessage, { confirmButtonText: "确定", cancelButtonText: "取消", type: "error" }).then(() => {
121
+ ke(e4);
122
+ }).catch(() => {
123
+ ge.value = null;
124
+ })) : ke(e4);
125
+ else {
126
+ const t5 = xe();
127
+ se.value = t5.nodeId, re.value = t5.nodeId, ce.value = t5.name, "addSiblingNode" === e4.standardEvent ? (t5.isLeaf = ge.value.data.isLeaf, ge.value.parent && ge.value.parent.level > 0 ? te.value.append(t5, ge.value.parent) : oe.value.push(t5)) : "addChildNode" === e4.standardEvent && (t5.isLeaf = true, ge.value.data.isLeaf = false, te.value.append(t5, ge.value), te.value.setCurrentKey(t5.nodeId, true));
128
+ }
129
+ })(e3) }, [h("span", null, x(e3.name), 1)], 8, O))), 128))], 512)], 512), [[N, A.value && ((_a2 = q.value) == null ? void 0 : _a2.length) > 0]])], 2);
130
+ };
131
+ } });
132
+ export {
133
+ U as default
134
+ };
@@ -1,4 +1,4 @@
1
- declare const _default: import('vue').DefineComponent<{
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
2
  configure: {
3
3
  type: ObjectConstructor;
4
4
  default: {
@@ -7,7 +7,7 @@ declare const _default: import('vue').DefineComponent<{
7
7
  };
8
8
  selectWidget: ObjectConstructor;
9
9
  indexObj: ObjectConstructor;
10
- }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
10
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
11
11
  configure: {
12
12
  type: ObjectConstructor;
13
13
  default: {
@@ -16,7 +16,7 @@ declare const _default: import('vue').DefineComponent<{
16
16
  };
17
17
  selectWidget: ObjectConstructor;
18
18
  indexObj: ObjectConstructor;
19
- }>>, {
19
+ }>> & Readonly<{}>, {
20
20
  configure: Record<string, any>;
21
- }, {}>;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
22
22
  export default _default;
@@ -0,0 +1,5 @@
1
+ import { defineComponent as e, createElementBlock as t, openBlock as r, toDisplayString as n } from "vue";
2
+ const o = { style: { "text-align": "center", color: "red" } }, c = e({ __name: "error-render", props: { configure: { type: Object, default: { name: "未知" } }, selectWidget: Object, indexObj: Object }, setup: (e2) => (c2, a) => (r(), t("div", o, " 不能识别的组件类型【" + n(e2.configure.name) + "】 ", 1)) });
3
+ export {
4
+ c as default
5
+ };
@@ -0,0 +1,4 @@
1
+ import r from "./error-render.vue.js";
2
+ export {
3
+ r as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import e from "./checkbox-runtime.vue2.js";
2
+ export {
3
+ e as default
4
+ };
@@ -0,0 +1,50 @@
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as o, nextTick as n, resolveComponent as a, createBlock as u, openBlock as i, normalizeStyle as r, normalizeClass as s, unref as p, withCtx as c, createVNode as f, createElementBlock as g, Fragment as v, renderList as d, createCommentVNode as m, toDisplayString as h } from "vue";
2
+ import { setVariableValue as y, getVariableValue as x, getOptionDatasFromPage as C, monitorFieldChange as b, autoSetAfterSelect as k, queryOptionDatasources as R } from "../../../../utils/page-helper-util.js";
3
+ import { getFormModelFields as _ } from "../../../../utils/page-init-util.js";
4
+ import { handleFormEvent as j, handleAfterInitEvent as S } from "../../../../utils/events/event-util.js";
5
+ import { $t as q } from "../../../../utils/i18n-util.js";
6
+ import { addRequiredClassUtil as I } from "../../../../utils/common-util.js";
7
+ const V = e({ __name: "checkbox-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: V2 }) {
8
+ const w = e2, z = t(null), D = w.pageContext.entity ? w.pageContext.entity : {};
9
+ let O = _(w.pageContext, w.configure);
10
+ const A = l({ get() {
11
+ let e3 = x(D, O);
12
+ return e3 && "string" == typeof e3 && (e3 = e3.split(",")), e3;
13
+ }, set(e3) {
14
+ e3 && e3.length > 0 && (e3 = e3.join(",")), y(D, O, e3), null != e3 && (z.value = "");
15
+ } }), M = w.configure.runtime ? w.configure.runtime : {}, P = M.style, E = M.class, F = M.headerStyle, T = M.titleExceedStyle, U = t(M.props ? M.props : {}), W = t(U.value.options ? U.value.options : []), B = C(w.pageContext, w.configure);
16
+ B.length > 0 && (W.value = B);
17
+ const G = w.configure.props && w.configure.props.dataOrigin ? w.configure.props.dataOrigin : {}, H = G.optionValueSetType;
18
+ let J = [];
19
+ if (("dynamicData" == H || "dynamicData" == H || "service" == H) && G.autoSets) for (let e3 of G.autoSets) e3.source && J.push(e3);
20
+ w.configure && w.configure.props && w.configure.props.base && w.configure.props.base.optionProp && J.push({ source: "label", target: w.configure.props.base.optionProp }), U.value.changeMethod = function(e3) {
21
+ if (J.length > -1) {
22
+ let t2 = null;
23
+ W.value && null != e3 && null != e3 && (t2 = W.value.filter((t3) => Array.isArray(e3) ? e3.includes(t3.value) : e3 === t3.value)), k(w.configure, w.pageContext, J, t2);
24
+ }
25
+ j(e3, w.pageContext, w.configure, "change");
26
+ };
27
+ const K = U.value.optionconfigInfo ? U.value.optionconfigInfo : {};
28
+ const L = U.value.monitorFields;
29
+ b(w.pageContext, L, function() {
30
+ R(w.pageContext, K, void 0).then((e3) => {
31
+ });
32
+ });
33
+ const N = t(null), Q = t(null), X = t(null);
34
+ return o(() => {
35
+ n(() => {
36
+ const e3 = A.value;
37
+ S(e3, w.pageContext, w.configure, { formItemRef: N.value, componentRef: Q.value, titleRef: X.value, value: e3, entity: w.pageContext.entity.data, pageData: w.pageContext.entity.page });
38
+ });
39
+ }), V2({ updateOptions: function(e3) {
40
+ W.value = e3 || [];
41
+ }, addRequiredClass: function() {
42
+ z.value = I();
43
+ } }), (t2, l2) => {
44
+ const o2 = a("el-checkbox"), n2 = a("el-checkbox-group"), y2 = a("el-form-item");
45
+ return i(), u(y2, { ref_key: "formItemRef", ref: N, class: s(p(E) + (z.value ? " " + z.value : "")), required: !!U.value.required, "label-width": U.value.labelWidth, style: r(p(P)) }, { label: c(() => [U.value.tittleShow ? (i(), g("div", { key: 0, ref_key: "titleRef", ref: X, style: r({ ...p(F), ...p(T) }) }, h(p(q)(U.value.title)), 5)) : m("", true)]), default: c(() => [f(n2, { ref_key: "componentRef", ref: Q, disabled: "disabled" === U.value.state, size: U.value.size, onChange: U.value.changeMethod, modelValue: A.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => A.value = e3) }, { default: c(() => [(i(true), g(v, null, d(W.value, (t3) => (i(), u(o2, { key: t3.value, value: t3.value, label: t3.label, onClick: (l3) => p(j)(t3.value, e2.pageContext, e2.configure, "click", { values: A.value }) }, null, 8, ["value", "label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 1 }, 8, ["class", "required", "label-width", "style"]);
46
+ };
47
+ } });
48
+ export {
49
+ V as default
50
+ };