@skyux/errors 5.0.1 → 5.5.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 (67) hide show
  1. package/README.md +6 -4
  2. package/bundles/skyux-errors.umd.js +31 -31
  3. package/documentation.json +30 -11
  4. package/esm2015/index.js +12 -0
  5. package/esm2015/index.js.map +1 -0
  6. package/esm2015/lib/modules/error/error-action.component.js +18 -0
  7. package/esm2015/lib/modules/error/error-action.component.js.map +1 -0
  8. package/esm2015/lib/modules/error/error-description.component.js +27 -0
  9. package/esm2015/lib/modules/error/error-description.component.js.map +1 -0
  10. package/esm2015/lib/modules/error/error-image.component.js +17 -0
  11. package/esm2015/lib/modules/error/error-image.component.js.map +1 -0
  12. package/esm2015/lib/modules/error/error-modal-config.js +4 -0
  13. package/esm2015/lib/modules/error/error-modal-config.js.map +1 -0
  14. package/esm2015/lib/modules/error/error-modal-form.component.js +26 -0
  15. package/esm2015/lib/modules/error/error-modal-form.component.js.map +1 -0
  16. package/esm2015/lib/modules/error/error-modal.service.js +33 -0
  17. package/esm2015/lib/modules/error/error-modal.service.js.map +1 -0
  18. package/esm2015/lib/modules/error/error-title.component.js +27 -0
  19. package/esm2015/lib/modules/error/error-title.component.js.map +1 -0
  20. package/esm2015/lib/modules/error/error-type.js +2 -0
  21. package/esm2015/lib/modules/error/error-type.js.map +1 -0
  22. package/esm2015/{modules → lib/modules}/error/error.component.js +7 -6
  23. package/esm2015/lib/modules/error/error.component.js.map +1 -0
  24. package/esm2015/lib/modules/error/error.module.js +48 -0
  25. package/esm2015/lib/modules/error/error.module.js.map +1 -0
  26. package/esm2015/lib/modules/shared/sky-errors-resources.module.js +64 -0
  27. package/esm2015/lib/modules/shared/sky-errors-resources.module.js.map +1 -0
  28. package/esm2015/skyux-errors.js +2 -2
  29. package/esm2015/skyux-errors.js.map +1 -0
  30. package/esm2015/testing/error-fixture.js +1 -1
  31. package/esm2015/testing/error-fixture.js.map +1 -0
  32. package/esm2015/testing/public-api.js +1 -1
  33. package/esm2015/testing/public-api.js.map +1 -0
  34. package/esm2015/testing/skyux-errors-testing.js +1 -1
  35. package/esm2015/testing/skyux-errors-testing.js.map +1 -0
  36. package/fesm2015/skyux-errors-testing.js.map +1 -1
  37. package/fesm2015/skyux-errors.js +31 -31
  38. package/fesm2015/skyux-errors.js.map +1 -1
  39. package/index.d.ts +9 -0
  40. package/{modules → lib/modules}/error/error-action.component.d.ts +0 -0
  41. package/{modules → lib/modules}/error/error-description.component.d.ts +0 -0
  42. package/{modules → lib/modules}/error/error-image.component.d.ts +0 -0
  43. package/{modules → lib/modules}/error/error-modal-config.d.ts +0 -0
  44. package/{modules → lib/modules}/error/error-modal-form.component.d.ts +0 -0
  45. package/{modules → lib/modules}/error/error-modal.service.d.ts +0 -0
  46. package/{modules → lib/modules}/error/error-title.component.d.ts +0 -0
  47. package/{modules → lib/modules}/error/error-type.d.ts +0 -0
  48. package/{modules → lib/modules}/error/error.component.d.ts +2 -2
  49. package/{modules → lib/modules}/error/error.module.d.ts +0 -0
  50. package/{modules → lib/modules}/shared/sky-errors-resources.module.d.ts +0 -0
  51. package/package.json +19 -5
  52. package/skyux-errors.d.ts +1 -1
  53. package/LICENSE +0 -21
  54. package/bundles/skyux-errors-testing.umd.js.map +0 -1
  55. package/bundles/skyux-errors.umd.js.map +0 -1
  56. package/esm2015/modules/error/error-action.component.js +0 -18
  57. package/esm2015/modules/error/error-description.component.js +0 -27
  58. package/esm2015/modules/error/error-image.component.js +0 -17
  59. package/esm2015/modules/error/error-modal-config.js +0 -4
  60. package/esm2015/modules/error/error-modal-form.component.js +0 -24
  61. package/esm2015/modules/error/error-modal.service.js +0 -32
  62. package/esm2015/modules/error/error-title.component.js +0 -27
  63. package/esm2015/modules/error/error-type.js +0 -2
  64. package/esm2015/modules/error/error.module.js +0 -48
  65. package/esm2015/modules/shared/sky-errors-resources.module.js +0 -64
  66. package/esm2015/public-api.js +0 -12
  67. package/public-api.d.ts +0 -9
@@ -174,6 +174,8 @@
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": {
@@ -305,6 +307,8 @@
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": {
@@ -366,6 +370,8 @@
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": {
@@ -427,6 +433,8 @@
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": {
@@ -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": {}
@@ -535,6 +545,8 @@
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": {
@@ -596,6 +608,8 @@
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": {
@@ -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": {}
@@ -704,6 +720,8 @@
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": {
@@ -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": {}
@@ -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": {}
@@ -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
  {
@@ -1078,6 +1100,8 @@
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,18 +1170,13 @@
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
  }
1153
1177
  ]
1154
1178
  },
1155
1179
  "codeExamples": [
1156
- {
1157
- "fileName": ".eslintrc.json",
1158
- "filePath": "/projects/errors/documentation/code-examples/.eslintrc.json",
1159
- "rawContents": "{\n \"extends\": [\"../../.eslintrc.json\"],\n \"overrides\": [\n {\n \"files\": [\"*.ts\"],\n \"rules\": {\n \"@angular-eslint/directive-selector\": [\n \"error\",\n {\n \"type\": \"attribute\",\n \"prefix\": \"app\",\n \"style\": \"camelCase\"\n }\n ],\n \"@angular-eslint/component-selector\": [\n \"error\",\n {\n \"type\": \"element\",\n \"prefix\": \"app\",\n \"style\": \"kebab-case\"\n }\n ]\n }\n }\n ]\n}\n"
1160
- },
1161
1180
  {
1162
1181
  "fileName": "error-demo.component.html",
1163
1182
  "filePath": "/projects/errors/documentation/code-examples/error/embedded/error-demo.component.html",
@@ -1189,4 +1208,4 @@
1189
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"
1190
1209
  }
1191
1210
  ]
1192
- }
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"]}
@@ -0,0 +1,27 @@
1
+ import { Component, Input } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Specifies a title to display in the error message.
5
+ */
6
+ export class SkyErrorTitleComponent {
7
+ constructor() {
8
+ /**
9
+ * Indicates whether to replace the default title. If `false`, the title
10
+ * from this component is added after the default title.
11
+ * @default false
12
+ */
13
+ this.replaceDefaultTitle = false;
14
+ }
15
+ }
16
+ SkyErrorTitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyErrorTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
17
+ SkyErrorTitleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyErrorTitleComponent, selector: "sky-error-title", inputs: { replaceDefaultTitle: "replaceDefaultTitle" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyErrorTitleComponent, decorators: [{
19
+ type: Component,
20
+ args: [{
21
+ selector: 'sky-error-title',
22
+ template: '<ng-content></ng-content>',
23
+ }]
24
+ }], propDecorators: { replaceDefaultTitle: [{
25
+ type: Input
26
+ }] } });
27
+ //# sourceMappingURL=error-title.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-title.component.js","sourceRoot":"","sources":["../../../../../../../../libs/components/errors/src/lib/modules/error/error-title.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;;AAEjD;;GAEG;AAKH,MAAM,OAAO,sBAAsB;IAJnC;QAKE;;;;WAIG;QAEI,wBAAmB,GAAY,KAAK,CAAC;KAC7C;;oHARY,sBAAsB;wGAAtB,sBAAsB,+GAFvB,2BAA2B;4FAE1B,sBAAsB;kBAJlC,SAAS;mBAAC;oBACT,QAAQ,EAAE,iBAAiB;oBAC3B,QAAQ,EAAE,2BAA2B;iBACtC;8BAQQ,mBAAmB;sBADzB,KAAK","sourcesContent":["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: boolean = false;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=error-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-type.js","sourceRoot":"","sources":["../../../../../../../../libs/components/errors/src/lib/modules/error/error-type.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Specifies which error to display.\n */\nexport type SkyErrorType = 'broken' | 'construction' | 'notfound' | 'security';\n"]}