@skyux/core 12.0.0-alpha.6 → 12.0.0-alpha.7
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/documentation.json +1247 -1247
- package/fesm2022/skyux-core.mjs +54 -4
- package/fesm2022/skyux-core.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/lib/modules/layout-host/layout-host.directive.d.ts +11 -0
- package/package.json +2 -2
package/fesm2022/skyux-core.mjs
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
|
-
import { NgModule, Injectable, inject, RendererFactory2, NgZone, EventEmitter, Directive, Input, Output, EnvironmentInjector, createEnvironmentInjector, createComponent, ChangeDetectorRef, ElementRef, ViewContainerRef, Component, ChangeDetectionStrategy, ViewChild, InjectionToken, Optional, Inject, ApplicationRef, afterNextRender, Injector, Pipe, HostBinding, Renderer2, HostListener } from '@angular/core';
|
2
|
+
import { NgModule, Injectable, inject, RendererFactory2, NgZone, EventEmitter, Directive, Input, Output, EnvironmentInjector, createEnvironmentInjector, createComponent, ChangeDetectorRef, ElementRef, ViewContainerRef, Component, ChangeDetectionStrategy, ViewChild, InjectionToken, input, effect, Optional, Inject, ApplicationRef, afterNextRender, Injector, Pipe, HostBinding, Renderer2, HostListener } from '@angular/core';
|
3
3
|
import * as i1$1 from '@angular/common';
|
4
4
|
import { DOCUMENT, CommonModule } from '@angular/common';
|
5
5
|
import { Subject, Subscription, ReplaySubject, fromEvent, of, Observable, filter, map, distinctUntilChanged, shareReplay, throttle, animationFrames, take, takeUntil as takeUntil$1, BehaviorSubject, concat, animationFrameScheduler } from 'rxjs';
|
6
6
|
import { takeUntil, debounceTime, switchMap, map as map$1 } from 'rxjs/operators';
|
7
7
|
import { ViewportRuler } from '@angular/cdk/overlay';
|
8
|
-
import {
|
8
|
+
import { toSignal, takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
9
9
|
import * as i1 from '@skyux/i18n';
|
10
10
|
import { SkyLibResourcesService, SkyI18nModule, SkyIntlNumberFormatStyle, SkyIntlNumberFormatter } from '@skyux/i18n';
|
11
11
|
import { Router, NavigationStart } from '@angular/router';
|
@@ -1774,6 +1774,50 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
|
|
1774
1774
|
type: Injectable
|
1775
1775
|
}] });
|
1776
1776
|
|
1777
|
+
const LAYOUT_FOR_CHILD_CLASS_PREFIX = 'sky-layout-host-for-child-';
|
1778
|
+
const LAYOUT_CLASS_PREFIX = 'sky-layout-host-';
|
1779
|
+
/**
|
1780
|
+
* @internal
|
1781
|
+
*/
|
1782
|
+
class SkyLayoutHostDirective {
|
1783
|
+
#elementRef;
|
1784
|
+
#layoutForChild;
|
1785
|
+
#renderer;
|
1786
|
+
constructor() {
|
1787
|
+
this.#elementRef = inject(ElementRef);
|
1788
|
+
this.#layoutForChild = toSignal(inject(SkyLayoutHostService).hostLayoutForChild);
|
1789
|
+
this.#renderer = inject(RendererFactory2).createRenderer(null, null);
|
1790
|
+
this.layout = input();
|
1791
|
+
effect(() => {
|
1792
|
+
const cssClass = [`${LAYOUT_CLASS_PREFIX}${this.layout() ?? 'none'}`];
|
1793
|
+
const layoutForChild = this.#layoutForChild()?.layout;
|
1794
|
+
if (layoutForChild) {
|
1795
|
+
cssClass.push(`${LAYOUT_FOR_CHILD_CLASS_PREFIX}${layoutForChild}`);
|
1796
|
+
}
|
1797
|
+
const classList = this.#elementRef.nativeElement.classList.values();
|
1798
|
+
for (const className of classList) {
|
1799
|
+
if (className.startsWith(LAYOUT_CLASS_PREFIX) &&
|
1800
|
+
!cssClass.includes(className)) {
|
1801
|
+
this.#renderer.removeClass(this.#elementRef.nativeElement, className);
|
1802
|
+
}
|
1803
|
+
}
|
1804
|
+
for (const className of cssClass) {
|
1805
|
+
this.#renderer.addClass(this.#elementRef.nativeElement, className);
|
1806
|
+
}
|
1807
|
+
});
|
1808
|
+
}
|
1809
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SkyLayoutHostDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
1810
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.0.5", type: SkyLayoutHostDirective, isStandalone: true, selector: "[skyLayoutHost]", inputs: { layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null } }, providers: [SkyLayoutHostService], ngImport: i0 }); }
|
1811
|
+
}
|
1812
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SkyLayoutHostDirective, decorators: [{
|
1813
|
+
type: Directive,
|
1814
|
+
args: [{
|
1815
|
+
selector: '[skyLayoutHost]',
|
1816
|
+
standalone: true,
|
1817
|
+
providers: [SkyLayoutHostService],
|
1818
|
+
}]
|
1819
|
+
}], ctorParameters: () => [] });
|
1820
|
+
|
1777
1821
|
/**
|
1778
1822
|
* Allows for announcing messages to screen reader users through the use of a common `aria-live` element.
|
1779
1823
|
* @internal
|
@@ -2441,6 +2485,12 @@ const RESOURCES = {
|
|
2441
2485
|
skyux_numeric_thousands_symbol: { message: 'K' },
|
2442
2486
|
skyux_numeric_trillions_symbol: { message: 'T' },
|
2443
2487
|
},
|
2488
|
+
'FR-CA': {
|
2489
|
+
skyux_numeric_billions_symbol: { message: 'G' },
|
2490
|
+
skyux_numeric_millions_symbol: { message: 'M' },
|
2491
|
+
skyux_numeric_thousands_symbol: { message: 'K' },
|
2492
|
+
skyux_numeric_trillions_symbol: { message: 'T' },
|
2493
|
+
},
|
2444
2494
|
};
|
2445
2495
|
SkyLibResourcesService.addResources(RESOURCES);
|
2446
2496
|
/**
|
@@ -4552,11 +4602,11 @@ class Version {
|
|
4552
4602
|
/**
|
4553
4603
|
* Represents the version of @skyux/core.
|
4554
4604
|
*/
|
4555
|
-
const VERSION = new Version('12.0.0-alpha.
|
4605
|
+
const VERSION = new Version('12.0.0-alpha.7');
|
4556
4606
|
|
4557
4607
|
/**
|
4558
4608
|
* Generated bundle index. Do not edit.
|
4559
4609
|
*/
|
4560
4610
|
|
4561
|
-
export { NumericOptions, SKY_BREAKPOINTS, SKY_BREAKPOINT_OBSERVER, SKY_HELP_GLOBAL_OPTIONS, SKY_LOG_LEVEL, SKY_STACKING_CONTEXT, SkyAffixAutoFitContext, SkyAffixModule, SkyAffixService, SkyAffixer, SkyAppFormat, SkyAppTitleService, SkyAppWindowRef, SkyContainerBreakpointObserver, SkyContentInfoProvider, SkyCoreAdapterModule, SkyCoreAdapterService, SkyDefaultInputProvider, SkyDockItem, SkyDockLocation, SkyDockModule, SkyDockService, SkyDynamicComponentLegacyService, SkyDynamicComponentLocation, SkyDynamicComponentModule, SkyDynamicComponentService, SkyFileReaderService, SkyHelpService, SkyIdModule, SkyIdService, SkyLayoutHostService, SkyLiveAnnouncerService, SkyLogLevel, SkyLogModule, SkyLogService, SkyMediaBreakpointObserver, SkyMediaBreakpoints, SkyMediaQueryModule, SkyMediaQueryService, SkyMutationObserverService, SkyNumericModule, SkyNumericPipe, SkyNumericService, SkyOverlayInstance, SkyOverlayLegacyService, SkyOverlayModule, SkyOverlayService, SkyPercentPipe, SkyPercentPipeModule, SkyResizeObserverMediaQueryService, SkyResizeObserverService, SkyResponsiveHostDirective, SkyScreenReaderLabelDirective, SkyScrollShadowDirective, SkyScrollableHostService, SkyTrimModule, SkyUIConfigService, SkyViewkeeperHostOptions, SkyViewkeeperModule, SkyViewkeeperService, VERSION, provideSkyBreakpointObserver, SkyAffixDirective as λ1, SkyIdDirective as λ2, SkyViewkeeperDirective as λ3, SkyTrimDirective as λ4 };
|
4611
|
+
export { NumericOptions, SKY_BREAKPOINTS, SKY_BREAKPOINT_OBSERVER, SKY_HELP_GLOBAL_OPTIONS, SKY_LOG_LEVEL, SKY_STACKING_CONTEXT, SkyAffixAutoFitContext, SkyAffixModule, SkyAffixService, SkyAffixer, SkyAppFormat, SkyAppTitleService, SkyAppWindowRef, SkyContainerBreakpointObserver, SkyContentInfoProvider, SkyCoreAdapterModule, SkyCoreAdapterService, SkyDefaultInputProvider, SkyDockItem, SkyDockLocation, SkyDockModule, SkyDockService, SkyDynamicComponentLegacyService, SkyDynamicComponentLocation, SkyDynamicComponentModule, SkyDynamicComponentService, SkyFileReaderService, SkyHelpService, SkyIdModule, SkyIdService, SkyLayoutHostDirective, SkyLayoutHostService, SkyLiveAnnouncerService, SkyLogLevel, SkyLogModule, SkyLogService, SkyMediaBreakpointObserver, SkyMediaBreakpoints, SkyMediaQueryModule, SkyMediaQueryService, SkyMutationObserverService, SkyNumericModule, SkyNumericPipe, SkyNumericService, SkyOverlayInstance, SkyOverlayLegacyService, SkyOverlayModule, SkyOverlayService, SkyPercentPipe, SkyPercentPipeModule, SkyResizeObserverMediaQueryService, SkyResizeObserverService, SkyResponsiveHostDirective, SkyScreenReaderLabelDirective, SkyScrollShadowDirective, SkyScrollableHostService, SkyTrimModule, SkyUIConfigService, SkyViewkeeperHostOptions, SkyViewkeeperModule, SkyViewkeeperService, VERSION, provideSkyBreakpointObserver, SkyAffixDirective as λ1, SkyIdDirective as λ2, SkyViewkeeperDirective as λ3, SkyTrimDirective as λ4 };
|
4562
4612
|
//# sourceMappingURL=skyux-core.mjs.map
|