@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
@@ -1,23 +1,154 @@
1
+ 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); }
2
+ var _excluded = ["value", "onChange"],
3
+ _excluded2 = ["getOptions"];
4
+ 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; }
5
+ 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; }
6
+ 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; }
7
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
8
+ 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); }
1
9
  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); }
2
- import React, { useMemo } from "react";
3
- import { Form } from "antd";
10
+ 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; }
11
+ 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; }
12
+ import React, { useMemo } from 'react';
13
+ import { DatePicker, Form } from 'antd';
14
+ import dayjs from 'dayjs';
4
15
  import { fieldMaps } from "../../../table/Table/fields";
16
+ import { PisellSingleLineText } from "../../../pisellSingleLineText";
17
+ import { PisellLongText } from "../../../pisellLongText";
18
+ import { PisellEmail } from "../../../pisellEmail";
19
+ import { PisellPhone } from "../../../pisellPhone";
20
+ import { PisellUrl } from "../../../pisellUrl";
21
+ import { PisellNumber } from "../../../pisellNumber";
22
+ import { PisellCurrency } from "../../../pisellCurrency";
23
+ import { PisellPercent } from "../../../pisellPercent";
24
+ import { PisellRating } from "../../../pisellRating";
25
+ import { PisellSingleSelect } from "../../../pisellSingleSelect";
26
+ import { PisellMultipleSelect } from "../../../pisellMultipleSelect";
27
+ import { getText } from "../../../../locales";
28
+ import AsyncOptionsSelectWrapper from "./AsyncOptionsSelectWrapper";
5
29
  import "./index.less";
30
+ var RangePicker = DatePicker.RangePicker;
31
+
32
+ /** 列 type(RecordBoardFieldType)对应 Pisell 组件,用于筛选项编辑态;与 RecordBoard 列 type 一致 */
33
+ var PISELL_FIELD_TYPE_MAP = {
34
+ singleLineText: PisellSingleLineText,
35
+ longText: PisellLongText,
36
+ email: PisellEmail,
37
+ phone: PisellPhone,
38
+ url: PisellUrl,
39
+ number: PisellNumber,
40
+ currency: PisellCurrency,
41
+ percent: PisellPercent,
42
+ rating: PisellRating,
43
+ singleSelect: PisellSingleSelect,
44
+ multipleSelect: PisellMultipleSelect
45
+ };
46
+
47
+ /** 筛选类型到 table field 类型的映射(table fields 无 single/input,用 select/text) */
48
+ var FILTER_TYPE_TO_FIELD = {
49
+ single: 'select',
50
+ input: 'text',
51
+ datePicker: 'date',
52
+ rangePicker: 'rangePicker',
53
+ search: 'search'
54
+ };
55
+
56
+ /** 将 form 中可能为 string[] 或 dayjs[] 的值转为 RangePicker 需要的 [Dayjs, Dayjs] | null */
57
+ function toRangePickerValue(val) {
58
+ if (val == null) return null;
59
+ if (Array.isArray(val) && val.length >= 2) {
60
+ var start = val[0] ? dayjs.isDayjs(val[0]) ? val[0] : dayjs(val[0]) : null;
61
+ var end = val[1] ? dayjs.isDayjs(val[1]) ? val[1] : dayjs(val[1]) : null;
62
+ if (start && end) return [start, end];
63
+ }
64
+ return null;
65
+ }
66
+
67
+ /** 使用 antd RangePicker,仅做 value 归一化以兼容 form 里存的 string[] */
68
+ var AntdRangePickerWithValue = /*#__PURE__*/React.forwardRef(function AntdRangePickerWithValue(_ref, ref) {
69
+ var value = _ref.value,
70
+ _onChange = _ref.onChange,
71
+ rest = _objectWithoutProperties(_ref, _excluded);
72
+ var normalized = toRangePickerValue(value);
73
+ return /*#__PURE__*/React.createElement(RangePicker, _extends({}, rest, {
74
+ ref: ref,
75
+ placeholder: [getText('table-action-range-picker-placeholder-start'), getText('table-action-range-picker-placeholder-end')],
76
+ value: normalized,
77
+ onChange: function onChange(dates) {
78
+ return _onChange === null || _onChange === void 0 ? void 0 : _onChange(dates !== null && dates !== void 0 ? dates : undefined);
79
+ }
80
+ }));
81
+ });
6
82
  var FilterItem = function FilterItem(props) {
83
+ var _componentProps$getOp;
7
84
  var label = props.label,
8
85
  type = props.type,
9
86
  name = props.name,
10
87
  other = props.other,
11
- isHidden = props.isHidden;
88
+ isHidden = props.isHidden,
89
+ itemProps = props.props;
90
+ var fieldTypeFromColumn = other === null || other === void 0 ? void 0 : other.fieldType;
91
+ var PisellCom = fieldTypeFromColumn ? PISELL_FIELD_TYPE_MAP[fieldTypeFromColumn] : undefined;
92
+
93
+ // 无 type 列的自定义筛选组件:接收 value/onChange(由 Form.Item 注入)
94
+ if (type === 'custom') {
95
+ var CustomComponent = other === null || other === void 0 ? void 0 : other.component;
96
+ if (!CustomComponent) return null;
97
+ var _componentProps = _objectSpread(_objectSpread({}, itemProps || {}), other || {});
98
+ delete _componentProps.component;
99
+ return /*#__PURE__*/React.createElement(Form.Item, _extends({
100
+ label: label,
101
+ name: name,
102
+ hidden: isHidden
103
+ }, (other === null || other === void 0 ? void 0 : other.formItemProps) || {}), /*#__PURE__*/React.createElement(CustomComponent, _componentProps));
104
+ }
105
+
106
+ // rangePickerNew:使用 antd DatePicker.RangePicker,样式按 Figma;prefixCls 使 DOM 使用 pisell-lowcode- 便于样式隔离。rangePicker 走下方 fieldMaps,使用物料库自研 RangePicker。
107
+ if (type === 'rangePickerNew') {
108
+ var _componentProps2 = _objectSpread(_objectSpread(_objectSpread({}, itemProps || {}), other || {}), {}, {
109
+ prefixCls: 'pisell-lowcode'
110
+ });
111
+ return /*#__PURE__*/React.createElement(Form.Item, _extends({
112
+ label: label,
113
+ name: name
114
+ }, (other === null || other === void 0 ? void 0 : other.formItemProps) || {}, {
115
+ hidden: isHidden,
116
+ className: "pisell-lowcode-range-picker-wrap"
117
+ }), /*#__PURE__*/React.createElement(AntdRangePickerWithValue, _componentProps2));
118
+ }
12
119
  var Com = useMemo(function () {
13
- var _fieldMaps;
14
- return (_fieldMaps = fieldMaps[type]) === null || _fieldMaps === void 0 ? void 0 : _fieldMaps.edit;
15
- }, [type]);
120
+ var _FILTER_TYPE_TO_FIELD, _fieldMaps;
121
+ if (PisellCom) return PisellCom;
122
+ var fieldType = (_FILTER_TYPE_TO_FIELD = FILTER_TYPE_TO_FIELD[type]) !== null && _FILTER_TYPE_TO_FIELD !== void 0 ? _FILTER_TYPE_TO_FIELD : type;
123
+ return (_fieldMaps = fieldMaps[fieldType]) === null || _fieldMaps === void 0 ? void 0 : _fieldMaps.edit;
124
+ }, [type, PisellCom]);
125
+ if (!Com) {
126
+ return null;
127
+ }
128
+ var isPisell = Boolean(PisellCom);
129
+ var componentProps = _objectSpread(_objectSpread(_objectSpread({}, itemProps || {}), other || {}), isPisell ? {
130
+ mode: 'edit'
131
+ } : {});
132
+ var getOptions = (_componentProps$getOp = componentProps.getOptions) !== null && _componentProps$getOp !== void 0 ? _componentProps$getOp : other === null || other === void 0 ? void 0 : other.getOptions;
133
+ var useAsyncOptions = isPisell && typeof getOptions === 'function' && (fieldTypeFromColumn === 'singleSelect' || fieldTypeFromColumn === 'multipleSelect');
134
+ if (useAsyncOptions && fieldTypeFromColumn) {
135
+ var _go = componentProps.getOptions,
136
+ restProps = _objectWithoutProperties(componentProps, _excluded2);
137
+ return /*#__PURE__*/React.createElement(Form.Item, _extends({
138
+ label: label,
139
+ name: name
140
+ }, (other === null || other === void 0 ? void 0 : other.formItemProps) || {}, {
141
+ hidden: isHidden
142
+ }), /*#__PURE__*/React.createElement(AsyncOptionsSelectWrapper, _extends({
143
+ getOptions: getOptions,
144
+ fieldType: fieldTypeFromColumn
145
+ }, restProps)));
146
+ }
16
147
  return /*#__PURE__*/React.createElement(Form.Item, _extends({
17
148
  label: label,
18
149
  name: name
19
150
  }, (other === null || other === void 0 ? void 0 : other.formItemProps) || {}, {
20
151
  hidden: isHidden
21
- }), /*#__PURE__*/React.createElement(Com, other));
152
+ }), /*#__PURE__*/React.createElement(Com, componentProps));
22
153
  };
23
154
  export default FilterItem;
@@ -0,0 +1,90 @@
1
+ /**
2
+ * FilterItem 样式
3
+ * RangePicker 按 Figma Pisell 2.0 Component Library (node-id=13586-90520)
4
+ * 使用 pisell-lowcode- 前缀(RangePicker 传入 prefixCls="pisell-lowcode")
5
+ * - Border: Gray/300 #D0D5DD, 1px
6
+ * - Background: Base/White #FFFFFF
7
+ * - Text/Icon: Gray/500 #667085
8
+ * - Typography: Text md/Regular - Inter 16px, weight 400, line-height 24px
9
+ * - Shadow: Shadow/xs 0 1px 2px rgba(16, 24, 40, 0.05)
10
+ * - Border radius: 8px
11
+ */
12
+
13
+ .pisell-lowcode-range-picker-wrap {
14
+ //width: 257px;
15
+ width: 100%;
16
+
17
+ .pisell-lowcode-range {
18
+ font-size: 16px;
19
+ font-weight: 400;
20
+ line-height: 24px;
21
+ letter-spacing: 0;
22
+ color: #667085;
23
+ border-radius: 8px;
24
+ border: 1px solid #d0d5dd;
25
+ background: #ffffff;
26
+ box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
27
+ width: 100%;
28
+ height: 48px;
29
+ min-height: 48px;
30
+ padding: 6px 11px;
31
+
32
+ .pisell-lowcode-picker-input {
33
+ height: 36px;
34
+
35
+ > input {
36
+ font-family: inherit;
37
+ font-size: 16px;
38
+ font-weight: 400;
39
+ line-height: 24px;
40
+ color: #667085;
41
+
42
+ &::placeholder {
43
+ color: #667085;
44
+ opacity: 0.6;
45
+ }
46
+ }
47
+ }
48
+
49
+ .pisell-lowcode-picker-separator {
50
+ color: #667085;
51
+ }
52
+
53
+ .pisell-lowcode-picker-suffix,
54
+ .pisell-lowcode-picker-clear {
55
+ color: #667085;
56
+ }
57
+
58
+ &:hover {
59
+ border-color: #d0d5dd;
60
+ }
61
+
62
+ &.pisell-lowcode-picker-focused {
63
+ border-color: #d0d5dd;
64
+ box-shadow: 0 0 0 2px rgba(16, 24, 40, 0.05);
65
+ }
66
+
67
+ &.pisell-lowcode-picker-large {
68
+ height: 48px;
69
+ min-height: 48px;
70
+ padding: 6px 11px;
71
+
72
+ .pisell-lowcode-picker-input {
73
+ height: 36px;
74
+ }
75
+ }
76
+
77
+ &.pisell-lowcode-picker-small {
78
+ min-height: 32px;
79
+ padding: 2px 7px;
80
+
81
+ .pisell-lowcode-picker-input {
82
+ height: 24px;
83
+ }
84
+
85
+ .pisell-lowcode-picker-input > input {
86
+ font-size: 14px;
87
+ }
88
+ }
89
+ }
90
+ }
@@ -19,12 +19,14 @@ export declare type FilterType = {
19
19
  };
20
20
  /**
21
21
  * 筛选列表项配置
22
+ * - type 为 single/input/rangePicker 等时使用内置或映射组件
23
+ * - type 为 "custom" 时使用 other.component,组件接收 value/onChange(由 Form 注入)
22
24
  */
23
25
  export declare type FilterItemProps = {
24
- type: "single" | "input" | "datePicker" | "rangePicker" | "search";
26
+ type: "single" | "input" | "datePicker" | "rangePicker" | "rangePickerNew" | "search" | "custom";
25
27
  name?: string | string[];
26
28
  key: string;
27
- props: object;
29
+ props?: object;
28
30
  label?: string;
29
31
  sort?: boolean;
30
32
  localFilter?: boolean;
@@ -19,9 +19,19 @@ import classNames from 'classnames';
19
19
  import { Popconfirm, Modal, Popover } from 'antd';
20
20
  import PisellBasicGrid from "../PisellBasicGrid";
21
21
  import GraphicTextCard from "../PisellCards/components/GraphicTextCard";
22
+ import { locales as utilsLocales } from '@pisell/utils';
22
23
  import { getText } from "../../locales";
23
24
  import "./PisellBatchActionBar.less";
24
25
 
26
+ /** 优先 utils;若 utils 返回 key(未命中)则用 materials RecordBoard 再回退 batch-action-bar-* */
27
+ function getBatchBarText(key) {
28
+ var _getText;
29
+ var fullKey = "pisell2.salesManagement.batchActionBar.".concat(key);
30
+ var fromUtils = utilsLocales.getText(fullKey);
31
+ if (fromUtils !== fullKey) return fromUtils;
32
+ return (_getText = getText(fullKey)) !== null && _getText !== void 0 ? _getText : getText("batch-action-bar-".concat(key));
33
+ }
34
+
25
35
  /**
26
36
  * PisellBatchActionBar 批量操作栏组件
27
37
  *
@@ -72,7 +82,7 @@ var PisellBatchActionBar = function PisellBatchActionBar(props) {
72
82
  _props$overflowThresh = props.overflowThreshold,
73
83
  overflowThreshold = _props$overflowThresh === void 0 ? 5 : _props$overflowThresh,
74
84
  _props$moreText = props.moreText,
75
- moreText = _props$moreText === void 0 ? getText('batch-action-bar-more') : _props$moreText,
85
+ moreText = _props$moreText === void 0 ? getBatchBarText('more') : _props$moreText,
76
86
  onSelectAll = props.onSelectAll,
77
87
  onClear = props.onClear,
78
88
  onInvert = props.onInvert,
@@ -166,8 +176,8 @@ var PisellBatchActionBar = function PisellBatchActionBar(props) {
166
176
  return selectedCountText.replace('{count}', String(count));
167
177
  }
168
178
 
169
- // 使用国际化文本,如果返回的是函数则调用它
170
- var i18nText = getText('batch-action-bar-selected-count');
179
+ // 优先 utils locales,无则 materials getText
180
+ var i18nText = getBatchBarText('selectedCount');
171
181
  if (typeof i18nText === 'function') {
172
182
  return i18nText(count);
173
183
  }
@@ -191,7 +201,7 @@ var PisellBatchActionBar = function PisellBatchActionBar(props) {
191
201
  if ((defaultActions === null || defaultActions === void 0 ? void 0 : defaultActions.showSelectAll) !== false) {
192
202
  defaultActionNodes.push( /*#__PURE__*/React.createElement(GraphicTextCard, {
193
203
  key: "select-all",
194
- text: getText('batch-action-bar-select-all'),
204
+ text: getBatchBarText('selectAll'),
195
205
  icon: "pisell2-check-square",
196
206
  variant: "horizontal",
197
207
  size: "small",
@@ -228,7 +238,7 @@ var PisellBatchActionBar = function PisellBatchActionBar(props) {
228
238
  if ((defaultActions === null || defaultActions === void 0 ? void 0 : defaultActions.showInvert) !== false) {
229
239
  defaultActionNodes.push( /*#__PURE__*/React.createElement(GraphicTextCard, {
230
240
  key: "invert",
231
- text: getText('batch-action-bar-invert'),
241
+ text: getBatchBarText('invert'),
232
242
  icon: "pisell2-check-done-01",
233
243
  variant: "horizontal",
234
244
  size: "small",
@@ -265,7 +275,7 @@ var PisellBatchActionBar = function PisellBatchActionBar(props) {
265
275
  if ((defaultActions === null || defaultActions === void 0 ? void 0 : defaultActions.showClear) !== false) {
266
276
  defaultActionNodes.push( /*#__PURE__*/React.createElement(GraphicTextCard, {
267
277
  key: "clear",
268
- text: getText('batch-action-bar-clear'),
278
+ text: getBatchBarText('clear'),
269
279
  icon: "pisell2-square",
270
280
  variant: "horizontal",
271
281
  size: "small",
@@ -302,7 +312,7 @@ var PisellBatchActionBar = function PisellBatchActionBar(props) {
302
312
  if ((defaultActions === null || defaultActions === void 0 ? void 0 : defaultActions.showDelete) !== false) {
303
313
  defaultActionNodes.push( /*#__PURE__*/React.createElement(GraphicTextCard, {
304
314
  key: "delete",
305
- text: getText('batch-action-bar-delete'),
315
+ text: getBatchBarText('delete'),
306
316
  icon: "pisell2-delete_wght300_24px",
307
317
  variant: "horizontal",
308
318
  size: "small",
@@ -328,6 +338,7 @@ var PisellBatchActionBar = function PisellBatchActionBar(props) {
328
338
  height: '48px'
329
339
  },
330
340
  onClick: function onClick() {
341
+ var _deleteConfirmConfig$, _deleteConfirmConfig$2, _deleteConfirmConfig$3, _deleteConfirmConfig$4;
331
342
  // 防止重复点击弹出多个 Modal
332
343
  if (isDeleteModalOpenRef.current) {
333
344
  return;
@@ -337,18 +348,13 @@ var PisellBatchActionBar = function PisellBatchActionBar(props) {
337
348
  isDeleteModalOpenRef.current = true;
338
349
 
339
350
  // 显示确认弹窗
340
- var deleteContent = function () {
341
- var i18nContent = getText('batch-action-bar-delete-confirm-content');
342
- if (typeof i18nContent === 'function') {
343
- return i18nContent(selectionState.selectedCount);
344
- }
345
- return i18nContent || "\u786E\u5B9A\u8981\u5220\u9664\u9009\u4E2D\u7684 ".concat(selectionState.selectedCount, " \u9879\u5417\uFF1F");
346
- }();
351
+ var i18nContent = getBatchBarText('deleteConfirmContent');
352
+ var deleteContent = typeof i18nContent === 'function' ? i18nContent(selectionState.selectedCount) : i18nContent || "\u786E\u5B9A\u8981\u5220\u9664\u9009\u4E2D\u7684 ".concat(selectionState.selectedCount, " \u9879\u5417\uFF1F");
347
353
  Modal.confirm({
348
- title: (deleteConfirmConfig === null || deleteConfirmConfig === void 0 ? void 0 : deleteConfirmConfig.title) || getText('batch-action-bar-delete-confirm-title'),
349
- content: (deleteConfirmConfig === null || deleteConfirmConfig === void 0 ? void 0 : deleteConfirmConfig.description) || deleteContent,
350
- okText: (deleteConfirmConfig === null || deleteConfirmConfig === void 0 ? void 0 : deleteConfirmConfig.okText) || getText('batch-action-bar-delete-confirm-ok'),
351
- cancelText: (deleteConfirmConfig === null || deleteConfirmConfig === void 0 ? void 0 : deleteConfirmConfig.cancelText) || getText('batch-action-bar-delete-confirm-cancel'),
354
+ title: (_deleteConfirmConfig$ = deleteConfirmConfig === null || deleteConfirmConfig === void 0 ? void 0 : deleteConfirmConfig.title) !== null && _deleteConfirmConfig$ !== void 0 ? _deleteConfirmConfig$ : getBatchBarText('deleteConfirmTitle'),
355
+ content: (_deleteConfirmConfig$2 = deleteConfirmConfig === null || deleteConfirmConfig === void 0 ? void 0 : deleteConfirmConfig.description) !== null && _deleteConfirmConfig$2 !== void 0 ? _deleteConfirmConfig$2 : deleteContent,
356
+ okText: (_deleteConfirmConfig$3 = deleteConfirmConfig === null || deleteConfirmConfig === void 0 ? void 0 : deleteConfirmConfig.okText) !== null && _deleteConfirmConfig$3 !== void 0 ? _deleteConfirmConfig$3 : getBatchBarText('deleteConfirmOk'),
357
+ cancelText: (_deleteConfirmConfig$4 = deleteConfirmConfig === null || deleteConfirmConfig === void 0 ? void 0 : deleteConfirmConfig.cancelText) !== null && _deleteConfirmConfig$4 !== void 0 ? _deleteConfirmConfig$4 : getBatchBarText('deleteConfirmCancel'),
352
358
  okButtonProps: {
353
359
  danger: true
354
360
  },
@@ -402,7 +408,7 @@ var PisellBatchActionBar = function PisellBatchActionBar(props) {
402
408
  }) : visibleActions;
403
409
  return sortedActions.map(function (action) {
404
410
  var disabled = typeof action.disabled === 'function' ? action.disabled(selectedKeys, selectedRows) : action.disabled || false;
405
- var card = /*#__PURE__*/React.createElement(GraphicTextCard, _defineProperty(_defineProperty({
411
+ var card = /*#__PURE__*/React.createElement(GraphicTextCard, {
406
412
  key: action.key,
407
413
  text: action.label,
408
414
  icon: action.icon,
@@ -432,20 +438,21 @@ var PisellBatchActionBar = function PisellBatchActionBar(props) {
432
438
  padding: '8px 12px',
433
439
  minWidth: '120px',
434
440
  height: '48px'
435
- }, action.style)
436
- }, "className", action.className), "onClick", function onClick() {
437
- return handleActionClick(action);
438
- }));
441
+ }, action.style),
442
+ onClick: function onClick() {
443
+ return handleActionClick(action);
444
+ }
445
+ });
439
446
 
440
447
  // 如果需要确认弹窗
441
448
  if (action.confirm) {
442
449
  var confirmConfig = _typeof(action.confirm) === 'object' ? action.confirm : {};
443
450
  return /*#__PURE__*/React.createElement(Popconfirm, {
444
451
  key: action.key,
445
- title: confirmConfig.title || getText('batch-action-bar-confirm-title'),
452
+ title: confirmConfig.title || getBatchBarText('confirmTitle'),
446
453
  description: confirmConfig.description,
447
- okText: confirmConfig.okText || getText('batch-action-bar-delete-confirm-ok'),
448
- cancelText: confirmConfig.cancelText || getText('batch-action-bar-delete-confirm-cancel'),
454
+ okText: confirmConfig.okText || getBatchBarText('deleteConfirmOk'),
455
+ cancelText: confirmConfig.cancelText || getBatchBarText('deleteConfirmCancel'),
449
456
  onConfirm: function onConfirm() {
450
457
  return handleActionClick(action);
451
458
  }
@@ -500,9 +507,11 @@ var PisellBatchActionBar = function PisellBatchActionBar(props) {
500
507
  // 克隆溢出按钮并修改样式
501
508
  var modifiedOverflowActions = overflowActions.map(function (action) {
502
509
  if ( /*#__PURE__*/React.isValidElement(action)) {
503
- var _action$props;
504
- return /*#__PURE__*/React.cloneElement(action, {
505
- style: _objectSpread(_objectSpread({}, ((_action$props = action.props) === null || _action$props === void 0 ? void 0 : _action$props.style) || {}), {}, {
510
+ var _el$props;
511
+ var el = action;
512
+ var prevStyle = (_el$props = el.props) === null || _el$props === void 0 ? void 0 : _el$props.style;
513
+ return /*#__PURE__*/React.cloneElement(el, {
514
+ style: _objectSpread(_objectSpread({}, prevStyle || {}), {}, {
506
515
  minWidth: '160px',
507
516
  width: '160px'
508
517
  })
@@ -1,43 +1,181 @@
1
- // PisellCurrency 组件样式
1
+ /**
2
+ * PisellCurrency 组件样式
3
+ * 基于 Figma 设计规范,与 PisellNumber / SingleLineText 设计体系一致,覆盖时使用 pisell-lowcode-xxx
4
+ */
2
5
 
3
6
  .pisell-currency {
4
- // 基础样式
5
7
  display: inline-block;
8
+ width: 100%;
6
9
 
7
- // 只读态样式
8
- &-read {
9
- color: rgba(0, 0, 0, 0.85);
10
- line-height: 1.5715;
11
-
12
- // 货币数值可以加粗显示(可选)
13
- font-weight: 500;
14
- }
15
-
16
- // 编辑态样式
17
10
  &-edit {
18
11
  position: relative;
12
+ width: 100%;
13
+
14
+ // InputNumber 外层(Figma 设计规范,无边框避免双边框)
15
+ .pisell-lowcode-input-number {
16
+ width: 100% !important;
17
+ font-size: 16px !important;
18
+ line-height: 24px !important;
19
+ border-radius: 8px !important;
20
+ border: none !important;
21
+ color: #101828 !important; // Gray/900
22
+ background-color: #ffffff !important;
23
+
24
+ // 内层 input
25
+ .pisell-lowcode-input-number-input {
26
+ height: 46px !important; // 48 - 2px border
27
+ padding: 12px 16px !important;
28
+ font-size: 16px !important;
29
+ line-height: 24px !important;
30
+ color: #101828 !important;
31
+ background: transparent !important;
32
+ border: none !important;
33
+
34
+ &::placeholder {
35
+ color: #667085 !important; // Gray/500
36
+ }
37
+ }
38
+
39
+ // 聚焦态
40
+ &.pisell-lowcode-input-number-focused,
41
+ &:focus,
42
+ &:focus-within {
43
+ border-color: #d6bbfb !important; // Primary/300
44
+ box-shadow: 0 0 0 4px #f4ebff !important; // Primary/100
45
+ outline: none !important;
46
+ }
47
+
48
+ // Hover 态
49
+ &:hover:not(.pisell-lowcode-input-number-disabled):not(.pisell-lowcode-input-number-focused) {
50
+ border-color: #b692f6 !important; // Primary/400
51
+ }
52
+
53
+ // 禁用态
54
+ &.pisell-lowcode-input-number-disabled {
55
+ background-color: #f9fafb !important; // Gray/50
56
+ border-color: #d0d5dd !important;
57
+ cursor: not-allowed !important;
58
+
59
+ .pisell-lowcode-input-number-input {
60
+ color: #98a2b3 !important; // Gray/400
61
+ cursor: not-allowed !important;
62
+ }
63
+ }
64
+
65
+ // 货币符号:前缀
66
+ .pisell-lowcode-input-number-prefix {
67
+ margin-right: 8px;
68
+ margin-left: 16px;
69
+ color: #667085; // Gray/500
70
+ font-size: 16px;
71
+ }
72
+
73
+ // 货币符号:后置(addonAfter)
74
+ .pisell-lowcode-input-number-suffix {
75
+ margin-left: 8px;
76
+ margin-right: 16px;
77
+ color: #667085;
78
+ font-size: 16px;
79
+ }
80
+
81
+ // addonBefore / addonAfter 包裹(InputNumber 后置符号可能用 addon 渲染)
82
+ .pisell-lowcode-input-number-group-addon {
83
+ background-color: #ffffff !important;
84
+ border: 1px solid #d0d5dd !important;
85
+ color: #344054; // Gray/700
86
+ font-size: 16px !important;
87
+ padding: 12px 16px !important;
88
+
89
+ &:first-child {
90
+ border-right: none !important;
91
+ border-radius: 8px 0 0 8px !important;
92
+ }
93
+
94
+ &:last-child {
95
+ border-left: none !important;
96
+ border-radius: 0 8px 8px 0 !important;
97
+ }
98
+ }
99
+
100
+ // 步进器按钮(controls)
101
+ .pisell-lowcode-input-number-handler-wrap {
102
+ border-left: 1px solid #d0d5dd !important;
103
+ background: #ffffff !important;
19
104
 
20
- // 错误提示
21
- .pisell-currency-error {
22
- margin-top: 4px;
23
- color: #ff4d4f;
24
- font-size: 14px;
25
- line-height: 1.5;
105
+ .pisell-lowcode-input-number-handler {
106
+ color: #667085;
107
+ border-color: #d0d5dd;
108
+
109
+ &:hover {
110
+ color: #344054;
111
+ }
112
+
113
+ &.pisell-lowcode-input-number-handler-up-disabled,
114
+ &.pisell-lowcode-input-number-handler-down-disabled {
115
+ color: #98a2b3;
116
+ cursor: not-allowed;
117
+ }
118
+ }
119
+ }
120
+
121
+ // 错误状态
122
+ &.pisell-lowcode-input-number-status-error {
123
+ border-color: #fda29b !important; // Error/300
124
+
125
+ &.pisell-lowcode-input-number-focused,
126
+ &:focus-within {
127
+ border-color: #f97066 !important; // Error/400
128
+ box-shadow: 0 0 0 4px #fee4e2 !important; // Error/100
129
+ }
130
+
131
+ &:hover:not(:focus-within) {
132
+ border-color: #f97066 !important;
133
+ }
134
+ }
26
135
  }
27
136
  }
28
137
 
29
- // 禁用态样式
138
+ // 错误提示(与设计体系一致)
139
+ &-error {
140
+ margin-top: 4px;
141
+ font-size: 12px;
142
+ color: #d92d20; // Error/600
143
+ line-height: 1.5;
144
+ animation: pisell-currency-fadeIn 0.3s ease-in-out;
145
+ }
146
+
147
+ // 只读态(Figma: Gray/900, 16px, Medium, line-height 24px)
148
+ &-read {
149
+ color: #101828; // Gray/900
150
+ font-size: 16px;
151
+ font-weight: 500;
152
+ line-height: 24px;
153
+ letter-spacing: 0;
154
+ }
155
+
30
156
  &-disabled {
31
- // 继承 Ant Design InputNumber 的禁用样式
157
+ opacity: 0.4;
158
+ cursor: not-allowed;
32
159
  }
33
-
34
- // 负数显示为红色(可选)
160
+
161
+ // 负数显示(与设计体系 Error 色一致)
35
162
  &.negative {
36
- color: #ff4d4f;
163
+ color: #d92d20; // Error/600
37
164
  }
38
-
39
- // 正数显示为绿色(可选,用于收益场景)
165
+
166
+ // 正数高亮(收益等场景)
40
167
  &.positive {
41
168
  color: #52c41a;
42
169
  }
43
170
  }
171
+
172
+ @keyframes pisell-currency-fadeIn {
173
+ from {
174
+ opacity: 0;
175
+ transform: translateY(-4px);
176
+ }
177
+ to {
178
+ opacity: 1;
179
+ transform: translateY(0);
180
+ }
181
+ }
@@ -13,7 +13,7 @@ import { Form, Table } from 'antd';
13
13
  * PisellCurrency 组件 Storybook
14
14
  */
15
15
  var meta = {
16
- title: 'Components/PisellCurrency',
16
+ title: '表单/表单组件/PisellCurrency',
17
17
  component: PisellCurrency,
18
18
  tags: ['autodocs'],
19
19
  argTypes: {
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * PisellCurrency 组件导出
3
3
  */
4
- export { default as PisellCurrency } from './PisellCurrency';
4
+ import PisellCurrency from './PisellCurrency';
5
+ export { PisellCurrency };
5
6
  export type { PisellCurrencyProps } from './types';
6
7
  export type { DisplayState, ValidationResult, NumberInputState, BaseNumberInputProps } from './types';