@pisell/materials 1.0.1059 → 1.0.1062
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/README.md +285 -285
- 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/index.js +1 -1
- package/build/lowcode/meta.js +7 -7
- package/build/lowcode/preview.js +9 -9
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +27 -27
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +27 -27
- package/es/components/PisellLayouts/index.d.ts +2 -1
- package/es/components/PisellLayouts/index.js +17 -15
- package/es/components/cardMetricItem/index.js +2 -2
- package/es/components/pisellFilter/type.d.ts +4 -2
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +1 -1
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.js +474 -202
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.less +70 -0
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.d.ts +13 -0
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.js +469 -38
- package/es/components/pisellFloorMapLayout/components/CanvasTabs.d.ts +22 -0
- package/es/components/pisellFloorMapLayout/components/CanvasTabs.js +203 -0
- package/es/components/pisellFloorMapLayout/components/CanvasTabs.less +189 -0
- package/es/components/pisellFloorMapLayout/components/EditableItemLayer.d.ts +37 -0
- package/es/components/pisellFloorMapLayout/components/EditableItemLayer.js +341 -0
- package/es/components/pisellFloorMapLayout/components/EditableItemLayer.less +89 -0
- package/es/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +39 -0
- package/es/components/pisellFloorMapLayout/components/FigmaTableCard.js +432 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapDataForm.d.ts +17 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapDataForm.js +131 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapDataForm.less +7 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapEditPanel.d.ts +11 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapEditPanel.js +497 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapEditPanel.less +154 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapEditTopBar.d.ts +34 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapEditTopBar.js +130 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapEditTopBar.less +131 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +6 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapImageElement.js +69 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapToolbar.d.ts +35 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapToolbar.js +361 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapToolbar.less +237 -0
- package/es/components/pisellFloorMapLayout/components/ItemLayer.d.ts +7 -0
- package/es/components/pisellFloorMapLayout/components/ItemLayer.js +37 -11
- package/es/components/pisellFloorMapLayout/components/MapLayer.d.ts +4 -0
- package/es/components/pisellFloorMapLayout/components/MapLayer.js +11 -3
- package/es/components/pisellFloorMapLayout/components/ViewControls.js +2 -2
- package/es/components/pisellFloorMapLayout/components/ViewControls.less +3 -2
- package/es/components/pisellFloorMapLayout/components/ViewControlsWithZoom.d.ts +11 -0
- package/es/components/pisellFloorMapLayout/components/ViewControlsWithZoom.js +27 -0
- package/es/components/pisellFloorMapLayout/components/index.d.ts +14 -0
- package/es/components/pisellFloorMapLayout/components/index.js +8 -1
- package/es/components/pisellFloorMapLayout/context/FloorMapLayoutContext.d.ts +16 -0
- package/es/components/pisellFloorMapLayout/context/FloorMapLayoutContext.js +21 -0
- package/es/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.d.ts +5 -0
- package/es/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.js +28 -0
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +62 -0
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.js +438 -0
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapPaletteTouchDrag.d.ts +21 -0
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapPaletteTouchDrag.js +122 -0
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.d.ts +67 -0
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.js +322 -0
- package/es/components/pisellFloorMapLayout/index.d.ts +9 -2
- package/es/components/pisellFloorMapLayout/index.js +7 -2
- package/es/components/pisellFloorMapLayout/locales.d.ts +186 -0
- package/es/components/pisellFloorMapLayout/locales.js +185 -0
- package/es/components/pisellFloorMapLayout/types.d.ts +362 -1
- package/es/components/pisellFloorMapLayout/types.js +148 -1
- package/es/components/pisellFloorMapLayout/utils/floorMapCanvasDisplay.d.ts +20 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapCanvasDisplay.js +129 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapConfigMerge.d.ts +8 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapConfigMerge.js +87 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapDropUtils.d.ts +26 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapDropUtils.js +47 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.d.ts +11 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.js +69 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapFallbackRender.d.ts +11 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapFallbackRender.js +88 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapStageDefaults.d.ts +8 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapStageDefaults.js +8 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.d.ts +8 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.js +108 -0
- package/es/components/pisellFloorMapLayout/utils/layoutMeasurements.d.ts +30 -0
- package/es/components/pisellFloorMapLayout/utils/layoutMeasurements.js +125 -0
- package/es/components/pisellFloorMapLayout/utils/mergeCanvasesForTabs.d.ts +7 -0
- package/es/components/pisellFloorMapLayout/utils/mergeCanvasesForTabs.js +29 -0
- package/es/components/pisellFloorMapLayout/utils/snap.d.ts +10 -0
- package/es/components/pisellFloorMapLayout/utils/snap.js +21 -0
- package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.d.ts +6 -0
- package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.js +175 -0
- package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.less +129 -0
- package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.d.ts +10 -0
- package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.js +237 -0
- package/es/components/pisellHierarchicalSummaryList/components/Row.d.ts +35 -0
- package/es/components/pisellHierarchicalSummaryList/components/Row.js +313 -0
- package/es/components/pisellHierarchicalSummaryList/components/index.d.ts +1 -0
- package/es/components/pisellHierarchicalSummaryList/components/index.js +1 -0
- package/es/components/pisellHierarchicalSummaryList/hooks/index.d.ts +2 -0
- package/es/components/pisellHierarchicalSummaryList/hooks/index.js +1 -0
- package/es/components/pisellHierarchicalSummaryList/hooks/useExpandedKeys.d.ts +15 -0
- package/es/components/pisellHierarchicalSummaryList/hooks/useExpandedKeys.js +34 -0
- package/es/components/pisellHierarchicalSummaryList/index.d.ts +5 -0
- package/es/components/pisellHierarchicalSummaryList/index.js +5 -0
- package/es/components/pisellHierarchicalSummaryList/types.d.ts +248 -0
- package/es/components/pisellHierarchicalSummaryList/types.js +1 -0
- package/es/components/pisellLookup/PisellLookup.js +82 -82
- package/es/components/pisellMultipleSelect/PisellMultipleSelect.stories.js +34 -34
- package/es/components/pisellRecordBoard/PisellRecordBoard.d.ts +2 -1
- package/es/components/pisellRecordBoard/PisellRecordBoard.js +95 -18
- package/es/components/pisellRecordBoard/PisellRecordBoard.stories.d.ts +4 -0
- package/es/components/pisellRecordBoard/PisellRecordBoard.stories.js +1315 -383
- package/es/components/pisellRecordBoard/index.d.ts +7 -2
- package/es/components/pisellRecordBoard/index.js +2 -1
- package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +1 -3
- package/es/components/pisellRecordBoard/shellFrame/FloorMap.d.ts +14 -0
- package/es/components/pisellRecordBoard/shellFrame/FloorMap.js +15 -0
- package/es/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +16 -0
- package/es/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.js +11 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/ToolBarFilter.less +47 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.js +57 -10
- package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.js +3 -3
- package/es/components/pisellRecordBoard/shellFrame/index.d.ts +4 -10
- package/es/components/pisellRecordBoard/shellFrame/index.js +101 -19
- package/es/components/pisellRecordBoard/types.d.ts +62 -2
- package/es/components/pisellRecordBoard/utils/partitionShellFrameChildren.d.ts +15 -0
- package/es/components/pisellRecordBoard/utils/partitionShellFrameChildren.js +57 -0
- package/es/components/pisellReservationSchedule/PisellReservationSchedule.d.ts +10 -0
- package/es/components/pisellReservationSchedule/PisellReservationSchedule.js +156 -0
- package/es/components/pisellReservationSchedule/PisellReservationSchedule.less +88 -0
- package/es/components/pisellReservationSchedule/PisellReservationSchedule.stories.d.ts +12 -0
- package/es/components/pisellReservationSchedule/PisellReservationSchedule.stories.js +105 -0
- package/es/components/pisellReservationSchedule/index.d.ts +2 -0
- package/es/components/pisellReservationSchedule/index.js +1 -0
- package/es/components/pisellReservationSchedule/locales.d.ts +25 -0
- package/es/components/pisellReservationSchedule/locales.js +24 -0
- package/es/components/pisellReservationSchedule/types.d.ts +42 -0
- package/es/components/pisellReservationSchedule/types.js +1 -0
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts +10 -0
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.js +91 -0
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.less +49 -0
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.stories.d.ts +16 -0
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.stories.js +197 -0
- package/es/components/pisellReservationScheduleBand/index.d.ts +2 -0
- package/es/components/pisellReservationScheduleBand/index.js +1 -0
- package/es/components/pisellReservationScheduleBand/types.d.ts +45 -0
- package/es/components/pisellReservationScheduleBand/types.js +1 -0
- package/es/components/pisellRow/index.js +7 -7
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +10 -0
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.js +609 -0
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.less +412 -0
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.stories.d.ts +79 -0
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.stories.js +290 -0
- package/es/components/pisellTimeNavigator/components/BackgroundLayer.d.ts +14 -0
- package/es/components/pisellTimeNavigator/components/BackgroundLayer.js +30 -0
- package/es/components/pisellTimeNavigator/components/CursorLayer.d.ts +20 -0
- package/es/components/pisellTimeNavigator/components/CursorLayer.js +46 -0
- package/es/components/pisellTimeNavigator/components/GestureLayer.d.ts +31 -0
- package/es/components/pisellTimeNavigator/components/GestureLayer.js +82 -0
- package/es/components/pisellTimeNavigator/components/NowButton.d.ts +14 -0
- package/es/components/pisellTimeNavigator/components/NowButton.js +38 -0
- package/es/components/pisellTimeNavigator/components/ScaleLayer.d.ts +17 -0
- package/es/components/pisellTimeNavigator/components/ScaleLayer.js +51 -0
- package/es/components/pisellTimeNavigator/components/index.d.ts +5 -0
- package/es/components/pisellTimeNavigator/components/index.js +5 -0
- package/es/components/pisellTimeNavigator/hooks/index.d.ts +5 -0
- package/es/components/pisellTimeNavigator/hooks/index.js +3 -0
- package/es/components/pisellTimeNavigator/hooks/useDragInertia.d.ts +14 -0
- package/es/components/pisellTimeNavigator/hooks/useDragInertia.js +109 -0
- package/es/components/pisellTimeNavigator/hooks/useRealtime.d.ts +5 -0
- package/es/components/pisellTimeNavigator/hooks/useRealtime.js +16 -0
- package/es/components/pisellTimeNavigator/hooks/useTimeAxis.d.ts +27 -0
- package/es/components/pisellTimeNavigator/hooks/useTimeAxis.js +76 -0
- package/es/components/pisellTimeNavigator/index.d.ts +4 -0
- package/es/components/pisellTimeNavigator/index.js +3 -0
- package/es/components/pisellTimeNavigator/locales.d.ts +22 -0
- package/es/components/pisellTimeNavigator/locales.js +21 -0
- package/es/components/pisellTimeNavigator/types.d.ts +149 -0
- package/es/components/pisellTimeNavigator/types.js +1 -0
- package/es/components/pisellTimeNavigator/utils/index.d.ts +30 -0
- package/es/components/pisellTimeNavigator/utils/index.js +116 -0
- package/es/index.d.ts +15 -5
- package/es/index.js +7 -1
- package/es/locales/en-US.d.ts +2 -0
- package/es/locales/en-US.js +6 -4
- package/es/locales/zh-CN.d.ts +2 -0
- package/es/locales/zh-CN.js +6 -4
- package/es/locales/zh-TW.d.ts +2 -0
- package/es/locales/zh-TW.js +6 -4
- package/lib/components/PisellLayouts/index.d.ts +2 -1
- package/lib/components/PisellLayouts/index.js +13 -1
- package/lib/components/pisellFilter/type.d.ts +4 -2
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +1 -1
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.js +566 -181
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.less +70 -0
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.d.ts +13 -0
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.js +682 -84
- package/lib/components/pisellFloorMapLayout/components/CanvasTabs.d.ts +22 -0
- package/lib/components/pisellFloorMapLayout/components/CanvasTabs.js +237 -0
- package/lib/components/pisellFloorMapLayout/components/CanvasTabs.less +189 -0
- package/lib/components/pisellFloorMapLayout/components/EditableItemLayer.d.ts +37 -0
- package/lib/components/pisellFloorMapLayout/components/EditableItemLayer.js +358 -0
- package/lib/components/pisellFloorMapLayout/components/EditableItemLayer.less +89 -0
- package/lib/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +39 -0
- package/lib/components/pisellFloorMapLayout/components/FigmaTableCard.js +482 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapDataForm.d.ts +17 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapDataForm.js +117 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapDataForm.less +7 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditPanel.d.ts +11 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditPanel.js +508 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditPanel.less +154 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditTopBar.d.ts +34 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditTopBar.js +188 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditTopBar.less +131 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +6 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapImageElement.js +94 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapToolbar.d.ts +35 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapToolbar.js +333 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapToolbar.less +237 -0
- package/lib/components/pisellFloorMapLayout/components/ItemLayer.d.ts +7 -0
- package/lib/components/pisellFloorMapLayout/components/ItemLayer.js +26 -5
- package/lib/components/pisellFloorMapLayout/components/MapLayer.d.ts +4 -0
- package/lib/components/pisellFloorMapLayout/components/MapLayer.js +7 -2
- package/lib/components/pisellFloorMapLayout/components/ViewControls.less +3 -2
- package/lib/components/pisellFloorMapLayout/components/ViewControlsWithZoom.d.ts +11 -0
- package/lib/components/pisellFloorMapLayout/components/ViewControlsWithZoom.js +63 -0
- package/lib/components/pisellFloorMapLayout/components/index.d.ts +14 -0
- package/lib/components/pisellFloorMapLayout/components/index.js +23 -2
- package/lib/components/pisellFloorMapLayout/context/FloorMapLayoutContext.d.ts +16 -0
- package/lib/components/pisellFloorMapLayout/context/FloorMapLayoutContext.js +54 -0
- package/lib/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.d.ts +5 -0
- package/lib/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.js +47 -0
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +62 -0
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.js +431 -0
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapPaletteTouchDrag.d.ts +21 -0
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapPaletteTouchDrag.js +146 -0
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.d.ts +67 -0
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.js +309 -0
- package/lib/components/pisellFloorMapLayout/index.d.ts +9 -2
- package/lib/components/pisellFloorMapLayout/index.js +31 -2
- package/lib/components/pisellFloorMapLayout/locales.d.ts +186 -0
- package/lib/components/pisellFloorMapLayout/locales.js +206 -0
- package/lib/components/pisellFloorMapLayout/types.d.ts +362 -1
- package/lib/components/pisellFloorMapLayout/types.js +15 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapCanvasDisplay.d.ts +20 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapCanvasDisplay.js +126 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapConfigMerge.d.ts +8 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapConfigMerge.js +66 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapDropUtils.d.ts +26 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapDropUtils.js +61 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.d.ts +11 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.js +70 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapFallbackRender.d.ts +11 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapFallbackRender.js +135 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapStageDefaults.d.ts +8 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapStageDefaults.js +33 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.d.ts +8 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.js +128 -0
- package/lib/components/pisellFloorMapLayout/utils/layoutMeasurements.d.ts +30 -0
- package/lib/components/pisellFloorMapLayout/utils/layoutMeasurements.js +96 -0
- package/lib/components/pisellFloorMapLayout/utils/mergeCanvasesForTabs.d.ts +7 -0
- package/lib/components/pisellFloorMapLayout/utils/mergeCanvasesForTabs.js +41 -0
- package/lib/components/pisellFloorMapLayout/utils/snap.d.ts +10 -0
- package/lib/components/pisellFloorMapLayout/utils/snap.js +43 -0
- package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.d.ts +6 -0
- package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.js +179 -0
- package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.less +129 -0
- package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.d.ts +10 -0
- package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.js +218 -0
- package/lib/components/pisellHierarchicalSummaryList/components/Row.d.ts +35 -0
- package/lib/components/pisellHierarchicalSummaryList/components/Row.js +343 -0
- package/lib/components/pisellHierarchicalSummaryList/components/index.d.ts +1 -0
- package/lib/components/pisellHierarchicalSummaryList/components/index.js +29 -0
- package/lib/components/pisellHierarchicalSummaryList/hooks/index.d.ts +2 -0
- package/lib/components/pisellHierarchicalSummaryList/hooks/index.js +29 -0
- package/lib/components/pisellHierarchicalSummaryList/hooks/useExpandedKeys.d.ts +15 -0
- package/lib/components/pisellHierarchicalSummaryList/hooks/useExpandedKeys.js +51 -0
- package/lib/components/pisellHierarchicalSummaryList/index.d.ts +5 -0
- package/lib/components/pisellHierarchicalSummaryList/index.js +31 -0
- package/lib/components/pisellHierarchicalSummaryList/types.d.ts +248 -0
- package/lib/components/pisellHierarchicalSummaryList/types.js +17 -0
- package/lib/components/pisellRecordBoard/PisellRecordBoard.d.ts +2 -1
- package/lib/components/pisellRecordBoard/PisellRecordBoard.js +82 -8
- package/lib/components/pisellRecordBoard/PisellRecordBoard.stories.d.ts +4 -0
- package/lib/components/pisellRecordBoard/PisellRecordBoard.stories.js +915 -25
- package/lib/components/pisellRecordBoard/index.d.ts +7 -2
- package/lib/components/pisellRecordBoard/index.js +1 -0
- package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +8 -2
- package/lib/components/pisellRecordBoard/shellFrame/FloorMap.d.ts +14 -0
- package/lib/components/pisellRecordBoard/shellFrame/FloorMap.js +27 -0
- package/lib/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +16 -0
- package/lib/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.js +45 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/ToolBarFilter.less +47 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.js +48 -4
- package/lib/components/pisellRecordBoard/shellFrame/index.d.ts +4 -10
- package/lib/components/pisellRecordBoard/shellFrame/index.js +88 -6
- package/lib/components/pisellRecordBoard/types.d.ts +62 -2
- package/lib/components/pisellRecordBoard/utils/partitionShellFrameChildren.d.ts +15 -0
- package/lib/components/pisellRecordBoard/utils/partitionShellFrameChildren.js +88 -0
- package/lib/components/pisellReservationSchedule/PisellReservationSchedule.d.ts +10 -0
- package/lib/components/pisellReservationSchedule/PisellReservationSchedule.js +200 -0
- package/lib/components/pisellReservationSchedule/PisellReservationSchedule.less +88 -0
- package/lib/components/pisellReservationSchedule/PisellReservationSchedule.stories.d.ts +12 -0
- package/lib/components/pisellReservationSchedule/PisellReservationSchedule.stories.js +116 -0
- package/lib/components/pisellReservationSchedule/index.d.ts +2 -0
- package/lib/components/pisellReservationSchedule/index.js +29 -0
- package/lib/components/pisellReservationSchedule/locales.d.ts +25 -0
- package/lib/components/pisellReservationSchedule/locales.js +47 -0
- package/lib/components/pisellReservationSchedule/types.d.ts +42 -0
- package/lib/components/pisellReservationSchedule/types.js +17 -0
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts +10 -0
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.js +127 -0
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.less +49 -0
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.stories.d.ts +16 -0
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.stories.js +181 -0
- package/lib/components/pisellReservationScheduleBand/index.d.ts +2 -0
- package/lib/components/pisellReservationScheduleBand/index.js +29 -0
- package/lib/components/pisellReservationScheduleBand/types.d.ts +45 -0
- package/lib/components/pisellReservationScheduleBand/types.js +17 -0
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +10 -0
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.js +716 -0
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.less +412 -0
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.stories.d.ts +79 -0
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.stories.js +273 -0
- package/lib/components/pisellTimeNavigator/components/BackgroundLayer.d.ts +14 -0
- package/lib/components/pisellTimeNavigator/components/BackgroundLayer.js +81 -0
- package/lib/components/pisellTimeNavigator/components/CursorLayer.d.ts +20 -0
- package/lib/components/pisellTimeNavigator/components/CursorLayer.js +74 -0
- package/lib/components/pisellTimeNavigator/components/GestureLayer.d.ts +31 -0
- package/lib/components/pisellTimeNavigator/components/GestureLayer.js +159 -0
- package/lib/components/pisellTimeNavigator/components/NowButton.d.ts +14 -0
- package/lib/components/pisellTimeNavigator/components/NowButton.js +81 -0
- package/lib/components/pisellTimeNavigator/components/ScaleLayer.d.ts +17 -0
- package/lib/components/pisellTimeNavigator/components/ScaleLayer.js +95 -0
- package/lib/components/pisellTimeNavigator/components/index.d.ts +5 -0
- package/lib/components/pisellTimeNavigator/components/index.js +41 -0
- package/lib/components/pisellTimeNavigator/hooks/index.d.ts +5 -0
- package/lib/components/pisellTimeNavigator/hooks/index.js +35 -0
- package/lib/components/pisellTimeNavigator/hooks/useDragInertia.d.ts +14 -0
- package/lib/components/pisellTimeNavigator/hooks/useDragInertia.js +136 -0
- package/lib/components/pisellTimeNavigator/hooks/useRealtime.d.ts +5 -0
- package/lib/components/pisellTimeNavigator/hooks/useRealtime.js +49 -0
- package/lib/components/pisellTimeNavigator/hooks/useTimeAxis.d.ts +27 -0
- package/lib/components/pisellTimeNavigator/hooks/useTimeAxis.js +81 -0
- package/lib/components/pisellTimeNavigator/index.d.ts +4 -0
- package/lib/components/pisellTimeNavigator/index.js +42 -0
- package/lib/components/pisellTimeNavigator/locales.d.ts +22 -0
- package/lib/components/pisellTimeNavigator/locales.js +41 -0
- package/lib/components/pisellTimeNavigator/types.d.ts +149 -0
- package/lib/components/pisellTimeNavigator/types.js +17 -0
- package/lib/components/pisellTimeNavigator/utils/index.d.ts +30 -0
- package/lib/components/pisellTimeNavigator/utils/index.js +107 -0
- package/lib/index.d.ts +15 -5
- package/lib/index.js +35 -0
- package/lib/locales/en-US.d.ts +2 -0
- package/lib/locales/en-US.js +2 -0
- package/lib/locales/zh-CN.d.ts +2 -0
- package/lib/locales/zh-CN.js +2 -0
- package/lib/locales/zh-TW.d.ts +2 -0
- package/lib/locales/zh-TW.js +2 -0
- package/lowcode/floor-map-layout-provider/meta.ts +65 -0
- package/lowcode/pisell-floor-map-layout/meta.ts +3894 -1
- package/lowcode/pisell-hierarchical-summary-list/meta.ts +244 -0
- package/lowcode/pisell-reservation-schedule/index.ts +3 -0
- package/lowcode/pisell-reservation-schedule/meta.ts +69 -0
- package/lowcode/pisell-reservation-schedule/snippets.ts +1 -0
- package/lowcode/pisell-reservation-schedule-band/index.ts +3 -0
- package/lowcode/pisell-reservation-schedule-band/meta.ts +96 -0
- package/lowcode/pisell-reservation-schedule-band/snippets.ts +1 -0
- package/lowcode/pisell-time-navigator/index.ts +3 -0
- package/lowcode/pisell-time-navigator/meta.ts +298 -0
- package/lowcode/pisell-time-navigator/snippets.ts +1 -0
- package/lowcode/render-figma-style-round-table-card/meta.ts +589 -0
- package/lowcode/render-figma-style-table-card/meta.ts +589 -0
- package/package.json +3 -3
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import RecordBoardFloorMap from "../shellFrame/FloorMap";
|
|
3
|
+
|
|
4
|
+
/** 与 shellFrame/FloorMap 上定义的 displayName 一致,用于从 ShellFrame children 中识别平面图槽 */
|
|
5
|
+
export var RECORD_BOARD_FLOOR_MAP_DISPLAY_NAME = 'RecordBoard.FloorMap';
|
|
6
|
+
|
|
7
|
+
/** displayName 在部分构建下可能被摇掉;与 RecordBoardFloorMap 引用一致时仍可识别,工具栏才出「表格/平面图」切换 */
|
|
8
|
+
function isRecordBoardFloorMapElementType(type) {
|
|
9
|
+
if (type === RecordBoardFloorMap) return true;
|
|
10
|
+
var dn = type === null || type === void 0 ? void 0 : type.displayName;
|
|
11
|
+
return dn === RECORD_BOARD_FLOOR_MAP_DISPLAY_NAME;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* 将 ShellFrame 的 children 拆成:供表格区渲染的子树 + 可选的 FloorMap 透传 props。
|
|
16
|
+
* 支持 Fragment 嵌套;多个 FloorMap 时以最后一个为准。
|
|
17
|
+
*/
|
|
18
|
+
export function partitionShellFrameChildren(children) {
|
|
19
|
+
var foundFloorMap = false;
|
|
20
|
+
var floorProps;
|
|
21
|
+
var gridChunks = [];
|
|
22
|
+
var walk = function walk(node) {
|
|
23
|
+
React.Children.forEach(node, function (child) {
|
|
24
|
+
if (child == null || child === false) return;
|
|
25
|
+
if (! /*#__PURE__*/React.isValidElement(child)) {
|
|
26
|
+
gridChunks.push(child);
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
if (child.type === React.Fragment) {
|
|
30
|
+
walk(child.props.children);
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
if (isRecordBoardFloorMapElementType(child.type)) {
|
|
34
|
+
foundFloorMap = true;
|
|
35
|
+
floorProps = child.props;
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
gridChunks.push(child);
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
walk(children);
|
|
42
|
+
var hasGridContent = gridChunks.length > 0;
|
|
43
|
+
var gridChildren;
|
|
44
|
+
if (!hasGridContent) {
|
|
45
|
+
gridChildren = null;
|
|
46
|
+
} else if (gridChunks.length === 1) {
|
|
47
|
+
gridChildren = gridChunks[0];
|
|
48
|
+
} else {
|
|
49
|
+
gridChildren = /*#__PURE__*/React.createElement(React.Fragment, null, gridChunks);
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
gridChildren: gridChildren,
|
|
53
|
+
hasFloorMapChild: foundFloorMap,
|
|
54
|
+
floorMapPropsFromChild: floorProps,
|
|
55
|
+
hasGridContent: hasGridContent
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { PisellReservationScheduleProps } from './types';
|
|
3
|
+
import './PisellReservationSchedule.less';
|
|
4
|
+
/**
|
|
5
|
+
* 营业日导航条:上一日、中间日期文案、下一日(深色条样式,适配预约顶栏)
|
|
6
|
+
*/
|
|
7
|
+
export declare function PisellReservationSchedule(props: PisellReservationScheduleProps): JSX.Element;
|
|
8
|
+
export declare namespace PisellReservationSchedule {
|
|
9
|
+
var displayName: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
import React, { useMemo, useCallback, useState } from 'react';
|
|
8
|
+
import dayjs from 'dayjs';
|
|
9
|
+
import classNames from 'classnames';
|
|
10
|
+
import { Modal } from 'antd';
|
|
11
|
+
import { DateCalendar } from '@pisell/date-picker';
|
|
12
|
+
import ChevronLeft from '@pisell/icon/es/ChevronLeft';
|
|
13
|
+
import ChevronRight from '@pisell/icon/es/ChevronRight';
|
|
14
|
+
import { locales } from '@pisell/utils';
|
|
15
|
+
import useEngineContext from "../../hooks/useEngineContext";
|
|
16
|
+
import pisellReservationScheduleLocales from "./locales";
|
|
17
|
+
import "./PisellReservationSchedule.less";
|
|
18
|
+
var I18N_TODAY = 'pisell-reservation-schedule.today';
|
|
19
|
+
var I18N_PREV = 'pisell-reservation-schedule.prev';
|
|
20
|
+
var I18N_NEXT = 'pisell-reservation-schedule.next';
|
|
21
|
+
var I18N_PICK_DATE = 'pisell-reservation-schedule.pick-date';
|
|
22
|
+
var I18N_PICK_DATE_TITLE = 'pisell-reservation-schedule.pick-date-title';
|
|
23
|
+
function parseDay(input, fallback) {
|
|
24
|
+
if (input == null) return fallback.startOf('day');
|
|
25
|
+
var d = dayjs(input);
|
|
26
|
+
return (d.isValid() ? d : fallback).startOf('day');
|
|
27
|
+
}
|
|
28
|
+
function toDayjsLocale(engineLocale) {
|
|
29
|
+
if (!engineLocale || engineLocale === 'en') return 'en';
|
|
30
|
+
if (engineLocale === 'zh-HK') return 'zh-hk';
|
|
31
|
+
return 'zh-cn';
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* 营业日导航条:上一日、中间日期文案、下一日(深色条样式,适配预约顶栏)
|
|
36
|
+
*/
|
|
37
|
+
export function PisellReservationSchedule(props) {
|
|
38
|
+
var _context$engine;
|
|
39
|
+
var valueProp = props.value,
|
|
40
|
+
onChange = props.onChange,
|
|
41
|
+
defaultValue = props.defaultValue,
|
|
42
|
+
minDateProp = props.minDate,
|
|
43
|
+
maxDateProp = props.maxDate,
|
|
44
|
+
_props$navigationLock = props.navigationLocked,
|
|
45
|
+
navigationLocked = _props$navigationLock === void 0 ? false : _props$navigationLock,
|
|
46
|
+
className = props.className,
|
|
47
|
+
style = props.style;
|
|
48
|
+
var context = useEngineContext();
|
|
49
|
+
var engineLocale = (context === null || context === void 0 || (_context$engine = context.engine) === null || _context$engine === void 0 || (_context$engine = _context$engine.props) === null || _context$engine === void 0 ? void 0 : _context$engine.locale) || 'en';
|
|
50
|
+
locales.init(pisellReservationScheduleLocales, engineLocale);
|
|
51
|
+
var today = useMemo(function () {
|
|
52
|
+
return dayjs().startOf('day');
|
|
53
|
+
}, []);
|
|
54
|
+
var isControlled = valueProp !== undefined;
|
|
55
|
+
var _useState = useState(function () {
|
|
56
|
+
return parseDay(valueProp !== null && valueProp !== void 0 ? valueProp : defaultValue, today);
|
|
57
|
+
}),
|
|
58
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
59
|
+
internal = _useState2[0],
|
|
60
|
+
setInternal = _useState2[1];
|
|
61
|
+
var value = isControlled ? parseDay(valueProp, today) : internal;
|
|
62
|
+
var minDate = useMemo(function () {
|
|
63
|
+
return minDateProp != null ? parseDay(minDateProp, today) : undefined;
|
|
64
|
+
}, [minDateProp, today]);
|
|
65
|
+
var maxDate = useMemo(function () {
|
|
66
|
+
return maxDateProp != null ? parseDay(maxDateProp, today) : undefined;
|
|
67
|
+
}, [maxDateProp, today]);
|
|
68
|
+
var emit = useCallback(function (next) {
|
|
69
|
+
var d = next.startOf('day');
|
|
70
|
+
if (minDate && d.isBefore(minDate)) d = minDate;
|
|
71
|
+
if (maxDate && d.isAfter(maxDate)) d = maxDate;
|
|
72
|
+
if (!isControlled) setInternal(d);
|
|
73
|
+
onChange === null || onChange === void 0 || onChange(d);
|
|
74
|
+
}, [isControlled, onChange, minDate, maxDate]);
|
|
75
|
+
var prevDisabled = navigationLocked || (minDate ? value.isSame(minDate, 'day') : false);
|
|
76
|
+
var nextDisabled = navigationLocked || (maxDate ? value.isSame(maxDate, 'day') : false);
|
|
77
|
+
var _useState3 = useState(false),
|
|
78
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
79
|
+
calendarOpen = _useState4[0],
|
|
80
|
+
setCalendarOpen = _useState4[1];
|
|
81
|
+
var centerLabel = useMemo(function () {
|
|
82
|
+
var djLoc = toDayjsLocale(engineLocale);
|
|
83
|
+
var dl = value.locale(djLoc);
|
|
84
|
+
var isToday = value.isSame(today, 'day');
|
|
85
|
+
var todayText = locales.getText(I18N_TODAY);
|
|
86
|
+
var dateStr = djLoc === 'en' ? dl.format('MMM D') : dl.format('M月D日');
|
|
87
|
+
var weekStr = dl.format('ddd');
|
|
88
|
+
var parts = [];
|
|
89
|
+
if (isToday && todayText) parts.push(todayText);
|
|
90
|
+
parts.push(dateStr);
|
|
91
|
+
parts.push(weekStr);
|
|
92
|
+
return parts.join(djLoc === 'en' ? ' · ' : ' · ');
|
|
93
|
+
}, [value, today, engineLocale]);
|
|
94
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
95
|
+
className: classNames('pisell-reservation-schedule', className),
|
|
96
|
+
style: style
|
|
97
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
98
|
+
className: "pisell-reservation-schedule-inner"
|
|
99
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
100
|
+
type: "button",
|
|
101
|
+
className: "pisell-reservation-schedule-btn",
|
|
102
|
+
"aria-label": locales.getText(I18N_PREV),
|
|
103
|
+
disabled: prevDisabled,
|
|
104
|
+
onClick: function onClick() {
|
|
105
|
+
if (navigationLocked) return;
|
|
106
|
+
emit(value.subtract(1, 'day'));
|
|
107
|
+
}
|
|
108
|
+
}, /*#__PURE__*/React.createElement(ChevronLeft, {
|
|
109
|
+
className: "pisell-reservation-schedule-btn-icon"
|
|
110
|
+
})), navigationLocked ? /*#__PURE__*/React.createElement("span", {
|
|
111
|
+
className: "pisell-reservation-schedule-label pisell-reservation-schedule-label--static",
|
|
112
|
+
"aria-label": centerLabel
|
|
113
|
+
}, centerLabel) : /*#__PURE__*/React.createElement("button", {
|
|
114
|
+
type: "button",
|
|
115
|
+
className: "pisell-reservation-schedule-label pisell-reservation-schedule-label-trigger",
|
|
116
|
+
"aria-label": locales.getText(I18N_PICK_DATE),
|
|
117
|
+
"aria-haspopup": "dialog",
|
|
118
|
+
"aria-expanded": calendarOpen,
|
|
119
|
+
onClick: function onClick() {
|
|
120
|
+
return setCalendarOpen(true);
|
|
121
|
+
}
|
|
122
|
+
}, centerLabel), /*#__PURE__*/React.createElement("button", {
|
|
123
|
+
type: "button",
|
|
124
|
+
className: "pisell-reservation-schedule-btn",
|
|
125
|
+
"aria-label": locales.getText(I18N_NEXT),
|
|
126
|
+
disabled: nextDisabled,
|
|
127
|
+
onClick: function onClick() {
|
|
128
|
+
if (navigationLocked) return;
|
|
129
|
+
emit(value.add(1, 'day'));
|
|
130
|
+
}
|
|
131
|
+
}, /*#__PURE__*/React.createElement(ChevronRight, {
|
|
132
|
+
className: "pisell-reservation-schedule-btn-icon"
|
|
133
|
+
}))), /*#__PURE__*/React.createElement(Modal, {
|
|
134
|
+
title: locales.getText(I18N_PICK_DATE_TITLE),
|
|
135
|
+
open: !navigationLocked && calendarOpen,
|
|
136
|
+
onCancel: function onCancel() {
|
|
137
|
+
return setCalendarOpen(false);
|
|
138
|
+
},
|
|
139
|
+
footer: null,
|
|
140
|
+
width: "auto",
|
|
141
|
+
centered: true,
|
|
142
|
+
destroyOnClose: true,
|
|
143
|
+
wrapClassName: "pisell-reservation-schedule-date-modal"
|
|
144
|
+
}, /*#__PURE__*/React.createElement(DateCalendar, {
|
|
145
|
+
value: value,
|
|
146
|
+
minDate: minDate,
|
|
147
|
+
maxDate: maxDate,
|
|
148
|
+
onChange: function onChange(d) {
|
|
149
|
+
if (d) {
|
|
150
|
+
emit(dayjs(d));
|
|
151
|
+
setCalendarOpen(false);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
})));
|
|
155
|
+
}
|
|
156
|
+
PisellReservationSchedule.displayName = 'PisellReservationSchedule';
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
.pisell-reservation-schedule {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
width: 100%;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.pisell-reservation-schedule-inner {
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
gap: 4px;
|
|
12
|
+
max-width: 100%;
|
|
13
|
+
padding: 6px 10px;
|
|
14
|
+
border-radius: 8px;
|
|
15
|
+
background: rgba(255, 255, 255, 0.1);
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.pisell-reservation-schedule-btn {
|
|
20
|
+
display: inline-flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
width: 32px;
|
|
24
|
+
height: 32px;
|
|
25
|
+
padding: 0;
|
|
26
|
+
margin: 0;
|
|
27
|
+
border: none;
|
|
28
|
+
border-radius: 8px;
|
|
29
|
+
background: rgba(255, 255, 255, 0.08);
|
|
30
|
+
color: rgba(255, 255, 255, 0.85);
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
flex-shrink: 0;
|
|
33
|
+
|
|
34
|
+
&:hover:not(:disabled) {
|
|
35
|
+
background: rgba(255, 255, 255, 0.14);
|
|
36
|
+
color: #fff;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&:disabled {
|
|
40
|
+
opacity: 0.35;
|
|
41
|
+
cursor: not-allowed;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.pisell-reservation-schedule-btn-icon {
|
|
46
|
+
width: 16px;
|
|
47
|
+
height: 16px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.pisell-reservation-schedule-label {
|
|
51
|
+
flex: 1;
|
|
52
|
+
min-width: 0;
|
|
53
|
+
padding: 0 12px;
|
|
54
|
+
font-size: 15px;
|
|
55
|
+
font-weight: 500;
|
|
56
|
+
line-height: 1.35;
|
|
57
|
+
color: rgba(255, 255, 255, 0.92);
|
|
58
|
+
text-align: center;
|
|
59
|
+
white-space: nowrap;
|
|
60
|
+
overflow: hidden;
|
|
61
|
+
text-overflow: ellipsis;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.pisell-reservation-schedule-label--static {
|
|
65
|
+
cursor: default;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.pisell-reservation-schedule-label-trigger {
|
|
69
|
+
margin: 0;
|
|
70
|
+
border: none;
|
|
71
|
+
background: transparent;
|
|
72
|
+
cursor: pointer;
|
|
73
|
+
font-size: inherit;
|
|
74
|
+
font-weight: inherit;
|
|
75
|
+
line-height: inherit;
|
|
76
|
+
color: rgba(255, 255, 255, 0.92);
|
|
77
|
+
width: 100%;
|
|
78
|
+
|
|
79
|
+
&:hover {
|
|
80
|
+
color: #fff;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&:focus-visible {
|
|
84
|
+
outline: 2px solid rgba(255, 255, 255, 0.45);
|
|
85
|
+
outline-offset: 2px;
|
|
86
|
+
border-radius: 4px;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { PisellReservationSchedule } from './PisellReservationSchedule';
|
|
3
|
+
/**
|
|
4
|
+
* PisellReservationSchedule:预约营业日导航(上一天 / 日期文案 / 下一天)。
|
|
5
|
+
* 多语言与日期格式依赖 LowCode 引擎 locale。详见组件目录下 docs/PisellReservationSchedule.md。
|
|
6
|
+
*/
|
|
7
|
+
declare const meta: Meta<typeof PisellReservationSchedule>;
|
|
8
|
+
export default meta;
|
|
9
|
+
declare type Story = StoryObj<typeof PisellReservationSchedule>;
|
|
10
|
+
export declare const Default: Story;
|
|
11
|
+
export declare const WithMinMax: Story;
|
|
12
|
+
export declare const Controlled: Story;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
import React, { useState } from 'react';
|
|
8
|
+
import dayjs from 'dayjs';
|
|
9
|
+
import { PisellReservationSchedule } from "./PisellReservationSchedule";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* PisellReservationSchedule:预约营业日导航(上一天 / 日期文案 / 下一天)。
|
|
13
|
+
* 多语言与日期格式依赖 LowCode 引擎 locale。详见组件目录下 docs/PisellReservationSchedule.md。
|
|
14
|
+
*/
|
|
15
|
+
var meta = {
|
|
16
|
+
title: 'Data Entry/PisellReservationSchedule',
|
|
17
|
+
component: PisellReservationSchedule,
|
|
18
|
+
tags: ['autodocs'],
|
|
19
|
+
parameters: {
|
|
20
|
+
layout: 'padded',
|
|
21
|
+
docs: {
|
|
22
|
+
description: {
|
|
23
|
+
component: '深色圆角营业日条:左右切换日历日,中间展示「今天(若当日)· 日期 · 星期」。可与 PisellTimeNavigator 组合为 PisellReservationScheduleBand。支持受控 `value` / `onChange(dayjs)`,以及 `minDate` / `maxDate`。'
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
argTypes: {
|
|
28
|
+
value: {
|
|
29
|
+
description: '当前选中日(受控),dayjs 或可解析字符串',
|
|
30
|
+
control: 'text'
|
|
31
|
+
},
|
|
32
|
+
defaultValue: {
|
|
33
|
+
description: '非受控初始日',
|
|
34
|
+
control: 'text'
|
|
35
|
+
},
|
|
36
|
+
minDate: {
|
|
37
|
+
description: '不可早于该日(含)',
|
|
38
|
+
control: 'text'
|
|
39
|
+
},
|
|
40
|
+
maxDate: {
|
|
41
|
+
description: '不可晚于该日(含)',
|
|
42
|
+
control: 'text'
|
|
43
|
+
},
|
|
44
|
+
onChange: {
|
|
45
|
+
action: 'onChange',
|
|
46
|
+
description: '选中日变更,参数为 Dayjs(当日 0 点)'
|
|
47
|
+
},
|
|
48
|
+
className: {
|
|
49
|
+
control: 'text'
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
export default meta;
|
|
54
|
+
export var Default = {
|
|
55
|
+
args: {
|
|
56
|
+
defaultValue: dayjs().format('YYYY-MM-DD')
|
|
57
|
+
},
|
|
58
|
+
decorators: [function (StoryComp) {
|
|
59
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
60
|
+
style: {
|
|
61
|
+
maxWidth: 440
|
|
62
|
+
}
|
|
63
|
+
}, /*#__PURE__*/React.createElement(StoryComp, null));
|
|
64
|
+
}]
|
|
65
|
+
};
|
|
66
|
+
export var WithMinMax = {
|
|
67
|
+
args: {
|
|
68
|
+
defaultValue: dayjs().format('YYYY-MM-DD'),
|
|
69
|
+
minDate: dayjs().startOf('day'),
|
|
70
|
+
maxDate: dayjs().add(14, 'day').endOf('day')
|
|
71
|
+
},
|
|
72
|
+
decorators: [function (StoryComp) {
|
|
73
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
74
|
+
style: {
|
|
75
|
+
maxWidth: 440
|
|
76
|
+
}
|
|
77
|
+
}, /*#__PURE__*/React.createElement(StoryComp, null));
|
|
78
|
+
}]
|
|
79
|
+
};
|
|
80
|
+
export var Controlled = {
|
|
81
|
+
render: function ControlledRender() {
|
|
82
|
+
var _useState = useState(dayjs().startOf('day')),
|
|
83
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
84
|
+
value = _useState2[0],
|
|
85
|
+
setValue = _useState2[1];
|
|
86
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
87
|
+
style: {
|
|
88
|
+
maxWidth: 440
|
|
89
|
+
}
|
|
90
|
+
}, /*#__PURE__*/React.createElement(PisellReservationSchedule, {
|
|
91
|
+
value: value,
|
|
92
|
+
onChange: function onChange(d) {
|
|
93
|
+
setValue(d);
|
|
94
|
+
// eslint-disable-next-line no-console
|
|
95
|
+
console.log('onChange', d.format('YYYY-MM-DD'));
|
|
96
|
+
}
|
|
97
|
+
}), /*#__PURE__*/React.createElement("p", {
|
|
98
|
+
style: {
|
|
99
|
+
marginTop: 12,
|
|
100
|
+
fontSize: 12,
|
|
101
|
+
color: '#666'
|
|
102
|
+
}
|
|
103
|
+
}, "\u5F53\u524D\uFF1A", value.format('YYYY-MM-DD dddd')));
|
|
104
|
+
}
|
|
105
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PisellReservationSchedule } from "./PisellReservationSchedule";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** PisellReservationSchedule 多语言;使用前 locales.init 合并 */
|
|
2
|
+
declare const _default: {
|
|
3
|
+
en: {
|
|
4
|
+
'pisell-reservation-schedule.today': string;
|
|
5
|
+
'pisell-reservation-schedule.prev': string;
|
|
6
|
+
'pisell-reservation-schedule.next': string;
|
|
7
|
+
'pisell-reservation-schedule.pick-date': string;
|
|
8
|
+
'pisell-reservation-schedule.pick-date-title': string;
|
|
9
|
+
};
|
|
10
|
+
'zh-CN': {
|
|
11
|
+
'pisell-reservation-schedule.today': string;
|
|
12
|
+
'pisell-reservation-schedule.prev': string;
|
|
13
|
+
'pisell-reservation-schedule.next': string;
|
|
14
|
+
'pisell-reservation-schedule.pick-date': string;
|
|
15
|
+
'pisell-reservation-schedule.pick-date-title': string;
|
|
16
|
+
};
|
|
17
|
+
'zh-HK': {
|
|
18
|
+
'pisell-reservation-schedule.today': string;
|
|
19
|
+
'pisell-reservation-schedule.prev': string;
|
|
20
|
+
'pisell-reservation-schedule.next': string;
|
|
21
|
+
'pisell-reservation-schedule.pick-date': string;
|
|
22
|
+
'pisell-reservation-schedule.pick-date-title': string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** PisellReservationSchedule 多语言;使用前 locales.init 合并 */
|
|
2
|
+
export default {
|
|
3
|
+
en: {
|
|
4
|
+
'pisell-reservation-schedule.today': 'Today',
|
|
5
|
+
'pisell-reservation-schedule.prev': 'Previous day',
|
|
6
|
+
'pisell-reservation-schedule.next': 'Next day',
|
|
7
|
+
'pisell-reservation-schedule.pick-date': 'Pick a date',
|
|
8
|
+
'pisell-reservation-schedule.pick-date-title': 'Pick a date'
|
|
9
|
+
},
|
|
10
|
+
'zh-CN': {
|
|
11
|
+
'pisell-reservation-schedule.today': '今天',
|
|
12
|
+
'pisell-reservation-schedule.prev': '上一天',
|
|
13
|
+
'pisell-reservation-schedule.next': '下一天',
|
|
14
|
+
'pisell-reservation-schedule.pick-date': '选择日期',
|
|
15
|
+
'pisell-reservation-schedule.pick-date-title': '选择日期'
|
|
16
|
+
},
|
|
17
|
+
'zh-HK': {
|
|
18
|
+
'pisell-reservation-schedule.today': '今天',
|
|
19
|
+
'pisell-reservation-schedule.prev': '上一日',
|
|
20
|
+
'pisell-reservation-schedule.next': '下一日',
|
|
21
|
+
'pisell-reservation-schedule.pick-date': '選擇日期',
|
|
22
|
+
'pisell-reservation-schedule.pick-date-title': '選擇日期'
|
|
23
|
+
}
|
|
24
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
import type { Dayjs } from 'dayjs';
|
|
3
|
+
/** 与 PisellTimeNavigator 一致:dayjs 或可解析字符串 */
|
|
4
|
+
export declare type ReservationScheduleValue = Dayjs | string | null | undefined;
|
|
5
|
+
/**
|
|
6
|
+
* PisellReservationSchedule:营业日切换条(上一日 / 文案 / 下一日)
|
|
7
|
+
*/
|
|
8
|
+
export interface PisellReservationScheduleProps {
|
|
9
|
+
/**
|
|
10
|
+
* 当前选中日(受控),日历日语义,建议使用 startOf('day') 对齐
|
|
11
|
+
*/
|
|
12
|
+
value?: ReservationScheduleValue;
|
|
13
|
+
/**
|
|
14
|
+
* 选中日变更
|
|
15
|
+
*/
|
|
16
|
+
onChange?: (date: Dayjs) => void;
|
|
17
|
+
/**
|
|
18
|
+
* 非受控初始日
|
|
19
|
+
*/
|
|
20
|
+
defaultValue?: ReservationScheduleValue;
|
|
21
|
+
/**
|
|
22
|
+
* 不可早于该日(含)
|
|
23
|
+
*/
|
|
24
|
+
minDate?: ReservationScheduleValue;
|
|
25
|
+
/**
|
|
26
|
+
* 不可晚于该日(含)
|
|
27
|
+
*/
|
|
28
|
+
maxDate?: ReservationScheduleValue;
|
|
29
|
+
/**
|
|
30
|
+
* 自定义类名
|
|
31
|
+
*/
|
|
32
|
+
className?: string;
|
|
33
|
+
/**
|
|
34
|
+
* 根节点样式
|
|
35
|
+
*/
|
|
36
|
+
style?: CSSProperties;
|
|
37
|
+
/**
|
|
38
|
+
* 为 true 时禁用上一日/下一日、日期点选(弹日历);用于「跟随当前时刻」等只读日期条
|
|
39
|
+
* @default false
|
|
40
|
+
*/
|
|
41
|
+
navigationLocked?: boolean;
|
|
42
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { PisellReservationScheduleBandProps } from './types';
|
|
3
|
+
import './PisellReservationScheduleBand.less';
|
|
4
|
+
/**
|
|
5
|
+
* 预约顶栏组合:营业日切换 + 锚定到选中日的时间导航轴
|
|
6
|
+
*/
|
|
7
|
+
export declare function PisellReservationScheduleBand(props: PisellReservationScheduleBandProps): JSX.Element;
|
|
8
|
+
export declare namespace PisellReservationScheduleBand {
|
|
9
|
+
var displayName: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
6
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
7
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8
|
+
import React, { useState, useCallback } from 'react';
|
|
9
|
+
import dayjs from 'dayjs';
|
|
10
|
+
import classNames from 'classnames';
|
|
11
|
+
import { PisellReservationSchedule } from "../pisellReservationSchedule";
|
|
12
|
+
import { PisellTimeNavigator } from "../pisellTimeNavigator";
|
|
13
|
+
import "./PisellReservationScheduleBand.less";
|
|
14
|
+
function startOfDay(d) {
|
|
15
|
+
return d.startOf('day');
|
|
16
|
+
}
|
|
17
|
+
function withTimeOnDate(dateDay, timeSource) {
|
|
18
|
+
return startOfDay(dateDay).hour(timeSource.hour()).minute(timeSource.minute()).second(0).millisecond(0);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* 预约顶栏组合:营业日切换 + 锚定到选中日的时间导航轴
|
|
23
|
+
*/
|
|
24
|
+
export function PisellReservationScheduleBand(props) {
|
|
25
|
+
var valueProp = props.value,
|
|
26
|
+
onChange = props.onChange,
|
|
27
|
+
defaultValue = props.defaultValue,
|
|
28
|
+
scheduleProps = props.scheduleProps,
|
|
29
|
+
timeNavigatorProps = props.timeNavigatorProps,
|
|
30
|
+
scheduleStartSlot = props.scheduleStartSlot,
|
|
31
|
+
scheduleEndSlot = props.scheduleEndSlot,
|
|
32
|
+
className = props.className,
|
|
33
|
+
style = props.style;
|
|
34
|
+
var isControlled = valueProp !== undefined;
|
|
35
|
+
var _useState = useState(function () {
|
|
36
|
+
var _defaultValue$date, _defaultValue$at;
|
|
37
|
+
var d = (_defaultValue$date = defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.date) !== null && _defaultValue$date !== void 0 ? _defaultValue$date : dayjs().startOf('day');
|
|
38
|
+
var atSrc = (_defaultValue$at = defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.at) !== null && _defaultValue$at !== void 0 ? _defaultValue$at : dayjs();
|
|
39
|
+
return {
|
|
40
|
+
date: startOfDay(dayjs(d)),
|
|
41
|
+
at: withTimeOnDate(dayjs(d), dayjs(atSrc))
|
|
42
|
+
};
|
|
43
|
+
}),
|
|
44
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
45
|
+
internal = _useState2[0],
|
|
46
|
+
setInternal = _useState2[1];
|
|
47
|
+
var effective = isControlled ? valueProp : internal;
|
|
48
|
+
var emit = useCallback(function (next) {
|
|
49
|
+
/** at 保留时间轴返回的绝对时刻(跨日营业时可能为锚定日的次日) */
|
|
50
|
+
var normalized = {
|
|
51
|
+
date: startOfDay(next.date),
|
|
52
|
+
at: next.at
|
|
53
|
+
};
|
|
54
|
+
if (!isControlled) setInternal(normalized);
|
|
55
|
+
onChange === null || onChange === void 0 || onChange(normalized);
|
|
56
|
+
}, [isControlled, onChange]);
|
|
57
|
+
var handleDateChange = useCallback(function (d) {
|
|
58
|
+
emit({
|
|
59
|
+
date: startOfDay(d),
|
|
60
|
+
at: withTimeOnDate(d, effective.at)
|
|
61
|
+
});
|
|
62
|
+
}, [emit, effective.at]);
|
|
63
|
+
var handleTimeChange = useCallback(function (t) {
|
|
64
|
+
emit({
|
|
65
|
+
date: startOfDay(effective.date),
|
|
66
|
+
at: t
|
|
67
|
+
});
|
|
68
|
+
}, [emit, effective.date]);
|
|
69
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
70
|
+
className: classNames('pisell-reservation-schedule-band', className),
|
|
71
|
+
style: style
|
|
72
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
73
|
+
className: "pisell-reservation-schedule-band-schedule-row"
|
|
74
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
75
|
+
className: "pisell-reservation-schedule-band-slot-start"
|
|
76
|
+
}, scheduleStartSlot), /*#__PURE__*/React.createElement("div", {
|
|
77
|
+
className: "pisell-reservation-schedule-band-schedule"
|
|
78
|
+
}, /*#__PURE__*/React.createElement(PisellReservationSchedule, _extends({
|
|
79
|
+
value: effective.date,
|
|
80
|
+
onChange: handleDateChange
|
|
81
|
+
}, scheduleProps))), /*#__PURE__*/React.createElement("div", {
|
|
82
|
+
className: "pisell-reservation-schedule-band-slot-end"
|
|
83
|
+
}, scheduleEndSlot)), /*#__PURE__*/React.createElement("div", {
|
|
84
|
+
className: "pisell-reservation-schedule-band-navigator"
|
|
85
|
+
}, /*#__PURE__*/React.createElement(PisellTimeNavigator, _extends({
|
|
86
|
+
referenceDate: effective.date,
|
|
87
|
+
value: effective.at,
|
|
88
|
+
onChange: handleTimeChange
|
|
89
|
+
}, timeNavigatorProps))));
|
|
90
|
+
}
|
|
91
|
+
PisellReservationScheduleBand.displayName = 'PisellReservationScheduleBand';
|