@hmcts/ccd-case-ui-toolkit 7.2.36 → 7.2.37-exui-2916-4
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/esm2022/lib/shared/directives/substitutor/label-substitutor.directive.mjs +30 -7
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +28 -5
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/shared/directives/substitutor/label-substitutor.directive.d.ts +7 -2
- package/lib/shared/directives/substitutor/label-substitutor.directive.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -3,20 +3,25 @@ import { FormGroup } from '@angular/forms';
|
|
|
3
3
|
import { CaseField } from '../../domain/definition/case-field.model';
|
|
4
4
|
import { FieldsUtils } from '../../services/fields/fields.utils';
|
|
5
5
|
import { PlaceholderService } from './services/placeholder.service';
|
|
6
|
-
import { RpxTranslatePipe } from 'rpx-xui-translation';
|
|
6
|
+
import { RpxTranslatePipe, RpxTranslationService } from 'rpx-xui-translation';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class LabelSubstitutorDirective implements OnInit, OnDestroy {
|
|
9
9
|
private readonly fieldsUtils;
|
|
10
10
|
private readonly placeholderService;
|
|
11
11
|
private readonly rpxTranslationPipe;
|
|
12
|
+
private readonly rpxTranslationService;
|
|
12
13
|
caseField: CaseField;
|
|
13
14
|
contextFields: CaseField[];
|
|
14
15
|
formGroup: FormGroup;
|
|
15
16
|
elementsToSubstitute: string[];
|
|
16
17
|
private initialLabel;
|
|
17
18
|
private initialHintText;
|
|
18
|
-
|
|
19
|
+
private languageSubscription;
|
|
20
|
+
constructor(fieldsUtils: FieldsUtils, placeholderService: PlaceholderService, rpxTranslationPipe: RpxTranslatePipe, rpxTranslationService: RpxTranslationService);
|
|
19
21
|
ngOnInit(): void;
|
|
22
|
+
private applySubstitutions;
|
|
23
|
+
private onLanguageChange;
|
|
24
|
+
private resetToInitialValues;
|
|
20
25
|
ngOnDestroy(): void;
|
|
21
26
|
private shouldSubstitute;
|
|
22
27
|
private getReadOnlyAndFormFields;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label-substitutor.directive.d.ts","sourceRoot":"","sources":["../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/directives/substitutor/label-substitutor.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;;
|
|
1
|
+
{"version":3,"file":"label-substitutor.directive.d.ts","sourceRoot":"","sources":["../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/directives/substitutor/label-substitutor.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;;AAG9E,qBAIa,yBAA0B,YAAW,MAAM,EAAE,SAAS;IAY/D,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IACnC,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IACnC,OAAO,CAAC,QAAQ,CAAC,qBAAqB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