@pisell/materials 3.3.85 → 3.3.87

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 (392) 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 +6 -6
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +21 -21
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +21 -21
  11. package/es/components/Pagination/index.d.ts +4 -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/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  16. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
  17. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
  18. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  19. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  20. package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +5 -0
  21. package/es/components/dataSourceComponents/fields/Translation/type.d.ts +21 -0
  22. package/es/components/dataSourceComponents/fields/index.d.ts +7 -7
  23. package/es/components/filter/components/Dropdown/index.js +6 -2
  24. package/es/components/filter/components/FilterButton/index.js +19 -4
  25. package/es/components/filter/components/FilterButton/types.d.ts +8 -0
  26. package/es/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.d.ts +21 -0
  27. package/es/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.js +90 -0
  28. package/es/components/filter/components/FilterItem/index.d.ts +3 -3
  29. package/es/components/filter/components/FilterItem/index.js +138 -7
  30. package/es/components/filter/components/FilterItem/index.less +90 -0
  31. package/es/components/filter/types.d.ts +4 -2
  32. package/es/components/pisellBatchActionBar/PisellBatchActionBar.js +38 -29
  33. package/es/components/pisellCurrency/PisellCurrency.less +163 -25
  34. package/es/components/pisellCurrency/PisellCurrency.stories.js +1 -1
  35. package/es/components/pisellCurrency/index.d.ts +2 -1
  36. package/es/components/pisellCurrency/index.js +16 -1
  37. package/es/components/pisellDataSourceContainer/components/ColumnsSetting/index.d.ts +7 -1
  38. package/es/components/pisellDataSourceContainer/components/ColumnsSetting/index.js +30 -3
  39. package/es/components/pisellDataSourceContainer/components/ColumnsSetting/utils.d.ts +28 -0
  40. package/es/components/pisellDataSourceContainer/components/ColumnsSetting/utils.js +68 -0
  41. package/es/components/pisellDataSourceContainer/components/Table/index.d.ts +1 -0
  42. package/es/components/pisellDataSourceContainer/components/Table/index.js +5 -3
  43. package/es/components/pisellDataSourceContainer/components/Table/useColumns.d.ts +1 -0
  44. package/es/components/pisellDataSourceContainer/components/Table/useColumns.js +37 -15
  45. package/es/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +1 -0
  46. package/es/components/pisellDateTimeDisplay/PisellDateTimeDisplay.js +21 -15
  47. package/es/components/pisellDateTimeDisplay/PisellDateTimeDisplay.less +2 -1
  48. package/es/components/pisellDateTimeDisplay/hooks/useCurrentTime.js +6 -4
  49. package/es/components/pisellDateTimeDisplay/utils/localeUtils.d.ts +2 -2
  50. package/es/components/pisellDateTimeDisplay/utils/localeUtils.js +15 -4
  51. package/es/components/pisellDateTimeDisplay/utils/relativeDay.d.ts +1 -0
  52. package/es/components/pisellDateTimeDisplay/utils/relativeDay.js +4 -2
  53. package/es/components/pisellEmail/PisellEmail.less +119 -10
  54. package/es/components/pisellEmail/PisellEmail.stories.js +1 -1
  55. package/es/components/pisellEmail/index.d.ts +3 -1
  56. package/es/components/pisellEmail/index.js +17 -1
  57. package/es/components/pisellFilter/index.js +76 -10
  58. package/es/components/pisellFind/index.js +11 -2
  59. package/es/components/pisellGridPro/ToolBar/index.less +23 -0
  60. package/es/components/pisellGridPro/index.d.ts +4 -0
  61. package/es/components/pisellLongText/PisellLongText.less +72 -4
  62. package/es/components/pisellLongText/PisellLongText.stories.js +1 -1
  63. package/es/components/pisellLongText/index.d.ts +2 -1
  64. package/es/components/pisellLongText/index.js +16 -1
  65. package/es/components/pisellLookup/PisellLookup.js +18 -9
  66. package/es/components/pisellLookup/PisellLookup.less +39 -16
  67. package/es/components/pisellLookup/components/LookupTrigger.js +14 -4
  68. package/es/components/pisellMultipleSelect/PisellMultipleSelect.less +159 -124
  69. package/es/components/pisellMultipleSelect/PisellMultipleSelect.stories.js +1 -1
  70. package/es/components/pisellMultipleSelect/components/EditView.js +8 -2
  71. package/es/components/pisellMultipleSelect/components/ReadOnlyView.d.ts +1 -1
  72. package/es/components/pisellMultipleSelect/components/ReadOnlyView.js +15 -11
  73. package/es/components/pisellMultipleSelect/index.d.ts +2 -1
  74. package/es/components/pisellMultipleSelect/index.js +16 -1
  75. package/es/components/pisellNumber/PisellNumber.less +135 -17
  76. package/es/components/pisellNumber/PisellNumber.stories.js +1 -1
  77. package/es/components/pisellNumber/index.d.ts +2 -1
  78. package/es/components/pisellNumber/index.js +16 -1
  79. package/es/components/pisellPercent/PisellPercent.less +142 -24
  80. package/es/components/pisellPercent/PisellPercent.stories.js +1 -1
  81. package/es/components/pisellPercent/index.d.ts +2 -1
  82. package/es/components/pisellPercent/index.js +16 -1
  83. package/es/components/pisellPhone/PisellPhone.less +122 -27
  84. package/es/components/pisellPhone/PisellPhone.stories.js +1 -1
  85. package/es/components/pisellPhone/components/EditView.js +1 -1
  86. package/es/components/pisellPhone/components/ReadOnlyView.js +15 -6
  87. package/es/components/pisellPhone/index.d.ts +2 -1
  88. package/es/components/pisellPhone/index.js +16 -1
  89. package/es/components/pisellRating/PisellRating.less +20 -12
  90. package/es/components/pisellRating/PisellRating.stories.js +1 -1
  91. package/es/components/pisellRating/index.d.ts +2 -1
  92. package/es/components/pisellRating/index.js +16 -1
  93. package/es/components/pisellRecordBoard/PisellRecordBoard.d.ts +8 -0
  94. package/es/components/pisellRecordBoard/PisellRecordBoard.js +243 -0
  95. package/es/components/pisellRecordBoard/PisellRecordBoard.stories.d.ts +81 -0
  96. package/es/components/pisellRecordBoard/PisellRecordBoard.stories.js +2358 -0
  97. package/es/components/pisellRecordBoard/context/RecordBoardContext.js +2 -0
  98. package/es/components/pisellRecordBoard/context/RecordBoardProvider.js +13 -0
  99. package/es/components/pisellRecordBoard/hooks/useRecordBoardContext.js +29 -0
  100. package/es/components/pisellRecordBoard/index.d.ts +35 -0
  101. package/es/components/pisellRecordBoard/index.js +23 -0
  102. package/es/components/pisellRecordBoard/layouts/CardLayout/CardList.js +36 -0
  103. package/es/components/pisellRecordBoard/layouts/CardLayout/index.js +20 -0
  104. package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +14 -0
  105. package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.js +242 -0
  106. package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.less +100 -0
  107. package/es/components/pisellRecordBoard/layouts/GridLayout/index.d.ts +13 -0
  108. package/es/components/pisellRecordBoard/layouts/GridLayout/index.js +20 -0
  109. package/es/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +8 -0
  110. package/es/components/pisellRecordBoard/shellFrame/BatchActionBar/index.js +90 -0
  111. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.d.ts +15 -0
  112. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.js +138 -0
  113. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.d.ts +8 -0
  114. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +66 -0
  115. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.less +2 -0
  116. package/es/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +14 -0
  117. package/es/components/pisellRecordBoard/shellFrame/Pagination/index.js +66 -0
  118. package/es/components/pisellRecordBoard/shellFrame/Pagination/index.less +78 -0
  119. package/es/components/pisellRecordBoard/shellFrame/Search/index.d.ts +10 -0
  120. package/es/components/pisellRecordBoard/shellFrame/Search/index.js +41 -0
  121. package/es/components/pisellRecordBoard/shellFrame/ToolBar/ToolBarFilter.less +112 -0
  122. package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +11 -0
  123. package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.js +215 -0
  124. package/es/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.d.ts +17 -0
  125. package/es/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.js +77 -0
  126. package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.d.ts +16 -0
  127. package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.js +65 -0
  128. package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.less +41 -0
  129. package/es/components/pisellRecordBoard/shellFrame/index.d.ts +26 -0
  130. package/es/components/pisellRecordBoard/shellFrame/index.js +104 -0
  131. package/es/components/pisellRecordBoard/types.js +1 -0
  132. package/es/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +41 -0
  133. package/es/components/pisellRecordBoard/utils/recordBoardColumns.js +508 -0
  134. package/es/components/pisellRecordBoard/utils/withRecordBoard.js +27 -0
  135. package/es/components/pisellShellFrame/PisellShellFrame.js +107 -0
  136. package/es/components/pisellShellFrame/PisellShellFrame.less +78 -0
  137. package/es/components/pisellShellFrame/PisellShellFrame.stories.js +195 -0
  138. package/es/components/pisellShellFrame/index.js +1 -0
  139. package/es/components/pisellShellFrame/types.js +1 -0
  140. package/es/components/pisellSingleLineText/PisellSingleLineText.stories.js +1 -1
  141. package/es/components/pisellSingleLineText/index.d.ts +2 -1
  142. package/es/components/pisellSingleLineText/index.js +16 -1
  143. package/es/components/pisellSingleSelect/PisellSingleSelect.less +103 -46
  144. package/es/components/pisellSingleSelect/PisellSingleSelect.stories.js +1 -1
  145. package/es/components/pisellSingleSelect/components/EditView.js +8 -2
  146. package/es/components/pisellSingleSelect/components/ReadOnlyView.d.ts +1 -1
  147. package/es/components/pisellSingleSelect/components/ReadOnlyView.js +10 -6
  148. package/es/components/pisellSingleSelect/index.d.ts +2 -1
  149. package/es/components/pisellSingleSelect/index.js +16 -1
  150. package/es/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.js +6 -3
  151. package/es/components/pisellUrl/PisellUrl.less +120 -11
  152. package/es/components/pisellUrl/PisellUrl.stories.js +1 -1
  153. package/es/components/pisellUrl/index.d.ts +3 -1
  154. package/es/components/pisellUrl/index.js +17 -1
  155. package/es/components/pisellWalletPassCard/index.js +1 -1
  156. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  157. package/es/components/select/index.less +18 -2
  158. package/es/components/sort/index.js +25 -3
  159. package/es/components/table/Table/fields/text/index.d.ts +1 -0
  160. package/es/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  161. package/es/components/table/Table/utils.d.ts +1 -1
  162. package/es/index.d.ts +6 -2
  163. package/es/index.js +2 -0
  164. package/es/locales/en-US.d.ts +36 -0
  165. package/es/locales/en-US.js +50 -2
  166. package/es/locales/index.js +2 -2
  167. package/es/locales/ja.d.ts +2 -0
  168. package/es/locales/ja.js +2 -0
  169. package/es/locales/pt.d.ts +2 -0
  170. package/es/locales/pt.js +2 -0
  171. package/es/locales/zh-CN.d.ts +36 -0
  172. package/es/locales/zh-CN.js +54 -6
  173. package/es/locales/zh-TW.d.ts +36 -0
  174. package/es/locales/zh-TW.js +54 -6
  175. package/es/utils/tagColor.js +39 -0
  176. package/lib/components/Pagination/index.d.ts +4 -5
  177. package/lib/components/Pagination/index.js +44 -21
  178. package/lib/components/Pagination/index.less +13 -7
  179. package/lib/components/PisellFields/index.d.ts +2 -2
  180. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  181. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
  182. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
  183. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  184. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  185. package/lib/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +5 -0
  186. package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +21 -0
  187. package/lib/components/dataSourceComponents/fields/index.d.ts +7 -7
  188. package/lib/components/filter/components/Dropdown/index.js +9 -2
  189. package/lib/components/filter/components/FilterButton/index.js +14 -3
  190. package/lib/components/filter/components/FilterButton/types.d.ts +8 -0
  191. package/lib/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.d.ts +21 -0
  192. package/lib/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.js +69 -0
  193. package/lib/components/filter/components/FilterItem/index.d.ts +3 -3
  194. package/lib/components/filter/components/FilterItem/index.js +133 -4
  195. package/lib/components/filter/components/FilterItem/index.less +90 -0
  196. package/lib/components/filter/types.d.ts +4 -2
  197. package/lib/components/pisellBatchActionBar/PisellBatchActionBar.js +26 -23
  198. package/lib/components/pisellCurrency/PisellCurrency.less +163 -25
  199. package/lib/components/pisellCurrency/PisellCurrency.stories.js +1 -1
  200. package/lib/components/pisellCurrency/index.d.ts +2 -1
  201. package/lib/components/pisellCurrency/index.js +7 -0
  202. package/lib/components/pisellDataSourceContainer/components/ColumnsSetting/index.d.ts +7 -1
  203. package/lib/components/pisellDataSourceContainer/components/ColumnsSetting/index.js +18 -2
  204. package/lib/components/pisellDataSourceContainer/components/ColumnsSetting/utils.d.ts +28 -0
  205. package/lib/components/pisellDataSourceContainer/components/ColumnsSetting/utils.js +81 -0
  206. package/lib/components/pisellDataSourceContainer/components/Table/index.d.ts +1 -0
  207. package/lib/components/pisellDataSourceContainer/components/Table/index.js +3 -1
  208. package/lib/components/pisellDataSourceContainer/components/Table/useColumns.d.ts +1 -0
  209. package/lib/components/pisellDataSourceContainer/components/Table/useColumns.js +25 -14
  210. package/lib/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +1 -0
  211. package/lib/components/pisellDateTimeDisplay/PisellDateTimeDisplay.js +17 -11
  212. package/lib/components/pisellDateTimeDisplay/PisellDateTimeDisplay.less +2 -1
  213. package/lib/components/pisellDateTimeDisplay/hooks/useCurrentTime.js +7 -1
  214. package/lib/components/pisellDateTimeDisplay/utils/localeUtils.d.ts +2 -2
  215. package/lib/components/pisellDateTimeDisplay/utils/localeUtils.js +10 -2
  216. package/lib/components/pisellDateTimeDisplay/utils/relativeDay.d.ts +1 -0
  217. package/lib/components/pisellDateTimeDisplay/utils/relativeDay.js +2 -1
  218. package/lib/components/pisellEmail/PisellEmail.less +119 -10
  219. package/lib/components/pisellEmail/PisellEmail.stories.js +1 -1
  220. package/lib/components/pisellEmail/index.d.ts +3 -1
  221. package/lib/components/pisellEmail/index.js +10 -2
  222. package/lib/components/pisellFilter/index.js +79 -8
  223. package/lib/components/pisellFind/index.js +11 -2
  224. package/lib/components/pisellGridPro/ToolBar/index.less +23 -0
  225. package/lib/components/pisellGridPro/index.d.ts +4 -0
  226. package/lib/components/pisellLongText/PisellLongText.less +72 -4
  227. package/lib/components/pisellLongText/PisellLongText.stories.js +1 -1
  228. package/lib/components/pisellLongText/index.d.ts +2 -1
  229. package/lib/components/pisellLongText/index.js +7 -0
  230. package/lib/components/pisellLookup/PisellLookup.js +12 -6
  231. package/lib/components/pisellLookup/PisellLookup.less +39 -16
  232. package/lib/components/pisellLookup/components/LookupTrigger.js +9 -3
  233. package/lib/components/pisellMultipleSelect/PisellMultipleSelect.less +159 -124
  234. package/lib/components/pisellMultipleSelect/PisellMultipleSelect.stories.js +1 -1
  235. package/lib/components/pisellMultipleSelect/components/EditView.js +4 -1
  236. package/lib/components/pisellMultipleSelect/components/ReadOnlyView.d.ts +1 -1
  237. package/lib/components/pisellMultipleSelect/components/ReadOnlyView.js +29 -1
  238. package/lib/components/pisellMultipleSelect/index.d.ts +2 -1
  239. package/lib/components/pisellMultipleSelect/index.js +7 -0
  240. package/lib/components/pisellNumber/PisellNumber.less +135 -17
  241. package/lib/components/pisellNumber/PisellNumber.stories.js +1 -1
  242. package/lib/components/pisellNumber/index.d.ts +2 -1
  243. package/lib/components/pisellNumber/index.js +7 -0
  244. package/lib/components/pisellPercent/PisellPercent.less +142 -24
  245. package/lib/components/pisellPercent/PisellPercent.stories.js +1 -1
  246. package/lib/components/pisellPercent/index.d.ts +2 -1
  247. package/lib/components/pisellPercent/index.js +7 -0
  248. package/lib/components/pisellPhone/PisellPhone.less +122 -27
  249. package/lib/components/pisellPhone/PisellPhone.stories.js +1 -1
  250. package/lib/components/pisellPhone/components/EditView.js +1 -1
  251. package/lib/components/pisellPhone/components/ReadOnlyView.js +18 -4
  252. package/lib/components/pisellPhone/index.d.ts +2 -1
  253. package/lib/components/pisellPhone/index.js +7 -0
  254. package/lib/components/pisellRating/PisellRating.less +20 -12
  255. package/lib/components/pisellRating/PisellRating.stories.js +1 -1
  256. package/lib/components/pisellRating/index.d.ts +2 -1
  257. package/lib/components/pisellRating/index.js +7 -0
  258. package/lib/components/pisellRecordBoard/PisellRecordBoard.d.ts +8 -0
  259. package/lib/components/pisellRecordBoard/PisellRecordBoard.js +263 -0
  260. package/lib/components/pisellRecordBoard/PisellRecordBoard.stories.d.ts +81 -0
  261. package/lib/components/pisellRecordBoard/PisellRecordBoard.stories.js +1673 -0
  262. package/lib/components/pisellRecordBoard/context/RecordBoardContext.js +30 -0
  263. package/lib/components/pisellRecordBoard/context/RecordBoardProvider.js +46 -0
  264. package/lib/components/pisellRecordBoard/hooks/useRecordBoardContext.js +47 -0
  265. package/lib/components/pisellRecordBoard/index.d.ts +35 -0
  266. package/lib/components/pisellRecordBoard/index.js +59 -0
  267. package/lib/components/pisellRecordBoard/layouts/CardLayout/CardList.js +46 -0
  268. package/lib/components/pisellRecordBoard/layouts/CardLayout/index.js +46 -0
  269. package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +14 -0
  270. package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.js +264 -0
  271. package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.less +100 -0
  272. package/lib/components/pisellRecordBoard/layouts/GridLayout/index.d.ts +13 -0
  273. package/lib/components/pisellRecordBoard/layouts/GridLayout/index.js +46 -0
  274. package/lib/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +8 -0
  275. package/lib/components/pisellRecordBoard/shellFrame/BatchActionBar/index.js +108 -0
  276. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.d.ts +15 -0
  277. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.js +173 -0
  278. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.d.ts +8 -0
  279. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +100 -0
  280. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.less +2 -0
  281. package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +14 -0
  282. package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.js +90 -0
  283. package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.less +78 -0
  284. package/lib/components/pisellRecordBoard/shellFrame/Search/index.d.ts +10 -0
  285. package/lib/components/pisellRecordBoard/shellFrame/Search/index.js +53 -0
  286. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/ToolBarFilter.less +112 -0
  287. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +11 -0
  288. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.js +247 -0
  289. package/lib/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.d.ts +17 -0
  290. package/lib/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.js +93 -0
  291. package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.d.ts +16 -0
  292. package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.js +85 -0
  293. package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.less +41 -0
  294. package/lib/components/pisellRecordBoard/shellFrame/index.d.ts +26 -0
  295. package/lib/components/pisellRecordBoard/shellFrame/index.js +137 -0
  296. package/lib/components/pisellRecordBoard/types.js +17 -0
  297. package/lib/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +41 -0
  298. package/lib/components/pisellRecordBoard/utils/recordBoardColumns.js +365 -0
  299. package/lib/components/pisellRecordBoard/utils/withRecordBoard.js +49 -0
  300. package/lib/components/pisellShellFrame/PisellShellFrame.js +113 -0
  301. package/lib/components/pisellShellFrame/PisellShellFrame.less +78 -0
  302. package/lib/components/pisellShellFrame/PisellShellFrame.stories.js +129 -0
  303. package/lib/components/pisellShellFrame/index.js +40 -0
  304. package/lib/components/pisellShellFrame/types.js +17 -0
  305. package/lib/components/pisellSingleLineText/PisellSingleLineText.stories.js +1 -1
  306. package/lib/components/pisellSingleLineText/index.d.ts +2 -1
  307. package/lib/components/pisellSingleLineText/index.js +7 -0
  308. package/lib/components/pisellSingleSelect/PisellSingleSelect.less +103 -46
  309. package/lib/components/pisellSingleSelect/PisellSingleSelect.stories.js +1 -1
  310. package/lib/components/pisellSingleSelect/components/EditView.js +4 -1
  311. package/lib/components/pisellSingleSelect/components/ReadOnlyView.d.ts +1 -1
  312. package/lib/components/pisellSingleSelect/components/ReadOnlyView.js +12 -9
  313. package/lib/components/pisellSingleSelect/index.d.ts +2 -1
  314. package/lib/components/pisellSingleSelect/index.js +7 -0
  315. package/lib/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.js +6 -2
  316. package/lib/components/pisellUrl/PisellUrl.less +120 -11
  317. package/lib/components/pisellUrl/PisellUrl.stories.js +1 -1
  318. package/lib/components/pisellUrl/index.d.ts +3 -1
  319. package/lib/components/pisellUrl/index.js +10 -2
  320. package/lib/components/pisellWalletPassCard/index.js +9 -2
  321. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  322. package/lib/components/select/index.less +18 -2
  323. package/lib/components/sort/index.js +13 -3
  324. package/lib/components/table/Table/fields/text/index.d.ts +1 -0
  325. package/lib/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  326. package/lib/components/table/Table/utils.d.ts +1 -1
  327. package/lib/index.d.ts +6 -2
  328. package/lib/index.js +6 -0
  329. package/lib/locales/en-US.d.ts +36 -0
  330. package/lib/locales/en-US.js +42 -2
  331. package/lib/locales/index.js +2 -2
  332. package/lib/locales/ja.d.ts +2 -0
  333. package/lib/locales/ja.js +2 -0
  334. package/lib/locales/pt.d.ts +2 -0
  335. package/lib/locales/pt.js +2 -0
  336. package/lib/locales/zh-CN.d.ts +36 -0
  337. package/lib/locales/zh-CN.js +46 -6
  338. package/lib/locales/zh-TW.d.ts +36 -0
  339. package/lib/locales/zh-TW.js +46 -6
  340. package/lib/utils/tagColor.js +60 -0
  341. package/lowcode/auto-resize-text/meta.ts +1 -1
  342. package/package.json +3 -3
  343. package/es/components/pisellDateTimeDisplay/formats/dateTimeDisplayFormats.d.ts +0 -7
  344. package/es/components/pisellDateTimeDisplay/formats/index.d.ts +0 -1
  345. package/es/components/pisellDateTimeDisplay/types.d.ts +0 -347
  346. package/es/components/pisellDateTimeDisplay/utils/formatTime.d.ts +0 -19
  347. package/es/components/pisellDateTimeDisplay/utils/getRefreshInterval.d.ts +0 -18
  348. package/es/components/pisellLookup/PisellLookup.d.ts +0 -4
  349. package/es/components/pisellLookup/PisellLookup.stories.d.ts +0 -129
  350. package/es/components/pisellLookup/components/HotWords.d.ts +0 -7
  351. package/es/components/pisellLookup/components/LookupAuxiliary.d.ts +0 -7
  352. package/es/components/pisellLookup/components/LookupResultHost.d.ts +0 -7
  353. package/es/components/pisellLookup/components/SearchHistory.d.ts +0 -7
  354. package/es/components/pisellLookup/components/SuggestWords.d.ts +0 -7
  355. package/es/components/pisellLookup/components/index.d.ts +0 -9
  356. package/es/components/pisellLookup/hooks/index.d.ts +0 -6
  357. package/es/components/pisellLookup/hooks/useSearchHistory.d.ts +0 -48
  358. package/es/components/pisellLookup/index.d.ts +0 -6
  359. package/es/components/pisellLookup/types.d.ts +0 -666
  360. package/es/components/pisellLookup/utils/index.d.ts +0 -5
  361. package/es/components/pisellLookup/utils/trigger.d.ts +0 -42
  362. package/es/components/pisellSort/type.d.ts +0 -7
  363. package/es/components/pisellTimeRangeDisplay/types.d.ts +0 -137
  364. package/es/components/pisellTimeRangeDisplay/utils/parseTimeRange.d.ts +0 -23
  365. package/es/components/sort/types.d.ts +0 -20
  366. package/es/components/virtualInput/index.d.ts +0 -29
  367. package/es/hooks/useThemeTokens.d.ts +0 -7
  368. package/lib/components/pisellDateTimeDisplay/formats/dateTimeDisplayFormats.d.ts +0 -7
  369. package/lib/components/pisellDateTimeDisplay/formats/index.d.ts +0 -1
  370. package/lib/components/pisellDateTimeDisplay/types.d.ts +0 -347
  371. package/lib/components/pisellDateTimeDisplay/utils/formatTime.d.ts +0 -19
  372. package/lib/components/pisellDateTimeDisplay/utils/getRefreshInterval.d.ts +0 -18
  373. package/lib/components/pisellLookup/PisellLookup.d.ts +0 -4
  374. package/lib/components/pisellLookup/PisellLookup.stories.d.ts +0 -129
  375. package/lib/components/pisellLookup/components/HotWords.d.ts +0 -7
  376. package/lib/components/pisellLookup/components/LookupAuxiliary.d.ts +0 -7
  377. package/lib/components/pisellLookup/components/LookupResultHost.d.ts +0 -7
  378. package/lib/components/pisellLookup/components/SearchHistory.d.ts +0 -7
  379. package/lib/components/pisellLookup/components/SuggestWords.d.ts +0 -7
  380. package/lib/components/pisellLookup/components/index.d.ts +0 -9
  381. package/lib/components/pisellLookup/hooks/index.d.ts +0 -6
  382. package/lib/components/pisellLookup/hooks/useSearchHistory.d.ts +0 -48
  383. package/lib/components/pisellLookup/index.d.ts +0 -6
  384. package/lib/components/pisellLookup/types.d.ts +0 -666
  385. package/lib/components/pisellLookup/utils/index.d.ts +0 -5
  386. package/lib/components/pisellLookup/utils/trigger.d.ts +0 -42
  387. package/lib/components/pisellSort/type.d.ts +0 -7
  388. package/lib/components/pisellTimeRangeDisplay/types.d.ts +0 -137
  389. package/lib/components/pisellTimeRangeDisplay/utils/parseTimeRange.d.ts +0 -23
  390. package/lib/components/sort/types.d.ts +0 -20
  391. package/lib/components/virtualInput/index.d.ts +0 -29
  392. package/lib/hooks/useThemeTokens.d.ts +0 -7
@@ -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
  }
@@ -195,11 +195,13 @@ var LookupTriggerComponent = /*#__PURE__*/forwardRef(function (props, ref) {
195
195
  };
196
196
 
197
197
  /**
198
- * 处理按 Enter
198
+ * 处理按 Enter 键:传入当前输入值,避免受控模式下 state 未更新导致历史未保存
199
199
  */
200
200
  var handleKeyPress = function handleKeyPress(e) {
201
201
  if (e.key === 'Enter') {
202
- onConfirm === null || onConfirm === void 0 || onConfirm();
202
+ var _ref2, _e$currentTarget$valu, _e$currentTarget;
203
+ var currentValue = (_ref2 = (_e$currentTarget$valu = (_e$currentTarget = e.currentTarget) === null || _e$currentTarget === void 0 ? void 0 : _e$currentTarget.value) !== null && _e$currentTarget$valu !== void 0 ? _e$currentTarget$valu : value) !== null && _ref2 !== void 0 ? _ref2 : '';
204
+ onConfirm === null || onConfirm === void 0 || onConfirm(currentValue);
203
205
  }
204
206
  };
205
207
 
@@ -230,7 +232,7 @@ var LookupTriggerComponent = /*#__PURE__*/forwardRef(function (props, ref) {
230
232
  onClick: handleConfirm,
231
233
  className: "pisell-lookup-input-confirm"
232
234
  }, confirmButtonText));
233
- return /*#__PURE__*/React.createElement(Input, {
235
+ var inputEl = /*#__PURE__*/React.createElement(Input, {
234
236
  ref: inputRef,
235
237
  value: value,
236
238
  onChange: handleChange,
@@ -243,9 +245,17 @@ var LookupTriggerComponent = /*#__PURE__*/forwardRef(function (props, ref) {
243
245
  prefix: prefix,
244
246
  suffix: suffix,
245
247
  autoFocus: autoFocus,
246
- className: "pisell-lookup-trigger-input ".concat(className || ''),
248
+ className: "pisell-lookup-trigger-input ".concat(className || '').trim(),
247
249
  style: style
248
250
  });
251
+
252
+ // 无 Lookup 按钮时用带 class 的包裹层,确保 DOM 上一定有 pisell-lookup-trigger-input-no-confirm;同时保留 pisell-lookup-trigger-input 以便 modal 下 .pisell-lookup-search-area-with-close .pisell-lookup-trigger-input { flex: 1 } 能命中
253
+ if (!showConfirmButton) {
254
+ return /*#__PURE__*/React.createElement("div", {
255
+ className: "pisell-lookup-trigger-input pisell-lookup-trigger-input-no-confirm"
256
+ }, inputEl);
257
+ }
258
+ return inputEl;
249
259
  };
250
260
 
251
261
  /**
@@ -1,53 +1,139 @@
1
1
  /**
2
2
  * PisellMultipleSelect 组件样式
3
- *
4
- * 注意:大部分样式通过 tokens.ts 中的 Select Token 配置实现
5
- * 此文件仅包含 Token 无法实现的样式
3
+ * 基于 Figma 设计规范,覆盖时使用 pisell-lowcode-xxx
6
4
  */
7
5
 
8
6
  .pisell-multiple-select {
7
+ height: 48px !important;
9
8
  width: 100%;
10
9
 
11
- // 包装器布局(Token 无法配置)
10
+ .pisell-lowcode-select-clear {
11
+ color: #667085;
12
+ display: inline-flex;
13
+ align-items: center;
14
+ justify-content: center;
15
+ min-width: 44px;
16
+ min-height: 44px;
17
+ margin: -22px -8px;
18
+ padding: 10px 8px;
19
+
20
+ &:hover {
21
+ color: #344054;
22
+ }
23
+ }
24
+
25
+ // Select 触发器(Figma 设计规范,与 SingleSelect / Input 体系一致)
26
+ .pisell-lowcode-select:not(.pisell-lowcode-select-disabled):not(.pisell-lowcode-select-customize-input) {
27
+ .pisell-lowcode-select-selector {
28
+ font-size: 16px !important;
29
+ line-height: 24px !important;
30
+ border-radius: 8px !important;
31
+ border: 1px solid #d0d5dd !important; // Gray/300
32
+ padding: 12px 16px !important;
33
+ min-height: 48px !important;
34
+ color: #101828 !important; // Gray/900
35
+ background-color: #ffffff !important;
36
+ }
37
+
38
+ // 多选模式:内边距适配标签,高度保持 48px
39
+ &.pisell-lowcode-select-multiple .pisell-lowcode-select-selector {
40
+ padding: 6px 16px !important;
41
+ min-height: 48px !important;
42
+ }
43
+
44
+ &.pisell-lowcode-select-open .pisell-lowcode-select-selector {
45
+ border-color: #d6bbfb !important; // Primary/300
46
+ box-shadow: 0 0 0 4px #f4ebff !important; // Primary/100
47
+ }
48
+
49
+ &:not(.pisell-lowcode-select-open):not(.pisell-lowcode-select-disabled)
50
+ .pisell-lowcode-select-selector:hover {
51
+ border-color: #b692f6 !important; // Primary/400
52
+ }
53
+
54
+ &.pisell-lowcode-select-disabled .pisell-lowcode-select-selector {
55
+ background-color: #f9fafb !important; // Gray/50
56
+ color: #98a2b3 !important; // Gray/400
57
+ border-color: #d0d5dd !important;
58
+ cursor: not-allowed !important;
59
+ }
60
+
61
+ .pisell-lowcode-select-selection-placeholder {
62
+ color: #667085 !important; // Gray/500
63
+ }
64
+
65
+ .pisell-lowcode-select-arrow {
66
+ color: #667085;
67
+ }
68
+
69
+
70
+ // 多选标签(选择后展示的 item)高度 36px
71
+ .pisell-lowcode-select-selection-item {
72
+ border-radius: 6px !important;
73
+ padding: 0 10px !important;
74
+ margin-inline-end: 4px !important;
75
+ height: 36px !important;
76
+ min-height: 36px !important;
77
+ line-height: 36px !important;
78
+
79
+ &-content {
80
+ line-height: 36px !important;
81
+ }
82
+
83
+ &-remove {
84
+ margin-left: 4px !important;
85
+
86
+ &:hover {
87
+ background-color: transparent !important;
88
+ }
89
+ }
90
+ }
91
+ }
92
+
12
93
  &-wrapper {
13
94
  display: flex;
14
95
  flex-direction: column;
15
96
  gap: 8px;
97
+ position: relative;
98
+
99
+ // 下拉选项高度 48px(通过 getPopupContainer 挂到 wrapper 内,无需 :global)
100
+ .pisell-multiple-select-dropdown .pisell-lowcode-select-item {
101
+ min-height: 48px !important;
102
+ height: 48px !important;
103
+ line-height: 48px !important;
104
+ padding: 0 16px !important;
105
+ font-size: 16px !important;
106
+ }
16
107
  }
17
108
 
18
- // 标签(Token 无法配置的自定义元素)
19
109
  &-label {
20
- font-family: 'Inter', sans-serif;
21
110
  font-size: 14px;
22
111
  font-weight: 600;
23
- color: #344054;
112
+ color: #344054; // Gray/700
24
113
  line-height: 20px;
25
114
 
26
115
  &-required::after {
27
116
  content: ' *';
28
- color: #D92D20;
117
+ color: #d92d20; // Error/600
29
118
  margin-left: 0;
30
119
  }
31
120
  }
32
121
 
33
- // 辅助文本(Token 无法配置的自定义元素)
34
122
  &-helper-text {
35
123
  font-size: 14px;
36
124
  font-weight: 400;
37
- color: #667085;
125
+ color: #667085; // Gray/500
38
126
  line-height: 20px;
39
127
  }
40
128
 
41
- // 错误文本(Token 无法配置的自定义元素)
42
129
  &-error-text {
43
- font-size: 14px;
130
+ font-size: 12px;
44
131
  font-weight: 400;
45
- color: #D92D20;
46
- line-height: 20px;
47
- animation: fadeIn 0.3s ease-in-out;
132
+ color: #d92d20; // Error/600
133
+ line-height: 1.5;
134
+ animation: pisell-multiple-select-fadeIn 0.3s ease-in-out;
48
135
  }
49
136
 
50
- // 下拉选项中的勾选图标(Figma 设计)
51
137
  &-option-content {
52
138
  display: flex;
53
139
  align-items: center;
@@ -56,99 +142,34 @@
56
142
  }
57
143
 
58
144
  &-option-check {
59
- color: #7F56D9; // Primary/600
145
+ color: #7f56d9; // Primary/600
60
146
  font-size: 16px;
61
147
  margin-left: 8px;
62
148
  }
63
149
 
64
- // 多选模式下的特殊样式(Token 部分支持,Less 补充细节)
65
- :global {
66
- // 选择框垂直内边距(多选时需要更小的内边距以容纳标签)
67
- .pisell-lowcode-select-multiple .pisell-lowcode-select-selector {
68
- padding: 6px 16px !important;
69
- }
70
-
71
- // 标签圆角(Token 不支持 multipleItemBorderRadius)
72
- .pisell-lowcode-select-selection-item {
73
- border-radius: 6px !important;
74
- padding: 6px 10px !important;
75
- margin-inline-end: 4px !important;
76
-
77
- // 确保标签内容垂直居中
78
- &-content {
79
- line-height: 24px !important;
80
- }
81
-
82
- // 删除图标样式微调
83
- &-remove {
84
- margin-left: 4px !important;
85
-
86
- &:hover {
87
- background-color: transparent !important;
88
- }
89
- }
90
- }
91
-
92
- // hover 边框颜色(Token 不支持 colorBorderHover)
93
- .pisell-lowcode-select-multiple:not(.pisell-lowcode-select-disabled):not(.pisell-lowcode-select-customize-input):not(.ant-select-open) {
94
- .ant-select-selector:hover {
95
- border-color: #D6BBFB !important;
96
- }
97
- }
98
- }
99
- }
100
-
101
- // 下拉框内的搜索框样式(Figma 设计)
102
- :global {
103
- .pisell-select-search-wrapper {
104
- padding: 6px;
105
- border-bottom: 1px solid #EAECF0;
106
- }
107
-
108
- .pisell-select-search-input {
109
- padding: 9px 10px !important;
110
- font-size: 14px;
111
-
112
- .ant-input {
113
- font-size: 14px !important;
114
- color: #344054 !important;
115
-
116
- &::placeholder {
117
- color: #98A2B3 !important;
118
- font-size: 12px !important;
119
- }
120
- }
121
-
122
- &:hover,
123
- &:focus-within {
124
- background-color: transparent !important;
125
- }
126
- }
127
- }
128
-
129
- .pisell-multiple-select {
130
- // 错误状态(Token 无法单独配置错误边框颜色)
150
+ // 错误状态(Figma 设计体系 Error 色)
131
151
  &-error {
132
- :global(.ant-select-selector) {
133
- border-color: #D92D20 !important;
152
+ .pisell-lowcode-select .pisell-lowcode-select-selector {
153
+ border-color: #fda29b !important; // Error/300
134
154
 
135
155
  &:hover {
136
- border-color: #D92D20 !important;
156
+ border-color: #f97066 !important; // Error/400
137
157
  }
138
158
  }
139
159
 
140
- :global(.ant-select-focused .ant-select-selector) {
141
- border-color: #D92D20 !important;
142
- box-shadow: 0px 0px 0px 4px rgba(217, 45, 32, 0.1), 0px 1px 2px 0px rgba(16, 24, 40, 0.05) !important;
160
+ .pisell-lowcode-select.pisell-lowcode-select-focused .pisell-lowcode-select-selector,
161
+ .pisell-lowcode-select.pisell-lowcode-select-open .pisell-lowcode-select-selector {
162
+ border-color: #f97066 !important; // Error/400
163
+ box-shadow: 0 0 0 4px #fee4e2 !important; // Error/100
143
164
  }
144
165
  }
145
166
 
146
- // 自定义聚合标签样式(用于 maxTagPlaceholder 返回的元素,不受 Token 控制)
167
+ // 聚合标签(maxTagPlaceholder
147
168
  &-more-tag {
148
169
  display: inline-flex;
149
170
  align-items: center;
150
- background-color: #EAECF0;
151
- color: #344054;
171
+ background-color: #eaecf0;
172
+ color: #344054; // Gray/700
152
173
  border: none;
153
174
  border-radius: 6px;
154
175
  padding: 6px 10px;
@@ -159,35 +180,28 @@
159
180
  transition: background-color 0.2s ease;
160
181
 
161
182
  &:hover {
162
- background-color: #D0D5DD;
183
+ background-color: #d0d5dd; // Gray/300
163
184
  }
164
185
  }
165
186
 
166
- // 只读状态(完全自定义的显示,不使用 Select 组件)
187
+ // 只读状态
167
188
  &-readonly {
168
189
  &-display {
169
190
  display: flex;
170
191
  flex-wrap: wrap;
171
192
  gap: 4px;
172
- padding: 12px 16px;
173
- background-color: #F9FAFB;
174
- border: 1px solid #EAECF0;
175
- border-radius: 8px;
176
- min-height: 48px;
193
+ align-items: center;
194
+ min-height: 24px;
177
195
  }
178
196
 
179
197
  &-tag {
180
- display: inline-flex;
181
- align-items: center;
182
- gap: 4px;
183
- padding: 6px 10px;
184
- background-color: #EAECF0;
185
- border: none;
186
- border-radius: 6px;
187
- font-size: 16px;
188
- font-weight: 500;
189
- line-height: 24px;
190
- color: #344054;
198
+ margin: 0;
199
+ cursor: default;
200
+ border-radius: 12px;
201
+ border: 1px solid transparent;
202
+ font-size: 14px;
203
+ line-height: 22px;
204
+ padding: 2px 10px;
191
205
 
192
206
  &-icon {
193
207
  display: flex;
@@ -196,17 +210,13 @@
196
210
  }
197
211
 
198
212
  &-more-tag {
199
- display: inline-flex;
200
- align-items: center;
201
- padding: 6px 10px;
202
- background-color: #EAECF0;
203
- color: #344054;
204
- border: none;
205
- border-radius: 6px;
206
- font-size: 16px;
207
- font-weight: 500;
208
- line-height: 24px;
209
- cursor: pointer;
213
+ margin: 0;
214
+ cursor: default;
215
+ border-radius: 12px;
216
+ border: 1px solid transparent;
217
+ font-size: 14px;
218
+ line-height: 22px;
219
+ padding: 2px 10px;
210
220
  }
211
221
 
212
222
  &-empty {
@@ -218,8 +228,33 @@
218
228
  }
219
229
  }
220
230
 
221
- // 动画
222
- @keyframes fadeIn {
231
+ // 下拉内搜索框(在 dropdown 内)
232
+ .pisell-select-search-wrapper {
233
+ padding: 6px;
234
+ border-bottom: 1px solid #eaecf0;
235
+ }
236
+
237
+ .pisell-select-search-input {
238
+ padding: 9px 10px !important;
239
+ font-size: 14px;
240
+
241
+ .pisell-lowcode-input {
242
+ font-size: 14px !important;
243
+ color: #344054 !important;
244
+
245
+ &::placeholder {
246
+ color: #98a2b3 !important;
247
+ font-size: 12px !important;
248
+ }
249
+ }
250
+
251
+ &:hover,
252
+ &:focus-within {
253
+ background-color: transparent !important;
254
+ }
255
+ }
256
+
257
+ @keyframes pisell-multiple-select-fadeIn {
223
258
  from {
224
259
  opacity: 0;
225
260
  transform: translateY(-4px);
@@ -19,7 +19,7 @@ import { Form } from 'antd';
19
19
  * 用于展示和测试组件的各种状态和配置
20
20
  */
21
21
  var meta = {
22
- title: 'Components/PisellMultipleSelect',
22
+ title: '表单/表单组件/PisellMultipleSelect',
23
23
  component: PisellMultipleSelect,
24
24
  tags: ['autodocs'],
25
25
  argTypes: {
@@ -13,7 +13,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
13
13
  * 正常可编辑状态下的渲染
14
14
  */
15
15
 
16
- import React, { forwardRef, useMemo, useCallback, useState } from 'react';
16
+ import React, { forwardRef, useMemo, useCallback, useState, useRef } from 'react';
17
17
  import { Select, Tooltip, Input } from 'antd';
18
18
  import { CheckOutlined, SearchOutlined } from '@ant-design/icons';
19
19
  import classNames from 'classnames';
@@ -93,7 +93,7 @@ var EditView = /*#__PURE__*/forwardRef(function (props, ref) {
93
93
  return opt.label.toLowerCase().includes(searchKeyword.toLowerCase());
94
94
  });
95
95
  }, [antdOptions, searchKeyword, showSearch, filterOption, options]);
96
-
96
+ var wrapperRef = useRef(null);
97
97
  // 自定义选中图标
98
98
  var menuItemSelectedIcon = /*#__PURE__*/React.createElement(CheckOutlined, {
99
99
  style: {
@@ -143,6 +143,7 @@ var EditView = /*#__PURE__*/forwardRef(function (props, ref) {
143
143
  }, "+", omittedValues.length));
144
144
  }, [options, showTooltipOnOverflow]);
145
145
  return /*#__PURE__*/React.createElement("div", {
146
+ ref: wrapperRef,
146
147
  className: classNames('pisell-multiple-select-wrapper', className),
147
148
  style: style
148
149
  }, label && /*#__PURE__*/React.createElement("label", {
@@ -163,6 +164,11 @@ var EditView = /*#__PURE__*/forwardRef(function (props, ref) {
163
164
  maxTagCount: maxTagCount,
164
165
  maxTagPlaceholder: maxTagPlaceholder,
165
166
  size: size,
167
+ popupClassName: "pisell-multiple-select-dropdown",
168
+ getPopupContainer: function getPopupContainer() {
169
+ var _wrapperRef$current;
170
+ return (_wrapperRef$current = wrapperRef.current) !== null && _wrapperRef$current !== void 0 ? _wrapperRef$current : document.body;
171
+ },
166
172
  className: classNames('pisell-multiple-select', {
167
173
  'pisell-multiple-select-error': error
168
174
  })
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * PisellMultipleSelect - ReadOnlyView (只读态视图)
3
- * 只读状态下的渲染
3
+ * 只读状态下使用 Tag 展示选中值
4
4
  */
5
5
  import React from 'react';
6
6
  import type { ReadOnlyViewProps } from '../types';
@@ -1,12 +1,13 @@
1
1
  /**
2
2
  * PisellMultipleSelect - ReadOnlyView (只读态视图)
3
- * 只读状态下的渲染
3
+ * 只读状态下使用 Tag 展示选中值
4
4
  */
5
5
 
6
6
  import React, { useMemo } from 'react';
7
- import { Tooltip } from 'antd';
7
+ import { Tag, Tooltip } from 'antd';
8
8
  import classNames from 'classnames';
9
9
  import { findOptionsByValues, calculateTagDisplay } from '@pisell/utils';
10
+ import { getDefaultTagColor } from "../../../utils/tagColor";
10
11
  var ReadOnlyView = function ReadOnlyView(props) {
11
12
  var _props$value = props.value,
12
13
  value = _props$value === void 0 ? [] : _props$value,
@@ -17,13 +18,9 @@ var ReadOnlyView = function ReadOnlyView(props) {
17
18
  maxTagCount = _props$maxTagCount === void 0 ? 3 : _props$maxTagCount,
18
19
  className = props.className,
19
20
  style = props.style;
20
-
21
- // 查找选中的选项
22
21
  var selectedOptions = useMemo(function () {
23
22
  return findOptionsByValues(value, options);
24
23
  }, [value, options]);
25
-
26
- // 标签聚合信息
27
24
  var tagDisplayInfo = useMemo(function () {
28
25
  return calculateTagDisplay(value, options, maxTagCount);
29
26
  }, [value, options, maxTagCount]);
@@ -36,10 +33,12 @@ var ReadOnlyView = function ReadOnlyView(props) {
36
33
  })
37
34
  }, label), /*#__PURE__*/React.createElement("div", {
38
35
  className: "pisell-multiple-select-readonly-display"
39
- }, selectedOptions.length > 0 ? /*#__PURE__*/React.createElement(React.Fragment, null, tagDisplayInfo.visibleTags.map(function (option) {
40
- return /*#__PURE__*/React.createElement("span", {
36
+ }, selectedOptions.length > 0 ? /*#__PURE__*/React.createElement(React.Fragment, null, tagDisplayInfo.visibleTags.map(function (option, idx) {
37
+ var _option$color;
38
+ return /*#__PURE__*/React.createElement(Tag, {
41
39
  key: option.value,
42
- className: "pisell-multiple-select-readonly-tag"
40
+ className: "pisell-multiple-select-readonly-tag",
41
+ color: (_option$color = option.color) !== null && _option$color !== void 0 ? _option$color : getDefaultTagColor(option.value, idx)
43
42
  }, option.icon && /*#__PURE__*/React.createElement("span", {
44
43
  className: "pisell-multiple-select-readonly-tag-icon"
45
44
  }, option.icon), option.label);
@@ -47,8 +46,13 @@ var ReadOnlyView = function ReadOnlyView(props) {
47
46
  title: tagDisplayInfo.hiddenTags.map(function (t) {
48
47
  return t.label;
49
48
  }).join(', ')
50
- }, /*#__PURE__*/React.createElement("span", {
51
- className: "pisell-multiple-select-readonly-more-tag"
49
+ }, /*#__PURE__*/React.createElement(Tag, {
50
+ className: "pisell-multiple-select-readonly-more-tag",
51
+ style: {
52
+ backgroundColor: '#F2F4F7',
53
+ borderColor: '#EAECF0',
54
+ color: '#667085'
55
+ }
52
56
  }, "+", tagDisplayInfo.hiddenCount))) : /*#__PURE__*/React.createElement("span", {
53
57
  className: "pisell-multiple-select-readonly-empty"
54
58
  }, "-")));
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * PisellMultipleSelect 组件导出
3
3
  */
4
- export { default as PisellMultipleSelect } from './PisellMultipleSelect';
4
+ import PisellMultipleSelect from './PisellMultipleSelect';
5
+ export { PisellMultipleSelect };
5
6
  export type { PisellMultipleSelectProps, MultipleSelectRef, EditViewProps, DisabledViewProps, ReadOnlyViewProps, TagRendererProps, } from './types';
6
7
  export type { SelectOption, FilterOptionFunc, SortDirection, MultipleSelectState, TagDisplayInfo, } from './types';