@hmcts/ccd-case-ui-toolkit 7.0.18-pre-release → 7.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/shared/commons/address-validation-constants.mjs +13 -0
- package/esm2020/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.mjs +15 -6
- package/esm2020/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.mjs +38 -83
- package/esm2020/lib/shared/components/case-editor/case-editor.module.mjs +5 -6
- package/esm2020/lib/shared/components/palette/address/write-address-field.component.mjs +55 -18
- package/esm2020/lib/shared/components/palette/base-field/abstract-form-field.component.mjs +5 -1
- package/esm2020/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.mjs +5 -5
- package/esm2020/lib/shared/components/palette/markdown/markdown.component.mjs +3 -20
- package/esm2020/lib/shared/components/palette/text/write-text-field.component.mjs +1 -1
- package/esm2020/lib/shared/components/palette/utils/first-error.pipe.mjs +1 -4
- package/esm2020/lib/shared/domain/http/http-error.model.mjs +8 -2
- package/esm2020/lib/shared/services/addresses/addresses.service.mjs +9 -1
- package/esm2020/lib/shared/services/form/form-validators.service.mjs +2 -27
- package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs +202 -222
- package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs +196 -213
- package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/shared/commons/address-validation-constants.d.ts +7 -0
- package/lib/shared/commons/address-validation-constants.d.ts.map +1 -0
- package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts +3 -2
- package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts +3 -8
- package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts.map +1 -1
- package/lib/shared/components/palette/address/write-address-field.component.d.ts +5 -0
- package/lib/shared/components/palette/address/write-address-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/base-field/abstract-form-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/markdown/markdown.component.d.ts +1 -3
- package/lib/shared/components/palette/markdown/markdown.component.d.ts.map +1 -1
- package/lib/shared/components/palette/utils/first-error.pipe.d.ts.map +1 -1
- package/lib/shared/domain/http/http-error.model.d.ts +1 -0
- package/lib/shared/domain/http/http-error.model.d.ts.map +1 -1
- package/lib/shared/services/addresses/addresses.service.d.ts +3 -0
- package/lib/shared/services/addresses/addresses.service.d.ts.map +1 -1
- package/lib/shared/services/form/form-validators.service.d.ts +0 -4
- package/lib/shared/services/form/form-validators.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class AddressValidationConstants {
|
|
3
|
+
static readonly REGEX_POSTCODE: RegExp;
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AddressValidationConstants, never>;
|
|
5
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AddressValidationConstants>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=address-validation-constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"address-validation-constants.d.ts","sourceRoot":"","sources":["../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/commons/address-validation-constants.ts"],"names":[],"mappings":";AAEA,qBACa,0BAA0B;IAGrC,gBAAuB,cAAc,SAA0B;yCAHpD,0BAA0B;6CAA1B,0BAA0B;CAItC"}
|
|
@@ -7,7 +7,7 @@ import { CaseEditDataService, CaseEditValidationError } from '../../../commons/c
|
|
|
7
7
|
import { CaseEventData } from '../../../domain/case-event-data.model';
|
|
8
8
|
import { CaseEventTrigger } from '../../../domain/case-view/case-event-trigger.model';
|
|
9
9
|
import { CaseField } from '../../../domain/definition';
|
|
10
|
-
import { LoadingService } from '../../../services';
|
|
10
|
+
import { AddressesService, LoadingService } from '../../../services';
|
|
11
11
|
import { CaseFieldService } from '../../../services/case-fields/case-field.service';
|
|
12
12
|
import { FormErrorService } from '../../../services/form/form-error.service';
|
|
13
13
|
import { FormValueService } from '../../../services/form/form-value.service';
|
|
@@ -30,6 +30,7 @@ export declare class CaseEditPageComponent implements OnInit, AfterViewChecked,
|
|
|
30
30
|
private readonly caseEditDataService;
|
|
31
31
|
private readonly loadingService;
|
|
32
32
|
private readonly validPageListCaseFieldsService;
|
|
33
|
+
private readonly addressService;
|
|
33
34
|
static readonly RESUMED_FORM_DISCARD = "RESUMED_FORM_DISCARD";
|
|
34
35
|
static readonly NEW_FORM_DISCARD = "NEW_FORM_DISCARD";
|
|
35
36
|
static readonly NEW_FORM_SAVE = "NEW_FORM_CHANGED_SAVE";
|
|
@@ -62,7 +63,7 @@ export declare class CaseEditPageComponent implements OnInit, AfterViewChecked,
|
|
|
62
63
|
caseFormValidationErrorsSub: Subscription;
|
|
63
64
|
private static scrollToTop;
|
|
64
65
|
private static setFocusToTop;
|
|
65
|
-
constructor(caseEdit: CaseEditComponent, route: ActivatedRoute, formValueService: FormValueService, formErrorService: FormErrorService, cdRef: ChangeDetectorRef, pageValidationService: PageValidationService, dialog: MatDialog, caseFieldService: CaseFieldService, caseEditDataService: CaseEditDataService, loadingService: LoadingService, validPageListCaseFieldsService: ValidPageListCaseFieldsService);
|
|
66
|
+
constructor(caseEdit: CaseEditComponent, route: ActivatedRoute, formValueService: FormValueService, formErrorService: FormErrorService, cdRef: ChangeDetectorRef, pageValidationService: PageValidationService, dialog: MatDialog, caseFieldService: CaseFieldService, caseEditDataService: CaseEditDataService, loadingService: LoadingService, validPageListCaseFieldsService: ValidPageListCaseFieldsService, addressService: AddressesService);
|
|
66
67
|
ngOnInit(): void;
|
|
67
68
|
ngAfterViewChecked(): void;
|
|
68
69
|
ngOnDestroy(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"case-edit-page.component.d.ts","sourceRoot":"","sources":["../../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAa,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAClG,OAAO,EAAE,eAAe,EAAa,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAE,eAAe,IAAI,SAAS,EAAE,qBAAqB,IAAI,eAAe,EAAC,MAAM,iCAAiC,CAAC;AACxH,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAE9D,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC/F,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oDAAoD,CAAC;AACtF,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAEvD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"case-edit-page.component.d.ts","sourceRoot":"","sources":["../../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAa,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAClG,OAAO,EAAE,eAAe,EAAa,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAE,eAAe,IAAI,SAAS,EAAE,qBAAqB,IAAI,eAAe,EAAC,MAAM,iCAAiC,CAAC;AACxH,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE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AM,IAAI,IAAI;IA0Bd,UAAU,IAAI,OAAO;IAIrB,SAAS,IAAI,MAAM;IAInB,YAAY,IAAI,MAAM;IAKtB,aAAa,IAAI,MAAM;IAI9B,OAAO,CAAC,wBAAwB;IAWhC,OAAO,CAAC,cAAc;IAUtB,OAAO,CAAC,OAAO;IAQf,OAAO,CAAC,WAAW;IAanB,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,SAAS;IAWjB,OAAO,CAAC,aAAa;IAQrB,OAAO,CAAC,wCAAwC;IAUzC,kBAAkB,CAAC,gBAAgB,CAAC,EAAE,OAAO,GAAG,aAAa;IA4BpE;;;;;;;OAOG;IACH,OAAO,CAAC,wBAAwB;IAqBhC,OAAO,CAAC,uBAAuB;IAUxB,uBAAuB,CAAC,UAAU,EAAE,MAAM,GAAG;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;IAI1E,qBAAqB,CAAC,mBAAmB,EAAE,OAAO,GAAG,IAAI;IAUhE,OAAO,CAAC,iCAAiC;yCAnkB9B,qBAAqB;2CAArB,qBAAqB;CA0kBjC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
3
|
import { ActivatedRoute } from '@angular/router';
|
|
4
4
|
import { Subscription } from 'rxjs';
|
|
5
5
|
import { CaseEventTrigger, CaseField, Profile } from '../../../domain';
|
|
6
6
|
import { Task } from '../../../domain/work-allocation/Task';
|
|
7
|
-
import { CaseFieldService, FieldsUtils,
|
|
7
|
+
import { CaseFieldService, FieldsUtils, OrderService, ProfileNotifier } from '../../../services';
|
|
8
8
|
import { CallbackErrorsContext } from '../../error';
|
|
9
9
|
import { PaletteContext } from '../../palette';
|
|
10
10
|
import { CaseEditComponent } from '../case-edit/case-edit.component';
|
|
@@ -17,7 +17,6 @@ export declare class CaseEditSubmitComponent implements OnInit, OnDestroy {
|
|
|
17
17
|
private readonly route;
|
|
18
18
|
private readonly orderService;
|
|
19
19
|
private readonly profileNotifier;
|
|
20
|
-
private readonly formValidatorsService;
|
|
21
20
|
eventTrigger: CaseEventTrigger;
|
|
22
21
|
editForm: FormGroup;
|
|
23
22
|
triggerText: string;
|
|
@@ -31,13 +30,9 @@ export declare class CaseEditSubmitComponent implements OnInit, OnDestroy {
|
|
|
31
30
|
pageTitle: string;
|
|
32
31
|
metadataFieldsObject: object;
|
|
33
32
|
allFieldsValues: any;
|
|
34
|
-
summary: AbstractControl;
|
|
35
|
-
description: AbstractControl;
|
|
36
|
-
eventSummaryLabel: string;
|
|
37
|
-
eventDescriptionLabel: string;
|
|
38
33
|
static readonly SHOW_SUMMARY_CONTENT_COMPARE_FUNCTION: (a: CaseField, b: CaseField) => number;
|
|
39
34
|
get isDisabled(): boolean;
|
|
40
|
-
constructor(caseEdit: CaseEditComponent, fieldsUtils: FieldsUtils, caseFieldService: CaseFieldService, route: ActivatedRoute, orderService: OrderService, profileNotifier: ProfileNotifier
|
|
35
|
+
constructor(caseEdit: CaseEditComponent, fieldsUtils: FieldsUtils, caseFieldService: CaseFieldService, route: ActivatedRoute, orderService: OrderService, profileNotifier: ProfileNotifier);
|
|
41
36
|
ngOnInit(): void;
|
|
42
37
|
ngOnDestroy(): void;
|
|
43
38
|
submit(): void;
|
package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"case-edit-submit.component.d.ts","sourceRoot":"","sources":["../../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"case-edit-submit.component.d.ts","sourceRoot":"","sources":["../../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/case-editor/case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B,aAAa,IAAI,MAAM;yCApPnB,uBAAuB;2CAAvB,uBAAuB;CA2PnC"}
|
|
@@ -11,13 +11,17 @@ export declare class WriteAddressFieldComponent extends AbstractFieldWriteCompon
|
|
|
11
11
|
private readonly isCompoundPipe;
|
|
12
12
|
writeComplexFieldComponent: WriteComplexFieldComponent;
|
|
13
13
|
focusElementDirectives: QueryList<FocusElementDirective>;
|
|
14
|
+
static readonly REQUIRED_ERROR_MESSAGE = "Enter a Postcode";
|
|
15
|
+
static readonly INVALID_ERROR_MESSAGE = "Enter a valid Postcode";
|
|
14
16
|
addressesService: AddressesService;
|
|
15
17
|
formGroup: FormGroup;
|
|
16
18
|
addressFormGroup: FormGroup<{}>;
|
|
17
19
|
postcode: FormControl;
|
|
18
20
|
addressList: FormControl;
|
|
19
21
|
addressOptions: AddressOption[];
|
|
22
|
+
errorMessage: string;
|
|
20
23
|
missingPostcode: boolean;
|
|
24
|
+
noAddressSelected: boolean;
|
|
21
25
|
constructor(addressesService: AddressesService, isCompoundPipe: IsCompoundPipe);
|
|
22
26
|
ngOnInit(): void;
|
|
23
27
|
findAddress(): void;
|
|
@@ -30,6 +34,7 @@ export declare class WriteAddressFieldComponent extends AbstractFieldWriteCompon
|
|
|
30
34
|
buildIdPrefix(elementId: string): string;
|
|
31
35
|
private defaultLabel;
|
|
32
36
|
private setFormValue;
|
|
37
|
+
private updateErrorsOnContinue;
|
|
33
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<WriteAddressFieldComponent, never>;
|
|
34
39
|
static ɵcmp: i0.ɵɵComponentDeclaration<WriteAddressFieldComponent, "ccd-write-address-field", never, { "formGroup": "formGroup"; }, {}, never, never, false, never>;
|
|
35
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"write-address-field.component.d.ts","sourceRoot":"","sources":["../../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/address/write-address-field.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAA2B,MAAM,eAAe,CAAC;AACvH,OAAO,EAAE,WAAW,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"write-address-field.component.d.ts","sourceRoot":"","sources":["../../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/address/write-address-field.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAA2B,MAAM,eAAe,CAAC;AACvH,OAAO,EAAE,WAAW,EAAE,SAAS,EAAc,MAAM,gBAAgB,CAAC;AAEpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAE1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AACjF,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AACtF,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;;AAEvD,qBAKa,0BAA2B,SAAQ,2BAA4B,YAAW,MAAM,EAAE,SAAS;IA0BtD,OAAO,CAAC,QAAQ,CAAC,cAAc;IAxBxE,0BAA0B,EAAE,0BAA0B,CAAC;IAGvD,sBAAsB,EAAE,SAAS,CAAC,qBAAqB,CAAC,CAAC;IAEhE,gBAAuB,sBAAsB,sBAAsB;IACnE,gBAAuB,qBAAqB,4BAA4B;IAEjE,gBAAgB,EAAE,gBAAgB,CAAC;IAGnC,SAAS,EAAE,SAAS,CAAC;IAErB,gBAAgB,gBAAqB;IACrC,QAAQ,EAAE,WAAW,CAAC;IACtB,WAAW,EAAE,WAAW,CAAC;IAEzB,cAAc,EAAE,aAAa,EAAE,CAAC;IAEhC,YAAY,EAAE,MAAM,CAAqD;IAEzE,eAAe,UAAS;IACxB,iBAAiB,UAAS;gBAErB,gBAAgB,EAAE,gBAAgB,EAAmB,cAAc,EAAE,cAAc;IAKxF,QAAQ,IAAI,IAAI;IAahB,WAAW;IAkCX,cAAc,IAAI,IAAI;IAMtB,YAAY;IAOZ,yBAAyB;IAOzB,sBAAsB;IAsBtB,eAAe;IAMf,WAAW,CAAC,OAAO,EAAE,aAAa;IAQlC,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;IAI/C,OAAO,CAAC,YAAY;IAKpB,OAAO,CAAC,YAAY;IAQpB,OAAO,CAAC,sBAAsB;yCAvJnB,0BAA0B;2CAA1B,0BAA0B;CA4JtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstract-form-field.component.d.ts","sourceRoot":"","sources":["../../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/base-field/abstract-form-field.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEvE,OAAO,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAC;;
|
|
1
|
+
{"version":3,"file":"abstract-form-field.component.d.ts","sourceRoot":"","sources":["../../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/base-field/abstract-form-field.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEvE,OAAO,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAC;;AAIxE,aAAK,aAAa,GAAG,SAAS,GAAG,SAAS,CAAC;AAE3C,8BACsB,0BAA0B;IAEvC,SAAS,EAAE,SAAS,CAAC;IAGrB,SAAS,EAAE,SAAS,CAAC;IAGrB,MAAM,CAAC,EAAE,aAAa,CAAC;IAGvB,QAAQ,SAAM;IAEd,EAAE;IAIT,SAAS,CAAC,eAAe,CAAC,CAAC,SAAS,eAAe,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,UAAQ,GAAG,eAAe;IAuBlG,SAAS,CAAC,aAAa,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,eAAe,GAAG,IAAI;IAI7E,OAAO,CAAC,kBAAkB;IAO1B,OAAO,CAAC,qBAAqB;IAU7B,OAAO,CAAC,qBAAqB;yCA7DT,0BAA0B;2CAA1B,0BAA0B;CAyE/C"}
|
|
@@ -3,12 +3,10 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class MarkdownComponent implements OnInit {
|
|
4
4
|
content: string;
|
|
5
5
|
markdownUseHrefAsRouterLink: boolean;
|
|
6
|
-
renderUrlToTextFeature?: boolean;
|
|
7
6
|
constructor();
|
|
8
7
|
ngOnInit(): void;
|
|
9
8
|
onMarkdownClick(event: MouseEvent): boolean;
|
|
10
|
-
private renderUrlToText;
|
|
11
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<MarkdownComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MarkdownComponent, "ccd-markdown", never, { "content": "content"; "markdownUseHrefAsRouterLink": "markdownUseHrefAsRouterLink";
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MarkdownComponent, "ccd-markdown", never, { "content": "content"; "markdownUseHrefAsRouterLink": "markdownUseHrefAsRouterLink"; }, {}, never, never, false, never>;
|
|
13
11
|
}
|
|
14
12
|
//# sourceMappingURL=markdown.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown.component.d.ts","sourceRoot":"","sources":["../../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/markdown/markdown.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,MAAM,EAAE,MAAM,eAAe,CAAC;;
|
|
1
|
+
{"version":3,"file":"markdown.component.d.ts","sourceRoot":"","sources":["../../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/markdown/markdown.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,MAAM,EAAE,MAAM,eAAe,CAAC;;AAEvE,qBAIa,iBAAkB,YAAW,MAAM;IAEvC,OAAO,EAAE,MAAM,CAAC;IAEhB,2BAA2B,EAAG,OAAO,CAAC;;IAItC,QAAQ,IAAI,IAAI;IAKhB,eAAe,CAAC,KAAK,EAAE,UAAU;yCAb7B,iBAAiB;2CAAjB,iBAAiB;CAoB7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"first-error.pipe.d.ts","sourceRoot":"","sources":["../../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/utils/first-error.pipe.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,QAAQ,EAAE,SAAS,EAAQ,aAAa,EAAE,MAAM,eAAe,CAAC;AAC5F,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;;AAG5D,qBAIa,cAAe,YAAW,aAAa,EAAE,SAAS;IAI3D,OAAO,CAAC,QAAQ,CAAC,qBAAqB;IACtC,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAJ3B,OAAO,CAAC,SAAS,CAAY;gBAGV,qBAAqB,EAAE,qBAAqB,EAC5C,QAAQ,EAAE,QAAQ;IAK9B,SAAS,CAAC,KAAK,EAAE,gBAAgB,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM;
|
|
1
|
+
{"version":3,"file":"first-error.pipe.d.ts","sourceRoot":"","sources":["../../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/utils/first-error.pipe.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,QAAQ,EAAE,SAAS,EAAQ,aAAa,EAAE,MAAM,eAAe,CAAC;AAC5F,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;;AAG5D,qBAIa,cAAe,YAAW,aAAa,EAAE,SAAS;IAI3D,OAAO,CAAC,QAAQ,CAAC,qBAAqB;IACtC,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAJ3B,OAAO,CAAC,SAAS,CAAY;gBAGV,qBAAqB,EAAE,qBAAqB,EAC5C,QAAQ,EAAE,QAAQ;IAK9B,SAAS,CAAC,KAAK,EAAE,gBAAgB,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM;IAqCzD,WAAW,IAAI,IAAI;yCA/Cf,cAAc;uCAAd,cAAc;CAkD1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-error.model.d.ts","sourceRoot":"","sources":["../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/domain/http/http-error.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,qBAAa,SAAS;;IAapB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAmB;IACxD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAyF;IAChI,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAO;
|
|
1
|
+
{"version":3,"file":"http-error.model.d.ts","sourceRoot":"","sources":["../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/domain/http/http-error.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,qBAAa,SAAS;;IAapB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAmB;IACxD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAyF;IAChI,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAO;IAE7C,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,iBAAiB,CAAkG;IAEpI,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,gBAAgB,CAAC,EAAE,GAAG,CAAC;WAEhB,IAAI,CAAC,QAAQ,EAAE,iBAAiB,GAAG,SAAS;CA0B3D"}
|
|
@@ -6,8 +6,11 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
export declare class AddressesService {
|
|
7
7
|
private readonly http;
|
|
8
8
|
private readonly appConfig;
|
|
9
|
+
private mandatoryError;
|
|
9
10
|
constructor(http: HttpService, appConfig: AbstractAppConfig);
|
|
10
11
|
getAddressesForPostcode(postcode: string): Observable<AddressModel[]>;
|
|
12
|
+
getMandatoryError(): Observable<boolean>;
|
|
13
|
+
setMandatoryError(value: boolean): void;
|
|
11
14
|
private format;
|
|
12
15
|
private formatAddressLines;
|
|
13
16
|
private shiftAddressLinesUp;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addresses.service.d.ts","sourceRoot":"","sources":["../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/services/addresses/addresses.service.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"addresses.service.d.ts","sourceRoot":"","sources":["../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/services/addresses/addresses.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,UAAU,EAAE,MAAM,MAAM,CAAC;AAEnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;;AAItC,qBACa,gBAAgB;IAIf,OAAO,CAAC,QAAQ,CAAC,IAAI;IAAe,OAAO,CAAC,QAAQ,CAAC,SAAS;IAF1E,OAAO,CAAC,cAAc,CAAiE;gBAE1D,IAAI,EAAE,WAAW,EAAmB,SAAS,EAAE,iBAAiB;IAGtF,uBAAuB,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,CAAC,YAAY,EAAE,CAAC;IAarE,iBAAiB,IAAI,UAAU,CAAC,OAAO,CAAC;IAIxC,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAI9C,OAAO,CAAC,MAAM;IAId,OAAO,CAAC,kBAAkB;IAO1B,OAAO,CAAC,mBAAmB;IAY3B,OAAO,CAAC,aAAa;yCAnDV,gBAAgB;6CAAhB,gBAAgB;CA2D5B"}
|
|
@@ -3,13 +3,9 @@ import { CaseField } from '../../domain/definition/case-field.model';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class FormValidatorsService {
|
|
5
5
|
private static readonly CUSTOM_VALIDATED_TYPES;
|
|
6
|
-
private static readonly DEFAULT_INPUT_TEXT;
|
|
7
|
-
private static readonly DEFAULT_INPUT_TEXTAREA;
|
|
8
6
|
static addValidators(caseField: CaseField, control: AbstractControl): AbstractControl;
|
|
9
7
|
static emptyValidator(): ValidatorFn;
|
|
10
|
-
static markDownPatternValidator(): ValidatorFn;
|
|
11
8
|
addValidators(caseField: CaseField, control: AbstractControl): AbstractControl;
|
|
12
|
-
addMarkDownValidators(formGroup: AbstractControl, controlPath: string): AbstractControl;
|
|
13
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormValidatorsService, never>;
|
|
14
10
|
static ɵprov: i0.ɵɵInjectableDeclaration<FormValidatorsService>;
|
|
15
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-validators.service.d.ts","sourceRoot":"","sources":["../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/services/form/form-validators.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAoB,WAAW,EAAc,MAAM,gBAAgB,CAAC;AAG5F,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;;AAGrE,qBACa,qBAAqB;
|
|
1
|
+
{"version":3,"file":"form-validators.service.d.ts","sourceRoot":"","sources":["../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/services/form/form-validators.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAoB,WAAW,EAAc,MAAM,gBAAgB,CAAC;AAG5F,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;;AAGrE,qBACa,qBAAqB;IAEhC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,sBAAsB,CAE5C;WACY,aAAa,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,eAAe,GAAG,eAAe;WA2B9E,cAAc,IAAI,WAAW;IAcpC,aAAa,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,eAAe,GAAG,eAAe;yCA9C1E,qBAAqB;6CAArB,qBAAqB;CAiDjC"}
|