@hmcts/rpx-xui-common-lib 2.0.19 → 2.0.21
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/README.md +1 -1
- package/esm2022/lib/components/accessibility/accessibility.component.mjs +725 -0
- package/esm2022/lib/components/checkbox-list/checkbox-list.component.mjs +232 -0
- package/esm2022/lib/components/contact-details/contact-details.component.mjs +104 -0
- package/esm2022/lib/components/cookie-banner/cookie-banner.component.mjs +151 -0
- package/esm2022/lib/components/due-date/due-date.component.mjs +141 -0
- package/esm2022/lib/components/exui-main-wrapper/exui-page-wrapper.component.mjs +80 -0
- package/esm2022/lib/components/find-location/find-location.component.mjs +220 -0
- package/esm2022/lib/components/find-person/find-person.component.mjs +234 -0
- package/esm2022/lib/components/find-service/find-service.component.mjs +193 -0
- package/{esm2020 → esm2022}/lib/components/find-task-name/find-task-name.component.mjs +53 -53
- package/{esm2020 → esm2022}/lib/components/generic-filter/generic-filter-utils.mjs +1 -1
- package/esm2022/lib/components/generic-filter/generic-filter.component.mjs +1184 -0
- package/esm2022/lib/components/hmcts-session-dialog/hmcts-session-dialog.component.mjs +56 -0
- package/esm2022/lib/components/invite-user-form/invite-user-form.component.mjs +51 -0
- package/esm2022/lib/components/invite-user-permissions/invite-user-permission.component.mjs +54 -0
- package/esm2022/lib/components/loading-spinner/loading-spinner.component.mjs +33 -0
- package/esm2022/lib/components/pagination/pagination.component.mjs +92 -0
- package/esm2022/lib/components/search-judicials/search-judicials.component.mjs +185 -0
- package/esm2022/lib/components/search-location/search-location.component.mjs +237 -0
- package/esm2022/lib/components/search-service/search-service.component.mjs +83 -0
- package/esm2022/lib/components/search-venue/search-venue.component.mjs +190 -0
- package/esm2022/lib/components/selected-case/selected-case.component.mjs +379 -0
- package/esm2022/lib/components/selected-case-confirm/selected-case-confirm.component.mjs +135 -0
- package/esm2022/lib/components/selected-case-list/selected-case-list.component.mjs +98 -0
- package/esm2022/lib/components/service-message/service-message.component.mjs +51 -0
- package/esm2022/lib/components/service-messages/service-messages.component.mjs +76 -0
- package/esm2022/lib/components/share-case/share-case.component.mjs +420 -0
- package/esm2022/lib/components/share-case-confirm/share-case-confirm.component.mjs +85 -0
- package/esm2022/lib/components/tab/tab.component.mjs +40 -0
- package/esm2022/lib/components/tc-confirm/tc-confirm.component.mjs +66 -0
- package/esm2022/lib/components/terms-and-conditions/tc-display/tc-display-html/tc-display-html.component.mjs +17 -0
- package/esm2022/lib/components/terms-and-conditions/tc-display/tc-display-plain/tc-display-plain.component.mjs +17 -0
- package/esm2022/lib/components/terms-and-conditions/terms-and-conditions.component.mjs +58 -0
- package/esm2022/lib/components/user-details/user-details.component.mjs +273 -0
- package/esm2022/lib/components/user-list/user-list.component.mjs +100 -0
- package/esm2022/lib/components/user-select/user-select.component.mjs +94 -0
- package/esm2022/lib/components/write-address/write-address.component.mjs +342 -0
- package/esm2022/lib/components/write-address-inputs/write-address-inputs.component.mjs +165 -0
- package/esm2022/lib/directives/feature-toggle/feature-toggle.directive.mjs +41 -0
- package/{esm2020 → esm2022}/lib/directives/let/let.directive.mjs +5 -5
- package/{esm2020 → esm2022}/lib/exui-common-lib.module.mjs +15 -15
- package/esm2022/lib/gov-ui/components/gov-uk-checkbox/gov-uk-checkbox.component.mjs +55 -0
- package/esm2022/lib/gov-ui/components/gov-uk-checkboxes/gov-uk-checkboxes.component.mjs +137 -0
- package/esm2022/lib/gov-ui/components/gov-uk-date/gov-uk-date.component.mjs +121 -0
- package/esm2022/lib/gov-ui/components/gov-uk-error-message/gov-uk-error-message.component.mjs +46 -0
- package/esm2022/lib/gov-ui/components/gov-uk-fieldset/gov-uk-fieldset.component.mjs +79 -0
- package/esm2022/lib/gov-ui/components/gov-uk-file-upload/gov-uk-file-upload.component.mjs +79 -0
- package/esm2022/lib/gov-ui/components/gov-uk-form-group-wrapper/gov-uk-form-group-wrapper.component.mjs +45 -0
- package/esm2022/lib/gov-ui/components/gov-uk-input/gov-uk-input.component.mjs +71 -0
- package/esm2022/lib/gov-ui/components/gov-uk-label/gov-uk-label.component.mjs +84 -0
- package/esm2022/lib/gov-ui/components/gov-uk-radio/gov-uk-radio.component.mjs +48 -0
- package/esm2022/lib/gov-ui/components/gov-uk-radios/gov-uk-radios.component.mjs +42 -0
- package/esm2022/lib/gov-ui/components/gov-uk-select/gov-uk-select.component.mjs +80 -0
- package/esm2022/lib/gov-ui/components/gov-uk-table/gov-uk-table.component.mjs +185 -0
- package/esm2022/lib/gov-ui/components/gov-uk-textarea/gov-uk-textarea.component.mjs +57 -0
- package/esm2022/lib/gov-ui/components/hmcts-banner/hmcts-banner.component.mjs +111 -0
- package/esm2022/lib/gov-ui/components/hmcts-error-summary/hmcts-error-summary.component.mjs +140 -0
- package/esm2022/lib/gov-ui/components/hmcts-identity-bar/hmcts-identity-bar.component.mjs +34 -0
- package/esm2022/lib/gov-ui/components/hmcts-main-wrapper/hmcts-main-wrapper.component.mjs +129 -0
- package/esm2022/lib/gov-ui/components/hmcts-pagination/hmcts-pagination.component.mjs +204 -0
- package/esm2022/lib/gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component.mjs +60 -0
- package/esm2022/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.mjs +58 -0
- package/esm2022/lib/gov-ui/directives/remove-host.directive.mjs +30 -0
- package/{esm2020 → esm2022}/lib/gov-ui/gov-ui.service.mjs +5 -5
- package/esm2022/lib/gov-ui/util/helpers/html-templates.helper.mjs +22 -0
- package/{esm2020 → esm2022}/lib/gov-ui/validators/checkboxes-be-checked.validator.mjs +1 -1
- package/{esm2020 → esm2022}/lib/gov-ui/validators/date.validator.mjs +1 -1
- package/esm2022/lib/gov-ui/validators/radio-group.validator.mjs +15 -0
- package/esm2022/lib/models/address-option.model.mjs +21 -0
- package/{esm2020 → esm2022}/lib/pipes/capitalize/capitalize.pipe.mjs +4 -4
- package/esm2022/lib/services/address/address-parser.mjs +76 -0
- package/esm2022/lib/services/address/address.service.mjs +55 -0
- package/esm2022/lib/services/case-sharing-state/case-sharing-state.service.mjs +170 -0
- package/{esm2020 → esm2022}/lib/services/cookie/cookie.service.mjs +6 -6
- package/{esm2020 → esm2022}/lib/services/feature-toggle/feature-toggle.guard.mjs +5 -5
- package/{esm2020 → esm2022}/lib/services/feature-toggle/feature-toggle.service.mjs +4 -4
- package/esm2022/lib/services/feature-toggle/launch-darkly.service.mjs +65 -0
- package/esm2022/lib/services/filter/filter.service.mjs +95 -0
- package/esm2022/lib/services/find-person/find-person.service.mjs +83 -0
- package/esm2022/lib/services/google-analytics/google-analytics.service.mjs +68 -0
- package/esm2022/lib/services/google-tag-manager/google-tag-manager.service.mjs +71 -0
- package/{esm2020 → esm2022}/lib/services/loading/loading.service.mjs +4 -4
- package/{esm2020 → esm2022}/lib/services/locations/location.service.mjs +5 -5
- package/{esm2020 → esm2022}/lib/services/manage-session/manage-session.services.mjs +5 -5
- package/esm2022/lib/services/ref-data/ref-data-data-access/ref-data-data-access.service.mjs +33 -0
- package/esm2022/lib/services/ref-data/ref-data.service.mjs +34 -0
- package/{esm2020 → esm2022}/lib/services/role-guard/role.guard.mjs +5 -5
- package/{esm2020 → esm2022}/lib/services/role-guard/role.service.mjs +4 -4
- package/esm2022/lib/services/storage/session-storage/session-storage.service.mjs +43 -0
- package/esm2022/lib/services/task-name/task-name.service.mjs +35 -0
- package/{esm2020 → esm2022}/lib/services/timeout-notifications/timeout-notifications.service.mjs +5 -5
- package/{fesm2020 → fesm2022}/hmcts-rpx-xui-common-lib.mjs +2823 -2835
- package/fesm2022/hmcts-rpx-xui-common-lib.mjs.map +1 -0
- package/lib/components/checkbox-list/checkbox-list.component.d.ts +1 -1
- package/lib/components/contact-details/contact-details.component.d.ts +1 -1
- package/lib/components/cookie-banner/cookie-banner.component.d.ts +1 -1
- package/lib/components/due-date/due-date.component.d.ts +1 -1
- package/lib/components/exui-main-wrapper/exui-page-wrapper.component.d.ts +1 -1
- package/lib/components/find-location/find-location.component.d.ts +1 -1
- package/lib/components/find-person/find-person.component.d.ts +1 -1
- package/lib/components/find-service/find-service.component.d.ts +1 -1
- package/lib/components/find-task-name/find-task-name.component.d.ts +1 -1
- package/lib/components/generic-filter/generic-filter.component.d.ts +1 -1
- package/lib/components/hmcts-session-dialog/hmcts-session-dialog.component.d.ts +1 -1
- package/lib/components/invite-user-form/invite-user-form.component.d.ts +1 -1
- package/lib/components/invite-user-permissions/invite-user-permission.component.d.ts +1 -1
- package/lib/components/loading-spinner/loading-spinner.component.d.ts +1 -1
- package/lib/components/pagination/pagination.component.d.ts +1 -1
- package/lib/components/search-judicials/search-judicials.component.d.ts +1 -1
- package/lib/components/search-location/search-location.component.d.ts +1 -1
- package/lib/components/search-service/search-service.component.d.ts +1 -1
- package/lib/components/search-venue/search-venue.component.d.ts +1 -1
- package/lib/components/selected-case/selected-case.component.d.ts +1 -1
- package/lib/components/selected-case-confirm/selected-case-confirm.component.d.ts +1 -1
- package/lib/components/selected-case-list/selected-case-list.component.d.ts +1 -1
- package/lib/components/service-message/service-message.component.d.ts +1 -1
- package/lib/components/service-messages/service-messages.component.d.ts +1 -1
- package/lib/components/share-case/share-case.component.d.ts +1 -1
- package/lib/components/share-case-confirm/share-case-confirm.component.d.ts +1 -1
- package/lib/components/tab/tab.component.d.ts +1 -1
- package/lib/components/tc-confirm/tc-confirm.component.d.ts +1 -1
- package/lib/components/terms-and-conditions/terms-and-conditions.component.d.ts +1 -1
- package/lib/components/user-details/user-details.component.d.ts +1 -1
- package/lib/components/user-list/user-list.component.d.ts +1 -1
- package/lib/components/user-select/user-select.component.d.ts +1 -1
- package/lib/components/write-address/write-address.component.d.ts +1 -1
- package/lib/components/write-address-inputs/write-address-inputs.component.d.ts +1 -1
- package/lib/directives/feature-toggle/feature-toggle.directive.d.ts +1 -1
- package/lib/directives/let/let.directive.d.ts +1 -1
- package/lib/gov-ui/components/gov-uk-checkbox/gov-uk-checkbox.component.d.ts +1 -1
- package/lib/gov-ui/components/gov-uk-checkboxes/gov-uk-checkboxes.component.d.ts +1 -1
- package/lib/gov-ui/components/gov-uk-date/gov-uk-date.component.d.ts +1 -1
- package/lib/gov-ui/components/gov-uk-error-message/gov-uk-error-message.component.d.ts +1 -1
- package/lib/gov-ui/components/gov-uk-fieldset/gov-uk-fieldset.component.d.ts +1 -1
- package/lib/gov-ui/components/gov-uk-file-upload/gov-uk-file-upload.component.d.ts +1 -1
- package/lib/gov-ui/components/gov-uk-form-group-wrapper/gov-uk-form-group-wrapper.component.d.ts +1 -1
- package/lib/gov-ui/components/gov-uk-input/gov-uk-input.component.d.ts +1 -1
- package/lib/gov-ui/components/gov-uk-label/gov-uk-label.component.d.ts +1 -1
- package/lib/gov-ui/components/gov-uk-radio/gov-uk-radio.component.d.ts +1 -1
- package/lib/gov-ui/components/gov-uk-radios/gov-uk-radios.component.d.ts +1 -1
- package/lib/gov-ui/components/gov-uk-select/gov-uk-select.component.d.ts +1 -1
- package/lib/gov-ui/components/gov-uk-table/gov-uk-table.component.d.ts +1 -1
- package/lib/gov-ui/components/gov-uk-textarea/gov-uk-textarea.component.d.ts +1 -1
- package/lib/gov-ui/components/hmcts-banner/hmcts-banner.component.d.ts +1 -1
- package/lib/gov-ui/components/hmcts-error-summary/hmcts-error-summary.component.d.ts +1 -1
- package/lib/gov-ui/components/hmcts-identity-bar/hmcts-identity-bar.component.d.ts +1 -1
- package/lib/gov-ui/components/hmcts-main-wrapper/hmcts-main-wrapper.component.d.ts +1 -1
- package/lib/gov-ui/components/hmcts-pagination/hmcts-pagination.component.d.ts +1 -1
- package/lib/gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component.d.ts +1 -1
- package/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.d.ts +1 -1
- package/lib/services/feature-toggle/feature-toggle.guard.d.ts +2 -2
- package/lib/services/role-guard/role.guard.d.ts +2 -2
- package/package.json +5 -11
- package/esm2020/lib/components/accessibility/accessibility.component.mjs +0 -737
- package/esm2020/lib/components/checkbox-list/checkbox-list.component.mjs +0 -231
- package/esm2020/lib/components/contact-details/contact-details.component.mjs +0 -107
- package/esm2020/lib/components/cookie-banner/cookie-banner.component.mjs +0 -150
- package/esm2020/lib/components/due-date/due-date.component.mjs +0 -140
- package/esm2020/lib/components/exui-main-wrapper/exui-page-wrapper.component.mjs +0 -79
- package/esm2020/lib/components/find-location/find-location.component.mjs +0 -219
- package/esm2020/lib/components/find-person/find-person.component.mjs +0 -234
- package/esm2020/lib/components/find-service/find-service.component.mjs +0 -192
- package/esm2020/lib/components/generic-filter/generic-filter.component.mjs +0 -1198
- package/esm2020/lib/components/hmcts-session-dialog/hmcts-session-dialog.component.mjs +0 -55
- package/esm2020/lib/components/invite-user-form/invite-user-form.component.mjs +0 -50
- package/esm2020/lib/components/invite-user-permissions/invite-user-permission.component.mjs +0 -54
- package/esm2020/lib/components/loading-spinner/loading-spinner.component.mjs +0 -32
- package/esm2020/lib/components/pagination/pagination.component.mjs +0 -93
- package/esm2020/lib/components/search-judicials/search-judicials.component.mjs +0 -184
- package/esm2020/lib/components/search-location/search-location.component.mjs +0 -236
- package/esm2020/lib/components/search-service/search-service.component.mjs +0 -81
- package/esm2020/lib/components/search-venue/search-venue.component.mjs +0 -188
- package/esm2020/lib/components/selected-case/selected-case.component.mjs +0 -380
- package/esm2020/lib/components/selected-case-confirm/selected-case-confirm.component.mjs +0 -135
- package/esm2020/lib/components/selected-case-list/selected-case-list.component.mjs +0 -98
- package/esm2020/lib/components/service-message/service-message.component.mjs +0 -50
- package/esm2020/lib/components/service-messages/service-messages.component.mjs +0 -75
- package/esm2020/lib/components/share-case/share-case.component.mjs +0 -420
- package/esm2020/lib/components/share-case-confirm/share-case-confirm.component.mjs +0 -85
- package/esm2020/lib/components/tab/tab.component.mjs +0 -39
- package/esm2020/lib/components/tc-confirm/tc-confirm.component.mjs +0 -65
- package/esm2020/lib/components/terms-and-conditions/tc-display/tc-display-html/tc-display-html.component.mjs +0 -16
- package/esm2020/lib/components/terms-and-conditions/tc-display/tc-display-plain/tc-display-plain.component.mjs +0 -16
- package/esm2020/lib/components/terms-and-conditions/terms-and-conditions.component.mjs +0 -59
- package/esm2020/lib/components/user-details/user-details.component.mjs +0 -281
- package/esm2020/lib/components/user-list/user-list.component.mjs +0 -99
- package/esm2020/lib/components/user-select/user-select.component.mjs +0 -92
- package/esm2020/lib/components/write-address/write-address.component.mjs +0 -345
- package/esm2020/lib/components/write-address-inputs/write-address-inputs.component.mjs +0 -165
- package/esm2020/lib/directives/feature-toggle/feature-toggle.directive.mjs +0 -41
- package/esm2020/lib/gov-ui/components/gov-uk-checkbox/gov-uk-checkbox.component.mjs +0 -54
- package/esm2020/lib/gov-ui/components/gov-uk-checkboxes/gov-uk-checkboxes.component.mjs +0 -136
- package/esm2020/lib/gov-ui/components/gov-uk-date/gov-uk-date.component.mjs +0 -120
- package/esm2020/lib/gov-ui/components/gov-uk-error-message/gov-uk-error-message.component.mjs +0 -45
- package/esm2020/lib/gov-ui/components/gov-uk-fieldset/gov-uk-fieldset.component.mjs +0 -80
- package/esm2020/lib/gov-ui/components/gov-uk-file-upload/gov-uk-file-upload.component.mjs +0 -78
- package/esm2020/lib/gov-ui/components/gov-uk-form-group-wrapper/gov-uk-form-group-wrapper.component.mjs +0 -45
- package/esm2020/lib/gov-ui/components/gov-uk-input/gov-uk-input.component.mjs +0 -70
- package/esm2020/lib/gov-ui/components/gov-uk-label/gov-uk-label.component.mjs +0 -84
- package/esm2020/lib/gov-ui/components/gov-uk-radio/gov-uk-radio.component.mjs +0 -47
- package/esm2020/lib/gov-ui/components/gov-uk-radios/gov-uk-radios.component.mjs +0 -41
- package/esm2020/lib/gov-ui/components/gov-uk-select/gov-uk-select.component.mjs +0 -79
- package/esm2020/lib/gov-ui/components/gov-uk-table/gov-uk-table.component.mjs +0 -188
- package/esm2020/lib/gov-ui/components/gov-uk-textarea/gov-uk-textarea.component.mjs +0 -56
- package/esm2020/lib/gov-ui/components/hmcts-banner/hmcts-banner.component.mjs +0 -112
- package/esm2020/lib/gov-ui/components/hmcts-error-summary/hmcts-error-summary.component.mjs +0 -141
- package/esm2020/lib/gov-ui/components/hmcts-identity-bar/hmcts-identity-bar.component.mjs +0 -33
- package/esm2020/lib/gov-ui/components/hmcts-main-wrapper/hmcts-main-wrapper.component.mjs +0 -130
- package/esm2020/lib/gov-ui/components/hmcts-pagination/hmcts-pagination.component.mjs +0 -204
- package/esm2020/lib/gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component.mjs +0 -59
- package/esm2020/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.mjs +0 -57
- package/esm2020/lib/gov-ui/directives/remove-host.directive.mjs +0 -30
- package/esm2020/lib/gov-ui/util/helpers/html-templates.helper.mjs +0 -22
- package/esm2020/lib/gov-ui/validators/radio-group.validator.mjs +0 -15
- package/esm2020/lib/models/address-option.model.mjs +0 -21
- package/esm2020/lib/services/address/address-parser.mjs +0 -76
- package/esm2020/lib/services/address/address.service.mjs +0 -55
- package/esm2020/lib/services/case-sharing-state/case-sharing-state.service.mjs +0 -170
- package/esm2020/lib/services/feature-toggle/launch-darkly.service.mjs +0 -65
- package/esm2020/lib/services/filter/filter.service.mjs +0 -95
- package/esm2020/lib/services/find-person/find-person.service.mjs +0 -83
- package/esm2020/lib/services/google-analytics/google-analytics.service.mjs +0 -68
- package/esm2020/lib/services/google-tag-manager/google-tag-manager.service.mjs +0 -71
- package/esm2020/lib/services/ref-data/ref-data-data-access/ref-data-data-access.service.mjs +0 -33
- package/esm2020/lib/services/ref-data/ref-data.service.mjs +0 -34
- package/esm2020/lib/services/storage/session-storage/session-storage.service.mjs +0 -43
- package/esm2020/lib/services/task-name/task-name.service.mjs +0 -35
- package/fesm2015/hmcts-rpx-xui-common-lib.mjs +0 -11073
- package/fesm2015/hmcts-rpx-xui-common-lib.mjs.map +0 -1
- package/fesm2020/hmcts-rpx-xui-common-lib.mjs.map +0 -1
- /package/{esm2020 → esm2022}/hmcts-rpx-xui-common-lib.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/directives/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/directives/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/gov-ui/components/hmcts-banner/hmcts-banner-info.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/gov-ui/components/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/gov-ui/components/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/gov-ui/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/gov-ui/models/checkboxes-model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/gov-ui/models/error-messages-model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/gov-ui/models/gov-ui-config-model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/gov-ui/models/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/gov-ui/models/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/gov-ui/models/radio-buttons.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/gov-ui/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/gov-ui/validators/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/gov-ui/validators/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/address-message.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/address.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/case-share.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/contact-details.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/due-date.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/feature-user.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/filter.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/idle-config.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/location.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/pagination.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/person.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/search-options.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/task-name.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/tcDocument.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/timeout-notification.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/user-access-type.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/user-details.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/user.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/pipes/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/services/address/address-type.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/services/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/services/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/services/ref-data/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/services/ref-data/models/ref-data-htmcs-service.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/services/ref-data/models/ref-data-region.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/services/ref-data/ref-data-data-access/models/ref-data-locations-by-service-code-response.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/window.mjs +0 -0
- /package/{esm2020 → esm2022}/public-api.mjs +0 -0
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import { DOCUMENT } from '@angular/common';
|
|
2
|
-
import { Component, Inject, Input } from '@angular/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@angular/common";
|
|
5
|
-
import * as i2 from "@angular/router";
|
|
6
|
-
import * as i3 from "rpx-xui-translation";
|
|
7
|
-
function HmctsErrorSummaryComponent_div_0_li_6_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
8
|
-
const _r8 = i0.ɵɵgetCurrentView();
|
|
9
|
-
i0.ɵɵelementStart(0, "a", 9);
|
|
10
|
-
i0.ɵɵlistener("click", function HmctsErrorSummaryComponent_div_0_li_6_a_1_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r8); const message_r3 = i0.ɵɵnextContext().$implicit; const ctx_r6 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r6.scrollTo(message_r3["id"])); });
|
|
11
|
-
i0.ɵɵtext(1);
|
|
12
|
-
i0.ɵɵpipe(2, "rpxTranslate");
|
|
13
|
-
i0.ɵɵelementEnd();
|
|
14
|
-
} if (rf & 2) {
|
|
15
|
-
const message_r3 = i0.ɵɵnextContext().$implicit;
|
|
16
|
-
i0.ɵɵproperty("fragment", message_r3["id"]);
|
|
17
|
-
i0.ɵɵadvance(1);
|
|
18
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, message_r3["message"]));
|
|
19
|
-
} }
|
|
20
|
-
function HmctsErrorSummaryComponent_div_0_li_6_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
21
|
-
i0.ɵɵelementStart(0, "span");
|
|
22
|
-
i0.ɵɵtext(1);
|
|
23
|
-
i0.ɵɵpipe(2, "rpxTranslate");
|
|
24
|
-
i0.ɵɵelementEnd();
|
|
25
|
-
} if (rf & 2) {
|
|
26
|
-
const message_r3 = i0.ɵɵnextContext().$implicit;
|
|
27
|
-
i0.ɵɵadvance(1);
|
|
28
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, message_r3["message"]));
|
|
29
|
-
} }
|
|
30
|
-
function HmctsErrorSummaryComponent_div_0_li_6_Template(rf, ctx) { if (rf & 1) {
|
|
31
|
-
i0.ɵɵelementStart(0, "li");
|
|
32
|
-
i0.ɵɵtemplate(1, HmctsErrorSummaryComponent_div_0_li_6_a_1_Template, 3, 4, "a", 7);
|
|
33
|
-
i0.ɵɵtemplate(2, HmctsErrorSummaryComponent_div_0_li_6_span_2_Template, 3, 3, "span", 8);
|
|
34
|
-
i0.ɵɵelementEnd();
|
|
35
|
-
} if (rf & 2) {
|
|
36
|
-
const message_r3 = ctx.$implicit;
|
|
37
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
38
|
-
i0.ɵɵadvance(1);
|
|
39
|
-
i0.ɵɵproperty("ngIf", ctx_r2.hasElement(message_r3["id"]));
|
|
40
|
-
i0.ɵɵadvance(1);
|
|
41
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.hasElement(message_r3["id"]));
|
|
42
|
-
} }
|
|
43
|
-
function HmctsErrorSummaryComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
44
|
-
i0.ɵɵelementStart(0, "div", 2)(1, "h2", 3);
|
|
45
|
-
i0.ɵɵtext(2);
|
|
46
|
-
i0.ɵɵpipe(3, "rpxTranslate");
|
|
47
|
-
i0.ɵɵelementEnd();
|
|
48
|
-
i0.ɵɵelementStart(4, "div", 4)(5, "ul", 5);
|
|
49
|
-
i0.ɵɵtemplate(6, HmctsErrorSummaryComponent_div_0_li_6_Template, 3, 2, "li", 6);
|
|
50
|
-
i0.ɵɵelementEnd()()();
|
|
51
|
-
} if (rf & 2) {
|
|
52
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
53
|
-
i0.ɵɵadvance(2);
|
|
54
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, ctx_r0.header), " ");
|
|
55
|
-
i0.ɵɵadvance(4);
|
|
56
|
-
i0.ɵɵproperty("ngForOf", ctx_r0.messages);
|
|
57
|
-
} }
|
|
58
|
-
function HmctsErrorSummaryComponent_div_1_p_7_Template(rf, ctx) { if (rf & 1) {
|
|
59
|
-
i0.ɵɵelementStart(0, "p", 16);
|
|
60
|
-
i0.ɵɵtext(1);
|
|
61
|
-
i0.ɵɵpipe(2, "rpxTranslate");
|
|
62
|
-
i0.ɵɵelementEnd();
|
|
63
|
-
} if (rf & 2) {
|
|
64
|
-
const message_r12 = ctx.$implicit;
|
|
65
|
-
i0.ɵɵadvance(1);
|
|
66
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, message_r12["message"]));
|
|
67
|
-
} }
|
|
68
|
-
function HmctsErrorSummaryComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
69
|
-
i0.ɵɵelementStart(0, "div", 10);
|
|
70
|
-
i0.ɵɵnamespaceSVG();
|
|
71
|
-
i0.ɵɵelementStart(1, "svg", 11);
|
|
72
|
-
i0.ɵɵelement(2, "path", 12);
|
|
73
|
-
i0.ɵɵelementEnd();
|
|
74
|
-
i0.ɵɵnamespaceHTML();
|
|
75
|
-
i0.ɵɵelementStart(3, "div", 13)(4, "span", 14);
|
|
76
|
-
i0.ɵɵtext(5);
|
|
77
|
-
i0.ɵɵpipe(6, "rpxTranslate");
|
|
78
|
-
i0.ɵɵelementEnd();
|
|
79
|
-
i0.ɵɵtemplate(7, HmctsErrorSummaryComponent_div_1_p_7_Template, 3, 3, "p", 15);
|
|
80
|
-
i0.ɵɵelementEnd()();
|
|
81
|
-
} if (rf & 2) {
|
|
82
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
83
|
-
i0.ɵɵadvance(5);
|
|
84
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 2, "Warning"));
|
|
85
|
-
i0.ɵɵadvance(2);
|
|
86
|
-
i0.ɵɵproperty("ngForOf", ctx_r1.messages);
|
|
87
|
-
} }
|
|
88
|
-
/*
|
|
89
|
-
Error Summary component
|
|
90
|
-
State Less component
|
|
91
|
-
@property errorMessages that is array of messages.
|
|
92
|
-
Component is also responsible for scrolling. Up and Down the page when user click on links
|
|
93
|
-
*/
|
|
94
|
-
export class HmctsErrorSummaryComponent {
|
|
95
|
-
set errorMessages(value) {
|
|
96
|
-
this.messages = value;
|
|
97
|
-
}
|
|
98
|
-
constructor(document) {
|
|
99
|
-
this.document = document;
|
|
100
|
-
}
|
|
101
|
-
ngAfterViewInit() {
|
|
102
|
-
this.scrollTo('errorSummary');
|
|
103
|
-
}
|
|
104
|
-
ngOnChanges(changes) {
|
|
105
|
-
if (changes.errorMessages) {
|
|
106
|
-
this.scrollTo('errorSummary');
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
scrollTo(selector) {
|
|
110
|
-
if (this.document.querySelector(`#${selector}`)) {
|
|
111
|
-
const el = this.document.querySelector(`#${selector}`);
|
|
112
|
-
el.focus();
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
hasElement(selector) {
|
|
116
|
-
return this.document.querySelector(`#${selector}`);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
HmctsErrorSummaryComponent.ɵfac = function HmctsErrorSummaryComponent_Factory(t) { return new (t || HmctsErrorSummaryComponent)(i0.ɵɵdirectiveInject(DOCUMENT)); };
|
|
120
|
-
HmctsErrorSummaryComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HmctsErrorSummaryComponent, selectors: [["xuilib-hmcts-error-summary"]], inputs: { errorMessages: "errorMessages", header: "header", showWarningMessage: "showWarningMessage" }, features: [i0.ɵɵNgOnChangesFeature], decls: 2, vars: 2, consts: [["id", "errorSummary", "class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "error-summary", 4, "ngIf"], ["class", "hmcts-banner hmcts-banner--warning", 4, "ngIf"], ["id", "errorSummary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [4, "ngFor", "ngForOf"], [3, "routerLink", "fragment", "click", 4, "ngIf"], [4, "ngIf"], [3, "routerLink", "fragment", "click"], [1, "hmcts-banner", "hmcts-banner--warning"], ["fill", "currentColor", "role", "presentation", "focusable", "false", "xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 25 25", "height", "25", "width", "25", 1, "hmcts-banner__icon"], ["d", "M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z"], [1, "hmcts-banner__message"], [1, "hmcts-banner__assistive"], ["class", "govuk-body", 4, "ngFor", "ngForOf"], [1, "govuk-body"]], template: function HmctsErrorSummaryComponent_Template(rf, ctx) { if (rf & 1) {
|
|
121
|
-
i0.ɵɵtemplate(0, HmctsErrorSummaryComponent_div_0_Template, 7, 4, "div", 0);
|
|
122
|
-
i0.ɵɵtemplate(1, HmctsErrorSummaryComponent_div_1_Template, 8, 4, "div", 1);
|
|
123
|
-
} if (rf & 2) {
|
|
124
|
-
i0.ɵɵproperty("ngIf", !ctx.showWarningMessage && ctx.messages && ctx.messages.length > 0);
|
|
125
|
-
i0.ɵɵadvance(1);
|
|
126
|
-
i0.ɵɵproperty("ngIf", ctx.showWarningMessage);
|
|
127
|
-
} }, dependencies: [i1.NgForOf, i1.NgIf, i2.RouterLink, i3.RpxTranslatePipe], encapsulation: 2 });
|
|
128
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HmctsErrorSummaryComponent, [{
|
|
129
|
-
type: Component,
|
|
130
|
-
args: [{ selector: 'xuilib-hmcts-error-summary', template: "<div *ngIf=\"!showWarningMessage && messages && messages.length > 0\" id=\"errorSummary\" class=\"govuk-error-summary\" aria-labelledby=\"error-summary-title\" role=\"alert\" tabindex=\"-1\"\n data-module=\"error-summary\">\n <h2 class=\"govuk-error-summary__title\" id=\"error-summary-title\">\n {{header | rpxTranslate}}\n </h2>\n <div class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li *ngFor=\"let message of messages\">\n <a (click)=\"scrollTo(message['id'])\" [routerLink]=\"\" [fragment]=\"message['id']\"\n *ngIf=\"hasElement(message['id'])\">{{message['message'] | rpxTranslate}}</a>\n <span *ngIf=\"!hasElement(message['id'])\">{{message['message'] | rpxTranslate}}</span>\n </li>\n </ul>\n </div>\n</div>\n<div *ngIf=\"showWarningMessage\" class=\"hmcts-banner hmcts-banner--warning\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z\" /></svg>\n <div class=\"hmcts-banner__message\">\n <span class=\"hmcts-banner__assistive\">{{'Warning' | rpxTranslate}}</span>\n <p class=\"govuk-body\" *ngFor=\"let message of messages\">{{ message['message'] | rpxTranslate}}</p>\n </div>\n</div>\n" }]
|
|
131
|
-
}], function () { return [{ type: undefined, decorators: [{
|
|
132
|
-
type: Inject,
|
|
133
|
-
args: [DOCUMENT]
|
|
134
|
-
}] }]; }, { errorMessages: [{
|
|
135
|
-
type: Input
|
|
136
|
-
}], header: [{
|
|
137
|
-
type: Input
|
|
138
|
-
}], showWarningMessage: [{
|
|
139
|
-
type: Input
|
|
140
|
-
}] }); })();
|
|
141
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG1jdHMtZXJyb3Itc3VtbWFyeS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9leHVpLWNvbW1vbi1saWIvc3JjL2xpYi9nb3YtdWkvY29tcG9uZW50cy9obWN0cy1lcnJvci1zdW1tYXJ5L2htY3RzLWVycm9yLXN1bW1hcnkuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZXh1aS1jb21tb24tbGliL3NyYy9saWIvZ292LXVpL2NvbXBvbmVudHMvaG1jdHMtZXJyb3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BobWN0cy1iYW5uZXItLXdhcm5pbmdcIj5cbiAgPHN2ZyBjbGFzcz1cImhtY3RzLWJhbm5lcl9faWNvblwiIGZpbGw9XCJjdXJyZW50Q29sb3JcIiByb2xlPVwicHJlc2VudGF0aW9uXCIgZm9jdXNhYmxlPVwiZmFsc2VcIiB4bWxucz1cImh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnXCIgdmlld0JveD1cIjAgMCAyNSAyNVwiIGhlaWdodD1cIjI1XCIgd2lkdGg9XCIyNVwiPlxuICA8cGF0aCBkPVwiTTEzLjYsMTUuNGgtMi4zdi00LjVoMi4zVjE1LjR6IE0xMy42LDE5LjhoLTIuM3YtMi4yaDIuM1YxOS44eiBNMCwyMy4yaDI1TDEyLjUsMkwwLDIzLjJ6XCIgLz48L3N2Zz5cbiAgPGRpdiBjbGFzcz1cImhtY3RzLWJhbm5lcl9fbWVzc2FnZVwiPlxuICAgICAgPHNwYW4gY2xhc3M9XCJobWN0cy1iYW5uZXJfX2Fzc2lzdGl2ZVwiPnt7J1dhcm5pbmcnIHwgcnB4VHJhbnNsYXRlfX08L3NwYW4+XG4gICAgICA8cCBjbGFzcz1cImdvdnVrLWJvZHlcIiAqbmdGb3I9XCJsZXQgbWVzc2FnZSBvZiBtZXNzYWdlc1wiPnt7IG1lc3NhZ2VbJ21lc3NhZ2UnXSB8IHJweFRyYW5zbGF0ZX19PC9wPlxuICA8L2Rpdj5cbjwvZGl2PlxuIl19
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/common";
|
|
4
|
-
import * as i2 from "rpx-xui-translation";
|
|
5
|
-
function HmctsIdentityBarComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
6
|
-
i0.ɵɵelementStart(0, "div", 1)(1, "div", 2)(2, "div", 3)(3, "span", 4);
|
|
7
|
-
i0.ɵɵtext(4);
|
|
8
|
-
i0.ɵɵpipe(5, "rpxTranslate");
|
|
9
|
-
i0.ɵɵelementEnd()()()();
|
|
10
|
-
} if (rf & 2) {
|
|
11
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
12
|
-
i0.ɵɵadvance(4);
|
|
13
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 1, ctx_r0.value));
|
|
14
|
-
} }
|
|
15
|
-
export class HmctsIdentityBarComponent {
|
|
16
|
-
set content(value) {
|
|
17
|
-
this.value = value.name;
|
|
18
|
-
}
|
|
19
|
-
constructor() { }
|
|
20
|
-
}
|
|
21
|
-
HmctsIdentityBarComponent.ɵfac = function HmctsIdentityBarComponent_Factory(t) { return new (t || HmctsIdentityBarComponent)(); };
|
|
22
|
-
HmctsIdentityBarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HmctsIdentityBarComponent, selectors: [["xuilib-hmcts-identity-bar"]], inputs: { content: "content" }, decls: 1, vars: 1, consts: [["class", "hmcts-identity-bar", 4, "ngIf"], [1, "hmcts-identity-bar"], [1, "hmcts-identity-bar__container"], [1, "hmcts-identity-bar__details"], [1, "hmcts-identity-bar__title"]], template: function HmctsIdentityBarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
23
|
-
i0.ɵɵtemplate(0, HmctsIdentityBarComponent_div_0_Template, 6, 3, "div", 0);
|
|
24
|
-
} if (rf & 2) {
|
|
25
|
-
i0.ɵɵproperty("ngIf", ctx.value);
|
|
26
|
-
} }, dependencies: [i1.NgIf, i2.RpxTranslatePipe] });
|
|
27
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HmctsIdentityBarComponent, [{
|
|
28
|
-
type: Component,
|
|
29
|
-
args: [{ selector: 'xuilib-hmcts-identity-bar', template: "<div class=\"hmcts-identity-bar\" *ngIf=\"value\">\n <div class=\"hmcts-identity-bar__container\">\n <div class=\"hmcts-identity-bar__details\">\n <span class=\"hmcts-identity-bar__title\">{{value | rpxTranslate}}</span>\n </div>\n </div>\n</div>\n" }]
|
|
30
|
-
}], function () { return []; }, { content: [{
|
|
31
|
-
type: Input
|
|
32
|
-
}] }); })();
|
|
33
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG1jdHMtaWRlbnRpdHktYmFyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2V4dWktY29tbW9uLWxpYi9zcmMvbGliL2dvdi11aS9jb21wb25lbnRzL2htY3RzLWlkZW50aXR5LWJhci9obWN0cy1pZGVudGl0eS1iYXIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZXh1aS1jb21tb24tbGliL3NyYy9saWIvZ292LXVpL2NvbXBvbmVudHMvaG1jdHMtaWRlbnRpdHktYmFyL2htY3RzLWlkZW50aXR5LWJhci5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQzs7Ozs7SUNBakQsOEJBQThDLGFBQUEsYUFBQSxjQUFBO0lBR0EsWUFBd0I7O0lBQUEsaUJBQU8sRUFBQSxFQUFBLEVBQUE7OztJQUEvQixlQUF3QjtJQUF4Qix3REFBd0I7O0FESXRFLE1BQU0sT0FBTyx5QkFBeUI7SUFFbEMsSUFBb0IsT0FBTyxDQUFDLEtBQVU7UUFDbEMsSUFBSSxDQUFDLEtBQUssR0FBRyxLQUFLLENBQUMsSUFBSSxDQUFDO0lBQzVCLENBQUM7SUFJRCxnQkFBZ0IsQ0FBQzs7a0dBUlIseUJBQXlCOzRFQUF6Qix5QkFBeUI7UUNQdEMsMEVBTU07O1FBTjJCLGdDQUFXOzt1RkRPL0IseUJBQXlCO2NBTHJDLFNBQVM7MkJBQ0ksMkJBQTJCO3NDQU1qQixPQUFPO2tCQUExQixLQUFLIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBJbnB1dCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5AQ29tcG9uZW50KHtcbiAgICBzZWxlY3RvcjogJ3h1aWxpYi1obWN0cy1pZGVudGl0eS1iYXInLFxuICAgIHRlbXBsYXRlVXJsOiAnLi9obWN0cy1pZGVudGl0eS1iYXIuY29tcG9uZW50Lmh0bWwnLFxuICAgIHN0eWxlVXJsczogWycuL2htY3RzLWlkZW50aXR5LWJhci5jb21wb25lbnQuc2NzcyddXG59KVxuZXhwb3J0IGNsYXNzIEhtY3RzSWRlbnRpdHlCYXJDb21wb25lbnQge1xuXG4gICAgQElucHV0KCkgcHVibGljIHNldCBjb250ZW50KHZhbHVlOiBhbnkpIHtcbiAgICAgICAgdGhpcy52YWx1ZSA9IHZhbHVlLm5hbWU7XG4gICAgfVxuXG4gICAgcHVibGljIHZhbHVlOiBzdHJpbmc7XG5cbiAgICBjb25zdHJ1Y3RvcigpIHsgfVxufVxuIiwiPGRpdiBjbGFzcz1cImhtY3RzLWlkZW50aXR5LWJhclwiICpuZ0lmPVwidmFsdWVcIj5cbiAgPGRpdiBjbGFzcz1cImhtY3RzLWlkZW50aXR5LWJhcl9fY29udGFpbmVyXCI+XG4gICAgPGRpdiBjbGFzcz1cImhtY3RzLWlkZW50aXR5LWJhcl9fZGV0YWlsc1wiPlxuICAgICAgPHNwYW4gY2xhc3M9XCJobWN0cy1pZGVudGl0eS1iYXJfX3RpdGxlXCI+e3t2YWx1ZSB8IHJweFRyYW5zbGF0ZX19PC9zcGFuPlxuICAgIDwvZGl2PlxuICA8L2Rpdj5cbjwvZGl2PlxuIl19
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/common";
|
|
4
|
-
import * as i2 from "@angular/router";
|
|
5
|
-
import * as i3 from "../hmcts-error-summary/hmcts-error-summary.component";
|
|
6
|
-
import * as i4 from "../hmcts-banner/hmcts-banner.component";
|
|
7
|
-
import * as i5 from "rpx-xui-translation";
|
|
8
|
-
function HmctsMainWrapperComponent_a_0_Template(rf, ctx) { if (rf & 1) {
|
|
9
|
-
const _r6 = i0.ɵɵgetCurrentView();
|
|
10
|
-
i0.ɵɵelementStart(0, "a", 8);
|
|
11
|
-
i0.ɵɵlistener("click", function HmctsMainWrapperComponent_a_0_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.onGoBack()); });
|
|
12
|
-
i0.ɵɵtext(1);
|
|
13
|
-
i0.ɵɵpipe(2, "rpxTranslate");
|
|
14
|
-
i0.ɵɵelementEnd();
|
|
15
|
-
} if (rf & 2) {
|
|
16
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
17
|
-
i0.ɵɵproperty("routerLink", ctx_r0.backLink);
|
|
18
|
-
i0.ɵɵadvance(1);
|
|
19
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, "Back"));
|
|
20
|
-
} }
|
|
21
|
-
function HmctsMainWrapperComponent_xuilib_hmcts_error_summary_4_Template(rf, ctx) { if (rf & 1) {
|
|
22
|
-
i0.ɵɵelement(0, "xuilib-hmcts-error-summary", 9);
|
|
23
|
-
} if (rf & 2) {
|
|
24
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
25
|
-
i0.ɵɵproperty("errorMessages", ctx_r1.summaryErrors.items)("header", ctx_r1.summaryErrors.header)("showWarningMessage", ctx_r1.showWarningMessage);
|
|
26
|
-
} }
|
|
27
|
-
function HmctsMainWrapperComponent_xuilib_hmcts_banner_5_Template(rf, ctx) { if (rf & 1) {
|
|
28
|
-
i0.ɵɵelement(0, "xuilib-hmcts-banner", 10);
|
|
29
|
-
} if (rf & 2) {
|
|
30
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
31
|
-
i0.ɵɵproperty("type", ctx_r2.bannerData.type)("message", ctx_r2.bannerData.message);
|
|
32
|
-
} }
|
|
33
|
-
function HmctsMainWrapperComponent_h1_6_Template(rf, ctx) { if (rf & 1) {
|
|
34
|
-
i0.ɵɵelementStart(0, "h1", 11);
|
|
35
|
-
i0.ɵɵtext(1);
|
|
36
|
-
i0.ɵɵpipe(2, "rpxTranslate");
|
|
37
|
-
i0.ɵɵelementEnd();
|
|
38
|
-
} if (rf & 2) {
|
|
39
|
-
const ctx_r3 = i0.ɵɵnextContext();
|
|
40
|
-
i0.ɵɵadvance(1);
|
|
41
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r3.title));
|
|
42
|
-
} }
|
|
43
|
-
function HmctsMainWrapperComponent_div_8_a_2_Template(rf, ctx) { if (rf & 1) {
|
|
44
|
-
const _r10 = i0.ɵɵgetCurrentView();
|
|
45
|
-
i0.ɵɵelementStart(0, "a", 15);
|
|
46
|
-
i0.ɵɵlistener("click", function HmctsMainWrapperComponent_div_8_a_2_Template_a_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r10); const actionButton_r8 = restoredCtx.$implicit; return i0.ɵɵresetView(actionButton_r8.action()); });
|
|
47
|
-
i0.ɵɵtext(1);
|
|
48
|
-
i0.ɵɵpipe(2, "rpxTranslate");
|
|
49
|
-
i0.ɵɵelementEnd();
|
|
50
|
-
} if (rf & 2) {
|
|
51
|
-
const actionButton_r8 = ctx.$implicit;
|
|
52
|
-
i0.ɵɵclassMapInterpolate1("govuk-button ", actionButton_r8.class, "");
|
|
53
|
-
i0.ɵɵadvance(1);
|
|
54
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 4, actionButton_r8.name));
|
|
55
|
-
} }
|
|
56
|
-
function HmctsMainWrapperComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
57
|
-
i0.ɵɵelementStart(0, "div", 12)(1, "div", 13);
|
|
58
|
-
i0.ɵɵtemplate(2, HmctsMainWrapperComponent_div_8_a_2_Template, 3, 6, "a", 14);
|
|
59
|
-
i0.ɵɵelementEnd()();
|
|
60
|
-
} if (rf & 2) {
|
|
61
|
-
const ctx_r4 = i0.ɵɵnextContext();
|
|
62
|
-
i0.ɵɵadvance(2);
|
|
63
|
-
i0.ɵɵproperty("ngForOf", ctx_r4.actionButtons);
|
|
64
|
-
} }
|
|
65
|
-
const _c0 = ["*"];
|
|
66
|
-
/*
|
|
67
|
-
* Main Content wrapper
|
|
68
|
-
* Responsible for:
|
|
69
|
-
* Wrapping content within the gov-uk html elements bellow
|
|
70
|
-
* @prop showBackLink - switch for back link
|
|
71
|
-
* @prop title = title
|
|
72
|
-
* @prop summaryErrors list of errors
|
|
73
|
-
* @prop back link, title (title), summaryErrors (array of errors)
|
|
74
|
-
* */
|
|
75
|
-
export class HmctsMainWrapperComponent {
|
|
76
|
-
set banner(value) {
|
|
77
|
-
this.bannerData = value;
|
|
78
|
-
}
|
|
79
|
-
constructor() {
|
|
80
|
-
this.backEvent = new EventEmitter();
|
|
81
|
-
}
|
|
82
|
-
ngOnInit() {
|
|
83
|
-
this.hasBackLink = this.backLink !== undefined || this.backEvent.observers.length > 0;
|
|
84
|
-
}
|
|
85
|
-
onGoBack() {
|
|
86
|
-
this.backEvent.emit();
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
HmctsMainWrapperComponent.ɵfac = function HmctsMainWrapperComponent_Factory(t) { return new (t || HmctsMainWrapperComponent)(); };
|
|
90
|
-
HmctsMainWrapperComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HmctsMainWrapperComponent, selectors: [["xuilib-hmcts-main-wrapper"]], inputs: { backLink: "backLink", title: "title", summaryErrors: "summaryErrors", banner: "banner", actionButtons: "actionButtons", showWarningMessage: "showWarningMessage" }, outputs: { backEvent: "backEvent" }, ngContentSelectors: _c0, decls: 9, vars: 5, consts: [["class", "govuk-back-link", 3, "routerLink", "click", 4, "ngIf"], ["id", "content", "role", "main", 1, "govuk-main-wrapper"], [1, "govuk-grid-row"], [1, "govuk-grid-column-two-thirds"], [3, "errorMessages", "header", "showWarningMessage", 4, "ngIf"], [3, "type", "message", 4, "ngIf"], ["class", "govuk-heading-xl", 4, "ngIf"], ["class", "govuk-grid-column-one-third", 4, "ngIf"], [1, "govuk-back-link", 3, "routerLink", "click"], [3, "errorMessages", "header", "showWarningMessage"], [3, "type", "message"], [1, "govuk-heading-xl"], [1, "govuk-grid-column-one-third"], [1, "hmcts-page-heading__actions-wrapper"], ["role", "button", "draggable", "false", 3, "class", "click", 4, "ngFor", "ngForOf"], ["role", "button", "draggable", "false", 3, "click"]], template: function HmctsMainWrapperComponent_Template(rf, ctx) { if (rf & 1) {
|
|
91
|
-
i0.ɵɵprojectionDef();
|
|
92
|
-
i0.ɵɵtemplate(0, HmctsMainWrapperComponent_a_0_Template, 3, 4, "a", 0);
|
|
93
|
-
i0.ɵɵelementStart(1, "main", 1)(2, "div", 2)(3, "div", 3);
|
|
94
|
-
i0.ɵɵtemplate(4, HmctsMainWrapperComponent_xuilib_hmcts_error_summary_4_Template, 1, 3, "xuilib-hmcts-error-summary", 4);
|
|
95
|
-
i0.ɵɵtemplate(5, HmctsMainWrapperComponent_xuilib_hmcts_banner_5_Template, 1, 2, "xuilib-hmcts-banner", 5);
|
|
96
|
-
i0.ɵɵtemplate(6, HmctsMainWrapperComponent_h1_6_Template, 3, 3, "h1", 6);
|
|
97
|
-
i0.ɵɵprojection(7);
|
|
98
|
-
i0.ɵɵelementEnd();
|
|
99
|
-
i0.ɵɵtemplate(8, HmctsMainWrapperComponent_div_8_Template, 3, 1, "div", 7);
|
|
100
|
-
i0.ɵɵelementEnd()();
|
|
101
|
-
} if (rf & 2) {
|
|
102
|
-
i0.ɵɵproperty("ngIf", ctx.hasBackLink);
|
|
103
|
-
i0.ɵɵadvance(4);
|
|
104
|
-
i0.ɵɵproperty("ngIf", ctx.summaryErrors && !ctx.summaryErrors.isFromValid);
|
|
105
|
-
i0.ɵɵadvance(1);
|
|
106
|
-
i0.ɵɵproperty("ngIf", ctx.bannerData);
|
|
107
|
-
i0.ɵɵadvance(1);
|
|
108
|
-
i0.ɵɵproperty("ngIf", ctx.title);
|
|
109
|
-
i0.ɵɵadvance(2);
|
|
110
|
-
i0.ɵɵproperty("ngIf", (ctx.actionButtons == null ? null : ctx.actionButtons.length) > 0);
|
|
111
|
-
} }, dependencies: [i1.NgForOf, i1.NgIf, i2.RouterLink, i3.HmctsErrorSummaryComponent, i4.HmctsBannerComponent, i5.RpxTranslatePipe], encapsulation: 2 });
|
|
112
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HmctsMainWrapperComponent, [{
|
|
113
|
-
type: Component,
|
|
114
|
-
args: [{ selector: 'xuilib-hmcts-main-wrapper', template: "<a *ngIf=\"hasBackLink\" [routerLink]=\"backLink\" (click)=\"onGoBack()\" class=\"govuk-back-link\">{{'Back' | rpxTranslate}}</a>\n<main id=\"content\" role=\"main\" class=\"govuk-main-wrapper\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <xuilib-hmcts-error-summary\n *ngIf=\"summaryErrors && !summaryErrors.isFromValid\"\n [errorMessages]=\"summaryErrors.items\"\n [header]=\"summaryErrors.header\"\n [showWarningMessage]=\"showWarningMessage\">\n </xuilib-hmcts-error-summary>\n <xuilib-hmcts-banner *ngIf=\"bannerData\"\n [type]=\"bannerData.type\"\n [message]=\"bannerData.message\"\n ></xuilib-hmcts-banner>\n <h1 *ngIf=\"title\" class=\"govuk-heading-xl\">{{title | rpxTranslate}}</h1>\n <ng-content></ng-content>\n </div>\n <div class=\"govuk-grid-column-one-third\" *ngIf=\"actionButtons?.length > 0\">\n <div class=\"hmcts-page-heading__actions-wrapper\">\n <a\n *ngFor=\"let actionButton of actionButtons\"\n (click)=\"actionButton.action()\"\n role=\"button\"\n draggable=\"false\"\n class=\"govuk-button {{ actionButton.class }}\"\n >{{ actionButton.name | rpxTranslate }}</a>\n </div>\n </div>\n </div>\n</main>\n" }]
|
|
115
|
-
}], function () { return []; }, { backLink: [{
|
|
116
|
-
type: Input
|
|
117
|
-
}], title: [{
|
|
118
|
-
type: Input
|
|
119
|
-
}], summaryErrors: [{
|
|
120
|
-
type: Input
|
|
121
|
-
}], banner: [{
|
|
122
|
-
type: Input
|
|
123
|
-
}], actionButtons: [{
|
|
124
|
-
type: Input
|
|
125
|
-
}], showWarningMessage: [{
|
|
126
|
-
type: Input
|
|
127
|
-
}], backEvent: [{
|
|
128
|
-
type: Output
|
|
129
|
-
}] }); })();
|
|
130
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG1jdHMtbWFpbi13cmFwcGVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2V4dWktY29tbW9uLWxpYi9zcmMvbGliL2dvdi11aS9jb21wb25lbnRzL2htY3RzLW1haW4td3JhcHBlci9obWN0cy1tYWluLXdyYXBwZXIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZXh1aS1jb21tb24tbGliL3NyYy9saWIvZ292LXVpL2NvbXBvbmVudHMvaG1jdHMtbWFpbi13cmFwcGVyL2htY3RzLW1haW4td3JhcHBlci5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLFlBQVksRUFBRSxLQUFLLEVBQVUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7Ozs7Ozs7SUNBOUUsNEJBQTRGO0lBQTdDLCtKQUFTLGVBQUEsaUJBQVUsQ0FBQSxJQUFDO0lBQXlCLFlBQTBCOztJQU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AgICAgICAgIFt0eXBlXT1cImJhbm5lckRhdGEudHlwZVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICBbbWVzc2FnZV09XCJiYW5uZXJEYXRhLm1lc3NhZ2VcIlxuICAgICAgPjwveHVpbGliLWhtY3RzLWJhbm5lcj5cbiAgICAgIDxoMSAqbmdJZj1cInRpdGxlXCIgY2xhc3M9XCJnb3Z1ay1oZWFkaW5nLXhsXCI+e3t0aXRsZSB8IHJweFRyYW5zbGF0ZX19PC9oMT5cbiAgICAgIDxuZy1jb250ZW50PjwvbmctY29udGVudD5cbiAgICA8L2Rpdj5cbiAgICA8ZGl2IGNsYXNzPVwiZ292dWstZ3JpZC1jb2x1bW4tb25lLXRoaXJkXCIgKm5nSWY9XCJhY3Rpb25CdXR0b25zPy5sZW5ndGggPiAwXCI+XG4gICAgICA8ZGl2IGNsYXNzPVwiaG1jdHMtcGFnZS1oZWFkaW5nX19hY3Rpb25zLXdyYXBwZXJcIj5cbiAgICAgICAgPGFcbiAgICAgICAgICAqbmdGb3I9XCJsZXQgYWN0aW9uQnV0dG9uIG9mIGFjdGlvbkJ1dHRvbnNcIlxuICAgICAgICAgIChjbGljayk9XCJhY3Rpb25CdXR0b24uYWN0aW9uKClcIlxuICAgICAgICAgIHJvbGU9XCJidXR0b25cIlxuICAgICAgICAgIGRyYWdnYWJsZT1cImZhbHNlXCJcbiAgICAgICAgICBjbGFzcz1cImdvdnVrLWJ1dHRvbiB7eyBhY3Rpb25CdXR0b24uY2xhc3MgfX1cIlxuICAgICAgICA+e3sgYWN0aW9uQnV0dG9uLm5hbWUgfCBycHhUcmFuc2xhdGUgfX08L2E+XG4gICAgICA8L2Rpdj5cbiAgICA8L2Rpdj5cbiAgPC9kaXY+XG48L21haW4+XG4iXX0=
|
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/common";
|
|
4
|
-
import * as i2 from "@angular/router";
|
|
5
|
-
import * as i3 from "ngx-pagination";
|
|
6
|
-
import * as i4 from "rpx-xui-translation";
|
|
7
|
-
function HmctsPaginationComponent_ul_6_a_2_Template(rf, ctx) { if (rf & 1) {
|
|
8
|
-
const _r7 = i0.ɵɵgetCurrentView();
|
|
9
|
-
i0.ɵɵelementStart(0, "a", 11);
|
|
10
|
-
i0.ɵɵlistener("keyup.enter", function HmctsPaginationComponent_ul_6_a_2_Template_a_keyup_enter_0_listener() { i0.ɵɵrestoreView(_r7); i0.ɵɵnextContext(2); const _r0 = i0.ɵɵreference(1); return i0.ɵɵresetView(_r0.previous()); })("click", function HmctsPaginationComponent_ul_6_a_2_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r7); i0.ɵɵnextContext(2); const _r0 = i0.ɵɵreference(1); return i0.ɵɵresetView(_r0.previous()); });
|
|
11
|
-
i0.ɵɵtext(1);
|
|
12
|
-
i0.ɵɵpipe(2, "rpxTranslate");
|
|
13
|
-
i0.ɵɵelementStart(3, "span", 12);
|
|
14
|
-
i0.ɵɵtext(4);
|
|
15
|
-
i0.ɵɵpipe(5, "rpxTranslate");
|
|
16
|
-
i0.ɵɵelementEnd()();
|
|
17
|
-
} if (rf & 2) {
|
|
18
|
-
i0.ɵɵadvance(1);
|
|
19
|
-
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(2, 2, "Previous"), " ");
|
|
20
|
-
i0.ɵɵadvance(3);
|
|
21
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 4, "set of pages"));
|
|
22
|
-
} }
|
|
23
|
-
function HmctsPaginationComponent_ul_6_ng_container_3_li_1_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
24
|
-
const _r15 = i0.ɵɵgetCurrentView();
|
|
25
|
-
i0.ɵɵelementStart(0, "a", 11);
|
|
26
|
-
i0.ɵɵlistener("keyup.enter", function HmctsPaginationComponent_ul_6_ng_container_3_li_1_a_1_Template_a_keyup_enter_0_listener() { i0.ɵɵrestoreView(_r15); const page_r10 = i0.ɵɵnextContext().$implicit; i0.ɵɵnextContext(3); const _r0 = i0.ɵɵreference(1); return i0.ɵɵresetView(_r0.setCurrent(page_r10.value)); })("click", function HmctsPaginationComponent_ul_6_ng_container_3_li_1_a_1_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r15); const page_r10 = i0.ɵɵnextContext().$implicit; i0.ɵɵnextContext(3); const _r0 = i0.ɵɵreference(1); return i0.ɵɵresetView(_r0.setCurrent(page_r10.value)); });
|
|
27
|
-
i0.ɵɵelementStart(1, "span", 12);
|
|
28
|
-
i0.ɵɵtext(2);
|
|
29
|
-
i0.ɵɵpipe(3, "rpxTranslate");
|
|
30
|
-
i0.ɵɵelementEnd();
|
|
31
|
-
i0.ɵɵelementStart(4, "span");
|
|
32
|
-
i0.ɵɵtext(5);
|
|
33
|
-
i0.ɵɵpipe(6, "number");
|
|
34
|
-
i0.ɵɵelementEnd()();
|
|
35
|
-
} if (rf & 2) {
|
|
36
|
-
const page_r10 = i0.ɵɵnextContext().$implicit;
|
|
37
|
-
i0.ɵɵadvance(2);
|
|
38
|
-
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "page"), " ");
|
|
39
|
-
i0.ɵɵadvance(3);
|
|
40
|
-
i0.ɵɵtextInterpolate(page_r10.label === "..." ? page_r10.label : i0.ɵɵpipeBind2(6, 4, page_r10.label, ""));
|
|
41
|
-
} }
|
|
42
|
-
function HmctsPaginationComponent_ul_6_ng_container_3_li_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
43
|
-
i0.ɵɵelementContainerStart(0);
|
|
44
|
-
i0.ɵɵelementStart(1, "span");
|
|
45
|
-
i0.ɵɵtext(2);
|
|
46
|
-
i0.ɵɵpipe(3, "number");
|
|
47
|
-
i0.ɵɵelementEnd();
|
|
48
|
-
i0.ɵɵelementContainerEnd();
|
|
49
|
-
} if (rf & 2) {
|
|
50
|
-
const page_r10 = i0.ɵɵnextContext().$implicit;
|
|
51
|
-
i0.ɵɵadvance(2);
|
|
52
|
-
i0.ɵɵtextInterpolate(page_r10.label === "..." ? page_r10.label : i0.ɵɵpipeBind2(3, 1, page_r10.label, ""));
|
|
53
|
-
} }
|
|
54
|
-
function HmctsPaginationComponent_ul_6_ng_container_3_li_1_Template(rf, ctx) { if (rf & 1) {
|
|
55
|
-
i0.ɵɵelementStart(0, "li", 14);
|
|
56
|
-
i0.ɵɵtemplate(1, HmctsPaginationComponent_ul_6_ng_container_3_li_1_a_1_Template, 7, 7, "a", 8);
|
|
57
|
-
i0.ɵɵtemplate(2, HmctsPaginationComponent_ul_6_ng_container_3_li_1_ng_container_2_Template, 4, 4, "ng-container", 9);
|
|
58
|
-
i0.ɵɵelementEnd();
|
|
59
|
-
} if (rf & 2) {
|
|
60
|
-
const page_r10 = ctx.$implicit;
|
|
61
|
-
i0.ɵɵnextContext(3);
|
|
62
|
-
const _r0 = i0.ɵɵreference(1);
|
|
63
|
-
i0.ɵɵclassProp("hmcts-pagination__item--active", _r0.getCurrent() === page_r10.value)("hmcts-pagination__item--dots", page_r10.label === "...");
|
|
64
|
-
i0.ɵɵadvance(1);
|
|
65
|
-
i0.ɵɵproperty("ngIf", _r0.getCurrent() !== page_r10.value);
|
|
66
|
-
i0.ɵɵadvance(1);
|
|
67
|
-
i0.ɵɵproperty("ngIf", _r0.getCurrent() === page_r10.value);
|
|
68
|
-
} }
|
|
69
|
-
function HmctsPaginationComponent_ul_6_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
70
|
-
i0.ɵɵelementContainerStart(0);
|
|
71
|
-
i0.ɵɵtemplate(1, HmctsPaginationComponent_ul_6_ng_container_3_li_1_Template, 3, 6, "li", 13);
|
|
72
|
-
i0.ɵɵelementContainerEnd();
|
|
73
|
-
} if (rf & 2) {
|
|
74
|
-
i0.ɵɵnextContext(2);
|
|
75
|
-
const _r0 = i0.ɵɵreference(1);
|
|
76
|
-
i0.ɵɵadvance(1);
|
|
77
|
-
i0.ɵɵproperty("ngForOf", _r0.pages);
|
|
78
|
-
} }
|
|
79
|
-
function HmctsPaginationComponent_ul_6_a_5_Template(rf, ctx) { if (rf & 1) {
|
|
80
|
-
const _r21 = i0.ɵɵgetCurrentView();
|
|
81
|
-
i0.ɵɵelementStart(0, "a", 11);
|
|
82
|
-
i0.ɵɵlistener("keyup.enter", function HmctsPaginationComponent_ul_6_a_5_Template_a_keyup_enter_0_listener() { i0.ɵɵrestoreView(_r21); i0.ɵɵnextContext(2); const _r0 = i0.ɵɵreference(1); return i0.ɵɵresetView(_r0.next()); })("click", function HmctsPaginationComponent_ul_6_a_5_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r21); i0.ɵɵnextContext(2); const _r0 = i0.ɵɵreference(1); return i0.ɵɵresetView(_r0.next()); });
|
|
83
|
-
i0.ɵɵtext(1);
|
|
84
|
-
i0.ɵɵpipe(2, "rpxTranslate");
|
|
85
|
-
i0.ɵɵelementStart(3, "span", 12);
|
|
86
|
-
i0.ɵɵtext(4);
|
|
87
|
-
i0.ɵɵpipe(5, "rpxTranslate");
|
|
88
|
-
i0.ɵɵelementEnd()();
|
|
89
|
-
} if (rf & 2) {
|
|
90
|
-
i0.ɵɵadvance(1);
|
|
91
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, "Next"));
|
|
92
|
-
i0.ɵɵadvance(3);
|
|
93
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, "page"), "");
|
|
94
|
-
} }
|
|
95
|
-
function HmctsPaginationComponent_ul_6_Template(rf, ctx) { if (rf & 1) {
|
|
96
|
-
i0.ɵɵelementStart(0, "ul", 6)(1, "li", 7);
|
|
97
|
-
i0.ɵɵtemplate(2, HmctsPaginationComponent_ul_6_a_2_Template, 6, 6, "a", 8);
|
|
98
|
-
i0.ɵɵelementEnd();
|
|
99
|
-
i0.ɵɵtemplate(3, HmctsPaginationComponent_ul_6_ng_container_3_Template, 2, 1, "ng-container", 9);
|
|
100
|
-
i0.ɵɵelementStart(4, "li", 10);
|
|
101
|
-
i0.ɵɵtemplate(5, HmctsPaginationComponent_ul_6_a_5_Template, 6, 6, "a", 8);
|
|
102
|
-
i0.ɵɵelementEnd()();
|
|
103
|
-
} if (rf & 2) {
|
|
104
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
105
|
-
const _r0 = i0.ɵɵreference(1);
|
|
106
|
-
i0.ɵɵadvance(1);
|
|
107
|
-
i0.ɵɵclassProp("disabled", _r0.isFirstPage());
|
|
108
|
-
i0.ɵɵadvance(1);
|
|
109
|
-
i0.ɵɵproperty("ngIf", 1 < _r0.getCurrent());
|
|
110
|
-
i0.ɵɵadvance(1);
|
|
111
|
-
i0.ɵɵproperty("ngIf", ctx_r1.showPageNumbers);
|
|
112
|
-
i0.ɵɵadvance(1);
|
|
113
|
-
i0.ɵɵclassProp("disabled", _r0.isLastPage());
|
|
114
|
-
i0.ɵɵadvance(1);
|
|
115
|
-
i0.ɵɵproperty("ngIf", !_r0.isLastPage());
|
|
116
|
-
} }
|
|
117
|
-
function HmctsPaginationComponent_p_7_Template(rf, ctx) { if (rf & 1) {
|
|
118
|
-
i0.ɵɵelementStart(0, "p", 15);
|
|
119
|
-
i0.ɵɵtext(1);
|
|
120
|
-
i0.ɵɵpipe(2, "rpxTranslate");
|
|
121
|
-
i0.ɵɵelementStart(3, "b");
|
|
122
|
-
i0.ɵɵtext(4);
|
|
123
|
-
i0.ɵɵelementEnd();
|
|
124
|
-
i0.ɵɵtext(5);
|
|
125
|
-
i0.ɵɵpipe(6, "rpxTranslate");
|
|
126
|
-
i0.ɵɵelementStart(7, "b");
|
|
127
|
-
i0.ɵɵtext(8);
|
|
128
|
-
i0.ɵɵelementEnd();
|
|
129
|
-
i0.ɵɵtext(9);
|
|
130
|
-
i0.ɵɵpipe(10, "rpxTranslate");
|
|
131
|
-
i0.ɵɵelementStart(11, "b");
|
|
132
|
-
i0.ɵɵtext(12);
|
|
133
|
-
i0.ɵɵelementEnd();
|
|
134
|
-
i0.ɵɵtext(13);
|
|
135
|
-
i0.ɵɵpipe(14, "rpxTranslate");
|
|
136
|
-
i0.ɵɵelementEnd();
|
|
137
|
-
} if (rf & 2) {
|
|
138
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
139
|
-
const _r0 = i0.ɵɵreference(1);
|
|
140
|
-
i0.ɵɵadvance(1);
|
|
141
|
-
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(2, 7, "Showing"), " ");
|
|
142
|
-
i0.ɵɵadvance(3);
|
|
143
|
-
i0.ɵɵtextInterpolate(_r0.getCurrent() * ctx_r2.pageSize - ctx_r2.pageSize + 1);
|
|
144
|
-
i0.ɵɵadvance(1);
|
|
145
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 9, "to"), " ");
|
|
146
|
-
i0.ɵɵadvance(3);
|
|
147
|
-
i0.ɵɵtextInterpolate(_r0.getCurrent() * ctx_r2.pageSize > _r0.getTotalItems() ? _r0.getTotalItems() : _r0.getCurrent() * ctx_r2.pageSize);
|
|
148
|
-
i0.ɵɵadvance(1);
|
|
149
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 11, "of"), " ");
|
|
150
|
-
i0.ɵɵadvance(3);
|
|
151
|
-
i0.ɵɵtextInterpolate(_r0.getTotalItems());
|
|
152
|
-
i0.ɵɵadvance(1);
|
|
153
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(14, 13, "results"), "");
|
|
154
|
-
} }
|
|
155
|
-
export class HmctsPaginationComponent {
|
|
156
|
-
constructor() {
|
|
157
|
-
this.maxSize = 7;
|
|
158
|
-
this.pageSize = 10;
|
|
159
|
-
this.showPageNumbers = true;
|
|
160
|
-
this.showResultCount = true;
|
|
161
|
-
this.pageChange = new EventEmitter();
|
|
162
|
-
this.pageBoundsCorrection = new EventEmitter();
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
HmctsPaginationComponent.ɵfac = function HmctsPaginationComponent_Factory(t) { return new (t || HmctsPaginationComponent)(); };
|
|
166
|
-
HmctsPaginationComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HmctsPaginationComponent, selectors: [["xuilib-hmcts-pagination"]], inputs: { id: "id", maxSize: "maxSize", pageSize: "pageSize", showPageNumbers: "showPageNumbers", showResultCount: "showResultCount" }, outputs: { pageChange: "pageChange", pageBoundsCorrection: "pageBoundsCorrection" }, decls: 8, vars: 7, consts: [[3, "id", "maxSize", "pageChange", "pageBoundsCorrection"], ["p", "paginationApi"], ["id", "pagination-label", 1, "hmcts-pagination"], ["aria-labelledby", "pagination-label", 1, "govuk-visually-hidden"], ["class", "hmcts-pagination__list", 4, "ngIf"], ["class", "hmcts-pagination__results", 4, "ngIf"], [1, "hmcts-pagination__list"], [1, "hmcts-pagination__item", "hmcts-pagination__item--prev"], ["class", "hmcts-pagination__link", 3, "routerLink", "keyup.enter", "click", 4, "ngIf"], [4, "ngIf"], [1, "hmcts-pagination__item", "hmcts-pagination__item--next"], [1, "hmcts-pagination__link", 3, "routerLink", "keyup.enter", "click"], [1, "govuk-visually-hidden"], ["class", "hmcts-pagination__item", 3, "hmcts-pagination__item--active", "hmcts-pagination__item--dots", 4, "ngFor", "ngForOf"], [1, "hmcts-pagination__item"], [1, "hmcts-pagination__results"]], template: function HmctsPaginationComponent_Template(rf, ctx) { if (rf & 1) {
|
|
167
|
-
i0.ɵɵelementStart(0, "pagination-template", 0, 1);
|
|
168
|
-
i0.ɵɵlistener("pageChange", function HmctsPaginationComponent_Template_pagination_template_pageChange_0_listener($event) { return ctx.pageChange.emit($event); })("pageBoundsCorrection", function HmctsPaginationComponent_Template_pagination_template_pageBoundsCorrection_0_listener($event) { return ctx.pageBoundsCorrection.emit($event); });
|
|
169
|
-
i0.ɵɵelementStart(2, "nav", 2)(3, "p", 3);
|
|
170
|
-
i0.ɵɵtext(4);
|
|
171
|
-
i0.ɵɵpipe(5, "rpxTranslate");
|
|
172
|
-
i0.ɵɵelementEnd();
|
|
173
|
-
i0.ɵɵtemplate(6, HmctsPaginationComponent_ul_6_Template, 6, 7, "ul", 4);
|
|
174
|
-
i0.ɵɵtemplate(7, HmctsPaginationComponent_p_7_Template, 15, 15, "p", 5);
|
|
175
|
-
i0.ɵɵelementEnd()();
|
|
176
|
-
} if (rf & 2) {
|
|
177
|
-
const _r0 = i0.ɵɵreference(1);
|
|
178
|
-
i0.ɵɵproperty("id", ctx.id)("maxSize", ctx.maxSize);
|
|
179
|
-
i0.ɵɵadvance(4);
|
|
180
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 5, "Pagination navigation"));
|
|
181
|
-
i0.ɵɵadvance(2);
|
|
182
|
-
i0.ɵɵproperty("ngIf", !(_r0.pages.length <= 1));
|
|
183
|
-
i0.ɵɵadvance(1);
|
|
184
|
-
i0.ɵɵproperty("ngIf", ctx.showResultCount);
|
|
185
|
-
} }, dependencies: [i1.NgForOf, i1.NgIf, i2.RouterLink, i3.PaginationControlsDirective, i1.DecimalPipe, i4.RpxTranslatePipe], styles: [".hmcts-pagination__results[_ngcontent-%COMP%]{float:right}"] });
|
|
186
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HmctsPaginationComponent, [{
|
|
187
|
-
type: Component,
|
|
188
|
-
args: [{ selector: 'xuilib-hmcts-pagination', template: "<pagination-template #p=\"paginationApi\" [id]=\"id\" [maxSize]=\"maxSize\" (pageChange)=\"pageChange.emit($event)\"\n (pageBoundsCorrection)=\"pageBoundsCorrection.emit($event)\">\n\n <nav class=\"hmcts-pagination\" id=\"pagination-label\">\n <p class=\"govuk-visually-hidden\" aria-labelledby=\"pagination-label\">{{'Pagination navigation' | rpxTranslate}}</p>\n <ul class=\"hmcts-pagination__list\" *ngIf=\"!(p.pages.length <= 1)\">\n\n <li class=\"hmcts-pagination__item hmcts-pagination__item--prev\" [class.disabled]=\"p.isFirstPage()\">\n <a [routerLink]=\"\" class=\"hmcts-pagination__link\" *ngIf=\"1 < p.getCurrent()\" (keyup.enter)=\"p.previous()\"\n (click)=\"p.previous()\">{{'Previous' | rpxTranslate}} <span class=\"govuk-visually-hidden\">{{'set of pages' | rpxTranslate}}</span></a>\n </li>\n\n <ng-container *ngIf=\"showPageNumbers\">\n <li class=\"hmcts-pagination__item\" [class.hmcts-pagination__item--active]=\"p.getCurrent() === page.value\"\n [class.hmcts-pagination__item--dots]=\"page.label === '...'\" *ngFor=\"let page of p.pages\">\n <a class=\"hmcts-pagination__link\" [routerLink]=\"\" (keyup.enter)=\"p.setCurrent(page.value)\"\n (click)=\"p.setCurrent(page.value)\" *ngIf=\"p.getCurrent() !== page.value\">\n <span class=\"govuk-visually-hidden\">{{'page' | rpxTranslate}} </span>\n <span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span>\n </a>\n <ng-container *ngIf=\"p.getCurrent() === page.value\">\n <span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span>\n </ng-container>\n </li>\n </ng-container>\n\n <li class=\"hmcts-pagination__item hmcts-pagination__item--next\" [class.disabled]=\"p.isLastPage()\">\n <a [routerLink]=\"\" class=\"hmcts-pagination__link\" *ngIf=\"!p.isLastPage()\" (keyup.enter)=\"p.next()\"\n (click)=\"p.next()\">{{'Next' | rpxTranslate}}<span class=\"govuk-visually-hidden\"> {{'page' | rpxTranslate}}</span></a>\n </li>\n\n </ul>\n <p class=\"hmcts-pagination__results\" *ngIf=\"showResultCount\">{{'Showing' | rpxTranslate}} <b>{{(p.getCurrent() * pageSize) - pageSize + 1}}</b>\n {{'to' | rpxTranslate}} <b>{{ p.getCurrent() * pageSize > p.getTotalItems() ? p.getTotalItems() : p.getCurrent() *\n pageSize}}</b> {{'of' | rpxTranslate}} <b>{{p.getTotalItems()}}</b> {{'results' | rpxTranslate}}</p>\n </nav>\n\n</pagination-template>\n", styles: [".hmcts-pagination__results{float:right}\n"] }]
|
|
189
|
-
}], null, { id: [{
|
|
190
|
-
type: Input
|
|
191
|
-
}], maxSize: [{
|
|
192
|
-
type: Input
|
|
193
|
-
}], pageSize: [{
|
|
194
|
-
type: Input
|
|
195
|
-
}], showPageNumbers: [{
|
|
196
|
-
type: Input
|
|
197
|
-
}], showResultCount: [{
|
|
198
|
-
type: Input
|
|
199
|
-
}], pageChange: [{
|
|
200
|
-
type: Output
|
|
201
|
-
}], pageBoundsCorrection: [{
|
|
202
|
-
type: Output
|
|
203
|
-
}] }); })();
|
|
204
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG1jdHMtcGFnaW5hdGlvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9leHVpLWNvbW1vbi1saWIvc3JjL2xpYi9nb3YtdWkvY29tcG9uZW50cy9obWN0cy1wYWdpbmF0aW9uL2htY3RzLXBhZ2luYXRpb24uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZXh1aS1jb21tb24tbGliL3NyYy9saWIvZ292LXVpL2NvbXBvbmVudHMvaG1jdHMtcGFnaW5hdGlvbi9obWN0cy1wYWdpbmF0aW9uLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7Ozs7Ozs7O0lDUS9ELDZCQUN5QjtJQURvRCxnTUFBZSxlQUFBLGNBQVksQ0FBQSxJQUFDLHVLQUM5RixlQUFBLGNBQVksQ0FBQSxJQURrRjtJQUNoRixZQUE4Qjs7SUFBQSxnQ0FBb0M7SUFBQSxZQUFpQzs7SUFBQSxpQkFBTyxFQUFBOztJQUExRyxlQUE4QjtJQUE5QixnRUFBOEI7SUFBb0MsZ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UmVzdWx0Q291bnRcIj57eydTaG93aW5nJyB8IHJweFRyYW5zbGF0ZX19IDxiPnt7KHAuZ2V0Q3VycmVudCgpICogcGFnZVNpemUpIC0gcGFnZVNpemUgKyAxfX08L2I+XG4gICAgICB7eyd0bycgfCBycHhUcmFuc2xhdGV9fSA8Yj57eyBwLmdldEN1cnJlbnQoKSAqIHBhZ2VTaXplID4gcC5nZXRUb3RhbEl0ZW1zKCkgPyBwLmdldFRvdGFsSXRlbXMoKSA6IHAuZ2V0Q3VycmVudCgpICpcbiAgICAgICAgcGFnZVNpemV9fTwvYj4ge3snb2YnIHwgcnB4VHJhbnNsYXRlfX0gPGI+e3twLmdldFRvdGFsSXRlbXMoKX19PC9iPiB7eydyZXN1bHRzJyB8IHJweFRyYW5zbGF0ZX19PC9wPlxuICA8L25hdj5cblxuPC9wYWdpbmF0aW9uLXRlbXBsYXRlPlxuIl19
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/common";
|
|
4
|
-
import * as i2 from "@angular/router";
|
|
5
|
-
import * as i3 from "rpx-xui-translation";
|
|
6
|
-
function HmctsPrimaryNavigationComponent_nav_0_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
7
|
-
i0.ɵɵelement(0, "div", 6);
|
|
8
|
-
} }
|
|
9
|
-
function HmctsPrimaryNavigationComponent_nav_0_li_4_Template(rf, ctx) { if (rf & 1) {
|
|
10
|
-
i0.ɵɵelementStart(0, "li", 7);
|
|
11
|
-
i0.ɵɵelement(1, "a", 8);
|
|
12
|
-
i0.ɵɵpipe(2, "rpxTranslate");
|
|
13
|
-
i0.ɵɵelementEnd();
|
|
14
|
-
} if (rf & 2) {
|
|
15
|
-
const item_r3 = ctx.$implicit;
|
|
16
|
-
i0.ɵɵadvance(1);
|
|
17
|
-
i0.ɵɵproperty("routerLink", item_r3.href)("innerHTML", i0.ɵɵpipeBind1(2, 3, item_r3.text), i0.ɵɵsanitizeHtml);
|
|
18
|
-
i0.ɵɵattribute("aria-current", item_r3.active ? true : null);
|
|
19
|
-
} }
|
|
20
|
-
function HmctsPrimaryNavigationComponent_nav_0_Template(rf, ctx) { if (rf & 1) {
|
|
21
|
-
i0.ɵɵelementStart(0, "nav", 1)(1, "div", 2);
|
|
22
|
-
i0.ɵɵtemplate(2, HmctsPrimaryNavigationComponent_nav_0_div_2_Template, 1, 0, "div", 3);
|
|
23
|
-
i0.ɵɵelementStart(3, "ul", 4);
|
|
24
|
-
i0.ɵɵtemplate(4, HmctsPrimaryNavigationComponent_nav_0_li_4_Template, 3, 5, "li", 5);
|
|
25
|
-
i0.ɵɵelementEnd()()();
|
|
26
|
-
} if (rf & 2) {
|
|
27
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
28
|
-
i0.ɵɵattribute("aria-label", ctx_r0.label);
|
|
29
|
-
i0.ɵɵadvance(2);
|
|
30
|
-
i0.ɵɵproperty("ngIf", ctx_r0.isBrandedHeader);
|
|
31
|
-
i0.ɵɵadvance(2);
|
|
32
|
-
i0.ɵɵproperty("ngForOf", ctx_r0.items);
|
|
33
|
-
} }
|
|
34
|
-
export class HmctsPrimaryNavigationComponent {
|
|
35
|
-
set userLoggedIn(value) {
|
|
36
|
-
this.isUserLoggedIn = value;
|
|
37
|
-
}
|
|
38
|
-
constructor() {
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
HmctsPrimaryNavigationComponent.ɵfac = function HmctsPrimaryNavigationComponent_Factory(t) { return new (t || HmctsPrimaryNavigationComponent)(); };
|
|
42
|
-
HmctsPrimaryNavigationComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HmctsPrimaryNavigationComponent, selectors: [["xuilib-hmcts-primary-navigation"]], inputs: { userLoggedIn: "userLoggedIn", label: "label", items: "items", isBrandedHeader: "isBrandedHeader" }, decls: 1, vars: 1, consts: [["class", "hmcts-primary-navigation", 4, "ngIf"], [1, "hmcts-primary-navigation"], [1, "hmcts-primary-navigation__container"], ["class", "govuk-header__logo", 4, "ngIf"], [1, "hmcts-primary-navigation__list"], ["class", "hmcts-primary-navigation__item", 4, "ngFor", "ngForOf"], [1, "govuk-header__logo"], [1, "hmcts-primary-navigation__item"], [1, "hmcts-primary-navigation__link", 3, "routerLink", "innerHTML"]], template: function HmctsPrimaryNavigationComponent_Template(rf, ctx) { if (rf & 1) {
|
|
43
|
-
i0.ɵɵtemplate(0, HmctsPrimaryNavigationComponent_nav_0_Template, 5, 3, "nav", 0);
|
|
44
|
-
} if (rf & 2) {
|
|
45
|
-
i0.ɵɵproperty("ngIf", ctx.isUserLoggedIn);
|
|
46
|
-
} }, dependencies: [i1.NgForOf, i1.NgIf, i2.RouterLink, i3.RpxTranslatePipe] });
|
|
47
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HmctsPrimaryNavigationComponent, [{
|
|
48
|
-
type: Component,
|
|
49
|
-
args: [{ selector: 'xuilib-hmcts-primary-navigation', template: "<nav *ngIf=\"isUserLoggedIn\" class=\"hmcts-primary-navigation\" [attr.aria-label]=\"label\">\n <div class=\"hmcts-primary-navigation__container\">\n <div class=\"govuk-header__logo\" *ngIf=\"isBrandedHeader\"></div>\n <ul class=\"hmcts-primary-navigation__list\">\n <li class=\"hmcts-primary-navigation__item\" *ngFor=\"let item of items\">\n <a class=\"hmcts-primary-navigation__link\" [attr.aria-current]=\"item.active ? true: null\" [routerLink]=\"item.href\" [innerHTML]=\"item.text | rpxTranslate\"></a>\n </li>\n </ul>\n </div>\n</nav>\n" }]
|
|
50
|
-
}], function () { return []; }, { userLoggedIn: [{
|
|
51
|
-
type: Input
|
|
52
|
-
}], label: [{
|
|
53
|
-
type: Input
|
|
54
|
-
}], items: [{
|
|
55
|
-
type: Input
|
|
56
|
-
}], isBrandedHeader: [{
|
|
57
|
-
type: Input
|
|
58
|
-
}] }); })();
|
|
59
|
-
//# sourceMappingURL=data:application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