@pisell/materials 1.8.12 → 1.8.13

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 (593) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +7 -7
  6. package/build/lowcode/preview.js +150 -164
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +27 -40
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +27 -40
  11. package/es/components/Pagination/index.d.ts +3 -5
  12. package/es/components/Pagination/index.js +77 -59
  13. package/es/components/Pagination/index.less +13 -7
  14. package/es/components/PisellFields/index.d.ts +2 -2
  15. package/es/components/PisellSuperTabs/PisellSuperTabs.d.ts +8 -0
  16. package/es/components/PisellSuperTabs/hooks/useTabsState.d.ts +7 -0
  17. package/es/components/PisellSuperTabs/types.d.ts +212 -0
  18. package/es/components/PisellTabbar/PisellTabbar.d.ts +20 -0
  19. package/es/components/PisellTabbar/constants.d.ts +47 -0
  20. package/es/components/PisellTabbar/hooks/useActiveKey.d.ts +55 -0
  21. package/es/components/PisellTabbar/hooks/useExpand.d.ts +42 -0
  22. package/es/components/PisellTabbar/locales.d.ts +23 -0
  23. package/es/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +5 -0
  24. package/es/components/PisellTabbar/template/Template1/constants.d.ts +10 -0
  25. package/es/components/PisellTabbar/types.d.ts +90 -0
  26. package/es/components/PisellTabbar/utils/index.d.ts +69 -0
  27. package/es/components/PisellTabbar2/locales.d.ts +23 -0
  28. package/es/components/PisellTabbar3/locales.d.ts +23 -0
  29. package/es/components/config-provider/index.d.ts +9 -0
  30. package/es/components/dataSourceComponents/dataSourceForm/BaseForm.js +6 -8
  31. package/es/components/dataSourceComponents/dataSourceForm/serve.d.ts +5 -6
  32. package/es/components/dataSourceComponents/dataSourceForm/serve.js +39 -33
  33. package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.js +27 -30
  34. package/es/components/dataSourceComponents/dataSourceForm/urlUtils.js +1 -1
  35. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -0
  36. package/es/components/dataSourceComponents/dataSourceForm/utils.js +5 -1
  37. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  38. package/es/components/dataSourceComponents/dataSourceTable/hooks/useFormat.js +33 -15
  39. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
  40. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +26 -0
  41. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +27 -0
  42. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  43. package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +5 -0
  44. package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.js +6 -3
  45. package/es/components/dataSourceComponents/fields/Translation/type.d.ts +21 -0
  46. package/es/components/dataSourceComponents/fields/Upload/constants.d.ts +9 -0
  47. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +18 -0
  48. package/es/components/dataSourceComponents/fields/index.d.ts +8 -6
  49. package/es/components/dataSourceComponents/hooks/useActions.js +3 -2
  50. package/es/components/dataSourceComponents/hooks/useFormSettingParams.d.ts +7 -0
  51. package/es/components/dataSourceComponents/hooks/useFormSettingParams.js +32 -0
  52. package/es/components/filter/components/Dropdown/index.js +6 -2
  53. package/es/components/filter/components/FilterButton/index.js +19 -4
  54. package/es/components/filter/components/FilterButton/types.d.ts +8 -0
  55. package/es/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.d.ts +21 -0
  56. package/es/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.js +90 -0
  57. package/es/components/filter/components/FilterItem/index.d.ts +3 -3
  58. package/es/components/filter/components/FilterItem/index.js +138 -7
  59. package/es/components/filter/components/FilterItem/index.less +90 -0
  60. package/es/components/filter/types.d.ts +4 -2
  61. package/es/components/media/index.d.ts +18 -0
  62. package/es/components/media/index.js +340 -0
  63. package/es/components/media/index.less +100 -0
  64. package/es/components/page/index.d.ts +8 -0
  65. package/es/components/pisellBatchActionBar/PisellBatchActionBar.js +38 -29
  66. package/es/components/pisellCurrency/PisellCurrency.less +163 -25
  67. package/es/components/pisellCurrency/PisellCurrency.stories.js +1 -1
  68. package/es/components/pisellCurrency/index.d.ts +2 -1
  69. package/es/components/pisellCurrency/index.js +16 -1
  70. package/es/components/pisellDataSourceContainer/components/ColumnsSetting/utils.d.ts +18 -12
  71. package/es/components/pisellDataSourceContainer/components/ColumnsSetting/utils.js +15 -64
  72. package/es/components/pisellDataSourceContainer/components/Pagination/index.d.ts +6 -0
  73. package/es/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +2 -2
  74. package/es/components/pisellDateTimeDisplay/PisellDateTimeDisplay.d.ts +35 -0
  75. package/es/components/pisellDateTimeDisplay/PisellDateTimeDisplay.js +21 -15
  76. package/es/components/pisellDateTimeDisplay/PisellDateTimeDisplay.less +2 -1
  77. package/es/components/pisellDateTimeDisplay/PisellDateTimeDisplay.stories.d.ts +195 -0
  78. package/es/components/pisellDateTimeDisplay/components/DateDisplay.d.ts +48 -0
  79. package/es/components/pisellDateTimeDisplay/formats/dateTimeDisplayFormats.d.ts +7 -0
  80. package/es/components/pisellDateTimeDisplay/formats/dateTimeDisplayFormats.js +5 -5
  81. package/es/components/pisellDateTimeDisplay/formats/index.d.ts +1 -0
  82. package/es/components/pisellDateTimeDisplay/hooks/useCurrentTime.d.ts +46 -0
  83. package/es/components/pisellDateTimeDisplay/hooks/useCurrentTime.js +6 -4
  84. package/es/components/pisellDateTimeDisplay/index.d.ts +3 -0
  85. package/es/components/pisellDateTimeDisplay/types.d.ts +352 -0
  86. package/es/components/pisellDateTimeDisplay/utils/formatDate.d.ts +21 -0
  87. package/es/components/pisellDateTimeDisplay/utils/formatDateOrRelative.d.ts +17 -0
  88. package/es/components/pisellDateTimeDisplay/utils/formatWeekday.d.ts +30 -0
  89. package/es/components/pisellDateTimeDisplay/utils/index.d.ts +7 -0
  90. package/es/components/pisellDateTimeDisplay/utils/localeUtils.d.ts +22 -0
  91. package/es/components/pisellDateTimeDisplay/utils/localeUtils.js +15 -4
  92. package/es/components/pisellDateTimeDisplay/utils/relativeDay.d.ts +24 -0
  93. package/es/components/pisellDateTimeDisplay/utils/relativeDay.js +4 -2
  94. package/es/components/pisellEmail/PisellEmail.less +119 -10
  95. package/es/components/pisellEmail/PisellEmail.stories.js +1 -1
  96. package/es/components/pisellEmail/index.d.ts +3 -1
  97. package/es/components/pisellEmail/index.js +17 -1
  98. package/es/components/pisellFilter/index.js +76 -10
  99. package/es/components/pisellFind/PisellFind.stories.d.ts +45 -0
  100. package/es/components/pisellFind/index.d.ts +40 -0
  101. package/es/components/pisellFind/index.js +11 -2
  102. package/es/components/pisellGridPro/ToolBar/index.less +23 -0
  103. package/es/components/pisellLongText/PisellLongText.less +72 -4
  104. package/es/components/pisellLongText/PisellLongText.stories.js +1 -1
  105. package/es/components/pisellLongText/index.d.ts +2 -1
  106. package/es/components/pisellLongText/index.js +16 -1
  107. package/es/components/pisellLookup/PisellLookup.d.ts +4 -0
  108. package/es/components/pisellLookup/PisellLookup.js +18 -9
  109. package/es/components/pisellLookup/PisellLookup.less +39 -16
  110. package/es/components/pisellLookup/PisellLookup.stories.d.ts +129 -0
  111. package/es/components/pisellLookup/components/HotWords.d.ts +7 -0
  112. package/es/components/pisellLookup/components/LookupAuxiliary.d.ts +7 -0
  113. package/es/components/pisellLookup/components/LookupResultHost.d.ts +7 -0
  114. package/es/components/pisellLookup/components/LookupTrigger.d.ts +3 -0
  115. package/es/components/pisellLookup/components/LookupTrigger.js +30 -17
  116. package/es/components/pisellLookup/components/SearchHistory.d.ts +7 -0
  117. package/es/components/pisellLookup/components/SuggestWords.d.ts +7 -0
  118. package/es/components/pisellLookup/components/index.d.ts +9 -0
  119. package/es/components/pisellLookup/hooks/index.d.ts +6 -0
  120. package/es/components/pisellLookup/hooks/useDebounceSearch.d.ts +40 -0
  121. package/es/components/pisellLookup/hooks/useSearchHistory.d.ts +48 -0
  122. package/es/components/pisellLookup/hooks/useSearchState.d.ts +80 -0
  123. package/es/components/pisellLookup/index.d.ts +6 -0
  124. package/es/components/pisellLookup/types.d.ts +667 -0
  125. package/es/components/pisellLookup/utils/index.d.ts +5 -0
  126. package/es/components/pisellLookup/utils/storage.d.ts +42 -0
  127. package/es/components/pisellLookup/utils/trigger.d.ts +42 -0
  128. package/es/components/pisellMultipleSelect/PisellMultipleSelect.less +159 -124
  129. package/es/components/pisellMultipleSelect/PisellMultipleSelect.stories.js +1 -1
  130. package/es/components/pisellMultipleSelect/components/EditView.js +8 -2
  131. package/es/components/pisellMultipleSelect/components/ReadOnlyView.d.ts +1 -1
  132. package/es/components/pisellMultipleSelect/components/ReadOnlyView.js +15 -11
  133. package/es/components/pisellMultipleSelect/index.d.ts +2 -1
  134. package/es/components/pisellMultipleSelect/index.js +16 -1
  135. package/es/components/pisellNumber/PisellNumber.less +135 -17
  136. package/es/components/pisellNumber/PisellNumber.stories.js +1 -1
  137. package/es/components/pisellNumber/index.d.ts +2 -1
  138. package/es/components/pisellNumber/index.js +16 -1
  139. package/es/components/pisellPercent/PisellPercent.less +142 -24
  140. package/es/components/pisellPercent/PisellPercent.stories.js +1 -1
  141. package/es/components/pisellPercent/index.d.ts +2 -1
  142. package/es/components/pisellPercent/index.js +16 -1
  143. package/es/components/pisellPhone/PisellPhone.less +122 -27
  144. package/es/components/pisellPhone/PisellPhone.stories.js +1 -1
  145. package/es/components/pisellPhone/components/EditView.js +1 -1
  146. package/es/components/pisellPhone/components/ReadOnlyView.js +15 -6
  147. package/es/components/pisellPhone/index.d.ts +2 -1
  148. package/es/components/pisellPhone/index.js +16 -1
  149. package/es/components/pisellRating/PisellRating.less +20 -12
  150. package/es/components/pisellRating/PisellRating.stories.js +1 -1
  151. package/es/components/pisellRating/index.d.ts +2 -1
  152. package/es/components/pisellRating/index.js +16 -1
  153. package/es/components/pisellRecordBoard/PisellRecordBoard.d.ts +9 -0
  154. package/es/components/pisellRecordBoard/PisellRecordBoard.d.ts.map +1 -0
  155. package/es/components/pisellRecordBoard/PisellRecordBoard.js +243 -0
  156. package/es/components/pisellRecordBoard/PisellRecordBoard.stories.d.ts +81 -0
  157. package/es/components/pisellRecordBoard/PisellRecordBoard.stories.js +2358 -0
  158. package/es/components/pisellRecordBoard/context/RecordBoardContext.d.ts +3 -0
  159. package/es/components/pisellRecordBoard/context/RecordBoardContext.js +2 -0
  160. package/es/components/pisellRecordBoard/context/RecordBoardProvider.d.ts +11 -0
  161. package/es/components/pisellRecordBoard/context/RecordBoardProvider.js +13 -0
  162. package/es/components/pisellRecordBoard/hooks/useRecordBoardContext.d.ts +16 -0
  163. package/es/components/pisellRecordBoard/hooks/useRecordBoardContext.js +29 -0
  164. package/es/components/pisellRecordBoard/index.d.ts +35 -0
  165. package/es/components/pisellRecordBoard/index.js +23 -0
  166. package/es/components/pisellRecordBoard/layouts/CardLayout/CardList.d.ts +12 -0
  167. package/es/components/pisellRecordBoard/layouts/CardLayout/CardList.js +36 -0
  168. package/es/components/pisellRecordBoard/layouts/CardLayout/index.d.ts +13 -0
  169. package/es/components/pisellRecordBoard/layouts/CardLayout/index.js +20 -0
  170. package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +14 -0
  171. package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.js +242 -0
  172. package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.less +100 -0
  173. package/es/components/pisellRecordBoard/layouts/GridLayout/index.d.ts +13 -0
  174. package/es/components/pisellRecordBoard/layouts/GridLayout/index.js +20 -0
  175. package/es/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +8 -0
  176. package/es/components/pisellRecordBoard/shellFrame/BatchActionBar/index.js +90 -0
  177. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.d.ts +15 -0
  178. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.js +138 -0
  179. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.d.ts +8 -0
  180. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +66 -0
  181. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.less +2 -0
  182. package/es/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +14 -0
  183. package/es/components/pisellRecordBoard/shellFrame/Pagination/index.js +66 -0
  184. package/es/components/pisellRecordBoard/shellFrame/Pagination/index.less +78 -0
  185. package/es/components/pisellRecordBoard/shellFrame/Search/index.d.ts +10 -0
  186. package/es/components/pisellRecordBoard/shellFrame/Search/index.js +41 -0
  187. package/es/components/pisellRecordBoard/shellFrame/ToolBar/ToolBarFilter.less +112 -0
  188. package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +12 -0
  189. package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts.map +1 -0
  190. package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.js +215 -0
  191. package/es/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.d.ts +17 -0
  192. package/es/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.js +77 -0
  193. package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.d.ts +17 -0
  194. package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.d.ts.map +1 -0
  195. package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.js +65 -0
  196. package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.less +41 -0
  197. package/es/components/pisellRecordBoard/shellFrame/index.d.ts +26 -0
  198. package/es/components/pisellRecordBoard/shellFrame/index.js +104 -0
  199. package/es/components/pisellRecordBoard/types.d.ts +316 -0
  200. package/es/components/pisellRecordBoard/types.d.ts.map +1 -0
  201. package/es/components/pisellRecordBoard/types.js +1 -0
  202. package/es/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +41 -0
  203. package/es/components/pisellRecordBoard/utils/recordBoardColumns.js +508 -0
  204. package/es/components/pisellRecordBoard/utils/withRecordBoard.d.ts +9 -0
  205. package/es/components/pisellRecordBoard/utils/withRecordBoard.js +27 -0
  206. package/es/components/pisellShellFrame/PisellShellFrame.d.ts +13 -0
  207. package/es/components/pisellShellFrame/PisellShellFrame.js +107 -0
  208. package/es/components/pisellShellFrame/PisellShellFrame.less +78 -0
  209. package/es/components/pisellShellFrame/PisellShellFrame.stories.d.ts +15 -0
  210. package/es/components/pisellShellFrame/PisellShellFrame.stories.js +195 -0
  211. package/es/components/pisellShellFrame/index.d.ts +2 -0
  212. package/es/components/pisellShellFrame/index.js +1 -0
  213. package/es/components/pisellShellFrame/types.d.ts +56 -0
  214. package/es/components/pisellShellFrame/types.js +1 -0
  215. package/es/components/pisellSingleLineText/PisellSingleLineText.stories.js +1 -1
  216. package/es/components/pisellSingleLineText/index.d.ts +2 -1
  217. package/es/components/pisellSingleLineText/index.js +16 -1
  218. package/es/components/pisellSingleSelect/PisellSingleSelect.less +103 -46
  219. package/es/components/pisellSingleSelect/PisellSingleSelect.stories.js +1 -1
  220. package/es/components/pisellSingleSelect/components/EditView.js +8 -2
  221. package/es/components/pisellSingleSelect/components/ReadOnlyView.d.ts +1 -1
  222. package/es/components/pisellSingleSelect/components/ReadOnlyView.js +10 -6
  223. package/es/components/pisellSingleSelect/index.d.ts +2 -1
  224. package/es/components/pisellSingleSelect/index.js +16 -1
  225. package/es/components/pisellStatisticList/index.d.ts +1 -0
  226. package/es/components/pisellStatisticList/index.js +5 -2
  227. package/es/components/pisellText/components/Editable/index.d.ts +32 -0
  228. package/es/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.d.ts +32 -0
  229. package/es/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.js +8 -5
  230. package/es/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.stories.d.ts +61 -0
  231. package/es/components/pisellTimeRangeDisplay/components/DateBlock.d.ts +20 -0
  232. package/es/components/pisellTimeRangeDisplay/components/DurationBlock.d.ts +19 -0
  233. package/es/components/pisellTimeRangeDisplay/components/TimeRangeBlock.d.ts +30 -0
  234. package/es/components/pisellTimeRangeDisplay/components/WeekdayBlock.d.ts +18 -0
  235. package/es/components/pisellTimeRangeDisplay/components/index.d.ts +8 -0
  236. package/es/components/pisellTimeRangeDisplay/index.d.ts +3 -0
  237. package/es/components/pisellTimeRangeDisplay/types.d.ts +137 -0
  238. package/es/components/pisellTimeRangeDisplay/utils/formatDuration.d.ts +14 -0
  239. package/es/components/pisellTimeRangeDisplay/utils/index.d.ts +4 -0
  240. package/es/components/pisellTimeRangeDisplay/utils/parseTimeRange.d.ts +23 -0
  241. package/es/components/pisellUrl/PisellUrl.less +120 -11
  242. package/es/components/pisellUrl/PisellUrl.stories.js +1 -1
  243. package/es/components/pisellUrl/index.d.ts +3 -1
  244. package/es/components/pisellUrl/index.js +17 -1
  245. package/es/components/pisellVHFix/index.d.ts +13 -0
  246. package/es/components/pisellVHFix/index.js +36 -0
  247. package/es/components/pisellVHFix/index.less +10 -0
  248. package/es/components/productCard/cartSkuCard/components/Gift/index.d.ts +4 -0
  249. package/es/components/productCard/cartSkuCard/components/Gift/index.js +1 -1
  250. package/es/components/productCard/cartSkuCard/components/Gift/types.d.ts +29 -0
  251. package/es/components/productCard/cartSkuCard/components/Promotion/index.d.ts +6 -0
  252. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +36 -0
  253. package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +5 -3
  254. package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +1 -1
  255. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +11 -0
  256. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +8 -0
  257. package/es/components/productCard/cartSkuCard/components/timeRange/index.js +1 -0
  258. package/es/components/productCard/cartSkuCard/index.d.ts +10 -0
  259. package/es/components/productCard/cartSkuCard/index.js +5 -1
  260. package/es/components/productCard/cartSkuCard/locales.d.ts +178 -0
  261. package/es/components/productCard/cartSkuCard/locales.js +12 -2
  262. package/es/components/productCard/components/Header/EditButton/index.d.ts +3 -0
  263. package/es/components/productCard/locales.d.ts +138 -0
  264. package/es/components/productCard/status.d.ts +32 -0
  265. package/es/components/productCard/types.d.ts +95 -0
  266. package/es/components/productCard/utils.d.ts +33 -0
  267. package/es/components/select/index.less +18 -2
  268. package/es/components/sort/index.js +25 -3
  269. package/es/components/sort/types.d.ts +20 -1
  270. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  271. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  272. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  273. package/es/components/table/Table/utils.d.ts +1 -1
  274. package/es/components/translation/index.d.ts +17 -0
  275. package/es/components/translation/utils.d.ts +9 -0
  276. package/es/components/virtualInput/BaseVirtualInput/index.less +2 -2
  277. package/es/components/virtualInput/index.d.ts +5 -0
  278. package/es/components/virtualInput/index.js +6 -2
  279. package/es/components/walletCard/index.d.ts +79 -0
  280. package/es/hooks/useThemeTokens.d.ts +7 -0
  281. package/es/hooks/useThemeTokens.js +20 -0
  282. package/es/index.d.ts +235 -0
  283. package/es/index.js +23 -21
  284. package/es/locales/en-US.d.ts +384 -0
  285. package/es/locales/en-US.js +51 -2
  286. package/es/locales/index.d.ts +1 -0
  287. package/es/locales/index.js +2 -2
  288. package/es/locales/ja.d.ts +348 -0
  289. package/es/locales/ja.js +13 -1
  290. package/es/locales/pt.d.ts +348 -0
  291. package/es/locales/pt.js +12 -1
  292. package/es/locales/zh-CN.d.ts +379 -0
  293. package/es/locales/zh-CN.js +55 -6
  294. package/es/locales/zh-TW.d.ts +379 -0
  295. package/es/locales/zh-TW.js +55 -6
  296. package/es/theme/tokens.d.ts +22 -0
  297. package/es/utils/index.d.ts +1 -1
  298. package/es/utils/platform.d.ts +1 -1
  299. package/es/utils/tagColor.d.ts +7 -0
  300. package/es/utils/tagColor.js +39 -0
  301. package/lib/components/Pagination/index.d.ts +3 -5
  302. package/lib/components/Pagination/index.js +44 -21
  303. package/lib/components/Pagination/index.less +13 -7
  304. package/lib/components/PisellFields/index.d.ts +2 -2
  305. package/lib/components/PisellSuperTabs/PisellSuperTabs.d.ts +8 -0
  306. package/lib/components/PisellSuperTabs/hooks/useTabsState.d.ts +7 -0
  307. package/lib/components/PisellSuperTabs/types.d.ts +212 -0
  308. package/lib/components/PisellTabbar/PisellTabbar.d.ts +20 -0
  309. package/lib/components/PisellTabbar/constants.d.ts +47 -0
  310. package/lib/components/PisellTabbar/hooks/useActiveKey.d.ts +55 -0
  311. package/lib/components/PisellTabbar/hooks/useExpand.d.ts +42 -0
  312. package/lib/components/PisellTabbar/locales.d.ts +23 -0
  313. package/lib/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +5 -0
  314. package/lib/components/PisellTabbar/template/Template1/constants.d.ts +10 -0
  315. package/lib/components/PisellTabbar/types.d.ts +90 -0
  316. package/lib/components/PisellTabbar/utils/index.d.ts +69 -0
  317. package/lib/components/PisellTabbar2/locales.d.ts +23 -0
  318. package/lib/components/PisellTabbar3/locales.d.ts +23 -0
  319. package/lib/components/config-provider/index.d.ts +9 -0
  320. package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.js +3 -3
  321. package/lib/components/dataSourceComponents/dataSourceForm/serve.d.ts +5 -6
  322. package/lib/components/dataSourceComponents/dataSourceForm/serve.js +38 -22
  323. package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.js +4 -8
  324. package/lib/components/dataSourceComponents/dataSourceForm/urlUtils.js +1 -1
  325. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -0
  326. package/lib/components/dataSourceComponents/dataSourceForm/utils.js +2 -1
  327. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  328. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useFormat.js +33 -15
  329. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
  330. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +26 -0
  331. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +27 -0
  332. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  333. package/lib/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +5 -0
  334. package/lib/components/dataSourceComponents/fields/Translation/BaseTranslation.js +6 -3
  335. package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +21 -0
  336. package/lib/components/dataSourceComponents/fields/Upload/constants.d.ts +9 -0
  337. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +18 -0
  338. package/lib/components/dataSourceComponents/fields/index.d.ts +8 -6
  339. package/lib/components/dataSourceComponents/hooks/useActions.js +6 -2
  340. package/lib/components/dataSourceComponents/hooks/useFormSettingParams.d.ts +7 -0
  341. package/lib/components/dataSourceComponents/hooks/useFormSettingParams.js +63 -0
  342. package/lib/components/filter/components/Dropdown/index.js +9 -2
  343. package/lib/components/filter/components/FilterButton/index.js +14 -3
  344. package/lib/components/filter/components/FilterButton/types.d.ts +8 -0
  345. package/lib/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.d.ts +21 -0
  346. package/lib/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.js +69 -0
  347. package/lib/components/filter/components/FilterItem/index.d.ts +3 -3
  348. package/lib/components/filter/components/FilterItem/index.js +133 -4
  349. package/lib/components/filter/components/FilterItem/index.less +90 -0
  350. package/lib/components/filter/types.d.ts +4 -2
  351. package/lib/components/media/index.d.ts +18 -0
  352. package/lib/components/media/index.js +265 -0
  353. package/lib/components/media/index.less +100 -0
  354. package/lib/components/page/index.d.ts +8 -0
  355. package/lib/components/pisellBatchActionBar/PisellBatchActionBar.js +26 -23
  356. package/lib/components/pisellCurrency/PisellCurrency.less +163 -25
  357. package/lib/components/pisellCurrency/PisellCurrency.stories.js +1 -1
  358. package/lib/components/pisellCurrency/index.d.ts +2 -1
  359. package/lib/components/pisellCurrency/index.js +7 -0
  360. package/lib/components/pisellDataSourceContainer/components/ColumnsSetting/utils.d.ts +18 -12
  361. package/lib/components/pisellDataSourceContainer/components/ColumnsSetting/utils.js +8 -48
  362. package/lib/components/pisellDataSourceContainer/components/Pagination/index.d.ts +6 -0
  363. package/lib/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +2 -2
  364. package/lib/components/pisellDateTimeDisplay/PisellDateTimeDisplay.d.ts +35 -0
  365. package/lib/components/pisellDateTimeDisplay/PisellDateTimeDisplay.js +17 -11
  366. package/lib/components/pisellDateTimeDisplay/PisellDateTimeDisplay.less +2 -1
  367. package/lib/components/pisellDateTimeDisplay/PisellDateTimeDisplay.stories.d.ts +195 -0
  368. package/lib/components/pisellDateTimeDisplay/components/DateDisplay.d.ts +48 -0
  369. package/lib/components/pisellDateTimeDisplay/formats/dateTimeDisplayFormats.d.ts +7 -0
  370. package/lib/components/pisellDateTimeDisplay/formats/dateTimeDisplayFormats.js +3 -3
  371. package/lib/components/pisellDateTimeDisplay/formats/index.d.ts +1 -0
  372. package/lib/components/pisellDateTimeDisplay/hooks/useCurrentTime.d.ts +46 -0
  373. package/lib/components/pisellDateTimeDisplay/hooks/useCurrentTime.js +7 -1
  374. package/lib/components/pisellDateTimeDisplay/index.d.ts +3 -0
  375. package/lib/components/pisellDateTimeDisplay/types.d.ts +352 -0
  376. package/lib/components/pisellDateTimeDisplay/utils/formatDate.d.ts +21 -0
  377. package/lib/components/pisellDateTimeDisplay/utils/formatDateOrRelative.d.ts +17 -0
  378. package/lib/components/pisellDateTimeDisplay/utils/formatWeekday.d.ts +30 -0
  379. package/lib/components/pisellDateTimeDisplay/utils/index.d.ts +7 -0
  380. package/lib/components/pisellDateTimeDisplay/utils/localeUtils.d.ts +22 -0
  381. package/lib/components/pisellDateTimeDisplay/utils/localeUtils.js +10 -2
  382. package/lib/components/pisellDateTimeDisplay/utils/relativeDay.d.ts +24 -0
  383. package/lib/components/pisellDateTimeDisplay/utils/relativeDay.js +2 -1
  384. package/lib/components/pisellEmail/PisellEmail.less +119 -10
  385. package/lib/components/pisellEmail/PisellEmail.stories.js +1 -1
  386. package/lib/components/pisellEmail/index.d.ts +3 -1
  387. package/lib/components/pisellEmail/index.js +10 -2
  388. package/lib/components/pisellFilter/index.js +79 -8
  389. package/lib/components/pisellFind/PisellFind.stories.d.ts +45 -0
  390. package/lib/components/pisellFind/index.d.ts +40 -0
  391. package/lib/components/pisellFind/index.js +11 -2
  392. package/lib/components/pisellGridPro/ToolBar/index.less +23 -0
  393. package/lib/components/pisellLongText/PisellLongText.less +72 -4
  394. package/lib/components/pisellLongText/PisellLongText.stories.js +1 -1
  395. package/lib/components/pisellLongText/index.d.ts +2 -1
  396. package/lib/components/pisellLongText/index.js +7 -0
  397. package/lib/components/pisellLookup/PisellLookup.d.ts +4 -0
  398. package/lib/components/pisellLookup/PisellLookup.js +12 -6
  399. package/lib/components/pisellLookup/PisellLookup.less +39 -16
  400. package/lib/components/pisellLookup/PisellLookup.stories.d.ts +129 -0
  401. package/lib/components/pisellLookup/components/HotWords.d.ts +7 -0
  402. package/lib/components/pisellLookup/components/LookupAuxiliary.d.ts +7 -0
  403. package/lib/components/pisellLookup/components/LookupResultHost.d.ts +7 -0
  404. package/lib/components/pisellLookup/components/LookupTrigger.d.ts +3 -0
  405. package/lib/components/pisellLookup/components/LookupTrigger.js +17 -11
  406. package/lib/components/pisellLookup/components/SearchHistory.d.ts +7 -0
  407. package/lib/components/pisellLookup/components/SuggestWords.d.ts +7 -0
  408. package/lib/components/pisellLookup/components/index.d.ts +9 -0
  409. package/lib/components/pisellLookup/hooks/index.d.ts +6 -0
  410. package/lib/components/pisellLookup/hooks/useDebounceSearch.d.ts +40 -0
  411. package/lib/components/pisellLookup/hooks/useSearchHistory.d.ts +48 -0
  412. package/lib/components/pisellLookup/hooks/useSearchState.d.ts +80 -0
  413. package/lib/components/pisellLookup/index.d.ts +6 -0
  414. package/lib/components/pisellLookup/types.d.ts +667 -0
  415. package/lib/components/pisellLookup/utils/index.d.ts +5 -0
  416. package/lib/components/pisellLookup/utils/storage.d.ts +42 -0
  417. package/lib/components/pisellLookup/utils/trigger.d.ts +42 -0
  418. package/lib/components/pisellMultipleSelect/PisellMultipleSelect.less +159 -124
  419. package/lib/components/pisellMultipleSelect/PisellMultipleSelect.stories.js +1 -1
  420. package/lib/components/pisellMultipleSelect/components/EditView.js +4 -1
  421. package/lib/components/pisellMultipleSelect/components/ReadOnlyView.d.ts +1 -1
  422. package/lib/components/pisellMultipleSelect/components/ReadOnlyView.js +29 -1
  423. package/lib/components/pisellMultipleSelect/index.d.ts +2 -1
  424. package/lib/components/pisellMultipleSelect/index.js +7 -0
  425. package/lib/components/pisellNumber/PisellNumber.less +135 -17
  426. package/lib/components/pisellNumber/PisellNumber.stories.js +1 -1
  427. package/lib/components/pisellNumber/index.d.ts +2 -1
  428. package/lib/components/pisellNumber/index.js +7 -0
  429. package/lib/components/pisellPercent/PisellPercent.less +142 -24
  430. package/lib/components/pisellPercent/PisellPercent.stories.js +1 -1
  431. package/lib/components/pisellPercent/index.d.ts +2 -1
  432. package/lib/components/pisellPercent/index.js +7 -0
  433. package/lib/components/pisellPhone/PisellPhone.less +122 -27
  434. package/lib/components/pisellPhone/PisellPhone.stories.js +1 -1
  435. package/lib/components/pisellPhone/components/EditView.js +1 -1
  436. package/lib/components/pisellPhone/components/ReadOnlyView.js +18 -4
  437. package/lib/components/pisellPhone/index.d.ts +2 -1
  438. package/lib/components/pisellPhone/index.js +7 -0
  439. package/lib/components/pisellRating/PisellRating.less +20 -12
  440. package/lib/components/pisellRating/PisellRating.stories.js +1 -1
  441. package/lib/components/pisellRating/index.d.ts +2 -1
  442. package/lib/components/pisellRating/index.js +7 -0
  443. package/lib/components/pisellRecordBoard/PisellRecordBoard.d.ts +9 -0
  444. package/lib/components/pisellRecordBoard/PisellRecordBoard.d.ts.map +1 -0
  445. package/lib/components/pisellRecordBoard/PisellRecordBoard.js +263 -0
  446. package/lib/components/pisellRecordBoard/PisellRecordBoard.stories.d.ts +81 -0
  447. package/lib/components/pisellRecordBoard/PisellRecordBoard.stories.js +1673 -0
  448. package/lib/components/pisellRecordBoard/context/RecordBoardContext.d.ts +3 -0
  449. package/lib/components/pisellRecordBoard/context/RecordBoardContext.js +30 -0
  450. package/lib/components/pisellRecordBoard/context/RecordBoardProvider.d.ts +11 -0
  451. package/lib/components/pisellRecordBoard/context/RecordBoardProvider.js +46 -0
  452. package/lib/components/pisellRecordBoard/hooks/useRecordBoardContext.d.ts +16 -0
  453. package/lib/components/pisellRecordBoard/hooks/useRecordBoardContext.js +47 -0
  454. package/lib/components/pisellRecordBoard/index.d.ts +35 -0
  455. package/lib/components/pisellRecordBoard/index.js +59 -0
  456. package/lib/components/pisellRecordBoard/layouts/CardLayout/CardList.d.ts +12 -0
  457. package/lib/components/pisellRecordBoard/layouts/CardLayout/CardList.js +46 -0
  458. package/lib/components/pisellRecordBoard/layouts/CardLayout/index.d.ts +13 -0
  459. package/lib/components/pisellRecordBoard/layouts/CardLayout/index.js +46 -0
  460. package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +14 -0
  461. package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.js +264 -0
  462. package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.less +100 -0
  463. package/lib/components/pisellRecordBoard/layouts/GridLayout/index.d.ts +13 -0
  464. package/lib/components/pisellRecordBoard/layouts/GridLayout/index.js +46 -0
  465. package/lib/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +8 -0
  466. package/lib/components/pisellRecordBoard/shellFrame/BatchActionBar/index.js +108 -0
  467. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.d.ts +15 -0
  468. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.js +173 -0
  469. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.d.ts +8 -0
  470. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +100 -0
  471. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.less +2 -0
  472. package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +14 -0
  473. package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.js +90 -0
  474. package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.less +78 -0
  475. package/lib/components/pisellRecordBoard/shellFrame/Search/index.d.ts +10 -0
  476. package/lib/components/pisellRecordBoard/shellFrame/Search/index.js +53 -0
  477. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/ToolBarFilter.less +112 -0
  478. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +12 -0
  479. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts.map +1 -0
  480. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.js +247 -0
  481. package/lib/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.d.ts +17 -0
  482. package/lib/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.js +93 -0
  483. package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.d.ts +17 -0
  484. package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.d.ts.map +1 -0
  485. package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.js +85 -0
  486. package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.less +41 -0
  487. package/lib/components/pisellRecordBoard/shellFrame/index.d.ts +26 -0
  488. package/lib/components/pisellRecordBoard/shellFrame/index.js +137 -0
  489. package/lib/components/pisellRecordBoard/types.d.ts +316 -0
  490. package/lib/components/pisellRecordBoard/types.d.ts.map +1 -0
  491. package/lib/components/pisellRecordBoard/types.js +17 -0
  492. package/lib/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +41 -0
  493. package/lib/components/pisellRecordBoard/utils/recordBoardColumns.js +365 -0
  494. package/lib/components/pisellRecordBoard/utils/withRecordBoard.d.ts +9 -0
  495. package/lib/components/pisellRecordBoard/utils/withRecordBoard.js +49 -0
  496. package/lib/components/pisellShellFrame/PisellShellFrame.d.ts +13 -0
  497. package/lib/components/pisellShellFrame/PisellShellFrame.js +113 -0
  498. package/lib/components/pisellShellFrame/PisellShellFrame.less +78 -0
  499. package/lib/components/pisellShellFrame/PisellShellFrame.stories.d.ts +15 -0
  500. package/lib/components/pisellShellFrame/PisellShellFrame.stories.js +129 -0
  501. package/lib/components/pisellShellFrame/index.d.ts +2 -0
  502. package/lib/components/pisellShellFrame/index.js +40 -0
  503. package/lib/components/pisellShellFrame/types.d.ts +56 -0
  504. package/lib/components/pisellShellFrame/types.js +17 -0
  505. package/lib/components/pisellSingleLineText/PisellSingleLineText.stories.js +1 -1
  506. package/lib/components/pisellSingleLineText/index.d.ts +2 -1
  507. package/lib/components/pisellSingleLineText/index.js +7 -0
  508. package/lib/components/pisellSingleSelect/PisellSingleSelect.less +103 -46
  509. package/lib/components/pisellSingleSelect/PisellSingleSelect.stories.js +1 -1
  510. package/lib/components/pisellSingleSelect/components/EditView.js +4 -1
  511. package/lib/components/pisellSingleSelect/components/ReadOnlyView.d.ts +1 -1
  512. package/lib/components/pisellSingleSelect/components/ReadOnlyView.js +12 -9
  513. package/lib/components/pisellSingleSelect/index.d.ts +2 -1
  514. package/lib/components/pisellSingleSelect/index.js +7 -0
  515. package/lib/components/pisellStatisticList/index.d.ts +1 -0
  516. package/lib/components/pisellStatisticList/index.js +4 -2
  517. package/lib/components/pisellText/components/Editable/index.d.ts +32 -0
  518. package/lib/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.d.ts +32 -0
  519. package/lib/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.js +7 -3
  520. package/lib/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.stories.d.ts +61 -0
  521. package/lib/components/pisellTimeRangeDisplay/components/DateBlock.d.ts +20 -0
  522. package/lib/components/pisellTimeRangeDisplay/components/DurationBlock.d.ts +19 -0
  523. package/lib/components/pisellTimeRangeDisplay/components/TimeRangeBlock.d.ts +30 -0
  524. package/lib/components/pisellTimeRangeDisplay/components/WeekdayBlock.d.ts +18 -0
  525. package/lib/components/pisellTimeRangeDisplay/components/index.d.ts +8 -0
  526. package/lib/components/pisellTimeRangeDisplay/index.d.ts +3 -0
  527. package/lib/components/pisellTimeRangeDisplay/types.d.ts +137 -0
  528. package/lib/components/pisellTimeRangeDisplay/utils/formatDuration.d.ts +14 -0
  529. package/lib/components/pisellTimeRangeDisplay/utils/index.d.ts +4 -0
  530. package/lib/components/pisellTimeRangeDisplay/utils/parseTimeRange.d.ts +23 -0
  531. package/lib/components/pisellUrl/PisellUrl.less +120 -11
  532. package/lib/components/pisellUrl/PisellUrl.stories.js +1 -1
  533. package/lib/components/pisellUrl/index.d.ts +3 -1
  534. package/lib/components/pisellUrl/index.js +10 -2
  535. package/lib/components/pisellVHFix/index.d.ts +13 -0
  536. package/lib/components/pisellVHFix/index.js +56 -0
  537. package/lib/components/pisellVHFix/index.less +10 -0
  538. package/lib/components/productCard/cartSkuCard/components/Gift/index.d.ts +4 -0
  539. package/lib/components/productCard/cartSkuCard/components/Gift/index.js +1 -1
  540. package/lib/components/productCard/cartSkuCard/components/Gift/types.d.ts +29 -0
  541. package/lib/components/productCard/cartSkuCard/components/Promotion/index.d.ts +6 -0
  542. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +36 -0
  543. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +7 -1
  544. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +1 -1
  545. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +11 -0
  546. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +8 -0
  547. package/lib/components/productCard/cartSkuCard/components/timeRange/index.js +1 -0
  548. package/lib/components/productCard/cartSkuCard/index.d.ts +10 -0
  549. package/lib/components/productCard/cartSkuCard/index.js +5 -1
  550. package/lib/components/productCard/cartSkuCard/locales.d.ts +178 -0
  551. package/lib/components/productCard/cartSkuCard/locales.js +8 -2
  552. package/lib/components/productCard/components/Header/EditButton/index.d.ts +3 -0
  553. package/lib/components/productCard/locales.d.ts +138 -0
  554. package/lib/components/productCard/status.d.ts +32 -0
  555. package/lib/components/productCard/types.d.ts +95 -0
  556. package/lib/components/productCard/utils.d.ts +33 -0
  557. package/lib/components/select/index.less +18 -2
  558. package/lib/components/sort/index.js +13 -3
  559. package/lib/components/sort/types.d.ts +20 -1
  560. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  561. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  562. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  563. package/lib/components/table/Table/utils.d.ts +1 -1
  564. package/lib/components/translation/index.d.ts +17 -0
  565. package/lib/components/translation/utils.d.ts +9 -0
  566. package/lib/components/virtualInput/BaseVirtualInput/index.less +2 -2
  567. package/lib/components/virtualInput/index.d.ts +5 -0
  568. package/lib/components/virtualInput/index.js +7 -1
  569. package/lib/components/walletCard/index.d.ts +79 -0
  570. package/lib/hooks/useThemeTokens.d.ts +7 -0
  571. package/lib/hooks/useThemeTokens.js +40 -0
  572. package/lib/index.d.ts +235 -0
  573. package/lib/index.js +14 -8
  574. package/lib/locales/en-US.d.ts +384 -0
  575. package/lib/locales/en-US.js +43 -2
  576. package/lib/locales/index.d.ts +1 -0
  577. package/lib/locales/index.js +2 -2
  578. package/lib/locales/ja.d.ts +348 -0
  579. package/lib/locales/ja.js +13 -1
  580. package/lib/locales/pt.d.ts +348 -0
  581. package/lib/locales/pt.js +12 -1
  582. package/lib/locales/zh-CN.d.ts +379 -0
  583. package/lib/locales/zh-CN.js +47 -6
  584. package/lib/locales/zh-TW.d.ts +379 -0
  585. package/lib/locales/zh-TW.js +47 -6
  586. package/lib/theme/tokens.d.ts +22 -0
  587. package/lib/utils/index.d.ts +1 -1
  588. package/lib/utils/platform.d.ts +1 -1
  589. package/lib/utils/tagColor.d.ts +7 -0
  590. package/lib/utils/tagColor.js +60 -0
  591. package/lowcode/_utils/defaultSchema.ts +95 -30
  592. package/lowcode/data-source-form/utils.ts +68 -4
  593. package/package.json +3 -3
@@ -0,0 +1,21 @@
1
+ import type { Dayjs } from 'dayjs';
2
+ import type { DateFormatConfig } from '../types';
3
+ /**
4
+ * 格式化日期
5
+ * @param date dayjs 日期对象
6
+ * @param config 日期格式配置
7
+ * @returns 格式化后的日期字符串
8
+ *
9
+ * @example
10
+ * // 英文环境
11
+ * formatDate(dayjs(), { order: 'YMD', shortMonth: true, showYear: true })
12
+ * // => "2026-Mar-21"
13
+ *
14
+ * // 中文环境
15
+ * formatDate(dayjs(), { order: 'YMD', showChineseUnit: true, showYear: true })
16
+ * // => "2026年3月21日"
17
+ *
18
+ * formatDate(dayjs(), { order: 'MDY', shortMonth: false, showYear: true })
19
+ * // => "March 21, 2026"
20
+ */
21
+ export declare function formatDate(date: Dayjs, config?: DateFormatConfig): string;
@@ -0,0 +1,17 @@
1
+ import type { Dayjs } from 'dayjs';
2
+ import type { DateFormatConfig, WeekdayFormatConfig } from '../types';
3
+ /**
4
+ * 获取「日期部分」的展示文案(相对日内置在 datetime)
5
+ * - 若开启 showRelativeDay 且日期为今天/昨天/明天,返回相对日文案(如「今天」「Yesterday」)
6
+ * - 否则返回「星期, 日期」格式(用于时间区间跨天等场景)
7
+ *
8
+ * 供 PisellDateTimeDisplay、PisellTimeRangeDisplay 等统一使用,相对时间逻辑只在此处维护
9
+ */
10
+ export declare function getDatePartDisplay(params: {
11
+ date: Dayjs;
12
+ dateFormat?: DateFormatConfig;
13
+ weekdayFormat?: WeekdayFormatConfig;
14
+ referenceDate: Dayjs;
15
+ /** 覆盖日期格式(如跨天时的 order: 'DMY', shortMonth: true) */
16
+ dateFormatOverride?: Partial<DateFormatConfig>;
17
+ }): string;
@@ -0,0 +1,30 @@
1
+ import type { Dayjs } from 'dayjs';
2
+ import type { WeekdayFormatConfig } from '../types';
3
+ /**
4
+ * 格式化星期
5
+ * @param weekday dayjs 日期对象
6
+ * @param config 星期格式配置
7
+ * @returns 格式化后的星期字符串
8
+ *
9
+ * @example
10
+ * // 英文环境
11
+ * formatWeekday(dayjs(), { full: false, singleLetter: false })
12
+ * // => "Sat"
13
+ *
14
+ * formatWeekday(dayjs(), { full: true })
15
+ * // => "Saturday"
16
+ *
17
+ * formatWeekday(dayjs(), { singleLetter: true })
18
+ * // => "S"
19
+ *
20
+ * // 中文环境
21
+ * formatWeekday(dayjs(), { full: false, singleLetter: false })
22
+ * // => "周六"
23
+ *
24
+ * formatWeekday(dayjs(), { full: true })
25
+ * // => "星期六"
26
+ *
27
+ * formatWeekday(dayjs(), { singleLetter: true })
28
+ * // => "六"
29
+ */
30
+ export declare function formatWeekday(weekday: Dayjs, config?: WeekdayFormatConfig): string;
@@ -0,0 +1,7 @@
1
+ export { formatTime } from './formatTime';
2
+ export { formatDate } from './formatDate';
3
+ export { formatWeekday } from './formatWeekday';
4
+ export { getDatePartDisplay } from './formatDateOrRelative';
5
+ export { getRefreshInterval } from './getRefreshInterval';
6
+ export { getRelativeDay, getRelativeDayLabel, type RelativeDay, } from './relativeDay';
7
+ export { normalizeLocale, isChinese, getDayjsLocale, } from './localeUtils';
@@ -0,0 +1,22 @@
1
+ /**
2
+ * 标准化 locale 代码
3
+ * @param locale 原始 locale 代码
4
+ * @returns 标准化后的 locale 代码(小写,用于 dayjs)
5
+ * @example 'zh-CN' -> 'zh-cn', 'en' -> 'en'
6
+ */
7
+ export declare function normalizeLocale(locale: string): string;
8
+ /**
9
+ * 判断是否为中文环境
10
+ * @param locale locale 代码
11
+ * @returns 是否为中文
12
+ * @example isChinese('zh-CN') -> true, isChinese('zh-HK') -> true, isChinese('en') -> false
13
+ */
14
+ export declare function isChinese(locale: string): boolean;
15
+ /**
16
+ * 获取 dayjs 兼容的 locale 代码
17
+ * 未传 locale 时:优先 materials 当前语言(globalConfig / umi_locale),若为默认 en-US 则用 @pisell/utils getLocale
18
+ * @param locale 原始 locale 代码(可选)
19
+ * @returns dayjs 兼容的 locale 代码(与已加载的 zh-cn、en 对齐)
20
+ * @example 'zh-CN' -> 'zh-cn', 'en-US' -> 'en'
21
+ */
22
+ export declare function getDayjsLocale(locale?: string): string;
@@ -24,6 +24,7 @@ __export(localeUtils_exports, {
24
24
  normalizeLocale: () => normalizeLocale
25
25
  });
26
26
  module.exports = __toCommonJS(localeUtils_exports);
27
+ var import_utils = require("@pisell/utils");
27
28
  var import_locale = require("../../../utils/locale");
28
29
  function normalizeLocale(locale) {
29
30
  return locale.toLowerCase();
@@ -32,11 +33,18 @@ function isChinese(locale) {
32
33
  const normalizedLocale = normalizeLocale(locale);
33
34
  return normalizedLocale.startsWith("zh");
34
35
  }
36
+ function toDayjsLoadedLocale(normalized) {
37
+ if (normalized.startsWith("en")) return "en";
38
+ return normalized;
39
+ }
35
40
  function getDayjsLocale(locale) {
36
41
  if (!locale) {
37
- return normalizeLocale((0, import_locale.getCurrentLocale)());
42
+ const fromMaterials = (0, import_locale.getCurrentLocale)();
43
+ const fromUtils = typeof import_utils.locales.getLocale === "function" ? import_utils.locales.getLocale() : void 0;
44
+ const raw = (fromMaterials && fromMaterials !== "en-US" ? fromMaterials : void 0) || (typeof fromUtils === "string" && fromUtils ? fromUtils : void 0) || fromMaterials;
45
+ return toDayjsLoadedLocale(normalizeLocale(raw));
38
46
  }
39
- return normalizeLocale(locale);
47
+ return toDayjsLoadedLocale(normalizeLocale(locale));
40
48
  }
41
49
  // Annotate the CommonJS export names for ESM import in node:
42
50
  0 && (module.exports = {
@@ -0,0 +1,24 @@
1
+ import type { Dayjs } from 'dayjs';
2
+ export declare type RelativeDay = 'today' | 'yesterday' | 'tomorrow';
3
+ /**
4
+ * 判断日期相对于参考日期是今天、昨天还是明天
5
+ *
6
+ * @param date 要展示的日期
7
+ * @param reference 参考日期(通常为「当前」dayjs())
8
+ * @returns 'today' | 'yesterday' | 'tomorrow' | null
9
+ *
10
+ * @example
11
+ * getRelativeDay(dayjs(), dayjs()) // => 'today'
12
+ * getRelativeDay(dayjs().add(1,'day'), dayjs()) // => 'tomorrow'
13
+ * getRelativeDay(dayjs().subtract(1,'day'), dayjs()) // => 'yesterday'
14
+ */
15
+ export declare function getRelativeDay(date: Dayjs, reference: Dayjs): RelativeDay | null;
16
+ /**
17
+ * 根据 locale 返回相对日期的展示文案
18
+ * 未传 locale 时使用 getDayjsLocale()(与 locales.getLocale 同源)
19
+ *
20
+ * @param day 'today' | 'yesterday' | 'tomorrow'
21
+ * @param locale dayjs locale,如 'zh-cn'、'en'
22
+ * @returns 如 '今天'、'Today'
23
+ */
24
+ export declare function getRelativeDayLabel(day: RelativeDay, locale?: string): string;
@@ -44,7 +44,8 @@ function getRelativeDay(date, reference) {
44
44
  return null;
45
45
  }
46
46
  function getRelativeDayLabel(day, locale) {
47
- const isZh = locale ? (0, import_localeUtils.isChinese)(locale) : false;
47
+ const resolvedLocale = locale ?? (0, import_localeUtils.getDayjsLocale)();
48
+ const isZh = (0, import_localeUtils.isChinese)(resolvedLocale);
48
49
  return isZh ? LABELS_ZH[day] : LABELS_EN[day];
49
50
  }
50
51
  // Annotate the CommonJS export names for ESM import in node:
@@ -1,31 +1,129 @@
1
1
  /**
2
2
  * PisellEmail 组件样式
3
+ * 基于 Figma 设计规范,与 SingleLineText 设计体系一致
3
4
  */
4
5
 
5
6
  .pisell-email {
6
7
  &-edit {
8
+ position: relative;
7
9
  width: 100%;
8
10
 
9
- // 错误提示样式
10
- &-error {
11
- margin-top: 4px;
12
- font-size: 12px;
13
- color: #ff4d4f;
14
- line-height: 1.5;
11
+ // 仅对 affix-wrapper 设边框,避免与内层 input 双边框(Figma 设计规范)
12
+ .pisell-lowcode-input-affix-wrapper {
13
+ font-size: 16px !important;
14
+ line-height: 24px !important;
15
+ border-radius: 8px !important;
16
+ border: 1px solid #d0d5dd !important; // Gray/300
17
+ padding: 0 !important;
18
+ height: 48px !important;
19
+ color: #101828 !important; // Gray/900
20
+ background-color: #ffffff !important;
21
+
22
+ &:focus,
23
+ &:focus-within {
24
+ border-color: #d6bbfb !important; // Primary/300
25
+ box-shadow: 0 0 0 4px #f4ebff !important; // Primary/100
26
+ outline: none !important;
27
+ }
28
+
29
+ &:hover:not(:focus):not(:focus-within):not([disabled]) {
30
+ border-color: #b692f6 !important; // Primary/400
31
+ }
32
+
33
+ &[disabled],
34
+ &.pisell-lowcode-input-disabled {
35
+ background-color: #f9fafb !important; // Gray/50
36
+ color: #98a2b3 !important; // Gray/400
37
+ border-color: #d0d5dd !important;
38
+ cursor: not-allowed !important;
39
+ }
15
40
  }
41
+
42
+ // 内层 input(无边框,由 wrapper 统一描边)
43
+ .pisell-lowcode-input-affix-wrapper .pisell-lowcode-input {
44
+ &::placeholder {
45
+ color: #667085 !important; // Gray/500
46
+ }
47
+ }
48
+
49
+ // 带前缀(邮箱图标)的 Input 容器
50
+ .pisell-lowcode-input-affix-wrapper {
51
+
52
+ .pisell-lowcode-input-prefix {
53
+ margin-right: 8px;
54
+ margin-left: 16px;
55
+ color: #667085; // Gray/500
56
+ font-size: 16px;
57
+ }
58
+
59
+ .pisell-lowcode-input-suffix {
60
+ margin-left: 8px;
61
+ margin-right: 16px;
62
+ color: #667085;
63
+ font-size: 16px;
64
+ }
65
+
66
+ .pisell-lowcode-input {
67
+ padding: 12px 0 !important;
68
+ border: none !important;
69
+ box-shadow: none !important;
70
+
71
+ &:focus {
72
+ box-shadow: none !important;
73
+ }
74
+ }
75
+ }
76
+
77
+ // 清空按钮
78
+ .pisell-lowcode-input-clear-icon {
79
+ color: #667085 !important;
80
+ font-size: 14px !important;
81
+
82
+ &:hover {
83
+ color: #344054 !important; // Gray/700
84
+ }
85
+ }
86
+
87
+ // 错误状态
88
+ .pisell-lowcode-input-status-error,
89
+ .pisell-lowcode-input-affix-wrapper-status-error {
90
+ border-color: #fda29b !important; // Error/300
91
+
92
+ &:focus,
93
+ &:focus-within {
94
+ border-color: #f97066 !important; // Error/400
95
+ box-shadow: 0 0 0 4px #fee4e2 !important; // Error/100
96
+ }
97
+
98
+ &:hover:not(:focus):not(:focus-within) {
99
+ border-color: #f97066 !important; // Error/400
100
+ }
101
+ }
102
+ }
103
+
104
+ // 错误提示(与设计体系一致)
105
+ &-edit-error {
106
+ margin-top: 4px;
107
+ font-size: 12px;
108
+ color: #d92d20; // Error/600
109
+ line-height: 1.5;
110
+ animation: pisell-email-fadeIn 0.3s ease-in-out;
16
111
  }
17
112
 
18
113
  &-read {
19
114
  display: inline-flex;
20
115
  align-items: center;
21
116
 
22
- // 链接样式
23
117
  .pisell-lowcode-typography-link {
24
118
  cursor: pointer;
25
- transition: all 0.3s;
119
+ transition: color 0.2s ease-in-out;
26
120
 
27
121
  &:hover {
28
- opacity: 0.8;
122
+ color: #6d48c4 !important;
123
+ }
124
+
125
+ &:active {
126
+ color: #5f3da8 !important;
29
127
  }
30
128
  }
31
129
  }
@@ -40,7 +138,7 @@
40
138
  }
41
139
  }
42
140
 
43
- // AutoComplete 下拉样式优化
141
+ // AutoComplete 下拉样式
44
142
  .pisell-email-autocomplete-dropdown {
45
143
  .pisell-lowcode-select-item-option-content {
46
144
  display: flex;
@@ -48,3 +146,14 @@
48
146
  gap: 8px;
49
147
  }
50
148
  }
149
+
150
+ @keyframes pisell-email-fadeIn {
151
+ from {
152
+ opacity: 0;
153
+ transform: translateY(-4px);
154
+ }
155
+ to {
156
+ opacity: 1;
157
+ transform: translateY(0);
158
+ }
159
+ }
@@ -60,7 +60,7 @@ module.exports = __toCommonJS(PisellEmail_stories_exports);
60
60
  var import_PisellEmail = require("./PisellEmail");
61
61
  var import_react = __toESM(require("react"));
62
62
  var meta = {
63
- title: "表单/PisellEmail",
63
+ title: "表单/表单组件/PisellEmail",
64
64
  component: import_PisellEmail.PisellEmail,
65
65
  parameters: {
66
66
  layout: "centered",
@@ -1,5 +1,7 @@
1
1
  /**
2
2
  * PisellEmail 组件导出文件
3
3
  */
4
- export { PisellEmail, default } from './PisellEmail';
4
+ import PisellEmail from './PisellEmail';
5
+ export { PisellEmail };
6
+ export default PisellEmail;
5
7
  export type { PisellEmailProps, MailtoOptions } from './types';
@@ -29,11 +29,19 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
29
29
  // src/components/pisellEmail/index.tsx
30
30
  var pisellEmail_exports = {};
31
31
  __export(pisellEmail_exports, {
32
- PisellEmail: () => import_PisellEmail.PisellEmail,
33
- default: () => import_PisellEmail.default
32
+ PisellEmail: () => import_PisellEmail.default,
33
+ default: () => pisellEmail_default
34
34
  });
35
35
  module.exports = __toCommonJS(pisellEmail_exports);
36
+ var import_locales = require("../../locales");
36
37
  var import_PisellEmail = __toESM(require("./PisellEmail"));
38
+ import_PisellEmail.default.SortOptions = {
39
+ getSortItems: (fieldKey) => [
40
+ { key: `${fieldKey}:asc`, label: (0, import_locales.getText)("sort-a-z") },
41
+ { key: `${fieldKey}:desc`, label: (0, import_locales.getText)("sort-z-a") }
42
+ ]
43
+ };
44
+ var pisellEmail_default = import_PisellEmail.default;
37
45
  // Annotate the CommonJS export names for ESM import in node:
38
46
  0 && (module.exports = {
39
47
  PisellEmail
@@ -43,38 +43,109 @@ var PisellFilter = (props) => {
43
43
  hiddenQuickFilter = true,
44
44
  hiddenOtherFilter = false,
45
45
  hasForm = true,
46
+ onChange,
46
47
  ...otherProps
47
48
  } = props;
48
- const [value, setValue] = (0, import_react.useState)({});
49
+ const [form] = import_antd.Form.useForm();
50
+ const [value, setValue] = (0, import_react.useState)(() => ({
51
+ quickFilter: (originalValue == null ? void 0 : originalValue.quickFilter) || [],
52
+ otherFilter: (originalValue == null ? void 0 : originalValue.otherFilter) || [],
53
+ values: (originalValue == null ? void 0 : originalValue.values) || {}
54
+ }));
55
+ const isInternalChange = (0, import_react.useRef)(false);
49
56
  (0, import_react.useEffect)(() => {
50
- setValue({
51
- quickFilter: (originalValue == null ? void 0 : originalValue.quickFilter) || [],
52
- otherFilter: (originalValue == null ? void 0 : originalValue.otherFilter) || []
53
- });
54
- }, [originalValue]);
57
+ setValue((prev) => ({
58
+ quickFilter: (originalValue == null ? void 0 : originalValue.quickFilter) ?? prev.quickFilter,
59
+ otherFilter: (originalValue == null ? void 0 : originalValue.otherFilter) ?? prev.otherFilter,
60
+ values: (originalValue == null ? void 0 : originalValue.values) ?? prev.values ?? {}
61
+ }));
62
+ }, [
63
+ originalValue == null ? void 0 : originalValue.quickFilter,
64
+ originalValue == null ? void 0 : originalValue.otherFilter,
65
+ originalValue == null ? void 0 : originalValue.values
66
+ ]);
67
+ (0, import_react.useEffect)(() => {
68
+ if (!hasForm || typeof (originalValue == null ? void 0 : originalValue.values) !== "object") return;
69
+ if (isInternalChange.current) {
70
+ isInternalChange.current = false;
71
+ return;
72
+ }
73
+ const nextValues = (originalValue == null ? void 0 : originalValue.values) ?? {};
74
+ if (Object.keys(nextValues).length === 0) {
75
+ const current = form.getFieldsValue(true);
76
+ const cleared = Object.keys(current).reduce(
77
+ (acc, k) => {
78
+ acc[k] = void 0;
79
+ return acc;
80
+ },
81
+ {}
82
+ );
83
+ if (Object.keys(cleared).length > 0) {
84
+ form.setFieldsValue(cleared);
85
+ }
86
+ } else {
87
+ form.setFieldsValue(nextValues);
88
+ }
89
+ }, [hasForm, form, originalValue == null ? void 0 : originalValue.values]);
90
+ const handleChange = (0, import_react.useCallback)(
91
+ (newVal) => {
92
+ setValue((prev) => ({
93
+ ...prev,
94
+ ...newVal,
95
+ values: newVal.values ?? prev.values
96
+ }));
97
+ onChange == null ? void 0 : onChange(newVal);
98
+ },
99
+ [onChange]
100
+ );
101
+ const handleFormValuesChange = (0, import_react.useCallback)(
102
+ (_, allValues) => {
103
+ if (typeof allValues !== "object" || allValues === null) return;
104
+ isInternalChange.current = true;
105
+ const mergedValues = { ...value.values, ...allValues };
106
+ const next = {
107
+ quickFilter: value.quickFilter,
108
+ otherFilter: value.otherFilter,
109
+ values: mergedValues
110
+ };
111
+ setValue(next);
112
+ onChange == null ? void 0 : onChange(next);
113
+ },
114
+ [value.quickFilter, value.otherFilter, value.values, onChange]
115
+ );
55
116
  const content = (0, import_react.useMemo)(() => {
56
117
  return /* @__PURE__ */ import_react.default.createElement(
57
118
  import_FilterButton.default,
58
119
  {
59
120
  ...otherProps,
121
+ onChange: handleChange,
60
122
  value: {
61
123
  quickFilter: value.quickFilter,
62
124
  otherFilter: value.otherFilter
63
125
  },
64
126
  hiddenQuickFilter,
65
127
  hiddenOtherFilter,
66
- onChange: setValue,
67
128
  quickFilterMaxLength: quickFilterMaxLength || 100,
68
129
  formFiltersPrefix: formFiltersPrefix || ""
69
130
  }
70
131
  );
71
- }, [value, hiddenQuickFilter, hiddenOtherFilter, quickFilterMaxLength, formFiltersPrefix]);
132
+ }, [
133
+ value,
134
+ hiddenQuickFilter,
135
+ hiddenOtherFilter,
136
+ quickFilterMaxLength,
137
+ formFiltersPrefix,
138
+ handleChange
139
+ ]);
72
140
  if (hasForm) {
73
141
  return /* @__PURE__ */ import_react.default.createElement(
74
142
  import_antd.Form,
75
143
  {
144
+ form,
76
145
  size: "large",
77
146
  layout: "vertical",
147
+ initialValues: value.values,
148
+ onValuesChange: handleFormValuesChange,
78
149
  ...otherProps
79
150
  },
80
151
  content
@@ -0,0 +1,45 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { PisellFind } from './index';
3
+ /**
4
+ * PisellFind 组件 Storybook
5
+ * 基于 PisellLookup 的组件内查找优化版本
6
+ */
7
+ declare const meta: Meta<typeof PisellFind>;
8
+ export default meta;
9
+ declare type Story = StoryObj<typeof PisellFind>;
10
+ /**
11
+ * 基础示例 - 列表查找
12
+ */
13
+ export declare const Basic: Story;
14
+ /**
15
+ * 表格查找
16
+ */
17
+ export declare const TableFind: Story;
18
+ /**
19
+ * Input 模式查找
20
+ */
21
+ export declare const InputMode: Story;
22
+ /**
23
+ * 使用 Ref 控制
24
+ */
25
+ export declare const WithRef: Story;
26
+ /**
27
+ * 显示确认按钮
28
+ */
29
+ export declare const WithConfirmButton: Story;
30
+ /**
31
+ * 关闭历史记录
32
+ */
33
+ export declare const NoHistory: Story;
34
+ /**
35
+ * 多字段搜索
36
+ */
37
+ export declare const MultiFieldSearch: Story;
38
+ /**
39
+ * Drawer 模式
40
+ */
41
+ export declare const DrawerMode: Story;
42
+ /**
43
+ * Playground - 自由配置
44
+ */
45
+ export declare const Playground: Story;
@@ -0,0 +1,40 @@
1
+ import React from 'react';
2
+ import type { PisellLookupProps, PisellLookupRef } from '../pisellLookup';
3
+ /**
4
+ * PisellFind Props
5
+ * 继承 PisellLookup 的所有 Props
6
+ */
7
+ export declare type PisellFindProps = PisellLookupProps;
8
+ /**
9
+ * PisellFind Ref
10
+ * 继承 PisellLookup 的所有 Ref 方法
11
+ */
12
+ export declare type PisellFindRef = PisellLookupRef;
13
+ /**
14
+ * PisellFind 组件
15
+ * 基于 PisellLookup 的组件内查找优化版本
16
+ *
17
+ * 核心特点:
18
+ * - 默认使用 button 触发器
19
+ * - 默认不显示确认按钮(输入即搜索)
20
+ * - 默认开启搜索历史
21
+ * - 默认不展示结果区(结果在页面其他位置展示)
22
+ *
23
+ * @example
24
+ * ```tsx
25
+ * // 基础用法
26
+ * <PisellFind
27
+ * onSearch={(keyword) => {
28
+ * const filtered = data.filter(item => item.name.includes(keyword));
29
+ * setFilteredData(filtered);
30
+ * }}
31
+ * />
32
+ *
33
+ * // 切换为 Input 模式
34
+ * <PisellFind
35
+ * triggerType="input"
36
+ * onSearch={(keyword) => filterData(keyword)}
37
+ * />
38
+ * ```
39
+ */
40
+ export declare const PisellFind: React.ForwardRefExoticComponent<PisellLookupProps & React.RefAttributes<PisellLookupRef>>;
@@ -33,14 +33,23 @@ __export(pisellFind_exports, {
33
33
  });
34
34
  module.exports = __toCommonJS(pisellFind_exports);
35
35
  var import_react = __toESM(require("react"));
36
+ var import_utils = require("@pisell/utils");
36
37
  var import_pisellLookup = require("../pisellLookup");
37
38
  var import_locales = require("../../locales");
38
39
  var PisellFind = (0, import_react.forwardRef)((props, ref) => {
39
40
  const {
40
41
  // 提取需要设置默认值的 Props
41
42
  triggerType = "button",
42
- buttonText = (0, import_locales.getText)("pisell-find-button-text"),
43
- placeholder = (0, import_locales.getText)("pisell-find-placeholder"),
43
+ buttonText = (() => {
44
+ const key = "pisell2.recordBoard.toolbar.find";
45
+ const u = import_utils.locales.getText(key);
46
+ return u && u !== key ? u : (0, import_locales.getText)(key) || (0, import_locales.getText)("pisell-find-button-text");
47
+ })(),
48
+ placeholder = (() => {
49
+ const key = "pisell2.recordBoard.toolbar.findPlaceholder";
50
+ const u = import_utils.locales.getText(key);
51
+ return u && u !== key ? u : (0, import_locales.getText)(key) || (0, import_locales.getText)("pisell-find-placeholder");
52
+ })(),
44
53
  showConfirmButton = false,
45
54
  showHistory = true,
46
55
  historyKey = "pisell_find_history",
@@ -14,6 +14,7 @@
14
14
  /**
15
15
  * 工具栏行通用样式
16
16
  */
17
+
17
18
  &-row {
18
19
  display: flex;
19
20
  flex-direction: row;
@@ -21,8 +22,10 @@
21
22
  gap: 12px;
22
23
  align-self: stretch;
23
24
  }
25
+
24
26
  .toolbar-row {
25
27
  justify-content: space-between;
28
+
26
29
  &-left {
27
30
  display: flex;
28
31
  flex-direction: row;
@@ -40,3 +43,23 @@
40
43
  }
41
44
  }
42
45
  }
46
+
47
+ /**
48
+ * 手机版宽度:左侧区域与右侧区域换行,避免挤在一行
49
+ */
50
+ @media (max-width: 768px) {
51
+ .pisell-grid-pro-toolbar .toolbar-row {
52
+ flex-wrap: wrap;
53
+ }
54
+
55
+ .pisell-grid-pro-toolbar .toolbar-row-left {
56
+ flex: 1 1 100%;
57
+ min-width: 0;
58
+ }
59
+
60
+ .pisell-grid-pro-toolbar .toolbar-row-right {
61
+ flex: 1 1 100%;
62
+ min-width: 0;
63
+ justify-content: flex-start;
64
+ }
65
+ }