@hmcts/opal-frontend-common 0.0.82 → 0.0.83
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/fesm2022/{hmcts-opal-frontend-common-access-denied.component-BmYd1bi0.mjs → hmcts-opal-frontend-common-access-denied.component-DNNxndx-.mjs} +4 -4
- package/fesm2022/{hmcts-opal-frontend-common-account-created.component-C3H-7SSy.mjs → hmcts-opal-frontend-common-account-created.component-3MER1dhS.mjs} +4 -4
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-account-summary-base.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-creditor-details-base.mjs +94 -0
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-form-alias-base.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-form-array-base.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-form-array-removal-base.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-form-base.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-nested-form-base.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-sortable-table-pagination.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-sortable-table.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-table-filter.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-alphagov-alphagov-accessible-autocomplete.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-account-information-custom-account-information-item-custom-account-information-item-label.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-account-information-custom-account-information-item-custom-account-information-item-value.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-account-information-custom-account-information-item.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-account-information.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-action-links.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-horizontal-scroll-pane.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-page-header.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-scrollable-panes-custom-scrollable-panes-inner-pane.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-scrollable-panes.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-summary-metric-bar-custom-summary-metric-bar-item-custom-summary-metric-bar-item-label.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-summary-metric-bar-custom-summary-metric-bar-item-custom-summary-metric-bar-item-value.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-summary-metric-bar-custom-summary-metric-bar-item.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-summary-metric-bar.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-vertical-scroll-pane-custom-vertical-scroll-pane-inner-pane.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-vertical-scroll-pane-custom-vertical-scroll-pane-outer-pane.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-vertical-scroll-pane.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-accordion.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-back-link.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-button.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-cancel-link.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-checkboxes.mjs +12 -12
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-date-input.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-details.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-error-summary.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-footer.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-header.mjs +6 -6
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-heading-with-caption.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-inset-text.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-list-govuk-list-link.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-list.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-notification-banner.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-pagination.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-panel.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-radio.mjs +12 -12
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-select.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-summary-card-list.mjs +6 -6
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-summary-list.mjs +12 -12
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-table.mjs +12 -12
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-tabs-govuk-tabs-list-item.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-tabs-govuk-tabs-panel.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-tabs.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-tag.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-task-list.mjs +6 -6
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-text-area.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-text-input-prefix-suffix.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-text-input.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-hod-hod-loading-spinner.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-alert.mjs +21 -21
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-badge.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-button-menu-moj-button-menu-item.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-button-menu.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-date-picker.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-header.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-option-moj-filter-panel-option-form-group-item.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-option-moj-filter-panel-option-form-group-keyword.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-option.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-selected-moj-filter-panel-selected-tag.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-selected.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-filter.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-header.mjs +6 -6
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-inset-text.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-notification-badge.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-page-header.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-pagination.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-primary-navigation.mjs +6 -6
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-sortable-table.mjs +18 -18
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-sub-navigation.mjs +6 -6
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-ticket-panel.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-timeline.mjs +6 -6
- package/fesm2022/{hmcts-opal-frontend-common-concurrency-failure.component-B8CscTtd.mjs → hmcts-opal-frontend-common-concurrency-failure.component-UnC_Qex5.mjs} +4 -4
- package/fesm2022/hmcts-opal-frontend-common-directives-capitalisation.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-directives-govuk-button.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-directives-moj-multi-select.mjs +6 -6
- package/fesm2022/{hmcts-opal-frontend-common-internal-server-error.component-5ajJPoEg.mjs → hmcts-opal-frontend-common-internal-server-error.component-BiZRHHHQ.mjs} +4 -4
- package/fesm2022/{hmcts-opal-frontend-common-pages-access-denied.component-BmYd1bi0.mjs → hmcts-opal-frontend-common-pages-access-denied.component-DNNxndx-.mjs} +4 -4
- package/fesm2022/{hmcts-opal-frontend-common-pages-account-created.component-C3H-7SSy.mjs → hmcts-opal-frontend-common-pages-account-created.component-3MER1dhS.mjs} +4 -4
- package/fesm2022/{hmcts-opal-frontend-common-pages-concurrency-failure.component-B8CscTtd.mjs → hmcts-opal-frontend-common-pages-concurrency-failure.component-UnC_Qex5.mjs} +4 -4
- package/fesm2022/hmcts-opal-frontend-common-pages-dashboard-page.mjs +3 -3
- package/fesm2022/{hmcts-opal-frontend-common-pages-internal-server-error.component-5ajJPoEg.mjs → hmcts-opal-frontend-common-pages-internal-server-error.component-BiZRHHHQ.mjs} +4 -4
- package/fesm2022/{hmcts-opal-frontend-common-pages-permission-denied.component-CU0GdW2q.mjs → hmcts-opal-frontend-common-pages-permission-denied.component-ClXrjyA5.mjs} +4 -4
- package/fesm2022/{hmcts-opal-frontend-common-pages-sign-in-stub.component-9kcPMM4G.mjs → hmcts-opal-frontend-common-pages-sign-in-stub.component-Cxvc5NV2.mjs} +4 -4
- package/fesm2022/{hmcts-opal-frontend-common-pages-sign-in.component-BKSMH_-X.mjs → hmcts-opal-frontend-common-pages-sign-in.component-dBd0gJTr.mjs} +4 -4
- package/fesm2022/hmcts-opal-frontend-common-pages.mjs +6 -6
- package/fesm2022/{hmcts-opal-frontend-common-permission-denied.component-CU0GdW2q.mjs → hmcts-opal-frontend-common-permission-denied.component-ClXrjyA5.mjs} +4 -4
- package/fesm2022/hmcts-opal-frontend-common-pipes-date-format.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-pipes-days-ago.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-pipes-monetary.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-pipes-national-insurance.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-resolvers-title.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-services-app-initializer-service.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-services-app-insights-service.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-services-auth-service.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-services-date-service.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-services-launch-darkly-service.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-services-opal-user-service.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-services-permissions-service.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-services-session-service.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-services-sort-service.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-services-transfer-state-service.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-services-transformation-service.mjs +3 -3
- package/fesm2022/hmcts-opal-frontend-common-services-utils-service.mjs +3 -3
- package/fesm2022/{hmcts-opal-frontend-common-sign-in-stub.component-9kcPMM4G.mjs → hmcts-opal-frontend-common-sign-in-stub.component-Cxvc5NV2.mjs} +4 -4
- package/fesm2022/{hmcts-opal-frontend-common-sign-in.component-CwPMH29c.mjs → hmcts-opal-frontend-common-sign-in.component-jf34_3Vv.mjs} +4 -4
- package/fesm2022/hmcts-opal-frontend-common.mjs +6 -6
- package/package.json +6 -1
- package/types/hmcts-opal-frontend-common-components-abstract-abstract-creditor-details-base.d.ts +83 -0
package/types/hmcts-opal-frontend-common-components-abstract-abstract-creditor-details-base.d.ts
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { AbstractAccountSummaryBaseComponent } from '@hmcts/opal-frontend-common/components/abstract/abstract-account-summary-base';
|
|
5
|
+
import { ITransformItem } from '@hmcts/opal-frontend-common/services/transformation-service/interfaces';
|
|
6
|
+
|
|
7
|
+
interface CreditorDetailsAccountStore {
|
|
8
|
+
account_id(): number | string | null | undefined;
|
|
9
|
+
business_unit_id(): number | string | null | undefined;
|
|
10
|
+
clearSuccessMessage(): void;
|
|
11
|
+
compareVersion(version: string | null): void;
|
|
12
|
+
setHasVersionMismatch(value: boolean): void;
|
|
13
|
+
setSuccessMessage(message: string | null): void;
|
|
14
|
+
}
|
|
15
|
+
interface CreditorDetailsPayloadTransformer {
|
|
16
|
+
transformPayload<T extends {
|
|
17
|
+
[key: string]: unknown;
|
|
18
|
+
}>(payload: T, transformItemsConfig: ITransformItem[]): T;
|
|
19
|
+
}
|
|
20
|
+
declare abstract class AbstractCreditorDetailsBaseComponent<THeader, TTab extends {
|
|
21
|
+
version: string | null;
|
|
22
|
+
}> extends AbstractAccountSummaryBaseComponent<THeader, TTab> implements OnInit, OnDestroy {
|
|
23
|
+
protected abstract readonly headerDataRouteKey: string;
|
|
24
|
+
protected abstract readonly defaultActiveTab: string;
|
|
25
|
+
protected abstract readonly transformItemsConfig: ITransformItem[];
|
|
26
|
+
protected abstract readonly latestBannerMessage: string;
|
|
27
|
+
protected abstract readonly permissions: Record<string, number>;
|
|
28
|
+
protected abstract readonly payloadTransformer: CreditorDetailsPayloadTransformer;
|
|
29
|
+
abstract readonly accountStore: CreditorDetailsAccountStore;
|
|
30
|
+
accountId: number;
|
|
31
|
+
/**
|
|
32
|
+
* Gets the active account ID from the consuming application's route shape.
|
|
33
|
+
* @returns The active account ID from the route.
|
|
34
|
+
*/
|
|
35
|
+
protected abstract getAccountIdFromRoute(): number;
|
|
36
|
+
/**
|
|
37
|
+
* Fetches tab data through the shared summary cache flow and applies account version comparison.
|
|
38
|
+
* @param serviceCall The typed service call used to retrieve tab data.
|
|
39
|
+
* @returns The tab data observable with the caller's concrete tab type preserved.
|
|
40
|
+
*/
|
|
41
|
+
protected fetchTabDataTyped<T extends TTab>(serviceCall: Observable<T>): Observable<T>;
|
|
42
|
+
/**
|
|
43
|
+
* Reads creditor heading data resolved on the route, transforms it for display and store state,
|
|
44
|
+
* and sets the active tab from the URL fragment.
|
|
45
|
+
*/
|
|
46
|
+
protected getHeaderDataFromRoute(): void;
|
|
47
|
+
/**
|
|
48
|
+
* Transforms payload data using the consuming application's transformation service and configuration.
|
|
49
|
+
* @param payload The payload to transform using the configured payload transformer.
|
|
50
|
+
* @returns The transformed payload.
|
|
51
|
+
*/
|
|
52
|
+
protected transformPayload<T>(payload: T): T;
|
|
53
|
+
/**
|
|
54
|
+
* Transforms creditor heading data from the API shape into the view shape.
|
|
55
|
+
* @param header The creditor heading data to transform.
|
|
56
|
+
* @returns The transformed creditor heading data for display.
|
|
57
|
+
*/
|
|
58
|
+
protected transformHeaderForView(header: THeader): THeader;
|
|
59
|
+
/**
|
|
60
|
+
* Transforms creditor tab data from the API shape into the view shape.
|
|
61
|
+
* @param data The tab data to transform.
|
|
62
|
+
* @returns The transformed tab data with the original tab type preserved.
|
|
63
|
+
*/
|
|
64
|
+
protected transformTabData<T extends TTab>(data: T): T;
|
|
65
|
+
/**
|
|
66
|
+
* Refreshes the current creditor summary page and updates store state after the latest header is loaded.
|
|
67
|
+
*/
|
|
68
|
+
refreshPage(): void;
|
|
69
|
+
/**
|
|
70
|
+
* Checks whether the current user has the requested permission for the active account business unit.
|
|
71
|
+
* @param permissionKey The key used to look up the permission ID.
|
|
72
|
+
* @returns True when the user has the permission for the account business unit.
|
|
73
|
+
*/
|
|
74
|
+
hasBusinessUnitPermissionKey(permissionKey: string): boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Clears transient account summary store flags before the component is destroyed.
|
|
77
|
+
*/
|
|
78
|
+
ngOnDestroy(): void;
|
|
79
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractCreditorDetailsBaseComponent<any, any>, never>;
|
|
80
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractCreditorDetailsBaseComponent<any, any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export { AbstractCreditorDetailsBaseComponent };
|