@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,206 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/pisellFloorMapLayout/locales.ts
|
|
20
|
+
var locales_exports = {};
|
|
21
|
+
__export(locales_exports, {
|
|
22
|
+
default: () => locales_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(locales_exports);
|
|
25
|
+
var locales_default = {
|
|
26
|
+
en: {
|
|
27
|
+
"pisell-floor-map-layout.loading": "Loading...",
|
|
28
|
+
"pisell-floor-map-layout.read-canvas-tabs.aria": "Switch floor plan canvas",
|
|
29
|
+
"pisell-floor-map-layout.edit-top-bar.aria": "Floor plan editor toolbar",
|
|
30
|
+
"pisell-floor-map-layout.edit-top-bar.fullscreen-enter-aria": "Fullscreen",
|
|
31
|
+
"pisell-floor-map-layout.edit-top-bar.fullscreen-enter-title": "Fullscreen (top bar with save and fit bounds, etc.)",
|
|
32
|
+
"pisell-floor-map-layout.edit-top-bar.fullscreen-exit-aria": "Exit fullscreen",
|
|
33
|
+
"pisell-floor-map-layout.edit-top-bar.fullscreen-exit-title": "Exit fullscreen",
|
|
34
|
+
"pisell-floor-map-layout.edit-top-bar.unsaved": "Unsaved",
|
|
35
|
+
"pisell-floor-map-layout.edit-top-bar.save": "Save",
|
|
36
|
+
"pisell-floor-map-layout.edit-top-bar.saving": "Saving…",
|
|
37
|
+
"pisell-floor-map-layout.canvas-tabs.empty": "No canvas",
|
|
38
|
+
"pisell-floor-map-layout.canvas-tabs.add": "+ Add floor",
|
|
39
|
+
"pisell-floor-map-layout.canvas-tabs.add-title": "Add floor",
|
|
40
|
+
"pisell-floor-map-layout.canvas-tabs.hint": "Click 「Add floor」 to create a canvas",
|
|
41
|
+
"pisell-floor-map-layout.canvas-tabs.rename-aria": "Rename",
|
|
42
|
+
"pisell-floor-map-layout.canvas-tabs.remove-aria": "Remove",
|
|
43
|
+
"pisell-floor-map-layout.canvas-tabs.rename-title": "Double-click to rename, or tap the pencil on touch screens",
|
|
44
|
+
"pisell-floor-map-layout.canvas-tabs.rename-button-aria": "Rename canvas",
|
|
45
|
+
"pisell-floor-map-layout.canvas-tabs.rename-button-title": "Rename",
|
|
46
|
+
"pisell-floor-map-layout.canvas-tabs.default-new-canvas-name": "New floor",
|
|
47
|
+
"pisell-floor-map-layout.canvas-tabs.rename-modal-title": "Rename canvas",
|
|
48
|
+
"pisell-floor-map-layout.canvas-tabs.rename-modal-ok": "OK",
|
|
49
|
+
"pisell-floor-map-layout.canvas-tabs.rename-modal-cancel": "Cancel",
|
|
50
|
+
"pisell-floor-map-layout.edit-panel.element-props": "Element",
|
|
51
|
+
"pisell-floor-map-layout.edit-panel.close-aria": "Close",
|
|
52
|
+
"pisell-floor-map-layout.edit-panel.hint-apply": "Position or size changed — click Apply to update the canvas.",
|
|
53
|
+
"pisell-floor-map-layout.edit-panel.hint-save": "Layout draft is not saved — click Save at the top.",
|
|
54
|
+
"pisell-floor-map-layout.edit-panel.section-layout": "Position · Layer · Size",
|
|
55
|
+
"pisell-floor-map-layout.edit-panel.lock-on": "Locked: drag/resize disabled on canvas; click to unlock",
|
|
56
|
+
"pisell-floor-map-layout.edit-panel.lock-off": "Lock to disable drag and resize on canvas",
|
|
57
|
+
"pisell-floor-map-layout.edit-panel.label-x": "X",
|
|
58
|
+
"pisell-floor-map-layout.edit-panel.label-y": "Y",
|
|
59
|
+
"pisell-floor-map-layout.edit-panel.label-z": "Layer",
|
|
60
|
+
"pisell-floor-map-layout.edit-panel.label-width": "Width",
|
|
61
|
+
"pisell-floor-map-layout.edit-panel.label-height": "Height",
|
|
62
|
+
"pisell-floor-map-layout.edit-panel.label-name": "Name",
|
|
63
|
+
"pisell-floor-map-layout.edit-panel.label-name-stage": "Display name (on canvas)",
|
|
64
|
+
"pisell-floor-map-layout.edit-panel.ph-name-stage": "e.g. stage, DJ booth, dance floor",
|
|
65
|
+
"pisell-floor-map-layout.edit-panel.ph-name": "Element name",
|
|
66
|
+
"pisell-floor-map-layout.edit-panel.label-image-url": "Image URL",
|
|
67
|
+
"pisell-floor-map-layout.edit-panel.extra-image-url": "Use a network image URL; lower layer to place under tables.",
|
|
68
|
+
"pisell-floor-map-layout.edit-panel.ph-https": "https://...",
|
|
69
|
+
"pisell-floor-map-layout.edit-panel.label-canvas": "Canvas",
|
|
70
|
+
"pisell-floor-map-layout.edit-panel.apply": "Apply",
|
|
71
|
+
"pisell-floor-map-layout.edit-panel.data-binding": "Data binding",
|
|
72
|
+
"pisell-floor-map-layout.edit-panel.data-binding-note": "Changing data source or row writes to the layout draft; click Save at the top to persist.",
|
|
73
|
+
"pisell-floor-map-layout.edit-panel.label-data-source": "Data source",
|
|
74
|
+
"pisell-floor-map-layout.edit-panel.ph-data-source": "Select data source",
|
|
75
|
+
"pisell-floor-map-layout.edit-panel.label-pick-row": "Pick row",
|
|
76
|
+
"pisell-floor-map-layout.edit-panel.ph-pick-row": "Pick a row from the data table",
|
|
77
|
+
"pisell-floor-map-layout.edit-panel.ph-no-rows": "No available rows in this data source",
|
|
78
|
+
"pisell-floor-map-layout.edit-panel.hint-unbound": "Leave empty or clear when unbound; after binding you can edit record fields.",
|
|
79
|
+
"pisell-floor-map-layout.edit-panel.record-title": "Data record",
|
|
80
|
+
"pisell-floor-map-layout.edit-panel.pop-title": "Delete this element?",
|
|
81
|
+
"pisell-floor-map-layout.edit-panel.pop-desc": "It will be removed from the floor plan draft; click Save at the top to persist.",
|
|
82
|
+
"pisell-floor-map-layout.edit-panel.btn-delete": "Delete",
|
|
83
|
+
"pisell-floor-map-layout.edit-panel.btn-cancel": "Cancel",
|
|
84
|
+
"pisell-floor-map-layout.edit-panel.btn-ok-delete": "Delete"
|
|
85
|
+
},
|
|
86
|
+
"zh-CN": {
|
|
87
|
+
"pisell-floor-map-layout.loading": "加载中…",
|
|
88
|
+
"pisell-floor-map-layout.read-canvas-tabs.aria": "切换平面图画布",
|
|
89
|
+
"pisell-floor-map-layout.edit-top-bar.aria": "平面图编辑顶栏",
|
|
90
|
+
"pisell-floor-map-layout.edit-top-bar.fullscreen-enter-aria": "全屏",
|
|
91
|
+
"pisell-floor-map-layout.edit-top-bar.fullscreen-enter-title": "全屏(顶栏含保存与区域定位等)",
|
|
92
|
+
"pisell-floor-map-layout.edit-top-bar.fullscreen-exit-aria": "退出全屏",
|
|
93
|
+
"pisell-floor-map-layout.edit-top-bar.fullscreen-exit-title": "退出全屏",
|
|
94
|
+
"pisell-floor-map-layout.edit-top-bar.unsaved": "未保存",
|
|
95
|
+
"pisell-floor-map-layout.edit-top-bar.save": "保存",
|
|
96
|
+
"pisell-floor-map-layout.edit-top-bar.saving": "保存中…",
|
|
97
|
+
"pisell-floor-map-layout.canvas-tabs.empty": "暂无画布",
|
|
98
|
+
"pisell-floor-map-layout.canvas-tabs.add": "+ 添加楼层",
|
|
99
|
+
"pisell-floor-map-layout.canvas-tabs.add-title": "添加楼层",
|
|
100
|
+
"pisell-floor-map-layout.canvas-tabs.hint": "请点击右侧「添加楼层」创建画布",
|
|
101
|
+
"pisell-floor-map-layout.canvas-tabs.rename-aria": "重命名",
|
|
102
|
+
"pisell-floor-map-layout.canvas-tabs.remove-aria": "删除",
|
|
103
|
+
"pisell-floor-map-layout.canvas-tabs.rename-title": "双击重命名;触屏请点击标签右侧铅笔图标",
|
|
104
|
+
"pisell-floor-map-layout.canvas-tabs.rename-button-aria": "重命名画布",
|
|
105
|
+
"pisell-floor-map-layout.canvas-tabs.rename-button-title": "重命名",
|
|
106
|
+
"pisell-floor-map-layout.canvas-tabs.default-new-canvas-name": "新楼层",
|
|
107
|
+
"pisell-floor-map-layout.canvas-tabs.rename-modal-title": "重命名画布",
|
|
108
|
+
"pisell-floor-map-layout.canvas-tabs.rename-modal-ok": "确定",
|
|
109
|
+
"pisell-floor-map-layout.canvas-tabs.rename-modal-cancel": "取消",
|
|
110
|
+
"pisell-floor-map-layout.edit-panel.element-props": "图元属性",
|
|
111
|
+
"pisell-floor-map-layout.edit-panel.close-aria": "关闭",
|
|
112
|
+
"pisell-floor-map-layout.edit-panel.hint-apply": "位置、尺寸等已修改,请点击「应用」同步到画布。",
|
|
113
|
+
"pisell-floor-map-layout.edit-panel.hint-save": "布局草稿未持久化,请点击顶部「保存」。",
|
|
114
|
+
"pisell-floor-map-layout.edit-panel.section-layout": "位置 · 层级 · 尺寸",
|
|
115
|
+
"pisell-floor-map-layout.edit-panel.lock-on": "已锁定:画布不可拖拽/缩放;点击解锁",
|
|
116
|
+
"pisell-floor-map-layout.edit-panel.lock-off": "锁定后画布不可拖拽与改尺寸",
|
|
117
|
+
"pisell-floor-map-layout.edit-panel.label-x": "X",
|
|
118
|
+
"pisell-floor-map-layout.edit-panel.label-y": "Y",
|
|
119
|
+
"pisell-floor-map-layout.edit-panel.label-z": "层级",
|
|
120
|
+
"pisell-floor-map-layout.edit-panel.label-width": "宽度",
|
|
121
|
+
"pisell-floor-map-layout.edit-panel.label-height": "高度",
|
|
122
|
+
"pisell-floor-map-layout.edit-panel.label-name": "名称",
|
|
123
|
+
"pisell-floor-map-layout.edit-panel.label-name-stage": "显示名称(画布上)",
|
|
124
|
+
"pisell-floor-map-layout.edit-panel.ph-name-stage": "如:舞台、DJ 台、舞池",
|
|
125
|
+
"pisell-floor-map-layout.edit-panel.ph-name": "图元名称",
|
|
126
|
+
"pisell-floor-map-layout.edit-panel.label-image-url": "图片地址(URL)",
|
|
127
|
+
"pisell-floor-map-layout.edit-panel.extra-image-url": "可填网络图片地址;将层级调低可铺在桌位下方作底图。",
|
|
128
|
+
"pisell-floor-map-layout.edit-panel.ph-https": "https://...",
|
|
129
|
+
"pisell-floor-map-layout.edit-panel.label-canvas": "所属画布",
|
|
130
|
+
"pisell-floor-map-layout.edit-panel.apply": "应用",
|
|
131
|
+
"pisell-floor-map-layout.edit-panel.data-binding": "数据绑定",
|
|
132
|
+
"pisell-floor-map-layout.edit-panel.data-binding-note": "修改数据源或绑定行会立即写入布局草稿;持久化请点击顶部「保存」。",
|
|
133
|
+
"pisell-floor-map-layout.edit-panel.label-data-source": "数据源",
|
|
134
|
+
"pisell-floor-map-layout.edit-panel.ph-data-source": "选择数据源",
|
|
135
|
+
"pisell-floor-map-layout.edit-panel.label-pick-row": "选择数据行",
|
|
136
|
+
"pisell-floor-map-layout.edit-panel.ph-pick-row": "绑定数据表中的一行",
|
|
137
|
+
"pisell-floor-map-layout.edit-panel.ph-no-rows": "当前数据源暂无可用行",
|
|
138
|
+
"pisell-floor-map-layout.edit-panel.hint-unbound": "未绑定行时可先留空或清除;绑定后可编辑「数据源记录」字段。",
|
|
139
|
+
"pisell-floor-map-layout.edit-panel.record-title": "数据源记录",
|
|
140
|
+
"pisell-floor-map-layout.edit-panel.pop-title": "确定删除该图元?",
|
|
141
|
+
"pisell-floor-map-layout.edit-panel.pop-desc": "将从当前平面图草稿中移除;删除后请点击顶部「保存」以持久化布局。",
|
|
142
|
+
"pisell-floor-map-layout.edit-panel.btn-delete": "删除",
|
|
143
|
+
"pisell-floor-map-layout.edit-panel.btn-cancel": "取消",
|
|
144
|
+
"pisell-floor-map-layout.edit-panel.btn-ok-delete": "删除"
|
|
145
|
+
},
|
|
146
|
+
"zh-HK": {
|
|
147
|
+
"pisell-floor-map-layout.loading": "載入中…",
|
|
148
|
+
"pisell-floor-map-layout.read-canvas-tabs.aria": "切換平面圖畫布",
|
|
149
|
+
"pisell-floor-map-layout.edit-top-bar.aria": "平面圖編輯頂欄",
|
|
150
|
+
"pisell-floor-map-layout.edit-top-bar.fullscreen-enter-aria": "全螢幕",
|
|
151
|
+
"pisell-floor-map-layout.edit-top-bar.fullscreen-enter-title": "全螢幕(頂欄含儲存與區域定位等)",
|
|
152
|
+
"pisell-floor-map-layout.edit-top-bar.fullscreen-exit-aria": "退出全螢幕",
|
|
153
|
+
"pisell-floor-map-layout.edit-top-bar.fullscreen-exit-title": "退出全螢幕",
|
|
154
|
+
"pisell-floor-map-layout.edit-top-bar.unsaved": "未儲存",
|
|
155
|
+
"pisell-floor-map-layout.edit-top-bar.save": "儲存",
|
|
156
|
+
"pisell-floor-map-layout.edit-top-bar.saving": "儲存中…",
|
|
157
|
+
"pisell-floor-map-layout.canvas-tabs.empty": "暫無畫布",
|
|
158
|
+
"pisell-floor-map-layout.canvas-tabs.add": "+ 添加樓層",
|
|
159
|
+
"pisell-floor-map-layout.canvas-tabs.add-title": "添加樓層",
|
|
160
|
+
"pisell-floor-map-layout.canvas-tabs.hint": "請點擊右側「添加樓層」建立畫布",
|
|
161
|
+
"pisell-floor-map-layout.canvas-tabs.rename-aria": "重新命名",
|
|
162
|
+
"pisell-floor-map-layout.canvas-tabs.remove-aria": "刪除",
|
|
163
|
+
"pisell-floor-map-layout.canvas-tabs.rename-title": "雙擊重新命名;觸控請點標籤右側鉛筆圖標",
|
|
164
|
+
"pisell-floor-map-layout.canvas-tabs.rename-button-aria": "重新命名畫布",
|
|
165
|
+
"pisell-floor-map-layout.canvas-tabs.rename-button-title": "重新命名",
|
|
166
|
+
"pisell-floor-map-layout.canvas-tabs.default-new-canvas-name": "新樓層",
|
|
167
|
+
"pisell-floor-map-layout.canvas-tabs.rename-modal-title": "重新命名畫布",
|
|
168
|
+
"pisell-floor-map-layout.canvas-tabs.rename-modal-ok": "確定",
|
|
169
|
+
"pisell-floor-map-layout.canvas-tabs.rename-modal-cancel": "取消",
|
|
170
|
+
"pisell-floor-map-layout.edit-panel.element-props": "圖元屬性",
|
|
171
|
+
"pisell-floor-map-layout.edit-panel.close-aria": "關閉",
|
|
172
|
+
"pisell-floor-map-layout.edit-panel.hint-apply": "位置、尺寸等已修改,請點擊「套用」同步到畫布。",
|
|
173
|
+
"pisell-floor-map-layout.edit-panel.hint-save": "佈局草稿未持久化,請點擊頂部「儲存」。",
|
|
174
|
+
"pisell-floor-map-layout.edit-panel.section-layout": "位置 · 層級 · 尺寸",
|
|
175
|
+
"pisell-floor-map-layout.edit-panel.lock-on": "已鎖定:畫布不可拖曳/縮放;點擊解鎖",
|
|
176
|
+
"pisell-floor-map-layout.edit-panel.lock-off": "鎖定後畫布不可拖曳與改尺寸",
|
|
177
|
+
"pisell-floor-map-layout.edit-panel.label-x": "X",
|
|
178
|
+
"pisell-floor-map-layout.edit-panel.label-y": "Y",
|
|
179
|
+
"pisell-floor-map-layout.edit-panel.label-z": "層級",
|
|
180
|
+
"pisell-floor-map-layout.edit-panel.label-width": "寬度",
|
|
181
|
+
"pisell-floor-map-layout.edit-panel.label-height": "高度",
|
|
182
|
+
"pisell-floor-map-layout.edit-panel.label-name": "名稱",
|
|
183
|
+
"pisell-floor-map-layout.edit-panel.label-name-stage": "顯示名稱(畫布上)",
|
|
184
|
+
"pisell-floor-map-layout.edit-panel.ph-name-stage": "如:舞台、DJ 台、舞池",
|
|
185
|
+
"pisell-floor-map-layout.edit-panel.ph-name": "圖元名稱",
|
|
186
|
+
"pisell-floor-map-layout.edit-panel.label-image-url": "圖片地址(URL)",
|
|
187
|
+
"pisell-floor-map-layout.edit-panel.extra-image-url": "可填網絡圖片地址;將層級調低可鋪在桌位下方作底圖。",
|
|
188
|
+
"pisell-floor-map-layout.edit-panel.ph-https": "https://...",
|
|
189
|
+
"pisell-floor-map-layout.edit-panel.label-canvas": "所屬畫布",
|
|
190
|
+
"pisell-floor-map-layout.edit-panel.apply": "套用",
|
|
191
|
+
"pisell-floor-map-layout.edit-panel.data-binding": "數據綁定",
|
|
192
|
+
"pisell-floor-map-layout.edit-panel.data-binding-note": "修改數據源或綁定行會立即寫入佈局草稿;持久化請點擊頂部「儲存」。",
|
|
193
|
+
"pisell-floor-map-layout.edit-panel.label-data-source": "數據源",
|
|
194
|
+
"pisell-floor-map-layout.edit-panel.ph-data-source": "選擇數據源",
|
|
195
|
+
"pisell-floor-map-layout.edit-panel.label-pick-row": "選擇數據行",
|
|
196
|
+
"pisell-floor-map-layout.edit-panel.ph-pick-row": "綁定數據表中的一行",
|
|
197
|
+
"pisell-floor-map-layout.edit-panel.ph-no-rows": "當前數據源暫無可用行",
|
|
198
|
+
"pisell-floor-map-layout.edit-panel.hint-unbound": "未綁定行時可先留空或清除;綁定後可編輯「數據源記錄」欄位。",
|
|
199
|
+
"pisell-floor-map-layout.edit-panel.record-title": "數據源記錄",
|
|
200
|
+
"pisell-floor-map-layout.edit-panel.pop-title": "確定刪除該圖元?",
|
|
201
|
+
"pisell-floor-map-layout.edit-panel.pop-desc": "將從當前平面圖草稿中移除;刪除後請點擊頂部「儲存」以持久化佈局。",
|
|
202
|
+
"pisell-floor-map-layout.edit-panel.btn-delete": "刪除",
|
|
203
|
+
"pisell-floor-map-layout.edit-panel.btn-cancel": "取消",
|
|
204
|
+
"pisell-floor-map-layout.edit-panel.btn-ok-delete": "刪除"
|
|
205
|
+
}
|
|
206
|
+
};
|
|
@@ -32,6 +32,10 @@ export interface FloorMapItemBase {
|
|
|
32
32
|
x: number;
|
|
33
33
|
/** 坐标 y */
|
|
34
34
|
y: number;
|
|
35
|
+
/** 显示名称,与 x/y 同级,所有图元可编辑 */
|
|
36
|
+
name?: string;
|
|
37
|
+
/** 层级,与 x/y 同级,所有图元可编辑;数值越大越靠前 */
|
|
38
|
+
zIndex?: number;
|
|
35
39
|
/** 宽度(可选;cell 时为格子数,pixel 时为像素,缺省时 cell 为 1,pixel 为 cellSize) */
|
|
36
40
|
width?: number;
|
|
37
41
|
/** 高度(可选) */
|
|
@@ -59,6 +63,11 @@ export interface FloorMapLayerConfig {
|
|
|
59
63
|
gap?: number | string;
|
|
60
64
|
/** 坐标吸附间隔(逻辑单位),0 表示不吸附 */
|
|
61
65
|
snapStep?: number;
|
|
66
|
+
/**
|
|
67
|
+
* 平面图像素模式:按图元包围盒外扩的单侧留白(像素),影响画布尺寸与初始对齐。
|
|
68
|
+
* 不传时默认约 56;若需更大拖拽边距可设大值(如 200)。
|
|
69
|
+
*/
|
|
70
|
+
boundingPadding?: number;
|
|
62
71
|
}
|
|
63
72
|
/**
|
|
64
73
|
* 缩放配置
|
|
@@ -72,6 +81,11 @@ export interface FloorMapZoomConfig {
|
|
|
72
81
|
max?: number;
|
|
73
82
|
/** 缩放步进,默认 0.1 (10%) */
|
|
74
83
|
step?: number;
|
|
84
|
+
/**
|
|
85
|
+
* 为 true 时:挂载后每个画布(frameResetKey)自动执行一次 fitBounds,使图元落在视口内。
|
|
86
|
+
* 为 true 时跳过「首帧 defaultScale 左上对齐」,避免与 fit 闪动叠加。
|
|
87
|
+
*/
|
|
88
|
+
autoFitOnMount?: boolean;
|
|
75
89
|
}
|
|
76
90
|
/**
|
|
77
91
|
* 平移配置
|
|
@@ -106,6 +120,297 @@ export interface FloorMapGridLayoutConfig {
|
|
|
106
120
|
/** 每行列数 */
|
|
107
121
|
columns?: number;
|
|
108
122
|
}
|
|
123
|
+
/** 图元类型:是否绑定业务资源 */
|
|
124
|
+
export declare type FloorMapElementType = 'resource' | 'decoration';
|
|
125
|
+
/**
|
|
126
|
+
* 画布名称多语言结构(与低代码 Translation 字段一致)
|
|
127
|
+
*/
|
|
128
|
+
export declare type FloorMapCanvasNameI18n = {
|
|
129
|
+
en: string;
|
|
130
|
+
'zh-CN': string;
|
|
131
|
+
'zh-HK': string;
|
|
132
|
+
ja: string;
|
|
133
|
+
pt: string;
|
|
134
|
+
};
|
|
135
|
+
/** 画布(对应一个 Tab,如 1楼、2楼) */
|
|
136
|
+
export interface FloorMapCanvas {
|
|
137
|
+
id: string;
|
|
138
|
+
/**
|
|
139
|
+
* 展示名:纯字符串或各语言对象;对象时按引擎 locale 取字段,缺省回退 `en` 等。
|
|
140
|
+
*/
|
|
141
|
+
name: string | FloorMapCanvasNameI18n;
|
|
142
|
+
/**
|
|
143
|
+
* 多语言文案 key(`locales.getText`);配置后 Tab / 侧栏「所属画布」优先显示当前语言译名。
|
|
144
|
+
* 用户重命名后会清除 `nameKey`,以 `name` 为准。
|
|
145
|
+
*/
|
|
146
|
+
nameKey?: string;
|
|
147
|
+
/**
|
|
148
|
+
* Tab 标签旁 (n) 数量;未配置时 `mergeCanvasesForTabs` 可按 `sceneElements` 数量推断(>0 才显示)。
|
|
149
|
+
*/
|
|
150
|
+
tabBadge?: number;
|
|
151
|
+
order: number;
|
|
152
|
+
enabled: boolean;
|
|
153
|
+
background?: string;
|
|
154
|
+
categoryIds?: string[];
|
|
155
|
+
mapLayer?: FloorMapLayerConfig;
|
|
156
|
+
}
|
|
157
|
+
/** 文字槽位(编辑时在 SVG 上添加,阅读态通过参数传文案) */
|
|
158
|
+
export interface FloorMapTextSlot {
|
|
159
|
+
id: string;
|
|
160
|
+
x: number;
|
|
161
|
+
y: number;
|
|
162
|
+
align?: 'left' | 'center' | 'right';
|
|
163
|
+
verticalAlign?: 'top' | 'middle' | 'bottom';
|
|
164
|
+
defaultText?: string;
|
|
165
|
+
}
|
|
166
|
+
/** 地图图元:资源或装饰,编辑与阅读共用(name/zIndex 继承自 FloorMapItemBase) */
|
|
167
|
+
export interface FloorMapElement extends FloorMapItemBase {
|
|
168
|
+
canvasId: string;
|
|
169
|
+
type: FloorMapElementType;
|
|
170
|
+
elementKind?: string;
|
|
171
|
+
fillColor?: string;
|
|
172
|
+
strokeColor?: string;
|
|
173
|
+
resourceId?: string;
|
|
174
|
+
capacity?: number;
|
|
175
|
+
textSlots?: FloorMapTextSlot[];
|
|
176
|
+
points?: [number, number][];
|
|
177
|
+
svgPath?: string;
|
|
178
|
+
svgUrl?: string;
|
|
179
|
+
imageUrl?: string;
|
|
180
|
+
extensions?: Record<string, unknown>;
|
|
181
|
+
}
|
|
182
|
+
/** 单门店 Floor Map 数据(编辑/阅读共用) */
|
|
183
|
+
export interface FloorMapData {
|
|
184
|
+
canvases: FloorMapCanvas[];
|
|
185
|
+
elements: FloorMapElement[];
|
|
186
|
+
}
|
|
187
|
+
/** 多数据源:key 为数据源标识,value 为该数据源下的记录列表 */
|
|
188
|
+
export declare type FloorMapDataSources = Record<string, Array<{
|
|
189
|
+
id: string;
|
|
190
|
+
[k: string]: unknown;
|
|
191
|
+
}>>;
|
|
192
|
+
/**
|
|
193
|
+
* 画布图元与可选数据源行的绑定(无绑定时仅展示图元种类默认态)
|
|
194
|
+
*/
|
|
195
|
+
export interface FloorMapSceneElementDataBinding {
|
|
196
|
+
dataSourceKey: string;
|
|
197
|
+
recordId: string;
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* 画布上的单一图元实例(原 dataSourcePlacements + decorations 合并为同一结构)
|
|
201
|
+
*/
|
|
202
|
+
export interface FloorMapSceneElement {
|
|
203
|
+
/** 实例唯一 id,持久化主键 */
|
|
204
|
+
instanceId: string;
|
|
205
|
+
/** 所属画布 id */
|
|
206
|
+
canvasId: string;
|
|
207
|
+
x: number;
|
|
208
|
+
y: number;
|
|
209
|
+
name?: string;
|
|
210
|
+
zIndex?: number;
|
|
211
|
+
width?: number;
|
|
212
|
+
height?: number;
|
|
213
|
+
elementKind?: string;
|
|
214
|
+
scale?: number;
|
|
215
|
+
shape?: FloorMapItemShape;
|
|
216
|
+
fillColor?: string;
|
|
217
|
+
strokeColor?: string;
|
|
218
|
+
textSlots?: FloorMapTextSlot[];
|
|
219
|
+
points?: [number, number][];
|
|
220
|
+
svgPath?: string;
|
|
221
|
+
svgUrl?: string;
|
|
222
|
+
imageUrl?: string;
|
|
223
|
+
extensions?: Record<string, unknown>;
|
|
224
|
+
dataBinding?: FloorMapSceneElementDataBinding;
|
|
225
|
+
/**
|
|
226
|
+
* 为 true 时:侧栏锁定 X/Y/层级/宽高的编辑,且画布上不可拖拽、不可缩放控制点。
|
|
227
|
+
* 仍可改名称、图片地址等其它字段(如适用)。
|
|
228
|
+
*/
|
|
229
|
+
layoutTransformLocked?: boolean;
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* 矩形区域类装饰(无数据源绑定),如画布上的「舞台/舞池」等。
|
|
233
|
+
* 在 `elementKinds` 中配置 `{ value: 'stage', label: '…', showInPalette: true }`,名称在编辑面板「显示名称」中修改。
|
|
234
|
+
*/
|
|
235
|
+
export declare const FLOOR_MAP_STAGE_ELEMENT_KIND = "stage";
|
|
236
|
+
/**
|
|
237
|
+
* 图片图元:无数据源绑定,通过 `imageUrl` 展示位图;适合铺底图或与业务图元叠放(调 `zIndex`)。
|
|
238
|
+
*/
|
|
239
|
+
export declare const FLOOR_MAP_IMAGE_ELEMENT_KIND = "floorMapImage";
|
|
240
|
+
/** 图元是否接受数据源及是否必填 */
|
|
241
|
+
export declare type FloorMapElementDataBindingPolicy = 'none' | 'optional' | 'required';
|
|
242
|
+
/** 图元种类所属分类(调色板分组) */
|
|
243
|
+
export interface FloorMapElementKindCategory {
|
|
244
|
+
id: string;
|
|
245
|
+
label: string;
|
|
246
|
+
order?: number;
|
|
247
|
+
}
|
|
248
|
+
/** 无数据源行时的占位展示文案/扩展(与 defaultShape 等并列) */
|
|
249
|
+
export interface FloorMapElementDefaultPresentation {
|
|
250
|
+
title?: string;
|
|
251
|
+
subtitle?: string;
|
|
252
|
+
extensions?: Record<string, unknown>;
|
|
253
|
+
}
|
|
254
|
+
/** 图元间连线(边) */
|
|
255
|
+
export interface FloorMapEdge {
|
|
256
|
+
id: string;
|
|
257
|
+
sourceId: string;
|
|
258
|
+
targetId: string;
|
|
259
|
+
sourceAnchor?: 'top' | 'right' | 'bottom' | 'left' | 'center';
|
|
260
|
+
targetAnchor?: 'top' | 'right' | 'bottom' | 'left' | 'center';
|
|
261
|
+
}
|
|
262
|
+
/** 图元种类配置(由后端或上层注入) */
|
|
263
|
+
export interface FloorMapElementKindConfig {
|
|
264
|
+
value: string;
|
|
265
|
+
label: string;
|
|
266
|
+
/** 调色板分组,对应 {@link FloorMapViewConfig.elementKindCategories} 的 id */
|
|
267
|
+
categoryId?: string;
|
|
268
|
+
/**
|
|
269
|
+
* 是否接受数据源绑定:none 纯图元;optional 可先占位后绑定;required 在存在可选行时须先选行再落点(数据源为空时仍允许占位 recordId)
|
|
270
|
+
*/
|
|
271
|
+
dataBindingPolicy?: FloorMapElementDataBindingPolicy;
|
|
272
|
+
/** 允许绑定的数据源 key,缺省表示不限制(在 policy 非 none 时生效) */
|
|
273
|
+
allowedDataSourceKeys?: string[];
|
|
274
|
+
/** 校验绑定行是否包含这些字段(有绑定且行存在时检查) */
|
|
275
|
+
expectedRecordFields?: string[];
|
|
276
|
+
defaultShape?: FloorMapItemShape;
|
|
277
|
+
defaultFillColor?: string;
|
|
278
|
+
defaultStrokeColor?: string;
|
|
279
|
+
showInPalette?: boolean;
|
|
280
|
+
defaultPoints?: [number, number][];
|
|
281
|
+
defaultSvgUrl?: string;
|
|
282
|
+
defaultSvgPath?: string;
|
|
283
|
+
defaultImageUrl?: string;
|
|
284
|
+
/** 无绑定或行缺失时的说明向展示 */
|
|
285
|
+
defaultPresentation?: FloorMapElementDefaultPresentation;
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* 画布/编辑器层能力:新建图元、布局与画布 Tab 的编辑权限
|
|
289
|
+
* @description 与 `canvases` 列表配合使用,统一挂在平面图配置的「画布 UI」下
|
|
290
|
+
*/
|
|
291
|
+
export interface FloorMapCanvasUiConfig {
|
|
292
|
+
/** 是否展示左侧调色板并从新建模式落点图元 */
|
|
293
|
+
canCreate: boolean;
|
|
294
|
+
/**
|
|
295
|
+
* 是否允许:画布 Tab 增删改名、选中图元侧栏、保存布局与数据源记录、画布内拖拽等
|
|
296
|
+
*/
|
|
297
|
+
canEdit: boolean;
|
|
298
|
+
}
|
|
299
|
+
/** Floor Map 视图配置(仅平面图视图需要持久化) */
|
|
300
|
+
export interface FloorMapViewConfig {
|
|
301
|
+
canvases: FloorMapCanvas[];
|
|
302
|
+
/** 画布编辑能力(原根级 canCreate / canEdit,现归并于此) */
|
|
303
|
+
canvasUi: FloorMapCanvasUiConfig;
|
|
304
|
+
/** 图元分类,供调色板分组 */
|
|
305
|
+
elementKindCategories?: FloorMapElementKindCategory[];
|
|
306
|
+
elementKinds: FloorMapElementKindConfig[];
|
|
307
|
+
/** 画布上的全部图元实例(合并原落位与装饰) */
|
|
308
|
+
sceneElements: FloorMapSceneElement[];
|
|
309
|
+
datasourceComponents?: Record<string, {
|
|
310
|
+
componentId?: string;
|
|
311
|
+
[k: string]: unknown;
|
|
312
|
+
}>;
|
|
313
|
+
edges?: FloorMapEdge[];
|
|
314
|
+
}
|
|
315
|
+
/** 编辑态:选中图元种类后的放置模式(点击画布落点) */
|
|
316
|
+
export declare type FloorMapPlaceMode = null | {
|
|
317
|
+
type: 'scene';
|
|
318
|
+
elementKind: string;
|
|
319
|
+
dataSourceKey?: string;
|
|
320
|
+
recordId?: string;
|
|
321
|
+
};
|
|
322
|
+
/** 阅读态 renderItem 可选第三参数 */
|
|
323
|
+
export interface FloorMapRenderOptions {
|
|
324
|
+
textSlotValues?: Record<string, string>;
|
|
325
|
+
}
|
|
326
|
+
/** 数据源记录表单列配置(用于编辑面板中的「数据源记录」区块) */
|
|
327
|
+
export interface DataSourceFormColumn {
|
|
328
|
+
key: string;
|
|
329
|
+
label: string;
|
|
330
|
+
type?: 'string' | 'number' | 'select';
|
|
331
|
+
options?: Array<{
|
|
332
|
+
label: string;
|
|
333
|
+
value: string;
|
|
334
|
+
}>;
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* 自定义「数据源记录」表单(ReactNode 或 render prop)可用的上下文
|
|
338
|
+
* @description 与内置 {@link FloorMapDataForm} 数据源一致,便于复杂表单、多步校验、联动等
|
|
339
|
+
*/
|
|
340
|
+
export interface FloorMapRecordFormRenderContext {
|
|
341
|
+
/** 当前数据源 key */
|
|
342
|
+
dataSourceKey: string;
|
|
343
|
+
/** 当前绑定的记录 id */
|
|
344
|
+
recordId: string;
|
|
345
|
+
/** 当前行数据(来自 dataSources) */
|
|
346
|
+
record: Record<string, unknown>;
|
|
347
|
+
/** 全量数据源,只读引用 */
|
|
348
|
+
dataSources: FloorMapDataSources;
|
|
349
|
+
/** 当前画布图元实例(含坐标、绑定等) */
|
|
350
|
+
sceneElement: FloorMapSceneElement;
|
|
351
|
+
/** 当前平面图草稿配置 */
|
|
352
|
+
config: FloorMapViewConfig;
|
|
353
|
+
/** 与侧栏「保存记录」一致:写入单条记录;未配置 {@link PisellFloorMapLayoutProps.onDataSourceRecordSave} 时为 undefined */
|
|
354
|
+
onSaveRecord?: (newData: Record<string, unknown>) => void;
|
|
355
|
+
/** 内置表单保存中的 loading 同步字段,自定义表单可自行维护 loading */
|
|
356
|
+
savingRecord: boolean;
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* 按 dataSourceKey 替换「数据源记录」区块的表单内容:静态节点或通过 context 渲染
|
|
360
|
+
*/
|
|
361
|
+
export declare type FloorMapDataSourceRecordFormContent = ReactNode | ((ctx: FloorMapRecordFormRenderContext) => ReactNode);
|
|
362
|
+
/** 选中图元后编辑面板参数 */
|
|
363
|
+
export interface FloorMapEditPanelParams {
|
|
364
|
+
itemId: string;
|
|
365
|
+
sceneElement: FloorMapSceneElement;
|
|
366
|
+
onUpdate: (patch: Partial<FloorMapSceneElement>) => void;
|
|
367
|
+
onSaveRecord?: (dataSourceKey: string, id: string, newData: Record<string, unknown>) => void;
|
|
368
|
+
onClose: () => void;
|
|
369
|
+
/** 从草稿中移除当前选中的图元,并关闭面板(需用户再点「保存」持久化布局) */
|
|
370
|
+
onDelete?: () => void;
|
|
371
|
+
/** 按 dataSourceKey 配置记录表单列(标签、类型、选项),不传则自动列举 record 除 id 外字段 */
|
|
372
|
+
recordFormColumns?: Record<string, DataSourceFormColumn[]>;
|
|
373
|
+
/**
|
|
374
|
+
* 按 dataSourceKey 完全替换「数据源记录」内的表单区域(仍保留上方「选择数据行」等)
|
|
375
|
+
* 若某 key 存在且非空,则不再渲染该 key 下的 {@link FloorMapDataForm}(列配置仅作未自定义时的后备)
|
|
376
|
+
*/
|
|
377
|
+
dataSourceRecordForm?: Record<string, FloorMapDataSourceRecordFormContent>;
|
|
378
|
+
/** 数据源 key → 展示名(侧栏「数据源」下拉与工具栏一致) */
|
|
379
|
+
dataSourceLabels?: Record<string, string>;
|
|
380
|
+
/**
|
|
381
|
+
* 布局草稿相对上游持久化配置已变更(拖拽、绑定、侧栏应用等均会写入草稿);
|
|
382
|
+
* 用于提示用户点击顶部「保存」持久化布局草稿。
|
|
383
|
+
*/
|
|
384
|
+
layoutDraftDirty?: boolean;
|
|
385
|
+
/**
|
|
386
|
+
* 为 false 时不渲染「数据绑定」下方的数据源记录编辑表单(FloorMapDataForm / 自定义 record 表单);
|
|
387
|
+
* 数据绑定选数据源与选行仍可展示。
|
|
388
|
+
*/
|
|
389
|
+
showDataSourceRecordFormBlock?: boolean;
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* 合并当前画布的 sceneElements 为 items(用于 Layout 渲染)
|
|
393
|
+
*/
|
|
394
|
+
export declare type FloorMapMergedItem = FloorMapItemBase & {
|
|
395
|
+
/** 与 {@link FloorMapSceneElement.instanceId} 一致 */
|
|
396
|
+
id: string;
|
|
397
|
+
instanceId: string;
|
|
398
|
+
_sceneElement: FloorMapSceneElement;
|
|
399
|
+
elementKind?: string;
|
|
400
|
+
};
|
|
401
|
+
/**
|
|
402
|
+
* 平面图编辑态全屏 UI 策略(`floorMapFullscreenMode`)
|
|
403
|
+
*
|
|
404
|
+
* - **toggle**(默认):顶栏提供进入/退出全屏,与浏览器 Fullscreen API 联动
|
|
405
|
+
* - **locked**:始终使用全屏顶栏(Tab + 保存等),**不提供退出全屏**;适合外层遮罩铺满
|
|
406
|
+
* - **disabled**:**不提供全屏按钮**,仅小屏顶栏 + 侧栏保存
|
|
407
|
+
*/
|
|
408
|
+
export declare type FloorMapFullscreenMode = 'toggle' | 'locked' | 'disabled';
|
|
409
|
+
/**
|
|
410
|
+
* 平面图 Layout 注入上下文:数据、保存、侧栏表单与状态等(不包含 renderItem/mapLayer 等展示向 props)。
|
|
411
|
+
* 由 `FloorMapLayoutProvider` / RecordBoard `floorMapLayoutContext` 提供,与 `PisellFloorMapLayout` props 按 `??` 合并,props 优先。
|
|
412
|
+
*/
|
|
413
|
+
export declare type FloorMapLayoutContextValue = Partial<Pick<PisellFloorMapLayoutProps<FloorMapItemBase>, 'floorMapConfig' | 'dataSources' | 'onSave' | 'onDataSourceRecordSave' | 'dataSourceLabels' | 'dataSourceFormColumns' | 'dataSourceRecordForm' | 'loading' | 'saveError' | 'onElementRenderError' | 'toolbarShowSave' | 'floorMapFullscreenMode' | 'showDataSourceRecordFormBlock'>>;
|
|
109
414
|
/**
|
|
110
415
|
* PisellFloorMapLayout 组件 Props
|
|
111
416
|
* @template T - 资源项类型,需继承 FloorMapItemBase 或兼容 id/x/y
|
|
@@ -125,12 +430,23 @@ export interface PisellFloorMapLayoutProps<T extends FloorMapItemBase = FloorMap
|
|
|
125
430
|
items: T[];
|
|
126
431
|
/**
|
|
127
432
|
* 每个资源项的渲染函数;内容与样式由调用方完全控制
|
|
433
|
+
* 当使用 floorMapConfig 时可选传入第三参数 options(如 textSlotValues)
|
|
128
434
|
*/
|
|
129
|
-
renderItem: (item: T, index: number) => ReactNode;
|
|
435
|
+
renderItem: (item: T, index: number, options?: FloorMapRenderOptions) => ReactNode;
|
|
130
436
|
/**
|
|
131
437
|
* 指定每项的唯一 key,默认使用 item.id
|
|
132
438
|
*/
|
|
133
439
|
rowKey?: string | ((item: T, index: number) => string);
|
|
440
|
+
/**
|
|
441
|
+
* 按 elementKind 的渲染函数(key 为 kind value),优先于 renderItem
|
|
442
|
+
* 仅在使用 floorMapConfig 时生效
|
|
443
|
+
*/
|
|
444
|
+
renderItemByKind?: Record<string, (item: T, index: number, options?: FloorMapRenderOptions) => ReactNode>;
|
|
445
|
+
/**
|
|
446
|
+
* 合并图元**外层定位容器**的额外样式(如列表/搜索筛选未命中时降低透明度)。
|
|
447
|
+
* 在宽高与定位样式之后展开合并,适合传 `opacity`;避免覆盖 `position/left/top/width/height` 除非有意为之。
|
|
448
|
+
*/
|
|
449
|
+
getMergedItemWrapperStyle?: (item: T, index: number) => CSSProperties | undefined;
|
|
134
450
|
/**
|
|
135
451
|
* 底层(地图层)配置:背景、网格、padding、gap、吸附
|
|
136
452
|
*/
|
|
@@ -182,6 +498,49 @@ export interface PisellFloorMapLayoutProps<T extends FloorMapItemBase = FloorMap
|
|
|
182
498
|
* 资源项鼠标离开
|
|
183
499
|
*/
|
|
184
500
|
onItemLeave?: (item: T, index: number, event: ReactMouseEvent<HTMLElement>) => void;
|
|
501
|
+
/** 编辑态全屏按钮与顶栏形态,见 {@link FloorMapFullscreenMode} */
|
|
502
|
+
floorMapFullscreenMode?: FloorMapFullscreenMode;
|
|
503
|
+
/**
|
|
504
|
+
* 模式:read 仅展示,edit 可编辑;与 floorMapConfig 同时使用时生效
|
|
505
|
+
*/
|
|
506
|
+
mode?: 'read' | 'edit';
|
|
507
|
+
/**
|
|
508
|
+
* 平面图视图配置;传入时由组件内部按当前画布合并 items,忽略外部传入的 items
|
|
509
|
+
*/
|
|
510
|
+
floorMapConfig?: FloorMapViewConfig;
|
|
511
|
+
/**
|
|
512
|
+
* 多数据源;与 floorMapConfig 同时使用
|
|
513
|
+
*/
|
|
514
|
+
dataSources?: FloorMapDataSources;
|
|
515
|
+
/** 保存平面图配置,由上层调接口持久化 */
|
|
516
|
+
onSave?: (config: FloorMapViewConfig) => void;
|
|
517
|
+
/** 保存单条数据源记录 */
|
|
518
|
+
onDataSourceRecordSave?: (dataSourceKey: string, id: string, newData: Record<string, unknown>) => void;
|
|
519
|
+
/** 数据源展示名,key 为 dataSourceKey */
|
|
520
|
+
dataSourceLabels?: Record<string, string>;
|
|
521
|
+
/** 按 dataSourceKey 配置编辑面板「数据源记录」表单列(标签、类型、选项) */
|
|
522
|
+
dataSourceFormColumns?: Record<string, DataSourceFormColumn[]>;
|
|
523
|
+
/**
|
|
524
|
+
* 按 dataSourceKey 自定义侧栏「数据源记录」表单:传入 ReactNode 或 `(ctx) => ReactNode`;
|
|
525
|
+
* 指定 key 后优先于 dataSourceFormColumns + 内置 FloorMapDataForm,用于复杂业务表单
|
|
526
|
+
*/
|
|
527
|
+
dataSourceRecordForm?: Record<string, FloorMapDataSourceRecordFormContent>;
|
|
528
|
+
/** 编辑态 loading */
|
|
529
|
+
loading?: boolean;
|
|
530
|
+
/** 保存失败时的错误信息 */
|
|
531
|
+
saveError?: Error | string;
|
|
532
|
+
/**
|
|
533
|
+
* 单图元渲染抛出异常或内部校验失败时回调(如 renderItemByKind 抛错、绑定数据不合法)
|
|
534
|
+
*/
|
|
535
|
+
onElementRenderError?: (element: FloorMapSceneElement, error: unknown) => void;
|
|
536
|
+
/**
|
|
537
|
+
* 是否在左侧工具栏底部显示「保存」(默认 true;非全屏时顶栏为 Tab+全屏,保存多在侧栏;全屏时保存仅在顶栏)
|
|
538
|
+
*/
|
|
539
|
+
toolbarShowSave?: boolean;
|
|
540
|
+
/**
|
|
541
|
+
* 为 false 时隐藏侧栏「数据源记录」表单区(保留数据绑定选源/选行)。
|
|
542
|
+
*/
|
|
543
|
+
showDataSourceRecordFormBlock?: boolean;
|
|
185
544
|
}
|
|
186
545
|
/**
|
|
187
546
|
* PisellFloorMapLayout Ref 方法
|
|
@@ -196,4 +555,6 @@ export interface PisellFloorMapLayoutRef {
|
|
|
196
555
|
reset: () => void;
|
|
197
556
|
/** 区域定位:使所有 items 落在视口内 */
|
|
198
557
|
fitBounds: () => void;
|
|
558
|
+
/** 提交当前布局草稿(与顶栏/侧栏「保存」一致) */
|
|
559
|
+
saveLayout: () => void;
|
|
199
560
|
}
|
|
@@ -2,6 +2,10 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
5
9
|
var __copyProps = (to, from, except, desc) => {
|
|
6
10
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
11
|
for (let key of __getOwnPropNames(from))
|
|
@@ -14,4 +18,15 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
14
18
|
|
|
15
19
|
// src/components/pisellFloorMapLayout/types.ts
|
|
16
20
|
var types_exports = {};
|
|
21
|
+
__export(types_exports, {
|
|
22
|
+
FLOOR_MAP_IMAGE_ELEMENT_KIND: () => FLOOR_MAP_IMAGE_ELEMENT_KIND,
|
|
23
|
+
FLOOR_MAP_STAGE_ELEMENT_KIND: () => FLOOR_MAP_STAGE_ELEMENT_KIND
|
|
24
|
+
});
|
|
17
25
|
module.exports = __toCommonJS(types_exports);
|
|
26
|
+
var FLOOR_MAP_STAGE_ELEMENT_KIND = "stage";
|
|
27
|
+
var FLOOR_MAP_IMAGE_ELEMENT_KIND = "floorMapImage";
|
|
28
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
29
|
+
0 && (module.exports = {
|
|
30
|
+
FLOOR_MAP_IMAGE_ELEMENT_KIND,
|
|
31
|
+
FLOOR_MAP_STAGE_ELEMENT_KIND
|
|
32
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { FloorMapCanvas, FloorMapCanvasNameI18n } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* 合并平面图 Tab 用多语言包(与业务侧 `locales.init` 可叠加)。
|
|
4
|
+
*/
|
|
5
|
+
export declare function initFloorMapLayoutLocales(engineLocale: string): void;
|
|
6
|
+
/**
|
|
7
|
+
* 从多语言对象中取当前 locale 下展示字符串,缺省按 en → 其余首个非空。
|
|
8
|
+
*/
|
|
9
|
+
export declare function pickFloorMapCanvasI18nString(obj: FloorMapCanvasNameI18n, engineLocale: string): string;
|
|
10
|
+
/**
|
|
11
|
+
* 画布在 Tab / 下拉中的展示名:
|
|
12
|
+
* 1. `name` 为多语言对象时 **优先** 按引擎 locale 取字段(与配置内嵌文案一致);
|
|
13
|
+
* 2. 否则 `nameKey` + `locales.getText`(需业务侧已 init 对应语言包);
|
|
14
|
+
* 3. 否则 `name` 字符串。
|
|
15
|
+
*/
|
|
16
|
+
export declare function getFloorMapCanvasDisplayName(canvas: FloorMapCanvas, engineLocale: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* 打开重命名弹层时的初始多语言值(与 Translation 表单一致)。
|
|
19
|
+
*/
|
|
20
|
+
export declare function seedFloorMapCanvasNameI18n(canvas: FloorMapCanvas, displayFallback: string): FloorMapCanvasNameI18n;
|