@hmcts/ccd-case-ui-toolkit 7.3.28-exui-3994 → 7.3.32-exui-3345

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
@@ -1672,6 +1672,7 @@ declare class DocumentTreeNode {
1672
1672
  children?: DocumentTreeNode[];
1673
1673
  document_filename?: string;
1674
1674
  document_binary_url?: string;
1675
+ content_type?: string;
1675
1676
  attribute_path?: string;
1676
1677
  upload_timestamp?: string;
1677
1678
  category_order?: number;
@@ -1802,6 +1803,8 @@ declare class DocumentManagementService {
1802
1803
  private static readonly POWERPOINT;
1803
1804
  private static readonly TXT;
1804
1805
  private static readonly RTF;
1806
+ private static readonly HTML_MIME_ALLOWLIST;
1807
+ private static readonly HTML_EXTENSION_ALLOWLIST;
1805
1808
  private static readonly RESPONSE_DELAY;
1806
1809
  private static readonly imagesList;
1807
1810
  private static readonly wordList;
@@ -1813,6 +1816,8 @@ declare class DocumentManagementService {
1813
1816
  uploadFile(formData: FormData): Observable<DocumentData>;
1814
1817
  setCaseInfo(): void;
1815
1818
  getMediaViewerInfo(documentFieldValue: any): string;
1819
+ getDocumentBinaryUrl(documentFieldValue: any): string;
1820
+ isHtmlDocument(documentFieldValue: any): boolean;
1816
1821
  getContentType(documentFieldValue: any): string;
1817
1822
  isImage(imageType: string): boolean;
1818
1823
  isWord(wordType: string): boolean;
@@ -1826,6 +1831,8 @@ declare class DocumentManagementService {
1826
1831
  private getCurrentPathname;
1827
1832
  private resolveCaseTypeId;
1828
1833
  private transformDocumentUrl;
1834
+ private normaliseMimeType;
1835
+ private getFileExtension;
1829
1836
  private getDocStoreUrl;
1830
1837
  isDocumentSecureModeEnabled(): boolean;
1831
1838
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentManagementService, never>;
@@ -2203,6 +2210,7 @@ declare class FieldsUtils {
2203
2210
  PRLAPPS: string;
2204
2211
  };
2205
2212
  static isValidDisplayContext(ctx: string): boolean;
2213
+ static createToken(): string;
2206
2214
  static isTranslatable(fieldType: FieldType): boolean;
2207
2215
  static convertToCaseField(obj: any): CaseField;
2208
2216
  static toValuesMap(caseFields: CaseField[]): any;
@@ -3073,7 +3081,7 @@ declare class ReadDocumentFieldComponent extends AbstractFieldReadComponent impl
3073
3081
  constructor(windowService: WindowService, documentManagement: DocumentManagementService, router: Router, route: ActivatedRoute, casesService: CasesService);
3074
3082
  showMediaViewer(): void;
3075
3083
  openMediaViewer(documentFieldValue: any): void;
3076
- getMediaViewerUrl(): string;
3084
+ getMediaViewerUrl(token: string): string;
3077
3085
  ngOnDestroy(): void;
3078
3086
  static ɵfac: i0.ɵɵFactoryDeclaration<ReadDocumentFieldComponent, never>;
3079
3087
  static ɵcmp: i0.ɵɵComponentDeclaration<ReadDocumentFieldComponent, "ccd-read-document-field", never, {}, {}, never, never, false, never>;
@@ -4181,6 +4189,7 @@ declare class CaseFileViewFieldComponent implements OnInit, AfterViewInit, OnDes
4181
4189
  private documentManagementService;
4182
4190
  private readonly loadingService;
4183
4191
  private readonly sessionStorageService;
4192
+ private readonly windowService;
4184
4193
  private readonly caseNotifier;
4185
4194
  private readonly abstractConfig;
4186
4195
  static readonly PARAM_CASE_ID = "cid";
@@ -4195,7 +4204,7 @@ declare class CaseFileViewFieldComponent implements OnInit, AfterViewInit, OnDes
4195
4204
  icp_jurisdictions: string[];
4196
4205
  icpEnabled: boolean;
4197
4206
  caseId: string;
4198
- constructor(elementRef: ElementRef, route: ActivatedRoute, caseFileViewService: CaseFileViewService, documentManagementService: DocumentManagementService, loadingService: LoadingService, sessionStorageService: SessionStorageService, caseNotifier: CaseNotifier, abstractConfig: AbstractAppConfig);
4207
+ constructor(elementRef: ElementRef, route: ActivatedRoute, caseFileViewService: CaseFileViewService, documentManagementService: DocumentManagementService, loadingService: LoadingService, sessionStorageService: SessionStorageService, windowService: WindowService, caseNotifier: CaseNotifier, abstractConfig: AbstractAppConfig);
4199
4208
  ngOnInit(): void;
4200
4209
  ngAfterViewInit(): void;
4201
4210
  setMediaViewerFile(document: DocumentTreeNode): void;
@@ -4217,7 +4226,6 @@ declare class CaseFileViewFolderComponent implements OnInit, OnDestroy {
4217
4226
  private readonly router;
4218
4227
  private readonly documentManagementService;
4219
4228
  private readonly dialog;
4220
- private readonly appConfig;
4221
4229
  private static readonly UNCATEGORISED_DOCUMENTS_TITLE;
4222
4230
  private static readonly DOCUMENT_SEARCH_FORM_CONTROL_NAME;
4223
4231
  private static readonly MINIMUM_SEARCH_CHARACTERS;
@@ -4241,7 +4249,7 @@ declare class CaseFileViewFolderComponent implements OnInit, OnDestroy {
4241
4249
  private getChildren;
4242
4250
  nestedChildren: (_: number, nodeData: DocumentTreeNode) => DocumentTreeNode[];
4243
4251
  get documentCount(): number;
4244
- constructor(windowService: WindowService, router: Router, documentManagementService: DocumentManagementService, dialog: MatLegacyDialog, appConfig: AbstractAppConfig);
4252
+ constructor(windowService: WindowService, router: Router, documentManagementService: DocumentManagementService, dialog: MatLegacyDialog);
4245
4253
  collapseAll(expand: boolean): void;
4246
4254
  expandAll(expand: boolean): void;
4247
4255
  ngOnInit(): void;
@@ -4874,6 +4882,7 @@ interface CaseMessage {
4874
4882
  parentId?: string;
4875
4883
  isClosed?: string;
4876
4884
  messageType?: string;
4885
+ isHmctsStaff?: string;
4877
4886
  }
4878
4887
  interface QueryMessage {
4879
4888
  id: string;
@@ -4903,7 +4912,8 @@ declare enum QueryCreateContext {
4903
4912
  NEW_QUERY_QUALIFYING_QUESTION_DETAIL = "NewQueryQualifyingQuestionDetail",
4904
4913
  NEW_QUERY = "NewQuery",
4905
4914
  RESPOND = "Respond",
4906
- FOLLOWUP = "Followup"
4915
+ FOLLOWUP = "Followup",
4916
+ HMCTSSTAFF = "HMCTS"
4907
4917
  }
4908
4918
 
4909
4919
  declare enum SortOrder {
@@ -4938,6 +4948,7 @@ declare class QueryListItem implements CaseMessage {
4938
4948
  parentId?: string;
4939
4949
  isClosed?: string;
4940
4950
  messageType?: string;
4951
+ isHmctsStaff?: string;
4941
4952
  children: QueryListItem[];
4942
4953
  messageIndexInParent?: number | null;
4943
4954
  get lastSubmittedMessage(): QueryListItem;
@@ -5003,6 +5014,7 @@ declare class QueryDetailsComponent implements OnChanges, OnInit, OnDestroy {
5003
5014
  private queryItemId;
5004
5015
  followUpQuery: string;
5005
5016
  respondToQuery: string;
5017
+ hmctsStaff: string;
5006
5018
  enableServiceSpecificMultiFollowups: string[];
5007
5019
  currentJurisdictionId: string;
5008
5020
  isMultipleFollowUpEnabled: boolean;
@@ -5024,6 +5036,7 @@ declare class QueryListComponent implements OnChanges {
5024
5036
  selectedQuery: EventEmitter<QueryListItem>;
5025
5037
  queryListData: QueryListData | undefined;
5026
5038
  displayedColumns: QueryListColumn[];
5039
+ hmctsStaff: string;
5027
5040
  ngOnChanges(simpleChanges: SimpleChanges): void;
5028
5041
  sortTable(col: QueryListColumn): void;
5029
5042
  getAriaSortHeaderValue(col: QueryListColumn): 'ascending' | 'descending' | 'none';
@@ -5068,6 +5081,8 @@ declare class QueryManagementService {
5068
5081
  caseQueriesCollections: CaseQueriesCollection[];
5069
5082
  fieldId: string;
5070
5083
  constructor(router: Router, sessionStorageService: SessionStorageService);
5084
+ isInternalUser(): boolean;
5085
+ isJudiciaryUser(): boolean;
5071
5086
  generateCaseQueriesCollectionData(formGroup: FormGroup, queryCreateContext: QueryCreateContext, queryItem: QueryListItem, messageId?: string): QmCaseQueriesCollection;
5072
5087
  setCaseQueriesCollectionData(eventData: CaseEventTrigger, queryCreateContext: QueryCreateContext, caseDetails: CaseView, messageId?: string): void;
5073
5088
  private resolveFieldId;
@@ -5188,6 +5203,7 @@ declare class QueryCheckYourAnswersComponent implements OnInit, OnDestroy {
5188
5203
  callbackConfirmationMessage: EventEmitter<{
5189
5204
  [key: string]: string;
5190
5205
  }>;
5206
+ createEventResponse: EventEmitter<CaseQueriesCollection>;
5191
5207
  private caseViewTrigger;
5192
5208
  caseDetails: CaseView;
5193
5209
  private queryId;
@@ -5218,7 +5234,7 @@ declare class QueryCheckYourAnswersComponent implements OnInit, OnDestroy {
5218
5234
  isServiceErrorFound(error: any): boolean;
5219
5235
  setCaseQueriesCollectionData(): void;
5220
5236
  static ɵfac: i0.ɵɵFactoryDeclaration<QueryCheckYourAnswersComponent, never>;
5221
- static ɵcmp: i0.ɵɵComponentDeclaration<QueryCheckYourAnswersComponent, "ccd-query-check-your-answers", never, { "formGroup": { "alias": "formGroup"; "required": false; }; "queryItem": { "alias": "queryItem"; "required": false; }; "queryCreateContext": { "alias": "queryCreateContext"; "required": false; }; "eventData": { "alias": "eventData"; "required": false; }; "multipleFollowUpFeature": { "alias": "multipleFollowUpFeature"; "required": false; }; "qmCaseQueriesCollectionData": { "alias": "qmCaseQueriesCollectionData"; "required": false; }; }, { "backClicked": "backClicked"; "querySubmitted": "querySubmitted"; "callbackConfirmationMessage": "callbackConfirmationMessage"; }, never, never, false, never>;
5237
+ static ɵcmp: i0.ɵɵComponentDeclaration<QueryCheckYourAnswersComponent, "ccd-query-check-your-answers", never, { "formGroup": { "alias": "formGroup"; "required": false; }; "queryItem": { "alias": "queryItem"; "required": false; }; "queryCreateContext": { "alias": "queryCreateContext"; "required": false; }; "eventData": { "alias": "eventData"; "required": false; }; "multipleFollowUpFeature": { "alias": "multipleFollowUpFeature"; "required": false; }; "qmCaseQueriesCollectionData": { "alias": "qmCaseQueriesCollectionData"; "required": false; }; }, { "backClicked": "backClicked"; "querySubmitted": "querySubmitted"; "callbackConfirmationMessage": "callbackConfirmationMessage"; "createEventResponse": "createEventResponse"; }, never, never, false, never>;
5222
5238
  }
5223
5239
 
5224
5240
  declare class QueryWriteAddDocumentsComponent implements OnInit, AfterViewInit, OnDestroy {
@@ -5298,18 +5314,26 @@ declare class QueryEventCompletionComponent {
5298
5314
 
5299
5315
  declare class QueryConfirmationComponent implements OnInit {
5300
5316
  private readonly route;
5317
+ private readonly sessionStorageService;
5301
5318
  queryCreateContext: QueryCreateContext;
5302
5319
  callbackConfirmationMessageText: {
5303
5320
  [key: string]: string;
5304
5321
  };
5322
+ eventResponseData: CaseQueriesCollection;
5305
5323
  caseId: string;
5306
5324
  jurisdiction: string;
5307
5325
  caseType: string;
5308
5326
  queryCreateContextEnum: typeof QueryCreateContext;
5309
- constructor(route: ActivatedRoute);
5327
+ isHmctsStaffRaisedQuery: string;
5328
+ isHmctsStaff: string;
5329
+ queryListData: QueryListData | undefined;
5330
+ constructor(route: ActivatedRoute, sessionStorageService: SessionStorageService);
5310
5331
  ngOnInit(): void;
5332
+ isInternalUser(): boolean;
5333
+ isJudiciaryUser(): boolean;
5334
+ resolveHmctsStaffRaisedQuery(): void;
5311
5335
  static ɵfac: i0.ɵɵFactoryDeclaration<QueryConfirmationComponent, never>;
5312
- static ɵcmp: i0.ɵɵComponentDeclaration<QueryConfirmationComponent, "ccd-query-confirmation", never, { "queryCreateContext": { "alias": "queryCreateContext"; "required": false; }; "callbackConfirmationMessageText": { "alias": "callbackConfirmationMessageText"; "required": false; }; }, {}, never, never, false, never>;
5336
+ static ɵcmp: i0.ɵɵComponentDeclaration<QueryConfirmationComponent, "ccd-query-confirmation", never, { "queryCreateContext": { "alias": "queryCreateContext"; "required": false; }; "callbackConfirmationMessageText": { "alias": "callbackConfirmationMessageText"; "required": false; }; "eventResponseData": { "alias": "eventResponseData"; "required": false; }; }, {}, never, never, false, never>;
5313
5337
  }
5314
5338
 
5315
5339
  declare class CloseQueryComponent {
@@ -6963,6 +6987,7 @@ declare class CaseFullAccessViewComponent implements OnInit, OnDestroy, OnChange
6963
6987
  private readonly loadingService;
6964
6988
  private readonly linkedCasesService;
6965
6989
  private readonly caseFlagStateService;
6990
+ private zone;
6966
6991
  static readonly ORIGIN_QUERY_PARAM = "origin";
6967
6992
  static readonly TRIGGER_TEXT_START = "Go";
6968
6993
  static readonly TRIGGER_TEXT_CONTINUE = "Ignore Warning and Go";
@@ -6999,12 +7024,15 @@ declare class CaseFullAccessViewComponent implements OnInit, OnDestroy, OnChange
6999
7024
  isEventButtonClicked: boolean;
7000
7025
  callbackErrorsSubject: Observable<any>;
7001
7026
  tabGroup: MatLegacyTabGroup;
7002
- constructor(ngZone: NgZone, route: ActivatedRoute, router: Router, navigationNotifierService: NavigationNotifierService, orderService: OrderService, activityPollingService: ActivityPollingService, dialog: MatLegacyDialog, alertService: AlertService, draftService: DraftService, errorNotifierService: ErrorNotifierService, convertHrefToRouterService: ConvertHrefToRouterService, location: Location$1, crf: ChangeDetectorRef, sessionStorageService: SessionStorageService, rpxTranslationPipe: RpxTranslatePipe, loadingService: LoadingService, linkedCasesService: LinkedCasesService, caseFlagStateService: CaseFlagStateService);
7027
+ constructor(ngZone: NgZone, route: ActivatedRoute, router: Router, navigationNotifierService: NavigationNotifierService, orderService: OrderService, activityPollingService: ActivityPollingService, dialog: MatLegacyDialog, alertService: AlertService, draftService: DraftService, errorNotifierService: ErrorNotifierService, convertHrefToRouterService: ConvertHrefToRouterService, location: Location$1, crf: ChangeDetectorRef, sessionStorageService: SessionStorageService, rpxTranslationPipe: RpxTranslatePipe, loadingService: LoadingService, linkedCasesService: LinkedCasesService, caseFlagStateService: CaseFlagStateService, zone: NgZone);
7003
7028
  ngOnInit(): void;
7004
7029
  ngOnChanges(changes: SimpleChanges): void;
7005
7030
  isPrintEnabled(): boolean;
7006
7031
  ngOnDestroy(): void;
7007
7032
  unsubscribe(subscription: any): void;
7033
+ private normalizeLabel;
7034
+ private getAbsoluteTabIndexByLabel;
7035
+ private selectTabByLabel;
7008
7036
  private checkRouteAndSetCaseViewTab;
7009
7037
  postViewActivity(): Observable<Activity[]>;
7010
7038
  clearErrorsAndWarnings(): void;