@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,273 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/pisellTimeNavigator/PisellTimeNavigator.stories.tsx
|
|
30
|
+
var PisellTimeNavigator_stories_exports = {};
|
|
31
|
+
__export(PisellTimeNavigator_stories_exports, {
|
|
32
|
+
BusinessHours: () => BusinessHours,
|
|
33
|
+
BusinessHoursVertical: () => BusinessHoursVertical,
|
|
34
|
+
Controlled: () => Controlled,
|
|
35
|
+
ControlledVertical: () => ControlledVertical,
|
|
36
|
+
CursorMoves: () => CursorMoves,
|
|
37
|
+
CursorMovesVertical: () => CursorMovesVertical,
|
|
38
|
+
CustomRange: () => CustomRange,
|
|
39
|
+
CustomRangeVertical: () => CustomRangeVertical,
|
|
40
|
+
Default: () => Default,
|
|
41
|
+
DefaultVertical: () => DefaultVertical,
|
|
42
|
+
Inertia: () => Inertia,
|
|
43
|
+
InertiaVertical: () => InertiaVertical,
|
|
44
|
+
NoNowButton: () => NoNowButton,
|
|
45
|
+
NoNowButtonVertical: () => NoNowButtonVertical,
|
|
46
|
+
Realtime: () => Realtime,
|
|
47
|
+
RealtimeVertical: () => RealtimeVertical,
|
|
48
|
+
SnapToStep: () => SnapToStep,
|
|
49
|
+
SnapToStepVertical: () => SnapToStepVertical,
|
|
50
|
+
Step30: () => Step30,
|
|
51
|
+
Step30Vertical: () => Step30Vertical,
|
|
52
|
+
Uncontrolled: () => Uncontrolled,
|
|
53
|
+
UncontrolledVertical: () => UncontrolledVertical,
|
|
54
|
+
Vertical: () => Vertical,
|
|
55
|
+
default: () => PisellTimeNavigator_stories_default
|
|
56
|
+
});
|
|
57
|
+
module.exports = __toCommonJS(PisellTimeNavigator_stories_exports);
|
|
58
|
+
var import_react = __toESM(require("react"));
|
|
59
|
+
var import_PisellTimeNavigator = require("./PisellTimeNavigator");
|
|
60
|
+
var meta = {
|
|
61
|
+
title: "Data Entry/PisellTimeNavigator",
|
|
62
|
+
component: import_PisellTimeNavigator.PisellTimeNavigator,
|
|
63
|
+
tags: ["autodocs"],
|
|
64
|
+
argTypes: {
|
|
65
|
+
cursorMode: {
|
|
66
|
+
control: "radio",
|
|
67
|
+
options: ["axis-moves", "cursor-moves"],
|
|
68
|
+
description: "指示器/轴移动模式"
|
|
69
|
+
},
|
|
70
|
+
orientation: {
|
|
71
|
+
control: "radio",
|
|
72
|
+
options: ["horizontal", "vertical"],
|
|
73
|
+
description: "横向/竖向"
|
|
74
|
+
},
|
|
75
|
+
realtime: {
|
|
76
|
+
control: "boolean",
|
|
77
|
+
description: "是否实时跟随系统时间"
|
|
78
|
+
},
|
|
79
|
+
showNowButton: {
|
|
80
|
+
control: "boolean",
|
|
81
|
+
description: "是否显示 Now 按钮"
|
|
82
|
+
},
|
|
83
|
+
snapToStep: {
|
|
84
|
+
control: "boolean",
|
|
85
|
+
description: "是否吸附到刻度"
|
|
86
|
+
},
|
|
87
|
+
inertia: {
|
|
88
|
+
control: "boolean",
|
|
89
|
+
description: "是否开启惯性滚动"
|
|
90
|
+
},
|
|
91
|
+
locale: {
|
|
92
|
+
control: "select",
|
|
93
|
+
options: ["zh-cn", "en", "zh-hk"],
|
|
94
|
+
description: "语言"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
var PisellTimeNavigator_stories_default = meta;
|
|
99
|
+
var verticalDecorator = (Story) => /* @__PURE__ */ import_react.default.createElement("div", { style: { width: 54, height: 500 } }, /* @__PURE__ */ import_react.default.createElement(Story, null));
|
|
100
|
+
var Default = {
|
|
101
|
+
args: {}
|
|
102
|
+
};
|
|
103
|
+
var DefaultVertical = {
|
|
104
|
+
args: { orientation: "vertical" },
|
|
105
|
+
decorators: [verticalDecorator]
|
|
106
|
+
};
|
|
107
|
+
var Controlled = {
|
|
108
|
+
args: {
|
|
109
|
+
value: "12:00",
|
|
110
|
+
onChange: (v) => console.log("onChange", v == null ? void 0 : v.format("HH:mm"))
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
var ControlledVertical = {
|
|
114
|
+
args: {
|
|
115
|
+
orientation: "vertical",
|
|
116
|
+
value: "12:00",
|
|
117
|
+
onChange: (v) => console.log("onChange", v == null ? void 0 : v.format("HH:mm"))
|
|
118
|
+
},
|
|
119
|
+
decorators: [verticalDecorator]
|
|
120
|
+
};
|
|
121
|
+
var Uncontrolled = {
|
|
122
|
+
args: {
|
|
123
|
+
defaultValue: "14:30"
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
var UncontrolledVertical = {
|
|
127
|
+
args: {
|
|
128
|
+
orientation: "vertical",
|
|
129
|
+
defaultValue: "14:30"
|
|
130
|
+
},
|
|
131
|
+
decorators: [verticalDecorator]
|
|
132
|
+
};
|
|
133
|
+
var Vertical = {
|
|
134
|
+
args: {
|
|
135
|
+
orientation: "vertical",
|
|
136
|
+
defaultValue: "12:00"
|
|
137
|
+
},
|
|
138
|
+
decorators: [verticalDecorator]
|
|
139
|
+
};
|
|
140
|
+
var CursorMoves = {
|
|
141
|
+
args: {
|
|
142
|
+
cursorMode: "cursor-moves",
|
|
143
|
+
defaultValue: "10:00"
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
var CursorMovesVertical = {
|
|
147
|
+
args: {
|
|
148
|
+
orientation: "vertical",
|
|
149
|
+
cursorMode: "cursor-moves",
|
|
150
|
+
defaultValue: "10:00"
|
|
151
|
+
},
|
|
152
|
+
decorators: [verticalDecorator]
|
|
153
|
+
};
|
|
154
|
+
var BusinessHours = {
|
|
155
|
+
args: {
|
|
156
|
+
businessHours: { start: "10:00", end: "22:00" },
|
|
157
|
+
defaultValue: "14:00"
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
var BusinessHoursVertical = {
|
|
161
|
+
args: {
|
|
162
|
+
orientation: "vertical",
|
|
163
|
+
businessHours: { start: "10:00", end: "22:00" },
|
|
164
|
+
defaultValue: "14:00"
|
|
165
|
+
},
|
|
166
|
+
decorators: [verticalDecorator]
|
|
167
|
+
};
|
|
168
|
+
var CustomRange = {
|
|
169
|
+
args: {
|
|
170
|
+
range: { start: "08:00", end: "20:00" },
|
|
171
|
+
defaultValue: "12:00"
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
var CustomRangeVertical = {
|
|
175
|
+
args: {
|
|
176
|
+
orientation: "vertical",
|
|
177
|
+
range: { start: "08:00", end: "20:00" },
|
|
178
|
+
defaultValue: "12:00"
|
|
179
|
+
},
|
|
180
|
+
decorators: [verticalDecorator]
|
|
181
|
+
};
|
|
182
|
+
var Step30 = {
|
|
183
|
+
args: {
|
|
184
|
+
stepMinutes: 30,
|
|
185
|
+
defaultValue: "12:30"
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
var Step30Vertical = {
|
|
189
|
+
args: {
|
|
190
|
+
orientation: "vertical",
|
|
191
|
+
stepMinutes: 30,
|
|
192
|
+
defaultValue: "12:30"
|
|
193
|
+
},
|
|
194
|
+
decorators: [verticalDecorator]
|
|
195
|
+
};
|
|
196
|
+
var Inertia = {
|
|
197
|
+
args: {
|
|
198
|
+
inertia: true,
|
|
199
|
+
defaultValue: "12:00"
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
var InertiaVertical = {
|
|
203
|
+
args: {
|
|
204
|
+
orientation: "vertical",
|
|
205
|
+
inertia: true,
|
|
206
|
+
defaultValue: "12:00"
|
|
207
|
+
},
|
|
208
|
+
decorators: [verticalDecorator]
|
|
209
|
+
};
|
|
210
|
+
var SnapToStep = {
|
|
211
|
+
args: {
|
|
212
|
+
snapToStep: true,
|
|
213
|
+
defaultValue: "12:00"
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
var SnapToStepVertical = {
|
|
217
|
+
args: {
|
|
218
|
+
orientation: "vertical",
|
|
219
|
+
snapToStep: true,
|
|
220
|
+
defaultValue: "12:00"
|
|
221
|
+
},
|
|
222
|
+
decorators: [verticalDecorator]
|
|
223
|
+
};
|
|
224
|
+
var NoNowButton = {
|
|
225
|
+
args: {
|
|
226
|
+
showNowButton: false
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
var NoNowButtonVertical = {
|
|
230
|
+
args: {
|
|
231
|
+
orientation: "vertical",
|
|
232
|
+
showNowButton: false
|
|
233
|
+
},
|
|
234
|
+
decorators: [verticalDecorator]
|
|
235
|
+
};
|
|
236
|
+
var Realtime = {
|
|
237
|
+
args: {
|
|
238
|
+
realtime: true
|
|
239
|
+
}
|
|
240
|
+
};
|
|
241
|
+
var RealtimeVertical = {
|
|
242
|
+
args: {
|
|
243
|
+
orientation: "vertical",
|
|
244
|
+
realtime: true
|
|
245
|
+
},
|
|
246
|
+
decorators: [verticalDecorator]
|
|
247
|
+
};
|
|
248
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
249
|
+
0 && (module.exports = {
|
|
250
|
+
BusinessHours,
|
|
251
|
+
BusinessHoursVertical,
|
|
252
|
+
Controlled,
|
|
253
|
+
ControlledVertical,
|
|
254
|
+
CursorMoves,
|
|
255
|
+
CursorMovesVertical,
|
|
256
|
+
CustomRange,
|
|
257
|
+
CustomRangeVertical,
|
|
258
|
+
Default,
|
|
259
|
+
DefaultVertical,
|
|
260
|
+
Inertia,
|
|
261
|
+
InertiaVertical,
|
|
262
|
+
NoNowButton,
|
|
263
|
+
NoNowButtonVertical,
|
|
264
|
+
Realtime,
|
|
265
|
+
RealtimeVertical,
|
|
266
|
+
SnapToStep,
|
|
267
|
+
SnapToStepVertical,
|
|
268
|
+
Step30,
|
|
269
|
+
Step30Vertical,
|
|
270
|
+
Uncontrolled,
|
|
271
|
+
UncontrolledVertical,
|
|
272
|
+
Vertical
|
|
273
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface BackgroundLayerProps {
|
|
3
|
+
orientation: 'horizontal' | 'vertical';
|
|
4
|
+
/** 过去时间淡化色 */
|
|
5
|
+
pastTimeFade?: string;
|
|
6
|
+
/** 营业时间区间 [startPx, endPx],用于视觉高亮 */
|
|
7
|
+
businessHoursPx?: [number, number];
|
|
8
|
+
className?: string;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* 背景区间层:营业时间高亮、过去时间淡化等(当前时间渐变已拆为独立块,见 axis-wrap 内 .pisell-time-navigator-current-gradient)
|
|
13
|
+
*/
|
|
14
|
+
export declare function BackgroundLayer({ orientation, pastTimeFade, businessHoursPx, className, style, }: BackgroundLayerProps): JSX.Element;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/pisellTimeNavigator/components/BackgroundLayer.tsx
|
|
30
|
+
var BackgroundLayer_exports = {};
|
|
31
|
+
__export(BackgroundLayer_exports, {
|
|
32
|
+
BackgroundLayer: () => BackgroundLayer
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(BackgroundLayer_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_classnames = __toESM(require("classnames"));
|
|
37
|
+
function BackgroundLayer({
|
|
38
|
+
orientation,
|
|
39
|
+
pastTimeFade,
|
|
40
|
+
businessHoursPx,
|
|
41
|
+
className,
|
|
42
|
+
style
|
|
43
|
+
}) {
|
|
44
|
+
const isHorizontal = orientation === "horizontal";
|
|
45
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
46
|
+
"div",
|
|
47
|
+
{
|
|
48
|
+
className: (0, import_classnames.default)(
|
|
49
|
+
"pisell-time-navigator-background",
|
|
50
|
+
`pisell-time-navigator-background--${orientation}`,
|
|
51
|
+
className
|
|
52
|
+
),
|
|
53
|
+
style,
|
|
54
|
+
"aria-hidden": true
|
|
55
|
+
},
|
|
56
|
+
businessHoursPx != null && /* @__PURE__ */ import_react.default.createElement(
|
|
57
|
+
"div",
|
|
58
|
+
{
|
|
59
|
+
className: "pisell-time-navigator-background-business",
|
|
60
|
+
style: {
|
|
61
|
+
[isHorizontal ? "left" : "top"]: businessHoursPx[0],
|
|
62
|
+
[isHorizontal ? "width" : "height"]: Math.max(
|
|
63
|
+
0,
|
|
64
|
+
businessHoursPx[1] - businessHoursPx[0]
|
|
65
|
+
)
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
),
|
|
69
|
+
pastTimeFade && /* @__PURE__ */ import_react.default.createElement(
|
|
70
|
+
"div",
|
|
71
|
+
{
|
|
72
|
+
className: "pisell-time-navigator-background-past",
|
|
73
|
+
style: { background: pastTimeFade }
|
|
74
|
+
}
|
|
75
|
+
)
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
79
|
+
0 && (module.exports = {
|
|
80
|
+
BackgroundLayer
|
|
81
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Dayjs } from 'dayjs';
|
|
3
|
+
export interface CursorLayerProps {
|
|
4
|
+
orientation: 'horizontal' | 'vertical';
|
|
5
|
+
value: Dayjs | null;
|
|
6
|
+
timeFormat: string;
|
|
7
|
+
locale?: string;
|
|
8
|
+
isRealtime: boolean;
|
|
9
|
+
offsetPx: number;
|
|
10
|
+
/** axis-moves 时固定于视口中央,不应用 offsetPx */
|
|
11
|
+
fixedCenter?: boolean;
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* 时间指示器层:竖线/横线 + 时间气泡
|
|
17
|
+
* 对齐基准为内部的竖线/横线,不是整块(气泡)的边或中心。
|
|
18
|
+
* 横向:竖线 3px;竖向:横线 2px。Realtime 态 #FF692E,浏览态 #344054
|
|
19
|
+
*/
|
|
20
|
+
export declare function CursorLayer({ orientation, value, timeFormat, locale, isRealtime, offsetPx, fixedCenter, style, className, }: CursorLayerProps): JSX.Element | null;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/pisellTimeNavigator/components/CursorLayer.tsx
|
|
30
|
+
var CursorLayer_exports = {};
|
|
31
|
+
__export(CursorLayer_exports, {
|
|
32
|
+
CursorLayer: () => CursorLayer
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(CursorLayer_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_classnames = __toESM(require("classnames"));
|
|
37
|
+
var CURSOR_LINE_WIDTH_H = 3;
|
|
38
|
+
var CURSOR_LINE_HEIGHT_V = 2;
|
|
39
|
+
function CursorLayer({
|
|
40
|
+
orientation,
|
|
41
|
+
value,
|
|
42
|
+
timeFormat,
|
|
43
|
+
locale,
|
|
44
|
+
isRealtime,
|
|
45
|
+
offsetPx,
|
|
46
|
+
fixedCenter,
|
|
47
|
+
style,
|
|
48
|
+
className
|
|
49
|
+
}) {
|
|
50
|
+
if (value == null) return null;
|
|
51
|
+
const label = locale ? value.locale(locale).format(timeFormat) : value.format(timeFormat);
|
|
52
|
+
const isHorizontal = orientation === "horizontal";
|
|
53
|
+
const lineOffset = offsetPx - (isHorizontal ? CURSOR_LINE_WIDTH_H / 2 : CURSOR_LINE_HEIGHT_V / 2);
|
|
54
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
55
|
+
"div",
|
|
56
|
+
{
|
|
57
|
+
className: (0, import_classnames.default)(
|
|
58
|
+
"pisell-time-navigator-cursor",
|
|
59
|
+
`pisell-time-navigator-cursor--${orientation}`,
|
|
60
|
+
{ "pisell-time-navigator-cursor--realtime": isRealtime },
|
|
61
|
+
{ "pisell-time-navigator-cursor--fixed": fixedCenter },
|
|
62
|
+
className
|
|
63
|
+
),
|
|
64
|
+
style: fixedCenter ? style : { ...style, [isHorizontal ? "left" : "top"]: lineOffset },
|
|
65
|
+
"aria-hidden": true
|
|
66
|
+
},
|
|
67
|
+
/* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-time-navigator-cursor-line" }),
|
|
68
|
+
/* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-time-navigator-cursor-bubble" }, label)
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
72
|
+
0 && (module.exports = {
|
|
73
|
+
CursorLayer
|
|
74
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Dayjs } from 'dayjs';
|
|
3
|
+
export interface GestureLayerProps {
|
|
4
|
+
orientation: 'horizontal' | 'vertical';
|
|
5
|
+
cellSizePx: number;
|
|
6
|
+
/** 轴在滚动内容中的起始边距(左/上),用于把「滚动内容坐标」转为「轴内偏移」(与 dot 对齐) */
|
|
7
|
+
axisStartMarginPx: number;
|
|
8
|
+
offsetToTime: (offset: number) => Dayjs | null;
|
|
9
|
+
onSelectTime: (t: Dayjs) => void;
|
|
10
|
+
isInDisabledRanges: (t: Dayjs) => boolean;
|
|
11
|
+
snapToStep: boolean;
|
|
12
|
+
stepMinutes: number;
|
|
13
|
+
snapFn: (t: Dayjs) => Dayjs;
|
|
14
|
+
scrollPosition: {
|
|
15
|
+
scrollLeft: number;
|
|
16
|
+
scrollTop: number;
|
|
17
|
+
};
|
|
18
|
+
viewportSize: {
|
|
19
|
+
w: number;
|
|
20
|
+
h: number;
|
|
21
|
+
};
|
|
22
|
+
onPointerDown?: React.PointerEventHandler;
|
|
23
|
+
onPointerMove?: React.PointerEventHandler;
|
|
24
|
+
onPointerUp?: React.PointerEventHandler;
|
|
25
|
+
onPointerLeave?: React.PointerEventHandler;
|
|
26
|
+
children: React.ReactNode;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* 交互层:点击刻度跳转、键盘左右/上下 + 回车
|
|
30
|
+
*/
|
|
31
|
+
export declare function GestureLayer({ orientation, cellSizePx, axisStartMarginPx, offsetToTime, onSelectTime, isInDisabledRanges, snapToStep, stepMinutes, snapFn, scrollPosition, viewportSize, onPointerDown, onPointerMove, onPointerUp, onPointerLeave, children, }: GestureLayerProps): JSX.Element;
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/pisellTimeNavigator/components/GestureLayer.tsx
|
|
30
|
+
var GestureLayer_exports = {};
|
|
31
|
+
__export(GestureLayer_exports, {
|
|
32
|
+
GestureLayer: () => GestureLayer
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(GestureLayer_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
function GestureLayer({
|
|
37
|
+
orientation,
|
|
38
|
+
cellSizePx,
|
|
39
|
+
axisStartMarginPx,
|
|
40
|
+
offsetToTime,
|
|
41
|
+
onSelectTime,
|
|
42
|
+
isInDisabledRanges,
|
|
43
|
+
snapToStep,
|
|
44
|
+
stepMinutes,
|
|
45
|
+
snapFn,
|
|
46
|
+
scrollPosition,
|
|
47
|
+
viewportSize,
|
|
48
|
+
onPointerDown,
|
|
49
|
+
onPointerMove,
|
|
50
|
+
onPointerUp,
|
|
51
|
+
onPointerLeave,
|
|
52
|
+
children
|
|
53
|
+
}) {
|
|
54
|
+
const isHorizontal = orientation === "horizontal";
|
|
55
|
+
const handleClick = (0, import_react.useCallback)(
|
|
56
|
+
(e) => {
|
|
57
|
+
const viewport = e.currentTarget.parentElement;
|
|
58
|
+
if (!viewport) return;
|
|
59
|
+
const vRect = viewport.getBoundingClientRect();
|
|
60
|
+
const scroll = isHorizontal ? viewport.scrollLeft : viewport.scrollTop;
|
|
61
|
+
const scrollContentPos = isHorizontal ? scroll + (e.clientX - vRect.left) : scroll + (e.clientY - vRect.top);
|
|
62
|
+
const offset = Math.max(0, scrollContentPos - axisStartMarginPx);
|
|
63
|
+
const t = offsetToTime(offset);
|
|
64
|
+
if (t == null) return;
|
|
65
|
+
const candidate = snapToStep ? snapFn(t) : t;
|
|
66
|
+
if (isInDisabledRanges(candidate)) return;
|
|
67
|
+
onSelectTime(candidate);
|
|
68
|
+
},
|
|
69
|
+
[
|
|
70
|
+
isHorizontal,
|
|
71
|
+
axisStartMarginPx,
|
|
72
|
+
offsetToTime,
|
|
73
|
+
onSelectTime,
|
|
74
|
+
isInDisabledRanges,
|
|
75
|
+
snapToStep,
|
|
76
|
+
snapFn
|
|
77
|
+
]
|
|
78
|
+
);
|
|
79
|
+
const handleKeyDown = (0, import_react.useCallback)(
|
|
80
|
+
(e) => {
|
|
81
|
+
const scrollContentCenter = orientation === "horizontal" ? scrollPosition.scrollLeft + viewportSize.w / 2 : scrollPosition.scrollTop + viewportSize.h / 2;
|
|
82
|
+
const centerOffset = Math.max(0, scrollContentCenter - axisStartMarginPx);
|
|
83
|
+
const currentTime = offsetToTime(centerOffset);
|
|
84
|
+
if (currentTime == null) return;
|
|
85
|
+
if (e.key === "Enter") {
|
|
86
|
+
const candidate = snapToStep ? snapFn(currentTime) : currentTime;
|
|
87
|
+
if (!isInDisabledRanges(candidate)) onSelectTime(candidate);
|
|
88
|
+
e.preventDefault();
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
const step = stepMinutes * 60 * 1e3;
|
|
92
|
+
let next;
|
|
93
|
+
if (orientation === "horizontal") {
|
|
94
|
+
if (e.key === "ArrowLeft") next = currentTime.subtract(step, "ms");
|
|
95
|
+
else if (e.key === "ArrowRight") next = currentTime.add(step, "ms");
|
|
96
|
+
else return;
|
|
97
|
+
} else {
|
|
98
|
+
if (e.key === "ArrowUp") next = currentTime.subtract(step, "ms");
|
|
99
|
+
else if (e.key === "ArrowDown") next = currentTime.add(step, "ms");
|
|
100
|
+
else return;
|
|
101
|
+
}
|
|
102
|
+
e.preventDefault();
|
|
103
|
+
const snapped = snapToStep ? snapFn(next) : next;
|
|
104
|
+
if (!isInDisabledRanges(snapped)) onSelectTime(snapped);
|
|
105
|
+
},
|
|
106
|
+
[
|
|
107
|
+
orientation,
|
|
108
|
+
axisStartMarginPx,
|
|
109
|
+
offsetToTime,
|
|
110
|
+
onSelectTime,
|
|
111
|
+
isInDisabledRanges,
|
|
112
|
+
snapToStep,
|
|
113
|
+
snapFn,
|
|
114
|
+
stepMinutes,
|
|
115
|
+
scrollPosition.scrollLeft,
|
|
116
|
+
scrollPosition.scrollTop,
|
|
117
|
+
viewportSize.w,
|
|
118
|
+
viewportSize.h
|
|
119
|
+
]
|
|
120
|
+
);
|
|
121
|
+
const handlePointerDown = (0, import_react.useCallback)(
|
|
122
|
+
(e) => {
|
|
123
|
+
if (onPointerDown) {
|
|
124
|
+
e.currentTarget.setPointerCapture(e.pointerId);
|
|
125
|
+
onPointerDown(e);
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
[onPointerDown]
|
|
129
|
+
);
|
|
130
|
+
const handlePointerUp = (0, import_react.useCallback)(
|
|
131
|
+
(e) => {
|
|
132
|
+
if (onPointerUp) {
|
|
133
|
+
e.currentTarget.releasePointerCapture(e.pointerId);
|
|
134
|
+
onPointerUp(e);
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
[onPointerUp]
|
|
138
|
+
);
|
|
139
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
140
|
+
"div",
|
|
141
|
+
{
|
|
142
|
+
className: `pisell-time-navigator-gesture pisell-time-navigator-gesture--${orientation}`,
|
|
143
|
+
onClick: handleClick,
|
|
144
|
+
onKeyDown: handleKeyDown,
|
|
145
|
+
onPointerDown: handlePointerDown,
|
|
146
|
+
onPointerMove,
|
|
147
|
+
onPointerUp: handlePointerUp,
|
|
148
|
+
onPointerLeave,
|
|
149
|
+
role: "slider",
|
|
150
|
+
tabIndex: 0,
|
|
151
|
+
"aria-label": "Time"
|
|
152
|
+
},
|
|
153
|
+
children
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
157
|
+
0 && (module.exports = {
|
|
158
|
+
GestureLayer
|
|
159
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { CSSProperties } from 'react';
|
|
3
|
+
export interface NowButtonProps {
|
|
4
|
+
orientation: 'horizontal' | 'vertical';
|
|
5
|
+
onClick: () => void;
|
|
6
|
+
style?: CSSProperties;
|
|
7
|
+
className?: string;
|
|
8
|
+
renderCustom?: () => React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Now 按钮:固定入口,点击跳回当前时间并进入 Realtime
|
|
12
|
+
* 横向:右侧,左箭头;竖向:底部,上箭头
|
|
13
|
+
*/
|
|
14
|
+
export declare function NowButton({ orientation, onClick, style, className, renderCustom, }: NowButtonProps): JSX.Element;
|