@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
@@ -6,7 +6,7 @@ import { BehaviorSubject, of } from 'rxjs';
|
|
6
6
|
class MockSkyMediaQueryService extends SkyMediaQueryService {
|
7
7
|
constructor() {
|
8
8
|
super(new NgZone({
|
9
|
-
enableLongStackTrace: true
|
9
|
+
enableLongStackTrace: true,
|
10
10
|
}));
|
11
11
|
this.currentMockSubject = new BehaviorSubject(this.current);
|
12
12
|
this._currentBreakpoints = SkyMediaBreakpoints.md;
|
@@ -21,7 +21,7 @@ class MockSkyMediaQueryService extends SkyMediaQueryService {
|
|
21
21
|
return this.currentMockSubject.subscribe({
|
22
22
|
next: (breakpoints) => {
|
23
23
|
listener(breakpoints);
|
24
|
-
}
|
24
|
+
},
|
25
25
|
});
|
26
26
|
}
|
27
27
|
fire(args) {
|
@@ -34,9 +34,9 @@ MockSkyMediaQueryService.xs = '(max-width: 767px)';
|
|
34
34
|
MockSkyMediaQueryService.sm = '(min-width: 768px) and (max-width: 991px)';
|
35
35
|
MockSkyMediaQueryService.md = '(min-width: 992px) and (max-width: 1199px)';
|
36
36
|
MockSkyMediaQueryService.lg = '(min-width: 1200px)';
|
37
|
-
MockSkyMediaQueryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
38
|
-
MockSkyMediaQueryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
37
|
+
MockSkyMediaQueryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MockSkyMediaQueryService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
38
|
+
MockSkyMediaQueryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MockSkyMediaQueryService });
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MockSkyMediaQueryService, decorators: [{
|
40
40
|
type: Injectable
|
41
41
|
}], ctorParameters: function () { return []; } });
|
42
42
|
|
@@ -55,46 +55,43 @@ class MockSkyUIConfigService extends SkyUIConfigService {
|
|
55
55
|
tiles: [
|
56
56
|
{
|
57
57
|
id: 'tile-1',
|
58
|
-
isCollapsed: true
|
58
|
+
isCollapsed: true,
|
59
59
|
},
|
60
60
|
{
|
61
61
|
id: 'tile-2',
|
62
|
-
isCollapsed: true
|
63
|
-
}
|
64
|
-
]
|
62
|
+
isCollapsed: true,
|
63
|
+
},
|
64
|
+
],
|
65
65
|
},
|
66
66
|
multiColumn: [
|
67
67
|
{
|
68
68
|
tiles: [
|
69
69
|
{
|
70
70
|
id: 'tile-2',
|
71
|
-
isCollapsed: true
|
72
|
-
}
|
73
|
-
]
|
71
|
+
isCollapsed: true,
|
72
|
+
},
|
73
|
+
],
|
74
74
|
},
|
75
75
|
{
|
76
76
|
tiles: [
|
77
77
|
{
|
78
78
|
id: 'tile-1',
|
79
|
-
isCollapsed: true
|
80
|
-
}
|
81
|
-
]
|
82
|
-
}
|
83
|
-
]
|
79
|
+
isCollapsed: true,
|
80
|
+
},
|
81
|
+
],
|
82
|
+
},
|
83
|
+
],
|
84
84
|
},
|
85
|
-
defaultSettings: [
|
86
|
-
|
87
|
-
'tile-2'
|
88
|
-
]
|
89
|
-
}
|
85
|
+
defaultSettings: ['tile-1', 'tile-2'],
|
86
|
+
},
|
90
87
|
});
|
91
88
|
}
|
92
89
|
}
|
93
90
|
}
|
94
91
|
}
|
95
|
-
MockSkyUIConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
96
|
-
MockSkyUIConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
97
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
92
|
+
MockSkyUIConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MockSkyUIConfigService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
93
|
+
MockSkyUIConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MockSkyUIConfigService });
|
94
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MockSkyUIConfigService, decorators: [{
|
98
95
|
type: Injectable
|
99
96
|
}] });
|
100
97
|
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"skyux-core-testing.js","sources":["../../../projects/core/testing/src/mock-media-query.service.ts","../../../projects/core/testing/src/mock-ui-config.service.ts","../../../projects/core/testing/src/skyux-core-testing.ts"],"sourcesContent":["import {
|
1
|
+
{"version":3,"file":"skyux-core-testing.js","sources":["../../../projects/core/testing/src/mock-media-query.service.ts","../../../projects/core/testing/src/mock-ui-config.service.ts","../../../projects/core/testing/src/skyux-core-testing.ts"],"sourcesContent":["import { Injectable, NgZone } from '@angular/core';\n\nimport {\n SkyMediaBreakpoints,\n SkyMediaQueryListener,\n SkyMediaQueryService,\n} from '@skyux/core';\n\nimport { BehaviorSubject, Subscription } from 'rxjs';\n\n@Injectable()\nexport class MockSkyMediaQueryService extends SkyMediaQueryService {\n public static xs = '(max-width: 767px)';\n public static sm = '(min-width: 768px) and (max-width: 991px)';\n public static md = '(min-width: 992px) and (max-width: 1199px)';\n public static lg = '(min-width: 1200px)';\n\n public get current(): SkyMediaBreakpoints {\n return this._currentBreakpoints;\n }\n\n public set current(breakpoints: SkyMediaBreakpoints) {\n this._currentBreakpoints = breakpoints;\n }\n\n public currentMockSubject = new BehaviorSubject<SkyMediaBreakpoints>(\n this.current\n );\n\n private _currentBreakpoints = SkyMediaBreakpoints.md;\n\n constructor() {\n super(\n new NgZone({\n enableLongStackTrace: true,\n })\n );\n }\n\n public subscribe(listener: SkyMediaQueryListener): Subscription {\n return this.currentMockSubject.subscribe({\n next: (breakpoints: SkyMediaBreakpoints) => {\n listener(breakpoints);\n },\n });\n }\n\n public fire(args: SkyMediaBreakpoints): void {\n this._currentBreakpoints = args;\n this.currentMockSubject.next(this._currentBreakpoints);\n }\n\n public destroy(): void {}\n}\n","import { Injectable } from '@angular/core';\n\nimport { SkyUIConfigService } from '@skyux/core';\n\nimport { of as observableOf } from 'rxjs';\n\n@Injectable()\nexport class MockSkyUIConfigService extends SkyUIConfigService {\n public getConfig(key: string, defaultConfig?: any): any {\n switch (key) {\n case 'defaultSettings':\n return observableOf(defaultConfig);\n case 'badData':\n return observableOf({ invalidProperty: 'invalidData' });\n default: {\n return observableOf({\n settings: {\n userSettings: {\n singleColumn: {\n tiles: [\n {\n id: 'tile-1',\n isCollapsed: true,\n },\n {\n id: 'tile-2',\n isCollapsed: true,\n },\n ],\n },\n multiColumn: [\n {\n tiles: [\n {\n id: 'tile-2',\n isCollapsed: true,\n },\n ],\n },\n {\n tiles: [\n {\n id: 'tile-1',\n isCollapsed: true,\n },\n ],\n },\n ],\n },\n defaultSettings: ['tile-1', 'tile-2'],\n },\n });\n }\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["observableOf"],"mappings":";;;;;MAWa,wBAAyB,SAAQ,oBAAoB;IAoBhE;QACE,KAAK,CACH,IAAI,MAAM,CAAC;YACT,oBAAoB,EAAE,IAAI;SAC3B,CAAC,CACH,CAAC;QAXG,uBAAkB,GAAG,IAAI,eAAe,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