@skyux/errors 5.6.2 → 6.0.0-beta.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 (65) hide show
  1. package/documentation.json +13 -13
  2. package/esm2020/index.mjs +12 -0
  3. package/esm2020/lib/modules/error/error-action.component.mjs +18 -0
  4. package/esm2020/lib/modules/error/error-description.component.mjs +27 -0
  5. package/esm2020/lib/modules/error/error-image.component.mjs +17 -0
  6. package/esm2020/lib/modules/error/error-modal-config.mjs +4 -0
  7. package/esm2020/lib/modules/error/error-modal-form.component.mjs +22 -0
  8. package/esm2020/lib/modules/error/error-modal.service.mjs +33 -0
  9. package/esm2020/lib/modules/error/error-title.component.mjs +27 -0
  10. package/esm2020/lib/modules/error/error-type.mjs +2 -0
  11. package/esm2020/lib/modules/error/error.component.mjs +84 -0
  12. package/esm2020/lib/modules/error/error.module.mjs +47 -0
  13. package/esm2020/lib/modules/shared/sky-errors-resources.module.mjs +64 -0
  14. package/esm2020/skyux-errors.mjs +5 -0
  15. package/esm2020/testing/error-fixture.mjs +30 -0
  16. package/esm2020/testing/public-api.mjs +2 -0
  17. package/esm2020/testing/skyux-errors-testing.mjs +5 -0
  18. package/fesm2015/{skyux-errors-testing.js → skyux-errors-testing.mjs} +1 -1
  19. package/fesm2015/skyux-errors-testing.mjs.map +1 -0
  20. package/fesm2015/skyux-errors.mjs +317 -0
  21. package/fesm2015/skyux-errors.mjs.map +1 -0
  22. package/{esm2015/testing/error-fixture.js → fesm2020/skyux-errors-testing.mjs} +9 -2
  23. package/fesm2020/skyux-errors-testing.mjs.map +1 -0
  24. package/fesm2020/skyux-errors.mjs +317 -0
  25. package/fesm2020/skyux-errors.mjs.map +1 -0
  26. package/lib/modules/error/error.component.d.ts +1 -2
  27. package/lib/modules/shared/sky-errors-resources.module.d.ts +1 -1
  28. package/package.json +33 -12
  29. package/testing/package.json +5 -5
  30. package/bundles/skyux-errors-testing.umd.js +0 -49
  31. package/bundles/skyux-errors.umd.js +0 -393
  32. package/esm2015/index.js +0 -12
  33. package/esm2015/index.js.map +0 -1
  34. package/esm2015/lib/modules/error/error-action.component.js +0 -18
  35. package/esm2015/lib/modules/error/error-action.component.js.map +0 -1
  36. package/esm2015/lib/modules/error/error-description.component.js +0 -27
  37. package/esm2015/lib/modules/error/error-description.component.js.map +0 -1
  38. package/esm2015/lib/modules/error/error-image.component.js +0 -17
  39. package/esm2015/lib/modules/error/error-image.component.js.map +0 -1
  40. package/esm2015/lib/modules/error/error-modal-config.js +0 -4
  41. package/esm2015/lib/modules/error/error-modal-config.js.map +0 -1
  42. package/esm2015/lib/modules/error/error-modal-form.component.js +0 -26
  43. package/esm2015/lib/modules/error/error-modal-form.component.js.map +0 -1
  44. package/esm2015/lib/modules/error/error-modal.service.js +0 -33
  45. package/esm2015/lib/modules/error/error-modal.service.js.map +0 -1
  46. package/esm2015/lib/modules/error/error-title.component.js +0 -27
  47. package/esm2015/lib/modules/error/error-title.component.js.map +0 -1
  48. package/esm2015/lib/modules/error/error-type.js +0 -2
  49. package/esm2015/lib/modules/error/error-type.js.map +0 -1
  50. package/esm2015/lib/modules/error/error.component.js +0 -89
  51. package/esm2015/lib/modules/error/error.component.js.map +0 -1
  52. package/esm2015/lib/modules/error/error.module.js +0 -48
  53. package/esm2015/lib/modules/error/error.module.js.map +0 -1
  54. package/esm2015/lib/modules/shared/sky-errors-resources.module.js +0 -64
  55. package/esm2015/lib/modules/shared/sky-errors-resources.module.js.map +0 -1
  56. package/esm2015/skyux-errors.js +0 -5
  57. package/esm2015/skyux-errors.js.map +0 -1
  58. package/esm2015/testing/error-fixture.js.map +0 -1
  59. package/esm2015/testing/public-api.js +0 -2
  60. package/esm2015/testing/public-api.js.map +0 -1
  61. package/esm2015/testing/skyux-errors-testing.js +0 -5
  62. package/esm2015/testing/skyux-errors-testing.js.map +0 -1
  63. package/fesm2015/skyux-errors-testing.js.map +0 -1
  64. package/fesm2015/skyux-errors.js +0 -327
  65. package/fesm2015/skyux-errors.js.map +0 -1
@@ -1,48 +0,0 @@
1
- import { CommonModule } from '@angular/common';
2
- import { NgModule } from '@angular/core';
3
- import { SkyModalModule } from '@skyux/modals';
4
- import { SkyErrorsResourcesModule } from '../shared/sky-errors-resources.module';
5
- import { SkyErrorActionComponent } from './error-action.component';
6
- import { SkyErrorDescriptionComponent } from './error-description.component';
7
- import { SkyErrorImageComponent } from './error-image.component';
8
- import { SkyErrorModalFormComponent } from './error-modal-form.component';
9
- import { SkyErrorTitleComponent } from './error-title.component';
10
- import { SkyErrorComponent } from './error.component';
11
- import * as i0 from "@angular/core";
12
- export class SkyErrorModule {
13
- }
14
- SkyErrorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyErrorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
15
- SkyErrorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyErrorModule, declarations: [SkyErrorComponent,
16
- SkyErrorImageComponent,
17
- SkyErrorTitleComponent,
18
- SkyErrorDescriptionComponent,
19
- SkyErrorActionComponent,
20
- SkyErrorModalFormComponent], imports: [CommonModule, SkyErrorsResourcesModule, SkyModalModule], exports: [SkyErrorComponent,
21
- SkyErrorImageComponent,
22
- SkyErrorTitleComponent,
23
- SkyErrorDescriptionComponent,
24
- SkyErrorActionComponent] });
25
- SkyErrorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyErrorModule, imports: [[CommonModule, SkyErrorsResourcesModule, SkyModalModule]] });
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyErrorModule, decorators: [{
27
- type: NgModule,
28
- args: [{
29
- declarations: [
30
- SkyErrorComponent,
31
- SkyErrorImageComponent,
32
- SkyErrorTitleComponent,
33
- SkyErrorDescriptionComponent,
34
- SkyErrorActionComponent,
35
- SkyErrorModalFormComponent,
36
- ],
37
- imports: [CommonModule, SkyErrorsResourcesModule, SkyModalModule],
38
- exports: [
39
- SkyErrorComponent,
40
- SkyErrorImageComponent,
41
- SkyErrorTitleComponent,
42
- SkyErrorDescriptionComponent,
43
- SkyErrorActionComponent,
44
- ],
45
- entryComponents: [SkyErrorModalFormComponent],
46
- }]
47
- }] });
48
- //# sourceMappingURL=error.module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"error.module.js","sourceRoot":"","sources":["../../../../../../../../libs/components/errors/src/lib/modules/error/error.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AAEjF,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;;AAqBtD,MAAM,OAAO,cAAc;;4GAAd,cAAc;6GAAd,cAAc,iBAjBvB,iBAAiB;QACjB,sBAAsB;QACtB,sBAAsB;QACtB,4BAA4B;QAC5B,uBAAuB;QACvB,0BAA0B,aAElB,YAAY,EAAE,wBAAwB,EAAE,cAAc,aAE9D,iBAAiB;QACjB,sBAAsB;QACtB,sBAAsB;QACtB,4BAA4B;QAC5B,uBAAuB;6GAId,cAAc,YAVhB,CAAC,YAAY,EAAE,wBAAwB,EAAE,cAAc,CAAC;4FAUtD,cAAc;kBAnB1B,QAAQ;mBAAC;oBACR,YAAY,EAAE;wBACZ,iBAAiB;wBACjB,sBAAsB;wBACtB,sBAAsB;wBACtB,4BAA4B;wBAC5B,uBAAuB;wBACvB,0BAA0B;qBAC3B;oBACD,OAAO,EAAE,CAAC,YAAY,EAAE,wBAAwB,EAAE,cAAc,CAAC;oBACjE,OAAO,EAAE;wBACP,iBAAiB;wBACjB,sBAAsB;wBACtB,sBAAsB;wBACtB,4BAA4B;wBAC5B,uBAAuB;qBACxB;oBACD,eAAe,EAAE,CAAC,0BAA0B,CAAC;iBAC9C","sourcesContent":["import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { SkyModalModule } from '@skyux/modals';\n\nimport { SkyErrorsResourcesModule } from '../shared/sky-errors-resources.module';\n\nimport { SkyErrorActionComponent } from './error-action.component';\nimport { SkyErrorDescriptionComponent } from './error-description.component';\nimport { SkyErrorImageComponent } from './error-image.component';\nimport { SkyErrorModalFormComponent } from './error-modal-form.component';\nimport { SkyErrorTitleComponent } from './error-title.component';\nimport { SkyErrorComponent } from './error.component';\n\n@NgModule({\n declarations: [\n SkyErrorComponent,\n SkyErrorImageComponent,\n SkyErrorTitleComponent,\n SkyErrorDescriptionComponent,\n SkyErrorActionComponent,\n SkyErrorModalFormComponent,\n ],\n imports: [CommonModule, SkyErrorsResourcesModule, SkyModalModule],\n exports: [\n SkyErrorComponent,\n SkyErrorImageComponent,\n SkyErrorTitleComponent,\n SkyErrorDescriptionComponent,\n SkyErrorActionComponent,\n ],\n entryComponents: [SkyErrorModalFormComponent],\n})\nexport class SkyErrorModule {}\n"]}
@@ -1,64 +0,0 @@
1
- /**
2
- * NOTICE: DO NOT MODIFY THIS FILE!
3
- * The contents of this file were automatically generated by
4
- * the 'ng generate @skyux/i18n:lib-resources-module modules/shared/sky-errors' schematic.
5
- * To update this file, simply rerun the command.
6
- */
7
- import { NgModule } from '@angular/core';
8
- import { SKY_LIB_RESOURCES_PROVIDERS, SkyI18nModule, getLibStringForLocale, } from '@skyux/i18n';
9
- import * as i0 from "@angular/core";
10
- const RESOURCES = {
11
- 'EN-US': {
12
- skyux_errors_broken_description: {
13
- message: 'Something went wrong.\nTry again or come back later.',
14
- },
15
- skyux_errors_broken_title: { message: "That's odd..." },
16
- skyux_errors_construction_description: {
17
- message: 'We appreciate your patience while we\nmake improvements.',
18
- },
19
- skyux_errors_construction_title: { message: 'Work in progress.' },
20
- skyux_errors_not_found_description: {
21
- message: 'Pardon us, but this page\nis missing or has moved.',
22
- },
23
- skyux_errors_not_found_title: { message: 'Nothing to see here.' },
24
- skyux_errors_security_description: {
25
- message: 'Ask your administrator for access.',
26
- },
27
- skyux_errors_security_title: {
28
- message: "Heads up!\nYou're in a restricted area.",
29
- },
30
- },
31
- };
32
- export class SkyErrorsResourcesProvider {
33
- getString(localeInfo, name) {
34
- return getLibStringForLocale(RESOURCES, localeInfo.locale, name);
35
- }
36
- }
37
- /**
38
- * Import into any component library module that needs to use resource strings.
39
- */
40
- export class SkyErrorsResourcesModule {
41
- }
42
- SkyErrorsResourcesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyErrorsResourcesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
43
- SkyErrorsResourcesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyErrorsResourcesModule, exports: [SkyI18nModule] });
44
- SkyErrorsResourcesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyErrorsResourcesModule, providers: [
45
- {
46
- provide: SKY_LIB_RESOURCES_PROVIDERS,
47
- useClass: SkyErrorsResourcesProvider,
48
- multi: true,
49
- },
50
- ], imports: [SkyI18nModule] });
51
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyErrorsResourcesModule, decorators: [{
52
- type: NgModule,
53
- args: [{
54
- exports: [SkyI18nModule],
55
- providers: [
56
- {
57
- provide: SKY_LIB_RESOURCES_PROVIDERS,
58
- useClass: SkyErrorsResourcesProvider,
59
- multi: true,
60
- },
61
- ],
62
- }]
63
- }] });
64
- //# sourceMappingURL=sky-errors-resources.module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sky-errors-resources.module.js","sourceRoot":"","sources":["../../../../../../../../libs/components/errors/src/lib/modules/shared/sky-errors-resources.module.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EACL,2BAA2B,EAE3B,aAAa,EAGb,qBAAqB,GACtB,MAAM,aAAa,CAAC;;AAErB,MAAM,SAAS,GAA0C;IACvD,OAAO,EAAE;QACP,+BAA+B,EAAE;YAC/B,OAAO,EAAE,sDAAsD;SAChE;QACD,yBAAyB,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE;QACvD,qCAAqC,EAAE;YACrC,OAAO,EAAE,0DAA0D;SACpE;QACD,+BAA+B,EAAE,EAAE,OAAO,EAAE,mBAAmB,EAAE;QACjE,kCAAkC,EAAE;YAClC,OAAO,EAAE,oDAAoD;SAC9D;QACD,4BAA4B,EAAE,EAAE,OAAO,EAAE,sBAAsB,EAAE;QACjE,iCAAiC,EAAE;YACjC,OAAO,EAAE,oCAAoC;SAC9C;QACD,2BAA2B,EAAE;YAC3B,OAAO,EAAE,yCAAyC;SACnD;KACF;CACF,CAAC;AAEF,MAAM,OAAO,0BAA0B;IAC9B,SAAS,CAAC,UAA4B,EAAE,IAAY;QACzD,OAAO,qBAAqB,CAAC,SAAS,EAAE,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;CACF;AAED;;GAEG;AAWH,MAAM,OAAO,wBAAwB;;sHAAxB,wBAAwB;uHAAxB,wBAAwB,YATzB,aAAa;uHASZ,wBAAwB,aARxB;QACT;YACE,OAAO,EAAE,2BAA2B;YACpC,QAAQ,EAAE,0BAA0B;YACpC,KAAK,EAAE,IAAI;SACZ;KACF,YAPS,aAAa;4FASZ,wBAAwB;kBAVpC,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAC,aAAa,CAAC;oBACxB,SAAS,EAAE;wBACT;4BACE,OAAO,EAAE,2BAA2B;4BACpC,QAAQ,EAAE,0BAA0B;4BACpC,KAAK,EAAE,IAAI;yBACZ;qBACF;iBACF","sourcesContent":["/**\n * NOTICE: DO NOT MODIFY THIS FILE!\n * The contents of this file were automatically generated by\n * the 'ng generate @skyux/i18n:lib-resources-module modules/shared/sky-errors' schematic.\n * To update this file, simply rerun the command.\n */\nimport { NgModule } from '@angular/core';\nimport {\n SKY_LIB_RESOURCES_PROVIDERS,\n SkyAppLocaleInfo,\n SkyI18nModule,\n SkyLibResources,\n SkyLibResourcesProvider,\n getLibStringForLocale,\n} from '@skyux/i18n';\n\nconst RESOURCES: { [locale: string]: SkyLibResources } = {\n 'EN-US': {\n skyux_errors_broken_description: {\n message: 'Something went wrong.\\nTry again or come back later.',\n },\n skyux_errors_broken_title: { message: \"That's odd...\" },\n skyux_errors_construction_description: {\n message: 'We appreciate your patience while we\\nmake improvements.',\n },\n skyux_errors_construction_title: { message: 'Work in progress.' },\n skyux_errors_not_found_description: {\n message: 'Pardon us, but this page\\nis missing or has moved.',\n },\n skyux_errors_not_found_title: { message: 'Nothing to see here.' },\n skyux_errors_security_description: {\n message: 'Ask your administrator for access.',\n },\n skyux_errors_security_title: {\n message: \"Heads up!\\nYou're in a restricted area.\",\n },\n },\n};\n\nexport class SkyErrorsResourcesProvider implements SkyLibResourcesProvider {\n public getString(localeInfo: SkyAppLocaleInfo, name: string): string {\n return getLibStringForLocale(RESOURCES, localeInfo.locale, name);\n }\n}\n\n/**\n * Import into any component library module that needs to use resource strings.\n */\n@NgModule({\n exports: [SkyI18nModule],\n providers: [\n {\n provide: SKY_LIB_RESOURCES_PROVIDERS,\n useClass: SkyErrorsResourcesProvider,\n multi: true,\n },\n ],\n})\nexport class SkyErrorsResourcesModule {}\n"]}
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
5
- //# sourceMappingURL=skyux-errors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skyux-errors.js","sourceRoot":"","sources":["../../../../../libs/components/errors/src/skyux-errors.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"error-fixture.js","sourceRoot":"","sources":["../../../../../../libs/components/errors/testing/src/error-fixture.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,2BAA2B,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD,MAAM,yBAAyB,GAAG,yBAAyB,CAAC;AAE5D;;GAEG;AACH,MAAM,OAAO,eAAe;IA4B1B,YAAY,OAA8B,EAAE,SAAiB;QAC3D,IAAI,CAAC,OAAO,GAAG,iBAAiB,CAAC,uBAAuB,CACtD,OAAO,EACP,SAAS,EACT,WAAW,CACZ,CAAC;IACJ,CAAC;IAjCD;;OAEG;IACH,IAAW,SAAS;QAClB,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAChC,EAAE,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAC3C,CAAC;QAEF,IAAI,OAAO,EAAE;YACX,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,SAAS,CAAC;YAElD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;gBAChD,MAAM,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;gBAC9B,MAAM,OAAO,GAAG,yBAAyB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBAEpD,0BAA0B;gBAC1B,IAAI,OAAO,EAAE;oBACX,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC;iBACnB;aACF;SACF;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;CAWF","sourcesContent":["import { DebugElement } from '@angular/core';\nimport { ComponentFixture } from '@angular/core/testing';\nimport { By } from '@angular/platform-browser';\nimport { SkyAppTestUtility } from '@skyux-sdk/testing';\n\nconst SKY_ERROR_IMAGE_CLS_REGEX = /^sky-error-(\\w*)-image$/;\n\n/**\n * Allows interaction with a SKY UX error component.\n */\nexport class SkyErrorFixture {\n /**\n * The error's current type.\n */\n public get errorType(): string {\n const imageEl = this.debugEl.query(\n By.css('.sky-error-image-container > div')\n );\n\n if (imageEl) {\n const classList = imageEl.nativeElement.classList;\n\n for (let i = 0, n = classList.length; i < n; i++) {\n const cls = classList.item(i);\n const matches = SKY_ERROR_IMAGE_CLS_REGEX.exec(cls);\n\n /* istanbul ignore else */\n if (matches) {\n return matches[1];\n }\n }\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-error'\n );\n }\n}\n"]}
@@ -1,2 +0,0 @@
1
- export * from './error-fixture';
2
- //# sourceMappingURL=public-api.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"public-api.js","sourceRoot":"","sources":["../../../../../../libs/components/errors/testing/src/public-api.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC","sourcesContent":["export * from './error-fixture';\n"]}
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './public-api';
5
- //# sourceMappingURL=skyux-errors-testing.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skyux-errors-testing.js","sourceRoot":"","sources":["../../../../../../libs/components/errors/testing/src/skyux-errors-testing.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,cAAc,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"skyux-errors-testing.js","sources":["../../../../../libs/components/errors/testing/src/error-fixture.ts","../../../../../libs/components/errors/testing/src/skyux-errors-testing.ts"],"sourcesContent":["import { DebugElement } from '@angular/core';\nimport { ComponentFixture } from '@angular/core/testing';\nimport { By } from '@angular/platform-browser';\nimport { SkyAppTestUtility } from '@skyux-sdk/testing';\n\nconst SKY_ERROR_IMAGE_CLS_REGEX = /^sky-error-(\\w*)-image$/;\n\n/**\n * Allows interaction with a SKY UX error component.\n */\nexport class SkyErrorFixture {\n /**\n * The error's current type.\n */\n public get errorType(): string {\n const imageEl = this.debugEl.query(\n By.css('.sky-error-image-container > div')\n );\n\n if (imageEl) {\n const classList = imageEl.nativeElement.classList;\n\n for (let i = 0, n = classList.length; i < n; i++) {\n const cls = classList.item(i);\n const matches = SKY_ERROR_IMAGE_CLS_REGEX.exec(cls);\n\n /* istanbul ignore else */\n if (matches) {\n return matches[1];\n }\n }\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-error'\n );\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAKA,MAAM,yBAAyB,GAAG,yBAAyB,CAAC;AAE5D;;;MAGa,eAAe;IA4B1B,YAAY,OAA8B,EAAE,SAAiB;QAC3D,IAAI,CAAC,OAAO,GAAG,iBAAiB,CAAC,uBAAuB,CACtD,OAAO,EACP,SAAS,EACT,WAAW,CACZ,CAAC;KACH;;;;IA9BD,IAAW,SAAS;QAClB,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAChC,EAAE,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAC3C,CAAC;QAEF,IAAI,OAAO,EAAE;YACX,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,SAAS,CAAC;YAElD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;gBAChD,MAAM,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;gBAC9B,MAAM,OAAO,GAAG,yBAAyB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;;gBAGpD,IAAI,OAAO,EAAE;oBACX,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC;iBACnB;aACF;SACF;QAED,OAAO,SAAS,CAAC;KAClB;;;AClCH;;;;;;"}