@tetrascience-npm/tetrascience-react-ui 0.7.0-beta.129.1 → 0.7.0-beta.131.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -0
- package/dist/ai/attachments.cjs +2 -0
- package/dist/ai/attachments.cjs.map +1 -0
- package/dist/ai/attachments.js +224 -0
- package/dist/ai/attachments.js.map +1 -0
- package/dist/ai/chain-of-thought.cjs +2 -0
- package/dist/ai/chain-of-thought.cjs.map +1 -0
- package/dist/ai/chain-of-thought.js +145 -0
- package/dist/ai/chain-of-thought.js.map +1 -0
- package/dist/ai/confirmation.cjs +2 -0
- package/dist/ai/confirmation.cjs.map +1 -0
- package/dist/ai/confirmation.js +109 -0
- package/dist/ai/confirmation.js.map +1 -0
- package/dist/ai/context.cjs +2 -0
- package/dist/ai/context.cjs.map +1 -0
- package/dist/ai/context.js +267 -0
- package/dist/ai/context.js.map +1 -0
- package/dist/ai/conversation.cjs +4 -0
- package/dist/ai/conversation.cjs.map +1 -0
- package/dist/ai/conversation.js +108 -0
- package/dist/ai/conversation.js.map +1 -0
- package/dist/ai/inline-citation.cjs +2 -0
- package/dist/ai/inline-citation.cjs.map +1 -0
- package/dist/ai/inline-citation.js +182 -0
- package/dist/ai/inline-citation.js.map +1 -0
- package/dist/ai/message.cjs +2 -0
- package/dist/ai/message.cjs.map +1 -0
- package/dist/ai/message.js +237 -0
- package/dist/ai/message.js.map +1 -0
- package/dist/ai/model-selector.cjs +2 -0
- package/dist/ai/model-selector.cjs.map +1 -0
- package/dist/ai/model-selector.js +77 -0
- package/dist/ai/model-selector.js.map +1 -0
- package/dist/ai/prompt-input.cjs +2 -0
- package/dist/ai/prompt-input.cjs.map +1 -0
- package/dist/ai/prompt-input.js +776 -0
- package/dist/ai/prompt-input.js.map +1 -0
- package/dist/ai/queue.cjs +2 -0
- package/dist/ai/queue.cjs.map +1 -0
- package/dist/ai/queue.js +209 -0
- package/dist/ai/queue.js.map +1 -0
- package/dist/ai/reasoning.cjs +2 -0
- package/dist/ai/reasoning.cjs.map +1 -0
- package/dist/ai/reasoning.js +129 -0
- package/dist/ai/reasoning.js.map +1 -0
- package/dist/ai/shimmer.cjs +2 -0
- package/dist/ai/shimmer.cjs.map +1 -0
- package/dist/ai/shimmer.js +49 -0
- package/dist/ai/shimmer.js.map +1 -0
- package/dist/ai/sources.cjs +2 -0
- package/dist/ai/sources.cjs.map +1 -0
- package/dist/ai/sources.js +54 -0
- package/dist/ai/sources.js.map +1 -0
- package/dist/ai/speech-input.cjs +2 -0
- package/dist/ai/speech-input.cjs.map +1 -0
- package/dist/ai/speech-input.js +123 -0
- package/dist/ai/speech-input.js.map +1 -0
- package/dist/ai/stream-status.cjs +2 -0
- package/dist/ai/stream-status.cjs.map +1 -0
- package/dist/ai/stream-status.js +108 -0
- package/dist/ai/stream-status.js.map +1 -0
- package/dist/ai/suggestion.cjs +2 -0
- package/dist/ai/suggestion.cjs.map +1 -0
- package/dist/ai/suggestion.js +38 -0
- package/dist/ai/suggestion.js.map +1 -0
- package/dist/ai/task.cjs +2 -0
- package/dist/ai/task.cjs.map +1 -0
- package/dist/ai/task.js +101 -0
- package/dist/ai/task.js.map +1 -0
- package/dist/ai/tool.cjs +2 -0
- package/dist/ai/tool.cjs.map +1 -0
- package/dist/ai/tool.js +139 -0
- package/dist/ai/tool.js.map +1 -0
- package/dist/charts/AreaPlot.cjs +2 -0
- package/dist/charts/AreaPlot.cjs.map +1 -0
- package/dist/charts/AreaPlot.js +5 -0
- package/dist/charts/AreaPlot.js.map +1 -0
- package/dist/charts/BarChart.cjs +2 -0
- package/dist/charts/BarChart.cjs.map +1 -0
- package/dist/charts/BarChart.js +5 -0
- package/dist/charts/BarChart.js.map +1 -0
- package/dist/charts/BoxPlot.cjs +2 -0
- package/dist/charts/BoxPlot.cjs.map +1 -0
- package/dist/charts/BoxPlot.js +5 -0
- package/dist/charts/BoxPlot.js.map +1 -0
- package/dist/charts/ChartTooltip.cjs +2 -0
- package/dist/charts/ChartTooltip.cjs.map +1 -0
- package/dist/charts/ChartTooltip.js +8 -0
- package/dist/charts/ChartTooltip.js.map +1 -0
- package/dist/charts/Chromatogram.cjs +2 -0
- package/dist/charts/Chromatogram.cjs.map +1 -0
- package/dist/charts/Chromatogram.js +5 -0
- package/dist/charts/Chromatogram.js.map +1 -0
- package/dist/charts/Electropherogram.cjs +2 -0
- package/dist/charts/Electropherogram.cjs.map +1 -0
- package/dist/charts/Electropherogram.js +5 -0
- package/dist/charts/Electropherogram.js.map +1 -0
- package/dist/charts/Histogram.cjs +2 -0
- package/dist/charts/Histogram.cjs.map +1 -0
- package/dist/charts/Histogram.js +5 -0
- package/dist/charts/Histogram.js.map +1 -0
- package/dist/charts/LinePlot.cjs +2 -0
- package/dist/charts/LinePlot.cjs.map +1 -0
- package/dist/charts/LinePlot.js +5 -0
- package/dist/charts/LinePlot.js.map +1 -0
- package/dist/charts/PieChart.cjs +2 -0
- package/dist/charts/PieChart.cjs.map +1 -0
- package/dist/charts/PieChart.js +5 -0
- package/dist/charts/PieChart.js.map +1 -0
- package/dist/charts/PlateMap.cjs +2 -0
- package/dist/charts/PlateMap.cjs.map +1 -0
- package/dist/charts/PlateMap.js +5 -0
- package/dist/charts/PlateMap.js.map +1 -0
- package/dist/charts/ScatterPlot.cjs +2 -0
- package/dist/charts/ScatterPlot.cjs.map +1 -0
- package/dist/charts/ScatterPlot.js +5 -0
- package/dist/charts/ScatterPlot.js.map +1 -0
- package/dist/charts/ScatterPlotInteractive.cjs +2 -0
- package/dist/charts/ScatterPlotInteractive.cjs.map +1 -0
- package/dist/charts/ScatterPlotInteractive.js +14 -0
- package/dist/charts/ScatterPlotInteractive.js.map +1 -0
- package/dist/charts/StackedChromatogram.cjs +2 -0
- package/dist/charts/StackedChromatogram.cjs.map +1 -0
- package/dist/charts/StackedChromatogram.js +7 -0
- package/dist/charts/StackedChromatogram.js.map +1 -0
- package/dist/components/ai/attachments.d.ts +54 -0
- package/dist/components/ai/chain-of-thought.d.ts +56 -0
- package/dist/components/ai/confirmation.d.ts +47 -0
- package/dist/components/ai/context.d.ts +40 -0
- package/dist/components/ai/conversation.d.ts +23 -0
- package/dist/components/ai/inline-citation.d.ts +38 -0
- package/dist/components/ai/message.d.ts +37 -0
- package/dist/components/ai/model-selector.d.ts +36 -0
- package/dist/components/ai/prompt-input.d.ts +158 -0
- package/dist/components/ai/queue.d.ts +72 -0
- package/dist/components/ai/reasoning.d.ts +26 -0
- package/dist/components/ai/shimmer.d.ts +17 -0
- package/dist/components/ai/sources.d.ts +12 -0
- package/dist/components/ai/speech-input.d.ts +54 -0
- package/dist/components/ai/stream-status.d.ts +66 -0
- package/dist/components/ai/streamdown-code-plugin.d.ts +2 -0
- package/dist/components/ai/streamdown-plugins.d.ts +2 -0
- package/dist/components/ai/suggestion.d.ts +9 -0
- package/dist/components/ai/task.d.ts +16 -0
- package/dist/components/ai/tool.d.ts +33 -0
- package/dist/components/ai/use-streamdown-plugins.d.ts +8 -0
- package/dist/components/charts/AreaPlot/AreaPlot.cjs +1 -1
- package/dist/components/charts/AreaPlot/AreaPlot.d.ts +39 -0
- package/dist/components/charts/AreaPlot/index.d.ts +2 -0
- package/dist/components/charts/BarChart/BarChart.cjs +1 -1
- package/dist/components/charts/BarChart/BarChart.d.ts +44 -0
- package/dist/components/charts/BarChart/index.d.ts +2 -0
- package/dist/components/charts/BoxPlot/BoxPlot.cjs +1 -1
- package/dist/components/charts/BoxPlot/BoxPlot.d.ts +33 -0
- package/dist/components/charts/BoxPlot/index.d.ts +2 -0
- package/dist/components/charts/ChartTooltip/ChartTooltip.d.ts +71 -0
- package/dist/components/charts/ChartTooltip/index.d.ts +2 -0
- package/dist/components/charts/ChartTooltip/lines.d.ts +54 -0
- package/dist/components/charts/Chromatogram/Chromatogram.d.ts +5 -0
- package/dist/components/charts/Chromatogram/annotations.cjs +1 -1
- package/dist/components/charts/Chromatogram/annotations.d.ts +50 -0
- package/dist/components/charts/Chromatogram/boundaryMarkers.cjs +1 -1
- package/dist/components/charts/Chromatogram/boundaryMarkers.d.ts +14 -0
- package/dist/components/charts/Chromatogram/constants.d.ts +46 -0
- package/dist/components/charts/Chromatogram/dataProcessing.d.ts +49 -0
- package/dist/components/charts/Chromatogram/index.d.ts +2 -0
- package/dist/components/charts/Chromatogram/peakDetection.d.ts +33 -0
- package/dist/components/charts/Chromatogram/plotBuilder.d.ts +58 -0
- package/dist/components/charts/Chromatogram/regionOverlays.cjs +1 -1
- package/dist/components/charts/Chromatogram/regionOverlays.d.ts +9 -0
- package/dist/components/charts/Chromatogram/types.d.ts +258 -0
- package/dist/components/charts/Electropherogram/Electropherogram.cjs +1 -1
- package/dist/components/charts/Electropherogram/Electropherogram.d.ts +22 -0
- package/dist/components/charts/Electropherogram/index.d.ts +2 -0
- package/dist/components/charts/Histogram/Histogram.cjs +1 -1
- package/dist/components/charts/Histogram/Histogram.d.ts +36 -0
- package/dist/components/charts/Histogram/index.d.ts +2 -0
- package/dist/components/charts/LinePlot/LinePlot.cjs +1 -1
- package/dist/components/charts/LinePlot/LinePlot.d.ts +45 -0
- package/dist/components/charts/LinePlot/index.d.ts +2 -0
- package/dist/components/charts/PieChart/PieChart.d.ts +20 -0
- package/dist/components/charts/PieChart/index.d.ts +2 -0
- package/dist/components/charts/PlateMap/PlateMap.cjs +1 -1
- package/dist/components/charts/PlateMap/PlateMap.cjs.map +1 -1
- package/dist/components/charts/PlateMap/PlateMap.d.ts +29 -0
- package/dist/components/charts/PlateMap/PlateMap.js +1 -1
- package/dist/components/charts/PlateMap/constants.d.ts +75 -0
- package/dist/components/charts/PlateMap/index.d.ts +2 -0
- package/dist/components/charts/PlateMap/types.d.ts +322 -0
- package/dist/components/charts/PlateMap/utils.d.ts +133 -0
- package/dist/components/charts/ScatterPlot/ScatterPlot.cjs +1 -1
- package/dist/components/charts/ScatterPlot/ScatterPlot.d.ts +43 -0
- package/dist/components/charts/ScatterPlot/index.d.ts +2 -0
- package/dist/components/charts/ScatterPlotInteractive/ScatterPlotInteractive.d.ts +25 -0
- package/dist/components/charts/ScatterPlotInteractive/constants.d.ts +50 -0
- package/dist/components/charts/ScatterPlotInteractive/index.d.ts +3 -0
- package/dist/components/charts/ScatterPlotInteractive/types.d.ts +226 -0
- package/dist/components/charts/ScatterPlotInteractive/utils.d.ts +72 -0
- package/dist/components/charts/StackedChromatogram/StackedChromatogram.d.ts +3 -0
- package/dist/components/charts/StackedChromatogram/index.d.ts +3 -0
- package/dist/components/charts/StackedChromatogram/transforms.d.ts +9 -0
- package/dist/components/charts/StackedChromatogram/types.d.ts +26 -0
- package/dist/components/charts/plotly-loader.cjs +1 -1
- package/dist/components/charts/plotly-loader.cjs.map +1 -1
- package/dist/components/charts/plotly-loader.d.ts +29 -0
- package/dist/components/composed/AssistantLayout/AssistantLayout.cjs +1 -1
- package/dist/components/composed/AssistantLayout/AssistantLayout.cjs.map +1 -1
- package/dist/components/composed/AssistantLayout/AssistantLayout.d.ts +63 -0
- package/dist/components/composed/AssistantLayout/AssistantLayout.js +2 -2
- package/dist/components/composed/AssistantLayout/dockLayout.d.ts +15 -0
- package/dist/components/composed/AssistantLayout/index.d.ts +3 -0
- package/dist/components/composed/Chat/Chat.cjs +1 -1
- package/dist/components/composed/Chat/Chat.cjs.map +1 -1
- package/dist/components/composed/Chat/Chat.d.ts +35 -0
- package/dist/components/composed/Chat/Chat.js +7 -7
- package/dist/components/composed/Chat/index.d.ts +2 -0
- package/dist/components/composed/ConfirmDialog/ConfirmDialog.cjs +1 -1
- package/dist/components/composed/ConfirmDialog/ConfirmDialog.cjs.map +1 -1
- package/dist/components/composed/ConfirmDialog/ConfirmDialog.d.ts +23 -0
- package/dist/components/composed/ConfirmDialog/ConfirmDialog.js +4 -4
- package/dist/components/composed/ConfirmDialog/index.d.ts +1 -0
- package/dist/components/composed/DataAppShell/CollapseButton.cjs +1 -1
- package/dist/components/composed/DataAppShell/CollapseButton.cjs.map +1 -1
- package/dist/components/composed/DataAppShell/CollapseButton.d.ts +23 -0
- package/dist/components/composed/DataAppShell/CollapseButton.js +2 -2
- package/dist/components/composed/DataAppShell/DataAppShell.cjs +1 -1
- package/dist/components/composed/DataAppShell/DataAppShell.cjs.map +1 -1
- package/dist/components/composed/DataAppShell/DataAppShell.d.ts +88 -0
- package/dist/components/composed/DataAppShell/DataAppShell.js +5 -5
- package/dist/components/composed/DataAppShell/PrimaryNav.cjs +1 -1
- package/dist/components/composed/DataAppShell/PrimaryNav.cjs.map +1 -1
- package/dist/components/composed/DataAppShell/PrimaryNav.d.ts +64 -0
- package/dist/components/composed/DataAppShell/PrimaryNav.js +2 -2
- package/dist/components/composed/DataAppShell/RightPanel.cjs +1 -1
- package/dist/components/composed/DataAppShell/RightPanel.cjs.map +1 -1
- package/dist/components/composed/DataAppShell/RightPanel.d.ts +95 -0
- package/dist/components/composed/DataAppShell/RightPanel.js +2 -2
- package/dist/components/composed/DataAppShell/SecondaryNav.cjs +1 -1
- package/dist/components/composed/DataAppShell/SecondaryNav.cjs.map +1 -1
- package/dist/components/composed/DataAppShell/SecondaryNav.d.ts +63 -0
- package/dist/components/composed/DataAppShell/SecondaryNav.js +3 -3
- package/dist/components/composed/DataAppShell/ShellContext.d.ts +20 -0
- package/dist/components/composed/DataAppShell/index.d.ts +12 -0
- package/dist/components/composed/EmptyState/EmptyState.d.ts +12 -0
- package/dist/components/composed/EmptyState/index.d.ts +2 -0
- package/dist/components/composed/FormPatterns/FormSection.cjs +1 -1
- package/dist/components/composed/FormPatterns/FormSection.cjs.map +1 -1
- package/dist/components/composed/FormPatterns/FormSection.d.ts +7 -0
- package/dist/components/composed/FormPatterns/FormSection.js +2 -2
- package/dist/components/composed/FormPatterns/index.d.ts +1 -0
- package/dist/components/composed/MoleculeStructure/MoleculeStructure.cjs +1 -1
- package/dist/components/composed/MoleculeStructure/MoleculeStructure.cjs.map +1 -1
- package/dist/components/composed/MoleculeStructure/MoleculeStructure.d.ts +43 -0
- package/dist/components/composed/MoleculeStructure/MoleculeStructure.js +1 -1
- package/dist/components/composed/MoleculeStructure/index.d.ts +3 -0
- package/dist/components/composed/MoleculeStructure/rdkit-loader.cjs +1 -1
- package/dist/components/composed/MoleculeStructure/rdkit-loader.cjs.map +1 -1
- package/dist/components/composed/MoleculeStructure/rdkit-loader.d.ts +104 -0
- package/dist/components/composed/MoleculeStructure/use-rdkit.d.ts +29 -0
- package/dist/components/composed/PlateMapEditor/ManifestFilterPopover.cjs +1 -1
- package/dist/components/composed/PlateMapEditor/ManifestFilterPopover.cjs.map +1 -1
- package/dist/components/composed/PlateMapEditor/ManifestFilterPopover.d.ts +12 -0
- package/dist/components/composed/PlateMapEditor/ManifestFilterPopover.js +4 -4
- package/dist/components/composed/PlateMapEditor/PlateMapActionsMenu.cjs +1 -1
- package/dist/components/composed/PlateMapEditor/PlateMapActionsMenu.cjs.map +1 -1
- package/dist/components/composed/PlateMapEditor/PlateMapActionsMenu.d.ts +22 -0
- package/dist/components/composed/PlateMapEditor/PlateMapActionsMenu.js +2 -2
- package/dist/components/composed/PlateMapEditor/PlateMapEditor.cjs +1 -1
- package/dist/components/composed/PlateMapEditor/PlateMapEditor.cjs.map +1 -1
- package/dist/components/composed/PlateMapEditor/PlateMapEditor.d.ts +106 -0
- package/dist/components/composed/PlateMapEditor/PlateMapEditor.js +2 -2
- package/dist/components/composed/PlateMapEditor/PlateMapForm.cjs +1 -1
- package/dist/components/composed/PlateMapEditor/PlateMapForm.cjs.map +1 -1
- package/dist/components/composed/PlateMapEditor/PlateMapForm.d.ts +30 -0
- package/dist/components/composed/PlateMapEditor/PlateMapForm.js +1 -1
- package/dist/components/composed/PlateMapEditor/PlateMapGrid.cjs +1 -1
- package/dist/components/composed/PlateMapEditor/PlateMapGrid.cjs.map +1 -1
- package/dist/components/composed/PlateMapEditor/PlateMapGrid.d.ts +64 -0
- package/dist/components/composed/PlateMapEditor/PlateMapGrid.js +1 -1
- package/dist/components/composed/PlateMapEditor/PlateMapManifest.d.ts +29 -0
- package/dist/components/composed/PlateMapEditor/PlateMapPlateSelector.cjs +1 -1
- package/dist/components/composed/PlateMapEditor/PlateMapPlateSelector.cjs.map +1 -1
- package/dist/components/composed/PlateMapEditor/PlateMapPlateSelector.d.ts +19 -0
- package/dist/components/composed/PlateMapEditor/PlateMapPlateSelector.js +4 -4
- package/dist/components/composed/PlateMapEditor/PlatePaintGrid.d.ts +73 -0
- package/dist/components/composed/PlateMapEditor/PlateZoomControl.cjs +1 -1
- package/dist/components/composed/PlateMapEditor/PlateZoomControl.cjs.map +1 -1
- package/dist/components/composed/PlateMapEditor/PlateZoomControl.d.ts +12 -0
- package/dist/components/composed/PlateMapEditor/PlateZoomControl.js +2 -2
- package/dist/components/composed/PlateMapEditor/TemplateIOPanel.cjs +1 -1
- package/dist/components/composed/PlateMapEditor/TemplateIOPanel.cjs.map +1 -1
- package/dist/components/composed/PlateMapEditor/TemplateIOPanel.d.ts +13 -0
- package/dist/components/composed/PlateMapEditor/TemplateIOPanel.js +4 -4
- package/dist/components/composed/PlateMapEditor/WellLegend.cjs +1 -1
- package/dist/components/composed/PlateMapEditor/WellLegend.cjs.map +1 -1
- package/dist/components/composed/PlateMapEditor/WellLegend.d.ts +21 -0
- package/dist/components/composed/PlateMapEditor/WellLegend.js +2 -2
- package/dist/components/composed/PlateMapEditor/WellManifestTable.cjs +1 -1
- package/dist/components/composed/PlateMapEditor/WellManifestTable.cjs.map +1 -1
- package/dist/components/composed/PlateMapEditor/WellManifestTable.d.ts +46 -0
- package/dist/components/composed/PlateMapEditor/WellManifestTable.js +9 -9
- package/dist/components/composed/PlateMapEditor/WellMetadataForm.cjs +1 -1
- package/dist/components/composed/PlateMapEditor/WellMetadataForm.cjs.map +1 -1
- package/dist/components/composed/PlateMapEditor/WellMetadataForm.d.ts +17 -0
- package/dist/components/composed/PlateMapEditor/WellMetadataForm.js +7 -7
- package/dist/components/composed/PlateMapEditor/autoFill.d.ts +26 -0
- package/dist/components/composed/PlateMapEditor/csvPlateTriage.d.ts +4 -0
- package/dist/components/composed/PlateMapEditor/helpers.d.ts +2 -0
- package/dist/components/composed/PlateMapEditor/index.d.ts +31 -0
- package/dist/components/composed/PlateMapEditor/types.d.ts +137 -0
- package/dist/components/composed/PlateMapEditor/wellGrid.d.ts +12 -0
- package/dist/components/composed/ProcessFlow/ProcessFlow.d.ts +32 -0
- package/dist/components/composed/ProcessFlow/ProcessFlow.utils.d.ts +86 -0
- package/dist/components/composed/ProcessFlow/index.d.ts +1 -0
- package/dist/components/composed/RichListItem/RichListItem.cjs +1 -1
- package/dist/components/composed/RichListItem/RichListItem.cjs.map +1 -1
- package/dist/components/composed/RichListItem/RichListItem.d.ts +22 -0
- package/dist/components/composed/RichListItem/RichListItem.js +2 -2
- package/dist/components/composed/RichListItem/index.d.ts +2 -0
- package/dist/components/composed/StatCard/StatCard.cjs +1 -1
- package/dist/components/composed/StatCard/StatCard.cjs.map +1 -1
- package/dist/components/composed/StatCard/StatCard.d.ts +11 -0
- package/dist/components/composed/StatCard/StatCard.js +1 -1
- package/dist/components/composed/StatCard/index.d.ts +1 -0
- package/dist/components/composed/TdpSearch/TdpSearch.cjs +1 -1
- package/dist/components/composed/TdpSearch/TdpSearch.cjs.map +1 -1
- package/dist/components/composed/TdpSearch/TdpSearch.d.ts +21 -0
- package/dist/components/composed/TdpSearch/TdpSearch.js +14 -13
- package/dist/components/composed/TdpSearch/TdpSearch.mocks.d.ts +5 -0
- package/dist/components/composed/TdpSearch/components/DefaultFilters.cjs +1 -1
- package/dist/components/composed/TdpSearch/components/DefaultFilters.cjs.map +1 -1
- package/dist/components/composed/TdpSearch/components/DefaultFilters.d.ts +3 -0
- package/dist/components/composed/TdpSearch/components/DefaultFilters.js +1 -1
- package/dist/components/composed/TdpSearch/components/DefaultResults.cjs +1 -1
- package/dist/components/composed/TdpSearch/components/DefaultResults.cjs.map +1 -1
- package/dist/components/composed/TdpSearch/components/DefaultResults.d.ts +3 -0
- package/dist/components/composed/TdpSearch/components/DefaultResults.js +2 -2
- package/dist/components/composed/TdpSearch/components/DefaultSearchBar.cjs +1 -1
- package/dist/components/composed/TdpSearch/components/DefaultSearchBar.cjs.map +1 -1
- package/dist/components/composed/TdpSearch/components/DefaultSearchBar.d.ts +3 -0
- package/dist/components/composed/TdpSearch/components/DefaultSearchBar.js +2 -2
- package/dist/components/composed/TdpSearch/constants.d.ts +3 -0
- package/dist/components/composed/TdpSearch/hooks/useSearch.d.ts +2 -0
- package/dist/components/composed/TdpSearch/hooks/useTdpCredentials.d.ts +14 -0
- package/dist/components/composed/TdpSearch/index.d.ts +3 -0
- package/dist/components/composed/TdpSearch/types.d.ts +128 -0
- package/dist/components/composed/TdpSearch/utils.d.ts +3 -0
- package/dist/components/composed/TopBar/TopBar.d.ts +25 -0
- package/dist/components/composed/TopBar/index.d.ts +2 -0
- package/dist/components/composed/UserMenu/UserMenu.cjs +1 -1
- package/dist/components/composed/UserMenu/UserMenu.cjs.map +1 -1
- package/dist/components/composed/UserMenu/UserMenu.d.ts +53 -0
- package/dist/components/composed/UserMenu/UserMenu.js +2 -2
- package/dist/components/composed/UserMenu/index.d.ts +2 -0
- package/dist/components/composed/tdp-link.d.ts +110 -0
- package/dist/components/composed/tdp-url.d.ts +68 -0
- package/dist/components/ui/accordion.d.ts +7 -0
- package/dist/components/ui/alert-dialog.d.ts +18 -0
- package/dist/components/ui/alert.d.ts +10 -0
- package/dist/components/ui/aspect-ratio.d.ts +3 -0
- package/dist/components/ui/avatar.d.ts +11 -0
- package/dist/components/ui/badge.d.ts +9 -0
- package/dist/components/ui/banner.d.ts +19 -0
- package/dist/components/ui/breadcrumb.d.ts +11 -0
- package/dist/components/ui/button-group.d.ts +11 -0
- package/dist/components/ui/button.d.ts +10 -0
- package/dist/components/ui/calendar.d.ts +10 -0
- package/dist/components/ui/card.d.ts +11 -0
- package/dist/components/ui/carousel.d.ts +28 -0
- package/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/components/ui/code-block.d.ts +45 -0
- package/dist/components/ui/code-editor.d.ts +18 -0
- package/dist/components/ui/collapsible.d.ts +5 -0
- package/dist/components/ui/combobox.d.ts +24 -0
- package/dist/components/ui/command.d.ts +18 -0
- package/dist/components/ui/context-menu.d.ts +31 -0
- package/dist/components/ui/data-table/data-table-column-toggle.cjs +1 -1
- package/dist/components/ui/data-table/data-table-column-toggle.cjs.map +1 -1
- package/dist/components/ui/data-table/data-table-column-toggle.d.ts +6 -0
- package/dist/components/ui/data-table/data-table-column-toggle.js +1 -1
- package/dist/components/ui/data-table/data-table-filter.cjs +1 -1
- package/dist/components/ui/data-table/data-table-filter.cjs.map +1 -1
- package/dist/components/ui/data-table/data-table-filter.d.ts +9 -0
- package/dist/components/ui/data-table/data-table-filter.js +3 -3
- package/dist/components/ui/data-table/data-table-group.cjs +1 -1
- package/dist/components/ui/data-table/data-table-group.cjs.map +1 -1
- package/dist/components/ui/data-table/data-table-group.d.ts +9 -0
- package/dist/components/ui/data-table/data-table-group.js +2 -2
- package/dist/components/ui/data-table/data-table-pagination.cjs +1 -1
- package/dist/components/ui/data-table/data-table-pagination.cjs.map +1 -1
- package/dist/components/ui/data-table/data-table-pagination.d.ts +7 -0
- package/dist/components/ui/data-table/data-table-pagination.js +2 -2
- package/dist/components/ui/data-table/data-table.cjs +1 -1
- package/dist/components/ui/data-table/data-table.cjs.map +1 -1
- package/dist/components/ui/data-table/data-table.d.ts +82 -0
- package/dist/components/ui/data-table/data-table.js +1 -1
- package/dist/components/ui/data-table/index.d.ts +5 -0
- package/dist/components/ui/dialog.d.ts +18 -0
- package/dist/components/ui/dropdown-menu.d.ts +29 -0
- package/dist/components/ui/field.d.ts +24 -0
- package/dist/components/ui/hover-card.d.ts +6 -0
- package/dist/components/ui/input-group.d.ts +16 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/item.d.ts +23 -0
- package/dist/components/ui/kbd.d.ts +3 -0
- package/dist/components/ui/label.d.ts +4 -0
- package/dist/components/ui/menubar.d.ts +30 -0
- package/dist/components/ui/navigation-menu.d.ts +14 -0
- package/dist/components/ui/popover.d.ts +7 -0
- package/dist/components/ui/progress.d.ts +4 -0
- package/dist/components/ui/radio-group.d.ts +5 -0
- package/dist/components/ui/resizable.d.ts +25 -0
- package/dist/components/ui/scroll-area.d.ts +5 -0
- package/dist/components/ui/select.d.ts +15 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/sheet.d.ts +14 -0
- package/dist/components/ui/sidebar.d.ts +69 -0
- package/dist/components/ui/skeleton.d.ts +2 -0
- package/dist/components/ui/slider.d.ts +4 -0
- package/dist/components/ui/snippet.d.ts +18 -0
- package/dist/components/ui/sonner.d.ts +3 -0
- package/dist/components/ui/spinner.d.ts +6 -0
- package/dist/components/ui/switch.d.ts +6 -0
- package/dist/components/ui/table.d.ts +22 -0
- package/dist/components/ui/tabs.d.ts +11 -0
- package/dist/components/ui/tetra-molecule-icon.d.ts +11 -0
- package/dist/components/ui/tetrascience-icon.d.ts +7 -0
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/components/ui/toggle-group.d.ts +10 -0
- package/dist/components/ui/toggle.d.ts +9 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/composed/AssistantLayout.cjs +2 -0
- package/dist/composed/AssistantLayout.cjs.map +1 -0
- package/dist/composed/AssistantLayout.js +10 -0
- package/dist/composed/AssistantLayout.js.map +1 -0
- package/dist/composed/Chat.cjs +2 -0
- package/dist/composed/Chat.cjs.map +1 -0
- package/dist/composed/Chat.js +5 -0
- package/dist/composed/Chat.js.map +1 -0
- package/dist/composed/ConfirmDialog.cjs +2 -0
- package/dist/composed/ConfirmDialog.cjs.map +1 -0
- package/dist/composed/ConfirmDialog.js +5 -0
- package/dist/composed/ConfirmDialog.js.map +1 -0
- package/dist/composed/DataAppShell.cjs +2 -0
- package/dist/composed/DataAppShell.cjs.map +1 -0
- package/dist/composed/DataAppShell.js +22 -0
- package/dist/composed/DataAppShell.js.map +1 -0
- package/dist/composed/EmptyState.cjs +2 -0
- package/dist/composed/EmptyState.cjs.map +1 -0
- package/dist/composed/EmptyState.js +5 -0
- package/dist/composed/EmptyState.js.map +1 -0
- package/dist/composed/FormPatterns.cjs +2 -0
- package/dist/composed/FormPatterns.cjs.map +1 -0
- package/dist/composed/FormPatterns.js +5 -0
- package/dist/composed/FormPatterns.js.map +1 -0
- package/dist/composed/MoleculeStructure.cjs +2 -0
- package/dist/composed/MoleculeStructure.cjs.map +1 -0
- package/dist/composed/MoleculeStructure.js +11 -0
- package/dist/composed/MoleculeStructure.js.map +1 -0
- package/dist/composed/PlateMapEditor.cjs +2 -0
- package/dist/composed/PlateMapEditor.cjs.map +1 -0
- package/dist/composed/PlateMapEditor.js +45 -0
- package/dist/composed/PlateMapEditor.js.map +1 -0
- package/dist/composed/ProcessFlow.cjs +2 -0
- package/dist/composed/ProcessFlow.cjs.map +1 -0
- package/dist/composed/ProcessFlow.js +7 -0
- package/dist/composed/ProcessFlow.js.map +1 -0
- package/dist/composed/RichListItem.cjs +2 -0
- package/dist/composed/RichListItem.cjs.map +1 -0
- package/dist/composed/RichListItem.js +6 -0
- package/dist/composed/RichListItem.js.map +1 -0
- package/dist/composed/StatCard.cjs +2 -0
- package/dist/composed/StatCard.cjs.map +1 -0
- package/dist/composed/StatCard.js +5 -0
- package/dist/composed/StatCard.js.map +1 -0
- package/dist/composed/TdpSearch.cjs +2 -0
- package/dist/composed/TdpSearch.cjs.map +1 -0
- package/dist/composed/TdpSearch.js +8 -0
- package/dist/composed/TdpSearch.js.map +1 -0
- package/dist/composed/TopBar.cjs +2 -0
- package/dist/composed/TopBar.cjs.map +1 -0
- package/dist/composed/TopBar.js +6 -0
- package/dist/composed/TopBar.js.map +1 -0
- package/dist/composed/UserMenu.cjs +2 -0
- package/dist/composed/UserMenu.cjs.map +1 -0
- package/dist/composed/UserMenu.js +7 -0
- package/dist/composed/UserMenu.js.map +1 -0
- package/dist/composed/tdp-link.cjs +2 -0
- package/dist/composed/tdp-link.cjs.map +1 -0
- package/dist/composed/tdp-link.js.map +1 -0
- package/dist/composed/tdp-url.cjs.map +1 -0
- package/dist/composed/tdp-url.js.map +1 -0
- package/dist/hooks/use-code-editor-theme.d.ts +34 -0
- package/dist/hooks/use-element-size.d.ts +25 -0
- package/dist/hooks/use-is-dark.d.ts +12 -0
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/hooks/use-plotly-theme.d.ts +49 -0
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +102 -5448
- package/dist/index.js +72 -72
- package/dist/jest-setup.cjs +4 -0
- package/dist/jest-setup.cjs.map +1 -0
- package/dist/jest-setup.d.ts +106 -0
- package/dist/jest-setup.js +218 -0
- package/dist/jest-setup.js.map +1 -0
- package/dist/lib/shiki.cjs +1 -1
- package/dist/lib/shiki.cjs.map +1 -1
- package/dist/lib/shiki.d.ts +32 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/server/auth/JwtTokenManager.cjs +1 -1
- package/dist/server/auth/JwtTokenManager.cjs.map +1 -1
- package/dist/server/auth/JwtTokenManager.d.ts +113 -0
- package/dist/server/auth/JwtTokenManager.js +44 -21
- package/dist/server/auth/JwtTokenManager.js.map +1 -1
- package/dist/server/auth/index.d.ts +5 -0
- package/dist/server/index.d.ts +8 -0
- package/dist/server/providers/AthenaProvider.cjs +1 -1
- package/dist/server/providers/AthenaProvider.cjs.map +1 -1
- package/dist/server/providers/AthenaProvider.d.ts +75 -0
- package/dist/server/providers/DatabricksProvider.cjs +1 -1
- package/dist/server/providers/DatabricksProvider.cjs.map +1 -1
- package/dist/server/providers/DatabricksProvider.d.ts +38 -0
- package/dist/server/providers/SnowflakeProvider.cjs +1 -1
- package/dist/server/providers/SnowflakeProvider.cjs.map +1 -1
- package/dist/server/providers/SnowflakeProvider.d.ts +36 -0
- package/dist/server/providers/buildProvider.d.ts +39 -0
- package/dist/server/providers/entries/athena.d.ts +24 -0
- package/dist/server/providers/entries/databricks.d.ts +25 -0
- package/dist/server/providers/entries/snowflake.d.ts +25 -0
- package/dist/server/providers/exceptions.d.ts +36 -0
- package/dist/server/providers/getProviderConfigurations.d.ts +45 -0
- package/dist/server/providers/index.d.ts +31 -0
- package/dist/server/providers/providerDiscovery.d.ts +81 -0
- package/dist/server/providers/types.d.ts +145 -0
- package/dist/server/search/TdpSearchManager.d.ts +40 -0
- package/dist/server/search/index.d.ts +5 -0
- package/dist/server.d.ts +17 -540
- package/dist/ui/accordion.cjs +2 -0
- package/dist/ui/accordion.cjs.map +1 -0
- package/dist/ui/accordion.js +83 -0
- package/dist/ui/accordion.js.map +1 -0
- package/dist/ui/alert-dialog.cjs +2 -0
- package/dist/ui/alert-dialog.cjs.map +1 -0
- package/dist/ui/alert-dialog.js +181 -0
- package/dist/ui/alert-dialog.js.map +1 -0
- package/dist/ui/alert.cjs +2 -0
- package/dist/ui/alert.cjs.map +1 -0
- package/dist/ui/alert.js +81 -0
- package/dist/ui/alert.js.map +1 -0
- package/dist/ui/aspect-ratio.cjs.map +1 -0
- package/dist/ui/aspect-ratio.js.map +1 -0
- package/dist/ui/avatar.cjs +2 -0
- package/dist/ui/avatar.cjs.map +1 -0
- package/dist/ui/avatar.js +107 -0
- package/dist/ui/avatar.js.map +1 -0
- package/dist/ui/badge.cjs +2 -0
- package/dist/ui/badge.cjs.map +1 -0
- package/dist/ui/badge.js +47 -0
- package/dist/ui/badge.js.map +1 -0
- package/dist/ui/banner.cjs +2 -0
- package/dist/ui/banner.cjs.map +1 -0
- package/dist/ui/banner.js +80 -0
- package/dist/ui/banner.js.map +1 -0
- package/dist/ui/breadcrumb.cjs +2 -0
- package/dist/ui/breadcrumb.cjs.map +1 -0
- package/dist/ui/breadcrumb.js +118 -0
- package/dist/ui/breadcrumb.js.map +1 -0
- package/dist/ui/button-group.cjs +2 -0
- package/dist/ui/button-group.cjs.map +1 -0
- package/dist/ui/button-group.js +77 -0
- package/dist/ui/button-group.js.map +1 -0
- package/dist/ui/button.cjs +2 -0
- package/dist/ui/button.cjs.map +1 -0
- package/dist/ui/button.js +57 -0
- package/dist/ui/button.js.map +1 -0
- package/dist/ui/calendar.cjs +2 -0
- package/dist/ui/calendar.cjs.map +1 -0
- package/dist/ui/calendar.js +174 -0
- package/dist/ui/calendar.js.map +1 -0
- package/dist/ui/card.cjs +2 -0
- package/dist/ui/card.cjs.map +1 -0
- package/dist/ui/card.js +102 -0
- package/dist/ui/card.js.map +1 -0
- package/dist/ui/carousel.cjs +2 -0
- package/dist/ui/carousel.cjs.map +1 -0
- package/dist/ui/carousel.js +179 -0
- package/dist/ui/carousel.js.map +1 -0
- package/dist/ui/checkbox.cjs +2 -0
- package/dist/ui/checkbox.cjs.map +1 -0
- package/dist/ui/checkbox.js +35 -0
- package/dist/ui/checkbox.js.map +1 -0
- package/dist/ui/code-block.cjs +4 -0
- package/dist/ui/code-block.cjs.map +1 -0
- package/dist/ui/code-block.js +324 -0
- package/dist/ui/code-block.js.map +1 -0
- package/dist/ui/code-editor.cjs +2 -0
- package/dist/ui/code-editor.cjs.map +1 -0
- package/dist/ui/code-editor.js +106 -0
- package/dist/ui/code-editor.js.map +1 -0
- package/dist/ui/collapsible.cjs.map +1 -0
- package/dist/ui/collapsible.js.map +1 -0
- package/dist/ui/combobox.cjs +2 -0
- package/dist/ui/combobox.cjs.map +1 -0
- package/dist/ui/combobox.js +285 -0
- package/dist/ui/combobox.js.map +1 -0
- package/dist/ui/command.cjs +2 -0
- package/dist/ui/command.cjs.map +1 -0
- package/dist/ui/command.js +178 -0
- package/dist/ui/command.js.map +1 -0
- package/dist/ui/context-menu.cjs +2 -0
- package/dist/ui/context-menu.cjs.map +1 -0
- package/dist/ui/context-menu.js +236 -0
- package/dist/ui/context-menu.js.map +1 -0
- package/dist/ui/data-table.cjs +2 -0
- package/dist/ui/data-table.cjs.map +1 -0
- package/dist/ui/data-table.js +16 -0
- package/dist/ui/data-table.js.map +1 -0
- package/dist/ui/dialog.cjs +2 -0
- package/dist/ui/dialog.cjs.map +1 -0
- package/dist/ui/dialog.js +165 -0
- package/dist/ui/dialog.js.map +1 -0
- package/dist/ui/dropdown-menu.cjs +2 -0
- package/dist/ui/dropdown-menu.cjs.map +1 -0
- package/dist/ui/dropdown-menu.js +260 -0
- package/dist/ui/dropdown-menu.js.map +1 -0
- package/dist/ui/field.cjs +2 -0
- package/dist/ui/field.cjs.map +1 -0
- package/dist/ui/field.js +210 -0
- package/dist/ui/field.js.map +1 -0
- package/dist/ui/hover-card.cjs +2 -0
- package/dist/ui/hover-card.cjs.map +1 -0
- package/dist/ui/hover-card.js +39 -0
- package/dist/ui/hover-card.js.map +1 -0
- package/dist/ui/input-group.cjs +2 -0
- package/dist/ui/input-group.cjs.map +1 -0
- package/dist/ui/input-group.js +145 -0
- package/dist/ui/input-group.js.map +1 -0
- package/dist/ui/input.cjs +2 -0
- package/dist/ui/input.cjs.map +1 -0
- package/dist/ui/input.js +20 -0
- package/dist/ui/input.js.map +1 -0
- package/dist/ui/item.cjs +2 -0
- package/dist/ui/item.cjs.map +1 -0
- package/dist/ui/item.js +199 -0
- package/dist/ui/item.js.map +1 -0
- package/dist/ui/kbd.cjs +2 -0
- package/dist/ui/kbd.cjs.map +1 -0
- package/dist/ui/kbd.js +30 -0
- package/dist/ui/kbd.js.map +1 -0
- package/dist/ui/label.cjs +2 -0
- package/dist/ui/label.cjs.map +1 -0
- package/dist/ui/label.js +23 -0
- package/dist/ui/label.js.map +1 -0
- package/dist/ui/menubar.cjs +2 -0
- package/dist/ui/menubar.cjs.map +1 -0
- package/dist/ui/menubar.js +256 -0
- package/dist/ui/menubar.js.map +1 -0
- package/dist/ui/navigation-menu.cjs +2 -0
- package/dist/ui/navigation-menu.cjs.map +1 -0
- package/dist/ui/navigation-menu.js +164 -0
- package/dist/ui/navigation-menu.js.map +1 -0
- package/dist/ui/popover.cjs +2 -0
- package/dist/ui/popover.cjs.map +1 -0
- package/dist/ui/popover.js +45 -0
- package/dist/ui/popover.js.map +1 -0
- package/dist/ui/radio-group.cjs +2 -0
- package/dist/ui/radio-group.cjs.map +1 -0
- package/dist/ui/radio-group.js +45 -0
- package/dist/ui/radio-group.js.map +1 -0
- package/dist/ui/resizable.cjs +2 -0
- package/dist/ui/resizable.cjs.map +1 -0
- package/dist/ui/resizable.js +58 -0
- package/dist/ui/resizable.js.map +1 -0
- package/dist/ui/scroll-area.cjs +2 -0
- package/dist/ui/scroll-area.cjs.map +1 -0
- package/dist/ui/scroll-area.js +61 -0
- package/dist/ui/scroll-area.js.map +1 -0
- package/dist/ui/select.cjs +2 -0
- package/dist/ui/select.cjs.map +1 -0
- package/dist/ui/select.js +184 -0
- package/dist/ui/select.js.map +1 -0
- package/dist/ui/separator.cjs +2 -0
- package/dist/ui/separator.cjs.map +1 -0
- package/dist/ui/separator.js +27 -0
- package/dist/ui/separator.js.map +1 -0
- package/dist/ui/sheet.cjs +2 -0
- package/dist/ui/sheet.cjs.map +1 -0
- package/dist/ui/sheet.js +137 -0
- package/dist/ui/sheet.js.map +1 -0
- package/dist/ui/sidebar.cjs +2 -0
- package/dist/ui/sidebar.cjs.map +1 -0
- package/dist/ui/sidebar.js +579 -0
- package/dist/ui/sidebar.js.map +1 -0
- package/dist/ui/skeleton.cjs +2 -0
- package/dist/ui/skeleton.cjs.map +1 -0
- package/dist/ui/skeleton.js +24 -0
- package/dist/ui/skeleton.js.map +1 -0
- package/dist/ui/slider.cjs +2 -0
- package/dist/ui/slider.cjs.map +1 -0
- package/dist/ui/slider.js +61 -0
- package/dist/ui/slider.js.map +1 -0
- package/dist/ui/sonner.cjs +2 -0
- package/dist/ui/sonner.cjs.map +1 -0
- package/dist/ui/sonner.js +52 -0
- package/dist/ui/sonner.js.map +1 -0
- package/dist/ui/spinner.cjs +2 -0
- package/dist/ui/spinner.cjs.map +1 -0
- package/dist/ui/spinner.js +39 -0
- package/dist/ui/spinner.js.map +1 -0
- package/dist/ui/switch.cjs +2 -0
- package/dist/ui/switch.cjs.map +1 -0
- package/dist/ui/switch.js +32 -0
- package/dist/ui/switch.js.map +1 -0
- package/dist/ui/table.cjs +2 -0
- package/dist/ui/table.cjs.map +1 -0
- package/dist/ui/table.js +153 -0
- package/dist/ui/table.js.map +1 -0
- package/dist/ui/tabs.cjs +2 -0
- package/dist/ui/tabs.cjs.map +1 -0
- package/dist/ui/tabs.js +92 -0
- package/dist/ui/tabs.js.map +1 -0
- package/dist/ui/tetra-molecule-icon.cjs +2 -0
- package/dist/ui/tetra-molecule-icon.cjs.map +1 -0
- package/dist/ui/tetra-molecule-icon.js +50 -0
- package/dist/ui/tetra-molecule-icon.js.map +1 -0
- package/dist/ui/tetrascience-icon.cjs +2 -0
- package/dist/ui/tetrascience-icon.cjs.map +1 -0
- package/dist/ui/tetrascience-icon.js +47 -0
- package/dist/ui/tetrascience-icon.js.map +1 -0
- package/dist/ui/textarea.cjs +2 -0
- package/dist/ui/textarea.cjs.map +1 -0
- package/dist/ui/textarea.js +19 -0
- package/dist/ui/textarea.js.map +1 -0
- package/dist/ui/toggle-group.cjs +2 -0
- package/dist/ui/toggle-group.cjs.map +1 -0
- package/dist/ui/toggle-group.js +81 -0
- package/dist/ui/toggle-group.js.map +1 -0
- package/dist/ui/toggle.cjs +2 -0
- package/dist/ui/toggle.cjs.map +1 -0
- package/dist/ui/toggle.js +44 -0
- package/dist/ui/toggle.js.map +1 -0
- package/dist/ui/tooltip.cjs +2 -0
- package/dist/ui/tooltip.cjs.map +1 -0
- package/dist/ui/tooltip.js +56 -0
- package/dist/ui/tooltip.js.map +1 -0
- package/dist/utils/colors.d.ts +50 -0
- package/package.json +113 -10
- package/dist/athena.d.ts +0 -167
- package/dist/components/ai/attachments.cjs +0 -2
- package/dist/components/ai/attachments.cjs.map +0 -1
- package/dist/components/ai/attachments.js +0 -224
- package/dist/components/ai/attachments.js.map +0 -1
- package/dist/components/ai/chain-of-thought.cjs +0 -2
- package/dist/components/ai/chain-of-thought.cjs.map +0 -1
- package/dist/components/ai/chain-of-thought.js +0 -145
- package/dist/components/ai/chain-of-thought.js.map +0 -1
- package/dist/components/ai/confirmation.cjs +0 -2
- package/dist/components/ai/confirmation.cjs.map +0 -1
- package/dist/components/ai/confirmation.js +0 -109
- package/dist/components/ai/confirmation.js.map +0 -1
- package/dist/components/ai/context.cjs +0 -2
- package/dist/components/ai/context.cjs.map +0 -1
- package/dist/components/ai/context.js +0 -267
- package/dist/components/ai/context.js.map +0 -1
- package/dist/components/ai/conversation.cjs +0 -4
- package/dist/components/ai/conversation.cjs.map +0 -1
- package/dist/components/ai/conversation.js +0 -108
- package/dist/components/ai/conversation.js.map +0 -1
- package/dist/components/ai/inline-citation.cjs +0 -2
- package/dist/components/ai/inline-citation.cjs.map +0 -1
- package/dist/components/ai/inline-citation.js +0 -182
- package/dist/components/ai/inline-citation.js.map +0 -1
- package/dist/components/ai/message.cjs +0 -2
- package/dist/components/ai/message.cjs.map +0 -1
- package/dist/components/ai/message.js +0 -237
- package/dist/components/ai/message.js.map +0 -1
- package/dist/components/ai/model-selector.cjs +0 -2
- package/dist/components/ai/model-selector.cjs.map +0 -1
- package/dist/components/ai/model-selector.js +0 -77
- package/dist/components/ai/model-selector.js.map +0 -1
- package/dist/components/ai/prompt-input.cjs +0 -2
- package/dist/components/ai/prompt-input.cjs.map +0 -1
- package/dist/components/ai/prompt-input.js +0 -776
- package/dist/components/ai/prompt-input.js.map +0 -1
- package/dist/components/ai/queue.cjs +0 -2
- package/dist/components/ai/queue.cjs.map +0 -1
- package/dist/components/ai/queue.js +0 -209
- package/dist/components/ai/queue.js.map +0 -1
- package/dist/components/ai/reasoning.cjs +0 -2
- package/dist/components/ai/reasoning.cjs.map +0 -1
- package/dist/components/ai/reasoning.js +0 -129
- package/dist/components/ai/reasoning.js.map +0 -1
- package/dist/components/ai/shimmer.cjs +0 -2
- package/dist/components/ai/shimmer.cjs.map +0 -1
- package/dist/components/ai/shimmer.js +0 -49
- package/dist/components/ai/shimmer.js.map +0 -1
- package/dist/components/ai/sources.cjs +0 -2
- package/dist/components/ai/sources.cjs.map +0 -1
- package/dist/components/ai/sources.js +0 -54
- package/dist/components/ai/sources.js.map +0 -1
- package/dist/components/ai/speech-input.cjs +0 -2
- package/dist/components/ai/speech-input.cjs.map +0 -1
- package/dist/components/ai/speech-input.js +0 -123
- package/dist/components/ai/speech-input.js.map +0 -1
- package/dist/components/ai/stream-status.cjs +0 -2
- package/dist/components/ai/stream-status.cjs.map +0 -1
- package/dist/components/ai/stream-status.js +0 -108
- package/dist/components/ai/stream-status.js.map +0 -1
- package/dist/components/ai/suggestion.cjs +0 -2
- package/dist/components/ai/suggestion.cjs.map +0 -1
- package/dist/components/ai/suggestion.js +0 -38
- package/dist/components/ai/suggestion.js.map +0 -1
- package/dist/components/ai/task.cjs +0 -2
- package/dist/components/ai/task.cjs.map +0 -1
- package/dist/components/ai/task.js +0 -101
- package/dist/components/ai/task.js.map +0 -1
- package/dist/components/ai/tool.cjs +0 -2
- package/dist/components/ai/tool.cjs.map +0 -1
- package/dist/components/ai/tool.js +0 -139
- package/dist/components/ai/tool.js.map +0 -1
- package/dist/components/composed/tdp-link.cjs +0 -2
- package/dist/components/composed/tdp-link.cjs.map +0 -1
- package/dist/components/composed/tdp-link.js.map +0 -1
- package/dist/components/composed/tdp-url.cjs.map +0 -1
- package/dist/components/composed/tdp-url.js.map +0 -1
- package/dist/components/ui/accordion.cjs +0 -2
- package/dist/components/ui/accordion.cjs.map +0 -1
- package/dist/components/ui/accordion.js +0 -83
- package/dist/components/ui/accordion.js.map +0 -1
- package/dist/components/ui/alert-dialog.cjs +0 -2
- package/dist/components/ui/alert-dialog.cjs.map +0 -1
- package/dist/components/ui/alert-dialog.js +0 -181
- package/dist/components/ui/alert-dialog.js.map +0 -1
- package/dist/components/ui/alert.cjs +0 -2
- package/dist/components/ui/alert.cjs.map +0 -1
- package/dist/components/ui/alert.js +0 -81
- package/dist/components/ui/alert.js.map +0 -1
- package/dist/components/ui/aspect-ratio.cjs.map +0 -1
- package/dist/components/ui/aspect-ratio.js.map +0 -1
- package/dist/components/ui/avatar.cjs +0 -2
- package/dist/components/ui/avatar.cjs.map +0 -1
- package/dist/components/ui/avatar.js +0 -107
- package/dist/components/ui/avatar.js.map +0 -1
- package/dist/components/ui/badge.cjs +0 -2
- package/dist/components/ui/badge.cjs.map +0 -1
- package/dist/components/ui/badge.js +0 -47
- package/dist/components/ui/badge.js.map +0 -1
- package/dist/components/ui/banner.cjs +0 -2
- package/dist/components/ui/banner.cjs.map +0 -1
- package/dist/components/ui/banner.js +0 -80
- package/dist/components/ui/banner.js.map +0 -1
- package/dist/components/ui/breadcrumb.cjs +0 -2
- package/dist/components/ui/breadcrumb.cjs.map +0 -1
- package/dist/components/ui/breadcrumb.js +0 -118
- package/dist/components/ui/breadcrumb.js.map +0 -1
- package/dist/components/ui/button-group.cjs +0 -2
- package/dist/components/ui/button-group.cjs.map +0 -1
- package/dist/components/ui/button-group.js +0 -77
- package/dist/components/ui/button-group.js.map +0 -1
- package/dist/components/ui/button.cjs +0 -2
- package/dist/components/ui/button.cjs.map +0 -1
- package/dist/components/ui/button.js +0 -57
- package/dist/components/ui/button.js.map +0 -1
- package/dist/components/ui/calendar.cjs +0 -2
- package/dist/components/ui/calendar.cjs.map +0 -1
- package/dist/components/ui/calendar.js +0 -174
- package/dist/components/ui/calendar.js.map +0 -1
- package/dist/components/ui/card.cjs +0 -2
- package/dist/components/ui/card.cjs.map +0 -1
- package/dist/components/ui/card.js +0 -102
- package/dist/components/ui/card.js.map +0 -1
- package/dist/components/ui/carousel.cjs +0 -2
- package/dist/components/ui/carousel.cjs.map +0 -1
- package/dist/components/ui/carousel.js +0 -179
- package/dist/components/ui/carousel.js.map +0 -1
- package/dist/components/ui/checkbox.cjs +0 -2
- package/dist/components/ui/checkbox.cjs.map +0 -1
- package/dist/components/ui/checkbox.js +0 -35
- package/dist/components/ui/checkbox.js.map +0 -1
- package/dist/components/ui/code-block.cjs +0 -4
- package/dist/components/ui/code-block.cjs.map +0 -1
- package/dist/components/ui/code-block.js +0 -324
- package/dist/components/ui/code-block.js.map +0 -1
- package/dist/components/ui/code-editor.cjs +0 -2
- package/dist/components/ui/code-editor.cjs.map +0 -1
- package/dist/components/ui/code-editor.js +0 -105
- package/dist/components/ui/code-editor.js.map +0 -1
- package/dist/components/ui/collapsible.cjs.map +0 -1
- package/dist/components/ui/collapsible.js.map +0 -1
- package/dist/components/ui/combobox.cjs +0 -2
- package/dist/components/ui/combobox.cjs.map +0 -1
- package/dist/components/ui/combobox.js +0 -285
- package/dist/components/ui/combobox.js.map +0 -1
- package/dist/components/ui/command.cjs +0 -2
- package/dist/components/ui/command.cjs.map +0 -1
- package/dist/components/ui/command.js +0 -178
- package/dist/components/ui/command.js.map +0 -1
- package/dist/components/ui/context-menu.cjs +0 -2
- package/dist/components/ui/context-menu.cjs.map +0 -1
- package/dist/components/ui/context-menu.js +0 -236
- package/dist/components/ui/context-menu.js.map +0 -1
- package/dist/components/ui/dialog.cjs +0 -2
- package/dist/components/ui/dialog.cjs.map +0 -1
- package/dist/components/ui/dialog.js +0 -165
- package/dist/components/ui/dialog.js.map +0 -1
- package/dist/components/ui/dropdown-menu.cjs +0 -2
- package/dist/components/ui/dropdown-menu.cjs.map +0 -1
- package/dist/components/ui/dropdown-menu.js +0 -260
- package/dist/components/ui/dropdown-menu.js.map +0 -1
- package/dist/components/ui/field.cjs +0 -2
- package/dist/components/ui/field.cjs.map +0 -1
- package/dist/components/ui/field.js +0 -210
- package/dist/components/ui/field.js.map +0 -1
- package/dist/components/ui/hover-card.cjs +0 -2
- package/dist/components/ui/hover-card.cjs.map +0 -1
- package/dist/components/ui/hover-card.js +0 -39
- package/dist/components/ui/hover-card.js.map +0 -1
- package/dist/components/ui/input-group.cjs +0 -2
- package/dist/components/ui/input-group.cjs.map +0 -1
- package/dist/components/ui/input-group.js +0 -145
- package/dist/components/ui/input-group.js.map +0 -1
- package/dist/components/ui/input.cjs +0 -2
- package/dist/components/ui/input.cjs.map +0 -1
- package/dist/components/ui/input.js +0 -20
- package/dist/components/ui/input.js.map +0 -1
- package/dist/components/ui/item.cjs +0 -2
- package/dist/components/ui/item.cjs.map +0 -1
- package/dist/components/ui/item.js +0 -199
- package/dist/components/ui/item.js.map +0 -1
- package/dist/components/ui/kbd.cjs +0 -2
- package/dist/components/ui/kbd.cjs.map +0 -1
- package/dist/components/ui/kbd.js +0 -30
- package/dist/components/ui/kbd.js.map +0 -1
- package/dist/components/ui/label.cjs +0 -2
- package/dist/components/ui/label.cjs.map +0 -1
- package/dist/components/ui/label.js +0 -23
- package/dist/components/ui/label.js.map +0 -1
- package/dist/components/ui/menubar.cjs +0 -2
- package/dist/components/ui/menubar.cjs.map +0 -1
- package/dist/components/ui/menubar.js +0 -256
- package/dist/components/ui/menubar.js.map +0 -1
- package/dist/components/ui/navigation-menu.cjs +0 -2
- package/dist/components/ui/navigation-menu.cjs.map +0 -1
- package/dist/components/ui/navigation-menu.js +0 -164
- package/dist/components/ui/navigation-menu.js.map +0 -1
- package/dist/components/ui/popover.cjs +0 -2
- package/dist/components/ui/popover.cjs.map +0 -1
- package/dist/components/ui/popover.js +0 -45
- package/dist/components/ui/popover.js.map +0 -1
- package/dist/components/ui/radio-group.cjs +0 -2
- package/dist/components/ui/radio-group.cjs.map +0 -1
- package/dist/components/ui/radio-group.js +0 -45
- package/dist/components/ui/radio-group.js.map +0 -1
- package/dist/components/ui/resizable.cjs +0 -2
- package/dist/components/ui/resizable.cjs.map +0 -1
- package/dist/components/ui/resizable.js +0 -58
- package/dist/components/ui/resizable.js.map +0 -1
- package/dist/components/ui/scroll-area.cjs +0 -2
- package/dist/components/ui/scroll-area.cjs.map +0 -1
- package/dist/components/ui/scroll-area.js +0 -61
- package/dist/components/ui/scroll-area.js.map +0 -1
- package/dist/components/ui/select.cjs +0 -2
- package/dist/components/ui/select.cjs.map +0 -1
- package/dist/components/ui/select.js +0 -184
- package/dist/components/ui/select.js.map +0 -1
- package/dist/components/ui/separator.cjs +0 -2
- package/dist/components/ui/separator.cjs.map +0 -1
- package/dist/components/ui/separator.js +0 -27
- package/dist/components/ui/separator.js.map +0 -1
- package/dist/components/ui/sheet.cjs +0 -2
- package/dist/components/ui/sheet.cjs.map +0 -1
- package/dist/components/ui/sheet.js +0 -137
- package/dist/components/ui/sheet.js.map +0 -1
- package/dist/components/ui/sidebar.cjs +0 -2
- package/dist/components/ui/sidebar.cjs.map +0 -1
- package/dist/components/ui/sidebar.js +0 -579
- package/dist/components/ui/sidebar.js.map +0 -1
- package/dist/components/ui/skeleton.cjs +0 -2
- package/dist/components/ui/skeleton.cjs.map +0 -1
- package/dist/components/ui/skeleton.js +0 -24
- package/dist/components/ui/skeleton.js.map +0 -1
- package/dist/components/ui/slider.cjs +0 -2
- package/dist/components/ui/slider.cjs.map +0 -1
- package/dist/components/ui/slider.js +0 -61
- package/dist/components/ui/slider.js.map +0 -1
- package/dist/components/ui/sonner.cjs +0 -2
- package/dist/components/ui/sonner.cjs.map +0 -1
- package/dist/components/ui/sonner.js +0 -52
- package/dist/components/ui/sonner.js.map +0 -1
- package/dist/components/ui/spinner.cjs +0 -2
- package/dist/components/ui/spinner.cjs.map +0 -1
- package/dist/components/ui/spinner.js +0 -39
- package/dist/components/ui/spinner.js.map +0 -1
- package/dist/components/ui/switch.cjs +0 -2
- package/dist/components/ui/switch.cjs.map +0 -1
- package/dist/components/ui/switch.js +0 -32
- package/dist/components/ui/switch.js.map +0 -1
- package/dist/components/ui/table.cjs +0 -2
- package/dist/components/ui/table.cjs.map +0 -1
- package/dist/components/ui/table.js +0 -153
- package/dist/components/ui/table.js.map +0 -1
- package/dist/components/ui/tabs.cjs +0 -2
- package/dist/components/ui/tabs.cjs.map +0 -1
- package/dist/components/ui/tabs.js +0 -92
- package/dist/components/ui/tabs.js.map +0 -1
- package/dist/components/ui/tetra-molecule-icon.cjs +0 -2
- package/dist/components/ui/tetra-molecule-icon.cjs.map +0 -1
- package/dist/components/ui/tetra-molecule-icon.js +0 -49
- package/dist/components/ui/tetra-molecule-icon.js.map +0 -1
- package/dist/components/ui/tetrascience-icon.cjs +0 -2
- package/dist/components/ui/tetrascience-icon.cjs.map +0 -1
- package/dist/components/ui/tetrascience-icon.js +0 -46
- package/dist/components/ui/tetrascience-icon.js.map +0 -1
- package/dist/components/ui/textarea.cjs +0 -2
- package/dist/components/ui/textarea.cjs.map +0 -1
- package/dist/components/ui/textarea.js +0 -19
- package/dist/components/ui/textarea.js.map +0 -1
- package/dist/components/ui/toggle-group.cjs +0 -2
- package/dist/components/ui/toggle-group.cjs.map +0 -1
- package/dist/components/ui/toggle-group.js +0 -81
- package/dist/components/ui/toggle-group.js.map +0 -1
- package/dist/components/ui/toggle.cjs +0 -2
- package/dist/components/ui/toggle.cjs.map +0 -1
- package/dist/components/ui/toggle.js +0 -44
- package/dist/components/ui/toggle.js.map +0 -1
- package/dist/components/ui/tooltip.cjs +0 -2
- package/dist/components/ui/tooltip.cjs.map +0 -1
- package/dist/components/ui/tooltip.js +0 -56
- package/dist/components/ui/tooltip.js.map +0 -1
- package/dist/databricks.d.ts +0 -129
- package/dist/providers/athena.d.ts +0 -9
- package/dist/providers/databricks.d.ts +0 -9
- package/dist/providers/snowflake.d.ts +0 -9
- package/dist/snowflake.d.ts +0 -125
- /package/dist/{components/composed → composed}/tdp-link.js +0 -0
- /package/dist/{components/composed → composed}/tdp-url.cjs +0 -0
- /package/dist/{components/composed → composed}/tdp-url.js +0 -0
- /package/dist/{components/ui → ui}/aspect-ratio.cjs +0 -0
- /package/dist/{components/ui → ui}/aspect-ratio.js +0 -0
- /package/dist/{components/ui → ui}/collapsible.cjs +0 -0
- /package/dist/{components/ui → ui}/collapsible.js +0 -0
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Plate format string constants for standard microplate configurations.
|
|
3
|
+
*/
|
|
4
|
+
export declare const PLATE_FORMAT_96: "96";
|
|
5
|
+
export declare const PLATE_FORMAT_384: "384";
|
|
6
|
+
export declare const PLATE_FORMAT_1536: "1536";
|
|
7
|
+
export declare const PLATE_FORMAT_CUSTOM: "custom";
|
|
8
|
+
/**
|
|
9
|
+
* Plate format presets for standard microplate configurations.
|
|
10
|
+
* - `"96"`: 8 rows × 12 columns (wells A1-H12)
|
|
11
|
+
* - `"384"`: 16 rows × 24 columns (wells A1-P24)
|
|
12
|
+
* - `"1536"`: 32 rows × 48 columns (wells A1-AF48)
|
|
13
|
+
* - `"custom"`: User-defined dimensions via `rows` and `columns` props
|
|
14
|
+
*/
|
|
15
|
+
export type PlateFormat = typeof PLATE_FORMAT_96 | typeof PLATE_FORMAT_384 | typeof PLATE_FORMAT_1536 | typeof PLATE_FORMAT_CUSTOM;
|
|
16
|
+
/**
|
|
17
|
+
* Visualization mode for the plate map.
|
|
18
|
+
* - `"heatmap"`: Displays quantitative values as a continuous color gradient.
|
|
19
|
+
* Use for OD readings, fluorescence intensity, or other numeric measurements.
|
|
20
|
+
* - `"categorical"`: Displays well types with discrete colors.
|
|
21
|
+
* Use for showing sample types, control positions, or experimental conditions.
|
|
22
|
+
*/
|
|
23
|
+
export type VisualizationMode = "heatmap" | "categorical";
|
|
24
|
+
/**
|
|
25
|
+
* Well type for categorical visualization.
|
|
26
|
+
* Common types include:
|
|
27
|
+
* - `"sample"`: Test samples (blue by default)
|
|
28
|
+
* - `"control"`: Positive/negative controls (red by default)
|
|
29
|
+
* - `"empty"`: Unused wells (light gray by default)
|
|
30
|
+
*
|
|
31
|
+
* Custom types can be added and colored via the `categoryColors` prop.
|
|
32
|
+
*/
|
|
33
|
+
export type WellType = "sample" | "control" | "empty" | string;
|
|
34
|
+
/**
|
|
35
|
+
* Color scale definition for the heatmap visualization mode.
|
|
36
|
+
*
|
|
37
|
+
* Can be:
|
|
38
|
+
* - A named Plotly colorscale (e.g., "Viridis", "Blues", "Hot")
|
|
39
|
+
* - An array of [position, color] tuples where position is 0-1
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* // Named colorscale
|
|
43
|
+
* colorScale="Viridis"
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* // Custom gradient
|
|
47
|
+
* colorScale={[
|
|
48
|
+
* [0, "#313695"], // Dark blue at min
|
|
49
|
+
* [0.5, "#ffffbf"], // Yellow at midpoint
|
|
50
|
+
* [1, "#a50026"], // Dark red at max
|
|
51
|
+
* ]}
|
|
52
|
+
*/
|
|
53
|
+
export type ColorScale = string | Array<[number, string]>;
|
|
54
|
+
/**
|
|
55
|
+
* Position for the legend display.
|
|
56
|
+
* - `"right"`: Legend appears to the right of the plate (default)
|
|
57
|
+
* - `"bottom"`: Legend appears below the plate
|
|
58
|
+
* - `"left"`: Legend appears to the left of the plate
|
|
59
|
+
* - `"top"`: Legend appears above the plate
|
|
60
|
+
*/
|
|
61
|
+
export type LegendPosition = "right" | "bottom" | "left" | "top";
|
|
62
|
+
/**
|
|
63
|
+
* Well data for individual wells.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* // Well with a single numeric value
|
|
67
|
+
* { wellId: "A1", values: { "Fluorescence": 1500 } }
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* // Well with multiple values (creates multiple layers)
|
|
71
|
+
* { wellId: "A1", values: { "Raw": 1500, "Normalized": 0.85, "Status": "positive" } }
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* // Well with tooltip-only data
|
|
75
|
+
* { wellId: "A1", values: { "Value": 500 }, tooltipData: { compound: "Drug A", concentration: "10µM" } }
|
|
76
|
+
*/
|
|
77
|
+
export interface WellData {
|
|
78
|
+
/**
|
|
79
|
+
* Well identifier in standard microplate notation.
|
|
80
|
+
* - Single letter + number for 96/384-well: "A1", "H12", "P24"
|
|
81
|
+
* - Double letter + number for 1536-well: "A1", "AA1", "AF48"
|
|
82
|
+
* Case-insensitive ("a1" and "A1" are equivalent).
|
|
83
|
+
*/
|
|
84
|
+
wellId: string;
|
|
85
|
+
/**
|
|
86
|
+
* Named values for the well. Each key can become a visualization layer.
|
|
87
|
+
*
|
|
88
|
+
* - Numeric values: Displayed using heatmap visualization
|
|
89
|
+
* - String values: Displayed using categorical visualization
|
|
90
|
+
* - null: Empty/no data for that property
|
|
91
|
+
*
|
|
92
|
+
* All values are shown in the tooltip regardless of which layer is active.
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* // Well with multiple measurement values (numeric)
|
|
96
|
+
* { wellId: "A1", values: { "Raw": 1500, "Normalized": 0.85, "Z-Score": 1.2 } }
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* // Well with categorical values (string)
|
|
100
|
+
* { wellId: "A1", values: { "Status": "positive", "QC": "pass" } }
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* // Mixed numeric and categorical
|
|
104
|
+
* { wellId: "A1", values: { "Fluorescence": 1500, "Status": "positive" } }
|
|
105
|
+
*/
|
|
106
|
+
values?: Record<string, string | number | null>;
|
|
107
|
+
/**
|
|
108
|
+
* Optional data for tooltip display only (not visualized as layers).
|
|
109
|
+
* Keys become labels, values are displayed.
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* { tooltipData: { sampleId: "S001", compound: "Drug A", concentration: "10µM" } }
|
|
113
|
+
*/
|
|
114
|
+
tooltipData?: Record<string, unknown>;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Configuration for auto-generated layers when using WellData with `values`.
|
|
118
|
+
*
|
|
119
|
+
* When wells have multiple values (via the `values` property), layers are
|
|
120
|
+
* auto-generated from the unique keys. Use LayerConfig to customize the
|
|
121
|
+
* display name, visualization mode, and color scale for each layer.
|
|
122
|
+
*
|
|
123
|
+
* @example
|
|
124
|
+
* // Configure layers for wells with { values: { "Raw": 100, "Normalized": 0.5 } }
|
|
125
|
+
* const layerConfigs: LayerConfig[] = [
|
|
126
|
+
* { id: "Raw", name: "Raw Data", colorScale: "Blues" },
|
|
127
|
+
* { id: "Normalized", name: "Normalized Values", valueMin: 0, valueMax: 1 },
|
|
128
|
+
* ];
|
|
129
|
+
*/
|
|
130
|
+
export interface LayerConfig {
|
|
131
|
+
/** Layer ID (must match a key in WellData.values) */
|
|
132
|
+
id: string;
|
|
133
|
+
/** Display name for the layer (defaults to id if not provided) */
|
|
134
|
+
name?: string;
|
|
135
|
+
/** Visualization mode for this layer */
|
|
136
|
+
visualizationMode?: VisualizationMode;
|
|
137
|
+
/** Color scale for this layer (for heatmap mode) */
|
|
138
|
+
colorScale?: ColorScale;
|
|
139
|
+
/** Minimum value for color scaling */
|
|
140
|
+
valueMin?: number;
|
|
141
|
+
/** Maximum value for color scaling */
|
|
142
|
+
valueMax?: number;
|
|
143
|
+
/** Value unit suffix for tooltips and colorbar (e.g., "RFU", "%"). A space is automatically added before the unit. */
|
|
144
|
+
valueUnit?: string;
|
|
145
|
+
/**
|
|
146
|
+
* Custom colors for categorical visualization mode.
|
|
147
|
+
* Keys are category values (strings from `values`), values are hex colors.
|
|
148
|
+
* Merged with DEFAULT_CATEGORY_COLORS.
|
|
149
|
+
*/
|
|
150
|
+
categoryColors?: Record<string, string>;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Configuration for legend styling and positioning.
|
|
154
|
+
*
|
|
155
|
+
* @example
|
|
156
|
+
* // Legend on the bottom with custom styling
|
|
157
|
+
* legendConfig={{
|
|
158
|
+
* position: "bottom",
|
|
159
|
+
* fontSize: 14,
|
|
160
|
+
* itemSpacing: 12,
|
|
161
|
+
* swatchSize: 20,
|
|
162
|
+
* }}
|
|
163
|
+
*/
|
|
164
|
+
export interface LegendConfig {
|
|
165
|
+
/**
|
|
166
|
+
* Position of the legend relative to the plate.
|
|
167
|
+
* @default "right"
|
|
168
|
+
*/
|
|
169
|
+
position?: LegendPosition;
|
|
170
|
+
/**
|
|
171
|
+
* Font size for legend labels in pixels.
|
|
172
|
+
* @default 12
|
|
173
|
+
*/
|
|
174
|
+
fontSize?: number;
|
|
175
|
+
/**
|
|
176
|
+
* Spacing between legend items in pixels.
|
|
177
|
+
* @default 4
|
|
178
|
+
*/
|
|
179
|
+
itemSpacing?: number;
|
|
180
|
+
/**
|
|
181
|
+
* Size of the color swatch in pixels.
|
|
182
|
+
* @default 16
|
|
183
|
+
*/
|
|
184
|
+
swatchSize?: number;
|
|
185
|
+
/**
|
|
186
|
+
* Title to display above the legend.
|
|
187
|
+
*/
|
|
188
|
+
title?: string;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* A region to highlight on the plate (e.g., controls, sample areas, empty wells)
|
|
192
|
+
*/
|
|
193
|
+
export interface PlateRegion {
|
|
194
|
+
/** Unique identifier for the region */
|
|
195
|
+
id: string;
|
|
196
|
+
/** Display name for the region (shown in legend) */
|
|
197
|
+
name: string;
|
|
198
|
+
/**
|
|
199
|
+
* Wells included in this region using range notation.
|
|
200
|
+
* Format: "StartWell:EndWell" (e.g., "A1:B6" for a rectangular block from A1 to B6)
|
|
201
|
+
*/
|
|
202
|
+
wells: string;
|
|
203
|
+
/** Border color for the region highlight */
|
|
204
|
+
borderColor?: string;
|
|
205
|
+
/** Border width in pixels (default: 2) */
|
|
206
|
+
borderWidth?: number;
|
|
207
|
+
/** Optional fill color with transparency (e.g., "rgba(255, 0, 0, 0.1)") */
|
|
208
|
+
fillColor?: string;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Props for PlateMap component
|
|
212
|
+
*/
|
|
213
|
+
export interface PlateMapProps {
|
|
214
|
+
/**
|
|
215
|
+
* Well data array as WellData objects with wellId and values.
|
|
216
|
+
*
|
|
217
|
+
* If wells have multiple values (via `values` property), layers are
|
|
218
|
+
* auto-generated for each unique key, enabling layer toggling.
|
|
219
|
+
*/
|
|
220
|
+
data?: WellData[];
|
|
221
|
+
/**
|
|
222
|
+
* Configuration for auto-generated layers when using WellData with `values`.
|
|
223
|
+
* Use this to customize display names, colors, and ranges for each layer.
|
|
224
|
+
* Only used when `data` contains wells with `values` property.
|
|
225
|
+
*/
|
|
226
|
+
layerConfigs?: LayerConfig[];
|
|
227
|
+
/**
|
|
228
|
+
* Initial layer ID to display when the component mounts.
|
|
229
|
+
* If not provided, defaults to the first layer.
|
|
230
|
+
*/
|
|
231
|
+
initialLayerId?: string;
|
|
232
|
+
/**
|
|
233
|
+
* Optional callback notified when the active layer changes.
|
|
234
|
+
* This is purely informational - the component manages layer state internally.
|
|
235
|
+
* Use this for logging, analytics, or syncing with external state.
|
|
236
|
+
*/
|
|
237
|
+
onLayerChange?: (layerId: string) => void;
|
|
238
|
+
/** Plate format preset (default: "96") */
|
|
239
|
+
plateFormat?: PlateFormat;
|
|
240
|
+
/** Number of rows for custom format (default: 8 for 96-well, 16 for 384-well) */
|
|
241
|
+
rows?: number;
|
|
242
|
+
/** Number of columns for custom format (default: 12 for 96-well, 24 for 384-well) */
|
|
243
|
+
columns?: number;
|
|
244
|
+
/**
|
|
245
|
+
* Visualization mode (default: "heatmap")
|
|
246
|
+
* - "heatmap": Display quantitative values with color gradient
|
|
247
|
+
* - "categorical": Display well types with discrete colors
|
|
248
|
+
*/
|
|
249
|
+
visualizationMode?: VisualizationMode;
|
|
250
|
+
/**
|
|
251
|
+
* Custom colors for categorical visualization mode.
|
|
252
|
+
* Keys are well types, values are hex colors.
|
|
253
|
+
* Merged with DEFAULT_CATEGORY_COLORS.
|
|
254
|
+
*/
|
|
255
|
+
categoryColors?: Record<string, string>;
|
|
256
|
+
/**
|
|
257
|
+
* Regions to highlight on the plate (e.g., controls, sample areas, empty wells).
|
|
258
|
+
* Each region can specify wells and styling for visual distinction.
|
|
259
|
+
*/
|
|
260
|
+
regions?: PlateRegion[];
|
|
261
|
+
/** Chart title */
|
|
262
|
+
title?: string;
|
|
263
|
+
/** X-axis title (e.g., "Columns") */
|
|
264
|
+
xTitle?: string;
|
|
265
|
+
/** Y-axis title (e.g., "Rows") */
|
|
266
|
+
yTitle?: string;
|
|
267
|
+
/** Custom x-axis labels (overrides auto-generated column numbers) */
|
|
268
|
+
xLabels?: string[] | number[];
|
|
269
|
+
/** Custom y-axis labels (overrides auto-generated row letters) */
|
|
270
|
+
yLabels?: string[] | number[];
|
|
271
|
+
/** Color scale for the heatmap (only used in heatmap mode) */
|
|
272
|
+
colorScale?: ColorScale;
|
|
273
|
+
/** Minimum value for color scale (auto-calculated if not provided) */
|
|
274
|
+
valueMin?: number;
|
|
275
|
+
/** Maximum value for color scale (auto-calculated if not provided) */
|
|
276
|
+
valueMax?: number;
|
|
277
|
+
/** Color for empty/null wells (default: "#f0f0f0") */
|
|
278
|
+
emptyWellColor?: string;
|
|
279
|
+
/** Show color bar legend for heatmap mode (default: true) */
|
|
280
|
+
showColorBar?: boolean;
|
|
281
|
+
/** Show categorical legend for categorical mode (default: true) */
|
|
282
|
+
showLegend?: boolean;
|
|
283
|
+
/**
|
|
284
|
+
* Configuration for legend positioning and styling.
|
|
285
|
+
* Applies to both heatmap colorbar and categorical legend.
|
|
286
|
+
*
|
|
287
|
+
* @example
|
|
288
|
+
* // Position legend at bottom with larger text
|
|
289
|
+
* legendConfig={{ position: "bottom", fontSize: 14 }}
|
|
290
|
+
*/
|
|
291
|
+
legendConfig?: LegendConfig;
|
|
292
|
+
/** Chart width in pixels (default: 800) */
|
|
293
|
+
width?: number;
|
|
294
|
+
/** Chart height in pixels (default: 500) */
|
|
295
|
+
height?: number;
|
|
296
|
+
/** Number of decimal places for values (default: 0) */
|
|
297
|
+
precision?: number;
|
|
298
|
+
/**
|
|
299
|
+
* Marker shape for wells (default: "circle")
|
|
300
|
+
* - "circle": Round markers, ideal for plate-based data
|
|
301
|
+
* - "square": Square markers, ideal for generic heatmaps
|
|
302
|
+
*/
|
|
303
|
+
markerShape?: "circle" | "square";
|
|
304
|
+
/**
|
|
305
|
+
* Callback when a well/cell is clicked.
|
|
306
|
+
* @param wellData - The full well data object including wellId, values, and tooltipData
|
|
307
|
+
*/
|
|
308
|
+
onWellClick?: (wellData: WellData) => void;
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* Result of converting WellData array to grids
|
|
312
|
+
*/
|
|
313
|
+
export interface WellDataGridResult {
|
|
314
|
+
/** 2D grid of numeric values for the active layer */
|
|
315
|
+
grid: (number | null)[][];
|
|
316
|
+
/** 2D grid of string values for categorical visualization */
|
|
317
|
+
categories: (string | null)[][];
|
|
318
|
+
/** Map of wellId -> all values (for tooltip display) */
|
|
319
|
+
allValues: Map<string, Record<string, string | number | null>>;
|
|
320
|
+
/** Map of wellId -> tooltipData */
|
|
321
|
+
tooltipData: Map<string, Record<string, unknown>>;
|
|
322
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { WellData, WellDataGridResult, LayerConfig, LegendPosition } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Generate row labels (A, B, C, ... for 96-well; A-P for 384-well; A-AF for 1536-well)
|
|
4
|
+
* For rows beyond Z (26), uses AA, AB, AC, etc.
|
|
5
|
+
*/
|
|
6
|
+
export declare function generateRowLabels(count: number): string[];
|
|
7
|
+
/**
|
|
8
|
+
* Generate column labels (1, 2, 3, ...)
|
|
9
|
+
*/
|
|
10
|
+
export declare function generateColumnLabels(count: number): number[];
|
|
11
|
+
/**
|
|
12
|
+
* Parse well ID to row and column indices
|
|
13
|
+
* @param wellId - Well identifier (e.g., "A1", "H12", "P24", "AA1", "AF48")
|
|
14
|
+
* @returns { row, col } zero-indexed
|
|
15
|
+
*/
|
|
16
|
+
export declare function parseWellId(wellId: string): {
|
|
17
|
+
row: number;
|
|
18
|
+
col: number;
|
|
19
|
+
} | null;
|
|
20
|
+
/**
|
|
21
|
+
* Convert WellData array to 2D grids for a specific layer
|
|
22
|
+
*/
|
|
23
|
+
export declare function wellDataToGrid(wells: WellData[], rows: number, columns: number, layerId?: string): WellDataGridResult;
|
|
24
|
+
/**
|
|
25
|
+
* Calculate min/max values from grid, ignoring nulls
|
|
26
|
+
*/
|
|
27
|
+
export declare function calculateValueRange(grid: (number | null)[][]): {
|
|
28
|
+
min: number;
|
|
29
|
+
max: number;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if WellData array contains multi-value wells (has `values` property)
|
|
33
|
+
*/
|
|
34
|
+
export declare function hasMultiValueWells(data: WellData[]): boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Extract unique layer IDs from WellData array with `values`
|
|
37
|
+
*/
|
|
38
|
+
export declare function extractLayerIds(data: WellData[]): string[];
|
|
39
|
+
/**
|
|
40
|
+
* Check if a layer contains string values (categorical) or numeric values (heatmap)
|
|
41
|
+
*/
|
|
42
|
+
export declare function isStringValueLayer(data: WellData[], layerId: string): boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Extract layer configs from multi-value WellData array.
|
|
45
|
+
* Creates a layer entry for each unique key found in the `values` objects.
|
|
46
|
+
* Merges with user-provided layerConfigs to apply custom settings.
|
|
47
|
+
*/
|
|
48
|
+
export declare function extractLayers(data: WellData[], layerConfigs?: LayerConfig[]): LayerConfig[];
|
|
49
|
+
/**
|
|
50
|
+
* Parse region wells from range notation like "A1:B6"
|
|
51
|
+
* Returns the bounding box coordinates for overlay rendering
|
|
52
|
+
*/
|
|
53
|
+
export declare function parseRegionWells(wells: string, rowLabels: readonly (string | number)[], colLabels: readonly (string | number)[]): {
|
|
54
|
+
minRow: number;
|
|
55
|
+
maxRow: number;
|
|
56
|
+
minCol: number;
|
|
57
|
+
maxCol: number;
|
|
58
|
+
} | null;
|
|
59
|
+
/** Options for building hover text for a well */
|
|
60
|
+
export interface BuildHoverTextOptions {
|
|
61
|
+
wellId: string;
|
|
62
|
+
value: number | null;
|
|
63
|
+
allValues: Record<string, number | string | null> | undefined;
|
|
64
|
+
tooltipExtra: Record<string, unknown> | undefined;
|
|
65
|
+
activeLayerId: string | undefined;
|
|
66
|
+
layerConfigMap: Map<string, LayerConfig>;
|
|
67
|
+
precision: number;
|
|
68
|
+
valueUnit: string;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Builds the hover text HTML for a single well.
|
|
72
|
+
* Shows all layer values with the active layer marked.
|
|
73
|
+
*/
|
|
74
|
+
export declare function buildWellHoverText({ wellId, value, allValues, tooltipExtra, activeLayerId, layerConfigMap, precision, valueUnit, }: BuildHoverTextOptions): string;
|
|
75
|
+
/** Colorbar configuration for a specific position */
|
|
76
|
+
export interface ColorbarConfig {
|
|
77
|
+
orientation?: "h" | "v";
|
|
78
|
+
thickness: number;
|
|
79
|
+
len: number;
|
|
80
|
+
outlinewidth: number;
|
|
81
|
+
ticksuffix: string;
|
|
82
|
+
x: number;
|
|
83
|
+
xanchor: "left" | "center" | "right";
|
|
84
|
+
y: number;
|
|
85
|
+
yanchor: "top" | "middle" | "bottom";
|
|
86
|
+
title?: {
|
|
87
|
+
text: string;
|
|
88
|
+
side: "top" | "bottom" | "right";
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Builds the colorbar configuration based on legend position.
|
|
93
|
+
*/
|
|
94
|
+
export declare function buildColorbarConfig(position: LegendPosition, valueUnit: string, legendTitle?: string): ColorbarConfig;
|
|
95
|
+
/** Margin configuration for the plot */
|
|
96
|
+
export interface PlotMargins {
|
|
97
|
+
l: number;
|
|
98
|
+
r: number;
|
|
99
|
+
b: number;
|
|
100
|
+
t: number;
|
|
101
|
+
pad: number;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Builds the margin configuration based on legend position and title presence.
|
|
105
|
+
*/
|
|
106
|
+
export declare function buildPlotMargins(position: LegendPosition, hasTitle: boolean, hasYTitle: boolean): PlotMargins;
|
|
107
|
+
/**
|
|
108
|
+
* Calculates the title X position based on legend position.
|
|
109
|
+
*/
|
|
110
|
+
export declare function calculateTitleX(position: LegendPosition): number;
|
|
111
|
+
/**
|
|
112
|
+
* Calculates the X-axis domain based on legend position.
|
|
113
|
+
*/
|
|
114
|
+
export declare function calculateAxisDomain(position: LegendPosition): [number, number];
|
|
115
|
+
/** Data arrays for scatter plot */
|
|
116
|
+
export interface ScatterPlotData {
|
|
117
|
+
xData: number[];
|
|
118
|
+
yData: string[];
|
|
119
|
+
colorData: number[];
|
|
120
|
+
textData: string[];
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Flattens 2D grid data into arrays for scatter plot rendering.
|
|
124
|
+
*/
|
|
125
|
+
export declare function flattenGridData(plotZ: (number | null)[][], rowLabels: (string | number)[], hoverText: string[][], rows: number, columns: number, plotZMin: number): ScatterPlotData;
|
|
126
|
+
/** Marker size calculation result */
|
|
127
|
+
export interface MarkerSizeResult {
|
|
128
|
+
markerSize: number;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Calculates the marker size based on plot dimensions and marker shape.
|
|
132
|
+
*/
|
|
133
|
+
export declare function calculateMarkerSize(width: number, height: number, rows: number, columns: number, markerShape: "circle" | "square", hasTitle: boolean, hasYTitle: boolean): number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const X=require("react/jsx-runtime"),n=require("react"),Q=require("../ChartTooltip/ChartTooltip.cjs"),b=require("../plotly-loader.cjs"),V=require("../../../hooks/use-element-size.cjs"),f=require("../../../hooks/use-plotly-theme.cjs"),Z=require("../../../lib/utils.cjs"),$=require("../../../utils/colors.cjs"),D=["circle","square","diamond","triangle-up","triangle-down","star"],ee=({dataSeries:x,width:F,height:z,xRange:p,yRange:g,xTitle:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const X=require("react/jsx-runtime"),n=require("react"),Q=require("../ChartTooltip/ChartTooltip.cjs"),b=require("../plotly-loader.cjs"),V=require("../../../hooks/use-element-size.cjs"),f=require("../../../hooks/use-plotly-theme.cjs"),Z=require("../../../lib/utils.cjs"),$=require("../../../utils/colors.cjs"),D=["circle","square","diamond","triangle-up","triangle-down","star"],ee=({dataSeries:x,width:F,height:z,xRange:p,yRange:g,xTitle:_,yTitle:C,title:P="Scatter Plot",variant:E="default",markerSize:I=10})=>{const h=n.useRef(null),o=f.usePlotlyTheme(),{bindTooltip:R,tooltipElement:W}=Q.useChartTooltip({xLabel:_,yLabel:C}),[U,S]=V.useElementSize(),s=F??S.width,a=z??S.height,Y=s>0&&a>0,G=F===void 0,J=z===void 0,w=n.useRef({width:s,height:a});w.current={width:s,height:a};const T=n.useRef(!1),v=n.useRef({width:0,height:0}),k=n.useMemo(()=>Array.isArray(x)?x:[x],[x]),{xMin:q,xMax:O,yMin:H,yMax:N}=n.useMemo(()=>{let t=1/0,e=-1/0,l=1/0,r=-1/0;k.forEach(c=>{c.x.forEach(u=>{t=Math.min(t,u),e=Math.max(e,u)}),c.y.forEach(u=>{l=Math.min(l,u),r=Math.max(r,u)})});const m=(e-t)*.1,i=(r-l)*.1;return{xMin:t-m,xMax:e+m,yMin:l-i,yMax:r+i}},[k]),d=n.useMemo(()=>p||[q,O],[p,q,O]),y=n.useMemo(()=>g||[H,N],[g,H,N]),A=n.useMemo(()=>{const t=d[1]-d[0];let e=Math.pow(10,Math.floor(Math.log10(t)));t/e>10&&(e=e*2),t/e<4&&(e=e/2);const l=[];let r=Math.ceil(d[0]/e)*e;for(;r<=d[1];)l.push(r),r+=e;return l},[d]),B=n.useMemo(()=>{const t=y[1]-y[0];let e=Math.pow(10,Math.floor(Math.log10(t)));t/e>10&&(e=e*2),t/e<4&&(e=e/2);const l=[];let r=Math.ceil(y[0]/e)*e;for(;r<=y[1];)l.push(r),r+=e;return l},[y]),L=n.useMemo(()=>({tickcolor:o.tickColor,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:o.textColor,family:f.CHART_FONT_FAMILY,weight:400},linecolor:o.lineColor,linewidth:1,position:0,zeroline:!1}),[o]);return n.useEffect(()=>{if(!h.current||!Y)return;const t=k.map((i,c)=>({x:i.x,y:i.y,type:"scatter",mode:"markers",name:i.name,marker:{color:$.seriesColor(c,i.color),size:i.size??I,symbol:i.symbol??(E==="stacked"?D[c%D.length]:"circle"),line:{color:o.paperBg,width:1}},hoverinfo:"none"})),e={title:{text:P,font:{size:32,family:f.CHART_FONT_FAMILY,color:o.textColor}},width:w.current.width,height:w.current.height,margin:{l:80,r:30,b:96,t:60,pad:10},paper_bgcolor:o.paperBg,plot_bgcolor:o.plotBg,font:{family:f.CHART_FONT_FAMILY},dragmode:!1,xaxis:{title:{text:_,font:{size:16,color:o.textSecondary,family:f.CHART_FONT_FAMILY,weight:400},standoff:32},gridcolor:o.gridColor,range:p,autorange:!p,tickmode:"array",tickvals:A,ticktext:A.map(String),showgrid:!0,automargin:!0,...L},yaxis:{title:{text:C,font:{size:16,color:o.textSecondary,family:f.CHART_FONT_FAMILY,weight:400},standoff:30},gridcolor:o.gridColor,range:g,autorange:!g,tickmode:"array",tickvals:B,showgrid:!0,automargin:!0,...L},legend:{x:.5,y:0,xanchor:"center",yanchor:"bottom",yref:"container",orientation:"h",font:{size:16,color:o.legendColor,family:f.CHART_FONT_FAMILY,weight:500}},showlegend:!0,hovermode:"closest"},l={responsive:!1,displayModeBar:!1,displaylogo:!1};let r=!1,m=null;return b.loadPlotly().then(i=>{if(r||!h.current)return;i.newPlot(h.current,t,e,l),R(h.current);const c=h.current;m=c,T.current=!0,v.current={...w.current};const u=c,j={color:o.spikeColor,width:2};u.on("plotly_hover",K=>{const M=K.points[0];M&&i.relayout(c,{shapes:[{type:"line",xref:"x",yref:"paper",x0:M.x,x1:M.x,y0:0,y1:1,line:j,layer:"below"},{type:"line",xref:"paper",yref:"y",x0:0,x1:1,y0:M.y,y1:M.y,line:j,layer:"below"}]})}),u.on("plotly_unhover",()=>{i.relayout(c,{shapes:[]})})}),()=>{r=!0,m&&(b.getLoadedPlotly().purge(m),T.current=!1)}},[k,Y,p,g,_,C,P,E,I,d,y,A,B,L,o,R]),n.useEffect(()=>{const t=h.current;!t||!T.current||s<=0||a<=0||v.current.width===s&&v.current.height===a||(v.current={width:s,height:a},b.getLoadedPlotly().relayout(t,{width:s,height:a}).catch(()=>{}))},[s,a]),X.jsxs("div",{ref:U,className:Z.cn("relative",G&&"w-full",J&&"h-full"),children:[X.jsx("div",{ref:h,style:{width:"100%",height:"100%"}}),W]})};exports.ScatterPlot=ee;
|
|
2
2
|
//# sourceMappingURL=ScatterPlot.cjs.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type MarkerSymbol = "circle" | "square" | "diamond" | "triangle-up" | "triangle-down" | "star";
|
|
3
|
+
interface ScatterPlotDataSeries {
|
|
4
|
+
x: number[];
|
|
5
|
+
y: number[];
|
|
6
|
+
name: string;
|
|
7
|
+
/** Optional color override (auto-assigned from CHART_COLORS if not provided) */
|
|
8
|
+
color?: string;
|
|
9
|
+
/** Optional marker symbol override (auto-assigned in the `stacked` variant) */
|
|
10
|
+
symbol?: MarkerSymbol;
|
|
11
|
+
/** Optional per-series marker size override (falls back to `markerSize`) */
|
|
12
|
+
size?: number;
|
|
13
|
+
}
|
|
14
|
+
type ScatterPlotVariant = "default" | "stacked";
|
|
15
|
+
interface ScatterPlotProps {
|
|
16
|
+
/** One or more data series to plot */
|
|
17
|
+
dataSeries: ScatterPlotDataSeries | ScatterPlotDataSeries[];
|
|
18
|
+
/**
|
|
19
|
+
* Fixed width in pixels. When omitted, the chart fills its container and
|
|
20
|
+
* tracks the container's width via a `ResizeObserver`.
|
|
21
|
+
*/
|
|
22
|
+
width?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Fixed height in pixels. When omitted, the chart fills its container and
|
|
25
|
+
* tracks the container's height via a `ResizeObserver`.
|
|
26
|
+
*/
|
|
27
|
+
height?: number;
|
|
28
|
+
xRange?: [number, number];
|
|
29
|
+
yRange?: [number, number];
|
|
30
|
+
xTitle?: string;
|
|
31
|
+
yTitle?: string;
|
|
32
|
+
title?: string;
|
|
33
|
+
/**
|
|
34
|
+
* `default` renders every series as circles; `stacked` cycles through
|
|
35
|
+
* distinct marker symbols per series so overlapping series stay legible.
|
|
36
|
+
*/
|
|
37
|
+
variant?: ScatterPlotVariant;
|
|
38
|
+
/** Default marker size in pixels (per-series `size` takes precedence) */
|
|
39
|
+
markerSize?: number;
|
|
40
|
+
}
|
|
41
|
+
declare const ScatterPlot: React.FC<ScatterPlotProps>;
|
|
42
|
+
export { ScatterPlot };
|
|
43
|
+
export type { MarkerSymbol, ScatterPlotDataSeries, ScatterPlotProps, ScatterPlotVariant, };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ScatterPlotInteractiveProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* ScatterPlotInteractive component for visualizing scatter plot data with advanced interactions.
|
|
5
|
+
*
|
|
6
|
+
* **Features:**
|
|
7
|
+
* - Data-driven and static styling (color, shape, size)
|
|
8
|
+
* - Interactive selection (click, box, lasso)
|
|
9
|
+
* - Keyboard modifiers for click-selection modes (Shift/Ctrl)
|
|
10
|
+
* - Customizable tooltips with rich content support
|
|
11
|
+
* - Axis customization (ranges, log/linear scales)
|
|
12
|
+
* - Performance optimizations for large datasets
|
|
13
|
+
* - Selection propagation via callbacks
|
|
14
|
+
*
|
|
15
|
+
* **Selection Modes (click selection only):**
|
|
16
|
+
* - Default click: Replace selection
|
|
17
|
+
* - Shift + click: Add to selection
|
|
18
|
+
* - Ctrl/Cmd + click: Remove from selection
|
|
19
|
+
* - Shift + Ctrl + click: Toggle selection
|
|
20
|
+
*
|
|
21
|
+
* Box/lasso selection always replaces the current selection because
|
|
22
|
+
* Plotly does not expose the original keyboard event for drag operations.
|
|
23
|
+
*/
|
|
24
|
+
declare const ScatterPlotInteractive: React.FC<ScatterPlotInteractiveProps>;
|
|
25
|
+
export { ScatterPlotInteractive };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default colors for the scatter plot. Background, grid, and axis colors
|
|
3
|
+
* come from the active theme via `usePlotlyTheme`.
|
|
4
|
+
*/
|
|
5
|
+
export declare const COLORS: {
|
|
6
|
+
primary: string;
|
|
7
|
+
selected: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Default color scale for continuous color mapping (CVD-friendly diverging ramp)
|
|
11
|
+
*/
|
|
12
|
+
export declare const DEFAULT_COLOR_SCALE: Array<[number, string]>;
|
|
13
|
+
/**
|
|
14
|
+
* Default category colors (cycle through these)
|
|
15
|
+
*/
|
|
16
|
+
export declare const DEFAULT_CATEGORY_COLORS: readonly [string, string, string, string, string, string, string, string, string, string, string, string];
|
|
17
|
+
/**
|
|
18
|
+
* Default sizes
|
|
19
|
+
*/
|
|
20
|
+
export declare const DEFAULT_MARKER_SIZE = 8;
|
|
21
|
+
export declare const DEFAULT_SIZE_RANGE: [number, number];
|
|
22
|
+
/**
|
|
23
|
+
* Default downsampling configuration
|
|
24
|
+
*/
|
|
25
|
+
export declare const DEFAULT_MAX_POINTS = 5000;
|
|
26
|
+
/**
|
|
27
|
+
* Constants for plot layout
|
|
28
|
+
*/
|
|
29
|
+
export declare const PLOT_CONSTANTS: {
|
|
30
|
+
MARGIN_LEFT: number;
|
|
31
|
+
MARGIN_RIGHT: number;
|
|
32
|
+
MARGIN_TOP: number;
|
|
33
|
+
MARGIN_BOTTOM: number;
|
|
34
|
+
TITLE_FONT_SIZE: number;
|
|
35
|
+
AXIS_TITLE_FONT_SIZE: number;
|
|
36
|
+
AXIS_TICK_FONT_SIZE: number;
|
|
37
|
+
LEGEND_FONT_SIZE: number;
|
|
38
|
+
FONT_FAMILY: string;
|
|
39
|
+
GRID_WIDTH: number;
|
|
40
|
+
AXIS_LINE_WIDTH: number;
|
|
41
|
+
AUTO_RANGE_PADDING: number;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Selection mode keyboard modifiers
|
|
45
|
+
*/
|
|
46
|
+
export declare const SELECTION_MODIFIERS: {
|
|
47
|
+
readonly ADD: "shiftKey";
|
|
48
|
+
readonly REMOVE: "ctrlKey";
|
|
49
|
+
readonly TOGGLE: "both";
|
|
50
|
+
};
|