@skyux/errors 15.0.0-alpha.0 → 15.0.0-alpha.2
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.
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { ChangeDetectionStrategy, Component, Optional, Injectable, NgModule, Input, HostBinding } from '@angular/core';
|
|
3
|
-
import * as i2
|
|
2
|
+
import { inject, ChangeDetectionStrategy, Component, Optional, Injectable, NgModule, Input, HostBinding } from '@angular/core';
|
|
3
|
+
import * as i2 from '@skyux/core';
|
|
4
4
|
import { SkyIdModule } from '@skyux/core';
|
|
5
|
-
import * as i2 from '@skyux/modals';
|
|
6
|
-
import { SkyModalModule } from '@skyux/modals';
|
|
7
|
-
import * as
|
|
5
|
+
import * as i2$1 from '@skyux/modals';
|
|
6
|
+
import { SkyModalInstance, SkyModalModule } from '@skyux/modals';
|
|
7
|
+
import * as i1 from '@angular/common';
|
|
8
8
|
import { CommonModule } from '@angular/common';
|
|
9
|
-
import * as i1 from '@skyux/i18n';
|
|
10
9
|
import { SkyLibResourcesService, SkyI18nModule } from '@skyux/i18n';
|
|
11
10
|
import { BehaviorSubject } from 'rxjs';
|
|
12
11
|
|
|
@@ -21,17 +20,17 @@ class ErrorModalConfig {
|
|
|
21
20
|
* @internal
|
|
22
21
|
*/
|
|
23
22
|
class SkyErrorModalFormComponent {
|
|
24
|
-
constructor(
|
|
25
|
-
this.context =
|
|
26
|
-
this.instance =
|
|
23
|
+
constructor() {
|
|
24
|
+
this.context = inject(ErrorModalConfig);
|
|
25
|
+
this.instance = inject(SkyModalInstance);
|
|
27
26
|
}
|
|
28
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
29
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.
|
|
27
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SkyErrorModalFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
28
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: SkyErrorModalFormComponent, isStandalone: true, 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 #title=\"skyId\" class=\"sky-error-modal-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: "ngmodule", type: SkyIdModule }, { kind: "directive", type: i2.λ2, selector: "[skyId]", exportAs: ["skyId"] }, { kind: "ngmodule", type: SkyModalModule }, { kind: "component", type: i2$1.λ5, selector: "sky-modal", inputs: ["formErrors", "headingText", "helpKey", "helpPopoverContent", "helpPopoverTitle", "ariaRole", "tiledBody", "ariaDescribedBy", "ariaLabelledBy", "layout", "headingHidden"] }, { kind: "component", type: i2$1.λ2, selector: "sky-modal-content" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
30
29
|
}
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SkyErrorModalFormComponent, decorators: [{
|
|
32
31
|
type: Component,
|
|
33
32
|
args: [{ selector: 'sky-error-modal-form', changeDetection: ChangeDetectionStrategy.Eager, imports: [SkyIdModule, SkyModalModule], template: "<sky-modal [ariaLabelledBy]=\"title.id\">\n <sky-modal-content>\n <div class=\"sky-error-modal-container\">\n <span #title=\"skyId\" class=\"sky-error-modal-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"] }]
|
|
34
|
-
}]
|
|
33
|
+
}] });
|
|
35
34
|
|
|
36
35
|
/**
|
|
37
36
|
* Opens a modal to display a SKY UX-themed error message.
|
|
@@ -40,7 +39,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImpor
|
|
|
40
39
|
class SkyErrorModalService {
|
|
41
40
|
#modalSvc;
|
|
42
41
|
#logSvc;
|
|
42
|
+
/* eslint-disable @angular-eslint/prefer-inject -- constructor injection is required to maintain the public API for consumers who may instantiate this service directly (e.g. `new SkyErrorModalService(...)`) */
|
|
43
43
|
constructor(modalSvc, logService) {
|
|
44
|
+
/* eslint-enable @angular-eslint/prefer-inject */
|
|
44
45
|
this.#modalSvc = modalSvc;
|
|
45
46
|
this.#logSvc = logService;
|
|
46
47
|
}
|
|
@@ -59,15 +60,15 @@ class SkyErrorModalService {
|
|
|
59
60
|
providers: providers,
|
|
60
61
|
});
|
|
61
62
|
}
|
|
62
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
63
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.
|
|
63
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SkyErrorModalService, deps: [{ token: i2$1.SkyModalService }, { token: i2.SkyLogService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
64
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SkyErrorModalService, providedIn: 'root' }); }
|
|
64
65
|
}
|
|
65
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
66
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SkyErrorModalService, decorators: [{
|
|
66
67
|
type: Injectable,
|
|
67
68
|
args: [{
|
|
68
69
|
providedIn: 'root',
|
|
69
70
|
}]
|
|
70
|
-
}], ctorParameters: () => [{ type: i2.SkyModalService }, { type: i2
|
|
71
|
+
}], ctorParameters: () => [{ type: i2$1.SkyModalService }, { type: i2.SkyLogService, decorators: [{
|
|
71
72
|
type: Optional
|
|
72
73
|
}] }] });
|
|
73
74
|
|
|
@@ -125,11 +126,11 @@ SkyLibResourcesService.addResources(RESOURCES);
|
|
|
125
126
|
* Import into any component library module that needs to use resource strings.
|
|
126
127
|
*/
|
|
127
128
|
class SkyErrorsResourcesModule {
|
|
128
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
129
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.
|
|
130
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.
|
|
129
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SkyErrorsResourcesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
130
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.6", ngImport: i0, type: SkyErrorsResourcesModule, exports: [SkyI18nModule] }); }
|
|
131
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SkyErrorsResourcesModule, imports: [SkyI18nModule] }); }
|
|
131
132
|
}
|
|
132
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
133
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SkyErrorsResourcesModule, decorators: [{
|
|
133
134
|
type: NgModule,
|
|
134
135
|
args: [{
|
|
135
136
|
exports: [SkyI18nModule],
|
|
@@ -141,10 +142,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImpor
|
|
|
141
142
|
* For example, you can include a button to reload the page or to refresh data.
|
|
142
143
|
*/
|
|
143
144
|
class SkyErrorActionComponent {
|
|
144
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
145
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.
|
|
145
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SkyErrorActionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
146
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: SkyErrorActionComponent, isStandalone: false, selector: "sky-error-action", ngImport: i0, template: '<ng-content />', isInline: true, changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
146
147
|
}
|
|
147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
148
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SkyErrorActionComponent, decorators: [{
|
|
148
149
|
type: Component,
|
|
149
150
|
args: [{
|
|
150
151
|
selector: 'sky-error-action',
|
|
@@ -162,10 +163,10 @@ class SkyErrorService {
|
|
|
162
163
|
this.replaceDefaultDescription = new BehaviorSubject(false);
|
|
163
164
|
this.replaceDefaultTitle = new BehaviorSubject(false);
|
|
164
165
|
}
|
|
165
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
166
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.
|
|
166
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SkyErrorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
167
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SkyErrorService }); }
|
|
167
168
|
}
|
|
168
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
169
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SkyErrorService, decorators: [{
|
|
169
170
|
type: Injectable
|
|
170
171
|
}] });
|
|
171
172
|
|
|
@@ -181,15 +182,14 @@ class SkyErrorDescriptionComponent {
|
|
|
181
182
|
set replaceDefaultDescription(value) {
|
|
182
183
|
this.#errorSvc.replaceDefaultDescription.next(!!value);
|
|
183
184
|
}
|
|
184
|
-
#errorSvc;
|
|
185
|
-
constructor(
|
|
186
|
-
this.#errorSvc
|
|
187
|
-
errorSvc.replaceDefaultDescription.next(false);
|
|
185
|
+
#errorSvc = inject(SkyErrorService);
|
|
186
|
+
constructor() {
|
|
187
|
+
this.#errorSvc.replaceDefaultDescription.next(false);
|
|
188
188
|
}
|
|
189
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
190
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.
|
|
189
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SkyErrorDescriptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
190
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: SkyErrorDescriptionComponent, isStandalone: false, selector: "sky-error-description", inputs: { replaceDefaultDescription: "replaceDefaultDescription" }, ngImport: i0, template: '<ng-content />', isInline: true, changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
191
191
|
}
|
|
192
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
192
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SkyErrorDescriptionComponent, decorators: [{
|
|
193
193
|
type: Component,
|
|
194
194
|
args: [{
|
|
195
195
|
selector: 'sky-error-description',
|
|
@@ -197,7 +197,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImpor
|
|
|
197
197
|
changeDetection: ChangeDetectionStrategy.Eager,
|
|
198
198
|
standalone: false,
|
|
199
199
|
}]
|
|
200
|
-
}], ctorParameters: () => [
|
|
200
|
+
}], ctorParameters: () => [], propDecorators: { replaceDefaultDescription: [{
|
|
201
201
|
type: Input
|
|
202
202
|
}] } });
|
|
203
203
|
|
|
@@ -205,10 +205,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImpor
|
|
|
205
205
|
* Specifies an image to display with the error message.
|
|
206
206
|
*/
|
|
207
207
|
class SkyErrorImageComponent {
|
|
208
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
209
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.
|
|
208
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SkyErrorImageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
209
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: SkyErrorImageComponent, isStandalone: false, selector: "sky-error-image", ngImport: i0, template: '<ng-content />', isInline: true, changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
210
210
|
}
|
|
211
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
211
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SkyErrorImageComponent, decorators: [{
|
|
212
212
|
type: Component,
|
|
213
213
|
args: [{
|
|
214
214
|
selector: 'sky-error-image',
|
|
@@ -230,15 +230,14 @@ class SkyErrorTitleComponent {
|
|
|
230
230
|
set replaceDefaultTitle(value) {
|
|
231
231
|
this.#errorSvc.replaceDefaultTitle.next(!!value);
|
|
232
232
|
}
|
|
233
|
-
#errorSvc;
|
|
234
|
-
constructor(
|
|
235
|
-
this.#errorSvc
|
|
236
|
-
errorSvc.replaceDefaultTitle.next(false);
|
|
233
|
+
#errorSvc = inject(SkyErrorService);
|
|
234
|
+
constructor() {
|
|
235
|
+
this.#errorSvc.replaceDefaultTitle.next(false);
|
|
237
236
|
}
|
|
238
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
239
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.
|
|
237
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SkyErrorTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
238
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: SkyErrorTitleComponent, isStandalone: false, selector: "sky-error-title", inputs: { replaceDefaultTitle: "replaceDefaultTitle" }, ngImport: i0, template: '<ng-content />', isInline: true, changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
240
239
|
}
|
|
241
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
240
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SkyErrorTitleComponent, decorators: [{
|
|
242
241
|
type: Component,
|
|
243
242
|
args: [{
|
|
244
243
|
selector: 'sky-error-title',
|
|
@@ -246,7 +245,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImpor
|
|
|
246
245
|
changeDetection: ChangeDetectionStrategy.Eager,
|
|
247
246
|
standalone: false,
|
|
248
247
|
}]
|
|
249
|
-
}], ctorParameters: () => [
|
|
248
|
+
}], ctorParameters: () => [], propDecorators: { replaceDefaultTitle: [{
|
|
250
249
|
type: Input
|
|
251
250
|
}] } });
|
|
252
251
|
|
|
@@ -254,6 +253,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImpor
|
|
|
254
253
|
* Displays a SKY UX-themed error message.
|
|
255
254
|
*/
|
|
256
255
|
class SkyErrorComponent {
|
|
256
|
+
constructor() {
|
|
257
|
+
/**
|
|
258
|
+
* Whether to display the error image.
|
|
259
|
+
* @default true
|
|
260
|
+
*/
|
|
261
|
+
this.showImage = true;
|
|
262
|
+
this.#resourcesSvc = inject(SkyLibResourcesService);
|
|
263
|
+
this.errorSvc = inject(SkyErrorService);
|
|
264
|
+
}
|
|
257
265
|
/**
|
|
258
266
|
* The set of pre-defined values for the image,
|
|
259
267
|
* title, and description.
|
|
@@ -270,15 +278,6 @@ class SkyErrorComponent {
|
|
|
270
278
|
}
|
|
271
279
|
#resourcesSvc;
|
|
272
280
|
#_errorType;
|
|
273
|
-
constructor(resourcesSvc, errorSvc) {
|
|
274
|
-
this.errorSvc = errorSvc;
|
|
275
|
-
/**
|
|
276
|
-
* Whether to display the error image.
|
|
277
|
-
* @default true
|
|
278
|
-
*/
|
|
279
|
-
this.showImage = true;
|
|
280
|
-
this.#resourcesSvc = resourcesSvc;
|
|
281
|
-
}
|
|
282
281
|
ngOnInit() {
|
|
283
282
|
if (this.errorType) {
|
|
284
283
|
this.setErrorTypeFields();
|
|
@@ -310,13 +309,13 @@ class SkyErrorComponent {
|
|
|
310
309
|
// TODO: Need to implement the async `getString` method in a breaking change.
|
|
311
310
|
return this.#resourcesSvc.getStringForLocale({ locale: 'en-US' }, key);
|
|
312
311
|
}
|
|
313
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
314
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.
|
|
312
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SkyErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
313
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: SkyErrorComponent, isStandalone: false, selector: "sky-error", inputs: { errorType: "errorType", showImage: "showImage" }, host: { properties: { "attr.errorType": "this.hostErrorType" } }, providers: [SkyErrorService], ngImport: i0, template: "<div class=\"sky-error\">\n @if (showImage) {\n <div class=\"sky-error-image-container sky-margin-stacked-lg\">\n @if (errorType) {\n <div\n class=\"sky-error-image-svg\"\n [ngClass]=\"['sky-error-' + errorType + '-image']\"\n ></div>\n }\n <ng-content select=\"sky-error-image\" />\n </div>\n }\n\n <div class=\"sky-error-title sky-font-heading-1 sky-margin-stacked-lg\">\n @if (defaultTitle && (errorSvc.replaceDefaultTitle | async) === false) {\n <ng-container>{{ defaultTitle }}</ng-container>\n }\n <ng-content select=\"sky-error-title\" />\n </div>\n\n <div\n class=\"sky-error-description sky-font-body-default sky-margin-stacked-xl\"\n >\n @if (\n defaultDescription &&\n (errorSvc.replaceDefaultDescription | async) === false\n ) {\n <span>{{ defaultDescription }}</span>\n }\n <ng-content select=\"sky-error-description\" />\n </div>\n\n <div class=\"sky-error-action\">\n <ng-content select=\"sky-error-action\" />\n </div>\n</div>\n", styles: [".sky-error:not(.sky-theme-modern *){--sky-override-error-margin-top: 0;--sky-override-error-padding-top: 60px}.sky-error{display:flex;flex-direction:column;justify-content:center;text-align:center;padding-top:var(--sky-override-error-padding-top, var(--sky-space-stacked-xxl));margin-top:var(--sky-override-error-margin-top, var(--sky-space-stacked-xxl))}.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}.sky-error-broken-image{height:110px;width:170px;background-image:url(https://sky.blackbaudcdn.net/static/skyux-public-assets/2.0.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/2.0.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/2.0.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/2.0.2/assets/images/errors/security.svg)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
315
314
|
}
|
|
316
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
315
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SkyErrorComponent, decorators: [{
|
|
317
316
|
type: Component,
|
|
318
317
|
args: [{ selector: 'sky-error', providers: [SkyErrorService], changeDetection: ChangeDetectionStrategy.Eager, standalone: false, template: "<div class=\"sky-error\">\n @if (showImage) {\n <div class=\"sky-error-image-container sky-margin-stacked-lg\">\n @if (errorType) {\n <div\n class=\"sky-error-image-svg\"\n [ngClass]=\"['sky-error-' + errorType + '-image']\"\n ></div>\n }\n <ng-content select=\"sky-error-image\" />\n </div>\n }\n\n <div class=\"sky-error-title sky-font-heading-1 sky-margin-stacked-lg\">\n @if (defaultTitle && (errorSvc.replaceDefaultTitle | async) === false) {\n <ng-container>{{ defaultTitle }}</ng-container>\n }\n <ng-content select=\"sky-error-title\" />\n </div>\n\n <div\n class=\"sky-error-description sky-font-body-default sky-margin-stacked-xl\"\n >\n @if (\n defaultDescription &&\n (errorSvc.replaceDefaultDescription | async) === false\n ) {\n <span>{{ defaultDescription }}</span>\n }\n <ng-content select=\"sky-error-description\" />\n </div>\n\n <div class=\"sky-error-action\">\n <ng-content select=\"sky-error-action\" />\n </div>\n</div>\n", styles: [".sky-error:not(.sky-theme-modern *){--sky-override-error-margin-top: 0;--sky-override-error-padding-top: 60px}.sky-error{display:flex;flex-direction:column;justify-content:center;text-align:center;padding-top:var(--sky-override-error-padding-top, var(--sky-space-stacked-xxl));margin-top:var(--sky-override-error-margin-top, var(--sky-space-stacked-xxl))}.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}.sky-error-broken-image{height:110px;width:170px;background-image:url(https://sky.blackbaudcdn.net/static/skyux-public-assets/2.0.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/2.0.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/2.0.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/2.0.2/assets/images/errors/security.svg)}\n"] }]
|
|
319
|
-
}],
|
|
318
|
+
}], propDecorators: { errorType: [{
|
|
320
319
|
type: Input
|
|
321
320
|
}], showImage: [{
|
|
322
321
|
type: Input
|
|
@@ -326,8 +325,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImpor
|
|
|
326
325
|
}] } });
|
|
327
326
|
|
|
328
327
|
class SkyErrorModule {
|
|
329
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
330
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.
|
|
328
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SkyErrorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
329
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.6", ngImport: i0, type: SkyErrorModule, declarations: [SkyErrorComponent,
|
|
331
330
|
SkyErrorImageComponent,
|
|
332
331
|
SkyErrorTitleComponent,
|
|
333
332
|
SkyErrorDescriptionComponent,
|
|
@@ -336,9 +335,9 @@ class SkyErrorModule {
|
|
|
336
335
|
SkyErrorTitleComponent,
|
|
337
336
|
SkyErrorDescriptionComponent,
|
|
338
337
|
SkyErrorActionComponent] }); }
|
|
339
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.
|
|
338
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SkyErrorModule, imports: [CommonModule, SkyErrorsResourcesModule] }); }
|
|
340
339
|
}
|
|
341
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
340
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SkyErrorModule, decorators: [{
|
|
342
341
|
type: NgModule,
|
|
343
342
|
args: [{
|
|
344
343
|
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 { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { SkyIdModule } from '@skyux/core';\nimport { SkyModalInstance, SkyModalModule } 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 changeDetection: ChangeDetectionStrategy.Eager,\n imports: [SkyIdModule, SkyModalModule],\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 #title=\"skyId\" class=\"sky-error-modal-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): void {\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","/* istanbul ignore file */\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 SkyI18nModule,\n SkyLibResources,\n SkyLibResourcesService,\n} from '@skyux/i18n';\n\nconst RESOURCES: Record<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 'FR-CA': {\n skyux_errors_broken_description: {\n message:\n 'Un problème est survenu.\\nEssayez à nouveau ou revenez plus tard.',\n },\n skyux_errors_broken_title: { message: 'C’est curieux…' },\n skyux_errors_construction_description: {\n message:\n 'Nous apprécions votre patience pendant que \\nnous apportons des améliorations.',\n },\n skyux_errors_construction_title: { message: 'Travaux en cours.' },\n skyux_errors_not_found_description: {\n message:\n 'Nous sommes désolés, mais cette page \\nest manquante ou a été déplacée.',\n },\n skyux_errors_not_found_title: { message: 'Il n’y a rien à voir ici.' },\n skyux_errors_security_description: {\n message: 'Demandez à votre administrateur de vous accorder l’accès.',\n },\n skyux_errors_security_title: {\n message: 'Attention!\\nVous êtes dans une zone restreinte.',\n },\n },\n};\n\nSkyLibResourcesService.addResources(RESOURCES);\n\n/**\n * Import into any component library module that needs to use resource strings.\n */\n@NgModule({\n exports: [SkyI18nModule],\n})\nexport class SkyErrorsResourcesModule {}\n","import { ChangeDetectionStrategy, 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 />',\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: false,\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 { ChangeDetectionStrategy, 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 />',\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: false,\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 { ChangeDetectionStrategy, 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 />',\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: false,\n})\nexport class SkyErrorImageComponent {}\n","import { ChangeDetectionStrategy, 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 />',\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: false,\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 {\n ChangeDetectionStrategy,\n Component,\n HostBinding,\n Input,\n OnInit,\n} 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 changeDetection: ChangeDetectionStrategy.Eager,\n standalone: false,\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 @HostBinding('attr.errorType') public get hostErrorType():\n | SkyErrorType\n | undefined {\n return this.errorType;\n }\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(): void {\n if (this.errorType) {\n this.setErrorTypeFields();\n }\n }\n\n public setErrorTypeFields(): void {\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 @if (showImage) {\n <div class=\"sky-error-image-container sky-margin-stacked-lg\">\n @if (errorType) {\n <div\n class=\"sky-error-image-svg\"\n [ngClass]=\"['sky-error-' + errorType + '-image']\"\n ></div>\n }\n <ng-content select=\"sky-error-image\" />\n </div>\n }\n\n <div class=\"sky-error-title sky-font-heading-1 sky-margin-stacked-lg\">\n @if (defaultTitle && (errorSvc.replaceDefaultTitle | async) === false) {\n <ng-container>{{ defaultTitle }}</ng-container>\n }\n <ng-content select=\"sky-error-title\" />\n </div>\n\n <div\n class=\"sky-error-description sky-font-body-default sky-margin-stacked-xl\"\n >\n @if (\n defaultDescription &&\n (errorSvc.replaceDefaultDescription | async) === false\n ) {\n <span>{{ defaultDescription }}</span>\n }\n <ng-content select=\"sky-error-description\" />\n </div>\n\n <div class=\"sky-error-action\">\n <ng-content select=\"sky-error-action\" />\n </div>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\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 { 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 ],\n imports: [CommonModule, SkyErrorsResourcesModule],\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;;ACdD;;AAEG;MAQU,0BAA0B,CAAA;IACrC,WAAA,CACS,OAAyB,EACzB,QAA0B,EAAA;QAD1B,IAAA,CAAA,OAAO,GAAP,OAAO;QACP,IAAA,CAAA,QAAQ,GAAR,QAAQ;IACd;8GAJQ,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,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,0BAA0B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,sBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EChBvC,ooBAqBA,EAAA,MAAA,EAAA,CAAA,+MAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDPY,WAAW,8GAAE,cAAc,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,EAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,YAAA,EAAA,aAAA,EAAA,SAAA,EAAA,oBAAA,EAAA,kBAAA,EAAA,UAAA,EAAA,WAAA,EAAA,iBAAA,EAAA,gBAAA,EAAA,QAAA,EAAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,EAAA,EAA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AAA,EAAA,CAAA,mwCAAA,CAAA,EAAA;;sBAOhB;;sBAcA;;sBAGA,WAAW;uBAAC,gBAAgB;;;MEjBlB,cAAc,CAAA;8GAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAd,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,iBAfvB,iBAAiB;YACjB,sBAAsB;YACtB,sBAAsB;YACtB,4BAA4B;AAC5B,YAAA,uBAAuB,CAAA,EAAA,OAAA,EAAA,CAEf,YAAY,EAAE,wBAAwB,aAE9C,iBAAiB;YACjB,sBAAsB;YACtB,sBAAsB;YACtB,4BAA4B;YAC5B,uBAAuB,CAAA,EAAA,CAAA,CAAA;+GAGd,cAAc,EAAA,OAAA,EAAA,CATf,YAAY,EAAE,wBAAwB,CAAA,EAAA,CAAA,CAAA;;2FASrC,cAAc,EAAA,UAAA,EAAA,CAAA;kBAjB1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,iBAAiB;wBACjB,sBAAsB;wBACtB,sBAAsB;wBACtB,4BAA4B;wBAC5B,uBAAuB;AACxB,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,wBAAwB,CAAC;AACjD,oBAAA,OAAO,EAAE;wBACP,iBAAiB;wBACjB,sBAAsB;wBACtB,sBAAsB;wBACtB,4BAA4B;wBAC5B,uBAAuB;AACxB,qBAAA;AACF,iBAAA;;;AC3BD;;AAEG;;;;"}
|
|
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 { ChangeDetectionStrategy, Component, inject } from '@angular/core';\nimport { SkyIdModule } from '@skyux/core';\nimport { SkyModalInstance, SkyModalModule } 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 changeDetection: ChangeDetectionStrategy.Eager,\n imports: [SkyIdModule, SkyModalModule],\n})\nexport class SkyErrorModalFormComponent {\n public readonly context = inject(ErrorModalConfig);\n public readonly instance = inject(SkyModalInstance);\n}\n","<sky-modal [ariaLabelledBy]=\"title.id\">\n <sky-modal-content>\n <div class=\"sky-error-modal-container\">\n <span #title=\"skyId\" class=\"sky-error-modal-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 /* eslint-disable @angular-eslint/prefer-inject -- constructor injection is required to maintain the public API for consumers who may instantiate this service directly (e.g. `new SkyErrorModalService(...)`) */\n constructor(\n modalSvc: SkyModalService,\n @Optional() logService?: SkyLogService,\n ) {\n /* eslint-enable @angular-eslint/prefer-inject */\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): void {\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","/* istanbul ignore file */\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 SkyI18nModule,\n SkyLibResources,\n SkyLibResourcesService,\n} from '@skyux/i18n';\n\nconst RESOURCES: Record<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 'FR-CA': {\n skyux_errors_broken_description: {\n message:\n 'Un problème est survenu.\\nEssayez à nouveau ou revenez plus tard.',\n },\n skyux_errors_broken_title: { message: 'C’est curieux…' },\n skyux_errors_construction_description: {\n message:\n 'Nous apprécions votre patience pendant que \\nnous apportons des améliorations.',\n },\n skyux_errors_construction_title: { message: 'Travaux en cours.' },\n skyux_errors_not_found_description: {\n message:\n 'Nous sommes désolés, mais cette page \\nest manquante ou a été déplacée.',\n },\n skyux_errors_not_found_title: { message: 'Il n’y a rien à voir ici.' },\n skyux_errors_security_description: {\n message: 'Demandez à votre administrateur de vous accorder l’accès.',\n },\n skyux_errors_security_title: {\n message: 'Attention!\\nVous êtes dans une zone restreinte.',\n },\n },\n};\n\nSkyLibResourcesService.addResources(RESOURCES);\n\n/**\n * Import into any component library module that needs to use resource strings.\n */\n@NgModule({\n exports: [SkyI18nModule],\n})\nexport class SkyErrorsResourcesModule {}\n","import { ChangeDetectionStrategy, 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 />',\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: false,\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 {\n ChangeDetectionStrategy,\n Component,\n Input,\n inject,\n} 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 />',\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: false,\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 readonly #errorSvc = inject(SkyErrorService);\n\n constructor() {\n this.#errorSvc.replaceDefaultDescription.next(false);\n }\n}\n","import { ChangeDetectionStrategy, 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 />',\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: false,\n})\nexport class SkyErrorImageComponent {}\n","import {\n ChangeDetectionStrategy,\n Component,\n Input,\n inject,\n} 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 />',\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: false,\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 readonly #errorSvc = inject(SkyErrorService);\n\n constructor() {\n this.#errorSvc.replaceDefaultTitle.next(false);\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n HostBinding,\n Input,\n OnInit,\n inject,\n} 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 changeDetection: ChangeDetectionStrategy.Eager,\n standalone: false,\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 @HostBinding('attr.errorType') public get hostErrorType():\n SkyErrorType | undefined {\n return this.errorType;\n }\n\n public defaultTitle: string | undefined;\n public defaultDescription: string | undefined;\n\n readonly #resourcesSvc = inject(SkyLibResourcesService);\n public readonly errorSvc = inject(SkyErrorService);\n\n #_errorType: SkyErrorType | undefined;\n\n public ngOnInit(): void {\n if (this.errorType) {\n this.setErrorTypeFields();\n }\n }\n\n public setErrorTypeFields(): void {\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 @if (showImage) {\n <div class=\"sky-error-image-container sky-margin-stacked-lg\">\n @if (errorType) {\n <div\n class=\"sky-error-image-svg\"\n [ngClass]=\"['sky-error-' + errorType + '-image']\"\n ></div>\n }\n <ng-content select=\"sky-error-image\" />\n </div>\n }\n\n <div class=\"sky-error-title sky-font-heading-1 sky-margin-stacked-lg\">\n @if (defaultTitle && (errorSvc.replaceDefaultTitle | async) === false) {\n <ng-container>{{ defaultTitle }}</ng-container>\n }\n <ng-content select=\"sky-error-title\" />\n </div>\n\n <div\n class=\"sky-error-description sky-font-body-default sky-margin-stacked-xl\"\n >\n @if (\n defaultDescription &&\n (errorSvc.replaceDefaultDescription | async) === false\n ) {\n <span>{{ defaultDescription }}</span>\n }\n <ng-content select=\"sky-error-description\" />\n </div>\n\n <div class=\"sky-error-action\">\n <ng-content select=\"sky-error-action\" />\n </div>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\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 { 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 ],\n imports: [CommonModule, SkyErrorsResourcesModule],\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":["i2","i1"],"mappings":";;;;;;;;;;;AAAA;AACA;;AAEG;MACU,gBAAgB,CAAA;AAgB5B;;ACdD;;AAEG;MAQU,0BAA0B,CAAA;AAPvC,I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YAAA,uBAAuB,CAAA,EAAA,OAAA,EAAA,CAEf,YAAY,EAAE,wBAAwB,aAE9C,iBAAiB;YACjB,sBAAsB;YACtB,sBAAsB;YACtB,4BAA4B;YAC5B,uBAAuB,CAAA,EAAA,CAAA,CAAA;+GAGd,cAAc,EAAA,OAAA,EAAA,CATf,YAAY,EAAE,wBAAwB,CAAA,EAAA,CAAA,CAAA;;2FASrC,cAAc,EAAA,UAAA,EAAA,CAAA;kBAjB1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,iBAAiB;wBACjB,sBAAsB;wBACtB,sBAAsB;wBACtB,4BAA4B;wBAC5B,uBAAuB;AACxB,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,wBAAwB,CAAC;AACjD,oBAAA,OAAO,EAAE;wBACP,iBAAiB;wBACjB,sBAAsB;wBACtB,sBAAsB;wBACtB,4BAA4B;wBAC5B,uBAAuB;AACxB,qBAAA;AACF,iBAAA;;;AC3BD;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/errors",
|
|
3
|
-
"version": "15.0.0-alpha.
|
|
3
|
+
"version": "15.0.0-alpha.2",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blackbaud",
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
},
|
|
17
17
|
"homepage": "https://github.com/blackbaud/skyux#readme",
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@angular/cdk": "^22.0.
|
|
20
|
-
"@angular/common": "^22.0.
|
|
21
|
-
"@angular/core": "^22.0.
|
|
22
|
-
"@angular/platform-browser": "^22.0.
|
|
23
|
-
"@skyux-sdk/testing": "15.0.0-alpha.
|
|
24
|
-
"@skyux/core": "15.0.0-alpha.
|
|
25
|
-
"@skyux/i18n": "15.0.0-alpha.
|
|
26
|
-
"@skyux/modals": "15.0.0-alpha.
|
|
19
|
+
"@angular/cdk": "^22.0.4",
|
|
20
|
+
"@angular/common": "^22.0.6",
|
|
21
|
+
"@angular/core": "^22.0.6",
|
|
22
|
+
"@angular/platform-browser": "^22.0.6",
|
|
23
|
+
"@skyux-sdk/testing": "15.0.0-alpha.2",
|
|
24
|
+
"@skyux/core": "15.0.0-alpha.2",
|
|
25
|
+
"@skyux/i18n": "15.0.0-alpha.2",
|
|
26
|
+
"@skyux/modals": "15.0.0-alpha.2"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"tslib": "^2.8.1"
|
package/types/skyux-errors.d.ts
CHANGED
|
@@ -2,10 +2,9 @@ import { SkyLogService } from '@skyux/core';
|
|
|
2
2
|
import { SkyModalService } from '@skyux/modals';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { OnInit } from '@angular/core';
|
|
5
|
-
import * as i1 from '@skyux/i18n';
|
|
6
|
-
import { SkyLibResourcesService } from '@skyux/i18n';
|
|
7
5
|
import { BehaviorSubject } from 'rxjs';
|
|
8
6
|
import * as i6 from '@angular/common';
|
|
7
|
+
import * as i1 from '@skyux/i18n';
|
|
9
8
|
|
|
10
9
|
/**
|
|
11
10
|
* @deprecated We recommend using a standard modal with an error component instead.
|
|
@@ -64,7 +63,6 @@ declare class SkyErrorService {
|
|
|
64
63
|
*/
|
|
65
64
|
declare class SkyErrorComponent implements OnInit {
|
|
66
65
|
#private;
|
|
67
|
-
errorSvc: SkyErrorService;
|
|
68
66
|
/**
|
|
69
67
|
* The set of pre-defined values for the image,
|
|
70
68
|
* title, and description.
|
|
@@ -79,7 +77,7 @@ declare class SkyErrorComponent implements OnInit {
|
|
|
79
77
|
get hostErrorType(): SkyErrorType | undefined;
|
|
80
78
|
defaultTitle: string | undefined;
|
|
81
79
|
defaultDescription: string | undefined;
|
|
82
|
-
|
|
80
|
+
readonly errorSvc: SkyErrorService;
|
|
83
81
|
ngOnInit(): void;
|
|
84
82
|
setErrorTypeFields(): void;
|
|
85
83
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyErrorComponent, never>;
|
|
@@ -105,7 +103,7 @@ declare class SkyErrorTitleComponent {
|
|
|
105
103
|
* @default false
|
|
106
104
|
*/
|
|
107
105
|
set replaceDefaultTitle(value: boolean | undefined);
|
|
108
|
-
constructor(
|
|
106
|
+
constructor();
|
|
109
107
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyErrorTitleComponent, never>;
|
|
110
108
|
static ɵcmp: i0.ɵɵComponentDeclaration<SkyErrorTitleComponent, "sky-error-title", never, { "replaceDefaultTitle": { "alias": "replaceDefaultTitle"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
111
109
|
}
|
|
@@ -121,7 +119,7 @@ declare class SkyErrorDescriptionComponent {
|
|
|
121
119
|
* @default false
|
|
122
120
|
*/
|
|
123
121
|
set replaceDefaultDescription(value: boolean | undefined);
|
|
124
|
-
constructor(
|
|
122
|
+
constructor();
|
|
125
123
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyErrorDescriptionComponent, never>;
|
|
126
124
|
static ɵcmp: i0.ɵɵComponentDeclaration<SkyErrorDescriptionComponent, "sky-error-description", never, { "replaceDefaultDescription": { "alias": "replaceDefaultDescription"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
127
125
|
}
|