@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,316 @@
1
+ import type { ReactNode, Key, ComponentType } from 'react';
2
+ import type { TableProps } from 'antd';
3
+ /**
4
+ * 布局类型:一种 layout 对应一种「视图的集合」
5
+ * - grid: 搜索 + 表格 + 分页
6
+ * - card: 搜索 + 卡片列表 + 分页
7
+ * 后续可扩展 list、kanban 等
8
+ */
9
+ export declare type RecordBoardLayoutType = 'grid' | 'card';
10
+ /**
11
+ * 列字段类型:对应 Pisell 表单组件,传入列 type 时用该组件自动渲染列(只读)与筛选项(编辑)
12
+ */
13
+ export declare type RecordBoardFieldType = 'singleLineText' | 'longText' | 'email' | 'phone' | 'url' | 'number' | 'currency' | 'percent' | 'rating' | 'singleSelect' | 'multipleSelect' | 'dateTime';
14
+ /** 无 type 时筛选项可传入自定义组件,需支持 value / onChange 以接入 Form */
15
+ export declare type RecordBoardFilterComponentProps = {
16
+ value?: any;
17
+ onChange?: (value: any) => void;
18
+ [key: string]: any;
19
+ };
20
+ /** 选项格式,用于 getOptions / options;color 用于只读态 Tag 展示 */
21
+ export declare type RecordBoardOptionItem = {
22
+ label: string;
23
+ value: any;
24
+ /** 只读态 Tag 颜色,如 '#e6f7ff' 或 antd 预设 'blue' */
25
+ color?: string;
26
+ };
27
+ /** 同步或异步返回选项列表,singleSelect/multipleSelect 的 fieldProps.getOptions 或 filter.getOptions 使用 */
28
+ export declare type RecordBoardGetOptions = (() => RecordBoardOptionItem[]) | (() => Promise<RecordBoardOptionItem[]>);
29
+ /** 列筛选配置:不传列 type 时使用。可配置 type + options/props,或传入 component(接收 value/onChange)。 */
30
+ export interface RecordBoardColumnFilterConfig {
31
+ type?: 'single' | 'input' | 'datePicker' | 'rangePicker' | 'rangePickerNew' | 'search';
32
+ label?: string;
33
+ options?: RecordBoardOptionItem[];
34
+ /** 同步或异步获取选项,与 options 二选一;支持 singleSelect/multipleSelect 及无 type 时 type:'single' */
35
+ getOptions?: RecordBoardGetOptions;
36
+ props?: Record<string, any>;
37
+ /** 放在快速筛选(true)还是高级筛选(false) */
38
+ quickFilter?: boolean;
39
+ /** 无 type 时可用:自定义筛选组件,由 Form 注入 value/onChange */
40
+ component?: ComponentType<RecordBoardFilterComponentProps>;
41
+ }
42
+ /**
43
+ * RecordBoard 列类型扩展(与 antd Table Column 兼容,仅增加可选字段)。
44
+ *
45
+ * 有 type(如 singleLineText)时:
46
+ * - 表格:自动用对应 Pisell 组件只读渲染;传入 render 则优先使用(覆盖)。
47
+ * - 筛选:自动用对应组件编辑态;传入 filter(type 或 component)则优先使用(覆盖)。
48
+ * - 排序:自动从组件 SortOptions 派生;传入 sort 则优先使用(覆盖)。
49
+ *
50
+ * 无 type 时:
51
+ * - 表格:无 render 则纯文本;可自定义 render。
52
+ * - 筛选:需配置 filterable + filter(type 或 component,component 需 value/onChange)。
53
+ * - 排序:需配置 sortable + sort(type 或 getSortItems)。
54
+ */
55
+ export interface RecordBoardColumnType<RecordType = any> {
56
+ title?: ReactNode;
57
+ dataIndex?: string | string[];
58
+ key?: string;
59
+ width?: number | string;
60
+ align?: 'left' | 'right' | 'center';
61
+ fixed?: 'left' | 'right' | boolean;
62
+ ellipsis?: boolean;
63
+ /** 列渲染;无 type 时必靠此或默认纯文本;有 type 时可选,传入则覆盖自动派生 */
64
+ render?: (value: any, record: RecordType, index: number) => ReactNode;
65
+ /** 其他 antd 列属性 */
66
+ [key: string]: any;
67
+ /** 字段类型;传入则表格/筛选/排序自动派生,可被 render/filter/sort 覆盖 */
68
+ type?: RecordBoardFieldType;
69
+ /**
70
+ * 传给 Pisell 组件的额外 props(type 存在且未用 filter/render 覆盖时生效)。
71
+ * singleSelect/multipleSelect 时支持 options 或 getOptions(同步/异步返回选项列表)。
72
+ */
73
+ fieldProps?: Record<string, any>;
74
+ /** 是否参与筛选;false 时不生成筛项;有 type 时默认 true */
75
+ filterable?: boolean;
76
+ /** 筛选配置;无 type 时必传 type 或 component;有 type 时可选,传入则覆盖自动派生 */
77
+ filter?: RecordBoardColumnFilterConfig;
78
+ /** 是否参与排序;false 时不生成排序项;有 type 时默认 true */
79
+ sortable?: boolean;
80
+ /**
81
+ * 排序配置;无 type 时需 sortable + sort;有 type 时可选,传入则覆盖自动派生。
82
+ * - type:内置排序子项(string/number/option 等)。
83
+ * - getSortItems:(fieldKey) => [{ key, label }]。
84
+ */
85
+ sort?: {
86
+ type?: 'date' | 'string' | 'number' | 'option';
87
+ label?: string;
88
+ isHidden?: boolean;
89
+ /** 自定义排序子项,优先于 type;fieldKey 为列 key/dataIndex */
90
+ getSortItems?: (fieldKey: string) => Array<{
91
+ key: string;
92
+ label: string;
93
+ }>;
94
+ };
95
+ /** 默认隐藏该列,与 grid.defaultHiddenColumnKeys 合并参与初始化列显隐 */
96
+ hidden?: boolean;
97
+ /**
98
+ * 当开启 grid.collapseUniformColumns 时,用此函数从 (value, record) 得到用于比较的值;
99
+ * 返回 string 或 number 时参与全等比较,返回 null/undefined 则该列不参与折叠。
100
+ * 未传则用 dataIndex 取值;与 render 类似,便于从复杂数据中抽取值再判断是否全同。
101
+ */
102
+ uniformCompare?: (value: any, record: any) => string | number | null | undefined;
103
+ /**
104
+ * 当开启 grid.collapseUniformColumns 时,为 false 则该列即使全列同值/全空也不折叠、不进入总结区;默认 true。
105
+ */
106
+ collapseWhenUniform?: boolean;
107
+ }
108
+ /**
109
+ * 分页状态(与容器内部一致)
110
+ */
111
+ export interface RecordBoardPaginationState {
112
+ pageNumber: number;
113
+ pageSize: number;
114
+ }
115
+ /**
116
+ * 列表请求结果(与 dataSource / useRequest 等对齐)
117
+ */
118
+ export interface RecordBoardListResult {
119
+ list: any[];
120
+ count?: number;
121
+ total?: number;
122
+ }
123
+ /**
124
+ * RecordBoard 容器 Context 值
125
+ * 与具体 layout 类型无关,所有 layout 共用同一套数据与操作
126
+ */
127
+ export interface RecordBoardContextValue {
128
+ /** 当前列表数据 */
129
+ data: any[];
130
+ /** 加载态 */
131
+ loading: boolean;
132
+ /** 总数(用于分页) */
133
+ total: number;
134
+ /** 分页状态 */
135
+ pagination: RecordBoardPaginationState;
136
+ /** 分页变更 */
137
+ onPageChange: (pageNumber: number, pageSize: number) => void;
138
+ /** 搜索/筛选参数 */
139
+ searchParams: Record<string, any>;
140
+ /** 触发搜索(会重置到第一页) */
141
+ onSearch: (params: Record<string, any>) => void;
142
+ /** 重置搜索 */
143
+ onReset?: () => void;
144
+ /** 当前布局类型,供子组件按需做差异化 */
145
+ layoutType: RecordBoardLayoutType;
146
+ /** 多选:当前选中的 key 列表 */
147
+ selectedKeys: Key[];
148
+ /** 多选:当前选中的行数据 */
149
+ selectedRows: any[];
150
+ /** 多选:选择变更回调(表格/卡片勾选、BatchActionBar 全选/清空/反选时调用) */
151
+ onSelectionChange: (keys: Key[], rows: any[]) => void;
152
+ /** 行主键,用于多选与列表渲染,如 'id' 或 (record) => record.id */
153
+ rowKey?: string | ((record: any) => Key);
154
+ /**
155
+ * 列显示隐藏状态(仅影响表格/卡片列展示,不影响 filter/sort 配置)。
156
+ * key 为列 key/dataIndex,value 为是否显示;未出现的列默认显示。
157
+ */
158
+ columnVisibility?: Record<string, boolean>;
159
+ /** 列显示隐藏变更回调 */
160
+ onColumnVisibilityChange?: (visibility: Record<string, boolean>) => void;
161
+ /** 列 key 顺序(用于列设置弹层拖拽排序),未设置时按 grid.columns 顺序 */
162
+ columnOrder?: string[] | null;
163
+ /** 列顺序变更回调(拖拽排序后) */
164
+ onColumnOrderChange?: (columnKeys: string[]) => void;
165
+ /** 各子组件透传 props,由 Provider 注入 */
166
+ childComponentProps?: RecordBoardChildComponentProps;
167
+ /** 是否占满父容器高度,供 ShellFrame 做弹性布局(内容区纯 CSS 滚动 + 表头 sticky;scroll.autoCalc 时用测量高度) */
168
+ fillHeight?: boolean;
169
+ /** 内容区滚动容器高度(fillHeight 且 grid.scroll.autoCalc 时由 ShellFrame 测量),供 Grid 计算 scroll.y */
170
+ scrollAreaHeight?: number | null;
171
+ /** 设置内容区滚动容器高度(由 ShellFrame 测量组件调用) */
172
+ setScrollAreaHeight?: (height: number | null) => void;
173
+ /** 点击重置时递增,供 ToolBar 给 PisellFilter 设 key 以强制重挂载,清空弹窗内表单 */
174
+ filterResetKey?: number;
175
+ /** 递增 filterResetKey,由 ToolBarReset 在重置时调用 */
176
+ setFilterResetKey?: (fn: (prev: number) => number) => void;
177
+ }
178
+ /**
179
+ * 各 layout 下子组件的可选透传配置(类似 ChildComponentProps)
180
+ */
181
+ /**
182
+ * BatchActionBar 透传配置,与 PisellBatchActionBar 的 props 对齐。
183
+ * 具体类型见 PisellBatchActionBarProps,此处仅做透传用。
184
+ */
185
+ export declare type RecordBoardBatchActionBarProps = Record<string, any>;
186
+ /** Filter 透传配置,与 PisellFilter 的 props 对齐 */
187
+ export declare type RecordBoardFilterProps = Record<string, any>;
188
+ /**
189
+ * ToolBar 透传配置。
190
+ * - 继承 PisellToolBar 的 slots:topLeft、topRight、bottomLeft、bottomRight、tabs。
191
+ * - search:默认在工具栏内渲染 PisellFind;为对象时透传为 PisellFind 的 props;为 false 时不渲染搜索。
192
+ * - filter:默认在工具栏右侧渲染 PisellFilter;为对象时透传 PisellFilter props;为 false 时不渲染。筛选值绑定 searchParams.filter,变更触发 onSearch。
193
+ */
194
+ export interface RecordBoardToolBarProps {
195
+ className?: string;
196
+ style?: React.CSSProperties;
197
+ tabs?: React.ReactNode;
198
+ topLeft?: React.ReactNode;
199
+ topRight?: React.ReactNode;
200
+ bottomLeft?: React.ReactNode;
201
+ bottomRight?: React.ReactNode;
202
+ /** 在 ToolBar 内渲染搜索:默认 PisellFind;对象透传 PisellFind props;false 不渲染 */
203
+ search?: boolean | RecordBoardSearchProps;
204
+ /** 在 ToolBar 右侧渲染筛选:默认 PisellFilter;对象透传 PisellFilter props;false 不渲染。值存于 searchParams.filter */
205
+ filter?: boolean | RecordBoardFilterProps;
206
+ /** 在 ToolBar 内、筛选左侧渲染排序:默认 Sort;对象可传 list、placement 等;false 不渲染。值存于 searchParams.sort */
207
+ sort?: boolean | Record<string, any>;
208
+ /**
209
+ * 在 ToolBar 左侧展示内联快速筛选(替代 Filter 弹层内的 quickFilter)。
210
+ * 为 true 时使用 columns 派生的 quickFilter 列表;为对象时可传 filterList、formFiltersPrefix、size 等。
211
+ * 启用后建议对 filter 传 hiddenQuickFilter: true,弹层内仅保留高级筛选。
212
+ */
213
+ quickFilter?: boolean | Record<string, any>;
214
+ /** 列显示隐藏设置入口;默认 true(有 grid.columns 时显示);false 时不渲染 */
215
+ columnSetting?: boolean;
216
+ }
217
+ /** Search 透传配置,与 PisellFind 的 props 对齐 */
218
+ export declare type RecordBoardSearchProps = Record<string, any>;
219
+ /**
220
+ * Grid 布局透传配置,对应 RecordBoardGridView 的 props(useRecordBoardContext('grid') 会将其合并到 context)。
221
+ * 基于 antd TableProps,省略由 context 注入或组件自管的项(dataSource、loading、pagination、columns、scroll、size、rowSelection)。
222
+ * 多选用 selectedKeys/selectedRows/onSelectionChange;其余 Table props(如 onRow、onHeaderRow、expandable、rowClassName、summary)透传。
223
+ */
224
+ export declare type RecordBoardGridProps = {
225
+ /** 列配置;ToolBar 据此派生筛选与排序,ColumnSetting 据此做列显示隐藏 */
226
+ columns?: RecordBoardColumnType[];
227
+ /** 默认隐藏的列 key 列表(对应 columns 的 key 或 dataIndex),用于初始化列显隐状态 */
228
+ defaultHiddenColumnKeys?: string[];
229
+ /**
230
+ * 当前页某列全部同值或全部为空时:隐藏该列,并在表格上方展示总结区(列名 + 统一值/空数据)。
231
+ * 比较规则:列可配置 uniformCompare(value, record) 返回用于比较的 string/number;否则用 dataIndex 取值;仅 string/number 参与比较,undefined/null 不参与。
232
+ * 默认 true;传 false 可关闭。
233
+ */
234
+ collapseUniformColumns?: boolean;
235
+ /**
236
+ * 表格滚动配置,对齐 materials Table useGenScroll。
237
+ * - x / y:同 antd Table scroll。
238
+ * - autoCalc:为 true 时根据内容区高度自动计算 scroll.y(需 fillHeight),表头固定、表体滚动。
239
+ * - scrollToFirstRowOnChange:翻页后是否滚动到第一行。
240
+ */
241
+ scroll?: {
242
+ x?: number | string;
243
+ y?: number | string;
244
+ autoCalc?: boolean;
245
+ scrollToFirstRowOnChange?: boolean;
246
+ };
247
+ /** 表格尺寸 */
248
+ size?: 'small' | 'middle' | 'default';
249
+ /** 当前选中的行 key 列表(多选) */
250
+ selectedKeys?: Key[];
251
+ /** 当前选中的行数据(多选) */
252
+ selectedRows?: unknown[];
253
+ /** 多选变更回调 */
254
+ onSelectionChange?: (keys: Key[], rows: unknown[]) => void;
255
+ /** 多选列配置:fixed、columnWidth 等,与 selectedKeys/onSelectionChange 合并为 Table rowSelection */
256
+ rowSelection?: Partial<Omit<NonNullable<TableProps<unknown>['rowSelection']>, 'selectedRowKeys' | 'onChange'>>;
257
+ } & Omit<TableProps<unknown>, 'dataSource' | 'loading' | 'pagination' | 'columns' | 'scroll' | 'size' | 'rowSelection'>;
258
+ export interface RecordBoardChildComponentProps {
259
+ /** 搜索配置,透传给 PisellFind;关键词绑定 searchParams.keyword */
260
+ search?: RecordBoardSearchProps;
261
+ /** 工具栏配置,透传给 PisellToolBar;内置搜索会接 context.searchParams/onSearch */
262
+ toolBar?: RecordBoardToolBarProps;
263
+ pagination?: Record<string, any>;
264
+ /** Grid 布局配置:列、滚动、尺寸等,透传给 RecordBoardGridView */
265
+ grid?: RecordBoardGridProps;
266
+ cardList?: Record<string, any>;
267
+ /** 多选操作栏配置,透传给 PisellBatchActionBar */
268
+ batchActionBar?: RecordBoardBatchActionBarProps;
269
+ }
270
+ /**
271
+ * RecordBoard 容器 Props。
272
+ * 仅打散传参:列表/分页/搜索/多选/列显隐、以及 grid/toolBar/search/paginationConfig/batchActionBar/cardList 独立传入。
273
+ */
274
+ export interface RecordBoardProps {
275
+ /** 子节点,一般为某种 Layout 或自定义组合 */
276
+ children?: ReactNode;
277
+ /** 当前使用的布局类型 */
278
+ layoutType?: RecordBoardLayoutType;
279
+ /** 行主键,用于多选与列表 */
280
+ rowKey?: string | ((record: any) => Key);
281
+ /** 当前列表数据 */
282
+ data?: any[];
283
+ /** 加载态 */
284
+ loading?: boolean;
285
+ /** 总数(用于分页) */
286
+ total?: number;
287
+ /** 分页状态 */
288
+ pagination?: RecordBoardPaginationState;
289
+ /** 分页变更 */
290
+ onPageChange?: (pageNumber: number, pageSize: number) => void;
291
+ /** 搜索/筛选参数 */
292
+ searchParams?: Record<string, any>;
293
+ /** 触发搜索(会重置到第一页) */
294
+ onSearch?: (params: Record<string, any>) => void;
295
+ /** 重置搜索 */
296
+ onReset?: () => void;
297
+ /** 列显隐持久化:传入则用 @pisell/utils 的 getComponentStorageKey 规则写入 localStorage;低代码可传 __id */
298
+ columnVisibilityStorageKey?: string;
299
+ /** Grid 配置:列、滚动、尺寸等 */
300
+ grid?: RecordBoardGridProps;
301
+ /** 工具栏配置 */
302
+ toolBar?: RecordBoardToolBarProps;
303
+ /** 搜索配置,透传给 PisellFind */
304
+ search?: RecordBoardSearchProps;
305
+ /** 分页组件透传配置(与 pagination 状态区分,此处为 Pagination 组件 props) */
306
+ paginationConfig?: Record<string, any>;
307
+ /** 多选操作栏配置 */
308
+ batchActionBar?: RecordBoardBatchActionBarProps;
309
+ /** 卡片列表配置 */
310
+ cardList?: Record<string, any>;
311
+ /** 是否启用分页(与 pagination 状态区分) */
312
+ enablePagination?: boolean;
313
+ /** 其他 */
314
+ [key: string]: any;
315
+ }
316
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEvC;;;;;GAKG;AACH,oB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AE,CAAC;IACb,UAAU;IACV,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,WAAW;IACX,UAAU,CAAC,EAAE,0BAA0B,CAAC;IACxC,WAAW;IACX,YAAY,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAG9D,cAAc;IACd,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACnC,oBAAoB;IACpB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IACjD,WAAW;IACX,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAIrB,sFAAsF;IACtF,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,uBAAuB;IACvB,IAAI,CAAC,EAAE,oBAAoB,CAAC;IAC5B,YAAY;IACZ,OAAO,CAAC,EAAE,uBAAuB,CAAC;IAClC,0BAA0B;IAC1B,MAAM,CAAC,EAAE,sBAAsB,CAAC;IAChC,0DAA0D;IAC1D,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACvC,cAAc;IACd,cAAc,CAAC,EAAE,8BAA8B,CAAC;IAChD,aAAa;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAE/B,gCAAgC;IAChC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B,SAAS;IACT,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,41 @@
1
+ import type { RecordBoardColumnType } from '../types';
2
+ import type { FilterValueType } from '../../filter/components/FilterButton/types';
3
+ import type { SortItemProps } from '../../sort/types';
4
+ /** 获取列唯一 key,供列显示隐藏等使用 */
5
+ export declare function getRecordBoardColumnKey(column: RecordBoardColumnType): string;
6
+ export interface UniformColumnSummaryItem {
7
+ columnKey: string;
8
+ title: string;
9
+ type: 'uniform' | 'empty';
10
+ /** 无 render 时的回退展示 */
11
+ displayValue?: string;
12
+ /** 仅用于判断是否相等的值(uniformCompare 的返回值或 dataIndex 取值),不参与 render */
13
+ value?: any;
14
+ /** 表格里该列单元格的值(dataIndex 从 record 取值),传给 render 的与表格单元格一致 */
15
+ cellValue?: any;
16
+ /** 代表行(如首行),供列 render 使用 */
17
+ record?: any;
18
+ }
19
+ /**
20
+ * 根据当前页 data 计算:哪些列「全列同值」或「全空」应隐藏,以及总结区展示项。
21
+ * 仅当 grid.collapseUniformColumns 为 true 时使用。
22
+ */
23
+ export declare function computeUniformColumnSummary(data: any[], columns: RecordBoardColumnType[]): {
24
+ uniformHiddenColumnKeys: string[];
25
+ summaryItems: UniformColumnSummaryItem[];
26
+ };
27
+ /**
28
+ * 处理列配置:对带 type 的列注入基于 Pisell 组件的 render,其余列保持不变。
29
+ * 有 type 时若列上传入了 render 则优先使用(覆盖自动派生)。
30
+ */
31
+ export declare function processColumnsForGrid<RecordType = any>(columns: RecordBoardColumnType<RecordType>[] | undefined): RecordBoardColumnType<RecordType>[];
32
+ /**
33
+ * 从 columns 派生排序列表(SortItemProps[])。
34
+ * 有 type 的列:根据组件 SortOptions(或默认)生成;无 type 的列:根据 sortable + sort 生成。
35
+ */
36
+ export declare function deriveSortFromColumns(columns: RecordBoardColumnType[] | undefined): SortItemProps[];
37
+ /**
38
+ * 从 columns 派生 filter 列表(quickFilter + otherFilter)。
39
+ * 有 type 的列:根据 type + fieldProps 生成筛选项;无 type 的列:根据 filterable + filter 生成。
40
+ */
41
+ export declare function deriveFilterFromColumns(columns: RecordBoardColumnType[] | undefined): FilterValueType;