@hmcts/ccd-case-ui-toolkit 5.0.2-angular11-upgrade → 5.0.6-angular11-upgrade
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-ccd-case-ui-toolkit.umd.js +7239 -0
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -0
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +17 -0
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -0
- package/esm2015/hmcts-ccd-case-ui-toolkit.js +5 -0
- package/esm2015/lib/app.config.js +37 -0
- package/esm2015/lib/components/banners/alert/alert-icon-class.pipe.js +25 -0
- package/esm2015/lib/components/banners/alert/alert.component.js +101 -0
- package/esm2015/lib/components/banners/alert/alert.module.js +26 -0
- package/esm2015/lib/components/banners/alert/index.js +4 -0
- package/esm2015/lib/components/banners/banners.module.js +27 -0
- package/esm2015/lib/components/banners/index.js +2 -0
- package/esm2015/lib/components/body/body.component.js +25 -0
- package/esm2015/lib/components/body/body.module.js +20 -0
- package/esm2015/lib/components/body/index.js +2 -0
- package/esm2015/lib/components/footer/footer.component.js +105 -0
- package/esm2015/lib/components/footer/footers.module.js +19 -0
- package/esm2015/lib/components/footer/index.js +2 -0
- package/esm2015/lib/components/form/date-input/date-input.component.js +329 -0
- package/esm2015/lib/components/form/date-input/index.js +2 -0
- package/esm2015/lib/components/form/form.module.js +27 -0
- package/esm2015/lib/components/form/index.js +2 -0
- package/esm2015/lib/components/header/header-bar/header-bar.component.js +108 -0
- package/esm2015/lib/components/header/header-bar/index.js +2 -0
- package/esm2015/lib/components/header/headers.module.js +23 -0
- package/esm2015/lib/components/header/index.js +5 -0
- package/esm2015/lib/components/header/navigation/index.js +3 -0
- package/esm2015/lib/components/header/navigation/navigation-item.component.js +44 -0
- package/esm2015/lib/components/header/navigation/navigation.component.js +30 -0
- package/esm2015/lib/components/header/phase/index.js +2 -0
- package/esm2015/lib/components/header/phase/phase.component.js +42 -0
- package/esm2015/lib/components/index.js +7 -0
- package/esm2015/lib/components/tabs/index.js +4 -0
- package/esm2015/lib/components/tabs/tab.component.js +34 -0
- package/esm2015/lib/components/tabs/tabs.component.js +86 -0
- package/esm2015/lib/components/tabs/tabs.module.js +36 -0
- package/esm2015/lib/shared/commons/constants.js +12 -0
- package/esm2015/lib/shared/components/case-editor/case-access-utils/index.js +94 -0
- package/esm2015/lib/shared/components/case-editor/domain/confirmation.model.js +21 -0
- package/esm2015/lib/shared/components/case-editor/domain/event-completion-return-states.enum.model.js +7 -0
- package/esm2015/lib/shared/components/case-editor/domain/event-completion-state-machine-context.model.js +2 -0
- package/esm2015/lib/shared/components/case-editor/domain/event-completion-states.enum.model.js +14 -0
- package/esm2015/lib/shared/components/case-editor/domain/index.js +8 -0
- package/esm2015/lib/shared/components/case-editor/domain/wizard-page-field-complex-override.model.js +3 -0
- package/esm2015/lib/shared/components/case-editor/domain/wizard-page-field.model.js +3 -0
- package/esm2015/lib/shared/components/case-editor/domain/wizard-page.model.js +28 -0
- package/esm2015/lib/shared/components/case-editor/domain/wizard.model.js +57 -0
- package/esm2015/lib/shared/components/case-editor/services/case.notifier.js +19 -0
- package/esm2015/lib/shared/components/case-editor/services/cases.service.js +270 -0
- package/esm2015/lib/shared/components/case-editor/services/wizard-page-field-to-case-field.mapper.js +115 -0
- package/esm2015/lib/shared/components/case-editor/services/work-allocation.service.js +170 -0
- package/esm2015/lib/shared/components/dialogs/document-dialog/document-dialog.component.js +59 -0
- package/esm2015/lib/shared/components/dialogs/remove-dialog/remove-dialog.component.js +57 -0
- package/esm2015/lib/shared/components/helpers/index.js +2 -0
- package/esm2015/lib/shared/components/helpers/init-dialog-helper.js +16 -0
- package/esm2015/lib/shared/components/palette/address/address-option.model.js +24 -0
- package/esm2015/lib/shared/components/palette/address/write-address-field.component.js +244 -0
- package/esm2015/lib/shared/components/palette/base-field/abstract-field-read.component.js +32 -0
- package/esm2015/lib/shared/components/palette/base-field/abstract-field-write.component.js +44 -0
- package/esm2015/lib/shared/components/palette/base-field/abstract-form-field.component.js +79 -0
- package/esm2015/lib/shared/components/palette/base-field/field-read-label.component.js +93 -0
- package/esm2015/lib/shared/components/palette/base-field/field-read.component.js +85 -0
- package/esm2015/lib/shared/components/palette/base-field/field-write.component.js +84 -0
- package/esm2015/lib/shared/components/palette/base-field/index.js +8 -0
- package/esm2015/lib/shared/components/palette/base-field/palette-context.enum.js +7 -0
- package/esm2015/lib/shared/components/palette/base-field/payment-field.component.js +32 -0
- package/esm2015/lib/shared/components/palette/case-link/read-case-link-field.component.js +38 -0
- package/esm2015/lib/shared/components/palette/case-link/write-case-link-field.component.js +125 -0
- package/esm2015/lib/shared/components/palette/collection/collection-create-checker.service.js +42 -0
- package/esm2015/lib/shared/components/palette/collection/index.js +3 -0
- package/esm2015/lib/shared/components/palette/collection/read-collection-field.component.js +91 -0
- package/esm2015/lib/shared/components/palette/collection/write-collection-field.component.js +414 -0
- package/esm2015/lib/shared/components/palette/complex/ccd-collection-table-value-case-fields.pipe.js +29 -0
- package/esm2015/lib/shared/components/palette/complex/ccd-cyapage-label-filter.pipe.js +29 -0
- package/esm2015/lib/shared/components/palette/complex/ccd-read-fields-filter.pipe.js +154 -0
- package/esm2015/lib/shared/components/palette/complex/ccd-tab-fields.pipe.js +31 -0
- package/esm2015/lib/shared/components/palette/complex/cdd-page-fields.pipe.js +39 -0
- package/esm2015/lib/shared/components/palette/complex/fields-filter.pipe.js +103 -0
- package/esm2015/lib/shared/components/palette/complex/index.js +12 -0
- package/esm2015/lib/shared/components/palette/complex/read-complex-field-collection-table.component.js +414 -0
- package/esm2015/lib/shared/components/palette/complex/read-complex-field-raw.component.js +61 -0
- package/esm2015/lib/shared/components/palette/complex/read-complex-field-table.component.js +97 -0
- package/esm2015/lib/shared/components/palette/complex/read-complex-field.component.js +81 -0
- package/esm2015/lib/shared/components/palette/complex/sort-order.js +7 -0
- package/esm2015/lib/shared/components/palette/complex/write-complex-field.component.js +178 -0
- package/esm2015/lib/shared/components/palette/date/index.js +4 -0
- package/esm2015/lib/shared/components/palette/date/read-date-field.component.js +29 -0
- package/esm2015/lib/shared/components/palette/date/write-date-container-field.component.js +41 -0
- package/esm2015/lib/shared/components/palette/date/write-date-field.component.js +81 -0
- package/esm2015/lib/shared/components/palette/datetime-picker/datetime-picker-utils.js +12 -0
- package/esm2015/lib/shared/components/palette/datetime-picker/datetime-picker.component.js +300 -0
- package/esm2015/lib/shared/components/palette/datetime-picker/index.js +2 -0
- package/esm2015/lib/shared/components/palette/document/document-url.pipe.js +24 -0
- package/esm2015/lib/shared/components/palette/document/file-upload-progress.guard.js +29 -0
- package/esm2015/lib/shared/components/palette/document/file-upload-state.service.js +16 -0
- package/esm2015/lib/shared/components/palette/document/index.js +4 -0
- package/esm2015/lib/shared/components/palette/document/read-document-field.component.js +80 -0
- package/esm2015/lib/shared/components/palette/document/write-document-field.component.js +369 -0
- package/esm2015/lib/shared/components/palette/dynamic-list/dynamic-list.pipe.js +18 -0
- package/esm2015/lib/shared/components/palette/dynamic-list/index.js +4 -0
- package/esm2015/lib/shared/components/palette/dynamic-list/read-dynamic-list-field.component.js +35 -0
- package/esm2015/lib/shared/components/palette/dynamic-list/write-dynamic-list-field.component.js +121 -0
- package/esm2015/lib/shared/components/palette/dynamic-radio-list/dynamic-radio-list.pipe.js +25 -0
- package/esm2015/lib/shared/components/palette/dynamic-radio-list/index.js +4 -0
- package/esm2015/lib/shared/components/palette/dynamic-radio-list/read-dynamic-radio-list-field.component.js +41 -0
- package/esm2015/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.js +126 -0
- package/esm2015/lib/shared/components/palette/email/index.js +3 -0
- package/esm2015/lib/shared/components/palette/email/read-email-field.component.js +36 -0
- package/esm2015/lib/shared/components/palette/email/write-email-field.component.js +76 -0
- package/esm2015/lib/shared/components/palette/fixed-list/fixed-list.pipe.js +23 -0
- package/esm2015/lib/shared/components/palette/fixed-list/index.js +4 -0
- package/esm2015/lib/shared/components/palette/fixed-list/read-fixed-list-field.component.js +25 -0
- package/esm2015/lib/shared/components/palette/fixed-list/write-fixed-list-field.component.js +110 -0
- package/esm2015/lib/shared/components/palette/fixed-radio-list/fixed-radio-list.pipe.js +18 -0
- package/esm2015/lib/shared/components/palette/fixed-radio-list/index.js +4 -0
- package/esm2015/lib/shared/components/palette/fixed-radio-list/read-fixed-radio-list-field.component.js +25 -0
- package/esm2015/lib/shared/components/palette/fixed-radio-list/write-fixed-radio-list-field.component.js +101 -0
- package/esm2015/lib/shared/components/palette/history/case-history-viewer-field.component.js +21 -0
- package/esm2015/lib/shared/components/palette/history/event-log/event-log-details.component.js +127 -0
- package/esm2015/lib/shared/components/palette/history/event-log/event-log-table.component.js +234 -0
- package/esm2015/lib/shared/components/palette/history/event-log/event-log.component.js +83 -0
- package/esm2015/lib/shared/components/palette/history/event-log/index.js +4 -0
- package/esm2015/lib/shared/components/palette/history/index.js +3 -0
- package/esm2015/lib/shared/components/palette/label/index.js +2 -0
- package/esm2015/lib/shared/components/palette/label/label-field.component.js +37 -0
- package/esm2015/lib/shared/components/palette/markdown/index.js +2 -0
- package/esm2015/lib/shared/components/palette/markdown/markdown.component.js +44 -0
- package/esm2015/lib/shared/components/palette/money-gbp/index.js +4 -0
- package/esm2015/lib/shared/components/palette/money-gbp/money-gbp-input.component.js +123 -0
- package/esm2015/lib/shared/components/palette/money-gbp/read-money-gbp-field.component.js +48 -0
- package/esm2015/lib/shared/components/palette/money-gbp/write-money-gbp-field.component.js +83 -0
- package/esm2015/lib/shared/components/palette/multi-select-list/index.js +3 -0
- package/esm2015/lib/shared/components/palette/multi-select-list/read-multi-select-list-field.component.js +50 -0
- package/esm2015/lib/shared/components/palette/multi-select-list/write-multi-select-list-field.component.js +132 -0
- package/esm2015/lib/shared/components/palette/number/index.js +3 -0
- package/esm2015/lib/shared/components/palette/number/read-number-field.component.js +25 -0
- package/esm2015/lib/shared/components/palette/number/write-number-field.component.js +76 -0
- package/esm2015/lib/shared/components/palette/order-summary/fee-value.model.js +3 -0
- package/esm2015/lib/shared/components/palette/order-summary/fee.model.js +3 -0
- package/esm2015/lib/shared/components/palette/order-summary/index.js +7 -0
- package/esm2015/lib/shared/components/palette/order-summary/order-summary.model.js +3 -0
- package/esm2015/lib/shared/components/palette/order-summary/read-order-summary-field.component.js +71 -0
- package/esm2015/lib/shared/components/palette/order-summary/read-order-summary-row.component.js +51 -0
- package/esm2015/lib/shared/components/palette/order-summary/write-order-summary-field.component.js +49 -0
- package/esm2015/lib/shared/components/palette/organisation/index.js +6 -0
- package/esm2015/lib/shared/components/palette/organisation/read-organisation-field-raw.component.js +90 -0
- package/esm2015/lib/shared/components/palette/organisation/read-organisation-field-table.component.js +100 -0
- package/esm2015/lib/shared/components/palette/organisation/read-organisation-field.component.js +63 -0
- package/esm2015/lib/shared/components/palette/organisation/write-organisation-complex-field.component.js +37 -0
- package/esm2015/lib/shared/components/palette/organisation/write-organisation-field.component.js +394 -0
- package/esm2015/lib/shared/components/palette/palette.module.js +413 -0
- package/esm2015/lib/shared/components/palette/palette.service.js +114 -0
- package/esm2015/lib/shared/components/palette/payment/case-payment-history-viewer-field.component.js +27 -0
- package/esm2015/lib/shared/components/palette/payment/index.js +2 -0
- package/esm2015/lib/shared/components/palette/phone-uk/index.js +3 -0
- package/esm2015/lib/shared/components/palette/phone-uk/read-phone-uk-field.component.js +23 -0
- package/esm2015/lib/shared/components/palette/phone-uk/write-phone-uk-field.component.js +76 -0
- package/esm2015/lib/shared/components/palette/text/index.js +3 -0
- package/esm2015/lib/shared/components/palette/text/read-text-field.component.js +23 -0
- package/esm2015/lib/shared/components/palette/text/write-text-field.component.js +81 -0
- package/esm2015/lib/shared/components/palette/text-area/index.js +3 -0
- package/esm2015/lib/shared/components/palette/text-area/read-text-area-field.component.js +23 -0
- package/esm2015/lib/shared/components/palette/text-area/write-text-area-field.component.js +91 -0
- package/esm2015/lib/shared/components/palette/unsupported-field.component.js +17 -0
- package/esm2015/lib/shared/components/palette/utils/dash.pipe.js +16 -0
- package/esm2015/lib/shared/components/palette/utils/date.pipe.js +132 -0
- package/esm2015/lib/shared/components/palette/utils/field-label.pipe.js +22 -0
- package/esm2015/lib/shared/components/palette/utils/first-error.pipe.js +41 -0
- package/esm2015/lib/shared/components/palette/utils/index.js +10 -0
- package/esm2015/lib/shared/components/palette/utils/is-compound.pipe.js +31 -0
- package/esm2015/lib/shared/components/palette/utils/is-mandatory.pipe.js +21 -0
- package/esm2015/lib/shared/components/palette/utils/is-read-only-and-not-collection.pipe.js +31 -0
- package/esm2015/lib/shared/components/palette/utils/is-read-only.pipe.js +21 -0
- package/esm2015/lib/shared/components/palette/utils/utils.module.js +62 -0
- package/esm2015/lib/shared/components/palette/waystopay/index.js +2 -0
- package/esm2015/lib/shared/components/palette/waystopay/waystopay-field.component.js +37 -0
- package/esm2015/lib/shared/components/palette/yes-no/index.js +4 -0
- package/esm2015/lib/shared/components/palette/yes-no/read-yes-no-field.component.js +32 -0
- package/esm2015/lib/shared/components/palette/yes-no/write-yes-no-field.component.js +105 -0
- package/esm2015/lib/shared/components/palette/yes-no/yes-no.service.js +48 -0
- package/esm2015/lib/shared/components/search-filters/domain/index.js +2 -0
- package/esm2015/lib/shared/components/search-filters/domain/search-input.model.js +10 -0
- package/esm2015/lib/shared/components/search-filters/index.js +5 -0
- package/esm2015/lib/shared/components/search-filters/search-filters-wrapper.component.js +61 -0
- package/esm2015/lib/shared/components/search-filters/search-filters.component.js +296 -0
- package/esm2015/lib/shared/components/search-filters/search-filters.module.js +65 -0
- package/esm2015/lib/shared/directives/conditional-show/conditional-show-form.directive.js +164 -0
- package/esm2015/lib/shared/directives/conditional-show/conditional-show.module.js +33 -0
- package/esm2015/lib/shared/directives/conditional-show/domain/conditional-show.model.js +296 -0
- package/esm2015/lib/shared/directives/conditional-show/domain/index.js +2 -0
- package/esm2015/lib/shared/directives/conditional-show/index.js +5 -0
- package/esm2015/lib/shared/directives/conditional-show/services/conditional-show-registrar.service.js +19 -0
- package/esm2015/lib/shared/directives/conditional-show/services/grey-bar.service.js +47 -0
- package/esm2015/lib/shared/directives/conditional-show/services/index.js +3 -0
- package/esm2015/lib/shared/directives/focus-element/focus-element.directive.js +36 -0
- package/esm2015/lib/shared/directives/focus-element/focus-element.module.js +21 -0
- package/esm2015/lib/shared/directives/focus-element/index.js +3 -0
- package/esm2015/lib/shared/directives/index.js +4 -0
- package/esm2015/lib/shared/directives/substitutor/index.js +4 -0
- package/esm2015/lib/shared/directives/substitutor/label-substitutor.directive.js +78 -0
- package/esm2015/lib/shared/directives/substitutor/label-substitutor.module.js +30 -0
- package/esm2015/lib/shared/directives/substitutor/services/index.js +2 -0
- package/esm2015/lib/shared/directives/substitutor/services/placeholder.service.js +200 -0
- package/esm2015/lib/shared/domain/activity/activity.model.js +10 -0
- package/esm2015/lib/shared/domain/activity/index.js +2 -0
- package/esm2015/lib/shared/domain/addresses/address.model.js +12 -0
- package/esm2015/lib/shared/domain/addresses/index.js +2 -0
- package/esm2015/lib/shared/domain/alert/alert-level.model.js +2 -0
- package/esm2015/lib/shared/domain/alert/alert.model.js +3 -0
- package/esm2015/lib/shared/domain/alert/index.js +3 -0
- package/esm2015/lib/shared/domain/case-details.model.js +3 -0
- package/esm2015/lib/shared/domain/case-event-data.model.js +3 -0
- package/esm2015/lib/shared/domain/case-view/access-types.model.js +4 -0
- package/esm2015/lib/shared/domain/case-view/case-event-trigger.model.js +22 -0
- package/esm2015/lib/shared/domain/case-view/case-print-document.model.js +3 -0
- package/esm2015/lib/shared/domain/case-view/case-tab.model.js +11 -0
- package/esm2015/lib/shared/domain/case-view/case-view-event.model.js +3 -0
- package/esm2015/lib/shared/domain/case-view/case-view-trigger.model.js +4 -0
- package/esm2015/lib/shared/domain/case-view/case-view.model.js +16 -0
- package/esm2015/lib/shared/domain/case-view/challenged-access-request.model.js +2 -0
- package/esm2015/lib/shared/domain/case-view/index.js +12 -0
- package/esm2015/lib/shared/domain/case-view/review-specific-access-request.model.js +2 -0
- package/esm2015/lib/shared/domain/case-view/role-assignment-response.model.js +2 -0
- package/esm2015/lib/shared/domain/case-view/role-request.model.js +2 -0
- package/esm2015/lib/shared/domain/case-view/specific-access-request.model.js +2 -0
- package/esm2015/lib/shared/domain/definition/access-control-list.model.js +3 -0
- package/esm2015/lib/shared/domain/definition/banner.model.js +3 -0
- package/esm2015/lib/shared/domain/definition/case-event.model.js +3 -0
- package/esm2015/lib/shared/domain/definition/case-field.model.js +194 -0
- package/esm2015/lib/shared/domain/definition/case-state.model.js +3 -0
- package/esm2015/lib/shared/domain/definition/case-type-lite.model.js +5 -0
- package/esm2015/lib/shared/domain/definition/case-type.model.js +11 -0
- package/esm2015/lib/shared/domain/definition/event-case-field.model.js +3 -0
- package/esm2015/lib/shared/domain/definition/field-type-enum.model.js +2 -0
- package/esm2015/lib/shared/domain/definition/field-type.model.js +20 -0
- package/esm2015/lib/shared/domain/definition/fixed-list-item.model.js +3 -0
- package/esm2015/lib/shared/domain/definition/index.js +12 -0
- package/esm2015/lib/shared/domain/definition/jurisdiction.model.js +3 -0
- package/esm2015/lib/shared/domain/document/document-data.model.js +13 -0
- package/esm2015/lib/shared/domain/document/index.js +2 -0
- package/esm2015/lib/shared/domain/draft.model.js +11 -0
- package/esm2015/lib/shared/domain/error-message.model.js +2 -0
- package/esm2015/lib/shared/domain/http/http-error.model.js +27 -0
- package/esm2015/lib/shared/domain/http/index.js +2 -0
- package/esm2015/lib/shared/domain/index.js +23 -0
- package/esm2015/lib/shared/domain/order/index.js +2 -0
- package/esm2015/lib/shared/domain/order/orderable.model.js +2 -0
- package/esm2015/lib/shared/domain/organisation/index.js +3 -0
- package/esm2015/lib/shared/domain/organisation/organisation-converter.js +42 -0
- package/esm2015/lib/shared/domain/organisation/simple-organisation.model.js +2 -0
- package/esm2015/lib/shared/domain/pagination-metadata.model.js +3 -0
- package/esm2015/lib/shared/domain/predicate.model.js +2 -0
- package/esm2015/lib/shared/domain/profile/index.js +2 -0
- package/esm2015/lib/shared/domain/profile/profile.model.js +29 -0
- package/esm2015/lib/shared/domain/search/field.model.js +11 -0
- package/esm2015/lib/shared/domain/search/index.js +5 -0
- package/esm2015/lib/shared/domain/search/search-result-view-column.model.js +3 -0
- package/esm2015/lib/shared/domain/search/search-result-view-item.model.js +11 -0
- package/esm2015/lib/shared/domain/search/search-result-view.model.js +22 -0
- package/esm2015/lib/shared/domain/search/sorting/search-result-view-item-comparator.js +2 -0
- package/esm2015/lib/shared/domain/search/sorting/sort-order.js +7 -0
- package/esm2015/lib/shared/domain/search/sorting/sort-parameters.js +7 -0
- package/esm2015/lib/shared/domain/user/user-details.model.js +2 -0
- package/esm2015/lib/shared/domain/user/user-info.model.js +2 -0
- package/esm2015/lib/shared/domain/work-allocation/Task.js +21 -0
- package/esm2015/lib/shared/domain/work-allocation/TaskPayload.js +2 -0
- package/esm2015/lib/shared/domain/work-allocation/index.js +2 -0
- package/esm2015/lib/shared/domain/work-allocation/task-response.model.js +2 -0
- package/esm2015/lib/shared/domain/work-allocation/task-search-parameter.model.js +2 -0
- package/esm2015/lib/shared/domain/workbasket/index.js +2 -0
- package/esm2015/lib/shared/domain/workbasket/workbasket-input.model.js +12 -0
- package/esm2015/lib/shared/fixture/case-field-builder.js +69 -0
- package/esm2015/lib/shared/fixture/shared.test.fixture.js +129 -0
- package/esm2015/lib/shared/index.js +8 -0
- package/esm2015/lib/shared/pipes/case-reference/case-reference.pipe.js +33 -0
- package/esm2015/lib/shared/pipes/case-reference/index.js +2 -0
- package/esm2015/lib/shared/pipes/case-title/ccd-case-title.pipe.js +29 -0
- package/esm2015/lib/shared/pipes/case-title/index.js +2 -0
- package/esm2015/lib/shared/pipes/index.js +5 -0
- package/esm2015/lib/shared/pipes/pipes.module.js +37 -0
- package/esm2015/lib/shared/pipes/search-result/sorting/sort-search-result.pipe.js +24 -0
- package/esm2015/lib/shared/services/activity/activity.polling.service.js +112 -0
- package/esm2015/lib/shared/services/activity/activity.service.js +91 -0
- package/esm2015/lib/shared/services/activity/index.js +3 -0
- package/esm2015/lib/shared/services/addresses/address-parser.js +76 -0
- package/esm2015/lib/shared/services/addresses/addresses.service.js +57 -0
- package/esm2015/lib/shared/services/addresses/index.js +2 -0
- package/esm2015/lib/shared/services/alert/alert.service.js +122 -0
- package/esm2015/lib/shared/services/alert/index.js +2 -0
- package/esm2015/lib/shared/services/auth/auth.service.js +33 -0
- package/esm2015/lib/shared/services/auth/index.js +2 -0
- package/esm2015/lib/shared/services/banners/banners.service.js +33 -0
- package/esm2015/lib/shared/services/banners/index.js +2 -0
- package/esm2015/lib/shared/services/browser/browser.service.js +24 -0
- package/esm2015/lib/shared/services/browser/index.js +2 -0
- package/esm2015/lib/shared/services/case-fields/case-field.service.js +34 -0
- package/esm2015/lib/shared/services/case-fields/format-translator.service.js +242 -0
- package/esm2015/lib/shared/services/case-fields/index.js +2 -0
- package/esm2015/lib/shared/services/definitions/definitions.module.js +19 -0
- package/esm2015/lib/shared/services/definitions/definitions.service.js +35 -0
- package/esm2015/lib/shared/services/definitions/index.js +3 -0
- package/esm2015/lib/shared/services/document-management/document-management.service.js +112 -0
- package/esm2015/lib/shared/services/document-management/index.js +2 -0
- package/esm2015/lib/shared/services/draft/draft.service.js +86 -0
- package/esm2015/lib/shared/services/draft/index.js +2 -0
- package/esm2015/lib/shared/services/error/error-notifier.service.js +18 -0
- package/esm2015/lib/shared/services/error/index.js +2 -0
- package/esm2015/lib/shared/services/eventStatusService/event-status.service.js +21 -0
- package/esm2015/lib/shared/services/eventStatusService/index.js +2 -0
- package/esm2015/lib/shared/services/fields/fields.purger.js +277 -0
- package/esm2015/lib/shared/services/fields/fields.utils.js +334 -0
- package/esm2015/lib/shared/services/fields/index.js +3 -0
- package/esm2015/lib/shared/services/form/field-type-sanitiser.js +75 -0
- package/esm2015/lib/shared/services/form/form-error.service.js +46 -0
- package/esm2015/lib/shared/services/form/form-validators.service.js +56 -0
- package/esm2015/lib/shared/services/form/form-value.service.js +490 -0
- package/esm2015/lib/shared/services/form/index.js +5 -0
- package/esm2015/lib/shared/services/http/http-error.service.js +65 -0
- package/esm2015/lib/shared/services/http/http.service.js +93 -0
- package/esm2015/lib/shared/services/http/index.js +3 -0
- package/esm2015/lib/shared/services/index.js +29 -0
- package/esm2015/lib/shared/services/jurisdiction/index.js +2 -0
- package/esm2015/lib/shared/services/jurisdiction/jurisdiction.service.js +18 -0
- package/esm2015/lib/shared/services/loading/index.js +3 -0
- package/esm2015/lib/shared/services/loading/loading.module.js +22 -0
- package/esm2015/lib/shared/services/loading/loading.service.js +38 -0
- package/esm2015/lib/shared/services/navigation/index.js +3 -0
- package/esm2015/lib/shared/services/navigation/navigation-notifier.service.js +18 -0
- package/esm2015/lib/shared/services/navigation/navigation-origin.model.js +9 -0
- package/esm2015/lib/shared/services/order/index.js +2 -0
- package/esm2015/lib/shared/services/order/order.service.js +39 -0
- package/esm2015/lib/shared/services/organisation/index.js +2 -0
- package/esm2015/lib/shared/services/organisation/organisation.service.js +57 -0
- package/esm2015/lib/shared/services/profile/index.js +3 -0
- package/esm2015/lib/shared/services/profile/profile.notifier.js +19 -0
- package/esm2015/lib/shared/services/profile/profile.service.js +34 -0
- package/esm2015/lib/shared/services/request/index.js +2 -0
- package/esm2015/lib/shared/services/request/request.options.builder.js +55 -0
- package/esm2015/lib/shared/services/router/index.js +2 -0
- package/esm2015/lib/shared/services/router/router-helper.service.js +20 -0
- package/esm2015/lib/shared/services/search/index.js +2 -0
- package/esm2015/lib/shared/services/search/search.service.js +83 -0
- package/esm2015/lib/shared/services/search-result/sorting/search-result-view-item-comparator-factory.js +71 -0
- package/esm2015/lib/shared/services/session/index.js +2 -0
- package/esm2015/lib/shared/services/session/session-storage.service.js +34 -0
- package/esm2015/lib/shared/services/window/index.js +2 -0
- package/esm2015/lib/shared/services/window/window.service.js +37 -0
- package/esm2015/lib/shared/services/workbasket/index.js +2 -0
- package/esm2015/lib/shared/services/workbasket/workbasket-input-filter.service.js +53 -0
- package/esm2015/lib/shared/test/test-route-snapshot-builder.js +39 -0
- package/esm2015/public-api.js +3 -0
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +5985 -0
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -0
- package/hmcts-ccd-case-ui-toolkit.d.ts +6 -0
- package/hmcts-ccd-case-ui-toolkit.d.ts.map +1 -0
- package/lib/app.config.d.ts +125 -0
- package/lib/app.config.d.ts.map +1 -0
- package/lib/components/banners/alert/alert-icon-class.pipe.d.ts +10 -0
- package/lib/components/banners/alert/alert-icon-class.pipe.d.ts.map +1 -0
- package/lib/components/banners/alert/alert.component.d.ts +19 -0
- package/lib/components/banners/alert/alert.component.d.ts.map +1 -0
- package/lib/components/banners/alert/alert.module.d.ts +10 -0
- package/lib/components/banners/alert/alert.module.d.ts.map +1 -0
- package/lib/components/banners/alert/index.d.ts +4 -0
- package/lib/components/banners/alert/index.d.ts.map +1 -0
- package/lib/components/banners/banners.module.d.ts +9 -0
- package/lib/components/banners/banners.module.d.ts.map +1 -0
- package/lib/components/banners/index.d.ts +2 -0
- package/lib/components/banners/index.d.ts.map +1 -0
- package/lib/components/body/body.component.d.ts +6 -0
- package/lib/components/body/body.component.d.ts.map +1 -0
- package/lib/components/body/body.module.d.ts +10 -0
- package/lib/components/body/body.module.d.ts.map +1 -0
- package/lib/components/body/index.d.ts +2 -0
- package/lib/components/body/index.d.ts.map +1 -0
- package/lib/components/footer/footer.component.d.ts +10 -0
- package/lib/components/footer/footer.component.d.ts.map +1 -0
- package/lib/components/footer/footers.module.d.ts +9 -0
- package/lib/components/footer/footers.module.d.ts.map +1 -0
- package/lib/components/footer/index.d.ts +2 -0
- package/lib/components/footer/index.d.ts.map +1 -0
- package/lib/components/form/date-input/date-input.component.d.ts +54 -0
- package/lib/components/form/date-input/date-input.component.d.ts.map +1 -0
- package/lib/components/form/date-input/index.d.ts +2 -0
- package/lib/components/form/date-input/index.d.ts.map +1 -0
- package/lib/components/form/form.module.d.ts +9 -0
- package/lib/components/form/form.module.d.ts.map +1 -0
- package/lib/components/form/index.d.ts +2 -0
- package/lib/components/form/index.d.ts.map +1 -0
- package/lib/components/header/header-bar/header-bar.component.d.ts +11 -0
- package/lib/components/header/header-bar/header-bar.component.d.ts.map +1 -0
- package/lib/components/header/header-bar/index.d.ts +2 -0
- package/lib/components/header/header-bar/index.d.ts.map +1 -0
- package/lib/components/header/headers.module.d.ts +13 -0
- package/lib/components/header/headers.module.d.ts.map +1 -0
- package/lib/components/header/index.d.ts +5 -0
- package/lib/components/header/index.d.ts.map +1 -0
- package/lib/components/header/navigation/index.d.ts +3 -0
- package/lib/components/header/navigation/index.d.ts.map +1 -0
- package/lib/components/header/navigation/navigation-item.component.d.ts +9 -0
- package/lib/components/header/navigation/navigation-item.component.d.ts.map +1 -0
- package/lib/components/header/navigation/navigation.component.d.ts +7 -0
- package/lib/components/header/navigation/navigation.component.d.ts.map +1 -0
- package/lib/components/header/phase/index.d.ts +2 -0
- package/lib/components/header/phase/index.d.ts.map +1 -0
- package/lib/components/header/phase/phase.component.d.ts +9 -0
- package/lib/components/header/phase/phase.component.d.ts.map +1 -0
- package/lib/components/index.d.ts +7 -0
- package/lib/components/index.d.ts.map +1 -0
- package/lib/components/tabs/index.d.ts +4 -0
- package/lib/components/tabs/index.d.ts.map +1 -0
- package/lib/components/tabs/tab.component.d.ts +9 -0
- package/lib/components/tabs/tab.component.d.ts.map +1 -0
- package/lib/components/tabs/tabs.component.d.ts +16 -0
- package/lib/components/tabs/tabs.component.d.ts.map +1 -0
- package/lib/components/tabs/tabs.module.d.ts +11 -0
- package/lib/components/tabs/tabs.module.d.ts.map +1 -0
- package/lib/shared/commons/constants.d.ts +8 -0
- package/lib/shared/commons/constants.d.ts.map +1 -0
- package/lib/shared/components/case-editor/case-access-utils/index.d.ts +25 -0
- package/lib/shared/components/case-editor/case-access-utils/index.d.ts.map +1 -0
- package/lib/shared/components/case-editor/domain/confirmation.model.d.ts +12 -0
- package/lib/shared/components/case-editor/domain/confirmation.model.d.ts.map +1 -0
- package/lib/shared/components/case-editor/domain/event-completion-return-states.enum.model.d.ts +6 -0
- package/lib/shared/components/case-editor/domain/event-completion-return-states.enum.model.d.ts.map +1 -0
- package/lib/shared/components/case-editor/domain/event-completion-state-machine-context.model.d.ts +24 -0
- package/lib/shared/components/case-editor/domain/event-completion-state-machine-context.model.d.ts.map +1 -0
- package/lib/shared/components/case-editor/domain/event-completion-states.enum.model.d.ts +13 -0
- package/lib/shared/components/case-editor/domain/event-completion-states.enum.model.d.ts.map +1 -0
- package/lib/shared/components/case-editor/domain/index.d.ts +8 -0
- package/lib/shared/components/case-editor/domain/index.d.ts.map +1 -0
- package/lib/shared/components/case-editor/domain/wizard-page-field-complex-override.model.d.ts +8 -0
- package/lib/shared/components/case-editor/domain/wizard-page-field-complex-override.model.d.ts.map +1 -0
- package/lib/shared/components/case-editor/domain/wizard-page-field.model.d.ts +9 -0
- package/lib/shared/components/case-editor/domain/wizard-page-field.model.d.ts.map +1 -0
- package/lib/shared/components/case-editor/domain/wizard-page.model.d.ts +17 -0
- package/lib/shared/components/case-editor/domain/wizard-page.model.d.ts.map +1 -0
- package/lib/shared/components/case-editor/domain/wizard.model.d.ts +18 -0
- package/lib/shared/components/case-editor/domain/wizard.model.d.ts.map +1 -0
- package/lib/shared/components/case-editor/services/case.notifier.d.ts +12 -0
- package/lib/shared/components/case-editor/services/case.notifier.d.ts.map +1 -0
- package/lib/shared/components/case-editor/services/cases.service.d.ts +59 -0
- package/lib/shared/components/case-editor/services/cases.service.d.ts.map +1 -0
- package/lib/shared/components/case-editor/services/wizard-page-field-to-case-field.mapper.d.ts +17 -0
- package/lib/shared/components/case-editor/services/wizard-page-field-to-case-field.mapper.d.ts.map +1 -0
- package/lib/shared/components/case-editor/services/work-allocation.service.d.ts +72 -0
- package/lib/shared/components/case-editor/services/work-allocation.service.d.ts.map +1 -0
- package/lib/shared/components/dialogs/document-dialog/document-dialog.component.d.ts +14 -0
- package/lib/shared/components/dialogs/document-dialog/document-dialog.component.d.ts.map +1 -0
- package/lib/shared/components/dialogs/remove-dialog/remove-dialog.component.d.ts +12 -0
- package/lib/shared/components/dialogs/remove-dialog/remove-dialog.component.d.ts.map +1 -0
- package/lib/shared/components/helpers/index.d.ts +2 -0
- package/lib/shared/components/helpers/index.d.ts.map +1 -0
- package/lib/shared/components/helpers/init-dialog-helper.d.ts +3 -0
- package/lib/shared/components/helpers/init-dialog-helper.d.ts.map +1 -0
- package/lib/shared/components/palette/address/address-option.model.d.ts +10 -0
- package/lib/shared/components/palette/address/address-option.model.d.ts.map +1 -0
- package/lib/shared/components/palette/address/write-address-field.component.d.ts +36 -0
- package/lib/shared/components/palette/address/write-address-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/base-field/abstract-field-read.component.d.ts +17 -0
- package/lib/shared/components/palette/base-field/abstract-field-read.component.d.ts.map +1 -0
- package/lib/shared/components/palette/base-field/abstract-field-write.component.d.ts +17 -0
- package/lib/shared/components/palette/base-field/abstract-field-write.component.d.ts.map +1 -0
- package/lib/shared/components/palette/base-field/abstract-form-field.component.d.ts +20 -0
- package/lib/shared/components/palette/base-field/abstract-form-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/base-field/field-read-label.component.d.ts +16 -0
- package/lib/shared/components/palette/base-field/field-read-label.component.d.ts.map +1 -0
- package/lib/shared/components/palette/base-field/field-read.component.d.ts +20 -0
- package/lib/shared/components/palette/base-field/field-read.component.d.ts.map +1 -0
- package/lib/shared/components/palette/base-field/field-write.component.d.ts +19 -0
- package/lib/shared/components/palette/base-field/field-write.component.d.ts.map +1 -0
- package/lib/shared/components/palette/base-field/index.d.ts +8 -0
- package/lib/shared/components/palette/base-field/index.d.ts.map +1 -0
- package/lib/shared/components/palette/base-field/palette-context.enum.d.ts +6 -0
- package/lib/shared/components/palette/base-field/palette-context.enum.d.ts.map +1 -0
- package/lib/shared/components/palette/base-field/payment-field.component.d.ts +14 -0
- package/lib/shared/components/palette/base-field/payment-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/case-link/read-case-link-field.component.d.ts +8 -0
- package/lib/shared/components/palette/case-link/read-case-link-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/case-link/write-case-link-field.component.d.ts +16 -0
- package/lib/shared/components/palette/case-link/write-case-link-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/collection/collection-create-checker.service.d.ts +13 -0
- package/lib/shared/components/palette/collection/collection-create-checker.service.d.ts.map +1 -0
- package/lib/shared/components/palette/collection/index.d.ts +3 -0
- package/lib/shared/components/palette/collection/index.d.ts.map +1 -0
- package/lib/shared/components/palette/collection/read-collection-field.component.d.ts +11 -0
- package/lib/shared/components/palette/collection/read-collection-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/collection/write-collection-field.component.d.ts +56 -0
- package/lib/shared/components/palette/collection/write-collection-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/complex/ccd-collection-table-value-case-fields.pipe.d.ts +11 -0
- package/lib/shared/components/palette/complex/ccd-collection-table-value-case-fields.pipe.d.ts.map +1 -0
- package/lib/shared/components/palette/complex/ccd-cyapage-label-filter.pipe.d.ts +10 -0
- package/lib/shared/components/palette/complex/ccd-cyapage-label-filter.pipe.d.ts.map +1 -0
- package/lib/shared/components/palette/complex/ccd-read-fields-filter.pipe.d.ts +27 -0
- package/lib/shared/components/palette/complex/ccd-read-fields-filter.pipe.d.ts.map +1 -0
- package/lib/shared/components/palette/complex/ccd-tab-fields.pipe.d.ts +10 -0
- package/lib/shared/components/palette/complex/ccd-tab-fields.pipe.d.ts.map +1 -0
- package/lib/shared/components/palette/complex/cdd-page-fields.pipe.d.ts +11 -0
- package/lib/shared/components/palette/complex/cdd-page-fields.pipe.d.ts.map +1 -0
- package/lib/shared/components/palette/complex/fields-filter.pipe.d.ts +23 -0
- package/lib/shared/components/palette/complex/fields-filter.pipe.d.ts.map +1 -0
- package/lib/shared/components/palette/complex/index.d.ts +12 -0
- package/lib/shared/components/palette/complex/index.d.ts.map +1 -0
- package/lib/shared/components/palette/complex/read-complex-field-collection-table.component.d.ts +32 -0
- package/lib/shared/components/palette/complex/read-complex-field-collection-table.component.d.ts.map +1 -0
- package/lib/shared/components/palette/complex/read-complex-field-raw.component.d.ts +13 -0
- package/lib/shared/components/palette/complex/read-complex-field-raw.component.d.ts.map +1 -0
- package/lib/shared/components/palette/complex/read-complex-field-table.component.d.ts +9 -0
- package/lib/shared/components/palette/complex/read-complex-field-table.component.d.ts.map +1 -0
- package/lib/shared/components/palette/complex/read-complex-field.component.d.ts +13 -0
- package/lib/shared/components/palette/complex/read-complex-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/complex/sort-order.d.ts +6 -0
- package/lib/shared/components/palette/complex/sort-order.d.ts.map +1 -0
- package/lib/shared/components/palette/complex/write-complex-field.component.d.ts +30 -0
- package/lib/shared/components/palette/complex/write-complex-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/date/index.d.ts +4 -0
- package/lib/shared/components/palette/date/index.d.ts.map +1 -0
- package/lib/shared/components/palette/date/read-date-field.component.d.ts +8 -0
- package/lib/shared/components/palette/date/read-date-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/date/write-date-container-field.component.d.ts +7 -0
- package/lib/shared/components/palette/date/write-date-container-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/date/write-date-field.component.d.ts +12 -0
- package/lib/shared/components/palette/date/write-date-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/datetime-picker/datetime-picker-utils.d.ts +3 -0
- package/lib/shared/components/palette/datetime-picker/datetime-picker-utils.d.ts.map +1 -0
- package/lib/shared/components/palette/datetime-picker/datetime-picker.component.d.ts +53 -0
- package/lib/shared/components/palette/datetime-picker/datetime-picker.component.d.ts.map +1 -0
- package/lib/shared/components/palette/datetime-picker/index.d.ts +2 -0
- package/lib/shared/components/palette/datetime-picker/index.d.ts.map +1 -0
- package/lib/shared/components/palette/document/document-url.pipe.d.ts +11 -0
- package/lib/shared/components/palette/document/document-url.pipe.d.ts.map +1 -0
- package/lib/shared/components/palette/document/file-upload-progress.guard.d.ts +14 -0
- package/lib/shared/components/palette/document/file-upload-progress.guard.d.ts.map +1 -0
- package/lib/shared/components/palette/document/file-upload-state.service.d.ts +9 -0
- package/lib/shared/components/palette/document/file-upload-state.service.d.ts.map +1 -0
- package/lib/shared/components/palette/document/index.d.ts +4 -0
- package/lib/shared/components/palette/document/index.d.ts.map +1 -0
- package/lib/shared/components/palette/document/read-document-field.component.d.ts +24 -0
- package/lib/shared/components/palette/document/read-document-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/document/write-document-field.component.d.ts +66 -0
- package/lib/shared/components/palette/document/write-document-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/dynamic-list/dynamic-list.pipe.d.ts +10 -0
- package/lib/shared/components/palette/dynamic-list/dynamic-list.pipe.d.ts.map +1 -0
- package/lib/shared/components/palette/dynamic-list/index.d.ts +4 -0
- package/lib/shared/components/palette/dynamic-list/index.d.ts.map +1 -0
- package/lib/shared/components/palette/dynamic-list/read-dynamic-list-field.component.d.ts +9 -0
- package/lib/shared/components/palette/dynamic-list/read-dynamic-list-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/dynamic-list/write-dynamic-list-field.component.d.ts +11 -0
- package/lib/shared/components/palette/dynamic-list/write-dynamic-list-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/dynamic-radio-list/dynamic-radio-list.pipe.d.ts +10 -0
- package/lib/shared/components/palette/dynamic-radio-list/dynamic-radio-list.pipe.d.ts.map +1 -0
- package/lib/shared/components/palette/dynamic-radio-list/index.d.ts +4 -0
- package/lib/shared/components/palette/dynamic-radio-list/index.d.ts.map +1 -0
- package/lib/shared/components/palette/dynamic-radio-list/read-dynamic-radio-list-field.component.d.ts +9 -0
- package/lib/shared/components/palette/dynamic-radio-list/read-dynamic-radio-list-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.d.ts +12 -0
- package/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/email/index.d.ts +3 -0
- package/lib/shared/components/palette/email/index.d.ts.map +1 -0
- package/lib/shared/components/palette/email/read-email-field.component.d.ts +8 -0
- package/lib/shared/components/palette/email/read-email-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/email/write-email-field.component.d.ts +11 -0
- package/lib/shared/components/palette/email/write-email-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/fixed-list/fixed-list.pipe.d.ts +10 -0
- package/lib/shared/components/palette/fixed-list/fixed-list.pipe.d.ts.map +1 -0
- package/lib/shared/components/palette/fixed-list/index.d.ts +4 -0
- package/lib/shared/components/palette/fixed-list/index.d.ts.map +1 -0
- package/lib/shared/components/palette/fixed-list/read-fixed-list-field.component.d.ts +7 -0
- package/lib/shared/components/palette/fixed-list/read-fixed-list-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/fixed-list/write-fixed-list-field.component.d.ts +12 -0
- package/lib/shared/components/palette/fixed-list/write-fixed-list-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/fixed-radio-list/fixed-radio-list.pipe.d.ts +10 -0
- package/lib/shared/components/palette/fixed-radio-list/fixed-radio-list.pipe.d.ts.map +1 -0
- package/lib/shared/components/palette/fixed-radio-list/index.d.ts +4 -0
- package/lib/shared/components/palette/fixed-radio-list/index.d.ts.map +1 -0
- package/lib/shared/components/palette/fixed-radio-list/read-fixed-radio-list-field.component.d.ts +7 -0
- package/lib/shared/components/palette/fixed-radio-list/read-fixed-radio-list-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/fixed-radio-list/write-fixed-radio-list-field.component.d.ts +11 -0
- package/lib/shared/components/palette/fixed-radio-list/write-fixed-radio-list-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/history/case-history-viewer-field.component.d.ts +7 -0
- package/lib/shared/components/palette/history/case-history-viewer-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/history/event-log/event-log-details.component.d.ts +8 -0
- package/lib/shared/components/palette/history/event-log/event-log-details.component.d.ts.map +1 -0
- package/lib/shared/components/palette/history/event-log/event-log-table.component.d.ts +22 -0
- package/lib/shared/components/palette/history/event-log/event-log-table.component.d.ts.map +1 -0
- package/lib/shared/components/palette/history/event-log/event-log.component.d.ts +15 -0
- package/lib/shared/components/palette/history/event-log/event-log.component.d.ts.map +1 -0
- package/lib/shared/components/palette/history/event-log/index.d.ts +4 -0
- package/lib/shared/components/palette/history/event-log/index.d.ts.map +1 -0
- package/lib/shared/components/palette/history/index.d.ts +3 -0
- package/lib/shared/components/palette/history/index.d.ts.map +1 -0
- package/lib/shared/components/palette/label/index.d.ts +2 -0
- package/lib/shared/components/palette/label/index.d.ts.map +1 -0
- package/lib/shared/components/palette/label/label-field.component.d.ts +10 -0
- package/lib/shared/components/palette/label/label-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/markdown/index.d.ts +2 -0
- package/lib/shared/components/palette/markdown/index.d.ts.map +1 -0
- package/lib/shared/components/palette/markdown/markdown.component.d.ts +12 -0
- package/lib/shared/components/palette/markdown/markdown.component.d.ts.map +1 -0
- package/lib/shared/components/palette/money-gbp/index.d.ts +4 -0
- package/lib/shared/components/palette/money-gbp/index.d.ts.map +1 -0
- package/lib/shared/components/palette/money-gbp/money-gbp-input.component.d.ts +23 -0
- package/lib/shared/components/palette/money-gbp/money-gbp-input.component.d.ts.map +1 -0
- package/lib/shared/components/palette/money-gbp/read-money-gbp-field.component.d.ts +12 -0
- package/lib/shared/components/palette/money-gbp/read-money-gbp-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/money-gbp/write-money-gbp-field.component.d.ts +11 -0
- package/lib/shared/components/palette/money-gbp/write-money-gbp-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/multi-select-list/index.d.ts +3 -0
- package/lib/shared/components/palette/multi-select-list/index.d.ts.map +1 -0
- package/lib/shared/components/palette/multi-select-list/read-multi-select-list-field.component.d.ts +7 -0
- package/lib/shared/components/palette/multi-select-list/read-multi-select-list-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/multi-select-list/write-multi-select-list-field.component.d.ts +13 -0
- package/lib/shared/components/palette/multi-select-list/write-multi-select-list-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/number/index.d.ts +3 -0
- package/lib/shared/components/palette/number/index.d.ts.map +1 -0
- package/lib/shared/components/palette/number/read-number-field.component.d.ts +7 -0
- package/lib/shared/components/palette/number/read-number-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/number/write-number-field.component.d.ts +11 -0
- package/lib/shared/components/palette/number/write-number-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/order-summary/fee-value.model.d.ts +5 -0
- package/lib/shared/components/palette/order-summary/fee-value.model.d.ts.map +1 -0
- package/lib/shared/components/palette/order-summary/fee.model.d.ts +7 -0
- package/lib/shared/components/palette/order-summary/fee.model.d.ts.map +1 -0
- package/lib/shared/components/palette/order-summary/index.d.ts +7 -0
- package/lib/shared/components/palette/order-summary/index.d.ts.map +1 -0
- package/lib/shared/components/palette/order-summary/order-summary.model.d.ts +7 -0
- package/lib/shared/components/palette/order-summary/order-summary.model.d.ts.map +1 -0
- package/lib/shared/components/palette/order-summary/read-order-summary-field.component.d.ts +10 -0
- package/lib/shared/components/palette/order-summary/read-order-summary-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/order-summary/read-order-summary-row.component.d.ts +12 -0
- package/lib/shared/components/palette/order-summary/read-order-summary-row.component.d.ts.map +1 -0
- package/lib/shared/components/palette/order-summary/write-order-summary-field.component.d.ts +10 -0
- package/lib/shared/components/palette/order-summary/write-order-summary-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/organisation/index.d.ts +6 -0
- package/lib/shared/components/palette/organisation/index.d.ts.map +1 -0
- package/lib/shared/components/palette/organisation/read-organisation-field-raw.component.d.ts +20 -0
- package/lib/shared/components/palette/organisation/read-organisation-field-raw.component.d.ts.map +1 -0
- package/lib/shared/components/palette/organisation/read-organisation-field-table.component.d.ts +20 -0
- package/lib/shared/components/palette/organisation/read-organisation-field-table.component.d.ts.map +1 -0
- package/lib/shared/components/palette/organisation/read-organisation-field.component.d.ts +13 -0
- package/lib/shared/components/palette/organisation/read-organisation-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/organisation/write-organisation-complex-field.component.d.ts +11 -0
- package/lib/shared/components/palette/organisation/write-organisation-complex-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/organisation/write-organisation-field.component.d.ts +47 -0
- package/lib/shared/components/palette/organisation/write-organisation-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/palette.module.d.ts +99 -0
- package/lib/shared/components/palette/palette.module.d.ts.map +1 -0
- package/lib/shared/components/palette/palette.service.d.ts +9 -0
- package/lib/shared/components/palette/palette.service.d.ts.map +1 -0
- package/lib/shared/components/palette/payment/case-payment-history-viewer-field.component.d.ts +10 -0
- package/lib/shared/components/palette/payment/case-payment-history-viewer-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/payment/index.d.ts +2 -0
- package/lib/shared/components/palette/payment/index.d.ts.map +1 -0
- package/lib/shared/components/palette/phone-uk/index.d.ts +3 -0
- package/lib/shared/components/palette/phone-uk/index.d.ts.map +1 -0
- package/lib/shared/components/palette/phone-uk/read-phone-uk-field.component.d.ts +7 -0
- package/lib/shared/components/palette/phone-uk/read-phone-uk-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/phone-uk/write-phone-uk-field.component.d.ts +11 -0
- package/lib/shared/components/palette/phone-uk/write-phone-uk-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/text/index.d.ts +3 -0
- package/lib/shared/components/palette/text/index.d.ts.map +1 -0
- package/lib/shared/components/palette/text/read-text-field.component.d.ts +7 -0
- package/lib/shared/components/palette/text/read-text-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/text/write-text-field.component.d.ts +12 -0
- package/lib/shared/components/palette/text/write-text-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/text-area/index.d.ts +3 -0
- package/lib/shared/components/palette/text-area/index.d.ts.map +1 -0
- package/lib/shared/components/palette/text-area/read-text-area-field.component.d.ts +7 -0
- package/lib/shared/components/palette/text-area/read-text-area-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/text-area/write-text-area-field.component.d.ts +15 -0
- package/lib/shared/components/palette/text-area/write-text-area-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/unsupported-field.component.d.ts +6 -0
- package/lib/shared/components/palette/unsupported-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/utils/dash.pipe.d.ts +8 -0
- package/lib/shared/components/palette/utils/dash.pipe.d.ts.map +1 -0
- package/lib/shared/components/palette/utils/date.pipe.d.ts +23 -0
- package/lib/shared/components/palette/utils/date.pipe.d.ts.map +1 -0
- package/lib/shared/components/palette/utils/field-label.pipe.d.ts +9 -0
- package/lib/shared/components/palette/utils/field-label.pipe.d.ts.map +1 -0
- package/lib/shared/components/palette/utils/first-error.pipe.d.ts +9 -0
- package/lib/shared/components/palette/utils/first-error.pipe.d.ts.map +1 -0
- package/lib/shared/components/palette/utils/index.d.ts +10 -0
- package/lib/shared/components/palette/utils/index.d.ts.map +1 -0
- package/lib/shared/components/palette/utils/is-compound.pipe.d.ts +11 -0
- package/lib/shared/components/palette/utils/is-compound.pipe.d.ts.map +1 -0
- package/lib/shared/components/palette/utils/is-mandatory.pipe.d.ts +12 -0
- package/lib/shared/components/palette/utils/is-mandatory.pipe.d.ts.map +1 -0
- package/lib/shared/components/palette/utils/is-read-only-and-not-collection.pipe.d.ts +13 -0
- package/lib/shared/components/palette/utils/is-read-only-and-not-collection.pipe.d.ts.map +1 -0
- package/lib/shared/components/palette/utils/is-read-only.pipe.d.ts +12 -0
- package/lib/shared/components/palette/utils/is-read-only.pipe.d.ts.map +1 -0
- package/lib/shared/components/palette/utils/utils.module.d.ts +16 -0
- package/lib/shared/components/palette/utils/utils.module.d.ts.map +1 -0
- package/lib/shared/components/palette/waystopay/index.d.ts +2 -0
- package/lib/shared/components/palette/waystopay/index.d.ts.map +1 -0
- package/lib/shared/components/palette/waystopay/waystopay-field.component.d.ts +11 -0
- package/lib/shared/components/palette/waystopay/waystopay-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/yes-no/index.d.ts +4 -0
- package/lib/shared/components/palette/yes-no/index.d.ts.map +1 -0
- package/lib/shared/components/palette/yes-no/read-yes-no-field.component.d.ts +13 -0
- package/lib/shared/components/palette/yes-no/read-yes-no-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/yes-no/write-yes-no-field.component.d.ts +15 -0
- package/lib/shared/components/palette/yes-no/write-yes-no-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/yes-no/yes-no.service.d.ts +14 -0
- package/lib/shared/components/palette/yes-no/yes-no.service.d.ts.map +1 -0
- package/lib/shared/components/search-filters/domain/index.d.ts +2 -0
- package/lib/shared/components/search-filters/domain/index.d.ts.map +1 -0
- package/lib/shared/components/search-filters/domain/search-input.model.d.ts +11 -0
- package/lib/shared/components/search-filters/domain/search-input.model.d.ts.map +1 -0
- package/lib/shared/components/search-filters/index.d.ts +5 -0
- package/lib/shared/components/search-filters/index.d.ts.map +1 -0
- package/lib/shared/components/search-filters/search-filters-wrapper.component.d.ts +21 -0
- package/lib/shared/components/search-filters/search-filters-wrapper.component.d.ts.map +1 -0
- package/lib/shared/components/search-filters/search-filters.component.d.ts +57 -0
- package/lib/shared/components/search-filters/search-filters.component.d.ts.map +1 -0
- package/lib/shared/components/search-filters/search-filters.module.d.ts +13 -0
- package/lib/shared/components/search-filters/search-filters.module.d.ts.map +1 -0
- package/lib/shared/directives/conditional-show/conditional-show-form.directive.d.ts +40 -0
- package/lib/shared/directives/conditional-show/conditional-show-form.directive.d.ts.map +1 -0
- package/lib/shared/directives/conditional-show/conditional-show.module.d.ts +8 -0
- package/lib/shared/directives/conditional-show/conditional-show.module.d.ts.map +1 -0
- package/lib/shared/directives/conditional-show/domain/conditional-show.model.d.ts +56 -0
- package/lib/shared/directives/conditional-show/domain/conditional-show.model.d.ts.map +1 -0
- package/lib/shared/directives/conditional-show/domain/index.d.ts +2 -0
- package/lib/shared/directives/conditional-show/domain/index.d.ts.map +1 -0
- package/lib/shared/directives/conditional-show/index.d.ts +5 -0
- package/lib/shared/directives/conditional-show/index.d.ts.map +1 -0
- package/lib/shared/directives/conditional-show/services/conditional-show-registrar.service.d.ts +10 -0
- package/lib/shared/directives/conditional-show/services/conditional-show-registrar.service.d.ts.map +1 -0
- package/lib/shared/directives/conditional-show/services/grey-bar.service.d.ts +22 -0
- package/lib/shared/directives/conditional-show/services/grey-bar.service.d.ts.map +1 -0
- package/lib/shared/directives/conditional-show/services/index.d.ts +3 -0
- package/lib/shared/directives/conditional-show/services/index.d.ts.map +1 -0
- package/lib/shared/directives/focus-element/focus-element.directive.d.ts +12 -0
- package/lib/shared/directives/focus-element/focus-element.directive.d.ts.map +1 -0
- package/lib/shared/directives/focus-element/focus-element.module.d.ts +8 -0
- package/lib/shared/directives/focus-element/focus-element.module.d.ts.map +1 -0
- package/lib/shared/directives/focus-element/index.d.ts +3 -0
- package/lib/shared/directives/focus-element/index.d.ts.map +1 -0
- package/lib/shared/directives/index.d.ts +4 -0
- package/lib/shared/directives/index.d.ts.map +1 -0
- package/lib/shared/directives/substitutor/index.d.ts +4 -0
- package/lib/shared/directives/substitutor/index.d.ts.map +1 -0
- package/lib/shared/directives/substitutor/label-substitutor.directive.d.ts +27 -0
- package/lib/shared/directives/substitutor/label-substitutor.directive.d.ts.map +1 -0
- package/lib/shared/directives/substitutor/label-substitutor.module.d.ts +8 -0
- package/lib/shared/directives/substitutor/label-substitutor.module.d.ts.map +1 -0
- package/lib/shared/directives/substitutor/services/index.d.ts +2 -0
- package/lib/shared/directives/substitutor/services/index.d.ts.map +1 -0
- package/lib/shared/directives/substitutor/services/placeholder.service.d.ts +64 -0
- package/lib/shared/directives/substitutor/services/placeholder.service.d.ts.map +1 -0
- package/lib/shared/domain/activity/activity.model.d.ts +16 -0
- package/lib/shared/domain/activity/activity.model.d.ts.map +1 -0
- package/lib/shared/domain/activity/index.d.ts +2 -0
- package/lib/shared/domain/activity/index.d.ts.map +1 -0
- package/lib/shared/domain/addresses/address.model.d.ts +10 -0
- package/lib/shared/domain/addresses/address.model.d.ts.map +1 -0
- package/lib/shared/domain/addresses/index.d.ts +2 -0
- package/lib/shared/domain/addresses/index.d.ts.map +1 -0
- package/lib/shared/domain/alert/alert-level.model.d.ts +2 -0
- package/lib/shared/domain/alert/alert-level.model.d.ts.map +1 -0
- package/lib/shared/domain/alert/alert.model.d.ts +6 -0
- package/lib/shared/domain/alert/alert.model.d.ts.map +1 -0
- package/lib/shared/domain/alert/index.d.ts +3 -0
- package/lib/shared/domain/alert/index.d.ts.map +1 -0
- package/lib/shared/domain/case-details.model.d.ts +12 -0
- package/lib/shared/domain/case-details.model.d.ts.map +1 -0
- package/lib/shared/domain/case-event-data.model.d.ts +14 -0
- package/lib/shared/domain/case-event-data.model.d.ts.map +1 -0
- package/lib/shared/domain/case-view/access-types.model.d.ts +5 -0
- package/lib/shared/domain/case-view/access-types.model.d.ts.map +1 -0
- package/lib/shared/domain/case-view/case-event-trigger.model.d.ts +18 -0
- package/lib/shared/domain/case-view/case-event-trigger.model.d.ts.map +1 -0
- package/lib/shared/domain/case-view/case-print-document.model.d.ts +6 -0
- package/lib/shared/domain/case-view/case-print-document.model.d.ts.map +1 -0
- package/lib/shared/domain/case-view/case-tab.model.d.ts +10 -0
- package/lib/shared/domain/case-view/case-tab.model.d.ts.map +1 -0
- package/lib/shared/domain/case-view/case-view-event.model.d.ts +19 -0
- package/lib/shared/domain/case-view/case-view-event.model.d.ts.map +1 -0
- package/lib/shared/domain/case-view/case-view-trigger.model.d.ts +9 -0
- package/lib/shared/domain/case-view/case-view-trigger.model.d.ts.map +1 -0
- package/lib/shared/domain/case-view/case-view.model.d.ts +36 -0
- package/lib/shared/domain/case-view/case-view.model.d.ts.map +1 -0
- package/lib/shared/domain/case-view/challenged-access-request.model.d.ts +6 -0
- package/lib/shared/domain/case-view/challenged-access-request.model.d.ts.map +1 -0
- package/lib/shared/domain/case-view/index.d.ts +12 -0
- package/lib/shared/domain/case-view/index.d.ts.map +1 -0
- package/lib/shared/domain/case-view/review-specific-access-request.model.d.ts +5 -0
- package/lib/shared/domain/case-view/review-specific-access-request.model.d.ts.map +1 -0
- package/lib/shared/domain/case-view/role-assignment-response.model.d.ts +7 -0
- package/lib/shared/domain/case-view/role-assignment-response.model.d.ts.map +1 -0
- package/lib/shared/domain/case-view/role-request.model.d.ts +35 -0
- package/lib/shared/domain/case-view/role-request.model.d.ts.map +1 -0
- package/lib/shared/domain/case-view/specific-access-request.model.d.ts +4 -0
- package/lib/shared/domain/case-view/specific-access-request.model.d.ts.map +1 -0
- package/lib/shared/domain/definition/access-control-list.model.d.ts +8 -0
- package/lib/shared/domain/definition/access-control-list.model.d.ts.map +1 -0
- package/lib/shared/domain/definition/banner.model.d.ts +8 -0
- package/lib/shared/domain/definition/banner.model.d.ts.map +1 -0
- package/lib/shared/domain/definition/case-event.model.d.ts +14 -0
- package/lib/shared/domain/definition/case-event.model.d.ts.map +1 -0
- package/lib/shared/domain/definition/case-field.model.d.ts +44 -0
- package/lib/shared/domain/definition/case-field.model.d.ts.map +1 -0
- package/lib/shared/domain/definition/case-state.model.d.ts +8 -0
- package/lib/shared/domain/definition/case-state.model.d.ts.map +1 -0
- package/lib/shared/domain/definition/case-type-lite.model.d.ts +10 -0
- package/lib/shared/domain/definition/case-type-lite.model.d.ts.map +1 -0
- package/lib/shared/domain/definition/case-type.model.d.ts +15 -0
- package/lib/shared/domain/definition/case-type.model.d.ts.map +1 -0
- package/lib/shared/domain/definition/event-case-field.model.d.ts +5 -0
- package/lib/shared/domain/definition/event-case-field.model.d.ts.map +1 -0
- package/lib/shared/domain/definition/field-type-enum.model.d.ts +2 -0
- package/lib/shared/domain/definition/field-type-enum.model.d.ts.map +1 -0
- package/lib/shared/domain/definition/field-type.model.d.ts +14 -0
- package/lib/shared/domain/definition/field-type.model.d.ts.map +1 -0
- package/lib/shared/domain/definition/fixed-list-item.model.d.ts +7 -0
- package/lib/shared/domain/definition/fixed-list-item.model.d.ts.map +1 -0
- package/lib/shared/domain/definition/index.d.ts +12 -0
- package/lib/shared/domain/definition/index.d.ts.map +1 -0
- package/lib/shared/domain/definition/jurisdiction.model.d.ts +8 -0
- package/lib/shared/domain/definition/jurisdiction.model.d.ts.map +1 -0
- package/lib/shared/domain/document/document-data.model.d.ts +26 -0
- package/lib/shared/domain/document/document-data.model.d.ts.map +1 -0
- package/lib/shared/domain/document/index.d.ts +2 -0
- package/lib/shared/domain/document/index.d.ts.map +1 -0
- package/lib/shared/domain/draft.model.d.ts +13 -0
- package/lib/shared/domain/draft.model.d.ts.map +1 -0
- package/lib/shared/domain/error-message.model.d.ts +9 -0
- package/lib/shared/domain/error-message.model.d.ts.map +1 -0
- package/lib/shared/domain/http/http-error.model.d.ts +18 -0
- package/lib/shared/domain/http/http-error.model.d.ts.map +1 -0
- package/lib/shared/domain/http/index.d.ts +2 -0
- package/lib/shared/domain/http/index.d.ts.map +1 -0
- package/lib/shared/domain/index.d.ts +23 -0
- package/lib/shared/domain/index.d.ts.map +1 -0
- package/lib/shared/domain/order/index.d.ts +2 -0
- package/lib/shared/domain/order/index.d.ts.map +1 -0
- package/lib/shared/domain/order/orderable.model.d.ts +4 -0
- package/lib/shared/domain/order/orderable.model.d.ts.map +1 -0
- package/lib/shared/domain/organisation/index.d.ts +3 -0
- package/lib/shared/domain/organisation/index.d.ts.map +1 -0
- package/lib/shared/domain/organisation/organisation-converter.d.ts +10 -0
- package/lib/shared/domain/organisation/organisation-converter.d.ts.map +1 -0
- package/lib/shared/domain/organisation/simple-organisation.model.d.ts +6 -0
- package/lib/shared/domain/organisation/simple-organisation.model.d.ts.map +1 -0
- package/lib/shared/domain/pagination-metadata.model.d.ts +5 -0
- package/lib/shared/domain/pagination-metadata.model.d.ts.map +1 -0
- package/lib/shared/domain/predicate.model.d.ts +2 -0
- package/lib/shared/domain/predicate.model.d.ts.map +1 -0
- package/lib/shared/domain/profile/index.d.ts +2 -0
- package/lib/shared/domain/profile/index.d.ts.map +1 -0
- package/lib/shared/domain/profile/profile.model.d.ts +24 -0
- package/lib/shared/domain/profile/profile.model.d.ts.map +1 -0
- package/lib/shared/domain/search/field.model.d.ts +11 -0
- package/lib/shared/domain/search/field.model.d.ts.map +1 -0
- package/lib/shared/domain/search/index.d.ts +5 -0
- package/lib/shared/domain/search/index.d.ts.map +1 -0
- package/lib/shared/domain/search/search-result-view-column.model.d.ts +10 -0
- package/lib/shared/domain/search/search-result-view-column.model.d.ts.map +1 -0
- package/lib/shared/domain/search/search-result-view-item.model.d.ts +10 -0
- package/lib/shared/domain/search/search-result-view-item.model.d.ts.map +1 -0
- package/lib/shared/domain/search/search-result-view.model.d.ts +9 -0
- package/lib/shared/domain/search/search-result-view.model.d.ts.map +1 -0
- package/lib/shared/domain/search/sorting/search-result-view-item-comparator.d.ts +5 -0
- package/lib/shared/domain/search/sorting/search-result-view-item-comparator.d.ts.map +1 -0
- package/lib/shared/domain/search/sorting/sort-order.d.ts +6 -0
- package/lib/shared/domain/search/sorting/sort-order.d.ts.map +1 -0
- package/lib/shared/domain/search/sorting/sort-parameters.d.ts +8 -0
- package/lib/shared/domain/search/sorting/sort-parameters.d.ts.map +1 -0
- package/lib/shared/domain/user/user-details.model.d.ts +10 -0
- package/lib/shared/domain/user/user-details.model.d.ts.map +1 -0
- package/lib/shared/domain/user/user-info.model.d.ts +11 -0
- package/lib/shared/domain/user/user-info.model.d.ts.map +1 -0
- package/lib/shared/domain/work-allocation/Task.d.ts +50 -0
- package/lib/shared/domain/work-allocation/Task.d.ts.map +1 -0
- package/lib/shared/domain/work-allocation/TaskPayload.d.ts +6 -0
- package/lib/shared/domain/work-allocation/TaskPayload.d.ts.map +1 -0
- package/lib/shared/domain/work-allocation/index.d.ts +2 -0
- package/lib/shared/domain/work-allocation/index.d.ts.map +1 -0
- package/lib/shared/domain/work-allocation/task-response.model.d.ts +5 -0
- package/lib/shared/domain/work-allocation/task-response.model.d.ts.map +1 -0
- package/lib/shared/domain/work-allocation/task-search-parameter.model.d.ts +15 -0
- package/lib/shared/domain/work-allocation/task-search-parameter.model.d.ts.map +1 -0
- package/lib/shared/domain/workbasket/index.d.ts +2 -0
- package/lib/shared/domain/workbasket/index.d.ts.map +1 -0
- package/lib/shared/domain/workbasket/workbasket-input.model.d.ts +14 -0
- package/lib/shared/domain/workbasket/workbasket-input.model.d.ts.map +1 -0
- package/lib/shared/fixture/case-field-builder.d.ts +22 -0
- package/lib/shared/fixture/case-field-builder.d.ts.map +1 -0
- package/lib/shared/fixture/shared.test.fixture.d.ts +25 -0
- package/lib/shared/fixture/shared.test.fixture.d.ts.map +1 -0
- package/lib/shared/index.d.ts +8 -0
- package/lib/shared/index.d.ts.map +1 -0
- package/lib/shared/pipes/case-reference/case-reference.pipe.d.ts +8 -0
- package/lib/shared/pipes/case-reference/case-reference.pipe.d.ts.map +1 -0
- package/lib/shared/pipes/case-reference/index.d.ts +2 -0
- package/lib/shared/pipes/case-reference/index.d.ts.map +1 -0
- package/lib/shared/pipes/case-title/ccd-case-title.pipe.d.ts +15 -0
- package/lib/shared/pipes/case-title/ccd-case-title.pipe.d.ts.map +1 -0
- package/lib/shared/pipes/case-title/index.d.ts +2 -0
- package/lib/shared/pipes/case-title/index.d.ts.map +1 -0
- package/lib/shared/pipes/index.d.ts +5 -0
- package/lib/shared/pipes/index.d.ts.map +1 -0
- package/lib/shared/pipes/pipes.module.d.ts +11 -0
- package/lib/shared/pipes/pipes.module.d.ts.map +1 -0
- package/lib/shared/pipes/search-result/sorting/sort-search-result.pipe.d.ts +10 -0
- package/lib/shared/pipes/search-result/sorting/sort-search-result.pipe.d.ts.map +1 -0
- package/lib/shared/services/activity/activity.polling.service.d.ts +30 -0
- package/lib/shared/services/activity/activity.polling.service.d.ts.map +1 -0
- package/lib/shared/services/activity/activity.service.d.ts +26 -0
- package/lib/shared/services/activity/activity.service.d.ts.map +1 -0
- package/lib/shared/services/activity/index.d.ts +3 -0
- package/lib/shared/services/activity/index.d.ts.map +1 -0
- package/lib/shared/services/addresses/address-parser.d.ts +18 -0
- package/lib/shared/services/addresses/address-parser.d.ts.map +1 -0
- package/lib/shared/services/addresses/addresses.service.d.ts +21 -0
- package/lib/shared/services/addresses/addresses.service.d.ts.map +1 -0
- package/lib/shared/services/addresses/index.d.ts +2 -0
- package/lib/shared/services/addresses/index.d.ts.map +1 -0
- package/lib/shared/services/alert/alert.service.d.ts +35 -0
- package/lib/shared/services/alert/alert.service.d.ts.map +1 -0
- package/lib/shared/services/alert/index.d.ts +2 -0
- package/lib/shared/services/alert/index.d.ts.map +1 -0
- package/lib/shared/services/auth/auth.service.d.ts +16 -0
- package/lib/shared/services/auth/auth.service.d.ts.map +1 -0
- package/lib/shared/services/auth/index.d.ts +2 -0
- package/lib/shared/services/auth/index.d.ts.map +1 -0
- package/lib/shared/services/banners/banners.service.d.ts +15 -0
- package/lib/shared/services/banners/banners.service.d.ts.map +1 -0
- package/lib/shared/services/banners/index.d.ts +2 -0
- package/lib/shared/services/banners/index.d.ts.map +1 -0
- package/lib/shared/services/browser/browser.service.d.ts +9 -0
- package/lib/shared/services/browser/browser.service.d.ts.map +1 -0
- package/lib/shared/services/browser/index.d.ts +2 -0
- package/lib/shared/services/browser/index.d.ts.map +1 -0
- package/lib/shared/services/case-fields/case-field.service.d.ts +11 -0
- package/lib/shared/services/case-fields/case-field.service.d.ts.map +1 -0
- package/lib/shared/services/case-fields/format-translator.service.d.ts +16 -0
- package/lib/shared/services/case-fields/format-translator.service.d.ts.map +1 -0
- package/lib/shared/services/case-fields/index.d.ts +2 -0
- package/lib/shared/services/case-fields/index.d.ts.map +1 -0
- package/lib/shared/services/definitions/definitions.module.d.ts +7 -0
- package/lib/shared/services/definitions/definitions.module.d.ts.map +1 -0
- package/lib/shared/services/definitions/definitions.service.d.ts +16 -0
- package/lib/shared/services/definitions/definitions.service.d.ts.map +1 -0
- package/lib/shared/services/definitions/index.d.ts +3 -0
- package/lib/shared/services/definitions/index.d.ts.map +1 -0
- package/lib/shared/services/document-management/document-management.service.d.ts +34 -0
- package/lib/shared/services/document-management/document-management.service.d.ts.map +1 -0
- package/lib/shared/services/document-management/index.d.ts +2 -0
- package/lib/shared/services/document-management/index.d.ts.map +1 -0
- package/lib/shared/services/draft/draft.service.d.ts +25 -0
- package/lib/shared/services/draft/draft.service.d.ts.map +1 -0
- package/lib/shared/services/draft/index.d.ts +2 -0
- package/lib/shared/services/draft/index.d.ts.map +1 -0
- package/lib/shared/services/error/error-notifier.service.d.ts +10 -0
- package/lib/shared/services/error/error-notifier.service.d.ts.map +1 -0
- package/lib/shared/services/error/index.d.ts +2 -0
- package/lib/shared/services/error/index.d.ts.map +1 -0
- package/lib/shared/services/eventStatusService/event-status.service.d.ts +11 -0
- package/lib/shared/services/eventStatusService/event-status.service.d.ts.map +1 -0
- package/lib/shared/services/eventStatusService/index.d.ts +2 -0
- package/lib/shared/services/eventStatusService/index.d.ts.map +1 -0
- package/lib/shared/services/fields/fields.purger.d.ts +39 -0
- package/lib/shared/services/fields/fields.purger.d.ts.map +1 -0
- package/lib/shared/services/fields/fields.utils.d.ts +81 -0
- package/lib/shared/services/fields/fields.utils.d.ts.map +1 -0
- package/lib/shared/services/fields/index.d.ts +3 -0
- package/lib/shared/services/fields/index.d.ts.map +1 -0
- package/lib/shared/services/form/field-type-sanitiser.d.ts +29 -0
- package/lib/shared/services/form/field-type-sanitiser.d.ts.map +1 -0
- package/lib/shared/services/form/form-error.service.d.ts +12 -0
- package/lib/shared/services/form/form-error.service.d.ts.map +1 -0
- package/lib/shared/services/form/form-validators.service.d.ts +12 -0
- package/lib/shared/services/form/form-validators.service.d.ts.map +1 -0
- package/lib/shared/services/form/form-value.service.d.ts +172 -0
- package/lib/shared/services/form/form-value.service.d.ts.map +1 -0
- package/lib/shared/services/form/index.d.ts +5 -0
- package/lib/shared/services/form/index.d.ts.map +1 -0
- package/lib/shared/services/http/http-error.service.d.ts +19 -0
- package/lib/shared/services/http/http-error.service.d.ts.map +1 -0
- package/lib/shared/services/http/http.service.d.ts +60 -0
- package/lib/shared/services/http/http.service.d.ts.map +1 -0
- package/lib/shared/services/http/index.d.ts +3 -0
- package/lib/shared/services/http/index.d.ts.map +1 -0
- package/lib/shared/services/index.d.ts +29 -0
- package/lib/shared/services/index.d.ts.map +1 -0
- package/lib/shared/services/jurisdiction/index.d.ts +2 -0
- package/lib/shared/services/jurisdiction/index.d.ts.map +1 -0
- package/lib/shared/services/jurisdiction/jurisdiction.service.d.ts +11 -0
- package/lib/shared/services/jurisdiction/jurisdiction.service.d.ts.map +1 -0
- package/lib/shared/services/loading/index.d.ts +3 -0
- package/lib/shared/services/loading/index.d.ts.map +1 -0
- package/lib/shared/services/loading/loading.module.d.ts +7 -0
- package/lib/shared/services/loading/loading.module.d.ts.map +1 -0
- package/lib/shared/services/loading/loading.service.d.ts +16 -0
- package/lib/shared/services/loading/loading.service.d.ts.map +1 -0
- package/lib/shared/services/navigation/index.d.ts +3 -0
- package/lib/shared/services/navigation/index.d.ts.map +1 -0
- package/lib/shared/services/navigation/navigation-notifier.service.d.ts +10 -0
- package/lib/shared/services/navigation/navigation-notifier.service.d.ts.map +1 -0
- package/lib/shared/services/navigation/navigation-origin.model.d.ts +8 -0
- package/lib/shared/services/navigation/navigation-origin.model.d.ts.map +1 -0
- package/lib/shared/services/order/index.d.ts +2 -0
- package/lib/shared/services/order/index.d.ts.map +1 -0
- package/lib/shared/services/order/order.service.d.ts +19 -0
- package/lib/shared/services/order/order.service.d.ts.map +1 -0
- package/lib/shared/services/organisation/index.d.ts +2 -0
- package/lib/shared/services/organisation/index.d.ts.map +1 -0
- package/lib/shared/services/organisation/organisation.service.d.ts +53 -0
- package/lib/shared/services/organisation/organisation.service.d.ts.map +1 -0
- package/lib/shared/services/profile/index.d.ts +3 -0
- package/lib/shared/services/profile/index.d.ts.map +1 -0
- package/lib/shared/services/profile/profile.notifier.d.ts +11 -0
- package/lib/shared/services/profile/profile.notifier.d.ts.map +1 -0
- package/lib/shared/services/profile/profile.service.d.ts +16 -0
- package/lib/shared/services/profile/profile.service.d.ts.map +1 -0
- package/lib/shared/services/request/index.d.ts +2 -0
- package/lib/shared/services/request/index.d.ts.map +1 -0
- package/lib/shared/services/request/request.options.builder.d.ts +17 -0
- package/lib/shared/services/request/request.options.builder.d.ts.map +1 -0
- package/lib/shared/services/router/index.d.ts +2 -0
- package/lib/shared/services/router/index.d.ts.map +1 -0
- package/lib/shared/services/router/router-helper.service.d.ts +8 -0
- package/lib/shared/services/router/router-helper.service.d.ts.map +1 -0
- package/lib/shared/services/search/index.d.ts +2 -0
- package/lib/shared/services/search/index.d.ts.map +1 -0
- package/lib/shared/services/search/search.service.d.ts +32 -0
- package/lib/shared/services/search/search.service.d.ts.map +1 -0
- package/lib/shared/services/search-result/sorting/search-result-view-item-comparator-factory.d.ts +12 -0
- package/lib/shared/services/search-result/sorting/search-result-view-item-comparator-factory.d.ts.map +1 -0
- package/lib/shared/services/session/index.d.ts +2 -0
- package/lib/shared/services/session/index.d.ts.map +1 -0
- package/lib/shared/services/session/session-storage.service.d.ts +22 -0
- package/lib/shared/services/session/session-storage.service.d.ts.map +1 -0
- package/lib/shared/services/window/index.d.ts +2 -0
- package/lib/shared/services/window/index.d.ts.map +1 -0
- package/lib/shared/services/window/window.service.d.ts +15 -0
- package/lib/shared/services/window/window.service.d.ts.map +1 -0
- package/lib/shared/services/workbasket/index.d.ts +2 -0
- package/lib/shared/services/workbasket/index.d.ts.map +1 -0
- package/lib/shared/services/workbasket/workbasket-input-filter.service.d.ts +19 -0
- package/lib/shared/services/workbasket/workbasket-input-filter.service.d.ts.map +1 -0
- package/lib/shared/test/test-route-snapshot-builder.d.ts +11 -0
- package/lib/shared/test/test-route-snapshot-builder.d.ts.map +1 -0
- package/package.json +14 -199
- package/public-api.d.ts +3 -0
- package/public-api.d.ts.map +1 -0
- package/.editorconfig +0 -14
- package/.github/CONTRIBUTING.md +0 -39
- package/.github/ISSUE_TEMPLATE.md +0 -5
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -23
- package/.github/stale.yml +0 -24
- package/.github/workflows/npmpublish.yml +0 -98
- package/.nyc_output/.gitkeep +0 -1
- package/.project +0 -4
- package/.storybook/main.js +0 -13
- package/.storybook/preview.js +0 -15
- package/.storybook/tsconfig.json +0 -21
- package/.storybook/typings.d.ts +0 -4
- package/.travis.yml +0 -54
- package/LICENSE.md +0 -9
- package/README.md +0 -191
- package/RELEASE-NOTES.md +0 -1153
- package/angular.json +0 -193
- package/bin/run-yarn-audit.sh +0 -38
- package/browserslist +0 -12
- package/documentation.json +0 -88650
- package/e2e/tsconfig.e2e.json +0 -13
- package/projects/ccd-case-ui-toolkit/ng-package.json +0 -8
- package/projects/ccd-case-ui-toolkit/package.json +0 -18
- package/projects/ccd-case-ui-toolkit/tsconfig.lib.json +0 -33
- package/projects/ccd-case-ui-toolkit/tsconfig.lib.prod.json +0 -7
- package/projects/ccd-case-ui-toolkit/tsconfig.spec.json +0 -21
- package/projects/ccd-case-ui-toolkit/tslint.json +0 -96
- package/scripts/create-release-tag.sh +0 -23
- package/sonar-project.properties +0 -12
- package/storybook/assets/fonts/bold-a2452cb66f-v1.woff2 +0 -0
- package/storybook/assets/fonts/bold-f38c792ac2-v1.woff +0 -0
- package/storybook/assets/fonts/bold-fb2676462a-v1.eot +0 -0
- package/storybook/assets/fonts/bold-tabular-357fdfbcc3-v1.eot +0 -0
- package/storybook/assets/fonts/bold-tabular-784c21afb8-v1.woff +0 -0
- package/storybook/assets/fonts/bold-tabular-b89238d840-v1.woff2 +0 -0
- package/storybook/assets/fonts/light-2c037cf7e1-v1.eot +0 -0
- package/storybook/assets/fonts/light-458f8ea81c-v1.woff +0 -0
- package/storybook/assets/fonts/light-f38ad40456-v1.woff2 +0 -0
- package/storybook/assets/fonts/light-tabular-498ea8ffe2-v1.eot +0 -0
- package/storybook/assets/fonts/light-tabular-62cc6f0a28-v1.woff +0 -0
- package/storybook/assets/fonts/light-tabular-851b10ccdd-v1.woff2 +0 -0
- package/storybook/assets/images/govuk-crest-2x.png +0 -0
- package/storybook/assets/images/govuk-crest.png +0 -0
- package/storybook/assets/img/accordion-minus.png +0 -0
- package/storybook/assets/img/accordion-plus.png +0 -0
- package/storybook/assets/img/apple-touch-icon-120x120.png +0 -0
- package/storybook/assets/img/apple-touch-icon-152x152.png +0 -0
- package/storybook/assets/img/apple-touch-icon-60x60.png +0 -0
- package/storybook/assets/img/apple-touch-icon-76x76.png +0 -0
- package/storybook/assets/img/dropdown-arrow.PNG +0 -0
- package/storybook/assets/img/editor.png +0 -0
- package/storybook/assets/img/editorBanner.png +0 -0
- package/storybook/assets/img/favicon.ico +0 -0
- package/storybook/assets/img/gov.uk_logotype_crown.svg +0 -7
- package/storybook/assets/img/gov.uk_logotype_crown_invert_trans.png +0 -0
- package/storybook/assets/img/icon-search-white.png +0 -0
- package/storybook/assets/img/viewer.png +0 -0
- package/storybook/assets/img/viewerBanner.png +0 -0
- package/storybook/assets/img/warning.png +0 -0
- package/storybook/assets/img/x.PNG +0 -0
- package/storybook/assets/sass/annotation-ui-theme.scss +0 -217
- package/storybook/assets/sass/application-ie8.scss +0 -3
- package/storybook/assets/sass/application.scss +0 -214
- package/storybook/assets/sass/components/_cookie-banner.scss +0 -24
- package/storybook/assets/sass/jui/all.scss +0 -20
- package/storybook/assets/sass/jui/objects/_manifest.scss +0 -5
- package/storybook/assets/sass/jui/objects/_objects.container.scss +0 -7
- package/storybook/assets/sass/jui/settings/_manifest.scss +0 -6
- package/storybook/assets/sass/jui/settings/_settings.aspect-ratio.scss +0 -9
- package/storybook/assets/sass/jui/settings/_settings.general.scss +0 -34
- package/storybook/assets/sass/patterns/_check-your-answers.scss +0 -86
- package/storybook/assets/sass/patterns/_pba.scss +0 -278
- package/storybook/assets/sass/patterns/_related-items.scss +0 -11
- package/storybook/assets/sass/patterns/_task-list.scss +0 -72
- package/storybook/assets/sass/unbranded.scss +0 -12
- package/storybook/storybook.component.ts +0 -11
- package/storybook/storybook.styles.scss +0 -17
- package/storybook/style/_buttons.scss +0 -19
- package/storybook/style/_forms.scss +0 -19
- package/storybook/style/_markdown.scss +0 -48
- package/storybook/style/_material.scss +0 -53
- package/storybook/style/_notifications.scss +0 -23
- package/storybook/style/_palette.scss +0 -77
- package/storybook/style/_print.scss +0 -19
- package/storybook/style/app.scss +0 -399
- package/storybook/style/vendor/prism.scss +0 -116
- package/storybook-static/0.835660aac5fb57f1c871.manager.bundle.js +0 -2
- package/storybook-static/0.835660aac5fb57f1c871.manager.bundle.js.LICENSE.txt +0 -8
- package/storybook-static/0.8a2e5fcc.iframe.bundle.js +0 -3
- package/storybook-static/0.8a2e5fcc.iframe.bundle.js.LICENSE.txt +0 -17
- package/storybook-static/0.8a2e5fcc.iframe.bundle.js.map +0 -1
- package/storybook-static/1.2f18dfb406091ad58686.manager.bundle.js +0 -1
- package/storybook-static/1.ab9ea240.iframe.bundle.js +0 -3
- package/storybook-static/1.ab9ea240.iframe.bundle.js.LICENSE.txt +0 -8
- package/storybook-static/1.ab9ea240.iframe.bundle.js.map +0 -1
- package/storybook-static/10.fa5fcd50.iframe.bundle.js +0 -3
- package/storybook-static/10.fa5fcd50.iframe.bundle.js.LICENSE.txt +0 -12
- package/storybook-static/10.fa5fcd50.iframe.bundle.js.map +0 -1
- package/storybook-static/2.e37e048c.iframe.bundle.js +0 -1
- package/storybook-static/3.a2afbe6b.iframe.bundle.js +0 -1
- package/storybook-static/5.472a084050c6577e437c.manager.bundle.js +0 -2
- package/storybook-static/5.472a084050c6577e437c.manager.bundle.js.LICENSE.txt +0 -31
- package/storybook-static/6.6d8b7e0d6abfb2af3157.manager.bundle.js +0 -1
- package/storybook-static/7.33e8f7c3.iframe.bundle.js +0 -3
- package/storybook-static/7.33e8f7c3.iframe.bundle.js.LICENSE.txt +0 -31
- package/storybook-static/7.33e8f7c3.iframe.bundle.js.map +0 -1
- package/storybook-static/7.b9048b95a2d61a0d5990.manager.bundle.js +0 -1
- package/storybook-static/8.c0075f29233ef3a5f866.manager.bundle.js +0 -2
- package/storybook-static/8.c0075f29233ef3a5f866.manager.bundle.js.LICENSE.txt +0 -12
- package/storybook-static/8.c6adb04b.iframe.bundle.js +0 -1
- package/storybook-static/9.73d6cb6ada64ba200277.manager.bundle.js +0 -1
- package/storybook-static/9.eaf466b7.iframe.bundle.js +0 -1
- package/storybook-static/favicon.ico +0 -0
- package/storybook-static/iframe.html +0 -364
- package/storybook-static/index.html +0 -59
- package/storybook-static/main.6f2a4d7a.iframe.bundle.js +0 -1
- package/storybook-static/main.bbfce4da3ddc788a6d97.manager.bundle.js +0 -1
- package/storybook-static/project.json +0 -1
- package/storybook-static/runtime~main.17dc4af8228ff7ffc150.manager.bundle.js +0 -1
- package/storybook-static/runtime~main.da0120f3.iframe.bundle.js +0 -1
- package/storybook-static/static/media/code-brackets.2e1112d7.svg +0 -1
- package/storybook-static/static/media/colors.a4bd0486.svg +0 -1
- package/storybook-static/static/media/comments.a3859089.svg +0 -1
- package/storybook-static/static/media/direction.b770f9af.svg +0 -1
- package/storybook-static/static/media/flow.edad2ac1.svg +0 -1
- package/storybook-static/static/media/plugin.d494b228.svg +0 -1
- package/storybook-static/static/media/repo.6d496322.svg +0 -1
- package/storybook-static/static/media/stackalt.dba9fbb3.svg +0 -1
- package/storybook-static/vendors~main.ac63a4b3609bbef0abd4.manager.bundle.js +0 -2
- package/storybook-static/vendors~main.ac63a4b3609bbef0abd4.manager.bundle.js.LICENSE.txt +0 -104
- package/storybook-static/vendors~main.c4556936.iframe.bundle.js +0 -13
- package/storybook-static/vendors~main.c4556936.iframe.bundle.js.LICENSE.txt +0 -94
- package/storybook-static/vendors~main.c4556936.iframe.bundle.js.map +0 -1
- package/tsconfig.json +0 -44
- package/tslint.json +0 -96
- package/yarn-audit-known-issues +0 -28
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { throwError } from 'rxjs';
|
|
3
|
+
import { catchError, map } from 'rxjs/operators';
|
|
4
|
+
import { AbstractAppConfig } from '../../../../app.config';
|
|
5
|
+
import { AlertService } from '../../../services/alert/alert.service';
|
|
6
|
+
import { HttpErrorService } from '../../../services/http/http-error.service';
|
|
7
|
+
import { HttpService } from '../../../services/http/http.service';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
import * as i1 from "../../../services/http/http.service";
|
|
10
|
+
import * as i2 from "../../../../app.config";
|
|
11
|
+
import * as i3 from "../../../services/http/http-error.service";
|
|
12
|
+
import * as i4 from "../../../services/alert/alert.service";
|
|
13
|
+
export const MULTIPLE_TASKS_FOUND = 'More than one task found!';
|
|
14
|
+
export class WorkAllocationService {
|
|
15
|
+
constructor(http, appConfig, errorService, alertService) {
|
|
16
|
+
this.http = http;
|
|
17
|
+
this.appConfig = appConfig;
|
|
18
|
+
this.errorService = errorService;
|
|
19
|
+
this.alertService = alertService;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Call the API to get tasks matching the search criteria.
|
|
23
|
+
* @param searchRequest The search parameters that specify which tasks to match.
|
|
24
|
+
*/
|
|
25
|
+
searchTasks(searchRequest) {
|
|
26
|
+
const url = `${this.appConfig.getWorkAllocationApiUrl()}/searchForCompletable`;
|
|
27
|
+
return this.http
|
|
28
|
+
.post(url, { searchRequest }, null, false)
|
|
29
|
+
.pipe(map(response => response), catchError(error => {
|
|
30
|
+
this.errorService.setError(error);
|
|
31
|
+
// explicitly eat away 401 error and 400 error
|
|
32
|
+
if (error && error.status && (error.status === 401 || error.status === 400)) {
|
|
33
|
+
// do nothing
|
|
34
|
+
console.log('error status 401 or 400', error);
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
return throwError(error);
|
|
38
|
+
}
|
|
39
|
+
}));
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Call the API to assign a task.
|
|
43
|
+
* @param taskId specifies which task should be assigned.
|
|
44
|
+
* @param userId specifies the user the task should be assigned to.
|
|
45
|
+
*/
|
|
46
|
+
assignTask(taskId, userId) {
|
|
47
|
+
const url = `${this.appConfig.getWorkAllocationApiUrl()}/task/${taskId}/assign`;
|
|
48
|
+
return this.http
|
|
49
|
+
.post(url, { userId })
|
|
50
|
+
.pipe(catchError(error => {
|
|
51
|
+
this.errorService.setError(error);
|
|
52
|
+
return throwError(error);
|
|
53
|
+
}));
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Call the API to complete a task.
|
|
57
|
+
* @param taskId specifies which task should be completed.
|
|
58
|
+
*/
|
|
59
|
+
completeTask(taskId) {
|
|
60
|
+
const url = `${this.appConfig.getWorkAllocationApiUrl()}/task/${taskId}/complete`;
|
|
61
|
+
return this.http
|
|
62
|
+
.post(url, {})
|
|
63
|
+
.pipe(catchError(error => {
|
|
64
|
+
this.errorService.setError(error);
|
|
65
|
+
// this will subscribe to get the user details and decide whether to display an error message
|
|
66
|
+
this.http.get(this.appConfig.getUserInfoApiUrl()).pipe(map(response => response)).subscribe((response) => {
|
|
67
|
+
this.handleTaskCompletionError(response);
|
|
68
|
+
});
|
|
69
|
+
return throwError(error);
|
|
70
|
+
}));
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Call the API to assign and complete a task.
|
|
74
|
+
* @param taskId specifies which task should be completed.
|
|
75
|
+
*/
|
|
76
|
+
assignAndCompleteTask(taskId) {
|
|
77
|
+
const url = `${this.appConfig.getWorkAllocationApiUrl()}/task/${taskId}/complete`;
|
|
78
|
+
return this.http
|
|
79
|
+
.post(url, {
|
|
80
|
+
completion_options: {
|
|
81
|
+
assign_and_complete: true
|
|
82
|
+
}
|
|
83
|
+
})
|
|
84
|
+
.pipe(catchError(error => {
|
|
85
|
+
this.errorService.setError(error);
|
|
86
|
+
// this will subscribe to get the user details and decide whether to display an error message
|
|
87
|
+
this.http.get(this.appConfig.getUserInfoApiUrl()).pipe(map(response => response)).subscribe((response) => {
|
|
88
|
+
this.handleTaskCompletionError(response);
|
|
89
|
+
});
|
|
90
|
+
return throwError(error);
|
|
91
|
+
}));
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Handles the response from the observable to get the user details when task is completed.
|
|
95
|
+
* @param response is the response given from the observable which contains the user detaild.
|
|
96
|
+
*/
|
|
97
|
+
handleTaskCompletionError(response) {
|
|
98
|
+
const userDetails = response;
|
|
99
|
+
if (this.userIsCaseworker(userDetails.userInfo.roles)) {
|
|
100
|
+
// when submitting the completion of task if not yet rendered cases/case confirm then preserve the alert for re-rendering
|
|
101
|
+
this.alertService.setPreserveAlerts(true, ['cases/case', 'submit']);
|
|
102
|
+
this.alertService.warning('A task could not be completed successfully. Please complete the task associated with the case manually.');
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Returns true if the user's role is equivalent to a caseworker.
|
|
107
|
+
* @param roles is the list of roles found from the current user.
|
|
108
|
+
*/
|
|
109
|
+
userIsCaseworker(roles) {
|
|
110
|
+
const lowerCaseRoles = roles.map(role => role.toLowerCase());
|
|
111
|
+
// When/if lib & target permanently change to es2016, replace indexOf with includes
|
|
112
|
+
return (lowerCaseRoles.indexOf(WorkAllocationService.iACCaseOfficer) !== -1)
|
|
113
|
+
|| (lowerCaseRoles.indexOf(WorkAllocationService.iACAdmOfficer) !== -1);
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Look for open tasks for a case and event combination. There are 5 possible scenarios:
|
|
117
|
+
* 1. No tasks found => Success.
|
|
118
|
+
* 2. One task found => Mark as done => Success.
|
|
119
|
+
* 3. One task found => Mark as done throws error => Failure.
|
|
120
|
+
* 4. More than one task found => Failure.
|
|
121
|
+
* 5. Search call throws an error => Failure.
|
|
122
|
+
* @param ccdId The ID of the case to find tasks for.
|
|
123
|
+
* @param eventId The ID of the event to find tasks for.
|
|
124
|
+
*/
|
|
125
|
+
completeAppropriateTask(ccdId, eventId, jurisdiction, caseTypeId) {
|
|
126
|
+
const taskSearchParameter = {
|
|
127
|
+
ccdId,
|
|
128
|
+
eventId,
|
|
129
|
+
jurisdiction,
|
|
130
|
+
caseTypeId
|
|
131
|
+
};
|
|
132
|
+
return this.searchTasks(taskSearchParameter)
|
|
133
|
+
.pipe(map((response) => {
|
|
134
|
+
const tasks = response.tasks;
|
|
135
|
+
if (tasks && tasks.length > 0) {
|
|
136
|
+
if (tasks.length === 1) {
|
|
137
|
+
this.completeTask(tasks[0].id).subscribe();
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
// This is a problem. Throw an appropriate error.
|
|
141
|
+
throw new Error(MULTIPLE_TASKS_FOUND);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
return true; // All good. Nothing to see here.
|
|
145
|
+
}), catchError(error => {
|
|
146
|
+
// Simply rethrow it.
|
|
147
|
+
return throwError(error);
|
|
148
|
+
}));
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Return tasks for case and event.
|
|
152
|
+
*/
|
|
153
|
+
getTasksByCaseIdAndEventId(eventId, caseId, caseType, jurisdiction) {
|
|
154
|
+
return this.http.get(`${this.appConfig.getWorkAllocationApiUrl()}/case/tasks/${caseId}/event/${eventId}/caseType/${caseType}/jurisdiction/${jurisdiction}`);
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Call the API to get a task
|
|
158
|
+
*/
|
|
159
|
+
getTask(taskId) {
|
|
160
|
+
return this.http.get(`${this.appConfig.getWorkAllocationApiUrl()}/task/${taskId}`);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
WorkAllocationService.iACCaseOfficer = 'caseworker-ia-caseofficer';
|
|
164
|
+
WorkAllocationService.iACAdmOfficer = 'caseworker-ia-admofficer';
|
|
165
|
+
WorkAllocationService.ɵfac = function WorkAllocationService_Factory(t) { return new (t || WorkAllocationService)(i0.ɵɵinject(i1.HttpService), i0.ɵɵinject(i2.AbstractAppConfig), i0.ɵɵinject(i3.HttpErrorService), i0.ɵɵinject(i4.AlertService)); };
|
|
166
|
+
WorkAllocationService.ɵprov = i0.ɵɵdefineInjectable({ token: WorkAllocationService, factory: WorkAllocationService.ɵfac });
|
|
167
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WorkAllocationService, [{
|
|
168
|
+
type: Injectable
|
|
169
|
+
}], function () { return [{ type: i1.HttpService }, { type: i2.AbstractAppConfig }, { type: i3.HttpErrorService }, { type: i4.AlertService }]; }, null); })();
|
|
170
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29yay1hbGxvY2F0aW9uLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jY2QtY2FzZS11aS10b29sa2l0L3NyYy9saWIvc2hhcmVkL2NvbXBvbmVudHMvY2FzZS1lZGl0b3Ivc2VydmljZXMvd29yay1hbGxvY2F0aW9uLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBQWMsVUFBVSxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBQzlDLE9BQU8sRUFBRSxVQUFVLEVBQUUsR0FBRyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDakQsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFLM0QsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLHVDQUF1QyxDQUFDO0FBQ3JFLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLDJDQUEyQyxDQUFDO0FBQzdFLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxxQ0FBcUMsQ0FBQzs7Ozs7O0FBRWxFLE1BQU0sQ0FBQyxNQUFNLG9CQUFvQixHQUFHLDJCQUE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cbiAgICAgIGNjZElkLFxuICAgICAgZXZlbnRJZCxcbiAgICAgIGp1cmlzZGljdGlvbixcbiAgICAgIGNhc2VUeXBlSWRcbiAgICB9O1xuICAgIHJldHVybiB0aGlzLnNlYXJjaFRhc2tzKHRhc2tTZWFyY2hQYXJhbWV0ZXIpXG4gICAgICAucGlwZShcbiAgICAgICAgbWFwKChyZXNwb25zZTogYW55KSA9PiB7XG4gICAgICAgICAgY29uc3QgdGFza3M6IGFueVtdID0gcmVzcG9uc2UudGFza3M7XG4gICAgICAgICAgaWYgKHRhc2tzICYmIHRhc2tzLmxlbmd0aCA+IDApIHtcbiAgICAgICAgICAgIGlmICh0YXNrcy5sZW5ndGggPT09IDEpIHtcbiAgICAgICAgICAgICAgdGhpcy5jb21wbGV0ZVRhc2sodGFza3NbMF0uaWQpLnN1YnNjcmliZSgpO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgLy8gVGhpcyBpcyBhIHByb2JsZW0uIFRocm93IGFuIGFwcHJvcHJpYXRlIGVycm9yLlxuICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoTVVMVElQTEVfVEFTS1NfRk9VTkQpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgICByZXR1cm4gdHJ1ZTsgLy8gQWxsIGdvb2QuIE5vdGhpbmcgdG8gc2VlIGhlcmUuXG4gICAgICAgIH0pLFxuICAgICAgICBjYXRjaEVycm9yKGVycm9yID0+IHtcbiAgICAgICAgICAvLyBTaW1wbHkgcmV0aHJvdyBpdC5cbiAgICAgICAgICByZXR1cm4gdGhyb3dFcnJvcihlcnJvcik7XG4gICAgICAgIH0pXG4gICAgICApO1xuICB9XG5cbiAgLyoqXG4gICAqIFJldHVybiB0YXNrcyBmb3IgY2FzZSBhbmQgZXZlbnQuXG4gICAqL1xuICBwdWJsaWMgZ2V0VGFza3NCeUNhc2VJZEFuZEV2ZW50SWQoZXZlbnRJZDogc3RyaW5nLCBjYXNlSWQ6IHN0cmluZywgY2FzZVR5cGU6IHN0cmluZywganVyaXNkaWN0aW9uOiBzdHJpbmcpOiBPYnNlcnZhYmxlPFRhc2tQYXlsb2FkPiB7XG4gICAgcmV0dXJuIHRoaXMuaHR0cC5nZXQoYCR7dGhpcy5hcHBDb25maWcuZ2V0V29ya0FsbG9jYXRpb25BcGlVcmwoKX0vY2FzZS90YXNrcy8ke2Nhc2VJZH0vZXZlbnQvJHtldmVudElkfS9jYXNlVHlwZS8ke2Nhc2VUeXBlfS9qdXJpc2RpY3Rpb24vJHtqdXJpc2RpY3Rpb259YCk7XG4gIH1cblxuIC8qKlxuICAqIENhbGwgdGhlIEFQSSB0byBnZXQgYSB0YXNrXG4gICovXG4gcHVibGljIGdldFRhc2sodGFza0lkOiBzdHJpbmcpOiBPYnNlcnZhYmxlPFRhc2tSZXNwb25lPiB7XG4gIHJldHVybiB0aGlzLmh0dHAuZ2V0KGAke3RoaXMuYXBwQ29uZmlnLmdldFdvcmtBbGxvY2F0aW9uQXBpVXJsKCl9L3Rhc2svJHt0YXNrSWR9YCk7XG4gfVxufVxuIl19
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/material/dialog";
|
|
5
|
+
export class DocumentDialogComponent {
|
|
6
|
+
constructor(matDialogRef) {
|
|
7
|
+
this.matDialogRef = matDialogRef;
|
|
8
|
+
}
|
|
9
|
+
ngOnInit() {
|
|
10
|
+
}
|
|
11
|
+
replace() {
|
|
12
|
+
this.result = 'Replace';
|
|
13
|
+
this.matDialogRef.close(this.result);
|
|
14
|
+
}
|
|
15
|
+
cancel() {
|
|
16
|
+
this.result = 'Cancel';
|
|
17
|
+
this.matDialogRef.close(this.result);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
DocumentDialogComponent.ɵfac = function DocumentDialogComponent_Factory(t) { return new (t || DocumentDialogComponent)(i0.ɵɵdirectiveInject(i1.MatDialogRef)); };
|
|
21
|
+
DocumentDialogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: DocumentDialogComponent, selectors: [["ccd-document-dialog"]], decls: 15, vars: 0, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Replace", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Cancel", 1, "button", "button-secondary", 3, "click"]], template: function DocumentDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
22
|
+
i0.ɵɵelementStart(0, "div");
|
|
23
|
+
i0.ɵɵelementStart(1, "div", 0);
|
|
24
|
+
i0.ɵɵelementStart(2, "h2", 1);
|
|
25
|
+
i0.ɵɵlistener("click", function DocumentDialogComponent_Template_h2_click_2_listener() { return ctx.cancel(); });
|
|
26
|
+
i0.ɵɵtext(3, "X");
|
|
27
|
+
i0.ɵɵelementEnd();
|
|
28
|
+
i0.ɵɵelementEnd();
|
|
29
|
+
i0.ɵɵelementStart(4, "div");
|
|
30
|
+
i0.ɵɵelementStart(5, "h2", 2);
|
|
31
|
+
i0.ɵɵtext(6, "Are you sure you want to replace the existing file?");
|
|
32
|
+
i0.ɵɵelementEnd();
|
|
33
|
+
i0.ɵɵelementEnd();
|
|
34
|
+
i0.ɵɵelementStart(7, "div", 3);
|
|
35
|
+
i0.ɵɵelementStart(8, "span", 4);
|
|
36
|
+
i0.ɵɵtext(9, "You are about to delete the original file uploaded. Are you sure you want to proceed?");
|
|
37
|
+
i0.ɵɵelementEnd();
|
|
38
|
+
i0.ɵɵelementEnd();
|
|
39
|
+
i0.ɵɵelementStart(10, "div");
|
|
40
|
+
i0.ɵɵelementStart(11, "button", 5);
|
|
41
|
+
i0.ɵɵlistener("click", function DocumentDialogComponent_Template_button_click_11_listener() { return ctx.replace(); });
|
|
42
|
+
i0.ɵɵtext(12, "Replace file");
|
|
43
|
+
i0.ɵɵelementEnd();
|
|
44
|
+
i0.ɵɵelementStart(13, "button", 6);
|
|
45
|
+
i0.ɵɵlistener("click", function DocumentDialogComponent_Template_button_click_13_listener() { return ctx.cancel(); });
|
|
46
|
+
i0.ɵɵtext(14, "Cancel");
|
|
47
|
+
i0.ɵɵelementEnd();
|
|
48
|
+
i0.ɵɵelementEnd();
|
|
49
|
+
i0.ɵɵelementEnd();
|
|
50
|
+
} }, styles: [".x[_ngcontent-%COMP%]{margin:0;padding:9px 9px 0 0;font-size:24px;font-weight:700;font-style:normal;font-stretch:normal;cursor:pointer;color:#6e7071}.dialog-header[_ngcontent-%COMP%]{text-align:right}.dialog-info[_ngcontent-%COMP%], .dialog-title[_ngcontent-%COMP%]{margin:0 0 21px 25px}.action-button[_ngcontent-%COMP%]{margin:0 15px 0 25px}"] });
|
|
51
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DocumentDialogComponent, [{
|
|
52
|
+
type: Component,
|
|
53
|
+
args: [{
|
|
54
|
+
selector: 'ccd-document-dialog',
|
|
55
|
+
templateUrl: './document-dialog.component.html',
|
|
56
|
+
styleUrls: ['../action-dialog.component.scss']
|
|
57
|
+
}]
|
|
58
|
+
}], function () { return [{ type: i1.MatDialogRef }]; }, null); })();
|
|
59
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9jdW1lbnQtZGlhbG9nLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NjZC1jYXNlLXVpLXRvb2xraXQvc3JjL2xpYi9zaGFyZWQvY29tcG9uZW50cy9kaWFsb2dzL2RvY3VtZW50LWRpYWxvZy9kb2N1bWVudC1kaWFsb2cuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2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hbmNlbDwvYnV0dG9uPlxuICA8L2Rpdj5cbjwvZGl2PlxuIl19
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/material/dialog";
|
|
5
|
+
export class RemoveDialogComponent {
|
|
6
|
+
constructor(matDialogRef) {
|
|
7
|
+
this.matDialogRef = matDialogRef;
|
|
8
|
+
}
|
|
9
|
+
remove() {
|
|
10
|
+
this.result = 'Remove';
|
|
11
|
+
this.matDialogRef.close(this.result);
|
|
12
|
+
}
|
|
13
|
+
cancel() {
|
|
14
|
+
this.result = 'Cancel';
|
|
15
|
+
this.matDialogRef.close(this.result);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
RemoveDialogComponent.ɵfac = function RemoveDialogComponent_Factory(t) { return new (t || RemoveDialogComponent)(i0.ɵɵdirectiveInject(i1.MatDialogRef)); };
|
|
19
|
+
RemoveDialogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RemoveDialogComponent, selectors: [["ccd-remove-dialog"]], decls: 15, vars: 0, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Remove", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Cancel", 1, "button", "button-secondary", 3, "click"]], template: function RemoveDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
20
|
+
i0.ɵɵelementStart(0, "div");
|
|
21
|
+
i0.ɵɵelementStart(1, "div", 0);
|
|
22
|
+
i0.ɵɵelementStart(2, "h2", 1);
|
|
23
|
+
i0.ɵɵlistener("click", function RemoveDialogComponent_Template_h2_click_2_listener() { return ctx.cancel(); });
|
|
24
|
+
i0.ɵɵtext(3, "X");
|
|
25
|
+
i0.ɵɵelementEnd();
|
|
26
|
+
i0.ɵɵelementEnd();
|
|
27
|
+
i0.ɵɵelementStart(4, "div");
|
|
28
|
+
i0.ɵɵelementStart(5, "h2", 2);
|
|
29
|
+
i0.ɵɵtext(6, "Are you sure you want to remove the item");
|
|
30
|
+
i0.ɵɵelementEnd();
|
|
31
|
+
i0.ɵɵelementEnd();
|
|
32
|
+
i0.ɵɵelementStart(7, "div", 3);
|
|
33
|
+
i0.ɵɵelementStart(8, "span", 4);
|
|
34
|
+
i0.ɵɵtext(9, "You are about to permanently remove an item, are you sure you want to remove this item?");
|
|
35
|
+
i0.ɵɵelementEnd();
|
|
36
|
+
i0.ɵɵelementEnd();
|
|
37
|
+
i0.ɵɵelementStart(10, "div");
|
|
38
|
+
i0.ɵɵelementStart(11, "button", 5);
|
|
39
|
+
i0.ɵɵlistener("click", function RemoveDialogComponent_Template_button_click_11_listener() { return ctx.remove(); });
|
|
40
|
+
i0.ɵɵtext(12, "Remove");
|
|
41
|
+
i0.ɵɵelementEnd();
|
|
42
|
+
i0.ɵɵelementStart(13, "button", 6);
|
|
43
|
+
i0.ɵɵlistener("click", function RemoveDialogComponent_Template_button_click_13_listener() { return ctx.cancel(); });
|
|
44
|
+
i0.ɵɵtext(14, "Cancel");
|
|
45
|
+
i0.ɵɵelementEnd();
|
|
46
|
+
i0.ɵɵelementEnd();
|
|
47
|
+
i0.ɵɵelementEnd();
|
|
48
|
+
} }, styles: [".x[_ngcontent-%COMP%]{margin:0;padding:9px 9px 0 0;font-size:24px;font-weight:700;font-style:normal;font-stretch:normal;cursor:pointer;color:#6e7071}.dialog-header[_ngcontent-%COMP%]{text-align:right}.dialog-info[_ngcontent-%COMP%], .dialog-title[_ngcontent-%COMP%]{margin:0 0 21px 25px}.action-button[_ngcontent-%COMP%]{margin:0 15px 0 25px}"] });
|
|
49
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RemoveDialogComponent, [{
|
|
50
|
+
type: Component,
|
|
51
|
+
args: [{
|
|
52
|
+
selector: 'ccd-remove-dialog',
|
|
53
|
+
templateUrl: './remove-dialog.component.html',
|
|
54
|
+
styleUrls: ['../action-dialog.component.scss']
|
|
55
|
+
}]
|
|
56
|
+
}], function () { return [{ type: i1.MatDialogRef }]; }, null); })();
|
|
57
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVtb3ZlLWRpYWxvZy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jY2QtY2FzZS11aS10b29sa2l0L3NyYy9saWIvc2hhcmVkL2NvbXBvbmVudHMvZGlhbG9ncy9yZW1vdmUtZGlhbG9nL3JlbW92ZS1kaWFsb2cuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2NkLWNhc2UtdWktdG9vbGtpdC9zcmMvbGliL3NoYXJlZC9jb21wb25lbnRzL2RpYWxvZ3MvcmVtb3ZlLWRpYWxvZy9yZW1vdmUtZGlhbG9nLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDMUMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLDBCQUEwQixDQUFDOzs7QUFPeEQsTUFBTSxPQUFPLHFCQUFxQjtJQUloQyxZQUE2QixZQUFpRDtRQUFqRCxpQkFBWSxHQUFaLFlBQVksQ0FBcUM7SUFBRyxDQUFDO0lBRTNFLE1BQU07UUFDWCxJQUFJLENBQUMsTUFBTSxHQUFHLFFBQVEsQ0FBQztRQUN2QixJQUFJLENBQUMsWUFBWSxDQUFDLEtBQUssQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLENBQUM7SUFDdkMsQ0FBQztJQUNNLE1BQU07UUFDWCxJQUFJLENBQUMsTUFBTSxHQUFHLFFBQVE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IGl0ZW0/PC9zcGFuPlxuICA8L2Rpdj5cbiAgPGRpdj5cbiAgICA8YnV0dG9uIHR5cGU9XCJidXR0b25cIiB0aXRsZT1cIlJlbW92ZVwiIGNsYXNzPVwiYnV0dG9uIGFjdGlvbi1idXR0b25cIiAoY2xpY2spPVwicmVtb3ZlKClcIj5SZW1vdmU8L2J1dHRvbj5cbiAgICA8YnV0dG9uIHR5cGU9XCJidXR0b25cIiB0aXRsZT1cIkNhbmNlbFwiIGNsYXNzPVwiYnV0dG9uIGJ1dHRvbi1zZWNvbmRhcnlcIiAoY2xpY2spPVwiY2FuY2VsKClcIj5DYW5jZWw8L2J1dHRvbj5cbiAgPC9kaXY+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './init-dialog-helper';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jY2QtY2FzZS11aS10b29sa2l0L3NyYy9saWIvc2hhcmVkL2NvbXBvbmVudHMvaGVscGVycy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHNCQUFzQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9pbml0LWRpYWxvZy1oZWxwZXInO1xuIl19
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MatDialogConfig } from '@angular/material/dialog';
|
|
2
|
+
export function initDialog() {
|
|
3
|
+
const dialogConfig = new MatDialogConfig();
|
|
4
|
+
dialogConfig.disableClose = true;
|
|
5
|
+
dialogConfig.autoFocus = true;
|
|
6
|
+
dialogConfig.ariaLabel = 'Label';
|
|
7
|
+
dialogConfig.height = '245px';
|
|
8
|
+
dialogConfig.width = '550px';
|
|
9
|
+
dialogConfig.panelClass = 'dialog';
|
|
10
|
+
dialogConfig.closeOnNavigation = false;
|
|
11
|
+
dialogConfig.position = {
|
|
12
|
+
top: `${window.innerHeight / 2 - 120}px`, left: `${window.innerWidth / 2 - 275}px`
|
|
13
|
+
};
|
|
14
|
+
return dialogConfig;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5pdC1kaWFsb2ctaGVscGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2NkLWNhc2UtdWktdG9vbGtpdC9zcmMvbGliL3NoYXJlZC9jb21wb25lbnRzL2hlbHBlcnMvaW5pdC1kaWFsb2ctaGVscGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUUzRCxNQUFNLFVBQVUsVUFBVTtJQUN0QixNQUFNLFlBQVksR0FBRyxJQUFJLGVBQWUsRUFBRSxDQUFDO0lBRTNDLFlBQVksQ0FBQyxZQUFZLEdBQUcsSUFBSSxDQUFDO0lBQ2pDLFlBQVksQ0FBQyxTQUFTLEdBQUcsSUFBSSxDQUFDO0lBQzlCLFlBQVksQ0FBQyxTQUFTLEdBQUcsT0FBTyxDQUFDO0lBQ2pDLFlBQVksQ0FBQyxNQUFNLEdBQUcsT0FBTyxDQUFDO0lBQzlCLFlBQVksQ0FBQyxLQUFLLEdBQUcsT0FBTyxDQUFDO0lBQzdCLFlBQVksQ0FBQyxVQUFVLEdBQUcsUUFBUSxDQUFDO0lBQ25DLFlBQVksQ0FBQyxpQkFBaUIsR0FBRyxLQUFLLENBQUM7SUFDdkMsWUFBWSxDQUFDLFFBQVEsR0FBRztRQUN0QixHQUFHLEVBQUUsR0FBRyxNQUFNLENBQUMsV0FBVyxHQUFHLENBQUMsR0FBRyxHQUFHLElBQUksRUFBRSxJQUFJLEVBQUUsR0FBRyxNQUFNLENBQUMsVUFBVSxHQUFHLENBQUMsR0FBRyxHQUFHLElBQUk7S0FDbkYsQ0FBQztJQUVGLE9BQU8sWUFBWSxDQUFDO0FBQ3hCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBNYXREaWFsb2dDb25maWcgfSBmcm9tICdAYW5ndWxhci9tYXRlcmlhbC9kaWFsb2cnO1xuXG5leHBvcnQgZnVuY3Rpb24gaW5pdERpYWxvZygpOiBNYXREaWFsb2dDb25maWcge1xuICAgIGNvbnN0IGRpYWxvZ0NvbmZpZyA9IG5ldyBNYXREaWFsb2dDb25maWcoKTtcblxuICAgIGRpYWxvZ0NvbmZpZy5kaXNhYmxlQ2xvc2UgPSB0cnVlO1xuICAgIGRpYWxvZ0NvbmZpZy5hdXRvRm9jdXMgPSB0cnVlO1xuICAgIGRpYWxvZ0NvbmZpZy5hcmlhTGFiZWwgPSAnTGFiZWwnO1xuICAgIGRpYWxvZ0NvbmZpZy5oZWlnaHQgPSAnMjQ1cHgnO1xuICAgIGRpYWxvZ0NvbmZpZy53aWR0aCA9ICc1NTBweCc7XG4gICAgZGlhbG9nQ29uZmlnLnBhbmVsQ2xhc3MgPSAnZGlhbG9nJztcbiAgICBkaWFsb2dDb25maWcuY2xvc2VPbk5hdmlnYXRpb24gPSBmYWxzZTtcbiAgICBkaWFsb2dDb25maWcucG9zaXRpb24gPSB7XG4gICAgICB0b3A6IGAke3dpbmRvdy5pbm5lckhlaWdodCAvIDIgLSAxMjB9cHhgLCBsZWZ0OiBgJHt3aW5kb3cuaW5uZXJXaWR0aCAvIDIgLSAyNzV9cHhgXG4gICAgfTtcblxuICAgIHJldHVybiBkaWFsb2dDb25maWc7XG59XG4iXX0=
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export class AddressOption {
|
|
2
|
+
constructor(addressModel, description) {
|
|
3
|
+
if (description == null) {
|
|
4
|
+
this.value = addressModel;
|
|
5
|
+
this.description = this.getDescription();
|
|
6
|
+
}
|
|
7
|
+
else {
|
|
8
|
+
this.description = description;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
getDescription() {
|
|
12
|
+
return this.removeInitialCommaIfPresent((this.value.AddressLine1 === undefined ? '' : this.value.AddressLine1)
|
|
13
|
+
+ this.prefixWithCommaIfPresent(this.value.AddressLine2)
|
|
14
|
+
+ this.prefixWithCommaIfPresent(this.value.AddressLine3)
|
|
15
|
+
+ ', ' + this.value.PostTown);
|
|
16
|
+
}
|
|
17
|
+
prefixWithCommaIfPresent(value) {
|
|
18
|
+
return value ? ', ' + value : value;
|
|
19
|
+
}
|
|
20
|
+
removeInitialCommaIfPresent(value) {
|
|
21
|
+
return value.replace(new RegExp('^,', 'gi'), '');
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRkcmVzcy1vcHRpb24ubW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jY2QtY2FzZS11aS10b29sa2l0L3NyYy9saWIvc2hhcmVkL2NvbXBvbmVudHMvcGFsZXR0ZS9hZGRyZXNzL2FkZHJlc3Mtb3B0aW9uLm1vZGVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE1BQU0sT0FBTyxhQUFhO0lBTXhCLFlBQWEsWUFBMEIsRUFBRSxXQUFtQjtRQUMxRCxJQUFJLFdBQVcsSUFBSSxJQUFJLEVBQUU7WUFDdkIsSUFBSSxDQUFDLEtBQUssR0FBRyxZQUFZLENBQUM7WUFDMUIsSUFBSSxDQUFDLFdBQVcsR0FBRyxJQUFJLENBQUMsY0FBYyxFQUFFLENBQUM7U0FDMUM7YUFBTTtZQUNMLElBQUksQ0FBQyxXQUFXLEdBQUcsV0FBVyx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