@skyux/errors 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.
- package/bundles/skyux-errors-testing.umd.js +2 -2
- package/bundles/skyux-errors-testing.umd.js.map +1 -1
- package/bundles/skyux-errors.umd.js +170 -123
- package/bundles/skyux-errors.umd.js.map +1 -1
- package/documentation.json +553 -512
- package/esm2015/modules/error/error-action.component.js +11 -7
- package/esm2015/modules/error/error-description.component.js +13 -10
- package/esm2015/modules/error/error-image.component.js +11 -7
- package/esm2015/modules/error/error-modal-form.component.js +14 -14
- package/esm2015/modules/error/error-modal.service.js +10 -12
- package/esm2015/modules/error/error-title.component.js +13 -10
- package/esm2015/modules/error/error.component.js +26 -19
- package/esm2015/modules/error/error.module.js +36 -29
- package/esm2015/modules/shared/sky-errors-resources.module.js +45 -13
- package/esm2015/public-api.js +8 -1
- package/esm2015/skyux-errors.js +1 -8
- package/esm2015/testing/error-fixture.js +1 -1
- package/fesm2015/skyux-errors-testing.js.map +1 -1
- package/fesm2015/skyux-errors.js +163 -111
- package/fesm2015/skyux-errors.js.map +1 -1
- package/modules/error/error-action.component.d.ts +3 -0
- package/modules/error/error-description.component.d.ts +3 -0
- package/modules/error/error-image.component.d.ts +3 -0
- package/modules/error/error-modal-form.component.d.ts +3 -0
- package/modules/error/error-modal.service.d.ts +3 -0
- package/modules/error/error-title.component.d.ts +3 -0
- package/modules/error/error.component.d.ts +3 -0
- package/modules/error/error.module.d.ts +13 -0
- package/modules/shared/sky-errors-resources.module.d.ts +5 -6
- package/package.json +6 -7
- package/public-api.d.ts +5 -0
- package/skyux-errors.d.ts +1 -7
- package/testing/package.json +0 -1
- package/testing/skyux-errors-testing.d.ts +1 -0
- package/esm2015/modules/error/error-action.component.ngfactory.js +0 -16
- package/esm2015/modules/error/error-action.component.ngsummary.json +0 -1
- package/esm2015/modules/error/error-description.component.ngfactory.js +0 -16
- package/esm2015/modules/error/error-description.component.ngsummary.json +0 -1
- package/esm2015/modules/error/error-image.component.ngfactory.js +0 -16
- package/esm2015/modules/error/error-image.component.ngsummary.json +0 -1
- package/esm2015/modules/error/error-modal-config.ngsummary.json +0 -1
- package/esm2015/modules/error/error-modal-form.component.ngfactory.js +0 -30
- package/esm2015/modules/error/error-modal-form.component.ngsummary.json +0 -1
- package/esm2015/modules/error/error-modal-form.component.scss.shim.ngstyle.js +0 -9
- package/esm2015/modules/error/error-modal.service.ngsummary.json +0 -1
- package/esm2015/modules/error/error-title.component.ngfactory.js +0 -16
- package/esm2015/modules/error/error-title.component.ngsummary.json +0 -1
- package/esm2015/modules/error/error-type.ngsummary.json +0 -1
- package/esm2015/modules/error/error.component.ngfactory.js +0 -23
- package/esm2015/modules/error/error.component.ngsummary.json +0 -1
- package/esm2015/modules/error/error.component.scss.shim.ngstyle.js +0 -9
- package/esm2015/modules/error/error.module.ngfactory.js +0 -21
- package/esm2015/modules/error/error.module.ngsummary.json +0 -1
- package/esm2015/modules/shared/sky-errors-resources.module.ngfactory.js +0 -15
- package/esm2015/modules/shared/sky-errors-resources.module.ngsummary.json +0 -1
- package/esm2015/public-api.ngsummary.json +0 -1
- package/esm2015/skyux-errors.ngsummary.json +0 -1
- package/esm2015/testing/error-fixture.ngsummary.json +0 -1
- package/esm2015/testing/public-api.ngsummary.json +0 -1
- package/esm2015/testing/skyux-errors-testing.ngsummary.json +0 -1
- package/modules/error/error-action.component.ngfactory.d.ts +0 -1
- package/modules/error/error-description.component.ngfactory.d.ts +0 -1
- package/modules/error/error-image.component.ngfactory.d.ts +0 -1
- package/modules/error/error-modal-form.component.ngfactory.d.ts +0 -1
- package/modules/error/error-modal-form.component.scss.shim.ngstyle.d.ts +0 -1
- package/modules/error/error-title.component.ngfactory.d.ts +0 -1
- package/modules/error/error.component.ngfactory.d.ts +0 -1
- package/modules/error/error.component.scss.shim.ngstyle.d.ts +0 -1
- package/modules/error/error.module.ngfactory.d.ts +0 -3
- package/modules/shared/sky-errors-resources.module.ngfactory.d.ts +0 -3
- package/skyux-errors.metadata.json +0 -1
- package/testing/skyux-errors-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/errors/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.errors = global.skyux.errors || {}, global.skyux.errors.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
|
var SKY_ERROR_IMAGE_CLS_REGEX = /^sky-error-(\w*)-image$/;
|
|
8
8
|
/**
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
|
|
46
46
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
47
47
|
|
|
48
|
-
}))
|
|
48
|
+
}));
|
|
49
49
|
//# sourceMappingURL=skyux-errors-testing.umd.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skyux-errors-testing.umd.js","sources":["../../../projects/errors/testing/src/error-fixture.ts","../../../projects/errors/testing/src/skyux-errors-testing.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"skyux-errors-testing.umd.js","sources":["../../../projects/errors/testing/src/error-fixture.ts","../../../projects/errors/testing/src/skyux-errors-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\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":["SkyAppTestUtility","By"],"mappings":";;;;;;IAQA,IAAM,yBAAyB,GAAG,yBAAyB,CAAC;IAE5D;;;;QA+BE,yBAAY,OAA8B,EAAE,SAAiB;YAC3D,IAAI,CAAC,OAAO,GAAGA,yBAAiB,CAAC,uBAAuB,CACtD,OAAO,EACP,SAAS,EACT,WAAW,CACZ,CAAC;SACH;QA9BD,sBAAW,sCAAS;;;;iBAApB;gBACE,IAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAChCC,kBAAE,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAC3C,CAAC;gBAEF,IAAI,OAAO,EAAE;oBACX,IAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,SAAS,CAAC;oBAElD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;wBAChD,IAAM,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;wBAC9B,IAAM,OAAO,GAAG,yBAAyB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;;wBAGpD,IAAI,OAAO,EAAE;4BACX,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC;yBACnB;qBACF;iBACF;gBAED,OAAO,SAAS,CAAC;aAClB;;;WAAA;8BAWF;KAAA;;IChDD;;;;;;;;;;;;"}
|