@skyux/errors 5.6.1 → 5.7.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.
@@ -86,7 +86,7 @@
86
86
  /**
87
87
  * NOTICE: DO NOT MODIFY THIS FILE!
88
88
  * The contents of this file were automatically generated by
89
- * the 'ng generate @skyux/i18n:lib-resources-module modules/shared/sky-errors' schematic.
89
+ * the 'ng generate @skyux/i18n:lib-resources-module lib/modules/shared/sky-errors' schematic.
90
90
  * To update this file, simply rerun the command.
91
91
  */
92
92
  var RESOURCES = {
@@ -259,8 +259,7 @@
259
259
  },
260
260
  /**
261
261
  * Specifies an error type to use a set of pre-defined values for the image,
262
- * title, and description. The valid options are `"broken"`, `"construction"`,
263
- * `"notfound"`, and `"security"`.
262
+ * title, and description.
264
263
  */
265
264
  set: function (value) {
266
265
  this._errorType = value;
@@ -25,27 +25,6 @@
25
25
  "kindString": "Class",
26
26
  "flags": {},
27
27
  "children": [
28
- {
29
- "id": 41,
30
- "name": "constructor",
31
- "kind": 512,
32
- "kindString": "Constructor",
33
- "flags": {},
34
- "signatures": [
35
- {
36
- "id": 42,
37
- "name": "new ErrorModalConfig",
38
- "kind": 16384,
39
- "kindString": "Constructor signature",
40
- "flags": {},
41
- "type": {
42
- "type": "reference",
43
- "id": 40,
44
- "name": "ErrorModalConfig"
45
- }
46
- }
47
- ]
48
- },
49
28
  {
50
29
  "id": 45,
51
30
  "name": "errorCloseText",
@@ -316,29 +295,7 @@
316
295
  }
317
296
  }
318
297
  ],
319
- "children": [
320
- {
321
- "id": 54,
322
- "name": "constructor",
323
- "kind": 512,
324
- "kindString": "Constructor",
325
- "flags": {},
326
- "signatures": [
327
- {
328
- "id": 55,
329
- "name": "new SkyErrorModule",
330
- "kind": 16384,
331
- "kindString": "Constructor signature",
332
- "flags": {},
333
- "type": {
334
- "type": "reference",
335
- "id": 53,
336
- "name": "SkyErrorModule"
337
- }
338
- }
339
- ]
340
- }
341
- ],
298
+ "children": [],
342
299
  "groups": [
343
300
  {
344
301
  "title": "Constructors",
@@ -379,29 +336,7 @@
379
336
  }
380
337
  }
381
338
  ],
382
- "children": [
383
- {
384
- "id": 2,
385
- "name": "constructor",
386
- "kind": 512,
387
- "kindString": "Constructor",
388
- "flags": {},
389
- "signatures": [
390
- {
391
- "id": 3,
392
- "name": "SkyErrorActionComponent",
393
- "kind": 16384,
394
- "kindString": "Constructor signature",
395
- "flags": {},
396
- "type": {
397
- "type": "reference",
398
- "id": 1,
399
- "name": "SkyErrorActionComponent"
400
- }
401
- }
402
- ]
403
- }
404
- ],
339
+ "children": [],
405
340
  "groups": [
406
341
  {
407
342
  "title": "Constructors",
@@ -443,27 +378,6 @@
443
378
  }
444
379
  ],
445
380
  "children": [
446
- {
447
- "id": 5,
448
- "name": "constructor",
449
- "kind": 512,
450
- "kindString": "Constructor",
451
- "flags": {},
452
- "signatures": [
453
- {
454
- "id": 6,
455
- "name": "SkyErrorDescriptionComponent",
456
- "kind": 16384,
457
- "kindString": "Constructor signature",
458
- "flags": {},
459
- "type": {
460
- "type": "reference",
461
- "id": 4,
462
- "name": "SkyErrorDescriptionComponent"
463
- }
464
- }
465
- ]
466
- },
467
381
  {
468
382
  "id": 7,
469
383
  "name": "replaceDefaultDescription",
@@ -554,29 +468,7 @@
554
468
  }
555
469
  }
556
470
  ],
557
- "children": [
558
- {
559
- "id": 9,
560
- "name": "constructor",
561
- "kind": 512,
562
- "kindString": "Constructor",
563
- "flags": {},
564
- "signatures": [
565
- {
566
- "id": 10,
567
- "name": "SkyErrorImageComponent",
568
- "kind": 16384,
569
- "kindString": "Constructor signature",
570
- "flags": {},
571
- "type": {
572
- "type": "reference",
573
- "id": 8,
574
- "name": "SkyErrorImageComponent"
575
- }
576
- }
577
- ]
578
- }
579
- ],
471
+ "children": [],
580
472
  "groups": [
581
473
  {
582
474
  "title": "Constructors",
@@ -618,27 +510,6 @@
618
510
  }
619
511
  ],
620
512
  "children": [
621
- {
622
- "id": 12,
623
- "name": "constructor",
624
- "kind": 512,
625
- "kindString": "Constructor",
626
- "flags": {},
627
- "signatures": [
628
- {
629
- "id": 13,
630
- "name": "SkyErrorTitleComponent",
631
- "kind": 16384,
632
- "kindString": "Constructor signature",
633
- "flags": {},
634
- "type": {
635
- "type": "reference",
636
- "id": 11,
637
- "name": "SkyErrorTitleComponent"
638
- }
639
- }
640
- ]
641
- },
642
513
  {
643
514
  "id": 14,
644
515
  "name": "replaceDefaultTitle",
@@ -739,7 +610,7 @@
739
610
  "sources": [
740
611
  {
741
612
  "fileName": "projects/errors/src/modules/error/error.component.ts",
742
- "line": 61,
613
+ "line": 60,
743
614
  "character": 2
744
615
  }
745
616
  ],
@@ -782,7 +653,7 @@
782
653
  "sources": [
783
654
  {
784
655
  "fileName": "projects/errors/src/modules/error/error.component.ts",
785
- "line": 40,
656
+ "line": 39,
786
657
  "character": 9
787
658
  }
788
659
  ],
@@ -824,7 +695,7 @@
824
695
  "sources": [
825
696
  {
826
697
  "fileName": "projects/errors/src/modules/error/error.component.ts",
827
- "line": 37,
698
+ "line": 36,
828
699
  "character": 9
829
700
  }
830
701
  ],
@@ -845,7 +716,7 @@
845
716
  "sources": [
846
717
  {
847
718
  "fileName": "projects/errors/src/modules/error/error.component.ts",
848
- "line": 39,
719
+ "line": 38,
849
720
  "character": 9
850
721
  }
851
722
  ],
@@ -878,7 +749,7 @@
878
749
  "sources": [
879
750
  {
880
751
  "fileName": "projects/errors/src/modules/error/error.component.ts",
881
- "line": 23,
752
+ "line": 22,
882
753
  "character": 13
883
754
  }
884
755
  ],
@@ -890,7 +761,7 @@
890
761
  "kindString": "Get signature",
891
762
  "flags": {},
892
763
  "comment": {
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\"`."
764
+ "shortText": "Specifies an error type to use a set of pre-defined values for the image,\ntitle, and description."
894
765
  },
895
766
  "type": {
896
767
  "type": "reference",
@@ -907,7 +778,7 @@
907
778
  "kindString": "Set signature",
908
779
  "flags": {},
909
780
  "comment": {
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\"`."
781
+ "shortText": "Specifies an error type to use a set of pre-defined values for the image,\ntitle, and description."
911
782
  },
912
783
  "parameters": [
913
784
  {
@@ -941,7 +812,7 @@
941
812
  "sources": [
942
813
  {
943
814
  "fileName": "projects/errors/src/modules/error/error.component.ts",
944
- "line": 46,
815
+ "line": 45,
945
816
  "character": 13
946
817
  }
947
818
  ],
@@ -970,7 +841,7 @@
970
841
  "sources": [
971
842
  {
972
843
  "fileName": "projects/errors/src/modules/error/error.component.ts",
973
- "line": 42,
844
+ "line": 41,
974
845
  "character": 13
975
846
  }
976
847
  ],
@@ -999,7 +870,7 @@
999
870
  "sources": [
1000
871
  {
1001
872
  "fileName": "projects/errors/src/modules/error/error.component.ts",
1002
- "line": 63,
873
+ "line": 62,
1003
874
  "character": 9
1004
875
  }
1005
876
  ],
@@ -1036,7 +907,7 @@
1036
907
  "sources": [
1037
908
  {
1038
909
  "fileName": "projects/errors/src/modules/error/error.component.ts",
1039
- "line": 69,
910
+ "line": 68,
1040
911
  "character": 9
1041
912
  }
1042
913
  ],
@@ -21,8 +21,7 @@ export class SkyErrorComponent {
21
21
  }
22
22
  /**
23
23
  * Specifies an error type to use a set of pre-defined values for the image,
24
- * title, and description. The valid options are `"broken"`, `"construction"`,
25
- * `"notfound"`, and `"security"`.
24
+ * title, and description.
26
25
  */
27
26
  set errorType(value) {
28
27
  this._errorType = value;
@@ -1 +1 @@
1
- {"version":3,"file":"error.component.js","sourceRoot":"","sources":["../../../../../../../../libs/components/errors/src/lib/modules/error/error.component.ts","../../../../../../../../libs/components/errors/src/lib/modules/error/error.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAU,MAAM,eAAe,CAAC;AACv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ContentChild, Input, OnInit } from '@angular/core';\nimport { SkyLibResourcesService } from '@skyux/i18n';\n\nimport { SkyErrorDescriptionComponent } from './error-description.component';\nimport { SkyErrorTitleComponent } from './error-title.component';\nimport { SkyErrorType } from './error-type';\n\n/**\n * Displays a SKY UX-themed error message.\n */\n@Component({\n selector: 'sky-error',\n styleUrls: ['./error.component.scss'],\n templateUrl: './error.component.html',\n})\nexport class SkyErrorComponent implements OnInit {\n /**\n * Specifies an error type to use a set of pre-defined values for the image,\n * title, and description. The valid options are `\"broken\"`, `\"construction\"`,\n * `\"notfound\"`, and `\"security\"`.\n */\n @Input()\n public set errorType(value: SkyErrorType) {\n this._errorType = value;\n this.setErrorTypeFields();\n }\n\n public get errorType() {\n return this._errorType;\n }\n\n /**\n * Indicates whether to display the error image.\n * @default true\n */\n @Input()\n public showImage = true;\n\n public title: string = undefined;\n public description: string = undefined;\n\n public get showTitle(): boolean {\n return this.title && !(this.titleCmp && this.titleCmp.replaceDefaultTitle);\n }\n\n public get showDescription(): boolean {\n return (\n this.description &&\n !(this.descriptionCmp && this.descriptionCmp.replaceDefaultDescription)\n );\n }\n\n @ContentChild(SkyErrorTitleComponent)\n private titleCmp: SkyErrorTitleComponent;\n\n @ContentChild(SkyErrorDescriptionComponent)\n private descriptionCmp: SkyErrorDescriptionComponent;\n\n private _errorType: SkyErrorType;\n\n constructor(private resourcesService: SkyLibResourcesService) {}\n\n public ngOnInit() {\n if (this.errorType) {\n this.setErrorTypeFields();\n }\n }\n\n public setErrorTypeFields() {\n if (this.errorType.toLowerCase() === 'broken') {\n this.title = this.getString('skyux_errors_broken_title');\n this.description = this.getString('skyux_errors_broken_description');\n } else if (this.errorType.toLowerCase() === 'notfound') {\n this.title = this.getString('skyux_errors_not_found_title');\n this.description = this.getString('skyux_errors_not_found_description');\n } else if (this.errorType.toLowerCase() === 'construction') {\n this.title = this.getString('skyux_errors_construction_title');\n this.description = this.getString(\n 'skyux_errors_construction_description'\n );\n } else if (this.errorType.toLowerCase() === 'security') {\n this.title = this.getString('skyux_errors_security_title');\n this.description = this.getString('skyux_errors_security_description');\n }\n }\n\n private getString(key: string): string {\n // TODO: Need to implement the async `getString` method in a breaking change.\n return this.resourcesService.getStringForLocale({ locale: 'en-US' }, key);\n }\n}\n","<div class=\"sky-error\">\n <div\n *ngIf=\"showImage\"\n class=\"sky-error-image-container sky-margin-stacked-lg\"\n >\n <div\n *ngIf=\"errorType\"\n class=\"sky-error-image-svg\"\n [ngClass]=\"['sky-error-' + errorType + '-image']\"\n ></div>\n <ng-content select=\"sky-error-image\"></ng-content>\n </div>\n\n <div class=\"sky-error-title sky-font-heading-1 sky-margin-stacked-lg\">\n <ng-container *ngIf=\"showTitle\">\n {{ title }}\n </ng-container>\n <ng-content select=\"sky-error-title\"></ng-content>\n </div>\n\n <div\n class=\"sky-error-description sky-font-body-default sky-margin-stacked-xl\"\n >\n <span *ngIf=\"showDescription\">\n {{ description }}\n </span>\n <ng-content select=\"sky-error-description\"></ng-content>\n </div>\n\n <div class=\"sky-error-action\">\n <ng-content select=\"sky-error-action\"></ng-content>\n </div>\n</div>\n"]}
1
+ {"version":3,"file":"error.component.js","sourceRoot":"","sources":["../../../../../../../../libs/components/errors/src/lib/modules/error/error.component.ts","../../../../../../../../libs/components/errors/src/lib/modules/error/error.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAU,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;;;;AAGjE;;GAEG;AAMH,MAAM,OAAO,iBAAiB;IA4C5B,YAAoB,gBAAwC;QAAxC,qBAAgB,GAAhB,gBAAgB,CAAwB;QA7B5D;;;WAGG;QAEI,cAAS,GAAG,IAAI,CAAC;QAEjB,UAAK,GAAW,SAAS,CA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AAC,SAAS,CAAC,iCAAiC,CAAC,CAAC;YAC/D,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,SAAS,CAC/B,uCAAuC,CACxC,CAAC;SACH;aAAM,IAAI,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,KAAK,UAAU,EAAE;YACtD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,6BAA6B,CAAC,CAAC;YAC3D,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,mCAAmC,CAAC,CAAC;SACxE;IACH,CAAC;IAEO,SAAS,CAAC,GAAW;QAC3B,6EAA6E;QAC7E,OAAO,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,GAAG,CAAC,CAAC;IAC5E,CAAC;;+GAzEU,iBAAiB;mGAAjB,iBAAiB,mJAoCd,sBAAsB,iFAGtB,4BAA4B,gDCtD5C,m6BAiCA;4FDlBa,iBAAiB;kBAL7B,SAAS;mBAAC;oBACT,QAAQ,EAAE,WAAW;oBACrB,SAAS,EAAE,CAAC,wBAAwB,CAAC;oBACrC,WAAW,EAAE,wBAAwB;iBACtC;6GAOY,SAAS;sBADnB,KAAK;gBAeC,SAAS;sBADf,KAAK;gBAkBE,QAAQ;sBADf,YAAY;uBAAC,sBAAsB;gBAI5B,cAAc;sBADrB,YAAY;uBAAC,4BAA4B","sourcesContent":["import { Component, ContentChild, Input, OnInit } from '@angular/core';\nimport { SkyLibResourcesService } from '@skyux/i18n';\n\nimport { SkyErrorDescriptionComponent } from './error-description.component';\nimport { SkyErrorTitleComponent } from './error-title.component';\nimport { SkyErrorType } from './error-type';\n\n/**\n * Displays a SKY UX-themed error message.\n */\n@Component({\n selector: 'sky-error',\n styleUrls: ['./error.component.scss'],\n templateUrl: './error.component.html',\n})\nexport class SkyErrorComponent implements OnInit {\n /**\n * Specifies an error type to use a set of pre-defined values for the image,\n * title, and description.\n */\n @Input()\n public set errorType(value: SkyErrorType) {\n this._errorType = value;\n this.setErrorTypeFields();\n }\n\n public get errorType() {\n return this._errorType;\n }\n\n /**\n * Indicates whether to display the error image.\n * @default true\n */\n @Input()\n public showImage = true;\n\n public title: string = undefined;\n public description: string = undefined;\n\n public get showTitle(): boolean {\n return this.title && !(this.titleCmp && this.titleCmp.replaceDefaultTitle);\n }\n\n public get showDescription(): boolean {\n return (\n this.description &&\n !(this.descriptionCmp && this.descriptionCmp.replaceDefaultDescription)\n );\n }\n\n @ContentChild(SkyErrorTitleComponent)\n private titleCmp: SkyErrorTitleComponent;\n\n @ContentChild(SkyErrorDescriptionComponent)\n private descriptionCmp: SkyErrorDescriptionComponent;\n\n private _errorType: SkyErrorType;\n\n constructor(private resourcesService: SkyLibResourcesService) {}\n\n public ngOnInit() {\n if (this.errorType) {\n this.setErrorTypeFields();\n }\n }\n\n public setErrorTypeFields() {\n if (this.errorType.toLowerCase() === 'broken') {\n this.title = this.getString('skyux_errors_broken_title');\n this.description = this.getString('skyux_errors_broken_description');\n } else if (this.errorType.toLowerCase() === 'notfound') {\n this.title = this.getString('skyux_errors_not_found_title');\n this.description = this.getString('skyux_errors_not_found_description');\n } else if (this.errorType.toLowerCase() === 'construction') {\n this.title = this.getString('skyux_errors_construction_title');\n this.description = this.getString(\n 'skyux_errors_construction_description'\n );\n } else if (this.errorType.toLowerCase() === 'security') {\n this.title = this.getString('skyux_errors_security_title');\n this.description = this.getString('skyux_errors_security_description');\n }\n }\n\n private getString(key: string): string {\n // TODO: Need to implement the async `getString` method in a breaking change.\n return this.resourcesService.getStringForLocale({ locale: 'en-US' }, key);\n }\n}\n","<div class=\"sky-error\">\n <div\n *ngIf=\"showImage\"\n class=\"sky-error-image-container sky-margin-stacked-lg\"\n >\n <div\n *ngIf=\"errorType\"\n class=\"sky-error-image-svg\"\n [ngClass]=\"['sky-error-' + errorType + '-image']\"\n ></div>\n <ng-content select=\"sky-error-image\"></ng-content>\n </div>\n\n <div class=\"sky-error-title sky-font-heading-1 sky-margin-stacked-lg\">\n <ng-container *ngIf=\"showTitle\">\n {{ title }}\n </ng-container>\n <ng-content select=\"sky-error-title\"></ng-content>\n </div>\n\n <div\n class=\"sky-error-description sky-font-body-default sky-margin-stacked-xl\"\n >\n <span *ngIf=\"showDescription\">\n {{ description }}\n </span>\n <ng-content select=\"sky-error-description\"></ng-content>\n </div>\n\n <div class=\"sky-error-action\">\n <ng-content select=\"sky-error-action\"></ng-content>\n </div>\n</div>\n"]}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * NOTICE: DO NOT MODIFY THIS FILE!
3
3
  * The contents of this file were automatically generated by
4
- * the 'ng generate @skyux/i18n:lib-resources-module modules/shared/sky-errors' schematic.
4
+ * the 'ng generate @skyux/i18n:lib-resources-module lib/modules/shared/sky-errors' schematic.
5
5
  * To update this file, simply rerun the command.
6
6
  */
7
7
  import { NgModule } from '@angular/core';
@@ -1 +1 @@
1
- {"version":3,"file":"sky-errors-resources.module.js","sourceRoot":"","sources":["../../../../../../../../libs/components/errors/src/lib/modules/shared/sky-errors-resources.module.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EACL,2BAA2B,EAE3B,aAAa,EAGb,qBAAqB,GACtB,MAAM,aAAa,CAAC;;AAErB,MAAM,SAAS,GAA0C;IACvD,OAAO,EAAE;QACP,+BAA+B,EAAE;YAC/B,OAAO,EAAE,sDAAsD;SAChE;QACD,yBAAyB,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE;QACvD,qCAAqC,EAAE;YACrC,OAAO,EAAE,0DAA0D;SACpE;QACD,+BAA+B,EAAE,EAAE,OAAO,EAAE,mBAAmB,EAAE;QACjE,kCAAkC,EAAE;YAClC,OAAO,EAAE,oDAAoD;SAC9D;QACD,4BAA4B,EAAE,EAAE,OAAO,EAAE,sBAAsB,EAAE;QACjE,iCAAiC,EAAE;YACjC,OAAO,EAAE,oCAAoC;SAC9C;QACD,2BAA2B,EAAE;YAC3B,OAAO,EAAE,yCAAyC;SACnD;KACF;CACF,CAAC;AAEF,MAAM,OAAO,0BAA0B;IAC9B,SAAS,CAAC,UAA4B,EAAE,IAAY;QACzD,OAAO,qBAAqB,CAAC,SAAS,EAAE,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;CACF;AAED;;GAEG;AAWH,MAAM,OAAO,wBAAwB;;sHAAxB,wBAAwB;uHAAxB,wBAAwB,YATzB,aAAa;uHASZ,wBAAwB,aARxB;QACT;YACE,OAAO,EAAE,2BAA2B;YACpC,QAAQ,EAAE,0BAA0B;YACpC,KAAK,EAAE,IAAI;SACZ;KACF,YAPS,aAAa;4FASZ,wBAAwB;kBAVpC,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAC,aAAa,CAAC;oBACxB,SAAS,EAAE;wBACT;4BACE,OAAO,EAAE,2BAA2B;4BACpC,QAAQ,EAAE,0BAA0B;4BACpC,KAAK,EAAE,IAAI;yBACZ;qBACF;iBACF","sourcesContent":["/**\n * NOTICE: DO NOT MODIFY THIS FILE!\n * The contents of this file were automatically generated by\n * the 'ng generate @skyux/i18n:lib-resources-module modules/shared/sky-errors' schematic.\n * To update this file, simply rerun the command.\n */\nimport { NgModule } from '@angular/core';\nimport {\n SKY_LIB_RESOURCES_PROVIDERS,\n SkyAppLocaleInfo,\n SkyI18nModule,\n SkyLibResources,\n SkyLibResourcesProvider,\n getLibStringForLocale,\n} from '@skyux/i18n';\n\nconst RESOURCES: { [locale: string]: SkyLibResources } = {\n 'EN-US': {\n skyux_errors_broken_description: {\n message: 'Something went wrong.\\nTry again or come back later.',\n },\n skyux_errors_broken_title: { message: \"That's odd...\" },\n skyux_errors_construction_description: {\n message: 'We appreciate your patience while we\\nmake improvements.',\n },\n skyux_errors_construction_title: { message: 'Work in progress.' },\n skyux_errors_not_found_description: {\n message: 'Pardon us, but this page\\nis missing or has moved.',\n },\n skyux_errors_not_found_title: { message: 'Nothing to see here.' },\n skyux_errors_security_description: {\n message: 'Ask your administrator for access.',\n },\n skyux_errors_security_title: {\n message: \"Heads up!\\nYou're in a restricted area.\",\n },\n },\n};\n\nexport class SkyErrorsResourcesProvider implements SkyLibResourcesProvider {\n public getString(localeInfo: SkyAppLocaleInfo, name: string): string {\n return getLibStringForLocale(RESOURCES, localeInfo.locale, name);\n }\n}\n\n/**\n * Import into any component library module that needs to use resource strings.\n */\n@NgModule({\n exports: [SkyI18nModule],\n providers: [\n {\n provide: SKY_LIB_RESOURCES_PROVIDERS,\n useClass: SkyErrorsResourcesProvider,\n multi: true,\n },\n ],\n})\nexport class SkyErrorsResourcesModule {}\n"]}
1
+ {"version":3,"file":"sky-errors-resources.module.js","sourceRoot":"","sources":["../../../../../../../../libs/components/errors/src/lib/modules/shared/sky-errors-resources.module.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EACL,2BAA2B,EAE3B,aAAa,EAGb,qBAAqB,GACtB,MAAM,aAAa,CAAC;;AAErB,MAAM,SAAS,GAA0C;IACvD,OAAO,EAAE;QACP,+BAA+B,EAAE;YAC/B,OAAO,EAAE,sDAAsD;SAChE;QACD,yBAAyB,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE;QACvD,qCAAqC,EAAE;YACrC,OAAO,EAAE,0DAA0D;SACpE;QACD,+BAA+B,EAAE,EAAE,OAAO,EAAE,mBAAmB,EAAE;QACjE,kCAAkC,EAAE;YAClC,OAAO,EAAE,oDAAoD;SAC9D;QACD,4BAA4B,EAAE,EAAE,OAAO,EAAE,sBAAsB,EAAE;QACjE,iCAAiC,EAAE;YACjC,OAAO,EAAE,oCAAoC;SAC9C;QACD,2BAA2B,EAAE;YAC3B,OAAO,EAAE,yCAAyC;SACnD;KACF;CACF,CAAC;AAEF,MAAM,OAAO,0BAA0B;IAC9B,SAAS,CACd,UAA4B,EAC5B,IAAY;QAEZ,OAAO,qBAAqB,CAAC,SAAS,EAAE,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;CACF;AAED;;GAEG;AAWH,MAAM,OAAO,wBAAwB;;sHAAxB,wBAAwB;uHAAxB,wBAAwB,YATzB,aAAa;uHASZ,wBAAwB,aARxB;QACT;YACE,OAAO,EAAE,2BAA2B;YACpC,QAAQ,EAAE,0BAA0B;YACpC,KAAK,EAAE,IAAI;SACZ;KACF,YAPS,aAAa;4FASZ,wBAAwB;kBAVpC,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAC,aAAa,CAAC;oBACxB,SAAS,EAAE;wBACT;4BACE,OAAO,EAAE,2BAA2B;4BACpC,QAAQ,EAAE,0BAA0B;4BACpC,KAAK,EAAE,IAAI;yBACZ;qBACF;iBACF","sourcesContent":["/**\n * NOTICE: DO NOT MODIFY THIS FILE!\n * The contents of this file were automatically generated by\n * the 'ng generate @skyux/i18n:lib-resources-module lib/modules/shared/sky-errors' schematic.\n * To update this file, simply rerun the command.\n */\nimport { NgModule } from '@angular/core';\nimport {\n SKY_LIB_RESOURCES_PROVIDERS,\n SkyAppLocaleInfo,\n SkyI18nModule,\n SkyLibResources,\n SkyLibResourcesProvider,\n getLibStringForLocale,\n} from '@skyux/i18n';\n\nconst RESOURCES: { [locale: string]: SkyLibResources } = {\n 'EN-US': {\n skyux_errors_broken_description: {\n message: 'Something went wrong.\\nTry again or come back later.',\n },\n skyux_errors_broken_title: { message: \"That's odd...\" },\n skyux_errors_construction_description: {\n message: 'We appreciate your patience while we\\nmake improvements.',\n },\n skyux_errors_construction_title: { message: 'Work in progress.' },\n skyux_errors_not_found_description: {\n message: 'Pardon us, but this page\\nis missing or has moved.',\n },\n skyux_errors_not_found_title: { message: 'Nothing to see here.' },\n skyux_errors_security_description: {\n message: 'Ask your administrator for access.',\n },\n skyux_errors_security_title: {\n message: \"Heads up!\\nYou're in a restricted area.\",\n },\n },\n};\n\nexport class SkyErrorsResourcesProvider implements SkyLibResourcesProvider {\n public getString(\n localeInfo: SkyAppLocaleInfo,\n name: string\n ): string | undefined {\n return getLibStringForLocale(RESOURCES, localeInfo.locale, name);\n }\n}\n\n/**\n * Import into any component library module that needs to use resource strings.\n */\n@NgModule({\n exports: [SkyI18nModule],\n providers: [\n {\n provide: SKY_LIB_RESOURCES_PROVIDERS,\n useClass: SkyErrorsResourcesProvider,\n multi: true,\n },\n ],\n})\nexport class SkyErrorsResourcesModule {}\n"]}
@@ -61,7 +61,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
61
61
  /**
62
62
  * NOTICE: DO NOT MODIFY THIS FILE!
63
63
  * The contents of this file were automatically generated by
64
- * the 'ng generate @skyux/i18n:lib-resources-module modules/shared/sky-errors' schematic.
64
+ * the 'ng generate @skyux/i18n:lib-resources-module lib/modules/shared/sky-errors' schematic.
65
65
  * To update this file, simply rerun the command.
66
66
  */
67
67
  const RESOURCES = {
@@ -216,8 +216,7 @@ class SkyErrorComponent {
216
216
  }
217
217
  /**
218
218
  * Specifies an error type to use a set of pre-defined values for the image,
219
- * title, and description. The valid options are `"broken"`, `"construction"`,
220
- * `"notfound"`, and `"security"`.
219
+ * title, and description.
221
220
  */
222
221
  set errorType(value) {
223
222
  this._errorType = value;
@@ -1 +1 @@
1
- {"version":3,"file":"skyux-errors.js","sources":["../../../../../libs/components/errors/src/lib/modules/error/error-modal-config.ts","../../../../../libs/components/errors/src/lib/modules/error/error-modal-form.component.ts","../../../../../libs/components/errors/src/lib/modules/error/error-modal-form.component.html","../../../../../libs/components/errors/src/lib/modules/error/error-modal.service.ts","../../../../../libs/components/errors/src/lib/modules/shared/sky-errors-resources.module.ts","../../../../../libs/components/errors/src/lib/modules/error/error-action.component.ts","../../../../../libs/components/errors/src/lib/modules/error/error-description.component.ts","../../../../../libs/components/errors/src/lib/modules/error/error-image.component.ts","../../../../../libs/components/errors/src/lib/modules/error/error-title.component.ts","../../../../../libs/components/errors/src/lib/modules/error/error.component.ts","../../../../../libs/components/errors/src/lib/modules/error/error.component.html","../../../../../libs/components/errors/src/lib/modules/error/error.module.ts","../../../../../libs/components/errors/src/skyux-errors.ts"],"sourcesContent":["/* istanbul ignore next */\nexport class ErrorModalConfig {\n /**\n * Specifies a title to display in the modal error message.\n * @required\n */\n public errorTitle: string;\n /**\n * Specifies a description to provide additional details in the modal error message.\n * @required\n */\n public errorDescription: string;\n /**\n * Specifies a label for the action button that closes the modal error message.\n * @required\n */\n public errorCloseText: string;\n}\n","import { Component } from '@angular/core';\nimport { SkyModalInstance } from '@skyux/modals';\n\nimport { ErrorModalConfig } from './error-modal-config';\n\n/**\n * @internal\n */\n@Component({\n selector: 'sky-error-modal-form',\n templateUrl: './error-modal-form.component.html',\n styleUrls: ['./error-modal-form.component.scss'],\n})\nexport class SkyErrorModalFormComponent {\n constructor(\n public context: ErrorModalConfig,\n public instance: SkyModalInstance\n ) {}\n}\n","<sky-modal>\n <sky-modal-content>\n <div class=\"sky-error-modal-container\">\n <span class=\"sky-error-modal-title\">{{ context.errorTitle }}</span>\n <span class=\"sky-error-modal-description\">{{\n context.errorDescription\n }}</span>\n <div class=\"sky-error-modal-close\">\n <button\n type=\"button\"\n class=\"sky-btn sky-btn-primary\"\n (click)=\"instance.close()\"\n >\n {{ context.errorCloseText }}\n </button>\n </div>\n </div>\n </sky-modal-content>\n</sky-modal>\n","import { Injectable } from '@angular/core';\nimport { SkyModalService } from '@skyux/modals';\n\nimport { ErrorModalConfig } from './error-modal-config';\nimport { SkyErrorModalFormComponent } from './error-modal-form.component';\n\n/**\n * Opens a modal to display a SKY UX-themed error message.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class SkyErrorModalService {\n constructor(private modal: SkyModalService) {}\n /**\n * Specifies text for the the error message, including title, description, and action label.\n */\n public open(config: ErrorModalConfig) {\n const providers = [{ provide: ErrorModalConfig, useValue: config }];\n\n this.modal.open(SkyErrorModalFormComponent, {\n ariaRole: 'alertdialog',\n providers: providers,\n });\n }\n}\n","/**\n * NOTICE: DO NOT MODIFY THIS FILE!\n * The contents of this file were automatically generated by\n * the 'ng generate @skyux/i18n:lib-resources-module modules/shared/sky-errors' schematic.\n * To update this file, simply rerun the command.\n */\nimport { NgModule } from '@angular/core';\nimport {\n SKY_LIB_RESOURCES_PROVIDERS,\n SkyAppLocaleInfo,\n SkyI18nModule,\n SkyLibResources,\n SkyLibResourcesProvider,\n getLibStringForLocale,\n} from '@skyux/i18n';\n\nconst RESOURCES: { [locale: string]: SkyLibResources } = {\n 'EN-US': {\n skyux_errors_broken_description: {\n message: 'Something went wrong.\\nTry again or come back later.',\n },\n skyux_errors_broken_title: { message: \"That's odd...\" },\n skyux_errors_construction_description: {\n message: 'We appreciate your patience while we\\nmake improvements.',\n },\n skyux_errors_construction_title: { message: 'Work in progress.' },\n skyux_errors_not_found_description: {\n message: 'Pardon us, but this page\\nis missing or has moved.',\n },\n skyux_errors_not_found_title: { message: 'Nothing to see here.' },\n skyux_errors_security_description: {\n message: 'Ask your administrator for access.',\n },\n skyux_errors_security_title: {\n message: \"Heads up!\\nYou're in a restricted area.\",\n },\n },\n};\n\nexport class SkyErrorsResourcesProvider implements SkyLibResourcesProvider {\n public getString(localeInfo: SkyAppLocaleInfo, name: string): string {\n return getLibStringForLocale(RESOURCES, localeInfo.locale, name);\n }\n}\n\n/**\n * Import into any component library module that needs to use resource strings.\n */\n@NgModule({\n exports: [SkyI18nModule],\n providers: [\n {\n provide: SKY_LIB_RESOURCES_PROVIDERS,\n useClass: SkyErrorsResourcesProvider,\n multi: true,\n },\n ],\n})\nexport class SkyErrorsResourcesModule {}\n","import { Component } from '@angular/core';\n\n/**\n * Specifies an action to include in the error message.\n * For example, you can include a button to reload the page or to refresh data.\n */\n@Component({\n selector: 'sky-error-action',\n template: '<ng-content></ng-content>',\n})\nexport class SkyErrorActionComponent {}\n","import { Component, Input } from '@angular/core';\n\n/**\n * Specifies a description to provide additional details in the error message.\n */\n@Component({\n selector: 'sky-error-description',\n template: '<ng-content></ng-content>',\n})\nexport class SkyErrorDescriptionComponent {\n /**\n * Indicates whether to replace the default description. If `false`, the description\n * from this component is added after the default description.\n * @default false\n */\n @Input()\n public replaceDefaultDescription = false;\n}\n","import { Component } from '@angular/core';\n\n/**\n * Specifies an image to display in the error message.\n */\n@Component({\n selector: 'sky-error-image',\n template: '<ng-content></ng-content>',\n})\nexport class SkyErrorImageComponent {}\n","import { Component, Input } from '@angular/core';\n\n/**\n * Specifies a title to display in the error message.\n */\n@Component({\n selector: 'sky-error-title',\n template: '<ng-content></ng-content>',\n})\nexport class SkyErrorTitleComponent {\n /**\n * Indicates whether to replace the default title. If `false`, the title\n * from this component is added after the default title.\n * @default false\n */\n @Input()\n public replaceDefaultTitle = false;\n}\n","import { Component, ContentChild, Input, OnInit } from '@angular/core';\nimport { SkyLibResourcesService } from '@skyux/i18n';\n\nimport { SkyErrorDescriptionComponent } from './error-description.component';\nimport { SkyErrorTitleComponent } from './error-title.component';\nimport { SkyErrorType } from './error-type';\n\n/**\n * Displays a SKY UX-themed error message.\n */\n@Component({\n selector: 'sky-error',\n styleUrls: ['./error.component.scss'],\n templateUrl: './error.component.html',\n})\nexport class SkyErrorComponent implements OnInit {\n /**\n * Specifies an error type to use a set of pre-defined values for the image,\n * title, and description. The valid options are `\"broken\"`, `\"construction\"`,\n * `\"notfound\"`, and `\"security\"`.\n */\n @Input()\n public set errorType(value: SkyErrorType) {\n this._errorType = value;\n this.setErrorTypeFields();\n }\n\n public get errorType() {\n return this._errorType;\n }\n\n /**\n * Indicates whether to display the error image.\n * @default true\n */\n @Input()\n public showImage = true;\n\n public title: string = undefined;\n public description: string = undefined;\n\n public get showTitle(): boolean {\n return this.title && !(this.titleCmp && this.titleCmp.replaceDefaultTitle);\n }\n\n public get showDescription(): boolean {\n return (\n this.description &&\n !(this.descriptionCmp && this.descriptionCmp.replaceDefaultDescription)\n );\n }\n\n @ContentChild(SkyErrorTitleComponent)\n private titleCmp: SkyErrorTitleComponent;\n\n @ContentChild(SkyErrorDescriptionComponent)\n private descriptionCmp: SkyErrorDescriptionComponent;\n\n private _errorType: SkyErrorType;\n\n constructor(private resourcesService: SkyLibResourcesService) {}\n\n public ngOnInit() {\n if (this.errorType) {\n this.setErrorTypeFields();\n }\n }\n\n public setErrorTypeFields() {\n if (this.errorType.toLowerCase() === 'broken') {\n this.title = this.getString('skyux_errors_broken_title');\n this.description = this.getString('skyux_errors_broken_description');\n } else if (this.errorType.toLowerCase() === 'notfound') {\n this.title = this.getString('skyux_errors_not_found_title');\n this.description = this.getString('skyux_errors_not_found_description');\n } else if (this.errorType.toLowerCase() === 'construction') {\n this.title = this.getString('skyux_errors_construction_title');\n this.description = this.getString(\n 'skyux_errors_construction_description'\n );\n } else if (this.errorType.toLowerCase() === 'security') {\n this.title = this.getString('skyux_errors_security_title');\n this.description = this.getString('skyux_errors_security_description');\n }\n }\n\n private getString(key: string): string {\n // TODO: Need to implement the async `getString` method in a breaking change.\n return this.resourcesService.getStringForLocale({ locale: 'en-US' }, key);\n }\n}\n","<div class=\"sky-error\">\n <div\n *ngIf=\"showImage\"\n class=\"sky-error-image-container sky-margin-stacked-lg\"\n >\n <div\n *ngIf=\"errorType\"\n class=\"sky-error-image-svg\"\n [ngClass]=\"['sky-error-' + errorType + '-image']\"\n ></div>\n <ng-content select=\"sky-error-image\"></ng-content>\n </div>\n\n <div class=\"sky-error-title sky-font-heading-1 sky-margin-stacked-lg\">\n <ng-container *ngIf=\"showTitle\">\n {{ title }}\n </ng-container>\n <ng-content select=\"sky-error-title\"></ng-content>\n </div>\n\n <div\n class=\"sky-error-description sky-font-body-default sky-margin-stacked-xl\"\n >\n <span *ngIf=\"showDescription\">\n {{ description }}\n </span>\n <ng-content select=\"sky-error-description\"></ng-content>\n </div>\n\n <div class=\"sky-error-action\">\n <ng-content select=\"sky-error-action\"></ng-content>\n </div>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { SkyModalModule } from '@skyux/modals';\n\nimport { SkyErrorsResourcesModule } from '../shared/sky-errors-resources.module';\n\nimport { SkyErrorActionComponent } from './error-action.component';\nimport { SkyErrorDescriptionComponent } from './error-description.component';\nimport { SkyErrorImageComponent } from './error-image.component';\nimport { SkyErrorModalFormComponent } from './error-modal-form.component';\nimport { SkyErrorTitleComponent } from './error-title.component';\nimport { SkyErrorComponent } from './error.component';\n\n@NgModule({\n declarations: [\n SkyErrorComponent,\n SkyErrorImageComponent,\n SkyErrorTitleComponent,\n SkyErrorDescriptionComponent,\n SkyErrorActionComponent,\n SkyErrorModalFormComponent,\n ],\n imports: [CommonModule, SkyErrorsResourcesModule, SkyModalModule],\n exports: [\n SkyErrorComponent,\n SkyErrorImageComponent,\n SkyErrorTitleComponent,\n SkyErrorDescriptionComponent,\n SkyErrorActionComponent,\n ],\n entryComponents: [SkyErrorModalFormComponent],\n})\nexport class SkyErrorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAAA;MACa,gBAAgB;;;ACI7B;;;MAQa,0BAA0B;IACrC,YACS,OAAyB,EACzB,QAA0B;QAD1B,YAAO,GAAP,OAAO,CAAkB;QACzB,aAAQ,GAAR,QAAQ,CAAkB;KAC/B;;wHAJO,0BAA0B;4GAA1B,0BAA0B,4DCbvC,+jBAmBA;4FDNa,0BAA0B;kBALtC,SAAS;mBAAC;oBACT,QAAQ,EAAE,sBAAsB;oBAChC,WAAW,EAAE,mCAAmC;oBAChD,SAAS,EAAE,CAAC,mCAAmC,CAAC;iBACjD;;;AEND;;;MAMa,oBAAoB;IAC/B,YAAoB,KAAsB;QAAtB,UAAK,GAAL,KAAK,CAAiB;KAAI;;;;IAIvC,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;YA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AAC,0BAA0B,CAAC;iBAC9C;;;AC/BD;;;;;;"}
1
+ {"version":3,"file":"skyux-errors.js","sources":["../../../../../libs/components/errors/src/lib/modules/error/error-modal-config.ts","../../../../../libs/components/errors/src/lib/modules/error/error-modal-form.component.ts","../../../../../libs/components/errors/src/lib/modules/error/error-modal-form.component.html","../../../../../libs/components/errors/src/lib/modules/error/error-modal.service.ts","../../../../../libs/components/errors/src/lib/modules/shared/sky-errors-resources.module.ts","../../../../../libs/components/errors/src/lib/modules/error/error-action.component.ts","../../../../../libs/components/errors/src/lib/modules/error/error-description.component.ts","../../../../../libs/components/errors/src/lib/modules/error/error-image.component.ts","../../../../../libs/components/errors/src/lib/modules/error/error-title.component.ts","../../../../../libs/components/errors/src/lib/modules/error/error.component.ts","../../../../../libs/components/errors/src/lib/modules/error/error.component.html","../../../../../libs/components/errors/src/lib/modules/error/error.module.ts","../../../../../libs/components/errors/src/skyux-errors.ts"],"sourcesContent":["/* istanbul ignore next */\nexport class ErrorModalConfig {\n /**\n * Specifies a title to display in the modal error message.\n * @required\n */\n public errorTitle: string;\n /**\n * Specifies a description to provide additional details in the modal error message.\n * @required\n */\n public errorDescription: string;\n /**\n * Specifies a label for the action button that closes the modal error message.\n * @required\n */\n public errorCloseText: string;\n}\n","import { Component } from '@angular/core';\nimport { SkyModalInstance } from '@skyux/modals';\n\nimport { ErrorModalConfig } from './error-modal-config';\n\n/**\n * @internal\n */\n@Component({\n selector: 'sky-error-modal-form',\n templateUrl: './error-modal-form.component.html',\n styleUrls: ['./error-modal-form.component.scss'],\n})\nexport class SkyErrorModalFormComponent {\n constructor(\n public context: ErrorModalConfig,\n public instance: SkyModalInstance\n ) {}\n}\n","<sky-modal>\n <sky-modal-content>\n <div class=\"sky-error-modal-container\">\n <span class=\"sky-error-modal-title\">{{ context.errorTitle }}</span>\n <span class=\"sky-error-modal-description\">{{\n context.errorDescription\n }}</span>\n <div class=\"sky-error-modal-close\">\n <button\n type=\"button\"\n class=\"sky-btn sky-btn-primary\"\n (click)=\"instance.close()\"\n >\n {{ context.errorCloseText }}\n </button>\n </div>\n </div>\n </sky-modal-content>\n</sky-modal>\n","import { Injectable } from '@angular/core';\nimport { SkyModalService } from '@skyux/modals';\n\nimport { ErrorModalConfig } from './error-modal-config';\nimport { SkyErrorModalFormComponent } from './error-modal-form.component';\n\n/**\n * Opens a modal to display a SKY UX-themed error message.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class SkyErrorModalService {\n constructor(private modal: SkyModalService) {}\n /**\n * Specifies text for the the error message, including title, description, and action label.\n */\n public open(config: ErrorModalConfig) {\n const providers = [{ provide: ErrorModalConfig, useValue: config }];\n\n this.modal.open(SkyErrorModalFormComponent, {\n ariaRole: 'alertdialog',\n providers: providers,\n });\n }\n}\n","/**\n * NOTICE: DO NOT MODIFY THIS FILE!\n * The contents of this file were automatically generated by\n * the 'ng generate @skyux/i18n:lib-resources-module lib/modules/shared/sky-errors' schematic.\n * To update this file, simply rerun the command.\n */\nimport { NgModule } from '@angular/core';\nimport {\n SKY_LIB_RESOURCES_PROVIDERS,\n SkyAppLocaleInfo,\n SkyI18nModule,\n SkyLibResources,\n SkyLibResourcesProvider,\n getLibStringForLocale,\n} from '@skyux/i18n';\n\nconst RESOURCES: { [locale: string]: SkyLibResources } = {\n 'EN-US': {\n skyux_errors_broken_description: {\n message: 'Something went wrong.\\nTry again or come back later.',\n },\n skyux_errors_broken_title: { message: \"That's odd...\" },\n skyux_errors_construction_description: {\n message: 'We appreciate your patience while we\\nmake improvements.',\n },\n skyux_errors_construction_title: { message: 'Work in progress.' },\n skyux_errors_not_found_description: {\n message: 'Pardon us, but this page\\nis missing or has moved.',\n },\n skyux_errors_not_found_title: { message: 'Nothing to see here.' },\n skyux_errors_security_description: {\n message: 'Ask your administrator for access.',\n },\n skyux_errors_security_title: {\n message: \"Heads up!\\nYou're in a restricted area.\",\n },\n },\n};\n\nexport class SkyErrorsResourcesProvider implements SkyLibResourcesProvider {\n public getString(\n localeInfo: SkyAppLocaleInfo,\n name: string\n ): string | undefined {\n return getLibStringForLocale(RESOURCES, localeInfo.locale, name);\n }\n}\n\n/**\n * Import into any component library module that needs to use resource strings.\n */\n@NgModule({\n exports: [SkyI18nModule],\n providers: [\n {\n provide: SKY_LIB_RESOURCES_PROVIDERS,\n useClass: SkyErrorsResourcesProvider,\n multi: true,\n },\n ],\n})\nexport class SkyErrorsResourcesModule {}\n","import { Component } from '@angular/core';\n\n/**\n * Specifies an action to include in the error message.\n * For example, you can include a button to reload the page or to refresh data.\n */\n@Component({\n selector: 'sky-error-action',\n template: '<ng-content></ng-content>',\n})\nexport class SkyErrorActionComponent {}\n","import { Component, Input } from '@angular/core';\n\n/**\n * Specifies a description to provide additional details in the error message.\n */\n@Component({\n selector: 'sky-error-description',\n template: '<ng-content></ng-content>',\n})\nexport class SkyErrorDescriptionComponent {\n /**\n * Indicates whether to replace the default description. If `false`, the description\n * from this component is added after the default description.\n * @default false\n */\n @Input()\n public replaceDefaultDescription = false;\n}\n","import { Component } from '@angular/core';\n\n/**\n * Specifies an image to display in the error message.\n */\n@Component({\n selector: 'sky-error-image',\n template: '<ng-content></ng-content>',\n})\nexport class SkyErrorImageComponent {}\n","import { Component, Input } from '@angular/core';\n\n/**\n * Specifies a title to display in the error message.\n */\n@Component({\n selector: 'sky-error-title',\n template: '<ng-content></ng-content>',\n})\nexport class SkyErrorTitleComponent {\n /**\n * Indicates whether to replace the default title. If `false`, the title\n * from this component is added after the default title.\n * @default false\n */\n @Input()\n public replaceDefaultTitle = false;\n}\n","import { Component, ContentChild, Input, OnInit } from '@angular/core';\nimport { SkyLibResourcesService } from '@skyux/i18n';\n\nimport { SkyErrorDescriptionComponent } from './error-description.component';\nimport { SkyErrorTitleComponent } from './error-title.component';\nimport { SkyErrorType } from './error-type';\n\n/**\n * Displays a SKY UX-themed error message.\n */\n@Component({\n selector: 'sky-error',\n styleUrls: ['./error.component.scss'],\n templateUrl: './error.component.html',\n})\nexport class SkyErrorComponent implements OnInit {\n /**\n * Specifies an error type to use a set of pre-defined values for the image,\n * title, and description.\n */\n @Input()\n public set errorType(value: SkyErrorType) {\n this._errorType = value;\n this.setErrorTypeFields();\n }\n\n public get errorType() {\n return this._errorType;\n }\n\n /**\n * Indicates whether to display the error image.\n * @default true\n */\n @Input()\n public showImage = true;\n\n public title: string = undefined;\n public description: string = undefined;\n\n public get showTitle(): boolean {\n return this.title && !(this.titleCmp && this.titleCmp.replaceDefaultTitle);\n }\n\n public get showDescription(): boolean {\n return (\n this.description &&\n !(this.descriptionCmp && this.descriptionCmp.replaceDefaultDescription)\n );\n }\n\n @ContentChild(SkyErrorTitleComponent)\n private titleCmp: SkyErrorTitleComponent;\n\n @ContentChild(SkyErrorDescriptionComponent)\n private descriptionCmp: SkyErrorDescriptionComponent;\n\n private _errorType: SkyErrorType;\n\n constructor(private resourcesService: SkyLibResourcesService) {}\n\n public ngOnInit() {\n if (this.errorType) {\n this.setErrorTypeFields();\n }\n }\n\n public setErrorTypeFields() {\n if (this.errorType.toLowerCase() === 'broken') {\n this.title = this.getString('skyux_errors_broken_title');\n this.description = this.getString('skyux_errors_broken_description');\n } else if (this.errorType.toLowerCase() === 'notfound') {\n this.title = this.getString('skyux_errors_not_found_title');\n this.description = this.getString('skyux_errors_not_found_description');\n } else if (this.errorType.toLowerCase() === 'construction') {\n this.title = this.getString('skyux_errors_construction_title');\n this.description = this.getString(\n 'skyux_errors_construction_description'\n );\n } else if (this.errorType.toLowerCase() === 'security') {\n this.title = this.getString('skyux_errors_security_title');\n this.description = this.getString('skyux_errors_security_description');\n }\n }\n\n private getString(key: string): string {\n // TODO: Need to implement the async `getString` method in a breaking change.\n return this.resourcesService.getStringForLocale({ locale: 'en-US' }, key);\n }\n}\n","<div class=\"sky-error\">\n <div\n *ngIf=\"showImage\"\n class=\"sky-error-image-container sky-margin-stacked-lg\"\n >\n <div\n *ngIf=\"errorType\"\n class=\"sky-error-image-svg\"\n [ngClass]=\"['sky-error-' + errorType + '-image']\"\n ></div>\n <ng-content select=\"sky-error-image\"></ng-content>\n </div>\n\n <div class=\"sky-error-title sky-font-heading-1 sky-margin-stacked-lg\">\n <ng-container *ngIf=\"showTitle\">\n {{ title }}\n </ng-container>\n <ng-content select=\"sky-error-title\"></ng-content>\n </div>\n\n <div\n class=\"sky-error-description sky-font-body-default sky-margin-stacked-xl\"\n >\n <span *ngIf=\"showDescription\">\n {{ description }}\n </span>\n <ng-content select=\"sky-error-description\"></ng-content>\n </div>\n\n <div class=\"sky-error-action\">\n <ng-content select=\"sky-error-action\"></ng-content>\n </div>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { SkyModalModule } from '@skyux/modals';\n\nimport { SkyErrorsResourcesModule } from '../shared/sky-errors-resources.module';\n\nimport { SkyErrorActionComponent } from './error-action.component';\nimport { SkyErrorDescriptionComponent } from './error-description.component';\nimport { SkyErrorImageComponent } from './error-image.component';\nimport { SkyErrorModalFormComponent } from './error-modal-form.component';\nimport { SkyErrorTitleComponent } from './error-title.component';\nimport { SkyErrorComponent } from './error.component';\n\n@NgModule({\n declarations: [\n SkyErrorComponent,\n SkyErrorImageComponent,\n SkyErrorTitleComponent,\n SkyErrorDescriptionComponent,\n SkyErrorActionComponent,\n SkyErrorModalFormComponent,\n ],\n imports: [CommonModule, SkyErrorsResourcesModule, SkyModalModule],\n exports: [\n SkyErrorComponent,\n SkyErrorImageComponent,\n SkyErrorTitleComponent,\n SkyErrorDescriptionComponent,\n SkyErrorActionComponent,\n ],\n entryComponents: [SkyErrorModalFormComponent],\n})\nexport class SkyErrorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAAA;MACa,gBAAgB;;;ACI7B;;;MAQa,0BAA0B;IACrC,YACS,OAAyB,EACzB,QAA0B;QAD1B,YAAO,GAAP,OAAO,CAAkB;QACzB,aAAQ,GAAR,QAAQ,CAAkB;KAC/B;;wHAJO,0BAA0B;4GAA1B,0BAA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4BAA4B;QAC5B,uBAAuB;6GAId,cAAc,YAVhB,CAAC,YAAY,EAAE,wBAAwB,EAAE,cAAc,CAAC;4FAUtD,cAAc;kBAnB1B,QAAQ;mBAAC;oBACR,YAAY,EAAE;wBACZ,iBAAiB;wBACjB,sBAAsB;wBACtB,sBAAsB;wBACtB,4BAA4B;wBAC5B,uBAAuB;wBACvB,0BAA0B;qBAC3B;oBACD,OAAO,EAAE,CAAC,YAAY,EAAE,wBAAwB,EAAE,cAAc,CAAC;oBACjE,OAAO,EAAE;wBACP,iBAAiB;wBACjB,sBAAsB;wBACtB,sBAAsB;wBACtB,4BAA4B;wBAC5B,uBAAuB;qBACxB;oBACD,eAAe,EAAE,CAAC,0BAA0B,CAAC;iBAC9C;;;AC/BD;;;;;;"}
@@ -9,8 +9,7 @@ export declare class SkyErrorComponent implements OnInit {
9
9
  private resourcesService;
10
10
  /**
11
11
  * Specifies an error type to use a set of pre-defined values for the image,
12
- * title, and description. The valid options are `"broken"`, `"construction"`,
13
- * `"notfound"`, and `"security"`.
12
+ * title, and description.
14
13
  */
15
14
  set errorType(value: SkyErrorType);
16
15
  get errorType(): SkyErrorType;
@@ -2,7 +2,7 @@ import { SkyAppLocaleInfo, SkyLibResourcesProvider } from '@skyux/i18n';
2
2
  import * as i0 from "@angular/core";
3
3
  import * as i1 from "@skyux/i18n";
4
4
  export declare class SkyErrorsResourcesProvider implements SkyLibResourcesProvider {
5
- getString(localeInfo: SkyAppLocaleInfo, name: string): string;
5
+ getString(localeInfo: SkyAppLocaleInfo, name: string): string | undefined;
6
6
  }
7
7
  /**
8
8
  * Import into any component library module that needs to use resource strings.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/errors",
3
- "version": "5.6.1",
3
+ "version": "5.7.1",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -19,9 +19,9 @@
19
19
  "@angular/common": "^12.2.16",
20
20
  "@angular/core": "^12.2.16",
21
21
  "@angular/platform-browser": "^12.2.16",
22
- "@skyux-sdk/testing": "5.6.1",
23
- "@skyux/i18n": "5.6.1",
24
- "@skyux/modals": "5.6.1"
22
+ "@skyux-sdk/testing": "5.7.1",
23
+ "@skyux/i18n": "5.7.1",
24
+ "@skyux/modals": "5.7.1"
25
25
  },
26
26
  "dependencies": {
27
27
  "tslib": "^2.3.1"