ngx-t-forms 2.0.9 → 2.0.11
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/fesm2022/{ngx-t-forms-api-value-access-rules.component-DjZDnTHz.mjs → ngx-t-forms-api-value-access-rules.component-Cz4ruucP.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-api-value-access-rules.component-DjZDnTHz.mjs.map → ngx-t-forms-api-value-access-rules.component-Cz4ruucP.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-calculated-field-rules.component-E3l7DQo7.mjs → ngx-t-forms-calculated-field-rules.component-DdAzjsV9.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-calculated-field-rules.component-E3l7DQo7.mjs.map → ngx-t-forms-calculated-field-rules.component-DdAzjsV9.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-sOC54w4T.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-CZglpHAQ.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-sOC54w4T.mjs.map → ngx-t-forms-config-mscoa-additional-inputs.component-CZglpHAQ.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-form-input-selector.component-CB03sPjA.mjs → ngx-t-forms-form-input-selector.component-D8sg5JiD.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-form-input-selector.component-CB03sPjA.mjs.map → ngx-t-forms-form-input-selector.component-D8sg5JiD.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-form-json-view.component-C1AZujJH.mjs → ngx-t-forms-form-json-view.component-CO7EYgoY.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-form-json-view.component-C1AZujJH.mjs.map → ngx-t-forms-form-json-view.component-CO7EYgoY.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-form-section-stepper.component-DYfPkzOO.mjs +243 -0
- package/fesm2022/ngx-t-forms-form-section-stepper.component-DYfPkzOO.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-forms-builder-menu.component-CPIcPREp.mjs → ngx-t-forms-forms-builder-menu.component-Coppm548.mjs} +13 -7
- package/fesm2022/ngx-t-forms-forms-builder-menu.component-Coppm548.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-input-editor.component-__grERM8.mjs → ngx-t-forms-input-editor.component-BuSjy9Xq.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-input-editor.component-__grERM8.mjs.map → ngx-t-forms-input-editor.component-BuSjy9Xq.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-DcdHYqhN.mjs → ngx-t-forms-mat-chip-list-editor.component-C1uQVrVP.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-DcdHYqhN.mjs.map → ngx-t-forms-mat-chip-list-editor.component-C1uQVrVP.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-mat-slider-editor.component-C9rintm4.mjs → ngx-t-forms-mat-slider-editor.component-B0Qcx6y9.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-mat-slider-editor.component-C9rintm4.mjs.map → ngx-t-forms-mat-slider-editor.component-B0Qcx6y9.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-mat-slider-toggle-editor.component-CItK6kXf.mjs → ngx-t-forms-mat-slider-toggle-editor.component-B3N3mb8E.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-mat-slider-toggle-editor.component-CItK6kXf.mjs.map → ngx-t-forms-mat-slider-toggle-editor.component-B3N3mb8E.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-Da3SdUn6.mjs → ngx-t-forms-missing-form-configs.component-me7NBrdO.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-Da3SdUn6.mjs.map → ngx-t-forms-missing-form-configs.component-me7NBrdO.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-4hrEpLk3.mjs → ngx-t-forms-mscoa-segment-config.component-BY67rkzl.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-4hrEpLk3.mjs.map → ngx-t-forms-mscoa-segment-config.component-BY67rkzl.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-ngx-t-forms-1Roar4qK.mjs → ngx-t-forms-ngx-t-forms-C6wZyKbR.mjs} +683 -324
- package/fesm2022/ngx-t-forms-ngx-t-forms-C6wZyKbR.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-pipeline-generator.component-BQDykLNH.mjs → ngx-t-forms-pipeline-generator.component-Bu94_5ji.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-pipeline-generator.component-BQDykLNH.mjs.map → ngx-t-forms-pipeline-generator.component-Bu94_5ji.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-required-inputs.component-BGK3DNu0.mjs → ngx-t-forms-required-inputs.component-BdKBo1bW.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-required-inputs.component-BGK3DNu0.mjs.map → ngx-t-forms-required-inputs.component-BdKBo1bW.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-CCaRUSVQ.mjs → ngx-t-forms-rest-api-call-setup.component-59CnCXEt.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-CCaRUSVQ.mjs.map → ngx-t-forms-rest-api-call-setup.component-59CnCXEt.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-section-report.component-C8Ja_G_3.mjs → ngx-t-forms-section-report.component-DB_5Jx3j.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-section-report.component-C8Ja_G_3.mjs.map → ngx-t-forms-section-report.component-DB_5Jx3j.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-selection-options-editor.component-cYkn1O48.mjs → ngx-t-forms-selection-options-editor.component-B4LtSVfp.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-selection-options-editor.component-cYkn1O48.mjs.map → ngx-t-forms-selection-options-editor.component-B4LtSVfp.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-validators-config.component-CGXCCl45.mjs → ngx-t-forms-validators-config.component-CehxpsPR.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-validators-config.component-CGXCCl45.mjs.map → ngx-t-forms-validators-config.component-CehxpsPR.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms.mjs +1 -1
- package/lib/components/form-builder/elements/form-section-stepper/form-section-stepper.component.d.ts +5 -0
- package/lib/components/form-builder/elements/forms-builder-menu/forms-builder-menu.component.d.ts +2 -0
- package/lib/components/form-builder/elements/select-form-template/select-form-template.component.d.ts +7 -2
- package/lib/components/forms/forms.component.d.ts +1 -1
- package/lib/components/t-form-input/elements/Geo-location-form-input/geo-location.component.d.ts +1 -4
- package/lib/components/t-form-input/elements/auto-complete-input-element/auto-complete-input-element.component.d.ts +1 -4
- package/lib/components/t-form-input/elements/auto-complete-input-element/core/auto-complet-reactive-input/auto-complet-reactive-input.component.d.ts +19 -0
- package/lib/components/t-form-input/elements/basic-input-input-element/basic-input-input-element.component.d.ts +1 -4
- package/lib/components/t-form-input/elements/date-picker-input-element/core/date-picker-reactive-input/date-picker-reactive-input.component.d.ts +16 -0
- package/lib/components/t-form-input/elements/date-picker-input-element/date-picker-input-element.component.d.ts +1 -5
- package/lib/components/t-form-input/elements/date-range-picker-input-element/core/date-range-picker-reactive-input/date-range-picker-reactive-input.component.d.ts +17 -0
- package/lib/components/t-form-input/elements/date-range-picker-input-element/date-range-picker-input-element.component.d.ts +22 -5
- package/lib/components/t-form-input/elements/editor-input-element/core/form-input-rich-text-editor/config.d.ts +1 -0
- package/lib/components/t-form-input/elements/editor-input-element/editor-input-element.component.d.ts +1 -4
- package/lib/components/t-form-input/elements/file-upload-input-element/file-upload-input-element.component.d.ts +1 -4
- package/lib/components/t-form-input/elements/image-capture-input-element/image-capture-input-element.component.d.ts +1 -4
- package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-chart/mscoa-chart.component.d.ts +3 -1
- package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-reactive-form-field/mscoa-reactive-form-field.component.d.ts +1 -0
- package/lib/components/t-form-input/elements/mscoa-form-input/mscoa-form-input.component.d.ts +2 -5
- package/lib/components/t-form-input/elements/multiple-input-input-element/core/multiple-input-table/multiple-input-table.component.d.ts +8 -6
- package/lib/components/t-form-input/elements/multiple-input-input-element/multiple-input-input-element.component.d.ts +1 -4
- package/lib/components/t-form-input/elements/select-input-element/elements/select-input/select-input.component.d.ts +1 -0
- package/lib/components/t-form-input/elements/select-input-element/select-input-element.component.d.ts +1 -5
- package/lib/components/t-form-input/elements/select-table-input/select-table-input.component.d.ts +1 -4
- package/lib/components/t-form-input/elements/signature-input-element/signature-input-element.component.d.ts +1 -4
- package/lib/components/t-form-input/elements/textarea-input-element/core/text-area-reactive-input/text-area-reactive-input.component.d.ts +20 -0
- package/lib/components/t-form-input/elements/textarea-input-element/textarea-input-element.component.d.ts +1 -4
- package/lib/components/t-form-input/elements/toggle-input-element/core/toggle/toggle.component.d.ts +1 -0
- package/lib/components/t-form-input/elements/toggle-input-element/toggle-input-element.component.d.ts +1 -4
- package/lib/components/t-form-input/t-form-input.component.d.ts +1 -4
- package/lib/components/t-form-input-status/t-form-input-status.component.d.ts +1 -0
- package/lib/services/core/t-form-controller/function/multipleFormInputsMapValueToFormInputId.d.ts +2 -0
- package/lib/services/core/t-form-section-controller/Functions/commonFormOperations.d.ts +1 -1
- package/lib/services/core/t-form-tower-controller/form-tower-controller.service.d.ts +1 -1
- package/lib/services/core/t-input-controller/functions/baseCustomInput.d.ts +0 -1
- package/package.json +2 -2
- package/fesm2022/ngx-t-forms-api-value-access-rules.component-Zg1ddSDb.mjs +0 -813
- package/fesm2022/ngx-t-forms-api-value-access-rules.component-Zg1ddSDb.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-ZepKycLR.mjs +0 -532
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-ZepKycLR.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-DLnB3R7t.mjs +0 -297
- package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-DLnB3R7t.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-form-input-selector.component-BjwzDiCY.mjs +0 -187
- package/fesm2022/ngx-t-forms-form-input-selector.component-BjwzDiCY.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-form-json-view.component-CqtTYCRH.mjs +0 -28
- package/fesm2022/ngx-t-forms-form-json-view.component-CqtTYCRH.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-form-section-stepper.component-Ba5WCLzp.mjs +0 -673
- package/fesm2022/ngx-t-forms-form-section-stepper.component-Ba5WCLzp.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-form-section-stepper.component-C_dciQhe.mjs +0 -225
- package/fesm2022/ngx-t-forms-form-section-stepper.component-C_dciQhe.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-forms-builder-menu.component-CPIcPREp.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-forms-builder-menu.component-DbxEBvpt.mjs +0 -735
- package/fesm2022/ngx-t-forms-forms-builder-menu.component-DbxEBvpt.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-input-editor.component-BnsC-jsN.mjs +0 -445
- package/fesm2022/ngx-t-forms-input-editor.component-BnsC-jsN.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-DS6s98ZX.mjs +0 -111
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-DS6s98ZX.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mat-slider-editor.component-ChiiJYK2.mjs +0 -130
- package/fesm2022/ngx-t-forms-mat-slider-editor.component-ChiiJYK2.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-DFcLzkSF.mjs +0 -171
- package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-DFcLzkSF.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-missing-form-configs.component-DNkGCH0e.mjs +0 -104
- package/fesm2022/ngx-t-forms-missing-form-configs.component-DNkGCH0e.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CrHAIRAw.mjs +0 -455
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CrHAIRAw.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-ngx-t-forms-1Roar4qK.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-ngx-t-forms-DaAFB-HX.mjs +0 -14694
- package/fesm2022/ngx-t-forms-ngx-t-forms-DaAFB-HX.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-pipeline-generator.component-U0d8jQKW.mjs +0 -1362
- package/fesm2022/ngx-t-forms-pipeline-generator.component-U0d8jQKW.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-required-inputs.component-S3cbA-zG.mjs +0 -383
- package/fesm2022/ngx-t-forms-required-inputs.component-S3cbA-zG.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-DDg4fCFx.mjs +0 -457
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-DDg4fCFx.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-section-report.component-C_h0KIR4.mjs +0 -314
- package/fesm2022/ngx-t-forms-section-report.component-C_h0KIR4.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-selection-options-editor.component-CllhwZ5Y.mjs +0 -231
- package/fesm2022/ngx-t-forms-selection-options-editor.component-CllhwZ5Y.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-validators-config.component-BPJZRtjT.mjs +0 -434
- package/fesm2022/ngx-t-forms-validators-config.component-BPJZRtjT.mjs.map +0 -1
|
@@ -1,297 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, inject, Component, Optional, Self, Output, Input, HostBinding } from '@angular/core';
|
|
3
|
-
import { Subject, BehaviorSubject, take, tap, catchError } from 'rxjs';
|
|
4
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
5
|
-
import * as i2 from '@angular/common';
|
|
6
|
-
import { CommonModule } from '@angular/common';
|
|
7
|
-
import { M as MatModulesModule } from './ngx-t-forms-ngx-t-forms-DaAFB-HX.mjs';
|
|
8
|
-
import * as i3$1 from '@angular/material/form-field';
|
|
9
|
-
import { MatFormFieldControl } from '@angular/material/form-field';
|
|
10
|
-
import * as i1 from '@angular/forms';
|
|
11
|
-
import * as i3 from '@angular/material/core';
|
|
12
|
-
import * as i2$1 from '@angular/material/button';
|
|
13
|
-
import * as i6 from '@angular/material/icon';
|
|
14
|
-
import * as i6$1 from '@angular/material/list';
|
|
15
|
-
import * as i7 from '@angular/material/select';
|
|
16
|
-
import * as i9 from '@angular/material/toolbar';
|
|
17
|
-
|
|
18
|
-
const _forTrack0 = ($index, $item) => $item.value;
|
|
19
|
-
function ConfigMscoaAdditionalInputsComponent_mat_list_0_mat_form_field_3_For_5_Template(rf, ctx) { if (rf & 1) {
|
|
20
|
-
i0.ɵɵelementStart(0, "mat-option", 7);
|
|
21
|
-
i0.ɵɵtext(1);
|
|
22
|
-
i0.ɵɵelementEnd();
|
|
23
|
-
} if (rf & 2) {
|
|
24
|
-
const segment_r4 = ctx.$implicit;
|
|
25
|
-
i0.ɵɵproperty("value", segment_r4.value);
|
|
26
|
-
i0.ɵɵadvance();
|
|
27
|
-
i0.ɵɵtextInterpolate(segment_r4.label);
|
|
28
|
-
} }
|
|
29
|
-
function ConfigMscoaAdditionalInputsComponent_mat_list_0_mat_form_field_3_Template(rf, ctx) { if (rf & 1) {
|
|
30
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
|
31
|
-
i0.ɵɵelementStart(0, "mat-form-field", 5);
|
|
32
|
-
i0.ɵɵlistener("mouseover", function ConfigMscoaAdditionalInputsComponent_mat_list_0_mat_form_field_3_Template_mat_form_field_mouseover_0_listener() { const i_r2 = i0.ɵɵrestoreView(_r1).index; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.hovered = i_r2); })("mouseleave", function ConfigMscoaAdditionalInputsComponent_mat_list_0_mat_form_field_3_Template_mat_form_field_mouseleave_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.hovered = null); });
|
|
33
|
-
i0.ɵɵelementStart(1, "mat-label");
|
|
34
|
-
i0.ɵɵtext(2);
|
|
35
|
-
i0.ɵɵelementEnd();
|
|
36
|
-
i0.ɵɵelementStart(3, "mat-select", 6);
|
|
37
|
-
i0.ɵɵlistener("selectionChange", function ConfigMscoaAdditionalInputsComponent_mat_list_0_mat_form_field_3_Template_mat_select_selectionChange_3_listener($event) { const i_r2 = i0.ɵɵrestoreView(_r1).index; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.inputSegmentChanged($event, i_r2)); });
|
|
38
|
-
i0.ɵɵrepeaterCreate(4, ConfigMscoaAdditionalInputsComponent_mat_list_0_mat_form_field_3_For_5_Template, 2, 2, "mat-option", 7, _forTrack0);
|
|
39
|
-
i0.ɵɵelementEnd();
|
|
40
|
-
i0.ɵɵelementStart(6, "mat-hint");
|
|
41
|
-
i0.ɵɵtext(7, " Link formula to an input value ");
|
|
42
|
-
i0.ɵɵelementEnd()();
|
|
43
|
-
} if (rf & 2) {
|
|
44
|
-
const input_r5 = ctx.$implicit;
|
|
45
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
46
|
-
i0.ɵɵadvance(2);
|
|
47
|
-
i0.ɵɵtextInterpolate1(" ", input_r5.label, " ");
|
|
48
|
-
i0.ɵɵadvance();
|
|
49
|
-
i0.ɵɵproperty("value", input_r5.segment);
|
|
50
|
-
i0.ɵɵadvance();
|
|
51
|
-
i0.ɵɵrepeater(ctx_r2.limitInputTo);
|
|
52
|
-
} }
|
|
53
|
-
function ConfigMscoaAdditionalInputsComponent_mat_list_0_Template(rf, ctx) { if (rf & 1) {
|
|
54
|
-
i0.ɵɵelementStart(0, "mat-list")(1, "mat-toolbar");
|
|
55
|
-
i0.ɵɵtext(2, " Additional inputs configuration ");
|
|
56
|
-
i0.ɵɵelementEnd();
|
|
57
|
-
i0.ɵɵtemplate(3, ConfigMscoaAdditionalInputsComponent_mat_list_0_mat_form_field_3_Template, 8, 2, "mat-form-field", 4);
|
|
58
|
-
i0.ɵɵelementEnd();
|
|
59
|
-
} if (rf & 2) {
|
|
60
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
61
|
-
i0.ɵɵadvance(3);
|
|
62
|
-
i0.ɵɵproperty("ngForOf", ctx_r2.value);
|
|
63
|
-
} }
|
|
64
|
-
function ConfigMscoaAdditionalInputsComponent_ng_template_1_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
65
|
-
i0.ɵɵelementStart(0, "div", 9)(1, "mat-icon", 10);
|
|
66
|
-
i0.ɵɵtext(2, "info");
|
|
67
|
-
i0.ɵɵelementEnd();
|
|
68
|
-
i0.ɵɵelementStart(3, "span")(4, "strong");
|
|
69
|
-
i0.ɵɵtext(5, " No input configuration available. ");
|
|
70
|
-
i0.ɵɵelementEnd();
|
|
71
|
-
i0.ɵɵelement(6, "br");
|
|
72
|
-
i0.ɵɵtext(7, " Start by adding inputs below.");
|
|
73
|
-
i0.ɵɵelementEnd()();
|
|
74
|
-
} }
|
|
75
|
-
function ConfigMscoaAdditionalInputsComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
76
|
-
i0.ɵɵtemplate(0, ConfigMscoaAdditionalInputsComponent_ng_template_1_div_0_Template, 8, 0, "div", 8);
|
|
77
|
-
} if (rf & 2) {
|
|
78
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
79
|
-
i0.ɵɵproperty("ngIf", ctx_r2.mapToData == null ? null : ctx_r2.mapToData.id);
|
|
80
|
-
} }
|
|
81
|
-
function ConfigMscoaAdditionalInputsComponent_mat_toolbar_3_Template(rf, ctx) { if (rf & 1) {
|
|
82
|
-
const _r6 = i0.ɵɵgetCurrentView();
|
|
83
|
-
i0.ɵɵelementStart(0, "mat-toolbar")(1, "button", 11);
|
|
84
|
-
i0.ɵɵlistener("click", function ConfigMscoaAdditionalInputsComponent_mat_toolbar_3_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.startAddNew()); });
|
|
85
|
-
i0.ɵɵelementStart(2, "mat-icon");
|
|
86
|
-
i0.ɵɵtext(3, " add ");
|
|
87
|
-
i0.ɵɵelementEnd();
|
|
88
|
-
i0.ɵɵtext(4, " Add New Input ");
|
|
89
|
-
i0.ɵɵelementEnd()();
|
|
90
|
-
} }
|
|
91
|
-
function ConfigMscoaAdditionalInputsComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
92
|
-
i0.ɵɵelementStart(0, "h1");
|
|
93
|
-
i0.ɵɵtext(1, " Not implemented yet ");
|
|
94
|
-
i0.ɵɵelementEnd();
|
|
95
|
-
i0.ɵɵtext(2, " not implemented\n");
|
|
96
|
-
} }
|
|
97
|
-
class ConfigMscoaAdditionalInputsComponent {
|
|
98
|
-
static { this.nextId = 0; }
|
|
99
|
-
constructor(ngControl, _elementRef) {
|
|
100
|
-
this.ngControl = ngControl;
|
|
101
|
-
this._elementRef = _elementRef;
|
|
102
|
-
this.stateChanges = new Subject();
|
|
103
|
-
this.id = `app-config-mscoa-additional-inputs-${ConfigMscoaAdditionalInputsComponent.nextId++}`;
|
|
104
|
-
this.placeholder = '';
|
|
105
|
-
this.focused = false;
|
|
106
|
-
this.required = false;
|
|
107
|
-
this.disabled = false;
|
|
108
|
-
this.touched = false;
|
|
109
|
-
this.onTouched = () => { };
|
|
110
|
-
this.mscoaInitiated = false;
|
|
111
|
-
this.errors = [];
|
|
112
|
-
this.mapToData = undefined;
|
|
113
|
-
this._inputInEdit = new BehaviorSubject(null);
|
|
114
|
-
this.inputInEdit = undefined;
|
|
115
|
-
this.valueChanged = new EventEmitter();
|
|
116
|
-
this._value = new BehaviorSubject([]);
|
|
117
|
-
this.editingIndex = null;
|
|
118
|
-
this.isAddingNew = false;
|
|
119
|
-
this.accountTreeKeys = [];
|
|
120
|
-
this.hovered = null;
|
|
121
|
-
this.hoveredIndex = null;
|
|
122
|
-
this.dialog = inject(MatDialog);
|
|
123
|
-
}
|
|
124
|
-
get empty() {
|
|
125
|
-
return !this.value;
|
|
126
|
-
}
|
|
127
|
-
get shouldLabelFloat() {
|
|
128
|
-
return this.focused || !this.empty;
|
|
129
|
-
}
|
|
130
|
-
get errorState() {
|
|
131
|
-
const hasError = !!this.ngControl?.control?.errors || (this.errors || []).length > 0 && this.touched;
|
|
132
|
-
return !this.value && !!this.required || hasError;
|
|
133
|
-
}
|
|
134
|
-
setDescribedByIds(ids) {
|
|
135
|
-
// Ensure the component view is initialized
|
|
136
|
-
if (this._elementRef && this._elementRef.nativeElement) {
|
|
137
|
-
const controlElement = this._elementRef.nativeElement.querySelector('.app-config-mscoa-additional-inputs');
|
|
138
|
-
// Check if the controlElement exists before attempting to set its attribute
|
|
139
|
-
if (controlElement) {
|
|
140
|
-
controlElement.setAttribute('aria-describedby', ids.join(' '));
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
onContainerClick(event) {
|
|
145
|
-
this.markAsTouched();
|
|
146
|
-
this.stateChanges.next();
|
|
147
|
-
}
|
|
148
|
-
markAsTouched() {
|
|
149
|
-
console.log('markAsTouched');
|
|
150
|
-
if (!this.touched) {
|
|
151
|
-
this.onTouched();
|
|
152
|
-
this.touched = true;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
set getMscoaTree(options$) {
|
|
156
|
-
if (!!options$ && !this.mscoaInitiated) {
|
|
157
|
-
this.mscoaInitiated = true;
|
|
158
|
-
options$.pipe(take(1), tap((options) => {
|
|
159
|
-
this.accountTreeKeys = options?.accountTreeKeys || [];
|
|
160
|
-
}), catchError((error) => {
|
|
161
|
-
console.error('Error while fetching SCOA tree:', error);
|
|
162
|
-
return [null];
|
|
163
|
-
})).subscribe();
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
set value(val) {
|
|
167
|
-
this._value.next(val || []);
|
|
168
|
-
}
|
|
169
|
-
get value() {
|
|
170
|
-
return this._value.value;
|
|
171
|
-
}
|
|
172
|
-
ngOnInit() {
|
|
173
|
-
}
|
|
174
|
-
startAddNew() {
|
|
175
|
-
this.isAddingNew = true;
|
|
176
|
-
this.editingIndex = null;
|
|
177
|
-
this.inputInEdit = undefined;
|
|
178
|
-
this.openElementEditor();
|
|
179
|
-
}
|
|
180
|
-
startEdit(index) {
|
|
181
|
-
this.editingIndex = index;
|
|
182
|
-
this.isAddingNew = false;
|
|
183
|
-
this.inputInEdit = this.value[index];
|
|
184
|
-
this.openElementEditor();
|
|
185
|
-
}
|
|
186
|
-
removeInput(index) {
|
|
187
|
-
const updatedValue = this.value.filter((_, i) => i !== index);
|
|
188
|
-
this._value.next(updatedValue);
|
|
189
|
-
this.valueChanged.emit(updatedValue);
|
|
190
|
-
}
|
|
191
|
-
cancelEdit() {
|
|
192
|
-
this.editingIndex = null;
|
|
193
|
-
this.isAddingNew = false;
|
|
194
|
-
}
|
|
195
|
-
saveSegment() {
|
|
196
|
-
// if (this.segmentForm.valid) {
|
|
197
|
-
// const newSegment = ({
|
|
198
|
-
// segment:this.segmentForm.value.segment,
|
|
199
|
-
// label:this.toTitleCase(this.segmentForm.value.segment),
|
|
200
|
-
// }) as IIncludedSegmentConfig;
|
|
201
|
-
// const updatedValue = [...this.value];
|
|
202
|
-
// if (this.isAddingNew) {
|
|
203
|
-
// updatedValue.push(newSegment);
|
|
204
|
-
// } else if (this.editingIndex !== null) {
|
|
205
|
-
// updatedValue[this.editingIndex] = newSegment;
|
|
206
|
-
// }
|
|
207
|
-
// this._value.next(updatedValue);
|
|
208
|
-
// this.valueChanged.emit(updatedValue);
|
|
209
|
-
// this.cancelEdit();
|
|
210
|
-
// }
|
|
211
|
-
}
|
|
212
|
-
removeSegment(index) {
|
|
213
|
-
const updatedValue = this.value.filter((_, i) => i !== index);
|
|
214
|
-
this._value.next(updatedValue);
|
|
215
|
-
this.valueChanged.emit(updatedValue);
|
|
216
|
-
}
|
|
217
|
-
async openElementEditor() {
|
|
218
|
-
this.openFormDialog();
|
|
219
|
-
}
|
|
220
|
-
inputSegmentChanged($event, i) {
|
|
221
|
-
if ($event.detail.value === 'None' && this.value[i] !== undefined) {
|
|
222
|
-
this.value[i].segment = undefined;
|
|
223
|
-
}
|
|
224
|
-
else if (this.value[i] !== undefined) {
|
|
225
|
-
this.value[i].segment = $event.detail.value;
|
|
226
|
-
}
|
|
227
|
-
this.valueChanged.emit(this.value);
|
|
228
|
-
}
|
|
229
|
-
openFormDialog() {
|
|
230
|
-
// const dialogRef = this.dialog.open(FormElementModalEditorComponent,{
|
|
231
|
-
// maxHeight:'95vh',
|
|
232
|
-
// panelClass:'form-element-modal-editor',
|
|
233
|
-
// data:{
|
|
234
|
-
// inputInEdit:this.inputInEdit
|
|
235
|
-
// }
|
|
236
|
-
// });
|
|
237
|
-
// dialogRef.afterClosed().pipe(take(1)).subscribe(result => {
|
|
238
|
-
// const {input,action} = result
|
|
239
|
-
// if(action === 'add'){
|
|
240
|
-
// this.value.push(input)
|
|
241
|
-
// this.valueChanged.emit(this.value)
|
|
242
|
-
// }
|
|
243
|
-
// if(action === 'edit'&& this.editingIndex !== null){
|
|
244
|
-
// this.value[this.editingIndex] = input
|
|
245
|
-
// this.valueChanged.emit(this.value)
|
|
246
|
-
// }
|
|
247
|
-
// this.cancelEdit()
|
|
248
|
-
// });
|
|
249
|
-
}
|
|
250
|
-
get limitInputTo() {
|
|
251
|
-
return [...this.accountTreeKeys.map((key) => ({
|
|
252
|
-
value: key,
|
|
253
|
-
label: key,
|
|
254
|
-
})), {
|
|
255
|
-
value: undefined,
|
|
256
|
-
label: 'None'
|
|
257
|
-
}];
|
|
258
|
-
}
|
|
259
|
-
static { this.ɵfac = function ConfigMscoaAdditionalInputsComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ConfigMscoaAdditionalInputsComponent)(i0.ɵɵdirectiveInject(i1.NgControl, 10), i0.ɵɵdirectiveInject(i0.ElementRef)); }; }
|
|
260
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ConfigMscoaAdditionalInputsComponent, selectors: [["app-config-mscoa-additional-inputs"]], hostVars: 1, hostBindings: function ConfigMscoaAdditionalInputsComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
261
|
-
i0.ɵɵhostProperty("id", ctx.id);
|
|
262
|
-
} }, inputs: { errors: "errors", getMscoaTree: "getMscoaTree", mapToData: "mapToData", value: "value" }, outputs: { valueChanged: "valueChanged" }, features: [i0.ɵɵProvidersFeature([{ provide: MatFormFieldControl, useExisting: ConfigMscoaAdditionalInputsComponent }])], decls: 6, vars: 3, consts: [["noInputs", ""], ["InputEditor", ""], [4, "ngIf", "ngIfElse"], [4, "ngIf"], ["style", " margin-bottom: 8px;", "appearance", "outline", 3, "mouseover", "mouseleave", 4, "ngFor", "ngForOf"], ["appearance", "outline", 2, "margin-bottom", "8px", 3, "mouseover", "mouseleave"], ["matNativeControl", "", "placeholder", "select segment", 3, "selectionChange", "value"], [3, "value"], ["class", "tree-instructions", 4, "ngIf"], [1, "tree-instructions"], ["color", "primary", 1, "info-icon"], ["mat-stroked-button", "", 2, "width", "100%", 3, "click"]], template: function ConfigMscoaAdditionalInputsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
263
|
-
i0.ɵɵtemplate(0, ConfigMscoaAdditionalInputsComponent_mat_list_0_Template, 4, 1, "mat-list", 2)(1, ConfigMscoaAdditionalInputsComponent_ng_template_1_Template, 1, 1, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor)(3, ConfigMscoaAdditionalInputsComponent_mat_toolbar_3_Template, 5, 0, "mat-toolbar", 3)(4, ConfigMscoaAdditionalInputsComponent_ng_template_4_Template, 3, 0, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
264
|
-
} if (rf & 2) {
|
|
265
|
-
const noInputs_r7 = i0.ɵɵreference(2);
|
|
266
|
-
i0.ɵɵproperty("ngIf", ((ctx.value == null ? null : ctx.value.length) || 0) > 0)("ngIfElse", noInputs_r7);
|
|
267
|
-
i0.ɵɵadvance(3);
|
|
268
|
-
i0.ɵɵproperty("ngIf", !ctx.isAddingNew && ctx.editingIndex === null && (ctx.mapToData == null ? null : ctx.mapToData.id));
|
|
269
|
-
} }, dependencies: [CommonModule, i2.NgForOf, i2.NgIf, MatModulesModule, i3.MatOption, i2$1.MatButton, i6.MatIcon, i6$1.MatList, i3$1.MatFormField, i3$1.MatLabel, i3$1.MatHint, i7.MatSelect, i9.MatToolbar], styles: [".tree-instructions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:12px;background:azure;border-radius:4px;margin-bottom:16px}.info-icon[_ngcontent-%COMP%]{min-width:38px}"] }); }
|
|
270
|
-
}
|
|
271
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ConfigMscoaAdditionalInputsComponent, [{
|
|
272
|
-
type: Component,
|
|
273
|
-
args: [{ selector: 'app-config-mscoa-additional-inputs', standalone: true, imports: [
|
|
274
|
-
CommonModule,
|
|
275
|
-
MatModulesModule,
|
|
276
|
-
], providers: [{ provide: MatFormFieldControl, useExisting: ConfigMscoaAdditionalInputsComponent }], template: "\n\n<mat-list *ngIf=\"(value?.length||0) > 0; else noInputs\">\n <mat-toolbar>\n Additional inputs configuration\n </mat-toolbar>\n <mat-form-field \n (mouseover)=\"hovered = i\"\n\n (mouseleave)=\"hovered = null\"\n *ngFor=\"let input of value; let i = index\" style=\" margin-bottom: 8px;\" appearance=\"outline\" >\n <mat-label>\n {{ input.label }}\n </mat-label>\n <mat-select matNativeControl \n \n [value]=\"input.segment\"\n\n placeholder=\"select segment\" (selectionChange)=\"inputSegmentChanged($event,i)\"\n >\n \n \n @for (segment of limitInputTo; track segment.value) {\n <mat-option [value]=\"segment.value\" >{{segment.label}}</mat-option>\n }\n\n\n </mat-select>\n <mat-hint>\n Link formula to an input value\n </mat-hint>\n </mat-form-field>\n\n</mat-list>\n\n<ng-template #noInputs>\n <div *ngIf=\"mapToData?.id\" class=\"tree-instructions\">\n <mat-icon class=\"info-icon\" color=\"primary\">info</mat-icon>\n <span><strong>\n No input configuration available. \n </strong> <br>\n Start by adding inputs below.</span>\n </div>\n\n</ng-template>\n\n\n\n\n<mat-toolbar *ngIf=\"!isAddingNew && editingIndex === null && mapToData?.id\">\n <button style=\"width: 100%;\" (click)=\"startAddNew()\" mat-stroked-button>\n <mat-icon>\n add\n </mat-icon>\n Add New Input\n </button>\n</mat-toolbar>\n\n<ng-template #InputEditor>\n <h1>\n Not implemented yet\n </h1>\n\n not implemented\n</ng-template>\n", styles: [".tree-instructions{display:flex;align-items:center;gap:8px;padding:12px;background:azure;border-radius:4px;margin-bottom:16px}.info-icon{min-width:38px}\n"] }]
|
|
277
|
-
}], () => [{ type: i1.NgControl, decorators: [{
|
|
278
|
-
type: Optional
|
|
279
|
-
}, {
|
|
280
|
-
type: Self
|
|
281
|
-
}] }, { type: i0.ElementRef }], { id: [{
|
|
282
|
-
type: HostBinding
|
|
283
|
-
}], errors: [{
|
|
284
|
-
type: Input
|
|
285
|
-
}], getMscoaTree: [{
|
|
286
|
-
type: Input
|
|
287
|
-
}], mapToData: [{
|
|
288
|
-
type: Input
|
|
289
|
-
}], value: [{
|
|
290
|
-
type: Input
|
|
291
|
-
}], valueChanged: [{
|
|
292
|
-
type: Output
|
|
293
|
-
}] }); })();
|
|
294
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ConfigMscoaAdditionalInputsComponent, { className: "ConfigMscoaAdditionalInputsComponent", filePath: "lib/components/t-dynamic-data-edit/elements/config-mscoa-additional-inputs/config-mscoa-additional-inputs.component.ts", lineNumber: 30 }); })();
|
|
295
|
-
|
|
296
|
-
export { ConfigMscoaAdditionalInputsComponent };
|
|
297
|
-
//# sourceMappingURL=ngx-t-forms-config-mscoa-additional-inputs.component-DLnB3R7t.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-t-forms-config-mscoa-additional-inputs.component-DLnB3R7t.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/config-mscoa-additional-inputs/config-mscoa-additional-inputs.component.html","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/config-mscoa-additional-inputs/config-mscoa-additional-inputs.component.ts"],"sourcesContent":["\n\n<mat-list *ngIf=\"(value?.length||0) > 0; else noInputs\">\n <mat-toolbar>\n Additional inputs configuration\n </mat-toolbar>\n <mat-form-field \n (mouseover)=\"hovered = i\"\n\n (mouseleave)=\"hovered = null\"\n *ngFor=\"let input of value; let i = index\" style=\" margin-bottom: 8px;\" appearance=\"outline\" >\n <mat-label>\n {{ input.label }}\n </mat-label>\n <mat-select matNativeControl \n \n [value]=\"input.segment\"\n\n placeholder=\"select segment\" (selectionChange)=\"inputSegmentChanged($event,i)\"\n >\n \n \n @for (segment of limitInputTo; track segment.value) {\n <mat-option [value]=\"segment.value\" >{{segment.label}}</mat-option>\n }\n\n\n </mat-select>\n <mat-hint>\n Link formula to an input value\n </mat-hint>\n </mat-form-field>\n\n</mat-list>\n\n<ng-template #noInputs>\n <div *ngIf=\"mapToData?.id\" class=\"tree-instructions\">\n <mat-icon class=\"info-icon\" color=\"primary\">info</mat-icon>\n <span><strong>\n No input configuration available. \n </strong> <br>\n Start by adding inputs below.</span>\n </div>\n\n</ng-template>\n\n\n\n\n<mat-toolbar *ngIf=\"!isAddingNew && editingIndex === null && mapToData?.id\">\n <button style=\"width: 100%;\" (click)=\"startAddNew()\" mat-stroked-button>\n <mat-icon>\n add\n </mat-icon>\n Add New Input\n </button>\n</mat-toolbar>\n\n<ng-template #InputEditor>\n <h1>\n Not implemented yet\n </h1>\n\n not implemented\n</ng-template>\n","import { Component, ElementRef, EventEmitter, HostBinding, inject, Input, OnInit, Optional, Output, Self } from '@angular/core';\r\nimport { BehaviorSubject, catchError, Observable, Subject, take, tap } from 'rxjs';\r\n\r\nimport { MatDialog } from '@angular/material/dialog';\r\nimport { FormColumnInputs } from 'ngx-t-forms-types';\r\nimport { CommonModule } from '@angular/common';\r\nimport { MatModulesModule } from '../../../../shared/modules/mat-modules.module';\r\nimport { IGetTreeResponse } from 'ngx-t-forms-types';\r\nimport { MatFormFieldControl } from '@angular/material/form-field';\r\nimport { NgControl } from '@angular/forms';\r\nimport { IConfigElementError } from '../../t-dynamic-data-edit.component';\r\n\r\n\r\n\r\n\r\ninterface ConfiguredMscoaInput extends FormColumnInputs {\r\n segment:string\r\n}\r\n@Component({\r\n selector: 'app-config-mscoa-additional-inputs',\r\n standalone: true,\r\n imports:[\r\n CommonModule,\r\n MatModulesModule,\r\n ],\r\n templateUrl: './config-mscoa-additional-inputs.component.html',\r\n styleUrls: ['./config-mscoa-additional-inputs.component.scss'],\r\n providers: [{ provide: MatFormFieldControl, useExisting: ConfigMscoaAdditionalInputsComponent}],\r\n})\r\nexport class ConfigMscoaAdditionalInputsComponent implements OnInit, MatFormFieldControl<ConfiguredMscoaInput[]> {\r\n\r\n static nextId = 0;\r\n stateChanges = new Subject<void>();\r\n \r\n @HostBinding() id = `app-config-mscoa-additional-inputs-${ConfigMscoaAdditionalInputsComponent .nextId++}`;\r\n \r\n placeholder: string = ''\r\n constructor(@Optional() @Self() public ngControl: NgControl, private _elementRef: ElementRef<HTMLElement>,) { }\r\n focused: boolean = false;\r\n get empty() {\r\n return !this.value\r\n }\r\n get shouldLabelFloat() {\r\n return this.focused || !this.empty;\r\n }\r\n required: boolean = false;\r\n disabled: boolean = false;\r\n get errorState(): boolean {\r\n const hasError = !!this.ngControl?.control?.errors || (this.errors||[]).length > 0 && this.touched\r\n return !this.value && !!this.required || hasError\r\n }\r\n \r\n controlType?: string | undefined;\r\n autofilled?: boolean | undefined;\r\n userAriaDescribedBy?: string | undefined;\r\n disableAutomaticLabeling?: boolean | undefined;\r\n setDescribedByIds(ids: string[]) {\r\n // Ensure the component view is initialized\r\n if (this._elementRef && this._elementRef.nativeElement) {\r\n const controlElement = this._elementRef.nativeElement.querySelector('.app-config-mscoa-additional-inputs');\r\n // Check if the controlElement exists before attempting to set its attribute\r\n if (controlElement) {\r\n controlElement.setAttribute('aria-describedby', ids.join(' '));\r\n }\r\n }\r\n }\r\n onContainerClick(event: MouseEvent): void {\r\n this.markAsTouched();\r\n this.stateChanges.next();\r\n }\r\n \r\n touched: boolean = false;\r\n onTouched = () => {};\r\n markAsTouched() {\r\n console.log('markAsTouched') \r\n if (!this.touched) {\r\n this.onTouched();\r\n this.touched = true;\r\n }\r\n } \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n mscoaInitiated = false\r\n @Input() errors:IConfigElementError[] |undefined = [];\r\n @Input() set getMscoaTree(options$:Observable<IGetTreeResponse| undefined> ){\r\n if(!!options$ &&!this.mscoaInitiated){\r\n this.mscoaInitiated = true\r\n options$.pipe(\r\n take(1),\r\n tap((options) => {\r\n this.accountTreeKeys = options?.accountTreeKeys || []\r\n }),\r\n catchError((error) => {\r\n console.error('Error while fetching SCOA tree:', error);\r\n return [null];\r\n })\r\n ).subscribe();\r\n\r\n }\r\n }\r\n @Input() mapToData:FormColumnInputs | undefined = undefined;\r\n @Input() set value(val: ConfiguredMscoaInput[]) {\r\n this._value.next(val || []);\r\n }\r\n get value(): ConfiguredMscoaInput[] {\r\n return this._value.value;\r\n }\r\n _inputInEdit = new BehaviorSubject<ConfiguredMscoaInput|null>(null)\r\n inputInEdit:ConfiguredMscoaInput|undefined = undefined\r\n\r\n @Output() valueChanged = new EventEmitter<ConfiguredMscoaInput[]>();\r\n private _value = new BehaviorSubject<ConfiguredMscoaInput[]>([]);\r\n\r\n editingIndex: number | null = null;\r\n isAddingNew = false;\r\n accountTreeKeys: string[] = [];\r\n \r\n ngOnInit() {\r\n\r\n }\r\n hovered :null|number = null\r\n\r\n\r\n startAddNew() {\r\n this.isAddingNew = true;\r\n this.editingIndex = null;\r\n this.inputInEdit = undefined\r\n this.openElementEditor();\r\n }\r\n\r\n startEdit(index: number) {\r\n this.editingIndex = index;\r\n this.isAddingNew = false;\r\n this.inputInEdit = this.value[index]\r\n this.openElementEditor();\r\n }\r\n removeInput(index: number) {\r\n const updatedValue = this.value.filter((_, i) => i !== index);\r\n this._value.next(updatedValue);\r\n this.valueChanged.emit(updatedValue);\r\n }\r\n cancelEdit() {\r\n this.editingIndex = null;\r\n this.isAddingNew = false;\r\n }\r\n\r\n saveSegment() {\r\n // if (this.segmentForm.valid) {\r\n // const newSegment = ({\r\n // segment:this.segmentForm.value.segment,\r\n // label:this.toTitleCase(this.segmentForm.value.segment),\r\n // }) as IIncludedSegmentConfig;\r\n // const updatedValue = [...this.value];\r\n\r\n // if (this.isAddingNew) {\r\n // updatedValue.push(newSegment);\r\n // } else if (this.editingIndex !== null) {\r\n // updatedValue[this.editingIndex] = newSegment;\r\n // }\r\n\r\n \r\n // this._value.next(updatedValue);\r\n // this.valueChanged.emit(updatedValue);\r\n // this.cancelEdit();\r\n // }\r\n }\r\n hoveredIndex:number|null = null\r\n removeSegment(index: number) {\r\n const updatedValue = this.value.filter((_, i) => i !== index);\r\n this._value.next(updatedValue);\r\n this.valueChanged.emit(updatedValue);\r\n }\r\n parentId:string|undefined \r\n async openElementEditor() {\r\n\r\n this.openFormDialog()\r\n }\r\n inputSegmentChanged($event:any,i:number){\r\n if($event.detail.value === 'None'&&this.value[i] !== undefined){\r\n this.value[i]!.segment = undefined as any\r\n }else if(this.value[i] !== undefined){\r\n this.value[i]!.segment = $event.detail.value\r\n }\r\n this.valueChanged.emit(this.value)\r\n }\r\nreadonly dialog = inject(MatDialog);\r\nopenFormDialog() {\r\n // const dialogRef = this.dialog.open(FormElementModalEditorComponent,{\r\n // maxHeight:'95vh',\r\n // panelClass:'form-element-modal-editor',\r\n // data:{\r\n // inputInEdit:this.inputInEdit\r\n // }\r\n // });\r\n\r\n // dialogRef.afterClosed().pipe(take(1)).subscribe(result => {\r\n // const {input,action} = result\r\n // if(action === 'add'){\r\n // this.value.push(input)\r\n // this.valueChanged.emit(this.value)\r\n // }\r\n // if(action === 'edit'&& this.editingIndex !== null){\r\n // this.value[this.editingIndex] = input\r\n // this.valueChanged.emit(this.value)\r\n // }\r\n // this.cancelEdit()\r\n // });\r\n}\r\nget limitInputTo(){\r\n return [...this.accountTreeKeys.map((key) => ({\r\n value: key,\r\n label: key,\r\n })),{\r\n value:undefined,\r\n label:'None'\r\n }]\r\n}\r\n\r\n}\r\n"],"names":["i4","i5","i6","i7","i8"],"mappings":";;;;;;;;;;;;;;;;;;;IAuBM,EAAsC,CAAA,cAAA,CAAA,CAAA,EAAA,YAAA,EAAA,CAAA,CAAA;IAAA,EAAiB,CAAA,MAAA,CAAA,CAAA,CAAA;IAAA,EAAa,CAAA,YAAA,EAAA;;;IAAvD,EAAuB,CAAA,UAAA,CAAA,OAAA,EAAA,UAAA,CAAA,KAAA,CAAA;IAAE,EAAiB,CAAA,SAAA,EAAA;IAAjB,EAAiB,CAAA,iBAAA,CAAA,UAAA,CAAA,KAAA,CAAA;;;;IAjB3D,EAIkG,CAAA,cAAA,CAAA,CAAA,EAAA,gBAAA,EAAA,CAAA,CAAA;IADlG,EAFA,CAAA,UAAA,CAAA,WAAA,EAAA,SAAA,6GAAA,GAAA,EAAA,MAAA,IAAA,GAAA,EAAA,CAAA,aAAA,CAAA,GAAA,CAAA,CAAA,KAAA,CAAA,CAAA,MAAA,MAAA,GAAA,EAAA,CAAA,aAAA,CAAA,CAAA,CAAA,CAAA,CAAA,OAAA,EAAA,CAAA,WAAA,CAAA,MAAA,CAAA,OAAA,GAAA,IAAA,CAAA,CAAA,EAAA,CAAyB,CAED,YAAA,EAAA,SAAA,8GAAA,GAAA,EAAA,EAAA,CAAA,aAAA,CAAA,GAAA,CAAA,CAAA,CAAA,MAAA,MAAA,GAAA,EAAA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optional, Self, Output, Input, HostBinding } from '@angular/core';
|
|
3
|
-
import { Subject, BehaviorSubject, take, tap } from 'rxjs';
|
|
4
|
-
import * as i2 from '@angular/common';
|
|
5
|
-
import { CommonModule } from '@angular/common';
|
|
6
|
-
import { M as MatModulesModule } from './ngx-t-forms-ngx-t-forms-DaAFB-HX.mjs';
|
|
7
|
-
import { map } from 'rxjs/operators';
|
|
8
|
-
import { g as getInputIllustration } from './ngx-t-forms-getInputIllustration-GCSKx5e5.mjs';
|
|
9
|
-
import { MatFormFieldControl } from '@angular/material/form-field';
|
|
10
|
-
import * as i1 from '@angular/forms';
|
|
11
|
-
import * as i4 from '@angular/material/divider';
|
|
12
|
-
import * as i3 from '@angular/material/core';
|
|
13
|
-
import * as i6 from '@angular/material/icon';
|
|
14
|
-
import * as i6$1 from '@angular/material/list';
|
|
15
|
-
import * as i8 from '@angular/material/tooltip';
|
|
16
|
-
|
|
17
|
-
const _forTrack0 = ($index, $item) => $item.id;
|
|
18
|
-
function FormInputSelectorComponent_For_2_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
19
|
-
i0.ɵɵelementStart(0, "span", 7);
|
|
20
|
-
i0.ɵɵtext(1, " Item List Input ");
|
|
21
|
-
i0.ɵɵelementEnd();
|
|
22
|
-
} }
|
|
23
|
-
function FormInputSelectorComponent_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
24
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
|
25
|
-
i0.ɵɵelementStart(0, "mat-list-item", 1);
|
|
26
|
-
i0.ɵɵlistener("click", function FormInputSelectorComponent_For_2_Template_mat_list_item_click_0_listener() { const input_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.selectInput(input_r2.id)); });
|
|
27
|
-
i0.ɵɵelement(1, "img", 2);
|
|
28
|
-
i0.ɵɵelementStart(2, "span", 3);
|
|
29
|
-
i0.ɵɵtext(3);
|
|
30
|
-
i0.ɵɵelementEnd();
|
|
31
|
-
i0.ɵɵtemplate(4, FormInputSelectorComponent_For_2_span_4_Template, 2, 0, "span", 4);
|
|
32
|
-
i0.ɵɵelementStart(5, "span", 5)(6, "mat-icon", 6);
|
|
33
|
-
i0.ɵɵtext(7);
|
|
34
|
-
i0.ɵɵelementEnd()()();
|
|
35
|
-
i0.ɵɵelement(8, "mat-divider");
|
|
36
|
-
} if (rf & 2) {
|
|
37
|
-
const input_r2 = ctx.$implicit;
|
|
38
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
39
|
-
i0.ɵɵproperty("disabled", ctx_r2.disabled)("activated", input_r2.selected);
|
|
40
|
-
i0.ɵɵadvance();
|
|
41
|
-
i0.ɵɵproperty("src", input_r2.illustration, i0.ɵɵsanitizeUrl)("alt", input_r2.label);
|
|
42
|
-
i0.ɵɵadvance(2);
|
|
43
|
-
i0.ɵɵtextInterpolate1(" ", input_r2.label, " ");
|
|
44
|
-
i0.ɵɵadvance();
|
|
45
|
-
i0.ɵɵproperty("ngIf", input_r2.multipleInputInEditId);
|
|
46
|
-
i0.ɵɵadvance(2);
|
|
47
|
-
i0.ɵɵproperty("color", input_r2.selected ? "primary" : "");
|
|
48
|
-
i0.ɵɵadvance();
|
|
49
|
-
i0.ɵɵtextInterpolate1(" ", input_r2.selected ? "check_circle" : "radio_button_unchecked", " ");
|
|
50
|
-
} }
|
|
51
|
-
function FormInputSelectorComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
52
|
-
i0.ɵɵelementStart(0, "mat-list-item")(1, "span", 8);
|
|
53
|
-
i0.ɵɵtext(2, " No form inputs found ");
|
|
54
|
-
i0.ɵɵelementEnd()();
|
|
55
|
-
} }
|
|
56
|
-
class FormInputSelectorComponent {
|
|
57
|
-
static { this.nextId = 0; }
|
|
58
|
-
constructor(ngControl, _elementRef) {
|
|
59
|
-
this.ngControl = ngControl;
|
|
60
|
-
this._elementRef = _elementRef;
|
|
61
|
-
this.stateChanges = new Subject();
|
|
62
|
-
this.errors = [];
|
|
63
|
-
this.id = `lib-form-input-selector-${FormInputSelectorComponent.nextId++}`;
|
|
64
|
-
this.placeholder = '';
|
|
65
|
-
this.focused = false;
|
|
66
|
-
this.required = false;
|
|
67
|
-
this.touched = false;
|
|
68
|
-
this.onTouched = () => { };
|
|
69
|
-
this._value = new BehaviorSubject(undefined);
|
|
70
|
-
this.formInputs = [];
|
|
71
|
-
this.disabled = false;
|
|
72
|
-
this.change = new EventEmitter();
|
|
73
|
-
}
|
|
74
|
-
get empty() {
|
|
75
|
-
return !this.value;
|
|
76
|
-
}
|
|
77
|
-
get shouldLabelFloat() {
|
|
78
|
-
return this.focused || !this.empty;
|
|
79
|
-
}
|
|
80
|
-
get errorState() {
|
|
81
|
-
const hasError = !!this.ngControl?.control?.errors || (this.errors || []).length > 0 && this.touched;
|
|
82
|
-
return !this.value && !!this.required || hasError;
|
|
83
|
-
}
|
|
84
|
-
setDescribedByIds(ids) {
|
|
85
|
-
// Ensure the component view is initialized
|
|
86
|
-
if (this._elementRef && this._elementRef.nativeElement) {
|
|
87
|
-
const controlElement = this._elementRef.nativeElement.querySelector('.lib-form-input-selector');
|
|
88
|
-
// Check if the controlElement exists before attempting to set its attribute
|
|
89
|
-
if (controlElement) {
|
|
90
|
-
controlElement.setAttribute('aria-describedby', ids.join(' '));
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
onContainerClick(event) {
|
|
95
|
-
this.markAsTouched();
|
|
96
|
-
this.stateChanges.next();
|
|
97
|
-
}
|
|
98
|
-
markAsTouched() {
|
|
99
|
-
console.log('markAsTouched');
|
|
100
|
-
if (!this.touched) {
|
|
101
|
-
this.onTouched();
|
|
102
|
-
this.touched = true;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
set value(value) {
|
|
106
|
-
if (this._value.getValue() === value) {
|
|
107
|
-
return;
|
|
108
|
-
}
|
|
109
|
-
this._value.next(value);
|
|
110
|
-
}
|
|
111
|
-
get value() {
|
|
112
|
-
return this._value.getValue();
|
|
113
|
-
}
|
|
114
|
-
get value$() {
|
|
115
|
-
return this._value.asObservable();
|
|
116
|
-
}
|
|
117
|
-
selectInput(id) {
|
|
118
|
-
this.value$.pipe(take(1), tap((value) => {
|
|
119
|
-
if (value === id) {
|
|
120
|
-
this.change.emit(undefined);
|
|
121
|
-
return;
|
|
122
|
-
}
|
|
123
|
-
this.change.emit(id);
|
|
124
|
-
})).subscribe();
|
|
125
|
-
}
|
|
126
|
-
get filteredInputs$() {
|
|
127
|
-
return this.value$.pipe(map((value) => {
|
|
128
|
-
const inputs = () => {
|
|
129
|
-
const selectedInput = this.formInputs.find((input) => input.id === value);
|
|
130
|
-
if (selectedInput) {
|
|
131
|
-
return [{ ...selectedInput, selected: true, illustration: this.getInputIllustration(selectedInput) }];
|
|
132
|
-
}
|
|
133
|
-
return this.formInputs.map(input => ({ ...input, selected: false, illustration: this.getInputIllustration(input) }));
|
|
134
|
-
};
|
|
135
|
-
return inputs().map((input) => {
|
|
136
|
-
return {
|
|
137
|
-
...input,
|
|
138
|
-
illustration: this.getInputIllustration(input)
|
|
139
|
-
};
|
|
140
|
-
});
|
|
141
|
-
}));
|
|
142
|
-
}
|
|
143
|
-
getInputIllustration(input) {
|
|
144
|
-
return getInputIllustration(input.element);
|
|
145
|
-
}
|
|
146
|
-
static { this.ɵfac = function FormInputSelectorComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FormInputSelectorComponent)(i0.ɵɵdirectiveInject(i1.NgControl, 10), i0.ɵɵdirectiveInject(i0.ElementRef)); }; }
|
|
147
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormInputSelectorComponent, selectors: [["lib-form-input-selector"]], hostVars: 1, hostBindings: function FormInputSelectorComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
148
|
-
i0.ɵɵhostProperty("id", ctx.id);
|
|
149
|
-
} }, inputs: { errors: "errors", value: "value", formInputs: "formInputs", disabled: "disabled" }, outputs: { change: "change" }, features: [i0.ɵɵProvidersFeature([{ provide: MatFormFieldControl, useExisting: FormInputSelectorComponent }])], decls: 6, vars: 5, consts: [[1, "inputList"], ["matRipple", "", "matTooltip", "Select form input", 3, "click", "disabled", "activated"], ["matListItemAvatar", "", 2, "margin-left", "8px", 3, "src", "alt"], ["matListItemTitle", ""], ["matListItemLine", "", 4, "ngIf"], ["matListItemMeta", ""], [3, "color"], ["matListItemLine", ""], ["matLine", ""]], template: function FormInputSelectorComponent_Template(rf, ctx) { if (rf & 1) {
|
|
150
|
-
i0.ɵɵelementStart(0, "mat-nav-list", 0);
|
|
151
|
-
i0.ɵɵrepeaterCreate(1, FormInputSelectorComponent_For_2_Template, 9, 8, null, null, _forTrack0);
|
|
152
|
-
i0.ɵɵpipe(3, "async");
|
|
153
|
-
i0.ɵɵtemplate(4, FormInputSelectorComponent_Conditional_4_Template, 3, 0, "mat-list-item");
|
|
154
|
-
i0.ɵɵpipe(5, "async");
|
|
155
|
-
i0.ɵɵelementEnd();
|
|
156
|
-
} if (rf & 2) {
|
|
157
|
-
let tmp_1_0;
|
|
158
|
-
i0.ɵɵadvance();
|
|
159
|
-
i0.ɵɵrepeater(i0.ɵɵpipeBind1(3, 1, ctx.filteredInputs$));
|
|
160
|
-
i0.ɵɵadvance(3);
|
|
161
|
-
i0.ɵɵconditional(((tmp_1_0 = i0.ɵɵpipeBind1(5, 3, ctx.filteredInputs$)) == null ? null : tmp_1_0.length) === 0 ? 4 : -1);
|
|
162
|
-
} }, dependencies: [CommonModule, i2.NgIf, i2.AsyncPipe, MatModulesModule, i4.MatDivider, i3.MatLine, i6.MatIcon, i6$1.MatNavList, i6$1.MatListItem, i6$1.MatListItemAvatar, i6$1.MatListItemLine, i6$1.MatListItemTitle, i6$1.MatListItemMeta, i3.MatRipple, i8.MatTooltip], styles: ["mat-nav-list[_ngcontent-%COMP%]{max-height:600px;overflow:auto}"] }); }
|
|
163
|
-
}
|
|
164
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormInputSelectorComponent, [{
|
|
165
|
-
type: Component,
|
|
166
|
-
args: [{ selector: 'lib-form-input-selector', standalone: true, imports: [CommonModule, MatModulesModule], providers: [{ provide: MatFormFieldControl, useExisting: FormInputSelectorComponent }], template: "\r\n\r\n <mat-nav-list class=\"inputList\"> \r\n @for(input of filteredInputs$|async;track input.id){\r\n <mat-list-item \r\n [disabled]=\"disabled\"\r\n (click)=\"selectInput(input.id)\" \r\n [activated]=\"input.selected\"\r\n matRipple matTooltip=\"Select form input\">\r\n <img matListItemAvatar \r\n style=\"margin-left: 8px;\" [src]=\"input.illustration \"\r\n [alt]=\"input.label\">\r\n \r\n <span matListItemTitle >\r\n {{ input.label}}\r\n </span>\r\n <span *ngIf=\"input.multipleInputInEditId\" matListItemLine>\r\n Item List Input\r\n </span>\r\n <span matListItemMeta>\r\n <mat-icon [color]=\"input.selected?'primary':''\">\r\n \r\n {{input.selected?'check_circle':'radio_button_unchecked'}}\r\n \r\n </mat-icon>\r\n </span>\r\n \r\n </mat-list-item>\r\n <mat-divider></mat-divider>\r\n }\r\n @if((filteredInputs$|async)?.length===0){\r\n <mat-list-item>\r\n <span matLine>\r\n No form inputs found\r\n </span>\r\n </mat-list-item>\r\n }\r\n </mat-nav-list>\r\n\r\n", styles: ["mat-nav-list{max-height:600px;overflow:auto}\n"] }]
|
|
167
|
-
}], () => [{ type: i1.NgControl, decorators: [{
|
|
168
|
-
type: Optional
|
|
169
|
-
}, {
|
|
170
|
-
type: Self
|
|
171
|
-
}] }, { type: i0.ElementRef }], { errors: [{
|
|
172
|
-
type: Input
|
|
173
|
-
}], id: [{
|
|
174
|
-
type: HostBinding
|
|
175
|
-
}], value: [{
|
|
176
|
-
type: Input
|
|
177
|
-
}], formInputs: [{
|
|
178
|
-
type: Input
|
|
179
|
-
}], disabled: [{
|
|
180
|
-
type: Input
|
|
181
|
-
}], change: [{
|
|
182
|
-
type: Output
|
|
183
|
-
}] }); })();
|
|
184
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FormInputSelectorComponent, { className: "FormInputSelectorComponent", filePath: "lib/components/t-dynamic-data-edit/elements/form-input-selector/form-input-selector.component.ts", lineNumber: 24 }); })();
|
|
185
|
-
|
|
186
|
-
export { FormInputSelectorComponent };
|
|
187
|
-
//# sourceMappingURL=ngx-t-forms-form-input-selector.component-BjwzDiCY.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-t-forms-form-input-selector.component-BjwzDiCY.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/form-input-selector/form-input-selector.component.html","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/form-input-selector/form-input-selector.component.ts"],"sourcesContent":["\r\n\r\n <mat-nav-list class=\"inputList\"> \r\n @for(input of filteredInputs$|async;track input.id){\r\n <mat-list-item \r\n [disabled]=\"disabled\"\r\n (click)=\"selectInput(input.id)\" \r\n [activated]=\"input.selected\"\r\n matRipple matTooltip=\"Select form input\">\r\n <img matListItemAvatar \r\n style=\"margin-left: 8px;\" [src]=\"input.illustration \"\r\n [alt]=\"input.label\">\r\n \r\n <span matListItemTitle >\r\n {{ input.label}}\r\n </span>\r\n <span *ngIf=\"input.multipleInputInEditId\" matListItemLine>\r\n Item List Input\r\n </span>\r\n <span matListItemMeta>\r\n <mat-icon [color]=\"input.selected?'primary':''\">\r\n \r\n {{input.selected?'check_circle':'radio_button_unchecked'}}\r\n \r\n </mat-icon>\r\n </span>\r\n \r\n </mat-list-item>\r\n <mat-divider></mat-divider>\r\n }\r\n @if((filteredInputs$|async)?.length===0){\r\n <mat-list-item>\r\n <span matLine>\r\n No form inputs found\r\n </span>\r\n </mat-list-item>\r\n }\r\n </mat-nav-list>\r\n\r\n","import { Component, ElementRef, EventEmitter, HostBinding, Input, Optional, Output, Self } from '@angular/core';\r\nimport { FormColumnInputs } from 'ngx-t-forms-types';\r\nimport { BehaviorSubject, Observable, Subject, take, tap } from 'rxjs';\r\nimport { CommonModule } from '@angular/common';\r\nimport { MatModulesModule } from '../../../../shared/modules/mat-modules.module';\r\nimport { map } from 'rxjs/operators';\r\nimport { getInputIllustration } from '../../../../shared/functions/getInputIllustration';\r\nimport { MatFormFieldControl } from '@angular/material/form-field';\r\nimport { NgControl } from '@angular/forms';\r\nimport { IConfigElementError } from '../../t-dynamic-data-edit.component';\r\n\r\ninterface IFormColumnUiList extends FormColumnInputs {\r\n selected: boolean,\r\n illustration: string\r\n}\r\n@Component({\r\n selector: 'lib-form-input-selector',\r\n standalone: true,\r\n imports: [CommonModule, MatModulesModule],\r\n templateUrl: './form-input-selector.component.html',\r\n styleUrl: './form-input-selector.component.css',\r\n providers: [{ provide: MatFormFieldControl, useExisting: FormInputSelectorComponent }],\r\n})\r\nexport class FormInputSelectorComponent implements MatFormFieldControl<string | undefined> {\r\n\r\n static nextId = 0;\r\n stateChanges = new Subject<void>();\r\n @Input() errors:IConfigElementError[] |undefined = [];\r\n @HostBinding() id = `lib-form-input-selector-${FormInputSelectorComponent .nextId++}`;\r\n \r\n placeholder: string = ''\r\n constructor(@Optional() @Self() public ngControl: NgControl, private _elementRef: ElementRef<HTMLElement>,) { }\r\n focused: boolean = false;\r\n get empty() {\r\n return !this.value\r\n }\r\n get shouldLabelFloat() {\r\n return this.focused || !this.empty;\r\n }\r\n required: boolean = false;\r\nget errorState(): boolean {\r\n const hasError = !!this.ngControl?.control?.errors || (this.errors||[]).length > 0 && this.touched\r\n return !this.value && !!this.required || hasError\r\n }\r\n\r\n controlType?: string | undefined;\r\n autofilled?: boolean | undefined;\r\n userAriaDescribedBy?: string | undefined;\r\n disableAutomaticLabeling?: boolean | undefined;\r\n setDescribedByIds(ids: string[]) {\r\n // Ensure the component view is initialized\r\n if (this._elementRef && this._elementRef.nativeElement) {\r\n const controlElement = this._elementRef.nativeElement.querySelector('.lib-form-input-selector');\r\n // Check if the controlElement exists before attempting to set its attribute\r\n if (controlElement) {\r\n controlElement.setAttribute('aria-describedby', ids.join(' '));\r\n }\r\n }\r\n }\r\n onContainerClick(event: MouseEvent): void {\r\n this.markAsTouched();\r\n this.stateChanges.next();\r\n }\r\n\r\n touched: boolean = false;\r\n onTouched = () => {};\r\n markAsTouched() {\r\n console.log('markAsTouched') \r\n if (!this.touched) {\r\n this.onTouched();\r\n this.touched = true;\r\n }\r\n } \r\n\r\n\r\n\r\n\r\n _value = new BehaviorSubject<string | undefined>(undefined)\r\n @Input() set value(value: string | undefined) {\r\n if (this._value.getValue() === value) {\r\n return\r\n }\r\n this._value.next(value)\r\n }\r\n get value() {\r\n return this._value.getValue()\r\n }\r\n get value$() {\r\n return this._value.asObservable()\r\n\r\n }\r\n @Input() formInputs: Array<FormColumnInputs> = []\r\n @Input() disabled: boolean = false\r\n @Output() change = new EventEmitter<any>()\r\n selectInput(id: string) {\r\n this.value$.pipe(\r\n take(1),\r\n tap((value) => {\r\n if (value === id) {\r\n this.change.emit(undefined)\r\n return;\r\n }\r\n this.change.emit(id)\r\n })\r\n ).subscribe()\r\n\r\n }\r\n get filteredInputs$():Observable<Array<IFormColumnUiList>> {\r\n return this.value$.pipe(\r\n map((value: string | undefined) => {\r\n const inputs = () => {\r\n const selectedInput = this.formInputs.find((input) => input.id === value)\r\n if (selectedInput) {\r\n return [{ ...selectedInput, selected: true , illustration: this.getInputIllustration(selectedInput) }]\r\n }\r\n return this.formInputs.map(input => ({ ...input, selected: false, illustration: this.getInputIllustration(input) }))\r\n }\r\n return inputs().map(\r\n (input) => {\r\n return {\r\n ...input,\r\n illustration: this.getInputIllustration(input)\r\n }\r\n\r\n })}\r\n\r\n )\r\n )\r\n }\r\n getInputIllustration(input: FormColumnInputs) {\r\n return getInputIllustration(input.element)\r\n }\r\n}\r\n"],"names":["i3","i4","i5","i6","i7"],"mappings":";;;;;;;;;;;;;;;;;;IAgBgB,EAA0D,CAAA,cAAA,CAAA,CAAA,EAAA,MAAA,EAAA,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EAAAA,IAAA,CAAA,gBAAA,EAAAA,IAAA,CAAA,eAAA,EAAAF,EAAA,CAAA,SAAA,EAAAG,EAAA,CAAA,UAAA,CAAA,EAAA,MAAA,EAAA,CAAA,iEAAA,CAAA,EAAA,CAAA,CAAA;;iFAK7B,0BAA0B,EAAA,CAAA;cARtC,SAAS;AACE,QAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,yBAAyB,cACvB,IAAI,EAAA,OAAA,EACP,CAAC,YAAY,EAAE,gBAAgB,CAAC,EAAA,SAAA,EAG7B,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAA,0BAA4B,EAAE,CAAC,EAAA,QAAA,EAAA,m7CAAA,EAAA,MAAA,EAAA,CAAA,gDAAA,CAAA,EAAA;;sBAU1E;;sBAAY;8CAJd,MAAM,EAAA,CAAA;kBAAd;YACY,EAAE,EAAA,CAAA;kBAAhB;YAkDY,KAAK,EAAA,CAAA;kBAAjB;YAaQ,UAAU,EAAA,CAAA;kBAAlB;YACQ,QAAQ,EAAA,CAAA;kBAAhB;YACS,MAAM,EAAA,CAAA;kBAAf;;kFAtEU,0BAA0B,EAAA,EAAA,SAAA,EAAA,4BAAA,EAAA,QAAA,EAAA,kGAAA,EAAA,UAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;;;"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component } from '@angular/core';
|
|
3
|
-
import * as i2 from '@angular/common';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
|
-
import { F as FormsStoreService, M as MatModulesModule, b as TDynamicDataViewComponent } from './ngx-t-forms-ngx-t-forms-DaAFB-HX.mjs';
|
|
6
|
-
import { map } from 'rxjs';
|
|
7
|
-
|
|
8
|
-
class FormJsonViewComponent {
|
|
9
|
-
constructor(store) {
|
|
10
|
-
this.store = store;
|
|
11
|
-
this.form$ = this.store.selectors.selectFormInEdit$.pipe(map(form => form?.form));
|
|
12
|
-
}
|
|
13
|
-
static { this.ɵfac = function FormJsonViewComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FormJsonViewComponent)(i0.ɵɵdirectiveInject(FormsStoreService)); }; }
|
|
14
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormJsonViewComponent, selectors: [["app-form-json-view"]], decls: 2, vars: 3, consts: [[3, "data"]], template: function FormJsonViewComponent_Template(rf, ctx) { if (rf & 1) {
|
|
15
|
-
i0.ɵɵelement(0, "lib-t-dynamic-data-view", 0);
|
|
16
|
-
i0.ɵɵpipe(1, "async");
|
|
17
|
-
} if (rf & 2) {
|
|
18
|
-
i0.ɵɵproperty("data", i0.ɵɵpipeBind1(1, 1, ctx.form$));
|
|
19
|
-
} }, dependencies: [CommonModule, i2.AsyncPipe, MatModulesModule, TDynamicDataViewComponent], styles: ["pre[_ngcontent-%COMP%]{margin:0;border:1px solid #ccc;background-color:#353535;padding:10px}code[_ngcontent-%COMP%]{color:#b0e0e6;font-size:14px}.token.punctuation[_ngcontent-%COMP%]{color:#999}.token.property[_ngcontent-%COMP%]{color:#905}.token.string[_ngcontent-%COMP%]{color:#690}.token.number[_ngcontent-%COMP%], .token.boolean[_ngcontent-%COMP%]{color:#905}.token.keyword[_ngcontent-%COMP%]{color:#07a}"] }); }
|
|
20
|
-
}
|
|
21
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormJsonViewComponent, [{
|
|
22
|
-
type: Component,
|
|
23
|
-
args: [{ selector: 'app-form-json-view', standalone: true, imports: [CommonModule, MatModulesModule, TDynamicDataViewComponent], template: "\r\n<lib-t-dynamic-data-view [data]=\"form$|async\"></lib-t-dynamic-data-view>", styles: ["pre{margin:0;border:1px solid #ccc;background-color:#353535;padding:10px}code{color:#b0e0e6;font-size:14px}.token.punctuation{color:#999}.token.property{color:#905}.token.string{color:#690}.token.number,.token.boolean{color:#905}.token.keyword{color:#07a}\n"] }]
|
|
24
|
-
}], () => [{ type: FormsStoreService }], null); })();
|
|
25
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FormJsonViewComponent, { className: "FormJsonViewComponent", filePath: "lib/components/form-builder/elements/form-json-view/form-json-view.component.ts", lineNumber: 20 }); })();
|
|
26
|
-
|
|
27
|
-
export { FormJsonViewComponent };
|
|
28
|
-
//# sourceMappingURL=ngx-t-forms-form-json-view.component-CqtTYCRH.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-t-forms-form-json-view.component-CqtTYCRH.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/form-json-view/form-json-view.component.ts","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/form-json-view/form-json-view.component.html"],"sourcesContent":["import { Component } from '@angular/core';\r\n\r\nimport { CommonModule } from '@angular/common';\r\nimport { MatModulesModule } from '../../../../shared/modules/mat-modules.module';\r\n\r\nimport { FormsStoreService } from '../../../forms/store/forms-store.service';\r\nimport { TDynamicDataViewComponent } from '../../../t-dynamic-data-view/t-dynamic-data-view.component';\r\n\r\nimport { map } from 'rxjs';\r\n\r\n\r\n\r\n@Component({\r\n selector: 'app-form-json-view',\r\n standalone: true,\r\n imports: [CommonModule, MatModulesModule, TDynamicDataViewComponent],\r\n templateUrl: './form-json-view.component.html',\r\n styleUrl: './form-json-view.component.scss',\r\n})\r\nexport class FormJsonViewComponent {\r\n\r\n form$ = this.store.selectors.selectFormInEdit$.pipe(\r\n map(form => form?.form)\r\n )\r\n constructor(private store: FormsStoreService) {\r\n \r\n }\r\n\r\n\r\n}\r\n","\r\n<lib-t-dynamic-data-view [data]=\"form$|async\"></lib-t-dynamic-data-view>"],"names":["i1.FormsStoreService"],"mappings":";;;;;;;MAmBa,qBAAqB,CAAA;AAKhC,IAAA,WAAA,CAAoB,KAAwB,EAAA;QAAxB,IAAK,CAAA,KAAA,GAAL,KAAK;QAH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