@skyux/indicators 5.0.0-beta.2 → 5.0.1

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 (214) hide show
  1. package/bundles/skyux-indicators-testing.umd.js +2 -2
  2. package/bundles/skyux-indicators-testing.umd.js.map +1 -1
  3. package/bundles/skyux-indicators.umd.js +655 -523
  4. package/bundles/skyux-indicators.umd.js.map +1 -1
  5. package/documentation.json +2260 -2187
  6. package/esm2015/modules/alert/alert.component.js +25 -14
  7. package/esm2015/modules/alert/alert.module.js +29 -18
  8. package/esm2015/modules/chevron/chevron.component.js +21 -13
  9. package/esm2015/modules/chevron/chevron.module.js +26 -17
  10. package/esm2015/modules/help-inline/help-inline.component.js +18 -11
  11. package/esm2015/modules/help-inline/help-inline.module.js +29 -18
  12. package/esm2015/modules/icon/icon-class-list.pipe.js +11 -10
  13. package/esm2015/modules/icon/icon-resolver.service.js +9 -11
  14. package/esm2015/modules/icon/icon-stack-item.js +1 -1
  15. package/esm2015/modules/icon/icon-stack.component.js +20 -13
  16. package/esm2015/modules/icon/icon.component.js +25 -16
  17. package/esm2015/modules/icon/icon.module.js +13 -18
  18. package/esm2015/modules/key-info/key-info-label.component.js +11 -7
  19. package/esm2015/modules/key-info/key-info-value.component.js +11 -7
  20. package/esm2015/modules/key-info/key-info.component.js +15 -11
  21. package/esm2015/modules/key-info/key-info.module.js +25 -18
  22. package/esm2015/modules/label/label.component.js +17 -11
  23. package/esm2015/modules/label/label.module.js +13 -15
  24. package/esm2015/modules/shared/indicator-description-type.js +1 -1
  25. package/esm2015/modules/shared/indicator-icon-utility.js +4 -4
  26. package/esm2015/modules/shared/indicator-icon.js +1 -1
  27. package/esm2015/modules/shared/sky-indicators-resources.module.js +44 -13
  28. package/esm2015/modules/status-indicator/status-indicator.component.js +28 -21
  29. package/esm2015/modules/status-indicator/status-indicator.module.js +26 -17
  30. package/esm2015/modules/text-highlight/text-highlight.directive.js +19 -16
  31. package/esm2015/modules/text-highlight/text-highlight.module.js +13 -14
  32. package/esm2015/modules/tokens/token.component.js +32 -26
  33. package/esm2015/modules/tokens/tokens.component.js +93 -58
  34. package/esm2015/modules/tokens/tokens.module.js +26 -19
  35. package/esm2015/modules/tokens/types/token-selected-event-args.js +1 -1
  36. package/esm2015/modules/tokens/types/token.js +1 -1
  37. package/esm2015/modules/tokens/types/tokens-message-type.js +1 -1
  38. package/esm2015/modules/tokens/types/tokens-message.js +1 -1
  39. package/esm2015/modules/wait/wait-adapter.service.js +32 -25
  40. package/esm2015/modules/wait/wait-page-adapter.service.js +9 -7
  41. package/esm2015/modules/wait/wait-page.component.js +17 -12
  42. package/esm2015/modules/wait/wait.component.js +31 -27
  43. package/esm2015/modules/wait/wait.module.js +14 -21
  44. package/esm2015/modules/wait/wait.service.js +10 -16
  45. package/esm2015/public-api.js +17 -1
  46. package/esm2015/skyux-indicators.js +1 -21
  47. package/esm2015/testing/alert-fixture.js +1 -1
  48. package/esm2015/testing/label-fixture.js +1 -1
  49. package/esm2015/testing/wait-fixture.js +1 -1
  50. package/fesm2015/skyux-indicators-testing.js.map +1 -1
  51. package/fesm2015/skyux-indicators.js +635 -496
  52. package/fesm2015/skyux-indicators.js.map +1 -1
  53. package/modules/alert/alert.component.d.ts +3 -0
  54. package/modules/alert/alert.module.d.ts +10 -0
  55. package/modules/chevron/chevron.component.d.ts +3 -0
  56. package/modules/chevron/chevron.module.d.ts +9 -0
  57. package/modules/help-inline/help-inline.component.d.ts +3 -0
  58. package/modules/help-inline/help-inline.module.d.ts +10 -0
  59. package/modules/icon/icon-class-list.pipe.d.ts +3 -0
  60. package/modules/icon/icon-resolver.service.d.ts +3 -0
  61. package/modules/icon/icon-stack.component.d.ts +3 -0
  62. package/modules/icon/icon.component.d.ts +3 -0
  63. package/modules/icon/icon.module.d.ts +9 -0
  64. package/modules/key-info/key-info-label.component.d.ts +3 -0
  65. package/modules/key-info/key-info-value.component.d.ts +3 -0
  66. package/modules/key-info/key-info.component.d.ts +3 -0
  67. package/modules/key-info/key-info.module.d.ts +8 -0
  68. package/modules/label/label.component.d.ts +3 -0
  69. package/modules/label/label.module.d.ts +7 -0
  70. package/modules/shared/sky-indicators-resources.module.d.ts +5 -6
  71. package/modules/status-indicator/status-indicator.component.d.ts +3 -0
  72. package/modules/status-indicator/status-indicator.module.d.ts +9 -0
  73. package/modules/text-highlight/text-highlight.directive.d.ts +3 -0
  74. package/modules/text-highlight/text-highlight.module.d.ts +5 -0
  75. package/modules/tokens/token.component.d.ts +3 -0
  76. package/modules/tokens/tokens.component.d.ts +3 -0
  77. package/modules/tokens/tokens.module.d.ts +10 -0
  78. package/modules/wait/wait-adapter.service.d.ts +3 -0
  79. package/modules/wait/wait-page-adapter.service.d.ts +3 -0
  80. package/modules/wait/wait-page.component.d.ts +3 -0
  81. package/modules/wait/wait.component.d.ts +3 -0
  82. package/modules/wait/wait.module.d.ts +9 -0
  83. package/modules/wait/wait.service.d.ts +3 -0
  84. package/package.json +7 -8
  85. package/public-api.d.ts +14 -0
  86. package/skyux-indicators.d.ts +1 -20
  87. package/testing/package.json +0 -1
  88. package/testing/skyux-indicators-testing.d.ts +1 -0
  89. package/esm2015/modules/alert/alert.component.ngfactory.js +0 -27
  90. package/esm2015/modules/alert/alert.component.ngsummary.json +0 -1
  91. package/esm2015/modules/alert/alert.component.scss.shim.ngstyle.js +0 -9
  92. package/esm2015/modules/alert/alert.module.ngfactory.js +0 -16
  93. package/esm2015/modules/alert/alert.module.ngsummary.json +0 -1
  94. package/esm2015/modules/chevron/chevron.component.ngfactory.js +0 -28
  95. package/esm2015/modules/chevron/chevron.component.ngsummary.json +0 -1
  96. package/esm2015/modules/chevron/chevron.component.scss.shim.ngstyle.js +0 -9
  97. package/esm2015/modules/chevron/chevron.module.ngfactory.js +0 -15
  98. package/esm2015/modules/chevron/chevron.module.ngsummary.json +0 -1
  99. package/esm2015/modules/help-inline/help-inline.component.ngfactory.js +0 -28
  100. package/esm2015/modules/help-inline/help-inline.component.ngsummary.json +0 -1
  101. package/esm2015/modules/help-inline/help-inline.component.scss.shim.ngstyle.js +0 -9
  102. package/esm2015/modules/help-inline/help-inline.module.ngfactory.js +0 -16
  103. package/esm2015/modules/help-inline/help-inline.module.ngsummary.json +0 -1
  104. package/esm2015/modules/icon/icon-class-list.pipe.ngsummary.json +0 -1
  105. package/esm2015/modules/icon/icon-resolver.service.ngsummary.json +0 -1
  106. package/esm2015/modules/icon/icon-stack-item.ngsummary.json +0 -1
  107. package/esm2015/modules/icon/icon-stack.component.ngfactory.js +0 -22
  108. package/esm2015/modules/icon/icon-stack.component.ngsummary.json +0 -1
  109. package/esm2015/modules/icon/icon-stack.component.scss.shim.ngstyle.js +0 -9
  110. package/esm2015/modules/icon/icon.component.ngfactory.js +0 -21
  111. package/esm2015/modules/icon/icon.component.ngsummary.json +0 -1
  112. package/esm2015/modules/icon/icon.component.scss.shim.ngstyle.js +0 -9
  113. package/esm2015/modules/icon/icon.module.ngfactory.js +0 -13
  114. package/esm2015/modules/icon/icon.module.ngsummary.json +0 -1
  115. package/esm2015/modules/icon/types/icon-type.ngsummary.json +0 -1
  116. package/esm2015/modules/icon/types/icon-variant-type.ngsummary.json +0 -1
  117. package/esm2015/modules/key-info/key-info-label.component.ngfactory.js +0 -16
  118. package/esm2015/modules/key-info/key-info-label.component.ngsummary.json +0 -1
  119. package/esm2015/modules/key-info/key-info-value.component.ngfactory.js +0 -16
  120. package/esm2015/modules/key-info/key-info-value.component.ngsummary.json +0 -1
  121. package/esm2015/modules/key-info/key-info.component.ngfactory.js +0 -18
  122. package/esm2015/modules/key-info/key-info.component.ngsummary.json +0 -1
  123. package/esm2015/modules/key-info/key-info.component.scss.shim.ngstyle.js +0 -9
  124. package/esm2015/modules/key-info/key-info.module.ngfactory.js +0 -12
  125. package/esm2015/modules/key-info/key-info.module.ngsummary.json +0 -1
  126. package/esm2015/modules/label/label-type.ngsummary.json +0 -1
  127. package/esm2015/modules/label/label.component.ngfactory.js +0 -22
  128. package/esm2015/modules/label/label.component.ngsummary.json +0 -1
  129. package/esm2015/modules/label/label.component.scss.shim.ngstyle.js +0 -9
  130. package/esm2015/modules/label/label.module.ngfactory.js +0 -14
  131. package/esm2015/modules/label/label.module.ngsummary.json +0 -1
  132. package/esm2015/modules/shared/indicator-description-type.ngsummary.json +0 -1
  133. package/esm2015/modules/shared/indicator-icon-type.ngsummary.json +0 -1
  134. package/esm2015/modules/shared/indicator-icon-utility.ngsummary.json +0 -1
  135. package/esm2015/modules/shared/indicator-icon.ngsummary.json +0 -1
  136. package/esm2015/modules/shared/sky-indicators-resources.module.ngfactory.js +0 -15
  137. package/esm2015/modules/shared/sky-indicators-resources.module.ngsummary.json +0 -1
  138. package/esm2015/modules/status-indicator/status-indicator.component.ngfactory.js +0 -25
  139. package/esm2015/modules/status-indicator/status-indicator.component.ngsummary.json +0 -1
  140. package/esm2015/modules/status-indicator/status-indicator.component.scss.shim.ngstyle.js +0 -9
  141. package/esm2015/modules/status-indicator/status-indicator.module.ngfactory.js +0 -16
  142. package/esm2015/modules/status-indicator/status-indicator.module.ngsummary.json +0 -1
  143. package/esm2015/modules/text-highlight/text-highlight.directive.ngsummary.json +0 -1
  144. package/esm2015/modules/text-highlight/text-highlight.module.ngfactory.js +0 -12
  145. package/esm2015/modules/text-highlight/text-highlight.module.ngsummary.json +0 -1
  146. package/esm2015/modules/tokens/token.component.ngfactory.js +0 -40
  147. package/esm2015/modules/tokens/token.component.ngsummary.json +0 -1
  148. package/esm2015/modules/tokens/token.component.scss.shim.ngstyle.js +0 -9
  149. package/esm2015/modules/tokens/tokens.component.ngfactory.js +0 -39
  150. package/esm2015/modules/tokens/tokens.component.ngsummary.json +0 -1
  151. package/esm2015/modules/tokens/tokens.component.scss.shim.ngstyle.js +0 -9
  152. package/esm2015/modules/tokens/tokens.module.ngfactory.js +0 -16
  153. package/esm2015/modules/tokens/tokens.module.ngsummary.json +0 -1
  154. package/esm2015/modules/tokens/types/token-selected-event-args.ngsummary.json +0 -1
  155. package/esm2015/modules/tokens/types/token.ngsummary.json +0 -1
  156. package/esm2015/modules/tokens/types/tokens-message-type.ngsummary.json +0 -1
  157. package/esm2015/modules/tokens/types/tokens-message.ngsummary.json +0 -1
  158. package/esm2015/modules/wait/wait-adapter.service.ngsummary.json +0 -1
  159. package/esm2015/modules/wait/wait-page-adapter.service.ngsummary.json +0 -1
  160. package/esm2015/modules/wait/wait-page.component.ngfactory.js +0 -21
  161. package/esm2015/modules/wait/wait-page.component.ngsummary.json +0 -1
  162. package/esm2015/modules/wait/wait-page.component.scss.shim.ngstyle.js +0 -9
  163. package/esm2015/modules/wait/wait.component.ngfactory.js +0 -21
  164. package/esm2015/modules/wait/wait.component.ngsummary.json +0 -1
  165. package/esm2015/modules/wait/wait.component.scss.shim.ngstyle.js +0 -9
  166. package/esm2015/modules/wait/wait.module.ngfactory.js +0 -15
  167. package/esm2015/modules/wait/wait.module.ngsummary.json +0 -1
  168. package/esm2015/modules/wait/wait.service.ngsummary.json +0 -1
  169. package/esm2015/public-api.ngsummary.json +0 -1
  170. package/esm2015/skyux-indicators.ngsummary.json +0 -1
  171. package/esm2015/testing/alert-fixture.ngsummary.json +0 -1
  172. package/esm2015/testing/label-fixture.ngsummary.json +0 -1
  173. package/esm2015/testing/public-api.ngsummary.json +0 -1
  174. package/esm2015/testing/skyux-indicators-testing.ngsummary.json +0 -1
  175. package/esm2015/testing/wait-fixture.ngsummary.json +0 -1
  176. package/modules/alert/alert.component.ngfactory.d.ts +0 -1
  177. package/modules/alert/alert.component.scss.shim.ngstyle.d.ts +0 -1
  178. package/modules/alert/alert.module.ngfactory.d.ts +0 -3
  179. package/modules/chevron/chevron.component.ngfactory.d.ts +0 -1
  180. package/modules/chevron/chevron.component.scss.shim.ngstyle.d.ts +0 -1
  181. package/modules/chevron/chevron.module.ngfactory.d.ts +0 -3
  182. package/modules/help-inline/help-inline.component.ngfactory.d.ts +0 -1
  183. package/modules/help-inline/help-inline.component.scss.shim.ngstyle.d.ts +0 -1
  184. package/modules/help-inline/help-inline.module.ngfactory.d.ts +0 -3
  185. package/modules/icon/icon-stack.component.ngfactory.d.ts +0 -1
  186. package/modules/icon/icon-stack.component.scss.shim.ngstyle.d.ts +0 -1
  187. package/modules/icon/icon.component.ngfactory.d.ts +0 -1
  188. package/modules/icon/icon.component.scss.shim.ngstyle.d.ts +0 -1
  189. package/modules/icon/icon.module.ngfactory.d.ts +0 -3
  190. package/modules/key-info/key-info-label.component.ngfactory.d.ts +0 -1
  191. package/modules/key-info/key-info-value.component.ngfactory.d.ts +0 -1
  192. package/modules/key-info/key-info.component.ngfactory.d.ts +0 -1
  193. package/modules/key-info/key-info.component.scss.shim.ngstyle.d.ts +0 -1
  194. package/modules/key-info/key-info.module.ngfactory.d.ts +0 -3
  195. package/modules/label/label.component.ngfactory.d.ts +0 -1
  196. package/modules/label/label.component.scss.shim.ngstyle.d.ts +0 -1
  197. package/modules/label/label.module.ngfactory.d.ts +0 -3
  198. package/modules/shared/sky-indicators-resources.module.ngfactory.d.ts +0 -3
  199. package/modules/status-indicator/status-indicator.component.ngfactory.d.ts +0 -1
  200. package/modules/status-indicator/status-indicator.component.scss.shim.ngstyle.d.ts +0 -1
  201. package/modules/status-indicator/status-indicator.module.ngfactory.d.ts +0 -3
  202. package/modules/text-highlight/text-highlight.module.ngfactory.d.ts +0 -3
  203. package/modules/tokens/token.component.ngfactory.d.ts +0 -1
  204. package/modules/tokens/token.component.scss.shim.ngstyle.d.ts +0 -1
  205. package/modules/tokens/tokens.component.ngfactory.d.ts +0 -1
  206. package/modules/tokens/tokens.component.scss.shim.ngstyle.d.ts +0 -1
  207. package/modules/tokens/tokens.module.ngfactory.d.ts +0 -3
  208. package/modules/wait/wait-page.component.ngfactory.d.ts +0 -1
  209. package/modules/wait/wait-page.component.scss.shim.ngstyle.d.ts +0 -1
  210. package/modules/wait/wait.component.ngfactory.d.ts +0 -1
  211. package/modules/wait/wait.component.scss.shim.ngstyle.d.ts +0 -1
  212. package/modules/wait/wait.module.ngfactory.d.ts +0 -3
  213. package/skyux-indicators.metadata.json +0 -1
  214. package/testing/skyux-indicators-testing.metadata.json +0 -1
@@ -2,7 +2,7 @@
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
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
- }(this, (function (exports, platformBrowser, testing) { 'use strict';
5
+ })(this, (function (exports, platformBrowser, testing) { 'use strict';
6
6
 
7
7
  /**
8
8
  * Allows interaction with a SKY UX alert component.
@@ -183,5 +183,5 @@
183
183
 
184
184
  Object.defineProperty(exports, '__esModule', { value: true });
185
185
 
186
- })));
186
+ }));
187
187
  //# sourceMappingURL=skyux-indicators-testing.umd.js.map
@@ -1 +1 @@
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,UAA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C/D;;;WAAA;QAED,sBAAW,sCAAU;iBAArB;gBACE,OAAO,IAAI,CAAC,+BAA+B,CAAC,8BAA8B,CAAC,CAAC;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,GAA/B,UAAgC,SAAiB;YACvD,IAAM,OAAO,GAAmB,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;YACpF,OAAO,OAAO,KAAK,IAAI,CAAC;SACzB;6BACF;KAAA;;IC5CD;;;;;;;;;;;;;;"}
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 { ComponentFixture } from '@angular/core/testing';\n\nimport { DebugElement } from '@angular/core';\n\nimport { By } from '@angular/platform-browser';\n\nimport { SkyAppTestUtility } from '@skyux-sdk/testing';\n\n/**\n * Allows interaction with a SKY UX alert component.\n */\nexport class SkyAlertFixture {\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(this.getAlertEl());\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(fixture: ComponentFixture<any>, skyTestId: string) {\n this.debugEl = SkyAppTestUtility.getDebugElementByTestId(\n fixture,\n skyTestId,\n 'sky-alert'\n );\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","import { ComponentFixture } from '@angular/core/testing';\n\nimport { DebugElement } from '@angular/core';\n\nimport { By } from '@angular/platform-browser';\n\nimport { SkyAppTestUtility } from '@skyux-sdk/testing';\n\n/**\n * Allows interaction with a SKY UX label component.\n */\nexport class SkyLabelFixture {\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(fixture: ComponentFixture<any>, skyTestId: string) {\n this.debugEl = SkyAppTestUtility.getDebugElementByTestId(\n fixture,\n skyTestId,\n 'sky-label'\n );\n }\n\n private getLabelEl(): DebugElement {\n return this.debugEl.query(By.css('.sky-label'));\n }\n}\n","import { DebugElement } from '@angular/core';\n\nimport { ComponentFixture } from '@angular/core/testing';\n\nimport { SkyAppTestUtility } from '@skyux-sdk/testing';\n\nexport class SkyWaitFixture {\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 =\n this.debugEl.nativeElement.querySelector('.sky-wait-mask');\n return div.getAttribute('aria-label');\n }\n\n public get isNonBlocking(): boolean {\n return this.innerWaitComponentContainsClass(\n '.sky-wait-mask-loading-non-blocking'\n );\n }\n\n private debugEl: DebugElement;\n\n constructor(fixture: ComponentFixture<any>, skyTestId: string) {\n this.debugEl = SkyAppTestUtility.getDebugElementByTestId(\n fixture,\n skyTestId,\n 'sky-wait'\n );\n }\n\n private innerWaitComponentContainsClass(className: string): boolean {\n const element: HTMLDivElement =\n 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":";;;;;;IAQA;;;;QAsDE,yBAAY,OAA8B,EAAE,SAAiB;YAC3D,IAAI,CAAC,OAAO,GAAGA,yBAAiB,CAAC,uBAAuB,CACtD,OAAO,EACP,SAAS,EACT,WAAW,CACZ,CAAC;SACH;QArDD,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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