@pisell/materials 6.11.24 → 6.11.26
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.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +5 -5
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +4 -4
- package/es/components/PisellLayouts/index.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +0 -1
- package/es/components/pisellFilter/index.js +4 -2
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.js +4 -1
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.less +6 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapEditPanel.js +10 -1
- package/es/components/pisellFloorMapLayout/components/ViewControls.js +8 -4
- package/es/components/pisellFloorMapLayout/components/ViewControls.less +14 -0
- package/es/components/pisellFloorMapLayout/types.d.ts +12 -0
- package/es/components/pisellLookup/PisellLookup.less +13 -0
- package/es/components/pisellLookup/components/LookupTrigger.js +2 -1
- package/es/components/pisellRecordBoard/PisellRecordBoard.stories.js +1 -1
- package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.js +16 -5
- package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.less +13 -0
- package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +6 -5
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/ToolBarFilter.less +71 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.js +16 -10
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolbar.less +38 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.less +19 -0
- package/es/components/pisellRecordBoard/types.d.ts +5 -0
- package/es/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +11 -0
- package/es/components/pisellRecordBoard/utils/recordBoardColumns.js +59 -8
- package/es/components/pisellReservationSchedule/PisellReservationSchedule.js +13 -0
- package/es/components/pisellReservationSchedule/PisellReservationSchedule.less +17 -0
- package/es/components/pisellReservationSchedule/types.d.ts +5 -0
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.less +2 -1
- package/lib/components/PisellLayouts/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +0 -1
- package/lib/components/pisellFilter/index.js +4 -0
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.js +20 -6
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.less +6 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditPanel.js +1 -1
- package/lib/components/pisellFloorMapLayout/components/ViewControls.js +7 -3
- package/lib/components/pisellFloorMapLayout/components/ViewControls.less +14 -0
- package/lib/components/pisellFloorMapLayout/types.d.ts +12 -0
- package/lib/components/pisellLookup/PisellLookup.less +13 -0
- package/lib/components/pisellLookup/components/LookupTrigger.js +4 -1
- package/lib/components/pisellRecordBoard/PisellRecordBoard.stories.js +1 -1
- package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.js +10 -2
- package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.less +13 -0
- package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +6 -5
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/ToolBarFilter.less +71 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.js +12 -8
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolbar.less +38 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.less +19 -0
- package/lib/components/pisellRecordBoard/types.d.ts +5 -0
- package/lib/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +11 -0
- package/lib/components/pisellRecordBoard/utils/recordBoardColumns.js +45 -8
- package/lib/components/pisellReservationSchedule/PisellReservationSchedule.js +22 -0
- package/lib/components/pisellReservationSchedule/PisellReservationSchedule.less +17 -0
- package/lib/components/pisellReservationSchedule/types.d.ts +5 -0
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.less +2 -1
- package/lowcode/render-figma-style-table-card/meta.ts +1 -1
- package/package.json +1 -1
- package/es/components/PisellCards/components/MultilevelCard/components/PanelWrapper.d.ts +0 -7
- package/es/components/PisellSteps/PisellSteps.d.ts +0 -14
- package/es/components/PisellSuperTabs/PisellSuperTabs.d.ts +0 -8
- package/es/components/PisellSuperTabs/hooks/useTabsState.d.ts +0 -7
- package/es/components/PisellSuperTabs/types.d.ts +0 -212
- package/es/components/PisellTabbar/PisellTabbar.d.ts +0 -20
- package/es/components/PisellTabbar/constants.d.ts +0 -47
- package/es/components/PisellTabbar/hooks/useActiveKey.d.ts +0 -55
- package/es/components/PisellTabbar/hooks/useExpand.d.ts +0 -42
- package/es/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +0 -5
- package/es/components/PisellTabbar/template/Template1/constants.d.ts +0 -10
- package/es/components/PisellTabbar/types.d.ts +0 -90
- package/es/components/PisellTabbar/utils/index.d.ts +0 -69
- package/es/components/cardPro/index.d.ts +0 -4
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +0 -39
- package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -26
- package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -15
- package/es/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +0 -4
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -19
- package/es/components/iconfont/index.d.ts +0 -8
- package/es/components/page/index.d.ts +0 -9
- package/es/components/pisell-config-provider/context.d.ts +0 -22
- package/es/components/pisell-config-provider/index.d.ts +0 -13
- package/es/components/pisellAdjustPrice/index.d.ts +0 -5
- package/es/components/pisellAdjustPrice/status.d.ts +0 -32
- package/es/components/pisellAdjustPrice/type.d.ts +0 -22
- package/es/components/pisellCardList/index.d.ts +0 -107
- package/es/components/pisellCheckboxGroup/index.d.ts +0 -40
- package/es/components/pisellDataSourceContainer/components/Pagination/index.d.ts +0 -6
- package/es/components/pisellFilter/type.d.ts +0 -7
- package/es/components/pisellFloorMapLayout/components/FloorMapEditQuickActions.d.ts +0 -24
- package/es/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +0 -9
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapPaletteTouchDrag.d.ts +0 -21
- package/es/components/pisellFloorMapLayout/locales-ja.d.ts +0 -113
- package/es/components/pisellFloorMapLayout/locales-pt.d.ts +0 -113
- package/es/components/pisellFloorMapLayout/locales.d.ts +0 -551
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanTypes.d.ts +0 -72
- package/es/components/pisellFloorMapLayout/utils/floorMapDataRecordLabel.d.ts +0 -8
- package/es/components/pisellFloorMapLayout/utils/floorMapDropUtils.d.ts +0 -27
- package/es/components/pisellFloorMapLayout/utils/floorMapStageDefaults.d.ts +0 -8
- package/es/components/pisellFloorMapLayout/utils/snap.d.ts +0 -10
- package/es/components/pisellGoodPassCard/index.d.ts +0 -50
- package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.d.ts +0 -6
- package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.d.ts +0 -10
- package/es/components/pisellHierarchicalSummaryList/components/Row.d.ts +0 -35
- package/es/components/pisellHierarchicalSummaryList/components/index.d.ts +0 -1
- package/es/components/pisellHierarchicalSummaryList/hooks/index.d.ts +0 -2
- package/es/components/pisellHierarchicalSummaryList/hooks/useExpandedKeys.d.ts +0 -15
- package/es/components/pisellHierarchicalSummaryList/index.d.ts +0 -5
- package/es/components/pisellHierarchicalSummaryList/types.d.ts +0 -248
- package/es/components/pisellLookup/components/LookupTrigger.d.ts +0 -3
- package/es/components/pisellModal/index.d.ts +0 -62
- package/es/components/pisellReservationSchedule/locales.d.ts +0 -25
- package/es/components/pisellText/components/Amount/index.d.ts +0 -20
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +0 -10
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.stories.d.ts +0 -79
- package/es/components/pisellTimeNavigator/components/BackgroundLayer.d.ts +0 -14
- package/es/components/pisellTimeNavigator/components/CursorLayer.d.ts +0 -25
- package/es/components/pisellTimeNavigator/components/GestureLayer.d.ts +0 -33
- package/es/components/pisellTimeNavigator/components/NowButton.d.ts +0 -14
- package/es/components/pisellTimeNavigator/components/ScaleLayer.d.ts +0 -22
- package/es/components/pisellTimeNavigator/components/index.d.ts +0 -5
- package/es/components/pisellTimeNavigator/hooks/index.d.ts +0 -5
- package/es/components/pisellTimeNavigator/hooks/useDragInertia.d.ts +0 -14
- package/es/components/pisellTimeNavigator/hooks/useRealtime.d.ts +0 -5
- package/es/components/pisellTimeNavigator/hooks/useTimeAxis.d.ts +0 -27
- package/es/components/pisellTimeNavigator/index.d.ts +0 -5
- package/es/components/pisellTimeNavigator/locales.d.ts +0 -22
- package/es/components/pisellTimeNavigator/types.d.ts +0 -160
- package/es/components/pisellTimeNavigator/utils/index.d.ts +0 -30
- package/es/components/pisellToast/index.d.ts +0 -17
- package/es/components/pisellToast/squareToast/index.d.ts +0 -15
- package/es/components/pisellToast/squareToast/methods.d.ts +0 -13
- package/es/components/pisellToast/squareToast/renderImperatively.d.ts +0 -28
- package/es/components/pisellToast/squareToast/toast.d.ts +0 -25
- package/es/components/pisellWalletPassCard/index.d.ts +0 -146
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -4
- package/es/components/productCard/cartSkuCard/components/Gift/index.d.ts +0 -5
- package/es/components/productCard/cartSkuCard/components/Gift/types.d.ts +0 -29
- package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -4
- package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
- package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -4
- package/es/components/productCard/cartSkuCard/components/Promotion/index.d.ts +0 -7
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -36
- package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -4
- package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -12
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
- package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -4
- package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -13
- package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -22
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -9
- package/es/components/productCard/cartSkuCard/index.d.ts +0 -11
- package/es/components/productCard/cartSkuCard/locales.d.ts +0 -178
- package/es/components/productCard/components/Action/index.d.ts +0 -4
- package/es/components/productCard/components/Header/EditButton/index.d.ts +0 -4
- package/es/components/productCard/components/Header/index.d.ts +0 -4
- package/es/components/productCard/components/Sales/index.d.ts +0 -4
- package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -4
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -14
- package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -3
- package/es/components/productCard/index.d.ts +0 -7
- package/es/components/productCard/locales.d.ts +0 -138
- package/es/components/productCard/status.d.ts +0 -32
- package/es/components/productCard/types.d.ts +0 -95
- package/es/components/productCard/utils.d.ts +0 -33
- package/es/components/select-time/index.d.ts +0 -14
- package/es/components/sort/index.d.ts +0 -5
- package/es/components/table/Table/AddFieldModal/index.d.ts +0 -4
- package/es/components/table/index.d.ts +0 -4
- package/es/components/virtual-keyboard/Amount/index.d.ts +0 -6
- package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
- package/es/components/virtual-keyboard/Amount/types.d.ts +0 -44
- package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
- package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
- package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
- package/es/components/virtual-keyboard/Number/index.d.ts +0 -6
- package/es/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
- package/es/components/virtual-keyboard/Number/types.d.ts +0 -26
- package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
- package/es/components/virtual-keyboard/index.d.ts +0 -25
- package/es/index.d.ts +0 -251
- package/es/locales/en-US.d.ts +0 -387
- package/es/locales/ja.d.ts +0 -356
- package/es/locales/pt.d.ts +0 -356
- package/es/locales/zh-CN.d.ts +0 -382
- package/es/locales/zh-TW.d.ts +0 -382
- package/lib/components/PisellCards/components/MultilevelCard/components/PanelWrapper.d.ts +0 -7
- package/lib/components/PisellSteps/PisellSteps.d.ts +0 -14
- package/lib/components/PisellSuperTabs/PisellSuperTabs.d.ts +0 -8
- package/lib/components/PisellSuperTabs/hooks/useTabsState.d.ts +0 -7
- package/lib/components/PisellSuperTabs/types.d.ts +0 -212
- package/lib/components/PisellTabbar/PisellTabbar.d.ts +0 -20
- package/lib/components/PisellTabbar/constants.d.ts +0 -47
- package/lib/components/PisellTabbar/hooks/useActiveKey.d.ts +0 -55
- package/lib/components/PisellTabbar/hooks/useExpand.d.ts +0 -42
- package/lib/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +0 -5
- package/lib/components/PisellTabbar/template/Template1/constants.d.ts +0 -10
- package/lib/components/PisellTabbar/types.d.ts +0 -90
- package/lib/components/PisellTabbar/utils/index.d.ts +0 -69
- package/lib/components/cardPro/index.d.ts +0 -4
- package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +0 -39
- package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -26
- package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -15
- package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +0 -4
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -19
- package/lib/components/iconfont/index.d.ts +0 -8
- package/lib/components/page/index.d.ts +0 -9
- package/lib/components/pisell-config-provider/context.d.ts +0 -22
- package/lib/components/pisell-config-provider/index.d.ts +0 -13
- package/lib/components/pisellAdjustPrice/index.d.ts +0 -5
- package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
- package/lib/components/pisellAdjustPrice/type.d.ts +0 -22
- package/lib/components/pisellCardList/index.d.ts +0 -107
- package/lib/components/pisellCheckboxGroup/index.d.ts +0 -40
- package/lib/components/pisellDataSourceContainer/components/Pagination/index.d.ts +0 -6
- package/lib/components/pisellFilter/type.d.ts +0 -7
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditQuickActions.d.ts +0 -24
- package/lib/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +0 -9
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapPaletteTouchDrag.d.ts +0 -21
- package/lib/components/pisellFloorMapLayout/locales-ja.d.ts +0 -113
- package/lib/components/pisellFloorMapLayout/locales-pt.d.ts +0 -113
- package/lib/components/pisellFloorMapLayout/locales.d.ts +0 -551
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanTypes.d.ts +0 -72
- package/lib/components/pisellFloorMapLayout/utils/floorMapDataRecordLabel.d.ts +0 -8
- package/lib/components/pisellFloorMapLayout/utils/floorMapDropUtils.d.ts +0 -27
- package/lib/components/pisellFloorMapLayout/utils/floorMapStageDefaults.d.ts +0 -8
- package/lib/components/pisellFloorMapLayout/utils/snap.d.ts +0 -10
- package/lib/components/pisellGoodPassCard/index.d.ts +0 -50
- package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.d.ts +0 -6
- package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.d.ts +0 -10
- package/lib/components/pisellHierarchicalSummaryList/components/Row.d.ts +0 -35
- package/lib/components/pisellHierarchicalSummaryList/components/index.d.ts +0 -1
- package/lib/components/pisellHierarchicalSummaryList/hooks/index.d.ts +0 -2
- package/lib/components/pisellHierarchicalSummaryList/hooks/useExpandedKeys.d.ts +0 -15
- package/lib/components/pisellHierarchicalSummaryList/index.d.ts +0 -5
- package/lib/components/pisellHierarchicalSummaryList/types.d.ts +0 -248
- package/lib/components/pisellLookup/components/LookupTrigger.d.ts +0 -3
- package/lib/components/pisellModal/index.d.ts +0 -62
- package/lib/components/pisellReservationSchedule/locales.d.ts +0 -25
- package/lib/components/pisellText/components/Amount/index.d.ts +0 -20
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +0 -10
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.stories.d.ts +0 -79
- package/lib/components/pisellTimeNavigator/components/BackgroundLayer.d.ts +0 -14
- package/lib/components/pisellTimeNavigator/components/CursorLayer.d.ts +0 -25
- package/lib/components/pisellTimeNavigator/components/GestureLayer.d.ts +0 -33
- package/lib/components/pisellTimeNavigator/components/NowButton.d.ts +0 -14
- package/lib/components/pisellTimeNavigator/components/ScaleLayer.d.ts +0 -22
- package/lib/components/pisellTimeNavigator/components/index.d.ts +0 -5
- package/lib/components/pisellTimeNavigator/hooks/index.d.ts +0 -5
- package/lib/components/pisellTimeNavigator/hooks/useDragInertia.d.ts +0 -14
- package/lib/components/pisellTimeNavigator/hooks/useRealtime.d.ts +0 -5
- package/lib/components/pisellTimeNavigator/hooks/useTimeAxis.d.ts +0 -27
- package/lib/components/pisellTimeNavigator/index.d.ts +0 -5
- package/lib/components/pisellTimeNavigator/locales.d.ts +0 -22
- package/lib/components/pisellTimeNavigator/types.d.ts +0 -160
- package/lib/components/pisellTimeNavigator/utils/index.d.ts +0 -30
- package/lib/components/pisellToast/index.d.ts +0 -17
- package/lib/components/pisellToast/squareToast/index.d.ts +0 -15
- package/lib/components/pisellToast/squareToast/methods.d.ts +0 -13
- package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +0 -28
- package/lib/components/pisellToast/squareToast/toast.d.ts +0 -25
- package/lib/components/pisellWalletPassCard/index.d.ts +0 -146
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -4
- package/lib/components/productCard/cartSkuCard/components/Gift/index.d.ts +0 -5
- package/lib/components/productCard/cartSkuCard/components/Gift/types.d.ts +0 -29
- package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -4
- package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
- package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -4
- package/lib/components/productCard/cartSkuCard/components/Promotion/index.d.ts +0 -7
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -36
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -4
- package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -12
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
- package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -4
- package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -13
- package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -22
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -9
- package/lib/components/productCard/cartSkuCard/index.d.ts +0 -11
- package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -178
- package/lib/components/productCard/components/Action/index.d.ts +0 -4
- package/lib/components/productCard/components/Header/EditButton/index.d.ts +0 -4
- package/lib/components/productCard/components/Header/index.d.ts +0 -4
- package/lib/components/productCard/components/Sales/index.d.ts +0 -4
- package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -4
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -14
- package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -3
- package/lib/components/productCard/index.d.ts +0 -7
- package/lib/components/productCard/locales.d.ts +0 -138
- package/lib/components/productCard/status.d.ts +0 -32
- package/lib/components/productCard/types.d.ts +0 -95
- package/lib/components/productCard/utils.d.ts +0 -33
- package/lib/components/select-time/index.d.ts +0 -14
- package/lib/components/sort/index.d.ts +0 -5
- package/lib/components/table/Table/AddFieldModal/index.d.ts +0 -4
- package/lib/components/table/index.d.ts +0 -4
- package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -6
- package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
- package/lib/components/virtual-keyboard/Amount/types.d.ts +0 -44
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
- package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
- package/lib/components/virtual-keyboard/Number/index.d.ts +0 -6
- package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
- package/lib/components/virtual-keyboard/Number/types.d.ts +0 -26
- package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
- package/lib/components/virtual-keyboard/index.d.ts +0 -25
- package/lib/index.d.ts +0 -251
- package/lib/locales/en-US.d.ts +0 -387
- package/lib/locales/ja.d.ts +0 -356
- package/lib/locales/pt.d.ts +0 -356
- package/lib/locales/zh-CN.d.ts +0 -382
- 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
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
}
|
|
@@ -9,7 +9,7 @@ const renderFigmaStyleTableCardMeta: ComponentMetadata = {
|
|
|
9
9
|
"devMode": "proCode",
|
|
10
10
|
"npm": {
|
|
11
11
|
"package": "@pisell/materials",
|
|
12
|
-
"version": "6.11.
|
|
12
|
+
"version": "6.11.24",
|
|
13
13
|
"exportName": "renderFigmaStyleTableCard",
|
|
14
14
|
"main": "src/index.tsx",
|
|
15
15
|
"destructuring": true,
|
package/package.json
CHANGED
|
@@ -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,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,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './PisellTabbar.less';
|
|
3
|
-
import { PisellTabbarProps } from './types';
|
|
4
|
-
/**
|
|
5
|
-
* PisellTabbar - 多层级 Tabbar 组件
|
|
6
|
-
*
|
|
7
|
-
* 支持最多 3 层级的 Tab 导航,每层级可独立展开/收起
|
|
8
|
-
*
|
|
9
|
-
* @component
|
|
10
|
-
* @example
|
|
11
|
-
* ```tsx
|
|
12
|
-
* <PisellTabbar
|
|
13
|
-
* dataSource={categoryData}
|
|
14
|
-
* value={[1, 10, 100]}
|
|
15
|
-
* onChange={(value) => console.log('当前选中:', value)}
|
|
16
|
-
* />
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
declare const PisellTabbar: React.FC<PisellTabbarProps>;
|
|
20
|
-
export default PisellTabbar;
|