ngx-t-forms 2.0.8 → 2.0.9
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-B9s7Hx-j.mjs → ngx-t-forms-api-value-access-rules.component-DjZDnTHz.mjs} +11 -11
- package/fesm2022/{ngx-t-forms-api-value-access-rules.component-B9s7Hx-j.mjs.map → ngx-t-forms-api-value-access-rules.component-DjZDnTHz.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-api-value-access-rules.component-Zg1ddSDb.mjs +813 -0
- package/fesm2022/ngx-t-forms-api-value-access-rules.component-Zg1ddSDb.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-calculated-field-rules.component-vhdr4NMu.mjs → ngx-t-forms-calculated-field-rules.component-E3l7DQo7.mjs} +11 -11
- package/fesm2022/{ngx-t-forms-calculated-field-rules.component-vhdr4NMu.mjs.map → ngx-t-forms-calculated-field-rules.component-E3l7DQo7.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-ZepKycLR.mjs +532 -0
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-ZepKycLR.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-DLnB3R7t.mjs +297 -0
- package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-DLnB3R7t.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-Br3EWLav.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-sOC54w4T.mjs} +9 -9
- package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-Br3EWLav.mjs.map → ngx-t-forms-config-mscoa-additional-inputs.component-sOC54w4T.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-form-input-selector.component-BjwzDiCY.mjs +187 -0
- package/fesm2022/ngx-t-forms-form-input-selector.component-BjwzDiCY.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-form-input-selector.component-CR3ZVWLw.mjs → ngx-t-forms-form-input-selector.component-CB03sPjA.mjs} +6 -6
- package/fesm2022/{ngx-t-forms-form-input-selector.component-CR3ZVWLw.mjs.map → ngx-t-forms-form-input-selector.component-CB03sPjA.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-form-json-view.component-CMdtaqhR.mjs → ngx-t-forms-form-json-view.component-C1AZujJH.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-form-json-view.component-CMdtaqhR.mjs.map → ngx-t-forms-form-json-view.component-C1AZujJH.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-form-json-view.component-CqtTYCRH.mjs +28 -0
- package/fesm2022/ngx-t-forms-form-json-view.component-CqtTYCRH.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-form-section-stepper.component-Ba5WCLzp.mjs +673 -0
- package/fesm2022/ngx-t-forms-form-section-stepper.component-Ba5WCLzp.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-form-section-stepper.component-C_dciQhe.mjs +225 -0
- package/fesm2022/ngx-t-forms-form-section-stepper.component-C_dciQhe.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-forms-builder-menu.component-pWNcCGY8.mjs → ngx-t-forms-forms-builder-menu.component-CPIcPREp.mjs} +10 -10
- package/fesm2022/{ngx-t-forms-forms-builder-menu.component-pWNcCGY8.mjs.map → ngx-t-forms-forms-builder-menu.component-CPIcPREp.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-forms-builder-menu.component-DbxEBvpt.mjs +735 -0
- package/fesm2022/ngx-t-forms-forms-builder-menu.component-DbxEBvpt.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-input-editor.component-BnsC-jsN.mjs +445 -0
- package/fesm2022/ngx-t-forms-input-editor.component-BnsC-jsN.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-input-editor.component-_ER-4SAR.mjs → ngx-t-forms-input-editor.component-__grERM8.mjs} +5 -5
- package/fesm2022/{ngx-t-forms-input-editor.component-_ER-4SAR.mjs.map → ngx-t-forms-input-editor.component-__grERM8.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-DS6s98ZX.mjs +111 -0
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-DS6s98ZX.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-Bq0rr62p.mjs → ngx-t-forms-mat-chip-list-editor.component-DcdHYqhN.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-Bq0rr62p.mjs.map → ngx-t-forms-mat-chip-list-editor.component-DcdHYqhN.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-mat-slider-editor.component-BOT4I9Wg.mjs → ngx-t-forms-mat-slider-editor.component-C9rintm4.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-mat-slider-editor.component-BOT4I9Wg.mjs.map → ngx-t-forms-mat-slider-editor.component-C9rintm4.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-mat-slider-editor.component-ChiiJYK2.mjs +130 -0
- package/fesm2022/ngx-t-forms-mat-slider-editor.component-ChiiJYK2.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-mat-slider-toggle-editor.component-CawhiguI.mjs → ngx-t-forms-mat-slider-toggle-editor.component-CItK6kXf.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-mat-slider-toggle-editor.component-CawhiguI.mjs.map → ngx-t-forms-mat-slider-toggle-editor.component-CItK6kXf.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-DFcLzkSF.mjs +171 -0
- package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-DFcLzkSF.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-missing-form-configs.component-DNkGCH0e.mjs +104 -0
- package/fesm2022/ngx-t-forms-missing-form-configs.component-DNkGCH0e.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-DEx_YKAi.mjs → ngx-t-forms-missing-form-configs.component-Da3SdUn6.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-DEx_YKAi.mjs.map → ngx-t-forms-missing-form-configs.component-Da3SdUn6.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-4hrEpLk3.mjs +258 -0
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-4hrEpLk3.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CrHAIRAw.mjs +455 -0
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CrHAIRAw.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-ngx-t-forms-R8Bkco8q.mjs → ngx-t-forms-ngx-t-forms-1Roar4qK.mjs} +630 -175
- package/fesm2022/ngx-t-forms-ngx-t-forms-1Roar4qK.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-ngx-t-forms-DaAFB-HX.mjs +14694 -0
- package/fesm2022/ngx-t-forms-ngx-t-forms-DaAFB-HX.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-pipeline-generator.component-CDCDamaQ.mjs → ngx-t-forms-pipeline-generator.component-BQDykLNH.mjs} +13 -13
- package/fesm2022/{ngx-t-forms-pipeline-generator.component-CDCDamaQ.mjs.map → ngx-t-forms-pipeline-generator.component-BQDykLNH.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-pipeline-generator.component-U0d8jQKW.mjs +1362 -0
- package/fesm2022/ngx-t-forms-pipeline-generator.component-U0d8jQKW.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-required-inputs.component-zHQPB3m_.mjs → ngx-t-forms-required-inputs.component-BGK3DNu0.mjs} +10 -10
- package/fesm2022/{ngx-t-forms-required-inputs.component-zHQPB3m_.mjs.map → ngx-t-forms-required-inputs.component-BGK3DNu0.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-required-inputs.component-S3cbA-zG.mjs +383 -0
- package/fesm2022/ngx-t-forms-required-inputs.component-S3cbA-zG.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-CKStotqz.mjs → ngx-t-forms-rest-api-call-setup.component-CCaRUSVQ.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-CKStotqz.mjs.map → ngx-t-forms-rest-api-call-setup.component-CCaRUSVQ.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-DDg4fCFx.mjs +457 -0
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-DDg4fCFx.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-section-report.component-Us4jxjhq.mjs → ngx-t-forms-section-report.component-C8Ja_G_3.mjs} +5 -5
- package/fesm2022/{ngx-t-forms-section-report.component-Us4jxjhq.mjs.map → ngx-t-forms-section-report.component-C8Ja_G_3.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-section-report.component-C_h0KIR4.mjs +314 -0
- package/fesm2022/ngx-t-forms-section-report.component-C_h0KIR4.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-selection-options-editor.component-CllhwZ5Y.mjs +231 -0
- package/fesm2022/ngx-t-forms-selection-options-editor.component-CllhwZ5Y.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-selection-options-editor.component-BwFboSq2.mjs → ngx-t-forms-selection-options-editor.component-cYkn1O48.mjs} +5 -5
- package/fesm2022/{ngx-t-forms-selection-options-editor.component-BwFboSq2.mjs.map → ngx-t-forms-selection-options-editor.component-cYkn1O48.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-validators-config.component-BPJZRtjT.mjs +434 -0
- package/fesm2022/ngx-t-forms-validators-config.component-BPJZRtjT.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-validators-config.component-CX0M2OH1.mjs → ngx-t-forms-validators-config.component-CGXCCl45.mjs} +7 -7
- package/fesm2022/{ngx-t-forms-validators-config.component-CX0M2OH1.mjs.map → ngx-t-forms-validators-config.component-CGXCCl45.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 +2 -0
- package/lib/components/form-builder/elements/form-submissions-config/form-submissions-config.component.d.ts +1 -1
- package/lib/components/form-builder/elements/input-element-editor/input-element-editor.component.d.ts +2 -2
- package/lib/components/forms/forms.component.d.ts +1 -1
- package/lib/components/forms/store/Form-actions-formBuilder.d.ts +1 -0
- package/lib/components/forms/store/Form-selectors-FormBuilder.d.ts +1 -1
- package/lib/components/forms/store/forms-store.service.d.ts +2 -1
- package/lib/components/index.d.ts +2 -1
- package/lib/components/t-dynamic-data-edit/elements/mscoa-segment-config/mscoa-segment-config.component.d.ts +5 -9
- package/lib/components/t-form-input/elements/mscoa-form-input/elements/account-value/account-value.component.d.ts +3 -3
- package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-chart/mscoa-chart.component.d.ts +67 -52
- package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-computation/mscoa-computation.component.d.ts +10 -10
- package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-reactive-form-field/mscoa-reactive-form-field.component.d.ts +8 -6
- package/lib/components/t-form-input/elements/mscoa-form-input/elements/scoa-account-table/scoa-account-table.component.d.ts +8 -8
- package/lib/components/t-form-input/elements/mscoa-form-input/elements/scoa-input/scoa-input.component.d.ts +1 -1
- package/lib/components/t-form-input/elements/mscoa-form-input/mscoa-form-input.component.d.ts +4 -3
- package/lib/components/t-form-input/elements/mscoa-form-input/store/mscoa-actions.d.ts +5 -5
- package/lib/components/t-form-input/elements/mscoa-form-input/store/mscoa-component-store.service.d.ts +27 -31
- package/lib/components/t-form-input/elements/mscoa-form-input/store/mscoa-effects.d.ts +2 -2
- package/lib/components/t-form-input/elements/mscoa-form-input/store/mscoa-selectors.d.ts +20 -24
- package/lib/components/t-form-input/elements/multiple-input-input-element/core/multiple-input-table-edit/multiple-input-table-edit.component.d.ts +1 -1
- package/lib/components/t-form-input/elements/select-input-element/elements/select-input/select-input.component.d.ts +20 -0
- package/lib/components/t-form-input/elements/select-input-element/select-input-element.component.d.ts +0 -3
- package/lib/components/t-form-input/t-form-input.component.d.ts +3 -2
- package/lib/components/workflow-builder/store/workflow-builder-store.service.d.ts +18 -0
- package/lib/components/workflow-builder/store/workflowEditorActions.d.ts +4 -0
- package/lib/components/workflow-builder/store/workflowEditorEffects.d.ts +2 -0
- package/lib/components/workflow-builder/store/workflowEditorSelectors.d.ts +2 -0
- package/lib/components/workflow-builder/workflow-builder.component.d.ts +12 -0
- package/lib/services/core/t-form-builder/functions/addScoaExtensionInput.d.ts +2 -0
- package/lib/services/core/t-form-tower-controller/functions/allFormInputs.d.ts +2 -3
- package/lib/services/core/t-form-tower-controller/functions/getAllFunctionTypes.d.ts +2 -0
- package/package.json +3 -2
- package/fesm2022/ngx-t-forms-form-section-stepper.component-DEtijO30.mjs +0 -220
- package/fesm2022/ngx-t-forms-form-section-stepper.component-DEtijO30.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CYWVyEYn.mjs +0 -230
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CYWVyEYn.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-ngx-t-forms-R8Bkco8q.mjs.map +0 -1
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, Component, Optional, Self, Output, Input, HostBinding } from '@angular/core';
|
|
3
|
+
import * as i2$1 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import * as i1 from '@angular/forms';
|
|
6
|
+
import { FormGroup, FormControl, Validators, ReactiveFormsModule } from '@angular/forms';
|
|
7
|
+
import { v4 } from 'uuid';
|
|
8
|
+
import _ from 'lodash';
|
|
9
|
+
import { M as MatModulesModule } from './ngx-t-forms-ngx-t-forms-DaAFB-HX.mjs';
|
|
10
|
+
import * as i3$1 from '@angular/material/form-field';
|
|
11
|
+
import { MatFormFieldControl } from '@angular/material/form-field';
|
|
12
|
+
import { Subject } from 'rxjs';
|
|
13
|
+
import * as i2 from '@angular/material/button';
|
|
14
|
+
import * as i3 from '@angular/material/card';
|
|
15
|
+
import * as i4 from '@angular/material/chips';
|
|
16
|
+
import * as i6 from '@angular/material/icon';
|
|
17
|
+
import * as i9 from '@angular/material/toolbar';
|
|
18
|
+
import * as i12 from '@angular/material/input';
|
|
19
|
+
|
|
20
|
+
const _c0 = () => [];
|
|
21
|
+
const _forTrack0 = ($index, $item) => $item.id;
|
|
22
|
+
function SelectionOptionsEditorComponent_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
23
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
24
|
+
i0.ɵɵelementStart(0, "mat-chip-option", 3);
|
|
25
|
+
i0.ɵɵlistener("removed", function SelectionOptionsEditorComponent_For_2_Template_mat_chip_option_removed_0_listener() { const option_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.remove(option_r2)); })("click", function SelectionOptionsEditorComponent_For_2_Template_mat_chip_option_click_0_listener() { const option_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView((ctx_r2.inEdit == null ? null : ctx_r2.inEdit.id) === (option_r2 == null ? null : option_r2.id) ? ctx_r2.inEdit = undefined : ctx_r2.inEdit = option_r2); });
|
|
26
|
+
i0.ɵɵtext(1);
|
|
27
|
+
i0.ɵɵelementStart(2, "button", 4)(3, "mat-icon");
|
|
28
|
+
i0.ɵɵtext(4, "cancel");
|
|
29
|
+
i0.ɵɵelementEnd()()();
|
|
30
|
+
} if (rf & 2) {
|
|
31
|
+
const option_r2 = ctx.$implicit;
|
|
32
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
33
|
+
i0.ɵɵproperty("value", option_r2 == null ? null : option_r2.value)("selected", (ctx_r2.inEdit == null ? null : ctx_r2.inEdit.id) === (option_r2 == null ? null : option_r2.id));
|
|
34
|
+
i0.ɵɵadvance();
|
|
35
|
+
i0.ɵɵtextInterpolate1("", option_r2 == null ? null : option_r2.label, " ");
|
|
36
|
+
i0.ɵɵadvance();
|
|
37
|
+
i0.ɵɵattribute("aria-label", "remove ");
|
|
38
|
+
} }
|
|
39
|
+
function SelectionOptionsEditorComponent_mat_toolbar_3_Template(rf, ctx) { if (rf & 1) {
|
|
40
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
41
|
+
i0.ɵɵelementStart(0, "mat-toolbar")(1, "button", 5);
|
|
42
|
+
i0.ɵɵlistener("click", function SelectionOptionsEditorComponent_mat_toolbar_3_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.add()); });
|
|
43
|
+
i0.ɵɵtext(2, " Add an option ");
|
|
44
|
+
i0.ɵɵelementStart(3, "mat-icon");
|
|
45
|
+
i0.ɵɵtext(4, "add");
|
|
46
|
+
i0.ɵɵelementEnd()()();
|
|
47
|
+
} }
|
|
48
|
+
function SelectionOptionsEditorComponent_mat_card_4_form_7_Template(rf, ctx) { if (rf & 1) {
|
|
49
|
+
i0.ɵɵelementStart(0, "form", 10)(1, "mat-form-field")(2, "mat-label");
|
|
50
|
+
i0.ɵɵtext(3, "label");
|
|
51
|
+
i0.ɵɵelementEnd();
|
|
52
|
+
i0.ɵɵelement(4, "input", 11);
|
|
53
|
+
i0.ɵɵelementStart(5, "mat-hint");
|
|
54
|
+
i0.ɵɵtext(6, "Label is required!");
|
|
55
|
+
i0.ɵɵelementEnd()();
|
|
56
|
+
i0.ɵɵelementStart(7, "mat-form-field")(8, "mat-label");
|
|
57
|
+
i0.ɵɵtext(9, "value");
|
|
58
|
+
i0.ɵɵelementEnd();
|
|
59
|
+
i0.ɵɵelement(10, "input", 12);
|
|
60
|
+
i0.ɵɵelementStart(11, "mat-hint");
|
|
61
|
+
i0.ɵɵtext(12, "value is required!");
|
|
62
|
+
i0.ɵɵelementEnd()()();
|
|
63
|
+
} if (rf & 2) {
|
|
64
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
65
|
+
i0.ɵɵproperty("formGroup", ctx_r2.form);
|
|
66
|
+
} }
|
|
67
|
+
function SelectionOptionsEditorComponent_mat_card_4_Template(rf, ctx) { if (rf & 1) {
|
|
68
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
69
|
+
i0.ɵɵelementStart(0, "mat-card")(1, "mat-card-header")(2, "mat-card-title");
|
|
70
|
+
i0.ɵɵtext(3, "Edit Option");
|
|
71
|
+
i0.ɵɵelementEnd();
|
|
72
|
+
i0.ɵɵelementStart(4, "mat-card-subtitle");
|
|
73
|
+
i0.ɵɵtext(5, "Modify Option Details");
|
|
74
|
+
i0.ɵɵelementEnd()();
|
|
75
|
+
i0.ɵɵelementStart(6, "mat-card-content", 6);
|
|
76
|
+
i0.ɵɵtemplate(7, SelectionOptionsEditorComponent_mat_card_4_form_7_Template, 13, 1, "form", 7);
|
|
77
|
+
i0.ɵɵelementEnd();
|
|
78
|
+
i0.ɵɵelementStart(8, "mat-card-actions")(9, "button", 8);
|
|
79
|
+
i0.ɵɵlistener("click", function SelectionOptionsEditorComponent_mat_card_4_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r5); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.closeEdit()); });
|
|
80
|
+
i0.ɵɵtext(10, "close");
|
|
81
|
+
i0.ɵɵelementEnd();
|
|
82
|
+
i0.ɵɵelementStart(11, "button", 9);
|
|
83
|
+
i0.ɵɵlistener("click", function SelectionOptionsEditorComponent_mat_card_4_Template_button_click_11_listener() { i0.ɵɵrestoreView(_r5); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.save()); });
|
|
84
|
+
i0.ɵɵtext(12, "Save");
|
|
85
|
+
i0.ɵɵelementEnd()()();
|
|
86
|
+
} if (rf & 2) {
|
|
87
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
88
|
+
i0.ɵɵadvance(7);
|
|
89
|
+
i0.ɵɵproperty("ngIf", !!ctx_r2.form);
|
|
90
|
+
i0.ɵɵadvance(4);
|
|
91
|
+
i0.ɵɵproperty("disabled", ctx_r2.form.invalid);
|
|
92
|
+
} }
|
|
93
|
+
class SelectionOptionsEditorComponent {
|
|
94
|
+
static { this.nextId = 0; }
|
|
95
|
+
constructor(ngControl, _elementRef) {
|
|
96
|
+
this.ngControl = ngControl;
|
|
97
|
+
this._elementRef = _elementRef;
|
|
98
|
+
this.stateChanges = new Subject();
|
|
99
|
+
this.errors = [];
|
|
100
|
+
this.id = `app-selection-options-editor-${SelectionOptionsEditorComponent.nextId++}`;
|
|
101
|
+
this.placeholder = '';
|
|
102
|
+
this.focused = false;
|
|
103
|
+
this.required = false;
|
|
104
|
+
this.disabled = false;
|
|
105
|
+
this.touched = false;
|
|
106
|
+
this.onTouched = () => { };
|
|
107
|
+
this._options = [];
|
|
108
|
+
this.valueChanged = new EventEmitter();
|
|
109
|
+
}
|
|
110
|
+
get empty() {
|
|
111
|
+
return !this.value;
|
|
112
|
+
}
|
|
113
|
+
get shouldLabelFloat() {
|
|
114
|
+
return this.focused || !this.empty;
|
|
115
|
+
}
|
|
116
|
+
get errorState() {
|
|
117
|
+
const hasError = !!this.ngControl?.control?.errors || (this.errors || []).length > 0 && this.touched;
|
|
118
|
+
return !this.value && !!this.required || hasError;
|
|
119
|
+
}
|
|
120
|
+
setDescribedByIds(ids) {
|
|
121
|
+
// Ensure the component view is initialized
|
|
122
|
+
if (this._elementRef && this._elementRef.nativeElement) {
|
|
123
|
+
const controlElement = this._elementRef.nativeElement.querySelector('.app-selection-options-editor');
|
|
124
|
+
// Check if the controlElement exists before attempting to set its attribute
|
|
125
|
+
if (controlElement) {
|
|
126
|
+
controlElement.setAttribute('aria-describedby', ids.join(' '));
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
onContainerClick(event) {
|
|
131
|
+
this.markAsTouched();
|
|
132
|
+
this.stateChanges.next();
|
|
133
|
+
}
|
|
134
|
+
markAsTouched() {
|
|
135
|
+
console.log('markAsTouched');
|
|
136
|
+
if (!this.touched) {
|
|
137
|
+
this.onTouched();
|
|
138
|
+
this.touched = true;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
get options() {
|
|
142
|
+
return this._options || [];
|
|
143
|
+
}
|
|
144
|
+
set options(val) {
|
|
145
|
+
if (!!Array.isArray(val)) {
|
|
146
|
+
this._options = val;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
add() {
|
|
150
|
+
this.inEdit = {};
|
|
151
|
+
this.createForm(this.inEdit);
|
|
152
|
+
}
|
|
153
|
+
remove(option) {
|
|
154
|
+
this.options = this.removeObjectById(this.options, option.id);
|
|
155
|
+
this.valueChanged.emit(this.options);
|
|
156
|
+
}
|
|
157
|
+
createForm(inEdit) {
|
|
158
|
+
this.form = new FormGroup({
|
|
159
|
+
label: new FormControl(inEdit.label || '', Validators.required),
|
|
160
|
+
value: new FormControl(inEdit.value || '', Validators.required),
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
closeEdit() {
|
|
164
|
+
this.inEdit = null;
|
|
165
|
+
}
|
|
166
|
+
save() {
|
|
167
|
+
const id = this.inEdit?.id;
|
|
168
|
+
if (!!id) {
|
|
169
|
+
this.options = this.overrideObjectById(this.options, { ...this.inEdit, ...this.form.value });
|
|
170
|
+
this.closeEdit();
|
|
171
|
+
this.valueChanged.emit(this.options);
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
this.options = this.addObjectToArray(this.options, { ...this.inEdit, ...this.form.value, id: v4() });
|
|
175
|
+
this.closeEdit();
|
|
176
|
+
console.log(this.options);
|
|
177
|
+
this.valueChanged.emit(this.options);
|
|
178
|
+
}
|
|
179
|
+
overrideObjectById(array, newObj) {
|
|
180
|
+
const index = _.findIndex(array, { id: newObj.id });
|
|
181
|
+
if (index !== -1) {
|
|
182
|
+
array[index] = newObj;
|
|
183
|
+
}
|
|
184
|
+
return array;
|
|
185
|
+
}
|
|
186
|
+
addObjectToArray(array, newObj) {
|
|
187
|
+
if (!_.some(array, { id: newObj.id })) {
|
|
188
|
+
array.push(newObj);
|
|
189
|
+
}
|
|
190
|
+
return array;
|
|
191
|
+
}
|
|
192
|
+
removeObjectById(array, id) {
|
|
193
|
+
return _.reject(array, { id: id });
|
|
194
|
+
}
|
|
195
|
+
static { this.ɵfac = function SelectionOptionsEditorComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SelectionOptionsEditorComponent)(i0.ɵɵdirectiveInject(i1.NgControl, 10), i0.ɵɵdirectiveInject(i0.ElementRef)); }; }
|
|
196
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectionOptionsEditorComponent, selectors: [["app-selection-options-editor"]], hostVars: 1, hostBindings: function SelectionOptionsEditorComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
197
|
+
i0.ɵɵhostProperty("id", ctx.id);
|
|
198
|
+
} }, inputs: { errors: "errors", options: "options" }, outputs: { valueChanged: "valueChanged" }, features: [i0.ɵɵProvidersFeature([{ provide: MatFormFieldControl, useExisting: SelectionOptionsEditorComponent }])], decls: 5, vars: 3, consts: [["aria-label", "Fish selection"], ["color", "accent", 3, "value", "selected"], [4, "ngIf"], ["color", "accent", 3, "removed", "click", "value", "selected"], ["matChipRemove", ""], ["mat-stroked-button", "", 2, "width", "100%", 3, "click"], [2, "padding-top", "16px"], [3, "formGroup", 4, "ngIf"], ["mat-button", "", 3, "click"], ["mat-button", "", 3, "click", "disabled"], [3, "formGroup"], ["type", "text", "matInput", "", "formControlName", "label", "placeholder", "enter option label"], ["type", "text", "matInput", "", "formControlName", "value", "placeholder", "enter option value"]], template: function SelectionOptionsEditorComponent_Template(rf, ctx) { if (rf & 1) {
|
|
199
|
+
i0.ɵɵelementStart(0, "mat-chip-listbox", 0);
|
|
200
|
+
i0.ɵɵrepeaterCreate(1, SelectionOptionsEditorComponent_For_2_Template, 5, 4, "mat-chip-option", 1, _forTrack0);
|
|
201
|
+
i0.ɵɵelementEnd();
|
|
202
|
+
i0.ɵɵtemplate(3, SelectionOptionsEditorComponent_mat_toolbar_3_Template, 5, 0, "mat-toolbar", 2)(4, SelectionOptionsEditorComponent_mat_card_4_Template, 13, 2, "mat-card", 2);
|
|
203
|
+
} if (rf & 2) {
|
|
204
|
+
i0.ɵɵadvance();
|
|
205
|
+
i0.ɵɵrepeater(ctx.options || i0.ɵɵpureFunction0(2, _c0));
|
|
206
|
+
i0.ɵɵadvance(2);
|
|
207
|
+
i0.ɵɵproperty("ngIf", !ctx.inEdit);
|
|
208
|
+
i0.ɵɵadvance();
|
|
209
|
+
i0.ɵɵproperty("ngIf", !!ctx.inEdit);
|
|
210
|
+
} }, dependencies: [MatModulesModule, i2.MatButton, i3.MatCard, i3.MatCardActions, i3.MatCardContent, i3.MatCardHeader, i3.MatCardSubtitle, i3.MatCardTitle, i4.MatChipListbox, i4.MatChipOption, i4.MatChipRemove, i6.MatIcon, i3$1.MatFormField, i3$1.MatLabel, i3$1.MatHint, i9.MatToolbar, i12.MatInput, ReactiveFormsModule, i1.ɵNgNoValidate, i1.DefaultValueAccessor, i1.NgControlStatus, i1.NgControlStatusGroup, i1.FormGroupDirective, i1.FormControlName, CommonModule, i2$1.NgIf], styles: ["mat-form-field[_ngcontent-%COMP%]{width:100%!important;background:azure}"] }); }
|
|
211
|
+
}
|
|
212
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectionOptionsEditorComponent, [{
|
|
213
|
+
type: Component,
|
|
214
|
+
args: [{ selector: 'app-selection-options-editor', standalone: true, imports: [MatModulesModule, ReactiveFormsModule, CommonModule], providers: [{ provide: MatFormFieldControl, useExisting: SelectionOptionsEditorComponent }], template: "\r\n <mat-chip-listbox aria-label=\"Fish selection\">\r\n @for (option of options||[]; track option.id) {\r\n <mat-chip-option \r\n (removed)=\"remove(option)\"\r\n (click)=\"this.inEdit?.id === option?.id? this.inEdit = undefined :this.inEdit = option\"\r\n color=\"accent\" \r\n [value]=\"option?.value\"\r\n [selected]=\"this.inEdit?.id === option?.id\">{{option?.label}}\r\n <button matChipRemove [attr.aria-label]=\"'remove ' \">\r\n <mat-icon>cancel</mat-icon>\r\n </button>\r\n </mat-chip-option>\r\n }\r\n </mat-chip-listbox>\r\n <mat-toolbar *ngIf=\"!inEdit\">\r\n <button style=\"width:100%\" mat-stroked-button (click)=\"add()\">\r\n Add an option <mat-icon>add</mat-icon>\r\n </button>\r\n </mat-toolbar>\r\n <mat-card *ngIf=\"!!inEdit\">\r\n <mat-card-header>\r\n <mat-card-title>Edit Option</mat-card-title>\r\n <mat-card-subtitle>Modify Option Details</mat-card-subtitle>\r\n </mat-card-header>\r\n\r\n <mat-card-content style=\"padding-top:16px ;\" >\r\n \r\n <form *ngIf=\"!!form\" [formGroup]=\"form\">\r\n <mat-form-field >\r\n <mat-label>label</mat-label>\r\n <input type=\"text\" matInput formControlName=\"label\" \r\n placeholder=\"enter option label\">\r\n <mat-hint>Label is required!</mat-hint>\r\n </mat-form-field>\r\n <mat-form-field >\r\n <mat-label>value</mat-label>\r\n <input type=\"text\" matInput formControlName=\"value\" \r\n placeholder=\"enter option value\">\r\n <mat-hint>value is required!</mat-hint>\r\n </mat-form-field>\r\n \r\n </form>\r\n \r\n </mat-card-content>\r\n <mat-card-actions>\r\n <button mat-button (click)=\"closeEdit()\">close</button>\r\n <button mat-button [disabled]=\"form.invalid\" (click)=\"save()\">Save</button>\r\n </mat-card-actions>\r\n </mat-card>\r\n ", styles: ["mat-form-field{width:100%!important;background:azure}\n"] }]
|
|
215
|
+
}], () => [{ type: i1.NgControl, decorators: [{
|
|
216
|
+
type: Optional
|
|
217
|
+
}, {
|
|
218
|
+
type: Self
|
|
219
|
+
}] }, { type: i0.ElementRef }], { errors: [{
|
|
220
|
+
type: Input
|
|
221
|
+
}], id: [{
|
|
222
|
+
type: HostBinding
|
|
223
|
+
}], options: [{
|
|
224
|
+
type: Input
|
|
225
|
+
}], valueChanged: [{
|
|
226
|
+
type: Output
|
|
227
|
+
}] }); })();
|
|
228
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectionOptionsEditorComponent, { className: "SelectionOptionsEditorComponent", filePath: "lib/components/t-dynamic-data-edit/elements/selection-options-editor/selection-options-editor.component.ts", lineNumber: 20 }); })();
|
|
229
|
+
|
|
230
|
+
export { SelectionOptionsEditorComponent };
|
|
231
|
+
//# sourceMappingURL=ngx-t-forms-selection-options-editor.component-CllhwZ5Y.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-t-forms-selection-options-editor.component-CllhwZ5Y.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/selection-options-editor/selection-options-editor.component.html","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/selection-options-editor/selection-options-editor.component.ts"],"sourcesContent":["\r\n <mat-chip-listbox aria-label=\"Fish selection\">\r\n @for (option of options||[]; track option.id) {\r\n <mat-chip-option \r\n (removed)=\"remove(option)\"\r\n (click)=\"this.inEdit?.id === option?.id? this.inEdit = undefined :this.inEdit = option\"\r\n color=\"accent\" \r\n [value]=\"option?.value\"\r\n [selected]=\"this.inEdit?.id === option?.id\">{{option?.label}}\r\n <button matChipRemove [attr.aria-label]=\"'remove ' \">\r\n <mat-icon>cancel</mat-icon>\r\n </button>\r\n </mat-chip-option>\r\n }\r\n </mat-chip-listbox>\r\n <mat-toolbar *ngIf=\"!inEdit\">\r\n <button style=\"width:100%\" mat-stroked-button (click)=\"add()\">\r\n Add an option <mat-icon>add</mat-icon>\r\n </button>\r\n </mat-toolbar>\r\n <mat-card *ngIf=\"!!inEdit\">\r\n <mat-card-header>\r\n <mat-card-title>Edit Option</mat-card-title>\r\n <mat-card-subtitle>Modify Option Details</mat-card-subtitle>\r\n </mat-card-header>\r\n\r\n <mat-card-content style=\"padding-top:16px ;\" >\r\n \r\n <form *ngIf=\"!!form\" [formGroup]=\"form\">\r\n <mat-form-field >\r\n <mat-label>label</mat-label>\r\n <input type=\"text\" matInput formControlName=\"label\" \r\n placeholder=\"enter option label\">\r\n <mat-hint>Label is required!</mat-hint>\r\n </mat-form-field>\r\n <mat-form-field >\r\n <mat-label>value</mat-label>\r\n <input type=\"text\" matInput formControlName=\"value\" \r\n placeholder=\"enter option value\">\r\n <mat-hint>value is required!</mat-hint>\r\n </mat-form-field>\r\n \r\n </form>\r\n \r\n </mat-card-content>\r\n <mat-card-actions>\r\n <button mat-button (click)=\"closeEdit()\">close</button>\r\n <button mat-button [disabled]=\"form.invalid\" (click)=\"save()\">Save</button>\r\n </mat-card-actions>\r\n </mat-card>\r\n ","import { Component, ElementRef, EventEmitter, HostBinding, Input, Optional, Output, Self } from '@angular/core';\r\n\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormControl, FormGroup, NgControl, ReactiveFormsModule, Validators } from '@angular/forms';\r\nimport { v4 as uuidv4 } from 'uuid';\r\nimport _ from 'lodash';\r\nimport { MatModulesModule } from '../../../../shared/modules/mat-modules.module';\r\nimport { MatFormFieldControl } from '@angular/material/form-field';\r\nimport { Subject } from 'rxjs';\r\nimport { IConfigElementError } from '../../t-dynamic-data-edit.component';\r\n\r\n@Component({\r\n selector: 'app-selection-options-editor',\r\n standalone: true,\r\n imports: [MatModulesModule, ReactiveFormsModule, CommonModule],\r\n providers: [{ provide: MatFormFieldControl, useExisting:SelectionOptionsEditorComponent }],\r\n templateUrl: './selection-options-editor.component.html',\r\n styleUrl: './selection-options-editor.component.scss'\r\n})\r\nexport class SelectionOptionsEditorComponent implements MatFormFieldControl<any> {\r\n value: any;\r\n static nextId = 0;\r\n stateChanges = new Subject<void>();\r\n @Input() errors:IConfigElementError[] |undefined = [];\r\n @HostBinding() id = `app-selection-options-editor-${SelectionOptionsEditorComponent.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\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('.app-selection-options-editor');\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 private _options: any = []\r\n @Input() get options(){\r\n return this._options || []\r\n }\r\n\r\n set options(val){\r\n if(!!Array.isArray(val)){\r\n this._options = val\r\n }\r\n }\r\n\r\n@Output() valueChanged = new EventEmitter<any>()\r\n\r\n inEdit:any\r\n\r\n form!:FormGroup\r\n add(){\r\n this.inEdit = {}\r\n this.createForm(this.inEdit)\r\n\r\n }\r\n remove(option:any){\r\n this.options = this.removeObjectById(this.options, option.id)\r\n this.valueChanged.emit(this.options)\r\n }\r\n createForm(inEdit:any){\r\n\r\n this.form = new FormGroup({\r\n label: new FormControl( inEdit.label||'', Validators.required),\r\n value: new FormControl(inEdit.value||'', Validators.required),\r\n\r\n });\r\n }\r\n closeEdit(){\r\n this.inEdit = null\r\n }\r\n\r\n save(){\r\n const id = this.inEdit?.id\r\n if(!!id){\r\n this.options = this.overrideObjectById(this.options, {...this.inEdit, ...this.form.value})\r\n this.closeEdit()\r\n this.valueChanged.emit(this.options)\r\n return\r\n }\r\n this.options = this.addObjectToArray(this.options, {...this.inEdit, ...this.form.value, id: uuidv4()})\r\n this.closeEdit()\r\n console.log(this.options)\r\n this.valueChanged.emit(this.options)\r\n\r\n }\r\n\r\n overrideObjectById(array: any[], newObj: any): any[] {\r\n const index = _.findIndex(array, { id: newObj.id });\r\n if (index !== -1) {\r\n array[index] = newObj;\r\n }\r\n return array;\r\n }\r\n \r\n addObjectToArray(array: any[], newObj: any): any[] {\r\n if (!_.some(array, { id: newObj.id })) {\r\n array.push(newObj);\r\n }\r\n return array;\r\n }\r\n \r\n removeObjectById(array: any[], id: number): any[] {\r\n return _.reject(array, { id: id });\r\n }\r\n}"],"names":["uuidv4","i5","i6","i7","i8","i9"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;IAGM,EAK4C,CAAA,cAAA,CAAA,CAAA,EAAA,iBAAA,EAAA,CAAA,CAAA;AAH5C,IADA,EAAW,CAAA,UAAA,CAAA,SAAA,EAAA,SAAA,iFAAA,GAAA,EAAA,MAAA,SAAA,GAAA,EAAA,CAAA,aAAA,CAAA,GAAA,CAAA,CAAA,SAAA,CAAA,CAAA,MAAA,MAAA,GAAA,EAAA,CAAA,aAAA,EAAA,CAAA,CAAA,OAAA,EAAA,CAAA,WAAA,CAAA,MAAA,CAAA,MAAA,CAAA,SAAA,CAAc,CAAC,CAAA,EAAA,CAAA,CAAA,OAAA,EAAA,SAAA,+EAAA,GAAA,EAAA,MAAA,SAAA,GAAA,EAAA,CAAA,aAAA,CAAA,GAAA,CAAA,CAAA,SAAA,CAAA,CAAA,MAAA,MAAA,GAAA,EAAA,CAAA,aAAA,EAAA,CAAA,CAAA,OAAA,EAAA,CAAA,WAAA,CAAA,CAAA,MAAA,CAAA,MAAA,IAAA,IAAA,G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A;;sBAY7E;;sBAAY;8CAJhB,MAAM,EAAA,CAAA;kBAAd;YACc,EAAE,EAAA,CAAA;kBAAhB;YAkDY,OAAO,EAAA,CAAA;kBAAnB;YAUO,YAAY,EAAA,CAAA;kBAArB;;kFAjEY,+BAA+B,EAAA,EAAA,SAAA,EAAA,iCAAA,EAAA,QAAA,EAAA,4GAAA,EAAA,UAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;;;"}
|
|
@@ -6,16 +6,16 @@ import * as i1 from '@angular/forms';
|
|
|
6
6
|
import { FormGroup, FormControl, Validators, ReactiveFormsModule } from '@angular/forms';
|
|
7
7
|
import { v4 } from 'uuid';
|
|
8
8
|
import _ from 'lodash';
|
|
9
|
-
import { M as MatModulesModule } from './ngx-t-forms-ngx-t-forms-
|
|
9
|
+
import { M as MatModulesModule } from './ngx-t-forms-ngx-t-forms-1Roar4qK.mjs';
|
|
10
10
|
import * as i3$1 from '@angular/material/form-field';
|
|
11
11
|
import { MatFormFieldControl } from '@angular/material/form-field';
|
|
12
12
|
import { Subject } from 'rxjs';
|
|
13
13
|
import * as i2 from '@angular/material/button';
|
|
14
14
|
import * as i3 from '@angular/material/card';
|
|
15
15
|
import * as i4 from '@angular/material/chips';
|
|
16
|
-
import * as
|
|
16
|
+
import * as i6 from '@angular/material/icon';
|
|
17
17
|
import * as i9 from '@angular/material/toolbar';
|
|
18
|
-
import * as
|
|
18
|
+
import * as i12 from '@angular/material/input';
|
|
19
19
|
|
|
20
20
|
class SelectionOptionsEditorComponent {
|
|
21
21
|
static { this.nextId = 0; }
|
|
@@ -120,7 +120,7 @@ class SelectionOptionsEditorComponent {
|
|
|
120
120
|
return _.reject(array, { id: id });
|
|
121
121
|
}
|
|
122
122
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: SelectionOptionsEditorComponent, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
123
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.2", type: SelectionOptionsEditorComponent, isStandalone: true, selector: "app-selection-options-editor", inputs: { errors: "errors", options: "options" }, outputs: { valueChanged: "valueChanged" }, host: { properties: { "id": "this.id" } }, providers: [{ provide: MatFormFieldControl, useExisting: SelectionOptionsEditorComponent }], ngImport: i0, template: "\r\n <mat-chip-listbox aria-label=\"Fish selection\">\r\n @for (option of options||[]; track option.id) {\r\n <mat-chip-option \r\n (removed)=\"remove(option)\"\r\n (click)=\"this.inEdit?.id === option?.id? this.inEdit = undefined :this.inEdit = option\"\r\n color=\"accent\" \r\n [value]=\"option?.value\"\r\n [selected]=\"this.inEdit?.id === option?.id\">{{option?.label}}\r\n <button matChipRemove [attr.aria-label]=\"'remove ' \">\r\n <mat-icon>cancel</mat-icon>\r\n </button>\r\n </mat-chip-option>\r\n }\r\n </mat-chip-listbox>\r\n <mat-toolbar *ngIf=\"!inEdit\">\r\n <button style=\"width:100%\" mat-stroked-button (click)=\"add()\">\r\n Add an option <mat-icon>add</mat-icon>\r\n </button>\r\n </mat-toolbar>\r\n <mat-card *ngIf=\"!!inEdit\">\r\n <mat-card-header>\r\n <mat-card-title>Edit Option</mat-card-title>\r\n <mat-card-subtitle>Modify Option Details</mat-card-subtitle>\r\n </mat-card-header>\r\n\r\n <mat-card-content style=\"padding-top:16px ;\" >\r\n \r\n <form *ngIf=\"!!form\" [formGroup]=\"form\">\r\n <mat-form-field >\r\n <mat-label>label</mat-label>\r\n <input type=\"text\" matInput formControlName=\"label\" \r\n placeholder=\"enter option label\">\r\n <mat-hint>Label is required!</mat-hint>\r\n </mat-form-field>\r\n <mat-form-field >\r\n <mat-label>value</mat-label>\r\n <input type=\"text\" matInput formControlName=\"value\" \r\n placeholder=\"enter option value\">\r\n <mat-hint>value is required!</mat-hint>\r\n </mat-form-field>\r\n \r\n </form>\r\n \r\n </mat-card-content>\r\n <mat-card-actions>\r\n <button mat-button (click)=\"closeEdit()\">close</button>\r\n <button mat-button [disabled]=\"form.invalid\" (click)=\"save()\">Save</button>\r\n </mat-card-actions>\r\n </mat-card>\r\n ", styles: ["mat-form-field{width:100%!important;background:azure}\n"], dependencies: [{ kind: "ngmodule", type: MatModulesModule }, { kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i3.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i3.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "directive", type: i3.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i3.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i3.MatCardSubtitle, selector: "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]" }, { kind: "directive", type: i3.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "component", type: i4.MatChipListbox, selector: "mat-chip-listbox", inputs: ["multiple", "aria-orientation", "selectable", "compareWith", "required", "hideSingleSelectionIndicator", "value"], outputs: ["change"] }, { kind: "component", type: i4.MatChipOption, selector: "mat-basic-chip-option, [mat-basic-chip-option], mat-chip-option, [mat-chip-option]", inputs: ["selectable", "selected"], outputs: ["selectionChange"] }, { kind: "directive", type: i4.MatChipRemove, selector: "[matChipRemove]" }, { kind: "component", type:
|
|
123
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.2", type: SelectionOptionsEditorComponent, isStandalone: true, selector: "app-selection-options-editor", inputs: { errors: "errors", options: "options" }, outputs: { valueChanged: "valueChanged" }, host: { properties: { "id": "this.id" } }, providers: [{ provide: MatFormFieldControl, useExisting: SelectionOptionsEditorComponent }], ngImport: i0, template: "\r\n <mat-chip-listbox aria-label=\"Fish selection\">\r\n @for (option of options||[]; track option.id) {\r\n <mat-chip-option \r\n (removed)=\"remove(option)\"\r\n (click)=\"this.inEdit?.id === option?.id? this.inEdit = undefined :this.inEdit = option\"\r\n color=\"accent\" \r\n [value]=\"option?.value\"\r\n [selected]=\"this.inEdit?.id === option?.id\">{{option?.label}}\r\n <button matChipRemove [attr.aria-label]=\"'remove ' \">\r\n <mat-icon>cancel</mat-icon>\r\n </button>\r\n </mat-chip-option>\r\n }\r\n </mat-chip-listbox>\r\n <mat-toolbar *ngIf=\"!inEdit\">\r\n <button style=\"width:100%\" mat-stroked-button (click)=\"add()\">\r\n Add an option <mat-icon>add</mat-icon>\r\n </button>\r\n </mat-toolbar>\r\n <mat-card *ngIf=\"!!inEdit\">\r\n <mat-card-header>\r\n <mat-card-title>Edit Option</mat-card-title>\r\n <mat-card-subtitle>Modify Option Details</mat-card-subtitle>\r\n </mat-card-header>\r\n\r\n <mat-card-content style=\"padding-top:16px ;\" >\r\n \r\n <form *ngIf=\"!!form\" [formGroup]=\"form\">\r\n <mat-form-field >\r\n <mat-label>label</mat-label>\r\n <input type=\"text\" matInput formControlName=\"label\" \r\n placeholder=\"enter option label\">\r\n <mat-hint>Label is required!</mat-hint>\r\n </mat-form-field>\r\n <mat-form-field >\r\n <mat-label>value</mat-label>\r\n <input type=\"text\" matInput formControlName=\"value\" \r\n placeholder=\"enter option value\">\r\n <mat-hint>value is required!</mat-hint>\r\n </mat-form-field>\r\n \r\n </form>\r\n \r\n </mat-card-content>\r\n <mat-card-actions>\r\n <button mat-button (click)=\"closeEdit()\">close</button>\r\n <button mat-button [disabled]=\"form.invalid\" (click)=\"save()\">Save</button>\r\n </mat-card-actions>\r\n </mat-card>\r\n ", styles: ["mat-form-field{width:100%!important;background:azure}\n"], dependencies: [{ kind: "ngmodule", type: MatModulesModule }, { kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i3.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i3.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "directive", type: i3.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i3.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i3.MatCardSubtitle, selector: "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]" }, { kind: "directive", type: i3.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "component", type: i4.MatChipListbox, selector: "mat-chip-listbox", inputs: ["multiple", "aria-orientation", "selectable", "compareWith", "required", "hideSingleSelectionIndicator", "value"], outputs: ["change"] }, { kind: "component", type: i4.MatChipOption, selector: "mat-basic-chip-option, [mat-basic-chip-option], mat-chip-option, [mat-chip-option]", inputs: ["selectable", "selected"], outputs: ["selectionChange"] }, { kind: "directive", type: i4.MatChipRemove, selector: "[matChipRemove]" }, { kind: "component", type: i6.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i3$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "component", type: i9.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "directive", type: i12.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
124
124
|
}
|
|
125
125
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: SelectionOptionsEditorComponent, decorators: [{
|
|
126
126
|
type: Component,
|
|
@@ -140,4 +140,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImpor
|
|
|
140
140
|
}] } });
|
|
141
141
|
|
|
142
142
|
export { SelectionOptionsEditorComponent };
|
|
143
|
-
//# sourceMappingURL=ngx-t-forms-selection-options-editor.component-
|
|
143
|
+
//# sourceMappingURL=ngx-t-forms-selection-options-editor.component-cYkn1O48.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-t-forms-selection-options-editor.component-BwFboSq2.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/selection-options-editor/selection-options-editor.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/selection-options-editor/selection-options-editor.component.html"],"sourcesContent":["import { Component, ElementRef, EventEmitter, HostBinding, Input, Optional, Output, Self } from '@angular/core';\r\n\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormControl, FormGroup, NgControl, ReactiveFormsModule, Validators } from '@angular/forms';\r\nimport { v4 as uuidv4 } from 'uuid';\r\nimport _ from 'lodash';\r\nimport { MatModulesModule } from '../../../../shared/modules/mat-modules.module';\r\nimport { MatFormFieldControl } from '@angular/material/form-field';\r\nimport { Subject } from 'rxjs';\r\nimport { IConfigElementError } from '../../t-dynamic-data-edit.component';\r\n\r\n@Component({\r\n selector: 'app-selection-options-editor',\r\n standalone: true,\r\n imports: [MatModulesModule, ReactiveFormsModule, CommonModule],\r\n providers: [{ provide: MatFormFieldControl, useExisting:SelectionOptionsEditorComponent }],\r\n templateUrl: './selection-options-editor.component.html',\r\n styleUrl: './selection-options-editor.component.scss'\r\n})\r\nexport class SelectionOptionsEditorComponent implements MatFormFieldControl<any> {\r\n value: any;\r\n static nextId = 0;\r\n stateChanges = new Subject<void>();\r\n @Input() errors:IConfigElementError[] |undefined = [];\r\n @HostBinding() id = `app-selection-options-editor-${SelectionOptionsEditorComponent.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\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('.app-selection-options-editor');\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 private _options: any = []\r\n @Input() get options(){\r\n return this._options || []\r\n }\r\n\r\n set options(val){\r\n if(!!Array.isArray(val)){\r\n this._options = val\r\n }\r\n }\r\n\r\n@Output() valueChanged = new EventEmitter<any>()\r\n\r\n inEdit:any\r\n\r\n form!:FormGroup\r\n add(){\r\n this.inEdit = {}\r\n this.createForm(this.inEdit)\r\n\r\n }\r\n remove(option:any){\r\n this.options = this.removeObjectById(this.options, option.id)\r\n this.valueChanged.emit(this.options)\r\n }\r\n createForm(inEdit:any){\r\n\r\n this.form = new FormGroup({\r\n label: new FormControl( inEdit.label||'', Validators.required),\r\n value: new FormControl(inEdit.value||'', Validators.required),\r\n\r\n });\r\n }\r\n closeEdit(){\r\n this.inEdit = null\r\n }\r\n\r\n save(){\r\n const id = this.inEdit?.id\r\n if(!!id){\r\n this.options = this.overrideObjectById(this.options, {...this.inEdit, ...this.form.value})\r\n this.closeEdit()\r\n this.valueChanged.emit(this.options)\r\n return\r\n }\r\n this.options = this.addObjectToArray(this.options, {...this.inEdit, ...this.form.value, id: uuidv4()})\r\n this.closeEdit()\r\n console.log(this.options)\r\n this.valueChanged.emit(this.options)\r\n\r\n }\r\n\r\n overrideObjectById(array: any[], newObj: any): any[] {\r\n const index = _.findIndex(array, { id: newObj.id });\r\n if (index !== -1) {\r\n array[index] = newObj;\r\n }\r\n return array;\r\n }\r\n \r\n addObjectToArray(array: any[], newObj: any): any[] {\r\n if (!_.some(array, { id: newObj.id })) {\r\n array.push(newObj);\r\n }\r\n return array;\r\n }\r\n \r\n removeObjectById(array: any[], id: number): any[] {\r\n return _.reject(array, { id: id });\r\n }\r\n}","\r\n <mat-chip-listbox aria-label=\"Fish selection\">\r\n @for (option of options||[]; track option.id) {\r\n <mat-chip-option \r\n (removed)=\"remove(option)\"\r\n (click)=\"this.inEdit?.id === option?.id? this.inEdit = undefined :this.inEdit = option\"\r\n color=\"accent\" \r\n [value]=\"option?.value\"\r\n [selected]=\"this.inEdit?.id === option?.id\">{{option?.label}}\r\n <button matChipRemove [attr.aria-label]=\"'remove ' \">\r\n <mat-icon>cancel</mat-icon>\r\n </button>\r\n </mat-chip-option>\r\n }\r\n </mat-chip-listbox>\r\n <mat-toolbar *ngIf=\"!inEdit\">\r\n <button style=\"width:100%\" mat-stroked-button (click)=\"add()\">\r\n Add an option <mat-icon>add</mat-icon>\r\n </button>\r\n </mat-toolbar>\r\n <mat-card *ngIf=\"!!inEdit\">\r\n <mat-card-header>\r\n <mat-card-title>Edit Option</mat-card-title>\r\n <mat-card-subtitle>Modify Option Details</mat-card-subtitle>\r\n </mat-card-header>\r\n\r\n <mat-card-content style=\"padding-top:16px ;\" >\r\n \r\n <form *ngIf=\"!!form\" [formGroup]=\"form\">\r\n <mat-form-field >\r\n <mat-label>label</mat-label>\r\n <input type=\"text\" matInput formControlName=\"label\" \r\n placeholder=\"enter option label\">\r\n <mat-hint>Label is required!</mat-hint>\r\n </mat-form-field>\r\n <mat-form-field >\r\n <mat-label>value</mat-label>\r\n <input type=\"text\" matInput formControlName=\"value\" \r\n placeholder=\"enter option value\">\r\n <mat-hint>value is required!</mat-hint>\r\n </mat-form-field>\r\n \r\n </form>\r\n \r\n </mat-card-content>\r\n <mat-card-actions>\r\n <button mat-button (click)=\"closeEdit()\">close</button>\r\n <button mat-button [disabled]=\"form.invalid\" (click)=\"save()\">Save</button>\r\n </mat-card-actions>\r\n </mat-card>\r\n "],"names":["uuidv4","i6","i7","i8","i9"],"mappings":";;;;;;;;;;;;;;;;;;;MAmBa,+BAA+B,CAAA;aAEnC,IAAM,CAAA,MAAA,GAAG,CAAH,CAAK;IAMlB,WAAuC,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AAA,QAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,UAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAKlD,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAR3C,SAAS;+BACE,8BAA8B,EAAA,UAAA,EAC5B,IAAI,EACP,OAAA,EAAA,CAAC,gBAAgB,EAAE,mBAAmB,EAAE,YAAY,CAAC,aACnD,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAA,+BAAgC,EAAE,CAAC,EAAA,QAAA,EAAA,8/DAAA,EAAA,MAAA,EAAA,CAAA,yDAAA,CAAA,EAAA;;0BAY7E;;0BAAY;kEAJhB,MAAM,EAAA,CAAA;sBAAd;gBACc,EAAE,EAAA,CAAA;sBAAhB;gBAkDY,OAAO,EAAA,CAAA;sBAAnB;gBAUO,YAAY,EAAA,CAAA;sBAArB;;;;;"}
|
|
1
|
+
{"version":3,"file":"ngx-t-forms-selection-options-editor.component-cYkn1O48.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/selection-options-editor/selection-options-editor.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/selection-options-editor/selection-options-editor.component.html"],"sourcesContent":["import { Component, ElementRef, EventEmitter, HostBinding, Input, Optional, Output, Self } from '@angular/core';\r\n\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormControl, FormGroup, NgControl, ReactiveFormsModule, Validators } from '@angular/forms';\r\nimport { v4 as uuidv4 } from 'uuid';\r\nimport _ from 'lodash';\r\nimport { MatModulesModule } from '../../../../shared/modules/mat-modules.module';\r\nimport { MatFormFieldControl } from '@angular/material/form-field';\r\nimport { Subject } from 'rxjs';\r\nimport { IConfigElementError } from '../../t-dynamic-data-edit.component';\r\n\r\n@Component({\r\n selector: 'app-selection-options-editor',\r\n standalone: true,\r\n imports: [MatModulesModule, ReactiveFormsModule, CommonModule],\r\n providers: [{ provide: MatFormFieldControl, useExisting:SelectionOptionsEditorComponent }],\r\n templateUrl: './selection-options-editor.component.html',\r\n styleUrl: './selection-options-editor.component.scss'\r\n})\r\nexport class SelectionOptionsEditorComponent implements MatFormFieldControl<any> {\r\n value: any;\r\n static nextId = 0;\r\n stateChanges = new Subject<void>();\r\n @Input() errors:IConfigElementError[] |undefined = [];\r\n @HostBinding() id = `app-selection-options-editor-${SelectionOptionsEditorComponent.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\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('.app-selection-options-editor');\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 private _options: any = []\r\n @Input() get options(){\r\n return this._options || []\r\n }\r\n\r\n set options(val){\r\n if(!!Array.isArray(val)){\r\n this._options = val\r\n }\r\n }\r\n\r\n@Output() valueChanged = new EventEmitter<any>()\r\n\r\n inEdit:any\r\n\r\n form!:FormGroup\r\n add(){\r\n this.inEdit = {}\r\n this.createForm(this.inEdit)\r\n\r\n }\r\n remove(option:any){\r\n this.options = this.removeObjectById(this.options, option.id)\r\n this.valueChanged.emit(this.options)\r\n }\r\n createForm(inEdit:any){\r\n\r\n this.form = new FormGroup({\r\n label: new FormControl( inEdit.label||'', Validators.required),\r\n value: new FormControl(inEdit.value||'', Validators.required),\r\n\r\n });\r\n }\r\n closeEdit(){\r\n this.inEdit = null\r\n }\r\n\r\n save(){\r\n const id = this.inEdit?.id\r\n if(!!id){\r\n this.options = this.overrideObjectById(this.options, {...this.inEdit, ...this.form.value})\r\n this.closeEdit()\r\n this.valueChanged.emit(this.options)\r\n return\r\n }\r\n this.options = this.addObjectToArray(this.options, {...this.inEdit, ...this.form.value, id: uuidv4()})\r\n this.closeEdit()\r\n console.log(this.options)\r\n this.valueChanged.emit(this.options)\r\n\r\n }\r\n\r\n overrideObjectById(array: any[], newObj: any): any[] {\r\n const index = _.findIndex(array, { id: newObj.id });\r\n if (index !== -1) {\r\n array[index] = newObj;\r\n }\r\n return array;\r\n }\r\n \r\n addObjectToArray(array: any[], newObj: any): any[] {\r\n if (!_.some(array, { id: newObj.id })) {\r\n array.push(newObj);\r\n }\r\n return array;\r\n }\r\n \r\n removeObjectById(array: any[], id: number): any[] {\r\n return _.reject(array, { id: id });\r\n }\r\n}","\r\n <mat-chip-listbox aria-label=\"Fish selection\">\r\n @for (option of options||[]; track option.id) {\r\n <mat-chip-option \r\n (removed)=\"remove(option)\"\r\n (click)=\"this.inEdit?.id === option?.id? this.inEdit = undefined :this.inEdit = option\"\r\n color=\"accent\" \r\n [value]=\"option?.value\"\r\n [selected]=\"this.inEdit?.id === option?.id\">{{option?.label}}\r\n <button matChipRemove [attr.aria-label]=\"'remove ' \">\r\n <mat-icon>cancel</mat-icon>\r\n </button>\r\n </mat-chip-option>\r\n }\r\n </mat-chip-listbox>\r\n <mat-toolbar *ngIf=\"!inEdit\">\r\n <button style=\"width:100%\" mat-stroked-button (click)=\"add()\">\r\n Add an option <mat-icon>add</mat-icon>\r\n </button>\r\n </mat-toolbar>\r\n <mat-card *ngIf=\"!!inEdit\">\r\n <mat-card-header>\r\n <mat-card-title>Edit Option</mat-card-title>\r\n <mat-card-subtitle>Modify Option Details</mat-card-subtitle>\r\n </mat-card-header>\r\n\r\n <mat-card-content style=\"padding-top:16px ;\" >\r\n \r\n <form *ngIf=\"!!form\" [formGroup]=\"form\">\r\n <mat-form-field >\r\n <mat-label>label</mat-label>\r\n <input type=\"text\" matInput formControlName=\"label\" \r\n placeholder=\"enter option label\">\r\n <mat-hint>Label is required!</mat-hint>\r\n </mat-form-field>\r\n <mat-form-field >\r\n <mat-label>value</mat-label>\r\n <input type=\"text\" matInput formControlName=\"value\" \r\n placeholder=\"enter option value\">\r\n <mat-hint>value is required!</mat-hint>\r\n </mat-form-field>\r\n \r\n </form>\r\n \r\n </mat-card-content>\r\n <mat-card-actions>\r\n <button mat-button (click)=\"closeEdit()\">close</button>\r\n <button mat-button [disabled]=\"form.invalid\" (click)=\"save()\">Save</button>\r\n </mat-card-actions>\r\n </mat-card>\r\n "],"names":["uuidv4","i5","i6","i7","i8","i9"],"mappings":";;;;;;;;;;;;;;;;;;;MAmBa,+BAA+B,CAAA;aAEnC,IAAM,CAAA,MAAA,GAAG,CAAH,CAAK;IAMlB,WAAuC,CAAA,SAAoB,EAAU,WAAoC,EAAA;QAAlE,IAAS,CAAA,SAAA,GAAT,SAAS;QAAqB,IAAW,CAAA,WAAA,GAAX,WAAW;AALhF,QAAA,IAAA,CAAA,YAAY,GAAG,IAAI,OAAO,EAAQ;QACzB,IAAM,CAAA,MAAA,GAAoC,EAAE;AACtC,QAAA,IAAA,CAAA,EAAE,GAAG,CAAgC,6BAAA,EAAA,+BAA+B,CAAC,MAAM,EAAE,EAAE;QAE9F,IAAW,CAAA,WAAA,GAAW,EAAE;QAExB,IAAO,CAAA,OAAA,GAAY,KAAK;QAOx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