@magmonium/one 0.2.30 → 0.2.32

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.
@@ -3481,10 +3481,10 @@ const visibleNavId = (navId) => {
3481
3481
  };
3482
3482
  /**
3483
3483
  * The direct children of a Nav. `children` is the authored list, but a Nav that
3484
- * never declared one is not childless: the map already holds every node fetched
3485
- * for this descent, and a child is named by its own id. Reading the map when the
3486
- * list is absent is what keeps a generated tree — where only the leaves were
3487
- * emitted — from titling a leaf over an empty panel.
3484
+ * lists none is not childless: the map already holds every node fetched for
3485
+ * this descent, and a child is named by its own id. Reading the map when the
3486
+ * list is empty is what keeps a generated tree — whose `root.yml` names the app
3487
+ * and nothing else — from titling a leaf over an empty panel.
3488
3488
  */
3489
3489
  const childIdsOf = (navId, navMap) => {
3490
3490
  const declared = navMap[navId]?.children;
@@ -3604,15 +3604,9 @@ function deriveBreadcrumb(params) {
3604
3604
  * overrides by registering at the same NavId.
3605
3605
  */
3606
3606
  /**
3607
- * Platform children rendered as rows in the root panel. Empty on purpose
3608
- * search, notification, user and settings are all reached by chrome buttons
3609
- * (header / footer), and listing them here would put a row beside the icon
3610
- * that already opens them. Root's runtime rows are App Navs only.
3611
- */
3612
- const PLATFORM_ROOT_CHILDREN = [];
3613
- /**
3614
- * Platform Navs reached by a chrome button rather than a root row. Kept out of
3615
- * `root.children` at runtime so the menu does not duplicate the menubar.
3607
+ * Platform Navs that also carry a chrome button search, notification and user
3608
+ * in the menubar, settings in the footer. The button is a shortcut to the same
3609
+ * NavId the row names, not a substitute for it: one NavRef, reached either way.
3616
3610
  */
3617
3611
  const PLATFORM_BUTTON_NAV_IDS = [
3618
3612
  'root_search',
@@ -3620,6 +3614,13 @@ const PLATFORM_BUTTON_NAV_IDS = [
3620
3614
  'root_user',
3621
3615
  'root_settings',
3622
3616
  ];
3617
+ /**
3618
+ * Platform children rendered as rows in the root panel — the chrome, behind
3619
+ * whatever App Navs the app authored. A panel that listed the app's pages and
3620
+ * nothing else made chrome reachable only by finding its icon, so the rows are
3621
+ * the readable half of the same NavRefs the buttons hold.
3622
+ */
3623
+ const PLATFORM_ROOT_CHILDREN = [...PLATFORM_BUTTON_NAV_IDS];
3623
3624
  /**
3624
3625
  * Root carries no title of its own — an app's `navs/root.yml` names the app,
3625
3626
  * and that is the one field of root the asset owns outright.
@@ -3725,9 +3726,8 @@ const createPlatformNavMap = () => Object.fromEntries(Object.entries(PLATFORM_NA
3725
3726
  * same id. An extensible one merges: the asset contributes its App Nav
3726
3727
  * children (and, at `root`, the app's own `title` / `logo` / `icon`), the
3727
3728
  * platform children follow, and NavKind and NavPresentation stay the
3728
- * library's — so an asset cannot delete chrome (settings still exists even
3729
- * though it is not a root row), and shipping a closed Platform NavId cannot
3730
- * redefine it.
3729
+ * library's — so an asset cannot delete chrome by omitting it from `root.yml`,
3730
+ * and shipping a closed Platform NavId cannot redefine it.
3731
3731
  */
3732
3732
  const mergePlatformNav = (nav, navId) => {
3733
3733
  const platform = PLATFORM_NAV_MAP[navId];
@@ -3736,10 +3736,9 @@ const mergePlatformNav = (nav, navId) => {
3736
3736
  if (!isExtensiblePlatformNavId(navId))
3737
3737
  return { ...platform };
3738
3738
  const platformChildren = platform.children ?? [];
3739
- const appChildren = (nav.children ?? []).filter((childId) => !platformChildren.includes(childId) &&
3740
- // Chrome-button Navs stay addressable but never become root menu rows,
3741
- // even when an older asset still listed them under root.
3742
- !(navId === ROOT_NAV$1 && PLATFORM_BUTTON_NAV_IDS.includes(childId)));
3739
+ // An app that listed a platform child of its own gets it once, in the
3740
+ // library's own place: the seed is what fixes chrome's order.
3741
+ const appChildren = (nav.children ?? []).filter((childId) => !platformChildren.includes(childId));
3743
3742
  return {
3744
3743
  ...nav,
3745
3744
  kind: platform.kind,
@@ -6561,7 +6560,7 @@ class SectionFormItemComponent extends ConfigComponent {
6561
6560
  break;
6562
6561
  }
6563
6562
  case InputType.TOGGLE: {
6564
- const { ToggleInputComponent } = await import('./magmonium-one-toggle-DGDQ1WqU.mjs');
6563
+ const { ToggleInputComponent } = await import('./magmonium-one-toggle-o2rUxJbn.mjs');
6565
6564
  this.createDynamicComponent(seq, ToggleInputComponent, [], true);
6566
6565
  break;
6567
6566
  }
@@ -6573,12 +6572,12 @@ class SectionFormItemComponent extends ConfigComponent {
6573
6572
  break;
6574
6573
  }
6575
6574
  case InputType.PASSWORD: {
6576
- const { PasswordInputComponent } = await import('./magmonium-one-password-XcxANvjC.mjs');
6575
+ const { PasswordInputComponent } = await import('./magmonium-one-password-DUuFTISJ.mjs');
6577
6576
  this.createDynamicComponent(seq, PasswordInputComponent);
6578
6577
  break;
6579
6578
  }
6580
6579
  case InputType.OTP: {
6581
- const { OtpInputComponent } = await import('./magmonium-one-otp-9ViyVIbd.mjs');
6580
+ const { OtpInputComponent } = await import('./magmonium-one-otp-BUouuBsP.mjs');
6582
6581
  this.createDynamicComponent(seq, OtpInputComponent);
6583
6582
  break;
6584
6583
  }
@@ -19981,7 +19980,7 @@ class WrapperInputComponent extends ConfigComponent {
19981
19980
  break;
19982
19981
  }
19983
19982
  case InputType.TOGGLE: {
19984
- const { ToggleInputComponent } = await import('./magmonium-one-toggle-DGDQ1WqU.mjs');
19983
+ const { ToggleInputComponent } = await import('./magmonium-one-toggle-o2rUxJbn.mjs');
19985
19984
  this.createDynamicComponent(seq, ToggleInputComponent, [], true);
19986
19985
  break;
19987
19986
  }
@@ -19993,12 +19992,12 @@ class WrapperInputComponent extends ConfigComponent {
19993
19992
  break;
19994
19993
  }
19995
19994
  case InputType.PASSWORD: {
19996
- const { PasswordInputComponent } = await import('./magmonium-one-password-XcxANvjC.mjs');
19995
+ const { PasswordInputComponent } = await import('./magmonium-one-password-DUuFTISJ.mjs');
19997
19996
  this.createDynamicComponent(seq, PasswordInputComponent);
19998
19997
  break;
19999
19998
  }
20000
19999
  case InputType.OTP: {
20001
- const { OtpInputComponent } = await import('./magmonium-one-otp-9ViyVIbd.mjs');
20000
+ const { OtpInputComponent } = await import('./magmonium-one-otp-BUouuBsP.mjs');
20002
20001
  this.createDynamicComponent(seq, OtpInputComponent);
20003
20002
  break;
20004
20003
  }
@@ -34218,4 +34217,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
34218
34217
  */
34219
34218
 
34220
34219
  export { DEFAULT_NAV_SEGMENT as $, ACCESS_DOMAINS as A, BaseInputComponent as B, COMPONENT_INPUT_REGISTRY as C, CardComponent as D, CardWrapperComponent as E, CarouselComponent as F, ChartComponent as G, CheckboxInputComponent as H, IS_DESIGN_MODE as I, ClearableInputComponent as J, ColComponent as K, LabelComponent as L, ColorPickerInputComponent as M, CommentItemComponent as N, CommentsApiService as O, CommentsComponent as P, CommentsStore as Q, ComponentInputComponent as R, ComponentStepperComponent as S, TranslatePipe as T, ConfigComponent as U, ConfirmComponent as V, ContextMenuComponent as W, CustomIconClass as X, CustomIconEditComponent as Y, DEFAULT_FILTER_RANGE_MODE as Z, DEFAULT_FILTER_VARIANT as _, BaseTextInputComponent as a, NAV_ID_SEP as a$, DEFAULT_SIZE as a0, DashboardCardComponent as a1, DateInputComponent as a2, DatePickerComponent as a3, DeviceService as a4, DomService as a5, Domain as a6, DotGridComponent as a7, DragListDirective as a8, DragListItemDirective as a9, InstrumentScoreComponent as aA, InterceptorObservables as aB, JumbotronComponent as aC, KeyValueComponent as aD, LAYOUT_ASSET_FOLDER as aE, LOGIN_COMPONENT as aF, LOGIN_STORE as aG, LanguageComponent as aH, LogoComponent as aI, MAG_SOCKET_EVENT as aJ, MHeroColorDirective as aK, MHeroComponent as aL, MODAL_REF as aM, MODAL_STORE_REF as aN, MRefDirective as aO, MStepComponent as aP, MURL_PARAM as aQ, MURL_SEP as aR, ManifestEnrichmentService as aS, MenuComponent as aT, ModalDirective as aU, ModalRef as aV, ModalStore as aW, MoneyPipe as aX, MultiRangeInputComponent as aY, MurlUrlSerializer as aZ, NAV_DEFAULT_MURL as a_, DraggableDirective as aa, DropdownInputComponent as ab, FILTER_GROUP_CONTEXT as ac, FILTER_RANGE_MODES as ad, FILTER_VARIANTS as ae, FLEX_VARIANTS as af, FOLDER_PICK_LISTENER as ag, FORM_ASSET_FOLDER as ah, FileService as ai, FileUploadDirective as aj, FileUploadInputComponent as ak, FlexComponent as al, FlexItemComponent as am, FormGroupComponent as an, FrameComponent as ao, FreezeService as ap, GRID_BREAKPOINTS as aq, GetNavService as ar, HeaderComponent$1 as as, HighlightDirective as at, HttpService as au, ICON_SOURCE as av, IS_SIDE_PANEL as aw, IconComponent as ax, ImgComponent as ay, InputType as az, TextOutputComponent as b, SectionBadgesComponent as b$, NAV_MAIN_BUTTONS as b0, NAV_SEGMENT_RE as b1, NAV_STORE_REF as b2, NAV_WC_COMPONENTS as b3, NAV_WIDGET_MAP as b4, NavComponent as b5, NavDetailsComponent as b6, NavHeaderComponent as b7, NavMenuComponent as b8, NavStore as b9, PwaInstallComponent as bA, ROOT_NAV$1 as bB, RadioGroupComponent as bC, RadioInputComponent as bD, RangeInputComponent as bE, RatingInputComponent as bF, ReactiveElementComponent as bG, RemoteComponent as bH, RemoteLoaderService as bI, ResizeElementComponent as bJ, RouteContainer as bK, RowComponent as bL, SEARCH_QUERY as bM, SEARCH_RESULTS_EVENT as bN, SECTION_ACCORDION_GROUP as bO, SECTION_FORM_CONTEXT as bP, SHARED_ICONS as bQ, SIZE_CONTEXT as bR, ScoreComponent as bS, ScrollComponent as bT, ScrollService as bU, SearchPanelComponent as bV, SearchStore as bW, SearchUserPanelComponent as bX, SectionAccordionDirective as bY, SectionAccordionGroupDirective as bZ, SectionBackComponent as b_, NavTrailComponent as ba, NothingComponent as bb, NotificationElementComponent as bc, NotificationGroupComponent as bd, NotificationPopupComponent as be, NotificationService as bf, NotificationStore as bg, NotificationType as bh, NotificationWidgetComponent as bi, ONE_ASSET_BASE_URL as bj, OPTIONS_SOURCE as bk, OVERLAY_WIDGETS as bl, OneApp as bm, OptionsSourceDirective as bn, OverlayBodyComponent as bo, OverlayRef as bp, OverlayService as bq, PLATFORM_BUTTON_NAV_IDS as br, PLATFORM_EXTENSIBLE_NAV_IDS as bs, PLATFORM_NAV_MAP as bt, PLATFORM_ROOT_CHILDREN as bu, PaginationComponent as bv, PanelComponent as bw, PercentagePipe as bx, PlaygroundComponent as by, PositionDirective as bz, ButtonComponent as c, UlComponent as c$, SectionButtonGroupComponent as c0, SectionCardComponent as c1, SectionCarouselComponent as c2, SectionComponent as c3, SectionFilterComponent as c4, SectionFilterGroupComponent as c5, SectionFilterMenuComponent as c6, SectionFilterPanelComponent as c7, SectionFilterRangePanelComponent as c8, SectionFooterComponent as c9, StrokeLinejoin as cA, SummaryComponent as cB, SvgGeneratorComponent as cC, SvgGeneratorService as cD, SvgService as cE, TOTAL_COLUMNS as cF, TRANSLATION_SOURCE as cG, TableComponent as cH, TechnicalMeterComponent as cI, TextInputComponent as cJ, TextareaInputComponent as cK, ThemeComponent as cL, ThemeDataService as cM, ThemeService as cN, ThemeStore as cO, TimeAgoPipe as cP, TimelineComponent as cQ, ToggleButtonComponent as cR, ToggleInputComponent as cS, ToggleRadioInputComponent as cT, ToolTipDirective as cU, TooltipComponent as cV, TranslateService as cW, TreeGridComponent as cX, URL_SEP as cY, USER_STORE_REF as cZ, USER_TAB_MAP as c_, SectionFormComponent as ca, SectionFormItemComponent as cb, SectionHeaderComponent as cc, SectionHeroComponent as cd, SectionPaginationComponent as ce, SectionSearchComponent as cf, SectionStepperComponent as cg, SectionTabsComponent as ch, SectionToggleComponent as ci, SectionToggleItemDirective as cj, SelectableCardInputComponent as ck, SelectorDirective as cl, SettingsSearchBarComponent as cm, SettingsSearchService as cn, ShapeComponent as co, SharedStoreRegistry as cp, SidePanelDirective as cq, Size as cr, SocketStore as cs, SortComponent as ct, StatComponent as cu, StepComponent as cv, StepperComponent as cw, StepsComponent as cx, StorageService as cy, StrokeLinecap as cz, APP_CONTEXT_REF as d, hexToRgb as d$, UniverseComponent as d0, UserApiService as d1, UserAvatarComponent as d2, UserComponent as d3, UserNavComponent as d4, UserSettingsComponent as d5, UserStore as d6, WC_ROUTE_CHANGED_EVENT as d7, WC_SEARCH_GROUPS as d8, WIN_USER_TAB_HOOK as d9, evaluate as dA, evaluateBool as dB, filterHoldsList as dC, filterHoldsOneBound as dD, filterHoldsOptions as dE, filterHoldsRange as dF, filterList as dG, filterOne as dH, filterPanelOf as dI, filterPanelWidth as dJ, filterRange as dK, filterTreeGridRows as dL, filterValueList as dM, filterValues as dN, flattenTreeGridRows as dO, formatBadgeCount as dP, fullName as dQ, generateClipPath as dR, generateTransform as dS, getClassList as dT, getProperty as dU, getScrollParent as dV, getTierFromPreviewPath as dW, getTreeGridRow as dX, getUniqueId as dY, getValue as dZ, hasErrorComputed as d_, WIN_USER_TAB_KEY as da, WatermarkComponent as db, WcRouterStore as dc, WrapperInputComponent as dd, anchorNavId as de, applyColorsToElement as df, bootstrapMagApp as dg, bootstrapPwaInstall as dh, buildWcBaseUrl as di, calculateLuminance as dj, calculateRanks as dk, cellText as dl, checkFilterCondition as dm, childNavId as dn, classListSignal as dp, coerceSize as dq, cornerEdge as dr, cornerSide as ds, createMap as dt, createPlatformNavMap as du, deriveAvatarGradient as dv, deriveContrastColor as dw, deriveOppositeColor as dx, derivePropertyName as dy, emailValidation as dz, ASSET_BASE_URL as e, provideSizeContext as e$, hslToRgb$1 as e0, initMagmoniumApp as e1, initialNotificationState as e2, initialState$2 as e3, initials as e4, injectAuthenticate as e5, injectInstallApp as e6, injectParentSize as e7, injectScrollSticky as e8, isButtonName as e9, minValidation as eA, miniMarkToHtml as eB, navIdChain as eC, navIdFor as eD, navIdSegment as eE, navIdToRoutePath as eF, navIdToSegments as eG, navToId as eH, parentNavId as eI, parseAddress as eJ, parseColor as eK, parsePatternNames as eL, patternValidation as eM, patternsValidation as eN, platformNavWidgets as eO, privateGuard as eP, processImageToSvg as eQ, provideAppContext as eR, provideMagAppConfig as eS, provideMagWcConfig as eT, provideMagWcRoutes as eU, provideModalComponents as eV, provideMurlUrlSerializer as eW, provideNavWidgets as eX, provideOverlayWidgets as eY, providePlatformNavWidgets as eZ, provideSearch as e_, isCancelledComputed as ea, isExtensiblePlatformNavId as eb, isJson as ec, isLoadingComputed as ed, isLocalhost as ee, isPlatformNavId as ef, isSize as eg, isTierPreview as eh, isUrlLocalhost as ei, isValidNavId as ej, isValidNavSegment as ek, isWebComponent as el, linkToId as em, linkToNav as en, loadingActions as eo, mInterceptor as ep, manualValidation as eq, matchFieldValidation as er, maxLengthValidation as es, maxValidation as et, mergePlatformNav as eu, mergeUnique as ev, mergeUniqueBy as ew, mergeUniqueWith as ex, minAgeValidation as ey, minLengthValidation as ez, AccordionBodyDirective as f, provideUserTabs as f0, publicGuard as f1, readFieldPatterns as f2, renderAddress as f3, requiredValidation as f4, resolveConfigAsset as f5, resolveIconSize as f6, resolvePallet as f7, resolvePatternRules as f8, resolveSize as f9, rgbToHex as fa, rgbToHsl as fb, rowHasChildren as fc, samePatterns as fd, segmentsToNavId as fe, setProperty as ff, setTreeGridChildren as fg, settingsWidgets as fh, shouldShowBadge as fi, splitNavId as fj, splitOnMatch as fk, stringToColor as fl, toAttrBool as fm, toAttrNumber as fn, toCssLength as fo, toHostNavId as fp, toLength$1 as fq, toLocalNavId as fr, toggleTreeGridRow as fs, unfetchedPlatformNav as ft, urlValidation as fu, AccordionComponent as g, AccordionGroupComponent as h, ActionComponent as i, AnimatedGraphsComponent as j, AppCardComponent as k, AppRelationType as l, AppTileComponent as m, AssetStore as n, AssetUrlPipe as o, Assets as p, AuthActivityPageComponent as q, AuthApiService as r, AuthStore as s, AutosizeDirective as t, BadgeComponent as u, BandingComponent as v, BaseArrayInputComponent as w, BaseRootWebComponent as x, BaseWebComponent as y, ButtonGroupComponent as z };
34221
- //# sourceMappingURL=magmonium-one-magmonium-one-7AyJYdDN.mjs.map
34220
+ //# sourceMappingURL=magmonium-one-magmonium-one-ByLv1VIM.mjs.map