@morscherlab/mint-sdk 1.0.0-alpha.8 → 1.0.0-beta.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 +15 -15
- package/dist/{auth-BYmxZdJl.js → auth-DsI0rQ7_.js} +6 -6
- package/dist/auth-DsI0rQ7_.js.map +1 -0
- package/dist/components/index.js +2 -2
- package/dist/{components-CKf-UpGi.js → components-CzbQQPCb.js} +1429 -1429
- package/dist/components-CzbQQPCb.js.map +1 -0
- package/dist/composables/index.js +2 -2
- package/dist/composables/usePlatformContext.d.ts +3 -3
- package/dist/{composables-D0QfFzq1.js → composables-BXklV5ii.js} +3 -3
- package/dist/{composables-D0QfFzq1.js.map → composables-BXklV5ii.js.map} +1 -1
- package/dist/index.js +4 -4
- package/dist/install.d.ts +3 -3
- package/dist/install.js +5 -5
- package/dist/install.js.map +1 -1
- package/dist/stores/auth.d.ts +1 -1
- package/dist/stores/index.js +1 -1
- package/dist/stores/settings.d.ts +1 -1
- package/dist/styles.css +5388 -5388
- package/dist/types/platform.d.ts +1 -1
- package/dist/{useScheduleDrag-DAJueTbK.js → useScheduleDrag-CxBeqYcu.js} +331 -331
- package/dist/useScheduleDrag-CxBeqYcu.js.map +1 -0
- package/package.json +2 -2
- package/src/__tests__/components/AppLayout.test.ts +23 -23
- package/src/__tests__/components/AppSidebar.test.ts +29 -29
- package/src/__tests__/components/AppTopBar.test.ts +45 -45
- package/src/__tests__/components/BaseInput.test.ts +2 -2
- package/src/__tests__/components/BasePill.test.ts +37 -37
- package/src/__tests__/components/Calendar.test.ts +52 -52
- package/src/__tests__/components/CollapsibleCard.test.ts +81 -81
- package/src/__tests__/components/DataFrame.test.ts +80 -80
- package/src/__tests__/components/DropdownButton.test.ts +80 -80
- package/src/__tests__/composables/usePlatformContext.test.ts +1 -1
- package/src/components/AlertBox.story.vue +1 -1
- package/src/components/AlertBox.vue +14 -14
- package/src/components/AppAvatarMenu.vue +26 -26
- package/src/components/AppContainer.vue +3 -3
- package/src/components/AppLayout.vue +7 -7
- package/src/components/AppPageSelector.vue +30 -30
- package/src/components/AppPillNav.vue +10 -10
- package/src/components/AppPluginSwitcher.vue +31 -31
- package/src/components/AppSidebar.vue +8 -8
- package/src/components/AppTopBar.story.vue +7 -7
- package/src/components/AppTopBar.vue +102 -102
- package/src/components/AuditTrail.vue +19 -19
- package/src/components/AutoGroupModal.vue +76 -76
- package/src/components/Avatar.vue +6 -6
- package/src/components/BaseButton.vue +6 -6
- package/src/components/BaseCheckbox.vue +9 -9
- package/src/components/BaseInput.vue +4 -4
- package/src/components/BaseModal.story.vue +1 -1
- package/src/components/BaseModal.vue +14 -14
- package/src/components/BasePill.vue +9 -9
- package/src/components/BaseRadioGroup.vue +21 -21
- package/src/components/BaseSelect.vue +6 -6
- package/src/components/BaseSlider.vue +8 -8
- package/src/components/BaseTabs.vue +7 -7
- package/src/components/BaseTextarea.vue +5 -5
- package/src/components/BaseToggle.vue +10 -10
- package/src/components/BatchProgressList.vue +25 -25
- package/src/components/Breadcrumb.vue +8 -8
- package/src/components/Calendar.vue +19 -19
- package/src/components/ChartContainer.vue +9 -9
- package/src/components/ChemicalFormula.vue +7 -7
- package/src/components/CollapsibleCard.vue +20 -20
- package/src/components/ColorSlider.vue +6 -6
- package/src/components/ConcentrationInput.vue +12 -12
- package/src/components/ConfirmDialog.story.vue +1 -1
- package/src/components/ConfirmDialog.vue +7 -7
- package/src/components/DataFrame.vue +40 -40
- package/src/components/DatePicker.vue +29 -29
- package/src/components/DateTimePicker.vue +41 -41
- package/src/components/Divider.vue +9 -9
- package/src/components/DoseCalculator.vue +66 -66
- package/src/components/DropdownButton.vue +19 -19
- package/src/components/EmptyState.vue +9 -9
- package/src/components/ExperimentCodeBadge.vue +3 -3
- package/src/components/ExperimentDataViewer.vue +25 -25
- package/src/components/ExperimentPopover.vue +35 -35
- package/src/components/ExperimentSelectorModal.vue +40 -40
- package/src/components/ExperimentTimeline.vue +48 -48
- package/src/components/FileUploader.vue +31 -31
- package/src/components/FitPanel.vue +9 -9
- package/src/components/FormActions.vue +1 -1
- package/src/components/FormBuilder.vue +2 -2
- package/src/components/FormField.vue +7 -7
- package/src/components/FormSection.vue +7 -7
- package/src/components/FormulaInput.vue +10 -10
- package/src/components/GroupAssigner.vue +40 -40
- package/src/components/GroupingModal.vue +45 -45
- package/src/components/IconButton.vue +6 -6
- package/src/components/LoadingSpinner.vue +5 -5
- package/src/components/MoleculeInput.vue +21 -21
- package/src/components/MultiSelect.vue +13 -13
- package/src/components/NumberInput.vue +13 -13
- package/src/components/PlateMapEditor.vue +63 -63
- package/src/components/ProgressBar.vue +18 -18
- package/src/components/ProtocolStepEditor.vue +57 -57
- package/src/components/RackEditor.vue +28 -28
- package/src/components/ReagentEditor.vue +61 -61
- package/src/components/ReagentList.vue +49 -49
- package/src/components/ResourceCard.vue +28 -28
- package/src/components/SampleHierarchyTree.vue +13 -13
- package/src/components/SampleLegend.vue +12 -12
- package/src/components/SampleSelector.vue +104 -104
- package/src/components/ScheduleCalendar.vue +42 -42
- package/src/components/ScientificNumber.vue +11 -11
- package/src/components/SegmentedControl.vue +12 -12
- package/src/components/SequenceInput.vue +32 -32
- package/src/components/SettingsButton.vue +5 -5
- package/src/components/SettingsModal.vue +17 -17
- package/src/components/StatusIndicator.vue +5 -5
- package/src/components/StepWizard.vue +16 -16
- package/src/components/TagsInput.vue +20 -20
- package/src/components/ThemeToggle.vue +3 -3
- package/src/components/TimePicker.vue +21 -21
- package/src/components/TimeRangeInput.vue +5 -5
- package/src/components/ToastNotification.vue +8 -8
- package/src/components/Tooltip.vue +7 -7
- package/src/components/UnitInput.vue +12 -12
- package/src/components/WellEditPopup.vue +28 -28
- package/src/components/WellPlate.vue +37 -37
- package/src/composables/useAppExperiment.ts +1 -1
- package/src/composables/usePlatformContext.ts +16 -16
- package/src/composables/useProtocolTemplates.ts +1 -1
- package/src/install.ts +3 -3
- package/src/stores/auth.ts +3 -3
- package/src/stores/settings.ts +2 -2
- package/src/styles/components/alert-box.css +30 -30
- package/src/styles/components/app-avatar-menu.css +23 -23
- package/src/styles/components/app-container.css +6 -6
- package/src/styles/components/app-layout.css +15 -15
- package/src/styles/components/app-page-selector.css +26 -26
- package/src/styles/components/app-pill-nav.css +7 -7
- package/src/styles/components/app-plugin-switcher.css +27 -27
- package/src/styles/components/app-sidebar.css +24 -24
- package/src/styles/components/app-top-bar.css +65 -65
- package/src/styles/components/audit-trail.css +29 -29
- package/src/styles/components/auto-group-modal.css +91 -91
- package/src/styles/components/avatar.css +15 -15
- package/src/styles/components/batch-progress-list.css +40 -40
- package/src/styles/components/breadcrumb.css +8 -8
- package/src/styles/components/button.css +31 -31
- package/src/styles/components/calendar.css +27 -27
- package/src/styles/components/chart-container.css +9 -9
- package/src/styles/components/checkbox.css +20 -20
- package/src/styles/components/chemical-formula.css +8 -8
- package/src/styles/components/collapsible-card.css +35 -35
- package/src/styles/components/color-slider.css +8 -8
- package/src/styles/components/concentration-input.css +27 -27
- package/src/styles/components/confirm-dialog.css +32 -32
- package/src/styles/components/dataframe.css +66 -66
- package/src/styles/components/date-picker.css +40 -40
- package/src/styles/components/datetime-picker.css +37 -37
- package/src/styles/components/divider.css +13 -13
- package/src/styles/components/dose-calculator.css +43 -43
- package/src/styles/components/dropdown-button.css +46 -46
- package/src/styles/components/empty-state.css +44 -44
- package/src/styles/components/experiment-code-badge.css +8 -8
- package/src/styles/components/experiment-data-viewer.css +23 -23
- package/src/styles/components/experiment-popover.css +97 -97
- package/src/styles/components/experiment-selector-modal.css +39 -39
- package/src/styles/components/experiment-timeline.css +98 -98
- package/src/styles/components/file-uploader.css +44 -44
- package/src/styles/components/fit-panel.css +12 -12
- package/src/styles/components/form-builder.css +11 -11
- package/src/styles/components/form-field.css +7 -7
- package/src/styles/components/formula-input.css +17 -17
- package/src/styles/components/group-assigner.css +26 -26
- package/src/styles/components/grouping-modal.css +51 -51
- package/src/styles/components/icon-button.css +41 -41
- package/src/styles/components/input.css +13 -13
- package/src/styles/components/loading-spinner.css +12 -12
- package/src/styles/components/modal.css +69 -69
- package/src/styles/components/molecule-input.css +27 -27
- package/src/styles/components/multi-select.css +23 -23
- package/src/styles/components/number-input.css +32 -32
- package/src/styles/components/pill.css +37 -37
- package/src/styles/components/plate-map-editor.css +67 -67
- package/src/styles/components/progress-bar.css +41 -41
- package/src/styles/components/protocol-step-editor.css +63 -63
- package/src/styles/components/rack-editor.css +34 -34
- package/src/styles/components/radio-group.css +41 -41
- package/src/styles/components/reagent-editor.css +70 -70
- package/src/styles/components/reagent-list.css +65 -65
- package/src/styles/components/resource-card.css +52 -52
- package/src/styles/components/sample-hierarchy-tree.css +56 -56
- package/src/styles/components/sample-legend.css +37 -37
- package/src/styles/components/sample-selector.css +121 -121
- package/src/styles/components/schedule-calendar.css +67 -67
- package/src/styles/components/scientific-number.css +11 -11
- package/src/styles/components/segmented-control.css +33 -33
- package/src/styles/components/select.css +11 -11
- package/src/styles/components/sequence-input.css +29 -29
- package/src/styles/components/settings-button.css +16 -16
- package/src/styles/components/settings-modal.css +14 -14
- package/src/styles/components/skeleton.css +2 -2
- package/src/styles/components/slider.css +10 -10
- package/src/styles/components/status-indicator.css +12 -12
- package/src/styles/components/step-wizard.css +32 -32
- package/src/styles/components/tabs.css +16 -16
- package/src/styles/components/tags-input.css +46 -46
- package/src/styles/components/textarea.css +17 -17
- package/src/styles/components/theme-toggle.css +13 -13
- package/src/styles/components/time-picker.css +28 -28
- package/src/styles/components/time-range-input.css +8 -8
- package/src/styles/components/toast.css +18 -18
- package/src/styles/components/toggle.css +27 -27
- package/src/styles/components/tooltip.css +18 -18
- package/src/styles/components/unit-input.css +25 -25
- package/src/styles/components/well-edit-popup.css +32 -32
- package/src/styles/components/well-plate.css +49 -49
- package/src/styles/index.css +1 -1
- package/src/styles/variables.css +3 -3
- package/src/types/platform.ts +6 -6
- package/dist/auth-BYmxZdJl.js.map +0 -1
- package/dist/components-CKf-UpGi.js.map +0 -1
- package/dist/useScheduleDrag-DAJueTbK.js.map +0 -1
|
@@ -240,8 +240,8 @@ watch(isOpen, (open) => {
|
|
|
240
240
|
)
|
|
241
241
|
nextTick(() => {
|
|
242
242
|
// Scroll time grid to selected time
|
|
243
|
-
const grid = containerRef.value?.querySelector('.
|
|
244
|
-
const active = containerRef.value?.querySelector('.
|
|
243
|
+
const grid = containerRef.value?.querySelector('.mint-datetime-picker__time-grid')
|
|
244
|
+
const active = containerRef.value?.querySelector('.mint-datetime-picker__time-chip--active')
|
|
245
245
|
if (grid && active) {
|
|
246
246
|
active.scrollIntoView({ block: 'center' })
|
|
247
247
|
}
|
|
@@ -259,9 +259,9 @@ onUnmounted(() => {
|
|
|
259
259
|
</script>
|
|
260
260
|
|
|
261
261
|
<template>
|
|
262
|
-
<div ref="containerRef" class="
|
|
263
|
-
<div class="
|
|
264
|
-
<div class="
|
|
262
|
+
<div ref="containerRef" class="mint-datetime-picker">
|
|
263
|
+
<div class="mint-datetime-picker__input-wrapper">
|
|
264
|
+
<div class="mint-datetime-picker__icon-calendar">
|
|
265
265
|
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
266
266
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" />
|
|
267
267
|
</svg>
|
|
@@ -273,15 +273,15 @@ onUnmounted(() => {
|
|
|
273
273
|
:placeholder="placeholder"
|
|
274
274
|
:disabled="disabled"
|
|
275
275
|
:class="[
|
|
276
|
-
'
|
|
277
|
-
`
|
|
278
|
-
error ? '
|
|
279
|
-
disabled ? '
|
|
276
|
+
'mint-datetime-picker__input',
|
|
277
|
+
`mint-datetime-picker__input--${size}`,
|
|
278
|
+
error ? 'mint-datetime-picker__input--error' : '',
|
|
279
|
+
disabled ? 'mint-datetime-picker__input--disabled' : '',
|
|
280
280
|
]"
|
|
281
281
|
aria-label="Select date and time"
|
|
282
282
|
@click="toggleDropdown"
|
|
283
283
|
/>
|
|
284
|
-
<div class="
|
|
284
|
+
<div class="mint-datetime-picker__icon-clock">
|
|
285
285
|
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
286
286
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z" />
|
|
287
287
|
</svg>
|
|
@@ -289,52 +289,52 @@ onUnmounted(() => {
|
|
|
289
289
|
</div>
|
|
290
290
|
|
|
291
291
|
<Transition
|
|
292
|
-
enter-active-class="
|
|
293
|
-
enter-from-class="
|
|
294
|
-
enter-to-class="
|
|
295
|
-
leave-active-class="
|
|
296
|
-
leave-from-class="
|
|
297
|
-
leave-to-class="
|
|
292
|
+
enter-active-class="mint-datetime-picker__dropdown-enter-active"
|
|
293
|
+
enter-from-class="mint-datetime-picker__dropdown-enter-from"
|
|
294
|
+
enter-to-class="mint-datetime-picker__dropdown-enter-to"
|
|
295
|
+
leave-active-class="mint-datetime-picker__dropdown-leave-active"
|
|
296
|
+
leave-from-class="mint-datetime-picker__dropdown-leave-from"
|
|
297
|
+
leave-to-class="mint-datetime-picker__dropdown-leave-to"
|
|
298
298
|
>
|
|
299
299
|
<div
|
|
300
300
|
v-if="isOpen"
|
|
301
|
-
class="
|
|
301
|
+
class="mint-datetime-picker__dropdown"
|
|
302
302
|
role="dialog"
|
|
303
303
|
aria-modal="true"
|
|
304
304
|
aria-label="Date and time picker"
|
|
305
305
|
>
|
|
306
306
|
<!-- Calendar section -->
|
|
307
|
-
<div class="
|
|
308
|
-
<div class="
|
|
309
|
-
<button type="button" class="
|
|
307
|
+
<div class="mint-datetime-picker__calendar-section">
|
|
308
|
+
<div class="mint-date-picker__header">
|
|
309
|
+
<button type="button" class="mint-date-picker__nav-btn" aria-label="Previous month" @click="prevMonth">
|
|
310
310
|
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true">
|
|
311
311
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7" />
|
|
312
312
|
</svg>
|
|
313
313
|
</button>
|
|
314
|
-
<span class="
|
|
315
|
-
<button type="button" class="
|
|
314
|
+
<span class="mint-date-picker__month-year">{{ monthYear }}</span>
|
|
315
|
+
<button type="button" class="mint-date-picker__nav-btn" aria-label="Next month" @click="nextMonth">
|
|
316
316
|
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true">
|
|
317
317
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
|
|
318
318
|
</svg>
|
|
319
319
|
</button>
|
|
320
320
|
</div>
|
|
321
321
|
|
|
322
|
-
<div class="
|
|
323
|
-
<div v-for="day in weekDays" :key="day" class="
|
|
322
|
+
<div class="mint-date-picker__weekdays">
|
|
323
|
+
<div v-for="day in weekDays" :key="day" class="mint-date-picker__weekday">{{ day }}</div>
|
|
324
324
|
</div>
|
|
325
325
|
|
|
326
|
-
<div class="
|
|
326
|
+
<div class="mint-date-picker__grid">
|
|
327
327
|
<button
|
|
328
328
|
v-for="(day, index) in calendarDays"
|
|
329
329
|
:key="index"
|
|
330
330
|
type="button"
|
|
331
331
|
:disabled="day.isDisabled"
|
|
332
332
|
:class="[
|
|
333
|
-
'
|
|
334
|
-
!day.isCurrentMonth ? '
|
|
335
|
-
day.isDisabled ? '
|
|
336
|
-
isSameDay(day.date, selectedDate) ? '
|
|
337
|
-
isToday(day.date) && !isSameDay(day.date, selectedDate) ? '
|
|
333
|
+
'mint-date-picker__day',
|
|
334
|
+
!day.isCurrentMonth ? 'mint-date-picker__day--other-month' : '',
|
|
335
|
+
day.isDisabled ? 'mint-date-picker__day--disabled' : '',
|
|
336
|
+
isSameDay(day.date, selectedDate) ? 'mint-date-picker__day--selected' : '',
|
|
337
|
+
isToday(day.date) && !isSameDay(day.date, selectedDate) ? 'mint-date-picker__day--today' : '',
|
|
338
338
|
]"
|
|
339
339
|
@click="selectDate(day)"
|
|
340
340
|
>
|
|
@@ -344,21 +344,21 @@ onUnmounted(() => {
|
|
|
344
344
|
</div>
|
|
345
345
|
|
|
346
346
|
<!-- Divider -->
|
|
347
|
-
<div class="
|
|
347
|
+
<div class="mint-datetime-picker__divider" />
|
|
348
348
|
|
|
349
349
|
<!-- Time section -->
|
|
350
|
-
<div class="
|
|
351
|
-
<div class="
|
|
352
|
-
<div class="
|
|
350
|
+
<div class="mint-datetime-picker__time-section">
|
|
351
|
+
<div class="mint-datetime-picker__time-label">Time</div>
|
|
352
|
+
<div class="mint-datetime-picker__time-grid">
|
|
353
353
|
<button
|
|
354
354
|
v-for="time in timeSlots"
|
|
355
355
|
:key="time"
|
|
356
356
|
type="button"
|
|
357
357
|
:disabled="isTimeDisabled(time)"
|
|
358
358
|
:class="[
|
|
359
|
-
'
|
|
360
|
-
selectedTimeStr === time ? '
|
|
361
|
-
isTimeDisabled(time) ? '
|
|
359
|
+
'mint-datetime-picker__time-chip',
|
|
360
|
+
selectedTimeStr === time ? 'mint-datetime-picker__time-chip--active' : '',
|
|
361
|
+
isTimeDisabled(time) ? 'mint-datetime-picker__time-chip--disabled' : '',
|
|
362
362
|
]"
|
|
363
363
|
@click="selectTime(time)"
|
|
364
364
|
>
|
|
@@ -368,15 +368,15 @@ onUnmounted(() => {
|
|
|
368
368
|
</div>
|
|
369
369
|
|
|
370
370
|
<!-- Footer -->
|
|
371
|
-
<div class="
|
|
371
|
+
<div class="mint-datetime-picker__footer">
|
|
372
372
|
<div>
|
|
373
|
-
<button type="button" class="
|
|
374
|
-
<button type="button" class="
|
|
373
|
+
<button type="button" class="mint-datetime-picker__footer-btn" @click="goToToday">Today</button>
|
|
374
|
+
<button type="button" class="mint-datetime-picker__footer-btn" @click="goToNow">Now</button>
|
|
375
375
|
</div>
|
|
376
376
|
<button
|
|
377
377
|
v-if="clearable && modelValue"
|
|
378
378
|
type="button"
|
|
379
|
-
class="
|
|
379
|
+
class="mint-datetime-picker__footer-btn mint-datetime-picker__footer-btn--muted"
|
|
380
380
|
@click="clear"
|
|
381
381
|
>
|
|
382
382
|
Clear
|
|
@@ -19,9 +19,9 @@ withDefaults(defineProps<Props>(), {
|
|
|
19
19
|
<div
|
|
20
20
|
v-if="vertical"
|
|
21
21
|
:class="[
|
|
22
|
-
'
|
|
23
|
-
'
|
|
24
|
-
`
|
|
22
|
+
'mint-divider',
|
|
23
|
+
'mint-divider--vertical',
|
|
24
|
+
`mint-divider--${spacing}`,
|
|
25
25
|
]"
|
|
26
26
|
role="separator"
|
|
27
27
|
aria-orientation="vertical"
|
|
@@ -29,17 +29,17 @@ withDefaults(defineProps<Props>(), {
|
|
|
29
29
|
<div
|
|
30
30
|
v-else
|
|
31
31
|
:class="[
|
|
32
|
-
'
|
|
33
|
-
`
|
|
34
|
-
label ? `
|
|
32
|
+
'mint-divider',
|
|
33
|
+
`mint-divider--${spacing}`,
|
|
34
|
+
label ? `mint-divider--labeled mint-divider--${align}` : '',
|
|
35
35
|
]"
|
|
36
36
|
role="separator"
|
|
37
37
|
aria-orientation="horizontal"
|
|
38
38
|
>
|
|
39
39
|
<template v-if="label">
|
|
40
|
-
<span v-if="align === 'center'" class="
|
|
41
|
-
<span class="
|
|
42
|
-
<span class="
|
|
40
|
+
<span v-if="align === 'center'" class="mint-divider__line" />
|
|
41
|
+
<span class="mint-divider__label">{{ label }}</span>
|
|
42
|
+
<span class="mint-divider__line" />
|
|
43
43
|
</template>
|
|
44
44
|
</div>
|
|
45
45
|
</template>
|
|
@@ -197,17 +197,17 @@ watch(activeMode, (mode) => {
|
|
|
197
197
|
<template>
|
|
198
198
|
<div
|
|
199
199
|
:class="[
|
|
200
|
-
'
|
|
201
|
-
disabled ? '
|
|
200
|
+
'mint-dose-calculator',
|
|
201
|
+
disabled ? 'mint-dose-calculator--disabled' : '',
|
|
202
202
|
]"
|
|
203
203
|
>
|
|
204
204
|
<!-- Tabs -->
|
|
205
|
-
<div v-if="showTabs" class="
|
|
205
|
+
<div v-if="showTabs" class="mint-dose-calculator__tabs" role="tablist">
|
|
206
206
|
<button
|
|
207
207
|
type="button"
|
|
208
208
|
:class="[
|
|
209
|
-
'
|
|
210
|
-
activeMode === 'dilution' ? '
|
|
209
|
+
'mint-dose-calculator__tab',
|
|
210
|
+
activeMode === 'dilution' ? 'mint-dose-calculator__tab--active' : '',
|
|
211
211
|
]"
|
|
212
212
|
role="tab"
|
|
213
213
|
:aria-selected="activeMode === 'dilution'"
|
|
@@ -218,8 +218,8 @@ watch(activeMode, (mode) => {
|
|
|
218
218
|
<button
|
|
219
219
|
type="button"
|
|
220
220
|
:class="[
|
|
221
|
-
'
|
|
222
|
-
activeMode === 'serial' ? '
|
|
221
|
+
'mint-dose-calculator__tab',
|
|
222
|
+
activeMode === 'serial' ? 'mint-dose-calculator__tab--active' : '',
|
|
223
223
|
]"
|
|
224
224
|
role="tab"
|
|
225
225
|
:aria-selected="activeMode === 'serial'"
|
|
@@ -230,8 +230,8 @@ watch(activeMode, (mode) => {
|
|
|
230
230
|
<button
|
|
231
231
|
type="button"
|
|
232
232
|
:class="[
|
|
233
|
-
'
|
|
234
|
-
activeMode === 'conversion' ? '
|
|
233
|
+
'mint-dose-calculator__tab',
|
|
234
|
+
activeMode === 'conversion' ? 'mint-dose-calculator__tab--active' : '',
|
|
235
235
|
]"
|
|
236
236
|
role="tab"
|
|
237
237
|
:aria-selected="activeMode === 'conversion'"
|
|
@@ -244,11 +244,11 @@ watch(activeMode, (mode) => {
|
|
|
244
244
|
<!-- Dilution form -->
|
|
245
245
|
<div
|
|
246
246
|
v-if="activeMode === 'dilution'"
|
|
247
|
-
class="
|
|
247
|
+
class="mint-dose-calculator__form"
|
|
248
248
|
role="tabpanel"
|
|
249
249
|
>
|
|
250
|
-
<div class="
|
|
251
|
-
<label class="
|
|
250
|
+
<div class="mint-dose-calculator__field">
|
|
251
|
+
<label class="mint-dose-calculator__field-label">Stock Concentration</label>
|
|
252
252
|
<ConcentrationInput
|
|
253
253
|
v-model="stockConcentration"
|
|
254
254
|
:disabled="disabled"
|
|
@@ -257,8 +257,8 @@ watch(activeMode, (mode) => {
|
|
|
257
257
|
/>
|
|
258
258
|
</div>
|
|
259
259
|
|
|
260
|
-
<div class="
|
|
261
|
-
<label class="
|
|
260
|
+
<div class="mint-dose-calculator__field">
|
|
261
|
+
<label class="mint-dose-calculator__field-label">Final Concentration</label>
|
|
262
262
|
<ConcentrationInput
|
|
263
263
|
v-model="finalConcentration"
|
|
264
264
|
:disabled="disabled"
|
|
@@ -267,14 +267,14 @@ watch(activeMode, (mode) => {
|
|
|
267
267
|
/>
|
|
268
268
|
</div>
|
|
269
269
|
|
|
270
|
-
<div class="
|
|
271
|
-
<label class="
|
|
272
|
-
<div class="
|
|
270
|
+
<div class="mint-dose-calculator__field">
|
|
271
|
+
<label class="mint-dose-calculator__field-label">Final Volume</label>
|
|
272
|
+
<div class="mint-dose-calculator__field-row">
|
|
273
273
|
<input
|
|
274
274
|
type="number"
|
|
275
275
|
:value="finalVolume.value"
|
|
276
276
|
:disabled="disabled"
|
|
277
|
-
class="
|
|
277
|
+
class="mint-dose-calculator__input"
|
|
278
278
|
min="0"
|
|
279
279
|
step="any"
|
|
280
280
|
@input="handleVolumeChange($event, 'final')"
|
|
@@ -282,7 +282,7 @@ watch(activeMode, (mode) => {
|
|
|
282
282
|
<select
|
|
283
283
|
:value="finalVolume.unit"
|
|
284
284
|
:disabled="disabled"
|
|
285
|
-
class="
|
|
285
|
+
class="mint-dose-calculator__select"
|
|
286
286
|
@change="handleVolumeUnitChange($event, 'final')"
|
|
287
287
|
>
|
|
288
288
|
<option v-for="unit in volumeUnits" :key="unit" :value="unit">
|
|
@@ -292,32 +292,32 @@ watch(activeMode, (mode) => {
|
|
|
292
292
|
</div>
|
|
293
293
|
</div>
|
|
294
294
|
|
|
295
|
-
<div class="
|
|
295
|
+
<div class="mint-dose-calculator__divider" />
|
|
296
296
|
|
|
297
297
|
<!-- Dilution Result -->
|
|
298
|
-
<div v-if="dilutionResult?.valid" class="
|
|
299
|
-
<div class="
|
|
300
|
-
<div class="
|
|
301
|
-
<span class="
|
|
302
|
-
<span class="
|
|
298
|
+
<div v-if="dilutionResult?.valid" class="mint-dose-calculator__result">
|
|
299
|
+
<div class="mint-dose-calculator__result-title">Result</div>
|
|
300
|
+
<div class="mint-dose-calculator__result-row">
|
|
301
|
+
<span class="mint-dose-calculator__result-label">Stock volume</span>
|
|
302
|
+
<span class="mint-dose-calculator__result-value">
|
|
303
303
|
{{ formatVolume(dilutionResult.stockVolume) }}
|
|
304
304
|
</span>
|
|
305
305
|
</div>
|
|
306
|
-
<div class="
|
|
307
|
-
<span class="
|
|
308
|
-
<span class="
|
|
306
|
+
<div class="mint-dose-calculator__result-row">
|
|
307
|
+
<span class="mint-dose-calculator__result-label">Diluent volume</span>
|
|
308
|
+
<span class="mint-dose-calculator__result-value">
|
|
309
309
|
{{ formatVolume(dilutionResult.diluentVolume) }}
|
|
310
310
|
</span>
|
|
311
311
|
</div>
|
|
312
|
-
<div class="
|
|
313
|
-
<span class="
|
|
314
|
-
<span class="
|
|
312
|
+
<div class="mint-dose-calculator__result-row">
|
|
313
|
+
<span class="mint-dose-calculator__result-label">Dilution factor</span>
|
|
314
|
+
<span class="mint-dose-calculator__result-value">
|
|
315
315
|
{{ dilutionResult.dilutionFactor.toFixed(1) }}×
|
|
316
316
|
</span>
|
|
317
317
|
</div>
|
|
318
318
|
</div>
|
|
319
319
|
|
|
320
|
-
<div v-else-if="dilutionResult?.error" class="
|
|
320
|
+
<div v-else-if="dilutionResult?.error" class="mint-dose-calculator__error">
|
|
321
321
|
{{ dilutionResult.error }}
|
|
322
322
|
</div>
|
|
323
323
|
</div>
|
|
@@ -325,11 +325,11 @@ watch(activeMode, (mode) => {
|
|
|
325
325
|
<!-- Serial Dilution form -->
|
|
326
326
|
<div
|
|
327
327
|
v-else-if="activeMode === 'serial'"
|
|
328
|
-
class="
|
|
328
|
+
class="mint-dose-calculator__form"
|
|
329
329
|
role="tabpanel"
|
|
330
330
|
>
|
|
331
|
-
<div class="
|
|
332
|
-
<label class="
|
|
331
|
+
<div class="mint-dose-calculator__field">
|
|
332
|
+
<label class="mint-dose-calculator__field-label">Starting Concentration</label>
|
|
333
333
|
<ConcentrationInput
|
|
334
334
|
v-model="serialStartConcentration"
|
|
335
335
|
:disabled="disabled"
|
|
@@ -338,43 +338,43 @@ watch(activeMode, (mode) => {
|
|
|
338
338
|
/>
|
|
339
339
|
</div>
|
|
340
340
|
|
|
341
|
-
<div class="
|
|
342
|
-
<div class="
|
|
343
|
-
<label class="
|
|
344
|
-
<div class="
|
|
341
|
+
<div class="mint-dose-calculator__field-row">
|
|
342
|
+
<div class="mint-dose-calculator__field">
|
|
343
|
+
<label class="mint-dose-calculator__field-label">Dilution Factor</label>
|
|
344
|
+
<div class="mint-dose-calculator__input-wrapper">
|
|
345
345
|
<input
|
|
346
346
|
v-model.number="serialDilutionFactor"
|
|
347
347
|
type="number"
|
|
348
348
|
:disabled="disabled"
|
|
349
|
-
class="
|
|
349
|
+
class="mint-dose-calculator__input"
|
|
350
350
|
min="1.1"
|
|
351
351
|
step="0.1"
|
|
352
352
|
/>
|
|
353
|
-
<span class="
|
|
353
|
+
<span class="mint-dose-calculator__unit-suffix">×</span>
|
|
354
354
|
</div>
|
|
355
355
|
</div>
|
|
356
356
|
|
|
357
|
-
<div class="
|
|
358
|
-
<label class="
|
|
357
|
+
<div class="mint-dose-calculator__field">
|
|
358
|
+
<label class="mint-dose-calculator__field-label">Dilutions</label>
|
|
359
359
|
<input
|
|
360
360
|
v-model.number="serialNumberOfDilutions"
|
|
361
361
|
type="number"
|
|
362
362
|
:disabled="disabled"
|
|
363
|
-
class="
|
|
363
|
+
class="mint-dose-calculator__input"
|
|
364
364
|
min="1"
|
|
365
365
|
max="24"
|
|
366
366
|
/>
|
|
367
367
|
</div>
|
|
368
368
|
</div>
|
|
369
369
|
|
|
370
|
-
<div class="
|
|
371
|
-
<label class="
|
|
372
|
-
<div class="
|
|
370
|
+
<div class="mint-dose-calculator__field">
|
|
371
|
+
<label class="mint-dose-calculator__field-label">Volume per Well</label>
|
|
372
|
+
<div class="mint-dose-calculator__field-row">
|
|
373
373
|
<input
|
|
374
374
|
type="number"
|
|
375
375
|
:value="serialVolumePerWell.value"
|
|
376
376
|
:disabled="disabled"
|
|
377
|
-
class="
|
|
377
|
+
class="mint-dose-calculator__input"
|
|
378
378
|
min="0"
|
|
379
379
|
step="any"
|
|
380
380
|
@input="handleVolumeChange($event, 'serial')"
|
|
@@ -382,7 +382,7 @@ watch(activeMode, (mode) => {
|
|
|
382
382
|
<select
|
|
383
383
|
:value="serialVolumePerWell.unit"
|
|
384
384
|
:disabled="disabled"
|
|
385
|
-
class="
|
|
385
|
+
class="mint-dose-calculator__select"
|
|
386
386
|
@change="handleVolumeUnitChange($event, 'serial')"
|
|
387
387
|
>
|
|
388
388
|
<option v-for="unit in volumeUnits" :key="unit" :value="unit">
|
|
@@ -392,22 +392,22 @@ watch(activeMode, (mode) => {
|
|
|
392
392
|
</div>
|
|
393
393
|
</div>
|
|
394
394
|
|
|
395
|
-
<div class="
|
|
395
|
+
<div class="mint-dose-calculator__divider" />
|
|
396
396
|
|
|
397
397
|
<!-- Serial Preview -->
|
|
398
|
-
<div v-if="serialResult?.valid" class="
|
|
399
|
-
<div class="
|
|
400
|
-
<div class="
|
|
398
|
+
<div v-if="serialResult?.valid" class="mint-dose-calculator__preview">
|
|
399
|
+
<div class="mint-dose-calculator__preview-title">Preview</div>
|
|
400
|
+
<div class="mint-dose-calculator__preview-steps">
|
|
401
401
|
<template v-for="(step, index) in serialResult.steps" :key="step.stepNumber">
|
|
402
|
-
<div class="
|
|
403
|
-
<span class="
|
|
404
|
-
<span class="
|
|
402
|
+
<div class="mint-dose-calculator__preview-step">
|
|
403
|
+
<span class="mint-dose-calculator__preview-step-num">{{ step.stepNumber }}:</span>
|
|
404
|
+
<span class="mint-dose-calculator__preview-step-conc">
|
|
405
405
|
{{ formatWithUnit(step.concentration, 3) }}
|
|
406
406
|
</span>
|
|
407
407
|
</div>
|
|
408
408
|
<span
|
|
409
409
|
v-if="index < serialResult.steps.length - 1"
|
|
410
|
-
class="
|
|
410
|
+
class="mint-dose-calculator__preview-arrow"
|
|
411
411
|
>
|
|
412
412
|
→
|
|
413
413
|
</span>
|
|
@@ -415,7 +415,7 @@ watch(activeMode, (mode) => {
|
|
|
415
415
|
</div>
|
|
416
416
|
</div>
|
|
417
417
|
|
|
418
|
-
<div v-else-if="serialResult?.error" class="
|
|
418
|
+
<div v-else-if="serialResult?.error" class="mint-dose-calculator__error">
|
|
419
419
|
{{ serialResult.error }}
|
|
420
420
|
</div>
|
|
421
421
|
</div>
|
|
@@ -423,11 +423,11 @@ watch(activeMode, (mode) => {
|
|
|
423
423
|
<!-- Conversion form -->
|
|
424
424
|
<div
|
|
425
425
|
v-else-if="activeMode === 'conversion'"
|
|
426
|
-
class="
|
|
426
|
+
class="mint-dose-calculator__form"
|
|
427
427
|
role="tabpanel"
|
|
428
428
|
>
|
|
429
|
-
<div class="
|
|
430
|
-
<label class="
|
|
429
|
+
<div class="mint-dose-calculator__field">
|
|
430
|
+
<label class="mint-dose-calculator__field-label">Input Concentration</label>
|
|
431
431
|
<ConcentrationInput
|
|
432
432
|
:disabled="disabled"
|
|
433
433
|
:molecular-weight="molecularWeight"
|
|
@@ -438,7 +438,7 @@ watch(activeMode, (mode) => {
|
|
|
438
438
|
|
|
439
439
|
<div
|
|
440
440
|
v-if="!molecularWeight"
|
|
441
|
-
class="
|
|
441
|
+
class="mint-dose-calculator__error"
|
|
442
442
|
>
|
|
443
443
|
Provide molecular weight for mass ↔ molarity conversion
|
|
444
444
|
</div>
|
|
@@ -447,18 +447,18 @@ watch(activeMode, (mode) => {
|
|
|
447
447
|
<!-- Molecular weight section (shown if needed) -->
|
|
448
448
|
<div
|
|
449
449
|
v-if="molecularWeight"
|
|
450
|
-
class="
|
|
450
|
+
class="mint-dose-calculator__mw-section"
|
|
451
451
|
>
|
|
452
|
-
<span class="
|
|
452
|
+
<span class="mint-dose-calculator__mw-label">
|
|
453
453
|
Molecular Weight: {{ molecularWeight }} g/mol
|
|
454
454
|
</span>
|
|
455
455
|
</div>
|
|
456
456
|
|
|
457
457
|
<!-- Apply to wells button -->
|
|
458
|
-
<div v-if="hasTargetWells" class="
|
|
458
|
+
<div v-if="hasTargetWells" class="mint-dose-calculator__form">
|
|
459
459
|
<button
|
|
460
460
|
type="button"
|
|
461
|
-
class="
|
|
461
|
+
class="mint-dose-calculator__apply-btn"
|
|
462
462
|
:disabled="!canApplyToWells || disabled"
|
|
463
463
|
@click="handleApplyToWells"
|
|
464
464
|
>
|
|
@@ -96,30 +96,30 @@ onUnmounted(() => {
|
|
|
96
96
|
</script>
|
|
97
97
|
|
|
98
98
|
<template>
|
|
99
|
-
<div ref="containerRef" class="
|
|
99
|
+
<div ref="containerRef" class="mint-dropdown-button">
|
|
100
100
|
<button
|
|
101
101
|
type="button"
|
|
102
102
|
:disabled="disabled || loading"
|
|
103
103
|
:class="[
|
|
104
|
-
'
|
|
105
|
-
`
|
|
106
|
-
`
|
|
104
|
+
'mint-dropdown-button__trigger',
|
|
105
|
+
`mint-dropdown-button__trigger--${variant}`,
|
|
106
|
+
`mint-dropdown-button__trigger--${size}`,
|
|
107
107
|
{
|
|
108
|
-
'
|
|
109
|
-
'
|
|
108
|
+
'mint-dropdown-button__trigger--disabled': disabled || loading,
|
|
109
|
+
'mint-dropdown-button__trigger--open': isOpen,
|
|
110
110
|
},
|
|
111
111
|
]"
|
|
112
112
|
:aria-expanded="isOpen"
|
|
113
113
|
aria-haspopup="listbox"
|
|
114
114
|
@click="toggle"
|
|
115
115
|
>
|
|
116
|
-
<svg v-if="loading" class="
|
|
116
|
+
<svg v-if="loading" class="mint-dropdown-button__spinner" viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
117
117
|
<circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="3" opacity="0.25" />
|
|
118
118
|
<path d="M12 2a10 10 0 0 1 10 10" stroke="currentColor" stroke-width="3" stroke-linecap="round" />
|
|
119
119
|
</svg>
|
|
120
|
-
<span class="
|
|
120
|
+
<span class="mint-dropdown-button__label">{{ selectedLabel }}</span>
|
|
121
121
|
<svg
|
|
122
|
-
:class="['
|
|
122
|
+
:class="['mint-dropdown-button__chevron', { 'mint-dropdown-button__chevron--open': isOpen }]"
|
|
123
123
|
viewBox="0 0 24 24"
|
|
124
124
|
fill="none"
|
|
125
125
|
stroke="currentColor"
|
|
@@ -131,36 +131,36 @@ onUnmounted(() => {
|
|
|
131
131
|
</svg>
|
|
132
132
|
</button>
|
|
133
133
|
|
|
134
|
-
<Transition name="
|
|
134
|
+
<Transition name="mint-dropdown-button-menu">
|
|
135
135
|
<ul
|
|
136
136
|
v-if="isOpen"
|
|
137
|
-
class="
|
|
137
|
+
class="mint-dropdown-button__menu"
|
|
138
138
|
role="listbox"
|
|
139
|
-
:aria-activedescendant="modelValue !== undefined ? `
|
|
139
|
+
:aria-activedescendant="modelValue !== undefined ? `mint-dropdown-option-${modelValue}` : undefined"
|
|
140
140
|
>
|
|
141
141
|
<li
|
|
142
142
|
v-for="option in options"
|
|
143
|
-
:id="`
|
|
143
|
+
:id="`mint-dropdown-option-${option.value}`"
|
|
144
144
|
:key="String(option.value)"
|
|
145
145
|
role="option"
|
|
146
146
|
:aria-selected="option.value === modelValue"
|
|
147
147
|
:aria-disabled="option.disabled"
|
|
148
148
|
:class="[
|
|
149
|
-
'
|
|
149
|
+
'mint-dropdown-button__option',
|
|
150
150
|
{
|
|
151
|
-
'
|
|
152
|
-
'
|
|
151
|
+
'mint-dropdown-button__option--selected': option.value === modelValue,
|
|
152
|
+
'mint-dropdown-button__option--disabled': option.disabled,
|
|
153
153
|
},
|
|
154
154
|
]"
|
|
155
155
|
@click="selectOption(option)"
|
|
156
156
|
>
|
|
157
|
-
<span class="
|
|
158
|
-
<span v-if="option.description" class="
|
|
157
|
+
<span class="mint-dropdown-button__option-label">{{ option.label }}</span>
|
|
158
|
+
<span v-if="option.description" class="mint-dropdown-button__option-description">
|
|
159
159
|
{{ option.description }}
|
|
160
160
|
</span>
|
|
161
161
|
<svg
|
|
162
162
|
v-if="option.value === modelValue"
|
|
163
|
-
class="
|
|
163
|
+
class="mint-dropdown-button__option-check"
|
|
164
164
|
viewBox="0 0 24 24"
|
|
165
165
|
fill="none"
|
|
166
166
|
stroke="currentColor"
|
|
@@ -29,12 +29,12 @@ const defaultIconPaths = [
|
|
|
29
29
|
</script>
|
|
30
30
|
|
|
31
31
|
<template>
|
|
32
|
-
<div :class="['
|
|
33
|
-
<div :class="['
|
|
32
|
+
<div :class="['mint-empty-state', `mint-empty-state--${variant}`, `mint-empty-state--${size}`]">
|
|
33
|
+
<div :class="['mint-empty-state__icon-wrapper', `mint-empty-state__icon-wrapper--${color}`]">
|
|
34
34
|
<slot name="icon">
|
|
35
35
|
<svg
|
|
36
|
-
class="
|
|
37
|
-
:class="`
|
|
36
|
+
class="mint-empty-state__icon"
|
|
37
|
+
:class="`mint-empty-state__icon--${color}`"
|
|
38
38
|
viewBox="0 0 24 24"
|
|
39
39
|
fill="none"
|
|
40
40
|
stroke="currentColor"
|
|
@@ -51,13 +51,13 @@ const defaultIconPaths = [
|
|
|
51
51
|
</svg>
|
|
52
52
|
</slot>
|
|
53
53
|
</div>
|
|
54
|
-
<div class="
|
|
55
|
-
<h3 v-if="title" class="
|
|
56
|
-
<p v-if="description" class="
|
|
54
|
+
<div class="mint-empty-state__body">
|
|
55
|
+
<h3 v-if="title" class="mint-empty-state__title">{{ title }}</h3>
|
|
56
|
+
<p v-if="description" class="mint-empty-state__description">{{ description }}</p>
|
|
57
57
|
<slot />
|
|
58
58
|
</div>
|
|
59
|
-
<div v-if="actionLabel" class="
|
|
60
|
-
<button class="
|
|
59
|
+
<div v-if="actionLabel" class="mint-empty-state__action">
|
|
60
|
+
<button class="mint-empty-state__button" @click="emit('action')">
|
|
61
61
|
{{ actionLabel }}
|
|
62
62
|
</button>
|
|
63
63
|
</div>
|