@gct-paas/core-web 0.1.4-dev.11 → 0.1.4-dev.12

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 (308) hide show
  1. package/dist/index.esm.min.js +9864 -0
  2. package/dist/index.min.css +2 -1
  3. package/dist/monaco-editor-BHuf3IVH.js +280 -0
  4. package/dist/useMonacoEditor-CfhCBaPa.js +2852 -0
  5. package/es/_virtual/_plugin-vue_export-helper.mjs +7 -8
  6. package/es/components/app-modal/app-modal-component.mjs +102 -133
  7. package/es/components/assets-svg-icon/assets-svg-icon.mjs +161 -232
  8. package/es/components/assets-svg-icon/request.mjs +60 -43
  9. package/es/components/assets-svg-icon/utils.mjs +21 -19
  10. package/es/components/assets-svg-icon/validate.mjs +27 -41
  11. package/es/components/base-button/base-button.vue.mjs +7 -7
  12. package/es/components/base-button/base-button.vue_vue_type_script_setup_true_name_BaseButton_lang.mjs +181 -0
  13. package/es/components/basic-button/basic-button.vue.mjs +7 -7
  14. package/es/components/basic-button/basic-button.vue_vue_type_script_setup_true_name_BasicButton_lang.mjs +148 -0
  15. package/es/components/code-editor/code-editor.mjs +59 -63
  16. package/es/components/copy-module-key/copy-module-key.vue.mjs +7 -7
  17. package/es/components/copy-module-key/copy-module-key.vue_vue_type_script_setup_true_name_copy-module-key_lang.mjs +92 -0
  18. package/es/components/double-input/double-input.vue.mjs +5 -158
  19. package/es/components/double-input/double-input.vue_vue_type_script_setup_true_lang.mjs +121 -0
  20. package/es/components/icon-next/hooks/useIconAsset.mjs +32 -44
  21. package/es/components/icon-next/hooks/useIconPark.mjs +48 -48
  22. package/es/components/icon-next/hooks/useIconPlatform.mjs +37 -42
  23. package/es/components/icon-next/index.mjs +3 -0
  24. package/es/components/icon-next/src/IconNext.vue.mjs +7 -0
  25. package/es/components/icon-next/src/IconNext.vue_vue_type_script_setup_true_name_IconNext_lang.mjs +113 -0
  26. package/es/components/icon-next/src/IconNextPicker.vue.mjs +6 -0
  27. package/es/components/icon-next/src/IconNextPicker.vue_vue_type_script_setup_true_name_IconNextPicker_lang.mjs +379 -0
  28. package/es/components/icon-next/types/index.mjs +10 -9
  29. package/es/components/index.d.ts +1 -0
  30. package/es/components/index.mjs +23 -34
  31. package/es/components/layout/view-container/view-container.mjs +24 -35
  32. package/es/components/svg-icon/svg-icon.vue.mjs +6 -50
  33. package/es/components/svg-icon/svg-icon.vue_vue_type_script_setup_true_name_SvgIcon_lang.mjs +52 -0
  34. package/es/components/vue3-grid-dnd-item/vue3-grid-dnd-item.css +103 -0
  35. package/es/components/vue3-grid-dnd-item/vue3-grid-dnd-item.d.ts +44 -0
  36. package/es/components/vue3-grid-dnd-item/vue3-grid-dnd-item.mjs +122 -0
  37. package/es/components/wujie-container/wujie-container.mjs +58 -81
  38. package/es/create-app-vue.mjs +27 -19
  39. package/es/directives/drag-resize.mjs +38 -39
  40. package/es/directives/ellipsis-title.d.ts +7 -0
  41. package/es/directives/ellipsis-title.mjs +21 -0
  42. package/es/directives/index.mjs +14 -6
  43. package/es/directives/target-loading.mjs +28 -36
  44. package/es/hooks/index.mjs +4 -0
  45. package/es/hooks/useDesign.mjs +7 -8
  46. package/es/hooks/useDragLine.mjs +66 -75
  47. package/es/hooks/useLocale.mjs +27 -28
  48. package/es/hooks/useTheme.mjs +13 -17
  49. package/es/index.mjs +92 -137
  50. package/es/modules/code-editor/index.mjs +6 -7
  51. package/es/modules/code-editor/monaco-editor.vue.mjs +7 -7
  52. package/es/modules/code-editor/monaco-editor.vue_vue_type_script_setup_true_name_code-editor_lang.mjs +398 -0
  53. package/es/modules/code-editor/useEditorConsole.mjs +146 -187
  54. package/es/modules/code-editor/useMonacoEditor.mjs +24 -23
  55. package/es/modules/color-picker/index.mjs +1 -0
  56. package/es/modules/color-picker/src/ColorPicker.vue.mjs +8 -8
  57. package/es/modules/color-picker/src/ColorPicker.vue_vue_type_script_setup_true_name_ColorPicker_lang.mjs +482 -0
  58. package/es/modules/formula-editor/constants/index.mjs +8 -6
  59. package/es/modules/formula-editor/formula-editor.mjs +40 -59
  60. package/es/modules/formula-editor/index.mjs +2 -0
  61. package/es/modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.mjs +158 -193
  62. package/es/modules/gct-dnd/components/gct-dnd-drop-line/gct-dnd-drop-line.mjs +81 -95
  63. package/es/modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.mjs +178 -237
  64. package/es/modules/gct-dnd/constants/index.mjs +10 -18
  65. package/es/modules/gct-dnd/index.mjs +4 -0
  66. package/es/modules/gct-form/components/flex-container/flex-container.css +67 -0
  67. package/es/modules/gct-form/components/flex-container/flex-container.d.ts +14 -0
  68. package/es/modules/gct-form/components/flex-container/flex-container.mjs +61 -0
  69. package/es/modules/gct-form/components/flex-item/flex-item.d.ts +13 -0
  70. package/es/modules/gct-form/components/flex-item/flex-item.mjs +37 -0
  71. package/es/modules/gct-form/components/grid-container/grid-container.d.ts +10 -0
  72. package/es/modules/gct-form/components/grid-container/grid-container.mjs +36 -0
  73. package/es/modules/gct-form/components/index.d.ts +3 -0
  74. package/es/modules/gct-form/components/index.mjs +3 -0
  75. package/es/modules/gct-form/constants/editor-register/editor-register.mjs +17 -5
  76. package/es/modules/gct-form/constants/editor-type/editor-type.mjs +133 -34
  77. package/es/modules/gct-form/constants/index.mjs +5 -2
  78. package/es/modules/gct-form/controller/edit-form/edit-form.controller.d.ts +1 -16
  79. package/es/modules/gct-form/controller/edit-form/edit-form.controller.mjs +48 -69
  80. package/es/modules/gct-form/controller/editor-item/editor-item.controller.mjs +18 -22
  81. package/es/modules/gct-form/controller/form-collapse/form-collapse.controller.mjs +20 -10
  82. package/es/modules/gct-form/controller/form-collapse-pane/form-collapse-pane.controller.mjs +20 -10
  83. package/es/modules/gct-form/controller/form-edit-item/form-edit-item.controller.mjs +84 -89
  84. package/es/modules/gct-form/controller/form-group/form-group.controller.mjs +20 -10
  85. package/es/modules/gct-form/controller/form-item/form-item.controller.mjs +35 -36
  86. package/es/modules/gct-form/controller/form-item-basic/form-item-basic.controller.mjs +61 -42
  87. package/es/modules/gct-form/controller/form-item-hidden/form-item-hidden.controller.mjs +16 -6
  88. package/es/modules/gct-form/controller/form-line/form-line.controller.mjs +20 -10
  89. package/es/modules/gct-form/controller/form-tab/form-tab.controller.mjs +20 -10
  90. package/es/modules/gct-form/controller/form-tab-pane/form-tab-pane.controller.mjs +20 -10
  91. package/es/modules/gct-form/controller/gct-form/gct-form.controller.mjs +198 -221
  92. package/es/modules/gct-form/controller/index.mjs +13 -0
  93. package/es/modules/gct-form/editor/gct-form-action/gct-form-action.mjs +44 -49
  94. package/es/modules/gct-form/editor/gct-form-action/index.mjs +10 -14
  95. package/es/modules/gct-form/editor/gct-form-check-switch/gct-form-check-switch.mjs +54 -55
  96. package/es/modules/gct-form/editor/gct-form-check-switch/gct-form-check-switch.provider.mjs +14 -4
  97. package/es/modules/gct-form/editor/gct-form-check-switch/index.mjs +8 -12
  98. package/es/modules/gct-form/editor/gct-form-checkbox/gct-form-checkbox.mjs +100 -125
  99. package/es/modules/gct-form/editor/gct-form-checkbox/index.mjs +10 -14
  100. package/es/modules/gct-form/editor/gct-form-color/gct-form-color.mjs +36 -41
  101. package/es/modules/gct-form/editor/gct-form-color/gct-form-color.provider.mjs +14 -4
  102. package/es/modules/gct-form/editor/gct-form-color/index.mjs +8 -12
  103. package/es/modules/gct-form/editor/gct-form-date/gct-form-date.mjs +71 -78
  104. package/es/modules/gct-form/editor/gct-form-date/gct-form-date.provider.mjs +12 -4
  105. package/es/modules/gct-form/editor/gct-form-date/index.mjs +8 -12
  106. package/es/modules/gct-form/editor/gct-form-date-format-select/gct-form-date-format-select.mjs +102 -107
  107. package/es/modules/gct-form/editor/gct-form-date-format-select/index.mjs +10 -14
  108. package/es/modules/gct-form/editor/gct-form-empty/gct-form-empty.mjs +13 -15
  109. package/es/modules/gct-form/editor/gct-form-empty/index.mjs +10 -14
  110. package/es/modules/gct-form/editor/gct-form-formula/gct-form-formula.mjs +66 -66
  111. package/es/modules/gct-form/editor/gct-form-formula/index.mjs +10 -14
  112. package/es/modules/gct-form/editor/gct-form-group-select/gct-form-group-select.mjs +159 -227
  113. package/es/modules/gct-form/editor/gct-form-group-select/index.mjs +10 -14
  114. package/es/modules/gct-form/editor/gct-form-i18n/gct-form-i18n.mjs +87 -113
  115. package/es/modules/gct-form/editor/gct-form-i18n/gct-form-i18n.provider.mjs +14 -4
  116. package/es/modules/gct-form/editor/gct-form-i18n/index.mjs +8 -12
  117. package/es/modules/gct-form/editor/gct-form-icon-select/gct-form-icon-select.mjs +61 -70
  118. package/es/modules/gct-form/editor/gct-form-icon-select/index.mjs +10 -14
  119. package/es/modules/gct-form/editor/gct-form-info/gct-form-info.mjs +38 -49
  120. package/es/modules/gct-form/editor/gct-form-info/index.mjs +10 -14
  121. package/es/modules/gct-form/editor/gct-form-length-unit/gct-form-length-unit.mjs +36 -41
  122. package/es/modules/gct-form/editor/gct-form-length-unit/gct-form-length-unit.provider.mjs +14 -4
  123. package/es/modules/gct-form/editor/gct-form-length-unit/index.mjs +8 -12
  124. package/es/modules/gct-form/editor/gct-form-model-select/gct-form-model-select.mjs +141 -170
  125. package/es/modules/gct-form/editor/gct-form-model-select/index.mjs +10 -14
  126. package/es/modules/gct-form/editor/gct-form-multiple-choice/gct-form-multiple-choice.mjs +60 -66
  127. package/es/modules/gct-form/editor/gct-form-multiple-choice/index.mjs +10 -14
  128. package/es/modules/gct-form/editor/gct-form-number/gct-form-number.mjs +41 -42
  129. package/es/modules/gct-form/editor/gct-form-number/gct-form-number.provider.mjs +5 -4
  130. package/es/modules/gct-form/editor/gct-form-number/index.mjs +8 -12
  131. package/es/modules/gct-form/editor/gct-form-picker/gct-form-picker.mjs +89 -111
  132. package/es/modules/gct-form/editor/gct-form-picker/gct-form-picker.provider.mjs +14 -4
  133. package/es/modules/gct-form/editor/gct-form-picker/index.mjs +8 -12
  134. package/es/modules/gct-form/editor/gct-form-pixel-config/gct-form-pixel-config.mjs +60 -66
  135. package/es/modules/gct-form/editor/gct-form-pixel-config/index.mjs +10 -14
  136. package/es/modules/gct-form/editor/gct-form-radio/gct-form-radio.mjs +76 -91
  137. package/es/modules/gct-form/editor/gct-form-radio/index.mjs +10 -14
  138. package/es/modules/gct-form/editor/gct-form-select/gct-form-select.mjs +109 -126
  139. package/es/modules/gct-form/editor/gct-form-select/gct-form-select.provider.mjs +14 -4
  140. package/es/modules/gct-form/editor/gct-form-select/index.mjs +8 -12
  141. package/es/modules/gct-form/editor/gct-form-span/gct-form-span.mjs +67 -97
  142. package/es/modules/gct-form/editor/gct-form-span/gct-form-span.provider.mjs +14 -4
  143. package/es/modules/gct-form/editor/gct-form-span/index.mjs +8 -12
  144. package/es/modules/gct-form/editor/gct-form-switch/gct-form-switch.mjs +32 -37
  145. package/es/modules/gct-form/editor/gct-form-switch/gct-form-switch.provider.mjs +14 -4
  146. package/es/modules/gct-form/editor/gct-form-switch/index.mjs +8 -12
  147. package/es/modules/gct-form/editor/gct-form-table/gct-form-table.mjs +29 -30
  148. package/es/modules/gct-form/editor/gct-form-table/index.mjs +10 -14
  149. package/es/modules/gct-form/editor/gct-form-text/gct-form-text.mjs +51 -54
  150. package/es/modules/gct-form/editor/gct-form-text/gct-form-text.provider.mjs +14 -4
  151. package/es/modules/gct-form/editor/gct-form-text/index.mjs +8 -12
  152. package/es/modules/gct-form/editor/gct-form-textarea/gct-form-textarea.mjs +43 -44
  153. package/es/modules/gct-form/editor/gct-form-textarea/gct-form-textarea.provider.mjs +5 -4
  154. package/es/modules/gct-form/editor/gct-form-textarea/index.mjs +8 -12
  155. package/es/modules/gct-form/editor/gct-select-form-table/gct-select-form-table.mjs +59 -76
  156. package/es/modules/gct-form/editor/gct-select-form-table/index.mjs +10 -14
  157. package/es/modules/gct-form/editor/index.mjs +32 -34
  158. package/es/modules/gct-form/hooks/index.mjs +2 -0
  159. package/es/modules/gct-form/hooks/use-form/use-form.mjs +12 -5
  160. package/es/modules/gct-form/hooks/use-gct-form-value/use-gct-form-value.mjs +80 -84
  161. package/es/modules/gct-form/index.mjs +51 -16
  162. package/es/modules/gct-form/props/gct-form-item/gct-form-item.props.mjs +54 -62
  163. package/es/modules/gct-form/register/editor-register/editor-register.mjs +63 -56
  164. package/es/modules/gct-form/register/form-item-register/form-item-register.mjs +45 -41
  165. package/es/modules/gct-form/state/form/form.state.mjs +26 -16
  166. package/es/modules/gct-form/state/form-collapse/form-collapse.state.mjs +14 -5
  167. package/es/modules/gct-form/state/form-collapse-pane/form-collapse-pane.state.mjs +14 -5
  168. package/es/modules/gct-form/state/form-edit-item/form-edit-item.state.mjs +18 -9
  169. package/es/modules/gct-form/state/form-group/form-group.state.mjs +22 -13
  170. package/es/modules/gct-form/state/form-item/form-item.state.mjs +14 -5
  171. package/es/modules/gct-form/state/form-item-basic/form-item-basic.state.mjs +18 -8
  172. package/es/modules/gct-form/state/form-line/form-line.state.mjs +11 -5
  173. package/es/modules/gct-form/state/form-tab/form-tab.state.mjs +16 -6
  174. package/es/modules/gct-form/state/form-tab-pane/form-tab-pane.state.mjs +14 -5
  175. package/es/modules/gct-form/utils/width-install/width-install.mjs +19 -16
  176. package/es/modules/gct-form/widgets/gct-edit-form/gct-edit-form.d.ts +1 -5
  177. package/es/modules/gct-form/widgets/gct-edit-form/gct-edit-form.mjs +122 -148
  178. package/es/modules/gct-form/widgets/gct-form/gct-form-collapse/gct-form-collapse.mjs +66 -76
  179. package/es/modules/gct-form/widgets/gct-form/gct-form-collapse/gct-form-collapse.provider.mjs +11 -13
  180. package/es/modules/gct-form/widgets/gct-form/gct-form-collapse/index.mjs +10 -15
  181. package/es/modules/gct-form/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.mjs +50 -72
  182. package/es/modules/gct-form/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.provider.mjs +11 -15
  183. package/es/modules/gct-form/widgets/gct-form/gct-form-collapse-pane/index.mjs +10 -15
  184. package/es/modules/gct-form/widgets/gct-form/gct-form-group/gct-form-group.css +5 -5
  185. package/es/modules/gct-form/widgets/gct-form/gct-form-group/gct-form-group.mjs +72 -89
  186. package/es/modules/gct-form/widgets/gct-form/gct-form-group/gct-form-group.provider.mjs +11 -13
  187. package/es/modules/gct-form/widgets/gct-form/gct-form-group/index.mjs +10 -15
  188. package/es/modules/gct-form/widgets/gct-form/gct-form-hidden-item/gct-form-hidden-item.provider.mjs +11 -15
  189. package/es/modules/gct-form/widgets/gct-form/gct-form-hidden-item/index.mjs +1 -0
  190. package/es/modules/gct-form/widgets/gct-form/gct-form-item/gct-form-item.css +27 -24
  191. package/es/modules/gct-form/widgets/gct-form/gct-form-item/gct-form-item.mjs +127 -159
  192. package/es/modules/gct-form/widgets/gct-form/gct-form-item/gct-form-item.provider.mjs +11 -13
  193. package/es/modules/gct-form/widgets/gct-form/gct-form-item/index.mjs +3 -0
  194. package/es/modules/gct-form/widgets/gct-form/gct-form-line/gct-form-line.css +2 -2
  195. package/es/modules/gct-form/widgets/gct-form/gct-form-line/gct-form-line.mjs +38 -45
  196. package/es/modules/gct-form/widgets/gct-form/gct-form-line/gct-form-line.provider.mjs +11 -13
  197. package/es/modules/gct-form/widgets/gct-form/gct-form-line/index.mjs +10 -12
  198. package/es/modules/gct-form/widgets/gct-form/gct-form-tab/gct-form-tab.mjs +63 -69
  199. package/es/modules/gct-form/widgets/gct-form/gct-form-tab/gct-form-tab.provider.mjs +11 -13
  200. package/es/modules/gct-form/widgets/gct-form/gct-form-tab/index.mjs +10 -12
  201. package/es/modules/gct-form/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.mjs +48 -66
  202. package/es/modules/gct-form/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.provider.mjs +11 -13
  203. package/es/modules/gct-form/widgets/gct-form/gct-form-tab-pane/index.mjs +10 -15
  204. package/es/modules/gct-form/widgets/gct-form/gct-form-title-group/gct-form-title-group.css +4 -4
  205. package/es/modules/gct-form/widgets/gct-form/gct-form-title-group/gct-form-title-group.mjs +50 -68
  206. package/es/modules/gct-form/widgets/gct-form/gct-form-title-group/gct-form-title-group.provider.mjs +11 -13
  207. package/es/modules/gct-form/widgets/gct-form/gct-form-title-group/index.mjs +11 -16
  208. package/es/modules/gct-form/widgets/gct-form/gct-form.css +2 -2
  209. package/es/modules/gct-form/widgets/gct-form/gct-form.mjs +125 -143
  210. package/es/modules/gct-form/widgets/gct-form/index.mjs +30 -33
  211. package/es/modules/gct-table/controller/gct-table/gct-table.controller.mjs +138 -140
  212. package/es/modules/gct-table/controller/index.mjs +5 -0
  213. package/es/modules/gct-table/controller/table-item/table-action-item.controller.mjs +14 -5
  214. package/es/modules/gct-table/controller/table-item/table-edit-item.controller.mjs +25 -15
  215. package/es/modules/gct-table/controller/table-item/table-item.controller.mjs +32 -25
  216. package/es/modules/gct-table/controller/table-row/table-row.controller.mjs +76 -69
  217. package/es/modules/gct-table/editor/gct-table-date/gct-table-date.mjs +47 -90
  218. package/es/modules/gct-table/editor/gct-table-date/gct-table-date.provider.mjs +12 -4
  219. package/es/modules/gct-table/editor/gct-table-date/index.mjs +10 -52
  220. package/es/modules/gct-table/editor/gct-table-span/gct-table-span.mjs +26 -37
  221. package/es/modules/gct-table/editor/gct-table-span/gct-table-span.provider.mjs +14 -4
  222. package/es/modules/gct-table/editor/gct-table-span/index.mjs +10 -52
  223. package/es/modules/gct-table/editor/gct-table-text/gct-table-text.mjs +60 -103
  224. package/es/modules/gct-table/editor/gct-table-text/gct-table-text.provider.mjs +14 -4
  225. package/es/modules/gct-table/editor/gct-table-text/index.mjs +10 -52
  226. package/es/modules/gct-table/editor/index.mjs +9 -11
  227. package/es/modules/gct-table/hooks/index.mjs +1 -0
  228. package/es/modules/gct-table/hooks/use-ant-table/use-ant-table.mjs +66 -82
  229. package/es/modules/gct-table/index.mjs +22 -15
  230. package/es/modules/gct-table/register/table-editor-register/table-editor-register.mjs +67 -60
  231. package/es/modules/gct-table/state/table/table.state.mjs +46 -36
  232. package/es/modules/gct-table/state/table-item/table-edit-item.state.mjs +19 -9
  233. package/es/modules/gct-table/state/table-item/table-item.state.mjs +29 -19
  234. package/es/modules/gct-table/state/table-row/table-row.state.mjs +16 -6
  235. package/es/modules/gct-table/utils/count-latch/count-latch.mjs +97 -94
  236. package/es/modules/gct-table/utils/index.mjs +2 -0
  237. package/es/modules/gct-table/utils/width-install/width-install.mjs +18 -16
  238. package/es/modules/gct-table/widgets/gct-table/gct-table.mjs +310 -409
  239. package/es/modules/gct-table/widgets/gct-table/index.mjs +8 -10
  240. package/es/modules/gct-table/widgets/index.mjs +7 -9
  241. package/es/modules/global-modal/index.mjs +10 -16
  242. package/es/modules/global-modal/src/BasicModal.vue.mjs +5 -221
  243. package/es/modules/global-modal/src/BasicModal.vue_vue_type_script_setup_true_name_BasicModal_lang.mjs +201 -0
  244. package/es/modules/global-modal/src/components/GlboalModal.mjs +30 -39
  245. package/es/modules/global-modal/src/components/ModalClose.vue.mjs +6 -79
  246. package/es/modules/global-modal/src/components/ModalClose.vue_vue_type_script_setup_true_name_ModalClose_lang.mjs +67 -0
  247. package/es/modules/global-modal/src/components/ModalFooter.vue.mjs +5 -44
  248. package/es/modules/global-modal/src/components/ModalFooter.vue_vue_type_script_setup_true_name_BasicModalFooter_lang.mjs +40 -0
  249. package/es/modules/global-modal/src/components/ModalHeader.vue.mjs +9 -9
  250. package/es/modules/global-modal/src/components/ModalHeader.vue_vue_type_script_lang.mjs +11 -0
  251. package/es/modules/global-modal/src/components/ModalWrapper.vue.mjs +18 -24
  252. package/es/modules/global-modal/src/components/ModalWrapper.vue_vue_type_script_lang.mjs +126 -0
  253. package/es/modules/global-modal/src/hooks/useModal.mjs +102 -116
  254. package/es/modules/global-modal/src/hooks/useModalContext.mjs +6 -6
  255. package/es/modules/global-modal/src/hooks/useModalDrag.mjs +69 -79
  256. package/es/modules/global-modal/src/hooks/useModalFullScreen.mjs +17 -13
  257. package/es/modules/global-modal/src/props.mjs +87 -55
  258. package/es/modules/target-loading/index.mjs +3 -0
  259. package/es/modules/target-loading/src/createLoading.mjs +42 -54
  260. package/es/modules/target-loading/src/target-loading.vue.mjs +7 -52
  261. package/es/modules/target-loading/src/target-loading.vue_vue_type_script_setup_true_name_target-loading_lang.mjs +55 -0
  262. package/es/modules/target-loading/src/useLoading.mjs +2 -0
  263. package/es/setup-app.mjs +3 -3
  264. package/es/utils/index.mjs +4 -0
  265. package/es/utils/message-util/message-util.mjs +25 -25
  266. package/es/utils/monaco-loader/monaco-loader.mjs +83 -87
  267. package/es/utils/overlay-controller/overlay-controller.mjs +29 -20
  268. package/es/utils/with-install.mjs +10 -11
  269. package/package.json +5 -5
  270. package/dist/index-B8zoAUhR.cjs +0 -20
  271. package/dist/index-BH5PTZ_c.js +0 -20
  272. package/dist/index-Cna4DZog.js +0 -109381
  273. package/dist/index.esm.min.mjs +0 -91
  274. package/dist/index.min.cjs +0 -1
  275. package/dist/index.system.min.js +0 -1
  276. package/dist/monaco-editor-4E2xdOou.cjs +0 -1
  277. package/dist/monaco-editor-C-wvzgow.js +0 -1
  278. package/dist/monaco-editor-Cel355Cg.js +0 -350
  279. package/es/components/base-button/base-button.vue3.mjs +0 -179
  280. package/es/components/basic-button/basic-button.vue3.mjs +0 -130
  281. package/es/components/copy-module-key/copy-module-key.vue3.mjs +0 -104
  282. package/es/components/double-input/double-input.vue2.mjs +0 -5
  283. package/es/components/icon-next/src/IconNext.vue2.mjs +0 -7
  284. package/es/components/icon-next/src/IconNext.vue3.mjs +0 -108
  285. package/es/components/icon-next/src/IconNextPicker.vue2.mjs +0 -452
  286. package/es/components/icon-next/src/IconNextPicker.vue3.mjs +0 -6
  287. package/es/components/svg-icon/svg-icon.vue3.mjs +0 -6
  288. package/es/modules/code-editor/monaco-editor.vue2.mjs +0 -440
  289. package/es/modules/color-picker/src/ColorPicker.vue2.mjs +0 -545
  290. package/es/modules/gct-form/widgets/gct-edit-form/index.d.ts +0 -5
  291. package/es/modules/gct-form/widgets/gct-edit-form/index.mjs +0 -10
  292. package/es/modules/global-modal/src/BasicModal.vue2.mjs +0 -5
  293. package/es/modules/global-modal/src/components/ModalClose.vue3.mjs +0 -6
  294. package/es/modules/global-modal/src/components/ModalFooter.vue2.mjs +0 -5
  295. package/es/modules/global-modal/src/components/ModalHeader.vue2.mjs +0 -13
  296. package/es/modules/global-modal/src/components/ModalWrapper.vue2.mjs +0 -136
  297. package/es/modules/target-loading/src/target-loading.vue3.mjs +0 -7
  298. /package/es/components/base-button/{base-button.css → base-button.vue_vue_type_style_index_0_scoped_5375ec2b_lang.css} +0 -0
  299. /package/es/components/basic-button/{basic-button.css → basic-button.vue_vue_type_style_index_0_scoped_1dbcb2fa_lang.css} +0 -0
  300. /package/es/components/copy-module-key/{copy-module-key.css → copy-module-key.vue_vue_type_style_index_0_scoped_531b3cd2_lang.css} +0 -0
  301. /package/es/components/icon-next/src/{IconNext.css → IconNext.vue_vue_type_style_index_0_scoped_c5a83130_lang.css} +0 -0
  302. /package/es/components/icon-next/src/{IconNextPicker.css → IconNextPicker.vue_vue_type_style_index_0_lang.css} +0 -0
  303. /package/es/components/svg-icon/{svg-icon.css → svg-icon.vue_vue_type_style_index_0_lang.css} +0 -0
  304. /package/es/modules/code-editor/{monaco-editor.css → monaco-editor.vue_vue_type_style_index_0_scoped_254c9227_lang.css} +0 -0
  305. /package/es/modules/color-picker/src/{ColorPicker.css → ColorPicker.vue_vue_type_style_index_0_scoped_7bfd9ca3_lang.css} +0 -0
  306. /package/es/modules/color-picker/src/{ColorPicker2.css → ColorPicker.vue_vue_type_style_index_1_lang.css} +0 -0
  307. /package/es/modules/global-modal/src/components/{ModalClose.css → ModalClose.vue_vue_type_style_index_0_lang.css} +0 -0
  308. /package/es/modules/target-loading/src/{target-loading.css → target-loading.vue_vue_type_style_index_0_scoped_d448466c_lang.css} +0 -0
@@ -1,147 +1,129 @@
1
- import { defineComponent, createVNode, resolveComponent, provide, ref, reactive, isVNode, h } from 'vue';
2
- import { useNamespace } from '@gct-paas/core';
3
- import { FORM_CONTROLLER_INJECT_TAG } from '../../constants/index.mjs';
1
+ import { FORM_CONTROLLER_INJECT_TAG } from "../../constants/index.mjs";
4
2
  import './gct-form.css';/* empty css */
5
-
3
+ import { createVNode, defineComponent, h, isVNode, provide, reactive, ref, resolveComponent } from "vue";
4
+ import { useNamespace } from "@gct-paas/core";
5
+ //#region src/modules/gct-form/widgets/gct-form/gct-form.tsx
6
6
  function _isSlot(s) {
7
- return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
7
+ return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
8
8
  }
9
- const GctForm = /* @__PURE__ */ defineComponent({
10
- name: 'GctForm',
11
- props: {
12
- c: {
13
- type: Object,
14
- required: true
15
- },
16
- model: {
17
- type: Object,
18
- required: true
19
- },
20
- context: {
21
- type: Object,
22
- default: () => ({})
23
- }
24
- },
25
- setup(props) {
26
- const ns = useNamespace('gct-form');
27
- provide(FORM_CONTROLLER_INJECT_TAG, props.c);
28
- const formRef = ref();
29
- const c = props.c;
30
-
31
- // 将所有和界面状态相关的数据转换为响应式数据,以便在界面上进行双向绑定
32
- const keys = Object.keys(c.item);
33
- keys.forEach(key => {
34
- const item = c.item[key];
35
- item.state = reactive(item.state);
36
- });
37
-
38
- /**
39
- * 绘制表单项
40
- *
41
- * @author zhanghanrui
42
- * @date 2024-03-26 21:03:52
43
- * @param {IFormItem} item
44
- * @return {*}
45
- */
46
- const renderItem = item => {
47
- return createVNode(resolveComponent("gct-form-item"), {
48
- "class": item.class,
49
- "style": item.style,
50
- "count": c.state.count,
51
- "c": c.item[item.name],
52
- "formModel": props.model,
53
- "model": item,
54
- "context": props.context
55
- }, null);
56
- };
57
-
58
- /**
59
- * 绘制表单容器
60
- *
61
- * @author zhanghanrui
62
- * @date 2024-03-26 21:03:17
63
- * @param {IFormContainer} item
64
- * @return {*}
65
- */
66
- const renderContainer = item => {
67
- const provider = c.provider[item.name];
68
- if (!provider) {
69
- console.error(`未找到表单项适配器实例:${item.name}`, item);
70
- return null;
71
- }
72
- if (provider) {
73
- return h(typeof provider.component === 'string' ? resolveComponent(provider.component) : provider.component, {
74
- key: item.name,
75
- model: item,
76
- count: c.state.count,
77
- c: c.item[item.name],
78
- data: c.state.data,
79
- class: item.class,
80
- style: item.style,
81
- context: props.context
82
- }, renderChildren(item.children || []));
83
- } else {
84
- console.error(`未找到表单容器适配器:${item.name} - ${item.type}`);
85
- }
86
- };
87
-
88
- /**
89
- * 绘制子元素
90
- *
91
- * @author zhanghanrui
92
- * @date 2024-03-26 21:03:22
93
- * @param {IFormItemBasic[]} children
94
- * @return {*}
95
- */
96
- const renderChildren = children => {
97
- if (!children) {
98
- return [];
99
- }
100
- const nodes = [];
101
- children.forEach(item => {
102
- if (item.type === 'hidden') {
103
- return null;
104
- }
105
- let node = null;
106
- const container = item;
107
- if (container.type === 'container' || container.isContainer || container.container) {
108
- node = renderContainer(container);
109
- } else {
110
- node = renderItem(item);
111
- }
112
- if (node) {
113
- nodes.push(node);
114
- }
115
- });
116
- return nodes;
117
- };
118
- const staticStyle = {};
119
- if (props.model.labelWidth) {
120
- staticStyle[ns.cssVarName('form-item-label-width')] = props.model.labelWidth;
121
- }
122
- return {
123
- ns,
124
- formRef,
125
- staticStyle,
126
- renderItem,
127
- renderContainer,
128
- renderChildren
129
- };
130
- },
131
- render() {
132
- let _slot;
133
- return createVNode(resolveComponent("a-form"), {
134
- "ref": "formRef",
135
- "layout": this.model.layout,
136
- "model": this.c.state.data,
137
- "count": this.c.state.count,
138
- "class": [this.ns.b(), this.ns.is('info', this.model.info === true), this.model.size ? this.ns.m(this.model.size) : null],
139
- "autocomplete": "off",
140
- "style": this.staticStyle
141
- }, _isSlot(_slot = this.model.children.map(item => this.renderContainer(item))) ? _slot : {
142
- default: () => [_slot]
143
- });
144
- }
9
+ var GctForm = /* @__PURE__ */ defineComponent({
10
+ name: "GctForm",
11
+ props: {
12
+ c: {
13
+ type: Object,
14
+ required: true
15
+ },
16
+ model: {
17
+ type: Object,
18
+ required: true
19
+ },
20
+ context: {
21
+ type: Object,
22
+ default: () => ({})
23
+ }
24
+ },
25
+ setup(props) {
26
+ const ns = useNamespace("form");
27
+ provide(FORM_CONTROLLER_INJECT_TAG, props.c);
28
+ const formRef = ref();
29
+ const c = props.c;
30
+ Object.keys(c.item).forEach((key) => {
31
+ const item = c.item[key];
32
+ item.state = reactive(item.state);
33
+ });
34
+ /**
35
+ * 绘制表单项
36
+ *
37
+ * @author zhanghanrui
38
+ * @date 2024-03-26 21:03:52
39
+ * @param {IFormItem} item
40
+ * @return {*}
41
+ */
42
+ const renderItem = (item) => {
43
+ return createVNode(resolveComponent("gct-form-item"), {
44
+ "class": item.class,
45
+ "style": item.style,
46
+ "count": c.state.count,
47
+ "c": c.item[item.name],
48
+ "formModel": props.model,
49
+ "model": item,
50
+ "context": props.context
51
+ }, null);
52
+ };
53
+ /**
54
+ * 绘制表单容器
55
+ *
56
+ * @author zhanghanrui
57
+ * @date 2024-03-26 21:03:17
58
+ * @param {IFormContainer} item
59
+ * @return {*}
60
+ */
61
+ const renderContainer = (item) => {
62
+ const provider = c.provider[item.name];
63
+ if (!provider) {
64
+ console.error(`未找到表单项适配器实例:${item.name}`, item);
65
+ return null;
66
+ }
67
+ if (provider) return h(typeof provider.component === "string" ? resolveComponent(provider.component) : provider.component, {
68
+ key: item.name,
69
+ model: item,
70
+ count: c.state.count,
71
+ c: c.item[item.name],
72
+ data: c.state.data,
73
+ class: item.class,
74
+ style: item.style,
75
+ context: props.context
76
+ }, renderChildren(item.children || []));
77
+ else console.error(`未找到表单容器适配器:${item.name} - ${item.type}`);
78
+ };
79
+ /**
80
+ * 绘制子元素
81
+ *
82
+ * @author zhanghanrui
83
+ * @date 2024-03-26 21:03:22
84
+ * @param {IFormItemBasic[]} children
85
+ * @return {*}
86
+ */
87
+ const renderChildren = (children) => {
88
+ if (!children) return [];
89
+ const nodes = [];
90
+ children.forEach((item) => {
91
+ if (item.type === "hidden") return null;
92
+ let node = null;
93
+ const container = item;
94
+ if (container.type === "container" || container.isContainer || container.container) node = renderContainer(container);
95
+ else node = renderItem(item);
96
+ if (node) nodes.push(node);
97
+ });
98
+ return nodes;
99
+ };
100
+ const staticStyle = {};
101
+ if (props.model.labelWidth) staticStyle[ns.cssVarName("form-item-label-width")] = props.model.labelWidth;
102
+ return {
103
+ ns,
104
+ formRef,
105
+ staticStyle,
106
+ renderItem,
107
+ renderContainer,
108
+ renderChildren
109
+ };
110
+ },
111
+ render() {
112
+ let _slot;
113
+ return createVNode(resolveComponent("a-form"), {
114
+ "ref": "formRef",
115
+ "layout": this.model.layout,
116
+ "model": this.c.state.data,
117
+ "count": this.c.state.count,
118
+ "class": [
119
+ this.ns.b(),
120
+ this.ns.is("info", this.model.info === true),
121
+ this.model.size ? this.ns.m(this.model.size) : null
122
+ ],
123
+ "autocomplete": "off",
124
+ "style": this.staticStyle
125
+ }, _isSlot(_slot = this.model.children.map((item) => this.renderContainer(item))) ? _slot : { default: () => [_slot] });
126
+ }
145
127
  });
146
-
147
- export { GctForm };
128
+ //#endregion
129
+ export { GctForm as default };
@@ -1,33 +1,30 @@
1
- import 'vue';
2
- import { GctFormItem } from './gct-form-item/gct-form-item.mjs';
3
- import { GctForm as GctForm$1 } from './gct-form.mjs';
4
- import { GctFormItemProvider } from './gct-form-item/gct-form-item.provider.mjs';
5
- import { GctFormHiddenItemProvider } from './gct-form-hidden-item/gct-form-hidden-item.provider.mjs';
6
- import GctFormCollapsePane from './gct-form-collapse-pane/index.mjs';
7
- import GctFormCollapse from './gct-form-collapse/index.mjs';
8
- import GctFormGroup from './gct-form-group/index.mjs';
9
- import GctFormLine from './gct-form-line/index.mjs';
10
- import GctFormTab from './gct-form-tab/index.mjs';
11
- import GctFormTabPane from './gct-form-tab-pane/index.mjs';
12
- import GctFormTitleGroup from './gct-form-title-group/index.mjs';
13
-
14
- const GctForm = {
15
- install(app) {
16
- _gct.register.formItem.register("item", () => new GctFormItemProvider());
17
- _gct.register.formItem.register(
18
- "hidden",
19
- () => new GctFormHiddenItemProvider()
20
- );
21
- app.use(GctFormCollapsePane);
22
- app.use(GctFormCollapse);
23
- app.use(GctFormGroup);
24
- app.use(GctFormLine);
25
- app.use(GctFormTab);
26
- app.use(GctFormTabPane);
27
- app.use(GctFormTitleGroup);
28
- app.component(GctForm$1.name, GctForm$1);
29
- app.component(GctFormItem.name, GctFormItem);
30
- }
31
- };
32
-
33
- export { GctForm as default };
1
+ import GctFormItem from "./gct-form-item/gct-form-item.mjs";
2
+ import GctForm from "./gct-form.mjs";
3
+ import { GctFormItemProvider } from "./gct-form-item/gct-form-item.provider.mjs";
4
+ import { GctFormHiddenItemProvider } from "./gct-form-hidden-item/gct-form-hidden-item.provider.mjs";
5
+ import gct_form_collapse_pane_default from "./gct-form-collapse-pane/index.mjs";
6
+ import gct_form_collapse_default from "./gct-form-collapse/index.mjs";
7
+ import gct_form_group_default from "./gct-form-group/index.mjs";
8
+ import gct_form_line_default from "./gct-form-line/index.mjs";
9
+ import gct_form_tab_default from "./gct-form-tab/index.mjs";
10
+ import gct_form_tab_pane_default from "./gct-form-tab-pane/index.mjs";
11
+ import gct_form_title_group_default from "./gct-form-title-group/index.mjs";
12
+ import "./gct-form-hidden-item/index.mjs";
13
+ import "./gct-form-item/index.mjs";
14
+ import "vue";
15
+ //#region src/modules/gct-form/widgets/gct-form/index.ts
16
+ var gct_form_default = { install(app) {
17
+ _gct.register.formItem.register("item", () => new GctFormItemProvider());
18
+ _gct.register.formItem.register("hidden", () => new GctFormHiddenItemProvider());
19
+ app.use(gct_form_collapse_pane_default);
20
+ app.use(gct_form_collapse_default);
21
+ app.use(gct_form_group_default);
22
+ app.use(gct_form_line_default);
23
+ app.use(gct_form_tab_default);
24
+ app.use(gct_form_tab_pane_default);
25
+ app.use(gct_form_title_group_default);
26
+ app.component(GctForm.name, GctForm);
27
+ app.component(GctFormItem.name, GctFormItem);
28
+ } };
29
+ //#endregion
30
+ export { gct_form_default as default };
@@ -1,143 +1,141 @@
1
- import { reactive, onUnmounted } from 'vue';
2
- import { TableState } from '../../state/table/table.state.mjs';
3
- import { TableRowController } from '../table-row/table-row.controller.mjs';
4
- import { QXEvent } from 'qx-util';
5
- import { defaults, isNil } from 'lodash-es';
6
- import { EditorRegisterConst } from '@gct-paas/core';
7
-
8
- class GctTableController {
9
- /**
10
- * Creates an instance of GctTableController.
11
- *
12
- * @author zhanghanrui
13
- * @date 2024-04-15 18:04:10
14
- * @param {ITable} model
15
- */
16
- constructor(model) {
17
- this.model = model;
18
- this.init();
19
- }
20
- evt = new QXEvent();
21
- state = this.createState();
22
- row = {};
23
- editorProviders = {};
24
- init() {
25
- this.initTableItems(this.model.columns);
26
- }
27
- initTableItems(items) {
28
- if (items) {
29
- items.forEach((item) => {
30
- if (item.type === "edit") {
31
- const provider = _gct.register.tableEditor.get(
32
- EditorRegisterConst.PREFIX + item.editor.type
33
- );
34
- if (provider) {
35
- this.editorProviders[item.name] = provider;
36
- }
37
- }
38
- });
39
- }
40
- }
41
- async setData(items) {
42
- await this.destroyControllers();
43
- await this.initControllers(items);
44
- this.state.items = items || [];
45
- }
46
- getData() {
47
- return this.state.items;
48
- }
49
- createState() {
50
- return new TableState();
51
- }
52
- async initControllers(items) {
53
- const all = items.map((row) => {
54
- const id = row[this.model.key];
55
- if (this.row[id]) {
56
- return;
57
- }
58
- const c = new TableRowController(this, this.model, row);
59
- c.state = reactive(c.state);
60
- c.data = reactive(c.data);
61
- this.row[id] = c;
62
- {
63
- const keys = Object.keys(row);
64
- keys.forEach((key) => {
65
- this.state.formData[`${key}___${id}`] = row[key];
66
- });
67
- }
68
- return c.init();
69
- });
70
- await Promise.all(all);
71
- }
72
- async destroyControllers() {
73
- const keys = this.state.items.map((item) => item[this.model.key]);
74
- const filterKeys = Object.keys(this.row).filter((key) => !keys.includes(key));
75
- const all = filterKeys.map((key) => {
76
- const c = this.row[key];
77
- delete this.row[key];
78
- {
79
- const keys2 = Object.keys(c.data);
80
- const id = c.data[this.model.key];
81
- keys2.forEach((key2) => {
82
- const tag = `${key2}___${id}`;
83
- delete this.state.formData[tag];
84
- });
85
- }
86
- return c.destroy();
87
- });
88
- await Promise.all(all);
89
- }
90
- async load(params = {}) {
91
- defaults(params, {
92
- page: this.state.page,
93
- size: this.state.size
94
- });
95
- if (this.model.fetch) {
96
- const items = await this.model.fetch(params, this);
97
- this.state.items = items;
98
- this.destroyControllers();
99
- this.initControllers(this.state.items);
100
- }
101
- }
102
- async reload(params) {
103
- await this.load(params);
104
- }
105
- async search(params) {
106
- await this.reload(params);
107
- }
108
- async refresh(params) {
109
- await this.load(params);
110
- }
111
- destroy() {
112
- this.evt.reset();
113
- }
114
- change(row, name, newVal, oldVal) {
115
- const data = this.state.items.find(
116
- (item) => item[this.model.key] === row.key
117
- );
118
- if (data) {
119
- Object.assign(data, row.data);
120
- this.state.formData[`${name}___${data[this.model.key]}`] = newVal;
121
- this.evt.emit("change", data, name, newVal, oldVal);
122
- }
123
- }
124
- updatePagination(data) {
125
- if (!isNil(data.total)) {
126
- this.state.total = data.total;
127
- }
128
- if (!isNil(data.size)) {
129
- this.state.size = data.size;
130
- }
131
- if (!isNil(data.page)) {
132
- this.state.page = data.page;
133
- }
134
- }
135
- }
1
+ import { TableState } from "../../state/table/table.state.mjs";
2
+ import { TableRowController } from "../table-row/table-row.controller.mjs";
3
+ import { onUnmounted, reactive } from "vue";
4
+ import { QXEvent } from "qx-util";
5
+ import { defaults, isNil } from "lodash-es";
6
+ import { EditorRegisterConst } from "@gct-paas/core";
7
+ //#region src/modules/gct-table/controller/gct-table/gct-table.controller.ts
8
+ /**
9
+ * 表格控制器
10
+ *
11
+ * @author zhanghanrui
12
+ * @date 2024-04-15 18:04:05
13
+ * @export
14
+ * @class GctTableController
15
+ * @implements {ITableController}
16
+ */
17
+ var GctTableController = class {
18
+ evt = new QXEvent();
19
+ state = this.createState();
20
+ row = {};
21
+ editorProviders = {};
22
+ /**
23
+ * Creates an instance of GctTableController.
24
+ *
25
+ * @author zhanghanrui
26
+ * @date 2024-04-15 18:04:10
27
+ * @param {ITable} model
28
+ */
29
+ constructor(model) {
30
+ this.model = model;
31
+ this.init();
32
+ }
33
+ init() {
34
+ this.initTableItems(this.model.columns);
35
+ }
36
+ initTableItems(items) {
37
+ if (items) items.forEach((item) => {
38
+ if (item.type === "edit") {
39
+ const provider = _gct.register.tableEditor.get(EditorRegisterConst.PREFIX + item.editor.type);
40
+ if (provider) this.editorProviders[item.name] = provider;
41
+ }
42
+ });
43
+ }
44
+ async setData(items) {
45
+ await this.destroyControllers();
46
+ await this.initControllers(items);
47
+ this.state.items = items || [];
48
+ }
49
+ getData() {
50
+ return this.state.items;
51
+ }
52
+ createState() {
53
+ return new TableState();
54
+ }
55
+ async initControllers(items) {
56
+ const all = items.map((row) => {
57
+ const id = row[this.model.key];
58
+ if (this.row[id]) return;
59
+ const c = new TableRowController(this, this.model, row);
60
+ c.state = reactive(c.state);
61
+ c.data = reactive(c.data);
62
+ this.row[id] = c;
63
+ Object.keys(row).forEach((key) => {
64
+ this.state.formData[`${key}___${id}`] = row[key];
65
+ });
66
+ return c.init();
67
+ });
68
+ await Promise.all(all);
69
+ }
70
+ async destroyControllers() {
71
+ const keys = this.state.items.map((item) => item[this.model.key]);
72
+ const all = Object.keys(this.row).filter((key) => !keys.includes(key)).map((key) => {
73
+ const c = this.row[key];
74
+ delete this.row[key];
75
+ {
76
+ const keys = Object.keys(c.data);
77
+ const id = c.data[this.model.key];
78
+ keys.forEach((key) => {
79
+ const tag = `${key}___${id}`;
80
+ delete this.state.formData[tag];
81
+ });
82
+ }
83
+ return c.destroy();
84
+ });
85
+ await Promise.all(all);
86
+ }
87
+ async load(params = {}) {
88
+ defaults(params, {
89
+ page: this.state.page,
90
+ size: this.state.size
91
+ });
92
+ if (this.model.fetch) {
93
+ const items = await this.model.fetch(params, this);
94
+ this.state.items = items;
95
+ this.destroyControllers();
96
+ this.initControllers(this.state.items);
97
+ }
98
+ }
99
+ async reload(params) {
100
+ await this.load(params);
101
+ }
102
+ async search(params) {
103
+ await this.reload(params);
104
+ }
105
+ async refresh(params) {
106
+ await this.load(params);
107
+ }
108
+ destroy() {
109
+ this.evt.reset();
110
+ }
111
+ change(row, name, newVal, oldVal) {
112
+ const data = this.state.items.find((item) => item[this.model.key] === row.key);
113
+ if (data) {
114
+ Object.assign(data, row.data);
115
+ this.state.formData[`${name}___${data[this.model.key]}`] = newVal;
116
+ this.evt.emit("change", data, name, newVal, oldVal);
117
+ }
118
+ }
119
+ updatePagination(data) {
120
+ if (!isNil(data.total)) this.state.total = data.total;
121
+ if (!isNil(data.size)) this.state.size = data.size;
122
+ if (!isNil(data.page)) this.state.page = data.page;
123
+ }
124
+ };
125
+ /**
126
+ * 获取编辑表单控制器实例
127
+ *
128
+ * @author zhanghanrui
129
+ * @date 2024-04-01 18:04:13
130
+ * @export
131
+ * @param {IEditForm} model
132
+ * @return {*} {EditFormController}
133
+ */
136
134
  function useTableController(fn) {
137
- const c = fn();
138
- c.state = reactive(c.state);
139
- onUnmounted(() => c.destroy());
140
- return c;
135
+ const c = fn();
136
+ c.state = reactive(c.state);
137
+ onUnmounted(() => c.destroy());
138
+ return c;
141
139
  }
142
-
140
+ //#endregion
143
141
  export { GctTableController, useTableController };
@@ -0,0 +1,5 @@
1
+ import "./table-item/table-item.controller.mjs";
2
+ import "./table-item/table-action-item.controller.mjs";
3
+ import "./table-item/table-edit-item.controller.mjs";
4
+ import "./table-row/table-row.controller.mjs";
5
+ import "./gct-table/gct-table.controller.mjs";
@@ -1,6 +1,15 @@
1
- import { TableItemController } from './table-item.controller.mjs';
2
-
3
- class TableActionItemController extends TableItemController {
4
- }
5
-
1
+ import { TableItemController } from "./table-item.controller.mjs";
2
+ //#region src/modules/gct-table/controller/table-item/table-action-item.controller.ts
3
+ /**
4
+ * 表格操作列控制器
5
+ *
6
+ * @author zhanghanrui
7
+ * @date 2024-04-15 18:04:06
8
+ * @export
9
+ * @class TableActionItemController
10
+ * @extends {TableItemController}
11
+ * @implements {ITableActionItemController}
12
+ */
13
+ var TableActionItemController = class extends TableItemController {};
14
+ //#endregion
6
15
  export { TableActionItemController };