@hmcts/opal-frontend-common 0.0.108 → 0.0.110
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-DuQgLlU6.mjs +57 -0
- package/fesm2022/hmcts-opal-frontend-common-account-created.component-DtlFlzU9.mjs +47 -0
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-account-summary-base.mjs +73 -81
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-creditor-details-base.mjs +71 -92
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-form-alias-base-interfaces.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-form-alias-base.mjs +133 -233
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-form-array-base-interfaces.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-form-array-base.mjs +123 -251
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-form-array-parent-base.mjs +24 -43
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-form-array-removal-base-interfaces.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-form-array-removal-base.mjs +66 -94
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-form-base-interfaces.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-form-base.mjs +340 -616
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-form-parent-base.mjs +25 -61
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-nested-form-base.mjs +88 -142
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-report-instances-table-base.mjs +48 -29
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-report-summary-list-base-constants.mjs +14 -19
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-report-summary-list-base-interfaces.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-report-summary-list-base-types.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-report-summary-list-base.mjs +144 -273
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-sortable-table-interfaces.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-sortable-table-pagination.mjs +104 -129
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-sortable-table-types.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-sortable-table.mjs +123 -204
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-tab-data.mjs +35 -121
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-table-filter-interfaces.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-table-filter-types.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-table-filter.mjs +111 -183
- package/fesm2022/hmcts-opal-frontend-common-components-abstract-interfaces.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-components-alphagov-alphagov-accessible-autocomplete-interfaces.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-components-alphagov-alphagov-accessible-autocomplete.mjs +278 -263
- package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-accessible-monetary.mjs +66 -53
- package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-account-information-custom-account-information-item-custom-account-information-item-label.mjs +44 -21
- package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-account-information-custom-account-information-item-custom-account-information-item-value.mjs +44 -21
- package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-account-information-custom-account-information-item.mjs +54 -27
- package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-account-information.mjs +38 -17
- package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-action-links.mjs +70 -37
- package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-deferred-live-region-announcement.mjs +109 -119
- package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-horizontal-scroll-pane.mjs +38 -17
- package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-page-header.mjs +40 -17
- package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-scrollable-panes-custom-scrollable-panes-inner-pane.mjs +66 -27
- package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-scrollable-panes.mjs +44 -21
- package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-summary-metric-bar-custom-summary-metric-bar-item-custom-summary-metric-bar-item-label.mjs +54 -27
- package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-summary-metric-bar-custom-summary-metric-bar-item-custom-summary-metric-bar-item-value.mjs +54 -27
- package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-summary-metric-bar-custom-summary-metric-bar-item.mjs +67 -42
- package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-summary-metric-bar.mjs +40 -17
- package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-vertical-scroll-pane-custom-vertical-scroll-pane-inner-pane.mjs +66 -27
- package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-vertical-scroll-pane-custom-vertical-scroll-pane-outer-pane.mjs +42 -21
- package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-vertical-scroll-pane.mjs +36 -17
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-accordion.mjs +125 -119
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-back-link.mjs +46 -30
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-button.mjs +72 -39
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-cancel-link.mjs +54 -34
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-checkboxes-interfaces.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-checkboxes.mjs +303 -134
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-date-input-interfaces.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-date-input.mjs +163 -79
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-details.mjs +45 -21
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-error-summary.mjs +49 -33
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-footer-interfaces.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-footer.mjs +42 -20
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-header-interfaces.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-header.mjs +103 -41
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-heading-with-caption-types.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-heading-with-caption.mjs +90 -39
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-inset-text.mjs +60 -26
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-list-govuk-list-link.mjs +53 -30
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-list.mjs +36 -17
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-notification-banner.mjs +75 -44
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-pagination.mjs +80 -85
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-panel.mjs +53 -25
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-radio-interfaces.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-radio.mjs +397 -267
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-select-interfaces.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-select.mjs +164 -80
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-summary-card-list.mjs +153 -85
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-summary-list.mjs +246 -121
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-table.mjs +224 -90
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-tabs-govuk-tabs-list-item.mjs +99 -76
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-tabs-govuk-tabs-panel.mjs +78 -51
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-tabs.mjs +79 -72
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-tag.mjs +55 -25
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-task-list.mjs +112 -46
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-text-area.mjs +185 -104
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-text-input-prefix-suffix.mjs +165 -95
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-text-input.mjs +151 -81
- package/fesm2022/hmcts-opal-frontend-common-components-govuk-helpers.mjs +5 -16
- package/fesm2022/hmcts-opal-frontend-common-components-hod-hod-loading-spinner.mjs +65 -32
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-alert.mjs +396 -243
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-badge.mjs +55 -25
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-button-menu-moj-button-menu-item.mjs +53 -28
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-button-menu.mjs +92 -60
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-date-picker.mjs +216 -165
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-header.mjs +44 -21
- 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 +64 -42
- 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 +68 -47
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-option.mjs +52 -33
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-selected-moj-filter-panel-selected-tag.mjs +61 -40
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-selected.mjs +63 -42
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel.mjs +38 -17
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-filter.mjs +56 -34
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-header-interfaces.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-header.mjs +100 -41
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-inset-text.mjs +62 -26
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-notification-badge.mjs +46 -21
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-page-header.mjs +47 -21
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-pagination.mjs +119 -164
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-primary-navigation.mjs +225 -172
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-sortable-table.mjs +355 -188
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-sub-navigation.mjs +152 -96
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-ticket-panel.mjs +61 -29
- package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-timeline.mjs +74 -26
- package/fesm2022/hmcts-opal-frontend-common-concurrency-failure.component-BqsP0gj2.mjs +41 -0
- package/fesm2022/hmcts-opal-frontend-common-constants.mjs +7 -13
- package/fesm2022/hmcts-opal-frontend-common-directives-capitalisation.mjs +55 -43
- package/fesm2022/hmcts-opal-frontend-common-directives-govuk-button.mjs +86 -60
- package/fesm2022/hmcts-opal-frontend-common-directives-moj-multi-select.mjs +184 -223
- package/fesm2022/hmcts-opal-frontend-common-directives-trim-leading-trailing-whitespace.mjs +56 -40
- package/fesm2022/hmcts-opal-frontend-common-guards-account.mjs +17 -37
- package/fesm2022/hmcts-opal-frontend-common-guards-auth.mjs +30 -41
- package/fesm2022/hmcts-opal-frontend-common-guards-business-unit-route-permissions.mjs +31 -90
- package/fesm2022/hmcts-opal-frontend-common-guards-can-deactivate-interfaces.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-guards-can-deactivate-types.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-guards-can-deactivate.mjs +3 -9
- package/fesm2022/hmcts-opal-frontend-common-guards-feature-flag.mjs +29 -64
- package/fesm2022/hmcts-opal-frontend-common-guards-has-flow-state.mjs +13 -20
- package/fesm2022/hmcts-opal-frontend-common-guards-has-url-state-match.mjs +19 -48
- package/fesm2022/hmcts-opal-frontend-common-guards-helpers.mjs +21 -54
- package/fesm2022/hmcts-opal-frontend-common-guards-route-permissions.mjs +20 -30
- package/fesm2022/hmcts-opal-frontend-common-guards-signed-in.mjs +13 -24
- package/fesm2022/hmcts-opal-frontend-common-guards-types.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-interceptors-content-digest.mjs +59 -107
- package/fesm2022/hmcts-opal-frontend-common-interceptors-http-error-constants.mjs +11 -17
- package/fesm2022/hmcts-opal-frontend-common-interceptors-http-error-interfaces.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-interceptors-http-error.mjs +74 -148
- package/fesm2022/hmcts-opal-frontend-common-interceptors-http-retry-constants.mjs +18 -13
- package/fesm2022/hmcts-opal-frontend-common-interceptors-http-retry-interfaces.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-interceptors-http-retry.mjs +65 -134
- package/fesm2022/hmcts-opal-frontend-common-internal-server-error.component-8EP_PgKk.mjs +55 -0
- package/fesm2022/hmcts-opal-frontend-common-pages-access-denied.component-DuQgLlU6.mjs +57 -0
- package/fesm2022/hmcts-opal-frontend-common-pages-account-created.component-DtlFlzU9.mjs +47 -0
- package/fesm2022/hmcts-opal-frontend-common-pages-concurrency-failure.component-BqsP0gj2.mjs +41 -0
- package/fesm2022/hmcts-opal-frontend-common-pages-dashboard-page-interfaces.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-pages-dashboard-page.mjs +112 -62
- package/fesm2022/hmcts-opal-frontend-common-pages-internal-server-error.component-8EP_PgKk.mjs +55 -0
- package/fesm2022/hmcts-opal-frontend-common-pages-permission-denied.component-B3EkD8uw.mjs +41 -0
- package/fesm2022/hmcts-opal-frontend-common-pages-routing-constants.mjs +22 -27
- package/fesm2022/hmcts-opal-frontend-common-pages-routing-interfaces.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-pages-sign-in-stub.component-CT2Bh7gD.mjs +127 -0
- package/fesm2022/hmcts-opal-frontend-common-pages-sign-in.component-BxpouMug.mjs +55 -0
- package/fesm2022/hmcts-opal-frontend-common-pages.mjs +51 -52
- package/fesm2022/hmcts-opal-frontend-common-permission-denied.component-B3EkD8uw.mjs +41 -0
- package/fesm2022/hmcts-opal-frontend-common-pipes-date-format.mjs +41 -28
- package/fesm2022/hmcts-opal-frontend-common-pipes-days-ago.mjs +43 -40
- package/fesm2022/hmcts-opal-frontend-common-pipes-monetary.mjs +43 -39
- package/fesm2022/hmcts-opal-frontend-common-pipes-national-insurance.mjs +41 -29
- package/fesm2022/hmcts-opal-frontend-common-resolvers-title.mjs +37 -25
- package/fesm2022/hmcts-opal-frontend-common-services-app-initializer-service.mjs +68 -91
- package/fesm2022/hmcts-opal-frontend-common-services-app-insights-service.mjs +74 -65
- package/fesm2022/hmcts-opal-frontend-common-services-auth-service-constants.mjs +6 -10
- package/fesm2022/hmcts-opal-frontend-common-services-auth-service-interfaces.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-services-auth-service.mjs +49 -42
- package/fesm2022/hmcts-opal-frontend-common-services-date-service-interfaces.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-services-date-service.mjs +118 -233
- package/fesm2022/hmcts-opal-frontend-common-services-history-transformation-service.mjs +185 -484
- package/fesm2022/hmcts-opal-frontend-common-services-launch-darkly-service-mocks.mjs +12 -11
- package/fesm2022/hmcts-opal-frontend-common-services-launch-darkly-service.mjs +77 -115
- package/fesm2022/hmcts-opal-frontend-common-services-opal-user-service-interfaces.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-services-opal-user-service-mocks.mjs +150 -159
- package/fesm2022/hmcts-opal-frontend-common-services-opal-user-service.mjs +119 -202
- package/fesm2022/hmcts-opal-frontend-common-services-permissions-service.mjs +47 -68
- package/fesm2022/hmcts-opal-frontend-common-services-session-service-constants.mjs +3 -9
- package/fesm2022/hmcts-opal-frontend-common-services-session-service-interfaces.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-services-session-service-mocks.mjs +4 -8
- package/fesm2022/hmcts-opal-frontend-common-services-session-service.mjs +50 -40
- package/fesm2022/hmcts-opal-frontend-common-services-sort-service-interfaces.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-services-sort-service.mjs +56 -96
- package/fesm2022/hmcts-opal-frontend-common-services-transfer-state-service-interfaces.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-services-transfer-state-service-mocks.mjs +19 -26
- package/fesm2022/hmcts-opal-frontend-common-services-transfer-state-service.mjs +71 -99
- package/fesm2022/hmcts-opal-frontend-common-services-transformation-service-constants.mjs +4 -8
- package/fesm2022/hmcts-opal-frontend-common-services-transformation-service-interfaces.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-services-transformation-service.mjs +65 -106
- package/fesm2022/hmcts-opal-frontend-common-services-utils-service.mjs +102 -193
- package/fesm2022/hmcts-opal-frontend-common-sign-in-stub.component-CT2Bh7gD.mjs +127 -0
- package/fesm2022/hmcts-opal-frontend-common-sign-in.component-Dz97ji3i.mjs +55 -0
- package/fesm2022/hmcts-opal-frontend-common-stores-global-constants.mjs +6 -10
- package/fesm2022/hmcts-opal-frontend-common-stores-global-interfaces.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-stores-global-types.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-stores-global.mjs +52 -57
- package/fesm2022/hmcts-opal-frontend-common-types.mjs +0 -4
- package/fesm2022/hmcts-opal-frontend-common-validators-amount.mjs +7 -18
- package/fesm2022/hmcts-opal-frontend-common-validators-date-after-year.mjs +8 -15
- package/fesm2022/hmcts-opal-frontend-common-validators-date-before.mjs +9 -18
- package/fesm2022/hmcts-opal-frontend-common-validators-date-of-birth.mjs +13 -21
- package/fesm2022/hmcts-opal-frontend-common-validators-future-date.mjs +9 -18
- package/fesm2022/hmcts-opal-frontend-common-validators-invalid-value.mjs +6 -12
- package/fesm2022/hmcts-opal-frontend-common-validators-national-insurance-number.mjs +9 -17
- package/fesm2022/hmcts-opal-frontend-common-validators-non-negative-value.mjs +10 -26
- package/fesm2022/hmcts-opal-frontend-common-validators-non-zero-value.mjs +10 -26
- package/fesm2022/hmcts-opal-frontend-common-validators-optional-max-length.mjs +7 -14
- package/fesm2022/hmcts-opal-frontend-common-validators-optional-valid-date.mjs +13 -26
- package/fesm2022/hmcts-opal-frontend-common-validators-optional-valid-telephone.mjs +12 -17
- package/fesm2022/hmcts-opal-frontend-common-validators-over-eighteen.mjs +19 -48
- package/fesm2022/hmcts-opal-frontend-common-validators-past-date.mjs +11 -19
- package/fesm2022/hmcts-opal-frontend-common-validators-pattern-validator.mjs +7 -26
- package/fesm2022/hmcts-opal-frontend-common-validators-valid-value.mjs +6 -12
- package/fesm2022/hmcts-opal-frontend-common.mjs +56 -76
- package/package.json +3 -3
- package/types/hmcts-opal-frontend-common-components-abstract-abstract-account-summary-base.d.ts +95 -104
- package/types/hmcts-opal-frontend-common-components-abstract-abstract-creditor-details-base.d.ts +75 -78
- package/types/hmcts-opal-frontend-common-components-abstract-abstract-form-alias-base-interfaces.d.ts +4 -7
- package/types/hmcts-opal-frontend-common-components-abstract-abstract-form-alias-base.d.ts +123 -126
- package/types/hmcts-opal-frontend-common-components-abstract-abstract-form-array-base-interfaces.d.ts +4 -7
- package/types/hmcts-opal-frontend-common-components-abstract-abstract-form-array-base.d.ts +156 -159
- package/types/hmcts-opal-frontend-common-components-abstract-abstract-form-array-parent-base.d.ts +13 -16
- package/types/hmcts-opal-frontend-common-components-abstract-abstract-form-array-removal-base-interfaces.d.ts +5 -7
- package/types/hmcts-opal-frontend-common-components-abstract-abstract-form-array-removal-base.d.ts +46 -50
- package/types/hmcts-opal-frontend-common-components-abstract-abstract-form-base-interfaces.d.ts +27 -35
- package/types/hmcts-opal-frontend-common-components-abstract-abstract-form-base.d.ts +323 -328
- package/types/hmcts-opal-frontend-common-components-abstract-abstract-form-parent-base.d.ts +33 -36
- package/types/hmcts-opal-frontend-common-components-abstract-abstract-nested-form-base.d.ts +75 -78
- package/types/hmcts-opal-frontend-common-components-abstract-abstract-report-instances-table-base.d.ts +15 -13
- package/types/hmcts-opal-frontend-common-components-abstract-abstract-report-summary-list-base-constants.d.ts +16 -19
- package/types/hmcts-opal-frontend-common-components-abstract-abstract-report-summary-list-base-interfaces.d.ts +23 -30
- package/types/hmcts-opal-frontend-common-components-abstract-abstract-report-summary-list-base-types.d.ts +1 -3
- package/types/hmcts-opal-frontend-common-components-abstract-abstract-report-summary-list-base.d.ts +179 -188
- package/types/hmcts-opal-frontend-common-components-abstract-abstract-sortable-table-interfaces.d.ts +6 -9
- package/types/hmcts-opal-frontend-common-components-abstract-abstract-sortable-table-pagination.d.ts +66 -66
- package/types/hmcts-opal-frontend-common-components-abstract-abstract-sortable-table-types.d.ts +2 -5
- package/types/hmcts-opal-frontend-common-components-abstract-abstract-sortable-table.d.ts +112 -113
- package/types/hmcts-opal-frontend-common-components-abstract-abstract-tab-data.d.ts +83 -86
- package/types/hmcts-opal-frontend-common-components-abstract-abstract-table-filter-interfaces.d.ts +12 -15
- package/types/hmcts-opal-frontend-common-components-abstract-abstract-table-filter-types.d.ts +1 -3
- package/types/hmcts-opal-frontend-common-components-abstract-abstract-table-filter.d.ts +113 -116
- package/types/hmcts-opal-frontend-common-components-abstract-interfaces.d.ts +16 -23
- package/types/hmcts-opal-frontend-common-components-alphagov-alphagov-accessible-autocomplete-interfaces.d.ts +4 -6
- package/types/hmcts-opal-frontend-common-components-alphagov-alphagov-accessible-autocomplete.d.ts +136 -93
- package/types/hmcts-opal-frontend-common-components-custom-custom-accessible-monetary.d.ts +35 -29
- package/types/hmcts-opal-frontend-common-components-custom-custom-account-information-custom-account-information-item-custom-account-information-item-label.d.ts +6 -9
- package/types/hmcts-opal-frontend-common-components-custom-custom-account-information-custom-account-information-item-custom-account-information-item-value.d.ts +6 -9
- package/types/hmcts-opal-frontend-common-components-custom-custom-account-information-custom-account-information-item.d.ts +12 -10
- package/types/hmcts-opal-frontend-common-components-custom-custom-account-information.d.ts +5 -8
- package/types/hmcts-opal-frontend-common-components-custom-custom-action-links.d.ts +18 -12
- package/types/hmcts-opal-frontend-common-components-custom-custom-deferred-live-region-announcement.d.ts +67 -57
- package/types/hmcts-opal-frontend-common-components-custom-custom-horizontal-scroll-pane.d.ts +5 -8
- package/types/hmcts-opal-frontend-common-components-custom-custom-page-header.d.ts +5 -8
- package/types/hmcts-opal-frontend-common-components-custom-custom-scrollable-panes-custom-scrollable-panes-inner-pane.d.ts +16 -10
- package/types/hmcts-opal-frontend-common-components-custom-custom-scrollable-panes.d.ts +11 -9
- package/types/hmcts-opal-frontend-common-components-custom-custom-summary-metric-bar-custom-summary-metric-bar-item-custom-summary-metric-bar-item-label.d.ts +12 -10
- package/types/hmcts-opal-frontend-common-components-custom-custom-summary-metric-bar-custom-summary-metric-bar-item-custom-summary-metric-bar-item-value.d.ts +12 -10
- package/types/hmcts-opal-frontend-common-components-custom-custom-summary-metric-bar-custom-summary-metric-bar-item.d.ts +26 -20
- package/types/hmcts-opal-frontend-common-components-custom-custom-summary-metric-bar.d.ts +5 -8
- package/types/hmcts-opal-frontend-common-components-custom-custom-vertical-scroll-pane-custom-vertical-scroll-pane-inner-pane.d.ts +16 -10
- package/types/hmcts-opal-frontend-common-components-custom-custom-vertical-scroll-pane-custom-vertical-scroll-pane-outer-pane.d.ts +11 -9
- package/types/hmcts-opal-frontend-common-components-custom-custom-vertical-scroll-pane.d.ts +5 -8
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-accordion.d.ts +72 -64
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-back-link.d.ts +16 -17
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-button.d.ts +29 -17
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-cancel-link.d.ts +22 -18
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-checkboxes-interfaces.d.ts +14 -16
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-checkboxes.d.ts +96 -43
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-date-input-interfaces.d.ts +13 -15
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-date-input.d.ts +75 -34
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-details.d.ts +11 -9
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-error-summary.d.ts +23 -19
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-footer-interfaces.d.ts +5 -7
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-footer.d.ts +14 -13
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-header-interfaces.d.ts +4 -6
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-header.d.ts +25 -23
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-heading-with-caption-types.d.ts +1 -3
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-heading-with-caption.d.ts +32 -14
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-inset-text.d.ts +16 -10
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-list-govuk-list-link.d.ts +16 -12
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-list.d.ts +5 -8
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-notification-banner.d.ts +37 -20
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-pagination.d.ts +59 -47
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-panel.d.ts +12 -10
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-radio-interfaces.d.ts +17 -20
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-radio.d.ts +162 -101
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-select-interfaces.d.ts +4 -6
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-select.d.ts +67 -26
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-summary-card-list.d.ts +67 -35
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-summary-list.d.ts +80 -47
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-table.d.ts +47 -30
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-tabs-govuk-tabs-list-item.d.ts +44 -34
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-tabs-govuk-tabs-panel.d.ts +19 -17
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-tabs.d.ts +44 -36
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-tag.d.ts +16 -10
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-task-list.d.ts +35 -17
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-text-area.d.ts +83 -29
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-text-input-prefix-suffix.d.ts +74 -28
- package/types/hmcts-opal-frontend-common-components-govuk-govuk-text-input.d.ts +65 -23
- package/types/hmcts-opal-frontend-common-components-govuk-helpers.d.ts +1 -3
- package/types/hmcts-opal-frontend-common-components-hod-hod-loading-spinner.d.ts +18 -12
- package/types/hmcts-opal-frontend-common-components-moj-moj-alert.d.ts +89 -69
- package/types/hmcts-opal-frontend-common-components-moj-moj-badge.d.ts +16 -10
- package/types/hmcts-opal-frontend-common-components-moj-moj-button-menu-moj-button-menu-item.d.ts +16 -12
- package/types/hmcts-opal-frontend-common-components-moj-moj-button-menu.d.ts +32 -26
- package/types/hmcts-opal-frontend-common-components-moj-moj-date-picker.d.ts +116 -60
- package/types/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-header.d.ts +11 -9
- package/types/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-option-moj-filter-panel-option-form-group-item.d.ts +33 -29
- package/types/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-option-moj-filter-panel-option-form-group-keyword.d.ts +34 -22
- package/types/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-option.d.ts +22 -18
- package/types/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-selected-moj-filter-panel-selected-tag.d.ts +32 -24
- package/types/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-selected.d.ts +29 -21
- package/types/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel.d.ts +5 -8
- package/types/hmcts-opal-frontend-common-components-moj-moj-filter.d.ts +23 -17
- package/types/hmcts-opal-frontend-common-components-moj-moj-header-interfaces.d.ts +4 -6
- package/types/hmcts-opal-frontend-common-components-moj-moj-header.d.ts +25 -23
- package/types/hmcts-opal-frontend-common-components-moj-moj-inset-text.d.ts +16 -10
- package/types/hmcts-opal-frontend-common-components-moj-moj-notification-badge.d.ts +11 -9
- package/types/hmcts-opal-frontend-common-components-moj-moj-page-header.d.ts +11 -9
- package/types/hmcts-opal-frontend-common-components-moj-moj-pagination.d.ts +99 -83
- package/types/hmcts-opal-frontend-common-components-moj-moj-primary-navigation.d.ts +102 -67
- package/types/hmcts-opal-frontend-common-components-moj-moj-sortable-table.d.ts +83 -51
- package/types/hmcts-opal-frontend-common-components-moj-moj-sub-navigation.d.ts +62 -42
- package/types/hmcts-opal-frontend-common-components-moj-moj-ticket-panel.d.ts +21 -11
- package/types/hmcts-opal-frontend-common-components-moj-moj-timeline.d.ts +8 -12
- package/types/hmcts-opal-frontend-common-constants.d.ts +20 -25
- package/types/hmcts-opal-frontend-common-directives-capitalisation.d.ts +17 -15
- package/types/hmcts-opal-frontend-common-directives-govuk-button.d.ts +33 -21
- package/types/hmcts-opal-frontend-common-directives-moj-multi-select.d.ts +92 -69
- package/types/hmcts-opal-frontend-common-directives-trim-leading-trailing-whitespace.d.ts +13 -11
- package/types/hmcts-opal-frontend-common-guards-account.d.ts +2 -5
- package/types/hmcts-opal-frontend-common-guards-auth.d.ts +4 -7
- package/types/hmcts-opal-frontend-common-guards-business-unit-route-permissions.d.ts +14 -19
- package/types/hmcts-opal-frontend-common-guards-can-deactivate-interfaces.d.ts +4 -7
- package/types/hmcts-opal-frontend-common-guards-can-deactivate-types.d.ts +3 -6
- package/types/hmcts-opal-frontend-common-guards-can-deactivate.d.ts +4 -8
- package/types/hmcts-opal-frontend-common-guards-feature-flag.d.ts +4 -7
- package/types/hmcts-opal-frontend-common-guards-has-flow-state.d.ts +2 -5
- package/types/hmcts-opal-frontend-common-guards-has-url-state-match.d.ts +2 -5
- package/types/hmcts-opal-frontend-common-guards-helpers.d.ts +8 -15
- package/types/hmcts-opal-frontend-common-guards-route-permissions.d.ts +2 -5
- package/types/hmcts-opal-frontend-common-guards-signed-in.d.ts +2 -5
- package/types/hmcts-opal-frontend-common-guards-types.d.ts +2 -5
- package/types/hmcts-opal-frontend-common-interceptors-content-digest.d.ts +2 -5
- package/types/hmcts-opal-frontend-common-interceptors-http-error-constants.d.ts +4 -9
- package/types/hmcts-opal-frontend-common-interceptors-http-error-interfaces.d.ts +9 -11
- package/types/hmcts-opal-frontend-common-interceptors-http-error.d.ts +2 -5
- package/types/hmcts-opal-frontend-common-interceptors-http-retry-constants.d.ts +5 -11
- package/types/hmcts-opal-frontend-common-interceptors-http-retry-interfaces.d.ts +7 -9
- package/types/hmcts-opal-frontend-common-interceptors-http-retry.d.ts +9 -15
- package/types/hmcts-opal-frontend-common-pages-dashboard-page-interfaces.d.ts +17 -21
- package/types/hmcts-opal-frontend-common-pages-dashboard-page.d.ts +89 -96
- package/types/hmcts-opal-frontend-common-pages-routing-constants.d.ts +3 -7
- package/types/hmcts-opal-frontend-common-pages-routing-interfaces.d.ts +24 -29
- package/types/hmcts-opal-frontend-common-pages.d.ts +2 -5
- package/types/hmcts-opal-frontend-common-pipes-date-format.d.ts +8 -11
- package/types/hmcts-opal-frontend-common-pipes-days-ago.d.ts +7 -10
- package/types/hmcts-opal-frontend-common-pipes-monetary.d.ts +8 -11
- package/types/hmcts-opal-frontend-common-pipes-national-insurance.d.ts +7 -10
- package/types/hmcts-opal-frontend-common-resolvers-title.d.ts +8 -11
- package/types/hmcts-opal-frontend-common-services-app-initializer-service.d.ts +37 -41
- package/types/hmcts-opal-frontend-common-services-app-insights-service.d.ts +14 -17
- package/types/hmcts-opal-frontend-common-services-auth-service-constants.d.ts +2 -5
- package/types/hmcts-opal-frontend-common-services-auth-service-interfaces.d.ts +6 -8
- package/types/hmcts-opal-frontend-common-services-auth-service.d.ts +8 -12
- package/types/hmcts-opal-frontend-common-services-date-service-interfaces.d.ts +7 -9
- package/types/hmcts-opal-frontend-common-services-date-service.d.ts +149 -153
- package/types/hmcts-opal-frontend-common-services-history-transformation-service.d.ts +104 -125
- package/types/hmcts-opal-frontend-common-services-launch-darkly-service-mocks.d.ts +13 -16
- package/types/hmcts-opal-frontend-common-services-launch-darkly-service.d.ts +46 -49
- package/types/hmcts-opal-frontend-common-services-opal-user-service-interfaces.d.ts +28 -36
- package/types/hmcts-opal-frontend-common-services-opal-user-service-mocks.d.ts +4 -9
- package/types/hmcts-opal-frontend-common-services-opal-user-service.d.ts +97 -104
- package/types/hmcts-opal-frontend-common-services-permissions-service.d.ts +33 -36
- package/types/hmcts-opal-frontend-common-services-session-service-constants.d.ts +2 -5
- package/types/hmcts-opal-frontend-common-services-session-service-interfaces.d.ts +6 -9
- package/types/hmcts-opal-frontend-common-services-session-service-mocks.d.ts +2 -5
- package/types/hmcts-opal-frontend-common-services-session-service.d.ts +17 -20
- package/types/hmcts-opal-frontend-common-services-sort-service-interfaces.d.ts +9 -13
- package/types/hmcts-opal-frontend-common-services-sort-service.d.ts +64 -67
- package/types/hmcts-opal-frontend-common-services-transfer-state-service-interfaces.d.ts +20 -26
- package/types/hmcts-opal-frontend-common-services-transfer-state-service-mocks.d.ts +11 -17
- package/types/hmcts-opal-frontend-common-services-transfer-state-service.d.ts +44 -47
- package/types/hmcts-opal-frontend-common-services-transformation-service-constants.d.ts +2 -5
- package/types/hmcts-opal-frontend-common-services-transformation-service-interfaces.d.ts +12 -14
- package/types/hmcts-opal-frontend-common-services-transformation-service.d.ts +41 -44
- package/types/hmcts-opal-frontend-common-services-utils-service.d.ts +111 -114
- package/types/hmcts-opal-frontend-common-stores-global-constants.d.ts +2 -5
- package/types/hmcts-opal-frontend-common-stores-global-interfaces.d.ts +6 -8
- package/types/hmcts-opal-frontend-common-stores-global-types.d.ts +2 -5
- package/types/hmcts-opal-frontend-common-stores-global.d.ts +52 -57
- package/types/hmcts-opal-frontend-common-types.d.ts +1 -3
- package/types/hmcts-opal-frontend-common-validators-amount.d.ts +2 -5
- package/types/hmcts-opal-frontend-common-validators-date-after-year.d.ts +2 -5
- package/types/hmcts-opal-frontend-common-validators-date-before.d.ts +2 -5
- package/types/hmcts-opal-frontend-common-validators-date-of-birth.d.ts +2 -5
- package/types/hmcts-opal-frontend-common-validators-future-date.d.ts +2 -5
- package/types/hmcts-opal-frontend-common-validators-invalid-value.d.ts +2 -5
- package/types/hmcts-opal-frontend-common-validators-national-insurance-number.d.ts +2 -5
- package/types/hmcts-opal-frontend-common-validators-non-negative-value.d.ts +2 -5
- package/types/hmcts-opal-frontend-common-validators-non-zero-value.d.ts +2 -5
- package/types/hmcts-opal-frontend-common-validators-optional-max-length.d.ts +2 -5
- package/types/hmcts-opal-frontend-common-validators-optional-valid-date.d.ts +2 -5
- package/types/hmcts-opal-frontend-common-validators-optional-valid-telephone.d.ts +2 -5
- package/types/hmcts-opal-frontend-common-validators-over-eighteen.d.ts +3 -6
- package/types/hmcts-opal-frontend-common-validators-past-date.d.ts +2 -5
- package/types/hmcts-opal-frontend-common-validators-pattern-validator.d.ts +2 -5
- package/types/hmcts-opal-frontend-common-validators-valid-value.d.ts +2 -5
- package/types/hmcts-opal-frontend-common.d.ts +23 -31
- package/fesm2022/hmcts-opal-frontend-common-access-denied.component-BDTGvQ4J.mjs +0 -21
- package/fesm2022/hmcts-opal-frontend-common-account-created.component-6jzTqXSI.mjs +0 -15
- package/fesm2022/hmcts-opal-frontend-common-concurrency-failure.component-D43W-peK.mjs +0 -14
- package/fesm2022/hmcts-opal-frontend-common-internal-server-error.component-DftC2eY-.mjs +0 -26
- package/fesm2022/hmcts-opal-frontend-common-pages-access-denied.component-BDTGvQ4J.mjs +0 -21
- package/fesm2022/hmcts-opal-frontend-common-pages-account-created.component-6jzTqXSI.mjs +0 -15
- package/fesm2022/hmcts-opal-frontend-common-pages-concurrency-failure.component-D43W-peK.mjs +0 -14
- package/fesm2022/hmcts-opal-frontend-common-pages-internal-server-error.component-DftC2eY-.mjs +0 -26
- package/fesm2022/hmcts-opal-frontend-common-pages-permission-denied.component-CNGPX5k_.mjs +0 -14
- package/fesm2022/hmcts-opal-frontend-common-pages-sign-in-stub.component-BIgTV7f1.mjs +0 -42
- package/fesm2022/hmcts-opal-frontend-common-pages-sign-in.component-0pu6fIcO.mjs +0 -28
- package/fesm2022/hmcts-opal-frontend-common-permission-denied.component-CNGPX5k_.mjs +0 -14
- package/fesm2022/hmcts-opal-frontend-common-sign-in-stub.component-BIgTV7f1.mjs +0 -42
- package/fesm2022/hmcts-opal-frontend-common-sign-in.component-BxUlQIYI.mjs +0 -28
|
@@ -1,195 +1,104 @@
|
|
|
1
|
-
import { DOCUMENT, ViewportScroller, formatCurrency } from
|
|
2
|
-
import * as i0 from
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
// Matches decimal strings with an optional leading minus and either no commas or correctly grouped thousands.
|
|
6
|
-
// The optional decimal point may have no fractional digits to preserve accepted values such as "1.".
|
|
1
|
+
import { DOCUMENT, ViewportScroller, formatCurrency } from "@angular/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { Injectable, inject } from "@angular/core";
|
|
7
4
|
const DECIMAL_OR_GROUPED_NUMBER_PATTERN = /^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d*)?$/;
|
|
8
|
-
class UtilsService {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
return forms.every((form) => this.checkFormValues(form)) ? providedMessage : notProvidedMessage;
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Copies the provided string value to the clipboard.
|
|
109
|
-
*
|
|
110
|
-
* @param value - The string value to be copied to the clipboard.
|
|
111
|
-
*
|
|
112
|
-
* @remarks
|
|
113
|
-
* This method uses the `navigator.clipboard.writeText` API to copy text to the clipboard.
|
|
114
|
-
* Ensure that the browser supports the Clipboard API before using this method.
|
|
115
|
-
*/
|
|
116
|
-
copyToClipboard(value) {
|
|
117
|
-
return navigator.clipboard.writeText(value);
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Recursively filters out properties from an object where the value is `null` or `undefined`.
|
|
121
|
-
*
|
|
122
|
-
* @param obj - The object to filter. Can include nested objects.
|
|
123
|
-
* @returns A new object with only non-null and non-undefined values.
|
|
124
|
-
*
|
|
125
|
-
* @example
|
|
126
|
-
* ```ts
|
|
127
|
-
* const input = {
|
|
128
|
-
* a: 1,
|
|
129
|
-
* b: null,
|
|
130
|
-
* c: undefined,
|
|
131
|
-
* d: 'hello',
|
|
132
|
-
* e: { x: null, y: 2 },
|
|
133
|
-
* f: { z: undefined },
|
|
134
|
-
* };
|
|
135
|
-
* const result = filterNullOrUndefined(input);
|
|
136
|
-
* console.log(result); // Output: { a: 1, d: 'hello', e: { y: 2 } }
|
|
137
|
-
* ```
|
|
138
|
-
*/
|
|
139
|
-
filterNullOrUndefined(obj) {
|
|
140
|
-
return Object.fromEntries(Object.entries(obj)
|
|
141
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
142
|
-
.filter(([_, value]) => value !== null && value !== undefined)
|
|
143
|
-
.map(([key, value]) => {
|
|
144
|
-
if (typeof value === 'object' && !Array.isArray(value) && value !== null) {
|
|
145
|
-
return [key, this.filterNullOrUndefined(value)];
|
|
146
|
-
}
|
|
147
|
-
return [key, value];
|
|
148
|
-
}));
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* Strips out the first parentheses block from the given text.
|
|
152
|
-
* This method looks for the first occurrence of parentheses in the text,
|
|
153
|
-
* removes the content within them, and returns the modified text.
|
|
154
|
-
* @param {string} text - The text from which to strip the first parentheses block.
|
|
155
|
-
* @returns {string} - The modified text with the first parentheses block removed.
|
|
156
|
-
*/
|
|
157
|
-
stripFirstParenthesesBlock(text) {
|
|
158
|
-
const open = text.indexOf('(');
|
|
159
|
-
const close = text.indexOf(')', open);
|
|
160
|
-
if (open !== -1 && close !== -1 && close > open) {
|
|
161
|
-
const before = text.slice(0, open);
|
|
162
|
-
const after = text.slice(close + 1);
|
|
163
|
-
return (before + after).trim();
|
|
164
|
-
}
|
|
165
|
-
return text.trim();
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* Determines whether the provided object has at least one property set to a meaningful value.
|
|
169
|
-
*
|
|
170
|
-
* A property is considered "set" if:
|
|
171
|
-
* - It is a boolean and its value is `true`.
|
|
172
|
-
* - It is not a boolean and its value is neither `null` nor an empty string.
|
|
173
|
-
*
|
|
174
|
-
* @param value - The object to check for set properties. Can be `null` or `undefined`.
|
|
175
|
-
* @returns `true` if at least one property is set; otherwise, `false`.
|
|
176
|
-
*/
|
|
177
|
-
hasSetProperty(value) {
|
|
178
|
-
return Object.values(value ?? {}).some((v) => (typeof v === 'boolean' ? v === true : v !== null && v !== ''));
|
|
179
|
-
}
|
|
180
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: UtilsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
181
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: UtilsService, providedIn: 'root' });
|
|
182
|
-
}
|
|
183
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: UtilsService, decorators: [{
|
|
184
|
-
type: Injectable,
|
|
185
|
-
args: [{
|
|
186
|
-
providedIn: 'root',
|
|
187
|
-
}]
|
|
188
|
-
}] });
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* Generated bundle index. Do not edit.
|
|
192
|
-
*/
|
|
193
|
-
|
|
5
|
+
var UtilsService = class UtilsService {
|
|
6
|
+
document = inject(DOCUMENT);
|
|
7
|
+
viewportScroller = inject(ViewportScroller);
|
|
8
|
+
upperCaseFirstLetter(str) {
|
|
9
|
+
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
10
|
+
}
|
|
11
|
+
upperCaseAllLetters(str) {
|
|
12
|
+
return str.toUpperCase();
|
|
13
|
+
}
|
|
14
|
+
convertToMonetaryString(amount) {
|
|
15
|
+
if (typeof amount === "string") {
|
|
16
|
+
const trimmedAmount = amount.trim();
|
|
17
|
+
if (!DECIMAL_OR_GROUPED_NUMBER_PATTERN.test(trimmedAmount)) return "";
|
|
18
|
+
amount = Number(trimmedAmount.replaceAll(",", ""));
|
|
19
|
+
}
|
|
20
|
+
if (!Number.isFinite(amount)) return "";
|
|
21
|
+
return formatCurrency(amount === 0 ? 0 : amount, "en-GB", "£", "GBP", "1.2-2");
|
|
22
|
+
}
|
|
23
|
+
formatSortCode(value) {
|
|
24
|
+
const sortCode = value.toString();
|
|
25
|
+
return `${sortCode.slice(0, 2)}-${sortCode.slice(2, 4)}-${sortCode.slice(4, 6)}`;
|
|
26
|
+
}
|
|
27
|
+
formatAddress(address) {
|
|
28
|
+
return address.filter((line) => !!line?.trim());
|
|
29
|
+
}
|
|
30
|
+
scrollToTop() {
|
|
31
|
+
this.viewportScroller.scrollToPosition([0, 0]);
|
|
32
|
+
}
|
|
33
|
+
focusAndScrollToTop() {
|
|
34
|
+
const mainContent = this.document.getElementById("main-content");
|
|
35
|
+
if (mainContent) {
|
|
36
|
+
if (!mainContent.hasAttribute("tabindex")) {
|
|
37
|
+
mainContent.setAttribute("tabindex", "-1");
|
|
38
|
+
mainContent.addEventListener("blur", () => mainContent.removeAttribute("tabindex"), { once: true });
|
|
39
|
+
}
|
|
40
|
+
mainContent.focus({ preventScroll: true });
|
|
41
|
+
}
|
|
42
|
+
this.scrollToTop();
|
|
43
|
+
}
|
|
44
|
+
checkFormValues(form) {
|
|
45
|
+
return Object.values(form).some((value) => {
|
|
46
|
+
return Array.isArray(value) ? value.length > 0 : Boolean(value);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
checkFormArrayValues(forms) {
|
|
50
|
+
return forms.every((form) => this.checkFormValues(form));
|
|
51
|
+
}
|
|
52
|
+
getFormStatus(form, providedMessage, notProvidedMessage) {
|
|
53
|
+
return this.checkFormValues(form) ? providedMessage : notProvidedMessage;
|
|
54
|
+
}
|
|
55
|
+
getArrayFormStatus(forms, providedMessage, notProvidedMessage) {
|
|
56
|
+
return forms.every((form) => this.checkFormValues(form)) ? providedMessage : notProvidedMessage;
|
|
57
|
+
}
|
|
58
|
+
copyToClipboard(value) {
|
|
59
|
+
return navigator.clipboard.writeText(value);
|
|
60
|
+
}
|
|
61
|
+
filterNullOrUndefined(obj) {
|
|
62
|
+
return Object.fromEntries(Object.entries(obj).filter(([_, value]) => value !== null && value !== void 0).map(([key, value]) => {
|
|
63
|
+
if (typeof value === "object" && !Array.isArray(value) && value !== null) return [key, this.filterNullOrUndefined(value)];
|
|
64
|
+
return [key, value];
|
|
65
|
+
}));
|
|
66
|
+
}
|
|
67
|
+
stripFirstParenthesesBlock(text) {
|
|
68
|
+
const open = text.indexOf("(");
|
|
69
|
+
const close = text.indexOf(")", open);
|
|
70
|
+
if (open !== -1 && close !== -1 && close > open) return (text.slice(0, open) + text.slice(close + 1)).trim();
|
|
71
|
+
return text.trim();
|
|
72
|
+
}
|
|
73
|
+
hasSetProperty(value) {
|
|
74
|
+
return Object.values(value ?? {}).some((v) => typeof v === "boolean" ? v === true : v !== null && v !== "");
|
|
75
|
+
}
|
|
76
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
77
|
+
minVersion: "12.0.0",
|
|
78
|
+
version: "21.2.25",
|
|
79
|
+
ngImport: i0,
|
|
80
|
+
type: UtilsService,
|
|
81
|
+
deps: [],
|
|
82
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
83
|
+
});
|
|
84
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
85
|
+
minVersion: "12.0.0",
|
|
86
|
+
version: "21.2.25",
|
|
87
|
+
ngImport: i0,
|
|
88
|
+
type: UtilsService,
|
|
89
|
+
providedIn: "root"
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
93
|
+
minVersion: "12.0.0",
|
|
94
|
+
version: "21.2.25",
|
|
95
|
+
ngImport: i0,
|
|
96
|
+
type: UtilsService,
|
|
97
|
+
decorators: [{
|
|
98
|
+
type: Injectable,
|
|
99
|
+
args: [{ providedIn: "root" }]
|
|
100
|
+
}]
|
|
101
|
+
});
|
|
194
102
|
export { UtilsService };
|
|
195
|
-
|
|
103
|
+
|
|
104
|
+
//# sourceMappingURL=hmcts-opal-frontend-common-services-utils-service.mjs.map
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, EventEmitter, Output } from "@angular/core";
|
|
3
|
+
import { GovukButtonComponent } from "@hmcts/opal-frontend-common/components/govuk/govuk-button";
|
|
4
|
+
import * as i1 from "@angular/forms";
|
|
5
|
+
import { FormControl, FormGroup, FormsModule, ReactiveFormsModule, Validators } from "@angular/forms";
|
|
6
|
+
import { GovukTextInputComponent } from "@hmcts/opal-frontend-common/components/govuk/govuk-text-input";
|
|
7
|
+
var SignInStubComponent = class SignInStubComponent {
|
|
8
|
+
signInFormSubmit = new EventEmitter();
|
|
9
|
+
signInForm;
|
|
10
|
+
setupSignInForm() {
|
|
11
|
+
this.signInForm = new FormGroup({ email: new FormControl(null, [Validators.required]) });
|
|
12
|
+
}
|
|
13
|
+
handleFormSubmit() {
|
|
14
|
+
if (this.signInForm.valid) this.signInFormSubmit.emit(this.signInForm.value);
|
|
15
|
+
}
|
|
16
|
+
ngOnInit() {
|
|
17
|
+
this.setupSignInForm();
|
|
18
|
+
}
|
|
19
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
20
|
+
minVersion: "12.0.0",
|
|
21
|
+
version: "21.2.25",
|
|
22
|
+
ngImport: i0,
|
|
23
|
+
type: SignInStubComponent,
|
|
24
|
+
deps: [],
|
|
25
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
26
|
+
});
|
|
27
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
28
|
+
minVersion: "14.0.0",
|
|
29
|
+
version: "21.2.25",
|
|
30
|
+
type: SignInStubComponent,
|
|
31
|
+
isStandalone: true,
|
|
32
|
+
selector: "opal-lib-sign-in-stub",
|
|
33
|
+
outputs: { signInFormSubmit: "signInFormSubmit" },
|
|
34
|
+
ngImport: i0,
|
|
35
|
+
template: "<form (submit)=\"handleFormSubmit()\">\n <div class=\"govuk-grid-column-two-thirds\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\">\n <h1 class=\"govuk-fieldset__heading\">Sign in</h1>\n </legend>\n\n <div [formGroup]=\"signInForm\">\n <opal-lib-govuk-text-input\n labelText=\"Email\"\n inputId=\"email\"\n inputName=\"email\"\n inputClasses=\"govuk-!-width-one-half\"\n [control]=\"signInForm.controls['email']\"\n ></opal-lib-govuk-text-input>\n </div>\n </fieldset>\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-one-third\">\n <opal-lib-govuk-button buttonId=\"submitForm\" type=\"submit\"> Sign in</opal-lib-govuk-button>\n </div>\n </div>\n </div>\n</form>\n",
|
|
36
|
+
dependencies: [
|
|
37
|
+
{
|
|
38
|
+
kind: "ngmodule",
|
|
39
|
+
type: FormsModule
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
kind: "directive",
|
|
43
|
+
type: i1.ɵNgNoValidate,
|
|
44
|
+
selector: "form:not([ngNoForm]):not([ngNativeValidate])"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
kind: "directive",
|
|
48
|
+
type: i1.NgControlStatusGroup,
|
|
49
|
+
selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
kind: "directive",
|
|
53
|
+
type: i1.NgForm,
|
|
54
|
+
selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]",
|
|
55
|
+
inputs: ["ngFormOptions"],
|
|
56
|
+
outputs: ["ngSubmit"],
|
|
57
|
+
exportAs: ["ngForm"]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
kind: "ngmodule",
|
|
61
|
+
type: ReactiveFormsModule
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
kind: "directive",
|
|
65
|
+
type: i1.FormGroupDirective,
|
|
66
|
+
selector: "[formGroup]",
|
|
67
|
+
inputs: ["formGroup"],
|
|
68
|
+
outputs: ["ngSubmit"],
|
|
69
|
+
exportAs: ["ngForm"]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
kind: "component",
|
|
73
|
+
type: GovukTextInputComponent,
|
|
74
|
+
selector: "opal-lib-govuk-text-input",
|
|
75
|
+
inputs: [
|
|
76
|
+
"labelText",
|
|
77
|
+
"labelClasses",
|
|
78
|
+
"inputId",
|
|
79
|
+
"inputName",
|
|
80
|
+
"inputClasses",
|
|
81
|
+
"hintText",
|
|
82
|
+
"hintHtml",
|
|
83
|
+
"errors",
|
|
84
|
+
"autoComplete",
|
|
85
|
+
"autoCompleteValue",
|
|
86
|
+
"control"
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
kind: "component",
|
|
91
|
+
type: GovukButtonComponent,
|
|
92
|
+
selector: "opal-lib-govuk-button",
|
|
93
|
+
inputs: [
|
|
94
|
+
"buttonId",
|
|
95
|
+
"type",
|
|
96
|
+
"buttonClasses"
|
|
97
|
+
],
|
|
98
|
+
outputs: ["buttonClickEvent"]
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
102
|
+
});
|
|
103
|
+
};
|
|
104
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
105
|
+
minVersion: "12.0.0",
|
|
106
|
+
version: "21.2.25",
|
|
107
|
+
ngImport: i0,
|
|
108
|
+
type: SignInStubComponent,
|
|
109
|
+
decorators: [{
|
|
110
|
+
type: Component,
|
|
111
|
+
args: [{
|
|
112
|
+
selector: "opal-lib-sign-in-stub",
|
|
113
|
+
imports: [
|
|
114
|
+
FormsModule,
|
|
115
|
+
ReactiveFormsModule,
|
|
116
|
+
GovukTextInputComponent,
|
|
117
|
+
GovukButtonComponent
|
|
118
|
+
],
|
|
119
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
120
|
+
template: "<form (submit)=\"handleFormSubmit()\">\n <div class=\"govuk-grid-column-two-thirds\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\">\n <h1 class=\"govuk-fieldset__heading\">Sign in</h1>\n </legend>\n\n <div [formGroup]=\"signInForm\">\n <opal-lib-govuk-text-input\n labelText=\"Email\"\n inputId=\"email\"\n inputName=\"email\"\n inputClasses=\"govuk-!-width-one-half\"\n [control]=\"signInForm.controls['email']\"\n ></opal-lib-govuk-text-input>\n </div>\n </fieldset>\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-one-third\">\n <opal-lib-govuk-button buttonId=\"submitForm\" type=\"submit\"> Sign in</opal-lib-govuk-button>\n </div>\n </div>\n </div>\n</form>\n"
|
|
121
|
+
}]
|
|
122
|
+
}],
|
|
123
|
+
propDecorators: { signInFormSubmit: [{ type: Output }] }
|
|
124
|
+
});
|
|
125
|
+
export { SignInStubComponent };
|
|
126
|
+
|
|
127
|
+
//# sourceMappingURL=hmcts-opal-frontend-common-sign-in-stub.component-CT2Bh7gD.mjs.map
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, inject } from "@angular/core";
|
|
3
|
+
import { DOCUMENT } from "@angular/common";
|
|
4
|
+
import { GlobalStore } from "@hmcts/opal-frontend-common/stores/global";
|
|
5
|
+
import { SSO_ENDPOINTS } from "@hmcts/opal-frontend-common/services/auth-service/constants";
|
|
6
|
+
var SignInComponent = class SignInComponent {
|
|
7
|
+
document = inject(DOCUMENT);
|
|
8
|
+
globalStore = inject(GlobalStore);
|
|
9
|
+
ssoEnabled = true;
|
|
10
|
+
handleStubSignInFormSubmit(formData) {
|
|
11
|
+
this.document.location.href = `${SSO_ENDPOINTS.login}?email=${formData.email}`;
|
|
12
|
+
}
|
|
13
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
14
|
+
minVersion: "12.0.0",
|
|
15
|
+
version: "21.2.25",
|
|
16
|
+
ngImport: i0,
|
|
17
|
+
type: SignInComponent,
|
|
18
|
+
deps: [],
|
|
19
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
20
|
+
});
|
|
21
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
22
|
+
minVersion: "17.0.0",
|
|
23
|
+
version: "21.2.25",
|
|
24
|
+
type: SignInComponent,
|
|
25
|
+
isStandalone: true,
|
|
26
|
+
selector: "opal-lib-sign-in",
|
|
27
|
+
ngImport: i0,
|
|
28
|
+
template: "@defer (when !globalStore.ssoEnabled()) {\n <opal-lib-sign-in-stub (signInFormSubmit)=\"handleStubSignInFormSubmit($event)\"></opal-lib-sign-in-stub>\n}\n",
|
|
29
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
30
|
+
deferBlockDependencies: [() => [import("./hmcts-opal-frontend-common-sign-in-stub.component-CT2Bh7gD.mjs").then((m) => m.SignInStubComponent)]]
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
i0.ɵɵngDeclareClassMetadataAsync({
|
|
34
|
+
minVersion: "18.0.0",
|
|
35
|
+
version: "21.2.25",
|
|
36
|
+
ngImport: i0,
|
|
37
|
+
type: SignInComponent,
|
|
38
|
+
resolveDeferredDeps: () => [import("./hmcts-opal-frontend-common-sign-in-stub.component-CT2Bh7gD.mjs").then((m) => m.SignInStubComponent)],
|
|
39
|
+
resolveMetadata: (SignInStubComponent) => ({
|
|
40
|
+
decorators: [{
|
|
41
|
+
type: Component,
|
|
42
|
+
args: [{
|
|
43
|
+
selector: "opal-lib-sign-in",
|
|
44
|
+
imports: [SignInStubComponent],
|
|
45
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
46
|
+
template: "@defer (when !globalStore.ssoEnabled()) {\n <opal-lib-sign-in-stub (signInFormSubmit)=\"handleStubSignInFormSubmit($event)\"></opal-lib-sign-in-stub>\n}\n"
|
|
47
|
+
}]
|
|
48
|
+
}],
|
|
49
|
+
ctorParameters: null,
|
|
50
|
+
propDecorators: null
|
|
51
|
+
})
|
|
52
|
+
});
|
|
53
|
+
export { SignInComponent };
|
|
54
|
+
|
|
55
|
+
//# sourceMappingURL=hmcts-opal-frontend-common-sign-in.component-Dz97ji3i.mjs.map
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
const GLOBAL_ERROR_STATE = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
error: null,
|
|
3
|
+
title: null,
|
|
4
|
+
message: null,
|
|
5
|
+
operationId: null
|
|
6
6
|
};
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Generated bundle index. Do not edit.
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
7
|
export { GLOBAL_ERROR_STATE };
|
|
13
|
-
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=hmcts-opal-frontend-common-stores-global-constants.mjs.map
|
|
@@ -1,60 +1,55 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { GLOBAL_ERROR_STATE } from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
featureFlagConfig: {},
|
|
1
|
+
import { patchState, signalStore, withMethods, withState } from "@ngrx/signals";
|
|
2
|
+
import { GLOBAL_ERROR_STATE } from "@hmcts/opal-frontend-common/stores/global/constants";
|
|
3
|
+
const GlobalStore = signalStore({ providedIn: "root" }, withState(() => ({
|
|
4
|
+
authenticated: false,
|
|
5
|
+
bannerError: { ...GLOBAL_ERROR_STATE },
|
|
6
|
+
featureFlags: {},
|
|
7
|
+
userState: {},
|
|
8
|
+
ssoEnabled: false,
|
|
9
|
+
launchDarklyConfig: {},
|
|
10
|
+
appInsightsConfig: {},
|
|
11
|
+
tokenExpiry: {},
|
|
12
|
+
userStateCacheExpirationMilliseconds: 18e5,
|
|
13
|
+
userStateDomain: void 0,
|
|
14
|
+
featureFlagConfig: {}
|
|
16
15
|
})), withMethods((store) => ({
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
16
|
+
setAuthenticated: (authenticated) => {
|
|
17
|
+
patchState(store, { authenticated });
|
|
18
|
+
},
|
|
19
|
+
setBannerError: (error) => {
|
|
20
|
+
patchState(store, { bannerError: error });
|
|
21
|
+
},
|
|
22
|
+
resetBannerError: () => {
|
|
23
|
+
patchState(store, { bannerError: { ...GLOBAL_ERROR_STATE } });
|
|
24
|
+
},
|
|
25
|
+
setFeatureFlags: (featureFlags) => {
|
|
26
|
+
patchState(store, { featureFlags });
|
|
27
|
+
},
|
|
28
|
+
setUserState: (userState) => {
|
|
29
|
+
patchState(store, { userState });
|
|
30
|
+
},
|
|
31
|
+
setSsoEnabled: (ssoEnabled) => {
|
|
32
|
+
patchState(store, { ssoEnabled });
|
|
33
|
+
},
|
|
34
|
+
setLaunchDarklyConfig: (config) => {
|
|
35
|
+
patchState(store, { launchDarklyConfig: config });
|
|
36
|
+
},
|
|
37
|
+
setAppInsightsConfig: (config) => {
|
|
38
|
+
patchState(store, { appInsightsConfig: config });
|
|
39
|
+
},
|
|
40
|
+
setTokenExpiry: (tokenExpiry) => {
|
|
41
|
+
patchState(store, { tokenExpiry });
|
|
42
|
+
},
|
|
43
|
+
setUserStateCacheExpirationMilliseconds: (milliseconds) => {
|
|
44
|
+
patchState(store, { userStateCacheExpirationMilliseconds: milliseconds });
|
|
45
|
+
},
|
|
46
|
+
setUserStateDomain: (domain) => {
|
|
47
|
+
patchState(store, { userStateDomain: domain });
|
|
48
|
+
},
|
|
49
|
+
setFeatureFlagConfig: (config) => {
|
|
50
|
+
patchState(store, { featureFlagConfig: config });
|
|
51
|
+
}
|
|
53
52
|
})));
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Generated bundle index. Do not edit.
|
|
57
|
-
*/
|
|
58
|
-
|
|
59
53
|
export { GlobalStore };
|
|
60
|
-
|
|
54
|
+
|
|
55
|
+
//# sourceMappingURL=hmcts-opal-frontend-common-stores-global.mjs.map
|