super-page-runtime 2.3.22-tmp2 → 2.3.22-tmp3

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 (385) hide show
  1. package/dist/es/_virtual/_plugin-vue_export-helper.mjs +4 -4
  2. package/dist/es/components/runtime/utils/ai-chat-util.mjs +12 -12
  3. package/dist/es/components/runtime/utils/anchor-util.mjs +49 -49
  4. package/dist/es/components/runtime/utils/api/page-expose-util.mjs +142 -147
  5. package/dist/es/components/runtime/utils/assemblys-config.mjs +12 -13
  6. package/dist/es/components/runtime/utils/barcode-util.mjs +9 -9
  7. package/dist/es/components/runtime/utils/charts/chart-columnline-util.mjs +122 -121
  8. package/dist/es/components/runtime/utils/charts/chart-gauge-util.mjs +32 -32
  9. package/dist/es/components/runtime/utils/charts/chart-pie-util.mjs +71 -70
  10. package/dist/es/components/runtime/utils/charts/chart-radar-util.mjs +48 -48
  11. package/dist/es/components/runtime/utils/charts/chart-scatter-util.mjs +38 -38
  12. package/dist/es/components/runtime/utils/charts/chart-util.mjs +220 -223
  13. package/dist/es/components/runtime/utils/common-util.mjs +91 -94
  14. package/dist/es/components/runtime/utils/eventBus.mjs +3 -3
  15. package/dist/es/components/runtime/utils/events/event-util.mjs +341 -356
  16. package/dist/es/components/runtime/utils/events/print-label.mjs +75 -75
  17. package/dist/es/components/runtime/utils/events/standard-event.mjs +957 -1012
  18. package/dist/es/components/runtime/utils/events/validator-util.mjs +251 -269
  19. package/dist/es/components/runtime/utils/form/date-shortcuts.mjs +26 -26
  20. package/dist/es/components/runtime/utils/form/scan-util.mjs +51 -56
  21. package/dist/es/components/runtime/utils/global-refs.mjs +52 -53
  22. package/dist/es/components/runtime/utils/i18n-util.mjs +11 -11
  23. package/dist/es/components/runtime/utils/interfaces/page-design-types.mjs +2 -2
  24. package/dist/es/components/runtime/utils/page-helper-util.mjs +246 -255
  25. package/dist/es/components/runtime/utils/page-init-util.mjs +204 -222
  26. package/dist/es/components/runtime/utils/page-permission-util.mjs +20 -21
  27. package/dist/es/components/runtime/utils/page-store.mjs +38 -38
  28. package/dist/es/components/runtime/utils/store-util.mjs +9 -9
  29. package/dist/es/components/runtime/utils/table-utils.mjs +69 -74
  30. package/dist/es/components/runtime/utils/tree-utils.mjs +43 -53
  31. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.mjs +2 -2
  32. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.mjs +22 -22
  33. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.mjs +4 -4
  34. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.mjs +16 -16
  35. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.mjs +2 -2
  36. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.mjs +32 -32
  37. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.mjs +2 -2
  38. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.mjs +4 -4
  39. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.mjs +2 -2
  40. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.mjs +15 -16
  41. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.mjs +4 -4
  42. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.mjs +44 -44
  43. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.mjs +10 -10
  44. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.mjs +2 -2
  45. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.mjs +9 -9
  46. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.mjs +2 -2
  47. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.mjs +46 -47
  48. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.mjs +2 -2
  49. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.mjs +4 -4
  50. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.mjs +39 -46
  51. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.mjs +4 -4
  52. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.mjs +28 -28
  53. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.mjs +4 -4
  54. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.mjs +37 -37
  55. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.mjs +4 -4
  56. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.mjs +28 -28
  57. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.mjs +4 -4
  58. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.mjs +28 -28
  59. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.mjs +220 -231
  60. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.mjs +4 -4
  61. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.mjs +2 -2
  62. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.mjs +7 -7
  63. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.mjs +2 -2
  64. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.mjs +24 -33
  65. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.mjs +2 -2
  66. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.mjs +10 -10
  67. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.mjs +2 -2
  68. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.mjs +2 -2
  69. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.mjs +208 -215
  70. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.mjs +14 -14
  71. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue2.mjs +2 -2
  72. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.mjs +28 -29
  73. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.mjs +2 -2
  74. package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.mjs +24 -26
  75. package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue2.mjs +2 -2
  76. package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.mjs +13 -22
  77. package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue2.mjs +2 -2
  78. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.mjs +13 -12
  79. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.mjs +2 -2
  80. package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.mjs +16 -17
  81. package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue2.mjs +2 -2
  82. package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.mjs +14 -13
  83. package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue2.mjs +2 -2
  84. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.mjs +23 -23
  85. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue2.mjs +2 -2
  86. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.mjs +13 -13
  87. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.mjs +2 -2
  88. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.mjs +4 -4
  89. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.mjs +24 -24
  90. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.mjs +2 -2
  91. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.mjs +15 -16
  92. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.mjs +2 -2
  93. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.mjs +12 -13
  94. package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.mjs +4 -4
  95. package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue2.mjs +21 -21
  96. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.mjs +4 -4
  97. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.mjs +58 -58
  98. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.mjs +2 -2
  99. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.mjs +18 -18
  100. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.mjs +2 -2
  101. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.mjs +15 -15
  102. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.mjs +2 -2
  103. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.mjs +9 -10
  104. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.mjs +3 -3
  105. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.mjs +79 -79
  106. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.mjs +2 -2
  107. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.mjs +39 -40
  108. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.mjs +2 -2
  109. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.mjs +55 -55
  110. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.mjs +289 -309
  111. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.mjs +2 -2
  112. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.mjs +254 -261
  113. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.mjs +2 -2
  114. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.mjs +2 -2
  115. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.mjs +64 -66
  116. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.mjs +4 -4
  117. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.mjs +109 -111
  118. package/dist/es/components/runtime/views/assemblys/error-render.vue.mjs +3 -3
  119. package/dist/es/components/runtime/views/assemblys/error-render.vue2.mjs +2 -2
  120. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.mjs +2 -2
  121. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.mjs +49 -50
  122. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.mjs +31 -33
  123. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.mjs +2 -2
  124. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.mjs +2 -2
  125. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.mjs +56 -56
  126. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.mjs +2 -2
  127. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.mjs +80 -80
  128. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.mjs +2 -2
  129. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.mjs +45 -45
  130. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.mjs +2 -2
  131. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.mjs +19 -19
  132. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.mjs +2 -2
  133. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.mjs +60 -60
  134. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.mjs +2 -2
  135. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.mjs +23 -23
  136. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.mjs +2 -2
  137. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.mjs +67 -68
  138. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.mjs +4 -4
  139. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.mjs +32 -33
  140. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.mjs +2 -2
  141. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.mjs +25 -25
  142. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.mjs +3 -3
  143. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.mjs +11 -11
  144. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.mjs +2 -2
  145. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.mjs +64 -64
  146. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.mjs +4 -4
  147. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.mjs +154 -158
  148. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.mjs +2 -2
  149. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.mjs +105 -111
  150. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.mjs +2 -2
  151. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.mjs +12 -12
  152. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.mjs +2 -2
  153. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.mjs +30 -30
  154. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.mjs +2 -2
  155. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.mjs +36 -37
  156. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.mjs +2 -2
  157. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.mjs +23 -23
  158. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.mjs +62 -73
  159. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.mjs +2 -2
  160. package/dist/es/components/runtime/views/assemblys/object-render.vue.mjs +113 -124
  161. package/dist/es/components/runtime/views/assemblys/object-render.vue2.mjs +2 -2
  162. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.mjs +4 -4
  163. package/dist/es/components/runtime/views/assemblys/page-bottom.vue2.mjs +2 -2
  164. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.mjs +2 -2
  165. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.mjs +21 -21
  166. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.mjs +3 -3
  167. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.mjs +19 -19
  168. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.mjs +3 -3
  169. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.mjs +29 -29
  170. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.mjs +2 -2
  171. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.mjs +16 -16
  172. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.mjs +2 -2
  173. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.mjs +18 -18
  174. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.mjs +2 -2
  175. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.mjs +20 -21
  176. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.mjs +2 -2
  177. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.mjs +15 -15
  178. package/dist/es/components/runtime/views/home-chart.vue.mjs +38 -39
  179. package/dist/es/components/runtime/views/home-chart.vue2.mjs +2 -2
  180. package/dist/es/components/runtime/views/super-page-dialog.vue.mjs +18 -18
  181. package/dist/es/components/runtime/views/super-page-dialog.vue3.mjs +2 -2
  182. package/dist/es/components/runtime/views/super-page.vue.mjs +4 -4
  183. package/dist/es/components/runtime/views/super-page.vue2.mjs +234 -237
  184. package/dist/es/index.mjs +27 -27
  185. package/dist/es/style.css +1 -996
  186. package/dist/lib/_virtual/_plugin-vue_export-helper.cjs +1 -6
  187. package/dist/lib/assets/chart-themes/bar-theme.cjs +1 -2
  188. package/dist/lib/assets/chart-themes/gauge-theme.cjs +1 -2
  189. package/dist/lib/assets/chart-themes/pie-theme.cjs +1 -2
  190. package/dist/lib/assets/chart-themes/radar-theme.cjs +1 -2
  191. package/dist/lib/assets/chart-themes/scatter-theme.cjs +1 -2
  192. package/dist/lib/assets/file.png.cjs +1 -2
  193. package/dist/lib/assets/folder.png.cjs +1 -2
  194. package/dist/lib/components/runtime/utils/ai-chat-util.cjs +1 -13
  195. package/dist/lib/components/runtime/utils/anchor-util.cjs +1 -62
  196. package/dist/lib/components/runtime/utils/api/page-expose-util.cjs +1 -169
  197. package/dist/lib/components/runtime/utils/assemblys-config.cjs +1 -16
  198. package/dist/lib/components/runtime/utils/barcode-util.cjs +1 -10
  199. package/dist/lib/components/runtime/utils/charts/chart-columnline-util.cjs +2 -137
  200. package/dist/lib/components/runtime/utils/charts/chart-gauge-util.cjs +1 -34
  201. package/dist/lib/components/runtime/utils/charts/chart-pie-util.cjs +2 -78
  202. package/dist/lib/components/runtime/utils/charts/chart-radar-util.cjs +1 -52
  203. package/dist/lib/components/runtime/utils/charts/chart-scatter-util.cjs +1 -43
  204. package/dist/lib/components/runtime/utils/charts/chart-util.cjs +1 -244
  205. package/dist/lib/components/runtime/utils/common-util.cjs +1 -91
  206. package/dist/lib/components/runtime/utils/eventBus.cjs +1 -3
  207. package/dist/lib/components/runtime/utils/events/event-util.cjs +1 -345
  208. package/dist/lib/components/runtime/utils/events/print-label.cjs +1 -97
  209. package/dist/lib/components/runtime/utils/events/standard-event.cjs +1 -1101
  210. package/dist/lib/components/runtime/utils/events/validator-util.cjs +1 -296
  211. package/dist/lib/components/runtime/utils/form/date-shortcuts.cjs +1 -34
  212. package/dist/lib/components/runtime/utils/form/scan-util.cjs +1 -90
  213. package/dist/lib/components/runtime/utils/global-refs.cjs +1 -42
  214. package/dist/lib/components/runtime/utils/i18n-util.cjs +1 -11
  215. package/dist/lib/components/runtime/utils/interfaces/page-design-types.cjs +1 -4
  216. package/dist/lib/components/runtime/utils/page-helper-util.cjs +1 -354
  217. package/dist/lib/components/runtime/utils/page-init-util.cjs +1 -244
  218. package/dist/lib/components/runtime/utils/page-permission-util.cjs +1 -26
  219. package/dist/lib/components/runtime/utils/page-store.cjs +1 -50
  220. package/dist/lib/components/runtime/utils/store-util.cjs +1 -11
  221. package/dist/lib/components/runtime/utils/store.cjs +1 -3
  222. package/dist/lib/components/runtime/utils/table-utils.cjs +1 -68
  223. package/dist/lib/components/runtime/utils/tree-utils.cjs +1 -54
  224. package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.cjs +1 -3
  225. package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.cjs +1 -24
  226. package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.cjs +1 -5
  227. package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.cjs +1 -17
  228. package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.cjs +1 -3
  229. package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.cjs +1 -35
  230. package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.cjs +1 -3
  231. package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.cjs +1 -3
  232. package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.cjs +1 -3
  233. package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.cjs +1 -17
  234. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.cjs +1 -5
  235. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.cjs +1 -41
  236. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.cjs +1 -11
  237. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.cjs +1 -3
  238. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.cjs +1 -11
  239. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.cjs +1 -3
  240. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.cjs +1 -53
  241. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.cjs +1 -3
  242. package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.cjs +1 -5
  243. package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.cjs +1 -48
  244. package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.cjs +1 -5
  245. package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.cjs +1 -24
  246. package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.cjs +1 -5
  247. package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.cjs +1 -34
  248. package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.cjs +1 -5
  249. package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.cjs +1 -24
  250. package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.cjs +1 -5
  251. package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.cjs +1 -24
  252. package/dist/lib/components/runtime/views/assemblys/chart/table/chart-table-util.cjs +1 -402
  253. package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue.cjs +1 -3
  254. package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue2.cjs +1 -3
  255. package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue.cjs +1 -6
  256. package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue2.cjs +1 -3
  257. package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue.cjs +1 -36
  258. package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue2.cjs +1 -3
  259. package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue.cjs +1 -13
  260. package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue2.cjs +1 -3
  261. package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue.cjs +1 -3
  262. package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue2.cjs +1 -249
  263. package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue.cjs +1 -16
  264. package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue2.cjs +1 -3
  265. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.cjs +1 -32
  266. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.cjs +1 -3
  267. package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue.cjs +1 -32
  268. package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue2.cjs +1 -3
  269. package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.cjs +1 -19
  270. package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue2.cjs +1 -3
  271. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.cjs +1 -12
  272. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.cjs +1 -3
  273. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue.cjs +1 -21
  274. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue2.cjs +1 -3
  275. package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.cjs +1 -13
  276. package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue2.cjs +1 -3
  277. package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.cjs +1 -30
  278. package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue2.cjs +1 -3
  279. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.cjs +1 -15
  280. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.cjs +1 -3
  281. package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.cjs +1 -5
  282. package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.cjs +1 -21
  283. package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.cjs +1 -3
  284. package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.cjs +1 -17
  285. package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.cjs +1 -3
  286. package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.cjs +1 -15
  287. package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue.cjs +1 -5
  288. package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue2.cjs +1 -27
  289. package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue.cjs +1 -5
  290. package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.cjs +1 -79
  291. package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.cjs +1 -3
  292. package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.cjs +1 -20
  293. package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.cjs +1 -3
  294. package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.cjs +1 -15
  295. package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.cjs +1 -3
  296. package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.cjs +1 -12
  297. package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.cjs +1 -5
  298. package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.cjs +1 -88
  299. package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.cjs +1 -5
  300. package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.cjs +1 -43
  301. package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.cjs +1 -3
  302. package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.cjs +1 -59
  303. package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.cjs +1 -382
  304. package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.cjs +1 -3
  305. package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.cjs +1 -322
  306. package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.cjs +1 -3
  307. package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.cjs +1 -3
  308. package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.cjs +1 -81
  309. package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue.cjs +1 -5
  310. package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.cjs +1 -124
  311. package/dist/lib/components/runtime/views/assemblys/error-render.vue.cjs +1 -3
  312. package/dist/lib/components/runtime/views/assemblys/error-render.vue2.cjs +1 -3
  313. package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.cjs +1 -3
  314. package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.cjs +1 -57
  315. package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue.cjs +1 -35
  316. package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.cjs +1 -3
  317. package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime.vue.cjs +1 -3
  318. package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.cjs +1 -57
  319. package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.cjs +1 -3
  320. package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.cjs +1 -91
  321. package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.cjs +1 -3
  322. package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.cjs +1 -47
  323. package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.cjs +1 -3
  324. package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.cjs +1 -20
  325. package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.cjs +1 -3
  326. package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.cjs +1 -65
  327. package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.cjs +1 -3
  328. package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.cjs +1 -20
  329. package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.cjs +1 -3
  330. package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.cjs +1 -70
  331. package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.cjs +1 -5
  332. package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.cjs +1 -31
  333. package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.cjs +1 -3
  334. package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.cjs +1 -26
  335. package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.cjs +1 -5
  336. package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.cjs +1 -13
  337. package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.cjs +1 -3
  338. package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.cjs +1 -75
  339. package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.cjs +1 -5
  340. package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.cjs +1 -188
  341. package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.cjs +1 -3
  342. package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.cjs +1 -130
  343. package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.cjs +1 -3
  344. package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.cjs +1 -11
  345. package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.cjs +1 -3
  346. package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.cjs +1 -29
  347. package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.cjs +1 -3
  348. package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.cjs +1 -38
  349. package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.cjs +1 -3
  350. package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.cjs +1 -20
  351. package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue.cjs +1 -73
  352. package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue2.cjs +1 -3
  353. package/dist/lib/components/runtime/views/assemblys/object-render.vue.cjs +1 -132
  354. package/dist/lib/components/runtime/views/assemblys/object-render.vue2.cjs +1 -3
  355. package/dist/lib/components/runtime/views/assemblys/page-bottom.vue.cjs +1 -3
  356. package/dist/lib/components/runtime/views/assemblys/page-bottom.vue2.cjs +1 -3
  357. package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.cjs +1 -5
  358. package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.cjs +1 -23
  359. package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.cjs +1 -5
  360. package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.cjs +1 -23
  361. package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.cjs +1 -5
  362. package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.cjs +1 -34
  363. package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.cjs +1 -3
  364. package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.cjs +1 -17
  365. package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.cjs +1 -3
  366. package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.cjs +1 -20
  367. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.cjs +1 -5
  368. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.cjs +1 -19
  369. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.cjs +1 -3
  370. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.cjs +1 -14
  371. package/dist/lib/components/runtime/views/home-chart.vue.cjs +1 -38
  372. package/dist/lib/components/runtime/views/home-chart.vue2.cjs +1 -3
  373. package/dist/lib/components/runtime/views/super-page-dialog.vue.cjs +1 -23
  374. package/dist/lib/components/runtime/views/super-page-dialog.vue3.cjs +1 -3
  375. package/dist/lib/components/runtime/views/super-page.vue.cjs +1 -5
  376. package/dist/lib/components/runtime/views/super-page.vue2.cjs +1 -264
  377. package/dist/lib/i18n/langs/cn.cjs +1 -2
  378. package/dist/lib/i18n/langs/en.cjs +1 -2
  379. package/dist/lib/index.cjs +1 -6
  380. package/dist/lib/style.css +1 -996
  381. package/dist/umd/index.full.min.js +3 -7429
  382. package/dist/umd/style.css +1 -996
  383. package/package.json +77 -76
  384. package/dist/es/components/runtime/utils/api/api-util.mjs +0 -4
  385. package/dist/lib/components/runtime/utils/api/api-util.cjs +0 -3
@@ -1,82 +1,82 @@
1
- import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as n, onMounted as u, nextTick as a, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as f, normalizeClass as p, unref as c, withCtx as g, createVNode as v, createElementBlock as d, Fragment as m, renderList as h, createTextVNode as y, toDisplayString as b, createCommentVNode as C } from "vue";
2
- import { setVariableValue as x, getVariableValue as k, getOptionDatasFromPage as _, autoSetAfterSelect as S, queryOptionDatasources as R } from "../../../../utils/page-helper-util.mjs";
3
- import { getFormModelFields as j } from "../../../../utils/page-init-util.mjs";
4
- import { handleFormEvent as T, handleAfterInitEvent as I } from "../../../../utils/events/event-util.mjs";
5
- import { $t as q } from "../../../../utils/i18n-util.mjs";
6
- import { addRequiredClassUtil as V } from "../../../../utils/common-util.mjs";
7
- const w = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: w2 }) {
8
- const z = e2, O = t(null), D = z.pageContext.entity ? z.pageContext.entity : {};
9
- let E = j(z.pageContext, z.configure);
10
- const M = l({ get() {
11
- let e3 = k(D, E);
12
- return null != e3 && (e3 += ""), e3;
13
- }, set(e3) {
14
- x(D, E, e3), null != e3 && (O.value = "");
15
- } }), P = z.configure.runtime ? z.configure.runtime : {}, W = P.style, F = P.class, U = P.headerStyle, $ = P.titleExceedStyle, A = t(P.props ? P.props : {}), B = t(A.value.options ? A.value.options : []), G = _(z.pageContext, z.configure);
16
- G.length > 0 && (B.value = G);
17
- const H = z.configure.props && z.configure.props.dataOrigin ? z.configure.props.dataOrigin : {}, J = H.optionValueSetType;
18
- let K = [];
19
- if (("dynamicData" == J || "dataTable" == J || "service" == J) && H.autoSets) for (let e3 of H.autoSets) e3.source && K.push(e3);
20
- z.configure && z.configure.props && z.configure.props.base && z.configure.props.base.optionProp && K.push({ source: "label", target: z.configure.props.base.optionProp }), A.value.changeMethod = function(e3) {
21
- if (K.length > 0) {
22
- let t2 = null;
23
- B.value && null != e3 && null != e3 && (t2 = B.value.filter((t3) => e3 === t3.value)), S(z.configure, z.pageContext, K, t2);
1
+ import { defineComponent as L, ref as i, computed as G, watch as H, onUnmounted as J, onMounted as K, nextTick as Q, resolveComponent as b, createBlock as I, openBlock as m, normalizeStyle as w, normalizeClass as X, unref as s, withCtx as v, createVNode as Y, createElementBlock as z, Fragment as Z, renderList as ee, createTextVNode as te, toDisplayString as D, createCommentVNode as ae } from "vue";
2
+ import { setVariableValue as le, getVariableValue as x, getOptionDatasFromPage as oe, autoSetAfterSelect as ne, queryOptionDatasources as ue } from "../../../../utils/page-helper-util.mjs";
3
+ import { getFormModelFields as re } from "../../../../utils/page-init-util.mjs";
4
+ import { handleFormEvent as E, handleAfterInitEvent as ie } from "../../../../utils/events/event-util.mjs";
5
+ import { $t as se } from "../../../../utils/i18n-util.mjs";
6
+ import { addRequiredClassUtil as ce } from "../../../../utils/common-util.mjs";
7
+ const Ce = L({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }, setup(O, { expose: M }) {
8
+ const t = O, p = i(null), c = t.pageContext.entity ? t.pageContext.entity : {};
9
+ let h = re(t.pageContext, t.configure);
10
+ const g = G({ get() {
11
+ let e = x(c, h);
12
+ return e != null && (e += ""), e;
13
+ }, set(e) {
14
+ le(c, h, e), e != null && (p.value = "");
15
+ } }), u = t.configure.runtime ? t.configure.runtime : {}, B = u.style, N = u.class, P = u.headerStyle, U = u.titleExceedStyle, l = i(u.props ? u.props : {}), n = i(l.value.options ? l.value.options : []), k = oe(t.pageContext, t.configure);
16
+ k.length > 0 && (n.value = k);
17
+ const C = t.configure.props && t.configure.props.dataOrigin ? t.configure.props.dataOrigin : {}, y = C.optionValueSetType;
18
+ let d = [];
19
+ if ((y == "dynamicData" || y == "dataTable" || y == "service") && C.autoSets) for (let e of C.autoSets) e.source && d.push(e);
20
+ t.configure && t.configure.props && t.configure.props.base && t.configure.props.base.optionProp && d.push({ source: "label", target: t.configure.props.base.optionProp }), l.value.changeMethod = function(e) {
21
+ if (d.length > 0) {
22
+ let a = null;
23
+ n.value && e != null && e != null && (a = n.value.filter((o) => e === o.value)), ne(t.configure, t.pageContext, d, a);
24
24
  }
25
- T(e3, z.pageContext, z.configure, "change");
25
+ E(e, t.pageContext, t.configure, "change");
26
26
  };
27
- const L = A.value.monitorFields, N = [];
28
- if (L) {
29
- const e3 = [];
30
- for (let t2 of L) if (t2.startsWith("${")) {
31
- t2 = t2.substring(2, t2.length - 1);
32
- const l2 = t2.split(".");
33
- "page" !== l2[0] && "task" !== l2[0] && "data" !== l2[0] || (N.push(l2), e3.includes(l2[0]) || e3.push(l2[0]));
27
+ const S = l.value.monitorFields, V = [];
28
+ if (S) {
29
+ const e = [];
30
+ for (let a of S) if (a.startsWith("${")) {
31
+ a = a.substring(2, a.length - 1);
32
+ const o = a.split(".");
33
+ o[0] !== "page" && o[0] !== "task" && o[0] !== "data" || (V.push(o), e.includes(o[0]) || e.push(o[0]));
34
34
  }
35
- for (let t2 of e3) o(D[t2], () => {
36
- ee();
35
+ for (let a of e) H(c[a], () => {
36
+ W();
37
37
  });
38
38
  }
39
- function Q() {
40
- let e3 = "";
41
- for (let t2 of N) e3 += "_" + k(D, t2);
42
- return e3;
39
+ function _() {
40
+ let e = "";
41
+ for (let a of V) e += "_" + x(c, a);
42
+ return e;
43
43
  }
44
- let X = Q(), Y = false;
45
- const Z = A.value.optionconfigInfo ? A.value.optionconfigInfo : {};
46
- function ee() {
47
- Y && clearTimeout(Y), Y = setTimeout(function() {
48
- const e3 = Q();
49
- e3 != X && (X = e3, R(z.pageContext, Z, void 0).then((e4) => {
44
+ let R = _(), f = !1;
45
+ const A = l.value.optionconfigInfo ? l.value.optionconfigInfo : {};
46
+ function W() {
47
+ f && clearTimeout(f), f = setTimeout(function() {
48
+ const e = _();
49
+ e != R && (R = e, ue(t.pageContext, A, void 0).then((a) => {
50
50
  }));
51
51
  }, 200);
52
52
  }
53
- n(() => {
54
- Y && clearTimeout(Y);
53
+ J(() => {
54
+ f && clearTimeout(f);
55
55
  });
56
- const te = t(null), le = t(null), oe = t(null);
57
- return u(() => {
58
- a(() => {
59
- const e3 = M.value;
60
- I(e3, z.pageContext, z.configure, { formItemRef: te.value, componentRef: le.value, titleRef: oe.value, value: e3, entity: z.pageContext.entity.data, pageData: z.pageContext.entity.page });
56
+ const T = i(null), q = i(null), F = i(null);
57
+ return K(() => {
58
+ Q(() => {
59
+ const e = g.value;
60
+ ie(e, t.pageContext, t.configure, { formItemRef: T.value, componentRef: q.value, titleRef: F.value, value: e, entity: t.pageContext.entity.data, pageData: t.pageContext.entity.page });
61
61
  });
62
- }), w2({ updateOptions: function(e3) {
63
- B.value = e3 || [];
62
+ }), M({ updateOptions: function(e) {
63
+ n.value = e || [];
64
64
  }, addRequiredClass: function() {
65
- O.value = V();
65
+ p.value = ce();
66
66
  }, getSelectItemsTitle: function() {
67
- let e3 = k(D, E);
68
- if (null == e3) return "";
69
- if (e3 = String(e3), null != e3 && "" !== e3 && e3.length > 0) {
70
- let t2 = "";
71
- return B.value.length > 0 ? (B.value.forEach((l2) => {
72
- l2.value === e3 && (t2 = t2 + l2.label + ",");
73
- }), t2 = t2.slice(0, t2.length - 1)) : t2 = e3.join(","), t2;
67
+ let e = x(c, h);
68
+ if (e == null) return "";
69
+ if (e = String(e), e != null && e !== "" && e.length > 0) {
70
+ let a = "";
71
+ return n.value.length > 0 ? (n.value.forEach((o) => {
72
+ o.value === e && (a = a + o.label + ",");
73
+ }), a = a.slice(0, a.length - 1)) : a = e.join(","), a;
74
74
  }
75
- } }), (e3, t2) => {
76
- const l2 = i("el-radio"), o2 = i("el-radio-group"), n2 = i("el-form-item");
77
- return s(), r(n2, { ref_key: "formItemRef", ref: te, required: A.value.required, class: p(c(F) + (O.value ? " " + O.value : "")), "label-width": A.value.labelWidth, style: f(c(W)) }, { label: g(() => [A.value.tittleShow ? (s(), d("div", { key: 0, ref_key: "titleRef", ref: oe, style: f({ ...c(U), ...c($) }) }, b(c(q)(A.value.title)), 5)) : C("", true)]), default: g(() => [v(o2, { ref_key: "componentRef", ref: le, disabled: "disabled" === A.value.state, size: A.value.size, onChange: A.value.changeMethod, modelValue: M.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => M.value = e4) }, { default: g(() => [(s(true), d(m, null, h(B.value, (t3) => (s(), r(l2, { key: t3.value, label: t3.value, onClick: (l3) => c(T)(t3.value, e3.pageContext, e3.configure, "click", { values: M.value }) }, { default: g(() => [y(b(t3.label), 1)]), _: 2 }, 1032, ["label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
75
+ } }), (e, a) => {
76
+ const o = b("el-radio"), $ = b("el-radio-group"), j = b("el-form-item");
77
+ return m(), I(j, { ref_key: "formItemRef", ref: T, required: l.value.required, class: X(s(N) + (p.value ? " " + p.value : "")), "label-width": l.value.labelWidth, style: w(s(B)) }, { label: v(() => [l.value.tittleShow ? (m(), z("div", { key: 0, ref_key: "titleRef", ref: F, style: w({ ...s(P), ...s(U) }) }, D(s(se)(l.value.title)), 5)) : ae("", !0)]), default: v(() => [Y($, { ref_key: "componentRef", ref: q, disabled: l.value.state === "disabled", size: l.value.size, onChange: l.value.changeMethod, modelValue: g.value, "onUpdate:modelValue": a[0] || (a[0] = (r) => g.value = r) }, { default: v(() => [(m(!0), z(Z, null, ee(n.value, (r) => (m(), I(o, { key: r.value, label: r.value, onClick: (fe) => s(E)(r.value, e.pageContext, e.configure, "click", { values: g.value }) }, { default: v(() => [te(D(r.label), 1)]), _: 2 }, 1032, ["label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
78
78
  };
79
79
  } });
80
80
  export {
81
- w as default
81
+ Ce as default
82
82
  };
@@ -1,8 +1,8 @@
1
- import t from "./richtext-runtime.vue2.mjs";
1
+ import o from "./richtext-runtime.vue2.mjs";
2
2
  /* empty css */
3
3
  /* empty css */
4
- import e from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
5
- const r = e(t, [["__scopeId", "data-v-34d362f9"]]);
4
+ import t from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
5
+ const d = t(o, [["__scopeId", "data-v-34d362f9"]]);
6
6
  export {
7
- r as default
7
+ d as default
8
8
  };
@@ -1,197 +1,193 @@
1
- import { defineComponent as e, ref as t, watch as l, onMounted as n, nextTick as o, onBeforeUnmount as i, resolveComponent as a, createElementBlock as r, openBlock as u, Fragment as s, createVNode as c, createBlock as d, createCommentVNode as p, normalizeStyle as f, normalizeClass as m, unref as v, withCtx as g, createElementVNode as h, toDisplayString as b } from "vue";
2
- import { getFormModelFields as y } from "../../../../utils/page-init-util.mjs";
3
- import { getSizeConfig as x, formatVariableValue as k, getVariableValue as w, setVariableValue as C } from "../../../../utils/page-helper-util.mjs";
4
- import { handleAfterInitEvent as q, handleFormEvent as T } from "../../../../utils/events/event-util.mjs";
5
- import { http as S } from "agilebuilder-ui";
6
- import { $t as E } from "../../../../utils/i18n-util.mjs";
7
- import { getBaseUrl as A, addRequiredClassUtil as L } from "../../../../utils/common-util.mjs";
8
- import H from "quill";
9
- import "quill/dist/quill.snow.css";
10
- import { ElMessage as M } from "element-plus";
11
- const N = { class: "toolbar-right-btns" }, R = ["title"], _ = { class: "richtext-statusbar" }, j = { class: "word-count" }, V = { key: 0, class: "upload-loading" }, $ = ["innerHTML"], z = e({ __name: "richtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: z2 }) {
12
- const B = ["12px", "14px", "16px", "18px", "20px", "24px", "28px", "32px", "36px", "48px"], F = H.import("attributors/style/size");
13
- F.whitelist = B, H.register(F, true);
14
- const U = [false, "Source Han Sans CN", "SimSun", "SimHei", "Microsoft YaHei", "KaiTi", "FangSong", "Arial", "Times New Roman", "Verdana", "Georgia", "Courier New"], D = H.import("attributors/style/font");
15
- D.whitelist = U, H.register(D, true);
16
- const W = e2, P = t(""), G = W.pageContext.entity ? W.pageContext.entity : {}, I = y(W.pageContext, W.configure), K = W.configure.runtime ? W.configure.runtime : {}, O = K.style, Y = K.class, J = K.headerStyle, Q = K.titleExceedStyle, X = t(K.props ? K.props : {});
17
- let Z = x(W.pageContext, W.configure);
18
- Z && Z.fixHeight && (O.height || (O.height = Z.fixHeight + "px"));
19
- let ee = X.value.value;
20
- const te = k(W.pageContext, ee), le = t(null);
21
- let ne = null;
22
- const oe = t(false), ie = t(0), ae = t(false), re = t(false), ue = t("");
23
- let se = null, ce = X.value.state;
24
- function de(e3) {
25
- return "readonly" == e3 || "disabled" == e3;
1
+ import { defineComponent as we, ref as c, watch as Ee, onMounted as ne, nextTick as U, onBeforeUnmount as qe, resolveComponent as g, createElementBlock as $, openBlock as y, Fragment as Se, createVNode as x, createBlock as D, createCommentVNode as W, normalizeStyle as ae, normalizeClass as le, unref as E, withCtx as k, createElementVNode as p, toDisplayString as oe } from "vue";
2
+ import { getFormModelFields as Te } from "../../../../utils/page-init-util.mjs";
3
+ import { getSizeConfig as Ae, formatVariableValue as Le, setVariableValue as Ve, getVariableValue as He } from "../../../../utils/page-helper-util.mjs";
4
+ import { handleAfterInitEvent as Me, handleFormEvent as Ne } from "../../../../utils/events/event-util.mjs";
5
+ import { http as Be } from "agilebuilder-ui";
6
+ import { $t as Re } from "../../../../utils/i18n-util.mjs";
7
+ import { getBaseUrl as re, addRequiredClassUtil as Fe } from "../../../../utils/common-util.mjs";
8
+ import q from "quill";
9
+ import { ElMessage as _e } from "element-plus";
10
+ const ze = { class: "toolbar-right-btns" }, Ue = ["title"], $e = { class: "richtext-statusbar" }, De = { class: "word-count" }, We = { key: 0, class: "upload-loading" }, Ie = ["innerHTML"], Ze = we({ __name: "richtext-runtime", props: { pageContext: {}, configure: {} }, setup(ie, { expose: se }) {
11
+ const I = ["12px", "14px", "16px", "18px", "20px", "24px", "28px", "32px", "36px", "48px"], P = q.import("attributors/style/size");
12
+ P.whitelist = I, q.register(P, !0);
13
+ const G = [!1, "Source Han Sans CN", "SimSun", "SimHei", "Microsoft YaHei", "KaiTi", "FangSong", "Arial", "Times New Roman", "Verdana", "Georgia", "Courier New"], K = q.import("attributors/style/font");
14
+ K.whitelist = G, q.register(K, !0);
15
+ const o = ie, S = c(""), L = o.pageContext.entity ? o.pageContext.entity : {}, O = Te(o.pageContext, o.configure), v = o.configure.runtime ? o.configure.runtime : {}, V = v.style, ue = v.class, ce = v.headerStyle, de = v.titleExceedStyle, d = c(v.props ? v.props : {});
16
+ let H = Ae(o.pageContext, o.configure);
17
+ H && H.fixHeight && (V.height || (V.height = H.fixHeight + "px"));
18
+ let pe = d.value.value;
19
+ const fe = Le(o.pageContext, pe), f = c(null);
20
+ let n = null;
21
+ const m = c(!1), M = c(0), N = c(!1), B = c(!1), Y = c("");
22
+ let C = null, T = d.value.state;
23
+ function j(t) {
24
+ return t == "readonly" || t == "disabled";
26
25
  }
27
- const pe = de(ce), fe = t({ modules: { toolbar: [["bold", "italic", "underline", "strike"], ["blockquote", "code-block"], [{ list: "ordered" }, { list: "bullet" }], [{ script: "sub" }, { script: "super" }], [{ indent: "-1" }, { indent: "+1" }], [{ direction: "rtl" }], [{ size: B }], [{ header: [1, 2, 3, 4, 5, 6, false] }], [{ color: [] }, { background: [] }], [{ font: U }], [{ align: [] }], ["clean"], ["link", "image"]] }, theme: "snow", placeholder: pe ? "" : X.value.placeholder, readOnly: pe });
28
- function me() {
29
- if (!(ne == null ? void 0 : ne.container)) return;
30
- const e3 = ne.container.parentNode;
31
- if (!e3) return;
32
- const t2 = e3.getBoundingClientRect(), l2 = ne.container.getBoundingClientRect();
33
- let n2 = t2.height - (l2.top - t2.top);
34
- ne.container.style.height = Math.max(n2, 100) + "px";
26
+ const J = j(T), me = c({ modules: { toolbar: [["bold", "italic", "underline", "strike"], ["blockquote", "code-block"], [{ list: "ordered" }, { list: "bullet" }], [{ script: "sub" }, { script: "super" }], [{ indent: "-1" }, { indent: "+1" }], [{ direction: "rtl" }], [{ size: I }], [{ header: [1, 2, 3, 4, 5, 6, !1] }], [{ color: [] }, { background: [] }], [{ font: G }], [{ align: [] }], ["clean"], ["link", "image"]] }, theme: "snow", placeholder: J ? "" : d.value.placeholder, readOnly: J });
27
+ function Q() {
28
+ if (!(n != null && n.container)) return;
29
+ const t = n.container.parentNode;
30
+ if (!t) return;
31
+ const e = t.getBoundingClientRect(), i = n.container.getBoundingClientRect();
32
+ let a = e.height - (i.top - e.top);
33
+ n.container.style.height = Math.max(a, 100) + "px";
35
34
  }
36
- l(X.value, () => {
37
- const e3 = X.value.state;
38
- if (null != e3 && e3 !== ce) {
39
- ce = e3;
40
- const t2 = de(ce);
41
- ne && (ne.enable(!t2), ne.root.dataset.placeholder = t2 ? "" : X.value.placeholder);
35
+ Ee(d.value, () => {
36
+ const t = d.value.state;
37
+ if (t != null && t !== T) {
38
+ T = t;
39
+ const e = j(T);
40
+ n && (n.enable(!e), n.root.dataset.placeholder = e ? "" : d.value.placeholder);
42
41
  }
43
42
  });
44
- const ve = t([]), ge = t(false), he = t(null), be = t(null), ye = t(null);
45
- let xe = null;
46
- function ke(e3) {
47
- const t2 = e3.match(/serverPath=([^&"]+)/);
48
- return t2 ? t2[1] : "";
43
+ const R = c([]), F = c(!1), ge = c(null), ve = c(null), he = c(null);
44
+ let A = null;
45
+ function _(t) {
46
+ const e = t.match(/serverPath=([^&"]+)/);
47
+ return e ? e[1] : "";
49
48
  }
50
- function we(e3) {
51
- if (!ne) return;
52
- const t2 = function(e4) {
53
- let t3 = e4.replace(/<img data-uuid="(.*?)"/g, (e5, t4) => {
54
- const l3 = ke(t4), n2 = W.pageContext.backendUrl;
55
- return `<img src="${A(n2, W.pageContext.isTest)}/common/fs-upload/download?serverPath=${l3}&isShowWatermark=false" data-uuid="${l3}"`;
49
+ function X(t) {
50
+ if (!n) return;
51
+ const e = function(a) {
52
+ let l = a.replace(/<img data-uuid="(.*?)"/g, (u, r) => {
53
+ const s = _(r), w = o.pageContext.backendUrl;
54
+ return `<img src="${re(w, o.pageContext.isTest)}/common/fs-upload/download?serverPath=${s}&isShowWatermark=false" data-uuid="${s}"`;
56
55
  });
57
- return t3 = t3.replace(/\t/g, "    "), t3 = t3.replace(/ {2}/g, "  "), t3;
58
- }(e3), l2 = ne.clipboard.convertHTML(t2);
59
- ne.setContents(l2.ops), o(() => {
60
- if (!ne) return;
61
- ne.root.querySelectorAll("img").forEach((e4) => {
62
- if (!e4.getAttribute("data-uuid")) {
63
- const t3 = ke(e4.src);
64
- e4.setAttribute("data-uuid", t3);
56
+ return l = l.replace(/\t/g, "    "), l = l.replace(/ {2}/g, "  "), l;
57
+ }(t), i = n.clipboard.convertHTML(e);
58
+ n.setContents(i.ops), U(() => {
59
+ n && n.root.querySelectorAll("img").forEach((a) => {
60
+ if (!a.getAttribute("data-uuid")) {
61
+ const l = _(a.src);
62
+ a.setAttribute("data-uuid", l);
65
63
  }
66
64
  });
67
65
  });
68
66
  }
69
- const Ce = { bold: "加粗", italic: "斜体", underline: "下划线", strike: "删除线", blockquote: "引用", "code-block": "代码块", 'list[value="ordered"]': "有序列表", 'list[value="bullet"]': "无序列表", 'script[value="sub"]': "下标", 'script[value="super"]': "上标", 'indent[value="-1"]': "减少缩进", 'indent[value="+1"]': "增加缩进", 'direction[value="rtl"]': "文字方向", size: "字体大小", header: "标题", color: "字体颜色", background: "背景颜色", font: "字体", align: "对齐方式", clean: "清除格式", link: "链接", image: "图片" };
70
- function qe() {
71
- oe.value = !oe.value, o(() => {
72
- me();
67
+ const h = { bold: "加粗", italic: "斜体", underline: "下划线", strike: "删除线", blockquote: "引用", "code-block": "代码块", 'list[value="ordered"]': "有序列表", 'list[value="bullet"]': "无序列表", 'script[value="sub"]': "下标", 'script[value="super"]': "上标", 'indent[value="-1"]': "减少缩进", 'indent[value="+1"]': "增加缩进", 'direction[value="rtl"]': "文字方向", size: "字体大小", header: "标题", color: "字体颜色", background: "背景颜色", font: "字体", align: "对齐方式", clean: "清除格式", link: "链接", image: "图片" };
68
+ function be() {
69
+ m.value = !m.value, U(() => {
70
+ Q();
73
71
  });
74
72
  }
75
- function Te() {
76
- ne && (ue.value = ne.root.innerHTML, re.value = true);
73
+ function ye() {
74
+ n && (Y.value = n.root.innerHTML, B.value = !0);
77
75
  }
78
- function Se() {
79
- if (!ne) return void (ie.value = 0);
80
- const e3 = ne.getText().trim();
81
- ie.value = e3.length;
76
+ function z() {
77
+ if (!n) return void (M.value = 0);
78
+ const t = n.getText().trim();
79
+ M.value = t.length;
82
80
  }
83
- function Ee() {
84
- M.error({ message: "图片上传失败,请重试", duration: 3e3 });
81
+ function xe() {
82
+ _e.error({ message: "图片上传失败,请重试", duration: 3e3 });
85
83
  }
86
- function Ae(e3) {
87
- "Escape" === e3.key && oe.value && (oe.value = false);
84
+ function Z(t) {
85
+ t.key === "Escape" && m.value && (m.value = !1);
88
86
  }
89
- function Le(e3) {
90
- var _a;
91
- ne && (null !== e3.relatedTarget && ((_a = le.value) == null ? void 0 : _a.contains(e3.relatedTarget)) || T(ne.root.innerHTML, W.pageContext, W.configure, "change", { entity: G }));
87
+ function ee(t) {
88
+ var e;
89
+ n && (t.relatedTarget !== null && ((e = f.value) != null && e.contains(t.relatedTarget)) || Ne(n.root.innerHTML, o.pageContext, o.configure, "change", { entity: L }));
92
90
  }
93
- function He(e3) {
94
- if ("img" === e3.target.localName) {
95
- ve.value = [];
96
- let t2 = e3.target.src;
97
- ve.value.push(t2), ge.value = true;
91
+ function te(t) {
92
+ if (t.target.localName === "img") {
93
+ R.value = [];
94
+ let e = t.target.src;
95
+ R.value.push(e), F.value = !0;
98
96
  }
99
97
  }
100
- function Me(e3) {
101
- const t2 = new FormData();
102
- t2.append("file", e3);
103
- const l2 = W.pageContext.backendUrl, n2 = A(l2, W.pageContext.isTest);
104
- return S.post(n2 + "/common/fs-upload/rich-editor-image", t2, { headers: { "Content-Type": "multipart/form-data" } });
98
+ function ke(t) {
99
+ const e = new FormData();
100
+ e.append("file", t);
101
+ const i = o.pageContext.backendUrl, a = re(i, o.pageContext.isTest);
102
+ return Be.post(a + "/common/fs-upload/rich-editor-image", e, { headers: { "Content-Type": "multipart/form-data" } });
105
103
  }
106
- function Ne(e3, t2) {
107
- const l2 = e3.split(","), n2 = l2[0].match(/:(.*?);/), o2 = n2 ? n2[1] : "image/png", i2 = atob(l2[1]);
108
- let a2 = i2.length;
109
- const r2 = new Uint8Array(a2);
110
- for (; a2--; ) r2[a2] = i2.charCodeAt(a2);
111
- return new File([r2], t2, { type: o2 });
104
+ function Ce(t, e) {
105
+ const i = t.split(","), a = i[0].match(/:(.*?);/), l = a ? a[1] : "image/png", u = atob(i[1]);
106
+ let r = u.length;
107
+ const s = new Uint8Array(r);
108
+ for (; r--; ) s[r] = u.charCodeAt(r);
109
+ return new File([s], e, { type: l });
112
110
  }
113
- return n(() => {
114
- var _a;
115
- le.value && (ne = new H(le.value, fe.value), ne.root.style.fontSize = "16px", function() {
116
- var _a2, _b;
117
- const e3 = (_b = (_a2 = le.value) == null ? void 0 : _a2.parentElement) == null ? void 0 : _b.querySelector(".ql-toolbar");
118
- if (!e3) return;
119
- e3.querySelectorAll("button").forEach((e4) => {
120
- const t2 = e4.className.match(/ql-([\w-]+)/);
121
- if (t2) {
122
- const l2 = t2[1], n2 = `${l2}[value="${e4.value}"]`;
123
- Ce[n2] ? e4.setAttribute("data-tooltip", Ce[n2]) : Ce[l2] && e4.setAttribute("data-tooltip", Ce[l2]);
111
+ return ne(() => {
112
+ var t;
113
+ f.value && (n = new q(f.value, me.value), n.root.style.fontSize = "16px", function() {
114
+ var i, a;
115
+ const e = (a = (i = f.value) == null ? void 0 : i.parentElement) == null ? void 0 : a.querySelector(".ql-toolbar");
116
+ e && (e.querySelectorAll("button").forEach((l) => {
117
+ const u = l.className.match(/ql-([\w-]+)/);
118
+ if (u) {
119
+ const r = u[1], s = `${r}[value="${l.value}"]`;
120
+ h[s] ? l.setAttribute("data-tooltip", h[s]) : h[r] && l.setAttribute("data-tooltip", h[r]);
124
121
  }
125
- }), e3.querySelectorAll(".ql-picker").forEach((e4) => {
126
- const t2 = e4.className.match(/ql-(\w+)/);
127
- if (t2) {
128
- const l2 = t2[1];
129
- if (Ce[l2]) {
130
- const t3 = e4.querySelector(".ql-picker-label");
131
- t3 && t3.setAttribute("data-tooltip", Ce[l2]);
122
+ }), e.querySelectorAll(".ql-picker").forEach((l) => {
123
+ const u = l.className.match(/ql-(\w+)/);
124
+ if (u) {
125
+ const r = u[1];
126
+ if (h[r]) {
127
+ const s = l.querySelector(".ql-picker-label");
128
+ s && s.setAttribute("data-tooltip", h[r]);
132
129
  }
133
130
  }
134
- });
131
+ }));
135
132
  }(), function() {
136
- var _a2, _b;
137
- const e3 = (_b = (_a2 = le.value) == null ? void 0 : _a2.parentElement) == null ? void 0 : _b.querySelector(".ql-toolbar");
138
- e3 && e3.addEventListener("mousedown", (e4) => {
139
- e4.preventDefault();
133
+ var i, a;
134
+ const e = (a = (i = f.value) == null ? void 0 : i.parentElement) == null ? void 0 : a.querySelector(".ql-toolbar");
135
+ e && e.addEventListener("mousedown", (l) => {
136
+ l.preventDefault();
140
137
  });
141
- }(), we(te), (_a = le.value) == null ? void 0 : _a.addEventListener("focusout", Le), ne.on("text-change", async function(e3) {
142
- if (!ne) return;
143
- const t2 = ne.root.getElementsByTagName("img");
144
- for (const e4 of t2) if (!e4.getAttribute("data-uuid")) {
145
- const t3 = ke(e4.src);
146
- e4.setAttribute("data-uuid", t3);
138
+ }(), X(fe), (t = f.value) == null || t.addEventListener("focusout", ee), n.on("text-change", async function(e) {
139
+ if (!n) return;
140
+ const i = n.root.getElementsByTagName("img");
141
+ for (const a of i) if (!a.getAttribute("data-uuid")) {
142
+ const l = _(a.src);
143
+ a.setAttribute("data-uuid", l);
147
144
  }
148
- if (e3.ops && e3.ops.length > 0) for (const t3 of e3.ops) {
149
- const e4 = t3.insert;
150
- if (e4 == null ? void 0 : e4.image) {
151
- const t4 = e4.image;
152
- if (!t4.startsWith("data:image")) continue;
145
+ if (e.ops && e.ops.length > 0) for (const a of e.ops) {
146
+ const l = a.insert;
147
+ if (l != null && l.image) {
148
+ const u = l.image;
149
+ if (!u.startsWith("data:image")) continue;
153
150
  try {
154
- ae.value = true;
155
- const e5 = Ne(t4, "image.png"), l2 = await Me(e5);
156
- if (!ne) return;
157
- const n2 = ne.root.getElementsByTagName("img");
158
- for (const e6 of n2) e6.src === t4 && (e6.width = 300, e6.src = l2.url, e6.setAttribute("data-uuid", l2.uuid));
159
- } catch (e5) {
160
- console.error("上传图片失败", e5), Ee();
151
+ N.value = !0;
152
+ const r = Ce(u, "image.png"), s = await ke(r);
153
+ if (!n) return;
154
+ const w = n.root.getElementsByTagName("img");
155
+ for (const b of w) b.src === u && (b.width = 300, b.src = s.url, b.setAttribute("data-uuid", s.uuid));
156
+ } catch (r) {
157
+ console.error("上传图片失败", r), xe();
161
158
  } finally {
162
- ae.value = false;
159
+ N.value = !1;
163
160
  }
164
161
  }
165
162
  }
166
- !function() {
167
- se && clearTimeout(se);
168
- se = setTimeout(() => {
169
- if (!ne) return;
170
- const e4 = ne.root.innerHTML;
171
- C(G, I, e4), e4 && (P.value = "");
163
+ (function() {
164
+ C && clearTimeout(C), C = setTimeout(() => {
165
+ if (!n) return;
166
+ const a = n.root.innerHTML;
167
+ Ve(L, O, a), a && (S.value = "");
172
168
  }, 300);
173
- }(), Se();
174
- }), Se(), xe = ne.container, xe.addEventListener("click", He), me(), o(() => {
175
- const e3 = w(G, I);
176
- q(e3, W.pageContext, W.configure, { formItemRef: he.value, componentRef: be.value, titleRef: ye.value, value: e3, entity: W.pageContext.entity.data, pageData: W.pageContext.entity.page });
169
+ })(), z();
170
+ }), z(), A = n.container, A.addEventListener("click", te), Q(), U(() => {
171
+ const e = He(L, O);
172
+ Me(e, o.pageContext, o.configure, { formItemRef: ge.value, componentRef: ve.value, titleRef: he.value, value: e, entity: o.pageContext.entity.data, pageData: o.pageContext.entity.page });
177
173
  }));
178
- }), n(() => {
179
- document.addEventListener("keydown", Ae);
180
- }), i(() => {
181
- document.removeEventListener("keydown", Ae), se && clearTimeout(se), le.value && le.value.removeEventListener("focusout", Le), xe && xe.removeEventListener("click", He);
182
- }), z2({ addRequiredClass: function() {
183
- P.value = L();
184
- }, setContent: function(e3) {
185
- we(e3), Se();
174
+ }), ne(() => {
175
+ document.addEventListener("keydown", Z);
176
+ }), qe(() => {
177
+ document.removeEventListener("keydown", Z), C && clearTimeout(C), f.value && f.value.removeEventListener("focusout", ee), A && A.removeEventListener("click", te);
178
+ }), se({ addRequiredClass: function() {
179
+ S.value = Fe();
180
+ }, setContent: function(t) {
181
+ X(t), z();
186
182
  }, getContent: function() {
187
- return ne ? ne.root.innerHTML : "";
188
- } }), (e3, t2) => {
189
- const l2 = a("View"), n2 = a("el-icon"), o2 = a("FullScreen"), i2 = a("Close"), y2 = a("el-form-item"), x2 = a("el-image-viewer"), k2 = a("el-dialog");
190
- return u(), r(s, null, [c(y2, { required: X.value.required, class: m(v(Y) + (P.value ? " " + P.value : "")), "label-width": X.value.labelWidth, style: f(v(O)) }, { label: g(() => [X.value.tittleShow ? (u(), r("div", { key: 0, style: f({ ...v(J), ...v(Q) }) }, b(v(E)(X.value.title)), 5)) : p("", true)]), default: g(() => [h("div", { class: m(["richtext-wrapper", { "is-fullscreen": oe.value }]) }, [h("div", { ref_key: "quillEditorRef", ref: le, style: { width: "100%" } }, null, 512), h("div", N, [h("button", { class: "toolbar-btn", onClick: Te, title: "预览" }, [c(n2, null, { default: g(() => [c(l2)]), _: 1 })]), h("button", { class: "toolbar-btn", onClick: qe, title: oe.value ? "退出全屏" : "全屏编辑" }, [oe.value ? (u(), d(n2, { key: 1 }, { default: g(() => [c(i2)]), _: 1 })) : (u(), d(n2, { key: 0 }, { default: g(() => [c(o2)]), _: 1 }))], 8, R)]), h("div", _, [h("span", j, "字数:" + b(ie.value), 1)]), ae.value ? (u(), r("div", V, t2[2] || (t2[2] = [h("div", { class: "loading-spinner" }, null, -1), h("span", null, "图片上传中...", -1)]))) : p("", true)], 2)]), _: 1 }, 8, ["required", "class", "label-width", "style"]), ge.value ? (u(), d(x2, { key: 0, "hide-on-click-modal": "", onClose: t2[0] || (t2[0] = () => {
191
- ge.value = false;
192
- }), "url-list": ve.value }, null, 8, ["url-list"])) : p("", true), c(k2, { modelValue: re.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => re.value = e4), title: "内容预览", width: "80%", "close-on-click-modal": true, "append-to-body": true, class: "richtext-preview-dialog" }, { default: g(() => [h("div", { class: "richtext-preview-content ql-editor", innerHTML: ue.value }, null, 8, $)]), _: 1 }, 8, ["modelValue"])], 64);
183
+ return n ? n.root.innerHTML : "";
184
+ } }), (t, e) => {
185
+ const i = g("View"), a = g("el-icon"), l = g("FullScreen"), u = g("Close"), r = g("el-form-item"), s = g("el-image-viewer"), w = g("el-dialog");
186
+ return y(), $(Se, null, [x(r, { required: d.value.required, class: le(E(ue) + (S.value ? " " + S.value : "")), "label-width": d.value.labelWidth, style: ae(E(V)) }, { label: k(() => [d.value.tittleShow ? (y(), $("div", { key: 0, style: ae({ ...E(ce), ...E(de) }) }, oe(E(Re)(d.value.title)), 5)) : W("", !0)]), default: k(() => [p("div", { class: le(["richtext-wrapper", { "is-fullscreen": m.value }]) }, [p("div", { ref_key: "quillEditorRef", ref: f, style: { width: "100%" } }, null, 512), p("div", ze, [p("button", { class: "toolbar-btn", onClick: ye, title: "预览" }, [x(a, null, { default: k(() => [x(i)]), _: 1 })]), p("button", { class: "toolbar-btn", onClick: be, title: m.value ? "退出全屏" : "全屏编辑" }, [m.value ? (y(), D(a, { key: 1 }, { default: k(() => [x(u)]), _: 1 })) : (y(), D(a, { key: 0 }, { default: k(() => [x(l)]), _: 1 }))], 8, Ue)]), p("div", $e, [p("span", De, "字数:" + oe(M.value), 1)]), N.value ? (y(), $("div", We, e[2] || (e[2] = [p("div", { class: "loading-spinner" }, null, -1), p("span", null, "图片上传中...", -1)]))) : W("", !0)], 2)]), _: 1 }, 8, ["required", "class", "label-width", "style"]), F.value ? (y(), D(s, { key: 0, "hide-on-click-modal": "", onClose: e[0] || (e[0] = () => {
187
+ F.value = !1;
188
+ }), "url-list": R.value }, null, 8, ["url-list"])) : W("", !0), x(w, { modelValue: B.value, "onUpdate:modelValue": e[1] || (e[1] = (b) => B.value = b), title: "内容预览", width: "80%", "close-on-click-modal": !0, "append-to-body": !0, class: "richtext-preview-dialog" }, { default: k(() => [p("div", { class: "richtext-preview-content ql-editor", innerHTML: Y.value }, null, 8, Ie)]), _: 1 }, 8, ["modelValue"])], 64);
193
189
  };
194
190
  } });
195
191
  export {
196
- z as default
192
+ Ze as default
197
193
  };
@@ -1,4 +1,4 @@
1
- import e from "./select-runtime.vue2.mjs";
1
+ import o from "./select-runtime.vue2.mjs";
2
2
  export {
3
- e as default
3
+ o as default
4
4
  };