@skyux/core 5.1.3 → 5.2.3
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 +22 -25
- package/bundles/skyux-core-testing.umd.js.map +1 -1
- package/bundles/skyux-core.umd.js +417 -357
- 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 +103 -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 +407 -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 +4 -4
@@ -37,10 +37,10 @@
|
|
37
37
|
}
|
38
38
|
return SkyCoreAdapterModule;
|
39
39
|
}());
|
40
|
-
SkyCoreAdapterModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
41
|
-
SkyCoreAdapterModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
42
|
-
SkyCoreAdapterModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
43
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
40
|
+
SkyCoreAdapterModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyCoreAdapterModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
41
|
+
SkyCoreAdapterModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyCoreAdapterModule });
|
42
|
+
SkyCoreAdapterModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyCoreAdapterModule });
|
43
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyCoreAdapterModule, decorators: [{
|
44
44
|
type: i0.NgModule,
|
45
45
|
args: [{}]
|
46
46
|
}] });
|
@@ -76,7 +76,7 @@
|
|
76
76
|
'object',
|
77
77
|
'embed',
|
78
78
|
'*[contenteditable=true]:not([disabled])',
|
79
|
-
'*[tabindex]:not([disabled])'
|
79
|
+
'*[tabindex]:not([disabled])',
|
80
80
|
].join(', ');
|
81
81
|
var SkyCoreAdapterService = /** @class */ (function () {
|
82
82
|
function SkyCoreAdapterService(rendererFactory) {
|
@@ -162,7 +162,8 @@
|
|
162
162
|
var containerElement = elementRef.nativeElement.querySelector(containerSelector);
|
163
163
|
var focusableChildren = this.getFocusableChildren(containerElement);
|
164
164
|
// Focus first focusable child if available. Otherwise, set focus on container.
|
165
|
-
if (!this.focusFirstElement(focusableChildren) &&
|
165
|
+
if (!this.focusFirstElement(focusableChildren) &&
|
166
|
+
focusOnContainerIfNoChildrenFound) {
|
166
167
|
containerElement.focus();
|
167
168
|
}
|
168
169
|
};
|
@@ -273,12 +274,12 @@
|
|
273
274
|
};
|
274
275
|
return SkyCoreAdapterService;
|
275
276
|
}());
|
276
|
-
SkyCoreAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
277
|
-
SkyCoreAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
278
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
277
|
+
SkyCoreAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyCoreAdapterService, deps: [{ token: i0__namespace.RendererFactory2 }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
278
|
+
SkyCoreAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyCoreAdapterService, providedIn: 'root' });
|
279
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyCoreAdapterService, decorators: [{
|
279
280
|
type: i0.Injectable,
|
280
281
|
args: [{
|
281
|
-
providedIn: 'root'
|
282
|
+
providedIn: 'root',
|
282
283
|
}]
|
283
284
|
}], ctorParameters: function () { return [{ type: i0__namespace.RendererFactory2 }]; } });
|
284
285
|
|
@@ -295,12 +296,7 @@
|
|
295
296
|
})(exports.SkyAffixAutoFitContext || (exports.SkyAffixAutoFitContext = {}));
|
296
297
|
|
297
298
|
function getNextPlacement(placement) {
|
298
|
-
var placements = [
|
299
|
-
'above',
|
300
|
-
'right',
|
301
|
-
'below',
|
302
|
-
'left'
|
303
|
-
];
|
299
|
+
var placements = ['above', 'right', 'below', 'left'];
|
304
300
|
var index = placements.indexOf(placement) + 1;
|
305
301
|
if (index >= placements.length) {
|
306
302
|
index = 0;
|
@@ -312,7 +308,7 @@
|
|
312
308
|
above: 'below',
|
313
309
|
below: 'above',
|
314
310
|
right: 'left',
|
315
|
-
left: 'right'
|
311
|
+
left: 'right',
|
316
312
|
};
|
317
313
|
return pairings[placement];
|
318
314
|
}
|
@@ -353,7 +349,7 @@
|
|
353
349
|
bottom: bottom,
|
354
350
|
left: left,
|
355
351
|
right: right,
|
356
|
-
top: top
|
352
|
+
top: top,
|
357
353
|
};
|
358
354
|
}
|
359
355
|
function getOverflowParents(child) {
|
@@ -365,8 +361,7 @@
|
|
365
361
|
parentElement instanceof HTMLElement) {
|
366
362
|
var overflowY = window
|
367
363
|
.getComputedStyle(parentElement, undefined)
|
368
|
-
.overflowY
|
369
|
-
.toLowerCase();
|
364
|
+
.overflowY.toLowerCase();
|
370
365
|
if (overflowY === 'auto' ||
|
371
366
|
overflowY === 'hidden' ||
|
372
367
|
overflowY === 'scroll') {
|
@@ -401,7 +396,7 @@
|
|
401
396
|
enableAutoFit: false,
|
402
397
|
horizontalAlignment: 'center',
|
403
398
|
isSticky: false,
|
404
|
-
placement: 'above'
|
399
|
+
placement: 'above',
|
405
400
|
};
|
406
401
|
var SkyAffixer = /** @class */ (function () {
|
407
402
|
function SkyAffixer(affixedElement, renderer) {
|
@@ -495,7 +490,8 @@
|
|
495
490
|
this._overflowScroll.complete();
|
496
491
|
this._offsetChange =
|
497
492
|
this._placementChange =
|
498
|
-
this._overflowScroll =
|
493
|
+
this._overflowScroll =
|
494
|
+
undefined;
|
499
495
|
};
|
500
496
|
SkyAffixer.prototype.affix = function () {
|
501
497
|
this.baseRect = this.baseElement.getBoundingClientRect();
|
@@ -521,9 +517,10 @@
|
|
521
517
|
break;
|
522
518
|
}
|
523
519
|
if (!isAffixedElementFullyVisible) {
|
524
|
-
placement =
|
525
|
-
|
526
|
-
|
520
|
+
placement =
|
521
|
+
attempts % 2 === 0
|
522
|
+
? getInversePlacement(placement)
|
523
|
+
: getNextPlacement(placement);
|
527
524
|
}
|
528
525
|
attempts++;
|
529
526
|
} while (!isAffixedElementFullyVisible && attempts < maxAttempts);
|
@@ -560,7 +557,7 @@
|
|
560
557
|
top = top + affixedRect.height;
|
561
558
|
break;
|
562
559
|
case 'middle':
|
563
|
-
top = top +
|
560
|
+
top = top + affixedRect.height / 2;
|
564
561
|
break;
|
565
562
|
case 'bottom':
|
566
563
|
default:
|
@@ -574,7 +571,7 @@
|
|
574
571
|
default:
|
575
572
|
break;
|
576
573
|
case 'middle':
|
577
|
-
top = top -
|
574
|
+
top = top - affixedRect.height / 2;
|
578
575
|
break;
|
579
576
|
case 'bottom':
|
580
577
|
top = top - affixedRect.height;
|
@@ -587,7 +584,7 @@
|
|
587
584
|
break;
|
588
585
|
case 'center':
|
589
586
|
default:
|
590
|
-
left = baseRect.left +
|
587
|
+
left = baseRect.left + baseRect.width / 2 - affixedRect.width / 2;
|
591
588
|
break;
|
592
589
|
case 'right':
|
593
590
|
left = baseRect.right - affixedRect.width;
|
@@ -607,7 +604,7 @@
|
|
607
604
|
break;
|
608
605
|
case 'middle':
|
609
606
|
default:
|
610
|
-
top = baseRect.top +
|
607
|
+
top = baseRect.top + baseRect.height / 2 - affixedRect.height / 2;
|
611
608
|
break;
|
612
609
|
case 'bottom':
|
613
610
|
top = baseRect.bottom - affixedRect.height;
|
@@ -683,7 +680,7 @@
|
|
683
680
|
};
|
684
681
|
SkyAffixer.prototype.getAutoFitContextParent = function () {
|
685
682
|
var bodyElement = this.overflowParents[0];
|
686
|
-
return
|
683
|
+
return this.config.autoFitContext === exports.SkyAffixAutoFitContext.OverflowParent
|
687
684
|
? this.getImmediateOverflowParent()
|
688
685
|
: bodyElement;
|
689
686
|
};
|
@@ -691,7 +688,7 @@
|
|
691
688
|
if (this.currentPlacement !== placement) {
|
692
689
|
this.currentPlacement = placement;
|
693
690
|
this._placementChange.next({
|
694
|
-
placement: placement
|
691
|
+
placement: placement,
|
695
692
|
});
|
696
693
|
}
|
697
694
|
};
|
@@ -704,7 +701,8 @@
|
|
704
701
|
this.baseRect =
|
705
702
|
this.currentPlacement =
|
706
703
|
this.currentOffset =
|
707
|
-
this.overflowParents =
|
704
|
+
this.overflowParents =
|
705
|
+
undefined;
|
708
706
|
};
|
709
707
|
SkyAffixer.prototype.isNewOffset = function (offset) {
|
710
708
|
if (this.currentOffset === undefined) {
|
@@ -723,13 +721,13 @@
|
|
723
721
|
top: this.baseRect.top,
|
724
722
|
left: this.baseRect.left,
|
725
723
|
right: this.baseRect.right,
|
726
|
-
bottom: this.baseRect.bottom
|
724
|
+
bottom: this.baseRect.bottom,
|
727
725
|
}, this.config.autoFitOverflowOffset);
|
728
726
|
};
|
729
727
|
SkyAffixer.prototype.addScrollListeners = function () {
|
730
728
|
var _this = this;
|
731
729
|
this.scrollListeners = this.overflowParents.map(function (parentElement) {
|
732
|
-
var overflow =
|
730
|
+
var overflow = parentElement === document.body ? 'window' : parentElement;
|
733
731
|
return _this.renderer.listen(overflow, 'scroll', function () {
|
734
732
|
_this.affix();
|
735
733
|
_this._overflowScroll.next();
|
@@ -738,8 +736,7 @@
|
|
738
736
|
};
|
739
737
|
SkyAffixer.prototype.addResizeListener = function () {
|
740
738
|
var _this = this;
|
741
|
-
this.resizeListener = rxjs.fromEvent(window, 'resize')
|
742
|
-
.subscribe(function () { return _this.affix(); });
|
739
|
+
this.resizeListener = rxjs.fromEvent(window, 'resize').subscribe(function () { return _this.affix(); });
|
743
740
|
};
|
744
741
|
SkyAffixer.prototype.removeResizeListener = function () {
|
745
742
|
if (this.resizeListener) {
|
@@ -771,12 +768,12 @@
|
|
771
768
|
};
|
772
769
|
return SkyAffixService;
|
773
770
|
}());
|
774
|
-
SkyAffixService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
775
|
-
SkyAffixService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
776
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
771
|
+
SkyAffixService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyAffixService, deps: [{ token: i0__namespace.RendererFactory2 }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
772
|
+
SkyAffixService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyAffixService, providedIn: 'root' });
|
773
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyAffixService, decorators: [{
|
777
774
|
type: i0.Injectable,
|
778
775
|
args: [{
|
779
|
-
providedIn: 'root'
|
776
|
+
providedIn: 'root',
|
780
777
|
}]
|
781
778
|
}], ctorParameters: function () { return [{ type: i0__namespace.RendererFactory2 }]; } });
|
782
779
|
|
@@ -839,17 +836,17 @@
|
|
839
836
|
horizontalAlignment: this.affixHorizontalAlignment,
|
840
837
|
isSticky: this.affixIsSticky,
|
841
838
|
placement: this.affixPlacement,
|
842
|
-
verticalAlignment: this.affixVerticalAlignment
|
839
|
+
verticalAlignment: this.affixVerticalAlignment,
|
843
840
|
});
|
844
841
|
};
|
845
842
|
return SkyAffixDirective;
|
846
843
|
}());
|
847
|
-
SkyAffixDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
848
|
-
SkyAffixDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.
|
849
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
844
|
+
SkyAffixDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyAffixDirective, deps: [{ token: i0__namespace.ElementRef }, { token: SkyAffixService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
845
|
+
SkyAffixDirective.ɵdir = i0__namespace.ɵɵ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__namespace });
|
846
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyAffixDirective, decorators: [{
|
850
847
|
type: i0.Directive,
|
851
848
|
args: [{
|
852
|
-
selector: '[skyAffixTo]'
|
849
|
+
selector: '[skyAffixTo]',
|
853
850
|
}]
|
854
851
|
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: SkyAffixService }]; }, propDecorators: { skyAffixTo: [{
|
855
852
|
type: i0.Input
|
@@ -880,23 +877,15 @@
|
|
880
877
|
}
|
881
878
|
return SkyAffixModule;
|
882
879
|
}());
|
883
|
-
SkyAffixModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
884
|
-
SkyAffixModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
885
|
-
SkyAffixModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
886
|
-
|
887
|
-
]] });
|
888
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyAffixModule, decorators: [{
|
880
|
+
SkyAffixModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyAffixModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
881
|
+
SkyAffixModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyAffixModule, declarations: [SkyAffixDirective], imports: [i4.CommonModule], exports: [SkyAffixDirective] });
|
882
|
+
SkyAffixModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyAffixModule, imports: [[i4.CommonModule]] });
|
883
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyAffixModule, decorators: [{
|
889
884
|
type: i0.NgModule,
|
890
885
|
args: [{
|
891
|
-
imports: [
|
892
|
-
|
893
|
-
],
|
894
|
-
exports: [
|
895
|
-
SkyAffixDirective
|
896
|
-
],
|
897
|
-
declarations: [
|
898
|
-
SkyAffixDirective
|
899
|
-
]
|
886
|
+
imports: [i4.CommonModule],
|
887
|
+
exports: [SkyAffixDirective],
|
888
|
+
declarations: [SkyAffixDirective],
|
900
889
|
}]
|
901
890
|
}] });
|
902
891
|
|
@@ -960,12 +949,12 @@
|
|
960
949
|
};
|
961
950
|
return MutationObserverService;
|
962
951
|
}());
|
963
|
-
MutationObserverService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
964
|
-
MutationObserverService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
965
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
952
|
+
MutationObserverService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MutationObserverService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
953
|
+
MutationObserverService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MutationObserverService, providedIn: 'root' });
|
954
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: MutationObserverService, decorators: [{
|
966
955
|
type: i0.Injectable,
|
967
956
|
args: [{
|
968
|
-
providedIn: 'root'
|
957
|
+
providedIn: 'root',
|
969
958
|
}]
|
970
959
|
}] });
|
971
960
|
|
@@ -989,7 +978,8 @@
|
|
989
978
|
this.currentDockHeight =
|
990
979
|
this.ngUnsubscribe =
|
991
980
|
this.observer =
|
992
|
-
this.styleElement =
|
981
|
+
this.styleElement =
|
982
|
+
undefined;
|
993
983
|
};
|
994
984
|
SkyDockDomAdapterService.prototype.setSticky = function (elementRef) {
|
995
985
|
this.renderer.addClass(elementRef.nativeElement, 'sky-dock-sticky');
|
@@ -1009,7 +999,7 @@
|
|
1009
999
|
attributes: true,
|
1010
1000
|
childList: true,
|
1011
1001
|
characterData: true,
|
1012
|
-
subtree: true
|
1002
|
+
subtree: true,
|
1013
1003
|
});
|
1014
1004
|
rxjs.fromEvent(window, 'resize')
|
1015
1005
|
.pipe(operators.debounceTime(250), operators.takeUntil(this.ngUnsubscribe))
|
@@ -1038,9 +1028,9 @@
|
|
1038
1028
|
};
|
1039
1029
|
return SkyDockDomAdapterService;
|
1040
1030
|
}());
|
1041
|
-
SkyDockDomAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1042
|
-
SkyDockDomAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1043
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1031
|
+
SkyDockDomAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyDockDomAdapterService, deps: [{ token: MutationObserverService }, { token: i0__namespace.RendererFactory2 }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
1032
|
+
SkyDockDomAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyDockDomAdapterService });
|
1033
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyDockDomAdapterService, decorators: [{
|
1044
1034
|
type: i0.Injectable
|
1045
1035
|
}], ctorParameters: function () { return [{ type: MutationObserverService }, { type: i0__namespace.RendererFactory2 }]; } });
|
1046
1036
|
|
@@ -1074,21 +1064,21 @@
|
|
1074
1064
|
var factory = this.resolver.resolveComponentFactory(component);
|
1075
1065
|
var injector = i0.Injector.create({
|
1076
1066
|
providers: config.providers || [],
|
1077
|
-
parent: this.injector
|
1067
|
+
parent: this.injector,
|
1078
1068
|
});
|
1079
1069
|
var componentRef = this.target.createComponent(factory, undefined, injector);
|
1080
|
-
var stackOrder =
|
1070
|
+
var stackOrder = config.stackOrder !== null && config.stackOrder !== undefined
|
1081
1071
|
? config.stackOrder
|
1082
1072
|
: this.getHighestStackOrder();
|
1083
1073
|
this.itemRefs.push({
|
1084
1074
|
componentRef: componentRef,
|
1085
|
-
stackOrder: stackOrder
|
1075
|
+
stackOrder: stackOrder,
|
1086
1076
|
});
|
1087
1077
|
this.sortItemsByStackOrder();
|
1088
1078
|
this.changeDetector.markForCheck();
|
1089
1079
|
return {
|
1090
1080
|
componentRef: componentRef,
|
1091
|
-
stackOrder: stackOrder
|
1081
|
+
stackOrder: stackOrder,
|
1092
1082
|
};
|
1093
1083
|
};
|
1094
1084
|
SkyDockComponent.prototype.removeItem = function (item) {
|
@@ -1130,26 +1120,22 @@
|
|
1130
1120
|
};
|
1131
1121
|
return SkyDockComponent;
|
1132
1122
|
}());
|
1133
|
-
SkyDockComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1134
|
-
SkyDockComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
1135
|
-
|
1136
|
-
], viewQueries: [{ propertyName: "target", first: true, predicate: ["target"], descendants: true, read: i0.ViewContainerRef, static: true }], ngImport: i0__namespace, 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__namespace.ChangeDetectionStrategy.OnPush });
|
1137
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyDockComponent, decorators: [{
|
1123
|
+
SkyDockComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyDockComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.ComponentFactoryResolver }, { token: i0__namespace.ElementRef }, { token: i0__namespace.Injector }, { token: SkyDockDomAdapterService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
1124
|
+
SkyDockComponent.ɵcmp = i0__namespace.ɵɵ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: i0.ViewContainerRef, static: true }], ngImport: i0__namespace, 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__namespace.ChangeDetectionStrategy.OnPush });
|
1125
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyDockComponent, decorators: [{
|
1138
1126
|
type: i0.Component,
|
1139
1127
|
args: [{
|
1140
1128
|
selector: 'sky-dock',
|
1141
|
-
template: "<ng-container
|
1129
|
+
template: "<ng-container #target></ng-container>\n",
|
1142
1130
|
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"],
|
1143
|
-
providers: [
|
1144
|
-
|
1145
|
-
],
|
1146
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
1131
|
+
providers: [SkyDockDomAdapterService],
|
1132
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
1147
1133
|
}]
|
1148
1134
|
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.ComponentFactoryResolver }, { type: i0__namespace.ElementRef }, { type: i0__namespace.Injector }, { type: SkyDockDomAdapterService }]; }, propDecorators: { target: [{
|
1149
1135
|
type: i0.ViewChild,
|
1150
1136
|
args: ['target', {
|
1151
1137
|
read: i0.ViewContainerRef,
|
1152
|
-
static: true
|
1138
|
+
static: true,
|
1153
1139
|
}]
|
1154
1140
|
}] } });
|
1155
1141
|
|
@@ -1158,28 +1144,16 @@
|
|
1158
1144
|
}
|
1159
1145
|
return SkyDockModule;
|
1160
1146
|
}());
|
1161
|
-
SkyDockModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1162
|
-
SkyDockModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
1163
|
-
SkyDockModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
1164
|
-
|
1165
|
-
], imports: [[
|
1166
|
-
i4.CommonModule
|
1167
|
-
]] });
|
1168
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyDockModule, decorators: [{
|
1147
|
+
SkyDockModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyDockModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
1148
|
+
SkyDockModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyDockModule, declarations: [SkyDockComponent], imports: [i4.CommonModule] });
|
1149
|
+
SkyDockModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyDockModule, providers: [MutationObserverService], imports: [[i4.CommonModule]] });
|
1150
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyDockModule, decorators: [{
|
1169
1151
|
type: i0.NgModule,
|
1170
1152
|
args: [{
|
1171
|
-
imports: [
|
1172
|
-
|
1173
|
-
],
|
1174
|
-
|
1175
|
-
SkyDockComponent
|
1176
|
-
],
|
1177
|
-
entryComponents: [
|
1178
|
-
SkyDockComponent
|
1179
|
-
],
|
1180
|
-
providers: [
|
1181
|
-
MutationObserverService
|
1182
|
-
]
|
1153
|
+
imports: [i4.CommonModule],
|
1154
|
+
declarations: [SkyDockComponent],
|
1155
|
+
entryComponents: [SkyDockComponent],
|
1156
|
+
providers: [MutationObserverService],
|
1183
1157
|
}]
|
1184
1158
|
}] });
|
1185
1159
|
|
@@ -1236,12 +1210,12 @@
|
|
1236
1210
|
});
|
1237
1211
|
return SkyAppWindowRef;
|
1238
1212
|
}());
|
1239
|
-
SkyAppWindowRef.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1240
|
-
SkyAppWindowRef.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1241
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1213
|
+
SkyAppWindowRef.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyAppWindowRef, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
1214
|
+
SkyAppWindowRef.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyAppWindowRef, providedIn: 'root' });
|
1215
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyAppWindowRef, decorators: [{
|
1242
1216
|
type: i0.Injectable,
|
1243
1217
|
args: [{
|
1244
|
-
providedIn: 'root'
|
1218
|
+
providedIn: 'root',
|
1245
1219
|
}]
|
1246
1220
|
}] });
|
1247
1221
|
|
@@ -1267,7 +1241,7 @@
|
|
1267
1241
|
*/
|
1268
1242
|
SkyDynamicComponentService.prototype.createComponent = function (componentType, options) {
|
1269
1243
|
options = options || {
|
1270
|
-
location: exports.SkyDynamicComponentLocation.BodyBottom
|
1244
|
+
location: exports.SkyDynamicComponentLocation.BodyBottom,
|
1271
1245
|
};
|
1272
1246
|
var componentRef = this.componentFactoryResolver
|
1273
1247
|
.resolveComponentFactory(componentType)
|
@@ -1312,15 +1286,15 @@
|
|
1312
1286
|
};
|
1313
1287
|
return SkyDynamicComponentService;
|
1314
1288
|
}());
|
1315
|
-
SkyDynamicComponentService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1316
|
-
SkyDynamicComponentService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1317
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1289
|
+
SkyDynamicComponentService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyDynamicComponentService, deps: [{ token: i0__namespace.ComponentFactoryResolver }, { token: i0__namespace.ApplicationRef }, { token: i0__namespace.Injector }, { token: SkyAppWindowRef }, { token: i0__namespace.RendererFactory2 }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
1290
|
+
SkyDynamicComponentService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyDynamicComponentService, providedIn: 'any' });
|
1291
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyDynamicComponentService, decorators: [{
|
1318
1292
|
type: i0.Injectable,
|
1319
1293
|
args: [{
|
1320
1294
|
// Must be 'any' so that the component is created in the context of its module's injector.
|
1321
1295
|
// If set to 'root', the component's dependency injections would only be derived from the root
|
1322
1296
|
// injector and may loose context if the component is created within a lazy-loaded module.
|
1323
|
-
providedIn: 'any'
|
1297
|
+
providedIn: 'any',
|
1324
1298
|
}]
|
1325
1299
|
}], ctorParameters: function () { return [{ type: i0__namespace.ComponentFactoryResolver }, { type: i0__namespace.ApplicationRef }, { type: i0__namespace.Injector }, { type: SkyAppWindowRef }, { type: i0__namespace.RendererFactory2 }]; } });
|
1326
1300
|
|
@@ -1392,7 +1366,7 @@
|
|
1392
1366
|
}
|
1393
1367
|
dockOptions = {
|
1394
1368
|
location: dynamicLocation,
|
1395
|
-
referenceEl: this.options.referenceEl
|
1369
|
+
referenceEl: this.options.referenceEl,
|
1396
1370
|
};
|
1397
1371
|
}
|
1398
1372
|
this.dockRef = this.dynamicComponentService.createComponent(SkyDockComponent, dockOptions);
|
@@ -1404,12 +1378,12 @@
|
|
1404
1378
|
};
|
1405
1379
|
return SkyDockService;
|
1406
1380
|
}());
|
1407
|
-
SkyDockService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1408
|
-
SkyDockService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1409
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1381
|
+
SkyDockService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyDockService, deps: [{ token: SkyDynamicComponentService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
1382
|
+
SkyDockService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyDockService, providedIn: 'root' });
|
1383
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyDockService, decorators: [{
|
1410
1384
|
type: i0.Injectable,
|
1411
1385
|
args: [{
|
1412
|
-
providedIn: 'root'
|
1386
|
+
providedIn: 'root',
|
1413
1387
|
}]
|
1414
1388
|
}], ctorParameters: function () { return [{ type: SkyDynamicComponentService }]; } });
|
1415
1389
|
|
@@ -1423,10 +1397,10 @@
|
|
1423
1397
|
}
|
1424
1398
|
return SkyDynamicComponentModule;
|
1425
1399
|
}());
|
1426
|
-
SkyDynamicComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1427
|
-
SkyDynamicComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
1428
|
-
SkyDynamicComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
1429
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1400
|
+
SkyDynamicComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyDynamicComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
1401
|
+
SkyDynamicComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyDynamicComponentModule });
|
1402
|
+
SkyDynamicComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyDynamicComponentModule });
|
1403
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyDynamicComponentModule, decorators: [{
|
1430
1404
|
type: i0.NgModule,
|
1431
1405
|
args: [{}]
|
1432
1406
|
}] });
|
@@ -1445,12 +1419,12 @@
|
|
1445
1419
|
};
|
1446
1420
|
return SkyAppFormat;
|
1447
1421
|
}());
|
1448
|
-
SkyAppFormat.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1449
|
-
SkyAppFormat.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1450
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1422
|
+
SkyAppFormat.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyAppFormat, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
1423
|
+
SkyAppFormat.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyAppFormat, providedIn: 'root' });
|
1424
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyAppFormat, decorators: [{
|
1451
1425
|
type: i0.Injectable,
|
1452
1426
|
args: [{
|
1453
|
-
providedIn: 'root'
|
1427
|
+
providedIn: 'root',
|
1454
1428
|
}]
|
1455
1429
|
}] });
|
1456
1430
|
|
@@ -1481,13 +1455,13 @@
|
|
1481
1455
|
});
|
1482
1456
|
return SkyIdDirective;
|
1483
1457
|
}());
|
1484
|
-
SkyIdDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1485
|
-
SkyIdDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.
|
1486
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1458
|
+
SkyIdDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyIdDirective, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
1459
|
+
SkyIdDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.14", type: SkyIdDirective, selector: "[skyId]", exportAs: ["skyId"], ngImport: i0__namespace });
|
1460
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyIdDirective, decorators: [{
|
1487
1461
|
type: i0.Directive,
|
1488
1462
|
args: [{
|
1489
1463
|
selector: '[skyId]',
|
1490
|
-
exportAs: 'skyId'
|
1464
|
+
exportAs: 'skyId',
|
1491
1465
|
}]
|
1492
1466
|
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.Renderer2 }]; } });
|
1493
1467
|
|
@@ -1496,18 +1470,14 @@
|
|
1496
1470
|
}
|
1497
1471
|
return SkyIdModule;
|
1498
1472
|
}());
|
1499
|
-
SkyIdModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1500
|
-
SkyIdModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
1501
|
-
SkyIdModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
1502
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1473
|
+
SkyIdModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyIdModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
1474
|
+
SkyIdModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyIdModule, declarations: [SkyIdDirective], exports: [SkyIdDirective] });
|
1475
|
+
SkyIdModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyIdModule });
|
1476
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyIdModule, decorators: [{
|
1503
1477
|
type: i0.NgModule,
|
1504
1478
|
args: [{
|
1505
|
-
declarations: [
|
1506
|
-
|
1507
|
-
],
|
1508
|
-
exports: [
|
1509
|
-
SkyIdDirective
|
1510
|
-
]
|
1479
|
+
declarations: [SkyIdDirective],
|
1480
|
+
exports: [SkyIdDirective],
|
1511
1481
|
}]
|
1512
1482
|
}] });
|
1513
1483
|
|
@@ -1520,10 +1490,10 @@
|
|
1520
1490
|
}
|
1521
1491
|
return SkyLogModule;
|
1522
1492
|
}());
|
1523
|
-
SkyLogModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1524
|
-
SkyLogModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
1525
|
-
SkyLogModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
1526
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1493
|
+
SkyLogModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyLogModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
1494
|
+
SkyLogModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyLogModule });
|
1495
|
+
SkyLogModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyLogModule });
|
1496
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyLogModule, decorators: [{
|
1527
1497
|
type: i0.NgModule,
|
1528
1498
|
args: [{}]
|
1529
1499
|
}] });
|
@@ -1546,12 +1516,12 @@
|
|
1546
1516
|
};
|
1547
1517
|
return SkyLogService;
|
1548
1518
|
}());
|
1549
|
-
SkyLogService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1550
|
-
SkyLogService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1551
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1519
|
+
SkyLogService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyLogService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
1520
|
+
SkyLogService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyLogService, providedIn: 'root' });
|
1521
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyLogService, decorators: [{
|
1552
1522
|
type: i0.Injectable,
|
1553
1523
|
args: [{
|
1554
|
-
providedIn: 'root'
|
1524
|
+
providedIn: 'root',
|
1555
1525
|
}]
|
1556
1526
|
}] });
|
1557
1527
|
|
@@ -1564,10 +1534,10 @@
|
|
1564
1534
|
}
|
1565
1535
|
return SkyMediaQueryModule;
|
1566
1536
|
}());
|
1567
|
-
SkyMediaQueryModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1568
|
-
SkyMediaQueryModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
1569
|
-
SkyMediaQueryModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
1570
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1537
|
+
SkyMediaQueryModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyMediaQueryModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
1538
|
+
SkyMediaQueryModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyMediaQueryModule });
|
1539
|
+
SkyMediaQueryModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyMediaQueryModule });
|
1540
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyMediaQueryModule, decorators: [{
|
1571
1541
|
type: i0.NgModule,
|
1572
1542
|
args: [{}]
|
1573
1543
|
}] });
|
@@ -1580,20 +1550,20 @@
|
|
1580
1550
|
this.breakpoints = [
|
1581
1551
|
{
|
1582
1552
|
mediaQueryString: SkyMediaQueryService.xs,
|
1583
|
-
name: exports.SkyMediaBreakpoints.xs
|
1553
|
+
name: exports.SkyMediaBreakpoints.xs,
|
1584
1554
|
},
|
1585
1555
|
{
|
1586
1556
|
mediaQueryString: SkyMediaQueryService.sm,
|
1587
|
-
name: exports.SkyMediaBreakpoints.sm
|
1557
|
+
name: exports.SkyMediaBreakpoints.sm,
|
1588
1558
|
},
|
1589
1559
|
{
|
1590
1560
|
mediaQueryString: SkyMediaQueryService.md,
|
1591
|
-
name: exports.SkyMediaBreakpoints.md
|
1561
|
+
name: exports.SkyMediaBreakpoints.md,
|
1592
1562
|
},
|
1593
1563
|
{
|
1594
1564
|
mediaQueryString: SkyMediaQueryService.lg,
|
1595
|
-
name: exports.SkyMediaBreakpoints.lg
|
1596
|
-
}
|
1565
|
+
name: exports.SkyMediaBreakpoints.lg,
|
1566
|
+
},
|
1597
1567
|
];
|
1598
1568
|
this.mediaQueries = [];
|
1599
1569
|
this.addListeners();
|
@@ -1620,7 +1590,7 @@
|
|
1620
1590
|
return this.currentSubject.subscribe({
|
1621
1591
|
next: function (breakpoints) {
|
1622
1592
|
listener(breakpoints);
|
1623
|
-
}
|
1593
|
+
},
|
1624
1594
|
});
|
1625
1595
|
};
|
1626
1596
|
/**
|
@@ -1650,7 +1620,7 @@
|
|
1650
1620
|
}
|
1651
1621
|
return {
|
1652
1622
|
mediaQueryList: mq,
|
1653
|
-
listener: listener
|
1623
|
+
listener: listener,
|
1654
1624
|
};
|
1655
1625
|
});
|
1656
1626
|
};
|
@@ -1682,12 +1652,12 @@
|
|
1682
1652
|
* The size for the `lg` breakpoint.
|
1683
1653
|
*/
|
1684
1654
|
SkyMediaQueryService.lg = '(min-width: 1200px)';
|
1685
|
-
SkyMediaQueryService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1686
|
-
SkyMediaQueryService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1687
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1655
|
+
SkyMediaQueryService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyMediaQueryService, deps: [{ token: i0__namespace.NgZone }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
1656
|
+
SkyMediaQueryService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyMediaQueryService, providedIn: 'root' });
|
1657
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyMediaQueryService, decorators: [{
|
1688
1658
|
type: i0.Injectable,
|
1689
1659
|
args: [{
|
1690
|
-
providedIn: 'root'
|
1660
|
+
providedIn: 'root',
|
1691
1661
|
}]
|
1692
1662
|
}], ctorParameters: function () { return [{ type: i0__namespace.NgZone }]; } });
|
1693
1663
|
|
@@ -1698,7 +1668,12 @@
|
|
1698
1668
|
* To update this file, simply rerun the command.
|
1699
1669
|
*/
|
1700
1670
|
var RESOURCES = {
|
1701
|
-
'EN-US': {
|
1671
|
+
'EN-US': {
|
1672
|
+
skyux_numeric_billions_symbol: { message: 'B' },
|
1673
|
+
skyux_numeric_millions_symbol: { message: 'M' },
|
1674
|
+
skyux_numeric_thousands_symbol: { message: 'K' },
|
1675
|
+
skyux_numeric_trillions_symbol: { message: 'T' },
|
1676
|
+
},
|
1702
1677
|
};
|
1703
1678
|
var SkyCoreResourcesProvider = /** @class */ (function () {
|
1704
1679
|
function SkyCoreResourcesProvider() {
|
@@ -1716,22 +1691,26 @@
|
|
1716
1691
|
}
|
1717
1692
|
return SkyCoreResourcesModule;
|
1718
1693
|
}());
|
1719
|
-
SkyCoreResourcesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1720
|
-
SkyCoreResourcesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
1721
|
-
SkyCoreResourcesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
1694
|
+
SkyCoreResourcesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyCoreResourcesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
1695
|
+
SkyCoreResourcesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyCoreResourcesModule, exports: [i1.SkyI18nModule] });
|
1696
|
+
SkyCoreResourcesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyCoreResourcesModule, providers: [
|
1697
|
+
{
|
1722
1698
|
provide: i1.SKY_LIB_RESOURCES_PROVIDERS,
|
1723
1699
|
useClass: SkyCoreResourcesProvider,
|
1724
|
-
multi: true
|
1725
|
-
}
|
1726
|
-
|
1700
|
+
multi: true,
|
1701
|
+
},
|
1702
|
+
], imports: [i1.SkyI18nModule] });
|
1703
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyCoreResourcesModule, decorators: [{
|
1727
1704
|
type: i0.NgModule,
|
1728
1705
|
args: [{
|
1729
1706
|
exports: [i1.SkyI18nModule],
|
1730
|
-
providers: [
|
1707
|
+
providers: [
|
1708
|
+
{
|
1731
1709
|
provide: i1.SKY_LIB_RESOURCES_PROVIDERS,
|
1732
1710
|
useClass: SkyCoreResourcesProvider,
|
1733
|
-
multi: true
|
1734
|
-
}
|
1711
|
+
multi: true,
|
1712
|
+
},
|
1713
|
+
],
|
1735
1714
|
}]
|
1736
1715
|
}] });
|
1737
1716
|
|
@@ -2140,15 +2119,18 @@
|
|
2140
2119
|
throw new Error(digits + " is not a valid digit info for number pipes");
|
2141
2120
|
}
|
2142
2121
|
/* istanbul ignore else */
|
2143
|
-
if (parts[1] != null) {
|
2122
|
+
if (parts[1] != null) {
|
2123
|
+
// min integer digits
|
2144
2124
|
minInt = parseIntAutoRadix(parts[1]);
|
2145
2125
|
}
|
2146
2126
|
/* istanbul ignore else */
|
2147
|
-
if (parts[3] != null) {
|
2127
|
+
if (parts[3] != null) {
|
2128
|
+
// min fraction digits
|
2148
2129
|
minFraction = parseIntAutoRadix(parts[3]);
|
2149
2130
|
}
|
2150
2131
|
/* istanbul ignore else */
|
2151
|
-
if (parts[5] != null) {
|
2132
|
+
if (parts[5] != null) {
|
2133
|
+
// max fraction digits
|
2152
2134
|
maxFraction = parseIntAutoRadix(parts[5]);
|
2153
2135
|
}
|
2154
2136
|
}
|
@@ -2158,7 +2140,7 @@
|
|
2158
2140
|
maximumFractionDigits: maxFraction,
|
2159
2141
|
currency: currency,
|
2160
2142
|
currencyAsSymbol: currencyAsSymbol,
|
2161
|
-
currencySign: currencySign
|
2143
|
+
currencySign: currencySign,
|
2162
2144
|
});
|
2163
2145
|
};
|
2164
2146
|
return SkyNumberFormatUtility;
|
@@ -2169,10 +2151,10 @@
|
|
2169
2151
|
function SkyNumericService(resourcesService) {
|
2170
2152
|
this.resourcesService = resourcesService;
|
2171
2153
|
this.symbolIndex = [
|
2172
|
-
{ value:
|
2173
|
-
{ value:
|
2174
|
-
{ value:
|
2175
|
-
{ value:
|
2154
|
+
{ value: 1e12, label: this.getSymbol('skyux_numeric_trillions_symbol') },
|
2155
|
+
{ value: 1e9, label: this.getSymbol('skyux_numeric_billions_symbol') },
|
2156
|
+
{ value: 1e6, label: this.getSymbol('skyux_numeric_millions_symbol') },
|
2157
|
+
{ value: 1e3, label: this.getSymbol('skyux_numeric_thousands_symbol') },
|
2176
2158
|
];
|
2177
2159
|
}
|
2178
2160
|
Object.defineProperty(SkyNumericService.prototype, "currentLocale", {
|
@@ -2209,8 +2191,9 @@
|
|
2209
2191
|
for (var i = 0; i < this.symbolIndex.length; i++) {
|
2210
2192
|
var symbol = this.symbolIndex[i];
|
2211
2193
|
if (options.truncate &&
|
2212
|
-
roundedNumberAbs >= options.truncateAfter &&
|
2213
|
-
|
2194
|
+
roundedNumberAbs >= options.truncateAfter &&
|
2195
|
+
roundedNumberAbs >= symbol.value) {
|
2196
|
+
roundedNumber = this.roundNumber(value / symbol.value, options.digits);
|
2214
2197
|
if (Math.abs(roundedNumber) === 1000 && i > 0) {
|
2215
2198
|
// Rounding caused the number to cross into the range of the next symbol.
|
2216
2199
|
symbol = this.symbolIndex[i - 1];
|
@@ -2232,7 +2215,7 @@
|
|
2232
2215
|
// Note: This will need to be reviewed if we support currencies with
|
2233
2216
|
// three decimal digits.
|
2234
2217
|
case 'currency':
|
2235
|
-
var isDecimal =
|
2218
|
+
var isDecimal = value % 1 !== 0;
|
2236
2219
|
if (options.minDigits) {
|
2237
2220
|
digits = "1." + options.minDigits + "-" + options.digits;
|
2238
2221
|
}
|
@@ -2307,7 +2290,7 @@
|
|
2307
2290
|
var isExponentFormat = valueStr.includes('e');
|
2308
2291
|
if (isExponentFormat) {
|
2309
2292
|
var _b = __read(valueStr.split('e'), 2), base = _b[0], exp = _b[1];
|
2310
|
-
var newExp = scaleUp ?
|
2293
|
+
var newExp = scaleUp ? Number(exp) + scalar : Number(exp) - scalar;
|
2311
2294
|
return Number(base + "e" + newExp);
|
2312
2295
|
}
|
2313
2296
|
else {
|
@@ -2323,7 +2306,7 @@
|
|
2323
2306
|
var symbols = this.symbolIndex.map(function (s) { return s.label; });
|
2324
2307
|
var regexp = new RegExp(symbols.join('|'), 'ig');
|
2325
2308
|
var match = value.match(regexp);
|
2326
|
-
this.shortSymbol =
|
2309
|
+
this.shortSymbol = match ? match.toString() : '';
|
2327
2310
|
};
|
2328
2311
|
/**
|
2329
2312
|
* Must have previously called storeShortenSymbol to have something to replace.
|
@@ -2344,12 +2327,12 @@
|
|
2344
2327
|
};
|
2345
2328
|
return SkyNumericService;
|
2346
2329
|
}());
|
2347
|
-
SkyNumericService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2348
|
-
SkyNumericService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
2349
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
2330
|
+
SkyNumericService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyNumericService, deps: [{ token: i1__namespace.SkyLibResourcesService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
2331
|
+
SkyNumericService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyNumericService, providedIn: 'any' });
|
2332
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyNumericService, decorators: [{
|
2350
2333
|
type: i0.Injectable,
|
2351
2334
|
args: [{
|
2352
|
-
providedIn: 'any'
|
2335
|
+
providedIn: 'any',
|
2353
2336
|
}]
|
2354
2337
|
}], ctorParameters: function () { return [{ type: i1__namespace.SkyLibResourcesService }]; } });
|
2355
2338
|
|
@@ -2370,7 +2353,8 @@
|
|
2370
2353
|
this.numericService = numericService;
|
2371
2354
|
this.changeDetector = changeDetector;
|
2372
2355
|
this.ngUnsubscribe = new rxjs.Subject();
|
2373
|
-
this.localeProvider
|
2356
|
+
this.localeProvider
|
2357
|
+
.getLocaleInfo()
|
2374
2358
|
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
2375
2359
|
.subscribe(function (localeInfo) {
|
2376
2360
|
_this.providerLocale = localeInfo.locale;
|
@@ -2384,7 +2368,8 @@
|
|
2384
2368
|
};
|
2385
2369
|
SkyNumericPipe.prototype.transform = function (value, config) {
|
2386
2370
|
var _a;
|
2387
|
-
var newCacheKey = (config ? JSON.stringify(config, Object.keys(config).sort()) : '') +
|
2371
|
+
var newCacheKey = (config ? JSON.stringify(config, Object.keys(config).sort()) : '') +
|
2372
|
+
(value + "_" + ((config === null || config === void 0 ? void 0 : config.locale) || this.providerLocale));
|
2388
2373
|
/* If the value and locale are the same as the last transform then return the previous value
|
2389
2374
|
instead of reformatting. */
|
2390
2375
|
if (this.formattedValue && this.cacheKey === newCacheKey) {
|
@@ -2393,9 +2378,7 @@
|
|
2393
2378
|
var options = new NumericOptions();
|
2394
2379
|
// The default number of digits is `1`. When truncate is disabled, set digits
|
2395
2380
|
// to `0` to avoid the unnecessary addition of `.0` at the end of the formatted number.
|
2396
|
-
if (config &&
|
2397
|
-
config.truncate === false &&
|
2398
|
-
config.digits === undefined) {
|
2381
|
+
if (config && config.truncate === false && config.digits === undefined) {
|
2399
2382
|
options.digits = 0;
|
2400
2383
|
}
|
2401
2384
|
// If the minimum digits is less than the set maximum digits then throw an error
|
@@ -2406,9 +2389,7 @@
|
|
2406
2389
|
throw new Error('The `digits` property must be greater than or equal to the `minDigits` property');
|
2407
2390
|
// If there is a minimum digits given but not a maximum then default the maximum to the minimum
|
2408
2391
|
}
|
2409
|
-
else if (config &&
|
2410
|
-
config.minDigits &&
|
2411
|
-
!config.digits) {
|
2392
|
+
else if (config && config.minDigits && !config.digits) {
|
2412
2393
|
options.digits = config.minDigits;
|
2413
2394
|
}
|
2414
2395
|
Object.assign(options, config);
|
@@ -2421,13 +2402,13 @@
|
|
2421
2402
|
};
|
2422
2403
|
return SkyNumericPipe;
|
2423
2404
|
}());
|
2424
|
-
SkyNumericPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2425
|
-
SkyNumericPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.
|
2426
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
2405
|
+
SkyNumericPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyNumericPipe, deps: [{ token: i1__namespace.SkyAppLocaleProvider }, { token: SkyNumericService }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
2406
|
+
SkyNumericPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyNumericPipe, name: "skyNumeric", pure: false });
|
2407
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyNumericPipe, decorators: [{
|
2427
2408
|
type: i0.Pipe,
|
2428
2409
|
args: [{
|
2429
2410
|
name: 'skyNumeric',
|
2430
|
-
pure: false
|
2411
|
+
pure: false,
|
2431
2412
|
}]
|
2432
2413
|
}], ctorParameters: function () { return [{ type: i1__namespace.SkyAppLocaleProvider }, { type: SkyNumericService }, { type: i0__namespace.ChangeDetectorRef }]; } });
|
2433
2414
|
|
@@ -2436,31 +2417,16 @@
|
|
2436
2417
|
}
|
2437
2418
|
return SkyNumericModule;
|
2438
2419
|
}());
|
2439
|
-
SkyNumericModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2440
|
-
SkyNumericModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
2441
|
-
|
2442
|
-
|
2443
|
-
SkyNumericPipe
|
2444
|
-
], imports: [[
|
2445
|
-
i1.SkyI18nModule,
|
2446
|
-
SkyCoreResourcesModule
|
2447
|
-
]] });
|
2448
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyNumericModule, decorators: [{
|
2420
|
+
SkyNumericModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyNumericModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
2421
|
+
SkyNumericModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyNumericModule, declarations: [SkyNumericPipe], imports: [i1.SkyI18nModule, SkyCoreResourcesModule], exports: [SkyNumericPipe] });
|
2422
|
+
SkyNumericModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyNumericModule, providers: [SkyNumericPipe], imports: [[i1.SkyI18nModule, SkyCoreResourcesModule]] });
|
2423
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyNumericModule, decorators: [{
|
2449
2424
|
type: i0.NgModule,
|
2450
2425
|
args: [{
|
2451
|
-
declarations: [
|
2452
|
-
|
2453
|
-
],
|
2454
|
-
|
2455
|
-
SkyNumericPipe
|
2456
|
-
],
|
2457
|
-
imports: [
|
2458
|
-
i1.SkyI18nModule,
|
2459
|
-
SkyCoreResourcesModule
|
2460
|
-
],
|
2461
|
-
exports: [
|
2462
|
-
SkyNumericPipe
|
2463
|
-
]
|
2426
|
+
declarations: [SkyNumericPipe],
|
2427
|
+
providers: [SkyNumericPipe],
|
2428
|
+
imports: [i1.SkyI18nModule, SkyCoreResourcesModule],
|
2429
|
+
exports: [SkyNumericPipe],
|
2464
2430
|
}]
|
2465
2431
|
}] });
|
2466
2432
|
|
@@ -2610,7 +2576,7 @@
|
|
2610
2576
|
var factory = this.resolver.resolveComponentFactory(component);
|
2611
2577
|
var injector = i0.Injector.create({
|
2612
2578
|
providers: providers,
|
2613
|
-
parent: this.injector
|
2579
|
+
parent: this.injector,
|
2614
2580
|
});
|
2615
2581
|
var componentRef = this.targetRef.createComponent(factory, undefined, injector);
|
2616
2582
|
// Run an initial change detection cycle after the component has been created.
|
@@ -2663,15 +2629,15 @@
|
|
2663
2629
|
};
|
2664
2630
|
return SkyOverlayComponent;
|
2665
2631
|
}());
|
2666
|
-
SkyOverlayComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2667
|
-
SkyOverlayComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
2668
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
2632
|
+
SkyOverlayComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyOverlayComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.ComponentFactoryResolver }, { token: i0__namespace.Injector }, { token: SkyCoreAdapterService }, { token: SkyOverlayContext }, { token: i3__namespace.Router, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
2633
|
+
SkyOverlayComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", type: SkyOverlayComponent, selector: "sky-overlay", viewQueries: [{ propertyName: "overlayContentRef", first: true, predicate: ["overlayContentRef"], descendants: true, read: i0.ElementRef, static: true }, { propertyName: "overlayRef", first: true, predicate: ["overlayRef"], descendants: true, read: i0.ElementRef, static: true }, { propertyName: "targetRef", first: true, predicate: ["target"], descendants: true, read: i0.ViewContainerRef, static: true }], ngImport: i0__namespace, 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__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
2634
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyOverlayComponent, decorators: [{
|
2669
2635
|
type: i0.Component,
|
2670
2636
|
args: [{
|
2671
2637
|
selector: 'sky-overlay',
|
2672
|
-
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
|
2638
|
+
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",
|
2673
2639
|
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"],
|
2674
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
2640
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
2675
2641
|
}]
|
2676
2642
|
}], ctorParameters: function () {
|
2677
2643
|
return [{ type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.ComponentFactoryResolver }, { type: i0__namespace.Injector }, { type: SkyCoreAdapterService }, { type: SkyOverlayContext }, { type: i3__namespace.Router, decorators: [{
|
@@ -2681,19 +2647,19 @@
|
|
2681
2647
|
type: i0.ViewChild,
|
2682
2648
|
args: ['overlayContentRef', {
|
2683
2649
|
read: i0.ElementRef,
|
2684
|
-
static: true
|
2650
|
+
static: true,
|
2685
2651
|
}]
|
2686
2652
|
}], overlayRef: [{
|
2687
2653
|
type: i0.ViewChild,
|
2688
2654
|
args: ['overlayRef', {
|
2689
2655
|
read: i0.ElementRef,
|
2690
|
-
static: true
|
2656
|
+
static: true,
|
2691
2657
|
}]
|
2692
2658
|
}], targetRef: [{
|
2693
2659
|
type: i0.ViewChild,
|
2694
2660
|
args: ['target', {
|
2695
2661
|
read: i0.ViewContainerRef,
|
2696
|
-
static: true
|
2662
|
+
static: true,
|
2697
2663
|
}]
|
2698
2664
|
}] } });
|
2699
2665
|
|
@@ -2702,23 +2668,15 @@
|
|
2702
2668
|
}
|
2703
2669
|
return SkyOverlayModule;
|
2704
2670
|
}());
|
2705
|
-
SkyOverlayModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2706
|
-
SkyOverlayModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
2707
|
-
SkyOverlayModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
2708
|
-
|
2709
|
-
]] });
|
2710
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyOverlayModule, decorators: [{
|
2671
|
+
SkyOverlayModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyOverlayModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
2672
|
+
SkyOverlayModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyOverlayModule, declarations: [SkyOverlayComponent], imports: [i4.CommonModule] });
|
2673
|
+
SkyOverlayModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyOverlayModule, imports: [[i4.CommonModule]] });
|
2674
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyOverlayModule, decorators: [{
|
2711
2675
|
type: i0.NgModule,
|
2712
2676
|
args: [{
|
2713
|
-
imports: [
|
2714
|
-
|
2715
|
-
],
|
2716
|
-
declarations: [
|
2717
|
-
SkyOverlayComponent
|
2718
|
-
],
|
2719
|
-
entryComponents: [
|
2720
|
-
SkyOverlayComponent
|
2721
|
-
]
|
2677
|
+
imports: [i4.CommonModule],
|
2678
|
+
declarations: [SkyOverlayComponent],
|
2679
|
+
entryComponents: [SkyOverlayComponent],
|
2722
2680
|
}]
|
2723
2681
|
}] });
|
2724
2682
|
|
@@ -2753,12 +2711,12 @@
|
|
2753
2711
|
};
|
2754
2712
|
return SkyOverlayAdapterService;
|
2755
2713
|
}());
|
2756
|
-
SkyOverlayAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2757
|
-
SkyOverlayAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
2758
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
2714
|
+
SkyOverlayAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyOverlayAdapterService, deps: [{ token: i0__namespace.RendererFactory2 }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
2715
|
+
SkyOverlayAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyOverlayAdapterService, providedIn: 'root' });
|
2716
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyOverlayAdapterService, decorators: [{
|
2759
2717
|
type: i0.Injectable,
|
2760
2718
|
args: [{
|
2761
|
-
providedIn: 'root'
|
2719
|
+
providedIn: 'root',
|
2762
2720
|
}]
|
2763
2721
|
}], ctorParameters: function () { return [{ type: i0__namespace.RendererFactory2 }]; } });
|
2764
2722
|
|
@@ -2828,10 +2786,12 @@
|
|
2828
2786
|
SkyOverlayService.prototype.createOverlay = function (config) {
|
2829
2787
|
var injector = i0.Injector.create({
|
2830
2788
|
parent: this.injector,
|
2831
|
-
providers: [
|
2789
|
+
providers: [
|
2790
|
+
{
|
2832
2791
|
provide: SkyOverlayContext,
|
2833
|
-
useValue: new SkyOverlayContext(config)
|
2834
|
-
}
|
2792
|
+
useValue: new SkyOverlayContext(config),
|
2793
|
+
},
|
2794
|
+
],
|
2835
2795
|
});
|
2836
2796
|
var componentRef = this.componentFactoryResolver
|
2837
2797
|
.resolveComponentFactory(SkyOverlayComponent)
|
@@ -2849,7 +2809,7 @@
|
|
2849
2809
|
enablePointerEvents: false,
|
2850
2810
|
enableScroll: true,
|
2851
2811
|
showBackdrop: false,
|
2852
|
-
wrapperClass: ''
|
2812
|
+
wrapperClass: '',
|
2853
2813
|
};
|
2854
2814
|
return Object.assign(Object.assign({}, defaults), config);
|
2855
2815
|
};
|
@@ -2866,12 +2826,12 @@
|
|
2866
2826
|
return SkyOverlayService;
|
2867
2827
|
}());
|
2868
2828
|
SkyOverlayService.overlays = [];
|
2869
|
-
SkyOverlayService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2870
|
-
SkyOverlayService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
2871
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
2829
|
+
SkyOverlayService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyOverlayService, deps: [{ token: i0__namespace.ApplicationRef }, { token: i0__namespace.ComponentFactoryResolver }, { token: i0__namespace.Injector }, { token: SkyOverlayAdapterService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
2830
|
+
SkyOverlayService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyOverlayService, providedIn: 'root' });
|
2831
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyOverlayService, decorators: [{
|
2872
2832
|
type: i0.Injectable,
|
2873
2833
|
args: [{
|
2874
|
-
providedIn: 'root'
|
2834
|
+
providedIn: 'root',
|
2875
2835
|
}]
|
2876
2836
|
}], ctorParameters: function () { return [{ type: i0__namespace.ApplicationRef }, { type: i0__namespace.ComponentFactoryResolver }, { type: i0__namespace.Injector }, { type: SkyOverlayAdapterService }]; } });
|
2877
2837
|
|
@@ -2882,7 +2842,8 @@
|
|
2882
2842
|
this.defaultFormat = '1.0-2';
|
2883
2843
|
this.defaultLocale = 'en-US';
|
2884
2844
|
this.ngUnsubscribe = new rxjs.Subject();
|
2885
|
-
this.localeProvider
|
2845
|
+
this.localeProvider
|
2846
|
+
.getLocaleInfo()
|
2886
2847
|
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
2887
2848
|
.subscribe(function (localeInfo) {
|
2888
2849
|
_this.defaultLocale = localeInfo.locale;
|
@@ -2907,13 +2868,13 @@
|
|
2907
2868
|
};
|
2908
2869
|
return SkyPercentPipe;
|
2909
2870
|
}());
|
2910
|
-
SkyPercentPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2911
|
-
SkyPercentPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.
|
2912
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
2871
|
+
SkyPercentPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyPercentPipe, deps: [{ token: i1__namespace.SkyAppLocaleProvider }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
2872
|
+
SkyPercentPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyPercentPipe, name: "skyPercent", pure: false });
|
2873
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyPercentPipe, decorators: [{
|
2913
2874
|
type: i0.Pipe,
|
2914
2875
|
args: [{
|
2915
2876
|
name: 'skyPercent',
|
2916
|
-
pure: false
|
2877
|
+
pure: false,
|
2917
2878
|
}]
|
2918
2879
|
}], ctorParameters: function () { return [{ type: i1__namespace.SkyAppLocaleProvider }]; } });
|
2919
2880
|
|
@@ -2922,59 +2883,132 @@
|
|
2922
2883
|
}
|
2923
2884
|
return SkyPercentPipeModule;
|
2924
2885
|
}());
|
2925
|
-
SkyPercentPipeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2926
|
-
SkyPercentPipeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
2927
|
-
|
2928
|
-
|
2929
|
-
SkyPercentPipe
|
2930
|
-
], imports: [[
|
2931
|
-
i4.CommonModule,
|
2932
|
-
SkyCoreResourcesModule
|
2933
|
-
]] });
|
2934
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyPercentPipeModule, decorators: [{
|
2886
|
+
SkyPercentPipeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyPercentPipeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
2887
|
+
SkyPercentPipeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyPercentPipeModule, declarations: [SkyPercentPipe], imports: [i4.CommonModule, SkyCoreResourcesModule], exports: [SkyPercentPipe] });
|
2888
|
+
SkyPercentPipeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyPercentPipeModule, providers: [SkyPercentPipe], imports: [[i4.CommonModule, SkyCoreResourcesModule]] });
|
2889
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyPercentPipeModule, decorators: [{
|
2935
2890
|
type: i0.NgModule,
|
2936
2891
|
args: [{
|
2937
|
-
declarations: [
|
2938
|
-
|
2939
|
-
],
|
2940
|
-
|
2941
|
-
SkyPercentPipe
|
2942
|
-
],
|
2943
|
-
imports: [
|
2944
|
-
i4.CommonModule,
|
2945
|
-
SkyCoreResourcesModule
|
2946
|
-
],
|
2947
|
-
exports: [
|
2948
|
-
SkyPercentPipe
|
2949
|
-
]
|
2892
|
+
declarations: [SkyPercentPipe],
|
2893
|
+
providers: [SkyPercentPipe],
|
2894
|
+
imports: [i4.CommonModule, SkyCoreResourcesModule],
|
2895
|
+
exports: [SkyPercentPipe],
|
2950
2896
|
}]
|
2951
2897
|
}] });
|
2952
2898
|
|
2899
|
+
function notifySubscribers(subscribers, item) {
|
2900
|
+
var e_1, _a;
|
2901
|
+
try {
|
2902
|
+
for (var subscribers_1 = __values(subscribers), subscribers_1_1 = subscribers_1.next(); !subscribers_1_1.done; subscribers_1_1 = subscribers_1.next()) {
|
2903
|
+
var subscriber = subscribers_1_1.value;
|
2904
|
+
subscriber.next(item);
|
2905
|
+
}
|
2906
|
+
}
|
2907
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
2908
|
+
finally {
|
2909
|
+
try {
|
2910
|
+
if (subscribers_1_1 && !subscribers_1_1.done && (_a = subscribers_1.return)) _a.call(subscribers_1);
|
2911
|
+
}
|
2912
|
+
finally { if (e_1) throw e_1.error; }
|
2913
|
+
}
|
2914
|
+
}
|
2953
2915
|
var SkyScrollableHostService = /** @class */ (function () {
|
2954
2916
|
function SkyScrollableHostService(mutationObserverSvc, windowRef) {
|
2955
2917
|
this.mutationObserverSvc = mutationObserverSvc;
|
2956
2918
|
this.windowRef = windowRef;
|
2957
2919
|
}
|
2958
|
-
|
2920
|
+
/**
|
2921
|
+
* Returns the given element's current scrollable host
|
2922
|
+
* @param elementRef The element whose scrollable host is being requested
|
2923
|
+
* @returns The current scrollable host
|
2924
|
+
*/
|
2925
|
+
SkyScrollableHostService.prototype.getScrollableHost = function (elementRef) {
|
2959
2926
|
return this.findScrollableHost(elementRef.nativeElement);
|
2960
2927
|
};
|
2961
|
-
|
2928
|
+
/**
|
2929
|
+
* Returns an observable which emits the given element's current scrollable host
|
2930
|
+
* @param elementRef The element whose scrollable host is being requested
|
2931
|
+
* @param completionObservable An observable which alerts the internal observers that they should complete
|
2932
|
+
* @returns An observable which emits the current scrollable host
|
2933
|
+
* @internal
|
2934
|
+
*/
|
2935
|
+
SkyScrollableHostService.prototype.watchScrollableHost = function (elementRef) {
|
2962
2936
|
var _this = this;
|
2963
|
-
var
|
2964
|
-
var
|
2965
|
-
|
2966
|
-
|
2967
|
-
|
2968
|
-
|
2937
|
+
var subscribers = [];
|
2938
|
+
var mutationObserver;
|
2939
|
+
return new rxjs.Observable(function (subscriber) {
|
2940
|
+
subscribers.push(subscriber);
|
2941
|
+
var scrollableHost = _this.findScrollableHost(elementRef.nativeElement);
|
2942
|
+
if (subscribers.length === 1) {
|
2943
|
+
mutationObserver = _this.mutationObserverSvc.create(function () {
|
2944
|
+
var newScrollableHost = _this.findScrollableHost(elementRef.nativeElement);
|
2945
|
+
if (newScrollableHost !== scrollableHost) {
|
2946
|
+
scrollableHost = newScrollableHost;
|
2947
|
+
_this.observeForScrollableHostChanges(scrollableHost, mutationObserver);
|
2948
|
+
notifySubscribers(subscribers, scrollableHost);
|
2949
|
+
}
|
2950
|
+
});
|
2969
2951
|
_this.observeForScrollableHostChanges(scrollableHost, mutationObserver);
|
2970
|
-
behaviorSubject.next(scrollableHost);
|
2971
2952
|
}
|
2953
|
+
subscriber.next(scrollableHost);
|
2954
|
+
subscriber.add(function () {
|
2955
|
+
var subIndex = subscribers.indexOf(subscriber);
|
2956
|
+
/* sanity check */
|
2957
|
+
/* istanbul ignore else */
|
2958
|
+
if (subIndex >= 0) {
|
2959
|
+
subscribers.splice(subIndex, 1);
|
2960
|
+
}
|
2961
|
+
if (subscribers.length === 0) {
|
2962
|
+
mutationObserver.disconnect();
|
2963
|
+
}
|
2964
|
+
});
|
2972
2965
|
});
|
2973
|
-
|
2974
|
-
|
2975
|
-
|
2966
|
+
};
|
2967
|
+
/**
|
2968
|
+
* 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.
|
2969
|
+
* @param elementRef The element whose scrollable host scroll events are being requested
|
2970
|
+
* @param completionObservable An observable which alerts the internal observers that they should complete
|
2971
|
+
* @returns An observable which emits the scroll events from the given element's scrollable host
|
2972
|
+
*/
|
2973
|
+
SkyScrollableHostService.prototype.watchScrollableHostScrollEvents = function (elementRef) {
|
2974
|
+
var _this = this;
|
2975
|
+
var subscribers = [];
|
2976
|
+
var scrollableHost;
|
2977
|
+
var newScrollableHostObservable = new rxjs.Subject();
|
2978
|
+
var scrollableHostSubscription;
|
2979
|
+
var scrollEventSubscription;
|
2980
|
+
return new rxjs.Observable(function (subscriber) {
|
2981
|
+
subscribers.push(subscriber);
|
2982
|
+
if (subscribers.length === 1) {
|
2983
|
+
scrollableHostSubscription = _this.watchScrollableHost(elementRef).subscribe(function (newScrollableHost) {
|
2984
|
+
newScrollableHostObservable.next();
|
2985
|
+
newScrollableHostObservable.complete();
|
2986
|
+
if (scrollableHost && scrollableHost !== newScrollableHost) {
|
2987
|
+
notifySubscribers(subscribers);
|
2988
|
+
}
|
2989
|
+
scrollableHost = newScrollableHost;
|
2990
|
+
newScrollableHostObservable = new rxjs.Subject();
|
2991
|
+
scrollEventSubscription = rxjs.fromEvent(newScrollableHost, 'scroll')
|
2992
|
+
.pipe(operators.takeUntil(newScrollableHostObservable))
|
2993
|
+
.subscribe(function () {
|
2994
|
+
notifySubscribers(subscribers);
|
2995
|
+
});
|
2996
|
+
});
|
2997
|
+
}
|
2998
|
+
subscriber.add(function () {
|
2999
|
+
var subIndex = subscribers.indexOf(subscriber);
|
3000
|
+
/* sanity check */
|
3001
|
+
/* istanbul ignore else */
|
3002
|
+
if (subIndex >= 0) {
|
3003
|
+
subscribers.splice(subIndex, 1);
|
3004
|
+
}
|
3005
|
+
if (subscribers.length === 0) {
|
3006
|
+
scrollableHostSubscription.unsubscribe();
|
3007
|
+
scrollEventSubscription.unsubscribe();
|
3008
|
+
newScrollableHostObservable.complete();
|
3009
|
+
}
|
3010
|
+
});
|
2976
3011
|
});
|
2977
|
-
return behaviorSubject;
|
2978
3012
|
};
|
2979
3013
|
SkyScrollableHostService.prototype.findScrollableHost = function (element) {
|
2980
3014
|
var regex = /(auto|scroll)/;
|
@@ -3006,26 +3040,28 @@
|
|
3006
3040
|
if (element instanceof HTMLElement) {
|
3007
3041
|
mutationObserver.observe(element, {
|
3008
3042
|
attributes: true,
|
3009
|
-
attributeFilter: [
|
3010
|
-
|
3043
|
+
attributeFilter: ['class', 'style.overflow', 'style.overflow-y'],
|
3044
|
+
childList: true,
|
3045
|
+
subtree: true,
|
3011
3046
|
});
|
3012
3047
|
}
|
3013
3048
|
else {
|
3014
3049
|
mutationObserver.observe(document.documentElement, {
|
3015
3050
|
attributes: true,
|
3016
|
-
attributeFilter: [
|
3017
|
-
|
3051
|
+
attributeFilter: ['class', 'style.overflow', 'style.overflow-y'],
|
3052
|
+
childList: true,
|
3053
|
+
subtree: true,
|
3018
3054
|
});
|
3019
3055
|
}
|
3020
3056
|
};
|
3021
3057
|
return SkyScrollableHostService;
|
3022
3058
|
}());
|
3023
|
-
SkyScrollableHostService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
3024
|
-
SkyScrollableHostService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
3025
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
3059
|
+
SkyScrollableHostService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyScrollableHostService, deps: [{ token: MutationObserverService }, { token: SkyAppWindowRef }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
3060
|
+
SkyScrollableHostService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyScrollableHostService, providedIn: 'root' });
|
3061
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyScrollableHostService, decorators: [{
|
3026
3062
|
type: i0.Injectable,
|
3027
3063
|
args: [{
|
3028
|
-
providedIn: 'root'
|
3064
|
+
providedIn: 'root',
|
3029
3065
|
}]
|
3030
3066
|
}], ctorParameters: function () { return [{ type: MutationObserverService }, { type: SkyAppWindowRef }]; } });
|
3031
3067
|
|
@@ -3048,12 +3084,12 @@
|
|
3048
3084
|
};
|
3049
3085
|
return SkyAppTitleService;
|
3050
3086
|
}());
|
3051
|
-
SkyAppTitleService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
3052
|
-
SkyAppTitleService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
3053
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
3087
|
+
SkyAppTitleService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyAppTitleService, deps: [{ token: i1__namespace$1.Title }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
3088
|
+
SkyAppTitleService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyAppTitleService, providedIn: 'root' });
|
3089
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyAppTitleService, decorators: [{
|
3054
3090
|
type: i0.Injectable,
|
3055
3091
|
args: [{
|
3056
|
-
providedIn: 'root'
|
3092
|
+
providedIn: 'root',
|
3057
3093
|
}]
|
3058
3094
|
}], ctorParameters: function () { return [{ type: i1__namespace$1.Title }]; } });
|
3059
3095
|
|
@@ -3069,12 +3105,12 @@
|
|
3069
3105
|
};
|
3070
3106
|
return SkyUIConfigService;
|
3071
3107
|
}());
|
3072
|
-
SkyUIConfigService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
3073
|
-
SkyUIConfigService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
3074
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
3108
|
+
SkyUIConfigService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyUIConfigService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
3109
|
+
SkyUIConfigService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyUIConfigService, providedIn: 'root' });
|
3110
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyUIConfigService, decorators: [{
|
3075
3111
|
type: i0.Injectable,
|
3076
3112
|
args: [{
|
3077
|
-
providedIn: 'root'
|
3113
|
+
providedIn: 'root',
|
3078
3114
|
}]
|
3079
3115
|
}] });
|
3080
3116
|
|
@@ -3083,9 +3119,9 @@
|
|
3083
3119
|
}
|
3084
3120
|
return SkyViewkeeperHostOptions;
|
3085
3121
|
}());
|
3086
|
-
SkyViewkeeperHostOptions.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
3087
|
-
SkyViewkeeperHostOptions.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
3088
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
3122
|
+
SkyViewkeeperHostOptions.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyViewkeeperHostOptions, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
3123
|
+
SkyViewkeeperHostOptions.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyViewkeeperHostOptions });
|
3124
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyViewkeeperHostOptions, decorators: [{
|
3089
3125
|
type: i0.Injectable
|
3090
3126
|
}] });
|
3091
3127
|
|
@@ -3110,7 +3146,7 @@
|
|
3110
3146
|
var parent = scrollableHost ? scrollableHost : document.documentElement;
|
3111
3147
|
return {
|
3112
3148
|
top: rect.top + parent.scrollTop,
|
3113
|
-
left: rect.left + parent.scrollLeft
|
3149
|
+
left: rect.left + parent.scrollLeft,
|
3114
3150
|
};
|
3115
3151
|
}
|
3116
3152
|
function px(value) {
|
@@ -3132,7 +3168,9 @@
|
|
3132
3168
|
}
|
3133
3169
|
function getHeightWithMargin(el) {
|
3134
3170
|
var computedStyle = getComputedStyle(el);
|
3135
|
-
return el.offsetHeight +
|
3171
|
+
return (el.offsetHeight +
|
3172
|
+
parseInt(computedStyle.marginTop, 10) +
|
3173
|
+
parseInt(computedStyle.marginBottom, 10));
|
3136
3174
|
}
|
3137
3175
|
function createCustomEvent(name) {
|
3138
3176
|
var evt = document.createEvent('CustomEvent');
|
@@ -3161,6 +3199,21 @@
|
|
3161
3199
|
ensureStyleEl();
|
3162
3200
|
this.syncElPosition();
|
3163
3201
|
}
|
3202
|
+
Object.defineProperty(SkyViewkeeper.prototype, "viewportMarginTop", {
|
3203
|
+
get: function () {
|
3204
|
+
if (this.scrollableHost) {
|
3205
|
+
return 0;
|
3206
|
+
}
|
3207
|
+
else {
|
3208
|
+
return this._viewportMarginTop;
|
3209
|
+
}
|
3210
|
+
},
|
3211
|
+
set: function (margin) {
|
3212
|
+
this._viewportMarginTop = margin;
|
3213
|
+
},
|
3214
|
+
enumerable: false,
|
3215
|
+
configurable: true
|
3216
|
+
});
|
3164
3217
|
SkyViewkeeper.prototype.syncElPosition = function () {
|
3165
3218
|
var verticalOffset = this.calculateVerticalOffset();
|
3166
3219
|
// When the element isn't visible, its size can't be calculated, so don't attempt syncing position in this case.
|
@@ -3190,9 +3243,7 @@
|
|
3190
3243
|
if (this.verticalOffsetEl) {
|
3191
3244
|
this.verticalOffsetEl.removeEventListener(EVT_AFTER_VIEWKEEPER_SYNC, this.syncElPositionHandler);
|
3192
3245
|
}
|
3193
|
-
this.el =
|
3194
|
-
this.boundaryEl =
|
3195
|
-
this.verticalOffsetEl = undefined;
|
3246
|
+
this.el = this.boundaryEl = this.verticalOffsetEl = undefined;
|
3196
3247
|
this.isDestroyed = true;
|
3197
3248
|
}
|
3198
3249
|
};
|
@@ -3207,7 +3258,8 @@
|
|
3207
3258
|
this.el.classList.remove(CLS_VIEWKEEPER_FIXED);
|
3208
3259
|
this.currentElFixedLeft =
|
3209
3260
|
this.currentElFixedTop =
|
3210
|
-
this.currentElFixedWidth =
|
3261
|
+
this.currentElFixedWidth =
|
3262
|
+
undefined;
|
3211
3263
|
var width;
|
3212
3264
|
if (this.setWidth) {
|
3213
3265
|
width = 'auto';
|
@@ -3219,7 +3271,7 @@
|
|
3219
3271
|
if (this.verticalOffsetEl) {
|
3220
3272
|
var verticalOffsetElTopStyle = this.verticalOffsetEl.style.top;
|
3221
3273
|
var verticalOffsetElTop = parseInt(verticalOffsetElTopStyle, 10) || 0;
|
3222
|
-
offset +=
|
3274
|
+
offset += this.verticalOffsetEl.offsetHeight + verticalOffsetElTop;
|
3223
3275
|
}
|
3224
3276
|
else if (this.scrollableHost) {
|
3225
3277
|
offset += this.scrollableHost.getBoundingClientRect().top;
|
@@ -3235,7 +3287,9 @@
|
|
3235
3287
|
else {
|
3236
3288
|
anchorTop = getOffset(this.el, this.scrollableHost).top;
|
3237
3289
|
}
|
3238
|
-
doFixEl =
|
3290
|
+
doFixEl =
|
3291
|
+
boundaryInfo.scrollTop + verticalOffset + this.viewportMarginTop >
|
3292
|
+
anchorTop;
|
3239
3293
|
return doFixEl;
|
3240
3294
|
};
|
3241
3295
|
SkyViewkeeper.prototype.getFixedStyles = function (boundaryInfo, verticalOffset) {
|
@@ -3244,13 +3298,15 @@
|
|
3244
3298
|
// will be 0 (fully visible) unless the user is scrolling the boundary out of view.
|
3245
3299
|
// In that case, the element should begin to scroll out of view with the
|
3246
3300
|
// rest of the boundary by setting its top position to a negative value.
|
3247
|
-
elFixedTop = Math.min(
|
3301
|
+
elFixedTop = Math.min(boundaryInfo.boundaryBottom -
|
3302
|
+
boundaryInfo.elHeight -
|
3303
|
+
boundaryInfo.scrollTop, verticalOffset);
|
3248
3304
|
var elFixedWidth = boundaryInfo.boundaryEl.getBoundingClientRect().width;
|
3249
3305
|
var elFixedLeft = boundaryInfo.boundaryOffset.left - boundaryInfo.scrollLeft;
|
3250
3306
|
return {
|
3251
3307
|
elFixedLeft: elFixedLeft,
|
3252
3308
|
elFixedTop: elFixedTop,
|
3253
|
-
elFixedWidth: elFixedWidth
|
3309
|
+
elFixedWidth: elFixedWidth,
|
3254
3310
|
};
|
3255
3311
|
};
|
3256
3312
|
SkyViewkeeper.prototype.needsUpdating = function (doFixEl, fixedStyles) {
|
@@ -3259,7 +3315,8 @@
|
|
3259
3315
|
this.currentElFixedTop === fixedStyles.elFixedTop &&
|
3260
3316
|
this.currentElFixedWidth === fixedStyles.elFixedWidth) ||
|
3261
3317
|
(!doFixEl &&
|
3262
|
-
!(this.currentElFixedLeft !== undefined &&
|
3318
|
+
!(this.currentElFixedLeft !== undefined &&
|
3319
|
+
this.currentElFixedLeft !== null))) {
|
3263
3320
|
// The element is either currently fixed and its position and width do not need
|
3264
3321
|
// to change, or the element is not currently fixed and does not need to be fixed.
|
3265
3322
|
// No changes are needed.
|
@@ -3295,8 +3352,12 @@
|
|
3295
3352
|
var boundaryOffset = getOffset(boundaryEl, this.scrollableHost);
|
3296
3353
|
var boundaryTop = boundaryOffset.top;
|
3297
3354
|
var boundaryBottom = boundaryTop + boundaryEl.getBoundingClientRect().height;
|
3298
|
-
var scrollLeft = this.scrollableHost
|
3299
|
-
|
3355
|
+
var scrollLeft = this.scrollableHost
|
3356
|
+
? this.scrollableHost.scrollLeft
|
3357
|
+
: document.documentElement.scrollLeft;
|
3358
|
+
var scrollTop = this.scrollableHost
|
3359
|
+
? this.scrollableHost.scrollTop
|
3360
|
+
: document.documentElement.scrollTop;
|
3300
3361
|
var elHeight = getHeightWithMargin(this.el);
|
3301
3362
|
return {
|
3302
3363
|
boundaryBottom: boundaryBottom,
|
@@ -3306,7 +3367,7 @@
|
|
3306
3367
|
scrollLeft: scrollLeft,
|
3307
3368
|
scrollTop: scrollTop,
|
3308
3369
|
spacerId: spacerId,
|
3309
|
-
spacerEl: spacerEl
|
3370
|
+
spacerEl: spacerEl,
|
3310
3371
|
};
|
3311
3372
|
};
|
3312
3373
|
return SkyViewkeeper;
|
@@ -3336,12 +3397,12 @@
|
|
3336
3397
|
};
|
3337
3398
|
return SkyViewkeeperService;
|
3338
3399
|
}());
|
3339
|
-
SkyViewkeeperService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
3340
|
-
SkyViewkeeperService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
3341
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
3400
|
+
SkyViewkeeperService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyViewkeeperService, deps: [{ token: SkyViewkeeperHostOptions, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
3401
|
+
SkyViewkeeperService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyViewkeeperService, providedIn: 'root' });
|
3402
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyViewkeeperService, decorators: [{
|
3342
3403
|
type: i0.Injectable,
|
3343
3404
|
args: [{
|
3344
|
-
providedIn: 'root'
|
3405
|
+
providedIn: 'root',
|
3345
3406
|
}]
|
3346
3407
|
}], ctorParameters: function () {
|
3347
3408
|
return [{ type: SkyViewkeeperHostOptions, decorators: [{
|
@@ -3374,7 +3435,7 @@
|
|
3374
3435
|
this.observer = this.mutationObserverSvc.create(function () { return _this.detectElements(); });
|
3375
3436
|
this.observer.observe(this.el.nativeElement, {
|
3376
3437
|
childList: true,
|
3377
|
-
subtree: true
|
3438
|
+
subtree: true,
|
3378
3439
|
});
|
3379
3440
|
};
|
3380
3441
|
SkyViewkeeperDirective.prototype.ngOnDestroy = function () {
|
@@ -3447,7 +3508,8 @@
|
|
3447
3508
|
else {
|
3448
3509
|
this.scrollableHostWatchUnsubscribe = new rxjs.Subject();
|
3449
3510
|
}
|
3450
|
-
this.scrollableHostService
|
3511
|
+
this.scrollableHostService
|
3512
|
+
.watchScrollableHost(this.el)
|
3451
3513
|
.pipe(operators.takeUntil(this.scrollableHostWatchUnsubscribe))
|
3452
3514
|
.subscribe(function (scrollableHost) {
|
3453
3515
|
var e_3, _a;
|
@@ -3458,10 +3520,12 @@
|
|
3458
3520
|
var viewkeeperEl = viewkeeperEls_1_1.value;
|
3459
3521
|
_this.viewkeepers.push(_this.viewkeeperSvc.create({
|
3460
3522
|
boundaryEl: _this.el.nativeElement,
|
3461
|
-
scrollableHost: scrollableHost instanceof HTMLElement
|
3523
|
+
scrollableHost: scrollableHost instanceof HTMLElement
|
3524
|
+
? scrollableHost
|
3525
|
+
: undefined,
|
3462
3526
|
el: viewkeeperEl,
|
3463
3527
|
setWidth: true,
|
3464
|
-
verticalOffsetEl: previousViewkeeperEl
|
3528
|
+
verticalOffsetEl: previousViewkeeperEl,
|
3465
3529
|
}));
|
3466
3530
|
previousViewkeeperEl = viewkeeperEl;
|
3467
3531
|
}
|
@@ -3479,12 +3543,12 @@
|
|
3479
3543
|
};
|
3480
3544
|
return SkyViewkeeperDirective;
|
3481
3545
|
}());
|
3482
|
-
SkyViewkeeperDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
3483
|
-
SkyViewkeeperDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.
|
3484
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
3546
|
+
SkyViewkeeperDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyViewkeeperDirective, deps: [{ token: i0__namespace.ElementRef }, { token: MutationObserverService }, { token: SkyViewkeeperService }, { token: SkyScrollableHostService, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
3547
|
+
SkyViewkeeperDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.14", type: SkyViewkeeperDirective, selector: "[skyViewkeeper]", inputs: { skyViewkeeper: "skyViewkeeper" }, ngImport: i0__namespace });
|
3548
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyViewkeeperDirective, decorators: [{
|
3485
3549
|
type: i0.Directive,
|
3486
3550
|
args: [{
|
3487
|
-
selector: '[skyViewkeeper]'
|
3551
|
+
selector: '[skyViewkeeper]',
|
3488
3552
|
}]
|
3489
3553
|
}], ctorParameters: function () {
|
3490
3554
|
return [{ type: i0__namespace.ElementRef }, { type: MutationObserverService }, { type: SkyViewkeeperService }, { type: SkyScrollableHostService, decorators: [{
|
@@ -3499,18 +3563,14 @@
|
|
3499
3563
|
}
|
3500
3564
|
return SkyViewkeeperModule;
|
3501
3565
|
}());
|
3502
|
-
SkyViewkeeperModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
3503
|
-
SkyViewkeeperModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
3504
|
-
SkyViewkeeperModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
3505
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
3566
|
+
SkyViewkeeperModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyViewkeeperModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
3567
|
+
SkyViewkeeperModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyViewkeeperModule, declarations: [SkyViewkeeperDirective], exports: [SkyViewkeeperDirective] });
|
3568
|
+
SkyViewkeeperModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyViewkeeperModule });
|
3569
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyViewkeeperModule, decorators: [{
|
3506
3570
|
type: i0.NgModule,
|
3507
3571
|
args: [{
|
3508
|
-
declarations: [
|
3509
|
-
|
3510
|
-
],
|
3511
|
-
exports: [
|
3512
|
-
SkyViewkeeperDirective
|
3513
|
-
]
|
3572
|
+
declarations: [SkyViewkeeperDirective],
|
3573
|
+
exports: [SkyViewkeeperDirective],
|
3514
3574
|
}]
|
3515
3575
|
}] });
|
3516
3576
|
|