@pisell/materials 3.3.88 → 3.3.89

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 (486) 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/meta.js +1 -1
  5. package/es/components/PisellBasicGrid/PisellBasicGrid.d.ts +10 -0
  6. package/es/components/PisellBasicGrid/hooks/index.d.ts +1 -0
  7. package/es/components/PisellBasicGrid/hooks/useGridStyle.d.ts +37 -0
  8. package/es/components/PisellBasicGrid/index.d.ts +6 -0
  9. package/es/components/PisellBasicGrid/types.d.ts +221 -0
  10. package/es/components/PisellBasicGrid/utils/index.d.ts +63 -0
  11. package/es/components/PisellCards/PisellCards.d.ts +8 -0
  12. package/es/components/PisellCards/components/GraphicTextCard/components/BadgeWrapper.d.ts +5 -0
  13. package/es/components/PisellCards/components/GraphicTextCard/components/TextContent.d.ts +27 -0
  14. package/es/components/PisellCards/components/GraphicTextCard/hooks/index.d.ts +5 -0
  15. package/es/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardClick.d.ts +15 -0
  16. package/es/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardStyle.d.ts +18 -0
  17. package/es/components/PisellCards/components/GraphicTextCard/types.d.ts +290 -0
  18. package/es/components/PisellCards/components/GraphicTextCard/utils/index.d.ts +19 -0
  19. package/es/components/PisellCards/components/MultilevelCard/MultilevelCard.d.ts +19 -0
  20. package/es/components/PisellCards/components/MultilevelCard/components/CardWrapper.d.ts +7 -0
  21. package/es/components/PisellCards/components/MultilevelCard/components/index.d.ts +2 -0
  22. package/es/components/PisellCards/components/MultilevelCard/hooks/index.d.ts +2 -0
  23. package/es/components/PisellCards/components/MultilevelCard/hooks/useMultilevelCardExpand.d.ts +32 -0
  24. package/es/components/PisellCards/components/MultilevelCard/hooks/useMultilevelCardHover.d.ts +28 -0
  25. package/es/components/PisellCards/components/MultilevelCard/index.d.ts +2 -0
  26. package/es/components/PisellCards/components/MultilevelCard/types.d.ts +202 -0
  27. package/es/components/PisellCards/components/MultilevelCard/utils/index.d.ts +6 -0
  28. package/es/components/PisellCards/components/PisellImageCard/components/index.d.ts +0 -0
  29. package/es/components/PisellCards/components/PisellImageCard/hooks/index.d.ts +5 -0
  30. package/es/components/PisellCards/components/PisellImageCard/hooks/useImageLoad.d.ts +12 -0
  31. package/es/components/PisellCards/components/PisellImageCard/hooks/usePisellImageCardStyle.d.ts +10 -0
  32. package/es/components/PisellCards/components/PisellImageCard/types.d.ts +74 -0
  33. package/es/components/PisellCards/components/PisellImageCard/utils/getImageObjectFit.d.ts +7 -0
  34. package/es/components/PisellCards/components/PisellImageCard/utils/getTruncatedText.d.ts +7 -0
  35. package/es/components/PisellCards/components/PisellImageCard/utils/index.d.ts +5 -0
  36. package/es/components/PisellCards/components/TabCard/TabCard.d.ts +4 -0
  37. package/es/components/PisellCards/components/TabCard/index.d.ts +5 -0
  38. package/es/components/PisellCards/components/TabCard/types.d.ts +70 -0
  39. package/es/components/PisellCards/components/TextCard/TextCard.d.ts +8 -0
  40. package/es/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +26 -0
  41. package/es/components/PisellCards/components/TextCard/components/IconWrapper.d.ts +17 -0
  42. package/es/components/PisellCards/components/TextCard/components/TextContent.d.ts +21 -0
  43. package/es/components/PisellCards/components/TextCard/components/index.d.ts +6 -0
  44. package/es/components/PisellCards/components/TextCard/hooks/index.d.ts +0 -0
  45. package/es/components/PisellCards/components/TextCard/index.d.ts +5 -0
  46. package/es/components/PisellCards/components/TextCard/types.d.ts +270 -0
  47. package/es/components/PisellCards/components/TextCard/utils/index.d.ts +0 -0
  48. package/es/components/PisellCards/hooks/index.d.ts +0 -0
  49. package/es/components/PisellCards/index.d.ts +15 -0
  50. package/es/components/PisellCards/types.d.ts +48 -0
  51. package/es/components/PisellCards/utils/index.d.ts +0 -0
  52. package/es/components/PisellLayouts/index.d.ts +1 -0
  53. package/es/components/PisellProcedure/components/FooterActions.d.ts +24 -0
  54. package/es/components/PisellProcedure/components/ProcedureContent.d.ts +23 -0
  55. package/es/components/PisellProcedure/components/ProcedureSidebar.d.ts +38 -0
  56. package/es/components/PisellProcedure/hooks/index.d.ts +8 -0
  57. package/es/components/PisellProcedure/hooks/useElementSize.d.ts +38 -0
  58. package/es/components/PisellProcedure/hooks/useOverflowActions.d.ts +43 -0
  59. package/es/components/PisellProcedure/hooks/useResponsiveClass.d.ts +6 -0
  60. package/es/components/PisellProcedure/hooks/useSidebarHeight.d.ts +16 -0
  61. package/es/components/PisellProcedure/hooks/useStepManager.d.ts +50 -0
  62. package/es/components/PisellProcedure/types.d.ts +363 -0
  63. package/es/components/PisellProcedure/utils/classNames.d.ts +33 -0
  64. package/es/components/PisellProcedure/utils/extractText.d.ts +20 -0
  65. package/es/components/PisellProcedure/utils/footerPosition.d.ts +41 -0
  66. package/es/components/PisellProcedure/utils/index.d.ts +8 -0
  67. package/es/components/PisellProcedure/utils/layoutRatio.d.ts +42 -0
  68. package/es/components/PisellProcedure/utils/slotHelper.d.ts +27 -0
  69. package/es/components/PisellScrollView/PisellScrollView.d.ts +5 -0
  70. package/es/components/PisellScrollView/PisellScrollView.stories.d.ts +87 -0
  71. package/es/components/PisellScrollView/components/Actions/index.d.ts +12 -0
  72. package/es/components/PisellScrollView/hooks/index.d.ts +3 -0
  73. package/es/components/PisellScrollView/hooks/useIntersection.d.ts +8 -0
  74. package/es/components/PisellScrollView/hooks/useScrollEvents.d.ts +20 -0
  75. package/es/components/PisellScrollView/hooks/useScrollState.d.ts +13 -0
  76. package/es/components/PisellScrollView/index.d.ts +3 -0
  77. package/es/components/PisellScrollView/types.d.ts +203 -0
  78. package/es/components/PisellScrollView/utils/index.d.ts +0 -0
  79. package/es/components/PisellSteps/PisellSteps.stories.d.ts +155 -0
  80. package/es/components/PisellSteps/hooks/index.d.ts +4 -0
  81. package/es/components/PisellSteps/hooks/useAnchor.d.ts +9 -0
  82. package/es/components/PisellSteps/hooks/useResponsive.d.ts +8 -0
  83. package/es/components/PisellSteps/hooks/useStepClick.d.ts +11 -0
  84. package/es/components/PisellSteps/hooks/useStepsState.d.ts +9 -0
  85. package/es/components/PisellSteps/index.d.ts +3 -0
  86. package/es/components/PisellSteps/types.d.ts +257 -0
  87. package/es/components/PisellSteps/utils/index.d.ts +54 -0
  88. package/es/components/PisellSuperTabs/components/index.d.ts +0 -0
  89. package/es/components/PisellSuperTabs/utils/getRowKey.d.ts +8 -0
  90. package/es/components/PisellSuperTabs/utils/index.d.ts +1 -0
  91. package/es/components/PisellTabbar/locales.d.ts +23 -0
  92. package/es/components/PisellTabbar/mock.d.ts +47 -0
  93. package/es/components/PisellTabbar/template/index.d.ts +0 -0
  94. package/es/components/PisellTabbar2/constants.d.ts +46 -0
  95. package/es/components/PisellTabbar2/hooks/index.d.ts +2 -0
  96. package/es/components/PisellTabbar2/hooks/useActiveKey.d.ts +50 -0
  97. package/es/components/PisellTabbar2/hooks/useExpand.d.ts +41 -0
  98. package/es/components/PisellTabbar2/locales.d.ts +23 -0
  99. package/es/components/PisellTabbar2/mock.d.ts +205 -0
  100. package/es/components/PisellTabbar2/types.d.ts +117 -0
  101. package/es/components/PisellTabbar2/utils/index.d.ts +35 -0
  102. package/es/components/PisellTabbar3/locales.d.ts +23 -0
  103. package/es/components/PisellTabbar3/mock.d.ts +47 -0
  104. package/es/components/PisellTabbar3/types.d.ts +111 -0
  105. package/es/components/Template/PisellSteps.d.ts +0 -0
  106. package/es/components/Template/components/index.d.ts +0 -0
  107. package/es/components/Template/hooks/index.d.ts +0 -0
  108. package/es/components/Template/index.d.ts +0 -0
  109. package/es/components/Template/types.d.ts +0 -0
  110. package/es/components/Template/utils/index.d.ts +0 -0
  111. package/es/components/batch-editor/fields/index.d.ts +1 -0
  112. package/es/components/calendar/index.d.ts +1 -0
  113. package/es/components/checkbox/index.d.ts +1 -0
  114. package/es/components/config-provider/index.d.ts +10 -0
  115. package/es/components/dataSourceComponents/dataSourceForm/urlUtils.d.ts +24 -0
  116. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +0 -1
  117. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  118. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
  119. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +84 -0
  120. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +27 -0
  121. package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -0
  122. package/es/components/dataSourceComponents/fields/Upload/constants.d.ts +9 -0
  123. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  124. package/es/components/dataSourceComponents/fields/index.d.ts +12 -11
  125. package/es/components/dataSourceComponents/hooks/useFormSettingParams.d.ts +7 -0
  126. package/es/components/drag-sort-tree/index.d.ts +5 -0
  127. package/es/components/filter/components/Dropdown/types.d.ts +13 -0
  128. package/es/components/filter/components/FilterButton/types.d.ts +24 -0
  129. package/es/components/filter/types.d.ts +48 -0
  130. package/es/components/keyboard/index.d.ts +22 -0
  131. package/es/components/login-and-register/index.d.ts +82 -0
  132. package/es/components/pisellBatchActionBar/types.d.ts +237 -0
  133. package/es/components/pisellCurrency/PisellCurrency.d.ts +39 -0
  134. package/es/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +0 -1
  135. package/es/components/pisellDataSourceContainer/utils/formatData.d.ts +9 -0
  136. package/es/components/pisellDateTimeDisplay/formats/dateTimeDisplayFormats.d.ts +7 -0
  137. package/es/components/pisellDateTimeDisplay/formats/index.d.ts +1 -0
  138. package/es/components/pisellDateTimeDisplay/types.d.ts +352 -0
  139. package/es/components/pisellDateTimeDisplay/utils/formatTime.d.ts +19 -0
  140. package/es/components/pisellDateTimeDisplay/utils/getRefreshInterval.d.ts +18 -0
  141. package/es/components/pisellDateTimeDisplay/utils/relativeDay.d.ts +24 -0
  142. package/es/components/pisellEmail/PisellEmail.d.ts +37 -0
  143. package/es/components/pisellEmail/constants/emailDomains.d.ts +5 -0
  144. package/es/components/pisellEmail/constants/emailRegex.d.ts +13 -0
  145. package/es/components/pisellEmail/utils/domainSuggestions.d.ts +15 -0
  146. package/es/components/pisellFilter/type.d.ts +5 -0
  147. package/es/components/pisellGridPro/GridPro.d.ts +9 -0
  148. package/es/components/pisellGridPro/GridView/index.d.ts +6 -0
  149. package/es/components/pisellGridPro/GridView/type.d.ts +3 -0
  150. package/es/components/pisellGridPro/ToolBar/index.d.ts +6 -0
  151. package/es/components/pisellGridPro/ToolBar/type.d.ts +10 -0
  152. package/es/components/pisellGridPro/components/DataCard/components/StatCard/index.d.ts +10 -0
  153. package/es/components/pisellGridPro/components/DataCard/index.d.ts +6 -0
  154. package/es/components/pisellGridPro/components/DataCard/types.d.ts +70 -0
  155. package/es/components/pisellGridPro/components/Footer/index.d.ts +9 -0
  156. package/es/components/pisellGridPro/components/Header/index.d.ts +12 -0
  157. package/es/components/pisellGridPro/index.d.ts +4 -0
  158. package/es/components/pisellLayout/index.d.ts +14 -0
  159. package/es/components/pisellLongText/PisellLongText.d.ts +39 -0
  160. package/es/components/pisellLookup/PisellLookup.stories.d.ts +129 -0
  161. package/es/components/pisellLookup/components/HotWords.d.ts +7 -0
  162. package/es/components/pisellLookup/components/LookupAuxiliary.d.ts +7 -0
  163. package/es/components/pisellLookup/components/LookupResultHost.d.ts +7 -0
  164. package/es/components/pisellLookup/components/SearchHistory.d.ts +7 -0
  165. package/es/components/pisellLookup/components/SuggestWords.d.ts +7 -0
  166. package/es/components/pisellLookup/components/index.d.ts +9 -0
  167. package/es/components/pisellLookup/hooks/index.d.ts +6 -0
  168. package/es/components/pisellLookup/hooks/useDebounceSearch.d.ts +40 -0
  169. package/es/components/pisellLookup/hooks/useSearchHistory.d.ts +48 -0
  170. package/es/components/pisellLookup/hooks/useSearchState.d.ts +80 -0
  171. package/es/components/pisellLookup/index.d.ts +6 -0
  172. package/es/components/pisellLookup/types.d.ts +667 -0
  173. package/es/components/pisellLookup/utils/index.d.ts +5 -0
  174. package/es/components/pisellLookup/utils/storage.d.ts +42 -0
  175. package/es/components/pisellLookup/utils/trigger.d.ts +42 -0
  176. package/es/components/pisellMetricCard/components/MetricTitle.d.ts +12 -0
  177. package/es/components/pisellMetricCard/components/MetricValue.d.ts +12 -0
  178. package/es/components/pisellMetricCard/components/TrendIcon.d.ts +14 -0
  179. package/es/components/pisellMetricCard/types.d.ts +201 -0
  180. package/es/components/pisellMetricCard/utils/calculateTrend.d.ts +14 -0
  181. package/es/components/pisellMultipleSelect/PisellMultipleSelect.d.ts +9 -0
  182. package/es/components/pisellMultipleSelect/components/EditView.d.ts +8 -0
  183. package/es/components/pisellNumber/PisellNumber.d.ts +42 -0
  184. package/es/components/pisellPercent/utils/rangeConverter.d.ts +36 -0
  185. package/es/components/pisellPhone/PisellPhone.d.ts +36 -0
  186. package/es/components/pisellPhone/components/EditView.d.ts +19 -0
  187. package/es/components/pisellPhone/constants/countryCodes.d.ts +20 -0
  188. package/es/components/pisellPhone/types.d.ts +209 -0
  189. package/es/components/pisellPhone/utils/countryCodeHelper.d.ts +35 -0
  190. package/es/components/pisellPhone/utils/phoneFormatter.d.ts +39 -0
  191. package/es/components/pisellQuickFilter/type.d.ts +12 -0
  192. package/es/components/pisellRating/PisellRating.d.ts +31 -0
  193. package/es/components/pisellRecordBoard/context/RecordBoardContext.d.ts +3 -0
  194. package/es/components/pisellRecordBoard/context/RecordBoardProvider.d.ts +11 -0
  195. package/es/components/pisellRecordBoard/hooks/useRecordBoardContext.d.ts +16 -0
  196. package/es/components/pisellRecordBoard/layouts/CardLayout/CardList.d.ts +12 -0
  197. package/es/components/pisellRecordBoard/layouts/CardLayout/index.d.ts +13 -0
  198. package/es/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +8 -0
  199. package/es/components/pisellRecordBoard/shellFrame/Search/index.d.ts +10 -0
  200. package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.d.ts +16 -0
  201. package/es/components/pisellRecordBoard/types.d.ts +315 -0
  202. package/es/components/pisellRecordBoard/utils/withRecordBoard.d.ts +9 -0
  203. package/es/components/pisellShellFrame/PisellShellFrame.d.ts +13 -0
  204. package/es/components/pisellShellFrame/PisellShellFrame.stories.d.ts +15 -0
  205. package/es/components/pisellShellFrame/index.d.ts +2 -0
  206. package/es/components/pisellShellFrame/types.d.ts +56 -0
  207. package/es/components/pisellSingleLineText/PisellSingleLineText.d.ts +40 -0
  208. package/es/components/pisellSingleSelect/PisellSingleSelect.d.ts +9 -0
  209. package/es/components/pisellSort/type.d.ts +7 -0
  210. package/es/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.d.ts +32 -0
  211. package/es/components/pisellTimeRangeDisplay/types.d.ts +137 -0
  212. package/es/components/pisellTimeRangeDisplay/utils/formatDuration.d.ts +14 -0
  213. package/es/components/pisellTimeRangeDisplay/utils/parseTimeRange.d.ts +23 -0
  214. package/es/components/pisellUrl/PisellUrl.d.ts +37 -0
  215. package/es/components/pisellUrl/utils/index.d.ts +6 -0
  216. package/es/components/pisellUrl/utils/urlFormatter.d.ts +38 -0
  217. package/es/components/pisellUrl/utils/urlHelper.d.ts +63 -0
  218. package/es/components/pisellUrl/utils/urlValidator.d.ts +46 -0
  219. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +4 -0
  220. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  221. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +4 -0
  222. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +19 -0
  223. package/es/components/radio/index.d.ts +1 -0
  224. package/es/components/skeleton/index.d.ts +1 -0
  225. package/es/components/sort/index.d.ts +5 -0
  226. package/es/components/sort/types.d.ts +39 -0
  227. package/es/components/table/Actions/component/ViewMode/index.d.ts +9 -0
  228. package/es/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
  229. package/es/components/table/Table/fields/select/index.d.ts +0 -1
  230. package/es/components/table/Table/fields/treeSelect/index.d.ts +0 -1
  231. package/es/components/table/Table/fields/types/index.d.ts +33 -0
  232. package/es/components/table/Table/utils.d.ts +1 -1
  233. package/es/components/table/types.d.ts +268 -0
  234. package/es/components/time-picker/index.d.ts +1 -0
  235. package/es/components/translation/index.d.ts +17 -0
  236. package/es/components/translation/utils.d.ts +9 -0
  237. package/es/components/upload/index.d.ts +1 -0
  238. package/es/components/virtual-keyboard/Time/utils.d.ts +1 -0
  239. package/es/components/virtualInput/BaseVirtualInput/index.d.ts +44 -0
  240. package/es/components/virtualInput/index.d.ts +29 -0
  241. package/es/hooks/useMobile.d.ts +8 -0
  242. package/es/hooks/useThemeTokens.d.ts +7 -0
  243. package/es/theme/tokens.d.ts +22 -0
  244. package/es/utils/tagColor.d.ts +7 -0
  245. package/lib/components/PisellBasicGrid/PisellBasicGrid.d.ts +10 -0
  246. package/lib/components/PisellBasicGrid/hooks/index.d.ts +1 -0
  247. package/lib/components/PisellBasicGrid/hooks/useGridStyle.d.ts +37 -0
  248. package/lib/components/PisellBasicGrid/index.d.ts +6 -0
  249. package/lib/components/PisellBasicGrid/types.d.ts +221 -0
  250. package/lib/components/PisellBasicGrid/utils/index.d.ts +63 -0
  251. package/lib/components/PisellCards/PisellCards.d.ts +8 -0
  252. package/lib/components/PisellCards/components/GraphicTextCard/components/BadgeWrapper.d.ts +5 -0
  253. package/lib/components/PisellCards/components/GraphicTextCard/components/TextContent.d.ts +27 -0
  254. package/lib/components/PisellCards/components/GraphicTextCard/hooks/index.d.ts +5 -0
  255. package/lib/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardClick.d.ts +15 -0
  256. package/lib/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardStyle.d.ts +18 -0
  257. package/lib/components/PisellCards/components/GraphicTextCard/types.d.ts +290 -0
  258. package/lib/components/PisellCards/components/GraphicTextCard/utils/index.d.ts +19 -0
  259. package/lib/components/PisellCards/components/MultilevelCard/MultilevelCard.d.ts +19 -0
  260. package/lib/components/PisellCards/components/MultilevelCard/components/CardWrapper.d.ts +7 -0
  261. package/lib/components/PisellCards/components/MultilevelCard/components/index.d.ts +2 -0
  262. package/lib/components/PisellCards/components/MultilevelCard/hooks/index.d.ts +2 -0
  263. package/lib/components/PisellCards/components/MultilevelCard/hooks/useMultilevelCardExpand.d.ts +32 -0
  264. package/lib/components/PisellCards/components/MultilevelCard/hooks/useMultilevelCardHover.d.ts +28 -0
  265. package/lib/components/PisellCards/components/MultilevelCard/index.d.ts +2 -0
  266. package/lib/components/PisellCards/components/MultilevelCard/types.d.ts +202 -0
  267. package/lib/components/PisellCards/components/MultilevelCard/utils/index.d.ts +6 -0
  268. package/lib/components/PisellCards/components/PisellImageCard/components/index.d.ts +0 -0
  269. package/lib/components/PisellCards/components/PisellImageCard/hooks/index.d.ts +5 -0
  270. package/lib/components/PisellCards/components/PisellImageCard/hooks/useImageLoad.d.ts +12 -0
  271. package/lib/components/PisellCards/components/PisellImageCard/hooks/usePisellImageCardStyle.d.ts +10 -0
  272. package/lib/components/PisellCards/components/PisellImageCard/types.d.ts +74 -0
  273. package/lib/components/PisellCards/components/PisellImageCard/utils/getImageObjectFit.d.ts +7 -0
  274. package/lib/components/PisellCards/components/PisellImageCard/utils/getTruncatedText.d.ts +7 -0
  275. package/lib/components/PisellCards/components/PisellImageCard/utils/index.d.ts +5 -0
  276. package/lib/components/PisellCards/components/TabCard/TabCard.d.ts +4 -0
  277. package/lib/components/PisellCards/components/TabCard/index.d.ts +5 -0
  278. package/lib/components/PisellCards/components/TabCard/types.d.ts +70 -0
  279. package/lib/components/PisellCards/components/TextCard/TextCard.d.ts +8 -0
  280. package/lib/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +26 -0
  281. package/lib/components/PisellCards/components/TextCard/components/IconWrapper.d.ts +17 -0
  282. package/lib/components/PisellCards/components/TextCard/components/TextContent.d.ts +21 -0
  283. package/lib/components/PisellCards/components/TextCard/components/index.d.ts +6 -0
  284. package/lib/components/PisellCards/components/TextCard/hooks/index.d.ts +0 -0
  285. package/lib/components/PisellCards/components/TextCard/index.d.ts +5 -0
  286. package/lib/components/PisellCards/components/TextCard/types.d.ts +270 -0
  287. package/lib/components/PisellCards/components/TextCard/utils/index.d.ts +0 -0
  288. package/lib/components/PisellCards/hooks/index.d.ts +0 -0
  289. package/lib/components/PisellCards/index.d.ts +15 -0
  290. package/lib/components/PisellCards/types.d.ts +48 -0
  291. package/lib/components/PisellCards/utils/index.d.ts +0 -0
  292. package/lib/components/PisellLayouts/index.d.ts +1 -0
  293. package/lib/components/PisellProcedure/components/FooterActions.d.ts +24 -0
  294. package/lib/components/PisellProcedure/components/ProcedureContent.d.ts +23 -0
  295. package/lib/components/PisellProcedure/components/ProcedureSidebar.d.ts +38 -0
  296. package/lib/components/PisellProcedure/hooks/index.d.ts +8 -0
  297. package/lib/components/PisellProcedure/hooks/useElementSize.d.ts +38 -0
  298. package/lib/components/PisellProcedure/hooks/useOverflowActions.d.ts +43 -0
  299. package/lib/components/PisellProcedure/hooks/useResponsiveClass.d.ts +6 -0
  300. package/lib/components/PisellProcedure/hooks/useSidebarHeight.d.ts +16 -0
  301. package/lib/components/PisellProcedure/hooks/useStepManager.d.ts +50 -0
  302. package/lib/components/PisellProcedure/types.d.ts +363 -0
  303. package/lib/components/PisellProcedure/utils/classNames.d.ts +33 -0
  304. package/lib/components/PisellProcedure/utils/extractText.d.ts +20 -0
  305. package/lib/components/PisellProcedure/utils/footerPosition.d.ts +41 -0
  306. package/lib/components/PisellProcedure/utils/index.d.ts +8 -0
  307. package/lib/components/PisellProcedure/utils/layoutRatio.d.ts +42 -0
  308. package/lib/components/PisellProcedure/utils/slotHelper.d.ts +27 -0
  309. package/lib/components/PisellScrollView/PisellScrollView.d.ts +5 -0
  310. package/lib/components/PisellScrollView/PisellScrollView.stories.d.ts +87 -0
  311. package/lib/components/PisellScrollView/components/Actions/index.d.ts +12 -0
  312. package/lib/components/PisellScrollView/hooks/index.d.ts +3 -0
  313. package/lib/components/PisellScrollView/hooks/useIntersection.d.ts +8 -0
  314. package/lib/components/PisellScrollView/hooks/useScrollEvents.d.ts +20 -0
  315. package/lib/components/PisellScrollView/hooks/useScrollState.d.ts +13 -0
  316. package/lib/components/PisellScrollView/index.d.ts +3 -0
  317. package/lib/components/PisellScrollView/types.d.ts +203 -0
  318. package/lib/components/PisellScrollView/utils/index.d.ts +0 -0
  319. package/lib/components/PisellSteps/PisellSteps.stories.d.ts +155 -0
  320. package/lib/components/PisellSteps/hooks/index.d.ts +4 -0
  321. package/lib/components/PisellSteps/hooks/useAnchor.d.ts +9 -0
  322. package/lib/components/PisellSteps/hooks/useResponsive.d.ts +8 -0
  323. package/lib/components/PisellSteps/hooks/useStepClick.d.ts +11 -0
  324. package/lib/components/PisellSteps/hooks/useStepsState.d.ts +9 -0
  325. package/lib/components/PisellSteps/index.d.ts +3 -0
  326. package/lib/components/PisellSteps/types.d.ts +257 -0
  327. package/lib/components/PisellSteps/utils/index.d.ts +54 -0
  328. package/lib/components/PisellSuperTabs/components/index.d.ts +0 -0
  329. package/lib/components/PisellSuperTabs/utils/getRowKey.d.ts +8 -0
  330. package/lib/components/PisellSuperTabs/utils/index.d.ts +1 -0
  331. package/lib/components/PisellTabbar/locales.d.ts +23 -0
  332. package/lib/components/PisellTabbar/mock.d.ts +47 -0
  333. package/lib/components/PisellTabbar/template/index.d.ts +0 -0
  334. package/lib/components/PisellTabbar2/constants.d.ts +46 -0
  335. package/lib/components/PisellTabbar2/hooks/index.d.ts +2 -0
  336. package/lib/components/PisellTabbar2/hooks/useActiveKey.d.ts +50 -0
  337. package/lib/components/PisellTabbar2/hooks/useExpand.d.ts +41 -0
  338. package/lib/components/PisellTabbar2/locales.d.ts +23 -0
  339. package/lib/components/PisellTabbar2/mock.d.ts +205 -0
  340. package/lib/components/PisellTabbar2/types.d.ts +117 -0
  341. package/lib/components/PisellTabbar2/utils/index.d.ts +35 -0
  342. package/lib/components/PisellTabbar3/locales.d.ts +23 -0
  343. package/lib/components/PisellTabbar3/mock.d.ts +47 -0
  344. package/lib/components/PisellTabbar3/types.d.ts +111 -0
  345. package/lib/components/Template/PisellSteps.d.ts +0 -0
  346. package/lib/components/Template/components/index.d.ts +0 -0
  347. package/lib/components/Template/hooks/index.d.ts +0 -0
  348. package/lib/components/Template/index.d.ts +0 -0
  349. package/lib/components/Template/types.d.ts +0 -0
  350. package/lib/components/Template/utils/index.d.ts +0 -0
  351. package/lib/components/batch-editor/fields/index.d.ts +1 -0
  352. package/lib/components/calendar/index.d.ts +1 -0
  353. package/lib/components/checkbox/index.d.ts +1 -0
  354. package/lib/components/config-provider/index.d.ts +10 -0
  355. package/lib/components/dataSourceComponents/dataSourceForm/urlUtils.d.ts +24 -0
  356. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +0 -1
  357. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  358. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
  359. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +84 -0
  360. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +27 -0
  361. package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -0
  362. package/lib/components/dataSourceComponents/fields/Upload/constants.d.ts +9 -0
  363. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  364. package/lib/components/dataSourceComponents/fields/index.d.ts +12 -11
  365. package/lib/components/dataSourceComponents/hooks/useFormSettingParams.d.ts +7 -0
  366. package/lib/components/drag-sort-tree/index.d.ts +5 -0
  367. package/lib/components/filter/components/Dropdown/types.d.ts +13 -0
  368. package/lib/components/filter/components/FilterButton/types.d.ts +24 -0
  369. package/lib/components/filter/types.d.ts +48 -0
  370. package/lib/components/keyboard/index.d.ts +22 -0
  371. package/lib/components/login-and-register/index.d.ts +82 -0
  372. package/lib/components/pisellBatchActionBar/types.d.ts +237 -0
  373. package/lib/components/pisellCurrency/PisellCurrency.d.ts +39 -0
  374. package/lib/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +0 -1
  375. package/lib/components/pisellDataSourceContainer/utils/formatData.d.ts +9 -0
  376. package/lib/components/pisellDateTimeDisplay/formats/dateTimeDisplayFormats.d.ts +7 -0
  377. package/lib/components/pisellDateTimeDisplay/formats/index.d.ts +1 -0
  378. package/lib/components/pisellDateTimeDisplay/types.d.ts +352 -0
  379. package/lib/components/pisellDateTimeDisplay/utils/formatTime.d.ts +19 -0
  380. package/lib/components/pisellDateTimeDisplay/utils/getRefreshInterval.d.ts +18 -0
  381. package/lib/components/pisellDateTimeDisplay/utils/relativeDay.d.ts +24 -0
  382. package/lib/components/pisellEmail/PisellEmail.d.ts +37 -0
  383. package/lib/components/pisellEmail/constants/emailDomains.d.ts +5 -0
  384. package/lib/components/pisellEmail/constants/emailRegex.d.ts +13 -0
  385. package/lib/components/pisellEmail/utils/domainSuggestions.d.ts +15 -0
  386. package/lib/components/pisellFilter/type.d.ts +5 -0
  387. package/lib/components/pisellGridPro/GridPro.d.ts +9 -0
  388. package/lib/components/pisellGridPro/GridView/index.d.ts +6 -0
  389. package/lib/components/pisellGridPro/GridView/type.d.ts +3 -0
  390. package/lib/components/pisellGridPro/ToolBar/index.d.ts +6 -0
  391. package/lib/components/pisellGridPro/ToolBar/type.d.ts +10 -0
  392. package/lib/components/pisellGridPro/components/DataCard/components/StatCard/index.d.ts +10 -0
  393. package/lib/components/pisellGridPro/components/DataCard/index.d.ts +6 -0
  394. package/lib/components/pisellGridPro/components/DataCard/types.d.ts +70 -0
  395. package/lib/components/pisellGridPro/components/Footer/index.d.ts +9 -0
  396. package/lib/components/pisellGridPro/components/Header/index.d.ts +12 -0
  397. package/lib/components/pisellGridPro/index.d.ts +4 -0
  398. package/lib/components/pisellLayout/index.d.ts +14 -0
  399. package/lib/components/pisellLongText/PisellLongText.d.ts +39 -0
  400. package/lib/components/pisellLookup/PisellLookup.stories.d.ts +129 -0
  401. package/lib/components/pisellLookup/components/HotWords.d.ts +7 -0
  402. package/lib/components/pisellLookup/components/LookupAuxiliary.d.ts +7 -0
  403. package/lib/components/pisellLookup/components/LookupResultHost.d.ts +7 -0
  404. package/lib/components/pisellLookup/components/SearchHistory.d.ts +7 -0
  405. package/lib/components/pisellLookup/components/SuggestWords.d.ts +7 -0
  406. package/lib/components/pisellLookup/components/index.d.ts +9 -0
  407. package/lib/components/pisellLookup/hooks/index.d.ts +6 -0
  408. package/lib/components/pisellLookup/hooks/useDebounceSearch.d.ts +40 -0
  409. package/lib/components/pisellLookup/hooks/useSearchHistory.d.ts +48 -0
  410. package/lib/components/pisellLookup/hooks/useSearchState.d.ts +80 -0
  411. package/lib/components/pisellLookup/index.d.ts +6 -0
  412. package/lib/components/pisellLookup/types.d.ts +667 -0
  413. package/lib/components/pisellLookup/utils/index.d.ts +5 -0
  414. package/lib/components/pisellLookup/utils/storage.d.ts +42 -0
  415. package/lib/components/pisellLookup/utils/trigger.d.ts +42 -0
  416. package/lib/components/pisellMetricCard/components/MetricTitle.d.ts +12 -0
  417. package/lib/components/pisellMetricCard/components/MetricValue.d.ts +12 -0
  418. package/lib/components/pisellMetricCard/components/TrendIcon.d.ts +14 -0
  419. package/lib/components/pisellMetricCard/types.d.ts +201 -0
  420. package/lib/components/pisellMetricCard/utils/calculateTrend.d.ts +14 -0
  421. package/lib/components/pisellMultipleSelect/PisellMultipleSelect.d.ts +9 -0
  422. package/lib/components/pisellMultipleSelect/components/EditView.d.ts +8 -0
  423. package/lib/components/pisellNumber/PisellNumber.d.ts +42 -0
  424. package/lib/components/pisellPercent/utils/rangeConverter.d.ts +36 -0
  425. package/lib/components/pisellPhone/PisellPhone.d.ts +36 -0
  426. package/lib/components/pisellPhone/components/EditView.d.ts +19 -0
  427. package/lib/components/pisellPhone/constants/countryCodes.d.ts +20 -0
  428. package/lib/components/pisellPhone/types.d.ts +209 -0
  429. package/lib/components/pisellPhone/utils/countryCodeHelper.d.ts +35 -0
  430. package/lib/components/pisellPhone/utils/phoneFormatter.d.ts +39 -0
  431. package/lib/components/pisellQuickFilter/type.d.ts +12 -0
  432. package/lib/components/pisellRating/PisellRating.d.ts +31 -0
  433. package/lib/components/pisellRecordBoard/context/RecordBoardContext.d.ts +3 -0
  434. package/lib/components/pisellRecordBoard/context/RecordBoardProvider.d.ts +11 -0
  435. package/lib/components/pisellRecordBoard/hooks/useRecordBoardContext.d.ts +16 -0
  436. package/lib/components/pisellRecordBoard/layouts/CardLayout/CardList.d.ts +12 -0
  437. package/lib/components/pisellRecordBoard/layouts/CardLayout/index.d.ts +13 -0
  438. package/lib/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +8 -0
  439. package/lib/components/pisellRecordBoard/shellFrame/Search/index.d.ts +10 -0
  440. package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.d.ts +16 -0
  441. package/lib/components/pisellRecordBoard/types.d.ts +315 -0
  442. package/lib/components/pisellRecordBoard/utils/withRecordBoard.d.ts +9 -0
  443. package/lib/components/pisellShellFrame/PisellShellFrame.d.ts +13 -0
  444. package/lib/components/pisellShellFrame/PisellShellFrame.stories.d.ts +15 -0
  445. package/lib/components/pisellShellFrame/index.d.ts +2 -0
  446. package/lib/components/pisellShellFrame/types.d.ts +56 -0
  447. package/lib/components/pisellSingleLineText/PisellSingleLineText.d.ts +40 -0
  448. package/lib/components/pisellSingleSelect/PisellSingleSelect.d.ts +9 -0
  449. package/lib/components/pisellSort/type.d.ts +7 -0
  450. package/lib/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.d.ts +32 -0
  451. package/lib/components/pisellTimeRangeDisplay/types.d.ts +137 -0
  452. package/lib/components/pisellTimeRangeDisplay/utils/formatDuration.d.ts +14 -0
  453. package/lib/components/pisellTimeRangeDisplay/utils/parseTimeRange.d.ts +23 -0
  454. package/lib/components/pisellUrl/PisellUrl.d.ts +37 -0
  455. package/lib/components/pisellUrl/utils/index.d.ts +6 -0
  456. package/lib/components/pisellUrl/utils/urlFormatter.d.ts +38 -0
  457. package/lib/components/pisellUrl/utils/urlHelper.d.ts +63 -0
  458. package/lib/components/pisellUrl/utils/urlValidator.d.ts +46 -0
  459. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +4 -0
  460. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  461. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +4 -0
  462. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +19 -0
  463. package/lib/components/radio/index.d.ts +1 -0
  464. package/lib/components/skeleton/index.d.ts +1 -0
  465. package/lib/components/sort/index.d.ts +5 -0
  466. package/lib/components/sort/types.d.ts +39 -0
  467. package/lib/components/table/Actions/component/ViewMode/index.d.ts +9 -0
  468. package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
  469. package/lib/components/table/Table/fields/select/index.d.ts +0 -1
  470. package/lib/components/table/Table/fields/treeSelect/index.d.ts +0 -1
  471. package/lib/components/table/Table/fields/types/index.d.ts +33 -0
  472. package/lib/components/table/Table/utils.d.ts +1 -1
  473. package/lib/components/table/types.d.ts +268 -0
  474. package/lib/components/time-picker/index.d.ts +1 -0
  475. package/lib/components/translation/index.d.ts +17 -0
  476. package/lib/components/translation/utils.d.ts +9 -0
  477. package/lib/components/upload/index.d.ts +1 -0
  478. package/lib/components/virtual-keyboard/Time/utils.d.ts +1 -0
  479. package/lib/components/virtualInput/BaseVirtualInput/index.d.ts +44 -0
  480. package/lib/components/virtualInput/index.d.ts +29 -0
  481. package/lib/hooks/useMobile.d.ts +8 -0
  482. package/lib/hooks/useThemeTokens.d.ts +7 -0
  483. package/lib/theme/tokens.d.ts +22 -0
  484. package/lib/utils/tagColor.d.ts +7 -0
  485. package/lowcode/auto-resize-text/meta.ts +1 -1
  486. package/package.json +3 -3
@@ -0,0 +1,35 @@
1
+ import type { CountryCode, PisellPhoneProps } from '../types';
2
+ /**
3
+ * 根据国家码获取国旗 emoji
4
+ * @param countryCode 国家码
5
+ * @returns 国旗 emoji
6
+ */
7
+ export declare function getCountryFlag(countryCode: string): string;
8
+ /**
9
+ * 根据国家码获取最大长度
10
+ * @param countryCode 国家码
11
+ * @param countryCodes 国家码列表
12
+ * @returns 最大长度
13
+ */
14
+ export declare function getMaxLength(countryCode: string, countryCodes: CountryCode[]): number;
15
+ /**
16
+ * 根据国家码获取配置
17
+ * @param countryCode 国家码
18
+ * @param countryCodes 国家码列表
19
+ * @returns 国家码配置
20
+ */
21
+ export declare function getCountryConfig(countryCode: string, countryCodes: CountryCode[]): CountryCode | undefined;
22
+ /**
23
+ * 获取最终的国家码列表
24
+ *
25
+ * 优先级:
26
+ * 1. props.countryCodes(完全自定义)
27
+ * 2. props.availableCountryCodes(从预设中过滤)
28
+ * 3. PRESET_COUNTRY_CODES(默认全部24个)
29
+ *
30
+ * 然后根据 props.commonCountryCodes 排序(置顶)
31
+ *
32
+ * @param props 组件 Props
33
+ * @returns 国家码列表
34
+ */
35
+ export declare function getCountryCodes(props: PisellPhoneProps): CountryCode[];
@@ -0,0 +1,39 @@
1
+ /**
2
+ * 电话号码格式化工具
3
+ */
4
+ /**
5
+ * 中国大陆手机号格式化:138 0000 0000
6
+ */
7
+ export declare function formatChinaMobile(phone: string): string;
8
+ /**
9
+ * 美国/加拿大号码格式化:(555) 123-4567
10
+ */
11
+ export declare function formatUSPhone(phone: string): string;
12
+ /**
13
+ * 英国号码格式化:1234 567 8900
14
+ */
15
+ export declare function formatUKPhone(phone: string): string;
16
+ /**
17
+ * 根据国家码格式化电话号码
18
+ * @param phone 电话号码(纯数字)
19
+ * @param countryCode 国家码
20
+ * @returns 格式化后的电话号码
21
+ */
22
+ export declare function formatPhone(phone: string, countryCode: string): string;
23
+ /**
24
+ * 电话号码脱敏
25
+ * @param phone 电话号码
26
+ * @param pattern 脱敏模式
27
+ * @returns 脱敏后的号码
28
+ *
29
+ * @example
30
+ * maskPhone('13800000000', 'middle') // '138****0000'
31
+ * maskPhone('13800000000', 'last') // '1380000****'
32
+ */
33
+ export declare function maskPhone(phone: string, pattern?: 'middle' | 'last'): string;
34
+ /**
35
+ * 检测号码类型(中国)
36
+ * @param phone 电话号码
37
+ * @returns 号码类型
38
+ */
39
+ export declare function detectPhoneType(phone: string): 'mobile' | 'landline' | 'unknown';
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { FilterItemProps } from '../filter/types';
3
+ import { FormInstance } from 'antd';
4
+ export declare type PisellQuickFilterProps = FormInstance & {
5
+ hasForm?: boolean;
6
+ children?: React.ReactNode;
7
+ formFiltersPrefix: string;
8
+ filterList?: FilterItemProps[];
9
+ quickFilterMaxLength: number;
10
+ hiddenQuickFilter: boolean;
11
+ hiddenOtherFilter: boolean;
12
+ };
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ import type { PisellRatingProps } from './types';
3
+ import './PisellRating.less';
4
+ /**
5
+ * PisellRating 评分组件
6
+ *
7
+ * 基于 Ant Design Rate 组件开发,提供直观的星级评分交互。
8
+ * 支持只读、编辑、禁用三种状态。
9
+ *
10
+ * @param props 组件 Props
11
+ *
12
+ * @example
13
+ * // 基础使用
14
+ * const [rating, setRating] = useState(0);
15
+ * <PisellRating value={rating} onChange={setRating} />
16
+ *
17
+ * @example
18
+ * // 只读态
19
+ * <PisellRating mode="read" value={4.5} allowHalf />
20
+ *
21
+ * @example
22
+ * // 带评分描述
23
+ * <PisellRating
24
+ * value={rating}
25
+ * onChange={setRating}
26
+ * tooltips={['很差', '差', '一般', '好', '很好']}
27
+ * />
28
+ */
29
+ export declare const PisellRating: React.FC<PisellRatingProps>;
30
+ declare const _default: React.NamedExoticComponent<PisellRatingProps>;
31
+ export default _default;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import type { RecordBoardContextValue } from '../types';
3
+ export declare const RecordBoardContext: import("react").Context<RecordBoardContextValue | null>;
@@ -0,0 +1,11 @@
1
+ import React, { ReactNode } from 'react';
2
+ import type { RecordBoardContextValue } from '../types';
3
+ export interface RecordBoardProviderProps {
4
+ value: RecordBoardContextValue;
5
+ children: ReactNode;
6
+ }
7
+ /**
8
+ * 仅负责注入 RecordBoard 上下文。
9
+ * 实际的数据源、onSearch/onPageChange 由上层(如接 DataSourceContainer 或独立 fetch)提供。
10
+ */
11
+ export declare const RecordBoardProvider: React.FC<RecordBoardProviderProps>;
@@ -0,0 +1,16 @@
1
+ import type { RecordBoardContextValue, RecordBoardChildComponentProps, RecordBoardGridProps } from '../types';
2
+ export interface UseRecordBoardContextOptions {
3
+ /** 子组件 displayName,用于从 childComponentProps 中取对应 props */
4
+ displayName?: keyof RecordBoardChildComponentProps;
5
+ /** 上层传入的 childComponentProps(若 Context 未提供则从参数传入) */
6
+ childComponentProps?: RecordBoardChildComponentProps;
7
+ }
8
+ /**
9
+ * 消费 RecordBoard 上下文,供各 layout 内子组件(Search / ToolBar / Grid / CardList / Pagination)使用。
10
+ * 若传入 displayName,返回会合并 childComponentProps[displayName] 便于透传。
11
+ * 当 displayName 为 'grid' 时,返回类型包含 RecordBoardGridProps(columns、scroll、size)。
12
+ */
13
+ export declare function useRecordBoardContext(options: UseRecordBoardContextOptions & {
14
+ displayName: 'grid';
15
+ }): RecordBoardContextValue & RecordBoardGridProps;
16
+ export declare function useRecordBoardContext(options?: UseRecordBoardContextOptions): RecordBoardContextValue;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import type { RecordBoardContextValue } from '../../types';
3
+ export interface RecordBoardCardListProps extends Partial<Pick<RecordBoardContextValue, 'data' | 'loading'>> {
4
+ className?: string;
5
+ style?: React.CSSProperties;
6
+ render?: (ctx: RecordBoardContextValue) => React.ReactNode;
7
+ }
8
+ /**
9
+ * Card 布局下的数据视图:从 context 取 data / loading。
10
+ */
11
+ declare const RecordBoardCardList: React.FC<RecordBoardCardListProps>;
12
+ export default RecordBoardCardList;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import RecordBoardCardList from './CardList';
3
+ /**
4
+ * Card 布局:仅内容区 = 卡片列表(不含分页)。
5
+ * 工具栏、多选操作栏、分页由 Shell Frame 提供,使用时用 ShellFrame 包裹:
6
+ * <PisellRecordBoard.ShellFrame><PisellRecordBoard.CardLayout /></PisellRecordBoard.ShellFrame>
7
+ */
8
+ declare const CardLayout: React.FC<{
9
+ className?: string;
10
+ style?: React.CSSProperties;
11
+ }>;
12
+ export default CardLayout;
13
+ export { RecordBoardCardList as CardLayoutCardList };
@@ -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,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,16 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface ToolBarResetProps {
4
+ /** 按钮尺寸,与 antd Button 一致,默认与筛选按钮对齐为 large */
5
+ size?: 'small' | 'middle' | 'large';
6
+ /** 按钮类型 */
7
+ type?: 'default' | 'primary' | 'link' | 'text';
8
+ /** 按钮文案,默认使用多语言「重置」 */
9
+ children?: React.ReactNode;
10
+ }
11
+ /**
12
+ * RecordBoard 工具栏重置按钮:清空筛选与排序并刷新表格。
13
+ * 点击后以空 filter.values、清空 sort 调用 onSearch,并调用 onReset(若提供)。
14
+ */
15
+ declare const ToolBarReset: React.FC<ToolBarResetProps>;
16
+ export default ToolBarReset;
@@ -0,0 +1,315 @@
1
+ import type { ReactNode, Key, ComponentType } from 'react';
2
+ import type { TableProps } from 'antd';
3
+ /**
4
+ * 布局类型:一种 layout 对应一种「视图的集合」
5
+ * - grid: 搜索 + 表格 + 分页
6
+ * - card: 搜索 + 卡片列表 + 分页
7
+ * 后续可扩展 list、kanban 等
8
+ */
9
+ export declare type RecordBoardLayoutType = 'grid' | 'card';
10
+ /**
11
+ * 列字段类型:对应 Pisell 表单组件,传入列 type 时用该组件自动渲染列(只读)与筛选项(编辑)
12
+ */
13
+ export declare type RecordBoardFieldType = 'singleLineText' | 'longText' | 'email' | 'phone' | 'url' | 'number' | 'currency' | 'percent' | 'rating' | 'singleSelect' | 'multipleSelect' | 'dateTime';
14
+ /** 无 type 时筛选项可传入自定义组件,需支持 value / onChange 以接入 Form */
15
+ export declare type RecordBoardFilterComponentProps = {
16
+ value?: any;
17
+ onChange?: (value: any) => void;
18
+ [key: string]: any;
19
+ };
20
+ /** 选项格式,用于 getOptions / options;color 用于只读态 Tag 展示 */
21
+ export declare type RecordBoardOptionItem = {
22
+ label: string;
23
+ value: any;
24
+ /** 只读态 Tag 颜色,如 '#e6f7ff' 或 antd 预设 'blue' */
25
+ color?: string;
26
+ };
27
+ /** 同步或异步返回选项列表,singleSelect/multipleSelect 的 fieldProps.getOptions 或 filter.getOptions 使用 */
28
+ export declare type RecordBoardGetOptions = (() => RecordBoardOptionItem[]) | (() => Promise<RecordBoardOptionItem[]>);
29
+ /** 列筛选配置:不传列 type 时使用。可配置 type + options/props,或传入 component(接收 value/onChange)。 */
30
+ export interface RecordBoardColumnFilterConfig {
31
+ type?: 'single' | 'input' | 'datePicker' | 'rangePicker' | 'rangePickerNew' | 'search';
32
+ label?: string;
33
+ options?: RecordBoardOptionItem[];
34
+ /** 同步或异步获取选项,与 options 二选一;支持 singleSelect/multipleSelect 及无 type 时 type:'single' */
35
+ getOptions?: RecordBoardGetOptions;
36
+ props?: Record<string, any>;
37
+ /** 放在快速筛选(true)还是高级筛选(false) */
38
+ quickFilter?: boolean;
39
+ /** 无 type 时可用:自定义筛选组件,由 Form 注入 value/onChange */
40
+ component?: ComponentType<RecordBoardFilterComponentProps>;
41
+ }
42
+ /**
43
+ * RecordBoard 列类型扩展(与 antd Table Column 兼容,仅增加可选字段)。
44
+ *
45
+ * 有 type(如 singleLineText)时:
46
+ * - 表格:自动用对应 Pisell 组件只读渲染;传入 render 则优先使用(覆盖)。
47
+ * - 筛选:自动用对应组件编辑态;传入 filter(type 或 component)则优先使用(覆盖)。
48
+ * - 排序:自动从组件 SortOptions 派生;传入 sort 则优先使用(覆盖)。
49
+ *
50
+ * 无 type 时:
51
+ * - 表格:无 render 则纯文本;可自定义 render。
52
+ * - 筛选:需配置 filterable + filter(type 或 component,component 需 value/onChange)。
53
+ * - 排序:需配置 sortable + sort(type 或 getSortItems)。
54
+ */
55
+ export interface RecordBoardColumnType<RecordType = any> {
56
+ title?: ReactNode;
57
+ dataIndex?: string | string[];
58
+ key?: string;
59
+ width?: number | string;
60
+ align?: 'left' | 'right' | 'center';
61
+ fixed?: 'left' | 'right' | boolean;
62
+ ellipsis?: boolean;
63
+ /** 列渲染;无 type 时必靠此或默认纯文本;有 type 时可选,传入则覆盖自动派生 */
64
+ render?: (value: any, record: RecordType, index: number) => ReactNode;
65
+ /** 其他 antd 列属性 */
66
+ [key: string]: any;
67
+ /** 字段类型;传入则表格/筛选/排序自动派生,可被 render/filter/sort 覆盖 */
68
+ type?: RecordBoardFieldType;
69
+ /**
70
+ * 传给 Pisell 组件的额外 props(type 存在且未用 filter/render 覆盖时生效)。
71
+ * singleSelect/multipleSelect 时支持 options 或 getOptions(同步/异步返回选项列表)。
72
+ */
73
+ fieldProps?: Record<string, any>;
74
+ /** 是否参与筛选;false 时不生成筛项;有 type 时默认 true */
75
+ filterable?: boolean;
76
+ /** 筛选配置;无 type 时必传 type 或 component;有 type 时可选,传入则覆盖自动派生 */
77
+ filter?: RecordBoardColumnFilterConfig;
78
+ /** 是否参与排序;false 时不生成排序项;有 type 时默认 true */
79
+ sortable?: boolean;
80
+ /**
81
+ * 排序配置;无 type 时需 sortable + sort;有 type 时可选,传入则覆盖自动派生。
82
+ * - type:内置排序子项(string/number/option 等)。
83
+ * - getSortItems:(fieldKey) => [{ key, label }]。
84
+ */
85
+ sort?: {
86
+ type?: 'date' | 'string' | 'number' | 'option';
87
+ label?: string;
88
+ isHidden?: boolean;
89
+ /** 自定义排序子项,优先于 type;fieldKey 为列 key/dataIndex */
90
+ getSortItems?: (fieldKey: string) => Array<{
91
+ key: string;
92
+ label: string;
93
+ }>;
94
+ };
95
+ /** 默认隐藏该列,与 grid.defaultHiddenColumnKeys 合并参与初始化列显隐 */
96
+ hidden?: boolean;
97
+ /**
98
+ * 当开启 grid.collapseUniformColumns 时,用此函数从 (value, record) 得到用于比较的值;
99
+ * 返回 string 或 number 时参与全等比较,返回 null/undefined 则该列不参与折叠。
100
+ * 未传则用 dataIndex 取值;与 render 类似,便于从复杂数据中抽取值再判断是否全同。
101
+ */
102
+ uniformCompare?: (value: any, record: any) => string | number | null | undefined;
103
+ /**
104
+ * 当开启 grid.collapseUniformColumns 时,为 false 则该列即使全列同值/全空也不折叠、不进入总结区;默认 true。
105
+ */
106
+ collapseWhenUniform?: boolean;
107
+ }
108
+ /**
109
+ * 分页状态(与容器内部一致)
110
+ */
111
+ export interface RecordBoardPaginationState {
112
+ pageNumber: number;
113
+ pageSize: number;
114
+ }
115
+ /**
116
+ * 列表请求结果(与 dataSource / useRequest 等对齐)
117
+ */
118
+ export interface RecordBoardListResult {
119
+ list: any[];
120
+ count?: number;
121
+ total?: number;
122
+ }
123
+ /**
124
+ * RecordBoard 容器 Context 值
125
+ * 与具体 layout 类型无关,所有 layout 共用同一套数据与操作
126
+ */
127
+ export interface RecordBoardContextValue {
128
+ /** 当前列表数据 */
129
+ data: any[];
130
+ /** 加载态 */
131
+ loading: boolean;
132
+ /** 总数(用于分页) */
133
+ total: number;
134
+ /** 分页状态 */
135
+ pagination: RecordBoardPaginationState;
136
+ /** 分页变更 */
137
+ onPageChange: (pageNumber: number, pageSize: number) => void;
138
+ /** 搜索/筛选参数 */
139
+ searchParams: Record<string, any>;
140
+ /** 触发搜索(会重置到第一页) */
141
+ onSearch: (params: Record<string, any>) => void;
142
+ /** 重置搜索 */
143
+ onReset?: () => void;
144
+ /** 当前布局类型,供子组件按需做差异化 */
145
+ layoutType: RecordBoardLayoutType;
146
+ /** 多选:当前选中的 key 列表 */
147
+ selectedKeys: Key[];
148
+ /** 多选:当前选中的行数据 */
149
+ selectedRows: any[];
150
+ /** 多选:选择变更回调(表格/卡片勾选、BatchActionBar 全选/清空/反选时调用) */
151
+ onSelectionChange: (keys: Key[], rows: any[]) => void;
152
+ /** 行主键,用于多选与列表渲染,如 'id' 或 (record) => record.id */
153
+ rowKey?: string | ((record: any) => Key);
154
+ /**
155
+ * 列显示隐藏状态(仅影响表格/卡片列展示,不影响 filter/sort 配置)。
156
+ * key 为列 key/dataIndex,value 为是否显示;未出现的列默认显示。
157
+ */
158
+ columnVisibility?: Record<string, boolean>;
159
+ /** 列显示隐藏变更回调 */
160
+ onColumnVisibilityChange?: (visibility: Record<string, boolean>) => void;
161
+ /** 列 key 顺序(用于列设置弹层拖拽排序),未设置时按 grid.columns 顺序 */
162
+ columnOrder?: string[] | null;
163
+ /** 列顺序变更回调(拖拽排序后) */
164
+ onColumnOrderChange?: (columnKeys: string[]) => void;
165
+ /** 各子组件透传 props,由 Provider 注入 */
166
+ childComponentProps?: RecordBoardChildComponentProps;
167
+ /** 是否占满父容器高度,供 ShellFrame 做弹性布局(内容区纯 CSS 滚动 + 表头 sticky;scroll.autoCalc 时用测量高度) */
168
+ fillHeight?: boolean;
169
+ /** 内容区滚动容器高度(fillHeight 且 grid.scroll.autoCalc 时由 ShellFrame 测量),供 Grid 计算 scroll.y */
170
+ scrollAreaHeight?: number | null;
171
+ /** 设置内容区滚动容器高度(由 ShellFrame 测量组件调用) */
172
+ setScrollAreaHeight?: (height: number | null) => void;
173
+ /** 点击重置时递增,供 ToolBar 给 PisellFilter 设 key 以强制重挂载,清空弹窗内表单 */
174
+ filterResetKey?: number;
175
+ /** 递增 filterResetKey,由 ToolBarReset 在重置时调用 */
176
+ setFilterResetKey?: (fn: (prev: number) => number) => void;
177
+ }
178
+ /**
179
+ * 各 layout 下子组件的可选透传配置(类似 ChildComponentProps)
180
+ */
181
+ /**
182
+ * BatchActionBar 透传配置,与 PisellBatchActionBar 的 props 对齐。
183
+ * 具体类型见 PisellBatchActionBarProps,此处仅做透传用。
184
+ */
185
+ export declare type RecordBoardBatchActionBarProps = Record<string, any>;
186
+ /** Filter 透传配置,与 PisellFilter 的 props 对齐 */
187
+ export declare type RecordBoardFilterProps = Record<string, any>;
188
+ /**
189
+ * ToolBar 透传配置。
190
+ * - 继承 PisellToolBar 的 slots:topLeft、topRight、bottomLeft、bottomRight、tabs。
191
+ * - search:默认在工具栏内渲染 PisellFind;为对象时透传为 PisellFind 的 props;为 false 时不渲染搜索。
192
+ * - filter:默认在工具栏右侧渲染 PisellFilter;为对象时透传 PisellFilter props;为 false 时不渲染。筛选值绑定 searchParams.filter,变更触发 onSearch。
193
+ */
194
+ export interface RecordBoardToolBarProps {
195
+ className?: string;
196
+ style?: React.CSSProperties;
197
+ tabs?: React.ReactNode;
198
+ topLeft?: React.ReactNode;
199
+ topRight?: React.ReactNode;
200
+ bottomLeft?: React.ReactNode;
201
+ bottomRight?: React.ReactNode;
202
+ /** 在 ToolBar 内渲染搜索:默认 PisellFind;对象透传 PisellFind props;false 不渲染 */
203
+ search?: boolean | RecordBoardSearchProps;
204
+ /** 在 ToolBar 右侧渲染筛选:默认 PisellFilter;对象透传 PisellFilter props;false 不渲染。值存于 searchParams.filter */
205
+ filter?: boolean | RecordBoardFilterProps;
206
+ /** 在 ToolBar 内、筛选左侧渲染排序:默认 Sort;对象可传 list、placement 等;false 不渲染。值存于 searchParams.sort */
207
+ sort?: boolean | Record<string, any>;
208
+ /**
209
+ * 在 ToolBar 左侧展示内联快速筛选(替代 Filter 弹层内的 quickFilter)。
210
+ * 为 true 时使用 columns 派生的 quickFilter 列表;为对象时可传 filterList、formFiltersPrefix、size 等。
211
+ * 启用后建议对 filter 传 hiddenQuickFilter: true,弹层内仅保留高级筛选。
212
+ */
213
+ quickFilter?: boolean | Record<string, any>;
214
+ /** 列显示隐藏设置入口;默认 true(有 grid.columns 时显示);false 时不渲染 */
215
+ columnSetting?: boolean;
216
+ }
217
+ /** Search 透传配置,与 PisellFind 的 props 对齐 */
218
+ export declare type RecordBoardSearchProps = Record<string, any>;
219
+ /**
220
+ * Grid 布局透传配置,对应 RecordBoardGridView 的 props(useRecordBoardContext('grid') 会将其合并到 context)。
221
+ * 基于 antd TableProps,省略由 context 注入或组件自管的项(dataSource、loading、pagination、columns、scroll、size、rowSelection)。
222
+ * 多选用 selectedKeys/selectedRows/onSelectionChange;其余 Table props(如 onRow、onHeaderRow、expandable、rowClassName、summary)透传。
223
+ */
224
+ export declare type RecordBoardGridProps = {
225
+ /** 列配置;ToolBar 据此派生筛选与排序,ColumnSetting 据此做列显示隐藏 */
226
+ columns?: RecordBoardColumnType[];
227
+ /** 默认隐藏的列 key 列表(对应 columns 的 key 或 dataIndex),用于初始化列显隐状态 */
228
+ defaultHiddenColumnKeys?: string[];
229
+ /**
230
+ * 当前页某列全部同值或全部为空时:隐藏该列,并在表格上方展示总结区(列名 + 统一值/空数据)。
231
+ * 比较规则:列可配置 uniformCompare(value, record) 返回用于比较的 string/number;否则用 dataIndex 取值;仅 string/number 参与比较,undefined/null 不参与。
232
+ * 默认 true;传 false 可关闭。
233
+ */
234
+ collapseUniformColumns?: boolean;
235
+ /**
236
+ * 表格滚动配置,对齐 materials Table useGenScroll。
237
+ * - x / y:同 antd Table scroll。
238
+ * - autoCalc:为 true 时根据内容区高度自动计算 scroll.y(需 fillHeight),表头固定、表体滚动。
239
+ * - scrollToFirstRowOnChange:翻页后是否滚动到第一行。
240
+ */
241
+ scroll?: {
242
+ x?: number | string;
243
+ y?: number | string;
244
+ autoCalc?: boolean;
245
+ scrollToFirstRowOnChange?: boolean;
246
+ };
247
+ /** 表格尺寸 */
248
+ size?: 'small' | 'middle' | 'default';
249
+ /** 当前选中的行 key 列表(多选) */
250
+ selectedKeys?: Key[];
251
+ /** 当前选中的行数据(多选) */
252
+ selectedRows?: unknown[];
253
+ /** 多选变更回调 */
254
+ onSelectionChange?: (keys: Key[], rows: unknown[]) => void;
255
+ /** 多选列配置:fixed、columnWidth 等,与 selectedKeys/onSelectionChange 合并为 Table rowSelection */
256
+ rowSelection?: Partial<Omit<NonNullable<TableProps<unknown>['rowSelection']>, 'selectedRowKeys' | 'onChange'>>;
257
+ } & Omit<TableProps<unknown>, 'dataSource' | 'loading' | 'pagination' | 'columns' | 'scroll' | 'size' | 'rowSelection'>;
258
+ export interface RecordBoardChildComponentProps {
259
+ /** 搜索配置,透传给 PisellFind;关键词绑定 searchParams.keyword */
260
+ search?: RecordBoardSearchProps;
261
+ /** 工具栏配置,透传给 PisellToolBar;内置搜索会接 context.searchParams/onSearch */
262
+ toolBar?: RecordBoardToolBarProps;
263
+ pagination?: Record<string, any>;
264
+ /** Grid 布局配置:列、滚动、尺寸等,透传给 RecordBoardGridView */
265
+ grid?: RecordBoardGridProps;
266
+ cardList?: Record<string, any>;
267
+ /** 多选操作栏配置,透传给 PisellBatchActionBar */
268
+ batchActionBar?: RecordBoardBatchActionBarProps;
269
+ }
270
+ /**
271
+ * RecordBoard 容器 Props。
272
+ * 仅打散传参:列表/分页/搜索/多选/列显隐、以及 grid/toolBar/search/paginationConfig/batchActionBar/cardList 独立传入。
273
+ */
274
+ export interface RecordBoardProps {
275
+ /** 子节点,一般为某种 Layout 或自定义组合 */
276
+ children?: ReactNode;
277
+ /** 当前使用的布局类型 */
278
+ layoutType?: RecordBoardLayoutType;
279
+ /** 行主键,用于多选与列表 */
280
+ rowKey?: string | ((record: any) => Key);
281
+ /** 当前列表数据 */
282
+ data?: any[];
283
+ /** 加载态 */
284
+ loading?: boolean;
285
+ /** 总数(用于分页) */
286
+ total?: number;
287
+ /** 分页状态 */
288
+ pagination?: RecordBoardPaginationState;
289
+ /** 分页变更 */
290
+ onPageChange?: (pageNumber: number, pageSize: number) => void;
291
+ /** 搜索/筛选参数 */
292
+ searchParams?: Record<string, any>;
293
+ /** 触发搜索(会重置到第一页) */
294
+ onSearch?: (params: Record<string, any>) => void;
295
+ /** 重置搜索 */
296
+ onReset?: () => void;
297
+ /** 列显隐持久化:传入则用 @pisell/utils 的 getComponentStorageKey 规则写入 localStorage;低代码可传 __id */
298
+ columnVisibilityStorageKey?: string;
299
+ /** Grid 配置:列、滚动、尺寸等 */
300
+ grid?: RecordBoardGridProps;
301
+ /** 工具栏配置 */
302
+ toolBar?: RecordBoardToolBarProps;
303
+ /** 搜索配置,透传给 PisellFind */
304
+ search?: RecordBoardSearchProps;
305
+ /** 分页组件透传配置(与 pagination 状态区分,此处为 Pagination 组件 props) */
306
+ paginationConfig?: Record<string, any>;
307
+ /** 多选操作栏配置 */
308
+ batchActionBar?: RecordBoardBatchActionBarProps;
309
+ /** 卡片列表配置 */
310
+ cardList?: Record<string, any>;
311
+ /** 是否启用分页(与 pagination 状态区分) */
312
+ enablePagination?: boolean;
313
+ /** 其他 */
314
+ [key: string]: any;
315
+ }
@@ -0,0 +1,9 @@
1
+ import React, { ComponentType } from 'react';
2
+ import type { RecordBoardContextValue, RecordBoardChildComponentProps } from '../types';
3
+ declare type RecordBoardDisplayName = keyof RecordBoardChildComponentProps;
4
+ /**
5
+ * 为 RecordBoard 下的子组件注入 context,并合并 childComponentProps[displayName]。
6
+ * 用于 Search / ToolBar / Pagination / Grid / CardList 等「被接管」的通用组件封装。
7
+ */
8
+ declare function withRecordBoard<P extends object, R = any>(WrappedComponent: ComponentType<P & RecordBoardContextValue>, displayName: RecordBoardDisplayName): React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<R>>;
9
+ export default withRecordBoard;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import type { PisellShellFrameProps } from './types';
3
+ import './PisellShellFrame.less';
4
+ /**
5
+ * PisellShellFrame:通用壳层布局组件。
6
+ * 支持通过 config 控制各区域显隐,不同展示类型(表格/看板/日历/楼层图等)复用同一壳层。
7
+ *
8
+ * - 顶部:标题区(标题/副标题/辅助信息)、工具区(Toolbar)、统计区(Statistic List,可选折叠)
9
+ * - 中间:滚动承载(可选)+ Layout 插槽(children)
10
+ * - 底部:批量操作条(按选中状态出现)、状态提示区(加载/错误/同步提示等)
11
+ */
12
+ export declare const PisellShellFrame: React.FC<PisellShellFrameProps>;
13
+ export default PisellShellFrame;
@@ -0,0 +1,15 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { PisellShellFrame } from './PisellShellFrame';
3
+ declare const meta: Meta<typeof PisellShellFrame>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof PisellShellFrame>;
6
+ /** 仅标题区 */
7
+ export declare const TitleOnly: Story;
8
+ /** 标题 + 工具区 */
9
+ export declare const WithToolbar: Story;
10
+ /** 标题 + 统计区(可折叠,国际化) */
11
+ export declare const WithStatisticCollapsible: Story;
12
+ /** 中间滚动 + 底部批量条 + 状态区 */
13
+ export declare const WithScrollBatchAndStatus: Story;
14
+ /** 全区域展示(默认展开统计) */
15
+ export declare const Full: Story;
@@ -0,0 +1,2 @@
1
+ export { PisellShellFrame, default } from './PisellShellFrame';
2
+ export type { PisellShellFrameProps, PisellShellFrameConfig, PisellShellFrameScrollConfig, } from './types';
@@ -0,0 +1,56 @@
1
+ import type { ReactNode, CSSProperties } from 'react';
2
+ /**
3
+ * 滚动配置:为 true 时使用默认滚动;为对象时传入样式或 scroll 相关配置。
4
+ */
5
+ export declare type PisellShellFrameScrollConfig = boolean | {
6
+ style?: CSSProperties;
7
+ className?: string;
8
+ };
9
+ /**
10
+ * PisellShellFrame 配置:控制各区域的展示与行为。
11
+ * 不同展示类型(表格/看板/日历等)复用同一壳层,通过配置控制显隐。
12
+ */
13
+ export interface PisellShellFrameConfig {
14
+ /** 是否展示顶部标题区(标题/副标题/辅助信息) */
15
+ showTitle?: boolean;
16
+ /** 是否展示顶部工具区(Toolbar) */
17
+ showToolbar?: boolean;
18
+ /** 是否展示顶部统计区(Statistic List) */
19
+ showStatistic?: boolean;
20
+ /** 统计区是否支持折叠,仅 showStatistic 为 true 时有效 */
21
+ statisticCollapsible?: boolean;
22
+ /** 中间内容区是否使用滚动承载包裹;为 true 时默认 overflow auto */
23
+ scroll?: PisellShellFrameScrollConfig;
24
+ /** 是否展示底部批量操作条(按选中状态出现由调用方控制,此处仅控制是否渲染该槽位) */
25
+ showBatchActionBar?: boolean;
26
+ /** 是否展示底部状态提示区(加载/错误/同步提示等) */
27
+ showStatusArea?: boolean;
28
+ }
29
+ /**
30
+ * PisellShellFrame 组件 Props。
31
+ * 通过 config 控制各区域显隐,通过 slot props 传入各区域内容。
32
+ */
33
+ export interface PisellShellFrameProps {
34
+ /** 类名 */
35
+ className?: string;
36
+ /** 内联样式 */
37
+ style?: CSSProperties;
38
+ /** 区域显隐与行为配置,未传则默认不展示可选区域 */
39
+ config?: PisellShellFrameConfig;
40
+ /** 标题 */
41
+ title?: ReactNode;
42
+ /** 副标题 */
43
+ subtitle?: ReactNode;
44
+ /** 标题区右侧辅助信息 */
45
+ titleExtra?: ReactNode;
46
+ /** 工具栏内容 */
47
+ toolbar?: ReactNode;
48
+ /** 统计列表内容(如 PisellStatisticList 或自定义) */
49
+ statisticList?: ReactNode;
50
+ /** 主内容(表格/看板/日历/楼层图等),当 config.scroll 为 true 时会被滚动容器包裹 */
51
+ children?: ReactNode;
52
+ /** 批量操作条,通常按选中状态显隐由调用方控制 */
53
+ batchActionBar?: ReactNode;
54
+ /** 状态提示(加载/错误/同步提示等) */
55
+ statusArea?: ReactNode;
56
+ }