@skyux/core 12.0.0-alpha.1 → 12.0.0-alpha.11
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 +2339 -1530
- package/fesm2022/skyux-core-testing.mjs +26 -27
- package/fesm2022/skyux-core-testing.mjs.map +1 -1
- package/fesm2022/skyux-core.mjs +295 -195
- package/fesm2022/skyux-core.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/lib/modules/content-info-provider/content-info-provider.d.ts +3 -0
- package/lib/modules/dock/dock.module.d.ts +1 -0
- package/lib/modules/dock/dock.service.d.ts +0 -2
- package/lib/modules/layout-host/layout-host.directive.d.ts +11 -0
- package/lib/modules/live-announcer/types/live-announcer-args.d.ts +4 -0
- package/lib/modules/overlay/overlay.module.d.ts +1 -0
- package/lib/modules/viewkeeper/viewkeeper-host-options.d.ts +1 -0
- package/lib/modules/viewkeeper/viewkeeper-options.d.ts +4 -0
- package/package.json +7 -7
- package/testing/modules/overlay/overlay-harness-filters.d.ts +2 -2
- package/testing/shared/harness-filters.d.ts +0 -1
- package/testing/shared/input-harness.d.ts +0 -1
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,
|
2
|
+
import { NgModule, Injectable, inject, RendererFactory2, NgZone, EventEmitter, Output, Input, Directive, EnvironmentInjector, createEnvironmentInjector, createComponent, ChangeDetectorRef, ElementRef, ViewContainerRef, ViewChild, ChangeDetectionStrategy, Component, 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';
|
@@ -16,11 +16,11 @@ import * as i1$2 from '@angular/platform-browser';
|
|
16
16
|
* The `SkyCoreAdapterModule` can be removed from your project.
|
17
17
|
*/
|
18
18
|
class SkyCoreAdapterModule {
|
19
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
20
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.
|
21
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.
|
19
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyCoreAdapterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
20
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: SkyCoreAdapterModule }); }
|
21
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyCoreAdapterModule }); }
|
22
22
|
}
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyCoreAdapterModule, decorators: [{
|
24
24
|
type: NgModule,
|
25
25
|
args: [{}]
|
26
26
|
}] });
|
@@ -282,10 +282,10 @@ class SkyCoreAdapterService {
|
|
282
282
|
element.getClientRects().length);
|
283
283
|
return hasBounds;
|
284
284
|
}
|
285
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
286
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
285
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyCoreAdapterService, deps: [{ token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
286
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyCoreAdapterService, providedIn: 'root' }); }
|
287
287
|
}
|
288
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
288
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyCoreAdapterService, decorators: [{
|
289
289
|
type: Injectable,
|
290
290
|
args: [{
|
291
291
|
providedIn: 'root',
|
@@ -322,6 +322,9 @@ function getInversePlacement(placement) {
|
|
322
322
|
return pairings[placement];
|
323
323
|
}
|
324
324
|
|
325
|
+
function useViewportForBounds(element) {
|
326
|
+
return 'BODY' === element.tagName;
|
327
|
+
}
|
325
328
|
/**
|
326
329
|
* Returns the offset values of a given element.
|
327
330
|
* @param element The HTML element.
|
@@ -418,7 +421,7 @@ function getOverflowParents(child) {
|
|
418
421
|
*/
|
419
422
|
function isOffsetFullyVisibleWithinParent(viewportRuler, parent, offset, bufferOffset) {
|
420
423
|
let parentOffset;
|
421
|
-
if (parent
|
424
|
+
if (useViewportForBounds(parent)) {
|
422
425
|
const viewportRect = viewportRuler.getViewportRect();
|
423
426
|
parentOffset = {
|
424
427
|
top: 0,
|
@@ -439,9 +442,22 @@ function isOffsetFullyVisibleWithinParent(viewportRuler, parent, offset, bufferO
|
|
439
442
|
parentOffset.left <= offset.left);
|
440
443
|
}
|
441
444
|
function isOffsetPartiallyVisibleWithinParent(viewportRuler, parent, offset, bufferOffset) {
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
+
let parentOffset;
|
446
|
+
if (useViewportForBounds(parent)) {
|
447
|
+
const viewportRect = viewportRuler.getViewportRect();
|
448
|
+
parentOffset = {
|
449
|
+
top: 0,
|
450
|
+
left: 0,
|
451
|
+
right: viewportRect.width,
|
452
|
+
bottom: viewportRect.height,
|
453
|
+
};
|
454
|
+
}
|
455
|
+
else if (bufferOffset) {
|
456
|
+
parentOffset = getElementOffset(parent, bufferOffset);
|
457
|
+
}
|
458
|
+
else {
|
459
|
+
parentOffset = getVisibleRectForElement(viewportRuler, parent);
|
460
|
+
}
|
445
461
|
return !(parentOffset.top >= offset.bottom ||
|
446
462
|
parentOffset.right <= offset.left ||
|
447
463
|
parentOffset.bottom <= offset.top ||
|
@@ -903,10 +919,10 @@ class SkyAffixService {
|
|
903
919
|
this.#renderer.appendChild(doc.body, layoutViewportElement);
|
904
920
|
return layoutViewportElement;
|
905
921
|
}
|
906
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
907
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
922
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyAffixService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
923
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyAffixService, providedIn: 'root' }); }
|
908
924
|
}
|
909
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
925
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyAffixService, decorators: [{
|
910
926
|
type: Injectable,
|
911
927
|
args: [{
|
912
928
|
providedIn: 'root',
|
@@ -990,10 +1006,10 @@ class SkyAffixDirective {
|
|
990
1006
|
});
|
991
1007
|
}
|
992
1008
|
}
|
993
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
994
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.
|
1009
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyAffixDirective, deps: [{ token: i0.ElementRef }, { token: SkyAffixService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
1010
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.1", type: SkyAffixDirective, isStandalone: false, selector: "[skyAffixTo]", inputs: { skyAffixTo: "skyAffixTo", affixAutoFitContext: "affixAutoFitContext", affixAutoFitOverflowOffset: "affixAutoFitOverflowOffset", affixEnableAutoFit: "affixEnableAutoFit", affixHorizontalAlignment: "affixHorizontalAlignment", affixIsSticky: "affixIsSticky", affixPlacement: "affixPlacement", affixPosition: "affixPosition", affixVerticalAlignment: "affixVerticalAlignment" }, outputs: { affixOffsetChange: "affixOffsetChange", affixOverflowScroll: "affixOverflowScroll", affixPlacementChange: "affixPlacementChange" }, usesOnChanges: true, ngImport: i0 }); }
|
995
1011
|
}
|
996
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
1012
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyAffixDirective, decorators: [{
|
997
1013
|
type: Directive,
|
998
1014
|
args: [{
|
999
1015
|
selector: '[skyAffixTo]',
|
@@ -1026,11 +1042,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
|
|
1026
1042
|
}] } });
|
1027
1043
|
|
1028
1044
|
class SkyAffixModule {
|
1029
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
1030
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.
|
1031
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.
|
1045
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyAffixModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
1046
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: SkyAffixModule, declarations: [SkyAffixDirective], imports: [CommonModule], exports: [SkyAffixDirective] }); }
|
1047
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyAffixModule, imports: [CommonModule] }); }
|
1032
1048
|
}
|
1033
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
1049
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyAffixModule, decorators: [{
|
1034
1050
|
type: NgModule,
|
1035
1051
|
args: [{
|
1036
1052
|
imports: [CommonModule],
|
@@ -1060,7 +1076,12 @@ class SkyContentInfoProvider {
|
|
1060
1076
|
getInfo() {
|
1061
1077
|
return this.#contentInfo.asObservable();
|
1062
1078
|
}
|
1079
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyContentInfoProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1080
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyContentInfoProvider }); }
|
1063
1081
|
}
|
1082
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyContentInfoProvider, decorators: [{
|
1083
|
+
type: Injectable
|
1084
|
+
}] });
|
1064
1085
|
|
1065
1086
|
/**
|
1066
1087
|
* @internal
|
@@ -1138,13 +1159,14 @@ var SkyDockLocation;
|
|
1138
1159
|
|
1139
1160
|
/**
|
1140
1161
|
* @deprecated The `SkyDockModule` is no longer needed and can be removed from your application.
|
1162
|
+
* @internal
|
1141
1163
|
*/
|
1142
1164
|
class SkyDockModule {
|
1143
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
1144
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.
|
1145
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.
|
1165
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyDockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
1166
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: SkyDockModule }); }
|
1167
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyDockModule }); }
|
1146
1168
|
}
|
1147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
1169
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyDockModule, decorators: [{
|
1148
1170
|
type: NgModule,
|
1149
1171
|
args: [{}]
|
1150
1172
|
}] });
|
@@ -1194,10 +1216,10 @@ class SkyAppWindowRef {
|
|
1194
1216
|
get nativeWindow() {
|
1195
1217
|
return getWindow();
|
1196
1218
|
}
|
1197
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
1198
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
1219
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyAppWindowRef, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1220
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyAppWindowRef, providedIn: 'root' }); }
|
1199
1221
|
}
|
1200
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
1222
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyAppWindowRef, decorators: [{
|
1201
1223
|
type: Injectable,
|
1202
1224
|
args: [{
|
1203
1225
|
providedIn: 'root',
|
@@ -1288,10 +1310,10 @@ class SkyDynamicComponentService {
|
|
1288
1310
|
// https://malcoded.com/posts/angular-dynamic-components
|
1289
1311
|
return componentRef.hostView.rootNodes[0];
|
1290
1312
|
}
|
1291
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
1292
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
1313
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyDynamicComponentService, deps: [{ token: i0.ApplicationRef }, { token: SkyAppWindowRef }, { token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1314
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyDynamicComponentService, providedIn: 'root' }); }
|
1293
1315
|
}
|
1294
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
1316
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyDynamicComponentService, decorators: [{
|
1295
1317
|
type: Injectable,
|
1296
1318
|
args: [{
|
1297
1319
|
providedIn: 'root',
|
@@ -1303,10 +1325,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
|
|
1303
1325
|
* @deprecated Use `SkyDynamicComponentService` to create a standalone component instead.
|
1304
1326
|
*/
|
1305
1327
|
class SkyDynamicComponentLegacyService extends SkyDynamicComponentService {
|
1306
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
1307
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
1328
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyDynamicComponentLegacyService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
1329
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyDynamicComponentLegacyService, providedIn: 'any' }); }
|
1308
1330
|
}
|
1309
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
1331
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyDynamicComponentLegacyService, decorators: [{
|
1310
1332
|
type: Injectable,
|
1311
1333
|
args: [{
|
1312
1334
|
providedIn: 'any',
|
@@ -1320,10 +1342,10 @@ class SkyMutationObserverService {
|
|
1320
1342
|
create(callback) {
|
1321
1343
|
return new MutationObserver(callback);
|
1322
1344
|
}
|
1323
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
1324
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
1345
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyMutationObserverService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1346
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyMutationObserverService, providedIn: 'root' }); }
|
1325
1347
|
}
|
1326
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
1348
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyMutationObserverService, decorators: [{
|
1327
1349
|
type: Injectable,
|
1328
1350
|
args: [{
|
1329
1351
|
providedIn: 'root',
|
@@ -1385,7 +1407,7 @@ class SkyDockDomAdapterService {
|
|
1385
1407
|
}
|
1386
1408
|
// Create a style element to avoid overwriting any existing inline body styles.
|
1387
1409
|
const styleElement = this.#renderer.createElement('style');
|
1388
|
-
const textNode = this.#renderer.createText(`body { margin-bottom: ${dockHeight}px; }`);
|
1410
|
+
const textNode = this.#renderer.createText(`body { margin-bottom: ${dockHeight}px; --sky-dock-height: ${dockHeight}px; }`);
|
1389
1411
|
// Apply a `data-` attribute to make unit testing easier.
|
1390
1412
|
this.#renderer.setAttribute(styleElement, 'data-test-selector', 'sky-layout-dock-bottom-styles');
|
1391
1413
|
this.#renderer.appendChild(styleElement, textNode);
|
@@ -1399,10 +1421,10 @@ class SkyDockDomAdapterService {
|
|
1399
1421
|
#destroyStyleElement() {
|
1400
1422
|
this.#renderer.removeChild(document.head, this.#styleElement);
|
1401
1423
|
}
|
1402
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
1403
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
1424
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyDockDomAdapterService, deps: [{ token: SkyMutationObserverService }, { token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1425
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyDockDomAdapterService }); }
|
1404
1426
|
}
|
1405
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
1427
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyDockDomAdapterService, decorators: [{
|
1406
1428
|
type: Injectable
|
1407
1429
|
}], ctorParameters: () => [{ type: SkyMutationObserverService }, { type: i0.RendererFactory2 }] });
|
1408
1430
|
|
@@ -1500,10 +1522,10 @@ class SkyDockComponent {
|
|
1500
1522
|
}
|
1501
1523
|
return this.#itemRefs[0].stackOrder + 1;
|
1502
1524
|
}
|
1503
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
1504
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.
|
1525
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyDockComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
1526
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: SkyDockComponent, isStandalone: true, selector: "sky-dock", providers: [SkyDockDomAdapterService], viewQueries: [{ propertyName: "target", first: true, predicate: ["target"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: "<ng-container #target />\n", styles: [":host{display:flex;flex-direction:column;width:100%}:host:not(.sky-dock-unbound){position:fixed;left:var(--sky-viewport-left, 0);bottom:var(--sky-viewport-bottom, 0);right:var(--sky-viewport-right, 0);width:auto}:host.sky-dock-sticky{position:sticky}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
1505
1527
|
}
|
1506
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
1528
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyDockComponent, decorators: [{
|
1507
1529
|
type: Component,
|
1508
1530
|
args: [{ standalone: true, selector: 'sky-dock', providers: [SkyDockDomAdapterService], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container #target />\n", styles: [":host{display:flex;flex-direction:column;width:100%}:host:not(.sky-dock-unbound){position:fixed;left:var(--sky-viewport-left, 0);bottom:var(--sky-viewport-bottom, 0);right:var(--sky-viewport-right, 0);width:auto}:host.sky-dock-sticky{position:sticky}\n"] }]
|
1509
1531
|
}], propDecorators: { target: [{
|
@@ -1526,28 +1548,27 @@ class SkyDockService {
|
|
1526
1548
|
get items() {
|
1527
1549
|
return _a$1._items;
|
1528
1550
|
}
|
1529
|
-
#dynamicComponentSvc;
|
1551
|
+
#dynamicComponentSvc = inject(SkyDynamicComponentService);
|
1552
|
+
#subscription;
|
1530
1553
|
#options;
|
1531
|
-
constructor(dynamicComponentSvc) {
|
1532
|
-
this.#dynamicComponentSvc = dynamicComponentSvc;
|
1533
|
-
}
|
1534
1554
|
/**
|
1535
1555
|
* Docks a component to the bottom of the page.
|
1536
1556
|
* @param component The component to dock.
|
1537
1557
|
* @param config Options that affect the docking action.
|
1538
1558
|
*/
|
1539
1559
|
insertComponent(component, config) {
|
1560
|
+
this.#subscription ??= new Subscription();
|
1540
1561
|
const dockRef = (_a$1.dockRef =
|
1541
1562
|
_a$1.dockRef || this.#createDock());
|
1542
1563
|
const itemRef = dockRef.instance.insertComponent(component, config);
|
1543
1564
|
const item = new SkyDockItem(itemRef.componentRef.instance, itemRef.stackOrder);
|
1544
|
-
item.destroyed.subscribe(() => {
|
1565
|
+
this.#subscription?.add(item.destroyed.subscribe(() => {
|
1545
1566
|
dockRef.instance.removeItem(itemRef);
|
1546
1567
|
_a$1._items.splice(_a$1._items.indexOf(item), 1);
|
1547
1568
|
if (_a$1._items.length === 0) {
|
1548
1569
|
this.#destroyDock();
|
1549
1570
|
}
|
1550
|
-
});
|
1571
|
+
}));
|
1551
1572
|
_a$1._items.push(item);
|
1552
1573
|
_a$1._items.sort(sortByStackOrder);
|
1553
1574
|
return item;
|
@@ -1587,19 +1608,21 @@ class SkyDockService {
|
|
1587
1608
|
return dockRef;
|
1588
1609
|
}
|
1589
1610
|
#destroyDock() {
|
1611
|
+
this.#subscription?.unsubscribe();
|
1612
|
+
this.#subscription = undefined;
|
1590
1613
|
this.#dynamicComponentSvc.removeComponent(_a$1.dockRef);
|
1591
1614
|
_a$1.dockRef = undefined;
|
1592
1615
|
}
|
1593
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
1594
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
1616
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyDockService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1617
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyDockService, providedIn: 'root' }); }
|
1595
1618
|
}
|
1596
1619
|
_a$1 = SkyDockService;
|
1597
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
1620
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyDockService, decorators: [{
|
1598
1621
|
type: Injectable,
|
1599
1622
|
args: [{
|
1600
1623
|
providedIn: 'root',
|
1601
1624
|
}]
|
1602
|
-
}]
|
1625
|
+
}] });
|
1603
1626
|
|
1604
1627
|
/**
|
1605
1628
|
* Provides services required to create dynamic components on the page.
|
@@ -1607,11 +1630,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
|
|
1607
1630
|
* The `SkyDynamicComponentModule` can be removed from your project.
|
1608
1631
|
*/
|
1609
1632
|
class SkyDynamicComponentModule {
|
1610
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
1611
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.
|
1612
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.
|
1633
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyDynamicComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
1634
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: SkyDynamicComponentModule }); }
|
1635
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyDynamicComponentModule }); }
|
1613
1636
|
}
|
1614
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
1637
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyDynamicComponentModule, decorators: [{
|
1615
1638
|
type: NgModule,
|
1616
1639
|
args: [{}]
|
1617
1640
|
}] });
|
@@ -1636,10 +1659,10 @@ class SkyFileReaderService {
|
|
1636
1659
|
reader.readAsDataURL(file);
|
1637
1660
|
});
|
1638
1661
|
}
|
1639
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
1640
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
1662
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyFileReaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1663
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyFileReaderService, providedIn: 'root' }); }
|
1641
1664
|
}
|
1642
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
1665
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyFileReaderService, decorators: [{
|
1643
1666
|
type: Injectable,
|
1644
1667
|
args: [{
|
1645
1668
|
providedIn: 'root',
|
@@ -1652,10 +1675,10 @@ class SkyAppFormat {
|
|
1652
1675
|
return args[parseInt(capture, 10)];
|
1653
1676
|
});
|
1654
1677
|
}
|
1655
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
1656
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
1678
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyAppFormat, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1679
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyAppFormat, providedIn: 'root' }); }
|
1657
1680
|
}
|
1658
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
1681
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyAppFormat, decorators: [{
|
1659
1682
|
type: Injectable,
|
1660
1683
|
args: [{
|
1661
1684
|
providedIn: 'root',
|
@@ -1677,10 +1700,10 @@ class SkyHelpService {
|
|
1677
1700
|
get widgetReadyStateChange() {
|
1678
1701
|
return of(false);
|
1679
1702
|
}
|
1680
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
1681
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
1703
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyHelpService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1704
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyHelpService }); }
|
1682
1705
|
}
|
1683
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
1706
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyHelpService, decorators: [{
|
1684
1707
|
type: Injectable
|
1685
1708
|
}] });
|
1686
1709
|
|
@@ -1696,10 +1719,10 @@ class SkyIdService {
|
|
1696
1719
|
// elements with the same ID across sessions.
|
1697
1720
|
return `sky-id-gen__${new Date().getTime()}__${idIndex}`;
|
1698
1721
|
}
|
1699
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
1700
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
1722
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyIdService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1723
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyIdService, providedIn: 'root' }); }
|
1701
1724
|
}
|
1702
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
1725
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyIdService, decorators: [{
|
1703
1726
|
type: Injectable,
|
1704
1727
|
args: [{
|
1705
1728
|
providedIn: 'root',
|
@@ -1723,10 +1746,10 @@ class SkyIdDirective {
|
|
1723
1746
|
renderer.setAttribute(elRef.nativeElement, 'id', id);
|
1724
1747
|
this.#_id = id;
|
1725
1748
|
}
|
1726
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
1727
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.
|
1749
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyIdDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: SkyIdService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
1750
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.1", type: SkyIdDirective, isStandalone: false, selector: "[skyId]", exportAs: ["skyId"], ngImport: i0 }); }
|
1728
1751
|
}
|
1729
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
1752
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyIdDirective, decorators: [{
|
1730
1753
|
type: Directive,
|
1731
1754
|
args: [{
|
1732
1755
|
selector: '[skyId]',
|
@@ -1736,11 +1759,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
|
|
1736
1759
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: SkyIdService }] });
|
1737
1760
|
|
1738
1761
|
class SkyIdModule {
|
1739
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
1740
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.
|
1741
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.
|
1762
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyIdModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
1763
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: SkyIdModule, declarations: [SkyIdDirective], exports: [SkyIdDirective] }); }
|
1764
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyIdModule }); }
|
1742
1765
|
}
|
1743
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
1766
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyIdModule, decorators: [{
|
1744
1767
|
type: NgModule,
|
1745
1768
|
args: [{
|
1746
1769
|
declarations: [SkyIdDirective],
|
@@ -1760,13 +1783,57 @@ class SkyLayoutHostService {
|
|
1760
1783
|
setHostLayoutForChild(layout) {
|
1761
1784
|
this.#hostLayoutForChild.next(layout);
|
1762
1785
|
}
|
1763
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
1764
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
1786
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyLayoutHostService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1787
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyLayoutHostService }); }
|
1765
1788
|
}
|
1766
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
1789
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyLayoutHostService, decorators: [{
|
1767
1790
|
type: Injectable
|
1768
1791
|
}] });
|
1769
1792
|
|
1793
|
+
const LAYOUT_FOR_CHILD_CLASS_PREFIX = 'sky-layout-host-for-child-';
|
1794
|
+
const LAYOUT_CLASS_PREFIX = 'sky-layout-host-';
|
1795
|
+
/**
|
1796
|
+
* @internal
|
1797
|
+
*/
|
1798
|
+
class SkyLayoutHostDirective {
|
1799
|
+
#elementRef;
|
1800
|
+
#layoutForChild;
|
1801
|
+
#renderer;
|
1802
|
+
constructor() {
|
1803
|
+
this.#elementRef = inject(ElementRef);
|
1804
|
+
this.#layoutForChild = toSignal(inject(SkyLayoutHostService).hostLayoutForChild);
|
1805
|
+
this.#renderer = inject(RendererFactory2).createRenderer(null, null);
|
1806
|
+
this.layout = input();
|
1807
|
+
effect(() => {
|
1808
|
+
const cssClass = [`${LAYOUT_CLASS_PREFIX}${this.layout() ?? 'none'}`];
|
1809
|
+
const layoutForChild = this.#layoutForChild()?.layout;
|
1810
|
+
if (layoutForChild) {
|
1811
|
+
cssClass.push(`${LAYOUT_FOR_CHILD_CLASS_PREFIX}${layoutForChild}`);
|
1812
|
+
}
|
1813
|
+
const classList = this.#elementRef.nativeElement.classList.values();
|
1814
|
+
for (const className of classList) {
|
1815
|
+
if (className.startsWith(LAYOUT_CLASS_PREFIX) &&
|
1816
|
+
!cssClass.includes(className)) {
|
1817
|
+
this.#renderer.removeClass(this.#elementRef.nativeElement, className);
|
1818
|
+
}
|
1819
|
+
}
|
1820
|
+
for (const className of cssClass) {
|
1821
|
+
this.#renderer.addClass(this.#elementRef.nativeElement, className);
|
1822
|
+
}
|
1823
|
+
});
|
1824
|
+
}
|
1825
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyLayoutHostDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
1826
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.1", type: SkyLayoutHostDirective, isStandalone: true, selector: "[skyLayoutHost]", inputs: { layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null } }, providers: [SkyLayoutHostService], ngImport: i0 }); }
|
1827
|
+
}
|
1828
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyLayoutHostDirective, decorators: [{
|
1829
|
+
type: Directive,
|
1830
|
+
args: [{
|
1831
|
+
selector: '[skyLayoutHost]',
|
1832
|
+
standalone: true,
|
1833
|
+
providers: [SkyLayoutHostService],
|
1834
|
+
}]
|
1835
|
+
}], ctorParameters: () => [] });
|
1836
|
+
|
1770
1837
|
/**
|
1771
1838
|
* Allows for announcing messages to screen reader users through the use of a common `aria-live` element.
|
1772
1839
|
* @internal
|
@@ -1775,10 +1842,13 @@ class SkyLiveAnnouncerService {
|
|
1775
1842
|
#announcerElement;
|
1776
1843
|
#document;
|
1777
1844
|
#idService;
|
1845
|
+
#durationTimeout;
|
1846
|
+
#ngZone;
|
1778
1847
|
constructor() {
|
1779
1848
|
this.announcerElementChanged = new ReplaySubject(1);
|
1780
1849
|
this.#document = inject(DOCUMENT);
|
1781
1850
|
this.#idService = inject(SkyIdService);
|
1851
|
+
this.#ngZone = inject(NgZone);
|
1782
1852
|
this.#announcerElement = this.#createLiveElement();
|
1783
1853
|
this.announcerElementChanged.next(this.#announcerElement);
|
1784
1854
|
}
|
@@ -1795,9 +1865,13 @@ class SkyLiveAnnouncerService {
|
|
1795
1865
|
this.announcerElementChanged.next(this.#announcerElement);
|
1796
1866
|
}
|
1797
1867
|
const politeness = args?.politeness ?? 'polite';
|
1798
|
-
this.clear();
|
1799
1868
|
this.#announcerElement.setAttribute('aria-live', politeness);
|
1869
|
+
this.clear();
|
1870
|
+
clearTimeout(this.#durationTimeout);
|
1800
1871
|
this.#announcerElement.textContent = message;
|
1872
|
+
this.#ngZone.runOutsideAngular(() => {
|
1873
|
+
this.#durationTimeout = setTimeout(() => this.clear(), args?.duration ?? this.#calculateDefaultDurationFromString(message));
|
1874
|
+
});
|
1801
1875
|
}
|
1802
1876
|
/**
|
1803
1877
|
* Clears the current text from the announcer element. Can be used to prevent
|
@@ -1816,6 +1890,16 @@ class SkyLiveAnnouncerService {
|
|
1816
1890
|
this.#announcerElement?.remove();
|
1817
1891
|
this.#announcerElement = undefined;
|
1818
1892
|
this.announcerElementChanged.next(undefined);
|
1893
|
+
clearTimeout(this.#durationTimeout);
|
1894
|
+
}
|
1895
|
+
#calculateDefaultDurationFromString(message) {
|
1896
|
+
// Research suggests normal WPM is 110 for english. Lowering here to be conservative.
|
1897
|
+
const baseWordsPerMinute = 80;
|
1898
|
+
const minuteInMilliseconds = 60000;
|
1899
|
+
const numberOfWords = message.split(' ').length;
|
1900
|
+
const baseTime = (numberOfWords / baseWordsPerMinute) * minuteInMilliseconds;
|
1901
|
+
// Add 50% to time to account for exceptionally slow screen reader settings and/or speech settings that leave long pauses between words.
|
1902
|
+
return baseTime * 1.5;
|
1819
1903
|
}
|
1820
1904
|
#createLiveElement() {
|
1821
1905
|
const elementClass = 'sky-live-announcer-element';
|
@@ -1833,10 +1917,10 @@ class SkyLiveAnnouncerService {
|
|
1833
1917
|
this.#document.body.appendChild(liveEl);
|
1834
1918
|
return liveEl;
|
1835
1919
|
}
|
1836
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
1837
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
1920
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyLiveAnnouncerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1921
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyLiveAnnouncerService, providedIn: 'root' }); }
|
1838
1922
|
}
|
1839
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
1923
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyLiveAnnouncerService, decorators: [{
|
1840
1924
|
type: Injectable,
|
1841
1925
|
args: [{
|
1842
1926
|
providedIn: 'root',
|
@@ -1848,11 +1932,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
|
|
1848
1932
|
* The `SkyLogModule` can be removed from your project.
|
1849
1933
|
*/
|
1850
1934
|
class SkyLogModule {
|
1851
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
1852
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.
|
1853
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.
|
1935
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyLogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
1936
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: SkyLogModule }); }
|
1937
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyLogModule }); }
|
1854
1938
|
}
|
1855
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
1939
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyLogModule, decorators: [{
|
1856
1940
|
type: NgModule,
|
1857
1941
|
args: [{}]
|
1858
1942
|
}] });
|
@@ -1999,10 +2083,10 @@ class SkyLogService {
|
|
1999
2083
|
}
|
2000
2084
|
return key;
|
2001
2085
|
}
|
2002
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
2003
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
2086
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyLogService, deps: [{ token: SkyAppFormat }, { token: SKY_LOG_LEVEL, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
2087
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyLogService, providedIn: 'root' }); }
|
2004
2088
|
}
|
2005
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
2089
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyLogService, decorators: [{
|
2006
2090
|
type: Injectable,
|
2007
2091
|
args: [{
|
2008
2092
|
providedIn: 'root',
|
@@ -2121,10 +2205,10 @@ class SkyResizeObserverService {
|
|
2121
2205
|
}
|
2122
2206
|
errorLogRegistered = false;
|
2123
2207
|
}
|
2124
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
2125
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
2208
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyResizeObserverService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
2209
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyResizeObserverService, providedIn: 'root' }); }
|
2126
2210
|
}
|
2127
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
2211
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyResizeObserverService, decorators: [{
|
2128
2212
|
type: Injectable,
|
2129
2213
|
args: [{
|
2130
2214
|
providedIn: 'root',
|
@@ -2183,10 +2267,10 @@ class SkyContainerBreakpointObserver {
|
|
2183
2267
|
#notifyBreakpointChange(breakpoint) {
|
2184
2268
|
this.#breakpointChange.next(breakpoint);
|
2185
2269
|
}
|
2186
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
2187
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
2270
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyContainerBreakpointObserver, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
2271
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyContainerBreakpointObserver }); }
|
2188
2272
|
}
|
2189
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
2273
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyContainerBreakpointObserver, decorators: [{
|
2190
2274
|
type: Injectable
|
2191
2275
|
}], ctorParameters: () => [] });
|
2192
2276
|
|
@@ -2235,10 +2319,10 @@ class SkyMediaBreakpointObserver {
|
|
2235
2319
|
#notifyBreakpointChange(breakpoint) {
|
2236
2320
|
this.#breakpointChange.next(breakpoint);
|
2237
2321
|
}
|
2238
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
2239
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
2322
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyMediaBreakpointObserver, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
2323
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyMediaBreakpointObserver, providedIn: 'root' }); }
|
2240
2324
|
}
|
2241
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
2325
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyMediaBreakpointObserver, decorators: [{
|
2242
2326
|
type: Injectable,
|
2243
2327
|
args: [{
|
2244
2328
|
providedIn: 'root',
|
@@ -2310,10 +2394,10 @@ class SkyMediaQueryService {
|
|
2310
2394
|
},
|
2311
2395
|
});
|
2312
2396
|
}
|
2313
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
2314
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
2397
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyMediaQueryService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
2398
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyMediaQueryService, providedIn: 'root' }); }
|
2315
2399
|
}
|
2316
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
2400
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyMediaQueryService, decorators: [{
|
2317
2401
|
type: Injectable,
|
2318
2402
|
args: [{
|
2319
2403
|
providedIn: 'root',
|
@@ -2376,10 +2460,10 @@ class SkyResponsiveHostDirective {
|
|
2376
2460
|
adapter.setResponsiveContainerClass(elementRef, breakpoint);
|
2377
2461
|
});
|
2378
2462
|
}
|
2379
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
2380
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.
|
2463
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyResponsiveHostDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
2464
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.1", type: SkyResponsiveHostDirective, isStandalone: true, selector: "[skyResponsiveHost]", providers: [provideSkyBreakpointObserver(SkyContainerBreakpointObserver)], exportAs: ["skyResponsiveHost"], ngImport: i0 }); }
|
2381
2465
|
}
|
2382
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
2466
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyResponsiveHostDirective, decorators: [{
|
2383
2467
|
type: Directive,
|
2384
2468
|
args: [{
|
2385
2469
|
exportAs: 'skyResponsiveHost',
|
@@ -2394,11 +2478,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
|
|
2394
2478
|
* The `SkyMediaQueryModule` can be removed from your project.
|
2395
2479
|
*/
|
2396
2480
|
class SkyMediaQueryModule {
|
2397
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
2398
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.
|
2399
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.
|
2481
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyMediaQueryModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
2482
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: SkyMediaQueryModule }); }
|
2483
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyMediaQueryModule }); }
|
2400
2484
|
}
|
2401
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
2485
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyMediaQueryModule, decorators: [{
|
2402
2486
|
type: NgModule,
|
2403
2487
|
args: [{}]
|
2404
2488
|
}] });
|
@@ -2417,17 +2501,23 @@ const RESOURCES = {
|
|
2417
2501
|
skyux_numeric_thousands_symbol: { message: 'K' },
|
2418
2502
|
skyux_numeric_trillions_symbol: { message: 'T' },
|
2419
2503
|
},
|
2504
|
+
'FR-CA': {
|
2505
|
+
skyux_numeric_billions_symbol: { message: 'G' },
|
2506
|
+
skyux_numeric_millions_symbol: { message: 'M' },
|
2507
|
+
skyux_numeric_thousands_symbol: { message: 'K' },
|
2508
|
+
skyux_numeric_trillions_symbol: { message: 'T' },
|
2509
|
+
},
|
2420
2510
|
};
|
2421
2511
|
SkyLibResourcesService.addResources(RESOURCES);
|
2422
2512
|
/**
|
2423
2513
|
* Import into any component library module that needs to use resource strings.
|
2424
2514
|
*/
|
2425
2515
|
class SkyCoreResourcesModule {
|
2426
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
2427
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.
|
2428
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.
|
2516
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyCoreResourcesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
2517
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: SkyCoreResourcesModule, exports: [SkyI18nModule] }); }
|
2518
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyCoreResourcesModule, imports: [SkyI18nModule] }); }
|
2429
2519
|
}
|
2430
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
2520
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyCoreResourcesModule, decorators: [{
|
2431
2521
|
type: NgModule,
|
2432
2522
|
args: [{
|
2433
2523
|
exports: [SkyI18nModule],
|
@@ -2712,10 +2802,10 @@ class SkyNumericService {
|
|
2712
2802
|
// TODO: Need to implement the async `getString` method in a breaking change.
|
2713
2803
|
return this.#resourcesSvc.getStringForLocale({ locale: 'en_US' }, key);
|
2714
2804
|
}
|
2715
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
2716
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
2805
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyNumericService, deps: [{ token: i1.SkyLibResourcesService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
2806
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyNumericService, providedIn: 'root' }); }
|
2717
2807
|
}
|
2718
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
2808
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyNumericService, decorators: [{
|
2719
2809
|
type: Injectable,
|
2720
2810
|
args: [{
|
2721
2811
|
providedIn: 'root',
|
@@ -2788,10 +2878,10 @@ class SkyNumericPipe {
|
|
2788
2878
|
this.#formattedValue = this.#numericSvc.formatNumber(value, options);
|
2789
2879
|
return this.#formattedValue;
|
2790
2880
|
}
|
2791
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
2792
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.
|
2881
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyNumericPipe, deps: [{ token: i1.SkyAppLocaleProvider }, { token: SkyNumericService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
2882
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: SkyNumericPipe, isStandalone: false, name: "skyNumeric", pure: false }); }
|
2793
2883
|
}
|
2794
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
2884
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyNumericPipe, decorators: [{
|
2795
2885
|
type: Pipe,
|
2796
2886
|
args: [{
|
2797
2887
|
name: 'skyNumeric',
|
@@ -2801,11 +2891,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
|
|
2801
2891
|
}], ctorParameters: () => [{ type: i1.SkyAppLocaleProvider }, { type: SkyNumericService }, { type: i0.ChangeDetectorRef }] });
|
2802
2892
|
|
2803
2893
|
class SkyNumericModule {
|
2804
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
2805
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.
|
2806
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.
|
2894
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyNumericModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
2895
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: SkyNumericModule, declarations: [SkyNumericPipe], imports: [SkyCoreResourcesModule], exports: [SkyNumericPipe] }); }
|
2896
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyNumericModule, providers: [SkyNumericPipe], imports: [SkyCoreResourcesModule] }); }
|
2807
2897
|
}
|
2808
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
2898
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyNumericModule, decorators: [{
|
2809
2899
|
type: NgModule,
|
2810
2900
|
args: [{
|
2811
2901
|
declarations: [SkyNumericPipe],
|
@@ -2878,13 +2968,14 @@ class SkyOverlayInstance {
|
|
2878
2968
|
|
2879
2969
|
/**
|
2880
2970
|
* @deprecated The `SkyOverlayModule` is no longer needed and can be removed from your application.
|
2971
|
+
* @internal
|
2881
2972
|
*/
|
2882
2973
|
class SkyOverlayModule {
|
2883
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
2884
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.
|
2885
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.
|
2974
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyOverlayModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
2975
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: SkyOverlayModule }); }
|
2976
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyOverlayModule }); }
|
2886
2977
|
}
|
2887
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
2978
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyOverlayModule, decorators: [{
|
2888
2979
|
type: NgModule,
|
2889
2980
|
args: [{}]
|
2890
2981
|
}] });
|
@@ -2951,10 +3042,10 @@ class SkyOverlayAdapterService {
|
|
2951
3042
|
});
|
2952
3043
|
siblingAriaHiddenCache.clear();
|
2953
3044
|
}
|
2954
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
2955
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
3045
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyOverlayAdapterService, deps: [{ token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
3046
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyOverlayAdapterService, providedIn: 'root' }); }
|
2956
3047
|
}
|
2957
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
3048
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyOverlayAdapterService, decorators: [{
|
2958
3049
|
type: Injectable,
|
2959
3050
|
args: [{
|
2960
3051
|
providedIn: 'root',
|
@@ -3138,10 +3229,10 @@ class SkyOverlayComponent {
|
|
3138
3229
|
this.#routerSubscription = undefined;
|
3139
3230
|
}
|
3140
3231
|
}
|
3141
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
3142
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.
|
3232
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyOverlayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
3233
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.1", type: SkyOverlayComponent, isStandalone: true, selector: "sky-overlay", host: { properties: { "id": "this.id" } }, viewQueries: [{ propertyName: "overlayContentRef", first: true, predicate: ["overlayContentRef"], descendants: true, read: ElementRef, static: true }, { propertyName: "overlayRef", first: true, predicate: ["overlayRef"], descendants: true, read: ElementRef, static: true }, { propertyName: "targetRef", first: true, predicate: ["target"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: "<div\n #overlayRef\n [class]=\"'sky-overlay-position-' + position + ' ' + wrapperClass\"\n [style.z-index]=\"zIndex\"\n [style.clip-path]=\"clipPath$ | async\"\n [ngClass]=\"{\n 'enable-pointer-events-pass-through': enablePointerEvents,\n 'sky-overlay': true\n }\"\n>\n <div #overlayContentRef class=\"sky-overlay-content\">\n <ng-template #target />\n </div>\n @if (showBackdrop) {\n <div class=\"sky-overlay-backdrop\"></div>\n }\n</div>\n", styles: [".sky-overlay{inset:0;width:100%;height:100%;display:flex;pointer-events:auto}.sky-overlay-position-absolute{position:absolute}.sky-overlay-position-fixed{position:fixed}.sky-overlay-content{position:relative;z-index:1;display:inline-flex;align-self:start;pointer-events:auto}.sky-overlay-backdrop{background:#00000080;inset:0;width:100%;height:100%;position:absolute}.enable-pointer-events-pass-through,.enable-pointer-events-pass-through .sky-overlay-backdrop{pointer-events:none}.enable-pointer-events-pass-through .sky-overlay-content{pointer-events:auto}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
3143
3234
|
}
|
3144
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
3235
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyOverlayComponent, decorators: [{
|
3145
3236
|
type: Component,
|
3146
3237
|
args: [{ selector: 'sky-overlay', changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule], template: "<div\n #overlayRef\n [class]=\"'sky-overlay-position-' + position + ' ' + wrapperClass\"\n [style.z-index]=\"zIndex\"\n [style.clip-path]=\"clipPath$ | async\"\n [ngClass]=\"{\n 'enable-pointer-events-pass-through': enablePointerEvents,\n 'sky-overlay': true\n }\"\n>\n <div #overlayContentRef class=\"sky-overlay-content\">\n <ng-template #target />\n </div>\n @if (showBackdrop) {\n <div class=\"sky-overlay-backdrop\"></div>\n }\n</div>\n", styles: [".sky-overlay{inset:0;width:100%;height:100%;display:flex;pointer-events:auto}.sky-overlay-position-absolute{position:absolute}.sky-overlay-position-fixed{position:fixed}.sky-overlay-content{position:relative;z-index:1;display:inline-flex;align-self:start;pointer-events:auto}.sky-overlay-backdrop{background:#00000080;inset:0;width:100%;height:100%;position:absolute}.enable-pointer-events-pass-through,.enable-pointer-events-pass-through .sky-overlay-backdrop{pointer-events:none}.enable-pointer-events-pass-through .sky-overlay-content{pointer-events:auto}\n"] }]
|
3147
3238
|
}], ctorParameters: () => [], propDecorators: { id: [{
|
@@ -3264,11 +3355,11 @@ class SkyOverlayService {
|
|
3264
3355
|
}
|
3265
3356
|
}
|
3266
3357
|
}
|
3267
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
3268
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
3358
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyOverlayService, deps: [{ token: SkyDynamicComponentService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
3359
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyOverlayService, providedIn: 'root' }); }
|
3269
3360
|
}
|
3270
3361
|
_a = SkyOverlayService;
|
3271
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
3362
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyOverlayService, decorators: [{
|
3272
3363
|
type: Injectable,
|
3273
3364
|
args: [{
|
3274
3365
|
providedIn: 'root',
|
@@ -3284,10 +3375,10 @@ class SkyOverlayLegacyService extends SkyOverlayService {
|
|
3284
3375
|
constructor(dynamicComponentSvc) {
|
3285
3376
|
super(dynamicComponentSvc);
|
3286
3377
|
}
|
3287
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
3288
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
3378
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyOverlayLegacyService, deps: [{ token: SkyDynamicComponentLegacyService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
3379
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyOverlayLegacyService, providedIn: 'any' }); }
|
3289
3380
|
}
|
3290
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
3381
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyOverlayLegacyService, decorators: [{
|
3291
3382
|
type: Injectable,
|
3292
3383
|
args: [{
|
3293
3384
|
providedIn: 'any',
|
@@ -3332,10 +3423,10 @@ class SkyPercentPipe {
|
|
3332
3423
|
? SkyNumberFormatUtility.formatNumber(locale, this.#value, SkyIntlNumberFormatStyle.Percent, format)
|
3333
3424
|
: '';
|
3334
3425
|
}
|
3335
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
3336
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.
|
3426
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyPercentPipe, deps: [{ token: i1.SkyAppLocaleProvider }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
3427
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: SkyPercentPipe, isStandalone: false, name: "skyPercent", pure: false }); }
|
3337
3428
|
}
|
3338
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
3429
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyPercentPipe, decorators: [{
|
3339
3430
|
type: Pipe,
|
3340
3431
|
args: [{
|
3341
3432
|
name: 'skyPercent',
|
@@ -3345,11 +3436,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
|
|
3345
3436
|
}], ctorParameters: () => [{ type: i1.SkyAppLocaleProvider }] });
|
3346
3437
|
|
3347
3438
|
class SkyPercentPipeModule {
|
3348
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
3349
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.
|
3350
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.
|
3439
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyPercentPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
3440
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: SkyPercentPipeModule, declarations: [SkyPercentPipe], imports: [SkyCoreResourcesModule], exports: [SkyPercentPipe] }); }
|
3441
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyPercentPipeModule, providers: [SkyPercentPipe], imports: [SkyCoreResourcesModule] }); }
|
3351
3442
|
}
|
3352
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
3443
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyPercentPipeModule, decorators: [{
|
3353
3444
|
type: NgModule,
|
3354
3445
|
args: [{
|
3355
3446
|
declarations: [SkyPercentPipe],
|
@@ -3497,10 +3588,10 @@ class SkyResizeObserverMediaQueryService extends SkyMediaQueryService {
|
|
3497
3588
|
this.#updateBreakpoint(breakpoint, updateResponsiveClasses);
|
3498
3589
|
}
|
3499
3590
|
}
|
3500
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
3501
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
3591
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyResizeObserverMediaQueryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
3592
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyResizeObserverMediaQueryService }); }
|
3502
3593
|
}
|
3503
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
3594
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyResizeObserverMediaQueryService, decorators: [{
|
3504
3595
|
type: Injectable
|
3505
3596
|
}] });
|
3506
3597
|
|
@@ -3555,10 +3646,10 @@ class SkyScreenReaderLabelDirective {
|
|
3555
3646
|
containerEl.remove();
|
3556
3647
|
}
|
3557
3648
|
}
|
3558
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
3559
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.
|
3649
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyScreenReaderLabelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
3650
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.1", type: SkyScreenReaderLabelDirective, isStandalone: true, selector: "[skyScreenReaderLabel]", inputs: { createLabel: "createLabel" }, ngImport: i0 }); }
|
3560
3651
|
}
|
3561
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
3652
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyScreenReaderLabelDirective, decorators: [{
|
3562
3653
|
type: Directive,
|
3563
3654
|
args: [{
|
3564
3655
|
selector: '[skyScreenReaderLabel]',
|
@@ -3666,10 +3757,10 @@ class SkyScrollShadowDirective {
|
|
3666
3757
|
this.#currentShadow = shadow;
|
3667
3758
|
}
|
3668
3759
|
}
|
3669
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
3670
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.
|
3760
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyScrollShadowDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
3761
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.1", type: SkyScrollShadowDirective, isStandalone: true, selector: "[skyScrollShadow]", inputs: { skyScrollShadowEnabled: "skyScrollShadowEnabled" }, outputs: { skyScrollShadow: "skyScrollShadow" }, host: { listeners: { "window:resize": "windowResize()", "scroll": "scroll()" } }, ngImport: i0 }); }
|
3671
3762
|
}
|
3672
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
3763
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyScrollShadowDirective, decorators: [{
|
3673
3764
|
type: Directive,
|
3674
3765
|
args: [{
|
3675
3766
|
standalone: true,
|
@@ -3891,10 +3982,10 @@ class SkyScrollableHostService {
|
|
3891
3982
|
height: docElem.clientHeight,
|
3892
3983
|
};
|
3893
3984
|
}
|
3894
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
3895
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
3985
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyScrollableHostService, deps: [{ token: SkyMutationObserverService }, { token: SkyAppWindowRef }, { token: SkyResizeObserverService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
3986
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyScrollableHostService, providedIn: 'root' }); }
|
3896
3987
|
}
|
3897
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
3988
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyScrollableHostService, decorators: [{
|
3898
3989
|
type: Injectable,
|
3899
3990
|
args: [{
|
3900
3991
|
providedIn: 'root',
|
@@ -3921,10 +4012,10 @@ class SkyAppTitleService {
|
|
3921
4012
|
this.#title.setTitle(args.titleParts.join(' - '));
|
3922
4013
|
}
|
3923
4014
|
}
|
3924
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
3925
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
4015
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyAppTitleService, deps: [{ token: i1$2.Title }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
4016
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyAppTitleService, providedIn: 'root' }); }
|
3926
4017
|
}
|
3927
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
4018
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyAppTitleService, decorators: [{
|
3928
4019
|
type: Injectable,
|
3929
4020
|
args: [{
|
3930
4021
|
providedIn: 'root',
|
@@ -3982,10 +4073,10 @@ class SkyTrimDirective {
|
|
3982
4073
|
}
|
3983
4074
|
this.#observe();
|
3984
4075
|
}
|
3985
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
3986
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.
|
4076
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyTrimDirective, deps: [{ token: i0.ElementRef }, { token: SkyMutationObserverService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
4077
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.1", type: SkyTrimDirective, isStandalone: false, selector: "[skyTrim]", ngImport: i0 }); }
|
3987
4078
|
}
|
3988
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
4079
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyTrimDirective, decorators: [{
|
3989
4080
|
type: Directive,
|
3990
4081
|
args: [{
|
3991
4082
|
selector: '[skyTrim]',
|
@@ -3994,11 +4085,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
|
|
3994
4085
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: SkyMutationObserverService }] });
|
3995
4086
|
|
3996
4087
|
class SkyTrimModule {
|
3997
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
3998
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.
|
3999
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.
|
4088
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyTrimModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
4089
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: SkyTrimModule, declarations: [SkyTrimDirective], exports: [SkyTrimDirective] }); }
|
4090
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyTrimModule }); }
|
4000
4091
|
}
|
4001
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
4092
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyTrimModule, decorators: [{
|
4002
4093
|
type: NgModule,
|
4003
4094
|
args: [{
|
4004
4095
|
declarations: [SkyTrimDirective],
|
@@ -4014,10 +4105,10 @@ class SkyUIConfigService {
|
|
4014
4105
|
setConfig(key, value) {
|
4015
4106
|
return of({});
|
4016
4107
|
}
|
4017
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
4018
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
4108
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyUIConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
4109
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyUIConfigService, providedIn: 'root' }); }
|
4019
4110
|
}
|
4020
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
4111
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyUIConfigService, decorators: [{
|
4021
4112
|
type: Injectable,
|
4022
4113
|
args: [{
|
4023
4114
|
providedIn: 'root',
|
@@ -4025,10 +4116,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
|
|
4025
4116
|
}] });
|
4026
4117
|
|
4027
4118
|
class SkyViewkeeperHostOptions {
|
4028
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
4029
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
4119
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyViewkeeperHostOptions, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
4120
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyViewkeeperHostOptions }); }
|
4030
4121
|
}
|
4031
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
4122
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyViewkeeperHostOptions, decorators: [{
|
4032
4123
|
type: Injectable
|
4033
4124
|
}] });
|
4034
4125
|
|
@@ -4075,10 +4166,12 @@ function px(value) {
|
|
4075
4166
|
}
|
4076
4167
|
return pxValue;
|
4077
4168
|
}
|
4078
|
-
function setElPosition(el, left, top, width, marginTop, clipTop, clipLeft) {
|
4169
|
+
function setElPosition(el, left, top, width, marginTop, marginTopProperty, clipTop, clipLeft) {
|
4079
4170
|
el.style.top = px(top);
|
4080
4171
|
el.style.left = px(left);
|
4081
|
-
el.style.marginTop =
|
4172
|
+
el.style.marginTop = marginTopProperty
|
4173
|
+
? `calc(${px(marginTop)} + var(${marginTopProperty}, 0))`
|
4174
|
+
: px(marginTop);
|
4082
4175
|
el.style.clipPath =
|
4083
4176
|
clipTop || clipLeft ? `inset(${px(clipTop)} 0 0 ${px(clipLeft)})` : 'none';
|
4084
4177
|
/*istanbul ignore else*/
|
@@ -4106,6 +4199,7 @@ class SkyViewkeeper {
|
|
4106
4199
|
#verticalOffset;
|
4107
4200
|
#verticalOffsetEl;
|
4108
4201
|
#viewportMarginTop = 0;
|
4202
|
+
#viewportMarginProperty;
|
4109
4203
|
#currentElFixedLeft;
|
4110
4204
|
#currentElFixedTop;
|
4111
4205
|
#currentElFixedWidth;
|
@@ -4136,6 +4230,7 @@ class SkyViewkeeper {
|
|
4136
4230
|
// Only set viewport margin if the scrollable host is undefined.
|
4137
4231
|
if (!this.#scrollableHost) {
|
4138
4232
|
this.#viewportMarginTop = options.viewportMarginTop ?? 0;
|
4233
|
+
this.#viewportMarginProperty = options.viewportMarginProperty;
|
4139
4234
|
}
|
4140
4235
|
this.#syncElPositionHandler = () => this.syncElPosition(el, boundaryEl);
|
4141
4236
|
if (this.#verticalOffsetEl) {
|
@@ -4209,7 +4304,7 @@ class SkyViewkeeper {
|
|
4209
4304
|
if (this.#setWidth) {
|
4210
4305
|
width = 'auto';
|
4211
4306
|
}
|
4212
|
-
setElPosition(el, '', '', width, '', 0, 0);
|
4307
|
+
setElPosition(el, '', '', width, '', '', 0, 0);
|
4213
4308
|
}
|
4214
4309
|
#calculateVerticalOffset() {
|
4215
4310
|
let offset = this.#verticalOffset;
|
@@ -4231,8 +4326,13 @@ class SkyViewkeeper {
|
|
4231
4326
|
else {
|
4232
4327
|
anchorTop = getOffset(el, this.#scrollableHost).top;
|
4233
4328
|
}
|
4234
|
-
|
4235
|
-
|
4329
|
+
let viewportMarginTop = this.#viewportMarginTop;
|
4330
|
+
const viewportMarginProperty = this.#viewportMarginProperty &&
|
4331
|
+
getComputedStyle(document.body).getPropertyValue(this.#viewportMarginProperty);
|
4332
|
+
if (viewportMarginProperty) {
|
4333
|
+
viewportMarginTop += parseInt(viewportMarginProperty, 10);
|
4334
|
+
}
|
4335
|
+
const doFixEl = boundaryInfo.scrollTop + verticalOffset + viewportMarginTop > anchorTop;
|
4236
4336
|
return doFixEl;
|
4237
4337
|
}
|
4238
4338
|
#getFixedStyles(boundaryInfo, verticalOffset) {
|
@@ -4300,7 +4400,7 @@ class SkyViewkeeper {
|
|
4300
4400
|
if (this.#setWidth) {
|
4301
4401
|
width = fixedStyles.elFixedWidth;
|
4302
4402
|
}
|
4303
|
-
setElPosition(el, fixedStyles.elFixedLeft, fixedStyles.elFixedTop, width, this.#viewportMarginTop, fixedStyles.elClipTop, fixedStyles.elClipLeft);
|
4403
|
+
setElPosition(el, fixedStyles.elFixedLeft, fixedStyles.elFixedTop, width, this.#viewportMarginTop, this.#viewportMarginProperty, fixedStyles.elClipTop, fixedStyles.elClipLeft);
|
4304
4404
|
}
|
4305
4405
|
#getBoundaryInfo(el, boundaryEl) {
|
4306
4406
|
const spacerId = this.#getSpacerId();
|
@@ -4351,10 +4451,10 @@ class SkyViewkeeperService {
|
|
4351
4451
|
destroy(vk) {
|
4352
4452
|
vk.destroy();
|
4353
4453
|
}
|
4354
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
4355
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
4454
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyViewkeeperService, deps: [{ token: SkyViewkeeperHostOptions, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
4455
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyViewkeeperService, providedIn: 'root' }); }
|
4356
4456
|
}
|
4357
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
4457
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyViewkeeperService, decorators: [{
|
4358
4458
|
type: Injectable,
|
4359
4459
|
args: [{
|
4360
4460
|
providedIn: 'root',
|
@@ -4473,10 +4573,10 @@ class SkyViewkeeperDirective {
|
|
4473
4573
|
this.#currentViewkeeperEls = viewkeeperEls;
|
4474
4574
|
}
|
4475
4575
|
}
|
4476
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
4477
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.
|
4576
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyViewkeeperDirective, deps: [{ token: i0.ElementRef }, { token: SkyMutationObserverService }, { token: SkyViewkeeperService }, { token: SkyScrollableHostService, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
4577
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.1", type: SkyViewkeeperDirective, isStandalone: false, selector: "[skyViewkeeper]", inputs: { skyViewkeeper: "skyViewkeeper" }, ngImport: i0 }); }
|
4478
4578
|
}
|
4479
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
4579
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyViewkeeperDirective, decorators: [{
|
4480
4580
|
type: Directive,
|
4481
4581
|
args: [{
|
4482
4582
|
selector: '[skyViewkeeper]',
|
@@ -4489,11 +4589,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
|
|
4489
4589
|
}] } });
|
4490
4590
|
|
4491
4591
|
class SkyViewkeeperModule {
|
4492
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
4493
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.
|
4494
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.
|
4592
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyViewkeeperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
4593
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: SkyViewkeeperModule, declarations: [SkyViewkeeperDirective], exports: [SkyViewkeeperDirective] }); }
|
4594
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyViewkeeperModule }); }
|
4495
4595
|
}
|
4496
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
4596
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyViewkeeperModule, decorators: [{
|
4497
4597
|
type: NgModule,
|
4498
4598
|
args: [{
|
4499
4599
|
declarations: [SkyViewkeeperDirective],
|
@@ -4518,11 +4618,11 @@ class Version {
|
|
4518
4618
|
/**
|
4519
4619
|
* Represents the version of @skyux/core.
|
4520
4620
|
*/
|
4521
|
-
const VERSION = new Version('12.0.0-alpha.
|
4621
|
+
const VERSION = new Version('12.0.0-alpha.11');
|
4522
4622
|
|
4523
4623
|
/**
|
4524
4624
|
* Generated bundle index. Do not edit.
|
4525
4625
|
*/
|
4526
4626
|
|
4527
|
-
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 };
|
4627
|
+
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 };
|
4528
4628
|
//# sourceMappingURL=skyux-core.mjs.map
|