@skyux/errors 5.0.0-beta.4 → 5.5.0-alpha.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.
Files changed (69) hide show
  1. package/README.md +6 -4
  2. package/bundles/skyux-errors-testing.umd.js +2 -2
  3. package/bundles/skyux-errors.umd.js +86 -76
  4. package/documentation.json +63 -39
  5. package/esm2015/index.js +12 -0
  6. package/esm2015/index.js.map +1 -0
  7. package/esm2015/lib/modules/error/error-action.component.js +18 -0
  8. package/esm2015/lib/modules/error/error-action.component.js.map +1 -0
  9. package/esm2015/lib/modules/error/error-description.component.js +27 -0
  10. package/esm2015/lib/modules/error/error-description.component.js.map +1 -0
  11. package/esm2015/lib/modules/error/error-image.component.js +17 -0
  12. package/esm2015/lib/modules/error/error-image.component.js.map +1 -0
  13. package/esm2015/lib/modules/error/error-modal-config.js +4 -0
  14. package/esm2015/lib/modules/error/error-modal-config.js.map +1 -0
  15. package/esm2015/lib/modules/error/error-modal-form.component.js +26 -0
  16. package/esm2015/lib/modules/error/error-modal-form.component.js.map +1 -0
  17. package/esm2015/lib/modules/error/error-modal.service.js +33 -0
  18. package/esm2015/lib/modules/error/error-modal.service.js.map +1 -0
  19. package/esm2015/lib/modules/error/error-title.component.js +27 -0
  20. package/esm2015/lib/modules/error/error-title.component.js.map +1 -0
  21. package/esm2015/lib/modules/error/error-type.js +2 -0
  22. package/esm2015/lib/modules/error/error-type.js.map +1 -0
  23. package/esm2015/lib/modules/error/error.component.js +89 -0
  24. package/esm2015/lib/modules/error/error.component.js.map +1 -0
  25. package/esm2015/lib/modules/error/error.module.js +48 -0
  26. package/esm2015/lib/modules/error/error.module.js.map +1 -0
  27. package/esm2015/lib/modules/shared/sky-errors-resources.module.js +64 -0
  28. package/esm2015/lib/modules/shared/sky-errors-resources.module.js.map +1 -0
  29. package/esm2015/skyux-errors.js +2 -2
  30. package/esm2015/skyux-errors.js.map +1 -0
  31. package/esm2015/testing/error-fixture.js +1 -1
  32. package/esm2015/testing/error-fixture.js.map +1 -0
  33. package/esm2015/testing/public-api.js +1 -1
  34. package/esm2015/testing/public-api.js.map +1 -0
  35. package/esm2015/testing/skyux-errors-testing.js +1 -1
  36. package/esm2015/testing/skyux-errors-testing.js.map +1 -0
  37. package/fesm2015/skyux-errors-testing.js.map +1 -1
  38. package/fesm2015/skyux-errors.js +75 -63
  39. package/fesm2015/skyux-errors.js.map +1 -1
  40. package/index.d.ts +9 -0
  41. package/{modules → lib/modules}/error/error-action.component.d.ts +0 -0
  42. package/{modules → lib/modules}/error/error-description.component.d.ts +0 -0
  43. package/{modules → lib/modules}/error/error-image.component.d.ts +0 -0
  44. package/{modules → lib/modules}/error/error-modal-config.d.ts +0 -0
  45. package/{modules → lib/modules}/error/error-modal-form.component.d.ts +0 -0
  46. package/{modules → lib/modules}/error/error-modal.service.d.ts +0 -0
  47. package/{modules → lib/modules}/error/error-title.component.d.ts +0 -0
  48. package/{modules → lib/modules}/error/error-type.d.ts +0 -0
  49. package/{modules → lib/modules}/error/error.component.d.ts +2 -2
  50. package/{modules → lib/modules}/error/error.module.d.ts +0 -0
  51. package/{modules → lib/modules}/shared/sky-errors-resources.module.d.ts +0 -0
  52. package/package.json +6 -6
  53. package/skyux-errors.d.ts +1 -1
  54. package/LICENSE +0 -21
  55. package/bundles/skyux-errors-testing.umd.js.map +0 -1
  56. package/bundles/skyux-errors.umd.js.map +0 -1
  57. package/esm2015/modules/error/error-action.component.js +0 -18
  58. package/esm2015/modules/error/error-description.component.js +0 -27
  59. package/esm2015/modules/error/error-image.component.js +0 -17
  60. package/esm2015/modules/error/error-modal-config.js +0 -4
  61. package/esm2015/modules/error/error-modal-form.component.js +0 -24
  62. package/esm2015/modules/error/error-modal.service.js +0 -32
  63. package/esm2015/modules/error/error-title.component.js +0 -27
  64. package/esm2015/modules/error/error-type.js +0 -2
  65. package/esm2015/modules/error/error.component.js +0 -87
  66. package/esm2015/modules/error/error.module.js +0 -60
  67. package/esm2015/modules/shared/sky-errors-resources.module.js +0 -41
  68. package/esm2015/public-api.js +0 -12
  69. package/public-api.d.ts +0 -9
@@ -13,7 +13,7 @@
13
13
  "typedoc": {
14
14
  "id": 0,
15
15
  "name": "@skyux/errors",
16
- "kind": 0,
16
+ "kind": 1,
17
17
  "kindString": "Project",
18
18
  "flags": {},
19
19
  "originalName": "",
@@ -174,10 +174,12 @@
174
174
  "name": "Injectable",
175
175
  "type": {
176
176
  "type": "reference",
177
+ "qualifiedName": "InjectableDecorator",
178
+ "package": "@angular/core",
177
179
  "name": "Injectable"
178
180
  },
179
181
  "arguments": {
180
- "options": "{\n providedIn: 'root'\n}"
182
+ "options": "{\n providedIn: 'root',\n}"
181
183
  }
182
184
  }
183
185
  ],
@@ -191,7 +193,7 @@
191
193
  "sources": [
192
194
  {
193
195
  "fileName": "projects/errors/src/modules/error/error-modal.service.ts",
194
- "line": 24,
196
+ "line": 16,
195
197
  "character": 2
196
198
  }
197
199
  ],
@@ -234,7 +236,7 @@
234
236
  "sources": [
235
237
  {
236
238
  "fileName": "projects/errors/src/modules/error/error-modal.service.ts",
237
- "line": 30,
239
+ "line": 20,
238
240
  "character": 9
239
241
  }
240
242
  ],
@@ -289,7 +291,7 @@
289
291
  "sources": [
290
292
  {
291
293
  "fileName": "projects/errors/src/modules/error/error-modal.service.ts",
292
- "line": 23,
294
+ "line": 15,
293
295
  "character": 13
294
296
  }
295
297
  ]
@@ -305,10 +307,12 @@
305
307
  "name": "NgModule",
306
308
  "type": {
307
309
  "type": "reference",
310
+ "qualifiedName": "NgModuleDecorator",
311
+ "package": "@angular/core",
308
312
  "name": "NgModule"
309
313
  },
310
314
  "arguments": {
311
- "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 ],\n entryComponents: [\n SkyErrorModalFormComponent\n ]\n}"
315
+ "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}"
312
316
  }
313
317
  }
314
318
  ],
@@ -347,7 +351,7 @@
347
351
  "sources": [
348
352
  {
349
353
  "fileName": "projects/errors/src/modules/error/error.module.ts",
350
- "line": 66,
354
+ "line": 40,
351
355
  "character": 13
352
356
  }
353
357
  ]
@@ -366,10 +370,12 @@
366
370
  "name": "Component",
367
371
  "type": {
368
372
  "type": "reference",
373
+ "qualifiedName": "ComponentDecorator",
374
+ "package": "@angular/core",
369
375
  "name": "Component"
370
376
  },
371
377
  "arguments": {
372
- "obj": "{\n selector: 'sky-error-action',\n template: '<ng-content></ng-content>'\n}"
378
+ "obj": "{\n selector: 'sky-error-action',\n template: '<ng-content></ng-content>',\n}"
373
379
  }
374
380
  }
375
381
  ],
@@ -408,7 +414,7 @@
408
414
  "sources": [
409
415
  {
410
416
  "fileName": "projects/errors/src/modules/error/error-action.component.ts",
411
- "line": 13,
417
+ "line": 11,
412
418
  "character": 13
413
419
  }
414
420
  ]
@@ -427,10 +433,12 @@
427
433
  "name": "Component",
428
434
  "type": {
429
435
  "type": "reference",
436
+ "qualifiedName": "ComponentDecorator",
437
+ "package": "@angular/core",
430
438
  "name": "Component"
431
439
  },
432
440
  "arguments": {
433
- "obj": "{\n selector: 'sky-error-description',\n template: '<ng-content></ng-content>'\n}"
441
+ "obj": "{\n selector: 'sky-error-description',\n template: '<ng-content></ng-content>',\n}"
434
442
  }
435
443
  }
436
444
  ],
@@ -478,6 +486,8 @@
478
486
  "name": "Input",
479
487
  "type": {
480
488
  "type": "reference",
489
+ "qualifiedName": "InputDecorator",
490
+ "package": "@angular/core",
481
491
  "name": "Input"
482
492
  },
483
493
  "arguments": {}
@@ -486,7 +496,7 @@
486
496
  "sources": [
487
497
  {
488
498
  "fileName": "projects/errors/src/modules/error/error-description.component.ts",
489
- "line": 20,
499
+ "line": 17,
490
500
  "character": 9
491
501
  }
492
502
  ],
@@ -516,7 +526,7 @@
516
526
  "sources": [
517
527
  {
518
528
  "fileName": "projects/errors/src/modules/error/error-description.component.ts",
519
- "line": 13,
529
+ "line": 10,
520
530
  "character": 13
521
531
  }
522
532
  ]
@@ -535,10 +545,12 @@
535
545
  "name": "Component",
536
546
  "type": {
537
547
  "type": "reference",
548
+ "qualifiedName": "ComponentDecorator",
549
+ "package": "@angular/core",
538
550
  "name": "Component"
539
551
  },
540
552
  "arguments": {
541
- "obj": "{\n selector: 'sky-error-image',\n template: '<ng-content></ng-content>'\n}"
553
+ "obj": "{\n selector: 'sky-error-image',\n template: '<ng-content></ng-content>',\n}"
542
554
  }
543
555
  }
544
556
  ],
@@ -577,7 +589,7 @@
577
589
  "sources": [
578
590
  {
579
591
  "fileName": "projects/errors/src/modules/error/error-image.component.ts",
580
- "line": 12,
592
+ "line": 10,
581
593
  "character": 13
582
594
  }
583
595
  ]
@@ -596,10 +608,12 @@
596
608
  "name": "Component",
597
609
  "type": {
598
610
  "type": "reference",
611
+ "qualifiedName": "ComponentDecorator",
612
+ "package": "@angular/core",
599
613
  "name": "Component"
600
614
  },
601
615
  "arguments": {
602
- "obj": "{\n selector: 'sky-error-title',\n template: '<ng-content></ng-content>'\n}"
616
+ "obj": "{\n selector: 'sky-error-title',\n template: '<ng-content></ng-content>',\n}"
603
617
  }
604
618
  }
605
619
  ],
@@ -647,6 +661,8 @@
647
661
  "name": "Input",
648
662
  "type": {
649
663
  "type": "reference",
664
+ "qualifiedName": "InputDecorator",
665
+ "package": "@angular/core",
650
666
  "name": "Input"
651
667
  },
652
668
  "arguments": {}
@@ -655,7 +671,7 @@
655
671
  "sources": [
656
672
  {
657
673
  "fileName": "projects/errors/src/modules/error/error-title.component.ts",
658
- "line": 20,
674
+ "line": 17,
659
675
  "character": 9
660
676
  }
661
677
  ],
@@ -685,7 +701,7 @@
685
701
  "sources": [
686
702
  {
687
703
  "fileName": "projects/errors/src/modules/error/error-title.component.ts",
688
- "line": 13,
704
+ "line": 10,
689
705
  "character": 13
690
706
  }
691
707
  ]
@@ -704,10 +720,12 @@
704
720
  "name": "Component",
705
721
  "type": {
706
722
  "type": "reference",
723
+ "qualifiedName": "ComponentDecorator",
724
+ "package": "@angular/core",
707
725
  "name": "Component"
708
726
  },
709
727
  "arguments": {
710
- "obj": "{\n selector: 'sky-error',\n styleUrls: ['./error.component.scss'],\n templateUrl: './error.component.html'\n}"
728
+ "obj": "{\n selector: 'sky-error',\n styleUrls: ['./error.component.scss'],\n templateUrl: './error.component.html',\n}"
711
729
  }
712
730
  }
713
731
  ],
@@ -721,7 +739,7 @@
721
739
  "sources": [
722
740
  {
723
741
  "fileName": "projects/errors/src/modules/error/error.component.ts",
724
- "line": 74,
742
+ "line": 64,
725
743
  "character": 2
726
744
  }
727
745
  ],
@@ -764,7 +782,7 @@
764
782
  "sources": [
765
783
  {
766
784
  "fileName": "projects/errors/src/modules/error/error.component.ts",
767
- "line": 56,
785
+ "line": 43,
768
786
  "character": 9
769
787
  }
770
788
  ],
@@ -772,7 +790,7 @@
772
790
  "type": "intrinsic",
773
791
  "name": "string"
774
792
  },
775
- "defaultValue": "..."
793
+ "defaultValue": "undefined"
776
794
  },
777
795
  {
778
796
  "id": 23,
@@ -796,6 +814,8 @@
796
814
  "name": "Input",
797
815
  "type": {
798
816
  "type": "reference",
817
+ "qualifiedName": "InputDecorator",
818
+ "package": "@angular/core",
799
819
  "name": "Input"
800
820
  },
801
821
  "arguments": {}
@@ -804,7 +824,7 @@
804
824
  "sources": [
805
825
  {
806
826
  "fileName": "projects/errors/src/modules/error/error.component.ts",
807
- "line": 53,
827
+ "line": 40,
808
828
  "character": 9
809
829
  }
810
830
  ],
@@ -825,7 +845,7 @@
825
845
  "sources": [
826
846
  {
827
847
  "fileName": "projects/errors/src/modules/error/error.component.ts",
828
- "line": 55,
848
+ "line": 42,
829
849
  "character": 9
830
850
  }
831
851
  ],
@@ -833,7 +853,7 @@
833
853
  "type": "intrinsic",
834
854
  "name": "string"
835
855
  },
836
- "defaultValue": "..."
856
+ "defaultValue": "undefined"
837
857
  },
838
858
  {
839
859
  "id": 19,
@@ -848,6 +868,8 @@
848
868
  "name": "Input",
849
869
  "type": {
850
870
  "type": "reference",
871
+ "qualifiedName": "InputDecorator",
872
+ "package": "@angular/core",
851
873
  "name": "Input"
852
874
  },
853
875
  "arguments": {}
@@ -856,7 +878,7 @@
856
878
  "sources": [
857
879
  {
858
880
  "fileName": "projects/errors/src/modules/error/error.component.ts",
859
- "line": 39,
881
+ "line": 26,
860
882
  "character": 13
861
883
  }
862
884
  ],
@@ -868,7 +890,7 @@
868
890
  "kindString": "Get signature",
869
891
  "flags": {},
870
892
  "comment": {
871
- "shortText": "Specifies an error type to use a set of pre-defined values for the image,\ntitle, and description. The valid options are `'broken'`, `'construction'`,\n`'notfound'`, and `'security'`."
893
+ "shortText": "Specifies an error type to use a set of pre-defined values for the image,\ntitle, and description. The valid options are `\"broken\"`, `\"construction\"`,\n`\"notfound\"`, and `\"security\"`."
872
894
  },
873
895
  "type": {
874
896
  "type": "reference",
@@ -885,7 +907,7 @@
885
907
  "kindString": "Set signature",
886
908
  "flags": {},
887
909
  "comment": {
888
- "shortText": "Specifies an error type to use a set of pre-defined values for the image,\ntitle, and description. The valid options are `'broken'`, `'construction'`,\n`'notfound'`, and `'security'`."
910
+ "shortText": "Specifies an error type to use a set of pre-defined values for the image,\ntitle, and description. The valid options are `\"broken\"`, `\"construction\"`,\n`\"notfound\"`, and `\"security\"`."
889
911
  },
890
912
  "parameters": [
891
913
  {
@@ -919,7 +941,7 @@
919
941
  "sources": [
920
942
  {
921
943
  "fileName": "projects/errors/src/modules/error/error.component.ts",
922
- "line": 62,
944
+ "line": 49,
923
945
  "character": 13
924
946
  }
925
947
  ],
@@ -948,7 +970,7 @@
948
970
  "sources": [
949
971
  {
950
972
  "fileName": "projects/errors/src/modules/error/error.component.ts",
951
- "line": 58,
973
+ "line": 45,
952
974
  "character": 13
953
975
  }
954
976
  ],
@@ -977,7 +999,7 @@
977
999
  "sources": [
978
1000
  {
979
1001
  "fileName": "projects/errors/src/modules/error/error.component.ts",
980
- "line": 78,
1002
+ "line": 66,
981
1003
  "character": 9
982
1004
  }
983
1005
  ],
@@ -1014,7 +1036,7 @@
1014
1036
  "sources": [
1015
1037
  {
1016
1038
  "fileName": "projects/errors/src/modules/error/error.component.ts",
1017
- "line": 84,
1039
+ "line": 72,
1018
1040
  "character": 9
1019
1041
  }
1020
1042
  ],
@@ -1071,13 +1093,15 @@
1071
1093
  "sources": [
1072
1094
  {
1073
1095
  "fileName": "projects/errors/src/modules/error/error.component.ts",
1074
- "line": 32,
1096
+ "line": 19,
1075
1097
  "character": 13
1076
1098
  }
1077
1099
  ],
1078
1100
  "implementedTypes": [
1079
1101
  {
1080
1102
  "type": "reference",
1103
+ "qualifiedName": "OnInit",
1104
+ "package": "@angular/core",
1081
1105
  "name": "OnInit"
1082
1106
  }
1083
1107
  ]
@@ -1146,7 +1170,7 @@
1146
1170
  ],
1147
1171
  "sources": [
1148
1172
  {
1149
- "fileName": "projects/errors/src/public-api.ts",
1173
+ "fileName": "index.ts",
1150
1174
  "line": 1,
1151
1175
  "character": 0
1152
1176
  }
@@ -1156,17 +1180,17 @@
1156
1180
  {
1157
1181
  "fileName": "error-demo.component.html",
1158
1182
  "filePath": "/projects/errors/documentation/code-examples/error/embedded/error-demo.component.html",
1159
- "rawContents": "<sky-error\n errorType=\"broken\"\n>\n <sky-error-action>\n <button\n class=\"sky-btn sky-btn-link\"\n type=\"button\"\n (click)=\"customAction()\"\n >\n Try again\n </button>\n </sky-error-action>\n</sky-error>\n\n<sky-error\n errorType=\"notfound\"\n>\n <sky-error-action>\n <button\n class=\"sky-btn sky-btn-link\"\n type=\"button\"\n (click)=\"customAction()\"\n >\n Go back\n </button>\n </sky-error-action>\n</sky-error>\n\n<sky-error\n errorType=\"construction\"\n>\n <sky-error-action>\n <button\n class=\"sky-btn sky-btn-link\"\n type=\"button\"\n (click)=\"customAction()\"\n >\n Go back\n </button>\n </sky-error-action>\n</sky-error>\n\n<sky-error\n errorType=\"security\"\n>\n <sky-error-action>\n <button\n class=\"sky-btn sky-btn-link\"\n type=\"button\"\n (click)=\"customAction()\"\n >\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,iVBORw0KGgoAAAANSUhEUgAAAGQAAABeCAYAAADVA7GfAAAH/klEQVR4Ae2daYgcRRTH3/TuTnbcM0QhwRhQ9IsGlICCIaIiiF88ED+IflBEJDHExIAIgucHQYV4Y8hmYw4jMYcgMYdgEJI1goooxnyIopANJiRsdpLdzfRc3fJ6U7M9vX1V1avuauz60l3dVa/ee//pY35T3VOwbduGjJbmn39B/cgIWKdPOxEYCxZA1x3LoOOG6zMaEUAhk4KYJky9+gbUf/zJN/Fdt90KPa+/AtDd7btf543ZE6RWg8kXX4LGr7+F5rXzlpuh9603AYrF0Ha67TR0cyjUn0YDpl5+LVIMtIGCYVtoNEJN6rYzU4KY27YHnqb8EounNOyTpZIZQezz56G6czd3bqu79gD2zUrJjCDmp1vBNk3uvNqVCmDfrJRMCGKdPAm1AweFc4p90UYWSiYEqWwYBrvZFM4n9kUbWSjaC9L8/RjUvz8qnUu0gbZ0L9oLUlk/RJZDSltkTnkMaS1I/fARaBw/7nFZvIq20KbORV9Bmk0whzaR586xKXE9InfIY1BbQWp790Hz1CmPu/JVtIm2dS16CoLfHbZ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PIwGPPnt5q1CdLaiitTU/nR0pYQugoeFdDT42vwP+C9QYr2FdBDAAAAAElFTkSuQmCC'\n />\n </sky-error-image>\n <sky-error-title>\n Custom error with a custom image.\n </sky-error-title>\n <sky-error-description>\n Custom description.\n </sky-error-description>\n <sky-error-action>\n <button\n class=\"sky-btn sky-btn-link\"\n type=\"button\"\n (click)=\"customAction()\"\n >\n Custom action\n </button>\n </sky-error-action>\n</sky-error>\n\n<sky-error\n errorType=\"broken\"\n>\n <sky-error-title\n [replaceDefaultTitle]=\"true\"\n >\n Custom error with a default image.\n </sky-error-title>\n <sky-error-description\n [replaceDefaultDescription]=\"true\"\n >\n Custom description.\n </sky-error-description>\n <sky-error-action>\n <button\n class=\"sky-btn sky-btn-link\"\n type=\"button\"\n (click)=\"customAction()\"\n >\n Custom action\n </button>\n </sky-error-action>\n</sky-error>\n"
1183
+ "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,iVBORw0KGgoAAAANSUhEUgAAAGQAAABeCAYAAADVA7GfAAAH/klEQVR4Ae2daYgcRRTH3/TuTnbcM0QhwRhQ9IsGlICCIaIiiF88ED+IflBEJDHExIAIgucHQYV4Y8hmYw4jMYcgMY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O/j/ve43S6VNEB0QSZBI1rlzYF+8GLQ7cDv2sc6eDdyf5g4/pDLzm3qzCRNPPp3oxAXeZHQtvR26H3s0/iSH8TKYn++A+tEfeIdKrH3HNQuhb/MwgDF9bLQEqX21Fy6990FijuQDzWTgijXPAZulMi1LjkhmspPCmoNULs/QdwQxv9iVT+lJQQg2pBupGHa5LPSnv8xYvqTJAP7xMmph1PYdcN7jQWM2tyKaAUQqqIVR+/aQqI28H3EGUAvD+vc0sdncnGgGUAsjzs+KogPk/TgzYFlgGAuv5uyVN1eVAdTCKN51pyr7uV3ODKAWRvGhB8Do7+fsmjenzgBq4GhRGBiAnnVvgzGQi0Kd5Lj2MPeoAWrRYlnW3//A5NoXwLpwIa6dvB1BBoyBAehd9w4Y113rWGsJgjXrzBmo7v4S6oe+A6tcJhguNxGUAWNwELruuRvmPPIwGPPnt5q1CdLaiitTU/nR0pYQugoeFdDT42vwP+C9QYr2FdBDAAAAAElFTkSuQmCC\"\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"
1160
1184
  },
1161
1185
  {
1162
1186
  "fileName": "error-demo.component.ts",
1163
1187
  "filePath": "/projects/errors/documentation/code-examples/error/embedded/error-demo.component.ts",
1164
- "rawContents": "import {\n Component\n} from '@angular/core';\n\n@Component({\n selector: 'app-error-demo',\n templateUrl: './error-demo.component.html',\n styles: [`\n ::ng-deep .sky-error {\n margin: 40px 0;\n }\n `]\n})\nexport class ErrorDemoComponent {\n\n public customAction(): void {\n alert('action clicked!');\n }\n\n}\n"
1188
+ "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"
1165
1189
  },
1166
1190
  {
1167
1191
  "fileName": "error-demo.module.ts",
1168
1192
  "filePath": "/projects/errors/documentation/code-examples/error/embedded/error-demo.module.ts",
1169
- "rawContents": "import {\n NgModule\n} from '@angular/core';\n\nimport {\n CommonModule\n} from '@angular/common';\n\nimport {\n SkyErrorModule\n} from '@skyux/errors';\n\nimport {\n ErrorDemoComponent\n} from './error-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n SkyErrorModule\n ],\n declarations: [\n ErrorDemoComponent\n ],\n exports: [\n ErrorDemoComponent\n ]\n})\nexport class ErrorDemoModule { }\n"
1193
+ "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"
1170
1194
  },
1171
1195
  {
1172
1196
  "fileName": "error-demo.component.html",
@@ -1176,12 +1200,12 @@
1176
1200
  {
1177
1201
  "fileName": "error-demo.component.ts",
1178
1202
  "filePath": "/projects/errors/documentation/code-examples/error/modal/error-demo.component.ts",
1179
- "rawContents": "import {\n Component\n} from '@angular/core';\n\nimport {\n ErrorModalConfig,\n SkyErrorModalService\n} 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\n constructor(\n private errorService: SkyErrorModalService\n ) { }\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}\n"
1203
+ "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"
1180
1204
  },
1181
1205
  {
1182
1206
  "fileName": "error-demo.module.ts",
1183
1207
  "filePath": "/projects/errors/documentation/code-examples/error/modal/error-demo.module.ts",
1184
- "rawContents": "import {\n NgModule\n} from '@angular/core';\n\nimport {\n CommonModule\n} from '@angular/common';\n\nimport {\n SkyErrorModule\n} from '@skyux/errors';\n\nimport {\n ErrorDemoComponent\n} from './error-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n SkyErrorModule\n ],\n declarations: [\n ErrorDemoComponent\n ],\n exports: [\n ErrorDemoComponent\n ]\n})\nexport class ErrorDemoModule { }\n"
1208
+ "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"
1185
1209
  }
1186
1210
  ]
1187
- }
1211
+ }
@@ -0,0 +1,12 @@
1
+ export * from './lib/modules/error/error-modal-config';
2
+ export * from './lib/modules/error/error-modal.service';
3
+ export * from './lib/modules/error/error.module';
4
+ export * from './lib/modules/error/error-type';
5
+ // Components and directives must be exported to support Angular's "partial" Ivy compiler.
6
+ // Obscure names are used to indicate types are not part of the public API.
7
+ export { SkyErrorActionComponent as λ1 } from './lib/modules/error/error-action.component';
8
+ export { SkyErrorDescriptionComponent as λ2 } from './lib/modules/error/error-description.component';
9
+ export { SkyErrorImageComponent as λ3 } from './lib/modules/error/error-image.component';
10
+ export { SkyErrorTitleComponent as λ4 } from './lib/modules/error/error-title.component';
11
+ export { SkyErrorComponent as λ5 } from './lib/modules/error/error.component';
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/components/errors/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAE/C,0FAA0F;AAC1F,2EAA2E;AAC3E,OAAO,EAAE,uBAAuB,IAAI,EAAE,EAAE,MAAM,4CAA4C,CAAC;AAC3F,OAAO,EAAE,4BAA4B,IAAI,EAAE,EAAE,MAAM,iDAAiD,CAAC;AACrG,OAAO,EAAE,sBAAsB,IAAI,EAAE,EAAE,MAAM,2CAA2C,CAAC;AACzF,OAAO,EAAE,sBAAsB,IAAI,EAAE,EAAE,MAAM,2CAA2C,CAAC;AACzF,OAAO,EAAE,iBAAiB,IAAI,EAAE,EAAE,MAAM,qCAAqC,CAAC","sourcesContent":["export * from './lib/modules/error/error-modal-config';\nexport * from './lib/modules/error/error-modal.service';\nexport * from './lib/modules/error/error.module';\nexport * from './lib/modules/error/error-type';\n\n// Components and directives must be exported to support Angular's \"partial\" Ivy compiler.\n// Obscure names are used to indicate types are not part of the public API.\nexport { SkyErrorActionComponent as λ1 } from './lib/modules/error/error-action.component';\nexport { SkyErrorDescriptionComponent as λ2 } from './lib/modules/error/error-description.component';\nexport { SkyErrorImageComponent as λ3 } from './lib/modules/error/error-image.component';\nexport { SkyErrorTitleComponent as λ4 } from './lib/modules/error/error-title.component';\nexport { SkyErrorComponent as λ5 } from './lib/modules/error/error.component';\n"]}
@@ -0,0 +1,18 @@
1
+ import { Component } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Specifies an action to include in the error message.
5
+ * For example, you can include a button to reload the page or to refresh data.
6
+ */
7
+ export class SkyErrorActionComponent {
8
+ }
9
+ SkyErrorActionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyErrorActionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
10
+ SkyErrorActionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyErrorActionComponent, selector: "sky-error-action", ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyErrorActionComponent, decorators: [{
12
+ type: Component,
13
+ args: [{
14
+ selector: 'sky-error-action',
15
+ template: '<ng-content></ng-content>',
16
+ }]
17
+ }] });
18
+ //# sourceMappingURL=error-action.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-action.component.js","sourceRoot":"","sources":["../../../../../../../../libs/components/errors/src/lib/modules/error/error-action.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;;AAE1C;;;GAGG;AAKH,MAAM,OAAO,uBAAuB;;qHAAvB,uBAAuB;yGAAvB,uBAAuB,wDAFxB,2BAA2B;4FAE1B,uBAAuB;kBAJnC,SAAS;mBAAC;oBACT,QAAQ,EAAE,kBAAkB;oBAC5B,QAAQ,EAAE,2BAA2B;iBACtC","sourcesContent":["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"]}
@@ -0,0 +1,27 @@
1
+ import { Component, Input } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Specifies a description to provide additional details in the error message.
5
+ */
6
+ export class SkyErrorDescriptionComponent {
7
+ constructor() {
8
+ /**
9
+ * Indicates whether to replace the default description. If `false`, the description
10
+ * from this component is added after the default description.
11
+ * @default false
12
+ */
13
+ this.replaceDefaultDescription = false;
14
+ }
15
+ }
16
+ SkyErrorDescriptionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyErrorDescriptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
17
+ SkyErrorDescriptionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyErrorDescriptionComponent, selector: "sky-error-description", inputs: { replaceDefaultDescription: "replaceDefaultDescription" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyErrorDescriptionComponent, decorators: [{
19
+ type: Component,
20
+ args: [{
21
+ selector: 'sky-error-description',
22
+ template: '<ng-content></ng-content>',
23
+ }]
24
+ }], propDecorators: { replaceDefaultDescription: [{
25
+ type: Input
26
+ }] } });
27
+ //# sourceMappingURL=error-description.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-description.component.js","sourceRoot":"","sources":["../../../../../../../../libs/components/errors/src/lib/modules/error/error-description.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;;AAEjD;;GAEG;AAKH,MAAM,OAAO,4BAA4B;IAJzC;QAKE;;;;WAIG;QAEI,8BAAyB,GAAY,KAAK,CAAC;KACnD;;0HARY,4BAA4B;8GAA5B,4BAA4B,iIAF7B,2BAA2B;4FAE1B,4BAA4B;kBAJxC,SAAS;mBAAC;oBACT,QAAQ,EAAE,uBAAuB;oBACjC,QAAQ,EAAE,2BAA2B;iBACtC;8BAQQ,yBAAyB;sBAD/B,KAAK","sourcesContent":["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: boolean = false;\n}\n"]}
@@ -0,0 +1,17 @@
1
+ import { Component } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Specifies an image to display in the error message.
5
+ */
6
+ export class SkyErrorImageComponent {
7
+ }
8
+ SkyErrorImageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyErrorImageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
9
+ SkyErrorImageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyErrorImageComponent, selector: "sky-error-image", ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyErrorImageComponent, decorators: [{
11
+ type: Component,
12
+ args: [{
13
+ selector: 'sky-error-image',
14
+ template: '<ng-content></ng-content>',
15
+ }]
16
+ }] });
17
+ //# sourceMappingURL=error-image.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-image.component.js","sourceRoot":"","sources":["../../../../../../../../libs/components/errors/src/lib/modules/error/error-image.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;;AAE1C;;GAEG;AAKH,MAAM,OAAO,sBAAsB;;oHAAtB,sBAAsB;wGAAtB,sBAAsB,uDAFvB,2BAA2B;4FAE1B,sBAAsB;kBAJlC,SAAS;mBAAC;oBACT,QAAQ,EAAE,iBAAiB;oBAC3B,QAAQ,EAAE,2BAA2B;iBACtC","sourcesContent":["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"]}
@@ -0,0 +1,4 @@
1
+ /* istanbul ignore next */
2
+ export class ErrorModalConfig {
3
+ }
4
+ //# sourceMappingURL=error-modal-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-modal-config.js","sourceRoot":"","sources":["../../../../../../../../libs/components/errors/src/lib/modules/error/error-modal-config.ts"],"names":[],"mappings":"AAAA,0BAA0B;AAC1B,MAAM,OAAO,gBAAgB;CAgB5B","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"]}
@@ -0,0 +1,26 @@
1
+ import { Component } from '@angular/core';
2
+ import { SkyModalInstance } from '@skyux/modals';
3
+ import { ErrorModalConfig } from './error-modal-config';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "./error-modal-config";
6
+ import * as i2 from "@skyux/modals";
7
+ /**
8
+ * @internal
9
+ */
10
+ export class SkyErrorModalFormComponent {
11
+ constructor(context, instance) {
12
+ this.context = context;
13
+ this.instance = instance;
14
+ }
15
+ }
16
+ SkyErrorModalFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyErrorModalFormComponent, deps: [{ token: i1.ErrorModalConfig }, { token: i2.SkyModalInstance }], target: i0.ɵɵFactoryTarget.Component });
17
+ SkyErrorModalFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyErrorModalFormComponent, selector: "sky-error-modal-form", ngImport: i0, 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:bold}.sky-error-modal-description{max-width:100%}.sky-error-modal-close{margin-top:10px}\n"], components: [{ type: i2.λ5, selector: "sky-modal", inputs: ["ariaRole", "tiledBody"] }, { type: i2.λ2, selector: "sky-modal-content" }] });
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyErrorModalFormComponent, decorators: [{
19
+ type: Component,
20
+ args: [{
21
+ selector: 'sky-error-modal-form',
22
+ templateUrl: './error-modal-form.component.html',
23
+ styleUrls: ['./error-modal-form.component.scss'],
24
+ }]
25
+ }], ctorParameters: function () { return [{ type: i1.ErrorModalConfig }, { type: i2.SkyModalInstance }]; } });
26
+ //# sourceMappingURL=error-modal-form.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-modal-form.component.js","sourceRoot":"","sources":["../../../../../../../../libs/components/errors/src/lib/modules/error/error-modal-form.component.ts","../../../../../../../../libs/components/errors/src/lib/modules/error/error-modal-form.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;;;;AAExD;;GAEG;AAMH,MAAM,OAAO,0BAA0B;IACrC,YACS,OAAyB,EACzB,QAA0B;QAD1B,YAAO,GAAP,OAAO,CAAkB;QACzB,aAAQ,GAAR,QAAQ,CAAkB;IAChC,CAAC;;wHAJO,0BAA0B;4GAA1B,0BAA0B,4DCdvC,+jBAmBA;4FDLa,0BAA0B;kBALtC,SAAS;mBAAC;oBACT,QAAQ,EAAE,sBAAsB;oBAChC,WAAW,EAAE,mCAAmC;oBAChD,SAAS,EAAE,CAAC,mCAAmC,CAAC;iBACjD","sourcesContent":["import { Component } from '@angular/core';\n\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"]}
@@ -0,0 +1,33 @@
1
+ import { Injectable } from '@angular/core';
2
+ import { SkyModalService } from '@skyux/modals';
3
+ import { ErrorModalConfig } from './error-modal-config';
4
+ import { SkyErrorModalFormComponent } from './error-modal-form.component';
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "@skyux/modals";
7
+ /**
8
+ * Opens a modal to display a SKY UX-themed error message.
9
+ */
10
+ export class SkyErrorModalService {
11
+ constructor(modal) {
12
+ this.modal = modal;
13
+ }
14
+ /**
15
+ * Specifies text for the the error message, including title, description, and action label.
16
+ */
17
+ open(config) {
18
+ const providers = [{ provide: ErrorModalConfig, useValue: config }];
19
+ this.modal.open(SkyErrorModalFormComponent, {
20
+ ariaRole: 'alertdialog',
21
+ providers: providers,
22
+ });
23
+ }
24
+ }
25
+ SkyErrorModalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyErrorModalService, deps: [{ token: i1.SkyModalService }], target: i0.ɵɵFactoryTarget.Injectable });
26
+ SkyErrorModalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyErrorModalService, providedIn: 'root' });
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyErrorModalService, decorators: [{
28
+ type: Injectable,
29
+ args: [{
30
+ providedIn: 'root',
31
+ }]
32
+ }], ctorParameters: function () { return [{ type: i1.SkyModalService }]; } });
33
+ //# sourceMappingURL=error-modal.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-modal.service.js","sourceRoot":"","sources":["../../../../../../../../libs/components/errors/src/lib/modules/error/error-modal.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;;;AAE1E;;GAEG;AAIH,MAAM,OAAO,oBAAoB;IAC/B,YAAoB,KAAsB;QAAtB,UAAK,GAAL,KAAK,CAAiB;IAAG,CAAC;IAC9C;;OAEG;IACI,IAAI,CAAC,MAAwB;QAClC,MAAM,SAAS,GAAG,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC;QAEpE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,0BAA0B,EAAE;YAC1C,QAAQ,EAAE,aAAa;YACvB,SAAS,EAAE,SAAS;SACrB,CAAC,CAAC;IACL,CAAC;;kHAZU,oBAAoB;sHAApB,oBAAoB,cAFnB,MAAM;4FAEP,oBAAoB;kBAHhC,UAAU;mBAAC;oBACV,UAAU,EAAE,MAAM;iBACnB","sourcesContent":["import { Injectable } from '@angular/core';\n\nimport { SkyModalService } from '@skyux/modals';\n\nimport { ErrorModalConfig } from './error-modal-config';\n\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"]}