@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
@@ -19,7 +19,7 @@ import React from 'react';
19
19
  * - 白名单/黑名单域名限制
20
20
  */
21
21
  var meta = {
22
- title: '表单/PisellEmail',
22
+ title: '表单/表单组件/PisellEmail',
23
23
  component: PisellEmail,
24
24
  parameters: {
25
25
  layout: 'centered',
@@ -1,5 +1,7 @@
1
1
  /**
2
2
  * PisellEmail 组件导出文件
3
3
  */
4
- export { PisellEmail, default } from './PisellEmail';
4
+ import PisellEmail from './PisellEmail';
5
+ export { PisellEmail };
6
+ export default PisellEmail;
5
7
  export type { PisellEmailProps, MailtoOptions } from './types';
@@ -2,4 +2,20 @@
2
2
  * PisellEmail 组件导出文件
3
3
  */
4
4
 
5
- export { PisellEmail, default } from "./PisellEmail";
5
+ import { getText } from "../../locales";
6
+ import PisellEmail from "./PisellEmail";
7
+
8
+ /** RecordBoard 列 type 联动排序:内置 A → Z / Z → A */
9
+ PisellEmail.SortOptions = {
10
+ getSortItems: function getSortItems(fieldKey) {
11
+ return [{
12
+ key: "".concat(fieldKey, ":asc"),
13
+ label: getText('sort-a-z')
14
+ }, {
15
+ key: "".concat(fieldKey, ":desc"),
16
+ label: getText('sort-z-a')
17
+ }];
18
+ }
19
+ };
20
+ export { PisellEmail };
21
+ export default PisellEmail;
@@ -1,5 +1,11 @@
1
- var _excluded = ["value", "quickFilterMaxLength", "formFiltersPrefix", "hiddenQuickFilter", "hiddenOtherFilter", "hasForm"];
1
+ var _excluded = ["value", "quickFilterMaxLength", "formFiltersPrefix", "hiddenQuickFilter", "hiddenOtherFilter", "hasForm", "onChange"];
2
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
3
9
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
10
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
5
11
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -8,7 +14,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
8
14
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9
15
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10
16
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
- import React, { useEffect, useState, useMemo } from 'react';
17
+ import React, { useCallback, useEffect, useState, useMemo, useRef } from 'react';
12
18
  import FilterButton from "../filter/components/FilterButton";
13
19
  import { Form } from 'antd';
14
20
  var PisellFilter = function PisellFilter(props) {
@@ -21,34 +27,94 @@ var PisellFilter = function PisellFilter(props) {
21
27
  hiddenOtherFilter = _props$hiddenOtherFil === void 0 ? false : _props$hiddenOtherFil,
22
28
  _props$hasForm = props.hasForm,
23
29
  hasForm = _props$hasForm === void 0 ? true : _props$hasForm,
30
+ onChange = props.onChange,
24
31
  otherProps = _objectWithoutProperties(props, _excluded);
25
- var _useState = useState({}),
32
+ var _Form$useForm = Form.useForm(),
33
+ _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
34
+ form = _Form$useForm2[0];
35
+ var _useState = useState(function () {
36
+ return {
37
+ quickFilter: (originalValue === null || originalValue === void 0 ? void 0 : originalValue.quickFilter) || [],
38
+ otherFilter: (originalValue === null || originalValue === void 0 ? void 0 : originalValue.otherFilter) || [],
39
+ values: (originalValue === null || originalValue === void 0 ? void 0 : originalValue.values) || {}
40
+ };
41
+ }),
26
42
  _useState2 = _slicedToArray(_useState, 2),
27
43
  value = _useState2[0],
28
44
  setValue = _useState2[1];
45
+ var isInternalChange = useRef(false);
29
46
  useEffect(function () {
30
- setValue({
31
- quickFilter: (originalValue === null || originalValue === void 0 ? void 0 : originalValue.quickFilter) || [],
32
- otherFilter: (originalValue === null || originalValue === void 0 ? void 0 : originalValue.otherFilter) || []
47
+ setValue(function (prev) {
48
+ var _originalValue$quickF, _originalValue$otherF, _ref, _originalValue$values;
49
+ return {
50
+ quickFilter: (_originalValue$quickF = originalValue === null || originalValue === void 0 ? void 0 : originalValue.quickFilter) !== null && _originalValue$quickF !== void 0 ? _originalValue$quickF : prev.quickFilter,
51
+ otherFilter: (_originalValue$otherF = originalValue === null || originalValue === void 0 ? void 0 : originalValue.otherFilter) !== null && _originalValue$otherF !== void 0 ? _originalValue$otherF : prev.otherFilter,
52
+ values: (_ref = (_originalValue$values = originalValue === null || originalValue === void 0 ? void 0 : originalValue.values) !== null && _originalValue$values !== void 0 ? _originalValue$values : prev.values) !== null && _ref !== void 0 ? _ref : {}
53
+ };
33
54
  });
34
- }, [originalValue]);
55
+ }, [originalValue === null || originalValue === void 0 ? void 0 : originalValue.quickFilter, originalValue === null || originalValue === void 0 ? void 0 : originalValue.otherFilter, originalValue === null || originalValue === void 0 ? void 0 : originalValue.values]);
56
+ useEffect(function () {
57
+ var _originalValue$values2;
58
+ if (!hasForm || _typeof(originalValue === null || originalValue === void 0 ? void 0 : originalValue.values) !== 'object') return;
59
+ if (isInternalChange.current) {
60
+ isInternalChange.current = false;
61
+ return;
62
+ }
63
+ var nextValues = (_originalValue$values2 = originalValue === null || originalValue === void 0 ? void 0 : originalValue.values) !== null && _originalValue$values2 !== void 0 ? _originalValue$values2 : {};
64
+ if (Object.keys(nextValues).length === 0) {
65
+ var current = form.getFieldsValue(true);
66
+ var cleared = Object.keys(current).reduce(function (acc, k) {
67
+ acc[k] = undefined;
68
+ return acc;
69
+ }, {});
70
+ if (Object.keys(cleared).length > 0) {
71
+ form.setFieldsValue(cleared);
72
+ }
73
+ } else {
74
+ form.setFieldsValue(nextValues);
75
+ }
76
+ }, [hasForm, form, originalValue === null || originalValue === void 0 ? void 0 : originalValue.values]);
77
+ var handleChange = useCallback(function (newVal) {
78
+ setValue(function (prev) {
79
+ var _newVal$values;
80
+ return _objectSpread(_objectSpread(_objectSpread({}, prev), newVal), {}, {
81
+ values: (_newVal$values = newVal.values) !== null && _newVal$values !== void 0 ? _newVal$values : prev.values
82
+ });
83
+ });
84
+ onChange === null || onChange === void 0 || onChange(newVal);
85
+ }, [onChange]);
86
+ var handleFormValuesChange = useCallback(function (_, allValues) {
87
+ if (_typeof(allValues) !== 'object' || allValues === null) return;
88
+ isInternalChange.current = true;
89
+ var mergedValues = _objectSpread(_objectSpread({}, value.values), allValues);
90
+ var next = {
91
+ quickFilter: value.quickFilter,
92
+ otherFilter: value.otherFilter,
93
+ values: mergedValues
94
+ };
95
+ setValue(next);
96
+ onChange === null || onChange === void 0 || onChange(next);
97
+ }, [value.quickFilter, value.otherFilter, value.values, onChange]);
35
98
  var content = useMemo(function () {
36
99
  return /*#__PURE__*/React.createElement(FilterButton, _extends({}, otherProps, {
100
+ onChange: handleChange,
37
101
  value: {
38
102
  quickFilter: value.quickFilter,
39
103
  otherFilter: value.otherFilter
40
104
  },
41
105
  hiddenQuickFilter: hiddenQuickFilter,
42
106
  hiddenOtherFilter: hiddenOtherFilter,
43
- onChange: setValue,
44
107
  quickFilterMaxLength: quickFilterMaxLength || 100,
45
108
  formFiltersPrefix: formFiltersPrefix || ''
46
109
  }));
47
- }, [value, hiddenQuickFilter, hiddenOtherFilter, quickFilterMaxLength, formFiltersPrefix]);
110
+ }, [value, hiddenQuickFilter, hiddenOtherFilter, quickFilterMaxLength, formFiltersPrefix, handleChange]);
48
111
  if (hasForm) {
49
112
  return /*#__PURE__*/React.createElement(Form, _extends({
113
+ form: form,
50
114
  size: "large",
51
- layout: "vertical"
115
+ layout: "vertical",
116
+ initialValues: value.values,
117
+ onValuesChange: handleFormValuesChange
52
118
  }, otherProps), content);
53
119
  }
54
120
  return content;
@@ -0,0 +1,45 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { PisellFind } from './index';
3
+ /**
4
+ * PisellFind 组件 Storybook
5
+ * 基于 PisellLookup 的组件内查找优化版本
6
+ */
7
+ declare const meta: Meta<typeof PisellFind>;
8
+ export default meta;
9
+ declare type Story = StoryObj<typeof PisellFind>;
10
+ /**
11
+ * 基础示例 - 列表查找
12
+ */
13
+ export declare const Basic: Story;
14
+ /**
15
+ * 表格查找
16
+ */
17
+ export declare const TableFind: Story;
18
+ /**
19
+ * Input 模式查找
20
+ */
21
+ export declare const InputMode: Story;
22
+ /**
23
+ * 使用 Ref 控制
24
+ */
25
+ export declare const WithRef: Story;
26
+ /**
27
+ * 显示确认按钮
28
+ */
29
+ export declare const WithConfirmButton: Story;
30
+ /**
31
+ * 关闭历史记录
32
+ */
33
+ export declare const NoHistory: Story;
34
+ /**
35
+ * 多字段搜索
36
+ */
37
+ export declare const MultiFieldSearch: Story;
38
+ /**
39
+ * Drawer 模式
40
+ */
41
+ export declare const DrawerMode: Story;
42
+ /**
43
+ * Playground - 自由配置
44
+ */
45
+ export declare const Playground: Story;
@@ -0,0 +1,40 @@
1
+ import React from 'react';
2
+ import type { PisellLookupProps, PisellLookupRef } from '../pisellLookup';
3
+ /**
4
+ * PisellFind Props
5
+ * 继承 PisellLookup 的所有 Props
6
+ */
7
+ export declare type PisellFindProps = PisellLookupProps;
8
+ /**
9
+ * PisellFind Ref
10
+ * 继承 PisellLookup 的所有 Ref 方法
11
+ */
12
+ export declare type PisellFindRef = PisellLookupRef;
13
+ /**
14
+ * PisellFind 组件
15
+ * 基于 PisellLookup 的组件内查找优化版本
16
+ *
17
+ * 核心特点:
18
+ * - 默认使用 button 触发器
19
+ * - 默认不显示确认按钮(输入即搜索)
20
+ * - 默认开启搜索历史
21
+ * - 默认不展示结果区(结果在页面其他位置展示)
22
+ *
23
+ * @example
24
+ * ```tsx
25
+ * // 基础用法
26
+ * <PisellFind
27
+ * onSearch={(keyword) => {
28
+ * const filtered = data.filter(item => item.name.includes(keyword));
29
+ * setFilteredData(filtered);
30
+ * }}
31
+ * />
32
+ *
33
+ * // 切换为 Input 模式
34
+ * <PisellFind
35
+ * triggerType="input"
36
+ * onSearch={(keyword) => filterData(keyword)}
37
+ * />
38
+ * ```
39
+ */
40
+ export declare const PisellFind: React.ForwardRefExoticComponent<PisellLookupProps & React.RefAttributes<PisellLookupRef>>;
@@ -3,6 +3,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
3
3
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
4
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
5
5
  import React, { forwardRef } from 'react';
6
+ import { locales as utilsLocales } from '@pisell/utils';
6
7
  import { PisellLookup } from "../pisellLookup";
7
8
  import { getText } from "../../locales";
8
9
 
@@ -47,9 +48,17 @@ export var PisellFind = /*#__PURE__*/forwardRef(function (props, ref) {
47
48
  var _props$triggerType = props.triggerType,
48
49
  triggerType = _props$triggerType === void 0 ? 'button' : _props$triggerType,
49
50
  _props$buttonText = props.buttonText,
50
- buttonText = _props$buttonText === void 0 ? getText('pisell-find-button-text') : _props$buttonText,
51
+ buttonText = _props$buttonText === void 0 ? function () {
52
+ var key = 'pisell2.recordBoard.toolbar.find';
53
+ var u = utilsLocales.getText(key);
54
+ return u && u !== key ? u : getText(key) || getText('pisell-find-button-text');
55
+ }() : _props$buttonText,
51
56
  _props$placeholder = props.placeholder,
52
- placeholder = _props$placeholder === void 0 ? getText('pisell-find-placeholder') : _props$placeholder,
57
+ placeholder = _props$placeholder === void 0 ? function () {
58
+ var key = 'pisell2.recordBoard.toolbar.findPlaceholder';
59
+ var u = utilsLocales.getText(key);
60
+ return u && u !== key ? u : getText(key) || getText('pisell-find-placeholder');
61
+ }() : _props$placeholder,
53
62
  _props$showConfirmBut = props.showConfirmButton,
54
63
  showConfirmButton = _props$showConfirmBut === void 0 ? false : _props$showConfirmBut,
55
64
  _props$showHistory = props.showHistory,
@@ -14,6 +14,7 @@
14
14
  /**
15
15
  * 工具栏行通用样式
16
16
  */
17
+
17
18
  &-row {
18
19
  display: flex;
19
20
  flex-direction: row;
@@ -21,8 +22,10 @@
21
22
  gap: 12px;
22
23
  align-self: stretch;
23
24
  }
25
+
24
26
  .toolbar-row {
25
27
  justify-content: space-between;
28
+
26
29
  &-left {
27
30
  display: flex;
28
31
  flex-direction: row;
@@ -40,3 +43,23 @@
40
43
  }
41
44
  }
42
45
  }
46
+
47
+ /**
48
+ * 手机版宽度:左侧区域与右侧区域换行,避免挤在一行
49
+ */
50
+ @media (max-width: 768px) {
51
+ .pisell-grid-pro-toolbar .toolbar-row {
52
+ flex-wrap: wrap;
53
+ }
54
+
55
+ .pisell-grid-pro-toolbar .toolbar-row-left {
56
+ flex: 1 1 100%;
57
+ min-width: 0;
58
+ }
59
+
60
+ .pisell-grid-pro-toolbar .toolbar-row-right {
61
+ flex: 1 1 100%;
62
+ min-width: 0;
63
+ justify-content: flex-start;
64
+ }
65
+ }
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * PisellLongText 组件样式
3
+ * 基于 Figma 设计规范,与 SingleLineText 设计体系一致
3
4
  */
4
5
 
5
6
  .pisell-long-text {
@@ -7,16 +8,78 @@
7
8
  position: relative;
8
9
  width: 100%;
9
10
 
10
- // 基于 Figma 设计规范的 TextArea 样式
11
+ // TextArea 样式(Figma 设计规范,覆盖时使用 pisell-lowcode-xxx)
11
12
  .pisell-lowcode-input {
12
- padding: 12px 14px; // Figma: 垂直12px,水平14px(比 Input 小2px)
13
+ // 基础样式
14
+ font-size: 16px !important;
15
+ line-height: 24px !important;
16
+
17
+ // 边框和圆角
18
+ border-radius: 8px !important;
19
+ border: 1px solid #d0d5dd !important; // Gray/300
20
+
21
+ // 内边距(Figma: 垂直 12px,水平 14px)
22
+ padding: 12px 14px !important;
23
+ min-height: 80px !important; // 多行最小高度,由 rows 进一步控制
24
+
25
+ // 颜色
26
+ color: #101828 !important; // Gray/900
27
+ background-color: #ffffff !important;
28
+
29
+ &::placeholder {
30
+ color: #667085 !important; // Gray/500
31
+ }
32
+
33
+ // 聚焦态
34
+ &:focus,
35
+ &:focus-within {
36
+ border-color: #d6bbfb !important; // Primary/300
37
+ box-shadow: 0 0 0 4px #f4ebff !important; // Primary/100
38
+ outline: none !important;
39
+ }
40
+
41
+ // Hover 态
42
+ &:hover:not(:focus):not(:focus-within):not([disabled]) {
43
+ border-color: #b692f6 !important; // Primary/400
44
+ }
45
+
46
+ // 禁用态
47
+ &[disabled],
48
+ &.pisell-lowcode-input-disabled {
49
+ background-color: #f9fafb !important; // Gray/50
50
+ color: #98a2b3 !important; // Gray/400
51
+ border-color: #d0d5dd !important;
52
+ cursor: not-allowed !important;
53
+ }
54
+ }
55
+
56
+ // 字数统计样式(TextArea showCount)
57
+ .pisell-lowcode-input-data-count,
58
+ .pisell-lowcode-input-show-count-suffix {
59
+ color: #667085 !important; // Gray/500
60
+ font-size: 14px !important;
61
+ }
62
+
63
+ // 错误状态
64
+ .pisell-lowcode-input-status-error {
65
+ border-color: #fda29b !important; // Error/300
66
+
67
+ &:focus,
68
+ &:focus-within {
69
+ border-color: #f97066 !important; // Error/400
70
+ box-shadow: 0 0 0 4px #fee4e2 !important; // Error/100
71
+ }
72
+
73
+ &:hover:not(:focus):not(:focus-within) {
74
+ border-color: #f97066 !important; // Error/400
75
+ }
13
76
  }
14
77
  }
15
78
 
16
79
  &-error {
17
80
  margin-top: 4px;
18
81
  font-size: 12px;
19
- color: #ff4d4f;
82
+ color: #d92d20; // Error/600
20
83
  line-height: 1.5;
21
84
  animation: fadeIn 0.3s ease-in-out;
22
85
  }
@@ -32,12 +95,17 @@
32
95
  height: auto;
33
96
  font-size: 14px;
34
97
  margin-top: 8px;
98
+ color: #6d48c4;
99
+
100
+ &:hover {
101
+ color: #6d48c4 !important;
102
+ }
35
103
  }
36
104
 
37
105
  &-word-count {
38
106
  margin-top: 8px;
39
107
  font-size: 12px;
40
- color: #667085;
108
+ color: #667085; // Gray/500
41
109
  text-align: right;
42
110
  }
43
111
 
@@ -18,7 +18,7 @@ import React from 'react';
18
18
  * - 字数统计
19
19
  */
20
20
  var meta = {
21
- title: '表单/PisellLongText',
21
+ title: '表单/表单组件/PisellLongText',
22
22
  component: PisellLongText,
23
23
  parameters: {
24
24
  layout: 'centered',
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * PisellLongText 组件导出
3
3
  */
4
- export { default as PisellLongText } from './PisellLongText';
4
+ import PisellLongText from './PisellLongText';
5
+ export { PisellLongText };
5
6
  export type { PisellLongTextProps } from './types';
6
7
  export type { DisplayState, ValidationResult, TextInputState } from './types';
@@ -2,6 +2,21 @@
2
2
  * PisellLongText 组件导出
3
3
  */
4
4
 
5
- export { default as PisellLongText } from "./PisellLongText";
5
+ import { getText } from "../../locales";
6
+ import PisellLongText from "./PisellLongText";
7
+
8
+ /** RecordBoard 列 type 联动排序:内置 A → Z / Z → A */
9
+ PisellLongText.SortOptions = {
10
+ getSortItems: function getSortItems(fieldKey) {
11
+ return [{
12
+ key: "".concat(fieldKey, ":asc"),
13
+ label: getText('sort-a-z')
14
+ }, {
15
+ key: "".concat(fieldKey, ":desc"),
16
+ label: getText('sort-z-a')
17
+ }];
18
+ }
19
+ };
20
+ export { PisellLongText };
6
21
 
7
22
  // 公共类型从 types 中重新导出,方便使用
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { PisellLookupProps, PisellLookupRef } from './types';
3
+ import './PisellLookup.less';
4
+ export declare const PisellLookup: React.ForwardRefExoticComponent<PisellLookupProps & React.RefAttributes<PisellLookupRef>>;
@@ -399,11 +399,11 @@ var PisellLookupComponent = /*#__PURE__*/forwardRef(function (props, ref) {
399
399
  }, [displayType, close]);
400
400
 
401
401
  /**
402
- * 处理确认触发(点击 Lookup 按钮或按 Enter 键)
402
+ * 处理确认触发(点击 Lookup 按钮或按 Enter 键)。支持传入当前输入值,回车时由 Trigger 传入以避免受控下 keyword 未更新导致历史未保存。
403
403
  */
404
- var handleConfirm = useCallback(function () {
405
- // 确认触发时保存历史记录
406
- handleConfirmSearch(keyword);
404
+ var handleConfirm = useCallback(function (valueFromTrigger) {
405
+ var keywordToSearch = valueFromTrigger !== null && valueFromTrigger !== void 0 ? valueFromTrigger : keyword;
406
+ handleConfirmSearch(keywordToSearch);
407
407
  }, [keyword, handleConfirmSearch]);
408
408
 
409
409
  /**
@@ -548,17 +548,26 @@ var PisellLookupComponent = /*#__PURE__*/forwardRef(function (props, ref) {
548
548
  }, resultRender(keyword, close));
549
549
  };
550
550
 
551
+ /**
552
+ * 是否有辅助区内容(与 LookupAuxiliary 内判断一致,用于空时不展示 dropdown)
553
+ */
554
+ var hasAuxiliaryContent = showHistory && history.length > 0 || showSuggestions && suggestions.length > 0 && !!keyword || showHotWords && hotWords.length > 0 && !keyword;
555
+
556
+ /**
557
+ * 是否有结果区内容(loading 或有关键词且提供了 resultRender)
558
+ */
559
+ var hasResultsContent = Boolean(loading || keyword && resultRender);
560
+
551
561
  /**
552
562
  * 渲染内容区(辅助区 + 结果区)
553
563
  */
554
564
  var renderContent = function renderContent() {
555
- var auxiliary = renderAuxiliary();
556
- var results = renderResults();
557
-
558
- // 如果没有任何内容,返回 null(避免显示空容器)
559
- if (!auxiliary && !results) {
565
+ // 当无任何可展示内容时返回 null,避免 popup 展示空下拉框
566
+ if (!hasAuxiliaryContent && !hasResultsContent) {
560
567
  return null;
561
568
  }
569
+ var auxiliary = renderAuxiliary();
570
+ var results = renderResults();
562
571
  return /*#__PURE__*/React.createElement("div", {
563
572
  className: "pisell-lookup-content"
564
573
  }, auxiliary, results);
@@ -132,8 +132,11 @@
132
132
 
133
133
  // ============ Input 样式覆盖 ============
134
134
 
135
- // 覆盖 Ant Design Input 默认样式(适用于所有尺寸)
136
- &-trigger-input.pisell-lowcode-input-affix-wrapper {
135
+ // 覆盖 Ant Design Input 默认样式(适用于所有尺寸);默认高度 50px
136
+ // 同时匹配 ant- / pisell-lowcode- 前缀,确保有无 prefixCls 都能生效
137
+ &-trigger-input.pisell-lowcode-input-affix-wrapper,
138
+ &-trigger-input.ant-input-affix-wrapper {
139
+ min-height: 50px;
137
140
  border: 1px solid #d0d5dd;
138
141
  border-radius: 8px;
139
142
  box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
@@ -145,13 +148,15 @@
145
148
  }
146
149
 
147
150
  &:focus,
148
- &.pisell-lowcode-input-affix-wrapper-focused {
151
+ &.pisell-lowcode-input-affix-wrapper-focused,
152
+ &.ant-input-affix-wrapper-focused {
149
153
  border-color: #7f56d9;
150
154
  box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05), 0 0 0 2px rgba(127, 86, 217, 0.1);
151
155
  }
152
156
 
153
- // Input 文本样式
154
- .pisell-lowcode-input {
157
+ // Input 文本样式(antd 内部 input 类名可能为 .ant-input 或 .pisell-lowcode-input)
158
+ .pisell-lowcode-input,
159
+ .ant-input {
155
160
  color: #000000;
156
161
  font-size: 16px;
157
162
  line-height: 24px;
@@ -164,8 +169,9 @@
164
169
  }
165
170
  }
166
171
 
167
- // 小号输入框
168
- &-trigger-input.pisell-lowcode-input-affix-wrapper-sm {
172
+ // 小号输入框(同时匹配 ant- / pisell-lowcode-)
173
+ &-trigger-input.pisell-lowcode-input-affix-wrapper-sm,
174
+ &-trigger-input.ant-input-affix-wrapper-sm {
169
175
  padding: 2px 2px 2px 12px;
170
176
 
171
177
  .pisell-lookup-input-clear {
@@ -192,8 +198,10 @@
192
198
  }
193
199
  }
194
200
 
195
- // 大号输入框
196
- &-trigger-input.pisell-lowcode-input-affix-wrapper-lg {
201
+ // 大号输入框,高度 58px(同时匹配 ant- / pisell-lowcode-)
202
+ &-trigger-input.pisell-lowcode-input-affix-wrapper-lg,
203
+ &-trigger-input.ant-input-affix-wrapper-lg {
204
+ min-height: 58px;
197
205
  padding: 6px 6px 6px 16px;
198
206
 
199
207
  .pisell-lookup-input-clear {
@@ -210,6 +218,23 @@
210
218
 
211
219
  .pisell-lookup-input-confirm {
212
220
  padding: 10px;
221
+ line-height: 24px;
222
+ }
223
+ }
224
+
225
+ // 无 Lookup 按钮时:class 在包裹层 .pisell-lookup-trigger-input-no-confirm 上,对子元素 affix-wrapper 设左右对称 padding
226
+ &-trigger-input-no-confirm {
227
+ > .ant-input-affix-wrapper,
228
+ > .pisell-lowcode-input-affix-wrapper {
229
+ padding: 4px 16px;
230
+ }
231
+ > .ant-input-affix-wrapper-sm,
232
+ > .pisell-lowcode-input-affix-wrapper-sm {
233
+ padding: 2px 12px;
234
+ }
235
+ > .ant-input-affix-wrapper-lg,
236
+ > .pisell-lowcode-input-affix-wrapper-lg {
237
+ padding: 6px 16px;
213
238
  }
214
239
  }
215
240
 
@@ -270,8 +295,8 @@
270
295
  }
271
296
 
272
297
  &-confirm {
298
+ border: none;
273
299
  background-color: #7f56d9;
274
- border-color: #7f56d9;
275
300
  border-radius: 8px;
276
301
  box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
277
302
  padding: 10px;
@@ -279,39 +304,37 @@
279
304
  min-width: auto;
280
305
  font-size: 16px;
281
306
  font-weight: 600;
282
- line-height: 22px;
307
+ line-height: 20px;
283
308
  color: #ffffff;
284
309
 
285
310
  &:hover {
286
311
  background-color: #6941c6 !important;
287
- border-color: #6941c6 !important;
288
312
  color: #ffffff !important;
289
313
  }
290
314
 
291
315
  &:active {
292
316
  background-color: #53389e !important;
293
- border-color: #53389e !important;
294
317
  color: #ffffff !important;
295
318
  }
296
319
 
297
320
  span {
298
321
  font-size: 16px;
299
322
  font-weight: 600;
300
- line-height: 22px;
323
+ line-height: 20px;
301
324
  }
302
325
 
303
326
  &.pisell-lowcode-btn-sm {
304
327
  padding: 10px;
305
328
  height: auto;
306
329
  font-size: 16px;
307
- line-height: 22px;
330
+ line-height: 20px;
308
331
  }
309
332
 
310
333
  &.pisell-lowcode-btn-middle {
311
334
  padding: 10px;
312
335
  height: auto;
313
336
  font-size: 16px;
314
- line-height: 22px;
337
+ line-height: 20px;
315
338
  }
316
339
  }
317
340
  }