@hmcts/ccd-case-ui-toolkit 6.14.5-duplicate-tabs → 6.15.0-b

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 (66) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +1132 -938
  2. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
  3. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
  4. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
  5. package/esm2015/lib/shared/components/case-editor/case-edit/case-edit.component.js +264 -13
  6. package/esm2015/lib/shared/components/case-editor/case-edit-confirm/case-edit-confirm.component.js +3 -3
  7. package/esm2015/lib/shared/components/case-editor/case-edit-generic-errors/case-edit-generic-errors.component.js +80 -0
  8. package/esm2015/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.js +162 -154
  9. package/esm2015/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.js +160 -409
  10. package/esm2015/lib/shared/components/case-editor/case-editor.module.js +9 -5
  11. package/esm2015/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.js +4 -2
  12. package/esm2015/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +25 -23
  13. package/esm2015/lib/shared/components/case-viewer/case-viewer.component.js +15 -13
  14. package/esm2015/lib/shared/components/error/callback-errors.component.js +1 -6
  15. package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field.component.js +79 -29
  16. package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +1 -1
  17. package/esm2015/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu.component.js +1 -1
  18. package/esm2015/lib/shared/components/palette/case-flag/components/case-flag-table/case-flag-table.component.js +22 -17
  19. package/esm2015/lib/shared/components/palette/dynamic-list/write-dynamic-list-field.component.js +1 -1
  20. package/esm2015/lib/shared/components/palette/judicial-user/write-judicial-user-field.component.js +45 -22
  21. package/esm2015/lib/shared/components/palette/linked-cases/components/before-you-start/before-you-start.component.js +4 -2
  22. package/esm2015/lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.js +4 -2
  23. package/esm2015/lib/shared/components/palette/linked-cases/read-linked-cases-field.component.js +4 -2
  24. package/esm2015/lib/shared/components/palette/palette.module.js +2 -2
  25. package/esm2015/lib/shared/domain/case-edit/case-edit.model.js +2 -0
  26. package/esm2015/lib/shared/domain/case-edit/index.js +2 -0
  27. package/esm2015/lib/shared/domain/case-file-view/case-file-view-document.model.js +1 -1
  28. package/esm2015/lib/shared/domain/index.js +2 -1
  29. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +925 -747
  30. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  31. package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts +64 -10
  32. package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts.map +1 -1
  33. package/lib/shared/components/case-editor/case-edit-confirm/case-edit-confirm.component.d.ts +0 -1
  34. package/lib/shared/components/case-editor/case-edit-confirm/case-edit-confirm.component.d.ts.map +1 -1
  35. package/lib/shared/components/case-editor/case-edit-generic-errors/case-edit-generic-errors.component.d.ts +8 -0
  36. package/lib/shared/components/case-editor/case-edit-generic-errors/case-edit-generic-errors.component.d.ts.map +1 -0
  37. package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts +7 -7
  38. package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts.map +1 -1
  39. package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts +6 -56
  40. package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts.map +1 -1
  41. package/lib/shared/components/case-editor/case-editor.module.d.ts +14 -13
  42. package/lib/shared/components/case-editor/case-editor.module.d.ts.map +1 -1
  43. package/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.d.ts.map +1 -1
  44. package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts.map +1 -1
  45. package/lib/shared/components/case-viewer/case-viewer.component.d.ts +2 -2
  46. package/lib/shared/components/case-viewer/case-viewer.component.d.ts.map +1 -1
  47. package/lib/shared/components/error/callback-errors.component.d.ts +2 -3
  48. package/lib/shared/components/error/callback-errors.component.d.ts.map +1 -1
  49. package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts +9 -7
  50. package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts.map +1 -1
  51. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts +4 -1
  52. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts.map +1 -1
  53. package/lib/shared/components/palette/judicial-user/write-judicial-user-field.component.d.ts +10 -9
  54. package/lib/shared/components/palette/judicial-user/write-judicial-user-field.component.d.ts.map +1 -1
  55. package/lib/shared/components/palette/linked-cases/components/before-you-start/before-you-start.component.d.ts.map +1 -1
  56. package/lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.d.ts.map +1 -1
  57. package/lib/shared/components/palette/linked-cases/read-linked-cases-field.component.d.ts.map +1 -1
  58. package/lib/shared/domain/case-edit/case-edit.model.d.ts +26 -0
  59. package/lib/shared/domain/case-edit/case-edit.model.d.ts.map +1 -0
  60. package/lib/shared/domain/case-edit/index.d.ts +2 -0
  61. package/lib/shared/domain/case-edit/index.d.ts.map +1 -0
  62. package/lib/shared/domain/case-file-view/case-file-view-document.model.d.ts +1 -0
  63. package/lib/shared/domain/case-file-view/case-file-view-document.model.d.ts.map +1 -1
  64. package/lib/shared/domain/index.d.ts +1 -0
  65. package/lib/shared/domain/index.d.ts.map +1 -1
  66. package/package.json +2 -2
@@ -0,0 +1,80 @@
1
+ import { Component, Input } from '@angular/core';
2
+ import { HttpError } from '../../../domain';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@angular/common";
5
+ function CaseEditGenericErrorsComponent_div_0_Template(rf, ctx) { if (rf & 1) {
6
+ i0.ɵɵelementStart(0, "div", 1);
7
+ i0.ɵɵelementStart(1, "h1", 2);
8
+ i0.ɵɵtext(2, " Something went wrong ");
9
+ i0.ɵɵelementEnd();
10
+ i0.ɵɵelementStart(3, "div", 3);
11
+ i0.ɵɵelementStart(4, "p");
12
+ i0.ɵɵtext(5, "We're working to fix the problem. Try again shortly.");
13
+ i0.ɵɵelementEnd();
14
+ i0.ɵɵelementStart(6, "p");
15
+ i0.ɵɵelementStart(7, "a", 4);
16
+ i0.ɵɵtext(8, "Contact us");
17
+ i0.ɵɵelementEnd();
18
+ i0.ɵɵtext(9, " if you're still having problems.");
19
+ i0.ɵɵelementEnd();
20
+ i0.ɵɵelementEnd();
21
+ i0.ɵɵelementEnd();
22
+ } }
23
+ function CaseEditGenericErrorsComponent_div_1_ul_5_li_1_Template(rf, ctx) { if (rf & 1) {
24
+ i0.ɵɵelementStart(0, "li", 9);
25
+ i0.ɵɵtext(1);
26
+ i0.ɵɵelementEnd();
27
+ } if (rf & 2) {
28
+ const fieldError_r4 = ctx.$implicit;
29
+ i0.ɵɵadvance(1);
30
+ i0.ɵɵtextInterpolate(fieldError_r4.message);
31
+ } }
32
+ function CaseEditGenericErrorsComponent_div_1_ul_5_Template(rf, ctx) { if (rf & 1) {
33
+ i0.ɵɵelementStart(0, "ul", 7);
34
+ i0.ɵɵtemplate(1, CaseEditGenericErrorsComponent_div_1_ul_5_li_1_Template, 2, 1, "li", 8);
35
+ i0.ɵɵelementEnd();
36
+ } if (rf & 2) {
37
+ const ctx_r2 = i0.ɵɵnextContext(2);
38
+ i0.ɵɵadvance(1);
39
+ i0.ɵɵproperty("ngForOf", ctx_r2.error.details.field_errors);
40
+ } }
41
+ function CaseEditGenericErrorsComponent_div_1_Template(rf, ctx) { if (rf & 1) {
42
+ i0.ɵɵelementStart(0, "div", 1);
43
+ i0.ɵɵelementStart(1, "h3", 5);
44
+ i0.ɵɵtext(2, " The event could not be created ");
45
+ i0.ɵɵelementEnd();
46
+ i0.ɵɵelementStart(3, "p");
47
+ i0.ɵɵtext(4);
48
+ i0.ɵɵelementEnd();
49
+ i0.ɵɵtemplate(5, CaseEditGenericErrorsComponent_div_1_ul_5_Template, 2, 1, "ul", 6);
50
+ i0.ɵɵelementEnd();
51
+ } if (rf & 2) {
52
+ const ctx_r1 = i0.ɵɵnextContext();
53
+ i0.ɵɵadvance(4);
54
+ i0.ɵɵtextInterpolate(ctx_r1.error.message);
55
+ i0.ɵɵadvance(1);
56
+ i0.ɵɵproperty("ngIf", ctx_r1.error.details == null ? null : ctx_r1.error.details.field_errors);
57
+ } }
58
+ export class CaseEditGenericErrorsComponent {
59
+ }
60
+ CaseEditGenericErrorsComponent.ɵfac = function CaseEditGenericErrorsComponent_Factory(t) { return new (t || CaseEditGenericErrorsComponent)(); };
61
+ CaseEditGenericErrorsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseEditGenericErrorsComponent, selectors: [["ccd-case-edit-generic-errors"]], inputs: { error: "error" }, features: [i0.ɵɵProvidersFeature([])], decls: 2, vars: 2, consts: [["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h3", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], ["class", "ccd-error-summary-li", 4, "ngFor", "ngForOf"], [1, "ccd-error-summary-li"]], template: function CaseEditGenericErrorsComponent_Template(rf, ctx) { if (rf & 1) {
62
+ i0.ɵɵtemplate(0, CaseEditGenericErrorsComponent_div_0_Template, 10, 0, "div", 0);
63
+ i0.ɵɵtemplate(1, CaseEditGenericErrorsComponent_div_1_Template, 6, 2, "div", 0);
64
+ } if (rf & 2) {
65
+ i0.ɵɵproperty("ngIf", ctx.error && (!(ctx.error.callbackErrors || ctx.error.callbackWarnings || ctx.error.details) && !ctx.error.message));
66
+ i0.ɵɵadvance(1);
67
+ i0.ɵɵproperty("ngIf", ctx.error && (ctx.error.details || ctx.error.message));
68
+ } }, directives: [i1.NgIf, i1.NgForOf], styles: ["#fieldset-case-data[_ngcontent-%COMP%]{margin-bottom:30px}#fieldset-case-data[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{width:1%;white-space:nowrap;vertical-align:top}.compound-field[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:0}#confirmation-header[_ngcontent-%COMP%]{width:630px;background-color:#17958b;border:1px solid #979797;color:#fff;text-align:center}#confirmation-body[_ngcontent-%COMP%]{width:630px;background-color:#fff}.valign-top[_ngcontent-%COMP%]{vertical-align:top}.summary-fields[_ngcontent-%COMP%]{margin-bottom:30px}.summary-fields[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .summary-fields[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-bottom:0}a.disabled[_ngcontent-%COMP%]{pointer-events:none;cursor:default}.case-field-label[_ngcontent-%COMP%]{width:45%}.case-field-content[_ngcontent-%COMP%]{width:50%}.case-field-change[_ngcontent-%COMP%]{width:5%}"] });
69
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEditGenericErrorsComponent, [{
70
+ type: Component,
71
+ args: [{
72
+ selector: 'ccd-case-edit-generic-errors',
73
+ templateUrl: 'case-edit-generic-errors.component.html',
74
+ styleUrls: ['../case-edit.scss'],
75
+ providers: []
76
+ }]
77
+ }], null, { error: [{
78
+ type: Input
79
+ }] }); })();
80
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2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