@skyux/errors 8.7.2 → 9.0.0-alpha.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/documentation.json +15 -15
- package/{esm2020 → esm2022}/lib/modules/error/error-action.component.mjs +4 -4
- package/esm2022/lib/modules/error/error-description.component.mjs +33 -0
- package/{esm2020 → esm2022}/lib/modules/error/error-image.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/modules/error/error-modal-form.component.mjs +4 -4
- package/esm2022/lib/modules/error/error-modal.service.mjs +44 -0
- package/esm2022/lib/modules/error/error-title.component.mjs +33 -0
- package/esm2022/lib/modules/error/error.component.mjs +75 -0
- package/{esm2020 → esm2022}/lib/modules/error/error.module.mjs +20 -20
- package/{esm2020 → esm2022}/lib/modules/error/error.service.mjs +4 -4
- package/esm2022/lib/modules/shared/sky-errors-resources.module.mjs +64 -0
- package/esm2022/testing/error-fixture.mjs +32 -0
- package/{fesm2015 → fesm2022}/skyux-errors-testing.mjs +3 -6
- package/{fesm2015 → fesm2022}/skyux-errors-testing.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/skyux-errors.mjs +82 -91
- package/{fesm2020 → fesm2022}/skyux-errors.mjs.map +1 -1
- package/lib/modules/error/error-description.component.d.ts +1 -1
- package/lib/modules/error/error-title.component.d.ts +1 -1
- package/lib/modules/error/error.component.d.ts +1 -1
- package/package.json +15 -23
- package/esm2020/lib/modules/error/error-description.component.mjs +0 -36
- package/esm2020/lib/modules/error/error-modal.service.mjs +0 -47
- package/esm2020/lib/modules/error/error-title.component.mjs +0 -36
- package/esm2020/lib/modules/error/error.component.mjs +0 -78
- package/esm2020/lib/modules/shared/sky-errors-resources.module.mjs +0 -64
- package/esm2020/testing/error-fixture.mjs +0 -35
- package/fesm2015/skyux-errors.mjs +0 -375
- package/fesm2015/skyux-errors.mjs.map +0 -1
- package/fesm2020/skyux-errors-testing.mjs +0 -42
- package/fesm2020/skyux-errors-testing.mjs.map +0 -1
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/error/error-modal-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/error/error-type.mjs +0 -0
- /package/{esm2020 → esm2022}/skyux-errors.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/skyux-errors-testing.mjs +0 -0
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { __classPrivateFieldGet, __classPrivateFieldSet } from 'tslib';
|
|
2
1
|
import { By } from '@angular/platform-browser';
|
|
3
2
|
import { SkyAppTestUtility } from '@skyux-sdk/testing';
|
|
4
3
|
|
|
5
|
-
var _SkyErrorFixture_debugEl;
|
|
6
4
|
const SKY_ERROR_IMAGE_CLS_REGEX = /^sky-error-(\w*)-image$/;
|
|
7
5
|
/**
|
|
8
6
|
* Allows interaction with a SKY UX error component.
|
|
@@ -13,7 +11,7 @@ class SkyErrorFixture {
|
|
|
13
11
|
* The error's current type.
|
|
14
12
|
*/
|
|
15
13
|
get errorType() {
|
|
16
|
-
const imageEl =
|
|
14
|
+
const imageEl = this.#debugEl.query(By.css('.sky-error-image-container > div'));
|
|
17
15
|
if (imageEl) {
|
|
18
16
|
const classList = imageEl.nativeElement.classList;
|
|
19
17
|
for (let i = 0, n = classList.length; i < n; i++) {
|
|
@@ -27,12 +25,11 @@ class SkyErrorFixture {
|
|
|
27
25
|
}
|
|
28
26
|
return undefined;
|
|
29
27
|
}
|
|
28
|
+
#debugEl;
|
|
30
29
|
constructor(fixture, skyTestId) {
|
|
31
|
-
|
|
32
|
-
__classPrivateFieldSet(this, _SkyErrorFixture_debugEl, SkyAppTestUtility.getDebugElementByTestId(fixture, skyTestId, 'sky-error'), "f");
|
|
30
|
+
this.#debugEl = SkyAppTestUtility.getDebugElementByTestId(fixture, skyTestId, 'sky-error');
|
|
33
31
|
}
|
|
34
32
|
}
|
|
35
|
-
_SkyErrorFixture_debugEl = new WeakMap();
|
|
36
33
|
|
|
37
34
|
/**
|
|
38
35
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skyux-errors-testing.mjs","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 * @internal\n */\nexport class SkyErrorFixture {\n /**\n * The error's current type.\n */\n public get errorType(): string | undefined {\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 #debugEl: DebugElement;\n\n constructor(fixture: ComponentFixture<unknown>, 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":"
|
|
1
|
+
{"version":3,"file":"skyux-errors-testing.mjs","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 * @internal\n */\nexport class SkyErrorFixture {\n /**\n * The error's current type.\n */\n public get errorType(): string | undefined {\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 #debugEl: DebugElement;\n\n constructor(fixture: ComponentFixture<unknown>, 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;;;AAGG;MACU,eAAe,CAAA;AAC1B;;AAEG;AACH,IAAA,IAAW,SAAS,GAAA;AAClB,QAAA,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CACjC,EAAE,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAC3C,CAAC;AAEF,QAAA,IAAI,OAAO,EAAE;AACX,YAAA,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,SAAS,CAAC;AAElD,YAAA,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;;AAGpD,gBAAA,IAAI,OAAO,EAAE;AACX,oBAAA,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC;AACnB,iBAAA;AACF,aAAA;AACF,SAAA;AAED,QAAA,OAAO,SAAS,CAAC;KAClB;AAED,IAAA,QAAQ,CAAe;IAEvB,WAAY,CAAA,OAAkC,EAAE,SAAiB,EAAA;AAC/D,QAAA,IAAI,CAAC,QAAQ,GAAG,iBAAiB,CAAC,uBAAuB,CACvD,OAAO,EACP,SAAS,EACT,WAAW,CACZ,CAAC;KACH;AACF;;AC9CD;;AAEG;;;;"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __classPrivateFieldSet, __classPrivateFieldGet } from 'tslib';
|
|
2
1
|
import * as i0 from '@angular/core';
|
|
3
2
|
import { Component, Injectable, Optional, NgModule, Input } from '@angular/core';
|
|
4
3
|
import * as i2 from '@skyux/modals';
|
|
@@ -26,46 +25,44 @@ class SkyErrorModalFormComponent {
|
|
|
26
25
|
this.context = context;
|
|
27
26
|
this.instance = instance;
|
|
28
27
|
}
|
|
28
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyErrorModalFormComponent, deps: [{ token: ErrorModalConfig }, { token: i2.SkyModalInstance }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
29
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.7", type: SkyErrorModalFormComponent, selector: "sky-error-modal-form", ngImport: i0, template: "<sky-modal [ariaLabelledBy]=\"title.id\">\n <sky-modal-content>\n <div class=\"sky-error-modal-container\">\n <span class=\"sky-error-modal-title\" skyId #title=\"skyId\">{{\n context.errorTitle\n }}</span>\n <span class=\"sky-error-modal-description\">{{\n context.errorDescription\n }}</span>\n <div class=\"sky-error-modal-close\">\n <button\n type=\"button\"\n class=\"sky-btn sky-btn-primary\"\n (click)=\"instance.close()\"\n >\n {{ context.errorCloseText }}\n </button>\n </div>\n </div>\n </sky-modal-content>\n</sky-modal>\n", styles: [".sky-error-modal-container{display:flex;flex-direction:column;align-items:center}.sky-error-modal-title{font-weight:700}.sky-error-modal-description{max-width:100%}.sky-error-modal-close{margin-top:10px}\n"], dependencies: [{ kind: "directive", type: i2$1.λ2, selector: "[skyId]", exportAs: ["skyId"] }, { kind: "component", type: i2.λ5, selector: "sky-modal", inputs: ["formErrors", "ariaRole", "tiledBody", "ariaDescribedBy", "ariaLabelledBy"] }, { kind: "component", type: i2.λ2, selector: "sky-modal-content" }] }); }
|
|
29
30
|
}
|
|
30
|
-
|
|
31
|
-
SkyErrorModalFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SkyErrorModalFormComponent, selector: "sky-error-modal-form", ngImport: i0, template: "<sky-modal [ariaLabelledBy]=\"title.id\">\n <sky-modal-content>\n <div class=\"sky-error-modal-container\">\n <span class=\"sky-error-modal-title\" skyId #title=\"skyId\">{{\n context.errorTitle\n }}</span>\n <span class=\"sky-error-modal-description\">{{\n context.errorDescription\n }}</span>\n <div class=\"sky-error-modal-close\">\n <button\n type=\"button\"\n class=\"sky-btn sky-btn-primary\"\n (click)=\"instance.close()\"\n >\n {{ context.errorCloseText }}\n </button>\n </div>\n </div>\n </sky-modal-content>\n</sky-modal>\n", styles: [".sky-error-modal-container{display:flex;flex-direction:column;align-items:center}.sky-error-modal-title{font-weight:700}.sky-error-modal-description{max-width:100%}.sky-error-modal-close{margin-top:10px}\n"], dependencies: [{ kind: "directive", type: i2$1.λ2, selector: "[skyId]", exportAs: ["skyId"] }, { kind: "component", type: i2.λ5, selector: "sky-modal", inputs: ["formErrors", "ariaRole", "tiledBody", "ariaDescribedBy", "ariaLabelledBy"] }, { kind: "component", type: i2.λ2, selector: "sky-modal-content" }] });
|
|
32
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyErrorModalFormComponent, decorators: [{
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyErrorModalFormComponent, decorators: [{
|
|
33
32
|
type: Component,
|
|
34
33
|
args: [{ selector: 'sky-error-modal-form', template: "<sky-modal [ariaLabelledBy]=\"title.id\">\n <sky-modal-content>\n <div class=\"sky-error-modal-container\">\n <span class=\"sky-error-modal-title\" skyId #title=\"skyId\">{{\n context.errorTitle\n }}</span>\n <span class=\"sky-error-modal-description\">{{\n context.errorDescription\n }}</span>\n <div class=\"sky-error-modal-close\">\n <button\n type=\"button\"\n class=\"sky-btn sky-btn-primary\"\n (click)=\"instance.close()\"\n >\n {{ context.errorCloseText }}\n </button>\n </div>\n </div>\n </sky-modal-content>\n</sky-modal>\n", styles: [".sky-error-modal-container{display:flex;flex-direction:column;align-items:center}.sky-error-modal-title{font-weight:700}.sky-error-modal-description{max-width:100%}.sky-error-modal-close{margin-top:10px}\n"] }]
|
|
35
34
|
}], ctorParameters: function () { return [{ type: ErrorModalConfig }, { type: i2.SkyModalInstance }]; } });
|
|
36
35
|
|
|
37
|
-
var _SkyErrorModalService_modalSvc, _SkyErrorModalService_logSvc;
|
|
38
36
|
/**
|
|
39
37
|
* Opens a modal to display a SKY UX-themed error message.
|
|
40
38
|
* @deprecated We recommend using a standard modal with an error component instead.
|
|
41
39
|
*/
|
|
42
40
|
class SkyErrorModalService {
|
|
41
|
+
#modalSvc;
|
|
42
|
+
#logSvc;
|
|
43
43
|
constructor(modalSvc, logService) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
__classPrivateFieldSet(this, _SkyErrorModalService_modalSvc, modalSvc, "f");
|
|
47
|
-
__classPrivateFieldSet(this, _SkyErrorModalService_logSvc, logService, "f");
|
|
44
|
+
this.#modalSvc = modalSvc;
|
|
45
|
+
this.#logSvc = logService;
|
|
48
46
|
}
|
|
49
47
|
/**
|
|
50
48
|
* Text for the the error message, including title, description, and action label.
|
|
51
49
|
* @deprecated We recommend using a standard modal with an error component instead.
|
|
52
50
|
*/
|
|
53
51
|
open(config) {
|
|
54
|
-
|
|
52
|
+
this.#logSvc?.deprecated("SkyErrorModalService's open method", {
|
|
55
53
|
deprecationMajorVersion: 6,
|
|
56
54
|
replacementRecommendation: 'We recommend using a standard modal with an error component instead.',
|
|
57
55
|
});
|
|
58
56
|
const providers = [{ provide: ErrorModalConfig, useValue: config }];
|
|
59
|
-
|
|
57
|
+
this.#modalSvc.open(SkyErrorModalFormComponent, {
|
|
60
58
|
ariaRole: 'alertdialog',
|
|
61
59
|
providers: providers,
|
|
62
60
|
});
|
|
63
61
|
}
|
|
62
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyErrorModalService, deps: [{ token: i2.SkyModalService }, { token: i2$1.SkyLogService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
63
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyErrorModalService, providedIn: 'root' }); }
|
|
64
64
|
}
|
|
65
|
-
|
|
66
|
-
SkyErrorModalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyErrorModalService, deps: [{ token: i2.SkyModalService }, { token: i2$1.SkyLogService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
67
|
-
SkyErrorModalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyErrorModalService, providedIn: 'root' });
|
|
68
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyErrorModalService, decorators: [{
|
|
65
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyErrorModalService, decorators: [{
|
|
69
66
|
type: Injectable,
|
|
70
67
|
args: [{
|
|
71
68
|
providedIn: 'root',
|
|
@@ -111,17 +108,17 @@ class SkyErrorsResourcesProvider {
|
|
|
111
108
|
* Import into any component library module that needs to use resource strings.
|
|
112
109
|
*/
|
|
113
110
|
class SkyErrorsResourcesModule {
|
|
111
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyErrorsResourcesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
112
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.7", ngImport: i0, type: SkyErrorsResourcesModule, exports: [SkyI18nModule] }); }
|
|
113
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyErrorsResourcesModule, providers: [
|
|
114
|
+
{
|
|
115
|
+
provide: SKY_LIB_RESOURCES_PROVIDERS,
|
|
116
|
+
useClass: SkyErrorsResourcesProvider,
|
|
117
|
+
multi: true,
|
|
118
|
+
},
|
|
119
|
+
], imports: [SkyI18nModule] }); }
|
|
114
120
|
}
|
|
115
|
-
|
|
116
|
-
SkyErrorsResourcesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SkyErrorsResourcesModule, exports: [SkyI18nModule] });
|
|
117
|
-
SkyErrorsResourcesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyErrorsResourcesModule, providers: [
|
|
118
|
-
{
|
|
119
|
-
provide: SKY_LIB_RESOURCES_PROVIDERS,
|
|
120
|
-
useClass: SkyErrorsResourcesProvider,
|
|
121
|
-
multi: true,
|
|
122
|
-
},
|
|
123
|
-
], imports: [SkyI18nModule] });
|
|
124
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyErrorsResourcesModule, decorators: [{
|
|
121
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyErrorsResourcesModule, decorators: [{
|
|
125
122
|
type: NgModule,
|
|
126
123
|
args: [{
|
|
127
124
|
exports: [SkyI18nModule],
|
|
@@ -140,10 +137,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
140
137
|
* For example, you can include a button to reload the page or to refresh data.
|
|
141
138
|
*/
|
|
142
139
|
class SkyErrorActionComponent {
|
|
140
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyErrorActionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
141
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.7", type: SkyErrorActionComponent, selector: "sky-error-action", ngImport: i0, template: '<ng-content></ng-content>', isInline: true }); }
|
|
143
142
|
}
|
|
144
|
-
|
|
145
|
-
SkyErrorActionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SkyErrorActionComponent, selector: "sky-error-action", ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
|
|
146
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyErrorActionComponent, decorators: [{
|
|
143
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyErrorActionComponent, decorators: [{
|
|
147
144
|
type: Component,
|
|
148
145
|
args: [{
|
|
149
146
|
selector: 'sky-error-action',
|
|
@@ -159,14 +156,13 @@ class SkyErrorService {
|
|
|
159
156
|
this.replaceDefaultDescription = new BehaviorSubject(false);
|
|
160
157
|
this.replaceDefaultTitle = new BehaviorSubject(false);
|
|
161
158
|
}
|
|
159
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyErrorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
160
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyErrorService }); }
|
|
162
161
|
}
|
|
163
|
-
|
|
164
|
-
SkyErrorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyErrorService });
|
|
165
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyErrorService, decorators: [{
|
|
162
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyErrorService, decorators: [{
|
|
166
163
|
type: Injectable
|
|
167
164
|
}] });
|
|
168
165
|
|
|
169
|
-
var _SkyErrorDescriptionComponent_errorSvc;
|
|
170
166
|
/**
|
|
171
167
|
* Specifies a description to provide additional details about the error.
|
|
172
168
|
*/
|
|
@@ -177,18 +173,17 @@ class SkyErrorDescriptionComponent {
|
|
|
177
173
|
* @default false
|
|
178
174
|
*/
|
|
179
175
|
set replaceDefaultDescription(value) {
|
|
180
|
-
|
|
176
|
+
this.#errorSvc.replaceDefaultDescription.next(!!value);
|
|
181
177
|
}
|
|
178
|
+
#errorSvc;
|
|
182
179
|
constructor(errorSvc) {
|
|
183
|
-
|
|
184
|
-
__classPrivateFieldSet(this, _SkyErrorDescriptionComponent_errorSvc, errorSvc, "f");
|
|
180
|
+
this.#errorSvc = errorSvc;
|
|
185
181
|
errorSvc.replaceDefaultDescription.next(false);
|
|
186
182
|
}
|
|
183
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyErrorDescriptionComponent, deps: [{ token: SkyErrorService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
184
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.7", type: SkyErrorDescriptionComponent, selector: "sky-error-description", inputs: { replaceDefaultDescription: "replaceDefaultDescription" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true }); }
|
|
187
185
|
}
|
|
188
|
-
|
|
189
|
-
SkyErrorDescriptionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyErrorDescriptionComponent, deps: [{ token: SkyErrorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
190
|
-
SkyErrorDescriptionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SkyErrorDescriptionComponent, selector: "sky-error-description", inputs: { replaceDefaultDescription: "replaceDefaultDescription" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
|
|
191
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyErrorDescriptionComponent, decorators: [{
|
|
186
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyErrorDescriptionComponent, decorators: [{
|
|
192
187
|
type: Component,
|
|
193
188
|
args: [{
|
|
194
189
|
selector: 'sky-error-description',
|
|
@@ -202,10 +197,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
202
197
|
* Specifies an image to display with the error message.
|
|
203
198
|
*/
|
|
204
199
|
class SkyErrorImageComponent {
|
|
200
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyErrorImageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
201
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.7", type: SkyErrorImageComponent, selector: "sky-error-image", ngImport: i0, template: '<ng-content></ng-content>', isInline: true }); }
|
|
205
202
|
}
|
|
206
|
-
|
|
207
|
-
SkyErrorImageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SkyErrorImageComponent, selector: "sky-error-image", ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
|
|
208
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyErrorImageComponent, decorators: [{
|
|
203
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyErrorImageComponent, decorators: [{
|
|
209
204
|
type: Component,
|
|
210
205
|
args: [{
|
|
211
206
|
selector: 'sky-error-image',
|
|
@@ -213,7 +208,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
213
208
|
}]
|
|
214
209
|
}] });
|
|
215
210
|
|
|
216
|
-
var _SkyErrorTitleComponent_errorSvc;
|
|
217
211
|
/**
|
|
218
212
|
* Specifies a title to display with the error message.
|
|
219
213
|
*/
|
|
@@ -224,18 +218,17 @@ class SkyErrorTitleComponent {
|
|
|
224
218
|
* @default false
|
|
225
219
|
*/
|
|
226
220
|
set replaceDefaultTitle(value) {
|
|
227
|
-
|
|
221
|
+
this.#errorSvc.replaceDefaultTitle.next(!!value);
|
|
228
222
|
}
|
|
223
|
+
#errorSvc;
|
|
229
224
|
constructor(errorSvc) {
|
|
230
|
-
|
|
231
|
-
__classPrivateFieldSet(this, _SkyErrorTitleComponent_errorSvc, errorSvc, "f");
|
|
225
|
+
this.#errorSvc = errorSvc;
|
|
232
226
|
errorSvc.replaceDefaultTitle.next(false);
|
|
233
227
|
}
|
|
228
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyErrorTitleComponent, deps: [{ token: SkyErrorService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
229
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.7", type: SkyErrorTitleComponent, selector: "sky-error-title", inputs: { replaceDefaultTitle: "replaceDefaultTitle" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true }); }
|
|
234
230
|
}
|
|
235
|
-
|
|
236
|
-
SkyErrorTitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyErrorTitleComponent, deps: [{ token: SkyErrorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
237
|
-
SkyErrorTitleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SkyErrorTitleComponent, selector: "sky-error-title", inputs: { replaceDefaultTitle: "replaceDefaultTitle" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
|
|
238
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyErrorTitleComponent, decorators: [{
|
|
231
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyErrorTitleComponent, decorators: [{
|
|
239
232
|
type: Component,
|
|
240
233
|
args: [{
|
|
241
234
|
selector: 'sky-error-title',
|
|
@@ -245,7 +238,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
245
238
|
type: Input
|
|
246
239
|
}] } });
|
|
247
240
|
|
|
248
|
-
var _SkyErrorComponent_instances, _SkyErrorComponent_resourcesSvc, _SkyErrorComponent__errorType, _SkyErrorComponent_getString;
|
|
249
241
|
/**
|
|
250
242
|
* Displays a SKY UX-themed error message.
|
|
251
243
|
*/
|
|
@@ -255,23 +247,22 @@ class SkyErrorComponent {
|
|
|
255
247
|
* title, and description.
|
|
256
248
|
*/
|
|
257
249
|
set errorType(value) {
|
|
258
|
-
|
|
250
|
+
this.#_errorType = value;
|
|
259
251
|
this.setErrorTypeFields();
|
|
260
252
|
}
|
|
261
253
|
get errorType() {
|
|
262
|
-
return
|
|
254
|
+
return this.#_errorType;
|
|
263
255
|
}
|
|
256
|
+
#resourcesSvc;
|
|
257
|
+
#_errorType;
|
|
264
258
|
constructor(resourcesSvc, errorSvc) {
|
|
265
259
|
this.errorSvc = errorSvc;
|
|
266
|
-
_SkyErrorComponent_instances.add(this);
|
|
267
260
|
/**
|
|
268
261
|
* Whether to display the error image.
|
|
269
262
|
* @default true
|
|
270
263
|
*/
|
|
271
264
|
this.showImage = true;
|
|
272
|
-
|
|
273
|
-
_SkyErrorComponent__errorType.set(this, void 0);
|
|
274
|
-
__classPrivateFieldSet(this, _SkyErrorComponent_resourcesSvc, resourcesSvc, "f");
|
|
265
|
+
this.#resourcesSvc = resourcesSvc;
|
|
275
266
|
}
|
|
276
267
|
ngOnInit() {
|
|
277
268
|
if (this.errorType) {
|
|
@@ -281,33 +272,33 @@ class SkyErrorComponent {
|
|
|
281
272
|
setErrorTypeFields() {
|
|
282
273
|
switch (this.errorType?.toLowerCase()) {
|
|
283
274
|
case 'broken':
|
|
284
|
-
this.defaultTitle =
|
|
285
|
-
this.defaultDescription =
|
|
275
|
+
this.defaultTitle = this.#getString('skyux_errors_broken_title');
|
|
276
|
+
this.defaultDescription = this.#getString('skyux_errors_broken_description');
|
|
286
277
|
break;
|
|
287
278
|
case 'notfound':
|
|
288
|
-
this.defaultTitle =
|
|
289
|
-
this.defaultDescription =
|
|
279
|
+
this.defaultTitle = this.#getString('skyux_errors_not_found_title');
|
|
280
|
+
this.defaultDescription = this.#getString('skyux_errors_not_found_description');
|
|
290
281
|
break;
|
|
291
282
|
case 'construction':
|
|
292
|
-
this.defaultTitle =
|
|
293
|
-
this.defaultDescription =
|
|
283
|
+
this.defaultTitle = this.#getString('skyux_errors_construction_title');
|
|
284
|
+
this.defaultDescription = this.#getString('skyux_errors_construction_description');
|
|
294
285
|
break;
|
|
295
286
|
case 'security':
|
|
296
|
-
this.defaultTitle =
|
|
297
|
-
this.defaultDescription =
|
|
287
|
+
this.defaultTitle = this.#getString('skyux_errors_security_title');
|
|
288
|
+
this.defaultDescription = this.#getString('skyux_errors_security_description');
|
|
298
289
|
break;
|
|
299
290
|
default:
|
|
300
291
|
this.defaultTitle = this.defaultDescription = undefined;
|
|
301
292
|
}
|
|
302
293
|
}
|
|
294
|
+
#getString(key) {
|
|
295
|
+
// TODO: Need to implement the async `getString` method in a breaking change.
|
|
296
|
+
return this.#resourcesSvc.getStringForLocale({ locale: 'en-US' }, key);
|
|
297
|
+
}
|
|
298
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyErrorComponent, deps: [{ token: i1.SkyLibResourcesService }, { token: SkyErrorService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
299
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.7", type: SkyErrorComponent, selector: "sky-error", inputs: { errorType: "errorType", showImage: "showImage" }, providers: [SkyErrorService], ngImport: i0, template: "<div class=\"sky-error\">\n <div\n *ngIf=\"showImage\"\n class=\"sky-error-image-container sky-margin-stacked-lg\"\n >\n <div\n *ngIf=\"errorType\"\n class=\"sky-error-image-svg\"\n [ngClass]=\"['sky-error-' + errorType + '-image']\"\n ></div>\n <ng-content select=\"sky-error-image\"></ng-content>\n </div>\n\n <div class=\"sky-error-title sky-font-heading-1 sky-margin-stacked-lg\">\n <ng-container\n *ngIf=\"defaultTitle && (errorSvc.replaceDefaultTitle | async) === false\"\n >{{ defaultTitle }}</ng-container\n >\n <ng-content select=\"sky-error-title\"></ng-content>\n </div>\n\n <div\n class=\"sky-error-description sky-font-body-default sky-margin-stacked-xl\"\n >\n <span\n *ngIf=\"\n defaultDescription &&\n (errorSvc.replaceDefaultDescription | async) === false\n \"\n >{{ defaultDescription }}</span\n >\n <ng-content select=\"sky-error-description\"></ng-content>\n </div>\n\n <div class=\"sky-error-action\">\n <ng-content select=\"sky-error-action\"></ng-content>\n </div>\n</div>\n", styles: [".sky-error{display:flex;flex-direction:column;justify-content:center;text-align:center;padding-top:60px}.sky-error .sky-error-description span{white-space:pre-wrap}.sky-error .sky-error-image-container{display:flex;justify-content:center}.sky-error .sky-error-image-svg{background-repeat:no-repeat;background-size:contain;background-position:center}:host-context(.sky-theme-modern) .sky-error{margin-top:60px}.sky-theme-modern .sky-error{margin-top:60px}.sky-error-broken-image{height:110px;width:170px;background-image:url(https://sky.blackbaudcdn.net/static/skyux-public-assets/1.0.0-beta.2/assets/images/errors/broken.svg)}.sky-error-construction-image{height:110px;width:109px;background-image:url(https://sky.blackbaudcdn.net/static/skyux-public-assets/1.0.0-beta.2/assets/images/errors/construction.svg)}.sky-error-notfound-image{height:110px;width:169px;background-image:url(https://sky.blackbaudcdn.net/static/skyux-public-assets/1.0.0-beta.2/assets/images/errors/notfound.svg)}.sky-error-security-image{height:110px;width:97px;background-image:url(https://sky.blackbaudcdn.net/static/skyux-public-assets/1.0.0-beta.2/assets/images/errors/security.svg)}\n"], dependencies: [{ kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }] }); }
|
|
303
300
|
}
|
|
304
|
-
|
|
305
|
-
// TODO: Need to implement the async `getString` method in a breaking change.
|
|
306
|
-
return __classPrivateFieldGet(this, _SkyErrorComponent_resourcesSvc, "f").getStringForLocale({ locale: 'en-US' }, key);
|
|
307
|
-
};
|
|
308
|
-
SkyErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyErrorComponent, deps: [{ token: i1.SkyLibResourcesService }, { token: SkyErrorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
309
|
-
SkyErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SkyErrorComponent, selector: "sky-error", inputs: { errorType: "errorType", showImage: "showImage" }, providers: [SkyErrorService], ngImport: i0, template: "<div class=\"sky-error\">\n <div\n *ngIf=\"showImage\"\n class=\"sky-error-image-container sky-margin-stacked-lg\"\n >\n <div\n *ngIf=\"errorType\"\n class=\"sky-error-image-svg\"\n [ngClass]=\"['sky-error-' + errorType + '-image']\"\n ></div>\n <ng-content select=\"sky-error-image\"></ng-content>\n </div>\n\n <div class=\"sky-error-title sky-font-heading-1 sky-margin-stacked-lg\">\n <ng-container\n *ngIf=\"defaultTitle && (errorSvc.replaceDefaultTitle | async) === false\"\n >{{ defaultTitle }}</ng-container\n >\n <ng-content select=\"sky-error-title\"></ng-content>\n </div>\n\n <div\n class=\"sky-error-description sky-font-body-default sky-margin-stacked-xl\"\n >\n <span\n *ngIf=\"\n defaultDescription &&\n (errorSvc.replaceDefaultDescription | async) === false\n \"\n >{{ defaultDescription }}</span\n >\n <ng-content select=\"sky-error-description\"></ng-content>\n </div>\n\n <div class=\"sky-error-action\">\n <ng-content select=\"sky-error-action\"></ng-content>\n </div>\n</div>\n", styles: [".sky-error{display:flex;flex-direction:column;justify-content:center;text-align:center;padding-top:60px}.sky-error .sky-error-description span{white-space:pre-wrap}.sky-error .sky-error-image-container{display:flex;justify-content:center}.sky-error .sky-error-image-svg{background-repeat:no-repeat;background-size:contain;background-position:center}:host-context(.sky-theme-modern) .sky-error{margin-top:60px}.sky-theme-modern .sky-error{margin-top:60px}.sky-error-broken-image{height:110px;width:170px;background-image:url(https://sky.blackbaudcdn.net/static/skyux-public-assets/1.0.0-beta.2/assets/images/errors/broken.svg)}.sky-error-construction-image{height:110px;width:109px;background-image:url(https://sky.blackbaudcdn.net/static/skyux-public-assets/1.0.0-beta.2/assets/images/errors/construction.svg)}.sky-error-notfound-image{height:110px;width:169px;background-image:url(https://sky.blackbaudcdn.net/static/skyux-public-assets/1.0.0-beta.2/assets/images/errors/notfound.svg)}.sky-error-security-image{height:110px;width:97px;background-image:url(https://sky.blackbaudcdn.net/static/skyux-public-assets/1.0.0-beta.2/assets/images/errors/security.svg)}\n"], dependencies: [{ kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }] });
|
|
310
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyErrorComponent, decorators: [{
|
|
301
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyErrorComponent, decorators: [{
|
|
311
302
|
type: Component,
|
|
312
303
|
args: [{ selector: 'sky-error', providers: [SkyErrorService], template: "<div class=\"sky-error\">\n <div\n *ngIf=\"showImage\"\n class=\"sky-error-image-container sky-margin-stacked-lg\"\n >\n <div\n *ngIf=\"errorType\"\n class=\"sky-error-image-svg\"\n [ngClass]=\"['sky-error-' + errorType + '-image']\"\n ></div>\n <ng-content select=\"sky-error-image\"></ng-content>\n </div>\n\n <div class=\"sky-error-title sky-font-heading-1 sky-margin-stacked-lg\">\n <ng-container\n *ngIf=\"defaultTitle && (errorSvc.replaceDefaultTitle | async) === false\"\n >{{ defaultTitle }}</ng-container\n >\n <ng-content select=\"sky-error-title\"></ng-content>\n </div>\n\n <div\n class=\"sky-error-description sky-font-body-default sky-margin-stacked-xl\"\n >\n <span\n *ngIf=\"\n defaultDescription &&\n (errorSvc.replaceDefaultDescription | async) === false\n \"\n >{{ defaultDescription }}</span\n >\n <ng-content select=\"sky-error-description\"></ng-content>\n </div>\n\n <div class=\"sky-error-action\">\n <ng-content select=\"sky-error-action\"></ng-content>\n </div>\n</div>\n", styles: [".sky-error{display:flex;flex-direction:column;justify-content:center;text-align:center;padding-top:60px}.sky-error .sky-error-description span{white-space:pre-wrap}.sky-error .sky-error-image-container{display:flex;justify-content:center}.sky-error .sky-error-image-svg{background-repeat:no-repeat;background-size:contain;background-position:center}:host-context(.sky-theme-modern) .sky-error{margin-top:60px}.sky-theme-modern .sky-error{margin-top:60px}.sky-error-broken-image{height:110px;width:170px;background-image:url(https://sky.blackbaudcdn.net/static/skyux-public-assets/1.0.0-beta.2/assets/images/errors/broken.svg)}.sky-error-construction-image{height:110px;width:109px;background-image:url(https://sky.blackbaudcdn.net/static/skyux-public-assets/1.0.0-beta.2/assets/images/errors/construction.svg)}.sky-error-notfound-image{height:110px;width:169px;background-image:url(https://sky.blackbaudcdn.net/static/skyux-public-assets/1.0.0-beta.2/assets/images/errors/notfound.svg)}.sky-error-security-image{height:110px;width:97px;background-image:url(https://sky.blackbaudcdn.net/static/skyux-public-assets/1.0.0-beta.2/assets/images/errors/security.svg)}\n"] }]
|
|
313
304
|
}], ctorParameters: function () { return [{ type: i1.SkyLibResourcesService }, { type: SkyErrorService }]; }, propDecorators: { errorType: [{
|
|
@@ -317,26 +308,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
317
308
|
}] } });
|
|
318
309
|
|
|
319
310
|
class SkyErrorModule {
|
|
311
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyErrorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
312
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.7", ngImport: i0, type: SkyErrorModule, declarations: [SkyErrorComponent,
|
|
313
|
+
SkyErrorImageComponent,
|
|
314
|
+
SkyErrorTitleComponent,
|
|
315
|
+
SkyErrorDescriptionComponent,
|
|
316
|
+
SkyErrorActionComponent,
|
|
317
|
+
SkyErrorModalFormComponent], imports: [CommonModule,
|
|
318
|
+
SkyErrorsResourcesModule,
|
|
319
|
+
SkyIdModule,
|
|
320
|
+
SkyModalModule], exports: [SkyErrorComponent,
|
|
321
|
+
SkyErrorImageComponent,
|
|
322
|
+
SkyErrorTitleComponent,
|
|
323
|
+
SkyErrorDescriptionComponent,
|
|
324
|
+
SkyErrorActionComponent] }); }
|
|
325
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyErrorModule, imports: [CommonModule,
|
|
326
|
+
SkyErrorsResourcesModule,
|
|
327
|
+
SkyIdModule,
|
|
328
|
+
SkyModalModule] }); }
|
|
320
329
|
}
|
|
321
|
-
|
|
322
|
-
SkyErrorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SkyErrorModule, declarations: [SkyErrorComponent,
|
|
323
|
-
SkyErrorImageComponent,
|
|
324
|
-
SkyErrorTitleComponent,
|
|
325
|
-
SkyErrorDescriptionComponent,
|
|
326
|
-
SkyErrorActionComponent,
|
|
327
|
-
SkyErrorModalFormComponent], imports: [CommonModule,
|
|
328
|
-
SkyErrorsResourcesModule,
|
|
329
|
-
SkyIdModule,
|
|
330
|
-
SkyModalModule], exports: [SkyErrorComponent,
|
|
331
|
-
SkyErrorImageComponent,
|
|
332
|
-
SkyErrorTitleComponent,
|
|
333
|
-
SkyErrorDescriptionComponent,
|
|
334
|
-
SkyErrorActionComponent] });
|
|
335
|
-
SkyErrorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyErrorModule, imports: [CommonModule,
|
|
336
|
-
SkyErrorsResourcesModule,
|
|
337
|
-
SkyIdModule,
|
|
338
|
-
SkyModalModule] });
|
|
339
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyErrorModule, decorators: [{
|
|
330
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyErrorModule, decorators: [{
|
|
340
331
|
type: NgModule,
|
|
341
332
|
args: [{
|
|
342
333
|
declarations: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skyux-errors.mjs","sources":["../../../../../libs/components/errors/src/lib/modules/error/error-modal-config.ts","../../../../../libs/components/errors/src/lib/modules/error/error-modal-form.component.ts","../../../../../libs/components/errors/src/lib/modules/error/error-modal-form.component.html","../../../../../libs/components/errors/src/lib/modules/error/error-modal.service.ts","../../../../../libs/components/errors/src/lib/modules/shared/sky-errors-resources.module.ts","../../../../../libs/components/errors/src/lib/modules/error/error-action.component.ts","../../../../../libs/components/errors/src/lib/modules/error/error.service.ts","../../../../../libs/components/errors/src/lib/modules/error/error-description.component.ts","../../../../../libs/components/errors/src/lib/modules/error/error-image.component.ts","../../../../../libs/components/errors/src/lib/modules/error/error-title.component.ts","../../../../../libs/components/errors/src/lib/modules/error/error.component.ts","../../../../../libs/components/errors/src/lib/modules/error/error.component.html","../../../../../libs/components/errors/src/lib/modules/error/error.module.ts","../../../../../libs/components/errors/src/skyux-errors.ts"],"sourcesContent":["/* istanbul ignore next */\n/**\n * @deprecated We recommend using a standard modal with an error component instead.\n */\nexport class ErrorModalConfig {\n /**\n * The title to display in the modal error message.\n * @required\n */\n public errorTitle: string | undefined;\n /**\n * The description to provide additional details in the modal error message.\n * @required\n */\n public errorDescription: string | undefined;\n /**\n * The label for the action button that closes the modal error message.\n * @required\n */\n public errorCloseText: string | undefined;\n}\n","import { Component } from '@angular/core';\nimport { SkyModalInstance } from '@skyux/modals';\n\nimport { ErrorModalConfig } from './error-modal-config';\n\n/**\n * @internal\n */\n@Component({\n selector: 'sky-error-modal-form',\n templateUrl: './error-modal-form.component.html',\n styleUrls: ['./error-modal-form.component.scss'],\n})\nexport class SkyErrorModalFormComponent {\n constructor(\n public context: ErrorModalConfig,\n public instance: SkyModalInstance\n ) {}\n}\n","<sky-modal [ariaLabelledBy]=\"title.id\">\n <sky-modal-content>\n <div class=\"sky-error-modal-container\">\n <span class=\"sky-error-modal-title\" skyId #title=\"skyId\">{{\n context.errorTitle\n }}</span>\n <span class=\"sky-error-modal-description\">{{\n context.errorDescription\n }}</span>\n <div class=\"sky-error-modal-close\">\n <button\n type=\"button\"\n class=\"sky-btn sky-btn-primary\"\n (click)=\"instance.close()\"\n >\n {{ context.errorCloseText }}\n </button>\n </div>\n </div>\n </sky-modal-content>\n</sky-modal>\n","import { Injectable, Optional } from '@angular/core';\nimport { SkyLogService } from '@skyux/core';\nimport { SkyModalService } from '@skyux/modals';\n\nimport { ErrorModalConfig } from './error-modal-config';\nimport { SkyErrorModalFormComponent } from './error-modal-form.component';\n\n/**\n * Opens a modal to display a SKY UX-themed error message.\n * @deprecated We recommend using a standard modal with an error component instead.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class SkyErrorModalService {\n #modalSvc: SkyModalService;\n #logSvc: SkyLogService | undefined;\n\n constructor(\n modalSvc: SkyModalService,\n @Optional() logService?: SkyLogService\n ) {\n this.#modalSvc = modalSvc;\n this.#logSvc = logService;\n }\n /**\n * Text for the the error message, including title, description, and action label.\n * @deprecated We recommend using a standard modal with an error component instead.\n */\n public open(config: ErrorModalConfig) {\n this.#logSvc?.deprecated(\"SkyErrorModalService's open method\", {\n deprecationMajorVersion: 6,\n replacementRecommendation:\n 'We recommend using a standard modal with an error component instead.',\n });\n\n const providers = [{ provide: ErrorModalConfig, useValue: config }];\n\n this.#modalSvc.open(SkyErrorModalFormComponent, {\n ariaRole: 'alertdialog',\n providers: providers,\n });\n }\n}\n","/**\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 lib/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(\n localeInfo: SkyAppLocaleInfo,\n name: string\n ): string | undefined {\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","import { Component } from '@angular/core';\n\n/**\n * Specifies an interactive element to include with the error message.\n * For example, you can include a button to reload the page or to refresh data.\n */\n@Component({\n selector: 'sky-error-action',\n template: '<ng-content></ng-content>',\n})\nexport class SkyErrorActionComponent {}\n","import { Injectable } from '@angular/core';\n\nimport { BehaviorSubject } from 'rxjs';\n\n/**\n * internal\n */\n@Injectable()\nexport class SkyErrorService {\n public replaceDefaultDescription = new BehaviorSubject<boolean>(false);\n public replaceDefaultTitle = new BehaviorSubject<boolean>(false);\n}\n","import { Component, Input } from '@angular/core';\n\nimport { SkyErrorService } from './error.service';\n\n/**\n * Specifies a description to provide additional details about the error.\n */\n@Component({\n selector: 'sky-error-description',\n template: '<ng-content></ng-content>',\n})\nexport class SkyErrorDescriptionComponent {\n /**\n * Whether to replace the default description. If `false`, the content\n * from this component is added after the default description.\n * @default false\n */\n @Input()\n public set replaceDefaultDescription(value: boolean | undefined) {\n this.#errorSvc.replaceDefaultDescription.next(!!value);\n }\n\n #errorSvc: SkyErrorService;\n\n constructor(errorSvc: SkyErrorService) {\n this.#errorSvc = errorSvc;\n errorSvc.replaceDefaultDescription.next(false);\n }\n}\n","import { Component } from '@angular/core';\n\n/**\n * Specifies an image to display with the error message.\n */\n@Component({\n selector: 'sky-error-image',\n template: '<ng-content></ng-content>',\n})\nexport class SkyErrorImageComponent {}\n","import { Component, Input } from '@angular/core';\n\nimport { SkyErrorService } from './error.service';\n\n/**\n * Specifies a title to display with the error message.\n */\n@Component({\n selector: 'sky-error-title',\n template: '<ng-content></ng-content>',\n})\nexport class SkyErrorTitleComponent {\n /**\n * Whether to replace the default title. If `false`, the content\n * from this component is added after the default title.\n * @default false\n */\n @Input()\n public set replaceDefaultTitle(value: boolean | undefined) {\n this.#errorSvc.replaceDefaultTitle.next(!!value);\n }\n\n #errorSvc: SkyErrorService;\n\n constructor(errorSvc: SkyErrorService) {\n this.#errorSvc = errorSvc;\n errorSvc.replaceDefaultTitle.next(false);\n }\n}\n","import { Component, Input, OnInit } from '@angular/core';\nimport { SkyLibResourcesService } from '@skyux/i18n';\n\nimport { SkyErrorType } from './error-type';\nimport { SkyErrorService } from './error.service';\n\n/**\n * Displays a SKY UX-themed error message.\n */\n@Component({\n selector: 'sky-error',\n styleUrls: ['./error.component.scss'],\n templateUrl: './error.component.html',\n providers: [SkyErrorService],\n})\nexport class SkyErrorComponent implements OnInit {\n /**\n * The set of pre-defined values for the image,\n * title, and description.\n */\n @Input()\n public set errorType(value: SkyErrorType | undefined) {\n this.#_errorType = value;\n this.setErrorTypeFields();\n }\n\n public get errorType(): SkyErrorType | undefined {\n return this.#_errorType;\n }\n\n /**\n * Whether to display the error image.\n * @default true\n */\n @Input()\n public showImage: boolean | undefined = true;\n\n public defaultTitle: string | undefined;\n public defaultDescription: string | undefined;\n\n #resourcesSvc: SkyLibResourcesService;\n\n #_errorType: SkyErrorType | undefined;\n\n constructor(\n resourcesSvc: SkyLibResourcesService,\n public errorSvc: SkyErrorService\n ) {\n this.#resourcesSvc = resourcesSvc;\n }\n\n public ngOnInit() {\n if (this.errorType) {\n this.setErrorTypeFields();\n }\n }\n\n public setErrorTypeFields() {\n switch (this.errorType?.toLowerCase()) {\n case 'broken':\n this.defaultTitle = this.#getString('skyux_errors_broken_title');\n this.defaultDescription = this.#getString(\n 'skyux_errors_broken_description'\n );\n break;\n case 'notfound':\n this.defaultTitle = this.#getString('skyux_errors_not_found_title');\n this.defaultDescription = this.#getString(\n 'skyux_errors_not_found_description'\n );\n break;\n case 'construction':\n this.defaultTitle = this.#getString('skyux_errors_construction_title');\n this.defaultDescription = this.#getString(\n 'skyux_errors_construction_description'\n );\n break;\n case 'security':\n this.defaultTitle = this.#getString('skyux_errors_security_title');\n this.defaultDescription = this.#getString(\n 'skyux_errors_security_description'\n );\n break;\n default:\n this.defaultTitle = this.defaultDescription = undefined;\n }\n }\n\n #getString(key: string): string {\n // TODO: Need to implement the async `getString` method in a breaking change.\n return this.#resourcesSvc.getStringForLocale({ locale: 'en-US' }, key);\n }\n}\n","<div class=\"sky-error\">\n <div\n *ngIf=\"showImage\"\n class=\"sky-error-image-container sky-margin-stacked-lg\"\n >\n <div\n *ngIf=\"errorType\"\n class=\"sky-error-image-svg\"\n [ngClass]=\"['sky-error-' + errorType + '-image']\"\n ></div>\n <ng-content select=\"sky-error-image\"></ng-content>\n </div>\n\n <div class=\"sky-error-title sky-font-heading-1 sky-margin-stacked-lg\">\n <ng-container\n *ngIf=\"defaultTitle && (errorSvc.replaceDefaultTitle | async) === false\"\n >{{ defaultTitle }}</ng-container\n >\n <ng-content select=\"sky-error-title\"></ng-content>\n </div>\n\n <div\n class=\"sky-error-description sky-font-body-default sky-margin-stacked-xl\"\n >\n <span\n *ngIf=\"\n defaultDescription &&\n (errorSvc.replaceDefaultDescription | async) === false\n \"\n >{{ defaultDescription }}</span\n >\n <ng-content select=\"sky-error-description\"></ng-content>\n </div>\n\n <div class=\"sky-error-action\">\n <ng-content select=\"sky-error-action\"></ng-content>\n </div>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { SkyIdModule } from '@skyux/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: [\n CommonModule,\n SkyErrorsResourcesModule,\n SkyIdModule,\n SkyModalModule,\n ],\n exports: [\n SkyErrorComponent,\n SkyErrorImageComponent,\n SkyErrorTitleComponent,\n SkyErrorDescriptionComponent,\n SkyErrorActionComponent,\n ],\n})\nexport class SkyErrorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.ErrorModalConfig","i3","i1","i2","i1.SkyErrorService","i2.SkyErrorService"],"mappings":";;;;;;;;;;;;;AAAA;AACA;;AAEG;MACU,gBAAgB,CAAA;AAgB5B;;ACfD;;AAEG;MAMU,0BAA0B,CAAA;IACrC,WACS,CAAA,OAAyB,EACzB,QAA0B,EAAA;QAD1B,IAAO,CAAA,OAAA,GAAP,OAAO,CAAkB;QACzB,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAkB;KAC/B;;uHAJO,0BAA0B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAAA,gBAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA1B,0BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,0BAA0B,4DCbvC,ooBAqBA,EAAA,M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1
|
+
{"version":3,"file":"skyux-errors.mjs","sources":["../../../../../libs/components/errors/src/lib/modules/error/error-modal-config.ts","../../../../../libs/components/errors/src/lib/modules/error/error-modal-form.component.ts","../../../../../libs/components/errors/src/lib/modules/error/error-modal-form.component.html","../../../../../libs/components/errors/src/lib/modules/error/error-modal.service.ts","../../../../../libs/components/errors/src/lib/modules/shared/sky-errors-resources.module.ts","../../../../../libs/components/errors/src/lib/modules/error/error-action.component.ts","../../../../../libs/components/errors/src/lib/modules/error/error.service.ts","../../../../../libs/components/errors/src/lib/modules/error/error-description.component.ts","../../../../../libs/components/errors/src/lib/modules/error/error-image.component.ts","../../../../../libs/components/errors/src/lib/modules/error/error-title.component.ts","../../../../../libs/components/errors/src/lib/modules/error/error.component.ts","../../../../../libs/components/errors/src/lib/modules/error/error.component.html","../../../../../libs/components/errors/src/lib/modules/error/error.module.ts","../../../../../libs/components/errors/src/skyux-errors.ts"],"sourcesContent":["/* istanbul ignore next */\n/**\n * @deprecated We recommend using a standard modal with an error component instead.\n */\nexport class ErrorModalConfig {\n /**\n * The title to display in the modal error message.\n * @required\n */\n public errorTitle: string | undefined;\n /**\n * The description to provide additional details in the modal error message.\n * @required\n */\n public errorDescription: string | undefined;\n /**\n * The label for the action button that closes the modal error message.\n * @required\n */\n public errorCloseText: string | undefined;\n}\n","import { Component } from '@angular/core';\nimport { SkyModalInstance } from '@skyux/modals';\n\nimport { ErrorModalConfig } from './error-modal-config';\n\n/**\n * @internal\n */\n@Component({\n selector: 'sky-error-modal-form',\n templateUrl: './error-modal-form.component.html',\n styleUrls: ['./error-modal-form.component.scss'],\n})\nexport class SkyErrorModalFormComponent {\n constructor(\n public context: ErrorModalConfig,\n public instance: SkyModalInstance\n ) {}\n}\n","<sky-modal [ariaLabelledBy]=\"title.id\">\n <sky-modal-content>\n <div class=\"sky-error-modal-container\">\n <span class=\"sky-error-modal-title\" skyId #title=\"skyId\">{{\n context.errorTitle\n }}</span>\n <span class=\"sky-error-modal-description\">{{\n context.errorDescription\n }}</span>\n <div class=\"sky-error-modal-close\">\n <button\n type=\"button\"\n class=\"sky-btn sky-btn-primary\"\n (click)=\"instance.close()\"\n >\n {{ context.errorCloseText }}\n </button>\n </div>\n </div>\n </sky-modal-content>\n</sky-modal>\n","import { Injectable, Optional } from '@angular/core';\nimport { SkyLogService } from '@skyux/core';\nimport { SkyModalService } from '@skyux/modals';\n\nimport { ErrorModalConfig } from './error-modal-config';\nimport { SkyErrorModalFormComponent } from './error-modal-form.component';\n\n/**\n * Opens a modal to display a SKY UX-themed error message.\n * @deprecated We recommend using a standard modal with an error component instead.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class SkyErrorModalService {\n #modalSvc: SkyModalService;\n #logSvc: SkyLogService | undefined;\n\n constructor(\n modalSvc: SkyModalService,\n @Optional() logService?: SkyLogService\n ) {\n this.#modalSvc = modalSvc;\n this.#logSvc = logService;\n }\n /**\n * Text for the the error message, including title, description, and action label.\n * @deprecated We recommend using a standard modal with an error component instead.\n */\n public open(config: ErrorModalConfig) {\n this.#logSvc?.deprecated(\"SkyErrorModalService's open method\", {\n deprecationMajorVersion: 6,\n replacementRecommendation:\n 'We recommend using a standard modal with an error component instead.',\n });\n\n const providers = [{ provide: ErrorModalConfig, useValue: config }];\n\n this.#modalSvc.open(SkyErrorModalFormComponent, {\n ariaRole: 'alertdialog',\n providers: providers,\n });\n }\n}\n","/**\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 lib/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(\n localeInfo: SkyAppLocaleInfo,\n name: string\n ): string | undefined {\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","import { Component } from '@angular/core';\n\n/**\n * Specifies an interactive element to include with the error message.\n * For example, you can include a button to reload the page or to refresh data.\n */\n@Component({\n selector: 'sky-error-action',\n template: '<ng-content></ng-content>',\n})\nexport class SkyErrorActionComponent {}\n","import { Injectable } from '@angular/core';\n\nimport { BehaviorSubject } from 'rxjs';\n\n/**\n * internal\n */\n@Injectable()\nexport class SkyErrorService {\n public replaceDefaultDescription = new BehaviorSubject<boolean>(false);\n public replaceDefaultTitle = new BehaviorSubject<boolean>(false);\n}\n","import { Component, Input } from '@angular/core';\n\nimport { SkyErrorService } from './error.service';\n\n/**\n * Specifies a description to provide additional details about the error.\n */\n@Component({\n selector: 'sky-error-description',\n template: '<ng-content></ng-content>',\n})\nexport class SkyErrorDescriptionComponent {\n /**\n * Whether to replace the default description. If `false`, the content\n * from this component is added after the default description.\n * @default false\n */\n @Input()\n public set replaceDefaultDescription(value: boolean | undefined) {\n this.#errorSvc.replaceDefaultDescription.next(!!value);\n }\n\n #errorSvc: SkyErrorService;\n\n constructor(errorSvc: SkyErrorService) {\n this.#errorSvc = errorSvc;\n errorSvc.replaceDefaultDescription.next(false);\n }\n}\n","import { Component } from '@angular/core';\n\n/**\n * Specifies an image to display with the error message.\n */\n@Component({\n selector: 'sky-error-image',\n template: '<ng-content></ng-content>',\n})\nexport class SkyErrorImageComponent {}\n","import { Component, Input } from '@angular/core';\n\nimport { SkyErrorService } from './error.service';\n\n/**\n * Specifies a title to display with the error message.\n */\n@Component({\n selector: 'sky-error-title',\n template: '<ng-content></ng-content>',\n})\nexport class SkyErrorTitleComponent {\n /**\n * Whether to replace the default title. If `false`, the content\n * from this component is added after the default title.\n * @default false\n */\n @Input()\n public set replaceDefaultTitle(value: boolean | undefined) {\n this.#errorSvc.replaceDefaultTitle.next(!!value);\n }\n\n #errorSvc: SkyErrorService;\n\n constructor(errorSvc: SkyErrorService) {\n this.#errorSvc = errorSvc;\n errorSvc.replaceDefaultTitle.next(false);\n }\n}\n","import { Component, Input, OnInit } from '@angular/core';\nimport { SkyLibResourcesService } from '@skyux/i18n';\n\nimport { SkyErrorType } from './error-type';\nimport { SkyErrorService } from './error.service';\n\n/**\n * Displays a SKY UX-themed error message.\n */\n@Component({\n selector: 'sky-error',\n styleUrls: ['./error.component.scss'],\n templateUrl: './error.component.html',\n providers: [SkyErrorService],\n})\nexport class SkyErrorComponent implements OnInit {\n /**\n * The set of pre-defined values for the image,\n * title, and description.\n */\n @Input()\n public set errorType(value: SkyErrorType | undefined) {\n this.#_errorType = value;\n this.setErrorTypeFields();\n }\n\n public get errorType(): SkyErrorType | undefined {\n return this.#_errorType;\n }\n\n /**\n * Whether to display the error image.\n * @default true\n */\n @Input()\n public showImage: boolean | undefined = true;\n\n public defaultTitle: string | undefined;\n public defaultDescription: string | undefined;\n\n #resourcesSvc: SkyLibResourcesService;\n\n #_errorType: SkyErrorType | undefined;\n\n constructor(\n resourcesSvc: SkyLibResourcesService,\n public errorSvc: SkyErrorService\n ) {\n this.#resourcesSvc = resourcesSvc;\n }\n\n public ngOnInit() {\n if (this.errorType) {\n this.setErrorTypeFields();\n }\n }\n\n public setErrorTypeFields() {\n switch (this.errorType?.toLowerCase()) {\n case 'broken':\n this.defaultTitle = this.#getString('skyux_errors_broken_title');\n this.defaultDescription = this.#getString(\n 'skyux_errors_broken_description'\n );\n break;\n case 'notfound':\n this.defaultTitle = this.#getString('skyux_errors_not_found_title');\n this.defaultDescription = this.#getString(\n 'skyux_errors_not_found_description'\n );\n break;\n case 'construction':\n this.defaultTitle = this.#getString('skyux_errors_construction_title');\n this.defaultDescription = this.#getString(\n 'skyux_errors_construction_description'\n );\n break;\n case 'security':\n this.defaultTitle = this.#getString('skyux_errors_security_title');\n this.defaultDescription = this.#getString(\n 'skyux_errors_security_description'\n );\n break;\n default:\n this.defaultTitle = this.defaultDescription = undefined;\n }\n }\n\n #getString(key: string): string {\n // TODO: Need to implement the async `getString` method in a breaking change.\n return this.#resourcesSvc.getStringForLocale({ locale: 'en-US' }, key);\n }\n}\n","<div class=\"sky-error\">\n <div\n *ngIf=\"showImage\"\n class=\"sky-error-image-container sky-margin-stacked-lg\"\n >\n <div\n *ngIf=\"errorType\"\n class=\"sky-error-image-svg\"\n [ngClass]=\"['sky-error-' + errorType + '-image']\"\n ></div>\n <ng-content select=\"sky-error-image\"></ng-content>\n </div>\n\n <div class=\"sky-error-title sky-font-heading-1 sky-margin-stacked-lg\">\n <ng-container\n *ngIf=\"defaultTitle && (errorSvc.replaceDefaultTitle | async) === false\"\n >{{ defaultTitle }}</ng-container\n >\n <ng-content select=\"sky-error-title\"></ng-content>\n </div>\n\n <div\n class=\"sky-error-description sky-font-body-default sky-margin-stacked-xl\"\n >\n <span\n *ngIf=\"\n defaultDescription &&\n (errorSvc.replaceDefaultDescription | async) === false\n \"\n >{{ defaultDescription }}</span\n >\n <ng-content select=\"sky-error-description\"></ng-content>\n </div>\n\n <div class=\"sky-error-action\">\n <ng-content select=\"sky-error-action\"></ng-content>\n </div>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { SkyIdModule } from '@skyux/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: [\n CommonModule,\n SkyErrorsResourcesModule,\n SkyIdModule,\n SkyModalModule,\n ],\n exports: [\n SkyErrorComponent,\n SkyErrorImageComponent,\n SkyErrorTitleComponent,\n SkyErrorDescriptionComponent,\n SkyErrorActionComponent,\n ],\n})\nexport class SkyErrorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.ErrorModalConfig","i3","i1","i2","i1.SkyErrorService","i2.SkyErrorService"],"mappings":";;;;;;;;;;;;AAAA;AACA;;AAEG;MACU,gBAAgB,CAAA;AAgB5B;;ACfD;;AAEG;MAMU,0BAA0B,CAAA;IACrC,WACS,CAAA,OAAyB,EACzB,QAA0B,EAAA;QAD1B,IAAO,CAAA,OAAA,GAAP,OAAO,CAAkB;QACzB,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAkB;KAC/B;8GAJO,0BAA0B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAAA,gBAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAA1B,IAAA,SAAA,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A,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,iBAAiB;wBACjB,sBAAsB;wBACtB,sBAAsB;wBACtB,4BAA4B;wBAC5B,uBAAuB;wBACvB,0BAA0B;AAC3B,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,wBAAwB;wBACxB,WAAW;wBACX,cAAc;AACf,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,iBAAiB;wBACjB,sBAAsB;wBACtB,sBAAsB;wBACtB,4BAA4B;wBAC5B,uBAAuB;AACxB,qBAAA;AACF,iBAAA,CAAA;;;ACpCD;;AAEG;;;;"}
|
|
@@ -13,5 +13,5 @@ export declare class SkyErrorDescriptionComponent {
|
|
|
13
13
|
set replaceDefaultDescription(value: boolean | undefined);
|
|
14
14
|
constructor(errorSvc: SkyErrorService);
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyErrorDescriptionComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SkyErrorDescriptionComponent, "sky-error-description", never, { "replaceDefaultDescription": "replaceDefaultDescription"; }, {}, never, ["*"], false, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkyErrorDescriptionComponent, "sky-error-description", never, { "replaceDefaultDescription": { "alias": "replaceDefaultDescription"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
17
17
|
}
|
|
@@ -13,5 +13,5 @@ export declare class SkyErrorTitleComponent {
|
|
|
13
13
|
set replaceDefaultTitle(value: boolean | undefined);
|
|
14
14
|
constructor(errorSvc: SkyErrorService);
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyErrorTitleComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SkyErrorTitleComponent, "sky-error-title", never, { "replaceDefaultTitle": "replaceDefaultTitle"; }, {}, never, ["*"], false, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkyErrorTitleComponent, "sky-error-title", never, { "replaceDefaultTitle": { "alias": "replaceDefaultTitle"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
17
17
|
}
|
|
@@ -26,5 +26,5 @@ export declare class SkyErrorComponent implements OnInit {
|
|
|
26
26
|
ngOnInit(): void;
|
|
27
27
|
setErrorTypeFields(): void;
|
|
28
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyErrorComponent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SkyErrorComponent, "sky-error", never, { "errorType": "errorType"; "showImage": "showImage"; }, {}, never, ["sky-error-image", "sky-error-title", "sky-error-description", "sky-error-action"], false, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkyErrorComponent, "sky-error", never, { "errorType": { "alias": "errorType"; "required": false; }; "showImage": { "alias": "showImage"; "required": false; }; }, {}, never, ["sky-error-image", "sky-error-title", "sky-error-description", "sky-error-action"], false, never>;
|
|
30
30
|
}
|