@hmcts/rpx-xui-common-lib 2.1.2-angular-upgrade-11 → 2.1.2-google-analytics
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/hmcts-rpx-xui-common-lib.mjs +5 -0
- package/esm2022/lib/components/accessibility/accessibility.component.mjs +833 -0
- package/esm2022/lib/components/checkbox-list/checkbox-list.component.mjs +232 -0
- package/esm2022/lib/components/contact-details/contact-details.component.mjs +123 -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/esm2022/lib/components/find-task-name/find-task-name.component.mjs +200 -0
- package/esm2022/lib/components/generic-filter/generic-filter-utils.mjs +21 -0
- package/esm2022/lib/components/generic-filter/generic-filter.component.mjs +1224 -0
- package/esm2022/lib/components/hmcts-session-dialog/hmcts-session-dialog.component.mjs +56 -0
- package/esm2022/lib/components/index.mjs +2 -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/public_api.mjs +39 -0
- package/esm2022/lib/components/search-judicials/search-judicials.component.mjs +185 -0
- package/esm2022/lib/components/search-location/search-location.component.mjs +240 -0
- package/esm2022/lib/components/search-service/search-service.component.mjs +94 -0
- package/esm2022/lib/components/search-venue/search-venue.component.mjs +188 -0
- package/esm2022/lib/components/selected-case/selected-case.component.mjs +381 -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 +62 -0
- package/esm2022/lib/components/service-messages/service-messages.component.mjs +165 -0
- package/esm2022/lib/components/share-case/share-case.component.mjs +427 -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 +276 -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/esm2022/lib/directives/index.mjs +2 -0
- package/esm2022/lib/directives/let/let.directive.mjs +29 -0
- package/esm2022/lib/directives/public-api.mjs +3 -0
- package/esm2022/lib/exui-common-lib.module.mjs +313 -0
- 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 +127 -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-info.interface.mjs +2 -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/components/index.mjs +2 -0
- package/esm2022/lib/gov-ui/components/public_api.mjs +22 -0
- package/esm2022/lib/gov-ui/directives/remove-host.directive.mjs +30 -0
- package/esm2022/lib/gov-ui/gov-ui.service.mjs +14 -0
- package/esm2022/lib/gov-ui/index.mjs +2 -0
- package/esm2022/lib/gov-ui/models/checkboxes-model.mjs +2 -0
- package/esm2022/lib/gov-ui/models/error-messages-model.mjs +2 -0
- package/esm2022/lib/gov-ui/models/gov-ui-config-model.mjs +2 -0
- package/esm2022/lib/gov-ui/models/index.mjs +2 -0
- package/esm2022/lib/gov-ui/models/public_api.mjs +7 -0
- package/esm2022/lib/gov-ui/models/radio-buttons.model.mjs +2 -0
- package/esm2022/lib/gov-ui/public_api.mjs +8 -0
- package/esm2022/lib/gov-ui/util/helpers/html-templates.helper.mjs +22 -0
- package/esm2022/lib/gov-ui/validators/checkboxes-be-checked.validator.mjs +18 -0
- package/esm2022/lib/gov-ui/validators/date.validator.mjs +15 -0
- package/esm2022/lib/gov-ui/validators/index.mjs +2 -0
- package/esm2022/lib/gov-ui/validators/public_api.mjs +7 -0
- package/esm2022/lib/gov-ui/validators/radio-group.validator.mjs +15 -0
- package/esm2022/lib/models/address-message.enum.mjs +11 -0
- package/esm2022/lib/models/address-option.model.mjs +21 -0
- package/esm2022/lib/models/address.model.mjs +4 -0
- package/esm2022/lib/models/case-share.model.mjs +7 -0
- package/esm2022/lib/models/contact-details.model.mjs +7 -0
- package/esm2022/lib/models/due-date.model.mjs +8 -0
- package/esm2022/lib/models/feature-user.mjs +5 -0
- package/esm2022/lib/models/filter.model.mjs +3 -0
- package/esm2022/lib/models/idle-config.model.mjs +2 -0
- package/esm2022/lib/models/index.mjs +19 -0
- package/esm2022/lib/models/location.model.mjs +7 -0
- package/esm2022/lib/models/pagination.model.mjs +2 -0
- package/esm2022/lib/models/person.model.mjs +19 -0
- package/esm2022/lib/models/public_api.mjs +7 -0
- package/esm2022/lib/models/search-options.model.mjs +2 -0
- package/esm2022/lib/models/service-message.model.mjs +2 -0
- package/esm2022/lib/models/task-name.model.mjs +2 -0
- package/esm2022/lib/models/tcDocument.model.mjs +2 -0
- package/esm2022/lib/models/timeout-notification.model.mjs +2 -0
- package/esm2022/lib/models/user-access-type.model.mjs +2 -0
- package/esm2022/lib/models/user-details.model.mjs +2 -0
- package/esm2022/lib/models/user.model.mjs +2 -0
- package/esm2022/lib/pipes/capitalize/capitalize.pipe.mjs +15 -0
- package/esm2022/lib/pipes/index.mjs +2 -0
- package/esm2022/lib/services/address/address-parser.mjs +76 -0
- package/esm2022/lib/services/address/address-type.enum.mjs +7 -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/esm2022/lib/services/cookie/cookie.service.mjs +48 -0
- package/esm2022/lib/services/feature-toggle/feature-toggle.guard.mjs +37 -0
- package/esm2022/lib/services/feature-toggle/feature-toggle.service.mjs +33 -0
- 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 +92 -0
- package/esm2022/lib/services/google-analytics/google-analytics.service.mjs +73 -0
- package/esm2022/lib/services/google-tag-manager/google-tag-manager.service.mjs +85 -0
- package/esm2022/lib/services/index.mjs +2 -0
- package/esm2022/lib/services/loading/loading.service.mjs +41 -0
- package/esm2022/lib/services/locations/location.service.mjs +38 -0
- package/esm2022/lib/services/manage-session/manage-session.services.mjs +50 -0
- package/esm2022/lib/services/public-api.mjs +18 -0
- package/esm2022/lib/services/ref-data/index.mjs +4 -0
- package/esm2022/lib/services/ref-data/models/ref-data-htmcs-service.model.mjs +2 -0
- package/esm2022/lib/services/ref-data/models/ref-data-region.model.mjs +2 -0
- package/esm2022/lib/services/ref-data/ref-data-data-access/models/ref-data-locations-by-service-code-response.model.mjs +2 -0
- 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/esm2022/lib/services/role-guard/role.guard.mjs +43 -0
- package/esm2022/lib/services/role-guard/role.service.mjs +22 -0
- 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/esm2022/lib/services/timeout-notifications/timeout-notifications.service.mjs +103 -0
- package/esm2022/lib/window.mjs +4 -0
- package/esm2022/public-api.mjs +12 -0
- package/fesm2022/hmcts-rpx-xui-common-lib.mjs +10377 -0
- package/fesm2022/hmcts-rpx-xui-common-lib.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/accessibility/accessibility.component.d.ts +7 -1
- package/lib/components/checkbox-list/checkbox-list.component.d.ts +14 -7
- package/lib/components/contact-details/contact-details.component.d.ts +3 -0
- package/lib/components/cookie-banner/cookie-banner.component.d.ts +5 -1
- package/lib/components/due-date/due-date.component.d.ts +12 -6
- package/lib/components/exui-main-wrapper/exui-page-wrapper.component.d.ts +3 -0
- package/lib/components/find-location/find-location.component.d.ts +16 -8
- package/lib/components/find-person/find-person.component.d.ts +5 -2
- package/lib/components/find-service/find-service.component.d.ts +29 -0
- package/lib/components/find-task-name/find-task-name.component.d.ts +44 -0
- package/lib/components/generic-filter/generic-filter-utils.d.ts +2 -5
- package/lib/components/generic-filter/generic-filter.component.d.ts +29 -8
- package/lib/components/hmcts-session-dialog/hmcts-session-dialog.component.d.ts +3 -0
- package/lib/components/invite-user-form/invite-user-form.component.d.ts +4 -1
- package/lib/components/invite-user-permissions/invite-user-permission.component.d.ts +3 -0
- package/lib/components/loading-spinner/loading-spinner.component.d.ts +8 -1
- package/lib/components/pagination/pagination.component.d.ts +3 -0
- package/lib/components/public_api.d.ts +11 -0
- package/lib/components/search-judicials/search-judicials.component.d.ts +4 -1
- package/lib/components/search-location/search-location.component.d.ts +27 -20
- package/lib/components/search-service/search-service.component.d.ts +20 -0
- package/lib/components/search-venue/search-venue.component.d.ts +4 -2
- package/lib/components/selected-case/selected-case.component.d.ts +4 -1
- package/lib/components/selected-case-confirm/selected-case-confirm.component.d.ts +3 -0
- package/lib/components/selected-case-list/selected-case-list.component.d.ts +4 -0
- package/lib/components/service-message/service-message.component.d.ts +9 -4
- package/lib/components/service-messages/service-messages.component.d.ts +15 -5
- package/lib/components/share-case/share-case.component.d.ts +41 -2
- package/lib/components/share-case-confirm/share-case-confirm.component.d.ts +3 -0
- package/lib/components/tab/tab.component.d.ts +3 -0
- package/lib/components/tc-confirm/tc-confirm.component.d.ts +3 -0
- package/lib/components/terms-and-conditions/tc-display/tc-display-html/tc-display-html.component.d.ts +3 -0
- package/lib/components/terms-and-conditions/tc-display/tc-display-plain/tc-display-plain.component.d.ts +3 -0
- package/lib/components/terms-and-conditions/terms-and-conditions.component.d.ts +3 -0
- package/lib/components/user-details/user-details.component.d.ts +4 -0
- package/lib/components/user-list/user-list.component.d.ts +3 -0
- package/lib/components/user-select/user-select.component.d.ts +5 -3
- package/lib/components/write-address/write-address.component.d.ts +45 -0
- package/lib/components/write-address-inputs/write-address-inputs.component.d.ts +16 -0
- package/lib/directives/feature-toggle/feature-toggle.directive.d.ts +4 -1
- package/lib/directives/let/let.directive.d.ts +4 -1
- package/lib/exui-common-lib.module.d.ts +83 -4
- package/lib/gov-ui/components/gov-uk-checkbox/gov-uk-checkbox.component.d.ts +3 -0
- package/lib/gov-ui/components/gov-uk-checkboxes/gov-uk-checkboxes.component.d.ts +17 -5
- package/lib/gov-ui/components/gov-uk-date/gov-uk-date.component.d.ts +3 -0
- package/lib/gov-ui/components/gov-uk-error-message/gov-uk-error-message.component.d.ts +3 -0
- package/lib/gov-ui/components/gov-uk-fieldset/gov-uk-fieldset.component.d.ts +3 -0
- package/lib/gov-ui/components/gov-uk-file-upload/gov-uk-file-upload.component.d.ts +3 -0
- package/lib/gov-ui/components/gov-uk-form-group-wrapper/gov-uk-form-group-wrapper.component.d.ts +3 -0
- package/lib/gov-ui/components/gov-uk-input/gov-uk-input.component.d.ts +4 -2
- package/lib/gov-ui/components/gov-uk-label/gov-uk-label.component.d.ts +4 -0
- package/lib/gov-ui/components/gov-uk-radio/gov-uk-radio.component.d.ts +3 -0
- package/lib/gov-ui/components/gov-uk-radios/gov-uk-radios.component.d.ts +5 -2
- package/lib/gov-ui/components/gov-uk-select/gov-uk-select.component.d.ts +3 -0
- package/lib/gov-ui/components/gov-uk-table/gov-uk-table.component.d.ts +3 -0
- package/lib/gov-ui/components/gov-uk-textarea/gov-uk-textarea.component.d.ts +3 -0
- package/lib/gov-ui/components/hmcts-banner/hmcts-banner-info.interface.d.ts +7 -0
- package/lib/gov-ui/components/hmcts-banner/hmcts-banner.component.d.ts +7 -2
- package/lib/gov-ui/components/hmcts-error-summary/hmcts-error-summary.component.d.ts +4 -1
- package/lib/gov-ui/components/hmcts-identity-bar/hmcts-identity-bar.component.d.ts +4 -1
- package/lib/gov-ui/components/hmcts-main-wrapper/hmcts-main-wrapper.component.d.ts +6 -3
- package/lib/gov-ui/components/hmcts-pagination/hmcts-pagination.component.d.ts +3 -0
- package/lib/gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component.d.ts +4 -1
- package/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.d.ts +3 -0
- package/lib/gov-ui/components/public_api.d.ts +20 -0
- package/lib/gov-ui/directives/remove-host.directive.d.ts +3 -0
- package/lib/gov-ui/gov-ui.service.d.ts +3 -0
- package/lib/gov-ui/models/checkboxes-model.d.ts +4 -7
- package/lib/gov-ui/models/gov-ui-config-model.d.ts +2 -0
- package/lib/gov-ui/models/public_api.d.ts +0 -1
- package/lib/gov-ui/models/radio-buttons.model.d.ts +9 -0
- package/lib/gov-ui/public_api.d.ts +1 -0
- package/lib/models/address-message.enum.d.ts +9 -0
- package/lib/models/address-option.model.d.ts +9 -0
- package/lib/models/address.model.d.ts +9 -0
- package/lib/models/case-share.model.d.ts +5 -0
- package/lib/models/contact-details.model.d.ts +4 -0
- package/lib/models/feature-user.d.ts +4 -6
- package/lib/models/filter.model.d.ts +43 -9
- package/lib/models/index.d.ts +4 -0
- package/lib/models/location.model.d.ts +12 -12
- package/lib/models/person.model.d.ts +3 -0
- package/lib/models/public_api.d.ts +1 -0
- package/lib/models/search-options.model.d.ts +1 -1
- package/lib/models/service-message.model.d.ts +8 -0
- package/lib/models/task-name.model.d.ts +4 -0
- package/lib/models/user-access-type.model.d.ts +6 -0
- package/lib/models/user-details.model.d.ts +2 -0
- package/lib/pipes/capitalize/capitalize.pipe.d.ts +7 -0
- package/lib/pipes/index.d.ts +1 -0
- package/lib/services/address/address-parser.d.ts +17 -0
- package/lib/services/address/address-type.enum.d.ts +5 -0
- package/lib/services/address/address.service.d.ts +15 -0
- package/lib/services/case-sharing-state/case-sharing-state.service.d.ts +5 -2
- package/lib/services/cookie/cookie.service.d.ts +3 -0
- package/lib/services/feature-toggle/feature-toggle.guard.d.ts +8 -2
- package/lib/services/feature-toggle/feature-toggle.service.d.ts +4 -0
- package/lib/services/feature-toggle/launch-darkly.service.d.ts +14 -10
- package/lib/services/filter/filter.service.d.ts +6 -0
- package/lib/services/find-person/find-person.service.d.ts +5 -2
- package/lib/services/google-analytics/google-analytics.service.d.ts +4 -1
- package/lib/services/google-tag-manager/google-tag-manager.service.d.ts +5 -1
- package/lib/services/loading/loading.service.d.ts +5 -2
- package/lib/services/locations/location.service.d.ts +4 -1
- package/lib/services/manage-session/manage-session.services.d.ts +3 -0
- package/lib/services/public-api.d.ts +2 -4
- package/lib/services/ref-data/index.d.ts +3 -0
- package/lib/services/ref-data/models/ref-data-htmcs-service.model.d.ts +13 -0
- package/lib/services/ref-data/models/ref-data-region.model.d.ts +4 -0
- package/lib/services/ref-data/ref-data-data-access/models/ref-data-locations-by-service-code-response.model.d.ts +8 -0
- package/lib/services/ref-data/ref-data-data-access/ref-data-data-access.service.d.ts +18 -0
- package/lib/services/ref-data/ref-data.service.d.ts +17 -0
- package/lib/services/role-guard/role.guard.d.ts +7 -3
- package/lib/services/role-guard/role.service.d.ts +9 -4
- package/lib/services/{session-storage → storage/session-storage}/session-storage.service.d.ts +3 -0
- package/lib/services/task-name/task-name.service.d.ts +17 -0
- package/lib/services/timeout-notifications/timeout-notifications.service.d.ts +8 -2
- package/lib/window.d.ts +1 -1
- package/package.json +22 -22
- package/public-api.d.ts +1 -0
- package/bundles/hmcts-rpx-xui-common-lib.umd.js +0 -9742
- package/bundles/hmcts-rpx-xui-common-lib.umd.js.map +0 -1
- package/bundles/hmcts-rpx-xui-common-lib.umd.min.js +0 -16
- package/bundles/hmcts-rpx-xui-common-lib.umd.min.js.map +0 -1
- package/esm2015/hmcts-rpx-xui-common-lib.js +0 -73
- package/esm2015/lib/components/accessibility/accessibility.component.js +0 -20
- package/esm2015/lib/components/checkbox-list/checkbox-list.component.js +0 -275
- package/esm2015/lib/components/contact-details/contact-details.component.js +0 -27
- package/esm2015/lib/components/cookie-banner/cookie-banner.component.js +0 -129
- package/esm2015/lib/components/due-date/due-date.component.js +0 -210
- package/esm2015/lib/components/exui-main-wrapper/exui-page-wrapper.component.js +0 -42
- package/esm2015/lib/components/find-location/find-location.component.js +0 -240
- package/esm2015/lib/components/find-person/find-person.component.js +0 -259
- package/esm2015/lib/components/generic-filter/generic-filter-utils.js +0 -65
- package/esm2015/lib/components/generic-filter/generic-filter.component.js +0 -636
- package/esm2015/lib/components/hmcts-session-dialog/hmcts-session-dialog.component.js +0 -42
- package/esm2015/lib/components/index.js +0 -7
- package/esm2015/lib/components/invite-user-form/invite-user-form.component.js +0 -45
- package/esm2015/lib/components/invite-user-permissions/invite-user-permission.component.js +0 -44
- package/esm2015/lib/components/loading-spinner/loading-spinner.component.js +0 -27
- package/esm2015/lib/components/pagination/pagination.component.js +0 -50
- package/esm2015/lib/components/public_api.js +0 -33
- package/esm2015/lib/components/search-judicials/search-judicials.component.js +0 -249
- package/esm2015/lib/components/search-location/search-location.component.js +0 -294
- package/esm2015/lib/components/search-venue/search-venue.component.js +0 -246
- package/esm2015/lib/components/selected-case/selected-case.component.js +0 -316
- package/esm2015/lib/components/selected-case-confirm/selected-case-confirm.component.js +0 -74
- package/esm2015/lib/components/selected-case-list/selected-case-list.component.js +0 -94
- package/esm2015/lib/components/service-message/service-message.component.js +0 -40
- package/esm2015/lib/components/service-messages/service-messages.component.js +0 -106
- package/esm2015/lib/components/share-case/share-case.component.js +0 -172
- package/esm2015/lib/components/share-case-confirm/share-case-confirm.component.js +0 -67
- package/esm2015/lib/components/tab/tab.component.js +0 -45
- package/esm2015/lib/components/tc-confirm/tc-confirm.component.js +0 -37
- package/esm2015/lib/components/terms-and-conditions/tc-display/tc-display-html/tc-display-html.component.js +0 -19
- package/esm2015/lib/components/terms-and-conditions/tc-display/tc-display-plain/tc-display-plain.component.js +0 -19
- package/esm2015/lib/components/terms-and-conditions/terms-and-conditions.component.js +0 -26
- package/esm2015/lib/components/user-details/user-details.component.js +0 -78
- package/esm2015/lib/components/user-list/user-list.component.js +0 -63
- package/esm2015/lib/components/user-select/user-select.component.js +0 -105
- package/esm2015/lib/directives/feature-toggle/feature-toggle.directive.js +0 -95
- package/esm2015/lib/directives/index.js +0 -7
- package/esm2015/lib/directives/let/let.directive.js +0 -68
- package/esm2015/lib/directives/public-api.js +0 -8
- package/esm2015/lib/exui-common-lib.module.js +0 -162
- package/esm2015/lib/gov-ui/components/gov-uk-checkbox/gov-uk-checkbox.component.js +0 -51
- package/esm2015/lib/gov-ui/components/gov-uk-checkboxes/gov-uk-checkboxes.component.js +0 -32
- package/esm2015/lib/gov-ui/components/gov-uk-date/gov-uk-date.component.js +0 -114
- package/esm2015/lib/gov-ui/components/gov-uk-error-message/gov-uk-error-message.component.js +0 -34
- package/esm2015/lib/gov-ui/components/gov-uk-fieldset/gov-uk-fieldset.component.js +0 -43
- package/esm2015/lib/gov-ui/components/gov-uk-file-upload/gov-uk-file-upload.component.js +0 -57
- package/esm2015/lib/gov-ui/components/gov-uk-form-group-wrapper/gov-uk-form-group-wrapper.component.js +0 -37
- package/esm2015/lib/gov-ui/components/gov-uk-input/gov-uk-input.component.js +0 -54
- package/esm2015/lib/gov-ui/components/gov-uk-label/gov-uk-label.component.js +0 -31
- package/esm2015/lib/gov-ui/components/gov-uk-radio/gov-uk-radio.component.js +0 -51
- package/esm2015/lib/gov-ui/components/gov-uk-radios/gov-uk-radios.component.js +0 -32
- package/esm2015/lib/gov-ui/components/gov-uk-select/gov-uk-select.component.js +0 -46
- package/esm2015/lib/gov-ui/components/gov-uk-table/gov-uk-table.component.js +0 -69
- package/esm2015/lib/gov-ui/components/gov-uk-textarea/gov-uk-textarea.component.js +0 -43
- package/esm2015/lib/gov-ui/components/hmcts-banner/hmcts-banner.component.js +0 -35
- package/esm2015/lib/gov-ui/components/hmcts-error-summary/hmcts-error-summary.component.js +0 -90
- package/esm2015/lib/gov-ui/components/hmcts-identity-bar/hmcts-identity-bar.component.js +0 -33
- package/esm2015/lib/gov-ui/components/hmcts-main-wrapper/hmcts-main-wrapper.component.js +0 -75
- package/esm2015/lib/gov-ui/components/hmcts-pagination/hmcts-pagination.component.js +0 -49
- package/esm2015/lib/gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component.js +0 -43
- package/esm2015/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.js +0 -42
- package/esm2015/lib/gov-ui/components/index.js +0 -7
- package/esm2015/lib/gov-ui/components/public_api.js +0 -7
- package/esm2015/lib/gov-ui/directives/remove-host.directive.js +0 -50
- package/esm2015/lib/gov-ui/gov-ui.service.js +0 -19
- package/esm2015/lib/gov-ui/index.js +0 -7
- package/esm2015/lib/gov-ui/models/banner-data-model.js +0 -16
- package/esm2015/lib/gov-ui/models/checkboxes-model.js +0 -22
- package/esm2015/lib/gov-ui/models/error-messages-model.js +0 -16
- package/esm2015/lib/gov-ui/models/gov-ui-config-model.js +0 -36
- package/esm2015/lib/gov-ui/models/index.js +0 -7
- package/esm2015/lib/gov-ui/models/isession-storage.interface.js +0 -24
- package/esm2015/lib/gov-ui/models/public_api.js +0 -13
- package/esm2015/lib/gov-ui/public_api.js +0 -12
- package/esm2015/lib/gov-ui/util/helpers/html-templates.helper.js +0 -32
- package/esm2015/lib/gov-ui/util/session-storage/session-storage-utils.js +0 -58
- package/esm2015/lib/gov-ui/validators/checkboxes-be-checked.validator.js +0 -37
- package/esm2015/lib/gov-ui/validators/date.validator.js +0 -32
- package/esm2015/lib/gov-ui/validators/index.js +0 -7
- package/esm2015/lib/gov-ui/validators/public_api.js +0 -12
- package/esm2015/lib/gov-ui/validators/radio-group.validator.js +0 -27
- package/esm2015/lib/models/case-share.model.js +0 -26
- package/esm2015/lib/models/contact-details.model.js +0 -31
- package/esm2015/lib/models/due-date.model.js +0 -15
- package/esm2015/lib/models/feature-user.js +0 -20
- package/esm2015/lib/models/filter.model.js +0 -120
- package/esm2015/lib/models/idle-config.model.js +0 -20
- package/esm2015/lib/models/index.js +0 -20
- package/esm2015/lib/models/location.model.js +0 -129
- package/esm2015/lib/models/pagination.model.js +0 -18
- package/esm2015/lib/models/person.model.js +0 -92
- package/esm2015/lib/models/public_api.js +0 -11
- package/esm2015/lib/models/search-options.model.js +0 -22
- package/esm2015/lib/models/tcDocument.model.js +0 -18
- package/esm2015/lib/models/timeout-notification.model.js +0 -18
- package/esm2015/lib/models/user-details.model.js +0 -22
- package/esm2015/lib/models/user.model.js +0 -25
- package/esm2015/lib/services/case-sharing-state/case-sharing-state.service.js +0 -218
- package/esm2015/lib/services/cookie/cookie.service.js +0 -110
- package/esm2015/lib/services/feature-toggle/feature-toggle.guard.js +0 -74
- package/esm2015/lib/services/feature-toggle/feature-toggle.service.js +0 -53
- package/esm2015/lib/services/feature-toggle/launch-darkly.service.js +0 -141
- package/esm2015/lib/services/filter/filter.service.js +0 -118
- package/esm2015/lib/services/find-person/find-person.service.js +0 -214
- package/esm2015/lib/services/google-analytics/google-analytics.service.js +0 -123
- package/esm2015/lib/services/google-tag-manager/google-tag-manager.service.js +0 -125
- package/esm2015/lib/services/index.js +0 -7
- package/esm2015/lib/services/loading/loading.service.js +0 -78
- package/esm2015/lib/services/locations/location.service.js +0 -57
- package/esm2015/lib/services/manage-session/manage-session.services.js +0 -105
- package/esm2015/lib/services/public-api.js +0 -25
- package/esm2015/lib/services/role-guard/role.guard.js +0 -78
- package/esm2015/lib/services/role-guard/role.service.js +0 -39
- package/esm2015/lib/services/session-storage/session-storage.service.js +0 -55
- package/esm2015/lib/services/timeout-notifications/timeout-notifications.service.js +0 -158
- package/esm2015/lib/window.js +0 -13
- package/esm2015/public-api.js +0 -16
- package/esm5/hmcts-rpx-xui-common-lib.js +0 -73
- package/esm5/lib/components/accessibility/accessibility.component.js +0 -22
- package/esm5/lib/components/checkbox-list/checkbox-list.component.js +0 -391
- package/esm5/lib/components/contact-details/contact-details.component.js +0 -29
- package/esm5/lib/components/cookie-banner/cookie-banner.component.js +0 -154
- package/esm5/lib/components/due-date/due-date.component.js +0 -254
- package/esm5/lib/components/exui-main-wrapper/exui-page-wrapper.component.js +0 -45
- package/esm5/lib/components/find-location/find-location.component.js +0 -293
- package/esm5/lib/components/find-person/find-person.component.js +0 -286
- package/esm5/lib/components/generic-filter/generic-filter-utils.js +0 -66
- package/esm5/lib/components/generic-filter/generic-filter.component.js +0 -839
- package/esm5/lib/components/hmcts-session-dialog/hmcts-session-dialog.component.js +0 -47
- package/esm5/lib/components/index.js +0 -7
- package/esm5/lib/components/invite-user-form/invite-user-form.component.js +0 -54
- package/esm5/lib/components/invite-user-permissions/invite-user-permission.component.js +0 -46
- package/esm5/lib/components/loading-spinner/loading-spinner.component.js +0 -29
- package/esm5/lib/components/pagination/pagination.component.js +0 -58
- package/esm5/lib/components/public_api.js +0 -33
- package/esm5/lib/components/search-judicials/search-judicials.component.js +0 -291
- package/esm5/lib/components/search-location/search-location.component.js +0 -330
- package/esm5/lib/components/search-venue/search-venue.component.js +0 -290
- package/esm5/lib/components/selected-case/selected-case.component.js +0 -430
- package/esm5/lib/components/selected-case-confirm/selected-case-confirm.component.js +0 -84
- package/esm5/lib/components/selected-case-list/selected-case-list.component.js +0 -109
- package/esm5/lib/components/service-message/service-message.component.js +0 -46
- package/esm5/lib/components/service-messages/service-messages.component.js +0 -122
- package/esm5/lib/components/share-case/share-case.component.js +0 -223
- package/esm5/lib/components/share-case-confirm/share-case-confirm.component.js +0 -70
- package/esm5/lib/components/tab/tab.component.js +0 -51
- package/esm5/lib/components/tc-confirm/tc-confirm.component.js +0 -42
- package/esm5/lib/components/terms-and-conditions/tc-display/tc-display-html/tc-display-html.component.js +0 -22
- package/esm5/lib/components/terms-and-conditions/tc-display/tc-display-plain/tc-display-plain.component.js +0 -22
- package/esm5/lib/components/terms-and-conditions/terms-and-conditions.component.js +0 -29
- package/esm5/lib/components/user-details/user-details.component.js +0 -92
- package/esm5/lib/components/user-list/user-list.component.js +0 -76
- package/esm5/lib/components/user-select/user-select.component.js +0 -131
- package/esm5/lib/directives/feature-toggle/feature-toggle.directive.js +0 -104
- package/esm5/lib/directives/index.js +0 -7
- package/esm5/lib/directives/let/let.directive.js +0 -78
- package/esm5/lib/directives/public-api.js +0 -8
- package/esm5/lib/exui-common-lib.module.js +0 -162
- package/esm5/lib/gov-ui/components/gov-uk-checkbox/gov-uk-checkbox.component.js +0 -56
- package/esm5/lib/gov-ui/components/gov-uk-checkboxes/gov-uk-checkboxes.component.js +0 -36
- package/esm5/lib/gov-ui/components/gov-uk-date/gov-uk-date.component.js +0 -135
- package/esm5/lib/gov-ui/components/gov-uk-error-message/gov-uk-error-message.component.js +0 -37
- package/esm5/lib/gov-ui/components/gov-uk-fieldset/gov-uk-fieldset.component.js +0 -49
- package/esm5/lib/gov-ui/components/gov-uk-file-upload/gov-uk-file-upload.component.js +0 -65
- package/esm5/lib/gov-ui/components/gov-uk-form-group-wrapper/gov-uk-form-group-wrapper.component.js +0 -40
- package/esm5/lib/gov-ui/components/gov-uk-input/gov-uk-input.component.js +0 -66
- package/esm5/lib/gov-ui/components/gov-uk-label/gov-uk-label.component.js +0 -34
- package/esm5/lib/gov-ui/components/gov-uk-radio/gov-uk-radio.component.js +0 -67
- package/esm5/lib/gov-ui/components/gov-uk-radios/gov-uk-radios.component.js +0 -36
- package/esm5/lib/gov-ui/components/gov-uk-select/gov-uk-select.component.js +0 -52
- package/esm5/lib/gov-ui/components/gov-uk-table/gov-uk-table.component.js +0 -77
- package/esm5/lib/gov-ui/components/gov-uk-textarea/gov-uk-textarea.component.js +0 -50
- package/esm5/lib/gov-ui/components/hmcts-banner/hmcts-banner.component.js +0 -38
- package/esm5/lib/gov-ui/components/hmcts-error-summary/hmcts-error-summary.component.js +0 -108
- package/esm5/lib/gov-ui/components/hmcts-identity-bar/hmcts-identity-bar.component.js +0 -40
- package/esm5/lib/gov-ui/components/hmcts-main-wrapper/hmcts-main-wrapper.component.js +0 -87
- package/esm5/lib/gov-ui/components/hmcts-pagination/hmcts-pagination.component.js +0 -51
- package/esm5/lib/gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component.js +0 -49
- package/esm5/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.js +0 -46
- package/esm5/lib/gov-ui/components/index.js +0 -7
- package/esm5/lib/gov-ui/components/public_api.js +0 -7
- package/esm5/lib/gov-ui/directives/remove-host.directive.js +0 -52
- package/esm5/lib/gov-ui/gov-ui.service.js +0 -22
- package/esm5/lib/gov-ui/index.js +0 -7
- package/esm5/lib/gov-ui/models/banner-data-model.js +0 -16
- package/esm5/lib/gov-ui/models/checkboxes-model.js +0 -22
- package/esm5/lib/gov-ui/models/error-messages-model.js +0 -16
- package/esm5/lib/gov-ui/models/gov-ui-config-model.js +0 -36
- package/esm5/lib/gov-ui/models/index.js +0 -7
- package/esm5/lib/gov-ui/models/isession-storage.interface.js +0 -24
- package/esm5/lib/gov-ui/models/public_api.js +0 -13
- package/esm5/lib/gov-ui/public_api.js +0 -12
- package/esm5/lib/gov-ui/util/helpers/html-templates.helper.js +0 -57
- package/esm5/lib/gov-ui/util/session-storage/session-storage-utils.js +0 -58
- package/esm5/lib/gov-ui/validators/checkboxes-be-checked.validator.js +0 -38
- package/esm5/lib/gov-ui/validators/date.validator.js +0 -32
- package/esm5/lib/gov-ui/validators/index.js +0 -7
- package/esm5/lib/gov-ui/validators/public_api.js +0 -12
- package/esm5/lib/gov-ui/validators/radio-group.validator.js +0 -27
- package/esm5/lib/models/case-share.model.js +0 -26
- package/esm5/lib/models/contact-details.model.js +0 -31
- package/esm5/lib/models/due-date.model.js +0 -15
- package/esm5/lib/models/feature-user.js +0 -28
- package/esm5/lib/models/filter.model.js +0 -124
- package/esm5/lib/models/idle-config.model.js +0 -20
- package/esm5/lib/models/index.js +0 -20
- package/esm5/lib/models/location.model.js +0 -129
- package/esm5/lib/models/pagination.model.js +0 -18
- package/esm5/lib/models/person.model.js +0 -92
- package/esm5/lib/models/public_api.js +0 -11
- package/esm5/lib/models/search-options.model.js +0 -22
- package/esm5/lib/models/tcDocument.model.js +0 -18
- package/esm5/lib/models/timeout-notification.model.js +0 -18
- package/esm5/lib/models/user-details.model.js +0 -22
- package/esm5/lib/models/user.model.js +0 -25
- package/esm5/lib/services/case-sharing-state/case-sharing-state.service.js +0 -289
- package/esm5/lib/services/cookie/cookie.service.js +0 -136
- package/esm5/lib/services/feature-toggle/feature-toggle.guard.js +0 -89
- package/esm5/lib/services/feature-toggle/feature-toggle.service.js +0 -90
- package/esm5/lib/services/feature-toggle/launch-darkly.service.js +0 -187
- package/esm5/lib/services/filter/filter.service.js +0 -153
- package/esm5/lib/services/find-person/find-person.service.js +0 -238
- package/esm5/lib/services/google-analytics/google-analytics.service.js +0 -128
- package/esm5/lib/services/google-tag-manager/google-tag-manager.service.js +0 -135
- package/esm5/lib/services/index.js +0 -7
- package/esm5/lib/services/loading/loading.service.js +0 -109
- package/esm5/lib/services/locations/location.service.js +0 -86
- package/esm5/lib/services/manage-session/manage-session.services.js +0 -111
- package/esm5/lib/services/public-api.js +0 -25
- package/esm5/lib/services/role-guard/role.guard.js +0 -81
- package/esm5/lib/services/role-guard/role.service.js +0 -45
- package/esm5/lib/services/session-storage/session-storage.service.js +0 -96
- package/esm5/lib/services/timeout-notifications/timeout-notifications.service.js +0 -190
- package/esm5/lib/window.js +0 -13
- package/esm5/public-api.js +0 -16
- package/fesm2015/hmcts-rpx-xui-common-lib.js +0 -7973
- package/fesm2015/hmcts-rpx-xui-common-lib.js.map +0 -1
- package/fesm5/hmcts-rpx-xui-common-lib.js +0 -9423
- package/fesm5/hmcts-rpx-xui-common-lib.js.map +0 -1
- package/hmcts-rpx-xui-common-lib.d.ts +0 -67
- package/hmcts-rpx-xui-common-lib.metadata.json +0 -1
- package/lib/gov-ui/models/banner-data-model.d.ts +0 -4
- package/lib/gov-ui/models/isession-storage.interface.d.ts +0 -4
- package/lib/gov-ui/util/session-storage/session-storage-utils.d.ts +0 -6
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* Generated from: lib/components/cookie-banner/cookie-banner.component.ts
|
|
4
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5
|
-
*/
|
|
6
|
-
import { Component, EventEmitter, Inject, Input, Output } from '@angular/core';
|
|
7
|
-
import { CookieService } from '../../services/cookie/cookie.service';
|
|
8
|
-
import { windowToken } from '../../window';
|
|
9
|
-
var CookieBannerComponent = /** @class */ (function () {
|
|
10
|
-
function CookieBannerComponent(cookieService, window) {
|
|
11
|
-
this.cookieService = cookieService;
|
|
12
|
-
this.rejectionNotifier = new EventEmitter();
|
|
13
|
-
this.acceptanceNotifier = new EventEmitter();
|
|
14
|
-
this.isCookieBannerVisible = false;
|
|
15
|
-
this.window = (/** @type {?} */ (window));
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @return {?}
|
|
19
|
-
*/
|
|
20
|
-
CookieBannerComponent.prototype.ngOnInit = /**
|
|
21
|
-
* @return {?}
|
|
22
|
-
*/
|
|
23
|
-
function () {
|
|
24
|
-
this.setState();
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* @return {?}
|
|
28
|
-
*/
|
|
29
|
-
CookieBannerComponent.prototype.acceptCookie = /**
|
|
30
|
-
* @return {?}
|
|
31
|
-
*/
|
|
32
|
-
function () {
|
|
33
|
-
this.cookieService.setCookie(this.identifier, 'true', this.getExpiryDate());
|
|
34
|
-
this.setState(true);
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* @return {?}
|
|
38
|
-
*/
|
|
39
|
-
CookieBannerComponent.prototype.rejectCookie = /**
|
|
40
|
-
* @return {?}
|
|
41
|
-
*/
|
|
42
|
-
function () {
|
|
43
|
-
this.cookieService.setCookie(this.identifier, 'false', this.getExpiryDate());
|
|
44
|
-
this.setState(true);
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* @param {?=} reload
|
|
48
|
-
* @return {?}
|
|
49
|
-
*/
|
|
50
|
-
CookieBannerComponent.prototype.setState = /**
|
|
51
|
-
* @param {?=} reload
|
|
52
|
-
* @return {?}
|
|
53
|
-
*/
|
|
54
|
-
function (reload) {
|
|
55
|
-
if (reload === void 0) { reload = false; }
|
|
56
|
-
this.isCookieBannerVisible = !this.cookieService.checkCookie(this.identifier);
|
|
57
|
-
if (this.areCookiesAccepted()) {
|
|
58
|
-
this.notifyAcceptance();
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
this.notifyRejection();
|
|
62
|
-
}
|
|
63
|
-
if (reload) { // reload if any of the buttons are pressed
|
|
64
|
-
this.window.location.reload();
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
/**
|
|
68
|
-
* @return {?}
|
|
69
|
-
*/
|
|
70
|
-
CookieBannerComponent.prototype.areCookiesAccepted = /**
|
|
71
|
-
* @return {?}
|
|
72
|
-
*/
|
|
73
|
-
function () {
|
|
74
|
-
return this.cookieService.checkCookie(this.identifier) && this.cookieService.getCookie(this.identifier) === 'true';
|
|
75
|
-
};
|
|
76
|
-
/**
|
|
77
|
-
* @return {?}
|
|
78
|
-
*/
|
|
79
|
-
CookieBannerComponent.prototype.notifyRejection = /**
|
|
80
|
-
* @return {?}
|
|
81
|
-
*/
|
|
82
|
-
function () {
|
|
83
|
-
this.rejectionNotifier.emit();
|
|
84
|
-
};
|
|
85
|
-
/**
|
|
86
|
-
* @return {?}
|
|
87
|
-
*/
|
|
88
|
-
CookieBannerComponent.prototype.notifyAcceptance = /**
|
|
89
|
-
* @return {?}
|
|
90
|
-
*/
|
|
91
|
-
function () {
|
|
92
|
-
this.acceptanceNotifier.emit();
|
|
93
|
-
};
|
|
94
|
-
/**
|
|
95
|
-
* @private
|
|
96
|
-
* @return {?}
|
|
97
|
-
*/
|
|
98
|
-
CookieBannerComponent.prototype.getExpiryDate = /**
|
|
99
|
-
* @private
|
|
100
|
-
* @return {?}
|
|
101
|
-
*/
|
|
102
|
-
function () {
|
|
103
|
-
/** @type {?} */
|
|
104
|
-
var now = new Date();
|
|
105
|
-
/** @type {?} */
|
|
106
|
-
var time = now.getTime();
|
|
107
|
-
/** @type {?} */
|
|
108
|
-
var expireTime = time + 31536000000;
|
|
109
|
-
now.setTime(expireTime);
|
|
110
|
-
return now.toUTCString();
|
|
111
|
-
};
|
|
112
|
-
CookieBannerComponent.decorators = [
|
|
113
|
-
{ type: Component, args: [{
|
|
114
|
-
selector: 'xuilib-cookie-banner',
|
|
115
|
-
template: "<div class=\"govuk-cookie-banner \" role=\"region\" attr.aria-label=\"'Cookies on {{appName}}'\" *ngIf=\"isCookieBannerVisible\">\n <div class=\"govuk-cookie-banner__message govuk-width-container\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <h2 class=\"govuk-cookie-banner__heading govuk-heading-m\">Cookies on {{appName}}</h2>\n\n <div class=\"govuk-cookie-banner__content\">\n <p>We use some essential cookies to make this service work.</p>\n <p>We\u2019d also like to use analytics cookies so we can understand how you use the service and make improvements.</p>\n </div>\n </div>\n </div>\n\n <div class=\"govuk-button-group\">\n <button value=\"accept\" type=\"button\" name=\"cookies\" class=\"govuk-button\" data-module=\"govuk-button\" (click)=\"acceptCookie()\">\n Accept analytics cookies\n </button>\n <button value=\"reject\" type=\"button\" name=\"cookies\" class=\"govuk-button\" data-module=\"govuk-button\" (click)=\"rejectCookie()\">\n Reject analytics cookies\n </button>\n <a class=\"govuk-link\" routerLink=\"/cookies\">View cookies</a>\n </div>\n </div>\n</div>"
|
|
116
|
-
}] }
|
|
117
|
-
];
|
|
118
|
-
/** @nocollapse */
|
|
119
|
-
CookieBannerComponent.ctorParameters = function () { return [
|
|
120
|
-
{ type: CookieService },
|
|
121
|
-
{ type: undefined, decorators: [{ type: Inject, args: [windowToken,] }] }
|
|
122
|
-
]; };
|
|
123
|
-
CookieBannerComponent.propDecorators = {
|
|
124
|
-
identifier: [{ type: Input }],
|
|
125
|
-
appName: [{ type: Input }],
|
|
126
|
-
rejectionNotifier: [{ type: Output }],
|
|
127
|
-
acceptanceNotifier: [{ type: Output }]
|
|
128
|
-
};
|
|
129
|
-
return CookieBannerComponent;
|
|
130
|
-
}());
|
|
131
|
-
export { CookieBannerComponent };
|
|
132
|
-
if (false) {
|
|
133
|
-
/** @type {?} */
|
|
134
|
-
CookieBannerComponent.prototype.identifier;
|
|
135
|
-
/** @type {?} */
|
|
136
|
-
CookieBannerComponent.prototype.appName;
|
|
137
|
-
/** @type {?} */
|
|
138
|
-
CookieBannerComponent.prototype.rejectionNotifier;
|
|
139
|
-
/** @type {?} */
|
|
140
|
-
CookieBannerComponent.prototype.acceptanceNotifier;
|
|
141
|
-
/** @type {?} */
|
|
142
|
-
CookieBannerComponent.prototype.isCookieBannerVisible;
|
|
143
|
-
/**
|
|
144
|
-
* @type {?}
|
|
145
|
-
* @private
|
|
146
|
-
*/
|
|
147
|
-
CookieBannerComponent.prototype.window;
|
|
148
|
-
/**
|
|
149
|
-
* @type {?}
|
|
150
|
-
* @private
|
|
151
|
-
*/
|
|
152
|
-
CookieBannerComponent.prototype.cookieService;
|
|
153
|
-
}
|
|
154
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29va2llLWJhbm5lci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaG1jdHMvcnB4LXh1aS1jb21tb24tbGliLyIsInNvdXJjZXMiOlsibGliL2NvbXB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biAgICBjb25zdCB0aW1lID0gbm93LmdldFRpbWUoKTtcbiAgICBjb25zdCBleHBpcmVUaW1lID0gdGltZSArIDMxNTM2MDAwMDAwOyAgLy8gIGluIDM2NSBkYXlzID0gMzYwMCAqIDEwMDAgKiAyNCAqIDM2NVxuICAgIG5vdy5zZXRUaW1lKGV4cGlyZVRpbWUpO1xuICAgIHJldHVybiBub3cudG9VVENTdHJpbmcoKTtcbiAgfVxuXG59XG4iXX0=
|
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* Generated from: lib/components/due-date/due-date.component.ts
|
|
4
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5
|
-
*/
|
|
6
|
-
import { formatDate } from '@angular/common';
|
|
7
|
-
import { Component, Input, ViewEncapsulation } from '@angular/core';
|
|
8
|
-
import { DateBadgeColour, SECONDS_IN_A_DAY } from '../../models/due-date.model';
|
|
9
|
-
var DueDateComponent = /** @class */ (function () {
|
|
10
|
-
function DueDateComponent() {
|
|
11
|
-
/**
|
|
12
|
-
* This should be considered HIGH urgency if there are fewer than this
|
|
13
|
-
* many days until the due date.
|
|
14
|
-
* * Set to 0 if you want it to show HIGH if it was due yesterday.
|
|
15
|
-
* * Set to 1 if you want it to show HIGH if it's due today.
|
|
16
|
-
* * Set to 2 if you want it to show HIGH if it's due tomorrow.
|
|
17
|
-
*
|
|
18
|
-
* Defaults to 0 (ZERO), which means it won't show as HIGH urgency until the
|
|
19
|
-
* due date is in the past.
|
|
20
|
-
*
|
|
21
|
-
* NOTE: If this is higher than the mediumUrgencyCutoff value, MEDIUM urgency
|
|
22
|
-
* will never be shown.
|
|
23
|
-
*
|
|
24
|
-
* ALSO NOTE: Anything overdue is automatically considered HIGH urgency.
|
|
25
|
-
*/
|
|
26
|
-
this.highUrgencyCutoff = 0; // Default
|
|
27
|
-
// Default
|
|
28
|
-
/**
|
|
29
|
-
* This should be considered MEDIUM urgency if there are fewer than this
|
|
30
|
-
* many days until the due date.
|
|
31
|
-
* * Set to 1 if you want it to show MEDIUM if it's due today.
|
|
32
|
-
* * Set to 2 if you want it to show MEDIUM if it's due tomorrow.
|
|
33
|
-
* * Set to 3 if you want it to show MEDIUM if it's due the day after tomorrow.
|
|
34
|
-
*
|
|
35
|
-
* Defaults to 2, which means it won't show as MEDIUM urgency unless the
|
|
36
|
-
* due date is today or tomorrow.
|
|
37
|
-
*
|
|
38
|
-
* NOTE: If this is lower than the highUrgencyCutoff value, MEDIUM urgency
|
|
39
|
-
* will never be shown.
|
|
40
|
-
*/
|
|
41
|
-
this.mediumUrgencyCutoff = 2;
|
|
42
|
-
}
|
|
43
|
-
Object.defineProperty(DueDateComponent.prototype, "badge", {
|
|
44
|
-
get: /**
|
|
45
|
-
* @return {?}
|
|
46
|
-
*/
|
|
47
|
-
function () {
|
|
48
|
-
return this.pBadge;
|
|
49
|
-
},
|
|
50
|
-
enumerable: true,
|
|
51
|
-
configurable: true
|
|
52
|
-
});
|
|
53
|
-
Object.defineProperty(DueDateComponent.prototype, "label", {
|
|
54
|
-
get: /**
|
|
55
|
-
* @return {?}
|
|
56
|
-
*/
|
|
57
|
-
function () {
|
|
58
|
-
return this.pLabel;
|
|
59
|
-
},
|
|
60
|
-
enumerable: true,
|
|
61
|
-
configurable: true
|
|
62
|
-
});
|
|
63
|
-
Object.defineProperty(DueDateComponent.prototype, "accessibleLabel", {
|
|
64
|
-
get: /**
|
|
65
|
-
* @return {?}
|
|
66
|
-
*/
|
|
67
|
-
function () {
|
|
68
|
-
return this.pAccessibleLabel;
|
|
69
|
-
},
|
|
70
|
-
enumerable: true,
|
|
71
|
-
configurable: true
|
|
72
|
-
});
|
|
73
|
-
Object.defineProperty(DueDateComponent.prototype, "daysDiff", {
|
|
74
|
-
get: /**
|
|
75
|
-
* @return {?}
|
|
76
|
-
*/
|
|
77
|
-
function () {
|
|
78
|
-
return this.pDaysDiff;
|
|
79
|
-
},
|
|
80
|
-
enumerable: true,
|
|
81
|
-
configurable: true
|
|
82
|
-
});
|
|
83
|
-
// Catch any changes to any of the Input() properties.
|
|
84
|
-
// Catch any changes to any of the Input() properties.
|
|
85
|
-
/**
|
|
86
|
-
* @return {?}
|
|
87
|
-
*/
|
|
88
|
-
DueDateComponent.prototype.ngOnChanges =
|
|
89
|
-
// Catch any changes to any of the Input() properties.
|
|
90
|
-
/**
|
|
91
|
-
* @return {?}
|
|
92
|
-
*/
|
|
93
|
-
function () {
|
|
94
|
-
this.handleInputChanges();
|
|
95
|
-
};
|
|
96
|
-
// Set up the label, urgency class, and accessibility fields.
|
|
97
|
-
// Set up the label, urgency class, and accessibility fields.
|
|
98
|
-
/**
|
|
99
|
-
* @private
|
|
100
|
-
* @return {?}
|
|
101
|
-
*/
|
|
102
|
-
DueDateComponent.prototype.handleInputChanges =
|
|
103
|
-
// Set up the label, urgency class, and accessibility fields.
|
|
104
|
-
/**
|
|
105
|
-
* @private
|
|
106
|
-
* @return {?}
|
|
107
|
-
*/
|
|
108
|
-
function () {
|
|
109
|
-
// If we don't have a dueDate, skip out of here.
|
|
110
|
-
if (!this.dueDate) {
|
|
111
|
-
return;
|
|
112
|
-
}
|
|
113
|
-
// How many days from today is the due date?
|
|
114
|
-
// Already happened means daysDiff > 0;
|
|
115
|
-
// Today means daysDiff = 0;
|
|
116
|
-
// Yet to come means daysDiff < 0;
|
|
117
|
-
this.pDaysDiff = this.getDaysDifference(this.dueDate, new Date());
|
|
118
|
-
// Is it overdue?
|
|
119
|
-
if (this.daysDiff > 0) {
|
|
120
|
-
this.pBadge = DateBadgeColour.RED;
|
|
121
|
-
/** @type {?} */
|
|
122
|
-
var daysLabel = this.daysDiff === 1 ? 'day' : 'days';
|
|
123
|
-
this.pLabel = "+" + this.daysDiff + " " + daysLabel;
|
|
124
|
-
this.pAccessibleLabel = "This task is " + this.daysDiff + " " + daysLabel + " past its due date";
|
|
125
|
-
}
|
|
126
|
-
else {
|
|
127
|
-
// Special label for "Today".
|
|
128
|
-
if (this.daysDiff === 0) {
|
|
129
|
-
this.pLabel = 'TODAY';
|
|
130
|
-
this.pAccessibleLabel = 'This task is due to be completed today';
|
|
131
|
-
}
|
|
132
|
-
else {
|
|
133
|
-
this.pLabel = "" + formatDate(this.dueDate, 'd MMM', 'en-GB');
|
|
134
|
-
this.pAccessibleLabel = "This task is due to be completed by " + formatDate(this.dueDate, 'd MMMM y', 'en-GB');
|
|
135
|
-
}
|
|
136
|
-
if (this.daysDiff + this.highUrgencyCutoff > 0) {
|
|
137
|
-
this.pBadge = DateBadgeColour.RED;
|
|
138
|
-
}
|
|
139
|
-
else if (this.daysDiff + this.mediumUrgencyCutoff > 0) {
|
|
140
|
-
this.pBadge = DateBadgeColour.ORANGE;
|
|
141
|
-
}
|
|
142
|
-
else {
|
|
143
|
-
this.pBadge = DateBadgeColour.GREEN;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
|
-
// This will return the difference between two dates.
|
|
148
|
-
// If fromDate is BEFORE toDate, it will be a positive number.
|
|
149
|
-
// If fromDate is AFTER toDate, it will be a negative number.
|
|
150
|
-
// This will return the difference between two dates.
|
|
151
|
-
// If fromDate is BEFORE toDate, it will be a positive number.
|
|
152
|
-
// If fromDate is AFTER toDate, it will be a negative number.
|
|
153
|
-
/**
|
|
154
|
-
* @private
|
|
155
|
-
* @param {?} fromDate
|
|
156
|
-
* @param {?} toDate
|
|
157
|
-
* @return {?}
|
|
158
|
-
*/
|
|
159
|
-
DueDateComponent.prototype.getDaysDifference =
|
|
160
|
-
// This will return the difference between two dates.
|
|
161
|
-
// If fromDate is BEFORE toDate, it will be a positive number.
|
|
162
|
-
// If fromDate is AFTER toDate, it will be a negative number.
|
|
163
|
-
/**
|
|
164
|
-
* @private
|
|
165
|
-
* @param {?} fromDate
|
|
166
|
-
* @param {?} toDate
|
|
167
|
-
* @return {?}
|
|
168
|
-
*/
|
|
169
|
-
function (fromDate, toDate) {
|
|
170
|
-
/** @type {?} */
|
|
171
|
-
var fromEpoch = fromDate.getTime();
|
|
172
|
-
/** @type {?} */
|
|
173
|
-
var toEpoch = toDate.getTime();
|
|
174
|
-
/** @type {?} */
|
|
175
|
-
var diffSecs = Math.floor((toEpoch - fromEpoch) / 1000);
|
|
176
|
-
return Math.floor(diffSecs / SECONDS_IN_A_DAY);
|
|
177
|
-
};
|
|
178
|
-
DueDateComponent.decorators = [
|
|
179
|
-
{ type: Component, args: [{
|
|
180
|
-
selector: 'xuilib-due-date',
|
|
181
|
-
template: "<span *ngIf=\"dueDate\" class=\"due-date hmcts-badge\" [ngClass]=\"badge\"\n [title]=\"accessibleLabel\" [attr.aria-label]=\"accessibleLabel\">\n {{label}}\n</span>",
|
|
182
|
-
encapsulation: ViewEncapsulation.None,
|
|
183
|
-
styles: [".due-date{white-space:nowrap}.due-date.hmcts-badge--orange{color:#f47738;border-color:#f47738}"]
|
|
184
|
-
}] }
|
|
185
|
-
];
|
|
186
|
-
DueDateComponent.propDecorators = {
|
|
187
|
-
dueDate: [{ type: Input }],
|
|
188
|
-
highUrgencyCutoff: [{ type: Input }],
|
|
189
|
-
mediumUrgencyCutoff: [{ type: Input }]
|
|
190
|
-
};
|
|
191
|
-
return DueDateComponent;
|
|
192
|
-
}());
|
|
193
|
-
export { DueDateComponent };
|
|
194
|
-
if (false) {
|
|
195
|
-
/**
|
|
196
|
-
* The due date to use as the basis for rendering this component. It is
|
|
197
|
-
* compared to the current date and displayed accordingly.
|
|
198
|
-
* @type {?}
|
|
199
|
-
*/
|
|
200
|
-
DueDateComponent.prototype.dueDate;
|
|
201
|
-
/**
|
|
202
|
-
* This should be considered HIGH urgency if there are fewer than this
|
|
203
|
-
* many days until the due date.
|
|
204
|
-
* * Set to 0 if you want it to show HIGH if it was due yesterday.
|
|
205
|
-
* * Set to 1 if you want it to show HIGH if it's due today.
|
|
206
|
-
* * Set to 2 if you want it to show HIGH if it's due tomorrow.
|
|
207
|
-
*
|
|
208
|
-
* Defaults to 0 (ZERO), which means it won't show as HIGH urgency until the
|
|
209
|
-
* due date is in the past.
|
|
210
|
-
*
|
|
211
|
-
* NOTE: If this is higher than the mediumUrgencyCutoff value, MEDIUM urgency
|
|
212
|
-
* will never be shown.
|
|
213
|
-
*
|
|
214
|
-
* ALSO NOTE: Anything overdue is automatically considered HIGH urgency.
|
|
215
|
-
* @type {?}
|
|
216
|
-
*/
|
|
217
|
-
DueDateComponent.prototype.highUrgencyCutoff;
|
|
218
|
-
/**
|
|
219
|
-
* This should be considered MEDIUM urgency if there are fewer than this
|
|
220
|
-
* many days until the due date.
|
|
221
|
-
* * Set to 1 if you want it to show MEDIUM if it's due today.
|
|
222
|
-
* * Set to 2 if you want it to show MEDIUM if it's due tomorrow.
|
|
223
|
-
* * Set to 3 if you want it to show MEDIUM if it's due the day after tomorrow.
|
|
224
|
-
*
|
|
225
|
-
* Defaults to 2, which means it won't show as MEDIUM urgency unless the
|
|
226
|
-
* due date is today or tomorrow.
|
|
227
|
-
*
|
|
228
|
-
* NOTE: If this is lower than the highUrgencyCutoff value, MEDIUM urgency
|
|
229
|
-
* will never be shown.
|
|
230
|
-
* @type {?}
|
|
231
|
-
*/
|
|
232
|
-
DueDateComponent.prototype.mediumUrgencyCutoff;
|
|
233
|
-
/**
|
|
234
|
-
* @type {?}
|
|
235
|
-
* @private
|
|
236
|
-
*/
|
|
237
|
-
DueDateComponent.prototype.pBadge;
|
|
238
|
-
/**
|
|
239
|
-
* @type {?}
|
|
240
|
-
* @private
|
|
241
|
-
*/
|
|
242
|
-
DueDateComponent.prototype.pLabel;
|
|
243
|
-
/**
|
|
244
|
-
* @type {?}
|
|
245
|
-
* @private
|
|
246
|
-
*/
|
|
247
|
-
DueDateComponent.prototype.pAccessibleLabel;
|
|
248
|
-
/**
|
|
249
|
-
* @type {?}
|
|
250
|
-
* @private
|
|
251
|
-
*/
|
|
252
|
-
DueDateComponent.prototype.pDaysDiff;
|
|
253
|
-
}
|
|
254
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6IERhdGUsIHRvRGF0ZTogRGF0ZSk6IG51bWJlciB7XG4gICAgY29uc3QgZnJvbUVwb2NoID0gZnJvbURhdGUuZ2V0VGltZSgpO1xuICAgIGNvbnN0IHRvRXBvY2ggPSB0b0RhdGUuZ2V0VGltZSgpO1xuICAgIGNvbnN0IGRpZmZTZWNzID0gTWF0aC5mbG9vcigodG9FcG9jaCAtIGZyb21FcG9jaCkgLyAxMDAwKTtcbiAgICByZXR1cm4gTWF0aC5mbG9vcihkaWZmU2VjcyAvIFNFQ09ORFNfSU5fQV9EQVkpO1xuICB9XG59XG4iXX0=
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* Generated from: lib/components/exui-main-wrapper/exui-page-wrapper.component.ts
|
|
4
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5
|
-
*/
|
|
6
|
-
import { Component, Input } from '@angular/core';
|
|
7
|
-
/**
|
|
8
|
-
* Main Page Wrapper
|
|
9
|
-
* Responsible for:
|
|
10
|
-
* Wrapping content within the gov-uk html elements bellow
|
|
11
|
-
* \@prop showBackLink - switch for back link
|
|
12
|
-
* \@prop appHeaderTitle = appHeaderTitle
|
|
13
|
-
* \@prop appFunctionalTitle = appFunctionalTitle
|
|
14
|
-
* \@prop summaryErrors list of errors
|
|
15
|
-
* \@prop back link, appHeaderTitle (appHeaderTitle), summaryErrors (array of errors)
|
|
16
|
-
*/
|
|
17
|
-
var ExuiPageWrapperComponent = /** @class */ (function () {
|
|
18
|
-
function ExuiPageWrapperComponent() {
|
|
19
|
-
}
|
|
20
|
-
ExuiPageWrapperComponent.decorators = [
|
|
21
|
-
{ type: Component, args: [{
|
|
22
|
-
selector: 'exui-page-wrapper',
|
|
23
|
-
template: "<div class=\"page\">\n <a *ngIf=\"backLink\" [routerLink]=\"backLink\" class=\"govuk-back-link\">Back</a>\n <div class=\"govuk-width-container\">\n <main id=\"content\" role=\"main\" class=\"govuk-main-wrapper\">\n <div class=\"govuk-grid-row\">\n <h1 *ngIf=\"title\" class=\"govuk-heading-xl\">\n <span *ngIf=\"fnTitle\" class=\"govuk-caption-xl\">{{fnTitle}}</span>\n {{title}}\n </h1>\n <ng-content>\n\n </ng-content>\n </div>\n </main>\n </div>\n</div>\n",
|
|
24
|
-
styles: [".page{width:100%}"]
|
|
25
|
-
}] }
|
|
26
|
-
];
|
|
27
|
-
/** @nocollapse */
|
|
28
|
-
ExuiPageWrapperComponent.ctorParameters = function () { return []; };
|
|
29
|
-
ExuiPageWrapperComponent.propDecorators = {
|
|
30
|
-
backLink: [{ type: Input }],
|
|
31
|
-
title: [{ type: Input }],
|
|
32
|
-
fnTitle: [{ type: Input }]
|
|
33
|
-
};
|
|
34
|
-
return ExuiPageWrapperComponent;
|
|
35
|
-
}());
|
|
36
|
-
export { ExuiPageWrapperComponent };
|
|
37
|
-
if (false) {
|
|
38
|
-
/** @type {?} */
|
|
39
|
-
ExuiPageWrapperComponent.prototype.backLink;
|
|
40
|
-
/** @type {?} */
|
|
41
|
-
ExuiPageWrapperComponent.prototype.title;
|
|
42
|
-
/** @type {?} */
|
|
43
|
-
ExuiPageWrapperComponent.prototype.fnTitle;
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXh1aS1wYWdlLXdyYXBwZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGhtY3RzL3JweC14dWktY29tbW9uLWxpYi8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnRzL2V4dWktbWFpbi13cmFwcGVyL2V4dWktcGFnZS13cmFwcGVyLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsS0FBSyxFQUFDLE1BQU0sZUFBZSxDQUFDOzs7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