@morscherlab/mint-sdk 1.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +326 -0
- package/dist/__stories__/experiment-helpers.d.ts +25 -0
- package/dist/__tests__/components/AppLayout.test.d.ts +1 -0
- package/dist/__tests__/components/AppSidebar.test.d.ts +1 -0
- package/dist/__tests__/components/AppTopBar.test.d.ts +1 -0
- package/dist/__tests__/components/BaseInput.test.d.ts +1 -0
- package/dist/__tests__/components/BasePill.test.d.ts +1 -0
- package/dist/__tests__/components/Calendar.test.d.ts +1 -0
- package/dist/__tests__/components/CollapsibleCard.test.d.ts +1 -0
- package/dist/__tests__/components/DataFrame.test.d.ts +1 -0
- package/dist/__tests__/components/DropdownButton.test.d.ts +1 -0
- package/dist/__tests__/composables/formBuilderRegistry.test.d.ts +1 -0
- package/dist/__tests__/composables/useAppExperiment.test.d.ts +1 -0
- package/dist/__tests__/composables/useAuth.test.d.ts +1 -0
- package/dist/__tests__/composables/useAutoGroup.test.d.ts +1 -0
- package/dist/__tests__/composables/useExperimentData.test.d.ts +13 -0
- package/dist/__tests__/composables/useExperimentSave.test.d.ts +1 -0
- package/dist/__tests__/composables/useForm.test.d.ts +1 -0
- package/dist/__tests__/composables/useFormBuilder.test.d.ts +1 -0
- package/dist/__tests__/composables/usePlatformContext.test.d.ts +1 -0
- package/dist/__tests__/composables/usePluginApi.test.d.ts +13 -0
- package/dist/__tests__/composables/usePluginConfig.test.d.ts +14 -0
- package/dist/__tests__/utils/color.test.d.ts +1 -0
- package/dist/auth-BYmxZdJl.js +297 -0
- package/dist/auth-BYmxZdJl.js.map +1 -0
- package/dist/components/AlertBox.vue.d.ts +34 -0
- package/dist/components/AppAvatarMenu.vue.d.ts +58 -0
- package/dist/components/AppContainer.vue.d.ts +28 -0
- package/dist/components/AppLayout.vue.d.ts +31 -0
- package/dist/components/AppPageSelector.vue.d.ts +43 -0
- package/dist/components/AppPillNav.vue.d.ts +11 -0
- package/dist/components/AppPluginSwitcher.vue.d.ts +38 -0
- package/dist/components/AppSidebar.vue.d.ts +47 -0
- package/dist/components/AppTopBar.vue.d.ts +111 -0
- package/dist/components/AuditTrail.vue.d.ts +38 -0
- package/dist/components/AutoGroupModal.vue.d.ts +124 -0
- package/dist/components/Avatar.vue.d.ts +14 -0
- package/dist/components/BaseButton.vue.d.ts +37 -0
- package/dist/components/BaseCheckbox.vue.d.ts +17 -0
- package/dist/components/BaseInput.vue.d.ts +34 -0
- package/dist/components/BaseModal.vue.d.ts +46 -0
- package/dist/components/BasePill.vue.d.ts +57 -0
- package/dist/components/BaseRadioGroup.vue.d.ts +21 -0
- package/dist/components/BaseSelect.vue.d.ts +20 -0
- package/dist/components/BaseSlider.vue.d.ts +22 -0
- package/dist/components/BaseTabs.vue.d.ts +14 -0
- package/dist/components/BaseTextarea.vue.d.ts +30 -0
- package/dist/components/BaseToggle.vue.d.ts +19 -0
- package/dist/components/BatchProgressList.vue.d.ts +43 -0
- package/dist/components/Breadcrumb.vue.d.ts +33 -0
- package/dist/components/Calendar.vue.d.ts +107 -0
- package/dist/components/ChartContainer.vue.d.ts +31 -0
- package/dist/components/ChemicalFormula.vue.d.ts +8 -0
- package/dist/components/CollapsibleCard.vue.d.ts +41 -0
- package/dist/components/ColorSlider.vue.d.ts +34 -0
- package/dist/components/ConcentrationInput.vue.d.ts +25 -0
- package/dist/components/ConfirmDialog.vue.d.ts +42 -0
- package/dist/components/DataFrame.vue.d.ts +107 -0
- package/dist/components/DatePicker.vue.d.ts +25 -0
- package/dist/components/DateTimePicker.vue.d.ts +30 -0
- package/dist/components/Divider.vue.d.ts +14 -0
- package/dist/components/DoseCalculator.vue.d.ts +19 -0
- package/dist/components/DropdownButton.vue.d.ts +47 -0
- package/dist/components/EmptyState.vue.d.ts +36 -0
- package/dist/components/ExperimentCodeBadge.vue.d.ts +14 -0
- package/dist/components/ExperimentDataViewer.vue.d.ts +29 -0
- package/dist/components/ExperimentPopover.vue.d.ts +32 -0
- package/dist/components/ExperimentSelectorModal.vue.d.ts +28 -0
- package/dist/components/ExperimentTimeline.vue.d.ts +44 -0
- package/dist/components/FileUploader.vue.d.ts +40 -0
- package/dist/components/FitPanel.vue.d.ts +46 -0
- package/dist/components/FormActions.vue.d.ts +33 -0
- package/dist/components/FormBuilder.vue.d.ts +287 -0
- package/dist/components/FormField.vue.d.ts +28 -0
- package/dist/components/FormFieldRenderer.vue.d.ts +31 -0
- package/dist/components/FormSection.vue.d.ts +43 -0
- package/dist/components/FormulaInput.vue.d.ts +25 -0
- package/dist/components/GroupAssigner.vue.d.ts +25 -0
- package/dist/components/GroupingModal.vue.d.ts +12 -0
- package/dist/components/IconButton.vue.d.ts +34 -0
- package/dist/components/LoadingSpinner.vue.d.ts +12 -0
- package/dist/components/MoleculeInput.vue.d.ts +27 -0
- package/dist/components/MultiSelect.vue.d.ts +19 -0
- package/dist/components/NumberInput.vue.d.ts +22 -0
- package/dist/components/PlateMapEditor.vue.d.ts +50 -0
- package/dist/components/ProgressBar.vue.d.ts +23 -0
- package/dist/components/ProtocolStepEditor.vue.d.ts +24 -0
- package/dist/components/RackEditor.vue.d.ts +40 -0
- package/dist/components/ReagentEditor.vue.d.ts +30 -0
- package/dist/components/ReagentList.vue.d.ts +32 -0
- package/dist/components/ResourceCard.vue.d.ts +50 -0
- package/dist/components/SampleHierarchyTree.vue.d.ts +26 -0
- package/dist/components/SampleLegend.vue.d.ts +32 -0
- package/dist/components/SampleSelector.vue.d.ts +29 -0
- package/dist/components/ScheduleCalendar.vue.d.ts +110 -0
- package/dist/components/ScientificNumber.vue.d.ts +14 -0
- package/dist/components/SegmentedControl.vue.d.ts +20 -0
- package/dist/components/SequenceInput.vue.d.ts +54 -0
- package/dist/components/SettingsButton.vue.d.ts +30 -0
- package/dist/components/SettingsModal.vue.d.ts +36 -0
- package/dist/components/Skeleton.vue.d.ts +11 -0
- package/dist/components/StatusIndicator.vue.d.ts +13 -0
- package/dist/components/StepWizard.vue.d.ts +65 -0
- package/dist/components/TagsInput.vue.d.ts +39 -0
- package/dist/components/ThemeToggle.vue.d.ts +7 -0
- package/dist/components/TimePicker.vue.d.ts +29 -0
- package/dist/components/TimeRangeInput.vue.d.ts +27 -0
- package/dist/components/ToastNotification.vue.d.ts +2 -0
- package/dist/components/Tooltip.vue.d.ts +35 -0
- package/dist/components/UnitInput.vue.d.ts +39 -0
- package/dist/components/WellEditPopup.vue.d.ts +25 -0
- package/dist/components/WellPlate.vue.d.ts +73 -0
- package/dist/components/index.d.ts +87 -0
- package/dist/components/index.js +3 -0
- package/dist/components-CKf-UpGi.js +15089 -0
- package/dist/components-CKf-UpGi.js.map +1 -0
- package/dist/composables/experiment-utils.d.ts +8 -0
- package/dist/composables/formBuilderRegistry.d.ts +13 -0
- package/dist/composables/index.d.ts +28 -0
- package/dist/composables/index.js +3 -0
- package/dist/composables/useApi.d.ts +20 -0
- package/dist/composables/useAppExperiment.d.ts +37 -0
- package/dist/composables/useAsync.d.ts +128 -0
- package/dist/composables/useAuth.d.ts +47 -0
- package/dist/composables/useAutoGroup.d.ts +106 -0
- package/dist/composables/useChemicalFormula.d.ts +21 -0
- package/dist/composables/useConcentrationUnits.d.ts +29 -0
- package/dist/composables/useDoseCalculator.d.ts +58 -0
- package/dist/composables/useExperimentData.d.ts +18 -0
- package/dist/composables/useExperimentSave.d.ts +36 -0
- package/dist/composables/useExperimentSelector.d.ts +30 -0
- package/dist/composables/useForm.d.ts +92 -0
- package/dist/composables/useFormBuilder.d.ts +24 -0
- package/dist/composables/usePasskey.d.ts +10 -0
- package/dist/composables/usePlatformContext.d.ts +131 -0
- package/dist/composables/usePluginApi.d.ts +29 -0
- package/dist/composables/usePluginConfig.d.ts +13 -0
- package/dist/composables/useProtocolTemplates.d.ts +44 -0
- package/dist/composables/useRackEditor.d.ts +31 -0
- package/dist/composables/useReagentSeries.d.ts +23 -0
- package/dist/composables/useScheduleDrag.d.ts +78 -0
- package/dist/composables/useSequenceUtils.d.ts +14 -0
- package/dist/composables/useTheme.d.ts +8 -0
- package/dist/composables/useTimeUtils.d.ts +29 -0
- package/dist/composables/useToast.d.ts +22 -0
- package/dist/composables/useWellPlateEditor.d.ts +33 -0
- package/dist/composables-D0QfFzq1.js +805 -0
- package/dist/composables-D0QfFzq1.js.map +1 -0
- package/dist/histoire.setup.d.ts +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +7 -0
- package/dist/install.d.ts +16 -0
- package/dist/install.js +23 -0
- package/dist/install.js.map +1 -0
- package/dist/stores/auth.d.ts +146 -0
- package/dist/stores/index.d.ts +2 -0
- package/dist/stores/index.js +2 -0
- package/dist/stores/settings.d.ts +75 -0
- package/dist/styles.css +29728 -0
- package/dist/tailwind.preset.d.ts +58 -0
- package/dist/tailwind.preset.js +66 -0
- package/dist/tailwind.preset.js.map +1 -0
- package/dist/types/auth.d.ts +42 -0
- package/dist/types/auto-group.d.ts +34 -0
- package/dist/types/components.d.ts +528 -0
- package/dist/types/form-builder.d.ts +167 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.js +0 -0
- package/dist/types/platform.d.ts +75 -0
- package/dist/useScheduleDrag-DAJueTbK.js +7181 -0
- package/dist/useScheduleDrag-DAJueTbK.js.map +1 -0
- package/dist/utils/color.d.ts +24 -0
- package/package.json +114 -0
- package/src/__stories__/experiment-helpers.ts +83 -0
- package/src/__tests__/components/AppLayout.test.ts +163 -0
- package/src/__tests__/components/AppSidebar.test.ts +292 -0
- package/src/__tests__/components/AppTopBar.test.ts +683 -0
- package/src/__tests__/components/BaseInput.test.ts +99 -0
- package/src/__tests__/components/BasePill.test.ts +291 -0
- package/src/__tests__/components/Calendar.test.ts +566 -0
- package/src/__tests__/components/CollapsibleCard.test.ts +524 -0
- package/src/__tests__/components/DataFrame.test.ts +767 -0
- package/src/__tests__/components/DropdownButton.test.ts +471 -0
- package/src/__tests__/composables/formBuilderRegistry.test.ts +187 -0
- package/src/__tests__/composables/useAppExperiment.test.ts +560 -0
- package/src/__tests__/composables/useAuth.test.ts +188 -0
- package/src/__tests__/composables/useAutoGroup.test.ts +860 -0
- package/src/__tests__/composables/useExperimentData.test.ts +127 -0
- package/src/__tests__/composables/useExperimentSave.test.ts +347 -0
- package/src/__tests__/composables/useForm.test.ts +205 -0
- package/src/__tests__/composables/useFormBuilder.test.ts +917 -0
- package/src/__tests__/composables/usePlatformContext.test.ts +116 -0
- package/src/__tests__/composables/usePluginApi.test.ts +81 -0
- package/src/__tests__/composables/usePluginConfig.test.ts +176 -0
- package/src/__tests__/utils/color.test.ts +96 -0
- package/src/components/AlertBox.story.vue +204 -0
- package/src/components/AlertBox.vue +88 -0
- package/src/components/AppAvatarMenu.story.vue +155 -0
- package/src/components/AppAvatarMenu.vue +184 -0
- package/src/components/AppContainer.story.vue +104 -0
- package/src/components/AppContainer.vue +34 -0
- package/src/components/AppLayout.story.vue +292 -0
- package/src/components/AppLayout.vue +75 -0
- package/src/components/AppPageSelector.vue +159 -0
- package/src/components/AppPillNav.vue +66 -0
- package/src/components/AppPluginSwitcher.vue +241 -0
- package/src/components/AppSidebar.story.vue +309 -0
- package/src/components/AppSidebar.vue +119 -0
- package/src/components/AppTopBar.story.vue +304 -0
- package/src/components/AppTopBar.vue +661 -0
- package/src/components/AuditTrail.story.vue +163 -0
- package/src/components/AuditTrail.vue +151 -0
- package/src/components/AutoGroupModal.story.vue +273 -0
- package/src/components/AutoGroupModal.vue +566 -0
- package/src/components/Avatar.story.vue +115 -0
- package/src/components/Avatar.vue +79 -0
- package/src/components/BaseButton.story.vue +96 -0
- package/src/components/BaseButton.vue +73 -0
- package/src/components/BaseCheckbox.story.vue +73 -0
- package/src/components/BaseCheckbox.vue +69 -0
- package/src/components/BaseInput.story.vue +98 -0
- package/src/components/BaseInput.vue +74 -0
- package/src/components/BaseModal.story.vue +237 -0
- package/src/components/BaseModal.vue +182 -0
- package/src/components/BasePill.story.vue +142 -0
- package/src/components/BasePill.vue +89 -0
- package/src/components/BaseRadioGroup.story.vue +145 -0
- package/src/components/BaseRadioGroup.vue +124 -0
- package/src/components/BaseSelect.story.vue +120 -0
- package/src/components/BaseSelect.vue +71 -0
- package/src/components/BaseSlider.story.vue +122 -0
- package/src/components/BaseSlider.vue +126 -0
- package/src/components/BaseTabs.story.vue +127 -0
- package/src/components/BaseTabs.vue +59 -0
- package/src/components/BaseTextarea.story.vue +91 -0
- package/src/components/BaseTextarea.vue +62 -0
- package/src/components/BaseToggle.story.vue +81 -0
- package/src/components/BaseToggle.vue +76 -0
- package/src/components/BatchProgressList.story.vue +92 -0
- package/src/components/BatchProgressList.vue +184 -0
- package/src/components/Breadcrumb.story.vue +106 -0
- package/src/components/Breadcrumb.vue +75 -0
- package/src/components/Calendar.story.vue +106 -0
- package/src/components/Calendar.vue +363 -0
- package/src/components/ChartContainer.story.vue +113 -0
- package/src/components/ChartContainer.vue +64 -0
- package/src/components/ChemicalFormula.story.vue +102 -0
- package/src/components/ChemicalFormula.vue +39 -0
- package/src/components/CollapsibleCard.story.vue +135 -0
- package/src/components/CollapsibleCard.vue +167 -0
- package/src/components/ColorSlider.story.vue +120 -0
- package/src/components/ColorSlider.vue +164 -0
- package/src/components/ConcentrationInput.story.vue +77 -0
- package/src/components/ConcentrationInput.vue +185 -0
- package/src/components/ConfirmDialog.story.vue +248 -0
- package/src/components/ConfirmDialog.vue +93 -0
- package/src/components/DataFrame.story.vue +148 -0
- package/src/components/DataFrame.vue +419 -0
- package/src/components/DatePicker.story.vue +119 -0
- package/src/components/DatePicker.vue +330 -0
- package/src/components/DateTimePicker.story.vue +112 -0
- package/src/components/DateTimePicker.vue +392 -0
- package/src/components/Divider.story.vue +80 -0
- package/src/components/Divider.vue +49 -0
- package/src/components/DoseCalculator.story.vue +68 -0
- package/src/components/DoseCalculator.vue +476 -0
- package/src/components/DropdownButton.story.vue +102 -0
- package/src/components/DropdownButton.vue +181 -0
- package/src/components/EmptyState.story.vue +135 -0
- package/src/components/EmptyState.vue +69 -0
- package/src/components/ExperimentCodeBadge.story.vue +77 -0
- package/src/components/ExperimentCodeBadge.vue +64 -0
- package/src/components/ExperimentDataViewer.story.vue +174 -0
- package/src/components/ExperimentDataViewer.vue +288 -0
- package/src/components/ExperimentPopover.story.vue +384 -0
- package/src/components/ExperimentPopover.vue +241 -0
- package/src/components/ExperimentSelectorModal.story.vue +391 -0
- package/src/components/ExperimentSelectorModal.vue +387 -0
- package/src/components/ExperimentTimeline.story.vue +161 -0
- package/src/components/ExperimentTimeline.vue +382 -0
- package/src/components/FileUploader.story.vue +107 -0
- package/src/components/FileUploader.vue +386 -0
- package/src/components/FitPanel.story.vue +125 -0
- package/src/components/FitPanel.vue +120 -0
- package/src/components/FormActions.vue +92 -0
- package/src/components/FormBuilder.vue +214 -0
- package/src/components/FormField.story.vue +132 -0
- package/src/components/FormField.vue +59 -0
- package/src/components/FormFieldRenderer.vue +58 -0
- package/src/components/FormSection.vue +90 -0
- package/src/components/FormulaInput.story.vue +96 -0
- package/src/components/FormulaInput.vue +125 -0
- package/src/components/GroupAssigner.story.vue +83 -0
- package/src/components/GroupAssigner.vue +284 -0
- package/src/components/GroupingModal.story.vue +52 -0
- package/src/components/GroupingModal.vue +422 -0
- package/src/components/IconButton.story.vue +135 -0
- package/src/components/IconButton.vue +73 -0
- package/src/components/LoadingSpinner.story.vue +70 -0
- package/src/components/LoadingSpinner.vue +50 -0
- package/src/components/MoleculeInput.story.vue +66 -0
- package/src/components/MoleculeInput.vue +426 -0
- package/src/components/MultiSelect.story.vue +132 -0
- package/src/components/MultiSelect.vue +118 -0
- package/src/components/NumberInput.story.vue +122 -0
- package/src/components/NumberInput.vue +160 -0
- package/src/components/PlateMapEditor.story.vue +92 -0
- package/src/components/PlateMapEditor.vue +513 -0
- package/src/components/ProgressBar.story.vue +148 -0
- package/src/components/ProgressBar.vue +114 -0
- package/src/components/ProtocolStepEditor.story.vue +69 -0
- package/src/components/ProtocolStepEditor.vue +522 -0
- package/src/components/RackEditor.story.vue +100 -0
- package/src/components/RackEditor.vue +371 -0
- package/src/components/ReagentEditor.story.vue +153 -0
- package/src/components/ReagentEditor.vue +418 -0
- package/src/components/ReagentList.story.vue +137 -0
- package/src/components/ReagentList.vue +463 -0
- package/src/components/ResourceCard.story.vue +150 -0
- package/src/components/ResourceCard.vue +161 -0
- package/src/components/SampleHierarchyTree.story.vue +161 -0
- package/src/components/SampleHierarchyTree.vue +256 -0
- package/src/components/SampleLegend.story.vue +91 -0
- package/src/components/SampleLegend.vue +119 -0
- package/src/components/SampleSelector.story.vue +111 -0
- package/src/components/SampleSelector.vue +1033 -0
- package/src/components/ScheduleCalendar.story.vue +195 -0
- package/src/components/ScheduleCalendar.vue +569 -0
- package/src/components/ScientificNumber.story.vue +127 -0
- package/src/components/ScientificNumber.vue +197 -0
- package/src/components/SegmentedControl.story.vue +132 -0
- package/src/components/SegmentedControl.vue +79 -0
- package/src/components/SequenceInput.story.vue +119 -0
- package/src/components/SequenceInput.vue +209 -0
- package/src/components/SettingsButton.story.vue +58 -0
- package/src/components/SettingsButton.vue +76 -0
- package/src/components/SettingsModal.story.vue +145 -0
- package/src/components/SettingsModal.vue +146 -0
- package/src/components/Skeleton.story.vue +141 -0
- package/src/components/Skeleton.vue +74 -0
- package/src/components/StatusIndicator.story.vue +99 -0
- package/src/components/StatusIndicator.vue +40 -0
- package/src/components/StepWizard.story.vue +155 -0
- package/src/components/StepWizard.vue +223 -0
- package/src/components/TagsInput.story.vue +155 -0
- package/src/components/TagsInput.vue +265 -0
- package/src/components/ThemeToggle.story.vue +36 -0
- package/src/components/ThemeToggle.vue +54 -0
- package/src/components/TimePicker.story.vue +96 -0
- package/src/components/TimePicker.vue +273 -0
- package/src/components/TimeRangeInput.story.vue +104 -0
- package/src/components/TimeRangeInput.vue +122 -0
- package/src/components/ToastNotification.story.vue +157 -0
- package/src/components/ToastNotification.vue +62 -0
- package/src/components/Tooltip.story.vue +138 -0
- package/src/components/Tooltip.vue +119 -0
- package/src/components/UnitInput.story.vue +194 -0
- package/src/components/UnitInput.vue +213 -0
- package/src/components/WellEditPopup.vue +234 -0
- package/src/components/WellPlate.story.vue +282 -0
- package/src/components/WellPlate.vue +830 -0
- package/src/components/index.ts +118 -0
- package/src/composables/experiment-utils.ts +57 -0
- package/src/composables/formBuilderRegistry.ts +79 -0
- package/src/composables/index.ts +140 -0
- package/src/composables/useApi.ts +167 -0
- package/src/composables/useAppExperiment.ts +159 -0
- package/src/composables/useAsync.ts +323 -0
- package/src/composables/useAuth.ts +445 -0
- package/src/composables/useAutoGroup.ts +641 -0
- package/src/composables/useChemicalFormula.ts +275 -0
- package/src/composables/useConcentrationUnits.ts +246 -0
- package/src/composables/useDoseCalculator.ts +370 -0
- package/src/composables/useExperimentData.ts +86 -0
- package/src/composables/useExperimentSave.ts +192 -0
- package/src/composables/useExperimentSelector.ts +292 -0
- package/src/composables/useForm.ts +416 -0
- package/src/composables/useFormBuilder.ts +383 -0
- package/src/composables/usePasskey.ts +216 -0
- package/src/composables/usePlatformContext.ts +299 -0
- package/src/composables/usePluginApi.ts +39 -0
- package/src/composables/usePluginConfig.ts +93 -0
- package/src/composables/useProtocolTemplates.ts +518 -0
- package/src/composables/useRackEditor.ts +222 -0
- package/src/composables/useReagentSeries.ts +91 -0
- package/src/composables/useScheduleDrag.ts +245 -0
- package/src/composables/useSequenceUtils.ts +105 -0
- package/src/composables/useTheme.ts +58 -0
- package/src/composables/useTimeUtils.ts +131 -0
- package/src/composables/useToast.ts +40 -0
- package/src/composables/useWellPlateEditor.ts +421 -0
- package/src/histoire.setup.ts +17 -0
- package/src/index.ts +367 -0
- package/src/install.ts +32 -0
- package/src/stores/auth.ts +152 -0
- package/src/stores/index.ts +2 -0
- package/src/stores/settings.ts +218 -0
- package/src/styles/components/alert-box.css +150 -0
- package/src/styles/components/app-avatar-menu.css +155 -0
- package/src/styles/components/app-container.css +33 -0
- package/src/styles/components/app-layout.css +98 -0
- package/src/styles/components/app-page-selector.css +191 -0
- package/src/styles/components/app-pill-nav.css +57 -0
- package/src/styles/components/app-plugin-switcher.css +209 -0
- package/src/styles/components/app-sidebar.css +145 -0
- package/src/styles/components/app-top-bar.css +492 -0
- package/src/styles/components/audit-trail.css +143 -0
- package/src/styles/components/auto-group-modal.css +644 -0
- package/src/styles/components/avatar.css +73 -0
- package/src/styles/components/batch-progress-list.css +196 -0
- package/src/styles/components/breadcrumb.css +64 -0
- package/src/styles/components/button.css +188 -0
- package/src/styles/components/calendar.css +192 -0
- package/src/styles/components/chart-container.css +69 -0
- package/src/styles/components/checkbox.css +123 -0
- package/src/styles/components/chemical-formula.css +46 -0
- package/src/styles/components/collapsible-card.css +253 -0
- package/src/styles/components/color-slider.css +110 -0
- package/src/styles/components/concentration-input.css +156 -0
- package/src/styles/components/confirm-dialog.css +183 -0
- package/src/styles/components/dataframe.css +382 -0
- package/src/styles/components/date-picker.css +243 -0
- package/src/styles/components/datetime-picker.css +229 -0
- package/src/styles/components/divider.css +63 -0
- package/src/styles/components/dose-calculator.css +301 -0
- package/src/styles/components/dropdown-button.css +280 -0
- package/src/styles/components/empty-state.css +151 -0
- package/src/styles/components/experiment-code-badge.css +33 -0
- package/src/styles/components/experiment-data-viewer.css +138 -0
- package/src/styles/components/experiment-popover.css +562 -0
- package/src/styles/components/experiment-selector-modal.css +285 -0
- package/src/styles/components/experiment-timeline.css +529 -0
- package/src/styles/components/file-uploader.css +310 -0
- package/src/styles/components/fit-panel.css +67 -0
- package/src/styles/components/form-builder.css +69 -0
- package/src/styles/components/form-field.css +48 -0
- package/src/styles/components/formula-input.css +103 -0
- package/src/styles/components/group-assigner.css +200 -0
- package/src/styles/components/grouping-modal.css +323 -0
- package/src/styles/components/icon-button.css +192 -0
- package/src/styles/components/input.css +66 -0
- package/src/styles/components/loading-spinner.css +67 -0
- package/src/styles/components/modal.css +350 -0
- package/src/styles/components/molecule-input.css +186 -0
- package/src/styles/components/multi-select.css +131 -0
- package/src/styles/components/number-input.css +199 -0
- package/src/styles/components/pill.css +188 -0
- package/src/styles/components/plate-map-editor.css +464 -0
- package/src/styles/components/progress-bar.css +133 -0
- package/src/styles/components/protocol-step-editor.css +449 -0
- package/src/styles/components/rack-editor.css +265 -0
- package/src/styles/components/radio-group.css +240 -0
- package/src/styles/components/reagent-editor.css +510 -0
- package/src/styles/components/reagent-list.css +407 -0
- package/src/styles/components/resource-card.css +360 -0
- package/src/styles/components/sample-hierarchy-tree.css +314 -0
- package/src/styles/components/sample-legend.css +201 -0
- package/src/styles/components/sample-selector.css +751 -0
- package/src/styles/components/schedule-calendar.css +478 -0
- package/src/styles/components/scientific-number.css +63 -0
- package/src/styles/components/segmented-control.css +197 -0
- package/src/styles/components/select.css +77 -0
- package/src/styles/components/sequence-input.css +184 -0
- package/src/styles/components/settings-button.css +94 -0
- package/src/styles/components/settings-modal.css +95 -0
- package/src/styles/components/skeleton.css +49 -0
- package/src/styles/components/slider.css +74 -0
- package/src/styles/components/status-indicator.css +66 -0
- package/src/styles/components/step-wizard.css +192 -0
- package/src/styles/components/tabs.css +95 -0
- package/src/styles/components/tags-input.css +195 -0
- package/src/styles/components/textarea.css +82 -0
- package/src/styles/components/theme-toggle.css +69 -0
- package/src/styles/components/time-picker.css +171 -0
- package/src/styles/components/time-range-input.css +42 -0
- package/src/styles/components/toast.css +91 -0
- package/src/styles/components/toggle.css +146 -0
- package/src/styles/components/tooltip.css +91 -0
- package/src/styles/components/unit-input.css +123 -0
- package/src/styles/components/well-edit-popup.css +252 -0
- package/src/styles/components/well-plate.css +307 -0
- package/src/styles/index.css +87 -0
- package/src/styles/variables.css +1117 -0
- package/src/tailwind.preset.ts +61 -0
- package/src/types/auth.ts +55 -0
- package/src/types/auto-group.ts +40 -0
- package/src/types/components.ts +710 -0
- package/src/types/form-builder.ts +197 -0
- package/src/types/index.ts +207 -0
- package/src/types/platform.ts +116 -0
- package/src/utils/color.ts +96 -0
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { defineStore } from 'pinia'
|
|
2
|
+
import { ref, watch } from 'vue'
|
|
3
|
+
import type { ThemeMode, ColorPalette, TableDensity } from '../types'
|
|
4
|
+
|
|
5
|
+
declare global {
|
|
6
|
+
interface ImportMetaEnv {
|
|
7
|
+
readonly VITE_API_PREFIX?: string
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
interface ImportMeta {
|
|
11
|
+
readonly env: ImportMetaEnv
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface SettingsState {
|
|
16
|
+
serverHost: string
|
|
17
|
+
serverPort: number
|
|
18
|
+
requestTimeout: number
|
|
19
|
+
wsAutoReconnect: boolean
|
|
20
|
+
wsReconnectInterval: number
|
|
21
|
+
theme: ThemeMode
|
|
22
|
+
colorPalette: ColorPalette
|
|
23
|
+
tableDensity: TableDensity
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const STORAGE_KEY = 'mld-settings'
|
|
27
|
+
|
|
28
|
+
function getDefaultServerHost(): string {
|
|
29
|
+
if (typeof window !== 'undefined' && window.location.hostname !== 'localhost') {
|
|
30
|
+
return window.location.hostname
|
|
31
|
+
}
|
|
32
|
+
return 'localhost'
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function getDefaultServerPort(): number {
|
|
36
|
+
if (typeof window !== 'undefined') {
|
|
37
|
+
if (window.location.port) {
|
|
38
|
+
return parseInt(window.location.port, 10)
|
|
39
|
+
}
|
|
40
|
+
// Standard ports: 443 for HTTPS, 80 for HTTP (browser omits from location.port)
|
|
41
|
+
return window.location.protocol === 'https:' ? 443 : 80
|
|
42
|
+
}
|
|
43
|
+
return 8000
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const defaultSettings: SettingsState = {
|
|
47
|
+
serverHost: getDefaultServerHost(),
|
|
48
|
+
serverPort: getDefaultServerPort(),
|
|
49
|
+
requestTimeout: 120000,
|
|
50
|
+
wsAutoReconnect: true,
|
|
51
|
+
wsReconnectInterval: 5000,
|
|
52
|
+
theme: 'system',
|
|
53
|
+
colorPalette: 'default',
|
|
54
|
+
tableDensity: 'normal',
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export const colorPalettes: Record<ColorPalette, { name: string; hues: [number, number] }> = {
|
|
58
|
+
default: { name: 'Default (Cyan-Pink)', hues: [180, 320] },
|
|
59
|
+
colorblind: { name: 'Colorblind-friendly', hues: [45, 260] },
|
|
60
|
+
viridis: { name: 'Viridis', hues: [280, 80] },
|
|
61
|
+
pastel: { name: 'Pastel', hues: [200, 340] },
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function loadSettings(): SettingsState {
|
|
65
|
+
try {
|
|
66
|
+
const stored = localStorage.getItem(STORAGE_KEY)
|
|
67
|
+
if (stored) {
|
|
68
|
+
const parsed = JSON.parse(stored)
|
|
69
|
+
return { ...defaultSettings, ...parsed }
|
|
70
|
+
}
|
|
71
|
+
} catch (e) {
|
|
72
|
+
console.warn('Failed to load settings from localStorage:', e)
|
|
73
|
+
}
|
|
74
|
+
return { ...defaultSettings }
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
function saveSettings(settings: SettingsState): void {
|
|
78
|
+
try {
|
|
79
|
+
localStorage.setItem(STORAGE_KEY, JSON.stringify(settings))
|
|
80
|
+
} catch (e) {
|
|
81
|
+
console.warn('Failed to save settings to localStorage:', e)
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export const useSettingsStore = defineStore('mld-settings', () => {
|
|
86
|
+
// State
|
|
87
|
+
const serverHost = ref(defaultSettings.serverHost)
|
|
88
|
+
const serverPort = ref(defaultSettings.serverPort)
|
|
89
|
+
const requestTimeout = ref(defaultSettings.requestTimeout)
|
|
90
|
+
const wsAutoReconnect = ref(defaultSettings.wsAutoReconnect)
|
|
91
|
+
const wsReconnectInterval = ref(defaultSettings.wsReconnectInterval)
|
|
92
|
+
const theme = ref<ThemeMode>(defaultSettings.theme)
|
|
93
|
+
const colorPalette = ref<ColorPalette>(defaultSettings.colorPalette)
|
|
94
|
+
const tableDensity = ref<TableDensity>(defaultSettings.tableDensity)
|
|
95
|
+
|
|
96
|
+
// API prefix - can be configured via env variable VITE_API_PREFIX
|
|
97
|
+
const apiPrefix: string = (import.meta.env?.VITE_API_PREFIX as string | undefined) ?? '/api'
|
|
98
|
+
|
|
99
|
+
function _isSameOrigin(): { same: boolean; currentHost: string; currentPort: string } {
|
|
100
|
+
const currentHost = typeof window !== 'undefined' ? window.location.hostname : 'localhost'
|
|
101
|
+
const currentPort = typeof window !== 'undefined' ? window.location.port : '8000'
|
|
102
|
+
const effectivePort = currentPort || (window.location.protocol === 'https:' ? '443' : '80')
|
|
103
|
+
const same =
|
|
104
|
+
(serverHost.value === currentHost && String(serverPort.value) === effectivePort) ||
|
|
105
|
+
(serverHost.value === 'localhost' && currentHost !== 'localhost')
|
|
106
|
+
return { same, currentHost, currentPort }
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
function getApiBaseUrl(): string {
|
|
110
|
+
const { same } = _isSameOrigin()
|
|
111
|
+
if (same) return apiPrefix
|
|
112
|
+
return `http://${serverHost.value}:${serverPort.value}${apiPrefix}`
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
function getWsBaseUrl(): string {
|
|
116
|
+
const { same, currentHost, currentPort } = _isSameOrigin()
|
|
117
|
+
const protocol = typeof window !== 'undefined' && window.location.protocol === 'https:' ? 'wss:' : 'ws:'
|
|
118
|
+
if (same) return `${protocol}//${currentHost}${currentPort ? ':' + currentPort : ''}${apiPrefix}`
|
|
119
|
+
return `ws://${serverHost.value}:${serverPort.value}${apiPrefix}`
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
let _initialized = false
|
|
123
|
+
|
|
124
|
+
function initialize() {
|
|
125
|
+
if (_initialized) return
|
|
126
|
+
_initialized = true
|
|
127
|
+
|
|
128
|
+
const loaded = loadSettings()
|
|
129
|
+
serverHost.value = loaded.serverHost
|
|
130
|
+
serverPort.value = loaded.serverPort
|
|
131
|
+
requestTimeout.value = loaded.requestTimeout
|
|
132
|
+
wsAutoReconnect.value = loaded.wsAutoReconnect
|
|
133
|
+
wsReconnectInterval.value = loaded.wsReconnectInterval
|
|
134
|
+
theme.value = loaded.theme
|
|
135
|
+
colorPalette.value = loaded.colorPalette
|
|
136
|
+
tableDensity.value = loaded.tableDensity
|
|
137
|
+
|
|
138
|
+
applyTheme()
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
function applyTheme() {
|
|
142
|
+
const dark = theme.value === 'system'
|
|
143
|
+
? window.matchMedia('(prefers-color-scheme: dark)').matches
|
|
144
|
+
: theme.value === 'dark'
|
|
145
|
+
document.documentElement.classList.toggle('dark', dark)
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
watch(theme, () => {
|
|
149
|
+
applyTheme()
|
|
150
|
+
persistSettings()
|
|
151
|
+
})
|
|
152
|
+
|
|
153
|
+
if (typeof window !== 'undefined') {
|
|
154
|
+
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', () => {
|
|
155
|
+
if (theme.value === 'system') {
|
|
156
|
+
applyTheme()
|
|
157
|
+
}
|
|
158
|
+
})
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
function persistSettings() {
|
|
162
|
+
saveSettings({
|
|
163
|
+
serverHost: serverHost.value,
|
|
164
|
+
serverPort: serverPort.value,
|
|
165
|
+
requestTimeout: requestTimeout.value,
|
|
166
|
+
wsAutoReconnect: wsAutoReconnect.value,
|
|
167
|
+
wsReconnectInterval: wsReconnectInterval.value,
|
|
168
|
+
theme: theme.value,
|
|
169
|
+
colorPalette: colorPalette.value,
|
|
170
|
+
tableDensity: tableDensity.value,
|
|
171
|
+
})
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
watch([serverHost, serverPort, requestTimeout, wsAutoReconnect, wsReconnectInterval, colorPalette, tableDensity], () => {
|
|
175
|
+
persistSettings()
|
|
176
|
+
})
|
|
177
|
+
|
|
178
|
+
function resetToDefaults() {
|
|
179
|
+
serverHost.value = defaultSettings.serverHost
|
|
180
|
+
serverPort.value = defaultSettings.serverPort
|
|
181
|
+
requestTimeout.value = defaultSettings.requestTimeout
|
|
182
|
+
wsAutoReconnect.value = defaultSettings.wsAutoReconnect
|
|
183
|
+
wsReconnectInterval.value = defaultSettings.wsReconnectInterval
|
|
184
|
+
theme.value = defaultSettings.theme
|
|
185
|
+
colorPalette.value = defaultSettings.colorPalette
|
|
186
|
+
tableDensity.value = defaultSettings.tableDensity
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
function getPaletteHues(): [number, number] {
|
|
190
|
+
return colorPalettes[colorPalette.value].hues
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
function isDark(): boolean {
|
|
194
|
+
if (theme.value === 'system') {
|
|
195
|
+
return window.matchMedia('(prefers-color-scheme: dark)').matches
|
|
196
|
+
}
|
|
197
|
+
return theme.value === 'dark'
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
return {
|
|
201
|
+
serverHost,
|
|
202
|
+
serverPort,
|
|
203
|
+
requestTimeout,
|
|
204
|
+
wsAutoReconnect,
|
|
205
|
+
wsReconnectInterval,
|
|
206
|
+
theme,
|
|
207
|
+
colorPalette,
|
|
208
|
+
tableDensity,
|
|
209
|
+
initialize,
|
|
210
|
+
applyTheme,
|
|
211
|
+
persistSettings,
|
|
212
|
+
resetToDefaults,
|
|
213
|
+
getPaletteHues,
|
|
214
|
+
isDark,
|
|
215
|
+
getApiBaseUrl,
|
|
216
|
+
getWsBaseUrl,
|
|
217
|
+
}
|
|
218
|
+
})
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
/* AlertBox Component Styles */
|
|
2
|
+
|
|
3
|
+
.mld-alert {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
gap: 0.75rem;
|
|
7
|
+
padding: 0.875rem 1rem;
|
|
8
|
+
border: 1px solid;
|
|
9
|
+
border-radius: var(--radius-md);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.mld-alert--success {
|
|
13
|
+
background-color: var(--mint-success-bg);
|
|
14
|
+
border-color: var(--mint-success-border);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.mld-alert--error {
|
|
18
|
+
background-color: var(--mint-error-bg);
|
|
19
|
+
border-color: var(--mint-error-border);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.mld-alert--warning {
|
|
23
|
+
background-color: var(--mint-warning-bg);
|
|
24
|
+
border-color: var(--mint-warning-border);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.mld-alert--info {
|
|
28
|
+
background-color: var(--mint-info-bg);
|
|
29
|
+
border-color: var(--mint-info-border);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.mld-alert__icon {
|
|
33
|
+
width: 1.125rem;
|
|
34
|
+
height: 1.125rem;
|
|
35
|
+
flex-shrink: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.mld-alert__icon--success { color: var(--mint-success-hover); }
|
|
39
|
+
.mld-alert__icon--error { color: var(--mint-error-hover); }
|
|
40
|
+
.mld-alert__icon--warning { color: var(--mint-warning-hover); }
|
|
41
|
+
.mld-alert__icon--info { color: var(--color-primary-hover); }
|
|
42
|
+
|
|
43
|
+
.mld-alert__content {
|
|
44
|
+
flex: 1;
|
|
45
|
+
min-width: 0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.mld-alert__title {
|
|
49
|
+
font-size: 0.875rem;
|
|
50
|
+
font-weight: 600;
|
|
51
|
+
color: var(--text-primary);
|
|
52
|
+
line-height: 1.4;
|
|
53
|
+
margin-top: 0 !important;
|
|
54
|
+
margin-bottom: 0.25rem !important;
|
|
55
|
+
padding: 0 !important;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.mld-alert--success .mld-alert__title { color: var(--mint-success-hover); }
|
|
59
|
+
.mld-alert--error .mld-alert__title { color: var(--mint-error-hover); }
|
|
60
|
+
.mld-alert--warning .mld-alert__title { color: var(--mint-warning-hover); }
|
|
61
|
+
.mld-alert--info .mld-alert__title { color: var(--color-primary-hover); }
|
|
62
|
+
|
|
63
|
+
.mld-alert__message {
|
|
64
|
+
font-size: 0.8125rem;
|
|
65
|
+
line-height: 1.5;
|
|
66
|
+
color: var(--text-secondary);
|
|
67
|
+
margin-top: 0 !important;
|
|
68
|
+
margin-bottom: 0 !important;
|
|
69
|
+
padding: 0 !important;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.mld-alert__actions {
|
|
73
|
+
display: flex;
|
|
74
|
+
align-items: center;
|
|
75
|
+
gap: 0.5rem;
|
|
76
|
+
align-self: center;
|
|
77
|
+
flex-shrink: 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.mld-alert__action-btn {
|
|
81
|
+
padding: 0.25rem 0.625rem;
|
|
82
|
+
font-size: 0.75rem;
|
|
83
|
+
font-weight: 500;
|
|
84
|
+
border-radius: var(--radius-sm);
|
|
85
|
+
border: 1px solid;
|
|
86
|
+
background: transparent;
|
|
87
|
+
cursor: pointer;
|
|
88
|
+
transition: background-color 0.15s ease, color 0.15s ease;
|
|
89
|
+
white-space: nowrap;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.mld-alert__action-btn--success {
|
|
93
|
+
color: var(--mint-success);
|
|
94
|
+
border-color: var(--mint-success);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.mld-alert__action-btn--success:hover {
|
|
98
|
+
background-color: var(--mint-success);
|
|
99
|
+
color: white;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.mld-alert__action-btn--error {
|
|
103
|
+
color: var(--mint-error);
|
|
104
|
+
border-color: var(--mint-error);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.mld-alert__action-btn--error:hover {
|
|
108
|
+
background-color: var(--mint-error);
|
|
109
|
+
color: white;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.mld-alert__action-btn--warning {
|
|
113
|
+
color: var(--mint-warning);
|
|
114
|
+
border-color: var(--mint-warning);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.mld-alert__action-btn--warning:hover {
|
|
118
|
+
background-color: var(--mint-warning);
|
|
119
|
+
color: white;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.mld-alert__action-btn--info {
|
|
123
|
+
color: var(--color-primary);
|
|
124
|
+
border-color: var(--color-primary);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.mld-alert__action-btn--info:hover {
|
|
128
|
+
background-color: var(--color-primary);
|
|
129
|
+
color: white;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.mld-alert__dismiss {
|
|
133
|
+
padding: 0.25rem;
|
|
134
|
+
border-radius: var(--radius-sm);
|
|
135
|
+
color: var(--text-muted);
|
|
136
|
+
background: transparent;
|
|
137
|
+
border: none;
|
|
138
|
+
cursor: pointer;
|
|
139
|
+
transition: color 0.15s ease, background-color 0.15s ease;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.mld-alert__dismiss:hover {
|
|
143
|
+
color: var(--text-primary);
|
|
144
|
+
background-color: var(--bg-tertiary);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.mld-alert__dismiss-icon {
|
|
148
|
+
width: 0.875rem;
|
|
149
|
+
height: 0.875rem;
|
|
150
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/* AppAvatarMenu — avatar button + dropdown */
|
|
2
|
+
|
|
3
|
+
.mld-avatar-menu {
|
|
4
|
+
position: relative;
|
|
5
|
+
flex-shrink: 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/* Pill trigger — avatar circle + username text on the right. Matches the
|
|
9
|
+
legacy `.mld-topbar__profile-btn` convention (GitHub/Linear-style). */
|
|
10
|
+
.mld-avatar-menu__trigger {
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
gap: 0.5rem;
|
|
14
|
+
padding: 0.25rem 0.75rem 0.25rem 0.25rem;
|
|
15
|
+
border: none;
|
|
16
|
+
background: transparent;
|
|
17
|
+
border-radius: var(--radius);
|
|
18
|
+
font-family: inherit;
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
transition: background-color 0.15s ease;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.mld-avatar-menu__trigger:hover,
|
|
24
|
+
.mld-avatar-menu__trigger--open {
|
|
25
|
+
background: var(--bg-hover);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.mld-avatar-menu__trigger:focus-visible {
|
|
29
|
+
outline: none;
|
|
30
|
+
box-shadow: var(--focus-ring);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* Gradient avatar chip inside the trigger */
|
|
34
|
+
.mld-avatar-menu__avatar {
|
|
35
|
+
width: 1.75rem;
|
|
36
|
+
height: 1.75rem;
|
|
37
|
+
border-radius: 9999px;
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
font-size: 0.75rem;
|
|
42
|
+
font-weight: 500;
|
|
43
|
+
color: white;
|
|
44
|
+
background: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-primary) 100%);
|
|
45
|
+
flex-shrink: 0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* Username next to the avatar — hidden below 640px to preserve space */
|
|
49
|
+
.mld-avatar-menu__name {
|
|
50
|
+
font-size: 0.875rem;
|
|
51
|
+
font-weight: 500;
|
|
52
|
+
color: var(--text-primary);
|
|
53
|
+
white-space: nowrap;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@media (max-width: 640px) {
|
|
57
|
+
.mld-avatar-menu__name {
|
|
58
|
+
display: none;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.mld-avatar-menu__trigger {
|
|
62
|
+
padding: 0.25rem;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.mld-avatar-menu__panel {
|
|
67
|
+
position: absolute;
|
|
68
|
+
top: calc(100% + 0.5rem);
|
|
69
|
+
right: 0;
|
|
70
|
+
width: 13.75rem;
|
|
71
|
+
background: var(--bg-card);
|
|
72
|
+
border: 1px solid var(--border-color);
|
|
73
|
+
border-radius: var(--radius-lg);
|
|
74
|
+
box-shadow: var(--shadow-md);
|
|
75
|
+
padding: 0.375rem;
|
|
76
|
+
z-index: 60;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.mld-avatar-menu__header {
|
|
80
|
+
padding: 0.5rem 0.625rem 0.625rem;
|
|
81
|
+
border-bottom: 1px solid var(--border-light);
|
|
82
|
+
margin-bottom: 0.25rem;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.mld-avatar-menu__user-name {
|
|
86
|
+
font-size: 0.78125rem;
|
|
87
|
+
font-weight: 600;
|
|
88
|
+
color: var(--text-primary);
|
|
89
|
+
line-height: 1.25;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.mld-avatar-menu__user-email {
|
|
93
|
+
font-size: 0.6875rem;
|
|
94
|
+
color: var(--text-secondary);
|
|
95
|
+
margin-top: 0.0625rem;
|
|
96
|
+
line-height: 1.25;
|
|
97
|
+
word-break: break-all;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.mld-avatar-menu__item {
|
|
101
|
+
display: flex;
|
|
102
|
+
align-items: center;
|
|
103
|
+
gap: 0.625rem;
|
|
104
|
+
width: 100%;
|
|
105
|
+
padding: 0.4375rem 0.625rem;
|
|
106
|
+
border: 0;
|
|
107
|
+
border-radius: 0.375rem;
|
|
108
|
+
background: transparent;
|
|
109
|
+
color: var(--text-primary);
|
|
110
|
+
font-size: 0.78125rem;
|
|
111
|
+
font-family: inherit;
|
|
112
|
+
text-align: left;
|
|
113
|
+
text-decoration: none;
|
|
114
|
+
cursor: pointer;
|
|
115
|
+
transition: background-color var(--mint-transition);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.mld-avatar-menu__item:hover {
|
|
119
|
+
background: var(--bg-hover);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.mld-avatar-menu__item--danger {
|
|
123
|
+
color: var(--mint-error);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.mld-avatar-menu__item-icon {
|
|
127
|
+
display: grid;
|
|
128
|
+
place-items: center;
|
|
129
|
+
color: var(--text-secondary);
|
|
130
|
+
flex-shrink: 0;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.mld-avatar-menu__item-icon svg {
|
|
134
|
+
width: 0.8125rem;
|
|
135
|
+
height: 0.8125rem;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.mld-avatar-menu__item--danger .mld-avatar-menu__item-icon {
|
|
139
|
+
color: var(--mint-error);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.mld-avatar-menu__item-label {
|
|
143
|
+
flex: 1;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.mld-avatar-menu__item-right {
|
|
147
|
+
font-size: 0.6875rem;
|
|
148
|
+
color: var(--text-muted);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.mld-avatar-menu__divider {
|
|
152
|
+
height: 1px;
|
|
153
|
+
background: var(--border-light);
|
|
154
|
+
margin: 0.25rem 0;
|
|
155
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* Base: shared by both roles */
|
|
2
|
+
.mld-container {
|
|
3
|
+
flex: 1;
|
|
4
|
+
min-height: 0;
|
|
5
|
+
min-width: 0;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/* Card role (default — no direction prop) */
|
|
10
|
+
.mld-container--card {
|
|
11
|
+
border-radius: var(--radius-lg, 0.75rem);
|
|
12
|
+
box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.05));
|
|
13
|
+
border: 1px solid var(--border-color, var(--mint-border, #e5e7eb));
|
|
14
|
+
background-color: var(--bg-card, var(--mint-bg-card, #ffffff));
|
|
15
|
+
padding: 1rem;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.mld-container--scrollable {
|
|
19
|
+
overflow-y: auto;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* Layout role (direction prop set) */
|
|
23
|
+
.mld-container--layout {
|
|
24
|
+
display: flex;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.mld-container--row {
|
|
28
|
+
flex-direction: row;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.mld-container--column {
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/* AppLayout Component Styles */
|
|
2
|
+
|
|
3
|
+
.mld-layout {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
height: 100vh;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.mld-layout__topbar {
|
|
11
|
+
flex-shrink: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.mld-layout__body {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex: 1;
|
|
17
|
+
min-height: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.mld-layout--sidebar-right .mld-layout__body {
|
|
21
|
+
flex-direction: row-reverse;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.mld-layout__sidebar {
|
|
25
|
+
flex-shrink: 0;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
max-width: 24rem;
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* Hide layout wrapper when inner sidebar is hidden (no panels for active view) */
|
|
33
|
+
.mld-layout__sidebar:has(.mld-sidebar--hidden) {
|
|
34
|
+
display: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.mld-layout__main {
|
|
38
|
+
flex: 1;
|
|
39
|
+
min-width: 0;
|
|
40
|
+
min-height: 0;
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* Strip topbar card variant inside layout — layout handles containment */
|
|
47
|
+
.mld-layout .mld-topbar--card {
|
|
48
|
+
margin: 0;
|
|
49
|
+
width: 100%;
|
|
50
|
+
border-radius: 0;
|
|
51
|
+
box-shadow: none;
|
|
52
|
+
border: none;
|
|
53
|
+
border-bottom: 1px solid var(--border-color, var(--mint-border, #e5e7eb));
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* Floating variant: all sections appear as separate cards on a background */
|
|
57
|
+
.mld-layout--floating {
|
|
58
|
+
background-color: var(--bg-primary, var(--mint-bg-primary, #f8fafc));
|
|
59
|
+
padding: 1rem;
|
|
60
|
+
gap: 1rem;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.mld-layout--floating .mld-layout__topbar {
|
|
64
|
+
border-radius: var(--radius-lg, 0.75rem);
|
|
65
|
+
box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.05));
|
|
66
|
+
border: 1px solid var(--border-color, var(--mint-border, #e5e7eb));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.mld-layout--floating .mld-layout__body {
|
|
70
|
+
gap: 1rem;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.mld-layout--floating .mld-layout__sidebar {
|
|
74
|
+
border-radius: var(--radius-lg, 0.75rem);
|
|
75
|
+
overflow: hidden;
|
|
76
|
+
box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.05));
|
|
77
|
+
border: 1px solid var(--border-color, var(--mint-border, #e5e7eb));
|
|
78
|
+
background-color: var(--bg-secondary, var(--mint-bg-secondary, #f8f9fb));
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.mld-layout--floating .mld-layout__main {
|
|
82
|
+
gap: 1rem;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* In floating mode, inner components don't need borders since the wrapper provides them */
|
|
86
|
+
.mld-layout--floating .mld-sidebar {
|
|
87
|
+
border-right: none;
|
|
88
|
+
border-left: none;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.mld-layout--floating .mld-topbar {
|
|
92
|
+
border: none;
|
|
93
|
+
border-bottom: none;
|
|
94
|
+
margin: 0;
|
|
95
|
+
width: 100%;
|
|
96
|
+
border-radius: var(--radius-lg, 0.75rem);
|
|
97
|
+
box-shadow: none;
|
|
98
|
+
}
|