@_tc/template-core 0.0.1-bate.49 → 0.0.1-bate.50

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 (399) hide show
  1. package/cjs/app/controller/view.js +1 -1
  2. package/cjs/app/extend/render-view.js +1 -1
  3. package/cjs/app/middleware.js +1 -1
  4. package/cjs/packages/core/env.js +1 -1
  5. package/cjs/packages/core/loader/router.js +1 -1
  6. package/esm/app/controller/view.js +4 -3
  7. package/esm/app/extend/render-view.js +5 -3
  8. package/esm/app/middleware.js +6 -1
  9. package/esm/packages/core/env.js +1 -1
  10. package/esm/packages/core/loader/router.js +5 -2
  11. package/fe/frontend/apps/dash/Dashboard.d.ts +0 -1
  12. package/fe/frontend/apps/dash/dash.entry.d.ts +0 -1
  13. package/fe/frontend/apps/dash/types.d.ts +0 -11
  14. package/fe/frontend/apps/ui-components/index.d.ts +0 -1
  15. package/fe/frontend/apps/ui-components/ui-components.entry.d.ts +0 -1
  16. package/fe/frontend/extended/SchemaForm/data.d.ts +0 -4
  17. package/fe/frontend/src/api/baseInfo.d.ts +0 -1
  18. package/fe/frontend/src/common/CRUD/CRUD.d.ts +0 -1
  19. package/fe/frontend/src/common/CRUD/index.d.ts +0 -1
  20. package/fe/frontend/src/common/auth/index.d.ts +0 -1
  21. package/fe/frontend/src/common/fetchErrorShow.d.ts +0 -1
  22. package/fe/frontend/src/common/generateMenuData.d.ts +0 -1
  23. package/fe/frontend/src/common/importComponent.d.ts +0 -1
  24. package/fe/frontend/src/common/language.d.ts +0 -1
  25. package/fe/frontend/src/common/logFn/index.d.ts +0 -1
  26. package/fe/frontend/src/common/menu.d.ts +0 -13
  27. package/fe/frontend/src/common/request.d.ts +0 -4
  28. package/fe/frontend/src/common/request.js +1 -1
  29. package/fe/frontend/src/components/AsyncSelect/AsyncSelect.d.ts +0 -1
  30. package/fe/frontend/src/components/AsyncSelect/AsyncSelect.js +5 -4
  31. package/fe/frontend/src/components/AsyncSelect/index.d.ts +0 -1
  32. package/fe/frontend/src/components/BasePage/HeaderView.d.ts +0 -1
  33. package/fe/frontend/src/components/LanguageSwitch/LanguageSwitch.d.ts +0 -1
  34. package/fe/frontend/src/components/LanguageSwitch/index.d.ts +0 -1
  35. package/fe/frontend/src/components/Router/index.d.ts +0 -1
  36. package/fe/frontend/src/components/Router/type.d.ts +0 -1
  37. package/fe/frontend/src/components/ThemeSwitch/ThemeSwitch.d.ts +0 -1
  38. package/fe/frontend/src/components/ThemeSwitch/index.d.ts +0 -1
  39. package/fe/frontend/src/components/index.d.ts +0 -1
  40. package/fe/frontend/src/defaultPages/Iframe/index.d.ts +0 -1
  41. package/fe/frontend/src/defaultPages/NotFoundPage/index.d.ts +0 -1
  42. package/fe/frontend/src/defaultPages/SchemaPage/components/CallCom/DetailPanel.d.ts +0 -1
  43. package/fe/frontend/src/defaultPages/SchemaPage/components/CallCom/PopFrom.d.ts +0 -1
  44. package/fe/frontend/src/defaultPages/SchemaPage/components/CallCom/builtIn.d.ts +0 -16
  45. package/fe/frontend/src/defaultPages/SchemaPage/components/CallCom/data.d.ts +0 -1
  46. package/fe/frontend/src/defaultPages/SchemaPage/components/SchemaSearch/index.d.ts +0 -1
  47. package/fe/frontend/src/defaultPages/SchemaPage/components/SchemaTable/index.d.ts +0 -1
  48. package/fe/frontend/src/defaultPages/SchemaPage/components/SchemaTable/index.js +16 -14
  49. package/fe/frontend/src/defaultPages/SchemaPage/data/eventInfo.d.ts +0 -1
  50. package/fe/frontend/src/defaultPages/SchemaPage/data/index.d.ts +0 -1
  51. package/fe/frontend/src/defaultPages/SchemaPage/hooks/useComConfig.d.ts +0 -1
  52. package/fe/frontend/src/defaultPages/SchemaPage/index.d.ts +0 -1
  53. package/fe/frontend/src/defaultPages/SchemaPage/schemaType.d.ts +0 -10
  54. package/fe/frontend/src/defaultPages/SchemaPage/utils/permissions.d.ts +0 -1
  55. package/fe/frontend/src/defaultPages/SchemaPage/utils/schemaConversion.d.ts +0 -1
  56. package/fe/frontend/src/defaultPages/SchemaPage/utils/validator.d.ts +0 -4
  57. package/fe/frontend/src/defaultPages/SidebarSlotPage/SidebarSlotContainer.d.ts +0 -1
  58. package/fe/frontend/src/defaultPages/SidebarSlotPage/index.d.ts +0 -1
  59. package/fe/frontend/src/defaultPages/SidebarSlotPageTmp.d.ts +0 -1
  60. package/fe/frontend/src/defaultPages/SlotPage/index.d.ts +0 -1
  61. package/fe/frontend/src/exportStore.d.ts +0 -13
  62. package/fe/frontend/src/hooks/useCurrentMenuData.d.ts +0 -9
  63. package/fe/frontend/src/hooks/useRouterParams.d.ts +0 -1
  64. package/fe/frontend/src/index.d.ts +0 -10
  65. package/fe/frontend/src/language/en-US.d.ts +0 -1
  66. package/fe/frontend/src/language/index.d.ts +0 -1
  67. package/fe/frontend/src/language/zh-CN.d.ts +0 -1
  68. package/fe/frontend/src/main.d.ts +1 -14
  69. package/fe/frontend/src/stores/apiFreezer.d.ts +0 -67
  70. package/fe/frontend/src/stores/mode.d.ts +0 -4
  71. package/fe/frontend/src/stores/schemaEventBus.d.ts +0 -20
  72. package/fe/frontend/src/stores/schemaStore.d.ts +0 -15
  73. package/fe/frontend/src/typing/scalability.d.ts +0 -32
  74. package/fe/frontend/src/typing/window.d.ts +0 -1
  75. package/fe/model/types/data/button.d.ts +0 -10
  76. package/fe/model/types/data/component.d.ts +0 -10
  77. package/fe/model/types/data/fetchInfo.d.ts +0 -13
  78. package/fe/model/types/data/schema.d.ts +0 -52
  79. package/fe/model/types/data/search.d.ts +0 -1
  80. package/{model → fe/model}/types/index.d.ts +0 -1
  81. package/fe/model/types/menuType.d.ts +0 -30
  82. package/fe/model/types/model.d.ts +0 -14
  83. package/fe/packages/common/LRUCache.d.ts +1 -0
  84. package/fe/packages/common/array/index.d.ts +0 -1
  85. package/fe/packages/common/cache/LRUCache.d.ts +0 -1
  86. package/fe/packages/common/cache/index.d.ts +0 -1
  87. package/fe/packages/common/guards/index.d.ts +0 -1
  88. package/fe/packages/common/http/index.d.ts +0 -1
  89. package/fe/packages/common/i18n/default.d.ts +0 -6
  90. package/fe/packages/common/i18n/en-US.d.ts +0 -6
  91. package/fe/packages/common/i18n/index.d.ts +0 -25
  92. package/fe/packages/common/i18n/locales.d.ts +0 -1
  93. package/fe/packages/common/i18n/types.d.ts +0 -25
  94. package/fe/packages/common/index.d.ts +0 -1
  95. package/fe/packages/common/log/index.d.ts +0 -1
  96. package/fe/packages/common/number/index.d.ts +0 -1
  97. package/fe/packages/common/object/filterEmpty.d.ts +0 -1
  98. package/fe/packages/common/object/filtereEmpty.d.ts +1 -0
  99. package/fe/packages/common/object/index.d.ts +0 -1
  100. package/fe/packages/common/string/index.d.ts +0 -1
  101. package/fe/packages/common/types/index.d.ts +0 -1
  102. package/fe/packages/react/hooks/useBreadcrumb.d.ts +0 -1
  103. package/fe/packages/react/hooks/useExecuteOnce.d.ts +1 -20
  104. package/fe/packages/react/hooks/useInit.d.ts +0 -1
  105. package/fe/packages/react/hooks/useLanguage.d.ts +0 -1
  106. package/fe/packages/react/hooks/usePagination.d.ts +0 -1
  107. package/fe/packages/react/hooks/useRefState.d.ts +0 -13
  108. package/fe/packages/react/hooks/useWatch.d.ts +0 -9
  109. package/fe/packages/react/ui/components/Button/Button.d.ts +0 -34
  110. package/fe/packages/react/ui/components/Button/SubmitButton.d.ts +0 -5
  111. package/fe/packages/react/ui/components/Button/index.d.ts +0 -1
  112. package/fe/packages/react/ui/components/Card/Card.d.ts +0 -5
  113. package/fe/packages/react/ui/components/Card/index.d.ts +0 -1
  114. package/fe/packages/react/ui/components/Checkbox/Checkbox.d.ts +0 -1
  115. package/fe/packages/react/ui/components/Checkbox/index.d.ts +0 -1
  116. package/fe/packages/react/ui/components/ConfirmDialog/ConfirmDialog.d.ts +0 -9
  117. package/fe/packages/react/ui/components/ConfirmDialog/index.d.ts +0 -1
  118. package/fe/packages/react/ui/components/DataTable/ActionBtn.d.ts +0 -1
  119. package/fe/packages/react/ui/components/DataTable/index.d.ts +0 -20
  120. package/fe/packages/react/ui/components/Date/Calendar.d.ts +0 -14
  121. package/fe/packages/react/ui/components/Date/Date.d.ts +0 -12
  122. package/fe/packages/react/ui/components/Date/DateTestPage.d.ts +0 -1
  123. package/fe/packages/react/ui/components/Date/LocaleContext.d.ts +0 -5
  124. package/fe/packages/react/ui/components/Date/LocaleProvider.d.ts +0 -12
  125. package/fe/packages/react/ui/components/Date/TimePicker.d.ts +0 -1
  126. package/fe/packages/react/ui/components/Date/data.d.ts +0 -1
  127. package/fe/packages/react/ui/components/Date/dateLocaleStore.d.ts +0 -7
  128. package/fe/packages/react/ui/components/Date/dropdownPositioning.d.ts +0 -1
  129. package/fe/packages/react/ui/components/Date/index.d.ts +0 -1
  130. package/fe/packages/react/ui/components/Date/locales.d.ts +0 -20
  131. package/fe/packages/react/ui/components/Drawer/Drawer.d.ts +0 -7
  132. package/fe/packages/react/ui/components/Drawer/index.d.ts +0 -1
  133. package/fe/packages/react/ui/components/Dropdown/Dropdown.d.ts +0 -2
  134. package/fe/packages/react/ui/components/Dropdown/index.d.ts +0 -1
  135. package/fe/packages/react/ui/components/Form/Form.d.ts +0 -7
  136. package/fe/packages/react/ui/components/Form/FormItem.d.ts +0 -22
  137. package/fe/packages/react/ui/components/Form/SchemaForm/data.d.ts +0 -1
  138. package/fe/packages/react/ui/components/Form/SchemaForm/defaultComponentsMap.d.ts +0 -1
  139. package/fe/packages/react/ui/components/Form/SchemaForm/index.d.ts +0 -94
  140. package/fe/packages/react/ui/components/Form/index.d.ts +0 -1
  141. package/fe/packages/react/ui/components/Form/useForm.d.ts +0 -1
  142. package/fe/packages/react/ui/components/ImagePreview/ImagePreview.d.ts +0 -1
  143. package/fe/packages/react/ui/components/ImagePreview/PreviewImage.d.ts +0 -4
  144. package/fe/packages/react/ui/components/ImagePreview/index.d.ts +0 -1
  145. package/fe/packages/react/ui/components/Input/Input.d.ts +0 -23
  146. package/fe/packages/react/ui/components/Input/index.d.ts +0 -1
  147. package/fe/packages/react/ui/components/InputNumber/InputNumber.d.ts +0 -3
  148. package/fe/packages/react/ui/components/InputNumber/index.d.ts +0 -1
  149. package/fe/packages/react/ui/components/InputNumber/inputNumberUtils.d.ts +0 -1
  150. package/fe/packages/react/ui/components/Label/Label.d.ts +0 -30
  151. package/fe/packages/react/ui/components/Label/index.d.ts +0 -1
  152. package/fe/packages/react/ui/components/Layout/Layout.d.ts +0 -1
  153. package/fe/packages/react/ui/components/Layout/index.d.ts +0 -1
  154. package/fe/packages/react/ui/components/Loading/Loading.d.ts +0 -12
  155. package/fe/packages/react/ui/components/Loading/index.d.ts +0 -1
  156. package/fe/packages/react/ui/components/Menu/Menu.d.ts +0 -1
  157. package/fe/packages/react/ui/components/Menu/MenuContext.d.ts +0 -1
  158. package/fe/packages/react/ui/components/Menu/MenuItem.d.ts +0 -1
  159. package/fe/packages/react/ui/components/Menu/SubMenu.d.ts +0 -8
  160. package/fe/packages/react/ui/components/Menu/index.d.ts +0 -1
  161. package/fe/packages/react/ui/components/Menu/menuTypes.d.ts +0 -2
  162. package/fe/packages/react/ui/components/Menu/utils.d.ts +0 -1
  163. package/fe/packages/react/ui/components/Message/Message.d.ts +0 -8
  164. package/fe/packages/react/ui/components/Message/MessageManager.d.ts +0 -1
  165. package/fe/packages/react/ui/components/Message/data.d.ts +0 -1
  166. package/fe/packages/react/ui/components/Message/index.d.ts +0 -1
  167. package/fe/packages/react/ui/components/Modal/Modal.d.ts +0 -7
  168. package/fe/packages/react/ui/components/Modal/ModalManager.d.ts +0 -13
  169. package/fe/packages/react/ui/components/Modal/index.d.ts +0 -1
  170. package/fe/packages/react/ui/components/Notification/Notification.d.ts +0 -1
  171. package/fe/packages/react/ui/components/Notification/index.d.ts +0 -1
  172. package/fe/packages/react/ui/components/Overlay/Overlay.d.ts +0 -4
  173. package/fe/packages/react/ui/components/Overlay/index.d.ts +0 -1
  174. package/fe/packages/react/ui/components/Pagination/Pagination.d.ts +0 -8
  175. package/fe/packages/react/ui/components/Pagination/index.d.ts +0 -1
  176. package/fe/packages/react/ui/components/Popup/Popup.d.ts +0 -1
  177. package/fe/packages/react/ui/components/Popup/index.d.ts +0 -1
  178. package/fe/packages/react/ui/components/Radio/Radio.d.ts +0 -1
  179. package/fe/packages/react/ui/components/Radio/RadioGroup.d.ts +0 -1
  180. package/fe/packages/react/ui/components/Radio/index.d.ts +0 -1
  181. package/fe/packages/react/ui/components/Search/Search.d.ts +0 -4
  182. package/fe/packages/react/ui/components/Search/index.d.ts +0 -1
  183. package/fe/packages/react/ui/components/Select/Select.d.ts +1 -6
  184. package/fe/packages/react/ui/components/Select/Select.js +19 -13
  185. package/fe/packages/react/ui/components/Select/dropdownPositioning.d.ts +0 -1
  186. package/fe/packages/react/ui/components/Select/index.d.ts +0 -1
  187. package/fe/packages/react/ui/components/Skeleton/Skeleton.d.ts +0 -16
  188. package/fe/packages/react/ui/components/Skeleton/index.d.ts +0 -1
  189. package/fe/packages/react/ui/components/Switch/Switch.d.ts +0 -1
  190. package/fe/packages/react/ui/components/Switch/index.d.ts +0 -1
  191. package/fe/packages/react/ui/components/TableSearch/TableSearch.d.ts +0 -38
  192. package/fe/packages/react/ui/components/TableSearch/index.d.ts +0 -1
  193. package/fe/packages/react/ui/components/TableSearch/lang.d.ts +0 -1
  194. package/fe/packages/react/ui/components/TableSearch/tableSearchLocaleStore.d.ts +0 -1
  195. package/fe/packages/react/ui/components/Tabs/Tabs.d.ts +0 -1
  196. package/fe/packages/react/ui/components/Tabs/index.d.ts +0 -1
  197. package/fe/packages/react/ui/components/Textarea/Textarea.d.ts +0 -47
  198. package/fe/packages/react/ui/components/Textarea/index.d.ts +0 -1
  199. package/fe/packages/react/ui/components/Tooltip/Tooltip.d.ts +0 -17
  200. package/fe/packages/react/ui/components/Tooltip/index.d.ts +0 -1
  201. package/fe/packages/react/ui/components/TreeSelect/TreeSelect.d.ts +0 -7
  202. package/fe/packages/react/ui/components/TreeSelect/index.d.ts +0 -1
  203. package/fe/packages/react/ui/components/Upload/ImageUpload.d.ts +0 -1
  204. package/fe/packages/react/ui/components/Upload/Upload.d.ts +0 -28
  205. package/fe/packages/react/ui/components/Upload/index.d.ts +0 -1
  206. package/fe/packages/react/ui/components/breadcrumb/breadcrumb.d.ts +0 -1
  207. package/fe/packages/react/ui/components/breadcrumb/index.d.ts +0 -1
  208. package/fe/packages/react/ui/components/hooks/useDropdownPositioning.d.ts +0 -7
  209. package/fe/packages/react/ui/components/hooks/useInputController.d.ts +0 -4
  210. package/fe/packages/react/ui/components/index.d.ts +0 -1
  211. package/fe/packages/react/ui/components/table/index.d.ts +0 -1
  212. package/fe/packages/react/ui/components/table/table.d.ts +0 -1
  213. package/fe/packages/react/ui/components/testPage/MenuTestPage.d.ts +0 -1
  214. package/fe/packages/react/ui/components/testPage/index.d.ts +0 -1
  215. package/fe/packages/react/ui/i18n/I18nProvider.d.ts +0 -19
  216. package/fe/packages/react/ui/i18n/index.d.ts +0 -1
  217. package/fe/packages/react/ui/i18n/useI18n.d.ts +0 -5
  218. package/fe/packages/react/ui/index.d.ts +0 -1
  219. package/fe/packages/react/ui/lib/createStoreHook.d.ts +0 -1
  220. package/fe/packages/react/ui/lib/export.d.ts +0 -45
  221. package/fe/packages/react/ui/lib/utils.d.ts +0 -25
  222. package/fe/packages/react/ui/stores/breadcrumb.d.ts +0 -1
  223. package/fe/packages/react/ui/stores/language.d.ts +0 -1
  224. package/fe/packages/react/ui/types/index.d.ts +0 -1
  225. package/fe/typings/type.d.ts +0 -1
  226. package/model/frontend/extended/SchemaForm/data.d.ts +9 -0
  227. package/model/frontend/src/common/auth/index.d.ts +6 -0
  228. package/model/frontend/src/common/fetchErrorShow.d.ts +2 -0
  229. package/model/frontend/src/common/language.d.ts +2 -0
  230. package/model/frontend/src/common/logFn/index.d.ts +4 -0
  231. package/model/frontend/src/common/request.d.ts +33 -0
  232. package/model/frontend/src/components/AsyncSelect/AsyncSelect.d.ts +7 -0
  233. package/model/frontend/src/components/AsyncSelect/index.d.ts +3 -0
  234. package/model/frontend/src/defaultPages/SchemaPage/components/CallCom/DetailPanel.d.ts +6 -0
  235. package/model/frontend/src/defaultPages/SchemaPage/components/CallCom/PopFrom.d.ts +12 -0
  236. package/model/frontend/src/defaultPages/SchemaPage/components/CallCom/builtIn.d.ts +28 -0
  237. package/model/frontend/src/defaultPages/SchemaPage/data/eventInfo.d.ts +7 -0
  238. package/model/frontend/src/defaultPages/SchemaPage/data/index.d.ts +2 -0
  239. package/model/frontend/src/defaultPages/SchemaPage/hooks/useComConfig.d.ts +9 -0
  240. package/model/frontend/src/defaultPages/SchemaPage/schemaType.d.ts +41 -0
  241. package/model/frontend/src/defaultPages/SchemaPage/utils/permissions.d.ts +2 -0
  242. package/model/frontend/src/defaultPages/SchemaPage/utils/validator.d.ts +7 -0
  243. package/model/frontend/src/language/en-US.d.ts +88 -0
  244. package/model/frontend/src/language/index.d.ts +72 -0
  245. package/model/frontend/src/language/zh-CN.d.ts +88 -0
  246. package/model/frontend/src/stores/apiFreezer.d.ts +26 -0
  247. package/model/frontend/src/stores/schemaEventBus.d.ts +22 -0
  248. package/model/frontend/src/stores/schemaStore.d.ts +32 -0
  249. package/model/frontend/src/typing/scalability.d.ts +15 -0
  250. package/model/frontend/src/typing/window.d.ts +8 -0
  251. package/model/{index.d.ts → model/index.d.ts} +0 -1
  252. package/model/model/test.d.ts +1 -0
  253. package/model/{types → model/types}/data/button.d.ts +1 -11
  254. package/model/{types → model/types}/data/component.d.ts +3 -13
  255. package/model/model/types/data/fetchInfo.d.ts +7 -0
  256. package/model/{types → model/types}/data/schema.d.ts +2 -54
  257. package/model/{types → model/types}/data/search.d.ts +1 -2
  258. package/model/model/types/index.d.ts +2 -0
  259. package/model/{types → model/types}/menuType.d.ts +0 -30
  260. package/model/{types → model/types}/model.d.ts +0 -14
  261. package/model/packages/common/array/index.d.ts +6 -0
  262. package/model/packages/common/cache/LRUCache.d.ts +12 -0
  263. package/model/packages/common/cache/index.d.ts +1 -0
  264. package/model/packages/common/guards/index.d.ts +8 -0
  265. package/model/packages/common/http/index.d.ts +89 -0
  266. package/model/packages/common/i18n/default.d.ts +86 -0
  267. package/model/packages/common/i18n/en-US.d.ts +86 -0
  268. package/model/packages/common/i18n/index.d.ts +18 -0
  269. package/model/packages/common/i18n/locales.d.ts +7 -0
  270. package/model/packages/common/i18n/types.d.ts +46 -0
  271. package/model/packages/common/index.d.ts +10 -0
  272. package/model/packages/common/log/index.d.ts +32 -0
  273. package/model/packages/common/number/index.d.ts +2 -0
  274. package/model/packages/common/object/filterEmpty.d.ts +2 -0
  275. package/model/packages/common/object/index.d.ts +4 -0
  276. package/model/packages/common/string/index.d.ts +3 -0
  277. package/model/packages/common/types/index.d.ts +3 -0
  278. package/model/packages/react/hooks/useBreadcrumb.d.ts +9 -0
  279. package/model/packages/react/hooks/useExecuteOnce.d.ts +11 -0
  280. package/model/packages/react/hooks/useLanguage.d.ts +1 -0
  281. package/model/packages/react/ui/components/Button/Button.d.ts +24 -0
  282. package/model/packages/react/ui/components/Button/SubmitButton.d.ts +8 -0
  283. package/model/packages/react/ui/components/Button/index.d.ts +3 -0
  284. package/model/packages/react/ui/components/Card/Card.d.ts +10 -0
  285. package/model/packages/react/ui/components/Card/index.d.ts +1 -0
  286. package/model/packages/react/ui/components/Checkbox/Checkbox.d.ts +16 -0
  287. package/model/packages/react/ui/components/Checkbox/index.d.ts +1 -0
  288. package/model/packages/react/ui/components/ConfirmDialog/ConfirmDialog.d.ts +11 -0
  289. package/model/packages/react/ui/components/ConfirmDialog/index.d.ts +1 -0
  290. package/model/packages/react/ui/components/DataTable/ActionBtn.d.ts +7 -0
  291. package/model/packages/react/ui/components/DataTable/index.d.ts +32 -0
  292. package/model/packages/react/ui/components/Date/Calendar.d.ts +21 -0
  293. package/model/packages/react/ui/components/Date/Date.d.ts +26 -0
  294. package/model/packages/react/ui/components/Date/LocaleContext.d.ts +1 -0
  295. package/model/packages/react/ui/components/Date/LocaleProvider.d.ts +7 -0
  296. package/model/packages/react/ui/components/Date/TimePicker.d.ts +6 -0
  297. package/model/packages/react/ui/components/Date/data.d.ts +5 -0
  298. package/model/packages/react/ui/components/Date/dateLocaleStore.d.ts +9 -0
  299. package/model/packages/react/ui/components/Date/dropdownPositioning.d.ts +2 -0
  300. package/model/packages/react/ui/components/Date/index.d.ts +5 -0
  301. package/model/packages/react/ui/components/Date/locales.d.ts +23 -0
  302. package/model/packages/react/ui/components/Drawer/Drawer.d.ts +22 -0
  303. package/model/packages/react/ui/components/Drawer/index.d.ts +2 -0
  304. package/model/packages/react/ui/components/Dropdown/Dropdown.d.ts +24 -0
  305. package/model/packages/react/ui/components/Dropdown/index.d.ts +1 -0
  306. package/model/packages/react/ui/components/Form/Form.d.ts +11 -0
  307. package/model/packages/react/ui/components/Form/FormItem.d.ts +19 -0
  308. package/model/packages/react/ui/components/Form/SchemaForm/data.d.ts +39 -0
  309. package/model/packages/react/ui/components/Form/SchemaForm/index.d.ts +59 -0
  310. package/model/packages/react/ui/components/Form/index.d.ts +4 -0
  311. package/model/packages/react/ui/components/Form/useForm.d.ts +2 -0
  312. package/model/packages/react/ui/components/ImagePreview/ImagePreview.d.ts +7 -0
  313. package/model/packages/react/ui/components/ImagePreview/PreviewImage.d.ts +7 -0
  314. package/model/packages/react/ui/components/ImagePreview/index.d.ts +2 -0
  315. package/model/packages/react/ui/components/Input/Input.d.ts +22 -0
  316. package/model/packages/react/ui/components/Input/index.d.ts +1 -0
  317. package/model/packages/react/ui/components/InputNumber/InputNumber.d.ts +25 -0
  318. package/model/packages/react/ui/components/InputNumber/index.d.ts +1 -0
  319. package/model/packages/react/ui/components/InputNumber/inputNumberUtils.d.ts +29 -0
  320. package/model/packages/react/ui/components/Label/Label.d.ts +21 -0
  321. package/model/packages/react/ui/components/Label/index.d.ts +2 -0
  322. package/model/packages/react/ui/components/Layout/Layout.d.ts +10 -0
  323. package/model/packages/react/ui/components/Layout/index.d.ts +1 -0
  324. package/model/packages/react/ui/components/Loading/Loading.d.ts +13 -0
  325. package/model/packages/react/ui/components/Loading/index.d.ts +1 -0
  326. package/model/packages/react/ui/components/Menu/Menu.d.ts +17 -0
  327. package/model/packages/react/ui/components/Menu/MenuContext.d.ts +38 -0
  328. package/model/packages/react/ui/components/Menu/MenuItem.d.ts +2 -0
  329. package/model/packages/react/ui/components/Menu/SubMenu.d.ts +2 -0
  330. package/model/packages/react/ui/components/Menu/index.d.ts +8 -0
  331. package/model/packages/react/ui/components/Menu/menuTypes.d.ts +57 -0
  332. package/model/packages/react/ui/components/Menu/utils.d.ts +1 -0
  333. package/model/packages/react/ui/components/Message/Message.d.ts +12 -0
  334. package/model/packages/react/ui/components/Message/MessageManager.d.ts +36 -0
  335. package/model/packages/react/ui/components/Message/data.d.ts +1 -0
  336. package/model/packages/react/ui/components/Message/index.d.ts +2 -0
  337. package/model/packages/react/ui/components/Modal/Modal.d.ts +20 -0
  338. package/model/packages/react/ui/components/Modal/ModalManager.d.ts +46 -0
  339. package/model/packages/react/ui/components/Modal/index.d.ts +3 -0
  340. package/model/packages/react/ui/components/Notification/Notification.d.ts +13 -0
  341. package/model/packages/react/ui/components/Notification/index.d.ts +1 -0
  342. package/model/packages/react/ui/components/Overlay/Overlay.d.ts +19 -0
  343. package/model/packages/react/ui/components/Overlay/index.d.ts +2 -0
  344. package/model/packages/react/ui/components/Pagination/Pagination.d.ts +10 -0
  345. package/model/packages/react/ui/components/Pagination/index.d.ts +1 -0
  346. package/model/packages/react/ui/components/Popup/Popup.d.ts +25 -0
  347. package/model/packages/react/ui/components/Popup/index.d.ts +1 -0
  348. package/model/packages/react/ui/components/Radio/Radio.d.ts +8 -0
  349. package/model/packages/react/ui/components/Radio/RadioGroup.d.ts +18 -0
  350. package/model/packages/react/ui/components/Radio/index.d.ts +2 -0
  351. package/model/packages/react/ui/components/Search/Search.d.ts +13 -0
  352. package/model/packages/react/ui/components/Search/index.d.ts +1 -0
  353. package/model/packages/react/ui/components/Select/Select.d.ts +21 -0
  354. package/model/packages/react/ui/components/Select/dropdownPositioning.d.ts +2 -0
  355. package/model/packages/react/ui/components/Select/index.d.ts +1 -0
  356. package/model/packages/react/ui/components/Skeleton/Skeleton.d.ts +12 -0
  357. package/model/packages/react/ui/components/Skeleton/index.d.ts +2 -0
  358. package/model/packages/react/ui/components/Switch/Switch.d.ts +10 -0
  359. package/model/packages/react/ui/components/Switch/index.d.ts +1 -0
  360. package/model/packages/react/ui/components/TableSearch/TableSearch.d.ts +30 -0
  361. package/model/packages/react/ui/components/TableSearch/index.d.ts +2 -0
  362. package/model/packages/react/ui/components/TableSearch/lang.d.ts +14 -0
  363. package/model/packages/react/ui/components/TableSearch/tableSearchLocaleStore.d.ts +8 -0
  364. package/model/packages/react/ui/components/Tabs/Tabs.d.ts +15 -0
  365. package/model/packages/react/ui/components/Tabs/index.d.ts +1 -0
  366. package/model/packages/react/ui/components/Textarea/Textarea.d.ts +20 -0
  367. package/model/packages/react/ui/components/Textarea/index.d.ts +1 -0
  368. package/model/packages/react/ui/components/Tooltip/Tooltip.d.ts +8 -0
  369. package/model/packages/react/ui/components/Tooltip/index.d.ts +1 -0
  370. package/model/packages/react/ui/components/TreeSelect/TreeSelect.d.ts +18 -0
  371. package/model/packages/react/ui/components/TreeSelect/index.d.ts +1 -0
  372. package/model/packages/react/ui/components/Upload/ImageUpload.d.ts +8 -0
  373. package/model/packages/react/ui/components/Upload/Upload.d.ts +13 -0
  374. package/model/packages/react/ui/components/Upload/index.d.ts +2 -0
  375. package/model/packages/react/ui/components/breadcrumb/breadcrumb.d.ts +34 -0
  376. package/model/packages/react/ui/components/breadcrumb/index.d.ts +1 -0
  377. package/model/packages/react/ui/components/hooks/useDropdownPositioning.d.ts +42 -0
  378. package/model/packages/react/ui/components/hooks/useInputController.d.ts +20 -0
  379. package/model/packages/react/ui/components/index.d.ts +35 -0
  380. package/model/packages/react/ui/components/table/index.d.ts +1 -0
  381. package/model/packages/react/ui/components/table/table.d.ts +29 -0
  382. package/model/packages/react/ui/i18n/I18nProvider.d.ts +12 -0
  383. package/model/packages/react/ui/i18n/index.d.ts +3 -0
  384. package/model/packages/react/ui/i18n/useI18n.d.ts +8 -0
  385. package/model/packages/react/ui/index.d.ts +4 -0
  386. package/model/packages/react/ui/lib/createStoreHook.d.ts +8 -0
  387. package/model/packages/react/ui/lib/export.d.ts +21 -0
  388. package/model/packages/react/ui/lib/utils.d.ts +9 -0
  389. package/model/packages/react/ui/stores/breadcrumb.d.ts +14 -0
  390. package/model/packages/react/ui/stores/language.d.ts +3 -0
  391. package/model/packages/react/ui/types/index.d.ts +1 -0
  392. package/model/typings/type.d.ts +4 -0
  393. package/package.json +1 -1
  394. package/types/app/controller/view.d.ts +2 -1
  395. package/types/app/extend/render-view.d.ts +2 -1
  396. package/fe/packages/react/hooks/useWatch.test.d.ts +0 -2
  397. package/fe/packages/react/ui/components/InputNumber/inputNumberUtils.test.d.ts +0 -2
  398. package/model/test.d.ts +0 -2
  399. package/model/types/data/fetchInfo.d.ts +0 -20
@@ -0,0 +1,32 @@
1
+ export declare const ANSI_RESET = "\u001B[0m";
2
+ export declare const ansiColors: {
3
+ readonly black: "\u001B[30m";
4
+ readonly red: "\u001B[31m";
5
+ readonly green: "\u001B[32m";
6
+ readonly yellow: "\u001B[33m";
7
+ readonly blue: "\u001B[34m";
8
+ readonly magenta: "\u001B[35m";
9
+ readonly pink: "\u001B[95m";
10
+ readonly cyan: "\u001B[36m";
11
+ readonly white: "\u001B[37m";
12
+ readonly gray: "\u001B[90m";
13
+ };
14
+ export type LogColor = keyof typeof ansiColors;
15
+ export type ColorLogOptions = {
16
+ color?: LogColor;
17
+ prefix?: string;
18
+ suffix?: string;
19
+ };
20
+ export type ColorLogAffixes = Omit<ColorLogOptions, 'color'>;
21
+ export declare const colorize: (message: unknown, color?: LogColor) => string;
22
+ export declare const joinColorized: (...messages: readonly unknown[]) => string;
23
+ export declare const logJoinColorized: (...messages: readonly unknown[]) => void;
24
+ export declare function colorLog(color: LogColor, ...data: unknown[]): void;
25
+ export declare function colorLog(...data: unknown[]): void;
26
+ export declare const logColor: (color: LogColor, ...data: unknown[]) => void;
27
+ export declare const logColorized: (...messages: readonly unknown[]) => void;
28
+ export declare const logGreen: (...data: unknown[]) => void;
29
+ export declare const logYellow: (...data: unknown[]) => void;
30
+ export declare const logPink: (...data: unknown[]) => void;
31
+ export declare const logWhite: (...data: unknown[]) => void;
32
+ export declare const logRed: (...data: unknown[]) => void;
@@ -0,0 +1,2 @@
1
+ export declare const clamp: (value: number, min: number, max: number) => number;
2
+ export declare const toFiniteNumber: (value: unknown, fallback?: number) => number;
@@ -0,0 +1,2 @@
1
+ export declare function filterEmpty<T>(data: T): T | undefined;
2
+ export declare const filtereEmpty: typeof filterEmpty;
@@ -0,0 +1,4 @@
1
+ export * from "./filterEmpty";
2
+ export declare const pick: <T extends object, K extends keyof T>(target: T, keys: readonly K[]) => Pick<T, K>;
3
+ export declare const omit: <T extends object, K extends keyof T>(target: T, keys: readonly K[]) => Omit<T, K>;
4
+ export declare const mapValues: <T extends object, TResult>(target: T, mapper: <K extends keyof T>(value: T[K], key: K) => TResult) => { [K in keyof T]: TResult; };
@@ -0,0 +1,3 @@
1
+ export declare const isBlank: (value: string | null | undefined) => boolean;
2
+ export declare const capitalize: (value: string) => string;
3
+ export declare const kebabCase: (value: string) => string;
@@ -0,0 +1,3 @@
1
+ export type Maybe<T> = T | null | undefined;
2
+ export type Primitive = string | number | boolean | bigint | symbol | null | undefined;
3
+ export type Dictionary<T = unknown> = Record<string, T>;
@@ -0,0 +1,9 @@
1
+ export declare const useBreadcrumb: import("zustand").UseBoundStore<import("zustand").StoreApi<{
2
+ items: import("../../../../fe/packages/react/ui/index").BreadcrumbItemData[];
3
+ } & {
4
+ setItems: (items: import("../../../../fe/packages/react/ui/index").BreadcrumbItemData[]) => void;
5
+ addItem: (item: import("../../../../fe/packages/react/ui/index").BreadcrumbItemData) => void;
6
+ removeItem: (id: string | number) => void;
7
+ clearItems: () => void;
8
+ setActiveItem: (id: string | number) => void;
9
+ }>>;
@@ -0,0 +1,11 @@
1
+ export declare const executionPhaseType: {
2
+ readonly mount: "mount";
3
+ readonly render: "render";
4
+ readonly unMount: "unMount";
5
+ };
6
+ type ExecutionPhaseTypeKeys = keyof typeof executionPhaseType;
7
+ export type ExecutionPhaseType = (typeof executionPhaseType)[ExecutionPhaseTypeKeys];
8
+ export default function useExecuteOnce<T>(factory: () => T, options?: {
9
+ executionPhase: ExecutionPhaseType[] | ExecutionPhaseType;
10
+ }): T | null;
11
+ export {};
@@ -0,0 +1 @@
1
+ export declare function useLanguage(): import("../../../../fe/packages/react/ui/index").I18nStore;
@@ -0,0 +1,24 @@
1
+ import type { AnchorHTMLAttributes, ButtonHTMLAttributes, ReactNode } from "react";
2
+ export type ButtonVariant = 'default' | 'primary' | 'dashed' | 'text' | 'link';
3
+ export type ButtonState = 'danger' | 'ghost';
4
+ export type ButtonSize = 'sm' | 'md' | 'lg';
5
+ type ButtonCommonProps = {
6
+ size?: ButtonSize;
7
+ state?: ButtonState;
8
+ disabled?: boolean;
9
+ loading?: boolean;
10
+ leftIcon?: ReactNode;
11
+ rightIcon?: ReactNode;
12
+ noUnderline?: boolean;
13
+ children?: ReactNode;
14
+ };
15
+ type ButtonElementVariant = Exclude<ButtonVariant, 'link'>;
16
+ export type ButtonProps = ButtonElementProps | ButtonLinkProps;
17
+ export type ButtonElementProps = ButtonCommonProps & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'disabled'> & {
18
+ variant?: ButtonElementVariant;
19
+ };
20
+ export type ButtonLinkProps = ButtonCommonProps & AnchorHTMLAttributes<HTMLAnchorElement> & {
21
+ variant: 'link';
22
+ };
23
+ declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
24
+ export { Button };
@@ -0,0 +1,8 @@
1
+ import type { MOmit } from "../../../../../../fe/packages/react/ui/types/index";
2
+ import { type ButtonElementProps } from "./Button";
3
+ export type SubmitButtonProps = MOmit<ButtonElementProps, 'onClick'> & {
4
+ onClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => Promise<void | boolean> | void;
5
+ };
6
+ declare const SubmitButton: (props: SubmitButtonProps) => import("react/jsx-runtime").JSX.Element;
7
+ declare const AsynchronousButton: (props: SubmitButtonProps) => import("react/jsx-runtime").JSX.Element;
8
+ export { AsynchronousButton, SubmitButton };
@@ -0,0 +1,3 @@
1
+ export { Button } from "./Button";
2
+ export type { ButtonElementProps, ButtonLinkProps, ButtonProps, ButtonSize, ButtonState, ButtonVariant } from "./Button";
3
+ export * from "./SubmitButton";
@@ -0,0 +1,10 @@
1
+ import type { ReactNode } from "react";
2
+ export type CardProps = {
3
+ header?: ReactNode;
4
+ footer?: ReactNode;
5
+ children?: ReactNode;
6
+ className?: string;
7
+ hoverable?: boolean;
8
+ };
9
+ declare const Card: import("react").ForwardRefExoticComponent<CardProps & import("react").RefAttributes<HTMLDivElement>>;
10
+ export { Card };
@@ -0,0 +1 @@
1
+ export * from "./Card";
@@ -0,0 +1,16 @@
1
+ import type { ChangeEvent, InputHTMLAttributes } from "react";
2
+ export type CheckboxProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'value'> & {
3
+ checked?: boolean;
4
+ defaultChecked?: boolean;
5
+ indeterminate?: boolean;
6
+ onChange?: (checked: boolean, e: ChangeEvent<HTMLInputElement>) => void;
7
+ value?: boolean;
8
+ };
9
+ declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "value" | "onChange"> & {
10
+ checked?: boolean;
11
+ defaultChecked?: boolean;
12
+ indeterminate?: boolean;
13
+ onChange?: (checked: boolean, e: ChangeEvent<HTMLInputElement>) => void;
14
+ value?: boolean;
15
+ } & import("react").RefAttributes<HTMLInputElement>>;
16
+ export { Checkbox };
@@ -0,0 +1 @@
1
+ export * from "./Checkbox";
@@ -0,0 +1,11 @@
1
+ export interface ConfirmDialogProps {
2
+ open: boolean;
3
+ title?: string;
4
+ content: string;
5
+ okText?: string;
6
+ cancelText?: string;
7
+ loading?: boolean;
8
+ onOk: () => void | Promise<void>;
9
+ onCancel: () => void;
10
+ }
11
+ export declare function ConfirmDialog({ open, title, content, okText, cancelText, loading, onOk, onCancel, }: ConfirmDialogProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./ConfirmDialog";
@@ -0,0 +1,7 @@
1
+ import { type DropdownItem } from "../Dropdown";
2
+ export type ActionOverflow = 'auto' | 'dropdown' | 'inline';
3
+ export interface ActionBtnProps {
4
+ actions: DropdownItem[];
5
+ overflow?: ActionOverflow;
6
+ }
7
+ export declare const ActionBtn: ({ actions, overflow }: ActionBtnProps) => import("react/jsx-runtime").JSX.Element | "-";
@@ -0,0 +1,32 @@
1
+ import { type ReactNode } from "react";
2
+ import type { DropdownItem } from "../Dropdown";
3
+ import { type PaginationProps } from "../Pagination";
4
+ import { type TableFixed } from "../table";
5
+ import type { ColumnDef } from "../types/baseType";
6
+ import { type ActionOverflow } from "./ActionBtn";
7
+ type DataTableActionColumnOptions<T> = {
8
+ actions?: DropdownItem[] | ((value: unknown, record: T, index: number) => DropdownItem[]);
9
+ actionOverflow?: ActionOverflow;
10
+ fixed?: TableFixed;
11
+ };
12
+ type TableColumnDef<T = Record<string, unknown>> = ColumnDef<T> & DataTableActionColumnOptions<T>;
13
+ type RowSelection<T> = {
14
+ selectedRowKeys?: Array<string | number>;
15
+ defaultSelectedRowKeys?: Array<string | number>;
16
+ onChange?: (selectedRowKeys: Array<string | number>, selectedRows: T[], isAll: boolean) => void;
17
+ isAll?: boolean;
18
+ beforeCheckboxNode?: ReactNode;
19
+ };
20
+ interface DataTableProps<T = Record<string, unknown>> {
21
+ columns: TableColumnDef<T>[];
22
+ data: T[];
23
+ rowKey?: keyof T | ((record: T, index: number) => string | number);
24
+ rowSelection?: RowSelection<T>;
25
+ pagination?: PaginationProps;
26
+ loading?: boolean;
27
+ defaultColumnWidth?: number;
28
+ }
29
+ export declare function DataTable<T = Record<string, unknown>>({ columns, data: pData, loading, rowKey, rowSelection, defaultColumnWidth, pagination: pPagination, }: DataTableProps<T>): import("react/jsx-runtime").JSX.Element;
30
+ export { ActionBtn } from "./ActionBtn";
31
+ export type { ActionBtnProps } from "./ActionBtn";
32
+ export type { DataTableProps, RowSelection, TableColumnDef };
@@ -0,0 +1,21 @@
1
+ import { ModeType } from "./data";
2
+ import { type DateLocaleConfig } from "./locales";
3
+ export type DateRange = {
4
+ from: Date | undefined;
5
+ to?: Date | undefined;
6
+ };
7
+ export type QuickRangePreset = {
8
+ label: string;
9
+ getRange: () => DateRange;
10
+ };
11
+ export interface CalendarProps {
12
+ mode?: ModeType;
13
+ value?: Date | DateRange | null;
14
+ onChange?: (date: Date | DateRange) => void;
15
+ disabledDate?: (date: Date) => boolean;
16
+ showTime?: boolean;
17
+ className?: string;
18
+ locale?: Partial<DateLocaleConfig>;
19
+ quickRanges?: QuickRangePreset[];
20
+ }
21
+ export declare function Calendar({ mode, value, onChange, disabledDate, showTime, className, locale: customLocale, quickRanges, }: CalendarProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,26 @@
1
+ import { type DateRange, type QuickRangePreset } from "./Calendar";
2
+ import { ModeType } from "./data";
3
+ import { type DateLocaleConfig } from "./locales";
4
+ export type DateChangeStrValue = [string, string] | string;
5
+ type DateBaseValue = Date | DateRange;
6
+ type Dates = DateBaseValue | [Date, Date];
7
+ export type DateValue = Dates | DateChangeStrValue;
8
+ export type DatePickerProps = {
9
+ mode?: ModeType;
10
+ value?: DateValue;
11
+ defaultValue?: DateValue;
12
+ format?: string;
13
+ placeholder?: string;
14
+ disabled?: boolean;
15
+ allowClear?: boolean;
16
+ showTime?: boolean;
17
+ onChange?: (value?: DateChangeStrValue, date?: Dates) => void;
18
+ disabledDate?: (current: Date) => boolean;
19
+ className?: string;
20
+ locale?: Partial<DateLocaleConfig>;
21
+ quickRanges?: QuickRangePreset[];
22
+ getPopupContainer?: () => HTMLElement;
23
+ };
24
+ declare const DatePicker: import("react").ForwardRefExoticComponent<DatePickerProps & import("react").RefAttributes<HTMLDivElement>>;
25
+ export { DatePicker };
26
+ export type { DateRange };
@@ -0,0 +1 @@
1
+ export declare const useDateLocale: () => import("./locales").DateLocaleConfig;
@@ -0,0 +1,7 @@
1
+ import { type ReactNode } from "react";
2
+ import { type DateLocaleConfig } from "./locales";
3
+ export interface DateLocaleProviderProps {
4
+ locale?: DateLocaleConfig;
5
+ children: ReactNode;
6
+ }
7
+ export declare function DateLocaleProvider({ locale, children }: DateLocaleProviderProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ export interface TimePickerProps {
2
+ value?: Date;
3
+ onChange?: (date: Date) => void;
4
+ className?: string;
5
+ }
6
+ export declare function TimePicker({ value, onChange, className }: TimePickerProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export declare const ModeType: {
2
+ readonly Single: "single";
3
+ readonly Range: "range";
4
+ };
5
+ export type ModeType = (typeof ModeType)[keyof typeof ModeType];
@@ -0,0 +1,9 @@
1
+ import { type DateLocaleConfig } from "./locales";
2
+ type DateLocaleState = {
3
+ locale: DateLocaleConfig;
4
+ setLocale: (patch: Partial<DateLocaleConfig>) => void;
5
+ replaceLocale: (nextLocale: DateLocaleConfig) => void;
6
+ resetLocale: () => void;
7
+ };
8
+ export declare const useDateLocaleStore: import("zustand").UseBoundStore<import("zustand").StoreApi<DateLocaleState>>;
9
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { DropdownPositioningStrategy } from "../hooks/useDropdownPositioning";
2
+ export declare const getDatePickerDropdownPosition: DropdownPositioningStrategy;
@@ -0,0 +1,5 @@
1
+ export * from "./Date";
2
+ export * from "./dateLocaleStore";
3
+ export { useDateLocale } from "./LocaleContext";
4
+ export * from "./LocaleProvider";
5
+ export * from "./locales";
@@ -0,0 +1,23 @@
1
+ export interface DateLocaleConfig {
2
+ placeholder: string;
3
+ placeholderDateTime: string;
4
+ placeholderRange: string;
5
+ placeholderDateTimeRange: string;
6
+ weekDays: string[];
7
+ selectTime: string;
8
+ startTime: string;
9
+ endTime: string;
10
+ confirm: string;
11
+ monthFormat: string;
12
+ quickRanges: string;
13
+ quickRangeToday: string;
14
+ quickRangeYesterday: string;
15
+ quickRangeLast7Days: string;
16
+ quickRangeLast30Days: string;
17
+ quickRangeThisMonth: string;
18
+ quickRangeLastYear: string;
19
+ clear: string;
20
+ }
21
+ export declare const zhCNLocale: DateLocaleConfig;
22
+ export declare const enUSLocale: DateLocaleConfig;
23
+ export declare const defaultLocale: DateLocaleConfig;
@@ -0,0 +1,22 @@
1
+ import type { ReactNode } from "react";
2
+ export type DrawerPlacement = 'top' | 'right' | 'bottom' | 'left';
3
+ export type DrawerProps = {
4
+ open?: boolean;
5
+ onClose?: () => void;
6
+ title?: ReactNode;
7
+ children?: ReactNode;
8
+ footer?: ReactNode;
9
+ className?: string;
10
+ contentClassName?: string;
11
+ mask?: boolean;
12
+ maskClosable?: boolean;
13
+ lockScroll?: boolean;
14
+ closable?: boolean;
15
+ placement?: DrawerPlacement;
16
+ width?: number | string;
17
+ height?: number | string;
18
+ zIndex?: number;
19
+ renderNode?: HTMLElement | (() => HTMLElement);
20
+ keyboard?: boolean;
21
+ };
22
+ export declare function Drawer({ open, onClose, title, children, footer, className, contentClassName, mask, maskClosable, lockScroll, closable, placement, width, height, renderNode, keyboard, zIndex, }: DrawerProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { Drawer } from "./Drawer";
2
+ export type { DrawerPlacement, DrawerProps } from "./Drawer";
@@ -0,0 +1,24 @@
1
+ import type { ReactNode } from "react";
2
+ import { type DropdownPlacement } from "../hooks/useDropdownPositioning";
3
+ export interface DropdownBaseItem {
4
+ key: string;
5
+ label: ReactNode;
6
+ icon?: ReactNode;
7
+ danger?: boolean;
8
+ onClick?: () => void;
9
+ }
10
+ export interface DropdownRenderItem {
11
+ render: (item: DropdownRenderItem, context: {
12
+ onClick: () => void;
13
+ close: () => void;
14
+ }) => ReactNode;
15
+ }
16
+ export type DropdownItem = Omit<DropdownBaseItem, 'render'> | DropdownRenderItem;
17
+ export interface DropdownProps {
18
+ items: DropdownItem[];
19
+ children: ReactNode;
20
+ className?: string;
21
+ placement?: DropdownPlacement;
22
+ getPopupContainer?: () => HTMLElement;
23
+ }
24
+ export declare function Dropdown({ items, children, className, placement, getPopupContainer }: DropdownProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./Dropdown";
@@ -0,0 +1,11 @@
1
+ import type { FormProps as RcFormProps } from "rc-field-form";
2
+ import type { ReactNode } from "react";
3
+ export interface FormProps<T> extends Omit<RcFormProps<T>, 'component'> {
4
+ className?: string;
5
+ children?: ReactNode;
6
+ }
7
+ declare const Form: {
8
+ <T extends object>({ className, children, ...props }: FormProps<T>): import("react/jsx-runtime").JSX.Element;
9
+ displayName: string;
10
+ };
11
+ export { Form };
@@ -0,0 +1,19 @@
1
+ import { Field } from "rc-field-form";
2
+ import type { ReactNode } from "react";
3
+ import { type LabelLayout } from "../Label";
4
+ type FieldProps = Parameters<typeof Field>[0];
5
+ export interface FormItemProps<T = any> extends Omit<FieldProps, 'children'> {
6
+ className?: string;
7
+ label?: ReactNode;
8
+ labelClassName?: string;
9
+ required?: boolean;
10
+ children?: ReactNode | ((value: T, onChange: (value: T) => void, meta: {
11
+ errors: string[];
12
+ warnings: string[];
13
+ }) => ReactNode);
14
+ errorClassName?: string;
15
+ showError?: boolean;
16
+ layout?: Required<LabelLayout>['layout'];
17
+ }
18
+ declare const FormItem: <T>(props: FormItemProps<T>) => ReactNode | Promise<ReactNode>;
19
+ export { FormItem };
@@ -0,0 +1,39 @@
1
+ import React from "react";
2
+ import { CheckboxProps } from "../../Checkbox";
3
+ import { type DatePickerProps } from "../../Date";
4
+ import { type InputProps } from "../../Input";
5
+ import { InputNumberProps } from "../../InputNumber";
6
+ import { type SelectProps } from "../../Select";
7
+ import { type SwitchProps } from "../../Switch";
8
+ import { type TextareaProps } from "../../Textarea";
9
+ export type SchemaFormComponentPropsMap = {
10
+ input: InputProps;
11
+ inputNumber: InputNumberProps;
12
+ select: SelectProps;
13
+ textarea: TextareaProps;
14
+ switch: SwitchProps;
15
+ date: DatePickerProps;
16
+ checkbox: CheckboxProps;
17
+ };
18
+ export type SchemaFormFieldType = keyof SchemaFormComponentPropsMap;
19
+ export declare namespace SchemaFormNamespace {
20
+ interface FieldTypes {
21
+ }
22
+ interface PropsMap {
23
+ }
24
+ }
25
+ export type ExtendedFieldType = Extract<keyof SchemaFormNamespace.FieldTypes | keyof SchemaFormNamespace.PropsMap, string>;
26
+ export type SchemaFormAllFieldType = SchemaFormFieldType | ExtendedFieldType;
27
+ export type SchemaFormAllPropsMap = SchemaFormComponentPropsMap & SchemaFormNamespace.PropsMap;
28
+ export type SchemaFormComponent = React.ComponentType<any> | React.LazyExoticComponent<React.ComponentType<any>>;
29
+ export declare const componentsMap: Record<SchemaFormAllFieldType, SchemaFormComponent>;
30
+ export type SchemaFormComponentsMap = Partial<Record<ExtendedFieldType, SchemaFormComponent>>;
31
+ export type FieldProps = {
32
+ [K in SchemaFormAllFieldType]: {
33
+ type: K;
34
+ fieldProps?: K extends keyof SchemaFormAllPropsMap ? SchemaFormAllPropsMap[K] : unknown;
35
+ };
36
+ }[SchemaFormAllFieldType] | {
37
+ type?: 'input';
38
+ fieldProps?: InputProps;
39
+ };
@@ -0,0 +1,59 @@
1
+ import type { MOmit } from "../../../../../../../fe/packages/react/ui/types/index";
2
+ import { type FormInstance } from "rc-field-form";
3
+ import type { Rule } from "rc-field-form/es/interface";
4
+ import { type ReactNode } from "react";
5
+ import { type FormProps } from "..";
6
+ import { type ButtonElementProps } from "../../Button";
7
+ import type { LabelLayout } from "../../Label";
8
+ import { type FieldProps, type SchemaFormAllFieldType } from "./data";
9
+ export type { FieldProps, SchemaFormAllFieldType, SchemaFormAllPropsMap, SchemaFormComponent, SchemaFormComponentsMap, SchemaFormComponentPropsMap, SchemaFormFieldType, SchemaFormNamespace, } from "./data";
10
+ export type FormFieldType = SchemaFormAllFieldType;
11
+ type BaseField<T> = {
12
+ [K in keyof T]: {
13
+ key: K | number | (K | number)[];
14
+ label?: ReactNode;
15
+ rules?: Rule[];
16
+ required?: boolean;
17
+ className?: string;
18
+ labelClassName?: string;
19
+ errorClassName?: string;
20
+ showError?: boolean;
21
+ render?: (value: T[K], onChange: (value: T[K]) => void, meta: {
22
+ errors: string[];
23
+ warnings: string[];
24
+ }) => ReactNode;
25
+ layout?: Required<LabelLayout>['layout'];
26
+ affterNode?: ReactNode;
27
+ };
28
+ }[keyof T];
29
+ type GroupField<T> = {
30
+ type: 'group';
31
+ childrens: FormFieldSchema<T>[];
32
+ fieldProps: React.HTMLAttributes<HTMLDivElement>;
33
+ } & BaseField<T>;
34
+ type NotGroupField<T> = FieldProps & BaseField<T>;
35
+ export type FormFieldSchema<T> = GroupField<T> | NotGroupField<T>;
36
+ export interface SchemaFormProps<T = object> extends MOmit<FormProps<T>, 'initialValues' | 'children' | 'preserve'> {
37
+ form?: FormInstance<T>;
38
+ getForm?: (formInstance: FormInstance<T>) => void;
39
+ schemas: FormFieldSchema<T>[];
40
+ className?: string;
41
+ onFinish?: (values: T) => void;
42
+ onFinishFailed?: (errorInfo: any) => void;
43
+ initialValues?: T;
44
+ layout?: Required<LabelLayout>['layout'];
45
+ fieldLayout?: Required<LabelLayout>['layout'];
46
+ footerButtons?: boolean | ReactNode;
47
+ submitText?: ReactNode;
48
+ cancelText?: ReactNode;
49
+ onCancel?: () => void;
50
+ buttonClassName?: string;
51
+ submitButtonProps?: Omit<ButtonElementProps, 'type' | 'onClick' | 'children'>;
52
+ cancelButtonProps?: Omit<ButtonElementProps, 'onClick' | 'children'>;
53
+ preserve?: boolean;
54
+ }
55
+ export declare const SchemaForm: {
56
+ <T extends object>({ form, getForm, schemas, className, onFinish, onFinishFailed, initialValues, footerButtons, submitText, cancelText, onCancel, buttonClassName, submitButtonProps, layout, fieldLayout, cancelButtonProps, ...formProps }: SchemaFormProps<T>): import("react/jsx-runtime").JSX.Element;
57
+ displayName: string;
58
+ };
59
+ export default SchemaForm;
@@ -0,0 +1,4 @@
1
+ export * from "./Form";
2
+ export * from "./FormItem";
3
+ export * from "./useForm";
4
+ export * from "./SchemaForm";
@@ -0,0 +1,2 @@
1
+ export { useForm } from "rc-field-form";
2
+ export type { FormInstance } from "rc-field-form";
@@ -0,0 +1,7 @@
1
+ export type ImagePreviewControllerProps = {
2
+ open: boolean;
3
+ images: string[];
4
+ initialIndex?: number;
5
+ onClose: () => void;
6
+ };
7
+ export declare function ImagePreviewController({ open, images, initialIndex, onClose }: ImagePreviewControllerProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,7 @@
1
+ import type { MOmit } from "../../../../../../fe/packages/react/ui/types/index";
2
+ import { type ImagePreviewControllerProps } from "./ImagePreview";
3
+ export type PreviewImageProps = MOmit<ImagePreviewControllerProps, 'open' | 'onClose'> & Pick<Partial<ImagePreviewControllerProps>, 'onClose'> & {
4
+ thumbSize?: number | string;
5
+ direction?: 'horizontal' | 'vertical';
6
+ };
7
+ export declare function PreviewImage(props: PreviewImageProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,2 @@
1
+ export * from "./ImagePreview";
2
+ export * from "./PreviewImage";
@@ -0,0 +1,22 @@
1
+ import type { ChangeEvent, InputHTMLAttributes, ReactNode } from "react";
2
+ export type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange' | 'defaultValue'> & {
3
+ value?: string;
4
+ onChange?: (v: string, e: ChangeEvent<HTMLInputElement>) => void;
5
+ defaultValue?: string;
6
+ allowClear?: boolean | {
7
+ clearIcon: ReactNode;
8
+ };
9
+ addonAfter?: ReactNode;
10
+ inputClassName?: string;
11
+ };
12
+ declare const Input: import("react").ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "value" | "defaultValue" | "onChange"> & {
13
+ value?: string;
14
+ onChange?: (v: string, e: ChangeEvent<HTMLInputElement>) => void;
15
+ defaultValue?: string;
16
+ allowClear?: boolean | {
17
+ clearIcon: ReactNode;
18
+ };
19
+ addonAfter?: ReactNode;
20
+ inputClassName?: string;
21
+ } & import("react").RefAttributes<HTMLInputElement>>;
22
+ export { Input };
@@ -0,0 +1 @@
1
+ export * from "./Input";
@@ -0,0 +1,25 @@
1
+ import type { ChangeEvent, InputHTMLAttributes, ReactNode } from "react";
2
+ import { type InputNumberConstraints } from "./inputNumberUtils";
3
+ export type InputNumberProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'defaultValue' | 'onChange' | 'step' | 'type' | 'value'> & InputNumberConstraints & {
4
+ value?: number;
5
+ defaultValue?: number;
6
+ onChange?: (value: number | undefined, e: ChangeEvent<HTMLInputElement>) => void;
7
+ allowClear?: boolean | {
8
+ clearIcon: ReactNode;
9
+ };
10
+ addonAfter?: ReactNode;
11
+ allowStep?: boolean;
12
+ inputClassName?: string;
13
+ };
14
+ declare const InputNumber: import("react").ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "value" | "type" | "defaultValue" | "onChange" | "step"> & InputNumberConstraints & {
15
+ value?: number;
16
+ defaultValue?: number;
17
+ onChange?: (value: number | undefined, e: ChangeEvent<HTMLInputElement>) => void;
18
+ allowClear?: boolean | {
19
+ clearIcon: ReactNode;
20
+ };
21
+ addonAfter?: ReactNode;
22
+ allowStep?: boolean;
23
+ inputClassName?: string;
24
+ } & import("react").RefAttributes<HTMLInputElement>>;
25
+ export { InputNumber };
@@ -0,0 +1 @@
1
+ export * from "./InputNumber";