@burdenoff/microfe-cosmicintersection 2026.1109.7 → 2026.1110.2
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/cosmicintersection/CosmicIntersectionRoot.d.ts +0 -1
- package/dist/cosmicintersection/CosmicIntersectionRoot.js +1 -2
- package/dist/cosmicintersection/CosmicIntersectionRoot.js.map +1 -1
- package/dist/cosmicintersection/CosmicIntersectionRoutes.d.ts +0 -1
- package/dist/cosmicintersection/CosmicIntersectionRoutes.js +36 -33
- package/dist/cosmicintersection/CosmicIntersectionRoutes.js.map +1 -1
- package/dist/cosmicintersection/api/cosmicApi.d.ts +86 -1
- package/dist/cosmicintersection/api/cosmicApi.js +70 -14
- package/dist/cosmicintersection/api/cosmicApi.js.map +1 -1
- package/dist/cosmicintersection/api/databricksTransport.d.ts +0 -1
- package/dist/cosmicintersection/api/databricksTransport.js +1 -2
- package/dist/cosmicintersection/api/databricksTransport.js.map +1 -1
- package/dist/cosmicintersection/api/tagsApi.d.ts +0 -1
- package/dist/cosmicintersection/api/tagsApi.js +1 -2
- package/dist/cosmicintersection/api/tagsApi.js.map +1 -1
- package/dist/cosmicintersection/components/ActionMenu.d.ts +0 -1
- package/dist/cosmicintersection/components/ActionMenu.js +1 -2
- package/dist/cosmicintersection/components/ActionMenu.js.map +1 -1
- package/dist/cosmicintersection/components/ActivityFeedPanel.d.ts +0 -1
- package/dist/cosmicintersection/components/ActivityFeedPanel.js +27 -25
- package/dist/cosmicintersection/components/ActivityFeedPanel.js.map +1 -1
- package/dist/cosmicintersection/components/AiRunAttribution.d.ts +0 -1
- package/dist/cosmicintersection/components/AiRunAttribution.js +1 -2
- package/dist/cosmicintersection/components/AiRunAttribution.js.map +1 -1
- package/dist/cosmicintersection/components/DatabricksQueueForm.d.ts +0 -1
- package/dist/cosmicintersection/components/DatabricksQueueForm.js +1 -2
- package/dist/cosmicintersection/components/DatabricksQueueForm.js.map +1 -1
- package/dist/cosmicintersection/components/DatabricksRunPanel.d.ts +0 -1
- package/dist/cosmicintersection/components/DatabricksRunPanel.js +1 -2
- package/dist/cosmicintersection/components/DatabricksRunPanel.js.map +1 -1
- package/dist/cosmicintersection/components/DiscussionPanel.d.ts +0 -1
- package/dist/cosmicintersection/components/DiscussionPanel.js +4 -4
- package/dist/cosmicintersection/components/DiscussionPanel.js.map +1 -1
- package/dist/cosmicintersection/components/EmptyState.d.ts +0 -1
- package/dist/cosmicintersection/components/EmptyState.js +1 -2
- package/dist/cosmicintersection/components/EmptyState.js.map +1 -1
- package/dist/cosmicintersection/components/EntityFormShell.d.ts +0 -1
- package/dist/cosmicintersection/components/EntityFormShell.js +1 -2
- package/dist/cosmicintersection/components/EntityFormShell.js.map +1 -1
- package/dist/cosmicintersection/components/EntityTagsField.d.ts +0 -1
- package/dist/cosmicintersection/components/EntityTagsField.js +1 -2
- package/dist/cosmicintersection/components/EntityTagsField.js.map +1 -1
- package/dist/cosmicintersection/components/ErrorState.d.ts +0 -1
- package/dist/cosmicintersection/components/ErrorState.js +1 -2
- package/dist/cosmicintersection/components/ErrorState.js.map +1 -1
- package/dist/cosmicintersection/components/FacetPanel.d.ts +0 -1
- package/dist/cosmicintersection/components/FacetPanel.js +1 -2
- package/dist/cosmicintersection/components/FacetPanel.js.map +1 -1
- package/dist/cosmicintersection/components/FileUploadField.d.ts +0 -1
- package/dist/cosmicintersection/components/FileUploadField.js +1 -2
- package/dist/cosmicintersection/components/FileUploadField.js.map +1 -1
- package/dist/cosmicintersection/components/LineageGraph.d.ts +0 -1
- package/dist/cosmicintersection/components/LineageGraph.js +7 -12
- package/dist/cosmicintersection/components/LineageGraph.js.map +1 -1
- package/dist/cosmicintersection/components/LoadingState.d.ts +0 -1
- package/dist/cosmicintersection/components/LoadingState.js +1 -2
- package/dist/cosmicintersection/components/LoadingState.js.map +1 -1
- package/dist/cosmicintersection/components/PageLayout.d.ts +0 -1
- package/dist/cosmicintersection/components/PageLayout.js +1 -2
- package/dist/cosmicintersection/components/PageLayout.js.map +1 -1
- package/dist/cosmicintersection/components/Pagination.d.ts +0 -1
- package/dist/cosmicintersection/components/Pagination.js +1 -2
- package/dist/cosmicintersection/components/Pagination.js.map +1 -1
- package/dist/cosmicintersection/components/ReleaseDraftDialog.d.ts +0 -1
- package/dist/cosmicintersection/components/ReleaseDraftDialog.js +7 -12
- package/dist/cosmicintersection/components/ReleaseDraftDialog.js.map +1 -1
- package/dist/cosmicintersection/components/ResultsChart.d.ts +0 -1
- package/dist/cosmicintersection/components/ResultsChart.js +4 -8
- package/dist/cosmicintersection/components/ResultsChart.js.map +1 -1
- package/dist/cosmicintersection/components/RunTriageCard.d.ts +0 -1
- package/dist/cosmicintersection/components/RunTriageCard.js +18 -19
- package/dist/cosmicintersection/components/RunTriageCard.js.map +1 -1
- package/dist/cosmicintersection/components/SafeLink.d.ts +0 -1
- package/dist/cosmicintersection/components/SafeLink.js +8 -7
- package/dist/cosmicintersection/components/SafeLink.js.map +1 -1
- package/dist/cosmicintersection/components/SchemaProposalPanel.d.ts +0 -1
- package/dist/cosmicintersection/components/SchemaProposalPanel.js +17 -18
- package/dist/cosmicintersection/components/SchemaProposalPanel.js.map +1 -1
- package/dist/cosmicintersection/components/ScienceCanvas.d.ts +0 -1
- package/dist/cosmicintersection/components/ScienceCanvas.js +226 -233
- package/dist/cosmicintersection/components/ScienceCanvas.js.map +1 -1
- package/dist/cosmicintersection/components/StatusBadge.d.ts +0 -1
- package/dist/cosmicintersection/components/StatusBadge.js +1 -2
- package/dist/cosmicintersection/components/StatusBadge.js.map +1 -1
- package/dist/cosmicintersection/components/StepDAG.d.ts +0 -1
- package/dist/cosmicintersection/components/StepDAG.js +1 -2
- package/dist/cosmicintersection/components/StepDAG.js.map +1 -1
- package/dist/cosmicintersection/components/WorkspaceTagsPicker.d.ts +0 -1
- package/dist/cosmicintersection/components/WorkspaceTagsPicker.js +1 -2
- package/dist/cosmicintersection/components/WorkspaceTagsPicker.js.map +1 -1
- package/dist/cosmicintersection/components/index.d.ts +0 -1
- package/dist/cosmicintersection/components/index.js +14 -14
- package/dist/cosmicintersection/context/CosmicIntersectionContext.d.ts +0 -1
- package/dist/cosmicintersection/context/CosmicIntersectionContext.js +2 -7
- package/dist/cosmicintersection/context/CosmicIntersectionContext.js.map +1 -1
- package/dist/cosmicintersection/hooks/useDatabricksExecutions.d.ts +0 -1
- package/dist/cosmicintersection/hooks/useDatabricksExecutions.js +18 -19
- package/dist/cosmicintersection/hooks/useDatabricksExecutions.js.map +1 -1
- package/dist/cosmicintersection/hooks/useDatabricksQueueForm.d.ts +0 -1
- package/dist/cosmicintersection/hooks/useDatabricksQueueForm.js +1 -2
- package/dist/cosmicintersection/hooks/useDatabricksQueueForm.js.map +1 -1
- package/dist/cosmicintersection/hooks/useEntityTagSync.d.ts +0 -1
- package/dist/cosmicintersection/hooks/useEntityTagSync.js +29 -25
- package/dist/cosmicintersection/hooks/useEntityTagSync.js.map +1 -1
- package/dist/cosmicintersection/index.d.ts +0 -1
- package/dist/cosmicintersection/lib/assistantAwareDialog.d.ts +0 -1
- package/dist/cosmicintersection/lib/assistantAwareDialog.js +1 -2
- package/dist/cosmicintersection/lib/assistantAwareDialog.js.map +1 -1
- package/dist/cosmicintersection/lib/databricksForm.d.ts +0 -1
- package/dist/cosmicintersection/lib/databricksForm.js +1 -2
- package/dist/cosmicintersection/lib/databricksForm.js.map +1 -1
- package/dist/cosmicintersection/lib/databricksIntent.d.ts +0 -1
- package/dist/cosmicintersection/lib/databricksIntent.js +1 -2
- package/dist/cosmicintersection/lib/databricksIntent.js.map +1 -1
- package/dist/cosmicintersection/lib/databricksPresentation.d.ts +0 -1
- package/dist/cosmicintersection/lib/databricksPresentation.js +1 -2
- package/dist/cosmicintersection/lib/databricksPresentation.js.map +1 -1
- package/dist/cosmicintersection/lib/mutationResult.d.ts +0 -1
- package/dist/cosmicintersection/lib/mutationResult.js +1 -2
- package/dist/cosmicintersection/lib/mutationResult.js.map +1 -1
- package/dist/cosmicintersection/lib/toast.d.ts +0 -1
- package/dist/cosmicintersection/lib/toast.js +1 -2
- package/dist/cosmicintersection/lib/toast.js.map +1 -1
- package/dist/cosmicintersection/lib/useSelectedRecord.d.ts +0 -1
- package/dist/cosmicintersection/lib/useSelectedRecord.js +1 -2
- package/dist/cosmicintersection/lib/useSelectedRecord.js.map +1 -1
- package/dist/cosmicintersection/lib/useTrackRecentItem.d.ts +0 -1
- package/dist/cosmicintersection/lib/useTrackRecentItem.js +7 -8
- package/dist/cosmicintersection/lib/useTrackRecentItem.js.map +1 -1
- package/dist/cosmicintersection/lib/visualization.d.ts +0 -1
- package/dist/cosmicintersection/lib/visualization.js +2 -3
- package/dist/cosmicintersection/lib/visualization.js.map +1 -1
- package/dist/cosmicintersection/lib/visualizationSamples.d.ts +0 -1
- package/dist/cosmicintersection/pages/access/AccessPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/access/AccessPage.js +225 -226
- package/dist/cosmicintersection/pages/access/AccessPage.js.map +1 -1
- package/dist/cosmicintersection/pages/analyses/AnalysesPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/analyses/AnalysesPage.js +259 -260
- package/dist/cosmicintersection/pages/analyses/AnalysesPage.js.map +1 -1
- package/dist/cosmicintersection/pages/archive/ArchivePage.d.ts +2 -0
- package/dist/cosmicintersection/pages/archive/ArchivePage.js +256 -0
- package/dist/cosmicintersection/pages/archive/ArchivePage.js.map +1 -0
- package/dist/cosmicintersection/pages/collections/CollectionDetailPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/collections/CollectionDetailPage.js +32 -33
- package/dist/cosmicintersection/pages/collections/CollectionDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/collections/CollectionFormPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/collections/CollectionFormPage.js +17 -18
- package/dist/cosmicintersection/pages/collections/CollectionFormPage.js.map +1 -1
- package/dist/cosmicintersection/pages/collections/CollectionsPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/collections/CollectionsPage.js +20 -21
- package/dist/cosmicintersection/pages/collections/CollectionsPage.js.map +1 -1
- package/dist/cosmicintersection/pages/dashboard/DashboardPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/dashboard/DashboardPage.js +19 -20
- package/dist/cosmicintersection/pages/dashboard/DashboardPage.js.map +1 -1
- package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js +64 -75
- package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/datasets/DatasetFormPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/datasets/DatasetFormPage.js +22 -23
- package/dist/cosmicintersection/pages/datasets/DatasetFormPage.js.map +1 -1
- package/dist/cosmicintersection/pages/datasets/DatasetsPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/datasets/DatasetsPage.js +207 -208
- package/dist/cosmicintersection/pages/datasets/DatasetsPage.js.map +1 -1
- package/dist/cosmicintersection/pages/discovery/DiscoveryPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/discovery/DiscoveryPage.js +20 -24
- package/dist/cosmicintersection/pages/discovery/DiscoveryPage.js.map +1 -1
- package/dist/cosmicintersection/pages/lineage/LineagePage.d.ts +0 -1
- package/dist/cosmicintersection/pages/lineage/LineagePage.js +53 -54
- package/dist/cosmicintersection/pages/lineage/LineagePage.js.map +1 -1
- package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js +61 -62
- package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/notebooks/NotebookFormPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/notebooks/NotebookFormPage.js +50 -48
- package/dist/cosmicintersection/pages/notebooks/NotebookFormPage.js.map +1 -1
- package/dist/cosmicintersection/pages/notebooks/NotebooksPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/notebooks/NotebooksPage.js +28 -29
- package/dist/cosmicintersection/pages/notebooks/NotebooksPage.js.map +1 -1
- package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js +119 -120
- package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.js +41 -42
- package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.js.map +1 -1
- package/dist/cosmicintersection/pages/pipelines/PipelinesPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/pipelines/PipelinesPage.js +30 -31
- package/dist/cosmicintersection/pages/pipelines/PipelinesPage.js.map +1 -1
- package/dist/cosmicintersection/pages/releases/ReleaseFormPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/releases/ReleaseFormPage.js +16 -17
- package/dist/cosmicintersection/pages/releases/ReleaseFormPage.js.map +1 -1
- package/dist/cosmicintersection/pages/releases/ReleasesPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/releases/ReleasesPage.js +268 -269
- package/dist/cosmicintersection/pages/releases/ReleasesPage.js.map +1 -1
- package/dist/cosmicintersection/pages/runs/RunDetailPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/runs/RunDetailPage.js +194 -195
- package/dist/cosmicintersection/pages/runs/RunDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/runs/RunsPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/runs/RunsPage.js +20 -21
- package/dist/cosmicintersection/pages/runs/RunsPage.js.map +1 -1
- package/dist/cosmicintersection/pages/sources/SourceDetailPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/sources/SourceDetailPage.js +31 -32
- package/dist/cosmicintersection/pages/sources/SourceDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/sources/SourceFormPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/sources/SourceFormPage.js +23 -24
- package/dist/cosmicintersection/pages/sources/SourceFormPage.js.map +1 -1
- package/dist/cosmicintersection/pages/sources/SourcesPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/sources/SourcesPage.js +184 -182
- package/dist/cosmicintersection/pages/sources/SourcesPage.js.map +1 -1
- package/dist/cosmicintersection/types/index.d.ts +0 -1
- package/dist/cosmicintersection/utils/cn.d.ts +0 -1
- package/dist/cosmicintersection/utils/cn.js +1 -2
- package/dist/cosmicintersection/utils/cn.js.map +1 -1
- package/dist/cosmicintersection/utils/i18n.d.ts +0 -1
- package/dist/cosmicintersection/utils/navigation.d.ts +0 -1
- package/dist/dev/main.d.ts +0 -1
- package/dist/generated/global-types.d.ts +0 -1
- package/dist/generated/wspace-operations.d.ts +0 -1
- package/dist/generated/wspace-operations.js +1 -2
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +155 -85
- package/dist/index.d.ts +0 -1
- package/dist/index.js +3 -3
- package/dist/node_modules/clsx/dist/clsx.js +7 -6
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +4 -21
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
- package/dist/services/createSandboxAssistantTransport.d.ts +0 -1
- package/dist/services/createSandboxAssistantTransport.js +1 -2
- package/dist/services/createSandboxAssistantTransport.js.map +1 -1
- package/dist/services/recentItems.d.ts +0 -1
- package/dist/services/recentItems.js +5 -6
- package/dist/services/recentItems.js.map +1 -1
- package/dist/shared/hooks/useTr.d.ts +0 -1
- package/dist/shared/hooks/useTr.js +1 -2
- package/dist/shared/hooks/useTr.js.map +1 -1
- package/dist/stories/EmptyState.stories.d.ts +0 -1
- package/dist/stories/LoadingState.stories.d.ts +0 -1
- package/dist/stories/ScienceCanvas.stories.d.ts +0 -1
- package/dist/stories/StatusBadge.stories.d.ts +0 -1
- package/dist/stories/WorkspaceTagsPicker.stories.d.ts +0 -1
- package/dist/test/fakeGateway.d.ts +0 -1
- package/dist/test/fixtures.d.ts +0 -1
- package/dist/test/happydom.d.ts +1 -0
- package/dist/test/i18nMock.d.ts +13 -1
- package/dist/test/renderWithProviders.d.ts +1 -2
- package/dist/test/storage.d.ts +13 -0
- package/dist/types/assistant.d.ts +0 -1
- package/dist/utils/pageContext.d.ts +0 -1
- package/dist/utils/pageContext.js +1 -2
- package/dist/utils/pageContext.js.map +1 -1
- package/package.json +64 -38
- package/dist/cosmicintersection/CosmicIntersectionRoot.d.ts.map +0 -1
- package/dist/cosmicintersection/CosmicIntersectionRoutes.d.ts.map +0 -1
- package/dist/cosmicintersection/api/cosmicApi.d.ts.map +0 -1
- package/dist/cosmicintersection/api/databricksTransport.d.ts.map +0 -1
- package/dist/cosmicintersection/api/tagsApi.d.ts.map +0 -1
- package/dist/cosmicintersection/components/ActionMenu.d.ts.map +0 -1
- package/dist/cosmicintersection/components/ActivityFeedPanel.d.ts.map +0 -1
- package/dist/cosmicintersection/components/AiRunAttribution.d.ts.map +0 -1
- package/dist/cosmicintersection/components/DatabricksQueueForm.d.ts.map +0 -1
- package/dist/cosmicintersection/components/DatabricksRunPanel.d.ts.map +0 -1
- package/dist/cosmicintersection/components/DiscussionPanel.d.ts.map +0 -1
- package/dist/cosmicintersection/components/EmptyState.d.ts.map +0 -1
- package/dist/cosmicintersection/components/EntityFormShell.d.ts.map +0 -1
- package/dist/cosmicintersection/components/EntityTagsField.d.ts.map +0 -1
- package/dist/cosmicintersection/components/ErrorState.d.ts.map +0 -1
- package/dist/cosmicintersection/components/FacetPanel.d.ts.map +0 -1
- package/dist/cosmicintersection/components/FileUploadField.d.ts.map +0 -1
- package/dist/cosmicintersection/components/LineageGraph.d.ts.map +0 -1
- package/dist/cosmicintersection/components/LoadingState.d.ts.map +0 -1
- package/dist/cosmicintersection/components/PageLayout.d.ts.map +0 -1
- package/dist/cosmicintersection/components/Pagination.d.ts.map +0 -1
- package/dist/cosmicintersection/components/ReleaseDraftDialog.d.ts.map +0 -1
- package/dist/cosmicintersection/components/ResultsChart.d.ts.map +0 -1
- package/dist/cosmicintersection/components/RunTriageCard.d.ts.map +0 -1
- package/dist/cosmicintersection/components/SafeLink.d.ts.map +0 -1
- package/dist/cosmicintersection/components/SchemaProposalPanel.d.ts.map +0 -1
- package/dist/cosmicintersection/components/ScienceCanvas.d.ts.map +0 -1
- package/dist/cosmicintersection/components/StatusBadge.d.ts.map +0 -1
- package/dist/cosmicintersection/components/StepDAG.d.ts.map +0 -1
- package/dist/cosmicintersection/components/WorkspaceTagsPicker.d.ts.map +0 -1
- package/dist/cosmicintersection/components/index.d.ts.map +0 -1
- package/dist/cosmicintersection/context/CosmicIntersectionContext.d.ts.map +0 -1
- package/dist/cosmicintersection/hooks/useDatabricksExecutions.d.ts.map +0 -1
- package/dist/cosmicintersection/hooks/useDatabricksQueueForm.d.ts.map +0 -1
- package/dist/cosmicintersection/hooks/useEntityTagSync.d.ts.map +0 -1
- package/dist/cosmicintersection/index.d.ts.map +0 -1
- package/dist/cosmicintersection/lib/assistantAwareDialog.d.ts.map +0 -1
- package/dist/cosmicintersection/lib/databricksForm.d.ts.map +0 -1
- package/dist/cosmicintersection/lib/databricksIntent.d.ts.map +0 -1
- package/dist/cosmicintersection/lib/databricksPresentation.d.ts.map +0 -1
- package/dist/cosmicintersection/lib/mutationResult.d.ts.map +0 -1
- package/dist/cosmicintersection/lib/toast.d.ts.map +0 -1
- package/dist/cosmicintersection/lib/useSelectedRecord.d.ts.map +0 -1
- package/dist/cosmicintersection/lib/useTrackRecentItem.d.ts.map +0 -1
- package/dist/cosmicintersection/lib/visualization.d.ts.map +0 -1
- package/dist/cosmicintersection/lib/visualizationSamples.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/access/AccessPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/analyses/AnalysesPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/collections/CollectionDetailPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/collections/CollectionFormPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/collections/CollectionsPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/dashboard/DashboardPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/datasets/DatasetFormPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/datasets/DatasetsPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/discovery/DiscoveryPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/lineage/LineagePage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/notebooks/NotebookFormPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/notebooks/NotebooksPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/pipelines/PipelinesPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/releases/ReleaseFormPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/releases/ReleasesPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/runs/RunDetailPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/runs/RunsPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/sources/SourceDetailPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/sources/SourceFormPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/sources/SourcesPage.d.ts.map +0 -1
- package/dist/cosmicintersection/types/index.d.ts.map +0 -1
- package/dist/cosmicintersection/utils/cn.d.ts.map +0 -1
- package/dist/cosmicintersection/utils/i18n.d.ts.map +0 -1
- package/dist/cosmicintersection/utils/navigation.d.ts.map +0 -1
- package/dist/dev/main.d.ts.map +0 -1
- package/dist/generated/global-types.d.ts.map +0 -1
- package/dist/generated/wspace-operations.d.ts.map +0 -1
- package/dist/generated/wspace-types.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/services/createSandboxAssistantTransport.d.ts.map +0 -1
- package/dist/services/recentItems.d.ts.map +0 -1
- package/dist/shared/hooks/useTr.d.ts.map +0 -1
- package/dist/stories/EmptyState.stories.d.ts.map +0 -1
- package/dist/stories/LoadingState.stories.d.ts.map +0 -1
- package/dist/stories/ScienceCanvas.stories.d.ts.map +0 -1
- package/dist/stories/StatusBadge.stories.d.ts.map +0 -1
- package/dist/stories/WorkspaceTagsPicker.stories.d.ts.map +0 -1
- package/dist/test/fakeGateway.d.ts.map +0 -1
- package/dist/test/fixtures.d.ts.map +0 -1
- package/dist/test/i18nMock.d.ts.map +0 -1
- package/dist/test/renderWithProviders.d.ts.map +0 -1
- package/dist/test/setup.d.ts +0 -1
- package/dist/test/setup.d.ts.map +0 -1
- package/dist/types/assistant.d.ts.map +0 -1
- package/dist/utils/pageContext.d.ts.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useTr as e } from "../../shared/hooks/useTr.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { DEFAULT_CAMERA as t, SKY_PROJECTIONS as n, clampPitch as r, decimateSeries as i, downsample as a, extractVisualizations as o, formatTick as s, formatValue as c, nearestPoint as l, niceTicks as u, projectPoint as d, projectSky as f, sceneNormalizer as p, tabLabels as m, tickStep as h, viewKindLabel as g } from "../lib/visualization.js";
|
|
3
|
+
import { cn as _ } from "../utils/cn.js";
|
|
4
|
+
import { ResultsChart as v } from "./ResultsChart.js";
|
|
5
5
|
import { useCallback as y, useMemo as b, useRef as x, useState as S } from "react";
|
|
6
6
|
import { jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
7
7
|
import { Button as T, Tabs as E, TabsContent as D, TabsList as O, TabsTrigger as k } from "@burdenoff/fe-libs/ui";
|
|
8
|
-
|
|
8
|
+
// src/cosmicintersection/components/ScienceCanvas.tsx
|
|
9
9
|
var A = [
|
|
10
10
|
1,
|
|
11
11
|
2,
|
|
@@ -22,20 +22,20 @@ function F(e, t) {
|
|
|
22
22
|
return e(`${N}.projection.${t}`, P[t]);
|
|
23
23
|
}
|
|
24
24
|
function I(e, t) {
|
|
25
|
-
return e(`${N}.kind.${t}`,
|
|
25
|
+
return e(`${N}.kind.${t}`, g(t));
|
|
26
26
|
}
|
|
27
|
-
var
|
|
27
|
+
var ee = {
|
|
28
28
|
icrs: ["RA", "Dec"],
|
|
29
29
|
galactic: ["l", "b"],
|
|
30
30
|
ecliptic: ["λ", "β"]
|
|
31
31
|
};
|
|
32
|
-
function
|
|
32
|
+
function L({ children: e }) {
|
|
33
33
|
return /* @__PURE__ */ C("div", {
|
|
34
34
|
className: "rounded-card border border-border-default bg-bg-sunken p-3",
|
|
35
35
|
children: e
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function R({ items: t }) {
|
|
39
39
|
let n = e();
|
|
40
40
|
return t.length < 2 ? null : /* @__PURE__ */ C("ul", {
|
|
41
41
|
className: "flex flex-wrap gap-x-4 gap-y-1.5",
|
|
@@ -60,7 +60,7 @@ function z({ items: t }) {
|
|
|
60
60
|
}, `${t}-${e.name}`))
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function z({ shown: t, total: n, extremaKept: r }) {
|
|
64
64
|
let i = e();
|
|
65
65
|
if (t >= n) return null;
|
|
66
66
|
let a = {
|
|
@@ -73,7 +73,7 @@ function B({ shown: t, total: n, extremaKept: r }) {
|
|
|
73
73
|
children: r ? i(`${N}.thinnedExtrema`, "Showing {{shown}} of {{total}} points; each segment keeps its highest and lowest values.", a) : i(`${N}.thinned`, "Showing {{shown}} of {{total}} items.", a)
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function B({ text: t }) {
|
|
77
77
|
let n = e();
|
|
78
78
|
return /* @__PURE__ */ C("p", {
|
|
79
79
|
className: "min-h-4 text-xs text-text-secondary",
|
|
@@ -82,7 +82,7 @@ function V({ text: t }) {
|
|
|
82
82
|
children: t ?? n(`${N}.readoutHint`, "Tap or click a marker to see its values.")
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function V({ columns: t, rows: n, total: r }) {
|
|
86
86
|
let i = e();
|
|
87
87
|
return r === 0 ? null : /* @__PURE__ */ w("details", {
|
|
88
88
|
className: "text-xs text-text-secondary",
|
|
@@ -115,27 +115,27 @@ function H({ columns: t, rows: n, total: r }) {
|
|
|
115
115
|
})]
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
|
-
var
|
|
119
|
-
function
|
|
120
|
-
let { x: r, y: i } =
|
|
118
|
+
var H = 640, U = 340, te = 14;
|
|
119
|
+
function W(e, t, n) {
|
|
120
|
+
let { x: r, y: i } = f(e, t, n), a = H / 2 - te;
|
|
121
121
|
return {
|
|
122
|
-
x:
|
|
123
|
-
y:
|
|
122
|
+
x: H / 2 + r * a,
|
|
123
|
+
y: U / 2 - i * a
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function G(e) {
|
|
127
127
|
return e.map((e, t) => `${t === 0 ? "M" : "L"} ${e.x.toFixed(2)} ${e.y.toFixed(2)}`).join(" ");
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
let
|
|
129
|
+
function K({ view: t }) {
|
|
130
|
+
let r = e(), [i, o] = S(t.projection), [l, u] = S(null), [d, f] = ee[t.frame], p = t.valueLabel ?? r(`${N}.value`, "value"), m = (e) => [
|
|
131
131
|
e.label,
|
|
132
132
|
`${d} ${e.ra.toFixed(3)}°`,
|
|
133
133
|
`${f} ${e.dec >= 0 ? "+" : ""}${e.dec.toFixed(3)}°`,
|
|
134
|
-
e.value === void 0 ? null : `${p} ${
|
|
134
|
+
e.value === void 0 ? null : `${p} ${c(e.value)}`
|
|
135
135
|
].filter(Boolean).join(" · "), h = b(() => {
|
|
136
136
|
let e = [];
|
|
137
|
-
for (let t = -90; t <= 90; t += 2) e.push(
|
|
138
|
-
for (let t = 90; t >= -90; t -= 2) e.push(
|
|
137
|
+
for (let t = -90; t <= 90; t += 2) e.push(W(359.999, t, i));
|
|
138
|
+
for (let t = 90; t >= -90; t -= 2) e.push(W(.001, t, i));
|
|
139
139
|
let n = [
|
|
140
140
|
60,
|
|
141
141
|
120,
|
|
@@ -144,13 +144,13 @@ function q({ view: t }) {
|
|
|
144
144
|
300
|
|
145
145
|
].map((e) => {
|
|
146
146
|
let t = [];
|
|
147
|
-
for (let n = -90; n <= 90; n += 3) t.push(
|
|
147
|
+
for (let n = -90; n <= 90; n += 3) t.push(W(e, n, i));
|
|
148
148
|
return {
|
|
149
149
|
lon: e,
|
|
150
|
-
d:
|
|
151
|
-
label:
|
|
150
|
+
d: G(t),
|
|
151
|
+
label: W(e, 0, i)
|
|
152
152
|
};
|
|
153
|
-
}),
|
|
153
|
+
}), r = [
|
|
154
154
|
-60,
|
|
155
155
|
-30,
|
|
156
156
|
0,
|
|
@@ -158,29 +158,29 @@ function q({ view: t }) {
|
|
|
158
158
|
60
|
|
159
159
|
].map((e) => {
|
|
160
160
|
let t = [];
|
|
161
|
-
for (let n = .001; n <= 359.999; n += 3) t.push(
|
|
162
|
-
return t.push(
|
|
161
|
+
for (let n = .001; n <= 359.999; n += 3) t.push(W(n, e, i));
|
|
162
|
+
return t.push(W(359.999, e, i)), {
|
|
163
163
|
lat: e,
|
|
164
|
-
d:
|
|
165
|
-
label:
|
|
164
|
+
d: G(t),
|
|
165
|
+
label: W(359.999, e, i)
|
|
166
166
|
};
|
|
167
|
-
}),
|
|
168
|
-
for (let e of
|
|
169
|
-
let l = (e) => e === void 0 || c ===
|
|
167
|
+
}), o = t.sources.map((e) => e.value).filter((e) => e !== void 0), s = o.length ? Infinity : 0, c = o.length ? -Infinity : 0;
|
|
168
|
+
for (let e of o) s = Math.min(s, e), c = Math.max(c, e);
|
|
169
|
+
let l = (e) => e === void 0 || c === s ? .5 : (e - s) / (c - s), u = a(t.sources, j).map((e) => ({
|
|
170
170
|
...e,
|
|
171
|
-
...
|
|
171
|
+
...W(e.ra, e.dec, i),
|
|
172
172
|
t: l(e.value)
|
|
173
173
|
}));
|
|
174
174
|
return {
|
|
175
|
-
outline: `${
|
|
175
|
+
outline: `${G(e)} Z`,
|
|
176
176
|
meridians: n,
|
|
177
|
-
parallels:
|
|
177
|
+
parallels: r,
|
|
178
178
|
sources: u,
|
|
179
|
-
vMin:
|
|
179
|
+
vMin: s,
|
|
180
180
|
vMax: c,
|
|
181
|
-
hasValues:
|
|
181
|
+
hasValues: o.length > 0
|
|
182
182
|
};
|
|
183
|
-
}, [
|
|
183
|
+
}, [i, t.sources]);
|
|
184
184
|
return /* @__PURE__ */ w("div", {
|
|
185
185
|
className: "space-y-3",
|
|
186
186
|
children: [
|
|
@@ -188,33 +188,33 @@ function q({ view: t }) {
|
|
|
188
188
|
className: "flex flex-wrap items-center justify-between gap-2",
|
|
189
189
|
children: [/* @__PURE__ */ C("p", {
|
|
190
190
|
className: "text-xs text-text-secondary",
|
|
191
|
-
children: t.sources.length === 1 ?
|
|
191
|
+
children: t.sources.length === 1 ? r(`${N}.skySummaryOne`, "1 source · {{frame}} frame", { frame: t.frame.toUpperCase() }) : r(`${N}.skySummary`, "{{count}} sources · {{frame}} frame", {
|
|
192
192
|
count: t.sources.length.toLocaleString(),
|
|
193
193
|
frame: t.frame.toUpperCase()
|
|
194
194
|
})
|
|
195
195
|
}), /* @__PURE__ */ C("div", {
|
|
196
196
|
role: "group",
|
|
197
|
-
"aria-label":
|
|
197
|
+
"aria-label": r(`${N}.projectionGroup`, "Projection"),
|
|
198
198
|
className: "flex flex-wrap gap-1",
|
|
199
|
-
children:
|
|
199
|
+
children: n.map((e) => /* @__PURE__ */ C(T, {
|
|
200
200
|
type: "button",
|
|
201
201
|
size: "sm",
|
|
202
|
-
variant: e ===
|
|
203
|
-
"aria-pressed": e ===
|
|
204
|
-
onClick: () =>
|
|
205
|
-
children: F(
|
|
202
|
+
variant: e === i ? "default" : "outline",
|
|
203
|
+
"aria-pressed": e === i,
|
|
204
|
+
onClick: () => o(e),
|
|
205
|
+
children: F(r, e)
|
|
206
206
|
}, e))
|
|
207
207
|
})]
|
|
208
208
|
}),
|
|
209
|
-
/* @__PURE__ */ C(
|
|
210
|
-
viewBox: `0 0 ${
|
|
209
|
+
/* @__PURE__ */ C(L, { children: /* @__PURE__ */ w("svg", {
|
|
210
|
+
viewBox: `0 0 ${H} ${U}`,
|
|
211
211
|
className: "h-auto w-full",
|
|
212
212
|
role: "img",
|
|
213
|
-
"aria-label":
|
|
214
|
-
projection: F(
|
|
213
|
+
"aria-label": r(`${N}.skyAria`, "Sky map, {{projection}} projection, {{count}} sources", {
|
|
214
|
+
projection: F(r, i),
|
|
215
215
|
count: t.sources.length
|
|
216
216
|
}),
|
|
217
|
-
"data-projection":
|
|
217
|
+
"data-projection": i,
|
|
218
218
|
children: [
|
|
219
219
|
/* @__PURE__ */ C("path", {
|
|
220
220
|
d: h.outline,
|
|
@@ -254,30 +254,30 @@ function q({ view: t }) {
|
|
|
254
254
|
fill: "var(--color-chart-1)",
|
|
255
255
|
fillOpacity: .45 + e.t * .5,
|
|
256
256
|
stroke: "var(--color-chart-1)",
|
|
257
|
-
strokeWidth:
|
|
257
|
+
strokeWidth: l === t ? 2 : .6,
|
|
258
258
|
className: "cursor-pointer",
|
|
259
259
|
"data-testid": "sky-source",
|
|
260
|
-
onClick: () =>
|
|
260
|
+
onClick: () => u(t),
|
|
261
261
|
children: /* @__PURE__ */ C("title", { children: m(e) })
|
|
262
262
|
}, `src-${t}`))
|
|
263
263
|
]
|
|
264
264
|
}) }),
|
|
265
|
-
/* @__PURE__ */ C(
|
|
265
|
+
/* @__PURE__ */ C(B, { text: l !== null && h.sources[l] ? m(h.sources[l]) : null }),
|
|
266
266
|
h.hasValues ? /* @__PURE__ */ C("p", {
|
|
267
267
|
className: "text-xs text-text-tertiary",
|
|
268
|
-
children:
|
|
268
|
+
children: r(`${N}.skyScale`, "Marker size and opacity scale with {{label}} ({{min}} – {{max}}).", {
|
|
269
269
|
label: p,
|
|
270
|
-
min:
|
|
271
|
-
max:
|
|
270
|
+
min: s(h.vMin),
|
|
271
|
+
max: s(h.vMax)
|
|
272
272
|
})
|
|
273
273
|
}) : null,
|
|
274
|
-
/* @__PURE__ */ C(
|
|
274
|
+
/* @__PURE__ */ C(z, {
|
|
275
275
|
shown: h.sources.length,
|
|
276
276
|
total: t.sources.length
|
|
277
277
|
}),
|
|
278
|
-
/* @__PURE__ */ C(
|
|
278
|
+
/* @__PURE__ */ C(V, {
|
|
279
279
|
columns: [
|
|
280
|
-
|
|
280
|
+
r(`${N}.colLabel`, "Label"),
|
|
281
281
|
d,
|
|
282
282
|
f,
|
|
283
283
|
...h.hasValues ? [p] : []
|
|
@@ -286,146 +286,146 @@ function q({ view: t }) {
|
|
|
286
286
|
e.label ?? "",
|
|
287
287
|
`${e.ra.toFixed(3)}°`,
|
|
288
288
|
`${e.dec.toFixed(3)}°`,
|
|
289
|
-
...h.hasValues ? [e.value === void 0 ? "" :
|
|
289
|
+
...h.hasValues ? [e.value === void 0 ? "" : c(e.value)] : []
|
|
290
290
|
]),
|
|
291
291
|
total: t.sources.length
|
|
292
292
|
})
|
|
293
293
|
]
|
|
294
294
|
});
|
|
295
295
|
}
|
|
296
|
-
var
|
|
296
|
+
var q = 640, J = 340, Y = {
|
|
297
297
|
top: 22,
|
|
298
298
|
right: 20,
|
|
299
299
|
bottom: 48,
|
|
300
300
|
left: 62
|
|
301
|
-
},
|
|
302
|
-
function
|
|
303
|
-
let n = e(), [r,
|
|
301
|
+
}, X = q - Y.left - Y.right, Z = J - Y.top - Y.bottom, ne = 14;
|
|
302
|
+
function Q({ view: t }) {
|
|
303
|
+
let n = e(), [r, a] = S(null), o = b(() => {
|
|
304
304
|
let e = t.series.map((e) => [...e.points].sort((e, t) => e.x - t.x)), n = t.series.map((t, n) => ({
|
|
305
305
|
...t,
|
|
306
306
|
color: A[n % A.length],
|
|
307
|
-
points:
|
|
308
|
-
})), r = Infinity,
|
|
307
|
+
points: i(e[n], j)
|
|
308
|
+
})), r = Infinity, a = -Infinity, o = Infinity, s = -Infinity;
|
|
309
309
|
for (let t of e) for (let e of t) {
|
|
310
310
|
let t = e.err ?? 0;
|
|
311
|
-
r = Math.min(r, e.x),
|
|
311
|
+
r = Math.min(r, e.x), a = Math.max(a, e.x), o = Math.min(o, e.y - t), s = Math.max(s, e.y + t);
|
|
312
312
|
}
|
|
313
|
-
r ===
|
|
314
|
-
let c = (s -
|
|
315
|
-
|
|
316
|
-
let l = t.lines.filter((e) => e.x >= r && e.x <=
|
|
313
|
+
r === a && (--r, a += 1), o === s && (--o, s += 1);
|
|
314
|
+
let c = (s - o) * .08;
|
|
315
|
+
o -= c, s += c;
|
|
316
|
+
let l = t.lines.filter((e) => e.x >= r && e.x <= a), d = u(r, a, 5), f = u(o, s, 5), p = 0, m = 0;
|
|
317
317
|
for (let t = 0; t < n.length; t += 1) p += n[t].points.length, m += e[t].length;
|
|
318
318
|
return {
|
|
319
319
|
series: n,
|
|
320
320
|
shown: p,
|
|
321
321
|
total: m,
|
|
322
322
|
lines: l,
|
|
323
|
-
domainX: [r,
|
|
324
|
-
domainY: [
|
|
325
|
-
xTicks:
|
|
326
|
-
yTicks:
|
|
327
|
-
xStep:
|
|
328
|
-
yStep:
|
|
323
|
+
domainX: [r, a],
|
|
324
|
+
domainY: [o, s],
|
|
325
|
+
xTicks: d,
|
|
326
|
+
yTicks: f,
|
|
327
|
+
xStep: h(d),
|
|
328
|
+
yStep: h(f)
|
|
329
329
|
};
|
|
330
|
-
}, [t]), { domainX:
|
|
330
|
+
}, [t]), { domainX: d, domainY: f } = o, p = (e) => Y.left + (e - d[0]) / (d[1] - d[0]) * X, m = (e) => (e - f[0]) / (f[1] - f[0]), g = (e) => t.invertY ? Y.top + m(e) * Z : Y.top + Z - m(e) * Z, _ = (e) => {
|
|
331
331
|
let t = e.currentTarget.getBoundingClientRect();
|
|
332
332
|
if (t.width === 0 || t.height === 0) return;
|
|
333
|
-
let n = (e.clientX - t.left) / t.width *
|
|
333
|
+
let n = (e.clientX - t.left) / t.width * q, r = (e.clientY - t.top) / t.height * J, i = o.series.flatMap((e, t) => e.points.map((e, n) => ({
|
|
334
334
|
x: p(e.x),
|
|
335
|
-
y:
|
|
335
|
+
y: g(e.y),
|
|
336
336
|
series: t,
|
|
337
337
|
point: n
|
|
338
|
-
}))), s =
|
|
339
|
-
|
|
340
|
-
series:
|
|
341
|
-
point:
|
|
338
|
+
}))), s = l(i, n, r, ne);
|
|
339
|
+
a(s >= 0 ? {
|
|
340
|
+
series: i[s].series,
|
|
341
|
+
point: i[s].point
|
|
342
342
|
} : null);
|
|
343
|
-
}, v = r ?
|
|
343
|
+
}, v = r ? o.series[r.series] : void 0, y = r ? v?.points[r.point] : void 0, x = v && y ? [
|
|
344
344
|
v.name,
|
|
345
|
-
`${t.xLabel} ${
|
|
346
|
-
`${t.yLabel} ${
|
|
345
|
+
`${t.xLabel} ${c(y.x)}`,
|
|
346
|
+
`${t.yLabel} ${c(y.y)}${y.err === void 0 ? "" : ` ± ${c(y.err)}`}`
|
|
347
347
|
].join(" · ") : null, T = (e, t) => {
|
|
348
|
-
if (!t) return
|
|
348
|
+
if (!t) return G(e.map((e) => ({
|
|
349
349
|
x: p(e.x),
|
|
350
|
-
y:
|
|
350
|
+
y: g(e.y)
|
|
351
351
|
})));
|
|
352
352
|
let n = [];
|
|
353
353
|
return e.forEach((t, r) => {
|
|
354
354
|
r > 0 && n.push({
|
|
355
355
|
x: p(t.x),
|
|
356
|
-
y:
|
|
356
|
+
y: g(e[r - 1].y)
|
|
357
357
|
}), n.push({
|
|
358
358
|
x: p(t.x),
|
|
359
|
-
y:
|
|
359
|
+
y: g(t.y)
|
|
360
360
|
});
|
|
361
|
-
}),
|
|
361
|
+
}), G(n);
|
|
362
362
|
};
|
|
363
363
|
return /* @__PURE__ */ w("div", {
|
|
364
364
|
className: "space-y-3",
|
|
365
365
|
children: [
|
|
366
|
-
/* @__PURE__ */ C(
|
|
367
|
-
viewBox: `0 0 ${
|
|
366
|
+
/* @__PURE__ */ C(L, { children: /* @__PURE__ */ w("svg", {
|
|
367
|
+
viewBox: `0 0 ${q} ${J}`,
|
|
368
368
|
role: "img",
|
|
369
369
|
"aria-label": n(t.invertY ? `${N}.plotAriaInverted` : `${N}.plotAria`, t.invertY ? "{{kind}}: {{series}}; x-axis {{x}}, y-axis {{y}} (inverted)" : "{{kind}}: {{series}}; x-axis {{x}}, y-axis {{y}}", {
|
|
370
370
|
kind: I(n, t.kind),
|
|
371
|
-
series:
|
|
371
|
+
series: o.series.map((e) => e.name).join(", "),
|
|
372
372
|
x: t.xLabel,
|
|
373
373
|
y: t.yLabel
|
|
374
374
|
}),
|
|
375
375
|
"data-inverted": t.invertY ? "true" : "false",
|
|
376
376
|
className: "h-auto w-full cursor-crosshair",
|
|
377
|
-
onClick:
|
|
377
|
+
onClick: _,
|
|
378
378
|
children: [
|
|
379
|
-
|
|
380
|
-
x1:
|
|
381
|
-
x2:
|
|
382
|
-
y1:
|
|
383
|
-
y2:
|
|
379
|
+
o.yTicks.map((e) => /* @__PURE__ */ w("g", { children: [/* @__PURE__ */ C("line", {
|
|
380
|
+
x1: Y.left,
|
|
381
|
+
x2: Y.left + X,
|
|
382
|
+
y1: g(e),
|
|
383
|
+
y2: g(e),
|
|
384
384
|
stroke: "var(--color-chart-grid)"
|
|
385
385
|
}), /* @__PURE__ */ C("text", {
|
|
386
|
-
x:
|
|
387
|
-
y:
|
|
386
|
+
x: Y.left - 8,
|
|
387
|
+
y: g(e),
|
|
388
388
|
textAnchor: "end",
|
|
389
389
|
dominantBaseline: "central",
|
|
390
390
|
fontSize: 11,
|
|
391
391
|
fill: "var(--color-text-tertiary)",
|
|
392
|
-
children:
|
|
392
|
+
children: s(e, o.yStep)
|
|
393
393
|
})] }, `y-${e}`)),
|
|
394
|
-
|
|
394
|
+
o.xTicks.map((e) => /* @__PURE__ */ w("g", { children: [/* @__PURE__ */ C("line", {
|
|
395
395
|
x1: p(e),
|
|
396
396
|
x2: p(e),
|
|
397
|
-
y1:
|
|
398
|
-
y2:
|
|
397
|
+
y1: Y.top,
|
|
398
|
+
y2: Y.top + Z,
|
|
399
399
|
stroke: "var(--color-chart-grid)",
|
|
400
400
|
strokeDasharray: "2 4"
|
|
401
401
|
}), /* @__PURE__ */ C("text", {
|
|
402
402
|
x: p(e),
|
|
403
|
-
y:
|
|
403
|
+
y: Y.top + Z + 18,
|
|
404
404
|
textAnchor: "middle",
|
|
405
405
|
fontSize: 11,
|
|
406
406
|
fill: "var(--color-text-tertiary)",
|
|
407
|
-
children:
|
|
407
|
+
children: s(e, o.xStep)
|
|
408
408
|
})] }, `x-${e}`)),
|
|
409
409
|
/* @__PURE__ */ C("rect", {
|
|
410
|
-
x:
|
|
411
|
-
y:
|
|
412
|
-
width:
|
|
413
|
-
height:
|
|
410
|
+
x: Y.left,
|
|
411
|
+
y: Y.top,
|
|
412
|
+
width: X,
|
|
413
|
+
height: Z,
|
|
414
414
|
fill: "none",
|
|
415
415
|
stroke: "var(--color-chart-axis)"
|
|
416
416
|
}),
|
|
417
|
-
|
|
417
|
+
o.lines.map((e, t) => /* @__PURE__ */ w("g", {
|
|
418
418
|
"data-testid": "spectral-line",
|
|
419
419
|
children: [/* @__PURE__ */ C("line", {
|
|
420
420
|
x1: p(e.x),
|
|
421
421
|
x2: p(e.x),
|
|
422
|
-
y1:
|
|
423
|
-
y2:
|
|
422
|
+
y1: Y.top,
|
|
423
|
+
y2: Y.top + Z,
|
|
424
424
|
stroke: "var(--color-chart-negative)",
|
|
425
425
|
strokeDasharray: "4 3"
|
|
426
426
|
}), e.label ? /* @__PURE__ */ C("text", {
|
|
427
427
|
x: p(e.x) + 3,
|
|
428
|
-
y:
|
|
428
|
+
y: Y.top - 6,
|
|
429
429
|
fontSize: 10,
|
|
430
430
|
fill: "var(--color-text-secondary)",
|
|
431
431
|
children: e.label
|
|
@@ -433,7 +433,7 @@ function ne({ view: t }) {
|
|
|
433
433
|
}, `line-${t}`)),
|
|
434
434
|
v && y ? /* @__PURE__ */ C("circle", {
|
|
435
435
|
cx: p(y.x),
|
|
436
|
-
cy:
|
|
436
|
+
cy: g(y.y),
|
|
437
437
|
r: 5,
|
|
438
438
|
fill: "none",
|
|
439
439
|
stroke: "var(--color-text-primary)",
|
|
@@ -441,20 +441,20 @@ function ne({ view: t }) {
|
|
|
441
441
|
pointerEvents: "none",
|
|
442
442
|
"data-testid": "plot-selection"
|
|
443
443
|
}) : null,
|
|
444
|
-
|
|
444
|
+
o.series.map((e, t) => /* @__PURE__ */ w("g", {
|
|
445
445
|
"data-testid": "plot-series",
|
|
446
446
|
"data-style": e.style,
|
|
447
447
|
children: [e.points.map((t, n) => t.err ? /* @__PURE__ */ C("line", {
|
|
448
448
|
x1: p(t.x),
|
|
449
449
|
x2: p(t.x),
|
|
450
|
-
y1:
|
|
451
|
-
y2:
|
|
450
|
+
y1: g(t.y - t.err),
|
|
451
|
+
y2: g(t.y + t.err),
|
|
452
452
|
stroke: e.color,
|
|
453
453
|
strokeOpacity: .5,
|
|
454
454
|
"data-testid": "error-bar"
|
|
455
455
|
}, `err-${n}`) : null), e.style === "scatter" ? e.points.map((t, n) => /* @__PURE__ */ C("circle", {
|
|
456
456
|
cx: p(t.x),
|
|
457
|
-
cy:
|
|
457
|
+
cy: g(t.y),
|
|
458
458
|
r: 2.4,
|
|
459
459
|
fill: e.color,
|
|
460
460
|
fillOpacity: .85
|
|
@@ -467,8 +467,8 @@ function ne({ view: t }) {
|
|
|
467
467
|
})]
|
|
468
468
|
}, `series-${t}`)),
|
|
469
469
|
/* @__PURE__ */ C("text", {
|
|
470
|
-
x:
|
|
471
|
-
y:
|
|
470
|
+
x: Y.left + X / 2,
|
|
471
|
+
y: 334,
|
|
472
472
|
textAnchor: "middle",
|
|
473
473
|
fontSize: 12,
|
|
474
474
|
fill: "var(--color-text-secondary)",
|
|
@@ -476,27 +476,27 @@ function ne({ view: t }) {
|
|
|
476
476
|
}),
|
|
477
477
|
/* @__PURE__ */ C("text", {
|
|
478
478
|
x: 14,
|
|
479
|
-
y:
|
|
479
|
+
y: Y.top + Z / 2,
|
|
480
480
|
textAnchor: "middle",
|
|
481
481
|
fontSize: 12,
|
|
482
482
|
fill: "var(--color-text-secondary)",
|
|
483
|
-
transform: `rotate(-90 14 ${
|
|
483
|
+
transform: `rotate(-90 14 ${Y.top + Z / 2})`,
|
|
484
484
|
children: t.yLabel
|
|
485
485
|
})
|
|
486
486
|
]
|
|
487
487
|
}) }),
|
|
488
|
-
/* @__PURE__ */ C(
|
|
489
|
-
/* @__PURE__ */ C(
|
|
488
|
+
/* @__PURE__ */ C(B, { text: x }),
|
|
489
|
+
/* @__PURE__ */ C(R, { items: o.series.map((e) => ({
|
|
490
490
|
name: e.name,
|
|
491
491
|
color: e.color,
|
|
492
492
|
hint: e.style
|
|
493
493
|
})) }),
|
|
494
|
-
/* @__PURE__ */ C(
|
|
495
|
-
shown:
|
|
496
|
-
total:
|
|
494
|
+
/* @__PURE__ */ C(z, {
|
|
495
|
+
shown: o.shown,
|
|
496
|
+
total: o.total,
|
|
497
497
|
extremaKept: !0
|
|
498
498
|
}),
|
|
499
|
-
/* @__PURE__ */ C(
|
|
499
|
+
/* @__PURE__ */ C(V, {
|
|
500
500
|
columns: [
|
|
501
501
|
n(`${N}.colSeries`, "Series"),
|
|
502
502
|
t.xLabel,
|
|
@@ -508,19 +508,19 @@ function ne({ view: t }) {
|
|
|
508
508
|
p: t
|
|
509
509
|
}))).slice(0, M).map(({ name: e, p: t }) => [
|
|
510
510
|
e,
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
t.err === void 0 ? "" :
|
|
511
|
+
c(t.x),
|
|
512
|
+
c(t.y),
|
|
513
|
+
t.err === void 0 ? "" : c(t.err)
|
|
514
514
|
]),
|
|
515
|
-
total:
|
|
515
|
+
total: o.total
|
|
516
516
|
})
|
|
517
517
|
]
|
|
518
518
|
});
|
|
519
519
|
}
|
|
520
520
|
var $ = 360, re = $ * .32;
|
|
521
|
-
function ie({ view:
|
|
522
|
-
let
|
|
523
|
-
let e =
|
|
521
|
+
function ie({ view: n }) {
|
|
522
|
+
let i = e(), [o, s] = S(t), [l, u] = S(null), f = x(null), m = b(() => {
|
|
523
|
+
let e = p([...n.points, ...n.paths.flatMap((e) => e.points)]), t = a(n.points, j).map((t) => ({
|
|
524
524
|
label: t.label,
|
|
525
525
|
value: t.value,
|
|
526
526
|
data: {
|
|
@@ -529,37 +529,37 @@ function ie({ view: t }) {
|
|
|
529
529
|
z: t.z
|
|
530
530
|
},
|
|
531
531
|
norm: e(t)
|
|
532
|
-
})), r =
|
|
532
|
+
})), r = n.paths.map((t, n) => ({
|
|
533
533
|
name: t.name,
|
|
534
534
|
color: A[1 + n % (A.length - 1)],
|
|
535
|
-
norm:
|
|
536
|
-
})), i = 0,
|
|
537
|
-
for (let e = 0; e <
|
|
535
|
+
norm: a(t.points, j).map((t) => e(t))
|
|
536
|
+
})), i = 0, o = 0;
|
|
537
|
+
for (let e = 0; e < n.paths.length; e += 1) i += n.paths[e].points.length, o += r[e].norm.length;
|
|
538
538
|
return {
|
|
539
|
-
points:
|
|
539
|
+
points: t,
|
|
540
540
|
paths: r,
|
|
541
|
-
shown:
|
|
542
|
-
total:
|
|
541
|
+
shown: t.length + o,
|
|
542
|
+
total: n.points.length + i
|
|
543
543
|
};
|
|
544
|
-
}, [
|
|
545
|
-
let t =
|
|
544
|
+
}, [n]), h = y((e) => {
|
|
545
|
+
let t = d(e, o);
|
|
546
546
|
return {
|
|
547
547
|
x: $ / 2 + t.x * re,
|
|
548
548
|
y: $ / 2 - t.y * re,
|
|
549
549
|
depth: t.depth
|
|
550
550
|
};
|
|
551
|
-
}, [
|
|
552
|
-
points:
|
|
551
|
+
}, [o]), g = b(() => ({
|
|
552
|
+
points: m.points.map((e, t) => ({
|
|
553
553
|
index: t,
|
|
554
554
|
label: e.label,
|
|
555
555
|
value: e.value,
|
|
556
556
|
data: e.data,
|
|
557
|
-
...
|
|
557
|
+
...h(e.norm)
|
|
558
558
|
})).sort((e, t) => e.depth - t.depth),
|
|
559
|
-
paths:
|
|
559
|
+
paths: m.paths.map((e) => ({
|
|
560
560
|
name: e.name,
|
|
561
561
|
color: e.color,
|
|
562
|
-
d:
|
|
562
|
+
d: G(e.norm.map((e) => h(e)))
|
|
563
563
|
})),
|
|
564
564
|
axes: [
|
|
565
565
|
"x",
|
|
@@ -574,61 +574,55 @@ function ie({ view: t }) {
|
|
|
574
574
|
};
|
|
575
575
|
return {
|
|
576
576
|
axis: e,
|
|
577
|
-
from:
|
|
577
|
+
from: h({
|
|
578
578
|
x: 0,
|
|
579
579
|
y: 0,
|
|
580
580
|
z: 0
|
|
581
581
|
}),
|
|
582
|
-
to:
|
|
582
|
+
to: h(t)
|
|
583
583
|
};
|
|
584
584
|
})
|
|
585
|
-
}), [
|
|
585
|
+
}), [m, h]), _ = n.points.some((e) => e.value !== void 0) || n.paths.some((e) => e.points.some((e) => e.value !== void 0)), v = (e) => [
|
|
586
586
|
e.label,
|
|
587
|
-
`(${
|
|
588
|
-
e.value === void 0 ? null : `· ${
|
|
587
|
+
`(${c(e.data.x)}, ${c(e.data.y)}, ${c(e.data.z)})`,
|
|
588
|
+
e.value === void 0 ? null : `· ${c(e.value)}`
|
|
589
589
|
].filter(Boolean).join(" "), E = x(!1), D = (e) => {
|
|
590
|
-
E.current ||
|
|
590
|
+
E.current || u(e);
|
|
591
591
|
}, O = (e) => {
|
|
592
|
-
|
|
592
|
+
f.current = {
|
|
593
593
|
x: e.clientX,
|
|
594
594
|
y: e.clientY,
|
|
595
|
-
camera:
|
|
595
|
+
camera: o
|
|
596
596
|
}, E.current = !1, e.currentTarget.setPointerCapture?.(e.pointerId);
|
|
597
597
|
}, k = () => {
|
|
598
|
-
|
|
598
|
+
f.current = null;
|
|
599
599
|
}, P = (e) => {
|
|
600
|
-
let t =
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
}
|
|
606
|
-
Math.hypot(e.clientX - t.x, e.clientY - t.y) > 3 && (E.current = !0), o({
|
|
607
|
-
yaw: t.camera.yaw + (e.clientX - t.x) * .5,
|
|
608
|
-
pitch: a(t.camera.pitch + (e.clientY - t.y) * .5)
|
|
609
|
-
});
|
|
610
|
-
}
|
|
600
|
+
let t = f.current;
|
|
601
|
+
t && (e.pointerType === "mouse" && e.buttons === 0 ? k() : (Math.hypot(e.clientX - t.x, e.clientY - t.y) > 3 && (E.current = !0), s({
|
|
602
|
+
yaw: t.camera.yaw + (e.clientX - t.x) * .5,
|
|
603
|
+
pitch: r(t.camera.pitch + (e.clientY - t.y) * .5)
|
|
604
|
+
})));
|
|
611
605
|
}, F = (e) => {
|
|
612
606
|
let t = {
|
|
613
607
|
ArrowLeft: {
|
|
614
|
-
...
|
|
615
|
-
yaw:
|
|
608
|
+
...o,
|
|
609
|
+
yaw: o.yaw - 10
|
|
616
610
|
},
|
|
617
611
|
ArrowRight: {
|
|
618
|
-
...
|
|
619
|
-
yaw:
|
|
612
|
+
...o,
|
|
613
|
+
yaw: o.yaw + 10
|
|
620
614
|
},
|
|
621
615
|
ArrowUp: {
|
|
622
|
-
...
|
|
623
|
-
pitch:
|
|
616
|
+
...o,
|
|
617
|
+
pitch: r(o.pitch - 10)
|
|
624
618
|
},
|
|
625
619
|
ArrowDown: {
|
|
626
|
-
...
|
|
627
|
-
pitch:
|
|
620
|
+
...o,
|
|
621
|
+
pitch: r(o.pitch + 10)
|
|
628
622
|
}
|
|
629
623
|
}[e.key];
|
|
630
|
-
t && (e.preventDefault(),
|
|
631
|
-
}, I = g.points.length ? [g.points[0].depth, g.points[g.points.length - 1].depth] : [0, 0],
|
|
624
|
+
t && (e.preventDefault(), s(t));
|
|
625
|
+
}, I = g.points.length ? [g.points[0].depth, g.points[g.points.length - 1].depth] : [0, 0], ee = (e) => I[1] === I[0] ? 1 : (e - I[0]) / (I[1] - I[0]), H = l === null ? void 0 : m.points[l];
|
|
632
626
|
return /* @__PURE__ */ w("div", {
|
|
633
627
|
className: "space-y-3",
|
|
634
628
|
children: [
|
|
@@ -636,30 +630,30 @@ function ie({ view: t }) {
|
|
|
636
630
|
className: "flex flex-wrap items-center justify-between gap-2",
|
|
637
631
|
children: [/* @__PURE__ */ C("p", {
|
|
638
632
|
className: "text-xs text-text-secondary",
|
|
639
|
-
children:
|
|
640
|
-
yaw: Math.round(
|
|
641
|
-
pitch: Math.round(
|
|
633
|
+
children: i(`${N}.sceneHelp`, "Drag or use the arrow keys to rotate · yaw {{yaw}}°, pitch {{pitch}}°", {
|
|
634
|
+
yaw: Math.round(o.yaw),
|
|
635
|
+
pitch: Math.round(o.pitch)
|
|
642
636
|
})
|
|
643
637
|
}), /* @__PURE__ */ C(T, {
|
|
644
638
|
type: "button",
|
|
645
639
|
size: "sm",
|
|
646
640
|
variant: "outline",
|
|
647
|
-
onClick: () =>
|
|
648
|
-
children:
|
|
641
|
+
onClick: () => s(t),
|
|
642
|
+
children: i(`${N}.resetView`, "Reset view")
|
|
649
643
|
})]
|
|
650
644
|
}),
|
|
651
|
-
/* @__PURE__ */ C(
|
|
645
|
+
/* @__PURE__ */ C(L, { children: /* @__PURE__ */ w("svg", {
|
|
652
646
|
viewBox: `0 0 ${$} ${$}`,
|
|
653
647
|
className: "mx-auto h-auto w-full max-w-md cursor-grab touch-none select-none focus:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
654
648
|
role: "application",
|
|
655
|
-
"aria-roledescription":
|
|
649
|
+
"aria-roledescription": i(`${N}.sceneRole`, "3-D scene"),
|
|
656
650
|
tabIndex: 0,
|
|
657
|
-
"aria-label":
|
|
658
|
-
points:
|
|
659
|
-
paths:
|
|
651
|
+
"aria-label": i(`${N}.sceneAria`, "3-D scene with {{points}} points and {{paths}} paths; drag or use arrow keys to rotate", {
|
|
652
|
+
points: n.points.length,
|
|
653
|
+
paths: n.paths.length
|
|
660
654
|
}),
|
|
661
|
-
"data-yaw":
|
|
662
|
-
"data-pitch":
|
|
655
|
+
"data-yaw": o.yaw,
|
|
656
|
+
"data-pitch": o.pitch,
|
|
663
657
|
onPointerDown: O,
|
|
664
658
|
onPointerMove: P,
|
|
665
659
|
onPointerUp: k,
|
|
@@ -678,7 +672,7 @@ function ie({ view: t }) {
|
|
|
678
672
|
fontSize: 10,
|
|
679
673
|
fill: "var(--color-text-tertiary)",
|
|
680
674
|
dy: -3,
|
|
681
|
-
children:
|
|
675
|
+
children: n.axes[e.axis]
|
|
682
676
|
})] }, e.axis)),
|
|
683
677
|
g.paths.map((e, t) => /* @__PURE__ */ C("path", {
|
|
684
678
|
d: e.d,
|
|
@@ -688,14 +682,14 @@ function ie({ view: t }) {
|
|
|
688
682
|
"data-testid": "scene-path"
|
|
689
683
|
}, `path-${t}`)),
|
|
690
684
|
g.points.map((e) => {
|
|
691
|
-
let t =
|
|
685
|
+
let t = ee(e.depth);
|
|
692
686
|
return /* @__PURE__ */ C("circle", {
|
|
693
687
|
cx: e.x,
|
|
694
688
|
cy: e.y,
|
|
695
689
|
r: 2 + t * 2,
|
|
696
690
|
fill: "var(--color-chart-1)",
|
|
697
691
|
fillOpacity: .35 + t * .6,
|
|
698
|
-
stroke:
|
|
692
|
+
stroke: l === e.index ? "var(--color-text-primary)" : void 0,
|
|
699
693
|
className: "cursor-pointer",
|
|
700
694
|
"data-testid": "scene-point",
|
|
701
695
|
onClick: () => D(e.index),
|
|
@@ -704,38 +698,38 @@ function ie({ view: t }) {
|
|
|
704
698
|
})
|
|
705
699
|
]
|
|
706
700
|
}) }),
|
|
707
|
-
/* @__PURE__ */ C(
|
|
708
|
-
/* @__PURE__ */ C(
|
|
701
|
+
/* @__PURE__ */ C(B, { text: H ? v(H) : null }),
|
|
702
|
+
/* @__PURE__ */ C(R, { items: g.paths.map((e) => ({
|
|
709
703
|
name: e.name,
|
|
710
704
|
color: e.color,
|
|
711
|
-
hint:
|
|
705
|
+
hint: i(`${N}.pathHint`, "path")
|
|
712
706
|
})) }),
|
|
713
|
-
/* @__PURE__ */ C(
|
|
714
|
-
shown:
|
|
715
|
-
total:
|
|
707
|
+
/* @__PURE__ */ C(z, {
|
|
708
|
+
shown: m.shown,
|
|
709
|
+
total: m.total
|
|
716
710
|
}),
|
|
717
|
-
/* @__PURE__ */ C(
|
|
711
|
+
/* @__PURE__ */ C(V, {
|
|
718
712
|
columns: [
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
..._ ? [
|
|
713
|
+
i(`${N}.colLabel`, "Label"),
|
|
714
|
+
n.axes.x,
|
|
715
|
+
n.axes.y,
|
|
716
|
+
n.axes.z,
|
|
717
|
+
..._ ? [i(`${N}.value`, "value")] : []
|
|
724
718
|
],
|
|
725
|
-
rows: [...
|
|
719
|
+
rows: [...n.points.map((e) => ({
|
|
726
720
|
p: e,
|
|
727
721
|
owner: e.label ?? ""
|
|
728
|
-
})), ...
|
|
722
|
+
})), ...n.paths.flatMap((e) => e.points.map((t) => ({
|
|
729
723
|
p: t,
|
|
730
724
|
owner: t.label ?? e.name
|
|
731
725
|
})))].slice(0, M).map(({ p: e, owner: t }) => [
|
|
732
726
|
t,
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
..._ ? [e.value === void 0 ? "" :
|
|
727
|
+
c(e.x),
|
|
728
|
+
c(e.y),
|
|
729
|
+
c(e.z),
|
|
730
|
+
..._ ? [e.value === void 0 ? "" : c(e.value)] : []
|
|
737
731
|
]),
|
|
738
|
-
total:
|
|
732
|
+
total: m.total
|
|
739
733
|
})
|
|
740
734
|
]
|
|
741
735
|
});
|
|
@@ -749,7 +743,7 @@ function ae({ view: e }) {
|
|
|
749
743
|
}) : null, e.description ? /* @__PURE__ */ C("p", {
|
|
750
744
|
className: "text-xs text-text-secondary",
|
|
751
745
|
children: e.description
|
|
752
|
-
}) : null] }) : null, e.kind === "skymap" ? /* @__PURE__ */ C(
|
|
746
|
+
}) : null] }) : null, e.kind === "skymap" ? /* @__PURE__ */ C(K, { view: e }) : e.kind === "scene3d" ? /* @__PURE__ */ C(ie, { view: e }) : /* @__PURE__ */ C(Q, { view: e })]
|
|
753
747
|
});
|
|
754
748
|
}
|
|
755
749
|
var oe = /* @__PURE__ */ new WeakMap(), se = 0;
|
|
@@ -757,26 +751,26 @@ function ce(e) {
|
|
|
757
751
|
let t = oe.get(e);
|
|
758
752
|
return t === void 0 && (se += 1, t = se, oe.set(e, t)), t;
|
|
759
753
|
}
|
|
760
|
-
function le({ results:
|
|
761
|
-
let
|
|
754
|
+
function le({ results: t, className: n }) {
|
|
755
|
+
let r = e(), i = b(() => o(t), [t]), a = m(i.map((e) => e.title ?? I(r, e.kind)), (e, t) => r(`${N}.tabNumbered`, "{{label}} {{n}}", {
|
|
762
756
|
label: e,
|
|
763
757
|
n: t
|
|
764
758
|
}));
|
|
765
|
-
return
|
|
766
|
-
results:
|
|
767
|
-
className:
|
|
768
|
-
}) :
|
|
769
|
-
className:
|
|
759
|
+
return i.length === 0 ? /* @__PURE__ */ C(v, {
|
|
760
|
+
results: t,
|
|
761
|
+
className: n
|
|
762
|
+
}) : i.length === 1 ? /* @__PURE__ */ C("div", {
|
|
763
|
+
className: _("space-y-3", n),
|
|
770
764
|
"data-testid": "science-canvas",
|
|
771
|
-
children: /* @__PURE__ */ C(ae, { view:
|
|
765
|
+
children: /* @__PURE__ */ C(ae, { view: i[0] }, ce(t))
|
|
772
766
|
}) : /* @__PURE__ */ w(E, {
|
|
773
767
|
defaultValue: "view-0",
|
|
774
|
-
className:
|
|
768
|
+
className: _("space-y-3", n),
|
|
775
769
|
"data-testid": "science-canvas",
|
|
776
770
|
children: [/* @__PURE__ */ C(O, {
|
|
777
771
|
className: "flex h-auto w-full max-w-full justify-start overflow-x-auto",
|
|
778
772
|
"data-testid": "science-canvas-tabs",
|
|
779
|
-
children:
|
|
773
|
+
children: a.map((e, t) => /* @__PURE__ */ C(k, {
|
|
780
774
|
value: `view-${t}`,
|
|
781
775
|
title: e,
|
|
782
776
|
"aria-label": e,
|
|
@@ -786,13 +780,12 @@ function le({ results: r, className: i }) {
|
|
|
786
780
|
children: e
|
|
787
781
|
})
|
|
788
782
|
}, `tab-${t}`))
|
|
789
|
-
}),
|
|
783
|
+
}), i.map((e, t) => /* @__PURE__ */ C(D, {
|
|
790
784
|
value: `view-${t}`,
|
|
791
785
|
children: /* @__PURE__ */ C(ae, { view: e })
|
|
792
786
|
}, `panel-${t}`))]
|
|
793
|
-
}, ce(
|
|
787
|
+
}, ce(t));
|
|
794
788
|
}
|
|
795
|
-
|
|
796
|
-
export { ne as PlotCanvas, ie as SceneCanvas, le as ScienceCanvas, le as default, q as SkyMapCanvas };
|
|
789
|
+
export { Q as PlotCanvas, ie as SceneCanvas, le as ScienceCanvas, le as default, K as SkyMapCanvas };
|
|
797
790
|
|
|
798
791
|
//# sourceMappingURL=ScienceCanvas.js.map
|