@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
@@ -0,0 +1,90 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ 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; }
3
+ 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; }
4
+ 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; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ 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); }
7
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
8
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ 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); }
10
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
11
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
12
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
13
+ import React, { useMemo, useCallback } from 'react';
14
+ import PisellBatchActionBar from "../../../pisellBatchActionBar";
15
+ import { useRecordBoardContext } from "../../hooks/useRecordBoardContext";
16
+ function getRowKey(record, rowKey) {
17
+ var _ref, _record$id;
18
+ if (typeof rowKey === 'function') {
19
+ return rowKey(record);
20
+ }
21
+ if (typeof rowKey === 'string' && record != null && rowKey in record) {
22
+ return record[rowKey];
23
+ }
24
+ return (_ref = (_record$id = record === null || record === void 0 ? void 0 : record.id) !== null && _record$id !== void 0 ? _record$id : record === null || record === void 0 ? void 0 : record.key) !== null && _ref !== void 0 ? _ref : record;
25
+ }
26
+
27
+ /**
28
+ * RecordBoard 下的多选操作栏:从 context 取选中态与数据,渲染 PisellBatchActionBar。
29
+ * 仅在有选中项时展示;全选/反选/清空基于当前页 data。
30
+ */
31
+ var RecordBoardBatchActionBar = function RecordBoardBatchActionBar(props) {
32
+ var _ctx$childComponentPr, _ctx$childComponentPr2;
33
+ var ctx = useRecordBoardContext({
34
+ displayName: 'batchActionBar'
35
+ });
36
+ var data = ctx.data,
37
+ total = ctx.total,
38
+ selectedKeys = ctx.selectedKeys,
39
+ selectedRows = ctx.selectedRows,
40
+ onSelectionChange = ctx.onSelectionChange,
41
+ rowKeyFromContext = ctx.rowKey;
42
+ var rowKey = rowKeyFromContext !== null && rowKeyFromContext !== void 0 ? rowKeyFromContext : 'id';
43
+ var currentPageKeys = useMemo(function () {
44
+ return data.map(function (record) {
45
+ return getRowKey(record, rowKey);
46
+ });
47
+ }, [data, rowKey]);
48
+ var currentPageTotal = data.length;
49
+ var onSelectAll = useCallback(function () {
50
+ onSelectionChange(currentPageKeys, data);
51
+ }, [currentPageKeys, data, onSelectionChange]);
52
+ var onClear = useCallback(function () {
53
+ onSelectionChange([], []);
54
+ }, [onSelectionChange]);
55
+ var onInvert = useCallback(function () {
56
+ var currentSet = new Set(currentPageKeys);
57
+ var selectedSet = new Set(selectedKeys);
58
+ var nextKeys = [];
59
+ var nextRows = [];
60
+ currentPageKeys.forEach(function (k, i) {
61
+ if (!selectedSet.has(k)) {
62
+ nextKeys.push(k);
63
+ nextRows.push(data[i]);
64
+ }
65
+ });
66
+ var restSelectedKeys = selectedKeys.filter(function (k) {
67
+ return !currentSet.has(k);
68
+ });
69
+ var restSelectedRows = selectedRows.filter(function (_, i) {
70
+ return !currentSet.has(selectedKeys[i]);
71
+ });
72
+ onSelectionChange([].concat(_toConsumableArray(restSelectedKeys), nextKeys), [].concat(_toConsumableArray(restSelectedRows), nextRows));
73
+ }, [currentPageKeys, data, selectedKeys, selectedRows, onSelectionChange]);
74
+ var barProps = _objectSpread(_objectSpread({
75
+ selectedKeys: selectedKeys,
76
+ selectedRows: selectedRows,
77
+ total: total,
78
+ currentPageTotal: currentPageTotal,
79
+ currentPageKeys: currentPageKeys,
80
+ onSelectAll: onSelectAll,
81
+ onClear: onClear,
82
+ onInvert: onInvert
83
+ }, (_ctx$childComponentPr = (_ctx$childComponentPr2 = ctx.childComponentProps) === null || _ctx$childComponentPr2 === void 0 ? void 0 : _ctx$childComponentPr2.batchActionBar) !== null && _ctx$childComponentPr !== void 0 ? _ctx$childComponentPr : {}), props);
84
+ if (selectedKeys.length === 0) {
85
+ return null;
86
+ }
87
+ return /*#__PURE__*/React.createElement(PisellBatchActionBar, barProps);
88
+ };
89
+ RecordBoardBatchActionBar.displayName = 'RecordBoard.BatchActionBar';
90
+ export default RecordBoardBatchActionBar;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * 列显示隐藏弹层内容:显隐切换 + 拖拽排序(参考 table Actions ColumnsSetting PopoverContent)。
3
+ */
4
+ import React from 'react';
5
+ import type { RecordBoardColumnType } from '../../types';
6
+ export interface ColumnSettingPopoverProps {
7
+ columns: RecordBoardColumnType[];
8
+ columnVisibility: Record<string, boolean>;
9
+ onColumnVisibilityChange: (visibility: Record<string, boolean>) => void;
10
+ /** 列 key 顺序(拖拽排序后持久化);未传则按 columns 顺序 */
11
+ columnOrder?: string[] | null;
12
+ onColumnOrderChange?: (columnKeys: string[]) => void;
13
+ }
14
+ declare const ColumnSettingPopover: React.FC<ColumnSettingPopoverProps>;
15
+ export default ColumnSettingPopover;
@@ -0,0 +1,138 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ 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 _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; }
4
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
5
+ 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); }
6
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
7
+ 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
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
9
+ /**
10
+ * 列显示隐藏弹层内容:显隐切换 + 拖拽排序(参考 table Actions ColumnsSetting PopoverContent)。
11
+ */
12
+
13
+ import React, { useMemo } from 'react';
14
+ import classNames from 'classnames';
15
+ import DotsSix from '@pisell/icon/es/DotsSix';
16
+ import { EyeInvisibleOutlined, EyeOutlined } from '@ant-design/icons';
17
+ import { getText } from "../../../../locales";
18
+ import Sortable from "../../../DragSortList";
19
+ import { getRecordBoardColumnKey } from "../../utils/recordBoardColumns";
20
+ var prefix = 'pisell-lowcode-';
21
+ function getColumnTitle(column) {
22
+ var title = column.title;
23
+ if (typeof title === 'string') return title;
24
+ return getRecordBoardColumnKey(column) || '';
25
+ }
26
+ var ColumnSettingPopover = function ColumnSettingPopover(_ref) {
27
+ var columns = _ref.columns,
28
+ columnVisibility = _ref.columnVisibility,
29
+ onColumnVisibilityChange = _ref.onColumnVisibilityChange,
30
+ columnOrder = _ref.columnOrder,
31
+ onColumnOrderChange = _ref.onColumnOrderChange;
32
+ var orderedColumns = useMemo(function () {
33
+ if (!Array.isArray(columnOrder) || columnOrder.length === 0) return columns;
34
+ var keyToCol = new Map(columns.map(function (c) {
35
+ return [getRecordBoardColumnKey(c), c];
36
+ }));
37
+ var result = [];
38
+ var _iterator = _createForOfIteratorHelper(columnOrder),
39
+ _step;
40
+ try {
41
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
42
+ var key = _step.value;
43
+ var col = keyToCol.get(key);
44
+ if (col) result.push(col);
45
+ }
46
+ } catch (err) {
47
+ _iterator.e(err);
48
+ } finally {
49
+ _iterator.f();
50
+ }
51
+ columns.forEach(function (col) {
52
+ var key = getRecordBoardColumnKey(col);
53
+ if (!columnOrder.includes(key)) result.push(col);
54
+ });
55
+ return result;
56
+ }, [columns, columnOrder]);
57
+ var handleToggle = function handleToggle(colKey, isShow) {
58
+ onColumnVisibilityChange(_defineProperty({}, colKey, isShow));
59
+ };
60
+ var handleOrderChange = function handleOrderChange(list) {
61
+ onColumnOrderChange === null || onColumnOrderChange === void 0 || onColumnOrderChange(list.map(function (c) {
62
+ return getRecordBoardColumnKey(c);
63
+ }).filter(Boolean));
64
+ };
65
+ var listContent = /*#__PURE__*/React.createElement("div", {
66
+ className: "".concat(prefix, "table-action-column-content")
67
+ }, typeof onColumnOrderChange === 'function' ? /*#__PURE__*/React.createElement(Sortable, {
68
+ list: orderedColumns,
69
+ rowKey: function rowKey(col) {
70
+ return getRecordBoardColumnKey(col) || '';
71
+ },
72
+ onChange: handleOrderChange
73
+ }, function (_ref2) {
74
+ var col = _ref2.item,
75
+ index = _ref2.index,
76
+ style = _ref2.style,
77
+ props = _ref2.props,
78
+ attributes = _ref2.attributes,
79
+ setActivatorNodeRef = _ref2.setActivatorNodeRef,
80
+ listeners = _ref2.listeners;
81
+ var colKey = getRecordBoardColumnKey(col);
82
+ var isShow = columnVisibility[colKey] !== false;
83
+ return /*#__PURE__*/React.createElement("div", _extends({
84
+ key: colKey
85
+ }, attributes, {
86
+ ref: props.ref,
87
+ style: style,
88
+ className: "".concat(prefix, "table-action-column-drag-item")
89
+ }), /*#__PURE__*/React.createElement(DotsSix, _extends({
90
+ ref: setActivatorNodeRef
91
+ }, listeners, {
92
+ style: {
93
+ touchAction: 'none'
94
+ },
95
+ className: "".concat(prefix, "table-action-column-drag-bar")
96
+ })), /*#__PURE__*/React.createElement("div", {
97
+ className: "".concat(prefix, "table-action-column-drag-item-right")
98
+ }, /*#__PURE__*/React.createElement("span", {
99
+ className: classNames("".concat(prefix, "table-action-column-drag-item-right-text"), _defineProperty({}, "".concat(prefix, "table-action-column-drag-item-right-text-hidden"), !isShow))
100
+ }, getColumnTitle(col)), /*#__PURE__*/React.createElement("span", {
101
+ className: "".concat(prefix, "table-action-column-drag-item-right-icon-wrap"),
102
+ onClick: function onClick() {
103
+ return handleToggle(colKey, !isShow);
104
+ },
105
+ role: "button",
106
+ "aria-label": isShow ? 'hide' : 'show'
107
+ }, isShow ? /*#__PURE__*/React.createElement(EyeOutlined, null) : /*#__PURE__*/React.createElement(EyeInvisibleOutlined, null))));
108
+ }) : orderedColumns.map(function (col) {
109
+ var colKey = getRecordBoardColumnKey(col);
110
+ var isShow = columnVisibility[colKey] !== false;
111
+ return /*#__PURE__*/React.createElement("div", {
112
+ key: colKey,
113
+ className: "".concat(prefix, "table-action-column-drag-item"),
114
+ style: {
115
+ cursor: 'default'
116
+ }
117
+ }, /*#__PURE__*/React.createElement("div", {
118
+ className: "".concat(prefix, "table-action-column-drag-item-right")
119
+ }, /*#__PURE__*/React.createElement("span", {
120
+ className: classNames("".concat(prefix, "table-action-column-drag-item-right-text"), _defineProperty({}, "".concat(prefix, "table-action-column-drag-item-right-text-hidden"), !isShow))
121
+ }, getColumnTitle(col)), /*#__PURE__*/React.createElement("span", {
122
+ className: "".concat(prefix, "table-action-column-drag-item-right-icon-wrap"),
123
+ onClick: function onClick() {
124
+ return handleToggle(colKey, !isShow);
125
+ },
126
+ role: "button",
127
+ "aria-label": isShow ? 'hide' : 'show'
128
+ }, isShow ? /*#__PURE__*/React.createElement(EyeOutlined, null) : /*#__PURE__*/React.createElement(EyeInvisibleOutlined, null))));
129
+ }));
130
+ return /*#__PURE__*/React.createElement("div", {
131
+ className: "".concat(prefix, "table-action-column-popover-content-wrap")
132
+ }, /*#__PURE__*/React.createElement("div", {
133
+ className: "".concat(prefix, "table-action-column-header")
134
+ }, /*#__PURE__*/React.createElement("span", {
135
+ className: "".concat(prefix, "table-action-column-header-title")
136
+ }, getText('table-action-column-title'))), listContent);
137
+ };
138
+ export default ColumnSettingPopover;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * RecordBoard 列显示隐藏设置(仅控制表格列展示,不控制 filter/sort)。
3
+ * 参考 table Actions ColumnsSetting,仅保留显隐切换,无拖拽排序。
4
+ */
5
+ import React from 'react';
6
+ import './index.less';
7
+ declare const RecordBoardColumnSetting: React.FC;
8
+ export default RecordBoardColumnSetting;
@@ -0,0 +1,66 @@
1
+ /**
2
+ * RecordBoard 列显示隐藏设置(仅控制表格列展示,不控制 filter/sort)。
3
+ * 参考 table Actions ColumnsSetting,仅保留显隐切换,无拖拽排序。
4
+ */
5
+
6
+ import React, { useMemo } from 'react';
7
+ import { Popover } from 'antd';
8
+ import { EyeOutlined } from '@ant-design/icons';
9
+ import { useRecordBoardContext } from "../../hooks/useRecordBoardContext";
10
+ import { getRecordBoardColumnKey } from "../../utils/recordBoardColumns";
11
+ import ColumnSettingPopover from "./ColumnSettingPopover";
12
+ import "./index.less";
13
+ var RecordBoardColumnSetting = function RecordBoardColumnSetting() {
14
+ var _ctx$childComponentPr, _ctx$columnVisibility, _ctx$columnOrder;
15
+ var ctx = useRecordBoardContext({
16
+ displayName: 'columnSetting'
17
+ });
18
+ var gridColumns = (_ctx$childComponentPr = ctx.childComponentProps) === null || _ctx$childComponentPr === void 0 || (_ctx$childComponentPr = _ctx$childComponentPr.grid) === null || _ctx$childComponentPr === void 0 ? void 0 : _ctx$childComponentPr.columns;
19
+ var columnVisibility = (_ctx$columnVisibility = ctx.columnVisibility) !== null && _ctx$columnVisibility !== void 0 ? _ctx$columnVisibility : {};
20
+ var onColumnVisibilityChange = ctx.onColumnVisibilityChange;
21
+ var columnOrder = (_ctx$columnOrder = ctx.columnOrder) !== null && _ctx$columnOrder !== void 0 ? _ctx$columnOrder : null;
22
+ var onColumnOrderChange = ctx.onColumnOrderChange;
23
+ var content = useMemo(function () {
24
+ if (!Array.isArray(gridColumns) || gridColumns.length === 0 || typeof onColumnVisibilityChange !== 'function') {
25
+ return null;
26
+ }
27
+ return /*#__PURE__*/React.createElement(ColumnSettingPopover, {
28
+ columns: gridColumns,
29
+ columnVisibility: columnVisibility,
30
+ onColumnVisibilityChange: onColumnVisibilityChange,
31
+ columnOrder: columnOrder,
32
+ onColumnOrderChange: onColumnOrderChange
33
+ });
34
+ }, [gridColumns, columnVisibility, onColumnVisibilityChange, columnOrder, onColumnOrderChange]);
35
+ var hasHiddenColumns = useMemo(function () {
36
+ if (!Array.isArray(gridColumns)) return false;
37
+ return gridColumns.some(function (col) {
38
+ return columnVisibility[getRecordBoardColumnKey(col)] === false;
39
+ });
40
+ }, [gridColumns, columnVisibility]);
41
+ if (!content) return null;
42
+ return /*#__PURE__*/React.createElement(Popover, {
43
+ content: content,
44
+ arrow: false,
45
+ placement: "bottomRight",
46
+ trigger: "click"
47
+ }, /*#__PURE__*/React.createElement("span", {
48
+ className: "record-board-toolbar-column-setting-btn",
49
+ style: {
50
+ display: 'inline-flex',
51
+ alignItems: 'center',
52
+ justifyContent: 'center',
53
+ width: 32,
54
+ height: 32,
55
+ cursor: 'pointer',
56
+ borderRadius: 6,
57
+ color: hasHiddenColumns ? 'var(--color-primary, #1890ff)' : undefined
58
+ }
59
+ }, /*#__PURE__*/React.createElement(EyeOutlined, {
60
+ style: {
61
+ fontSize: 18
62
+ }
63
+ })));
64
+ };
65
+ RecordBoardColumnSetting.displayName = 'RecordBoard.ColumnSetting';
66
+ export default RecordBoardColumnSetting;
@@ -0,0 +1,2 @@
1
+ /* 复用 table ColumnsSetting 弹层样式,类名与 PopoverContent 一致 */
2
+ @import '../../../table/Actions/component/ColumnsSetting/PopoverContent.less';
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ import type { RecordBoardContextValue } from '../../types';
4
+ export interface RecordBoardPaginationProps extends Partial<Pick<RecordBoardContextValue, 'pagination' | 'total' | 'onPageChange' | 'loading'>> {
5
+ className?: string;
6
+ style?: React.CSSProperties;
7
+ render?: (ctx: RecordBoardContextValue) => React.ReactNode;
8
+ }
9
+ /**
10
+ * RecordBoard 下的分页:接入 packages/materials 的 Pagination,从 context 取 pagination / total / onPageChange;可透传 childComponentProps.pagination。
11
+ * 当 context 中 pagination 缺失时使用默认分页,避免在 Storybook 或未完整注入 context 时报错。
12
+ */
13
+ declare const RecordBoardPagination: React.FC<RecordBoardPaginationProps>;
14
+ export default RecordBoardPagination;
@@ -0,0 +1,66 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _excluded = ["render"];
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 _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; }
9
+ 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; }
10
+ import React, { useMemo } from 'react';
11
+ import Pagination from "../../../Pagination";
12
+ import "./index.less";
13
+ import { useRecordBoardContext } from "../../hooks/useRecordBoardContext";
14
+ var defaultPagination = {
15
+ pageNumber: 1,
16
+ pageSize: 50
17
+ };
18
+ /**
19
+ * RecordBoard 下的分页:接入 packages/materials 的 Pagination,从 context 取 pagination / total / onPageChange;可透传 childComponentProps.pagination。
20
+ * 当 context 中 pagination 缺失时使用默认分页,避免在 Storybook 或未完整注入 context 时报错。
21
+ */
22
+ var RecordBoardPagination = function RecordBoardPagination(props) {
23
+ var _ctx$pagination, _ctx$childComponentPr3;
24
+ var ctx = useRecordBoardContext({
25
+ displayName: 'pagination'
26
+ });
27
+ var render = props.render,
28
+ rest = _objectWithoutProperties(props, _excluded);
29
+ var pagination = (_ctx$pagination = ctx.pagination) !== null && _ctx$pagination !== void 0 ? _ctx$pagination : defaultPagination;
30
+ var paginationProps = useMemo(function () {
31
+ var _ctx$childComponentPr, _ctx$childComponentPr2;
32
+ return _objectSpread({
33
+ current: pagination.pageNumber,
34
+ pageSize: pagination.pageSize,
35
+ total: ctx.total,
36
+ onChange: ctx.onPageChange
37
+ }, (_ctx$childComponentPr = (_ctx$childComponentPr2 = ctx.childComponentProps) === null || _ctx$childComponentPr2 === void 0 ? void 0 : _ctx$childComponentPr2.pagination) !== null && _ctx$childComponentPr !== void 0 ? _ctx$childComponentPr : {});
38
+ }, [pagination.pageNumber, pagination.pageSize, ctx.total, ctx.onPageChange, (_ctx$childComponentPr3 = ctx.childComponentProps) === null || _ctx$childComponentPr3 === void 0 ? void 0 : _ctx$childComponentPr3.pagination]);
39
+ if (typeof render === 'function') {
40
+ return /*#__PURE__*/React.createElement(React.Fragment, null, render(_objectSpread(_objectSpread({}, ctx), rest)));
41
+ }
42
+
43
+ // 无数据时不展示分页控件,但保留占位避免高度计算异常
44
+ if (ctx.total === 0) {
45
+ return /*#__PURE__*/React.createElement("div", {
46
+ "data-layout-slot": "pagination",
47
+ className: "record-board-shell-frame-pagination record-board-shell-frame-pagination-placeholder",
48
+ style: {
49
+ marginTop: 16,
50
+ display: 'flex',
51
+ justifyContent: 'center',
52
+ minHeight: 40
53
+ }
54
+ });
55
+ }
56
+ return /*#__PURE__*/React.createElement("div", {
57
+ "data-layout-slot": "pagination",
58
+ className: "record-board-shell-frame-pagination",
59
+ style: {
60
+ marginTop: 16,
61
+ display: 'flex',
62
+ justifyContent: 'center'
63
+ }
64
+ }, /*#__PURE__*/React.createElement(Pagination, paginationProps));
65
+ };
66
+ export default RecordBoardPagination;
@@ -0,0 +1,78 @@
1
+ /**
2
+ * RecordBoard ShellFrame 内分页样式,参考 orderList index.less:64
3
+ */
4
+
5
+ .record-board-shell-frame-pagination {
6
+ margin-top: 0;
7
+
8
+ .pisell-lowcode-pagination-item {
9
+ border: 1px solid #D0D5DD !important;
10
+ border-right: 0 !important;
11
+ }
12
+
13
+ .pisell-lowcode-pagination {
14
+ //border: none;
15
+ }
16
+
17
+ .pisell-lowcode-pagination-prev {
18
+ padding: 8px 14px;
19
+ height: 40px !important;
20
+ white-space: nowrap;
21
+ }
22
+
23
+ .pisell-lowcode-pagination-next {
24
+ padding: 8px 14px;
25
+ height: 40px !important;
26
+ white-space: nowrap;
27
+ }
28
+
29
+ .pisell-lowcode-pagination-item {
30
+ padding: 10px 14px;
31
+ min-width: 40px;
32
+ height: 40px !important;
33
+ line-height: 20px !important;
34
+
35
+ & > a {
36
+ white-space: nowrap;
37
+ }
38
+ }
39
+
40
+ .pisell-lowcode-pagination-jump-prev,
41
+ .pisell-lowcode-pagination-jump-next {
42
+ display: flex;
43
+ justify-content: center;
44
+ align-items: center;
45
+ min-width: 40px !important;
46
+ height: 40px !important;
47
+ }
48
+
49
+ .pisell-lowcode-pagination-options {
50
+ margin-left: 30px;
51
+
52
+ .pisell-lowcode-select {
53
+ min-width: 80px;
54
+ height: 40px;
55
+
56
+ .pisell-lowcode-select-selector {
57
+ padding: 10px 14px;
58
+ height: 40px;
59
+
60
+ .pisell-lowcode-select-selection-search-input {
61
+ height: 100%;
62
+ }
63
+ }
64
+ }
65
+ }
66
+ }
67
+
68
+ /**
69
+ * 手机宽度下:不展示 "page x of x" 文案,仅保留上一页/下一页
70
+ */
71
+ @media (max-width: 768px) {
72
+ .record-board-shell-frame-pagination {
73
+ .materials-grid-paginator-center,
74
+ .pisell-lowcode-pagination-total-text {
75
+ display: none !important;
76
+ }
77
+ }
78
+ }
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ export interface RecordBoardSearchProps {
3
+ [key: string]: any;
4
+ }
5
+ /**
6
+ * RecordBoard 下的独立搜索槽:使用 PisellFind,绑定 context.searchParams.keyword 与 onSearch。
7
+ * 可通过 childComponentProps.search 透传 PisellFind 的 props。
8
+ */
9
+ declare const RecordBoardSearch: React.FC<RecordBoardSearchProps>;
10
+ export default RecordBoardSearch;
@@ -0,0 +1,41 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ 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
+ import React, { useCallback } from 'react';
9
+ import { PisellFind } from "../../../pisellFind";
10
+ import { useRecordBoardContext } from "../../hooks/useRecordBoardContext";
11
+
12
+ /** 与 context.searchParams 对应的默认搜索参数字段名 */
13
+ var DEFAULT_SEARCH_FIELD = 'keyword';
14
+ /**
15
+ * RecordBoard 下的独立搜索槽:使用 PisellFind,绑定 context.searchParams.keyword 与 onSearch。
16
+ * 可通过 childComponentProps.search 透传 PisellFind 的 props。
17
+ */
18
+ var RecordBoardSearch = function RecordBoardSearch(props) {
19
+ var _searchParams$DEFAULT;
20
+ var ctx = useRecordBoardContext({
21
+ displayName: 'search'
22
+ });
23
+ var searchParams = ctx.searchParams,
24
+ onSearch = ctx.onSearch;
25
+ var searchProps = ctx;
26
+ var keyword = (_searchParams$DEFAULT = searchParams === null || searchParams === void 0 ? void 0 : searchParams[DEFAULT_SEARCH_FIELD]) !== null && _searchParams$DEFAULT !== void 0 ? _searchParams$DEFAULT : '';
27
+ var handleSearch = useCallback(function (value) {
28
+ onSearch(_objectSpread(_objectSpread({}, searchParams), {}, _defineProperty({}, DEFAULT_SEARCH_FIELD, value || undefined)));
29
+ }, [onSearch, searchParams]);
30
+ return /*#__PURE__*/React.createElement("div", {
31
+ "data-layout-slot": "search",
32
+ style: {
33
+ marginBottom: 8
34
+ }
35
+ }, /*#__PURE__*/React.createElement(PisellFind, _extends({
36
+ value: keyword,
37
+ onSearch: handleSearch
38
+ }, searchProps)));
39
+ };
40
+ RecordBoardSearch.displayName = 'RecordBoard.Search';
41
+ export default RecordBoardSearch;
@@ -0,0 +1,112 @@
1
+ /** 左侧:div + flex 布局,下单时间快筛 + Find(占满剩余宽度)+ slots.topLeft */
2
+ .record-board-toolbar-top-left {
3
+ display: flex;
4
+ flex-wrap: nowrap;
5
+ align-items: center;
6
+ width: 100%;
7
+ gap: 16px;
8
+
9
+ .record-board-toolbar-find-wrap {
10
+ flex: 1;
11
+ min-width: 0;
12
+ display: flex;
13
+ align-items: center;
14
+
15
+ .ant-input,
16
+ .ant-input-affix-wrapper {
17
+ width: 100%;
18
+ max-width: 100%;
19
+ }
20
+ }
21
+
22
+ .pisell-lowcode-form-item {
23
+ margin-right: 0;
24
+ }
25
+
26
+ .MuiFormLabel-root {
27
+ line-height: 30px;
28
+ }
29
+
30
+ .MuiInputBase-root {
31
+ height: 48px !important;
32
+ border-radius: 8px !important;
33
+
34
+ input {
35
+ //height: 48px !important;
36
+ }
37
+ }
38
+ }
39
+
40
+ .record-board-toolbar-quick-filter-form {
41
+ display: inline-flex;
42
+ flex-wrap: nowrap;
43
+ align-items: center;
44
+ }
45
+
46
+ /**
47
+ * 手机版宽度:左侧快筛 + 搜索 支持换行,避免挤在一行
48
+ */
49
+ @media (max-width: 768px) {
50
+ .record-board-toolbar-top-left {
51
+ flex-wrap: wrap;
52
+ }
53
+
54
+ .record-board-toolbar-top-left .record-board-toolbar-find-wrap {
55
+ flex: 1 1 100%;
56
+ min-width: 100%;
57
+ }
58
+
59
+ .record-board-toolbar-quick-filter-form {
60
+ flex-wrap: wrap;
61
+ }
62
+ }
63
+
64
+ /**
65
+ * RecordBoard 工具栏「筛选」按钮样式
66
+ * 依据 Figma Pisell 2.0 Component Library - Filter Button (node-id=13586-90537)
67
+ * - 边框: 1px solid #E5E7EB (neutral-200)
68
+ * - 圆角: 8px
69
+ * - 背景: #FFFFFF (neutral-0)
70
+ * - 文字: 16px Medium, line-height 24px, #374151 (neutral-700)
71
+ * - 图标: 16px, #6B7280 (neutral-500)
72
+ * - 内边距: 12px 20px,高度 50px
73
+ */
74
+ .record-board-toolbar-filter-btn {
75
+ height: 50px !important;
76
+ padding: 12px 20px !important;
77
+ font-size: 16px !important;
78
+ font-weight: 600 !important;
79
+ line-height: 24px !important;
80
+ color: #374151 !important;
81
+ background-color: #ffffff !important;
82
+ border: 1px solid #e5e7eb !important;
83
+ border-width: 1px !important;
84
+ border-radius: 8px !important;
85
+ box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05) !important;
86
+
87
+ .anticon {
88
+ font-size: 16px;
89
+ color: #6b7280;
90
+ }
91
+
92
+ &.pisell-lowcode-btn-lg {
93
+ height: 50px !important;
94
+ padding: 12px 20px !important;
95
+ font-size: 16px !important;
96
+ }
97
+
98
+ &:hover:not(:disabled) {
99
+ color: #374151 !important;
100
+ background-color: #f9fafb !important;
101
+ border-color: #e5e7eb !important;
102
+
103
+ .anticon {
104
+ color: #6b7280;
105
+ }
106
+ }
107
+
108
+ &:focus-visible {
109
+ outline: none;
110
+ box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
111
+ }
112
+ }