@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,100 @@
1
+ // RecordBoard Grid 表格样式:默认单元格(表头+表体)padding 8px 16px
2
+ // 项目内 ant 组件 prefixCls 为 pisell-lowcode,故表格类名为 .pisell-lowcode-table-*
3
+ .pisell-lowcode-record-board-grid {
4
+ .pisell-lowcode-table-thead .pisell-lowcode-table-cell,
5
+ .pisell-lowcode-table-tbody .pisell-lowcode-table-cell {
6
+ padding: 8px 16px;
7
+ }
8
+ }
9
+
10
+ // 同值列折叠时的总结区样式(参考 Figma 12840-86869)
11
+ .pisell-record-board-uniform-summary {
12
+ display: flex;
13
+ flex-wrap: nowrap;
14
+ align-items: center;
15
+ gap: 32px;
16
+ min-height: 44px;
17
+ padding: 12px 24px;
18
+ background: #f2f4f7;
19
+ border-bottom: 1px solid #eaecf0;
20
+ border-radius: 8px 8px 0 0;
21
+
22
+ .pisell-record-board-uniform-summary-item {
23
+ display: flex;
24
+ align-items: center;
25
+ gap: 4px;
26
+ flex-shrink: 0;
27
+ }
28
+
29
+ .pisell-record-board-uniform-summary-label {
30
+ font-family: inherit;
31
+ font-size: 12px;
32
+ font-weight: 500;
33
+ line-height: 18px;
34
+ color: #475467;
35
+ white-space: nowrap;
36
+ }
37
+
38
+ .pisell-record-board-uniform-summary-value {
39
+ font-family: inherit;
40
+ font-size: 12px;
41
+ font-weight: 500;
42
+ line-height: 18px;
43
+ color: #475467;
44
+ white-space: nowrap;
45
+ }
46
+ }
47
+
48
+ // 纯 CSS 占满高度:滚动发生在 .pisell-record-board-scroll-body,表头 sticky 固定;高度传到 table
49
+ .pisell-record-board-scroll-body .pisell-lowcode-record-board-grid {
50
+ height: 100%;
51
+ display: flex;
52
+ flex-direction: column;
53
+ min-height: 0;
54
+
55
+ .pisell-lowcode-table-thead .pisell-lowcode-table-cell {
56
+ position: sticky;
57
+ top: 0;
58
+ z-index: 1;
59
+ background: var(--ant-color-bg-container, #ffffff);
60
+ }
61
+
62
+ /*
63
+ * 根本原因:表头所有单元格统一用了 z-index: 1,横向滚动时后面的列(非固定列)与固定列同层叠,
64
+ * 非固定列会盖住固定列。解决:仅对「固定列」提高 z-index。
65
+ * antd/rc-table 会给所有 fixed 列(含多选列)的 th/td 加上 .*-table-cell-fix-left,
66
+ * 用该类选择器即可覆盖任意数量的固定列,无需按 nth-child 逐个写。
67
+ */
68
+
69
+ .pisell-lowcode-table-thead .pisell-lowcode-table-cell-fix-left {
70
+ z-index: 2 !important;
71
+ background: var(--ant-color-bg-container, #ffffff) !important;
72
+ }
73
+
74
+ // 让 antd Table 外层占满,使 scroll.y 生效且高度链不断
75
+ .pisell-lowcode-table-wrapper {
76
+ flex: 1;
77
+ min-height: 0;
78
+ display: flex;
79
+ flex-direction: column;
80
+ }
81
+
82
+ .pisell-lowcode-table-wrapper .pisell-lowcode-table {
83
+ flex: 1;
84
+ min-height: 0;
85
+ display: flex;
86
+ flex-direction: column;
87
+ }
88
+
89
+ .pisell-lowcode-table-wrapper .pisell-lowcode-table .pisell-lowcode-table-container {
90
+ flex: 1;
91
+ min-height: 0;
92
+ display: flex;
93
+ flex-direction: column;
94
+ }
95
+ }
96
+
97
+ // 行状态样式示例(如 grid.rowClassName 返回 'pisell-record-board-row-cancelled')
98
+ .pisell-record-board-row-cancelled {
99
+ background: #fff1f0;
100
+ }
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import RecordBoardGridView from './Grid';
3
+ /**
4
+ * Grid 布局:仅内容区 = 表格(不含分页)。
5
+ * 工具栏、多选操作栏、分页由 Shell Frame 提供,使用时用 ShellFrame 包裹:
6
+ * <PisellRecordBoard.ShellFrame><PisellRecordBoard.GridLayout /></PisellRecordBoard.ShellFrame>
7
+ */
8
+ declare const GridLayout: React.FC<{
9
+ className?: string;
10
+ style?: React.CSSProperties;
11
+ }>;
12
+ export default GridLayout;
13
+ export { RecordBoardGridView as GridLayoutGrid };
@@ -0,0 +1,46 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/pisellRecordBoard/layouts/GridLayout/index.tsx
30
+ var GridLayout_exports = {};
31
+ __export(GridLayout_exports, {
32
+ GridLayoutGrid: () => import_Grid.default,
33
+ default: () => GridLayout_default
34
+ });
35
+ module.exports = __toCommonJS(GridLayout_exports);
36
+ var import_react = __toESM(require("react"));
37
+ var import_Grid = __toESM(require("./Grid"));
38
+ var GridLayout = ({ className, style }) => {
39
+ return /* @__PURE__ */ import_react.default.createElement("div", { className, style, "data-layout": "grid" }, /* @__PURE__ */ import_react.default.createElement(import_Grid.default, null));
40
+ };
41
+ GridLayout.displayName = "RecordBoard.GridLayout";
42
+ var GridLayout_default = GridLayout;
43
+ // Annotate the CommonJS export names for ESM import in node:
44
+ 0 && (module.exports = {
45
+ GridLayoutGrid
46
+ });
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import type { PisellBatchActionBarProps } from '../../../pisellBatchActionBar';
3
+ /**
4
+ * RecordBoard 下的多选操作栏:从 context 取选中态与数据,渲染 PisellBatchActionBar。
5
+ * 仅在有选中项时展示;全选/反选/清空基于当前页 data。
6
+ */
7
+ declare const RecordBoardBatchActionBar: React.FC<Partial<PisellBatchActionBarProps>>;
8
+ export default RecordBoardBatchActionBar;
@@ -0,0 +1,108 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/pisellRecordBoard/shellFrame/BatchActionBar/index.tsx
30
+ var BatchActionBar_exports = {};
31
+ __export(BatchActionBar_exports, {
32
+ default: () => BatchActionBar_default
33
+ });
34
+ module.exports = __toCommonJS(BatchActionBar_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_pisellBatchActionBar = __toESM(require("../../../pisellBatchActionBar"));
37
+ var import_useRecordBoardContext = require("../../hooks/useRecordBoardContext");
38
+ function getRowKey(record, rowKey) {
39
+ if (typeof rowKey === "function") {
40
+ return rowKey(record);
41
+ }
42
+ if (typeof rowKey === "string" && record != null && rowKey in record) {
43
+ return record[rowKey];
44
+ }
45
+ return (record == null ? void 0 : record.id) ?? (record == null ? void 0 : record.key) ?? record;
46
+ }
47
+ var RecordBoardBatchActionBar = (props) => {
48
+ var _a;
49
+ const ctx = (0, import_useRecordBoardContext.useRecordBoardContext)({ displayName: "batchActionBar" });
50
+ const {
51
+ data,
52
+ total,
53
+ selectedKeys,
54
+ selectedRows,
55
+ onSelectionChange,
56
+ rowKey: rowKeyFromContext
57
+ } = ctx;
58
+ const rowKey = rowKeyFromContext ?? "id";
59
+ const currentPageKeys = (0, import_react.useMemo)(
60
+ () => data.map((record) => getRowKey(record, rowKey)),
61
+ [data, rowKey]
62
+ );
63
+ const currentPageTotal = data.length;
64
+ const onSelectAll = (0, import_react.useCallback)(() => {
65
+ onSelectionChange(currentPageKeys, data);
66
+ }, [currentPageKeys, data, onSelectionChange]);
67
+ const onClear = (0, import_react.useCallback)(() => {
68
+ onSelectionChange([], []);
69
+ }, [onSelectionChange]);
70
+ const onInvert = (0, import_react.useCallback)(() => {
71
+ const currentSet = new Set(currentPageKeys);
72
+ const selectedSet = new Set(selectedKeys);
73
+ const nextKeys = [];
74
+ const nextRows = [];
75
+ currentPageKeys.forEach((k, i) => {
76
+ if (!selectedSet.has(k)) {
77
+ nextKeys.push(k);
78
+ nextRows.push(data[i]);
79
+ }
80
+ });
81
+ const restSelectedKeys = selectedKeys.filter((k) => !currentSet.has(k));
82
+ const restSelectedRows = selectedRows.filter(
83
+ (_, i) => !currentSet.has(selectedKeys[i])
84
+ );
85
+ onSelectionChange(
86
+ [...restSelectedKeys, ...nextKeys],
87
+ [...restSelectedRows, ...nextRows]
88
+ );
89
+ }, [currentPageKeys, data, selectedKeys, selectedRows, onSelectionChange]);
90
+ const barProps = {
91
+ selectedKeys,
92
+ selectedRows,
93
+ total,
94
+ currentPageTotal,
95
+ currentPageKeys,
96
+ onSelectAll,
97
+ onClear,
98
+ onInvert,
99
+ ...((_a = ctx.childComponentProps) == null ? void 0 : _a.batchActionBar) ?? {},
100
+ ...props
101
+ };
102
+ if (selectedKeys.length === 0) {
103
+ return null;
104
+ }
105
+ return /* @__PURE__ */ import_react.default.createElement(import_pisellBatchActionBar.default, { ...barProps });
106
+ };
107
+ RecordBoardBatchActionBar.displayName = "RecordBoard.BatchActionBar";
108
+ var BatchActionBar_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,173 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.tsx
30
+ var ColumnSettingPopover_exports = {};
31
+ __export(ColumnSettingPopover_exports, {
32
+ default: () => ColumnSettingPopover_default
33
+ });
34
+ module.exports = __toCommonJS(ColumnSettingPopover_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_classnames = __toESM(require("classnames"));
37
+ var import_DotsSix = __toESM(require("@pisell/icon/es/DotsSix"));
38
+ var import_icons = require("@ant-design/icons");
39
+ var import_locales = require("../../../../locales");
40
+ var import_DragSortList = __toESM(require("../../../DragSortList"));
41
+ var import_recordBoardColumns = require("../../utils/recordBoardColumns");
42
+ var prefix = "pisell-lowcode-";
43
+ function getColumnTitle(column) {
44
+ const title = column.title;
45
+ if (typeof title === "string") return title;
46
+ return (0, import_recordBoardColumns.getRecordBoardColumnKey)(column) || "";
47
+ }
48
+ var ColumnSettingPopover = ({
49
+ columns,
50
+ columnVisibility,
51
+ onColumnVisibilityChange,
52
+ columnOrder,
53
+ onColumnOrderChange
54
+ }) => {
55
+ const orderedColumns = (0, import_react.useMemo)(() => {
56
+ if (!Array.isArray(columnOrder) || columnOrder.length === 0) return columns;
57
+ const keyToCol = new Map(
58
+ columns.map((c) => [(0, import_recordBoardColumns.getRecordBoardColumnKey)(c), c])
59
+ );
60
+ const result = [];
61
+ for (const key of columnOrder) {
62
+ const col = keyToCol.get(key);
63
+ if (col) result.push(col);
64
+ }
65
+ columns.forEach((col) => {
66
+ const key = (0, import_recordBoardColumns.getRecordBoardColumnKey)(col);
67
+ if (!columnOrder.includes(key)) result.push(col);
68
+ });
69
+ return result;
70
+ }, [columns, columnOrder]);
71
+ const handleToggle = (colKey, isShow) => {
72
+ onColumnVisibilityChange({ [colKey]: isShow });
73
+ };
74
+ const handleOrderChange = (list) => {
75
+ onColumnOrderChange == null ? void 0 : onColumnOrderChange(
76
+ list.map((c) => (0, import_recordBoardColumns.getRecordBoardColumnKey)(c)).filter(Boolean)
77
+ );
78
+ };
79
+ const listContent = /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}table-action-column-content` }, typeof onColumnOrderChange === "function" ? /* @__PURE__ */ import_react.default.createElement(
80
+ import_DragSortList.default,
81
+ {
82
+ list: orderedColumns,
83
+ rowKey: (col) => (0, import_recordBoardColumns.getRecordBoardColumnKey)(col) || "",
84
+ onChange: handleOrderChange
85
+ },
86
+ ({
87
+ item: col,
88
+ index,
89
+ style,
90
+ props,
91
+ attributes,
92
+ setActivatorNodeRef,
93
+ listeners
94
+ }) => {
95
+ const colKey = (0, import_recordBoardColumns.getRecordBoardColumnKey)(col);
96
+ const isShow = columnVisibility[colKey] !== false;
97
+ return /* @__PURE__ */ import_react.default.createElement(
98
+ "div",
99
+ {
100
+ key: colKey,
101
+ ...attributes,
102
+ ref: props.ref,
103
+ style,
104
+ className: `${prefix}table-action-column-drag-item`
105
+ },
106
+ /* @__PURE__ */ import_react.default.createElement(
107
+ import_DotsSix.default,
108
+ {
109
+ ref: setActivatorNodeRef,
110
+ ...listeners,
111
+ style: { touchAction: "none" },
112
+ className: `${prefix}table-action-column-drag-bar`
113
+ }
114
+ ),
115
+ /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}table-action-column-drag-item-right` }, /* @__PURE__ */ import_react.default.createElement(
116
+ "span",
117
+ {
118
+ className: (0, import_classnames.default)(
119
+ `${prefix}table-action-column-drag-item-right-text`,
120
+ {
121
+ [`${prefix}table-action-column-drag-item-right-text-hidden`]: !isShow
122
+ }
123
+ )
124
+ },
125
+ getColumnTitle(col)
126
+ ), /* @__PURE__ */ import_react.default.createElement(
127
+ "span",
128
+ {
129
+ className: `${prefix}table-action-column-drag-item-right-icon-wrap`,
130
+ onClick: () => handleToggle(colKey, !isShow),
131
+ role: "button",
132
+ "aria-label": isShow ? "hide" : "show"
133
+ },
134
+ isShow ? /* @__PURE__ */ import_react.default.createElement(import_icons.EyeOutlined, null) : /* @__PURE__ */ import_react.default.createElement(import_icons.EyeInvisibleOutlined, null)
135
+ ))
136
+ );
137
+ }
138
+ ) : orderedColumns.map((col) => {
139
+ const colKey = (0, import_recordBoardColumns.getRecordBoardColumnKey)(col);
140
+ const isShow = columnVisibility[colKey] !== false;
141
+ return /* @__PURE__ */ import_react.default.createElement(
142
+ "div",
143
+ {
144
+ key: colKey,
145
+ className: `${prefix}table-action-column-drag-item`,
146
+ style: { cursor: "default" }
147
+ },
148
+ /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}table-action-column-drag-item-right` }, /* @__PURE__ */ import_react.default.createElement(
149
+ "span",
150
+ {
151
+ className: (0, import_classnames.default)(
152
+ `${prefix}table-action-column-drag-item-right-text`,
153
+ {
154
+ [`${prefix}table-action-column-drag-item-right-text-hidden`]: !isShow
155
+ }
156
+ )
157
+ },
158
+ getColumnTitle(col)
159
+ ), /* @__PURE__ */ import_react.default.createElement(
160
+ "span",
161
+ {
162
+ className: `${prefix}table-action-column-drag-item-right-icon-wrap`,
163
+ onClick: () => handleToggle(colKey, !isShow),
164
+ role: "button",
165
+ "aria-label": isShow ? "hide" : "show"
166
+ },
167
+ isShow ? /* @__PURE__ */ import_react.default.createElement(import_icons.EyeOutlined, null) : /* @__PURE__ */ import_react.default.createElement(import_icons.EyeInvisibleOutlined, null)
168
+ ))
169
+ );
170
+ }));
171
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}table-action-column-popover-content-wrap` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}table-action-column-header` }, /* @__PURE__ */ import_react.default.createElement("span", { className: `${prefix}table-action-column-header-title` }, (0, import_locales.getText)("table-action-column-title"))), listContent);
172
+ };
173
+ var ColumnSettingPopover_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,100 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/pisellRecordBoard/shellFrame/ColumnSetting/index.tsx
30
+ var ColumnSetting_exports = {};
31
+ __export(ColumnSetting_exports, {
32
+ default: () => ColumnSetting_default
33
+ });
34
+ module.exports = __toCommonJS(ColumnSetting_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_antd = require("antd");
37
+ var import_icons = require("@ant-design/icons");
38
+ var import_useRecordBoardContext = require("../../hooks/useRecordBoardContext");
39
+ var import_recordBoardColumns = require("../../utils/recordBoardColumns");
40
+ var import_ColumnSettingPopover = __toESM(require("./ColumnSettingPopover"));
41
+ var import_index = require("./index.less");
42
+ var RecordBoardColumnSetting = () => {
43
+ var _a, _b;
44
+ const ctx = (0, import_useRecordBoardContext.useRecordBoardContext)({ displayName: "columnSetting" });
45
+ const gridColumns = (_b = (_a = ctx.childComponentProps) == null ? void 0 : _a.grid) == null ? void 0 : _b.columns;
46
+ const columnVisibility = ctx.columnVisibility ?? {};
47
+ const onColumnVisibilityChange = ctx.onColumnVisibilityChange;
48
+ const columnOrder = ctx.columnOrder ?? null;
49
+ const onColumnOrderChange = ctx.onColumnOrderChange;
50
+ const content = (0, import_react.useMemo)(() => {
51
+ if (!Array.isArray(gridColumns) || gridColumns.length === 0 || typeof onColumnVisibilityChange !== "function") {
52
+ return null;
53
+ }
54
+ return /* @__PURE__ */ import_react.default.createElement(
55
+ import_ColumnSettingPopover.default,
56
+ {
57
+ columns: gridColumns,
58
+ columnVisibility,
59
+ onColumnVisibilityChange,
60
+ columnOrder,
61
+ onColumnOrderChange
62
+ }
63
+ );
64
+ }, [gridColumns, columnVisibility, onColumnVisibilityChange, columnOrder, onColumnOrderChange]);
65
+ const hasHiddenColumns = (0, import_react.useMemo)(() => {
66
+ if (!Array.isArray(gridColumns)) return false;
67
+ return gridColumns.some(
68
+ (col) => columnVisibility[(0, import_recordBoardColumns.getRecordBoardColumnKey)(col)] === false
69
+ );
70
+ }, [gridColumns, columnVisibility]);
71
+ if (!content) return null;
72
+ return /* @__PURE__ */ import_react.default.createElement(
73
+ import_antd.Popover,
74
+ {
75
+ content,
76
+ arrow: false,
77
+ placement: "bottomRight",
78
+ trigger: "click"
79
+ },
80
+ /* @__PURE__ */ import_react.default.createElement(
81
+ "span",
82
+ {
83
+ className: "record-board-toolbar-column-setting-btn",
84
+ style: {
85
+ display: "inline-flex",
86
+ alignItems: "center",
87
+ justifyContent: "center",
88
+ width: 32,
89
+ height: 32,
90
+ cursor: "pointer",
91
+ borderRadius: 6,
92
+ color: hasHiddenColumns ? "var(--color-primary, #1890ff)" : void 0
93
+ }
94
+ },
95
+ /* @__PURE__ */ import_react.default.createElement(import_icons.EyeOutlined, { style: { fontSize: 18 } })
96
+ )
97
+ );
98
+ };
99
+ RecordBoardColumnSetting.displayName = "RecordBoard.ColumnSetting";
100
+ var ColumnSetting_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;