@collabdt/core 0.19.0 → 0.21.0
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/dist/core/components/AppSidebarContent.d.ts.map +1 -1
- package/dist/core/components/AppSidebarContent.js +47 -43
- package/dist/core/components/AppSidebarContent.js.map +1 -1
- package/dist/core/components/ConfirmDialog.d.ts.map +1 -1
- package/dist/core/components/ConfirmDialog.js +2 -1
- package/dist/core/components/ConfirmDialog.js.map +1 -1
- package/dist/core/components/ToolbarBody.d.ts.map +1 -1
- package/dist/core/components/ToolbarBody.js +2 -1
- package/dist/core/components/ToolbarBody.js.map +1 -1
- package/dist/core/components/TopNavigationBar.d.ts.map +1 -1
- package/dist/core/components/TopNavigationBar.js +5 -2
- package/dist/core/components/TopNavigationBar.js.map +1 -1
- package/dist/core/components/authentication/Signin.d.ts +3 -1
- package/dist/core/components/authentication/Signin.d.ts.map +1 -1
- package/dist/core/components/authentication/Signin.js +14 -3
- package/dist/core/components/authentication/Signin.js.map +1 -1
- package/dist/core/components/settings/index.js +1 -1
- package/dist/core/components/settings/index.js.map +1 -1
- package/dist/core/components/settings/src/SettingsContent.js +1 -1
- package/dist/core/components/settings/src/SettingsContent.js.map +1 -1
- package/dist/core/components/settings/src/SettingsSidebar.d.ts.map +1 -1
- package/dist/core/components/settings/src/SettingsSidebar.js +3 -10
- package/dist/core/components/settings/src/SettingsSidebar.js.map +1 -1
- package/dist/core/components/settings/src/settingsTabs.d.ts +6 -0
- package/dist/core/components/settings/src/settingsTabs.d.ts.map +1 -0
- package/dist/core/components/settings/src/settingsTabs.js +12 -0
- package/dist/core/components/settings/src/settingsTabs.js.map +1 -0
- package/dist/core/components/support/SupportMenu.d.ts +2 -1
- package/dist/core/components/support/SupportMenu.d.ts.map +1 -1
- package/dist/core/components/support/SupportMenu.js +12 -1
- package/dist/core/components/support/SupportMenu.js.map +1 -1
- package/dist/core/components/tour/GuidedTour.d.ts +5 -0
- package/dist/core/components/tour/GuidedTour.d.ts.map +1 -0
- package/dist/core/components/tour/GuidedTour.js +191 -0
- package/dist/core/components/tour/GuidedTour.js.map +1 -0
- package/dist/core/components/tour/TourBody.d.ts +8 -0
- package/dist/core/components/tour/TourBody.d.ts.map +1 -0
- package/dist/core/components/tour/TourBody.js +28 -0
- package/dist/core/components/tour/TourBody.js.map +1 -0
- package/dist/core/components/tour/TourItems.d.ts +7 -0
- package/dist/core/components/tour/TourItems.d.ts.map +1 -0
- package/dist/core/components/tour/TourItems.js +19 -0
- package/dist/core/components/tour/TourItems.js.map +1 -0
- package/dist/core/components/tour/contentBox.d.ts +4 -0
- package/dist/core/components/tour/contentBox.d.ts.map +1 -0
- package/dist/core/components/tour/contentBox.js +43 -0
- package/dist/core/components/tour/contentBox.js.map +1 -0
- package/dist/core/components/tour/hostTargets.d.ts +11 -0
- package/dist/core/components/tour/hostTargets.d.ts.map +1 -0
- package/dist/core/components/tour/hostTargets.js +24 -0
- package/dist/core/components/tour/hostTargets.js.map +1 -0
- package/dist/core/components/tour/index.d.ts +8 -0
- package/dist/core/components/tour/index.d.ts.map +1 -0
- package/dist/core/components/tour/index.js +15 -0
- package/dist/core/components/tour/index.js.map +1 -0
- package/dist/core/components/tour/placement.d.ts +24 -0
- package/dist/core/components/tour/placement.d.ts.map +1 -0
- package/dist/core/components/tour/placement.js +100 -0
- package/dist/core/components/tour/placement.js.map +1 -0
- package/dist/core/components/tour/platform/MenuPathText.d.ts +7 -0
- package/dist/core/components/tour/platform/MenuPathText.d.ts.map +1 -0
- package/dist/core/components/tour/platform/MenuPathText.js +22 -0
- package/dist/core/components/tour/platform/MenuPathText.js.map +1 -0
- package/dist/core/components/tour/platform/PlatformTour.d.ts +7 -0
- package/dist/core/components/tour/platform/PlatformTour.d.ts.map +1 -0
- package/dist/core/components/tour/platform/PlatformTour.js +57 -0
- package/dist/core/components/tour/platform/PlatformTour.js.map +1 -0
- package/dist/core/components/tour/platform/TourLegendDemo.d.ts +4 -0
- package/dist/core/components/tour/platform/TourLegendDemo.d.ts.map +1 -0
- package/dist/core/components/tour/platform/TourLegendDemo.js +26 -0
- package/dist/core/components/tour/platform/TourLegendDemo.js.map +1 -0
- package/dist/core/components/tour/platform/helloMapDemo.d.ts +13 -0
- package/dist/core/components/tour/platform/helloMapDemo.d.ts.map +1 -0
- package/dist/core/components/tour/platform/helloMapDemo.js +147 -0
- package/dist/core/components/tour/platform/helloMapDemo.js.map +1 -0
- package/dist/core/components/tour/platform/liveDemo.d.ts +10 -0
- package/dist/core/components/tour/platform/liveDemo.d.ts.map +1 -0
- package/dist/core/components/tour/platform/liveDemo.js +58 -0
- package/dist/core/components/tour/platform/liveDemo.js.map +1 -0
- package/dist/core/components/tour/platform/placeDemo.d.ts +30 -0
- package/dist/core/components/tour/platform/placeDemo.d.ts.map +1 -0
- package/dist/core/components/tour/platform/placeDemo.js +168 -0
- package/dist/core/components/tour/platform/placeDemo.js.map +1 -0
- package/dist/core/components/tour/platform/platformHost.d.ts +57 -0
- package/dist/core/components/tour/platform/platformHost.d.ts.map +1 -0
- package/dist/core/components/tour/platform/platformHost.js +290 -0
- package/dist/core/components/tour/platform/platformHost.js.map +1 -0
- package/dist/core/components/tour/platform/platformTourSteps.d.ts +50 -0
- package/dist/core/components/tour/platform/platformTourSteps.d.ts.map +1 -0
- package/dist/core/components/tour/platform/platformTourSteps.js +168 -0
- package/dist/core/components/tour/platform/platformTourSteps.js.map +1 -0
- package/dist/core/components/tour/platform/platformTourTypes.d.ts +51 -0
- package/dist/core/components/tour/platform/platformTourTypes.d.ts.map +1 -0
- package/dist/core/components/tour/platform/platformTourTypes.js +1 -0
- package/dist/core/components/tour/platform/platformTourTypes.js.map +1 -0
- package/dist/core/components/tour/platform/subTourSteps.d.ts +15 -0
- package/dist/core/components/tour/platform/subTourSteps.d.ts.map +1 -0
- package/dist/core/components/tour/platform/subTourSteps.js +482 -0
- package/dist/core/components/tour/platform/subTourSteps.js.map +1 -0
- package/dist/core/components/tour/platform/tourDemos.d.ts +8 -0
- package/dist/core/components/tour/platform/tourDemos.d.ts.map +1 -0
- package/dist/core/components/tour/platform/tourDemos.js +26 -0
- package/dist/core/components/tour/platform/tourDemos.js.map +1 -0
- package/dist/core/components/tour/platform/tourPlace.d.ts +25 -0
- package/dist/core/components/tour/platform/tourPlace.d.ts.map +1 -0
- package/dist/core/components/tour/platform/tourPlace.js +72 -0
- package/dist/core/components/tour/platform/tourPlace.js.map +1 -0
- package/dist/core/components/tour/platform/tourRoutes.d.ts +20 -0
- package/dist/core/components/tour/platform/tourRoutes.d.ts.map +1 -0
- package/dist/core/components/tour/platform/tourRoutes.js +60 -0
- package/dist/core/components/tour/platform/tourRoutes.js.map +1 -0
- package/dist/core/components/tour/platform/useDatasetPort.d.ts +4 -0
- package/dist/core/components/tour/platform/useDatasetPort.d.ts.map +1 -0
- package/dist/core/components/tour/platform/useDatasetPort.js +20 -0
- package/dist/core/components/tour/platform/useDatasetPort.js.map +1 -0
- package/dist/core/components/tour/platform/useGuideStart.d.ts +7 -0
- package/dist/core/components/tour/platform/useGuideStart.d.ts.map +1 -0
- package/dist/core/components/tour/platform/useGuideStart.js +34 -0
- package/dist/core/components/tour/platform/useGuideStart.js.map +1 -0
- package/dist/core/components/tour/platform/useMapItemPorts.d.ts +6 -0
- package/dist/core/components/tour/platform/useMapItemPorts.d.ts.map +1 -0
- package/dist/core/components/tour/platform/useMapItemPorts.js +96 -0
- package/dist/core/components/tour/platform/useMapItemPorts.js.map +1 -0
- package/dist/core/components/tour/platform/useMapStyleTour.d.ts +8 -0
- package/dist/core/components/tour/platform/useMapStyleTour.d.ts.map +1 -0
- package/dist/core/components/tour/platform/useMapStyleTour.js +39 -0
- package/dist/core/components/tour/platform/useMapStyleTour.js.map +1 -0
- package/dist/core/components/tour/platform/usePlatformTour.d.ts +15 -0
- package/dist/core/components/tour/platform/usePlatformTour.d.ts.map +1 -0
- package/dist/core/components/tour/platform/usePlatformTour.js +119 -0
- package/dist/core/components/tour/platform/usePlatformTour.js.map +1 -0
- package/dist/core/components/tour/platform/usePlatformTourActions.d.ts +4 -0
- package/dist/core/components/tour/platform/usePlatformTourActions.d.ts.map +1 -0
- package/dist/core/components/tour/platform/usePlatformTourActions.js +125 -0
- package/dist/core/components/tour/platform/usePlatformTourActions.js.map +1 -0
- package/dist/core/components/tour/platform/usePluginTourEntries.d.ts +16 -0
- package/dist/core/components/tour/platform/usePluginTourEntries.d.ts.map +1 -0
- package/dist/core/components/tour/platform/usePluginTourEntries.js +37 -0
- package/dist/core/components/tour/platform/usePluginTourEntries.js.map +1 -0
- package/dist/core/components/tour/platform/zoningDemo.d.ts +30 -0
- package/dist/core/components/tour/platform/zoningDemo.d.ts.map +1 -0
- package/dist/core/components/tour/platform/zoningDemo.js +280 -0
- package/dist/core/components/tour/platform/zoningDemo.js.map +1 -0
- package/dist/core/components/tour/tourQueue.d.ts +9 -0
- package/dist/core/components/tour/tourQueue.d.ts.map +1 -0
- package/dist/core/components/tour/tourQueue.js +43 -0
- package/dist/core/components/tour/tourQueue.js.map +1 -0
- package/dist/core/components/tour/tourStore.d.ts +15 -0
- package/dist/core/components/tour/tourStore.d.ts.map +1 -0
- package/dist/core/components/tour/tourStore.js +30 -0
- package/dist/core/components/tour/tourStore.js.map +1 -0
- package/dist/core/components/tour/tourStyles.d.ts +3 -0
- package/dist/core/components/tour/tourStyles.d.ts.map +1 -0
- package/dist/core/components/tour/tourStyles.js +95 -0
- package/dist/core/components/tour/tourStyles.js.map +1 -0
- package/dist/core/components/tour/tourTypes.d.ts +61 -0
- package/dist/core/components/tour/tourTypes.d.ts.map +1 -0
- package/dist/core/components/tour/tourTypes.js +1 -0
- package/dist/core/components/tour/tourTypes.js.map +1 -0
- package/dist/core/components/tour/useTour.d.ts +8 -0
- package/dist/core/components/tour/useTour.d.ts.map +1 -0
- package/dist/core/components/tour/useTour.js +20 -0
- package/dist/core/components/tour/useTour.js.map +1 -0
- package/dist/core/components/tour/useTourLayout.d.ts +26 -0
- package/dist/core/components/tour/useTourLayout.d.ts.map +1 -0
- package/dist/core/components/tour/useTourLayout.js +197 -0
- package/dist/core/components/tour/useTourLayout.js.map +1 -0
- package/dist/core/components/ui/AppSidebar.d.ts.map +1 -1
- package/dist/core/components/ui/AppSidebar.js +5 -3
- package/dist/core/components/ui/AppSidebar.js.map +1 -1
- package/dist/core/components/ui/CollapsibleSection.d.ts +3 -1
- package/dist/core/components/ui/CollapsibleSection.d.ts.map +1 -1
- package/dist/core/components/ui/CollapsibleSection.js +4 -2
- package/dist/core/components/ui/CollapsibleSection.js.map +1 -1
- package/dist/core/components/ui/Comments/CollapsibleCommentItem.d.ts.map +1 -1
- package/dist/core/components/ui/Comments/CollapsibleCommentItem.js +1 -0
- package/dist/core/components/ui/Comments/CollapsibleCommentItem.js.map +1 -1
- package/dist/core/components/ui/Comments/CommentActionButtons.d.ts.map +1 -1
- package/dist/core/components/ui/Comments/CommentActionButtons.js +1 -0
- package/dist/core/components/ui/Comments/CommentActionButtons.js.map +1 -1
- package/dist/core/components/ui/Comments/CommentInput.d.ts.map +1 -1
- package/dist/core/components/ui/Comments/CommentInput.js +7 -2
- package/dist/core/components/ui/Comments/CommentInput.js.map +1 -1
- package/dist/core/components/ui/Comments/CommentsSection.js +1 -1
- package/dist/core/components/ui/Comments/CommentsSection.js.map +1 -1
- package/dist/core/components/ui/Sensors/CollapsibleSensorItem.d.ts.map +1 -1
- package/dist/core/components/ui/Sensors/CollapsibleSensorItem.js +1 -0
- package/dist/core/components/ui/Sensors/CollapsibleSensorItem.js.map +1 -1
- package/dist/core/components/ui/Sensors/SensorInput.d.ts.map +1 -1
- package/dist/core/components/ui/Sensors/SensorInput.js +9 -3
- package/dist/core/components/ui/Sensors/SensorInput.js.map +1 -1
- package/dist/core/components/ui/Sensors/SensorsSection.d.ts.map +1 -1
- package/dist/core/components/ui/Sensors/SensorsSection.js +5 -2
- package/dist/core/components/ui/Sensors/SensorsSection.js.map +1 -1
- package/dist/core/components/ui/SettingsButton.js +1 -1
- package/dist/core/components/ui/SettingsButton.js.map +1 -1
- package/dist/core/components/ui/ShareFeature/ShareToolSubmenu.js +5 -5
- package/dist/core/components/ui/ShareFeature/ShareToolSubmenu.js.map +1 -1
- package/dist/core/components/ui/Sidebar.d.ts +2 -0
- package/dist/core/components/ui/Sidebar.d.ts.map +1 -1
- package/dist/core/components/ui/Sidebar.js +5 -2
- package/dist/core/components/ui/Sidebar.js.map +1 -1
- package/dist/core/components/ui/ViewerSidebar/Panel.js +1 -1
- package/dist/core/components/ui/ViewerSidebar/Panel.js.map +1 -1
- package/dist/core/components/ui/ViewerSidebar/SettingsSection.d.ts +3 -1
- package/dist/core/components/ui/ViewerSidebar/SettingsSection.d.ts.map +1 -1
- package/dist/core/components/ui/ViewerSidebar/SettingsSection.js +3 -1
- package/dist/core/components/ui/ViewerSidebar/SettingsSection.js.map +1 -1
- package/dist/core/components/ui/ViewerSidebar/Shell.d.ts.map +1 -1
- package/dist/core/components/ui/ViewerSidebar/Shell.js +2 -1
- package/dist/core/components/ui/ViewerSidebar/Shell.js.map +1 -1
- package/dist/core/components/viewers/Data/DataMenu.js +3 -3
- package/dist/core/components/viewers/Data/DataMenu.js.map +1 -1
- package/dist/core/components/viewers/Viewer.d.ts.map +1 -1
- package/dist/core/components/viewers/Viewer.js +3 -1
- package/dist/core/components/viewers/Viewer.js.map +1 -1
- package/dist/core/components/viewers/bim/BimViewer.d.ts.map +1 -1
- package/dist/core/components/viewers/bim/BimViewer.js +2 -0
- package/dist/core/components/viewers/bim/BimViewer.js.map +1 -1
- package/dist/core/components/viewers/bim/src/BimLoadingState/index.js +1 -1
- package/dist/core/components/viewers/bim/src/BimLoadingState/index.js.map +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/FileTab/index.js +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/FileTab/index.js.map +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/LayersTab/index.js +2 -2
- package/dist/core/components/viewers/bim/src/BimSidebar/src/LayersTab/index.js.map +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/CameraSettings.js +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/CameraSettings.js.map +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/GridManagement.d.ts.map +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/GridManagement.js +1 -0
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/GridManagement.js.map +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/LightingManagement.d.ts.map +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/LightingManagement.js +1 -0
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/LightingManagement.js.map +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/MeasurementSettings.d.ts.map +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/MeasurementSettings.js +1 -0
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/MeasurementSettings.js.map +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/NavigationMode.js +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/NavigationMode.js.map +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/PointCloudSettings.d.ts.map +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/PointCloudSettings.js +1 -0
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/PointCloudSettings.js.map +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/RenderMode.js +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/RenderMode.js.map +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/ToggleProjection.js +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/ToggleProjection.js.map +1 -1
- package/dist/core/components/viewers/bim/src/ViewportGizmo.d.ts.map +1 -1
- package/dist/core/components/viewers/bim/src/ViewportGizmo.js +3 -1
- package/dist/core/components/viewers/bim/src/ViewportGizmo.js.map +1 -1
- package/dist/core/components/viewers/bim/src/lib/useBimLastView.d.ts +3 -0
- package/dist/core/components/viewers/bim/src/lib/useBimLastView.d.ts.map +1 -0
- package/dist/core/components/viewers/bim/src/lib/useBimLastView.js +42 -0
- package/dist/core/components/viewers/bim/src/lib/useBimLastView.js.map +1 -0
- package/dist/core/components/viewers/bim/src/tools/shareBimTool.d.ts.map +1 -1
- package/dist/core/components/viewers/bim/src/tools/shareBimTool.js +5 -12
- package/dist/core/components/viewers/bim/src/tools/shareBimTool.js.map +1 -1
- package/dist/core/components/viewers/bim/utils/setCameraLookAt.d.ts +8 -0
- package/dist/core/components/viewers/bim/utils/setCameraLookAt.d.ts.map +1 -1
- package/dist/core/components/viewers/bim/utils/setCameraLookAt.js +8 -1
- package/dist/core/components/viewers/bim/utils/setCameraLookAt.js.map +1 -1
- package/dist/core/components/viewers/map/MapViewer.d.ts.map +1 -1
- package/dist/core/components/viewers/map/MapViewer.js +7 -3
- package/dist/core/components/viewers/map/MapViewer.js.map +1 -1
- package/dist/core/components/viewers/map/datasets/DatasetManager/index.d.ts.map +1 -1
- package/dist/core/components/viewers/map/datasets/DatasetManager/index.js +3 -2
- package/dist/core/components/viewers/map/datasets/DatasetManager/index.js.map +1 -1
- package/dist/core/components/viewers/map/datasets/DatasetManager/src/DatasetLayerActions.d.ts.map +1 -1
- package/dist/core/components/viewers/map/datasets/DatasetManager/src/DatasetLayerActions.js +2 -1
- package/dist/core/components/viewers/map/datasets/DatasetManager/src/DatasetLayerActions.js.map +1 -1
- package/dist/core/components/viewers/map/datasets/DatasetManager/src/DatasetStylePanel.d.ts.map +1 -1
- package/dist/core/components/viewers/map/datasets/DatasetManager/src/DatasetStylePanel.js +1 -0
- package/dist/core/components/viewers/map/datasets/DatasetManager/src/DatasetStylePanel.js.map +1 -1
- package/dist/core/components/viewers/map/datasets/RowActions.js +1 -1
- package/dist/core/components/viewers/map/datasets/RowActions.js.map +1 -1
- package/dist/core/components/viewers/map/datasets/index.d.ts.map +1 -1
- package/dist/core/components/viewers/map/datasets/index.js +13 -12
- package/dist/core/components/viewers/map/datasets/index.js.map +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/src/FileTab/index.js +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/src/FileTab/index.js.map +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/src/LayersTab/index.js +2 -2
- package/dist/core/components/viewers/map/src/MapSidebar/src/LayersTab/index.js.map +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/src/SettingsTab/src/BuildingVisibility.js +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/src/SettingsTab/src/BuildingVisibility.js.map +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/src/SettingsTab/src/LocationSettings.js +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/src/SettingsTab/src/LocationSettings.js.map +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/src/SettingsTab/src/MapCustomization.d.ts.map +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/src/SettingsTab/src/MapCustomization.js +7 -19
- package/dist/core/components/viewers/map/src/MapSidebar/src/SettingsTab/src/MapCustomization.js.map +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/src/SettingsTab/src/MapProjection.js +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/src/SettingsTab/src/MapProjection.js.map +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/src/SettingsTab/src/TerrainLevel.js +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/src/SettingsTab/src/TerrainLevel.js.map +1 -1
- package/dist/core/components/viewers/map/src/compare/index.d.ts.map +1 -1
- package/dist/core/components/viewers/map/src/compare/index.js +4 -1
- package/dist/core/components/viewers/map/src/compare/index.js.map +1 -1
- package/dist/core/components/viewers/map/src/tools/DatasetMapTool.d.ts.map +1 -1
- package/dist/core/components/viewers/map/src/tools/DatasetMapTool.js +3 -1
- package/dist/core/components/viewers/map/src/tools/DatasetMapTool.js.map +1 -1
- package/dist/core/components/viewers/map/src/tools/measureMapTool.js +2 -2
- package/dist/core/components/viewers/map/src/tools/measureMapTool.js.map +1 -1
- package/dist/core/components/viewers/map/utils/mapStyleCatalog.d.ts +5 -9
- package/dist/core/components/viewers/map/utils/mapStyleCatalog.d.ts.map +1 -1
- package/dist/core/components/viewers/map/utils/mapStyleCatalog.js +8 -3
- package/dist/core/components/viewers/map/utils/mapStyleCatalog.js.map +1 -1
- package/dist/core/components/viewers/map/utils/urlLocation/useMapLastView.d.ts +4 -0
- package/dist/core/components/viewers/map/utils/urlLocation/useMapLastView.d.ts.map +1 -0
- package/dist/core/components/viewers/map/utils/urlLocation/useMapLastView.js +32 -0
- package/dist/core/components/viewers/map/utils/urlLocation/useMapLastView.js.map +1 -0
- package/dist/core/components/viewers/map/utils/useOrganizationMapStyles.d.ts +6 -0
- package/dist/core/components/viewers/map/utils/useOrganizationMapStyles.d.ts.map +1 -0
- package/dist/core/components/viewers/map/utils/useOrganizationMapStyles.js +22 -0
- package/dist/core/components/viewers/map/utils/useOrganizationMapStyles.js.map +1 -0
- package/dist/core/components/viewers/plugins/PluginsManager.d.ts.map +1 -1
- package/dist/core/components/viewers/plugins/PluginsManager.js +36 -17
- package/dist/core/components/viewers/plugins/PluginsManager.js.map +1 -1
- package/dist/core/components/viewers/plugins/src/PluginDetails.d.ts +2 -1
- package/dist/core/components/viewers/plugins/src/PluginDetails.d.ts.map +1 -1
- package/dist/core/components/viewers/plugins/src/PluginDetails.js +8 -3
- package/dist/core/components/viewers/plugins/src/PluginDetails.js.map +1 -1
- package/dist/core/components/viewers/plugins/src/PluginRow.js +1 -1
- package/dist/core/components/viewers/plugins/src/PluginRow.js.map +1 -1
- package/dist/core/components/viewers/shared/lastView/LastViewPrompt.d.ts +3 -0
- package/dist/core/components/viewers/shared/lastView/LastViewPrompt.d.ts.map +1 -0
- package/dist/core/components/viewers/shared/lastView/LastViewPrompt.js +32 -0
- package/dist/core/components/viewers/shared/lastView/LastViewPrompt.js.map +1 -0
- package/dist/core/components/viewers/shared/lastView/lastViewStore.d.ts +14 -0
- package/dist/core/components/viewers/shared/lastView/lastViewStore.d.ts.map +1 -0
- package/dist/core/components/viewers/shared/lastView/lastViewStore.js +58 -0
- package/dist/core/components/viewers/shared/lastView/lastViewStore.js.map +1 -0
- package/dist/core/components/viewers/shared/lastView/useLastViewScope.d.ts +3 -0
- package/dist/core/components/viewers/shared/lastView/useLastViewScope.d.ts.map +1 -0
- package/dist/core/components/viewers/shared/lastView/useLastViewScope.js +17 -0
- package/dist/core/components/viewers/shared/lastView/useLastViewScope.js.map +1 -0
- package/dist/core/hooks/ui/useChangeViewer.d.ts +4 -0
- package/dist/core/hooks/ui/useChangeViewer.d.ts.map +1 -0
- package/dist/core/hooks/ui/useChangeViewer.js +22 -0
- package/dist/core/hooks/ui/useChangeViewer.js.map +1 -0
- package/dist/core/i18n/messages/en.json +971 -0
- package/dist/core/i18n/messages/es.json +971 -0
- package/dist/core/i18n/messages/fr.json +971 -0
- package/dist/core/plugins/host/runtimeShims.d.ts.map +1 -1
- package/dist/core/plugins/host/runtimeShims.js +14 -0
- package/dist/core/plugins/host/runtimeShims.js.map +1 -1
- package/dist/core/plugins/host/usePluginToolbarTools.d.ts +2 -0
- package/dist/core/plugins/host/usePluginToolbarTools.d.ts.map +1 -1
- package/dist/core/plugins/host/usePluginToolbarTools.js +1 -0
- package/dist/core/plugins/host/usePluginToolbarTools.js.map +1 -1
- package/dist/core/plugins/sdk/tour.d.ts +3 -0
- package/dist/core/plugins/sdk/tour.d.ts.map +1 -0
- package/dist/core/plugins/sdk/tour.js +22 -0
- package/dist/core/plugins/sdk/tour.js.map +1 -0
- package/dist/core/store/Map/context.d.ts.map +1 -1
- package/dist/core/store/Map/context.js +1 -2
- package/dist/core/store/Map/context.js.map +1 -1
- package/dist/core/types/dbTypes.d.ts +8 -0
- package/dist/core/types/dbTypes.d.ts.map +1 -1
- package/dist/core/types/dbTypes.js +9 -0
- package/dist/core/types/dbTypes.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
import { anchorSelector, findAnchor } from "../hostTargets";
|
|
2
|
+
const TYPING_DELAY_MS = 70;
|
|
3
|
+
const EXPAND_DELAY_MS = 150;
|
|
4
|
+
const findToolButton = (toolId, root = document) => root.querySelector(`${anchorSelector(`tool-${toolId}`)} button`);
|
|
5
|
+
const isExpanded = (button) => button.getAttribute("aria-expanded") === "true";
|
|
6
|
+
function openToolPanel(toolId, root = document) {
|
|
7
|
+
const button = findToolButton(toolId, root);
|
|
8
|
+
const panelId = button && isExpanded(button) ? button.getAttribute("aria-controls") : null;
|
|
9
|
+
return panelId ? root.getElementById(panelId) : null;
|
|
10
|
+
}
|
|
11
|
+
const findToolTarget = (toolId, root = document) => {
|
|
12
|
+
var _a;
|
|
13
|
+
return (_a = openToolPanel(toolId, root)) != null ? _a : findAnchor(`tool-${toolId}`, root);
|
|
14
|
+
};
|
|
15
|
+
function setToolOpen(toolId, open, root = document) {
|
|
16
|
+
const button = findToolButton(toolId, root);
|
|
17
|
+
if (!(button == null ? void 0 : button.hasAttribute("aria-expanded")) || isExpanded(button) === open) return;
|
|
18
|
+
const Pointer = typeof PointerEvent === "function" ? PointerEvent : MouseEvent;
|
|
19
|
+
button.dispatchEvent(new Pointer("pointerdown", { bubbles: true, cancelable: true, button: 0 }));
|
|
20
|
+
button.click();
|
|
21
|
+
}
|
|
22
|
+
const setNativeValue = (input, value) => {
|
|
23
|
+
var _a, _b;
|
|
24
|
+
(_b = (_a = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value")) == null ? void 0 : _a.set) == null ? void 0 : _b.call(input, value);
|
|
25
|
+
input.dispatchEvent(new Event("input", { bubbles: true }));
|
|
26
|
+
};
|
|
27
|
+
function typeInto(input, text, onTyped, delay = TYPING_DELAY_MS) {
|
|
28
|
+
let typed = 0;
|
|
29
|
+
const timer = window.setInterval(() => {
|
|
30
|
+
setNativeValue(input, text.slice(0, ++typed));
|
|
31
|
+
if (typed < text.length) return;
|
|
32
|
+
window.clearInterval(timer);
|
|
33
|
+
onTyped();
|
|
34
|
+
}, delay);
|
|
35
|
+
return () => window.clearInterval(timer);
|
|
36
|
+
}
|
|
37
|
+
function searchFor(input, container, text, onTyped) {
|
|
38
|
+
var _a;
|
|
39
|
+
if (input.getBoundingClientRect().width > 0) {
|
|
40
|
+
input.focus();
|
|
41
|
+
return typeInto(input, text, onTyped);
|
|
42
|
+
}
|
|
43
|
+
(_a = container.querySelector("button")) == null ? void 0 : _a.click();
|
|
44
|
+
let cancelTyping = () => {
|
|
45
|
+
};
|
|
46
|
+
const timer = window.setTimeout(() => {
|
|
47
|
+
cancelTyping = typeInto(input, text, onTyped);
|
|
48
|
+
}, EXPAND_DELAY_MS);
|
|
49
|
+
return () => {
|
|
50
|
+
window.clearTimeout(timer);
|
|
51
|
+
cancelTyping();
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
const WAIT_FRAMES = 120;
|
|
55
|
+
const SUGGESTION_FRAMES = 300;
|
|
56
|
+
const press = (element) => {
|
|
57
|
+
element.dispatchEvent(new MouseEvent("mousedown", { bubbles: true, cancelable: true, button: 0 }));
|
|
58
|
+
element.click();
|
|
59
|
+
};
|
|
60
|
+
const ARRIVAL_FRAMES = 3600;
|
|
61
|
+
function waitFor(ready, then, frames = 600, giveUp) {
|
|
62
|
+
let frame = 0;
|
|
63
|
+
let waited = 0;
|
|
64
|
+
const attempt = () => {
|
|
65
|
+
if (ready()) then();
|
|
66
|
+
else if (++waited < frames) frame = requestAnimationFrame(attempt);
|
|
67
|
+
else giveUp == null ? void 0 : giveUp();
|
|
68
|
+
};
|
|
69
|
+
attempt();
|
|
70
|
+
return () => cancelAnimationFrame(frame);
|
|
71
|
+
}
|
|
72
|
+
const CLOSED_FRAMES = 3;
|
|
73
|
+
const SELECTABLE = '[role="menuitem"], [role="menuitemradio"], [role="menuitemcheckbox"], [cmdk-item]';
|
|
74
|
+
function onClosed(find, closed) {
|
|
75
|
+
let frame = 0;
|
|
76
|
+
let watched = null;
|
|
77
|
+
let missing = 0;
|
|
78
|
+
const stop = () => {
|
|
79
|
+
cancelAnimationFrame(frame);
|
|
80
|
+
document.removeEventListener("click", disarmOnSelect, true);
|
|
81
|
+
};
|
|
82
|
+
function disarmOnSelect(event) {
|
|
83
|
+
const picked = event.target instanceof Element ? event.target.closest(SELECTABLE) : null;
|
|
84
|
+
if (picked && (watched == null ? void 0 : watched.contains(picked))) stop();
|
|
85
|
+
}
|
|
86
|
+
const check = () => {
|
|
87
|
+
const found = find();
|
|
88
|
+
if (found == null ? void 0 : found.isConnected) {
|
|
89
|
+
watched = found;
|
|
90
|
+
missing = 0;
|
|
91
|
+
} else if (watched && ++missing >= CLOSED_FRAMES) {
|
|
92
|
+
stop();
|
|
93
|
+
closed();
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
frame = requestAnimationFrame(check);
|
|
97
|
+
};
|
|
98
|
+
document.addEventListener("click", disarmOnSelect, true);
|
|
99
|
+
frame = requestAnimationFrame(check);
|
|
100
|
+
return stop;
|
|
101
|
+
}
|
|
102
|
+
function pickSuggestion(container, text, picked, otherwise) {
|
|
103
|
+
let timer = 0;
|
|
104
|
+
const match = () => [...container.querySelectorAll("[cmdk-item]")].find((item) => {
|
|
105
|
+
var _a;
|
|
106
|
+
return (_a = item.textContent) == null ? void 0 : _a.toLowerCase().includes(text.toLowerCase());
|
|
107
|
+
});
|
|
108
|
+
const cancelWait = waitFor(() => !!match(), () => {
|
|
109
|
+
timer = window.setTimeout(() => {
|
|
110
|
+
const suggestion = match();
|
|
111
|
+
if (!suggestion) return otherwise();
|
|
112
|
+
suggestion.click();
|
|
113
|
+
picked();
|
|
114
|
+
}, DEMO_DELAY_MS);
|
|
115
|
+
}, SUGGESTION_FRAMES, otherwise);
|
|
116
|
+
return () => {
|
|
117
|
+
cancelWait();
|
|
118
|
+
window.clearTimeout(timer);
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
const focusTourCard = () => {
|
|
122
|
+
var _a;
|
|
123
|
+
return (_a = document.querySelector(".cdt-tour-card .cdt-tour-next")) == null ? void 0 : _a.focus({ preventScroll: true });
|
|
124
|
+
};
|
|
125
|
+
function setInputMode(input, mode) {
|
|
126
|
+
if (mode === null) input.removeAttribute("inputmode");
|
|
127
|
+
else input.setAttribute("inputmode", mode);
|
|
128
|
+
}
|
|
129
|
+
function searchAndPick(container, text, fallback) {
|
|
130
|
+
const input = container == null ? void 0 : container.querySelector("input");
|
|
131
|
+
if (!container || !input) return () => {
|
|
132
|
+
};
|
|
133
|
+
const original = { value: input.value, mode: input.getAttribute("inputmode") };
|
|
134
|
+
let finished = false;
|
|
135
|
+
setInputMode(input, "none");
|
|
136
|
+
const finish = () => {
|
|
137
|
+
finished = true;
|
|
138
|
+
setInputMode(input, original.mode);
|
|
139
|
+
focusTourCard();
|
|
140
|
+
};
|
|
141
|
+
let cancelPick = () => {
|
|
142
|
+
};
|
|
143
|
+
const cancelSearch = searchFor(input, container, text, () => {
|
|
144
|
+
cancelPick = pickSuggestion(container, text, finish, () => {
|
|
145
|
+
fallback();
|
|
146
|
+
finish();
|
|
147
|
+
});
|
|
148
|
+
});
|
|
149
|
+
return () => {
|
|
150
|
+
cancelSearch();
|
|
151
|
+
cancelPick();
|
|
152
|
+
if (finished) return;
|
|
153
|
+
setInputMode(input, original.mode);
|
|
154
|
+
if (input.value !== original.value) setNativeValue(input, original.value);
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
function expandIfCollapsed(button) {
|
|
158
|
+
if ((button == null ? void 0 : button.getAttribute("aria-expanded")) === "false") press(button);
|
|
159
|
+
}
|
|
160
|
+
function schedule(stopped = () => false) {
|
|
161
|
+
const cancels = [];
|
|
162
|
+
return {
|
|
163
|
+
after: (ms, then) => {
|
|
164
|
+
const timer = window.setTimeout(() => {
|
|
165
|
+
if (!stopped()) then();
|
|
166
|
+
}, ms);
|
|
167
|
+
cancels.push(() => window.clearTimeout(timer));
|
|
168
|
+
},
|
|
169
|
+
when: (ready, then, giveUp) => {
|
|
170
|
+
cancels.push(waitFor(() => stopped() || ready(), () => {
|
|
171
|
+
if (!stopped()) then();
|
|
172
|
+
}, void 0, giveUp));
|
|
173
|
+
},
|
|
174
|
+
track: (cancel) => {
|
|
175
|
+
cancels.push(cancel);
|
|
176
|
+
},
|
|
177
|
+
cancel: () => cancels.forEach((cancel) => cancel())
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
const MEASURE_REGION = "measure-demo-region";
|
|
181
|
+
function pressWhenShown(anchor, root = document) {
|
|
182
|
+
let frame = 0;
|
|
183
|
+
let frames = 0;
|
|
184
|
+
const attempt = () => {
|
|
185
|
+
var _a;
|
|
186
|
+
const control = findAnchor(anchor, root);
|
|
187
|
+
const input = control == null ? void 0 : control.querySelector("input");
|
|
188
|
+
if (input) input.focus();
|
|
189
|
+
else if (control) press((_a = control.querySelector("button")) != null ? _a : control);
|
|
190
|
+
else if (++frames < WAIT_FRAMES) frame = requestAnimationFrame(attempt);
|
|
191
|
+
};
|
|
192
|
+
attempt();
|
|
193
|
+
return () => cancelAnimationFrame(frame);
|
|
194
|
+
}
|
|
195
|
+
function runTimeline(actions) {
|
|
196
|
+
const timers = [];
|
|
197
|
+
let at = 0;
|
|
198
|
+
for (const [delay, action] of actions) {
|
|
199
|
+
at += delay;
|
|
200
|
+
timers.push(window.setTimeout(action, at));
|
|
201
|
+
}
|
|
202
|
+
return () => timers.forEach((timer) => window.clearTimeout(timer));
|
|
203
|
+
}
|
|
204
|
+
function anchorMapRegion(map, coords, anchor, padding = 24) {
|
|
205
|
+
const box = document.createElement("div");
|
|
206
|
+
box.dataset.tour = anchor;
|
|
207
|
+
box.style.cssText = "position:absolute;pointer-events:none;";
|
|
208
|
+
const place = () => {
|
|
209
|
+
const points = coords.map((coord) => map.project(coord));
|
|
210
|
+
const xs = points.map((p) => p.x);
|
|
211
|
+
const ys = points.map((p) => p.y);
|
|
212
|
+
Object.assign(box.style, {
|
|
213
|
+
left: `${Math.min(...xs) - padding}px`,
|
|
214
|
+
top: `${Math.min(...ys) - padding}px`,
|
|
215
|
+
width: `${Math.max(...xs) - Math.min(...xs) + padding * 2}px`,
|
|
216
|
+
height: `${Math.max(...ys) - Math.min(...ys) + padding * 2}px`
|
|
217
|
+
});
|
|
218
|
+
};
|
|
219
|
+
place();
|
|
220
|
+
map.getContainer().append(box);
|
|
221
|
+
map.on("move", place);
|
|
222
|
+
return () => {
|
|
223
|
+
map.off("move", place);
|
|
224
|
+
box.remove();
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
function afterMenusClose(action, root = document) {
|
|
228
|
+
let frame = 0;
|
|
229
|
+
let frames = 0;
|
|
230
|
+
const attempt = () => {
|
|
231
|
+
if (!root.querySelector('[role="menu"]') || ++frames >= WAIT_FRAMES) action();
|
|
232
|
+
else frame = requestAnimationFrame(attempt);
|
|
233
|
+
};
|
|
234
|
+
frame = requestAnimationFrame(attempt);
|
|
235
|
+
return () => cancelAnimationFrame(frame);
|
|
236
|
+
}
|
|
237
|
+
function openSection(anchor, root = document) {
|
|
238
|
+
const header = root.querySelector(`${anchorSelector(anchor)} [aria-expanded]`);
|
|
239
|
+
if ((header == null ? void 0 : header.getAttribute("aria-expanded")) === "false") header.click();
|
|
240
|
+
}
|
|
241
|
+
const DEMO_DELAY_MS = 700;
|
|
242
|
+
const activeTab = (group) => group.querySelector('[role="tab"][data-state="active"]');
|
|
243
|
+
function demoTabs(anchor, root = document) {
|
|
244
|
+
let original = null;
|
|
245
|
+
const timer = window.setTimeout(() => {
|
|
246
|
+
const group = findAnchor(anchor, root);
|
|
247
|
+
original = group && activeTab(group);
|
|
248
|
+
const other = group == null ? void 0 : group.querySelector('[role="tab"][data-state="inactive"]:not([disabled])');
|
|
249
|
+
if (other) press(other);
|
|
250
|
+
}, DEMO_DELAY_MS);
|
|
251
|
+
return () => {
|
|
252
|
+
window.clearTimeout(timer);
|
|
253
|
+
if ((original == null ? void 0 : original.isConnected) && original.dataset.state !== "active") press(original);
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
function demoSwitch(anchor, root = document) {
|
|
257
|
+
let flipped = null;
|
|
258
|
+
const timer = window.setTimeout(() => {
|
|
259
|
+
flipped = root.querySelector(`${anchorSelector(anchor)} [role="switch"]:not([disabled])`);
|
|
260
|
+
flipped == null ? void 0 : flipped.click();
|
|
261
|
+
}, DEMO_DELAY_MS);
|
|
262
|
+
return () => {
|
|
263
|
+
window.clearTimeout(timer);
|
|
264
|
+
if (flipped == null ? void 0 : flipped.isConnected) flipped.click();
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
export {
|
|
268
|
+
ARRIVAL_FRAMES,
|
|
269
|
+
DEMO_DELAY_MS,
|
|
270
|
+
MEASURE_REGION,
|
|
271
|
+
afterMenusClose,
|
|
272
|
+
anchorMapRegion,
|
|
273
|
+
demoSwitch,
|
|
274
|
+
demoTabs,
|
|
275
|
+
expandIfCollapsed,
|
|
276
|
+
findToolTarget,
|
|
277
|
+
onClosed,
|
|
278
|
+
openSection,
|
|
279
|
+
openToolPanel,
|
|
280
|
+
press,
|
|
281
|
+
pressWhenShown,
|
|
282
|
+
runTimeline,
|
|
283
|
+
schedule,
|
|
284
|
+
searchAndPick,
|
|
285
|
+
setNativeValue,
|
|
286
|
+
setToolOpen,
|
|
287
|
+
typeInto,
|
|
288
|
+
waitFor
|
|
289
|
+
};
|
|
290
|
+
//# sourceMappingURL=platformHost.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/core/components/tour/platform/platformHost.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\n// Copyright (C) 2025 Collab Digital Twins\n\nimport { anchorSelector, findAnchor } from '../hostTargets'\n\nconst TYPING_DELAY_MS = 70\nconst EXPAND_DELAY_MS = 150\n\nconst findToolButton = (toolId: string, root: ParentNode = document) =>\n root.querySelector<HTMLButtonElement>(`${anchorSelector(`tool-${toolId}`)} button`)\n\nconst isExpanded = (button: HTMLElement) => button.getAttribute('aria-expanded') === 'true'\n\n/** The dropdown or card a tool opened; null while it is closed or the tool has no `aria-expanded`. */\nexport function openToolPanel(toolId: string, root: Document = document): Element | null {\n const button = findToolButton(toolId, root)\n const panelId = button && isExpanded(button) ? button.getAttribute('aria-controls') : null\n return panelId ? root.getElementById(panelId) : null\n}\n\n/** What a tool step spotlights: the dropdown or card the tool opened, else its toolbar button. */\nexport const findToolTarget = (toolId: string, root: Document = document): Element | null =>\n openToolPanel(toolId, root) ?? findAnchor(`tool-${toolId}`, root)\n\n/** Opens or closes a toolbar tool's dropdown or card; tools without `aria-expanded` are left alone. */\nexport function setToolOpen(toolId: string, open: boolean, root: ParentNode = document): void {\n const button = findToolButton(toolId, root)\n if (!button?.hasAttribute('aria-expanded') || isExpanded(button) === open) return\n // Radix triggers toggle on pointerdown and ignore click; plain toggles do the opposite.\n const Pointer = typeof PointerEvent === 'function' ? PointerEvent : MouseEvent\n button.dispatchEvent(new Pointer('pointerdown', { bubbles: true, cancelable: true, button: 0 }))\n button.click()\n}\n\nexport const setNativeValue = (input: HTMLInputElement, value: string) => {\n Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, 'value')?.set?.call(input, value)\n input.dispatchEvent(new Event('input', { bubbles: true }))\n}\n\n/** Types `text` into a React-controlled input one letter at a time, then calls `onTyped`; returns a cancel. */\nexport function typeInto(input: HTMLInputElement, text: string, onTyped: () => void, delay = TYPING_DELAY_MS): () => void {\n let typed = 0\n const timer = window.setInterval(() => {\n setNativeValue(input, text.slice(0, ++typed))\n if (typed < text.length) return\n window.clearInterval(timer)\n onTyped()\n }, delay)\n return () => window.clearInterval(timer)\n}\n\nfunction searchFor(input: HTMLInputElement, container: Element, text: string, onTyped: () => void): () => void {\n if (input.getBoundingClientRect().width > 0) {\n input.focus()\n return typeInto(input, text, onTyped)\n }\n container.querySelector('button')?.click()\n let cancelTyping = () => {}\n const timer = window.setTimeout(() => { cancelTyping = typeInto(input, text, onTyped) }, EXPAND_DELAY_MS)\n return () => {\n window.clearTimeout(timer)\n cancelTyping()\n }\n}\n\nconst WAIT_FRAMES = 120\nconst SUGGESTION_FRAMES = 300\n\nexport const press = (element: HTMLElement) => {\n // Radix tabs select on mousedown, menu items on click.\n element.dispatchEvent(new MouseEvent('mousedown', { bubbles: true, cancelable: true, button: 0 }))\n element.click()\n}\n\n/** Frames a demo keeps watching for a write it made to arrive, about a minute. */\nexport const ARRIVAL_FRAMES = 3600\n\n/** Calls `then` once `ready()` is true, checking each frame for up to `frames`, else `giveUp`; returns a cancel. */\nexport function waitFor(ready: () => boolean, then: () => void, frames = 600, giveUp?: () => void): () => void {\n let frame = 0\n let waited = 0\n const attempt = () => {\n if (ready()) then()\n else if (++waited < frames) frame = requestAnimationFrame(attempt)\n else giveUp?.()\n }\n attempt()\n return () => cancelAnimationFrame(frame)\n}\n\nconst CLOSED_FRAMES = 3\n\nconst SELECTABLE = '[role=\"menuitem\"], [role=\"menuitemradio\"], [role=\"menuitemcheckbox\"], [cmdk-item]'\n\n/** Calls `closed` once an element `find` returned goes missing for a few frames, unless the person picked an item in it first; returns a cancel. */\nexport function onClosed(find: () => Element | null, closed: () => void): () => void {\n let frame = 0\n let watched: Element | null = null\n let missing = 0\n const stop = () => {\n cancelAnimationFrame(frame)\n document.removeEventListener('click', disarmOnSelect, true)\n }\n function disarmOnSelect(event: MouseEvent) {\n const picked = event.target instanceof Element ? event.target.closest(SELECTABLE) : null\n if (picked && watched?.contains(picked)) stop()\n }\n const check = () => {\n const found = find()\n if (found?.isConnected) {\n watched = found\n missing = 0\n } else if (watched && ++missing >= CLOSED_FRAMES) {\n stop()\n closed()\n return\n }\n frame = requestAnimationFrame(check)\n }\n document.addEventListener('click', disarmOnSelect, true)\n frame = requestAnimationFrame(check)\n return stop\n}\n\nfunction pickSuggestion(container: Element, text: string, picked: () => void, otherwise: () => void): () => void {\n let timer = 0\n const match = () => [...container.querySelectorAll<HTMLElement>('[cmdk-item]')]\n .find(item => item.textContent?.toLowerCase().includes(text.toLowerCase()))\n const cancelWait = waitFor(() => !!match(), () => {\n timer = window.setTimeout(() => {\n const suggestion = match()\n if (!suggestion) return otherwise()\n suggestion.click()\n picked()\n }, DEMO_DELAY_MS)\n }, SUGGESTION_FRAMES, otherwise)\n return () => {\n cancelWait()\n window.clearTimeout(timer)\n }\n}\n\n// Hands the arrow keys back to the card after a demo typed into the page.\nconst focusTourCard = () => document.querySelector<HTMLElement>('.cdt-tour-card .cdt-tour-next')?.focus({ preventScroll: true })\n\nfunction setInputMode(input: HTMLInputElement, mode: string | null) {\n if (mode === null) input.removeAttribute('inputmode')\n else input.setAttribute('inputmode', mode)\n}\n\n/** Types `text` into the search in `container` and picks its suggestion, else calls `fallback`; cancelling before then puts the search back. */\nexport function searchAndPick(container: Element | null, text: string, fallback: () => void): () => void {\n const input = container?.querySelector('input')\n if (!container || !input) return () => {}\n const original = { value: input.value, mode: input.getAttribute('inputmode') }\n let finished = false\n // inputmode none keeps the soft keyboard shut while the demo types.\n setInputMode(input, 'none')\n const finish = () => {\n finished = true\n setInputMode(input, original.mode)\n focusTourCard()\n }\n let cancelPick = () => {}\n const cancelSearch = searchFor(input, container, text, () => {\n cancelPick = pickSuggestion(container, text, finish, () => {\n fallback()\n finish()\n })\n })\n return () => {\n cancelSearch()\n cancelPick()\n if (finished) return\n setInputMode(input, original.mode)\n if (input.value !== original.value) setNativeValue(input, original.value)\n }\n}\n\n/** Presses a disclosure button only while it is collapsed. */\nexport function expandIfCollapsed(button: HTMLElement | null | undefined): void {\n if (button?.getAttribute('aria-expanded') === 'false') press(button)\n}\n\n/** A demo stage's pending timers and waits, all cancelled together when the stage closes. */\nexport interface Schedule {\n after: (ms: number, then: () => void) => void\n when: (ready: () => boolean, then: () => void, giveUp?: () => void) => void\n track: (cancel: () => void) => void\n cancel: () => void\n}\n\n/** Timers and waits that skip their action once `stopped()` is true. */\nexport function schedule(stopped: () => boolean = () => false): Schedule {\n const cancels: (() => void)[] = []\n return {\n after: (ms, then) => {\n const timer = window.setTimeout(() => { if (!stopped()) then() }, ms)\n cancels.push(() => window.clearTimeout(timer))\n },\n when: (ready, then, giveUp) => {\n cancels.push(waitFor(() => stopped() || ready(), () => { if (!stopped()) then() }, undefined, giveUp))\n },\n track: cancel => { cancels.push(cancel) },\n cancel: () => cancels.forEach(cancel => cancel()),\n }\n}\n\nexport const MEASURE_REGION = 'measure-demo-region'\n\n/** Presses the `data-tour` control, or the button inside it, as soon as it renders; returns a cancel. */\nexport function pressWhenShown(anchor: string, root: ParentNode = document): () => void {\n let frame = 0\n let frames = 0\n const attempt = () => {\n const control = findAnchor(anchor, root)\n const input = control?.querySelector('input')\n if (input) input.focus()\n else if (control) press(control.querySelector('button') ?? control)\n else if (++frames < WAIT_FRAMES) frame = requestAnimationFrame(attempt)\n }\n attempt()\n return () => cancelAnimationFrame(frame)\n}\n\n/** Runs each action the given milliseconds after the one before it; returns a cancel. */\nexport function runTimeline(actions: [delay: number, action: () => void][]): () => void {\n const timers: number[] = []\n let at = 0\n for (const [delay, action] of actions) {\n at += delay\n timers.push(window.setTimeout(action, at))\n }\n return () => timers.forEach(timer => window.clearTimeout(timer))\n}\n\nexport type LngLat = [lng: number, lat: number]\n\ninterface ProjectingMap {\n project: (lngLat: LngLat) => { x: number; y: number }\n getContainer: () => HTMLElement\n on: (type: 'move', listener: () => void) => unknown\n off: (type: 'move', listener: () => void) => unknown\n}\n\n/** An invisible `data-tour` box that tracks `coords` on the map, so a step can spotlight part of the map. */\nexport function anchorMapRegion(map: ProjectingMap, coords: LngLat[], anchor: string, padding = 24): () => void {\n const box = document.createElement('div')\n box.dataset.tour = anchor\n box.style.cssText = 'position:absolute;pointer-events:none;'\n const place = () => {\n const points = coords.map(coord => map.project(coord))\n const xs = points.map(p => p.x)\n const ys = points.map(p => p.y)\n Object.assign(box.style, {\n left: `${Math.min(...xs) - padding}px`,\n top: `${Math.min(...ys) - padding}px`,\n width: `${Math.max(...xs) - Math.min(...xs) + padding * 2}px`,\n height: `${Math.max(...ys) - Math.min(...ys) + padding * 2}px`,\n })\n }\n place()\n map.getContainer().append(box)\n map.on('move', place)\n return () => {\n map.off('move', place)\n box.remove()\n }\n}\n\n/** Runs `action` once no dropdown menu is open, so a closing menu cannot dismiss the one it opens; returns a cancel. */\nexport function afterMenusClose(action: () => void, root: ParentNode = document): () => void {\n let frame = 0\n let frames = 0\n const attempt = () => {\n if (!root.querySelector('[role=\"menu\"]') || ++frames >= WAIT_FRAMES) action()\n else frame = requestAnimationFrame(attempt)\n }\n frame = requestAnimationFrame(attempt)\n return () => cancelAnimationFrame(frame)\n}\n\n/** Expands the collapsible section marked with the `data-tour` anchor if it is collapsed. */\nexport function openSection(anchor: string, root: ParentNode = document): void {\n const header = root.querySelector<HTMLElement>(`${anchorSelector(anchor)} [aria-expanded]`)\n if (header?.getAttribute('aria-expanded') === 'false') header.click()\n}\n\nexport const DEMO_DELAY_MS = 700\n\nconst activeTab = (group: Element) => group.querySelector<HTMLElement>('[role=\"tab\"][data-state=\"active\"]')\n\n/** Switches the tab group in the anchor to another enabled tab after a beat, and back when the step closes. */\nexport function demoTabs(anchor: string, root: ParentNode = document): () => void {\n let original: HTMLElement | null = null\n const timer = window.setTimeout(() => {\n const group = findAnchor(anchor, root)\n original = group && activeTab(group)\n const other = group?.querySelector<HTMLElement>('[role=\"tab\"][data-state=\"inactive\"]:not([disabled])')\n if (other) press(other)\n }, DEMO_DELAY_MS)\n return () => {\n window.clearTimeout(timer)\n if (original?.isConnected && original.dataset.state !== 'active') press(original)\n }\n}\n\n/** Flips the first switch in the anchor after a beat, and back when the step closes. */\nexport function demoSwitch(anchor: string, root: ParentNode = document): () => void {\n let flipped: HTMLElement | null = null\n const timer = window.setTimeout(() => {\n flipped = root.querySelector<HTMLElement>(`${anchorSelector(anchor)} [role=\"switch\"]:not([disabled])`)\n flipped?.click()\n }, DEMO_DELAY_MS)\n return () => {\n window.clearTimeout(timer)\n if (flipped?.isConnected) flipped.click()\n }\n}\n"],"mappings":"AAGA,SAAS,gBAAgB,kBAAkB;AAE3C,MAAM,kBAAkB;AACxB,MAAM,kBAAkB;AAExB,MAAM,iBAAiB,CAAC,QAAgB,OAAmB,aACzD,KAAK,cAAiC,GAAG,eAAe,QAAQ,MAAM,EAAE,CAAC,SAAS;AAEpF,MAAM,aAAa,CAAC,WAAwB,OAAO,aAAa,eAAe,MAAM;AAG9E,SAAS,cAAc,QAAgB,OAAiB,UAA0B;AACvF,QAAM,SAAS,eAAe,QAAQ,IAAI;AAC1C,QAAM,UAAU,UAAU,WAAW,MAAM,IAAI,OAAO,aAAa,eAAe,IAAI;AACtF,SAAO,UAAU,KAAK,eAAe,OAAO,IAAI;AAClD;AAGO,MAAM,iBAAiB,CAAC,QAAgB,OAAiB,aAA0B;AArB1F;AAsBE,6BAAc,QAAQ,IAAI,MAA1B,YAA+B,WAAW,QAAQ,MAAM,IAAI,IAAI;AAAA;AAG3D,SAAS,YAAY,QAAgB,MAAe,OAAmB,UAAgB;AAC5F,QAAM,SAAS,eAAe,QAAQ,IAAI;AAC1C,MAAI,EAAC,iCAAQ,aAAa,qBAAoB,WAAW,MAAM,MAAM,KAAM;AAE3E,QAAM,UAAU,OAAO,iBAAiB,aAAa,eAAe;AACpE,SAAO,cAAc,IAAI,QAAQ,eAAe,EAAE,SAAS,MAAM,YAAY,MAAM,QAAQ,EAAE,CAAC,CAAC;AAC/F,SAAO,MAAM;AACf;AAEO,MAAM,iBAAiB,CAAC,OAAyB,UAAkB;AAlC1E;AAmCE,qBAAO,yBAAyB,iBAAiB,WAAW,OAAO,MAAnE,mBAAsE,QAAtE,mBAA2E,KAAK,OAAO;AACvF,QAAM,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AAmB,UAAsB;AAChF,MAAI,WAA+B;AACnC,QAAM,QAAQ,OAAO,WAAW,MAAM;AACpC,UAAM,QAAQ,WAAW,QAAQ,IAAI;AACrC,eAAW,SAAS,UAAU,KAAK;AACnC,UAAM,QAAQ,+BAAO,cAA2B;AAChD,QAAI,MAAO,OAAM,KAAK;AAAA,EACxB,GAAG,aAAa;AAChB,SAAO,MAAM;AACX,WAAO,aAAa,KAAK;AACzB,SAAI,qCAAU,gBAAe,SAAS,QAAQ,UAAU,SAAU,OAAM,QAAQ;AAAA,EAClF;AACF;AAGO,SAAS,WAAW,QAAgB,OAAmB,UAAsB;AAClF,MAAI,UAA8B;AAClC,QAAM,QAAQ,OAAO,WAAW,MAAM;AACpC,cAAU,KAAK,cAA2B,GAAG,eAAe,MAAM,CAAC,kCAAkC;AACrG,uCAAS;AAAA,EACX,GAAG,aAAa;AAChB,SAAO,MAAM;AACX,WAAO,aAAa,KAAK;AACzB,QAAI,mCAAS,YAAa,SAAQ,MAAM;AAAA,EAC1C;AACF;","names":[]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { DataPage, PlatformTourActions, PlatformTourId, TourAvailability, Translate, ViewerChrome } from './platformTourTypes';
|
|
2
|
+
import type { PluginEntry } from './usePluginTourEntries';
|
|
3
|
+
import type { Language, ViewerKey } from '../../../types/dbTypes';
|
|
4
|
+
import type { TourItem, TourStep } from '../tourTypes';
|
|
5
|
+
export declare const PLATFORM_TOUR_ID = "platform";
|
|
6
|
+
type Icon = TourItem['icon'];
|
|
7
|
+
export declare const VIEWER_TOOLS: Record<ViewerChrome, {
|
|
8
|
+
id: string;
|
|
9
|
+
icon: Icon;
|
|
10
|
+
}[]>;
|
|
11
|
+
export declare const VIEWERS: {
|
|
12
|
+
viewer: ViewerChrome;
|
|
13
|
+
icon: Icon;
|
|
14
|
+
}[];
|
|
15
|
+
export declare const DATA_PAGES: {
|
|
16
|
+
page: DataPage;
|
|
17
|
+
icon: Icon;
|
|
18
|
+
}[];
|
|
19
|
+
export declare const EVERYTHING_AVAILABLE: TourAvailability;
|
|
20
|
+
/** The tour of the page the viewer is on, offered as a shortcut from the overview's cards. */
|
|
21
|
+
export interface PageSection {
|
|
22
|
+
tour: PlatformTourId;
|
|
23
|
+
label: string;
|
|
24
|
+
}
|
|
25
|
+
interface OverviewOptions {
|
|
26
|
+
languages?: Language[];
|
|
27
|
+
available?: TourAvailability;
|
|
28
|
+
section?: PageSection;
|
|
29
|
+
}
|
|
30
|
+
export declare const toolStepId: (toolId: string) => string;
|
|
31
|
+
export declare const chromeOf: (viewer: ViewerKey | undefined) => ViewerChrome | null;
|
|
32
|
+
export declare const dataPageOfViewer: (viewer: ViewerKey | undefined) => DataPage;
|
|
33
|
+
export declare const step: (t: Translate, id: string, target: TourStep["target"], key?: string) => TourStep;
|
|
34
|
+
export declare const withEntry: (s: TourStep, onEnter: TourStep["onEnter"]) => TourStep;
|
|
35
|
+
/** One step entry that runs each of `entries` and, on leaving, each of their leaves. */
|
|
36
|
+
export declare const allEntries: (...entries: TourStep["onEnter"][]) => TourStep["onEnter"];
|
|
37
|
+
export declare const item: (t: Translate, key: string, id: string, icon: Icon, onSelect?: () => void) => TourItem;
|
|
38
|
+
export declare const pluginItem: (description: string, entry: PluginEntry, onSelect: () => void) => TourItem;
|
|
39
|
+
export declare const availableViewers: (available: TourAvailability) => {
|
|
40
|
+
viewer: ViewerChrome;
|
|
41
|
+
icon: Icon;
|
|
42
|
+
}[];
|
|
43
|
+
export declare const availableDataPages: (available: TourAvailability) => {
|
|
44
|
+
page: DataPage;
|
|
45
|
+
icon: Icon;
|
|
46
|
+
}[];
|
|
47
|
+
/** The platform overview, ending on a choice of closer tours; its cards offer a shortcut to the tour of the page the viewer is on. */
|
|
48
|
+
export declare function platformTourSteps(t: Translate, a: PlatformTourActions, { languages, available, section }?: OverviewOptions): TourStep[];
|
|
49
|
+
export {};
|
|
50
|
+
//# sourceMappingURL=platformTourSteps.d.ts.map
|
|
@@ -0,0 +1 @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escs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
import * as LR from "lucide-react";
|
|
21
|
+
import * as React from "react";
|
|
22
|
+
import { ViewerNames } from "../../../types/dbTypes";
|
|
23
|
+
import { MenuPathText } from "./MenuPathText";
|
|
24
|
+
const PLATFORM_TOUR_ID = "platform";
|
|
25
|
+
const VIEWER_TOOLS = {
|
|
26
|
+
map: [
|
|
27
|
+
{ id: "map-compare", icon: LR.Columns3 },
|
|
28
|
+
{ id: "map-database", icon: LR.Database },
|
|
29
|
+
{ id: "map-add", icon: LR.Plus },
|
|
30
|
+
{ id: "map-measure", icon: LR.Ruler },
|
|
31
|
+
{ id: "map-share", icon: LR.Share2 }
|
|
32
|
+
],
|
|
33
|
+
bim: [
|
|
34
|
+
{ id: "bim-clipping", icon: LR.Crop },
|
|
35
|
+
{ id: "bim-camera-fit", icon: LR.Maximize2 },
|
|
36
|
+
{ id: "bim-add", icon: LR.Plus },
|
|
37
|
+
{ id: "bim-dimensions", icon: LR.Ruler },
|
|
38
|
+
{ id: "bim-share", icon: LR.Share2 }
|
|
39
|
+
]
|
|
40
|
+
};
|
|
41
|
+
const VIEWERS = [
|
|
42
|
+
{ viewer: "map", icon: LR.Map },
|
|
43
|
+
{ viewer: "bim", icon: LR.Box }
|
|
44
|
+
];
|
|
45
|
+
const DATA_PAGES = [
|
|
46
|
+
{ page: "sites", icon: LR.BoxSelect },
|
|
47
|
+
{ page: "buildings", icon: LR.Building2 },
|
|
48
|
+
{ page: "files", icon: LR.GalleryVerticalEnd },
|
|
49
|
+
{ page: "infrastructure", icon: LR.TrainTrack }
|
|
50
|
+
];
|
|
51
|
+
const EVERYTHING_AVAILABLE = {
|
|
52
|
+
viewers: VIEWERS.map(({ viewer }) => viewer),
|
|
53
|
+
dataPages: DATA_PAGES.map(({ page }) => page)
|
|
54
|
+
};
|
|
55
|
+
const toolStepId = (toolId) => `tool-${toolId}`;
|
|
56
|
+
const chromeOf = (viewer) => viewer === ViewerNames.map ? "map" : viewer === ViewerNames.bim ? "bim" : null;
|
|
57
|
+
const dataPageOfViewer = (viewer) => {
|
|
58
|
+
var _a;
|
|
59
|
+
return (_a = DATA_PAGES.find(({ page }) => page === viewer)) == null ? void 0 : _a.page;
|
|
60
|
+
};
|
|
61
|
+
const step = (t, id, target, key = id) => ({
|
|
62
|
+
id,
|
|
63
|
+
target,
|
|
64
|
+
title: t(`${key}.title`),
|
|
65
|
+
body: t(`${key}.body`)
|
|
66
|
+
});
|
|
67
|
+
const withEntry = (s, onEnter) => __spreadProps(__spreadValues({}, s), { onEnter });
|
|
68
|
+
const allEntries = (...entries) => () => {
|
|
69
|
+
const leaves = entries.map((enter) => enter == null ? void 0 : enter());
|
|
70
|
+
return () => leaves.forEach((leave) => typeof leave === "function" && leave());
|
|
71
|
+
};
|
|
72
|
+
const item = (t, key, id, icon, onSelect) => ({
|
|
73
|
+
id,
|
|
74
|
+
icon,
|
|
75
|
+
onSelect,
|
|
76
|
+
term: t(`${key}.${id}.term`),
|
|
77
|
+
description: t(`${key}.${id}.description`)
|
|
78
|
+
});
|
|
79
|
+
const pluginItem = (description, entry, onSelect) => ({
|
|
80
|
+
id: entry.id,
|
|
81
|
+
icon: entry.icon,
|
|
82
|
+
term: entry.label,
|
|
83
|
+
description,
|
|
84
|
+
onSelect
|
|
85
|
+
});
|
|
86
|
+
const withMenuPath = (t, s, key = s.id) => __spreadProps(__spreadValues({}, s), {
|
|
87
|
+
body: React.createElement(MenuPathText, { text: t(`${key}.body`), labels: { support: t("menuPath.support"), guide: t("menuPath.guide") } })
|
|
88
|
+
});
|
|
89
|
+
const availableViewers = (available) => VIEWERS.filter(({ viewer }) => available.viewers.includes(viewer));
|
|
90
|
+
const availableDataPages = (available) => DATA_PAGES.filter(({ page }) => available.dataPages.includes(page));
|
|
91
|
+
function interfaceSteps(t, available, a) {
|
|
92
|
+
const viewers = __spreadProps(__spreadValues({}, step(t, "viewers", "sidebar-viewers")), {
|
|
93
|
+
items: availableViewers(available).map(({ viewer, icon }) => item(t, "viewers.items", viewer, icon, () => a.branch(viewer, "viewers")))
|
|
94
|
+
});
|
|
95
|
+
const pages = availableDataPages(available);
|
|
96
|
+
if (pages.length === 0) return [viewers];
|
|
97
|
+
return [
|
|
98
|
+
step(t, "interfaces", "sidebar-interfaces"),
|
|
99
|
+
viewers,
|
|
100
|
+
__spreadProps(__spreadValues({}, step(t, "data", "sidebar-data")), { items: pages.map(({ page, icon }) => item(t, "data.items", page, icon, () => a.branch(`data-${page}`, "data"))) })
|
|
101
|
+
];
|
|
102
|
+
}
|
|
103
|
+
function languageSteps(t, languages, a) {
|
|
104
|
+
if (languages.length < 2) return [];
|
|
105
|
+
return [__spreadProps(__spreadValues({}, step(t, "language", "sidebar-language")), {
|
|
106
|
+
items: languages.map((language) => item(t, "language.items", language, LR.Languages, () => a.switchLanguage(language)))
|
|
107
|
+
})];
|
|
108
|
+
}
|
|
109
|
+
const singleOr = (options, several, only) => options.length > 1 ? several : only(options[0]);
|
|
110
|
+
function exploreStep(t, available, a) {
|
|
111
|
+
const viewers = available.viewers;
|
|
112
|
+
const pages = available.dataPages;
|
|
113
|
+
return __spreadProps(__spreadValues({}, withMenuPath(t, step(t, "explore", null))), {
|
|
114
|
+
items: [
|
|
115
|
+
...viewers.length ? [item(t, "explore.items", "viewers", LR.Box, () => a.branch(singleOr(viewers, "explore-viewers", (v) => v), "explore"))] : [],
|
|
116
|
+
...pages.length ? [item(t, "explore.items", "data", LR.Table2, () => a.branch(singleOr(pages, "explore-data", (p) => `data-${p}`), "explore"))] : []
|
|
117
|
+
]
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
const withShortcut = (section, a) => (s) => section ? __spreadProps(__spreadValues({}, s), { shortcut: { label: section.label, onSelect: () => a.branch(section.tour, s.id) } }) : s;
|
|
121
|
+
function sidebarSteps(t, a, languages, available) {
|
|
122
|
+
return [
|
|
123
|
+
step(t, "sidebar", "sidebar"),
|
|
124
|
+
...interfaceSteps(t, available, a),
|
|
125
|
+
__spreadProps(__spreadValues({}, step(t, "plugins", "sidebar-plugins")), { items: [item(t, "plugins.items", "open", LR.Blocks, () => a.branch("plugins", "plugins"))] }),
|
|
126
|
+
...languageSteps(t, languages, a),
|
|
127
|
+
__spreadProps(__spreadValues({}, step(t, "support", "sidebar-support")), {
|
|
128
|
+
items: [
|
|
129
|
+
item(t, "support.items", "guide", LR.Compass),
|
|
130
|
+
item(t, "support.items", "contact", LR.Send, a.openContactPage),
|
|
131
|
+
item(t, "support.items", "feature", LR.SquarePlus, a.openFeatureRequest),
|
|
132
|
+
item(t, "support.items", "bug", LR.Bug, a.openBugReport)
|
|
133
|
+
]
|
|
134
|
+
}),
|
|
135
|
+
__spreadProps(__spreadValues({}, step(t, "account", "sidebar-account")), {
|
|
136
|
+
items: [
|
|
137
|
+
item(t, "account.items", "settings", LR.Settings, () => a.branch("settings", "account")),
|
|
138
|
+
item(t, "account.items", "signOut", LR.LogOut)
|
|
139
|
+
]
|
|
140
|
+
})
|
|
141
|
+
].map((s) => withEntry(s, a.openMenu));
|
|
142
|
+
}
|
|
143
|
+
function platformTourSteps(t, a, { languages = [], available = EVERYTHING_AVAILABLE, section } = {}) {
|
|
144
|
+
const shortcut = withShortcut(section, a);
|
|
145
|
+
return [
|
|
146
|
+
...[withMenuPath(t, step(t, "welcome", null)), ...sidebarSteps(t, a, languages, available)].map(shortcut),
|
|
147
|
+
shortcut(exploreStep(t, available, a))
|
|
148
|
+
];
|
|
149
|
+
}
|
|
150
|
+
export {
|
|
151
|
+
DATA_PAGES,
|
|
152
|
+
EVERYTHING_AVAILABLE,
|
|
153
|
+
PLATFORM_TOUR_ID,
|
|
154
|
+
VIEWERS,
|
|
155
|
+
VIEWER_TOOLS,
|
|
156
|
+
allEntries,
|
|
157
|
+
availableDataPages,
|
|
158
|
+
availableViewers,
|
|
159
|
+
chromeOf,
|
|
160
|
+
dataPageOfViewer,
|
|
161
|
+
item,
|
|
162
|
+
platformTourSteps,
|
|
163
|
+
pluginItem,
|
|
164
|
+
step,
|
|
165
|
+
toolStepId,
|
|
166
|
+
withEntry
|
|
167
|
+
};
|
|
168
|
+
//# sourceMappingURL=platformTourSteps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/core/components/tour/platform/platformTourSteps.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\n// Copyright (C) 2025 Collab Digital Twins\n\nimport * as LR from 'lucide-react'\nimport * as React from 'react'\n\nimport { ViewerNames } from '../../../types/dbTypes'\n\nimport { MenuPathText } from './MenuPathText'\n\nimport type { DataPage, PlatformTourActions, PlatformTourId, TourAvailability, Translate, ViewerChrome } from './platformTourTypes'\nimport type { PluginEntry } from './usePluginTourEntries'\nimport type { Language, ViewerKey } from '../../../types/dbTypes'\nimport type { TourItem, TourStep } from '../tourTypes'\n\nexport const PLATFORM_TOUR_ID = 'platform'\n\ntype Icon = TourItem['icon']\n\nexport const VIEWER_TOOLS: Record<ViewerChrome, { id: string; icon: Icon }[]> = {\n map: [\n { id: 'map-compare', icon: LR.Columns3 },\n { id: 'map-database', icon: LR.Database },\n { id: 'map-add', icon: LR.Plus },\n { id: 'map-measure', icon: LR.Ruler },\n { id: 'map-share', icon: LR.Share2 },\n ],\n bim: [\n { id: 'bim-clipping', icon: LR.Crop },\n { id: 'bim-camera-fit', icon: LR.Maximize2 },\n { id: 'bim-add', icon: LR.Plus },\n { id: 'bim-dimensions', icon: LR.Ruler },\n { id: 'bim-share', icon: LR.Share2 },\n ],\n}\n\nexport const VIEWERS: { viewer: ViewerChrome; icon: Icon }[] = [\n { viewer: 'map', icon: LR.Map },\n { viewer: 'bim', icon: LR.Box },\n]\n\nexport const DATA_PAGES: { page: DataPage; icon: Icon }[] = [\n { page: 'sites', icon: LR.BoxSelect },\n { page: 'buildings', icon: LR.Building2 },\n { page: 'files', icon: LR.GalleryVerticalEnd },\n { page: 'infrastructure', icon: LR.TrainTrack },\n]\n\nexport const EVERYTHING_AVAILABLE: TourAvailability = {\n viewers: VIEWERS.map(({ viewer }) => viewer),\n dataPages: DATA_PAGES.map(({ page }) => page),\n}\n\n/** The tour of the page the viewer is on, offered as a shortcut from the overview's cards. */\nexport interface PageSection {\n tour: PlatformTourId\n label: string\n}\n\ninterface OverviewOptions {\n languages?: Language[]\n available?: TourAvailability\n section?: PageSection\n}\n\nexport const toolStepId = (toolId: string) => `tool-${toolId}`\n\nexport const chromeOf = (viewer: ViewerKey | undefined): ViewerChrome | null =>\n viewer === ViewerNames.map ? 'map' : viewer === ViewerNames.bim ? 'bim' : null\n\nexport const dataPageOfViewer = (viewer: ViewerKey | undefined) => DATA_PAGES.find(({ page }) => page === viewer)?.page\n\nexport const step = (t: Translate, id: string, target: TourStep['target'], key = id): TourStep => ({\n id, target, title: t(`${key}.title`), body: t(`${key}.body`),\n})\n\nexport const withEntry = (s: TourStep, onEnter: TourStep['onEnter']): TourStep => ({ ...s, onEnter })\n\n/** One step entry that runs each of `entries` and, on leaving, each of their leaves. */\nexport const allEntries = (...entries: TourStep['onEnter'][]): TourStep['onEnter'] => () => {\n const leaves = entries.map(enter => enter?.())\n return () => leaves.forEach(leave => typeof leave === 'function' && leave())\n}\n\nexport const item = (t: Translate, key: string, id: string, icon: Icon, onSelect?: () => void): TourItem => ({\n id, icon, onSelect, term: t(`${key}.${id}.term`), description: t(`${key}.${id}.description`),\n})\n\nexport const pluginItem = (description: string, entry: PluginEntry, onSelect: () => void): TourItem => ({\n id: entry.id, icon: entry.icon, term: entry.label, description, onSelect,\n})\n\nconst withMenuPath = (t: Translate, s: TourStep, key = s.id): TourStep => ({\n ...s,\n body: React.createElement(MenuPathText, { text: t(`${key}.body`), labels: { support: t('menuPath.support'), guide: t('menuPath.guide') } }),\n})\n\nexport const availableViewers = (available: TourAvailability) => VIEWERS.filter(({ viewer }) => available.viewers.includes(viewer))\n\nexport const availableDataPages = (available: TourAvailability) => DATA_PAGES.filter(({ page }) => available.dataPages.includes(page))\n\nfunction interfaceSteps(t: Translate, available: TourAvailability, a: PlatformTourActions): TourStep[] {\n const viewers = {\n ...step(t, 'viewers', 'sidebar-viewers'),\n items: availableViewers(available).map(({ viewer, icon }) => item(t, 'viewers.items', viewer, icon, () => a.branch(viewer, 'viewers'))),\n }\n const pages = availableDataPages(available)\n if (pages.length === 0) return [viewers]\n return [\n step(t, 'interfaces', 'sidebar-interfaces'),\n viewers,\n { ...step(t, 'data', 'sidebar-data'), items: pages.map(({ page, icon }) => item(t, 'data.items', page, icon, () => a.branch(`data-${page}`, 'data'))) },\n ]\n}\n\nfunction languageSteps(t: Translate, languages: Language[], a: PlatformTourActions): TourStep[] {\n if (languages.length < 2) return []\n return [{\n ...step(t, 'language', 'sidebar-language'),\n items: languages.map(language => item(t, 'language.items', language, LR.Languages, () => a.switchLanguage(language))),\n }]\n}\n\nconst singleOr = <T>(options: T[], several: PlatformTourId, only: (option: T) => PlatformTourId) =>\n options.length > 1 ? several : only(options[0])\n\nfunction exploreStep(t: Translate, available: TourAvailability, a: PlatformTourActions): TourStep {\n const viewers = available.viewers\n const pages = available.dataPages\n return {\n ...withMenuPath(t, step(t, 'explore', null)),\n items: [\n ...(viewers.length ? [item(t, 'explore.items', 'viewers', LR.Box, () => a.branch(singleOr(viewers, 'explore-viewers', v => v), 'explore'))] : []),\n ...(pages.length ? [item(t, 'explore.items', 'data', LR.Table2, () => a.branch(singleOr(pages, 'explore-data', p => `data-${p}`), 'explore'))] : []),\n ],\n }\n}\n\nconst withShortcut = (section: PageSection | undefined, a: PlatformTourActions) => (s: TourStep): TourStep =>\n section ? { ...s, shortcut: { label: section.label, onSelect: () => a.branch(section.tour, s.id) } } : s\n\nfunction sidebarSteps(t: Translate, a: PlatformTourActions, languages: Language[], available: TourAvailability): TourStep[] {\n return [\n step(t, 'sidebar', 'sidebar'),\n ...interfaceSteps(t, available, a),\n { ...step(t, 'plugins', 'sidebar-plugins'), items: [item(t, 'plugins.items', 'open', LR.Blocks, () => a.branch('plugins', 'plugins'))] },\n ...languageSteps(t, languages, a),\n {\n ...step(t, 'support', 'sidebar-support'),\n items: [\n item(t, 'support.items', 'guide', LR.Compass),\n item(t, 'support.items', 'contact', LR.Send, a.openContactPage),\n item(t, 'support.items', 'feature', LR.SquarePlus, a.openFeatureRequest),\n item(t, 'support.items', 'bug', LR.Bug, a.openBugReport),\n ],\n },\n {\n ...step(t, 'account', 'sidebar-account'),\n items: [\n item(t, 'account.items', 'settings', LR.Settings, () => a.branch('settings', 'account')),\n item(t, 'account.items', 'signOut', LR.LogOut),\n ],\n },\n ].map(s => withEntry(s, a.openMenu))\n}\n\n/** The platform overview, ending on a choice of closer tours; its cards offer a shortcut to the tour of the page the viewer is on. */\nexport function platformTourSteps(t: Translate, a: PlatformTourActions, { languages = [], available = EVERYTHING_AVAILABLE, section }: OverviewOptions = {}): TourStep[] {\n const shortcut = withShortcut(section, a)\n return [\n ...[withMenuPath(t, step(t, 'welcome', null)), ...sidebarSteps(t, a, languages, available)].map(shortcut),\n shortcut(exploreStep(t, available, a)),\n ]\n}\n"],"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Y,EAAE,kBAAkB;AAAA,QACvE,KAAK,GAAG,iBAAiB,OAAO,GAAG,KAAK,EAAE,aAAa;AAAA,MACzD;AAAA,IACF;AAAA,IACA,iCACK,KAAK,GAAG,WAAW,iBAAiB,IADzC;AAAA,MAEE,OAAO;AAAA,QACL,KAAK,GAAG,iBAAiB,YAAY,GAAG,UAAU,MAAM,EAAE,OAAO,YAAY,SAAS,CAAC;AAAA,QACvF,KAAK,GAAG,iBAAiB,WAAW,GAAG,MAAM;AAAA,MAC/C;AAAA,IACF;AAAA,EACF,EAAE,IAAI,OAAK,UAAU,GAAG,EAAE,QAAQ,CAAC;AACrC;AAGO,SAAS,kBAAkB,GAAc,GAAwB,EAAE,YAAY,CAAC,GAAG,YAAY,sBAAsB,QAAQ,IAAqB,CAAC,GAAe;AACvK,QAAM,WAAW,aAAa,SAAS,CAAC;AACxC,SAAO;AAAA,IACL,GAAG,CAAC,aAAa,GAAG,KAAK,GAAG,WAAW,IAAI,CAAC,GAAG,GAAG,aAAa,GAAG,GAAG,WAAW,SAAS,CAAC,EAAE,IAAI,QAAQ;AAAA,IACxG,SAAS,YAAY,GAAG,WAAW,CAAC,CAAC;AAAA,EACvC;AACF;","names":[]}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { HelloMapControl, HelloMapStage } from './helloMapDemo';
|
|
2
|
+
import type { PlaceStage } from './placeDemo';
|
|
3
|
+
import type { ZoningMenuStage, ZoningStage } from './zoningDemo';
|
|
4
|
+
import type { SidebarTabKey, SidebarTabType } from '../../../store/Menus/reducer';
|
|
5
|
+
import type { Language, ViewerKey } from '../../../types/dbTypes';
|
|
6
|
+
import type { MapStyle } from '../../../types/map';
|
|
7
|
+
export type Translate = (key: string, values?: Record<string, string>) => string;
|
|
8
|
+
export type ViewerChrome = 'map' | 'bim';
|
|
9
|
+
export type DataPage = 'sites' | 'buildings' | 'files' | 'infrastructure';
|
|
10
|
+
export type MeasureKind = 'distance' | 'area';
|
|
11
|
+
export type PlatformTourId = 'platform' | ViewerChrome | 'tools' | 'explore-viewers' | 'explore-data' | 'settings' | 'plugins' | 'datasets' | 'measure' | `data-${DataPage}` | `panel-${SidebarTabType}`;
|
|
12
|
+
/** The viewers and data pages this organization shows, so the tour never offers one it lacks. */
|
|
13
|
+
export interface TourAvailability {
|
|
14
|
+
viewers: ViewerChrome[];
|
|
15
|
+
dataPages: DataPage[];
|
|
16
|
+
}
|
|
17
|
+
/** What a step's buttons and entry callbacks can do to the app, and what the viewer's role allows. */
|
|
18
|
+
export interface PlatformTourActions {
|
|
19
|
+
can: (action: string, subject: string) => boolean;
|
|
20
|
+
inOttawa: () => boolean;
|
|
21
|
+
isMobile: () => boolean;
|
|
22
|
+
canDemoSearch: () => boolean;
|
|
23
|
+
zoningApplied: () => boolean;
|
|
24
|
+
branch: (tour: PlatformTourId, returnTo: string, startAt?: string) => void;
|
|
25
|
+
leave: () => void;
|
|
26
|
+
openViewer: (viewer: ViewerKey) => void;
|
|
27
|
+
openMenu: () => () => void;
|
|
28
|
+
openPanel: () => () => void;
|
|
29
|
+
selectPanelTab: (tab: SidebarTabKey) => void;
|
|
30
|
+
demoSearch: () => () => void;
|
|
31
|
+
demoMeasure: (kind: MeasureKind, inOttawa: boolean) => () => void;
|
|
32
|
+
pressControl: (anchor: string) => void;
|
|
33
|
+
openFeatureRequest: () => void;
|
|
34
|
+
openContactPage: () => void;
|
|
35
|
+
switchLanguage: (language: Language) => void;
|
|
36
|
+
openBugReport: () => void;
|
|
37
|
+
zoomIn: () => void;
|
|
38
|
+
zoomOut: () => void;
|
|
39
|
+
resetNorth: () => void;
|
|
40
|
+
mapStyles: MapStyle[];
|
|
41
|
+
setMapStyle: (url: string) => void;
|
|
42
|
+
demoMapStyle: () => () => void;
|
|
43
|
+
demoZoning: (stage: ZoningStage) => () => void;
|
|
44
|
+
demoZoningMenu: (stage: ZoningMenuStage) => () => void;
|
|
45
|
+
demoHelloMap: (stage: HelloMapStage) => () => void;
|
|
46
|
+
toggleHelloMapControl: (control: HelloMapControl) => void;
|
|
47
|
+
sensorTypesExist: () => boolean;
|
|
48
|
+
demoComment: (stage: PlaceStage, text: string) => () => void;
|
|
49
|
+
demoSensor: (stage: PlaceStage, name: string) => () => void;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=platformTourTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformTourTypes.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/tour/platform/platformTourTypes.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AACpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AACjF,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAElD,MAAM,MAAM,SAAS,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,MAAM,CAAA;AAEhF,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,KAAK,CAAA;AAExC,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,WAAW,GAAG,OAAO,GAAG,gBAAgB,CAAA;AAEzE,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,MAAM,CAAA;AAE7C,MAAM,MAAM,cAAc,GACtB,UAAU,GAAG,YAAY,GAAG,OAAO,GAAG,iBAAiB,GAAG,cAAc,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,GAC1H,QAAQ,QAAQ,EAAE,GAAG,SAAS,cAAc,EAAE,CAAA;A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