@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,280 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
17
|
+
import { arcgisLayerUrl } from "../../viewers/map/datasets/src/arcgisLayer";
|
|
18
|
+
import { datasetStyleOf, rendererForField } from "../../viewers/map/utils/datasetStyle";
|
|
19
|
+
import { anchorSelector, findAnchor } from "../hostTargets";
|
|
20
|
+
import { runStage } from "./liveDemo";
|
|
21
|
+
import { ARRIVAL_FRAMES, DEMO_DELAY_MS, expandIfCollapsed, press, setNativeValue, typeInto, waitFor } from "./platformHost";
|
|
22
|
+
const ZONING_LAYER_URL = "https://services.arcgis.com/G6F8XLCl5KtAlZ2G/ArcGIS/rest/services/IM_ExistingColourZoning_Sept25/FeatureServer/0";
|
|
23
|
+
const URL_DATASET_PREFIX = "url-arcgis:";
|
|
24
|
+
const ZONING_LAYER = arcgisLayerUrl(ZONING_LAYER_URL);
|
|
25
|
+
const ZONING_ID = `${URL_DATASET_PREFIX}${ZONING_LAYER}`;
|
|
26
|
+
const COLOUR_FIELD = "ZONE_MAIN";
|
|
27
|
+
const DEMO_STYLE = {
|
|
28
|
+
label: { field: "ZONE_CODE", size: 12, colour: "#111827" },
|
|
29
|
+
strokeColour: "#111827",
|
|
30
|
+
opacity: 0.6
|
|
31
|
+
};
|
|
32
|
+
let owned = false;
|
|
33
|
+
let failed = false;
|
|
34
|
+
let zoningId = ZONING_ID;
|
|
35
|
+
const appliedBeforeTour = (applied) => applied.some((dataset) => dataset.id === ZONING_ID || dataset.url === ZONING_LAYER);
|
|
36
|
+
const zoningAlreadyApplied = (applied) => !owned && appliedBeforeTour(applied);
|
|
37
|
+
const zoningLoadFailed = () => failed;
|
|
38
|
+
const rowControl = (anchor) => document.querySelector(`${anchorSelector(`dataset-row:${zoningId}`)} ${anchorSelector(anchor)}`);
|
|
39
|
+
const zoningStylePanel = () => rowControl("dataset-style-panel");
|
|
40
|
+
const zoningRow = () => findAnchor(`dataset-row:${zoningId}`);
|
|
41
|
+
const legendToggle = () => document.querySelector('[data-tour="legend-applied"] [aria-expanded]');
|
|
42
|
+
const expandWhenShown = (s, anchor, then = () => {
|
|
43
|
+
}) => s.when(() => !!rowControl(anchor), () => {
|
|
44
|
+
expandIfCollapsed(rowControl(anchor));
|
|
45
|
+
then();
|
|
46
|
+
});
|
|
47
|
+
function createZoningDemo(port, deps) {
|
|
48
|
+
let loading = false;
|
|
49
|
+
let generation = 0;
|
|
50
|
+
let legendOpenedByTour = false;
|
|
51
|
+
let adopting = false;
|
|
52
|
+
let stopAdopting = () => {
|
|
53
|
+
};
|
|
54
|
+
const zoning = () => port.applied().find((dataset) => dataset.id === zoningId);
|
|
55
|
+
const colourProfile = () => {
|
|
56
|
+
var _a, _b;
|
|
57
|
+
return (_b = (_a = zoning()) == null ? void 0 : _a.fields) == null ? void 0 : _b.find((field) => field.name === COLOUR_FIELD);
|
|
58
|
+
};
|
|
59
|
+
const restyle = (changes) => {
|
|
60
|
+
const dataset = zoning();
|
|
61
|
+
if (dataset) port.update(dataset.name, { style: __spreadValues(__spreadValues({}, datasetStyleOf(dataset)), changes(dataset)) });
|
|
62
|
+
};
|
|
63
|
+
const addLayer = () => {
|
|
64
|
+
const hold = generation;
|
|
65
|
+
zoningId = ZONING_ID;
|
|
66
|
+
loading = true;
|
|
67
|
+
deps.load(ZONING_LAYER_URL).then((dataset) => {
|
|
68
|
+
loading = false;
|
|
69
|
+
if (hold !== generation) return;
|
|
70
|
+
if (port.applied().some((applied) => applied.name === dataset.name)) owned = false;
|
|
71
|
+
else port.add(dataset);
|
|
72
|
+
}, () => {
|
|
73
|
+
loading = false;
|
|
74
|
+
if (hold === generation) failed = true;
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
const restoreLayer = () => {
|
|
78
|
+
if (!zoning() && !loading && !adopting) addLayer();
|
|
79
|
+
};
|
|
80
|
+
const unfoldLegend = () => {
|
|
81
|
+
const toggle = legendToggle();
|
|
82
|
+
if ((toggle == null ? void 0 : toggle.getAttribute("aria-expanded")) !== "false") return;
|
|
83
|
+
press(toggle);
|
|
84
|
+
legendOpenedByTour = true;
|
|
85
|
+
};
|
|
86
|
+
const showLayer = (s) => {
|
|
87
|
+
restoreLayer();
|
|
88
|
+
s.when(() => !!legendToggle(), unfoldLegend);
|
|
89
|
+
};
|
|
90
|
+
const foldLegend = () => {
|
|
91
|
+
const toggle = legendToggle();
|
|
92
|
+
if (legendOpenedByTour && (toggle == null ? void 0 : toggle.isConnected) && toggle.getAttribute("aria-expanded") === "true") press(toggle);
|
|
93
|
+
legendOpenedByTour = false;
|
|
94
|
+
};
|
|
95
|
+
const adopt = (claim) => {
|
|
96
|
+
if ("id" in claim) {
|
|
97
|
+
zoningId = claim.id;
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
adopting = true;
|
|
101
|
+
const settle = () => {
|
|
102
|
+
adopting = false;
|
|
103
|
+
};
|
|
104
|
+
stopAdopting = waitFor(() => claim.arrived().length > 0, () => {
|
|
105
|
+
zoningId = claim.arrived()[0].id;
|
|
106
|
+
settle();
|
|
107
|
+
}, ARRIVAL_FRAMES, settle);
|
|
108
|
+
};
|
|
109
|
+
const start = () => {
|
|
110
|
+
generation++;
|
|
111
|
+
failed = false;
|
|
112
|
+
const claim = claimMenuDataset();
|
|
113
|
+
owned = !!claim || !appliedBeforeTour(port.applied());
|
|
114
|
+
if (!owned) return () => {
|
|
115
|
+
};
|
|
116
|
+
deps.fly();
|
|
117
|
+
if (claim) adopt(claim);
|
|
118
|
+
else addLayer();
|
|
119
|
+
return () => {
|
|
120
|
+
generation++;
|
|
121
|
+
stopAdopting();
|
|
122
|
+
adopting = false;
|
|
123
|
+
foldLegend();
|
|
124
|
+
if (owned) port.remove(zoningId);
|
|
125
|
+
owned = false;
|
|
126
|
+
zoningId = ZONING_ID;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
const stages = {
|
|
130
|
+
load: () => {
|
|
131
|
+
},
|
|
132
|
+
legend: (s) => {
|
|
133
|
+
restoreLayer();
|
|
134
|
+
s.when(() => !!legendToggle(), () => s.after(DEMO_DELAY_MS, unfoldLegend));
|
|
135
|
+
},
|
|
136
|
+
layer: (s) => {
|
|
137
|
+
showLayer(s);
|
|
138
|
+
s.when(() => !!rowControl("dataset-style"), () => s.after(DEMO_DELAY_MS, () => expandIfCollapsed(rowControl("dataset-style"))));
|
|
139
|
+
},
|
|
140
|
+
colour: (s) => {
|
|
141
|
+
showLayer(s);
|
|
142
|
+
expandWhenShown(s, "dataset-style");
|
|
143
|
+
s.when(() => !!colourProfile(), () => s.after(DEMO_DELAY_MS, () => {
|
|
144
|
+
const profile = colourProfile();
|
|
145
|
+
if (profile) restyle((dataset) => ({ renderer: rendererForField(profile, dataset.layerColor) }));
|
|
146
|
+
}));
|
|
147
|
+
},
|
|
148
|
+
style: (s) => {
|
|
149
|
+
showLayer(s);
|
|
150
|
+
expandWhenShown(s, "dataset-style", () => expandWhenShown(s, "dataset-more-style", () => s.after(DEMO_DELAY_MS, () => restyle(() => DEMO_STYLE))));
|
|
151
|
+
},
|
|
152
|
+
remove: (s) => s.after(DEMO_DELAY_MS, () => s.when(() => !!rowControl("dataset-remove"), () => {
|
|
153
|
+
const remove = rowControl("dataset-remove");
|
|
154
|
+
if (!remove) return;
|
|
155
|
+
press(remove);
|
|
156
|
+
foldLegend();
|
|
157
|
+
}))
|
|
158
|
+
};
|
|
159
|
+
return (stage) => runStage("zoning", start, (s) => {
|
|
160
|
+
if (owned && !failed) stages[stage](s);
|
|
161
|
+
}, () => failed);
|
|
162
|
+
}
|
|
163
|
+
const ZONING_SEARCH = "Existing Colour Zoning";
|
|
164
|
+
const menuOwned = /* @__PURE__ */ new Map();
|
|
165
|
+
let menuArrival = null;
|
|
166
|
+
const claimMenuDataset = () => {
|
|
167
|
+
const [id] = menuOwned.keys();
|
|
168
|
+
const arrived = menuArrival;
|
|
169
|
+
menuOwned.clear();
|
|
170
|
+
menuArrival = null;
|
|
171
|
+
if (id) return { id };
|
|
172
|
+
return arrived ? { arrived } : null;
|
|
173
|
+
};
|
|
174
|
+
const zoningMenuOwnsDataset = () => menuOwned.size > 0;
|
|
175
|
+
const searchInput = () => {
|
|
176
|
+
var _a;
|
|
177
|
+
return (_a = findAnchor("datasets-search")) == null ? void 0 : _a.querySelector("input");
|
|
178
|
+
};
|
|
179
|
+
const listBoxes = () => [...document.querySelectorAll('[data-tour="datasets-list"] [data-tour="dataset-apply"] button')];
|
|
180
|
+
const rowText = (box) => {
|
|
181
|
+
var _a, _b, _c;
|
|
182
|
+
return (_c = (_b = (_a = box.closest("tr")) == null ? void 0 : _a.textContent) == null ? void 0 : _b.toLowerCase()) != null ? _c : "";
|
|
183
|
+
};
|
|
184
|
+
const zoningMenuRow = () => listBoxes().find((box) => rowText(box).includes(ZONING_SEARCH.toLowerCase()));
|
|
185
|
+
const ownedNamesIn = (text) => [...menuOwned].filter(([, name]) => text.includes(name.toLowerCase()));
|
|
186
|
+
const ownedBox = () => listBoxes().find((box) => box.dataset.state === "checked" && ownedNamesIn(rowText(box)).length > 0);
|
|
187
|
+
let searchHeld = null;
|
|
188
|
+
function restoreZoningSearch() {
|
|
189
|
+
const input = searchInput();
|
|
190
|
+
if (input && searchHeld !== null && input.value !== searchHeld) setNativeValue(input, searchHeld);
|
|
191
|
+
}
|
|
192
|
+
function createZoningMenuDemo(port) {
|
|
193
|
+
let cancelOwnership = () => {
|
|
194
|
+
};
|
|
195
|
+
const dropOwned = () => {
|
|
196
|
+
menuOwned.forEach((_, id) => port.remove(id));
|
|
197
|
+
menuOwned.clear();
|
|
198
|
+
};
|
|
199
|
+
const removeOnArrival = (arrived) => {
|
|
200
|
+
const catalogueIds = () => arrived().flatMap(({ id }) => id && !id.startsWith(URL_DATASET_PREFIX) ? [id] : []);
|
|
201
|
+
waitFor(() => catalogueIds().length > 0, () => catalogueIds().forEach((id) => port.remove(id)), ARRIVAL_FRAMES);
|
|
202
|
+
};
|
|
203
|
+
const start = () => {
|
|
204
|
+
var _a, _b;
|
|
205
|
+
searchHeld = (_b = (_a = searchInput()) == null ? void 0 : _a.value) != null ? _b : "";
|
|
206
|
+
return () => {
|
|
207
|
+
cancelOwnership();
|
|
208
|
+
if (menuArrival) removeOnArrival(menuArrival);
|
|
209
|
+
menuArrival = null;
|
|
210
|
+
restoreZoningSearch();
|
|
211
|
+
searchHeld = null;
|
|
212
|
+
dropOwned();
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
const ownOnArrival = (arrived) => {
|
|
216
|
+
menuArrival = arrived;
|
|
217
|
+
cancelOwnership();
|
|
218
|
+
cancelOwnership = waitFor(() => menuArrival === arrived && arrived().length > 0, () => {
|
|
219
|
+
arrived().forEach((dataset) => menuOwned.set(dataset.id, dataset.name));
|
|
220
|
+
menuArrival = null;
|
|
221
|
+
}, ARRIVAL_FRAMES);
|
|
222
|
+
};
|
|
223
|
+
const tick = () => {
|
|
224
|
+
const box = zoningMenuRow();
|
|
225
|
+
if ((box == null ? void 0 : box.dataset.state) !== "unchecked") return;
|
|
226
|
+
const row = rowText(box);
|
|
227
|
+
const known = new Set(port.applied().map((dataset) => dataset.id));
|
|
228
|
+
press(box);
|
|
229
|
+
ownOnArrival(() => port.applied().filter((dataset) => !known.has(dataset.id) && row.includes(dataset.name.toLowerCase())));
|
|
230
|
+
};
|
|
231
|
+
const untick = () => {
|
|
232
|
+
const box = ownedBox();
|
|
233
|
+
if (!box) return dropOwned();
|
|
234
|
+
ownedNamesIn(rowText(box)).forEach(([id]) => menuOwned.delete(id));
|
|
235
|
+
press(box);
|
|
236
|
+
};
|
|
237
|
+
const ensureSearch = () => {
|
|
238
|
+
const input = searchInput();
|
|
239
|
+
if (input && input.value.toLowerCase() !== ZONING_SEARCH.toLowerCase()) setNativeValue(input, ZONING_SEARCH);
|
|
240
|
+
};
|
|
241
|
+
const stages = {
|
|
242
|
+
find: (s) => {
|
|
243
|
+
const municipal = findAnchor("datasets-tab-municipal");
|
|
244
|
+
if (municipal) press(municipal);
|
|
245
|
+
s.when(() => !!searchInput(), () => {
|
|
246
|
+
const input = searchInput();
|
|
247
|
+
if (input) s.track(typeInto(input, ZONING_SEARCH, () => {
|
|
248
|
+
}));
|
|
249
|
+
});
|
|
250
|
+
},
|
|
251
|
+
apply: (s) => {
|
|
252
|
+
ensureSearch();
|
|
253
|
+
s.when(() => !!zoningMenuRow(), tick);
|
|
254
|
+
},
|
|
255
|
+
applied: () => {
|
|
256
|
+
const tab = findAnchor("datasets-tab-applied");
|
|
257
|
+
if (tab) press(tab);
|
|
258
|
+
},
|
|
259
|
+
close: () => {
|
|
260
|
+
},
|
|
261
|
+
remove: (s) => {
|
|
262
|
+
if (!zoningMenuOwnsDataset()) return;
|
|
263
|
+
if (ownedBox()) untick();
|
|
264
|
+
else s.after(DEMO_DELAY_MS, untick);
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
return (stage) => runStage("zoning-menu", start, (s) => stages[stage](s));
|
|
268
|
+
}
|
|
269
|
+
export {
|
|
270
|
+
createZoningDemo,
|
|
271
|
+
createZoningMenuDemo,
|
|
272
|
+
restoreZoningSearch,
|
|
273
|
+
zoningAlreadyApplied,
|
|
274
|
+
zoningLoadFailed,
|
|
275
|
+
zoningMenuOwnsDataset,
|
|
276
|
+
zoningMenuRow,
|
|
277
|
+
zoningRow,
|
|
278
|
+
zoningStylePanel
|
|
279
|
+
};
|
|
280
|
+
//# sourceMappingURL=zoningDemo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/core/components/tour/platform/zoningDemo.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\n// Copyright (C) 2025 Collab Digital Twins\n\nimport { arcgisLayerUrl } from '../../viewers/map/datasets/src/arcgisLayer'\nimport { datasetStyleOf, rendererForField } from '../../viewers/map/utils/datasetStyle'\n\nimport { anchorSelector, findAnchor } from '../hostTargets'\n\nimport { runStage } from './liveDemo'\nimport { ARRIVAL_FRAMES, DEMO_DELAY_MS, expandIfCollapsed, press, setNativeValue, typeInto, waitFor } from './platformHost'\n\nimport type { Schedule } from './platformHost'\nimport type { Dataset, DatasetStyle } from '../../../types/datasetTypes'\n\nconst ZONING_LAYER_URL = 'https://services.arcgis.com/G6F8XLCl5KtAlZ2G/ArcGIS/rest/services/IM_ExistingColourZoning_Sept25/FeatureServer/0'\n\nconst URL_DATASET_PREFIX = 'url-arcgis:'\nconst ZONING_LAYER = arcgisLayerUrl(ZONING_LAYER_URL)\nconst ZONING_ID = `${URL_DATASET_PREFIX}${ZONING_LAYER}`\nconst COLOUR_FIELD = 'ZONE_MAIN'\nconst DEMO_STYLE = {\n label: { field: 'ZONE_CODE', size: 12, colour: '#111827' },\n strokeColour: '#111827',\n opacity: 0.6,\n} satisfies Partial<DatasetStyle>\n\nlet owned = false\nlet failed = false\nlet zoningId = ZONING_ID\n\nconst appliedBeforeTour = (applied: Dataset[]) =>\n applied.some(dataset => dataset.id === ZONING_ID || dataset.url === ZONING_LAYER)\n\n/** Whether the person has the zoning map on the map already; the copy the tour added does not count. */\nexport const zoningAlreadyApplied = (applied: Dataset[]): boolean => !owned && appliedBeforeTour(applied)\n\n/** Whether the legend demo could not load the zoning map, so its remaining steps have nothing to show. */\nexport const zoningLoadFailed = () => failed\n\nexport type ZoningStage = 'load' | 'legend' | 'layer' | 'colour' | 'style' | 'remove'\n\n/** The applied-datasets store, as the zoning demo reads and changes it. */\nexport interface DatasetPort {\n applied: () => Dataset[]\n add: (dataset: Dataset) => void\n update: (name: string, changes: Partial<Dataset>) => void\n remove: (id: string) => void\n}\n\ninterface ZoningDeps {\n load: (url: string) => Promise<Dataset>\n fly: () => void\n}\n\nconst rowControl = (anchor: string) =>\n document.querySelector<HTMLElement>(`${anchorSelector(`dataset-row:${zoningId}`)} ${anchorSelector(anchor)}`)\n\nexport const zoningStylePanel = () => rowControl('dataset-style-panel')\n\nexport const zoningRow = () => findAnchor(`dataset-row:${zoningId}`)\n\nconst legendToggle = () =>\n document.querySelector<HTMLElement>('[data-tour=\"legend-applied\"] [aria-expanded]')\n\nconst expandWhenShown = (s: Schedule, anchor: string, then: () => void = () => {}) =>\n s.when(() => !!rowControl(anchor), () => {\n expandIfCollapsed(rowControl(anchor))\n then()\n })\n\n/** Runs one stage of the zoning demo in the Map Legend; every stage shares one added dataset, removed when the last one closes. */\nexport function createZoningDemo(port: DatasetPort, deps: ZoningDeps): (stage: ZoningStage) => () => void {\n let loading = false\n let generation = 0\n let legendOpenedByTour = false\n let adopting = false\n let stopAdopting = () => {}\n const zoning = () => port.applied().find(dataset => dataset.id === zoningId)\n const colourProfile = () => zoning()?.fields?.find(field => field.name === COLOUR_FIELD)\n\n const restyle = (changes: (dataset: Dataset) => Partial<DatasetStyle>) => {\n const dataset = zoning()\n if (dataset) port.update(dataset.name, { style: { ...datasetStyleOf(dataset), ...changes(dataset) } })\n }\n\n const addLayer = () => {\n const hold = generation\n zoningId = ZONING_ID\n loading = true\n deps.load(ZONING_LAYER_URL).then(dataset => {\n loading = false\n if (hold !== generation) return\n if (port.applied().some(applied => applied.name === dataset.name)) owned = false\n else port.add(dataset)\n }, () => {\n loading = false\n if (hold === generation) failed = true\n })\n }\n\n const restoreLayer = () => {\n if (!zoning() && !loading && !adopting) addLayer()\n }\n\n const unfoldLegend = () => {\n const toggle = legendToggle()\n if (toggle?.getAttribute('aria-expanded') !== 'false') return\n press(toggle)\n legendOpenedByTour = true\n }\n\n const showLayer = (s: Schedule) => {\n restoreLayer()\n s.when(() => !!legendToggle(), unfoldLegend)\n }\n\n const foldLegend = () => {\n const toggle = legendToggle()\n if (legendOpenedByTour && toggle?.isConnected && toggle.getAttribute('aria-expanded') === 'true') press(toggle)\n legendOpenedByTour = false\n }\n\n const adopt = (claim: MenuClaim) => {\n if ('id' in claim) {\n zoningId = claim.id\n return\n }\n adopting = true\n const settle = () => { adopting = false }\n stopAdopting = waitFor(() => claim.arrived().length > 0, () => {\n zoningId = claim.arrived()[0].id\n settle()\n }, ARRIVAL_FRAMES, settle)\n }\n\n const start = () => {\n generation++\n failed = false\n const claim = claimMenuDataset()\n owned = !!claim || !appliedBeforeTour(port.applied())\n if (!owned) return () => {}\n deps.fly()\n if (claim) adopt(claim)\n else addLayer()\n return () => {\n generation++\n stopAdopting()\n adopting = false\n foldLegend()\n if (owned) port.remove(zoningId)\n owned = false\n zoningId = ZONING_ID\n }\n }\n\n const stages: Record<ZoningStage, (s: Schedule) => void> = {\n load: () => {},\n legend: s => {\n restoreLayer()\n s.when(() => !!legendToggle(), () => s.after(DEMO_DELAY_MS, unfoldLegend))\n },\n layer: s => {\n showLayer(s)\n s.when(() => !!rowControl('dataset-style'), () => s.after(DEMO_DELAY_MS, () => expandIfCollapsed(rowControl('dataset-style'))))\n },\n colour: s => {\n showLayer(s)\n expandWhenShown(s, 'dataset-style')\n s.when(() => !!colourProfile(), () => s.after(DEMO_DELAY_MS, () => {\n const profile = colourProfile()\n if (profile) restyle(dataset => ({ renderer: rendererForField(profile, dataset.layerColor) }))\n }))\n },\n style: s => {\n showLayer(s)\n expandWhenShown(s, 'dataset-style', () =>\n expandWhenShown(s, 'dataset-more-style', () => s.after(DEMO_DELAY_MS, () => restyle(() => DEMO_STYLE))))\n },\n remove: s => s.after(DEMO_DELAY_MS, () => s.when(() => !!rowControl('dataset-remove'), () => {\n const remove = rowControl('dataset-remove')\n if (!remove) return\n press(remove)\n foldLegend()\n })),\n }\n\n return stage => runStage('zoning', start, s => {\n if (owned && !failed) stages[stage](s)\n }, () => failed)\n}\n\nconst ZONING_SEARCH = 'Existing Colour Zoning'\n\nexport type ZoningMenuStage = 'find' | 'apply' | 'applied' | 'remove' | 'close'\n\nconst menuOwned = new Map<string, string>()\nlet menuArrival: (() => Dataset[]) | null = null\n\ntype MenuClaim = { id: string } | { arrived: () => Dataset[] }\n\nconst claimMenuDataset = (): MenuClaim | null => {\n const [id] = menuOwned.keys()\n const arrived = menuArrival\n menuOwned.clear()\n menuArrival = null\n if (id) return { id }\n return arrived ? { arrived } : null\n}\n\nexport const zoningMenuOwnsDataset = () => menuOwned.size > 0\n\nconst searchInput = () => findAnchor('datasets-search')?.querySelector('input')\n\nconst listBoxes = () =>\n [...document.querySelectorAll<HTMLElement>('[data-tour=\"datasets-list\"] [data-tour=\"dataset-apply\"] button')]\n\nconst rowText = (box: HTMLElement) => box.closest('tr')?.textContent?.toLowerCase() ?? ''\n\nexport const zoningMenuRow = () => listBoxes().find(box => rowText(box).includes(ZONING_SEARCH.toLowerCase()))\n\nconst ownedNamesIn = (text: string) =>\n [...menuOwned].filter(([, name]) => text.includes(name.toLowerCase()))\n\nconst ownedBox = () => listBoxes().find(box => box.dataset.state === 'checked' && ownedNamesIn(rowText(box)).length > 0)\n\nlet searchHeld: string | null = null\n\n/** Puts back the search the person had typed now, while the Datasets dialog is still open, if the zoning demo changed it. */\nexport function restoreZoningSearch(): void {\n const input = searchInput()\n if (input && searchHeld !== null && input.value !== searchHeld) setNativeValue(input, searchHeld)\n}\n\n/** Runs one stage of the zoning demo in the Datasets dialog; leaving clears the search and removes what the demo added. */\nexport function createZoningMenuDemo(port: DatasetPort): (stage: ZoningMenuStage) => () => void {\n let cancelOwnership = () => {}\n\n const dropOwned = () => {\n menuOwned.forEach((_, id) => port.remove(id))\n menuOwned.clear()\n }\n\n const removeOnArrival = (arrived: () => Dataset[]) => {\n const catalogueIds = () => arrived().flatMap(({ id }) => (id && !id.startsWith(URL_DATASET_PREFIX) ? [id] : []))\n waitFor(() => catalogueIds().length > 0, () => catalogueIds().forEach(id => port.remove(id)), ARRIVAL_FRAMES)\n }\n\n const start = () => {\n searchHeld = searchInput()?.value ?? ''\n return () => {\n cancelOwnership()\n if (menuArrival) removeOnArrival(menuArrival)\n menuArrival = null\n restoreZoningSearch()\n searchHeld = null\n dropOwned()\n }\n }\n\n const ownOnArrival = (arrived: () => Dataset[]) => {\n menuArrival = arrived\n cancelOwnership()\n cancelOwnership = waitFor(() => menuArrival === arrived && arrived().length > 0, () => {\n arrived().forEach(dataset => menuOwned.set(dataset.id, dataset.name))\n menuArrival = null\n }, ARRIVAL_FRAMES)\n }\n\n const tick = () => {\n const box = zoningMenuRow()\n if (box?.dataset.state !== 'unchecked') return\n const row = rowText(box)\n const known = new Set(port.applied().map(dataset => dataset.id))\n press(box)\n ownOnArrival(() => port.applied().filter(dataset => !known.has(dataset.id) && row.includes(dataset.name.toLowerCase())))\n }\n\n const untick = () => {\n const box = ownedBox()\n if (!box) return dropOwned()\n ownedNamesIn(rowText(box)).forEach(([id]) => menuOwned.delete(id))\n press(box)\n }\n\n const ensureSearch = () => {\n const input = searchInput()\n if (input && input.value.toLowerCase() !== ZONING_SEARCH.toLowerCase()) setNativeValue(input, ZONING_SEARCH)\n }\n\n const stages: Record<ZoningMenuStage, (s: Schedule) => void> = {\n find: s => {\n const municipal = findAnchor('datasets-tab-municipal')\n if (municipal) press(municipal)\n s.when(() => !!searchInput(), () => {\n const input = searchInput()\n if (input) s.track(typeInto(input, ZONING_SEARCH, () => {}))\n })\n },\n apply: s => {\n ensureSearch()\n s.when(() => !!zoningMenuRow(), tick)\n },\n applied: () => {\n const tab = findAnchor('datasets-tab-applied')\n if (tab) press(tab)\n },\n close: () => {},\n remove: s => {\n if (!zoningMenuOwnsDataset()) return\n if (ownedBox()) untick()\n else s.after(DEMO_DELAY_MS, untick)\n },\n }\n\n return stage => runStage('zoning-menu', start, s => stages[stage](s))\n}\n"],"mappings":"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","names":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/** Higher-priority tours show first; equal priorities show in the order they opened. */
|
|
3
|
+
export declare const TourPriorityContext: React.Context<number>;
|
|
4
|
+
export declare const PLATFORM_TOUR_PRIORITY = 100;
|
|
5
|
+
/** Below a plugin's own tour, so the platform tour steps aside while the plugins section opens. */
|
|
6
|
+
export declare const PLATFORM_TOUR_PLUGINS_PRIORITY = -1;
|
|
7
|
+
/** Whether this tour is the one on screen; every open tour waits its turn so only one shows at a time. */
|
|
8
|
+
export declare function useTourTurn(): boolean;
|
|
9
|
+
//# sourceMappingURL=tourQueue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tourQueue.d.ts","sourceRoot":"","sources":["../../../../src/core/components/tour/tourQueue.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AA8B9B,wFAAwF;AACxF,eAAO,MAAM,mBAAmB,uBAAyB,CAAA;AAEzD,eAAO,MAAM,sBAAsB,MAAM,CAAA;AAEzC,mGAAmG;AACnG,eAAO,MAAM,8BAA8B,KAAK,CAAA;AAEhD,0GAA0G;AAC1G,wBAAgB,WAAW,IAAI,OAAO,CAQrC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
|
|
3
|
+
"use client";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
let queue = [];
|
|
6
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
7
|
+
const notify = () => listeners.forEach((listener) => listener());
|
|
8
|
+
function enqueue(entry) {
|
|
9
|
+
const after = queue.findIndex((queued) => queued.priority < entry.priority);
|
|
10
|
+
queue = after === -1 ? [...queue, entry] : [...queue.slice(0, after), entry, ...queue.slice(after)];
|
|
11
|
+
notify();
|
|
12
|
+
}
|
|
13
|
+
function dequeue(token) {
|
|
14
|
+
queue = queue.filter((queued) => queued.token !== token);
|
|
15
|
+
notify();
|
|
16
|
+
}
|
|
17
|
+
function subscribe(listener) {
|
|
18
|
+
listeners.add(listener);
|
|
19
|
+
return () => void listeners.delete(listener);
|
|
20
|
+
}
|
|
21
|
+
const head = () => {
|
|
22
|
+
var _a;
|
|
23
|
+
return (_a = queue[0]) == null ? void 0 : _a.token;
|
|
24
|
+
};
|
|
25
|
+
const TourPriorityContext = React.createContext(0);
|
|
26
|
+
const PLATFORM_TOUR_PRIORITY = 100;
|
|
27
|
+
const PLATFORM_TOUR_PLUGINS_PRIORITY = -1;
|
|
28
|
+
function useTourTurn() {
|
|
29
|
+
const priority = React.useContext(TourPriorityContext);
|
|
30
|
+
const [token] = React.useState(() => /* @__PURE__ */ Symbol("tour"));
|
|
31
|
+
React.useEffect(() => {
|
|
32
|
+
enqueue({ token, priority });
|
|
33
|
+
return () => dequeue(token);
|
|
34
|
+
}, [token, priority]);
|
|
35
|
+
return React.useSyncExternalStore(subscribe, head, () => void 0) === token;
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
PLATFORM_TOUR_PLUGINS_PRIORITY,
|
|
39
|
+
PLATFORM_TOUR_PRIORITY,
|
|
40
|
+
TourPriorityContext,
|
|
41
|
+
useTourTurn
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=tourQueue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/core/components/tour/tourQueue.ts"],"sourcesContent":["'use client'\n\n// SPDX-License-Identifier: AGPL-3.0-or-later\n// Copyright (C) 2025 Collab Digital Twins\n\nimport * as React from 'react'\n\ninterface QueuedTour {\n token: symbol\n priority: number\n}\n\nlet queue: QueuedTour[] = []\nconst listeners = new Set<() => void>()\n\nconst notify = () => listeners.forEach(listener => listener())\n\nfunction enqueue(entry: QueuedTour) {\n const after = queue.findIndex(queued => queued.priority < entry.priority)\n queue = after === -1 ? [...queue, entry] : [...queue.slice(0, after), entry, ...queue.slice(after)]\n notify()\n}\n\nfunction dequeue(token: symbol) {\n queue = queue.filter(queued => queued.token !== token)\n notify()\n}\n\nfunction subscribe(listener: () => void) {\n listeners.add(listener)\n return () => void listeners.delete(listener)\n}\n\nconst head = () => queue[0]?.token\n\n/** Higher-priority tours show first; equal priorities show in the order they opened. */\nexport const TourPriorityContext = React.createContext(0)\n\nexport const PLATFORM_TOUR_PRIORITY = 100\n\n/** Below a plugin's own tour, so the platform tour steps aside while the plugins section opens. */\nexport const PLATFORM_TOUR_PLUGINS_PRIORITY = -1\n\n/** Whether this tour is the one on screen; every open tour waits its turn so only one shows at a time. */\nexport function useTourTurn(): boolean {\n const priority = React.useContext(TourPriorityContext)\n const [token] = React.useState(() => Symbol('tour'))\n React.useEffect(() => {\n enqueue({ token, priority })\n return () => dequeue(token)\n }, [token, priority])\n return React.useSyncExternalStore(subscribe, head, () => undefined) === token\n}\n"],"mappings":";AAKA,YAAY,WAAW;AAOvB,IAAI,QAAsB,CAAC;AAC3B,MAAM,YAAY,oBAAI,IAAgB;AAEtC,MAAM,SAAS,MAAM,UAAU,QAAQ,cAAY,SAAS,CAAC;AAE7D,SAAS,QAAQ,OAAmB;AAClC,QAAM,QAAQ,MAAM,UAAU,YAAU,OAAO,WAAW,MAAM,QAAQ;AACxE,UAAQ,UAAU,KAAK,CAAC,GAAG,OAAO,KAAK,IAAI,CAAC,GAAG,MAAM,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,MAAM,MAAM,KAAK,CAAC;AAClG,SAAO;AACT;AAEA,SAAS,QAAQ,OAAe;AAC9B,UAAQ,MAAM,OAAO,YAAU,OAAO,UAAU,KAAK;AACrD,SAAO;AACT;AAEA,SAAS,UAAU,UAAsB;AACvC,YAAU,IAAI,QAAQ;AACtB,SAAO,MAAM,KAAK,UAAU,OAAO,QAAQ;AAC7C;AAEA,MAAM,OAAO,MAAG;AAjChB;AAiCmB,qBAAM,CAAC,MAAP,mBAAU;AAAA;AAGtB,MAAM,sBAAsB,MAAM,cAAc,CAAC;AAEjD,MAAM,yBAAyB;AAG/B,MAAM,iCAAiC;AAGvC,SAAS,cAAuB;AACrC,QAAM,WAAW,MAAM,WAAW,mBAAmB;AACrD,QAAM,CAAC,KAAK,IAAI,MAAM,SAAS,MAAM,uBAAO,MAAM,CAAC;AACnD,QAAM,UAAU,MAAM;AACpB,YAAQ,EAAE,OAAO,SAAS,CAAC;AAC3B,WAAO,MAAM,QAAQ,KAAK;AAAA,EAC5B,GAAG,CAAC,OAAO,QAAQ,CAAC;AACpB,SAAO,MAAM,qBAAqB,WAAW,MAAM,MAAM,MAAS,MAAM;AAC1E;","names":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Remembers which tours a viewer has finished or hidden, so they do not reopen. */
|
|
2
|
+
export interface TourStore {
|
|
3
|
+
isDone: (tourId: string) => boolean;
|
|
4
|
+
markDone: (tourId: string) => void;
|
|
5
|
+
}
|
|
6
|
+
export type FlagStorage = Pick<Storage, 'getItem' | 'setItem'>;
|
|
7
|
+
export interface BrowserTourStoreOptions {
|
|
8
|
+
/** `session` brings the tour back in a new browser session; `local` keeps it closed on this device. */
|
|
9
|
+
storage?: 'session' | 'local';
|
|
10
|
+
/** Prefixes the storage key, so two plugins' tours with the same id stay apart. */
|
|
11
|
+
namespace: string;
|
|
12
|
+
}
|
|
13
|
+
/** A store over session or local storage; storage that is missing or throws reads as not done. */
|
|
14
|
+
export declare function browserTourStore({ storage, namespace }: BrowserTourStoreOptions, backing?: FlagStorage | null): TourStore;
|
|
15
|
+
//# sourceMappingURL=tourStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tourStore.d.ts","sourceRoot":"","sources":["../../../../src/core/components/tour/tourStore.ts"],"names":[],"mappings":"AAGA,oFAAoF;AACpF,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAA;IACnC,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;CACnC;AAED,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,EAAE,SAAS,GAAG,SAAS,CAAC,CAAA;AAE9D,MAAM,WAAW,uBAAuB;IACtC,uGAAuG;IACvG,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,CAAA;IAC7B,mFAAmF;IACnF,SAAS,EAAE,MAAM,CAAA;CAClB;AAaD,kGAAkG;AAClG,wBAAgB,gBAAgB,CAC9B,EAAE,OAAmB,EAAE,SAAS,EAAE,EAAE,uBAAuB,EAC3D,OAAO,GAAE,WAAW,GAAG,IAA8B,GACpD,SAAS,CAiBX"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const doneKey = (namespace, tourId) => `${namespace}.tour.${tourId}.hidden`;
|
|
2
|
+
function browserStorage(kind) {
|
|
3
|
+
try {
|
|
4
|
+
if (typeof window === "undefined") return null;
|
|
5
|
+
return kind === "local" ? window.localStorage : window.sessionStorage;
|
|
6
|
+
} catch (e) {
|
|
7
|
+
return null;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
function browserTourStore({ storage = "session", namespace }, backing = browserStorage(storage)) {
|
|
11
|
+
return {
|
|
12
|
+
isDone: (tourId) => {
|
|
13
|
+
try {
|
|
14
|
+
return (backing == null ? void 0 : backing.getItem(doneKey(namespace, tourId))) === "1";
|
|
15
|
+
} catch (e) {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
markDone: (tourId) => {
|
|
20
|
+
try {
|
|
21
|
+
backing == null ? void 0 : backing.setItem(doneKey(namespace, tourId), "1");
|
|
22
|
+
} catch (e) {
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
browserTourStore
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=tourStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/core/components/tour/tourStore.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\n// Copyright (C) 2025 Collab Digital Twins\n\n/** Remembers which tours a viewer has finished or hidden, so they do not reopen. */\nexport interface TourStore {\n isDone: (tourId: string) => boolean\n markDone: (tourId: string) => void\n}\n\nexport type FlagStorage = Pick<Storage, 'getItem' | 'setItem'>\n\nexport interface BrowserTourStoreOptions {\n /** `session` brings the tour back in a new browser session; `local` keeps it closed on this device. */\n storage?: 'session' | 'local'\n /** Prefixes the storage key, so two plugins' tours with the same id stay apart. */\n namespace: string\n}\n\nconst doneKey = (namespace: string, tourId: string) => `${namespace}.tour.${tourId}.hidden`\n\nfunction browserStorage(kind: 'session' | 'local'): FlagStorage | null {\n try {\n if (typeof window === 'undefined') return null\n return kind === 'local' ? window.localStorage : window.sessionStorage\n } catch {\n return null\n }\n}\n\n/** A store over session or local storage; storage that is missing or throws reads as not done. */\nexport function browserTourStore(\n { storage = 'session', namespace }: BrowserTourStoreOptions,\n backing: FlagStorage | null = browserStorage(storage),\n): TourStore {\n return {\n isDone: tourId => {\n try {\n return backing?.getItem(doneKey(namespace, tourId)) === '1'\n } catch {\n return false\n }\n },\n markDone: tourId => {\n try {\n backing?.setItem(doneKey(namespace, tourId), '1')\n } catch {\n // Private windows can refuse writes; the tour then simply returns next time.\n }\n },\n }\n}\n"],"mappings":"AAkBA,MAAM,UAAU,CAAC,WAAmB,WAAmB,GAAG,SAAS,SAAS,MAAM;AAElF,SAAS,eAAe,MAA+C;AACrE,MAAI;AACF,QAAI,OAAO,WAAW,YAAa,QAAO;AAC1C,WAAO,SAAS,UAAU,OAAO,eAAe,OAAO;AAAA,EACzD,SAAQ;AACN,WAAO;AAAA,EACT;AACF;AAGO,SAAS,iBACd,EAAE,UAAU,WAAW,UAAU,GACjC,UAA8B,eAAe,OAAO,GACzC;AACX,SAAO;AAAA,IACL,QAAQ,YAAU;AAChB,UAAI;AACF,gBAAO,mCAAS,QAAQ,QAAQ,WAAW,MAAM,QAAO;AAAA,MAC1D,SAAQ;AACN,eAAO;AAAA,MACT;AAAA,IACF;AAAA,IACA,UAAU,YAAU;AAClB,UAAI;AACF,2CAAS,QAAQ,QAAQ,WAAW,MAAM,GAAG;AAAA,MAC/C,SAAQ;AAAA,MAER;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/** The tour's stylesheet; `:where` keeps the defaults overridable by any class that sets a `--tour-*` variable. */
|
|
2
|
+
export declare const TOUR_CSS = "\n:where(.cdt-tour) {\n --tour-surface: hsl(var(--card, 0 0% 100%));\n --tour-text: hsl(var(--card-foreground, 0 0% 3.9%));\n --tour-ink: var(--tour-text);\n --tour-muted: hsl(var(--border, 0 0% 89.8%));\n --tour-accent: var(--hp-primary-container, #c05520);\n --tour-accent-strong: color-mix(in srgb, var(--tour-accent) 75%, black);\n --tour-on-accent: var(--hp-on-primary-ctr, #ffffff);\n --tour-header-bg: var(--tour-accent);\n --tour-header-fg: var(--tour-on-accent);\n --tour-scrim: rgba(0, 0, 0, 0.45);\n --tour-ring: var(--tour-accent);\n --tour-focus: hsl(var(--ring, 0 0% 3.9%));\n}\n.cdt-tour { position: fixed; inset: 0; z-index: var(--tour-z, 2147483000); pointer-events: none; color: var(--tour-ink); }\n.cdt-tour * { box-sizing: border-box; }\n[data-tour] { scroll-margin-top: 64px; }\n\n.cdt-tour-scrim { position: fixed; inset: 0; z-index: 9; background: var(--tour-scrim); }\n.cdt-tour-spot { position: fixed; z-index: 9; border-radius: 10px; background: var(--tour-scrim); box-shadow: 0 0 0 9999px var(--tour-scrim); }\n.cdt-tour-spot.is-settled { background: transparent; transition: background 280ms ease-out; }\n.cdt-tour-ring { position: fixed; z-index: 11; border-radius: 10px; border: 2px solid var(--tour-ring); box-shadow: 0 0 0 6px color-mix(in srgb, var(--tour-accent) 35%, transparent); opacity: 0; }\n.cdt-tour-ring.is-settled { opacity: 1; transition: opacity 280ms ease-out; animation: cdt-tour-pulse 2s ease-in-out 280ms infinite; }\n@keyframes cdt-tour-pulse { 50% { box-shadow: 0 0 0 11px color-mix(in srgb, var(--tour-accent) 15%, transparent); } }\n.cdt-tour-arrow { position: fixed; z-index: 11; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--tour-accent); color: var(--tour-on-accent); font-size: 1.25rem; font-weight: 700; line-height: 1; box-shadow: 0 6px 18px color-mix(in srgb, var(--tour-ink) 35%, transparent); opacity: 0; }\n.cdt-tour-arrow.is-settled { opacity: 1; transition: opacity 280ms ease-out; animation: cdt-tour-nudge 1.2s ease-in-out 280ms infinite; }\n@keyframes cdt-tour-nudge { 50% { transform: translateX(-6px); } }\n\n.cdt-tour-hide { position: fixed; z-index: 9; top: 12px; left: 50%; transform: translateX(-50%); pointer-events: auto; display: inline-flex; align-items: center; gap: 0.45rem; border: none; border-radius: 999px; background: var(--tour-accent); color: var(--tour-on-accent); font: inherit; font-size: 0.8rem; font-weight: 600; padding: 0.5rem 0.95rem; cursor: pointer; box-shadow: 0 6px 18px color-mix(in srgb, var(--tour-ink) 35%, transparent); }\n.cdt-tour-hide:hover { background: var(--tour-accent-strong); }\n.cdt-tour-hide span { font-size: 1rem; line-height: 1; }\n\n.cdt-tour-card { position: fixed; z-index: 9; width: min(360px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-x: hidden; overflow-y: auto; pointer-events: auto; background: var(--tour-surface); border-radius: 12px; box-shadow: 0 18px 48px color-mix(in srgb, var(--tour-ink) 35%, transparent); opacity: 0; transform: translateY(6px); }\n.cdt-tour-card.is-settled { opacity: 1; transform: none; transition: opacity 220ms ease-out, transform 220ms ease-out; }\n.cdt-tour-card > header { position: sticky; top: 0; z-index: 1; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; background: var(--tour-header-bg); color: var(--tour-header-fg); padding: 0.7rem 1rem; border-radius: 12px 12px 0 0; }\n.cdt-tour-shortcut { padding: 0.2rem 0.6rem; border: 1px solid color-mix(in srgb, var(--tour-header-fg) 55%, transparent); border-radius: 999px; background: none; font: inherit; font-size: 0.75rem; font-weight: 600; color: inherit; cursor: pointer; min-width: 0; text-align: left; }\n.cdt-tour-shortcut:hover { background: color-mix(in srgb, var(--tour-header-fg) 15%, transparent); }\n.cdt-tour-card > header small { margin-left: auto; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }\n\n.cdt-tour-body { padding: 0.9rem 1rem 0.4rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.82rem; line-height: 1.45; color: var(--tour-text); }\n.cdt-tour-body h3 { display: flex; flex-direction: column; gap: 0.35rem; margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--tour-ink); }\n.cdt-tour-body h3::before { content: ''; display: block; width: 2.25rem; height: 4px; background: var(--tour-accent); }\n.cdt-tour-body p { margin: 0; }\n.cdt-tour-menu-path { display: inline-flex; align-items: center; gap: 0.25em; font-weight: 600; color: var(--tour-ink); white-space: nowrap; }\n.cdt-tour-menu-path svg { width: 1em; height: 1em; }\n.cdt-tour-body dl { margin: 0; display: grid; gap: 0.35rem; }\n.cdt-tour-body dt { font-weight: 600; color: var(--tour-accent); }\n.cdt-tour-body dd { margin: 0; }\n.cdt-tour-items { list-style: none; margin: 0 -0.4rem; padding: 0; display: grid; gap: 0.15rem; }\n.cdt-tour-item { display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; column-gap: 0.65rem; width: 100%; padding: 0.4rem; border: 1px solid transparent; border-radius: 8px; background: none; font: inherit; color: inherit; text-align: left; }\nbutton.cdt-tour-item { cursor: pointer; }\nbutton.cdt-tour-item:hover { border-color: var(--tour-muted); background: color-mix(in srgb, var(--tour-accent) 7%, transparent); }\n.cdt-tour-item-icon { display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 6px; background: color-mix(in srgb, var(--tour-accent) 12%, transparent); color: var(--tour-accent); }\n.cdt-tour-item-icon svg { width: 1.05rem; height: 1.05rem; }\n.cdt-tour-item-text { display: flex; flex-direction: column; min-width: 0; }\n.cdt-tour-item-text strong { font-weight: 600; color: var(--tour-accent); }\n.cdt-tour-item-go { font-size: 1.2rem; line-height: 1; color: var(--tour-accent); opacity: 0.6; }\nbutton.cdt-tour-item:hover .cdt-tour-item-go { opacity: 1; }\n.cdt-tour-waiting { display: grid; gap: 0.35rem; }\n.cdt-tour-waiting > span:not(.cdt-tour-sr) { height: 0.55rem; border-radius: 999px; background: linear-gradient(90deg, var(--tour-muted) 25%, color-mix(in srgb, var(--tour-muted) 40%, var(--tour-surface)) 50%, var(--tour-muted) 75%); background-size: 200% 100%; animation: cdt-tour-shimmer 1.2s linear infinite; }\n.cdt-tour-waiting > span:nth-child(2) { width: 60%; }\n@keyframes cdt-tour-shimmer { to { background-position: -200% 0; } }\n.cdt-tour-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }\n\n.cdt-tour-card > footer { position: sticky; bottom: 0; background: var(--tour-surface); border-radius: 0 0 12px 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.6rem 1rem 0.9rem; }\n.cdt-tour-dots { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }\n.cdt-tour-dots button { width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px; background: var(--tour-muted); cursor: pointer; }\n.cdt-tour-dots button[aria-current='step'] { width: 18px; background: var(--tour-accent); }\n.cdt-tour-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.4rem; min-width: 0; margin-left: auto; }\n.cdt-tour-actions button { font: inherit; font-size: 0.8rem; font-weight: 600; border-radius: 6px; padding: 0.4rem 0.8rem; text-align: center; cursor: pointer; }\n.cdt-tour-back { background: none; border: 1px solid var(--tour-muted); color: var(--tour-ink); }\n.cdt-tour-back:disabled { opacity: 0.4; cursor: default; }\n.cdt-tour-next { background: var(--tour-accent); border: 1px solid var(--tour-accent); color: var(--tour-on-accent); }\n.cdt-tour-next:hover { background: var(--tour-accent-strong); border-color: var(--tour-accent-strong); }\n.cdt-tour button:focus-visible { outline: 2px solid var(--tour-focus); outline-offset: 2px; }\n\n@media (pointer: coarse) {\n .cdt-tour-dots { display: none; }\n .cdt-tour-actions button, .cdt-tour-hide { min-height: 44px; padding-inline: 1rem; }\n .cdt-tour-shortcut { min-height: 36px; }\n}\n@media (max-width: 767px) {\n .cdt-tour-hide { top: auto; bottom: 72px; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .cdt-tour-spot.is-settled, .cdt-tour-ring.is-settled, .cdt-tour-arrow.is-settled, .cdt-tour-card.is-settled, .cdt-tour-waiting > span { transition: none; animation: none; }\n .cdt-tour-card { transform: none; }\n}\n";
|
|
3
|
+
//# sourceMappingURL=tourStyles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tourStyles.d.ts","sourceRoot":"","sources":["../../../../src/core/components/tour/tourStyles.ts"],"names":[],"mappings":"AAGA,mHAAmH;AACnH,eAAO,MAAM,QAAQ,2zQA0FpB,CAAA"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
const TOUR_CSS = `
|
|
2
|
+
:where(.cdt-tour) {
|
|
3
|
+
--tour-surface: hsl(var(--card, 0 0% 100%));
|
|
4
|
+
--tour-text: hsl(var(--card-foreground, 0 0% 3.9%));
|
|
5
|
+
--tour-ink: var(--tour-text);
|
|
6
|
+
--tour-muted: hsl(var(--border, 0 0% 89.8%));
|
|
7
|
+
--tour-accent: var(--hp-primary-container, #c05520);
|
|
8
|
+
--tour-accent-strong: color-mix(in srgb, var(--tour-accent) 75%, black);
|
|
9
|
+
--tour-on-accent: var(--hp-on-primary-ctr, #ffffff);
|
|
10
|
+
--tour-header-bg: var(--tour-accent);
|
|
11
|
+
--tour-header-fg: var(--tour-on-accent);
|
|
12
|
+
--tour-scrim: rgba(0, 0, 0, 0.45);
|
|
13
|
+
--tour-ring: var(--tour-accent);
|
|
14
|
+
--tour-focus: hsl(var(--ring, 0 0% 3.9%));
|
|
15
|
+
}
|
|
16
|
+
.cdt-tour { position: fixed; inset: 0; z-index: var(--tour-z, 2147483000); pointer-events: none; color: var(--tour-ink); }
|
|
17
|
+
.cdt-tour * { box-sizing: border-box; }
|
|
18
|
+
[data-tour] { scroll-margin-top: 64px; }
|
|
19
|
+
|
|
20
|
+
.cdt-tour-scrim { position: fixed; inset: 0; z-index: 9; background: var(--tour-scrim); }
|
|
21
|
+
.cdt-tour-spot { position: fixed; z-index: 9; border-radius: 10px; background: var(--tour-scrim); box-shadow: 0 0 0 9999px var(--tour-scrim); }
|
|
22
|
+
.cdt-tour-spot.is-settled { background: transparent; transition: background 280ms ease-out; }
|
|
23
|
+
.cdt-tour-ring { position: fixed; z-index: 11; border-radius: 10px; border: 2px solid var(--tour-ring); box-shadow: 0 0 0 6px color-mix(in srgb, var(--tour-accent) 35%, transparent); opacity: 0; }
|
|
24
|
+
.cdt-tour-ring.is-settled { opacity: 1; transition: opacity 280ms ease-out; animation: cdt-tour-pulse 2s ease-in-out 280ms infinite; }
|
|
25
|
+
@keyframes cdt-tour-pulse { 50% { box-shadow: 0 0 0 11px color-mix(in srgb, var(--tour-accent) 15%, transparent); } }
|
|
26
|
+
.cdt-tour-arrow { position: fixed; z-index: 11; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--tour-accent); color: var(--tour-on-accent); font-size: 1.25rem; font-weight: 700; line-height: 1; box-shadow: 0 6px 18px color-mix(in srgb, var(--tour-ink) 35%, transparent); opacity: 0; }
|
|
27
|
+
.cdt-tour-arrow.is-settled { opacity: 1; transition: opacity 280ms ease-out; animation: cdt-tour-nudge 1.2s ease-in-out 280ms infinite; }
|
|
28
|
+
@keyframes cdt-tour-nudge { 50% { transform: translateX(-6px); } }
|
|
29
|
+
|
|
30
|
+
.cdt-tour-hide { position: fixed; z-index: 9; top: 12px; left: 50%; transform: translateX(-50%); pointer-events: auto; display: inline-flex; align-items: center; gap: 0.45rem; border: none; border-radius: 999px; background: var(--tour-accent); color: var(--tour-on-accent); font: inherit; font-size: 0.8rem; font-weight: 600; padding: 0.5rem 0.95rem; cursor: pointer; box-shadow: 0 6px 18px color-mix(in srgb, var(--tour-ink) 35%, transparent); }
|
|
31
|
+
.cdt-tour-hide:hover { background: var(--tour-accent-strong); }
|
|
32
|
+
.cdt-tour-hide span { font-size: 1rem; line-height: 1; }
|
|
33
|
+
|
|
34
|
+
.cdt-tour-card { position: fixed; z-index: 9; width: min(360px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-x: hidden; overflow-y: auto; pointer-events: auto; background: var(--tour-surface); border-radius: 12px; box-shadow: 0 18px 48px color-mix(in srgb, var(--tour-ink) 35%, transparent); opacity: 0; transform: translateY(6px); }
|
|
35
|
+
.cdt-tour-card.is-settled { opacity: 1; transform: none; transition: opacity 220ms ease-out, transform 220ms ease-out; }
|
|
36
|
+
.cdt-tour-card > header { position: sticky; top: 0; z-index: 1; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; background: var(--tour-header-bg); color: var(--tour-header-fg); padding: 0.7rem 1rem; border-radius: 12px 12px 0 0; }
|
|
37
|
+
.cdt-tour-shortcut { padding: 0.2rem 0.6rem; border: 1px solid color-mix(in srgb, var(--tour-header-fg) 55%, transparent); border-radius: 999px; background: none; font: inherit; font-size: 0.75rem; font-weight: 600; color: inherit; cursor: pointer; min-width: 0; text-align: left; }
|
|
38
|
+
.cdt-tour-shortcut:hover { background: color-mix(in srgb, var(--tour-header-fg) 15%, transparent); }
|
|
39
|
+
.cdt-tour-card > header small { margin-left: auto; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
|
|
40
|
+
|
|
41
|
+
.cdt-tour-body { padding: 0.9rem 1rem 0.4rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.82rem; line-height: 1.45; color: var(--tour-text); }
|
|
42
|
+
.cdt-tour-body h3 { display: flex; flex-direction: column; gap: 0.35rem; margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--tour-ink); }
|
|
43
|
+
.cdt-tour-body h3::before { content: ''; display: block; width: 2.25rem; height: 4px; background: var(--tour-accent); }
|
|
44
|
+
.cdt-tour-body p { margin: 0; }
|
|
45
|
+
.cdt-tour-menu-path { display: inline-flex; align-items: center; gap: 0.25em; font-weight: 600; color: var(--tour-ink); white-space: nowrap; }
|
|
46
|
+
.cdt-tour-menu-path svg { width: 1em; height: 1em; }
|
|
47
|
+
.cdt-tour-body dl { margin: 0; display: grid; gap: 0.35rem; }
|
|
48
|
+
.cdt-tour-body dt { font-weight: 600; color: var(--tour-accent); }
|
|
49
|
+
.cdt-tour-body dd { margin: 0; }
|
|
50
|
+
.cdt-tour-items { list-style: none; margin: 0 -0.4rem; padding: 0; display: grid; gap: 0.15rem; }
|
|
51
|
+
.cdt-tour-item { display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; column-gap: 0.65rem; width: 100%; padding: 0.4rem; border: 1px solid transparent; border-radius: 8px; background: none; font: inherit; color: inherit; text-align: left; }
|
|
52
|
+
button.cdt-tour-item { cursor: pointer; }
|
|
53
|
+
button.cdt-tour-item:hover { border-color: var(--tour-muted); background: color-mix(in srgb, var(--tour-accent) 7%, transparent); }
|
|
54
|
+
.cdt-tour-item-icon { display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 6px; background: color-mix(in srgb, var(--tour-accent) 12%, transparent); color: var(--tour-accent); }
|
|
55
|
+
.cdt-tour-item-icon svg { width: 1.05rem; height: 1.05rem; }
|
|
56
|
+
.cdt-tour-item-text { display: flex; flex-direction: column; min-width: 0; }
|
|
57
|
+
.cdt-tour-item-text strong { font-weight: 600; color: var(--tour-accent); }
|
|
58
|
+
.cdt-tour-item-go { font-size: 1.2rem; line-height: 1; color: var(--tour-accent); opacity: 0.6; }
|
|
59
|
+
button.cdt-tour-item:hover .cdt-tour-item-go { opacity: 1; }
|
|
60
|
+
.cdt-tour-waiting { display: grid; gap: 0.35rem; }
|
|
61
|
+
.cdt-tour-waiting > span:not(.cdt-tour-sr) { height: 0.55rem; border-radius: 999px; background: linear-gradient(90deg, var(--tour-muted) 25%, color-mix(in srgb, var(--tour-muted) 40%, var(--tour-surface)) 50%, var(--tour-muted) 75%); background-size: 200% 100%; animation: cdt-tour-shimmer 1.2s linear infinite; }
|
|
62
|
+
.cdt-tour-waiting > span:nth-child(2) { width: 60%; }
|
|
63
|
+
@keyframes cdt-tour-shimmer { to { background-position: -200% 0; } }
|
|
64
|
+
.cdt-tour-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
65
|
+
|
|
66
|
+
.cdt-tour-card > footer { position: sticky; bottom: 0; background: var(--tour-surface); border-radius: 0 0 12px 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.6rem 1rem 0.9rem; }
|
|
67
|
+
.cdt-tour-dots { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
|
|
68
|
+
.cdt-tour-dots button { width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px; background: var(--tour-muted); cursor: pointer; }
|
|
69
|
+
.cdt-tour-dots button[aria-current='step'] { width: 18px; background: var(--tour-accent); }
|
|
70
|
+
.cdt-tour-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.4rem; min-width: 0; margin-left: auto; }
|
|
71
|
+
.cdt-tour-actions button { font: inherit; font-size: 0.8rem; font-weight: 600; border-radius: 6px; padding: 0.4rem 0.8rem; text-align: center; cursor: pointer; }
|
|
72
|
+
.cdt-tour-back { background: none; border: 1px solid var(--tour-muted); color: var(--tour-ink); }
|
|
73
|
+
.cdt-tour-back:disabled { opacity: 0.4; cursor: default; }
|
|
74
|
+
.cdt-tour-next { background: var(--tour-accent); border: 1px solid var(--tour-accent); color: var(--tour-on-accent); }
|
|
75
|
+
.cdt-tour-next:hover { background: var(--tour-accent-strong); border-color: var(--tour-accent-strong); }
|
|
76
|
+
.cdt-tour button:focus-visible { outline: 2px solid var(--tour-focus); outline-offset: 2px; }
|
|
77
|
+
|
|
78
|
+
@media (pointer: coarse) {
|
|
79
|
+
.cdt-tour-dots { display: none; }
|
|
80
|
+
.cdt-tour-actions button, .cdt-tour-hide { min-height: 44px; padding-inline: 1rem; }
|
|
81
|
+
.cdt-tour-shortcut { min-height: 36px; }
|
|
82
|
+
}
|
|
83
|
+
@media (max-width: 767px) {
|
|
84
|
+
.cdt-tour-hide { top: auto; bottom: 72px; }
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@media (prefers-reduced-motion: reduce) {
|
|
88
|
+
.cdt-tour-spot.is-settled, .cdt-tour-ring.is-settled, .cdt-tour-arrow.is-settled, .cdt-tour-card.is-settled, .cdt-tour-waiting > span { transition: none; animation: none; }
|
|
89
|
+
.cdt-tour-card { transform: none; }
|
|
90
|
+
}
|
|
91
|
+
`;
|
|
92
|
+
export {
|
|
93
|
+
TOUR_CSS
|
|
94
|
+
};
|
|
95
|
+
//# sourceMappingURL=tourStyles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/core/components/tour/tourStyles.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\n// Copyright (C) 2025 Collab Digital Twins\n\n/** The tour's stylesheet; `:where` keeps the defaults overridable by any class that sets a `--tour-*` variable. */\nexport const TOUR_CSS = `\n:where(.cdt-tour) {\n --tour-surface: hsl(var(--card, 0 0% 100%));\n --tour-text: hsl(var(--card-foreground, 0 0% 3.9%));\n --tour-ink: var(--tour-text);\n --tour-muted: hsl(var(--border, 0 0% 89.8%));\n --tour-accent: var(--hp-primary-container, #c05520);\n --tour-accent-strong: color-mix(in srgb, var(--tour-accent) 75%, black);\n --tour-on-accent: var(--hp-on-primary-ctr, #ffffff);\n --tour-header-bg: var(--tour-accent);\n --tour-header-fg: var(--tour-on-accent);\n --tour-scrim: rgba(0, 0, 0, 0.45);\n --tour-ring: var(--tour-accent);\n --tour-focus: hsl(var(--ring, 0 0% 3.9%));\n}\n.cdt-tour { position: fixed; inset: 0; z-index: var(--tour-z, 2147483000); pointer-events: none; color: var(--tour-ink); }\n.cdt-tour * { box-sizing: border-box; }\n[data-tour] { scroll-margin-top: 64px; }\n\n.cdt-tour-scrim { position: fixed; inset: 0; z-index: 9; background: var(--tour-scrim); }\n.cdt-tour-spot { position: fixed; z-index: 9; border-radius: 10px; background: var(--tour-scrim); box-shadow: 0 0 0 9999px var(--tour-scrim); }\n.cdt-tour-spot.is-settled { background: transparent; transition: background 280ms ease-out; }\n.cdt-tour-ring { position: fixed; z-index: 11; border-radius: 10px; border: 2px solid var(--tour-ring); box-shadow: 0 0 0 6px color-mix(in srgb, var(--tour-accent) 35%, transparent); opacity: 0; }\n.cdt-tour-ring.is-settled { opacity: 1; transition: opacity 280ms ease-out; animation: cdt-tour-pulse 2s ease-in-out 280ms infinite; }\n@keyframes cdt-tour-pulse { 50% { box-shadow: 0 0 0 11px color-mix(in srgb, var(--tour-accent) 15%, transparent); } }\n.cdt-tour-arrow { position: fixed; z-index: 11; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--tour-accent); color: var(--tour-on-accent); font-size: 1.25rem; font-weight: 700; line-height: 1; box-shadow: 0 6px 18px color-mix(in srgb, var(--tour-ink) 35%, transparent); opacity: 0; }\n.cdt-tour-arrow.is-settled { opacity: 1; transition: opacity 280ms ease-out; animation: cdt-tour-nudge 1.2s ease-in-out 280ms infinite; }\n@keyframes cdt-tour-nudge { 50% { transform: translateX(-6px); } }\n\n.cdt-tour-hide { position: fixed; z-index: 9; top: 12px; left: 50%; transform: translateX(-50%); pointer-events: auto; display: inline-flex; align-items: center; gap: 0.45rem; border: none; border-radius: 999px; background: var(--tour-accent); color: var(--tour-on-accent); font: inherit; font-size: 0.8rem; font-weight: 600; padding: 0.5rem 0.95rem; cursor: pointer; box-shadow: 0 6px 18px color-mix(in srgb, var(--tour-ink) 35%, transparent); }\n.cdt-tour-hide:hover { background: var(--tour-accent-strong); }\n.cdt-tour-hide span { font-size: 1rem; line-height: 1; }\n\n.cdt-tour-card { position: fixed; z-index: 9; width: min(360px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-x: hidden; overflow-y: auto; pointer-events: auto; background: var(--tour-surface); border-radius: 12px; box-shadow: 0 18px 48px color-mix(in srgb, var(--tour-ink) 35%, transparent); opacity: 0; transform: translateY(6px); }\n.cdt-tour-card.is-settled { opacity: 1; transform: none; transition: opacity 220ms ease-out, transform 220ms ease-out; }\n.cdt-tour-card > header { position: sticky; top: 0; z-index: 1; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; background: var(--tour-header-bg); color: var(--tour-header-fg); padding: 0.7rem 1rem; border-radius: 12px 12px 0 0; }\n.cdt-tour-shortcut { padding: 0.2rem 0.6rem; border: 1px solid color-mix(in srgb, var(--tour-header-fg) 55%, transparent); border-radius: 999px; background: none; font: inherit; font-size: 0.75rem; font-weight: 600; color: inherit; cursor: pointer; min-width: 0; text-align: left; }\n.cdt-tour-shortcut:hover { background: color-mix(in srgb, var(--tour-header-fg) 15%, transparent); }\n.cdt-tour-card > header small { margin-left: auto; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }\n\n.cdt-tour-body { padding: 0.9rem 1rem 0.4rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.82rem; line-height: 1.45; color: var(--tour-text); }\n.cdt-tour-body h3 { display: flex; flex-direction: column; gap: 0.35rem; margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--tour-ink); }\n.cdt-tour-body h3::before { content: ''; display: block; width: 2.25rem; height: 4px; background: var(--tour-accent); }\n.cdt-tour-body p { margin: 0; }\n.cdt-tour-menu-path { display: inline-flex; align-items: center; gap: 0.25em; font-weight: 600; color: var(--tour-ink); white-space: nowrap; }\n.cdt-tour-menu-path svg { width: 1em; height: 1em; }\n.cdt-tour-body dl { margin: 0; display: grid; gap: 0.35rem; }\n.cdt-tour-body dt { font-weight: 600; color: var(--tour-accent); }\n.cdt-tour-body dd { margin: 0; }\n.cdt-tour-items { list-style: none; margin: 0 -0.4rem; padding: 0; display: grid; gap: 0.15rem; }\n.cdt-tour-item { display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; column-gap: 0.65rem; width: 100%; padding: 0.4rem; border: 1px solid transparent; border-radius: 8px; background: none; font: inherit; color: inherit; text-align: left; }\nbutton.cdt-tour-item { cursor: pointer; }\nbutton.cdt-tour-item:hover { border-color: var(--tour-muted); background: color-mix(in srgb, var(--tour-accent) 7%, transparent); }\n.cdt-tour-item-icon { display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 6px; background: color-mix(in srgb, var(--tour-accent) 12%, transparent); color: var(--tour-accent); }\n.cdt-tour-item-icon svg { width: 1.05rem; height: 1.05rem; }\n.cdt-tour-item-text { display: flex; flex-direction: column; min-width: 0; }\n.cdt-tour-item-text strong { font-weight: 600; color: var(--tour-accent); }\n.cdt-tour-item-go { font-size: 1.2rem; line-height: 1; color: var(--tour-accent); opacity: 0.6; }\nbutton.cdt-tour-item:hover .cdt-tour-item-go { opacity: 1; }\n.cdt-tour-waiting { display: grid; gap: 0.35rem; }\n.cdt-tour-waiting > span:not(.cdt-tour-sr) { height: 0.55rem; border-radius: 999px; background: linear-gradient(90deg, var(--tour-muted) 25%, color-mix(in srgb, var(--tour-muted) 40%, var(--tour-surface)) 50%, var(--tour-muted) 75%); background-size: 200% 100%; animation: cdt-tour-shimmer 1.2s linear infinite; }\n.cdt-tour-waiting > span:nth-child(2) { width: 60%; }\n@keyframes cdt-tour-shimmer { to { background-position: -200% 0; } }\n.cdt-tour-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }\n\n.cdt-tour-card > footer { position: sticky; bottom: 0; background: var(--tour-surface); border-radius: 0 0 12px 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.6rem 1rem 0.9rem; }\n.cdt-tour-dots { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }\n.cdt-tour-dots button { width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px; background: var(--tour-muted); cursor: pointer; }\n.cdt-tour-dots button[aria-current='step'] { width: 18px; background: var(--tour-accent); }\n.cdt-tour-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.4rem; min-width: 0; margin-left: auto; }\n.cdt-tour-actions button { font: inherit; font-size: 0.8rem; font-weight: 600; border-radius: 6px; padding: 0.4rem 0.8rem; text-align: center; cursor: pointer; }\n.cdt-tour-back { background: none; border: 1px solid var(--tour-muted); color: var(--tour-ink); }\n.cdt-tour-back:disabled { opacity: 0.4; cursor: default; }\n.cdt-tour-next { background: var(--tour-accent); border: 1px solid var(--tour-accent); color: var(--tour-on-accent); }\n.cdt-tour-next:hover { background: var(--tour-accent-strong); border-color: var(--tour-accent-strong); }\n.cdt-tour button:focus-visible { outline: 2px solid var(--tour-focus); outline-offset: 2px; }\n\n@media (pointer: coarse) {\n .cdt-tour-dots { display: none; }\n .cdt-tour-actions button, .cdt-tour-hide { min-height: 44px; padding-inline: 1rem; }\n .cdt-tour-shortcut { min-height: 36px; }\n}\n@media (max-width: 767px) {\n .cdt-tour-hide { top: auto; bottom: 72px; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .cdt-tour-spot.is-settled, .cdt-tour-ring.is-settled, .cdt-tour-arrow.is-settled, .cdt-tour-card.is-settled, .cdt-tour-waiting > span { transition: none; animation: none; }\n .cdt-tour-card { transform: none; }\n}\n`\n"],"mappings":"AAIO,MAAM,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;","names":[]}
|