super-page-runtime 2.3.48-cdnTmp2 → 2.3.48-tmp1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (392) hide show
  1. package/dist/es/_virtual/_plugin-vue_export-helper.js +8 -0
  2. package/dist/es/components/runtime/utils/ai-chat-util.js +16 -0
  3. package/dist/es/components/runtime/utils/anchor-util.js +84 -0
  4. package/dist/es/components/runtime/utils/api/api-util.d.ts +1 -1
  5. package/dist/es/components/runtime/utils/api/api-util.js +7 -0
  6. package/dist/es/components/runtime/utils/api/page-expose-util.js +202 -0
  7. package/dist/es/components/runtime/utils/assemblys-config.js +20 -0
  8. package/dist/es/components/runtime/utils/barcode-util.js +12 -0
  9. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +168 -0
  10. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +38 -0
  11. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +82 -0
  12. package/dist/es/components/runtime/utils/charts/chart-radar-util.js +56 -0
  13. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +47 -0
  14. package/dist/es/components/runtime/utils/charts/chart-util.js +288 -0
  15. package/dist/es/components/runtime/utils/common-util.js +120 -0
  16. package/dist/es/components/runtime/utils/eventBus.js +8 -0
  17. package/dist/es/components/runtime/utils/events/data-backfill-util.js +39 -0
  18. package/dist/es/components/runtime/utils/events/event-util.js +447 -0
  19. package/dist/es/components/runtime/utils/events/print-label.js +100 -0
  20. package/dist/es/components/runtime/utils/events/standard-event.js +1226 -0
  21. package/dist/es/components/runtime/utils/events/validator-util.js +485 -0
  22. package/dist/es/components/runtime/utils/form/date-shortcuts.js +36 -0
  23. package/dist/es/components/runtime/utils/form/scan-util.js +93 -0
  24. package/dist/es/components/runtime/utils/global-refs.js +57 -0
  25. package/dist/es/components/runtime/utils/i18n-util.js +18 -0
  26. package/dist/es/components/runtime/utils/interfaces/page-design-types.js +4 -0
  27. package/dist/es/components/runtime/utils/page-helper-util.js +391 -0
  28. package/dist/es/components/runtime/utils/page-init-util.js +297 -0
  29. package/dist/es/components/runtime/utils/{page-permission-util.mjs → page-permission-util.js} +21 -20
  30. package/dist/es/components/runtime/utils/page-store.js +53 -0
  31. package/dist/es/components/runtime/utils/store-util.js +13 -0
  32. package/dist/es/components/runtime/utils/table-utils.js +89 -0
  33. package/dist/es/components/runtime/utils/tree-utils.js +73 -0
  34. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +4 -0
  35. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime2.vue.js +29 -0
  36. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +7 -0
  37. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime2.vue.js +21 -0
  38. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +4 -0
  39. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime2.vue.js +41 -0
  40. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +4 -0
  41. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime2.vue.js +6 -0
  42. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +4 -0
  43. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime2.vue.js +21 -0
  44. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +7 -0
  45. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime2.vue.js +53 -0
  46. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +14 -0
  47. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb2.vue.js +4 -0
  48. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +13 -0
  49. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group2.vue.js +4 -0
  50. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +60 -0
  51. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header2.vue.js +4 -0
  52. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +7 -0
  53. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search2.vue.js +64 -0
  54. package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +94 -0
  55. package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render2.vue.js +4 -0
  56. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +7 -0
  57. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime2.vue.js +35 -0
  58. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +7 -0
  59. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime2.vue.js +46 -0
  60. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +7 -0
  61. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime2.vue.js +35 -0
  62. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +7 -0
  63. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime2.vue.js +35 -0
  64. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +430 -0
  65. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +6 -0
  66. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item2.vue.js +4 -0
  67. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +10 -0
  68. package/dist/es/components/runtime/views/assemblys/chart/table/group-column2.vue.js +4 -0
  69. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +46 -0
  70. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column2.vue.js +4 -0
  71. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +17 -0
  72. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination2.vue.js +4 -0
  73. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +4 -0
  74. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime2.vue.js +268 -0
  75. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +20 -0
  76. package/dist/es/components/runtime/views/assemblys/common/event-call-component2.vue.js +4 -0
  77. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +36 -0
  78. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog2.vue.js +4 -0
  79. package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.js +35 -0
  80. package/dist/es/components/runtime/views/assemblys/common/file-task-notice2.vue.js +4 -0
  81. package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.js +32 -0
  82. package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message2.vue.js +4 -0
  83. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +17 -0
  84. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog2.vue.js +4 -0
  85. package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.js +23 -0
  86. package/dist/es/components/runtime/views/assemblys/common/remove-signer-table2.vue.js +4 -0
  87. package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.js +18 -0
  88. package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog2.vue.js +4 -0
  89. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +35 -0
  90. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog2.vue.js +4 -0
  91. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +19 -0
  92. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog2.vue.js +4 -0
  93. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +7 -0
  94. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime2.vue.js +35 -0
  95. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +4 -0
  96. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime2.vue.js +21 -0
  97. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +7 -0
  98. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime2.vue.js +27 -0
  99. package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.js +7 -0
  100. package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox2.vue.js +29 -0
  101. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +7 -0
  102. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix2.vue.js +81 -0
  103. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +4 -0
  104. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime2.vue.js +25 -0
  105. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +4 -0
  106. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime2.vue.js +25 -0
  107. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +4 -0
  108. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime2.vue.js +46 -0
  109. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +7 -0
  110. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime2.vue.js +96 -0
  111. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +7 -0
  112. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime2.vue.js +47 -0
  113. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +4 -0
  114. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime2.vue.js +69 -0
  115. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +383 -0
  116. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime2.vue.js +4 -0
  117. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +339 -0
  118. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime2.vue.js +4 -0
  119. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +4 -0
  120. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime2.vue.js +90 -0
  121. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +7 -0
  122. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime2.vue.js +135 -0
  123. package/dist/es/components/runtime/views/assemblys/error-render.vue.js +5 -0
  124. package/dist/es/components/runtime/views/assemblys/error-render2.vue.js +4 -0
  125. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +4 -0
  126. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime2.vue.js +66 -0
  127. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +38 -0
  128. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element2.vue.js +4 -0
  129. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +4 -0
  130. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime2.vue.js +69 -0
  131. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +4 -0
  132. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime2.vue.js +102 -0
  133. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +4 -0
  134. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime2.vue.js +55 -0
  135. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +4 -0
  136. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime2.vue.js +24 -0
  137. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +4 -0
  138. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime2.vue.js +115 -0
  139. package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue.js +4 -0
  140. package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime2.vue.js +91 -0
  141. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +4 -0
  142. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime2.vue.js +28 -0
  143. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +4 -0
  144. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime2.vue.js +81 -0
  145. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +7 -0
  146. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime2.vue.js +38 -0
  147. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +4 -0
  148. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime2.vue.js +43 -0
  149. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +7 -0
  150. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime2.vue.js +16 -0
  151. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +4 -0
  152. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime2.vue.js +84 -0
  153. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +8 -0
  154. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime2.vue.js +218 -0
  155. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +7 -0
  156. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime2.vue.js +156 -0
  157. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +4 -0
  158. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime2.vue.js +16 -0
  159. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +4 -0
  160. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime2.vue.js +36 -0
  161. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +4 -0
  162. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime2.vue.js +44 -0
  163. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +7 -0
  164. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime2.vue.js +28 -0
  165. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +83 -0
  166. package/dist/es/components/runtime/views/assemblys/home-chart-render2.vue.js +4 -0
  167. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +166 -0
  168. package/dist/es/components/runtime/views/assemblys/object-render2.vue.js +4 -0
  169. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +9 -0
  170. package/dist/es/components/runtime/views/assemblys/page-bottom2.vue.js +4 -0
  171. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +7 -0
  172. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box2.vue.js +56 -0
  173. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.js +7 -0
  174. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog2.vue.js +29 -0
  175. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +7 -0
  176. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime2.vue.js +45 -0
  177. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +4 -0
  178. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime2.vue.js +20 -0
  179. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +4 -0
  180. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime2.vue.js +23 -0
  181. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +7 -0
  182. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime2.vue.js +32 -0
  183. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +4 -0
  184. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime2.vue.js +27 -0
  185. package/dist/es/components/runtime/views/home-chart.vue.js +47 -0
  186. package/dist/es/components/runtime/views/home-chart2.vue.js +4 -0
  187. package/dist/es/components/runtime/views/super-page-dialog.vue.js +30 -0
  188. package/dist/es/components/runtime/views/super-page-dialog3.vue.js +5 -0
  189. package/dist/es/components/runtime/views/super-page.vue.js +7 -0
  190. package/dist/es/components/runtime/views/super-page2.vue.js +311 -0
  191. package/dist/es/index.js +32 -0
  192. package/dist/es/style.css +1052 -1
  193. package/package.json +11 -13
  194. package/dist/es/_virtual/_plugin-vue_export-helper.mjs +0 -8
  195. package/dist/es/components/runtime/utils/ai-chat-util.mjs +0 -16
  196. package/dist/es/components/runtime/utils/anchor-util.mjs +0 -83
  197. package/dist/es/components/runtime/utils/api/api-util.mjs +0 -12
  198. package/dist/es/components/runtime/utils/api/page-expose-util.mjs +0 -196
  199. package/dist/es/components/runtime/utils/assemblys-config.mjs +0 -19
  200. package/dist/es/components/runtime/utils/barcode-util.mjs +0 -12
  201. package/dist/es/components/runtime/utils/charts/chart-columnline-util.mjs +0 -169
  202. package/dist/es/components/runtime/utils/charts/chart-gauge-util.mjs +0 -38
  203. package/dist/es/components/runtime/utils/charts/chart-pie-util.mjs +0 -83
  204. package/dist/es/components/runtime/utils/charts/chart-radar-util.mjs +0 -56
  205. package/dist/es/components/runtime/utils/charts/chart-scatter-util.mjs +0 -47
  206. package/dist/es/components/runtime/utils/charts/chart-util.mjs +0 -285
  207. package/dist/es/components/runtime/utils/common-util.mjs +0 -116
  208. package/dist/es/components/runtime/utils/eventBus.mjs +0 -8
  209. package/dist/es/components/runtime/utils/events/data-backfill-util.mjs +0 -38
  210. package/dist/es/components/runtime/utils/events/event-util.mjs +0 -429
  211. package/dist/es/components/runtime/utils/events/print-label.mjs +0 -100
  212. package/dist/es/components/runtime/utils/events/standard-event.mjs +0 -1170
  213. package/dist/es/components/runtime/utils/events/validator-util.mjs +0 -462
  214. package/dist/es/components/runtime/utils/form/date-shortcuts.mjs +0 -36
  215. package/dist/es/components/runtime/utils/form/scan-util.mjs +0 -88
  216. package/dist/es/components/runtime/utils/global-refs.mjs +0 -57
  217. package/dist/es/components/runtime/utils/i18n-util.mjs +0 -14
  218. package/dist/es/components/runtime/utils/interfaces/page-design-types.mjs +0 -4
  219. package/dist/es/components/runtime/utils/page-helper-util.mjs +0 -381
  220. package/dist/es/components/runtime/utils/page-init-util.mjs +0 -281
  221. package/dist/es/components/runtime/utils/page-store.mjs +0 -53
  222. package/dist/es/components/runtime/utils/store-util.mjs +0 -13
  223. package/dist/es/components/runtime/utils/table-utils.mjs +0 -84
  224. package/dist/es/components/runtime/utils/tree-utils.mjs +0 -68
  225. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.mjs +0 -4
  226. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime2.vue.mjs +0 -29
  227. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.mjs +0 -7
  228. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime2.vue.mjs +0 -21
  229. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.mjs +0 -4
  230. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime2.vue.mjs +0 -41
  231. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.mjs +0 -4
  232. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime2.vue.mjs +0 -6
  233. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.mjs +0 -4
  234. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime2.vue.mjs +0 -21
  235. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.mjs +0 -7
  236. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime2.vue.mjs +0 -53
  237. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.mjs +0 -14
  238. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb2.vue.mjs +0 -4
  239. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.mjs +0 -13
  240. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group2.vue.mjs +0 -4
  241. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.mjs +0 -59
  242. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header2.vue.mjs +0 -4
  243. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.mjs +0 -7
  244. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search2.vue.mjs +0 -59
  245. package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.mjs +0 -93
  246. package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render2.vue.mjs +0 -4
  247. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.mjs +0 -7
  248. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime2.vue.mjs +0 -35
  249. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.mjs +0 -7
  250. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime2.vue.mjs +0 -46
  251. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.mjs +0 -7
  252. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime2.vue.mjs +0 -35
  253. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.mjs +0 -7
  254. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime2.vue.mjs +0 -35
  255. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.mjs +0 -425
  256. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.mjs +0 -6
  257. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item2.vue.mjs +0 -4
  258. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.mjs +0 -10
  259. package/dist/es/components/runtime/views/assemblys/chart/table/group-column2.vue.mjs +0 -4
  260. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.mjs +0 -42
  261. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column2.vue.mjs +0 -4
  262. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.mjs +0 -17
  263. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination2.vue.mjs +0 -4
  264. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.mjs +0 -4
  265. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime2.vue.mjs +0 -261
  266. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.mjs +0 -20
  267. package/dist/es/components/runtime/views/assemblys/common/event-call-component2.vue.mjs +0 -4
  268. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.mjs +0 -35
  269. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog2.vue.mjs +0 -4
  270. package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.mjs +0 -34
  271. package/dist/es/components/runtime/views/assemblys/common/file-task-notice2.vue.mjs +0 -4
  272. package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.mjs +0 -27
  273. package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message2.vue.mjs +0 -4
  274. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.mjs +0 -17
  275. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog2.vue.mjs +0 -4
  276. package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.mjs +0 -22
  277. package/dist/es/components/runtime/views/assemblys/common/remove-signer-table2.vue.mjs +0 -4
  278. package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.mjs +0 -18
  279. package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog2.vue.mjs +0 -4
  280. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.mjs +0 -35
  281. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog2.vue.mjs +0 -4
  282. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.mjs +0 -19
  283. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog2.vue.mjs +0 -4
  284. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.mjs +0 -7
  285. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime2.vue.mjs +0 -35
  286. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.mjs +0 -4
  287. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime2.vue.mjs +0 -21
  288. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.mjs +0 -7
  289. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime2.vue.mjs +0 -27
  290. package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.mjs +0 -7
  291. package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox2.vue.mjs +0 -29
  292. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.mjs +0 -7
  293. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix2.vue.mjs +0 -81
  294. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.mjs +0 -4
  295. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime2.vue.mjs +0 -25
  296. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.mjs +0 -4
  297. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime2.vue.mjs +0 -25
  298. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.mjs +0 -4
  299. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime2.vue.mjs +0 -43
  300. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.mjs +0 -7
  301. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime2.vue.mjs +0 -96
  302. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.mjs +0 -7
  303. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime2.vue.mjs +0 -47
  304. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.mjs +0 -4
  305. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime2.vue.mjs +0 -69
  306. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.mjs +0 -362
  307. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime2.vue.mjs +0 -4
  308. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.mjs +0 -329
  309. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime2.vue.mjs +0 -4
  310. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.mjs +0 -4
  311. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime2.vue.mjs +0 -90
  312. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.mjs +0 -7
  313. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime2.vue.mjs +0 -133
  314. package/dist/es/components/runtime/views/assemblys/error-render.vue.mjs +0 -5
  315. package/dist/es/components/runtime/views/assemblys/error-render2.vue.mjs +0 -4
  316. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.mjs +0 -4
  317. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime2.vue.mjs +0 -65
  318. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.mjs +0 -36
  319. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element2.vue.mjs +0 -4
  320. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.mjs +0 -4
  321. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime2.vue.mjs +0 -69
  322. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.mjs +0 -4
  323. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime2.vue.mjs +0 -102
  324. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.mjs +0 -4
  325. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime2.vue.mjs +0 -55
  326. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.mjs +0 -4
  327. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime2.vue.mjs +0 -24
  328. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.mjs +0 -4
  329. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime2.vue.mjs +0 -111
  330. package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue.mjs +0 -4
  331. package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime2.vue.mjs +0 -88
  332. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.mjs +0 -4
  333. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime2.vue.mjs +0 -28
  334. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.mjs +0 -4
  335. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime2.vue.mjs +0 -79
  336. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.mjs +0 -7
  337. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime2.vue.mjs +0 -37
  338. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.mjs +0 -4
  339. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime2.vue.mjs +0 -42
  340. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.mjs +0 -7
  341. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime2.vue.mjs +0 -16
  342. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.mjs +0 -4
  343. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime2.vue.mjs +0 -84
  344. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.mjs +0 -8
  345. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime2.vue.mjs +0 -215
  346. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.mjs +0 -7
  347. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime2.vue.mjs +0 -150
  348. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.mjs +0 -4
  349. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime2.vue.mjs +0 -16
  350. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.mjs +0 -4
  351. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime2.vue.mjs +0 -36
  352. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.mjs +0 -4
  353. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime2.vue.mjs +0 -43
  354. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.mjs +0 -7
  355. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime2.vue.mjs +0 -28
  356. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.mjs +0 -83
  357. package/dist/es/components/runtime/views/assemblys/home-chart-render2.vue.mjs +0 -4
  358. package/dist/es/components/runtime/views/assemblys/object-render.vue.mjs +0 -163
  359. package/dist/es/components/runtime/views/assemblys/object-render2.vue.mjs +0 -4
  360. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.mjs +0 -9
  361. package/dist/es/components/runtime/views/assemblys/page-bottom2.vue.mjs +0 -4
  362. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.mjs +0 -7
  363. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box2.vue.mjs +0 -56
  364. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.mjs +0 -7
  365. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog2.vue.mjs +0 -29
  366. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.mjs +0 -7
  367. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime2.vue.mjs +0 -45
  368. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.mjs +0 -4
  369. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime2.vue.mjs +0 -20
  370. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.mjs +0 -4
  371. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime2.vue.mjs +0 -23
  372. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.mjs +0 -7
  373. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime2.vue.mjs +0 -30
  374. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.mjs +0 -4
  375. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime2.vue.mjs +0 -27
  376. package/dist/es/components/runtime/views/home-chart.vue.mjs +0 -46
  377. package/dist/es/components/runtime/views/home-chart2.vue.mjs +0 -4
  378. package/dist/es/components/runtime/views/super-page-dialog.vue.mjs +0 -30
  379. package/dist/es/components/runtime/views/super-page-dialog3.vue.mjs +0 -5
  380. package/dist/es/components/runtime/views/super-page.vue.mjs +0 -7
  381. package/dist/es/components/runtime/views/super-page2.vue.mjs +0 -307
  382. package/dist/es/index.mjs +0 -32
  383. /package/dist/es/assets/chart-themes/{bar-theme.mjs → bar-theme.js} +0 -0
  384. /package/dist/es/assets/chart-themes/{gauge-theme.mjs → gauge-theme.js} +0 -0
  385. /package/dist/es/assets/chart-themes/{pie-theme.mjs → pie-theme.js} +0 -0
  386. /package/dist/es/assets/chart-themes/{radar-theme.mjs → radar-theme.js} +0 -0
  387. /package/dist/es/assets/chart-themes/{scatter-theme.mjs → scatter-theme.js} +0 -0
  388. /package/dist/es/assets/{file.png.mjs → file.png.js} +0 -0
  389. /package/dist/es/assets/{folder.png.mjs → folder.png.js} +0 -0
  390. /package/dist/es/components/runtime/utils/{store.mjs → store.js} +0 -0
  391. /package/dist/es/i18n/langs/{cn.mjs → cn.js} +0 -0
  392. /package/dist/es/i18n/langs/{en.mjs → en.js} +0 -0
@@ -0,0 +1,339 @@
1
+ import { defineComponent as e, ref as t, onMounted as n, onUnmounted as o, resolveComponent as l, openBlock as i, createElementBlock as a, createBlock as r, unref as s, createCommentVNode as u, computed as c } from "vue";
2
+ import { setTableEvents as p, gridSelectRecord as d, gridSelectAllRecords as f, gridSelectionChange as b, cellClick as g, cellDblClick as m, rowClick as v, rowDblClick as h, headerClick as w, getHandleEvent as S } from "../../../../utils/events/event-util.js";
3
+ import { caculateShowCondition as C, setVariableValue as T, getVariableValue as x, getSizeConfig as D } from "../../../../utils/page-helper-util.js";
4
+ import { getModelFields as y, getDefaultValue as P } from "../../../../utils/page-init-util.js";
5
+ import I from "../../../../utils/eventBus.js";
6
+ import { popupToPage as R, getOperationButtons as O } from "../../../../utils/table-utils.js";
7
+ import { getListCode as _, getBaseUrl as k } from "../../../../utils/common-util.js";
8
+ import { getAdditionalParamMap as A } from "../../../../utils/events/standard-event.js";
9
+ import { getRowStyleUtil as M, getCellStyleUtil as E, getHeaderCellStyleUtil as N } from "../../chart/table/chart-table-util.js";
10
+ const B = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: B2, emit: F }) {
11
+ var _a;
12
+ const $ = e2, j = $.pageContext;
13
+ let z = $.configure;
14
+ const V = $.configure.runtime ? $.configure.runtime : {};
15
+ j.isTest ? V.value = $.configure.runtime ? $.configure.runtime : {} : j.tableRuntimes && j.tableRuntimes[z.uuid] && (z = JSON.parse(j.tableRuntimes[z.uuid].configure), V.value = z.runtime ? z.runtime : {});
16
+ const G = _(j.code, j.version, z.uuid), H = j.entity.data, L = z.code ? z.code : G, U = A(j), q = V && V.events ? V.events : [], J = t([]), K = j.superGridItems, Q = K ? K[z.uuid] : null, W = V.style, X = V.class, Y = $.pageContext.entity ? $.pageContext.entity : {};
17
+ let Z = y($.configure, L), ee = k(j.backendUrl, j.isTest);
18
+ ee || (ee = window.$vueApp.config.globalProperties.baseURL);
19
+ const te = t(false);
20
+ let ne = t(0);
21
+ const oe = (_a = z.props) == null ? void 0 : _a.dataOrigin.principalLinkage, le = t({}), ie = F;
22
+ le.value = function() {
23
+ var _a2, _b, _c, _d;
24
+ const e3 = { title: (z == null ? void 0 : z.title) || null, isSql: true, subTableData: null, rowKeyProp: oe, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: j.code, pageVersion: j.version, pageContext: j, configureObj: z, showPageArea: false, showRowForm: false, showOverflowTooltip: (_b = (_a2 = z == null ? void 0 : z.props) == null ? void 0 : _a2.otherSettings) == null ? void 0 : _b.showOverflowTooltip, backendUrl: ee, cellStyleRender: Le, rowStyleRender: He, titleStyleRender: Ue, allEditable: (_d = (_c = z.props) == null ? void 0 : _c.base) == null ? void 0 : _d.allEditable };
25
+ return W && (e3.tableStyle = W), X && (e3.tableClass = X), z.props && z.props.base && true === z.props.base.subPaging ? e3.showPageArea = true : e3.showPageArea = false, z.props.base.showRowForm && (e3.showRowForm = z.props.base.showRowForm), function(e4) {
26
+ const t2 = z.props ? z.props.dataOrigin : {};
27
+ if (t2.treeTable) {
28
+ let n2;
29
+ const o2 = t2.rowKey;
30
+ if (n2 = o2 && o2.indexOf("~~") > 0 ? o2.substring(o2.indexOf("~~") + 2) : o2, e4.parentProp = n2, t2.checkStrictly && (e4.checkStrictly = t2.checkStrictly), e4.parentProp) {
31
+ const o3 = t2.lazy, l2 = t2.defaultExpandAll;
32
+ e4.lazy = null == o3 || o3, e4.defaultExpandAll = null != l2 && l2;
33
+ const i2 = { parentProp: n2, lazy: e4.lazy, defaultExpandAll: e4.defaultExpandAll };
34
+ e4.extraParam.listViewTreeSetting = JSON.stringify(i2), e4.subRowUrl = ee + "/dsc/commons/list-subs";
35
+ }
36
+ }
37
+ }(e3), e3;
38
+ }();
39
+ const ae = t(null);
40
+ function re() {
41
+ ae.value && (le.value.subTableData = null, ae.value.reloadSubTableData(G));
42
+ }
43
+ function se(e3, t2) {
44
+ if (t2 || (t2 = le.value), void 0 === e3 && (e3 = ue()), t2.isPageInfo = false, t2.isFormSubTable = true, t2.canRrefreshSubtableData = e3, t2.getFormData = ce, t2.getGridData = pe, t2.extraParam.subTableListViewCode = G, t2.extraParam.beanName = j.beanName, t2.extraParam.subtableSetting = z.props && z.props.otherSettings ? JSON.stringify(z.props.otherSettings) : null, t2.extraParam.additionalParamMap = U, t2.extraParam.entityMap = j.entity.data, t2.extraParam.contextMap = j.entity.context, t2.extraParam.taskMap = j.entity.task, !(z.props && z.props.base && z.props.base.showOperation)) {
45
+ let e4 = t2.hiddenColumns;
46
+ e4 ? e4.push("operation") : e4 = ["operation"], t2.hiddenColumns = e4;
47
+ }
48
+ t2.showOperationButton = !(!z.props || !z.props.base) && z.props.base.showOperation, t2.isPdfEditor = false, t2.tableRecordMaxNum = z.props && z.props.otherSettings ? z.props.otherSettings.tableRecordMaxNum : null;
49
+ let n2 = D(j, z);
50
+ n2 && n2.fixHeight && (t2.formSetHeight = n2.fixHeight), n2 && n2.maxHeight && (t2.formSetMaxHeight = n2.maxHeight), t2.validateEitConditions = qe;
51
+ }
52
+ function ue() {
53
+ if (z.props && z.props.otherSettings) {
54
+ if (z.props.otherSettings.sourceQueryTableData && z.props.otherSettings.timeToInitializeSubTable && z.props.otherSettings.timeToInitializeSubTable.length > 0) {
55
+ let e3 = false;
56
+ if (-1 !== z.props.otherSettings.timeToInitializeSubTable.indexOf("create") && (e3 = !H.id && !H.ID), -1 !== z.props.otherSettings.timeToInitializeSubTable.indexOf("noData")) {
57
+ const t2 = H[L];
58
+ (!t2 || t2.length <= 0) && (e3 = true);
59
+ }
60
+ return e3;
61
+ }
62
+ return false;
63
+ }
64
+ }
65
+ function ce() {
66
+ return j.entity.data;
67
+ }
68
+ function pe() {
69
+ return x(Y, Z);
70
+ }
71
+ let de, fe;
72
+ function be(e3, t2) {
73
+ t2 || (t2 = le.value), se(e3, t2), t2.subTableData = null, ge(t2), te.value = false, de = setTimeout(() => {
74
+ te.value = true, ne.value = ne.value + 1, me();
75
+ }, 10);
76
+ }
77
+ function ge(e3) {
78
+ e3 || (e3 = le.value), function(e4) {
79
+ var _a2, _b, _c, _d;
80
+ e4 || (e4 = le.value);
81
+ const t3 = j.fieldPermissionMap, n2 = j.actionPermissionMap;
82
+ if (t3 && null != t3) {
83
+ let n3 = t3.get(L);
84
+ if (!n3) {
85
+ const e5 = t3.get("all_fields");
86
+ e5 && (n3 = [e5]);
87
+ }
88
+ e4.validateRules = n3 || null;
89
+ }
90
+ if (n2 && null != n2) {
91
+ let t4 = n2.get(L);
92
+ t4 || (t4 = n2.get("all_sub_tables")), e4.actionPermission = t4;
93
+ }
94
+ e4.operations || (e4.operations = {});
95
+ const o2 = function() {
96
+ let e5 = [];
97
+ if (Ce(null)) {
98
+ const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: ye, isShow: Te, isStandard: true };
99
+ e5.push(t4);
100
+ }
101
+ if (xe(null, null, null, null, null, true)) {
102
+ const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: Pe, isShow: De, isStandard: true };
103
+ e5.push(t4);
104
+ }
105
+ return O(j, z, e5, we), e5;
106
+ }();
107
+ ((_a2 = z.props.base.showOperationCondition) == null ? void 0 : _a2.length) > 0 && (e4.operations.showOperationFunc = ve);
108
+ e4.operations.operation = o2, ((_b = z.props.base.showAddBtnCondition) == null ? void 0 : _b.length) > 0 ? e4.subTableCanAdd = Ce("canAdd") && c(() => C($.pageContext, z.props.base.showAddBtnCondition, null)) : e4.subTableCanAdd = Ce("canAdd");
109
+ ((_c = z.props.base.showDeleteBtnCondition) == null ? void 0 : _c.length) > 0 ? e4.subTableCanDelete = Ce("canDelete") && c(() => C($.pageContext, z.props.base.showDeleteBtnCondition, null)) : e4.subTableCanDelete = Ce("canDelete");
110
+ ((_d = z.props.base.showCopyBtnCondition) == null ? void 0 : _d.length) > 0 ? e4.subTableCanCopy = C($.pageContext, $.configure.props.base.showCopyBtnCondition) : e4.subTableCanCopy = true;
111
+ }(e3), p(e3, q, j, z);
112
+ const t2 = j.customEvents;
113
+ t2 && (e3.eventCallBack = t2), te.value = true, me();
114
+ }
115
+ function me() {
116
+ j.tableUuids || (j.tableUuids = []), j.tableUuids.indexOf(z.uuid) < 0 && j.tableUuids.push(z.uuid);
117
+ }
118
+ function ve() {
119
+ return C($.pageContext, z.props.base.showOperationCondition);
120
+ }
121
+ n(() => {
122
+ const e3 = z.uuid, t2 = j.subTableWatchProps;
123
+ I.$on("_refreshSubTable_" + e3, (n3) => {
124
+ const o2 = n3.propName;
125
+ if (t2 && t2[e3] && t2[e3].length > 0) {
126
+ t2[e3].indexOf(o2) >= 0 && re();
127
+ }
128
+ }), I.$on("_refreshSubTableHandle_" + e3, (e4) => {
129
+ re();
130
+ }), I.$on("_refreshChildData_" + e3, (e4) => {
131
+ !function(e5) {
132
+ Ge(e5), fe = setTimeout(() => {
133
+ ae.value && (ae.value.refreshChildData(G, e5, z.props && z.props.base && true === z.props.base.subPaging), le.value.extraParam.entityMap = j.entity.data);
134
+ }, 10);
135
+ }(e4);
136
+ }), I.$on(G + "-pickFileDone", (e4) => {
137
+ ae.value.pickFileDone(e4);
138
+ }), I.$on(G + "-scanDone", (e4) => {
139
+ ae.value.scanDone(e4);
140
+ });
141
+ const n2 = z.props ? z.props.dataOrigin : {};
142
+ le.value && le.value.configureObj.props.base && le.value.configureObj.props.base.isSafeDelete && ie("setSafeDeleteTableCode", n2.tableName);
143
+ }), o(() => {
144
+ de && clearTimeout(de), fe && clearTimeout(fe);
145
+ const e3 = z.uuid;
146
+ I.$off("_refreshSubTable_" + e3), I.$off("_refreshSubTableHandle_" + e3), I.$off("_refreshChildData_" + e3), I.$off(G + "-pickFileDone"), I.$off(G + "-scanDone");
147
+ });
148
+ const he = t({});
149
+ function we(e3) {
150
+ if (!e3) return;
151
+ return he.value[e3.uuid] = e3, Se;
152
+ }
153
+ function Se(e3, t2, n2, o2, l2, i2) {
154
+ const a2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2, button: i2, id: n2.ID ? n2.ID : n2.id }, r2 = he.value[i2.sourceButton.uuid], s2 = z;
155
+ r2.props.base.tableUuid = s2.uuid, S(null, j, r2, "click", a2);
156
+ }
157
+ function Ce(e3) {
158
+ e3 || (e3 = "canAdd");
159
+ if (!C($.pageContext, z.props.base.showOperationCondition)) return false;
160
+ const t2 = j.fieldPermissionMap, n2 = j.actionPermissionMap;
161
+ let o2 = true;
162
+ if (t2 && null !== t2) {
163
+ const e4 = t2.get("all_fields");
164
+ void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (o2 = false);
165
+ }
166
+ if (true === o2 && L && n2 && null !== n2) {
167
+ let t3 = n2.get(L);
168
+ t3 || (t3 = n2.get("all_sub_tables")), t3 && void 0 !== t3[e3] && false === t3[e3] && (o2 = false);
169
+ }
170
+ return o2;
171
+ }
172
+ function Te(e3, t2, n2, o2, l2, i2) {
173
+ let a2 = Ce(e3);
174
+ return true === a2 && (a2 = C($.pageContext, z.props.base.showAddBtnCondition, n2)), a2;
175
+ }
176
+ function xe(e3, t2, n2, o2, l2, i2) {
177
+ const a2 = j.fieldPermissionMap, r2 = j.actionPermissionMap;
178
+ let s2 = true;
179
+ if (a2 && null !== a2) {
180
+ const e4 = a2.get("all_fields");
181
+ void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (s2 = false);
182
+ }
183
+ if (true === s2 && L && r2 && null !== r2) {
184
+ let e4 = r2.get(L);
185
+ if (e4 || (e4 = r2.get("all_sub_tables")), e4 && void 0 !== e4.canDelete && false === e4.canDelete && (s2 = false), e4 && void 0 !== e4.canDelete && true === e4.canDelete && e4.deleteRowIndexes) if (e4.deleteRowIndexes.length > 0) if (i2) s2 = true;
186
+ else {
187
+ const t3 = function(e5) {
188
+ return e5 && e5.id ? e5.id : e5 && e5.ID ? e5.ID : void 0;
189
+ }(n2);
190
+ s2 = void 0 !== t3 && e4.deleteRowIndexes.indexOf(t3) >= 0;
191
+ }
192
+ else s2 = false;
193
+ }
194
+ return s2;
195
+ }
196
+ function De(e3, t2, n2, o2, l2, i2) {
197
+ let a2 = xe(0, 0, n2, 0, 0, i2);
198
+ return true === a2 && (a2 = C($.pageContext, z.props.base.showDeleteBtnCondition, n2)), a2;
199
+ }
200
+ function ye(e3, t2, n2, o2, l2) {
201
+ ae.value.createRow(G, {}, { getDefaultValueFunc: P }, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2 }).then(() => {
202
+ Je(l2);
203
+ });
204
+ }
205
+ function Pe(e3, t2, n2, o2, l2, i2, a2, r2) {
206
+ ae.value.deleteRow(l2, G, false, a2, r2, n2);
207
+ }
208
+ function Ie(e3) {
209
+ T(Y, Z, e3);
210
+ }
211
+ function Re(e3) {
212
+ j.subTablePageInfo || (j.subTablePageInfo = {}), j.subTablePageInfo[L] || (j.subTablePageInfo[L] = {}), j.subTablePageInfo[L].title = z.title ? z.title : z.code, j.subTablePageInfo[L].pageSize = e3;
213
+ }
214
+ function Oe(e3) {
215
+ const t2 = e3.key, n2 = e3.value;
216
+ j.selectOptions || (j.selectOptions = {}), j.selectOptions[t2] = n2;
217
+ }
218
+ function _e(e3) {
219
+ const t2 = j.code + "_";
220
+ I.$emit(t2 + "prohibit-edit", e3);
221
+ }
222
+ function ke(e3) {
223
+ const t2 = j.entity.data;
224
+ if (e3) for (const n2 in e3) t2[n2] = e3[n2];
225
+ }
226
+ function Ae(e3, t2) {
227
+ if (void 0 !== t2) {
228
+ J.value = e3;
229
+ d(j, z, { selection: e3, row: t2 });
230
+ }
231
+ }
232
+ function Me(e3) {
233
+ J.value = e3;
234
+ f(j, z, { selection: e3 });
235
+ }
236
+ function Ee(e3) {
237
+ b(j, z, { newSelection: e3 });
238
+ }
239
+ function Ne(e3, t2, n2, o2) {
240
+ g(j, z, { row: e3, column: t2, cell: n2, event: o2 });
241
+ }
242
+ function Be(e3, t2, n2, o2) {
243
+ m(j, z, { row: e3, column: t2, cell: n2, event: o2 });
244
+ }
245
+ function Fe(e3, t2, n2) {
246
+ v(j, z, { row: e3, column: t2, event: n2 });
247
+ }
248
+ function $e(e3, t2, n2) {
249
+ h(j, z, { row: e3, column: t2, event: n2 });
250
+ }
251
+ function je(e3, t2) {
252
+ w(j, z, { column: e3, event: t2 });
253
+ }
254
+ function ze(e3) {
255
+ j.entity.data = e3;
256
+ }
257
+ function Ve() {
258
+ return x(Y, Z);
259
+ }
260
+ function Ge(e3) {
261
+ return T(Y, Z, e3);
262
+ }
263
+ function He(e3) {
264
+ return M(e3, null, $);
265
+ }
266
+ function Le(e3) {
267
+ return E(e3, e3.cellStyle, $);
268
+ }
269
+ function Ue(e3) {
270
+ const t2 = e3.titleStyle, n2 = $.configure.style.titleStyle;
271
+ return N(e3, { cellTitleStyle: t2, titleStyle: n2 }, $);
272
+ }
273
+ function qe({ row: e3, editConditions: t2 }) {
274
+ let n2 = true;
275
+ return t2 && t2.length > 0 && (n2 = C($.pageContext, t2, e3)), n2;
276
+ }
277
+ function Je(e3) {
278
+ var _a2;
279
+ (_a2 = ae.value) == null ? void 0 : _a2.setScrollTopByRowIndex(e3);
280
+ }
281
+ return function(e3) {
282
+ const t2 = ue();
283
+ t2 ? be(t2, e3) : (se(t2, e3), e3.isPageInfo = false, e3.subTableData = Ve(), ge(e3));
284
+ }(le.value), B2({ createRow: function() {
285
+ return ae.value.createRow(G);
286
+ }, getSelections: function() {
287
+ return J.value;
288
+ }, getSelectionIds: function() {
289
+ const e3 = [];
290
+ return J.value && J.value.forEach((t2) => {
291
+ e3.push(t2.id ? t2.id : t2.ID ? t2.ID : null);
292
+ }), e3;
293
+ }, clearSelections: function() {
294
+ J.value = [];
295
+ }, getTableConfigure: function() {
296
+ return z;
297
+ }, validatorSunTableListData: function() {
298
+ return ae.value.validatorSunTableListData();
299
+ }, getValue: Ve, setValue: Ge, getTableSelectOptions: function() {
300
+ if (ae.value) return ae.value.getTableSelectOptions(G);
301
+ }, dynamicControlTableEdit: function(e3, t2, n2) {
302
+ ae.value && ae.value.dynamicControlTableEdit(e3, t2, n2);
303
+ }, doLayout: function(e3) {
304
+ ae.value && ae.value.doLayout(e3);
305
+ }, changeOperationAddState: function(e3) {
306
+ ae.value && ae.value.changeOperationAddState(e3);
307
+ }, scrollTo: function(e3, t2) {
308
+ ae.value && ae.value.scrollTo(e3, t2);
309
+ }, setScrollTop: function(e3) {
310
+ ae.value && ae.value.setScrollTop(e3);
311
+ }, setScrollLeft: function(e3) {
312
+ ae.value && ae.value.setScrollLeft(e3);
313
+ }, getSuperGridRef: function() {
314
+ return ae.value;
315
+ }, getSuperGridTableRef: function() {
316
+ return ae.value.getSuperGridTableRef();
317
+ }, setCurrentRowIndex: function(e3) {
318
+ var _a2;
319
+ (_a2 = ae.value) == null ? void 0 : _a2.setCurrentRowIndex(e3);
320
+ }, setScrollTopByRowIndex: Je, getTableData: function() {
321
+ var _a2;
322
+ return (_a2 = ae.value) == null ? void 0 : _a2.getTableData();
323
+ }, addRequiredClass: function(e3, t2, n2) {
324
+ var _a2;
325
+ (_a2 = ae.value) == null ? void 0 : _a2.addRequiredClass(e3, G, t2, n2);
326
+ }, getColumns: function() {
327
+ var _a2;
328
+ return (_a2 = ae.value) == null ? void 0 : _a2.getColumns();
329
+ }, scrollToCell: function({ fieldName: e3, rowIndex: t2, pageNum: n2 }) {
330
+ var _a2;
331
+ (_a2 = ae.value) == null ? void 0 : _a2.scrollToCell({ fieldName: e3, rowIndex: t2, pageNum: n2 });
332
+ } }), (e3, t2) => {
333
+ const n2 = l("super-grid");
334
+ return i(), a("div", null, [te.value ? (i(), r(n2, { key: 0, ref_key: "gridRef", ref: ae, url: s(ee) + "/dsc/commons/sub-table", options: le.value, code: s(G), settings: s(Q), isDialog: s(j).isDialog, onSelect: Ae, onSelectAll: Me, onSelectionChange: Ee, onCellClick: Ne, onCellDblclick: Be, onRowClick: Fe, onRowDblclick: $e, onHeaderClick: je, onFnProhibitToEdit: _e, onChangeGridData: Ie, onReloadGrid: be, onRefresMainTableFields: ke, onSetSelectOptions: Oe, onChangeRowsPerPage: Re, onNewOpenGridDialog: s(R), onChangeFormData: ze }, null, 8, ["url", "options", "code", "settings", "isDialog", "onNewOpenGridDialog"])) : u("", true)]);
335
+ };
336
+ } });
337
+ export {
338
+ B as default
339
+ };
@@ -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-runtime2.vue.js";
2
+ export {
3
+ e as default
4
+ };
@@ -0,0 +1,90 @@
1
+ import { defineComponent as e, ref as t, onUnmounted as n, openBlock as u, createElementBlock as l, unref as o, createBlock as a, createCommentVNode 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, p = s.pageContext.superGridItems, S = p ? p[v] : null;
6
+ d.value = S ? S.configure ? JSON.parse(S.configure) : null : s.configure;
7
+ const T = s.configure.runtime ? s.configure.runtime : {};
8
+ T.style, T.class;
9
+ const C = t(true), m = t(null);
10
+ let b = null;
11
+ function x(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
+ b && clearTimeout(b);
16
+ }), f2({ refresh: function(e3, t2, n2, u2) {
17
+ if (g && "list" === g) return m.value.refresh(e3, t2, n2, u2);
18
+ }, createRow: function() {
19
+ return m.value.createRow();
20
+ }, clearSelections: function() {
21
+ return m.value.clearSelections();
22
+ }, getSelections: function() {
23
+ var _a;
24
+ return (_a = m.value) == null ? void 0 : _a.getSelections();
25
+ }, getSelectionIds: function() {
26
+ var _a;
27
+ return (_a = m.value) == null ? void 0 : _a.getSelectionIds();
28
+ }, getTableConfigure: function() {
29
+ return m.value.getTableConfigure();
30
+ }, isDeleteChange: function(e3) {
31
+ g && "list" === g && m.value.isDeleteChange(e3);
32
+ }, validatorSunTableListData: function() {
33
+ if (g && "form" === g) return m.value.validatorSunTableListData();
34
+ }, showMobileSearch: function() {
35
+ m.value.showMobileSearch();
36
+ }, getTableSelectOptions: function() {
37
+ if (m.value) return m.value.getTableSelectOptions();
38
+ }, dynamicControlTableEdit: function(e3, t2, n2) {
39
+ m.value && m.value.dynamicControlTableEdit(e3, t2, n2);
40
+ }, getTableUuid: function() {
41
+ return s.configure.uuid;
42
+ }, doLayout: function(e3) {
43
+ m.value && m.value.doLayout(e3);
44
+ }, changeOperationAddState: function(e3) {
45
+ m.value && m.value.changeOperationAddState(e3);
46
+ }, scrollTo: function(e3, t2) {
47
+ var _a;
48
+ (_a = m.value) == null ? void 0 : _a.scrollTo(e3, t2);
49
+ }, setScrollTop: function(e3) {
50
+ var _a;
51
+ (_a = m.value) == null ? void 0 : _a.setScrollTop(e3);
52
+ }, setScrollLeft: function(e3) {
53
+ var _a;
54
+ (_a = m.value) == null ? void 0 : _a.setScrollLeft(e3);
55
+ }, getSuperGridRef: function() {
56
+ var _a;
57
+ return (_a = m.value) == null ? void 0 : _a.getSuperGridRef();
58
+ }, getSuperGridTableRef: function() {
59
+ var _a;
60
+ return (_a = m.value) == null ? void 0 : _a.getSuperGridTableRef();
61
+ }, setCurrentRowIndex: function(e3) {
62
+ var _a;
63
+ (_a = m.value) == null ? void 0 : _a.setCurrentRowIndex(e3);
64
+ }, setScrollTopByRowIndex: function(e3) {
65
+ var _a;
66
+ (_a = m.value) == null ? void 0 : _a.setScrollTopByRowIndex(e3);
67
+ }, reloadSubTable: function() {
68
+ C.value = false, b = setTimeout(() => {
69
+ C.value = true;
70
+ }, 10);
71
+ }, getTableData: function() {
72
+ var _a;
73
+ return (_a = m.value) == null ? void 0 : _a.getTableData();
74
+ }, addRequiredClass: function(e3, t2, n2) {
75
+ var _a;
76
+ (_a = m.value) == null ? void 0 : _a.addRequiredClass(e3, t2, n2);
77
+ }, handleSearch: function(e3, t2) {
78
+ var _a;
79
+ (_a = m.value) == null ? void 0 : _a.handleSearch(e3, t2);
80
+ }, getColumns: function() {
81
+ var _a;
82
+ return (_a = m.value) == null ? void 0 : _a.getColumns();
83
+ }, scrollToCell: function({ fieldName: e3, rowIndex: t2, pageNum: n2 }) {
84
+ var _a;
85
+ (_a = m.value) == null ? void 0 : _a.scrollToCell({ fieldName: e3, rowIndex: t2, pageNum: n2 });
86
+ } }), (t2, n2) => (u(), l("div", null, [o(g) && "form" === o(g) && C.value ? (u(), a(i, { key: 0, ref_key: "gridRef", ref: m, pageContext: e2.pageContext, configure: d.value, onSetSafeDeleteTableCode: x }, null, 8, ["pageContext", "configure"])) : o(g) && "form" === o(g) ? r("", true) : (u(), a(c, { key: 1, ref_key: "gridRef", ref: m, pageContext: e2.pageContext, configure: d.value, onSetSafeDeleteTableCode: x }, null, 8, ["pageContext", "configure"]))]));
87
+ } });
88
+ export {
89
+ f as default
90
+ };
@@ -0,0 +1,7 @@
1
+ import e from "./tree-runtime2.vue.js";
2
+ /* empty css */
3
+ import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const t = r(e, [["__scopeId", "data-v-60cfad06"]]);
5
+ export {
6
+ t as default
7
+ };
@@ -0,0 +1,135 @@
1
+ import { defineComponent as e, ref as a, computed as t, onMounted as n, nextTick as l, watch as u, resolveComponent as o, openBlock as s, createElementBlock as d, normalizeClass as i, unref as r, createBlock as c, createCommentVNode as p, normalizeStyle as v, withCtx as g, createVNode as f, createElementVNode as m, createTextVNode as h, toDisplayString as y, Fragment as C, withDirectives as x, renderList as k, vShow as N } from "vue";
2
+ import M from "../../../../../../assets/folder.png.js";
3
+ import I from "../../../../../../assets/file.png.js";
4
+ import { getFormModelFields as T } from "../../../../utils/page-init-util.js";
5
+ import { setVariableValue as P, getVariableValue as R } from "../../../../utils/page-helper-util.js";
6
+ import { getMenuTreeData as V, createTreeNode as b, updateTreeNode as L, deleteNode as w } from "../../../../utils/tree-utils.js";
7
+ import { handleAfterInitEvent as E, handleFormEvent as K } from "../../../../utils/events/event-util.js";
8
+ import { ElMessageBox as S, ElMessage as _ } from "element-plus";
9
+ import { checkPermission as j } from "agilebuilder-ui/src/utils/permission";
10
+ import { $t as D } from "../../../../utils/i18n-util.js";
11
+ const W = { key: 0, class: "custom-tree-node" }, z = ["title"], B = { key: 0, class: "item-row" }, H = { class: "item-side" }, O = { key: 1, class: "item-side", style: { display: "flex", "align-items": "center" } }, U = ["onClick"], $ = e({ __name: "tree-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: $2 }) {
12
+ var _a, _b, _c;
13
+ const A = a(), F = a(false), X = e2, Y = X.pageContext.entity ? X.pageContext.entity : {}, q = a([]);
14
+ ((_a = X.configure.props) == null ? void 0 : _a.contextMenus) && (X.pageContext && X.configure && !X.pageContext.isTest ? X.configure.props.contextMenus.forEach((e3) => {
15
+ if (e3.functionCodes && e3.functionCodes.length > 0) for (let a2 = 0; a2 < e3.functionCodes.length; a2++) {
16
+ const t2 = e3.functionCodes[a2];
17
+ if (j(t2, X.pageContext.systemCode)) return void q.value.push(e3);
18
+ }
19
+ else q.value.push(e3);
20
+ }) : q.value = X.configure.props.contextMenus);
21
+ let G = T(X.pageContext, X.configure);
22
+ const J = t({ get: () => R(Y, G), set(e3) {
23
+ P(Y, G, e3);
24
+ } }), Q = a(!!((_c = (_b = X.configure.props) == null ? void 0 : _b.base) == null ? void 0 : _c.lazy)), Z = X.configure.runtime ? X.configure.runtime : {}, ee = Z.style, ae = Z.class, te = a(), ne = a(Z.props ? Z.props : {}), le = a({ id: "nodeId", label: "name", children: "children", isLeaf: "leaf", disabled: "disabled", nodeType: "nodeType", iconType: "iconType", iconValue: "iconValue" }), ue = a(false), oe = a([]), se = a(null), de = a(""), ie = a(false), re = a(""), ce = a(""), pe = a("");
25
+ n(() => {
26
+ l(() => {
27
+ const e3 = J.value;
28
+ E(e3, X.pageContext, X.configure, { componentRef: te.value, value: e3, entity: X.pageContext.entity.data, pageData: X.pageContext.entity.page });
29
+ });
30
+ }), Q.value ? ue.value = true : V(X.pageContext, X.configure).then((e3) => {
31
+ oe.value = e3, ue.value = true;
32
+ }), u(de, (e3) => {
33
+ ie.value = true, te.value.filter(e3);
34
+ });
35
+ const ve = (e3, a2) => !e3 || a2.name.includes(e3);
36
+ function ge(e3, a2, t2) {
37
+ se.value = a2, K(null, X.pageContext, X.configure, "node-click", { data: e3, node: a2, nodeTree: t2 });
38
+ }
39
+ function fe(e3, a2) {
40
+ let t2 = "0";
41
+ t2 = 0 === e3.level ? "0" : e3.data.nodeId, function(e4, a3, t3) {
42
+ const n2 = { parentNodeId: e4, data: a3.data, searchValue: de, isSearch: ie.value };
43
+ V(X.pageContext, X.configure, e4, a3, n2).then((n3) => {
44
+ if (ie.value = false, t3(n3), "0" === e4) {
45
+ !function(e5, a4) {
46
+ const t4 = { parentNodeId: e5, data: a4.data, searchValue: de, isSearch: ie.value };
47
+ V(X.pageContext, X.configure, e5, a4, t4).then((a5) => {
48
+ ie.value = false, te.value.updateKeyChildren(e5, a5), te.value.store.nodesMap[e5] && (te.value.store.nodesMap[e5].expanded = true);
49
+ });
50
+ }(n3[0].nodeId, a3);
51
+ }
52
+ });
53
+ }(t2, e3, a2);
54
+ }
55
+ const me = a({}), he = (e3, a2, t2, n2) => {
56
+ if (re.value) return void _.warning(D("superPageRuntimeMessage.pleaseSaveCurrentNodeFirst"));
57
+ document.removeEventListener("click", ye), me.value = t2, F.value = true;
58
+ const { clientX: l2, clientY: u2 } = e3, o2 = A.value;
59
+ if (o2) {
60
+ const { innerWidth: e4, innerHeight: a3 } = window, { offsetWidth: t3, offsetHeight: n3 } = o2, s2 = l2 + t3 > e4 ? l2 - t3 : l2, d2 = u2 + n3 > a3 ? u2 - n3 : u2;
61
+ o2.style.left = `${s2}px`, o2.style.top = `${d2}px`, o2.style.display = "block";
62
+ }
63
+ document.addEventListener("click", ye);
64
+ }, ye = () => {
65
+ F.value = false, document.removeEventListener("click", ye);
66
+ }, Ce = (e3, a2) => {
67
+ if (e3.parent && e3.parent.level > 0) {
68
+ const t2 = e3.parent.data.children.findIndex((a3) => a3.nodeId === e3.data.nodeId);
69
+ e3.parent.data.children[t2] = a2, e3.data = a2;
70
+ } else {
71
+ const t2 = e3.parent.data.findIndex((a3) => a3.nodeId === e3.data.nodeId);
72
+ e3.parent.data[t2] = a2, e3.data = a2;
73
+ }
74
+ }, xe = () => {
75
+ re.value = "", pe.value = "", ce.value = "";
76
+ }, ke = () => ({ nodeId: "primary" + (/* @__PURE__ */ new Date()).getTime(), name: D("superPageRuntimeMessage.addNode"), disabled: false, iconType: "custom", isLeaf: true });
77
+ function Ne(e3) {
78
+ e3.tipMessage ? S.confirm(e3.tipMessage, { confirmButtonText: D("superPageRuntimeMessage.sure"), cancelButtonText: D("superPageRuntimeMessage.cancel"), type: "error" }).then(() => {
79
+ w(me.value, X.configure, X.pageContext).then(() => {
80
+ _.success(D("superPageRuntimeMessage.successfulDelete")), Me(), me.value = null;
81
+ });
82
+ }).catch(() => {
83
+ me.value = null;
84
+ }) : w(me.value, X.configure, X.pageContext).then(() => {
85
+ _.success(D("superPageRuntimeMessage.successfulDelete")), Me(), me.value = null;
86
+ });
87
+ }
88
+ const Me = () => {
89
+ const e3 = me.value.parent;
90
+ te.value.remove(me.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 !== me.value.data.nodeId));
91
+ };
92
+ return $2({ getSelectNode: function() {
93
+ return se.value;
94
+ }, expandNode: function(e3) {
95
+ e3.loaded = false, e3.expand();
96
+ }, loadTreeNodes: function() {
97
+ V(X.pageContext, X.configure).then((e3) => {
98
+ ie.value = false, oe.value = e3;
99
+ });
100
+ }, getNode: function(e3) {
101
+ te.value.getNode(e3);
102
+ }, getCheckedNodes: (e3, a2) => te.value.getCheckedNodes(e3, a2), setCheckedNodes: (e3) => {
103
+ te.value.setCheckedNodes(e3);
104
+ }, getCheckedKeys: (e3) => te.value.getCheckedKeysleafOnly(), setCheckedKeys: (e3, a2) => {
105
+ te.value.setCheckedKeys(e3, a2);
106
+ }, setChecked: (e3, a2, t2) => {
107
+ te.value.setChecked(e3, a2, t2);
108
+ }, getCurrentKey: () => te.value.getCurrentKey(), getCurrentNode: () => te.value.getCurrentNode(), setCurrentKey: (e3, a2 = true) => te.value.setCurrentKey(e3, a2), setCurrentNode: (e3, a2 = true) => te.value.setCurrentNode(e3, a2) }), (a2, t2) => {
109
+ var _a2;
110
+ const n2 = o("el-input"), l2 = o("el-button"), u2 = o("SuperIcon"), T2 = o("el-tree");
111
+ return s(), d("div", { class: i(["amb-tree-runtime-main", r(ae)]) }, [ne.value.filter ? (s(), c(n2, { key: 0, modelValue: de.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => de.value = e3), style: { width: "100%" }, placeholder: r(D)("superPageRuntimeMessage.pleaseInputSearchCondition") }, null, 8, ["modelValue", "placeholder"])) : p("", true), ue.value ? (s(), c(T2, { key: 1, ref_key: "menuTreeRef", ref: te, style: v(r(ee)), load: fe, data: oe.value, "node-key": "nodeId", props: le.value, "default-expand-all": ne.value.defaultExpandAll, "expand-on-click-node": ne.value.expandOnClickNode, indent: ne.value.retractWidth ? ne.value.retractWidth : 18, accordion: ne.value.accordion, "show-checkbox": !!ne.value.showCheckbox, "highlight-current": "", lazy: Q.value, "filter-node-method": ve, onNodeClick: ge, onNodeContextmenu: he }, { default: g(({ node: a3, data: o2 }) => [o2.nodeId === re.value ? (s(), d("div", W, [f(n2, { modelValue: pe.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => pe.value = e3), size: "small" }, null, 8, ["modelValue"]), m("div", null, [f(l2, { type: "primary", link: "", onClick: (e3) => ((e4) => {
112
+ "" !== pe.value ? (e4.data.name = pe.value, ce.value && e4.data.nodeId === ce.value ? b(e4, X.configure, X.pageContext).then((a4) => {
113
+ Ce(e4, a4.currentNode), xe(), _.success(D("superPageRuntimeMessage.successfulSave"));
114
+ }) : L(e4, X.configure, X.pageContext).then((a4) => {
115
+ Ce(e4, a4.currentNode), xe(), _.success(D("superPageRuntimeMessage.successfulSave"));
116
+ })) : _.warning(D("superPageRuntimeMessage.pleaseInputNodeName"));
117
+ })(a3) }, { default: g(() => [h(y(r(D)("superPageRuntimeMessage.save")), 1)]), _: 1 }, 8, ["onClick"]), f(l2, { style: { "margin-left": "4px" }, type: "primary", link: "", onClick: (t3) => ((e3) => {
118
+ ce.value && e3.data.nodeId === ce.value && te.value.remove(e3), xe();
119
+ })(a3, e2.configure, e2.pageContext) }, { default: g(() => [h(y(r(D)("superPageRuntimeMessage.undo")), 1)]), _: 1 }, 8, ["onClick"])])])) : (s(), d("span", { key: 1, title: a3.label, class: "ellipsis" }, [o2.iconValue ? (s(), c(u2, { key: 0, iconType: o2.iconType, iconValue: o2.iconValue }, null, 8, ["iconType", "iconValue"])) : ne.value.iconValue ? (s(), c(u2, { key: 1, iconType: ne.value.iconType, iconValue: ne.value.iconValue }, null, 8, ["iconType", "iconValue"])) : (s(), d(C, { key: 2 }, [o2.isLeaf ? (s(), d("div", O, [t2[3] || (t2[3] = m("img", { src: I, class: "file" }, null, -1)), m("span", null, y(o2.name), 1)])) : (s(), d("div", B, [m("div", H, [t2[2] || (t2[2] = m("img", { src: M, class: "file" }, null, -1)), m("span", null, y(o2.name), 1)])]))], 64))], 8, z))]), _: 1 }, 8, ["style", "data", "props", "default-expand-all", "expand-on-click-node", "indent", "accordion", "show-checkbox", "lazy"])) : p("", true), x(m("div", null, [m("ul", { ref_key: "contxtMenuRef", ref: A, class: "context-menu" }, [(s(true), d(C, null, k(q.value, (e3, a3) => (s(), d("li", { key: a3, tabindex: "-1", class: "menu__item", onClick: (a4) => ((e4) => {
120
+ if (me.value && "standard" === e4.type && e4.standardEvent) if ("edit" === e4.standardEvent) re.value = me.value.data.nodeId, pe.value = me.value.data.name;
121
+ else if ("delete" === e4.standardEvent) me.value.childNodes && me.value.childNodes.length > 0 && e4.deleteParentNodeTip ? (e4.deleteParentNodeTipMessage || (e4.deleteParentNodeTipMessage = D("superPageRuntimeMessage.confirmDeleteNodeWithChildren")), S.confirm(e4.deleteParentNodeTipMessage, { confirmButtonText: D("superPageRuntimeMessage.sure"), cancelButtonText: D("superPageRuntimeMessage.cancel"), type: "error" }).then(() => {
122
+ Ne(e4);
123
+ }).catch(() => {
124
+ me.value = null;
125
+ })) : Ne(e4);
126
+ else {
127
+ const a5 = ke();
128
+ re.value = a5.nodeId, ce.value = a5.nodeId, pe.value = a5.name, "addSiblingNode" === e4.standardEvent ? (a5.isLeaf = me.value.data.isLeaf, me.value.parent && me.value.parent.level > 0 ? te.value.append(a5, me.value.parent) : oe.value.push(a5)) : "addChildNode" === e4.standardEvent && (a5.isLeaf = true, me.value.data.isLeaf = false, te.value.append(a5, me.value), te.value.setCurrentKey(a5.nodeId, true));
129
+ }
130
+ })(e3) }, [m("span", null, y(e3.name), 1)], 8, U))), 128))], 512)], 512), [[N, F.value && ((_a2 = q.value) == null ? void 0 : _a2.length) > 0]])], 2);
131
+ };
132
+ } });
133
+ export {
134
+ $ as default
135
+ };
@@ -0,0 +1,5 @@
1
+ import { defineComponent as e, openBlock as t, createElementBlock 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) => (t(), r("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-runtime2.vue.js";
2
+ export {
3
+ e as default
4
+ };