@_tc/template-core 0.1.16 → 0.2.0-bate.0

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 (879) hide show
  1. package/.skills/tc-component-usage-skills/SKILL.md +9 -2
  2. package/.skills/tc-component-usage-skills/reference/component-api.md +6 -3
  3. package/.skills/tc-component-usage-skills/reference/patterns.md +3 -3
  4. package/.skills/tc-component-usage-skills/reference/template-core-frontend.md +3 -1
  5. package/.skills/tc-generator/SKILL.md +1 -1
  6. package/.skills/tc-generator/reference/example.md +4 -0
  7. package/.skills/tc-generator/reference/project-template/config/config.default.js +4 -0
  8. package/.skills/tc-generator/reference/project-template/model/product/project/default.js +2 -0
  9. package/.skills/tc-generator/reference/runtime-extensions.md +110 -0
  10. package/AGENT_README.md +632 -0
  11. package/README.md +443 -37
  12. package/cjs/app/controller/project.js +1 -1
  13. package/cjs/app/controller/view.js +1 -1
  14. package/cjs/app/extend/crypto.js +1 -0
  15. package/cjs/app/extend/render-view.js +1 -1
  16. package/cjs/app/middleware.js +1 -1
  17. package/cjs/app/middlewares/api-params-verify.js +1 -0
  18. package/cjs/app/middlewares/api-sign-verify.js +1 -0
  19. package/cjs/app/{middleware → middlewares}/error-handle.js +1 -1
  20. package/cjs/app/middlewares/project-handler.js +1 -0
  21. package/cjs/app/middlewares/request-parameter-parsing.js +1 -0
  22. package/cjs/app/router/project.js +1 -1
  23. package/cjs/app/view/entry.tpl +19 -0
  24. package/cjs/bundler/buildBE.js +1 -0
  25. package/cjs/bundler/defaultRouteGuard.js +1 -0
  26. package/cjs/bundler/index.js +1 -1
  27. package/cjs/bundler/utils.js +3 -1
  28. package/cjs/config/config.default.js +1 -1
  29. package/cjs/packages/core/env.js +1 -1
  30. package/cjs/packages/core/index.js +1 -1
  31. package/cjs/packages/core/loader/middleware.js +1 -1
  32. package/cjs/packages/core/loader/router.js +1 -1
  33. package/cjs/scripts/vite-build/build.js +3 -0
  34. package/cjs/scripts/vite-build/collect.js +1 -0
  35. package/cjs/scripts/vite-build/constants.js +1 -0
  36. package/cjs/scripts/vite-build/dts.js +1 -0
  37. package/cjs/scripts/vite-build/index.js +1 -0
  38. package/cjs/scripts/vite-build/normalize.js +1 -0
  39. package/cjs/scripts/vite-build/plugins.js +1 -0
  40. package/cjs/scripts/vite-build/resolve.js +1 -0
  41. package/cjs/scripts/vite-build/types.js +0 -0
  42. package/cjs/scripts/vite-build/utils.js +1 -0
  43. package/esm/app/controller/project.js +7 -2
  44. package/esm/app/controller/view.js +21 -18
  45. package/esm/app/extend/crypto.js +31 -0
  46. package/esm/app/extend/render-view.js +5 -3
  47. package/esm/app/middleware.js +7 -2
  48. package/esm/app/{middleware → middlewares}/api-params-verify.js +2 -2
  49. package/esm/app/{middleware → middlewares}/api-sign-verify.js +2 -2
  50. package/esm/app/{middleware → middlewares}/error-handle.js +2 -2
  51. package/esm/app/middlewares/project-handler.js +15 -0
  52. package/esm/app/middlewares/request-parameter-parsing.js +18 -0
  53. package/esm/app/router/project.js +2 -2
  54. package/esm/app/view/entry.tpl +19 -0
  55. package/esm/bundler/buildBE.js +54 -0
  56. package/esm/bundler/defaultRouteGuard.js +4 -0
  57. package/esm/bundler/index.js +11 -14
  58. package/esm/bundler/utils.js +103 -60
  59. package/esm/config/config.default.js +4 -0
  60. package/esm/packages/core/env.js +1 -1
  61. package/esm/packages/core/index.js +37 -33
  62. package/esm/packages/core/loader/middleware.js +1 -1
  63. package/esm/packages/core/loader/router.js +5 -2
  64. package/esm/scripts/vite-build/build.js +141 -0
  65. package/esm/scripts/vite-build/collect.js +79 -0
  66. package/esm/scripts/vite-build/constants.js +34 -0
  67. package/esm/scripts/vite-build/dts.js +132 -0
  68. package/esm/scripts/vite-build/index.js +3 -0
  69. package/esm/scripts/vite-build/normalize.js +78 -0
  70. package/esm/scripts/vite-build/plugins.js +106 -0
  71. package/esm/scripts/vite-build/resolve.js +46 -0
  72. package/esm/scripts/vite-build/types.js +0 -0
  73. package/esm/scripts/vite-build/utils.js +24 -0
  74. package/fe/frontend/apps/dash/Dashboard.d.ts +0 -1
  75. package/fe/frontend/apps/dash/Dashboard.js +178 -169
  76. package/fe/frontend/apps/dash/dash.entry.d.ts +0 -1
  77. package/fe/frontend/apps/dash/dash.entry.js +58 -78
  78. package/fe/frontend/apps/dash/types.d.ts +16 -14
  79. package/fe/frontend/apps/dash/types.js +0 -1
  80. package/fe/frontend/apps/ui-components/index.d.ts +0 -1
  81. package/fe/frontend/apps/ui-components/index.js +7 -7
  82. package/fe/frontend/apps/ui-components/ui-components.entry.d.ts +0 -1
  83. package/fe/frontend/apps/ui-components/ui-components.entry.js +7 -5
  84. package/fe/frontend/extended/SchemaForm/data.d.ts +1 -5
  85. package/fe/frontend/extended/SchemaForm/data.js +7 -7
  86. package/fe/frontend/src/api/baseInfo.d.ts +1 -2
  87. package/fe/frontend/src/api/baseInfo.js +12 -13
  88. package/fe/frontend/src/common/CRUD/CRUD.d.ts +2 -3
  89. package/fe/frontend/src/common/CRUD/CRUD.js +2 -2
  90. package/fe/frontend/src/common/CRUD/index.d.ts +1 -2
  91. package/fe/frontend/src/common/CRUD/index.js +2 -1
  92. package/fe/frontend/src/common/auth/index.d.ts +6 -2
  93. package/fe/frontend/src/common/auth/index.js +23 -16
  94. package/fe/frontend/src/common/fetchErrorShow.d.ts +1 -2
  95. package/fe/frontend/src/common/fetchErrorShow.js +10 -8
  96. package/fe/frontend/src/common/generateMenuData.d.ts +2 -3
  97. package/fe/frontend/src/common/generateMenuData.js +15 -12
  98. package/fe/frontend/src/common/importComponent.d.ts +1 -2
  99. package/fe/frontend/src/common/importComponent.js +21 -9
  100. package/fe/frontend/src/common/language.d.ts +1 -2
  101. package/fe/frontend/src/common/language.js +11 -10
  102. package/fe/frontend/src/common/logFn/index.d.ts +0 -1
  103. package/fe/frontend/src/common/logFn/index.js +11 -8
  104. package/fe/frontend/src/common/menu.d.ts +1 -14
  105. package/fe/frontend/src/common/menu.js +94 -98
  106. package/fe/frontend/src/common/request.d.ts +2 -6
  107. package/fe/frontend/src/common/request.js +159 -195
  108. package/fe/frontend/src/components/AsyncSelect/AsyncSelect.d.ts +3 -4
  109. package/fe/frontend/src/components/AsyncSelect/AsyncSelect.js +35 -31
  110. package/fe/frontend/src/components/AsyncSelect/index.d.ts +2 -3
  111. package/fe/frontend/src/components/AsyncSelect/index.js +5 -3
  112. package/fe/frontend/src/components/BasePage/HeaderView.d.ts +1 -2
  113. package/fe/frontend/src/components/BasePage/HeaderView.js +53 -17
  114. package/fe/frontend/src/components/LanguageSwitch/LanguageSwitch.d.ts +14 -5
  115. package/fe/frontend/src/components/LanguageSwitch/LanguageSwitch.js +80 -31
  116. package/fe/frontend/src/components/LanguageSwitch/index.d.ts +2 -3
  117. package/fe/frontend/src/components/LanguageSwitch/index.js +5 -3
  118. package/fe/frontend/src/components/Router/index.d.ts +2 -3
  119. package/fe/frontend/src/components/Router/index.js +20 -10
  120. package/fe/frontend/src/components/Router/type.d.ts +0 -1
  121. package/fe/frontend/src/components/Router/type.js +0 -1
  122. package/fe/frontend/src/components/ThemeSwitch/ThemeSwitch.d.ts +0 -1
  123. package/fe/frontend/src/components/ThemeSwitch/ThemeSwitch.js +83 -55
  124. package/fe/frontend/src/components/ThemeSwitch/index.d.ts +2 -3
  125. package/fe/frontend/src/components/ThemeSwitch/index.js +5 -3
  126. package/fe/frontend/src/components/index.d.ts +10 -11
  127. package/fe/frontend/src/components/index.js +7 -10
  128. package/fe/frontend/src/defaultPages/Iframe/index.d.ts +0 -1
  129. package/fe/frontend/src/defaultPages/Iframe/index.js +14 -7
  130. package/fe/frontend/src/defaultPages/NotFoundPage/index.d.ts +0 -1
  131. package/fe/frontend/src/defaultPages/NotFoundPage/index.js +27 -6
  132. package/fe/frontend/src/defaultPages/SchemaPage/components/CallCom/DetailPanel.d.ts +1 -2
  133. package/fe/frontend/src/defaultPages/SchemaPage/components/CallCom/DetailPanel.js +97 -90
  134. package/fe/frontend/src/defaultPages/SchemaPage/components/CallCom/PopFrom.d.ts +1 -2
  135. package/fe/frontend/src/defaultPages/SchemaPage/components/CallCom/PopFrom.js +116 -127
  136. package/fe/frontend/src/defaultPages/SchemaPage/components/CallCom/builtIn.d.ts +2 -18
  137. package/fe/frontend/src/defaultPages/SchemaPage/components/CallCom/builtIn.js +9 -6
  138. package/fe/frontend/src/defaultPages/SchemaPage/components/CallCom/data.d.ts +1 -2
  139. package/fe/frontend/src/defaultPages/SchemaPage/components/CallCom/data.js +8 -5
  140. package/fe/frontend/src/defaultPages/SchemaPage/components/SchemaSearch/index.d.ts +0 -1
  141. package/fe/frontend/src/defaultPages/SchemaPage/components/SchemaSearch/index.js +60 -61
  142. package/fe/frontend/src/defaultPages/SchemaPage/components/SchemaTable/index.d.ts +2 -3
  143. package/fe/frontend/src/defaultPages/SchemaPage/components/SchemaTable/index.js +199 -186
  144. package/fe/frontend/src/defaultPages/SchemaPage/data/eventInfo.d.ts +0 -1
  145. package/fe/frontend/src/defaultPages/SchemaPage/data/eventInfo.js +8 -5
  146. package/fe/frontend/src/defaultPages/SchemaPage/data/index.d.ts +0 -1
  147. package/fe/frontend/src/defaultPages/SchemaPage/data/index.js +4 -1
  148. package/fe/frontend/src/defaultPages/SchemaPage/hooks/useComConfig.d.ts +1 -2
  149. package/fe/frontend/src/defaultPages/SchemaPage/hooks/useComConfig.js +16 -13
  150. package/fe/frontend/src/defaultPages/SchemaPage/index.css +1 -26
  151. package/fe/frontend/src/defaultPages/SchemaPage/index.d.ts +1 -2
  152. package/fe/frontend/src/defaultPages/SchemaPage/index.js +89 -76
  153. package/fe/frontend/src/defaultPages/SchemaPage/schemaType.d.ts +4 -14
  154. package/fe/frontend/src/defaultPages/SchemaPage/schemaType.js +7 -4
  155. package/fe/frontend/src/defaultPages/SchemaPage/utils/permissions.d.ts +0 -1
  156. package/fe/frontend/src/defaultPages/SchemaPage/utils/permissions.js +6 -3
  157. package/fe/frontend/src/defaultPages/SchemaPage/utils/schemaConversion.d.ts +1 -2
  158. package/fe/frontend/src/defaultPages/SchemaPage/utils/schemaConversion.js +63 -112
  159. package/fe/frontend/src/defaultPages/SchemaPage/utils/validator.d.ts +1 -5
  160. package/fe/frontend/src/defaultPages/SchemaPage/utils/validator.js +116 -165
  161. package/fe/frontend/src/defaultPages/SidebarSlotPage/SidebarSlotContainer.d.ts +2 -3
  162. package/fe/frontend/src/defaultPages/SidebarSlotPage/SidebarSlotContainer.js +54 -37
  163. package/fe/frontend/src/defaultPages/SidebarSlotPage/index.d.ts +0 -1
  164. package/fe/frontend/src/defaultPages/SidebarSlotPage/index.js +20 -16
  165. package/fe/frontend/src/defaultPages/SidebarSlotPageTmp.d.ts +0 -1
  166. package/fe/frontend/src/defaultPages/SidebarSlotPageTmp.js +20 -16
  167. package/fe/frontend/src/defaultPages/SlotPage/index.d.ts +0 -1
  168. package/fe/frontend/src/defaultPages/SlotPage/index.js +21 -26
  169. package/fe/frontend/src/exportStore.d.ts +4 -17
  170. package/fe/frontend/src/exportStore.js +5 -16
  171. package/fe/frontend/src/hooks/useCurrentMenuData.d.ts +1 -10
  172. package/fe/frontend/src/hooks/useCurrentMenuData.js +28 -26
  173. package/fe/frontend/src/hooks/useRouterParams.d.ts +0 -1
  174. package/fe/frontend/src/hooks/useRouterParams.js +15 -10
  175. package/fe/frontend/src/index.d.ts +13 -21
  176. package/fe/frontend/src/index.js +20 -18
  177. package/fe/frontend/src/language/en-US.d.ts +0 -1
  178. package/fe/frontend/src/language/en-US.js +89 -88
  179. package/fe/frontend/src/language/index.d.ts +1 -2
  180. package/fe/frontend/src/language/index.js +77 -74
  181. package/fe/frontend/src/language/zh-CN.d.ts +0 -1
  182. package/fe/frontend/src/language/zh-CN.js +89 -88
  183. package/fe/frontend/src/main.css +1 -1
  184. package/fe/frontend/src/main.d.ts +13 -20
  185. package/fe/frontend/src/main.js +75 -70
  186. package/fe/frontend/src/stores/apiFreezer.d.ts +1 -68
  187. package/fe/frontend/src/stores/apiFreezer.js +50 -46
  188. package/fe/frontend/src/stores/mode.d.ts +2 -6
  189. package/fe/frontend/src/stores/mode.js +35 -36
  190. package/fe/frontend/src/stores/schemaEventBus.d.ts +1 -21
  191. package/fe/frontend/src/stores/schemaEventBus.js +52 -69
  192. package/fe/frontend/src/stores/schemaStore.d.ts +5 -20
  193. package/fe/frontend/src/stores/schemaStore.js +27 -25
  194. package/fe/frontend/src/typing/scalability.d.ts +3 -35
  195. package/fe/frontend/src/typing/scalability.js +0 -1
  196. package/fe/frontend/src/typing/window.d.ts +0 -1
  197. package/fe/frontend/src/typing/window.js +0 -1
  198. package/fe/model/types/data/button.d.ts +2 -12
  199. package/fe/model/types/data/component.d.ts +4 -14
  200. package/fe/model/types/data/fetchInfo.d.ts +0 -13
  201. package/fe/model/types/data/schema.d.ts +6 -58
  202. package/fe/model/types/data/search.d.ts +1 -2
  203. package/{model → fe/model}/types/index.d.ts +2 -3
  204. package/fe/model/types/menuType.d.ts +0 -30
  205. package/fe/model/types/model.d.ts +1 -15
  206. package/fe/packages/common/LRUCache.d.ts +1 -0
  207. package/fe/packages/common/array/index.d.ts +0 -1
  208. package/fe/packages/common/cache/LRUCache.d.ts +0 -1
  209. package/fe/packages/common/cache/LRUCache.js +43 -47
  210. package/fe/packages/common/cache/index.d.ts +0 -1
  211. package/fe/packages/common/guards/index.d.ts +0 -1
  212. package/fe/packages/common/guards/index.js +8 -24
  213. package/fe/packages/common/http/index.d.ts +0 -1
  214. package/fe/packages/common/http/index.js +272 -282
  215. package/fe/packages/common/i18n/default.d.ts +0 -6
  216. package/fe/packages/common/i18n/default.js +91 -88
  217. package/fe/packages/common/i18n/en-US.d.ts +0 -6
  218. package/fe/packages/common/i18n/en-US.js +91 -88
  219. package/fe/packages/common/i18n/index.d.ts +3 -28
  220. package/fe/packages/common/i18n/index.js +142 -153
  221. package/fe/packages/common/i18n/locales.d.ts +3 -4
  222. package/fe/packages/common/i18n/locales.js +10 -9
  223. package/fe/packages/common/i18n/types.d.ts +0 -25
  224. package/fe/packages/common/index.d.ts +0 -1
  225. package/fe/packages/common/log/index.d.ts +0 -1
  226. package/fe/packages/common/number/index.d.ts +0 -1
  227. package/fe/packages/common/object/filterEmpty.d.ts +0 -1
  228. package/fe/packages/common/object/filterEmpty.js +25 -30
  229. package/fe/packages/common/object/filtereEmpty.d.ts +1 -0
  230. package/fe/packages/common/object/index.d.ts +0 -1
  231. package/fe/packages/common/string/index.d.ts +0 -1
  232. package/fe/packages/common/types/index.d.ts +0 -1
  233. package/fe/packages/{ui/react → react}/hooks/useBreadcrumb.d.ts +3 -4
  234. package/fe/packages/react/hooks/useBreadcrumb.js +5 -0
  235. package/fe/packages/react/hooks/useExecuteOnce.d.ts +11 -0
  236. package/fe/packages/react/hooks/useExecuteOnce.js +47 -0
  237. package/fe/packages/{ui/react → react}/hooks/useInit.d.ts +0 -1
  238. package/fe/packages/react/hooks/useInit.js +11 -0
  239. package/fe/packages/react/hooks/useLanguage.d.ts +1 -0
  240. package/fe/packages/react/hooks/useLanguage.js +8 -0
  241. package/fe/packages/{ui/react → react}/hooks/usePagination.d.ts +0 -1
  242. package/fe/packages/react/hooks/usePagination.js +30 -0
  243. package/fe/packages/{ui/react → react}/hooks/useRefState.d.ts +1 -14
  244. package/fe/packages/react/hooks/useRefState.js +35 -0
  245. package/fe/packages/{ui/react → react}/hooks/useWatch.d.ts +0 -9
  246. package/fe/packages/react/hooks/useWatch.js +60 -0
  247. package/fe/packages/react/hooks/useWatch.test.js +24 -0
  248. package/fe/packages/react/ui/assets/table/no-result.js +4 -0
  249. package/fe/packages/{ui/react → react/ui}/components/Button/Button.d.ts +1 -35
  250. package/fe/packages/react/ui/components/Button/Button.js +88 -0
  251. package/fe/packages/{ui/react → react/ui}/components/Button/SubmitButton.d.ts +2 -7
  252. package/fe/packages/react/ui/components/Button/SubmitButton.js +30 -0
  253. package/fe/packages/react/ui/components/Button/index.d.ts +3 -0
  254. package/fe/packages/react/ui/components/Button/index.js +3 -0
  255. package/fe/packages/{ui/react → react/ui}/components/Card/Card.d.ts +1 -6
  256. package/fe/packages/react/ui/components/Card/Card.js +31 -0
  257. package/fe/packages/react/ui/components/Card/index.d.ts +1 -0
  258. package/fe/packages/react/ui/components/Card/index.js +2 -0
  259. package/fe/packages/{ui/react → react/ui}/components/Checkbox/Checkbox.d.ts +1 -2
  260. package/fe/packages/react/ui/components/Checkbox/Checkbox.js +52 -0
  261. package/fe/packages/react/ui/components/Checkbox/index.d.ts +1 -0
  262. package/fe/packages/react/ui/components/Checkbox/index.js +2 -0
  263. package/fe/packages/{ui/react → react/ui}/components/ConfirmDialog/ConfirmDialog.d.ts +0 -9
  264. package/fe/packages/react/ui/components/ConfirmDialog/ConfirmDialog.js +41 -0
  265. package/fe/packages/react/ui/components/ConfirmDialog/index.d.ts +1 -0
  266. package/fe/packages/react/ui/components/ConfirmDialog/index.js +2 -0
  267. package/fe/packages/{ui/react → react/ui}/components/DataTable/ActionBtn.d.ts +1 -2
  268. package/fe/packages/react/ui/components/DataTable/ActionBtn.js +116 -0
  269. package/fe/packages/{ui/react → react/ui}/components/DataTable/index.d.ts +8 -28
  270. package/fe/packages/react/ui/components/DataTable/index.js +235 -0
  271. package/fe/packages/{ui/react → react/ui}/components/Date/Calendar.d.ts +2 -16
  272. package/fe/packages/react/ui/components/Date/Calendar.js +351 -0
  273. package/fe/packages/{ui/react → react/ui}/components/Date/Date.d.ts +0 -12
  274. package/fe/packages/react/ui/components/Date/Date.js +210 -0
  275. package/fe/packages/{ui/react → react/ui}/components/Date/DateTestPage.d.ts +0 -1
  276. package/fe/packages/react/ui/components/Date/DateTestPage.js +340 -0
  277. package/fe/packages/react/ui/components/Date/LocaleContext.d.ts +1 -0
  278. package/fe/packages/react/ui/components/Date/LocaleContext.js +11 -0
  279. package/fe/packages/react/ui/components/Date/LocaleProvider.d.ts +7 -0
  280. package/fe/packages/react/ui/components/Date/LocaleProvider.js +31 -0
  281. package/fe/packages/{ui/react → react/ui}/components/Date/TimePicker.d.ts +0 -1
  282. package/fe/packages/react/ui/components/Date/TimePicker.js +136 -0
  283. package/fe/packages/{ui/react → react/ui}/components/Date/data.d.ts +0 -1
  284. package/fe/packages/react/ui/components/Date/data.js +7 -0
  285. package/fe/packages/{ui/react → react/ui}/components/Date/dateLocaleStore.d.ts +1 -8
  286. package/fe/packages/react/ui/components/Date/dateLocaleStore.js +14 -0
  287. package/fe/packages/react/ui/components/Date/dropdownPositioning.d.ts +2 -0
  288. package/fe/packages/react/ui/components/Date/dropdownPositioning.js +12 -0
  289. package/fe/packages/react/ui/components/Date/index.d.ts +5 -0
  290. package/fe/packages/react/ui/components/Date/index.js +6 -0
  291. package/fe/packages/{ui/react → react/ui}/components/Date/locales.d.ts +0 -20
  292. package/fe/packages/react/ui/components/Date/locales.js +25 -0
  293. package/fe/packages/{ui/react → react/ui}/components/Drawer/Drawer.d.ts +1 -8
  294. package/fe/packages/react/ui/components/Drawer/Drawer.js +151 -0
  295. package/fe/packages/react/ui/components/Drawer/index.d.ts +2 -0
  296. package/fe/packages/react/ui/components/Drawer/index.js +2 -0
  297. package/fe/packages/{ui/react → react/ui}/components/Dropdown/Dropdown.d.ts +2 -4
  298. package/fe/packages/react/ui/components/Dropdown/Dropdown.js +105 -0
  299. package/fe/packages/react/ui/components/Dropdown/index.d.ts +1 -0
  300. package/fe/packages/react/ui/components/Dropdown/index.js +2 -0
  301. package/fe/packages/{ui/react → react/ui}/components/Form/Form.d.ts +2 -9
  302. package/fe/packages/react/ui/components/Form/Form.js +15 -0
  303. package/fe/packages/{ui/react → react/ui}/components/Form/FormItem.d.ts +3 -25
  304. package/fe/packages/react/ui/components/Form/FormItem.js +60 -0
  305. package/fe/packages/{ui/react → react/ui}/components/Form/SchemaForm/data.d.ts +8 -9
  306. package/fe/packages/react/ui/components/Form/SchemaForm/data.js +16 -0
  307. package/fe/packages/react/ui/components/Form/SchemaForm/defaultComponentsMap.d.ts +3 -0
  308. package/fe/packages/react/ui/components/Form/SchemaForm/defaultComponentsMap.js +4 -0
  309. package/fe/packages/{ui/react → react/ui}/components/Form/SchemaForm/index.d.ts +9 -103
  310. package/fe/packages/react/ui/components/Form/SchemaForm/index.js +119 -0
  311. package/fe/packages/react/ui/components/Form/index.d.ts +4 -0
  312. package/fe/packages/react/ui/components/Form/index.js +5 -0
  313. package/fe/packages/react/ui/components/Form/useForm.d.ts +2 -0
  314. package/fe/packages/react/ui/components/Form/useForm.js +2 -0
  315. package/fe/packages/{ui/react → react/ui}/components/ImagePreview/ImagePreview.d.ts +0 -1
  316. package/fe/packages/react/ui/components/ImagePreview/ImagePreview.js +307 -0
  317. package/fe/packages/{ui/react → react/ui}/components/ImagePreview/PreviewImage.d.ts +2 -6
  318. package/fe/packages/react/ui/components/ImagePreview/PreviewImage.js +56 -0
  319. package/fe/packages/react/ui/components/ImagePreview/index.d.ts +2 -0
  320. package/fe/packages/react/ui/components/ImagePreview/index.js +3 -0
  321. package/fe/packages/{ui/react → react/ui}/components/Input/Input.d.ts +1 -24
  322. package/fe/packages/react/ui/components/Input/Input.js +142 -0
  323. package/fe/packages/react/ui/components/Input/index.d.ts +1 -0
  324. package/fe/packages/react/ui/components/Input/index.js +2 -0
  325. package/fe/packages/{ui/react → react/ui}/components/InputNumber/InputNumber.d.ts +2 -5
  326. package/fe/packages/react/ui/components/InputNumber/InputNumber.js +207 -0
  327. package/fe/packages/react/ui/components/InputNumber/index.d.ts +1 -0
  328. package/fe/packages/react/ui/components/InputNumber/index.js +2 -0
  329. package/fe/packages/{ui/react → react/ui}/components/InputNumber/inputNumberUtils.d.ts +0 -1
  330. package/fe/packages/react/ui/components/InputNumber/inputNumberUtils.js +45 -0
  331. package/fe/packages/react/ui/components/InputNumber/inputNumberUtils.test.js +59 -0
  332. package/fe/packages/{ui/react → react/ui}/components/Label/Label.d.ts +1 -31
  333. package/fe/packages/react/ui/components/Label/Label.js +58 -0
  334. package/fe/packages/react/ui/components/Label/index.d.ts +2 -0
  335. package/fe/packages/react/ui/components/Label/index.js +2 -0
  336. package/fe/packages/{ui/react → react/ui}/components/Layout/Layout.d.ts +1 -2
  337. package/fe/packages/react/ui/components/Layout/Layout.js +33 -0
  338. package/fe/packages/react/ui/components/Layout/index.d.ts +1 -0
  339. package/fe/packages/react/ui/components/Layout/index.js +2 -0
  340. package/fe/packages/{ui/react → react/ui}/components/Loading/Loading.d.ts +1 -13
  341. package/fe/packages/react/ui/components/Loading/Loading.js +48 -0
  342. package/fe/packages/react/ui/components/Loading/index.d.ts +1 -0
  343. package/fe/packages/react/ui/components/Loading/index.js +2 -0
  344. package/fe/packages/{ui/react → react/ui}/components/Menu/Menu.d.ts +0 -1
  345. package/fe/packages/react/ui/components/Menu/Menu.js +147 -0
  346. package/fe/packages/{ui/react → react/ui}/components/Menu/MenuContext.d.ts +0 -1
  347. package/fe/packages/react/ui/components/Menu/MenuContext.js +88 -0
  348. package/fe/packages/{ui/react → react/ui}/components/Menu/MenuItem.d.ts +0 -1
  349. package/fe/packages/react/ui/components/Menu/MenuItem.js +78 -0
  350. package/fe/packages/react/ui/components/Menu/SubMenu.d.ts +2 -0
  351. package/fe/packages/react/ui/components/Menu/SubMenu.js +207 -0
  352. package/fe/packages/react/ui/components/Menu/index.d.ts +8 -0
  353. package/fe/packages/react/ui/components/Menu/index.js +5 -0
  354. package/fe/packages/{ui/react → react/ui}/components/Menu/menuTypes.d.ts +1 -3
  355. package/fe/packages/react/ui/components/Menu/menuTypes.js +0 -0
  356. package/fe/packages/{ui/react → react/ui}/components/Menu/utils.d.ts +0 -1
  357. package/fe/packages/react/ui/components/Menu/utils.js +8 -0
  358. package/fe/packages/{ui/react → react/ui}/components/Message/Message.d.ts +1 -9
  359. package/fe/packages/react/ui/components/Message/Message.js +76 -0
  360. package/fe/packages/{ui/react → react/ui}/components/Message/MessageManager.d.ts +2 -3
  361. package/fe/packages/react/ui/components/Message/MessageManager.js +104 -0
  362. package/fe/packages/{ui/react → react/ui}/components/Message/data.d.ts +0 -1
  363. package/fe/packages/react/ui/components/Message/data.js +4 -0
  364. package/fe/packages/react/ui/components/Message/index.d.ts +2 -0
  365. package/fe/packages/react/ui/components/Message/index.js +2 -0
  366. package/fe/packages/{ui/react → react/ui}/components/Modal/Modal.d.ts +1 -8
  367. package/fe/packages/react/ui/components/Modal/Modal.js +59 -0
  368. package/fe/packages/{ui/react → react/ui}/components/Modal/ModalManager.d.ts +3 -16
  369. package/fe/packages/react/ui/components/Modal/ModalManager.js +106 -0
  370. package/fe/packages/react/ui/components/Modal/index.d.ts +3 -0
  371. package/fe/packages/react/ui/components/Modal/index.js +3 -0
  372. package/fe/packages/{ui/react → react/ui}/components/Notification/Notification.d.ts +1 -2
  373. package/fe/packages/react/ui/components/Notification/Notification.js +56 -0
  374. package/fe/packages/react/ui/components/Notification/index.d.ts +1 -0
  375. package/fe/packages/react/ui/components/Notification/index.js +2 -0
  376. package/fe/packages/{ui/react → react/ui}/components/Overlay/Overlay.d.ts +1 -5
  377. package/fe/packages/react/ui/components/Overlay/Overlay.js +61 -0
  378. package/fe/packages/react/ui/components/Overlay/index.d.ts +2 -0
  379. package/fe/packages/react/ui/components/Overlay/index.js +2 -0
  380. package/fe/packages/{ui/react → react/ui}/components/Pagination/Pagination.d.ts +0 -8
  381. package/fe/packages/react/ui/components/Pagination/Pagination.js +115 -0
  382. package/fe/packages/react/ui/components/Pagination/index.d.ts +1 -0
  383. package/fe/packages/react/ui/components/Pagination/index.js +2 -0
  384. package/fe/packages/{ui/react → react/ui}/components/Popup/Popup.d.ts +0 -1
  385. package/fe/packages/react/ui/components/Popup/Popup.js +86 -0
  386. package/fe/packages/react/ui/components/Popup/index.d.ts +1 -0
  387. package/fe/packages/react/ui/components/Popup/index.js +2 -0
  388. package/fe/packages/{ui/react → react/ui}/components/Radio/Radio.d.ts +1 -2
  389. package/fe/packages/react/ui/components/Radio/Radio.js +36 -0
  390. package/fe/packages/{ui/react → react/ui}/components/Radio/RadioGroup.d.ts +1 -2
  391. package/fe/packages/react/ui/components/Radio/RadioGroup.js +33 -0
  392. package/fe/packages/react/ui/components/Radio/index.d.ts +2 -0
  393. package/fe/packages/react/ui/components/Radio/index.js +3 -0
  394. package/fe/packages/{ui/react → react/ui}/components/Search/Search.d.ts +4 -8
  395. package/fe/packages/react/ui/components/Search/Search.js +24 -0
  396. package/fe/packages/react/ui/components/Search/index.d.ts +1 -0
  397. package/fe/packages/react/ui/components/Search/index.js +2 -0
  398. package/fe/packages/{ui/react → react/ui}/components/Select/Select.d.ts +2 -7
  399. package/fe/packages/react/ui/components/Select/Select.js +282 -0
  400. package/fe/packages/react/ui/components/Select/dropdownPositioning.d.ts +2 -0
  401. package/fe/packages/react/ui/components/Select/dropdownPositioning.js +16 -0
  402. package/fe/packages/react/ui/components/Select/index.d.ts +1 -0
  403. package/fe/packages/react/ui/components/Select/index.js +2 -0
  404. package/fe/packages/react/ui/components/Skeleton/Skeleton.d.ts +12 -0
  405. package/fe/packages/react/ui/components/Skeleton/Skeleton.js +101 -0
  406. package/fe/packages/react/ui/components/Skeleton/index.d.ts +2 -0
  407. package/fe/packages/react/ui/components/Skeleton/index.js +2 -0
  408. package/fe/packages/{ui/react → react/ui}/components/Switch/Switch.d.ts +1 -2
  409. package/fe/packages/react/ui/components/Switch/Switch.js +28 -0
  410. package/fe/packages/react/ui/components/Switch/index.d.ts +1 -0
  411. package/fe/packages/react/ui/components/Switch/index.js +2 -0
  412. package/fe/packages/react/ui/components/TableSearch/TableSearch.d.ts +30 -0
  413. package/fe/packages/react/ui/components/TableSearch/TableSearch.js +146 -0
  414. package/fe/packages/react/ui/components/TableSearch/index.d.ts +2 -0
  415. package/fe/packages/react/ui/components/TableSearch/index.js +2 -0
  416. package/fe/packages/{ui/react → react/ui}/components/TableSearch/lang.d.ts +0 -1
  417. package/fe/packages/react/ui/components/TableSearch/lang.js +14 -0
  418. package/fe/packages/{ui/react → react/ui}/components/TableSearch/tableSearchLocaleStore.d.ts +1 -2
  419. package/fe/packages/react/ui/components/TableSearch/tableSearchLocaleStore.js +10 -0
  420. package/fe/packages/{ui/react → react/ui}/components/Tabs/Tabs.d.ts +1 -2
  421. package/fe/packages/react/ui/components/Tabs/Tabs.js +33 -0
  422. package/fe/packages/react/ui/components/Tabs/index.d.ts +1 -0
  423. package/fe/packages/react/ui/components/Tabs/index.js +2 -0
  424. package/fe/packages/{ui/react → react/ui}/components/Textarea/Textarea.d.ts +0 -47
  425. package/fe/packages/react/ui/components/Textarea/Textarea.js +58 -0
  426. package/fe/packages/react/ui/components/Textarea/index.d.ts +1 -0
  427. package/fe/packages/react/ui/components/Textarea/index.js +2 -0
  428. package/fe/packages/{ui/react → react/ui}/components/Tooltip/Tooltip.d.ts +0 -17
  429. package/fe/packages/react/ui/components/Tooltip/Tooltip.js +77 -0
  430. package/fe/packages/react/ui/components/Tooltip/index.d.ts +1 -0
  431. package/fe/packages/react/ui/components/Tooltip/index.js +2 -0
  432. package/fe/packages/{ui/react → react/ui}/components/TreeSelect/TreeSelect.d.ts +0 -7
  433. package/fe/packages/react/ui/components/TreeSelect/TreeSelect.js +190 -0
  434. package/fe/packages/react/ui/components/TreeSelect/index.d.ts +1 -0
  435. package/fe/packages/react/ui/components/TreeSelect/index.js +2 -0
  436. package/fe/packages/{ui/react → react/ui}/components/Upload/ImageUpload.d.ts +0 -1
  437. package/fe/packages/react/ui/components/Upload/ImageUpload.js +101 -0
  438. package/fe/packages/react/ui/components/Upload/Upload.d.ts +13 -0
  439. package/fe/packages/react/ui/components/Upload/Upload.js +29 -0
  440. package/fe/packages/react/ui/components/Upload/index.d.ts +2 -0
  441. package/fe/packages/react/ui/components/Upload/index.js +3 -0
  442. package/fe/packages/{ui/react → react/ui}/components/breadcrumb/breadcrumb.d.ts +0 -1
  443. package/fe/packages/react/ui/components/breadcrumb/breadcrumb.js +155 -0
  444. package/fe/packages/react/ui/components/breadcrumb/index.d.ts +1 -0
  445. package/fe/packages/react/ui/components/breadcrumb/index.js +2 -0
  446. package/fe/packages/{ui/react → react/ui}/components/hooks/useDropdownPositioning.d.ts +0 -7
  447. package/fe/packages/react/ui/components/hooks/useDropdownPositioning.js +121 -0
  448. package/fe/packages/{ui/react → react/ui}/components/hooks/useInputController.d.ts +0 -4
  449. package/fe/packages/react/ui/components/hooks/useInputController.js +39 -0
  450. package/fe/packages/react/ui/components/index.d.ts +35 -0
  451. package/fe/packages/react/ui/components/index.js +81 -0
  452. package/fe/packages/react/ui/components/table/index.d.ts +1 -0
  453. package/fe/packages/react/ui/components/table/index.js +2 -0
  454. package/fe/packages/{ui/react → react/ui}/components/table/table.d.ts +1 -2
  455. package/fe/packages/react/ui/components/table/table.js +166 -0
  456. package/fe/packages/{ui/react → react/ui}/components/testPage/MenuTestPage.d.ts +0 -1
  457. package/fe/packages/react/ui/components/testPage/MenuTestPage.js +397 -0
  458. package/fe/packages/{ui/react → react/ui}/components/testPage/index.d.ts +0 -1
  459. package/fe/packages/react/ui/components/testPage/index.js +1638 -0
  460. package/fe/packages/react/ui/i18n/I18nProvider.d.ts +12 -0
  461. package/fe/packages/react/ui/i18n/I18nProvider.js +38 -0
  462. package/fe/packages/react/ui/i18n/index.d.ts +3 -0
  463. package/fe/packages/react/ui/i18n/index.js +7 -0
  464. package/fe/packages/react/ui/i18n/useI18n.d.ts +8 -0
  465. package/fe/packages/react/ui/i18n/useI18n.js +25 -0
  466. package/fe/packages/react/ui/index.d.ts +4 -0
  467. package/fe/packages/react/ui/index.js +58 -0
  468. package/fe/packages/{ui/react → react/ui}/lib/createStoreHook.d.ts +1 -2
  469. package/fe/packages/react/ui/lib/createStoreHook.js +9 -0
  470. package/fe/packages/react/ui/lib/export.d.ts +21 -0
  471. package/fe/packages/react/ui/lib/export.js +112 -0
  472. package/fe/packages/react/ui/lib/utils.d.ts +9 -0
  473. package/fe/packages/react/ui/lib/utils.js +64 -0
  474. package/fe/packages/{ui/react → react/ui}/stores/breadcrumb.d.ts +1 -2
  475. package/fe/packages/react/ui/stores/breadcrumb.js +52 -0
  476. package/fe/packages/react/ui/stores/language.d.ts +3 -0
  477. package/fe/packages/react/ui/stores/language.js +4 -0
  478. package/fe/packages/{ui/react → react/ui}/types/index.d.ts +0 -1
  479. package/fe/packages/react/ui/types/index.js +0 -0
  480. package/fe/typings/type.d.ts +0 -1
  481. package/model/frontend/extended/SchemaForm/data.d.ts +9 -0
  482. package/model/frontend/src/common/auth/index.d.ts +11 -0
  483. package/model/frontend/src/common/fetchErrorShow.d.ts +2 -0
  484. package/model/frontend/src/common/language.d.ts +2 -0
  485. package/model/frontend/src/common/logFn/index.d.ts +4 -0
  486. package/model/frontend/src/common/request.d.ts +33 -0
  487. package/model/frontend/src/components/AsyncSelect/AsyncSelect.d.ts +7 -0
  488. package/model/frontend/src/components/AsyncSelect/index.d.ts +3 -0
  489. package/model/frontend/src/defaultPages/SchemaPage/components/CallCom/DetailPanel.d.ts +6 -0
  490. package/model/frontend/src/defaultPages/SchemaPage/components/CallCom/PopFrom.d.ts +12 -0
  491. package/model/frontend/src/defaultPages/SchemaPage/components/CallCom/builtIn.d.ts +28 -0
  492. package/model/frontend/src/defaultPages/SchemaPage/data/eventInfo.d.ts +7 -0
  493. package/model/frontend/src/defaultPages/SchemaPage/data/index.d.ts +2 -0
  494. package/model/frontend/src/defaultPages/SchemaPage/hooks/useComConfig.d.ts +9 -0
  495. package/model/frontend/src/defaultPages/SchemaPage/schemaType.d.ts +41 -0
  496. package/model/frontend/src/defaultPages/SchemaPage/utils/permissions.d.ts +2 -0
  497. package/model/frontend/src/defaultPages/SchemaPage/utils/validator.d.ts +7 -0
  498. package/model/frontend/src/language/en-US.d.ts +88 -0
  499. package/model/frontend/src/language/index.d.ts +72 -0
  500. package/model/frontend/src/language/zh-CN.d.ts +88 -0
  501. package/model/frontend/src/stores/apiFreezer.d.ts +26 -0
  502. package/model/frontend/src/stores/schemaEventBus.d.ts +22 -0
  503. package/model/frontend/src/stores/schemaStore.d.ts +32 -0
  504. package/model/frontend/src/typing/scalability.d.ts +15 -0
  505. package/model/frontend/src/typing/window.d.ts +8 -0
  506. package/model/{index.d.ts → model/index.d.ts} +1 -2
  507. package/model/{types → model/types}/data/button.d.ts +2 -12
  508. package/model/{types → model/types}/data/component.d.ts +4 -14
  509. package/model/model/types/data/fetchInfo.d.ts +7 -0
  510. package/model/model/types/data/schema.d.ts +46 -0
  511. package/model/{types → model/types}/data/search.d.ts +1 -2
  512. package/model/model/types/index.d.ts +2 -0
  513. package/model/{types → model/types}/menuType.d.ts +0 -30
  514. package/model/{types → model/types}/model.d.ts +1 -15
  515. package/model/packages/common/array/index.d.ts +6 -0
  516. package/model/packages/common/cache/LRUCache.d.ts +12 -0
  517. package/model/packages/common/guards/index.d.ts +8 -0
  518. package/model/packages/common/http/index.d.ts +89 -0
  519. package/model/packages/common/i18n/default.d.ts +86 -0
  520. package/model/packages/common/i18n/en-US.d.ts +86 -0
  521. package/model/packages/common/i18n/index.d.ts +18 -0
  522. package/model/packages/common/i18n/locales.d.ts +7 -0
  523. package/model/packages/common/i18n/types.d.ts +46 -0
  524. package/model/packages/common/log/index.d.ts +32 -0
  525. package/model/packages/common/number/index.d.ts +2 -0
  526. package/model/packages/common/object/filterEmpty.d.ts +2 -0
  527. package/model/packages/common/object/index.d.ts +4 -0
  528. package/model/packages/common/string/index.d.ts +3 -0
  529. package/model/packages/common/types/index.d.ts +3 -0
  530. package/model/packages/react/hooks/useBreadcrumb.d.ts +9 -0
  531. package/model/packages/react/hooks/useExecuteOnce.d.ts +11 -0
  532. package/model/packages/react/hooks/useLanguage.d.ts +1 -0
  533. package/model/packages/react/ui/components/Button/Button.d.ts +24 -0
  534. package/model/packages/react/ui/components/Button/SubmitButton.d.ts +8 -0
  535. package/model/packages/react/ui/components/Button/index.d.ts +3 -0
  536. package/model/packages/react/ui/components/Card/Card.d.ts +10 -0
  537. package/model/packages/react/ui/components/Card/index.d.ts +1 -0
  538. package/model/packages/react/ui/components/Checkbox/Checkbox.d.ts +16 -0
  539. package/model/packages/react/ui/components/Checkbox/index.d.ts +1 -0
  540. package/model/packages/react/ui/components/ConfirmDialog/ConfirmDialog.d.ts +11 -0
  541. package/model/packages/react/ui/components/ConfirmDialog/index.d.ts +1 -0
  542. package/model/packages/react/ui/components/DataTable/ActionBtn.d.ts +7 -0
  543. package/model/packages/react/ui/components/DataTable/index.d.ts +32 -0
  544. package/model/packages/react/ui/components/Date/Calendar.d.ts +21 -0
  545. package/model/packages/react/ui/components/Date/Date.d.ts +26 -0
  546. package/model/packages/react/ui/components/Date/LocaleContext.d.ts +1 -0
  547. package/model/packages/react/ui/components/Date/LocaleProvider.d.ts +7 -0
  548. package/model/packages/react/ui/components/Date/TimePicker.d.ts +6 -0
  549. package/model/packages/react/ui/components/Date/data.d.ts +5 -0
  550. package/model/packages/react/ui/components/Date/dateLocaleStore.d.ts +9 -0
  551. package/model/packages/react/ui/components/Date/dropdownPositioning.d.ts +2 -0
  552. package/model/packages/react/ui/components/Date/index.d.ts +5 -0
  553. package/model/packages/react/ui/components/Date/locales.d.ts +23 -0
  554. package/model/packages/react/ui/components/Drawer/Drawer.d.ts +22 -0
  555. package/model/packages/react/ui/components/Drawer/index.d.ts +2 -0
  556. package/model/packages/react/ui/components/Dropdown/Dropdown.d.ts +24 -0
  557. package/model/packages/react/ui/components/Dropdown/index.d.ts +1 -0
  558. package/model/packages/react/ui/components/Form/Form.d.ts +11 -0
  559. package/model/packages/react/ui/components/Form/FormItem.d.ts +19 -0
  560. package/model/packages/react/ui/components/Form/SchemaForm/data.d.ts +39 -0
  561. package/model/packages/react/ui/components/Form/SchemaForm/index.d.ts +59 -0
  562. package/model/packages/react/ui/components/Form/index.d.ts +4 -0
  563. package/model/packages/react/ui/components/Form/useForm.d.ts +2 -0
  564. package/model/packages/react/ui/components/ImagePreview/ImagePreview.d.ts +7 -0
  565. package/model/packages/react/ui/components/ImagePreview/PreviewImage.d.ts +7 -0
  566. package/model/packages/react/ui/components/ImagePreview/index.d.ts +2 -0
  567. package/model/packages/react/ui/components/Input/Input.d.ts +22 -0
  568. package/model/packages/react/ui/components/Input/index.d.ts +1 -0
  569. package/model/packages/react/ui/components/InputNumber/InputNumber.d.ts +25 -0
  570. package/model/packages/react/ui/components/InputNumber/index.d.ts +1 -0
  571. package/model/packages/react/ui/components/InputNumber/inputNumberUtils.d.ts +29 -0
  572. package/model/packages/react/ui/components/Label/Label.d.ts +21 -0
  573. package/model/packages/react/ui/components/Label/index.d.ts +2 -0
  574. package/model/packages/react/ui/components/Layout/Layout.d.ts +10 -0
  575. package/model/packages/react/ui/components/Layout/index.d.ts +1 -0
  576. package/model/packages/react/ui/components/Loading/Loading.d.ts +13 -0
  577. package/model/packages/react/ui/components/Loading/index.d.ts +1 -0
  578. package/model/packages/react/ui/components/Menu/Menu.d.ts +17 -0
  579. package/model/packages/react/ui/components/Menu/MenuContext.d.ts +38 -0
  580. package/model/packages/react/ui/components/Menu/MenuItem.d.ts +2 -0
  581. package/model/packages/react/ui/components/Menu/SubMenu.d.ts +2 -0
  582. package/model/packages/react/ui/components/Menu/index.d.ts +8 -0
  583. package/model/packages/react/ui/components/Menu/menuTypes.d.ts +57 -0
  584. package/model/packages/react/ui/components/Menu/utils.d.ts +1 -0
  585. package/model/packages/react/ui/components/Message/Message.d.ts +12 -0
  586. package/model/packages/react/ui/components/Message/MessageManager.d.ts +36 -0
  587. package/model/packages/react/ui/components/Message/data.d.ts +1 -0
  588. package/model/packages/react/ui/components/Message/index.d.ts +2 -0
  589. package/model/packages/react/ui/components/Modal/Modal.d.ts +20 -0
  590. package/model/packages/react/ui/components/Modal/ModalManager.d.ts +46 -0
  591. package/model/packages/react/ui/components/Modal/index.d.ts +3 -0
  592. package/model/packages/react/ui/components/Notification/Notification.d.ts +13 -0
  593. package/model/packages/react/ui/components/Notification/index.d.ts +1 -0
  594. package/model/packages/react/ui/components/Overlay/Overlay.d.ts +19 -0
  595. package/model/packages/react/ui/components/Overlay/index.d.ts +2 -0
  596. package/model/packages/react/ui/components/Pagination/Pagination.d.ts +10 -0
  597. package/model/packages/react/ui/components/Pagination/index.d.ts +1 -0
  598. package/model/packages/react/ui/components/Popup/Popup.d.ts +25 -0
  599. package/model/packages/react/ui/components/Popup/index.d.ts +1 -0
  600. package/model/packages/react/ui/components/Radio/Radio.d.ts +8 -0
  601. package/model/packages/react/ui/components/Radio/RadioGroup.d.ts +18 -0
  602. package/model/packages/react/ui/components/Radio/index.d.ts +2 -0
  603. package/model/packages/react/ui/components/Search/Search.d.ts +13 -0
  604. package/model/packages/react/ui/components/Search/index.d.ts +1 -0
  605. package/model/packages/react/ui/components/Select/Select.d.ts +21 -0
  606. package/model/packages/react/ui/components/Select/dropdownPositioning.d.ts +2 -0
  607. package/model/packages/react/ui/components/Select/index.d.ts +1 -0
  608. package/model/packages/react/ui/components/Skeleton/Skeleton.d.ts +12 -0
  609. package/model/packages/react/ui/components/Skeleton/index.d.ts +2 -0
  610. package/model/packages/react/ui/components/Switch/Switch.d.ts +10 -0
  611. package/model/packages/react/ui/components/Switch/index.d.ts +1 -0
  612. package/model/packages/react/ui/components/TableSearch/TableSearch.d.ts +30 -0
  613. package/model/packages/react/ui/components/TableSearch/index.d.ts +2 -0
  614. package/model/packages/react/ui/components/TableSearch/lang.d.ts +14 -0
  615. package/model/packages/react/ui/components/TableSearch/tableSearchLocaleStore.d.ts +8 -0
  616. package/model/packages/react/ui/components/Tabs/Tabs.d.ts +15 -0
  617. package/model/packages/react/ui/components/Tabs/index.d.ts +1 -0
  618. package/model/packages/react/ui/components/Textarea/Textarea.d.ts +20 -0
  619. package/model/packages/react/ui/components/Textarea/index.d.ts +1 -0
  620. package/model/packages/react/ui/components/Tooltip/Tooltip.d.ts +8 -0
  621. package/model/packages/react/ui/components/Tooltip/index.d.ts +1 -0
  622. package/model/packages/react/ui/components/TreeSelect/TreeSelect.d.ts +18 -0
  623. package/model/packages/react/ui/components/TreeSelect/index.d.ts +1 -0
  624. package/model/packages/react/ui/components/Upload/ImageUpload.d.ts +8 -0
  625. package/model/packages/react/ui/components/Upload/Upload.d.ts +13 -0
  626. package/model/packages/react/ui/components/Upload/index.d.ts +2 -0
  627. package/model/packages/react/ui/components/breadcrumb/breadcrumb.d.ts +34 -0
  628. package/model/packages/react/ui/components/breadcrumb/index.d.ts +1 -0
  629. package/model/packages/react/ui/components/hooks/useDropdownPositioning.d.ts +42 -0
  630. package/model/packages/react/ui/components/hooks/useInputController.d.ts +20 -0
  631. package/model/packages/react/ui/components/index.d.ts +35 -0
  632. package/model/packages/react/ui/components/table/index.d.ts +1 -0
  633. package/model/packages/react/ui/components/table/table.d.ts +29 -0
  634. package/model/packages/react/ui/i18n/I18nProvider.d.ts +12 -0
  635. package/model/packages/react/ui/i18n/index.d.ts +3 -0
  636. package/model/packages/react/ui/i18n/useI18n.d.ts +8 -0
  637. package/model/packages/react/ui/index.d.ts +4 -0
  638. package/model/packages/react/ui/lib/createStoreHook.d.ts +8 -0
  639. package/model/packages/react/ui/lib/export.d.ts +21 -0
  640. package/model/packages/react/ui/lib/utils.d.ts +9 -0
  641. package/model/packages/react/ui/stores/breadcrumb.d.ts +14 -0
  642. package/model/packages/react/ui/stores/language.d.ts +3 -0
  643. package/model/packages/react/ui/types/index.d.ts +1 -0
  644. package/model/typings/type.d.ts +4 -0
  645. package/package.json +24 -9
  646. package/types/app/controller/view.d.ts +2 -1
  647. package/types/app/extend/crypto.d.ts +64 -0
  648. package/types/app/extend/render-view.d.ts +2 -1
  649. package/types/app/middlewares/project-handler.d.ts +4 -0
  650. package/types/app/middlewares/request-parameter-parsing.d.ts +7 -0
  651. package/types/app/router/project.d.ts +1 -1
  652. package/types/app/type.d.ts +30 -1
  653. package/types/app/typings.d.ts +3 -0
  654. package/types/bundler/buildBE.d.ts +13 -0
  655. package/types/bundler/defaultRouteGuard.d.ts +2 -0
  656. package/types/bundler/index.d.ts +3 -1
  657. package/types/config/config.default.d.ts +27 -1
  658. package/types/index.d.ts +2 -1
  659. package/types/packages/core/loader/config.d.ts +1 -1
  660. package/types/packages/core/loader/middleware.d.ts +1 -1
  661. package/types/packages/core/types.d.ts +7 -0
  662. package/types/scripts/vite-build/build.d.ts +24 -0
  663. package/types/scripts/vite-build/collect.d.ts +57 -0
  664. package/types/scripts/vite-build/constants.d.ts +6 -0
  665. package/types/scripts/vite-build/dts.d.ts +53 -0
  666. package/types/scripts/vite-build/index.d.ts +2 -0
  667. package/types/scripts/vite-build/normalize.d.ts +66 -0
  668. package/types/scripts/vite-build/plugins.d.ts +67 -0
  669. package/types/scripts/vite-build/resolve.d.ts +61 -0
  670. package/types/scripts/vite-build/types.d.ts +174 -0
  671. package/types/scripts/vite-build/utils.d.ts +35 -0
  672. package/cjs/app/middleware/api-params-verify.js +0 -1
  673. package/cjs/app/middleware/api-sign-verify.js +0 -1
  674. package/cjs/app/middleware/project-handler.js +0 -1
  675. package/esm/app/middleware/project-handler.js +0 -15
  676. package/fe/model/types/data/button.js +0 -16
  677. package/fe/model/types/data/component.js +0 -11
  678. package/fe/model/types/data/schema.js +0 -1
  679. package/fe/model/types/data/search.js +0 -1
  680. package/fe/model/types/menuType.js +0 -1
  681. package/fe/model/types/model.js +0 -1
  682. package/fe/packages/common/array/index.js +0 -40
  683. package/fe/packages/common/i18n/types.js +0 -1
  684. package/fe/packages/common/log/index.js +0 -176
  685. package/fe/packages/common/number/index.js +0 -10
  686. package/fe/packages/common/object/index.js +0 -25
  687. package/fe/packages/common/string/index.js +0 -17
  688. package/fe/packages/common/types/index.js +0 -1
  689. package/fe/packages/ui/react/components/Button/Button.js +0 -73
  690. package/fe/packages/ui/react/components/Button/SubmitButton.js +0 -25
  691. package/fe/packages/ui/react/components/Button/index.d.ts +0 -4
  692. package/fe/packages/ui/react/components/Button/index.js +0 -2
  693. package/fe/packages/ui/react/components/Card/Card.js +0 -12
  694. package/fe/packages/ui/react/components/Card/index.d.ts +0 -2
  695. package/fe/packages/ui/react/components/Card/index.js +0 -1
  696. package/fe/packages/ui/react/components/Checkbox/Checkbox.js +0 -39
  697. package/fe/packages/ui/react/components/Checkbox/index.d.ts +0 -2
  698. package/fe/packages/ui/react/components/Checkbox/index.js +0 -1
  699. package/fe/packages/ui/react/components/ConfirmDialog/ConfirmDialog.js +0 -11
  700. package/fe/packages/ui/react/components/ConfirmDialog/index.d.ts +0 -2
  701. package/fe/packages/ui/react/components/ConfirmDialog/index.js +0 -1
  702. package/fe/packages/ui/react/components/DataTable/ActionBtn.js +0 -96
  703. package/fe/packages/ui/react/components/DataTable/index.js +0 -191
  704. package/fe/packages/ui/react/components/Date/Calendar.js +0 -216
  705. package/fe/packages/ui/react/components/Date/Date.js +0 -201
  706. package/fe/packages/ui/react/components/Date/DateTestPage.js +0 -29
  707. package/fe/packages/ui/react/components/Date/LocaleContext.d.ts +0 -6
  708. package/fe/packages/ui/react/components/Date/LocaleContext.js +0 -8
  709. package/fe/packages/ui/react/components/Date/LocaleProvider.d.ts +0 -19
  710. package/fe/packages/ui/react/components/Date/LocaleProvider.js +0 -24
  711. package/fe/packages/ui/react/components/Date/TimePicker.js +0 -78
  712. package/fe/packages/ui/react/components/Date/data.js +0 -4
  713. package/fe/packages/ui/react/components/Date/dateLocaleStore.js +0 -14
  714. package/fe/packages/ui/react/components/Date/dropdownPositioning.d.ts +0 -3
  715. package/fe/packages/ui/react/components/Date/dropdownPositioning.js +0 -12
  716. package/fe/packages/ui/react/components/Date/index.d.ts +0 -6
  717. package/fe/packages/ui/react/components/Date/index.js +0 -5
  718. package/fe/packages/ui/react/components/Date/locales.js +0 -21
  719. package/fe/packages/ui/react/components/Drawer/Drawer.js +0 -109
  720. package/fe/packages/ui/react/components/Drawer/index.d.ts +0 -3
  721. package/fe/packages/ui/react/components/Drawer/index.js +0 -1
  722. package/fe/packages/ui/react/components/Dropdown/Dropdown.js +0 -89
  723. package/fe/packages/ui/react/components/Dropdown/index.d.ts +0 -2
  724. package/fe/packages/ui/react/components/Dropdown/index.js +0 -1
  725. package/fe/packages/ui/react/components/Form/Form.js +0 -8
  726. package/fe/packages/ui/react/components/Form/FormItem.js +0 -43
  727. package/fe/packages/ui/react/components/Form/SchemaForm/data.js +0 -18
  728. package/fe/packages/ui/react/components/Form/SchemaForm/index.js +0 -79
  729. package/fe/packages/ui/react/components/Form/index.d.ts +0 -5
  730. package/fe/packages/ui/react/components/Form/index.js +0 -4
  731. package/fe/packages/ui/react/components/Form/useForm.d.ts +0 -3
  732. package/fe/packages/ui/react/components/Form/useForm.js +0 -1
  733. package/fe/packages/ui/react/components/ImagePreview/ImagePreview.js +0 -171
  734. package/fe/packages/ui/react/components/ImagePreview/PreviewImage.js +0 -28
  735. package/fe/packages/ui/react/components/ImagePreview/index.d.ts +0 -3
  736. package/fe/packages/ui/react/components/ImagePreview/index.js +0 -2
  737. package/fe/packages/ui/react/components/Input/Input.js +0 -61
  738. package/fe/packages/ui/react/components/Input/index.d.ts +0 -2
  739. package/fe/packages/ui/react/components/Input/index.js +0 -1
  740. package/fe/packages/ui/react/components/InputNumber/InputNumber.js +0 -144
  741. package/fe/packages/ui/react/components/InputNumber/index.d.ts +0 -2
  742. package/fe/packages/ui/react/components/InputNumber/index.js +0 -1
  743. package/fe/packages/ui/react/components/InputNumber/inputNumberUtils.js +0 -63
  744. package/fe/packages/ui/react/components/InputNumber/inputNumberUtils.test.d.ts +0 -2
  745. package/fe/packages/ui/react/components/InputNumber/inputNumberUtils.test.js +0 -27
  746. package/fe/packages/ui/react/components/Label/Label.js +0 -35
  747. package/fe/packages/ui/react/components/Label/index.d.ts +0 -3
  748. package/fe/packages/ui/react/components/Label/index.js +0 -2
  749. package/fe/packages/ui/react/components/Layout/Layout.js +0 -8
  750. package/fe/packages/ui/react/components/Layout/index.d.ts +0 -2
  751. package/fe/packages/ui/react/components/Layout/index.js +0 -1
  752. package/fe/packages/ui/react/components/Loading/Loading.js +0 -21
  753. package/fe/packages/ui/react/components/Loading/index.d.ts +0 -2
  754. package/fe/packages/ui/react/components/Loading/index.js +0 -1
  755. package/fe/packages/ui/react/components/Menu/Menu.js +0 -110
  756. package/fe/packages/ui/react/components/Menu/MenuContext.js +0 -97
  757. package/fe/packages/ui/react/components/Menu/MenuItem.js +0 -33
  758. package/fe/packages/ui/react/components/Menu/SubMenu.d.ts +0 -10
  759. package/fe/packages/ui/react/components/Menu/SubMenu.js +0 -169
  760. package/fe/packages/ui/react/components/Menu/index.d.ts +0 -9
  761. package/fe/packages/ui/react/components/Menu/index.js +0 -5
  762. package/fe/packages/ui/react/components/Menu/menuTypes.js +0 -1
  763. package/fe/packages/ui/react/components/Menu/utils.js +0 -7
  764. package/fe/packages/ui/react/components/Message/Message.js +0 -58
  765. package/fe/packages/ui/react/components/Message/MessageManager.js +0 -90
  766. package/fe/packages/ui/react/components/Message/data.js +0 -1
  767. package/fe/packages/ui/react/components/Message/index.d.ts +0 -3
  768. package/fe/packages/ui/react/components/Message/index.js +0 -1
  769. package/fe/packages/ui/react/components/Modal/Modal.js +0 -14
  770. package/fe/packages/ui/react/components/Modal/ModalManager.js +0 -90
  771. package/fe/packages/ui/react/components/Modal/index.d.ts +0 -4
  772. package/fe/packages/ui/react/components/Modal/index.js +0 -2
  773. package/fe/packages/ui/react/components/Notification/Notification.js +0 -29
  774. package/fe/packages/ui/react/components/Notification/index.d.ts +0 -2
  775. package/fe/packages/ui/react/components/Notification/index.js +0 -1
  776. package/fe/packages/ui/react/components/Overlay/Overlay.js +0 -53
  777. package/fe/packages/ui/react/components/Overlay/index.d.ts +0 -3
  778. package/fe/packages/ui/react/components/Overlay/index.js +0 -1
  779. package/fe/packages/ui/react/components/Pagination/Pagination.js +0 -96
  780. package/fe/packages/ui/react/components/Pagination/index.d.ts +0 -2
  781. package/fe/packages/ui/react/components/Pagination/index.js +0 -1
  782. package/fe/packages/ui/react/components/Popup/Popup.js +0 -81
  783. package/fe/packages/ui/react/components/Popup/index.d.ts +0 -2
  784. package/fe/packages/ui/react/components/Popup/index.js +0 -1
  785. package/fe/packages/ui/react/components/Radio/Radio.js +0 -20
  786. package/fe/packages/ui/react/components/Radio/RadioGroup.js +0 -21
  787. package/fe/packages/ui/react/components/Radio/index.d.ts +0 -3
  788. package/fe/packages/ui/react/components/Radio/index.js +0 -2
  789. package/fe/packages/ui/react/components/Search/Search.js +0 -8
  790. package/fe/packages/ui/react/components/Search/index.d.ts +0 -2
  791. package/fe/packages/ui/react/components/Search/index.js +0 -1
  792. package/fe/packages/ui/react/components/Select/Select.js +0 -220
  793. package/fe/packages/ui/react/components/Select/dropdownPositioning.d.ts +0 -3
  794. package/fe/packages/ui/react/components/Select/dropdownPositioning.js +0 -13
  795. package/fe/packages/ui/react/components/Select/index.d.ts +0 -2
  796. package/fe/packages/ui/react/components/Select/index.js +0 -1
  797. package/fe/packages/ui/react/components/Skeleton/Skeleton.d.ts +0 -28
  798. package/fe/packages/ui/react/components/Skeleton/Skeleton.js +0 -31
  799. package/fe/packages/ui/react/components/Skeleton/index.d.ts +0 -3
  800. package/fe/packages/ui/react/components/Skeleton/index.js +0 -1
  801. package/fe/packages/ui/react/components/Switch/Switch.js +0 -22
  802. package/fe/packages/ui/react/components/Switch/index.d.ts +0 -2
  803. package/fe/packages/ui/react/components/Switch/index.js +0 -1
  804. package/fe/packages/ui/react/components/TableSearch/TableSearch.d.ts +0 -68
  805. package/fe/packages/ui/react/components/TableSearch/TableSearch.js +0 -121
  806. package/fe/packages/ui/react/components/TableSearch/index.d.ts +0 -3
  807. package/fe/packages/ui/react/components/TableSearch/index.js +0 -1
  808. package/fe/packages/ui/react/components/TableSearch/lang.js +0 -14
  809. package/fe/packages/ui/react/components/TableSearch/tableSearchLocaleStore.js +0 -11
  810. package/fe/packages/ui/react/components/Tabs/Tabs.js +0 -19
  811. package/fe/packages/ui/react/components/Tabs/index.d.ts +0 -2
  812. package/fe/packages/ui/react/components/Tabs/index.js +0 -1
  813. package/fe/packages/ui/react/components/Textarea/Textarea.js +0 -37
  814. package/fe/packages/ui/react/components/Textarea/index.d.ts +0 -2
  815. package/fe/packages/ui/react/components/Textarea/index.js +0 -1
  816. package/fe/packages/ui/react/components/Tooltip/Tooltip.js +0 -79
  817. package/fe/packages/ui/react/components/Tooltip/index.d.ts +0 -2
  818. package/fe/packages/ui/react/components/Tooltip/index.js +0 -1
  819. package/fe/packages/ui/react/components/TreeSelect/TreeSelect.js +0 -160
  820. package/fe/packages/ui/react/components/TreeSelect/index.d.ts +0 -2
  821. package/fe/packages/ui/react/components/TreeSelect/index.js +0 -1
  822. package/fe/packages/ui/react/components/Upload/ImageUpload.js +0 -75
  823. package/fe/packages/ui/react/components/Upload/Upload.d.ts +0 -41
  824. package/fe/packages/ui/react/components/Upload/Upload.js +0 -7
  825. package/fe/packages/ui/react/components/Upload/index.d.ts +0 -3
  826. package/fe/packages/ui/react/components/Upload/index.js +0 -2
  827. package/fe/packages/ui/react/components/breadcrumb/breadcrumb.js +0 -81
  828. package/fe/packages/ui/react/components/breadcrumb/index.d.ts +0 -2
  829. package/fe/packages/ui/react/components/breadcrumb/index.js +0 -1
  830. package/fe/packages/ui/react/components/hooks/useDropdownPositioning.js +0 -137
  831. package/fe/packages/ui/react/components/hooks/useInputController.js +0 -44
  832. package/fe/packages/ui/react/components/index.d.ts +0 -36
  833. package/fe/packages/ui/react/components/index.js +0 -35
  834. package/fe/packages/ui/react/components/table/index.d.ts +0 -2
  835. package/fe/packages/ui/react/components/table/index.js +0 -1
  836. package/fe/packages/ui/react/components/table/table.js +0 -116
  837. package/fe/packages/ui/react/components/testPage/MenuTestPage.js +0 -104
  838. package/fe/packages/ui/react/components/testPage/index.js +0 -475
  839. package/fe/packages/ui/react/hooks/useBreadcrumb.js +0 -2
  840. package/fe/packages/ui/react/hooks/useExecuteOnce.d.ts +0 -30
  841. package/fe/packages/ui/react/hooks/useExecuteOnce.js +0 -57
  842. package/fe/packages/ui/react/hooks/useInit.js +0 -9
  843. package/fe/packages/ui/react/hooks/useLanguage.d.ts +0 -2
  844. package/fe/packages/ui/react/hooks/useLanguage.js +0 -4
  845. package/fe/packages/ui/react/hooks/usePagination.js +0 -27
  846. package/fe/packages/ui/react/hooks/useRefState.js +0 -29
  847. package/fe/packages/ui/react/hooks/useWatch.js +0 -87
  848. package/fe/packages/ui/react/hooks/useWatch.test.d.ts +0 -2
  849. package/fe/packages/ui/react/hooks/useWatch.test.js +0 -22
  850. package/fe/packages/ui/react/i18n/I18nProvider.d.ts +0 -31
  851. package/fe/packages/ui/react/i18n/I18nProvider.js +0 -25
  852. package/fe/packages/ui/react/i18n/index.d.ts +0 -4
  853. package/fe/packages/ui/react/i18n/index.js +0 -3
  854. package/fe/packages/ui/react/i18n/useI18n.d.ts +0 -13
  855. package/fe/packages/ui/react/i18n/useI18n.js +0 -18
  856. package/fe/packages/ui/react/index.d.ts +0 -5
  857. package/fe/packages/ui/react/index.js +0 -6
  858. package/fe/packages/ui/react/lib/createStoreHook.js +0 -6
  859. package/fe/packages/ui/react/lib/export.d.ts +0 -66
  860. package/fe/packages/ui/react/lib/export.js +0 -138
  861. package/fe/packages/ui/react/lib/utils.d.ts +0 -34
  862. package/fe/packages/ui/react/lib/utils.js +0 -70
  863. package/fe/packages/ui/react/stores/breadcrumb.js +0 -66
  864. package/fe/packages/ui/react/stores/language.d.ts +0 -4
  865. package/fe/packages/ui/react/stores/language.js +0 -2
  866. package/fe/packages/ui/react/types/index.js +0 -1
  867. package/fe/typings/type.js +0 -1
  868. package/model/test.d.ts +0 -2
  869. package/model/types/data/fetchInfo.d.ts +0 -20
  870. package/model/types/data/schema.d.ts +0 -98
  871. package/types/app/middleware/project-handler.d.ts +0 -4
  872. /package/fe/packages/{ui/react → react/ui}/assets/table/no-result.svg +0 -0
  873. /package/fe/packages/{ui/react → react/ui}/index.css +0 -0
  874. /package/{fe/model/types/data/fetchInfo.js → model/model/test.d.ts} +0 -0
  875. /package/{fe/packages/common/cache/index.js → model/packages/common/cache/index.d.ts} +0 -0
  876. /package/{fe/packages/common/index.js → model/packages/common/index.d.ts} +0 -0
  877. /package/types/app/{middleware → middlewares}/api-params-verify.d.ts +0 -0
  878. /package/types/app/{middleware → middlewares}/api-sign-verify.d.ts +0 -0
  879. /package/types/app/{middleware → middlewares}/error-handle.d.ts +0 -0
@@ -1,173 +1,162 @@
1
- import { defaultLanguage, languageLocalKey, translations } from './locales';
2
- export * from './types';
3
- export * from './locales';
4
- export const isPlainI18nDictionary = (value) => {
5
- return Boolean(value) && typeof value === 'object' && !Array.isArray(value);
1
+ import "./default.js";
2
+ import "./en-US.js";
3
+ import { defaultLanguage, languageLocalKey, translations } from "./locales.js";
4
+ //#region packages/common/i18n/index.ts
5
+ var isPlainI18nDictionary = (value) => {
6
+ return Boolean(value) && typeof value === "object" && !Array.isArray(value);
6
7
  };
7
8
  /**
8
- * 深合并单个语言包。
9
- * 嵌套对象递归合并,字符串、数组、数字等叶子节点直接以 patch 覆盖 base。
10
- */
11
- export const mergeI18nDictionary = (base = {}, patch = {}) => {
12
- const next = { ...base };
13
- Object.entries(patch).forEach(([key, value]) => {
14
- const current = next[key];
15
- if (isPlainI18nDictionary(current) && isPlainI18nDictionary(value)) {
16
- next[key] = mergeI18nDictionary(current, value);
17
- return;
18
- }
19
- next[key] = value;
20
- });
21
- return next;
9
+ * 深合并单个语言包。
10
+ * 嵌套对象递归合并,字符串、数组、数字等叶子节点直接以 patch 覆盖 base。
11
+ */
12
+ var mergeI18nDictionary = (base = {}, patch = {}) => {
13
+ const next = { ...base };
14
+ Object.entries(patch).forEach(([key, value]) => {
15
+ const current = next[key];
16
+ if (isPlainI18nDictionary(current) && isPlainI18nDictionary(value)) {
17
+ next[key] = mergeI18nDictionary(current, value);
18
+ return;
19
+ }
20
+ next[key] = value;
21
+ });
22
+ return next;
22
23
  };
23
24
  /**
24
- * 合并多语言资源。
25
- * 结构示例:{ 'zh-CN': { common: { ok: '确定' } }, 'en-US': { common: { ok: 'OK' } } }
26
- */
27
- export const mergeI18nResources = (base = {}, patch = {}) => {
28
- const next = { ...base };
29
- Object.entries(patch).forEach(([language, messages]) => {
30
- if (!messages)
31
- return;
32
- next[language] = mergeI18nDictionary(next[language], messages);
33
- });
34
- return next;
25
+ * 合并多语言资源。
26
+ * 结构示例:{ 'zh-CN': { common: { ok: '确定' } }, 'en-US': { common: { ok: 'OK' } } }
27
+ */
28
+ var mergeI18nResources = (base = {}, patch = {}) => {
29
+ const next = { ...base };
30
+ Object.entries(patch).forEach(([language, messages]) => {
31
+ if (!messages) return;
32
+ next[language] = mergeI18nDictionary(next[language], messages);
33
+ });
34
+ return next;
35
35
  };
36
36
  /**
37
- * 根据点分 key 从语言包中取值。
38
- * 例如 common.submit 会读取 resources[language].common.submit。
39
- */
40
- export const getI18nPathValue = (dictionary, key) => {
41
- if (!dictionary)
42
- return undefined;
43
- return key.split('.').reduce((value, currentKey) => {
44
- if (!isPlainI18nDictionary(value))
45
- return undefined;
46
- return value[currentKey];
47
- }, dictionary);
37
+ * 根据点分 key 从语言包中取值。
38
+ * 例如 common.submit 会读取 resources[language].common.submit。
39
+ */
40
+ var getI18nPathValue = (dictionary, key) => {
41
+ if (!dictionary) return void 0;
42
+ return key.split(".").reduce((value, currentKey) => {
43
+ if (!isPlainI18nDictionary(value)) return void 0;
44
+ return value[currentKey];
45
+ }, dictionary);
48
46
  };
49
47
  /**
50
- * 替换文案中的插值占位符。
51
- * 例如 "Hello, {name}" + { name: "Tom" } => "Hello, Tom"。
52
- */
53
- export const interpolateI18nMessage = (value, data) => {
54
- if (!data)
55
- return value;
56
- return value.replace(/\{([A-Za-z0-9_]+)\}/g, (match, key) => {
57
- const nextValue = data[key];
58
- return typeof nextValue === 'undefined' || nextValue === null ? match : String(nextValue);
59
- });
48
+ * 替换文案中的插值占位符。
49
+ * 例如 "Hello, {name}" + { name: "Tom" } => "Hello, Tom"。
50
+ */
51
+ var interpolateI18nMessage = (value, data) => {
52
+ if (!data) return value;
53
+ return value.replace(/\{([A-Za-z0-9_]+)\}/g, (match, key) => {
54
+ const nextValue = data[key];
55
+ return typeof nextValue === "undefined" || nextValue === null ? match : String(nextValue);
56
+ });
60
57
  };
61
58
  /**
62
- * 纯翻译函数:只依赖传入的 state。
63
- * 优先级:指定语言 -> 兜底语言 -> options.fallback -> 原 key。
64
- */
65
- export const translate = (state, key, fillingData, options) => {
66
- const language = options?.language || state.language;
67
- const fallbackLanguage = options?.fallbackLanguage || state.fallbackLanguage;
68
- const value = getI18nPathValue(state.resources[language], key) ??
69
- getI18nPathValue(state.resources[fallbackLanguage], key) ??
70
- options?.fallback ??
71
- key;
72
- return (typeof value === 'string' ? interpolateI18nMessage(value, fillingData) : value);
59
+ * 纯翻译函数:只依赖传入的 state。
60
+ * 优先级:指定语言 -> 兜底语言 -> options.fallback -> 原 key。
61
+ */
62
+ var translate = (state, key, fillingData, options) => {
63
+ const language = options?.language || state.language;
64
+ const fallbackLanguage = options?.fallbackLanguage || state.fallbackLanguage;
65
+ const value = getI18nPathValue(state.resources[language], key) ?? getI18nPathValue(state.resources[fallbackLanguage], key) ?? options?.fallback ?? key;
66
+ return typeof value === "string" ? interpolateI18nMessage(value, fillingData) : value;
73
67
  };
74
- const getBrowserWindow = () => {
75
- return globalThis.window;
68
+ var getBrowserWindow = () => {
69
+ return globalThis.window;
76
70
  };
77
71
  /**
78
- * 初始化时优先读取本地缓存语言。
79
- * SSR 环境没有 window,直接回退到默认语言。
80
- */
81
- const getStoredLanguage = (storageKey) => {
82
- const windowRef = getBrowserWindow();
83
- if (!windowRef) {
84
- return defaultLanguage;
85
- }
86
- return windowRef.localStorage.getItem(storageKey) || defaultLanguage;
72
+ * 初始化时优先读取本地缓存语言。
73
+ * SSR 环境没有 window,直接回退到默认语言。
74
+ */
75
+ var getStoredLanguage = (storageKey) => {
76
+ const windowRef = getBrowserWindow();
77
+ if (!windowRef) return defaultLanguage;
78
+ return windowRef.localStorage.getItem(storageKey) || "zh-CN";
87
79
  };
88
80
  /**
89
- * 持久化当前语言,用于刷新页面后保持用户选择。
90
- */
91
- const persistLanguage = (storageKey, language) => {
92
- const windowRef = getBrowserWindow();
93
- if (!windowRef)
94
- return;
95
- windowRef.localStorage.setItem(storageKey, language);
81
+ * 持久化当前语言,用于刷新页面后保持用户选择。
82
+ */
83
+ var persistLanguage = (storageKey, language) => {
84
+ const windowRef = getBrowserWindow();
85
+ if (!windowRef) return;
86
+ windowRef.localStorage.setItem(storageKey, language);
96
87
  };
97
- const createInitialState = () => ({
98
- language: getStoredLanguage(languageLocalKey),
99
- fallbackLanguage: defaultLanguage,
100
- resources: translations,
101
- storageKey: languageLocalKey,
102
- persist: true,
88
+ var createInitialState = () => ({
89
+ language: getStoredLanguage(languageLocalKey),
90
+ fallbackLanguage: defaultLanguage,
91
+ resources: translations,
92
+ storageKey: languageLocalKey,
93
+ persist: true
103
94
  });
104
- const createI18nStore = () => {
105
- let state;
106
- const listeners = new Set();
107
- const setState = (partial) => {
108
- const previousState = state;
109
- const nextPartial = typeof partial === 'function' ? partial(state) : partial;
110
- state = { ...state, ...nextPartial };
111
- listeners.forEach((listener) => listener(state, previousState));
112
- };
113
- const initialState = createInitialState();
114
- state = {
115
- ...initialState,
116
- t: (key, fillingData, options) => i18n(key, fillingData, options),
117
- setLanguage: (language) => {
118
- setState({ language });
119
- const { persist, storageKey } = state;
120
- if (persist) {
121
- persistLanguage(storageKey, language);
122
- }
123
- },
124
- setFallbackLanguage: (fallbackLanguage) => {
125
- setState({ fallbackLanguage });
126
- },
127
- setResources: (resources, options) => {
128
- setState((currentState) => ({
129
- resources: options?.merge ? mergeI18nResources(currentState.resources, resources) : resources,
130
- }));
131
- },
132
- addResources: (language, messages, options) => {
133
- setState((currentState) => {
134
- const shouldMerge = options?.merge ?? true;
135
- const currentMessages = currentState.resources[language];
136
- return {
137
- resources: {
138
- ...currentState.resources,
139
- [language]: shouldMerge ? mergeI18nDictionary(currentMessages, messages) : messages,
140
- },
141
- };
142
- });
143
- },
144
- configureI18n: (config) => {
145
- setState(config);
146
- },
147
- resetI18n: () => {
148
- setState(createInitialState());
149
- },
150
- };
151
- const initialStoreState = state;
152
- return {
153
- getState: () => state,
154
- getInitialState: () => initialStoreState,
155
- setState,
156
- subscribe: (listener) => {
157
- listeners.add(listener);
158
- return () => {
159
- listeners.delete(listener);
160
- };
161
- },
162
- };
95
+ var createI18nStore = () => {
96
+ let state;
97
+ const listeners = /* @__PURE__ */ new Set();
98
+ const setState = (partial) => {
99
+ const previousState = state;
100
+ const nextPartial = typeof partial === "function" ? partial(state) : partial;
101
+ state = {
102
+ ...state,
103
+ ...nextPartial
104
+ };
105
+ listeners.forEach((listener) => listener(state, previousState));
106
+ };
107
+ state = {
108
+ ...createInitialState(),
109
+ t: (key, fillingData, options) => i18n(key, fillingData, options),
110
+ setLanguage: (language) => {
111
+ setState({ language });
112
+ const { persist, storageKey } = state;
113
+ if (persist) persistLanguage(storageKey, language);
114
+ },
115
+ setFallbackLanguage: (fallbackLanguage) => {
116
+ setState({ fallbackLanguage });
117
+ },
118
+ setResources: (resources, options) => {
119
+ setState((currentState) => ({ resources: options?.merge ? mergeI18nResources(currentState.resources, resources) : resources }));
120
+ },
121
+ addResources: (language, messages, options) => {
122
+ setState((currentState) => {
123
+ const shouldMerge = options?.merge ?? true;
124
+ const currentMessages = currentState.resources[language];
125
+ return { resources: {
126
+ ...currentState.resources,
127
+ [language]: shouldMerge ? mergeI18nDictionary(currentMessages, messages) : messages
128
+ } };
129
+ });
130
+ },
131
+ configureI18n: (config) => {
132
+ setState(config);
133
+ },
134
+ resetI18n: () => {
135
+ setState(createInitialState());
136
+ }
137
+ };
138
+ const initialStoreState = state;
139
+ return {
140
+ getState: () => state,
141
+ getInitialState: () => initialStoreState,
142
+ setState,
143
+ subscribe: (listener) => {
144
+ listeners.add(listener);
145
+ return () => {
146
+ listeners.delete(listener);
147
+ };
148
+ }
149
+ };
163
150
  };
164
- export const i18nStore = createI18nStore();
151
+ var i18nStore = createI18nStore();
165
152
  /**
166
- * 对外使用的 i18n 函数。
167
- * 每次调用都会读取最新 state,适合在非 React 代码中直接使用。
168
- */
169
- export const i18n = (key, fillingData, options) => {
170
- return translate(i18nStore.getState(), key, fillingData, options);
153
+ * 对外使用的 i18n 函数。
154
+ * 每次调用都会读取最新 state,适合在非 React 代码中直接使用。
155
+ */
156
+ var i18n = (key, fillingData, options) => {
157
+ return translate(i18nStore.getState(), key, fillingData, options);
171
158
  };
172
- export const t = i18n;
173
- export const getLanguage = i18n;
159
+ var t = i18n;
160
+ var getLanguage = i18n;
161
+ //#endregion
162
+ export { getI18nPathValue, getLanguage, i18n, i18nStore, interpolateI18nMessage, isPlainI18nDictionary, mergeI18nDictionary, mergeI18nResources, t, translate };
@@ -1,8 +1,7 @@
1
- import type { I18nResources } from './types';
1
+ import type { I18nResources } from "./types";
2
2
  export declare const defaultLanguage: "zh-CN";
3
3
  export declare const languageLocalKey = "tc_language";
4
4
  export declare const translations: I18nResources;
5
5
  export type Language = keyof typeof translations | (string & {});
6
- export * from './default';
7
- export * from './en-US';
8
- //# sourceMappingURL=locales.d.ts.map
6
+ export * from "./default";
7
+ export * from "./en-US";
@@ -1,10 +1,11 @@
1
- import { defaultLanguageResources } from './default';
2
- import { defaultEnglishResources } from './en-US';
3
- export const defaultLanguage = 'zh-CN';
4
- export const languageLocalKey = 'tc_language';
5
- export const translations = {
6
- 'zh-CN': defaultLanguageResources,
7
- 'en-US': defaultEnglishResources,
1
+ import { defaultLanguageResources } from "./default.js";
2
+ import { defaultEnglishResources } from "./en-US.js";
3
+ //#region packages/common/i18n/locales.ts
4
+ var defaultLanguage = "zh-CN";
5
+ var languageLocalKey = "tc_language";
6
+ var translations = {
7
+ "zh-CN": defaultLanguageResources,
8
+ "en-US": defaultEnglishResources
8
9
  };
9
- export * from './default';
10
- export * from './en-US';
10
+ //#endregion
11
+ export { defaultLanguage, languageLocalKey, translations };
@@ -12,52 +12,28 @@ export interface I18nTranslateState {
12
12
  resources: I18nResources;
13
13
  }
14
14
  export interface I18nState extends I18nTranslateState {
15
- /** 持久化语言时使用的 localStorage key。 */
16
15
  storageKey: string;
17
- /** 是否把 setLanguage 的结果写入 localStorage。 */
18
16
  persist: boolean;
19
17
  }
20
18
  export interface I18nTranslateOptions {
21
- /**
22
- * 指定本次翻译使用的语言,不传则使用全局 language。
23
- */
24
19
  language?: I18nLanguage;
25
- /**
26
- * 当前语言未命中时使用的兜底语言,不传则使用全局 fallbackLanguage。
27
- */
28
20
  fallbackLanguage?: I18nLanguage;
29
- /**
30
- * 当前语言和兜底语言都未命中时返回的兜底值。
31
- */
32
21
  fallback?: I18nMessage;
33
22
  }
34
23
  export interface I18nSetResourcesOptions {
35
- /**
36
- * 是否和现有资源深合并。默认 false,直接替换 resources。
37
- */
38
24
  merge?: boolean;
39
25
  }
40
26
  export interface I18nAddResourcesOptions {
41
- /**
42
- * 是否和当前语言资源深合并。默认 true。
43
- */
44
27
  merge?: boolean;
45
28
  }
46
29
  export type I18nTranslator = <T = string>(key: string, fillingData?: I18nInterpolationValues, options?: I18nTranslateOptions) => T | string;
47
30
  export interface I18nActions {
48
- /** 设置当前展示语言。 */
49
31
  setLanguage: (language: I18nLanguage) => void;
50
- /** 设置兜底语言。 */
51
32
  setFallbackLanguage: (language: I18nLanguage) => void;
52
- /** 批量设置多语言资源,可选择替换或合并。 */
53
33
  setResources: (resources: I18nResources, options?: I18nSetResourcesOptions) => void;
54
- /** 为指定语言追加资源,默认和已有资源深合并。 */
55
34
  addResources: (language: I18nLanguage, messages: I18nDictionary, options?: I18nAddResourcesOptions) => void;
56
- /** 配置存储行为,主要由 I18nProvider 同步外部 props 使用。 */
57
35
  configureI18n: (config: Partial<Pick<I18nState, 'storageKey' | 'persist'>>) => void;
58
- /** 重置为默认语言、默认资源和默认存储配置。 */
59
36
  resetI18n: () => void;
60
- /** 挂在 store 上的翻译函数,方便直接读取。 */
61
37
  t: I18nTranslator;
62
38
  }
63
39
  export type I18nStore = I18nState & I18nActions;
@@ -68,4 +44,3 @@ export interface I18nStoreApi {
68
44
  setState: (partial: Partial<I18nStore> | ((state: I18nStore) => Partial<I18nStore>)) => void;
69
45
  subscribe: (listener: I18nStoreListener) => () => void;
70
46
  }
71
- //# sourceMappingURL=types.d.ts.map
@@ -8,4 +8,3 @@ export * from "./number";
8
8
  export * from "./object";
9
9
  export * from "./string";
10
10
  export * from "./types";
11
- //# sourceMappingURL=index.d.ts.map
@@ -30,4 +30,3 @@ export declare const logYellow: (...data: unknown[]) => void;
30
30
  export declare const logPink: (...data: unknown[]) => void;
31
31
  export declare const logWhite: (...data: unknown[]) => void;
32
32
  export declare const logRed: (...data: unknown[]) => void;
33
- //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export declare const clamp: (value: number, min: number, max: number) => number;
2
2
  export declare const toFiniteNumber: (value: unknown, fallback?: number) => number;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export declare function filterEmpty<T>(data: T): T | undefined;
2
2
  export declare const filtereEmpty: typeof filterEmpty;
3
- //# sourceMappingURL=filterEmpty.d.ts.map
@@ -1,33 +1,28 @@
1
- import { isPlainObject } from "../guards";
2
- const isEmptyValue = (value) => {
3
- if (value === undefined)
4
- return true;
5
- if (Array.isArray(value))
6
- return value.length === 0;
7
- if (isPlainObject(value))
8
- return Object.keys(value).length === 0;
9
- return false;
1
+ import { isPlainObject } from "../guards/index.js";
2
+ //#region packages/common/object/filterEmpty.ts
3
+ var isEmptyValue = (value) => {
4
+ if (value === void 0) return true;
5
+ if (Array.isArray(value)) return value.length === 0;
6
+ if (isPlainObject(value)) return Object.keys(value).length === 0;
7
+ return false;
10
8
  };
11
- const filterEmptyValue = (value) => {
12
- if (Array.isArray(value)) {
13
- const result = value
14
- .map((item) => filterEmptyValue(item))
15
- .filter((item) => !isEmptyValue(item));
16
- return result.length > 0 ? result : undefined;
17
- }
18
- if (isPlainObject(value)) {
19
- const result = {};
20
- for (const [key, item] of Object.entries(value)) {
21
- const nextValue = filterEmptyValue(item);
22
- if (!isEmptyValue(nextValue)) {
23
- result[key] = nextValue;
24
- }
25
- }
26
- return Object.keys(result).length > 0 ? result : undefined;
27
- }
28
- return value;
9
+ var filterEmptyValue = (value) => {
10
+ if (Array.isArray(value)) {
11
+ const result = value.map((item) => filterEmptyValue(item)).filter((item) => !isEmptyValue(item));
12
+ return result.length > 0 ? result : void 0;
13
+ }
14
+ if (isPlainObject(value)) {
15
+ const result = {};
16
+ for (const [key, item] of Object.entries(value)) {
17
+ const nextValue = filterEmptyValue(item);
18
+ if (!isEmptyValue(nextValue)) result[key] = nextValue;
19
+ }
20
+ return Object.keys(result).length > 0 ? result : void 0;
21
+ }
22
+ return value;
29
23
  };
30
- export function filterEmpty(data) {
31
- return filterEmptyValue(data);
24
+ function filterEmpty(data) {
25
+ return filterEmptyValue(data);
32
26
  }
33
- export const filtereEmpty = filterEmpty;
27
+ //#endregion
28
+ export { filterEmpty };
@@ -0,0 +1 @@
1
+ export { filterEmpty, filtereEmpty } from "./filterEmpty";
@@ -2,4 +2,3 @@ export * from "./filterEmpty";
2
2
  export declare const pick: <T extends object, K extends keyof T>(target: T, keys: readonly K[]) => Pick<T, K>;
3
3
  export declare const omit: <T extends object, K extends keyof T>(target: T, keys: readonly K[]) => Omit<T, K>;
4
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; };
5
- //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,3 @@
1
1
  export declare const isBlank: (value: string | null | undefined) => boolean;
2
2
  export declare const capitalize: (value: string) => string;
3
3
  export declare const kebabCase: (value: string) => string;
4
- //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,3 @@
1
1
  export type Maybe<T> = T | null | undefined;
2
2
  export type Primitive = string | number | boolean | bigint | symbol | null | undefined;
3
3
  export type Dictionary<T = unknown> = Record<string, T>;
4
- //# sourceMappingURL=index.d.ts.map
@@ -1,10 +1,9 @@
1
1
  export declare const useBreadcrumb: import("zustand").UseBoundStore<import("zustand").StoreApi<{
2
- items: import("..").BreadcrumbItemData[];
2
+ items: import("../ui/index").BreadcrumbItemData[];
3
3
  } & {
4
- setItems: (items: import("..").BreadcrumbItemData[]) => void;
5
- addItem: (item: import("..").BreadcrumbItemData) => void;
4
+ setItems: (items: import("../ui/index").BreadcrumbItemData[]) => void;
5
+ addItem: (item: import("../ui/index").BreadcrumbItemData) => void;
6
6
  removeItem: (id: string | number) => void;
7
7
  clearItems: () => void;
8
8
  setActiveItem: (id: string | number) => void;
9
9
  }>>;
10
- //# sourceMappingURL=useBreadcrumb.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { useBreadcrumbStore } from "../ui/stores/breadcrumb.js";
2
+ //#region packages/react/hooks/useBreadcrumb.ts
3
+ var useBreadcrumb = useBreadcrumbStore;
4
+ //#endregion
5
+ export { useBreadcrumb };
@@ -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,47 @@
1
+ import { useEffect, useMemo, useRef } from "react";
2
+ //#region packages/react/hooks/useExecuteOnce.ts
3
+ var executionPhaseType = {
4
+ mount: "mount",
5
+ render: "render",
6
+ unMount: "unMount"
7
+ };
8
+ /**
9
+ *
10
+ * @description 在各个阶段只触发一次
11
+ * @demo
12
+ * ```
13
+ const count = useExecuteOnce(() => {
14
+ console.log('123'); // 只会在第一次render时触发
15
+ return 123
16
+ })
17
+
18
+ // count 123
19
+
20
+ * ```
21
+ */
22
+ function useExecuteOnce(factory, options) {
23
+ const { executionPhase: pExecutionPhase = executionPhaseType.render } = options ?? {};
24
+ const result = useRef(null);
25
+ const _executionPhase = useMemo(() => typeof pExecutionPhase === "string" ? [pExecutionPhase] : pExecutionPhase, [pExecutionPhase]);
26
+ const allowExecution = useRef([]);
27
+ const executionPhase = useRef(_executionPhase);
28
+ const runFN = (phase) => {
29
+ if (!allowExecution.current.includes(phase)) {
30
+ result.current = factory();
31
+ allowExecution.current.push(phase);
32
+ }
33
+ };
34
+ const fn = useRef(runFN);
35
+ executionPhase.current = _executionPhase;
36
+ fn.current = runFN;
37
+ if (executionPhase.current.includes(executionPhaseType.render)) fn.current(executionPhaseType.render);
38
+ useEffect(() => {
39
+ if (executionPhase.current.includes(executionPhaseType.mount)) fn.current(executionPhaseType["mount"]);
40
+ return () => {
41
+ if (executionPhase.current.includes(executionPhaseType["unMount"])) fn.current(executionPhaseType["unMount"]);
42
+ };
43
+ }, []);
44
+ return result.current;
45
+ }
46
+ //#endregion
47
+ export { useExecuteOnce as default, executionPhaseType };
@@ -1,3 +1,2 @@
1
1
  declare const useInit: (callback: (isInit: boolean) => void) => void;
2
2
  export default useInit;
3
- //# sourceMappingURL=useInit.d.ts.map
@@ -0,0 +1,11 @@
1
+ import { useRef } from "react";
2
+ //#region packages/react/hooks/useInit.ts
3
+ var useInit = (callback) => {
4
+ const isInit = useRef(false);
5
+ if (!isInit.current) {
6
+ callback(isInit.current);
7
+ isInit.current = true;
8
+ }
9
+ };
10
+ //#endregion
11
+ export { useInit as default };
@@ -0,0 +1 @@
1
+ export declare function useLanguage(): import("../ui/index").I18nStore;
@@ -0,0 +1,8 @@
1
+ import { useI18nStore } from "../ui/i18n/useI18n.js";
2
+ import "../ui/stores/language.js";
3
+ //#region packages/react/hooks/useLanguage.ts
4
+ function useLanguage() {
5
+ return useI18nStore();
6
+ }
7
+ //#endregion
8
+ export { useLanguage };
@@ -13,4 +13,3 @@ export default function usePagination(params?: IParams): import("react").RefObje
13
13
  onChange: (params: Partial<PaginationValue>) => void;
14
14
  }>;
15
15
  export {};
16
- //# sourceMappingURL=usePagination.d.ts.map