@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
|
@@ -13,10 +13,10 @@ import PisellMultipleSelect from "./PisellMultipleSelect";
|
|
|
13
13
|
import { useState } from 'react';
|
|
14
14
|
import { Form } from 'antd';
|
|
15
15
|
|
|
16
|
-
/**
|
|
17
|
-
* PisellMultipleSelect 组件 Storybook
|
|
18
|
-
*
|
|
19
|
-
* 用于展示和测试组件的各种状态和配置
|
|
16
|
+
/**
|
|
17
|
+
* PisellMultipleSelect 组件 Storybook
|
|
18
|
+
*
|
|
19
|
+
* 用于展示和测试组件的各种状态和配置
|
|
20
20
|
*/
|
|
21
21
|
var meta = {
|
|
22
22
|
title: '表单/表单组件/PisellMultipleSelect',
|
|
@@ -132,8 +132,8 @@ var skillOptions = [{
|
|
|
132
132
|
color: '#007396'
|
|
133
133
|
}];
|
|
134
134
|
|
|
135
|
-
/**
|
|
136
|
-
* 基础示例
|
|
135
|
+
/**
|
|
136
|
+
* 基础示例
|
|
137
137
|
*/
|
|
138
138
|
export var Basic = {
|
|
139
139
|
args: {
|
|
@@ -154,8 +154,8 @@ export var Basic = {
|
|
|
154
154
|
}
|
|
155
155
|
};
|
|
156
156
|
|
|
157
|
-
/**
|
|
158
|
-
* 带标签
|
|
157
|
+
/**
|
|
158
|
+
* 带标签
|
|
159
159
|
*/
|
|
160
160
|
export var WithLabel = {
|
|
161
161
|
args: {
|
|
@@ -178,8 +178,8 @@ export var WithLabel = {
|
|
|
178
178
|
}
|
|
179
179
|
};
|
|
180
180
|
|
|
181
|
-
/**
|
|
182
|
-
* 标签聚合功能
|
|
181
|
+
/**
|
|
182
|
+
* 标签聚合功能
|
|
183
183
|
*/
|
|
184
184
|
export var TagAggregation = {
|
|
185
185
|
args: {
|
|
@@ -209,8 +209,8 @@ export var TagAggregation = {
|
|
|
209
209
|
}
|
|
210
210
|
};
|
|
211
211
|
|
|
212
|
-
/**
|
|
213
|
-
* 最大可选数量限制
|
|
212
|
+
/**
|
|
213
|
+
* 最大可选数量限制
|
|
214
214
|
*/
|
|
215
215
|
export var WithMaxCount = {
|
|
216
216
|
args: {
|
|
@@ -233,8 +233,8 @@ export var WithMaxCount = {
|
|
|
233
233
|
}
|
|
234
234
|
};
|
|
235
235
|
|
|
236
|
-
/**
|
|
237
|
-
* 带搜索功能
|
|
236
|
+
/**
|
|
237
|
+
* 带搜索功能
|
|
238
238
|
*/
|
|
239
239
|
export var WithSearch = {
|
|
240
240
|
args: {
|
|
@@ -260,8 +260,8 @@ export var WithSearch = {
|
|
|
260
260
|
}
|
|
261
261
|
};
|
|
262
262
|
|
|
263
|
-
/**
|
|
264
|
-
* 带清空按钮
|
|
263
|
+
/**
|
|
264
|
+
* 带清空按钮
|
|
265
265
|
*/
|
|
266
266
|
export var WithClear = {
|
|
267
267
|
args: {
|
|
@@ -284,8 +284,8 @@ export var WithClear = {
|
|
|
284
284
|
}
|
|
285
285
|
};
|
|
286
286
|
|
|
287
|
-
/**
|
|
288
|
-
* 禁用态
|
|
287
|
+
/**
|
|
288
|
+
* 禁用态
|
|
289
289
|
*/
|
|
290
290
|
export var Disabled = {
|
|
291
291
|
args: {
|
|
@@ -296,8 +296,8 @@ export var Disabled = {
|
|
|
296
296
|
}
|
|
297
297
|
};
|
|
298
298
|
|
|
299
|
-
/**
|
|
300
|
-
* 只读态
|
|
299
|
+
/**
|
|
300
|
+
* 只读态
|
|
301
301
|
*/
|
|
302
302
|
export var ReadOnly = {
|
|
303
303
|
args: {
|
|
@@ -308,8 +308,8 @@ export var ReadOnly = {
|
|
|
308
308
|
}
|
|
309
309
|
};
|
|
310
310
|
|
|
311
|
-
/**
|
|
312
|
-
* 只读态 - 标签聚合
|
|
311
|
+
/**
|
|
312
|
+
* 只读态 - 标签聚合
|
|
313
313
|
*/
|
|
314
314
|
export var ReadOnlyWithAggregation = {
|
|
315
315
|
args: {
|
|
@@ -321,8 +321,8 @@ export var ReadOnlyWithAggregation = {
|
|
|
321
321
|
}
|
|
322
322
|
};
|
|
323
323
|
|
|
324
|
-
/**
|
|
325
|
-
* 只读态 - 空值
|
|
324
|
+
/**
|
|
325
|
+
* 只读态 - 空值
|
|
326
326
|
*/
|
|
327
327
|
export var ReadOnlyEmpty = {
|
|
328
328
|
args: {
|
|
@@ -333,8 +333,8 @@ export var ReadOnlyEmpty = {
|
|
|
333
333
|
}
|
|
334
334
|
};
|
|
335
335
|
|
|
336
|
-
/**
|
|
337
|
-
* 错误状态
|
|
336
|
+
/**
|
|
337
|
+
* 错误状态
|
|
338
338
|
*/
|
|
339
339
|
export var WithError = {
|
|
340
340
|
args: {
|
|
@@ -359,8 +359,8 @@ export var WithError = {
|
|
|
359
359
|
}
|
|
360
360
|
};
|
|
361
361
|
|
|
362
|
-
/**
|
|
363
|
-
* 不同尺寸
|
|
362
|
+
/**
|
|
363
|
+
* 不同尺寸
|
|
364
364
|
*/
|
|
365
365
|
export var Sizes = {
|
|
366
366
|
render: function render() {
|
|
@@ -404,8 +404,8 @@ export var Sizes = {
|
|
|
404
404
|
}
|
|
405
405
|
};
|
|
406
406
|
|
|
407
|
-
/**
|
|
408
|
-
* 表单场景
|
|
407
|
+
/**
|
|
408
|
+
* 表单场景
|
|
409
409
|
*/
|
|
410
410
|
export var InForm = {
|
|
411
411
|
render: function render() {
|
|
@@ -446,8 +446,8 @@ export var InForm = {
|
|
|
446
446
|
}
|
|
447
447
|
};
|
|
448
448
|
|
|
449
|
-
/**
|
|
450
|
-
* 回调事件演示
|
|
449
|
+
/**
|
|
450
|
+
* 回调事件演示
|
|
451
451
|
*/
|
|
452
452
|
export var WithCallbacks = {
|
|
453
453
|
render: function render() {
|
|
@@ -517,8 +517,8 @@ export var WithCallbacks = {
|
|
|
517
517
|
}
|
|
518
518
|
};
|
|
519
519
|
|
|
520
|
-
/**
|
|
521
|
-
* 所有状态组合
|
|
520
|
+
/**
|
|
521
|
+
* 所有状态组合
|
|
522
522
|
*/
|
|
523
523
|
export var AllStates = {
|
|
524
524
|
render: function render() {
|
|
@@ -2,7 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import type { RecordBoardProps } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* RecordBoard 容器:提供统一的 data / pagination / search 上下文。
|
|
5
|
-
*
|
|
5
|
+
* 打散 props:列表/分页/搜索/多选、grid/toolBar/…;可选根级 **floorMap**(兼容透传)。
|
|
6
|
+
* 平面图推荐在 ShellFrame 内使用 **PisellRecordBoard.FloorMap** 声明,与根级 `floorMap` 合并(子优先)。
|
|
6
7
|
*/
|
|
7
8
|
declare const PisellRecordBoard: React.FC<RecordBoardProps>;
|
|
8
9
|
export default PisellRecordBoard;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["children", "layoutType", "rowKey", "data", "loading", "total", "pagination", "onPageChange", "searchParams", "onSearch", "onReset"];
|
|
1
|
+
var _excluded = ["children", "layoutType", "rowKey", "data", "dataSources", "gridDataSourceKey", "loading", "total", "pagination", "onPageChange", "searchParams", "onSearch", "onReset", "floorMap", "floorMapLayoutContext", "defaultBodyView", "bodyViewStorageKey", "floorMapLayoutRef", "className", "style"];
|
|
2
2
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
3
3
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
4
4
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -25,6 +25,16 @@ var defaultPagination = {
|
|
|
25
25
|
pageNumber: 1,
|
|
26
26
|
pageSize: 50
|
|
27
27
|
};
|
|
28
|
+
function readBodyViewFromStorage(key, fallback) {
|
|
29
|
+
if (typeof window === 'undefined' || !key) return fallback;
|
|
30
|
+
try {
|
|
31
|
+
var raw = localStorage.getItem(key);
|
|
32
|
+
if (raw === 'grid' || raw === 'floorMap') return raw;
|
|
33
|
+
} catch (_unused) {
|
|
34
|
+
/* ignore quota / private mode */
|
|
35
|
+
}
|
|
36
|
+
return fallback;
|
|
37
|
+
}
|
|
28
38
|
|
|
29
39
|
/**
|
|
30
40
|
* 从打散 props 合并出 childComponentProps(供 context 使用)。
|
|
@@ -69,13 +79,22 @@ function getDefaultRecordBoardContext(layoutType, selection, rowKey) {
|
|
|
69
79
|
scrollAreaHeight: null,
|
|
70
80
|
setScrollAreaHeight: undefined,
|
|
71
81
|
filterResetKey: undefined,
|
|
72
|
-
setFilterResetKey: undefined
|
|
82
|
+
setFilterResetKey: undefined,
|
|
83
|
+
bodyView: 'grid',
|
|
84
|
+
setBodyView: function setBodyView() {},
|
|
85
|
+
floorMapProps: undefined,
|
|
86
|
+
floorMapLayoutContext: undefined,
|
|
87
|
+
defaultBodyView: undefined,
|
|
88
|
+
floorMapLayoutRef: undefined,
|
|
89
|
+
dataSources: undefined,
|
|
90
|
+
gridDataSourceKey: undefined
|
|
73
91
|
};
|
|
74
92
|
}
|
|
75
93
|
|
|
76
94
|
/**
|
|
77
95
|
* RecordBoard 容器:提供统一的 data / pagination / search 上下文。
|
|
78
|
-
*
|
|
96
|
+
* 打散 props:列表/分页/搜索/多选、grid/toolBar/…;可选根级 **floorMap**(兼容透传)。
|
|
97
|
+
* 平面图推荐在 ShellFrame 内使用 **PisellRecordBoard.FloorMap** 声明,与根级 `floorMap` 合并(子优先)。
|
|
79
98
|
*/
|
|
80
99
|
var PisellRecordBoard = function PisellRecordBoard(props) {
|
|
81
100
|
var _props$columnVisibili;
|
|
@@ -84,6 +103,8 @@ var PisellRecordBoard = function PisellRecordBoard(props) {
|
|
|
84
103
|
layoutType = _props$layoutType === void 0 ? 'grid' : _props$layoutType,
|
|
85
104
|
rowKeyProp = props.rowKey,
|
|
86
105
|
dataProp = props.data,
|
|
106
|
+
dataSourcesProp = props.dataSources,
|
|
107
|
+
gridDataSourceKeyProp = props.gridDataSourceKey,
|
|
87
108
|
loadingProp = props.loading,
|
|
88
109
|
totalProp = props.total,
|
|
89
110
|
paginationProp = props.pagination,
|
|
@@ -91,6 +112,13 @@ var PisellRecordBoard = function PisellRecordBoard(props) {
|
|
|
91
112
|
searchParamsProp = props.searchParams,
|
|
92
113
|
onSearchProp = props.onSearch,
|
|
93
114
|
onResetProp = props.onReset,
|
|
115
|
+
floorMapProp = props.floorMap,
|
|
116
|
+
floorMapLayoutContextProp = props.floorMapLayoutContext,
|
|
117
|
+
defaultBodyView = props.defaultBodyView,
|
|
118
|
+
bodyViewStorageKey = props.bodyViewStorageKey,
|
|
119
|
+
floorMapLayoutRef = props.floorMapLayoutRef,
|
|
120
|
+
classNameProp = props.className,
|
|
121
|
+
styleProp = props.style,
|
|
94
122
|
rest = _objectWithoutProperties(props, _excluded);
|
|
95
123
|
|
|
96
124
|
/** 默认占满父容器高度(父容器需有高度,如 height:100vh 或 height:100%) */
|
|
@@ -119,6 +147,23 @@ var PisellRecordBoard = function PisellRecordBoard(props) {
|
|
|
119
147
|
filterResetKey = _useState8[0],
|
|
120
148
|
setFilterResetKey = _useState8[1];
|
|
121
149
|
var _useState9 = useState(function () {
|
|
150
|
+
var fallback = defaultBodyView === 'floorMap' ? 'floorMap' : 'grid';
|
|
151
|
+
return readBodyViewFromStorage(bodyViewStorageKey, fallback);
|
|
152
|
+
}),
|
|
153
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
154
|
+
bodyView = _useState10[0],
|
|
155
|
+
setBodyViewState = _useState10[1];
|
|
156
|
+
var setBodyView = useCallback(function (v) {
|
|
157
|
+
setBodyViewState(v);
|
|
158
|
+
if (typeof window !== 'undefined' && bodyViewStorageKey) {
|
|
159
|
+
try {
|
|
160
|
+
localStorage.setItem(bodyViewStorageKey, v);
|
|
161
|
+
} catch (_unused2) {
|
|
162
|
+
/* ignore */
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}, [bodyViewStorageKey]);
|
|
166
|
+
var _useState11 = useState(function () {
|
|
122
167
|
var _props$grid$defaultHi, _props$grid, _props$grid$columns, _props$grid2;
|
|
123
168
|
var fromConfig = (_props$grid$defaultHi = (_props$grid = props.grid) === null || _props$grid === void 0 ? void 0 : _props$grid.defaultHiddenColumnKeys) !== null && _props$grid$defaultHi !== void 0 ? _props$grid$defaultHi : [];
|
|
124
169
|
var fromColumns = ((_props$grid$columns = (_props$grid2 = props.grid) === null || _props$grid2 === void 0 ? void 0 : _props$grid2.columns) !== null && _props$grid$columns !== void 0 ? _props$grid$columns : []).filter(function (col) {
|
|
@@ -146,10 +191,10 @@ var PisellRecordBoard = function PisellRecordBoard(props) {
|
|
|
146
191
|
}
|
|
147
192
|
return defaultVis;
|
|
148
193
|
}),
|
|
149
|
-
|
|
150
|
-
internalColumnVisibility =
|
|
151
|
-
setInternalColumnVisibility =
|
|
152
|
-
var
|
|
194
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
195
|
+
internalColumnVisibility = _useState12[0],
|
|
196
|
+
setInternalColumnVisibility = _useState12[1];
|
|
197
|
+
var _useState13 = useState(function () {
|
|
153
198
|
if (typeof columnVisibilityStorageKey === 'string' && columnVisibilityStorageKey && typeof getRecordBoardColumnSettingFromLocal === 'function') {
|
|
154
199
|
var _saved$columnOrder;
|
|
155
200
|
var saved = getRecordBoardColumnSettingFromLocal(columnVisibilityStorageKey);
|
|
@@ -157,9 +202,9 @@ var PisellRecordBoard = function PisellRecordBoard(props) {
|
|
|
157
202
|
}
|
|
158
203
|
return null;
|
|
159
204
|
}),
|
|
160
|
-
|
|
161
|
-
internalColumnOrder =
|
|
162
|
-
setInternalColumnOrder =
|
|
205
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
206
|
+
internalColumnOrder = _useState14[0],
|
|
207
|
+
setInternalColumnOrder = _useState14[1];
|
|
163
208
|
useEffect(function () {
|
|
164
209
|
if (typeof columnVisibilityStorageKey !== 'string' || !columnVisibilityStorageKey) return;
|
|
165
210
|
saveColumnVisibilityToLocal({
|
|
@@ -187,10 +232,34 @@ var PisellRecordBoard = function PisellRecordBoard(props) {
|
|
|
187
232
|
selectedRows: internalSelectedRows,
|
|
188
233
|
onSelectionChange: onSelectionChangeInternal
|
|
189
234
|
}, rowKeyProp);
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
var total = totalProp !== undefined ? totalProp : defaultCtx.total;
|
|
235
|
+
|
|
236
|
+
/** 分页状态(推导表格切片前需要) */
|
|
193
237
|
var pagination = paginationProp !== undefined ? paginationProp : defaultCtx.pagination;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* 表格数据:
|
|
241
|
+
* - 显式传入 `data` 时始终用 `data`(如服务端分页当前页);
|
|
242
|
+
* - 否则若存在 `dataSources` + `gridDataSourceKey`,从对应数组做客户端分页切片。
|
|
243
|
+
*/
|
|
244
|
+
var data;
|
|
245
|
+
var total;
|
|
246
|
+
if (dataProp !== undefined) {
|
|
247
|
+
data = dataProp;
|
|
248
|
+
total = totalProp !== undefined ? totalProp : defaultCtx.total;
|
|
249
|
+
} else if (dataSourcesProp != null && gridDataSourceKeyProp != null && gridDataSourceKeyProp !== '') {
|
|
250
|
+
var _dataSourcesProp$grid;
|
|
251
|
+
var raw = (_dataSourcesProp$grid = dataSourcesProp[gridDataSourceKeyProp]) !== null && _dataSourcesProp$grid !== void 0 ? _dataSourcesProp$grid : [];
|
|
252
|
+
total = totalProp !== undefined ? totalProp : raw.length;
|
|
253
|
+
var pageNumber = pagination.pageNumber,
|
|
254
|
+
pageSize = pagination.pageSize;
|
|
255
|
+
var safeSize = Math.max(1, pageSize);
|
|
256
|
+
var start = Math.max(0, (pageNumber - 1) * safeSize);
|
|
257
|
+
data = raw.slice(start, start + safeSize);
|
|
258
|
+
} else {
|
|
259
|
+
data = defaultCtx.data;
|
|
260
|
+
total = totalProp !== undefined ? totalProp : defaultCtx.total;
|
|
261
|
+
}
|
|
262
|
+
var loading = loadingProp !== undefined ? loadingProp : defaultCtx.loading;
|
|
194
263
|
var onPageChange = onPageChangeProp !== null && onPageChangeProp !== void 0 ? onPageChangeProp : defaultCtx.onPageChange;
|
|
195
264
|
var searchParams = searchParamsProp !== undefined ? searchParamsProp : defaultCtx.searchParams;
|
|
196
265
|
var onSearch = onSearchProp !== null && onSearchProp !== void 0 ? onSearchProp : defaultCtx.onSearch;
|
|
@@ -204,6 +273,8 @@ var PisellRecordBoard = function PisellRecordBoard(props) {
|
|
|
204
273
|
return _objectSpread(_objectSpread({}, defaultCtx), {}, {
|
|
205
274
|
layoutType: layoutType,
|
|
206
275
|
rowKey: rowKey,
|
|
276
|
+
dataSources: dataSourcesProp,
|
|
277
|
+
gridDataSourceKey: gridDataSourceKeyProp,
|
|
207
278
|
data: data,
|
|
208
279
|
loading: loading,
|
|
209
280
|
total: total,
|
|
@@ -224,20 +295,26 @@ var PisellRecordBoard = function PisellRecordBoard(props) {
|
|
|
224
295
|
scrollAreaHeight: scrollAreaHeight,
|
|
225
296
|
setScrollAreaHeight: setScrollAreaHeight,
|
|
226
297
|
filterResetKey: filterResetKey,
|
|
227
|
-
setFilterResetKey: setFilterResetKey
|
|
298
|
+
setFilterResetKey: setFilterResetKey,
|
|
299
|
+
bodyView: bodyView,
|
|
300
|
+
setBodyView: setBodyView,
|
|
301
|
+
floorMapProps: floorMapProp,
|
|
302
|
+
floorMapLayoutContext: floorMapLayoutContextProp,
|
|
303
|
+
defaultBodyView: defaultBodyView,
|
|
304
|
+
floorMapLayoutRef: floorMapLayoutRef
|
|
228
305
|
});
|
|
229
|
-
}, [layoutType, rowKeyProp, dataProp, loadingProp, totalProp, paginationProp, onPageChangeProp, searchParamsProp, onSearchProp, onResetProp, mergedChildComponentProps, internalSelectedKeys, internalSelectedRows, onSelectionChangeInternal, internalColumnVisibility, onColumnVisibilityChangeInternal, internalColumnOrder, onColumnOrderChangeInternal, fillHeight, scrollAreaHeight, filterResetKey]);
|
|
306
|
+
}, [layoutType, rowKeyProp, dataProp, dataSourcesProp, gridDataSourceKeyProp, loadingProp, totalProp, paginationProp, onPageChangeProp, searchParamsProp, onSearchProp, onResetProp, mergedChildComponentProps, internalSelectedKeys, internalSelectedRows, onSelectionChangeInternal, internalColumnVisibility, onColumnVisibilityChangeInternal, internalColumnOrder, onColumnOrderChangeInternal, fillHeight, scrollAreaHeight, filterResetKey, floorMapProp, floorMapLayoutContextProp, defaultBodyView, floorMapLayoutRef, bodyView, setBodyView]);
|
|
230
307
|
var content = /*#__PURE__*/React.createElement(RecordBoardProvider, {
|
|
231
308
|
value: contextValue
|
|
232
309
|
}, children);
|
|
233
310
|
return /*#__PURE__*/React.createElement("div", {
|
|
234
|
-
className: "pisell-record-board-root",
|
|
235
|
-
style: {
|
|
311
|
+
className: classNameProp ? "pisell-record-board-root ".concat(classNameProp) : 'pisell-record-board-root',
|
|
312
|
+
style: _objectSpread({
|
|
236
313
|
height: '100%',
|
|
237
314
|
display: 'flex',
|
|
238
315
|
flexDirection: 'column',
|
|
239
316
|
minHeight: 0
|
|
240
|
-
}
|
|
317
|
+
}, styleProp)
|
|
241
318
|
}, content);
|
|
242
319
|
};
|
|
243
320
|
export default PisellRecordBoard;
|
|
@@ -3,6 +3,10 @@ import PisellRecordBoard from './index';
|
|
|
3
3
|
declare const meta: Meta<typeof PisellRecordBoard>;
|
|
4
4
|
export default meta;
|
|
5
5
|
declare type Story = StoryObj<typeof PisellRecordBoard>;
|
|
6
|
+
/**
|
|
7
|
+
* **默认 Story**:餐厅 **多数据源**——**餐桌** + **蘸料摆台**;根级 `dataSources` 同时包含两者;**表格只绑定餐桌一路**(`gridDataSourceKey`);平面图同时渲染两类落位,无需 Segmented 切换列表。
|
|
8
|
+
*/
|
|
9
|
+
export declare const Default: Story;
|
|
6
10
|
/**
|
|
7
11
|
* Grid 布局 - 带 Table、分页、多选;列 type 驱动列/筛选/排序;筛选在 Filter 弹层内;重置清空筛选与排序。
|
|
8
12
|
*/
|