@oceanbase/ui 1.0.0-alpha.8 → 1.0.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 (461) hide show
  1. package/dist/ui.min.js +1 -1
  2. package/es/Action/Group.d.ts +1 -2
  3. package/es/Action/Group.js +292 -120
  4. package/es/Action/Item.js +1 -0
  5. package/es/Action/index.js +1 -0
  6. package/es/BackgroundTaskManager/RefreshMan.js +1 -0
  7. package/es/BackgroundTaskManager/index.d.ts +2 -0
  8. package/es/BackgroundTaskManager/index.js +26 -4
  9. package/es/BasicLayout/Header.js +1 -0
  10. package/es/BasicLayout/index.d.ts +3 -1
  11. package/es/BasicLayout/index.js +63 -24
  12. package/es/BasicLayout/locale/en-US.d.ts +3 -0
  13. package/es/BasicLayout/locale/en-US.js +4 -1
  14. package/es/BasicLayout/locale/ja-JP.d.ts +3 -0
  15. package/es/BasicLayout/locale/ja-JP.js +4 -1
  16. package/es/BasicLayout/locale/zh-CN.d.ts +3 -0
  17. package/es/BasicLayout/locale/zh-CN.js +4 -1
  18. package/es/BasicLayout/locale/zh-TW.d.ts +3 -0
  19. package/es/BasicLayout/locale/zh-TW.js +4 -1
  20. package/es/BasicLayout/style/index.js +11 -3
  21. package/es/BatchOperationBar/index.js +16 -4
  22. package/es/BatchOperationBar/locale/en-US.d.ts +1 -0
  23. package/es/BatchOperationBar/locale/en-US.js +2 -1
  24. package/es/BatchOperationBar/locale/ja-JP.d.ts +1 -0
  25. package/es/BatchOperationBar/locale/ja-JP.js +2 -1
  26. package/es/BatchOperationBar/locale/zh-CN.d.ts +1 -0
  27. package/es/BatchOperationBar/locale/zh-CN.js +2 -1
  28. package/es/BatchOperationBar/locale/zh-TW.d.ts +1 -0
  29. package/es/BatchOperationBar/locale/zh-TW.js +2 -1
  30. package/es/BatchOperationBar/style/index.js +6 -1
  31. package/es/Boundary/Components/Code.js +2 -1
  32. package/es/Boundary/Components/Exception.js +3 -2
  33. package/es/Boundary/Components/Function.js +2 -1
  34. package/es/Boundary/index.js +1 -0
  35. package/es/Boundary/style/index.js +5 -3
  36. package/es/ContentWithIcon/index.js +1 -0
  37. package/es/ContentWithQuestion/index.js +1 -0
  38. package/es/DateRanger/EditableDateTimeInput.d.ts +23 -0
  39. package/es/DateRanger/EditableDateTimeInput.js +129 -0
  40. package/es/DateRanger/PickerPanel.js +32 -16
  41. package/es/DateRanger/Ranger.d.ts +4 -1
  42. package/es/DateRanger/Ranger.js +59 -42
  43. package/es/DateRanger/hooks/index.d.ts +4 -0
  44. package/es/DateRanger/hooks/index.js +2 -0
  45. package/es/DateRanger/hooks/useAutoWidthInput.d.ts +13 -0
  46. package/es/DateRanger/hooks/useAutoWidthInput.js +44 -0
  47. package/es/DateRanger/hooks/useSegmentedInput.d.ts +31 -0
  48. package/es/DateRanger/hooks/useSegmentedInput.js +304 -0
  49. package/es/DateRanger/index.js +1 -0
  50. package/es/DateRanger/locale/en-US.d.ts +2 -0
  51. package/es/DateRanger/locale/en-US.js +3 -1
  52. package/es/DateRanger/locale/ja-JP.d.ts +2 -0
  53. package/es/DateRanger/locale/ja-JP.js +3 -1
  54. package/es/DateRanger/locale/zh-CN.d.ts +2 -0
  55. package/es/DateRanger/locale/zh-CN.js +3 -1
  56. package/es/DateRanger/locale/zh-TW.d.ts +2 -0
  57. package/es/DateRanger/locale/zh-TW.js +3 -1
  58. package/es/DateRanger/style/index.js +52 -14
  59. package/es/Dialog/Anchor.js +1 -0
  60. package/es/Dialog/EventProxy.js +1 -0
  61. package/es/Dialog/index.d.ts +5 -0
  62. package/es/Dialog/index.js +78 -14
  63. package/es/Dialog/locale/en-US.d.ts +5 -0
  64. package/es/Dialog/locale/en-US.js +6 -1
  65. package/es/Dialog/locale/ja-JP.d.ts +5 -0
  66. package/es/Dialog/locale/ja-JP.js +6 -1
  67. package/es/Dialog/locale/zh-CN.d.ts +5 -0
  68. package/es/Dialog/locale/zh-CN.js +6 -1
  69. package/es/Dialog/locale/zh-TW.d.ts +5 -0
  70. package/es/Dialog/locale/zh-TW.js +6 -1
  71. package/es/Dialog/style/index.js +25 -6
  72. package/es/DocDialog/index.js +29 -9
  73. package/es/DocDialog/locale/en-US.d.ts +3 -1
  74. package/es/DocDialog/locale/en-US.js +3 -1
  75. package/es/DocDialog/locale/ja-JP.d.ts +3 -1
  76. package/es/DocDialog/locale/ja-JP.js +3 -1
  77. package/es/DocDialog/locale/zh-CN.d.ts +3 -1
  78. package/es/DocDialog/locale/zh-CN.js +3 -1
  79. package/es/DocDialog/locale/zh-TW.d.ts +3 -1
  80. package/es/DocDialog/locale/zh-TW.js +3 -1
  81. package/es/FooterToolbar/index.d.ts +7 -4
  82. package/es/FooterToolbar/index.js +28 -11
  83. package/es/FooterToolbar/locale/en-US.d.ts +4 -0
  84. package/es/FooterToolbar/locale/en-US.js +3 -0
  85. package/es/FooterToolbar/locale/ja-JP.d.ts +4 -0
  86. package/es/FooterToolbar/locale/ja-JP.js +3 -0
  87. package/es/FooterToolbar/locale/zh-CN.d.ts +4 -0
  88. package/es/FooterToolbar/locale/zh-CN.js +3 -0
  89. package/es/FooterToolbar/locale/zh-TW.d.ts +4 -0
  90. package/es/FooterToolbar/locale/zh-TW.js +3 -0
  91. package/es/FooterToolbar/style/index.js +3 -6
  92. package/es/FullscreenBox/index.js +19 -10
  93. package/es/FullscreenBox/locale/en-US.d.ts +4 -1
  94. package/es/FullscreenBox/locale/en-US.js +4 -1
  95. package/es/FullscreenBox/locale/ja-JP.d.ts +4 -1
  96. package/es/FullscreenBox/locale/ja-JP.js +4 -1
  97. package/es/FullscreenBox/locale/zh-CN.d.ts +4 -1
  98. package/es/FullscreenBox/locale/zh-CN.js +4 -1
  99. package/es/FullscreenBox/locale/zh-TW.d.ts +4 -1
  100. package/es/FullscreenBox/locale/zh-TW.js +4 -1
  101. package/es/FullscreenBox/style/index.js +32 -11
  102. package/es/Highlight/DiffView/DiffCells.js +1 -0
  103. package/es/Highlight/DiffView/index.js +1 -0
  104. package/es/Highlight/HighlightCell.js +1 -0
  105. package/es/Highlight/JsonView.js +1 -0
  106. package/es/Highlight/index.js +10 -2
  107. package/es/Highlight/locale/en-US.d.ts +2 -0
  108. package/es/Highlight/locale/en-US.js +3 -1
  109. package/es/Highlight/locale/ja-JP.d.ts +2 -0
  110. package/es/Highlight/locale/ja-JP.js +3 -1
  111. package/es/Highlight/locale/zh-CN.d.ts +2 -0
  112. package/es/Highlight/locale/zh-CN.js +3 -1
  113. package/es/Highlight/locale/zh-TW.d.ts +2 -0
  114. package/es/Highlight/locale/zh-TW.js +3 -1
  115. package/es/Highlight/style/index.js +1 -1
  116. package/es/Highlight/useKeyDownCopyEvent.js +1 -0
  117. package/es/IconFont/index.js +1 -0
  118. package/es/LightFilter/index.d.ts +6 -2
  119. package/es/LightFilter/index.js +25 -8
  120. package/es/LightFilter/locale/en-US.d.ts +4 -0
  121. package/es/LightFilter/locale/en-US.js +3 -0
  122. package/es/LightFilter/locale/ja-JP.d.ts +4 -0
  123. package/es/LightFilter/locale/ja-JP.js +3 -0
  124. package/es/LightFilter/locale/zh-CN.d.ts +4 -0
  125. package/es/LightFilter/locale/zh-CN.js +3 -0
  126. package/es/LightFilter/locale/zh-TW.d.ts +4 -0
  127. package/es/LightFilter/locale/zh-TW.js +3 -0
  128. package/es/LocaleDropdown/index.js +1 -0
  129. package/es/Login/ActivateForm.js +1 -0
  130. package/es/Login/LoginForm.js +1 -0
  131. package/es/Login/RegisterForm.js +1 -0
  132. package/es/Login/index.js +1 -0
  133. package/es/Login/style/index.js +1 -1
  134. package/es/Lottie/index.js +1 -0
  135. package/es/NavMenu/index.d.ts +5 -2
  136. package/es/NavMenu/index.js +28 -5
  137. package/es/NavMenu/locale/en-US.d.ts +4 -0
  138. package/es/NavMenu/locale/en-US.js +3 -0
  139. package/es/NavMenu/locale/ja-JP.d.ts +4 -0
  140. package/es/NavMenu/locale/ja-JP.js +3 -0
  141. package/es/NavMenu/locale/zh-CN.d.ts +4 -0
  142. package/es/NavMenu/locale/zh-CN.js +3 -0
  143. package/es/NavMenu/locale/zh-TW.d.ts +4 -0
  144. package/es/NavMenu/locale/zh-TW.js +3 -0
  145. package/es/PageContainer/ItemRender.js +1 -0
  146. package/es/PageContainer/index.js +62 -19
  147. package/es/PageContainer/style/index.js +26 -11
  148. package/es/PageLoading/index.js +1 -0
  149. package/es/Password/Content.d.ts +2 -0
  150. package/es/Password/Content.js +12 -3
  151. package/es/Password/index.d.ts +1 -0
  152. package/es/Password/index.js +18 -13
  153. package/es/Password/locale/en-US.d.ts +1 -0
  154. package/es/Password/locale/en-US.js +2 -1
  155. package/es/Password/locale/ja-JP.d.ts +1 -0
  156. package/es/Password/locale/ja-JP.js +1 -0
  157. package/es/Password/locale/zh-CN.d.ts +1 -0
  158. package/es/Password/locale/zh-CN.js +1 -0
  159. package/es/Password/locale/zh-TW.d.ts +1 -0
  160. package/es/Password/locale/zh-TW.js +2 -1
  161. package/es/ProCard/index.js +1 -0
  162. package/es/ProCard/style/index.js +9 -4
  163. package/es/ProTable/index.js +10 -2
  164. package/es/Ranger/QuickPicker.js +1 -0
  165. package/es/Ranger/Ranger.js +1 -0
  166. package/es/Ranger/index.js +1 -0
  167. package/es/Ranger/style/index.js +1 -1
  168. package/es/SideTip/Dragger.js +3 -1
  169. package/es/SideTip/IconLoading.js +1 -0
  170. package/es/SideTip/index.js +39 -8
  171. package/es/SideTip/locale/en-US.d.ts +4 -1
  172. package/es/SideTip/locale/en-US.js +4 -1
  173. package/es/SideTip/locale/ja-JP.d.ts +4 -1
  174. package/es/SideTip/locale/ja-JP.js +4 -1
  175. package/es/SideTip/locale/zh-CN.d.ts +4 -1
  176. package/es/SideTip/locale/zh-CN.js +4 -1
  177. package/es/SideTip/locale/zh-TW.d.ts +4 -1
  178. package/es/SideTip/locale/zh-TW.js +4 -1
  179. package/es/SideTip/style/index.js +10 -1
  180. package/es/TagSelect/Group.js +7 -2
  181. package/es/TagSelect/Item.js +3 -1
  182. package/es/TagSelect/index.js +1 -0
  183. package/es/TreeSearch/index.js +1 -0
  184. package/es/Welcome/index.js +1 -0
  185. package/es/Welcome/step.js +1 -0
  186. package/es/_util/genComponentStyleHook.d.ts +2 -1
  187. package/es/_util/index.js +6 -0
  188. package/es/assets/logo/oceanbase_logo.svg +45 -29
  189. package/es/assets/logo/oceanbase_logo_dark.svg +45 -29
  190. package/es/assets/logo/oceanbase_watermark.svg +45 -31
  191. package/es/constant/index.js +1 -0
  192. package/es/index.js +1 -0
  193. package/es/locale/LocaleWrapper.js +1 -0
  194. package/es/locale/en-US.js +6 -0
  195. package/es/locale/index.js +1 -0
  196. package/es/locale/ja-JP.js +6 -0
  197. package/es/locale/zh-CN.js +6 -0
  198. package/es/locale/zh-TW.js +6 -0
  199. package/lib/Action/Group.d.ts +1 -2
  200. package/lib/Action/Group.js +333 -176
  201. package/lib/Action/Item.js +47 -66
  202. package/lib/Action/index.js +13 -36
  203. package/lib/Action/style/index.js +25 -43
  204. package/lib/BackgroundTaskManager/RefreshMan.js +34 -51
  205. package/lib/BackgroundTaskManager/constants.js +10 -32
  206. package/lib/BackgroundTaskManager/index.d.ts +2 -0
  207. package/lib/BackgroundTaskManager/index.js +137 -126
  208. package/lib/BasicLayout/Header.js +242 -200
  209. package/lib/BasicLayout/index.d.ts +3 -1
  210. package/lib/BasicLayout/index.js +308 -317
  211. package/lib/BasicLayout/locale/en-US.d.ts +3 -0
  212. package/lib/BasicLayout/locale/en-US.js +19 -34
  213. package/lib/BasicLayout/locale/ja-JP.d.ts +3 -0
  214. package/lib/BasicLayout/locale/ja-JP.js +19 -34
  215. package/lib/BasicLayout/locale/zh-CN.d.ts +3 -0
  216. package/lib/BasicLayout/locale/zh-CN.js +19 -34
  217. package/lib/BasicLayout/locale/zh-TW.d.ts +3 -0
  218. package/lib/BasicLayout/locale/zh-TW.js +19 -34
  219. package/lib/BasicLayout/style/Header.js +41 -60
  220. package/lib/BasicLayout/style/index.js +186 -198
  221. package/lib/BatchOperationBar/index.js +120 -152
  222. package/lib/BatchOperationBar/locale/en-US.d.ts +1 -0
  223. package/lib/BatchOperationBar/locale/en-US.js +11 -28
  224. package/lib/BatchOperationBar/locale/ja-JP.d.ts +1 -0
  225. package/lib/BatchOperationBar/locale/ja-JP.js +11 -28
  226. package/lib/BatchOperationBar/locale/zh-CN.d.ts +1 -0
  227. package/lib/BatchOperationBar/locale/zh-CN.js +11 -28
  228. package/lib/BatchOperationBar/locale/zh-TW.d.ts +1 -0
  229. package/lib/BatchOperationBar/locale/zh-TW.js +11 -28
  230. package/lib/BatchOperationBar/style/index.js +35 -46
  231. package/lib/Boundary/Components/Code.js +57 -76
  232. package/lib/Boundary/Components/Exception.js +103 -124
  233. package/lib/Boundary/Components/Function.js +47 -63
  234. package/lib/Boundary/Components/index.js +36 -25
  235. package/lib/Boundary/IBoundary.js +4 -16
  236. package/lib/Boundary/constant.js +16 -38
  237. package/lib/Boundary/index.js +11 -25
  238. package/lib/Boundary/locale/en-US.js +14 -32
  239. package/lib/Boundary/locale/ja-JP.js +14 -32
  240. package/lib/Boundary/locale/zh-CN.js +14 -32
  241. package/lib/Boundary/locale/zh-TW.js +14 -32
  242. package/lib/Boundary/style/index.js +32 -49
  243. package/lib/Boundary/utils.js +9 -31
  244. package/lib/ContentWithIcon/index.js +101 -115
  245. package/lib/ContentWithIcon/style/index.js +17 -36
  246. package/lib/ContentWithQuestion/index.js +40 -53
  247. package/lib/ContentWithQuestion/style/index.js +16 -35
  248. package/lib/DateRanger/EditableDateTimeInput.d.ts +23 -0
  249. package/lib/DateRanger/EditableDateTimeInput.js +131 -0
  250. package/lib/DateRanger/PickerPanel.js +358 -329
  251. package/lib/DateRanger/Ranger.d.ts +4 -1
  252. package/lib/DateRanger/Ranger.js +446 -516
  253. package/lib/DateRanger/constant/index.js +188 -376
  254. package/lib/DateRanger/hooks/index.d.ts +4 -0
  255. package/lib/DateRanger/hooks/index.js +19 -0
  256. package/lib/DateRanger/hooks/useAutoWidthInput.d.ts +13 -0
  257. package/lib/DateRanger/hooks/useAutoWidthInput.js +37 -0
  258. package/lib/DateRanger/hooks/useSegmentedInput.d.ts +31 -0
  259. package/lib/DateRanger/hooks/useSegmentedInput.js +233 -0
  260. package/lib/DateRanger/index.js +45 -65
  261. package/lib/DateRanger/locale/en-US.d.ts +2 -0
  262. package/lib/DateRanger/locale/en-US.js +22 -47
  263. package/lib/DateRanger/locale/ja-JP.d.ts +2 -0
  264. package/lib/DateRanger/locale/ja-JP.js +22 -47
  265. package/lib/DateRanger/locale/zh-CN.d.ts +2 -0
  266. package/lib/DateRanger/locale/zh-CN.js +22 -47
  267. package/lib/DateRanger/locale/zh-TW.d.ts +2 -0
  268. package/lib/DateRanger/locale/zh-TW.js +22 -47
  269. package/lib/DateRanger/style/index.js +101 -72
  270. package/lib/DateRanger/typing.js +4 -16
  271. package/lib/Dialog/Anchor.js +70 -96
  272. package/lib/Dialog/Dock.js +14 -36
  273. package/lib/Dialog/EventProxy.js +21 -40
  274. package/lib/Dialog/index.d.ts +5 -0
  275. package/lib/Dialog/index.js +385 -371
  276. package/lib/Dialog/locale/en-US.d.ts +5 -0
  277. package/lib/Dialog/locale/en-US.js +13 -26
  278. package/lib/Dialog/locale/ja-JP.d.ts +5 -0
  279. package/lib/Dialog/locale/ja-JP.js +13 -26
  280. package/lib/Dialog/locale/zh-CN.d.ts +5 -0
  281. package/lib/Dialog/locale/zh-CN.js +13 -26
  282. package/lib/Dialog/locale/zh-TW.d.ts +5 -0
  283. package/lib/Dialog/locale/zh-TW.js +13 -26
  284. package/lib/Dialog/style/index.js +81 -79
  285. package/lib/DocDialog/index.js +69 -82
  286. package/lib/DocDialog/locale/en-US.d.ts +3 -1
  287. package/lib/DocDialog/locale/en-US.js +7 -23
  288. package/lib/DocDialog/locale/ja-JP.d.ts +3 -1
  289. package/lib/DocDialog/locale/ja-JP.js +7 -23
  290. package/lib/DocDialog/locale/zh-CN.d.ts +3 -1
  291. package/lib/DocDialog/locale/zh-CN.js +7 -23
  292. package/lib/DocDialog/locale/zh-TW.d.ts +3 -1
  293. package/lib/DocDialog/locale/zh-TW.js +7 -23
  294. package/lib/FooterToolbar/index.d.ts +7 -4
  295. package/lib/FooterToolbar/index.js +48 -51
  296. package/lib/FooterToolbar/locale/en-US.d.ts +4 -0
  297. package/lib/FooterToolbar/locale/en-US.js +9 -0
  298. package/lib/FooterToolbar/locale/ja-JP.d.ts +4 -0
  299. package/lib/FooterToolbar/locale/ja-JP.js +9 -0
  300. package/lib/FooterToolbar/locale/zh-CN.d.ts +4 -0
  301. package/lib/FooterToolbar/locale/zh-CN.js +9 -0
  302. package/lib/FooterToolbar/locale/zh-TW.d.ts +4 -0
  303. package/lib/FooterToolbar/locale/zh-TW.js +9 -0
  304. package/lib/FooterToolbar/style/index.js +22 -40
  305. package/lib/FullscreenBox/index.js +159 -139
  306. package/lib/FullscreenBox/locale/en-US.d.ts +4 -1
  307. package/lib/FullscreenBox/locale/en-US.js +8 -23
  308. package/lib/FullscreenBox/locale/ja-JP.d.ts +4 -1
  309. package/lib/FullscreenBox/locale/ja-JP.js +8 -23
  310. package/lib/FullscreenBox/locale/zh-CN.d.ts +4 -1
  311. package/lib/FullscreenBox/locale/zh-CN.js +8 -23
  312. package/lib/FullscreenBox/locale/zh-TW.d.ts +4 -1
  313. package/lib/FullscreenBox/locale/zh-TW.js +8 -23
  314. package/lib/FullscreenBox/style/index.js +52 -48
  315. package/lib/Highlight/DiffView/DiffCells.js +34 -55
  316. package/lib/Highlight/DiffView/index.js +165 -164
  317. package/lib/Highlight/HighlightCell.js +28 -48
  318. package/lib/Highlight/JsonView.js +45 -75
  319. package/lib/Highlight/index.js +206 -214
  320. package/lib/Highlight/languages/bash.js +7 -34
  321. package/lib/Highlight/languages/cpp.js +7 -34
  322. package/lib/Highlight/languages/css.js +7 -34
  323. package/lib/Highlight/languages/dockerfile.js +7 -34
  324. package/lib/Highlight/languages/go.js +7 -34
  325. package/lib/Highlight/languages/groovy.js +7 -34
  326. package/lib/Highlight/languages/http.js +7 -34
  327. package/lib/Highlight/languages/java.js +7 -34
  328. package/lib/Highlight/languages/javascript.js +7 -34
  329. package/lib/Highlight/languages/json.js +7 -34
  330. package/lib/Highlight/languages/markdown.js +7 -34
  331. package/lib/Highlight/languages/nginx.js +7 -34
  332. package/lib/Highlight/languages/python.js +7 -34
  333. package/lib/Highlight/languages/ruby.js +7 -34
  334. package/lib/Highlight/languages/solidity.js +7 -34
  335. package/lib/Highlight/languages/sql.js +7 -34
  336. package/lib/Highlight/languages/typescript.js +7 -34
  337. package/lib/Highlight/languages/xml.js +7 -34
  338. package/lib/Highlight/languages/yaml.js +7 -34
  339. package/lib/Highlight/locale/en-US.d.ts +2 -0
  340. package/lib/Highlight/locale/en-US.js +9 -25
  341. package/lib/Highlight/locale/ja-JP.d.ts +2 -0
  342. package/lib/Highlight/locale/ja-JP.js +9 -25
  343. package/lib/Highlight/locale/zh-CN.d.ts +2 -0
  344. package/lib/Highlight/locale/zh-CN.js +9 -25
  345. package/lib/Highlight/locale/zh-TW.d.ts +2 -0
  346. package/lib/Highlight/locale/zh-TW.js +9 -25
  347. package/lib/Highlight/style/index.js +129 -145
  348. package/lib/Highlight/useKeyDownCopyEvent.js +40 -65
  349. package/lib/IconFont/index.js +23 -29
  350. package/lib/LightFilter/index.d.ts +6 -2
  351. package/lib/LightFilter/index.js +46 -44
  352. package/lib/LightFilter/locale/en-US.d.ts +4 -0
  353. package/lib/LightFilter/locale/en-US.js +9 -0
  354. package/lib/LightFilter/locale/ja-JP.d.ts +4 -0
  355. package/lib/LightFilter/locale/ja-JP.js +9 -0
  356. package/lib/LightFilter/locale/zh-CN.d.ts +4 -0
  357. package/lib/LightFilter/locale/zh-CN.js +9 -0
  358. package/lib/LightFilter/locale/zh-TW.d.ts +4 -0
  359. package/lib/LightFilter/locale/zh-TW.js +9 -0
  360. package/lib/LightFilter/style/index.js +15 -33
  361. package/lib/LocaleDropdown/index.js +43 -54
  362. package/lib/Login/ActivateForm.js +93 -120
  363. package/lib/Login/LoginForm.js +149 -185
  364. package/lib/Login/RegisterForm.js +122 -164
  365. package/lib/Login/index.js +157 -163
  366. package/lib/Login/locale/en-US.js +31 -49
  367. package/lib/Login/locale/ja-JP.js +31 -49
  368. package/lib/Login/locale/zh-CN.js +31 -49
  369. package/lib/Login/locale/zh-TW.js +30 -48
  370. package/lib/Login/style/index.js +78 -99
  371. package/lib/Lottie/index.js +7 -25
  372. package/lib/NavMenu/index.d.ts +5 -2
  373. package/lib/NavMenu/index.js +121 -110
  374. package/lib/NavMenu/locale/en-US.d.ts +4 -0
  375. package/lib/NavMenu/locale/en-US.js +9 -0
  376. package/lib/NavMenu/locale/ja-JP.d.ts +4 -0
  377. package/lib/NavMenu/locale/ja-JP.js +9 -0
  378. package/lib/NavMenu/locale/zh-CN.d.ts +4 -0
  379. package/lib/NavMenu/locale/zh-CN.js +9 -0
  380. package/lib/NavMenu/locale/zh-TW.d.ts +4 -0
  381. package/lib/NavMenu/locale/zh-TW.js +9 -0
  382. package/lib/NavMenu/style/index.js +31 -49
  383. package/lib/PageContainer/ItemRender.js +28 -47
  384. package/lib/PageContainer/index.js +161 -142
  385. package/lib/PageContainer/locale/en-US.js +8 -26
  386. package/lib/PageContainer/locale/ja-JP.js +8 -26
  387. package/lib/PageContainer/locale/zh-CN.js +8 -26
  388. package/lib/PageContainer/locale/zh-TW.js +8 -26
  389. package/lib/PageContainer/style/index.js +55 -47
  390. package/lib/PageLoading/index.js +33 -55
  391. package/lib/Password/Content.d.ts +2 -0
  392. package/lib/Password/Content.js +100 -81
  393. package/lib/Password/index.d.ts +1 -0
  394. package/lib/Password/index.js +132 -161
  395. package/lib/Password/locale/en-US.d.ts +1 -0
  396. package/lib/Password/locale/en-US.js +15 -32
  397. package/lib/Password/locale/ja-JP.d.ts +1 -0
  398. package/lib/Password/locale/ja-JP.js +17 -34
  399. package/lib/Password/locale/zh-CN.d.ts +1 -0
  400. package/lib/Password/locale/zh-CN.js +16 -33
  401. package/lib/Password/locale/zh-TW.d.ts +1 -0
  402. package/lib/Password/locale/zh-TW.js +15 -32
  403. package/lib/ProCard/index.js +77 -99
  404. package/lib/ProCard/style/index.js +31 -38
  405. package/lib/ProTable/index.js +102 -123
  406. package/lib/ProTable/style/index.js +21 -38
  407. package/lib/Ranger/QuickPicker.js +92 -95
  408. package/lib/Ranger/Ranger.js +98 -134
  409. package/lib/Ranger/constant/index.js +115 -266
  410. package/lib/Ranger/index.js +61 -70
  411. package/lib/Ranger/locale/en-US.js +31 -49
  412. package/lib/Ranger/locale/ja-JP.js +31 -49
  413. package/lib/Ranger/locale/zh-CN.js +7 -25
  414. package/lib/Ranger/locale/zh-TW.js +7 -25
  415. package/lib/Ranger/style/index.js +22 -40
  416. package/lib/Ranger/typing.js +4 -16
  417. package/lib/SideTip/Dragger.js +259 -220
  418. package/lib/SideTip/IconLoading.js +43 -75
  419. package/lib/SideTip/index.js +155 -128
  420. package/lib/SideTip/locale/en-US.d.ts +4 -1
  421. package/lib/SideTip/locale/en-US.js +8 -23
  422. package/lib/SideTip/locale/ja-JP.d.ts +4 -1
  423. package/lib/SideTip/locale/ja-JP.js +8 -23
  424. package/lib/SideTip/locale/zh-CN.d.ts +4 -1
  425. package/lib/SideTip/locale/zh-CN.js +8 -23
  426. package/lib/SideTip/locale/zh-TW.d.ts +4 -1
  427. package/lib/SideTip/locale/zh-TW.js +8 -23
  428. package/lib/SideTip/style/index.js +85 -92
  429. package/lib/SideTip/utils.js +40 -61
  430. package/lib/TagSelect/Group.js +68 -84
  431. package/lib/TagSelect/Item.js +68 -92
  432. package/lib/TagSelect/TagSelectContext.js +7 -25
  433. package/lib/TagSelect/index.js +12 -36
  434. package/lib/TagSelect/style/index.js +41 -64
  435. package/lib/TreeSearch/index.js +133 -127
  436. package/lib/TreeSearch/util.js +52 -70
  437. package/lib/Welcome/index.js +142 -118
  438. package/lib/Welcome/locale/en-US.js +8 -26
  439. package/lib/Welcome/locale/ja-JP.js +8 -26
  440. package/lib/Welcome/locale/zh-CN.js +8 -26
  441. package/lib/Welcome/locale/zh-TW.js +8 -26
  442. package/lib/Welcome/step/style/index.js +24 -40
  443. package/lib/Welcome/step.js +63 -60
  444. package/lib/Welcome/style/index.js +58 -70
  445. package/lib/_util/genComponentStyleHook.d.ts +2 -1
  446. package/lib/_util/genComponentStyleHook.js +15 -43
  447. package/lib/_util/index.js +43 -44
  448. package/lib/_util/useNavigate.js +11 -26
  449. package/lib/assets/logo/oceanbase_logo.svg +45 -29
  450. package/lib/assets/logo/oceanbase_logo_dark.svg +45 -29
  451. package/lib/assets/logo/oceanbase_watermark.svg +45 -31
  452. package/lib/constant/index.js +23 -50
  453. package/lib/index.js +282 -129
  454. package/lib/interface.js +4 -16
  455. package/lib/locale/LocaleWrapper.js +50 -61
  456. package/lib/locale/en-US.js +43 -64
  457. package/lib/locale/index.js +5 -17
  458. package/lib/locale/ja-JP.js +43 -64
  459. package/lib/locale/zh-CN.js +42 -63
  460. package/lib/locale/zh-TW.js +38 -59
  461. package/package.json +6 -6
package/lib/index.js CHANGED
@@ -1,132 +1,285 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
1
+ "use strict";
2
+ "use client";
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _exportNames = {
7
+ version: true,
8
+ Action: true,
9
+ BasicLayout: true,
10
+ BatchOperationBar: true,
11
+ Boundary: true,
12
+ ContentWithQuestion: true,
13
+ ContentWithIcon: true,
14
+ Dialog: true,
15
+ DocDialog: true,
16
+ FullscreenBox: true,
17
+ Highlight: true,
18
+ IconFont: true,
19
+ Login: true,
20
+ Lottie: true,
21
+ NavMenu: true,
22
+ PageContainer: true,
23
+ PageLoading: true,
24
+ FooterToolbar: true,
25
+ ProTable: true,
26
+ ProCard: true,
27
+ LightFilter: true,
28
+ Password: true,
29
+ Ranger: true,
30
+ DateRanger: true,
31
+ SideTip: true,
32
+ TreeSearch: true,
33
+ Welcome: true,
34
+ TagSelect: true,
35
+ BackgroundTaskManagerConstants: true,
36
+ BackgroundTaskManager: true
10
37
  };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
38
+ Object.defineProperty(exports, "Action", {
39
+ enumerable: true,
40
+ get: function () {
41
+ return _Action.default;
16
42
  }
17
- return to;
18
- };
19
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // src/index.ts
31
- var src_exports = {};
32
- __export(src_exports, {
33
- Action: () => import_Action.default,
34
- BackgroundTaskManager: () => import_BackgroundTaskManager.default,
35
- BackgroundTaskManagerConstants: () => import_BackgroundTaskManager.BackgroundTaskManagerConstants,
36
- BasicLayout: () => import_BasicLayout.default,
37
- BatchOperationBar: () => import_BatchOperationBar.default,
38
- Boundary: () => import_Boundary.default,
39
- ContentWithIcon: () => import_ContentWithIcon.default,
40
- ContentWithQuestion: () => import_ContentWithQuestion.default,
41
- DateRanger: () => import_DateRanger.default,
42
- Dialog: () => import_Dialog.default,
43
- DocDialog: () => import_DocDialog.default,
44
- FooterToolbar: () => import_FooterToolbar.default,
45
- FullscreenBox: () => import_FullscreenBox.default,
46
- Highlight: () => import_Highlight.default,
47
- IconFont: () => import_IconFont.default,
48
- LightFilter: () => import_LightFilter.default,
49
- Login: () => import_Login.default,
50
- Lottie: () => import_Lottie.default,
51
- NavMenu: () => import_NavMenu.default,
52
- PageContainer: () => import_PageContainer.default,
53
- PageLoading: () => import_PageLoading.default,
54
- Password: () => import_Password.default,
55
- ProCard: () => import_ProCard.default,
56
- ProTable: () => import_ProTable.default,
57
- Ranger: () => import_Ranger.default,
58
- SideTip: () => import_SideTip.default,
59
- TagSelect: () => import_TagSelect.default,
60
- TreeSearch: () => import_TreeSearch.default,
61
- Welcome: () => import_Welcome.default,
62
- version: () => import_package.version
63
- });
64
- module.exports = __toCommonJS(src_exports);
65
- __reExport(src_exports, require("@ant-design/pro-components"), module.exports);
66
- var import_package = require("../package.json");
67
- __reExport(src_exports, require("./constant"), module.exports);
68
- __reExport(src_exports, require("./interface"), module.exports);
69
- var import_Action = __toESM(require("./Action"));
70
- var import_BasicLayout = __toESM(require("./BasicLayout"));
71
- var import_BatchOperationBar = __toESM(require("./BatchOperationBar"));
72
- var import_Boundary = __toESM(require("./Boundary"));
73
- var import_ContentWithQuestion = __toESM(require("./ContentWithQuestion"));
74
- var import_ContentWithIcon = __toESM(require("./ContentWithIcon"));
75
- var import_Dialog = __toESM(require("./Dialog"));
76
- var import_DocDialog = __toESM(require("./DocDialog"));
77
- var import_FullscreenBox = __toESM(require("./FullscreenBox"));
78
- var import_Highlight = __toESM(require("./Highlight"));
79
- var import_IconFont = __toESM(require("./IconFont"));
80
- var import_Login = __toESM(require("./Login"));
81
- var import_Lottie = __toESM(require("./Lottie"));
82
- var import_NavMenu = __toESM(require("./NavMenu"));
83
- var import_PageContainer = __toESM(require("./PageContainer"));
84
- var import_PageLoading = __toESM(require("./PageLoading"));
85
- var import_FooterToolbar = __toESM(require("./FooterToolbar"));
86
- var import_ProTable = __toESM(require("./ProTable"));
87
- var import_ProCard = __toESM(require("./ProCard"));
88
- var import_LightFilter = __toESM(require("./LightFilter"));
89
- var import_Password = __toESM(require("./Password"));
90
- var import_Ranger = __toESM(require("./Ranger"));
91
- var import_DateRanger = __toESM(require("./DateRanger"));
92
- var import_SideTip = __toESM(require("./SideTip"));
93
- var import_TreeSearch = __toESM(require("./TreeSearch"));
94
- var import_Welcome = __toESM(require("./Welcome"));
95
- var import_TagSelect = __toESM(require("./TagSelect"));
96
- var import_BackgroundTaskManager = __toESM(require("./BackgroundTaskManager"));
97
- // Annotate the CommonJS export names for ESM import in node:
98
- 0 && (module.exports = {
99
- Action,
100
- BackgroundTaskManager,
101
- BackgroundTaskManagerConstants,
102
- BasicLayout,
103
- BatchOperationBar,
104
- Boundary,
105
- ContentWithIcon,
106
- ContentWithQuestion,
107
- DateRanger,
108
- Dialog,
109
- DocDialog,
110
- FooterToolbar,
111
- FullscreenBox,
112
- Highlight,
113
- IconFont,
114
- LightFilter,
115
- Login,
116
- Lottie,
117
- NavMenu,
118
- PageContainer,
119
- PageLoading,
120
- Password,
121
- ProCard,
122
- ProTable,
123
- Ranger,
124
- SideTip,
125
- TagSelect,
126
- TreeSearch,
127
- Welcome,
128
- version,
129
- ...require("@ant-design/pro-components"),
130
- ...require("./constant"),
131
- ...require("./interface")
132
43
  });
44
+ Object.defineProperty(exports, "BackgroundTaskManager", {
45
+ enumerable: true,
46
+ get: function () {
47
+ return _BackgroundTaskManager.default;
48
+ }
49
+ });
50
+ Object.defineProperty(exports, "BackgroundTaskManagerConstants", {
51
+ enumerable: true,
52
+ get: function () {
53
+ return _BackgroundTaskManager.BackgroundTaskManagerConstants;
54
+ }
55
+ });
56
+ Object.defineProperty(exports, "BasicLayout", {
57
+ enumerable: true,
58
+ get: function () {
59
+ return _BasicLayout.default;
60
+ }
61
+ });
62
+ Object.defineProperty(exports, "BatchOperationBar", {
63
+ enumerable: true,
64
+ get: function () {
65
+ return _BatchOperationBar.default;
66
+ }
67
+ });
68
+ Object.defineProperty(exports, "Boundary", {
69
+ enumerable: true,
70
+ get: function () {
71
+ return _Boundary.default;
72
+ }
73
+ });
74
+ Object.defineProperty(exports, "ContentWithIcon", {
75
+ enumerable: true,
76
+ get: function () {
77
+ return _ContentWithIcon.default;
78
+ }
79
+ });
80
+ Object.defineProperty(exports, "ContentWithQuestion", {
81
+ enumerable: true,
82
+ get: function () {
83
+ return _ContentWithQuestion.default;
84
+ }
85
+ });
86
+ Object.defineProperty(exports, "DateRanger", {
87
+ enumerable: true,
88
+ get: function () {
89
+ return _DateRanger.default;
90
+ }
91
+ });
92
+ Object.defineProperty(exports, "Dialog", {
93
+ enumerable: true,
94
+ get: function () {
95
+ return _Dialog.default;
96
+ }
97
+ });
98
+ Object.defineProperty(exports, "DocDialog", {
99
+ enumerable: true,
100
+ get: function () {
101
+ return _DocDialog.default;
102
+ }
103
+ });
104
+ Object.defineProperty(exports, "FooterToolbar", {
105
+ enumerable: true,
106
+ get: function () {
107
+ return _FooterToolbar.default;
108
+ }
109
+ });
110
+ Object.defineProperty(exports, "FullscreenBox", {
111
+ enumerable: true,
112
+ get: function () {
113
+ return _FullscreenBox.default;
114
+ }
115
+ });
116
+ Object.defineProperty(exports, "Highlight", {
117
+ enumerable: true,
118
+ get: function () {
119
+ return _Highlight.default;
120
+ }
121
+ });
122
+ Object.defineProperty(exports, "IconFont", {
123
+ enumerable: true,
124
+ get: function () {
125
+ return _IconFont.default;
126
+ }
127
+ });
128
+ Object.defineProperty(exports, "LightFilter", {
129
+ enumerable: true,
130
+ get: function () {
131
+ return _LightFilter.default;
132
+ }
133
+ });
134
+ Object.defineProperty(exports, "Login", {
135
+ enumerable: true,
136
+ get: function () {
137
+ return _Login.default;
138
+ }
139
+ });
140
+ Object.defineProperty(exports, "Lottie", {
141
+ enumerable: true,
142
+ get: function () {
143
+ return _Lottie.default;
144
+ }
145
+ });
146
+ Object.defineProperty(exports, "NavMenu", {
147
+ enumerable: true,
148
+ get: function () {
149
+ return _NavMenu.default;
150
+ }
151
+ });
152
+ Object.defineProperty(exports, "PageContainer", {
153
+ enumerable: true,
154
+ get: function () {
155
+ return _PageContainer.default;
156
+ }
157
+ });
158
+ Object.defineProperty(exports, "PageLoading", {
159
+ enumerable: true,
160
+ get: function () {
161
+ return _PageLoading.default;
162
+ }
163
+ });
164
+ Object.defineProperty(exports, "Password", {
165
+ enumerable: true,
166
+ get: function () {
167
+ return _Password.default;
168
+ }
169
+ });
170
+ Object.defineProperty(exports, "ProCard", {
171
+ enumerable: true,
172
+ get: function () {
173
+ return _ProCard.default;
174
+ }
175
+ });
176
+ Object.defineProperty(exports, "ProTable", {
177
+ enumerable: true,
178
+ get: function () {
179
+ return _ProTable.default;
180
+ }
181
+ });
182
+ Object.defineProperty(exports, "Ranger", {
183
+ enumerable: true,
184
+ get: function () {
185
+ return _Ranger.default;
186
+ }
187
+ });
188
+ Object.defineProperty(exports, "SideTip", {
189
+ enumerable: true,
190
+ get: function () {
191
+ return _SideTip.default;
192
+ }
193
+ });
194
+ Object.defineProperty(exports, "TagSelect", {
195
+ enumerable: true,
196
+ get: function () {
197
+ return _TagSelect.default;
198
+ }
199
+ });
200
+ Object.defineProperty(exports, "TreeSearch", {
201
+ enumerable: true,
202
+ get: function () {
203
+ return _TreeSearch.default;
204
+ }
205
+ });
206
+ Object.defineProperty(exports, "Welcome", {
207
+ enumerable: true,
208
+ get: function () {
209
+ return _Welcome.default;
210
+ }
211
+ });
212
+ Object.defineProperty(exports, "version", {
213
+ enumerable: true,
214
+ get: function () {
215
+ return _package.version;
216
+ }
217
+ });
218
+ var _proComponents = require("@ant-design/pro-components");
219
+ Object.keys(_proComponents).forEach(function (key) {
220
+ if (key === "default" || key === "__esModule") return;
221
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
222
+ if (key in exports && exports[key] === _proComponents[key]) return;
223
+ Object.defineProperty(exports, key, {
224
+ enumerable: true,
225
+ get: function () {
226
+ return _proComponents[key];
227
+ }
228
+ });
229
+ });
230
+ var _package = require("../package.json");
231
+ var _constant = require("./constant");
232
+ Object.keys(_constant).forEach(function (key) {
233
+ if (key === "default" || key === "__esModule") return;
234
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
235
+ if (key in exports && exports[key] === _constant[key]) return;
236
+ Object.defineProperty(exports, key, {
237
+ enumerable: true,
238
+ get: function () {
239
+ return _constant[key];
240
+ }
241
+ });
242
+ });
243
+ var _interface = require("./interface");
244
+ Object.keys(_interface).forEach(function (key) {
245
+ if (key === "default" || key === "__esModule") return;
246
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
247
+ if (key in exports && exports[key] === _interface[key]) return;
248
+ Object.defineProperty(exports, key, {
249
+ enumerable: true,
250
+ get: function () {
251
+ return _interface[key];
252
+ }
253
+ });
254
+ });
255
+ var _Action = _interopRequireDefault(require("./Action"));
256
+ var _BasicLayout = _interopRequireDefault(require("./BasicLayout"));
257
+ var _BatchOperationBar = _interopRequireDefault(require("./BatchOperationBar"));
258
+ var _Boundary = _interopRequireDefault(require("./Boundary"));
259
+ var _ContentWithQuestion = _interopRequireDefault(require("./ContentWithQuestion"));
260
+ var _ContentWithIcon = _interopRequireDefault(require("./ContentWithIcon"));
261
+ var _Dialog = _interopRequireDefault(require("./Dialog"));
262
+ var _DocDialog = _interopRequireDefault(require("./DocDialog"));
263
+ var _FullscreenBox = _interopRequireDefault(require("./FullscreenBox"));
264
+ var _Highlight = _interopRequireDefault(require("./Highlight"));
265
+ var _IconFont = _interopRequireDefault(require("./IconFont"));
266
+ var _Login = _interopRequireDefault(require("./Login"));
267
+ var _Lottie = _interopRequireDefault(require("./Lottie"));
268
+ var _NavMenu = _interopRequireDefault(require("./NavMenu"));
269
+ var _PageContainer = _interopRequireDefault(require("./PageContainer"));
270
+ var _PageLoading = _interopRequireDefault(require("./PageLoading"));
271
+ var _FooterToolbar = _interopRequireDefault(require("./FooterToolbar"));
272
+ var _ProTable = _interopRequireDefault(require("./ProTable"));
273
+ var _ProCard = _interopRequireDefault(require("./ProCard"));
274
+ var _LightFilter = _interopRequireDefault(require("./LightFilter"));
275
+ var _Password = _interopRequireDefault(require("./Password"));
276
+ var _Ranger = _interopRequireDefault(require("./Ranger"));
277
+ var _DateRanger = _interopRequireDefault(require("./DateRanger"));
278
+ var _SideTip = _interopRequireDefault(require("./SideTip"));
279
+ var _TreeSearch = _interopRequireDefault(require("./TreeSearch"));
280
+ var _Welcome = _interopRequireDefault(require("./Welcome"));
281
+ var _TagSelect = _interopRequireDefault(require("./TagSelect"));
282
+ var _BackgroundTaskManager = _interopRequireWildcard(require("./BackgroundTaskManager"));
283
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
284
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
285
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
package/lib/interface.js CHANGED
@@ -1,17 +1,5 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from === "object" || typeof from === "function") {
7
- for (let key of __getOwnPropNames(from))
8
- if (!__hasOwnProp.call(to, key) && key !== except)
9
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
- }
11
- return to;
12
- };
13
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
1
+ "use strict";
14
2
 
15
- // src/interface.ts
16
- var interface_exports = {};
17
- module.exports = __toCommonJS(interface_exports);
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -1,76 +1,65 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
-
29
- // src/locale/LocaleWrapper.tsx
30
- var LocaleWrapper_exports = {};
31
- __export(LocaleWrapper_exports, {
32
- default: () => LocaleWrapper_default
1
+ "use strict";
2
+ "use client";
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
33
5
  });
34
- module.exports = __toCommonJS(LocaleWrapper_exports);
35
- var import_design = require("@oceanbase/design");
36
- var import_hoist_non_react_statics = __toESM(require("hoist-non-react-statics"));
37
- var import_react = __toESM(require("react"));
38
- var import_jsx_runtime = (
39
- // @ts-ignore
40
- require("react/jsx-runtime")
41
- );
42
- var LocaleWrapper_default = ({ componentName, defaultLocale }) => (BaseComponent) => {
43
- class Hoc extends import_react.default.Component {
6
+ exports.default = void 0;
7
+ var _design = require("@oceanbase/design");
8
+ var _hoistNonReactStatics = _interopRequireDefault(require("hoist-non-react-statics"));
9
+ var _react = _interopRequireDefault(require("react"));
10
+ var _jsxRuntime = require("react/jsx-runtime");
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
+ var _default = ({
13
+ componentName,
14
+ defaultLocale
15
+ }) => BaseComponent => {
16
+ class Hoc extends _react.default.Component {
17
+ static displayName = `LocaleWrapper(${BaseComponent.name})`;
18
+ static WrappedComponent = BaseComponent;
19
+ static contextType = _design.ConfigProvider.ConfigContext;
44
20
  render() {
45
- var _a;
46
- const { locale: customLocale, forwardedRef, ...newProps } = this.props;
47
- const { locale: antLocale } = this.context;
21
+ const {
22
+ locale: customLocale,
23
+ forwardedRef,
24
+ ...newProps
25
+ } = this.props;
26
+ // @ts-ignore
27
+ const {
28
+ locale: antLocale
29
+ } = this.context;
48
30
  const localeFromContext = componentName && antLocale ? antLocale[componentName] : {};
49
31
  const localeData = {
50
32
  ...defaultLocale,
51
- ...localeFromContext || {},
33
+ ...(localeFromContext || {}),
52
34
  // 这里使用 antLocale,不能直接顶掉 locale 属性,有些组件内部会维护一个 locale 去做特殊判断
53
- antLocale: (antLocale == null ? void 0 : antLocale.locale) || "zh-cn"
35
+ antLocale: antLocale?.locale || 'zh-cn'
54
36
  };
55
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
56
- BaseComponent,
57
- {
37
+ return (
38
+ /*#__PURE__*/
39
+ // @ts-ignore
40
+ (0, _jsxRuntime.jsx)(BaseComponent, {
58
41
  ref: forwardedRef,
59
42
  theme: {
60
- hashed: ((_a = process.env.NODE_ENV) == null ? void 0 : _a.toLowerCase()) !== "test"
43
+ hashed: process.env.NODE_ENV?.toLowerCase() !== 'test'
44
+ },
45
+ locale: {
46
+ ...localeData,
47
+ ...customLocale
61
48
  },
62
- locale: { ...localeData, ...customLocale },
63
49
  ...newProps
64
- }
50
+ })
65
51
  );
66
52
  }
67
53
  }
68
- Hoc.displayName = `LocaleWrapper(${BaseComponent.name})`;
69
- Hoc.WrappedComponent = BaseComponent;
70
- Hoc.contextType = import_design.ConfigProvider.ConfigContext;
71
- const ForwardComponent = import_react.default.forwardRef(
72
- // @ts-ignore
73
- (props, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Hoc, { ...props, forwardedRef: ref })
74
- );
75
- return (0, import_hoist_non_react_statics.default)(ForwardComponent, BaseComponent);
54
+
55
+ // 高阶组件需要转发ref
56
+ // 参考: https://zh-hans.reactjs.org/docs/forwarding-refs.html#forwarding-refs-in-higher-order-components
57
+ const ForwardComponent = /*#__PURE__*/_react.default.forwardRef(
58
+ // @ts-ignore
59
+ (props, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(Hoc, {
60
+ ...props,
61
+ forwardedRef: ref
62
+ }));
63
+ return (0, _hoistNonReactStatics.default)(ForwardComponent, BaseComponent);
76
64
  };
65
+ exports.default = _default;
@@ -1,67 +1,46 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
1
+ "use strict";
28
2
 
29
- // src/locale/en-US.ts
30
- var en_US_exports = {};
31
- __export(en_US_exports, {
32
- default: () => en_US_default
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
33
5
  });
34
- module.exports = __toCommonJS(en_US_exports);
35
- var import_en_US = __toESM(require("@oceanbase/design/es/locale/en-US"));
36
- var import_en_US2 = __toESM(require("../BasicLayout/locale/en-US"));
37
- var import_en_US3 = __toESM(require("../BatchOperationBar/locale/en-US"));
38
- var import_en_US4 = __toESM(require("../Boundary/locale/en-US"));
39
- var import_en_US5 = __toESM(require("../Dialog/locale/en-US"));
40
- var import_en_US6 = __toESM(require("../DocDialog/locale/en-US"));
41
- var import_en_US7 = __toESM(require("../FullscreenBox/locale/en-US"));
42
- var import_en_US8 = __toESM(require("../Highlight/locale/en-US"));
43
- var import_en_US9 = __toESM(require("../Login/locale/en-US"));
44
- var import_en_US10 = __toESM(require("../PageContainer/locale/en-US"));
45
- var import_en_US11 = __toESM(require("../Password/locale/en-US"));
46
- var import_en_US12 = __toESM(require("../Ranger/locale/en-US"));
47
- var import_en_US13 = __toESM(require("../DateRanger/locale/en-US"));
48
- var import_en_US14 = __toESM(require("../SideTip/locale/en-US"));
49
- var import_en_US15 = __toESM(require("../Welcome/locale/en-US"));
50
- var en_US_default = {
51
- ...import_en_US.default,
6
+ exports.default = void 0;
7
+ var _enUS = _interopRequireDefault(require("@oceanbase/design/es/locale/en-US"));
8
+ var _enUS2 = _interopRequireDefault(require("../BasicLayout/locale/en-US"));
9
+ var _enUS3 = _interopRequireDefault(require("../BatchOperationBar/locale/en-US"));
10
+ var _enUS4 = _interopRequireDefault(require("../Boundary/locale/en-US"));
11
+ var _enUS5 = _interopRequireDefault(require("../Dialog/locale/en-US"));
12
+ var _enUS6 = _interopRequireDefault(require("../DocDialog/locale/en-US"));
13
+ var _enUS7 = _interopRequireDefault(require("../FooterToolbar/locale/en-US"));
14
+ var _enUS8 = _interopRequireDefault(require("../FullscreenBox/locale/en-US"));
15
+ var _enUS9 = _interopRequireDefault(require("../LightFilter/locale/en-US"));
16
+ var _enUS10 = _interopRequireDefault(require("../NavMenu/locale/en-US"));
17
+ var _enUS11 = _interopRequireDefault(require("../Highlight/locale/en-US"));
18
+ var _enUS12 = _interopRequireDefault(require("../Login/locale/en-US"));
19
+ var _enUS13 = _interopRequireDefault(require("../PageContainer/locale/en-US"));
20
+ var _enUS14 = _interopRequireDefault(require("../Password/locale/en-US"));
21
+ var _enUS15 = _interopRequireDefault(require("../Ranger/locale/en-US"));
22
+ var _enUS16 = _interopRequireDefault(require("../DateRanger/locale/en-US"));
23
+ var _enUS17 = _interopRequireDefault(require("../SideTip/locale/en-US"));
24
+ var _enUS18 = _interopRequireDefault(require("../Welcome/locale/en-US"));
25
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
26
+ var _default = exports.default = {
27
+ ..._enUS.default,
52
28
  // 业务组件
53
- BasicLayout: import_en_US2.default,
54
- PageContainer: import_en_US10.default,
55
- Login: import_en_US9.default,
56
- Welcome: import_en_US15.default,
57
- Ranger: import_en_US12.default,
58
- Password: import_en_US11.default,
59
- Boundary: import_en_US4.default,
60
- Dialog: import_en_US5.default,
61
- SideTip: import_en_US14.default,
62
- DocDialog: import_en_US6.default,
63
- Highlight: import_en_US8.default,
64
- FullscreenBox: import_en_US7.default,
65
- BatchOperationBar: import_en_US3.default,
66
- DateRanger: import_en_US13.default
67
- };
29
+ BasicLayout: _enUS2.default,
30
+ PageContainer: _enUS13.default,
31
+ Login: _enUS12.default,
32
+ Welcome: _enUS18.default,
33
+ Ranger: _enUS15.default,
34
+ Password: _enUS14.default,
35
+ Boundary: _enUS4.default,
36
+ Dialog: _enUS5.default,
37
+ SideTip: _enUS17.default,
38
+ DocDialog: _enUS6.default,
39
+ Highlight: _enUS11.default,
40
+ FullscreenBox: _enUS8.default,
41
+ FooterToolbar: _enUS7.default,
42
+ LightFilter: _enUS9.default,
43
+ NavMenu: _enUS10.default,
44
+ BatchOperationBar: _enUS3.default,
45
+ DateRanger: _enUS16.default
46
+ };