@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,9 @@
1
+ export declare const SUPPORTED_LANGUAGES: readonly ["original", "en", "zh-CN", "zh-HK", "ja", "pt"];
2
+ export declare const DEFAULT_MAX_COUNT = 9;
3
+ export declare const DEFAULT_UID = "-1";
4
+ export declare const MEDIA_TYPES: {
5
+ readonly VIDEO: "video/";
6
+ readonly AUDIO: "audio/";
7
+ };
8
+ export declare const IMAGE_QUALITY = 0.8;
9
+ export declare const IMAGE_TYPE = "image/jpeg";
@@ -0,0 +1,18 @@
1
+ import { RcFile, UploadFile } from 'antd/es/upload/interface';
2
+ import type { MediaMetadata, FileCountValidation, ValidationResult, MultilingualFile, FileListOptions, UploadValue, SingleMultilingualValue } from './types';
3
+ export declare const generateUid: () => string;
4
+ export declare const getSuffix: (name: string) => string;
5
+ export declare const getPointSuffix: (name: string) => string;
6
+ export declare const getFileType: (name: string) => string;
7
+ export declare const getFileName: (url: string) => string;
8
+ export declare const checkFileCount: ({ multiple, minCount, maxCount, valueLength, }: FileCountValidation) => ValidationResult;
9
+ export declare const getMediaMetadata: (file: RcFile) => Promise<MediaMetadata | null>;
10
+ export declare const genFileListByString: (value: string) => UploadFile[];
11
+ export declare const createMultilingualData: (value: string) => SingleMultilingualValue;
12
+ export declare const createMultilingualFileList: (value: string) => Record<string, UploadFile<any>[]>;
13
+ export declare const getDefaultFileList: (value: UploadValue | undefined, options: FileListOptions) => MultilingualFile[];
14
+ export declare const getFileMetadataParams: (file: RcFile & {
15
+ metadata?: MediaMetadata;
16
+ }) => Record<string, any>;
17
+ export declare const isValueEqual: (value: any, fileListValue: any) => boolean;
18
+ export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
@@ -40,6 +40,7 @@ declare const formFieldMap: {
40
40
  extraParams?: Record<string, any> | undefined;
41
41
  } & {
42
42
  dataSource?: any;
43
+ extraParams?: Record<string, any> | undefined;
43
44
  }) => JSX.Element;
44
45
  FormItemInputNumber: import("react").FC<any>;
45
46
  FormItemPercent: import("react").FC<any>;
@@ -59,13 +60,11 @@ declare const formFieldMap: {
59
60
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
60
61
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
62
  };
62
- declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
63
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
63
64
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
64
65
  } & {
65
66
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
66
- }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
67
- onChange: (value: string) => void;
68
- } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
67
+ }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
69
68
  JSON: import("react").FC<any>;
70
69
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
71
70
  TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
@@ -85,7 +84,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
85
84
  name?: string | undefined;
86
85
  fieldKey?: string | undefined;
87
86
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
88
- }) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
87
+ }) | (import("react").FC<{}> & {
89
88
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
90
89
  } & {
91
90
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -97,5 +96,8 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
97
96
  extraParams?: Record<string, any> | undefined;
98
97
  } & {
99
98
  dataSource?: any;
100
- }) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
99
+ extraParams?: Record<string, any> | undefined;
100
+ }) => JSX.Element) | import("react").FC<any> | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
101
+ onChange: (value: string) => void;
102
+ } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
101
103
  export { getFieldComponent, formFieldMap };
@@ -104,7 +104,8 @@ var useActions = ({
104
104
  baseUrl: baseUrlMap[dataSourceKey] || (options == null ? void 0 : options.baseUrl),
105
105
  params,
106
106
  headers,
107
- body
107
+ body,
108
+ dataSourceKey
108
109
  });
109
110
  if (["pisell2-api", "mypisell-api"].includes(dataSourceKey)) {
110
111
  if ("mypisell-api" === dataSourceKey && designMode === "design") {
@@ -208,7 +209,10 @@ var useActions = ({
208
209
  return [];
209
210
  }
210
211
  const listApi = genCustomApi(actions == null ? void 0 : actions.list);
211
- return formatListResult(await listApi(formatParams));
212
+ return formatListResult(await listApi({
213
+ ...formatParams,
214
+ ...(extraParams == null ? void 0 : extraParams.list) || {}
215
+ }));
212
216
  }
213
217
  if (!name) return {};
214
218
  return formatListResult(
@@ -0,0 +1,7 @@
1
+ declare const useFormSettingParams: () => {
2
+ businessCode: string;
3
+ channelCode: string;
4
+ scope: string;
5
+ target: string | undefined;
6
+ };
7
+ export default useFormSettingParams;
@@ -0,0 +1,63 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/dataSourceComponents/hooks/useFormSettingParams.ts
30
+ var useFormSettingParams_exports = {};
31
+ __export(useFormSettingParams_exports, {
32
+ default: () => useFormSettingParams_default
33
+ });
34
+ module.exports = __toCommonJS(useFormSettingParams_exports);
35
+ var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext"));
36
+ var import_urlUtils = require("../dataSourceForm/urlUtils");
37
+ var scopeMap = {
38
+ saas: "saas",
39
+ org: "organization",
40
+ biz: "business",
41
+ channel: "channel",
42
+ board: "board"
43
+ };
44
+ var useFormSettingParams = () => {
45
+ var _a, _b;
46
+ const context = (0, import_useEngineContext.default)();
47
+ const { getApp } = (_a = context.appHelper) == null ? void 0 : _a.utils;
48
+ const app = getApp == null ? void 0 : getApp();
49
+ const params = (_b = app == null ? void 0 : app.history) == null ? void 0 : _b.useParams();
50
+ const queryParams = (0, import_urlUtils.getUrlParams)();
51
+ const businessCode = (queryParams == null ? void 0 : queryParams.biz) || (queryParams == null ? void 0 : queryParams.business_code);
52
+ const channelCode = queryParams == null ? void 0 : queryParams.channel;
53
+ const scope = scopeMap[params == null ? void 0 : params.scope];
54
+ const originTarget = businessCode && channelCode ? `${businessCode}+${channelCode}` : businessCode || channelCode;
55
+ const target = ["organization", "saas"].includes(scope) ? void 0 : originTarget;
56
+ return {
57
+ businessCode,
58
+ channelCode,
59
+ scope,
60
+ target
61
+ };
62
+ };
63
+ var useFormSettingParams_default = useFormSettingParams;
@@ -99,11 +99,18 @@ var Dropdown = (props) => {
99
99
  quickFilter: (0, import_locales.getText)("table-action-filter-quick-filter-tip"),
100
100
  otherFilter: (0, import_locales.getText)("table-action-filter-other-filter-tip")
101
101
  };
102
+ const getTooltipTitle = (0, import_react.useCallback)(
103
+ (id) => {
104
+ const fn = tooltipMap[id];
105
+ return typeof fn === "function" ? fn(quickFilterMaxLength) : fn;
106
+ },
107
+ [quickFilterMaxLength]
108
+ );
102
109
  const renderContainer = (0, import_react.useCallback)(
103
110
  ({ children, ref, id }) => {
104
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "filter-dropdown-container-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "filter-dropdown-container-title-wrap" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "filter-dropdown-container-title" }, titleMap[id]), /* @__PURE__ */ import_react.default.createElement(import_antd.Tooltip, { title: tooltipMap[id](quickFilterMaxLength) }, /* @__PURE__ */ import_react.default.createElement(import_HelpCircle.default, { className: "filter-dropdown-container-icon-help" }))), /* @__PURE__ */ import_react.default.createElement("div", { ref, className: "filter-dropdown-container-filter-wrap" }, children));
111
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "filter-dropdown-container-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "filter-dropdown-container-title-wrap" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "filter-dropdown-container-title" }, titleMap[id]), /* @__PURE__ */ import_react.default.createElement(import_antd.Tooltip, { title: getTooltipTitle(id) }, /* @__PURE__ */ import_react.default.createElement(import_HelpCircle.default, { className: "filter-dropdown-container-icon-help" }))), /* @__PURE__ */ import_react.default.createElement("div", { ref, className: "filter-dropdown-container-filter-wrap" }, children));
105
112
  },
106
- [quickFilterMaxLength]
113
+ [quickFilterMaxLength, getTooltipTitle]
107
114
  );
108
115
  return /* @__PURE__ */ import_react.default.createElement("div", { className: "filter-dropdown-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "filter-dropdown-wrap-content" }, /* @__PURE__ */ import_react.default.createElement(
109
116
  import_MultipleContainersSortList.default,
@@ -35,9 +35,17 @@ module.exports = __toCommonJS(FilterButton_exports);
35
35
  var import_react = __toESM(require("react"));
36
36
  var import_antd = require("antd");
37
37
  var import_FilterLines = __toESM(require("@pisell/icon/es/FilterLines"));
38
+ var import_utils = require("@pisell/utils");
38
39
  var import_Dropdown = __toESM(require("../Dropdown"));
39
40
  var import_locales = require("../../../../locales");
40
41
  var import_platform = require("../../../../utils/platform");
42
+ function getFilterButtonLabel(buttonText) {
43
+ if (buttonText != null && buttonText !== "") return buttonText;
44
+ const key = "pisell2.recordBoard.toolbar.filter";
45
+ const fromUtils = import_utils.locales.getText(key);
46
+ if (fromUtils && fromUtils !== key) return fromUtils;
47
+ return (0, import_locales.getText)(key) || (0, import_locales.getText)("table-action-filter-button");
48
+ }
41
49
  var Filter = ({
42
50
  value,
43
51
  hiddenQuickFilter,
@@ -46,7 +54,10 @@ var Filter = ({
46
54
  quickFilterMaxLength,
47
55
  formFiltersPrefix,
48
56
  renderItem,
49
- placement
57
+ placement,
58
+ size = "large",
59
+ buttonClassName,
60
+ buttonText
50
61
  }) => {
51
62
  const ref = (0, import_react.useRef)(null);
52
63
  const [open, setOpen] = (0, import_react.useState)(false);
@@ -100,9 +111,9 @@ var Filter = ({
100
111
  }
101
112
  setOpen(visible);
102
113
  },
103
- placement
114
+ placement: placement ?? "bottom"
104
115
  },
105
- /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { icon: /* @__PURE__ */ import_react.default.createElement(import_FilterLines.default, null), size: "large" }, isMobileBool ? null : (0, import_locales.getText)("table-action-filter-button"))
116
+ /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { className: buttonClassName, icon: /* @__PURE__ */ import_react.default.createElement(import_FilterLines.default, null), size }, isMobileBool ? null : getFilterButtonLabel(buttonText))
106
117
  ));
107
118
  };
108
119
  var FilterButton_default = Filter;
@@ -3,6 +3,8 @@ import { FilterItemProps } from '../../types';
3
3
  export declare type FilterValueType = {
4
4
  quickFilter: FilterItemProps[];
5
5
  otherFilter: FilterItemProps[];
6
+ /** 筛选项表单值,字段名 -> 值,与 Form 的 values 一致 */
7
+ values?: Record<string, any>;
6
8
  };
7
9
  export declare type FilterListProps = {
8
10
  value?: FilterValueType;
@@ -13,4 +15,10 @@ export declare type FilterListProps = {
13
15
  formFiltersPrefix: string;
14
16
  renderItem?: (item: any, otherProps?: any) => React.ReactNode;
15
17
  placement?: 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom';
18
+ /** 筛选按钮尺寸,与 antd Button size 一致 */
19
+ size?: 'small' | 'middle' | 'large';
20
+ /** 筛选触发按钮的 className,用于定制样式(如与设计系统对齐) */
21
+ buttonClassName?: string;
22
+ /** 筛选按钮文案,不传则使用 materials 内置多语言 */
23
+ buttonText?: string;
16
24
  };
@@ -0,0 +1,21 @@
1
+ /**
2
+ * 筛选项中 singleSelect/multipleSelect 的异步 options 包装器。
3
+ * 当列配置传入 getOptions(同步或异步)时,先解析再渲染 PisellSingleSelect/PisellMultipleSelect。
4
+ */
5
+ import React from 'react';
6
+ export declare type GetOptionsFn = (() => {
7
+ label: string;
8
+ value: any;
9
+ }[]) | (() => Promise<{
10
+ label: string;
11
+ value: any;
12
+ }[]>);
13
+ export interface AsyncOptionsSelectWrapperProps {
14
+ getOptions: GetOptionsFn;
15
+ fieldType: 'singleSelect' | 'multipleSelect';
16
+ value?: any;
17
+ onChange?: (value: any, option?: any) => void;
18
+ [key: string]: any;
19
+ }
20
+ declare const AsyncOptionsSelectWrapper: React.FC<AsyncOptionsSelectWrapperProps>;
21
+ export default AsyncOptionsSelectWrapper;
@@ -0,0 +1,69 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.tsx
30
+ var AsyncOptionsSelectWrapper_exports = {};
31
+ __export(AsyncOptionsSelectWrapper_exports, {
32
+ default: () => AsyncOptionsSelectWrapper_default
33
+ });
34
+ module.exports = __toCommonJS(AsyncOptionsSelectWrapper_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_antd = require("antd");
37
+ var import_pisellSingleSelect = require("../../../pisellSingleSelect");
38
+ var import_pisellMultipleSelect = require("../../../pisellMultipleSelect");
39
+ function normalizeOptions(list) {
40
+ if (!Array.isArray(list)) return [];
41
+ return list.map(
42
+ (item) => item && typeof item === "object" && "label" in item && "value" in item ? { label: String(item.label), value: item.value } : { label: String(item), value: item }
43
+ );
44
+ }
45
+ var AsyncOptionsSelectWrapper = (props) => {
46
+ const { getOptions, fieldType, value, onChange, ...rest } = props;
47
+ const [options, setOptions] = (0, import_react.useState)([]);
48
+ const [loading, setLoading] = (0, import_react.useState)(true);
49
+ (0, import_react.useEffect)(() => {
50
+ setLoading(true);
51
+ const result = getOptions();
52
+ const resolved = Promise.resolve(result);
53
+ resolved.then((list) => {
54
+ setOptions(normalizeOptions(list));
55
+ }).finally(() => {
56
+ setLoading(false);
57
+ });
58
+ }, [getOptions]);
59
+ const commonProps = { ...rest, options, mode: "edit" };
60
+ if (loading) {
61
+ return /* @__PURE__ */ import_react.default.createElement(import_antd.Spin, { spinning: true, size: "small" }, /* @__PURE__ */ import_react.default.createElement("span", { style: { display: "inline-block", minWidth: 120, minHeight: 32 } }));
62
+ }
63
+ if (fieldType === "multipleSelect") {
64
+ return /* @__PURE__ */ import_react.default.createElement(import_pisellMultipleSelect.PisellMultipleSelect, { ...commonProps, value, onChange });
65
+ }
66
+ return /* @__PURE__ */ import_react.default.createElement(import_pisellSingleSelect.PisellSingleSelect, { ...commonProps, value, onChange });
67
+ };
68
+ AsyncOptionsSelectWrapper.displayName = "AsyncOptionsSelectWrapper";
69
+ var AsyncOptionsSelectWrapper_default = AsyncOptionsSelectWrapper;
@@ -1,5 +1,5 @@
1
- import React from "react";
2
- import { FilterItemProps } from "../../types";
3
- import "./index.less";
1
+ import React from 'react';
2
+ import { FilterItemProps } from '../../types';
3
+ import './index.less';
4
4
  declare const FilterItem: React.FC<FilterItemProps>;
5
5
  export default FilterItem;
@@ -34,14 +34,143 @@ __export(FilterItem_exports, {
34
34
  module.exports = __toCommonJS(FilterItem_exports);
35
35
  var import_react = __toESM(require("react"));
36
36
  var import_antd = require("antd");
37
+ var import_dayjs = __toESM(require("dayjs"));
37
38
  var import_fields = require("../../../table/Table/fields");
39
+ var import_pisellSingleLineText = require("../../../pisellSingleLineText");
40
+ var import_pisellLongText = require("../../../pisellLongText");
41
+ var import_pisellEmail = require("../../../pisellEmail");
42
+ var import_pisellPhone = require("../../../pisellPhone");
43
+ var import_pisellUrl = require("../../../pisellUrl");
44
+ var import_pisellNumber = require("../../../pisellNumber");
45
+ var import_pisellCurrency = require("../../../pisellCurrency");
46
+ var import_pisellPercent = require("../../../pisellPercent");
47
+ var import_pisellRating = require("../../../pisellRating");
48
+ var import_pisellSingleSelect = require("../../../pisellSingleSelect");
49
+ var import_pisellMultipleSelect = require("../../../pisellMultipleSelect");
50
+ var import_locales = require("../../../../locales");
51
+ var import_AsyncOptionsSelectWrapper = __toESM(require("./AsyncOptionsSelectWrapper"));
38
52
  var import_index = require("./index.less");
53
+ var { RangePicker } = import_antd.DatePicker;
54
+ var PISELL_FIELD_TYPE_MAP = {
55
+ singleLineText: import_pisellSingleLineText.PisellSingleLineText,
56
+ longText: import_pisellLongText.PisellLongText,
57
+ email: import_pisellEmail.PisellEmail,
58
+ phone: import_pisellPhone.PisellPhone,
59
+ url: import_pisellUrl.PisellUrl,
60
+ number: import_pisellNumber.PisellNumber,
61
+ currency: import_pisellCurrency.PisellCurrency,
62
+ percent: import_pisellPercent.PisellPercent,
63
+ rating: import_pisellRating.PisellRating,
64
+ singleSelect: import_pisellSingleSelect.PisellSingleSelect,
65
+ multipleSelect: import_pisellMultipleSelect.PisellMultipleSelect
66
+ };
67
+ var FILTER_TYPE_TO_FIELD = {
68
+ single: "select",
69
+ input: "text",
70
+ datePicker: "date",
71
+ rangePicker: "rangePicker",
72
+ search: "search"
73
+ };
74
+ function toRangePickerValue(val) {
75
+ if (val == null) return null;
76
+ if (Array.isArray(val) && val.length >= 2) {
77
+ const start = val[0] ? import_dayjs.default.isDayjs(val[0]) ? val[0] : (0, import_dayjs.default)(val[0]) : null;
78
+ const end = val[1] ? import_dayjs.default.isDayjs(val[1]) ? val[1] : (0, import_dayjs.default)(val[1]) : null;
79
+ if (start && end) return [start, end];
80
+ }
81
+ return null;
82
+ }
83
+ var AntdRangePickerWithValue = import_react.default.forwardRef(function AntdRangePickerWithValue2({ value, onChange, ...rest }, ref) {
84
+ const normalized = toRangePickerValue(value);
85
+ return /* @__PURE__ */ import_react.default.createElement(
86
+ RangePicker,
87
+ {
88
+ ...rest,
89
+ ref,
90
+ placeholder: [
91
+ (0, import_locales.getText)("table-action-range-picker-placeholder-start"),
92
+ (0, import_locales.getText)("table-action-range-picker-placeholder-end")
93
+ ],
94
+ value: normalized,
95
+ onChange: (dates) => onChange == null ? void 0 : onChange(dates ?? void 0)
96
+ }
97
+ );
98
+ });
39
99
  var FilterItem = (props) => {
40
- const { label, type, name, other, isHidden } = props;
100
+ const { label, type, name, other, isHidden, props: itemProps } = props;
101
+ const fieldTypeFromColumn = other == null ? void 0 : other.fieldType;
102
+ const PisellCom = fieldTypeFromColumn ? PISELL_FIELD_TYPE_MAP[fieldTypeFromColumn] : void 0;
103
+ if (type === "custom") {
104
+ const CustomComponent = other == null ? void 0 : other.component;
105
+ if (!CustomComponent) return null;
106
+ const componentProps2 = { ...itemProps || {}, ...other || {} };
107
+ delete componentProps2.component;
108
+ return /* @__PURE__ */ import_react.default.createElement(
109
+ import_antd.Form.Item,
110
+ {
111
+ label,
112
+ name,
113
+ hidden: isHidden,
114
+ ...(other == null ? void 0 : other.formItemProps) || {}
115
+ },
116
+ /* @__PURE__ */ import_react.default.createElement(CustomComponent, { ...componentProps2 })
117
+ );
118
+ }
119
+ if (type === "rangePickerNew") {
120
+ const componentProps2 = {
121
+ ...itemProps || {},
122
+ ...other || {},
123
+ prefixCls: "pisell-lowcode"
124
+ };
125
+ return /* @__PURE__ */ import_react.default.createElement(
126
+ import_antd.Form.Item,
127
+ {
128
+ label,
129
+ name,
130
+ ...(other == null ? void 0 : other.formItemProps) || {},
131
+ hidden: isHidden,
132
+ className: "pisell-lowcode-range-picker-wrap"
133
+ },
134
+ /* @__PURE__ */ import_react.default.createElement(AntdRangePickerWithValue, { ...componentProps2 })
135
+ );
136
+ }
41
137
  const Com = (0, import_react.useMemo)(() => {
42
138
  var _a;
43
- return (_a = import_fields.fieldMaps[type]) == null ? void 0 : _a.edit;
44
- }, [type]);
139
+ if (PisellCom) return PisellCom;
140
+ const fieldType = FILTER_TYPE_TO_FIELD[type] ?? type;
141
+ return (_a = import_fields.fieldMaps[fieldType]) == null ? void 0 : _a.edit;
142
+ }, [type, PisellCom]);
143
+ if (!Com) {
144
+ return null;
145
+ }
146
+ const isPisell = Boolean(PisellCom);
147
+ const componentProps = {
148
+ ...itemProps || {},
149
+ ...other || {},
150
+ ...isPisell ? { mode: "edit" } : {}
151
+ };
152
+ const getOptions = componentProps.getOptions ?? (other == null ? void 0 : other.getOptions);
153
+ const useAsyncOptions = isPisell && typeof getOptions === "function" && (fieldTypeFromColumn === "singleSelect" || fieldTypeFromColumn === "multipleSelect");
154
+ if (useAsyncOptions && fieldTypeFromColumn) {
155
+ const { getOptions: _go, ...restProps } = componentProps;
156
+ return /* @__PURE__ */ import_react.default.createElement(
157
+ import_antd.Form.Item,
158
+ {
159
+ label,
160
+ name,
161
+ ...(other == null ? void 0 : other.formItemProps) || {},
162
+ hidden: isHidden
163
+ },
164
+ /* @__PURE__ */ import_react.default.createElement(
165
+ import_AsyncOptionsSelectWrapper.default,
166
+ {
167
+ getOptions,
168
+ fieldType: fieldTypeFromColumn,
169
+ ...restProps
170
+ }
171
+ )
172
+ );
173
+ }
45
174
  return /* @__PURE__ */ import_react.default.createElement(
46
175
  import_antd.Form.Item,
47
176
  {
@@ -50,7 +179,7 @@ var FilterItem = (props) => {
50
179
  ...(other == null ? void 0 : other.formItemProps) || {},
51
180
  hidden: isHidden
52
181
  },
53
- /* @__PURE__ */ import_react.default.createElement(Com, { ...other })
182
+ /* @__PURE__ */ import_react.default.createElement(Com, { ...componentProps })
54
183
  );
55
184
  };
56
185
  var FilterItem_default = FilterItem;
@@ -0,0 +1,90 @@
1
+ /**
2
+ * FilterItem 样式
3
+ * RangePicker 按 Figma Pisell 2.0 Component Library (node-id=13586-90520)
4
+ * 使用 pisell-lowcode- 前缀(RangePicker 传入 prefixCls="pisell-lowcode")
5
+ * - Border: Gray/300 #D0D5DD, 1px
6
+ * - Background: Base/White #FFFFFF
7
+ * - Text/Icon: Gray/500 #667085
8
+ * - Typography: Text md/Regular - Inter 16px, weight 400, line-height 24px
9
+ * - Shadow: Shadow/xs 0 1px 2px rgba(16, 24, 40, 0.05)
10
+ * - Border radius: 8px
11
+ */
12
+
13
+ .pisell-lowcode-range-picker-wrap {
14
+ //width: 257px;
15
+ width: 100%;
16
+
17
+ .pisell-lowcode-range {
18
+ font-size: 16px;
19
+ font-weight: 400;
20
+ line-height: 24px;
21
+ letter-spacing: 0;
22
+ color: #667085;
23
+ border-radius: 8px;
24
+ border: 1px solid #d0d5dd;
25
+ background: #ffffff;
26
+ box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
27
+ width: 100%;
28
+ height: 48px;
29
+ min-height: 48px;
30
+ padding: 6px 11px;
31
+
32
+ .pisell-lowcode-picker-input {
33
+ height: 36px;
34
+
35
+ > input {
36
+ font-family: inherit;
37
+ font-size: 16px;
38
+ font-weight: 400;
39
+ line-height: 24px;
40
+ color: #667085;
41
+
42
+ &::placeholder {
43
+ color: #667085;
44
+ opacity: 0.6;
45
+ }
46
+ }
47
+ }
48
+
49
+ .pisell-lowcode-picker-separator {
50
+ color: #667085;
51
+ }
52
+
53
+ .pisell-lowcode-picker-suffix,
54
+ .pisell-lowcode-picker-clear {
55
+ color: #667085;
56
+ }
57
+
58
+ &:hover {
59
+ border-color: #d0d5dd;
60
+ }
61
+
62
+ &.pisell-lowcode-picker-focused {
63
+ border-color: #d0d5dd;
64
+ box-shadow: 0 0 0 2px rgba(16, 24, 40, 0.05);
65
+ }
66
+
67
+ &.pisell-lowcode-picker-large {
68
+ height: 48px;
69
+ min-height: 48px;
70
+ padding: 6px 11px;
71
+
72
+ .pisell-lowcode-picker-input {
73
+ height: 36px;
74
+ }
75
+ }
76
+
77
+ &.pisell-lowcode-picker-small {
78
+ min-height: 32px;
79
+ padding: 2px 7px;
80
+
81
+ .pisell-lowcode-picker-input {
82
+ height: 24px;
83
+ }
84
+
85
+ .pisell-lowcode-picker-input > input {
86
+ font-size: 14px;
87
+ }
88
+ }
89
+ }
90
+ }
@@ -19,12 +19,14 @@ export declare type FilterType = {
19
19
  };
20
20
  /**
21
21
  * 筛选列表项配置
22
+ * - type 为 single/input/rangePicker 等时使用内置或映射组件
23
+ * - type 为 "custom" 时使用 other.component,组件接收 value/onChange(由 Form 注入)
22
24
  */
23
25
  export declare type FilterItemProps = {
24
- type: "single" | "input" | "datePicker" | "rangePicker" | "search";
26
+ type: "single" | "input" | "datePicker" | "rangePicker" | "rangePickerNew" | "search" | "custom";
25
27
  name?: string | string[];
26
28
  key: string;
27
- props: object;
29
+ props?: object;
28
30
  label?: string;
29
31
  sort?: boolean;
30
32
  localFilter?: boolean;
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ export interface MediaProps {
3
+ __designMode?: 'design' | undefined;
4
+ value?: string | string[];
5
+ onChange?: (value: string | string[]) => void;
6
+ multiple?: boolean;
7
+ maxCount?: number;
8
+ accept?: string;
9
+ disabled?: boolean;
10
+ className?: string;
11
+ style?: React.CSSProperties;
12
+ placeholder?: string;
13
+ showUploadList?: boolean;
14
+ listType?: 'text' | 'picture' | 'picture-card';
15
+ }
16
+ import './index.less';
17
+ declare const Media: React.ForwardRefExoticComponent<MediaProps & React.RefAttributes<HTMLDivElement>>;
18
+ export default Media;