@hmcts/rpx-xui-common-lib 1.8.0-angular-upgrade-9-rc.6 → 2.0.0-angular-upgrade-8
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/bundles/hmcts-rpx-xui-common-lib.umd.js +7435 -3173
- package/bundles/hmcts-rpx-xui-common-lib.umd.js.map +1 -1
- package/bundles/hmcts-rpx-xui-common-lib.umd.min.js +2 -2
- package/bundles/hmcts-rpx-xui-common-lib.umd.min.js.map +1 -1
- package/esm2015/hmcts-rpx-xui-common-lib.js +28 -22
- package/esm2015/lib/components/accessibility/accessibility.component.js +17 -13
- package/esm2015/lib/components/checkbox-list/checkbox-list.component.js +127 -45
- package/esm2015/lib/components/contact-details/contact-details.component.js +23 -16
- package/esm2015/lib/components/cookie-banner/cookie-banner.component.js +78 -31
- package/esm2015/lib/components/due-date/due-date.component.js +110 -24
- package/esm2015/lib/components/exui-main-wrapper/exui-page-wrapper.component.js +34 -29
- package/esm2015/lib/components/find-location/find-location.component.js +140 -69
- package/esm2015/lib/components/find-person/find-person.component.js +180 -97
- package/esm2015/lib/components/generic-filter/generic-filter-utils.js +55 -11
- package/esm2015/lib/components/generic-filter/generic-filter.component.js +293 -54
- package/esm2015/lib/components/hmcts-session-dialog/hmcts-session-dialog.component.js +29 -20
- package/esm2015/lib/components/index.js +7 -2
- package/esm2015/lib/components/invite-user-form/invite-user-form.component.js +33 -23
- package/esm2015/lib/components/invite-user-permissions/invite-user-permission.component.js +35 -34
- package/esm2015/lib/components/loading-spinner/loading-spinner.component.js +22 -16
- package/esm2015/lib/components/pagination/pagination.component.js +38 -28
- package/esm2015/lib/components/public_api.js +33 -33
- package/esm2015/lib/components/search-judicials/search-judicials.component.js +156 -70
- package/esm2015/lib/components/search-location/search-location.component.js +183 -80
- package/esm2015/lib/components/search-venue/search-venue.component.js +154 -62
- package/esm2015/lib/components/selected-case/selected-case.component.js +191 -54
- package/esm2015/lib/components/selected-case-confirm/selected-case-confirm.component.js +53 -22
- package/esm2015/lib/components/selected-case-list/selected-case-list.component.js +68 -38
- package/esm2015/lib/components/service-message/service-message.component.js +32 -23
- package/esm2015/lib/components/service-messages/service-messages.component.js +77 -29
- package/esm2015/lib/components/share-case/share-case.component.js +104 -45
- package/esm2015/lib/components/share-case-confirm/share-case-confirm.component.js +50 -27
- package/esm2015/lib/components/tab/tab.component.js +37 -19
- package/esm2015/lib/components/tc-confirm/tc-confirm.component.js +29 -20
- package/esm2015/lib/components/terms-and-conditions/tc-display/tc-display-html/tc-display-html.component.js +17 -13
- package/esm2015/lib/components/terms-and-conditions/tc-display/tc-display-plain/tc-display-plain.component.js +17 -13
- package/esm2015/lib/components/terms-and-conditions/terms-and-conditions.component.js +23 -16
- package/esm2015/lib/components/user-details/user-details.component.js +57 -47
- package/esm2015/lib/components/user-list/user-list.component.js +54 -19
- package/esm2015/lib/components/user-select/user-select.component.js +64 -23
- package/esm2015/lib/directives/feature-toggle/feature-toggle.directive.js +67 -21
- package/esm2015/lib/directives/index.js +7 -2
- package/esm2015/lib/directives/let/let.directive.js +49 -16
- package/esm2015/lib/directives/public-api.js +8 -3
- package/esm2015/lib/exui-common-lib.module.js +40 -31
- package/esm2015/lib/gov-ui/components/gov-uk-checkbox/gov-uk-checkbox.component.js +34 -23
- package/esm2015/lib/gov-ui/components/gov-uk-checkboxes/gov-uk-checkboxes.component.js +23 -18
- package/esm2015/lib/gov-ui/components/gov-uk-date/gov-uk-date.component.js +68 -30
- package/esm2015/lib/gov-ui/components/gov-uk-error-message/gov-uk-error-message.component.js +25 -19
- package/esm2015/lib/gov-ui/components/gov-uk-fieldset/gov-uk-fieldset.component.js +28 -19
- package/esm2015/lib/gov-ui/components/gov-uk-file-upload/gov-uk-file-upload.component.js +36 -23
- package/esm2015/lib/gov-ui/components/gov-uk-form-group-wrapper/gov-uk-form-group-wrapper.component.js +28 -23
- package/esm2015/lib/gov-ui/components/gov-uk-input/gov-uk-input.component.js +35 -24
- package/esm2015/lib/gov-ui/components/gov-uk-label/gov-uk-label.component.js +22 -15
- package/esm2015/lib/gov-ui/components/gov-uk-radio/gov-uk-radio.component.js +35 -23
- package/esm2015/lib/gov-ui/components/gov-uk-radios/gov-uk-radios.component.js +23 -18
- package/esm2015/lib/gov-ui/components/gov-uk-select/gov-uk-select.component.js +34 -27
- package/esm2015/lib/gov-ui/components/gov-uk-table/gov-uk-table.component.js +47 -32
- package/esm2015/lib/gov-ui/components/gov-uk-textarea/gov-uk-textarea.component.js +29 -22
- package/esm2015/lib/gov-ui/components/hmcts-banner/hmcts-banner.component.js +26 -20
- package/esm2015/lib/gov-ui/components/hmcts-error-summary/hmcts-error-summary.component.js +56 -26
- package/esm2015/lib/gov-ui/components/hmcts-identity-bar/hmcts-identity-bar.component.js +27 -17
- package/esm2015/lib/gov-ui/components/hmcts-main-wrapper/hmcts-main-wrapper.component.js +52 -40
- package/esm2015/lib/gov-ui/components/hmcts-pagination/hmcts-pagination.component.js +49 -0
- package/esm2015/lib/gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component.js +36 -29
- package/esm2015/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.js +40 -18
- package/esm2015/lib/gov-ui/components/index.js +7 -2
- package/esm2015/lib/gov-ui/components/public_api.js +7 -21
- package/esm2015/lib/gov-ui/directives/remove-host.directive.js +30 -12
- package/esm2015/lib/gov-ui/gov-ui.service.js +16 -12
- package/esm2015/lib/gov-ui/index.js +7 -2
- package/esm2015/lib/gov-ui/models/banner-data-model.js +16 -1
- package/esm2015/lib/gov-ui/models/checkboxes-model.js +22 -1
- package/esm2015/lib/gov-ui/models/error-messages-model.js +16 -1
- package/esm2015/lib/gov-ui/models/gov-ui-config-model.js +36 -1
- package/esm2015/lib/gov-ui/models/index.js +7 -1
- package/esm2015/lib/gov-ui/models/isession-storage.interface.js +24 -1
- package/esm2015/lib/gov-ui/models/public_api.js +10 -1
- package/esm2015/lib/gov-ui/public_api.js +9 -5
- package/esm2015/lib/gov-ui/util/helpers/html-templates.helper.js +14 -4
- package/esm2015/lib/gov-ui/util/session-storage/session-storage-utils.js +48 -12
- package/esm2015/lib/gov-ui/validators/checkboxes-be-checked.validator.js +24 -5
- package/esm2015/lib/gov-ui/validators/date.validator.js +20 -3
- package/esm2015/lib/gov-ui/validators/index.js +7 -2
- package/esm2015/lib/gov-ui/validators/public_api.js +9 -4
- package/esm2015/lib/gov-ui/validators/radio-group.validator.js +15 -3
- package/esm2015/lib/models/case-share.model.js +26 -1
- package/esm2015/lib/models/contact-details.model.js +31 -7
- package/esm2015/lib/models/due-date.model.js +14 -7
- package/esm2015/lib/models/feature-user.js +16 -1
- package/esm2015/lib/models/filter.model.js +116 -1
- package/esm2015/lib/models/idle-config.model.js +20 -1
- package/esm2015/lib/models/index.js +19 -6
- package/esm2015/lib/models/location.model.js +108 -1
- package/esm2015/lib/models/pagination.model.js +18 -0
- package/esm2015/lib/models/person.model.js +92 -17
- package/esm2015/lib/models/public_api.js +11 -4
- package/esm2015/lib/models/search-options.model.js +22 -1
- package/esm2015/lib/models/tcDocument.model.js +18 -1
- package/esm2015/lib/models/timeout-notification.model.js +18 -1
- package/esm2015/lib/models/user-details.model.js +22 -1
- package/esm2015/lib/models/user.model.js +25 -1
- package/esm2015/lib/services/case-sharing-state/case-sharing-state.service.js +92 -19
- package/esm2015/lib/services/cookie/cookie.service.js +78 -19
- package/esm2015/lib/services/feature-toggle/feature-toggle.guard.js +51 -16
- package/esm2015/lib/services/feature-toggle/feature-toggle.service.js +35 -11
- package/esm2015/lib/services/feature-toggle/launch-darkly.service.js +101 -21
- package/esm2015/lib/services/filter/filter.service.js +63 -11
- package/esm2015/lib/services/find-person/find-person.service.js +130 -25
- package/esm2015/lib/services/google-analytics/google-analytics.service.js +70 -21
- package/esm2015/lib/services/google-tag-manager/google-tag-manager.service.js +71 -23
- package/esm2015/lib/services/index.js +7 -2
- package/esm2015/lib/services/loading/loading.service.js +48 -11
- package/esm2015/lib/services/locations/location.service.js +35 -22
- package/esm2015/lib/services/manage-session/manage-session.services.js +70 -21
- package/esm2015/lib/services/public-api.js +18 -13
- package/esm2015/lib/services/role-guard/role.guard.js +61 -24
- package/esm2015/lib/services/role-guard/role.service.js +28 -11
- package/esm2015/lib/services/session-storage/session-storage.service.js +24 -12
- package/esm2015/lib/services/timeout-notifications/timeout-notifications.service.js +82 -20
- package/esm2015/lib/window.js +10 -1
- package/esm2015/public-api.js +13 -8
- package/esm5/hmcts-rpx-xui-common-lib.js +28 -22
- package/esm5/lib/components/accessibility/accessibility.component.js +15 -10
- package/esm5/lib/components/checkbox-list/checkbox-list.component.js +232 -57
- package/esm5/lib/components/contact-details/contact-details.component.js +22 -14
- package/esm5/lib/components/cookie-banner/cookie-banner.component.js +106 -36
- package/esm5/lib/components/due-date/due-date.component.js +142 -29
- package/esm5/lib/components/exui-main-wrapper/exui-page-wrapper.component.js +33 -27
- package/esm5/lib/components/find-location/find-location.component.js +180 -80
- package/esm5/lib/components/find-person/find-person.component.js +203 -102
- package/esm5/lib/components/generic-filter/generic-filter-utils.js +57 -13
- package/esm5/lib/components/generic-filter/generic-filter.component.js +421 -85
- package/esm5/lib/components/hmcts-session-dialog/hmcts-session-dialog.component.js +32 -19
- package/esm5/lib/components/index.js +7 -2
- package/esm5/lib/components/invite-user-form/invite-user-form.component.js +37 -23
- package/esm5/lib/components/invite-user-permissions/invite-user-permission.component.js +34 -32
- package/esm5/lib/components/loading-spinner/loading-spinner.component.js +21 -14
- package/esm5/lib/components/pagination/pagination.component.js +45 -28
- package/esm5/lib/components/public_api.js +33 -33
- package/esm5/lib/components/search-judicials/search-judicials.component.js +198 -78
- package/esm5/lib/components/search-location/search-location.component.js +217 -89
- package/esm5/lib/components/search-venue/search-venue.component.js +199 -71
- package/esm5/lib/components/selected-case/selected-case.component.js +279 -72
- package/esm5/lib/components/selected-case-confirm/selected-case-confirm.component.js +61 -22
- package/esm5/lib/components/selected-case-list/selected-case-list.component.js +82 -39
- package/esm5/lib/components/service-message/service-message.component.js +36 -22
- package/esm5/lib/components/service-messages/service-messages.component.js +91 -30
- package/esm5/lib/components/share-case/share-case.component.js +138 -52
- package/esm5/lib/components/share-case-confirm/share-case-confirm.component.js +49 -25
- package/esm5/lib/components/tab/tab.component.js +41 -18
- package/esm5/lib/components/tc-confirm/tc-confirm.component.js +32 -19
- package/esm5/lib/components/terms-and-conditions/tc-display/tc-display-html/tc-display-html.component.js +15 -10
- package/esm5/lib/components/terms-and-conditions/tc-display/tc-display-plain/tc-display-plain.component.js +15 -10
- package/esm5/lib/components/terms-and-conditions/terms-and-conditions.component.js +22 -14
- package/esm5/lib/components/user-details/user-details.component.js +71 -48
- package/esm5/lib/components/user-list/user-list.component.js +65 -18
- package/esm5/lib/components/user-select/user-select.component.js +92 -27
- package/esm5/lib/directives/feature-toggle/feature-toggle.directive.js +70 -21
- package/esm5/lib/directives/index.js +7 -2
- package/esm5/lib/directives/let/let.directive.js +51 -15
- package/esm5/lib/directives/public-api.js +8 -3
- package/esm5/lib/exui-common-lib.module.js +34 -22
- package/esm5/lib/gov-ui/components/gov-uk-checkbox/gov-uk-checkbox.component.js +37 -22
- package/esm5/lib/gov-ui/components/gov-uk-checkboxes/gov-uk-checkboxes.component.js +22 -16
- package/esm5/lib/gov-ui/components/gov-uk-date/gov-uk-date.component.js +89 -32
- package/esm5/lib/gov-ui/components/gov-uk-error-message/gov-uk-error-message.component.js +24 -17
- package/esm5/lib/gov-ui/components/gov-uk-fieldset/gov-uk-fieldset.component.js +31 -18
- package/esm5/lib/gov-ui/components/gov-uk-file-upload/gov-uk-file-upload.component.js +43 -23
- package/esm5/lib/gov-ui/components/gov-uk-form-group-wrapper/gov-uk-form-group-wrapper.component.js +27 -21
- package/esm5/lib/gov-ui/components/gov-uk-input/gov-uk-input.component.js +45 -24
- package/esm5/lib/gov-ui/components/gov-uk-label/gov-uk-label.component.js +21 -13
- package/esm5/lib/gov-ui/components/gov-uk-radio/gov-uk-radio.component.js +44 -18
- package/esm5/lib/gov-ui/components/gov-uk-radios/gov-uk-radios.component.js +22 -16
- package/esm5/lib/gov-ui/components/gov-uk-select/gov-uk-select.component.js +37 -26
- package/esm5/lib/gov-ui/components/gov-uk-table/gov-uk-table.component.js +51 -31
- package/esm5/lib/gov-ui/components/gov-uk-textarea/gov-uk-textarea.component.js +32 -21
- package/esm5/lib/gov-ui/components/hmcts-banner/hmcts-banner.component.js +25 -18
- package/esm5/lib/gov-ui/components/hmcts-error-summary/hmcts-error-summary.component.js +71 -28
- package/esm5/lib/gov-ui/components/hmcts-identity-bar/hmcts-identity-bar.component.js +27 -16
- package/esm5/lib/gov-ui/components/hmcts-main-wrapper/hmcts-main-wrapper.component.js +60 -41
- package/esm5/lib/gov-ui/components/hmcts-pagination/hmcts-pagination.component.js +51 -0
- package/esm5/lib/gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component.js +36 -28
- package/esm5/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.js +39 -16
- package/esm5/lib/gov-ui/components/index.js +7 -2
- package/esm5/lib/gov-ui/components/public_api.js +7 -21
- package/esm5/lib/gov-ui/directives/remove-host.directive.js +29 -10
- package/esm5/lib/gov-ui/gov-ui.service.js +14 -9
- package/esm5/lib/gov-ui/index.js +7 -2
- package/esm5/lib/gov-ui/models/banner-data-model.js +16 -1
- package/esm5/lib/gov-ui/models/checkboxes-model.js +22 -1
- package/esm5/lib/gov-ui/models/error-messages-model.js +16 -1
- package/esm5/lib/gov-ui/models/gov-ui-config-model.js +36 -1
- package/esm5/lib/gov-ui/models/index.js +7 -1
- package/esm5/lib/gov-ui/models/isession-storage.interface.js +24 -1
- package/esm5/lib/gov-ui/models/public_api.js +10 -1
- package/esm5/lib/gov-ui/public_api.js +9 -5
- package/esm5/lib/gov-ui/util/helpers/html-templates.helper.js +34 -3
- package/esm5/lib/gov-ui/util/session-storage/session-storage-utils.js +48 -12
- package/esm5/lib/gov-ui/validators/checkboxes-be-checked.validator.js +24 -5
- package/esm5/lib/gov-ui/validators/date.validator.js +20 -3
- package/esm5/lib/gov-ui/validators/index.js +7 -2
- package/esm5/lib/gov-ui/validators/public_api.js +9 -4
- package/esm5/lib/gov-ui/validators/radio-group.validator.js +15 -3
- package/esm5/lib/models/case-share.model.js +26 -1
- package/esm5/lib/models/contact-details.model.js +31 -7
- package/esm5/lib/models/due-date.model.js +14 -7
- package/esm5/lib/models/feature-user.js +16 -1
- package/esm5/lib/models/filter.model.js +116 -1
- package/esm5/lib/models/idle-config.model.js +20 -1
- package/esm5/lib/models/index.js +19 -6
- package/esm5/lib/models/location.model.js +108 -1
- package/esm5/lib/models/pagination.model.js +18 -0
- package/esm5/lib/models/person.model.js +92 -17
- package/esm5/lib/models/public_api.js +11 -4
- package/esm5/lib/models/search-options.model.js +22 -1
- package/esm5/lib/models/tcDocument.model.js +18 -1
- package/esm5/lib/models/timeout-notification.model.js +18 -1
- package/esm5/lib/models/user-details.model.js +22 -1
- package/esm5/lib/models/user.model.js +25 -1
- package/esm5/lib/services/case-sharing-state/case-sharing-state.service.js +132 -27
- package/esm5/lib/services/cookie/cookie.service.js +104 -21
- package/esm5/lib/services/feature-toggle/feature-toggle.guard.js +61 -13
- package/esm5/lib/services/feature-toggle/feature-toggle.service.js +70 -12
- package/esm5/lib/services/feature-toggle/launch-darkly.service.js +142 -21
- package/esm5/lib/services/filter/filter.service.js +101 -15
- package/esm5/lib/services/find-person/find-person.service.js +152 -27
- package/esm5/lib/services/google-analytics/google-analytics.service.js +78 -21
- package/esm5/lib/services/google-tag-manager/google-tag-manager.service.js +79 -23
- package/esm5/lib/services/index.js +7 -2
- package/esm5/lib/services/loading/loading.service.js +69 -14
- package/esm5/lib/services/locations/location.service.js +50 -11
- package/esm5/lib/services/manage-session/manage-session.services.js +73 -20
- package/esm5/lib/services/public-api.js +18 -13
- package/esm5/lib/services/role-guard/role.guard.js +60 -22
- package/esm5/lib/services/role-guard/role.service.js +28 -10
- package/esm5/lib/services/session-storage/session-storage.service.js +61 -12
- package/esm5/lib/services/timeout-notifications/timeout-notifications.service.js +111 -19
- package/esm5/lib/window.js +10 -1
- package/esm5/public-api.js +13 -8
- package/fesm2015/hmcts-rpx-xui-common-lib.js +6513 -3192
- package/fesm2015/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/fesm5/hmcts-rpx-xui-common-lib.js +7455 -3160
- package/fesm5/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/hmcts-rpx-xui-common-lib.d.ts +21 -20
- package/hmcts-rpx-xui-common-lib.metadata.json +1 -1
- package/lib/components/checkbox-list/checkbox-list.component.d.ts +5 -6
- package/lib/components/due-date/due-date.component.d.ts +4 -4
- package/lib/components/find-location/find-location.component.d.ts +2 -4
- package/lib/components/generic-filter/generic-filter.component.d.ts +2 -4
- package/lib/components/invite-user-form/invite-user-form.component.d.ts +1 -1
- package/lib/components/public_api.d.ts +4 -9
- package/lib/components/search-judicials/search-judicials.component.d.ts +1 -1
- package/lib/components/search-location/search-location.component.d.ts +2 -4
- package/lib/components/search-venue/search-venue.component.d.ts +1 -1
- package/lib/components/user-list/user-list.component.d.ts +9 -2
- package/lib/directives/feature-toggle/feature-toggle.directive.d.ts +1 -1
- package/lib/directives/let/let.directive.d.ts +1 -1
- package/lib/exui-common-lib.module.d.ts +4 -2
- 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 +10 -0
- 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 +2 -0
- package/lib/gov-ui/components/public_api.d.ts +0 -19
- package/lib/gov-ui/public_api.d.ts +1 -2
- package/lib/models/index.d.ts +1 -0
- package/lib/models/pagination.model.d.ts +5 -0
- package/lib/services/case-sharing-state/case-sharing-state.service.d.ts +1 -1
- package/lib/services/loading/loading.service.d.ts +2 -2
- package/lib/services/role-guard/role.service.d.ts +1 -2
- package/lib/window.d.ts +1 -1
- package/package.json +10 -6
- package/esm2015/lib/gov-ui/directives/index.js +0 -2
- package/esm2015/lib/gov-ui/directives/public_api.js +0 -2
- package/esm5/lib/gov-ui/directives/index.js +0 -2
- package/esm5/lib/gov-ui/directives/public_api.js +0 -2
- package/lib/gov-ui/directives/index.d.ts +0 -1
- package/lib/gov-ui/directives/public_api.d.ts +0 -1
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview added by tsickle
|
|
3
|
+
* Generated from: lib/gov-ui/components/gov-uk-select/gov-uk-select.component.ts
|
|
4
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5
|
+
*/
|
|
2
6
|
import { Component, Input } from '@angular/core';
|
|
3
7
|
import { FormGroup } from '@angular/forms';
|
|
4
8
|
import { HtmlTemplatesHelper } from '../../util/helpers/html-templates.helper';
|
|
@@ -9,33 +13,40 @@ import { HtmlTemplatesHelper } from '../../util/helpers/html-templates.helper';
|
|
|
9
13
|
var GovUkSelectComponent = /** @class */ (function () {
|
|
10
14
|
function GovUkSelectComponent() {
|
|
11
15
|
}
|
|
12
|
-
|
|
16
|
+
/**
|
|
17
|
+
* @return {?}
|
|
18
|
+
*/
|
|
19
|
+
GovUkSelectComponent.prototype.setDescribedBy = /**
|
|
20
|
+
* @return {?}
|
|
21
|
+
*/
|
|
22
|
+
function () {
|
|
13
23
|
return HtmlTemplatesHelper.setDescribedBy(this.errorMessage, this.config);
|
|
14
24
|
};
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
Input
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
__metadata("design:type", Array)
|
|
30
|
-
], GovUkSelectComponent.prototype, "items", void 0);
|
|
31
|
-
GovUkSelectComponent = __decorate([
|
|
32
|
-
Component({
|
|
33
|
-
selector: 'xuilib-gov-select',
|
|
34
|
-
template: "<div class=\"govuk-form-group\" [formGroup]=\"group\"\n[ngClass]=\"{'govuk-form-group--error': errorMessage?.isInvalid}\">\n<xuilib-gov-label [config]=\"config\"></xuilib-gov-label>\n<span *ngIf=\"config.hint\" [id]=\"config.id +'-hint'\" class=\"govuk-hint\">\n {{config.hint}}\n</span>\n<xuilib-gov-uk-error-message [config]=\"config\" [errorMessage]=\"errorMessage\"></xuilib-gov-uk-error-message>\n\n<select class=\"govuk-select\" [id]=\"config.id\" [name]=\"config.id\" [formControlName]=\"config.id\" [attr.aria-describedby]='setDescribedBy()'>\n<option value=\"{{item.value}}\" *ngFor=\"let item of items\">{{item.label}}</option>\n</select>\n</div>"
|
|
35
|
-
}),
|
|
36
|
-
__metadata("design:paramtypes", [])
|
|
37
|
-
], GovUkSelectComponent);
|
|
25
|
+
GovUkSelectComponent.decorators = [
|
|
26
|
+
{ type: Component, args: [{
|
|
27
|
+
selector: 'xuilib-gov-select',
|
|
28
|
+
template: "<div class=\"govuk-form-group\" [formGroup]=\"group\"\n[ngClass]=\"{'govuk-form-group--error': errorMessage?.isInvalid}\">\n<xuilib-gov-label [config]=\"config\"></xuilib-gov-label>\n<span *ngIf=\"config.hint\" [id]=\"config.id +'-hint'\" class=\"govuk-hint\">\n {{config.hint}}\n</span>\n<xuilib-gov-uk-error-message [config]=\"config\" [errorMessage]=\"errorMessage\"></xuilib-gov-uk-error-message>\n\n<select class=\"govuk-select\" [id]=\"config.id\" [name]=\"config.id\" [formControlName]=\"config.id\" [attr.aria-describedby]='setDescribedBy()'>\n<option value=\"{{item.value}}\" *ngFor=\"let item of items\">{{item.label}}</option>\n</select>\n</div>"
|
|
29
|
+
}] }
|
|
30
|
+
];
|
|
31
|
+
/** @nocollapse */
|
|
32
|
+
GovUkSelectComponent.ctorParameters = function () { return []; };
|
|
33
|
+
GovUkSelectComponent.propDecorators = {
|
|
34
|
+
errorMessage: [{ type: Input }],
|
|
35
|
+
group: [{ type: Input }],
|
|
36
|
+
config: [{ type: Input }],
|
|
37
|
+
items: [{ type: Input }]
|
|
38
|
+
};
|
|
38
39
|
return GovUkSelectComponent;
|
|
39
40
|
}());
|
|
40
41
|
export { GovUkSelectComponent };
|
|
41
|
-
|
|
42
|
+
if (false) {
|
|
43
|
+
/** @type {?} */
|
|
44
|
+
GovUkSelectComponent.prototype.errorMessage;
|
|
45
|
+
/** @type {?} */
|
|
46
|
+
GovUkSelectComponent.prototype.group;
|
|
47
|
+
/** @type {?} */
|
|
48
|
+
GovUkSelectComponent.prototype.config;
|
|
49
|
+
/** @type {?} */
|
|
50
|
+
GovUkSelectComponent.prototype.items;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ292LXVrLXNlbGVjdC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaG1jdHMvcnB4LXh1aS1jb21tb24tbGliLyIsInNvdXJjZXMiOlsibGliL2dvdi11aS9jb21wb25lbnRzL2dvdi11ay1zZWxlY3QvZ292LXVrLXNlbGVjdC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLEtBQUssRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUMvQyxPQUFPLEVBQUMsU0FBUyxFQUFDLE1BQU0sZ0JBQWdCLENBQUM7QUFHekMsT0FBTyxFQUFDLG1CQUFtQixFQUFDLE1BQU0sMENBQTBDLENBQUM7Ozs7O0FBSzdFO0lBS0U7SUFBZSxDQUFDOzs7O0lBT1QsNkNBQWM7OztJQUFyQjtRQU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vdlVrU2VsZWN0Q29tcG9uZW50IHtcbiAgY29uc3RydWN0b3IoKSB7fVxuICBASW5wdXQoKSBwdWJsaWMgZXJyb3JNZXNzYWdlOiBFcnJvck1lc3NhZ2VzTW9kZWw7XG4gIEBJbnB1dCgpIHB1YmxpYyBncm91cDogRm9ybUdyb3VwO1xuICBASW5wdXQoKSBwdWJsaWMgY29uZmlnOiBHb3ZVaUNvbmZpZ01vZGVsO1xuICAvLyB7aGludDogc3RyaW5nOyBuYW1lOiBzdHJpbmc7IGlkOiBzdHJpbmcsICBpc1BhZ2VIZWFkaW5nOiBib29sZWFuLCBjbGFzc2VzOiBzdHJpbmcgfTtcbiAgQElucHV0KCkgcHVibGljIGl0ZW1zOiB7bGFiZWw6IHN0cmluZywgdmFsdWU6IHN0cmluZzsgaWQ6IHN0cmluZ31bXTtcblxuICBwdWJsaWMgc2V0RGVzY3JpYmVkQnkoKTogc3RyaW5nIHtcbiAgICByZXR1cm4gSHRtbFRlbXBsYXRlc0hlbHBlci5zZXREZXNjcmliZWRCeSh0aGlzLmVycm9yTWVzc2FnZSwgdGhpcy5jb25maWcpO1xuICB9XG5cbn1cbiJdfQ==
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview added by tsickle
|
|
3
|
+
* Generated from: lib/gov-ui/components/gov-uk-table/gov-uk-table.component.ts
|
|
4
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5
|
+
*/
|
|
2
6
|
import { formatDate } from '@angular/common';
|
|
3
7
|
import { Component, Input } from '@angular/core';
|
|
4
8
|
var GovukTableComponent = /** @class */ (function () {
|
|
@@ -11,40 +15,48 @@ var GovukTableComponent = /** @class */ (function () {
|
|
|
11
15
|
{ header: 'Amount', key: 'amount' }
|
|
12
16
|
];
|
|
13
17
|
}
|
|
14
|
-
|
|
18
|
+
/**
|
|
19
|
+
* @param {?} date
|
|
20
|
+
* @return {?}
|
|
21
|
+
*/
|
|
22
|
+
GovukTableComponent.prototype.formatDate = /**
|
|
23
|
+
* @param {?} date
|
|
24
|
+
* @return {?}
|
|
25
|
+
*/
|
|
26
|
+
function (date) {
|
|
15
27
|
return formatDate(date, 'dd/MM/yyyy', 'en-UK');
|
|
16
28
|
};
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
]
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
Input
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
__decorate([
|
|
34
|
-
Input(),
|
|
35
|
-
__metadata("design:type", Array)
|
|
36
|
-
], GovukTableComponent.prototype, "columnConfig", void 0);
|
|
37
|
-
GovukTableComponent = __decorate([
|
|
38
|
-
Component({
|
|
39
|
-
selector: 'xuilib-gov-uk-table',
|
|
40
|
-
template: "<table class=\"{{'govuk-table ' + classes}}\">\n <caption class=\"govuk-table__caption\">{{caption}}</caption>\n <thead class=\"govuk-table__head\" >\n <tr class=\"govuk-table__row\">\n <th class=\"govuk-table__header\" scope=\"col\" *ngFor=\"let h of columnConfig\">{{h.header}}</th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr data-selector=\"table-row\" class=\"govuk-table__row\" *ngFor=\"let r of rows\">\n <ng-container *ngFor=\"let col of columnConfig; first as isFirst\">\n <th data-selector=\"table-header\" class=\"govuk-table__header\" scope=\"row\" *ngIf=\"isFirst && firstCellIsHeader\">\n <ng-container *ngIf=\"!col.type || col.type === 'text' || !r.routerLink\">{{r[col.key]}}</ng-container>\n <ng-container *ngIf=\"col.type === 'link' && r.routerLink\">\n <a class=\"govuk-link\" [routerLink]=\"r.routerLink\">{{r[col.key]}}</a>\n </ng-container>\n </th>\n <td data-selector=\"table-cell\" class=\"govuk-table__cell\" *ngIf=\"!(isFirst && firstCellIsHeader)\">\n <ng-container *ngIf=\"col.type === 'date'\">{{formatDate(r[col.key])}}</ng-container>\n <ng-container *ngIf=\"!col.type || col.type === 'text' || !r.routerLink\">{{r[col.key]}}</ng-container>\n <ng-container *ngIf=\"col.type === 'link' && r.routerLink\">\n <a class=\"govuk-link\" [routerLink]=\"r.routerLink\">{{r[col.key]}}</a>\n </ng-container>\n </td>\n </ng-container>\n </tr>\n </tbody>\n</table>\n",
|
|
41
|
-
styles: [""]
|
|
42
|
-
}),
|
|
43
|
-
__metadata("design:paramtypes", [])
|
|
44
|
-
], GovukTableComponent);
|
|
29
|
+
GovukTableComponent.decorators = [
|
|
30
|
+
{ type: Component, args: [{
|
|
31
|
+
selector: 'xuilib-gov-uk-table',
|
|
32
|
+
template: "<table class=\"{{'govuk-table ' + classes}}\">\n <caption class=\"govuk-table__caption\">{{caption}}</caption>\n <thead class=\"govuk-table__head\" >\n <tr class=\"govuk-table__row\">\n <th class=\"govuk-table__header\" scope=\"col\" *ngFor=\"let h of columnConfig\">{{h.header}}</th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr data-selector=\"table-row\" class=\"govuk-table__row\" *ngFor=\"let r of rows\">\n <ng-container *ngFor=\"let col of columnConfig; first as isFirst\">\n <th data-selector=\"table-header\" class=\"govuk-table__header\" scope=\"row\" *ngIf=\"isFirst && firstCellIsHeader\">\n <ng-container *ngIf=\"!col.type || col.type === 'text' || !r.routerLink\">{{r[col.key]}}</ng-container>\n <ng-container *ngIf=\"col.type === 'link' && r.routerLink\">\n <a class=\"govuk-link\" [routerLink]=\"r.routerLink\">{{r[col.key]}}</a>\n </ng-container>\n </th>\n <td data-selector=\"table-cell\" class=\"govuk-table__cell\" *ngIf=\"!(isFirst && firstCellIsHeader)\">\n <ng-container *ngIf=\"col.type === 'date'\">{{formatDate(r[col.key])}}</ng-container>\n <ng-container *ngIf=\"!col.type || col.type === 'text' || !r.routerLink\">{{r[col.key]}}</ng-container>\n <ng-container *ngIf=\"col.type === 'link' && r.routerLink\">\n <a class=\"govuk-link\" [routerLink]=\"r.routerLink\">{{r[col.key]}}</a>\n </ng-container>\n </td>\n </ng-container>\n </tr>\n </tbody>\n</table>\n",
|
|
33
|
+
styles: [""]
|
|
34
|
+
}] }
|
|
35
|
+
];
|
|
36
|
+
/** @nocollapse */
|
|
37
|
+
GovukTableComponent.ctorParameters = function () { return []; };
|
|
38
|
+
GovukTableComponent.propDecorators = {
|
|
39
|
+
classes: [{ type: Input }],
|
|
40
|
+
caption: [{ type: Input }],
|
|
41
|
+
firstCellIsHeader: [{ type: Input }],
|
|
42
|
+
rows: [{ type: Input }],
|
|
43
|
+
columnConfig: [{ type: Input }]
|
|
44
|
+
};
|
|
45
45
|
return GovukTableComponent;
|
|
46
46
|
}());
|
|
47
47
|
export { GovukTableComponent };
|
|
48
|
+
if (false) {
|
|
49
|
+
/** @type {?} */
|
|
50
|
+
GovukTableComponent.prototype.classes;
|
|
51
|
+
/** @type {?} */
|
|
52
|
+
GovukTableComponent.prototype.caption;
|
|
53
|
+
/** @type {?} */
|
|
54
|
+
GovukTableComponent.prototype.firstCellIsHeader;
|
|
55
|
+
/** @type {?} */
|
|
56
|
+
GovukTableComponent.prototype.rows;
|
|
57
|
+
/** @type {?} */
|
|
58
|
+
GovukTableComponent.prototype.columnConfig;
|
|
59
|
+
}
|
|
48
60
|
var GovukTableColumnConfig = /** @class */ (function () {
|
|
49
61
|
function GovukTableColumnConfig() {
|
|
50
62
|
this.header = '';
|
|
@@ -54,4 +66,12 @@ var GovukTableColumnConfig = /** @class */ (function () {
|
|
|
54
66
|
return GovukTableColumnConfig;
|
|
55
67
|
}());
|
|
56
68
|
export { GovukTableColumnConfig };
|
|
57
|
-
|
|
69
|
+
if (false) {
|
|
70
|
+
/** @type {?} */
|
|
71
|
+
GovukTableColumnConfig.prototype.header;
|
|
72
|
+
/** @type {?} */
|
|
73
|
+
GovukTableColumnConfig.prototype.key;
|
|
74
|
+
/** @type {?} */
|
|
75
|
+
GovukTableColumnConfig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BASW5wdXQoKSBwdWJsaWMgY29sdW1uQ29uZmlnOiBHb3Z1a1RhYmxlQ29sdW1uQ29uZmlnW10gPSBbXG4gICAgICAgIHsgaGVhZGVyOiAnRGF0ZScsIGtleTogJ2RhdGUnLCB0eXBlOiAndGV4dCcgfSxcbiAgICAgICAgeyBoZWFkZXI6ICdBbW91bnQnLCBrZXk6ICdhbW91bnQnIH1cbiAgICBdO1xuXG4gICAgY29uc3RydWN0b3IoKSB7IH1cblxuICAgIHB1YmxpYyBmb3JtYXREYXRlKGRhdGU6IERhdGUpOiBzdHJpbmcge1xuICAgICAgICByZXR1cm4gZm9ybWF0RGF0ZShkYXRlLCAnZGQvTU0veXl5eScsICdlbi1VSycpO1xuICAgIH1cblxufVxuXG5leHBvcnQgY2xhc3MgR292dWtUYWJsZUNvbHVtbkNvbmZpZyB7XG4gICAgcHVibGljIGhlYWRlcjogc3RyaW5nO1xuICAgIHB1YmxpYyBrZXk6IHN0cmluZztcbiAgICBwdWJsaWMgdHlwZT86IHN0cmluZztcbiAgICBjb25zdHJ1Y3RvcigpIHtcbiAgICAgICAgdGhpcy5oZWFkZXIgPSAnJztcbiAgICAgICAgdGhpcy5rZXkgPSAnJztcbiAgICAgICAgdGhpcy50eXBlID0gJ3RleHQnO1xuICAgIH1cbiAgfVxuIl19
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview added by tsickle
|
|
3
|
+
* Generated from: lib/gov-ui/components/gov-uk-textarea/gov-uk-textarea.component.ts
|
|
4
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5
|
+
*/
|
|
2
6
|
import { Component, Input } from '@angular/core';
|
|
3
7
|
import { FormGroup } from '@angular/forms';
|
|
4
8
|
import { HtmlTemplatesHelper } from '../../util/helpers/html-templates.helper';
|
|
@@ -12,28 +16,35 @@ import { HtmlTemplatesHelper } from '../../util/helpers/html-templates.helper';
|
|
|
12
16
|
var GovUkTextareaComponent = /** @class */ (function () {
|
|
13
17
|
function GovUkTextareaComponent() {
|
|
14
18
|
}
|
|
15
|
-
|
|
19
|
+
/**
|
|
20
|
+
* @return {?}
|
|
21
|
+
*/
|
|
22
|
+
GovUkTextareaComponent.prototype.setDescribedBy = /**
|
|
23
|
+
* @return {?}
|
|
24
|
+
*/
|
|
25
|
+
function () {
|
|
16
26
|
return HtmlTemplatesHelper.setDescribedBy(this.errorMessage, this.config);
|
|
17
27
|
};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
Input
|
|
28
|
-
|
|
29
|
-
], GovUkTextareaComponent.prototype, "group", void 0);
|
|
30
|
-
GovUkTextareaComponent = __decorate([
|
|
31
|
-
Component({
|
|
32
|
-
selector: 'xuilib-gov-uk-textarea',
|
|
33
|
-
template: "<div [formGroup]=\"group\" \nclass=\"govuk-form-group\" [ngClass]=\"{'govuk-form-group--error': errorMessage?.isInvalid}\">\n<xuilib-gov-label [config]=\"config\"></xuilib-gov-label>\n<span id=\"more-detail-hint\" class=\"govuk-hint\">\n {{config.hint}}\n</span>\n<xuilib-gov-uk-error-message [config]=\"config\" [errorMessage]=\"errorMessage\"></xuilib-gov-uk-error-message>\n<textarea\n class=\"govuk-textarea\" [formControlName]=\"config.key\"\n [ngClass]=\"{'govuk-textarea--error': errorMessage?.isInvalid}\"\n [id]=\"config.id\" name=\"more-detail\" [rows]=\"config.rows\" [attr.aria-describedby]=\"setDescribedBy()\"></textarea>\n</div>"
|
|
34
|
-
})
|
|
35
|
-
], GovUkTextareaComponent);
|
|
28
|
+
GovUkTextareaComponent.decorators = [
|
|
29
|
+
{ type: Component, args: [{
|
|
30
|
+
selector: 'xuilib-gov-uk-textarea',
|
|
31
|
+
template: "<div [formGroup]=\"group\" \nclass=\"govuk-form-group\" [ngClass]=\"{'govuk-form-group--error': errorMessage?.isInvalid}\">\n<xuilib-gov-label [config]=\"config\"></xuilib-gov-label>\n<span id=\"more-detail-hint\" class=\"govuk-hint\">\n {{config.hint}}\n</span>\n<xuilib-gov-uk-error-message [config]=\"config\" [errorMessage]=\"errorMessage\"></xuilib-gov-uk-error-message>\n<textarea\n class=\"govuk-textarea\" [formControlName]=\"config.key\"\n [ngClass]=\"{'govuk-textarea--error': errorMessage?.isInvalid}\"\n [id]=\"config.id\" name=\"more-detail\" [rows]=\"config.rows\" [attr.aria-describedby]=\"setDescribedBy()\"></textarea>\n</div>"
|
|
32
|
+
}] }
|
|
33
|
+
];
|
|
34
|
+
GovUkTextareaComponent.propDecorators = {
|
|
35
|
+
config: [{ type: Input }],
|
|
36
|
+
errorMessage: [{ type: Input }],
|
|
37
|
+
group: [{ type: Input }]
|
|
38
|
+
};
|
|
36
39
|
return GovUkTextareaComponent;
|
|
37
40
|
}());
|
|
38
41
|
export { GovUkTextareaComponent };
|
|
39
|
-
|
|
42
|
+
if (false) {
|
|
43
|
+
/** @type {?} */
|
|
44
|
+
GovUkTextareaComponent.prototype.config;
|
|
45
|
+
/** @type {?} */
|
|
46
|
+
GovUkTextareaComponent.prototype.errorMessage;
|
|
47
|
+
/** @type {?} */
|
|
48
|
+
GovUkTextareaComponent.prototype.group;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ292LXVrLXRleHRhcmVhLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BobWN0cy9ycHgteHVpLWNvbW1vbi1saWIvIiwic291cmNlcyI6WyJsaWIvZ292LXVpL2NvbXBvbmVudHMvZ292LXVrLXRleHRhcmVhL2dvdi11ay10ZXh0YXJlYS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLEtBQUssRUFBQyxN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gZGlzcGxheWluZyBhIGxpc3Qgb2YgZ292LXVrLWNoZWNrYm94ZXNcbiogQHBhcmFtOiBvcHRpb25zIC0gb2JqZWN0IHdpdGggZGF0YSBmb3Igd3JhcHBlciAoZmllbGRzZXQpIGFuZFxuKiBhcnJheSBvZiBpdGVtcyBmb3IgZ292LXVrLWNoZWNrYm94ZXNcbiogQHBhcmFtOiBlcnJvcnMgLSBhcnJheSBvZiBlcnJvck1lc3NhZ2VcbiogKi9cbkBDb21wb25lbnQoe1xuICBzZWxlY3RvcjogJ3h1aWxpYi1nb3YtdWstdGV4dGFyZWEnLFxuICB0ZW1wbGF0ZVVybDogJy4vZ292LXVrLXRleHRhcmVhLmNvbXBvbmVudC5odG1sJ1xufSlcbmV4cG9ydCBjbGFzcyBHb3ZVa1RleHRhcmVhQ29tcG9uZW50IHtcbiAgQElucHV0KCkgcHVibGljIGNvbmZpZzogR292VWlDb25maWdNb2RlbDtcbiAgLy8ge2xhYmVsOiBzdHJpbmc7IGNsYXNzZXM6IHN0cmluZzsgaGludDogc3RyaW5nOyBrZXk6IHN0cmluZzsgcm93czogbnVtYmVyLCBpZDogc3RyaW5nfTtcbiAgQElucHV0KCkgcHVibGljIGVycm9yTWVzc2FnZTogRXJyb3JNZXNzYWdlc01vZGVsO1xuICBASW5wdXQoKSBwdWJsaWMgZ3JvdXA6IEZvcm1Hcm91cDtcblxuICBwdWJsaWMgc2V0RGVzY3JpYmVkQnkoKTogc3RyaW5nIHtcbiAgICByZXR1cm4gSHRtbFRlbXBsYXRlc0hlbHBlci5zZXREZXNjcmliZWRCeSh0aGlzLmVycm9yTWVzc2FnZSwgdGhpcy5jb25maWcpO1xuICB9XG5cbn1cbiJdfQ==
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview added by tsickle
|
|
3
|
+
* Generated from: lib/gov-ui/components/hmcts-banner/hmcts-banner.component.ts
|
|
4
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5
|
+
*/
|
|
2
6
|
import { Component, Input } from '@angular/core';
|
|
3
7
|
/*
|
|
4
8
|
* Hmcts Banner
|
|
@@ -9,23 +13,26 @@ import { Component, Input } from '@angular/core';
|
|
|
9
13
|
var HmctsBannerComponent = /** @class */ (function () {
|
|
10
14
|
function HmctsBannerComponent() {
|
|
11
15
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
HmctsBannerComponent =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}),
|
|
26
|
-
__metadata("design:paramtypes", [])
|
|
27
|
-
], HmctsBannerComponent);
|
|
16
|
+
HmctsBannerComponent.decorators = [
|
|
17
|
+
{ type: Component, args: [{
|
|
18
|
+
selector: 'xuilib-hmcts-banner',
|
|
19
|
+
template: "<div class=\"hmcts-banner hmcts-banner--{{type}}\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z\" /></svg>\n <div class=\"hmcts-banner__message\">\n <span class=\"hmcts-banner__assistive\">{{type}}</span>\n {{message}}\n </div>\n</div>",
|
|
20
|
+
styles: [":host{display:block;width:100%}"]
|
|
21
|
+
}] }
|
|
22
|
+
];
|
|
23
|
+
/** @nocollapse */
|
|
24
|
+
HmctsBannerComponent.ctorParameters = function () { return []; };
|
|
25
|
+
HmctsBannerComponent.propDecorators = {
|
|
26
|
+
type: [{ type: Input }],
|
|
27
|
+
message: [{ type: Input }]
|
|
28
|
+
};
|
|
28
29
|
return HmctsBannerComponent;
|
|
29
30
|
}());
|
|
30
31
|
export { HmctsBannerComponent };
|
|
31
|
-
|
|
32
|
+
if (false) {
|
|
33
|
+
/** @type {?} */
|
|
34
|
+
HmctsBannerComponent.prototype.type;
|
|
35
|
+
/** @type {?} */
|
|
36
|
+
HmctsBannerComponent.prototype.message;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG1jdHMtYmFubmVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BobWN0cy9ycHgteHVpLWNvbW1vbi1saWIvIiwic291cmNlcyI6WyJsaWIvZ292LXVpL2NvbXBvbmVudHMvaG1jdHMtYmFubmVyL2htY3RzLWJhbm5lci5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLEtBQUssRUFBQyxNQUFNLGVBQWUsQ0FBQzs7Ozs7OztBQVEvQztJQU1FO0lBQWdCLENBQUM7O2dCQU5sQixTQUFTLFNBQUM7b0JBQ1QsUUFBUSxFQUFFLHFCQUFxQjtvQkFDL0IsNGZBQTRDOztpQkFFN0M7Ozs7O3VCQUdFLEtBQUs7MEJBQ0wsS0FBSzs7SUFDUiwyQkFBQztDQUFBLEFBVEQsSUFTQztTQUpZLG9CQUFvQjs7O0lBRS9CLG9DQUE2Qjs7SUFDN0IsdUNBQWdDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtDb21wb25lbnQsIElucHV0fSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuLypcbiogSG1jdHMgQmFubmVyXG4qIFJlc3BvbnNpYmxlIGZvciBkaXNwbGF5aW5nIHByb21pbmVudCBtZXNzYWdlIGFuZCByZWxhdGVkIGFjdGlvbnNcbiogQHByb3AgbWVzc2FnZSB0byBkaXNwbGF5XG4qIEBwcm9wIHR5cGVcbiogKi9cbkBDb21wb25lbnQoe1xuICBzZWxlY3RvcjogJ3h1aWxpYi1obWN0cy1iYW5uZXInLFxuICB0ZW1wbGF0ZVVybDogJy4vaG1jdHMtYmFubmVyLmNvbXBvbmVudC5odG1sJyxcbiAgc3R5bGVVcmxzOiBbJy4vaG1jdHMtYmFubmVyLmNvbXBvbmVudC5zY3NzJ11cbn0pXG5leHBvcnQgY2xhc3MgSG1jdHNCYW5uZXJDb21wb25lbnQge1xuICBjb25zdHJ1Y3RvcigpIHsgfVxuICBASW5wdXQoKSBwdWJsaWMgdHlwZTogc3RyaW5nO1xuICBASW5wdXQoKSBwdWJsaWMgbWVzc2FnZTogc3RyaW5nO1xufVxuIl19
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview added by tsickle
|
|
3
|
+
* Generated from: lib/gov-ui/components/hmcts-error-summary/hmcts-error-summary.component.ts
|
|
4
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5
|
+
*/
|
|
2
6
|
import { DOCUMENT } from '@angular/common';
|
|
3
7
|
import { Component, Inject, Input } from '@angular/core';
|
|
4
8
|
/*
|
|
@@ -12,54 +16,93 @@ var HmctsErrorSummaryComponent = /** @class */ (function () {
|
|
|
12
16
|
this.document = document;
|
|
13
17
|
}
|
|
14
18
|
Object.defineProperty(HmctsErrorSummaryComponent.prototype, "errorMessages", {
|
|
15
|
-
set:
|
|
19
|
+
set: /**
|
|
20
|
+
* @param {?} value
|
|
21
|
+
* @return {?}
|
|
22
|
+
*/
|
|
23
|
+
function (value) {
|
|
16
24
|
this.messages = value;
|
|
17
25
|
},
|
|
18
26
|
enumerable: true,
|
|
19
27
|
configurable: true
|
|
20
28
|
});
|
|
21
|
-
|
|
29
|
+
/**
|
|
30
|
+
* @return {?}
|
|
31
|
+
*/
|
|
32
|
+
HmctsErrorSummaryComponent.prototype.ngAfterViewInit = /**
|
|
33
|
+
* @return {?}
|
|
34
|
+
*/
|
|
35
|
+
function () {
|
|
22
36
|
this.scrollTo('errorSummary');
|
|
23
37
|
};
|
|
24
|
-
|
|
38
|
+
/**
|
|
39
|
+
* @param {?} changes
|
|
40
|
+
* @return {?}
|
|
41
|
+
*/
|
|
42
|
+
HmctsErrorSummaryComponent.prototype.ngOnChanges = /**
|
|
43
|
+
* @param {?} changes
|
|
44
|
+
* @return {?}
|
|
45
|
+
*/
|
|
46
|
+
function (changes) {
|
|
25
47
|
if (changes.errorMessages) {
|
|
26
48
|
this.scrollTo('errorSummary');
|
|
27
49
|
}
|
|
28
50
|
};
|
|
29
|
-
|
|
51
|
+
/**
|
|
52
|
+
* @param {?} selector
|
|
53
|
+
* @return {?}
|
|
54
|
+
*/
|
|
55
|
+
HmctsErrorSummaryComponent.prototype.scrollTo = /**
|
|
56
|
+
* @param {?} selector
|
|
57
|
+
* @return {?}
|
|
58
|
+
*/
|
|
59
|
+
function (selector) {
|
|
30
60
|
if (this.document.querySelector("#" + selector)) {
|
|
61
|
+
/** @type {?} */
|
|
31
62
|
var el = this.document.querySelector("#" + selector);
|
|
32
63
|
el.focus();
|
|
33
64
|
}
|
|
34
65
|
};
|
|
35
|
-
|
|
66
|
+
/**
|
|
67
|
+
* @param {?} selector
|
|
68
|
+
* @return {?}
|
|
69
|
+
*/
|
|
70
|
+
HmctsErrorSummaryComponent.prototype.hasElement = /**
|
|
71
|
+
* @param {?} selector
|
|
72
|
+
* @return {?}
|
|
73
|
+
*/
|
|
74
|
+
function (selector) {
|
|
36
75
|
return this.document.querySelector("#" + selector);
|
|
37
76
|
};
|
|
77
|
+
HmctsErrorSummaryComponent.decorators = [
|
|
78
|
+
{ type: Component, args: [{
|
|
79
|
+
selector: 'xuilib-hmcts-error-summary',
|
|
80
|
+
template: "<div *ngIf=\"!showWarningMessage && messages && messages.length > 0\" id=\"errorSummary\" class=\"govuk-error-summary\" aria-labelledby=\"error-summary-title\" role=\"alert\" tabindex=\"-1\"\n data-module=\"error-summary\">\n <h2 class=\"govuk-error-summary__title\" id=\"error-summary-title\">\n {{header}}\n </h2>\n <div class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li *ngFor=\"let message of messages\">\n <a (click)=\"scrollTo(message['id'])\" [routerLink]=\"\" [fragment]=\"message['id']\"\n *ngIf=\"hasElement(message['id'])\">{{message['message']}}</a>\n <span *ngIf=\"!hasElement(message['id'])\">{{message['message']}}</span>\n </li>\n </ul>\n </div>\n</div>\n<div *ngIf=\"showWarningMessage\" class=\"hmcts-banner hmcts-banner--warning\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z\" /></svg>\n <div class=\"hmcts-banner__message\">\n <span class=\"hmcts-banner__assistive\">Warning</span>\n <p class=\"govuk-body\" *ngFor=\"let message of messages\">{{ message['message'] }}</p>\n </div>\n</div>"
|
|
81
|
+
}] }
|
|
82
|
+
];
|
|
83
|
+
/** @nocollapse */
|
|
38
84
|
HmctsErrorSummaryComponent.ctorParameters = function () { return [
|
|
39
85
|
{ type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
|
|
40
86
|
]; };
|
|
41
|
-
|
|
42
|
-
Input
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
__decorate([
|
|
47
|
-
Input(),
|
|
48
|
-
__metadata("design:type", String)
|
|
49
|
-
], HmctsErrorSummaryComponent.prototype, "header", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
Input(),
|
|
52
|
-
__metadata("design:type", Boolean)
|
|
53
|
-
], HmctsErrorSummaryComponent.prototype, "showWarningMessage", void 0);
|
|
54
|
-
HmctsErrorSummaryComponent = __decorate([
|
|
55
|
-
Component({
|
|
56
|
-
selector: 'xuilib-hmcts-error-summary',
|
|
57
|
-
template: "<div *ngIf=\"!showWarningMessage && messages && messages.length > 0\" id=\"errorSummary\" class=\"govuk-error-summary\" aria-labelledby=\"error-summary-title\" role=\"alert\" tabindex=\"-1\"\n data-module=\"error-summary\">\n <h2 class=\"govuk-error-summary__title\" id=\"error-summary-title\">\n {{header}}\n </h2>\n <div class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li *ngFor=\"let message of messages\">\n <a (click)=\"scrollTo(message['id'])\" [routerLink]=\"\" [fragment]=\"message['id']\"\n *ngIf=\"hasElement(message['id'])\">{{message['message']}}</a>\n <span *ngIf=\"!hasElement(message['id'])\">{{message['message']}}</span>\n </li>\n </ul>\n </div>\n</div>\n<div *ngIf=\"showWarningMessage\" class=\"hmcts-banner hmcts-banner--warning\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z\" /></svg>\n <div class=\"hmcts-banner__message\">\n <span class=\"hmcts-banner__assistive\">Warning</span>\n <p class=\"govuk-body\" *ngFor=\"let message of messages\">{{ message['message'] }}</p>\n </div>\n</div>"
|
|
58
|
-
}),
|
|
59
|
-
__param(0, Inject(DOCUMENT)),
|
|
60
|
-
__metadata("design:paramtypes", [Object])
|
|
61
|
-
], HmctsErrorSummaryComponent);
|
|
87
|
+
HmctsErrorSummaryComponent.propDecorators = {
|
|
88
|
+
errorMessages: [{ type: Input }],
|
|
89
|
+
header: [{ type: Input }],
|
|
90
|
+
showWarningMessage: [{ type: Input }]
|
|
91
|
+
};
|
|
62
92
|
return HmctsErrorSummaryComponent;
|
|
63
93
|
}());
|
|
64
94
|
export { HmctsErrorSummaryComponent };
|
|
65
|
-
|
|
95
|
+
if (false) {
|
|
96
|
+
/** @type {?} */
|
|
97
|
+
HmctsErrorSummaryComponent.prototype.header;
|
|
98
|
+
/** @type {?} */
|
|
99
|
+
HmctsErrorSummaryComponent.prototype.showWarningMessage;
|
|
100
|
+
/** @type {?} */
|
|
101
|
+
HmctsErrorSummaryComponent.prototype.messages;
|
|
102
|
+
/**
|
|
103
|
+
* @type {?}
|
|
104
|
+
* @private
|
|
105
|
+
*/
|
|
106
|
+
HmctsErrorSummaryComponent.prototype.document;
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG1jdHMtZXJyb3Itc3VtbWFyeS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaG1jdHMvcnB4LXh1aS1jb21tb24tbGliLyIsInNvdXJjZXMiOlsibGliL2dvdi11aS9jb21wb25lbnRzL2htY3RzLWVycm9yLXN1bW1hcnkvaG1jdHMtZXJyb3Itc3VtbWFyeS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFDekMsT0FBTyxFQUFnQixTQUFTLEVBQUUsTUFBTSxFQUFFLEtBQUssRUFBMkIsTUFBTSxlQUFlLENBQUM7Ozs7Ozs7QUFPaEc7SUFlRSxvQ0FBK0MsUUFBYTtRQUFiLGFBQVEsR0FBUixRQUFRLENBQUs7SUFBSSxDQUFDO0lBVGpFLHNCQUFvQixxREFBYTs7Ozs7UUFBakMsVUFBa0MsS0FBVTtZQUMxQyxJQUFJLENBQUMsUUFBUSxHQUFHLEtBQUssQ0FBQztRQUN4QixDQUFDOzs7T0FBQTs7OztJQVNNLG9EQUFlOzs7SUFBdEI7UUFDRSxJQUFJLENBQUMsUUFBUSxDQUFDLGNBQWMsQ0FBQyxDQUFDO0lBQ2hDL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xuICBwdWJsaWMgbmdPbkNoYW5nZXMoY2hhbmdlczogU2ltcGxlQ2hhbmdlcyk6IHZvaWQge1xuICAgIGlmIChjaGFuZ2VzLmVycm9yTWVzc2FnZXMpIHtcbiAgICAgIHRoaXMuc2Nyb2xsVG8oJ2Vycm9yU3VtbWFyeScpO1xuICAgIH1cbiAgfVxuXG4gIHB1YmxpYyBzY3JvbGxUbyhzZWxlY3RvcjogYW55KSB7XG4gICAgaWYgKHRoaXMuZG9jdW1lbnQucXVlcnlTZWxlY3RvcihgIyR7c2VsZWN0b3J9YCkpIHtcbiAgICAgIGNvbnN0IGVsID0gdGhpcy5kb2N1bWVudC5xdWVyeVNlbGVjdG9yKGAjJHtzZWxlY3Rvcn1gKTtcblxuICAgICAgZWwuZm9jdXMoKTtcbiAgICB9XG4gIH1cblxuICBwdWJsaWMgaGFzRWxlbWVudChzZWxlY3RvcjogYW55KSB7XG4gICAgcmV0dXJuIHRoaXMuZG9jdW1lbnQucXVlcnlTZWxlY3RvcihgIyR7c2VsZWN0b3J9YCk7XG4gIH1cblxufVxuIl19
|
|
@@ -1,29 +1,40 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview added by tsickle
|
|
3
|
+
* Generated from: lib/gov-ui/components/hmcts-identity-bar/hmcts-identity-bar.component.ts
|
|
4
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5
|
+
*/
|
|
2
6
|
import { Component, Input } from '@angular/core';
|
|
3
7
|
var HmctsIdentityBarComponent = /** @class */ (function () {
|
|
4
8
|
function HmctsIdentityBarComponent() {
|
|
5
9
|
}
|
|
6
10
|
Object.defineProperty(HmctsIdentityBarComponent.prototype, "content", {
|
|
7
|
-
set:
|
|
11
|
+
set: /**
|
|
12
|
+
* @param {?} value
|
|
13
|
+
* @return {?}
|
|
14
|
+
*/
|
|
15
|
+
function (value) {
|
|
8
16
|
this.value = value.name;
|
|
9
17
|
},
|
|
10
18
|
enumerable: true,
|
|
11
19
|
configurable: true
|
|
12
20
|
});
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
], HmctsIdentityBarComponent);
|
|
21
|
+
HmctsIdentityBarComponent.decorators = [
|
|
22
|
+
{ type: Component, args: [{
|
|
23
|
+
selector: 'xuilib-hmcts-identity-bar',
|
|
24
|
+
template: "<div class=\"hmcts-identity-bar\" *ngIf=\"value\">\n\n <div class=\"hmcts-identity-bar__container\">\n\n <div class=\"hmcts-identity-bar__details\">\n \n <span class=\"hmcts-identity-bar__title\">{{value}}</span>\n \n </div> \n\n </div>\n\n</div>",
|
|
25
|
+
styles: [""]
|
|
26
|
+
}] }
|
|
27
|
+
];
|
|
28
|
+
/** @nocollapse */
|
|
29
|
+
HmctsIdentityBarComponent.ctorParameters = function () { return []; };
|
|
30
|
+
HmctsIdentityBarComponent.propDecorators = {
|
|
31
|
+
content: [{ type: Input }]
|
|
32
|
+
};
|
|
26
33
|
return HmctsIdentityBarComponent;
|
|
27
34
|
}());
|
|
28
35
|
export { HmctsIdentityBarComponent };
|
|
29
|
-
|
|
36
|
+
if (false) {
|
|
37
|
+
/** @type {?} */
|
|
38
|
+
HmctsIdentityBarComponent.prototype.value;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG1jdHMtaWRlbnRpdHktYmFyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BobWN0cy9ycHgteHVpLWNvbW1vbi1saWIvIiwic291cmNlcyI6WyJsaWIvZ292LXVpL2NvbXBvbmVudHMvaG1jdHMtaWRlbnRpdHktYmFyL2htY3RzLWlkZW50aXR5LWJhci5jb21wb25lbnQudHMiXSwibmFtZXMiO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