@tetrascience-npm/tetrascience-react-ui 0.7.0-beta.108.1 → 0.7.0-beta.128.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 +2 -2
- package/dist/components/ai/chain-of-thought.cjs +1 -1
- package/dist/components/ai/chain-of-thought.cjs.map +1 -1
- package/dist/components/ai/chain-of-thought.js +1 -1
- package/dist/components/ai/chain-of-thought.js.map +1 -1
- package/dist/components/ai/confirmation.cjs +1 -1
- package/dist/components/ai/confirmation.cjs.map +1 -1
- package/dist/components/ai/confirmation.js +1 -1
- package/dist/components/ai/confirmation.js.map +1 -1
- package/dist/components/ai/context.cjs +1 -1
- package/dist/components/ai/context.cjs.map +1 -1
- package/dist/components/ai/context.js +36 -35
- package/dist/components/ai/context.js.map +1 -1
- package/dist/components/ai/message.cjs +1 -1
- package/dist/components/ai/message.cjs.map +1 -1
- package/dist/components/ai/message.js +68 -68
- package/dist/components/ai/message.js.map +1 -1
- package/dist/components/ai/prompt-input.cjs +1 -1
- package/dist/components/ai/prompt-input.cjs.map +1 -1
- package/dist/components/ai/prompt-input.js +4 -2
- package/dist/components/ai/prompt-input.js.map +1 -1
- package/dist/components/ai/queue.cjs +1 -1
- package/dist/components/ai/queue.cjs.map +1 -1
- package/dist/components/ai/queue.js +9 -9
- package/dist/components/ai/queue.js.map +1 -1
- package/dist/components/ai/reasoning.cjs +1 -1
- package/dist/components/ai/reasoning.cjs.map +1 -1
- package/dist/components/ai/reasoning.js +67 -67
- package/dist/components/ai/reasoning.js.map +1 -1
- package/dist/components/ai/stream-status.cjs +1 -1
- package/dist/components/ai/stream-status.cjs.map +1 -1
- package/dist/components/ai/stream-status.js +41 -39
- package/dist/components/ai/stream-status.js.map +1 -1
- package/dist/components/ai/streamdown-code-plugin.cjs +2 -0
- package/dist/components/ai/streamdown-code-plugin.cjs.map +1 -0
- package/dist/components/ai/streamdown-code-plugin.js +42 -0
- package/dist/components/ai/streamdown-code-plugin.js.map +1 -0
- package/dist/components/ai/streamdown-plugins.cjs +2 -0
- package/dist/components/ai/streamdown-plugins.cjs.map +1 -0
- package/dist/components/ai/streamdown-plugins.js +14 -0
- package/dist/components/ai/streamdown-plugins.js.map +1 -0
- package/dist/components/ai/task.cjs +1 -1
- package/dist/components/ai/task.cjs.map +1 -1
- package/dist/components/ai/task.js +18 -11
- package/dist/components/ai/task.js.map +1 -1
- package/dist/components/ai/tool.cjs +1 -1
- package/dist/components/ai/tool.cjs.map +1 -1
- package/dist/components/ai/tool.js +51 -55
- package/dist/components/ai/tool.js.map +1 -1
- package/dist/components/ai/use-streamdown-plugins.cjs +2 -0
- package/dist/components/ai/use-streamdown-plugins.cjs.map +1 -0
- package/dist/components/ai/use-streamdown-plugins.js +25 -0
- package/dist/components/ai/use-streamdown-plugins.js.map +1 -0
- package/dist/components/charts/AreaPlot/AreaPlot.cjs +2 -0
- package/dist/components/charts/AreaPlot/AreaPlot.cjs.map +1 -0
- package/dist/components/charts/AreaPlot/AreaPlot.js +270 -0
- package/dist/components/charts/AreaPlot/AreaPlot.js.map +1 -0
- package/dist/components/charts/BarChart/BarChart.cjs +2 -0
- package/dist/components/charts/BarChart/BarChart.cjs.map +1 -0
- package/dist/components/charts/BarChart/BarChart.js +219 -0
- package/dist/components/charts/BarChart/BarChart.js.map +1 -0
- package/dist/components/charts/BoxPlot/BoxPlot.cjs +2 -0
- package/dist/components/charts/BoxPlot/BoxPlot.cjs.map +1 -0
- package/dist/components/charts/{Boxplot/Boxplot.js → BoxPlot/BoxPlot.js} +78 -79
- package/dist/components/charts/BoxPlot/BoxPlot.js.map +1 -0
- package/dist/components/charts/ChartTooltip/ChartTooltip.cjs +1 -1
- package/dist/components/charts/ChartTooltip/ChartTooltip.cjs.map +1 -1
- package/dist/components/charts/ChartTooltip/ChartTooltip.js +22 -22
- package/dist/components/charts/ChartTooltip/ChartTooltip.js.map +1 -1
- package/dist/components/charts/Chromatogram/Chromatogram.cjs +1 -1
- package/dist/components/charts/Chromatogram/Chromatogram.cjs.map +1 -1
- package/dist/components/charts/Chromatogram/Chromatogram.js +232 -170
- package/dist/components/charts/Chromatogram/Chromatogram.js.map +1 -1
- package/dist/components/charts/Chromatogram/annotations.cjs +2 -0
- package/dist/components/charts/Chromatogram/annotations.cjs.map +1 -0
- package/dist/components/charts/Chromatogram/annotations.js +137 -0
- package/dist/components/charts/Chromatogram/annotations.js.map +1 -0
- package/dist/components/charts/Chromatogram/boundaryMarkers.cjs.map +1 -0
- package/dist/components/charts/Chromatogram/boundaryMarkers.js.map +1 -0
- package/dist/components/charts/Chromatogram/constants.cjs.map +1 -0
- package/dist/components/charts/Chromatogram/constants.js.map +1 -0
- package/dist/components/charts/Chromatogram/dataProcessing.cjs.map +1 -0
- package/dist/components/charts/Chromatogram/dataProcessing.js.map +1 -0
- package/dist/components/charts/Chromatogram/peakDetection.cjs.map +1 -0
- package/dist/components/charts/Chromatogram/peakDetection.js.map +1 -0
- package/dist/components/charts/Chromatogram/plotBuilder.cjs +2 -0
- package/dist/components/charts/Chromatogram/plotBuilder.cjs.map +1 -0
- package/dist/components/charts/Chromatogram/plotBuilder.js +216 -0
- package/dist/components/charts/Chromatogram/plotBuilder.js.map +1 -0
- package/dist/components/charts/Chromatogram/regionOverlays.cjs.map +1 -0
- package/dist/components/charts/Chromatogram/regionOverlays.js.map +1 -0
- package/dist/components/charts/Electropherogram/Electropherogram.cjs +2 -0
- package/dist/components/charts/Electropherogram/Electropherogram.cjs.map +1 -0
- package/dist/components/charts/Electropherogram/Electropherogram.js +180 -0
- package/dist/components/charts/Electropherogram/Electropherogram.js.map +1 -0
- package/dist/components/charts/Histogram/Histogram.cjs +1 -1
- package/dist/components/charts/Histogram/Histogram.cjs.map +1 -1
- package/dist/components/charts/Histogram/Histogram.js +107 -108
- package/dist/components/charts/Histogram/Histogram.js.map +1 -1
- package/dist/components/charts/LinePlot/LinePlot.cjs +2 -0
- package/dist/components/charts/LinePlot/LinePlot.cjs.map +1 -0
- package/dist/components/charts/LinePlot/LinePlot.js +224 -0
- package/dist/components/charts/LinePlot/LinePlot.js.map +1 -0
- package/dist/components/charts/PieChart/PieChart.cjs +1 -1
- package/dist/components/charts/PieChart/PieChart.cjs.map +1 -1
- package/dist/components/charts/PieChart/PieChart.js +62 -61
- package/dist/components/charts/PieChart/PieChart.js.map +1 -1
- 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.js +246 -242
- package/dist/components/charts/PlateMap/PlateMap.js.map +1 -1
- package/dist/components/charts/ScatterPlot/ScatterPlot.cjs +2 -0
- package/dist/components/charts/ScatterPlot/ScatterPlot.cjs.map +1 -0
- package/dist/components/charts/ScatterPlot/ScatterPlot.js +252 -0
- package/dist/components/charts/ScatterPlot/ScatterPlot.js.map +1 -0
- package/dist/components/charts/ScatterPlotInteractive/ScatterPlotInteractive.cjs +2 -0
- package/dist/components/charts/ScatterPlotInteractive/ScatterPlotInteractive.cjs.map +1 -0
- package/dist/components/charts/ScatterPlotInteractive/ScatterPlotInteractive.js +215 -0
- package/dist/components/charts/ScatterPlotInteractive/ScatterPlotInteractive.js.map +1 -0
- package/dist/components/charts/ScatterPlotInteractive/constants.cjs +2 -0
- package/dist/components/charts/ScatterPlotInteractive/constants.cjs.map +1 -0
- package/dist/components/charts/ScatterPlotInteractive/constants.js +38 -0
- package/dist/components/charts/ScatterPlotInteractive/constants.js.map +1 -0
- package/dist/components/charts/ScatterPlotInteractive/utils.cjs +2 -0
- package/dist/components/charts/ScatterPlotInteractive/utils.cjs.map +1 -0
- package/dist/components/charts/ScatterPlotInteractive/utils.js +261 -0
- package/dist/components/charts/ScatterPlotInteractive/utils.js.map +1 -0
- package/dist/components/charts/StackedChromatogram/StackedChromatogram.cjs +2 -0
- package/dist/components/charts/StackedChromatogram/StackedChromatogram.cjs.map +1 -0
- package/dist/components/charts/StackedChromatogram/StackedChromatogram.js +40 -0
- package/dist/components/charts/StackedChromatogram/StackedChromatogram.js.map +1 -0
- package/dist/components/charts/StackedChromatogram/transforms.cjs.map +1 -0
- package/dist/components/charts/StackedChromatogram/transforms.js.map +1 -0
- package/dist/components/charts/plotly-loader.cjs +2 -0
- package/dist/components/charts/plotly-loader.cjs.map +1 -0
- package/dist/components/charts/plotly-loader.js +22 -0
- package/dist/components/charts/plotly-loader.js.map +1 -0
- package/dist/components/composed/AssistantLayout/AssistantLayout.cjs +2 -0
- package/dist/components/composed/AssistantLayout/AssistantLayout.cjs.map +1 -0
- package/dist/components/composed/AssistantLayout/AssistantLayout.js +142 -0
- package/dist/components/composed/AssistantLayout/AssistantLayout.js.map +1 -0
- package/dist/components/composed/AssistantLayout/dockLayout.cjs +2 -0
- package/dist/components/composed/AssistantLayout/dockLayout.cjs.map +1 -0
- package/dist/components/composed/AssistantLayout/dockLayout.js +10 -0
- package/dist/components/composed/AssistantLayout/dockLayout.js.map +1 -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.js +23 -23
- package/dist/components/composed/Chat/Chat.js.map +1 -1
- 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.js +33 -29
- package/dist/components/composed/ConfirmDialog/ConfirmDialog.js.map +1 -1
- package/dist/components/composed/DataAppShell/CollapseButton.cjs +2 -0
- package/dist/components/composed/DataAppShell/CollapseButton.cjs.map +1 -0
- package/dist/components/composed/DataAppShell/CollapseButton.js +42 -0
- package/dist/components/composed/DataAppShell/CollapseButton.js.map +1 -0
- 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.js +349 -313
- package/dist/components/composed/DataAppShell/DataAppShell.js.map +1 -1
- package/dist/components/composed/DataAppShell/PrimaryNav.cjs +2 -0
- package/dist/components/composed/DataAppShell/PrimaryNav.cjs.map +1 -0
- package/dist/components/composed/DataAppShell/PrimaryNav.js +268 -0
- package/dist/components/composed/DataAppShell/PrimaryNav.js.map +1 -0
- package/dist/components/composed/DataAppShell/RightPanel.cjs +2 -0
- package/dist/components/composed/DataAppShell/RightPanel.cjs.map +1 -0
- package/dist/components/composed/DataAppShell/RightPanel.js +282 -0
- package/dist/components/composed/DataAppShell/RightPanel.js.map +1 -0
- package/dist/components/composed/DataAppShell/SecondaryNav.cjs +2 -0
- package/dist/components/composed/DataAppShell/SecondaryNav.cjs.map +1 -0
- package/dist/components/composed/DataAppShell/SecondaryNav.js +364 -0
- package/dist/components/composed/DataAppShell/SecondaryNav.js.map +1 -0
- package/dist/components/composed/DataAppShell/ShellContext.cjs +2 -0
- package/dist/components/composed/DataAppShell/ShellContext.cjs.map +1 -0
- package/dist/components/composed/DataAppShell/ShellContext.js +23 -0
- package/dist/components/composed/DataAppShell/ShellContext.js.map +1 -0
- package/dist/components/composed/MoleculeStructure/MoleculeStructure.cjs +2 -0
- package/dist/components/composed/MoleculeStructure/MoleculeStructure.cjs.map +1 -0
- package/dist/components/composed/MoleculeStructure/MoleculeStructure.js +87 -0
- package/dist/components/composed/MoleculeStructure/MoleculeStructure.js.map +1 -0
- package/dist/components/composed/MoleculeStructure/rdkit-loader.cjs +2 -0
- package/dist/components/composed/MoleculeStructure/rdkit-loader.cjs.map +1 -0
- package/dist/components/composed/MoleculeStructure/rdkit-loader.js +89 -0
- package/dist/components/composed/MoleculeStructure/rdkit-loader.js.map +1 -0
- package/dist/components/composed/MoleculeStructure/use-rdkit.cjs +2 -0
- package/dist/components/composed/MoleculeStructure/use-rdkit.cjs.map +1 -0
- package/dist/components/composed/MoleculeStructure/use-rdkit.js +19 -0
- package/dist/components/composed/MoleculeStructure/use-rdkit.js.map +1 -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.js +17 -17
- package/dist/components/composed/PlateMapEditor/ManifestFilterPopover.js.map +1 -1
- 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.js +33 -33
- package/dist/components/composed/PlateMapEditor/PlateMapActionsMenu.js.map +1 -1
- 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.js +7 -7
- package/dist/components/composed/PlateMapEditor/PlateMapPlateSelector.js.map +1 -1
- package/dist/components/composed/PlateMapEditor/PlatePaintGrid.cjs +1 -1
- package/dist/components/composed/PlateMapEditor/PlatePaintGrid.cjs.map +1 -1
- package/dist/components/composed/PlateMapEditor/PlatePaintGrid.js +1 -1
- package/dist/components/composed/PlateMapEditor/PlatePaintGrid.js.map +1 -1
- 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.js +24 -12
- package/dist/components/composed/PlateMapEditor/WellLegend.js.map +1 -1
- 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.js +1 -1
- package/dist/components/composed/PlateMapEditor/WellManifestTable.js.map +1 -1
- 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.js +3 -3
- package/dist/components/composed/TdpSearch/components/DefaultFilters.js.map +1 -1
- package/dist/components/composed/TopBar/TopBar.cjs +2 -0
- package/dist/components/composed/TopBar/TopBar.cjs.map +1 -0
- package/dist/components/composed/TopBar/TopBar.js +56 -0
- package/dist/components/composed/TopBar/TopBar.js.map +1 -0
- package/dist/components/composed/UserMenu/UserMenu.cjs +2 -0
- package/dist/components/composed/UserMenu/UserMenu.cjs.map +1 -0
- package/dist/components/composed/UserMenu/UserMenu.js +99 -0
- package/dist/components/composed/UserMenu/UserMenu.js.map +1 -0
- package/dist/components/composed/tdp-link.cjs +1 -1
- package/dist/components/composed/tdp-link.cjs.map +1 -1
- package/dist/components/composed/tdp-link.js +5 -5
- package/dist/components/composed/tdp-link.js.map +1 -1
- package/dist/components/ui/alert.cjs +1 -1
- package/dist/components/ui/alert.cjs.map +1 -1
- package/dist/components/ui/alert.js +12 -12
- package/dist/components/ui/alert.js.map +1 -1
- package/dist/components/ui/badge.cjs +1 -1
- package/dist/components/ui/badge.cjs.map +1 -1
- package/dist/components/ui/badge.js +14 -14
- package/dist/components/ui/badge.js.map +1 -1
- package/dist/components/ui/banner.cjs +1 -1
- package/dist/components/ui/banner.cjs.map +1 -1
- package/dist/components/ui/banner.js +17 -17
- package/dist/components/ui/banner.js.map +1 -1
- package/dist/components/ui/button.cjs +1 -1
- package/dist/components/ui/button.cjs.map +1 -1
- package/dist/components/ui/button.js +16 -16
- package/dist/components/ui/button.js.map +1 -1
- package/dist/components/ui/calendar.cjs +1 -1
- package/dist/components/ui/calendar.cjs.map +1 -1
- package/dist/components/ui/calendar.js +3 -3
- package/dist/components/ui/calendar.js.map +1 -1
- package/dist/components/ui/code-block.cjs +3 -3
- package/dist/components/ui/code-block.cjs.map +1 -1
- package/dist/components/ui/code-block.js +136 -118
- package/dist/components/ui/code-block.js.map +1 -1
- package/dist/components/ui/code-editor.cjs +1 -1
- package/dist/components/ui/code-editor.cjs.map +1 -1
- package/dist/components/ui/code-editor.js +14 -12
- package/dist/components/ui/code-editor.js.map +1 -1
- package/dist/components/ui/combobox.cjs +1 -1
- package/dist/components/ui/combobox.cjs.map +1 -1
- package/dist/components/ui/combobox.js +33 -29
- package/dist/components/ui/combobox.js.map +1 -1
- package/dist/components/ui/command.cjs +1 -1
- package/dist/components/ui/command.cjs.map +1 -1
- package/dist/components/ui/command.js +81 -77
- package/dist/components/ui/command.js.map +1 -1
- package/dist/components/ui/context-menu.cjs +1 -1
- package/dist/components/ui/context-menu.cjs.map +1 -1
- package/dist/components/ui/context-menu.js +13 -13
- package/dist/components/ui/context-menu.js.map +1 -1
- 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.js +70 -62
- package/dist/components/ui/data-table/data-table-column-toggle.js.map +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.js +24 -23
- package/dist/components/ui/data-table/data-table-filter.js.map +1 -1
- 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.js +17 -16
- package/dist/components/ui/data-table/data-table-group.js.map +1 -1
- 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.js +15 -15
- package/dist/components/ui/data-table/data-table-pagination.js.map +1 -1
- 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.js +191 -190
- package/dist/components/ui/data-table/data-table.js.map +1 -1
- package/dist/components/ui/dialog.cjs +1 -1
- package/dist/components/ui/dialog.cjs.map +1 -1
- package/dist/components/ui/dialog.js +1 -1
- package/dist/components/ui/dialog.js.map +1 -1
- package/dist/components/ui/dropdown-menu.cjs +1 -1
- package/dist/components/ui/dropdown-menu.cjs.map +1 -1
- package/dist/components/ui/dropdown-menu.js +12 -4
- package/dist/components/ui/dropdown-menu.js.map +1 -1
- package/dist/components/ui/hover-card.cjs +1 -1
- package/dist/components/ui/hover-card.cjs.map +1 -1
- package/dist/components/ui/hover-card.js +3 -3
- package/dist/components/ui/hover-card.js.map +1 -1
- package/dist/components/ui/item.cjs +1 -1
- package/dist/components/ui/item.cjs.map +1 -1
- package/dist/components/ui/item.js +44 -36
- package/dist/components/ui/item.js.map +1 -1
- package/dist/components/ui/menubar.cjs +1 -1
- package/dist/components/ui/menubar.cjs.map +1 -1
- package/dist/components/ui/menubar.js +2 -2
- package/dist/components/ui/menubar.js.map +1 -1
- package/dist/components/ui/navigation-menu.cjs +1 -1
- package/dist/components/ui/navigation-menu.cjs.map +1 -1
- package/dist/components/ui/navigation-menu.js +1 -1
- package/dist/components/ui/navigation-menu.js.map +1 -1
- package/dist/components/ui/popover.cjs +1 -1
- package/dist/components/ui/popover.cjs.map +1 -1
- package/dist/components/ui/popover.js +1 -1
- package/dist/components/ui/popover.js.map +1 -1
- package/dist/components/ui/scroll-area.cjs +1 -1
- package/dist/components/ui/scroll-area.cjs.map +1 -1
- package/dist/components/ui/scroll-area.js +1 -0
- package/dist/components/ui/scroll-area.js.map +1 -1
- package/dist/components/ui/select.cjs +1 -1
- package/dist/components/ui/select.cjs.map +1 -1
- package/dist/components/ui/select.js +1 -1
- package/dist/components/ui/select.js.map +1 -1
- package/dist/components/ui/sheet.cjs +1 -1
- package/dist/components/ui/sheet.cjs.map +1 -1
- package/dist/components/ui/sheet.js +5 -5
- package/dist/components/ui/sheet.js.map +1 -1
- package/dist/components/ui/sidebar.cjs +1 -1
- package/dist/components/ui/sidebar.cjs.map +1 -1
- package/dist/components/ui/sidebar.js +2 -2
- package/dist/components/ui/sidebar.js.map +1 -1
- package/dist/components/ui/slider.cjs +1 -1
- package/dist/components/ui/slider.cjs.map +1 -1
- package/dist/components/ui/slider.js +10 -9
- package/dist/components/ui/slider.js.map +1 -1
- package/dist/components/ui/sonner.cjs +1 -1
- package/dist/components/ui/sonner.cjs.map +1 -1
- package/dist/components/ui/sonner.js +25 -10
- package/dist/components/ui/sonner.js.map +1 -1
- package/dist/components/ui/table.cjs +1 -1
- package/dist/components/ui/table.cjs.map +1 -1
- package/dist/components/ui/table.js +1 -0
- package/dist/components/ui/table.js.map +1 -1
- package/dist/components/ui/tabs.cjs +1 -1
- package/dist/components/ui/tabs.cjs.map +1 -1
- package/dist/components/ui/tabs.js +18 -18
- package/dist/components/ui/tabs.js.map +1 -1
- package/dist/components/ui/tetra-molecule-icon.cjs +2 -0
- package/dist/components/ui/tetra-molecule-icon.cjs.map +1 -0
- package/dist/components/ui/tetra-molecule-icon.js +49 -0
- package/dist/components/ui/tetra-molecule-icon.js.map +1 -0
- package/dist/components/ui/toggle-group.cjs +1 -1
- package/dist/components/ui/toggle-group.cjs.map +1 -1
- package/dist/components/ui/toggle-group.js +35 -31
- package/dist/components/ui/toggle-group.js.map +1 -1
- package/dist/hooks/use-plotly-theme.cjs +1 -1
- package/dist/hooks/use-plotly-theme.cjs.map +1 -1
- package/dist/hooks/use-plotly-theme.js +4 -3
- package/dist/hooks/use-plotly-theme.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1073 -136
- package/dist/index.js +698 -647
- package/dist/index.js.map +1 -1
- package/dist/index.tailwind.css +1 -1
- package/dist/lib/shiki.cjs +2 -0
- package/dist/lib/shiki.cjs.map +1 -0
- package/dist/lib/shiki.js +72 -0
- package/dist/lib/shiki.js.map +1 -0
- package/package.json +23 -12
- package/dist/components/charts/AreaGraph/AreaGraph.cjs +0 -2
- package/dist/components/charts/AreaGraph/AreaGraph.cjs.map +0 -1
- package/dist/components/charts/AreaGraph/AreaGraph.js +0 -271
- package/dist/components/charts/AreaGraph/AreaGraph.js.map +0 -1
- package/dist/components/charts/BarGraph/BarGraph.cjs +0 -2
- package/dist/components/charts/BarGraph/BarGraph.cjs.map +0 -1
- package/dist/components/charts/BarGraph/BarGraph.js +0 -220
- package/dist/components/charts/BarGraph/BarGraph.js.map +0 -1
- package/dist/components/charts/Boxplot/Boxplot.cjs +0 -2
- package/dist/components/charts/Boxplot/Boxplot.cjs.map +0 -1
- package/dist/components/charts/Boxplot/Boxplot.js.map +0 -1
- package/dist/components/charts/ChromatogramChart/ChromatogramChart.cjs +0 -2
- package/dist/components/charts/ChromatogramChart/ChromatogramChart.cjs.map +0 -1
- package/dist/components/charts/ChromatogramChart/ChromatogramChart.js +0 -241
- package/dist/components/charts/ChromatogramChart/ChromatogramChart.js.map +0 -1
- package/dist/components/charts/ChromatogramChart/annotations.cjs +0 -2
- package/dist/components/charts/ChromatogramChart/annotations.cjs.map +0 -1
- package/dist/components/charts/ChromatogramChart/annotations.js +0 -136
- package/dist/components/charts/ChromatogramChart/annotations.js.map +0 -1
- package/dist/components/charts/ChromatogramChart/boundaryMarkers.cjs.map +0 -1
- package/dist/components/charts/ChromatogramChart/boundaryMarkers.js.map +0 -1
- package/dist/components/charts/ChromatogramChart/constants.cjs.map +0 -1
- package/dist/components/charts/ChromatogramChart/constants.js.map +0 -1
- package/dist/components/charts/ChromatogramChart/dataProcessing.cjs.map +0 -1
- package/dist/components/charts/ChromatogramChart/dataProcessing.js.map +0 -1
- package/dist/components/charts/ChromatogramChart/peakDetection.cjs.map +0 -1
- package/dist/components/charts/ChromatogramChart/peakDetection.js.map +0 -1
- package/dist/components/charts/ChromatogramChart/plotBuilder.cjs +0 -2
- package/dist/components/charts/ChromatogramChart/plotBuilder.cjs.map +0 -1
- package/dist/components/charts/ChromatogramChart/plotBuilder.js +0 -207
- package/dist/components/charts/ChromatogramChart/plotBuilder.js.map +0 -1
- package/dist/components/charts/ChromatogramChart/regionOverlays.cjs.map +0 -1
- package/dist/components/charts/ChromatogramChart/regionOverlays.js.map +0 -1
- package/dist/components/charts/DotPlot/DotPlot.cjs +0 -2
- package/dist/components/charts/DotPlot/DotPlot.cjs.map +0 -1
- package/dist/components/charts/DotPlot/DotPlot.js +0 -208
- package/dist/components/charts/DotPlot/DotPlot.js.map +0 -1
- package/dist/components/charts/Heatmap/Heatmap.cjs +0 -2
- package/dist/components/charts/Heatmap/Heatmap.cjs.map +0 -1
- package/dist/components/charts/Heatmap/Heatmap.js +0 -67
- package/dist/components/charts/Heatmap/Heatmap.js.map +0 -1
- package/dist/components/charts/LineGraph/LineGraph.cjs +0 -2
- package/dist/components/charts/LineGraph/LineGraph.cjs.map +0 -1
- package/dist/components/charts/LineGraph/LineGraph.js +0 -225
- package/dist/components/charts/LineGraph/LineGraph.js.map +0 -1
- package/dist/components/charts/ScatterGraph/ScatterGraph.cjs +0 -2
- package/dist/components/charts/ScatterGraph/ScatterGraph.cjs.map +0 -1
- package/dist/components/charts/ScatterGraph/ScatterGraph.js +0 -234
- package/dist/components/charts/ScatterGraph/ScatterGraph.js.map +0 -1
- package/dist/components/charts/StackedChromatogramChart/StackedChromatogramChart.cjs +0 -2
- package/dist/components/charts/StackedChromatogramChart/StackedChromatogramChart.cjs.map +0 -1
- package/dist/components/charts/StackedChromatogramChart/StackedChromatogramChart.js +0 -40
- package/dist/components/charts/StackedChromatogramChart/StackedChromatogramChart.js.map +0 -1
- package/dist/components/charts/StackedChromatogramChart/transforms.cjs.map +0 -1
- package/dist/components/charts/StackedChromatogramChart/transforms.js.map +0 -1
- /package/dist/components/charts/{ChromatogramChart → Chromatogram}/boundaryMarkers.cjs +0 -0
- /package/dist/components/charts/{ChromatogramChart → Chromatogram}/boundaryMarkers.js +0 -0
- /package/dist/components/charts/{ChromatogramChart → Chromatogram}/constants.cjs +0 -0
- /package/dist/components/charts/{ChromatogramChart → Chromatogram}/constants.js +0 -0
- /package/dist/components/charts/{ChromatogramChart → Chromatogram}/dataProcessing.cjs +0 -0
- /package/dist/components/charts/{ChromatogramChart → Chromatogram}/dataProcessing.js +0 -0
- /package/dist/components/charts/{ChromatogramChart → Chromatogram}/peakDetection.cjs +0 -0
- /package/dist/components/charts/{ChromatogramChart → Chromatogram}/peakDetection.js +0 -0
- /package/dist/components/charts/{ChromatogramChart → Chromatogram}/regionOverlays.cjs +0 -0
- /package/dist/components/charts/{ChromatogramChart → Chromatogram}/regionOverlays.js +0 -0
- /package/dist/components/charts/{StackedChromatogramChart → StackedChromatogram}/transforms.cjs +0 -0
- /package/dist/components/charts/{StackedChromatogramChart → StackedChromatogram}/transforms.js +0 -0
|
@@ -1,369 +1,405 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
defaultVariants: { active: !1, compact: !0 }
|
|
26
|
-
}
|
|
27
|
-
);
|
|
28
|
-
function j({
|
|
29
|
-
appName: i,
|
|
30
|
-
appFullName: d,
|
|
31
|
-
appIcon: m,
|
|
32
|
-
version: f,
|
|
33
|
-
navGroups: t,
|
|
34
|
-
onAppNameClick: o,
|
|
35
|
-
backToPlatformPath: c,
|
|
36
|
-
onBackToPlatform: b,
|
|
37
|
-
userMenu: h,
|
|
38
|
-
compact: l,
|
|
39
|
-
onAfterNavClick: v
|
|
1
|
+
import { jsx as e, jsxs as i, Fragment as ee } from "react/jsx-runtime";
|
|
2
|
+
import { ChevronRight as ae, Menu as re, ArrowLeft as j } from "lucide-react";
|
|
3
|
+
import * as m from "react";
|
|
4
|
+
import { ShellCollapseButton as I } from "./CollapseButton.js";
|
|
5
|
+
import { DataAppShellPrimaryNav as N } from "./PrimaryNav.js";
|
|
6
|
+
import { DataAppShellProvider as te } from "./ShellContext.js";
|
|
7
|
+
import { TDPLink as ne } from "../tdp-link.js";
|
|
8
|
+
import { TopBar as le } from "../TopBar/TopBar.js";
|
|
9
|
+
import { Breadcrumb as ie, BreadcrumbList as se, BreadcrumbSeparator as oe, BreadcrumbItem as de, BreadcrumbPage as ce, BreadcrumbLink as me } from "../../ui/breadcrumb.js";
|
|
10
|
+
import { Button as G } from "../../ui/button.js";
|
|
11
|
+
import { DropdownMenu as ue, DropdownMenuTrigger as pe, DropdownMenuContent as fe, DropdownMenuItem as O, DropdownMenuSeparator as he } from "../../ui/dropdown-menu.js";
|
|
12
|
+
import { Sheet as be, SheetContent as ge, SheetTitle as ve, SheetDescription as xe, SheetTrigger as we } from "../../ui/sheet.js";
|
|
13
|
+
import { cn as M } from "../../../lib/utils.js";
|
|
14
|
+
function k({
|
|
15
|
+
appName: t,
|
|
16
|
+
appFullName: a,
|
|
17
|
+
appIcon: r,
|
|
18
|
+
version: n,
|
|
19
|
+
onAppNameClick: l,
|
|
20
|
+
backToPlatformPath: s,
|
|
21
|
+
onBackToPlatform: u,
|
|
22
|
+
compact: d,
|
|
23
|
+
menuSide: c = "right"
|
|
40
24
|
}) {
|
|
41
|
-
return /* @__PURE__ */
|
|
42
|
-
/* @__PURE__ */ e(
|
|
43
|
-
"
|
|
25
|
+
return /* @__PURE__ */ i(ue, { modal: !1, children: [
|
|
26
|
+
/* @__PURE__ */ e(pe, { asChild: !0, children: /* @__PURE__ */ i(
|
|
27
|
+
"button",
|
|
44
28
|
{
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
29
|
+
type: "button",
|
|
30
|
+
className: M(
|
|
31
|
+
"cursor-pointer bg-transparent border-none p-0",
|
|
32
|
+
!d && "flex items-center gap-3 w-full text-left"
|
|
48
33
|
),
|
|
49
|
-
children:
|
|
50
|
-
/* @__PURE__ */ e(K, { asChild: !0, children: /* @__PURE__ */ r(
|
|
51
|
-
"button",
|
|
52
|
-
{
|
|
53
|
-
type: "button",
|
|
54
|
-
className: a(
|
|
55
|
-
"cursor-pointer bg-transparent border-none p-0",
|
|
56
|
-
!l && "flex items-center gap-3 w-full text-left"
|
|
57
|
-
),
|
|
58
|
-
children: [
|
|
59
|
-
/* @__PURE__ */ e(
|
|
60
|
-
"span",
|
|
61
|
-
{
|
|
62
|
-
className: a(
|
|
63
|
-
"flex items-center justify-center rounded-lg bg-sidebar-accent border border-sidebar-border font-bold text-foreground shrink-0 w-8 h-8 text-[10px]"
|
|
64
|
-
),
|
|
65
|
-
children: m ?? i
|
|
66
|
-
}
|
|
67
|
-
),
|
|
68
|
-
!l && /* @__PURE__ */ e("span", { className: "text-sm font-semibold text-foreground truncate leading-snug", children: d ?? i })
|
|
69
|
-
]
|
|
70
|
-
}
|
|
71
|
-
) }),
|
|
72
|
-
/* @__PURE__ */ r(q, { side: "right", align: "start", className: "min-w-[220px]", children: [
|
|
73
|
-
/* @__PURE__ */ r(
|
|
74
|
-
"div",
|
|
75
|
-
{
|
|
76
|
-
className: "flex items-center gap-3 px-3 py-2.5 cursor-pointer",
|
|
77
|
-
onClick: o,
|
|
78
|
-
role: "button",
|
|
79
|
-
tabIndex: 0,
|
|
80
|
-
onKeyDown: (s) => {
|
|
81
|
-
s.key === "Enter" && o?.();
|
|
82
|
-
},
|
|
83
|
-
children: [
|
|
84
|
-
/* @__PURE__ */ e("div", { className: "w-8 h-8 rounded-lg bg-sidebar-accent border border-sidebar-border flex items-center justify-center shrink-0", children: /* @__PURE__ */ e("span", { className: "text-[10px] font-bold text-foreground", children: m ?? i }) }),
|
|
85
|
-
/* @__PURE__ */ r("div", { className: "flex flex-col min-w-0", children: [
|
|
86
|
-
/* @__PURE__ */ e("span", { className: "text-sm font-semibold text-foreground truncate", children: d ?? i }),
|
|
87
|
-
f && /* @__PURE__ */ e("span", { className: "text-[10px] text-muted-foreground/70 font-mono leading-none mt-0.5", children: f })
|
|
88
|
-
] })
|
|
89
|
-
]
|
|
90
|
-
}
|
|
91
|
-
),
|
|
92
|
-
/* @__PURE__ */ e(G, {}),
|
|
93
|
-
/* @__PURE__ */ e(J, { className: "gap-2.5 p-0", asChild: !0, children: c ? /* @__PURE__ */ r(
|
|
94
|
-
z,
|
|
95
|
-
{
|
|
96
|
-
path: c,
|
|
97
|
-
navigationOptions: { newTab: !1 },
|
|
98
|
-
className: "flex items-center gap-2.5 w-full px-2 py-1.5 !no-underline hover:!no-underline",
|
|
99
|
-
children: [
|
|
100
|
-
/* @__PURE__ */ e(k, { className: "w-4 h-4 text-muted-foreground" }),
|
|
101
|
-
"Back to TDP Platform"
|
|
102
|
-
]
|
|
103
|
-
}
|
|
104
|
-
) : /* @__PURE__ */ r(
|
|
105
|
-
"button",
|
|
106
|
-
{
|
|
107
|
-
type: "button",
|
|
108
|
-
className: "flex items-center gap-2.5 w-full px-2 py-1.5 bg-transparent border-none cursor-pointer",
|
|
109
|
-
onClick: b,
|
|
110
|
-
children: [
|
|
111
|
-
/* @__PURE__ */ e(k, { className: "w-4 h-4 text-muted-foreground" }),
|
|
112
|
-
"Back to TDP Platform"
|
|
113
|
-
]
|
|
114
|
-
}
|
|
115
|
-
) })
|
|
116
|
-
] })
|
|
117
|
-
] })
|
|
118
|
-
}
|
|
119
|
-
),
|
|
120
|
-
l && /* @__PURE__ */ e("div", { className: "shrink-0 mx-auto w-8 border-t border-sidebar-border" }),
|
|
121
|
-
/* @__PURE__ */ e(
|
|
122
|
-
"div",
|
|
123
|
-
{
|
|
124
|
-
className: a(
|
|
125
|
-
"flex-1 min-h-0",
|
|
126
|
-
l ? "flex flex-col items-center gap-1 px-2 pt-3 overflow-y-auto" : "flex flex-col py-2 overflow-y-auto"
|
|
127
|
-
),
|
|
128
|
-
children: t.map((s, u) => /* @__PURE__ */ r(w.Fragment, { children: [
|
|
129
|
-
u > 0 && /* @__PURE__ */ e(
|
|
130
|
-
"div",
|
|
131
|
-
{
|
|
132
|
-
className: a(
|
|
133
|
-
"border-t border-sidebar-border",
|
|
134
|
-
l ? "w-8 my-2" : "mx-3 my-1"
|
|
135
|
-
)
|
|
136
|
-
}
|
|
137
|
-
),
|
|
138
|
-
!l && s.label && /* @__PURE__ */ e("span", { className: "px-3 py-1 text-[10px] uppercase tracking-widest text-muted-foreground/60 font-semibold", children: s.label }),
|
|
34
|
+
children: [
|
|
139
35
|
/* @__PURE__ */ e(
|
|
140
|
-
"
|
|
36
|
+
"span",
|
|
141
37
|
{
|
|
142
|
-
className:
|
|
143
|
-
"flex
|
|
144
|
-
l ? "items-center gap-3 w-full" : "gap-0.5"
|
|
38
|
+
className: M(
|
|
39
|
+
"flex items-center justify-center rounded-lg bg-sidebar-accent border border-sidebar-border font-bold text-foreground shrink-0 w-8 h-8 text-[10px]"
|
|
145
40
|
),
|
|
146
|
-
children:
|
|
147
|
-
const p = n.icon, x = p ? /* @__PURE__ */ e(
|
|
148
|
-
p,
|
|
149
|
-
{
|
|
150
|
-
className: a(
|
|
151
|
-
"w-4 h-4",
|
|
152
|
-
n.isActive ? "text-primary" : "text-muted-foreground"
|
|
153
|
-
)
|
|
154
|
-
}
|
|
155
|
-
) : /* @__PURE__ */ e(
|
|
156
|
-
"div",
|
|
157
|
-
{
|
|
158
|
-
className: a(
|
|
159
|
-
"w-2 h-2 rounded-full",
|
|
160
|
-
n.isActive ? "bg-primary" : "bg-muted-foreground/40"
|
|
161
|
-
)
|
|
162
|
-
}
|
|
163
|
-
), g = () => {
|
|
164
|
-
n.onClick?.(), v?.();
|
|
165
|
-
};
|
|
166
|
-
return l ? /* @__PURE__ */ r(D, { children: [
|
|
167
|
-
/* @__PURE__ */ e(S, { asChild: !0, children: /* @__PURE__ */ e(
|
|
168
|
-
"button",
|
|
169
|
-
{
|
|
170
|
-
type: "button",
|
|
171
|
-
"aria-label": n.label,
|
|
172
|
-
className: "flex flex-col items-center cursor-pointer bg-transparent border-none p-0 w-full",
|
|
173
|
-
onClick: g,
|
|
174
|
-
children: /* @__PURE__ */ e("div", { className: a(C({ active: n.isActive ?? !1, compact: !0 })), children: x })
|
|
175
|
-
}
|
|
176
|
-
) }),
|
|
177
|
-
/* @__PURE__ */ e(A, { side: "right", children: n.label })
|
|
178
|
-
] }, n.id) : /* @__PURE__ */ r(
|
|
179
|
-
"button",
|
|
180
|
-
{
|
|
181
|
-
type: "button",
|
|
182
|
-
className: a(
|
|
183
|
-
"flex items-center gap-3 w-full px-3 py-2 text-sm cursor-pointer bg-transparent border-none text-left transition-colors duration-150 rounded-md mx-1",
|
|
184
|
-
n.isActive ? "bg-sidebar-accent text-sidebar-foreground font-medium" : "text-muted-foreground hover:bg-sidebar-accent/60 hover:text-foreground"
|
|
185
|
-
),
|
|
186
|
-
onClick: g,
|
|
187
|
-
children: [
|
|
188
|
-
/* @__PURE__ */ e("div", { className: a(C({ active: n.isActive ?? !1, compact: !1 })), children: x }),
|
|
189
|
-
/* @__PURE__ */ e("span", { children: n.label })
|
|
190
|
-
]
|
|
191
|
-
},
|
|
192
|
-
n.id
|
|
193
|
-
);
|
|
194
|
-
})
|
|
41
|
+
children: r ?? t
|
|
195
42
|
}
|
|
196
|
-
)
|
|
197
|
-
|
|
43
|
+
),
|
|
44
|
+
!d && /* @__PURE__ */ e("span", { className: "text-sm font-semibold text-foreground truncate leading-snug", children: a ?? t })
|
|
45
|
+
]
|
|
198
46
|
}
|
|
199
|
-
),
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
"div",
|
|
47
|
+
) }),
|
|
48
|
+
/* @__PURE__ */ i(fe, { side: c, align: "start", className: "min-w-[220px]", children: [
|
|
49
|
+
/* @__PURE__ */ i(
|
|
50
|
+
O,
|
|
204
51
|
{
|
|
205
|
-
className:
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
52
|
+
className: "gap-3 px-3 py-2.5",
|
|
53
|
+
onSelect: () => l?.(),
|
|
54
|
+
children: [
|
|
55
|
+
/* @__PURE__ */ e("div", { className: "w-8 h-8 rounded-lg bg-sidebar-accent border border-sidebar-border flex items-center justify-center shrink-0", children: /* @__PURE__ */ e("span", { className: "text-[10px] font-bold text-foreground", children: r ?? t }) }),
|
|
56
|
+
/* @__PURE__ */ i("div", { className: "flex flex-col min-w-0", children: [
|
|
57
|
+
/* @__PURE__ */ e("span", { className: "text-sm font-semibold text-foreground truncate", children: a ?? t }),
|
|
58
|
+
n && /* @__PURE__ */ e("span", { className: "text-[10px] text-muted-foreground/70 font-mono leading-none mt-0.5", children: n })
|
|
59
|
+
] })
|
|
60
|
+
]
|
|
210
61
|
}
|
|
211
|
-
)
|
|
62
|
+
),
|
|
63
|
+
/* @__PURE__ */ e(he, {}),
|
|
64
|
+
/* @__PURE__ */ e(O, { className: "gap-2.5 p-0", asChild: !0, children: s ? /* @__PURE__ */ i(
|
|
65
|
+
ne,
|
|
66
|
+
{
|
|
67
|
+
path: s,
|
|
68
|
+
navigationOptions: { newTab: !1 },
|
|
69
|
+
className: "flex items-center gap-2.5 w-full px-2 py-1.5 !no-underline hover:!no-underline",
|
|
70
|
+
children: [
|
|
71
|
+
/* @__PURE__ */ e(j, { className: "w-4 h-4 text-muted-foreground" }),
|
|
72
|
+
"Back to TDP Platform"
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
) : /* @__PURE__ */ i(
|
|
76
|
+
"button",
|
|
77
|
+
{
|
|
78
|
+
type: "button",
|
|
79
|
+
className: "flex items-center gap-2.5 w-full px-2 py-1.5 bg-transparent border-none cursor-pointer",
|
|
80
|
+
onClick: u,
|
|
81
|
+
children: [
|
|
82
|
+
/* @__PURE__ */ e(j, { className: "w-4 h-4 text-muted-foreground" }),
|
|
83
|
+
"Back to TDP Platform"
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
) })
|
|
212
87
|
] })
|
|
213
88
|
] });
|
|
214
89
|
}
|
|
215
|
-
function
|
|
90
|
+
function F({
|
|
91
|
+
appName: t,
|
|
92
|
+
appFullName: a,
|
|
93
|
+
appIcon: r,
|
|
94
|
+
version: n,
|
|
95
|
+
navGroups: l,
|
|
96
|
+
onAppNameClick: s,
|
|
97
|
+
backToPlatformPath: u,
|
|
98
|
+
onBackToPlatform: d,
|
|
99
|
+
userMenu: c,
|
|
100
|
+
compact: f,
|
|
101
|
+
onAfterNavClick: h
|
|
102
|
+
}) {
|
|
216
103
|
return /* @__PURE__ */ e(
|
|
217
|
-
|
|
104
|
+
N,
|
|
218
105
|
{
|
|
219
|
-
"
|
|
106
|
+
variant: f ? "rail" : "sidebar",
|
|
220
107
|
"aria-label": "Application navigation",
|
|
108
|
+
navGroups: l,
|
|
109
|
+
onSelect: () => h?.(),
|
|
110
|
+
header: /* @__PURE__ */ e(
|
|
111
|
+
k,
|
|
112
|
+
{
|
|
113
|
+
appName: t,
|
|
114
|
+
appFullName: a,
|
|
115
|
+
appIcon: r,
|
|
116
|
+
version: n,
|
|
117
|
+
onAppNameClick: s,
|
|
118
|
+
backToPlatformPath: u,
|
|
119
|
+
onBackToPlatform: d,
|
|
120
|
+
compact: f
|
|
121
|
+
}
|
|
122
|
+
),
|
|
123
|
+
user: c,
|
|
124
|
+
className: "h-full w-full"
|
|
125
|
+
}
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
function Ne(t) {
|
|
129
|
+
return /* @__PURE__ */ e(
|
|
130
|
+
"div",
|
|
131
|
+
{
|
|
132
|
+
"data-slot": "data-app-sidebar-rail",
|
|
221
133
|
className: "hidden md:flex w-12 flex-col shrink-0 bg-sidebar border-r border-sidebar-border h-full z-50",
|
|
222
|
-
children: /* @__PURE__ */ e(
|
|
134
|
+
children: /* @__PURE__ */ e(F, { compact: !0, ...t })
|
|
223
135
|
}
|
|
224
136
|
);
|
|
225
137
|
}
|
|
226
|
-
function
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
138
|
+
function ke({ collapsed: t, onCollapsedChange: a, ...r }) {
|
|
139
|
+
const { appName: n, appFullName: l, appIcon: s, version: u, onAppNameClick: d, backToPlatformPath: c, onBackToPlatform: f } = r, h = {
|
|
140
|
+
appName: n,
|
|
141
|
+
appFullName: l,
|
|
142
|
+
appIcon: s,
|
|
143
|
+
version: u,
|
|
144
|
+
onAppNameClick: d,
|
|
145
|
+
backToPlatformPath: c,
|
|
146
|
+
onBackToPlatform: f
|
|
147
|
+
};
|
|
148
|
+
return t ? /* @__PURE__ */ e(
|
|
233
149
|
"div",
|
|
234
150
|
{
|
|
235
|
-
"data-slot": "data-app-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
151
|
+
"data-slot": "data-app-sidebar-rail",
|
|
152
|
+
"data-collapsed": "true",
|
|
153
|
+
className: "hidden md:flex w-12 flex-col shrink-0 bg-sidebar border-r border-sidebar-border h-full z-50",
|
|
154
|
+
children: /* @__PURE__ */ e(
|
|
155
|
+
N,
|
|
156
|
+
{
|
|
157
|
+
variant: "rail",
|
|
158
|
+
"aria-label": "Application navigation",
|
|
159
|
+
navGroups: r.navGroups,
|
|
160
|
+
header: /* @__PURE__ */ i("div", { className: "flex flex-col items-center gap-2", children: [
|
|
161
|
+
/* @__PURE__ */ e(k, { ...h, compact: !0 }),
|
|
162
|
+
/* @__PURE__ */ e(
|
|
163
|
+
I,
|
|
245
164
|
{
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
onClick:
|
|
249
|
-
children: t.label
|
|
165
|
+
direction: "right",
|
|
166
|
+
label: "Expand navigation",
|
|
167
|
+
onClick: () => a(!1)
|
|
250
168
|
}
|
|
251
|
-
)
|
|
252
|
-
] },
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
169
|
+
)
|
|
170
|
+
] }),
|
|
171
|
+
user: r.userMenu,
|
|
172
|
+
className: "h-full w-full"
|
|
173
|
+
}
|
|
174
|
+
)
|
|
175
|
+
}
|
|
176
|
+
) : /* @__PURE__ */ e(
|
|
177
|
+
"div",
|
|
178
|
+
{
|
|
179
|
+
"data-slot": "data-app-sidebar",
|
|
180
|
+
"data-collapsed": "false",
|
|
181
|
+
className: "hidden md:flex w-[220px] flex-col shrink-0 bg-sidebar border-r border-sidebar-border h-full z-50",
|
|
182
|
+
children: /* @__PURE__ */ e(
|
|
183
|
+
N,
|
|
184
|
+
{
|
|
185
|
+
variant: "sidebar",
|
|
186
|
+
"aria-label": "Application navigation",
|
|
187
|
+
navGroups: r.navGroups,
|
|
188
|
+
header: /* @__PURE__ */ i("div", { className: "flex items-center gap-2 w-full min-w-0", children: [
|
|
189
|
+
/* @__PURE__ */ e("div", { className: "flex-1 min-w-0", children: /* @__PURE__ */ e(k, { ...h, compact: !1 }) }),
|
|
190
|
+
/* @__PURE__ */ e(
|
|
191
|
+
I,
|
|
259
192
|
{
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
onClick: d,
|
|
264
|
-
"aria-label": "Help",
|
|
265
|
-
children: /* @__PURE__ */ e(O, { className: "w-4 h-4" })
|
|
193
|
+
direction: "left",
|
|
194
|
+
label: "Collapse navigation",
|
|
195
|
+
onClick: () => a(!0)
|
|
266
196
|
}
|
|
267
|
-
)
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
197
|
+
)
|
|
198
|
+
] }),
|
|
199
|
+
user: r.userMenu,
|
|
200
|
+
className: "h-full w-full"
|
|
201
|
+
}
|
|
202
|
+
)
|
|
272
203
|
}
|
|
273
204
|
);
|
|
274
205
|
}
|
|
275
|
-
function
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
206
|
+
function _e({ items: t }) {
|
|
207
|
+
return (
|
|
208
|
+
// min-w-0 lets the trail shrink inside the top bar's flex-1 left group;
|
|
209
|
+
// flex-nowrap keeps it one line instead of Breadcrumb's default wrap
|
|
210
|
+
// (which, combined with a squeezed left group, wrapped mid-trail and
|
|
211
|
+
// pushed the rest of the top bar around — SW-2118).
|
|
212
|
+
/* @__PURE__ */ e(ie, { className: "min-w-0", children: /* @__PURE__ */ e(se, { className: "flex-nowrap min-w-0", children: t.map((a, r) => {
|
|
213
|
+
const n = r === t.length - 1, l = !n && (!!a.href || !!a.onClick), s = n ? "min-w-0" : "shrink-0";
|
|
214
|
+
return /* @__PURE__ */ i(m.Fragment, { children: [
|
|
215
|
+
r > 0 && /* @__PURE__ */ e(oe, { className: "shrink-0", children: "/" }),
|
|
216
|
+
/* @__PURE__ */ e(de, { className: s, children: n ? /* @__PURE__ */ e(ce, { className: "truncate", children: a.label }) : l && a.href ? /* @__PURE__ */ e(me, { href: a.href, className: "whitespace-nowrap", children: a.label }) : l && a.onClick ? /* @__PURE__ */ e(
|
|
217
|
+
"button",
|
|
218
|
+
{
|
|
219
|
+
type: "button",
|
|
220
|
+
className: "text-sm text-primary hover:underline cursor-pointer bg-transparent border-none p-0 font-normal whitespace-nowrap",
|
|
221
|
+
onClick: a.onClick,
|
|
222
|
+
children: a.label
|
|
223
|
+
}
|
|
224
|
+
) : /* @__PURE__ */ e("span", { className: "text-sm text-muted-foreground whitespace-nowrap", children: a.label }) })
|
|
225
|
+
] }, `${a.label}-${r}`);
|
|
226
|
+
}) }) })
|
|
227
|
+
);
|
|
228
|
+
}
|
|
229
|
+
function Ce({
|
|
230
|
+
breadcrumbs: t = [],
|
|
231
|
+
headerLeft: a,
|
|
232
|
+
headerCenter: r,
|
|
233
|
+
headerActions: n,
|
|
234
|
+
mobileTrigger: l
|
|
292
235
|
}) {
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
236
|
+
return /* @__PURE__ */ e(
|
|
237
|
+
le,
|
|
238
|
+
{
|
|
239
|
+
"data-slot": "data-app-top-nav",
|
|
240
|
+
left: /* @__PURE__ */ i(ee, { children: [
|
|
241
|
+
l && /* @__PURE__ */ e("div", { className: "shrink-0", children: l }),
|
|
242
|
+
/* @__PURE__ */ e(_e, { items: t }),
|
|
243
|
+
a != null && /* @__PURE__ */ e("div", { className: "shrink-0", children: a })
|
|
244
|
+
] }),
|
|
245
|
+
center: r,
|
|
246
|
+
right: n
|
|
247
|
+
}
|
|
248
|
+
);
|
|
249
|
+
}
|
|
250
|
+
function Ge({
|
|
251
|
+
appName: t,
|
|
252
|
+
appFullName: a,
|
|
253
|
+
appIcon: r,
|
|
254
|
+
version: n,
|
|
255
|
+
navGroups: l,
|
|
256
|
+
onAppNameClick: s,
|
|
257
|
+
backToPlatformPath: u,
|
|
258
|
+
onBackToPlatform: d,
|
|
259
|
+
userMenu: c,
|
|
260
|
+
breadcrumbs: f = [],
|
|
261
|
+
headerLeft: h,
|
|
262
|
+
headerCenter: H,
|
|
263
|
+
headerActions: P,
|
|
264
|
+
navVariant: b = "vertical",
|
|
265
|
+
primaryNav: $ = "rail",
|
|
266
|
+
sidebarPanel: _,
|
|
267
|
+
secondaryBar: T,
|
|
268
|
+
rightPanel: q,
|
|
269
|
+
showNavRail: J = !0,
|
|
270
|
+
showTopBar: K = !0,
|
|
271
|
+
collapsed: g,
|
|
272
|
+
defaultCollapsed: Q = !1,
|
|
273
|
+
onCollapsedChange: v,
|
|
274
|
+
hideNavOnCollapse: C = !1,
|
|
275
|
+
autoCollapse: S = "(max-width: 1023px)",
|
|
276
|
+
children: U,
|
|
277
|
+
className: W
|
|
278
|
+
}) {
|
|
279
|
+
const [X, R] = m.useState(!1), [Y, y] = m.useState(Q), p = g ?? Y, z = m.useRef(p);
|
|
280
|
+
z.current = p;
|
|
281
|
+
const x = m.useRef(!1), B = m.useCallback(
|
|
282
|
+
(o) => {
|
|
283
|
+
x.current = !1, g === void 0 && y(o), v?.(o);
|
|
284
|
+
},
|
|
285
|
+
[g, v]
|
|
286
|
+
), A = m.useRef((o) => {
|
|
287
|
+
});
|
|
288
|
+
A.current = (o) => {
|
|
289
|
+
o && !z.current ? (g === void 0 && y(!0), v?.(!0), x.current = !0) : !o && x.current && (x.current = !1, g === void 0 && y(!1), v?.(!1));
|
|
290
|
+
}, m.useEffect(() => {
|
|
291
|
+
if (S === !1 || b !== "vertical") return;
|
|
292
|
+
const o = window.matchMedia(S);
|
|
293
|
+
A.current(o.matches);
|
|
294
|
+
const E = (V) => A.current(V.matches);
|
|
295
|
+
return o.addEventListener("change", E), () => o.removeEventListener("change", E);
|
|
296
|
+
}, [S, b]);
|
|
297
|
+
const w = {
|
|
298
|
+
appName: t,
|
|
299
|
+
appFullName: a,
|
|
300
|
+
appIcon: r,
|
|
301
|
+
version: n,
|
|
302
|
+
navGroups: l,
|
|
303
|
+
onAppNameClick: s,
|
|
304
|
+
backToPlatformPath: u,
|
|
305
|
+
onBackToPlatform: d,
|
|
306
|
+
userMenu: c
|
|
307
|
+
}, D = b === "vertical", L = D && $ === "sidebar", Z = !J || C && p && !L;
|
|
308
|
+
return /* @__PURE__ */ e(te, { value: { navVariant: b, collapsed: p, setCollapsed: B, hideNavOnCollapse: C }, children: /* @__PURE__ */ e(be, { open: X, onOpenChange: R, children: /* @__PURE__ */ i(
|
|
305
309
|
"div",
|
|
306
310
|
{
|
|
307
311
|
"data-slot": "data-app-shell",
|
|
308
|
-
|
|
312
|
+
"data-nav-variant": b,
|
|
313
|
+
"data-collapsed": p || void 0,
|
|
314
|
+
className: M(D ? "grid h-screen w-full overflow-hidden [grid-template-columns:auto_auto_minmax(0,1fr)] [grid-template-rows:auto_auto_minmax(0,1fr)] [grid-template-areas:'nav_top_top'_'nav_sub_sub'_'nav_side_body']" : "grid h-screen w-full overflow-hidden [grid-template-columns:auto_minmax(0,1fr)] [grid-template-rows:auto_auto_auto_minmax(0,1fr)] [grid-template-areas:'pnav_pnav'_'top_top'_'sub_sub'_'side_body']", W),
|
|
309
315
|
children: [
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
316
|
+
!Z && (D ? /* @__PURE__ */ e("div", { className: "[grid-area:nav] min-h-0", children: L ? /* @__PURE__ */ e(
|
|
317
|
+
ke,
|
|
318
|
+
{
|
|
319
|
+
collapsed: p,
|
|
320
|
+
onCollapsedChange: B,
|
|
321
|
+
...w
|
|
322
|
+
}
|
|
323
|
+
) : /* @__PURE__ */ e(Ne, { ...w }) }) : /* @__PURE__ */ e("div", { className: "[grid-area:pnav] hidden md:block border-b border-sidebar-border bg-sidebar px-3 py-1.5", children: /* @__PURE__ */ e(
|
|
324
|
+
N,
|
|
325
|
+
{
|
|
326
|
+
variant: "top",
|
|
327
|
+
"aria-label": "Application navigation",
|
|
328
|
+
navGroups: l,
|
|
329
|
+
header: /* @__PURE__ */ e(k, { ...w, compact: !0, menuSide: "bottom" }),
|
|
330
|
+
user: c
|
|
331
|
+
}
|
|
332
|
+
) })),
|
|
333
|
+
C && p && !_ && /* @__PURE__ */ e(
|
|
334
|
+
G,
|
|
335
|
+
{
|
|
336
|
+
"data-slot": "data-app-shell-expand-fab",
|
|
337
|
+
variant: "outline",
|
|
338
|
+
size: "icon-sm",
|
|
339
|
+
"aria-label": "Expand navigation",
|
|
340
|
+
className: "absolute left-2 top-2 z-50 shadow-elevation-2",
|
|
341
|
+
onClick: () => B(!1),
|
|
342
|
+
children: /* @__PURE__ */ e(ae, { className: "w-4 h-4" })
|
|
343
|
+
}
|
|
344
|
+
),
|
|
345
|
+
/* @__PURE__ */ i(
|
|
346
|
+
ge,
|
|
313
347
|
{
|
|
314
348
|
side: "left",
|
|
315
349
|
showCloseButton: !1,
|
|
316
350
|
className: "p-0 bg-sidebar border-r border-sidebar-border data-[side=left]:w-[220px] data-[side=left]:sm:w-[220px] data-[side=left]:sm:max-w-[220px] flex flex-col",
|
|
317
351
|
children: [
|
|
318
|
-
/* @__PURE__ */ e(
|
|
319
|
-
/* @__PURE__ */ e(
|
|
320
|
-
/* @__PURE__ */ e(
|
|
321
|
-
|
|
352
|
+
/* @__PURE__ */ e(ve, { className: "sr-only", children: "Navigation" }),
|
|
353
|
+
/* @__PURE__ */ e(xe, { className: "sr-only", children: "Application navigation menu" }),
|
|
354
|
+
/* @__PURE__ */ e(
|
|
355
|
+
F,
|
|
322
356
|
{
|
|
323
357
|
compact: !1,
|
|
324
|
-
onAfterNavClick: () =>
|
|
325
|
-
...
|
|
358
|
+
onAfterNavClick: () => R(!1),
|
|
359
|
+
...w
|
|
326
360
|
}
|
|
327
|
-
)
|
|
361
|
+
)
|
|
328
362
|
]
|
|
329
363
|
}
|
|
330
364
|
),
|
|
331
|
-
/* @__PURE__ */
|
|
365
|
+
_ && /* @__PURE__ */ e("div", { className: "[grid-area:side] min-h-0 flex", children: _ }),
|
|
366
|
+
K && /* @__PURE__ */ e("div", { className: "[grid-area:top] min-w-0", children: /* @__PURE__ */ e(
|
|
367
|
+
Ce,
|
|
368
|
+
{
|
|
369
|
+
breadcrumbs: f,
|
|
370
|
+
headerLeft: h,
|
|
371
|
+
headerCenter: H,
|
|
372
|
+
headerActions: P,
|
|
373
|
+
mobileTrigger: /* @__PURE__ */ e(we, { asChild: !0, children: /* @__PURE__ */ e(
|
|
374
|
+
G,
|
|
375
|
+
{
|
|
376
|
+
variant: "ghost",
|
|
377
|
+
size: "icon",
|
|
378
|
+
"aria-label": "Open navigation menu",
|
|
379
|
+
className: "md:hidden w-7 h-7 shrink-0 text-muted-foreground",
|
|
380
|
+
children: /* @__PURE__ */ e(re, { className: "w-4 h-4" })
|
|
381
|
+
}
|
|
382
|
+
) })
|
|
383
|
+
}
|
|
384
|
+
) }),
|
|
385
|
+
T && /* @__PURE__ */ e("div", { className: "[grid-area:sub] min-w-0", children: T }),
|
|
386
|
+
/* @__PURE__ */ i("div", { className: "[grid-area:body] relative flex min-h-0 min-w-0 overflow-hidden", children: [
|
|
332
387
|
/* @__PURE__ */ e(
|
|
333
|
-
|
|
388
|
+
"main",
|
|
334
389
|
{
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
mobileTrigger: /* @__PURE__ */ e(Y, { asChild: !0, children: /* @__PURE__ */ e(
|
|
339
|
-
T,
|
|
340
|
-
{
|
|
341
|
-
variant: "ghost",
|
|
342
|
-
size: "icon",
|
|
343
|
-
"aria-label": "Open navigation menu",
|
|
344
|
-
className: "md:hidden w-7 h-7 shrink-0 text-muted-foreground",
|
|
345
|
-
children: /* @__PURE__ */ e(L, { className: "w-4 h-4" })
|
|
346
|
-
}
|
|
347
|
-
) })
|
|
390
|
+
"data-slot": "data-app-shell-content",
|
|
391
|
+
className: "flex-1 min-w-0 overflow-auto bg-background",
|
|
392
|
+
children: U
|
|
348
393
|
}
|
|
349
394
|
),
|
|
350
|
-
|
|
351
|
-
u,
|
|
352
|
-
/* @__PURE__ */ e(
|
|
353
|
-
"main",
|
|
354
|
-
{
|
|
355
|
-
"data-slot": "data-app-shell-content",
|
|
356
|
-
className: "flex-1 overflow-auto bg-background",
|
|
357
|
-
children: p
|
|
358
|
-
}
|
|
359
|
-
)
|
|
360
|
-
] })
|
|
395
|
+
q
|
|
361
396
|
] })
|
|
362
397
|
]
|
|
363
398
|
}
|
|
364
|
-
) });
|
|
399
|
+
) }) });
|
|
365
400
|
}
|
|
366
401
|
export {
|
|
367
|
-
|
|
402
|
+
k as AppHeaderMenu,
|
|
403
|
+
Ge as DataAppShell
|
|
368
404
|
};
|
|
369
405
|
//# sourceMappingURL=DataAppShell.js.map
|