@skyux/errors 6.18.0 → 6.20.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.
- package/documentation.json +262 -188
- package/esm2020/lib/modules/error/error-description.component.mjs +20 -10
- package/esm2020/lib/modules/error/error-modal-config.mjs +1 -1
- package/esm2020/lib/modules/error/error-modal.service.mjs +10 -9
- package/esm2020/lib/modules/error/error-title.component.mjs +20 -10
- package/esm2020/lib/modules/error/error.component.mjs +39 -44
- package/esm2020/lib/modules/error/error.service.mjs +18 -0
- package/esm2020/testing/error-fixture.mjs +1 -1
- package/fesm2015/skyux-errors-testing.mjs.map +1 -1
- package/fesm2015/skyux-errors.mjs +93 -67
- package/fesm2015/skyux-errors.mjs.map +1 -1
- package/fesm2020/skyux-errors-testing.mjs.map +1 -1
- package/fesm2020/skyux-errors.mjs +92 -67
- package/fesm2020/skyux-errors.mjs.map +1 -1
- package/lib/modules/error/error-description.component.d.ts +4 -1
- package/lib/modules/error/error-modal-config.d.ts +3 -3
- package/lib/modules/error/error-modal.service.d.ts +1 -2
- package/lib/modules/error/error-title.component.d.ts +4 -1
- package/lib/modules/error/error.component.d.ts +10 -13
- package/lib/modules/error/error.service.d.ts +11 -0
- package/package.json +5 -5
- package/testing/error-fixture.d.ts +2 -2
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { __classPrivateFieldSet, __classPrivateFieldGet } from 'tslib';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { Component, Injectable, Optional, NgModule, Input
|
|
3
|
+
import { Component, Injectable, Optional, NgModule, Input } from '@angular/core';
|
|
4
4
|
import * as i2$1 from '@skyux/core';
|
|
5
5
|
import * as i2 from '@skyux/modals';
|
|
6
6
|
import { SkyModalModule } from '@skyux/modals';
|
|
7
|
-
import * as
|
|
7
|
+
import * as i3 from '@angular/common';
|
|
8
8
|
import { CommonModule } from '@angular/common';
|
|
9
9
|
import * as i1 from '@skyux/i18n';
|
|
10
10
|
import { getLibStringForLocale, SkyI18nModule, SKY_LIB_RESOURCES_PROVIDERS } from '@skyux/i18n';
|
|
11
|
+
import { BehaviorSubject } from 'rxjs';
|
|
11
12
|
|
|
12
13
|
/* istanbul ignore next */
|
|
13
14
|
/**
|
|
@@ -32,34 +33,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
32
33
|
args: [{ selector: 'sky-error-modal-form', template: "<sky-modal>\n <sky-modal-content>\n <div class=\"sky-error-modal-container\">\n <span class=\"sky-error-modal-title\">{{ context.errorTitle }}</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"] }]
|
|
33
34
|
}], ctorParameters: function () { return [{ type: ErrorModalConfig }, { type: i2.SkyModalInstance }]; } });
|
|
34
35
|
|
|
35
|
-
var
|
|
36
|
+
var _SkyErrorModalService_modalSvc, _SkyErrorModalService_logSvc;
|
|
36
37
|
/**
|
|
37
38
|
* Opens a modal to display a SKY UX-themed error message.
|
|
38
39
|
* @deprecated We recommend using a standard modal with an error component instead.
|
|
39
40
|
*/
|
|
40
41
|
class SkyErrorModalService {
|
|
41
|
-
constructor(
|
|
42
|
-
this
|
|
43
|
-
|
|
44
|
-
__classPrivateFieldSet(this,
|
|
42
|
+
constructor(modalSvc, logService) {
|
|
43
|
+
_SkyErrorModalService_modalSvc.set(this, void 0);
|
|
44
|
+
_SkyErrorModalService_logSvc.set(this, void 0);
|
|
45
|
+
__classPrivateFieldSet(this, _SkyErrorModalService_modalSvc, modalSvc, "f");
|
|
46
|
+
__classPrivateFieldSet(this, _SkyErrorModalService_logSvc, logService, "f");
|
|
45
47
|
}
|
|
46
48
|
/**
|
|
47
49
|
* Specifies text for the the error message, including title, description, and action label.
|
|
48
50
|
* @deprecated We recommend using a standard modal with an error component instead.
|
|
49
51
|
*/
|
|
50
52
|
open(config) {
|
|
51
|
-
__classPrivateFieldGet(this,
|
|
53
|
+
__classPrivateFieldGet(this, _SkyErrorModalService_logSvc, "f")?.deprecated("SkyErrorModalService's open method", {
|
|
52
54
|
deprecationMajorVersion: 6,
|
|
53
55
|
replacementRecommendation: 'We recommend using a standard modal with an error component instead.',
|
|
54
56
|
});
|
|
55
57
|
const providers = [{ provide: ErrorModalConfig, useValue: config }];
|
|
56
|
-
this.
|
|
58
|
+
__classPrivateFieldGet(this, _SkyErrorModalService_modalSvc, "f").open(SkyErrorModalFormComponent, {
|
|
57
59
|
ariaRole: 'alertdialog',
|
|
58
60
|
providers: providers,
|
|
59
61
|
});
|
|
60
62
|
}
|
|
61
63
|
}
|
|
62
|
-
|
|
64
|
+
_SkyErrorModalService_modalSvc = new WeakMap(), _SkyErrorModalService_logSvc = new WeakMap();
|
|
63
65
|
SkyErrorModalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: SkyErrorModalService, deps: [{ token: i2.SkyModalService }, { token: i2$1.SkyLogService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
64
66
|
SkyErrorModalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: SkyErrorModalService, providedIn: 'root' });
|
|
65
67
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: SkyErrorModalService, decorators: [{
|
|
@@ -148,20 +150,42 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
148
150
|
}]
|
|
149
151
|
}] });
|
|
150
152
|
|
|
153
|
+
/**
|
|
154
|
+
* internal
|
|
155
|
+
*/
|
|
156
|
+
class SkyErrorService {
|
|
157
|
+
constructor() {
|
|
158
|
+
this.replaceDefaultDescription = new BehaviorSubject(false);
|
|
159
|
+
this.replaceDefaultTitle = new BehaviorSubject(false);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
SkyErrorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: SkyErrorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
163
|
+
SkyErrorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: SkyErrorService });
|
|
164
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: SkyErrorService, decorators: [{
|
|
165
|
+
type: Injectable
|
|
166
|
+
}] });
|
|
167
|
+
|
|
168
|
+
var _SkyErrorDescriptionComponent_errorSvc;
|
|
151
169
|
/**
|
|
152
170
|
* Specifies a description to provide additional details about the error.
|
|
153
171
|
*/
|
|
154
172
|
class SkyErrorDescriptionComponent {
|
|
155
|
-
constructor() {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
173
|
+
constructor(errorSvc) {
|
|
174
|
+
_SkyErrorDescriptionComponent_errorSvc.set(this, void 0);
|
|
175
|
+
__classPrivateFieldSet(this, _SkyErrorDescriptionComponent_errorSvc, errorSvc, "f");
|
|
176
|
+
errorSvc.replaceDefaultDescription.next(false);
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Indicates whether to replace the default description. If `false`, the content
|
|
180
|
+
* from this component is added after the default description.
|
|
181
|
+
* @default false
|
|
182
|
+
*/
|
|
183
|
+
set replaceDefaultDescription(value) {
|
|
184
|
+
__classPrivateFieldGet(this, _SkyErrorDescriptionComponent_errorSvc, "f").replaceDefaultDescription.next(!!value);
|
|
162
185
|
}
|
|
163
186
|
}
|
|
164
|
-
|
|
187
|
+
_SkyErrorDescriptionComponent_errorSvc = new WeakMap();
|
|
188
|
+
SkyErrorDescriptionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: SkyErrorDescriptionComponent, deps: [{ token: SkyErrorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
165
189
|
SkyErrorDescriptionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: SkyErrorDescriptionComponent, selector: "sky-error-description", inputs: { replaceDefaultDescription: "replaceDefaultDescription" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
|
|
166
190
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: SkyErrorDescriptionComponent, decorators: [{
|
|
167
191
|
type: Component,
|
|
@@ -169,7 +193,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
169
193
|
selector: 'sky-error-description',
|
|
170
194
|
template: '<ng-content></ng-content>',
|
|
171
195
|
}]
|
|
172
|
-
}], propDecorators: { replaceDefaultDescription: [{
|
|
196
|
+
}], ctorParameters: function () { return [{ type: SkyErrorService }]; }, propDecorators: { replaceDefaultDescription: [{
|
|
173
197
|
type: Input
|
|
174
198
|
}] } });
|
|
175
199
|
|
|
@@ -188,20 +212,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
188
212
|
}]
|
|
189
213
|
}] });
|
|
190
214
|
|
|
215
|
+
var _SkyErrorTitleComponent_errorSvc;
|
|
191
216
|
/**
|
|
192
217
|
* Specifies a title to display with the error message.
|
|
193
218
|
*/
|
|
194
219
|
class SkyErrorTitleComponent {
|
|
195
|
-
constructor() {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
220
|
+
constructor(errorSvc) {
|
|
221
|
+
_SkyErrorTitleComponent_errorSvc.set(this, void 0);
|
|
222
|
+
__classPrivateFieldSet(this, _SkyErrorTitleComponent_errorSvc, errorSvc, "f");
|
|
223
|
+
errorSvc.replaceDefaultTitle.next(false);
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Indicates whether to replace the default title. If `false`, the content
|
|
227
|
+
* from this component is added after the default title.
|
|
228
|
+
* @default false
|
|
229
|
+
*/
|
|
230
|
+
set replaceDefaultTitle(value) {
|
|
231
|
+
__classPrivateFieldGet(this, _SkyErrorTitleComponent_errorSvc, "f").replaceDefaultTitle.next(!!value);
|
|
202
232
|
}
|
|
203
233
|
}
|
|
204
|
-
|
|
234
|
+
_SkyErrorTitleComponent_errorSvc = new WeakMap();
|
|
235
|
+
SkyErrorTitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: SkyErrorTitleComponent, deps: [{ token: SkyErrorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
205
236
|
SkyErrorTitleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: SkyErrorTitleComponent, selector: "sky-error-title", inputs: { replaceDefaultTitle: "replaceDefaultTitle" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
|
|
206
237
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: SkyErrorTitleComponent, decorators: [{
|
|
207
238
|
type: Component,
|
|
@@ -209,41 +240,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
209
240
|
selector: 'sky-error-title',
|
|
210
241
|
template: '<ng-content></ng-content>',
|
|
211
242
|
}]
|
|
212
|
-
}], propDecorators: { replaceDefaultTitle: [{
|
|
243
|
+
}], ctorParameters: function () { return [{ type: SkyErrorService }]; }, propDecorators: { replaceDefaultTitle: [{
|
|
213
244
|
type: Input
|
|
214
245
|
}] } });
|
|
215
246
|
|
|
247
|
+
var _SkyErrorComponent_resourcesSvc, _SkyErrorComponent__errorType;
|
|
216
248
|
/**
|
|
217
249
|
* Displays a SKY UX-themed error message.
|
|
218
250
|
*/
|
|
219
251
|
class SkyErrorComponent {
|
|
220
|
-
constructor(
|
|
221
|
-
this.
|
|
252
|
+
constructor(resourcesSvc, errorSvc) {
|
|
253
|
+
this.errorSvc = errorSvc;
|
|
222
254
|
/**
|
|
223
255
|
* Indicates whether to display the error image.
|
|
224
256
|
* @default true
|
|
225
257
|
*/
|
|
226
258
|
this.showImage = true;
|
|
227
|
-
this
|
|
228
|
-
this
|
|
259
|
+
_SkyErrorComponent_resourcesSvc.set(this, void 0);
|
|
260
|
+
_SkyErrorComponent__errorType.set(this, void 0);
|
|
261
|
+
__classPrivateFieldSet(this, _SkyErrorComponent_resourcesSvc, resourcesSvc, "f");
|
|
229
262
|
}
|
|
230
263
|
/**
|
|
231
264
|
* Specifies a set of pre-defined values for the image,
|
|
232
265
|
* title, and description.
|
|
233
266
|
*/
|
|
234
267
|
set errorType(value) {
|
|
235
|
-
this
|
|
268
|
+
__classPrivateFieldSet(this, _SkyErrorComponent__errorType, value, "f");
|
|
236
269
|
this.setErrorTypeFields();
|
|
237
270
|
}
|
|
238
271
|
get errorType() {
|
|
239
|
-
return this
|
|
240
|
-
}
|
|
241
|
-
get showTitle() {
|
|
242
|
-
return this.title && !(this.titleCmp && this.titleCmp.replaceDefaultTitle);
|
|
243
|
-
}
|
|
244
|
-
get showDescription() {
|
|
245
|
-
return (this.description &&
|
|
246
|
-
!(this.descriptionCmp && this.descriptionCmp.replaceDefaultDescription));
|
|
272
|
+
return __classPrivateFieldGet(this, _SkyErrorComponent__errorType, "f");
|
|
247
273
|
}
|
|
248
274
|
ngOnInit() {
|
|
249
275
|
if (this.errorType) {
|
|
@@ -251,43 +277,42 @@ class SkyErrorComponent {
|
|
|
251
277
|
}
|
|
252
278
|
}
|
|
253
279
|
setErrorTypeFields() {
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
280
|
+
switch (this.errorType?.toLowerCase()) {
|
|
281
|
+
case 'broken':
|
|
282
|
+
this.defaultTitle = this.getString('skyux_errors_broken_title');
|
|
283
|
+
this.defaultDescription = this.getString('skyux_errors_broken_description');
|
|
284
|
+
break;
|
|
285
|
+
case 'notfound':
|
|
286
|
+
this.defaultTitle = this.getString('skyux_errors_not_found_title');
|
|
287
|
+
this.defaultDescription = this.getString('skyux_errors_not_found_description');
|
|
288
|
+
break;
|
|
289
|
+
case 'construction':
|
|
290
|
+
this.defaultTitle = this.getString('skyux_errors_construction_title');
|
|
291
|
+
this.defaultDescription = this.getString('skyux_errors_construction_description');
|
|
292
|
+
break;
|
|
293
|
+
case 'security':
|
|
294
|
+
this.defaultTitle = this.getString('skyux_errors_security_title');
|
|
295
|
+
this.defaultDescription = this.getString('skyux_errors_security_description');
|
|
296
|
+
break;
|
|
297
|
+
default:
|
|
298
|
+
this.defaultTitle = this.defaultDescription = undefined;
|
|
269
299
|
}
|
|
270
300
|
}
|
|
271
301
|
getString(key) {
|
|
272
302
|
// TODO: Need to implement the async `getString` method in a breaking change.
|
|
273
|
-
return this.
|
|
303
|
+
return __classPrivateFieldGet(this, _SkyErrorComponent_resourcesSvc, "f").getStringForLocale({ locale: 'en-US' }, key);
|
|
274
304
|
}
|
|
275
305
|
}
|
|
276
|
-
|
|
277
|
-
SkyErrorComponent.ɵ
|
|
306
|
+
_SkyErrorComponent_resourcesSvc = new WeakMap(), _SkyErrorComponent__errorType = new WeakMap();
|
|
307
|
+
SkyErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: SkyErrorComponent, deps: [{ token: i1.SkyLibResourcesService }, { token: SkyErrorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
308
|
+
SkyErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", 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 >\n {{ defaultTitle }}\n </ng-container>\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 >\n {{ defaultDescription }}\n </span>\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"], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "async": i3.AsyncPipe } });
|
|
278
309
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: SkyErrorComponent, decorators: [{
|
|
279
310
|
type: Component,
|
|
280
|
-
args: [{ selector: 'sky-error', 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
|
|
281
|
-
}], ctorParameters: function () { return [{ type: i1.SkyLibResourcesService }]; }, propDecorators: { errorType: [{
|
|
311
|
+
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 >\n {{ defaultTitle }}\n </ng-container>\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 >\n {{ defaultDescription }}\n </span>\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"] }]
|
|
312
|
+
}], ctorParameters: function () { return [{ type: i1.SkyLibResourcesService }, { type: SkyErrorService }]; }, propDecorators: { errorType: [{
|
|
282
313
|
type: Input
|
|
283
314
|
}], showImage: [{
|
|
284
315
|
type: Input
|
|
285
|
-
}], titleCmp: [{
|
|
286
|
-
type: ContentChild,
|
|
287
|
-
args: [SkyErrorTitleComponent]
|
|
288
|
-
}], descriptionCmp: [{
|
|
289
|
-
type: ContentChild,
|
|
290
|
-
args: [SkyErrorDescriptionComponent]
|
|
291
316
|
}] } });
|
|
292
317
|
|
|
293
318
|
class SkyErrorModule {
|
|
@@ -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-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 * Specifies a title to display in the modal error message.\n * @required\n */\n public errorTitle: string;\n /**\n * Specifies a description to provide additional details in the modal error message.\n * @required\n */\n public errorDescription: string;\n /**\n * Specifies a label for the action button that closes the modal error message.\n * @required\n */\n public errorCloseText: string;\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>\n <sky-modal-content>\n <div class=\"sky-error-modal-container\">\n <span class=\"sky-error-modal-title\">{{ context.errorTitle }}</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 #_logService: SkyLogService | undefined;\n\n constructor(\n private modal: SkyModalService,\n @Optional() logService?: SkyLogService\n ) {\n this.#_logService = logService;\n }\n /**\n * Specifies 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.#_logService?.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.modal.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 { Component, Input } from '@angular/core';\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 * Indicates 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 replaceDefaultDescription = false;\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\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 * Indicates 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 replaceDefaultTitle = false;\n}\n","import { Component, ContentChild, Input, OnInit } from '@angular/core';\nimport { SkyLibResourcesService } from '@skyux/i18n';\n\nimport { SkyErrorDescriptionComponent } from './error-description.component';\nimport { SkyErrorTitleComponent } from './error-title.component';\nimport { SkyErrorType } from './error-type';\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})\nexport class SkyErrorComponent implements OnInit {\n /**\n * Specifies a set of pre-defined values for the image,\n * title, and description.\n */\n @Input()\n public set errorType(value: SkyErrorType) {\n this._errorType = value;\n this.setErrorTypeFields();\n }\n\n public get errorType() {\n return this._errorType;\n }\n\n /**\n * Indicates whether to display the error image.\n * @default true\n */\n @Input()\n public showImage = true;\n\n public title: string = undefined;\n public description: string = undefined;\n\n public get showTitle(): boolean {\n return this.title && !(this.titleCmp && this.titleCmp.replaceDefaultTitle);\n }\n\n public get showDescription(): boolean {\n return (\n this.description &&\n !(this.descriptionCmp && this.descriptionCmp.replaceDefaultDescription)\n );\n }\n\n @ContentChild(SkyErrorTitleComponent)\n private titleCmp: SkyErrorTitleComponent;\n\n @ContentChild(SkyErrorDescriptionComponent)\n private descriptionCmp: SkyErrorDescriptionComponent;\n\n private _errorType: SkyErrorType;\n\n constructor(private resourcesService: SkyLibResourcesService) {}\n\n public ngOnInit() {\n if (this.errorType) {\n this.setErrorTypeFields();\n }\n }\n\n public setErrorTypeFields() {\n if (this.errorType.toLowerCase() === 'broken') {\n this.title = this.getString('skyux_errors_broken_title');\n this.description = this.getString('skyux_errors_broken_description');\n } else if (this.errorType.toLowerCase() === 'notfound') {\n this.title = this.getString('skyux_errors_not_found_title');\n this.description = this.getString('skyux_errors_not_found_description');\n } else if (this.errorType.toLowerCase() === 'construction') {\n this.title = this.getString('skyux_errors_construction_title');\n this.description = this.getString(\n 'skyux_errors_construction_description'\n );\n } else if (this.errorType.toLowerCase() === 'security') {\n this.title = this.getString('skyux_errors_security_title');\n this.description = this.getString('skyux_errors_security_description');\n }\n }\n\n private getString(key: string): string {\n // TODO: Need to implement the async `getString` method in a breaking change.\n return this.resourcesService.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 *ngIf=\"showTitle\">\n {{ title }}\n </ng-container>\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 *ngIf=\"showDescription\">\n {{ description }}\n </span>\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 { 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 ],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../../../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 * Specifies a title to display in the modal error message.\n * @required\n */\n public errorTitle: string | undefined;\n /**\n * Specifies a description to provide additional details in the modal error message.\n * @required\n */\n public errorDescription: string | undefined;\n /**\n * Specifies a 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>\n <sky-modal-content>\n <div class=\"sky-error-modal-container\">\n <span class=\"sky-error-modal-title\">{{ context.errorTitle }}</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 * Specifies 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 * Indicates 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 * Indicates 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 * Specifies a 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 * Indicates 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 private 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 >\n {{ defaultTitle }}\n </ng-container>\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 >\n {{ defaultDescription }}\n </span>\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 { 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})\nexport class SkyErrorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.ErrorModalConfig","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,0BAA0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,oBAAA,YAAY,EAAE;wBACZ,iBAAiB;wBACjB,sBAAsB;wBACtB,sBAAsB;wBACtB,4BAA4B;wBAC5B,uBAAuB;wBACvB,0BAA0B;AAC3B,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,wBAAwB,EAAE,cAAc,CAAC;AACjE,oBAAA,OAAO,EAAE;wBACP,iBAAiB;wBACjB,sBAAsB;wBACtB,sBAAsB;wBACtB,4BAA4B;wBAC5B,uBAAuB;AACxB,qBAAA;AACF,iBAAA,CAAA;;;AC9BD;;AAEG;;;;"}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
+
import { SkyErrorService } from './error.service';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
/**
|
|
3
4
|
* Specifies a description to provide additional details about the error.
|
|
4
5
|
*/
|
|
5
6
|
export declare class SkyErrorDescriptionComponent {
|
|
7
|
+
#private;
|
|
6
8
|
/**
|
|
7
9
|
* Indicates whether to replace the default description. If `false`, the content
|
|
8
10
|
* from this component is added after the default description.
|
|
9
11
|
* @default false
|
|
10
12
|
*/
|
|
11
|
-
replaceDefaultDescription: boolean;
|
|
13
|
+
set replaceDefaultDescription(value: boolean | undefined);
|
|
14
|
+
constructor(errorSvc: SkyErrorService);
|
|
12
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyErrorDescriptionComponent, never>;
|
|
13
16
|
static ɵcmp: i0.ɵɵComponentDeclaration<SkyErrorDescriptionComponent, "sky-error-description", never, { "replaceDefaultDescription": "replaceDefaultDescription"; }, {}, never, ["*"]>;
|
|
14
17
|
}
|
|
@@ -6,15 +6,15 @@ export declare class ErrorModalConfig {
|
|
|
6
6
|
* Specifies a title to display in the modal error message.
|
|
7
7
|
* @required
|
|
8
8
|
*/
|
|
9
|
-
errorTitle: string;
|
|
9
|
+
errorTitle: string | undefined;
|
|
10
10
|
/**
|
|
11
11
|
* Specifies a description to provide additional details in the modal error message.
|
|
12
12
|
* @required
|
|
13
13
|
*/
|
|
14
|
-
errorDescription: string;
|
|
14
|
+
errorDescription: string | undefined;
|
|
15
15
|
/**
|
|
16
16
|
* Specifies a label for the action button that closes the modal error message.
|
|
17
17
|
* @required
|
|
18
18
|
*/
|
|
19
|
-
errorCloseText: string;
|
|
19
|
+
errorCloseText: string | undefined;
|
|
20
20
|
}
|
|
@@ -8,8 +8,7 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class SkyErrorModalService {
|
|
10
10
|
#private;
|
|
11
|
-
|
|
12
|
-
constructor(modal: SkyModalService, logService?: SkyLogService);
|
|
11
|
+
constructor(modalSvc: SkyModalService, logService?: SkyLogService);
|
|
13
12
|
/**
|
|
14
13
|
* Specifies text for the the error message, including title, description, and action label.
|
|
15
14
|
* @deprecated We recommend using a standard modal with an error component instead.
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
+
import { SkyErrorService } from './error.service';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
/**
|
|
3
4
|
* Specifies a title to display with the error message.
|
|
4
5
|
*/
|
|
5
6
|
export declare class SkyErrorTitleComponent {
|
|
7
|
+
#private;
|
|
6
8
|
/**
|
|
7
9
|
* Indicates whether to replace the default title. If `false`, the content
|
|
8
10
|
* from this component is added after the default title.
|
|
9
11
|
* @default false
|
|
10
12
|
*/
|
|
11
|
-
replaceDefaultTitle: boolean;
|
|
13
|
+
set replaceDefaultTitle(value: boolean | undefined);
|
|
14
|
+
constructor(errorSvc: SkyErrorService);
|
|
12
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyErrorTitleComponent, never>;
|
|
13
16
|
static ɵcmp: i0.ɵɵComponentDeclaration<SkyErrorTitleComponent, "sky-error-title", never, { "replaceDefaultTitle": "replaceDefaultTitle"; }, {}, never, ["*"]>;
|
|
14
17
|
}
|
|
@@ -1,34 +1,31 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { SkyLibResourcesService } from '@skyux/i18n';
|
|
3
3
|
import { SkyErrorType } from './error-type';
|
|
4
|
+
import { SkyErrorService } from './error.service';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
/**
|
|
6
7
|
* Displays a SKY UX-themed error message.
|
|
7
8
|
*/
|
|
8
9
|
export declare class SkyErrorComponent implements OnInit {
|
|
9
|
-
private
|
|
10
|
+
#private;
|
|
11
|
+
errorSvc: SkyErrorService;
|
|
10
12
|
/**
|
|
11
13
|
* Specifies a set of pre-defined values for the image,
|
|
12
14
|
* title, and description.
|
|
13
15
|
*/
|
|
14
|
-
set errorType(value: SkyErrorType);
|
|
15
|
-
get errorType(): SkyErrorType;
|
|
16
|
+
set errorType(value: SkyErrorType | undefined);
|
|
17
|
+
get errorType(): SkyErrorType | undefined;
|
|
16
18
|
/**
|
|
17
19
|
* Indicates whether to display the error image.
|
|
18
20
|
* @default true
|
|
19
21
|
*/
|
|
20
|
-
showImage: boolean;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
get showDescription(): boolean;
|
|
25
|
-
private titleCmp;
|
|
26
|
-
private descriptionCmp;
|
|
27
|
-
private _errorType;
|
|
28
|
-
constructor(resourcesService: SkyLibResourcesService);
|
|
22
|
+
showImage: boolean | undefined;
|
|
23
|
+
defaultTitle: string | undefined;
|
|
24
|
+
defaultDescription: string | undefined;
|
|
25
|
+
constructor(resourcesSvc: SkyLibResourcesService, errorSvc: SkyErrorService);
|
|
29
26
|
ngOnInit(): void;
|
|
30
27
|
setErrorTypeFields(): void;
|
|
31
28
|
private getString;
|
|
32
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyErrorComponent, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SkyErrorComponent, "sky-error", never, { "errorType": "errorType"; "showImage": "showImage"; }, {},
|
|
30
|
+
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"]>;
|
|
34
31
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BehaviorSubject } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* internal
|
|
5
|
+
*/
|
|
6
|
+
export declare class SkyErrorService {
|
|
7
|
+
replaceDefaultDescription: BehaviorSubject<boolean>;
|
|
8
|
+
replaceDefaultTitle: BehaviorSubject<boolean>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkyErrorService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SkyErrorService>;
|
|
11
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/errors",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.20.0",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blackbaud",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"@angular/common": "^13.3.2",
|
|
44
44
|
"@angular/core": "^13.3.2",
|
|
45
45
|
"@angular/platform-browser": "^13.3.2",
|
|
46
|
-
"@skyux-sdk/testing": "6.
|
|
47
|
-
"@skyux/core": "6.
|
|
48
|
-
"@skyux/i18n": "6.
|
|
49
|
-
"@skyux/modals": "6.
|
|
46
|
+
"@skyux-sdk/testing": "6.20.0",
|
|
47
|
+
"@skyux/core": "6.20.0",
|
|
48
|
+
"@skyux/i18n": "6.20.0",
|
|
49
|
+
"@skyux/modals": "6.20.0"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"tslib": "^2.3.1"
|
|
@@ -7,7 +7,7 @@ export declare class SkyErrorFixture {
|
|
|
7
7
|
/**
|
|
8
8
|
* The error's current type.
|
|
9
9
|
*/
|
|
10
|
-
get errorType(): string;
|
|
10
|
+
get errorType(): string | undefined;
|
|
11
11
|
private debugEl;
|
|
12
|
-
constructor(fixture: ComponentFixture<
|
|
12
|
+
constructor(fixture: ComponentFixture<unknown>, skyTestId: string);
|
|
13
13
|
}
|