@_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,32 +1,81 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { getText } from '../../common/language';
3
- import { frontendLangKeys } from '../../language';
4
- import { cn, Select } from '../../../../packages/ui/react';
5
- import { i18nStore, useI18nStore } from '../../../../packages/ui/react/i18n';
6
- import { useMemo } from 'react';
7
- const getDefaultLanguageOptions = () => [
8
- {
9
- label: getText(frontendLangKeys.languageSwitchZhCN),
10
- value: 'zh-CN',
11
- searchText: 'zh-CN 中文 简体中文',
12
- },
13
- {
14
- label: getText(frontendLangKeys.languageSwitchEnUS),
15
- value: 'en-US',
16
- searchText: 'en-US English',
17
- },
18
- ];
19
- const LanguageSwitch = ({ value, defaultValue, options, onChange, className, placeholder, clearable = false, searchable = false, getPopupContainer = 'parent', ...props }) => {
20
- const currentLanguage = useI18nStore((state) => state.language);
21
- const mergedOptions = useMemo(() => options ?? getDefaultLanguageOptions(), [currentLanguage, options]);
22
- const selectedLanguage = value ?? currentLanguage ?? defaultValue;
23
- const handleChange = (language) => {
24
- if (!language)
25
- return;
26
- const nextLanguage = String(language);
27
- i18nStore.getState().setLanguage(nextLanguage);
28
- onChange?.(nextLanguage);
29
- };
30
- return (_jsx(Select, { ...props, className: cn('w-32 shrink-0', className), clearable: clearable, getPopupContainer: getPopupContainer, options: mergedOptions, placeholder: placeholder ?? getText(frontendLangKeys.languageSwitchPlaceholder), searchable: searchable, value: selectedLanguage ?? defaultValue, onChange: handleChange }));
1
+ import { frontendLangKeys } from "../../language/index.js";
2
+ import { i18nStore } from "../../../../packages/common/i18n/index.js";
3
+ import { useI18nStore } from "../../../../packages/react/ui/i18n/useI18n.js";
4
+ import "../../../../packages/react/ui/i18n/index.js";
5
+ import { getText } from "../../common/language.js";
6
+ import { cn } from "../../../../packages/react/ui/lib/utils.js";
7
+ import { Button } from "../../../../packages/react/ui/components/Button/Button.js";
8
+ import { Dropdown } from "../../../../packages/react/ui/components/Dropdown/Dropdown.js";
9
+ import "../../../../packages/react/ui/index.js";
10
+ import { useCallback, useMemo, useRef } from "react";
11
+ import { jsx, jsxs } from "react/jsx-runtime";
12
+ import { Check, ChevronDown } from "lucide-react";
13
+ //#region frontend/src/components/LanguageSwitch/LanguageSwitch.tsx
14
+ var getDefaultLanguageOptions = () => [{
15
+ label: getText(frontendLangKeys.languageSwitchZhCN),
16
+ value: "zh-CN",
17
+ searchText: "zh-CN 中文 简体中文"
18
+ }, {
19
+ label: getText(frontendLangKeys.languageSwitchEnUS),
20
+ value: "en-US",
21
+ searchText: "en-US English"
22
+ }];
23
+ var LanguageSwitch = ({ value, defaultValue, options, onChange, className, buttonClassName, placeholder, disabled, loading, clearable: _clearable, searchable: _searchable, placement = "bottom-end", getPopupContainer = "parent", ...props }) => {
24
+ const rootRef = useRef(null);
25
+ const currentLanguage = useI18nStore((state) => state.language);
26
+ const mergedOptions = useMemo(() => options ?? getDefaultLanguageOptions(), [currentLanguage, options]);
27
+ const selectedLanguage = value ?? currentLanguage ?? defaultValue;
28
+ const selectedOption = mergedOptions.find((option) => option.value === selectedLanguage);
29
+ const displayText = selectedOption?.label ?? placeholder ?? getText(frontendLangKeys.languageSwitchPlaceholder);
30
+ const handleChange = useCallback((language) => {
31
+ if (!language) return;
32
+ const nextLanguage = String(language);
33
+ i18nStore.getState().setLanguage(nextLanguage);
34
+ onChange?.(nextLanguage);
35
+ }, [onChange]);
36
+ const dropdownItems = useMemo(() => mergedOptions.map((option) => ({
37
+ key: option.value,
38
+ label: /* @__PURE__ */ jsxs("span", {
39
+ className: "flex min-w-0 flex-1 items-center justify-between gap-3",
40
+ children: [/* @__PURE__ */ jsx("span", {
41
+ className: "min-w-0 truncate",
42
+ children: option.label
43
+ }), option.value === selectedLanguage && /* @__PURE__ */ jsx(Check, { className: "h-4 w-4 shrink-0 text-theme" })]
44
+ }),
45
+ onClick: () => handleChange(option.value)
46
+ })), [
47
+ handleChange,
48
+ mergedOptions,
49
+ selectedLanguage
50
+ ]);
51
+ const resolvedGetPopupContainer = useMemo(() => {
52
+ if (getPopupContainer !== "parent") return getPopupContainer;
53
+ if (typeof document === "undefined") return void 0;
54
+ return () => rootRef.current?.parentElement ?? document.body;
55
+ }, [getPopupContainer]);
56
+ return /* @__PURE__ */ jsx("div", {
57
+ ref: rootRef,
58
+ className: cn("w-32 shrink-0", className),
59
+ children: /* @__PURE__ */ jsx(Dropdown, {
60
+ ...props,
61
+ className: "w-full",
62
+ getPopupContainer: resolvedGetPopupContainer,
63
+ items: dropdownItems,
64
+ placement,
65
+ children: /* @__PURE__ */ jsx(Button, {
66
+ type: "button",
67
+ disabled,
68
+ variant: "text",
69
+ loading,
70
+ rightIcon: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4 text-muted-foreground" }),
71
+ className: cn("h-10 w-full justify-between gap-2 rounded-lg px-3 text-sm", !selectedOption && "text-muted-foreground", buttonClassName),
72
+ children: /* @__PURE__ */ jsx("span", {
73
+ className: "min-w-0 truncate",
74
+ children: displayText
75
+ })
76
+ })
77
+ })
78
+ });
31
79
  };
32
- export default LanguageSwitch;
80
+ //#endregion
81
+ export { LanguageSwitch as default };
@@ -1,4 +1,3 @@
1
- import LanguageSwitch from './LanguageSwitch';
2
- export * from './LanguageSwitch';
1
+ import LanguageSwitch from "./LanguageSwitch";
2
+ export * from "./LanguageSwitch";
3
3
  export default LanguageSwitch;
4
- //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,5 @@
1
- import LanguageSwitch from './LanguageSwitch';
2
- export * from './LanguageSwitch';
3
- export default LanguageSwitch;
1
+ import LanguageSwitch from "./LanguageSwitch.js";
2
+ //#region frontend/src/components/LanguageSwitch/index.ts
3
+ var LanguageSwitch_default = LanguageSwitch;
4
+ //#endregion
5
+ export { LanguageSwitch_default as default };
@@ -1,9 +1,8 @@
1
- import { ReactNode } from 'react';
2
- import { RouterType } from './type';
1
+ import { ReactNode } from "react";
2
+ import { RouterType } from "./type";
3
3
  export type RouteInfo = {
4
4
  path: string;
5
5
  component: ReactNode;
6
6
  children?: RouteInfo[];
7
7
  };
8
8
  export declare const generateRouter: (routes: RouteInfo[], type: RouterType) => import("react/jsx-runtime").JSX.Element;
9
- //# sourceMappingURL=index.d.ts.map
@@ -1,11 +1,21 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { BrowserRouter, HashRouter, Route, Routes } from 'react-router-dom';
3
- export const generateRouter = (routes, type) => {
4
- const RouterComponent = type === 'browser' ? BrowserRouter : HashRouter;
5
- const renderDom = (routes) => {
6
- return routes.map((route) => {
7
- return (_jsx(Route, { path: route.path, element: route.component, children: route.children && renderDom(route.children) }, route.path));
8
- });
9
- };
10
- return (_jsx(RouterComponent, { basename: window._basePath, children: _jsx(Routes, { children: renderDom(routes) }) }));
1
+ import { BrowserRouter, HashRouter, Route, Routes } from "react-router-dom";
2
+ import { jsx } from "react/jsx-runtime";
3
+ //#region frontend/src/components/Router/index.tsx
4
+ var generateRouter = (routes, type) => {
5
+ const RouterComponent = type === "browser" ? BrowserRouter : HashRouter;
6
+ const renderDom = (routes) => {
7
+ return routes.map((route) => {
8
+ return /* @__PURE__ */ jsx(Route, {
9
+ path: route.path,
10
+ element: route.component,
11
+ children: route.children && renderDom(route.children)
12
+ }, route.path);
13
+ });
14
+ };
15
+ return /* @__PURE__ */ jsx(RouterComponent, {
16
+ basename: window._basePath,
17
+ children: /* @__PURE__ */ jsx(Routes, { children: renderDom(routes) })
18
+ });
11
19
  };
20
+ //#endregion
21
+ export { generateRouter };
@@ -1,2 +1 @@
1
1
  export type RouterType = "hash" | "browser";
2
- //# sourceMappingURL=type.d.ts.map
@@ -1 +0,0 @@
1
- export {};
@@ -12,4 +12,3 @@ export interface ThemeSwitchProps {
12
12
  export declare const themeSwitchStorageKey = "tc_theme";
13
13
  declare const ThemeSwitch: ({ value, defaultValue, onChange, disabled, className, showLabel, persist, storageKey, }: ThemeSwitchProps) => import("react/jsx-runtime").JSX.Element;
14
14
  export default ThemeSwitch;
15
- //# sourceMappingURL=ThemeSwitch.d.ts.map
@@ -1,59 +1,87 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { getText } from '../../common/language';
3
- import { frontendLangKeys } from '../../language';
4
- import { cn, Switch, Tooltip } from '../../../../packages/ui/react';
5
- import { useI18nStore } from '../../../../packages/ui/react/i18n';
6
- import { Moon, Sun } from 'lucide-react';
7
- import { useEffect, useState } from 'react';
8
- export const themeSwitchStorageKey = 'tc_theme';
9
- const canUseDocument = () => typeof document !== 'undefined';
10
- const canUseLocalStorage = () => typeof localStorage !== 'undefined';
11
- const getStoredThemeMode = (storageKey) => {
12
- if (!canUseLocalStorage())
13
- return null;
14
- const value = localStorage.getItem(storageKey);
15
- return value === 'light' || value === 'dark' ? value : null;
1
+ import { frontendLangKeys } from "../../language/index.js";
2
+ import { useI18nStore } from "../../../../packages/react/ui/i18n/useI18n.js";
3
+ import "../../../../packages/react/ui/i18n/index.js";
4
+ import { getText } from "../../common/language.js";
5
+ import { cn } from "../../../../packages/react/ui/lib/utils.js";
6
+ import { Switch } from "../../../../packages/react/ui/components/Switch/Switch.js";
7
+ import { Tooltip } from "../../../../packages/react/ui/components/Tooltip/Tooltip.js";
8
+ import "../../../../packages/react/ui/index.js";
9
+ import { useEffect, useState } from "react";
10
+ import { jsx, jsxs } from "react/jsx-runtime";
11
+ import { Moon, Sun } from "lucide-react";
12
+ //#region frontend/src/components/ThemeSwitch/ThemeSwitch.tsx
13
+ var themeSwitchStorageKey = "tc_theme";
14
+ var canUseDocument = () => typeof document !== "undefined";
15
+ var canUseLocalStorage = () => typeof localStorage !== "undefined";
16
+ var getStoredThemeMode = (storageKey) => {
17
+ if (!canUseLocalStorage()) return null;
18
+ const value = localStorage.getItem(storageKey);
19
+ return value === "light" || value === "dark" ? value : null;
16
20
  };
17
- const getCurrentThemeMode = (defaultValue, storageKey = themeSwitchStorageKey) => {
18
- const storedMode = getStoredThemeMode(storageKey);
19
- if (storedMode)
20
- return storedMode;
21
- if (defaultValue)
22
- return defaultValue;
23
- if (!canUseDocument())
24
- return 'light';
25
- return document.documentElement.classList.contains('dark') ? 'dark' : 'light';
21
+ var getCurrentThemeMode = (defaultValue, storageKey = themeSwitchStorageKey) => {
22
+ const storedMode = getStoredThemeMode(storageKey);
23
+ if (storedMode) return storedMode;
24
+ if (defaultValue) return defaultValue;
25
+ if (!canUseDocument()) return "light";
26
+ return document.documentElement.classList.contains("dark") ? "dark" : "light";
26
27
  };
27
- const applyThemeMode = (mode, persist, storageKey) => {
28
- if (!canUseDocument())
29
- return;
30
- const root = document.documentElement;
31
- root.classList.toggle('dark', mode === 'dark');
32
- root.style.colorScheme = mode;
33
- if (persist && canUseLocalStorage()) {
34
- localStorage.setItem(storageKey, mode);
35
- }
28
+ var persistThemeMode = (mode, storageKey) => {
29
+ if (canUseLocalStorage()) localStorage.setItem(storageKey, mode);
36
30
  };
37
- const ThemeSwitch = ({ value, defaultValue, onChange, disabled, className, showLabel = false, persist = true, storageKey = themeSwitchStorageKey, }) => {
38
- useI18nStore((state) => state.language);
39
- const [internalMode, setInternalMode] = useState(() => getCurrentThemeMode(defaultValue, storageKey));
40
- const isControlled = value !== undefined;
41
- const mode = isControlled ? value : internalMode;
42
- const checked = mode === 'dark';
43
- useEffect(() => {
44
- applyThemeMode(mode, persist, storageKey);
45
- }, [mode, persist, storageKey]);
46
- const handleChange = (nextChecked) => {
47
- const nextMode = nextChecked ? 'dark' : 'light';
48
- if (!isControlled) {
49
- setInternalMode(nextMode);
50
- }
51
- onChange?.(nextMode);
52
- };
53
- const label = mode === 'dark' ? getText(frontendLangKeys.themeSwitchDark) : getText(frontendLangKeys.themeSwitchLight);
54
- const tooltip = checked
55
- ? getText(frontendLangKeys.themeSwitchToLight)
56
- : getText(frontendLangKeys.themeSwitchToDark);
57
- return (_jsxs("div", { className: cn('inline-flex shrink-0 items-center gap-2 text-foreground', className), children: [_jsx(Sun, { className: cn('h-4 w-4', checked ? 'text-muted-foreground' : 'text-foreground'), "aria-hidden": "true" }), _jsx(Tooltip, { content: tooltip, placement: "bottom", children: _jsx(Switch, { checked: checked, disabled: disabled, onChange: handleChange }) }), _jsx(Moon, { className: cn('h-4 w-4', checked ? 'text-foreground' : 'text-muted-foreground'), "aria-hidden": "true" }), showLabel && _jsx("span", { className: "min-w-8 text-xs text-muted-foreground", children: label })] }));
31
+ var applyThemeMode = (mode, persist, storageKey) => {
32
+ if (!canUseDocument()) return;
33
+ const root = document.documentElement;
34
+ root.classList.toggle("dark", mode === "dark");
35
+ root.style.colorScheme = mode;
36
+ if (persist) persistThemeMode(mode, storageKey);
58
37
  };
59
- export default ThemeSwitch;
38
+ var ThemeSwitch = ({ value, defaultValue, onChange, disabled, className, showLabel = false, persist = true, storageKey = themeSwitchStorageKey }) => {
39
+ useI18nStore((state) => state.language);
40
+ const [internalMode, setInternalMode] = useState(() => getCurrentThemeMode(defaultValue, storageKey));
41
+ const isControlled = value !== void 0;
42
+ const mode = isControlled ? value : internalMode;
43
+ const checked = mode === "dark";
44
+ useEffect(() => {
45
+ applyThemeMode(mode, persist, storageKey);
46
+ }, [
47
+ mode,
48
+ persist,
49
+ storageKey
50
+ ]);
51
+ const handleChange = (nextChecked) => {
52
+ const nextMode = nextChecked ? "dark" : "light";
53
+ if (!isControlled) setInternalMode(nextMode);
54
+ if (persist) persistThemeMode(nextMode, storageKey);
55
+ onChange?.(nextMode);
56
+ };
57
+ const label = mode === "dark" ? getText(frontendLangKeys.themeSwitchDark) : getText(frontendLangKeys.themeSwitchLight);
58
+ const tooltip = checked ? getText(frontendLangKeys.themeSwitchToLight) : getText(frontendLangKeys.themeSwitchToDark);
59
+ return /* @__PURE__ */ jsxs("div", {
60
+ className: cn("inline-flex shrink-0 items-center gap-2 text-foreground", className),
61
+ children: [
62
+ /* @__PURE__ */ jsx(Sun, {
63
+ className: cn("h-4 w-4", checked ? "text-muted-foreground" : "text-foreground"),
64
+ "aria-hidden": "true"
65
+ }),
66
+ /* @__PURE__ */ jsx(Tooltip, {
67
+ content: tooltip,
68
+ placement: "bottom",
69
+ children: /* @__PURE__ */ jsx(Switch, {
70
+ checked,
71
+ disabled,
72
+ onChange: handleChange
73
+ })
74
+ }),
75
+ /* @__PURE__ */ jsx(Moon, {
76
+ className: cn("h-4 w-4", checked ? "text-foreground" : "text-muted-foreground"),
77
+ "aria-hidden": "true"
78
+ }),
79
+ showLabel && /* @__PURE__ */ jsx("span", {
80
+ className: "min-w-8 text-xs text-muted-foreground",
81
+ children: label
82
+ })
83
+ ]
84
+ });
85
+ };
86
+ //#endregion
87
+ export { ThemeSwitch as default, themeSwitchStorageKey };
@@ -1,4 +1,3 @@
1
- import ThemeSwitch from './ThemeSwitch';
2
- export * from './ThemeSwitch';
1
+ import ThemeSwitch from "./ThemeSwitch";
2
+ export * from "./ThemeSwitch";
3
3
  export default ThemeSwitch;
4
- //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,5 @@
1
- import ThemeSwitch from './ThemeSwitch';
2
- export * from './ThemeSwitch';
3
- export default ThemeSwitch;
1
+ import ThemeSwitch, { themeSwitchStorageKey } from "./ThemeSwitch.js";
2
+ //#region frontend/src/components/ThemeSwitch/index.ts
3
+ var ThemeSwitch_default = ThemeSwitch;
4
+ //#endregion
5
+ export { ThemeSwitch_default as default, themeSwitchStorageKey };
@@ -1,11 +1,10 @@
1
- export { default as AsyncSelect } from './AsyncSelect';
2
- export * from './AsyncSelect';
3
- export { default as HeaderView } from './BasePage/HeaderView';
4
- export * from './BasePage/HeaderView';
5
- export { default as LanguageSwitch } from './LanguageSwitch';
6
- export * from './LanguageSwitch';
7
- export * from './Router';
8
- export * from './Router/type';
9
- export { default as ThemeSwitch } from './ThemeSwitch';
10
- export * from './ThemeSwitch';
11
- //# sourceMappingURL=index.d.ts.map
1
+ export { default as AsyncSelect } from "./AsyncSelect";
2
+ export * from "./AsyncSelect";
3
+ export { default as HeaderView } from "./BasePage/HeaderView";
4
+ export * from "./BasePage/HeaderView";
5
+ export { default as LanguageSwitch } from "./LanguageSwitch";
6
+ export * from "./LanguageSwitch";
7
+ export * from "./Router";
8
+ export * from "./Router/type";
9
+ export { default as ThemeSwitch } from "./ThemeSwitch";
10
+ export * from "./ThemeSwitch";
@@ -1,10 +1,7 @@
1
- export { default as AsyncSelect } from './AsyncSelect';
2
- export * from './AsyncSelect';
3
- export { default as HeaderView } from './BasePage/HeaderView';
4
- export * from './BasePage/HeaderView';
5
- export { default as LanguageSwitch } from './LanguageSwitch';
6
- export * from './LanguageSwitch';
7
- export * from './Router';
8
- export * from './Router/type';
9
- export { default as ThemeSwitch } from './ThemeSwitch';
10
- export * from './ThemeSwitch';
1
+ import HeaderView from "./BasePage/HeaderView.js";
2
+ import { generateRouter } from "./Router/index.js";
3
+ import AsyncSelect_default from "./AsyncSelect/index.js";
4
+ import LanguageSwitch_default from "./LanguageSwitch/index.js";
5
+ import { themeSwitchStorageKey } from "./ThemeSwitch/ThemeSwitch.js";
6
+ import ThemeSwitch_default from "./ThemeSwitch/index.js";
7
+ export { AsyncSelect_default as AsyncSelect, HeaderView, LanguageSwitch_default as LanguageSwitch, ThemeSwitch_default as ThemeSwitch, generateRouter, themeSwitchStorageKey };
@@ -1,3 +1,2 @@
1
1
  declare const Iframe: () => import("react/jsx-runtime").JSX.Element;
2
2
  export default Iframe;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,8 +1,15 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import useCurrentMenuData from '../../hooks/useCurrentMenuData';
3
- const Iframe = () => {
4
- const { menu } = useCurrentMenuData(true);
5
- const ifUrl = menu.moduleType === 'iframe' ? menu.iframeConfig.path : '';
6
- return (_jsx("div", { className: "iframe w-full h-full", children: _jsx("iframe", { className: " w-full h-full", src: ifUrl }) }));
1
+ import useCurrentMenuData from "../../hooks/useCurrentMenuData.js";
2
+ import { jsx } from "react/jsx-runtime";
3
+ //#region frontend/src/defaultPages/Iframe/index.tsx
4
+ var Iframe = () => {
5
+ const { menu } = useCurrentMenuData(true);
6
+ return /* @__PURE__ */ jsx("div", {
7
+ className: "iframe w-full h-full",
8
+ children: /* @__PURE__ */ jsx("iframe", {
9
+ className: " w-full h-full",
10
+ src: menu.moduleType === "iframe" ? menu.iframeConfig.path : ""
11
+ })
12
+ });
7
13
  };
8
- export default Iframe;
14
+ //#endregion
15
+ export { Iframe as default };
@@ -1,3 +1,2 @@
1
1
  declare const NotFoundPage: () => import("react/jsx-runtime").JSX.Element;
2
2
  export default NotFoundPage;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,7 +1,28 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { getText } from '../../common/language';
3
- import { frontendLangKeys } from '../../language';
4
- const NotFoundPage = () => {
5
- return (_jsx("div", { className: "flex h-full min-h-[240px] w-full items-center justify-center bg-theme-bg px-6 text-foreground", children: _jsxs("div", { className: "flex max-w-sm flex-col items-center text-center", children: [_jsx("div", { className: "mb-4 rounded-md border border-border bg-background/70 px-3 py-1 text-xs font-medium text-muted-foreground", children: "404" }), _jsx("h1", { className: "text-lg font-semibold tracking-normal", children: getText(frontendLangKeys.notFoundTitle) }), _jsx("p", { className: "mt-2 text-sm leading-6 text-muted-foreground", children: getText(frontendLangKeys.notFoundDescription) })] }) }));
1
+ import { frontendLangKeys } from "../../language/index.js";
2
+ import { getText } from "../../common/language.js";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ //#region frontend/src/defaultPages/NotFoundPage/index.tsx
5
+ var NotFoundPage = () => {
6
+ return /* @__PURE__ */ jsx("div", {
7
+ className: "flex h-full min-h-[240px] w-full items-center justify-center bg-theme-bg px-6 text-foreground",
8
+ children: /* @__PURE__ */ jsxs("div", {
9
+ className: "flex max-w-sm flex-col items-center text-center",
10
+ children: [
11
+ /* @__PURE__ */ jsx("div", {
12
+ className: "mb-4 rounded-md border border-border bg-background/70 px-3 py-1 text-xs font-medium text-muted-foreground",
13
+ children: "404"
14
+ }),
15
+ /* @__PURE__ */ jsx("h1", {
16
+ className: "text-lg font-semibold tracking-normal",
17
+ children: getText(frontendLangKeys.notFoundTitle)
18
+ }),
19
+ /* @__PURE__ */ jsx("p", {
20
+ className: "mt-2 text-sm leading-6 text-muted-foreground",
21
+ children: getText(frontendLangKeys.notFoundDescription)
22
+ })
23
+ ]
24
+ })
25
+ });
6
26
  };
7
- export default NotFoundPage;
27
+ //#endregion
28
+ export { NotFoundPage as default };
@@ -1,7 +1,6 @@
1
- import type { CallComNames, SchemaDefaultValue } from '../../schemaType';
1
+ import type { CallComNames, SchemaDefaultValue } from "../../schemaType";
2
2
  declare const DetailPanel: import("react").MemoExoticComponent<(props: {
3
3
  data: SchemaDefaultValue;
4
4
  comName: CallComNames;
5
5
  }) => import("react/jsx-runtime").JSX.Element>;
6
6
  export default DetailPanel;
7
- //# sourceMappingURL=DetailPanel.d.ts.map