@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
@@ -24,6 +24,7 @@ __export(localeUtils_exports, {
24
24
  normalizeLocale: () => normalizeLocale
25
25
  });
26
26
  module.exports = __toCommonJS(localeUtils_exports);
27
+ var import_utils = require("@pisell/utils");
27
28
  var import_locale = require("../../../utils/locale");
28
29
  function normalizeLocale(locale) {
29
30
  return locale.toLowerCase();
@@ -32,11 +33,18 @@ function isChinese(locale) {
32
33
  const normalizedLocale = normalizeLocale(locale);
33
34
  return normalizedLocale.startsWith("zh");
34
35
  }
36
+ function toDayjsLoadedLocale(normalized) {
37
+ if (normalized.startsWith("en")) return "en";
38
+ return normalized;
39
+ }
35
40
  function getDayjsLocale(locale) {
36
41
  if (!locale) {
37
- return normalizeLocale((0, import_locale.getCurrentLocale)());
42
+ const fromMaterials = (0, import_locale.getCurrentLocale)();
43
+ const fromUtils = typeof import_utils.locales.getLocale === "function" ? import_utils.locales.getLocale() : void 0;
44
+ const raw = (fromMaterials && fromMaterials !== "en-US" ? fromMaterials : void 0) || (typeof fromUtils === "string" && fromUtils ? fromUtils : void 0) || fromMaterials;
45
+ return toDayjsLoadedLocale(normalizeLocale(raw));
38
46
  }
39
- return normalizeLocale(locale);
47
+ return toDayjsLoadedLocale(normalizeLocale(locale));
40
48
  }
41
49
  // Annotate the CommonJS export names for ESM import in node:
42
50
  0 && (module.exports = {
@@ -15,6 +15,7 @@ export declare type RelativeDay = 'today' | 'yesterday' | 'tomorrow';
15
15
  export declare function getRelativeDay(date: Dayjs, reference: Dayjs): RelativeDay | null;
16
16
  /**
17
17
  * 根据 locale 返回相对日期的展示文案
18
+ * 未传 locale 时使用 getDayjsLocale()(与 locales.getLocale 同源)
18
19
  *
19
20
  * @param day 'today' | 'yesterday' | 'tomorrow'
20
21
  * @param locale dayjs locale,如 'zh-cn'、'en'
@@ -44,7 +44,8 @@ function getRelativeDay(date, reference) {
44
44
  return null;
45
45
  }
46
46
  function getRelativeDayLabel(day, locale) {
47
- const isZh = locale ? (0, import_localeUtils.isChinese)(locale) : false;
47
+ const resolvedLocale = locale ?? (0, import_localeUtils.getDayjsLocale)();
48
+ const isZh = (0, import_localeUtils.isChinese)(resolvedLocale);
48
49
  return isZh ? LABELS_ZH[day] : LABELS_EN[day];
49
50
  }
50
51
  // Annotate the CommonJS export names for ESM import in node:
@@ -1,31 +1,129 @@
1
1
  /**
2
2
  * PisellEmail 组件样式
3
+ * 基于 Figma 设计规范,与 SingleLineText 设计体系一致
3
4
  */
4
5
 
5
6
  .pisell-email {
6
7
  &-edit {
8
+ position: relative;
7
9
  width: 100%;
8
10
 
9
- // 错误提示样式
10
- &-error {
11
- margin-top: 4px;
12
- font-size: 12px;
13
- color: #ff4d4f;
14
- line-height: 1.5;
11
+ // 仅对 affix-wrapper 设边框,避免与内层 input 双边框(Figma 设计规范)
12
+ .pisell-lowcode-input-affix-wrapper {
13
+ font-size: 16px !important;
14
+ line-height: 24px !important;
15
+ border-radius: 8px !important;
16
+ border: 1px solid #d0d5dd !important; // Gray/300
17
+ padding: 0 !important;
18
+ height: 48px !important;
19
+ color: #101828 !important; // Gray/900
20
+ background-color: #ffffff !important;
21
+
22
+ &:focus,
23
+ &:focus-within {
24
+ border-color: #d6bbfb !important; // Primary/300
25
+ box-shadow: 0 0 0 4px #f4ebff !important; // Primary/100
26
+ outline: none !important;
27
+ }
28
+
29
+ &:hover:not(:focus):not(:focus-within):not([disabled]) {
30
+ border-color: #b692f6 !important; // Primary/400
31
+ }
32
+
33
+ &[disabled],
34
+ &.pisell-lowcode-input-disabled {
35
+ background-color: #f9fafb !important; // Gray/50
36
+ color: #98a2b3 !important; // Gray/400
37
+ border-color: #d0d5dd !important;
38
+ cursor: not-allowed !important;
39
+ }
15
40
  }
41
+
42
+ // 内层 input(无边框,由 wrapper 统一描边)
43
+ .pisell-lowcode-input-affix-wrapper .pisell-lowcode-input {
44
+ &::placeholder {
45
+ color: #667085 !important; // Gray/500
46
+ }
47
+ }
48
+
49
+ // 带前缀(邮箱图标)的 Input 容器
50
+ .pisell-lowcode-input-affix-wrapper {
51
+
52
+ .pisell-lowcode-input-prefix {
53
+ margin-right: 8px;
54
+ margin-left: 16px;
55
+ color: #667085; // Gray/500
56
+ font-size: 16px;
57
+ }
58
+
59
+ .pisell-lowcode-input-suffix {
60
+ margin-left: 8px;
61
+ margin-right: 16px;
62
+ color: #667085;
63
+ font-size: 16px;
64
+ }
65
+
66
+ .pisell-lowcode-input {
67
+ padding: 12px 0 !important;
68
+ border: none !important;
69
+ box-shadow: none !important;
70
+
71
+ &:focus {
72
+ box-shadow: none !important;
73
+ }
74
+ }
75
+ }
76
+
77
+ // 清空按钮
78
+ .pisell-lowcode-input-clear-icon {
79
+ color: #667085 !important;
80
+ font-size: 14px !important;
81
+
82
+ &:hover {
83
+ color: #344054 !important; // Gray/700
84
+ }
85
+ }
86
+
87
+ // 错误状态
88
+ .pisell-lowcode-input-status-error,
89
+ .pisell-lowcode-input-affix-wrapper-status-error {
90
+ border-color: #fda29b !important; // Error/300
91
+
92
+ &:focus,
93
+ &:focus-within {
94
+ border-color: #f97066 !important; // Error/400
95
+ box-shadow: 0 0 0 4px #fee4e2 !important; // Error/100
96
+ }
97
+
98
+ &:hover:not(:focus):not(:focus-within) {
99
+ border-color: #f97066 !important; // Error/400
100
+ }
101
+ }
102
+ }
103
+
104
+ // 错误提示(与设计体系一致)
105
+ &-edit-error {
106
+ margin-top: 4px;
107
+ font-size: 12px;
108
+ color: #d92d20; // Error/600
109
+ line-height: 1.5;
110
+ animation: pisell-email-fadeIn 0.3s ease-in-out;
16
111
  }
17
112
 
18
113
  &-read {
19
114
  display: inline-flex;
20
115
  align-items: center;
21
116
 
22
- // 链接样式
23
117
  .pisell-lowcode-typography-link {
24
118
  cursor: pointer;
25
- transition: all 0.3s;
119
+ transition: color 0.2s ease-in-out;
26
120
 
27
121
  &:hover {
28
- opacity: 0.8;
122
+ color: #6d48c4 !important;
123
+ }
124
+
125
+ &:active {
126
+ color: #5f3da8 !important;
29
127
  }
30
128
  }
31
129
  }
@@ -40,7 +138,7 @@
40
138
  }
41
139
  }
42
140
 
43
- // AutoComplete 下拉样式优化
141
+ // AutoComplete 下拉样式
44
142
  .pisell-email-autocomplete-dropdown {
45
143
  .pisell-lowcode-select-item-option-content {
46
144
  display: flex;
@@ -48,3 +146,14 @@
48
146
  gap: 8px;
49
147
  }
50
148
  }
149
+
150
+ @keyframes pisell-email-fadeIn {
151
+ from {
152
+ opacity: 0;
153
+ transform: translateY(-4px);
154
+ }
155
+ to {
156
+ opacity: 1;
157
+ transform: translateY(0);
158
+ }
159
+ }
@@ -60,7 +60,7 @@ module.exports = __toCommonJS(PisellEmail_stories_exports);
60
60
  var import_PisellEmail = require("./PisellEmail");
61
61
  var import_react = __toESM(require("react"));
62
62
  var meta = {
63
- title: "表单/PisellEmail",
63
+ title: "表单/表单组件/PisellEmail",
64
64
  component: import_PisellEmail.PisellEmail,
65
65
  parameters: {
66
66
  layout: "centered",
@@ -1,5 +1,7 @@
1
1
  /**
2
2
  * PisellEmail 组件导出文件
3
3
  */
4
- export { PisellEmail, default } from './PisellEmail';
4
+ import PisellEmail from './PisellEmail';
5
+ export { PisellEmail };
6
+ export default PisellEmail;
5
7
  export type { PisellEmailProps, MailtoOptions } from './types';
@@ -29,11 +29,19 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
29
29
  // src/components/pisellEmail/index.tsx
30
30
  var pisellEmail_exports = {};
31
31
  __export(pisellEmail_exports, {
32
- PisellEmail: () => import_PisellEmail.PisellEmail,
33
- default: () => import_PisellEmail.default
32
+ PisellEmail: () => import_PisellEmail.default,
33
+ default: () => pisellEmail_default
34
34
  });
35
35
  module.exports = __toCommonJS(pisellEmail_exports);
36
+ var import_locales = require("../../locales");
36
37
  var import_PisellEmail = __toESM(require("./PisellEmail"));
38
+ import_PisellEmail.default.SortOptions = {
39
+ getSortItems: (fieldKey) => [
40
+ { key: `${fieldKey}:asc`, label: (0, import_locales.getText)("sort-a-z") },
41
+ { key: `${fieldKey}:desc`, label: (0, import_locales.getText)("sort-z-a") }
42
+ ]
43
+ };
44
+ var pisellEmail_default = import_PisellEmail.default;
37
45
  // Annotate the CommonJS export names for ESM import in node:
38
46
  0 && (module.exports = {
39
47
  PisellEmail
@@ -43,38 +43,109 @@ var PisellFilter = (props) => {
43
43
  hiddenQuickFilter = true,
44
44
  hiddenOtherFilter = false,
45
45
  hasForm = true,
46
+ onChange,
46
47
  ...otherProps
47
48
  } = props;
48
- const [value, setValue] = (0, import_react.useState)({});
49
+ const [form] = import_antd.Form.useForm();
50
+ const [value, setValue] = (0, import_react.useState)(() => ({
51
+ quickFilter: (originalValue == null ? void 0 : originalValue.quickFilter) || [],
52
+ otherFilter: (originalValue == null ? void 0 : originalValue.otherFilter) || [],
53
+ values: (originalValue == null ? void 0 : originalValue.values) || {}
54
+ }));
55
+ const isInternalChange = (0, import_react.useRef)(false);
49
56
  (0, import_react.useEffect)(() => {
50
- setValue({
51
- quickFilter: (originalValue == null ? void 0 : originalValue.quickFilter) || [],
52
- otherFilter: (originalValue == null ? void 0 : originalValue.otherFilter) || []
53
- });
54
- }, [originalValue]);
57
+ setValue((prev) => ({
58
+ quickFilter: (originalValue == null ? void 0 : originalValue.quickFilter) ?? prev.quickFilter,
59
+ otherFilter: (originalValue == null ? void 0 : originalValue.otherFilter) ?? prev.otherFilter,
60
+ values: (originalValue == null ? void 0 : originalValue.values) ?? prev.values ?? {}
61
+ }));
62
+ }, [
63
+ originalValue == null ? void 0 : originalValue.quickFilter,
64
+ originalValue == null ? void 0 : originalValue.otherFilter,
65
+ originalValue == null ? void 0 : originalValue.values
66
+ ]);
67
+ (0, import_react.useEffect)(() => {
68
+ if (!hasForm || typeof (originalValue == null ? void 0 : originalValue.values) !== "object") return;
69
+ if (isInternalChange.current) {
70
+ isInternalChange.current = false;
71
+ return;
72
+ }
73
+ const nextValues = (originalValue == null ? void 0 : originalValue.values) ?? {};
74
+ if (Object.keys(nextValues).length === 0) {
75
+ const current = form.getFieldsValue(true);
76
+ const cleared = Object.keys(current).reduce(
77
+ (acc, k) => {
78
+ acc[k] = void 0;
79
+ return acc;
80
+ },
81
+ {}
82
+ );
83
+ if (Object.keys(cleared).length > 0) {
84
+ form.setFieldsValue(cleared);
85
+ }
86
+ } else {
87
+ form.setFieldsValue(nextValues);
88
+ }
89
+ }, [hasForm, form, originalValue == null ? void 0 : originalValue.values]);
90
+ const handleChange = (0, import_react.useCallback)(
91
+ (newVal) => {
92
+ setValue((prev) => ({
93
+ ...prev,
94
+ ...newVal,
95
+ values: newVal.values ?? prev.values
96
+ }));
97
+ onChange == null ? void 0 : onChange(newVal);
98
+ },
99
+ [onChange]
100
+ );
101
+ const handleFormValuesChange = (0, import_react.useCallback)(
102
+ (_, allValues) => {
103
+ if (typeof allValues !== "object" || allValues === null) return;
104
+ isInternalChange.current = true;
105
+ const mergedValues = { ...value.values, ...allValues };
106
+ const next = {
107
+ quickFilter: value.quickFilter,
108
+ otherFilter: value.otherFilter,
109
+ values: mergedValues
110
+ };
111
+ setValue(next);
112
+ onChange == null ? void 0 : onChange(next);
113
+ },
114
+ [value.quickFilter, value.otherFilter, value.values, onChange]
115
+ );
55
116
  const content = (0, import_react.useMemo)(() => {
56
117
  return /* @__PURE__ */ import_react.default.createElement(
57
118
  import_FilterButton.default,
58
119
  {
59
120
  ...otherProps,
121
+ onChange: handleChange,
60
122
  value: {
61
123
  quickFilter: value.quickFilter,
62
124
  otherFilter: value.otherFilter
63
125
  },
64
126
  hiddenQuickFilter,
65
127
  hiddenOtherFilter,
66
- onChange: setValue,
67
128
  quickFilterMaxLength: quickFilterMaxLength || 100,
68
129
  formFiltersPrefix: formFiltersPrefix || ""
69
130
  }
70
131
  );
71
- }, [value, hiddenQuickFilter, hiddenOtherFilter, quickFilterMaxLength, formFiltersPrefix]);
132
+ }, [
133
+ value,
134
+ hiddenQuickFilter,
135
+ hiddenOtherFilter,
136
+ quickFilterMaxLength,
137
+ formFiltersPrefix,
138
+ handleChange
139
+ ]);
72
140
  if (hasForm) {
73
141
  return /* @__PURE__ */ import_react.default.createElement(
74
142
  import_antd.Form,
75
143
  {
144
+ form,
76
145
  size: "large",
77
146
  layout: "vertical",
147
+ initialValues: value.values,
148
+ onValuesChange: handleFormValuesChange,
78
149
  ...otherProps
79
150
  },
80
151
  content
@@ -33,14 +33,23 @@ __export(pisellFind_exports, {
33
33
  });
34
34
  module.exports = __toCommonJS(pisellFind_exports);
35
35
  var import_react = __toESM(require("react"));
36
+ var import_utils = require("@pisell/utils");
36
37
  var import_pisellLookup = require("../pisellLookup");
37
38
  var import_locales = require("../../locales");
38
39
  var PisellFind = (0, import_react.forwardRef)((props, ref) => {
39
40
  const {
40
41
  // 提取需要设置默认值的 Props
41
42
  triggerType = "button",
42
- buttonText = (0, import_locales.getText)("pisell-find-button-text"),
43
- placeholder = (0, import_locales.getText)("pisell-find-placeholder"),
43
+ buttonText = (() => {
44
+ const key = "pisell2.recordBoard.toolbar.find";
45
+ const u = import_utils.locales.getText(key);
46
+ return u && u !== key ? u : (0, import_locales.getText)(key) || (0, import_locales.getText)("pisell-find-button-text");
47
+ })(),
48
+ placeholder = (() => {
49
+ const key = "pisell2.recordBoard.toolbar.findPlaceholder";
50
+ const u = import_utils.locales.getText(key);
51
+ return u && u !== key ? u : (0, import_locales.getText)(key) || (0, import_locales.getText)("pisell-find-placeholder");
52
+ })(),
44
53
  showConfirmButton = false,
45
54
  showHistory = true,
46
55
  historyKey = "pisell_find_history",
@@ -14,6 +14,7 @@
14
14
  /**
15
15
  * 工具栏行通用样式
16
16
  */
17
+
17
18
  &-row {
18
19
  display: flex;
19
20
  flex-direction: row;
@@ -21,8 +22,10 @@
21
22
  gap: 12px;
22
23
  align-self: stretch;
23
24
  }
25
+
24
26
  .toolbar-row {
25
27
  justify-content: space-between;
28
+
26
29
  &-left {
27
30
  display: flex;
28
31
  flex-direction: row;
@@ -40,3 +43,23 @@
40
43
  }
41
44
  }
42
45
  }
46
+
47
+ /**
48
+ * 手机版宽度:左侧区域与右侧区域换行,避免挤在一行
49
+ */
50
+ @media (max-width: 768px) {
51
+ .pisell-grid-pro-toolbar .toolbar-row {
52
+ flex-wrap: wrap;
53
+ }
54
+
55
+ .pisell-grid-pro-toolbar .toolbar-row-left {
56
+ flex: 1 1 100%;
57
+ min-width: 0;
58
+ }
59
+
60
+ .pisell-grid-pro-toolbar .toolbar-row-right {
61
+ flex: 1 1 100%;
62
+ min-width: 0;
63
+ justify-content: flex-start;
64
+ }
65
+ }
@@ -0,0 +1,4 @@
1
+ import { GridProProps } from './GridPro';
2
+ export type { GridProProps };
3
+ declare const PisellGridPro: any;
4
+ export default PisellGridPro;
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * PisellLongText 组件样式
3
+ * 基于 Figma 设计规范,与 SingleLineText 设计体系一致
3
4
  */
4
5
 
5
6
  .pisell-long-text {
@@ -7,16 +8,78 @@
7
8
  position: relative;
8
9
  width: 100%;
9
10
 
10
- // 基于 Figma 设计规范的 TextArea 样式
11
+ // TextArea 样式(Figma 设计规范,覆盖时使用 pisell-lowcode-xxx)
11
12
  .pisell-lowcode-input {
12
- padding: 12px 14px; // Figma: 垂直12px,水平14px(比 Input 小2px)
13
+ // 基础样式
14
+ font-size: 16px !important;
15
+ line-height: 24px !important;
16
+
17
+ // 边框和圆角
18
+ border-radius: 8px !important;
19
+ border: 1px solid #d0d5dd !important; // Gray/300
20
+
21
+ // 内边距(Figma: 垂直 12px,水平 14px)
22
+ padding: 12px 14px !important;
23
+ min-height: 80px !important; // 多行最小高度,由 rows 进一步控制
24
+
25
+ // 颜色
26
+ color: #101828 !important; // Gray/900
27
+ background-color: #ffffff !important;
28
+
29
+ &::placeholder {
30
+ color: #667085 !important; // Gray/500
31
+ }
32
+
33
+ // 聚焦态
34
+ &:focus,
35
+ &:focus-within {
36
+ border-color: #d6bbfb !important; // Primary/300
37
+ box-shadow: 0 0 0 4px #f4ebff !important; // Primary/100
38
+ outline: none !important;
39
+ }
40
+
41
+ // Hover 态
42
+ &:hover:not(:focus):not(:focus-within):not([disabled]) {
43
+ border-color: #b692f6 !important; // Primary/400
44
+ }
45
+
46
+ // 禁用态
47
+ &[disabled],
48
+ &.pisell-lowcode-input-disabled {
49
+ background-color: #f9fafb !important; // Gray/50
50
+ color: #98a2b3 !important; // Gray/400
51
+ border-color: #d0d5dd !important;
52
+ cursor: not-allowed !important;
53
+ }
54
+ }
55
+
56
+ // 字数统计样式(TextArea showCount)
57
+ .pisell-lowcode-input-data-count,
58
+ .pisell-lowcode-input-show-count-suffix {
59
+ color: #667085 !important; // Gray/500
60
+ font-size: 14px !important;
61
+ }
62
+
63
+ // 错误状态
64
+ .pisell-lowcode-input-status-error {
65
+ border-color: #fda29b !important; // Error/300
66
+
67
+ &:focus,
68
+ &:focus-within {
69
+ border-color: #f97066 !important; // Error/400
70
+ box-shadow: 0 0 0 4px #fee4e2 !important; // Error/100
71
+ }
72
+
73
+ &:hover:not(:focus):not(:focus-within) {
74
+ border-color: #f97066 !important; // Error/400
75
+ }
13
76
  }
14
77
  }
15
78
 
16
79
  &-error {
17
80
  margin-top: 4px;
18
81
  font-size: 12px;
19
- color: #ff4d4f;
82
+ color: #d92d20; // Error/600
20
83
  line-height: 1.5;
21
84
  animation: fadeIn 0.3s ease-in-out;
22
85
  }
@@ -32,12 +95,17 @@
32
95
  height: auto;
33
96
  font-size: 14px;
34
97
  margin-top: 8px;
98
+ color: #6d48c4;
99
+
100
+ &:hover {
101
+ color: #6d48c4 !important;
102
+ }
35
103
  }
36
104
 
37
105
  &-word-count {
38
106
  margin-top: 8px;
39
107
  font-size: 12px;
40
- color: #667085;
108
+ color: #667085; // Gray/500
41
109
  text-align: right;
42
110
  }
43
111
 
@@ -62,7 +62,7 @@ module.exports = __toCommonJS(PisellLongText_stories_exports);
62
62
  var import_PisellLongText = require("./PisellLongText");
63
63
  var import_react = __toESM(require("react"));
64
64
  var meta = {
65
- title: "表单/PisellLongText",
65
+ title: "表单/表单组件/PisellLongText",
66
66
  component: import_PisellLongText.PisellLongText,
67
67
  parameters: {
68
68
  layout: "centered",
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * PisellLongText 组件导出
3
3
  */
4
- export { default as PisellLongText } from './PisellLongText';
4
+ import PisellLongText from './PisellLongText';
5
+ export { PisellLongText };
5
6
  export type { PisellLongTextProps } from './types';
6
7
  export type { DisplayState, ValidationResult, TextInputState } from './types';
@@ -32,7 +32,14 @@ __export(pisellLongText_exports, {
32
32
  PisellLongText: () => import_PisellLongText.default
33
33
  });
34
34
  module.exports = __toCommonJS(pisellLongText_exports);
35
+ var import_locales = require("../../locales");
35
36
  var import_PisellLongText = __toESM(require("./PisellLongText"));
37
+ import_PisellLongText.default.SortOptions = {
38
+ getSortItems: (fieldKey) => [
39
+ { key: `${fieldKey}:asc`, label: (0, import_locales.getText)("sort-a-z") },
40
+ { key: `${fieldKey}:desc`, label: (0, import_locales.getText)("sort-z-a") }
41
+ ]
42
+ };
36
43
  // Annotate the CommonJS export names for ESM import in node:
37
44
  0 && (module.exports = {
38
45
  PisellLongText
@@ -253,9 +253,13 @@ var PisellLookupComponent = (0, import_react.forwardRef)((props, ref) => {
253
253
  }, 200);
254
254
  }
255
255
  }, [displayType, close]);
256
- const handleConfirm = (0, import_react.useCallback)(() => {
257
- handleConfirmSearch(keyword);
258
- }, [keyword, handleConfirmSearch]);
256
+ const handleConfirm = (0, import_react.useCallback)(
257
+ (valueFromTrigger) => {
258
+ const keywordToSearch = valueFromTrigger ?? keyword;
259
+ handleConfirmSearch(keywordToSearch);
260
+ },
261
+ [keyword, handleConfirmSearch]
262
+ );
259
263
  const handleClear = (0, import_react.useCallback)(() => {
260
264
  isManualSelectRef.current = true;
261
265
  setKeyword("");
@@ -353,12 +357,14 @@ var PisellLookupComponent = (0, import_react.forwardRef)((props, ref) => {
353
357
  }
354
358
  return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lookup-result" }, resultRender(keyword, close));
355
359
  };
360
+ const hasAuxiliaryContent = showHistory && history.length > 0 || showSuggestions && suggestions.length > 0 && !!keyword || showHotWords && hotWords.length > 0 && !keyword;
361
+ const hasResultsContent = Boolean(loading || keyword && resultRender);
356
362
  const renderContent = () => {
357
- const auxiliary = renderAuxiliary();
358
- const results = renderResults();
359
- if (!auxiliary && !results) {
363
+ if (!hasAuxiliaryContent && !hasResultsContent) {
360
364
  return null;
361
365
  }
366
+ const auxiliary = renderAuxiliary();
367
+ const results = renderResults();
362
368
  return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lookup-content" }, auxiliary, results);
363
369
  };
364
370
  if (displayType === "inline" || displayType === "popup") {