@hmcts/ccd-case-ui-toolkit 7.4.15 → 7.4.16-exui-5388-v2

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/index.d.ts CHANGED
@@ -845,6 +845,7 @@ declare class CaseField implements Orderable {
845
845
  _value: any;
846
846
  _list_items: any;
847
847
  private isTranslatedFlag;
848
+ private _translationHandledLocally?;
848
849
  get value(): any;
849
850
  set value(value: any);
850
851
  get list_items(): any;
@@ -862,8 +863,10 @@ declare class CaseField implements Orderable {
862
863
  isCaseLink(): boolean;
863
864
  extractBracketValue(fmt: string, paramName: string, leftBracket?: string, rightBracket?: string): string;
864
865
  getHierachicalId(curr?: string): string;
865
- set isTranslated(val: boolean);
866
866
  get isTranslated(): boolean;
867
+ set isTranslated(val: boolean);
868
+ get translationHandledLocally(): boolean;
869
+ set translationHandledLocally(value: boolean);
867
870
  }
868
871
 
869
872
  declare class ShowCondition {
@@ -3441,7 +3444,7 @@ declare class ReadComplexFieldCollectionTableComponent extends AbstractFieldRead
3441
3444
  addCaseFieldValue(field: any, value: any): boolean;
3442
3445
  isNotBlank(value: string): boolean;
3443
3446
  addCaseReferenceValue(field: any, value: any): any;
3444
- toCaseField(id: string, label: string, fieldType: any, value: any): CaseField;
3447
+ toCaseField(id: string, label: string, fieldType: any, value: any, sourceField?: CaseField): CaseField;
3445
3448
  keepOriginalOrder: (a: any, b: any) => any;
3446
3449
  sortRowsByColumns(column: any): void;
3447
3450
  sortWidget(column: any): string;
@@ -6102,8 +6105,8 @@ declare class FormModule {
6102
6105
  declare class LabelSubstitutorDirective implements OnInit, OnDestroy {
6103
6106
  private readonly fieldsUtils;
6104
6107
  private readonly placeholderService;
6105
- private readonly rpxTranslationPipe;
6106
6108
  private readonly rpxTranslationService;
6109
+ private readonly cdr;
6107
6110
  caseField: CaseField;
6108
6111
  contextFields: CaseField[];
6109
6112
  formGroup: FormGroup | AbstractControl | undefined;
@@ -6111,14 +6114,13 @@ declare class LabelSubstitutorDirective implements OnInit, OnDestroy {
6111
6114
  private initialLabel;
6112
6115
  private initialHintText;
6113
6116
  private languageSubscription;
6114
- constructor(fieldsUtils: FieldsUtils, placeholderService: PlaceholderService, rpxTranslationPipe: RpxTranslatePipe, rpxTranslationService: RpxTranslationService);
6117
+ private templateTranslationSubscription?;
6118
+ constructor(fieldsUtils: FieldsUtils, placeholderService: PlaceholderService, rpxTranslationService: RpxTranslationService, cdr: ChangeDetectorRef);
6115
6119
  ngOnInit(): void;
6116
6120
  private noCacheProcessing;
6117
6121
  private applySubstitutions;
6118
6122
  private applyLabelSubstitution;
6119
6123
  private applyTranslatedLabelState;
6120
- private translateLabel;
6121
- private translateLabelOnLanguageChange;
6122
6124
  private setLabelState;
6123
6125
  private onLanguageChange;
6124
6126
  private resetToInitialValues;