@magmonium/one 0.2.40 → 0.2.41
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/fesm2022/{magmonium-one-magmonium-one-cbkImPRD.mjs → magmonium-one-magmonium-one-9zQVQ0IY.mjs} +33 -15
- package/fesm2022/magmonium-one-magmonium-one-9zQVQ0IY.mjs.map +1 -0
- package/fesm2022/{magmonium-one-otp-Ct5-Sryt.mjs → magmonium-one-otp-BWGevRL7.mjs} +2 -2
- package/fesm2022/{magmonium-one-otp-Ct5-Sryt.mjs.map → magmonium-one-otp-BWGevRL7.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-password-CseJCPaP.mjs → magmonium-one-password-CniB1rrR.mjs} +2 -2
- package/fesm2022/{magmonium-one-password-CseJCPaP.mjs.map → magmonium-one-password-CniB1rrR.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-toggle-BQEqhSdp.mjs → magmonium-one-toggle-XdWXZ3w3.mjs} +2 -2
- package/fesm2022/{magmonium-one-toggle-BQEqhSdp.mjs.map → magmonium-one-toggle-XdWXZ3w3.mjs.map} +1 -1
- package/fesm2022/magmonium-one.mjs +1 -1
- package/package.json +1 -1
- package/fesm2022/magmonium-one-magmonium-one-cbkImPRD.mjs.map +0 -1
|
@@ -3722,9 +3722,26 @@ const childIdsOf = (navId, navMap) => {
|
|
|
3722
3722
|
* in the middle of it. Filtering the node out without adopting its children
|
|
3723
3723
|
* left that app with no rows at all.
|
|
3724
3724
|
*/
|
|
3725
|
-
|
|
3725
|
+
/**
|
|
3726
|
+
* Whether a `dynamic` child is standing in for rows rather than for itself. A
|
|
3727
|
+
* source that answered with rows — or is still answering — draws *those*, and
|
|
3728
|
+
* the node's own `title` is beside the point: the row it would have been is the
|
|
3729
|
+
* one thing the splice replaces. An emitted dynamic Nav is routinely unlabelled
|
|
3730
|
+
* for exactly that reason (a row saying `with-category` names nothing a User
|
|
3731
|
+
* recognises), and gating it on a title dropped it before its rows were ever
|
|
3732
|
+
* read — the panel then climbed to the parent and drew the static siblings.
|
|
3733
|
+
*/
|
|
3734
|
+
const drawsRows = (childId, dynamicRows) => {
|
|
3735
|
+
const resolved = dynamicRows[childId];
|
|
3736
|
+
return !!resolved && (resolved.rows.length > 0 || !!resolved.loading);
|
|
3737
|
+
};
|
|
3738
|
+
const menuChildIds = (navId, navMap, dynamicRows = {}) => childIdsOf(navId, navMap).flatMap((childId) => {
|
|
3726
3739
|
if (isDefaultNav(childId))
|
|
3727
|
-
return menuChildIds(childId, navMap);
|
|
3740
|
+
return menuChildIds(childId, navMap, dynamicRows);
|
|
3741
|
+
if (navMap[childId]?.presentation === 'dynamic' &&
|
|
3742
|
+
drawsRows(childId, dynamicRows)) {
|
|
3743
|
+
return [childId];
|
|
3744
|
+
}
|
|
3728
3745
|
return navMap[childId]?.title ? [childId] : [];
|
|
3729
3746
|
});
|
|
3730
3747
|
/**
|
|
@@ -3734,9 +3751,9 @@ const menuChildIds = (navId, navMap) => childIdsOf(navId, navMap).flatMap((child
|
|
|
3734
3751
|
* list the User moved through and the row they are on is the one marked
|
|
3735
3752
|
* active. Root is the floor: its own children are the last list there is.
|
|
3736
3753
|
*/
|
|
3737
|
-
const navMenuOwnerId = (navId, navMap, hasOwnContent = false) => {
|
|
3754
|
+
const navMenuOwnerId = (navId, navMap, hasOwnContent = false, dynamicRows = {}) => {
|
|
3738
3755
|
const visible = visibleNavId(navId);
|
|
3739
|
-
if (visible === ROOT_NAV$1 || menuChildIds(visible, navMap).length) {
|
|
3756
|
+
if (visible === ROOT_NAV$1 || menuChildIds(visible, navMap, dynamicRows).length) {
|
|
3740
3757
|
return visible;
|
|
3741
3758
|
}
|
|
3742
3759
|
// A panel that answers with a widget of its own keeps its own title —
|
|
@@ -3751,7 +3768,7 @@ const navMenuOwnerId = (navId, navMap, hasOwnContent = false) => {
|
|
|
3751
3768
|
// than the one we are on — a mistitled empty panel is worse than a titled one.
|
|
3752
3769
|
for (let ancestor = parentNavId(visible); ancestor; ancestor = parentNavId(ancestor)) {
|
|
3753
3770
|
const owner = visibleNavId(ancestor);
|
|
3754
|
-
if (menuChildIds(owner, navMap).length)
|
|
3771
|
+
if (menuChildIds(owner, navMap, dynamicRows).length)
|
|
3755
3772
|
return owner;
|
|
3756
3773
|
if (owner === ROOT_NAV$1)
|
|
3757
3774
|
break;
|
|
@@ -3771,7 +3788,7 @@ const navMenuOwnerId = (navId, navMap, hasOwnContent = false) => {
|
|
|
3771
3788
|
* falling through to the static siblings around it would show a panel that
|
|
3772
3789
|
* looks correct and is not.
|
|
3773
3790
|
*/
|
|
3774
|
-
const buildNavMenus = (navId, navMap, anchor, dynamicRows = {}) => menuChildIds(navId, navMap).flatMap((childId) => {
|
|
3791
|
+
const buildNavMenus = (navId, navMap, anchor, dynamicRows = {}) => menuChildIds(navId, navMap, dynamicRows).flatMap((childId) => {
|
|
3775
3792
|
const nav = navMap[childId];
|
|
3776
3793
|
const resolved = nav && dynamicRows[childId];
|
|
3777
3794
|
if (!nav || nav.presentation !== 'dynamic' || !resolved) {
|
|
@@ -3829,7 +3846,7 @@ function deriveBreadcrumb(params) {
|
|
|
3829
3846
|
// The header and the trail belong to whichever Nav owns the menu below them:
|
|
3830
3847
|
// on a leaf that is the parent, so the User reads the list they are in with
|
|
3831
3848
|
// their own row marked, rather than a title over an empty panel.
|
|
3832
|
-
const ownerId = navMenuOwnerId(navId, navMap, hasOwnContent);
|
|
3849
|
+
const ownerId = navMenuOwnerId(navId, navMap, hasOwnContent, dynamicRows);
|
|
3833
3850
|
// An emitted breadcrumb names the panel it was emitted for. Once the panel
|
|
3834
3851
|
// has been handed up to an ancestor it is no longer that panel, so the
|
|
3835
3852
|
// override would title the ancestor's list after the leaf we left.
|
|
@@ -4149,7 +4166,8 @@ const NavStore = signalStore({ providedIn: 'root' }, withState(initialState$3),
|
|
|
4149
4166
|
// asset holds — left the page's own menu up under its own header.
|
|
4150
4167
|
const map = store.navMap();
|
|
4151
4168
|
const candidates = widgetNavIds();
|
|
4152
|
-
|
|
4169
|
+
const rows = dynamicRows();
|
|
4170
|
+
return (candidates.find((c) => menuChildIds(c, map, rows).length) ??
|
|
4153
4171
|
// A leaf nothing is registered for is still a Nav the tree knows, and
|
|
4154
4172
|
// that is where the panel belongs: `|settings|app` with no widget hands
|
|
4155
4173
|
// the panel back to *settings*, whose row it is, rather than climbing
|
|
@@ -6812,7 +6830,7 @@ class SectionFormItemComponent extends ConfigComponent {
|
|
|
6812
6830
|
break;
|
|
6813
6831
|
}
|
|
6814
6832
|
case InputType.TOGGLE: {
|
|
6815
|
-
const { ToggleInputComponent } = await import('./magmonium-one-toggle-
|
|
6833
|
+
const { ToggleInputComponent } = await import('./magmonium-one-toggle-XdWXZ3w3.mjs');
|
|
6816
6834
|
this.createDynamicComponent(seq, ToggleInputComponent, [], true);
|
|
6817
6835
|
break;
|
|
6818
6836
|
}
|
|
@@ -6824,12 +6842,12 @@ class SectionFormItemComponent extends ConfigComponent {
|
|
|
6824
6842
|
break;
|
|
6825
6843
|
}
|
|
6826
6844
|
case InputType.PASSWORD: {
|
|
6827
|
-
const { PasswordInputComponent } = await import('./magmonium-one-password-
|
|
6845
|
+
const { PasswordInputComponent } = await import('./magmonium-one-password-CniB1rrR.mjs');
|
|
6828
6846
|
this.createDynamicComponent(seq, PasswordInputComponent);
|
|
6829
6847
|
break;
|
|
6830
6848
|
}
|
|
6831
6849
|
case InputType.OTP: {
|
|
6832
|
-
const { OtpInputComponent } = await import('./magmonium-one-otp-
|
|
6850
|
+
const { OtpInputComponent } = await import('./magmonium-one-otp-BWGevRL7.mjs');
|
|
6833
6851
|
this.createDynamicComponent(seq, OtpInputComponent);
|
|
6834
6852
|
break;
|
|
6835
6853
|
}
|
|
@@ -20330,7 +20348,7 @@ class WrapperInputComponent extends ConfigComponent {
|
|
|
20330
20348
|
break;
|
|
20331
20349
|
}
|
|
20332
20350
|
case InputType.TOGGLE: {
|
|
20333
|
-
const { ToggleInputComponent } = await import('./magmonium-one-toggle-
|
|
20351
|
+
const { ToggleInputComponent } = await import('./magmonium-one-toggle-XdWXZ3w3.mjs');
|
|
20334
20352
|
this.createDynamicComponent(seq, ToggleInputComponent, [], true);
|
|
20335
20353
|
break;
|
|
20336
20354
|
}
|
|
@@ -20342,12 +20360,12 @@ class WrapperInputComponent extends ConfigComponent {
|
|
|
20342
20360
|
break;
|
|
20343
20361
|
}
|
|
20344
20362
|
case InputType.PASSWORD: {
|
|
20345
|
-
const { PasswordInputComponent } = await import('./magmonium-one-password-
|
|
20363
|
+
const { PasswordInputComponent } = await import('./magmonium-one-password-CniB1rrR.mjs');
|
|
20346
20364
|
this.createDynamicComponent(seq, PasswordInputComponent);
|
|
20347
20365
|
break;
|
|
20348
20366
|
}
|
|
20349
20367
|
case InputType.OTP: {
|
|
20350
|
-
const { OtpInputComponent } = await import('./magmonium-one-otp-
|
|
20368
|
+
const { OtpInputComponent } = await import('./magmonium-one-otp-BWGevRL7.mjs');
|
|
20351
20369
|
this.createDynamicComponent(seq, OtpInputComponent);
|
|
20352
20370
|
break;
|
|
20353
20371
|
}
|
|
@@ -34581,4 +34599,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
34581
34599
|
*/
|
|
34582
34600
|
|
|
34583
34601
|
export { DEFAULT_NAV_PARAM 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_DEFAULT_MURL as a$, DEFAULT_NAV_SEGMENT as a0, DEFAULT_SIZE as a1, DashboardCardComponent as a2, DateInputComponent as a3, DatePickerComponent as a4, DeviceService as a5, DomService as a6, Domain as a7, DotGridComponent as a8, DragListDirective as a9, InputType as aA, InstrumentScoreComponent as aB, InterceptorObservables as aC, JumbotronComponent as aD, KeyValueComponent as aE, LAYOUT_ASSET_FOLDER as aF, LOGIN_COMPONENT as aG, LOGIN_STORE as aH, LanguageComponent as aI, LogoComponent as aJ, MAG_SOCKET_EVENT as aK, MHeroColorDirective as aL, MHeroComponent as aM, MODAL_REF as aN, MODAL_STORE_REF as aO, MRefDirective as aP, MStepComponent as aQ, MURL_PARAM as aR, MURL_SEP as aS, ManifestEnrichmentService as aT, MenuComponent as aU, ModalDirective as aV, ModalRef as aW, ModalStore as aX, MoneyPipe as aY, MultiRangeInputComponent as aZ, MurlUrlSerializer as a_, DragListItemDirective as aa, DraggableDirective as ab, DropdownInputComponent as ac, FILTER_GROUP_CONTEXT as ad, FILTER_RANGE_MODES as ae, FILTER_VARIANTS as af, FLEX_VARIANTS as ag, FOLDER_PICK_LISTENER as ah, FORM_ASSET_FOLDER as ai, FileService as aj, FileUploadDirective as ak, FileUploadInputComponent as al, FlexComponent as am, FlexItemComponent as an, FormGroupComponent as ao, FrameComponent as ap, FreezeService as aq, GRID_BREAKPOINTS as ar, GetNavService as as, HeaderComponent$1 as at, HighlightDirective as au, HttpService as av, ICON_SOURCE as aw, IS_SIDE_PANEL as ax, IconComponent as ay, ImgComponent as az, TextOutputComponent as b, SectionBackComponent as b$, NAV_ID_SEP as b0, NAV_MAIN_BUTTONS as b1, NAV_SEGMENT_RE as b2, NAV_STORE_REF as b3, NAV_WC_COMPONENTS as b4, NAV_WIDGET_MAP as b5, NavComponent as b6, NavDetailsComponent as b7, NavHeaderComponent as b8, NavMenuComponent as b9, PositionDirective as bA, PwaInstallComponent as bB, ROOT_NAV$1 as bC, RadioGroupComponent as bD, RadioInputComponent as bE, RangeInputComponent as bF, RatingInputComponent as bG, ReactiveElementComponent as bH, RemoteComponent as bI, RemoteLoaderService as bJ, ResizeElementComponent as bK, RouteContainer as bL, RowComponent as bM, SEARCH_QUERY as bN, SEARCH_RESULTS_EVENT as bO, SECTION_ACCORDION_GROUP as bP, SECTION_FORM_CONTEXT as bQ, SHARED_ICONS as bR, SIZE_CONTEXT as bS, ScoreComponent as bT, ScrollComponent as bU, ScrollService as bV, SearchPanelComponent as bW, SearchStore as bX, SearchUserPanelComponent as bY, SectionAccordionDirective as bZ, SectionAccordionGroupDirective as b_, NavStore as ba, NavTrailComponent as bb, NothingComponent as bc, NotificationElementComponent as bd, NotificationGroupComponent as be, NotificationPopupComponent as bf, NotificationService as bg, NotificationStore as bh, NotificationType as bi, NotificationWidgetComponent as bj, ONE_ASSET_BASE_URL as bk, OPTIONS_SOURCE as bl, OVERLAY_WIDGETS as bm, OneApp as bn, OptionsSourceDirective as bo, OverlayBodyComponent as bp, OverlayRef as bq, OverlayService as br, PLATFORM_BUTTON_NAV_IDS as bs, PLATFORM_EXTENSIBLE_NAV_IDS as bt, PLATFORM_NAV_MAP as bu, PLATFORM_ROOT_CHILDREN as bv, PaginationComponent as bw, PanelComponent as bx, PercentagePipe as by, PlaygroundComponent as bz, ButtonComponent as c, USER_TAB_MAP as c$, SectionBadgesComponent as c0, SectionButtonGroupComponent as c1, SectionCardComponent as c2, SectionCarouselComponent as c3, SectionComponent as c4, SectionFilterComponent as c5, SectionFilterGroupComponent as c6, SectionFilterMenuComponent as c7, SectionFilterPanelComponent as c8, SectionFilterRangePanelComponent as c9, StrokeLinecap as cA, StrokeLinejoin as cB, SummaryComponent as cC, SvgGeneratorComponent as cD, SvgGeneratorService as cE, SvgService as cF, TOTAL_COLUMNS as cG, TRANSLATION_SOURCE as cH, TableComponent as cI, TechnicalMeterComponent as cJ, TextInputComponent as cK, TextareaInputComponent as cL, ThemeComponent as cM, ThemeDataService as cN, ThemeService as cO, ThemeStore as cP, TimeAgoPipe as cQ, TimelineComponent as cR, ToggleButtonComponent as cS, ToggleInputComponent as cT, ToggleRadioInputComponent as cU, ToolTipDirective as cV, TooltipComponent as cW, TranslateService as cX, TreeGridComponent as cY, URL_SEP as cZ, USER_STORE_REF as c_, SectionFooterComponent as ca, SectionFormComponent as cb, SectionFormItemComponent as cc, SectionHeaderComponent as cd, SectionHeroComponent as ce, SectionPaginationComponent as cf, SectionSearchComponent as cg, SectionStepperComponent as ch, SectionTabsComponent as ci, SectionToggleComponent as cj, SectionToggleItemDirective as ck, SelectableCardInputComponent as cl, SelectorDirective as cm, SettingsSearchBarComponent as cn, SettingsSearchService as co, ShapeComponent as cp, SharedStoreRegistry as cq, SidePanelDirective as cr, Size as cs, SocketStore as ct, SortComponent as cu, StatComponent as cv, StepComponent as cw, StepperComponent as cx, StepsComponent as cy, StorageService as cz, APP_CONTEXT_REF as d, hasErrorComputed as d$, UlComponent as d0, UniverseComponent as d1, UserApiService as d2, UserAvatarComponent as d3, UserComponent as d4, UserNavComponent as d5, UserSettingsComponent as d6, UserStore as d7, WC_ROUTE_CHANGED_EVENT as d8, WC_SEARCH_GROUPS as d9, emailValidation as dA, evaluate as dB, evaluateBool as dC, filterHoldsList as dD, filterHoldsOneBound as dE, filterHoldsOptions as dF, filterHoldsRange as dG, filterList as dH, filterOne as dI, filterPanelOf as dJ, filterPanelWidth as dK, filterRange as dL, filterTreeGridRows as dM, filterValueList as dN, filterValues as dO, 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, getValue as d_, WIN_USER_TAB_HOOK as da, WIN_USER_TAB_KEY as db, WatermarkComponent as dc, WcRouterStore as dd, WrapperInputComponent as de, anchorNavId as df, applyColorsToElement as dg, bootstrapMagApp as dh, bootstrapPwaInstall as di, buildWcBaseUrl as dj, calculateLuminance as dk, calculateRanks as dl, cellText as dm, checkFilterCondition as dn, childNavId as dp, classListSignal as dq, coerceSize as dr, cornerEdge as ds, cornerSide as dt, createMap as du, createPlatformNavMap as dv, deriveAvatarGradient as dw, deriveContrastColor as dx, deriveOppositeColor as dy, derivePropertyName as dz, ASSET_BASE_URL as e, provideNavWidgets as e$, hexToRgb as e0, hslToRgb$1 as e1, initMagmoniumApp as e2, initialNotificationState as e3, initialState$2 as e4, initials as e5, injectAuthenticate as e6, injectInstallApp as e7, injectParentSize as e8, injectScrollSticky as e9, mergeUniqueWith as eA, minAgeValidation as eB, minLengthValidation as eC, minValidation as eD, miniMarkToHtml as eE, navIdChain as eF, navIdFor as eG, navIdSegment as eH, navIdToRoutePath as eI, navIdToSegments as eJ, navParamOf as eK, navToId as eL, parentNavId as eM, parseAddress as eN, parseColor as eO, parsePatternNames as eP, patternValidation as eQ, patternsValidation as eR, platformNavWidgets as eS, privateGuard as eT, processImageToSvg as eU, provideAppContext as eV, provideMagAppConfig as eW, provideMagWcConfig as eX, provideMagWcRoutes as eY, provideModalComponents as eZ, provideMurlUrlSerializer as e_, isButtonName as ea, isCancelledComputed as eb, isExtensiblePlatformNavId as ec, isJson as ed, isLoadingComputed as ee, isLocalhost as ef, isNavMenuConfig as eg, isNavRowsConfig as eh, isPlatformNavId as ei, isSize as ej, isTierPreview as ek, isUrlLocalhost as el, isValidNavId as em, isValidNavSegment as en, isWebComponent as eo, linkToId as ep, linkToNav as eq, loadingActions as er, mInterceptor as es, manualValidation as et, matchFieldValidation as eu, maxLengthValidation as ev, maxValidation as ew, mergePlatformNav as ex, mergeUnique as ey, mergeUniqueBy as ez, AccordionBodyDirective as f, provideOverlayWidgets as f0, providePlatformNavWidgets as f1, provideSearch as f2, provideSizeContext as f3, provideUserTabs as f4, publicGuard as f5, readFieldPatterns as f6, renderAddress as f7, requiredValidation as f8, resolveConfigAsset as f9, resolveIconSize as fa, resolvePallet as fb, resolvePatternRules as fc, resolveSize as fd, rgbToHex as fe, rgbToHsl as ff, rowHasChildren as fg, samePatterns as fh, segmentsToNavId as fi, setProperty as fj, setTreeGridChildren as fk, settingsWidgets as fl, shouldShowBadge as fm, splitNavId as fn, splitOnMatch as fo, stringToColor as fp, toAttrBool as fq, toAttrNumber as fr, toCssLength as fs, toHostNavId as ft, toLength$1 as fu, toLocalNavId as fv, toggleTreeGridRow as fw, unfetchedPlatformNav as fx, urlValidation as fy, 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 };
|
|
34584
|
-
//# sourceMappingURL=magmonium-one-magmonium-one-
|
|
34602
|
+
//# sourceMappingURL=magmonium-one-magmonium-one-9zQVQ0IY.mjs.map
|