@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,136 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* Generated from: lib/services/cookie/cookie.service.ts
|
|
4
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5
|
-
*/
|
|
6
|
-
import { DOCUMENT } from '@angular/common';
|
|
7
|
-
import { Inject, Injectable } from '@angular/core';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "@angular/common";
|
|
10
|
-
var CookieService = /** @class */ (function () {
|
|
11
|
-
function CookieService(doc) {
|
|
12
|
-
this.document = (/** @type {?} */ (doc));
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @param {?} key
|
|
16
|
-
* @param {?} value
|
|
17
|
-
* @param {?=} expiryDate
|
|
18
|
-
* @return {?}
|
|
19
|
-
*/
|
|
20
|
-
CookieService.prototype.setCookie = /**
|
|
21
|
-
* @param {?} key
|
|
22
|
-
* @param {?} value
|
|
23
|
-
* @param {?=} expiryDate
|
|
24
|
-
* @return {?}
|
|
25
|
-
*/
|
|
26
|
-
function (key, value, expiryDate) {
|
|
27
|
-
/** @type {?} */
|
|
28
|
-
var expiry = expiryDate ? " expires=" + expiryDate : '';
|
|
29
|
-
/** @type {?} */
|
|
30
|
-
var cookie = key + "=" + value + ";" + expiry;
|
|
31
|
-
this.document.cookie = cookie;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* @param {?} key
|
|
35
|
-
* @return {?}
|
|
36
|
-
*/
|
|
37
|
-
CookieService.prototype.getCookie = /**
|
|
38
|
-
* @param {?} key
|
|
39
|
-
* @return {?}
|
|
40
|
-
*/
|
|
41
|
-
function (key) {
|
|
42
|
-
/** @type {?} */
|
|
43
|
-
var cookieValue = this.document.cookie
|
|
44
|
-
.split('; ')
|
|
45
|
-
.find((/**
|
|
46
|
-
* @param {?} row
|
|
47
|
-
* @return {?}
|
|
48
|
-
*/
|
|
49
|
-
function (row) { return row.startsWith(key + "="); }))
|
|
50
|
-
.split('=')[1];
|
|
51
|
-
return cookieValue;
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* @param {?} key
|
|
55
|
-
* @param {?=} path
|
|
56
|
-
* @param {?=} domain
|
|
57
|
-
* @return {?}
|
|
58
|
-
*/
|
|
59
|
-
CookieService.prototype.deleteCookie = /**
|
|
60
|
-
* @param {?} key
|
|
61
|
-
* @param {?=} path
|
|
62
|
-
* @param {?=} domain
|
|
63
|
-
* @return {?}
|
|
64
|
-
*/
|
|
65
|
-
function (key, path, domain) {
|
|
66
|
-
/** @type {?} */
|
|
67
|
-
var pathValue = path ? "; path=" + path : '';
|
|
68
|
-
/** @type {?} */
|
|
69
|
-
var domainValue = domain ? "; domain=" + domain : '';
|
|
70
|
-
this.document.cookie = key + "=" + pathValue + domainValue + "; expires=Thu, 01 Jan 1970 00:00:01 GMT; max-age=0";
|
|
71
|
-
};
|
|
72
|
-
/**
|
|
73
|
-
* @param {?} key
|
|
74
|
-
* @param {?=} path
|
|
75
|
-
* @param {?=} domain
|
|
76
|
-
* @return {?}
|
|
77
|
-
*/
|
|
78
|
-
CookieService.prototype.deleteCookieByPartialMatch = /**
|
|
79
|
-
* @param {?} key
|
|
80
|
-
* @param {?=} path
|
|
81
|
-
* @param {?=} domain
|
|
82
|
-
* @return {?}
|
|
83
|
-
*/
|
|
84
|
-
function (key, path, domain) {
|
|
85
|
-
var _this = this;
|
|
86
|
-
this.document.cookie
|
|
87
|
-
.split('; ')
|
|
88
|
-
.filter((/**
|
|
89
|
-
* @param {?} row
|
|
90
|
-
* @return {?}
|
|
91
|
-
*/
|
|
92
|
-
function (row) { return row.startsWith("" + key); }))
|
|
93
|
-
.forEach((/**
|
|
94
|
-
* @param {?} element
|
|
95
|
-
* @return {?}
|
|
96
|
-
*/
|
|
97
|
-
function (element) {
|
|
98
|
-
_this.deleteCookie(element.split('=')[0], path, domain);
|
|
99
|
-
}));
|
|
100
|
-
};
|
|
101
|
-
/**
|
|
102
|
-
* @param {?} key
|
|
103
|
-
* @return {?}
|
|
104
|
-
*/
|
|
105
|
-
CookieService.prototype.checkCookie = /**
|
|
106
|
-
* @param {?} key
|
|
107
|
-
* @return {?}
|
|
108
|
-
*/
|
|
109
|
-
function (key) {
|
|
110
|
-
return this.document.cookie.split('; ').some((/**
|
|
111
|
-
* @param {?} item
|
|
112
|
-
* @return {?}
|
|
113
|
-
*/
|
|
114
|
-
function (item) { return item.trim().startsWith(key + "="); }));
|
|
115
|
-
};
|
|
116
|
-
CookieService.decorators = [
|
|
117
|
-
{ type: Injectable, args: [{
|
|
118
|
-
providedIn: 'root'
|
|
119
|
-
},] }
|
|
120
|
-
];
|
|
121
|
-
/** @nocollapse */
|
|
122
|
-
CookieService.ctorParameters = function () { return [
|
|
123
|
-
{ type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
|
|
124
|
-
]; };
|
|
125
|
-
/** @nocollapse */ CookieService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function CookieService_Factory() { return new CookieService(i0.ɵɵinject(i1.DOCUMENT)); }, token: CookieService, providedIn: "root" });
|
|
126
|
-
return CookieService;
|
|
127
|
-
}());
|
|
128
|
-
export { CookieService };
|
|
129
|
-
if (false) {
|
|
130
|
-
/**
|
|
131
|
-
* @type {?}
|
|
132
|
-
* @private
|
|
133
|
-
*/
|
|
134
|
-
CookieService.prototype.document;
|
|
135
|
-
}
|
|
136
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIj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2V5OiBzdHJpbmcpOiBib29sZWFuIHtcbiAgICByZXR1cm4gdGhpcy5kb2N1bWVudC5jb29raWUuc3BsaXQoJzsgJykuc29tZShpdGVtID0+IGl0ZW0udHJpbSgpLnN0YXJ0c1dpdGgoYCR7a2V5fT1gKSk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* Generated from: lib/services/feature-toggle/feature-toggle.guard.ts
|
|
4
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5
|
-
*/
|
|
6
|
-
import * as tslib_1 from "tslib";
|
|
7
|
-
import { Injectable } from '@angular/core';
|
|
8
|
-
import { Router } from '@angular/router';
|
|
9
|
-
import { combineLatest } from 'rxjs';
|
|
10
|
-
import { map } from 'rxjs/operators';
|
|
11
|
-
import { FeatureToggleService } from './feature-toggle.service';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
import * as i1 from "./feature-toggle.service";
|
|
14
|
-
import * as i2 from "@angular/router";
|
|
15
|
-
var FeatureToggleGuard = /** @class */ (function () {
|
|
16
|
-
function FeatureToggleGuard(featureToggleService, router) {
|
|
17
|
-
this.featureToggleService = featureToggleService;
|
|
18
|
-
this.router = router;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Usage: Add the FeatureToggleGuard as the Guard for a route, and provide the following
|
|
22
|
-
* in the data array for the route:
|
|
23
|
-
* - needsFeaturesEnabled: An array of feature keys that need to be enabled for this route
|
|
24
|
-
* - featureDisabledRedirect: the URL to redirect to when the this route is not accessible due to disabled features
|
|
25
|
-
* @param route Automatically provided by Angular
|
|
26
|
-
*/
|
|
27
|
-
/**
|
|
28
|
-
* Usage: Add the FeatureToggleGuard as the Guard for a route, and provide the following
|
|
29
|
-
* in the data array for the route:
|
|
30
|
-
* - needsFeaturesEnabled: An array of feature keys that need to be enabled for this route
|
|
31
|
-
* - featureDisabledRedirect: the URL to redirect to when the this route is not accessible due to disabled features
|
|
32
|
-
* @param {?} route Automatically provided by Angular
|
|
33
|
-
* @return {?}
|
|
34
|
-
*/
|
|
35
|
-
FeatureToggleGuard.prototype.canActivate = /**
|
|
36
|
-
* Usage: Add the FeatureToggleGuard as the Guard for a route, and provide the following
|
|
37
|
-
* in the data array for the route:
|
|
38
|
-
* - needsFeaturesEnabled: An array of feature keys that need to be enabled for this route
|
|
39
|
-
* - featureDisabledRedirect: the URL to redirect to when the this route is not accessible due to disabled features
|
|
40
|
-
* @param {?} route Automatically provided by Angular
|
|
41
|
-
* @return {?}
|
|
42
|
-
*/
|
|
43
|
-
function (route) {
|
|
44
|
-
var _this = this;
|
|
45
|
-
return combineLatest.apply(void 0, tslib_1.__spread(((/** @type {?} */ (route.data.needsFeaturesEnabled))).map((/**
|
|
46
|
-
* @param {?} feature
|
|
47
|
-
* @return {?}
|
|
48
|
-
*/
|
|
49
|
-
function (feature) { return _this.featureToggleService.getValueOnce(feature, false); })))).pipe(map((/**
|
|
50
|
-
* @param {?} featureStatuses
|
|
51
|
-
* @return {?}
|
|
52
|
-
*/
|
|
53
|
-
function (featureStatuses) { return featureStatuses.every((/**
|
|
54
|
-
* @param {?} status
|
|
55
|
-
* @return {?}
|
|
56
|
-
*/
|
|
57
|
-
function (status) { return status; })); })), map((/**
|
|
58
|
-
* @param {?} status
|
|
59
|
-
* @return {?}
|
|
60
|
-
*/
|
|
61
|
-
function (status) { return status || _this.router.parseUrl((/** @type {?} */ (route.data.featureDisabledRedirect))); })));
|
|
62
|
-
};
|
|
63
|
-
FeatureToggleGuard.decorators = [
|
|
64
|
-
{ type: Injectable, args: [{
|
|
65
|
-
providedIn: 'root'
|
|
66
|
-
},] }
|
|
67
|
-
];
|
|
68
|
-
/** @nocollapse */
|
|
69
|
-
FeatureToggleGuard.ctorParameters = function () { return [
|
|
70
|
-
{ type: FeatureToggleService },
|
|
71
|
-
{ type: Router }
|
|
72
|
-
]; };
|
|
73
|
-
/** @nocollapse */ FeatureToggleGuard.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function FeatureToggleGuard_Factory() { return new FeatureToggleGuard(i0.ɵɵinject(i1.FeatureToggleService), i0.ɵɵinject(i2.Router)); }, token: FeatureToggleGuard, providedIn: "root" });
|
|
74
|
-
return FeatureToggleGuard;
|
|
75
|
-
}());
|
|
76
|
-
export { FeatureToggleGuard };
|
|
77
|
-
if (false) {
|
|
78
|
-
/**
|
|
79
|
-
* @type {?}
|
|
80
|
-
* @private
|
|
81
|
-
*/
|
|
82
|
-
FeatureToggleGuard.prototype.featureToggleService;
|
|
83
|
-
/**
|
|
84
|
-
* @type {?}
|
|
85
|
-
* @private
|
|
86
|
-
*/
|
|
87
|
-
FeatureToggleGuard.prototype.router;
|
|
88
|
-
}
|
|
89
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmVhdHVyZS10b2dnbGUuZ3VhcmQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaG1jdHMvcnB4LXh1aS1jb21tb24tbGliLyIsInNvdXJjZXMiOlsibGliL3NlcnZpY2VzL2ZlYXR1cmUtdG9nZ2xlL2ZlYXR1cmUtdG9nZ2xlLmd1YXJkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUF1QyxNQUFNLEVBQVcsTUFBTSxpQkFBaUIsQ0FBQztBQUN2RixPQUFPLEVBQUUsYUFBYSxFQUFjLE1BQU0sTUFBTSxDQUFDO0FBQ2pELE9BQU8sRUFBRSxHQUFHLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNyQyxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQzs7OztBQUVoRTtJQUtJLDRCQUNxQ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XG4gICAgICogLSBmZWF0dXJlRGlzYWJsZWRSZWRpcmVjdDogdGhlIFVSTCB0byByZWRpcmVjdCB0byB3aGVuIHRoZSB0aGlzIHJvdXRlIGlzIG5vdCBhY2Nlc3NpYmxlIGR1ZSB0byBkaXNhYmxlZCBmZWF0dXJlc1xuICAgICAqIEBwYXJhbSByb3V0ZSBBdXRvbWF0aWNhbGx5IHByb3ZpZGVkIGJ5IEFuZ3VsYXJcbiAgICAgKi9cbiAgICBwdWJsaWMgY2FuQWN0aXZhdGUocm91dGU6IEFjdGl2YXRlZFJvdXRlU25hcHNob3QpOiBPYnNlcnZhYmxlPGJvb2xlYW4gfCBVcmxUcmVlPiB7XG4gICAgICAgIHJldHVybiBjb21iaW5lTGF0ZXN0KC4uLihyb3V0ZS5kYXRhLm5lZWRzRmVhdHVyZXNFbmFibGVkIGFzIHN0cmluZ1tdKS5tYXAoXG4gICAgICAgICAgICAgICAgZmVhdHVyZSA9PiB0aGlzLmZlYXR1cmVUb2dnbGVTZXJ2aWNlLmdldFZhbHVlT25jZTxib29sZWFuPihmZWF0dXJlLCBmYWxzZSlcbiAgICAgICAgKSkucGlwZShcbiAgICAgICAgICAgIG1hcChmZWF0dXJlU3RhdHVzZXMgPT4gZmVhdHVyZVN0YXR1c2VzLmV2ZXJ5KHN0YXR1cyA9PiBzdGF0dXMpKSxcbiAgICAgICAgICAgIG1hcChzdGF0dXMgPT4gc3RhdHVzIHx8IHRoaXMucm91dGVyLnBhcnNlVXJsKHJvdXRlLmRhdGEuZmVhdHVyZURpc2FibGVkUmVkaXJlY3QgYXMgc3RyaW5nKSlcbiAgICAgICAgKTtcbiAgICB9XG59XG4iXX0=
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* Generated from: lib/services/feature-toggle/feature-toggle.service.ts
|
|
4
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5
|
-
*/
|
|
6
|
-
import { Injectable } from '@angular/core';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
var FeatureToggleService = /** @class */ (function () {
|
|
9
|
-
function FeatureToggleService() {
|
|
10
|
-
}
|
|
11
|
-
// tslint:disable-next-line: variable-name
|
|
12
|
-
// tslint:disable-next-line: variable-name
|
|
13
|
-
/**
|
|
14
|
-
* @param {?} _user
|
|
15
|
-
* @param {?} _clientId
|
|
16
|
-
* @return {?}
|
|
17
|
-
*/
|
|
18
|
-
FeatureToggleService.prototype.initialize =
|
|
19
|
-
// tslint:disable-next-line: variable-name
|
|
20
|
-
/**
|
|
21
|
-
* @param {?} _user
|
|
22
|
-
* @param {?} _clientId
|
|
23
|
-
* @return {?}
|
|
24
|
-
*/
|
|
25
|
-
function (_user, _clientId) {
|
|
26
|
-
throw new Error('Not implemented');
|
|
27
|
-
};
|
|
28
|
-
// tslint:disable-next-line: variable-name
|
|
29
|
-
// tslint:disable-next-line: variable-name
|
|
30
|
-
/**
|
|
31
|
-
* @param {?} _feature
|
|
32
|
-
* @return {?}
|
|
33
|
-
*/
|
|
34
|
-
FeatureToggleService.prototype.isEnabled =
|
|
35
|
-
// tslint:disable-next-line: variable-name
|
|
36
|
-
/**
|
|
37
|
-
* @param {?} _feature
|
|
38
|
-
* @return {?}
|
|
39
|
-
*/
|
|
40
|
-
function (_feature) {
|
|
41
|
-
throw new Error('Not implemented');
|
|
42
|
-
};
|
|
43
|
-
// tslint:disable-next-line: variable-name
|
|
44
|
-
// tslint:disable-next-line: variable-name
|
|
45
|
-
/**
|
|
46
|
-
* @template R
|
|
47
|
-
* @param {?} _key
|
|
48
|
-
* @param {?} _defaultValue
|
|
49
|
-
* @return {?}
|
|
50
|
-
*/
|
|
51
|
-
FeatureToggleService.prototype.getValue =
|
|
52
|
-
// tslint:disable-next-line: variable-name
|
|
53
|
-
/**
|
|
54
|
-
* @template R
|
|
55
|
-
* @param {?} _key
|
|
56
|
-
* @param {?} _defaultValue
|
|
57
|
-
* @return {?}
|
|
58
|
-
*/
|
|
59
|
-
function (_key, _defaultValue) {
|
|
60
|
-
throw new Error('Not implemented');
|
|
61
|
-
};
|
|
62
|
-
// tslint:disable-next-line: variable-name
|
|
63
|
-
// tslint:disable-next-line: variable-name
|
|
64
|
-
/**
|
|
65
|
-
* @template R
|
|
66
|
-
* @param {?} _key
|
|
67
|
-
* @param {?} _defaultValue
|
|
68
|
-
* @return {?}
|
|
69
|
-
*/
|
|
70
|
-
FeatureToggleService.prototype.getValueOnce =
|
|
71
|
-
// tslint:disable-next-line: variable-name
|
|
72
|
-
/**
|
|
73
|
-
* @template R
|
|
74
|
-
* @param {?} _key
|
|
75
|
-
* @param {?} _defaultValue
|
|
76
|
-
* @return {?}
|
|
77
|
-
*/
|
|
78
|
-
function (_key, _defaultValue) {
|
|
79
|
-
throw new Error('Not implemented');
|
|
80
|
-
};
|
|
81
|
-
FeatureToggleService.decorators = [
|
|
82
|
-
{ type: Injectable, args: [{
|
|
83
|
-
providedIn: 'root'
|
|
84
|
-
},] }
|
|
85
|
-
];
|
|
86
|
-
/** @nocollapse */ FeatureToggleService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function FeatureToggleService_Factory() { return new FeatureToggleService(); }, token: FeatureToggleService, providedIn: "root" });
|
|
87
|
-
return FeatureToggleService;
|
|
88
|
-
}());
|
|
89
|
-
export { FeatureToggleService };
|
|
90
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmVhdHVyZS10b2dnbGUuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BobWN0cy9ycHgteHVpLWNvbW1vbi1saWIvIiwic291cmNlcyI6WyJsaWIvc2VydmljZXMvZmVhdHVyZS10b2dnbGUvZmVhdHVyZS10b2dnbGUuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLE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HByb3ZpZGVkSW46ICdyb290J1xufSlcbmV4cG9ydCBjbGFzcyBGZWF0dXJlVG9nZ2xlU2VydmljZSB7XG4gICAgLy8gdHNsaW50OmRpc2FibGUtbmV4dC1saW5lOiB2YXJpYWJsZS1uYW1lXG4gICAgcHVibGljIGluaXRpYWxpemUoX3VzZXI6IEZlYXR1cmVVc2VyLCBfY2xpZW50SWQ6IHN0cmluZyk6IHZvaWQge1xuICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ05vdCBpbXBsZW1lbnRlZCcpO1xuICAgIH1cbiAgICAvLyB0c2xpbnQ6ZGlzYWJsZS1uZXh0LWxpbmU6IHZhcmlhYmxlLW5hbWVcbiAgICBwdWJsaWMgaXNFbmFibGVkKF9mZWF0dXJlOiBzdHJpbmcpOiBPYnNlcnZhYmxlPGJvb2xlYW4+IHtcbiAgICAgICAgdGhyb3cgbmV3IEVycm9yKCdOb3QgaW1wbGVtZW50ZWQnKTtcbiAgICB9XG4gICAgLy8gdHNsaW50OmRpc2FibGUtbmV4dC1saW5lOiB2YXJpYWJsZS1uYW1lXG4gICAgcHVibGljIGdldFZhbHVlPFI+KF9rZXk6IHN0cmluZywgX2RlZmF1bHRWYWx1ZTogUik6IE9ic2VydmFibGU8Uj4ge1xuICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ05vdCBpbXBsZW1lbnRlZCcpO1xuICAgIH1cblxuICAgIC8vIHRzbGludDpkaXNhYmxlLW5leHQtbGluZTogdmFyaWFibGUtbmFtZVxuICAgIHB1YmxpYyBnZXRWYWx1ZU9uY2U8Uj4oX2tleTogc3RyaW5nLCBfZGVmYXVsdFZhbHVlOiBSKTogT2JzZXJ2YWJsZTxSPiB7XG4gICAgICAgIHRocm93IG5ldyBFcnJvcignTm90IGltcGxlbWVudGVkJyk7XG4gICAgfVxufVxuIl19
|
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* Generated from: lib/services/feature-toggle/launch-darkly.service.ts
|
|
4
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5
|
-
*/
|
|
6
|
-
import { Injectable } from '@angular/core';
|
|
7
|
-
import * as LDClient from 'launchdarkly-js-client-sdk';
|
|
8
|
-
import { BehaviorSubject } from 'rxjs';
|
|
9
|
-
import { distinctUntilChanged, filter, map } from 'rxjs/operators';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
var LaunchDarklyService = /** @class */ (function () {
|
|
12
|
-
function LaunchDarklyService() {
|
|
13
|
-
this.ready = new BehaviorSubject(false);
|
|
14
|
-
this.features = {};
|
|
15
|
-
this.user = { anonymous: true };
|
|
16
|
-
this.clientId = '';
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* @param {?=} user
|
|
20
|
-
* @param {?=} clientId
|
|
21
|
-
* @return {?}
|
|
22
|
-
*/
|
|
23
|
-
LaunchDarklyService.prototype.initialize = /**
|
|
24
|
-
* @param {?=} user
|
|
25
|
-
* @param {?=} clientId
|
|
26
|
-
* @return {?}
|
|
27
|
-
*/
|
|
28
|
-
function (user, clientId) {
|
|
29
|
-
var _this = this;
|
|
30
|
-
if (user === void 0) { user = { anonymous: true }; }
|
|
31
|
-
this.ready.next(false);
|
|
32
|
-
this.user = user;
|
|
33
|
-
this.clientId = clientId;
|
|
34
|
-
this.client = LDClient.initialize(this.clientId, this.user, {});
|
|
35
|
-
this.client.on('ready', (/**
|
|
36
|
-
* @return {?}
|
|
37
|
-
*/
|
|
38
|
-
function () {
|
|
39
|
-
_this.client.identify(_this.user).then((/**
|
|
40
|
-
* @return {?}
|
|
41
|
-
*/
|
|
42
|
-
function () { return _this.ready.next(true); }));
|
|
43
|
-
}));
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* @param {?} feature
|
|
47
|
-
* @return {?}
|
|
48
|
-
*/
|
|
49
|
-
LaunchDarklyService.prototype.isEnabled = /**
|
|
50
|
-
* @param {?} feature
|
|
51
|
-
* @return {?}
|
|
52
|
-
*/
|
|
53
|
-
function (feature) {
|
|
54
|
-
return this.getValue(feature, false);
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
* @template R
|
|
58
|
-
* @param {?} feature
|
|
59
|
-
* @return {?}
|
|
60
|
-
*/
|
|
61
|
-
LaunchDarklyService.prototype.getArray = /**
|
|
62
|
-
* @template R
|
|
63
|
-
* @param {?} feature
|
|
64
|
-
* @return {?}
|
|
65
|
-
*/
|
|
66
|
-
function (feature) {
|
|
67
|
-
return this.getValue(feature, []);
|
|
68
|
-
};
|
|
69
|
-
/**
|
|
70
|
-
* @template R
|
|
71
|
-
* @param {?} feature
|
|
72
|
-
* @param {?} defaultValue
|
|
73
|
-
* @return {?}
|
|
74
|
-
*/
|
|
75
|
-
LaunchDarklyService.prototype.getValue = /**
|
|
76
|
-
* @template R
|
|
77
|
-
* @param {?} feature
|
|
78
|
-
* @param {?} defaultValue
|
|
79
|
-
* @return {?}
|
|
80
|
-
*/
|
|
81
|
-
function (feature, defaultValue) {
|
|
82
|
-
var _this = this;
|
|
83
|
-
if (!this.features.hasOwnProperty(feature)) {
|
|
84
|
-
this.features[feature] = new BehaviorSubject(defaultValue);
|
|
85
|
-
this.ready.pipe(filter((/**
|
|
86
|
-
* @param {?} ready
|
|
87
|
-
* @return {?}
|
|
88
|
-
*/
|
|
89
|
-
function (ready) { return ready; })), map((/**
|
|
90
|
-
* @return {?}
|
|
91
|
-
*/
|
|
92
|
-
function () { return _this.client.variation(feature, defaultValue); }))).subscribe((/**
|
|
93
|
-
* @param {?} value
|
|
94
|
-
* @return {?}
|
|
95
|
-
*/
|
|
96
|
-
function (value) {
|
|
97
|
-
_this.features[feature].next(value);
|
|
98
|
-
_this.client.on("change:" + feature, (/**
|
|
99
|
-
* @param {?} val
|
|
100
|
-
* @return {?}
|
|
101
|
-
*/
|
|
102
|
-
function (val) {
|
|
103
|
-
_this.features[feature].next(val);
|
|
104
|
-
}));
|
|
105
|
-
}));
|
|
106
|
-
}
|
|
107
|
-
return this.features[feature].pipe(distinctUntilChanged());
|
|
108
|
-
};
|
|
109
|
-
/**
|
|
110
|
-
* This method returns an observable that will only get the state of the feature toggle
|
|
111
|
-
* once. It calls the LD SDK directly, and should only be used in circumstances where
|
|
112
|
-
* only one value should be emitted, that value coming directly from LD. This will likely
|
|
113
|
-
* only apply for Guards, and should be used only when absolutely necessary.
|
|
114
|
-
* @see getValue for regular usage.
|
|
115
|
-
* @param feature string
|
|
116
|
-
* @param defaultValue R
|
|
117
|
-
*/
|
|
118
|
-
/**
|
|
119
|
-
* This method returns an observable that will only get the state of the feature toggle
|
|
120
|
-
* once. It calls the LD SDK directly, and should only be used in circumstances where
|
|
121
|
-
* only one value should be emitted, that value coming directly from LD. This will likely
|
|
122
|
-
* only apply for Guards, and should be used only when absolutely necessary.
|
|
123
|
-
* @see getValue for regular usage.
|
|
124
|
-
* @template R
|
|
125
|
-
* @param {?} feature string
|
|
126
|
-
* @param {?} defaultValue R
|
|
127
|
-
* @return {?}
|
|
128
|
-
*/
|
|
129
|
-
LaunchDarklyService.prototype.getValueOnce = /**
|
|
130
|
-
* This method returns an observable that will only get the state of the feature toggle
|
|
131
|
-
* once. It calls the LD SDK directly, and should only be used in circumstances where
|
|
132
|
-
* only one value should be emitted, that value coming directly from LD. This will likely
|
|
133
|
-
* only apply for Guards, and should be used only when absolutely necessary.
|
|
134
|
-
* @see getValue for regular usage.
|
|
135
|
-
* @template R
|
|
136
|
-
* @param {?} feature string
|
|
137
|
-
* @param {?} defaultValue R
|
|
138
|
-
* @return {?}
|
|
139
|
-
*/
|
|
140
|
-
function (feature, defaultValue) {
|
|
141
|
-
var _this = this;
|
|
142
|
-
return this.ready.pipe(filter((/**
|
|
143
|
-
* @param {?} ready
|
|
144
|
-
* @return {?}
|
|
145
|
-
*/
|
|
146
|
-
function (ready) { return ready; })), map((/**
|
|
147
|
-
* @return {?}
|
|
148
|
-
*/
|
|
149
|
-
function () { return _this.client.variation(feature, defaultValue); })));
|
|
150
|
-
};
|
|
151
|
-
LaunchDarklyService.decorators = [
|
|
152
|
-
{ type: Injectable, args: [{
|
|
153
|
-
providedIn: 'root'
|
|
154
|
-
},] }
|
|
155
|
-
];
|
|
156
|
-
/** @nocollapse */ LaunchDarklyService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function LaunchDarklyService_Factory() { return new LaunchDarklyService(); }, token: LaunchDarklyService, providedIn: "root" });
|
|
157
|
-
return LaunchDarklyService;
|
|
158
|
-
}());
|
|
159
|
-
export { LaunchDarklyService };
|
|
160
|
-
if (false) {
|
|
161
|
-
/**
|
|
162
|
-
* @type {?}
|
|
163
|
-
* @private
|
|
164
|
-
*/
|
|
165
|
-
LaunchDarklyService.prototype.client;
|
|
166
|
-
/**
|
|
167
|
-
* @type {?}
|
|
168
|
-
* @private
|
|
169
|
-
*/
|
|
170
|
-
LaunchDarklyService.prototype.ready;
|
|
171
|
-
/**
|
|
172
|
-
* @type {?}
|
|
173
|
-
* @private
|
|
174
|
-
*/
|
|
175
|
-
LaunchDarklyService.prototype.features;
|
|
176
|
-
/**
|
|
177
|
-
* @type {?}
|
|
178
|
-
* @private
|
|
179
|
-
*/
|
|
180
|
-
LaunchDarklyService.prototype.user;
|
|
181
|
-
/**
|
|
182
|
-
* @type {?}
|
|
183
|
-
* @private
|
|
184
|
-
*/
|
|
185
|
-
LaunchDarklyService.prototype.clientId;
|
|
186
|
-
}
|
|
187
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF1bmNoLWRhcmtseS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGhtY3RzL3JweC14dWktY29tbW9uLWxpYi8iLCJzb3VyY2VzIjpbImxpYi9zZXJ2aWNlcy9mZWF0dXJlLXRvZ2dsZS9sYXVuY2gtZGFya2x5LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwa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