@skyux/errors 5.0.0-beta.2 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/skyux-errors-testing.umd.js +2 -2
- package/bundles/skyux-errors-testing.umd.js.map +1 -1
- package/bundles/skyux-errors.umd.js +170 -123
- package/bundles/skyux-errors.umd.js.map +1 -1
- package/documentation.json +553 -512
- package/esm2015/modules/error/error-action.component.js +11 -7
- package/esm2015/modules/error/error-description.component.js +13 -10
- package/esm2015/modules/error/error-image.component.js +11 -7
- package/esm2015/modules/error/error-modal-form.component.js +14 -14
- package/esm2015/modules/error/error-modal.service.js +10 -12
- package/esm2015/modules/error/error-title.component.js +13 -10
- package/esm2015/modules/error/error.component.js +26 -19
- package/esm2015/modules/error/error.module.js +36 -29
- package/esm2015/modules/shared/sky-errors-resources.module.js +45 -13
- package/esm2015/public-api.js +8 -1
- package/esm2015/skyux-errors.js +1 -8
- package/esm2015/testing/error-fixture.js +1 -1
- package/fesm2015/skyux-errors-testing.js.map +1 -1
- package/fesm2015/skyux-errors.js +163 -111
- package/fesm2015/skyux-errors.js.map +1 -1
- package/modules/error/error-action.component.d.ts +3 -0
- package/modules/error/error-description.component.d.ts +3 -0
- package/modules/error/error-image.component.d.ts +3 -0
- package/modules/error/error-modal-form.component.d.ts +3 -0
- package/modules/error/error-modal.service.d.ts +3 -0
- package/modules/error/error-title.component.d.ts +3 -0
- package/modules/error/error.component.d.ts +3 -0
- package/modules/error/error.module.d.ts +13 -0
- package/modules/shared/sky-errors-resources.module.d.ts +5 -6
- package/package.json +6 -7
- package/public-api.d.ts +5 -0
- package/skyux-errors.d.ts +1 -7
- package/testing/package.json +0 -1
- package/testing/skyux-errors-testing.d.ts +1 -0
- package/esm2015/modules/error/error-action.component.ngfactory.js +0 -16
- package/esm2015/modules/error/error-action.component.ngsummary.json +0 -1
- package/esm2015/modules/error/error-description.component.ngfactory.js +0 -16
- package/esm2015/modules/error/error-description.component.ngsummary.json +0 -1
- package/esm2015/modules/error/error-image.component.ngfactory.js +0 -16
- package/esm2015/modules/error/error-image.component.ngsummary.json +0 -1
- package/esm2015/modules/error/error-modal-config.ngsummary.json +0 -1
- package/esm2015/modules/error/error-modal-form.component.ngfactory.js +0 -30
- package/esm2015/modules/error/error-modal-form.component.ngsummary.json +0 -1
- package/esm2015/modules/error/error-modal-form.component.scss.shim.ngstyle.js +0 -9
- package/esm2015/modules/error/error-modal.service.ngsummary.json +0 -1
- package/esm2015/modules/error/error-title.component.ngfactory.js +0 -16
- package/esm2015/modules/error/error-title.component.ngsummary.json +0 -1
- package/esm2015/modules/error/error-type.ngsummary.json +0 -1
- package/esm2015/modules/error/error.component.ngfactory.js +0 -23
- package/esm2015/modules/error/error.component.ngsummary.json +0 -1
- package/esm2015/modules/error/error.component.scss.shim.ngstyle.js +0 -9
- package/esm2015/modules/error/error.module.ngfactory.js +0 -21
- package/esm2015/modules/error/error.module.ngsummary.json +0 -1
- package/esm2015/modules/shared/sky-errors-resources.module.ngfactory.js +0 -15
- package/esm2015/modules/shared/sky-errors-resources.module.ngsummary.json +0 -1
- package/esm2015/public-api.ngsummary.json +0 -1
- package/esm2015/skyux-errors.ngsummary.json +0 -1
- package/esm2015/testing/error-fixture.ngsummary.json +0 -1
- package/esm2015/testing/public-api.ngsummary.json +0 -1
- package/esm2015/testing/skyux-errors-testing.ngsummary.json +0 -1
- package/modules/error/error-action.component.ngfactory.d.ts +0 -1
- package/modules/error/error-description.component.ngfactory.d.ts +0 -1
- package/modules/error/error-image.component.ngfactory.d.ts +0 -1
- package/modules/error/error-modal-form.component.ngfactory.d.ts +0 -1
- package/modules/error/error-modal-form.component.scss.shim.ngstyle.d.ts +0 -1
- package/modules/error/error-title.component.ngfactory.d.ts +0 -1
- package/modules/error/error.component.ngfactory.d.ts +0 -1
- package/modules/error/error.component.scss.shim.ngstyle.d.ts +0 -1
- package/modules/error/error.module.ngfactory.d.ts +0 -3
- package/modules/shared/sky-errors-resources.module.ngfactory.d.ts +0 -3
- package/skyux-errors.metadata.json +0 -1
- package/testing/skyux-errors-testing.metadata.json +0 -1
package/documentation.json
CHANGED
|
@@ -1,59 +1,137 @@
|
|
|
1
1
|
{
|
|
2
2
|
"anchorIds": {
|
|
3
|
+
"ErrorModalConfig": "class-errormodalconfig",
|
|
4
|
+
"SkyErrorModalService": "class-skyerrormodalservice",
|
|
5
|
+
"SkyErrorModule": "class-skyerrormodule",
|
|
3
6
|
"SkyErrorActionComponent": "class-skyerroractioncomponent",
|
|
4
7
|
"SkyErrorDescriptionComponent": "class-skyerrordescriptioncomponent",
|
|
5
8
|
"SkyErrorImageComponent": "class-skyerrorimagecomponent",
|
|
6
9
|
"SkyErrorTitleComponent": "class-skyerrortitlecomponent",
|
|
7
10
|
"SkyErrorComponent": "class-skyerrorcomponent",
|
|
8
|
-
"ErrorModalConfig": "class-errormodalconfig",
|
|
9
|
-
"SkyErrorModalService": "class-skyerrormodalservice",
|
|
10
|
-
"SkyErrorModule": "class-skyerrormodule",
|
|
11
11
|
"SkyErrorType": "type-alias-skyerrortype"
|
|
12
12
|
},
|
|
13
13
|
"typedoc": {
|
|
14
|
+
"id": 0,
|
|
15
|
+
"name": "@skyux/errors",
|
|
16
|
+
"kind": 1,
|
|
17
|
+
"kindString": "Project",
|
|
18
|
+
"flags": {},
|
|
19
|
+
"originalName": "",
|
|
14
20
|
"children": [
|
|
15
21
|
{
|
|
16
|
-
"id":
|
|
17
|
-
"name": "
|
|
22
|
+
"id": 40,
|
|
23
|
+
"name": "ErrorModalConfig",
|
|
18
24
|
"kind": 128,
|
|
19
25
|
"kindString": "Class",
|
|
20
26
|
"flags": {},
|
|
21
|
-
"comment": {
|
|
22
|
-
"shortText": "Specifies an action to include in the error message.\nFor example, you can include a button to reload the page or to refresh data."
|
|
23
|
-
},
|
|
24
|
-
"decorators": [
|
|
25
|
-
{
|
|
26
|
-
"name": "Component",
|
|
27
|
-
"type": {
|
|
28
|
-
"type": "reference",
|
|
29
|
-
"name": "Component"
|
|
30
|
-
},
|
|
31
|
-
"arguments": {
|
|
32
|
-
"obj": "{\n selector: 'sky-error-action',\n template: '<ng-content></ng-content>'\n}"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
],
|
|
36
27
|
"children": [
|
|
37
28
|
{
|
|
38
|
-
"id":
|
|
29
|
+
"id": 41,
|
|
39
30
|
"name": "constructor",
|
|
40
31
|
"kind": 512,
|
|
41
32
|
"kindString": "Constructor",
|
|
42
33
|
"flags": {},
|
|
43
34
|
"signatures": [
|
|
44
35
|
{
|
|
45
|
-
"id":
|
|
46
|
-
"name": "new
|
|
36
|
+
"id": 42,
|
|
37
|
+
"name": "new ErrorModalConfig",
|
|
47
38
|
"kind": 16384,
|
|
48
39
|
"kindString": "Constructor signature",
|
|
49
40
|
"flags": {},
|
|
50
41
|
"type": {
|
|
51
42
|
"type": "reference",
|
|
52
|
-
"id":
|
|
53
|
-
"name": "
|
|
43
|
+
"id": 40,
|
|
44
|
+
"name": "ErrorModalConfig"
|
|
54
45
|
}
|
|
55
46
|
}
|
|
56
47
|
]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"id": 45,
|
|
51
|
+
"name": "errorCloseText",
|
|
52
|
+
"kind": 1024,
|
|
53
|
+
"kindString": "Property",
|
|
54
|
+
"flags": {
|
|
55
|
+
"isPublic": true
|
|
56
|
+
},
|
|
57
|
+
"comment": {
|
|
58
|
+
"shortText": "Specifies a label for the action button that closes the modal error message.",
|
|
59
|
+
"tags": [
|
|
60
|
+
{
|
|
61
|
+
"tag": "required",
|
|
62
|
+
"text": "\n"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
"sources": [
|
|
67
|
+
{
|
|
68
|
+
"fileName": "projects/errors/src/modules/error/error-modal-config.ts",
|
|
69
|
+
"line": 17,
|
|
70
|
+
"character": 9
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"type": {
|
|
74
|
+
"type": "intrinsic",
|
|
75
|
+
"name": "string"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"id": 44,
|
|
80
|
+
"name": "errorDescription",
|
|
81
|
+
"kind": 1024,
|
|
82
|
+
"kindString": "Property",
|
|
83
|
+
"flags": {
|
|
84
|
+
"isPublic": true
|
|
85
|
+
},
|
|
86
|
+
"comment": {
|
|
87
|
+
"shortText": "Specifies a description to provide additional details in the modal error message.",
|
|
88
|
+
"tags": [
|
|
89
|
+
{
|
|
90
|
+
"tag": "required",
|
|
91
|
+
"text": "\n"
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
"sources": [
|
|
96
|
+
{
|
|
97
|
+
"fileName": "projects/errors/src/modules/error/error-modal-config.ts",
|
|
98
|
+
"line": 12,
|
|
99
|
+
"character": 9
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"type": {
|
|
103
|
+
"type": "intrinsic",
|
|
104
|
+
"name": "string"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"id": 43,
|
|
109
|
+
"name": "errorTitle",
|
|
110
|
+
"kind": 1024,
|
|
111
|
+
"kindString": "Property",
|
|
112
|
+
"flags": {
|
|
113
|
+
"isPublic": true
|
|
114
|
+
},
|
|
115
|
+
"comment": {
|
|
116
|
+
"shortText": "Specifies a title to display in the modal error message.",
|
|
117
|
+
"tags": [
|
|
118
|
+
{
|
|
119
|
+
"tag": "required",
|
|
120
|
+
"text": "\n"
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
"sources": [
|
|
125
|
+
{
|
|
126
|
+
"fileName": "projects/errors/src/modules/error/error-modal-config.ts",
|
|
127
|
+
"line": 7,
|
|
128
|
+
"character": 9
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
"type": {
|
|
132
|
+
"type": "intrinsic",
|
|
133
|
+
"name": "string"
|
|
134
|
+
}
|
|
57
135
|
}
|
|
58
136
|
],
|
|
59
137
|
"groups": [
|
|
@@ -61,100 +139,135 @@
|
|
|
61
139
|
"title": "Constructors",
|
|
62
140
|
"kind": 512,
|
|
63
141
|
"children": [
|
|
64
|
-
|
|
142
|
+
41
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"title": "Properties",
|
|
147
|
+
"kind": 1024,
|
|
148
|
+
"children": [
|
|
149
|
+
45,
|
|
150
|
+
44,
|
|
151
|
+
43
|
|
65
152
|
]
|
|
66
153
|
}
|
|
67
154
|
],
|
|
68
155
|
"sources": [
|
|
69
156
|
{
|
|
70
|
-
"fileName": "projects/errors/src/modules/error/error-
|
|
71
|
-
"line":
|
|
157
|
+
"fileName": "projects/errors/src/modules/error/error-modal-config.ts",
|
|
158
|
+
"line": 2,
|
|
72
159
|
"character": 13
|
|
73
160
|
}
|
|
74
161
|
]
|
|
75
162
|
},
|
|
76
163
|
{
|
|
77
|
-
"id":
|
|
78
|
-
"name": "
|
|
164
|
+
"id": 46,
|
|
165
|
+
"name": "SkyErrorModalService",
|
|
79
166
|
"kind": 128,
|
|
80
167
|
"kindString": "Class",
|
|
81
168
|
"flags": {},
|
|
82
169
|
"comment": {
|
|
83
|
-
"shortText": "
|
|
170
|
+
"shortText": "Opens a modal to display a SKY UX-themed error message."
|
|
84
171
|
},
|
|
85
172
|
"decorators": [
|
|
86
173
|
{
|
|
87
|
-
"name": "
|
|
174
|
+
"name": "Injectable",
|
|
88
175
|
"type": {
|
|
89
176
|
"type": "reference",
|
|
90
|
-
"name": "
|
|
177
|
+
"name": "Injectable"
|
|
91
178
|
},
|
|
92
179
|
"arguments": {
|
|
93
|
-
"
|
|
180
|
+
"options": "{\n providedIn: 'root',\n}"
|
|
94
181
|
}
|
|
95
182
|
}
|
|
96
183
|
],
|
|
97
184
|
"children": [
|
|
98
185
|
{
|
|
99
|
-
"id":
|
|
186
|
+
"id": 47,
|
|
100
187
|
"name": "constructor",
|
|
101
188
|
"kind": 512,
|
|
102
189
|
"kindString": "Constructor",
|
|
103
190
|
"flags": {},
|
|
191
|
+
"sources": [
|
|
192
|
+
{
|
|
193
|
+
"fileName": "projects/errors/src/modules/error/error-modal.service.ts",
|
|
194
|
+
"line": 16,
|
|
195
|
+
"character": 2
|
|
196
|
+
}
|
|
197
|
+
],
|
|
104
198
|
"signatures": [
|
|
105
199
|
{
|
|
106
|
-
"id":
|
|
107
|
-
"name": "new
|
|
200
|
+
"id": 48,
|
|
201
|
+
"name": "new SkyErrorModalService",
|
|
108
202
|
"kind": 16384,
|
|
109
203
|
"kindString": "Constructor signature",
|
|
110
204
|
"flags": {},
|
|
205
|
+
"parameters": [
|
|
206
|
+
{
|
|
207
|
+
"id": 49,
|
|
208
|
+
"name": "modal",
|
|
209
|
+
"kind": 32768,
|
|
210
|
+
"kindString": "Parameter",
|
|
211
|
+
"flags": {},
|
|
212
|
+
"type": {
|
|
213
|
+
"type": "reference",
|
|
214
|
+
"name": "SkyModalService"
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
],
|
|
111
218
|
"type": {
|
|
112
219
|
"type": "reference",
|
|
113
|
-
"id":
|
|
114
|
-
"name": "
|
|
220
|
+
"id": 46,
|
|
221
|
+
"name": "SkyErrorModalService"
|
|
115
222
|
}
|
|
116
223
|
}
|
|
117
224
|
]
|
|
118
225
|
},
|
|
119
226
|
{
|
|
120
|
-
"id":
|
|
121
|
-
"name": "
|
|
122
|
-
"kind":
|
|
123
|
-
"kindString": "
|
|
227
|
+
"id": 50,
|
|
228
|
+
"name": "open",
|
|
229
|
+
"kind": 2048,
|
|
230
|
+
"kindString": "Method",
|
|
124
231
|
"flags": {
|
|
125
232
|
"isPublic": true
|
|
126
233
|
},
|
|
127
|
-
"comment": {
|
|
128
|
-
"shortText": "Indicates whether to replace the default description. If `false`, the description\nfrom this component is added after the default description.",
|
|
129
|
-
"tags": [
|
|
130
|
-
{
|
|
131
|
-
"tag": "default",
|
|
132
|
-
"text": "false\n"
|
|
133
|
-
}
|
|
134
|
-
]
|
|
135
|
-
},
|
|
136
|
-
"decorators": [
|
|
137
|
-
{
|
|
138
|
-
"name": "Input",
|
|
139
|
-
"type": {
|
|
140
|
-
"type": "reference",
|
|
141
|
-
"name": "Input"
|
|
142
|
-
},
|
|
143
|
-
"arguments": {}
|
|
144
|
-
}
|
|
145
|
-
],
|
|
146
234
|
"sources": [
|
|
147
235
|
{
|
|
148
|
-
"fileName": "projects/errors/src/modules/error/error-
|
|
236
|
+
"fileName": "projects/errors/src/modules/error/error-modal.service.ts",
|
|
149
237
|
"line": 20,
|
|
150
238
|
"character": 9
|
|
151
239
|
}
|
|
152
240
|
],
|
|
153
|
-
"
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
241
|
+
"signatures": [
|
|
242
|
+
{
|
|
243
|
+
"id": 51,
|
|
244
|
+
"name": "open",
|
|
245
|
+
"kind": 4096,
|
|
246
|
+
"kindString": "Call signature",
|
|
247
|
+
"flags": {},
|
|
248
|
+
"comment": {
|
|
249
|
+
"shortText": "Specifies text for the the error message, including title, description, and action label."
|
|
250
|
+
},
|
|
251
|
+
"parameters": [
|
|
252
|
+
{
|
|
253
|
+
"id": 52,
|
|
254
|
+
"name": "config",
|
|
255
|
+
"kind": 32768,
|
|
256
|
+
"kindString": "Parameter",
|
|
257
|
+
"flags": {},
|
|
258
|
+
"type": {
|
|
259
|
+
"type": "reference",
|
|
260
|
+
"id": 40,
|
|
261
|
+
"name": "ErrorModalConfig"
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
],
|
|
265
|
+
"type": {
|
|
266
|
+
"type": "intrinsic",
|
|
267
|
+
"name": "void"
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
]
|
|
158
271
|
}
|
|
159
272
|
],
|
|
160
273
|
"groups": [
|
|
@@ -162,64 +275,61 @@
|
|
|
162
275
|
"title": "Constructors",
|
|
163
276
|
"kind": 512,
|
|
164
277
|
"children": [
|
|
165
|
-
|
|
278
|
+
47
|
|
166
279
|
]
|
|
167
280
|
},
|
|
168
281
|
{
|
|
169
|
-
"title": "
|
|
170
|
-
"kind":
|
|
282
|
+
"title": "Methods",
|
|
283
|
+
"kind": 2048,
|
|
171
284
|
"children": [
|
|
172
|
-
|
|
285
|
+
50
|
|
173
286
|
]
|
|
174
287
|
}
|
|
175
288
|
],
|
|
176
289
|
"sources": [
|
|
177
290
|
{
|
|
178
|
-
"fileName": "projects/errors/src/modules/error/error-
|
|
179
|
-
"line":
|
|
291
|
+
"fileName": "projects/errors/src/modules/error/error-modal.service.ts",
|
|
292
|
+
"line": 15,
|
|
180
293
|
"character": 13
|
|
181
294
|
}
|
|
182
295
|
]
|
|
183
296
|
},
|
|
184
297
|
{
|
|
185
|
-
"id":
|
|
186
|
-
"name": "
|
|
298
|
+
"id": 53,
|
|
299
|
+
"name": "SkyErrorModule",
|
|
187
300
|
"kind": 128,
|
|
188
301
|
"kindString": "Class",
|
|
189
302
|
"flags": {},
|
|
190
|
-
"comment": {
|
|
191
|
-
"shortText": "Specifies an image to display in the error message."
|
|
192
|
-
},
|
|
193
303
|
"decorators": [
|
|
194
304
|
{
|
|
195
|
-
"name": "
|
|
305
|
+
"name": "NgModule",
|
|
196
306
|
"type": {
|
|
197
307
|
"type": "reference",
|
|
198
|
-
"name": "
|
|
308
|
+
"name": "NgModule"
|
|
199
309
|
},
|
|
200
310
|
"arguments": {
|
|
201
|
-
"obj": "{\n
|
|
311
|
+
"obj": "{\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 entryComponents: [SkyErrorModalFormComponent],\n}"
|
|
202
312
|
}
|
|
203
313
|
}
|
|
204
314
|
],
|
|
205
315
|
"children": [
|
|
206
316
|
{
|
|
207
|
-
"id":
|
|
317
|
+
"id": 54,
|
|
208
318
|
"name": "constructor",
|
|
209
319
|
"kind": 512,
|
|
210
320
|
"kindString": "Constructor",
|
|
211
321
|
"flags": {},
|
|
212
322
|
"signatures": [
|
|
213
323
|
{
|
|
214
|
-
"id":
|
|
215
|
-
"name": "new
|
|
324
|
+
"id": 55,
|
|
325
|
+
"name": "new SkyErrorModule",
|
|
216
326
|
"kind": 16384,
|
|
217
327
|
"kindString": "Constructor signature",
|
|
218
328
|
"flags": {},
|
|
219
329
|
"type": {
|
|
220
330
|
"type": "reference",
|
|
221
|
-
"id":
|
|
222
|
-
"name": "
|
|
331
|
+
"id": 53,
|
|
332
|
+
"name": "SkyErrorModule"
|
|
223
333
|
}
|
|
224
334
|
}
|
|
225
335
|
]
|
|
@@ -230,26 +340,26 @@
|
|
|
230
340
|
"title": "Constructors",
|
|
231
341
|
"kind": 512,
|
|
232
342
|
"children": [
|
|
233
|
-
|
|
343
|
+
54
|
|
234
344
|
]
|
|
235
345
|
}
|
|
236
346
|
],
|
|
237
347
|
"sources": [
|
|
238
348
|
{
|
|
239
|
-
"fileName": "projects/errors/src/modules/error/error
|
|
240
|
-
"line":
|
|
349
|
+
"fileName": "projects/errors/src/modules/error/error.module.ts",
|
|
350
|
+
"line": 40,
|
|
241
351
|
"character": 13
|
|
242
352
|
}
|
|
243
353
|
]
|
|
244
354
|
},
|
|
245
355
|
{
|
|
246
|
-
"id":
|
|
247
|
-
"name": "
|
|
356
|
+
"id": 1,
|
|
357
|
+
"name": "SkyErrorActionComponent",
|
|
248
358
|
"kind": 128,
|
|
249
359
|
"kindString": "Class",
|
|
250
360
|
"flags": {},
|
|
251
361
|
"comment": {
|
|
252
|
-
"shortText": "Specifies
|
|
362
|
+
"shortText": "Specifies an action to include in the error message.\nFor example, you can include a button to reload the page or to refresh data."
|
|
253
363
|
},
|
|
254
364
|
"decorators": [
|
|
255
365
|
{
|
|
@@ -259,51 +369,281 @@
|
|
|
259
369
|
"name": "Component"
|
|
260
370
|
},
|
|
261
371
|
"arguments": {
|
|
262
|
-
"obj": "{\n selector: 'sky-error-
|
|
372
|
+
"obj": "{\n selector: 'sky-error-action',\n template: '<ng-content></ng-content>',\n}"
|
|
263
373
|
}
|
|
264
374
|
}
|
|
265
375
|
],
|
|
266
376
|
"children": [
|
|
267
377
|
{
|
|
268
|
-
"id":
|
|
378
|
+
"id": 2,
|
|
269
379
|
"name": "constructor",
|
|
270
380
|
"kind": 512,
|
|
271
381
|
"kindString": "Constructor",
|
|
272
382
|
"flags": {},
|
|
273
383
|
"signatures": [
|
|
274
384
|
{
|
|
275
|
-
"id":
|
|
276
|
-
"name": "
|
|
385
|
+
"id": 3,
|
|
386
|
+
"name": "SkyErrorActionComponent",
|
|
277
387
|
"kind": 16384,
|
|
278
388
|
"kindString": "Constructor signature",
|
|
279
389
|
"flags": {},
|
|
280
390
|
"type": {
|
|
281
391
|
"type": "reference",
|
|
282
|
-
"id":
|
|
283
|
-
"name": "
|
|
392
|
+
"id": 1,
|
|
393
|
+
"name": "SkyErrorActionComponent"
|
|
284
394
|
}
|
|
285
395
|
}
|
|
286
396
|
]
|
|
287
|
-
}
|
|
397
|
+
}
|
|
398
|
+
],
|
|
399
|
+
"groups": [
|
|
288
400
|
{
|
|
289
|
-
"
|
|
290
|
-
"
|
|
291
|
-
"
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
401
|
+
"title": "Constructors",
|
|
402
|
+
"kind": 512,
|
|
403
|
+
"children": [
|
|
404
|
+
2
|
|
405
|
+
]
|
|
406
|
+
}
|
|
407
|
+
],
|
|
408
|
+
"sources": [
|
|
409
|
+
{
|
|
410
|
+
"fileName": "projects/errors/src/modules/error/error-action.component.ts",
|
|
411
|
+
"line": 11,
|
|
412
|
+
"character": 13
|
|
413
|
+
}
|
|
414
|
+
]
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"id": 4,
|
|
418
|
+
"name": "SkyErrorDescriptionComponent",
|
|
419
|
+
"kind": 128,
|
|
420
|
+
"kindString": "Class",
|
|
421
|
+
"flags": {},
|
|
422
|
+
"comment": {
|
|
423
|
+
"shortText": "Specifies a description to provide additional details in the error message."
|
|
424
|
+
},
|
|
425
|
+
"decorators": [
|
|
426
|
+
{
|
|
427
|
+
"name": "Component",
|
|
428
|
+
"type": {
|
|
429
|
+
"type": "reference",
|
|
430
|
+
"name": "Component"
|
|
431
|
+
},
|
|
432
|
+
"arguments": {
|
|
433
|
+
"obj": "{\n selector: 'sky-error-description',\n template: '<ng-content></ng-content>',\n}"
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
],
|
|
437
|
+
"children": [
|
|
438
|
+
{
|
|
439
|
+
"id": 5,
|
|
440
|
+
"name": "constructor",
|
|
441
|
+
"kind": 512,
|
|
442
|
+
"kindString": "Constructor",
|
|
443
|
+
"flags": {},
|
|
444
|
+
"signatures": [
|
|
445
|
+
{
|
|
446
|
+
"id": 6,
|
|
447
|
+
"name": "SkyErrorDescriptionComponent",
|
|
448
|
+
"kind": 16384,
|
|
449
|
+
"kindString": "Constructor signature",
|
|
450
|
+
"flags": {},
|
|
451
|
+
"type": {
|
|
452
|
+
"type": "reference",
|
|
453
|
+
"id": 4,
|
|
454
|
+
"name": "SkyErrorDescriptionComponent"
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
]
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
"id": 7,
|
|
461
|
+
"name": "replaceDefaultDescription",
|
|
462
|
+
"kind": 1024,
|
|
463
|
+
"kindString": "Property",
|
|
464
|
+
"flags": {
|
|
465
|
+
"isPublic": true
|
|
466
|
+
},
|
|
467
|
+
"comment": {
|
|
468
|
+
"shortText": "Indicates whether to replace the default description. If `false`, the description\nfrom this component is added after the default description.",
|
|
469
|
+
"tags": [
|
|
470
|
+
{
|
|
471
|
+
"tag": "default",
|
|
472
|
+
"text": "false\n"
|
|
473
|
+
}
|
|
474
|
+
]
|
|
475
|
+
},
|
|
476
|
+
"decorators": [
|
|
477
|
+
{
|
|
478
|
+
"name": "Input",
|
|
479
|
+
"type": {
|
|
480
|
+
"type": "reference",
|
|
481
|
+
"name": "Input"
|
|
482
|
+
},
|
|
483
|
+
"arguments": {}
|
|
484
|
+
}
|
|
485
|
+
],
|
|
486
|
+
"sources": [
|
|
487
|
+
{
|
|
488
|
+
"fileName": "projects/errors/src/modules/error/error-description.component.ts",
|
|
489
|
+
"line": 17,
|
|
490
|
+
"character": 9
|
|
491
|
+
}
|
|
492
|
+
],
|
|
493
|
+
"type": {
|
|
494
|
+
"type": "intrinsic",
|
|
495
|
+
"name": "boolean"
|
|
496
|
+
},
|
|
497
|
+
"defaultValue": "false"
|
|
498
|
+
}
|
|
499
|
+
],
|
|
500
|
+
"groups": [
|
|
501
|
+
{
|
|
502
|
+
"title": "Constructors",
|
|
503
|
+
"kind": 512,
|
|
504
|
+
"children": [
|
|
505
|
+
5
|
|
506
|
+
]
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"title": "Properties",
|
|
510
|
+
"kind": 1024,
|
|
511
|
+
"children": [
|
|
512
|
+
7
|
|
513
|
+
]
|
|
514
|
+
}
|
|
515
|
+
],
|
|
516
|
+
"sources": [
|
|
517
|
+
{
|
|
518
|
+
"fileName": "projects/errors/src/modules/error/error-description.component.ts",
|
|
519
|
+
"line": 10,
|
|
520
|
+
"character": 13
|
|
521
|
+
}
|
|
522
|
+
]
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"id": 8,
|
|
526
|
+
"name": "SkyErrorImageComponent",
|
|
527
|
+
"kind": 128,
|
|
528
|
+
"kindString": "Class",
|
|
529
|
+
"flags": {},
|
|
530
|
+
"comment": {
|
|
531
|
+
"shortText": "Specifies an image to display in the error message."
|
|
532
|
+
},
|
|
533
|
+
"decorators": [
|
|
534
|
+
{
|
|
535
|
+
"name": "Component",
|
|
536
|
+
"type": {
|
|
537
|
+
"type": "reference",
|
|
538
|
+
"name": "Component"
|
|
539
|
+
},
|
|
540
|
+
"arguments": {
|
|
541
|
+
"obj": "{\n selector: 'sky-error-image',\n template: '<ng-content></ng-content>',\n}"
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
],
|
|
545
|
+
"children": [
|
|
546
|
+
{
|
|
547
|
+
"id": 9,
|
|
548
|
+
"name": "constructor",
|
|
549
|
+
"kind": 512,
|
|
550
|
+
"kindString": "Constructor",
|
|
551
|
+
"flags": {},
|
|
552
|
+
"signatures": [
|
|
553
|
+
{
|
|
554
|
+
"id": 10,
|
|
555
|
+
"name": "SkyErrorImageComponent",
|
|
556
|
+
"kind": 16384,
|
|
557
|
+
"kindString": "Constructor signature",
|
|
558
|
+
"flags": {},
|
|
559
|
+
"type": {
|
|
560
|
+
"type": "reference",
|
|
561
|
+
"id": 8,
|
|
562
|
+
"name": "SkyErrorImageComponent"
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
]
|
|
566
|
+
}
|
|
567
|
+
],
|
|
568
|
+
"groups": [
|
|
569
|
+
{
|
|
570
|
+
"title": "Constructors",
|
|
571
|
+
"kind": 512,
|
|
572
|
+
"children": [
|
|
573
|
+
9
|
|
574
|
+
]
|
|
575
|
+
}
|
|
576
|
+
],
|
|
577
|
+
"sources": [
|
|
578
|
+
{
|
|
579
|
+
"fileName": "projects/errors/src/modules/error/error-image.component.ts",
|
|
580
|
+
"line": 10,
|
|
581
|
+
"character": 13
|
|
582
|
+
}
|
|
583
|
+
]
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
"id": 11,
|
|
587
|
+
"name": "SkyErrorTitleComponent",
|
|
588
|
+
"kind": 128,
|
|
589
|
+
"kindString": "Class",
|
|
590
|
+
"flags": {},
|
|
591
|
+
"comment": {
|
|
592
|
+
"shortText": "Specifies a title to display in the error message."
|
|
593
|
+
},
|
|
594
|
+
"decorators": [
|
|
595
|
+
{
|
|
596
|
+
"name": "Component",
|
|
597
|
+
"type": {
|
|
598
|
+
"type": "reference",
|
|
599
|
+
"name": "Component"
|
|
600
|
+
},
|
|
601
|
+
"arguments": {
|
|
602
|
+
"obj": "{\n selector: 'sky-error-title',\n template: '<ng-content></ng-content>',\n}"
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
],
|
|
606
|
+
"children": [
|
|
607
|
+
{
|
|
608
|
+
"id": 12,
|
|
609
|
+
"name": "constructor",
|
|
610
|
+
"kind": 512,
|
|
611
|
+
"kindString": "Constructor",
|
|
612
|
+
"flags": {},
|
|
613
|
+
"signatures": [
|
|
614
|
+
{
|
|
615
|
+
"id": 13,
|
|
616
|
+
"name": "SkyErrorTitleComponent",
|
|
617
|
+
"kind": 16384,
|
|
618
|
+
"kindString": "Constructor signature",
|
|
619
|
+
"flags": {},
|
|
620
|
+
"type": {
|
|
621
|
+
"type": "reference",
|
|
622
|
+
"id": 11,
|
|
623
|
+
"name": "SkyErrorTitleComponent"
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
]
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
"id": 14,
|
|
630
|
+
"name": "replaceDefaultTitle",
|
|
631
|
+
"kind": 1024,
|
|
632
|
+
"kindString": "Property",
|
|
633
|
+
"flags": {
|
|
634
|
+
"isPublic": true
|
|
635
|
+
},
|
|
636
|
+
"comment": {
|
|
637
|
+
"shortText": "Indicates whether to replace the default title. If `false`, the title\nfrom this component is added after the default title.",
|
|
638
|
+
"tags": [
|
|
639
|
+
{
|
|
640
|
+
"tag": "default",
|
|
641
|
+
"text": "false\n"
|
|
642
|
+
}
|
|
643
|
+
]
|
|
644
|
+
},
|
|
645
|
+
"decorators": [
|
|
646
|
+
{
|
|
307
647
|
"name": "Input",
|
|
308
648
|
"type": {
|
|
309
649
|
"type": "reference",
|
|
@@ -315,7 +655,7 @@
|
|
|
315
655
|
"sources": [
|
|
316
656
|
{
|
|
317
657
|
"fileName": "projects/errors/src/modules/error/error-title.component.ts",
|
|
318
|
-
"line":
|
|
658
|
+
"line": 17,
|
|
319
659
|
"character": 9
|
|
320
660
|
}
|
|
321
661
|
],
|
|
@@ -331,27 +671,27 @@
|
|
|
331
671
|
"title": "Constructors",
|
|
332
672
|
"kind": 512,
|
|
333
673
|
"children": [
|
|
334
|
-
|
|
674
|
+
12
|
|
335
675
|
]
|
|
336
676
|
},
|
|
337
677
|
{
|
|
338
678
|
"title": "Properties",
|
|
339
679
|
"kind": 1024,
|
|
340
680
|
"children": [
|
|
341
|
-
|
|
681
|
+
14
|
|
342
682
|
]
|
|
343
683
|
}
|
|
344
684
|
],
|
|
345
685
|
"sources": [
|
|
346
686
|
{
|
|
347
687
|
"fileName": "projects/errors/src/modules/error/error-title.component.ts",
|
|
348
|
-
"line":
|
|
688
|
+
"line": 10,
|
|
349
689
|
"character": 13
|
|
350
690
|
}
|
|
351
691
|
]
|
|
352
692
|
},
|
|
353
693
|
{
|
|
354
|
-
"id":
|
|
694
|
+
"id": 15,
|
|
355
695
|
"name": "SkyErrorComponent",
|
|
356
696
|
"kind": 128,
|
|
357
697
|
"kindString": "Class",
|
|
@@ -367,13 +707,13 @@
|
|
|
367
707
|
"name": "Component"
|
|
368
708
|
},
|
|
369
709
|
"arguments": {
|
|
370
|
-
"obj": "{\n selector: 'sky-error',\n styleUrls: ['./error.component.scss'],\n templateUrl: './error.component.html'
|
|
710
|
+
"obj": "{\n selector: 'sky-error',\n styleUrls: ['./error.component.scss'],\n templateUrl: './error.component.html',\n}"
|
|
371
711
|
}
|
|
372
712
|
}
|
|
373
713
|
],
|
|
374
714
|
"children": [
|
|
375
715
|
{
|
|
376
|
-
"id":
|
|
716
|
+
"id": 16,
|
|
377
717
|
"name": "constructor",
|
|
378
718
|
"kind": 512,
|
|
379
719
|
"kindString": "Constructor",
|
|
@@ -381,20 +721,20 @@
|
|
|
381
721
|
"sources": [
|
|
382
722
|
{
|
|
383
723
|
"fileName": "projects/errors/src/modules/error/error.component.ts",
|
|
384
|
-
"line":
|
|
724
|
+
"line": 64,
|
|
385
725
|
"character": 2
|
|
386
726
|
}
|
|
387
727
|
],
|
|
388
728
|
"signatures": [
|
|
389
729
|
{
|
|
390
|
-
"id":
|
|
391
|
-
"name": "
|
|
730
|
+
"id": 17,
|
|
731
|
+
"name": "SkyErrorComponent",
|
|
392
732
|
"kind": 16384,
|
|
393
733
|
"kindString": "Constructor signature",
|
|
394
734
|
"flags": {},
|
|
395
735
|
"parameters": [
|
|
396
736
|
{
|
|
397
|
-
"id":
|
|
737
|
+
"id": 18,
|
|
398
738
|
"name": "resourcesService",
|
|
399
739
|
"kind": 32768,
|
|
400
740
|
"kindString": "Parameter",
|
|
@@ -407,14 +747,14 @@
|
|
|
407
747
|
],
|
|
408
748
|
"type": {
|
|
409
749
|
"type": "reference",
|
|
410
|
-
"id":
|
|
750
|
+
"id": 15,
|
|
411
751
|
"name": "SkyErrorComponent"
|
|
412
752
|
}
|
|
413
753
|
}
|
|
414
754
|
]
|
|
415
755
|
},
|
|
416
756
|
{
|
|
417
|
-
"id":
|
|
757
|
+
"id": 25,
|
|
418
758
|
"name": "description",
|
|
419
759
|
"kind": 1024,
|
|
420
760
|
"kindString": "Property",
|
|
@@ -424,7 +764,7 @@
|
|
|
424
764
|
"sources": [
|
|
425
765
|
{
|
|
426
766
|
"fileName": "projects/errors/src/modules/error/error.component.ts",
|
|
427
|
-
"line":
|
|
767
|
+
"line": 43,
|
|
428
768
|
"character": 9
|
|
429
769
|
}
|
|
430
770
|
],
|
|
@@ -435,7 +775,7 @@
|
|
|
435
775
|
"defaultValue": "..."
|
|
436
776
|
},
|
|
437
777
|
{
|
|
438
|
-
"id":
|
|
778
|
+
"id": 23,
|
|
439
779
|
"name": "showImage",
|
|
440
780
|
"kind": 1024,
|
|
441
781
|
"kindString": "Property",
|
|
@@ -464,7 +804,7 @@
|
|
|
464
804
|
"sources": [
|
|
465
805
|
{
|
|
466
806
|
"fileName": "projects/errors/src/modules/error/error.component.ts",
|
|
467
|
-
"line":
|
|
807
|
+
"line": 40,
|
|
468
808
|
"character": 9
|
|
469
809
|
}
|
|
470
810
|
],
|
|
@@ -475,7 +815,7 @@
|
|
|
475
815
|
"defaultValue": "true"
|
|
476
816
|
},
|
|
477
817
|
{
|
|
478
|
-
"id":
|
|
818
|
+
"id": 24,
|
|
479
819
|
"name": "title",
|
|
480
820
|
"kind": 1024,
|
|
481
821
|
"kindString": "Property",
|
|
@@ -485,7 +825,7 @@
|
|
|
485
825
|
"sources": [
|
|
486
826
|
{
|
|
487
827
|
"fileName": "projects/errors/src/modules/error/error.component.ts",
|
|
488
|
-
"line":
|
|
828
|
+
"line": 42,
|
|
489
829
|
"character": 9
|
|
490
830
|
}
|
|
491
831
|
],
|
|
@@ -496,7 +836,7 @@
|
|
|
496
836
|
"defaultValue": "..."
|
|
497
837
|
},
|
|
498
838
|
{
|
|
499
|
-
"id":
|
|
839
|
+
"id": 19,
|
|
500
840
|
"name": "errorType",
|
|
501
841
|
"kind": 262144,
|
|
502
842
|
"kindString": "Accessor",
|
|
@@ -516,13 +856,13 @@
|
|
|
516
856
|
"sources": [
|
|
517
857
|
{
|
|
518
858
|
"fileName": "projects/errors/src/modules/error/error.component.ts",
|
|
519
|
-
"line":
|
|
859
|
+
"line": 26,
|
|
520
860
|
"character": 13
|
|
521
861
|
}
|
|
522
862
|
],
|
|
523
863
|
"getSignature": [
|
|
524
864
|
{
|
|
525
|
-
"id":
|
|
865
|
+
"id": 20,
|
|
526
866
|
"name": "errorType",
|
|
527
867
|
"kind": 524288,
|
|
528
868
|
"kindString": "Get signature",
|
|
@@ -532,14 +872,14 @@
|
|
|
532
872
|
},
|
|
533
873
|
"type": {
|
|
534
874
|
"type": "reference",
|
|
535
|
-
"id":
|
|
875
|
+
"id": 56,
|
|
536
876
|
"name": "SkyErrorType"
|
|
537
877
|
}
|
|
538
878
|
}
|
|
539
879
|
],
|
|
540
880
|
"setSignature": [
|
|
541
881
|
{
|
|
542
|
-
"id":
|
|
882
|
+
"id": 21,
|
|
543
883
|
"name": "errorType",
|
|
544
884
|
"kind": 1048576,
|
|
545
885
|
"kindString": "Set signature",
|
|
@@ -549,14 +889,14 @@
|
|
|
549
889
|
},
|
|
550
890
|
"parameters": [
|
|
551
891
|
{
|
|
552
|
-
"id":
|
|
892
|
+
"id": 22,
|
|
553
893
|
"name": "value",
|
|
554
894
|
"kind": 32768,
|
|
555
895
|
"kindString": "Parameter",
|
|
556
896
|
"flags": {},
|
|
557
897
|
"type": {
|
|
558
898
|
"type": "reference",
|
|
559
|
-
"id":
|
|
899
|
+
"id": 56,
|
|
560
900
|
"name": "SkyErrorType"
|
|
561
901
|
}
|
|
562
902
|
}
|
|
@@ -569,7 +909,7 @@
|
|
|
569
909
|
]
|
|
570
910
|
},
|
|
571
911
|
{
|
|
572
|
-
"id":
|
|
912
|
+
"id": 28,
|
|
573
913
|
"name": "showDescription",
|
|
574
914
|
"kind": 262144,
|
|
575
915
|
"kindString": "Accessor",
|
|
@@ -579,13 +919,13 @@
|
|
|
579
919
|
"sources": [
|
|
580
920
|
{
|
|
581
921
|
"fileName": "projects/errors/src/modules/error/error.component.ts",
|
|
582
|
-
"line":
|
|
922
|
+
"line": 49,
|
|
583
923
|
"character": 13
|
|
584
924
|
}
|
|
585
925
|
],
|
|
586
926
|
"getSignature": [
|
|
587
927
|
{
|
|
588
|
-
"id":
|
|
928
|
+
"id": 29,
|
|
589
929
|
"name": "showDescription",
|
|
590
930
|
"kind": 524288,
|
|
591
931
|
"kindString": "Get signature",
|
|
@@ -598,7 +938,7 @@
|
|
|
598
938
|
]
|
|
599
939
|
},
|
|
600
940
|
{
|
|
601
|
-
"id":
|
|
941
|
+
"id": 26,
|
|
602
942
|
"name": "showTitle",
|
|
603
943
|
"kind": 262144,
|
|
604
944
|
"kindString": "Accessor",
|
|
@@ -608,13 +948,13 @@
|
|
|
608
948
|
"sources": [
|
|
609
949
|
{
|
|
610
950
|
"fileName": "projects/errors/src/modules/error/error.component.ts",
|
|
611
|
-
"line":
|
|
951
|
+
"line": 45,
|
|
612
952
|
"character": 13
|
|
613
953
|
}
|
|
614
954
|
],
|
|
615
955
|
"getSignature": [
|
|
616
956
|
{
|
|
617
|
-
"id":
|
|
957
|
+
"id": 27,
|
|
618
958
|
"name": "showTitle",
|
|
619
959
|
"kind": 524288,
|
|
620
960
|
"kindString": "Get signature",
|
|
@@ -627,7 +967,7 @@
|
|
|
627
967
|
]
|
|
628
968
|
},
|
|
629
969
|
{
|
|
630
|
-
"id":
|
|
970
|
+
"id": 33,
|
|
631
971
|
"name": "ngOnInit",
|
|
632
972
|
"kind": 2048,
|
|
633
973
|
"kindString": "Method",
|
|
@@ -637,13 +977,13 @@
|
|
|
637
977
|
"sources": [
|
|
638
978
|
{
|
|
639
979
|
"fileName": "projects/errors/src/modules/error/error.component.ts",
|
|
640
|
-
"line":
|
|
980
|
+
"line": 66,
|
|
641
981
|
"character": 9
|
|
642
982
|
}
|
|
643
983
|
],
|
|
644
984
|
"signatures": [
|
|
645
985
|
{
|
|
646
|
-
"id":
|
|
986
|
+
"id": 34,
|
|
647
987
|
"name": "ngOnInit",
|
|
648
988
|
"kind": 4096,
|
|
649
989
|
"kindString": "Call signature",
|
|
@@ -664,7 +1004,7 @@
|
|
|
664
1004
|
}
|
|
665
1005
|
},
|
|
666
1006
|
{
|
|
667
|
-
"id":
|
|
1007
|
+
"id": 35,
|
|
668
1008
|
"name": "setErrorTypeFields",
|
|
669
1009
|
"kind": 2048,
|
|
670
1010
|
"kindString": "Method",
|
|
@@ -674,13 +1014,13 @@
|
|
|
674
1014
|
"sources": [
|
|
675
1015
|
{
|
|
676
1016
|
"fileName": "projects/errors/src/modules/error/error.component.ts",
|
|
677
|
-
"line":
|
|
1017
|
+
"line": 72,
|
|
678
1018
|
"character": 9
|
|
679
1019
|
}
|
|
680
1020
|
],
|
|
681
1021
|
"signatures": [
|
|
682
1022
|
{
|
|
683
|
-
"id":
|
|
1023
|
+
"id": 36,
|
|
684
1024
|
"name": "setErrorTypeFields",
|
|
685
1025
|
"kind": 4096,
|
|
686
1026
|
"kindString": "Call signature",
|
|
@@ -698,40 +1038,40 @@
|
|
|
698
1038
|
"title": "Constructors",
|
|
699
1039
|
"kind": 512,
|
|
700
1040
|
"children": [
|
|
701
|
-
|
|
1041
|
+
16
|
|
702
1042
|
]
|
|
703
1043
|
},
|
|
704
1044
|
{
|
|
705
1045
|
"title": "Properties",
|
|
706
1046
|
"kind": 1024,
|
|
707
1047
|
"children": [
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
1048
|
+
25,
|
|
1049
|
+
23,
|
|
1050
|
+
24
|
|
711
1051
|
]
|
|
712
1052
|
},
|
|
713
1053
|
{
|
|
714
1054
|
"title": "Accessors",
|
|
715
1055
|
"kind": 262144,
|
|
716
1056
|
"children": [
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
1057
|
+
19,
|
|
1058
|
+
28,
|
|
1059
|
+
26
|
|
720
1060
|
]
|
|
721
1061
|
},
|
|
722
1062
|
{
|
|
723
1063
|
"title": "Methods",
|
|
724
1064
|
"kind": 2048,
|
|
725
1065
|
"children": [
|
|
726
|
-
|
|
727
|
-
|
|
1066
|
+
33,
|
|
1067
|
+
35
|
|
728
1068
|
]
|
|
729
1069
|
}
|
|
730
1070
|
],
|
|
731
1071
|
"sources": [
|
|
732
1072
|
{
|
|
733
1073
|
"fileName": "projects/errors/src/modules/error/error.component.ts",
|
|
734
|
-
"line":
|
|
1074
|
+
"line": 19,
|
|
735
1075
|
"character": 13
|
|
736
1076
|
}
|
|
737
1077
|
],
|
|
@@ -743,349 +1083,15 @@
|
|
|
743
1083
|
]
|
|
744
1084
|
},
|
|
745
1085
|
{
|
|
746
|
-
"id":
|
|
747
|
-
"name": "
|
|
748
|
-
"kind":
|
|
749
|
-
"kindString": "
|
|
1086
|
+
"id": 56,
|
|
1087
|
+
"name": "SkyErrorType",
|
|
1088
|
+
"kind": 4194304,
|
|
1089
|
+
"kindString": "Type alias",
|
|
750
1090
|
"flags": {},
|
|
751
|
-
"
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
"kind": 512,
|
|
756
|
-
"kindString": "Constructor",
|
|
757
|
-
"flags": {},
|
|
758
|
-
"signatures": [
|
|
759
|
-
{
|
|
760
|
-
"id": 56,
|
|
761
|
-
"name": "new ErrorModalConfig",
|
|
762
|
-
"kind": 16384,
|
|
763
|
-
"kindString": "Constructor signature",
|
|
764
|
-
"flags": {},
|
|
765
|
-
"type": {
|
|
766
|
-
"type": "reference",
|
|
767
|
-
"id": 54,
|
|
768
|
-
"name": "ErrorModalConfig"
|
|
769
|
-
}
|
|
770
|
-
}
|
|
771
|
-
]
|
|
772
|
-
},
|
|
773
|
-
{
|
|
774
|
-
"id": 59,
|
|
775
|
-
"name": "errorCloseText",
|
|
776
|
-
"kind": 1024,
|
|
777
|
-
"kindString": "Property",
|
|
778
|
-
"flags": {
|
|
779
|
-
"isPublic": true
|
|
780
|
-
},
|
|
781
|
-
"comment": {
|
|
782
|
-
"shortText": "Specifies a label for the action button that closes the modal error message.",
|
|
783
|
-
"tags": [
|
|
784
|
-
{
|
|
785
|
-
"tag": "required",
|
|
786
|
-
"text": "\n"
|
|
787
|
-
}
|
|
788
|
-
]
|
|
789
|
-
},
|
|
790
|
-
"sources": [
|
|
791
|
-
{
|
|
792
|
-
"fileName": "projects/errors/src/modules/error/error-modal-config.ts",
|
|
793
|
-
"line": 17,
|
|
794
|
-
"character": 9
|
|
795
|
-
}
|
|
796
|
-
],
|
|
797
|
-
"type": {
|
|
798
|
-
"type": "intrinsic",
|
|
799
|
-
"name": "string"
|
|
800
|
-
}
|
|
801
|
-
},
|
|
802
|
-
{
|
|
803
|
-
"id": 58,
|
|
804
|
-
"name": "errorDescription",
|
|
805
|
-
"kind": 1024,
|
|
806
|
-
"kindString": "Property",
|
|
807
|
-
"flags": {
|
|
808
|
-
"isPublic": true
|
|
809
|
-
},
|
|
810
|
-
"comment": {
|
|
811
|
-
"shortText": "Specifies a description to provide additional details in the modal error message.",
|
|
812
|
-
"tags": [
|
|
813
|
-
{
|
|
814
|
-
"tag": "required",
|
|
815
|
-
"text": "\n"
|
|
816
|
-
}
|
|
817
|
-
]
|
|
818
|
-
},
|
|
819
|
-
"sources": [
|
|
820
|
-
{
|
|
821
|
-
"fileName": "projects/errors/src/modules/error/error-modal-config.ts",
|
|
822
|
-
"line": 12,
|
|
823
|
-
"character": 9
|
|
824
|
-
}
|
|
825
|
-
],
|
|
826
|
-
"type": {
|
|
827
|
-
"type": "intrinsic",
|
|
828
|
-
"name": "string"
|
|
829
|
-
}
|
|
830
|
-
},
|
|
831
|
-
{
|
|
832
|
-
"id": 57,
|
|
833
|
-
"name": "errorTitle",
|
|
834
|
-
"kind": 1024,
|
|
835
|
-
"kindString": "Property",
|
|
836
|
-
"flags": {
|
|
837
|
-
"isPublic": true
|
|
838
|
-
},
|
|
839
|
-
"comment": {
|
|
840
|
-
"shortText": "Specifies a title to display in the modal error message.",
|
|
841
|
-
"tags": [
|
|
842
|
-
{
|
|
843
|
-
"tag": "required",
|
|
844
|
-
"text": "\n"
|
|
845
|
-
}
|
|
846
|
-
]
|
|
847
|
-
},
|
|
848
|
-
"sources": [
|
|
849
|
-
{
|
|
850
|
-
"fileName": "projects/errors/src/modules/error/error-modal-config.ts",
|
|
851
|
-
"line": 7,
|
|
852
|
-
"character": 9
|
|
853
|
-
}
|
|
854
|
-
],
|
|
855
|
-
"type": {
|
|
856
|
-
"type": "intrinsic",
|
|
857
|
-
"name": "string"
|
|
858
|
-
}
|
|
859
|
-
}
|
|
860
|
-
],
|
|
861
|
-
"groups": [
|
|
862
|
-
{
|
|
863
|
-
"title": "Constructors",
|
|
864
|
-
"kind": 512,
|
|
865
|
-
"children": [
|
|
866
|
-
55
|
|
867
|
-
]
|
|
868
|
-
},
|
|
869
|
-
{
|
|
870
|
-
"title": "Properties",
|
|
871
|
-
"kind": 1024,
|
|
872
|
-
"children": [
|
|
873
|
-
59,
|
|
874
|
-
58,
|
|
875
|
-
57
|
|
876
|
-
]
|
|
877
|
-
}
|
|
878
|
-
],
|
|
879
|
-
"sources": [
|
|
880
|
-
{
|
|
881
|
-
"fileName": "projects/errors/src/modules/error/error-modal-config.ts",
|
|
882
|
-
"line": 2,
|
|
883
|
-
"character": 13
|
|
884
|
-
}
|
|
885
|
-
]
|
|
886
|
-
},
|
|
887
|
-
{
|
|
888
|
-
"id": 60,
|
|
889
|
-
"name": "SkyErrorModalService",
|
|
890
|
-
"kind": 128,
|
|
891
|
-
"kindString": "Class",
|
|
892
|
-
"flags": {},
|
|
893
|
-
"comment": {
|
|
894
|
-
"shortText": "Opens a modal to display a SKY UX-themed error message."
|
|
895
|
-
},
|
|
896
|
-
"decorators": [
|
|
897
|
-
{
|
|
898
|
-
"name": "Injectable",
|
|
899
|
-
"type": {
|
|
900
|
-
"type": "reference",
|
|
901
|
-
"name": "Injectable"
|
|
902
|
-
},
|
|
903
|
-
"arguments": {
|
|
904
|
-
"options": "{\n providedIn: 'root'\n}"
|
|
905
|
-
}
|
|
906
|
-
}
|
|
907
|
-
],
|
|
908
|
-
"children": [
|
|
909
|
-
{
|
|
910
|
-
"id": 61,
|
|
911
|
-
"name": "constructor",
|
|
912
|
-
"kind": 512,
|
|
913
|
-
"kindString": "Constructor",
|
|
914
|
-
"flags": {},
|
|
915
|
-
"sources": [
|
|
916
|
-
{
|
|
917
|
-
"fileName": "projects/errors/src/modules/error/error-modal.service.ts",
|
|
918
|
-
"line": 24,
|
|
919
|
-
"character": 2
|
|
920
|
-
}
|
|
921
|
-
],
|
|
922
|
-
"signatures": [
|
|
923
|
-
{
|
|
924
|
-
"id": 62,
|
|
925
|
-
"name": "new SkyErrorModalService",
|
|
926
|
-
"kind": 16384,
|
|
927
|
-
"kindString": "Constructor signature",
|
|
928
|
-
"flags": {},
|
|
929
|
-
"parameters": [
|
|
930
|
-
{
|
|
931
|
-
"id": 63,
|
|
932
|
-
"name": "modal",
|
|
933
|
-
"kind": 32768,
|
|
934
|
-
"kindString": "Parameter",
|
|
935
|
-
"flags": {},
|
|
936
|
-
"type": {
|
|
937
|
-
"type": "reference",
|
|
938
|
-
"name": "SkyModalService"
|
|
939
|
-
}
|
|
940
|
-
}
|
|
941
|
-
],
|
|
942
|
-
"type": {
|
|
943
|
-
"type": "reference",
|
|
944
|
-
"id": 60,
|
|
945
|
-
"name": "SkyErrorModalService"
|
|
946
|
-
}
|
|
947
|
-
}
|
|
948
|
-
]
|
|
949
|
-
},
|
|
950
|
-
{
|
|
951
|
-
"id": 64,
|
|
952
|
-
"name": "open",
|
|
953
|
-
"kind": 2048,
|
|
954
|
-
"kindString": "Method",
|
|
955
|
-
"flags": {
|
|
956
|
-
"isPublic": true
|
|
957
|
-
},
|
|
958
|
-
"sources": [
|
|
959
|
-
{
|
|
960
|
-
"fileName": "projects/errors/src/modules/error/error-modal.service.ts",
|
|
961
|
-
"line": 30,
|
|
962
|
-
"character": 9
|
|
963
|
-
}
|
|
964
|
-
],
|
|
965
|
-
"signatures": [
|
|
966
|
-
{
|
|
967
|
-
"id": 65,
|
|
968
|
-
"name": "open",
|
|
969
|
-
"kind": 4096,
|
|
970
|
-
"kindString": "Call signature",
|
|
971
|
-
"flags": {},
|
|
972
|
-
"comment": {
|
|
973
|
-
"shortText": "Specifies text for the the error message, including title, description, and action label."
|
|
974
|
-
},
|
|
975
|
-
"parameters": [
|
|
976
|
-
{
|
|
977
|
-
"id": 66,
|
|
978
|
-
"name": "config",
|
|
979
|
-
"kind": 32768,
|
|
980
|
-
"kindString": "Parameter",
|
|
981
|
-
"flags": {},
|
|
982
|
-
"type": {
|
|
983
|
-
"type": "reference",
|
|
984
|
-
"id": 54,
|
|
985
|
-
"name": "ErrorModalConfig"
|
|
986
|
-
}
|
|
987
|
-
}
|
|
988
|
-
],
|
|
989
|
-
"type": {
|
|
990
|
-
"type": "intrinsic",
|
|
991
|
-
"name": "void"
|
|
992
|
-
}
|
|
993
|
-
}
|
|
994
|
-
]
|
|
995
|
-
}
|
|
996
|
-
],
|
|
997
|
-
"groups": [
|
|
998
|
-
{
|
|
999
|
-
"title": "Constructors",
|
|
1000
|
-
"kind": 512,
|
|
1001
|
-
"children": [
|
|
1002
|
-
61
|
|
1003
|
-
]
|
|
1004
|
-
},
|
|
1005
|
-
{
|
|
1006
|
-
"title": "Methods",
|
|
1007
|
-
"kind": 2048,
|
|
1008
|
-
"children": [
|
|
1009
|
-
64
|
|
1010
|
-
]
|
|
1011
|
-
}
|
|
1012
|
-
],
|
|
1013
|
-
"sources": [
|
|
1014
|
-
{
|
|
1015
|
-
"fileName": "projects/errors/src/modules/error/error-modal.service.ts",
|
|
1016
|
-
"line": 23,
|
|
1017
|
-
"character": 13
|
|
1018
|
-
}
|
|
1019
|
-
]
|
|
1020
|
-
},
|
|
1021
|
-
{
|
|
1022
|
-
"id": 67,
|
|
1023
|
-
"name": "SkyErrorModule",
|
|
1024
|
-
"kind": 128,
|
|
1025
|
-
"kindString": "Class",
|
|
1026
|
-
"flags": {},
|
|
1027
|
-
"decorators": [
|
|
1028
|
-
{
|
|
1029
|
-
"name": "NgModule",
|
|
1030
|
-
"type": {
|
|
1031
|
-
"type": "reference",
|
|
1032
|
-
"name": "NgModule"
|
|
1033
|
-
},
|
|
1034
|
-
"arguments": {
|
|
1035
|
-
"obj": "{\n declarations: [\n SkyErrorComponent,\n SkyErrorImageComponent,\n SkyErrorTitleComponent,\n SkyErrorDescriptionComponent,\n SkyErrorActionComponent,\n SkyErrorModalFormComponent\n ],\n imports: [\n CommonModule,\n SkyErrorsResourcesModule,\n SkyModalModule\n ],\n exports: [\n SkyErrorComponent,\n SkyErrorImageComponent,\n SkyErrorTitleComponent,\n SkyErrorDescriptionComponent,\n SkyErrorActionComponent,\n SkyErrorModalFormComponent\n ],\n entryComponents: [\n SkyErrorModalFormComponent\n ]\n}"
|
|
1036
|
-
}
|
|
1037
|
-
}
|
|
1038
|
-
],
|
|
1039
|
-
"children": [
|
|
1040
|
-
{
|
|
1041
|
-
"id": 68,
|
|
1042
|
-
"name": "constructor",
|
|
1043
|
-
"kind": 512,
|
|
1044
|
-
"kindString": "Constructor",
|
|
1045
|
-
"flags": {},
|
|
1046
|
-
"signatures": [
|
|
1047
|
-
{
|
|
1048
|
-
"id": 69,
|
|
1049
|
-
"name": "new SkyErrorModule",
|
|
1050
|
-
"kind": 16384,
|
|
1051
|
-
"kindString": "Constructor signature",
|
|
1052
|
-
"flags": {},
|
|
1053
|
-
"type": {
|
|
1054
|
-
"type": "reference",
|
|
1055
|
-
"id": 67,
|
|
1056
|
-
"name": "SkyErrorModule"
|
|
1057
|
-
}
|
|
1058
|
-
}
|
|
1059
|
-
]
|
|
1060
|
-
}
|
|
1061
|
-
],
|
|
1062
|
-
"groups": [
|
|
1063
|
-
{
|
|
1064
|
-
"title": "Constructors",
|
|
1065
|
-
"kind": 512,
|
|
1066
|
-
"children": [
|
|
1067
|
-
68
|
|
1068
|
-
]
|
|
1069
|
-
}
|
|
1070
|
-
],
|
|
1071
|
-
"sources": [
|
|
1072
|
-
{
|
|
1073
|
-
"fileName": "projects/errors/src/modules/error/error.module.ts",
|
|
1074
|
-
"line": 67,
|
|
1075
|
-
"character": 13
|
|
1076
|
-
}
|
|
1077
|
-
]
|
|
1078
|
-
},
|
|
1079
|
-
{
|
|
1080
|
-
"id": 70,
|
|
1081
|
-
"name": "SkyErrorType",
|
|
1082
|
-
"kind": 4194304,
|
|
1083
|
-
"kindString": "Type alias",
|
|
1084
|
-
"flags": {},
|
|
1085
|
-
"comment": {
|
|
1086
|
-
"shortText": "Specifies which error to display."
|
|
1087
|
-
},
|
|
1088
|
-
"sources": [
|
|
1091
|
+
"comment": {
|
|
1092
|
+
"shortText": "Specifies which error to display."
|
|
1093
|
+
},
|
|
1094
|
+
"sources": [
|
|
1089
1095
|
{
|
|
1090
1096
|
"fileName": "projects/errors/src/modules/error/error-type.ts",
|
|
1091
1097
|
"line": 4,
|
|
@@ -1114,23 +1120,58 @@
|
|
|
1114
1120
|
]
|
|
1115
1121
|
}
|
|
1116
1122
|
}
|
|
1123
|
+
],
|
|
1124
|
+
"groups": [
|
|
1125
|
+
{
|
|
1126
|
+
"title": "Classes",
|
|
1127
|
+
"kind": 128,
|
|
1128
|
+
"children": [
|
|
1129
|
+
40,
|
|
1130
|
+
46,
|
|
1131
|
+
53,
|
|
1132
|
+
1,
|
|
1133
|
+
4,
|
|
1134
|
+
8,
|
|
1135
|
+
11,
|
|
1136
|
+
15
|
|
1137
|
+
]
|
|
1138
|
+
},
|
|
1139
|
+
{
|
|
1140
|
+
"title": "Type aliases",
|
|
1141
|
+
"kind": 4194304,
|
|
1142
|
+
"children": [
|
|
1143
|
+
56
|
|
1144
|
+
]
|
|
1145
|
+
}
|
|
1146
|
+
],
|
|
1147
|
+
"sources": [
|
|
1148
|
+
{
|
|
1149
|
+
"fileName": "projects/errors/src/public-api.ts",
|
|
1150
|
+
"line": 1,
|
|
1151
|
+
"character": 0
|
|
1152
|
+
}
|
|
1117
1153
|
]
|
|
1118
1154
|
},
|
|
1119
1155
|
"codeExamples": [
|
|
1156
|
+
{
|
|
1157
|
+
"fileName": ".eslintrc.json",
|
|
1158
|
+
"filePath": "/projects/errors/documentation/code-examples/.eslintrc.json",
|
|
1159
|
+
"rawContents": "{\n \"extends\": [\"../../.eslintrc.json\"],\n \"overrides\": [\n {\n \"files\": [\"*.ts\"],\n \"rules\": {\n \"@angular-eslint/directive-selector\": [\n \"error\",\n {\n \"type\": \"attribute\",\n \"prefix\": \"app\",\n \"style\": \"camelCase\"\n }\n ],\n \"@angular-eslint/component-selector\": [\n \"error\",\n {\n \"type\": \"element\",\n \"prefix\": \"app\",\n \"style\": \"kebab-case\"\n }\n ]\n }\n }\n ]\n}\n"
|
|
1160
|
+
},
|
|
1120
1161
|
{
|
|
1121
1162
|
"fileName": "error-demo.component.html",
|
|
1122
1163
|
"filePath": "/projects/errors/documentation/code-examples/error/embedded/error-demo.component.html",
|
|
1123
|
-
"rawContents": "<sky-error
|
|
1164
|
+
"rawContents": "<sky-error errorType=\"broken\">\n <sky-error-action>\n <button class=\"sky-btn sky-btn-link\" type=\"button\" (click)=\"customAction()\">\n Try again\n </button>\n </sky-error-action>\n</sky-error>\n\n<sky-error errorType=\"notfound\">\n <sky-error-action>\n <button class=\"sky-btn sky-btn-link\" type=\"button\" (click)=\"customAction()\">\n Go back\n </button>\n </sky-error-action>\n</sky-error>\n\n<sky-error errorType=\"construction\">\n <sky-error-action>\n <button class=\"sky-btn sky-btn-link\" type=\"button\" (click)=\"customAction()\">\n Go back\n </button>\n </sky-error-action>\n</sky-error>\n\n<sky-error errorType=\"security\">\n <sky-error-action>\n <button class=\"sky-btn sky-btn-link\" type=\"button\" (click)=\"customAction()\">\n Go back\n </button>\n </sky-error-action>\n</sky-error>\n\n<sky-error>\n <sky-error-image>\n <img\n role=\"presentation\"\n src=\"data:image/png;base64,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\"\n />\n </sky-error-image>\n <sky-error-title> Custom error with a custom image. </sky-error-title>\n <sky-error-description> Custom description. </sky-error-description>\n <sky-error-action>\n <button class=\"sky-btn sky-btn-link\" type=\"button\" (click)=\"customAction()\">\n Custom action\n </button>\n </sky-error-action>\n</sky-error>\n\n<sky-error errorType=\"broken\">\n <sky-error-title [replaceDefaultTitle]=\"true\">\n Custom error with a default image.\n </sky-error-title>\n <sky-error-description [replaceDefaultDescription]=\"true\">\n Custom description.\n </sky-error-description>\n <sky-error-action>\n <button class=\"sky-btn sky-btn-link\" type=\"button\" (click)=\"customAction()\">\n Custom action\n </button>\n </sky-error-action>\n</sky-error>\n"
|
|
1124
1165
|
},
|
|
1125
1166
|
{
|
|
1126
1167
|
"fileName": "error-demo.component.ts",
|
|
1127
1168
|
"filePath": "/projects/errors/documentation/code-examples/error/embedded/error-demo.component.ts",
|
|
1128
|
-
"rawContents": "import {
|
|
1169
|
+
"rawContents": "import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-error-demo',\n templateUrl: './error-demo.component.html',\n styles: [\n `\n ::ng-deep .sky-error {\n margin: 40px 0;\n }\n `,\n ],\n})\nexport class ErrorDemoComponent {\n public customAction(): void {\n alert('action clicked!');\n }\n}\n"
|
|
1129
1170
|
},
|
|
1130
1171
|
{
|
|
1131
1172
|
"fileName": "error-demo.module.ts",
|
|
1132
1173
|
"filePath": "/projects/errors/documentation/code-examples/error/embedded/error-demo.module.ts",
|
|
1133
|
-
"rawContents": "import {
|
|
1174
|
+
"rawContents": "import { NgModule } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\n\nimport { SkyErrorModule } from '@skyux/errors';\n\nimport { ErrorDemoComponent } from './error-demo.component';\n\n@NgModule({\n imports: [CommonModule, SkyErrorModule],\n declarations: [ErrorDemoComponent],\n exports: [ErrorDemoComponent],\n})\nexport class ErrorDemoModule {}\n"
|
|
1134
1175
|
},
|
|
1135
1176
|
{
|
|
1136
1177
|
"fileName": "error-demo.component.html",
|
|
@@ -1140,12 +1181,12 @@
|
|
|
1140
1181
|
{
|
|
1141
1182
|
"fileName": "error-demo.component.ts",
|
|
1142
1183
|
"filePath": "/projects/errors/documentation/code-examples/error/modal/error-demo.component.ts",
|
|
1143
|
-
"rawContents": "import {
|
|
1184
|
+
"rawContents": "import { Component } from '@angular/core';\n\nimport { ErrorModalConfig, SkyErrorModalService } from '@skyux/errors';\n\n@Component({\n selector: 'app-error-demo',\n templateUrl: './error-demo.component.html',\n providers: [SkyErrorModalService],\n})\nexport class ErrorDemoComponent {\n constructor(private errorService: SkyErrorModalService) {}\n\n public openErrorModal(): void {\n const config: ErrorModalConfig = {\n errorTitle: 'Something went wrong.',\n errorDescription: 'Close the modal, and come back later.',\n errorCloseText: 'Close',\n };\n this.errorService.open(config);\n }\n}\n"
|
|
1144
1185
|
},
|
|
1145
1186
|
{
|
|
1146
1187
|
"fileName": "error-demo.module.ts",
|
|
1147
1188
|
"filePath": "/projects/errors/documentation/code-examples/error/modal/error-demo.module.ts",
|
|
1148
|
-
"rawContents": "import {
|
|
1189
|
+
"rawContents": "import { NgModule } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\n\nimport { SkyErrorModule } from '@skyux/errors';\n\nimport { ErrorDemoComponent } from './error-demo.component';\n\n@NgModule({\n imports: [CommonModule, SkyErrorModule],\n declarations: [ErrorDemoComponent],\n exports: [ErrorDemoComponent],\n})\nexport class ErrorDemoModule {}\n"
|
|
1149
1190
|
}
|
|
1150
1191
|
]
|
|
1151
1192
|
}
|