@skyux/core 5.1.2 → 5.2.2
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/README.md +1 -1
- package/bundles/skyux-core-testing.umd.js +27 -32
- package/bundles/skyux-core-testing.umd.js.map +1 -1
- package/bundles/skyux-core.umd.js +420 -369
- package/bundles/skyux-core.umd.js.map +1 -1
- package/documentation.json +541 -548
- package/esm2015/modules/adapter-service/adapter.module.js +5 -5
- package/esm2015/modules/adapter-service/adapter.service.js +9 -8
- package/esm2015/modules/adapter-service/focusable-children-options.js +1 -1
- package/esm2015/modules/affix/affix-auto-fit-context.js +1 -1
- package/esm2015/modules/affix/affix-config.js +1 -1
- package/esm2015/modules/affix/affix-offset-change.js +1 -1
- package/esm2015/modules/affix/affix-offset.js +1 -1
- package/esm2015/modules/affix/affix-placement-change.js +1 -1
- package/esm2015/modules/affix/affix-utils.js +3 -8
- package/esm2015/modules/affix/affix.directive.js +7 -7
- package/esm2015/modules/affix/affix.module.js +8 -16
- package/esm2015/modules/affix/affix.service.js +6 -6
- package/esm2015/modules/affix/affixer.js +21 -19
- package/esm2015/modules/affix/dom-utils.js +3 -4
- package/esm2015/modules/dock/dock-dom-adapter.service.js +8 -7
- package/esm2015/modules/dock/dock-insert-component-config.js +1 -1
- package/esm2015/modules/dock/dock-item-config.js +1 -1
- package/esm2015/modules/dock/dock-item-reference.js +1 -1
- package/esm2015/modules/dock/dock-item.js +1 -1
- package/esm2015/modules/dock/dock-location.js +1 -1
- package/esm2015/modules/dock/dock-options.js +1 -1
- package/esm2015/modules/dock/dock.component.js +13 -17
- package/esm2015/modules/dock/dock.module.js +9 -21
- package/esm2015/modules/dock/dock.service.js +6 -6
- package/esm2015/modules/dynamic-component/dynamic-component-location.js +1 -1
- package/esm2015/modules/dynamic-component/dynamic-component-options.js +1 -1
- package/esm2015/modules/dynamic-component/dynamic-component.module.js +5 -5
- package/esm2015/modules/dynamic-component/dynamic-component.service.js +7 -7
- package/esm2015/modules/format/app-format.js +5 -5
- package/esm2015/modules/id/id.directive.js +5 -5
- package/esm2015/modules/id/id.module.js +7 -11
- package/esm2015/modules/log/log.module.js +5 -5
- package/esm2015/modules/log/log.service.js +5 -5
- package/esm2015/modules/media-query/media-breakpoints.js +1 -1
- package/esm2015/modules/media-query/media-query-listener.js +1 -1
- package/esm2015/modules/media-query/media-query.module.js +5 -5
- package/esm2015/modules/media-query/media-query.service.js +12 -12
- package/esm2015/modules/mutation/mutation-observer-service.js +5 -5
- package/esm2015/modules/numeric/numeric.module.js +9 -24
- package/esm2015/modules/numeric/numeric.options.js +1 -1
- package/esm2015/modules/numeric/numeric.pipe.js +12 -14
- package/esm2015/modules/numeric/numeric.service.js +16 -15
- package/esm2015/modules/overlay/overlay-adapter.service.js +5 -5
- package/esm2015/modules/overlay/overlay-config.js +1 -1
- package/esm2015/modules/overlay/overlay-context.js +1 -1
- package/esm2015/modules/overlay/overlay-instance.js +1 -1
- package/esm2015/modules/overlay/overlay.component.js +11 -11
- package/esm2015/modules/overlay/overlay.module.js +8 -16
- package/esm2015/modules/overlay/overlay.service.js +13 -11
- package/esm2015/modules/percent-pipe/percent-pipe.module.js +9 -24
- package/esm2015/modules/percent-pipe/percent.pipe.js +7 -6
- package/esm2015/modules/scrollable-host/scrollable-host.service.js +96 -25
- package/esm2015/modules/shared/number-format/number-format-utility.js +8 -5
- package/esm2015/modules/shared/sky-core-resources.module.js +21 -12
- package/esm2015/modules/title/set-title-args.js +1 -1
- package/esm2015/modules/title/title.service.js +5 -5
- package/esm2015/modules/ui-config/ui-config.service.js +5 -5
- package/esm2015/modules/viewkeeper/viewkeeper-boundary-info.js +1 -1
- package/esm2015/modules/viewkeeper/viewkeeper-host-options.js +4 -4
- package/esm2015/modules/viewkeeper/viewkeeper.directive.js +14 -11
- package/esm2015/modules/viewkeeper/viewkeeper.js +36 -15
- package/esm2015/modules/viewkeeper/viewkeeper.module.js +7 -11
- package/esm2015/modules/viewkeeper/viewkeeper.service.js +5 -5
- package/esm2015/modules/window/window-ref.js +5 -5
- package/esm2015/testing/mock-media-query.service.js +7 -7
- package/esm2015/testing/mock-ui-config.service.js +18 -21
- package/fesm2015/skyux-core-testing.js +22 -25
- package/fesm2015/skyux-core-testing.js.map +1 -1
- package/fesm2015/skyux-core.js +400 -363
- package/fesm2015/skyux-core.js.map +1 -1
- package/modules/scrollable-host/scrollable-host.service.d.ts +25 -6
- package/modules/viewkeeper/viewkeeper.d.ts +3 -1
- package/package.json +6 -6
package/fesm2015/skyux-core.js
CHANGED
@@ -2,8 +2,8 @@ import * as i0 from '@angular/core';
|
|
2
2
|
import { NgModule, Injectable, EventEmitter, Directive, Input, Output, Injector, ViewContainerRef, Component, ChangeDetectionStrategy, ViewChild, Pipe, ElementRef, Optional } from '@angular/core';
|
3
3
|
import * as i4 from '@angular/common';
|
4
4
|
import { CommonModule } from '@angular/common';
|
5
|
-
import { Subject, fromEvent, BehaviorSubject, of } from 'rxjs';
|
6
|
-
import { takeUntil, debounceTime
|
5
|
+
import { Subject, fromEvent, BehaviorSubject, Observable, of } from 'rxjs';
|
6
|
+
import { takeUntil, debounceTime } from 'rxjs/operators';
|
7
7
|
import * as i1 from '@skyux/i18n';
|
8
8
|
import { getLibStringForLocale, SkyI18nModule, SKY_LIB_RESOURCES_PROVIDERS, SkyIntlNumberFormatStyle, SkyIntlNumberFormatter } from '@skyux/i18n';
|
9
9
|
import * as i3 from '@angular/router';
|
@@ -16,10 +16,10 @@ import * as i1$1 from '@angular/platform-browser';
|
|
16
16
|
*/
|
17
17
|
class SkyCoreAdapterModule {
|
18
18
|
}
|
19
|
-
SkyCoreAdapterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
20
|
-
SkyCoreAdapterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
21
|
-
SkyCoreAdapterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
19
|
+
SkyCoreAdapterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyCoreAdapterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
20
|
+
SkyCoreAdapterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyCoreAdapterModule });
|
21
|
+
SkyCoreAdapterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyCoreAdapterModule });
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyCoreAdapterModule, decorators: [{
|
23
23
|
type: NgModule,
|
24
24
|
args: [{}]
|
25
25
|
}] });
|
@@ -55,7 +55,7 @@ const SKY_TABBABLE_SELECTOR = [
|
|
55
55
|
'object',
|
56
56
|
'embed',
|
57
57
|
'*[contenteditable=true]:not([disabled])',
|
58
|
-
'*[tabindex]:not([disabled])'
|
58
|
+
'*[tabindex]:not([disabled])',
|
59
59
|
].join(', ');
|
60
60
|
class SkyCoreAdapterService {
|
61
61
|
constructor(rendererFactory) {
|
@@ -140,7 +140,8 @@ class SkyCoreAdapterService {
|
|
140
140
|
const containerElement = elementRef.nativeElement.querySelector(containerSelector);
|
141
141
|
const focusableChildren = this.getFocusableChildren(containerElement);
|
142
142
|
// Focus first focusable child if available. Otherwise, set focus on container.
|
143
|
-
if (!this.focusFirstElement(focusableChildren) &&
|
143
|
+
if (!this.focusFirstElement(focusableChildren) &&
|
144
|
+
focusOnContainerIfNoChildrenFound) {
|
144
145
|
containerElement.focus();
|
145
146
|
}
|
146
147
|
}
|
@@ -249,12 +250,12 @@ class SkyCoreAdapterService {
|
|
249
250
|
return hasBounds;
|
250
251
|
}
|
251
252
|
}
|
252
|
-
SkyCoreAdapterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
253
|
-
SkyCoreAdapterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
254
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
253
|
+
SkyCoreAdapterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyCoreAdapterService, deps: [{ token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable });
|
254
|
+
SkyCoreAdapterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyCoreAdapterService, providedIn: 'root' });
|
255
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyCoreAdapterService, decorators: [{
|
255
256
|
type: Injectable,
|
256
257
|
args: [{
|
257
|
-
providedIn: 'root'
|
258
|
+
providedIn: 'root',
|
258
259
|
}]
|
259
260
|
}], ctorParameters: function () { return [{ type: i0.RendererFactory2 }]; } });
|
260
261
|
|
@@ -271,12 +272,7 @@ var SkyAffixAutoFitContext;
|
|
271
272
|
})(SkyAffixAutoFitContext || (SkyAffixAutoFitContext = {}));
|
272
273
|
|
273
274
|
function getNextPlacement(placement) {
|
274
|
-
const placements = [
|
275
|
-
'above',
|
276
|
-
'right',
|
277
|
-
'below',
|
278
|
-
'left'
|
279
|
-
];
|
275
|
+
const placements = ['above', 'right', 'below', 'left'];
|
280
276
|
let index = placements.indexOf(placement) + 1;
|
281
277
|
if (index >= placements.length) {
|
282
278
|
index = 0;
|
@@ -288,7 +284,7 @@ function getInversePlacement(placement) {
|
|
288
284
|
above: 'below',
|
289
285
|
below: 'above',
|
290
286
|
right: 'left',
|
291
|
-
left: 'right'
|
287
|
+
left: 'right',
|
292
288
|
};
|
293
289
|
return pairings[placement];
|
294
290
|
}
|
@@ -328,7 +324,7 @@ function getElementOffset(element, bufferOffset = {}) {
|
|
328
324
|
bottom,
|
329
325
|
left,
|
330
326
|
right,
|
331
|
-
top
|
327
|
+
top,
|
332
328
|
};
|
333
329
|
}
|
334
330
|
function getOverflowParents(child) {
|
@@ -340,8 +336,7 @@ function getOverflowParents(child) {
|
|
340
336
|
parentElement instanceof HTMLElement) {
|
341
337
|
const overflowY = window
|
342
338
|
.getComputedStyle(parentElement, undefined)
|
343
|
-
.overflowY
|
344
|
-
.toLowerCase();
|
339
|
+
.overflowY.toLowerCase();
|
345
340
|
if (overflowY === 'auto' ||
|
346
341
|
overflowY === 'hidden' ||
|
347
342
|
overflowY === 'scroll') {
|
@@ -376,7 +371,7 @@ const DEFAULT_AFFIX_CONFIG = {
|
|
376
371
|
enableAutoFit: false,
|
377
372
|
horizontalAlignment: 'center',
|
378
373
|
isSticky: false,
|
379
|
-
placement: 'above'
|
374
|
+
placement: 'above',
|
380
375
|
};
|
381
376
|
class SkyAffixer {
|
382
377
|
constructor(affixedElement, renderer) {
|
@@ -454,7 +449,8 @@ class SkyAffixer {
|
|
454
449
|
this._overflowScroll.complete();
|
455
450
|
this._offsetChange =
|
456
451
|
this._placementChange =
|
457
|
-
this._overflowScroll =
|
452
|
+
this._overflowScroll =
|
453
|
+
undefined;
|
458
454
|
}
|
459
455
|
affix() {
|
460
456
|
this.baseRect = this.baseElement.getBoundingClientRect();
|
@@ -480,9 +476,10 @@ class SkyAffixer {
|
|
480
476
|
break;
|
481
477
|
}
|
482
478
|
if (!isAffixedElementFullyVisible) {
|
483
|
-
placement =
|
484
|
-
|
485
|
-
|
479
|
+
placement =
|
480
|
+
attempts % 2 === 0
|
481
|
+
? getInversePlacement(placement)
|
482
|
+
: getNextPlacement(placement);
|
486
483
|
}
|
487
484
|
attempts++;
|
488
485
|
} while (!isAffixedElementFullyVisible && attempts < maxAttempts);
|
@@ -519,7 +516,7 @@ class SkyAffixer {
|
|
519
516
|
top = top + affixedRect.height;
|
520
517
|
break;
|
521
518
|
case 'middle':
|
522
|
-
top = top +
|
519
|
+
top = top + affixedRect.height / 2;
|
523
520
|
break;
|
524
521
|
case 'bottom':
|
525
522
|
default:
|
@@ -533,7 +530,7 @@ class SkyAffixer {
|
|
533
530
|
default:
|
534
531
|
break;
|
535
532
|
case 'middle':
|
536
|
-
top = top -
|
533
|
+
top = top - affixedRect.height / 2;
|
537
534
|
break;
|
538
535
|
case 'bottom':
|
539
536
|
top = top - affixedRect.height;
|
@@ -546,7 +543,7 @@ class SkyAffixer {
|
|
546
543
|
break;
|
547
544
|
case 'center':
|
548
545
|
default:
|
549
|
-
left = baseRect.left +
|
546
|
+
left = baseRect.left + baseRect.width / 2 - affixedRect.width / 2;
|
550
547
|
break;
|
551
548
|
case 'right':
|
552
549
|
left = baseRect.right - affixedRect.width;
|
@@ -566,7 +563,7 @@ class SkyAffixer {
|
|
566
563
|
break;
|
567
564
|
case 'middle':
|
568
565
|
default:
|
569
|
-
top = baseRect.top +
|
566
|
+
top = baseRect.top + baseRect.height / 2 - affixedRect.height / 2;
|
570
567
|
break;
|
571
568
|
case 'bottom':
|
572
569
|
top = baseRect.bottom - affixedRect.height;
|
@@ -642,7 +639,7 @@ class SkyAffixer {
|
|
642
639
|
}
|
643
640
|
getAutoFitContextParent() {
|
644
641
|
const bodyElement = this.overflowParents[0];
|
645
|
-
return
|
642
|
+
return this.config.autoFitContext === SkyAffixAutoFitContext.OverflowParent
|
646
643
|
? this.getImmediateOverflowParent()
|
647
644
|
: bodyElement;
|
648
645
|
}
|
@@ -650,7 +647,7 @@ class SkyAffixer {
|
|
650
647
|
if (this.currentPlacement !== placement) {
|
651
648
|
this.currentPlacement = placement;
|
652
649
|
this._placementChange.next({
|
653
|
-
placement
|
650
|
+
placement,
|
654
651
|
});
|
655
652
|
}
|
656
653
|
}
|
@@ -663,7 +660,8 @@ class SkyAffixer {
|
|
663
660
|
this.baseRect =
|
664
661
|
this.currentPlacement =
|
665
662
|
this.currentOffset =
|
666
|
-
this.overflowParents =
|
663
|
+
this.overflowParents =
|
664
|
+
undefined;
|
667
665
|
}
|
668
666
|
isNewOffset(offset) {
|
669
667
|
if (this.currentOffset === undefined) {
|
@@ -682,12 +680,12 @@ class SkyAffixer {
|
|
682
680
|
top: this.baseRect.top,
|
683
681
|
left: this.baseRect.left,
|
684
682
|
right: this.baseRect.right,
|
685
|
-
bottom: this.baseRect.bottom
|
683
|
+
bottom: this.baseRect.bottom,
|
686
684
|
}, this.config.autoFitOverflowOffset);
|
687
685
|
}
|
688
686
|
addScrollListeners() {
|
689
687
|
this.scrollListeners = this.overflowParents.map((parentElement) => {
|
690
|
-
const overflow =
|
688
|
+
const overflow = parentElement === document.body ? 'window' : parentElement;
|
691
689
|
return this.renderer.listen(overflow, 'scroll', () => {
|
692
690
|
this.affix();
|
693
691
|
this._overflowScroll.next();
|
@@ -695,8 +693,7 @@ class SkyAffixer {
|
|
695
693
|
});
|
696
694
|
}
|
697
695
|
addResizeListener() {
|
698
|
-
this.resizeListener = fromEvent(window, 'resize')
|
699
|
-
.subscribe(() => this.affix());
|
696
|
+
this.resizeListener = fromEvent(window, 'resize').subscribe(() => this.affix());
|
700
697
|
}
|
701
698
|
removeResizeListener() {
|
702
699
|
if (this.resizeListener) {
|
@@ -708,7 +705,7 @@ class SkyAffixer {
|
|
708
705
|
if (this.scrollListeners) {
|
709
706
|
// Remove renderer-generated listeners by calling the listener itself.
|
710
707
|
// https://github.com/angular/angular/issues/9368#issuecomment-227199778
|
711
|
-
this.scrollListeners.forEach(listener => listener());
|
708
|
+
this.scrollListeners.forEach((listener) => listener());
|
712
709
|
this.scrollListeners = undefined;
|
713
710
|
}
|
714
711
|
}
|
@@ -726,12 +723,12 @@ class SkyAffixService {
|
|
726
723
|
return new SkyAffixer(affixed.nativeElement, this.renderer);
|
727
724
|
}
|
728
725
|
}
|
729
|
-
SkyAffixService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
730
|
-
SkyAffixService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
731
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
726
|
+
SkyAffixService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAffixService, deps: [{ token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable });
|
727
|
+
SkyAffixService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAffixService, providedIn: 'root' });
|
728
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAffixService, decorators: [{
|
732
729
|
type: Injectable,
|
733
730
|
args: [{
|
734
|
-
providedIn: 'root'
|
731
|
+
providedIn: 'root',
|
735
732
|
}]
|
736
733
|
}], ctorParameters: function () { return [{ type: i0.RendererFactory2 }]; } });
|
737
734
|
|
@@ -793,16 +790,16 @@ class SkyAffixDirective {
|
|
793
790
|
horizontalAlignment: this.affixHorizontalAlignment,
|
794
791
|
isSticky: this.affixIsSticky,
|
795
792
|
placement: this.affixPlacement,
|
796
|
-
verticalAlignment: this.affixVerticalAlignment
|
793
|
+
verticalAlignment: this.affixVerticalAlignment,
|
797
794
|
});
|
798
795
|
}
|
799
796
|
}
|
800
|
-
SkyAffixDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
801
|
-
SkyAffixDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.
|
802
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
797
|
+
SkyAffixDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAffixDirective, deps: [{ token: i0.ElementRef }, { token: SkyAffixService }], target: i0.ɵɵFactoryTarget.Directive });
|
798
|
+
SkyAffixDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.14", type: SkyAffixDirective, selector: "[skyAffixTo]", inputs: { skyAffixTo: "skyAffixTo", affixAutoFitContext: "affixAutoFitContext", affixAutoFitOverflowOffset: "affixAutoFitOverflowOffset", affixEnableAutoFit: "affixEnableAutoFit", affixHorizontalAlignment: "affixHorizontalAlignment", affixIsSticky: "affixIsSticky", affixPlacement: "affixPlacement", affixVerticalAlignment: "affixVerticalAlignment" }, outputs: { affixOffsetChange: "affixOffsetChange", affixOverflowScroll: "affixOverflowScroll", affixPlacementChange: "affixPlacementChange" }, usesOnChanges: true, ngImport: i0 });
|
799
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAffixDirective, decorators: [{
|
803
800
|
type: Directive,
|
804
801
|
args: [{
|
805
|
-
selector: '[skyAffixTo]'
|
802
|
+
selector: '[skyAffixTo]',
|
806
803
|
}]
|
807
804
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: SkyAffixService }]; }, propDecorators: { skyAffixTo: [{
|
808
805
|
type: Input
|
@@ -830,23 +827,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", ngImpo
|
|
830
827
|
|
831
828
|
class SkyAffixModule {
|
832
829
|
}
|
833
|
-
SkyAffixModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
834
|
-
SkyAffixModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
835
|
-
SkyAffixModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
836
|
-
|
837
|
-
]] });
|
838
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0, type: SkyAffixModule, decorators: [{
|
830
|
+
SkyAffixModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAffixModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
831
|
+
SkyAffixModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAffixModule, declarations: [SkyAffixDirective], imports: [CommonModule], exports: [SkyAffixDirective] });
|
832
|
+
SkyAffixModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAffixModule, imports: [[CommonModule]] });
|
833
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAffixModule, decorators: [{
|
839
834
|
type: NgModule,
|
840
835
|
args: [{
|
841
|
-
imports: [
|
842
|
-
|
843
|
-
],
|
844
|
-
exports: [
|
845
|
-
SkyAffixDirective
|
846
|
-
],
|
847
|
-
declarations: [
|
848
|
-
SkyAffixDirective
|
849
|
-
]
|
836
|
+
imports: [CommonModule],
|
837
|
+
exports: [SkyAffixDirective],
|
838
|
+
declarations: [SkyAffixDirective],
|
850
839
|
}]
|
851
840
|
}] });
|
852
841
|
|
@@ -902,12 +891,12 @@ class MutationObserverService {
|
|
902
891
|
return new MutationObserver(callback);
|
903
892
|
}
|
904
893
|
}
|
905
|
-
MutationObserverService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
906
|
-
MutationObserverService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
907
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
894
|
+
MutationObserverService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MutationObserverService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
895
|
+
MutationObserverService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MutationObserverService, providedIn: 'root' });
|
896
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MutationObserverService, decorators: [{
|
908
897
|
type: Injectable,
|
909
898
|
args: [{
|
910
|
-
providedIn: 'root'
|
899
|
+
providedIn: 'root',
|
911
900
|
}]
|
912
901
|
}] });
|
913
902
|
|
@@ -931,7 +920,8 @@ class SkyDockDomAdapterService {
|
|
931
920
|
this.currentDockHeight =
|
932
921
|
this.ngUnsubscribe =
|
933
922
|
this.observer =
|
934
|
-
this.styleElement =
|
923
|
+
this.styleElement =
|
924
|
+
undefined;
|
935
925
|
}
|
936
926
|
setSticky(elementRef) {
|
937
927
|
this.renderer.addClass(elementRef.nativeElement, 'sky-dock-sticky');
|
@@ -950,7 +940,7 @@ class SkyDockDomAdapterService {
|
|
950
940
|
attributes: true,
|
951
941
|
childList: true,
|
952
942
|
characterData: true,
|
953
|
-
subtree: true
|
943
|
+
subtree: true,
|
954
944
|
});
|
955
945
|
fromEvent(window, 'resize')
|
956
946
|
.pipe(debounceTime(250), takeUntil(this.ngUnsubscribe))
|
@@ -978,9 +968,9 @@ class SkyDockDomAdapterService {
|
|
978
968
|
this.renderer.removeChild(document.head, this.styleElement);
|
979
969
|
}
|
980
970
|
}
|
981
|
-
SkyDockDomAdapterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
982
|
-
SkyDockDomAdapterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
983
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
971
|
+
SkyDockDomAdapterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDockDomAdapterService, deps: [{ token: MutationObserverService }, { token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable });
|
972
|
+
SkyDockDomAdapterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDockDomAdapterService });
|
973
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDockDomAdapterService, decorators: [{
|
984
974
|
type: Injectable
|
985
975
|
}], ctorParameters: function () { return [{ type: MutationObserverService }, { type: i0.RendererFactory2 }]; } });
|
986
976
|
|
@@ -1013,27 +1003,27 @@ class SkyDockComponent {
|
|
1013
1003
|
const factory = this.resolver.resolveComponentFactory(component);
|
1014
1004
|
const injector = Injector.create({
|
1015
1005
|
providers: config.providers || [],
|
1016
|
-
parent: this.injector
|
1006
|
+
parent: this.injector,
|
1017
1007
|
});
|
1018
1008
|
const componentRef = this.target.createComponent(factory, undefined, injector);
|
1019
|
-
const stackOrder =
|
1009
|
+
const stackOrder = config.stackOrder !== null && config.stackOrder !== undefined
|
1020
1010
|
? config.stackOrder
|
1021
1011
|
: this.getHighestStackOrder();
|
1022
1012
|
this.itemRefs.push({
|
1023
1013
|
componentRef,
|
1024
|
-
stackOrder
|
1014
|
+
stackOrder,
|
1025
1015
|
});
|
1026
1016
|
this.sortItemsByStackOrder();
|
1027
1017
|
this.changeDetector.markForCheck();
|
1028
1018
|
return {
|
1029
1019
|
componentRef,
|
1030
|
-
stackOrder
|
1020
|
+
stackOrder,
|
1031
1021
|
};
|
1032
1022
|
}
|
1033
1023
|
removeItem(item) {
|
1034
1024
|
const viewRef = item.componentRef.hostView;
|
1035
1025
|
this.target.remove(this.target.indexOf(viewRef));
|
1036
|
-
const found = this.itemRefs.find(i => i.componentRef.hostView === viewRef);
|
1026
|
+
const found = this.itemRefs.find((i) => i.componentRef.hostView === viewRef);
|
1037
1027
|
this.itemRefs.splice(this.itemRefs.indexOf(found), 1);
|
1038
1028
|
}
|
1039
1029
|
setOptions(options) {
|
@@ -1067,53 +1057,37 @@ class SkyDockComponent {
|
|
1067
1057
|
return this.itemRefs[0].stackOrder + 1;
|
1068
1058
|
}
|
1069
1059
|
}
|
1070
|
-
SkyDockComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1071
|
-
SkyDockComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
1072
|
-
|
1073
|
-
], viewQueries: [{ propertyName: "target", first: true, predicate: ["target"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: "<ng-container\n #target\n></ng-container>", styles: [":host{display:flex;flex-direction:column;width:100%}:host:not(.sky-dock-unbound){position:fixed;left:0;bottom:0;right:0}:host.sky-dock-sticky{position:sticky}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
1074
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0, type: SkyDockComponent, decorators: [{
|
1060
|
+
SkyDockComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDockComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ComponentFactoryResolver }, { token: i0.ElementRef }, { token: i0.Injector }, { token: SkyDockDomAdapterService }], target: i0.ɵɵFactoryTarget.Component });
|
1061
|
+
SkyDockComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", type: SkyDockComponent, selector: "sky-dock", providers: [SkyDockDomAdapterService], viewQueries: [{ propertyName: "target", first: true, predicate: ["target"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: "<ng-container #target></ng-container>\n", styles: [":host{display:flex;flex-direction:column;width:100%}:host:not(.sky-dock-unbound){position:fixed;left:0;bottom:0;right:0}:host.sky-dock-sticky{position:sticky}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
1062
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDockComponent, decorators: [{
|
1075
1063
|
type: Component,
|
1076
1064
|
args: [{
|
1077
1065
|
selector: 'sky-dock',
|
1078
1066
|
templateUrl: './dock.component.html',
|
1079
1067
|
styleUrls: ['./dock.component.scss'],
|
1080
|
-
providers: [
|
1081
|
-
|
1082
|
-
],
|
1083
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
1068
|
+
providers: [SkyDockDomAdapterService],
|
1069
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
1084
1070
|
}]
|
1085
1071
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ComponentFactoryResolver }, { type: i0.ElementRef }, { type: i0.Injector }, { type: SkyDockDomAdapterService }]; }, propDecorators: { target: [{
|
1086
1072
|
type: ViewChild,
|
1087
1073
|
args: ['target', {
|
1088
1074
|
read: ViewContainerRef,
|
1089
|
-
static: true
|
1075
|
+
static: true,
|
1090
1076
|
}]
|
1091
1077
|
}] } });
|
1092
1078
|
|
1093
1079
|
class SkyDockModule {
|
1094
1080
|
}
|
1095
|
-
SkyDockModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1096
|
-
SkyDockModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
1097
|
-
SkyDockModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
1098
|
-
|
1099
|
-
], imports: [[
|
1100
|
-
CommonModule
|
1101
|
-
]] });
|
1102
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0, type: SkyDockModule, decorators: [{
|
1081
|
+
SkyDockModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1082
|
+
SkyDockModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDockModule, declarations: [SkyDockComponent], imports: [CommonModule] });
|
1083
|
+
SkyDockModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDockModule, providers: [MutationObserverService], imports: [[CommonModule]] });
|
1084
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDockModule, decorators: [{
|
1103
1085
|
type: NgModule,
|
1104
1086
|
args: [{
|
1105
|
-
imports: [
|
1106
|
-
|
1107
|
-
],
|
1108
|
-
|
1109
|
-
SkyDockComponent
|
1110
|
-
],
|
1111
|
-
entryComponents: [
|
1112
|
-
SkyDockComponent
|
1113
|
-
],
|
1114
|
-
providers: [
|
1115
|
-
MutationObserverService
|
1116
|
-
]
|
1087
|
+
imports: [CommonModule],
|
1088
|
+
declarations: [SkyDockComponent],
|
1089
|
+
entryComponents: [SkyDockComponent],
|
1090
|
+
providers: [MutationObserverService],
|
1117
1091
|
}]
|
1118
1092
|
}] });
|
1119
1093
|
|
@@ -1163,12 +1137,12 @@ class SkyAppWindowRef {
|
|
1163
1137
|
return getWindow();
|
1164
1138
|
}
|
1165
1139
|
}
|
1166
|
-
SkyAppWindowRef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1167
|
-
SkyAppWindowRef.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1168
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1140
|
+
SkyAppWindowRef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAppWindowRef, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1141
|
+
SkyAppWindowRef.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAppWindowRef, providedIn: 'root' });
|
1142
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAppWindowRef, decorators: [{
|
1169
1143
|
type: Injectable,
|
1170
1144
|
args: [{
|
1171
|
-
providedIn: 'root'
|
1145
|
+
providedIn: 'root',
|
1172
1146
|
}]
|
1173
1147
|
}] });
|
1174
1148
|
|
@@ -1194,7 +1168,7 @@ class SkyDynamicComponentService {
|
|
1194
1168
|
*/
|
1195
1169
|
createComponent(componentType, options) {
|
1196
1170
|
options = options || {
|
1197
|
-
location: SkyDynamicComponentLocation.BodyBottom
|
1171
|
+
location: SkyDynamicComponentLocation.BodyBottom,
|
1198
1172
|
};
|
1199
1173
|
const componentRef = this.componentFactoryResolver
|
1200
1174
|
.resolveComponentFactory(componentType)
|
@@ -1238,15 +1212,15 @@ class SkyDynamicComponentService {
|
|
1238
1212
|
return componentRef.hostView.rootNodes[0];
|
1239
1213
|
}
|
1240
1214
|
}
|
1241
|
-
SkyDynamicComponentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1242
|
-
SkyDynamicComponentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1243
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1215
|
+
SkyDynamicComponentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDynamicComponentService, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.ApplicationRef }, { token: i0.Injector }, { token: SkyAppWindowRef }, { token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable });
|
1216
|
+
SkyDynamicComponentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDynamicComponentService, providedIn: 'any' });
|
1217
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDynamicComponentService, decorators: [{
|
1244
1218
|
type: Injectable,
|
1245
1219
|
args: [{
|
1246
1220
|
// Must be 'any' so that the component is created in the context of its module's injector.
|
1247
1221
|
// If set to 'root', the component's dependency injections would only be derived from the root
|
1248
1222
|
// injector and may loose context if the component is created within a lazy-loaded module.
|
1249
|
-
providedIn: 'any'
|
1223
|
+
providedIn: 'any',
|
1250
1224
|
}]
|
1251
1225
|
}], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i0.ApplicationRef }, { type: i0.Injector }, { type: SkyAppWindowRef }, { type: i0.RendererFactory2 }]; } });
|
1252
1226
|
|
@@ -1313,7 +1287,7 @@ class SkyDockService {
|
|
1313
1287
|
}
|
1314
1288
|
dockOptions = {
|
1315
1289
|
location: dynamicLocation,
|
1316
|
-
referenceEl: this.options.referenceEl
|
1290
|
+
referenceEl: this.options.referenceEl,
|
1317
1291
|
};
|
1318
1292
|
}
|
1319
1293
|
this.dockRef = this.dynamicComponentService.createComponent(SkyDockComponent, dockOptions);
|
@@ -1324,12 +1298,12 @@ class SkyDockService {
|
|
1324
1298
|
this.dockRef = undefined;
|
1325
1299
|
}
|
1326
1300
|
}
|
1327
|
-
SkyDockService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1328
|
-
SkyDockService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1329
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1301
|
+
SkyDockService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDockService, deps: [{ token: SkyDynamicComponentService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1302
|
+
SkyDockService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDockService, providedIn: 'root' });
|
1303
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDockService, decorators: [{
|
1330
1304
|
type: Injectable,
|
1331
1305
|
args: [{
|
1332
|
-
providedIn: 'root'
|
1306
|
+
providedIn: 'root',
|
1333
1307
|
}]
|
1334
1308
|
}], ctorParameters: function () { return [{ type: SkyDynamicComponentService }]; } });
|
1335
1309
|
|
@@ -1340,10 +1314,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", ngImpo
|
|
1340
1314
|
*/
|
1341
1315
|
class SkyDynamicComponentModule {
|
1342
1316
|
}
|
1343
|
-
SkyDynamicComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1344
|
-
SkyDynamicComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
1345
|
-
SkyDynamicComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
1346
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1317
|
+
SkyDynamicComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDynamicComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1318
|
+
SkyDynamicComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDynamicComponentModule });
|
1319
|
+
SkyDynamicComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDynamicComponentModule });
|
1320
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDynamicComponentModule, decorators: [{
|
1347
1321
|
type: NgModule,
|
1348
1322
|
args: [{}]
|
1349
1323
|
}] });
|
@@ -1355,12 +1329,12 @@ class SkyAppFormat {
|
|
1355
1329
|
});
|
1356
1330
|
}
|
1357
1331
|
}
|
1358
|
-
SkyAppFormat.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1359
|
-
SkyAppFormat.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1360
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1332
|
+
SkyAppFormat.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAppFormat, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1333
|
+
SkyAppFormat.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAppFormat, providedIn: 'root' });
|
1334
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAppFormat, decorators: [{
|
1361
1335
|
type: Injectable,
|
1362
1336
|
args: [{
|
1363
|
-
providedIn: 'root'
|
1337
|
+
providedIn: 'root',
|
1364
1338
|
}]
|
1365
1339
|
}] });
|
1366
1340
|
|
@@ -1386,30 +1360,26 @@ class SkyIdDirective {
|
|
1386
1360
|
return this._id;
|
1387
1361
|
}
|
1388
1362
|
}
|
1389
|
-
SkyIdDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1390
|
-
SkyIdDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.
|
1391
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1363
|
+
SkyIdDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyIdDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
1364
|
+
SkyIdDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.14", type: SkyIdDirective, selector: "[skyId]", exportAs: ["skyId"], ngImport: i0 });
|
1365
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyIdDirective, decorators: [{
|
1392
1366
|
type: Directive,
|
1393
1367
|
args: [{
|
1394
1368
|
selector: '[skyId]',
|
1395
|
-
exportAs: 'skyId'
|
1369
|
+
exportAs: 'skyId',
|
1396
1370
|
}]
|
1397
1371
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }]; } });
|
1398
1372
|
|
1399
1373
|
class SkyIdModule {
|
1400
1374
|
}
|
1401
|
-
SkyIdModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1402
|
-
SkyIdModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
1403
|
-
SkyIdModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
1404
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1375
|
+
SkyIdModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyIdModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1376
|
+
SkyIdModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyIdModule, declarations: [SkyIdDirective], exports: [SkyIdDirective] });
|
1377
|
+
SkyIdModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyIdModule });
|
1378
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyIdModule, decorators: [{
|
1405
1379
|
type: NgModule,
|
1406
1380
|
args: [{
|
1407
|
-
declarations: [
|
1408
|
-
|
1409
|
-
],
|
1410
|
-
exports: [
|
1411
|
-
SkyIdDirective
|
1412
|
-
]
|
1381
|
+
declarations: [SkyIdDirective],
|
1382
|
+
exports: [SkyIdDirective],
|
1413
1383
|
}]
|
1414
1384
|
}] });
|
1415
1385
|
|
@@ -1419,10 +1389,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", ngImpo
|
|
1419
1389
|
*/
|
1420
1390
|
class SkyLogModule {
|
1421
1391
|
}
|
1422
|
-
SkyLogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1423
|
-
SkyLogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
1424
|
-
SkyLogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
1425
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1392
|
+
SkyLogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyLogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1393
|
+
SkyLogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyLogModule });
|
1394
|
+
SkyLogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyLogModule });
|
1395
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyLogModule, decorators: [{
|
1426
1396
|
type: NgModule,
|
1427
1397
|
args: [{}]
|
1428
1398
|
}] });
|
@@ -1438,12 +1408,12 @@ class SkyLogService {
|
|
1438
1408
|
}
|
1439
1409
|
}
|
1440
1410
|
}
|
1441
|
-
SkyLogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1442
|
-
SkyLogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1443
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1411
|
+
SkyLogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyLogService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1412
|
+
SkyLogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyLogService, providedIn: 'root' });
|
1413
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyLogService, decorators: [{
|
1444
1414
|
type: Injectable,
|
1445
1415
|
args: [{
|
1446
|
-
providedIn: 'root'
|
1416
|
+
providedIn: 'root',
|
1447
1417
|
}]
|
1448
1418
|
}] });
|
1449
1419
|
|
@@ -1453,10 +1423,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", ngImpo
|
|
1453
1423
|
*/
|
1454
1424
|
class SkyMediaQueryModule {
|
1455
1425
|
}
|
1456
|
-
SkyMediaQueryModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1457
|
-
SkyMediaQueryModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
1458
|
-
SkyMediaQueryModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
1459
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1426
|
+
SkyMediaQueryModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyMediaQueryModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1427
|
+
SkyMediaQueryModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyMediaQueryModule });
|
1428
|
+
SkyMediaQueryModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyMediaQueryModule });
|
1429
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyMediaQueryModule, decorators: [{
|
1460
1430
|
type: NgModule,
|
1461
1431
|
args: [{}]
|
1462
1432
|
}] });
|
@@ -1469,20 +1439,20 @@ class SkyMediaQueryService {
|
|
1469
1439
|
this.breakpoints = [
|
1470
1440
|
{
|
1471
1441
|
mediaQueryString: SkyMediaQueryService.xs,
|
1472
|
-
name: SkyMediaBreakpoints.xs
|
1442
|
+
name: SkyMediaBreakpoints.xs,
|
1473
1443
|
},
|
1474
1444
|
{
|
1475
1445
|
mediaQueryString: SkyMediaQueryService.sm,
|
1476
|
-
name: SkyMediaBreakpoints.sm
|
1446
|
+
name: SkyMediaBreakpoints.sm,
|
1477
1447
|
},
|
1478
1448
|
{
|
1479
1449
|
mediaQueryString: SkyMediaQueryService.md,
|
1480
|
-
name: SkyMediaBreakpoints.md
|
1450
|
+
name: SkyMediaBreakpoints.md,
|
1481
1451
|
},
|
1482
1452
|
{
|
1483
1453
|
mediaQueryString: SkyMediaQueryService.lg,
|
1484
|
-
name: SkyMediaBreakpoints.lg
|
1485
|
-
}
|
1454
|
+
name: SkyMediaBreakpoints.lg,
|
1455
|
+
},
|
1486
1456
|
];
|
1487
1457
|
this.mediaQueries = [];
|
1488
1458
|
this.addListeners();
|
@@ -1505,7 +1475,7 @@ class SkyMediaQueryService {
|
|
1505
1475
|
return this.currentSubject.subscribe({
|
1506
1476
|
next: (breakpoints) => {
|
1507
1477
|
listener(breakpoints);
|
1508
|
-
}
|
1478
|
+
},
|
1509
1479
|
});
|
1510
1480
|
}
|
1511
1481
|
/**
|
@@ -1534,7 +1504,7 @@ class SkyMediaQueryService {
|
|
1534
1504
|
}
|
1535
1505
|
return {
|
1536
1506
|
mediaQueryList: mq,
|
1537
|
-
listener
|
1507
|
+
listener,
|
1538
1508
|
};
|
1539
1509
|
});
|
1540
1510
|
}
|
@@ -1565,12 +1535,12 @@ SkyMediaQueryService.md = '(min-width: 992px) and (max-width: 1199px)';
|
|
1565
1535
|
* The size for the `lg` breakpoint.
|
1566
1536
|
*/
|
1567
1537
|
SkyMediaQueryService.lg = '(min-width: 1200px)';
|
1568
|
-
SkyMediaQueryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1569
|
-
SkyMediaQueryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1570
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1538
|
+
SkyMediaQueryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyMediaQueryService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
1539
|
+
SkyMediaQueryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyMediaQueryService, providedIn: 'root' });
|
1540
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyMediaQueryService, decorators: [{
|
1571
1541
|
type: Injectable,
|
1572
1542
|
args: [{
|
1573
|
-
providedIn: 'root'
|
1543
|
+
providedIn: 'root',
|
1574
1544
|
}]
|
1575
1545
|
}], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
|
1576
1546
|
|
@@ -1581,7 +1551,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", ngImpo
|
|
1581
1551
|
* To update this file, simply rerun the command.
|
1582
1552
|
*/
|
1583
1553
|
const RESOURCES = {
|
1584
|
-
'EN-US': {
|
1554
|
+
'EN-US': {
|
1555
|
+
skyux_numeric_billions_symbol: { message: 'B' },
|
1556
|
+
skyux_numeric_millions_symbol: { message: 'M' },
|
1557
|
+
skyux_numeric_thousands_symbol: { message: 'K' },
|
1558
|
+
skyux_numeric_trillions_symbol: { message: 'T' },
|
1559
|
+
},
|
1585
1560
|
};
|
1586
1561
|
class SkyCoreResourcesProvider {
|
1587
1562
|
getString(localeInfo, name) {
|
@@ -1593,22 +1568,26 @@ class SkyCoreResourcesProvider {
|
|
1593
1568
|
*/
|
1594
1569
|
class SkyCoreResourcesModule {
|
1595
1570
|
}
|
1596
|
-
SkyCoreResourcesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1597
|
-
SkyCoreResourcesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
1598
|
-
SkyCoreResourcesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
1571
|
+
SkyCoreResourcesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyCoreResourcesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1572
|
+
SkyCoreResourcesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyCoreResourcesModule, exports: [SkyI18nModule] });
|
1573
|
+
SkyCoreResourcesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyCoreResourcesModule, providers: [
|
1574
|
+
{
|
1599
1575
|
provide: SKY_LIB_RESOURCES_PROVIDERS,
|
1600
1576
|
useClass: SkyCoreResourcesProvider,
|
1601
|
-
multi: true
|
1602
|
-
}
|
1603
|
-
|
1577
|
+
multi: true,
|
1578
|
+
},
|
1579
|
+
], imports: [SkyI18nModule] });
|
1580
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyCoreResourcesModule, decorators: [{
|
1604
1581
|
type: NgModule,
|
1605
1582
|
args: [{
|
1606
1583
|
exports: [SkyI18nModule],
|
1607
|
-
providers: [
|
1584
|
+
providers: [
|
1585
|
+
{
|
1608
1586
|
provide: SKY_LIB_RESOURCES_PROVIDERS,
|
1609
1587
|
useClass: SkyCoreResourcesProvider,
|
1610
|
-
multi: true
|
1611
|
-
}
|
1588
|
+
multi: true,
|
1589
|
+
},
|
1590
|
+
],
|
1612
1591
|
}]
|
1613
1592
|
}] });
|
1614
1593
|
|
@@ -1695,15 +1674,18 @@ class SkyNumberFormatUtility {
|
|
1695
1674
|
throw new Error(`${digits} is not a valid digit info for number pipes`);
|
1696
1675
|
}
|
1697
1676
|
/* istanbul ignore else */
|
1698
|
-
if (parts[1] != null) {
|
1677
|
+
if (parts[1] != null) {
|
1678
|
+
// min integer digits
|
1699
1679
|
minInt = parseIntAutoRadix(parts[1]);
|
1700
1680
|
}
|
1701
1681
|
/* istanbul ignore else */
|
1702
|
-
if (parts[3] != null) {
|
1682
|
+
if (parts[3] != null) {
|
1683
|
+
// min fraction digits
|
1703
1684
|
minFraction = parseIntAutoRadix(parts[3]);
|
1704
1685
|
}
|
1705
1686
|
/* istanbul ignore else */
|
1706
|
-
if (parts[5] != null) {
|
1687
|
+
if (parts[5] != null) {
|
1688
|
+
// max fraction digits
|
1707
1689
|
maxFraction = parseIntAutoRadix(parts[5]);
|
1708
1690
|
}
|
1709
1691
|
}
|
@@ -1713,7 +1695,7 @@ class SkyNumberFormatUtility {
|
|
1713
1695
|
maximumFractionDigits: maxFraction,
|
1714
1696
|
currency: currency,
|
1715
1697
|
currencyAsSymbol: currencyAsSymbol,
|
1716
|
-
currencySign: currencySign
|
1698
|
+
currencySign: currencySign,
|
1717
1699
|
});
|
1718
1700
|
}
|
1719
1701
|
}
|
@@ -1723,10 +1705,10 @@ class SkyNumericService {
|
|
1723
1705
|
constructor(resourcesService) {
|
1724
1706
|
this.resourcesService = resourcesService;
|
1725
1707
|
this.symbolIndex = [
|
1726
|
-
{ value:
|
1727
|
-
{ value:
|
1728
|
-
{ value:
|
1729
|
-
{ value:
|
1708
|
+
{ value: 1e12, label: this.getSymbol('skyux_numeric_trillions_symbol') },
|
1709
|
+
{ value: 1e9, label: this.getSymbol('skyux_numeric_billions_symbol') },
|
1710
|
+
{ value: 1e6, label: this.getSymbol('skyux_numeric_millions_symbol') },
|
1711
|
+
{ value: 1e3, label: this.getSymbol('skyux_numeric_thousands_symbol') },
|
1730
1712
|
];
|
1731
1713
|
}
|
1732
1714
|
/**
|
@@ -1759,8 +1741,9 @@ class SkyNumericService {
|
|
1759
1741
|
for (let i = 0; i < this.symbolIndex.length; i++) {
|
1760
1742
|
let symbol = this.symbolIndex[i];
|
1761
1743
|
if (options.truncate &&
|
1762
|
-
roundedNumberAbs >= options.truncateAfter &&
|
1763
|
-
|
1744
|
+
roundedNumberAbs >= options.truncateAfter &&
|
1745
|
+
roundedNumberAbs >= symbol.value) {
|
1746
|
+
roundedNumber = this.roundNumber(value / symbol.value, options.digits);
|
1764
1747
|
if (Math.abs(roundedNumber) === 1000 && i > 0) {
|
1765
1748
|
// Rounding caused the number to cross into the range of the next symbol.
|
1766
1749
|
symbol = this.symbolIndex[i - 1];
|
@@ -1782,7 +1765,7 @@ class SkyNumericService {
|
|
1782
1765
|
// Note: This will need to be reviewed if we support currencies with
|
1783
1766
|
// three decimal digits.
|
1784
1767
|
case 'currency':
|
1785
|
-
const isDecimal =
|
1768
|
+
const isDecimal = value % 1 !== 0;
|
1786
1769
|
if (options.minDigits) {
|
1787
1770
|
digits = `1.${options.minDigits}-${options.digits}`;
|
1788
1771
|
}
|
@@ -1856,7 +1839,7 @@ class SkyNumericService {
|
|
1856
1839
|
const isExponentFormat = valueStr.includes('e');
|
1857
1840
|
if (isExponentFormat) {
|
1858
1841
|
const [base, exp] = valueStr.split('e');
|
1859
|
-
const newExp = scaleUp ?
|
1842
|
+
const newExp = scaleUp ? Number(exp) + scalar : Number(exp) - scalar;
|
1860
1843
|
return Number(`${base}e${newExp}`);
|
1861
1844
|
}
|
1862
1845
|
else {
|
@@ -1869,10 +1852,10 @@ class SkyNumericService {
|
|
1869
1852
|
* @param value The string to derive the shorten symbol from.
|
1870
1853
|
*/
|
1871
1854
|
storeShortenSymbol(value) {
|
1872
|
-
const symbols = this.symbolIndex.map(s => s.label);
|
1855
|
+
const symbols = this.symbolIndex.map((s) => s.label);
|
1873
1856
|
const regexp = new RegExp(symbols.join('|'), 'ig');
|
1874
1857
|
const match = value.match(regexp);
|
1875
|
-
this.shortSymbol =
|
1858
|
+
this.shortSymbol = match ? match.toString() : '';
|
1876
1859
|
}
|
1877
1860
|
/**
|
1878
1861
|
* Must have previously called storeShortenSymbol to have something to replace.
|
@@ -1892,12 +1875,12 @@ class SkyNumericService {
|
|
1892
1875
|
return this.resourcesService.getStringForLocale({ locale: 'en_US' }, key);
|
1893
1876
|
}
|
1894
1877
|
}
|
1895
|
-
SkyNumericService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1896
|
-
SkyNumericService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1897
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1878
|
+
SkyNumericService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyNumericService, deps: [{ token: i1.SkyLibResourcesService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1879
|
+
SkyNumericService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyNumericService, providedIn: 'any' });
|
1880
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyNumericService, decorators: [{
|
1898
1881
|
type: Injectable,
|
1899
1882
|
args: [{
|
1900
|
-
providedIn: 'any'
|
1883
|
+
providedIn: 'any',
|
1901
1884
|
}]
|
1902
1885
|
}], ctorParameters: function () { return [{ type: i1.SkyLibResourcesService }]; } });
|
1903
1886
|
|
@@ -1917,7 +1900,8 @@ class SkyNumericPipe {
|
|
1917
1900
|
this.numericService = numericService;
|
1918
1901
|
this.changeDetector = changeDetector;
|
1919
1902
|
this.ngUnsubscribe = new Subject();
|
1920
|
-
this.localeProvider
|
1903
|
+
this.localeProvider
|
1904
|
+
.getLocaleInfo()
|
1921
1905
|
.pipe(takeUntil(this.ngUnsubscribe))
|
1922
1906
|
.subscribe((localeInfo) => {
|
1923
1907
|
this.providerLocale = localeInfo.locale;
|
@@ -1931,7 +1915,8 @@ class SkyNumericPipe {
|
|
1931
1915
|
}
|
1932
1916
|
transform(value, config) {
|
1933
1917
|
var _a;
|
1934
|
-
let newCacheKey = (config ? JSON.stringify(config, Object.keys(config).sort()) : '') +
|
1918
|
+
let newCacheKey = (config ? JSON.stringify(config, Object.keys(config).sort()) : '') +
|
1919
|
+
`${value}_${(config === null || config === void 0 ? void 0 : config.locale) || this.providerLocale}`;
|
1935
1920
|
/* If the value and locale are the same as the last transform then return the previous value
|
1936
1921
|
instead of reformatting. */
|
1937
1922
|
if (this.formattedValue && this.cacheKey === newCacheKey) {
|
@@ -1940,9 +1925,7 @@ class SkyNumericPipe {
|
|
1940
1925
|
const options = new NumericOptions();
|
1941
1926
|
// The default number of digits is `1`. When truncate is disabled, set digits
|
1942
1927
|
// to `0` to avoid the unnecessary addition of `.0` at the end of the formatted number.
|
1943
|
-
if (config &&
|
1944
|
-
config.truncate === false &&
|
1945
|
-
config.digits === undefined) {
|
1928
|
+
if (config && config.truncate === false && config.digits === undefined) {
|
1946
1929
|
options.digits = 0;
|
1947
1930
|
}
|
1948
1931
|
// If the minimum digits is less than the set maximum digits then throw an error
|
@@ -1953,9 +1936,7 @@ class SkyNumericPipe {
|
|
1953
1936
|
throw new Error('The `digits` property must be greater than or equal to the `minDigits` property');
|
1954
1937
|
// If there is a minimum digits given but not a maximum then default the maximum to the minimum
|
1955
1938
|
}
|
1956
|
-
else if (config &&
|
1957
|
-
config.minDigits &&
|
1958
|
-
!config.digits) {
|
1939
|
+
else if (config && config.minDigits && !config.digits) {
|
1959
1940
|
options.digits = config.minDigits;
|
1960
1941
|
}
|
1961
1942
|
Object.assign(options, config);
|
@@ -1967,43 +1948,28 @@ class SkyNumericPipe {
|
|
1967
1948
|
return this.formattedValue;
|
1968
1949
|
}
|
1969
1950
|
}
|
1970
|
-
SkyNumericPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1971
|
-
SkyNumericPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.
|
1972
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1951
|
+
SkyNumericPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyNumericPipe, deps: [{ token: i1.SkyAppLocaleProvider }, { token: SkyNumericService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe });
|
1952
|
+
SkyNumericPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyNumericPipe, name: "skyNumeric", pure: false });
|
1953
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyNumericPipe, decorators: [{
|
1973
1954
|
type: Pipe,
|
1974
1955
|
args: [{
|
1975
1956
|
name: 'skyNumeric',
|
1976
|
-
pure: false
|
1957
|
+
pure: false,
|
1977
1958
|
}]
|
1978
1959
|
}], ctorParameters: function () { return [{ type: i1.SkyAppLocaleProvider }, { type: SkyNumericService }, { type: i0.ChangeDetectorRef }]; } });
|
1979
1960
|
|
1980
1961
|
class SkyNumericModule {
|
1981
1962
|
}
|
1982
|
-
SkyNumericModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1983
|
-
SkyNumericModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
1984
|
-
|
1985
|
-
|
1986
|
-
SkyNumericPipe
|
1987
|
-
], imports: [[
|
1988
|
-
SkyI18nModule,
|
1989
|
-
SkyCoreResourcesModule
|
1990
|
-
]] });
|
1991
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0, type: SkyNumericModule, decorators: [{
|
1963
|
+
SkyNumericModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyNumericModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1964
|
+
SkyNumericModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyNumericModule, declarations: [SkyNumericPipe], imports: [SkyI18nModule, SkyCoreResourcesModule], exports: [SkyNumericPipe] });
|
1965
|
+
SkyNumericModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyNumericModule, providers: [SkyNumericPipe], imports: [[SkyI18nModule, SkyCoreResourcesModule]] });
|
1966
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyNumericModule, decorators: [{
|
1992
1967
|
type: NgModule,
|
1993
1968
|
args: [{
|
1994
|
-
declarations: [
|
1995
|
-
|
1996
|
-
],
|
1997
|
-
|
1998
|
-
SkyNumericPipe
|
1999
|
-
],
|
2000
|
-
imports: [
|
2001
|
-
SkyI18nModule,
|
2002
|
-
SkyCoreResourcesModule
|
2003
|
-
],
|
2004
|
-
exports: [
|
2005
|
-
SkyNumericPipe
|
2006
|
-
]
|
1969
|
+
declarations: [SkyNumericPipe],
|
1970
|
+
providers: [SkyNumericPipe],
|
1971
|
+
imports: [SkyI18nModule, SkyCoreResourcesModule],
|
1972
|
+
exports: [SkyNumericPipe],
|
2007
1973
|
}]
|
2008
1974
|
}] });
|
2009
1975
|
|
@@ -2132,7 +2098,7 @@ class SkyOverlayComponent {
|
|
2132
2098
|
const factory = this.resolver.resolveComponentFactory(component);
|
2133
2099
|
const injector = Injector.create({
|
2134
2100
|
providers,
|
2135
|
-
parent: this.injector
|
2101
|
+
parent: this.injector,
|
2136
2102
|
});
|
2137
2103
|
const componentRef = this.targetRef.createComponent(factory, undefined, injector);
|
2138
2104
|
// Run an initial change detection cycle after the component has been created.
|
@@ -2167,7 +2133,7 @@ class SkyOverlayComponent {
|
|
2167
2133
|
addRouteListener() {
|
2168
2134
|
/*istanbul ignore else*/
|
2169
2135
|
if (this.router) {
|
2170
|
-
this.routerSubscription = this.router.events.subscribe(event => {
|
2136
|
+
this.routerSubscription = this.router.events.subscribe((event) => {
|
2171
2137
|
/* istanbul ignore else */
|
2172
2138
|
if (event instanceof NavigationStart) {
|
2173
2139
|
this._closed.next();
|
@@ -2182,15 +2148,15 @@ class SkyOverlayComponent {
|
|
2182
2148
|
}
|
2183
2149
|
}
|
2184
2150
|
}
|
2185
|
-
SkyOverlayComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2186
|
-
SkyOverlayComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
2187
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
2151
|
+
SkyOverlayComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyOverlayComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: SkyCoreAdapterService }, { token: SkyOverlayContext }, { token: i3.Router, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
2152
|
+
SkyOverlayComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", type: SkyOverlayComponent, selector: "sky-overlay", 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 [class]=\"wrapperClass\"\n [style.zIndex]=\"zIndex\"\n [ngClass]=\"{\n 'enable-pointer-events-pass-through': enablePointerEvents,\n 'sky-overlay': true\n }\"\n #overlayRef\n>\n <div class=\"sky-overlay-content\" #overlayContentRef>\n <ng-template #target> </ng-template>\n </div>\n <div *ngIf=\"showBackdrop\" class=\"sky-overlay-backdrop\"></div>\n</div>\n", styles: [".sky-overlay{position:fixed;top:0;right:0;left:0;bottom:0;width:100%;height:100%;display:flex;pointer-events:auto}.sky-overlay-content{position:relative;z-index:1;display:inline-flex;align-self:start;pointer-events:auto}.sky-overlay-backdrop{background:rgba(0,0,0,.5);top:0;right:0;left:0;bottom:0;width:100%;height:100%;position:absolute}.enable-pointer-events-pass-through{pointer-events:none}.enable-pointer-events-pass-through .sky-overlay-backdrop{pointer-events:none}.enable-pointer-events-pass-through .sky-overlay-content{pointer-events:auto}\n"], directives: [{ type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
2153
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyOverlayComponent, decorators: [{
|
2188
2154
|
type: Component,
|
2189
2155
|
args: [{
|
2190
2156
|
selector: 'sky-overlay',
|
2191
2157
|
templateUrl: './overlay.component.html',
|
2192
2158
|
styleUrls: ['./overlay.component.scss'],
|
2193
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
2159
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
2194
2160
|
}]
|
2195
2161
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: SkyCoreAdapterService }, { type: SkyOverlayContext }, { type: i3.Router, decorators: [{
|
2196
2162
|
type: Optional
|
@@ -2198,41 +2164,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", ngImpo
|
|
2198
2164
|
type: ViewChild,
|
2199
2165
|
args: ['overlayContentRef', {
|
2200
2166
|
read: ElementRef,
|
2201
|
-
static: true
|
2167
|
+
static: true,
|
2202
2168
|
}]
|
2203
2169
|
}], overlayRef: [{
|
2204
2170
|
type: ViewChild,
|
2205
2171
|
args: ['overlayRef', {
|
2206
2172
|
read: ElementRef,
|
2207
|
-
static: true
|
2173
|
+
static: true,
|
2208
2174
|
}]
|
2209
2175
|
}], targetRef: [{
|
2210
2176
|
type: ViewChild,
|
2211
2177
|
args: ['target', {
|
2212
2178
|
read: ViewContainerRef,
|
2213
|
-
static: true
|
2179
|
+
static: true,
|
2214
2180
|
}]
|
2215
2181
|
}] } });
|
2216
2182
|
|
2217
2183
|
class SkyOverlayModule {
|
2218
2184
|
}
|
2219
|
-
SkyOverlayModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2220
|
-
SkyOverlayModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
2221
|
-
SkyOverlayModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
2222
|
-
|
2223
|
-
]] });
|
2224
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0, type: SkyOverlayModule, decorators: [{
|
2185
|
+
SkyOverlayModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyOverlayModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
2186
|
+
SkyOverlayModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyOverlayModule, declarations: [SkyOverlayComponent], imports: [CommonModule] });
|
2187
|
+
SkyOverlayModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyOverlayModule, imports: [[CommonModule]] });
|
2188
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyOverlayModule, decorators: [{
|
2225
2189
|
type: NgModule,
|
2226
2190
|
args: [{
|
2227
|
-
imports: [
|
2228
|
-
|
2229
|
-
],
|
2230
|
-
declarations: [
|
2231
|
-
SkyOverlayComponent
|
2232
|
-
],
|
2233
|
-
entryComponents: [
|
2234
|
-
SkyOverlayComponent
|
2235
|
-
]
|
2191
|
+
imports: [CommonModule],
|
2192
|
+
declarations: [SkyOverlayComponent],
|
2193
|
+
entryComponents: [SkyOverlayComponent],
|
2236
2194
|
}]
|
2237
2195
|
}] });
|
2238
2196
|
|
@@ -2266,12 +2224,12 @@ class SkyOverlayAdapterService {
|
|
2266
2224
|
}
|
2267
2225
|
}
|
2268
2226
|
}
|
2269
|
-
SkyOverlayAdapterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2270
|
-
SkyOverlayAdapterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
2271
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
2227
|
+
SkyOverlayAdapterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyOverlayAdapterService, deps: [{ token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable });
|
2228
|
+
SkyOverlayAdapterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyOverlayAdapterService, providedIn: 'root' });
|
2229
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyOverlayAdapterService, decorators: [{
|
2272
2230
|
type: Injectable,
|
2273
2231
|
args: [{
|
2274
|
-
providedIn: 'root'
|
2232
|
+
providedIn: 'root',
|
2275
2233
|
}]
|
2276
2234
|
}], ctorParameters: function () { return [{ type: i0.RendererFactory2 }]; } });
|
2277
2235
|
|
@@ -2340,10 +2298,12 @@ class SkyOverlayService {
|
|
2340
2298
|
createOverlay(config) {
|
2341
2299
|
const injector = Injector.create({
|
2342
2300
|
parent: this.injector,
|
2343
|
-
providers: [
|
2301
|
+
providers: [
|
2302
|
+
{
|
2344
2303
|
provide: SkyOverlayContext,
|
2345
|
-
useValue: new SkyOverlayContext(config)
|
2346
|
-
}
|
2304
|
+
useValue: new SkyOverlayContext(config),
|
2305
|
+
},
|
2306
|
+
],
|
2347
2307
|
});
|
2348
2308
|
const componentRef = this.componentFactoryResolver
|
2349
2309
|
.resolveComponentFactory(SkyOverlayComponent)
|
@@ -2361,7 +2321,7 @@ class SkyOverlayService {
|
|
2361
2321
|
enablePointerEvents: false,
|
2362
2322
|
enableScroll: true,
|
2363
2323
|
showBackdrop: false,
|
2364
|
-
wrapperClass: ''
|
2324
|
+
wrapperClass: '',
|
2365
2325
|
};
|
2366
2326
|
return Object.assign(Object.assign({}, defaults), config);
|
2367
2327
|
}
|
@@ -2369,7 +2329,7 @@ class SkyOverlayService {
|
|
2369
2329
|
SkyOverlayService.overlays.splice(SkyOverlayService.overlays.indexOf(instance), 1);
|
2370
2330
|
if (instance.config.enableScroll === false) {
|
2371
2331
|
// Only release the body scroll if no other overlay wishes it to be disabled.
|
2372
|
-
const anotherOverlayDisablesScroll = SkyOverlayService.overlays.some(o => !o.config.enableScroll);
|
2332
|
+
const anotherOverlayDisablesScroll = SkyOverlayService.overlays.some((o) => !o.config.enableScroll);
|
2373
2333
|
if (!anotherOverlayDisablesScroll) {
|
2374
2334
|
this.adapter.releaseBodyScroll();
|
2375
2335
|
}
|
@@ -2377,12 +2337,12 @@ class SkyOverlayService {
|
|
2377
2337
|
}
|
2378
2338
|
}
|
2379
2339
|
SkyOverlayService.overlays = [];
|
2380
|
-
SkyOverlayService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2381
|
-
SkyOverlayService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
2382
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
2340
|
+
SkyOverlayService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyOverlayService, deps: [{ token: i0.ApplicationRef }, { token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: SkyOverlayAdapterService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2341
|
+
SkyOverlayService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyOverlayService, providedIn: 'root' });
|
2342
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyOverlayService, decorators: [{
|
2383
2343
|
type: Injectable,
|
2384
2344
|
args: [{
|
2385
|
-
providedIn: 'root'
|
2345
|
+
providedIn: 'root',
|
2386
2346
|
}]
|
2387
2347
|
}], ctorParameters: function () { return [{ type: i0.ApplicationRef }, { type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: SkyOverlayAdapterService }]; } });
|
2388
2348
|
|
@@ -2392,7 +2352,8 @@ class SkyPercentPipe {
|
|
2392
2352
|
this.defaultFormat = '1.0-2';
|
2393
2353
|
this.defaultLocale = 'en-US';
|
2394
2354
|
this.ngUnsubscribe = new Subject();
|
2395
|
-
this.localeProvider
|
2355
|
+
this.localeProvider
|
2356
|
+
.getLocaleInfo()
|
2396
2357
|
.pipe(takeUntil(this.ngUnsubscribe))
|
2397
2358
|
.subscribe((localeInfo) => {
|
2398
2359
|
this.defaultLocale = localeInfo.locale;
|
@@ -2416,70 +2377,126 @@ class SkyPercentPipe {
|
|
2416
2377
|
this.formattedValue = SkyNumberFormatUtility.formatNumber(locale, this.value, SkyIntlNumberFormatStyle.Percent, format);
|
2417
2378
|
}
|
2418
2379
|
}
|
2419
|
-
SkyPercentPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2420
|
-
SkyPercentPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.
|
2421
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
2380
|
+
SkyPercentPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyPercentPipe, deps: [{ token: i1.SkyAppLocaleProvider }], target: i0.ɵɵFactoryTarget.Pipe });
|
2381
|
+
SkyPercentPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyPercentPipe, name: "skyPercent", pure: false });
|
2382
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyPercentPipe, decorators: [{
|
2422
2383
|
type: Pipe,
|
2423
2384
|
args: [{
|
2424
2385
|
name: 'skyPercent',
|
2425
|
-
pure: false
|
2386
|
+
pure: false,
|
2426
2387
|
}]
|
2427
2388
|
}], ctorParameters: function () { return [{ type: i1.SkyAppLocaleProvider }]; } });
|
2428
2389
|
|
2429
2390
|
class SkyPercentPipeModule {
|
2430
2391
|
}
|
2431
|
-
SkyPercentPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2432
|
-
SkyPercentPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
2433
|
-
|
2434
|
-
|
2435
|
-
SkyPercentPipe
|
2436
|
-
], imports: [[
|
2437
|
-
CommonModule,
|
2438
|
-
SkyCoreResourcesModule
|
2439
|
-
]] });
|
2440
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0, type: SkyPercentPipeModule, decorators: [{
|
2392
|
+
SkyPercentPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyPercentPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
2393
|
+
SkyPercentPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyPercentPipeModule, declarations: [SkyPercentPipe], imports: [CommonModule, SkyCoreResourcesModule], exports: [SkyPercentPipe] });
|
2394
|
+
SkyPercentPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyPercentPipeModule, providers: [SkyPercentPipe], imports: [[CommonModule, SkyCoreResourcesModule]] });
|
2395
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyPercentPipeModule, decorators: [{
|
2441
2396
|
type: NgModule,
|
2442
2397
|
args: [{
|
2443
|
-
declarations: [
|
2444
|
-
|
2445
|
-
],
|
2446
|
-
|
2447
|
-
SkyPercentPipe
|
2448
|
-
],
|
2449
|
-
imports: [
|
2450
|
-
CommonModule,
|
2451
|
-
SkyCoreResourcesModule
|
2452
|
-
],
|
2453
|
-
exports: [
|
2454
|
-
SkyPercentPipe
|
2455
|
-
]
|
2398
|
+
declarations: [SkyPercentPipe],
|
2399
|
+
providers: [SkyPercentPipe],
|
2400
|
+
imports: [CommonModule, SkyCoreResourcesModule],
|
2401
|
+
exports: [SkyPercentPipe],
|
2456
2402
|
}]
|
2457
2403
|
}] });
|
2458
2404
|
|
2405
|
+
function notifySubscribers(subscribers, item) {
|
2406
|
+
for (const subscriber of subscribers) {
|
2407
|
+
subscriber.next(item);
|
2408
|
+
}
|
2409
|
+
}
|
2459
2410
|
class SkyScrollableHostService {
|
2460
2411
|
constructor(mutationObserverSvc, windowRef) {
|
2461
2412
|
this.mutationObserverSvc = mutationObserverSvc;
|
2462
2413
|
this.windowRef = windowRef;
|
2463
2414
|
}
|
2464
|
-
|
2415
|
+
/**
|
2416
|
+
* Returns the given element's current scrollable host
|
2417
|
+
* @param elementRef The element whose scrollable host is being requested
|
2418
|
+
* @returns The current scrollable host
|
2419
|
+
*/
|
2420
|
+
getScrollableHost(elementRef) {
|
2465
2421
|
return this.findScrollableHost(elementRef.nativeElement);
|
2466
2422
|
}
|
2467
|
-
|
2468
|
-
|
2469
|
-
|
2470
|
-
|
2471
|
-
|
2472
|
-
|
2473
|
-
|
2423
|
+
/**
|
2424
|
+
* Returns an observable which emits the given element's current scrollable host
|
2425
|
+
* @param elementRef The element whose scrollable host is being requested
|
2426
|
+
* @param completionObservable An observable which alerts the internal observers that they should complete
|
2427
|
+
* @returns An observable which emits the current scrollable host
|
2428
|
+
* @internal
|
2429
|
+
*/
|
2430
|
+
watchScrollableHost(elementRef) {
|
2431
|
+
let subscribers = [];
|
2432
|
+
let mutationObserver;
|
2433
|
+
return new Observable((subscriber) => {
|
2434
|
+
subscribers.push(subscriber);
|
2435
|
+
let scrollableHost = this.findScrollableHost(elementRef.nativeElement);
|
2436
|
+
if (subscribers.length === 1) {
|
2437
|
+
mutationObserver = this.mutationObserverSvc.create(() => {
|
2438
|
+
let newScrollableHost = this.findScrollableHost(elementRef.nativeElement);
|
2439
|
+
if (newScrollableHost !== scrollableHost) {
|
2440
|
+
scrollableHost = newScrollableHost;
|
2441
|
+
this.observeForScrollableHostChanges(scrollableHost, mutationObserver);
|
2442
|
+
notifySubscribers(subscribers, scrollableHost);
|
2443
|
+
}
|
2444
|
+
});
|
2474
2445
|
this.observeForScrollableHostChanges(scrollableHost, mutationObserver);
|
2475
|
-
behaviorSubject.next(scrollableHost);
|
2476
2446
|
}
|
2447
|
+
subscriber.next(scrollableHost);
|
2448
|
+
subscriber.add(() => {
|
2449
|
+
const subIndex = subscribers.indexOf(subscriber);
|
2450
|
+
/* sanity check */
|
2451
|
+
/* istanbul ignore else */
|
2452
|
+
if (subIndex >= 0) {
|
2453
|
+
subscribers.splice(subIndex, 1);
|
2454
|
+
}
|
2455
|
+
if (subscribers.length === 0) {
|
2456
|
+
mutationObserver.disconnect();
|
2457
|
+
}
|
2458
|
+
});
|
2477
2459
|
});
|
2478
|
-
|
2479
|
-
|
2480
|
-
|
2460
|
+
}
|
2461
|
+
/**
|
2462
|
+
* Returns an observable which emits whenever the element's scrollable host emits a scroll event. The observable will always emit the scroll events from the elements current scrollable host and will update based on any scrollable host changes. The observable will also emit once whenever the scrollable host changes.
|
2463
|
+
* @param elementRef The element whose scrollable host scroll events are being requested
|
2464
|
+
* @param completionObservable An observable which alerts the internal observers that they should complete
|
2465
|
+
* @returns An observable which emits the scroll events from the given element's scrollable host
|
2466
|
+
*/
|
2467
|
+
watchScrollableHostScrollEvents(elementRef) {
|
2468
|
+
let subscribers = [];
|
2469
|
+
let newScrollableHostObservable = new Subject();
|
2470
|
+
let scrollableHostSubscription;
|
2471
|
+
let scrollEventSubscription;
|
2472
|
+
return new Observable((subscriber) => {
|
2473
|
+
subscribers.push(subscriber);
|
2474
|
+
if (subscribers.length === 1) {
|
2475
|
+
scrollableHostSubscription = this.watchScrollableHost(elementRef).subscribe((scrollableHost) => {
|
2476
|
+
newScrollableHostObservable.next();
|
2477
|
+
newScrollableHostObservable.complete();
|
2478
|
+
newScrollableHostObservable = new Subject();
|
2479
|
+
scrollEventSubscription = fromEvent(scrollableHost, 'scroll')
|
2480
|
+
.pipe(takeUntil(newScrollableHostObservable))
|
2481
|
+
.subscribe(() => {
|
2482
|
+
notifySubscribers(subscribers);
|
2483
|
+
});
|
2484
|
+
});
|
2485
|
+
}
|
2486
|
+
subscriber.add(() => {
|
2487
|
+
const subIndex = subscribers.indexOf(subscriber);
|
2488
|
+
/* sanity check */
|
2489
|
+
/* istanbul ignore else */
|
2490
|
+
if (subIndex >= 0) {
|
2491
|
+
subscribers.splice(subIndex, 1);
|
2492
|
+
}
|
2493
|
+
if (subscribers.length === 0) {
|
2494
|
+
scrollableHostSubscription.unsubscribe();
|
2495
|
+
scrollEventSubscription.unsubscribe();
|
2496
|
+
newScrollableHostObservable.complete();
|
2497
|
+
}
|
2498
|
+
});
|
2481
2499
|
});
|
2482
|
-
return behaviorSubject;
|
2483
2500
|
}
|
2484
2501
|
findScrollableHost(element) {
|
2485
2502
|
const regex = /(auto|scroll)/;
|
@@ -2511,25 +2528,25 @@ class SkyScrollableHostService {
|
|
2511
2528
|
if (element instanceof HTMLElement) {
|
2512
2529
|
mutationObserver.observe(element, {
|
2513
2530
|
attributes: true,
|
2514
|
-
attributeFilter: [
|
2515
|
-
subtree: true
|
2531
|
+
attributeFilter: ['class', 'style.overflow', 'style.overflow-y'],
|
2532
|
+
subtree: true,
|
2516
2533
|
});
|
2517
2534
|
}
|
2518
2535
|
else {
|
2519
2536
|
mutationObserver.observe(document.documentElement, {
|
2520
2537
|
attributes: true,
|
2521
|
-
attributeFilter: [
|
2522
|
-
subtree: true
|
2538
|
+
attributeFilter: ['class', 'style.overflow', 'style.overflow-y'],
|
2539
|
+
subtree: true,
|
2523
2540
|
});
|
2524
2541
|
}
|
2525
2542
|
}
|
2526
2543
|
}
|
2527
|
-
SkyScrollableHostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2528
|
-
SkyScrollableHostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
2529
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
2544
|
+
SkyScrollableHostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyScrollableHostService, deps: [{ token: MutationObserverService }, { token: SkyAppWindowRef }], target: i0.ɵɵFactoryTarget.Injectable });
|
2545
|
+
SkyScrollableHostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyScrollableHostService, providedIn: 'root' });
|
2546
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyScrollableHostService, decorators: [{
|
2530
2547
|
type: Injectable,
|
2531
2548
|
args: [{
|
2532
|
-
providedIn: 'root'
|
2549
|
+
providedIn: 'root',
|
2533
2550
|
}]
|
2534
2551
|
}], ctorParameters: function () { return [{ type: MutationObserverService }, { type: SkyAppWindowRef }]; } });
|
2535
2552
|
|
@@ -2551,12 +2568,12 @@ class SkyAppTitleService {
|
|
2551
2568
|
}
|
2552
2569
|
}
|
2553
2570
|
}
|
2554
|
-
SkyAppTitleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2555
|
-
SkyAppTitleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
2556
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
2571
|
+
SkyAppTitleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAppTitleService, deps: [{ token: i1$1.Title }], target: i0.ɵɵFactoryTarget.Injectable });
|
2572
|
+
SkyAppTitleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAppTitleService, providedIn: 'root' });
|
2573
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAppTitleService, decorators: [{
|
2557
2574
|
type: Injectable,
|
2558
2575
|
args: [{
|
2559
|
-
providedIn: 'root'
|
2576
|
+
providedIn: 'root',
|
2560
2577
|
}]
|
2561
2578
|
}], ctorParameters: function () { return [{ type: i1$1.Title }]; } });
|
2562
2579
|
|
@@ -2569,20 +2586,20 @@ class SkyUIConfigService {
|
|
2569
2586
|
return of({});
|
2570
2587
|
}
|
2571
2588
|
}
|
2572
|
-
SkyUIConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2573
|
-
SkyUIConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
2574
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
2589
|
+
SkyUIConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyUIConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
2590
|
+
SkyUIConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyUIConfigService, providedIn: 'root' });
|
2591
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyUIConfigService, decorators: [{
|
2575
2592
|
type: Injectable,
|
2576
2593
|
args: [{
|
2577
|
-
providedIn: 'root'
|
2594
|
+
providedIn: 'root',
|
2578
2595
|
}]
|
2579
2596
|
}] });
|
2580
2597
|
|
2581
2598
|
class SkyViewkeeperHostOptions {
|
2582
2599
|
}
|
2583
|
-
SkyViewkeeperHostOptions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2584
|
-
SkyViewkeeperHostOptions.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
2585
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
2600
|
+
SkyViewkeeperHostOptions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyViewkeeperHostOptions, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
2601
|
+
SkyViewkeeperHostOptions.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyViewkeeperHostOptions });
|
2602
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyViewkeeperHostOptions, decorators: [{
|
2586
2603
|
type: Injectable
|
2587
2604
|
}] });
|
2588
2605
|
|
@@ -2619,7 +2636,7 @@ function getOffset(el, scrollableHost) {
|
|
2619
2636
|
const parent = scrollableHost ? scrollableHost : document.documentElement;
|
2620
2637
|
return {
|
2621
2638
|
top: rect.top + parent.scrollTop,
|
2622
|
-
left: rect.left + parent.scrollLeft
|
2639
|
+
left: rect.left + parent.scrollLeft,
|
2623
2640
|
};
|
2624
2641
|
}
|
2625
2642
|
function px(value) {
|
@@ -2641,7 +2658,9 @@ function setElPosition(el, left, top, width, marginTop) {
|
|
2641
2658
|
}
|
2642
2659
|
function getHeightWithMargin(el) {
|
2643
2660
|
const computedStyle = getComputedStyle(el);
|
2644
|
-
return el.offsetHeight +
|
2661
|
+
return (el.offsetHeight +
|
2662
|
+
parseInt(computedStyle.marginTop, 10) +
|
2663
|
+
parseInt(computedStyle.marginBottom, 10));
|
2645
2664
|
}
|
2646
2665
|
function createCustomEvent(name) {
|
2647
2666
|
const evt = document.createEvent('CustomEvent');
|
@@ -2669,6 +2688,17 @@ class SkyViewkeeper {
|
|
2669
2688
|
ensureStyleEl();
|
2670
2689
|
this.syncElPosition();
|
2671
2690
|
}
|
2691
|
+
set viewportMarginTop(margin) {
|
2692
|
+
this._viewportMarginTop = margin;
|
2693
|
+
}
|
2694
|
+
get viewportMarginTop() {
|
2695
|
+
if (this.scrollableHost) {
|
2696
|
+
return 0;
|
2697
|
+
}
|
2698
|
+
else {
|
2699
|
+
return this._viewportMarginTop;
|
2700
|
+
}
|
2701
|
+
}
|
2672
2702
|
syncElPosition() {
|
2673
2703
|
const verticalOffset = this.calculateVerticalOffset();
|
2674
2704
|
// When the element isn't visible, its size can't be calculated, so don't attempt syncing position in this case.
|
@@ -2698,9 +2728,7 @@ class SkyViewkeeper {
|
|
2698
2728
|
if (this.verticalOffsetEl) {
|
2699
2729
|
this.verticalOffsetEl.removeEventListener(EVT_AFTER_VIEWKEEPER_SYNC, this.syncElPositionHandler);
|
2700
2730
|
}
|
2701
|
-
this.el =
|
2702
|
-
this.boundaryEl =
|
2703
|
-
this.verticalOffsetEl = undefined;
|
2731
|
+
this.el = this.boundaryEl = this.verticalOffsetEl = undefined;
|
2704
2732
|
this.isDestroyed = true;
|
2705
2733
|
}
|
2706
2734
|
}
|
@@ -2715,7 +2743,8 @@ class SkyViewkeeper {
|
|
2715
2743
|
this.el.classList.remove(CLS_VIEWKEEPER_FIXED);
|
2716
2744
|
this.currentElFixedLeft =
|
2717
2745
|
this.currentElFixedTop =
|
2718
|
-
this.currentElFixedWidth =
|
2746
|
+
this.currentElFixedWidth =
|
2747
|
+
undefined;
|
2719
2748
|
let width;
|
2720
2749
|
if (this.setWidth) {
|
2721
2750
|
width = 'auto';
|
@@ -2727,7 +2756,7 @@ class SkyViewkeeper {
|
|
2727
2756
|
if (this.verticalOffsetEl) {
|
2728
2757
|
const verticalOffsetElTopStyle = this.verticalOffsetEl.style.top;
|
2729
2758
|
const verticalOffsetElTop = parseInt(verticalOffsetElTopStyle, 10) || 0;
|
2730
|
-
offset +=
|
2759
|
+
offset += this.verticalOffsetEl.offsetHeight + verticalOffsetElTop;
|
2731
2760
|
}
|
2732
2761
|
else if (this.scrollableHost) {
|
2733
2762
|
offset += this.scrollableHost.getBoundingClientRect().top;
|
@@ -2743,7 +2772,9 @@ class SkyViewkeeper {
|
|
2743
2772
|
else {
|
2744
2773
|
anchorTop = getOffset(this.el, this.scrollableHost).top;
|
2745
2774
|
}
|
2746
|
-
doFixEl =
|
2775
|
+
doFixEl =
|
2776
|
+
boundaryInfo.scrollTop + verticalOffset + this.viewportMarginTop >
|
2777
|
+
anchorTop;
|
2747
2778
|
return doFixEl;
|
2748
2779
|
}
|
2749
2780
|
getFixedStyles(boundaryInfo, verticalOffset) {
|
@@ -2752,13 +2783,15 @@ class SkyViewkeeper {
|
|
2752
2783
|
// will be 0 (fully visible) unless the user is scrolling the boundary out of view.
|
2753
2784
|
// In that case, the element should begin to scroll out of view with the
|
2754
2785
|
// rest of the boundary by setting its top position to a negative value.
|
2755
|
-
elFixedTop = Math.min(
|
2786
|
+
elFixedTop = Math.min(boundaryInfo.boundaryBottom -
|
2787
|
+
boundaryInfo.elHeight -
|
2788
|
+
boundaryInfo.scrollTop, verticalOffset);
|
2756
2789
|
const elFixedWidth = boundaryInfo.boundaryEl.getBoundingClientRect().width;
|
2757
2790
|
const elFixedLeft = boundaryInfo.boundaryOffset.left - boundaryInfo.scrollLeft;
|
2758
2791
|
return {
|
2759
2792
|
elFixedLeft,
|
2760
2793
|
elFixedTop,
|
2761
|
-
elFixedWidth
|
2794
|
+
elFixedWidth,
|
2762
2795
|
};
|
2763
2796
|
}
|
2764
2797
|
needsUpdating(doFixEl, fixedStyles) {
|
@@ -2767,7 +2800,8 @@ class SkyViewkeeper {
|
|
2767
2800
|
this.currentElFixedTop === fixedStyles.elFixedTop &&
|
2768
2801
|
this.currentElFixedWidth === fixedStyles.elFixedWidth) ||
|
2769
2802
|
(!doFixEl &&
|
2770
|
-
!(this.currentElFixedLeft !== undefined &&
|
2803
|
+
!(this.currentElFixedLeft !== undefined &&
|
2804
|
+
this.currentElFixedLeft !== null))) {
|
2771
2805
|
// The element is either currently fixed and its position and width do not need
|
2772
2806
|
// to change, or the element is not currently fixed and does not need to be fixed.
|
2773
2807
|
// No changes are needed.
|
@@ -2803,8 +2837,12 @@ class SkyViewkeeper {
|
|
2803
2837
|
const boundaryOffset = getOffset(boundaryEl, this.scrollableHost);
|
2804
2838
|
const boundaryTop = boundaryOffset.top;
|
2805
2839
|
const boundaryBottom = boundaryTop + boundaryEl.getBoundingClientRect().height;
|
2806
|
-
const scrollLeft = this.scrollableHost
|
2807
|
-
|
2840
|
+
const scrollLeft = this.scrollableHost
|
2841
|
+
? this.scrollableHost.scrollLeft
|
2842
|
+
: document.documentElement.scrollLeft;
|
2843
|
+
const scrollTop = this.scrollableHost
|
2844
|
+
? this.scrollableHost.scrollTop
|
2845
|
+
: document.documentElement.scrollTop;
|
2808
2846
|
const elHeight = getHeightWithMargin(this.el);
|
2809
2847
|
return {
|
2810
2848
|
boundaryBottom,
|
@@ -2814,7 +2852,7 @@ class SkyViewkeeper {
|
|
2814
2852
|
scrollLeft,
|
2815
2853
|
scrollTop,
|
2816
2854
|
spacerId,
|
2817
|
-
spacerEl
|
2855
|
+
spacerEl,
|
2818
2856
|
};
|
2819
2857
|
}
|
2820
2858
|
}
|
@@ -2842,12 +2880,12 @@ class SkyViewkeeperService {
|
|
2842
2880
|
vk.destroy();
|
2843
2881
|
}
|
2844
2882
|
}
|
2845
|
-
SkyViewkeeperService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2846
|
-
SkyViewkeeperService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
2847
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
2883
|
+
SkyViewkeeperService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyViewkeeperService, deps: [{ token: SkyViewkeeperHostOptions, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
2884
|
+
SkyViewkeeperService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyViewkeeperService, providedIn: 'root' });
|
2885
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyViewkeeperService, decorators: [{
|
2848
2886
|
type: Injectable,
|
2849
2887
|
args: [{
|
2850
|
-
providedIn: 'root'
|
2888
|
+
providedIn: 'root',
|
2851
2889
|
}]
|
2852
2890
|
}], ctorParameters: function () { return [{ type: SkyViewkeeperHostOptions, decorators: [{
|
2853
2891
|
type: Optional
|
@@ -2873,7 +2911,7 @@ class SkyViewkeeperDirective {
|
|
2873
2911
|
this.observer = this.mutationObserverSvc.create(() => this.detectElements());
|
2874
2912
|
this.observer.observe(this.el.nativeElement, {
|
2875
2913
|
childList: true,
|
2876
|
-
subtree: true
|
2914
|
+
subtree: true,
|
2877
2915
|
});
|
2878
2916
|
}
|
2879
2917
|
ngOnDestroy() {
|
@@ -2923,18 +2961,21 @@ class SkyViewkeeperDirective {
|
|
2923
2961
|
else {
|
2924
2962
|
this.scrollableHostWatchUnsubscribe = new Subject();
|
2925
2963
|
}
|
2926
|
-
this.scrollableHostService
|
2964
|
+
this.scrollableHostService
|
2965
|
+
.watchScrollableHost(this.el)
|
2927
2966
|
.pipe(takeUntil(this.scrollableHostWatchUnsubscribe))
|
2928
|
-
.subscribe(scrollableHost => {
|
2967
|
+
.subscribe((scrollableHost) => {
|
2929
2968
|
this.destroyViewkeepers();
|
2930
2969
|
let previousViewkeeperEl;
|
2931
2970
|
for (const viewkeeperEl of viewkeeperEls) {
|
2932
2971
|
this.viewkeepers.push(this.viewkeeperSvc.create({
|
2933
2972
|
boundaryEl: this.el.nativeElement,
|
2934
|
-
scrollableHost: scrollableHost instanceof HTMLElement
|
2973
|
+
scrollableHost: scrollableHost instanceof HTMLElement
|
2974
|
+
? scrollableHost
|
2975
|
+
: undefined,
|
2935
2976
|
el: viewkeeperEl,
|
2936
2977
|
setWidth: true,
|
2937
|
-
verticalOffsetEl: previousViewkeeperEl
|
2978
|
+
verticalOffsetEl: previousViewkeeperEl,
|
2938
2979
|
}));
|
2939
2980
|
previousViewkeeperEl = viewkeeperEl;
|
2940
2981
|
}
|
@@ -2943,12 +2984,12 @@ class SkyViewkeeperDirective {
|
|
2943
2984
|
}
|
2944
2985
|
}
|
2945
2986
|
}
|
2946
|
-
SkyViewkeeperDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2947
|
-
SkyViewkeeperDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.
|
2948
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
2987
|
+
SkyViewkeeperDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyViewkeeperDirective, deps: [{ token: i0.ElementRef }, { token: MutationObserverService }, { token: SkyViewkeeperService }, { token: SkyScrollableHostService, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
2988
|
+
SkyViewkeeperDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.14", type: SkyViewkeeperDirective, selector: "[skyViewkeeper]", inputs: { skyViewkeeper: "skyViewkeeper" }, ngImport: i0 });
|
2989
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyViewkeeperDirective, decorators: [{
|
2949
2990
|
type: Directive,
|
2950
2991
|
args: [{
|
2951
|
-
selector: '[skyViewkeeper]'
|
2992
|
+
selector: '[skyViewkeeper]',
|
2952
2993
|
}]
|
2953
2994
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: MutationObserverService }, { type: SkyViewkeeperService }, { type: SkyScrollableHostService, decorators: [{
|
2954
2995
|
type: Optional
|
@@ -2958,18 +2999,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", ngImpo
|
|
2958
2999
|
|
2959
3000
|
class SkyViewkeeperModule {
|
2960
3001
|
}
|
2961
|
-
SkyViewkeeperModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2962
|
-
SkyViewkeeperModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
2963
|
-
SkyViewkeeperModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
2964
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
3002
|
+
SkyViewkeeperModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyViewkeeperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
3003
|
+
SkyViewkeeperModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyViewkeeperModule, declarations: [SkyViewkeeperDirective], exports: [SkyViewkeeperDirective] });
|
3004
|
+
SkyViewkeeperModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyViewkeeperModule });
|
3005
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyViewkeeperModule, decorators: [{
|
2965
3006
|
type: NgModule,
|
2966
3007
|
args: [{
|
2967
|
-
declarations: [
|
2968
|
-
|
2969
|
-
],
|
2970
|
-
exports: [
|
2971
|
-
SkyViewkeeperDirective
|
2972
|
-
]
|
3008
|
+
declarations: [SkyViewkeeperDirective],
|
3009
|
+
exports: [SkyViewkeeperDirective],
|
2973
3010
|
}]
|
2974
3011
|
}] });
|
2975
3012
|
|