@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
package/esm2020/lib/gov-ui/components/gov-uk-error-message/gov-uk-error-message.component.mjs
DELETED
|
@@ -1,45 +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 GovUkErrorMessageComponent_span_0_Template(rf, ctx) { if (rf & 1) {
|
|
6
|
-
i0.ɵɵelementStart(0, "span", 1)(1, "span", 2);
|
|
7
|
-
i0.ɵɵtext(2);
|
|
8
|
-
i0.ɵɵpipe(3, "rpxTranslate");
|
|
9
|
-
i0.ɵɵelementEnd();
|
|
10
|
-
i0.ɵɵtext(4);
|
|
11
|
-
i0.ɵɵpipe(5, "rpxTranslate");
|
|
12
|
-
i0.ɵɵelementEnd();
|
|
13
|
-
} if (rf & 2) {
|
|
14
|
-
const message_r1 = ctx.$implicit;
|
|
15
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
16
|
-
i0.ɵɵproperty("id", ctx_r0.config.id + "-error");
|
|
17
|
-
i0.ɵɵadvance(2);
|
|
18
|
-
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 3, "Error"), ":");
|
|
19
|
-
i0.ɵɵadvance(2);
|
|
20
|
-
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 5, message_r1), "\n");
|
|
21
|
-
} }
|
|
22
|
-
/*
|
|
23
|
-
* Gov UK Error Message
|
|
24
|
-
* Responsible for displaying in-line error messages
|
|
25
|
-
* @prop config - obj with properties
|
|
26
|
-
* @prop errorMessage - all error bject with messages property that is arry of strings.
|
|
27
|
-
* */
|
|
28
|
-
export class GovUkErrorMessageComponent {
|
|
29
|
-
constructor() { }
|
|
30
|
-
}
|
|
31
|
-
GovUkErrorMessageComponent.ɵfac = function GovUkErrorMessageComponent_Factory(t) { return new (t || GovUkErrorMessageComponent)(); };
|
|
32
|
-
GovUkErrorMessageComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GovUkErrorMessageComponent, selectors: [["xuilib-gov-uk-error-message"]], inputs: { config: "config", errorMessage: "errorMessage" }, decls: 1, vars: 1, consts: [["class", "govuk-error-message", 3, "id", 4, "ngFor", "ngForOf"], [1, "govuk-error-message", 3, "id"], [1, "govuk-visually-hidden"]], template: function GovUkErrorMessageComponent_Template(rf, ctx) { if (rf & 1) {
|
|
33
|
-
i0.ɵɵtemplate(0, GovUkErrorMessageComponent_span_0_Template, 6, 7, "span", 0);
|
|
34
|
-
} if (rf & 2) {
|
|
35
|
-
i0.ɵɵproperty("ngForOf", ctx.errorMessage == null ? null : ctx.errorMessage.messages);
|
|
36
|
-
} }, dependencies: [i1.NgForOf, i2.RpxTranslatePipe], encapsulation: 2 });
|
|
37
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GovUkErrorMessageComponent, [{
|
|
38
|
-
type: Component,
|
|
39
|
-
args: [{ selector: ' xuilib-gov-uk-error-message', template: "<span class=\"govuk-error-message\" [id]=\"config.id + '-error'\" *ngFor=\"let message of errorMessage?.messages\">\n <span class=\"govuk-visually-hidden\">{{'Error' | rpxTranslate}}:</span>{{message | rpxTranslate}}\n</span>\n" }]
|
|
40
|
-
}], function () { return []; }, { config: [{
|
|
41
|
-
type: Input
|
|
42
|
-
}], errorMessage: [{
|
|
43
|
-
type: Input
|
|
44
|
-
}] }); })();
|
|
45
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ292LXVrLWVycm9yLW1lc3NhZ2UuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZXh1aS1jb21tb24tbGliL3NyYy9saWIvZ292LXVpL2NvbXBvbmVudHMvZ292LXVrLWVycm9yLW1lc3NhZ2UvZ292LXVrLWVycm9yLW1lc3NhZ2UuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZXh1aS1jb21tb24tbGliL3NyYy9saWIvZ292LXVpL2NvbXBvbmVudHMvZ292LXVrLWVycm9yLW1lc3NhZ2UvZ292LXVrLWVycm9yLW1lc3NhZ2UuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0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GVjdG9yOiAnIHh1aWxpYi1nb3YtdWstZXJyb3ItbWVzc2FnZScsXG4gIHRlbXBsYXRlVXJsOiAnLi9nb3YtdWstZXJyb3ItbWVzc2FnZS5jb21wb25lbnQuaHRtbCdcbn0pXG5leHBvcnQgY2xhc3MgR292VWtFcnJvck1lc3NhZ2VDb21wb25lbnQge1xuICBjb25zdHJ1Y3RvcigpIHsgfVxuICBASW5wdXQoKSBwdWJsaWMgY29uZmlnOiBHb3ZVaUNvbmZpZ01vZGVsO1xuICAvLyB7IGlkOiBzdHJpbmcgfTtcbiAgQElucHV0KCkgcHVibGljIGVycm9yTWVzc2FnZTogRXJyb3JNZXNzYWdlc01vZGVsO1xufVxuIiwiPHNwYW4gY2xhc3M9XCJnb3Z1ay1lcnJvci1tZXNzYWdlXCIgW2lkXT1cImNvbmZpZy5pZCArICctZXJyb3InXCIgKm5nRm9yPVwibGV0IG1lc3NhZ2Ugb2YgZXJyb3JNZXNzYWdlPy5tZXNzYWdlc1wiPlxuICA8c3BhbiBjbGFzcz1cImdvdnVrLXZpc3VhbGx5LWhpZGRlblwiPnt7J0Vycm9yJyB8IHJweFRyYW5zbGF0ZX19Ojwvc3Bhbj57e21lc3NhZ2UgfCBycHhUcmFuc2xhdGV9fVxuPC9zcGFuPlxuIl19
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import { HtmlTemplatesHelper } from '../../util/helpers/html-templates.helper';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@angular/common";
|
|
5
|
-
import * as i2 from "rpx-xui-translation";
|
|
6
|
-
function GovUkFieldsetComponent_legend_1_Template(rf, ctx) { if (rf & 1) {
|
|
7
|
-
i0.ɵɵelementStart(0, "legend");
|
|
8
|
-
i0.ɵɵtext(1);
|
|
9
|
-
i0.ɵɵpipe(2, "rpxTranslate");
|
|
10
|
-
i0.ɵɵelementEnd();
|
|
11
|
-
} if (rf & 2) {
|
|
12
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
13
|
-
i0.ɵɵclassMap(ctx_r0.config.classes + " govuk-fieldset__legend");
|
|
14
|
-
i0.ɵɵadvance(1);
|
|
15
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 3, ctx_r0.config.legend), " ");
|
|
16
|
-
} }
|
|
17
|
-
function GovUkFieldsetComponent_legend_2_Template(rf, ctx) { if (rf & 1) {
|
|
18
|
-
i0.ɵɵelementStart(0, "legend")(1, "h1");
|
|
19
|
-
i0.ɵɵtext(2);
|
|
20
|
-
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21
|
-
i0.ɵɵelementEnd()();
|
|
22
|
-
} if (rf & 2) {
|
|
23
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
24
|
-
i0.ɵɵclassMap(ctx_r1.config.classes + " govuk-fieldset__legend");
|
|
25
|
-
i0.ɵɵadvance(2);
|
|
26
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 3, ctx_r1.config.legend));
|
|
27
|
-
} }
|
|
28
|
-
function GovUkFieldsetComponent_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
29
|
-
i0.ɵɵelementStart(0, "span", 3);
|
|
30
|
-
i0.ɵɵtext(1);
|
|
31
|
-
i0.ɵɵpipe(2, "rpxTranslate");
|
|
32
|
-
i0.ɵɵelementEnd();
|
|
33
|
-
} if (rf & 2) {
|
|
34
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
35
|
-
i0.ɵɵproperty("id", ctx_r2.config.id + "-hint");
|
|
36
|
-
i0.ɵɵadvance(1);
|
|
37
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, ctx_r2.config.hint), " ");
|
|
38
|
-
} }
|
|
39
|
-
const _c0 = ["*"];
|
|
40
|
-
/*
|
|
41
|
-
* Gov Uk Fieldset Component
|
|
42
|
-
* Used to wrap group fieldset elements
|
|
43
|
-
* it can conditionally display h1 tag
|
|
44
|
-
* @param config
|
|
45
|
-
* @param isHeading
|
|
46
|
-
* @param errorMessage - used for aria tag
|
|
47
|
-
* */
|
|
48
|
-
export class GovUkFieldsetComponent {
|
|
49
|
-
constructor() { }
|
|
50
|
-
setDescribedBy() {
|
|
51
|
-
return HtmlTemplatesHelper.setDescribedBy(this.errorMessage, this.config);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
GovUkFieldsetComponent.ɵfac = function GovUkFieldsetComponent_Factory(t) { return new (t || GovUkFieldsetComponent)(); };
|
|
55
|
-
GovUkFieldsetComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GovUkFieldsetComponent, selectors: [["xuilib-gov-uk-fieldset"]], inputs: { config: "config", errorMessage: "errorMessage" }, ngContentSelectors: _c0, decls: 5, vars: 4, consts: [[1, "govuk-fieldset"], [3, "class", 4, "ngIf"], ["class", "govuk-hint", 3, "id", 4, "ngIf"], [1, "govuk-hint", 3, "id"]], template: function GovUkFieldsetComponent_Template(rf, ctx) { if (rf & 1) {
|
|
56
|
-
i0.ɵɵprojectionDef();
|
|
57
|
-
i0.ɵɵelementStart(0, "fieldset", 0);
|
|
58
|
-
i0.ɵɵtemplate(1, GovUkFieldsetComponent_legend_1_Template, 3, 5, "legend", 1);
|
|
59
|
-
i0.ɵɵtemplate(2, GovUkFieldsetComponent_legend_2_Template, 4, 5, "legend", 1);
|
|
60
|
-
i0.ɵɵtemplate(3, GovUkFieldsetComponent_span_3_Template, 3, 4, "span", 2);
|
|
61
|
-
i0.ɵɵprojection(4);
|
|
62
|
-
i0.ɵɵelementEnd();
|
|
63
|
-
} if (rf & 2) {
|
|
64
|
-
i0.ɵɵattribute("aria-describedby", ctx.setDescribedBy());
|
|
65
|
-
i0.ɵɵadvance(1);
|
|
66
|
-
i0.ɵɵproperty("ngIf", !ctx.config.isPageHeading);
|
|
67
|
-
i0.ɵɵadvance(1);
|
|
68
|
-
i0.ɵɵproperty("ngIf", ctx.config.isPageHeading);
|
|
69
|
-
i0.ɵɵadvance(1);
|
|
70
|
-
i0.ɵɵproperty("ngIf", ctx.config.hint);
|
|
71
|
-
} }, dependencies: [i1.NgIf, i2.RpxTranslatePipe], encapsulation: 2 });
|
|
72
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GovUkFieldsetComponent, [{
|
|
73
|
-
type: Component,
|
|
74
|
-
args: [{ selector: 'xuilib-gov-uk-fieldset', template: "<fieldset class=\"govuk-fieldset\" [attr.aria-describedby]=\"setDescribedBy()\">\n <legend [class]=\"config.classes + ' govuk-fieldset__legend'\" *ngIf=\"!config.isPageHeading\">\n {{config.legend | rpxTranslate}}\n </legend>\n\n <legend [class]=\"config.classes + ' govuk-fieldset__legend'\" *ngIf=\"config.isPageHeading\">\n <h1>{{config.legend | rpxTranslate}}</h1>\n </legend>\n\n <span [id]=\"config.id+'-hint'\" class=\"govuk-hint\" *ngIf=\"config.hint\">\n {{config.hint | rpxTranslate}}\n </span>\n <ng-content></ng-content>\n</fieldset>\n" }]
|
|
75
|
-
}], function () { return []; }, { config: [{
|
|
76
|
-
type: Input
|
|
77
|
-
}], errorMessage: [{
|
|
78
|
-
type: Input
|
|
79
|
-
}] }); })();
|
|
80
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ292LXVrLWZpZWxkc2V0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2V4dWktY29tbW9uLWxpYi9zcmMvbGliL2dvdi11aS9jb21wb25lbnRzL2dvdi11ay1maWVsZHNldC9nb3YtdWstZmllbGRzZXQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZXh1aS1jb21tb24tbGliL3NyYy9saWIvZ292LXVpL2NvbXBvbmVudHMvZ292LXVrLWZpZWxkc2V0L2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@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import { HtmlTemplatesHelper } from '../../util/helpers/html-templates.helper';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@angular/common";
|
|
6
|
-
import * as i2 from "@angular/forms";
|
|
7
|
-
import * as i3 from "../gov-uk-label/gov-uk-label.component";
|
|
8
|
-
import * as i4 from "../gov-uk-error-message/gov-uk-error-message.component";
|
|
9
|
-
import * as i5 from "rpx-xui-translation";
|
|
10
|
-
function GovUkFileUploadComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
11
|
-
i0.ɵɵelementStart(0, "span", 5);
|
|
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("id", ctx_r0.config.id + "-hint");
|
|
18
|
-
i0.ɵɵadvance(1);
|
|
19
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, ctx_r0.config.hint), " ");
|
|
20
|
-
} }
|
|
21
|
-
const _c0 = function (a0) { return { "govuk-file-upload--error": a0 }; };
|
|
22
|
-
function GovUkFileUploadComponent_input_4_Template(rf, ctx) { if (rf & 1) {
|
|
23
|
-
i0.ɵɵelement(0, "input", 6);
|
|
24
|
-
} if (rf & 2) {
|
|
25
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
26
|
-
i0.ɵɵproperty("formControlName", ctx_r1.config.id)("ngClass", i0.ɵɵpureFunction1(5, _c0, ctx_r1.errorMessage == null ? null : ctx_r1.errorMessage.isInvalid))("id", ctx_r1.config.id)("name", ctx_r1.config.name);
|
|
27
|
-
i0.ɵɵattribute("aria-describedby", ctx_r1.setDescribedBy());
|
|
28
|
-
} }
|
|
29
|
-
const _c1 = function (a0) { return { "govuk-form-group--error": a0 }; };
|
|
30
|
-
/*
|
|
31
|
-
* Gov UK Input component
|
|
32
|
-
* Responsible for displaying input, hint and error messages
|
|
33
|
-
* @prop errorMessages - array of messages
|
|
34
|
-
* @prop focusOn - passing the FormGroup
|
|
35
|
-
* @prop config - adding configuration
|
|
36
|
-
* */
|
|
37
|
-
export class GovUkFileUploadComponent {
|
|
38
|
-
constructor() {
|
|
39
|
-
// { label: string, hint: string; name: string; id: string, type: string; isPageHeading: boolean, classes: string };
|
|
40
|
-
this.reloadInput = true;
|
|
41
|
-
}
|
|
42
|
-
ngOnInit() {
|
|
43
|
-
this.config.classes = 'govuk-label--m';
|
|
44
|
-
}
|
|
45
|
-
setDescribedBy() {
|
|
46
|
-
return HtmlTemplatesHelper.setDescribedBy(this.errorMessage, this.config);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
GovUkFileUploadComponent.ɵfac = function GovUkFileUploadComponent_Factory(t) { return new (t || GovUkFileUploadComponent)(); };
|
|
50
|
-
GovUkFileUploadComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GovUkFileUploadComponent, selectors: [["xuilib-gov-uk-file-upload"]], inputs: { errorMessage: "errorMessage", group: "group", config: "config" }, decls: 5, vars: 9, consts: [[1, "govuk-form-group", 3, "formGroup", "ngClass"], [3, "config"], ["class", "govuk-hint", 3, "id", 4, "ngIf"], [3, "config", "errorMessage"], ["class", "govuk-file-upload", "type", "file", 3, "formControlName", "ngClass", "id", "name", 4, "ngIf"], [1, "govuk-hint", 3, "id"], ["type", "file", 1, "govuk-file-upload", 3, "formControlName", "ngClass", "id", "name"]], template: function GovUkFileUploadComponent_Template(rf, ctx) { if (rf & 1) {
|
|
51
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
52
|
-
i0.ɵɵelement(1, "xuilib-gov-label", 1);
|
|
53
|
-
i0.ɵɵtemplate(2, GovUkFileUploadComponent_span_2_Template, 3, 4, "span", 2);
|
|
54
|
-
i0.ɵɵelement(3, "xuilib-gov-uk-error-message", 3);
|
|
55
|
-
i0.ɵɵtemplate(4, GovUkFileUploadComponent_input_4_Template, 1, 7, "input", 4);
|
|
56
|
-
i0.ɵɵelementEnd();
|
|
57
|
-
} if (rf & 2) {
|
|
58
|
-
i0.ɵɵproperty("formGroup", ctx.group)("ngClass", i0.ɵɵpureFunction1(7, _c1, ctx.errorMessage == null ? null : ctx.errorMessage.isInvalid));
|
|
59
|
-
i0.ɵɵadvance(1);
|
|
60
|
-
i0.ɵɵproperty("config", ctx.config);
|
|
61
|
-
i0.ɵɵadvance(1);
|
|
62
|
-
i0.ɵɵproperty("ngIf", ctx.config.hint);
|
|
63
|
-
i0.ɵɵadvance(1);
|
|
64
|
-
i0.ɵɵproperty("config", ctx.config)("errorMessage", ctx.errorMessage);
|
|
65
|
-
i0.ɵɵadvance(1);
|
|
66
|
-
i0.ɵɵproperty("ngIf", ctx.reloadInput);
|
|
67
|
-
} }, dependencies: [i1.NgClass, i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.NgControlStatusGroup, i2.FormGroupDirective, i2.FormControlName, i3.GovUkLabelComponent, i4.GovUkErrorMessageComponent, i5.RpxTranslatePipe], encapsulation: 2 });
|
|
68
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GovUkFileUploadComponent, [{
|
|
69
|
-
type: Component,
|
|
70
|
-
args: [{ selector: 'xuilib-gov-uk-file-upload', template: "<div class=\"govuk-form-group\" [formGroup]=\"group\"\n [ngClass]=\"{'govuk-form-group--error': errorMessage?.isInvalid}\">\n\n <xuilib-gov-label [config]=\"config\"></xuilib-gov-label>\n\n <span *ngIf=\"config.hint\" [id]=\"config.id +'-hint'\" class=\"govuk-hint\">\n {{config.hint | rpxTranslate}}\n </span>\n\n <xuilib-gov-uk-error-message [config]=\"config\" [errorMessage]=\"errorMessage\"></xuilib-gov-uk-error-message>\n\n <input class=\"govuk-file-upload\"\n *ngIf=\"reloadInput\"\n [formControlName]=\"config.id\"\n [ngClass]=\"{'govuk-file-upload--error': errorMessage?.isInvalid}\"\n [id]=\"config.id\" [name]=\"config.name\"\n [attr.aria-describedby]=\"setDescribedBy()\"\n type=\"file\">\n</div>\n" }]
|
|
71
|
-
}], function () { return []; }, { errorMessage: [{
|
|
72
|
-
type: Input
|
|
73
|
-
}], group: [{
|
|
74
|
-
type: Input
|
|
75
|
-
}], config: [{
|
|
76
|
-
type: Input
|
|
77
|
-
}] }); })();
|
|
78
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ292LXVrLWZpbGUtdXBsb2FkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2V4dWktY29tbW9uLWxpYi9zcmMvbGliL2dvdi11aS9jb21wb25lbnRzL2dvdi11ay1maWxlLXVwbG9hZC9nb3YtdWstZmlsZS11cGxvYWQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZXh1aS1jb21tb24tbGliL3NyYy9saWIvZ292LXVpL2NvbXBvbmVudHMvZ292LXVrLWZpbGUtdXBsb2FkL2dvdi11ay1maWxlLXVwbG9hZC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLEtBQUssRUFBUyxNQUFNLGVBQWUsQ0FBQztBQUN2RCxPQUFPLEVBQUMsU0FBUyxFQUFDLE1BQU0sZ0JBQWdCLENBQUM7QUFHekMsT0FBTyxFQUFDLG1CQUFtQixFQUFDLE1BQU0sMENBQTBDLENBQUM7Ozs7Ozs7O0lDQ3ZFLCtCQUF1RTtJQUNuRSxZQUNKOztJQUFBLGlCQUFPOzs7SUFGbUIsK0NBQXlCO0lBQy9DL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ICAgICAgICpuZ0lmPVwicmVsb2FkSW5wdXRcIlxuICAgICAgICAgICAgIFtmb3JtQ29udHJvbE5hbWVdPVwiY29uZmlnLmlkXCJcbiAgICAgICAgICAgICBbbmdDbGFzc109XCJ7J2dvdnVrLWZpbGUtdXBsb2FkLS1lcnJvcic6IGVycm9yTWVzc2FnZT8uaXNJbnZhbGlkfVwiXG4gICAgICAgICAgICAgW2lkXT1cImNvbmZpZy5pZFwiIFtuYW1lXT1cImNvbmZpZy5uYW1lXCJcbiAgICAgICAgICAgICBbYXR0ci5hcmlhLWRlc2NyaWJlZGJ5XT1cInNldERlc2NyaWJlZEJ5KClcIlxuICAgICAgICAgICAgIHR5cGU9XCJmaWxlXCI+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -1,45 +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/forms";
|
|
5
|
-
import * as i3 from "../gov-uk-error-message/gov-uk-error-message.component";
|
|
6
|
-
import * as i4 from "../gov-uk-fieldset/gov-uk-fieldset.component";
|
|
7
|
-
const _c0 = function (a0) { return { "govuk-form-group--error": a0 }; };
|
|
8
|
-
const _c1 = function (a0, a2, a3, a4) { return { legend: a0, classes: "govuk-label--m", id: a2, hint: a3, isPageHeading: a4 }; };
|
|
9
|
-
const _c2 = function (a0) { return { id: a0 }; };
|
|
10
|
-
const _c3 = ["*"];
|
|
11
|
-
/*
|
|
12
|
-
* Gov Uk Form Group Wrapper
|
|
13
|
-
* Used to wrap group form elements in html tags below such as
|
|
14
|
-
* gov-uk-checkboxes and radio buttons
|
|
15
|
-
* and errorMessage messages
|
|
16
|
-
* */
|
|
17
|
-
export class GovUkFormGroupWrapperComponent {
|
|
18
|
-
constructor() { }
|
|
19
|
-
}
|
|
20
|
-
GovUkFormGroupWrapperComponent.ɵfac = function GovUkFormGroupWrapperComponent_Factory(t) { return new (t || GovUkFormGroupWrapperComponent)(); };
|
|
21
|
-
GovUkFormGroupWrapperComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GovUkFormGroupWrapperComponent, selectors: [["xuilib-gov-uk-form-group-wrapper"]], inputs: { error: "error", group: "group", config: "config" }, ngContentSelectors: _c3, decls: 4, vars: 15, consts: [[1, "govuk-form-group", 3, "ngClass"], [3, "config", "errorMessage"]], template: function GovUkFormGroupWrapperComponent_Template(rf, ctx) { if (rf & 1) {
|
|
22
|
-
i0.ɵɵprojectionDef();
|
|
23
|
-
i0.ɵɵelementStart(0, "div", 0)(1, "xuilib-gov-uk-fieldset", 1);
|
|
24
|
-
i0.ɵɵelement(2, "xuilib-gov-uk-error-message", 1);
|
|
25
|
-
i0.ɵɵprojection(3);
|
|
26
|
-
i0.ɵɵelementEnd()();
|
|
27
|
-
} if (rf & 2) {
|
|
28
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0, ctx.error == null ? null : ctx.error.isInvalid));
|
|
29
|
-
i0.ɵɵattribute("formGroupName", ctx.group);
|
|
30
|
-
i0.ɵɵadvance(1);
|
|
31
|
-
i0.ɵɵproperty("config", i0.ɵɵpureFunction4(8, _c1, ctx.config.legend, ctx.config.key, ctx.config.hint, ctx.config.isPageHeading))("errorMessage", ctx.error);
|
|
32
|
-
i0.ɵɵadvance(1);
|
|
33
|
-
i0.ɵɵproperty("config", i0.ɵɵpureFunction1(13, _c2, ctx.group))("errorMessage", ctx.error);
|
|
34
|
-
} }, dependencies: [i1.NgClass, i2.NgControlStatusGroup, i2.FormGroupName, i3.GovUkErrorMessageComponent, i4.GovUkFieldsetComponent], encapsulation: 2 });
|
|
35
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GovUkFormGroupWrapperComponent, [{
|
|
36
|
-
type: Component,
|
|
37
|
-
args: [{ selector: 'xuilib-gov-uk-form-group-wrapper', template: "<div class=\"govuk-form-group\" [attr.formGroupName]=\"group\" [ngClass]=\"{'govuk-form-group--error': (error?.isInvalid)}\">\n <xuilib-gov-uk-fieldset\n [config]=\"{legend: config.legend, classes: 'govuk-label--m', id: config.key, hint: config.hint, isPageHeading: config.isPageHeading}\"\n [errorMessage]=\"error\">\n\n <xuilib-gov-uk-error-message [config]=\"{id: group}\" [errorMessage]=\"error\"></xuilib-gov-uk-error-message>\n\n <ng-content></ng-content>\n\n </xuilib-gov-uk-fieldset>\n</div>" }]
|
|
38
|
-
}], function () { return []; }, { error: [{
|
|
39
|
-
type: Input
|
|
40
|
-
}], group: [{
|
|
41
|
-
type: Input
|
|
42
|
-
}], config: [{
|
|
43
|
-
type: Input
|
|
44
|
-
}] }); })();
|
|
45
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ292LXVrLWZvcm0tZ3JvdXAtd3JhcHBlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9leHVpLWNvbW1vbi1saWIvc3JjL2xpYi9nb3YtdWkvY29tcG9uZW50cy9nb3YtdWstZm9ybS1ncm91cC13cmFwcGVyL2dvdi11ay1mb3JtLWdyb3VwLXdyYXBwZXIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZXh1aS1jb21tb24tbGliL3NyYy9saWIvZ292LXVpL2NvbXBvbmVudHMvZ292LXVrLWZvcm0tZ3JvdXAtd3JhcHBlci9nb3YtdWstZm9ybS1ncm91cC13cmFwcGVyLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsS0FBSyxFQUFDLE1BQU0sZUFBZSxDQUFDOzs7Ozs7Ozs7O0FBRy9DOzs7OztJQUtJO0FBS0osTUFBTSxPQUFPLDhCQUE4QjtJQUN6Qy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il19
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import { HtmlTemplatesHelper } from '../../util/helpers/html-templates.helper';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@angular/common";
|
|
6
|
-
import * as i2 from "@angular/forms";
|
|
7
|
-
import * as i3 from "../gov-uk-label/gov-uk-label.component";
|
|
8
|
-
import * as i4 from "../gov-uk-error-message/gov-uk-error-message.component";
|
|
9
|
-
import * as i5 from "rpx-xui-translation";
|
|
10
|
-
function GovUkInputComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
11
|
-
i0.ɵɵelementStart(0, "span", 5);
|
|
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("id", ctx_r0.config.id + "-hint");
|
|
18
|
-
i0.ɵɵadvance(1);
|
|
19
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, ctx_r0.config.hint), "\n");
|
|
20
|
-
} }
|
|
21
|
-
const _c0 = function (a0) { return { "govuk-form-group--error": a0 }; };
|
|
22
|
-
const _c1 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
23
|
-
/*
|
|
24
|
-
* Gov UK Input component
|
|
25
|
-
* Responsible for displaying input, hint and error messages
|
|
26
|
-
* @prop errorMessages - array of messages
|
|
27
|
-
* @prop focusOn - passing the FormGroup
|
|
28
|
-
* @prop config - adding configuration
|
|
29
|
-
* */
|
|
30
|
-
export class GovUkInputComponent {
|
|
31
|
-
constructor() { }
|
|
32
|
-
// { label: string, hint: string; name: string; id: string, type: string; isPageHeading: boolean, classes: string };
|
|
33
|
-
ngOnInit() {
|
|
34
|
-
this.config.classes = typeof (this.config.classes) === 'string' ? this.config.classes : 'govuk-label govuk-label--m';
|
|
35
|
-
}
|
|
36
|
-
setDescribedBy() {
|
|
37
|
-
return HtmlTemplatesHelper.setDescribedBy(this.errorMessage, this.config);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
GovUkInputComponent.ɵfac = function GovUkInputComponent_Factory(t) { return new (t || GovUkInputComponent)(); };
|
|
41
|
-
GovUkInputComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GovUkInputComponent, selectors: [["xuilib-gov-uk-input"]], inputs: { errorMessage: "errorMessage", group: "group", config: "config" }, decls: 5, vars: 19, consts: [[1, "govuk-form-group", "gov-uk-input", 3, "formGroup", "ngClass"], [3, "config"], ["class", "govuk-hint", 3, "id", 4, "ngIf"], [3, "config", "errorMessage"], [1, "govuk-input", 3, "ngClass", "id", "name", "type", "formControlName"], [1, "govuk-hint", 3, "id"]], template: function GovUkInputComponent_Template(rf, ctx) { if (rf & 1) {
|
|
42
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
43
|
-
i0.ɵɵelement(1, "xuilib-gov-label", 1);
|
|
44
|
-
i0.ɵɵtemplate(2, GovUkInputComponent_span_2_Template, 3, 4, "span", 2);
|
|
45
|
-
i0.ɵɵelement(3, "xuilib-gov-uk-error-message", 3)(4, "input", 4);
|
|
46
|
-
i0.ɵɵelementEnd();
|
|
47
|
-
} if (rf & 2) {
|
|
48
|
-
i0.ɵɵproperty("formGroup", ctx.group)("ngClass", i0.ɵɵpureFunction1(15, _c0, ctx.errorMessage == null ? null : ctx.errorMessage.isInvalid));
|
|
49
|
-
i0.ɵɵadvance(1);
|
|
50
|
-
i0.ɵɵproperty("config", ctx.config);
|
|
51
|
-
i0.ɵɵadvance(1);
|
|
52
|
-
i0.ɵɵproperty("ngIf", ctx.config.hint);
|
|
53
|
-
i0.ɵɵadvance(1);
|
|
54
|
-
i0.ɵɵproperty("config", ctx.config)("errorMessage", ctx.errorMessage);
|
|
55
|
-
i0.ɵɵadvance(1);
|
|
56
|
-
i0.ɵɵclassProp("govuk-!-width-full", ctx.config.fullWidth);
|
|
57
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(17, _c1, ctx.errorMessage == null ? null : ctx.errorMessage.isInvalid))("id", ctx.config.id)("name", ctx.config.name)("type", ctx.config.type)("formControlName", ctx.config.name);
|
|
58
|
-
i0.ɵɵattribute("aria-invalid", ctx.errorMessage == null ? null : ctx.errorMessage.isInvalid)("aria-describedby", ctx.setDescribedBy());
|
|
59
|
-
} }, dependencies: [i1.NgClass, i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.NgControlStatusGroup, i2.FormGroupDirective, i2.FormControlName, i3.GovUkLabelComponent, i4.GovUkErrorMessageComponent, i5.RpxTranslatePipe], styles: [".gov-uk-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:disabled{background:#b1b4b6}"] });
|
|
60
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GovUkInputComponent, [{
|
|
61
|
-
type: Component,
|
|
62
|
-
args: [{ selector: 'xuilib-gov-uk-input', template: "<div class=\"govuk-form-group gov-uk-input\" [formGroup]=\"group\"\n[ngClass]=\"{'govuk-form-group--error': errorMessage?.isInvalid}\">\n\n<xuilib-gov-label [config]=\"config\"></xuilib-gov-label>\n\n<span *ngIf=\"config.hint\" [id]=\"config.id +'-hint'\" class=\"govuk-hint\">\n {{config.hint | rpxTranslate}}\n</span>\n\n<xuilib-gov-uk-error-message [config]=\"config\" [errorMessage]=\"errorMessage\"></xuilib-gov-uk-error-message>\n\n<input class=\"govuk-input\"\n [class.govuk-!-width-full]=\"config.fullWidth\"\n [ngClass]=\"{'govuk-input--error': errorMessage?.isInvalid}\"\n [id]=\"config.id\"\n [name]=\"config.name\"\n [type]=\"config.type\"\n [attr.aria-invalid]=\"errorMessage?.isInvalid\"\n [formControlName]=\"config.name\"\n [attr.aria-describedby]='setDescribedBy()'>\n</div>\n", styles: [".gov-uk-input input:disabled{background:#b1b4b6}\n"] }]
|
|
63
|
-
}], function () { return []; }, { errorMessage: [{
|
|
64
|
-
type: Input
|
|
65
|
-
}], group: [{
|
|
66
|
-
type: Input
|
|
67
|
-
}], config: [{
|
|
68
|
-
type: Input
|
|
69
|
-
}] }); })();
|
|
70
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ292LXVrLWlucHV0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2V4dWktY29tbW9uLWxpYi9zcmMvbGliL2dvdi11aS9jb21wb25lbnRzL2dvdi11ay1pbnB1dC9nb3YtdWstaW5wdXQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZXh1aS1jb21tb24tbGliL3NyYy9saWIvZ292LXVpL2NvbXBvbmVudHMvZ292LXVrLWlucHV0L2dvdi11ay1pbnB1dC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUN6RCxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFM0MsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sMENBQTBDLENBQUM7Ozs7Ozs7O0lDRS9FLCtCQUF1RTtJQUNyRSxZQUNGOztJQUFBLGlCQUFPOzs7SUFGbUIsK0NBQXlCO0lBQ2pELGVBQ0Y7SUFERSwwRUFDRjs7OztBREhBOzs7Ozs7SUFNSTtBQU1KLE1BQU0sT0FBTyxtQkFBbUI7SUFDOUIsZ0JBQWdCLENBQUM7SUFJakIsb0hBQW9IO0lBRTdHLFFBQVE7UUFDYixJQUFJLENBQUMsTUF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XaWR0aFwiXG4gICAgICAgW25nQ2xhc3NdPVwieydnb3Z1ay1pbnB1dC0tZXJyb3InOiBlcnJvck1lc3NhZ2U/LmlzSW52YWxpZH1cIlxuICAgICAgIFtpZF09XCJjb25maWcuaWRcIlxuICAgICAgIFtuYW1lXT1cImNvbmZpZy5uYW1lXCJcbiAgICAgICBbdHlwZV09XCJjb25maWcudHlwZVwiXG4gICAgICAgW2F0dHIuYXJpYS1pbnZhbGlkXT1cImVycm9yTWVzc2FnZT8uaXNJbnZhbGlkXCJcbiAgICAgICBbZm9ybUNvbnRyb2xOYW1lXT1cImNvbmZpZy5uYW1lXCJcbiAgICAgICBbYXR0ci5hcmlhLWRlc2NyaWJlZGJ5XT0nc2V0RGVzY3JpYmVkQnkoKSc+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -1,84 +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 GovUkLabelComponent_h1_0_label_1_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
6
|
-
i0.ɵɵelementStart(0, "span", 5);
|
|
7
|
-
i0.ɵɵtext(1, "(optional)");
|
|
8
|
-
i0.ɵɵelementEnd();
|
|
9
|
-
} }
|
|
10
|
-
function GovUkLabelComponent_h1_0_label_1_Template(rf, ctx) { if (rf & 1) {
|
|
11
|
-
i0.ɵɵelementStart(0, "label", 3)(1, "span");
|
|
12
|
-
i0.ɵɵtext(2);
|
|
13
|
-
i0.ɵɵpipe(3, "rpxTranslate");
|
|
14
|
-
i0.ɵɵelementEnd();
|
|
15
|
-
i0.ɵɵtemplate(4, GovUkLabelComponent_h1_0_label_1_span_4_Template, 2, 0, "span", 4);
|
|
16
|
-
i0.ɵɵelementEnd();
|
|
17
|
-
} if (rf & 2) {
|
|
18
|
-
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
19
|
-
i0.ɵɵclassMap(ctx_r3.config.classes + " govuk-label");
|
|
20
|
-
i0.ɵɵproperty("for", ctx_r3.config.id);
|
|
21
|
-
i0.ɵɵadvance(2);
|
|
22
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 5, ctx_r3.config.label));
|
|
23
|
-
i0.ɵɵadvance(2);
|
|
24
|
-
i0.ɵɵproperty("ngIf", ctx_r3.config.optional);
|
|
25
|
-
} }
|
|
26
|
-
function GovUkLabelComponent_h1_0_Template(rf, ctx) { if (rf & 1) {
|
|
27
|
-
i0.ɵɵelementStart(0, "h1");
|
|
28
|
-
i0.ɵɵtemplate(1, GovUkLabelComponent_h1_0_label_1_Template, 5, 7, "label", 2);
|
|
29
|
-
i0.ɵɵelementEnd();
|
|
30
|
-
} if (rf & 2) {
|
|
31
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
32
|
-
i0.ɵɵadvance(1);
|
|
33
|
-
i0.ɵɵproperty("ngIf", ctx_r0.config.label);
|
|
34
|
-
} }
|
|
35
|
-
function GovUkLabelComponent_ng_template_1_label_0_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
36
|
-
i0.ɵɵelementStart(0, "span", 5);
|
|
37
|
-
i0.ɵɵtext(1, "(optional)");
|
|
38
|
-
i0.ɵɵelementEnd();
|
|
39
|
-
} }
|
|
40
|
-
function GovUkLabelComponent_ng_template_1_label_0_Template(rf, ctx) { if (rf & 1) {
|
|
41
|
-
i0.ɵɵelementStart(0, "label", 3)(1, "span");
|
|
42
|
-
i0.ɵɵtext(2);
|
|
43
|
-
i0.ɵɵelementEnd();
|
|
44
|
-
i0.ɵɵtemplate(3, GovUkLabelComponent_ng_template_1_label_0_span_3_Template, 2, 0, "span", 4);
|
|
45
|
-
i0.ɵɵelementEnd();
|
|
46
|
-
} if (rf & 2) {
|
|
47
|
-
const ctx_r5 = i0.ɵɵnextContext(2);
|
|
48
|
-
i0.ɵɵclassMap(ctx_r5.config.classes + " govuk-label");
|
|
49
|
-
i0.ɵɵproperty("for", ctx_r5.config.id);
|
|
50
|
-
i0.ɵɵadvance(2);
|
|
51
|
-
i0.ɵɵtextInterpolate(ctx_r5.config.label);
|
|
52
|
-
i0.ɵɵadvance(1);
|
|
53
|
-
i0.ɵɵproperty("ngIf", ctx_r5.config.optional);
|
|
54
|
-
} }
|
|
55
|
-
function GovUkLabelComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
56
|
-
i0.ɵɵtemplate(0, GovUkLabelComponent_ng_template_1_label_0_Template, 4, 5, "label", 2);
|
|
57
|
-
} if (rf & 2) {
|
|
58
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
59
|
-
i0.ɵɵproperty("ngIf", ctx_r2.config.label);
|
|
60
|
-
} }
|
|
61
|
-
/*
|
|
62
|
-
* Gov UK Label component
|
|
63
|
-
* Responsible for displaying label tag
|
|
64
|
-
* @prop isPageHading - boolean to display h1
|
|
65
|
-
* @prop config - obj with properties
|
|
66
|
-
* */
|
|
67
|
-
export class GovUkLabelComponent {
|
|
68
|
-
constructor() { }
|
|
69
|
-
}
|
|
70
|
-
GovUkLabelComponent.ɵfac = function GovUkLabelComponent_Factory(t) { return new (t || GovUkLabelComponent)(); };
|
|
71
|
-
GovUkLabelComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GovUkLabelComponent, selectors: [["xuilib-gov-label"]], inputs: { config: "config" }, decls: 3, vars: 2, consts: [[4, "ngIf", "ngIfElse"], ["noHeading", ""], [3, "for", "class", 4, "ngIf"], [3, "for"], ["class", "govuk-label__optional", 4, "ngIf"], [1, "govuk-label__optional"]], template: function GovUkLabelComponent_Template(rf, ctx) { if (rf & 1) {
|
|
72
|
-
i0.ɵɵtemplate(0, GovUkLabelComponent_h1_0_Template, 2, 1, "h1", 0);
|
|
73
|
-
i0.ɵɵtemplate(1, GovUkLabelComponent_ng_template_1_Template, 1, 1, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
74
|
-
} if (rf & 2) {
|
|
75
|
-
const _r1 = i0.ɵɵreference(2);
|
|
76
|
-
i0.ɵɵproperty("ngIf", ctx.config.isPageHeading)("ngIfElse", _r1);
|
|
77
|
-
} }, dependencies: [i1.NgIf, i2.RpxTranslatePipe], styles: [".govuk-label[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.govuk-label__optional[_ngcontent-%COMP%]{font-weight:400;font-size:16px;display:inline-block;margin-left:.75rem}"] });
|
|
78
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GovUkLabelComponent, [{
|
|
79
|
-
type: Component,
|
|
80
|
-
args: [{ selector: 'xuilib-gov-label', template: "<h1 *ngIf=\"config.isPageHeading else noHeading\">\n <label *ngIf=\"config.label\" [for]=\"config.id\" [class]=\"config.classes + ' govuk-label'\">\n <span>{{ config.label | rpxTranslate }}</span>\n <span class=\"govuk-label__optional\" *ngIf=\"config.optional\">(optional)</span>\n </label>\n</h1>\n<ng-template #noHeading>\n <label *ngIf=\"config.label\" [for]=\"config.id\" [class]=\"config.classes + ' govuk-label'\">\n <span>{{ config.label }}</span>\n <span class=\"govuk-label__optional\" *ngIf=\"config.optional\">(optional)</span>\n </label>\n</ng-template>\n", styles: [".govuk-label{display:flex;align-items:center;flex-wrap:wrap}.govuk-label__optional{font-weight:400;font-size:16px;display:inline-block;margin-left:.75rem}\n"] }]
|
|
81
|
-
}], function () { return []; }, { config: [{
|
|
82
|
-
type: Input
|
|
83
|
-
}] }); })();
|
|
84
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ292LXVrLWxhYmVsLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2V4dWktY29tbW9uLWxpYi9zcmMvbGliL2dvdi11aS9jb21wb25lbnRzL2dvdi11ay1sYWJlbC9nb3YtdWstbGF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IHwgcnB4VHJhbnNsYXRlIH19PC9zcGFuPlxuICAgIDxzcGFuIGNsYXNzPVwiZ292dWstbGFiZWxfX29wdGlvbmFsXCIgKm5nSWY9XCJjb25maWcub3B0aW9uYWxcIj4ob3B0aW9uYWwpPC9zcGFuPlxuICA8L2xhYmVsPlxuPC9oMT5cbjxuZy10ZW1wbGF0ZSAjbm9IZWFkaW5nPlxuICA8bGFiZWwgKm5nSWY9XCJjb25maWcubGFiZWxcIiBbZm9yXT1cImNvbmZpZy5pZFwiIFtjbGFzc109XCJjb25maWcuY2xhc3NlcyArICcgZ292dWstbGFiZWwnXCI+XG4gICAgPHNwYW4+e3sgY29uZmlnLmxhYmVsIH19PC9zcGFuPlxuICAgIDxzcGFuIGNsYXNzPVwiZ292dWstbGFiZWxfX29wdGlvbmFsXCIgKm5nSWY9XCJjb25maWcub3B0aW9uYWxcIj4ob3B0aW9uYWwpPC9zcGFuPlxuICA8L2xhYmVsPlxuPC9uZy10ZW1wbGF0ZT5cbiJdfQ==
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@angular/forms";
|
|
5
|
-
import * as i2 from "../gov-uk-label/gov-uk-label.component";
|
|
6
|
-
import * as i3 from "../../directives/remove-host.directive";
|
|
7
|
-
/*
|
|
8
|
-
* Gov Uk Radio state-less Component responsible for
|
|
9
|
-
* displaying radios input and hint
|
|
10
|
-
*
|
|
11
|
-
* */
|
|
12
|
-
export class GovUkRadioComponent {
|
|
13
|
-
constructor() { }
|
|
14
|
-
/*
|
|
15
|
-
* ngOnInIt
|
|
16
|
-
* needed to manage the focus id if passed on in config
|
|
17
|
-
* si it can focus on element when user clicks on error message in the header.
|
|
18
|
-
**/
|
|
19
|
-
ngOnInit() {
|
|
20
|
-
const id = this.config.focusOn ? this.config.focusOn : this.config.value;
|
|
21
|
-
this.config.id = id;
|
|
22
|
-
this.config.classes = this.config.classes ?
|
|
23
|
-
this.config.classes.concat(' govuk-radios__label') : 'govuk-radios__label';
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
GovUkRadioComponent.ɵfac = function GovUkRadioComponent_Factory(t) { return new (t || GovUkRadioComponent)(); };
|
|
27
|
-
GovUkRadioComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GovUkRadioComponent, selectors: [["xuilib-gov-radio"]], inputs: { group: "group", config: "config" }, decls: 3, vars: 8, consts: [[1, "govuk-radios__item", 3, "formGroup"], ["type", "radio", 3, "className", "id", "value", "name", "formControl"], ["appRemoveHost", "", 3, "config"]], template: function GovUkRadioComponent_Template(rf, ctx) { if (rf & 1) {
|
|
28
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
29
|
-
i0.ɵɵelement(1, "input", 1)(2, "xuilib-gov-label", 2);
|
|
30
|
-
i0.ɵɵelementEnd();
|
|
31
|
-
} if (rf & 2) {
|
|
32
|
-
i0.ɵɵproperty("formGroup", ctx.group);
|
|
33
|
-
i0.ɵɵadvance(1);
|
|
34
|
-
i0.ɵɵproperty("className", "govuk-radios__input " + ctx.config.classes)("id", ctx.config.id)("value", ctx.config.value)("name", ctx.config.name)("formControl", ctx.group.controls[ctx.config.name]);
|
|
35
|
-
i0.ɵɵattribute("data-aria-controls", ctx.config.id);
|
|
36
|
-
i0.ɵɵadvance(1);
|
|
37
|
-
i0.ɵɵproperty("config", ctx.config);
|
|
38
|
-
} }, dependencies: [i1.DefaultValueAccessor, i1.RadioControlValueAccessor, i1.NgControlStatus, i1.NgControlStatusGroup, i1.FormControlDirective, i1.FormGroupDirective, i2.GovUkLabelComponent, i3.RemoveHostDirective], encapsulation: 2 });
|
|
39
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GovUkRadioComponent, [{
|
|
40
|
-
type: Component,
|
|
41
|
-
args: [{ selector: 'xuilib-gov-radio', template: "<div class=\"govuk-radios__item\" [formGroup]=\"group\">\n <input [className]=\"'govuk-radios__input ' + config.classes\"\n [id]=\"config.id\"\n [value]=\"config.value\" type=\"radio\"\n [attr.data-aria-controls]=\"config.id\"\n [name]=\"config.name\"\n [formControl]=\"group.controls[config.name]\">\n <xuilib-gov-label appRemoveHost [config]=\"config\"></xuilib-gov-label>\n</div>\n" }]
|
|
42
|
-
}], function () { return []; }, { group: [{
|
|
43
|
-
type: Input
|
|
44
|
-
}], config: [{
|
|
45
|
-
type: Input
|
|
46
|
-
}] }); })();
|
|
47
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ292LXVrLXJhZGlvLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2V4dWktY29tbW9uLWxpYi9zcmMvbGliL2dvdi11aS9jb21wb25lbnRzL2dvdi11ay1yYWRpby9nb3YtdWstcmFkaW8uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZXh1aS1jb21tb24tbGliL3NyYy9saWIvZ292LXVpL2NvbXBvbmVudHMvZ292LXVrLXJhZGlvL2dvdi11ay1yYWRpby5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLEtBQUssRUFBUyxNQUFNLGVBQWUsQ0FBQztBQUN2RCxPQUFPLEVBQUMsU0FBUyxFQUFDLE1BQU0sZ0JBQWdCLENBQUM7Ozs7O0FBRXpDOzs7O0lBSUk7QUFLSixNQUFNLE9BQU8sbUJBQW1CO0lBQzlCLGdCQUFnQixDQUFDO0lBTWpCOzs7O1FBSUk7SUFDRyxRQUFRO1FBQ2IsTUFBTSxFQUFFLEdBQUksSUFBSSxDQUFDLE1BQU0sQ0FBQyxPQUFPLENBQUMsQ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uZmlnLmNsYXNzZXMgP1xuICAgICAgdGhpcy5jb25maWcuY2xhc3Nlcy5jb25jYXQoJyBnb3Z1ay1yYWRpb3NfX2xhYmVsJykgOiAnZ292dWstcmFkaW9zX19sYWJlbCc7XG4gIH1cblxufVxuIiwiPGRpdiBjbGFzcz1cImdvdnVrLXJhZGlvc19faXRlbVwiIFtmb3JtR3JvdXBdPVwiZ3JvdXBcIj5cbiAgPGlucHV0IFtjbGFzc05hbWVdPVwiJ2dvdnVrLXJhZGlvc19faW5wdXQgJyArIGNvbmZpZy5jbGFzc2VzXCJcbiAgICAgICAgIFtpZF09XCJjb25maWcuaWRcIlxuICAgICAgICAgW3ZhbHVlXT1cImNvbmZpZy52YWx1ZVwiIHR5cGU9XCJyYWRpb1wiXG4gICAgICAgICBbYXR0ci5kYXRhLWFyaWEtY29udHJvbHNdPVwiY29uZmlnLmlkXCJcbiAgICAgICAgIFtuYW1lXT1cImNvbmZpZy5uYW1lXCJcbiAgICAgICAgIFtmb3JtQ29udHJvbF09XCJncm91cC5jb250cm9sc1tjb25maWcubmFtZV1cIj5cbiAgPHh1aWxpYi1nb3YtbGFiZWwgYXBwUmVtb3ZlSG9zdCBbY29uZmlnXT1cImNvbmZpZ1wiPjwveHVpbGliLWdvdi1sYWJlbD5cbjwvZGl2PlxuIl19
|
|
@@ -1,41 +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 "../gov-uk-form-group-wrapper/gov-uk-form-group-wrapper.component";
|
|
5
|
-
import * as i3 from "../gov-uk-radio/gov-uk-radio.component";
|
|
6
|
-
import * as i4 from "../../directives/remove-host.directive";
|
|
7
|
-
function GovUkRadiosComponent_xuilib_gov_radio_2_Template(rf, ctx) { if (rf & 1) {
|
|
8
|
-
i0.ɵɵelement(0, "xuilib-gov-radio", 3);
|
|
9
|
-
} if (rf & 2) {
|
|
10
|
-
const item_r1 = ctx.$implicit;
|
|
11
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
12
|
-
i0.ɵɵproperty("group", ctx_r0.options.group)("config", item_r1.config);
|
|
13
|
-
} }
|
|
14
|
-
/*
|
|
15
|
-
* Radios component - state less
|
|
16
|
-
* Responsible for displaying a list of gov-uk-radio components
|
|
17
|
-
* @param: options - object with data for wrapper (fieldset) and
|
|
18
|
-
* array of items for gov-uk-checkboxes
|
|
19
|
-
* @param: errors - array of error stings
|
|
20
|
-
* */
|
|
21
|
-
export class GovUkRadiosComponent {
|
|
22
|
-
}
|
|
23
|
-
GovUkRadiosComponent.ɵfac = function GovUkRadiosComponent_Factory(t) { return new (t || GovUkRadiosComponent)(); };
|
|
24
|
-
GovUkRadiosComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GovUkRadiosComponent, selectors: [["xuilib-gov-uk-radios"]], inputs: { options: "options", errors: "errors" }, decls: 3, vars: 4, consts: [[3, "error", "config", "group"], [1, "govuk-radios"], ["appRemoveHost", "", 3, "group", "config", 4, "ngFor", "ngForOf"], ["appRemoveHost", "", 3, "group", "config"]], template: function GovUkRadiosComponent_Template(rf, ctx) { if (rf & 1) {
|
|
25
|
-
i0.ɵɵelementStart(0, "xuilib-gov-uk-form-group-wrapper", 0)(1, "div", 1);
|
|
26
|
-
i0.ɵɵtemplate(2, GovUkRadiosComponent_xuilib_gov_radio_2_Template, 1, 2, "xuilib-gov-radio", 2);
|
|
27
|
-
i0.ɵɵelementEnd()();
|
|
28
|
-
} if (rf & 2) {
|
|
29
|
-
i0.ɵɵproperty("error", ctx.errors)("config", ctx.options.config)("group", ctx.options.key);
|
|
30
|
-
i0.ɵɵadvance(2);
|
|
31
|
-
i0.ɵɵproperty("ngForOf", ctx.options.items);
|
|
32
|
-
} }, dependencies: [i1.NgForOf, i2.GovUkFormGroupWrapperComponent, i3.GovUkRadioComponent, i4.RemoveHostDirective], encapsulation: 2 });
|
|
33
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GovUkRadiosComponent, [{
|
|
34
|
-
type: Component,
|
|
35
|
-
args: [{ selector: 'xuilib-gov-uk-radios', template: "<xuilib-gov-uk-form-group-wrapper\n[error]=\"errors\"\n[config]=\"options.config\"\n[group]=\"options.key\">\n<div class=\"govuk-radios\">\n <xuilib-gov-radio\n appRemoveHost\n *ngFor=\"let item of options.items\"\n [group]=\"options.group\"\n [config]=\"item.config\">\n </xuilib-gov-radio>\n</div>\n</xuilib-gov-uk-form-group-wrapper>" }]
|
|
36
|
-
}], null, { options: [{
|
|
37
|
-
type: Input
|
|
38
|
-
}], errors: [{
|
|
39
|
-
type: Input
|
|
40
|
-
}] }); })();
|
|
41
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ292LXVrLXJhZGlvcy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9leHVpLWNvbW1vbi1saWIvc3JjL2xpYi9nb3YtdWkvY29tcG9uZW50cy9nb3YtdWstcmFkaW9zL2dvdi11ay1yYWRpb3MuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZXh1aS1jb21tb24tbGliL3NyYy9saWIvZ292LXVpL2NvbXBvbmVudHMvZ292LXVrLXJhZGlvcy9nb3YtdWstcmFkaW9zLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7Ozs7O0lDSy9DLHNDQUttQjs7OztJQUZqQiw0Q0FBdUIsMEJBQUE7O0FETDNCOzs7Ozs7SUFNSTtBQU1KLE1BQU0sT0FBTyxvQkFBb0I7O3dGQUFwQixvQkFBb0I7dUVBQXBCLG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