@pisell/materials 3.3.85 → 3.3.86

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 (384) 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/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
  16. package/es/components/dataSourceComponents/fields/index.d.ts +2 -3
  17. package/es/components/filter/components/Dropdown/index.js +6 -2
  18. package/es/components/filter/components/FilterButton/index.js +19 -4
  19. package/es/components/filter/components/FilterButton/types.d.ts +8 -0
  20. package/es/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.d.ts +21 -0
  21. package/es/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.js +90 -0
  22. package/es/components/filter/components/FilterItem/index.d.ts +3 -3
  23. package/es/components/filter/components/FilterItem/index.js +138 -7
  24. package/es/components/filter/components/FilterItem/index.less +90 -0
  25. package/es/components/filter/types.d.ts +4 -2
  26. package/es/components/pisellBatchActionBar/PisellBatchActionBar.js +38 -29
  27. package/es/components/pisellCurrency/PisellCurrency.less +163 -25
  28. package/es/components/pisellCurrency/PisellCurrency.stories.js +1 -1
  29. package/es/components/pisellCurrency/index.d.ts +2 -1
  30. package/es/components/pisellCurrency/index.js +16 -1
  31. package/es/components/pisellDataSourceContainer/components/ColumnsSetting/index.d.ts +7 -1
  32. package/es/components/pisellDataSourceContainer/components/ColumnsSetting/index.js +30 -3
  33. package/es/components/pisellDataSourceContainer/components/ColumnsSetting/utils.d.ts +28 -0
  34. package/es/components/pisellDataSourceContainer/components/ColumnsSetting/utils.js +68 -0
  35. package/es/components/pisellDataSourceContainer/components/Table/index.d.ts +1 -0
  36. package/es/components/pisellDataSourceContainer/components/Table/index.js +5 -3
  37. package/es/components/pisellDataSourceContainer/components/Table/useColumns.d.ts +1 -0
  38. package/es/components/pisellDataSourceContainer/components/Table/useColumns.js +37 -15
  39. package/es/components/pisellDateTimeDisplay/PisellDateTimeDisplay.js +21 -15
  40. package/es/components/pisellDateTimeDisplay/PisellDateTimeDisplay.less +2 -1
  41. package/es/components/pisellDateTimeDisplay/hooks/useCurrentTime.js +6 -4
  42. package/es/components/pisellDateTimeDisplay/utils/localeUtils.d.ts +2 -2
  43. package/es/components/pisellDateTimeDisplay/utils/localeUtils.js +15 -4
  44. package/es/components/pisellDateTimeDisplay/utils/relativeDay.d.ts +1 -0
  45. package/es/components/pisellDateTimeDisplay/utils/relativeDay.js +4 -2
  46. package/es/components/pisellEmail/PisellEmail.less +119 -10
  47. package/es/components/pisellEmail/PisellEmail.stories.js +1 -1
  48. package/es/components/pisellEmail/index.d.ts +3 -1
  49. package/es/components/pisellEmail/index.js +17 -1
  50. package/es/components/pisellFilter/index.js +76 -10
  51. package/es/components/pisellFind/index.js +11 -2
  52. package/es/components/pisellGridPro/ToolBar/index.less +23 -0
  53. package/es/components/pisellGridPro/index.d.ts +4 -0
  54. package/es/components/pisellLongText/PisellLongText.less +72 -4
  55. package/es/components/pisellLongText/PisellLongText.stories.js +1 -1
  56. package/es/components/pisellLongText/index.d.ts +2 -1
  57. package/es/components/pisellLongText/index.js +16 -1
  58. package/es/components/pisellLookup/PisellLookup.js +18 -9
  59. package/es/components/pisellLookup/PisellLookup.less +39 -16
  60. package/es/components/pisellLookup/components/LookupTrigger.js +14 -4
  61. package/es/components/pisellMultipleSelect/PisellMultipleSelect.less +159 -124
  62. package/es/components/pisellMultipleSelect/PisellMultipleSelect.stories.js +1 -1
  63. package/es/components/pisellMultipleSelect/components/EditView.js +8 -2
  64. package/es/components/pisellMultipleSelect/components/ReadOnlyView.d.ts +1 -1
  65. package/es/components/pisellMultipleSelect/components/ReadOnlyView.js +15 -11
  66. package/es/components/pisellMultipleSelect/index.d.ts +2 -1
  67. package/es/components/pisellMultipleSelect/index.js +16 -1
  68. package/es/components/pisellNumber/PisellNumber.less +135 -17
  69. package/es/components/pisellNumber/PisellNumber.stories.js +1 -1
  70. package/es/components/pisellNumber/index.d.ts +2 -1
  71. package/es/components/pisellNumber/index.js +16 -1
  72. package/es/components/pisellPercent/PisellPercent.less +142 -24
  73. package/es/components/pisellPercent/PisellPercent.stories.js +1 -1
  74. package/es/components/pisellPercent/index.d.ts +2 -1
  75. package/es/components/pisellPercent/index.js +16 -1
  76. package/es/components/pisellPhone/PisellPhone.less +122 -27
  77. package/es/components/pisellPhone/PisellPhone.stories.js +1 -1
  78. package/es/components/pisellPhone/components/EditView.js +1 -1
  79. package/es/components/pisellPhone/components/ReadOnlyView.js +15 -6
  80. package/es/components/pisellPhone/index.d.ts +2 -1
  81. package/es/components/pisellPhone/index.js +16 -1
  82. package/es/components/pisellRating/PisellRating.less +20 -12
  83. package/es/components/pisellRating/PisellRating.stories.js +1 -1
  84. package/es/components/pisellRating/index.d.ts +2 -1
  85. package/es/components/pisellRating/index.js +16 -1
  86. package/es/components/pisellRecordBoard/PisellRecordBoard.d.ts +8 -0
  87. package/es/components/pisellRecordBoard/PisellRecordBoard.js +243 -0
  88. package/es/components/pisellRecordBoard/PisellRecordBoard.stories.d.ts +81 -0
  89. package/es/components/pisellRecordBoard/PisellRecordBoard.stories.js +2358 -0
  90. package/es/components/pisellRecordBoard/context/RecordBoardContext.js +2 -0
  91. package/es/components/pisellRecordBoard/context/RecordBoardProvider.js +13 -0
  92. package/es/components/pisellRecordBoard/hooks/useRecordBoardContext.js +29 -0
  93. package/es/components/pisellRecordBoard/index.d.ts +35 -0
  94. package/es/components/pisellRecordBoard/index.js +23 -0
  95. package/es/components/pisellRecordBoard/layouts/CardLayout/CardList.js +36 -0
  96. package/es/components/pisellRecordBoard/layouts/CardLayout/index.js +20 -0
  97. package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +14 -0
  98. package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.js +242 -0
  99. package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.less +100 -0
  100. package/es/components/pisellRecordBoard/layouts/GridLayout/index.d.ts +13 -0
  101. package/es/components/pisellRecordBoard/layouts/GridLayout/index.js +20 -0
  102. package/es/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +8 -0
  103. package/es/components/pisellRecordBoard/shellFrame/BatchActionBar/index.js +90 -0
  104. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.d.ts +15 -0
  105. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.js +138 -0
  106. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.d.ts +8 -0
  107. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +66 -0
  108. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.less +2 -0
  109. package/es/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +14 -0
  110. package/es/components/pisellRecordBoard/shellFrame/Pagination/index.js +66 -0
  111. package/es/components/pisellRecordBoard/shellFrame/Pagination/index.less +78 -0
  112. package/es/components/pisellRecordBoard/shellFrame/Search/index.d.ts +10 -0
  113. package/es/components/pisellRecordBoard/shellFrame/Search/index.js +41 -0
  114. package/es/components/pisellRecordBoard/shellFrame/ToolBar/ToolBarFilter.less +112 -0
  115. package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +11 -0
  116. package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.js +215 -0
  117. package/es/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.d.ts +17 -0
  118. package/es/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.js +77 -0
  119. package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.d.ts +16 -0
  120. package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.js +65 -0
  121. package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.less +41 -0
  122. package/es/components/pisellRecordBoard/shellFrame/index.d.ts +26 -0
  123. package/es/components/pisellRecordBoard/shellFrame/index.js +104 -0
  124. package/es/components/pisellRecordBoard/types.js +1 -0
  125. package/es/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +41 -0
  126. package/es/components/pisellRecordBoard/utils/recordBoardColumns.js +508 -0
  127. package/es/components/pisellRecordBoard/utils/withRecordBoard.js +27 -0
  128. package/es/components/pisellShellFrame/PisellShellFrame.js +107 -0
  129. package/es/components/pisellShellFrame/PisellShellFrame.less +78 -0
  130. package/es/components/pisellShellFrame/PisellShellFrame.stories.js +195 -0
  131. package/es/components/pisellShellFrame/index.js +1 -0
  132. package/es/components/pisellShellFrame/types.js +1 -0
  133. package/es/components/pisellSingleLineText/PisellSingleLineText.stories.js +1 -1
  134. package/es/components/pisellSingleLineText/index.d.ts +2 -1
  135. package/es/components/pisellSingleLineText/index.js +16 -1
  136. package/es/components/pisellSingleSelect/PisellSingleSelect.less +103 -46
  137. package/es/components/pisellSingleSelect/PisellSingleSelect.stories.js +1 -1
  138. package/es/components/pisellSingleSelect/components/EditView.js +8 -2
  139. package/es/components/pisellSingleSelect/components/ReadOnlyView.d.ts +1 -1
  140. package/es/components/pisellSingleSelect/components/ReadOnlyView.js +10 -6
  141. package/es/components/pisellSingleSelect/index.d.ts +2 -1
  142. package/es/components/pisellSingleSelect/index.js +16 -1
  143. package/es/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.js +6 -3
  144. package/es/components/pisellUrl/PisellUrl.less +120 -11
  145. package/es/components/pisellUrl/PisellUrl.stories.js +1 -1
  146. package/es/components/pisellUrl/index.d.ts +3 -1
  147. package/es/components/pisellUrl/index.js +17 -1
  148. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  149. package/es/components/select/index.less +18 -2
  150. package/es/components/sort/index.js +25 -3
  151. package/es/components/table/Table/fields/select/index.d.ts +0 -1
  152. package/es/components/table/Table/fields/text/index.d.ts +1 -0
  153. package/es/components/table/Table/utils.d.ts +1 -1
  154. package/es/index.d.ts +6 -2
  155. package/es/index.js +2 -0
  156. package/es/locales/en-US.d.ts +36 -0
  157. package/es/locales/en-US.js +50 -2
  158. package/es/locales/index.js +2 -2
  159. package/es/locales/ja.d.ts +2 -0
  160. package/es/locales/ja.js +2 -0
  161. package/es/locales/pt.d.ts +2 -0
  162. package/es/locales/pt.js +2 -0
  163. package/es/locales/zh-CN.d.ts +36 -0
  164. package/es/locales/zh-CN.js +54 -6
  165. package/es/locales/zh-TW.d.ts +36 -0
  166. package/es/locales/zh-TW.js +54 -6
  167. package/es/utils/tagColor.js +39 -0
  168. package/lib/components/Pagination/index.d.ts +4 -5
  169. package/lib/components/Pagination/index.js +44 -21
  170. package/lib/components/Pagination/index.less +13 -7
  171. package/lib/components/PisellFields/index.d.ts +2 -2
  172. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
  173. package/lib/components/dataSourceComponents/fields/index.d.ts +2 -3
  174. package/lib/components/filter/components/Dropdown/index.js +9 -2
  175. package/lib/components/filter/components/FilterButton/index.js +14 -3
  176. package/lib/components/filter/components/FilterButton/types.d.ts +8 -0
  177. package/lib/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.d.ts +21 -0
  178. package/lib/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.js +69 -0
  179. package/lib/components/filter/components/FilterItem/index.d.ts +3 -3
  180. package/lib/components/filter/components/FilterItem/index.js +133 -4
  181. package/lib/components/filter/components/FilterItem/index.less +90 -0
  182. package/lib/components/filter/types.d.ts +4 -2
  183. package/lib/components/pisellBatchActionBar/PisellBatchActionBar.js +26 -23
  184. package/lib/components/pisellCurrency/PisellCurrency.less +163 -25
  185. package/lib/components/pisellCurrency/PisellCurrency.stories.js +1 -1
  186. package/lib/components/pisellCurrency/index.d.ts +2 -1
  187. package/lib/components/pisellCurrency/index.js +7 -0
  188. package/lib/components/pisellDataSourceContainer/components/ColumnsSetting/index.d.ts +7 -1
  189. package/lib/components/pisellDataSourceContainer/components/ColumnsSetting/index.js +18 -2
  190. package/lib/components/pisellDataSourceContainer/components/ColumnsSetting/utils.d.ts +28 -0
  191. package/lib/components/pisellDataSourceContainer/components/ColumnsSetting/utils.js +81 -0
  192. package/lib/components/pisellDataSourceContainer/components/Table/index.d.ts +1 -0
  193. package/lib/components/pisellDataSourceContainer/components/Table/index.js +3 -1
  194. package/lib/components/pisellDataSourceContainer/components/Table/useColumns.d.ts +1 -0
  195. package/lib/components/pisellDataSourceContainer/components/Table/useColumns.js +25 -14
  196. package/lib/components/pisellDateTimeDisplay/PisellDateTimeDisplay.js +17 -11
  197. package/lib/components/pisellDateTimeDisplay/PisellDateTimeDisplay.less +2 -1
  198. package/lib/components/pisellDateTimeDisplay/hooks/useCurrentTime.js +7 -1
  199. package/lib/components/pisellDateTimeDisplay/utils/localeUtils.d.ts +2 -2
  200. package/lib/components/pisellDateTimeDisplay/utils/localeUtils.js +10 -2
  201. package/lib/components/pisellDateTimeDisplay/utils/relativeDay.d.ts +1 -0
  202. package/lib/components/pisellDateTimeDisplay/utils/relativeDay.js +2 -1
  203. package/lib/components/pisellEmail/PisellEmail.less +119 -10
  204. package/lib/components/pisellEmail/PisellEmail.stories.js +1 -1
  205. package/lib/components/pisellEmail/index.d.ts +3 -1
  206. package/lib/components/pisellEmail/index.js +10 -2
  207. package/lib/components/pisellFilter/index.js +79 -8
  208. package/lib/components/pisellFind/index.js +11 -2
  209. package/lib/components/pisellGridPro/ToolBar/index.less +23 -0
  210. package/lib/components/pisellGridPro/index.d.ts +4 -0
  211. package/lib/components/pisellLongText/PisellLongText.less +72 -4
  212. package/lib/components/pisellLongText/PisellLongText.stories.js +1 -1
  213. package/lib/components/pisellLongText/index.d.ts +2 -1
  214. package/lib/components/pisellLongText/index.js +7 -0
  215. package/lib/components/pisellLookup/PisellLookup.js +12 -6
  216. package/lib/components/pisellLookup/PisellLookup.less +39 -16
  217. package/lib/components/pisellLookup/components/LookupTrigger.js +9 -3
  218. package/lib/components/pisellMultipleSelect/PisellMultipleSelect.less +159 -124
  219. package/lib/components/pisellMultipleSelect/PisellMultipleSelect.stories.js +1 -1
  220. package/lib/components/pisellMultipleSelect/components/EditView.js +4 -1
  221. package/lib/components/pisellMultipleSelect/components/ReadOnlyView.d.ts +1 -1
  222. package/lib/components/pisellMultipleSelect/components/ReadOnlyView.js +29 -1
  223. package/lib/components/pisellMultipleSelect/index.d.ts +2 -1
  224. package/lib/components/pisellMultipleSelect/index.js +7 -0
  225. package/lib/components/pisellNumber/PisellNumber.less +135 -17
  226. package/lib/components/pisellNumber/PisellNumber.stories.js +1 -1
  227. package/lib/components/pisellNumber/index.d.ts +2 -1
  228. package/lib/components/pisellNumber/index.js +7 -0
  229. package/lib/components/pisellPercent/PisellPercent.less +142 -24
  230. package/lib/components/pisellPercent/PisellPercent.stories.js +1 -1
  231. package/lib/components/pisellPercent/index.d.ts +2 -1
  232. package/lib/components/pisellPercent/index.js +7 -0
  233. package/lib/components/pisellPhone/PisellPhone.less +122 -27
  234. package/lib/components/pisellPhone/PisellPhone.stories.js +1 -1
  235. package/lib/components/pisellPhone/components/EditView.js +1 -1
  236. package/lib/components/pisellPhone/components/ReadOnlyView.js +18 -4
  237. package/lib/components/pisellPhone/index.d.ts +2 -1
  238. package/lib/components/pisellPhone/index.js +7 -0
  239. package/lib/components/pisellRating/PisellRating.less +20 -12
  240. package/lib/components/pisellRating/PisellRating.stories.js +1 -1
  241. package/lib/components/pisellRating/index.d.ts +2 -1
  242. package/lib/components/pisellRating/index.js +7 -0
  243. package/lib/components/pisellRecordBoard/PisellRecordBoard.d.ts +8 -0
  244. package/lib/components/pisellRecordBoard/PisellRecordBoard.js +263 -0
  245. package/lib/components/pisellRecordBoard/PisellRecordBoard.stories.d.ts +81 -0
  246. package/lib/components/pisellRecordBoard/PisellRecordBoard.stories.js +1673 -0
  247. package/lib/components/pisellRecordBoard/context/RecordBoardContext.js +30 -0
  248. package/lib/components/pisellRecordBoard/context/RecordBoardProvider.js +46 -0
  249. package/lib/components/pisellRecordBoard/hooks/useRecordBoardContext.js +47 -0
  250. package/lib/components/pisellRecordBoard/index.d.ts +35 -0
  251. package/lib/components/pisellRecordBoard/index.js +59 -0
  252. package/lib/components/pisellRecordBoard/layouts/CardLayout/CardList.js +46 -0
  253. package/lib/components/pisellRecordBoard/layouts/CardLayout/index.js +46 -0
  254. package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +14 -0
  255. package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.js +264 -0
  256. package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.less +100 -0
  257. package/lib/components/pisellRecordBoard/layouts/GridLayout/index.d.ts +13 -0
  258. package/lib/components/pisellRecordBoard/layouts/GridLayout/index.js +46 -0
  259. package/lib/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +8 -0
  260. package/lib/components/pisellRecordBoard/shellFrame/BatchActionBar/index.js +108 -0
  261. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.d.ts +15 -0
  262. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.js +173 -0
  263. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.d.ts +8 -0
  264. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +100 -0
  265. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.less +2 -0
  266. package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +14 -0
  267. package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.js +90 -0
  268. package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.less +78 -0
  269. package/lib/components/pisellRecordBoard/shellFrame/Search/index.d.ts +10 -0
  270. package/lib/components/pisellRecordBoard/shellFrame/Search/index.js +53 -0
  271. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/ToolBarFilter.less +112 -0
  272. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +11 -0
  273. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.js +247 -0
  274. package/lib/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.d.ts +17 -0
  275. package/lib/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.js +93 -0
  276. package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.d.ts +16 -0
  277. package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.js +85 -0
  278. package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.less +41 -0
  279. package/lib/components/pisellRecordBoard/shellFrame/index.d.ts +26 -0
  280. package/lib/components/pisellRecordBoard/shellFrame/index.js +137 -0
  281. package/lib/components/pisellRecordBoard/types.js +17 -0
  282. package/lib/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +41 -0
  283. package/lib/components/pisellRecordBoard/utils/recordBoardColumns.js +365 -0
  284. package/lib/components/pisellRecordBoard/utils/withRecordBoard.js +49 -0
  285. package/lib/components/pisellShellFrame/PisellShellFrame.js +113 -0
  286. package/lib/components/pisellShellFrame/PisellShellFrame.less +78 -0
  287. package/lib/components/pisellShellFrame/PisellShellFrame.stories.js +129 -0
  288. package/lib/components/pisellShellFrame/index.js +40 -0
  289. package/lib/components/pisellShellFrame/types.js +17 -0
  290. package/lib/components/pisellSingleLineText/PisellSingleLineText.stories.js +1 -1
  291. package/lib/components/pisellSingleLineText/index.d.ts +2 -1
  292. package/lib/components/pisellSingleLineText/index.js +7 -0
  293. package/lib/components/pisellSingleSelect/PisellSingleSelect.less +103 -46
  294. package/lib/components/pisellSingleSelect/PisellSingleSelect.stories.js +1 -1
  295. package/lib/components/pisellSingleSelect/components/EditView.js +4 -1
  296. package/lib/components/pisellSingleSelect/components/ReadOnlyView.d.ts +1 -1
  297. package/lib/components/pisellSingleSelect/components/ReadOnlyView.js +12 -9
  298. package/lib/components/pisellSingleSelect/index.d.ts +2 -1
  299. package/lib/components/pisellSingleSelect/index.js +7 -0
  300. package/lib/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.js +6 -2
  301. package/lib/components/pisellUrl/PisellUrl.less +120 -11
  302. package/lib/components/pisellUrl/PisellUrl.stories.js +1 -1
  303. package/lib/components/pisellUrl/index.d.ts +3 -1
  304. package/lib/components/pisellUrl/index.js +10 -2
  305. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  306. package/lib/components/select/index.less +18 -2
  307. package/lib/components/sort/index.js +13 -3
  308. package/lib/components/table/Table/fields/select/index.d.ts +0 -1
  309. package/lib/components/table/Table/fields/text/index.d.ts +1 -0
  310. package/lib/components/table/Table/utils.d.ts +1 -1
  311. package/lib/index.d.ts +6 -2
  312. package/lib/index.js +6 -0
  313. package/lib/locales/en-US.d.ts +36 -0
  314. package/lib/locales/en-US.js +42 -2
  315. package/lib/locales/index.js +2 -2
  316. package/lib/locales/ja.d.ts +2 -0
  317. package/lib/locales/ja.js +2 -0
  318. package/lib/locales/pt.d.ts +2 -0
  319. package/lib/locales/pt.js +2 -0
  320. package/lib/locales/zh-CN.d.ts +36 -0
  321. package/lib/locales/zh-CN.js +46 -6
  322. package/lib/locales/zh-TW.d.ts +36 -0
  323. package/lib/locales/zh-TW.js +46 -6
  324. package/lib/utils/tagColor.js +60 -0
  325. package/lowcode/auto-resize-text/meta.ts +1 -1
  326. package/package.json +3 -3
  327. package/es/components/PisellProcedure/PisellProcedure.stories.d.ts +0 -163
  328. package/es/components/PisellProcedure/index.d.ts +0 -5
  329. package/es/components/PisellSteps/PisellSteps.d.ts +0 -14
  330. package/es/components/pisellDateTimeDisplay/formats/dateTimeDisplayFormats.d.ts +0 -7
  331. package/es/components/pisellDateTimeDisplay/formats/index.d.ts +0 -1
  332. package/es/components/pisellDateTimeDisplay/types.d.ts +0 -347
  333. package/es/components/pisellDateTimeDisplay/utils/formatTime.d.ts +0 -19
  334. package/es/components/pisellDateTimeDisplay/utils/getRefreshInterval.d.ts +0 -18
  335. package/es/components/pisellLookup/PisellLookup.d.ts +0 -4
  336. package/es/components/pisellLookup/PisellLookup.stories.d.ts +0 -129
  337. package/es/components/pisellLookup/components/HotWords.d.ts +0 -7
  338. package/es/components/pisellLookup/components/LookupAuxiliary.d.ts +0 -7
  339. package/es/components/pisellLookup/components/LookupResultHost.d.ts +0 -7
  340. package/es/components/pisellLookup/components/LookupTrigger.d.ts +0 -3
  341. package/es/components/pisellLookup/components/SearchHistory.d.ts +0 -7
  342. package/es/components/pisellLookup/components/SuggestWords.d.ts +0 -7
  343. package/es/components/pisellLookup/components/index.d.ts +0 -9
  344. package/es/components/pisellLookup/hooks/index.d.ts +0 -6
  345. package/es/components/pisellLookup/hooks/useSearchHistory.d.ts +0 -48
  346. package/es/components/pisellLookup/index.d.ts +0 -6
  347. package/es/components/pisellLookup/types.d.ts +0 -666
  348. package/es/components/pisellLookup/utils/index.d.ts +0 -5
  349. package/es/components/pisellLookup/utils/trigger.d.ts +0 -42
  350. package/es/components/pisellSort/type.d.ts +0 -7
  351. package/es/components/pisellTimeRangeDisplay/types.d.ts +0 -137
  352. package/es/components/pisellTimeRangeDisplay/utils/parseTimeRange.d.ts +0 -23
  353. package/es/components/sort/types.d.ts +0 -20
  354. package/es/components/virtualInput/index.d.ts +0 -29
  355. package/es/hooks/useThemeTokens.d.ts +0 -7
  356. package/lib/components/PisellProcedure/PisellProcedure.stories.d.ts +0 -163
  357. package/lib/components/PisellProcedure/index.d.ts +0 -5
  358. package/lib/components/PisellSteps/PisellSteps.d.ts +0 -14
  359. package/lib/components/pisellDateTimeDisplay/formats/dateTimeDisplayFormats.d.ts +0 -7
  360. package/lib/components/pisellDateTimeDisplay/formats/index.d.ts +0 -1
  361. package/lib/components/pisellDateTimeDisplay/types.d.ts +0 -347
  362. package/lib/components/pisellDateTimeDisplay/utils/formatTime.d.ts +0 -19
  363. package/lib/components/pisellDateTimeDisplay/utils/getRefreshInterval.d.ts +0 -18
  364. package/lib/components/pisellLookup/PisellLookup.d.ts +0 -4
  365. package/lib/components/pisellLookup/PisellLookup.stories.d.ts +0 -129
  366. package/lib/components/pisellLookup/components/HotWords.d.ts +0 -7
  367. package/lib/components/pisellLookup/components/LookupAuxiliary.d.ts +0 -7
  368. package/lib/components/pisellLookup/components/LookupResultHost.d.ts +0 -7
  369. package/lib/components/pisellLookup/components/LookupTrigger.d.ts +0 -3
  370. package/lib/components/pisellLookup/components/SearchHistory.d.ts +0 -7
  371. package/lib/components/pisellLookup/components/SuggestWords.d.ts +0 -7
  372. package/lib/components/pisellLookup/components/index.d.ts +0 -9
  373. package/lib/components/pisellLookup/hooks/index.d.ts +0 -6
  374. package/lib/components/pisellLookup/hooks/useSearchHistory.d.ts +0 -48
  375. package/lib/components/pisellLookup/index.d.ts +0 -6
  376. package/lib/components/pisellLookup/types.d.ts +0 -666
  377. package/lib/components/pisellLookup/utils/index.d.ts +0 -5
  378. package/lib/components/pisellLookup/utils/trigger.d.ts +0 -42
  379. package/lib/components/pisellSort/type.d.ts +0 -7
  380. package/lib/components/pisellTimeRangeDisplay/types.d.ts +0 -137
  381. package/lib/components/pisellTimeRangeDisplay/utils/parseTimeRange.d.ts +0 -23
  382. package/lib/components/sort/types.d.ts +0 -20
  383. package/lib/components/virtualInput/index.d.ts +0 -29
  384. package/lib/hooks/useThemeTokens.d.ts +0 -7
@@ -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
+ }
@@ -19,7 +19,7 @@ import React from 'react';
19
19
  * - 白名单/黑名单域名限制
20
20
  */
21
21
  var meta = {
22
- title: '表单/PisellEmail',
22
+ title: '表单/表单组件/PisellEmail',
23
23
  component: PisellEmail,
24
24
  parameters: {
25
25
  layout: 'centered',
@@ -1,5 +1,7 @@
1
1
  /**
2
2
  * PisellEmail 组件导出文件
3
3
  */
4
- export { PisellEmail, default } from './PisellEmail';
4
+ import PisellEmail from './PisellEmail';
5
+ export { PisellEmail };
6
+ export default PisellEmail;
5
7
  export type { PisellEmailProps, MailtoOptions } from './types';
@@ -2,4 +2,20 @@
2
2
  * PisellEmail 组件导出文件
3
3
  */
4
4
 
5
- export { PisellEmail, default } from "./PisellEmail";
5
+ import { getText } from "../../locales";
6
+ import PisellEmail from "./PisellEmail";
7
+
8
+ /** RecordBoard 列 type 联动排序:内置 A → Z / Z → A */
9
+ PisellEmail.SortOptions = {
10
+ getSortItems: function getSortItems(fieldKey) {
11
+ return [{
12
+ key: "".concat(fieldKey, ":asc"),
13
+ label: getText('sort-a-z')
14
+ }, {
15
+ key: "".concat(fieldKey, ":desc"),
16
+ label: getText('sort-z-a')
17
+ }];
18
+ }
19
+ };
20
+ export { PisellEmail };
21
+ export default PisellEmail;
@@ -1,5 +1,11 @@
1
- var _excluded = ["value", "quickFilterMaxLength", "formFiltersPrefix", "hiddenQuickFilter", "hiddenOtherFilter", "hasForm"];
1
+ var _excluded = ["value", "quickFilterMaxLength", "formFiltersPrefix", "hiddenQuickFilter", "hiddenOtherFilter", "hasForm", "onChange"];
2
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
3
9
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
10
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
5
11
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -8,7 +14,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
8
14
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9
15
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10
16
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
- import React, { useEffect, useState, useMemo } from 'react';
17
+ import React, { useCallback, useEffect, useState, useMemo, useRef } from 'react';
12
18
  import FilterButton from "../filter/components/FilterButton";
13
19
  import { Form } from 'antd';
14
20
  var PisellFilter = function PisellFilter(props) {
@@ -21,34 +27,94 @@ var PisellFilter = function PisellFilter(props) {
21
27
  hiddenOtherFilter = _props$hiddenOtherFil === void 0 ? false : _props$hiddenOtherFil,
22
28
  _props$hasForm = props.hasForm,
23
29
  hasForm = _props$hasForm === void 0 ? true : _props$hasForm,
30
+ onChange = props.onChange,
24
31
  otherProps = _objectWithoutProperties(props, _excluded);
25
- var _useState = useState({}),
32
+ var _Form$useForm = Form.useForm(),
33
+ _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
34
+ form = _Form$useForm2[0];
35
+ var _useState = useState(function () {
36
+ return {
37
+ quickFilter: (originalValue === null || originalValue === void 0 ? void 0 : originalValue.quickFilter) || [],
38
+ otherFilter: (originalValue === null || originalValue === void 0 ? void 0 : originalValue.otherFilter) || [],
39
+ values: (originalValue === null || originalValue === void 0 ? void 0 : originalValue.values) || {}
40
+ };
41
+ }),
26
42
  _useState2 = _slicedToArray(_useState, 2),
27
43
  value = _useState2[0],
28
44
  setValue = _useState2[1];
45
+ var isInternalChange = useRef(false);
29
46
  useEffect(function () {
30
- setValue({
31
- quickFilter: (originalValue === null || originalValue === void 0 ? void 0 : originalValue.quickFilter) || [],
32
- otherFilter: (originalValue === null || originalValue === void 0 ? void 0 : originalValue.otherFilter) || []
47
+ setValue(function (prev) {
48
+ var _originalValue$quickF, _originalValue$otherF, _ref, _originalValue$values;
49
+ return {
50
+ quickFilter: (_originalValue$quickF = originalValue === null || originalValue === void 0 ? void 0 : originalValue.quickFilter) !== null && _originalValue$quickF !== void 0 ? _originalValue$quickF : prev.quickFilter,
51
+ otherFilter: (_originalValue$otherF = originalValue === null || originalValue === void 0 ? void 0 : originalValue.otherFilter) !== null && _originalValue$otherF !== void 0 ? _originalValue$otherF : prev.otherFilter,
52
+ values: (_ref = (_originalValue$values = originalValue === null || originalValue === void 0 ? void 0 : originalValue.values) !== null && _originalValue$values !== void 0 ? _originalValue$values : prev.values) !== null && _ref !== void 0 ? _ref : {}
53
+ };
33
54
  });
34
- }, [originalValue]);
55
+ }, [originalValue === null || originalValue === void 0 ? void 0 : originalValue.quickFilter, originalValue === null || originalValue === void 0 ? void 0 : originalValue.otherFilter, originalValue === null || originalValue === void 0 ? void 0 : originalValue.values]);
56
+ useEffect(function () {
57
+ var _originalValue$values2;
58
+ if (!hasForm || _typeof(originalValue === null || originalValue === void 0 ? void 0 : originalValue.values) !== 'object') return;
59
+ if (isInternalChange.current) {
60
+ isInternalChange.current = false;
61
+ return;
62
+ }
63
+ var nextValues = (_originalValue$values2 = originalValue === null || originalValue === void 0 ? void 0 : originalValue.values) !== null && _originalValue$values2 !== void 0 ? _originalValue$values2 : {};
64
+ if (Object.keys(nextValues).length === 0) {
65
+ var current = form.getFieldsValue(true);
66
+ var cleared = Object.keys(current).reduce(function (acc, k) {
67
+ acc[k] = undefined;
68
+ return acc;
69
+ }, {});
70
+ if (Object.keys(cleared).length > 0) {
71
+ form.setFieldsValue(cleared);
72
+ }
73
+ } else {
74
+ form.setFieldsValue(nextValues);
75
+ }
76
+ }, [hasForm, form, originalValue === null || originalValue === void 0 ? void 0 : originalValue.values]);
77
+ var handleChange = useCallback(function (newVal) {
78
+ setValue(function (prev) {
79
+ var _newVal$values;
80
+ return _objectSpread(_objectSpread(_objectSpread({}, prev), newVal), {}, {
81
+ values: (_newVal$values = newVal.values) !== null && _newVal$values !== void 0 ? _newVal$values : prev.values
82
+ });
83
+ });
84
+ onChange === null || onChange === void 0 || onChange(newVal);
85
+ }, [onChange]);
86
+ var handleFormValuesChange = useCallback(function (_, allValues) {
87
+ if (_typeof(allValues) !== 'object' || allValues === null) return;
88
+ isInternalChange.current = true;
89
+ var mergedValues = _objectSpread(_objectSpread({}, value.values), allValues);
90
+ var next = {
91
+ quickFilter: value.quickFilter,
92
+ otherFilter: value.otherFilter,
93
+ values: mergedValues
94
+ };
95
+ setValue(next);
96
+ onChange === null || onChange === void 0 || onChange(next);
97
+ }, [value.quickFilter, value.otherFilter, value.values, onChange]);
35
98
  var content = useMemo(function () {
36
99
  return /*#__PURE__*/React.createElement(FilterButton, _extends({}, otherProps, {
100
+ onChange: handleChange,
37
101
  value: {
38
102
  quickFilter: value.quickFilter,
39
103
  otherFilter: value.otherFilter
40
104
  },
41
105
  hiddenQuickFilter: hiddenQuickFilter,
42
106
  hiddenOtherFilter: hiddenOtherFilter,
43
- onChange: setValue,
44
107
  quickFilterMaxLength: quickFilterMaxLength || 100,
45
108
  formFiltersPrefix: formFiltersPrefix || ''
46
109
  }));
47
- }, [value, hiddenQuickFilter, hiddenOtherFilter, quickFilterMaxLength, formFiltersPrefix]);
110
+ }, [value, hiddenQuickFilter, hiddenOtherFilter, quickFilterMaxLength, formFiltersPrefix, handleChange]);
48
111
  if (hasForm) {
49
112
  return /*#__PURE__*/React.createElement(Form, _extends({
113
+ form: form,
50
114
  size: "large",
51
- layout: "vertical"
115
+ layout: "vertical",
116
+ initialValues: value.values,
117
+ onValuesChange: handleFormValuesChange
52
118
  }, otherProps), content);
53
119
  }
54
120
  return content;
@@ -3,6 +3,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
3
3
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
4
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
5
5
  import React, { forwardRef } from 'react';
6
+ import { locales as utilsLocales } from '@pisell/utils';
6
7
  import { PisellLookup } from "../pisellLookup";
7
8
  import { getText } from "../../locales";
8
9
 
@@ -47,9 +48,17 @@ export var PisellFind = /*#__PURE__*/forwardRef(function (props, ref) {
47
48
  var _props$triggerType = props.triggerType,
48
49
  triggerType = _props$triggerType === void 0 ? 'button' : _props$triggerType,
49
50
  _props$buttonText = props.buttonText,
50
- buttonText = _props$buttonText === void 0 ? getText('pisell-find-button-text') : _props$buttonText,
51
+ buttonText = _props$buttonText === void 0 ? function () {
52
+ var key = 'pisell2.recordBoard.toolbar.find';
53
+ var u = utilsLocales.getText(key);
54
+ return u && u !== key ? u : getText(key) || getText('pisell-find-button-text');
55
+ }() : _props$buttonText,
51
56
  _props$placeholder = props.placeholder,
52
- placeholder = _props$placeholder === void 0 ? getText('pisell-find-placeholder') : _props$placeholder,
57
+ placeholder = _props$placeholder === void 0 ? function () {
58
+ var key = 'pisell2.recordBoard.toolbar.findPlaceholder';
59
+ var u = utilsLocales.getText(key);
60
+ return u && u !== key ? u : getText(key) || getText('pisell-find-placeholder');
61
+ }() : _props$placeholder,
53
62
  _props$showConfirmBut = props.showConfirmButton,
54
63
  showConfirmButton = _props$showConfirmBut === void 0 ? false : _props$showConfirmBut,
55
64
  _props$showHistory = props.showHistory,
@@ -14,6 +14,7 @@
14
14
  /**
15
15
  * 工具栏行通用样式
16
16
  */
17
+
17
18
  &-row {
18
19
  display: flex;
19
20
  flex-direction: row;
@@ -21,8 +22,10 @@
21
22
  gap: 12px;
22
23
  align-self: stretch;
23
24
  }
25
+
24
26
  .toolbar-row {
25
27
  justify-content: space-between;
28
+
26
29
  &-left {
27
30
  display: flex;
28
31
  flex-direction: row;
@@ -40,3 +43,23 @@
40
43
  }
41
44
  }
42
45
  }
46
+
47
+ /**
48
+ * 手机版宽度:左侧区域与右侧区域换行,避免挤在一行
49
+ */
50
+ @media (max-width: 768px) {
51
+ .pisell-grid-pro-toolbar .toolbar-row {
52
+ flex-wrap: wrap;
53
+ }
54
+
55
+ .pisell-grid-pro-toolbar .toolbar-row-left {
56
+ flex: 1 1 100%;
57
+ min-width: 0;
58
+ }
59
+
60
+ .pisell-grid-pro-toolbar .toolbar-row-right {
61
+ flex: 1 1 100%;
62
+ min-width: 0;
63
+ justify-content: flex-start;
64
+ }
65
+ }
@@ -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
 
@@ -18,7 +18,7 @@ import React from 'react';
18
18
  * - 字数统计
19
19
  */
20
20
  var meta = {
21
- title: '表单/PisellLongText',
21
+ title: '表单/表单组件/PisellLongText',
22
22
  component: PisellLongText,
23
23
  parameters: {
24
24
  layout: 'centered',
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * PisellLongText 组件导出
3
3
  */
4
- export { default as PisellLongText } from './PisellLongText';
4
+ import PisellLongText from './PisellLongText';
5
+ export { PisellLongText };
5
6
  export type { PisellLongTextProps } from './types';
6
7
  export type { DisplayState, ValidationResult, TextInputState } from './types';
@@ -2,6 +2,21 @@
2
2
  * PisellLongText 组件导出
3
3
  */
4
4
 
5
- export { default as PisellLongText } from "./PisellLongText";
5
+ import { getText } from "../../locales";
6
+ import PisellLongText from "./PisellLongText";
7
+
8
+ /** RecordBoard 列 type 联动排序:内置 A → Z / Z → A */
9
+ PisellLongText.SortOptions = {
10
+ getSortItems: function getSortItems(fieldKey) {
11
+ return [{
12
+ key: "".concat(fieldKey, ":asc"),
13
+ label: getText('sort-a-z')
14
+ }, {
15
+ key: "".concat(fieldKey, ":desc"),
16
+ label: getText('sort-z-a')
17
+ }];
18
+ }
19
+ };
20
+ export { PisellLongText };
6
21
 
7
22
  // 公共类型从 types 中重新导出,方便使用
@@ -399,11 +399,11 @@ var PisellLookupComponent = /*#__PURE__*/forwardRef(function (props, ref) {
399
399
  }, [displayType, close]);
400
400
 
401
401
  /**
402
- * 处理确认触发(点击 Lookup 按钮或按 Enter 键)
402
+ * 处理确认触发(点击 Lookup 按钮或按 Enter 键)。支持传入当前输入值,回车时由 Trigger 传入以避免受控下 keyword 未更新导致历史未保存。
403
403
  */
404
- var handleConfirm = useCallback(function () {
405
- // 确认触发时保存历史记录
406
- handleConfirmSearch(keyword);
404
+ var handleConfirm = useCallback(function (valueFromTrigger) {
405
+ var keywordToSearch = valueFromTrigger !== null && valueFromTrigger !== void 0 ? valueFromTrigger : keyword;
406
+ handleConfirmSearch(keywordToSearch);
407
407
  }, [keyword, handleConfirmSearch]);
408
408
 
409
409
  /**
@@ -548,17 +548,26 @@ var PisellLookupComponent = /*#__PURE__*/forwardRef(function (props, ref) {
548
548
  }, resultRender(keyword, close));
549
549
  };
550
550
 
551
+ /**
552
+ * 是否有辅助区内容(与 LookupAuxiliary 内判断一致,用于空时不展示 dropdown)
553
+ */
554
+ var hasAuxiliaryContent = showHistory && history.length > 0 || showSuggestions && suggestions.length > 0 && !!keyword || showHotWords && hotWords.length > 0 && !keyword;
555
+
556
+ /**
557
+ * 是否有结果区内容(loading 或有关键词且提供了 resultRender)
558
+ */
559
+ var hasResultsContent = Boolean(loading || keyword && resultRender);
560
+
551
561
  /**
552
562
  * 渲染内容区(辅助区 + 结果区)
553
563
  */
554
564
  var renderContent = function renderContent() {
555
- var auxiliary = renderAuxiliary();
556
- var results = renderResults();
557
-
558
- // 如果没有任何内容,返回 null(避免显示空容器)
559
- if (!auxiliary && !results) {
565
+ // 当无任何可展示内容时返回 null,避免 popup 展示空下拉框
566
+ if (!hasAuxiliaryContent && !hasResultsContent) {
560
567
  return null;
561
568
  }
569
+ var auxiliary = renderAuxiliary();
570
+ var results = renderResults();
562
571
  return /*#__PURE__*/React.createElement("div", {
563
572
  className: "pisell-lookup-content"
564
573
  }, auxiliary, results);