@morscherlab/mint-sdk 1.0.41 → 1.0.42

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.
@@ -2,7 +2,6 @@ import { PageSelectorItem } from '../types/components';
2
2
  import { PluginNavItem } from '../types/platform';
3
3
  export interface PluginNavPageSelectorOptions {
4
4
  pluginIcon?: string;
5
- pluginName?: string;
6
5
  }
7
6
  export declare function normalizeNavPath(path?: string): string;
8
7
  export declare function pageIdFromPath(path: string, fallback: string): string;
@@ -1,4 +1,4 @@
1
- import { $ as SampleLegend_default, A as GroupAssigner_default, B as StatusIndicator_default, Ct as BaseTabs_default, D as ScientificNumber_default, E as ChemicalFormula_default, F as BioTemplateRenderer_default, G as ComponentBindingRenderer_default, H as AppContainer_default, I as ChartContainer_default, J as AutoGroupModal_default, K as ScheduleCalendar_default, L as Breadcrumb_default, M as BioTemplatePresetWorkspaceView_default, N as BioTemplatePackWorkspaceView_default, O as ProtocolStepEditor_default, P as BioTemplateExperimentWorkspaceView_default, Q as PlateMapEditor_default, R as Avatar_default, St as SegmentedControl_default, U as DoseDesignWorkspaceView_default, V as Divider_default, W as ControlWorkspaceView_default, X as LoadingSpinner_default, Y as SampleHierarchyTree_default, Z as ReagentList_default, _ as InstrumentStateBadge_default, _t as AppToastContainer_default, a as ExperimentDataViewer_default, at as AppLayout_default, bt as Calendar_default, c as LcmsSequenceTable_default, ct as FormActions_default, dt as AppPluginSwitcher_default, et as WellPlate_default, ft as AppAvatarMenu_default, g as InstrumentStatusCard_default, gt as IconButton_default, ht as ThemeToggle_default, i as TimeRangeInput_default, it as MobileSupportGate_default, j as RackEditor_default, k as ReagentEditor_default, lt as StepWizard_default, mt as CollapsibleCard_default, n as FitPanel_default, nt as DoseCalculator_default, o as BatchProgressList_default, ot as AppSidebar_default, pt as PluginIcon_default, q as SampleSelector_default, r as ResourceCard_default, rt as PluginWorkspaceView_default, s as AuditTrail_default, st as FormBuilder_default, tt as ExperimentTimeline_default, ut as AppTopBar_default, v as InstrumentAlertLog_default, vt as AlertBox_default, wt as ColorSlider_default, xt as DropdownButton_default, y as SequenceProgressBar_default, yt as DataFrame_default, z as ProgressBar_default } from "../components-CJ2--4Ex.js";
1
+ import { $ as SampleLegend_default, A as GroupAssigner_default, B as StatusIndicator_default, Ct as BaseTabs_default, D as ScientificNumber_default, E as ChemicalFormula_default, F as BioTemplateRenderer_default, G as ComponentBindingRenderer_default, H as AppContainer_default, I as ChartContainer_default, J as AutoGroupModal_default, K as ScheduleCalendar_default, L as Breadcrumb_default, M as BioTemplatePresetWorkspaceView_default, N as BioTemplatePackWorkspaceView_default, O as ProtocolStepEditor_default, P as BioTemplateExperimentWorkspaceView_default, Q as PlateMapEditor_default, R as Avatar_default, St as SegmentedControl_default, U as DoseDesignWorkspaceView_default, V as Divider_default, W as ControlWorkspaceView_default, X as LoadingSpinner_default, Y as SampleHierarchyTree_default, Z as ReagentList_default, _ as InstrumentStateBadge_default, _t as AppToastContainer_default, a as ExperimentDataViewer_default, at as AppLayout_default, bt as Calendar_default, c as LcmsSequenceTable_default, ct as FormActions_default, dt as AppPluginSwitcher_default, et as WellPlate_default, ft as AppAvatarMenu_default, g as InstrumentStatusCard_default, gt as IconButton_default, ht as ThemeToggle_default, i as TimeRangeInput_default, it as MobileSupportGate_default, j as RackEditor_default, k as ReagentEditor_default, lt as StepWizard_default, mt as CollapsibleCard_default, n as FitPanel_default, nt as DoseCalculator_default, o as BatchProgressList_default, ot as AppSidebar_default, pt as PluginIcon_default, q as SampleSelector_default, r as ResourceCard_default, rt as PluginWorkspaceView_default, s as AuditTrail_default, st as FormBuilder_default, tt as ExperimentTimeline_default, ut as AppTopBar_default, v as InstrumentAlertLog_default, vt as AlertBox_default, wt as ColorSlider_default, xt as DropdownButton_default, y as SequenceProgressBar_default, yt as DataFrame_default, z as ProgressBar_default } from "../components-BGVwavdd.js";
2
2
  import { t as BaseButton_default } from "../BaseButton-Dgqrze41.js";
3
3
  import { r as BaseInput_default, t as BaseSelect_default } from "../BaseSelect-ekgr9fDo.js";
4
4
  import { B as TagsInput_default, L as DateTimePicker_default, M as SequenceInput_default, O as ConcentrationInput_default, P as FormulaInput_default, R as FileUploader_default, V as TimePicker_default, at as MultiSelect_default, ct as BaseSlider_default, dt as BaseCheckbox_default, ft as Tooltip_default, it as DatePicker_default, j as MoleculeInput_default, k as UnitInput_default, lt as BaseRadioGroup_default, pt as BaseTextarea_default, ut as BaseToggle_default, z as NumberInput_default } from "../useControlSchema-BZNdalmL.js";
@@ -372,7 +372,7 @@ var _hoisted_7$42 = {
372
372
  key: 0,
373
373
  class: "mint-dropdown-button__option-description"
374
374
  };
375
- var _hoisted_8$39 = {
375
+ var _hoisted_8$38 = {
376
376
  key: 1,
377
377
  class: "mint-dropdown-button__option-check",
378
378
  viewBox: "0 0 24 24",
@@ -491,7 +491,7 @@ var DropdownButton_default = /* @__PURE__ */ defineComponent({
491
491
  }, [
492
492
  createElementVNode("span", _hoisted_6$46, toDisplayString(option.label), 1),
493
493
  option.description ? (openBlock(), createElementBlock("span", _hoisted_7$42, toDisplayString(option.description), 1)) : createCommentVNode("", true),
494
- option.value === __props.modelValue ? (openBlock(), createElementBlock("svg", _hoisted_8$39, [..._cache[2] || (_cache[2] = [createElementVNode("path", { d: "M20 6 9 17l-5-5" }, null, -1)])])) : createCommentVNode("", true)
494
+ option.value === __props.modelValue ? (openBlock(), createElementBlock("svg", _hoisted_8$38, [..._cache[2] || (_cache[2] = [createElementVNode("path", { d: "M20 6 9 17l-5-5" }, null, -1)])])) : createCommentVNode("", true)
495
495
  ], 10, _hoisted_5$48);
496
496
  }), 128))], 8, _hoisted_4$50)) : createCommentVNode("", true)]),
497
497
  _: 1
@@ -515,7 +515,7 @@ var _hoisted_6$45 = [
515
515
  "onMouseenter"
516
516
  ];
517
517
  var _hoisted_7$41 = { class: "mint-calendar__day-number" };
518
- var _hoisted_8$38 = {
518
+ var _hoisted_8$37 = {
519
519
  key: 0,
520
520
  class: "mint-calendar__markers"
521
521
  };
@@ -794,7 +794,7 @@ var Calendar_default = /* @__PURE__ */ defineComponent({
794
794
  }]),
795
795
  onClick: ($event) => handleDayClick(day),
796
796
  onMouseenter: ($event) => handleDayHover(day)
797
- }, [renderSlot(_ctx.$slots, "day-content", { day }, () => [createElementVNode("span", _hoisted_7$41, toDisplayString(day.dayOfMonth), 1), day.markers.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_8$38, [(openBlock(true), createElementBlock(Fragment, null, renderList(day.markers.slice(0, 3), (marker, mi) => {
797
+ }, [renderSlot(_ctx.$slots, "day-content", { day }, () => [createElementVNode("span", _hoisted_7$41, toDisplayString(day.dayOfMonth), 1), day.markers.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_8$37, [(openBlock(true), createElementBlock(Fragment, null, renderList(day.markers.slice(0, 3), (marker, mi) => {
798
798
  return openBlock(), createElementBlock("span", {
799
799
  key: mi,
800
800
  class: normalizeClass(["mint-calendar__marker", `mint-calendar__marker--${marker.type ?? "dot"}`]),
@@ -822,7 +822,7 @@ var _hoisted_5$46 = {
822
822
  };
823
823
  var _hoisted_6$44 = ["checked", "indeterminate"];
824
824
  var _hoisted_7$40 = ["onClick"];
825
- var _hoisted_8$37 = { class: "mint-dataframe__th-content" };
825
+ var _hoisted_8$36 = { class: "mint-dataframe__th-content" };
826
826
  var _hoisted_9$33 = [
827
827
  "tabindex",
828
828
  "role",
@@ -1083,7 +1083,7 @@ var DataFrame_default = /* @__PURE__ */ defineComponent({
1083
1083
  minWidth: col.minWidth ? typeof col.minWidth === "number" ? `${col.minWidth}px` : col.minWidth : void 0
1084
1084
  }),
1085
1085
  onClick: ($event) => isColumnSortable(col) ? handleSort(col) : void 0
1086
- }, [renderSlot(_ctx.$slots, `header-${col.key}`, { column: col }, () => [createElementVNode("div", _hoisted_8$37, [createElementVNode("span", null, toDisplayString(col.label), 1), isColumnSortable(col) ? (openBlock(), createElementBlock("svg", {
1086
+ }, [renderSlot(_ctx.$slots, `header-${col.key}`, { column: col }, () => [createElementVNode("div", _hoisted_8$36, [createElementVNode("span", null, toDisplayString(col.label), 1), isColumnSortable(col) ? (openBlock(), createElementBlock("svg", {
1087
1087
  key: 0,
1088
1088
  class: normalizeClass(["mint-dataframe__sort-icon", {
1089
1089
  "mint-dataframe__sort-icon--asc": activeSort.value?.key === col.key && activeSort.value?.direction === "asc",
@@ -1246,7 +1246,7 @@ var _hoisted_6$43 = {
1246
1246
  class: "mint-alert__title"
1247
1247
  };
1248
1248
  var _hoisted_7$39 = { class: "mint-alert__message" };
1249
- var _hoisted_8$36 = {
1249
+ var _hoisted_8$35 = {
1250
1250
  key: 4,
1251
1251
  class: "mint-alert__actions"
1252
1252
  };
@@ -1301,7 +1301,7 @@ var AlertBox_default = /* @__PURE__ */ defineComponent({
1301
1301
  createElementVNode("path", { d: "M12 8h.01" }, null, -1)
1302
1302
  ])])),
1303
1303
  createElementVNode("div", _hoisted_5$45, [props.title ? (openBlock(), createElementBlock("h4", _hoisted_6$43, toDisplayString(props.title), 1)) : createCommentVNode("", true), createElementVNode("div", _hoisted_7$39, [renderSlot(_ctx.$slots, "default")])]),
1304
- hasActions() ? (openBlock(), createElementBlock("div", _hoisted_8$36, [renderSlot(_ctx.$slots, "actions", {}, () => [createElementVNode("button", {
1304
+ hasActions() ? (openBlock(), createElementBlock("div", _hoisted_8$35, [renderSlot(_ctx.$slots, "actions", {}, () => [createElementVNode("button", {
1305
1305
  type: "button",
1306
1306
  class: normalizeClass(["mint-alert__action-btn", `mint-alert__action-btn--${props.type}`]),
1307
1307
  onClick: _cache[0] || (_cache[0] = ($event) => emit("action"))
@@ -1572,7 +1572,7 @@ var _hoisted_4$46 = ["d"];
1572
1572
  var _hoisted_5$44 = ["d"];
1573
1573
  var _hoisted_6$42 = { class: "mint-collapsible-card__titles" };
1574
1574
  var _hoisted_7$38 = { class: "mint-collapsible-card__title" };
1575
- var _hoisted_8$35 = {
1575
+ var _hoisted_8$34 = {
1576
1576
  key: 0,
1577
1577
  class: "mint-collapsible-card__subtitle"
1578
1578
  };
@@ -1719,7 +1719,7 @@ var CollapsibleCard_default = /* @__PURE__ */ defineComponent({
1719
1719
  key: 1,
1720
1720
  class: "mint-collapsible-card__icon-text",
1721
1721
  style: normalizeStyle(iconColorStyle.value)
1722
- }, toDisplayString(__props.icon), 5))], 4)) : createCommentVNode("", true), createElementVNode("div", _hoisted_6$42, [createElementVNode("h3", _hoisted_7$38, toDisplayString(__props.title), 1), __props.subtitle ? (openBlock(), createElementBlock("p", _hoisted_8$35, toDisplayString(__props.subtitle), 1)) : createCommentVNode("", true)])])], 10, _hoisted_2$51), createElementVNode("div", _hoisted_9$32, [
1722
+ }, toDisplayString(__props.icon), 5))], 4)) : createCommentVNode("", true), createElementVNode("div", _hoisted_6$42, [createElementVNode("h3", _hoisted_7$38, toDisplayString(__props.title), 1), __props.subtitle ? (openBlock(), createElementBlock("p", _hoisted_8$34, toDisplayString(__props.subtitle), 1)) : createCommentVNode("", true)])])], 10, _hoisted_2$51), createElementVNode("div", _hoisted_9$32, [
1723
1723
  __props.badge !== void 0 ? (openBlock(), createElementBlock("span", {
1724
1724
  key: 0,
1725
1725
  class: normalizeClass(badgeClasses.value)
@@ -2033,7 +2033,7 @@ var _hoisted_7$37 = {
2033
2033
  "stroke-linejoin": "round",
2034
2034
  "aria-hidden": "true"
2035
2035
  };
2036
- var _hoisted_8$34 = ["d"];
2036
+ var _hoisted_8$33 = ["d"];
2037
2037
  var _hoisted_9$31 = ["src"];
2038
2038
  //#endregion
2039
2039
  //#region src/components/PluginIcon.vue
@@ -2143,7 +2143,7 @@ var PluginIcon_default = /* @__PURE__ */ defineComponent({
2143
2143
  "stroke-linejoin": "round"
2144
2144
  }, null, 8, _hoisted_6$41);
2145
2145
  }), 128))
2146
- ], 8, _hoisted_1$56)) : detected.value.format === "path" || detected.value.format === "fallback" ? (openBlock(), createElementBlock("svg", _hoisted_7$37, [createElementVNode("path", { d: iconValue.value }, null, 8, _hoisted_8$34)])) : (openBlock(), createElementBlock("img", {
2146
+ ], 8, _hoisted_1$56)) : detected.value.format === "path" || detected.value.format === "fallback" ? (openBlock(), createElementBlock("svg", _hoisted_7$37, [createElementVNode("path", { d: iconValue.value }, null, 8, _hoisted_8$33)])) : (openBlock(), createElementBlock("img", {
2147
2147
  key: 2,
2148
2148
  class: "mint-plugin-icon__img",
2149
2149
  src: iconValue.value,
@@ -2176,10 +2176,6 @@ var _hoisted_6$40 = {
2176
2176
  class: "mint-page-selector__icon-fallback"
2177
2177
  };
2178
2178
  var _hoisted_7$36 = { class: "mint-page-selector__item-label" };
2179
- var _hoisted_8$33 = {
2180
- key: 0,
2181
- class: "mint-page-selector__item-hint"
2182
- };
2183
2179
  //#endregion
2184
2180
  //#region src/components/internal/AppTopBarPageSelectorInternal.vue
2185
2181
  var AppTopBarPageSelectorInternal_default = /* @__PURE__ */ defineComponent({
@@ -2254,17 +2250,13 @@ var AppTopBarPageSelectorInternal_default = /* @__PURE__ */ defineComponent({
2254
2250
  role: "menuitem",
2255
2251
  onClick: ($event) => handleSelect(page)
2256
2252
  }, {
2257
- default: withCtx(() => [
2258
- createElementVNode("span", { class: normalizeClass(["mint-page-selector__item-icon", { "mint-page-selector__item-icon--metadata": unref(isPluginIconFormat)(page.icon) }]) }, [renderSlot(_ctx.$slots, "item-icon", { page }, () => [unref(isPluginIconFormat)(page.icon) ? (openBlock(), createBlock(PluginIcon_default, {
2259
- key: 0,
2260
- class: "mint-page-selector__metadata-icon",
2261
- icon: page.icon,
2262
- size: "sm",
2263
- variant: "tinted"
2264
- }, null, 8, ["icon"])) : (openBlock(), createElementBlock("span", _hoisted_6$40, toDisplayString(page.label.charAt(0)), 1))])], 2),
2265
- createElementVNode("span", _hoisted_7$36, toDisplayString(page.label), 1),
2266
- page.hint ? (openBlock(), createElementBlock("span", _hoisted_8$33, toDisplayString(page.hint), 1)) : createCommentVNode("", true)
2267
- ]),
2253
+ default: withCtx(() => [createElementVNode("span", { class: normalizeClass(["mint-page-selector__item-icon", { "mint-page-selector__item-icon--metadata": unref(isPluginIconFormat)(page.icon) }]) }, [renderSlot(_ctx.$slots, "item-icon", { page }, () => [unref(isPluginIconFormat)(page.icon) ? (openBlock(), createBlock(PluginIcon_default, {
2254
+ key: 0,
2255
+ class: "mint-page-selector__metadata-icon",
2256
+ icon: page.icon,
2257
+ size: "sm",
2258
+ variant: "tinted"
2259
+ }, null, 8, ["icon"])) : (openBlock(), createElementBlock("span", _hoisted_6$40, toDisplayString(page.label.charAt(0)), 1))])], 2), createElementVNode("span", _hoisted_7$36, toDisplayString(page.label), 1)]),
2268
2260
  _: 2
2269
2261
  }, 1032, [
2270
2262
  "href",
@@ -2788,8 +2780,7 @@ function pluginNavItemToPageSelectorItem(item, index, options = {}) {
2788
2780
  id: item.id || pageIdFromPath(path, `page-${index + 1}`),
2789
2781
  label: item.label,
2790
2782
  to: path,
2791
- icon: item.icon || options.pluginIcon,
2792
- hint: item.description || options.pluginName
2783
+ icon: item.icon || options.pluginIcon
2793
2784
  };
2794
2785
  }
2795
2786
  function currentPagePath(pathname, routePrefix) {
@@ -2952,10 +2943,7 @@ var AppTopBar_default = /* @__PURE__ */ defineComponent({
2952
2943
  const hasAccountMenu = computed(() => !!props.accountMenu?.length);
2953
2944
  const hasTitleGroup = computed(() => !hasPageSelector.value && !hasPluginSwitcher.value && !!props.title && !!props.subtitle);
2954
2945
  const hasTitleOnly = computed(() => !hasPageSelector.value && !hasPluginSwitcher.value && !hasTitleGroup.value && !!props.title);
2955
- const platformPageSelector = computed(() => hasPlatformPageSelector.value ? plugin.value?.nav_items?.map((item, index) => pluginNavItemToPageSelectorItem(item, index, {
2956
- pluginIcon: plugin.value?.icon,
2957
- pluginName: plugin.value?.name
2958
- })) ?? [] : []);
2946
+ const platformPageSelector = computed(() => hasPlatformPageSelector.value ? plugin.value?.nav_items?.map((item, index) => pluginNavItemToPageSelectorItem(item, index, { pluginIcon: plugin.value?.icon })) ?? [] : []);
2959
2947
  const normalizedPageSelector = computed(() => props.pageSelector !== void 0 ? props.pageSelector.map(normalizeItemInput) : platformPageSelector.value);
2960
2948
  const normalizedPillNav = computed(() => props.pillNav ?? []);
2961
2949
  const normalizedSettingsTabs = computed(() => props.settingsConfig?.tabs?.map(normalizeItemInput) ?? []);
@@ -4757,6 +4745,7 @@ var PluginWorkspaceView_default = /* @__PURE__ */ defineComponent({
4757
4745
  emitPageSelectorSelect: (page) => emit("page-selector-select", page),
4758
4746
  emitPillSelect: (item) => emit("pill-select", item)
4759
4747
  });
4748
+ const visiblePageSelector = computed(() => (props.pageSelector?.length ?? 0) > 1 ? props.pageSelector : void 0);
4760
4749
  const hasSidebarSurface = computed(() => {
4761
4750
  return hasPluginWorkspaceSidebarSurface({
4762
4751
  showSidebar: props.showSidebar,
@@ -4809,7 +4798,7 @@ var PluginWorkspaceView_default = /* @__PURE__ */ defineComponent({
4809
4798
  variant: __props.topBarVariant,
4810
4799
  "home-path": __props.homePath,
4811
4800
  "show-logo": __props.showLogo,
4812
- "page-selector": __props.pageSelector,
4801
+ "page-selector": visiblePageSelector.value,
4813
4802
  "current-page-selector-id": unref(resolvedCurrentPageSelectorId),
4814
4803
  "plugin-switcher": __props.pluginSwitcher,
4815
4804
  "pill-nav": unref(resolvedPillNav),
@@ -16619,4 +16608,4 @@ var components_exports = /* @__PURE__ */ __exportAll({
16619
16608
  //#endregion
16620
16609
  export { SampleLegend_default as $, GroupAssigner_default as A, StatusIndicator_default as B, formatSequenceRemaining as C, BaseTabs_default as Ct, ScientificNumber_default as D, ChemicalFormula_default as E, BioTemplateRenderer_default as F, ComponentBindingRenderer_default as G, AppContainer_default as H, ChartContainer_default as I, AutoGroupModal_default as J, ScheduleCalendar_default as K, Breadcrumb_default as L, BioTemplatePresetWorkspaceView_default as M, BioTemplatePackWorkspaceView_default as N, ProtocolStepEditor_default as O, BioTemplateExperimentWorkspaceView_default as P, PlateMapEditor_default as Q, Avatar_default as R, formatSequenceEta as S, SegmentedControl_default as St, sequenceSamplesRemaining as T, DoseDesignWorkspaceView_default as U, Divider_default as V, ControlWorkspaceView_default as W, LoadingSpinner_default as X, SampleHierarchyTree_default as Y, ReagentList_default as Z, InstrumentStateBadge_default as _, AppToastContainer_default as _t, ExperimentDataViewer_default as a, AppLayout_default as at, estimateSequenceFinishDate as b, Calendar_default as bt, LcmsSequenceTable_default as c, FormActions_default as ct, extractLcmsCommonPrefix as d, AppPluginSwitcher_default as dt, WellPlate_default as et, extractLcmsSampleName as f, AppAvatarMenu_default as ft, InstrumentStatusCard_default as g, IconButton_default as gt, reconstructLcmsPlateCellsFromSequenceItems as h, ThemeToggle_default as ht, TimeRangeInput_default as i, MobileSupportGate_default as it, RackEditor_default as j, ReagentEditor_default as k, DEFAULT_LCMS_SEQUENCE_COLUMNS as l, StepWizard_default as lt, lcmsWellIdFromPosition as m, CollapsibleCard_default as mt, FitPanel_default as n, DoseCalculator_default as nt, BatchProgressList_default as o, AppSidebar_default as ot, inferLcmsPlateTypeFromWellIds as p, PluginIcon_default as pt, SampleSelector_default as q, ResourceCard_default as r, PluginWorkspaceView_default as rt, AuditTrail_default as s, FormBuilder_default as st, components_exports as t, ExperimentTimeline_default as tt, basenameFromWindowsPath as u, AppTopBar_default as ut, InstrumentAlertLog_default as v, AlertBox_default as vt, sequenceProgressPercent as w, ColorSlider_default as wt, estimateSequenceRemainingSeconds as x, DropdownButton_default as xt, SequenceProgressBar_default as y, DataFrame_default as yt, ProgressBar_default as z };
16621
16610
 
16622
- //# sourceMappingURL=components-CJ2--4Ex.js.map
16611
+ //# sourceMappingURL=components-BGVwavdd.js.map