@magmonium/one 0.2.71 → 0.2.73
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-CF7etrrr.mjs → magmonium-one-magmonium-one-C9LOwqLE.mjs} +48 -8
- package/fesm2022/magmonium-one-magmonium-one-C9LOwqLE.mjs.map +1 -0
- package/fesm2022/{magmonium-one-otp-A2E4Lhjn.mjs → magmonium-one-otp-CtvkYUoz.mjs} +2 -2
- package/fesm2022/{magmonium-one-otp-A2E4Lhjn.mjs.map → magmonium-one-otp-CtvkYUoz.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-password-BpSnk24C.mjs → magmonium-one-password-kHANE60l.mjs} +2 -2
- package/fesm2022/{magmonium-one-password-BpSnk24C.mjs.map → magmonium-one-password-kHANE60l.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-toggle-DGiYIRj1.mjs → magmonium-one-toggle-w-OqZ7IS.mjs} +2 -2
- package/fesm2022/{magmonium-one-toggle-DGiYIRj1.mjs.map → magmonium-one-toggle-w-OqZ7IS.mjs.map} +1 -1
- package/fesm2022/magmonium-one.mjs +1 -1
- package/package.json +1 -1
- package/types/magmonium-one.d.ts +20 -1
- package/fesm2022/magmonium-one-magmonium-one-CF7etrrr.mjs.map +0 -1
|
@@ -2583,6 +2583,46 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
2583
2583
|
}]
|
|
2584
2584
|
}] });
|
|
2585
2585
|
|
|
2586
|
+
/**
|
|
2587
|
+
* Renders a large number as a compact denominated reading — `12500` becomes
|
|
2588
|
+
* `12.5 k`, `1250000` becomes `12.5 l` (or `1.3 m` on the `INTL` ladder).
|
|
2589
|
+
* `MoneyPipe` without the currency symbol: a count of views, rows or users is
|
|
2590
|
+
* no amount of money, but it climbs the same thresholds.
|
|
2591
|
+
*
|
|
2592
|
+
* Named `compactNumber` rather than `number` so it never collides with
|
|
2593
|
+
* Angular's own `DecimalPipe` in a template that imports both.
|
|
2594
|
+
*
|
|
2595
|
+
* Impure for `MoneyPipe`'s reason: the denomination label is a translation key
|
|
2596
|
+
* resolved in the active language.
|
|
2597
|
+
*/
|
|
2598
|
+
class CompactNumberPipe {
|
|
2599
|
+
translateService = inject(TranslateService);
|
|
2600
|
+
transform(value, system = 'IN', forceSign = false) {
|
|
2601
|
+
if (value == null || isNaN(value))
|
|
2602
|
+
return '';
|
|
2603
|
+
if (value === 0)
|
|
2604
|
+
return '0';
|
|
2605
|
+
const { amount, labelKey } = formatMoney(Math.abs(value), system);
|
|
2606
|
+
// Below the first threshold a tiny value can still round to `0`.
|
|
2607
|
+
if (Number(amount) === 0)
|
|
2608
|
+
return '0';
|
|
2609
|
+
const label = labelKey
|
|
2610
|
+
? ` ${this.translateService.translate(labelKey)}`
|
|
2611
|
+
: '';
|
|
2612
|
+
const sign = value < 0 ? '-' : forceSign ? '+' : '';
|
|
2613
|
+
return `${sign}${amount}${label}`;
|
|
2614
|
+
}
|
|
2615
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: CompactNumberPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2616
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: CompactNumberPipe, isStandalone: true, name: "compactNumber", pure: false });
|
|
2617
|
+
}
|
|
2618
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: CompactNumberPipe, decorators: [{
|
|
2619
|
+
type: Pipe,
|
|
2620
|
+
args: [{
|
|
2621
|
+
name: 'compactNumber',
|
|
2622
|
+
pure: false,
|
|
2623
|
+
}]
|
|
2624
|
+
}] });
|
|
2625
|
+
|
|
2586
2626
|
class AssetUrlPipe {
|
|
2587
2627
|
http = inject(HttpService);
|
|
2588
2628
|
transform(value) {
|
|
@@ -6992,7 +7032,7 @@ class SectionFormItemComponent extends ConfigComponent {
|
|
|
6992
7032
|
break;
|
|
6993
7033
|
}
|
|
6994
7034
|
case InputType.TOGGLE: {
|
|
6995
|
-
const { ToggleInputComponent } = await import('./magmonium-one-toggle-
|
|
7035
|
+
const { ToggleInputComponent } = await import('./magmonium-one-toggle-w-OqZ7IS.mjs');
|
|
6996
7036
|
this.createDynamicComponent(seq, ToggleInputComponent, [], true);
|
|
6997
7037
|
break;
|
|
6998
7038
|
}
|
|
@@ -7004,12 +7044,12 @@ class SectionFormItemComponent extends ConfigComponent {
|
|
|
7004
7044
|
break;
|
|
7005
7045
|
}
|
|
7006
7046
|
case InputType.PASSWORD: {
|
|
7007
|
-
const { PasswordInputComponent } = await import('./magmonium-one-password-
|
|
7047
|
+
const { PasswordInputComponent } = await import('./magmonium-one-password-kHANE60l.mjs');
|
|
7008
7048
|
this.createDynamicComponent(seq, PasswordInputComponent);
|
|
7009
7049
|
break;
|
|
7010
7050
|
}
|
|
7011
7051
|
case InputType.OTP: {
|
|
7012
|
-
const { OtpInputComponent } = await import('./magmonium-one-otp-
|
|
7052
|
+
const { OtpInputComponent } = await import('./magmonium-one-otp-CtvkYUoz.mjs');
|
|
7013
7053
|
this.createDynamicComponent(seq, OtpInputComponent);
|
|
7014
7054
|
break;
|
|
7015
7055
|
}
|
|
@@ -20840,7 +20880,7 @@ class WrapperInputComponent extends ConfigComponent {
|
|
|
20840
20880
|
break;
|
|
20841
20881
|
}
|
|
20842
20882
|
case InputType.TOGGLE: {
|
|
20843
|
-
const { ToggleInputComponent } = await import('./magmonium-one-toggle-
|
|
20883
|
+
const { ToggleInputComponent } = await import('./magmonium-one-toggle-w-OqZ7IS.mjs');
|
|
20844
20884
|
this.createDynamicComponent(seq, ToggleInputComponent, [], true);
|
|
20845
20885
|
break;
|
|
20846
20886
|
}
|
|
@@ -20852,12 +20892,12 @@ class WrapperInputComponent extends ConfigComponent {
|
|
|
20852
20892
|
break;
|
|
20853
20893
|
}
|
|
20854
20894
|
case InputType.PASSWORD: {
|
|
20855
|
-
const { PasswordInputComponent } = await import('./magmonium-one-password-
|
|
20895
|
+
const { PasswordInputComponent } = await import('./magmonium-one-password-kHANE60l.mjs');
|
|
20856
20896
|
this.createDynamicComponent(seq, PasswordInputComponent);
|
|
20857
20897
|
break;
|
|
20858
20898
|
}
|
|
20859
20899
|
case InputType.OTP: {
|
|
20860
|
-
const { OtpInputComponent } = await import('./magmonium-one-otp-
|
|
20900
|
+
const { OtpInputComponent } = await import('./magmonium-one-otp-CtvkYUoz.mjs');
|
|
20861
20901
|
this.createDynamicComponent(seq, OtpInputComponent);
|
|
20862
20902
|
break;
|
|
20863
20903
|
}
|
|
@@ -35449,5 +35489,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
35449
35489
|
* Generated bundle index. Do not edit.
|
|
35450
35490
|
*/
|
|
35451
35491
|
|
|
35452
|
-
export {
|
|
35453
|
-
//# sourceMappingURL=magmonium-one-magmonium-one-
|
|
35492
|
+
export { DEFAULT_FILTER_RANGE_MODE 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, ChatBubbleComponent as H, IS_DESIGN_MODE as I, CheckboxInputComponent as J, ClearableInputComponent as K, LabelComponent as L, ColComponent as M, ColorPickerInputComponent as N, CommentItemComponent as O, CommentsApiService as P, CommentsComponent as Q, CommentsStore as R, CompactNumberPipe as S, TranslatePipe as T, ComponentInputComponent as U, ComponentStepperComponent as V, ConfigComponent as W, ConfirmComponent as X, ContextMenuComponent as Y, CustomIconClass as Z, CustomIconEditComponent as _, BaseTextInputComponent as a, MoneyPipe as a$, DEFAULT_FILTER_VARIANT as a0, DEFAULT_NAV_PARAM as a1, DEFAULT_NAV_SEGMENT as a2, DEFAULT_SIZE as a3, DashboardCardComponent as a4, DateInputComponent as a5, DatePickerComponent as a6, DeviceService as a7, DomService as a8, Domain as a9, IconComponent as aA, ImgComponent as aB, InputType as aC, InstrumentScoreComponent as aD, InterceptorObservables as aE, JumbotronComponent as aF, KeyValueComponent as aG, LAYOUT_ASSET_FOLDER as aH, LOGIN_COMPONENT as aI, LOGIN_STORE as aJ, LanguageComponent as aK, ListComponent as aL, LogoComponent as aM, MAG_SOCKET_EVENT as aN, MHeroColorDirective as aO, MHeroComponent as aP, MODAL_REF as aQ, MODAL_STORE_REF as aR, MRefDirective as aS, MStepComponent as aT, MURL_PARAM as aU, MURL_SEP as aV, ManifestEnrichmentService as aW, MenuComponent as aX, ModalDirective as aY, ModalRef as aZ, ModalStore as a_, DotGridComponent as aa, DragListDirective as ab, DragListItemDirective as ac, DraggableDirective as ad, DropdownInputComponent as ae, FILTER_GROUP_CONTEXT as af, FILTER_RANGE_MODES as ag, FILTER_VARIANTS as ah, FLEX_VARIANTS as ai, FOLDER_PICK_LISTENER as aj, FORM_ASSET_FOLDER as ak, FileService as al, FileUploadDirective as am, FileUploadInputComponent as an, FlexComponent as ao, FlexItemComponent as ap, FormGroupComponent as aq, FrameComponent as ar, FreezeService as as, GRID_BREAKPOINTS as at, GetNavService as au, HeaderComponent$1 as av, HighlightDirective as aw, HttpService as ax, ICON_SOURCE as ay, IS_SIDE_PANEL as az, TextOutputComponent as b, SearchUserPanelComponent as b$, MultiRangeInputComponent as b0, MurlUrlSerializer as b1, NAV_DEFAULT_MURL as b2, NAV_ID_SEP as b3, NAV_MAIN_BUTTONS as b4, NAV_SEGMENT_RE as b5, NAV_STORE_REF as b6, NAV_WC_COMPONENTS as b7, NAV_WIDGET_MAP as b8, NavComponent as b9, PanelComponent as bA, PercentagePipe as bB, PlaygroundComponent as bC, PositionDirective as bD, PwaInstallComponent as bE, ROOT_NAV$1 as bF, RadioGroupComponent as bG, RadioInputComponent as bH, RangeInputComponent as bI, RatingInputComponent as bJ, ReactiveElementComponent as bK, RemoteComponent as bL, RemoteLoaderService as bM, ResizeElementComponent as bN, RouteContainer as bO, RowComponent as bP, SEARCH_QUERY as bQ, SEARCH_RESULTS_EVENT as bR, SECTION_ACCORDION_GROUP as bS, SECTION_FORM_CONTEXT as bT, SHARED_ICONS as bU, SIZE_CONTEXT as bV, ScoreComponent as bW, ScrollComponent as bX, ScrollService as bY, SearchPanelComponent as bZ, SearchStore as b_, NavDetailsComponent as ba, NavHeaderComponent as bb, NavMenuComponent as bc, NavStore as bd, NavTrailComponent as be, NothingComponent as bf, NotificationElementComponent as bg, NotificationGroupComponent as bh, NotificationPopupComponent as bi, NotificationService as bj, NotificationStore as bk, NotificationType as bl, NotificationWidgetComponent as bm, ONE_ASSET_BASE_URL as bn, OPTIONS_SOURCE as bo, OVERLAY_WIDGETS as bp, OneApp as bq, OptionsSourceDirective as br, OverlayBodyComponent as bs, OverlayRef as bt, OverlayService as bu, PLATFORM_BUTTON_NAV_IDS as bv, PLATFORM_EXTENSIBLE_NAV_IDS as bw, PLATFORM_NAV_MAP as bx, PLATFORM_ROOT_CHILDREN as by, PaginationComponent as bz, ButtonComponent as c, TreeGridComponent as c$, SectionAccordionDirective as c0, SectionAccordionGroupDirective as c1, SectionBackComponent as c2, SectionBadgesComponent as c3, SectionButtonGroupComponent as c4, SectionCardComponent as c5, SectionCarouselComponent as c6, SectionComponent as c7, SectionFilterComponent as c8, SectionFilterGroupComponent as c9, StepperComponent as cA, StepsComponent as cB, StorageService as cC, StrokeLinecap as cD, StrokeLinejoin as cE, SummaryComponent as cF, SvgGeneratorComponent as cG, SvgGeneratorService as cH, SvgService as cI, TOTAL_COLUMNS as cJ, TRANSLATION_SOURCE as cK, TableComponent as cL, TechnicalMeterComponent as cM, TextInputComponent as cN, TextareaInputComponent as cO, ThemeComponent as cP, ThemeDataService as cQ, ThemeService as cR, ThemeStore as cS, TimeAgoPipe as cT, TimelineComponent as cU, ToggleButtonComponent as cV, ToggleInputComponent as cW, ToggleRadioInputComponent as cX, ToolTipDirective as cY, TooltipComponent as cZ, TranslateService as c_, SectionFilterMenuComponent as ca, SectionFilterPanelComponent as cb, SectionFilterRangePanelComponent as cc, SectionFooterComponent as cd, SectionFormComponent as ce, SectionFormItemComponent as cf, SectionHeaderComponent as cg, SectionHeroComponent as ch, SectionPaginationComponent as ci, SectionSearchComponent as cj, SectionStepperComponent as ck, SectionTabsComponent as cl, SectionToggleComponent as cm, SectionToggleItemDirective as cn, SelectableCardInputComponent as co, SelectorDirective as cp, SettingsSearchBarComponent as cq, SettingsSearchService as cr, ShapeComponent as cs, SharedStoreRegistry as ct, SidePanelDirective as cu, Size as cv, SocketStore as cw, SortComponent as cx, StatComponent as cy, StepComponent as cz, APP_CONTEXT_REF as d, getScrollParent as d$, URL_SEP as d0, USER_STORE_REF as d1, USER_TAB_MAP as d2, UniverseComponent as d3, UserApiService as d4, UserAvatarComponent as d5, UserComponent as d6, UserNavComponent as d7, UserSettingsComponent as d8, UserStore as d9, deriveContrastColor as dA, deriveOppositeColor as dB, derivePropertyName as dC, emailValidation as dD, evaluate as dE, evaluateBool as dF, filterHoldsList as dG, filterHoldsOneBound as dH, filterHoldsOptions as dI, filterHoldsRange as dJ, filterList as dK, filterNumber as dL, filterNumberList as dM, filterOne as dN, filterPanelOf as dO, filterPanelWidth as dP, filterRange as dQ, filterTreeGridRows as dR, filterValueList as dS, filterValues as dT, flattenTreeGridRows as dU, formatBadgeCount as dV, fullName as dW, generateClipPath as dX, generateTransform as dY, getClassList as dZ, getProperty as d_, WC_ROUTE_CHANGED_EVENT as da, WC_SEARCH_GROUPS as db, WIN_USER_TAB_HOOK as dc, WIN_USER_TAB_KEY as dd, WatermarkComponent as de, WcRouterStore as df, WrapperInputComponent as dg, anchorNavId as dh, applyColorsToElement as di, assetOptions as dj, bootstrapMagApp as dk, bootstrapPwaInstall as dl, buildWcBaseUrl as dm, calculateLuminance as dn, calculateRanks as dp, cellText as dq, checkFilterCondition as dr, childNavId as ds, classListSignal as dt, coerceSize as du, cornerEdge as dv, cornerSide as dw, createMap as dx, createPlatformNavMap as dy, deriveAvatarGradient as dz, ASSET_BASE_URL as e, processImageToSvg as e$, getTierFromPreviewPath as e0, getTreeGridRow as e1, getUniqueId as e2, getValue as e3, hasErrorComputed as e4, hexToRgb as e5, hslToRgb$1 as e6, initMagmoniumApp as e7, initialNotificationState as e8, initialState$2 as e9, matchFieldValidation as eA, maxLengthValidation as eB, maxValidation as eC, mergePlatformNav as eD, mergeUnique as eE, mergeUniqueBy as eF, mergeUniqueWith as eG, minAgeValidation as eH, minLengthValidation as eI, minValidation as eJ, miniMarkToHtml as eK, navIdChain as eL, navIdFor as eM, navIdSegment as eN, navIdToRoutePath as eO, navIdToSegments as eP, navParamOf as eQ, navToId as eR, normalizeAssetOptions as eS, parentNavId as eT, parseAddress as eU, parseColor as eV, parsePatternNames as eW, patternValidation as eX, patternsValidation as eY, platformNavWidgets as eZ, privateGuard as e_, initials as ea, injectAuthenticate as eb, injectInstallApp as ec, injectParentSize as ed, injectScrollSticky as ee, isButtonName as ef, isCancelledComputed as eg, isExtensiblePlatformNavId as eh, isJson as ei, isLoadingComputed as ej, isLocalhost as ek, isNavInstanceConfig as el, isNavMenuConfig as em, isNavRowsConfig as en, isPlatformNavId as eo, isSize as ep, isTierPreview as eq, isUrlLocalhost as er, isValidNavId as es, isValidNavSegment as et, isWebComponent as eu, linkToId as ev, linkToNav as ew, loadingActions as ex, mInterceptor as ey, manualValidation as ez, AccordionBodyDirective as f, provideAppContext as f0, provideMagAppConfig as f1, provideMagWcConfig as f2, provideMagWcRoutes as f3, provideModalComponents as f4, provideMurlUrlSerializer as f5, provideNavWidgets as f6, provideOverlayWidgets as f7, providePlatformNavWidgets as f8, provideSearch as f9, toHostNavId as fA, toLength$1 as fB, toLocalNavId as fC, toggleTreeGridRow as fD, unfetchedPlatformNav as fE, urlValidation as fF, provideSizeContext as fa, provideUserTabs as fb, publicGuard as fc, readFieldPatterns as fd, renderAddress as fe, requiredValidation as ff, resolveConfigAsset as fg, resolveIconSize as fh, resolvePallet as fi, resolvePatternRules as fj, resolveSize as fk, rgbToHex as fl, rgbToHsl as fm, rowHasChildren as fn, samePatterns as fo, segmentsToNavId as fp, setProperty as fq, setTreeGridChildren as fr, settingsWidgets as fs, shouldShowBadge as ft, splitNavId as fu, splitOnMatch as fv, stringToColor as fw, toAttrBool as fx, toAttrNumber as fy, toCssLength as fz, 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 };
|
|
35493
|
+
//# sourceMappingURL=magmonium-one-magmonium-one-C9LOwqLE.mjs.map
|