@skyux/core 5.1.2 → 5.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bundles/skyux-core-testing.umd.js +27 -32
- package/bundles/skyux-core-testing.umd.js.map +1 -1
- package/bundles/skyux-core.umd.js +420 -369
- package/bundles/skyux-core.umd.js.map +1 -1
- package/documentation.json +541 -548
- package/esm2015/modules/adapter-service/adapter.module.js +5 -5
- package/esm2015/modules/adapter-service/adapter.service.js +9 -8
- package/esm2015/modules/adapter-service/focusable-children-options.js +1 -1
- package/esm2015/modules/affix/affix-auto-fit-context.js +1 -1
- package/esm2015/modules/affix/affix-config.js +1 -1
- package/esm2015/modules/affix/affix-offset-change.js +1 -1
- package/esm2015/modules/affix/affix-offset.js +1 -1
- package/esm2015/modules/affix/affix-placement-change.js +1 -1
- package/esm2015/modules/affix/affix-utils.js +3 -8
- package/esm2015/modules/affix/affix.directive.js +7 -7
- package/esm2015/modules/affix/affix.module.js +8 -16
- package/esm2015/modules/affix/affix.service.js +6 -6
- package/esm2015/modules/affix/affixer.js +21 -19
- package/esm2015/modules/affix/dom-utils.js +3 -4
- package/esm2015/modules/dock/dock-dom-adapter.service.js +8 -7
- package/esm2015/modules/dock/dock-insert-component-config.js +1 -1
- package/esm2015/modules/dock/dock-item-config.js +1 -1
- package/esm2015/modules/dock/dock-item-reference.js +1 -1
- package/esm2015/modules/dock/dock-item.js +1 -1
- package/esm2015/modules/dock/dock-location.js +1 -1
- package/esm2015/modules/dock/dock-options.js +1 -1
- package/esm2015/modules/dock/dock.component.js +13 -17
- package/esm2015/modules/dock/dock.module.js +9 -21
- package/esm2015/modules/dock/dock.service.js +6 -6
- package/esm2015/modules/dynamic-component/dynamic-component-location.js +1 -1
- package/esm2015/modules/dynamic-component/dynamic-component-options.js +1 -1
- package/esm2015/modules/dynamic-component/dynamic-component.module.js +5 -5
- package/esm2015/modules/dynamic-component/dynamic-component.service.js +7 -7
- package/esm2015/modules/format/app-format.js +5 -5
- package/esm2015/modules/id/id.directive.js +5 -5
- package/esm2015/modules/id/id.module.js +7 -11
- package/esm2015/modules/log/log.module.js +5 -5
- package/esm2015/modules/log/log.service.js +5 -5
- package/esm2015/modules/media-query/media-breakpoints.js +1 -1
- package/esm2015/modules/media-query/media-query-listener.js +1 -1
- package/esm2015/modules/media-query/media-query.module.js +5 -5
- package/esm2015/modules/media-query/media-query.service.js +12 -12
- package/esm2015/modules/mutation/mutation-observer-service.js +5 -5
- package/esm2015/modules/numeric/numeric.module.js +9 -24
- package/esm2015/modules/numeric/numeric.options.js +1 -1
- package/esm2015/modules/numeric/numeric.pipe.js +12 -14
- package/esm2015/modules/numeric/numeric.service.js +16 -15
- package/esm2015/modules/overlay/overlay-adapter.service.js +5 -5
- package/esm2015/modules/overlay/overlay-config.js +1 -1
- package/esm2015/modules/overlay/overlay-context.js +1 -1
- package/esm2015/modules/overlay/overlay-instance.js +1 -1
- package/esm2015/modules/overlay/overlay.component.js +11 -11
- package/esm2015/modules/overlay/overlay.module.js +8 -16
- package/esm2015/modules/overlay/overlay.service.js +13 -11
- package/esm2015/modules/percent-pipe/percent-pipe.module.js +9 -24
- package/esm2015/modules/percent-pipe/percent.pipe.js +7 -6
- package/esm2015/modules/scrollable-host/scrollable-host.service.js +96 -25
- package/esm2015/modules/shared/number-format/number-format-utility.js +8 -5
- package/esm2015/modules/shared/sky-core-resources.module.js +21 -12
- package/esm2015/modules/title/set-title-args.js +1 -1
- package/esm2015/modules/title/title.service.js +5 -5
- package/esm2015/modules/ui-config/ui-config.service.js +5 -5
- package/esm2015/modules/viewkeeper/viewkeeper-boundary-info.js +1 -1
- package/esm2015/modules/viewkeeper/viewkeeper-host-options.js +4 -4
- package/esm2015/modules/viewkeeper/viewkeeper.directive.js +14 -11
- package/esm2015/modules/viewkeeper/viewkeeper.js +36 -15
- package/esm2015/modules/viewkeeper/viewkeeper.module.js +7 -11
- package/esm2015/modules/viewkeeper/viewkeeper.service.js +5 -5
- package/esm2015/modules/window/window-ref.js +5 -5
- package/esm2015/testing/mock-media-query.service.js +7 -7
- package/esm2015/testing/mock-ui-config.service.js +18 -21
- package/fesm2015/skyux-core-testing.js +22 -25
- package/fesm2015/skyux-core-testing.js.map +1 -1
- package/fesm2015/skyux-core.js +400 -363
- package/fesm2015/skyux-core.js.map +1 -1
- package/modules/scrollable-host/scrollable-host.service.d.ts +25 -6
- package/modules/viewkeeper/viewkeeper.d.ts +3 -1
- package/package.json +6 -6
@@ -2,7 +2,7 @@
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('rxjs'), require('rxjs/operators'), require('@skyux/i18n'), require('@angular/router'), require('@angular/platform-browser')) :
|
3
3
|
typeof define === 'function' && define.amd ? define('@skyux/core', ['exports', '@angular/core', '@angular/common', 'rxjs', 'rxjs/operators', '@skyux/i18n', '@angular/router', '@angular/platform-browser'], factory) :
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.skyux = global.skyux || {}, global.skyux.core = {}), global.ng.core, global.ng.common, global.rxjs, global.rxjs.operators, global.i1, global.ng.router, global.ng.platformBrowser));
|
5
|
-
}(this, (function (exports, i0, i4, rxjs, operators, i1, i3, i1$1) { 'use strict';
|
5
|
+
})(this, (function (exports, i0, i4, rxjs, operators, i1, i3, i1$1) { 'use strict';
|
6
6
|
|
7
7
|
function _interopNamespace(e) {
|
8
8
|
if (e && e.__esModule) return e;
|
@@ -13,14 +13,12 @@
|
|
13
13
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
14
14
|
Object.defineProperty(n, k, d.get ? d : {
|
15
15
|
enumerable: true,
|
16
|
-
get: function () {
|
17
|
-
return e[k];
|
18
|
-
}
|
16
|
+
get: function () { return e[k]; }
|
19
17
|
});
|
20
18
|
}
|
21
19
|
});
|
22
20
|
}
|
23
|
-
n[
|
21
|
+
n["default"] = e;
|
24
22
|
return Object.freeze(n);
|
25
23
|
}
|
26
24
|
|
@@ -39,10 +37,10 @@
|
|
39
37
|
}
|
40
38
|
return SkyCoreAdapterModule;
|
41
39
|
}());
|
42
|
-
SkyCoreAdapterModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
43
|
-
SkyCoreAdapterModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
44
|
-
SkyCoreAdapterModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
45
|
-
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: [{
|
46
44
|
type: i0.NgModule,
|
47
45
|
args: [{}]
|
48
46
|
}] });
|
@@ -78,7 +76,7 @@
|
|
78
76
|
'object',
|
79
77
|
'embed',
|
80
78
|
'*[contenteditable=true]:not([disabled])',
|
81
|
-
'*[tabindex]:not([disabled])'
|
79
|
+
'*[tabindex]:not([disabled])',
|
82
80
|
].join(', ');
|
83
81
|
var SkyCoreAdapterService = /** @class */ (function () {
|
84
82
|
function SkyCoreAdapterService(rendererFactory) {
|
@@ -164,7 +162,8 @@
|
|
164
162
|
var containerElement = elementRef.nativeElement.querySelector(containerSelector);
|
165
163
|
var focusableChildren = this.getFocusableChildren(containerElement);
|
166
164
|
// Focus first focusable child if available. Otherwise, set focus on container.
|
167
|
-
if (!this.focusFirstElement(focusableChildren) &&
|
165
|
+
if (!this.focusFirstElement(focusableChildren) &&
|
166
|
+
focusOnContainerIfNoChildrenFound) {
|
168
167
|
containerElement.focus();
|
169
168
|
}
|
170
169
|
};
|
@@ -275,12 +274,12 @@
|
|
275
274
|
};
|
276
275
|
return SkyCoreAdapterService;
|
277
276
|
}());
|
278
|
-
SkyCoreAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
279
|
-
SkyCoreAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
280
|
-
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: [{
|
281
280
|
type: i0.Injectable,
|
282
281
|
args: [{
|
283
|
-
providedIn: 'root'
|
282
|
+
providedIn: 'root',
|
284
283
|
}]
|
285
284
|
}], ctorParameters: function () { return [{ type: i0__namespace.RendererFactory2 }]; } });
|
286
285
|
|
@@ -297,12 +296,7 @@
|
|
297
296
|
})(exports.SkyAffixAutoFitContext || (exports.SkyAffixAutoFitContext = {}));
|
298
297
|
|
299
298
|
function getNextPlacement(placement) {
|
300
|
-
var placements = [
|
301
|
-
'above',
|
302
|
-
'right',
|
303
|
-
'below',
|
304
|
-
'left'
|
305
|
-
];
|
299
|
+
var placements = ['above', 'right', 'below', 'left'];
|
306
300
|
var index = placements.indexOf(placement) + 1;
|
307
301
|
if (index >= placements.length) {
|
308
302
|
index = 0;
|
@@ -314,7 +308,7 @@
|
|
314
308
|
above: 'below',
|
315
309
|
below: 'above',
|
316
310
|
right: 'left',
|
317
|
-
left: 'right'
|
311
|
+
left: 'right',
|
318
312
|
};
|
319
313
|
return pairings[placement];
|
320
314
|
}
|
@@ -355,7 +349,7 @@
|
|
355
349
|
bottom: bottom,
|
356
350
|
left: left,
|
357
351
|
right: right,
|
358
|
-
top: top
|
352
|
+
top: top,
|
359
353
|
};
|
360
354
|
}
|
361
355
|
function getOverflowParents(child) {
|
@@ -367,8 +361,7 @@
|
|
367
361
|
parentElement instanceof HTMLElement) {
|
368
362
|
var overflowY = window
|
369
363
|
.getComputedStyle(parentElement, undefined)
|
370
|
-
.overflowY
|
371
|
-
.toLowerCase();
|
364
|
+
.overflowY.toLowerCase();
|
372
365
|
if (overflowY === 'auto' ||
|
373
366
|
overflowY === 'hidden' ||
|
374
367
|
overflowY === 'scroll') {
|
@@ -403,7 +396,7 @@
|
|
403
396
|
enableAutoFit: false,
|
404
397
|
horizontalAlignment: 'center',
|
405
398
|
isSticky: false,
|
406
|
-
placement: 'above'
|
399
|
+
placement: 'above',
|
407
400
|
};
|
408
401
|
var SkyAffixer = /** @class */ (function () {
|
409
402
|
function SkyAffixer(affixedElement, renderer) {
|
@@ -497,7 +490,8 @@
|
|
497
490
|
this._overflowScroll.complete();
|
498
491
|
this._offsetChange =
|
499
492
|
this._placementChange =
|
500
|
-
this._overflowScroll =
|
493
|
+
this._overflowScroll =
|
494
|
+
undefined;
|
501
495
|
};
|
502
496
|
SkyAffixer.prototype.affix = function () {
|
503
497
|
this.baseRect = this.baseElement.getBoundingClientRect();
|
@@ -523,9 +517,10 @@
|
|
523
517
|
break;
|
524
518
|
}
|
525
519
|
if (!isAffixedElementFullyVisible) {
|
526
|
-
placement =
|
527
|
-
|
528
|
-
|
520
|
+
placement =
|
521
|
+
attempts % 2 === 0
|
522
|
+
? getInversePlacement(placement)
|
523
|
+
: getNextPlacement(placement);
|
529
524
|
}
|
530
525
|
attempts++;
|
531
526
|
} while (!isAffixedElementFullyVisible && attempts < maxAttempts);
|
@@ -562,7 +557,7 @@
|
|
562
557
|
top = top + affixedRect.height;
|
563
558
|
break;
|
564
559
|
case 'middle':
|
565
|
-
top = top +
|
560
|
+
top = top + affixedRect.height / 2;
|
566
561
|
break;
|
567
562
|
case 'bottom':
|
568
563
|
default:
|
@@ -576,7 +571,7 @@
|
|
576
571
|
default:
|
577
572
|
break;
|
578
573
|
case 'middle':
|
579
|
-
top = top -
|
574
|
+
top = top - affixedRect.height / 2;
|
580
575
|
break;
|
581
576
|
case 'bottom':
|
582
577
|
top = top - affixedRect.height;
|
@@ -589,7 +584,7 @@
|
|
589
584
|
break;
|
590
585
|
case 'center':
|
591
586
|
default:
|
592
|
-
left = baseRect.left +
|
587
|
+
left = baseRect.left + baseRect.width / 2 - affixedRect.width / 2;
|
593
588
|
break;
|
594
589
|
case 'right':
|
595
590
|
left = baseRect.right - affixedRect.width;
|
@@ -609,7 +604,7 @@
|
|
609
604
|
break;
|
610
605
|
case 'middle':
|
611
606
|
default:
|
612
|
-
top = baseRect.top +
|
607
|
+
top = baseRect.top + baseRect.height / 2 - affixedRect.height / 2;
|
613
608
|
break;
|
614
609
|
case 'bottom':
|
615
610
|
top = baseRect.bottom - affixedRect.height;
|
@@ -685,7 +680,7 @@
|
|
685
680
|
};
|
686
681
|
SkyAffixer.prototype.getAutoFitContextParent = function () {
|
687
682
|
var bodyElement = this.overflowParents[0];
|
688
|
-
return
|
683
|
+
return this.config.autoFitContext === exports.SkyAffixAutoFitContext.OverflowParent
|
689
684
|
? this.getImmediateOverflowParent()
|
690
685
|
: bodyElement;
|
691
686
|
};
|
@@ -693,7 +688,7 @@
|
|
693
688
|
if (this.currentPlacement !== placement) {
|
694
689
|
this.currentPlacement = placement;
|
695
690
|
this._placementChange.next({
|
696
|
-
placement: placement
|
691
|
+
placement: placement,
|
697
692
|
});
|
698
693
|
}
|
699
694
|
};
|
@@ -706,7 +701,8 @@
|
|
706
701
|
this.baseRect =
|
707
702
|
this.currentPlacement =
|
708
703
|
this.currentOffset =
|
709
|
-
this.overflowParents =
|
704
|
+
this.overflowParents =
|
705
|
+
undefined;
|
710
706
|
};
|
711
707
|
SkyAffixer.prototype.isNewOffset = function (offset) {
|
712
708
|
if (this.currentOffset === undefined) {
|
@@ -725,13 +721,13 @@
|
|
725
721
|
top: this.baseRect.top,
|
726
722
|
left: this.baseRect.left,
|
727
723
|
right: this.baseRect.right,
|
728
|
-
bottom: this.baseRect.bottom
|
724
|
+
bottom: this.baseRect.bottom,
|
729
725
|
}, this.config.autoFitOverflowOffset);
|
730
726
|
};
|
731
727
|
SkyAffixer.prototype.addScrollListeners = function () {
|
732
728
|
var _this = this;
|
733
729
|
this.scrollListeners = this.overflowParents.map(function (parentElement) {
|
734
|
-
var overflow =
|
730
|
+
var overflow = parentElement === document.body ? 'window' : parentElement;
|
735
731
|
return _this.renderer.listen(overflow, 'scroll', function () {
|
736
732
|
_this.affix();
|
737
733
|
_this._overflowScroll.next();
|
@@ -740,8 +736,7 @@
|
|
740
736
|
};
|
741
737
|
SkyAffixer.prototype.addResizeListener = function () {
|
742
738
|
var _this = this;
|
743
|
-
this.resizeListener = rxjs.fromEvent(window, 'resize')
|
744
|
-
.subscribe(function () { return _this.affix(); });
|
739
|
+
this.resizeListener = rxjs.fromEvent(window, 'resize').subscribe(function () { return _this.affix(); });
|
745
740
|
};
|
746
741
|
SkyAffixer.prototype.removeResizeListener = function () {
|
747
742
|
if (this.resizeListener) {
|
@@ -773,12 +768,12 @@
|
|
773
768
|
};
|
774
769
|
return SkyAffixService;
|
775
770
|
}());
|
776
|
-
SkyAffixService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
777
|
-
SkyAffixService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
778
|
-
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: [{
|
779
774
|
type: i0.Injectable,
|
780
775
|
args: [{
|
781
|
-
providedIn: 'root'
|
776
|
+
providedIn: 'root',
|
782
777
|
}]
|
783
778
|
}], ctorParameters: function () { return [{ type: i0__namespace.RendererFactory2 }]; } });
|
784
779
|
|
@@ -841,17 +836,17 @@
|
|
841
836
|
horizontalAlignment: this.affixHorizontalAlignment,
|
842
837
|
isSticky: this.affixIsSticky,
|
843
838
|
placement: this.affixPlacement,
|
844
|
-
verticalAlignment: this.affixVerticalAlignment
|
839
|
+
verticalAlignment: this.affixVerticalAlignment,
|
845
840
|
});
|
846
841
|
};
|
847
842
|
return SkyAffixDirective;
|
848
843
|
}());
|
849
|
-
SkyAffixDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
850
|
-
SkyAffixDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.
|
851
|
-
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: [{
|
852
847
|
type: i0.Directive,
|
853
848
|
args: [{
|
854
|
-
selector: '[skyAffixTo]'
|
849
|
+
selector: '[skyAffixTo]',
|
855
850
|
}]
|
856
851
|
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: SkyAffixService }]; }, propDecorators: { skyAffixTo: [{
|
857
852
|
type: i0.Input
|
@@ -882,23 +877,15 @@
|
|
882
877
|
}
|
883
878
|
return SkyAffixModule;
|
884
879
|
}());
|
885
|
-
SkyAffixModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
886
|
-
SkyAffixModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
887
|
-
SkyAffixModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
888
|
-
|
889
|
-
]] });
|
890
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", 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: [{
|
891
884
|
type: i0.NgModule,
|
892
885
|
args: [{
|
893
|
-
imports: [
|
894
|
-
|
895
|
-
],
|
896
|
-
exports: [
|
897
|
-
SkyAffixDirective
|
898
|
-
],
|
899
|
-
declarations: [
|
900
|
-
SkyAffixDirective
|
901
|
-
]
|
886
|
+
imports: [i4.CommonModule],
|
887
|
+
exports: [SkyAffixDirective],
|
888
|
+
declarations: [SkyAffixDirective],
|
902
889
|
}]
|
903
890
|
}] });
|
904
891
|
|
@@ -962,12 +949,12 @@
|
|
962
949
|
};
|
963
950
|
return MutationObserverService;
|
964
951
|
}());
|
965
|
-
MutationObserverService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
966
|
-
MutationObserverService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
967
|
-
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: [{
|
968
955
|
type: i0.Injectable,
|
969
956
|
args: [{
|
970
|
-
providedIn: 'root'
|
957
|
+
providedIn: 'root',
|
971
958
|
}]
|
972
959
|
}] });
|
973
960
|
|
@@ -991,7 +978,8 @@
|
|
991
978
|
this.currentDockHeight =
|
992
979
|
this.ngUnsubscribe =
|
993
980
|
this.observer =
|
994
|
-
this.styleElement =
|
981
|
+
this.styleElement =
|
982
|
+
undefined;
|
995
983
|
};
|
996
984
|
SkyDockDomAdapterService.prototype.setSticky = function (elementRef) {
|
997
985
|
this.renderer.addClass(elementRef.nativeElement, 'sky-dock-sticky');
|
@@ -1011,7 +999,7 @@
|
|
1011
999
|
attributes: true,
|
1012
1000
|
childList: true,
|
1013
1001
|
characterData: true,
|
1014
|
-
subtree: true
|
1002
|
+
subtree: true,
|
1015
1003
|
});
|
1016
1004
|
rxjs.fromEvent(window, 'resize')
|
1017
1005
|
.pipe(operators.debounceTime(250), operators.takeUntil(this.ngUnsubscribe))
|
@@ -1040,9 +1028,9 @@
|
|
1040
1028
|
};
|
1041
1029
|
return SkyDockDomAdapterService;
|
1042
1030
|
}());
|
1043
|
-
SkyDockDomAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1044
|
-
SkyDockDomAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1045
|
-
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: [{
|
1046
1034
|
type: i0.Injectable
|
1047
1035
|
}], ctorParameters: function () { return [{ type: MutationObserverService }, { type: i0__namespace.RendererFactory2 }]; } });
|
1048
1036
|
|
@@ -1076,21 +1064,21 @@
|
|
1076
1064
|
var factory = this.resolver.resolveComponentFactory(component);
|
1077
1065
|
var injector = i0.Injector.create({
|
1078
1066
|
providers: config.providers || [],
|
1079
|
-
parent: this.injector
|
1067
|
+
parent: this.injector,
|
1080
1068
|
});
|
1081
1069
|
var componentRef = this.target.createComponent(factory, undefined, injector);
|
1082
|
-
var stackOrder =
|
1070
|
+
var stackOrder = config.stackOrder !== null && config.stackOrder !== undefined
|
1083
1071
|
? config.stackOrder
|
1084
1072
|
: this.getHighestStackOrder();
|
1085
1073
|
this.itemRefs.push({
|
1086
1074
|
componentRef: componentRef,
|
1087
|
-
stackOrder: stackOrder
|
1075
|
+
stackOrder: stackOrder,
|
1088
1076
|
});
|
1089
1077
|
this.sortItemsByStackOrder();
|
1090
1078
|
this.changeDetector.markForCheck();
|
1091
1079
|
return {
|
1092
1080
|
componentRef: componentRef,
|
1093
|
-
stackOrder: stackOrder
|
1081
|
+
stackOrder: stackOrder,
|
1094
1082
|
};
|
1095
1083
|
};
|
1096
1084
|
SkyDockComponent.prototype.removeItem = function (item) {
|
@@ -1132,26 +1120,22 @@
|
|
1132
1120
|
};
|
1133
1121
|
return SkyDockComponent;
|
1134
1122
|
}());
|
1135
|
-
SkyDockComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1136
|
-
SkyDockComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
1137
|
-
|
1138
|
-
], 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 });
|
1139
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", 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: [{
|
1140
1126
|
type: i0.Component,
|
1141
1127
|
args: [{
|
1142
1128
|
selector: 'sky-dock',
|
1143
|
-
|
1144
|
-
|
1145
|
-
providers: [
|
1146
|
-
|
1147
|
-
],
|
1148
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
1129
|
+
template: "<ng-container #target></ng-container>\n",
|
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"],
|
1131
|
+
providers: [SkyDockDomAdapterService],
|
1132
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
1149
1133
|
}]
|
1150
1134
|
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.ComponentFactoryResolver }, { type: i0__namespace.ElementRef }, { type: i0__namespace.Injector }, { type: SkyDockDomAdapterService }]; }, propDecorators: { target: [{
|
1151
1135
|
type: i0.ViewChild,
|
1152
1136
|
args: ['target', {
|
1153
1137
|
read: i0.ViewContainerRef,
|
1154
|
-
static: true
|
1138
|
+
static: true,
|
1155
1139
|
}]
|
1156
1140
|
}] } });
|
1157
1141
|
|
@@ -1160,28 +1144,16 @@
|
|
1160
1144
|
}
|
1161
1145
|
return SkyDockModule;
|
1162
1146
|
}());
|
1163
|
-
SkyDockModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1164
|
-
SkyDockModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
1165
|
-
SkyDockModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
1166
|
-
|
1167
|
-
], imports: [[
|
1168
|
-
i4.CommonModule
|
1169
|
-
]] });
|
1170
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", 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: [{
|
1171
1151
|
type: i0.NgModule,
|
1172
1152
|
args: [{
|
1173
|
-
imports: [
|
1174
|
-
|
1175
|
-
],
|
1176
|
-
|
1177
|
-
SkyDockComponent
|
1178
|
-
],
|
1179
|
-
entryComponents: [
|
1180
|
-
SkyDockComponent
|
1181
|
-
],
|
1182
|
-
providers: [
|
1183
|
-
MutationObserverService
|
1184
|
-
]
|
1153
|
+
imports: [i4.CommonModule],
|
1154
|
+
declarations: [SkyDockComponent],
|
1155
|
+
entryComponents: [SkyDockComponent],
|
1156
|
+
providers: [MutationObserverService],
|
1185
1157
|
}]
|
1186
1158
|
}] });
|
1187
1159
|
|
@@ -1238,12 +1210,12 @@
|
|
1238
1210
|
});
|
1239
1211
|
return SkyAppWindowRef;
|
1240
1212
|
}());
|
1241
|
-
SkyAppWindowRef.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1242
|
-
SkyAppWindowRef.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1243
|
-
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: [{
|
1244
1216
|
type: i0.Injectable,
|
1245
1217
|
args: [{
|
1246
|
-
providedIn: 'root'
|
1218
|
+
providedIn: 'root',
|
1247
1219
|
}]
|
1248
1220
|
}] });
|
1249
1221
|
|
@@ -1269,7 +1241,7 @@
|
|
1269
1241
|
*/
|
1270
1242
|
SkyDynamicComponentService.prototype.createComponent = function (componentType, options) {
|
1271
1243
|
options = options || {
|
1272
|
-
location: exports.SkyDynamicComponentLocation.BodyBottom
|
1244
|
+
location: exports.SkyDynamicComponentLocation.BodyBottom,
|
1273
1245
|
};
|
1274
1246
|
var componentRef = this.componentFactoryResolver
|
1275
1247
|
.resolveComponentFactory(componentType)
|
@@ -1314,15 +1286,15 @@
|
|
1314
1286
|
};
|
1315
1287
|
return SkyDynamicComponentService;
|
1316
1288
|
}());
|
1317
|
-
SkyDynamicComponentService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1318
|
-
SkyDynamicComponentService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1319
|
-
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: [{
|
1320
1292
|
type: i0.Injectable,
|
1321
1293
|
args: [{
|
1322
1294
|
// Must be 'any' so that the component is created in the context of its module's injector.
|
1323
1295
|
// If set to 'root', the component's dependency injections would only be derived from the root
|
1324
1296
|
// injector and may loose context if the component is created within a lazy-loaded module.
|
1325
|
-
providedIn: 'any'
|
1297
|
+
providedIn: 'any',
|
1326
1298
|
}]
|
1327
1299
|
}], ctorParameters: function () { return [{ type: i0__namespace.ComponentFactoryResolver }, { type: i0__namespace.ApplicationRef }, { type: i0__namespace.Injector }, { type: SkyAppWindowRef }, { type: i0__namespace.RendererFactory2 }]; } });
|
1328
1300
|
|
@@ -1394,7 +1366,7 @@
|
|
1394
1366
|
}
|
1395
1367
|
dockOptions = {
|
1396
1368
|
location: dynamicLocation,
|
1397
|
-
referenceEl: this.options.referenceEl
|
1369
|
+
referenceEl: this.options.referenceEl,
|
1398
1370
|
};
|
1399
1371
|
}
|
1400
1372
|
this.dockRef = this.dynamicComponentService.createComponent(SkyDockComponent, dockOptions);
|
@@ -1406,12 +1378,12 @@
|
|
1406
1378
|
};
|
1407
1379
|
return SkyDockService;
|
1408
1380
|
}());
|
1409
|
-
SkyDockService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1410
|
-
SkyDockService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1411
|
-
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: [{
|
1412
1384
|
type: i0.Injectable,
|
1413
1385
|
args: [{
|
1414
|
-
providedIn: 'root'
|
1386
|
+
providedIn: 'root',
|
1415
1387
|
}]
|
1416
1388
|
}], ctorParameters: function () { return [{ type: SkyDynamicComponentService }]; } });
|
1417
1389
|
|
@@ -1425,10 +1397,10 @@
|
|
1425
1397
|
}
|
1426
1398
|
return SkyDynamicComponentModule;
|
1427
1399
|
}());
|
1428
|
-
SkyDynamicComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1429
|
-
SkyDynamicComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
1430
|
-
SkyDynamicComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
1431
|
-
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: [{
|
1432
1404
|
type: i0.NgModule,
|
1433
1405
|
args: [{}]
|
1434
1406
|
}] });
|
@@ -1447,12 +1419,12 @@
|
|
1447
1419
|
};
|
1448
1420
|
return SkyAppFormat;
|
1449
1421
|
}());
|
1450
|
-
SkyAppFormat.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1451
|
-
SkyAppFormat.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1452
|
-
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: [{
|
1453
1425
|
type: i0.Injectable,
|
1454
1426
|
args: [{
|
1455
|
-
providedIn: 'root'
|
1427
|
+
providedIn: 'root',
|
1456
1428
|
}]
|
1457
1429
|
}] });
|
1458
1430
|
|
@@ -1483,13 +1455,13 @@
|
|
1483
1455
|
});
|
1484
1456
|
return SkyIdDirective;
|
1485
1457
|
}());
|
1486
|
-
SkyIdDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1487
|
-
SkyIdDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.
|
1488
|
-
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: [{
|
1489
1461
|
type: i0.Directive,
|
1490
1462
|
args: [{
|
1491
1463
|
selector: '[skyId]',
|
1492
|
-
exportAs: 'skyId'
|
1464
|
+
exportAs: 'skyId',
|
1493
1465
|
}]
|
1494
1466
|
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.Renderer2 }]; } });
|
1495
1467
|
|
@@ -1498,18 +1470,14 @@
|
|
1498
1470
|
}
|
1499
1471
|
return SkyIdModule;
|
1500
1472
|
}());
|
1501
|
-
SkyIdModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1502
|
-
SkyIdModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
1503
|
-
SkyIdModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
1504
|
-
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: [{
|
1505
1477
|
type: i0.NgModule,
|
1506
1478
|
args: [{
|
1507
|
-
declarations: [
|
1508
|
-
|
1509
|
-
],
|
1510
|
-
exports: [
|
1511
|
-
SkyIdDirective
|
1512
|
-
]
|
1479
|
+
declarations: [SkyIdDirective],
|
1480
|
+
exports: [SkyIdDirective],
|
1513
1481
|
}]
|
1514
1482
|
}] });
|
1515
1483
|
|
@@ -1522,10 +1490,10 @@
|
|
1522
1490
|
}
|
1523
1491
|
return SkyLogModule;
|
1524
1492
|
}());
|
1525
|
-
SkyLogModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1526
|
-
SkyLogModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
1527
|
-
SkyLogModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
1528
|
-
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: [{
|
1529
1497
|
type: i0.NgModule,
|
1530
1498
|
args: [{}]
|
1531
1499
|
}] });
|
@@ -1548,12 +1516,12 @@
|
|
1548
1516
|
};
|
1549
1517
|
return SkyLogService;
|
1550
1518
|
}());
|
1551
|
-
SkyLogService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1552
|
-
SkyLogService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1553
|
-
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: [{
|
1554
1522
|
type: i0.Injectable,
|
1555
1523
|
args: [{
|
1556
|
-
providedIn: 'root'
|
1524
|
+
providedIn: 'root',
|
1557
1525
|
}]
|
1558
1526
|
}] });
|
1559
1527
|
|
@@ -1566,10 +1534,10 @@
|
|
1566
1534
|
}
|
1567
1535
|
return SkyMediaQueryModule;
|
1568
1536
|
}());
|
1569
|
-
SkyMediaQueryModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1570
|
-
SkyMediaQueryModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
1571
|
-
SkyMediaQueryModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
1572
|
-
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: [{
|
1573
1541
|
type: i0.NgModule,
|
1574
1542
|
args: [{}]
|
1575
1543
|
}] });
|
@@ -1582,20 +1550,20 @@
|
|
1582
1550
|
this.breakpoints = [
|
1583
1551
|
{
|
1584
1552
|
mediaQueryString: SkyMediaQueryService.xs,
|
1585
|
-
name: exports.SkyMediaBreakpoints.xs
|
1553
|
+
name: exports.SkyMediaBreakpoints.xs,
|
1586
1554
|
},
|
1587
1555
|
{
|
1588
1556
|
mediaQueryString: SkyMediaQueryService.sm,
|
1589
|
-
name: exports.SkyMediaBreakpoints.sm
|
1557
|
+
name: exports.SkyMediaBreakpoints.sm,
|
1590
1558
|
},
|
1591
1559
|
{
|
1592
1560
|
mediaQueryString: SkyMediaQueryService.md,
|
1593
|
-
name: exports.SkyMediaBreakpoints.md
|
1561
|
+
name: exports.SkyMediaBreakpoints.md,
|
1594
1562
|
},
|
1595
1563
|
{
|
1596
1564
|
mediaQueryString: SkyMediaQueryService.lg,
|
1597
|
-
name: exports.SkyMediaBreakpoints.lg
|
1598
|
-
}
|
1565
|
+
name: exports.SkyMediaBreakpoints.lg,
|
1566
|
+
},
|
1599
1567
|
];
|
1600
1568
|
this.mediaQueries = [];
|
1601
1569
|
this.addListeners();
|
@@ -1622,7 +1590,7 @@
|
|
1622
1590
|
return this.currentSubject.subscribe({
|
1623
1591
|
next: function (breakpoints) {
|
1624
1592
|
listener(breakpoints);
|
1625
|
-
}
|
1593
|
+
},
|
1626
1594
|
});
|
1627
1595
|
};
|
1628
1596
|
/**
|
@@ -1652,7 +1620,7 @@
|
|
1652
1620
|
}
|
1653
1621
|
return {
|
1654
1622
|
mediaQueryList: mq,
|
1655
|
-
listener: listener
|
1623
|
+
listener: listener,
|
1656
1624
|
};
|
1657
1625
|
});
|
1658
1626
|
};
|
@@ -1684,12 +1652,12 @@
|
|
1684
1652
|
* The size for the `lg` breakpoint.
|
1685
1653
|
*/
|
1686
1654
|
SkyMediaQueryService.lg = '(min-width: 1200px)';
|
1687
|
-
SkyMediaQueryService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1688
|
-
SkyMediaQueryService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1689
|
-
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: [{
|
1690
1658
|
type: i0.Injectable,
|
1691
1659
|
args: [{
|
1692
|
-
providedIn: 'root'
|
1660
|
+
providedIn: 'root',
|
1693
1661
|
}]
|
1694
1662
|
}], ctorParameters: function () { return [{ type: i0__namespace.NgZone }]; } });
|
1695
1663
|
|
@@ -1700,7 +1668,12 @@
|
|
1700
1668
|
* To update this file, simply rerun the command.
|
1701
1669
|
*/
|
1702
1670
|
var RESOURCES = {
|
1703
|
-
'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
|
+
},
|
1704
1677
|
};
|
1705
1678
|
var SkyCoreResourcesProvider = /** @class */ (function () {
|
1706
1679
|
function SkyCoreResourcesProvider() {
|
@@ -1718,22 +1691,26 @@
|
|
1718
1691
|
}
|
1719
1692
|
return SkyCoreResourcesModule;
|
1720
1693
|
}());
|
1721
|
-
SkyCoreResourcesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1722
|
-
SkyCoreResourcesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
1723
|
-
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
|
+
{
|
1724
1698
|
provide: i1.SKY_LIB_RESOURCES_PROVIDERS,
|
1725
1699
|
useClass: SkyCoreResourcesProvider,
|
1726
|
-
multi: true
|
1727
|
-
}
|
1728
|
-
|
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: [{
|
1729
1704
|
type: i0.NgModule,
|
1730
1705
|
args: [{
|
1731
1706
|
exports: [i1.SkyI18nModule],
|
1732
|
-
providers: [
|
1707
|
+
providers: [
|
1708
|
+
{
|
1733
1709
|
provide: i1.SKY_LIB_RESOURCES_PROVIDERS,
|
1734
1710
|
useClass: SkyCoreResourcesProvider,
|
1735
|
-
multi: true
|
1736
|
-
}
|
1711
|
+
multi: true,
|
1712
|
+
},
|
1713
|
+
],
|
1737
1714
|
}]
|
1738
1715
|
}] });
|
1739
1716
|
|
@@ -2014,7 +1991,7 @@
|
|
2014
1991
|
ar[i] = from[i];
|
2015
1992
|
}
|
2016
1993
|
}
|
2017
|
-
return to.concat(ar || from);
|
1994
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
2018
1995
|
}
|
2019
1996
|
function __await(v) {
|
2020
1997
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
@@ -2142,15 +2119,18 @@
|
|
2142
2119
|
throw new Error(digits + " is not a valid digit info for number pipes");
|
2143
2120
|
}
|
2144
2121
|
/* istanbul ignore else */
|
2145
|
-
if (parts[1] != null) {
|
2122
|
+
if (parts[1] != null) {
|
2123
|
+
// min integer digits
|
2146
2124
|
minInt = parseIntAutoRadix(parts[1]);
|
2147
2125
|
}
|
2148
2126
|
/* istanbul ignore else */
|
2149
|
-
if (parts[3] != null) {
|
2127
|
+
if (parts[3] != null) {
|
2128
|
+
// min fraction digits
|
2150
2129
|
minFraction = parseIntAutoRadix(parts[3]);
|
2151
2130
|
}
|
2152
2131
|
/* istanbul ignore else */
|
2153
|
-
if (parts[5] != null) {
|
2132
|
+
if (parts[5] != null) {
|
2133
|
+
// max fraction digits
|
2154
2134
|
maxFraction = parseIntAutoRadix(parts[5]);
|
2155
2135
|
}
|
2156
2136
|
}
|
@@ -2160,7 +2140,7 @@
|
|
2160
2140
|
maximumFractionDigits: maxFraction,
|
2161
2141
|
currency: currency,
|
2162
2142
|
currencyAsSymbol: currencyAsSymbol,
|
2163
|
-
currencySign: currencySign
|
2143
|
+
currencySign: currencySign,
|
2164
2144
|
});
|
2165
2145
|
};
|
2166
2146
|
return SkyNumberFormatUtility;
|
@@ -2171,10 +2151,10 @@
|
|
2171
2151
|
function SkyNumericService(resourcesService) {
|
2172
2152
|
this.resourcesService = resourcesService;
|
2173
2153
|
this.symbolIndex = [
|
2174
|
-
{ value:
|
2175
|
-
{ value:
|
2176
|
-
{ value:
|
2177
|
-
{ 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') },
|
2178
2158
|
];
|
2179
2159
|
}
|
2180
2160
|
Object.defineProperty(SkyNumericService.prototype, "currentLocale", {
|
@@ -2211,8 +2191,9 @@
|
|
2211
2191
|
for (var i = 0; i < this.symbolIndex.length; i++) {
|
2212
2192
|
var symbol = this.symbolIndex[i];
|
2213
2193
|
if (options.truncate &&
|
2214
|
-
roundedNumberAbs >= options.truncateAfter &&
|
2215
|
-
|
2194
|
+
roundedNumberAbs >= options.truncateAfter &&
|
2195
|
+
roundedNumberAbs >= symbol.value) {
|
2196
|
+
roundedNumber = this.roundNumber(value / symbol.value, options.digits);
|
2216
2197
|
if (Math.abs(roundedNumber) === 1000 && i > 0) {
|
2217
2198
|
// Rounding caused the number to cross into the range of the next symbol.
|
2218
2199
|
symbol = this.symbolIndex[i - 1];
|
@@ -2234,7 +2215,7 @@
|
|
2234
2215
|
// Note: This will need to be reviewed if we support currencies with
|
2235
2216
|
// three decimal digits.
|
2236
2217
|
case 'currency':
|
2237
|
-
var isDecimal =
|
2218
|
+
var isDecimal = value % 1 !== 0;
|
2238
2219
|
if (options.minDigits) {
|
2239
2220
|
digits = "1." + options.minDigits + "-" + options.digits;
|
2240
2221
|
}
|
@@ -2309,7 +2290,7 @@
|
|
2309
2290
|
var isExponentFormat = valueStr.includes('e');
|
2310
2291
|
if (isExponentFormat) {
|
2311
2292
|
var _b = __read(valueStr.split('e'), 2), base = _b[0], exp = _b[1];
|
2312
|
-
var newExp = scaleUp ?
|
2293
|
+
var newExp = scaleUp ? Number(exp) + scalar : Number(exp) - scalar;
|
2313
2294
|
return Number(base + "e" + newExp);
|
2314
2295
|
}
|
2315
2296
|
else {
|
@@ -2325,7 +2306,7 @@
|
|
2325
2306
|
var symbols = this.symbolIndex.map(function (s) { return s.label; });
|
2326
2307
|
var regexp = new RegExp(symbols.join('|'), 'ig');
|
2327
2308
|
var match = value.match(regexp);
|
2328
|
-
this.shortSymbol =
|
2309
|
+
this.shortSymbol = match ? match.toString() : '';
|
2329
2310
|
};
|
2330
2311
|
/**
|
2331
2312
|
* Must have previously called storeShortenSymbol to have something to replace.
|
@@ -2346,12 +2327,12 @@
|
|
2346
2327
|
};
|
2347
2328
|
return SkyNumericService;
|
2348
2329
|
}());
|
2349
|
-
SkyNumericService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2350
|
-
SkyNumericService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
2351
|
-
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: [{
|
2352
2333
|
type: i0.Injectable,
|
2353
2334
|
args: [{
|
2354
|
-
providedIn: 'any'
|
2335
|
+
providedIn: 'any',
|
2355
2336
|
}]
|
2356
2337
|
}], ctorParameters: function () { return [{ type: i1__namespace.SkyLibResourcesService }]; } });
|
2357
2338
|
|
@@ -2372,7 +2353,8 @@
|
|
2372
2353
|
this.numericService = numericService;
|
2373
2354
|
this.changeDetector = changeDetector;
|
2374
2355
|
this.ngUnsubscribe = new rxjs.Subject();
|
2375
|
-
this.localeProvider
|
2356
|
+
this.localeProvider
|
2357
|
+
.getLocaleInfo()
|
2376
2358
|
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
2377
2359
|
.subscribe(function (localeInfo) {
|
2378
2360
|
_this.providerLocale = localeInfo.locale;
|
@@ -2386,7 +2368,8 @@
|
|
2386
2368
|
};
|
2387
2369
|
SkyNumericPipe.prototype.transform = function (value, config) {
|
2388
2370
|
var _a;
|
2389
|
-
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));
|
2390
2373
|
/* If the value and locale are the same as the last transform then return the previous value
|
2391
2374
|
instead of reformatting. */
|
2392
2375
|
if (this.formattedValue && this.cacheKey === newCacheKey) {
|
@@ -2395,9 +2378,7 @@
|
|
2395
2378
|
var options = new NumericOptions();
|
2396
2379
|
// The default number of digits is `1`. When truncate is disabled, set digits
|
2397
2380
|
// to `0` to avoid the unnecessary addition of `.0` at the end of the formatted number.
|
2398
|
-
if (config &&
|
2399
|
-
config.truncate === false &&
|
2400
|
-
config.digits === undefined) {
|
2381
|
+
if (config && config.truncate === false && config.digits === undefined) {
|
2401
2382
|
options.digits = 0;
|
2402
2383
|
}
|
2403
2384
|
// If the minimum digits is less than the set maximum digits then throw an error
|
@@ -2408,9 +2389,7 @@
|
|
2408
2389
|
throw new Error('The `digits` property must be greater than or equal to the `minDigits` property');
|
2409
2390
|
// If there is a minimum digits given but not a maximum then default the maximum to the minimum
|
2410
2391
|
}
|
2411
|
-
else if (config &&
|
2412
|
-
config.minDigits &&
|
2413
|
-
!config.digits) {
|
2392
|
+
else if (config && config.minDigits && !config.digits) {
|
2414
2393
|
options.digits = config.minDigits;
|
2415
2394
|
}
|
2416
2395
|
Object.assign(options, config);
|
@@ -2423,13 +2402,13 @@
|
|
2423
2402
|
};
|
2424
2403
|
return SkyNumericPipe;
|
2425
2404
|
}());
|
2426
|
-
SkyNumericPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2427
|
-
SkyNumericPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.
|
2428
|
-
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: [{
|
2429
2408
|
type: i0.Pipe,
|
2430
2409
|
args: [{
|
2431
2410
|
name: 'skyNumeric',
|
2432
|
-
pure: false
|
2411
|
+
pure: false,
|
2433
2412
|
}]
|
2434
2413
|
}], ctorParameters: function () { return [{ type: i1__namespace.SkyAppLocaleProvider }, { type: SkyNumericService }, { type: i0__namespace.ChangeDetectorRef }]; } });
|
2435
2414
|
|
@@ -2438,31 +2417,16 @@
|
|
2438
2417
|
}
|
2439
2418
|
return SkyNumericModule;
|
2440
2419
|
}());
|
2441
|
-
SkyNumericModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2442
|
-
SkyNumericModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
2443
|
-
|
2444
|
-
|
2445
|
-
SkyNumericPipe
|
2446
|
-
], imports: [[
|
2447
|
-
i1.SkyI18nModule,
|
2448
|
-
SkyCoreResourcesModule
|
2449
|
-
]] });
|
2450
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", 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: [{
|
2451
2424
|
type: i0.NgModule,
|
2452
2425
|
args: [{
|
2453
|
-
declarations: [
|
2454
|
-
|
2455
|
-
],
|
2456
|
-
|
2457
|
-
SkyNumericPipe
|
2458
|
-
],
|
2459
|
-
imports: [
|
2460
|
-
i1.SkyI18nModule,
|
2461
|
-
SkyCoreResourcesModule
|
2462
|
-
],
|
2463
|
-
exports: [
|
2464
|
-
SkyNumericPipe
|
2465
|
-
]
|
2426
|
+
declarations: [SkyNumericPipe],
|
2427
|
+
providers: [SkyNumericPipe],
|
2428
|
+
imports: [i1.SkyI18nModule, SkyCoreResourcesModule],
|
2429
|
+
exports: [SkyNumericPipe],
|
2466
2430
|
}]
|
2467
2431
|
}] });
|
2468
2432
|
|
@@ -2612,7 +2576,7 @@
|
|
2612
2576
|
var factory = this.resolver.resolveComponentFactory(component);
|
2613
2577
|
var injector = i0.Injector.create({
|
2614
2578
|
providers: providers,
|
2615
|
-
parent: this.injector
|
2579
|
+
parent: this.injector,
|
2616
2580
|
});
|
2617
2581
|
var componentRef = this.targetRef.createComponent(factory, undefined, injector);
|
2618
2582
|
// Run an initial change detection cycle after the component has been created.
|
@@ -2665,15 +2629,15 @@
|
|
2665
2629
|
};
|
2666
2630
|
return SkyOverlayComponent;
|
2667
2631
|
}());
|
2668
|
-
SkyOverlayComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2669
|
-
SkyOverlayComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
2670
|
-
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: [{
|
2671
2635
|
type: i0.Component,
|
2672
2636
|
args: [{
|
2673
2637
|
selector: 'sky-overlay',
|
2674
|
-
|
2675
|
-
|
2676
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
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",
|
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"],
|
2640
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
2677
2641
|
}]
|
2678
2642
|
}], ctorParameters: function () {
|
2679
2643
|
return [{ type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.ComponentFactoryResolver }, { type: i0__namespace.Injector }, { type: SkyCoreAdapterService }, { type: SkyOverlayContext }, { type: i3__namespace.Router, decorators: [{
|
@@ -2683,19 +2647,19 @@
|
|
2683
2647
|
type: i0.ViewChild,
|
2684
2648
|
args: ['overlayContentRef', {
|
2685
2649
|
read: i0.ElementRef,
|
2686
|
-
static: true
|
2650
|
+
static: true,
|
2687
2651
|
}]
|
2688
2652
|
}], overlayRef: [{
|
2689
2653
|
type: i0.ViewChild,
|
2690
2654
|
args: ['overlayRef', {
|
2691
2655
|
read: i0.ElementRef,
|
2692
|
-
static: true
|
2656
|
+
static: true,
|
2693
2657
|
}]
|
2694
2658
|
}], targetRef: [{
|
2695
2659
|
type: i0.ViewChild,
|
2696
2660
|
args: ['target', {
|
2697
2661
|
read: i0.ViewContainerRef,
|
2698
|
-
static: true
|
2662
|
+
static: true,
|
2699
2663
|
}]
|
2700
2664
|
}] } });
|
2701
2665
|
|
@@ -2704,23 +2668,15 @@
|
|
2704
2668
|
}
|
2705
2669
|
return SkyOverlayModule;
|
2706
2670
|
}());
|
2707
|
-
SkyOverlayModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2708
|
-
SkyOverlayModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
2709
|
-
SkyOverlayModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
2710
|
-
|
2711
|
-
]] });
|
2712
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", 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: [{
|
2713
2675
|
type: i0.NgModule,
|
2714
2676
|
args: [{
|
2715
|
-
imports: [
|
2716
|
-
|
2717
|
-
],
|
2718
|
-
declarations: [
|
2719
|
-
SkyOverlayComponent
|
2720
|
-
],
|
2721
|
-
entryComponents: [
|
2722
|
-
SkyOverlayComponent
|
2723
|
-
]
|
2677
|
+
imports: [i4.CommonModule],
|
2678
|
+
declarations: [SkyOverlayComponent],
|
2679
|
+
entryComponents: [SkyOverlayComponent],
|
2724
2680
|
}]
|
2725
2681
|
}] });
|
2726
2682
|
|
@@ -2755,12 +2711,12 @@
|
|
2755
2711
|
};
|
2756
2712
|
return SkyOverlayAdapterService;
|
2757
2713
|
}());
|
2758
|
-
SkyOverlayAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2759
|
-
SkyOverlayAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
2760
|
-
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: [{
|
2761
2717
|
type: i0.Injectable,
|
2762
2718
|
args: [{
|
2763
|
-
providedIn: 'root'
|
2719
|
+
providedIn: 'root',
|
2764
2720
|
}]
|
2765
2721
|
}], ctorParameters: function () { return [{ type: i0__namespace.RendererFactory2 }]; } });
|
2766
2722
|
|
@@ -2830,10 +2786,12 @@
|
|
2830
2786
|
SkyOverlayService.prototype.createOverlay = function (config) {
|
2831
2787
|
var injector = i0.Injector.create({
|
2832
2788
|
parent: this.injector,
|
2833
|
-
providers: [
|
2789
|
+
providers: [
|
2790
|
+
{
|
2834
2791
|
provide: SkyOverlayContext,
|
2835
|
-
useValue: new SkyOverlayContext(config)
|
2836
|
-
}
|
2792
|
+
useValue: new SkyOverlayContext(config),
|
2793
|
+
},
|
2794
|
+
],
|
2837
2795
|
});
|
2838
2796
|
var componentRef = this.componentFactoryResolver
|
2839
2797
|
.resolveComponentFactory(SkyOverlayComponent)
|
@@ -2851,7 +2809,7 @@
|
|
2851
2809
|
enablePointerEvents: false,
|
2852
2810
|
enableScroll: true,
|
2853
2811
|
showBackdrop: false,
|
2854
|
-
wrapperClass: ''
|
2812
|
+
wrapperClass: '',
|
2855
2813
|
};
|
2856
2814
|
return Object.assign(Object.assign({}, defaults), config);
|
2857
2815
|
};
|
@@ -2868,12 +2826,12 @@
|
|
2868
2826
|
return SkyOverlayService;
|
2869
2827
|
}());
|
2870
2828
|
SkyOverlayService.overlays = [];
|
2871
|
-
SkyOverlayService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2872
|
-
SkyOverlayService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
2873
|
-
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: [{
|
2874
2832
|
type: i0.Injectable,
|
2875
2833
|
args: [{
|
2876
|
-
providedIn: 'root'
|
2834
|
+
providedIn: 'root',
|
2877
2835
|
}]
|
2878
2836
|
}], ctorParameters: function () { return [{ type: i0__namespace.ApplicationRef }, { type: i0__namespace.ComponentFactoryResolver }, { type: i0__namespace.Injector }, { type: SkyOverlayAdapterService }]; } });
|
2879
2837
|
|
@@ -2884,7 +2842,8 @@
|
|
2884
2842
|
this.defaultFormat = '1.0-2';
|
2885
2843
|
this.defaultLocale = 'en-US';
|
2886
2844
|
this.ngUnsubscribe = new rxjs.Subject();
|
2887
|
-
this.localeProvider
|
2845
|
+
this.localeProvider
|
2846
|
+
.getLocaleInfo()
|
2888
2847
|
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
2889
2848
|
.subscribe(function (localeInfo) {
|
2890
2849
|
_this.defaultLocale = localeInfo.locale;
|
@@ -2909,13 +2868,13 @@
|
|
2909
2868
|
};
|
2910
2869
|
return SkyPercentPipe;
|
2911
2870
|
}());
|
2912
|
-
SkyPercentPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2913
|
-
SkyPercentPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.
|
2914
|
-
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: [{
|
2915
2874
|
type: i0.Pipe,
|
2916
2875
|
args: [{
|
2917
2876
|
name: 'skyPercent',
|
2918
|
-
pure: false
|
2877
|
+
pure: false,
|
2919
2878
|
}]
|
2920
2879
|
}], ctorParameters: function () { return [{ type: i1__namespace.SkyAppLocaleProvider }]; } });
|
2921
2880
|
|
@@ -2924,59 +2883,127 @@
|
|
2924
2883
|
}
|
2925
2884
|
return SkyPercentPipeModule;
|
2926
2885
|
}());
|
2927
|
-
SkyPercentPipeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2928
|
-
SkyPercentPipeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
2929
|
-
|
2930
|
-
|
2931
|
-
SkyPercentPipe
|
2932
|
-
], imports: [[
|
2933
|
-
i4.CommonModule,
|
2934
|
-
SkyCoreResourcesModule
|
2935
|
-
]] });
|
2936
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", 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: [{
|
2937
2890
|
type: i0.NgModule,
|
2938
2891
|
args: [{
|
2939
|
-
declarations: [
|
2940
|
-
|
2941
|
-
],
|
2942
|
-
|
2943
|
-
SkyPercentPipe
|
2944
|
-
],
|
2945
|
-
imports: [
|
2946
|
-
i4.CommonModule,
|
2947
|
-
SkyCoreResourcesModule
|
2948
|
-
],
|
2949
|
-
exports: [
|
2950
|
-
SkyPercentPipe
|
2951
|
-
]
|
2892
|
+
declarations: [SkyPercentPipe],
|
2893
|
+
providers: [SkyPercentPipe],
|
2894
|
+
imports: [i4.CommonModule, SkyCoreResourcesModule],
|
2895
|
+
exports: [SkyPercentPipe],
|
2952
2896
|
}]
|
2953
2897
|
}] });
|
2954
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
|
+
}
|
2955
2915
|
var SkyScrollableHostService = /** @class */ (function () {
|
2956
2916
|
function SkyScrollableHostService(mutationObserverSvc, windowRef) {
|
2957
2917
|
this.mutationObserverSvc = mutationObserverSvc;
|
2958
2918
|
this.windowRef = windowRef;
|
2959
2919
|
}
|
2960
|
-
|
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) {
|
2961
2926
|
return this.findScrollableHost(elementRef.nativeElement);
|
2962
2927
|
};
|
2963
|
-
|
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) {
|
2964
2936
|
var _this = this;
|
2965
|
-
var
|
2966
|
-
var
|
2967
|
-
|
2968
|
-
|
2969
|
-
|
2970
|
-
|
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
|
+
});
|
2971
2951
|
_this.observeForScrollableHostChanges(scrollableHost, mutationObserver);
|
2972
|
-
behaviorSubject.next(scrollableHost);
|
2973
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
|
+
});
|
2974
2965
|
});
|
2975
|
-
|
2976
|
-
|
2977
|
-
|
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 newScrollableHostObservable = new rxjs.Subject();
|
2977
|
+
var scrollableHostSubscription;
|
2978
|
+
var scrollEventSubscription;
|
2979
|
+
return new rxjs.Observable(function (subscriber) {
|
2980
|
+
subscribers.push(subscriber);
|
2981
|
+
if (subscribers.length === 1) {
|
2982
|
+
scrollableHostSubscription = _this.watchScrollableHost(elementRef).subscribe(function (scrollableHost) {
|
2983
|
+
newScrollableHostObservable.next();
|
2984
|
+
newScrollableHostObservable.complete();
|
2985
|
+
newScrollableHostObservable = new rxjs.Subject();
|
2986
|
+
scrollEventSubscription = rxjs.fromEvent(scrollableHost, 'scroll')
|
2987
|
+
.pipe(operators.takeUntil(newScrollableHostObservable))
|
2988
|
+
.subscribe(function () {
|
2989
|
+
notifySubscribers(subscribers);
|
2990
|
+
});
|
2991
|
+
});
|
2992
|
+
}
|
2993
|
+
subscriber.add(function () {
|
2994
|
+
var subIndex = subscribers.indexOf(subscriber);
|
2995
|
+
/* sanity check */
|
2996
|
+
/* istanbul ignore else */
|
2997
|
+
if (subIndex >= 0) {
|
2998
|
+
subscribers.splice(subIndex, 1);
|
2999
|
+
}
|
3000
|
+
if (subscribers.length === 0) {
|
3001
|
+
scrollableHostSubscription.unsubscribe();
|
3002
|
+
scrollEventSubscription.unsubscribe();
|
3003
|
+
newScrollableHostObservable.complete();
|
3004
|
+
}
|
3005
|
+
});
|
2978
3006
|
});
|
2979
|
-
return behaviorSubject;
|
2980
3007
|
};
|
2981
3008
|
SkyScrollableHostService.prototype.findScrollableHost = function (element) {
|
2982
3009
|
var regex = /(auto|scroll)/;
|
@@ -3008,26 +3035,26 @@
|
|
3008
3035
|
if (element instanceof HTMLElement) {
|
3009
3036
|
mutationObserver.observe(element, {
|
3010
3037
|
attributes: true,
|
3011
|
-
attributeFilter: [
|
3012
|
-
subtree: true
|
3038
|
+
attributeFilter: ['class', 'style.overflow', 'style.overflow-y'],
|
3039
|
+
subtree: true,
|
3013
3040
|
});
|
3014
3041
|
}
|
3015
3042
|
else {
|
3016
3043
|
mutationObserver.observe(document.documentElement, {
|
3017
3044
|
attributes: true,
|
3018
|
-
attributeFilter: [
|
3019
|
-
subtree: true
|
3045
|
+
attributeFilter: ['class', 'style.overflow', 'style.overflow-y'],
|
3046
|
+
subtree: true,
|
3020
3047
|
});
|
3021
3048
|
}
|
3022
3049
|
};
|
3023
3050
|
return SkyScrollableHostService;
|
3024
3051
|
}());
|
3025
|
-
SkyScrollableHostService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
3026
|
-
SkyScrollableHostService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
3027
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
3052
|
+
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 });
|
3053
|
+
SkyScrollableHostService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyScrollableHostService, providedIn: 'root' });
|
3054
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyScrollableHostService, decorators: [{
|
3028
3055
|
type: i0.Injectable,
|
3029
3056
|
args: [{
|
3030
|
-
providedIn: 'root'
|
3057
|
+
providedIn: 'root',
|
3031
3058
|
}]
|
3032
3059
|
}], ctorParameters: function () { return [{ type: MutationObserverService }, { type: SkyAppWindowRef }]; } });
|
3033
3060
|
|
@@ -3050,12 +3077,12 @@
|
|
3050
3077
|
};
|
3051
3078
|
return SkyAppTitleService;
|
3052
3079
|
}());
|
3053
|
-
SkyAppTitleService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
3054
|
-
SkyAppTitleService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
3055
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
3080
|
+
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 });
|
3081
|
+
SkyAppTitleService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyAppTitleService, providedIn: 'root' });
|
3082
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyAppTitleService, decorators: [{
|
3056
3083
|
type: i0.Injectable,
|
3057
3084
|
args: [{
|
3058
|
-
providedIn: 'root'
|
3085
|
+
providedIn: 'root',
|
3059
3086
|
}]
|
3060
3087
|
}], ctorParameters: function () { return [{ type: i1__namespace$1.Title }]; } });
|
3061
3088
|
|
@@ -3071,12 +3098,12 @@
|
|
3071
3098
|
};
|
3072
3099
|
return SkyUIConfigService;
|
3073
3100
|
}());
|
3074
|
-
SkyUIConfigService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
3075
|
-
SkyUIConfigService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
3076
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
3101
|
+
SkyUIConfigService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyUIConfigService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
3102
|
+
SkyUIConfigService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyUIConfigService, providedIn: 'root' });
|
3103
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyUIConfigService, decorators: [{
|
3077
3104
|
type: i0.Injectable,
|
3078
3105
|
args: [{
|
3079
|
-
providedIn: 'root'
|
3106
|
+
providedIn: 'root',
|
3080
3107
|
}]
|
3081
3108
|
}] });
|
3082
3109
|
|
@@ -3085,9 +3112,9 @@
|
|
3085
3112
|
}
|
3086
3113
|
return SkyViewkeeperHostOptions;
|
3087
3114
|
}());
|
3088
|
-
SkyViewkeeperHostOptions.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
3089
|
-
SkyViewkeeperHostOptions.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
3090
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
3115
|
+
SkyViewkeeperHostOptions.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyViewkeeperHostOptions, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
3116
|
+
SkyViewkeeperHostOptions.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyViewkeeperHostOptions });
|
3117
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyViewkeeperHostOptions, decorators: [{
|
3091
3118
|
type: i0.Injectable
|
3092
3119
|
}] });
|
3093
3120
|
|
@@ -3112,7 +3139,7 @@
|
|
3112
3139
|
var parent = scrollableHost ? scrollableHost : document.documentElement;
|
3113
3140
|
return {
|
3114
3141
|
top: rect.top + parent.scrollTop,
|
3115
|
-
left: rect.left + parent.scrollLeft
|
3142
|
+
left: rect.left + parent.scrollLeft,
|
3116
3143
|
};
|
3117
3144
|
}
|
3118
3145
|
function px(value) {
|
@@ -3134,7 +3161,9 @@
|
|
3134
3161
|
}
|
3135
3162
|
function getHeightWithMargin(el) {
|
3136
3163
|
var computedStyle = getComputedStyle(el);
|
3137
|
-
return el.offsetHeight +
|
3164
|
+
return (el.offsetHeight +
|
3165
|
+
parseInt(computedStyle.marginTop, 10) +
|
3166
|
+
parseInt(computedStyle.marginBottom, 10));
|
3138
3167
|
}
|
3139
3168
|
function createCustomEvent(name) {
|
3140
3169
|
var evt = document.createEvent('CustomEvent');
|
@@ -3163,6 +3192,21 @@
|
|
3163
3192
|
ensureStyleEl();
|
3164
3193
|
this.syncElPosition();
|
3165
3194
|
}
|
3195
|
+
Object.defineProperty(SkyViewkeeper.prototype, "viewportMarginTop", {
|
3196
|
+
get: function () {
|
3197
|
+
if (this.scrollableHost) {
|
3198
|
+
return 0;
|
3199
|
+
}
|
3200
|
+
else {
|
3201
|
+
return this._viewportMarginTop;
|
3202
|
+
}
|
3203
|
+
},
|
3204
|
+
set: function (margin) {
|
3205
|
+
this._viewportMarginTop = margin;
|
3206
|
+
},
|
3207
|
+
enumerable: false,
|
3208
|
+
configurable: true
|
3209
|
+
});
|
3166
3210
|
SkyViewkeeper.prototype.syncElPosition = function () {
|
3167
3211
|
var verticalOffset = this.calculateVerticalOffset();
|
3168
3212
|
// When the element isn't visible, its size can't be calculated, so don't attempt syncing position in this case.
|
@@ -3192,9 +3236,7 @@
|
|
3192
3236
|
if (this.verticalOffsetEl) {
|
3193
3237
|
this.verticalOffsetEl.removeEventListener(EVT_AFTER_VIEWKEEPER_SYNC, this.syncElPositionHandler);
|
3194
3238
|
}
|
3195
|
-
this.el =
|
3196
|
-
this.boundaryEl =
|
3197
|
-
this.verticalOffsetEl = undefined;
|
3239
|
+
this.el = this.boundaryEl = this.verticalOffsetEl = undefined;
|
3198
3240
|
this.isDestroyed = true;
|
3199
3241
|
}
|
3200
3242
|
};
|
@@ -3209,7 +3251,8 @@
|
|
3209
3251
|
this.el.classList.remove(CLS_VIEWKEEPER_FIXED);
|
3210
3252
|
this.currentElFixedLeft =
|
3211
3253
|
this.currentElFixedTop =
|
3212
|
-
this.currentElFixedWidth =
|
3254
|
+
this.currentElFixedWidth =
|
3255
|
+
undefined;
|
3213
3256
|
var width;
|
3214
3257
|
if (this.setWidth) {
|
3215
3258
|
width = 'auto';
|
@@ -3221,7 +3264,7 @@
|
|
3221
3264
|
if (this.verticalOffsetEl) {
|
3222
3265
|
var verticalOffsetElTopStyle = this.verticalOffsetEl.style.top;
|
3223
3266
|
var verticalOffsetElTop = parseInt(verticalOffsetElTopStyle, 10) || 0;
|
3224
|
-
offset +=
|
3267
|
+
offset += this.verticalOffsetEl.offsetHeight + verticalOffsetElTop;
|
3225
3268
|
}
|
3226
3269
|
else if (this.scrollableHost) {
|
3227
3270
|
offset += this.scrollableHost.getBoundingClientRect().top;
|
@@ -3237,7 +3280,9 @@
|
|
3237
3280
|
else {
|
3238
3281
|
anchorTop = getOffset(this.el, this.scrollableHost).top;
|
3239
3282
|
}
|
3240
|
-
doFixEl =
|
3283
|
+
doFixEl =
|
3284
|
+
boundaryInfo.scrollTop + verticalOffset + this.viewportMarginTop >
|
3285
|
+
anchorTop;
|
3241
3286
|
return doFixEl;
|
3242
3287
|
};
|
3243
3288
|
SkyViewkeeper.prototype.getFixedStyles = function (boundaryInfo, verticalOffset) {
|
@@ -3246,13 +3291,15 @@
|
|
3246
3291
|
// will be 0 (fully visible) unless the user is scrolling the boundary out of view.
|
3247
3292
|
// In that case, the element should begin to scroll out of view with the
|
3248
3293
|
// rest of the boundary by setting its top position to a negative value.
|
3249
|
-
elFixedTop = Math.min(
|
3294
|
+
elFixedTop = Math.min(boundaryInfo.boundaryBottom -
|
3295
|
+
boundaryInfo.elHeight -
|
3296
|
+
boundaryInfo.scrollTop, verticalOffset);
|
3250
3297
|
var elFixedWidth = boundaryInfo.boundaryEl.getBoundingClientRect().width;
|
3251
3298
|
var elFixedLeft = boundaryInfo.boundaryOffset.left - boundaryInfo.scrollLeft;
|
3252
3299
|
return {
|
3253
3300
|
elFixedLeft: elFixedLeft,
|
3254
3301
|
elFixedTop: elFixedTop,
|
3255
|
-
elFixedWidth: elFixedWidth
|
3302
|
+
elFixedWidth: elFixedWidth,
|
3256
3303
|
};
|
3257
3304
|
};
|
3258
3305
|
SkyViewkeeper.prototype.needsUpdating = function (doFixEl, fixedStyles) {
|
@@ -3261,7 +3308,8 @@
|
|
3261
3308
|
this.currentElFixedTop === fixedStyles.elFixedTop &&
|
3262
3309
|
this.currentElFixedWidth === fixedStyles.elFixedWidth) ||
|
3263
3310
|
(!doFixEl &&
|
3264
|
-
!(this.currentElFixedLeft !== undefined &&
|
3311
|
+
!(this.currentElFixedLeft !== undefined &&
|
3312
|
+
this.currentElFixedLeft !== null))) {
|
3265
3313
|
// The element is either currently fixed and its position and width do not need
|
3266
3314
|
// to change, or the element is not currently fixed and does not need to be fixed.
|
3267
3315
|
// No changes are needed.
|
@@ -3297,8 +3345,12 @@
|
|
3297
3345
|
var boundaryOffset = getOffset(boundaryEl, this.scrollableHost);
|
3298
3346
|
var boundaryTop = boundaryOffset.top;
|
3299
3347
|
var boundaryBottom = boundaryTop + boundaryEl.getBoundingClientRect().height;
|
3300
|
-
var scrollLeft = this.scrollableHost
|
3301
|
-
|
3348
|
+
var scrollLeft = this.scrollableHost
|
3349
|
+
? this.scrollableHost.scrollLeft
|
3350
|
+
: document.documentElement.scrollLeft;
|
3351
|
+
var scrollTop = this.scrollableHost
|
3352
|
+
? this.scrollableHost.scrollTop
|
3353
|
+
: document.documentElement.scrollTop;
|
3302
3354
|
var elHeight = getHeightWithMargin(this.el);
|
3303
3355
|
return {
|
3304
3356
|
boundaryBottom: boundaryBottom,
|
@@ -3308,7 +3360,7 @@
|
|
3308
3360
|
scrollLeft: scrollLeft,
|
3309
3361
|
scrollTop: scrollTop,
|
3310
3362
|
spacerId: spacerId,
|
3311
|
-
spacerEl: spacerEl
|
3363
|
+
spacerEl: spacerEl,
|
3312
3364
|
};
|
3313
3365
|
};
|
3314
3366
|
return SkyViewkeeper;
|
@@ -3338,12 +3390,12 @@
|
|
3338
3390
|
};
|
3339
3391
|
return SkyViewkeeperService;
|
3340
3392
|
}());
|
3341
|
-
SkyViewkeeperService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
3342
|
-
SkyViewkeeperService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
3343
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
3393
|
+
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 });
|
3394
|
+
SkyViewkeeperService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyViewkeeperService, providedIn: 'root' });
|
3395
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyViewkeeperService, decorators: [{
|
3344
3396
|
type: i0.Injectable,
|
3345
3397
|
args: [{
|
3346
|
-
providedIn: 'root'
|
3398
|
+
providedIn: 'root',
|
3347
3399
|
}]
|
3348
3400
|
}], ctorParameters: function () {
|
3349
3401
|
return [{ type: SkyViewkeeperHostOptions, decorators: [{
|
@@ -3376,7 +3428,7 @@
|
|
3376
3428
|
this.observer = this.mutationObserverSvc.create(function () { return _this.detectElements(); });
|
3377
3429
|
this.observer.observe(this.el.nativeElement, {
|
3378
3430
|
childList: true,
|
3379
|
-
subtree: true
|
3431
|
+
subtree: true,
|
3380
3432
|
});
|
3381
3433
|
};
|
3382
3434
|
SkyViewkeeperDirective.prototype.ngOnDestroy = function () {
|
@@ -3449,7 +3501,8 @@
|
|
3449
3501
|
else {
|
3450
3502
|
this.scrollableHostWatchUnsubscribe = new rxjs.Subject();
|
3451
3503
|
}
|
3452
|
-
this.scrollableHostService
|
3504
|
+
this.scrollableHostService
|
3505
|
+
.watchScrollableHost(this.el)
|
3453
3506
|
.pipe(operators.takeUntil(this.scrollableHostWatchUnsubscribe))
|
3454
3507
|
.subscribe(function (scrollableHost) {
|
3455
3508
|
var e_3, _a;
|
@@ -3460,10 +3513,12 @@
|
|
3460
3513
|
var viewkeeperEl = viewkeeperEls_1_1.value;
|
3461
3514
|
_this.viewkeepers.push(_this.viewkeeperSvc.create({
|
3462
3515
|
boundaryEl: _this.el.nativeElement,
|
3463
|
-
scrollableHost: scrollableHost instanceof HTMLElement
|
3516
|
+
scrollableHost: scrollableHost instanceof HTMLElement
|
3517
|
+
? scrollableHost
|
3518
|
+
: undefined,
|
3464
3519
|
el: viewkeeperEl,
|
3465
3520
|
setWidth: true,
|
3466
|
-
verticalOffsetEl: previousViewkeeperEl
|
3521
|
+
verticalOffsetEl: previousViewkeeperEl,
|
3467
3522
|
}));
|
3468
3523
|
previousViewkeeperEl = viewkeeperEl;
|
3469
3524
|
}
|
@@ -3481,12 +3536,12 @@
|
|
3481
3536
|
};
|
3482
3537
|
return SkyViewkeeperDirective;
|
3483
3538
|
}());
|
3484
|
-
SkyViewkeeperDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
3485
|
-
SkyViewkeeperDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.
|
3486
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
3539
|
+
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 });
|
3540
|
+
SkyViewkeeperDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.14", type: SkyViewkeeperDirective, selector: "[skyViewkeeper]", inputs: { skyViewkeeper: "skyViewkeeper" }, ngImport: i0__namespace });
|
3541
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyViewkeeperDirective, decorators: [{
|
3487
3542
|
type: i0.Directive,
|
3488
3543
|
args: [{
|
3489
|
-
selector: '[skyViewkeeper]'
|
3544
|
+
selector: '[skyViewkeeper]',
|
3490
3545
|
}]
|
3491
3546
|
}], ctorParameters: function () {
|
3492
3547
|
return [{ type: i0__namespace.ElementRef }, { type: MutationObserverService }, { type: SkyViewkeeperService }, { type: SkyScrollableHostService, decorators: [{
|
@@ -3501,18 +3556,14 @@
|
|
3501
3556
|
}
|
3502
3557
|
return SkyViewkeeperModule;
|
3503
3558
|
}());
|
3504
|
-
SkyViewkeeperModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
3505
|
-
SkyViewkeeperModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
3506
|
-
SkyViewkeeperModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
3507
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
3559
|
+
SkyViewkeeperModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyViewkeeperModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
3560
|
+
SkyViewkeeperModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyViewkeeperModule, declarations: [SkyViewkeeperDirective], exports: [SkyViewkeeperDirective] });
|
3561
|
+
SkyViewkeeperModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyViewkeeperModule });
|
3562
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0__namespace, type: SkyViewkeeperModule, decorators: [{
|
3508
3563
|
type: i0.NgModule,
|
3509
3564
|
args: [{
|
3510
|
-
declarations: [
|
3511
|
-
|
3512
|
-
],
|
3513
|
-
exports: [
|
3514
|
-
SkyViewkeeperDirective
|
3515
|
-
]
|
3565
|
+
declarations: [SkyViewkeeperDirective],
|
3566
|
+
exports: [SkyViewkeeperDirective],
|
3516
3567
|
}]
|
3517
3568
|
}] });
|
3518
3569
|
|
@@ -3554,11 +3605,11 @@
|
|
3554
3605
|
exports.SkyViewkeeperModule = SkyViewkeeperModule;
|
3555
3606
|
exports.SkyViewkeeperService = SkyViewkeeperService;
|
3556
3607
|
exports.getWindow = getWindow;
|
3557
|
-
exports
|
3558
|
-
exports
|
3559
|
-
exports
|
3608
|
+
exports["λ1"] = SkyAffixDirective;
|
3609
|
+
exports["λ2"] = SkyIdDirective;
|
3610
|
+
exports["λ3"] = SkyViewkeeperDirective;
|
3560
3611
|
|
3561
3612
|
Object.defineProperty(exports, '__esModule', { value: true });
|
3562
3613
|
|
3563
|
-
}))
|
3614
|
+
}));
|
3564
3615
|
//# sourceMappingURL=skyux-core.umd.js.map
|