@skyux/indicators 5.0.0-beta.1 → 5.0.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/LICENSE +21 -0
- package/bundles/skyux-indicators-testing.umd.js +15 -11
- package/bundles/skyux-indicators-testing.umd.js.map +1 -1
- package/bundles/skyux-indicators.umd.js +1113 -858
- package/bundles/skyux-indicators.umd.js.map +1 -1
- package/documentation.json +6097 -0
- package/esm2015/modules/alert/alert.component.js +27 -24
- package/esm2015/modules/alert/alert.module.js +31 -18
- package/esm2015/modules/chevron/chevron.component.js +24 -24
- package/esm2015/modules/chevron/chevron.module.js +29 -18
- package/esm2015/modules/help-inline/help-inline.component.js +20 -15
- package/esm2015/modules/help-inline/help-inline.module.js +31 -18
- package/esm2015/modules/icon/icon-class-list.pipe.js +13 -14
- package/esm2015/modules/icon/icon-resolver.service.js +11 -15
- package/esm2015/modules/icon/icon-stack-item.js +2 -1
- package/esm2015/modules/icon/icon-stack.component.js +22 -21
- package/esm2015/modules/icon/icon.component.js +27 -28
- package/esm2015/modules/icon/icon.module.js +30 -20
- package/esm2015/modules/icon/types/icon-type.js +2 -1
- package/esm2015/modules/icon/types/icon-variant-type.js +2 -1
- package/esm2015/modules/key-info/key-info-label.component.js +13 -11
- package/esm2015/modules/key-info/key-info-value.component.js +13 -11
- package/esm2015/modules/key-info/key-info.component.js +17 -15
- package/esm2015/modules/key-info/key-info.module.js +30 -21
- package/esm2015/modules/label/label-type.js +2 -1
- package/esm2015/modules/label/label.component.js +19 -15
- package/esm2015/modules/label/label.module.js +24 -17
- package/esm2015/modules/shared/indicator-description-type.js +2 -1
- package/esm2015/modules/shared/indicator-icon-type.js +2 -1
- package/esm2015/modules/shared/indicator-icon-utility.js +1 -1
- package/esm2015/modules/shared/indicator-icon.js +2 -1
- package/esm2015/modules/shared/sky-indicators-resources.module.js +41 -0
- package/esm2015/modules/status-indicator/status-indicator.component.js +26 -28
- package/esm2015/modules/status-indicator/status-indicator.module.js +29 -18
- package/esm2015/modules/text-highlight/text-highlight.directive.js +25 -25
- package/esm2015/modules/text-highlight/text-highlight.module.js +23 -18
- package/esm2015/modules/tokens/token.component.js +32 -40
- package/esm2015/modules/tokens/tokens.component.js +86 -74
- package/esm2015/modules/tokens/tokens.module.js +33 -20
- package/esm2015/modules/tokens/types/token-selected-event-args.js +2 -1
- package/esm2015/modules/tokens/types/token.js +2 -1
- package/esm2015/modules/tokens/types/tokens-message-type.js +1 -1
- package/esm2015/modules/tokens/types/tokens-message.js +2 -1
- package/esm2015/modules/wait/wait-adapter.service.js +29 -27
- package/esm2015/modules/wait/wait-page-adapter.service.js +15 -12
- package/esm2015/modules/wait/wait-page.component.js +19 -18
- package/esm2015/modules/wait/wait.component.js +35 -36
- package/esm2015/modules/wait/wait.module.js +32 -23
- package/esm2015/modules/wait/wait.service.js +37 -46
- package/esm2015/public-api.js +36 -0
- package/esm2015/skyux-indicators.js +2 -23
- package/esm2015/testing/alert-fixture.js +1 -1
- package/esm2015/testing/label-fixture.js +1 -1
- package/esm2015/testing/public-api.js +4 -0
- package/esm2015/testing/skyux-indicators-testing.js +2 -2
- package/esm2015/testing/wait-fixture.js +1 -1
- package/fesm2015/skyux-indicators-testing.js.map +1 -1
- package/fesm2015/skyux-indicators.js +752 -616
- package/fesm2015/skyux-indicators.js.map +1 -1
- package/modules/alert/alert.component.d.ts +3 -0
- package/modules/alert/alert.module.d.ts +10 -0
- package/modules/chevron/chevron.component.d.ts +4 -1
- package/modules/chevron/chevron.module.d.ts +9 -0
- package/modules/help-inline/help-inline.component.d.ts +3 -0
- package/modules/help-inline/help-inline.module.d.ts +10 -0
- package/modules/icon/icon-class-list.pipe.d.ts +3 -0
- package/modules/icon/icon-resolver.service.d.ts +3 -0
- package/modules/icon/icon-stack.component.d.ts +3 -0
- package/modules/icon/icon.component.d.ts +3 -0
- package/modules/icon/icon.module.d.ts +9 -0
- package/modules/key-info/key-info-label.component.d.ts +3 -0
- package/modules/key-info/key-info-value.component.d.ts +3 -0
- package/modules/key-info/key-info.component.d.ts +3 -0
- package/modules/key-info/key-info.module.d.ts +8 -0
- package/modules/label/label.component.d.ts +3 -0
- package/modules/label/label.module.d.ts +7 -0
- package/modules/shared/sky-indicators-resources.module.d.ts +14 -0
- package/modules/status-indicator/status-indicator.component.d.ts +3 -0
- package/modules/status-indicator/status-indicator.module.d.ts +9 -0
- package/modules/text-highlight/text-highlight.directive.d.ts +3 -0
- package/modules/text-highlight/text-highlight.module.d.ts +5 -0
- package/modules/tokens/token.component.d.ts +4 -1
- package/modules/tokens/tokens.component.d.ts +3 -0
- package/modules/tokens/tokens.module.d.ts +10 -0
- package/modules/wait/wait-adapter.service.d.ts +3 -0
- package/modules/wait/wait-page-adapter.service.d.ts +3 -0
- package/modules/wait/wait-page.component.d.ts +3 -0
- package/modules/wait/wait.component.d.ts +3 -0
- package/modules/wait/wait.module.d.ts +9 -0
- package/modules/wait/wait.service.d.ts +3 -0
- package/package.json +12 -27
- package/public-api.d.ts +33 -0
- package/skyux-indicators.d.ts +2 -22
- package/testing/package.json +2 -5
- package/testing/{public_api.d.ts → public-api.d.ts} +0 -0
- package/testing/skyux-indicators-testing.d.ts +2 -1
- package/CHANGELOG.md +0 -203
- package/bundles/skyux-indicators-testing.umd.min.js +0 -2
- package/bundles/skyux-indicators-testing.umd.min.js.map +0 -1
- package/bundles/skyux-indicators.umd.min.js +0 -16
- package/bundles/skyux-indicators.umd.min.js.map +0 -1
- package/esm2015/modules/shared/indicators-resources.module.js +0 -17
- package/esm2015/plugin-resources/indicators-resources-provider.js +0 -16
- package/esm2015/public_api.js +0 -13
- package/esm2015/testing/public_api.js +0 -4
- package/esm5/modules/alert/alert.component.js +0 -62
- package/esm5/modules/alert/alert.module.js +0 -32
- package/esm5/modules/chevron/chevron.component.js +0 -35
- package/esm5/modules/chevron/chevron.module.js +0 -30
- package/esm5/modules/help-inline/help-inline.component.js +0 -26
- package/esm5/modules/help-inline/help-inline.module.js +0 -32
- package/esm5/modules/icon/icon-class-list.pipe.js +0 -39
- package/esm5/modules/icon/icon-resolver.service.js +0 -57
- package/esm5/modules/icon/icon-stack-item.js +0 -1
- package/esm5/modules/icon/icon-stack.component.js +0 -25
- package/esm5/modules/icon/icon.component.js +0 -38
- package/esm5/modules/icon/icon.module.js +0 -31
- package/esm5/modules/icon/types/icon-type.js +0 -1
- package/esm5/modules/icon/types/icon-variant-type.js +0 -1
- package/esm5/modules/key-info/key-info-label.component.js +0 -19
- package/esm5/modules/key-info/key-info-value.component.js +0 -19
- package/esm5/modules/key-info/key-info.component.js +0 -25
- package/esm5/modules/key-info/key-info.module.js +0 -30
- package/esm5/modules/label/label-type.js +0 -1
- package/esm5/modules/label/label.component.js +0 -41
- package/esm5/modules/label/label.module.js +0 -26
- package/esm5/modules/shared/indicator-description-type.js +0 -1
- package/esm5/modules/shared/indicator-icon-type.js +0 -1
- package/esm5/modules/shared/indicator-icon-utility.js +0 -45
- package/esm5/modules/shared/indicator-icon.js +0 -1
- package/esm5/modules/shared/indicators-resources.module.js +0 -20
- package/esm5/modules/status-indicator/status-indicator.component.js +0 -111
- package/esm5/modules/status-indicator/status-indicator.module.js +0 -30
- package/esm5/modules/text-highlight/text-highlight.directive.js +0 -134
- package/esm5/modules/text-highlight/text-highlight.module.js +0 -24
- package/esm5/modules/tokens/token.component.js +0 -134
- package/esm5/modules/tokens/tokens.component.js +0 -325
- package/esm5/modules/tokens/tokens.module.js +0 -33
- package/esm5/modules/tokens/types/token-selected-event-args.js +0 -1
- package/esm5/modules/tokens/types/token.js +0 -1
- package/esm5/modules/tokens/types/tokens-message-type.js +0 -24
- package/esm5/modules/tokens/types/tokens-message.js +0 -1
- package/esm5/modules/wait/wait-adapter.service.js +0 -219
- package/esm5/modules/wait/wait-page-adapter.service.js +0 -25
- package/esm5/modules/wait/wait-page.component.js +0 -25
- package/esm5/modules/wait/wait.component.js +0 -107
- package/esm5/modules/wait/wait.module.js +0 -34
- package/esm5/modules/wait/wait.service.js +0 -176
- package/esm5/plugin-resources/indicators-resources-provider.js +0 -17
- package/esm5/public_api.js +0 -13
- package/esm5/skyux-indicators.js +0 -26
- package/esm5/testing/alert-fixture.js +0 -85
- package/esm5/testing/label-fixture.js +0 -50
- package/esm5/testing/public_api.js +0 -4
- package/esm5/testing/skyux-indicators-testing.js +0 -5
- package/esm5/testing/wait-fixture.js +0 -42
- package/fesm5/skyux-indicators-testing.js +0 -178
- package/fesm5/skyux-indicators-testing.js.map +0 -1
- package/fesm5/skyux-indicators.js +0 -1892
- package/fesm5/skyux-indicators.js.map +0 -1
- package/modules/shared/indicators-resources.module.d.ts +0 -2
- package/plugin-resources/indicators-resources-provider.d.ts +0 -5
- package/public_api.d.ts +0 -19
- package/skyux-indicators.metadata.json +0 -1
- package/src/assets/img/guidelines/alert/alert-anatomy.png +0 -0
- package/src/assets/img/guidelines/alert/alert-layout-1.png +0 -0
- package/src/assets/img/guidelines/alert/alert-layout-2.png +0 -0
- package/src/assets/img/guidelines/alert/alert-layout-3.png +0 -0
- package/src/assets/img/guidelines/alert/alert-option-1.png +0 -0
- package/src/assets/img/guidelines/alert/alert-type-1.png +0 -0
- package/src/assets/img/guidelines/alert/alert-type-2.png +0 -0
- package/src/assets/img/guidelines/alert/alert-type-3.png +0 -0
- package/src/assets/img/guidelines/alert/alert-type-4.png +0 -0
- package/src/assets/img/guidelines/alert/alert-usage-1.png +0 -0
- package/src/assets/img/guidelines/alert/alert-usage-2.png +0 -0
- package/src/assets/img/guidelines/alert/alert-usage-3.png +0 -0
- package/src/assets/img/guidelines/alert/alert-usage-4.png +0 -0
- package/src/assets/img/guidelines/alert/alert-usage-5.png +0 -0
- package/src/assets/img/guidelines/alert/alert-usage-6.png +0 -0
- package/src/assets/img/guidelines/key-info/horizontal-layout.png +0 -0
- package/src/assets/img/guidelines/key-info/key-info-anatomy.png +0 -0
- package/src/assets/img/guidelines/key-info/key-info-usage-1.png +0 -0
- package/src/assets/img/guidelines/key-info/key-info-usage-2.png +0 -0
- package/src/assets/img/guidelines/key-info/key-info-usage-3.png +0 -0
- package/src/assets/img/guidelines/key-info/key-info-usage-4.png +0 -0
- package/src/assets/img/guidelines/key-info/key-info-usage-5.png +0 -0
- package/src/assets/img/guidelines/key-info/key-info-usage-6.png +0 -0
- package/src/assets/img/guidelines/key-info/vertical-layout.png +0 -0
- package/src/assets/img/guidelines/status-indicator/status-indicator-anatomy.png +0 -0
- package/src/assets/img/guidelines/status-indicator/status-indicator-usage-1.png +0 -0
- package/src/assets/img/guidelines/status-indicator/status-indicator-usage-2-5.png +0 -0
- package/src/assets/img/guidelines/status-indicator/status-indicator-usage-2.5.png +0 -0
- package/src/assets/img/guidelines/status-indicator/status-indicator-usage-2.png +0 -0
- package/src/assets/img/guidelines/status-indicator/status-indicator-usage-3.png +0 -0
- package/src/assets/img/guidelines/status-indicator/status-indicator-usage-4.png +0 -0
- package/src/assets/img/guidelines/status-indicator/status-indicator-usage-5.png +0 -0
- package/src/assets/img/guidelines/status-indicator/status-indicator-usage-6.png +0 -0
- package/src/assets/locales/resources_en_US.json +0 -54
- package/testing/skyux-indicators-testing.metadata.json +0 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 Blackbaud
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/platform-browser'), require('@skyux-sdk/testing')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@skyux/indicators/testing', ['exports', '@angular/platform-browser', '@skyux-sdk/testing'], factory) :
|
|
4
|
-
(global = global || self, factory((global.skyux = global.skyux || {}, global.skyux.indicators = global.skyux.indicators || {}, global.skyux.indicators.testing = {}), global.ng.platformBrowser, global.testing));
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.skyux = global.skyux || {}, global.skyux.indicators = global.skyux.indicators || {}, global.skyux.indicators.testing = {}), global.ng.platformBrowser, global.testing));
|
|
5
5
|
}(this, (function (exports, platformBrowser, testing) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
get: function () {
|
|
19
19
|
return testing.SkyAppTestUtility.getText(this.debugEl);
|
|
20
20
|
},
|
|
21
|
-
enumerable:
|
|
21
|
+
enumerable: false,
|
|
22
22
|
configurable: true
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(SkyAlertFixture.prototype, "closeable", {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
var closeBtnEl = this.getCloseBtnEl();
|
|
30
30
|
return testing.SkyAppTestUtility.isVisible(closeBtnEl);
|
|
31
31
|
},
|
|
32
|
-
enumerable:
|
|
32
|
+
enumerable: false,
|
|
33
33
|
configurable: true
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(SkyAlertFixture.prototype, "closed", {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
get: function () {
|
|
40
40
|
return !testing.SkyAppTestUtility.isVisible(this.getAlertEl());
|
|
41
41
|
},
|
|
42
|
-
enumerable:
|
|
42
|
+
enumerable: false,
|
|
43
43
|
configurable: true
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(SkyAlertFixture.prototype, "alertType", {
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
}
|
|
63
63
|
return undefined;
|
|
64
64
|
},
|
|
65
|
-
enumerable:
|
|
65
|
+
enumerable: false,
|
|
66
66
|
configurable: true
|
|
67
67
|
});
|
|
68
68
|
/**
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
}
|
|
114
114
|
return undefined;
|
|
115
115
|
},
|
|
116
|
-
enumerable:
|
|
116
|
+
enumerable: false,
|
|
117
117
|
configurable: true
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(SkyLabelFixture.prototype, "text", {
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
var labelEl = this.getLabelEl();
|
|
125
125
|
return testing.SkyAppTestUtility.getText(labelEl);
|
|
126
126
|
},
|
|
127
|
-
enumerable:
|
|
127
|
+
enumerable: false,
|
|
128
128
|
configurable: true
|
|
129
129
|
});
|
|
130
130
|
SkyLabelFixture.prototype.getLabelEl = function () {
|
|
@@ -141,14 +141,14 @@
|
|
|
141
141
|
get: function () {
|
|
142
142
|
return this.innerWaitComponentContainsClass('.sky-wait-mask');
|
|
143
143
|
},
|
|
144
|
-
enumerable:
|
|
144
|
+
enumerable: false,
|
|
145
145
|
configurable: true
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(SkyWaitFixture.prototype, "isFullPage", {
|
|
148
148
|
get: function () {
|
|
149
149
|
return this.innerWaitComponentContainsClass('.sky-wait-mask-loading-fixed');
|
|
150
150
|
},
|
|
151
|
-
enumerable:
|
|
151
|
+
enumerable: false,
|
|
152
152
|
configurable: true
|
|
153
153
|
});
|
|
154
154
|
Object.defineProperty(SkyWaitFixture.prototype, "ariaLabel", {
|
|
@@ -156,14 +156,14 @@
|
|
|
156
156
|
var div = this.debugEl.nativeElement.querySelector('.sky-wait-mask');
|
|
157
157
|
return div.getAttribute('aria-label');
|
|
158
158
|
},
|
|
159
|
-
enumerable:
|
|
159
|
+
enumerable: false,
|
|
160
160
|
configurable: true
|
|
161
161
|
});
|
|
162
162
|
Object.defineProperty(SkyWaitFixture.prototype, "isNonBlocking", {
|
|
163
163
|
get: function () {
|
|
164
164
|
return this.innerWaitComponentContainsClass('.sky-wait-mask-loading-non-blocking');
|
|
165
165
|
},
|
|
166
|
-
enumerable:
|
|
166
|
+
enumerable: false,
|
|
167
167
|
configurable: true
|
|
168
168
|
});
|
|
169
169
|
SkyWaitFixture.prototype.innerWaitComponentContainsClass = function (className) {
|
|
@@ -173,6 +173,10 @@
|
|
|
173
173
|
return SkyWaitFixture;
|
|
174
174
|
}());
|
|
175
175
|
|
|
176
|
+
/**
|
|
177
|
+
* Generated bundle index. Do not edit.
|
|
178
|
+
*/
|
|
179
|
+
|
|
176
180
|
exports.SkyAlertFixture = SkyAlertFixture;
|
|
177
181
|
exports.SkyLabelFixture = SkyLabelFixture;
|
|
178
182
|
exports.SkyWaitFixture = SkyWaitFixture;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skyux-indicators-testing.umd.js","sources":["
|
|
1
|
+
{"version":3,"file":"skyux-indicators-testing.umd.js","sources":["../../../projects/indicators/testing/src/alert-fixture.ts","../../../projects/indicators/testing/src/label-fixture.ts","../../../projects/indicators/testing/src/wait-fixture.ts","../../../projects/indicators/testing/src/skyux-indicators-testing.ts"],"sourcesContent":["import {\n ComponentFixture\n} from '@angular/core/testing';\n\nimport {\n DebugElement\n} from '@angular/core';\n\nimport {\n By\n} from '@angular/platform-browser';\n\nimport {\n SkyAppTestUtility\n} from '@skyux-sdk/testing';\n\n/**\n * Allows interaction with a SKY UX alert component.\n */\nexport class SkyAlertFixture {\n\n /**\n * The alert's current text.\n */\n public get text(): string {\n return SkyAppTestUtility.getText(this.debugEl);\n }\n\n /**\n * A flag indicating whether the alert can be closed.\n */\n public get closeable(): boolean {\n const closeBtnEl = this.getCloseBtnEl();\n\n return SkyAppTestUtility.isVisible(closeBtnEl);\n }\n\n /**\n * Returns a flag indicating whether the alert is closed.\n */\n public get closed(): boolean {\n return !SkyAppTestUtility.isVisible(\n this.getAlertEl()\n );\n }\n\n /**\n * The alert's current type.\n */\n public get alertType(): string {\n const clsList = this.getAlertEl().nativeElement.classList;\n\n if (clsList.contains('sky-alert-danger')) {\n return 'danger';\n }\n\n if (clsList.contains('sky-alert-info')) {\n return 'info';\n }\n\n if (clsList.contains('sky-alert-success')) {\n return 'success';\n }\n\n if (clsList.contains('sky-alert-warning')) {\n return 'warning';\n }\n\n return undefined;\n }\n\n private debugEl: DebugElement;\n\n constructor(\n fixture: ComponentFixture<any>,\n skyTestId: string\n ) {\n this.debugEl = SkyAppTestUtility.getDebugElementByTestId(fixture, skyTestId, 'sky-alert');\n }\n\n /**\n * Closes the alert. If the alert is not closeable, an error is thrown.\n */\n public close(): void {\n if (this.closeable) {\n const closeBtnEl = this.getCloseBtnEl();\n\n closeBtnEl.triggerEventHandler('click', {});\n } else {\n throw new Error('The alert is not closeable.');\n }\n }\n\n private getAlertEl(): DebugElement {\n return this.debugEl.query(By.css('.sky-alert'));\n }\n\n private getCloseBtnEl(): DebugElement {\n return this.debugEl.query(By.css('.sky-alert-close'));\n }\n\n}\n","import {\n ComponentFixture\n} from '@angular/core/testing';\n\nimport {\n DebugElement\n} from '@angular/core';\n\nimport {\n By\n} from '@angular/platform-browser';\n\nimport {\n SkyAppTestUtility\n} from '@skyux-sdk/testing';\n\n/**\n * Allows interaction with a SKY UX label component.\n */\nexport class SkyLabelFixture {\n\n /**\n * The label's current type.\n */\n public get labelType(): string {\n const clsList = this.getLabelEl().nativeElement.classList;\n\n if (clsList.contains('sky-label-danger')) {\n return 'danger';\n }\n\n if (clsList.contains('sky-label-info')) {\n return 'info';\n }\n\n if (clsList.contains('sky-label-success')) {\n return 'success';\n }\n\n if (clsList.contains('sky-label-warning')) {\n return 'warning';\n }\n\n return undefined;\n }\n\n /**\n * The label's current text.\n */\n public get text(): string {\n const labelEl = this.getLabelEl();\n\n return SkyAppTestUtility.getText(labelEl);\n }\n\n private debugEl: DebugElement;\n\n constructor(\n fixture: ComponentFixture<any>,\n skyTestId: string\n ) {\n this.debugEl = SkyAppTestUtility.getDebugElementByTestId(fixture, skyTestId, 'sky-label');\n }\n\n private getLabelEl(): DebugElement {\n return this.debugEl.query(By.css('.sky-label'));\n }\n\n}\n","import {\n DebugElement\n} from '@angular/core';\n\nimport {\n ComponentFixture\n} from '@angular/core/testing';\n\nimport {\n SkyAppTestUtility\n} from '@skyux-sdk/testing';\n\nexport class SkyWaitFixture {\n\n public get isWaiting(): boolean {\n return this.innerWaitComponentContainsClass('.sky-wait-mask');\n }\n\n public get isFullPage(): boolean {\n return this.innerWaitComponentContainsClass('.sky-wait-mask-loading-fixed');\n }\n\n public get ariaLabel(): string {\n const div: HTMLDivElement = this.debugEl.nativeElement.querySelector('.sky-wait-mask');\n return div.getAttribute('aria-label');\n }\n\n public get isNonBlocking(): boolean {\n return this.innerWaitComponentContainsClass('.sky-wait-mask-loading-non-blocking');\n }\n\n private debugEl: DebugElement;\n\n constructor(\n fixture: ComponentFixture<any>,\n skyTestId: string\n ) {\n this.debugEl = SkyAppTestUtility.getDebugElementByTestId(fixture, skyTestId, 'sky-wait');\n }\n\n private innerWaitComponentContainsClass(className: string): boolean {\n const element: HTMLDivElement = this.debugEl.nativeElement.querySelector(className);\n return element !== null;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from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