@hmcts/ccd-case-ui-toolkit 6.18.2 → 7.0.0-ConsoleLogs.1
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 +4230 -3051
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
- package/esm2015/lib/app.config.js +1 -7
- package/esm2015/lib/components/banners/alert/alert.component.js +7 -5
- package/esm2015/lib/components/banners/alert/alert.module.js +12 -4
- package/esm2015/lib/components/footer/footer.component.js +55 -30
- package/esm2015/lib/components/footer/footers.module.js +12 -4
- package/esm2015/lib/components/form/date-input/date-input.component.js +56 -37
- package/esm2015/lib/components/form/form.module.js +8 -4
- package/esm2015/lib/components/header/header-bar/header-bar.component.js +32 -19
- package/esm2015/lib/components/header/headers.module.js +6 -4
- package/esm2015/lib/components/header/navigation/navigation-item.component.js +9 -7
- package/esm2015/lib/components/header/phase/phase.component.js +20 -9
- package/esm2015/lib/components/tabs/tabs.component.js +8 -5
- package/esm2015/lib/components/tabs/tabs.module.js +6 -2
- package/esm2015/lib/shared/commons/case-edit-data/case-edit-validation.model.js +1 -1
- package/esm2015/lib/shared/components/activity/activity-banner/activity-banner.component.js +12 -9
- package/esm2015/lib/shared/components/activity/activity-icon/activity-icon.component.js +11 -8
- package/esm2015/lib/shared/components/activity/activity.component.js +15 -10
- package/esm2015/lib/shared/components/activity/activity.module.js +6 -2
- package/esm2015/lib/shared/components/case-editor/case-create/case-create.component.js +2 -2
- package/esm2015/lib/shared/components/case-editor/case-edit/case-edit.component.js +1 -1
- package/esm2015/lib/shared/components/case-editor/case-edit-confirm/case-edit-confirm.component.js +29 -25
- package/esm2015/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.js +50 -33
- package/esm2015/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.js +27 -22
- package/esm2015/lib/shared/components/case-editor/case-editor.module.js +30 -26
- package/esm2015/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-cancelled/case-event-completion-task-cancelled.component.js +51 -26
- package/esm2015/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-reassigned/case-event-completion-task-reassigned.component.js +51 -28
- package/esm2015/lib/shared/components/case-editor/case-progress/case-progress.component.js +2 -2
- package/esm2015/lib/shared/components/case-editor/services/case-edit-wizard.guard.js +3 -2
- package/esm2015/lib/shared/components/case-editor/services/case.notifier.js +6 -1
- package/esm2015/lib/shared/components/case-editor/services/cases.service.js +7 -2
- package/esm2015/lib/shared/components/case-editor/services/work-allocation.service.js +2 -2
- package/esm2015/lib/shared/components/case-history/case-history.component.js +89 -63
- package/esm2015/lib/shared/components/case-history/case-history.module.js +18 -14
- package/esm2015/lib/shared/components/case-list/case-list.component.js +56 -49
- package/esm2015/lib/shared/components/case-list/case-list.module.js +8 -4
- package/esm2015/lib/shared/components/case-list-filters/case-list-filters.module.js +11 -7
- package/esm2015/lib/shared/components/case-timeline/case-timeline.component.js +9 -6
- package/esm2015/lib/shared/components/case-timeline/case-timeline.module.js +12 -8
- package/esm2015/lib/shared/components/case-viewer/case-basic-access-view/case-basic-access-view.component.js +106 -61
- package/esm2015/lib/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.js +90 -69
- package/esm2015/lib/shared/components/case-viewer/case-challenged-access-success/case-challenged-access-success.component.js +45 -23
- package/esm2015/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.js +12 -4
- package/esm2015/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +105 -78
- package/esm2015/lib/shared/components/case-viewer/case-review-specific-access-reject/case-review-specific-access-reject.component.js +32 -20
- package/esm2015/lib/shared/components/case-viewer/case-review-specific-access-request/case-review-specific-access-request.component.js +107 -79
- package/esm2015/lib/shared/components/case-viewer/case-specific-access-request/case-specific-access-request.component.js +79 -49
- package/esm2015/lib/shared/components/case-viewer/case-view/case-view.component.js +1 -1
- package/esm2015/lib/shared/components/case-viewer/case-viewer.component.js +5 -1
- package/esm2015/lib/shared/components/case-viewer/case-viewer.module.js +34 -27
- package/esm2015/lib/shared/components/case-viewer/printer/case-printer.component.js +36 -22
- package/esm2015/lib/shared/components/case-viewer/services/case.resolver.js +12 -4
- package/esm2015/lib/shared/components/create-case-filters/create-case-filters.component.js +63 -40
- package/esm2015/lib/shared/components/create-case-filters/create-case-filters.module.js +6 -2
- package/esm2015/lib/shared/components/dialogs/delete-or-cancel-dialog/delete-or-cancel-dialog.component.js +28 -14
- package/esm2015/lib/shared/components/dialogs/dialogs.module.js +6 -2
- package/esm2015/lib/shared/components/dialogs/document-dialog/document-dialog.component.js +28 -14
- package/esm2015/lib/shared/components/dialogs/remove-dialog/remove-dialog.component.js +28 -14
- package/esm2015/lib/shared/components/dialogs/save-or-discard-dialog/save-or-discard-dialog.component.js +28 -14
- package/esm2015/lib/shared/components/error/callback-errors.component.js +34 -23
- package/esm2015/lib/shared/components/error/errors.module.js +6 -2
- package/esm2015/lib/shared/components/error-message/error-message.component.js +14 -11
- package/esm2015/lib/shared/components/error-message/error-message.module.js +8 -4
- package/esm2015/lib/shared/components/event-start/components/multiple-tasks-exist/multiple-tasks-exist.component.js +39 -20
- package/esm2015/lib/shared/components/event-start/components/no-tasks-available/no-tasks-available.component.js +34 -18
- package/esm2015/lib/shared/components/event-start/components/task-assigned/task-assigned.component.js +34 -19
- package/esm2015/lib/shared/components/event-start/components/task-cancelled/task-cancelled.component.js +50 -25
- package/esm2015/lib/shared/components/event-start/components/task-conflict/task-conflict.component.js +39 -20
- package/esm2015/lib/shared/components/event-start/components/task-unassigned/task-unassigned.component.js +34 -18
- package/esm2015/lib/shared/components/event-start/event-start.module.js +8 -4
- package/esm2015/lib/shared/components/event-trigger/event-trigger.component.js +27 -17
- package/esm2015/lib/shared/components/event-trigger/event-trigger.module.js +6 -2
- package/esm2015/lib/shared/components/loading-spinner/loading-spinner.component.js +7 -5
- package/esm2015/lib/shared/components/loading-spinner/loading-spinner.module.js +6 -2
- package/esm2015/lib/shared/components/pagination/pagination.component.js +84 -67
- package/esm2015/lib/shared/components/pagination/pagination.module.js +8 -4
- package/esm2015/lib/shared/components/palette/address/write-address-field.component.js +50 -31
- package/esm2015/lib/shared/components/palette/base-field/abstract-field-read.component.js +1 -1
- package/esm2015/lib/shared/components/palette/base-field/field-read-label.component.js +10 -8
- package/esm2015/lib/shared/components/palette/base-field/field-read.component.js +5 -1
- package/esm2015/lib/shared/components/palette/base-field/field-write.component.js +1 -1
- package/esm2015/lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.js +54 -35
- package/esm2015/lib/shared/components/palette/case-flag/components/index.js +5 -5
- package/esm2015/lib/shared/components/palette/case-flag/components/manage-case-flags/manage-case-flags.component.js +29 -19
- package/esm2015/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.js +41 -29
- package/esm2015/lib/shared/components/palette/case-flag/index.js +1 -1
- package/esm2015/lib/shared/components/palette/case-flag/write-case-flag-field.component.js +29 -24
- package/esm2015/lib/shared/components/palette/case-link/write-case-link-field.component.js +16 -12
- package/esm2015/lib/shared/components/palette/collection/write-collection-field.component.js +45 -32
- package/esm2015/lib/shared/components/palette/complex/read-complex-field-collection-table.component.js +50 -46
- package/esm2015/lib/shared/components/palette/complex/read-complex-field-raw.component.js +7 -6
- package/esm2015/lib/shared/components/palette/complex/read-complex-field-table.component.js +22 -20
- package/esm2015/lib/shared/components/palette/complex/write-complex-field.component.js +5 -4
- package/esm2015/lib/shared/components/palette/date/write-date-field.component.js +16 -12
- package/esm2015/lib/shared/components/palette/datetime-picker/datetime-picker.component.js +29 -17
- package/esm2015/lib/shared/components/palette/document/write-document-field.component.js +31 -25
- package/esm2015/lib/shared/components/palette/dynamic-list/read-dynamic-list-field.component.js +9 -7
- package/esm2015/lib/shared/components/palette/dynamic-list/write-dynamic-list-field.component.js +32 -20
- package/esm2015/lib/shared/components/palette/dynamic-multi-select-list/read-dynamic-multi-select-list-field.component.js +12 -7
- package/esm2015/lib/shared/components/palette/dynamic-radio-list/read-dynamic-radio-list-field.component.js +9 -7
- package/esm2015/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.js +26 -17
- package/esm2015/lib/shared/components/palette/email/write-email-field.component.js +16 -12
- package/esm2015/lib/shared/components/palette/fixed-list/read-fixed-list-field.component.js +9 -7
- package/esm2015/lib/shared/components/palette/fixed-list/write-fixed-list-field.component.js +19 -14
- package/esm2015/lib/shared/components/palette/fixed-radio-list/read-fixed-radio-list-field.component.js +9 -7
- package/esm2015/lib/shared/components/palette/fixed-radio-list/write-fixed-radio-list-field.component.js +20 -15
- package/esm2015/lib/shared/components/palette/history/event-log/event-log-details.component.js +87 -65
- package/esm2015/lib/shared/components/palette/history/event-log/event-log-table.component.js +60 -46
- package/esm2015/lib/shared/components/palette/index.js +2 -2
- package/esm2015/lib/shared/components/palette/label/label-field.component.js +24 -5
- package/esm2015/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-to-table.component.js +1 -1
- package/esm2015/lib/shared/components/palette/money-gbp/write-money-gbp-field.component.js +16 -12
- package/esm2015/lib/shared/components/palette/multi-select-list/read-multi-select-list-field.component.js +15 -11
- package/esm2015/lib/shared/components/palette/multi-select-list/write-multi-select-list-field.component.js +19 -14
- package/esm2015/lib/shared/components/palette/number/write-number-field.component.js +16 -12
- package/esm2015/lib/shared/components/palette/order-summary/read-order-summary-field.component.js +43 -25
- package/esm2015/lib/shared/components/palette/order-summary/read-order-summary-row.component.js +7 -6
- package/esm2015/lib/shared/components/palette/organisation/read-organisation-field-raw.component.js +41 -29
- package/esm2015/lib/shared/components/palette/organisation/read-organisation-field-table.component.js +48 -35
- package/esm2015/lib/shared/components/palette/organisation/write-organisation-field.component.js +88 -50
- package/esm2015/lib/shared/components/palette/palette.module.js +95 -65
- package/esm2015/lib/shared/components/palette/phone-uk/write-phone-uk-field.component.js +16 -12
- package/esm2015/lib/shared/components/palette/text/read-text-field.component.js +7 -5
- package/esm2015/lib/shared/components/palette/text/write-text-field.component.js +16 -12
- package/esm2015/lib/shared/components/palette/text-area/read-text-area-field.component.js +7 -5
- package/esm2015/lib/shared/components/palette/text-area/write-text-area-field.component.js +16 -12
- package/esm2015/lib/shared/components/palette/utils/first-error.pipe.js +22 -11
- package/esm2015/lib/shared/components/palette/utils/utils.module.js +12 -6
- package/esm2015/lib/shared/components/palette/yes-no/read-yes-no-field.component.js +1 -1
- package/esm2015/lib/shared/components/palette/yes-no/write-yes-no-field.component.js +16 -12
- package/esm2015/lib/shared/components/search-filters/search-filters.component.js +60 -35
- package/esm2015/lib/shared/components/search-filters/search-filters.module.js +14 -10
- package/esm2015/lib/shared/components/search-result/search-result.component.js +132 -95
- package/esm2015/lib/shared/components/search-result/search-result.module.js +16 -13
- package/esm2015/lib/shared/components/workbasket-filters/workbasket-filters.component.js +90 -52
- package/esm2015/lib/shared/components/workbasket-filters/workbasket-filters.module.js +13 -9
- package/esm2015/lib/shared/domain/alert/alert-status-params.model.js +2 -0
- package/esm2015/lib/shared/services/alert/alert.service.js +28 -8
- package/esm2015/lib/shared/services/loading/loading.service.js +5 -1
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +3972 -2825
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/app.config.d.ts +2 -2
- package/lib/app.config.d.ts.map +1 -1
- package/lib/components/banners/alert/alert.module.d.ts +2 -1
- package/lib/components/banners/alert/alert.module.d.ts.map +1 -1
- package/lib/components/footer/footers.module.d.ts +2 -1
- package/lib/components/footer/footers.module.d.ts.map +1 -1
- package/lib/components/form/form.module.d.ts +2 -1
- package/lib/components/form/form.module.d.ts.map +1 -1
- package/lib/components/header/headers.module.d.ts +2 -1
- package/lib/components/header/headers.module.d.ts.map +1 -1
- package/lib/components/tabs/tabs.component.d.ts.map +1 -1
- package/lib/components/tabs/tabs.module.d.ts +2 -1
- package/lib/components/tabs/tabs.module.d.ts.map +1 -1
- package/lib/shared/commons/case-edit-data/case-edit-validation.model.d.ts +1 -0
- package/lib/shared/commons/case-edit-data/case-edit-validation.model.d.ts.map +1 -1
- package/lib/shared/components/activity/activity.module.d.ts +2 -1
- package/lib/shared/components/activity/activity.module.d.ts.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 +5 -5
- 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-editor.module.d.ts +3 -2
- package/lib/shared/components/case-editor/case-editor.module.d.ts.map +1 -1
- package/lib/shared/components/case-editor/services/case-edit-wizard.guard.d.ts.map +1 -1
- package/lib/shared/components/case-editor/services/case.notifier.d.ts.map +1 -1
- 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-history/case-history.module.d.ts +2 -1
- package/lib/shared/components/case-history/case-history.module.d.ts.map +1 -1
- package/lib/shared/components/case-list/case-list.module.d.ts +2 -1
- package/lib/shared/components/case-list/case-list.module.d.ts.map +1 -1
- package/lib/shared/components/case-list-filters/case-list-filters.module.d.ts +2 -1
- package/lib/shared/components/case-list-filters/case-list-filters.module.d.ts.map +1 -1
- package/lib/shared/components/case-timeline/case-timeline.module.d.ts +2 -1
- package/lib/shared/components/case-timeline/case-timeline.module.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-viewer.component.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-viewer.module.d.ts +7 -5
- package/lib/shared/components/case-viewer/case-viewer.module.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/services/case.resolver.d.ts +1 -1
- package/lib/shared/components/case-viewer/services/case.resolver.d.ts.map +1 -1
- package/lib/shared/components/create-case-filters/create-case-filters.module.d.ts +2 -1
- package/lib/shared/components/create-case-filters/create-case-filters.module.d.ts.map +1 -1
- package/lib/shared/components/dialogs/dialogs.module.d.ts +2 -1
- package/lib/shared/components/dialogs/dialogs.module.d.ts.map +1 -1
- package/lib/shared/components/error/errors.module.d.ts +2 -1
- package/lib/shared/components/error/errors.module.d.ts.map +1 -1
- package/lib/shared/components/error-message/error-message.module.d.ts +2 -1
- package/lib/shared/components/error-message/error-message.module.d.ts.map +1 -1
- package/lib/shared/components/event-start/event-start.module.d.ts +2 -1
- package/lib/shared/components/event-start/event-start.module.d.ts.map +1 -1
- package/lib/shared/components/event-trigger/event-trigger.module.d.ts +2 -1
- package/lib/shared/components/event-trigger/event-trigger.module.d.ts.map +1 -1
- package/lib/shared/components/loading-spinner/loading-spinner.module.d.ts +2 -1
- package/lib/shared/components/loading-spinner/loading-spinner.module.d.ts.map +1 -1
- package/lib/shared/components/pagination/pagination.module.d.ts +2 -1
- package/lib/shared/components/pagination/pagination.module.d.ts.map +1 -1
- package/lib/shared/components/palette/base-field/abstract-field-read.component.d.ts.map +1 -1
- package/lib/shared/components/palette/base-field/field-read.component.d.ts +1 -0
- package/lib/shared/components/palette/base-field/field-read.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/index.d.ts +4 -4
- package/lib/shared/components/palette/case-flag/components/index.d.ts.map +1 -1
- package/lib/shared/components/palette/index.d.ts +1 -1
- package/lib/shared/components/palette/index.d.ts.map +1 -1
- package/lib/shared/components/palette/label/label-field.component.d.ts +2 -1
- package/lib/shared/components/palette/label/label-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/palette.module.d.ts +88 -87
- package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
- package/lib/shared/components/palette/utils/first-error.pipe.d.ts +3 -0
- package/lib/shared/components/palette/utils/first-error.pipe.d.ts.map +1 -1
- package/lib/shared/components/palette/utils/utils.module.d.ts +2 -1
- package/lib/shared/components/palette/utils/utils.module.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/components/palette/yes-no/write-yes-no-field.component.d.ts.map +1 -1
- package/lib/shared/components/search-filters/search-filters.module.d.ts +2 -1
- package/lib/shared/components/search-filters/search-filters.module.d.ts.map +1 -1
- package/lib/shared/components/search-result/search-result.module.d.ts +3 -2
- package/lib/shared/components/search-result/search-result.module.d.ts.map +1 -1
- package/lib/shared/components/workbasket-filters/workbasket-filters.module.d.ts +2 -1
- package/lib/shared/components/workbasket-filters/workbasket-filters.module.d.ts.map +1 -1
- package/lib/shared/domain/alert/alert-status-params.model.d.ts +6 -0
- package/lib/shared/domain/alert/alert-status-params.model.d.ts.map +1 -0
- package/lib/shared/services/alert/alert.service.d.ts +8 -4
- package/lib/shared/services/alert/alert.service.d.ts.map +1 -1
- package/lib/shared/services/loading/loading.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -4,41 +4,49 @@ import { AbstractFieldWriteComponent } from '../base-field/abstract-field-write.
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import * as i1 from "@angular/common";
|
|
6
6
|
import * as i2 from "@angular/forms";
|
|
7
|
-
import * as i3 from "
|
|
8
|
-
import * as i4 from "../utils/
|
|
7
|
+
import * as i3 from "rpx-xui-translation";
|
|
8
|
+
import * as i4 from "../utils/field-label.pipe";
|
|
9
|
+
import * as i5 from "../utils/first-error.pipe";
|
|
9
10
|
function WriteDynamicRadioListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
10
11
|
i0.ɵɵelementStart(0, "span", 7);
|
|
11
12
|
i0.ɵɵtext(1);
|
|
12
|
-
i0.ɵɵpipe(2, "
|
|
13
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
14
|
+
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
13
15
|
i0.ɵɵelementEnd();
|
|
14
16
|
} if (rf & 2) {
|
|
15
17
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
16
18
|
i0.ɵɵadvance(1);
|
|
17
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
19
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind1(3, 3, ctx_r0.caseField)));
|
|
18
20
|
} }
|
|
19
21
|
function WriteDynamicRadioListFieldComponent_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
20
22
|
i0.ɵɵelementStart(0, "span", 8);
|
|
21
23
|
i0.ɵɵtext(1);
|
|
24
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
22
25
|
i0.ɵɵelementEnd();
|
|
23
26
|
} if (rf & 2) {
|
|
24
27
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
25
28
|
i0.ɵɵadvance(1);
|
|
26
|
-
i0.ɵɵtextInterpolate(ctx_r1.caseField.hint_text);
|
|
29
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r1.caseField.hint_text));
|
|
27
30
|
} }
|
|
28
31
|
function WriteDynamicRadioListFieldComponent_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
29
32
|
i0.ɵɵelementStart(0, "span", 7);
|
|
30
|
-
i0.ɵɵtext(1
|
|
33
|
+
i0.ɵɵtext(1);
|
|
34
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
31
35
|
i0.ɵɵelementEnd();
|
|
36
|
+
} if (rf & 2) {
|
|
37
|
+
i0.ɵɵadvance(1);
|
|
38
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "Select an option below"));
|
|
32
39
|
} }
|
|
33
40
|
function WriteDynamicRadioListFieldComponent_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
34
41
|
i0.ɵɵelementStart(0, "span", 9);
|
|
35
42
|
i0.ɵɵtext(1);
|
|
36
|
-
i0.ɵɵpipe(2, "
|
|
43
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
44
|
+
i0.ɵɵpipe(3, "ccdFirstError");
|
|
37
45
|
i0.ɵɵelementEnd();
|
|
38
46
|
} if (rf & 2) {
|
|
39
47
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
40
48
|
i0.ɵɵadvance(1);
|
|
41
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r3.dynamicRadioListControl.errors));
|
|
49
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind1(3, 3, ctx_r3.dynamicRadioListControl.errors)));
|
|
42
50
|
} }
|
|
43
51
|
const _c0 = function (a0) { return { selected: a0 }; };
|
|
44
52
|
function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -46,18 +54,19 @@ function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf &
|
|
|
46
54
|
i0.ɵɵelement(1, "input", 11);
|
|
47
55
|
i0.ɵɵelementStart(2, "label", 12);
|
|
48
56
|
i0.ɵɵtext(3);
|
|
57
|
+
i0.ɵɵpipe(4, "rpxTranslate");
|
|
49
58
|
i0.ɵɵelementEnd();
|
|
50
59
|
i0.ɵɵelementEnd();
|
|
51
60
|
} if (rf & 2) {
|
|
52
61
|
const radioButton_r5 = ctx.$implicit;
|
|
53
62
|
const ctx_r4 = i0.ɵɵnextContext();
|
|
54
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
63
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
|
|
55
64
|
i0.ɵɵadvance(1);
|
|
56
65
|
i0.ɵɵproperty("id", ctx_r4.createElementId(radioButton_r5.code))("name", ctx_r4.id())("formControl", ctx_r4.dynamicRadioListControl)("value", radioButton_r5.code);
|
|
57
66
|
i0.ɵɵadvance(1);
|
|
58
67
|
i0.ɵɵproperty("for", ctx_r4.createElementId(radioButton_r5.code));
|
|
59
68
|
i0.ɵɵadvance(1);
|
|
60
|
-
i0.ɵɵtextInterpolate(radioButton_r5.label);
|
|
69
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 7, radioButton_r5.label));
|
|
61
70
|
} }
|
|
62
71
|
const _c1 = function (a0) { return { "form-group-error": a0 }; };
|
|
63
72
|
export class WriteDynamicRadioListFieldComponent extends AbstractFieldWriteComponent {
|
|
@@ -88,13 +97,13 @@ WriteDynamicRadioListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: Write
|
|
|
88
97
|
i0.ɵɵelementStart(1, "fieldset");
|
|
89
98
|
i0.ɵɵelement(2, "legend", 1);
|
|
90
99
|
i0.ɵɵelementStart(3, "label", 2);
|
|
91
|
-
i0.ɵɵtemplate(4, WriteDynamicRadioListFieldComponent_span_4_Template,
|
|
92
|
-
i0.ɵɵtemplate(5, WriteDynamicRadioListFieldComponent_span_5_Template,
|
|
93
|
-
i0.ɵɵtemplate(6, WriteDynamicRadioListFieldComponent_span_6_Template,
|
|
94
|
-
i0.ɵɵtemplate(7, WriteDynamicRadioListFieldComponent_span_7_Template,
|
|
100
|
+
i0.ɵɵtemplate(4, WriteDynamicRadioListFieldComponent_span_4_Template, 4, 5, "span", 3);
|
|
101
|
+
i0.ɵɵtemplate(5, WriteDynamicRadioListFieldComponent_span_5_Template, 3, 3, "span", 4);
|
|
102
|
+
i0.ɵɵtemplate(6, WriteDynamicRadioListFieldComponent_span_6_Template, 3, 3, "span", 3);
|
|
103
|
+
i0.ɵɵtemplate(7, WriteDynamicRadioListFieldComponent_span_7_Template, 4, 5, "span", 5);
|
|
95
104
|
i0.ɵɵelementEnd();
|
|
96
105
|
i0.ɵɵelementContainerStart(8);
|
|
97
|
-
i0.ɵɵtemplate(9, WriteDynamicRadioListFieldComponent_div_9_Template,
|
|
106
|
+
i0.ɵɵtemplate(9, WriteDynamicRadioListFieldComponent_div_9_Template, 5, 11, "div", 6);
|
|
98
107
|
i0.ɵɵelementContainerEnd();
|
|
99
108
|
i0.ɵɵelementEnd();
|
|
100
109
|
i0.ɵɵelementEnd();
|
|
@@ -112,7 +121,7 @@ WriteDynamicRadioListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: Write
|
|
|
112
121
|
i0.ɵɵproperty("ngIf", ctx.dynamicRadioListControl.errors && ctx.dynamicRadioListControl.dirty);
|
|
113
122
|
i0.ɵɵadvance(2);
|
|
114
123
|
i0.ɵɵproperty("ngForOf", ctx.caseField.list_items);
|
|
115
|
-
} }, directives: [i1.NgClass, i1.NgIf, i1.NgForOf, i2.RadioControlValueAccessor, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective], pipes: [i3.
|
|
124
|
+
} }, directives: [i1.NgClass, i1.NgIf, i1.NgForOf, i2.RadioControlValueAccessor, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective], pipes: [i3.RpxTranslatePipe, i4.FieldLabelPipe, i5.FirstErrorPipe], encapsulation: 2 });
|
|
116
125
|
const ɵWriteDynamicRadioListFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteDynamicRadioListFieldComponent);
|
|
117
126
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDynamicRadioListFieldComponent, [{
|
|
118
127
|
type: Component,
|
|
@@ -121,4 +130,4 @@ const ɵWriteDynamicRadioListFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵg
|
|
|
121
130
|
templateUrl: './write-dynamic-radio-list-field.html'
|
|
122
131
|
}]
|
|
123
132
|
}], null, null); })();
|
|
124
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
133
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid3JpdGUtZHluYW1pYy1yYWRpby1saXN0LWZpZWxkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL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uICAgICAgICAgICAgY2NkRmlyc3RFcnJvcikgfCBycHhUcmFuc2xhdGV9fTwvc3Bhbj5cbiAgICA8L2xhYmVsPlxuXG4gICAgPG5nLWNvbnRhaW5lcj5cbiAgICAgIDxkaXYgY2xhc3M9XCJtdWx0aXBsZS1jaG9pY2VcIiAqbmdGb3I9XCJsZXQgcmFkaW9CdXR0b24gb2YgY2FzZUZpZWxkLmxpc3RfaXRlbXNcIiBbbmdDbGFzc109XCJ7c2VsZWN0ZWQ6IGR5bmFtaWNSYWRpb0xpc3RDb250cm9sLnZhbHVlID09PSByYWRpb0J1dHRvbi5jb2RlfVwiPlxuICAgICAgICA8aW5wdXQgY2xhc3M9XCJmb3JtLWNvbnRyb2xcIiBbaWRdPVwiY3JlYXRlRWxlbWVudElkKHJhZGlvQnV0dG9uLmNvZGUpXCIgW25hbWVdPVwiaWQoKVwiIHR5cGU9XCJyYWRpb1wiIFtmb3JtQ29udHJvbF09XCJkeW5hbWljUmFkaW9MaXN0Q29udHJvbFwiIFt2YWx1ZV09XCJyYWRpb0J1dHRvbi5jb2RlXCI+XG4gICAgICAgIDxsYWJlbCBjbGFzcz1cImZvcm0tbGFiZWxcIiBbZm9yXT1cImNyZWF0ZUVsZW1lbnRJZChyYWRpb0J1dHRvbi5jb2RlKVwiPnt7cmFkaW9CdXR0b24ubGFiZWwgfCBycHhUcmFuc2xhdGV9fTwvbGFiZWw+XG4gICAgICA8L2Rpdj5cbiAgICA8L25nLWNvbnRhaW5lcj5cbiAgPC9maWVsZHNldD5cbjwvZGl2PlxuIl19
|
|
@@ -4,36 +4,40 @@ import { AbstractFieldWriteComponent } from '../base-field/abstract-field-write.
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import * as i1 from "@angular/common";
|
|
6
6
|
import * as i2 from "@angular/forms";
|
|
7
|
-
import * as i3 from "
|
|
8
|
-
import * as i4 from "../utils/
|
|
7
|
+
import * as i3 from "rpx-xui-translation";
|
|
8
|
+
import * as i4 from "../utils/field-label.pipe";
|
|
9
|
+
import * as i5 from "../utils/first-error.pipe";
|
|
9
10
|
function WriteEmailFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
10
11
|
i0.ɵɵelementStart(0, "span", 6);
|
|
11
12
|
i0.ɵɵtext(1);
|
|
12
|
-
i0.ɵɵpipe(2, "
|
|
13
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
14
|
+
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
13
15
|
i0.ɵɵelementEnd();
|
|
14
16
|
} if (rf & 2) {
|
|
15
17
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
16
18
|
i0.ɵɵadvance(1);
|
|
17
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
19
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind1(3, 3, ctx_r0.caseField)));
|
|
18
20
|
} }
|
|
19
21
|
function WriteEmailFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
20
22
|
i0.ɵɵelementStart(0, "span", 7);
|
|
21
23
|
i0.ɵɵtext(1);
|
|
24
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
22
25
|
i0.ɵɵelementEnd();
|
|
23
26
|
} if (rf & 2) {
|
|
24
27
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
25
28
|
i0.ɵɵadvance(1);
|
|
26
|
-
i0.ɵɵtextInterpolate(ctx_r1.caseField.hint_text);
|
|
29
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r1.caseField.hint_text));
|
|
27
30
|
} }
|
|
28
31
|
function WriteEmailFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
29
32
|
i0.ɵɵelementStart(0, "span", 8);
|
|
30
33
|
i0.ɵɵtext(1);
|
|
31
|
-
i0.ɵɵpipe(2, "
|
|
34
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
35
|
+
i0.ɵɵpipe(3, "ccdFirstError");
|
|
32
36
|
i0.ɵɵelementEnd();
|
|
33
37
|
} if (rf & 2) {
|
|
34
38
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
35
39
|
i0.ɵɵadvance(1);
|
|
36
|
-
i0.ɵɵtextInterpolate(i0.ɵɵ
|
|
40
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.emailControl.errors, ctx_r2.caseField.label)));
|
|
37
41
|
} }
|
|
38
42
|
const _c0 = function (a0) { return { "form-group-error": a0 }; };
|
|
39
43
|
const _c1 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
@@ -46,10 +50,10 @@ WriteEmailFieldComponent.ɵfac = function WriteEmailFieldComponent_Factory(t) {
|
|
|
46
50
|
WriteEmailFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteEmailFieldComponent, selectors: [["ccd-write-email-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 6, vars: 12, consts: [[1, "form-group", "bottom-30", 3, "ngClass"], [3, "for"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], ["type", "email", 1, "form-control", 3, "ngClass", "id", "formControl"], [1, "form-label"], [1, "form-hint"], [1, "error-message"]], template: function WriteEmailFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
47
51
|
i0.ɵɵelementStart(0, "div", 0);
|
|
48
52
|
i0.ɵɵelementStart(1, "label", 1);
|
|
49
|
-
i0.ɵɵtemplate(2, WriteEmailFieldComponent_span_2_Template,
|
|
53
|
+
i0.ɵɵtemplate(2, WriteEmailFieldComponent_span_2_Template, 4, 5, "span", 2);
|
|
50
54
|
i0.ɵɵelementEnd();
|
|
51
|
-
i0.ɵɵtemplate(3, WriteEmailFieldComponent_span_3_Template,
|
|
52
|
-
i0.ɵɵtemplate(4, WriteEmailFieldComponent_span_4_Template,
|
|
55
|
+
i0.ɵɵtemplate(3, WriteEmailFieldComponent_span_3_Template, 3, 3, "span", 3);
|
|
56
|
+
i0.ɵɵtemplate(4, WriteEmailFieldComponent_span_4_Template, 4, 6, "span", 4);
|
|
53
57
|
i0.ɵɵelement(5, "input", 5);
|
|
54
58
|
i0.ɵɵelementEnd();
|
|
55
59
|
} if (rf & 2) {
|
|
@@ -64,7 +68,7 @@ WriteEmailFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteEmailFieldC
|
|
|
64
68
|
i0.ɵɵproperty("ngIf", ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched));
|
|
65
69
|
i0.ɵɵadvance(1);
|
|
66
70
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
|
|
67
|
-
} }, directives: [i1.NgClass, i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective], pipes: [i3.
|
|
71
|
+
} }, directives: [i1.NgClass, i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective], pipes: [i3.RpxTranslatePipe, i4.FieldLabelPipe, i5.FirstErrorPipe], encapsulation: 2 });
|
|
68
72
|
const ɵWriteEmailFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteEmailFieldComponent);
|
|
69
73
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteEmailFieldComponent, [{
|
|
70
74
|
type: Component,
|
|
@@ -73,4 +77,4 @@ const ɵWriteEmailFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInherited
|
|
|
73
77
|
templateUrl: 'write-email-field.html'
|
|
74
78
|
}]
|
|
75
79
|
}], null, null); })();
|
|
76
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
80
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJz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bGFzcz1cImZvcm0tY29udHJvbFwiIFtuZ0NsYXNzXT1cInsnZ292dWstaW5wdXQtLWVycm9yJzogZW1haWxDb250cm9sLmVycm9ycyAmJiAoZW1haWxDb250cm9sLmRpcnR5IHx8IGVtYWlsQ29udHJvbC50b3VjaGVkKX1cIlxuICAgIFtpZF09XCJpZCgpXCIgdHlwZT1cImVtYWlsXCIgW2Zvcm1Db250cm9sXT1cImVtYWlsQ29udHJvbFwiPlxuXG48L2Rpdj5cbiJdfQ==
|
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
import { Component } from '@angular/core';
|
|
2
2
|
import { AbstractFieldReadComponent } from '../base-field/abstract-field-read.component';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "
|
|
4
|
+
import * as i1 from "rpx-xui-translation";
|
|
5
|
+
import * as i2 from "./fixed-list.pipe";
|
|
5
6
|
export class ReadFixedListFieldComponent extends AbstractFieldReadComponent {
|
|
6
7
|
}
|
|
7
8
|
ReadFixedListFieldComponent.ɵfac = function ReadFixedListFieldComponent_Factory(t) { return ɵReadFixedListFieldComponent_BaseFactory(t || ReadFixedListFieldComponent); };
|
|
8
|
-
ReadFixedListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReadFixedListFieldComponent, selectors: [["ccd-read-fixed-list-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
9
|
+
ReadFixedListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReadFixedListFieldComponent, selectors: [["ccd-read-fixed-list-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 4, vars: 6, consts: [[1, "text-16"]], template: function ReadFixedListFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9
10
|
i0.ɵɵelementStart(0, "span", 0);
|
|
10
11
|
i0.ɵɵtext(1);
|
|
11
|
-
i0.ɵɵpipe(2, "
|
|
12
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
13
|
+
i0.ɵɵpipe(3, "ccdFixedList");
|
|
12
14
|
i0.ɵɵelementEnd();
|
|
13
15
|
} if (rf & 2) {
|
|
14
16
|
i0.ɵɵadvance(1);
|
|
15
|
-
i0.ɵɵtextInterpolate(i0.ɵɵ
|
|
16
|
-
} }, pipes: [i1.FixedListPipe], encapsulation: 2 });
|
|
17
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx.caseField.value, ctx.caseField.list_items)));
|
|
18
|
+
} }, pipes: [i1.RpxTranslatePipe, i2.FixedListPipe], encapsulation: 2 });
|
|
17
19
|
const ɵReadFixedListFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(ReadFixedListFieldComponent);
|
|
18
20
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadFixedListFieldComponent, [{
|
|
19
21
|
type: Component,
|
|
20
22
|
args: [{
|
|
21
23
|
selector: 'ccd-read-fixed-list-field',
|
|
22
|
-
template: '<span class="text-16">{{caseField.value | ccdFixedList:caseField.list_items}}</span>',
|
|
24
|
+
template: '<span class="text-16">{{caseField.value | ccdFixedList:caseField.list_items | rpxTranslate}}</span>',
|
|
23
25
|
}]
|
|
24
26
|
}], null, null); })();
|
|
25
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVhZC1maXhlZC1saXN0LWZpZWxkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NjZC1jYXNlLXVpLXRvb2xraXQvc3JjL2xpYi9zaGFyZWQvY29tcG9uZW50cy9wYWxldHRlL2ZpeGVkLWxpc3QvcmVhZC1maXhlZC1saXN0LWZpZWxkLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQ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riteComponent } from '../base-field/abstract-field-write.
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import * as i1 from "@angular/common";
|
|
6
6
|
import * as i2 from "@angular/forms";
|
|
7
|
-
import * as i3 from "
|
|
8
|
-
import * as i4 from "../utils/
|
|
7
|
+
import * as i3 from "rpx-xui-translation";
|
|
8
|
+
import * as i4 from "../utils/field-label.pipe";
|
|
9
|
+
import * as i5 from "../utils/first-error.pipe";
|
|
9
10
|
function WriteFixedListFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
10
11
|
i0.ɵɵelementStart(0, "span", 8);
|
|
11
12
|
i0.ɵɵtext(1);
|
|
12
|
-
i0.ɵɵpipe(2, "
|
|
13
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
14
|
+
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
13
15
|
i0.ɵɵelementEnd();
|
|
14
16
|
} if (rf & 2) {
|
|
15
17
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
16
18
|
i0.ɵɵadvance(1);
|
|
17
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
19
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind1(3, 3, ctx_r0.caseField)));
|
|
18
20
|
} }
|
|
19
21
|
function WriteFixedListFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
20
22
|
i0.ɵɵelementStart(0, "span", 9);
|
|
21
23
|
i0.ɵɵtext(1);
|
|
24
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
22
25
|
i0.ɵɵelementEnd();
|
|
23
26
|
} if (rf & 2) {
|
|
24
27
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
25
28
|
i0.ɵɵadvance(1);
|
|
26
|
-
i0.ɵɵtextInterpolate(ctx_r1.caseField.hint_text);
|
|
29
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r1.caseField.hint_text));
|
|
27
30
|
} }
|
|
28
31
|
function WriteFixedListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
29
32
|
i0.ɵɵelementStart(0, "span", 10);
|
|
30
33
|
i0.ɵɵtext(1);
|
|
31
|
-
i0.ɵɵpipe(2, "
|
|
34
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
35
|
+
i0.ɵɵpipe(3, "ccdFirstError");
|
|
32
36
|
i0.ɵɵelementEnd();
|
|
33
37
|
} if (rf & 2) {
|
|
34
38
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
35
39
|
i0.ɵɵadvance(1);
|
|
36
|
-
i0.ɵɵ
|
|
40
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.fixedListFormControl.errors, ctx_r2.caseField.label)), " ");
|
|
37
41
|
} }
|
|
38
42
|
function WriteFixedListFieldComponent_option_8_Template(rf, ctx) { if (rf & 1) {
|
|
39
43
|
i0.ɵɵelementStart(0, "option", 6);
|
|
40
44
|
i0.ɵɵtext(1);
|
|
45
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
41
46
|
i0.ɵɵelementEnd();
|
|
42
47
|
} if (rf & 2) {
|
|
43
48
|
const type_r4 = ctx.$implicit;
|
|
44
49
|
i0.ɵɵproperty("ngValue", type_r4.code);
|
|
45
50
|
i0.ɵɵadvance(1);
|
|
46
|
-
i0.ɵɵtextInterpolate(type_r4.label);
|
|
51
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, type_r4.label));
|
|
47
52
|
} }
|
|
48
53
|
const _c0 = function (a0) { return { "form-group-error": a0 }; };
|
|
49
54
|
export class WriteFixedListFieldComponent extends AbstractFieldWriteComponent {
|
|
@@ -71,15 +76,15 @@ WriteFixedListFieldComponent.ɵfac = function WriteFixedListFieldComponent_Facto
|
|
|
71
76
|
WriteFixedListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteFixedListFieldComponent, selectors: [["ccd-write-fixed-list-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 9, vars: 11, consts: [[1, "form-group", 3, "ngClass"], [3, "for"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [1, "form-control", "ccd-dropdown", "bottom-30", 3, "id", "formControl"], [3, "ngValue"], [3, "ngValue", 4, "ngFor", "ngForOf"], [1, "form-label"], [1, "form-hint"], [1, "error-message"]], template: function WriteFixedListFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
72
77
|
i0.ɵɵelementStart(0, "div", 0);
|
|
73
78
|
i0.ɵɵelementStart(1, "label", 1);
|
|
74
|
-
i0.ɵɵtemplate(2, WriteFixedListFieldComponent_span_2_Template,
|
|
79
|
+
i0.ɵɵtemplate(2, WriteFixedListFieldComponent_span_2_Template, 4, 5, "span", 2);
|
|
75
80
|
i0.ɵɵelementEnd();
|
|
76
|
-
i0.ɵɵtemplate(3, WriteFixedListFieldComponent_span_3_Template,
|
|
77
|
-
i0.ɵɵtemplate(4, WriteFixedListFieldComponent_span_4_Template,
|
|
81
|
+
i0.ɵɵtemplate(3, WriteFixedListFieldComponent_span_3_Template, 3, 3, "span", 3);
|
|
82
|
+
i0.ɵɵtemplate(4, WriteFixedListFieldComponent_span_4_Template, 4, 6, "span", 4);
|
|
78
83
|
i0.ɵɵelementStart(5, "select", 5);
|
|
79
84
|
i0.ɵɵelementStart(6, "option", 6);
|
|
80
85
|
i0.ɵɵtext(7, "--Select a value--");
|
|
81
86
|
i0.ɵɵelementEnd();
|
|
82
|
-
i0.ɵɵtemplate(8, WriteFixedListFieldComponent_option_8_Template,
|
|
87
|
+
i0.ɵɵtemplate(8, WriteFixedListFieldComponent_option_8_Template, 3, 4, "option", 7);
|
|
83
88
|
i0.ɵɵelementEnd();
|
|
84
89
|
i0.ɵɵelementEnd();
|
|
85
90
|
} if (rf & 2) {
|
|
@@ -98,7 +103,7 @@ WriteFixedListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteFixedLi
|
|
|
98
103
|
i0.ɵɵproperty("ngValue", null);
|
|
99
104
|
i0.ɵɵadvance(2);
|
|
100
105
|
i0.ɵɵproperty("ngForOf", ctx.listItems);
|
|
101
|
-
} }, directives: [i1.NgClass, i1.NgIf, i2.SelectControlValueAccessor, i2.NgControlStatus, i2.FormControlDirective, i2.NgSelectOption, i2.ɵangular_packages_forms_forms_z, i1.NgForOf], pipes: [i3.
|
|
106
|
+
} }, directives: [i1.NgClass, i1.NgIf, i2.SelectControlValueAccessor, i2.NgControlStatus, i2.FormControlDirective, i2.NgSelectOption, i2.ɵangular_packages_forms_forms_z, i1.NgForOf], pipes: [i3.RpxTranslatePipe, i4.FieldLabelPipe, i5.FirstErrorPipe], encapsulation: 2 });
|
|
102
107
|
const ɵWriteFixedListFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteFixedListFieldComponent);
|
|
103
108
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteFixedListFieldComponent, [{
|
|
104
109
|
type: Component,
|
|
@@ -107,4 +112,4 @@ const ɵWriteFixedListFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInher
|
|
|
107
112
|
templateUrl: './write-fixed-list-field.html'
|
|
108
113
|
}]
|
|
109
114
|
}], null, null); })();
|
|
110
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
115
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid3JpdGUtZml4ZWQtbGlzdC1maWVsZC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jY2QtY2FzZS11aS10b29sa2l0L3NyYy9saWIvc2hhcmVkL2NvbXBvbmVudHMvcGFsZXR0ZS9maXhlZC1sa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/abstract-field-read.component';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "
|
|
4
|
+
import * as i1 from "rpx-xui-translation";
|
|
5
|
+
import * as i2 from "./fixed-radio-list.pipe";
|
|
5
6
|
export class ReadFixedRadioListFieldComponent extends AbstractFieldReadComponent {
|
|
6
7
|
}
|
|
7
8
|
ReadFixedRadioListFieldComponent.ɵfac = function ReadFixedRadioListFieldComponent_Factory(t) { return ɵReadFixedRadioListFieldComponent_BaseFactory(t || ReadFixedRadioListFieldComponent); };
|
|
8
|
-
ReadFixedRadioListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReadFixedRadioListFieldComponent, selectors: [["ccd-read-fixed-radio-list-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
9
|
+
ReadFixedRadioListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReadFixedRadioListFieldComponent, selectors: [["ccd-read-fixed-radio-list-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 4, vars: 6, consts: [[1, "text-16"]], template: function ReadFixedRadioListFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9
10
|
i0.ɵɵelementStart(0, "span", 0);
|
|
10
11
|
i0.ɵɵtext(1);
|
|
11
|
-
i0.ɵɵpipe(2, "
|
|
12
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
13
|
+
i0.ɵɵpipe(3, "ccdFixedRadioList");
|
|
12
14
|
i0.ɵɵelementEnd();
|
|
13
15
|
} if (rf & 2) {
|
|
14
16
|
i0.ɵɵadvance(1);
|
|
15
|
-
i0.ɵɵtextInterpolate(i0.ɵɵ
|
|
16
|
-
} }, pipes: [i1.FixedRadioListPipe], encapsulation: 2 });
|
|
17
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx.caseField.value, ctx.caseField.field_type.fixed_list_items)));
|
|
18
|
+
} }, pipes: [i1.RpxTranslatePipe, i2.FixedRadioListPipe], encapsulation: 2 });
|
|
17
19
|
const ɵReadFixedRadioListFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(ReadFixedRadioListFieldComponent);
|
|
18
20
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadFixedRadioListFieldComponent, [{
|
|
19
21
|
type: Component,
|
|
20
22
|
args: [{
|
|
21
23
|
selector: 'ccd-read-fixed-radio-list-field',
|
|
22
|
-
template: '<span class="text-16">{{caseField.value | ccdFixedRadioList:caseField.field_type.fixed_list_items}}</span>',
|
|
24
|
+
template: '<span class="text-16">{{caseField.value | ccdFixedRadioList:caseField.field_type.fixed_list_items | rpxTranslate}}</span>',
|
|
23
25
|
}]
|
|
24
26
|
}], null, null); })();
|
|
25
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVhZC1maXhlZC1yYWRpby1saXN0LWZpZWxkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NjZC1jYXNlLXVpLXRvb2xraXQvc3JjL2xpYi9zaGFyZWQvY29tcG9uZW50cy9wYWxldHRlL2ZpeGVkLXJhZGlvLWxpc3QvcmVhZC1maXhlZC1yYWRpby1saXN0LWZpZWxkLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzFDLE9BQU8sRUFBRSwwQkFBMEIsRUFBRSxNQUFNLDZDQUE2QyxDQUFDOzs7O0FBTXpGLE1BQU0sT0FBTyxnQ0FBaUMsU0FBUSwwQkFBMEI7O3lKQUFuRSxnQ0FBZ0M7cUVBQWhDLGdDQUFnQztRQUZoQywrQkFBc0I7UUFBQSxZQUE0Rjs7O1FBQUEsaUJBQU87O1FBQW5HLGVBQTRGO1FBQTVGLGdJQUE0Rjs7NkZBRWxILGdDQUFnQzt1RkFBaEMsZ0NBQWdDO2NBSjVDLFNBQVM7ZUFBQztnQkFDVCxRQUFRLEVBQUUsaUNBQWlDO2dCQUMzQyxRQUFRLEVBQUUsMkhBQTJIO2FBQ3RJIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50IH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBBYnN0cmFjdEZpZWxkUmVhZENvbXBvbmVudCB9IGZyb20gJy4uL2Jhc2UtZmllbGQvYWJzdHJhY3QtZmllbGQtcmVhZC5jb21wb25lbnQnO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICdjY2QtcmVhZC1maXhlZC1yYWRpby1saXN0LWZpZWxkJyxcbiAgdGVtcGxhdGU6ICc8c3BhbiBjbGFzcz1cInRleHQtMTZcIj57e2Nhc2VGaWVsZC52YWx1ZSB8IGNjZEZpeGVkUmFkaW9MaXN0OmNhc2VGaWVsZC5maWVsZF90eXBlLmZpeGVkX2xpc3RfaXRlbXMgfCBycHhUcmFuc2xhdGV9fTwvc3Bhbj4nLFxufSlcbmV4cG9ydCBjbGFzcyBSZWFkRml4ZWRSYWRpb0xpc3RGaWVsZENvbXBvbmVudCBleHRlbmRzIEFic3RyYWN0RmllbGRSZWFkQ29tcG9uZW50IHsgfVxuIl19
|
|
@@ -4,36 +4,40 @@ import { AbstractFieldWriteComponent } from '../base-field/abstract-field-write.
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import * as i1 from "@angular/common";
|
|
6
6
|
import * as i2 from "@angular/forms";
|
|
7
|
-
import * as i3 from "
|
|
8
|
-
import * as i4 from "../utils/
|
|
7
|
+
import * as i3 from "rpx-xui-translation";
|
|
8
|
+
import * as i4 from "../utils/field-label.pipe";
|
|
9
|
+
import * as i5 from "../utils/first-error.pipe";
|
|
9
10
|
function WriteFixedRadioListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
10
11
|
i0.ɵɵelementStart(0, "span", 6);
|
|
11
12
|
i0.ɵɵtext(1);
|
|
12
|
-
i0.ɵɵpipe(2, "
|
|
13
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
14
|
+
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
13
15
|
i0.ɵɵelementEnd();
|
|
14
16
|
} if (rf & 2) {
|
|
15
17
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
16
18
|
i0.ɵɵadvance(1);
|
|
17
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
19
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind1(3, 3, ctx_r0.caseField)));
|
|
18
20
|
} }
|
|
19
21
|
function WriteFixedRadioListFieldComponent_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
20
22
|
i0.ɵɵelementStart(0, "span", 7);
|
|
21
23
|
i0.ɵɵtext(1);
|
|
24
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
22
25
|
i0.ɵɵelementEnd();
|
|
23
26
|
} if (rf & 2) {
|
|
24
27
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
25
28
|
i0.ɵɵadvance(1);
|
|
26
|
-
i0.ɵɵtextInterpolate(ctx_r1.caseField.hint_text);
|
|
29
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r1.caseField.hint_text));
|
|
27
30
|
} }
|
|
28
31
|
function WriteFixedRadioListFieldComponent_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
29
32
|
i0.ɵɵelementStart(0, "span", 8);
|
|
30
33
|
i0.ɵɵtext(1);
|
|
31
|
-
i0.ɵɵpipe(2, "
|
|
34
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
35
|
+
i0.ɵɵpipe(3, "ccdFirstError");
|
|
32
36
|
i0.ɵɵelementEnd();
|
|
33
37
|
} if (rf & 2) {
|
|
34
38
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
35
39
|
i0.ɵɵadvance(1);
|
|
36
|
-
i0.ɵɵtextInterpolate(i0.ɵɵ
|
|
40
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.fixedRadioListControl.errors, ctx_r2.caseField.label)));
|
|
37
41
|
} }
|
|
38
42
|
const _c0 = function (a0) { return { selected: a0 }; };
|
|
39
43
|
function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -41,18 +45,19 @@ function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) { if (rf & 1)
|
|
|
41
45
|
i0.ɵɵelement(1, "input", 10);
|
|
42
46
|
i0.ɵɵelementStart(2, "label", 11);
|
|
43
47
|
i0.ɵɵtext(3);
|
|
48
|
+
i0.ɵɵpipe(4, "rpxTranslate");
|
|
44
49
|
i0.ɵɵelementEnd();
|
|
45
50
|
i0.ɵɵelementEnd();
|
|
46
51
|
} if (rf & 2) {
|
|
47
52
|
const radioButton_r4 = ctx.$implicit;
|
|
48
53
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
49
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
54
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0, ctx_r3.fixedRadioListControl.value === radioButton_r4.code));
|
|
50
55
|
i0.ɵɵadvance(1);
|
|
51
56
|
i0.ɵɵproperty("id", ctx_r3.id() + "-" + radioButton_r4.code)("name", ctx_r3.id())("formControl", ctx_r3.fixedRadioListControl)("value", radioButton_r4.code);
|
|
52
57
|
i0.ɵɵadvance(1);
|
|
53
58
|
i0.ɵɵproperty("for", ctx_r3.id() + "-" + radioButton_r4.code);
|
|
54
59
|
i0.ɵɵadvance(1);
|
|
55
|
-
i0.ɵɵtextInterpolate(radioButton_r4.label);
|
|
60
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 7, radioButton_r4.label));
|
|
56
61
|
} }
|
|
57
62
|
const _c1 = function (a0) { return { "form-group-error": a0 }; };
|
|
58
63
|
export class WriteFixedRadioListFieldComponent extends AbstractFieldWriteComponent {
|
|
@@ -67,13 +72,13 @@ WriteFixedRadioListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteFi
|
|
|
67
72
|
i0.ɵɵelementStart(1, "fieldset");
|
|
68
73
|
i0.ɵɵelementStart(2, "legend");
|
|
69
74
|
i0.ɵɵelementStart(3, "label", 1);
|
|
70
|
-
i0.ɵɵtemplate(4, WriteFixedRadioListFieldComponent_span_4_Template,
|
|
75
|
+
i0.ɵɵtemplate(4, WriteFixedRadioListFieldComponent_span_4_Template, 4, 5, "span", 2);
|
|
71
76
|
i0.ɵɵelementEnd();
|
|
72
|
-
i0.ɵɵtemplate(5, WriteFixedRadioListFieldComponent_span_5_Template,
|
|
73
|
-
i0.ɵɵtemplate(6, WriteFixedRadioListFieldComponent_span_6_Template,
|
|
77
|
+
i0.ɵɵtemplate(5, WriteFixedRadioListFieldComponent_span_5_Template, 3, 3, "span", 3);
|
|
78
|
+
i0.ɵɵtemplate(6, WriteFixedRadioListFieldComponent_span_6_Template, 4, 6, "span", 4);
|
|
74
79
|
i0.ɵɵelementEnd();
|
|
75
80
|
i0.ɵɵelementContainerStart(7);
|
|
76
|
-
i0.ɵɵtemplate(8, WriteFixedRadioListFieldComponent_div_8_Template,
|
|
81
|
+
i0.ɵɵtemplate(8, WriteFixedRadioListFieldComponent_div_8_Template, 5, 11, "div", 5);
|
|
77
82
|
i0.ɵɵelementContainerEnd();
|
|
78
83
|
i0.ɵɵelementEnd();
|
|
79
84
|
i0.ɵɵelementEnd();
|
|
@@ -89,7 +94,7 @@ WriteFixedRadioListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteFi
|
|
|
89
94
|
i0.ɵɵproperty("ngIf", ctx.fixedRadioListControl.errors && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched));
|
|
90
95
|
i0.ɵɵadvance(2);
|
|
91
96
|
i0.ɵɵproperty("ngForOf", ctx.caseField.field_type.fixed_list_items);
|
|
92
|
-
} }, directives: [i1.NgClass, i1.NgIf, i1.NgForOf, i2.RadioControlValueAccessor, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective], pipes: [i3.
|
|
97
|
+
} }, directives: [i1.NgClass, i1.NgIf, i1.NgForOf, i2.RadioControlValueAccessor, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective], pipes: [i3.RpxTranslatePipe, i4.FieldLabelPipe, i5.FirstErrorPipe], encapsulation: 2 });
|
|
93
98
|
const ɵWriteFixedRadioListFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteFixedRadioListFieldComponent);
|
|
94
99
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteFixedRadioListFieldComponent, [{
|
|
95
100
|
type: Component,
|
|
@@ -98,4 +103,4 @@ const ɵWriteFixedRadioListFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵget
|
|
|
98
103
|
templateUrl: './write-fixed-radio-list-field.html'
|
|
99
104
|
}]
|
|
100
105
|
}], null, null); })();
|
|
101
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
106
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid3JpdGUtZml4ZWQtcmFkaW8tbGlzdC1maWVsZC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jY2QtY2FzZS11aS10b29sa2l0L3NyYy9saWIvc2hhcmVkL2NvbXBvbmVudHMvcGFsZXR0ZS9maXhlZC1yYWRpby1saXN0L3dya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