@skyux/errors 6.5.0 → 6.8.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 +74 -29
- package/esm2020/lib/modules/error/error-action.component.mjs +2 -2
- package/esm2020/lib/modules/error/error-description.component.mjs +3 -3
- package/esm2020/lib/modules/error/error-image.component.mjs +2 -2
- package/esm2020/lib/modules/error/error-modal-config.mjs +4 -1
- package/esm2020/lib/modules/error/error-modal.service.mjs +20 -5
- package/esm2020/lib/modules/error/error-title.component.mjs +3 -3
- package/esm2020/lib/modules/error/error-type.mjs +1 -1
- package/esm2020/lib/modules/error/error.component.mjs +2 -2
- package/fesm2015/skyux-errors.mjs +33 -13
- package/fesm2015/skyux-errors.mjs.map +1 -1
- package/fesm2020/skyux-errors.mjs +30 -13
- package/fesm2020/skyux-errors.mjs.map +1 -1
- package/lib/modules/error/error-action.component.d.ts +1 -1
- package/lib/modules/error/error-description.component.d.ts +2 -2
- package/lib/modules/error/error-image.component.d.ts +1 -1
- package/lib/modules/error/error-modal-config.d.ts +3 -0
- package/lib/modules/error/error-modal.service.d.ts +6 -2
- package/lib/modules/error/error-title.component.d.ts +2 -2
- package/lib/modules/error/error-type.d.ts +1 -1
- package/lib/modules/error/error.component.d.ts +1 -1
- package/package.json +5 -4
package/documentation.json
CHANGED
|
@@ -24,6 +24,14 @@
|
|
|
24
24
|
"kind": 128,
|
|
25
25
|
"kindString": "Class",
|
|
26
26
|
"flags": {},
|
|
27
|
+
"comment": {
|
|
28
|
+
"tags": [
|
|
29
|
+
{
|
|
30
|
+
"tag": "deprecated",
|
|
31
|
+
"text": "We recommend using a standard modal with an error component instead.\n"
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
},
|
|
27
35
|
"children": [
|
|
28
36
|
{
|
|
29
37
|
"id": 45,
|
|
@@ -45,7 +53,7 @@
|
|
|
45
53
|
"sources": [
|
|
46
54
|
{
|
|
47
55
|
"fileName": "projects/errors/src/modules/error/error-modal-config.ts",
|
|
48
|
-
"line":
|
|
56
|
+
"line": 20,
|
|
49
57
|
"character": 9
|
|
50
58
|
}
|
|
51
59
|
],
|
|
@@ -74,7 +82,7 @@
|
|
|
74
82
|
"sources": [
|
|
75
83
|
{
|
|
76
84
|
"fileName": "projects/errors/src/modules/error/error-modal-config.ts",
|
|
77
|
-
"line":
|
|
85
|
+
"line": 15,
|
|
78
86
|
"character": 9
|
|
79
87
|
}
|
|
80
88
|
],
|
|
@@ -103,7 +111,7 @@
|
|
|
103
111
|
"sources": [
|
|
104
112
|
{
|
|
105
113
|
"fileName": "projects/errors/src/modules/error/error-modal-config.ts",
|
|
106
|
-
"line":
|
|
114
|
+
"line": 10,
|
|
107
115
|
"character": 9
|
|
108
116
|
}
|
|
109
117
|
],
|
|
@@ -134,7 +142,7 @@
|
|
|
134
142
|
"sources": [
|
|
135
143
|
{
|
|
136
144
|
"fileName": "projects/errors/src/modules/error/error-modal-config.ts",
|
|
137
|
-
"line":
|
|
145
|
+
"line": 5,
|
|
138
146
|
"character": 13
|
|
139
147
|
}
|
|
140
148
|
]
|
|
@@ -146,7 +154,13 @@
|
|
|
146
154
|
"kindString": "Class",
|
|
147
155
|
"flags": {},
|
|
148
156
|
"comment": {
|
|
149
|
-
"shortText": "Opens a modal to display a SKY UX-themed error message."
|
|
157
|
+
"shortText": "Opens a modal to display a SKY UX-themed error message.",
|
|
158
|
+
"tags": [
|
|
159
|
+
{
|
|
160
|
+
"tag": "deprecated",
|
|
161
|
+
"text": "We recommend using a standard modal with an error component instead.\n"
|
|
162
|
+
}
|
|
163
|
+
]
|
|
150
164
|
},
|
|
151
165
|
"decorators": [
|
|
152
166
|
{
|
|
@@ -172,7 +186,7 @@
|
|
|
172
186
|
"sources": [
|
|
173
187
|
{
|
|
174
188
|
"fileName": "projects/errors/src/modules/error/error-modal.service.ts",
|
|
175
|
-
"line":
|
|
189
|
+
"line": 18,
|
|
176
190
|
"character": 2
|
|
177
191
|
}
|
|
178
192
|
],
|
|
@@ -194,6 +208,31 @@
|
|
|
194
208
|
"type": "reference",
|
|
195
209
|
"name": "SkyModalService"
|
|
196
210
|
}
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"id": 50,
|
|
214
|
+
"name": "logService",
|
|
215
|
+
"kind": 32768,
|
|
216
|
+
"kindString": "Parameter",
|
|
217
|
+
"flags": {
|
|
218
|
+
"isOptional": true
|
|
219
|
+
},
|
|
220
|
+
"decorators": [
|
|
221
|
+
{
|
|
222
|
+
"name": "Optional",
|
|
223
|
+
"type": {
|
|
224
|
+
"type": "reference",
|
|
225
|
+
"qualifiedName": "OptionalDecorator",
|
|
226
|
+
"package": "@angular/core",
|
|
227
|
+
"name": "Optional"
|
|
228
|
+
},
|
|
229
|
+
"arguments": {}
|
|
230
|
+
}
|
|
231
|
+
],
|
|
232
|
+
"type": {
|
|
233
|
+
"type": "reference",
|
|
234
|
+
"name": "SkyLogService"
|
|
235
|
+
}
|
|
197
236
|
}
|
|
198
237
|
],
|
|
199
238
|
"type": {
|
|
@@ -205,7 +244,7 @@
|
|
|
205
244
|
]
|
|
206
245
|
},
|
|
207
246
|
{
|
|
208
|
-
"id":
|
|
247
|
+
"id": 52,
|
|
209
248
|
"name": "open",
|
|
210
249
|
"kind": 2048,
|
|
211
250
|
"kindString": "Method",
|
|
@@ -215,23 +254,29 @@
|
|
|
215
254
|
"sources": [
|
|
216
255
|
{
|
|
217
256
|
"fileName": "projects/errors/src/modules/error/error-modal.service.ts",
|
|
218
|
-
"line":
|
|
257
|
+
"line": 28,
|
|
219
258
|
"character": 9
|
|
220
259
|
}
|
|
221
260
|
],
|
|
222
261
|
"signatures": [
|
|
223
262
|
{
|
|
224
|
-
"id":
|
|
263
|
+
"id": 53,
|
|
225
264
|
"name": "open",
|
|
226
265
|
"kind": 4096,
|
|
227
266
|
"kindString": "Call signature",
|
|
228
267
|
"flags": {},
|
|
229
268
|
"comment": {
|
|
230
|
-
"shortText": "Specifies text for the the error message, including title, description, and action label."
|
|
269
|
+
"shortText": "Specifies text for the the error message, including title, description, and action label.",
|
|
270
|
+
"tags": [
|
|
271
|
+
{
|
|
272
|
+
"tag": "deprecated",
|
|
273
|
+
"text": "We recommend using a standard modal with an error component instead.\n"
|
|
274
|
+
}
|
|
275
|
+
]
|
|
231
276
|
},
|
|
232
277
|
"parameters": [
|
|
233
278
|
{
|
|
234
|
-
"id":
|
|
279
|
+
"id": 54,
|
|
235
280
|
"name": "config",
|
|
236
281
|
"kind": 32768,
|
|
237
282
|
"kindString": "Parameter",
|
|
@@ -263,20 +308,20 @@
|
|
|
263
308
|
"title": "Methods",
|
|
264
309
|
"kind": 2048,
|
|
265
310
|
"children": [
|
|
266
|
-
|
|
311
|
+
52
|
|
267
312
|
]
|
|
268
313
|
}
|
|
269
314
|
],
|
|
270
315
|
"sources": [
|
|
271
316
|
{
|
|
272
317
|
"fileName": "projects/errors/src/modules/error/error-modal.service.ts",
|
|
273
|
-
"line":
|
|
318
|
+
"line": 15,
|
|
274
319
|
"character": 13
|
|
275
320
|
}
|
|
276
321
|
]
|
|
277
322
|
},
|
|
278
323
|
{
|
|
279
|
-
"id":
|
|
324
|
+
"id": 55,
|
|
280
325
|
"name": "SkyErrorModule",
|
|
281
326
|
"kind": 128,
|
|
282
327
|
"kindString": "Class",
|
|
@@ -301,7 +346,7 @@
|
|
|
301
346
|
"title": "Constructors",
|
|
302
347
|
"kind": 512,
|
|
303
348
|
"children": [
|
|
304
|
-
|
|
349
|
+
56
|
|
305
350
|
]
|
|
306
351
|
}
|
|
307
352
|
],
|
|
@@ -320,7 +365,7 @@
|
|
|
320
365
|
"kindString": "Class",
|
|
321
366
|
"flags": {},
|
|
322
367
|
"comment": {
|
|
323
|
-
"shortText": "Specifies an
|
|
368
|
+
"shortText": "Specifies an interactive element to include with the error message.\nFor example, you can include a button to reload the page or to refresh data."
|
|
324
369
|
},
|
|
325
370
|
"decorators": [
|
|
326
371
|
{
|
|
@@ -361,7 +406,7 @@
|
|
|
361
406
|
"kindString": "Class",
|
|
362
407
|
"flags": {},
|
|
363
408
|
"comment": {
|
|
364
|
-
"shortText": "Specifies a description to provide additional details
|
|
409
|
+
"shortText": "Specifies a description to provide additional details about the error."
|
|
365
410
|
},
|
|
366
411
|
"decorators": [
|
|
367
412
|
{
|
|
@@ -387,7 +432,7 @@
|
|
|
387
432
|
"isPublic": true
|
|
388
433
|
},
|
|
389
434
|
"comment": {
|
|
390
|
-
"shortText": "Indicates whether to replace the default description. If `false`, the
|
|
435
|
+
"shortText": "Indicates whether to replace the default description. If `false`, the content\nfrom this component is added after the default description.",
|
|
391
436
|
"tags": [
|
|
392
437
|
{
|
|
393
438
|
"tag": "default",
|
|
@@ -452,7 +497,7 @@
|
|
|
452
497
|
"kindString": "Class",
|
|
453
498
|
"flags": {},
|
|
454
499
|
"comment": {
|
|
455
|
-
"shortText": "Specifies an image to display
|
|
500
|
+
"shortText": "Specifies an image to display with the error message."
|
|
456
501
|
},
|
|
457
502
|
"decorators": [
|
|
458
503
|
{
|
|
@@ -493,7 +538,7 @@
|
|
|
493
538
|
"kindString": "Class",
|
|
494
539
|
"flags": {},
|
|
495
540
|
"comment": {
|
|
496
|
-
"shortText": "Specifies a title to display
|
|
541
|
+
"shortText": "Specifies a title to display with the error message."
|
|
497
542
|
},
|
|
498
543
|
"decorators": [
|
|
499
544
|
{
|
|
@@ -519,7 +564,7 @@
|
|
|
519
564
|
"isPublic": true
|
|
520
565
|
},
|
|
521
566
|
"comment": {
|
|
522
|
-
"shortText": "Indicates whether to replace the default title. If `false`, the
|
|
567
|
+
"shortText": "Indicates whether to replace the default title. If `false`, the content\nfrom this component is added after the default title.",
|
|
523
568
|
"tags": [
|
|
524
569
|
{
|
|
525
570
|
"tag": "default",
|
|
@@ -761,11 +806,11 @@
|
|
|
761
806
|
"kindString": "Get signature",
|
|
762
807
|
"flags": {},
|
|
763
808
|
"comment": {
|
|
764
|
-
"shortText": "Specifies
|
|
809
|
+
"shortText": "Specifies a set of pre-defined values for the image,\ntitle, and description."
|
|
765
810
|
},
|
|
766
811
|
"type": {
|
|
767
812
|
"type": "reference",
|
|
768
|
-
"id":
|
|
813
|
+
"id": 58,
|
|
769
814
|
"name": "SkyErrorType"
|
|
770
815
|
}
|
|
771
816
|
}
|
|
@@ -778,7 +823,7 @@
|
|
|
778
823
|
"kindString": "Set signature",
|
|
779
824
|
"flags": {},
|
|
780
825
|
"comment": {
|
|
781
|
-
"shortText": "Specifies
|
|
826
|
+
"shortText": "Specifies a set of pre-defined values for the image,\ntitle, and description."
|
|
782
827
|
},
|
|
783
828
|
"parameters": [
|
|
784
829
|
{
|
|
@@ -789,7 +834,7 @@
|
|
|
789
834
|
"flags": {},
|
|
790
835
|
"type": {
|
|
791
836
|
"type": "reference",
|
|
792
|
-
"id":
|
|
837
|
+
"id": 58,
|
|
793
838
|
"name": "SkyErrorType"
|
|
794
839
|
}
|
|
795
840
|
}
|
|
@@ -978,13 +1023,13 @@
|
|
|
978
1023
|
]
|
|
979
1024
|
},
|
|
980
1025
|
{
|
|
981
|
-
"id":
|
|
1026
|
+
"id": 58,
|
|
982
1027
|
"name": "SkyErrorType",
|
|
983
1028
|
"kind": 4194304,
|
|
984
1029
|
"kindString": "Type alias",
|
|
985
1030
|
"flags": {},
|
|
986
1031
|
"comment": {
|
|
987
|
-
"shortText": "Specifies which error to display."
|
|
1032
|
+
"shortText": "Specifies which type of error to display."
|
|
988
1033
|
},
|
|
989
1034
|
"sources": [
|
|
990
1035
|
{
|
|
@@ -1023,7 +1068,7 @@
|
|
|
1023
1068
|
"children": [
|
|
1024
1069
|
40,
|
|
1025
1070
|
46,
|
|
1026
|
-
|
|
1071
|
+
55,
|
|
1027
1072
|
1,
|
|
1028
1073
|
4,
|
|
1029
1074
|
8,
|
|
@@ -1035,7 +1080,7 @@
|
|
|
1035
1080
|
"title": "Type aliases",
|
|
1036
1081
|
"kind": 4194304,
|
|
1037
1082
|
"children": [
|
|
1038
|
-
|
|
1083
|
+
58
|
|
1039
1084
|
]
|
|
1040
1085
|
}
|
|
1041
1086
|
],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Component } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/**
|
|
4
|
-
* Specifies an
|
|
4
|
+
* Specifies an interactive element to include with the error message.
|
|
5
5
|
* For example, you can include a button to reload the page or to refresh data.
|
|
6
6
|
*/
|
|
7
7
|
export class SkyErrorActionComponent {
|
|
@@ -15,4 +15,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
15
15
|
template: '<ng-content></ng-content>',
|
|
16
16
|
}]
|
|
17
17
|
}] });
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3ItYWN0aW9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9lcnJvcnMvc3JjL2xpYi9tb2R1bGVzL2Vycm9yL2Vycm9yLWFjdGlvbi5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFFMUM7OztHQUdHO0FBS0gsTUFBTSxPQUFPLHVCQUF1Qjs7b0hBQXZCLHVCQUF1Qjt3R0FBdkIsdUJBQXVCLHdEQUZ4QiwyQkFBMkI7MkZBRTFCLHVCQUF1QjtrQkFKbkMsU0FBUzttQkFBQztvQkFDVCxRQUFRLEVBQUUsa0JBQWtCO29CQUM1QixRQUFRLEVBQUUsMkJBQTJCO2lCQUN0QyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbXBvbmVudCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG4vKipcbiAqIFNwZWNpZmllcyBhbiBpbnRlcmFjdGl2ZSBlbGVtZW50IHRvIGluY2x1ZGUgd2l0aCB0aGUgZXJyb3IgbWVzc2FnZS5cbiAqIEZvciBleGFtcGxlLCB5b3UgY2FuIGluY2x1ZGUgYSBidXR0b24gdG8gcmVsb2FkIHRoZSBwYWdlIG9yIHRvIHJlZnJlc2ggZGF0YS5cbiAqL1xuQENvbXBvbmVudCh7XG4gIHNlbGVjdG9yOiAnc2t5LWVycm9yLWFjdGlvbicsXG4gIHRlbXBsYXRlOiAnPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PicsXG59KVxuZXhwb3J0IGNsYXNzIFNreUVycm9yQWN0aW9uQ29tcG9uZW50IHt9XG4iXX0=
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Component, Input } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/**
|
|
4
|
-
* Specifies a description to provide additional details
|
|
4
|
+
* Specifies a description to provide additional details about the error.
|
|
5
5
|
*/
|
|
6
6
|
export class SkyErrorDescriptionComponent {
|
|
7
7
|
constructor() {
|
|
8
8
|
/**
|
|
9
|
-
* Indicates whether to replace the default description. If `false`, the
|
|
9
|
+
* Indicates whether to replace the default description. If `false`, the content
|
|
10
10
|
* from this component is added after the default description.
|
|
11
11
|
* @default false
|
|
12
12
|
*/
|
|
@@ -24,4 +24,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
24
24
|
}], propDecorators: { replaceDefaultDescription: [{
|
|
25
25
|
type: Input
|
|
26
26
|
}] } });
|
|
27
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3ItZGVzY3JpcHRpb24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4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9tIHRoaXMgY29tcG9uZW50IGlzIGFkZGVkIGFmdGVyIHRoZSBkZWZhdWx0IGRlc2NyaXB0aW9uLlxuICAgKiBAZGVmYXVsdCBmYWxzZVxuICAgKi9cbiAgQElucHV0KClcbiAgcHVibGljIHJlcGxhY2VEZWZhdWx0RGVzY3JpcHRpb24gPSBmYWxzZTtcbn1cbiJdfQ==
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Component } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/**
|
|
4
|
-
* Specifies an image to display
|
|
4
|
+
* Specifies an image to display with the error message.
|
|
5
5
|
*/
|
|
6
6
|
export class SkyErrorImageComponent {
|
|
7
7
|
}
|
|
@@ -14,4 +14,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
14
14
|
template: '<ng-content></ng-content>',
|
|
15
15
|
}]
|
|
16
16
|
}] });
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3ItaW1hZ2UuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2Vycm9ycy9zcmMvbGliL21vZHVsZXMvZXJyb3IvZXJyb3ItaW1hZ2UuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7O0FBRTFDOztHQUVHO0FBS0gsTUFBTSxPQUFPLHNCQUFzQjs7bUhBQXRCLHNCQUFzQjt1R0FBdEIsc0JBQXNCLHVEQUZ2QiwyQkFBMkI7MkZBRTFCLHNCQUFzQjtrQkFKbEMsU0FBUzttQkFBQztvQkFDVCxRQUFRLEVBQUUsaUJBQWlCO29CQUMzQixRQUFRLEVBQUUsMkJBQTJCO2lCQUN0QyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbXBvbmVudCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG4vKipcbiAqIFNwZWNpZmllcyBhbiBpbWFnZSB0byBkaXNwbGF5IHdpdGggdGhlIGVycm9yIG1lc3NhZ2UuXG4gKi9cbkBDb21wb25lbnQoe1xuICBzZWxlY3RvcjogJ3NreS1lcnJvci1pbWFnZScsXG4gIHRlbXBsYXRlOiAnPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PicsXG59KVxuZXhwb3J0IGNsYXNzIFNreUVycm9ySW1hZ2VDb21wb25lbnQge31cbiJdfQ==
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/* istanbul ignore next */
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated We recommend using a standard modal with an error component instead.
|
|
4
|
+
*/
|
|
2
5
|
export class ErrorModalConfig {
|
|
3
6
|
}
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
7
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3ItbW9kYWwtY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2Vycm9ycy9zcmMvbGliL21vZHVsZXMvZXJyb3IvZXJyb3ItbW9kYWwtY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDBCQUEwQjtBQUMxQjs7R0FFRztBQUNILE1BQU0sT0FBTyxnQkFBZ0I7Q0FnQjVCIiwic291cmNlc0NvbnRlbnQiOlsiLyogaXN0YW5idWwgaWdub3JlIG5leHQgKi9cbi8qKlxuICogQGRlcHJlY2F0ZWQgV2UgcmVjb21tZW5kIHVzaW5nIGEgc3RhbmRhcmQgbW9kYWwgd2l0aCBhbiBlcnJvciBjb21wb25lbnQgaW5zdGVhZC5cbiAqL1xuZXhwb3J0IGNsYXNzIEVycm9yTW9kYWxDb25maWcge1xuICAvKipcbiAgICogU3BlY2lmaWVzIGEgdGl0bGUgdG8gZGlzcGxheSBpbiB0aGUgbW9kYWwgZXJyb3IgbWVzc2FnZS5cbiAgICogQHJlcXVpcmVkXG4gICAqL1xuICBwdWJsaWMgZXJyb3JUaXRsZTogc3RyaW5nO1xuICAvKipcbiAgICogU3BlY2lmaWVzIGEgZGVzY3JpcHRpb24gdG8gcHJvdmlkZSBhZGRpdGlvbmFsIGRldGFpbHMgaW4gdGhlIG1vZGFsIGVycm9yIG1lc3NhZ2UuXG4gICAqIEByZXF1aXJlZFxuICAgKi9cbiAgcHVibGljIGVycm9yRGVzY3JpcHRpb246IHN0cmluZztcbiAgLyoqXG4gICAqIFNwZWNpZmllcyBhIGxhYmVsIGZvciB0aGUgYWN0aW9uIGJ1dHRvbiB0aGF0IGNsb3NlcyB0aGUgbW9kYWwgZXJyb3IgbWVzc2FnZS5cbiAgICogQHJlcXVpcmVkXG4gICAqL1xuICBwdWJsaWMgZXJyb3JDbG9zZVRleHQ6IHN0cmluZztcbn1cbiJdfQ==
|
|
@@ -1,20 +1,32 @@
|
|
|
1
|
-
|
|
1
|
+
var _SkyErrorModalService__logService;
|
|
2
|
+
import { __classPrivateFieldGet, __classPrivateFieldSet } from "tslib";
|
|
3
|
+
import { Injectable, Optional } from '@angular/core';
|
|
4
|
+
import { SkyLogService } from '@skyux/core';
|
|
2
5
|
import { SkyModalService } from '@skyux/modals';
|
|
3
6
|
import { ErrorModalConfig } from './error-modal-config';
|
|
4
7
|
import { SkyErrorModalFormComponent } from './error-modal-form.component';
|
|
5
8
|
import * as i0 from "@angular/core";
|
|
6
9
|
import * as i1 from "@skyux/modals";
|
|
10
|
+
import * as i2 from "@skyux/core";
|
|
7
11
|
/**
|
|
8
12
|
* Opens a modal to display a SKY UX-themed error message.
|
|
13
|
+
* @deprecated We recommend using a standard modal with an error component instead.
|
|
9
14
|
*/
|
|
10
15
|
export class SkyErrorModalService {
|
|
11
|
-
constructor(modal) {
|
|
16
|
+
constructor(modal, logService) {
|
|
12
17
|
this.modal = modal;
|
|
18
|
+
_SkyErrorModalService__logService.set(this, void 0);
|
|
19
|
+
__classPrivateFieldSet(this, _SkyErrorModalService__logService, logService, "f");
|
|
13
20
|
}
|
|
14
21
|
/**
|
|
15
22
|
* Specifies text for the the error message, including title, description, and action label.
|
|
23
|
+
* @deprecated We recommend using a standard modal with an error component instead.
|
|
16
24
|
*/
|
|
17
25
|
open(config) {
|
|
26
|
+
__classPrivateFieldGet(this, _SkyErrorModalService__logService, "f")?.deprecated("SkyErrorModalService's open method", {
|
|
27
|
+
deprecationMajorVersion: 6,
|
|
28
|
+
replacementRecommendation: 'We recommend using a standard modal with an error component instead.',
|
|
29
|
+
});
|
|
18
30
|
const providers = [{ provide: ErrorModalConfig, useValue: config }];
|
|
19
31
|
this.modal.open(SkyErrorModalFormComponent, {
|
|
20
32
|
ariaRole: 'alertdialog',
|
|
@@ -22,12 +34,15 @@ export class SkyErrorModalService {
|
|
|
22
34
|
});
|
|
23
35
|
}
|
|
24
36
|
}
|
|
25
|
-
|
|
37
|
+
_SkyErrorModalService__logService = new WeakMap();
|
|
38
|
+
SkyErrorModalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: SkyErrorModalService, deps: [{ token: i1.SkyModalService }, { token: i2.SkyLogService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
26
39
|
SkyErrorModalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: SkyErrorModalService, providedIn: 'root' });
|
|
27
40
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: SkyErrorModalService, decorators: [{
|
|
28
41
|
type: Injectable,
|
|
29
42
|
args: [{
|
|
30
43
|
providedIn: 'root',
|
|
31
44
|
}]
|
|
32
|
-
}], ctorParameters: function () { return [{ type: i1.SkyModalService }
|
|
33
|
-
|
|
45
|
+
}], ctorParameters: function () { return [{ type: i1.SkyModalService }, { type: i2.SkyLogService, decorators: [{
|
|
46
|
+
type: Optional
|
|
47
|
+
}] }]; } });
|
|
48
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3ItbW9kYWwuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9lcnJvcnMvc3JjL2xpYi9tb2R1bGVzL2Vycm9yL2Vycm9yLW1vZGFsLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNyRCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sYUFBYSxDQUFDO0FBQzVDLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFaEQsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDeEQsT0FBTyxFQUFFLDBCQUEwQixFQUFFLE1BQU0sOEJBQThCLENBQUM7Ozs7QUFFMUU7OztHQUdHO0FBSUgsTUFBTSxPQUFPLG9CQUFvQjtJQUcvQixZQUNVLEtBQXNCLEVBQ2xCLFVBQTBCO1FBRDlCLFVBQUssR0FBTCxLQUFLLENBQWlCO1FBSGhDLG9EQUF3QztRQU10Qyx1QkFBQSxJQUFJLHFDQUFnQixVQUFVLE1BQUEsQ0FBQztJQUNqQyxDQUFDO0lBQ0Q7OztPQUdHO0lBQ0ksSUFBSSxDQUFDLE1BQXdCO1FBQ2xDLHVCQUFBLElBQUkseUNBQ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N0ZWFkLicsXG4gICAgfSk7XG5cbiAgICBjb25zdCBwcm92aWRlcnMgPSBbeyBwcm92aWRlOiBFcnJvck1vZGFsQ29uZmlnLCB1c2VWYWx1ZTogY29uZmlnIH1dO1xuXG4gICAgdGhpcy5tb2RhbC5vcGVuKFNreUVycm9yTW9kYWxGb3JtQ29tcG9uZW50LCB7XG4gICAgICBhcmlhUm9sZTogJ2FsZXJ0ZGlhbG9nJyxcbiAgICAgIHByb3ZpZGVyczogcHJvdmlkZXJzLFxuICAgIH0pO1xuICB9XG59XG4iXX0=
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Component, Input } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/**
|
|
4
|
-
* Specifies a title to display
|
|
4
|
+
* Specifies a title to display with the error message.
|
|
5
5
|
*/
|
|
6
6
|
export class SkyErrorTitleComponent {
|
|
7
7
|
constructor() {
|
|
8
8
|
/**
|
|
9
|
-
* Indicates whether to replace the default title. If `false`, the
|
|
9
|
+
* Indicates whether to replace the default title. If `false`, the content
|
|
10
10
|
* from this component is added after the default title.
|
|
11
11
|
* @default false
|
|
12
12
|
*/
|
|
@@ -24,4 +24,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
24
24
|
}], propDecorators: { replaceDefaultTitle: [{
|
|
25
25
|
type: Input
|
|
26
26
|
}] } });
|
|
27
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3ItdGl0bGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2Vycm9ycy9zcmMvbGliL21vZHVsZXMvZXJyb3IvZXJyb3ItdGl0bGUuY29tcG9uZW50LnRzIl0sIm5hbWVzIjp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Ttcbn1cbiJdfQ==
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3ItdHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9lcnJvcnMvc3JjL2xpYi9tb2R1bGVzL2Vycm9yL2Vycm9yLXR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogU3BlY2lmaWVzIHdoaWNoIHR5cGUgb2YgZXJyb3IgdG8gZGlzcGxheS5cbiAqL1xuZXhwb3J0IHR5cGUgU2t5RXJyb3JUeXBlID0gJ2Jyb2tlbicgfCAnY29uc3RydWN0aW9uJyB8ICdub3Rmb3VuZCcgfCAnc2VjdXJpdHknO1xuIl19
|
|
@@ -20,7 +20,7 @@ export class SkyErrorComponent {
|
|
|
20
20
|
this.description = undefined;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Specifies
|
|
23
|
+
* Specifies a set of pre-defined values for the image,
|
|
24
24
|
* title, and description.
|
|
25
25
|
*/
|
|
26
26
|
set errorType(value) {
|
|
@@ -81,4 +81,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
81
81
|
type: ContentChild,
|
|
82
82
|
args: [SkyErrorDescriptionComponent]
|
|
83
83
|
}] } });
|
|
84
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
84
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3IuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4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19XG4gICAgPC9uZy1jb250YWluZXI+XG4gICAgPG5nLWNvbnRlbnQgc2VsZWN0PVwic2t5LWVycm9yLXRpdGxlXCI+PC9uZy1jb250ZW50PlxuICA8L2Rpdj5cblxuICA8ZGl2XG4gICAgY2xhc3M9XCJza3ktZXJyb3ItZGVzY3JpcHRpb24gc2t5LWZvbnQtYm9keS1kZWZhdWx0IHNreS1tYXJnaW4tc3RhY2tlZC14bFwiXG4gID5cbiAgICA8c3BhbiAqbmdJZj1cInNob3dEZXNjcmlwdGlvblwiPlxuICAgICAge3sgZGVzY3JpcHRpb24gfX1cbiAgICA8L3NwYW4+XG4gICAgPG5nLWNvbnRlbnQgc2VsZWN0PVwic2t5LWVycm9yLWRlc2NyaXB0aW9uXCI+PC9uZy1jb250ZW50PlxuICA8L2Rpdj5cblxuICA8ZGl2IGNsYXNzPVwic2t5LWVycm9yLWFjdGlvblwiPlxuICAgIDxuZy1jb250ZW50IHNlbGVjdD1cInNreS1lcnJvci1hY3Rpb25cIj48L25nLWNvbnRlbnQ+XG4gIDwvZGl2PlxuPC9kaXY+XG4iXX0=
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
+
import { __classPrivateFieldSet, __classPrivateFieldGet } from 'tslib';
|
|
1
2
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, Injectable, NgModule, Input, ContentChild } from '@angular/core';
|
|
3
|
+
import { Component, Injectable, Optional, NgModule, Input, ContentChild } from '@angular/core';
|
|
3
4
|
import * as i2 from '@skyux/modals';
|
|
4
5
|
import { SkyModalModule } from '@skyux/modals';
|
|
5
|
-
import * as i2$1 from '@
|
|
6
|
+
import * as i2$1 from '@skyux/core';
|
|
7
|
+
import * as i2$2 from '@angular/common';
|
|
6
8
|
import { CommonModule } from '@angular/common';
|
|
7
9
|
import * as i1 from '@skyux/i18n';
|
|
8
10
|
import { getLibStringForLocale, SkyI18nModule, SKY_LIB_RESOURCES_PROVIDERS } from '@skyux/i18n';
|
|
9
11
|
|
|
10
12
|
/* istanbul ignore next */
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated We recommend using a standard modal with an error component instead.
|
|
15
|
+
*/
|
|
11
16
|
class ErrorModalConfig {
|
|
12
17
|
}
|
|
13
18
|
|
|
@@ -27,17 +32,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
27
32
|
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"] }]
|
|
28
33
|
}], ctorParameters: function () { return [{ type: ErrorModalConfig }, { type: i2.SkyModalInstance }]; } });
|
|
29
34
|
|
|
35
|
+
var _SkyErrorModalService__logService;
|
|
30
36
|
/**
|
|
31
37
|
* Opens a modal to display a SKY UX-themed error message.
|
|
38
|
+
* @deprecated We recommend using a standard modal with an error component instead.
|
|
32
39
|
*/
|
|
33
40
|
class SkyErrorModalService {
|
|
34
|
-
constructor(modal) {
|
|
41
|
+
constructor(modal, logService) {
|
|
35
42
|
this.modal = modal;
|
|
43
|
+
_SkyErrorModalService__logService.set(this, void 0);
|
|
44
|
+
__classPrivateFieldSet(this, _SkyErrorModalService__logService, logService, "f");
|
|
36
45
|
}
|
|
37
46
|
/**
|
|
38
47
|
* Specifies text for the the error message, including title, description, and action label.
|
|
48
|
+
* @deprecated We recommend using a standard modal with an error component instead.
|
|
39
49
|
*/
|
|
40
50
|
open(config) {
|
|
51
|
+
var _a;
|
|
52
|
+
(_a = __classPrivateFieldGet(this, _SkyErrorModalService__logService, "f")) === null || _a === void 0 ? void 0 : _a.deprecated("SkyErrorModalService's open method", {
|
|
53
|
+
deprecationMajorVersion: 6,
|
|
54
|
+
replacementRecommendation: 'We recommend using a standard modal with an error component instead.',
|
|
55
|
+
});
|
|
41
56
|
const providers = [{ provide: ErrorModalConfig, useValue: config }];
|
|
42
57
|
this.modal.open(SkyErrorModalFormComponent, {
|
|
43
58
|
ariaRole: 'alertdialog',
|
|
@@ -45,14 +60,19 @@ class SkyErrorModalService {
|
|
|
45
60
|
});
|
|
46
61
|
}
|
|
47
62
|
}
|
|
48
|
-
|
|
63
|
+
_SkyErrorModalService__logService = new WeakMap();
|
|
64
|
+
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 });
|
|
49
65
|
SkyErrorModalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: SkyErrorModalService, providedIn: 'root' });
|
|
50
66
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: SkyErrorModalService, decorators: [{
|
|
51
67
|
type: Injectable,
|
|
52
68
|
args: [{
|
|
53
69
|
providedIn: 'root',
|
|
54
70
|
}]
|
|
55
|
-
}], ctorParameters: function () {
|
|
71
|
+
}], ctorParameters: function () {
|
|
72
|
+
return [{ type: i2.SkyModalService }, { type: i2$1.SkyLogService, decorators: [{
|
|
73
|
+
type: Optional
|
|
74
|
+
}] }];
|
|
75
|
+
} });
|
|
56
76
|
|
|
57
77
|
/**
|
|
58
78
|
* NOTICE: DO NOT MODIFY THIS FILE!
|
|
@@ -116,7 +136,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
116
136
|
}] });
|
|
117
137
|
|
|
118
138
|
/**
|
|
119
|
-
* Specifies an
|
|
139
|
+
* Specifies an interactive element to include with the error message.
|
|
120
140
|
* For example, you can include a button to reload the page or to refresh data.
|
|
121
141
|
*/
|
|
122
142
|
class SkyErrorActionComponent {
|
|
@@ -132,12 +152,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
132
152
|
}] });
|
|
133
153
|
|
|
134
154
|
/**
|
|
135
|
-
* Specifies a description to provide additional details
|
|
155
|
+
* Specifies a description to provide additional details about the error.
|
|
136
156
|
*/
|
|
137
157
|
class SkyErrorDescriptionComponent {
|
|
138
158
|
constructor() {
|
|
139
159
|
/**
|
|
140
|
-
* Indicates whether to replace the default description. If `false`, the
|
|
160
|
+
* Indicates whether to replace the default description. If `false`, the content
|
|
141
161
|
* from this component is added after the default description.
|
|
142
162
|
* @default false
|
|
143
163
|
*/
|
|
@@ -157,7 +177,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
157
177
|
}] } });
|
|
158
178
|
|
|
159
179
|
/**
|
|
160
|
-
* Specifies an image to display
|
|
180
|
+
* Specifies an image to display with the error message.
|
|
161
181
|
*/
|
|
162
182
|
class SkyErrorImageComponent {
|
|
163
183
|
}
|
|
@@ -172,12 +192,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
172
192
|
}] });
|
|
173
193
|
|
|
174
194
|
/**
|
|
175
|
-
* Specifies a title to display
|
|
195
|
+
* Specifies a title to display with the error message.
|
|
176
196
|
*/
|
|
177
197
|
class SkyErrorTitleComponent {
|
|
178
198
|
constructor() {
|
|
179
199
|
/**
|
|
180
|
-
* Indicates whether to replace the default title. If `false`, the
|
|
200
|
+
* Indicates whether to replace the default title. If `false`, the content
|
|
181
201
|
* from this component is added after the default title.
|
|
182
202
|
* @default false
|
|
183
203
|
*/
|
|
@@ -211,7 +231,7 @@ class SkyErrorComponent {
|
|
|
211
231
|
this.description = undefined;
|
|
212
232
|
}
|
|
213
233
|
/**
|
|
214
|
-
* Specifies
|
|
234
|
+
* Specifies a set of pre-defined values for the image,
|
|
215
235
|
* title, and description.
|
|
216
236
|
*/
|
|
217
237
|
set errorType(value) {
|
|
@@ -257,7 +277,7 @@ class SkyErrorComponent {
|
|
|
257
277
|
}
|
|
258
278
|
}
|
|
259
279
|
SkyErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: SkyErrorComponent, deps: [{ token: i1.SkyLibResourcesService }], target: i0.ɵɵFactoryTarget.Component });
|
|
260
|
-
SkyErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: SkyErrorComponent, selector: "sky-error", inputs: { errorType: "errorType", showImage: "showImage" }, queries: [{ propertyName: "titleCmp", first: true, predicate: SkyErrorTitleComponent, descendants: true }, { propertyName: "descriptionCmp", first: true, predicate: SkyErrorDescriptionComponent, descendants: true }], 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 *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", 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: i2$
|
|
280
|
+
SkyErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: SkyErrorComponent, selector: "sky-error", inputs: { errorType: "errorType", showImage: "showImage" }, queries: [{ propertyName: "titleCmp", first: true, predicate: SkyErrorTitleComponent, descendants: true }, { propertyName: "descriptionCmp", first: true, predicate: SkyErrorDescriptionComponent, descendants: true }], 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 *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", 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: i2$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
261
281
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: SkyErrorComponent, decorators: [{
|
|
262
282
|
type: Component,
|
|
263
283
|
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 *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", 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"] }]
|
|
@@ -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 */\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 } from '@angular/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 */\n@Injectable({\n providedIn: 'root',\n})\nexport class SkyErrorModalService {\n constructor(private modal: SkyModalService) {}\n /**\n * Specifies text for the the error message, including title, description, and action label.\n */\n public open(config: ErrorModalConfig) {\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 action to include in 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 in the error message.\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 description\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 in 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 in 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 title\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 an error type to use 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 ],\n})\nexport class SkyErrorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.ErrorModalConfig","i1","i2"],"mappings":";;;;;;;;;AAAA;MACa,gBAAgB,CAAA;AAgB5B;;ACZD;;AAEG;MAMU,0BAA0B,CAAA;IACrC,WACS,CAAA,OAAyB,EACzB,QAA0B,EAAA;AAD1B,QAAA,IAAO,CAAA,OAAA,GAAP,OAAO,CAAkB;AACzB,QAAA,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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BAAA,OAAO,EAAE;wBACP,iBAAiB;wBACjB,sBAAsB;wBACtB,sBAAsB;wBACtB,4BAA4B;wBAC5B,uBAAuB;AACxB,qBAAA;iBACF,CAAA;;;AC9BD;;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-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 ],\n})\nexport class SkyErrorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.ErrorModalConfig","i1","i2"],"mappings":";;;;;;;;;;;AAAA;AACA;;AAEG;MACU,gBAAgB,CAAA;AAgB5B;;ACfD;;AAEG;MAMU,0BAA0B,CAAA;IACrC,WACS,CAAA,OAAyB,EACzB,QAA0B,EAAA;AAD1B,QAAA,IAAO,CAAA,OAAA,GAAP,OAAO,CAAkB;AACzB,QAAA,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAkB;KAC/B;;uHAJO,0BAA0B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAAA,gBAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA1B,0BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,0BAA0B,4DCbvC,+jBAmBA,EAAA,MAAA,EAAA,CAAA,+MAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,EAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,WAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,CAAA,EAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,CAAA,EAAA,CAAA,CAAA;2FDNa,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBALtC,SAAS;+BACE,sBAAsB,EAAA,QAAA,EAAA,+jBAAA,EAAA,MAAA,EAAA,CAAA,+MAAA,CAAA,EAAA,CAAA;;;;AEFlC;;;A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,oBAAA,OAAO,EAAE;wBACP,iBAAiB;wBACjB,sBAAsB;wBACtB,sBAAsB;wBACtB,4BAA4B;wBAC5B,uBAAuB;AACxB,qBAAA;iBACF,CAAA;;;AC9BD;;AAEG;;;;"}
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
+
import { __classPrivateFieldSet, __classPrivateFieldGet } from 'tslib';
|
|
1
2
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, Injectable, NgModule, Input, ContentChild } from '@angular/core';
|
|
3
|
+
import { Component, Injectable, Optional, NgModule, Input, ContentChild } from '@angular/core';
|
|
4
|
+
import * as i2$1 from '@skyux/core';
|
|
3
5
|
import * as i2 from '@skyux/modals';
|
|
4
6
|
import { SkyModalModule } from '@skyux/modals';
|
|
5
|
-
import * as i2$
|
|
7
|
+
import * as i2$2 from '@angular/common';
|
|
6
8
|
import { CommonModule } from '@angular/common';
|
|
7
9
|
import * as i1 from '@skyux/i18n';
|
|
8
10
|
import { getLibStringForLocale, SkyI18nModule, SKY_LIB_RESOURCES_PROVIDERS } from '@skyux/i18n';
|
|
9
11
|
|
|
10
12
|
/* istanbul ignore next */
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated We recommend using a standard modal with an error component instead.
|
|
15
|
+
*/
|
|
11
16
|
class ErrorModalConfig {
|
|
12
17
|
}
|
|
13
18
|
|
|
@@ -27,17 +32,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
27
32
|
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"] }]
|
|
28
33
|
}], ctorParameters: function () { return [{ type: ErrorModalConfig }, { type: i2.SkyModalInstance }]; } });
|
|
29
34
|
|
|
35
|
+
var _SkyErrorModalService__logService;
|
|
30
36
|
/**
|
|
31
37
|
* Opens a modal to display a SKY UX-themed error message.
|
|
38
|
+
* @deprecated We recommend using a standard modal with an error component instead.
|
|
32
39
|
*/
|
|
33
40
|
class SkyErrorModalService {
|
|
34
|
-
constructor(modal) {
|
|
41
|
+
constructor(modal, logService) {
|
|
35
42
|
this.modal = modal;
|
|
43
|
+
_SkyErrorModalService__logService.set(this, void 0);
|
|
44
|
+
__classPrivateFieldSet(this, _SkyErrorModalService__logService, logService, "f");
|
|
36
45
|
}
|
|
37
46
|
/**
|
|
38
47
|
* Specifies text for the the error message, including title, description, and action label.
|
|
48
|
+
* @deprecated We recommend using a standard modal with an error component instead.
|
|
39
49
|
*/
|
|
40
50
|
open(config) {
|
|
51
|
+
__classPrivateFieldGet(this, _SkyErrorModalService__logService, "f")?.deprecated("SkyErrorModalService's open method", {
|
|
52
|
+
deprecationMajorVersion: 6,
|
|
53
|
+
replacementRecommendation: 'We recommend using a standard modal with an error component instead.',
|
|
54
|
+
});
|
|
41
55
|
const providers = [{ provide: ErrorModalConfig, useValue: config }];
|
|
42
56
|
this.modal.open(SkyErrorModalFormComponent, {
|
|
43
57
|
ariaRole: 'alertdialog',
|
|
@@ -45,14 +59,17 @@ class SkyErrorModalService {
|
|
|
45
59
|
});
|
|
46
60
|
}
|
|
47
61
|
}
|
|
48
|
-
|
|
62
|
+
_SkyErrorModalService__logService = new WeakMap();
|
|
63
|
+
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 });
|
|
49
64
|
SkyErrorModalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: SkyErrorModalService, providedIn: 'root' });
|
|
50
65
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: SkyErrorModalService, decorators: [{
|
|
51
66
|
type: Injectable,
|
|
52
67
|
args: [{
|
|
53
68
|
providedIn: 'root',
|
|
54
69
|
}]
|
|
55
|
-
}], ctorParameters: function () { return [{ type: i2.SkyModalService }
|
|
70
|
+
}], ctorParameters: function () { return [{ type: i2.SkyModalService }, { type: i2$1.SkyLogService, decorators: [{
|
|
71
|
+
type: Optional
|
|
72
|
+
}] }]; } });
|
|
56
73
|
|
|
57
74
|
/**
|
|
58
75
|
* NOTICE: DO NOT MODIFY THIS FILE!
|
|
@@ -116,7 +133,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
116
133
|
}] });
|
|
117
134
|
|
|
118
135
|
/**
|
|
119
|
-
* Specifies an
|
|
136
|
+
* Specifies an interactive element to include with the error message.
|
|
120
137
|
* For example, you can include a button to reload the page or to refresh data.
|
|
121
138
|
*/
|
|
122
139
|
class SkyErrorActionComponent {
|
|
@@ -132,12 +149,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
132
149
|
}] });
|
|
133
150
|
|
|
134
151
|
/**
|
|
135
|
-
* Specifies a description to provide additional details
|
|
152
|
+
* Specifies a description to provide additional details about the error.
|
|
136
153
|
*/
|
|
137
154
|
class SkyErrorDescriptionComponent {
|
|
138
155
|
constructor() {
|
|
139
156
|
/**
|
|
140
|
-
* Indicates whether to replace the default description. If `false`, the
|
|
157
|
+
* Indicates whether to replace the default description. If `false`, the content
|
|
141
158
|
* from this component is added after the default description.
|
|
142
159
|
* @default false
|
|
143
160
|
*/
|
|
@@ -157,7 +174,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
157
174
|
}] } });
|
|
158
175
|
|
|
159
176
|
/**
|
|
160
|
-
* Specifies an image to display
|
|
177
|
+
* Specifies an image to display with the error message.
|
|
161
178
|
*/
|
|
162
179
|
class SkyErrorImageComponent {
|
|
163
180
|
}
|
|
@@ -172,12 +189,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
172
189
|
}] });
|
|
173
190
|
|
|
174
191
|
/**
|
|
175
|
-
* Specifies a title to display
|
|
192
|
+
* Specifies a title to display with the error message.
|
|
176
193
|
*/
|
|
177
194
|
class SkyErrorTitleComponent {
|
|
178
195
|
constructor() {
|
|
179
196
|
/**
|
|
180
|
-
* Indicates whether to replace the default title. If `false`, the
|
|
197
|
+
* Indicates whether to replace the default title. If `false`, the content
|
|
181
198
|
* from this component is added after the default title.
|
|
182
199
|
* @default false
|
|
183
200
|
*/
|
|
@@ -211,7 +228,7 @@ class SkyErrorComponent {
|
|
|
211
228
|
this.description = undefined;
|
|
212
229
|
}
|
|
213
230
|
/**
|
|
214
|
-
* Specifies
|
|
231
|
+
* Specifies a set of pre-defined values for the image,
|
|
215
232
|
* title, and description.
|
|
216
233
|
*/
|
|
217
234
|
set errorType(value) {
|
|
@@ -257,7 +274,7 @@ class SkyErrorComponent {
|
|
|
257
274
|
}
|
|
258
275
|
}
|
|
259
276
|
SkyErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: SkyErrorComponent, deps: [{ token: i1.SkyLibResourcesService }], target: i0.ɵɵFactoryTarget.Component });
|
|
260
|
-
SkyErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: SkyErrorComponent, selector: "sky-error", inputs: { errorType: "errorType", showImage: "showImage" }, queries: [{ propertyName: "titleCmp", first: true, predicate: SkyErrorTitleComponent, descendants: true }, { propertyName: "descriptionCmp", first: true, predicate: SkyErrorDescriptionComponent, descendants: true }], 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 *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", 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: i2$
|
|
277
|
+
SkyErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: SkyErrorComponent, selector: "sky-error", inputs: { errorType: "errorType", showImage: "showImage" }, queries: [{ propertyName: "titleCmp", first: true, predicate: SkyErrorTitleComponent, descendants: true }, { propertyName: "descriptionCmp", first: true, predicate: SkyErrorDescriptionComponent, descendants: true }], 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 *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", 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: i2$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
261
278
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: SkyErrorComponent, decorators: [{
|
|
262
279
|
type: Component,
|
|
263
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 *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", 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"] }]
|
|
@@ -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 */\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 } from '@angular/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 */\n@Injectable({\n providedIn: 'root',\n})\nexport class SkyErrorModalService {\n constructor(private modal: SkyModalService) {}\n /**\n * Specifies text for the the error message, including title, description, and action label.\n */\n public open(config: ErrorModalConfig) {\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 action to include in 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 in the error message.\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 description\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 in 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 in 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 title\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 an error type to use 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 ],\n})\nexport class SkyErrorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.ErrorModalConfig","i1","i2"],"mappings":";;;;;;;;;AAAA;MACa,gBAAgB,CAAA;AAgB5B;;ACZD;;AAEG;MAMU,0BAA0B,CAAA;IACrC,WACS,CAAA,OAAyB,EACzB,QAA0B,EAAA;QAD1B,IAAO,CAAA,OAAA,GAAP,OAAO,CAAkB;QACzB,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAkB;KAC/B;;uHAJO,0BAA0B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAAA,gBAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA1B,0BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,0BAA0B,4DCbvC,+jBAmBA,EAAA,MAAA,EAAA,CAAA,+MAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,EAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,WAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,CAAA,EAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,CAAA,EAAA,CAAA,CAAA;2FDNa,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBALtC,SAAS;+BACE,sBAAsB,EAAA,QAAA,EAAA,+jBAAA,EAAA,MAAA,EAAA,CAAA,+MAAA,CAAA,EAAA,CAAA;;;AEHlC;;AAEG;MAIU,oBAAoB,CAAA;AAC/B,IAAA,WAAA,CAAoB,KAAsB,EAAA;QAAtB,IAAK,CAAA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B,EAAE,cAAc,aAE9D,iBAAiB;QACjB,sBAAsB;QACtB,sBAAsB;QACtB,4BAA4B;QAC5B,uBAAuB,CAAA,EAAA,CAAA,CAAA;AAGd,cAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,YAThB,CAAC,YAAY,EAAE,wBAAwB,EAAE,cAAc,CAAC,CAAA,EAAA,CAAA,CAAA;2FAStD,cAAc,EAAA,UAAA,EAAA,CAAA;kBAlB1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,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
|
+
{"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 ],\n})\nexport class SkyErrorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.ErrorModalConfig","i1","i2"],"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,EA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uB,CAAA,EAAA,CAAA,CAAA;AAGd,cAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,YAThB,CAAC,YAAY,EAAE,wBAAwB,EAAE,cAAc,CAAC,CAAA,EAAA,CAAA,CAAA;2FAStD,cAAc,EAAA,UAAA,EAAA,CAAA;kBAlB1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,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,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
/**
|
|
3
|
-
* Specifies an
|
|
3
|
+
* Specifies an interactive element to include with the error message.
|
|
4
4
|
* For example, you can include a button to reload the page or to refresh data.
|
|
5
5
|
*/
|
|
6
6
|
export declare class SkyErrorActionComponent {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
/**
|
|
3
|
-
* Specifies a description to provide additional details
|
|
3
|
+
* Specifies a description to provide additional details about the error.
|
|
4
4
|
*/
|
|
5
5
|
export declare class SkyErrorDescriptionComponent {
|
|
6
6
|
/**
|
|
7
|
-
* Indicates whether to replace the default description. If `false`, the
|
|
7
|
+
* Indicates whether to replace the default description. If `false`, the content
|
|
8
8
|
* from this component is added after the default description.
|
|
9
9
|
* @default false
|
|
10
10
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
/**
|
|
3
|
-
* Specifies an image to display
|
|
3
|
+
* Specifies an image to display with the error message.
|
|
4
4
|
*/
|
|
5
5
|
export declare class SkyErrorImageComponent {
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyErrorImageComponent, never>;
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
+
import { SkyLogService } from '@skyux/core';
|
|
1
2
|
import { SkyModalService } from '@skyux/modals';
|
|
2
3
|
import { ErrorModalConfig } from './error-modal-config';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
/**
|
|
5
6
|
* Opens a modal to display a SKY UX-themed error message.
|
|
7
|
+
* @deprecated We recommend using a standard modal with an error component instead.
|
|
6
8
|
*/
|
|
7
9
|
export declare class SkyErrorModalService {
|
|
10
|
+
#private;
|
|
8
11
|
private modal;
|
|
9
|
-
constructor(modal: SkyModalService);
|
|
12
|
+
constructor(modal: SkyModalService, logService?: SkyLogService);
|
|
10
13
|
/**
|
|
11
14
|
* Specifies text for the the error message, including title, description, and action label.
|
|
15
|
+
* @deprecated We recommend using a standard modal with an error component instead.
|
|
12
16
|
*/
|
|
13
17
|
open(config: ErrorModalConfig): void;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SkyErrorModalService,
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkyErrorModalService, [null, { optional: true; }]>;
|
|
15
19
|
static ɵprov: i0.ɵɵInjectableDeclaration<SkyErrorModalService>;
|
|
16
20
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
/**
|
|
3
|
-
* Specifies a title to display
|
|
3
|
+
* Specifies a title to display with the error message.
|
|
4
4
|
*/
|
|
5
5
|
export declare class SkyErrorTitleComponent {
|
|
6
6
|
/**
|
|
7
|
-
* Indicates whether to replace the default title. If `false`, the
|
|
7
|
+
* Indicates whether to replace the default title. If `false`, the content
|
|
8
8
|
* from this component is added after the default title.
|
|
9
9
|
* @default false
|
|
10
10
|
*/
|
|
@@ -8,7 +8,7 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
export declare class SkyErrorComponent implements OnInit {
|
|
9
9
|
private resourcesService;
|
|
10
10
|
/**
|
|
11
|
-
* Specifies
|
|
11
|
+
* Specifies a set of pre-defined values for the image,
|
|
12
12
|
* title, and description.
|
|
13
13
|
*/
|
|
14
14
|
set errorType(value: SkyErrorType);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/errors",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.8.0",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blackbaud",
|
|
@@ -43,9 +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/
|
|
48
|
-
"@skyux/
|
|
46
|
+
"@skyux-sdk/testing": "6.8.0",
|
|
47
|
+
"@skyux/core": "6.8.0",
|
|
48
|
+
"@skyux/i18n": "6.8.0",
|
|
49
|
+
"@skyux/modals": "6.8.0"
|
|
49
50
|
},
|
|
50
51
|
"dependencies": {
|
|
51
52
|
"tslib": "^2.3.1"
|