@magmonium/one 0.0.15 → 0.0.17

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.
@@ -3320,8 +3320,9 @@ function deriveBreadcrumb(params) {
3320
3320
  * Platform Nav — the chrome this library owns (CONTEXT.md Platform Nav,
3321
3321
  * ADR 0016).
3322
3322
  *
3323
- * `NavComponent` renders a search, notification and user button in every app it
3324
- * is embedded in, and the editor's emitter deliberately writes App Navs only.
3323
+ * `NavComponent` renders search, notification and user in the menubar (and
3324
+ * settings in the footer) in every app it is embedded in, and the editor's
3325
+ * emitter deliberately writes App Navs only.
3325
3326
  * So no app ever shipped `navs/root_search.yml`, and the first click on chrome
3326
3327
  * fetched an asset nobody authored. These nodes are held here instead: they are
3327
3328
  * never fetched, and an app's own tree is laid over them rather than replacing
@@ -3332,14 +3333,22 @@ function deriveBreadcrumb(params) {
3332
3333
  * overrides by registering at the same NavId.
3333
3334
  */
3334
3335
  /**
3335
- * Platform children rendered as rows in the root panel. Search and
3336
- * notification are deliberately absent: they are reached by their chrome
3337
- * buttons, and listing them here would put a row beside the icon that already
3338
- * opens them.
3336
+ * Platform children rendered as rows in the root panel. Empty on purpose —
3337
+ * search, notification, user and settings are all reached by chrome buttons
3338
+ * (header / footer), and listing them here would put a row beside the icon
3339
+ * that already opens them. Root's runtime rows are App Navs only.
3339
3340
  */
3340
- const PLATFORM_ROOT_CHILDREN = ['root_user', 'root_settings'];
3341
- /** Platform Navs reached by a chrome button rather than a root row. */
3342
- const PLATFORM_BUTTON_NAV_IDS = ['root_search', 'root_notification'];
3341
+ const PLATFORM_ROOT_CHILDREN = [];
3342
+ /**
3343
+ * Platform Navs reached by a chrome button rather than a root row. Kept out of
3344
+ * `root.children` at runtime so the menu does not duplicate the menubar.
3345
+ */
3346
+ const PLATFORM_BUTTON_NAV_IDS = [
3347
+ 'root_search',
3348
+ 'root_notification',
3349
+ 'root_user',
3350
+ 'root_settings',
3351
+ ];
3343
3352
  /**
3344
3353
  * Root carries no title of its own — an app's `navs/root.yml` names the app,
3345
3354
  * and that is the one field of root the asset owns outright.
@@ -3445,8 +3454,9 @@ const createPlatformNavMap = () => Object.fromEntries(Object.entries(PLATFORM_NA
3445
3454
  * same id. An extensible one merges: the asset contributes its App Nav
3446
3455
  * children (and, at `root`, the app's own `title` / `logo` / `icon`), the
3447
3456
  * platform children follow, and NavKind and NavPresentation stay the
3448
- * library's — so omitting `root_settings` from an asset cannot delete the
3449
- * settings panel, and shipping it cannot turn a Murl into a Url.
3457
+ * library's — so an asset cannot delete chrome (settings still exists even
3458
+ * though it is not a root row), and shipping a closed Platform NavId cannot
3459
+ * redefine it.
3450
3460
  */
3451
3461
  const mergePlatformNav = (nav, navId) => {
3452
3462
  const platform = PLATFORM_NAV_MAP[navId];
@@ -3455,7 +3465,10 @@ const mergePlatformNav = (nav, navId) => {
3455
3465
  if (!isExtensiblePlatformNavId(navId))
3456
3466
  return { ...platform };
3457
3467
  const platformChildren = platform.children ?? [];
3458
- const appChildren = (nav.children ?? []).filter((childId) => !platformChildren.includes(childId));
3468
+ const appChildren = (nav.children ?? []).filter((childId) => !platformChildren.includes(childId) &&
3469
+ // Chrome-button Navs stay addressable but never become root menu rows,
3470
+ // even when an older asset still listed them under root.
3471
+ !(navId === ROOT_NAV$1 && PLATFORM_BUTTON_NAV_IDS.includes(childId)));
3459
3472
  return {
3460
3473
  ...nav,
3461
3474
  kind: platform.kind,
@@ -14922,7 +14935,7 @@ class WrapperInputComponent extends ConfigComponent {
14922
14935
  break;
14923
14936
  }
14924
14937
  case InputType.TOGGLE: {
14925
- const { ToggleInputComponent } = await import('./magmonium-one-toggle-gKe1fFmh.mjs');
14938
+ const { ToggleInputComponent } = await import('./magmonium-one-toggle-CqQCBYIw.mjs');
14926
14939
  this.createDynamicComponent(seq, ToggleInputComponent, [], true);
14927
14940
  break;
14928
14941
  }
@@ -14934,12 +14947,12 @@ class WrapperInputComponent extends ConfigComponent {
14934
14947
  break;
14935
14948
  }
14936
14949
  case InputType.PASSWORD: {
14937
- const { PasswordInputComponent } = await import('./magmonium-one-password-JoffFWjc.mjs');
14950
+ const { PasswordInputComponent } = await import('./magmonium-one-password-3SqPjCcD.mjs');
14938
14951
  this.createDynamicComponent(seq, PasswordInputComponent);
14939
14952
  break;
14940
14953
  }
14941
14954
  case InputType.OTP: {
14942
- const { OtpInputComponent } = await import('./magmonium-one-otp-Bau3x7Cq.mjs');
14955
+ const { OtpInputComponent } = await import('./magmonium-one-otp-BDj-zpyL.mjs');
14943
14956
  this.createDynamicComponent(seq, OtpInputComponent);
14944
14957
  break;
14945
14958
  }
@@ -17422,7 +17435,7 @@ class SectionFormItemComponent extends ConfigComponent {
17422
17435
  break;
17423
17436
  }
17424
17437
  case InputType.TOGGLE: {
17425
- const { ToggleInputComponent } = await import('./magmonium-one-toggle-gKe1fFmh.mjs');
17438
+ const { ToggleInputComponent } = await import('./magmonium-one-toggle-CqQCBYIw.mjs');
17426
17439
  this.createDynamicComponent(seq, ToggleInputComponent, [], true);
17427
17440
  break;
17428
17441
  }
@@ -17434,12 +17447,12 @@ class SectionFormItemComponent extends ConfigComponent {
17434
17447
  break;
17435
17448
  }
17436
17449
  case InputType.PASSWORD: {
17437
- const { PasswordInputComponent } = await import('./magmonium-one-password-JoffFWjc.mjs');
17450
+ const { PasswordInputComponent } = await import('./magmonium-one-password-3SqPjCcD.mjs');
17438
17451
  this.createDynamicComponent(seq, PasswordInputComponent);
17439
17452
  break;
17440
17453
  }
17441
17454
  case InputType.OTP: {
17442
- const { OtpInputComponent } = await import('./magmonium-one-otp-Bau3x7Cq.mjs');
17455
+ const { OtpInputComponent } = await import('./magmonium-one-otp-BDj-zpyL.mjs');
17443
17456
  this.createDynamicComponent(seq, OtpInputComponent);
17444
17457
  break;
17445
17458
  }
@@ -30593,4 +30606,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
30593
30606
  */
30594
30607
 
30595
30608
  export { DomService as $, ACCESS_DOMAINS as A, BaseInputComponent as B, COLOR_SCHEMES$1 as C, ChartComponent as D, ErrorsComponent as E, CheckboxInputComponent as F, ClearableInputComponent as G, ColComponent as H, ColorPickerInputComponent as I, CommentItemComponent as J, CommentsApiService as K, LabelComponent as L, CommentsComponent as M, CommentsStore as N, ComponentInputComponent as O, ComponentStepperComponent as P, ConfigComponent as Q, ConfirmComponent as R, ContextMenuComponent as S, TranslatePipe as T, CustomIconClass as U, CustomIconEditComponent as V, DEFAULT_SIZE as W, DashboardCardComponent as X, DateInputComponent as Y, DatePickerComponent as Z, DeviceService as _, BaseTextInputComponent as a, NAV_MAIN_BUTTONS as a$, Domain as a0, DotGridComponent as a1, DragListDirective as a2, DragListItemDirective as a3, DraggableDirective as a4, DropdownInputComponent as a5, FLEX_VARIANTS as a6, FOLDER_PICK_LISTENER as a7, FORM_ASSET_FOLDER as a8, FileService as a9, LOGIN_PROCESS as aA, LOGIN_STORE as aB, LanguageComponent as aC, LoginDataService as aD, LoginOneComponent as aE, LoginStore as aF, LogoComponent as aG, MAG_SOCKET_EVENT as aH, MHeroColorDirective as aI, MHeroComponent as aJ, MODAL_REF as aK, MODAL_STORE_REF as aL, MRefDirective as aM, MStepComponent as aN, MURL_PARAM as aO, MURL_SEP as aP, ManifestEnrichmentService as aQ, MenuComponent as aR, ModalDirective as aS, ModalRef as aT, ModalStore as aU, MoneyPipe as aV, MultiRangeInputComponent as aW, MurlUrlSerializer as aX, NAV_DEFAULT_MURL as aY, NAV_DISPLAY_ORDER as aZ, NAV_ID_SEP as a_, FileUploadDirective as aa, FileUploadInputComponent as ab, FlexComponent as ac, FlexItemComponent as ad, FormGroupComponent as ae, FrameComponent as af, FreezeService as ag, GEN_NAV_DISPLAY_ORDER as ah, GRID_BREAKPOINTS as ai, GetNavService as aj, HeaderComponent$1 as ak, HighlightDirective as al, HttpService as am, ICON_SOURCE as an, IS_DESIGN_MODE as ao, IS_SIDE_PANEL as ap, IconComponent as aq, ImgComponent as ar, InputType as as, InstrumentScoreComponent as at, InterceptorObservables as au, JumbotronComponent as av, KeyValueComponent as aw, LAYOUT_ASSET_FOLDER as ax, LOGIN_COMPONENT as ay, LOGIN_FORM_GROUP as az, ButtonComponent as b, SectionFilterComponent as b$, NAV_SEGMENT_RE as b0, NAV_STORE_REF as b1, NAV_WC_COMPONENTS as b2, NAV_WIDGET_MAP as b3, NavComponent as b4, NavDetailsComponent as b5, NavMenuComponent as b6, NavStore as b7, NavTrailComponent as b8, NothingComponent as b9, RangeInputComponent as bA, RatingInputComponent as bB, ReactiveElementComponent as bC, RemoteComponent as bD, RemoteLoaderService as bE, ResizeElementComponent as bF, RouteContainer as bG, RowComponent as bH, SEARCH_QUERY as bI, SEARCH_RESULTS_EVENT as bJ, SECTION_ACCORDION_GROUP as bK, SECTION_FORM_CONTEXT as bL, SHARED_ICONS as bM, SIZE_CONTEXT as bN, ScoreComponent as bO, ScrollComponent as bP, ScrollService as bQ, SearchPanelComponent as bR, SearchStore as bS, SearchUserPanelComponent as bT, SectionAccordionDirective as bU, SectionAccordionGroupDirective as bV, SectionBackComponent as bW, SectionBadgesComponent as bX, SectionButtonGroupComponent as bY, SectionCardComponent as bZ, SectionComponent as b_, NotificationElementComponent as ba, NotificationGroupComponent as bb, NotificationPopupComponent as bc, NotificationService as bd, NotificationStore as be, NotificationType as bf, NotificationWidgetComponent as bg, ONE_ASSET_BASE_URL as bh, OPTIONS_SOURCE as bi, OneApp as bj, OptionsSourceDirective as bk, OverlayBodyComponent as bl, OverlayRef as bm, OverlayService as bn, PLATFORM_BUTTON_NAV_IDS as bo, PLATFORM_EXTENSIBLE_NAV_IDS as bp, PLATFORM_NAV_MAP as bq, PLATFORM_ROOT_CHILDREN as br, PaginationComponent as bs, PanelComponent as bt, PlaygroundComponent as bu, PositionDirective as bv, PwaInstallComponent as bw, ROOT_NAV$1 as bx, RadioGroupComponent as by, RadioInputComponent as bz, APP_CONTEXT_REF as c, WIN_USER_TAB_KEY as c$, SectionFooterComponent as c0, SectionFormComponent as c1, SectionFormItemComponent as c2, SectionHeaderComponent as c3, SectionSearchComponent as c4, SectionStepperComponent as c5, SectionTabsComponent as c6, SectionToggleComponent as c7, SectionToggleItemDirective as c8, SelectableCardInputComponent as c9, TextareaInputComponent as cA, ThemeComponent as cB, ThemeService as cC, ThemeStore as cD, TimeAgoPipe as cE, TimelineComponent as cF, ToggleButtonComponent as cG, ToggleInputComponent as cH, ToggleRadioInputComponent as cI, ToolTipDirective as cJ, TooltipComponent as cK, TranslateService as cL, TreeGridComponent as cM, URL_SEP as cN, USER_STORE_REF as cO, USER_TAB_MAP as cP, UlComponent as cQ, UniverseComponent as cR, UserApiService as cS, UserAvatarComponent as cT, UserComponent as cU, UserNavComponent as cV, UserSettingsComponent as cW, UserStore as cX, WC_ROUTE_CHANGED_EVENT as cY, WC_SEARCH_GROUPS as cZ, WIN_USER_TAB_HOOK as c_, SelectorDirective as ca, SettingsSearchBarComponent as cb, SettingsSearchService as cc, Sex as cd, ShapeComponent as ce, SharedStoreRegistry as cf, SidePanelDirective as cg, Size as ch, SocketStore as ci, SortComponent as cj, StepComponent as ck, StepperComponent as cl, StepsComponent as cm, StorageService as cn, StrokeLinecap as co, StrokeLinejoin as cp, SummaryComponent as cq, SvgGeneratorComponent as cr, SvgGeneratorService as cs, SvgService as ct, TOTAL_COLUMNS as cu, TRANSLATION_SOURCE as cv, TableComponent as cw, TechnicalMeterComponent as cx, TextInputComponent as cy, TextOutputComponent as cz, ASSET_BASE_URL as d, loginState as d$, WatermarkComponent as d0, WcRouterStore as d1, WrapperInputComponent as d2, anchorNavId as d3, applyColorsToElement as d4, authGuard as d5, bootstrapMagApp as d6, bootstrapPwaInstall as d7, buildWcBaseUrl as d8, calculateLuminance as d9, getValue as dA, hasErrorComputed as dB, hexToRgb as dC, hslToRgb$1 as dD, initMagmoniumApp as dE, initialNotificationState as dF, initials as dG, injectAuthenticate as dH, injectInstallApp as dI, injectParentSize as dJ, injectScrollSticky as dK, isButtonName as dL, isCancelledComputed as dM, isExtensiblePlatformNavId as dN, isJson as dO, isLoadingComputed as dP, isLocalhost as dQ, isPlatformNavId as dR, isSize as dS, isTierPreview as dT, isUrlLocalhost as dU, isValidNavId as dV, isValidNavSegment as dW, isWebComponent as dX, linkToId as dY, linkToNav as dZ, loadingActions as d_, calculateRanks as da, cellText as db, checkFilterCondition as dc, childNavId as dd, classListSignal as de, createMap as df, createPlatformNavMap as dg, deriveAvatarGradient as dh, deriveContrastColor as di, deriveOppositeColor as dj, derivePropertyName as dk, emailValidation as dl, evaluate as dm, evaluateBool as dn, flattenTreeGridRows as dp, formatBadgeCount as dq, fullName as dr, generateClipPath as ds, generateTransform as dt, getClassList as du, getProperty as dv, getScrollParent as dw, getTierFromPreviewPath as dx, getTreeGridRow as dy, getUniqueId as dz, AccordionBodyDirective as e, mInterceptor as e0, manualValidation as e1, matchFieldValidation as e2, maxLengthValidation as e3, maxValidation as e4, mergePlatformNav as e5, mergeUnique as e6, mergeUniqueBy as e7, mergeUniqueWith as e8, minAgeValidation as e9, provideUserTabs as eA, publicGuard as eB, renderAddress as eC, requiredValidation as eD, resolveConfigAsset as eE, resolvePallet as eF, resolveSize as eG, rgbToHex as eH, rgbToHsl as eI, rowHasChildren as eJ, segmentsToNavId as eK, setProperty as eL, setTreeGridChildren as eM, settingsWidgets as eN, shouldShowBadge as eO, splitNavId as eP, stringToColor as eQ, toAttrBool as eR, toAttrNumber as eS, toCssLength as eT, toHostNavId as eU, toLength$1 as eV, toLocalNavId as eW, toggleTreeGridRow as eX, unfetchedPlatformNav as eY, urlValidation as eZ, minLengthValidation as ea, minValidation as eb, miniMarkToHtml as ec, navIdChain as ed, navIdFor as ee, navIdSegment as ef, navIdToRoutePath as eg, navIdToSegments as eh, navToId as ei, parentNavId as ej, parseAddress as ek, parseColor as el, patternValidation as em, platformNavWidgets as en, privateGuard as eo, processImageToSvg as ep, provideAppContext as eq, provideMagAppConfig as er, provideMagWcConfig as es, provideMagWcRoutes as et, provideModalComponents as eu, provideMurlUrlSerializer as ev, provideNavWidgets as ew, providePlatformNavWidgets as ex, provideSearch as ey, provideSizeContext as ez, AccordionComponent as f, AccordionGroupComponent as g, ActionComponent as h, AnimatedGraphsComponent as i, AppCardComponent as j, AppRelationType as k, AppTileComponent as l, AssetStore as m, AssetUrlPipe as n, Assets as o, AutosizeDirective as p, BadgeComponent as q, BandingComponent as r, BaseArrayInputComponent as s, BaseRootWebComponent as t, BaseWebComponent as u, ButtonGroupComponent as v, COMPONENT_INPUT_REGISTRY as w, CardComponent as x, CardWrapperComponent as y, CarouselComponent as z };
30596
- //# sourceMappingURL=magmonium-one-magmonium-one-DUwXOFgr.mjs.map
30609
+ //# sourceMappingURL=magmonium-one-magmonium-one-C_V7zLMa.mjs.map