@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
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import { By } from '@angular/platform-browser';
|
|
2
|
-
import { SkyAppTestUtility } from '@skyux-sdk/testing';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Allows interaction with a SKY UX alert component.
|
|
6
|
-
*/
|
|
7
|
-
var SkyAlertFixture = /** @class */ (function () {
|
|
8
|
-
function SkyAlertFixture(fixture, skyTestId) {
|
|
9
|
-
this.debugEl = SkyAppTestUtility.getDebugElementByTestId(fixture, skyTestId, 'sky-alert');
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(SkyAlertFixture.prototype, "text", {
|
|
12
|
-
/**
|
|
13
|
-
* The alert's current text.
|
|
14
|
-
*/
|
|
15
|
-
get: function () {
|
|
16
|
-
return SkyAppTestUtility.getText(this.debugEl);
|
|
17
|
-
},
|
|
18
|
-
enumerable: true,
|
|
19
|
-
configurable: true
|
|
20
|
-
});
|
|
21
|
-
Object.defineProperty(SkyAlertFixture.prototype, "closeable", {
|
|
22
|
-
/**
|
|
23
|
-
* A flag indicating whether the alert can be closed.
|
|
24
|
-
*/
|
|
25
|
-
get: function () {
|
|
26
|
-
var closeBtnEl = this.getCloseBtnEl();
|
|
27
|
-
return SkyAppTestUtility.isVisible(closeBtnEl);
|
|
28
|
-
},
|
|
29
|
-
enumerable: true,
|
|
30
|
-
configurable: true
|
|
31
|
-
});
|
|
32
|
-
Object.defineProperty(SkyAlertFixture.prototype, "closed", {
|
|
33
|
-
/**
|
|
34
|
-
* Returns a flag indicating whether the alert is closed.
|
|
35
|
-
*/
|
|
36
|
-
get: function () {
|
|
37
|
-
return !SkyAppTestUtility.isVisible(this.getAlertEl());
|
|
38
|
-
},
|
|
39
|
-
enumerable: true,
|
|
40
|
-
configurable: true
|
|
41
|
-
});
|
|
42
|
-
Object.defineProperty(SkyAlertFixture.prototype, "alertType", {
|
|
43
|
-
/**
|
|
44
|
-
* The alert's current type.
|
|
45
|
-
*/
|
|
46
|
-
get: function () {
|
|
47
|
-
var clsList = this.getAlertEl().nativeElement.classList;
|
|
48
|
-
if (clsList.contains('sky-alert-danger')) {
|
|
49
|
-
return 'danger';
|
|
50
|
-
}
|
|
51
|
-
if (clsList.contains('sky-alert-info')) {
|
|
52
|
-
return 'info';
|
|
53
|
-
}
|
|
54
|
-
if (clsList.contains('sky-alert-success')) {
|
|
55
|
-
return 'success';
|
|
56
|
-
}
|
|
57
|
-
if (clsList.contains('sky-alert-warning')) {
|
|
58
|
-
return 'warning';
|
|
59
|
-
}
|
|
60
|
-
return undefined;
|
|
61
|
-
},
|
|
62
|
-
enumerable: true,
|
|
63
|
-
configurable: true
|
|
64
|
-
});
|
|
65
|
-
/**
|
|
66
|
-
* Closes the alert. If the alert is not closeable, an error is thrown.
|
|
67
|
-
*/
|
|
68
|
-
SkyAlertFixture.prototype.close = function () {
|
|
69
|
-
if (this.closeable) {
|
|
70
|
-
var closeBtnEl = this.getCloseBtnEl();
|
|
71
|
-
closeBtnEl.triggerEventHandler('click', {});
|
|
72
|
-
}
|
|
73
|
-
else {
|
|
74
|
-
throw new Error('The alert is not closeable.');
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
SkyAlertFixture.prototype.getAlertEl = function () {
|
|
78
|
-
return this.debugEl.query(By.css('.sky-alert'));
|
|
79
|
-
};
|
|
80
|
-
SkyAlertFixture.prototype.getCloseBtnEl = function () {
|
|
81
|
-
return this.debugEl.query(By.css('.sky-alert-close'));
|
|
82
|
-
};
|
|
83
|
-
return SkyAlertFixture;
|
|
84
|
-
}());
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Allows interaction with a SKY UX label component.
|
|
88
|
-
*/
|
|
89
|
-
var SkyLabelFixture = /** @class */ (function () {
|
|
90
|
-
function SkyLabelFixture(fixture, skyTestId) {
|
|
91
|
-
this.debugEl = SkyAppTestUtility.getDebugElementByTestId(fixture, skyTestId, 'sky-label');
|
|
92
|
-
}
|
|
93
|
-
Object.defineProperty(SkyLabelFixture.prototype, "labelType", {
|
|
94
|
-
/**
|
|
95
|
-
* The label's current type.
|
|
96
|
-
*/
|
|
97
|
-
get: function () {
|
|
98
|
-
var clsList = this.getLabelEl().nativeElement.classList;
|
|
99
|
-
if (clsList.contains('sky-label-danger')) {
|
|
100
|
-
return 'danger';
|
|
101
|
-
}
|
|
102
|
-
if (clsList.contains('sky-label-info')) {
|
|
103
|
-
return 'info';
|
|
104
|
-
}
|
|
105
|
-
if (clsList.contains('sky-label-success')) {
|
|
106
|
-
return 'success';
|
|
107
|
-
}
|
|
108
|
-
if (clsList.contains('sky-label-warning')) {
|
|
109
|
-
return 'warning';
|
|
110
|
-
}
|
|
111
|
-
return undefined;
|
|
112
|
-
},
|
|
113
|
-
enumerable: true,
|
|
114
|
-
configurable: true
|
|
115
|
-
});
|
|
116
|
-
Object.defineProperty(SkyLabelFixture.prototype, "text", {
|
|
117
|
-
/**
|
|
118
|
-
* The label's current text.
|
|
119
|
-
*/
|
|
120
|
-
get: function () {
|
|
121
|
-
var labelEl = this.getLabelEl();
|
|
122
|
-
return SkyAppTestUtility.getText(labelEl);
|
|
123
|
-
},
|
|
124
|
-
enumerable: true,
|
|
125
|
-
configurable: true
|
|
126
|
-
});
|
|
127
|
-
SkyLabelFixture.prototype.getLabelEl = function () {
|
|
128
|
-
return this.debugEl.query(By.css('.sky-label'));
|
|
129
|
-
};
|
|
130
|
-
return SkyLabelFixture;
|
|
131
|
-
}());
|
|
132
|
-
|
|
133
|
-
var SkyWaitFixture = /** @class */ (function () {
|
|
134
|
-
function SkyWaitFixture(fixture, skyTestId) {
|
|
135
|
-
this.debugEl = SkyAppTestUtility.getDebugElementByTestId(fixture, skyTestId, 'sky-wait');
|
|
136
|
-
}
|
|
137
|
-
Object.defineProperty(SkyWaitFixture.prototype, "isWaiting", {
|
|
138
|
-
get: function () {
|
|
139
|
-
return this.innerWaitComponentContainsClass('.sky-wait-mask');
|
|
140
|
-
},
|
|
141
|
-
enumerable: true,
|
|
142
|
-
configurable: true
|
|
143
|
-
});
|
|
144
|
-
Object.defineProperty(SkyWaitFixture.prototype, "isFullPage", {
|
|
145
|
-
get: function () {
|
|
146
|
-
return this.innerWaitComponentContainsClass('.sky-wait-mask-loading-fixed');
|
|
147
|
-
},
|
|
148
|
-
enumerable: true,
|
|
149
|
-
configurable: true
|
|
150
|
-
});
|
|
151
|
-
Object.defineProperty(SkyWaitFixture.prototype, "ariaLabel", {
|
|
152
|
-
get: function () {
|
|
153
|
-
var div = this.debugEl.nativeElement.querySelector('.sky-wait-mask');
|
|
154
|
-
return div.getAttribute('aria-label');
|
|
155
|
-
},
|
|
156
|
-
enumerable: true,
|
|
157
|
-
configurable: true
|
|
158
|
-
});
|
|
159
|
-
Object.defineProperty(SkyWaitFixture.prototype, "isNonBlocking", {
|
|
160
|
-
get: function () {
|
|
161
|
-
return this.innerWaitComponentContainsClass('.sky-wait-mask-loading-non-blocking');
|
|
162
|
-
},
|
|
163
|
-
enumerable: true,
|
|
164
|
-
configurable: true
|
|
165
|
-
});
|
|
166
|
-
SkyWaitFixture.prototype.innerWaitComponentContainsClass = function (className) {
|
|
167
|
-
var element = this.debugEl.nativeElement.querySelector(className);
|
|
168
|
-
return element !== null;
|
|
169
|
-
};
|
|
170
|
-
return SkyWaitFixture;
|
|
171
|
-
}());
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* Generated bundle index. Do not edit.
|
|
175
|
-
*/
|
|
176
|
-
|
|
177
|
-
export { SkyAlertFixture, SkyLabelFixture, SkyWaitFixture };
|
|
178
|
-
//# sourceMappingURL=skyux-indicators-testing.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"skyux-indicators-testing.js","sources":["ng://@skyux/indicators/testing/alert-fixture.ts","ng://@skyux/indicators/testing/label-fixture.ts","ng://@skyux/indicators/testing/wait-fixture.ts","ng://@skyux/indicators/testing/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 './public_api';\n"],"names":[],"mappings":";;;AAgBA;;;;IAyDE,yBACE,OAA8B,EAC9B,SAAiB;QAEjB,IAAI,CAAC,OAAO,GAAG,iBAAiB,CAAC,uBAAuB,CAAC,OAAO,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC;KAC3F;IAtDD,sBAAW,iCAAI;;;;aAAf;YACE,OAAO,iBAAiB,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;SAChD;;;OAAA;IAKD,sBAAW,sCAAS;;;;aAApB;YACE,IAAM,UAAU,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;YAExC,OAAO,iBAAiB,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;SAChD;;;OAAA;IAKD,sBAAW,mCAAM;;;;aAAjB;YACE,OAAO,CAAC,iBAAiB,CAAC,SAAS,CACjC,IAAI,CAAC,UAAU,EAAE,CAClB,C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