@pisell/materials 6.11.24 → 6.11.25

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 (304) 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/build/lowcode/render/default/view.css +1 -1
  6. package/build/lowcode/render/default/view.js +5 -5
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +4 -4
  9. package/es/components/PisellLayouts/index.d.ts +1 -0
  10. package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +0 -1
  11. package/es/components/dataSourceComponents/fields/index.d.ts +0 -1
  12. package/es/components/pisellFilter/index.js +4 -2
  13. package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.js +4 -1
  14. package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.less +6 -0
  15. package/es/components/pisellFloorMapLayout/components/FloorMapEditPanel.js +10 -1
  16. package/es/components/pisellFloorMapLayout/components/ViewControls.js +8 -4
  17. package/es/components/pisellFloorMapLayout/components/ViewControls.less +14 -0
  18. package/es/components/pisellFloorMapLayout/types.d.ts +12 -0
  19. package/es/components/pisellLookup/PisellLookup.less +13 -0
  20. package/es/components/pisellLookup/components/LookupTrigger.js +2 -1
  21. package/es/components/pisellRecordBoard/PisellRecordBoard.stories.js +1 -1
  22. package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.js +16 -5
  23. package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.less +13 -0
  24. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +6 -5
  25. package/es/components/pisellRecordBoard/shellFrame/ToolBar/ToolBarFilter.less +71 -0
  26. package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.js +16 -10
  27. package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolbar.less +38 -0
  28. package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.less +19 -0
  29. package/es/components/pisellRecordBoard/types.d.ts +5 -0
  30. package/es/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +11 -0
  31. package/es/components/pisellRecordBoard/utils/recordBoardColumns.js +59 -8
  32. package/es/components/pisellReservationSchedule/PisellReservationSchedule.js +13 -0
  33. package/es/components/pisellReservationSchedule/PisellReservationSchedule.less +17 -0
  34. package/es/components/pisellReservationSchedule/types.d.ts +5 -0
  35. package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.less +2 -1
  36. package/lib/components/PisellLayouts/index.d.ts +1 -0
  37. package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +0 -1
  38. package/lib/components/dataSourceComponents/fields/index.d.ts +0 -1
  39. package/lib/components/pisellFilter/index.js +4 -0
  40. package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.js +20 -6
  41. package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.less +6 -0
  42. package/lib/components/pisellFloorMapLayout/components/FloorMapEditPanel.js +1 -1
  43. package/lib/components/pisellFloorMapLayout/components/ViewControls.js +7 -3
  44. package/lib/components/pisellFloorMapLayout/components/ViewControls.less +14 -0
  45. package/lib/components/pisellFloorMapLayout/types.d.ts +12 -0
  46. package/lib/components/pisellLookup/PisellLookup.less +13 -0
  47. package/lib/components/pisellLookup/components/LookupTrigger.js +4 -1
  48. package/lib/components/pisellRecordBoard/PisellRecordBoard.stories.js +1 -1
  49. package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.js +10 -2
  50. package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.less +13 -0
  51. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +6 -5
  52. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/ToolBarFilter.less +71 -0
  53. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.js +12 -8
  54. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolbar.less +38 -0
  55. package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.less +19 -0
  56. package/lib/components/pisellRecordBoard/types.d.ts +5 -0
  57. package/lib/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +11 -0
  58. package/lib/components/pisellRecordBoard/utils/recordBoardColumns.js +45 -8
  59. package/lib/components/pisellReservationSchedule/PisellReservationSchedule.js +22 -0
  60. package/lib/components/pisellReservationSchedule/PisellReservationSchedule.less +17 -0
  61. package/lib/components/pisellReservationSchedule/types.d.ts +5 -0
  62. package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.less +2 -1
  63. package/lowcode/render-figma-style-table-card/meta.ts +1 -1
  64. package/package.json +3 -3
  65. package/es/components/PisellCards/components/MultilevelCard/components/PanelWrapper.d.ts +0 -7
  66. package/es/components/PisellSteps/PisellSteps.d.ts +0 -14
  67. package/es/components/PisellSuperTabs/PisellSuperTabs.d.ts +0 -8
  68. package/es/components/PisellSuperTabs/hooks/useTabsState.d.ts +0 -7
  69. package/es/components/PisellSuperTabs/types.d.ts +0 -212
  70. package/es/components/PisellTabbar/constants.d.ts +0 -47
  71. package/es/components/PisellTabbar/hooks/useActiveKey.d.ts +0 -55
  72. package/es/components/PisellTabbar/hooks/useExpand.d.ts +0 -42
  73. package/es/components/PisellTabbar/template/Template1/constants.d.ts +0 -10
  74. package/es/components/PisellTabbar/types.d.ts +0 -90
  75. package/es/components/PisellTabbar/utils/index.d.ts +0 -69
  76. package/es/components/cardPro/index.d.ts +0 -4
  77. package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +0 -39
  78. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -26
  79. package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -15
  80. package/es/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +0 -4
  81. package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -19
  82. package/es/components/iconfont/index.d.ts +0 -8
  83. package/es/components/page/index.d.ts +0 -9
  84. package/es/components/pisell-config-provider/context.d.ts +0 -22
  85. package/es/components/pisell-config-provider/index.d.ts +0 -13
  86. package/es/components/pisellAdjustPrice/index.d.ts +0 -5
  87. package/es/components/pisellAdjustPrice/status.d.ts +0 -32
  88. package/es/components/pisellAdjustPrice/type.d.ts +0 -22
  89. package/es/components/pisellCheckboxGroup/index.d.ts +0 -40
  90. package/es/components/pisellDataSourceContainer/components/Pagination/index.d.ts +0 -6
  91. package/es/components/pisellFilter/type.d.ts +0 -7
  92. package/es/components/pisellFloorMapLayout/components/FloorMapEditQuickActions.d.ts +0 -24
  93. package/es/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +0 -9
  94. package/es/components/pisellFloorMapLayout/hooks/useFloorMapPaletteTouchDrag.d.ts +0 -21
  95. package/es/components/pisellFloorMapLayout/locales-ja.d.ts +0 -113
  96. package/es/components/pisellFloorMapLayout/locales-pt.d.ts +0 -113
  97. package/es/components/pisellFloorMapLayout/locales.d.ts +0 -551
  98. package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanTypes.d.ts +0 -72
  99. package/es/components/pisellFloorMapLayout/utils/floorMapDataRecordLabel.d.ts +0 -8
  100. package/es/components/pisellFloorMapLayout/utils/floorMapDropUtils.d.ts +0 -27
  101. package/es/components/pisellFloorMapLayout/utils/floorMapStageDefaults.d.ts +0 -8
  102. package/es/components/pisellFloorMapLayout/utils/snap.d.ts +0 -10
  103. package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.d.ts +0 -6
  104. package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.d.ts +0 -10
  105. package/es/components/pisellHierarchicalSummaryList/components/Row.d.ts +0 -35
  106. package/es/components/pisellHierarchicalSummaryList/components/index.d.ts +0 -1
  107. package/es/components/pisellHierarchicalSummaryList/hooks/index.d.ts +0 -2
  108. package/es/components/pisellHierarchicalSummaryList/hooks/useExpandedKeys.d.ts +0 -15
  109. package/es/components/pisellHierarchicalSummaryList/index.d.ts +0 -5
  110. package/es/components/pisellHierarchicalSummaryList/types.d.ts +0 -248
  111. package/es/components/pisellModal/index.d.ts +0 -62
  112. package/es/components/pisellReservationSchedule/locales.d.ts +0 -25
  113. package/es/components/pisellText/components/Amount/index.d.ts +0 -20
  114. package/es/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +0 -10
  115. package/es/components/pisellTimeNavigator/PisellTimeNavigator.stories.d.ts +0 -79
  116. package/es/components/pisellTimeNavigator/components/BackgroundLayer.d.ts +0 -14
  117. package/es/components/pisellTimeNavigator/components/CursorLayer.d.ts +0 -25
  118. package/es/components/pisellTimeNavigator/components/GestureLayer.d.ts +0 -33
  119. package/es/components/pisellTimeNavigator/components/NowButton.d.ts +0 -14
  120. package/es/components/pisellTimeNavigator/components/ScaleLayer.d.ts +0 -22
  121. package/es/components/pisellTimeNavigator/components/index.d.ts +0 -5
  122. package/es/components/pisellTimeNavigator/hooks/index.d.ts +0 -5
  123. package/es/components/pisellTimeNavigator/hooks/useDragInertia.d.ts +0 -14
  124. package/es/components/pisellTimeNavigator/hooks/useRealtime.d.ts +0 -5
  125. package/es/components/pisellTimeNavigator/hooks/useTimeAxis.d.ts +0 -27
  126. package/es/components/pisellTimeNavigator/index.d.ts +0 -5
  127. package/es/components/pisellTimeNavigator/locales.d.ts +0 -22
  128. package/es/components/pisellTimeNavigator/types.d.ts +0 -160
  129. package/es/components/pisellTimeNavigator/utils/index.d.ts +0 -30
  130. package/es/components/pisellToast/index.d.ts +0 -17
  131. package/es/components/pisellToast/squareToast/index.d.ts +0 -15
  132. package/es/components/pisellToast/squareToast/methods.d.ts +0 -13
  133. package/es/components/pisellToast/squareToast/renderImperatively.d.ts +0 -28
  134. package/es/components/pisellToast/squareToast/toast.d.ts +0 -25
  135. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -4
  136. package/es/components/productCard/cartSkuCard/components/Gift/index.d.ts +0 -5
  137. package/es/components/productCard/cartSkuCard/components/Gift/types.d.ts +0 -29
  138. package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -4
  139. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
  140. package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -4
  141. package/es/components/productCard/cartSkuCard/components/Promotion/index.d.ts +0 -7
  142. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -36
  143. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -3
  144. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -4
  145. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -12
  146. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
  147. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -4
  148. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -13
  149. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -22
  150. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
  151. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -9
  152. package/es/components/productCard/cartSkuCard/index.d.ts +0 -11
  153. package/es/components/productCard/cartSkuCard/locales.d.ts +0 -178
  154. package/es/components/productCard/components/Action/index.d.ts +0 -4
  155. package/es/components/productCard/components/Header/EditButton/index.d.ts +0 -4
  156. package/es/components/productCard/components/Header/index.d.ts +0 -4
  157. package/es/components/productCard/components/Sales/index.d.ts +0 -4
  158. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -4
  159. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -14
  160. package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -3
  161. package/es/components/productCard/locales.d.ts +0 -138
  162. package/es/components/productCard/status.d.ts +0 -32
  163. package/es/components/productCard/types.d.ts +0 -95
  164. package/es/components/productCard/utils.d.ts +0 -33
  165. package/es/components/select-time/index.d.ts +0 -14
  166. package/es/components/sort/index.d.ts +0 -5
  167. package/es/components/table/Table/AddFieldModal/index.d.ts +0 -4
  168. package/es/components/table/index.d.ts +0 -4
  169. package/es/components/virtual-keyboard/Amount/index.d.ts +0 -6
  170. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  171. package/es/components/virtual-keyboard/Amount/types.d.ts +0 -44
  172. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
  173. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
  174. package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  175. package/es/components/virtual-keyboard/Number/index.d.ts +0 -6
  176. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  177. package/es/components/virtual-keyboard/Number/types.d.ts +0 -26
  178. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  179. package/es/components/virtual-keyboard/index.d.ts +0 -25
  180. package/es/locales/en-US.d.ts +0 -387
  181. package/es/locales/ja.d.ts +0 -356
  182. package/es/locales/pt.d.ts +0 -356
  183. package/es/locales/zh-CN.d.ts +0 -382
  184. package/es/locales/zh-TW.d.ts +0 -382
  185. package/lib/components/PisellCards/components/MultilevelCard/components/PanelWrapper.d.ts +0 -7
  186. package/lib/components/PisellSteps/PisellSteps.d.ts +0 -14
  187. package/lib/components/PisellSuperTabs/PisellSuperTabs.d.ts +0 -8
  188. package/lib/components/PisellSuperTabs/hooks/useTabsState.d.ts +0 -7
  189. package/lib/components/PisellSuperTabs/types.d.ts +0 -212
  190. package/lib/components/PisellTabbar/constants.d.ts +0 -47
  191. package/lib/components/PisellTabbar/hooks/useActiveKey.d.ts +0 -55
  192. package/lib/components/PisellTabbar/hooks/useExpand.d.ts +0 -42
  193. package/lib/components/PisellTabbar/template/Template1/constants.d.ts +0 -10
  194. package/lib/components/PisellTabbar/types.d.ts +0 -90
  195. package/lib/components/PisellTabbar/utils/index.d.ts +0 -69
  196. package/lib/components/cardPro/index.d.ts +0 -4
  197. package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +0 -39
  198. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -26
  199. package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -15
  200. package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +0 -4
  201. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -19
  202. package/lib/components/iconfont/index.d.ts +0 -8
  203. package/lib/components/page/index.d.ts +0 -9
  204. package/lib/components/pisell-config-provider/context.d.ts +0 -22
  205. package/lib/components/pisell-config-provider/index.d.ts +0 -13
  206. package/lib/components/pisellAdjustPrice/index.d.ts +0 -5
  207. package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
  208. package/lib/components/pisellAdjustPrice/type.d.ts +0 -22
  209. package/lib/components/pisellCheckboxGroup/index.d.ts +0 -40
  210. package/lib/components/pisellDataSourceContainer/components/Pagination/index.d.ts +0 -6
  211. package/lib/components/pisellFilter/type.d.ts +0 -7
  212. package/lib/components/pisellFloorMapLayout/components/FloorMapEditQuickActions.d.ts +0 -24
  213. package/lib/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +0 -9
  214. package/lib/components/pisellFloorMapLayout/hooks/useFloorMapPaletteTouchDrag.d.ts +0 -21
  215. package/lib/components/pisellFloorMapLayout/locales-ja.d.ts +0 -113
  216. package/lib/components/pisellFloorMapLayout/locales-pt.d.ts +0 -113
  217. package/lib/components/pisellFloorMapLayout/locales.d.ts +0 -551
  218. package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanTypes.d.ts +0 -72
  219. package/lib/components/pisellFloorMapLayout/utils/floorMapDataRecordLabel.d.ts +0 -8
  220. package/lib/components/pisellFloorMapLayout/utils/floorMapDropUtils.d.ts +0 -27
  221. package/lib/components/pisellFloorMapLayout/utils/floorMapStageDefaults.d.ts +0 -8
  222. package/lib/components/pisellFloorMapLayout/utils/snap.d.ts +0 -10
  223. package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.d.ts +0 -6
  224. package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.d.ts +0 -10
  225. package/lib/components/pisellHierarchicalSummaryList/components/Row.d.ts +0 -35
  226. package/lib/components/pisellHierarchicalSummaryList/components/index.d.ts +0 -1
  227. package/lib/components/pisellHierarchicalSummaryList/hooks/index.d.ts +0 -2
  228. package/lib/components/pisellHierarchicalSummaryList/hooks/useExpandedKeys.d.ts +0 -15
  229. package/lib/components/pisellHierarchicalSummaryList/index.d.ts +0 -5
  230. package/lib/components/pisellHierarchicalSummaryList/types.d.ts +0 -248
  231. package/lib/components/pisellModal/index.d.ts +0 -62
  232. package/lib/components/pisellReservationSchedule/locales.d.ts +0 -25
  233. package/lib/components/pisellText/components/Amount/index.d.ts +0 -20
  234. package/lib/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +0 -10
  235. package/lib/components/pisellTimeNavigator/PisellTimeNavigator.stories.d.ts +0 -79
  236. package/lib/components/pisellTimeNavigator/components/BackgroundLayer.d.ts +0 -14
  237. package/lib/components/pisellTimeNavigator/components/CursorLayer.d.ts +0 -25
  238. package/lib/components/pisellTimeNavigator/components/GestureLayer.d.ts +0 -33
  239. package/lib/components/pisellTimeNavigator/components/NowButton.d.ts +0 -14
  240. package/lib/components/pisellTimeNavigator/components/ScaleLayer.d.ts +0 -22
  241. package/lib/components/pisellTimeNavigator/components/index.d.ts +0 -5
  242. package/lib/components/pisellTimeNavigator/hooks/index.d.ts +0 -5
  243. package/lib/components/pisellTimeNavigator/hooks/useDragInertia.d.ts +0 -14
  244. package/lib/components/pisellTimeNavigator/hooks/useRealtime.d.ts +0 -5
  245. package/lib/components/pisellTimeNavigator/hooks/useTimeAxis.d.ts +0 -27
  246. package/lib/components/pisellTimeNavigator/index.d.ts +0 -5
  247. package/lib/components/pisellTimeNavigator/locales.d.ts +0 -22
  248. package/lib/components/pisellTimeNavigator/types.d.ts +0 -160
  249. package/lib/components/pisellTimeNavigator/utils/index.d.ts +0 -30
  250. package/lib/components/pisellToast/index.d.ts +0 -17
  251. package/lib/components/pisellToast/squareToast/index.d.ts +0 -15
  252. package/lib/components/pisellToast/squareToast/methods.d.ts +0 -13
  253. package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +0 -28
  254. package/lib/components/pisellToast/squareToast/toast.d.ts +0 -25
  255. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -4
  256. package/lib/components/productCard/cartSkuCard/components/Gift/index.d.ts +0 -5
  257. package/lib/components/productCard/cartSkuCard/components/Gift/types.d.ts +0 -29
  258. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -4
  259. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
  260. package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -4
  261. package/lib/components/productCard/cartSkuCard/components/Promotion/index.d.ts +0 -7
  262. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -36
  263. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -3
  264. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -4
  265. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -12
  266. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
  267. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -4
  268. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -13
  269. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -22
  270. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
  271. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -9
  272. package/lib/components/productCard/cartSkuCard/index.d.ts +0 -11
  273. package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -178
  274. package/lib/components/productCard/components/Action/index.d.ts +0 -4
  275. package/lib/components/productCard/components/Header/EditButton/index.d.ts +0 -4
  276. package/lib/components/productCard/components/Header/index.d.ts +0 -4
  277. package/lib/components/productCard/components/Sales/index.d.ts +0 -4
  278. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -4
  279. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -14
  280. package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -3
  281. package/lib/components/productCard/locales.d.ts +0 -138
  282. package/lib/components/productCard/status.d.ts +0 -32
  283. package/lib/components/productCard/types.d.ts +0 -95
  284. package/lib/components/productCard/utils.d.ts +0 -33
  285. package/lib/components/select-time/index.d.ts +0 -14
  286. package/lib/components/sort/index.d.ts +0 -5
  287. package/lib/components/table/Table/AddFieldModal/index.d.ts +0 -4
  288. package/lib/components/table/index.d.ts +0 -4
  289. package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -6
  290. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  291. package/lib/components/virtual-keyboard/Amount/types.d.ts +0 -44
  292. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
  293. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
  294. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  295. package/lib/components/virtual-keyboard/Number/index.d.ts +0 -6
  296. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  297. package/lib/components/virtual-keyboard/Number/types.d.ts +0 -26
  298. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  299. package/lib/components/virtual-keyboard/index.d.ts +0 -25
  300. package/lib/locales/en-US.d.ts +0 -387
  301. package/lib/locales/ja.d.ts +0 -356
  302. package/lib/locales/pt.d.ts +0 -356
  303. package/lib/locales/zh-CN.d.ts +0 -382
  304. package/lib/locales/zh-TW.d.ts +0 -382
@@ -85,6 +85,8 @@ var RecordBoardToolBar = (props) => {
85
85
  const showTableFloorToggle = hasGridInShell && hasFloorInShell && floorForToggle != null;
86
86
  const allowBodyViewToggle = showTableFloorToggle && ctx.bodyViewSwitchable !== false;
87
87
  const slots = ((_a = ctx.childComponentProps) == null ? void 0 : _a.toolBar) ?? {};
88
+ const toolbarDensity = slots.toolbarDensity ?? "default";
89
+ const barSize = toolbarDensity === "compact" ? "middle" : "large";
88
90
  const keyword = (searchParams == null ? void 0 : searchParams[DEFAULT_SEARCH_FIELD]) ?? "";
89
91
  const handleSearch = (0, import_react.useCallback)(
90
92
  (value) => {
@@ -112,7 +114,8 @@ var RecordBoardToolBar = (props) => {
112
114
  value: keyword,
113
115
  onChange: (v) => handleSearch(v),
114
116
  onSearch: handleSearch,
115
- ...typeof searchConfig === "object" && searchConfig !== null ? searchConfig : {}
117
+ ...typeof searchConfig === "object" && searchConfig !== null ? searchConfig : {},
118
+ size: toolbarDensity === "compact" ? barSize : typeof searchConfig === "object" && searchConfig !== null && "size" in searchConfig && searchConfig.size != null ? searchConfig.size : barSize
116
119
  }
117
120
  );
118
121
  const quickFilterConfig = slots.quickFilter;
@@ -141,14 +144,14 @@ var RecordBoardToolBar = (props) => {
141
144
  {
142
145
  filterList: quickFilterList,
143
146
  formFiltersPrefix: typeof quickFilterConfig === "object" && quickFilterConfig !== null ? quickFilterConfig.formFiltersPrefix ?? "" : "",
144
- size: typeof quickFilterConfig === "object" && quickFilterConfig !== null ? quickFilterConfig.size ?? "large" : "large"
147
+ size: typeof quickFilterConfig === "object" && quickFilterConfig !== null ? quickFilterConfig.size : void 0
145
148
  }
146
149
  ) : null;
147
150
  const bodyViewToggle = allowBodyViewToggle ? /* @__PURE__ */ import_react.default.createElement(
148
151
  import_antd.Segmented,
149
152
  {
150
153
  className: "record-board-toolbar-body-view-segmented",
151
- size: "large",
154
+ size: barSize,
152
155
  value: bodyView,
153
156
  onChange: (v) => setBodyView(v),
154
157
  options: [
@@ -187,7 +190,7 @@ var RecordBoardToolBar = (props) => {
187
190
  {
188
191
  className: "record-board-toolbar-filter-btn",
189
192
  icon: /* @__PURE__ */ import_react.default.createElement(import_SwitchVertical01.default, null),
190
- size: "large"
193
+ size: barSize
191
194
  },
192
195
  getSortButtonText()
193
196
  )
@@ -270,21 +273,22 @@ var RecordBoardToolBar = (props) => {
270
273
  hasForm: true,
271
274
  quickFilterMaxLength: 100,
272
275
  formFiltersPrefix: "",
273
- size: "large",
274
- buttonClassName: "record-board-toolbar-filter-btn",
275
276
  hiddenQuickFilter: true,
276
277
  placement: "bottomLeft",
277
- ...typeof filterConfig === "object" && filterConfig !== null ? filterConfig : {}
278
+ ...typeof filterConfig === "object" && filterConfig !== null ? filterConfig : {},
279
+ size: barSize,
280
+ buttonClassName: "record-board-toolbar-filter-btn"
278
281
  }
279
282
  );
280
283
  const showColumnSetting = slots.columnSetting !== false && Array.isArray(gridColumns) && gridColumns.length > 0;
281
- const topRight = compactFloorMapToolbar ? null : /* @__PURE__ */ import_react.default.createElement(import_antd.Space, { className: "record-board-toolbar-right-actions" }, showColumnSetting ? /* @__PURE__ */ import_react.default.createElement(import_ColumnSetting.default, null) : null, sortNode, filterNode, /* @__PURE__ */ import_react.default.createElement(import_ToolBarReset.default, { size: "large" }), slots.topRight);
284
+ const topRight = compactFloorMapToolbar ? null : /* @__PURE__ */ import_react.default.createElement(import_antd.Space, { className: "record-board-toolbar-right-actions" }, showColumnSetting ? /* @__PURE__ */ import_react.default.createElement(import_ColumnSetting.default, null) : null, sortNode, filterNode, /* @__PURE__ */ import_react.default.createElement(import_ToolBarReset.default, { size: barSize }), slots.topRight);
282
285
  return /* @__PURE__ */ import_react.default.createElement(
283
286
  import_ToolBar.default,
284
287
  {
285
288
  className: (0, import_classnames.default)(
286
289
  bodyView === "floorMap" && "pisell-record-board-toolbar--floor-map",
287
290
  bodyView === "grid" && "pisell-record-board-toolbar--grid",
291
+ toolbarDensity === "compact" && "pisell-record-board-toolbar--compact",
288
292
  slots.className
289
293
  ),
290
294
  style: slots.style,
@@ -95,3 +95,41 @@
95
95
  .pisell-grid-pro-toolbar.pisell-record-board-toolbar--grid.pisell-record-board-toolbar--narrow-stack {
96
96
  .record-board-toolbar-grid-narrow-two-rows();
97
97
  }
98
+
99
+ /**
100
+ * 紧凑工具栏:与 antd size=small 配套,收紧留白,避免仍像默认大号行高。
101
+ */
102
+ .pisell-grid-pro-toolbar.pisell-record-board-toolbar--compact {
103
+ padding-bottom: 8px !important;
104
+ gap: 6px !important;
105
+
106
+ > .pisell-grid-pro-toolbar-row.toolbar-row,
107
+ > .toolbar-row {
108
+ gap: 6px !important;
109
+ align-items: center;
110
+ }
111
+
112
+ .toolbar-row-left {
113
+ align-items: center !important;
114
+ gap: 6px !important;
115
+ }
116
+
117
+ .toolbar-row-right {
118
+ gap: 6px !important;
119
+ }
120
+
121
+ .record-board-toolbar-right-actions.ant-space {
122
+ gap: 6px !important;
123
+ }
124
+
125
+ .record-board-toolbar-top-left {
126
+ gap: 6px;
127
+ }
128
+
129
+ .pisell-lookup-input-suffix {
130
+ display: inline-flex;
131
+ align-items: center;
132
+ gap: 4px;
133
+ flex-wrap: nowrap;
134
+ }
135
+ }
@@ -39,3 +39,22 @@
39
39
  }
40
40
  }
41
41
  }
42
+
43
+ /** RecordBoard 紧凑工具栏:与 Sort/Filter 同档(约 38px),避免仍用 Figma 50px */
44
+ .pisell-grid-pro-toolbar.pisell-record-board-toolbar--compact {
45
+ .record-board-toolbar-reset.pisell-lowcode-btn,
46
+ .record-board-toolbar-reset.ant-btn {
47
+ height: auto !important;
48
+ min-height: 38px !important;
49
+ padding: 6px 14px !important;
50
+ font-size: 15px !important;
51
+ line-height: 22px !important;
52
+
53
+ &.pisell-lowcode-btn-lg {
54
+ height: auto !important;
55
+ min-height: 38px !important;
56
+ padding: 6px 14px !important;
57
+ font-size: 15px !important;
58
+ }
59
+ }
60
+ }
@@ -228,6 +228,11 @@ export declare type RecordBoardFilterProps = Record<string, any>;
228
228
  * - filter:默认在工具栏右侧渲染 PisellFilter;为对象时透传 PisellFilter props;为 false 时不渲染。筛选值绑定 searchParams.filter,变更触发 onSearch。
229
229
  */
230
230
  export interface RecordBoardToolBarProps {
231
+ /**
232
+ * `compact`:Find / 快筛 / 排序筛选 / 重置 / 视图切换等统一小号,用于窄容器(如 HUD 内嵌表)。
233
+ * @default 'default'
234
+ */
235
+ toolbarDensity?: 'default' | 'compact';
231
236
  className?: string;
232
237
  style?: React.CSSProperties;
233
238
  tabs?: React.ReactNode;
@@ -1,8 +1,18 @@
1
+ import React from 'react';
1
2
  import type { RecordBoardColumnType } from '../types';
2
3
  import type { FilterValueType } from '../../filter/components/FilterButton/types';
3
4
  import type { SortItemProps } from '../../sort/types';
4
5
  /** 获取列唯一 key,供列显示隐藏等使用 */
5
6
  export declare function getRecordBoardColumnKey(column: RecordBoardColumnType): string;
7
+ /**
8
+ * 同值列总结栏不展示的内容:null/undefined、空串、纯空白、占位「-」。
9
+ * 列仍可折叠;仅用于不生成总结栏条目(避免「-」、空白等占位)。
10
+ */
11
+ export declare function isTrivialUniformSummaryDisplayValue(v: any): boolean;
12
+ /**
13
+ * 总结区实际渲染的 React 节点是否视为无展示价值(与 {@link isTrivialUniformSummaryDisplayValue} 对齐,含一层子节点)。
14
+ */
15
+ export declare function isTrivialUniformSummaryReactContent(node: React.ReactNode): boolean;
6
16
  export interface UniformColumnSummaryItem {
7
17
  columnKey: string;
8
18
  title: string;
@@ -18,6 +28,7 @@ export interface UniformColumnSummaryItem {
18
28
  }
19
29
  /**
20
30
  * 根据当前页 data 计算:哪些列「全列同值」或「全空」应隐藏,以及总结区展示项。
31
+ * 折叠列与总结项可不一一对应:全空、整列「-」/空白等同值仍折叠,但不生成无信息总结项。
21
32
  * 仅当 grid.collapseUniformColumns 为 true 时使用。
22
33
  */
23
34
  export declare function computeUniformColumnSummary(data: any[], columns: RecordBoardColumnType[]): {
@@ -33,6 +33,8 @@ __export(recordBoardColumns_exports, {
33
33
  deriveFilterFromColumns: () => deriveFilterFromColumns,
34
34
  deriveSortFromColumns: () => deriveSortFromColumns,
35
35
  getRecordBoardColumnKey: () => getRecordBoardColumnKey,
36
+ isTrivialUniformSummaryDisplayValue: () => isTrivialUniformSummaryDisplayValue,
37
+ isTrivialUniformSummaryReactContent: () => isTrivialUniformSummaryReactContent,
36
38
  processColumnsForGrid: () => processColumnsForGrid
37
39
  });
38
40
  module.exports = __toCommonJS(recordBoardColumns_exports);
@@ -119,6 +121,44 @@ function getRecordValue(record, dataIndex) {
119
121
  function isEmptyValue(v) {
120
122
  return v == null || v === "";
121
123
  }
124
+ function isTrivialUniformSummaryDisplayValue(v) {
125
+ if (v == null) return true;
126
+ if (typeof v === "string") {
127
+ const t = v.trim();
128
+ return t === "" || t === "-";
129
+ }
130
+ if (typeof v === "number" && Number.isNaN(v)) return true;
131
+ return false;
132
+ }
133
+ function isTrivialUniformSummaryReactContent(node) {
134
+ if (node == null || node === false) return true;
135
+ if (typeof node === "string") {
136
+ const t = node.trim();
137
+ return t === "" || t === "-";
138
+ }
139
+ if (typeof node === "number") {
140
+ return Number.isNaN(node);
141
+ }
142
+ if (Array.isArray(node)) {
143
+ return node.length === 0 || node.every((n) => isTrivialUniformSummaryReactContent(n));
144
+ }
145
+ if (import_react.default.isValidElement(node)) {
146
+ const ch = node.props.children;
147
+ if (ch == null || ch === false) return true;
148
+ if (typeof ch === "string") {
149
+ const t = ch.trim();
150
+ return t === "" || t === "-";
151
+ }
152
+ if (typeof ch === "number") return Number.isNaN(ch);
153
+ if (Array.isArray(ch)) {
154
+ return ch.length === 0 || ch.every((c) => isTrivialUniformSummaryReactContent(c));
155
+ }
156
+ if (import_react.default.isValidElement(ch)) {
157
+ return isTrivialUniformSummaryReactContent(ch);
158
+ }
159
+ }
160
+ return false;
161
+ }
122
162
  function isComparablePrimitive(v) {
123
163
  return typeof v === "string" || typeof v === "number";
124
164
  }
@@ -142,14 +182,6 @@ function computeUniformColumnSummary(data, columns) {
142
182
  const cellValue = getRecordValue(data[0], Array.isArray(dataIndex) ? dataIndex : dataIndex);
143
183
  if (values.every((v) => isEmptyValue(v))) {
144
184
  uniformHiddenColumnKeys.push(columnKey);
145
- summaryItems.push({
146
- columnKey,
147
- title: getColumnLabel(column),
148
- type: "empty",
149
- value: void 0,
150
- cellValue,
151
- record: data[0]
152
- });
153
185
  continue;
154
186
  }
155
187
  const comparable = isComparablePrimitive(first);
@@ -157,6 +189,9 @@ function computeUniformColumnSummary(data, columns) {
157
189
  const allSame = values.every((v) => isEmptyValue(v) && isEmptyValue(first) || v === first);
158
190
  if (!allSame) continue;
159
191
  uniformHiddenColumnKeys.push(columnKey);
192
+ if (isTrivialUniformSummaryDisplayValue(first)) {
193
+ continue;
194
+ }
160
195
  summaryItems.push({
161
196
  columnKey,
162
197
  title: getColumnLabel(column),
@@ -371,5 +406,7 @@ function deriveFilterFromColumns(columns) {
371
406
  deriveFilterFromColumns,
372
407
  deriveSortFromColumns,
373
408
  getRecordBoardColumnKey,
409
+ isTrivialUniformSummaryDisplayValue,
410
+ isTrivialUniformSummaryReactContent,
374
411
  processColumnsForGrid
375
412
  });
@@ -67,6 +67,7 @@ function PisellReservationSchedule(props) {
67
67
  minDate: minDateProp,
68
68
  maxDate: maxDateProp,
69
69
  navigationLocked = false,
70
+ navigationLockedDisplay = "full",
70
71
  className,
71
72
  style
72
73
  } = props;
@@ -113,6 +114,27 @@ function PisellReservationSchedule(props) {
113
114
  parts.push(weekStr);
114
115
  return parts.join(djLoc === "en" ? " · " : " · ");
115
116
  }, [value, today, engineLocale]);
117
+ if (navigationLocked && navigationLockedDisplay === "labelOnly") {
118
+ return /* @__PURE__ */ import_react.default.createElement(
119
+ "div",
120
+ {
121
+ className: (0, import_classnames.default)(
122
+ "pisell-reservation-schedule",
123
+ "pisell-reservation-schedule--label-only",
124
+ className
125
+ ),
126
+ style
127
+ },
128
+ /* @__PURE__ */ import_react.default.createElement(
129
+ "span",
130
+ {
131
+ className: "pisell-reservation-schedule-label pisell-reservation-schedule-label--static",
132
+ "aria-label": centerLabel
133
+ },
134
+ centerLabel
135
+ )
136
+ );
137
+ }
116
138
  return /* @__PURE__ */ import_react.default.createElement(
117
139
  "div",
118
140
  {
@@ -3,6 +3,23 @@
3
3
  align-items: center;
4
4
  justify-content: center;
5
5
  width: 100%;
6
+
7
+ /**
8
+ * 仅日期文案:无深色 inner 条与箭头(场控顶栏等)。
9
+ * 与预约页 `.pisell-reservation-page-title`(17px)对齐,避免旁侧标题大而日期仍 11px。
10
+ */
11
+ &--label-only {
12
+ justify-content: flex-start;
13
+
14
+ .pisell-reservation-schedule-label {
15
+ flex: none;
16
+ text-align: left;
17
+ font-size: 17px;
18
+ font-weight: 600;
19
+ line-height: 1.35;
20
+ padding: 0;
21
+ }
22
+ }
6
23
  }
7
24
 
8
25
  .pisell-reservation-schedule-inner {
@@ -39,4 +39,9 @@ export interface PisellReservationScheduleProps {
39
39
  * @default false
40
40
  */
41
41
  navigationLocked?: boolean;
42
+ /**
43
+ * `navigationLocked` 时的展示形态:`full` 保留左右箭头占位;`labelOnly` 仅展示中间日期文案(如场控页)。
44
+ * @default 'full'
45
+ */
46
+ navigationLockedDisplay?: 'full' | 'labelOnly';
42
47
  }
@@ -68,7 +68,8 @@
68
68
  flex-wrap: nowrap;
69
69
  align-items: center;
70
70
  justify-content: center;
71
- gap: 5px;
71
+ /** 日期与右侧「当前时间」等插槽留出间距,避免贴太紧 */
72
+ gap: 14px;
72
73
  }
73
74
 
74
75
  /** 日程组件根节点默认 width:100%,在中间栏会与「日期右侧」插槽分两行;此处收窄为内容宽,保证与 after-date 同一行 */
@@ -9,7 +9,7 @@ const renderFigmaStyleTableCardMeta: ComponentMetadata = {
9
9
  "devMode": "proCode",
10
10
  "npm": {
11
11
  "package": "@pisell/materials",
12
- "version": "6.11.22",
12
+ "version": "6.11.24",
13
13
  "exportName": "renderFigmaStyleTableCard",
14
14
  "main": "src/index.tsx",
15
15
  "destructuring": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "6.11.24",
3
+ "version": "6.11.25",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -94,8 +94,8 @@
94
94
  "antd-mobile": "^5.38.1",
95
95
  "vod-js-sdk-v6": "^1.4.11",
96
96
  "@pisell/date-picker": "3.0.8",
97
- "@pisell/icon": "0.0.11",
98
- "@pisell/utils": "3.0.2"
97
+ "@pisell/utils": "3.0.2",
98
+ "@pisell/icon": "0.0.11"
99
99
  },
100
100
  "peerDependencies": {
101
101
  "react": "^18.0.0",
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { PanelWrapperProps } from '../types';
3
- /**
4
- * PanelWrapper 组件
5
- * 次级面板包装器,负责展开/收起动画和样式处理
6
- */
7
- export declare const PanelWrapper: React.FC<PanelWrapperProps>;
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import './PisellSteps.less';
3
- import type { PisellStepsProps } from './types';
4
- /**
5
- * PisellSteps 步骤条组件
6
- *
7
- * 基于 Ant Design Steps 组件进行二次封装和增强
8
- * 支持多种展示样式、布局方式和丰富的交互功能
9
- *
10
- * @author Pisell Team
11
- * @version 1.0.0
12
- */
13
- declare const PisellSteps: React.FC<PisellStepsProps>;
14
- export default PisellSteps;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import './PisellSuperTabs.less';
3
- import type { PisellSuperTabsProps } from './types';
4
- interface PisellSuperTabsRef {
5
- scrollItemByRowKey: (key: string) => void;
6
- }
7
- declare const _default: React.ForwardRefExoticComponent<PisellSuperTabsProps<unknown> & React.RefAttributes<PisellSuperTabsRef>>;
8
- export default _default;
@@ -1,7 +0,0 @@
1
- import { UseTabsStateParams, UseTabsStateReturn } from '../types';
2
- /**
3
- * Tabs 状态管理 Hook
4
- * @description 处理受控/非受控模式的状态管理
5
- * @template T - 数据项类型
6
- */
7
- export declare const useTabsState: <T = any>(params: UseTabsStateParams<T>) => UseTabsStateReturn<T>;
@@ -1,212 +0,0 @@
1
- import { CSSProperties, ReactNode } from 'react';
2
- import type { PisellBasicGridProps } from '../PisellBasicGrid/types';
3
- import type { PisellScrollViewProps } from '../PisellScrollView/types';
4
- import type { PisellBasicCardProps } from '../PisellCards/types';
5
- /**
6
- * useTabsState Hook 参数
7
- */
8
- export interface UseTabsStateParams<T = any> {
9
- isControlled: boolean;
10
- /**
11
- * 当前激活的 Tab key(受控)
12
- */
13
- value?: string;
14
- /**
15
- * 默认激活的 Tab key(非受控)
16
- */
17
- defaultValue?: string;
18
- /**
19
- * Tab 切换时的回调
20
- */
21
- onChange?: (key: string, item: T) => void;
22
- }
23
- /**
24
- * useTabsState Hook 返回值
25
- */
26
- export interface UseTabsStateReturn<T = any> {
27
- /**
28
- * 当前激活的 Tab key
29
- */
30
- activeKey: string | undefined;
31
- /**
32
- * 切换 Tab 的方法
33
- */
34
- handleTabChange: (key: string, item: T) => void;
35
- }
36
- export interface RenderItemProps<T = any> extends PisellBasicCardProps {
37
- index: number;
38
- tabsState: UseTabsStateReturn<T>;
39
- tabsProps: PisellSuperTabsProps<T>;
40
- }
41
- /**
42
- * PisellSuperTabs 组件 Props
43
- * @template T - 数据源项的类型
44
- * @description 通用导航框架封装的全能型 Tab 组件
45
- */
46
- export interface PisellSuperTabsProps<T = any> {
47
- isControlled?: boolean;
48
- /**
49
- * 自定义类名
50
- * @description 添加到最外层容器的类名
51
- */
52
- className?: string;
53
- tabItemClassName?: string;
54
- tabItemStyle?: CSSProperties;
55
- /**
56
- * 自定义样式
57
- * @description 添加到最外层容器的样式
58
- */
59
- style?: CSSProperties;
60
- /**
61
- * 唯一标识
62
- * @description 必填,用于区分不同的 TabItem
63
- */
64
- id?: string;
65
- /**
66
- * 数据源
67
- * @description 支持多级嵌套,递归字段为 children
68
- * @example
69
- * [
70
- * { key: 'home', label: '首页' },
71
- * { key: 'products', label: '产品', children: [...] }
72
- * ]
73
- */
74
- dataSource?: T[];
75
- /**
76
- * 数据项的唯一标识字段
77
- * @default 'key'
78
- * @description 可以是字符串(字段名)或函数(自定义获取逻辑)
79
- * @example
80
- * // 字符串形式
81
- * rowKey="id"
82
- *
83
- * // 函数形式
84
- * rowKey={(record, index) => `${record.type}-${index}`}
85
- */
86
- rowKey?: string | ((record: T, index: number) => string);
87
- /**
88
- * 当前激活的 Tab key
89
- * @description 受控模式,需配合 onChange 使用
90
- */
91
- value?: string;
92
- /**
93
- * 默认激活的 Tab key
94
- * @description 非受控模式,仅初始化时生效
95
- */
96
- defaultValue?: string;
97
- /**
98
- * Tab 切换时的回调
99
- * @param key - 切换到的 Tab key
100
- * @param item - 切换到的数据项
101
- */
102
- onChange?: (key: string, item: T) => void;
103
- /**
104
- * 自定义 TabItem 渲染
105
- * @description 支持两种模式:
106
- * 1. 函数模式:(item, index, active) => ReactNode
107
- * 2. 插槽模式:直接传入 ReactNode
108
- * @example
109
- * // 函数模式
110
- * renderItem={(item, index, active) => (
111
- * <PisellCards.TabCard
112
- * {...item}
113
- * active={{ value: active }}
114
- * />
115
- * )}
116
- *
117
- * // 插槽模式
118
- * renderItem={<PisellCards.TabCard />}
119
- */
120
- renderItem?: ((props: RenderItemProps<T>) => ReactNode) | ReactNode;
121
- /**
122
- * PisellBasicGrid 组件的配置
123
- * @description 透传给 PisellBasicGrid 组件的所有 Props
124
- * @see PisellBasicGridProps
125
- * @example
126
- * gridProps={{
127
- * direction: 'horizontal',
128
- * gap: 16,
129
- * wrap: 'wrap',
130
- * columns: 4,
131
- * }}
132
- */
133
- gridProps?: Omit<PisellBasicGridProps<T>, 'dataSource' | 'renderItem' | 'rowKey' | 'children'>;
134
- /**
135
- * PisellScrollView 组件的配置
136
- * @description 透传给 PisellScrollView 组件的所有 Props
137
- * @see PisellScrollViewProps
138
- * @example
139
- * scrollViewProps={{
140
- * overflow: 'x',
141
- * scrollbarStyle: 'thin',
142
- * scrollActionsConfig: { show: true, type: 'lrArrows' },
143
- * }}
144
- */
145
- scrollViewProps?: Omit<PisellScrollViewProps, 'children'>;
146
- children?: ReactNode;
147
- /**
148
- * 左侧插槽
149
- */
150
- slotLeft?: ReactNode;
151
- slotLeftClassName?: string;
152
- slotLeftStyle?: CSSProperties;
153
- /**
154
- * 右侧插槽
155
- */
156
- slotRight?: ReactNode;
157
- slotRightClassName?: string;
158
- slotRightStyle?: CSSProperties;
159
- /**
160
- * 顶部插槽
161
- */
162
- slotTop?: ReactNode;
163
- slotTopClassName?: string;
164
- slotTopStyle?: CSSProperties;
165
- /**
166
- * 底部插槽
167
- */
168
- slotBottom?: ReactNode;
169
- slotBottomClassName?: string;
170
- slotBottomStyle?: CSSProperties;
171
- __designMode?: boolean;
172
- }
173
- /**
174
- * 数据项基础类型
175
- * @description 建议数据源中的每一项都包含这些字段
176
- */
177
- export interface TabDataItem {
178
- /**
179
- * 唯一标识
180
- * @description 必填,用于区分不同的 TabItem
181
- */
182
- key: string;
183
- /**
184
- * 标签文本
185
- */
186
- label?: string;
187
- /**
188
- * 图标
189
- */
190
- icon?: ReactNode;
191
- /**
192
- * 徽章配置
193
- */
194
- badge?: {
195
- count?: number;
196
- dot?: boolean;
197
- text?: string;
198
- };
199
- /**
200
- * 子级数据(多级嵌套)
201
- * @description 用于多级导航场景,具体渲染逻辑由 Card 组件实现
202
- */
203
- children?: TabDataItem[];
204
- /**
205
- * 是否禁用
206
- */
207
- disabled?: boolean;
208
- /**
209
- * 其他自定义字段
210
- */
211
- [key: string]: any;
212
- }
@@ -1,47 +0,0 @@
1
- import { TabbarLevelConfig, ExpandConfig, LevelType } from './types';
2
- /**
3
- * 默认层级配置
4
- */
5
- export declare const DEFAULT_LEVEL_CONFIG: Record<LevelType, TabbarLevelConfig>;
6
- /**
7
- * 获取展开配置
8
- */
9
- export declare const getExpandConfig: () => ExpandConfig;
10
- /**
11
- * 默认数据项配置
12
- */
13
- export declare const DEFAULT_ITEMS: {
14
- all: {
15
- id: string;
16
- shop_id: number;
17
- parent_id: number;
18
- name: any;
19
- slug: string;
20
- icon: string;
21
- };
22
- search: {
23
- id: string;
24
- shop_id: number;
25
- parent_id: number;
26
- name: any;
27
- text: any;
28
- slug: string;
29
- key: string;
30
- icon: string;
31
- customClick: boolean;
32
- };
33
- expand: {
34
- id: string;
35
- shop_id: number;
36
- parent_id: number;
37
- key: string;
38
- icon: string;
39
- name: string;
40
- slug: string;
41
- customClick: boolean;
42
- };
43
- };
44
- /**
45
- * 获取层级对应的添加项配置
46
- */
47
- export declare const LEVEL_ADD_ITEMS: Record<LevelType, ('all' | 'search' | 'expand')[]>;