@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.
Files changed (199) hide show
  1. package/LICENSE +21 -0
  2. package/bundles/skyux-indicators-testing.umd.js +15 -11
  3. package/bundles/skyux-indicators-testing.umd.js.map +1 -1
  4. package/bundles/skyux-indicators.umd.js +1113 -858
  5. package/bundles/skyux-indicators.umd.js.map +1 -1
  6. package/documentation.json +6097 -0
  7. package/esm2015/modules/alert/alert.component.js +27 -24
  8. package/esm2015/modules/alert/alert.module.js +31 -18
  9. package/esm2015/modules/chevron/chevron.component.js +24 -24
  10. package/esm2015/modules/chevron/chevron.module.js +29 -18
  11. package/esm2015/modules/help-inline/help-inline.component.js +20 -15
  12. package/esm2015/modules/help-inline/help-inline.module.js +31 -18
  13. package/esm2015/modules/icon/icon-class-list.pipe.js +13 -14
  14. package/esm2015/modules/icon/icon-resolver.service.js +11 -15
  15. package/esm2015/modules/icon/icon-stack-item.js +2 -1
  16. package/esm2015/modules/icon/icon-stack.component.js +22 -21
  17. package/esm2015/modules/icon/icon.component.js +27 -28
  18. package/esm2015/modules/icon/icon.module.js +30 -20
  19. package/esm2015/modules/icon/types/icon-type.js +2 -1
  20. package/esm2015/modules/icon/types/icon-variant-type.js +2 -1
  21. package/esm2015/modules/key-info/key-info-label.component.js +13 -11
  22. package/esm2015/modules/key-info/key-info-value.component.js +13 -11
  23. package/esm2015/modules/key-info/key-info.component.js +17 -15
  24. package/esm2015/modules/key-info/key-info.module.js +30 -21
  25. package/esm2015/modules/label/label-type.js +2 -1
  26. package/esm2015/modules/label/label.component.js +19 -15
  27. package/esm2015/modules/label/label.module.js +24 -17
  28. package/esm2015/modules/shared/indicator-description-type.js +2 -1
  29. package/esm2015/modules/shared/indicator-icon-type.js +2 -1
  30. package/esm2015/modules/shared/indicator-icon-utility.js +1 -1
  31. package/esm2015/modules/shared/indicator-icon.js +2 -1
  32. package/esm2015/modules/shared/sky-indicators-resources.module.js +41 -0
  33. package/esm2015/modules/status-indicator/status-indicator.component.js +26 -28
  34. package/esm2015/modules/status-indicator/status-indicator.module.js +29 -18
  35. package/esm2015/modules/text-highlight/text-highlight.directive.js +25 -25
  36. package/esm2015/modules/text-highlight/text-highlight.module.js +23 -18
  37. package/esm2015/modules/tokens/token.component.js +32 -40
  38. package/esm2015/modules/tokens/tokens.component.js +86 -74
  39. package/esm2015/modules/tokens/tokens.module.js +33 -20
  40. package/esm2015/modules/tokens/types/token-selected-event-args.js +2 -1
  41. package/esm2015/modules/tokens/types/token.js +2 -1
  42. package/esm2015/modules/tokens/types/tokens-message-type.js +1 -1
  43. package/esm2015/modules/tokens/types/tokens-message.js +2 -1
  44. package/esm2015/modules/wait/wait-adapter.service.js +29 -27
  45. package/esm2015/modules/wait/wait-page-adapter.service.js +15 -12
  46. package/esm2015/modules/wait/wait-page.component.js +19 -18
  47. package/esm2015/modules/wait/wait.component.js +35 -36
  48. package/esm2015/modules/wait/wait.module.js +32 -23
  49. package/esm2015/modules/wait/wait.service.js +37 -46
  50. package/esm2015/public-api.js +36 -0
  51. package/esm2015/skyux-indicators.js +2 -23
  52. package/esm2015/testing/alert-fixture.js +1 -1
  53. package/esm2015/testing/label-fixture.js +1 -1
  54. package/esm2015/testing/public-api.js +4 -0
  55. package/esm2015/testing/skyux-indicators-testing.js +2 -2
  56. package/esm2015/testing/wait-fixture.js +1 -1
  57. package/fesm2015/skyux-indicators-testing.js.map +1 -1
  58. package/fesm2015/skyux-indicators.js +752 -616
  59. package/fesm2015/skyux-indicators.js.map +1 -1
  60. package/modules/alert/alert.component.d.ts +3 -0
  61. package/modules/alert/alert.module.d.ts +10 -0
  62. package/modules/chevron/chevron.component.d.ts +4 -1
  63. package/modules/chevron/chevron.module.d.ts +9 -0
  64. package/modules/help-inline/help-inline.component.d.ts +3 -0
  65. package/modules/help-inline/help-inline.module.d.ts +10 -0
  66. package/modules/icon/icon-class-list.pipe.d.ts +3 -0
  67. package/modules/icon/icon-resolver.service.d.ts +3 -0
  68. package/modules/icon/icon-stack.component.d.ts +3 -0
  69. package/modules/icon/icon.component.d.ts +3 -0
  70. package/modules/icon/icon.module.d.ts +9 -0
  71. package/modules/key-info/key-info-label.component.d.ts +3 -0
  72. package/modules/key-info/key-info-value.component.d.ts +3 -0
  73. package/modules/key-info/key-info.component.d.ts +3 -0
  74. package/modules/key-info/key-info.module.d.ts +8 -0
  75. package/modules/label/label.component.d.ts +3 -0
  76. package/modules/label/label.module.d.ts +7 -0
  77. package/modules/shared/sky-indicators-resources.module.d.ts +14 -0
  78. package/modules/status-indicator/status-indicator.component.d.ts +3 -0
  79. package/modules/status-indicator/status-indicator.module.d.ts +9 -0
  80. package/modules/text-highlight/text-highlight.directive.d.ts +3 -0
  81. package/modules/text-highlight/text-highlight.module.d.ts +5 -0
  82. package/modules/tokens/token.component.d.ts +4 -1
  83. package/modules/tokens/tokens.component.d.ts +3 -0
  84. package/modules/tokens/tokens.module.d.ts +10 -0
  85. package/modules/wait/wait-adapter.service.d.ts +3 -0
  86. package/modules/wait/wait-page-adapter.service.d.ts +3 -0
  87. package/modules/wait/wait-page.component.d.ts +3 -0
  88. package/modules/wait/wait.component.d.ts +3 -0
  89. package/modules/wait/wait.module.d.ts +9 -0
  90. package/modules/wait/wait.service.d.ts +3 -0
  91. package/package.json +12 -27
  92. package/public-api.d.ts +33 -0
  93. package/skyux-indicators.d.ts +2 -22
  94. package/testing/package.json +2 -5
  95. package/testing/{public_api.d.ts → public-api.d.ts} +0 -0
  96. package/testing/skyux-indicators-testing.d.ts +2 -1
  97. package/CHANGELOG.md +0 -203
  98. package/bundles/skyux-indicators-testing.umd.min.js +0 -2
  99. package/bundles/skyux-indicators-testing.umd.min.js.map +0 -1
  100. package/bundles/skyux-indicators.umd.min.js +0 -16
  101. package/bundles/skyux-indicators.umd.min.js.map +0 -1
  102. package/esm2015/modules/shared/indicators-resources.module.js +0 -17
  103. package/esm2015/plugin-resources/indicators-resources-provider.js +0 -16
  104. package/esm2015/public_api.js +0 -13
  105. package/esm2015/testing/public_api.js +0 -4
  106. package/esm5/modules/alert/alert.component.js +0 -62
  107. package/esm5/modules/alert/alert.module.js +0 -32
  108. package/esm5/modules/chevron/chevron.component.js +0 -35
  109. package/esm5/modules/chevron/chevron.module.js +0 -30
  110. package/esm5/modules/help-inline/help-inline.component.js +0 -26
  111. package/esm5/modules/help-inline/help-inline.module.js +0 -32
  112. package/esm5/modules/icon/icon-class-list.pipe.js +0 -39
  113. package/esm5/modules/icon/icon-resolver.service.js +0 -57
  114. package/esm5/modules/icon/icon-stack-item.js +0 -1
  115. package/esm5/modules/icon/icon-stack.component.js +0 -25
  116. package/esm5/modules/icon/icon.component.js +0 -38
  117. package/esm5/modules/icon/icon.module.js +0 -31
  118. package/esm5/modules/icon/types/icon-type.js +0 -1
  119. package/esm5/modules/icon/types/icon-variant-type.js +0 -1
  120. package/esm5/modules/key-info/key-info-label.component.js +0 -19
  121. package/esm5/modules/key-info/key-info-value.component.js +0 -19
  122. package/esm5/modules/key-info/key-info.component.js +0 -25
  123. package/esm5/modules/key-info/key-info.module.js +0 -30
  124. package/esm5/modules/label/label-type.js +0 -1
  125. package/esm5/modules/label/label.component.js +0 -41
  126. package/esm5/modules/label/label.module.js +0 -26
  127. package/esm5/modules/shared/indicator-description-type.js +0 -1
  128. package/esm5/modules/shared/indicator-icon-type.js +0 -1
  129. package/esm5/modules/shared/indicator-icon-utility.js +0 -45
  130. package/esm5/modules/shared/indicator-icon.js +0 -1
  131. package/esm5/modules/shared/indicators-resources.module.js +0 -20
  132. package/esm5/modules/status-indicator/status-indicator.component.js +0 -111
  133. package/esm5/modules/status-indicator/status-indicator.module.js +0 -30
  134. package/esm5/modules/text-highlight/text-highlight.directive.js +0 -134
  135. package/esm5/modules/text-highlight/text-highlight.module.js +0 -24
  136. package/esm5/modules/tokens/token.component.js +0 -134
  137. package/esm5/modules/tokens/tokens.component.js +0 -325
  138. package/esm5/modules/tokens/tokens.module.js +0 -33
  139. package/esm5/modules/tokens/types/token-selected-event-args.js +0 -1
  140. package/esm5/modules/tokens/types/token.js +0 -1
  141. package/esm5/modules/tokens/types/tokens-message-type.js +0 -24
  142. package/esm5/modules/tokens/types/tokens-message.js +0 -1
  143. package/esm5/modules/wait/wait-adapter.service.js +0 -219
  144. package/esm5/modules/wait/wait-page-adapter.service.js +0 -25
  145. package/esm5/modules/wait/wait-page.component.js +0 -25
  146. package/esm5/modules/wait/wait.component.js +0 -107
  147. package/esm5/modules/wait/wait.module.js +0 -34
  148. package/esm5/modules/wait/wait.service.js +0 -176
  149. package/esm5/plugin-resources/indicators-resources-provider.js +0 -17
  150. package/esm5/public_api.js +0 -13
  151. package/esm5/skyux-indicators.js +0 -26
  152. package/esm5/testing/alert-fixture.js +0 -85
  153. package/esm5/testing/label-fixture.js +0 -50
  154. package/esm5/testing/public_api.js +0 -4
  155. package/esm5/testing/skyux-indicators-testing.js +0 -5
  156. package/esm5/testing/wait-fixture.js +0 -42
  157. package/fesm5/skyux-indicators-testing.js +0 -178
  158. package/fesm5/skyux-indicators-testing.js.map +0 -1
  159. package/fesm5/skyux-indicators.js +0 -1892
  160. package/fesm5/skyux-indicators.js.map +0 -1
  161. package/modules/shared/indicators-resources.module.d.ts +0 -2
  162. package/plugin-resources/indicators-resources-provider.d.ts +0 -5
  163. package/public_api.d.ts +0 -19
  164. package/skyux-indicators.metadata.json +0 -1
  165. package/src/assets/img/guidelines/alert/alert-anatomy.png +0 -0
  166. package/src/assets/img/guidelines/alert/alert-layout-1.png +0 -0
  167. package/src/assets/img/guidelines/alert/alert-layout-2.png +0 -0
  168. package/src/assets/img/guidelines/alert/alert-layout-3.png +0 -0
  169. package/src/assets/img/guidelines/alert/alert-option-1.png +0 -0
  170. package/src/assets/img/guidelines/alert/alert-type-1.png +0 -0
  171. package/src/assets/img/guidelines/alert/alert-type-2.png +0 -0
  172. package/src/assets/img/guidelines/alert/alert-type-3.png +0 -0
  173. package/src/assets/img/guidelines/alert/alert-type-4.png +0 -0
  174. package/src/assets/img/guidelines/alert/alert-usage-1.png +0 -0
  175. package/src/assets/img/guidelines/alert/alert-usage-2.png +0 -0
  176. package/src/assets/img/guidelines/alert/alert-usage-3.png +0 -0
  177. package/src/assets/img/guidelines/alert/alert-usage-4.png +0 -0
  178. package/src/assets/img/guidelines/alert/alert-usage-5.png +0 -0
  179. package/src/assets/img/guidelines/alert/alert-usage-6.png +0 -0
  180. package/src/assets/img/guidelines/key-info/horizontal-layout.png +0 -0
  181. package/src/assets/img/guidelines/key-info/key-info-anatomy.png +0 -0
  182. package/src/assets/img/guidelines/key-info/key-info-usage-1.png +0 -0
  183. package/src/assets/img/guidelines/key-info/key-info-usage-2.png +0 -0
  184. package/src/assets/img/guidelines/key-info/key-info-usage-3.png +0 -0
  185. package/src/assets/img/guidelines/key-info/key-info-usage-4.png +0 -0
  186. package/src/assets/img/guidelines/key-info/key-info-usage-5.png +0 -0
  187. package/src/assets/img/guidelines/key-info/key-info-usage-6.png +0 -0
  188. package/src/assets/img/guidelines/key-info/vertical-layout.png +0 -0
  189. package/src/assets/img/guidelines/status-indicator/status-indicator-anatomy.png +0 -0
  190. package/src/assets/img/guidelines/status-indicator/status-indicator-usage-1.png +0 -0
  191. package/src/assets/img/guidelines/status-indicator/status-indicator-usage-2-5.png +0 -0
  192. package/src/assets/img/guidelines/status-indicator/status-indicator-usage-2.5.png +0 -0
  193. package/src/assets/img/guidelines/status-indicator/status-indicator-usage-2.png +0 -0
  194. package/src/assets/img/guidelines/status-indicator/status-indicator-usage-3.png +0 -0
  195. package/src/assets/img/guidelines/status-indicator/status-indicator-usage-4.png +0 -0
  196. package/src/assets/img/guidelines/status-indicator/status-indicator-usage-5.png +0 -0
  197. package/src/assets/img/guidelines/status-indicator/status-indicator-usage-6.png +0 -0
  198. package/src/assets/locales/resources_en_US.json +0 -54
  199. 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: true,
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: true,
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: true,
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: true,
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: true,
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: true,
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: true,
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: true,
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: true,
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: true,
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":["ng://@skyux/indicators/testing/alert-fixture.ts","ng://@skyux/indicators/testing/label-fixture.ts","ng://@skyux/indicators/testing/wait-fixture.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"],"names":["SkyAppTestUtility","By"],"mappings":";;;;;;IAgBA;;;;QAyDE,yBACE,OAA8B,EAC9B,SAAiB;YAEjB,IAAI,CAAC,OAAO,GAAGA,yBAAiB,CAAC,uBAAuB,CAAC,OAAO,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC;SAC3F;QAtDD,sBAAW,iCAAI;;;;iBAAf;gBACE,OAAOA,yBAAiB,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;aAChD;;;WAAA;QAKD,sBAAW,sCAAS;;;;iBAApB;gBACE,IAAM,UAAU,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;gBAExC,OAAOA,yBAAiB,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;aAChD;;;WAAA;QAKD,sBAAW,m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aAC7E;;;WAAA;QAED,sBAAW,qCAAS;iBAApB;gBACE,IAAM,GAAG,GAAmB,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC;gBACvF,OAAO,GAAG,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;aACvC;;;WAAA;QAED,sBAAW,yCAAa;iBAAxB;gBACE,OAAO,IAAI,CAAC,+BAA+B,CAAC,qCAAqC,CAAC,CAAC;aACpF;;;WAAA;QAWO,wDAA+B,GAAvC,UAAwC,SAAiB;YACvD,IAAM,OAAO,GAAmB,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;YACpF,OAAO,OAAO,KAAK,IAAI,CAAC;SACzB;QACH,qBAAC;IAAD,CAAC;;;;;;;;;;;;;;"}
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 './public-api';\n"],"names":["SkyAppTestUtility","By"],"mappings":";;;;;;IAgBA;;;;QAyDE,yBACE,OAA8B,EAC9B,SAAiB;YAEjB,IAAI,CAAC,OAAO,GAAGA,yBAAiB,CAAC,uBAAuB,CAAC,OAAO,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC;SAC3F;QAtDD,sBAAW,iCAAI;;;;iBAAf;gBACE,OAAOA,yBAAiB,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;aAChD;;;WAAA;QAKD,sBAAW,sCAAS;;;;iBAApB;gBACE,IAAM,UAAU,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;gBAExC,OAAOA,yBAAiB,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;aAChD;;;WAAA;QAKD,sBAAW,mCAAM;;;;iB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