ngx-t-forms 2.0.9 → 2.0.10
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-N3ygU2OC.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-api-value-access-rules.component-DjZDnTHz.mjs.map → ngx-t-forms-api-value-access-rules.component-N3ygU2OC.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-calculated-field-rules.component-E3l7DQo7.mjs → ngx-t-forms-calculated-field-rules.component-BLWcl6vn.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-calculated-field-rules.component-E3l7DQo7.mjs.map → ngx-t-forms-calculated-field-rules.component-BLWcl6vn.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-sOC54w4T.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-CPerh2tW.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-sOC54w4T.mjs.map → ngx-t-forms-config-mscoa-additional-inputs.component-CPerh2tW.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-form-input-selector.component-CB03sPjA.mjs → ngx-t-forms-form-input-selector.component-CPP9vk2K.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-form-input-selector.component-CB03sPjA.mjs.map → ngx-t-forms-form-input-selector.component-CPP9vk2K.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-form-json-view.component-C1AZujJH.mjs → ngx-t-forms-form-json-view.component-DrYn49ee.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-form-json-view.component-C1AZujJH.mjs.map → ngx-t-forms-form-json-view.component-DrYn49ee.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-form-section-stepper.component-C_dciQhe.mjs → ngx-t-forms-form-section-stepper.component-8D5I7skU.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-form-section-stepper.component-C_dciQhe.mjs.map → ngx-t-forms-form-section-stepper.component-8D5I7skU.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-forms-builder-menu.component-CPIcPREp.mjs → ngx-t-forms-forms-builder-menu.component-CIpEQV76.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-forms-builder-menu.component-CPIcPREp.mjs.map → ngx-t-forms-forms-builder-menu.component-CIpEQV76.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-input-editor.component-__grERM8.mjs → ngx-t-forms-input-editor.component-S5vwN832.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-input-editor.component-__grERM8.mjs.map → ngx-t-forms-input-editor.component-S5vwN832.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-DcdHYqhN.mjs → ngx-t-forms-mat-chip-list-editor.component-cuh6pUIa.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-DcdHYqhN.mjs.map → ngx-t-forms-mat-chip-list-editor.component-cuh6pUIa.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-mat-slider-editor.component-C9rintm4.mjs → ngx-t-forms-mat-slider-editor.component-0oKVJ6ZR.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-mat-slider-editor.component-C9rintm4.mjs.map → ngx-t-forms-mat-slider-editor.component-0oKVJ6ZR.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-mat-slider-toggle-editor.component-CItK6kXf.mjs → ngx-t-forms-mat-slider-toggle-editor.component-CH979aIj.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-mat-slider-toggle-editor.component-CItK6kXf.mjs.map → ngx-t-forms-mat-slider-toggle-editor.component-CH979aIj.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-Da3SdUn6.mjs → ngx-t-forms-missing-form-configs.component-DO5tei0F.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-Da3SdUn6.mjs.map → ngx-t-forms-missing-form-configs.component-DO5tei0F.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-4hrEpLk3.mjs → ngx-t-forms-mscoa-segment-config.component-DVLk9GU0.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-4hrEpLk3.mjs.map → ngx-t-forms-mscoa-segment-config.component-DVLk9GU0.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-ngx-t-forms-1Roar4qK.mjs → ngx-t-forms-ngx-t-forms-dXesQz32.mjs} +8 -6
- package/fesm2022/ngx-t-forms-ngx-t-forms-dXesQz32.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-pipeline-generator.component-BQDykLNH.mjs → ngx-t-forms-pipeline-generator.component-CwqafpEq.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-pipeline-generator.component-BQDykLNH.mjs.map → ngx-t-forms-pipeline-generator.component-CwqafpEq.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-required-inputs.component-BGK3DNu0.mjs → ngx-t-forms-required-inputs.component-Cle4WsPa.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-required-inputs.component-BGK3DNu0.mjs.map → ngx-t-forms-required-inputs.component-Cle4WsPa.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-CCaRUSVQ.mjs → ngx-t-forms-rest-api-call-setup.component-N7z59aKu.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-CCaRUSVQ.mjs.map → ngx-t-forms-rest-api-call-setup.component-N7z59aKu.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-section-report.component-C8Ja_G_3.mjs → ngx-t-forms-section-report.component-CRJIa-3A.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-section-report.component-C8Ja_G_3.mjs.map → ngx-t-forms-section-report.component-CRJIa-3A.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-selection-options-editor.component-cYkn1O48.mjs → ngx-t-forms-selection-options-editor.component-Cm41dBKq.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-selection-options-editor.component-cYkn1O48.mjs.map → ngx-t-forms-selection-options-editor.component-Cm41dBKq.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-validators-config.component-CGXCCl45.mjs → ngx-t-forms-validators-config.component-CAdn7-Nn.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-validators-config.component-CGXCCl45.mjs.map → ngx-t-forms-validators-config.component-CAdn7-Nn.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms.mjs +1 -1
- package/lib/components/forms/forms.component.d.ts +1 -1
- package/lib/components/t-form-input/elements/editor-input-element/core/form-input-rich-text-editor/config.d.ts +1 -0
- package/package.json +1 -1
- 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-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,673 +0,0 @@
|
|
|
1
|
-
import * as i2 from '@angular/common';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import * as i0 from '@angular/core';
|
|
4
|
-
import { inject, Component, ViewChild } from '@angular/core';
|
|
5
|
-
import { c as FormTowerControllerService, F as FormsStoreService, d as getSubmissionStatusFn, M as MatModulesModule } from './ngx-t-forms-ngx-t-forms-DaAFB-HX.mjs';
|
|
6
|
-
import { take, filter, tap, map, Subject, timer, takeUntil } from 'rxjs';
|
|
7
|
-
import * as i1 from '@angular/forms';
|
|
8
|
-
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
9
|
-
import { validateFormColumnInputs } from 'ngx-t-forms-types';
|
|
10
|
-
import * as i7$1 from 'ngx-ui-tour-md-menu';
|
|
11
|
-
import { TourMatMenuModule } from 'ngx-ui-tour-md-menu';
|
|
12
|
-
import * as i2$2 from '@angular/cdk/drag-drop';
|
|
13
|
-
import * as i2$1 from '@angular/material/button';
|
|
14
|
-
import * as i3 from '@angular/material/card';
|
|
15
|
-
import * as i3$1 from '@angular/material/stepper';
|
|
16
|
-
import * as i6 from '@angular/material/icon';
|
|
17
|
-
import * as i6$1 from '@angular/material/menu';
|
|
18
|
-
import * as i7 from '@angular/material/progress-spinner';
|
|
19
|
-
import * as i8 from '@angular/material/tooltip';
|
|
20
|
-
import * as i9 from '@angular/material/toolbar';
|
|
21
|
-
|
|
22
|
-
const _c0 = ["stepper"];
|
|
23
|
-
const FormSectionStepperComponent_Defer_26_DepsFn = () => [i2.AsyncPipe, i2$1.MatButton, i7.MatProgressSpinner, i9.MatToolbar];
|
|
24
|
-
const FormSectionStepperComponent_For_8_Conditional_0_Defer_4_DepsFn = () => [i2.NgIf, i2.AsyncPipe, i2$2.CdkDropList, i2$2.CdkDrag, i2$2.CdkDragPlaceholder, i2$1.MatButton, i2$1.MatIconButton, i3.MatCard, i3.MatCardActions, i3$1.MatStepperNext, i3$1.MatStepperPrevious, i6.MatIcon, i6$1.MatMenuTrigger, i7.MatProgressSpinner, i8.MatTooltip, import('./ngx-t-forms-ngx-t-forms-DaAFB-HX.mjs').then(function (n) { return n.G; }).then(m => m.TFormInputComponent), i7$1.TourAnchorMatMenuDirective, i1.NgControlStatusGroup, i1.FormGroupDirective, import('./ngx-t-forms-section-report.component-C_h0KIR4.mjs').then(m => m.SectionReportComponent)];
|
|
25
|
-
const _c1 = a0 => ({ sectionId: a0 });
|
|
26
|
-
const _forTrack0 = ($index, $item) => $item.sectionId;
|
|
27
|
-
const _forTrack1 = ($index, $item) => $item.id;
|
|
28
|
-
const _forTrack2 = ($index, $item) => $item.key + $item.message;
|
|
29
|
-
function FormSectionStepperComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
30
|
-
i0.ɵɵelementStart(0, "div", 6);
|
|
31
|
-
i0.ɵɵelement(1, "mat-spinner", 14);
|
|
32
|
-
i0.ɵɵelementEnd();
|
|
33
|
-
} }
|
|
34
|
-
function FormSectionStepperComponent_For_8_Conditional_0_ng_template_1_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
35
|
-
i0.ɵɵelementStart(0, "mat-icon");
|
|
36
|
-
i0.ɵɵtext(1);
|
|
37
|
-
i0.ɵɵelementEnd();
|
|
38
|
-
} if (rf & 2) {
|
|
39
|
-
const step_r3 = i0.ɵɵnextContext(3).$implicit;
|
|
40
|
-
i0.ɵɵclassProp("error", step_r3.sectionIsInvalid);
|
|
41
|
-
i0.ɵɵattribute("aria-label", step_r3.sectionIsInvalid ? "Section has errors" : "Section completed");
|
|
42
|
-
i0.ɵɵadvance();
|
|
43
|
-
i0.ɵɵtextInterpolate1(" ", step_r3.sectionIsSeen, " ");
|
|
44
|
-
} }
|
|
45
|
-
function FormSectionStepperComponent_For_8_Conditional_0_ng_template_1_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
46
|
-
i0.ɵɵelementStart(0, "span", 24)(1, "button", 25)(2, "mat-icon");
|
|
47
|
-
i0.ɵɵtext(3, "tour");
|
|
48
|
-
i0.ɵɵelementEnd()()();
|
|
49
|
-
} }
|
|
50
|
-
function FormSectionStepperComponent_For_8_Conditional_0_ng_template_1_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
51
|
-
const _r5 = i0.ɵɵgetCurrentView();
|
|
52
|
-
i0.ɵɵelementStart(0, "button", 26);
|
|
53
|
-
i0.ɵɵlistener("mouseover", function FormSectionStepperComponent_For_8_Conditional_0_ng_template_1_Conditional_6_Template_button_mouseover_0_listener() { i0.ɵɵrestoreView(_r5); const step_r3 = i0.ɵɵnextContext(3).$implicit; const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.overId = step_r3.sectionId); })("mouseout", function FormSectionStepperComponent_For_8_Conditional_0_ng_template_1_Conditional_6_Template_button_mouseout_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r3 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r3.overId = null); })("click", function FormSectionStepperComponent_For_8_Conditional_0_ng_template_1_Conditional_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const step_r3 = i0.ɵɵnextContext(3).$implicit; const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.deleteSection(step_r3.sectionId)); });
|
|
54
|
-
i0.ɵɵelementStart(1, "div", 27);
|
|
55
|
-
i0.ɵɵelement(2, "mat-progress-spinner", 28);
|
|
56
|
-
i0.ɵɵtext(3);
|
|
57
|
-
i0.ɵɵelementEnd()();
|
|
58
|
-
} if (rf & 2) {
|
|
59
|
-
const step_r3 = i0.ɵɵnextContext(3).$implicit;
|
|
60
|
-
const ctx_r3 = i0.ɵɵnextContext();
|
|
61
|
-
i0.ɵɵadvance(2);
|
|
62
|
-
i0.ɵɵproperty("value", (ctx_r3.inputWillBeRemovedIn(step_r3.sectionId) || 0) / 5 * 100);
|
|
63
|
-
i0.ɵɵadvance();
|
|
64
|
-
i0.ɵɵtextInterpolate2(" ", ctx_r3.overId === step_r3.sectionId ? "Click to cancel" : "Deleting in", " ", ctx_r3.inputWillBeRemovedIn(step_r3.sectionId), " ");
|
|
65
|
-
} }
|
|
66
|
-
function FormSectionStepperComponent_For_8_Conditional_0_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
67
|
-
const _r2 = i0.ɵɵgetCurrentView();
|
|
68
|
-
i0.ɵɵelementStart(0, "div", 17)(1, "span", 18)(2, "input", 19);
|
|
69
|
-
i0.ɵɵlistener("input", function FormSectionStepperComponent_For_8_Conditional_0_ng_template_1_Template_input_input_2_listener($event) { i0.ɵɵrestoreView(_r2); const step_r3 = i0.ɵɵnextContext(2).$implicit; const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.handleInput($event, step_r3.sectionId)); });
|
|
70
|
-
i0.ɵɵelementEnd()();
|
|
71
|
-
i0.ɵɵtemplate(3, FormSectionStepperComponent_For_8_Conditional_0_ng_template_1_Conditional_3_Template, 2, 4, "mat-icon", 20)(4, FormSectionStepperComponent_For_8_Conditional_0_ng_template_1_span_4_Template, 4, 0, "span", 21);
|
|
72
|
-
i0.ɵɵelement(5, "span", 10);
|
|
73
|
-
i0.ɵɵtemplate(6, FormSectionStepperComponent_For_8_Conditional_0_ng_template_1_Conditional_6_Template, 4, 3, "button", 22);
|
|
74
|
-
i0.ɵɵelementStart(7, "button", 23);
|
|
75
|
-
i0.ɵɵlistener("click", function FormSectionStepperComponent_For_8_Conditional_0_ng_template_1_Template_button_click_7_listener($event) { i0.ɵɵrestoreView(_r2); return i0.ɵɵresetView($event.stopPropagation()); });
|
|
76
|
-
i0.ɵɵelementStart(8, "mat-icon");
|
|
77
|
-
i0.ɵɵtext(9, " more_horiz ");
|
|
78
|
-
i0.ɵɵelementEnd()()();
|
|
79
|
-
} if (rf & 2) {
|
|
80
|
-
const step_r3 = i0.ɵɵnextContext(2).$implicit;
|
|
81
|
-
const ctx_r3 = i0.ɵɵnextContext();
|
|
82
|
-
const sectionMenu_r6 = i0.ɵɵreference(29);
|
|
83
|
-
i0.ɵɵattribute("aria-label", "Section " + step_r3.label);
|
|
84
|
-
i0.ɵɵadvance(2);
|
|
85
|
-
i0.ɵɵproperty("value", step_r3.label);
|
|
86
|
-
i0.ɵɵadvance();
|
|
87
|
-
i0.ɵɵconditional(step_r3.sectionIsSeen ? 3 : -1);
|
|
88
|
-
i0.ɵɵadvance();
|
|
89
|
-
i0.ɵɵproperty("ngIf", (step_r3 == null ? null : step_r3.activeSectionHasTour) && !!step_r3.isActive);
|
|
90
|
-
i0.ɵɵadvance(2);
|
|
91
|
-
i0.ɵɵconditional(!!ctx_r3.inputWillBeRemovedIn(step_r3.sectionId) ? 6 : -1);
|
|
92
|
-
i0.ɵɵadvance();
|
|
93
|
-
i0.ɵɵproperty("matMenuTriggerData", i0.ɵɵpureFunction1(7, _c1, step_r3.sectionId))("matMenuTriggerFor", sectionMenu_r6);
|
|
94
|
-
} }
|
|
95
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
96
|
-
i0.ɵɵelement(0, "div", 43);
|
|
97
|
-
} }
|
|
98
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
99
|
-
const _r10 = i0.ɵɵgetCurrentView();
|
|
100
|
-
i0.ɵɵelementStart(0, "lib-t-form-input", 44);
|
|
101
|
-
i0.ɵɵlistener("valueChange", function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_3_Template_lib_t_form_input_valueChange_0_listener($event) { i0.ɵɵrestoreView(_r10); const col_r9 = i0.ɵɵnextContext().$implicit; const ctx_r3 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r3.updateValue(col_r9.id, $event)); });
|
|
102
|
-
i0.ɵɵelementEnd();
|
|
103
|
-
} if (rf & 2) {
|
|
104
|
-
const col_r9 = i0.ɵɵnextContext().$implicit;
|
|
105
|
-
const step_r3 = i0.ɵɵnextContext(4).$implicit;
|
|
106
|
-
const ctx_r3 = i0.ɵɵnextContext();
|
|
107
|
-
i0.ɵɵproperty("editorMode", true)("tourAnchor", col_r9.id)("formBuilderFunctions", ctx_r3.formBuilderFunctions)("inputConfig", col_r9)("formGroup", step_r3.sectionForm);
|
|
108
|
-
i0.ɵɵattribute("aria-label", (col_r9 == null ? null : col_r9.label) || "");
|
|
109
|
-
} }
|
|
110
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_4_For_3_Template(rf, ctx) { if (rf & 1) {
|
|
111
|
-
i0.ɵɵelementStart(0, "li");
|
|
112
|
-
i0.ɵɵtext(1);
|
|
113
|
-
i0.ɵɵelementEnd();
|
|
114
|
-
} if (rf & 2) {
|
|
115
|
-
const error_r11 = ctx.$implicit;
|
|
116
|
-
i0.ɵɵadvance();
|
|
117
|
-
i0.ɵɵtextInterpolate(error_r11.message);
|
|
118
|
-
} }
|
|
119
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
120
|
-
i0.ɵɵelementStart(0, "div", 41)(1, "ul", 45);
|
|
121
|
-
i0.ɵɵrepeaterCreate(2, FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_4_For_3_Template, 2, 1, "li", null, _forTrack2);
|
|
122
|
-
i0.ɵɵelementEnd()();
|
|
123
|
-
} if (rf & 2) {
|
|
124
|
-
const col_r9 = i0.ɵɵnextContext().$implicit;
|
|
125
|
-
i0.ɵɵadvance(2);
|
|
126
|
-
i0.ɵɵrepeater(col_r9.inputConfigErrors);
|
|
127
|
-
} }
|
|
128
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_mat_card_actions_5_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
129
|
-
const _r13 = i0.ɵɵgetCurrentView();
|
|
130
|
-
i0.ɵɵelementStart(0, "button", 26);
|
|
131
|
-
i0.ɵɵlistener("mouseover", function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_mat_card_actions_5_Conditional_11_Template_button_mouseover_0_listener() { i0.ɵɵrestoreView(_r13); const col_r9 = i0.ɵɵnextContext(2).$implicit; const ctx_r3 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r3.overId = col_r9.id); })("mouseout", function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_mat_card_actions_5_Conditional_11_Template_button_mouseout_0_listener() { i0.ɵɵrestoreView(_r13); const ctx_r3 = i0.ɵɵnextContext(7); return i0.ɵɵresetView(ctx_r3.overId = null); })("click", function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_mat_card_actions_5_Conditional_11_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r13); const col_r9 = i0.ɵɵnextContext(2).$implicit; const ctx_r3 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r3.removeInput(col_r9)); });
|
|
132
|
-
i0.ɵɵelementStart(1, "div", 52);
|
|
133
|
-
i0.ɵɵelement(2, "mat-progress-spinner", 28);
|
|
134
|
-
i0.ɵɵtext(3);
|
|
135
|
-
i0.ɵɵelementEnd()();
|
|
136
|
-
} if (rf & 2) {
|
|
137
|
-
const col_r9 = i0.ɵɵnextContext(2).$implicit;
|
|
138
|
-
const ctx_r3 = i0.ɵɵnextContext(5);
|
|
139
|
-
i0.ɵɵadvance(2);
|
|
140
|
-
i0.ɵɵproperty("value", (ctx_r3.inputWillBeRemovedIn(col_r9.id) || 0) / 5 * 100);
|
|
141
|
-
i0.ɵɵadvance();
|
|
142
|
-
i0.ɵɵtextInterpolate2(" ", ctx_r3.overId === col_r9.id ? "Click to cancel" : "Deleting in", " ", ctx_r3.inputWillBeRemovedIn(col_r9.id), " ");
|
|
143
|
-
} }
|
|
144
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_mat_card_actions_5_Conditional_12_Template(rf, ctx) { if (rf & 1) {
|
|
145
|
-
const _r14 = i0.ɵɵgetCurrentView();
|
|
146
|
-
i0.ɵɵelementStart(0, "button", 53);
|
|
147
|
-
i0.ɵɵlistener("click", function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_mat_card_actions_5_Conditional_12_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r14); const col_r9 = i0.ɵɵnextContext(2).$implicit; const ctx_r3 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r3.removeInput(col_r9)); });
|
|
148
|
-
i0.ɵɵelementStart(1, "mat-icon");
|
|
149
|
-
i0.ɵɵtext(2, " delete ");
|
|
150
|
-
i0.ɵɵelementEnd()();
|
|
151
|
-
} if (rf & 2) {
|
|
152
|
-
const col_r9 = i0.ɵɵnextContext(2).$implicit;
|
|
153
|
-
i0.ɵɵproperty("matTooltip", "Delete " + col_r9.label + " input");
|
|
154
|
-
} }
|
|
155
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_mat_card_actions_5_Conditional_13_Template(rf, ctx) { if (rf & 1) {
|
|
156
|
-
const _r15 = i0.ɵɵgetCurrentView();
|
|
157
|
-
i0.ɵɵelementStart(0, "button", 54);
|
|
158
|
-
i0.ɵɵlistener("click", function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_mat_card_actions_5_Conditional_13_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r15); const col_r9 = i0.ɵɵnextContext(2).$implicit; const ctx_r3 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r3.addMultipleFormInput(col_r9.sectionId, col_r9.id)); });
|
|
159
|
-
i0.ɵɵelementStart(1, "mat-icon");
|
|
160
|
-
i0.ɵɵtext(2, "add");
|
|
161
|
-
i0.ɵɵelementEnd();
|
|
162
|
-
i0.ɵɵtext(3, " Add Form Input ");
|
|
163
|
-
i0.ɵɵelementEnd();
|
|
164
|
-
} }
|
|
165
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_mat_card_actions_5_Conditional_14_Template(rf, ctx) { if (rf & 1) {
|
|
166
|
-
const _r16 = i0.ɵɵgetCurrentView();
|
|
167
|
-
i0.ɵɵelementStart(0, "button", 55);
|
|
168
|
-
i0.ɵɵlistener("click", function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_mat_card_actions_5_Conditional_14_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r16); const col_r9 = i0.ɵɵnextContext(2).$implicit; const ctx_r3 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r3.addInputToScoaSelection(col_r9.sectionId, col_r9.id)); });
|
|
169
|
-
i0.ɵɵelementStart(1, "mat-icon");
|
|
170
|
-
i0.ɵɵtext(2, "add");
|
|
171
|
-
i0.ɵɵelementEnd();
|
|
172
|
-
i0.ɵɵtext(3, " Add Form Input ");
|
|
173
|
-
i0.ɵɵelementEnd();
|
|
174
|
-
} }
|
|
175
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_mat_card_actions_5_Template(rf, ctx) { if (rf & 1) {
|
|
176
|
-
const _r12 = i0.ɵɵgetCurrentView();
|
|
177
|
-
i0.ɵɵelementStart(0, "mat-card-actions")(1, "button", 46);
|
|
178
|
-
i0.ɵɵlistener("click", function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_mat_card_actions_5_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r12); const col_r9 = i0.ɵɵnextContext().$implicit; const ctx_r3 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r3.editInput(col_r9)); });
|
|
179
|
-
i0.ɵɵelementStart(2, "mat-icon");
|
|
180
|
-
i0.ɵɵtext(3, " edit ");
|
|
181
|
-
i0.ɵɵelementEnd()();
|
|
182
|
-
i0.ɵɵelementStart(4, "button", 47)(5, "mat-icon");
|
|
183
|
-
i0.ɵɵtext(6, " drive_file_move ");
|
|
184
|
-
i0.ɵɵelementEnd()();
|
|
185
|
-
i0.ɵɵelementStart(7, "button", 48);
|
|
186
|
-
i0.ɵɵlistener("click", function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_mat_card_actions_5_Template_button_click_7_listener() { i0.ɵɵrestoreView(_r12); const col_r9 = i0.ɵɵnextContext().$implicit; const ctx_r3 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r3.cloneCopyFormInput(col_r9.id)); });
|
|
187
|
-
i0.ɵɵelementStart(8, "mat-icon");
|
|
188
|
-
i0.ɵɵtext(9, " file_copy ");
|
|
189
|
-
i0.ɵɵelementEnd()();
|
|
190
|
-
i0.ɵɵelement(10, "span", 10);
|
|
191
|
-
i0.ɵɵtemplate(11, FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_mat_card_actions_5_Conditional_11_Template, 4, 3, "button", 22)(12, FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_mat_card_actions_5_Conditional_12_Template, 3, 1, "button", 49)(13, FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_mat_card_actions_5_Conditional_13_Template, 4, 0, "button", 50)(14, FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_mat_card_actions_5_Conditional_14_Template, 4, 0, "button", 51);
|
|
192
|
-
i0.ɵɵelementEnd();
|
|
193
|
-
} if (rf & 2) {
|
|
194
|
-
const col_r9 = i0.ɵɵnextContext().$implicit;
|
|
195
|
-
const ctx_r3 = i0.ɵɵnextContext(5);
|
|
196
|
-
const moveInput_r17 = i0.ɵɵreference(46);
|
|
197
|
-
i0.ɵɵadvance();
|
|
198
|
-
i0.ɵɵproperty("matTooltip", "Edit " + col_r9.label + " input");
|
|
199
|
-
i0.ɵɵadvance(3);
|
|
200
|
-
i0.ɵɵproperty("matTooltip", "Move this input to another section")("matMenuTriggerFor", moveInput_r17)("matMenuTriggerData", col_r9);
|
|
201
|
-
i0.ɵɵadvance(3);
|
|
202
|
-
i0.ɵɵproperty("matTooltip", "Clone/ copy form input");
|
|
203
|
-
i0.ɵɵadvance(4);
|
|
204
|
-
i0.ɵɵconditional(!!ctx_r3.inputWillBeRemovedIn(col_r9.id) ? 11 : 12);
|
|
205
|
-
i0.ɵɵadvance(2);
|
|
206
|
-
i0.ɵɵconditional(ctx_r3.activeInput === col_r9.id && col_r9.element === "multipleInput" ? 13 : -1);
|
|
207
|
-
i0.ɵɵadvance();
|
|
208
|
-
i0.ɵɵconditional(ctx_r3.activeInput === col_r9.id && col_r9.element === "mscoaSelection" ? 14 : -1);
|
|
209
|
-
} }
|
|
210
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Template(rf, ctx) { if (rf & 1) {
|
|
211
|
-
const _r8 = i0.ɵɵgetCurrentView();
|
|
212
|
-
i0.ɵɵelementStart(0, "mat-card", 38);
|
|
213
|
-
i0.ɵɵpipe(1, "async");
|
|
214
|
-
i0.ɵɵlistener("cdkDragStarted", function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Template_mat_card_cdkDragStarted_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r3 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r3.dragging = true); })("cdkDragReleased", function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Template_mat_card_cdkDragReleased_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r3 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r3.dragging = false); })("mouseover", function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Template_mat_card_mouseover_0_listener() { const col_r9 = i0.ɵɵrestoreView(_r8).$implicit; const ctx_r3 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r3.activeInput = col_r9.id); });
|
|
215
|
-
i0.ɵɵtemplate(2, FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_div_2_Template, 1, 0, "div", 39)(3, FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_3_Template, 1, 6, "lib-t-form-input", 40)(4, FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_4_Template, 4, 0, "div", 41)(5, FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_mat_card_actions_5_Template, 15, 8, "mat-card-actions", 42);
|
|
216
|
-
i0.ɵɵelementEnd();
|
|
217
|
-
} if (rf & 2) {
|
|
218
|
-
const col_r9 = ctx.$implicit;
|
|
219
|
-
const step_r3 = i0.ɵɵnextContext(4).$implicit;
|
|
220
|
-
const ctx_r3 = i0.ɵɵnextContext();
|
|
221
|
-
i0.ɵɵclassMap("box inputCard col-md-" + (ctx_r3.dragging ? "12" : col_r9.colSize));
|
|
222
|
-
i0.ɵɵclassProp("inEditCol", i0.ɵɵpipeBind1(1, 7, ctx_r3.selectInputInEditId$) === col_r9.id);
|
|
223
|
-
i0.ɵɵadvance(3);
|
|
224
|
-
i0.ɵɵconditional(step_r3.sectionForm ? 3 : -1);
|
|
225
|
-
i0.ɵɵadvance();
|
|
226
|
-
i0.ɵɵconditional(col_r9.inputConfigErrors.length > 0 ? 4 : -1);
|
|
227
|
-
i0.ɵɵadvance();
|
|
228
|
-
i0.ɵɵproperty("ngIf", ctx_r3.activeInput === col_r9.id);
|
|
229
|
-
} }
|
|
230
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
231
|
-
const _r7 = i0.ɵɵgetCurrentView();
|
|
232
|
-
i0.ɵɵelementStart(0, "div", 35, 4);
|
|
233
|
-
i0.ɵɵlistener("cdkDropListDropped", function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_Template_div_cdkDropListDropped_0_listener($event) { i0.ɵɵrestoreView(_r7); const step_r3 = i0.ɵɵnextContext(3).$implicit; const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.dropItems($event, step_r3.sectionId)); });
|
|
234
|
-
i0.ɵɵrepeaterCreate(2, FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Template, 6, 9, "mat-card", 36, _forTrack1);
|
|
235
|
-
i0.ɵɵelementEnd();
|
|
236
|
-
i0.ɵɵelementStart(4, "section")(5, "button", 37);
|
|
237
|
-
i0.ɵɵlistener("click", function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r7); const step_r3 = i0.ɵɵnextContext(3).$implicit; const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.addNewInput(step_r3.sectionId)); });
|
|
238
|
-
i0.ɵɵelementStart(6, "mat-icon");
|
|
239
|
-
i0.ɵɵtext(7, "add");
|
|
240
|
-
i0.ɵɵelementEnd();
|
|
241
|
-
i0.ɵɵtext(8, " Add section Input ");
|
|
242
|
-
i0.ɵɵelementEnd()();
|
|
243
|
-
} if (rf & 2) {
|
|
244
|
-
const step_r3 = i0.ɵɵnextContext(3).$implicit;
|
|
245
|
-
i0.ɵɵproperty("cdkDropListData", step_r3.columns);
|
|
246
|
-
i0.ɵɵadvance(2);
|
|
247
|
-
i0.ɵɵrepeater(step_r3.columns);
|
|
248
|
-
} }
|
|
249
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
250
|
-
i0.ɵɵelement(0, "app-section-report", 30);
|
|
251
|
-
} if (rf & 2) {
|
|
252
|
-
const step_r3 = i0.ɵɵnextContext(3).$implicit;
|
|
253
|
-
i0.ɵɵproperty("sectionId", step_r3.sectionId);
|
|
254
|
-
} }
|
|
255
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
256
|
-
i0.ɵɵelementStart(0, "button", 32);
|
|
257
|
-
i0.ɵɵtext(1, " Back ");
|
|
258
|
-
i0.ɵɵelementEnd();
|
|
259
|
-
} if (rf & 2) {
|
|
260
|
-
const ctx_r3 = i0.ɵɵnextContext(4);
|
|
261
|
-
i0.ɵɵattribute("aria-label", "Go back to " + ctx_r3.getPreviousStepLabel());
|
|
262
|
-
} }
|
|
263
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
264
|
-
i0.ɵɵelementStart(0, "button", 33);
|
|
265
|
-
i0.ɵɵtext(1, " Next ");
|
|
266
|
-
i0.ɵɵelementEnd();
|
|
267
|
-
} if (rf & 2) {
|
|
268
|
-
const ctx_r3 = i0.ɵɵnextContext(4);
|
|
269
|
-
i0.ɵɵattribute("aria-label", "Continue to " + ctx_r3.getNextStepLabel());
|
|
270
|
-
} }
|
|
271
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
272
|
-
const _r18 = i0.ɵɵgetCurrentView();
|
|
273
|
-
i0.ɵɵelementStart(0, "button", 56);
|
|
274
|
-
i0.ɵɵlistener("click", function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r18); i0.ɵɵnextContext(4); const stepper_r19 = i0.ɵɵreference(4); return i0.ɵɵresetView(stepper_r19.reset()); });
|
|
275
|
-
i0.ɵɵtext(1, "Reset");
|
|
276
|
-
i0.ɵɵelementEnd();
|
|
277
|
-
} }
|
|
278
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Template(rf, ctx) { if (rf & 1) {
|
|
279
|
-
i0.ɵɵelementStart(0, "div", 29);
|
|
280
|
-
i0.ɵɵtemplate(1, FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_Template, 9, 1)(2, FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_2_Template, 1, 1, "app-section-report", 30);
|
|
281
|
-
i0.ɵɵelementStart(3, "div", 31);
|
|
282
|
-
i0.ɵɵtemplate(4, FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_4_Template, 2, 1, "button", 32)(5, FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_5_Template, 2, 1, "button", 33)(6, FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_6_Template, 2, 0, "button", 34);
|
|
283
|
-
i0.ɵɵelementEnd()();
|
|
284
|
-
} if (rf & 2) {
|
|
285
|
-
const ctx_r19 = i0.ɵɵnextContext(2);
|
|
286
|
-
const step_r3 = ctx_r19.$implicit;
|
|
287
|
-
const ɵ$index_12_r21 = ctx_r19.$index;
|
|
288
|
-
const ɵ$count_12_r22 = ctx_r19.$count;
|
|
289
|
-
const ctx_r3 = i0.ɵɵnextContext();
|
|
290
|
-
i0.ɵɵadvance();
|
|
291
|
-
i0.ɵɵconditional(!ctx_r3.openSectionReports[step_r3.sectionId] ? 1 : 2);
|
|
292
|
-
i0.ɵɵadvance(3);
|
|
293
|
-
i0.ɵɵconditional(!(ɵ$index_12_r21 === 0) ? 4 : -1);
|
|
294
|
-
i0.ɵɵadvance();
|
|
295
|
-
i0.ɵɵconditional(!(ɵ$index_12_r21 === ɵ$count_12_r22 - 1) ? 5 : -1);
|
|
296
|
-
i0.ɵɵadvance();
|
|
297
|
-
i0.ɵɵconditional(!!(ɵ$index_12_r21 === ɵ$count_12_r22 - 1) ? 6 : -1);
|
|
298
|
-
} }
|
|
299
|
-
function FormSectionStepperComponent_For_8_Conditional_0_DeferPlaceholder_3_Template(rf, ctx) { if (rf & 1) {
|
|
300
|
-
i0.ɵɵelementStart(0, "div", 57);
|
|
301
|
-
i0.ɵɵelement(1, "mat-spinner", 58);
|
|
302
|
-
i0.ɵɵelementEnd();
|
|
303
|
-
} }
|
|
304
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
305
|
-
i0.ɵɵelementStart(0, "mat-step", 15);
|
|
306
|
-
i0.ɵɵtemplate(1, FormSectionStepperComponent_For_8_Conditional_0_ng_template_1_Template, 10, 9, "ng-template", 16)(2, FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Template, 7, 4)(3, FormSectionStepperComponent_For_8_Conditional_0_DeferPlaceholder_3_Template, 2, 0);
|
|
307
|
-
i0.ɵɵdefer(4, 2, FormSectionStepperComponent_For_8_Conditional_0_Defer_4_DepsFn, null, 3);
|
|
308
|
-
i0.ɵɵdeferOnViewport(0, -1);
|
|
309
|
-
i0.ɵɵdeferPrefetchOnIdle();
|
|
310
|
-
i0.ɵɵelementEnd();
|
|
311
|
-
} if (rf & 2) {
|
|
312
|
-
const ctx_r19 = i0.ɵɵnextContext();
|
|
313
|
-
const step_r3 = ctx_r19.$implicit;
|
|
314
|
-
const $index_r23 = ctx_r19.$index;
|
|
315
|
-
const ctx_r3 = i0.ɵɵnextContext();
|
|
316
|
-
i0.ɵɵproperty("stepControl", step_r3.sectionForm || ctx_r3.getPlaceHolerForSection(step_r3.sectionId))("completed", step_r3.sectionIsSeen && !step_r3.sectionIsInvalid)("editable", ctx_r3.isEditable)("errorMessage", step_r3.sectionFormErrorMessage || "")("state", ctx_r3.getStepState(step_r3, $index_r23))("hasError", !(step_r3.sectionForm == null ? null : step_r3.sectionForm.valid) && !!(step_r3.sectionForm == null ? null : step_r3.sectionForm.touched));
|
|
317
|
-
} }
|
|
318
|
-
function FormSectionStepperComponent_For_8_Template(rf, ctx) { if (rf & 1) {
|
|
319
|
-
i0.ɵɵtemplate(0, FormSectionStepperComponent_For_8_Conditional_0_Template, 6, 6, "mat-step", 15);
|
|
320
|
-
} if (rf & 2) {
|
|
321
|
-
const step_r3 = ctx.$implicit;
|
|
322
|
-
const ctx_r3 = i0.ɵɵnextContext();
|
|
323
|
-
i0.ɵɵconditional(step_r3.sectionForm || ctx_r3.getPlaceHolerForSection(step_r3.sectionId) ? 0 : -1);
|
|
324
|
-
} }
|
|
325
|
-
function FormSectionStepperComponent_Defer_24_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
326
|
-
i0.ɵɵelement(0, "mat-spinner", 62);
|
|
327
|
-
} }
|
|
328
|
-
function FormSectionStepperComponent_Defer_24_Template(rf, ctx) { if (rf & 1) {
|
|
329
|
-
i0.ɵɵelementStart(0, "footer")(1, "mat-toolbar", 59)(2, "span", 60);
|
|
330
|
-
i0.ɵɵtext(3);
|
|
331
|
-
i0.ɵɵpipe(4, "async");
|
|
332
|
-
i0.ɵɵelementEnd();
|
|
333
|
-
i0.ɵɵelementStart(5, "button", 61)(6, "span");
|
|
334
|
-
i0.ɵɵtext(7);
|
|
335
|
-
i0.ɵɵelementEnd();
|
|
336
|
-
i0.ɵɵtemplate(8, FormSectionStepperComponent_Defer_24_Conditional_8_Template, 1, 0, "mat-spinner", 62);
|
|
337
|
-
i0.ɵɵelementEnd()()();
|
|
338
|
-
} if (rf & 2) {
|
|
339
|
-
const ctx_r3 = i0.ɵɵnextContext();
|
|
340
|
-
i0.ɵɵadvance(3);
|
|
341
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 4, ctx_r3.getSubmissionStatus$), " ");
|
|
342
|
-
i0.ɵɵadvance(2);
|
|
343
|
-
i0.ɵɵproperty("disabled", true);
|
|
344
|
-
i0.ɵɵadvance(2);
|
|
345
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r3.formSubmissionMessage(), " ");
|
|
346
|
-
i0.ɵɵadvance();
|
|
347
|
-
i0.ɵɵconditional(ctx_r3.submittingForm ? 8 : -1);
|
|
348
|
-
} }
|
|
349
|
-
function FormSectionStepperComponent_DeferPlaceholder_25_Template(rf, ctx) { if (rf & 1) {
|
|
350
|
-
i0.ɵɵelementStart(0, "footer");
|
|
351
|
-
i0.ɵɵelement(1, "div", 63);
|
|
352
|
-
i0.ɵɵelementEnd();
|
|
353
|
-
} }
|
|
354
|
-
function FormSectionStepperComponent_ng_template_30_Template(rf, ctx) { if (rf & 1) {
|
|
355
|
-
const _r24 = i0.ɵɵgetCurrentView();
|
|
356
|
-
i0.ɵɵelementStart(0, "button", 64);
|
|
357
|
-
i0.ɵɵlistener("click", function FormSectionStepperComponent_ng_template_30_Template_button_click_0_listener() { const sectionId_r25 = i0.ɵɵrestoreView(_r24).sectionId; const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.deleteSection(sectionId_r25)); });
|
|
358
|
-
i0.ɵɵelementStart(1, "mat-icon");
|
|
359
|
-
i0.ɵɵtext(2, "delete");
|
|
360
|
-
i0.ɵɵelementEnd();
|
|
361
|
-
i0.ɵɵtext(3, " Delete section");
|
|
362
|
-
i0.ɵɵelementEnd();
|
|
363
|
-
i0.ɵɵelementStart(4, "button", 64);
|
|
364
|
-
i0.ɵɵlistener("click", function FormSectionStepperComponent_ng_template_30_Template_button_click_4_listener() { const sectionId_r25 = i0.ɵɵrestoreView(_r24).sectionId; const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.toggleSectionReports(sectionId_r25)); });
|
|
365
|
-
i0.ɵɵelementStart(5, "mat-icon");
|
|
366
|
-
i0.ɵɵtext(6, "leaderboard");
|
|
367
|
-
i0.ɵɵelementEnd();
|
|
368
|
-
i0.ɵɵtext(7);
|
|
369
|
-
i0.ɵɵelementEnd();
|
|
370
|
-
} if (rf & 2) {
|
|
371
|
-
const sectionId_r25 = ctx.sectionId;
|
|
372
|
-
const ctx_r3 = i0.ɵɵnextContext();
|
|
373
|
-
i0.ɵɵadvance(7);
|
|
374
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r3.openSectionReports[sectionId_r25] ? "Close report" : "Section report", "");
|
|
375
|
-
} }
|
|
376
|
-
function FormSectionStepperComponent_ng_template_47_For_1_Template(rf, ctx) { if (rf & 1) {
|
|
377
|
-
const _r26 = i0.ɵɵgetCurrentView();
|
|
378
|
-
i0.ɵɵelementStart(0, "button", 66);
|
|
379
|
-
i0.ɵɵlistener("click", function FormSectionStepperComponent_ng_template_47_For_1_Template_button_click_0_listener() { const section_r27 = i0.ɵɵrestoreView(_r26).$implicit; const id_r28 = i0.ɵɵnextContext().id; const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.moveInputToSection(id_r28, section_r27.sectionId)); });
|
|
380
|
-
i0.ɵɵelementStart(1, "mat-icon");
|
|
381
|
-
i0.ɵɵtext(2, "folder");
|
|
382
|
-
i0.ɵɵelementEnd();
|
|
383
|
-
i0.ɵɵtext(3);
|
|
384
|
-
i0.ɵɵelementEnd();
|
|
385
|
-
} if (rf & 2) {
|
|
386
|
-
const section_r27 = ctx.$implicit;
|
|
387
|
-
const sectionId_r29 = i0.ɵɵnextContext().sectionId;
|
|
388
|
-
i0.ɵɵproperty("disabled", section_r27.sectionId === sectionId_r29);
|
|
389
|
-
i0.ɵɵadvance(3);
|
|
390
|
-
i0.ɵɵtextInterpolate1(" ", section_r27.label || "Untitled section", " ");
|
|
391
|
-
} }
|
|
392
|
-
function FormSectionStepperComponent_ng_template_47_Template(rf, ctx) { if (rf & 1) {
|
|
393
|
-
i0.ɵɵrepeaterCreate(0, FormSectionStepperComponent_ng_template_47_For_1_Template, 4, 2, "button", 65, _forTrack0);
|
|
394
|
-
} if (rf & 2) {
|
|
395
|
-
const ctx_r3 = i0.ɵɵnextContext();
|
|
396
|
-
i0.ɵɵrepeater(ctx_r3.selectFormStepsComputed);
|
|
397
|
-
} }
|
|
398
|
-
;
|
|
399
|
-
class FormSectionStepperComponent extends FormTowerControllerService {
|
|
400
|
-
constructor() {
|
|
401
|
-
super(...arguments);
|
|
402
|
-
this.store = inject(FormsStoreService);
|
|
403
|
-
this.loadingForm$ = this.store.selectors.selectLoadingForm$;
|
|
404
|
-
this.selectInputInEditId$ = this.store.selectors.selectInputInEditId$;
|
|
405
|
-
this.isEditable = true;
|
|
406
|
-
this.dragging = false;
|
|
407
|
-
this.drop = (event) => this.store.actionsFormBuilder.handleSectionDragDrop(event);
|
|
408
|
-
this.dropItems = (event, sectionId) => this.store.actionsFormBuilder.handleInputDragDrop(event, sectionId);
|
|
409
|
-
this.formDeleteSection = (sectionId) => this.store.actionsFormBuilder.formDeleteSection(sectionId);
|
|
410
|
-
this.addMultipleFormInput = (sectionId, multipleInputId) => this.store.actionsFormBuilder.addMultipleFormInput(sectionId, multipleInputId);
|
|
411
|
-
this.moveInputToSection = (inputId, targetSectionId) => this.store.actionsFormBuilder.moveInputToSection(inputId, targetSectionId);
|
|
412
|
-
this.reorderMultipleInputItems = (event, multipleInputId) => this.store.actionsFormBuilder.reorderMultipleInputItems(event, multipleInputId);
|
|
413
|
-
this.cloneCopyFormInput = (inputId) => this.store.actionsFormBuilder.cloneCopyFormInput(inputId);
|
|
414
|
-
this.multipleInputToggleLabel = (item) => this.store.actionsFormBuilder.multipleInputToggleLabel(item);
|
|
415
|
-
this.editInput = (item) => this.store.actionsFormBuilder.editInput(item);
|
|
416
|
-
this.addMultipleInputValueCalculationFunction = (item, multipleInputId) => this.store.actionsFormBuilder.addMultipleInputValueCalculationFunction(item, multipleInputId);
|
|
417
|
-
this.setActiveSection = ($event) => this.setMatActiveStepper($event.selectedIndex);
|
|
418
|
-
this.addInputToScoaSelection = (sectionId, scoaInputId) => this.store.actionsFormBuilder.addInputToScoaSelection(sectionId, scoaInputId);
|
|
419
|
-
this.addNewInput = (sectionId) => this.store.actionsFormBuilder.saveInput(sectionId);
|
|
420
|
-
this.addSection = () => this.store.actionsFormBuilder.handleAddSection();
|
|
421
|
-
this.setMatActiveStepper = (index) => setTimeout(() => {
|
|
422
|
-
if (this.stepper === undefined)
|
|
423
|
-
return;
|
|
424
|
-
this.stepper.selectedIndex = index;
|
|
425
|
-
}, 0);
|
|
426
|
-
this.mouseOverSection = null;
|
|
427
|
-
this.handleInput = (event, sectionId) => {
|
|
428
|
-
// Cast the event target to HTMLInputElement to access the value property
|
|
429
|
-
console.error('handleInput', event, sectionId);
|
|
430
|
-
const inputValue = event.target.value;
|
|
431
|
-
// Pass the input value to the store action
|
|
432
|
-
this.store.actionsFormBuilder?.stepTitleChangeStep(sectionId, inputValue);
|
|
433
|
-
event.stopPropagation();
|
|
434
|
-
event.preventDefault();
|
|
435
|
-
};
|
|
436
|
-
this.overId = null;
|
|
437
|
-
this.countdownSeconds = {};
|
|
438
|
-
this.inputWillBeRemovedIn = (id) => this.countdownSeconds[id]?.count;
|
|
439
|
-
this.getPlaceHolerForSection = (sectionId) => this.store.sectionPlaceholder[sectionId];
|
|
440
|
-
this.formDeleteInput = (item) => this.store.actionsFormBuilder.formDeleteInput(item);
|
|
441
|
-
this.openSectionReports = {};
|
|
442
|
-
this.toggleSectionReports = (sectionId) => this.openSectionReports[sectionId] = !this.openSectionReports[sectionId];
|
|
443
|
-
}
|
|
444
|
-
ngOnInit() {
|
|
445
|
-
this.store.registerFormChangeFn(this.initialize);
|
|
446
|
-
this.store.selectors.selectFormInEdit$.pipe(take(1), filter(form => form !== null && form !== undefined), tap(form => this.initialize(form.form))).subscribe();
|
|
447
|
-
}
|
|
448
|
-
get formBuilderFunctions() {
|
|
449
|
-
return {
|
|
450
|
-
getLatestAccountTree: () => this.NGX_T_FORMS_CONFIG.formBuilder.getScoaTree(),
|
|
451
|
-
getSCOAAccount: (SCOAAccount) => this.NGX_T_FORMS_CONFIG.formBuilder.getSCOAAccount(SCOAAccount),
|
|
452
|
-
multipleInputToggleForm: this.toggleMultipleInput.bind(this),
|
|
453
|
-
multipleInputSaveForm: this.saveMultipleInputForm.bind(this),
|
|
454
|
-
editInput: this.editInput.bind(this),
|
|
455
|
-
deleteInput: this.formDeleteInput.bind(this),
|
|
456
|
-
addFunction: this.addMultipleInputValueCalculationFunction.bind(this),
|
|
457
|
-
reorderItems: this.reorderMultipleInputItems.bind(this),
|
|
458
|
-
multipleInputToggleLabel: this.multipleInputToggleLabel.bind(this),
|
|
459
|
-
multipleInputEditRow: this.multipleInputEditRow.bind(this),
|
|
460
|
-
multipleInputDuplicateRow: this.multipleInputDuplicateRow.bind(this),
|
|
461
|
-
};
|
|
462
|
-
}
|
|
463
|
-
getPreviousStepLabel() {
|
|
464
|
-
if (this.stepper === undefined)
|
|
465
|
-
return '';
|
|
466
|
-
const currentIndex = this.stepper?.selectedIndex;
|
|
467
|
-
if (currentIndex > 0) {
|
|
468
|
-
return this.selectFormSteps()?.[currentIndex - 1]?.label;
|
|
469
|
-
}
|
|
470
|
-
return '';
|
|
471
|
-
}
|
|
472
|
-
getNextStepLabel() {
|
|
473
|
-
if (this.stepper === undefined)
|
|
474
|
-
return '';
|
|
475
|
-
const currentIndex = this.stepper?.selectedIndex;
|
|
476
|
-
const steps = this.selectFormSteps();
|
|
477
|
-
if (!steps)
|
|
478
|
-
return '';
|
|
479
|
-
if (currentIndex < steps.length - 1) {
|
|
480
|
-
return steps[currentIndex + 1]?.label;
|
|
481
|
-
}
|
|
482
|
-
return '';
|
|
483
|
-
}
|
|
484
|
-
getStepState(step, index) {
|
|
485
|
-
const activeStep = this.stepper?.selectedIndex === index;
|
|
486
|
-
if (activeStep)
|
|
487
|
-
return 'edit';
|
|
488
|
-
if (step.sectionForm?.touched && !step.sectionForm?.valid)
|
|
489
|
-
return 'error'; // Show error state for invalid touched forms
|
|
490
|
-
if (step.sectionForm?.valid)
|
|
491
|
-
return 'done'; // Show done state for valid forms
|
|
492
|
-
return 'number';
|
|
493
|
-
}
|
|
494
|
-
get getSubmissionStatus$() {
|
|
495
|
-
const progress = this.formProgress() || 0;
|
|
496
|
-
const steps = this.selectFormSteps();
|
|
497
|
-
return this.loadingForm$.pipe(map(loading => getSubmissionStatusFn(this.stepper, this.mainForm, progress, steps, loading)));
|
|
498
|
-
}
|
|
499
|
-
get selectFormStepsComputed() {
|
|
500
|
-
return this.selectFormSteps().map((step) => ({
|
|
501
|
-
...step,
|
|
502
|
-
columns: step.columns.map((col) => ({
|
|
503
|
-
...col,
|
|
504
|
-
inputConfigErrors: validateFormColumnInputs(col)
|
|
505
|
-
}))
|
|
506
|
-
}));
|
|
507
|
-
}
|
|
508
|
-
stopDeletion(id) {
|
|
509
|
-
if (this.countdownSeconds[id]) {
|
|
510
|
-
this.countdownSeconds[id]?.stop$.next();
|
|
511
|
-
delete this.countdownSeconds[id];
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
removeInput(item) {
|
|
515
|
-
if (this.countdownSeconds[item.id]) {
|
|
516
|
-
this.stopDeletion(item.id);
|
|
517
|
-
return;
|
|
518
|
-
}
|
|
519
|
-
this.countdownSeconds[item.id] = {
|
|
520
|
-
count: 5,
|
|
521
|
-
stop$: new Subject()
|
|
522
|
-
};
|
|
523
|
-
const countdown$ = timer(0, 1000).pipe(tap((secondsElapsed) => {
|
|
524
|
-
const data = this.countdownSeconds[item.id];
|
|
525
|
-
if (!data) {
|
|
526
|
-
return;
|
|
527
|
-
}
|
|
528
|
-
const remainingTime = 5 - secondsElapsed;
|
|
529
|
-
if (remainingTime <= 0) {
|
|
530
|
-
this.formDeleteInput(item);
|
|
531
|
-
this.stopDeletion(item.id);
|
|
532
|
-
// Stop and remove timer
|
|
533
|
-
// Actual deletion logic here, e.g., remove the element by id
|
|
534
|
-
// document.getElementById(id)?.remove();
|
|
535
|
-
}
|
|
536
|
-
else {
|
|
537
|
-
data.count = remainingTime;
|
|
538
|
-
}
|
|
539
|
-
}), takeUntil(this.countdownSeconds[item.id]?.stop$));
|
|
540
|
-
countdown$?.subscribe({
|
|
541
|
-
complete: () => {
|
|
542
|
-
console.log('Deletion stopped or completed');
|
|
543
|
-
}
|
|
544
|
-
});
|
|
545
|
-
}
|
|
546
|
-
deleteSection(sectionId) {
|
|
547
|
-
if (!sectionId) {
|
|
548
|
-
return;
|
|
549
|
-
}
|
|
550
|
-
if (this.countdownSeconds[sectionId]) {
|
|
551
|
-
this.stopDeletion(sectionId);
|
|
552
|
-
return;
|
|
553
|
-
}
|
|
554
|
-
this.countdownSeconds[sectionId] = {
|
|
555
|
-
count: 5,
|
|
556
|
-
stop$: new Subject()
|
|
557
|
-
};
|
|
558
|
-
const countdown$ = timer(0, 1000).pipe(tap((secondsElapsed) => {
|
|
559
|
-
const data = this.countdownSeconds[sectionId];
|
|
560
|
-
if (!data) {
|
|
561
|
-
return;
|
|
562
|
-
}
|
|
563
|
-
const remainingTime = 5 - secondsElapsed;
|
|
564
|
-
if (remainingTime <= 0) {
|
|
565
|
-
this.formDeleteSection(sectionId);
|
|
566
|
-
this.stopDeletion(sectionId);
|
|
567
|
-
// Stop and remove timer
|
|
568
|
-
// Actual deletion logic here, e.g., remove the element by id
|
|
569
|
-
// document.getElementById(id)?.remove();
|
|
570
|
-
}
|
|
571
|
-
else {
|
|
572
|
-
data.count = remainingTime;
|
|
573
|
-
}
|
|
574
|
-
}), takeUntil(this.countdownSeconds[sectionId]?.stop$));
|
|
575
|
-
countdown$?.subscribe({
|
|
576
|
-
complete: () => {
|
|
577
|
-
console.log('Deletion stopped or completed');
|
|
578
|
-
}
|
|
579
|
-
});
|
|
580
|
-
}
|
|
581
|
-
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵFormSectionStepperComponent_BaseFactory; return function FormSectionStepperComponent_Factory(__ngFactoryType__) { return (ɵFormSectionStepperComponent_BaseFactory || (ɵFormSectionStepperComponent_BaseFactory = i0.ɵɵgetInheritedFactory(FormSectionStepperComponent)))(__ngFactoryType__ || FormSectionStepperComponent); }; })(); }
|
|
582
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormSectionStepperComponent, selectors: [["app-form-section-stepper"]], viewQuery: function FormSectionStepperComponent_Query(rf, ctx) { if (rf & 1) {
|
|
583
|
-
i0.ɵɵviewQuery(_c0, 5);
|
|
584
|
-
} if (rf & 2) {
|
|
585
|
-
let _t;
|
|
586
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.stepper = _t.first);
|
|
587
|
-
} }, features: [i0.ɵɵInheritDefinitionFeature], decls: 48, vars: 10, consts: [["stepper", "", "formSections", "cdkDropList"], ["sectionMenu", "matMenu"], ["sectionType", "matMenu"], ["moveInput", "matMenu"], ["InputList", "cdkDropList"], [1, "mainCard"], [1, "loading-container"], ["c", "", "lass", "form-stepper", "orientation", "vertical", "aria-label", "Form sections stepper", "cdkDropList", "", 3, "cdkDropListDropped", "selectionChange", "linear", "animationDuration", "cdkDropListData"], [2, "text-align", "center"], [2, "position", "sticky", "bottom", "0"], [1, "spacer"], ["color", "primary", "mat-flat-button", "", 3, "click"], ["matMenuContent", ""], ["mat-menu-item", ""], ["diameter", "48", "aria-label", "Loading form"], [3, "stepControl", "completed", "editable", "errorMessage", "state", "hasError"], ["matStepLabel", ""], ["cdkDrag", "", 1, "step-label-container"], [1, "step-label-text"], ["placeholder", "Enter section title", 1, "section-title-input", 3, "input", "value"], [3, "error"], ["class", "tour-trigger ", 4, "ngIf"], ["color", "warn", "mat-stroked-button", ""], ["color", "primary", "mat-icon-button", "", 3, "click", "matMenuTriggerData", "matMenuTriggerFor"], [1, "tour-trigger"], ["tourAnchor", "Form-Tour-trigger", "matTooltip", "Start section tour", "mat-flat-button", ""], ["color", "warn", "mat-stroked-button", "", 3, "mouseover", "mouseout", "click"], [2, "display", "flex", "align-items", "center", "gap", "4px", "padding", "8px"], ["color", "primary", 1, "cancelProgress", 2, "margin-right", "5px", 3, "value"], [1, "step-content"], [3, "sectionId"], [1, "step-actions"], ["mat-button", "", "matStepperPrevious", "", "type", "button", 1, "navigation-button"], ["mat-flat-button", "", "matStepperNext", "", "color", "primary", "type", "button", 1, "navigation-button"], ["mat-button", ""], ["cdkDropList", "", 1, "row", "form-section", 3, "cdkDropListDropped", "cdkDropListData"], ["cdkDrag", "", 3, "inEditCol", "class"], ["mat-stroked-button", "", 2, "width", "100%", 3, "click"], ["cdkDrag", "", 3, "cdkDragStarted", "cdkDragReleased", "mouseover"], ["class", "custom-placeholder", 4, "cdkDragPlaceholder"], [3, "editorMode", "tourAnchor", "formBuilderFunctions", "inputConfig", "formGroup"], [1, "error"], [4, "ngIf"], [1, "custom-placeholder"], [3, "valueChange", "editorMode", "tourAnchor", "formBuilderFunctions", "inputConfig", "formGroup"], [2, "padding-left", "28px"], ["color", "primary", "mat-icon-button", "", 3, "click", "matTooltip"], ["moveInput", "", "mat-icon-button", "", 3, "matTooltip", "matMenuTriggerFor", "matMenuTriggerData"], ["moveInput", "", "mat-icon-button", "", 3, "click", "matTooltip"], ["color", "warn", "mat-icon-button", "", 3, "matTooltip"], ["matTooltip", "Add input to list control form", "color", "accent", "mat-flat-button", ""], ["matTooltip", "Extend SCOA Segments with additional inputs", "color", "accent", "mat-flat-button", ""], [2, "display", "flex", "align-items", "center"], ["color", "warn", "mat-icon-button", "", 3, "click", "matTooltip"], ["matTooltip", "Add input to list control form", "color", "accent", "mat-flat-button", "", 3, "click"], ["matTooltip", "Extend SCOA Segments with additional inputs", "color", "accent", "mat-flat-button", "", 3, "click"], ["mat-button", "", 3, "click"], [2, "padding", "50px", "display", "flex", "justify-content", "center", "align-items", "center", "text-align", "center"], ["diameter", "24"], ["role", "toolbar", "aria-label", "Form submission actions", 1, "submission-toolbar"], ["role", "status", 1, "submission-status"], ["mat-raised-button", "", "color", "primary", "aria-label", "Submit form", 3, "disabled"], ["diameter", "10"], [1, "submission-toolbar-placeholder"], ["mat-menu-item", "", 3, "click"], ["mat-menu-item", "", 3, "disabled"], ["mat-menu-item", "", 3, "click", "disabled"]], template: function FormSectionStepperComponent_Template(rf, ctx) { if (rf & 1) {
|
|
588
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
|
589
|
-
i0.ɵɵelementStart(0, "mat-card", 5);
|
|
590
|
-
i0.ɵɵtemplate(1, FormSectionStepperComponent_Conditional_1_Template, 2, 0, "div", 6);
|
|
591
|
-
i0.ɵɵpipe(2, "async");
|
|
592
|
-
i0.ɵɵelementStart(3, "mat-stepper", 7, 0);
|
|
593
|
-
i0.ɵɵpipe(6, "async");
|
|
594
|
-
i0.ɵɵlistener("cdkDropListDropped", function FormSectionStepperComponent_Template_mat_stepper_cdkDropListDropped_3_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.drop($event)); })("selectionChange", function FormSectionStepperComponent_Template_mat_stepper_selectionChange_3_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.handleStepChange($event)); });
|
|
595
|
-
i0.ɵɵrepeaterCreate(7, FormSectionStepperComponent_For_8_Template, 1, 1, null, null, _forTrack0);
|
|
596
|
-
i0.ɵɵelementEnd();
|
|
597
|
-
i0.ɵɵelementStart(9, "section", 8);
|
|
598
|
-
i0.ɵɵelement(10, "br");
|
|
599
|
-
i0.ɵɵtext(11, " A form section helps organize related input fields together. ");
|
|
600
|
-
i0.ɵɵelement(12, "br");
|
|
601
|
-
i0.ɵɵtext(13, " Click the ");
|
|
602
|
-
i0.ɵɵelementStart(14, "strong");
|
|
603
|
-
i0.ɵɵtext(15, "\"Add Section\"");
|
|
604
|
-
i0.ɵɵelementEnd();
|
|
605
|
-
i0.ɵɵtext(16, " button below to create a new section. ");
|
|
606
|
-
i0.ɵɵelementEnd();
|
|
607
|
-
i0.ɵɵelementStart(17, "mat-card-actions", 9);
|
|
608
|
-
i0.ɵɵelement(18, "span", 10);
|
|
609
|
-
i0.ɵɵelementStart(19, "button", 11);
|
|
610
|
-
i0.ɵɵlistener("click", function FormSectionStepperComponent_Template_button_click_19_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.addSection()); });
|
|
611
|
-
i0.ɵɵelementStart(20, "mat-icon");
|
|
612
|
-
i0.ɵɵtext(21, "add");
|
|
613
|
-
i0.ɵɵelementEnd();
|
|
614
|
-
i0.ɵɵtext(22, " Add Section ");
|
|
615
|
-
i0.ɵɵelementEnd();
|
|
616
|
-
i0.ɵɵelement(23, "span", 10);
|
|
617
|
-
i0.ɵɵelementEnd();
|
|
618
|
-
i0.ɵɵtemplate(24, FormSectionStepperComponent_Defer_24_Template, 9, 6)(25, FormSectionStepperComponent_DeferPlaceholder_25_Template, 2, 0);
|
|
619
|
-
i0.ɵɵdefer(26, 24, FormSectionStepperComponent_Defer_26_DepsFn, null, 25);
|
|
620
|
-
i0.ɵɵdeferOnIdle();
|
|
621
|
-
i0.ɵɵdeferPrefetchOnViewport(0, -1);
|
|
622
|
-
i0.ɵɵelementEnd();
|
|
623
|
-
i0.ɵɵelementStart(28, "mat-menu", null, 1);
|
|
624
|
-
i0.ɵɵtemplate(30, FormSectionStepperComponent_ng_template_30_Template, 8, 1, "ng-template", 12);
|
|
625
|
-
i0.ɵɵelementEnd();
|
|
626
|
-
i0.ɵɵelementStart(31, "mat-menu", null, 2)(33, "button", 13)(34, "mat-icon");
|
|
627
|
-
i0.ɵɵtext(35, "visibility");
|
|
628
|
-
i0.ɵɵelementEnd();
|
|
629
|
-
i0.ɵɵtext(36, " view only");
|
|
630
|
-
i0.ɵɵelementEnd();
|
|
631
|
-
i0.ɵɵelementStart(37, "button", 13)(38, "mat-icon");
|
|
632
|
-
i0.ɵɵtext(39, "visibility_off");
|
|
633
|
-
i0.ɵɵelementEnd();
|
|
634
|
-
i0.ɵɵtext(40, " system");
|
|
635
|
-
i0.ɵɵelementEnd();
|
|
636
|
-
i0.ɵɵelementStart(41, "button", 13)(42, "mat-icon");
|
|
637
|
-
i0.ɵɵtext(43, "edit");
|
|
638
|
-
i0.ɵɵelementEnd();
|
|
639
|
-
i0.ɵɵtext(44, " user edit");
|
|
640
|
-
i0.ɵɵelementEnd()();
|
|
641
|
-
i0.ɵɵelementStart(45, "mat-menu", null, 3);
|
|
642
|
-
i0.ɵɵtemplate(47, FormSectionStepperComponent_ng_template_47_Template, 2, 0, "ng-template", 12);
|
|
643
|
-
i0.ɵɵelementEnd();
|
|
644
|
-
} if (rf & 2) {
|
|
645
|
-
i0.ɵɵadvance();
|
|
646
|
-
i0.ɵɵconditional(i0.ɵɵpipeBind1(2, 6, ctx.loadingForm$) ? 1 : -1);
|
|
647
|
-
i0.ɵɵadvance(2);
|
|
648
|
-
i0.ɵɵstyleProp("display", i0.ɵɵpipeBind1(6, 8, ctx.loadingForm$) ? "none" : "block");
|
|
649
|
-
i0.ɵɵproperty("linear", !ctx.isEditable)("animationDuration", "300")("cdkDropListData", ctx.selectFormStepsComputed);
|
|
650
|
-
i0.ɵɵadvance(4);
|
|
651
|
-
i0.ɵɵrepeater(ctx.selectFormStepsComputed);
|
|
652
|
-
} }, dependencies: [CommonModule, i2.NgIf, i2.AsyncPipe, MatModulesModule, i2$2.CdkDropList, i2$2.CdkDrag, i2$1.MatButton, i2$1.MatIconButton, i3.MatCard, i3.MatCardActions, i3$1.MatStep, i3$1.MatStepLabel, i3$1.MatStepper, i6.MatIcon, i6$1.MatMenu, i6$1.MatMenuItem, i6$1.MatMenuContent, i6$1.MatMenuTrigger, i7.MatProgressSpinner, i8.MatTooltip, TourMatMenuModule, i7$1.TourAnchorMatMenuDirective, ReactiveFormsModule,
|
|
653
|
-
FormsModule], styles: [".mainCard[_ngcontent-%COMP%]{margin-top:0;min-height:45vh;box-shadow:none;max-width:768px;margin-left:auto;left:0;margin-right:auto;border-radius:12px;border:solid 1px var(--mat-divider-color, var(--mat-sys-outline))!important}.inEditCol[_ngcontent-%COMP%]{box-shadow:var(--mdc-elevated-card-container-elevation);border:solid 1px #243D91!important}.inputCard[_ngcontent-%COMP%]{box-shadow:none}.cancelProgress[_ngcontent-%COMP%]{height:24px!important;width:24px!important}.numbers[_ngcontent-%COMP%]{position:absolute!important;right:0}mat-vertical-stepper[_ngcontent-%COMP%]{margin:5px}.list[_ngcontent-%COMP%]{min-height:60px;display:block}.box[_ngcontent-%COMP%]{padding:4px;cursor:move}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.box[_ngcontent-%COMP%]:last-child{border:none}.list.cdk-drop-list-dragging[_ngcontent-%COMP%] .example-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.custom-placeholder[_ngcontent-%COMP%]{background:#ccc;border:dotted 3px #999;min-width:100%;min-height:60px;transition:transform .25s cubic-bezier(0,0,.2,1)}.section-title-input[_ngcontent-%COMP%]{border:none;background-color:transparent;font-size:14px;font-weight:600;color:#333;padding-top:12px;padding-bottom:12px;outline:none;width:calc(100% - 54px);transition:border-bottom-color .3s ease-in-out}.section-title-input[_ngcontent-%COMP%]:focus{border-bottom:1px solid #007bff}.inputElement[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 .2rem #007bff40}.headerToolbar[_ngcontent-%COMP%]{position:sticky;top:0;min-width:100%;background:var(--mdc-elevated-card-container-color)} mat-step-header .mat-step-label{width:100%}.error[_ngcontent-%COMP%]{color:var(--mat-form-field-error-text-color, var(--mat-app-error));display:flex;align-items:center}.submission-toolbar[_ngcontent-%COMP%]{z-index:1000;background:#ffffff0d;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-top:var(--mat-divider-width) solid var(--mat-divider-color);padding:8px 16px;display:flex;justify-content:flex-end;gap:16px}.submission-status[_ngcontent-%COMP%]{font-size:12px;opacity:.87;display:flex;align-items:center}"] }); }
|
|
654
|
-
}
|
|
655
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadataAsync(FormSectionStepperComponent, () => [import('./ngx-t-forms-ngx-t-forms-DaAFB-HX.mjs').then(function (n) { return n.G; }).then(m => m.TFormInputComponent), import('./ngx-t-forms-section-report.component-C_h0KIR4.mjs').then(m => m.SectionReportComponent)], (TFormInputComponent, SectionReportComponent) => { i0.ɵsetClassMetadata(FormSectionStepperComponent, [{
|
|
656
|
-
type: Component,
|
|
657
|
-
args: [{ selector: 'app-form-section-stepper', standalone: true, imports: [
|
|
658
|
-
CommonModule,
|
|
659
|
-
MatModulesModule,
|
|
660
|
-
TFormInputComponent,
|
|
661
|
-
TourMatMenuModule,
|
|
662
|
-
ReactiveFormsModule,
|
|
663
|
-
FormsModule,
|
|
664
|
-
SectionReportComponent
|
|
665
|
-
], template: "<mat-card class=\"mainCard\">\r\n\r\n @if (loadingForm$|async) {\r\n <div class=\"loading-container\">\r\n <mat-spinner diameter=\"48\" aria-label=\"Loading form\" />\r\n </div>\r\n }\r\n <mat-stepper [style.display]=\"(loadingForm$|async)?'none':'block'\" #stepper c lass=\"form-stepper\"\r\n orientation=\"vertical\" [linear]=\"!isEditable\" aria-label=\"Form sections stepper\" [animationDuration]=\"'300'\"\r\n cdkDropList #formSections=\"cdkDropList\" [cdkDropListData]=\"selectFormStepsComputed\"\r\n (cdkDropListDropped)=\"drop($event)\" (selectionChange)=\"handleStepChange($event)\">\r\n\r\n @for (step of selectFormStepsComputed; track step.sectionId) {\r\n @if(step.sectionForm || getPlaceHolerForSection(step.sectionId)){\r\n <mat-step [stepControl]=\"step.sectionForm || getPlaceHolerForSection(step.sectionId) \"\r\n [completed]=\"step.sectionIsSeen && !step.sectionIsInvalid\" [editable]=\"isEditable\"\r\n [errorMessage]=\"step.sectionFormErrorMessage||''\" [state]=\"getStepState(step,$index)\"\r\n [hasError]=\"!step.sectionForm?.valid && !!step.sectionForm?.touched\">\r\n <ng-template matStepLabel>\r\n <div cdkDrag class=\"step-label-container \" [attr.aria-label]=\"'Section ' + step.label\">\r\n <span class=\"step-label-text\">\r\n\r\n <input (input)=\"handleInput($event,step.sectionId)\" class=\"section-title-input\"\r\n placeholder=\"Enter section title\" [value]=\"step.label \">\r\n </span>\r\n @if (step.sectionIsSeen) {\r\n <mat-icon [class.error]=\"step.sectionIsInvalid\"\r\n [attr.aria-label]=\"step.sectionIsInvalid ? 'Section has errors' : 'Section completed'\">\r\n {{step.sectionIsSeen}}\r\n </mat-icon>\r\n }\r\n <span class=\"tour-trigger \" *ngIf=\"(step)?.activeSectionHasTour&&!!step.isActive \">\r\n <button tourAnchor=\"Form-Tour-trigger\" matTooltip=\"Start section tour\" mat-flat-button>\r\n <mat-icon>tour</mat-icon>\r\n </button>\r\n </span>\r\n <span class=\"spacer\"></span>\r\n\r\n @if(!!inputWillBeRemovedIn(step.sectionId) ){\r\n <button (mouseover)=\"overId = step.sectionId\" (mouseout)=\"overId = null\"\r\n (click)=\"deleteSection(step.sectionId)\" color=\"warn\" mat-stroked-button>\r\n <div style=\"display: flex; align-items: center;gap:4px;padding:8px;\">\r\n <mat-progress-spinner style=\"margin-right: 5px;\" color=\"primary\" class=\"cancelProgress\"\r\n [value]=\"((inputWillBeRemovedIn(step.sectionId)||0)/5)*100\">\r\n </mat-progress-spinner>\r\n\r\n {{overId === step.sectionId ? 'Click to cancel':'Deleting in'}}\r\n {{inputWillBeRemovedIn(step.sectionId)}}\r\n </div>\r\n\r\n </button>\r\n }\r\n <button (click)=\"$event.stopPropagation();\" [matMenuTriggerData]=\"{sectionId:step.sectionId}\"\r\n [matMenuTriggerFor]=\"sectionMenu\" color=\"primary\" mat-icon-button>\r\n <mat-icon>\r\n <!-- {{section.sectionId === ( activeSectionId())? 'expand_circle_down':'more_horiz'}} -->\r\n more_horiz\r\n </mat-icon>\r\n </button>\r\n\r\n\r\n\r\n </div>\r\n </ng-template>\r\n\r\n @defer (on viewport; prefetch on idle) {\r\n <div class=\"step-content\">\r\n @if(!openSectionReports[step.sectionId]){\r\n <div (cdkDropListDropped)=\"dropItems($event,step.sectionId)\" [cdkDropListData]=\"step.columns\" cdkDropList\r\n #InputList=\"cdkDropList\" class=\"row form-section\">\r\n @for (col of step.columns; track col.id) {\r\n <mat-card cdkDrag (cdkDragStarted)=\"dragging =true\" (cdkDragReleased)=\"dragging =false\"\r\n [class.inEditCol]=\"(selectInputInEditId$|async) === col.id\"\r\n [class]=\"'box inputCard col-md-'+(dragging?'12':col.colSize)\" (mouseover)=\"activeInput =col.id\">\r\n <div class=\"custom-placeholder\" *cdkDragPlaceholder></div>\r\n @if(step.sectionForm){\r\n <lib-t-form-input [editorMode]=\"true\" [tourAnchor]=\"col.id\" (valueChange)=\"updateValue(col.id,$event)\"\r\n [formBuilderFunctions]=\"formBuilderFunctions\" [inputConfig]=\"col\" [formGroup]=\"step.sectionForm\"\r\n [attr.aria-label]=\"col?.label || ''\">\r\n </lib-t-form-input>\r\n }\r\n\r\n\r\n\r\n @if (col.inputConfigErrors.length > 0) {\r\n <div class=\"error\">\r\n\r\n <ul style=\"\r\n padding-left: 28px;\">\r\n @for(error of col.inputConfigErrors;track error.key+error.message){\r\n <li>{{error.message}}</li>\r\n }\r\n </ul>\r\n\r\n </div>\r\n }\r\n <mat-card-actions *ngIf=\"activeInput === col.id\">\r\n\r\n <button color=\"primary\" [matTooltip]=\"'Edit ' + col.label +' input'\" (click)=\"editInput(col)\"\r\n mat-icon-button>\r\n <mat-icon>\r\n edit\r\n </mat-icon>\r\n\r\n </button>\r\n\r\n <button [matTooltip]=\"'Move this input to another section'\" moveInput [matMenuTriggerFor]=\"moveInput\"\r\n [matMenuTriggerData]=\"col\" mat-icon-button>\r\n\r\n <mat-icon>\r\n drive_file_move\r\n </mat-icon>\r\n </button>\r\n\r\n <button [matTooltip]=\"'Clone/ copy form input'\" (click)=\"cloneCopyFormInput(col.id)\" moveInput\r\n mat-icon-button>\r\n\r\n <mat-icon>\r\n file_copy\r\n </mat-icon>\r\n </button>\r\n <span class=\"spacer\"></span>\r\n\r\n\r\n\r\n @if(!!inputWillBeRemovedIn(col.id) ){\r\n <button (mouseover)=\"overId = col.id\" (mouseout)=\"overId = null\" (click)=\"removeInput(col)\" color=\"warn\"\r\n mat-stroked-button>\r\n <div style=\"display: flex; align-items: center;\">\r\n <mat-progress-spinner style=\"margin-right: 5px;\" color=\"primary\" class=\"cancelProgress\"\r\n [value]=\"((inputWillBeRemovedIn(col.id)||0)/5)*100\">\r\n </mat-progress-spinner>\r\n\r\n {{overId === col.id ? 'Click to cancel':'Deleting in'}} {{inputWillBeRemovedIn(col.id)}}\r\n </div>\r\n\r\n </button>\r\n\r\n }@else {\r\n <button color=\"warn\" [matTooltip]=\"'Delete '+ col.label + ' input'\" (click)=\"removeInput(col)\"\r\n mat-icon-button>\r\n\r\n <mat-icon>\r\n delete\r\n </mat-icon>\r\n </button>\r\n }\r\n @if (activeInput === col.id && col.element ==='multipleInput') {\r\n\r\n <button matTooltip=\"Add input to list control form\" (click)=\"addMultipleFormInput(col.sectionId,col.id)\"\r\n color=\"accent\" mat-flat-button>\r\n <mat-icon>add</mat-icon>\r\n Add Form Input\r\n </button>\r\n }\r\n @if (activeInput === col.id && col.element ==='mscoaSelection') {\r\n\r\n <button matTooltip=\"Extend SCOA Segments with additional inputs\"\r\n (click)=\"addInputToScoaSelection(col.sectionId,col.id)\" color=\"accent\" mat-flat-button>\r\n <mat-icon>add</mat-icon>\r\n Add Form Input\r\n </button>\r\n }\r\n\r\n </mat-card-actions>\r\n </mat-card>\r\n }\r\n </div>\r\n <section>\r\n <button style=\"width: 100%;\" (click)=\"addNewInput(step.sectionId)\" mat-stroked-button>\r\n <mat-icon>add</mat-icon>\r\n Add section Input\r\n </button>\r\n </section>\r\n }@else {\r\n <app-section-report [sectionId]=\"step.sectionId \"></app-section-report>\r\n }\r\n <div class=\"step-actions\">\r\n @if(!$first) {\r\n <button mat-button matStepperPrevious type=\"button\" class=\"navigation-button\"\r\n [attr.aria-label]=\"'Go back to ' + getPreviousStepLabel()\">\r\n\r\n Back\r\n </button>\r\n }\r\n @if (!$last) {\r\n <button mat-flat-button matStepperNext color=\"primary\" type=\"button\" class=\"navigation-button\"\r\n [attr.aria-label]=\"'Continue to ' + getNextStepLabel()\">\r\n Next\r\n </button>\r\n }\r\n @if (!!$last) {\r\n <button mat-button (click)=\"stepper.reset()\">Reset</button>\r\n }\r\n\r\n </div>\r\n </div>\r\n } @placeholder {\r\n <div style=\"padding: 50px;display:flex;justify-content:center;align-items:center; text-align: center;\">\r\n <mat-spinner diameter=\"24\" />\r\n </div>\r\n }\r\n\r\n </mat-step>\r\n }\r\n }\r\n </mat-stepper>\r\n <section style=\"text-align: center;\">\r\n <br>\r\n A form section helps organize related input fields together.\r\n <br>\r\n Click the <strong>\"Add Section\"</strong> button below to create a new section.\r\n </section>\r\n <mat-card-actions style=\"position: sticky;bottom: 0;\">\r\n <span class=\"spacer\"></span>\r\n <button (click)=\"addSection()\" color=\"primary\" mat-flat-button>\r\n <mat-icon>add</mat-icon>\r\n Add Section\r\n </button>\r\n <span class=\"spacer\"></span>\r\n </mat-card-actions>\r\n <!-- Defer the footer toolbar until after the main form is loaded -->\r\n @defer (on idle; prefetch on viewport) {\r\n <footer><mat-toolbar class=\"submission-toolbar\" role=\"toolbar\" aria-label=\"Form submission actions\">\r\n <span class=\"submission-status\" role=\"status\">\r\n {{getSubmissionStatus$|async}}\r\n </span>\r\n <button mat-raised-button color=\"primary\" [disabled]=\"true\" aria-label=\"Submit form\">\r\n <span>\r\n {{ formSubmissionMessage()}}\r\n </span>\r\n @if(submittingForm){\r\n <mat-spinner diameter=\"10\"></mat-spinner>\r\n }\r\n\r\n </button>\r\n </mat-toolbar>\r\n </footer>\r\n } @placeholder {\r\n <!-- Simple placeholder for the footer that maintains layout -->\r\n <footer>\r\n <div class=\"submission-toolbar-placeholder\"></div>\r\n </footer>\r\n }\r\n\r\n</mat-card>\r\n<mat-menu #sectionMenu=\"matMenu\">\r\n <ng-template matMenuContent let-sectionId=\"sectionId\">\r\n <!-- <button mat-menu-item [matMenuTriggerFor]=\"sectionType\">\r\n <mat-icon> disabled_visible</mat-icon>\r\n Set visibility type</button> -->\r\n <button (click)=\"deleteSection(sectionId)\" mat-menu-item>\r\n <mat-icon>delete</mat-icon>\r\n Delete section</button>\r\n <button (click)=\"toggleSectionReports(sectionId)\" mat-menu-item>\r\n <mat-icon>leaderboard</mat-icon>\r\n {{openSectionReports[sectionId]?'Close report': 'Section report'}}</button>\r\n </ng-template>\r\n</mat-menu>\r\n<mat-menu #sectionType=\"matMenu\">\r\n <button mat-menu-item>\r\n <mat-icon>visibility</mat-icon>\r\n view only</button>\r\n <button mat-menu-item>\r\n <mat-icon>visibility_off</mat-icon>\r\n system</button>\r\n <button mat-menu-item>\r\n <mat-icon>edit</mat-icon>\r\n user edit</button>\r\n</mat-menu>\r\n<mat-menu #moveInput=\"matMenu\">\r\n <ng-template matMenuContent let-id=\"id\" let-sectionId=\"sectionId\">\r\n @for (section of ( selectFormStepsComputed); track section.sectionId) {\r\n <button [disabled]=\"section.sectionId === sectionId\" (click)=\"moveInputToSection(id,section.sectionId)\"\r\n mat-menu-item>\r\n <mat-icon>folder</mat-icon>\r\n {{section.label || 'Untitled section'}}\r\n </button>\r\n }\r\n\r\n </ng-template>\r\n</mat-menu>", styles: [".mainCard{margin-top:0;min-height:45vh;box-shadow:none;max-width:768px;margin-left:auto;left:0;margin-right:auto;border-radius:12px;border:solid 1px var(--mat-divider-color, var(--mat-sys-outline))!important}.inEditCol{box-shadow:var(--mdc-elevated-card-container-elevation);border:solid 1px #243D91!important}.inputCard{box-shadow:none}.cancelProgress{height:24px!important;width:24px!important}.numbers{position:absolute!important;right:0}mat-vertical-stepper{margin:5px}.list{min-height:60px;display:block}.box{padding:4px;cursor:move}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.box:last-child{border:none}.list.cdk-drop-list-dragging .example-box:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.custom-placeholder{background:#ccc;border:dotted 3px #999;min-width:100%;min-height:60px;transition:transform .25s cubic-bezier(0,0,.2,1)}.section-title-input{border:none;background-color:transparent;font-size:14px;font-weight:600;color:#333;padding-top:12px;padding-bottom:12px;outline:none;width:calc(100% - 54px);transition:border-bottom-color .3s ease-in-out}.section-title-input:focus{border-bottom:1px solid #007bff}.inputElement:focus{box-shadow:0 0 0 .2rem #007bff40}.headerToolbar{position:sticky;top:0;min-width:100%;background:var(--mdc-elevated-card-container-color)}::ng-deep mat-step-header .mat-step-label{width:100%}.error{color:var(--mat-form-field-error-text-color, var(--mat-app-error));display:flex;align-items:center}.submission-toolbar{z-index:1000;background:#ffffff0d;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-top:var(--mat-divider-width) solid var(--mat-divider-color);padding:8px 16px;display:flex;justify-content:flex-end;gap:16px}.submission-status{font-size:12px;opacity:.87;display:flex;align-items:center}\n"] }]
|
|
666
|
-
}], null, { stepper: [{
|
|
667
|
-
type: ViewChild,
|
|
668
|
-
args: ['stepper']
|
|
669
|
-
}] }); }); })();
|
|
670
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FormSectionStepperComponent, { className: "FormSectionStepperComponent", filePath: "lib/components/form-builder/elements/form-section-stepper/form-section-stepper.component.ts", lineNumber: 37 }); })();
|
|
671
|
-
|
|
672
|
-
export { FormSectionStepperComponent };
|
|
673
|
-
//# sourceMappingURL=ngx-t-forms-form-section-stepper.component-Ba5WCLzp.mjs.map
|