@pisell/materials 6.11.48 → 6.11.49
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 +2 -2
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +2 -2
- package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.js +3 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.less +9 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.d.ts +4 -2
- package/es/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.js +4 -2
- package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.d.ts +1 -1
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.js +26 -10
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.js +12 -7
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.js +20 -31
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.less +7 -3
- package/es/components/pisellRecordBoard/shellFrame/index.d.ts +30 -0
- package/es/index.d.ts +265 -0
- package/es/pisell-materials.tw.css +1 -1
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.js +2 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.less +9 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.d.ts +4 -2
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.js +2 -2
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.d.ts +1 -1
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.js +16 -7
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.js +14 -5
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.js +20 -13
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.less +7 -3
- package/lib/components/pisellRecordBoard/shellFrame/index.d.ts +30 -0
- package/lib/index.d.ts +265 -0
- package/lib/pisell-materials.tw.css +1 -1
- package/package.json +1 -1
- package/es/components/PisellCards/components/MultilevelCard/components/PanelWrapper.d.ts +0 -7
- package/es/components/PisellLayouts/index.d.ts +0 -38
- 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/BaseForm.d.ts +0 -3
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +0 -39
- package/es/components/dataSourceComponents/dataSourceForm/type.d.ts +0 -32
- 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 -8
- 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 -4
- 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/index.d.ts +0 -3
- package/es/components/pisellFilter/type.d.ts +0 -7
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.d.ts +0 -55
- package/es/components/pisellFloorMapLayout/components/CanvasTabs.d.ts +0 -22
- package/es/components/pisellFloorMapLayout/components/EditableItemLayer.d.ts +0 -46
- package/es/components/pisellFloorMapLayout/components/FloorMapDataForm.d.ts +0 -17
- package/es/components/pisellFloorMapLayout/components/FloorMapEditQuickActions.d.ts +0 -21
- package/es/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +0 -6
- package/es/components/pisellFloorMapLayout/components/MapLayer.d.ts +0 -27
- package/es/components/pisellFloorMapLayout/components/index.d.ts +0 -21
- package/es/components/pisellFloorMapLayout/context/FloorMapLayoutContext.d.ts +0 -16
- package/es/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.d.ts +0 -5
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapPaletteTouchDrag.d.ts +0 -21
- package/es/components/pisellFloorMapLayout/hooks/useShopFloorPlanSubscription.d.ts +0 -19
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.d.ts +0 -10
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanMapping.d.ts +0 -18
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanPure.d.ts +0 -22
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanTypes.d.ts +0 -72
- package/es/components/pisellFloorMapLayout/utils/floorMapCanvasDisplay.d.ts +0 -20
- package/es/components/pisellFloorMapLayout/utils/floorMapConfigMerge.d.ts +0 -8
- package/es/components/pisellFloorMapLayout/utils/floorMapDataBindingUtils.d.ts +0 -21
- 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/floorMapElementKindUtils.d.ts +0 -22
- package/es/components/pisellFloorMapLayout/utils/floorMapFallbackRender.d.ts +0 -11
- package/es/components/pisellFloorMapLayout/utils/floorMapRemotePersist.d.ts +0 -17
- package/es/components/pisellFloorMapLayout/utils/floorMapStageDefaults.d.ts +0 -8
- package/es/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.d.ts +0 -8
- package/es/components/pisellFloorMapLayout/utils/layoutMeasurements.d.ts +0 -30
- package/es/components/pisellFloorMapLayout/utils/mergeCanvasesForTabs.d.ts +0 -7
- 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/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +0 -14
- package/es/components/pisellRecordBoard/shellFrame/Calendar/RecordBoardCalendar.d.ts +0 -8
- package/es/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.d.ts +0 -4
- package/es/components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.d.ts +0 -18
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/bookingCalendarDayViewContext.d.ts +0 -12
- package/es/components/pisellRecordBoard/shellFrame/FloorMap.d.ts +0 -14
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.d.ts +0 -14
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts +0 -12
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.d.ts +0 -8
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.d.ts +0 -50
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelColorTab.d.ts +0 -17
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.d.ts +0 -28
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewportToolbar.d.ts +0 -18
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.d.ts +0 -22
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/resourceWallConstants.d.ts +0 -2
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallCardPresentation.d.ts +0 -58
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.d.ts +0 -64
- package/es/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +0 -24
- package/es/components/pisellRecordBoard/utils/partitionShellFrameChildren.d.ts +0 -23
- package/es/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +0 -52
- package/es/components/pisellReservationSchedule/PisellReservationSchedule.d.ts +0 -10
- package/es/components/pisellReservationSchedule/PisellReservationSchedule.stories.d.ts +0 -12
- package/es/components/pisellReservationSchedule/index.d.ts +0 -2
- package/es/components/pisellReservationSchedule/locales.d.ts +0 -43
- package/es/components/pisellReservationSchedule/types.d.ts +0 -52
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts +0 -10
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.stories.d.ts +0 -16
- package/es/components/pisellReservationScheduleBand/index.d.ts +0 -2
- package/es/components/pisellReservationScheduleBand/types.d.ts +0 -61
- package/es/components/pisellText/components/Amount/index.d.ts +0 -20
- 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/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 -41
- 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 -3
- package/es/components/productCard/cartSkuCard/components/Gift/index.d.ts +0 -4
- package/es/components/productCard/cartSkuCard/components/Gift/types.d.ts +0 -29
- package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
- package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/Promotion/index.d.ts +0 -6
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -36
- package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
- package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -11
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
- package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
- package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -21
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -8
- package/es/components/productCard/cartSkuCard/components/weighing/index.d.ts +0 -18
- package/es/components/productCard/cartSkuCard/index.d.ts +0 -10
- package/es/components/productCard/cartSkuCard/locales.d.ts +0 -198
- package/es/components/productCard/components/Action/index.d.ts +0 -4
- package/es/components/productCard/components/Header/EditButton/index.d.ts +0 -3
- package/es/components/productCard/components/Header/index.d.ts +0 -3
- package/es/components/productCard/components/Sales/index.d.ts +0 -3
- package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -3
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
- package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -2
- 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 -13
- 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 -5
- 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 -5
- 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/lib/components/PisellCards/components/MultilevelCard/components/PanelWrapper.d.ts +0 -7
- package/lib/components/PisellLayouts/index.d.ts +0 -38
- 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/BaseForm.d.ts +0 -3
- package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +0 -39
- package/lib/components/dataSourceComponents/dataSourceForm/type.d.ts +0 -32
- 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 -8
- 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 -4
- 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/index.d.ts +0 -3
- package/lib/components/pisellFilter/type.d.ts +0 -7
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.d.ts +0 -55
- package/lib/components/pisellFloorMapLayout/components/CanvasTabs.d.ts +0 -22
- package/lib/components/pisellFloorMapLayout/components/EditableItemLayer.d.ts +0 -46
- package/lib/components/pisellFloorMapLayout/components/FloorMapDataForm.d.ts +0 -17
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditQuickActions.d.ts +0 -21
- package/lib/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +0 -6
- package/lib/components/pisellFloorMapLayout/components/MapLayer.d.ts +0 -27
- package/lib/components/pisellFloorMapLayout/components/index.d.ts +0 -21
- package/lib/components/pisellFloorMapLayout/context/FloorMapLayoutContext.d.ts +0 -16
- package/lib/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.d.ts +0 -5
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapPaletteTouchDrag.d.ts +0 -21
- package/lib/components/pisellFloorMapLayout/hooks/useShopFloorPlanSubscription.d.ts +0 -19
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.d.ts +0 -10
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanMapping.d.ts +0 -18
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanPure.d.ts +0 -22
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanTypes.d.ts +0 -72
- package/lib/components/pisellFloorMapLayout/utils/floorMapCanvasDisplay.d.ts +0 -20
- package/lib/components/pisellFloorMapLayout/utils/floorMapConfigMerge.d.ts +0 -8
- package/lib/components/pisellFloorMapLayout/utils/floorMapDataBindingUtils.d.ts +0 -21
- 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/floorMapElementKindUtils.d.ts +0 -22
- package/lib/components/pisellFloorMapLayout/utils/floorMapFallbackRender.d.ts +0 -11
- package/lib/components/pisellFloorMapLayout/utils/floorMapRemotePersist.d.ts +0 -17
- package/lib/components/pisellFloorMapLayout/utils/floorMapStageDefaults.d.ts +0 -8
- package/lib/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.d.ts +0 -8
- package/lib/components/pisellFloorMapLayout/utils/layoutMeasurements.d.ts +0 -30
- package/lib/components/pisellFloorMapLayout/utils/mergeCanvasesForTabs.d.ts +0 -7
- 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/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +0 -14
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/RecordBoardCalendar.d.ts +0 -8
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.d.ts +0 -4
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.d.ts +0 -18
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/bookingCalendarDayViewContext.d.ts +0 -12
- package/lib/components/pisellRecordBoard/shellFrame/FloorMap.d.ts +0 -14
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.d.ts +0 -14
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts +0 -12
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.d.ts +0 -8
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.d.ts +0 -50
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelColorTab.d.ts +0 -17
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.d.ts +0 -28
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewportToolbar.d.ts +0 -18
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.d.ts +0 -22
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/resourceWallConstants.d.ts +0 -2
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallCardPresentation.d.ts +0 -58
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.d.ts +0 -64
- package/lib/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +0 -24
- package/lib/components/pisellRecordBoard/utils/partitionShellFrameChildren.d.ts +0 -23
- package/lib/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +0 -52
- package/lib/components/pisellReservationSchedule/PisellReservationSchedule.d.ts +0 -10
- package/lib/components/pisellReservationSchedule/PisellReservationSchedule.stories.d.ts +0 -12
- package/lib/components/pisellReservationSchedule/index.d.ts +0 -2
- package/lib/components/pisellReservationSchedule/locales.d.ts +0 -43
- package/lib/components/pisellReservationSchedule/types.d.ts +0 -52
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts +0 -10
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.stories.d.ts +0 -16
- package/lib/components/pisellReservationScheduleBand/index.d.ts +0 -2
- package/lib/components/pisellReservationScheduleBand/types.d.ts +0 -61
- package/lib/components/pisellText/components/Amount/index.d.ts +0 -20
- 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/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 -41
- 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 -3
- package/lib/components/productCard/cartSkuCard/components/Gift/index.d.ts +0 -4
- package/lib/components/productCard/cartSkuCard/components/Gift/types.d.ts +0 -29
- package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
- package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/Promotion/index.d.ts +0 -6
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -36
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
- package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -11
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
- package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
- package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -21
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -8
- package/lib/components/productCard/cartSkuCard/components/weighing/index.d.ts +0 -18
- package/lib/components/productCard/cartSkuCard/index.d.ts +0 -10
- package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -198
- package/lib/components/productCard/components/Action/index.d.ts +0 -4
- package/lib/components/productCard/components/Header/EditButton/index.d.ts +0 -3
- package/lib/components/productCard/components/Header/index.d.ts +0 -3
- package/lib/components/productCard/components/Sales/index.d.ts +0 -3
- package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -3
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
- package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -2
- 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 -13
- 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 -5
- 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 -5
- 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
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { FloorMapCanvas, FloorMapCanvasNameI18n } from '../types';
|
|
3
|
-
import './CanvasTabs.less';
|
|
4
|
-
export interface CanvasTabsProps {
|
|
5
|
-
/** 画布列表 */
|
|
6
|
-
canvases: FloorMapCanvas[];
|
|
7
|
-
/** 当前画布 id */
|
|
8
|
-
currentCanvasId: string | null;
|
|
9
|
-
/** 切换画布 */
|
|
10
|
-
onTabChange: (canvasId: string) => void;
|
|
11
|
-
/** 是否允许添加/删除/重命名画布(编辑态) */
|
|
12
|
-
canEdit?: boolean;
|
|
13
|
-
/** 添加画布 */
|
|
14
|
-
onAddCanvas?: () => void;
|
|
15
|
-
/** 删除画布(至少保留一个画布时可调用) */
|
|
16
|
-
onRemoveCanvas?: (canvasId: string) => void;
|
|
17
|
-
/** 重命名画布(对象写入 `name`,并清除 `nameKey`) */
|
|
18
|
-
onRenameCanvas?: (canvasId: string, name: string | FloorMapCanvasNameI18n) => void;
|
|
19
|
-
className?: string;
|
|
20
|
-
}
|
|
21
|
-
export declare function CanvasTabs(props: CanvasTabsProps): JSX.Element;
|
|
22
|
-
export default CanvasTabs;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EditableItemLayer - 编辑态图元层:拖拽、缩放、选中、吸附
|
|
3
|
-
*/
|
|
4
|
-
import React, { type CSSProperties } from 'react';
|
|
5
|
-
import type { FloorMapItemBase, FloorMapMergedItem, FloorMapRenderOptions } from '../types';
|
|
6
|
-
import { type FloorMapEditQuickActionLabels } from './FloorMapEditQuickActions';
|
|
7
|
-
import './EditableItemLayer.less';
|
|
8
|
-
export interface EditableItemLayerProps<T extends FloorMapItemBase = FloorMapMergedItem> {
|
|
9
|
-
items: T[];
|
|
10
|
-
renderItem: (item: T, index: number, options?: FloorMapRenderOptions) => React.ReactNode;
|
|
11
|
-
rowKey?: string | ((item: T, index: number) => string);
|
|
12
|
-
cellSize: number;
|
|
13
|
-
itemUnit?: 'cell' | 'pixel';
|
|
14
|
-
itemGap?: number;
|
|
15
|
-
contentWidth: number;
|
|
16
|
-
contentHeight: number;
|
|
17
|
-
/** 内容区 X/Y 偏移(画布包围盒向左/上扩展时,图元层整体平移) */
|
|
18
|
-
contentOffsetX?: number;
|
|
19
|
-
contentOffsetY?: number;
|
|
20
|
-
selectedId: string | null;
|
|
21
|
-
onSelect: (id: string | null) => void;
|
|
22
|
-
onUpdateItem: (itemId: string, patch: Partial<{
|
|
23
|
-
x: number;
|
|
24
|
-
y: number;
|
|
25
|
-
width: number;
|
|
26
|
-
height: number;
|
|
27
|
-
}>) => void;
|
|
28
|
-
snapStep?: number;
|
|
29
|
-
/** 画布当前缩放,用于将屏幕位移转为内容位移 */
|
|
30
|
-
scale?: number;
|
|
31
|
-
/** 拖拽/缩放图元时通知父组件,用于禁用画布平移,避免松手时画布跟着动 */
|
|
32
|
-
onInteractionChange?: (active: boolean) => void;
|
|
33
|
-
/** 每项外层容器额外样式(与定位样式合并) */
|
|
34
|
-
getMergedItemWrapperStyle?: (item: T, index: number) => CSSProperties | undefined;
|
|
35
|
-
className?: string;
|
|
36
|
-
/** 编辑态选中时图元旁快捷栏(上锁 / 复制 / 删除) */
|
|
37
|
-
editQuickBar?: {
|
|
38
|
-
labels: FloorMapEditQuickActionLabels;
|
|
39
|
-
isLocked: boolean;
|
|
40
|
-
onToggleLock: () => void;
|
|
41
|
-
onDuplicate: () => void;
|
|
42
|
-
onDelete: () => void;
|
|
43
|
-
} | null;
|
|
44
|
-
}
|
|
45
|
-
export declare function EditableItemLayer<T extends FloorMapItemBase>(props: EditableItemLayerProps<T>): JSX.Element;
|
|
46
|
-
export default EditableItemLayer;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { FloorMapDataSources, DataSourceFormColumn } from '../types';
|
|
3
|
-
import './FloorMapDataForm.less';
|
|
4
|
-
export interface FloorMapDataFormProps {
|
|
5
|
-
dataSourceKey: string;
|
|
6
|
-
recordId: string;
|
|
7
|
-
record: Record<string, unknown>;
|
|
8
|
-
dataSources: FloorMapDataSources;
|
|
9
|
-
onSave: (dataSourceKey: string, id: string, newData: Record<string, unknown>) => void;
|
|
10
|
-
saving?: boolean;
|
|
11
|
-
/** 列配置:标签、类型(string/number/select)、选项(select 时);不传则自动列举 record 除 id 外字段 */
|
|
12
|
-
columns?: DataSourceFormColumn[];
|
|
13
|
-
className?: string;
|
|
14
|
-
}
|
|
15
|
-
/** 简单通用表单:可编辑记录中的字段;支持 columns 配置标签与控件类型 */
|
|
16
|
-
export declare function FloorMapDataForm(props: FloorMapDataFormProps): JSX.Element;
|
|
17
|
-
export default FloorMapDataForm;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface FloorMapEditQuickActionLabels {
|
|
3
|
-
lock: string;
|
|
4
|
-
unlock: string;
|
|
5
|
-
duplicate: string;
|
|
6
|
-
delete: string;
|
|
7
|
-
popTitle: string;
|
|
8
|
-
popDesc: string;
|
|
9
|
-
cancel: string;
|
|
10
|
-
okDelete: string;
|
|
11
|
-
ariaToolbar: string;
|
|
12
|
-
}
|
|
13
|
-
export interface FloorMapEditQuickActionsProps {
|
|
14
|
-
className?: string;
|
|
15
|
-
labels: FloorMapEditQuickActionLabels;
|
|
16
|
-
isLocked: boolean;
|
|
17
|
-
onToggleLock: () => void;
|
|
18
|
-
onDuplicate: () => void;
|
|
19
|
-
onDelete: () => void;
|
|
20
|
-
}
|
|
21
|
-
export declare function FloorMapEditQuickActions(props: FloorMapEditQuickActionsProps): JSX.Element;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MapLayer - 楼层图底层
|
|
3
|
-
* 负责背景(无/纯色/图片/SVG)、网格线、padding、gap
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import type { FloorMapLayerConfig } from '../types';
|
|
7
|
-
import './MapLayer.less';
|
|
8
|
-
export interface MapLayerProps {
|
|
9
|
-
/** 底层配置 */
|
|
10
|
-
config?: FloorMapLayerConfig;
|
|
11
|
-
/** 内容区域宽度(逻辑单位或像素,用于网格线计算) */
|
|
12
|
-
contentWidth?: number;
|
|
13
|
-
/** 内容区域高度 */
|
|
14
|
-
contentHeight?: number;
|
|
15
|
-
/** 每格像素尺寸(用于网格线间距) */
|
|
16
|
-
cellSize?: number;
|
|
17
|
-
/** 为 true 时不应用纯色背景,让画布底层网格透出 */
|
|
18
|
-
preferCanvasGrid?: boolean;
|
|
19
|
-
/** 为 true 时容器设置 pointer-events: none,空白处点击可透传到下层,供 react-zoom-pan-pinch 画布平移 */
|
|
20
|
-
pointerEventsNone?: boolean;
|
|
21
|
-
/** 子节点(展示层会叠在上方) */
|
|
22
|
-
children?: React.ReactNode;
|
|
23
|
-
/** 自定义类名 */
|
|
24
|
-
className?: string;
|
|
25
|
-
}
|
|
26
|
-
export declare function MapLayer(props: MapLayerProps): JSX.Element;
|
|
27
|
-
export default MapLayer;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 楼层图布局子组件导出
|
|
3
|
-
*/
|
|
4
|
-
export { MapLayer } from './MapLayer';
|
|
5
|
-
export { ItemLayer } from './ItemLayer';
|
|
6
|
-
export { ViewControls } from './ViewControls';
|
|
7
|
-
export { ViewControlsWithZoom } from './ViewControlsWithZoom';
|
|
8
|
-
export { CanvasTabs } from './CanvasTabs';
|
|
9
|
-
export { EditableItemLayer } from './EditableItemLayer';
|
|
10
|
-
export { FloorMapToolbar } from './FloorMapToolbar';
|
|
11
|
-
export { FloorMapEditTopBar } from './FloorMapEditTopBar';
|
|
12
|
-
export { FloorMapEditPanel } from './FloorMapEditPanel';
|
|
13
|
-
export { FloorMapDataForm } from './FloorMapDataForm';
|
|
14
|
-
export type { ViewControlsApi } from './ViewControls';
|
|
15
|
-
export type { ViewControlsWithZoomProps } from './ViewControlsWithZoom';
|
|
16
|
-
export type { CanvasTabsProps } from './CanvasTabs';
|
|
17
|
-
export type { EditableItemLayerProps } from './EditableItemLayer';
|
|
18
|
-
export type { FloorMapToolbarProps, PlaceMode } from './FloorMapToolbar';
|
|
19
|
-
export type { FloorMapEditTopBarProps, FloorMapEditTopBarMode, } from './FloorMapEditTopBar';
|
|
20
|
-
export type { FloorMapEditPanelProps } from './FloorMapEditPanel';
|
|
21
|
-
export type { FloorMapDataFormProps } from './FloorMapDataForm';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 平面图数据/保存等注入上下文;单独页面包 `FloorMapLayoutProvider`,RecordBoard 由 Shell 内置 Provider。
|
|
3
|
-
*/
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import type { FloorMapLayoutContextValue } from '../types';
|
|
6
|
-
/**
|
|
7
|
-
* 未传 `floorMapLayoutContext` 时 Shell 使用该稳定引用,避免无意义变更引用。
|
|
8
|
-
*/
|
|
9
|
-
export declare const EMPTY_FLOOR_MAP_LAYOUT_CONTEXT: FloorMapLayoutContextValue;
|
|
10
|
-
export declare function useFloorMapLayoutContext(): FloorMapLayoutContextValue | undefined;
|
|
11
|
-
export interface FloorMapLayoutProviderProps {
|
|
12
|
-
value: FloorMapLayoutContextValue;
|
|
13
|
-
children: React.ReactNode;
|
|
14
|
-
}
|
|
15
|
-
/** 注入 `FloorMapLayoutContextValue`;`value` 建议由调用方 `useMemo` 稳定化 */
|
|
16
|
-
export declare function FloorMapLayoutProvider({ value, children, }: FloorMapLayoutProviderProps): JSX.Element;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { FloorMapItemBase, FloorMapLayoutContextValue, PisellFloorMapLayoutProps } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* 将 `FloorMapLayoutContext` 与 Layout props 合并:各字段 props ?? ctx,props 显式值优先。
|
|
4
|
-
*/
|
|
5
|
-
export declare function mergeFloorMapLayoutPropsFromContext<T extends FloorMapItemBase>(props: PisellFloorMapLayoutProps<T>, ctx: FloorMapLayoutContextValue | undefined): PisellFloorMapLayoutProps<T>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { MutableRefObject, PointerEvent as ReactPointerEvent } from 'react';
|
|
2
|
-
import type { FloorMapPaletteDragPayload } from '../utils/floorMapDropUtils';
|
|
3
|
-
export interface UseFloorMapPaletteTouchDragParams {
|
|
4
|
-
enabled: boolean;
|
|
5
|
-
mapDropLayerRef: MutableRefObject<HTMLDivElement | null>;
|
|
6
|
-
contentWidth: number;
|
|
7
|
-
contentHeight: number;
|
|
8
|
-
contentOffsetRef: MutableRefObject<{
|
|
9
|
-
x: number;
|
|
10
|
-
y: number;
|
|
11
|
-
}>;
|
|
12
|
-
setMapPaletteDragActive: (v: boolean) => void;
|
|
13
|
-
onDropInScene: (payload: FloorMapPaletteDragPayload, sceneX: number, sceneY: number) => void;
|
|
14
|
-
}
|
|
15
|
-
export interface UseFloorMapPaletteTouchDragResult {
|
|
16
|
-
/** 挂在图元预览按钮上;mouse 不处理,交给 HTML5 DnD */
|
|
17
|
-
handlePaletteCardPointerDown: (payload: FloorMapPaletteDragPayload, e: ReactPointerEvent<HTMLElement>) => void;
|
|
18
|
-
/** 图元按钮 onClick 前检查:触摸拖放过则吞掉本次点击 */
|
|
19
|
-
consumeToolbarClickIfTouchDrag: () => boolean;
|
|
20
|
-
}
|
|
21
|
-
export declare function useFloorMapPaletteTouchDrag(params: UseFloorMapPaletteTouchDragParams): UseFloorMapPaletteTouchDragResult;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { ShopFloorPlanDetail } from '../shopFloorPlan/shopFloorPlanTypes';
|
|
2
|
-
import type { ShopFloorPlanByCodeRequestOptions } from '../shopFloorPlan/shopFloorPlanTypes';
|
|
3
|
-
export declare type UseShopFloorPlanSubscriptionParams = {
|
|
4
|
-
/** `null` 时不发起请求(与预约页 `resolvedFloorPlanId` 一致);清空状态由调用方处理 */
|
|
5
|
-
enabled: boolean;
|
|
6
|
-
code: string;
|
|
7
|
-
subscriberId: string;
|
|
8
|
-
ensureByCode: (code: string, opts?: ShopFloorPlanByCodeRequestOptions) => Promise<ShopFloorPlanDetail | null>;
|
|
9
|
-
unsubscribeQuery: (subscriberId: string) => Promise<void>;
|
|
10
|
-
onDetail: (detail: ShopFloorPlanDetail) => void;
|
|
11
|
-
onLoadError?: (err: unknown) => void;
|
|
12
|
-
/** 与预约一致:默认 true */
|
|
13
|
-
osServer?: boolean;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* 按 code 订阅店铺平面图:首包 Promise + WebSocket callback 均归一为 `onDetail`。
|
|
17
|
-
* 不包含与业务默认 {@link FloorMapViewConfig} 的合并(由调用方在 `onDetail` 或后续 useMemo 完成)。
|
|
18
|
-
*/
|
|
19
|
-
export declare function useShopFloorPlanSubscription(params: UseShopFloorPlanSubscriptionParams): void;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { CreateShopFloorPlanClientOptions, EnsureShopFloorPlanByCodeOptions, PostShopFloorPlanBody, PutShopFloorPlanBody, ShopFloorPlanByCodeRequestOptions, ShopFloorPlanDetail } from './shopFloorPlanTypes';
|
|
2
|
-
export { SHOP_FLOOR_PLAN_DUPLICATE_CODE } from './shopFloorPlanTypes';
|
|
3
|
-
export declare function createShopFloorPlanClient(options: CreateShopFloorPlanClientOptions): {
|
|
4
|
-
unsubscribeShopFloorPlanCodeQuery(subscriberId: string): Promise<void>;
|
|
5
|
-
getShopFloorPlanByCode(code: string, subscribe?: ShopFloorPlanByCodeRequestOptions): Promise<ShopFloorPlanDetail | null>;
|
|
6
|
-
postShopFloorPlan: (body: PostShopFloorPlanBody) => Promise<ShopFloorPlanDetail | null>;
|
|
7
|
-
putShopFloorPlan(id: number, body: PutShopFloorPlanBody): Promise<unknown>;
|
|
8
|
-
ensureShopFloorPlanByCode: (code: string, subscribe?: EnsureShopFloorPlanByCodeOptions) => Promise<ShopFloorPlanDetail | null>;
|
|
9
|
-
};
|
|
10
|
-
export declare type ShopFloorPlanClient = ReturnType<typeof createShopFloorPlanClient>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { FloorMapSceneElement } from '../types';
|
|
2
|
-
import type { ShopFloorPlanLayoutItem } from './shopFloorPlanTypes';
|
|
3
|
-
/**
|
|
4
|
-
* 将场景图元转为后端 layout 项(多画布时通常摊平到同一 layout)。
|
|
5
|
-
*/
|
|
6
|
-
export declare function sceneElementsToShopLayout(sceneElements: FloorMapSceneElement[]): ShopFloorPlanLayoutItem[];
|
|
7
|
-
export declare type ShopLayoutToSceneOptions = {
|
|
8
|
-
canvasId: string;
|
|
9
|
-
dataSourceKey: string;
|
|
10
|
-
/** 后端 `type: rect` 映射到的 {@link FloorMapSceneElement.elementKind} */
|
|
11
|
-
rectElementKind: string;
|
|
12
|
-
/** 后端 `type: circle` 映射到的 elementKind */
|
|
13
|
-
circleElementKind: string;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* 将扁平 layout 数组转为 `sceneElements`;图元种类由调用方传入(预约场景可传 boundTable / boundRoundTable 等)。
|
|
17
|
-
*/
|
|
18
|
-
export declare function shopLayoutToSceneElements(layout: ShopFloorPlanLayoutItem[], options: ShopLayoutToSceneOptions): FloorMapSceneElement[];
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { FloorMapSceneElement, FloorMapViewConfig } from '../types';
|
|
2
|
-
import type { PutShopFloorPlanBody, ShopFloorPlanDetail } from './shopFloorPlanTypes';
|
|
3
|
-
export declare function pickFloorPlanDetail(res: unknown): ShopFloorPlanDetail | null;
|
|
4
|
-
export declare function isShopFloorPlanNotFoundResponse(res: unknown): boolean;
|
|
5
|
-
export declare function isHttpNotFoundError(err: unknown): boolean;
|
|
6
|
-
export declare function isFloorPlanDuplicateCodeError(err: unknown): boolean;
|
|
7
|
-
export declare function parseLayoutFieldToViewConfigPatch(raw: unknown): Partial<FloorMapViewConfig> | null;
|
|
8
|
-
export declare function floorMapSavedConfigToRemotePatch(config: FloorMapViewConfig): Partial<FloorMapViewConfig>;
|
|
9
|
-
export declare function mergeFloorPlanViewRemote(base: FloorMapViewConfig, remote: Partial<FloorMapViewConfig>): FloorMapViewConfig;
|
|
10
|
-
export declare function viewConfigToLayoutPayload(config: FloorMapViewConfig): Record<string, unknown>;
|
|
11
|
-
export declare function inferCanvasSizeFromScene(sceneElements: FloorMapSceneElement[], fallbackWidth?: number, fallbackHeight?: number, padding?: number): {
|
|
12
|
-
w: number;
|
|
13
|
-
h: number;
|
|
14
|
-
};
|
|
15
|
-
export declare function buildFloorPlanPutBody(config: FloorMapViewConfig, options: {
|
|
16
|
-
canvasWidth?: number;
|
|
17
|
-
canvasHeight?: number;
|
|
18
|
-
code?: string;
|
|
19
|
-
name?: Record<string, string>;
|
|
20
|
-
sort?: number;
|
|
21
|
-
status?: number;
|
|
22
|
-
}): PutShopFloorPlanBody;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 店铺平面图 HTTP 契约(/shop/schedule/floor-plan)与 {@link FloorMapViewConfig} 映射所用类型。
|
|
3
|
-
* 具体请求由 {@link ShopFloorPlanHttpAdapter} 注入,便于 materials 不依赖宿主 request 实现。
|
|
4
|
-
*/
|
|
5
|
-
/** 遇 code 重复(接口 5001)时,{@link isFloorPlanDuplicateCodeError} 依赖此字段 */
|
|
6
|
-
export declare const SHOP_FLOOR_PLAN_DUPLICATE_CODE = "floorPlanDuplicateCode";
|
|
7
|
-
export interface ShopFloorPlanDetail {
|
|
8
|
-
id: number;
|
|
9
|
-
shop_id?: number;
|
|
10
|
-
code?: string;
|
|
11
|
-
name?: string | Record<string, string>;
|
|
12
|
-
layout: unknown;
|
|
13
|
-
canvas_width?: number;
|
|
14
|
-
canvas_height?: number;
|
|
15
|
-
sort?: number;
|
|
16
|
-
status?: number;
|
|
17
|
-
created_at?: string;
|
|
18
|
-
updated_at?: string;
|
|
19
|
-
[key: string]: unknown;
|
|
20
|
-
}
|
|
21
|
-
export interface ShopFloorPlanLayoutItem {
|
|
22
|
-
id: string;
|
|
23
|
-
type: 'rect' | 'circle';
|
|
24
|
-
label: string;
|
|
25
|
-
x: number;
|
|
26
|
-
y: number;
|
|
27
|
-
rotation: number;
|
|
28
|
-
color: string;
|
|
29
|
-
border_color: string;
|
|
30
|
-
resource_id: number | null;
|
|
31
|
-
width?: number;
|
|
32
|
-
height?: number;
|
|
33
|
-
radius?: number;
|
|
34
|
-
[key: string]: unknown;
|
|
35
|
-
}
|
|
36
|
-
export interface PostShopFloorPlanBody {
|
|
37
|
-
code: string;
|
|
38
|
-
name: Record<string, string>;
|
|
39
|
-
layout?: unknown;
|
|
40
|
-
canvas_width?: number;
|
|
41
|
-
canvas_height?: number;
|
|
42
|
-
sort?: number;
|
|
43
|
-
status?: number;
|
|
44
|
-
}
|
|
45
|
-
export interface PutShopFloorPlanBody {
|
|
46
|
-
code?: string;
|
|
47
|
-
name?: Record<string, string>;
|
|
48
|
-
layout?: unknown;
|
|
49
|
-
canvas_width?: number;
|
|
50
|
-
canvas_height?: number;
|
|
51
|
-
sort?: number;
|
|
52
|
-
status?: number;
|
|
53
|
-
}
|
|
54
|
-
export interface ShopFloorPlanByCodeRequestOptions {
|
|
55
|
-
osServer?: boolean;
|
|
56
|
-
subscriberId?: string;
|
|
57
|
-
callback?: (res: unknown) => void;
|
|
58
|
-
}
|
|
59
|
-
export declare type ShopFloorPlanHttpAdapter = {
|
|
60
|
-
get: (url: string, params?: unknown, config?: Record<string, unknown>) => Promise<unknown>;
|
|
61
|
-
post: (url: string, body?: unknown, config?: Record<string, unknown>) => Promise<unknown>;
|
|
62
|
-
put: (url: string, body?: unknown, config?: Record<string, unknown>) => Promise<unknown>;
|
|
63
|
-
};
|
|
64
|
-
export declare type CreateShopFloorPlanClientOptions = {
|
|
65
|
-
http: ShopFloorPlanHttpAdapter;
|
|
66
|
-
/** POST/PUT 失败且无更具体 message 时的兜底文案 */
|
|
67
|
-
saveFailedMessage?: string;
|
|
68
|
-
};
|
|
69
|
-
/** ensure 流程可选:404 时 POST 创建体由调用方注入 */
|
|
70
|
-
export declare type EnsureShopFloorPlanByCodeOptions = ShopFloorPlanByCodeRequestOptions & {
|
|
71
|
-
buildDefaultPostBody?: (code: string) => PostShopFloorPlanBody;
|
|
72
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { FloorMapCanvas, FloorMapCanvasNameI18n } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* 合并平面图 Tab 用多语言包(与业务侧 `locales.init` 可叠加)。
|
|
4
|
-
*/
|
|
5
|
-
export declare function initFloorMapLayoutLocales(engineLocale: string): void;
|
|
6
|
-
/**
|
|
7
|
-
* 从多语言对象中取当前 locale 下展示字符串,缺省按 en → 其余首个非空。
|
|
8
|
-
*/
|
|
9
|
-
export declare function pickFloorMapCanvasI18nString(obj: FloorMapCanvasNameI18n, engineLocale: string): string;
|
|
10
|
-
/**
|
|
11
|
-
* 画布在 Tab / 下拉中的展示名:
|
|
12
|
-
* 1. `name` 为多语言对象时 **优先** 按引擎 locale 取字段(与配置内嵌文案一致);
|
|
13
|
-
* 2. 否则 `nameKey` + `locales.getText`(需业务侧已 init 对应语言包);
|
|
14
|
-
* 3. 否则 `name` 字符串。
|
|
15
|
-
*/
|
|
16
|
-
export declare function getFloorMapCanvasDisplayName(canvas: FloorMapCanvas, engineLocale: string): string;
|
|
17
|
-
/**
|
|
18
|
-
* 打开重命名弹层时的初始多语言值(与 Translation 表单一致)。
|
|
19
|
-
*/
|
|
20
|
-
export declare function seedFloorMapCanvasNameI18n(canvas: FloorMapCanvas, displayFallback: string): FloorMapCanvasNameI18n;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 将当前画布的 sceneElements 合并为 Layout 使用的 FloorMapMergedItem[]
|
|
3
|
-
*/
|
|
4
|
-
import type { FloorMapViewConfig, FloorMapMergedItem } from '../types';
|
|
5
|
-
/**
|
|
6
|
-
* 合并指定画布下的 sceneElements 为一份 items(用于 ItemLayer / EditableItemLayer)
|
|
7
|
-
*/
|
|
8
|
-
export declare function mergeCanvasItems(canvasId: string, config: Pick<FloorMapViewConfig, 'sceneElements' | 'elementKinds'>, defaultCellSize?: number): FloorMapMergedItem[];
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { FloorMapDataSources, FloorMapMergedItem } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* 数据源行:平面图 dataSources 列表项至少含 `id`(与 {@link FloorMapSceneElementDataBinding.recordId} 对应)。
|
|
4
|
-
*/
|
|
5
|
-
export declare type FloorMapDataSourceRow = {
|
|
6
|
-
id: string;
|
|
7
|
-
[key: string]: unknown;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* 按画布图元上的 `dataBinding` 在 `dataSources[dataSourceKey]` 中查找对应行。
|
|
11
|
-
* 与 private-materials 预约 `findReservationRow` 算法一致:`recordId` 与行的 `id` 均按字符串比较。
|
|
12
|
-
*/
|
|
13
|
-
export declare function findFloorMapRowByDataBinding<T extends FloorMapDataSourceRow>(item: FloorMapMergedItem, dataSources: FloorMapDataSources): T | undefined;
|
|
14
|
-
/**
|
|
15
|
-
* 当 {@link findFloorMapRowByDataBinding} 无结果时,占位卡可据此选择文案(业务层自行 i18n)。
|
|
16
|
-
*/
|
|
17
|
-
export declare type FloorMapBindingPlaceholderReason = 'missing_data_source_key' | 'missing_record_id' | 'new_unsaved_slot' | 'record_not_in_list';
|
|
18
|
-
/**
|
|
19
|
-
* 若已能解析到数据源行则返回 `null`;否则返回占位原因(不含文案,便于各业务映射 locales)。
|
|
20
|
-
*/
|
|
21
|
-
export declare function getFloorMapBindingPlaceholderReason(item: FloorMapMergedItem, dataSources: FloorMapDataSources): FloorMapBindingPlaceholderReason | null;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 平面图编辑态:侧栏图元拖拽到画布的 DataTransfer 与坐标
|
|
3
|
-
*/
|
|
4
|
-
/** 与 setData 一致,用于识别左侧图元栏发起的拖拽 */
|
|
5
|
-
export declare const FLOOR_MAP_PALETTE_DRAG_MIME = "application/x-pisell-floor-map-element";
|
|
6
|
-
export interface FloorMapPaletteDragPayload {
|
|
7
|
-
elementKind: string;
|
|
8
|
-
dataSourceKey?: string;
|
|
9
|
-
recordId?: string;
|
|
10
|
-
recordIds?: string[];
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* 与 {@link useFloorMapEditState} 落点一致:内容区 drop 的 offset 减去内容区 padding 偏移
|
|
14
|
-
*/
|
|
15
|
-
export declare function sceneXYFromContentDropOffset(offsetX: number, offsetY: number, contentOffset: {
|
|
16
|
-
x: number;
|
|
17
|
-
y: number;
|
|
18
|
-
}): {
|
|
19
|
-
x: number;
|
|
20
|
-
y: number;
|
|
21
|
-
};
|
|
22
|
-
/** 是否为左侧图元栏拖拽(非本地文件 / 外链图片) */
|
|
23
|
-
export declare function isFloorMapPaletteDrag(dt: DataTransfer | null): boolean;
|
|
24
|
-
/**
|
|
25
|
-
* 解析侧栏拖拽 payload;非法时返回 null
|
|
26
|
-
*/
|
|
27
|
-
export declare function parsePaletteDragPayload(dt: DataTransfer): FloorMapPaletteDragPayload | null;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 图元种类解析与绑定展示前校验(供合并项渲染、工具栏逻辑复用)
|
|
3
|
-
*/
|
|
4
|
-
import type { FloorMapElementKindConfig, FloorMapViewConfig, FloorMapSceneElement, FloorMapDataSources, FloorMapElementDataBindingPolicy } from '../types';
|
|
5
|
-
/** 与 RecordBoard Story 一致:`floorMapImage` */
|
|
6
|
-
export declare function isFloorMapImageElementKind(kind: string | undefined): boolean;
|
|
7
|
-
/** dataBindingPolicy 缺省视为 none */
|
|
8
|
-
export declare function resolveDataBindingPolicy(kind: FloorMapElementKindConfig | undefined): FloorMapElementDataBindingPolicy;
|
|
9
|
-
export declare function getElementKindConfig(config: Pick<FloorMapViewConfig, 'elementKinds'> | undefined, elementKind: string | undefined): FloorMapElementKindConfig | undefined;
|
|
10
|
-
/**
|
|
11
|
-
* 与调色板分组一致:取与当前图元 **同一 categoryId**(含未填 categoryId 时落到首个分类)下的可切换种类,
|
|
12
|
-
* 排除舞台、底图。若仅有一种则编辑面板可不展示切换器。
|
|
13
|
-
*/
|
|
14
|
-
export declare function getSwappableElementKindsInSameCategory(config: FloorMapViewConfig, elementKind: string | undefined): FloorMapElementKindConfig[];
|
|
15
|
-
/**
|
|
16
|
-
* 在右侧编辑面板将图元改为同分类下的另一种 kind 时的草稿 patch(绑定不兼容则清空)
|
|
17
|
-
*/
|
|
18
|
-
export declare function patchSceneElementForKindSwitch(config: FloorMapViewConfig, element: FloorMapSceneElement, nextKindValue: string): Partial<FloorMapSceneElement>;
|
|
19
|
-
/**
|
|
20
|
-
* @returns 人类可读错误文案;无问题时返回 null
|
|
21
|
-
*/
|
|
22
|
-
export declare function getSceneElementRenderIssue(element: FloorMapSceneElement, kind: FloorMapElementKindConfig | undefined, dataSources: FloorMapDataSources | undefined): string | null;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 无 renderItemByKind 时的占位渲染(装饰、舞台等),避免画布上不显示
|
|
3
|
-
*/
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import type { FloorMapMergedItem } from '../types';
|
|
6
|
-
/**
|
|
7
|
-
* @returns 与 PisellFloorMapLayout 内联 fallback 一致的渲染函数(useCallback 由调用方包裹)
|
|
8
|
-
*/
|
|
9
|
-
/** 绑定校验失败或 renderItemByKind 抛错时的占位 */
|
|
10
|
-
export declare function renderFloorMapRenderError(message: string): React.ReactNode;
|
|
11
|
-
export declare function renderFloorMapFallbackPlaceholder(item: FloorMapMergedItem): React.ReactNode;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { FloorMapViewConfig } from '../types';
|
|
2
|
-
export declare type WrapFloorMapOnSaveWithRemotePersistParams = {
|
|
3
|
-
/** 与预约页一致:id 有效且为有限正整数 */
|
|
4
|
-
canPersist: boolean;
|
|
5
|
-
persistTargetId: number;
|
|
6
|
-
/** 写入远端(如 PUT shop floor-plan) */
|
|
7
|
-
persist: (id: number, config: FloorMapViewConfig) => Promise<unknown>;
|
|
8
|
-
/** 成功后将草稿同步到「远程补丁」状态,避免编辑态被旧 GET 覆盖 */
|
|
9
|
-
setRemoteFloorPlanView: (patch: Partial<FloorMapViewConfig>) => void;
|
|
10
|
-
onFloorPlanPersisted?: () => void;
|
|
11
|
-
prevOnSave?: (config: FloorMapViewConfig) => void;
|
|
12
|
-
onPersistError?: (err: unknown) => void;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* 将 `floorMap.onSave` 包装为:先持久化到远端,再 `setRemoteFloorPlanView(floorMapSavedConfigToRemotePatch)` 与用户 `prevOnSave`。
|
|
16
|
-
*/
|
|
17
|
-
export declare function wrapFloorMapOnSaveWithRemotePersist(params: WrapFloorMapOnSaveWithRemotePersistParams): (config: FloorMapViewConfig) => void;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { FloorMapViewConfig } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* 与 {@link useFloorMapEditState} 中 `useEffect` 逻辑一致:补全 `canvasUi`、空 `elementKinds` 时的默认调色板、`sceneElements`。
|
|
4
|
-
* 用于从上游 prop 得到「可与当前 draft 公平比较」的基准配置。
|
|
5
|
-
*/
|
|
6
|
-
export declare function normalizeFloorMapViewConfigFromProp(floorMapConfigProp: FloorMapViewConfig): FloorMapViewConfig;
|
|
7
|
-
/** 判断当前编辑草稿是否与基准配置一致(数组顺序无关) */
|
|
8
|
-
export declare function floorMapViewConfigsEqual(a: FloorMapViewConfig, b: FloorMapViewConfig): boolean;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 平面图/布局内容区尺寸计算:格子与像素单位、gap 解析、包围盒
|
|
3
|
-
*/
|
|
4
|
-
import type { FloorMapItemBase, FloorMapItemUnit } from '../types';
|
|
5
|
-
/** 默认每格像素 */
|
|
6
|
-
export declare const DEFAULT_CELL_SIZE = 64;
|
|
7
|
-
/** 默认 item 间距(像素) */
|
|
8
|
-
export declare const DEFAULT_ITEM_GAP = 8;
|
|
9
|
-
/**
|
|
10
|
-
* 将 mapLayer.gap 解析为像素数
|
|
11
|
-
*/
|
|
12
|
-
export declare function gapToPx(gap: number | string | undefined): number;
|
|
13
|
-
/**
|
|
14
|
-
* 根据 items 计算内容区像素宽高
|
|
15
|
-
* - cell:按格子数 + cellSize + itemGap 计算
|
|
16
|
-
* - pixel:按 item 的 x/y/width/height 像素取边界(仅右/下边界,用于非 floor map 或兼容)
|
|
17
|
-
*/
|
|
18
|
-
export declare function getContentSize<T extends FloorMapItemBase>(items: T[], cellSize: number, itemGap: number, itemUnit: FloorMapItemUnit): {
|
|
19
|
-
contentWidth: number;
|
|
20
|
-
contentHeight: number;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* pixel 模式下取 items 包围盒(含左/上),用于画布四周扩 padding 时的尺寸与偏移
|
|
24
|
-
*/
|
|
25
|
-
export declare function getPixelBoundingBox<T extends FloorMapItemBase>(items: T[], cellSize: number): {
|
|
26
|
-
minLeft: number;
|
|
27
|
-
minTop: number;
|
|
28
|
-
maxRight: number;
|
|
29
|
-
maxBottom: number;
|
|
30
|
-
} | null;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { FloorMapCanvas, FloorMapViewConfig } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* 为画布 Tab 合并展示用字段:
|
|
4
|
-
* - `tabBadge` 若在配置中已给出则原样使用(含 0);
|
|
5
|
-
* - 否则用当前 `sceneElements` 中属于该画布的数量,且仅在大于 0 时展示角标。
|
|
6
|
-
*/
|
|
7
|
-
export declare function mergeCanvasesForTabs(config: FloorMapViewConfig): FloorMapCanvas[];
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 吸附:将坐标或尺寸按 snapStep 取整;snapStep 为 0 不吸附
|
|
3
|
-
*/
|
|
4
|
-
export declare function snapValue(value: number, snapStep: number): number;
|
|
5
|
-
export declare function snapRect(x: number, y: number, width: number, height: number, snapStep: number): {
|
|
6
|
-
x: number;
|
|
7
|
-
y: number;
|
|
8
|
-
width: number;
|
|
9
|
-
height: number;
|
|
10
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface ApplicableProductDetails {
|
|
4
|
-
amount: string;
|
|
5
|
-
type: string;
|
|
6
|
-
resource_id: number;
|
|
7
|
-
title: string;
|
|
8
|
-
original_amount: string;
|
|
9
|
-
}
|
|
10
|
-
interface Discount {
|
|
11
|
-
id: number;
|
|
12
|
-
product_name: string;
|
|
13
|
-
encoded: string;
|
|
14
|
-
code: string;
|
|
15
|
-
tag: string;
|
|
16
|
-
expire_time?: string;
|
|
17
|
-
product_id: number;
|
|
18
|
-
relation_type: string;
|
|
19
|
-
par_value: string;
|
|
20
|
-
used_par_value: string;
|
|
21
|
-
limit_status: string;
|
|
22
|
-
limited_relation_product_data: any;
|
|
23
|
-
balance: string;
|
|
24
|
-
format_title: any;
|
|
25
|
-
product: any;
|
|
26
|
-
savedAmount: number;
|
|
27
|
-
isDisabled: boolean;
|
|
28
|
-
isSelected?: boolean;
|
|
29
|
-
isAvailable?: boolean;
|
|
30
|
-
isUsed?: boolean;
|
|
31
|
-
applicableProductIds?: number[];
|
|
32
|
-
applicableProductDetails: ApplicableProductDetails[];
|
|
33
|
-
appliedProductDetails: any[];
|
|
34
|
-
}
|
|
35
|
-
export interface PisellGoodPassCardProps {
|
|
36
|
-
/**数据源 */
|
|
37
|
-
dataSource: Array<Discount>;
|
|
38
|
-
/**事件 */
|
|
39
|
-
onChange?: (current: {
|
|
40
|
-
id: string | number;
|
|
41
|
-
isSelected: boolean;
|
|
42
|
-
}) => void;
|
|
43
|
-
/**样式 */
|
|
44
|
-
style: React.CSSProperties;
|
|
45
|
-
/**快捷展示排序 */
|
|
46
|
-
mixedSort?: (val: Discount[]) => Discount[];
|
|
47
|
-
isInModal: boolean;
|
|
48
|
-
}
|
|
49
|
-
declare const index: (props: PisellGoodPassCardProps) => JSX.Element;
|
|
50
|
-
export default index;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { PisellHierarchicalSummaryListProps } from './types';
|
|
3
|
-
import './PisellHierarchicalSummaryList.less';
|
|
4
|
-
/** 根节点类名,供上层用同一 DOM 包裹列表与其它区块时使用 */
|
|
5
|
-
export declare const PREFIX_CLS = "pisell-hierarchical-summary-list";
|
|
6
|
-
export declare const PisellHierarchicalSummaryList: React.FC<PisellHierarchicalSummaryListProps>;
|