@skyux/core 5.1.0 → 5.2.0
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/bundles/skyux-core-testing.umd.js +11 -13
- package/bundles/skyux-core-testing.umd.js.map +1 -1
- package/bundles/skyux-core.umd.js +265 -158
- package/bundles/skyux-core.umd.js.map +1 -1
- package/documentation.json +342 -362
- package/esm2015/modules/adapter-service/adapter.module.js +5 -5
- package/esm2015/modules/adapter-service/adapter.service.js +4 -4
- package/esm2015/modules/affix/affix.directive.js +4 -4
- package/esm2015/modules/affix/affix.module.js +5 -5
- package/esm2015/modules/affix/affix.service.js +4 -4
- package/esm2015/modules/dock/dock-dom-adapter.service.js +4 -4
- package/esm2015/modules/dock/dock.component.js +4 -4
- package/esm2015/modules/dock/dock.module.js +5 -5
- package/esm2015/modules/dock/dock.service.js +4 -4
- package/esm2015/modules/dynamic-component/dynamic-component.module.js +5 -5
- package/esm2015/modules/dynamic-component/dynamic-component.service.js +4 -4
- package/esm2015/modules/format/app-format.js +4 -4
- package/esm2015/modules/id/id.directive.js +4 -4
- package/esm2015/modules/id/id.module.js +5 -5
- package/esm2015/modules/log/log.module.js +5 -5
- package/esm2015/modules/log/log.service.js +4 -4
- package/esm2015/modules/media-query/media-query.module.js +5 -5
- package/esm2015/modules/media-query/media-query.service.js +4 -4
- package/esm2015/modules/mutation/mutation-observer-service.js +4 -4
- package/esm2015/modules/numeric/numeric.module.js +5 -5
- package/esm2015/modules/numeric/numeric.pipe.js +27 -11
- package/esm2015/modules/numeric/numeric.service.js +4 -4
- package/esm2015/modules/overlay/overlay-adapter.service.js +4 -4
- package/esm2015/modules/overlay/overlay.component.js +4 -4
- package/esm2015/modules/overlay/overlay.module.js +5 -5
- package/esm2015/modules/overlay/overlay.service.js +4 -4
- package/esm2015/modules/percent-pipe/percent-pipe.module.js +5 -5
- package/esm2015/modules/percent-pipe/percent.pipe.js +4 -4
- package/esm2015/modules/scrollable-host/scrollable-host.service.js +99 -19
- package/esm2015/modules/shared/sky-core-resources.module.js +5 -5
- package/esm2015/modules/title/title.service.js +4 -4
- package/esm2015/modules/ui-config/ui-config.service.js +4 -4
- package/esm2015/modules/viewkeeper/viewkeeper-host-options.js +4 -4
- package/esm2015/modules/viewkeeper/viewkeeper.directive.js +5 -5
- package/esm2015/modules/viewkeeper/viewkeeper.module.js +5 -5
- package/esm2015/modules/viewkeeper/viewkeeper.service.js +4 -4
- package/esm2015/modules/window/window-ref.js +4 -4
- package/esm2015/testing/mock-media-query.service.js +4 -4
- package/esm2015/testing/mock-ui-config.service.js +4 -4
- package/fesm2015/skyux-core-testing.js +6 -6
- package/fesm2015/skyux-core-testing.js.map +1 -1
- package/fesm2015/skyux-core.js +242 -146
- package/fesm2015/skyux-core.js.map +1 -1
- package/modules/numeric/numeric.pipe.d.ts +8 -2
- package/modules/scrollable-host/scrollable-host.service.d.ts +21 -2
- 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.13", ngImport: i0__namespace, type: SkyCoreAdapterModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
41
|
+
SkyCoreAdapterModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyCoreAdapterModule });
|
|
42
|
+
SkyCoreAdapterModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyCoreAdapterModule });
|
|
43
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyCoreAdapterModule, decorators: [{
|
|
46
44
|
type: i0.NgModule,
|
|
47
45
|
args: [{}]
|
|
48
46
|
}] });
|
|
@@ -275,9 +273,9 @@
|
|
|
275
273
|
};
|
|
276
274
|
return SkyCoreAdapterService;
|
|
277
275
|
}());
|
|
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.
|
|
276
|
+
SkyCoreAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyCoreAdapterService, deps: [{ token: i0__namespace.RendererFactory2 }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
277
|
+
SkyCoreAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyCoreAdapterService, providedIn: 'root' });
|
|
278
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyCoreAdapterService, decorators: [{
|
|
281
279
|
type: i0.Injectable,
|
|
282
280
|
args: [{
|
|
283
281
|
providedIn: 'root'
|
|
@@ -773,9 +771,9 @@
|
|
|
773
771
|
};
|
|
774
772
|
return SkyAffixService;
|
|
775
773
|
}());
|
|
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.
|
|
774
|
+
SkyAffixService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyAffixService, deps: [{ token: i0__namespace.RendererFactory2 }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
775
|
+
SkyAffixService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyAffixService, providedIn: 'root' });
|
|
776
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyAffixService, decorators: [{
|
|
779
777
|
type: i0.Injectable,
|
|
780
778
|
args: [{
|
|
781
779
|
providedIn: 'root'
|
|
@@ -846,9 +844,9 @@
|
|
|
846
844
|
};
|
|
847
845
|
return SkyAffixDirective;
|
|
848
846
|
}());
|
|
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.
|
|
847
|
+
SkyAffixDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyAffixDirective, deps: [{ token: i0__namespace.ElementRef }, { token: SkyAffixService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
848
|
+
SkyAffixDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", 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 });
|
|
849
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyAffixDirective, decorators: [{
|
|
852
850
|
type: i0.Directive,
|
|
853
851
|
args: [{
|
|
854
852
|
selector: '[skyAffixTo]'
|
|
@@ -882,12 +880,12 @@
|
|
|
882
880
|
}
|
|
883
881
|
return SkyAffixModule;
|
|
884
882
|
}());
|
|
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.
|
|
883
|
+
SkyAffixModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyAffixModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
884
|
+
SkyAffixModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyAffixModule, declarations: [SkyAffixDirective], imports: [i4.CommonModule], exports: [SkyAffixDirective] });
|
|
885
|
+
SkyAffixModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyAffixModule, imports: [[
|
|
888
886
|
i4.CommonModule
|
|
889
887
|
]] });
|
|
890
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
888
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyAffixModule, decorators: [{
|
|
891
889
|
type: i0.NgModule,
|
|
892
890
|
args: [{
|
|
893
891
|
imports: [
|
|
@@ -962,9 +960,9 @@
|
|
|
962
960
|
};
|
|
963
961
|
return MutationObserverService;
|
|
964
962
|
}());
|
|
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.
|
|
963
|
+
MutationObserverService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: MutationObserverService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
964
|
+
MutationObserverService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: MutationObserverService, providedIn: 'root' });
|
|
965
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: MutationObserverService, decorators: [{
|
|
968
966
|
type: i0.Injectable,
|
|
969
967
|
args: [{
|
|
970
968
|
providedIn: 'root'
|
|
@@ -1040,9 +1038,9 @@
|
|
|
1040
1038
|
};
|
|
1041
1039
|
return SkyDockDomAdapterService;
|
|
1042
1040
|
}());
|
|
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.
|
|
1041
|
+
SkyDockDomAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyDockDomAdapterService, deps: [{ token: MutationObserverService }, { token: i0__namespace.RendererFactory2 }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1042
|
+
SkyDockDomAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyDockDomAdapterService });
|
|
1043
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyDockDomAdapterService, decorators: [{
|
|
1046
1044
|
type: i0.Injectable
|
|
1047
1045
|
}], ctorParameters: function () { return [{ type: MutationObserverService }, { type: i0__namespace.RendererFactory2 }]; } });
|
|
1048
1046
|
|
|
@@ -1132,16 +1130,16 @@
|
|
|
1132
1130
|
};
|
|
1133
1131
|
return SkyDockComponent;
|
|
1134
1132
|
}());
|
|
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.
|
|
1133
|
+
SkyDockComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", 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 });
|
|
1134
|
+
SkyDockComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: SkyDockComponent, selector: "sky-dock", providers: [
|
|
1137
1135
|
SkyDockDomAdapterService
|
|
1138
1136
|
], viewQueries: [{ propertyName: "target", first: true, predicate: ["target"], descendants: true, read: i0.ViewContainerRef, static: true }], ngImport: i0__namespace, template: "<ng-container\n #target\n></ng-container>", styles: [":host{display:flex;flex-direction:column;width:100%}:host:not(.sky-dock-unbound){position:fixed;left:0;bottom:0;right:0}:host.sky-dock-sticky{position:sticky}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1139
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1137
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyDockComponent, decorators: [{
|
|
1140
1138
|
type: i0.Component,
|
|
1141
1139
|
args: [{
|
|
1142
1140
|
selector: 'sky-dock',
|
|
1143
|
-
|
|
1144
|
-
|
|
1141
|
+
template: "<ng-container\n #target\n></ng-container>",
|
|
1142
|
+
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"],
|
|
1145
1143
|
providers: [
|
|
1146
1144
|
SkyDockDomAdapterService
|
|
1147
1145
|
],
|
|
@@ -1160,14 +1158,14 @@
|
|
|
1160
1158
|
}
|
|
1161
1159
|
return SkyDockModule;
|
|
1162
1160
|
}());
|
|
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.
|
|
1161
|
+
SkyDockModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyDockModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1162
|
+
SkyDockModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyDockModule, declarations: [SkyDockComponent], imports: [i4.CommonModule] });
|
|
1163
|
+
SkyDockModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyDockModule, providers: [
|
|
1166
1164
|
MutationObserverService
|
|
1167
1165
|
], imports: [[
|
|
1168
1166
|
i4.CommonModule
|
|
1169
1167
|
]] });
|
|
1170
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1168
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyDockModule, decorators: [{
|
|
1171
1169
|
type: i0.NgModule,
|
|
1172
1170
|
args: [{
|
|
1173
1171
|
imports: [
|
|
@@ -1238,9 +1236,9 @@
|
|
|
1238
1236
|
});
|
|
1239
1237
|
return SkyAppWindowRef;
|
|
1240
1238
|
}());
|
|
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.
|
|
1239
|
+
SkyAppWindowRef.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyAppWindowRef, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1240
|
+
SkyAppWindowRef.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyAppWindowRef, providedIn: 'root' });
|
|
1241
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyAppWindowRef, decorators: [{
|
|
1244
1242
|
type: i0.Injectable,
|
|
1245
1243
|
args: [{
|
|
1246
1244
|
providedIn: 'root'
|
|
@@ -1314,9 +1312,9 @@
|
|
|
1314
1312
|
};
|
|
1315
1313
|
return SkyDynamicComponentService;
|
|
1316
1314
|
}());
|
|
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.
|
|
1315
|
+
SkyDynamicComponentService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", 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 });
|
|
1316
|
+
SkyDynamicComponentService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyDynamicComponentService, providedIn: 'any' });
|
|
1317
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyDynamicComponentService, decorators: [{
|
|
1320
1318
|
type: i0.Injectable,
|
|
1321
1319
|
args: [{
|
|
1322
1320
|
// Must be 'any' so that the component is created in the context of its module's injector.
|
|
@@ -1406,9 +1404,9 @@
|
|
|
1406
1404
|
};
|
|
1407
1405
|
return SkyDockService;
|
|
1408
1406
|
}());
|
|
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.
|
|
1407
|
+
SkyDockService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyDockService, deps: [{ token: SkyDynamicComponentService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1408
|
+
SkyDockService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyDockService, providedIn: 'root' });
|
|
1409
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyDockService, decorators: [{
|
|
1412
1410
|
type: i0.Injectable,
|
|
1413
1411
|
args: [{
|
|
1414
1412
|
providedIn: 'root'
|
|
@@ -1425,10 +1423,10 @@
|
|
|
1425
1423
|
}
|
|
1426
1424
|
return SkyDynamicComponentModule;
|
|
1427
1425
|
}());
|
|
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.
|
|
1426
|
+
SkyDynamicComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyDynamicComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1427
|
+
SkyDynamicComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyDynamicComponentModule });
|
|
1428
|
+
SkyDynamicComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyDynamicComponentModule });
|
|
1429
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyDynamicComponentModule, decorators: [{
|
|
1432
1430
|
type: i0.NgModule,
|
|
1433
1431
|
args: [{}]
|
|
1434
1432
|
}] });
|
|
@@ -1447,9 +1445,9 @@
|
|
|
1447
1445
|
};
|
|
1448
1446
|
return SkyAppFormat;
|
|
1449
1447
|
}());
|
|
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.
|
|
1448
|
+
SkyAppFormat.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyAppFormat, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1449
|
+
SkyAppFormat.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyAppFormat, providedIn: 'root' });
|
|
1450
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyAppFormat, decorators: [{
|
|
1453
1451
|
type: i0.Injectable,
|
|
1454
1452
|
args: [{
|
|
1455
1453
|
providedIn: 'root'
|
|
@@ -1483,9 +1481,9 @@
|
|
|
1483
1481
|
});
|
|
1484
1482
|
return SkyIdDirective;
|
|
1485
1483
|
}());
|
|
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.
|
|
1484
|
+
SkyIdDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyIdDirective, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1485
|
+
SkyIdDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: SkyIdDirective, selector: "[skyId]", exportAs: ["skyId"], ngImport: i0__namespace });
|
|
1486
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyIdDirective, decorators: [{
|
|
1489
1487
|
type: i0.Directive,
|
|
1490
1488
|
args: [{
|
|
1491
1489
|
selector: '[skyId]',
|
|
@@ -1498,10 +1496,10 @@
|
|
|
1498
1496
|
}
|
|
1499
1497
|
return SkyIdModule;
|
|
1500
1498
|
}());
|
|
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.
|
|
1499
|
+
SkyIdModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyIdModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1500
|
+
SkyIdModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyIdModule, declarations: [SkyIdDirective], exports: [SkyIdDirective] });
|
|
1501
|
+
SkyIdModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyIdModule });
|
|
1502
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyIdModule, decorators: [{
|
|
1505
1503
|
type: i0.NgModule,
|
|
1506
1504
|
args: [{
|
|
1507
1505
|
declarations: [
|
|
@@ -1522,10 +1520,10 @@
|
|
|
1522
1520
|
}
|
|
1523
1521
|
return SkyLogModule;
|
|
1524
1522
|
}());
|
|
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.
|
|
1523
|
+
SkyLogModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyLogModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1524
|
+
SkyLogModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyLogModule });
|
|
1525
|
+
SkyLogModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyLogModule });
|
|
1526
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyLogModule, decorators: [{
|
|
1529
1527
|
type: i0.NgModule,
|
|
1530
1528
|
args: [{}]
|
|
1531
1529
|
}] });
|
|
@@ -1548,9 +1546,9 @@
|
|
|
1548
1546
|
};
|
|
1549
1547
|
return SkyLogService;
|
|
1550
1548
|
}());
|
|
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.
|
|
1549
|
+
SkyLogService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyLogService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1550
|
+
SkyLogService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyLogService, providedIn: 'root' });
|
|
1551
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyLogService, decorators: [{
|
|
1554
1552
|
type: i0.Injectable,
|
|
1555
1553
|
args: [{
|
|
1556
1554
|
providedIn: 'root'
|
|
@@ -1566,10 +1564,10 @@
|
|
|
1566
1564
|
}
|
|
1567
1565
|
return SkyMediaQueryModule;
|
|
1568
1566
|
}());
|
|
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.
|
|
1567
|
+
SkyMediaQueryModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyMediaQueryModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1568
|
+
SkyMediaQueryModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyMediaQueryModule });
|
|
1569
|
+
SkyMediaQueryModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyMediaQueryModule });
|
|
1570
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyMediaQueryModule, decorators: [{
|
|
1573
1571
|
type: i0.NgModule,
|
|
1574
1572
|
args: [{}]
|
|
1575
1573
|
}] });
|
|
@@ -1684,9 +1682,9 @@
|
|
|
1684
1682
|
* The size for the `lg` breakpoint.
|
|
1685
1683
|
*/
|
|
1686
1684
|
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.
|
|
1685
|
+
SkyMediaQueryService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyMediaQueryService, deps: [{ token: i0__namespace.NgZone }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1686
|
+
SkyMediaQueryService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyMediaQueryService, providedIn: 'root' });
|
|
1687
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyMediaQueryService, decorators: [{
|
|
1690
1688
|
type: i0.Injectable,
|
|
1691
1689
|
args: [{
|
|
1692
1690
|
providedIn: 'root'
|
|
@@ -1718,14 +1716,14 @@
|
|
|
1718
1716
|
}
|
|
1719
1717
|
return SkyCoreResourcesModule;
|
|
1720
1718
|
}());
|
|
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.
|
|
1719
|
+
SkyCoreResourcesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyCoreResourcesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1720
|
+
SkyCoreResourcesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyCoreResourcesModule, exports: [i1.SkyI18nModule] });
|
|
1721
|
+
SkyCoreResourcesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyCoreResourcesModule, providers: [{
|
|
1724
1722
|
provide: i1.SKY_LIB_RESOURCES_PROVIDERS,
|
|
1725
1723
|
useClass: SkyCoreResourcesProvider,
|
|
1726
1724
|
multi: true
|
|
1727
1725
|
}], imports: [i1.SkyI18nModule] });
|
|
1728
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1726
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyCoreResourcesModule, decorators: [{
|
|
1729
1727
|
type: i0.NgModule,
|
|
1730
1728
|
args: [{
|
|
1731
1729
|
exports: [i1.SkyI18nModule],
|
|
@@ -2014,7 +2012,7 @@
|
|
|
2014
2012
|
ar[i] = from[i];
|
|
2015
2013
|
}
|
|
2016
2014
|
}
|
|
2017
|
-
return to.concat(ar || from);
|
|
2015
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
2018
2016
|
}
|
|
2019
2017
|
function __await(v) {
|
|
2020
2018
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
@@ -2346,9 +2344,9 @@
|
|
|
2346
2344
|
};
|
|
2347
2345
|
return SkyNumericService;
|
|
2348
2346
|
}());
|
|
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.
|
|
2347
|
+
SkyNumericService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyNumericService, deps: [{ token: i1__namespace.SkyLibResourcesService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
2348
|
+
SkyNumericService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyNumericService, providedIn: 'any' });
|
|
2349
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyNumericService, decorators: [{
|
|
2352
2350
|
type: i0.Injectable,
|
|
2353
2351
|
args: [{
|
|
2354
2352
|
providedIn: 'any'
|
|
@@ -2366,14 +2364,18 @@
|
|
|
2366
2364
|
* ```
|
|
2367
2365
|
*/
|
|
2368
2366
|
var SkyNumericPipe = /** @class */ (function () {
|
|
2369
|
-
function SkyNumericPipe(localeProvider, numericService) {
|
|
2367
|
+
function SkyNumericPipe(localeProvider, numericService, changeDetector) {
|
|
2368
|
+
var _this = this;
|
|
2370
2369
|
this.localeProvider = localeProvider;
|
|
2371
2370
|
this.numericService = numericService;
|
|
2371
|
+
this.changeDetector = changeDetector;
|
|
2372
2372
|
this.ngUnsubscribe = new rxjs.Subject();
|
|
2373
2373
|
this.localeProvider.getLocaleInfo()
|
|
2374
2374
|
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
2375
2375
|
.subscribe(function (localeInfo) {
|
|
2376
|
-
|
|
2376
|
+
_this.providerLocale = localeInfo.locale;
|
|
2377
|
+
numericService.currentLocale = _this.providerLocale;
|
|
2378
|
+
_this.changeDetector.markForCheck();
|
|
2377
2379
|
});
|
|
2378
2380
|
}
|
|
2379
2381
|
SkyNumericPipe.prototype.ngOnDestroy = function () {
|
|
@@ -2381,13 +2383,20 @@
|
|
|
2381
2383
|
this.ngUnsubscribe.complete();
|
|
2382
2384
|
};
|
|
2383
2385
|
SkyNumericPipe.prototype.transform = function (value, config) {
|
|
2386
|
+
var _a;
|
|
2387
|
+
var newCacheKey = (config ? JSON.stringify(config, Object.keys(config).sort()) : '') + (value + "_" + ((config === null || config === void 0 ? void 0 : config.locale) || this.providerLocale));
|
|
2388
|
+
/* If the value and locale are the same as the last transform then return the previous value
|
|
2389
|
+
instead of reformatting. */
|
|
2390
|
+
if (this.formattedValue && this.cacheKey === newCacheKey) {
|
|
2391
|
+
return this.formattedValue;
|
|
2392
|
+
}
|
|
2384
2393
|
var options = new NumericOptions();
|
|
2385
2394
|
// The default number of digits is `1`. When truncate is disabled, set digits
|
|
2386
2395
|
// to `0` to avoid the unnecessary addition of `.0` at the end of the formatted number.
|
|
2387
2396
|
if (config &&
|
|
2388
2397
|
config.truncate === false &&
|
|
2389
2398
|
config.digits === undefined) {
|
|
2390
|
-
|
|
2399
|
+
options.digits = 0;
|
|
2391
2400
|
}
|
|
2392
2401
|
// If the minimum digits is less than the set maximum digits then throw an error
|
|
2393
2402
|
if (config &&
|
|
@@ -2400,37 +2409,43 @@
|
|
|
2400
2409
|
else if (config &&
|
|
2401
2410
|
config.minDigits &&
|
|
2402
2411
|
!config.digits) {
|
|
2403
|
-
|
|
2412
|
+
options.digits = config.minDigits;
|
|
2404
2413
|
}
|
|
2405
2414
|
Object.assign(options, config);
|
|
2406
|
-
|
|
2415
|
+
// Assign properties for proper result caching.
|
|
2416
|
+
this.rawValue = value;
|
|
2417
|
+
this.lastTransformLocale = (_a = config === null || config === void 0 ? void 0 : config.locale) !== null && _a !== void 0 ? _a : this.providerLocale;
|
|
2418
|
+
this.cacheKey = newCacheKey;
|
|
2419
|
+
this.formattedValue = this.numericService.formatNumber(value, options);
|
|
2420
|
+
return this.formattedValue;
|
|
2407
2421
|
};
|
|
2408
2422
|
return SkyNumericPipe;
|
|
2409
2423
|
}());
|
|
2410
|
-
SkyNumericPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2411
|
-
SkyNumericPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.
|
|
2412
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2424
|
+
SkyNumericPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyNumericPipe, deps: [{ token: i1__namespace.SkyAppLocaleProvider }, { token: SkyNumericService }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
2425
|
+
SkyNumericPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyNumericPipe, name: "skyNumeric", pure: false });
|
|
2426
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyNumericPipe, decorators: [{
|
|
2413
2427
|
type: i0.Pipe,
|
|
2414
2428
|
args: [{
|
|
2415
|
-
name: 'skyNumeric'
|
|
2429
|
+
name: 'skyNumeric',
|
|
2430
|
+
pure: false
|
|
2416
2431
|
}]
|
|
2417
|
-
}], ctorParameters: function () { return [{ type: i1__namespace.SkyAppLocaleProvider }, { type: SkyNumericService }]; } });
|
|
2432
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.SkyAppLocaleProvider }, { type: SkyNumericService }, { type: i0__namespace.ChangeDetectorRef }]; } });
|
|
2418
2433
|
|
|
2419
2434
|
var SkyNumericModule = /** @class */ (function () {
|
|
2420
2435
|
function SkyNumericModule() {
|
|
2421
2436
|
}
|
|
2422
2437
|
return SkyNumericModule;
|
|
2423
2438
|
}());
|
|
2424
|
-
SkyNumericModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2425
|
-
SkyNumericModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
2439
|
+
SkyNumericModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyNumericModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2440
|
+
SkyNumericModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyNumericModule, declarations: [SkyNumericPipe], imports: [i1.SkyI18nModule,
|
|
2426
2441
|
SkyCoreResourcesModule], exports: [SkyNumericPipe] });
|
|
2427
|
-
SkyNumericModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
2442
|
+
SkyNumericModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyNumericModule, providers: [
|
|
2428
2443
|
SkyNumericPipe
|
|
2429
2444
|
], imports: [[
|
|
2430
2445
|
i1.SkyI18nModule,
|
|
2431
2446
|
SkyCoreResourcesModule
|
|
2432
2447
|
]] });
|
|
2433
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2448
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyNumericModule, decorators: [{
|
|
2434
2449
|
type: i0.NgModule,
|
|
2435
2450
|
args: [{
|
|
2436
2451
|
declarations: [
|
|
@@ -2648,14 +2663,14 @@
|
|
|
2648
2663
|
};
|
|
2649
2664
|
return SkyOverlayComponent;
|
|
2650
2665
|
}());
|
|
2651
|
-
SkyOverlayComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2652
|
-
SkyOverlayComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
2653
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2666
|
+
SkyOverlayComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", 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 });
|
|
2667
|
+
SkyOverlayComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", 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\n class=\"sky-overlay-content\"\n #overlayContentRef\n >\n <ng-template\n #target\n >\n </ng-template>\n </div>\n <div *ngIf=\"showBackdrop\"\n class=\"sky-overlay-backdrop\"\n ></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 });
|
|
2668
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyOverlayComponent, decorators: [{
|
|
2654
2669
|
type: i0.Component,
|
|
2655
2670
|
args: [{
|
|
2656
2671
|
selector: 'sky-overlay',
|
|
2657
|
-
|
|
2658
|
-
|
|
2672
|
+
template: "<div\n [class]=\"wrapperClass\"\n [style.zIndex]=\"zIndex\"\n [ngClass]=\"{\n 'enable-pointer-events-pass-through': enablePointerEvents,\n 'sky-overlay': true\n }\"\n #overlayRef\n>\n <div\n class=\"sky-overlay-content\"\n #overlayContentRef\n >\n <ng-template\n #target\n >\n </ng-template>\n </div>\n <div *ngIf=\"showBackdrop\"\n class=\"sky-overlay-backdrop\"\n ></div>\n</div>\n",
|
|
2673
|
+
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"],
|
|
2659
2674
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
2660
2675
|
}]
|
|
2661
2676
|
}], ctorParameters: function () {
|
|
@@ -2687,12 +2702,12 @@
|
|
|
2687
2702
|
}
|
|
2688
2703
|
return SkyOverlayModule;
|
|
2689
2704
|
}());
|
|
2690
|
-
SkyOverlayModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2691
|
-
SkyOverlayModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
2692
|
-
SkyOverlayModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
2705
|
+
SkyOverlayModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyOverlayModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2706
|
+
SkyOverlayModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyOverlayModule, declarations: [SkyOverlayComponent], imports: [i4.CommonModule] });
|
|
2707
|
+
SkyOverlayModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyOverlayModule, imports: [[
|
|
2693
2708
|
i4.CommonModule
|
|
2694
2709
|
]] });
|
|
2695
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2710
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyOverlayModule, decorators: [{
|
|
2696
2711
|
type: i0.NgModule,
|
|
2697
2712
|
args: [{
|
|
2698
2713
|
imports: [
|
|
@@ -2738,9 +2753,9 @@
|
|
|
2738
2753
|
};
|
|
2739
2754
|
return SkyOverlayAdapterService;
|
|
2740
2755
|
}());
|
|
2741
|
-
SkyOverlayAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2742
|
-
SkyOverlayAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
2743
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2756
|
+
SkyOverlayAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyOverlayAdapterService, deps: [{ token: i0__namespace.RendererFactory2 }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
2757
|
+
SkyOverlayAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyOverlayAdapterService, providedIn: 'root' });
|
|
2758
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyOverlayAdapterService, decorators: [{
|
|
2744
2759
|
type: i0.Injectable,
|
|
2745
2760
|
args: [{
|
|
2746
2761
|
providedIn: 'root'
|
|
@@ -2851,9 +2866,9 @@
|
|
|
2851
2866
|
return SkyOverlayService;
|
|
2852
2867
|
}());
|
|
2853
2868
|
SkyOverlayService.overlays = [];
|
|
2854
|
-
SkyOverlayService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2855
|
-
SkyOverlayService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
2856
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2869
|
+
SkyOverlayService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", 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 });
|
|
2870
|
+
SkyOverlayService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyOverlayService, providedIn: 'root' });
|
|
2871
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyOverlayService, decorators: [{
|
|
2857
2872
|
type: i0.Injectable,
|
|
2858
2873
|
args: [{
|
|
2859
2874
|
providedIn: 'root'
|
|
@@ -2892,9 +2907,9 @@
|
|
|
2892
2907
|
};
|
|
2893
2908
|
return SkyPercentPipe;
|
|
2894
2909
|
}());
|
|
2895
|
-
SkyPercentPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2896
|
-
SkyPercentPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.
|
|
2897
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2910
|
+
SkyPercentPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyPercentPipe, deps: [{ token: i1__namespace.SkyAppLocaleProvider }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
2911
|
+
SkyPercentPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyPercentPipe, name: "skyPercent", pure: false });
|
|
2912
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyPercentPipe, decorators: [{
|
|
2898
2913
|
type: i0.Pipe,
|
|
2899
2914
|
args: [{
|
|
2900
2915
|
name: 'skyPercent',
|
|
@@ -2907,16 +2922,16 @@
|
|
|
2907
2922
|
}
|
|
2908
2923
|
return SkyPercentPipeModule;
|
|
2909
2924
|
}());
|
|
2910
|
-
SkyPercentPipeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2911
|
-
SkyPercentPipeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
2925
|
+
SkyPercentPipeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyPercentPipeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2926
|
+
SkyPercentPipeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyPercentPipeModule, declarations: [SkyPercentPipe], imports: [i4.CommonModule,
|
|
2912
2927
|
SkyCoreResourcesModule], exports: [SkyPercentPipe] });
|
|
2913
|
-
SkyPercentPipeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
2928
|
+
SkyPercentPipeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyPercentPipeModule, providers: [
|
|
2914
2929
|
SkyPercentPipe
|
|
2915
2930
|
], imports: [[
|
|
2916
2931
|
i4.CommonModule,
|
|
2917
2932
|
SkyCoreResourcesModule
|
|
2918
2933
|
]] });
|
|
2919
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2934
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyPercentPipeModule, decorators: [{
|
|
2920
2935
|
type: i0.NgModule,
|
|
2921
2936
|
args: [{
|
|
2922
2937
|
declarations: [
|
|
@@ -2935,40 +2950,132 @@
|
|
|
2935
2950
|
}]
|
|
2936
2951
|
}] });
|
|
2937
2952
|
|
|
2953
|
+
function notifySubscribers(subscribers, item) {
|
|
2954
|
+
var e_1, _a;
|
|
2955
|
+
try {
|
|
2956
|
+
for (var subscribers_1 = __values(subscribers), subscribers_1_1 = subscribers_1.next(); !subscribers_1_1.done; subscribers_1_1 = subscribers_1.next()) {
|
|
2957
|
+
var subscriber = subscribers_1_1.value;
|
|
2958
|
+
subscriber.next(item);
|
|
2959
|
+
}
|
|
2960
|
+
}
|
|
2961
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2962
|
+
finally {
|
|
2963
|
+
try {
|
|
2964
|
+
if (subscribers_1_1 && !subscribers_1_1.done && (_a = subscribers_1.return)) _a.call(subscribers_1);
|
|
2965
|
+
}
|
|
2966
|
+
finally { if (e_1) throw e_1.error; }
|
|
2967
|
+
}
|
|
2968
|
+
}
|
|
2938
2969
|
var SkyScrollableHostService = /** @class */ (function () {
|
|
2939
2970
|
function SkyScrollableHostService(mutationObserverSvc, windowRef) {
|
|
2940
2971
|
this.mutationObserverSvc = mutationObserverSvc;
|
|
2941
2972
|
this.windowRef = windowRef;
|
|
2942
2973
|
}
|
|
2943
|
-
|
|
2974
|
+
/**
|
|
2975
|
+
* Returns the given element's current scrollable host
|
|
2976
|
+
* @param elementRef The element whose scrollable host is being requested
|
|
2977
|
+
* @returns The current scrollable host
|
|
2978
|
+
*/
|
|
2979
|
+
SkyScrollableHostService.prototype.getScrollableHost = function (elementRef) {
|
|
2944
2980
|
return this.findScrollableHost(elementRef.nativeElement);
|
|
2945
2981
|
};
|
|
2946
|
-
|
|
2982
|
+
/**
|
|
2983
|
+
* Returns an observable which emits the given element's current scrollable host
|
|
2984
|
+
* @param elementRef The element whose scrollable host is being requested
|
|
2985
|
+
* @param completionObservable An observable which alerts the internal observers that they should complete
|
|
2986
|
+
* @returns An observable which emits the current scrollable host
|
|
2987
|
+
* @internal
|
|
2988
|
+
*/
|
|
2989
|
+
SkyScrollableHostService.prototype.watchScrollableHost = function (elementRef) {
|
|
2947
2990
|
var _this = this;
|
|
2948
|
-
var
|
|
2949
|
-
var
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2991
|
+
var subscribers = [];
|
|
2992
|
+
var mutationObserver;
|
|
2993
|
+
return new rxjs.Observable(function (subscriber) {
|
|
2994
|
+
subscribers.push(subscriber);
|
|
2995
|
+
var scrollableHost = _this.findScrollableHost(elementRef.nativeElement);
|
|
2996
|
+
if (subscribers.length === 1) {
|
|
2997
|
+
mutationObserver = _this.mutationObserverSvc.create(function () {
|
|
2998
|
+
var newScrollableHost = _this.findScrollableHost(elementRef.nativeElement);
|
|
2999
|
+
if (newScrollableHost !== scrollableHost) {
|
|
3000
|
+
scrollableHost = newScrollableHost;
|
|
3001
|
+
_this.observeForScrollableHostChanges(scrollableHost, mutationObserver);
|
|
3002
|
+
notifySubscribers(subscribers, scrollableHost);
|
|
3003
|
+
}
|
|
3004
|
+
});
|
|
2954
3005
|
_this.observeForScrollableHostChanges(scrollableHost, mutationObserver);
|
|
2955
|
-
behaviorSubject.next(scrollableHost);
|
|
2956
3006
|
}
|
|
3007
|
+
subscriber.next(scrollableHost);
|
|
3008
|
+
subscriber.add(function () {
|
|
3009
|
+
var subIndex = subscribers.indexOf(subscriber);
|
|
3010
|
+
/* sanity check */
|
|
3011
|
+
/* istanbul ignore else */
|
|
3012
|
+
if (subIndex >= 0) {
|
|
3013
|
+
subscribers.splice(subIndex, 1);
|
|
3014
|
+
}
|
|
3015
|
+
if (subscribers.length === 0) {
|
|
3016
|
+
mutationObserver.disconnect();
|
|
3017
|
+
}
|
|
3018
|
+
});
|
|
2957
3019
|
});
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
3020
|
+
};
|
|
3021
|
+
/**
|
|
3022
|
+
* 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.
|
|
3023
|
+
* @param elementRef The element whose scrollable host scroll events are being requested
|
|
3024
|
+
* @param completionObservable An observable which alerts the internal observers that they should complete
|
|
3025
|
+
* @returns An observable which emits the scroll events from the given element's scrollable host
|
|
3026
|
+
*/
|
|
3027
|
+
SkyScrollableHostService.prototype.watchScrollableHostScrollEvents = function (elementRef) {
|
|
3028
|
+
var _this = this;
|
|
3029
|
+
var subscribers = [];
|
|
3030
|
+
var newScrollableHostObservable = new rxjs.Subject();
|
|
3031
|
+
var scrollableHostSubscription;
|
|
3032
|
+
var scrollEventSubscription;
|
|
3033
|
+
return new rxjs.Observable(function (subscriber) {
|
|
3034
|
+
subscribers.push(subscriber);
|
|
3035
|
+
if (subscribers.length === 1) {
|
|
3036
|
+
scrollableHostSubscription = _this.watchScrollableHost(elementRef)
|
|
3037
|
+
.subscribe(function (scrollableHost) {
|
|
3038
|
+
newScrollableHostObservable.next();
|
|
3039
|
+
newScrollableHostObservable.complete();
|
|
3040
|
+
newScrollableHostObservable = new rxjs.Subject();
|
|
3041
|
+
scrollEventSubscription = rxjs.fromEvent(scrollableHost, 'scroll')
|
|
3042
|
+
.pipe(operators.takeUntil(newScrollableHostObservable))
|
|
3043
|
+
.subscribe(function () {
|
|
3044
|
+
notifySubscribers(subscribers);
|
|
3045
|
+
});
|
|
3046
|
+
});
|
|
3047
|
+
}
|
|
3048
|
+
subscriber.add(function () {
|
|
3049
|
+
var subIndex = subscribers.indexOf(subscriber);
|
|
3050
|
+
/* sanity check */
|
|
3051
|
+
/* istanbul ignore else */
|
|
3052
|
+
if (subIndex >= 0) {
|
|
3053
|
+
subscribers.splice(subIndex, 1);
|
|
3054
|
+
}
|
|
3055
|
+
if (subscribers.length === 0) {
|
|
3056
|
+
scrollableHostSubscription.unsubscribe();
|
|
3057
|
+
scrollEventSubscription.unsubscribe();
|
|
3058
|
+
newScrollableHostObservable.complete();
|
|
3059
|
+
}
|
|
3060
|
+
});
|
|
2961
3061
|
});
|
|
2962
|
-
return behaviorSubject;
|
|
2963
3062
|
};
|
|
2964
3063
|
SkyScrollableHostService.prototype.findScrollableHost = function (element) {
|
|
2965
3064
|
var regex = /(auto|scroll)/;
|
|
2966
3065
|
var windowObj = this.windowRef.nativeWindow;
|
|
2967
3066
|
var bodyObj = windowObj.document.body;
|
|
3067
|
+
/* Sanity check */
|
|
3068
|
+
if (!element) {
|
|
3069
|
+
return windowObj;
|
|
3070
|
+
}
|
|
2968
3071
|
var style = windowObj.getComputedStyle(element);
|
|
2969
3072
|
var parent = element;
|
|
2970
3073
|
do {
|
|
2971
3074
|
parent = parent.parentNode;
|
|
3075
|
+
/* Sanity check for if this function is called for an element which has been removed from the DOM */
|
|
3076
|
+
if (!(parent instanceof HTMLElement)) {
|
|
3077
|
+
return windowObj;
|
|
3078
|
+
}
|
|
2972
3079
|
style = windowObj.getComputedStyle(parent);
|
|
2973
3080
|
} while (!regex.test(style.overflow) &&
|
|
2974
3081
|
!regex.test(style.overflowY) &&
|
|
@@ -2997,9 +3104,9 @@
|
|
|
2997
3104
|
};
|
|
2998
3105
|
return SkyScrollableHostService;
|
|
2999
3106
|
}());
|
|
3000
|
-
SkyScrollableHostService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
3001
|
-
SkyScrollableHostService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
3002
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
3107
|
+
SkyScrollableHostService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyScrollableHostService, deps: [{ token: MutationObserverService }, { token: SkyAppWindowRef }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
3108
|
+
SkyScrollableHostService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyScrollableHostService, providedIn: 'root' });
|
|
3109
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyScrollableHostService, decorators: [{
|
|
3003
3110
|
type: i0.Injectable,
|
|
3004
3111
|
args: [{
|
|
3005
3112
|
providedIn: 'root'
|
|
@@ -3025,9 +3132,9 @@
|
|
|
3025
3132
|
};
|
|
3026
3133
|
return SkyAppTitleService;
|
|
3027
3134
|
}());
|
|
3028
|
-
SkyAppTitleService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
3029
|
-
SkyAppTitleService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
3030
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
3135
|
+
SkyAppTitleService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyAppTitleService, deps: [{ token: i1__namespace$1.Title }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
3136
|
+
SkyAppTitleService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyAppTitleService, providedIn: 'root' });
|
|
3137
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyAppTitleService, decorators: [{
|
|
3031
3138
|
type: i0.Injectable,
|
|
3032
3139
|
args: [{
|
|
3033
3140
|
providedIn: 'root'
|
|
@@ -3046,9 +3153,9 @@
|
|
|
3046
3153
|
};
|
|
3047
3154
|
return SkyUIConfigService;
|
|
3048
3155
|
}());
|
|
3049
|
-
SkyUIConfigService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
3050
|
-
SkyUIConfigService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
3051
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
3156
|
+
SkyUIConfigService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyUIConfigService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
3157
|
+
SkyUIConfigService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyUIConfigService, providedIn: 'root' });
|
|
3158
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyUIConfigService, decorators: [{
|
|
3052
3159
|
type: i0.Injectable,
|
|
3053
3160
|
args: [{
|
|
3054
3161
|
providedIn: 'root'
|
|
@@ -3060,9 +3167,9 @@
|
|
|
3060
3167
|
}
|
|
3061
3168
|
return SkyViewkeeperHostOptions;
|
|
3062
3169
|
}());
|
|
3063
|
-
SkyViewkeeperHostOptions.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
3064
|
-
SkyViewkeeperHostOptions.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
3065
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
3170
|
+
SkyViewkeeperHostOptions.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyViewkeeperHostOptions, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
3171
|
+
SkyViewkeeperHostOptions.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyViewkeeperHostOptions });
|
|
3172
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyViewkeeperHostOptions, decorators: [{
|
|
3066
3173
|
type: i0.Injectable
|
|
3067
3174
|
}] });
|
|
3068
3175
|
|
|
@@ -3313,9 +3420,9 @@
|
|
|
3313
3420
|
};
|
|
3314
3421
|
return SkyViewkeeperService;
|
|
3315
3422
|
}());
|
|
3316
|
-
SkyViewkeeperService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
3317
|
-
SkyViewkeeperService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
3318
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
3423
|
+
SkyViewkeeperService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyViewkeeperService, deps: [{ token: SkyViewkeeperHostOptions, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
3424
|
+
SkyViewkeeperService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyViewkeeperService, providedIn: 'root' });
|
|
3425
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyViewkeeperService, decorators: [{
|
|
3319
3426
|
type: i0.Injectable,
|
|
3320
3427
|
args: [{
|
|
3321
3428
|
providedIn: 'root'
|
|
@@ -3424,7 +3531,7 @@
|
|
|
3424
3531
|
else {
|
|
3425
3532
|
this.scrollableHostWatchUnsubscribe = new rxjs.Subject();
|
|
3426
3533
|
}
|
|
3427
|
-
this.scrollableHostService.watchScrollableHost(this.el
|
|
3534
|
+
this.scrollableHostService.watchScrollableHost(this.el)
|
|
3428
3535
|
.pipe(operators.takeUntil(this.scrollableHostWatchUnsubscribe))
|
|
3429
3536
|
.subscribe(function (scrollableHost) {
|
|
3430
3537
|
var e_3, _a;
|
|
@@ -3456,9 +3563,9 @@
|
|
|
3456
3563
|
};
|
|
3457
3564
|
return SkyViewkeeperDirective;
|
|
3458
3565
|
}());
|
|
3459
|
-
SkyViewkeeperDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
3460
|
-
SkyViewkeeperDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.
|
|
3461
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
3566
|
+
SkyViewkeeperDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyViewkeeperDirective, deps: [{ token: i0__namespace.ElementRef }, { token: MutationObserverService }, { token: SkyViewkeeperService }, { token: SkyScrollableHostService, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
3567
|
+
SkyViewkeeperDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: SkyViewkeeperDirective, selector: "[skyViewkeeper]", inputs: { skyViewkeeper: "skyViewkeeper" }, ngImport: i0__namespace });
|
|
3568
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyViewkeeperDirective, decorators: [{
|
|
3462
3569
|
type: i0.Directive,
|
|
3463
3570
|
args: [{
|
|
3464
3571
|
selector: '[skyViewkeeper]'
|
|
@@ -3476,10 +3583,10 @@
|
|
|
3476
3583
|
}
|
|
3477
3584
|
return SkyViewkeeperModule;
|
|
3478
3585
|
}());
|
|
3479
|
-
SkyViewkeeperModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
3480
|
-
SkyViewkeeperModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
3481
|
-
SkyViewkeeperModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
3482
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
3586
|
+
SkyViewkeeperModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyViewkeeperModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
3587
|
+
SkyViewkeeperModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyViewkeeperModule, declarations: [SkyViewkeeperDirective], exports: [SkyViewkeeperDirective] });
|
|
3588
|
+
SkyViewkeeperModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyViewkeeperModule });
|
|
3589
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyViewkeeperModule, decorators: [{
|
|
3483
3590
|
type: i0.NgModule,
|
|
3484
3591
|
args: [{
|
|
3485
3592
|
declarations: [
|
|
@@ -3529,11 +3636,11 @@
|
|
|
3529
3636
|
exports.SkyViewkeeperModule = SkyViewkeeperModule;
|
|
3530
3637
|
exports.SkyViewkeeperService = SkyViewkeeperService;
|
|
3531
3638
|
exports.getWindow = getWindow;
|
|
3532
|
-
exports
|
|
3533
|
-
exports
|
|
3534
|
-
exports
|
|
3639
|
+
exports["λ1"] = SkyAffixDirective;
|
|
3640
|
+
exports["λ2"] = SkyIdDirective;
|
|
3641
|
+
exports["λ3"] = SkyViewkeeperDirective;
|
|
3535
3642
|
|
|
3536
3643
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3537
3644
|
|
|
3538
|
-
}))
|
|
3645
|
+
}));
|
|
3539
3646
|
//# sourceMappingURL=skyux-core.umd.js.map
|