@hmcts/ccd-case-ui-toolkit 7.0.6 → 7.0.7
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/esm2020/lib/shared/components/case-editor/case-edit/case-edit.component.mjs +3 -3
- package/esm2020/lib/shared/components/case-editor/case-edit-confirm/case-edit-confirm.component.mjs +2 -2
- package/esm2020/lib/shared/components/case-editor/case-edit-generic-errors/case-edit-generic-errors.component.mjs +2 -2
- package/esm2020/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.mjs +2 -11
- package/esm2020/lib/shared/components/case-editor/case-edit-submit/case-edit-submit-titles.enum.mjs +7 -0
- package/esm2020/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.mjs +165 -124
- package/esm2020/lib/shared/components/case-editor/case-editor.module.mjs +17 -22
- package/esm2020/lib/shared/components/case-editor/case-event-completion/case-event-completion.component.mjs +2 -3
- package/esm2020/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-cancelled/case-event-completion-task-cancelled.component.mjs +2 -2
- package/esm2020/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-reassigned/case-event-completion-task-reassigned.component.mjs +2 -2
- package/esm2020/lib/shared/components/case-editor/services/case-flag-state.service.mjs +19 -0
- package/esm2020/lib/shared/components/case-editor/services/cases.service.mjs +6 -1
- package/esm2020/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.mjs +4 -17
- package/esm2020/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.mjs +40 -15
- package/esm2020/lib/shared/components/case-viewer/case-viewer.module.mjs +8 -5
- package/esm2020/lib/shared/components/palette/address/write-address-field.component.mjs +19 -20
- package/esm2020/lib/shared/components/palette/base-field/field-read.component.mjs +1 -1
- package/esm2020/lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.mjs +70 -31
- package/esm2020/lib/shared/components/palette/case-flag/components/case-flag-summary-list/case-flag-summary-list.component.mjs +249 -46
- package/esm2020/lib/shared/components/palette/case-flag/components/case-flag-table/case-flag-table.component.mjs +140 -71
- package/esm2020/lib/shared/components/palette/case-flag/components/confirm-flag-status/confirm-flag-status.component.mjs +165 -0
- package/esm2020/lib/shared/components/palette/case-flag/components/index.mjs +4 -1
- package/esm2020/lib/shared/components/palette/case-flag/components/manage-case-flags/manage-case-flags.component.mjs +73 -78
- package/esm2020/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter-control-names.enum.mjs +6 -0
- package/esm2020/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter.component.mjs +133 -99
- package/esm2020/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.mjs +22 -9
- package/esm2020/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.mjs +213 -112
- package/esm2020/lib/shared/components/palette/case-flag/components/update-flag/update-flag-add-translation-form/update-flag-add-translation-form.component.mjs +267 -0
- package/esm2020/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.mjs +439 -104
- package/esm2020/lib/shared/components/palette/case-flag/domain/case-flag-state.model.mjs +1 -1
- package/esm2020/lib/shared/components/palette/case-flag/domain/case-flag.model.mjs +1 -1
- package/esm2020/lib/shared/components/palette/case-flag/domain/language.model.mjs +1 -1
- package/esm2020/lib/shared/components/palette/case-flag/enums/add-comments-error-message.enum.mjs +2 -1
- package/esm2020/lib/shared/components/palette/case-flag/enums/add-comments-step.enum.mjs +3 -1
- package/esm2020/lib/shared/components/palette/case-flag/enums/case-flag-check-your-answers-step.enum.mjs +12 -0
- package/esm2020/lib/shared/components/palette/case-flag/enums/case-flag-display-context-parameter.enum.mjs +15 -0
- package/esm2020/lib/shared/components/palette/case-flag/enums/case-flag-form-fields.enum.mjs +13 -0
- package/esm2020/lib/shared/components/palette/case-flag/enums/case-flag-status.enum.mjs +3 -2
- package/esm2020/lib/shared/components/palette/case-flag/enums/case-flag-wizard-step-title.enum.mjs +11 -3
- package/esm2020/lib/shared/components/palette/case-flag/enums/confirm-status-error-message.enum.mjs +6 -0
- package/esm2020/lib/shared/components/palette/case-flag/enums/confirm-status-step.enum.mjs +6 -0
- package/esm2020/lib/shared/components/palette/case-flag/enums/index.mjs +9 -2
- package/esm2020/lib/shared/components/palette/case-flag/enums/select-flag-error-message.enum.mjs +3 -2
- package/esm2020/lib/shared/components/palette/case-flag/enums/select-flag-type-error-message.enum.mjs +4 -1
- package/esm2020/lib/shared/components/palette/case-flag/enums/update-flag-add-translation-error-message.enum.mjs +6 -0
- package/esm2020/lib/shared/components/palette/case-flag/enums/update-flag-add-translation-step.enum.mjs +6 -0
- package/esm2020/lib/shared/components/palette/case-flag/enums/update-flag-error-message.enum.mjs +5 -1
- package/esm2020/lib/shared/components/palette/case-flag/enums/update-flag-step.enum.mjs +7 -2
- package/esm2020/lib/shared/components/palette/case-flag/enums/write-case-flag-field.enum.mjs +10 -7
- package/esm2020/lib/shared/components/palette/case-flag/index.mjs +2 -1
- package/esm2020/lib/shared/components/palette/case-flag/pipes/flag-field-display.pipe.mjs +41 -0
- package/esm2020/lib/shared/components/palette/case-flag/pipes/index.mjs +5 -0
- package/esm2020/lib/shared/components/palette/case-flag/pipes/language-interpreter-display.pipe.mjs +41 -0
- package/esm2020/lib/shared/components/palette/case-flag/pipes/manage-case-flags-label-display.pipe.mjs +109 -0
- package/esm2020/lib/shared/components/palette/case-flag/pipes/update-flag-title-display.pipe.mjs +77 -0
- package/esm2020/lib/shared/components/palette/case-flag/read-case-flag-field.component.mjs +156 -57
- package/esm2020/lib/shared/components/palette/case-flag/write-case-flag-field.component.mjs +385 -172
- package/esm2020/lib/shared/components/palette/case-link/write-case-link-field.component.mjs +8 -10
- package/esm2020/lib/shared/components/palette/collection/write-collection-field.component.mjs +49 -54
- package/esm2020/lib/shared/components/palette/complex/read-complex-field.component.mjs +12 -14
- package/esm2020/lib/shared/components/palette/complex/sort-order.mjs +7 -0
- package/esm2020/lib/shared/components/palette/complex/write-complex-field.component.mjs +5 -6
- package/esm2020/lib/shared/components/palette/date/write-date-field.component.mjs +8 -10
- package/esm2020/lib/shared/components/palette/datetime-picker/datetime-picker.component.mjs +8 -10
- package/esm2020/lib/shared/components/palette/document/write-document-field.component.mjs +23 -24
- package/esm2020/lib/shared/components/palette/dynamic-list/write-dynamic-list-field.component.mjs +8 -10
- package/esm2020/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.mjs +8 -10
- package/esm2020/lib/shared/components/palette/email/write-email-field.component.mjs +8 -10
- package/esm2020/lib/shared/components/palette/fixed-list/write-fixed-list-field.component.mjs +8 -10
- package/esm2020/lib/shared/components/palette/fixed-radio-list/write-fixed-radio-list-field.component.mjs +8 -10
- package/esm2020/lib/shared/components/palette/history/event-log/event-log-table.component.mjs +9 -7
- package/esm2020/lib/shared/components/palette/index.mjs +3 -1
- package/esm2020/lib/shared/components/palette/markdown/index.mjs +2 -1
- package/esm2020/lib/shared/components/palette/markdown/markdown-component.module.mjs +40 -0
- package/esm2020/lib/shared/components/palette/markdown/markdown.component.mjs +9 -7
- package/esm2020/lib/shared/components/palette/money-gbp/write-money-gbp-field.component.mjs +8 -10
- package/esm2020/lib/shared/components/palette/multi-select-list/write-multi-select-list-field.component.mjs +8 -10
- package/esm2020/lib/shared/components/palette/number/write-number-field.component.mjs +8 -10
- package/esm2020/lib/shared/components/palette/palette.module.mjs +148 -49
- package/esm2020/lib/shared/components/palette/palette.service.mjs +4 -2
- package/esm2020/lib/shared/components/palette/phone-uk/write-phone-uk-field.component.mjs +8 -10
- package/esm2020/lib/shared/components/palette/query-management/__mocks__/index.mjs +210 -0
- package/esm2020/lib/shared/components/palette/query-management/components/index.mjs +13 -0
- package/esm2020/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-detail/qualifying-question-detail.component.mjs +42 -0
- package/esm2020/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-options/qualifying-question-options.component.mjs +144 -0
- package/esm2020/lib/shared/components/palette/query-management/components/query-attachments-read/query-attachments-read.component.mjs +64 -0
- package/esm2020/lib/shared/components/palette/query-management/components/query-case-details-header/query-case-details-header.component.mjs +60 -0
- package/esm2020/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.mjs +281 -0
- package/esm2020/lib/shared/components/palette/query-management/components/query-details/query-details.component.mjs +327 -0
- package/esm2020/lib/shared/components/palette/query-management/components/query-event-completion/query-event-completion.component.mjs +22 -0
- package/esm2020/lib/shared/components/palette/query-management/components/query-list/query-list.component.mjs +164 -0
- package/esm2020/lib/shared/components/palette/query-management/components/query-write/query-write-add-documents/query-write-add-documents.component.mjs +74 -0
- package/esm2020/lib/shared/components/palette/query-management/components/query-write/query-write-date-input/query-write-date-input.component.mjs +107 -0
- package/esm2020/lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.mjs +201 -0
- package/esm2020/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.mjs +101 -0
- package/esm2020/lib/shared/components/palette/query-management/enums/index.mjs +6 -0
- package/esm2020/lib/shared/components/palette/query-management/enums/qualifying-questions-error-message.enum.mjs +5 -0
- package/esm2020/lib/shared/components/palette/query-management/enums/query-item-response-status.enum.mjs +6 -0
- package/esm2020/lib/shared/components/palette/query-management/enums/raise-query-error-message.enum.mjs +10 -0
- package/esm2020/lib/shared/components/palette/query-management/enums/respond-to-query-error-messages.enum.mjs +6 -0
- package/esm2020/lib/shared/components/palette/query-management/index.mjs +7 -0
- package/esm2020/lib/shared/components/palette/query-management/models/case-queries-collection.model.mjs +2 -0
- package/esm2020/lib/shared/components/palette/query-management/models/index.mjs +8 -0
- package/esm2020/lib/shared/components/palette/query-management/models/qualifying-questions/casetype-qualifying-questions.model.mjs +2 -0
- package/esm2020/lib/shared/components/palette/query-management/models/qualifying-questions/qualifying-question.model.mjs +2 -0
- package/esm2020/lib/shared/components/palette/query-management/models/query-create-context.enum.mjs +9 -0
- package/esm2020/lib/shared/components/palette/query-management/models/query-list/query-list-column/query-list-column.model.mjs +2 -0
- package/esm2020/lib/shared/components/palette/query-management/models/query-list/query-list-data/query-list-data.model.mjs +21 -0
- package/esm2020/lib/shared/components/palette/query-management/models/query-list/query-list-item/query-list-item.model.mjs +38 -0
- package/esm2020/lib/shared/components/palette/query-management/read-query-management-field.component.mjs +121 -0
- package/esm2020/lib/shared/components/palette/query-management/utils/query-management.utils.mjs +22 -0
- package/esm2020/lib/shared/components/palette/text/write-text-field.component.mjs +8 -10
- package/esm2020/lib/shared/components/palette/text-area/write-text-area-field.component.mjs +8 -10
- package/esm2020/lib/shared/components/palette/utils/field-label.pipe.mjs +14 -7
- package/esm2020/lib/shared/components/palette/utils/first-error.pipe.mjs +16 -9
- package/esm2020/lib/shared/components/palette/yes-no/read-yes-no-field.component.mjs +10 -5
- package/esm2020/lib/shared/components/palette/yes-no/write-yes-no-field.component.mjs +12 -13
- package/esm2020/lib/shared/domain/case-flag/flag-type.model.mjs +16 -2
- package/esm2020/lib/shared/domain/case-view/case-view-event-ids.enum.mjs +6 -0
- package/esm2020/lib/shared/domain/case-view/case-view-trigger.model.mjs +1 -2
- package/esm2020/lib/shared/domain/definition/display-context-enum.model.mjs +3 -1
- package/esm2020/lib/shared/fixture/shared.test.fixture.mjs +2 -1
- package/esm2020/lib/shared/pipes/generic/enum-display-description/enum-display-description.pipe.mjs +16 -0
- package/esm2020/lib/shared/pipes/generic/index.mjs +2 -0
- package/esm2020/lib/shared/pipes/index.mjs +3 -2
- package/esm2020/lib/shared/pipes/pipes.module.mjs +9 -5
- package/esm2020/lib/shared/services/case-flag/case-flag-refdata.service.mjs +9 -3
- package/esm2020/lib/shared/services/fields/fields.utils.mjs +22 -4
- package/esm2020/lib/shared/services/form/form-value.service.mjs +14 -11
- package/esm2020/lib/shared/services/jurisdiction/jurisdiction.service.mjs +2 -1
- package/esm2020/lib/shared/services/request/request.options.builder.mjs +7 -1
- package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs +8708 -4212
- package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs +15202 -11124
- package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit-titles.enum.d.ts +6 -0
- package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit-titles.enum.d.ts.map +1 -0
- package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts +1 -1
- package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-editor.module.d.ts +17 -20
- package/lib/shared/components/case-editor/case-editor.module.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-cancelled/case-event-completion-task-cancelled.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-reassigned/case-event-completion-task-reassigned.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/services/case-flag-state.service.d.ts +11 -0
- package/lib/shared/components/case-editor/services/case-flag-state.service.d.ts.map +1 -0
- package/lib/shared/components/case-editor/services/cases.service.d.ts +1 -0
- package/lib/shared/components/case-editor/services/cases.service.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts +6 -2
- package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-viewer.module.d.ts +4 -4
- package/lib/shared/components/case-viewer/case-viewer.module.d.ts.map +1 -1
- package/lib/shared/components/palette/base-field/field-read.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.d.ts +6 -2
- package/lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/case-flag-summary-list/case-flag-summary-list.component.d.ts +25 -8
- package/lib/shared/components/palette/case-flag/components/case-flag-summary-list/case-flag-summary-list.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/case-flag-table/case-flag-table.component.d.ts +2 -1
- package/lib/shared/components/palette/case-flag/components/case-flag-table/case-flag-table.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/confirm-flag-status/confirm-flag-status.component.d.ts +28 -0
- package/lib/shared/components/palette/case-flag/components/confirm-flag-status/confirm-flag-status.component.d.ts.map +1 -0
- package/lib/shared/components/palette/case-flag/components/index.d.ts +3 -0
- package/lib/shared/components/palette/case-flag/components/index.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/manage-case-flags/manage-case-flags.component.d.ts +4 -8
- package/lib/shared/components/palette/case-flag/components/manage-case-flags/manage-case-flags.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter-control-names.enum.d.ts +5 -0
- package/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter-control-names.enum.d.ts.map +1 -0
- package/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter.component.d.ts +10 -8
- package/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.d.ts +2 -1
- package/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.d.ts +16 -9
- package/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/update-flag/update-flag-add-translation-form/update-flag-add-translation-form.component.d.ts +27 -0
- package/lib/shared/components/palette/case-flag/components/update-flag/update-flag-add-translation-form/update-flag-add-translation-form.component.d.ts.map +1 -0
- package/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.d.ts +26 -11
- package/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/domain/case-flag-state.model.d.ts +1 -10
- package/lib/shared/components/palette/case-flag/domain/case-flag-state.model.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/domain/case-flag.model.d.ts +12 -1
- package/lib/shared/components/palette/case-flag/domain/case-flag.model.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/domain/language.model.d.ts +1 -0
- package/lib/shared/components/palette/case-flag/domain/language.model.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/enums/add-comments-error-message.enum.d.ts +1 -0
- package/lib/shared/components/palette/case-flag/enums/add-comments-error-message.enum.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/enums/add-comments-step.enum.d.ts +3 -1
- package/lib/shared/components/palette/case-flag/enums/add-comments-step.enum.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/enums/case-flag-check-your-answers-step.enum.d.ts +11 -0
- package/lib/shared/components/palette/case-flag/enums/case-flag-check-your-answers-step.enum.d.ts.map +1 -0
- package/lib/shared/components/palette/case-flag/enums/case-flag-display-context-parameter.enum.d.ts +14 -0
- package/lib/shared/components/palette/case-flag/enums/case-flag-display-context-parameter.enum.d.ts.map +1 -0
- package/lib/shared/components/palette/case-flag/enums/case-flag-form-fields.enum.d.ts +12 -0
- package/lib/shared/components/palette/case-flag/enums/case-flag-form-fields.enum.d.ts.map +1 -0
- package/lib/shared/components/palette/case-flag/enums/case-flag-status.enum.d.ts +2 -1
- package/lib/shared/components/palette/case-flag/enums/case-flag-status.enum.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/enums/case-flag-wizard-step-title.enum.d.ts +11 -3
- package/lib/shared/components/palette/case-flag/enums/case-flag-wizard-step-title.enum.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/enums/confirm-status-error-message.enum.d.ts +5 -0
- package/lib/shared/components/palette/case-flag/enums/confirm-status-error-message.enum.d.ts.map +1 -0
- package/lib/shared/components/palette/case-flag/enums/confirm-status-step.enum.d.ts +5 -0
- package/lib/shared/components/palette/case-flag/enums/confirm-status-step.enum.d.ts.map +1 -0
- package/lib/shared/components/palette/case-flag/enums/index.d.ts +8 -1
- package/lib/shared/components/palette/case-flag/enums/index.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/enums/select-flag-error-message.enum.d.ts +2 -1
- package/lib/shared/components/palette/case-flag/enums/select-flag-error-message.enum.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/enums/select-flag-type-error-message.enum.d.ts +3 -0
- package/lib/shared/components/palette/case-flag/enums/select-flag-type-error-message.enum.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/enums/update-flag-add-translation-error-message.enum.d.ts +5 -0
- package/lib/shared/components/palette/case-flag/enums/update-flag-add-translation-error-message.enum.d.ts.map +1 -0
- package/lib/shared/components/palette/case-flag/enums/update-flag-add-translation-step.enum.d.ts +5 -0
- package/lib/shared/components/palette/case-flag/enums/update-flag-add-translation-step.enum.d.ts.map +1 -0
- package/lib/shared/components/palette/case-flag/enums/update-flag-error-message.enum.d.ts +5 -1
- package/lib/shared/components/palette/case-flag/enums/update-flag-error-message.enum.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/enums/update-flag-step.enum.d.ts +7 -2
- package/lib/shared/components/palette/case-flag/enums/update-flag-step.enum.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/enums/write-case-flag-field.enum.d.ts +7 -4
- package/lib/shared/components/palette/case-flag/enums/write-case-flag-field.enum.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/index.d.ts +1 -0
- package/lib/shared/components/palette/case-flag/index.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/pipes/flag-field-display.pipe.d.ts +19 -0
- package/lib/shared/components/palette/case-flag/pipes/flag-field-display.pipe.d.ts.map +1 -0
- package/lib/shared/components/palette/case-flag/pipes/index.d.ts +5 -0
- package/lib/shared/components/palette/case-flag/pipes/index.d.ts.map +1 -0
- package/lib/shared/components/palette/case-flag/pipes/language-interpreter-display.pipe.d.ts +18 -0
- package/lib/shared/components/palette/case-flag/pipes/language-interpreter-display.pipe.d.ts.map +1 -0
- package/lib/shared/components/palette/case-flag/pipes/manage-case-flags-label-display.pipe.d.ts +25 -0
- package/lib/shared/components/palette/case-flag/pipes/manage-case-flags-label-display.pipe.d.ts.map +1 -0
- package/lib/shared/components/palette/case-flag/pipes/update-flag-title-display.pipe.d.ts +21 -0
- package/lib/shared/components/palette/case-flag/pipes/update-flag-title-display.pipe.d.ts.map +1 -0
- package/lib/shared/components/palette/case-flag/read-case-flag-field.component.d.ts +12 -8
- package/lib/shared/components/palette/case-flag/read-case-flag-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/write-case-flag-field.component.d.ts +52 -27
- package/lib/shared/components/palette/case-flag/write-case-flag-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/collection/write-collection-field.component.d.ts +3 -2
- package/lib/shared/components/palette/collection/write-collection-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/complex/read-complex-field.component.d.ts.map +1 -1
- 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/index.d.ts +2 -0
- package/lib/shared/components/palette/index.d.ts.map +1 -1
- package/lib/shared/components/palette/markdown/index.d.ts +1 -0
- package/lib/shared/components/palette/markdown/index.d.ts.map +1 -1
- package/lib/shared/components/palette/markdown/markdown-component.module.d.ts +13 -0
- package/lib/shared/components/palette/markdown/markdown-component.module.d.ts.map +1 -0
- package/lib/shared/components/palette/palette.module.d.ts +140 -118
- package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
- package/lib/shared/components/palette/palette.service.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/__mocks__/index.d.ts +11 -0
- package/lib/shared/components/palette/query-management/__mocks__/index.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/components/index.d.ts +13 -0
- package/lib/shared/components/palette/query-management/components/index.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-detail/qualifying-question-detail.component.d.ts +8 -0
- package/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-detail/qualifying-question-detail.component.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-options/qualifying-question-options.component.d.ts +22 -0
- package/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-options/qualifying-question-options.component.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/components/query-attachments-read/query-attachments-read.component.d.ts +11 -0
- package/lib/shared/components/palette/query-management/components/query-attachments-read/query-attachments-read.component.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/components/query-case-details-header/query-case-details-header.component.d.ts +10 -0
- package/lib/shared/components/palette/query-management/components/query-case-details-header/query-case-details-header.component.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts +30 -0
- package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/components/query-details/query-details.component.d.ts +16 -0
- package/lib/shared/components/palette/query-management/components/query-details/query-details.component.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/components/query-event-completion/query-event-completion.component.d.ts +9 -0
- package/lib/shared/components/palette/query-management/components/query-event-completion/query-event-completion.component.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/components/query-list/query-list.component.d.ts +18 -0
- package/lib/shared/components/palette/query-management/components/query-list/query-list.component.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/components/query-write/query-write-add-documents/query-write-add-documents.component.d.ts +20 -0
- package/lib/shared/components/palette/query-management/components/query-write/query-write-add-documents/query-write-add-documents.component.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/components/query-write/query-write-date-input/query-write-date-input.component.d.ts +20 -0
- package/lib/shared/components/palette/query-management/components/query-write/query-write-date-input/query-write-date-input.component.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.d.ts +11 -0
- package/lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.d.ts +21 -0
- package/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/enums/index.d.ts +6 -0
- package/lib/shared/components/palette/query-management/enums/index.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/enums/qualifying-questions-error-message.enum.d.ts +4 -0
- package/lib/shared/components/palette/query-management/enums/qualifying-questions-error-message.enum.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/enums/query-item-response-status.enum.d.ts +5 -0
- package/lib/shared/components/palette/query-management/enums/query-item-response-status.enum.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/enums/raise-query-error-message.enum.d.ts +9 -0
- package/lib/shared/components/palette/query-management/enums/raise-query-error-message.enum.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/enums/respond-to-query-error-messages.enum.d.ts +5 -0
- package/lib/shared/components/palette/query-management/enums/respond-to-query-error-messages.enum.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/index.d.ts +7 -0
- package/lib/shared/components/palette/query-management/index.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/models/case-queries-collection.model.d.ts +27 -0
- package/lib/shared/components/palette/query-management/models/case-queries-collection.model.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/models/index.d.ts +8 -0
- package/lib/shared/components/palette/query-management/models/index.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/models/qualifying-questions/casetype-qualifying-questions.model.d.ts +5 -0
- package/lib/shared/components/palette/query-management/models/qualifying-questions/casetype-qualifying-questions.model.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/models/qualifying-questions/qualifying-question.model.d.ts +6 -0
- package/lib/shared/components/palette/query-management/models/qualifying-questions/qualifying-question.model.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/models/query-create-context.enum.d.ts +8 -0
- package/lib/shared/components/palette/query-management/models/query-create-context.enum.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/models/query-list/query-list-column/query-list-column.model.d.ts +7 -0
- package/lib/shared/components/palette/query-management/models/query-list/query-list-column/query-list-column.model.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/models/query-list/query-list-data/query-list-data.model.d.ts +10 -0
- package/lib/shared/components/palette/query-management/models/query-list/query-list-data/query-list-data.model.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/models/query-list/query-list-item/query-list-item.model.d.ts +22 -0
- package/lib/shared/components/palette/query-management/models/query-list/query-list-item/query-list-item.model.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/read-query-management-field.component.d.ts +18 -0
- package/lib/shared/components/palette/query-management/read-query-management-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/utils/query-management.utils.d.ts +12 -0
- package/lib/shared/components/palette/query-management/utils/query-management.utils.d.ts.map +1 -0
- package/lib/shared/components/palette/utils/field-label.pipe.d.ts +3 -0
- package/lib/shared/components/palette/utils/field-label.pipe.d.ts.map +1 -1
- package/lib/shared/components/palette/utils/first-error.pipe.d.ts +8 -5
- package/lib/shared/components/palette/utils/first-error.pipe.d.ts.map +1 -1
- package/lib/shared/components/palette/yes-no/read-yes-no-field.component.d.ts.map +1 -1
- package/lib/shared/domain/case-flag/flag-type.model.d.ts +6 -1
- package/lib/shared/domain/case-flag/flag-type.model.d.ts.map +1 -1
- package/lib/shared/domain/case-view/case-view-event-ids.enum.d.ts +5 -0
- package/lib/shared/domain/case-view/case-view-event-ids.enum.d.ts.map +1 -0
- package/lib/shared/domain/case-view/case-view-trigger.model.d.ts +0 -1
- package/lib/shared/domain/case-view/case-view-trigger.model.d.ts.map +1 -1
- package/lib/shared/domain/definition/display-context-enum.model.d.ts +3 -1
- package/lib/shared/domain/definition/display-context-enum.model.d.ts.map +1 -1
- package/lib/shared/fixture/shared.test.fixture.d.ts.map +1 -1
- package/lib/shared/pipes/generic/enum-display-description/enum-display-description.pipe.d.ts +8 -0
- package/lib/shared/pipes/generic/enum-display-description/enum-display-description.pipe.d.ts.map +1 -0
- package/lib/shared/pipes/generic/index.d.ts +2 -0
- package/lib/shared/pipes/generic/index.d.ts.map +1 -0
- package/lib/shared/pipes/index.d.ts +2 -1
- package/lib/shared/pipes/index.d.ts.map +1 -1
- package/lib/shared/pipes/pipes.module.d.ts +3 -2
- package/lib/shared/pipes/pipes.module.d.ts.map +1 -1
- package/lib/shared/services/case-flag/case-flag-refdata.service.d.ts +3 -2
- package/lib/shared/services/case-flag/case-flag-refdata.service.d.ts.map +1 -1
- package/lib/shared/services/fields/fields.utils.d.ts +1 -0
- package/lib/shared/services/fields/fields.utils.d.ts.map +1 -1
- package/lib/shared/services/form/form-value.service.d.ts.map +1 -1
- package/lib/shared/services/jurisdiction/jurisdiction.service.d.ts.map +1 -1
- package/lib/shared/services/request/request.options.builder.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
import { SessionStorageService } from '../../../../../services';
|
|
3
|
+
import { QueryListItem } from '../../models';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "../../../../../services";
|
|
6
|
+
function QueryDetailsComponent_ng_container_0_tr_45_Template(rf, ctx) { if (rf & 1) {
|
|
7
|
+
i0.ɵɵelementStart(0, "tr", 10)(1, "th", 6);
|
|
8
|
+
i0.ɵɵtext(2);
|
|
9
|
+
i0.ɵɵpipe(3, "rpxTranslate");
|
|
10
|
+
i0.ɵɵelementEnd();
|
|
11
|
+
i0.ɵɵelementStart(4, "td", 7);
|
|
12
|
+
i0.ɵɵtext(5);
|
|
13
|
+
i0.ɵɵpipe(6, "date");
|
|
14
|
+
i0.ɵɵelementEnd()();
|
|
15
|
+
} if (rf & 2) {
|
|
16
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
17
|
+
i0.ɵɵadvance(2);
|
|
18
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "What is the date of the hearing?"));
|
|
19
|
+
i0.ɵɵadvance(3);
|
|
20
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(6, 4, ctx_r1.query.hearingDate, "dd MMM yyyy"));
|
|
21
|
+
} }
|
|
22
|
+
function QueryDetailsComponent_ng_container_0_ccd_query_attachments_read_51_Template(rf, ctx) { if (rf & 1) {
|
|
23
|
+
i0.ɵɵelement(0, "ccd-query-attachments-read", 11);
|
|
24
|
+
} if (rf & 2) {
|
|
25
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
26
|
+
i0.ɵɵproperty("attachments", ctx_r2.query.attachments);
|
|
27
|
+
} }
|
|
28
|
+
function QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_ng_container_1_tr_15_Template(rf, ctx) { if (rf & 1) {
|
|
29
|
+
i0.ɵɵelementStart(0, "tr", 5)(1, "th", 6);
|
|
30
|
+
i0.ɵɵtext(2);
|
|
31
|
+
i0.ɵɵpipe(3, "rpxTranslate");
|
|
32
|
+
i0.ɵɵelementEnd();
|
|
33
|
+
i0.ɵɵelementStart(4, "td", 7);
|
|
34
|
+
i0.ɵɵtext(5);
|
|
35
|
+
i0.ɵɵelementEnd()();
|
|
36
|
+
} if (rf & 2) {
|
|
37
|
+
const child_r5 = i0.ɵɵnextContext(2).$implicit;
|
|
38
|
+
i0.ɵɵadvance(2);
|
|
39
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Caseworker name"));
|
|
40
|
+
i0.ɵɵadvance(3);
|
|
41
|
+
i0.ɵɵtextInterpolate(child_r5.name);
|
|
42
|
+
} }
|
|
43
|
+
function QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_ng_container_1_ccd_query_attachments_read_27_Template(rf, ctx) { if (rf & 1) {
|
|
44
|
+
i0.ɵɵelement(0, "ccd-query-attachments-read", 11);
|
|
45
|
+
} if (rf & 2) {
|
|
46
|
+
const child_r5 = i0.ɵɵnextContext(2).$implicit;
|
|
47
|
+
i0.ɵɵproperty("attachments", child_r5.attachments);
|
|
48
|
+
} }
|
|
49
|
+
function QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
50
|
+
i0.ɵɵelementContainerStart(0);
|
|
51
|
+
i0.ɵɵelementStart(1, "table", 2);
|
|
52
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
53
|
+
i0.ɵɵelementStart(3, "caption", 3)(4, "div");
|
|
54
|
+
i0.ɵɵtext(5);
|
|
55
|
+
i0.ɵɵpipe(6, "rpxTranslate");
|
|
56
|
+
i0.ɵɵelementEnd()();
|
|
57
|
+
i0.ɵɵelementStart(7, "tbody", 4)(8, "tr", 5)(9, "th", 6);
|
|
58
|
+
i0.ɵɵtext(10);
|
|
59
|
+
i0.ɵɵpipe(11, "rpxTranslate");
|
|
60
|
+
i0.ɵɵelementEnd();
|
|
61
|
+
i0.ɵɵelementStart(12, "td", 7);
|
|
62
|
+
i0.ɵɵtext(13);
|
|
63
|
+
i0.ɵɵpipe(14, "date");
|
|
64
|
+
i0.ɵɵelementEnd()();
|
|
65
|
+
i0.ɵɵtemplate(15, QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_ng_container_1_tr_15_Template, 6, 4, "tr", 15);
|
|
66
|
+
i0.ɵɵelementStart(16, "tr", 5)(17, "th", 6);
|
|
67
|
+
i0.ɵɵtext(18);
|
|
68
|
+
i0.ɵɵpipe(19, "rpxTranslate");
|
|
69
|
+
i0.ɵɵelementEnd();
|
|
70
|
+
i0.ɵɵelementStart(20, "td", 7);
|
|
71
|
+
i0.ɵɵtext(21);
|
|
72
|
+
i0.ɵɵelementEnd()();
|
|
73
|
+
i0.ɵɵelementStart(22, "tr", 5)(23, "th", 6);
|
|
74
|
+
i0.ɵɵtext(24);
|
|
75
|
+
i0.ɵɵpipe(25, "rpxTranslate");
|
|
76
|
+
i0.ɵɵelementEnd();
|
|
77
|
+
i0.ɵɵelementStart(26, "td", 7);
|
|
78
|
+
i0.ɵɵtemplate(27, QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_ng_container_1_ccd_query_attachments_read_27_Template, 1, 1, "ccd-query-attachments-read", 9);
|
|
79
|
+
i0.ɵɵelementEnd()()()();
|
|
80
|
+
i0.ɵɵelementContainerEnd();
|
|
81
|
+
} if (rf & 2) {
|
|
82
|
+
const child_r5 = i0.ɵɵnextContext().$implicit;
|
|
83
|
+
const ctx_r7 = i0.ɵɵnextContext(3);
|
|
84
|
+
i0.ɵɵadvance(1);
|
|
85
|
+
i0.ɵɵattribute("aria-describedby", i0.ɵɵpipeBind1(2, 9, "Response of the query"));
|
|
86
|
+
i0.ɵɵadvance(4);
|
|
87
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 11, "Response"));
|
|
88
|
+
i0.ɵɵadvance(5);
|
|
89
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(11, 13, "Last response date"));
|
|
90
|
+
i0.ɵɵadvance(3);
|
|
91
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(14, 15, child_r5.createdOn, "dd MMM yyyy"));
|
|
92
|
+
i0.ɵɵadvance(2);
|
|
93
|
+
i0.ɵɵproperty("ngIf", ctx_r7.isCaseworker());
|
|
94
|
+
i0.ɵɵadvance(3);
|
|
95
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(19, 18, "Response detail"));
|
|
96
|
+
i0.ɵɵadvance(3);
|
|
97
|
+
i0.ɵɵtextInterpolate(child_r5.body);
|
|
98
|
+
i0.ɵɵadvance(3);
|
|
99
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(25, 20, "Attachments"));
|
|
100
|
+
i0.ɵɵadvance(3);
|
|
101
|
+
i0.ɵɵproperty("ngIf", child_r5.attachments);
|
|
102
|
+
} }
|
|
103
|
+
function QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_ng_template_2_ccd_query_attachments_read_34_Template(rf, ctx) { if (rf & 1) {
|
|
104
|
+
i0.ɵɵelement(0, "ccd-query-attachments-read", 11);
|
|
105
|
+
} if (rf & 2) {
|
|
106
|
+
const child_r5 = i0.ɵɵnextContext(2).$implicit;
|
|
107
|
+
i0.ɵɵproperty("attachments", child_r5.attachments);
|
|
108
|
+
} }
|
|
109
|
+
function QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
110
|
+
i0.ɵɵelementStart(0, "div", 16);
|
|
111
|
+
i0.ɵɵtext(1);
|
|
112
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
113
|
+
i0.ɵɵelementEnd();
|
|
114
|
+
i0.ɵɵelementStart(3, "table", 2);
|
|
115
|
+
i0.ɵɵpipe(4, "rpxTranslate");
|
|
116
|
+
i0.ɵɵelementStart(5, "caption", 3)(6, "div");
|
|
117
|
+
i0.ɵɵtext(7);
|
|
118
|
+
i0.ɵɵpipe(8, "rpxTranslate");
|
|
119
|
+
i0.ɵɵelementEnd()();
|
|
120
|
+
i0.ɵɵelementStart(9, "tbody", 4)(10, "tr", 5)(11, "th", 6);
|
|
121
|
+
i0.ɵɵtext(12);
|
|
122
|
+
i0.ɵɵpipe(13, "rpxTranslate");
|
|
123
|
+
i0.ɵɵelementEnd();
|
|
124
|
+
i0.ɵɵelementStart(14, "td", 7);
|
|
125
|
+
i0.ɵɵtext(15);
|
|
126
|
+
i0.ɵɵpipe(16, "date");
|
|
127
|
+
i0.ɵɵelementEnd()();
|
|
128
|
+
i0.ɵɵelementStart(17, "tr", 5)(18, "th", 6);
|
|
129
|
+
i0.ɵɵtext(19);
|
|
130
|
+
i0.ɵɵpipe(20, "rpxTranslate");
|
|
131
|
+
i0.ɵɵelementEnd();
|
|
132
|
+
i0.ɵɵelementStart(21, "td", 7);
|
|
133
|
+
i0.ɵɵtext(22);
|
|
134
|
+
i0.ɵɵelementEnd()();
|
|
135
|
+
i0.ɵɵelementStart(23, "tr", 5)(24, "th", 6);
|
|
136
|
+
i0.ɵɵtext(25);
|
|
137
|
+
i0.ɵɵpipe(26, "rpxTranslate");
|
|
138
|
+
i0.ɵɵelementEnd();
|
|
139
|
+
i0.ɵɵelementStart(27, "td", 7);
|
|
140
|
+
i0.ɵɵtext(28);
|
|
141
|
+
i0.ɵɵelementEnd()();
|
|
142
|
+
i0.ɵɵelementStart(29, "tr", 5)(30, "th", 6);
|
|
143
|
+
i0.ɵɵtext(31);
|
|
144
|
+
i0.ɵɵpipe(32, "rpxTranslate");
|
|
145
|
+
i0.ɵɵelementEnd();
|
|
146
|
+
i0.ɵɵelementStart(33, "td", 7);
|
|
147
|
+
i0.ɵɵtemplate(34, QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_ng_template_2_ccd_query_attachments_read_34_Template, 1, 1, "ccd-query-attachments-read", 9);
|
|
148
|
+
i0.ɵɵelementEnd()()()();
|
|
149
|
+
} if (rf & 2) {
|
|
150
|
+
const child_r5 = i0.ɵɵnextContext().$implicit;
|
|
151
|
+
i0.ɵɵadvance(1);
|
|
152
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 11, "Follow-up"));
|
|
153
|
+
i0.ɵɵadvance(2);
|
|
154
|
+
i0.ɵɵattribute("aria-describedby", i0.ɵɵpipeBind1(4, 13, "Follow-up of the response"));
|
|
155
|
+
i0.ɵɵadvance(4);
|
|
156
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(8, 15, "Follow up query"));
|
|
157
|
+
i0.ɵɵadvance(5);
|
|
158
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13, 17, "Last submission date"));
|
|
159
|
+
i0.ɵɵadvance(3);
|
|
160
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(16, 19, child_r5.createdOn, "dd MMM yyyy"));
|
|
161
|
+
i0.ɵɵadvance(4);
|
|
162
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(20, 22, "Last submitted by"));
|
|
163
|
+
i0.ɵɵadvance(3);
|
|
164
|
+
i0.ɵɵtextInterpolate(child_r5.name);
|
|
165
|
+
i0.ɵɵadvance(3);
|
|
166
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(26, 24, "Query detail"));
|
|
167
|
+
i0.ɵɵadvance(3);
|
|
168
|
+
i0.ɵɵtextInterpolate(child_r5.body);
|
|
169
|
+
i0.ɵɵadvance(3);
|
|
170
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(32, 26, "Attachments"));
|
|
171
|
+
i0.ɵɵadvance(3);
|
|
172
|
+
i0.ɵɵproperty("ngIf", child_r5.attachments);
|
|
173
|
+
} }
|
|
174
|
+
function QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
175
|
+
i0.ɵɵelementContainerStart(0);
|
|
176
|
+
i0.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_ng_container_1_Template, 28, 22, "ng-container", 13);
|
|
177
|
+
i0.ɵɵtemplate(2, QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_ng_template_2_Template, 35, 28, "ng-template", null, 14, i0.ɵɵtemplateRefExtractor);
|
|
178
|
+
i0.ɵɵelementContainerEnd();
|
|
179
|
+
} if (rf & 2) {
|
|
180
|
+
const i_r6 = ctx.index;
|
|
181
|
+
const _r8 = i0.ɵɵreference(3);
|
|
182
|
+
i0.ɵɵadvance(1);
|
|
183
|
+
i0.ɵɵproperty("ngIf", i_r6 % 2 === 0)("ngIfElse", _r8);
|
|
184
|
+
} }
|
|
185
|
+
function QueryDetailsComponent_ng_container_0_ng_container_52_Template(rf, ctx) { if (rf & 1) {
|
|
186
|
+
i0.ɵɵelementContainerStart(0);
|
|
187
|
+
i0.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_Template, 4, 2, "ng-container", 12);
|
|
188
|
+
i0.ɵɵelementContainerEnd();
|
|
189
|
+
} if (rf & 2) {
|
|
190
|
+
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
191
|
+
i0.ɵɵadvance(1);
|
|
192
|
+
i0.ɵɵproperty("ngForOf", ctx_r3.query.children);
|
|
193
|
+
} }
|
|
194
|
+
function QueryDetailsComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
195
|
+
const _r19 = i0.ɵɵgetCurrentView();
|
|
196
|
+
i0.ɵɵelementContainerStart(0);
|
|
197
|
+
i0.ɵɵelementStart(1, "p")(2, "a", 1);
|
|
198
|
+
i0.ɵɵlistener("click", function QueryDetailsComponent_ng_container_0_Template_a_click_2_listener() { i0.ɵɵrestoreView(_r19); const ctx_r18 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r18.onBack()); });
|
|
199
|
+
i0.ɵɵtext(3);
|
|
200
|
+
i0.ɵɵpipe(4, "rpxTranslate");
|
|
201
|
+
i0.ɵɵelementEnd()();
|
|
202
|
+
i0.ɵɵelementStart(5, "div")(6, "table", 2);
|
|
203
|
+
i0.ɵɵpipe(7, "rpxTranslate");
|
|
204
|
+
i0.ɵɵelementStart(8, "caption", 3)(9, "div");
|
|
205
|
+
i0.ɵɵtext(10);
|
|
206
|
+
i0.ɵɵpipe(11, "rpxTranslate");
|
|
207
|
+
i0.ɵɵelementEnd()();
|
|
208
|
+
i0.ɵɵelementStart(12, "tbody", 4)(13, "tr", 5)(14, "th", 6);
|
|
209
|
+
i0.ɵɵtext(15);
|
|
210
|
+
i0.ɵɵpipe(16, "rpxTranslate");
|
|
211
|
+
i0.ɵɵelementEnd();
|
|
212
|
+
i0.ɵɵelementStart(17, "td", 7);
|
|
213
|
+
i0.ɵɵtext(18);
|
|
214
|
+
i0.ɵɵelementEnd()();
|
|
215
|
+
i0.ɵɵelementStart(19, "tr", 5)(20, "th", 6);
|
|
216
|
+
i0.ɵɵtext(21);
|
|
217
|
+
i0.ɵɵpipe(22, "rpxTranslate");
|
|
218
|
+
i0.ɵɵelementEnd();
|
|
219
|
+
i0.ɵɵelementStart(23, "td", 7);
|
|
220
|
+
i0.ɵɵtext(24);
|
|
221
|
+
i0.ɵɵpipe(25, "date");
|
|
222
|
+
i0.ɵɵelementEnd()();
|
|
223
|
+
i0.ɵɵelementStart(26, "tr", 5)(27, "th", 6);
|
|
224
|
+
i0.ɵɵtext(28);
|
|
225
|
+
i0.ɵɵpipe(29, "rpxTranslate");
|
|
226
|
+
i0.ɵɵelementEnd();
|
|
227
|
+
i0.ɵɵelementStart(30, "td", 7);
|
|
228
|
+
i0.ɵɵtext(31);
|
|
229
|
+
i0.ɵɵelementEnd()();
|
|
230
|
+
i0.ɵɵelementStart(32, "tr", 5)(33, "th", 6);
|
|
231
|
+
i0.ɵɵtext(34);
|
|
232
|
+
i0.ɵɵpipe(35, "rpxTranslate");
|
|
233
|
+
i0.ɵɵelementEnd();
|
|
234
|
+
i0.ɵɵelementStart(36, "td", 7);
|
|
235
|
+
i0.ɵɵtext(37);
|
|
236
|
+
i0.ɵɵelementEnd()();
|
|
237
|
+
i0.ɵɵelementStart(38, "tr", 5)(39, "th", 6);
|
|
238
|
+
i0.ɵɵtext(40);
|
|
239
|
+
i0.ɵɵpipe(41, "rpxTranslate");
|
|
240
|
+
i0.ɵɵelementEnd();
|
|
241
|
+
i0.ɵɵelementStart(42, "td", 7);
|
|
242
|
+
i0.ɵɵtext(43);
|
|
243
|
+
i0.ɵɵpipe(44, "rpxTranslate");
|
|
244
|
+
i0.ɵɵelementEnd()();
|
|
245
|
+
i0.ɵɵtemplate(45, QueryDetailsComponent_ng_container_0_tr_45_Template, 7, 7, "tr", 8);
|
|
246
|
+
i0.ɵɵelementStart(46, "tr", 5)(47, "th", 6);
|
|
247
|
+
i0.ɵɵtext(48);
|
|
248
|
+
i0.ɵɵpipe(49, "rpxTranslate");
|
|
249
|
+
i0.ɵɵelementEnd();
|
|
250
|
+
i0.ɵɵelementStart(50, "td", 7);
|
|
251
|
+
i0.ɵɵtemplate(51, QueryDetailsComponent_ng_container_0_ccd_query_attachments_read_51_Template, 1, 1, "ccd-query-attachments-read", 9);
|
|
252
|
+
i0.ɵɵelementEnd()()()()();
|
|
253
|
+
i0.ɵɵtemplate(52, QueryDetailsComponent_ng_container_0_ng_container_52_Template, 2, 1, "ng-container", 0);
|
|
254
|
+
i0.ɵɵelementContainerEnd();
|
|
255
|
+
} if (rf & 2) {
|
|
256
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
257
|
+
i0.ɵɵadvance(3);
|
|
258
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 21, "Back to query list"));
|
|
259
|
+
i0.ɵɵadvance(3);
|
|
260
|
+
i0.ɵɵattribute("aria-describedby", i0.ɵɵpipeBind1(7, 23, "Details of the query"));
|
|
261
|
+
i0.ɵɵadvance(4);
|
|
262
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(11, 25, "Query details"));
|
|
263
|
+
i0.ɵɵadvance(5);
|
|
264
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(16, 27, "Last submitted by"));
|
|
265
|
+
i0.ɵɵadvance(3);
|
|
266
|
+
i0.ɵɵtextInterpolate(ctx_r0.query.lastSubmittedBy);
|
|
267
|
+
i0.ɵɵadvance(3);
|
|
268
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(22, 29, "Submission date"));
|
|
269
|
+
i0.ɵɵadvance(3);
|
|
270
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(25, 31, ctx_r0.query.createdOn, "dd MMM yyyy"));
|
|
271
|
+
i0.ɵɵadvance(4);
|
|
272
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(29, 34, "Query subject"));
|
|
273
|
+
i0.ɵɵadvance(3);
|
|
274
|
+
i0.ɵɵtextInterpolate(ctx_r0.query.subject);
|
|
275
|
+
i0.ɵɵadvance(3);
|
|
276
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(35, 36, "Query body"));
|
|
277
|
+
i0.ɵɵadvance(3);
|
|
278
|
+
i0.ɵɵtextInterpolate(ctx_r0.query.body);
|
|
279
|
+
i0.ɵɵadvance(2);
|
|
280
|
+
i0.ɵɵclassProp("govuk-table__header--no-border", ctx_r0.query.isHearingRelated);
|
|
281
|
+
i0.ɵɵadvance(1);
|
|
282
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(41, 38, "Is the query hearing related?"), " ");
|
|
283
|
+
i0.ɵɵadvance(2);
|
|
284
|
+
i0.ɵɵclassProp("govuk-table__cell--no-border", ctx_r0.query.isHearingRelated);
|
|
285
|
+
i0.ɵɵadvance(1);
|
|
286
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(44, 40, "Is the query hearing related?", null, ctx_r0.query.isHearingRelated ? "Yes" : "No"), "");
|
|
287
|
+
i0.ɵɵadvance(2);
|
|
288
|
+
i0.ɵɵproperty("ngIf", ctx_r0.query.isHearingRelated);
|
|
289
|
+
i0.ɵɵadvance(3);
|
|
290
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(49, 44, "Attachments"));
|
|
291
|
+
i0.ɵɵadvance(3);
|
|
292
|
+
i0.ɵɵproperty("ngIf", ctx_r0.query.attachments);
|
|
293
|
+
i0.ɵɵadvance(1);
|
|
294
|
+
i0.ɵɵproperty("ngIf", (ctx_r0.query.children == null ? null : ctx_r0.query.children.length) > 0);
|
|
295
|
+
} }
|
|
296
|
+
export class QueryDetailsComponent {
|
|
297
|
+
constructor(sessionStorageService) {
|
|
298
|
+
this.sessionStorageService = sessionStorageService;
|
|
299
|
+
this.backClicked = new EventEmitter();
|
|
300
|
+
}
|
|
301
|
+
onBack() {
|
|
302
|
+
this.backClicked.emit(true);
|
|
303
|
+
}
|
|
304
|
+
isCaseworker() {
|
|
305
|
+
const userDetails = JSON.parse(this.sessionStorageService.getItem('userDetails'));
|
|
306
|
+
return userDetails && userDetails.roles
|
|
307
|
+
&& !(userDetails.roles.includes('pui-case-manager')
|
|
308
|
+
|| userDetails.roles.some((role) => role.toLowerCase().includes('judge')));
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
QueryDetailsComponent.ɵfac = function QueryDetailsComponent_Factory(t) { return new (t || QueryDetailsComponent)(i0.ɵɵdirectiveInject(i1.SessionStorageService)); };
|
|
312
|
+
QueryDetailsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryDetailsComponent, selectors: [["ccd-query-details"]], inputs: { query: "query", caseId: "caseId" }, outputs: { backClicked: "backClicked" }, decls: 1, vars: 1, consts: [[4, "ngIf"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "govuk-table", "query-details-table"], [1, "govuk-table__caption", "govuk-table__caption--l"], [1, "govuk-table__body"], [1, "govuk-table__row"], ["scope", "row", 1, "govuk-table__header"], [1, "govuk-table__cell"], ["class", "govuk-table__row govuk-table__row--isHearingRelated", 4, "ngIf"], [3, "attachments", 4, "ngIf"], [1, "govuk-table__row", "govuk-table__row--isHearingRelated"], [3, "attachments"], [4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfElse"], ["followUpMessage", ""], ["class", "govuk-table__row", 4, "ngIf"], [1, "query_details_caption"]], template: function QueryDetailsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
313
|
+
i0.ɵɵtemplate(0, QueryDetailsComponent_ng_container_0_Template, 53, 46, "ng-container", 0);
|
|
314
|
+
} if (rf & 2) {
|
|
315
|
+
i0.ɵɵproperty("ngIf", ctx.query);
|
|
316
|
+
} }, styles: [".query-details-table[_ngcontent-%COMP%] .govuk-table__header[_ngcontent-%COMP%]{width:330px}"] });
|
|
317
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryDetailsComponent, [{
|
|
318
|
+
type: Component,
|
|
319
|
+
args: [{ selector: 'ccd-query-details', template: "<ng-container *ngIf=\"query\">\n <p>\n <a class=\"govuk-link\" href=\"javascript:void(0)\" (click)=\"onBack()\">{{ 'Back to query list' | rpxTranslate }}</a>\n </p>\n <div>\n <table class=\"govuk-table query-details-table\" [attr.aria-describedby]=\"'Details of the query' | rpxTranslate\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\">\n <div>{{ 'Query details' | rpxTranslate }}</div>\n </caption>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last submitted by' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.lastSubmittedBy }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Submission date' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.createdOn | date: 'dd MMM yyyy' }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query subject' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.subject }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query body' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.body }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\" [class.govuk-table__header--no-border]=\"query.isHearingRelated\">\n {{ 'Is the query hearing related?' | rpxTranslate }}\n </th>\n <td class=\"govuk-table__cell\" [class.govuk-table__cell--no-border]=\"query.isHearingRelated\">\n {{ 'Is the query hearing related?' | rpxTranslate: null : (query.isHearingRelated ? 'Yes' : 'No') }}</td>\n </tr>\n <tr class=\"govuk-table__row govuk-table__row--isHearingRelated\" *ngIf=\"query.isHearingRelated\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'What is the date of the hearing?' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.hearingDate | date: 'dd MMM yyyy' }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Attachments' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">\n <ccd-query-attachments-read\n *ngIf=\"query.attachments\"\n [attachments]=\"query.attachments\"\n >\n </ccd-query-attachments-read>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n\n <ng-container *ngIf=\"query.children?.length > 0\">\n <ng-container *ngFor=\"let child of query.children; let i = index;\">\n <ng-container *ngIf=\"i % 2 === 0; else followUpMessage\">\n <table class=\"govuk-table query-details-table\" [attr.aria-describedby]=\"'Response of the query' | rpxTranslate\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\">\n <div>{{ 'Response' | rpxTranslate }}</div>\n </caption>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last response date' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.createdOn | date: 'dd MMM yyyy' }}</td>\n </tr>\n\n <tr *ngIf=\"isCaseworker()\" class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Caseworker name' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.name }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Response detail' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.body }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Attachments' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">\n <ccd-query-attachments-read\n *ngIf=\"child.attachments\"\n [attachments]=\"child.attachments\"\n >\n </ccd-query-attachments-read>\n </td>\n </tr>\n </tbody>\n </table>\n </ng-container>\n\n <ng-template #followUpMessage>\n <div class=\"query_details_caption\">{{ 'Follow-up' | rpxTranslate }}</div>\n <table class=\"govuk-table query-details-table\"\n [attr.aria-describedby]=\"'Follow-up of the response' | rpxTranslate\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\">\n <div>{{ 'Follow up query' | rpxTranslate }}</div>\n </caption>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last submission date' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.createdOn | date: 'dd MMM yyyy' }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last submitted by' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.name }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query detail' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.body }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Attachments' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">\n <ccd-query-attachments-read\n *ngIf=\"child.attachments\"\n [attachments]=\"child.attachments\"\n >\n </ccd-query-attachments-read>\n </td>\n </tr>\n </tbody>\n </table>\n </ng-template>\n </ng-container>\n </ng-container>\n</ng-container>\n", styles: [".query-details-table .govuk-table__header{width:330px}\n"] }]
|
|
320
|
+
}], function () { return [{ type: i1.SessionStorageService }]; }, { query: [{
|
|
321
|
+
type: Input
|
|
322
|
+
}], backClicked: [{
|
|
323
|
+
type: Output
|
|
324
|
+
}], caseId: [{
|
|
325
|
+
type: Input
|
|
326
|
+
}] }); })();
|
|
327
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVlcnktZGV0YWlscy5jb21wb25lbnQuan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Z292dWstdGFibGVfX2hlYWRlclwiPnt7ICdDYXNld29ya2VyIG5hbWUnIHwgcnB4VHJhbnNsYXRlIH19PC90aD5cbiAgICAgICAgICAgICAgPHRkIGNsYXNzPVwiZ292dWstdGFibGVfX2NlbGxcIj57eyBjaGlsZC5uYW1lIH19PC90ZD5cbiAgICAgICAgICAgIDwvdHI+XG5cbiAgICAgICAgICAgIDx0ciBjbGFzcz1cImdvdnVrLXRhYmxlX19yb3dcIj5cbiAgICAgICAgICAgICAgPHRoIHNjb3BlPVwicm93XCIgY2xhc3M9XCJnb3Z1ay10YWJsZV9faGVhZGVyXCI+e3sgJ1Jlc3BvbnNlIGRldGFpbCcgfCBycHhUcmFuc2xhdGUgfX08L3RoPlxuICAgICAgICAgICAgICA8dGQgY2xhc3M9XCJnb3Z1ay10YWJsZV9fY2VsbFwiPnt7IGNoaWxkLmJvZHkgfX08L3RkPlxuICAgICAgICAgICAgPC90cj5cblxuICAgICAgICAgIDx0ciBjbGFzcz1cImdvdnVrLXRhYmxlX19yb3dcIj5cbiAgICAgICAgICAgIDx0aCBzY29wZT1cInJvd1wiIGNsYXNzPVwiZ292dWstdGFibGVfX2hlYWRlclwiPnt7ICdBdHRhY2htZW50cycgfCBycHhUcmFuc2xhdGUgfX08L3RoPlxuICAgICAgICAgICAgPHRkIGNsYXNzPVwiZ292dWstdGFibGVfX2NlbGxcIj5cbiAgICAgICAgICAgICAgPGNjZC1xdWVyeS1hdHRhY2htZW50cy1yZWFkXG4gICAgICAgICAgICAgICAgKm5nSWY9XCJjaGlsZC5hdHRhY2htZW50c1wiXG4gICAgICAgICAgICAgICAgW2F0dGFjaG1lbnRzXT1cImNoaWxkLmF0dGFjaG1lbnRzXCJcbiAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICA8L2NjZC1xdWVyeS1hdHRhY2htZW50cy1yZWFkPlxuICAgICAgICAgICAgPC90ZD5cbiAgICAgICAgICA8L3RyPlxuICAgICAgICAgIDwvdGJvZHk+XG4gICAg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cmVhZD5cbiAgICAgICAgICAgICAgPC90ZD5cbiAgICAgICAgICAgIDwvdHI+XG4gICAgICAgICAgPC90Ym9keT5cbiAgICAgICAgPC90YWJsZT5cbiAgICAgIDwvbmctdGVtcGxhdGU+XG4gICAgPC9uZy1jb250YWluZXI+XG4gIDwvbmctY29udGFpbmVyPlxuPC9uZy1jb250YWluZXI+XG4iXX0=
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class QueryEventCompletionComponent {
|
|
4
|
+
onEventCanBeCompleted(value) {
|
|
5
|
+
// Submit the query response
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
QueryEventCompletionComponent.ɵfac = function QueryEventCompletionComponent_Factory(t) { return new (t || QueryEventCompletionComponent)(); };
|
|
9
|
+
QueryEventCompletionComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryEventCompletionComponent, selectors: [["ccd-query-event-completion"]], inputs: { eventCompletionParams: "eventCompletionParams" }, decls: 1, vars: 1, consts: [[3, "eventCompletionParams", "eventCanBeCompleted"]], template: function QueryEventCompletionComponent_Template(rf, ctx) { if (rf & 1) {
|
|
10
|
+
i0.ɵɵelementStart(0, "ccd-case-event-completion", 0);
|
|
11
|
+
i0.ɵɵlistener("eventCanBeCompleted", function QueryEventCompletionComponent_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { return ctx.onEventCanBeCompleted($event); });
|
|
12
|
+
i0.ɵɵelementEnd();
|
|
13
|
+
} if (rf & 2) {
|
|
14
|
+
i0.ɵɵproperty("eventCompletionParams", ctx.eventCompletionParams);
|
|
15
|
+
} }, encapsulation: 2 });
|
|
16
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryEventCompletionComponent, [{
|
|
17
|
+
type: Component,
|
|
18
|
+
args: [{ selector: 'ccd-query-event-completion', template: "<ccd-case-event-completion [eventCompletionParams]=\"eventCompletionParams\"\n (eventCanBeCompleted)=\"onEventCanBeCompleted($event)\">\n</ccd-case-event-completion>" }]
|
|
19
|
+
}], null, { eventCompletionParams: [{
|
|
20
|
+
type: Input
|
|
21
|
+
}] }); })();
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVlcnktZXZlbnQtY29tcGxldGlvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jY2QtY2FzZS11aS10b29sa2l0L3NyYy9saWIvc2hhcmVkL2NvbXBvbmVudHMvcGFsZXR0ZS9xdWVyeS1tYW5hZ2VtZW50L2NvbXBvbmVudHMvcXVlcnktZXZlbnQtY29tcGxldGlvbi9xdWVyeS1ldmVudC1jb21wbGV0aW9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NjZC1jYXNlLXVpLXRvb2xraXQvc3JjL2xpYi9zaGFyZWQvY29tcG9uZW50cy9wYWxldHRlL3F1ZXJ5LW1hbmFnZW1lbnQvY29tcG9uZW50cy9xdWVyeS1ldmVudC1jb21wbGV0aW9uL3F1ZXJ5LWV2ZW50LWNvbXBsZXRpb24uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7O0FBT2pELE1BQU0sT0FBTyw2QkFBNkI7SUFHakMscUJBQXFCLENBQUMsS0FBYztRQUN6Qyw0QkFBNEI7SUFDOUIsQ0FBQzs7MEdBTFUsNkJBQTZCO2dGQUE3Qiw2QkFBNkI7UUNQMUMsb0RBQ3dEO1FBQXRELCtKQUF1QixpQ0FBNkIsSUFBQztRQUN2RCxpQkFBNEI7O1FBRkQsaUVBQStDOzt1RkRPN0QsNkJBQTZCO2NBSnpDLFNBQVM7MkJBQ0UsNEJBQTRCO2dCQUl0QixxQkFBcUI7a0JBQXBDLEtBQUsiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQsIElucHV0IH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBFdmVudENvbXBsZXRpb25QYXJhbXMgfSBmcm9tICcuLi8uLi8uLi8uLi9jYXNlLWVkaXRvci9kb21haW4vZXZlbnQtY29tcGxldGlvbi1wYXJhbXMubW9kZWwnO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICdjY2QtcXVlcnktZXZlbnQtY29tcGxldGlvbicsXG4gIHRlbXBsYXRlVXJsOiAnLi9xdWVyeS1ldmVudC1jb21wbGV0aW9uLmNvbXBvbmVudC5odG1sJ1xufSlcbmV4cG9ydCBjbGFzcyBRdWVyeUV2ZW50Q29tcGxldGlvbkNvbXBvbmVudCB7XG4gIEBJbnB1dCgpIHB1YmxpYyBldmVudENvbXBsZXRpb25QYXJhbXM6IEV2ZW50Q29tcGxldGlvblBhcmFtcztcblxuICBwdWJsaWMgb25FdmVudENhbkJlQ29tcGxldGVkKHZhbHVlOiBib29sZWFuKTogdm9pZCB7XG4gICAgLy8gU3VibWl0IHRoZSBxdWVyeSByZXNwb25zZVxuICB9XG59XG4iLCI8Y2NkLWNhc2UtZXZlbnQtY29tcGxldGlvbiBbZXZlbnRDb21wbGV0aW9uUGFyYW1zXT1cImV2ZW50Q29tcGxldGlvblBhcmFtc1wiXG4gIChldmVudENhbkJlQ29tcGxldGVkKT1cIm9uRXZlbnRDYW5CZUNvbXBsZXRlZCgkZXZlbnQpXCI+XG48L2NjZC1jYXNlLWV2ZW50LWNvbXBsZXRpb24+Il19
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
import { SortOrder } from '../../../complex/sort-order';
|
|
3
|
+
import { QueryListData } from '../../models';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/common";
|
|
6
|
+
import * as i2 from "rpx-xui-translation";
|
|
7
|
+
function QueryListComponent_ng_container_0_th_7_Template(rf, ctx) { if (rf & 1) {
|
|
8
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
9
|
+
i0.ɵɵelementStart(0, "th", 8)(1, "button", 9);
|
|
10
|
+
i0.ɵɵlistener("click", function QueryListComponent_ng_container_0_th_7_Template_button_click_1_listener() { const restoredCtx = i0.ɵɵrestoreView(_r6); const col_r3 = restoredCtx.$implicit; const ctx_r5 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r5.sortTable(col_r3)); });
|
|
11
|
+
i0.ɵɵtext(2);
|
|
12
|
+
i0.ɵɵpipe(3, "rpxTranslate");
|
|
13
|
+
i0.ɵɵelementEnd()();
|
|
14
|
+
} if (rf & 2) {
|
|
15
|
+
const col_r3 = ctx.$implicit;
|
|
16
|
+
const i_r4 = ctx.index;
|
|
17
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
18
|
+
i0.ɵɵattribute("aria-sort", ctx_r1.getAriaSortHeaderValue(col_r3));
|
|
19
|
+
i0.ɵɵadvance(1);
|
|
20
|
+
i0.ɵɵattribute("data-index", i_r4);
|
|
21
|
+
i0.ɵɵadvance(1);
|
|
22
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 3, col_r3.displayName), " ");
|
|
23
|
+
} }
|
|
24
|
+
function QueryListComponent_ng_container_0_tr_9_Template(rf, ctx) { if (rf & 1) {
|
|
25
|
+
const _r9 = i0.ɵɵgetCurrentView();
|
|
26
|
+
i0.ɵɵelementStart(0, "tr", 4)(1, "td", 10)(2, "a", 11);
|
|
27
|
+
i0.ɵɵlistener("click", function QueryListComponent_ng_container_0_tr_9_Template_a_click_2_listener() { const restoredCtx = i0.ɵɵrestoreView(_r9); const message_r7 = restoredCtx.$implicit; const ctx_r8 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r8.showDetails(message_r7)); });
|
|
28
|
+
i0.ɵɵtext(3);
|
|
29
|
+
i0.ɵɵelementEnd()();
|
|
30
|
+
i0.ɵɵelementStart(4, "td", 12);
|
|
31
|
+
i0.ɵɵtext(5);
|
|
32
|
+
i0.ɵɵelementEnd();
|
|
33
|
+
i0.ɵɵelementStart(6, "td", 12);
|
|
34
|
+
i0.ɵɵtext(7);
|
|
35
|
+
i0.ɵɵpipe(8, "date");
|
|
36
|
+
i0.ɵɵelementEnd();
|
|
37
|
+
i0.ɵɵelementStart(9, "td", 12);
|
|
38
|
+
i0.ɵɵtext(10);
|
|
39
|
+
i0.ɵɵpipe(11, "date");
|
|
40
|
+
i0.ɵɵelementEnd();
|
|
41
|
+
i0.ɵɵelementStart(12, "td", 12);
|
|
42
|
+
i0.ɵɵtext(13);
|
|
43
|
+
i0.ɵɵpipe(14, "rpxTranslate");
|
|
44
|
+
i0.ɵɵelementEnd()();
|
|
45
|
+
} if (rf & 2) {
|
|
46
|
+
const message_r7 = ctx.$implicit;
|
|
47
|
+
i0.ɵɵadvance(3);
|
|
48
|
+
i0.ɵɵtextInterpolate(message_r7.subject);
|
|
49
|
+
i0.ɵɵadvance(2);
|
|
50
|
+
i0.ɵɵtextInterpolate(message_r7.lastSubmittedBy);
|
|
51
|
+
i0.ɵɵadvance(2);
|
|
52
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(8, 5, message_r7.lastSubmittedDate, "dd MMM YYYY"));
|
|
53
|
+
i0.ɵɵadvance(3);
|
|
54
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(11, 8, message_r7.lastResponseDate, "dd MMM YYYY"));
|
|
55
|
+
i0.ɵɵadvance(3);
|
|
56
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(14, 11, message_r7.responseStatus));
|
|
57
|
+
} }
|
|
58
|
+
function QueryListComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
59
|
+
i0.ɵɵelementContainerStart(0);
|
|
60
|
+
i0.ɵɵelementStart(1, "table", 1)(2, "caption", 2)(3, "div");
|
|
61
|
+
i0.ɵɵtext(4);
|
|
62
|
+
i0.ɵɵelementEnd()();
|
|
63
|
+
i0.ɵɵelementStart(5, "thead", 3)(6, "tr", 4);
|
|
64
|
+
i0.ɵɵtemplate(7, QueryListComponent_ng_container_0_th_7_Template, 4, 5, "th", 5);
|
|
65
|
+
i0.ɵɵelementEnd()();
|
|
66
|
+
i0.ɵɵelementStart(8, "tbody", 6);
|
|
67
|
+
i0.ɵɵtemplate(9, QueryListComponent_ng_container_0_tr_9_Template, 15, 13, "tr", 7);
|
|
68
|
+
i0.ɵɵelementEnd()();
|
|
69
|
+
i0.ɵɵelementContainerEnd();
|
|
70
|
+
} if (rf & 2) {
|
|
71
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
72
|
+
i0.ɵɵadvance(4);
|
|
73
|
+
i0.ɵɵtextInterpolate(ctx_r0.queryListData.partyName);
|
|
74
|
+
i0.ɵɵadvance(3);
|
|
75
|
+
i0.ɵɵproperty("ngForOf", ctx_r0.displayedColumns);
|
|
76
|
+
i0.ɵɵadvance(2);
|
|
77
|
+
i0.ɵɵproperty("ngForOf", ctx_r0.queryListData.queries);
|
|
78
|
+
} }
|
|
79
|
+
export class QueryListComponent {
|
|
80
|
+
constructor() {
|
|
81
|
+
this.selectedQuery = new EventEmitter();
|
|
82
|
+
this.displayedColumns = [
|
|
83
|
+
{ name: 'subject', displayName: 'Query subject', sortOrder: SortOrder.UNSORTED },
|
|
84
|
+
{ name: 'lastSubmittedBy', displayName: 'Last submitted by', sortOrder: SortOrder.UNSORTED },
|
|
85
|
+
{ name: 'lastSubmittedDate', displayName: 'Last submission date', sortOrder: SortOrder.UNSORTED },
|
|
86
|
+
{ name: 'lastResponseDate', displayName: 'Last response date', sortOrder: SortOrder.UNSORTED },
|
|
87
|
+
{ name: 'responseStatus', displayName: 'Response status', sortOrder: SortOrder.UNSORTED }
|
|
88
|
+
];
|
|
89
|
+
}
|
|
90
|
+
ngOnChanges(simpleChanges) {
|
|
91
|
+
const currentCaseQueriesCollection = simpleChanges.caseQueriesCollection?.currentValue;
|
|
92
|
+
if (currentCaseQueriesCollection) {
|
|
93
|
+
this.queryListData = new QueryListData(currentCaseQueriesCollection);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
sortTable(col) {
|
|
97
|
+
switch (col.displayName) {
|
|
98
|
+
case 'Last submission date':
|
|
99
|
+
case 'Last response date': {
|
|
100
|
+
this.sortDate(col);
|
|
101
|
+
break;
|
|
102
|
+
}
|
|
103
|
+
default: {
|
|
104
|
+
this.sort(col);
|
|
105
|
+
break;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
getAriaSortHeaderValue(col) {
|
|
110
|
+
switch (col.sortOrder) {
|
|
111
|
+
case SortOrder.ASCENDING: {
|
|
112
|
+
return 'ascending';
|
|
113
|
+
}
|
|
114
|
+
case SortOrder.DESCENDING: {
|
|
115
|
+
return 'descending';
|
|
116
|
+
}
|
|
117
|
+
default: {
|
|
118
|
+
return 'none';
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
showDetails(query) {
|
|
123
|
+
this.selectedQuery.emit(query);
|
|
124
|
+
}
|
|
125
|
+
sort(col) {
|
|
126
|
+
if (col.sortOrder === SortOrder.ASCENDING) {
|
|
127
|
+
this.queryListData.queries.sort((a, b) => (a[col.name] < b[col.name]) ? 1 : -1);
|
|
128
|
+
this.displayedColumns.forEach((c) => c.sortOrder = SortOrder.UNSORTED);
|
|
129
|
+
col.sortOrder = SortOrder.DESCENDING;
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
this.queryListData.queries.sort((a, b) => (a[col.name] > b[col.name]) ? 1 : -1);
|
|
133
|
+
this.displayedColumns.forEach((c) => c.sortOrder = SortOrder.UNSORTED);
|
|
134
|
+
col.sortOrder = SortOrder.ASCENDING;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
sortDate(col) {
|
|
138
|
+
if (col.sortOrder === SortOrder.ASCENDING) {
|
|
139
|
+
this.queryListData.queries.sort((a, b) => b[col.name] - a[col.name]);
|
|
140
|
+
this.displayedColumns.forEach((c) => c.sortOrder = SortOrder.UNSORTED);
|
|
141
|
+
col.sortOrder = SortOrder.DESCENDING;
|
|
142
|
+
}
|
|
143
|
+
else {
|
|
144
|
+
this.queryListData.queries.sort((a, b) => a[col.name] - b[col.name]);
|
|
145
|
+
this.displayedColumns.forEach((c) => c.sortOrder = SortOrder.UNSORTED);
|
|
146
|
+
col.sortOrder = SortOrder.ASCENDING;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
QueryListComponent.ɵfac = function QueryListComponent_Factory(t) { return new (t || QueryListComponent)(); };
|
|
151
|
+
QueryListComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryListComponent, selectors: [["ccd-query-list"]], inputs: { caseQueriesCollection: "caseQueriesCollection" }, outputs: { selectedQuery: "selectedQuery" }, features: [i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "govuk-table", "query-list__table"], [1, "govuk-table__caption", "govuk-table__caption--l"], [1, "govuk-table__head"], [1, "govuk-table__row", "query-list__row"], ["scope", "col", "class", "govuk-table__header", 4, "ngFor", "ngForOf"], [1, "govuk-table__body"], ["class", "govuk-table__row query-list__row", 4, "ngFor", "ngForOf"], ["scope", "col", 1, "govuk-table__header"], ["type", "button", "aria-sort", "none", "href", "javascript:void(0)", 3, "click"], [1, "govuk-table__cell", "query-list__cell", "query-list__cell--first"], ["href", "javascript:void(0)", 3, "click"], [1, "govuk-table__cell", "query-list__cell"]], template: function QueryListComponent_Template(rf, ctx) { if (rf & 1) {
|
|
152
|
+
i0.ɵɵtemplate(0, QueryListComponent_ng_container_0_Template, 10, 3, "ng-container", 0);
|
|
153
|
+
} if (rf & 2) {
|
|
154
|
+
i0.ɵɵproperty("ngIf", ctx.queryListData);
|
|
155
|
+
} }, dependencies: [i1.NgForOf, i1.NgIf, i1.DatePipe, i2.RpxTranslatePipe], styles: ["@charset \"UTF-8\";.query-list__row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{padding-left:10px}.query-list__row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:last-child{padding-right:10px}.query-list__cell--first[_ngcontent-%COMP%]{width:33%}[aria-sort] button[_ngcontent-%COMP%], [aria-sort] button[_ngcontent-%COMP%]:hover, [aria-sort] button[_ngcontent-%COMP%]:hover, [aria-sort] button[_ngcontent-%COMP%]:hover:hover{background-color:transparent;border-width:0;box-shadow:0 0;color:#000;cursor:pointer;font-family:inherit;font-weight:inherit;padding:0 10px 0 0;position:relative;text-align:inherit;font-size:1em;margin:0}[aria-sort] button[_ngcontent-%COMP%]:focus, [aria-sort] button[_ngcontent-%COMP%]:hover:focus{background-color:#fd0;color:#000;box-shadow:0 -2px #fd0,0 4px #000;outline:none}[aria-sort][_ngcontent-%COMP%]:first-child button{right:auto}[aria-sort] button[_ngcontent-%COMP%]:before{content:\" \\25bc\";position:absolute;right:-1px;top:9px;font-size:.5em}[aria-sort] button[_ngcontent-%COMP%]:after{content:\" \\25b2\";position:absolute;right:-1px;top:1px;font-size:.5em}[aria-sort=ascending] button[_ngcontent-%COMP%]:before, [aria-sort=descending] button[_ngcontent-%COMP%]:before{content:none}[aria-sort=ascending] button[_ngcontent-%COMP%]:after{content:\" \\25b2\";font-size:.8em;position:absolute;right:-5px;top:2px}[aria-sort=descending] button[_ngcontent-%COMP%]:after{content:\" \\25bc\";font-size:.8em;position:absolute;right:-5px;top:2px}"] });
|
|
156
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryListComponent, [{
|
|
157
|
+
type: Component,
|
|
158
|
+
args: [{ selector: 'ccd-query-list', template: "<ng-container *ngIf=\"queryListData\">\n <table class=\"govuk-table query-list__table\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\">\n <div>{{ queryListData.partyName }}</div>\n </caption>\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row query-list__row\">\n <th scope=\"col\" class=\"govuk-table__header\" [attr.aria-sort]=\"getAriaSortHeaderValue(col)\"\n *ngFor=\"let col of displayedColumns; let i = index;\">\n <button type=\"button\" [attr.data-index]=\"i\" aria-sort=\"none\" (click)=\"sortTable(col)\" href=\"javascript:void(0)\">\n {{ col.displayName | rpxTranslate }}\n </button>\n </th>\n </tr>\n </thead>\n\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row query-list__row\"\n *ngFor=\"let message of queryListData.queries\"\n >\n <td class=\"govuk-table__cell query-list__cell query-list__cell--first\">\n <a href=\"javascript:void(0)\" (click)=\"showDetails(message)\">{{ message.subject }}</a>\n </td>\n <td class=\"govuk-table__cell query-list__cell\">{{ message.lastSubmittedBy }}</td>\n <td class=\"govuk-table__cell query-list__cell\">{{ message.lastSubmittedDate | date: 'dd MMM YYYY' }}</td>\n <td class=\"govuk-table__cell query-list__cell\">{{ message.lastResponseDate | date: 'dd MMM YYYY' }}</td>\n <td class=\"govuk-table__cell query-list__cell\">{{ message.responseStatus | rpxTranslate }}</td>\n </tr>\n </tbody>\n </table>\n</ng-container>\n", styles: ["@charset \"UTF-8\";.query-list__row>*:first-child{padding-left:10px}.query-list__row>*:last-child{padding-right:10px}.query-list__cell--first{width:33%}[aria-sort] button,[aria-sort] button:hover,[aria-sort] button:hover,[aria-sort] button:hover:hover{background-color:transparent;border-width:0;box-shadow:0 0;color:#000;cursor:pointer;font-family:inherit;font-weight:inherit;padding:0 10px 0 0;position:relative;text-align:inherit;font-size:1em;margin:0}[aria-sort] button:focus,[aria-sort] button:hover:focus{background-color:#fd0;color:#000;box-shadow:0 -2px #fd0,0 4px #000;outline:none}[aria-sort]:first-child button{right:auto}[aria-sort] button:before{content:\" \\25bc\";position:absolute;right:-1px;top:9px;font-size:.5em}[aria-sort] button:after{content:\" \\25b2\";position:absolute;right:-1px;top:1px;font-size:.5em}[aria-sort=ascending] button:before,[aria-sort=descending] button:before{content:none}[aria-sort=ascending] button:after{content:\" \\25b2\";font-size:.8em;position:absolute;right:-5px;top:2px}[aria-sort=descending] button:after{content:\" \\25bc\";font-size:.8em;position:absolute;right:-5px;top:2px}\n"] }]
|
|
159
|
+
}], null, { caseQueriesCollection: [{
|
|
160
|
+
type: Input
|
|
161
|
+
}], selectedQuery: [{
|
|
162
|
+
type: Output
|
|
163
|
+
}] }); })();
|
|
164
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVlcnktbGlzdC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jY2QtY2FzZS11aS10b29sa2l0L3NyYy9saWIvc2hhcmVkL2NvbXBvbmVudHMvcGFsZXR0ZS9xdWVyeS1tYW5hZ2VtZW50L2NvbXBvbmVudHMvcXVlcnktbGlzdC9xdWVyeS1saXN0LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NjZC1jYXNlLXVpLXRvb2xraXQvc3JjL2xpYi9zaGFyZWQvY29tcG9uZW50cy9wYWxldHRlL3F1ZXJ5LW1hbmFnZW1lbnQvY29tcG9uZW50cy9xdWVyeS1saXN0L3F1ZXJ5LWxpc3QuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFhLE1BQU0sRUFBaUIsTUFBTSxlQUFlLENBQUM7QUFDakcsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLDZC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