ngx-t-forms 2.0.18 → 2.0.19

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.
Files changed (117) hide show
  1. package/fesm2022/{ngx-t-forms-calculated-field-rules.component-Byim7p5A.mjs → ngx-t-forms-calculated-field-rules.component-DEJbn9nu.mjs} +9 -9
  2. package/fesm2022/{ngx-t-forms-calculated-field-rules.component-Byim7p5A.mjs.map → ngx-t-forms-calculated-field-rules.component-DEJbn9nu.mjs.map} +1 -1
  3. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-DJdo617E.mjs → ngx-t-forms-chip-options-creator-editor.component-DtguOclg.mjs} +2 -2
  4. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-DJdo617E.mjs.map → ngx-t-forms-chip-options-creator-editor.component-DtguOclg.mjs.map} +1 -1
  5. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-D9iDMGP4.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-CiRP_UnS.mjs} +5 -5
  6. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-D9iDMGP4.mjs.map → ngx-t-forms-config-mscoa-additional-inputs.component-CiRP_UnS.mjs.map} +1 -1
  7. package/fesm2022/{ngx-t-forms-data-source-picker.component-baq9XVW_.mjs → ngx-t-forms-data-source-picker.component-B72gg_2g.mjs} +7 -7
  8. package/fesm2022/{ngx-t-forms-data-source-picker.component-baq9XVW_.mjs.map → ngx-t-forms-data-source-picker.component-B72gg_2g.mjs.map} +1 -1
  9. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-CJHaDkWl.mjs +238 -0
  10. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-CJHaDkWl.mjs.map +1 -0
  11. package/fesm2022/{ngx-t-forms-form-input-selector.component-DdTRH1a0.mjs → ngx-t-forms-form-input-selector.component-P4H4WpFZ.mjs} +4 -5
  12. package/fesm2022/{ngx-t-forms-form-input-selector.component-DdTRH1a0.mjs.map → ngx-t-forms-form-input-selector.component-P4H4WpFZ.mjs.map} +1 -1
  13. package/fesm2022/{ngx-t-forms-form-json-view.component-BAcSfl3f.mjs → ngx-t-forms-form-json-view.component-oyKkXwik.mjs} +2 -2
  14. package/fesm2022/{ngx-t-forms-form-json-view.component-BAcSfl3f.mjs.map → ngx-t-forms-form-json-view.component-oyKkXwik.mjs.map} +1 -1
  15. package/fesm2022/ngx-t-forms-form-section-stepper.component-qYyd6E6Q.mjs +255 -0
  16. package/fesm2022/ngx-t-forms-form-section-stepper.component-qYyd6E6Q.mjs.map +1 -0
  17. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-DIHHOIPI.mjs → ngx-t-forms-forms-builder-menu.component-rWqYX5DN.mjs} +7 -7
  18. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-DIHHOIPI.mjs.map → ngx-t-forms-forms-builder-menu.component-rWqYX5DN.mjs.map} +1 -1
  19. package/fesm2022/{ngx-t-forms-input-editor.component-BCRKxzzO.mjs → ngx-t-forms-input-editor.component-BEM9U1pR.mjs} +4 -4
  20. package/fesm2022/{ngx-t-forms-input-editor.component-BCRKxzzO.mjs.map → ngx-t-forms-input-editor.component-BEM9U1pR.mjs.map} +1 -1
  21. package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-CK-W-ltG.mjs → ngx-t-forms-mat-chip-list-editor.component-sKF1VLac.mjs} +2 -2
  22. package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-CK-W-ltG.mjs.map → ngx-t-forms-mat-chip-list-editor.component-sKF1VLac.mjs.map} +1 -1
  23. package/fesm2022/{ngx-t-forms-mat-slider-editor.component-T764zgZ1.mjs → ngx-t-forms-mat-slider-editor.component-DoUmq086.mjs} +2 -2
  24. package/fesm2022/{ngx-t-forms-mat-slider-editor.component-T764zgZ1.mjs.map → ngx-t-forms-mat-slider-editor.component-DoUmq086.mjs.map} +1 -1
  25. package/fesm2022/{ngx-t-forms-mat-slider-toggle-editor.component-DfTrKkE_.mjs → ngx-t-forms-mat-slider-toggle-editor.component-D3HzD0S7.mjs} +2 -2
  26. package/fesm2022/{ngx-t-forms-mat-slider-toggle-editor.component-DfTrKkE_.mjs.map → ngx-t-forms-mat-slider-toggle-editor.component-D3HzD0S7.mjs.map} +1 -1
  27. package/fesm2022/{ngx-t-forms-missing-form-configs.component-BXGNkL4Z.mjs → ngx-t-forms-missing-form-configs.component-CzVh21f1.mjs} +4 -4
  28. package/fesm2022/{ngx-t-forms-missing-form-configs.component-BXGNkL4Z.mjs.map → ngx-t-forms-missing-form-configs.component-CzVh21f1.mjs.map} +1 -1
  29. package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-DqCaJoe6.mjs → ngx-t-forms-mscoa-segment-config.component-B8hNJxAR.mjs} +7 -7
  30. package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-DqCaJoe6.mjs.map → ngx-t-forms-mscoa-segment-config.component-B8hNJxAR.mjs.map} +1 -1
  31. package/fesm2022/{ngx-t-forms-ngx-t-forms-B4C0NbAb.mjs → ngx-t-forms-ngx-t-forms-Izs2rqnL.mjs} +1918 -470
  32. package/fesm2022/ngx-t-forms-ngx-t-forms-Izs2rqnL.mjs.map +1 -0
  33. package/fesm2022/{ngx-t-forms-pipeline-generator.component-CLs9AZ8p.mjs → ngx-t-forms-pipeline-generator.component-CmQrax2H.mjs} +11 -11
  34. package/fesm2022/{ngx-t-forms-pipeline-generator.component-CLs9AZ8p.mjs.map → ngx-t-forms-pipeline-generator.component-CmQrax2H.mjs.map} +1 -1
  35. package/fesm2022/{ngx-t-forms-required-inputs.component-DDHYfkyu.mjs → ngx-t-forms-required-inputs.component-ByKaRMqs.mjs} +8 -9
  36. package/fesm2022/{ngx-t-forms-required-inputs.component-DDHYfkyu.mjs.map → ngx-t-forms-required-inputs.component-ByKaRMqs.mjs.map} +1 -1
  37. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-BqiD8UGC.mjs → ngx-t-forms-rest-api-call-setup.component-CbfQ7vUk.mjs} +7 -8
  38. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-BqiD8UGC.mjs.map → ngx-t-forms-rest-api-call-setup.component-CbfQ7vUk.mjs.map} +1 -1
  39. package/fesm2022/{ngx-t-forms-section-report.component-Cl3KWTOq.mjs → ngx-t-forms-section-report.component-DKqmKqzM.mjs} +2 -2
  40. package/fesm2022/{ngx-t-forms-section-report.component-Cl3KWTOq.mjs.map → ngx-t-forms-section-report.component-DKqmKqzM.mjs.map} +1 -1
  41. package/fesm2022/{ngx-t-forms-selection-options-editor.component-BZFa1mmi.mjs → ngx-t-forms-selection-options-editor.component-B2A4Shzb.mjs} +4 -4
  42. package/fesm2022/{ngx-t-forms-selection-options-editor.component-BZFa1mmi.mjs.map → ngx-t-forms-selection-options-editor.component-B2A4Shzb.mjs.map} +1 -1
  43. package/fesm2022/{ngx-t-forms-t-workflow-picker.component-DQA2XovD.mjs → ngx-t-forms-t-workflow-picker.component-_RMb3PB4.mjs} +2 -2
  44. package/fesm2022/{ngx-t-forms-t-workflow-picker.component-DQA2XovD.mjs.map → ngx-t-forms-t-workflow-picker.component-_RMb3PB4.mjs.map} +1 -1
  45. package/fesm2022/{ngx-t-forms-validators-config.component-BkzKKK07.mjs → ngx-t-forms-validators-config.component-iqXx3hXU.mjs} +6 -7
  46. package/fesm2022/{ngx-t-forms-validators-config.component-BkzKKK07.mjs.map → ngx-t-forms-validators-config.component-iqXx3hXU.mjs.map} +1 -1
  47. package/fesm2022/ngx-t-forms.mjs +1 -1
  48. package/lib/components/form-builder/elements/input-element-editor/input-element-editor.component.d.ts +62 -2
  49. package/lib/components/forms/forms.component.d.ts +1 -1
  50. package/lib/components/forms/store/Form-selectors-FormBuilder.d.ts +31 -1
  51. package/lib/components/forms/store/forms-store.service.d.ts +31 -1
  52. package/lib/components/index.d.ts +3 -1
  53. package/lib/components/t-dynamic-data-edit/elements/api-value-access-rules/elements/data-tree/data-tree.component.d.ts +9 -13
  54. package/lib/components/t-dynamic-data-edit/elements/api-value-access-rules/elements/validation-expressio-creator/validation-expressio-creator.component.d.ts +50 -0
  55. package/lib/components/t-dynamic-data-edit/elements/api-value-access-rules/functions/convertDataToTree.d.ts +1 -6
  56. package/lib/components/t-dynamic-data-edit/elements/api-value-access-rules/functions/validateExpression.d.ts +6 -0
  57. package/lib/components/t-dynamic-data-edit/t-dynamic-data-edit.component.d.ts +1 -0
  58. package/lib/components/t-form-input/elements/Geo-location-form-input/elements/geo-location-form-input/geo-location-form-input.component.d.ts +2 -3
  59. package/lib/components/t-form-input/elements/Geo-location-form-input/geo-location.component.d.ts +3 -5
  60. package/lib/components/t-form-input/elements/auto-complete-input-element/auto-complete-input-element.component.d.ts +3 -4
  61. package/lib/components/t-form-input/elements/auto-complete-input-element/core/auto-complet-reactive-input/auto-complet-reactive-input.component.d.ts +2 -2
  62. package/lib/components/t-form-input/elements/basic-input-input-element/basic-input-input-element.component.d.ts +3 -4
  63. package/lib/components/t-form-input/elements/basic-input-input-element/core/input-custom/input-custom.component.d.ts +2 -2
  64. package/lib/components/t-form-input/elements/date-picker-input-element/core/date-picker-reactive-input/date-picker-reactive-input.component.d.ts +2 -2
  65. package/lib/components/t-form-input/elements/date-picker-input-element/date-picker-input-element.component.d.ts +3 -4
  66. package/lib/components/t-form-input/elements/date-range-picker-input-element/core/date-range-picker-reactive-input/date-range-picker-reactive-input.component.d.ts +2 -2
  67. package/lib/components/t-form-input/elements/date-range-picker-input-element/date-range-picker-input-element.component.d.ts +3 -4
  68. package/lib/components/t-form-input/elements/document-picker/core/document-picker-reactive-input/document-picker-reactive-input.component.d.ts +3 -3
  69. package/lib/components/t-form-input/elements/document-picker/document-picker.component.d.ts +3 -4
  70. package/lib/components/t-form-input/elements/editor-input-element/core/editor-js-input/editor-js-input.component.d.ts +2 -2
  71. package/lib/components/t-form-input/elements/editor-input-element/editor-input-element.component.d.ts +3 -4
  72. package/lib/components/t-form-input/elements/file-upload-input-element/core/file-uploader/file-uploader.component.d.ts +2 -2
  73. package/lib/components/t-form-input/elements/file-upload-input-element/file-upload-input-element.component.d.ts +3 -4
  74. package/lib/components/t-form-input/elements/image-capture-input-element/core/camera-capture/camera-capture.component.d.ts +2 -3
  75. package/lib/components/t-form-input/elements/image-capture-input-element/image-capture-input-element.component.d.ts +3 -4
  76. package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-chart/mscoa-chart.component.d.ts +2 -2
  77. package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-reactive-form-field/mscoa-reactive-form-field.component.d.ts +3 -4
  78. package/lib/components/t-form-input/elements/mscoa-form-input/mscoa-form-input.component.d.ts +3 -4
  79. package/lib/components/t-form-input/elements/multiple-input-input-element/core/multiple-input-table/multiple-input-table.component.d.ts +8 -9
  80. package/lib/components/t-form-input/elements/multiple-input-input-element/core/multiple-input-table-edit/multiple-input-table-edit.component.d.ts +12 -13
  81. package/lib/components/t-form-input/elements/multiple-input-input-element/core/multiple-input-table-view/multiple-input-table-view.component.d.ts +3 -2
  82. package/lib/components/t-form-input/elements/multiple-input-input-element/multiple-input-input-element.component.d.ts +3 -4
  83. package/lib/components/t-form-input/elements/section-title/section-title.component.d.ts +2 -2
  84. package/lib/components/t-form-input/elements/select-input-element/elements/select-input/select-input.component.d.ts +2 -2
  85. package/lib/components/t-form-input/elements/select-input-element/select-input-element.component.d.ts +3 -4
  86. package/lib/components/t-form-input/elements/signature-input-element/signature-input-element.component.d.ts +3 -4
  87. package/lib/components/t-form-input/elements/textarea-input-element/core/text-area-reactive-input/text-area-reactive-input.component.d.ts +2 -2
  88. package/lib/components/t-form-input/elements/textarea-input-element/textarea-input-element.component.d.ts +3 -4
  89. package/lib/components/t-form-input/elements/toggle-input-element/core/toggle/toggle.component.d.ts +2 -2
  90. package/lib/components/t-form-input/elements/toggle-input-element/toggle-input-element.component.d.ts +3 -4
  91. package/lib/components/t-form-input/elements/workflow-adjudication/elements/points-creation/points-creation.component.d.ts +31 -0
  92. package/lib/components/t-form-input/elements/workflow-adjudication/elements/workflow-adjudication-reactive-input/workflow-adjudication-reactive-input.component.d.ts +18 -0
  93. package/lib/components/t-form-input/elements/workflow-adjudication/workflow-adjudication.component.d.ts +14 -0
  94. package/lib/components/t-form-input/t-form-input.component.d.ts +3 -5
  95. package/lib/components/t-form-input-status/t-form-input-status.component.d.ts +2 -2
  96. package/lib/services/core/t-form-builder/functions/inputElementEditorConfigs.d.ts +31 -1
  97. package/lib/services/core/t-form-section-controller/Functions/getValueFromPathMap.d.ts +1 -3
  98. package/lib/services/core/t-form-tower-controller/form-tower-controller.service.d.ts +1 -0
  99. package/lib/services/core/t-form-tower-controller/functions/getFormValue.d.ts +1 -0
  100. package/lib/shared/functions/createFileUploadSample.d.ts +10 -0
  101. package/lib/shared/functions/getDeepObject.d.ts +1 -1
  102. package/lib/shared/functions/getformInputsSampleValue.d.ts +10 -0
  103. package/lib/shared/index.d.ts +4 -2
  104. package/lib/shared/modules/stringJsonValidator/getObjectValidations.d.ts +2 -1
  105. package/lib/shared/pipes/list-search.pipe.d.ts +7 -0
  106. package/package.json +2 -2
  107. package/fesm2022/ngx-t-forms-api-value-access-rules.component-Drlk8YPy.mjs +0 -439
  108. package/fesm2022/ngx-t-forms-api-value-access-rules.component-Drlk8YPy.mjs.map +0 -1
  109. package/fesm2022/ngx-t-forms-convertPostmanCollectionToTree-DktdVBeQ.mjs +0 -29
  110. package/fesm2022/ngx-t-forms-convertPostmanCollectionToTree-DktdVBeQ.mjs.map +0 -1
  111. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-O0z6NtqG.mjs +0 -238
  112. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-O0z6NtqG.mjs.map +0 -1
  113. package/fesm2022/ngx-t-forms-form-section-stepper.component-npSCBik4.mjs +0 -257
  114. package/fesm2022/ngx-t-forms-form-section-stepper.component-npSCBik4.mjs.map +0 -1
  115. package/fesm2022/ngx-t-forms-getInputIllustration-GCSKx5e5.mjs +0 -9
  116. package/fesm2022/ngx-t-forms-getInputIllustration-GCSKx5e5.mjs.map +0 -1
  117. package/fesm2022/ngx-t-forms-ngx-t-forms-B4C0NbAb.mjs.map +0 -1
@@ -1,257 +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, ChangeDetectorRef, ViewChild, HostListener, Component } from '@angular/core';
5
- import { c as FormTowerControllerService, F as FormsStoreService, d as getSubmissionStatusFn, M as MatModulesModule } from './ngx-t-forms-ngx-t-forms-B4C0NbAb.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$1 from '@angular/cdk/drag-drop';
13
- import * as i2$2 from '@angular/material/button';
14
- import * as i3 from '@angular/material/card';
15
- import * as i3$1 from '@angular/material/stepper';
16
- import * as i5 from '@angular/material/icon';
17
- import * as i6 from '@angular/material/menu';
18
- import * as i7 from '@angular/material/progress-spinner';
19
- import * as i4 from '@angular/material/tooltip';
20
- import * as i9 from '@angular/material/toolbar';
21
-
22
- ;
23
- class FormSectionStepperComponent extends FormTowerControllerService {
24
- constructor() {
25
- super(...arguments);
26
- this.store = inject(FormsStoreService);
27
- this.loadingForm$ = this.store.selectors.selectLoadingForm$;
28
- this.selectInputInEditId$ = this.store.selectors.selectInputInEditId$;
29
- this.isEditable = true;
30
- this.dragging = false;
31
- this.drop = (event) => this.store.actionsFormBuilder.handleSectionDragDrop(event);
32
- this.dropItems = (event, sectionId) => this.store.actionsFormBuilder.handleInputDragDrop(event, sectionId);
33
- this.formDeleteSection = (sectionId) => this.store.actionsFormBuilder.formDeleteSection(sectionId);
34
- this.addMultipleFormInput = (sectionId, multipleInputId) => this.store.actionsFormBuilder.addMultipleFormInput(sectionId, multipleInputId);
35
- this.moveInputToSection = (inputId, targetSectionId) => this.store.actionsFormBuilder.moveInputToSection(inputId, targetSectionId);
36
- this.reorderMultipleInputItems = (event, multipleInputId) => this.store.actionsFormBuilder.reorderMultipleInputItems(event, multipleInputId);
37
- this.cloneCopyFormInput = (inputId) => this.store.actionsFormBuilder.cloneCopyFormInput(inputId);
38
- this.multipleInputToggleLabel = (item) => this.store.actionsFormBuilder.multipleInputToggleLabel(item);
39
- this.editInput = (item) => this.store.actionsFormBuilder.editInput(item);
40
- this.addMultipleInputValueCalculationFunction = (item, multipleInputId) => this.store.actionsFormBuilder.addMultipleInputValueCalculationFunction(item, multipleInputId);
41
- this.setActiveSection = ($event) => this.setMatActiveStepper($event.selectedIndex);
42
- this.addInputToScoaSelection = (sectionId, scoaInputId) => this.store.actionsFormBuilder.addInputToScoaSelection(sectionId, scoaInputId);
43
- this.addNewInput = (sectionId) => this.store.actionsFormBuilder.saveInput(sectionId);
44
- this.addSection = () => this.store.actionsFormBuilder.handleAddSection();
45
- this.setMatActiveStepper = (index) => setTimeout(() => {
46
- if (this.stepper === undefined)
47
- return;
48
- this.stepper.selectedIndex = index;
49
- }, 0);
50
- this.mouseOverSection = null;
51
- this.handleInput = (event, sectionId) => {
52
- // Cast the event target to HTMLInputElement to access the value property
53
- console.error('handleInput', event, sectionId);
54
- const inputValue = event.target.value;
55
- // Pass the input value to the store action
56
- this.store.actionsFormBuilder?.stepTitleChangeStep(sectionId, inputValue);
57
- event.stopPropagation();
58
- event.preventDefault();
59
- };
60
- this.overId = null;
61
- this.countdownSeconds = {};
62
- this.inputWillBeRemovedIn = (id) => this.countdownSeconds[id]?.count;
63
- this.getPlaceHolerForSection = (sectionId) => this.store.sectionPlaceholder[sectionId];
64
- this.formDeleteInput = (item) => this.store.actionsFormBuilder.formDeleteInput(item);
65
- this.openSectionReports = {};
66
- this.toggleSectionReports = (sectionId) => this.openSectionReports[sectionId] = !this.openSectionReports[sectionId];
67
- this.ref = inject(ChangeDetectorRef);
68
- }
69
- /**
70
- * Handles the key down event and opens the application log if the key combination is pressed.
71
- * @param event The keyboard event object.
72
- */
73
- onKeyDown(event) {
74
- if (event.ctrlKey && event.key === 'z') {
75
- // Handle the key press combination here
76
- this.revertBackHistory();
77
- }
78
- }
79
- ngOnInit() {
80
- this.store.registerFormChangeFn(this.initialize);
81
- this.store.selectors.selectFormInEdit$.pipe(take(1), filter(form => form !== null && form !== undefined), tap(form => this.initialize(form.form))).subscribe();
82
- }
83
- get formBuilderFunctions() {
84
- return {
85
- getLatestAccountTree: () => this.NGX_T_FORMS_CONFIG.formBuilder.getScoaTree(),
86
- getSCOAAccount: (SCOAAccount) => this.NGX_T_FORMS_CONFIG.formBuilder.getSCOAAccount(SCOAAccount),
87
- multipleInputToggleForm: this.toggleMultipleInput.bind(this),
88
- multipleInputSaveForm: this.saveMultipleInputForm.bind(this),
89
- editInput: this.editInput.bind(this),
90
- deleteInput: this.formDeleteInput.bind(this),
91
- addFunction: this.addMultipleInputValueCalculationFunction.bind(this),
92
- reorderItems: this.reorderMultipleInputItems.bind(this),
93
- multipleInputToggleLabel: this.multipleInputToggleLabel.bind(this),
94
- multipleInputEditRow: this.multipleInputEditRow.bind(this),
95
- multipleInputDuplicateRow: this.multipleInputDuplicateRow.bind(this),
96
- };
97
- }
98
- getPreviousStepLabel() {
99
- if (this.stepper === undefined)
100
- return '';
101
- const currentIndex = this.stepper?.selectedIndex;
102
- if (currentIndex > 0) {
103
- return this.selectFormSteps()?.[currentIndex - 1]?.label;
104
- }
105
- return '';
106
- }
107
- getNextStepLabel() {
108
- if (this.stepper === undefined)
109
- return '';
110
- const currentIndex = this.stepper?.selectedIndex;
111
- const steps = this.selectFormSteps();
112
- if (!steps)
113
- return '';
114
- if (currentIndex < steps.length - 1) {
115
- return steps[currentIndex + 1]?.label;
116
- }
117
- return '';
118
- }
119
- getStepState(step, index) {
120
- const activeStep = this.stepper?.selectedIndex === index;
121
- if (activeStep)
122
- return 'edit';
123
- if (step.sectionForm?.touched && !step.sectionForm?.valid)
124
- return 'error'; // Show error state for invalid touched forms
125
- if (step.sectionForm?.valid)
126
- return 'done'; // Show done state for valid forms
127
- return 'number';
128
- }
129
- get getSubmissionStatus$() {
130
- const progress = this.formProgress() || 0;
131
- const steps = this.selectFormSteps();
132
- return this.loadingForm$.pipe(map(loading => getSubmissionStatusFn(this.stepper, this.mainForm, progress, steps, loading)));
133
- }
134
- get selectFormStepsComputed() {
135
- const steps = this.selectFormSteps().map((step) => ({
136
- ...step,
137
- columns: step.columns.map((col) => {
138
- const canReload = Object.keys(this._inputFunctionsCollection[col.id] || {}).length > 0;
139
- return ({
140
- ...col,
141
- canReload,
142
- inputConfigErrors: validateFormColumnInputs(col)
143
- });
144
- })
145
- }));
146
- return steps;
147
- }
148
- stopDeletion(id) {
149
- if (this.countdownSeconds[id]) {
150
- this.countdownSeconds[id]?.stop$.next();
151
- delete this.countdownSeconds[id];
152
- }
153
- }
154
- removeInput(item) {
155
- if (this.countdownSeconds[item.id]) {
156
- this.stopDeletion(item.id);
157
- return;
158
- }
159
- this.countdownSeconds[item.id] = {
160
- count: 5,
161
- stop$: new Subject()
162
- };
163
- const countdown$ = timer(0, 1000).pipe(tap((secondsElapsed) => {
164
- const data = this.countdownSeconds[item.id];
165
- if (!data) {
166
- return;
167
- }
168
- const remainingTime = 5 - secondsElapsed;
169
- if (remainingTime <= 0) {
170
- this.formDeleteInput(item);
171
- this.stopDeletion(item.id);
172
- // Stop and remove timer
173
- // Actual deletion logic here, e.g., remove the element by id
174
- // document.getElementById(id)?.remove();
175
- }
176
- else {
177
- data.count = remainingTime;
178
- }
179
- }), takeUntil(this.countdownSeconds[item.id]?.stop$));
180
- countdown$?.subscribe({
181
- complete: () => {
182
- console.log('Deletion stopped or completed');
183
- }
184
- });
185
- }
186
- deleteSection(sectionId) {
187
- if (!sectionId) {
188
- return;
189
- }
190
- if (this.countdownSeconds[sectionId]) {
191
- this.stopDeletion(sectionId);
192
- return;
193
- }
194
- this.countdownSeconds[sectionId] = {
195
- count: 5,
196
- stop$: new Subject()
197
- };
198
- const countdown$ = timer(0, 1000).pipe(tap((secondsElapsed) => {
199
- const data = this.countdownSeconds[sectionId];
200
- if (!data) {
201
- return;
202
- }
203
- const remainingTime = 5 - secondsElapsed;
204
- if (remainingTime <= 0) {
205
- this.formDeleteSection(sectionId);
206
- this.stopDeletion(sectionId);
207
- // Stop and remove timer
208
- // Actual deletion logic here, e.g., remove the element by id
209
- // document.getElementById(id)?.remove();
210
- }
211
- else {
212
- data.count = remainingTime;
213
- }
214
- }), takeUntil(this.countdownSeconds[sectionId]?.stop$));
215
- countdown$?.subscribe({
216
- complete: () => {
217
- console.log('Deletion stopped or completed');
218
- }
219
- });
220
- }
221
- refresh() {
222
- // trigger angular a change detection cycle manually
223
- this.ref.markForCheck();
224
- this.ref.detectChanges();
225
- }
226
- sectionIncludesDefault(columns) {
227
- return columns.some((col) => col.systemDefault);
228
- }
229
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: FormSectionStepperComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
230
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.6", type: FormSectionStepperComponent, isStandalone: true, selector: "app-form-section-stepper", host: { listeners: { "document:keydown": "onKeyDown($event)" } }, viewQueries: [{ propertyName: "stepper", first: true, predicate: ["stepper"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-card class=\"mainCard\" appearance=\"raised\">\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 class=\"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();\"\r\n [matMenuTriggerData]=\"{sectionId:step.sectionId,columns: step.columns}\" [matMenuTriggerFor]=\"sectionMenu\"\r\n 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 </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 [canReload]=\"col.canReload\"\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 \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 if (col.systemDefault !==true) { <button color=\"warn\"\r\n [matTooltip]=\"'Delete '+ col.label + ' input'\" (click)=\"removeInput(col)\" mat-icon-button>\r\n\r\n <mat-icon>\r\n delete\r\n </mat-icon>\r\n </button>}\r\n\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 style=\"text-align: center;\">\r\n <br>\r\n Add form fields to this section to collect information.\r\n <br>\r\n Click the <strong>\"Add Input\"</strong> button below to create a new form field.\r\n <div>\r\n <button matTooltip=\"Add an input to this section\" (click)=\"addNewInput(step.sectionId)\" color=\"accent\"\r\n mat-flat-button>\r\n <mat-icon>add</mat-icon>\r\n Add Input\r\n </button>\r\n </div>\r\n </section>\r\n\r\n\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 matTooltip=\"Continue to next section\" [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=\"accent\" 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\" let-columns=\"columns\">\r\n <!-- <button mat-menu-item [matMenuTriggerFor]=\"sectionType\">\r\n <mat-icon> disabled_visible</mat-icon>\r\n Set visibility type</button> -->\r\n @if (sectionIncludesDefault(columns) === false) {\r\n <button (click)=\"deleteSection(sectionId)\" mat-menu-item>\r\n <mat-icon>delete</mat-icon>\r\n Delete section</button>\r\n }\r\n\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;padding:8px;left:0;margin-right:auto;border-radius:12px}.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:5px;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"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "ngmodule", type: MatModulesModule }, { kind: "directive", type: i2$1.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i2$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "component", type: i2$2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i2$2.MatIconButton, selector: "button[mat-icon-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: "component", type: i3$1.MatStep, selector: "mat-step", inputs: ["color"], exportAs: ["matStep"] }, { kind: "directive", type: i3$1.MatStepLabel, selector: "[matStepLabel]" }, { kind: "component", type: i3$1.MatStepper, selector: "mat-stepper, mat-vertical-stepper, mat-horizontal-stepper, [matStepper]", inputs: ["disableRipple", "color", "labelPosition", "headerPosition", "animationDuration"], outputs: ["animationDone"], exportAs: ["matStepper", "matVerticalStepper", "matHorizontalStepper"] }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i6.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "component", type: i6.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i6.MatMenuContent, selector: "ng-template[matMenuContent]" }, { kind: "directive", type: i6.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "component", type: i7.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "directive", type: i4.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: TourMatMenuModule }, { kind: "directive", type: i7$1.TourAnchorMatMenuDirective, selector: "[tourAnchor]", inputs: ["tourAnchor"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: FormsModule }], deferBlockDependencies: [() => [i2.NgIf, i2.AsyncPipe, i2$1.CdkDropList, i2$1.CdkDrag, i2$1.CdkDragPlaceholder, i2$2.MatButton, i2$2.MatIconButton, i3.MatCard, i3.MatCardActions, i3$1.MatStepperNext, i3$1.MatStepperPrevious, i5.MatIcon, i6.MatMenuTrigger, i7.MatProgressSpinner, i4.MatTooltip, import('./ngx-t-forms-ngx-t-forms-B4C0NbAb.mjs').then(function (n) { return n.H; }).then(m => m.TFormInputComponent), i7$1.TourAnchorMatMenuDirective, i1.NgControlStatusGroup, i1.FormGroupDirective, import('./ngx-t-forms-section-report.component-Cl3KWTOq.mjs').then(m => m.SectionReportComponent)], () => [i2.AsyncPipe, i2$2.MatButton, i7.MatProgressSpinner, i9.MatToolbar]] }); }
231
- }
232
- i0.ɵɵngDeclareClassMetadataAsync({ minVersion: "18.0.0", version: "19.2.6", ngImport: i0, type: FormSectionStepperComponent, resolveDeferredDeps: () => [import('./ngx-t-forms-ngx-t-forms-B4C0NbAb.mjs').then(function (n) { return n.H; }).then(m => m.TFormInputComponent), import('./ngx-t-forms-section-report.component-Cl3KWTOq.mjs').then(m => m.SectionReportComponent)], resolveMetadata: (TFormInputComponent, SectionReportComponent) => ({ decorators: [{
233
- type: Component,
234
- args: [{ selector: 'app-form-section-stepper', standalone: true, imports: [
235
- CommonModule,
236
- MatModulesModule,
237
- TFormInputComponent,
238
- TourMatMenuModule,
239
- ReactiveFormsModule,
240
- FormsModule,
241
- SectionReportComponent
242
- ], template: "<mat-card class=\"mainCard\" appearance=\"raised\">\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 class=\"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();\"\r\n [matMenuTriggerData]=\"{sectionId:step.sectionId,columns: step.columns}\" [matMenuTriggerFor]=\"sectionMenu\"\r\n 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 </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 [canReload]=\"col.canReload\"\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 \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 if (col.systemDefault !==true) { <button color=\"warn\"\r\n [matTooltip]=\"'Delete '+ col.label + ' input'\" (click)=\"removeInput(col)\" mat-icon-button>\r\n\r\n <mat-icon>\r\n delete\r\n </mat-icon>\r\n </button>}\r\n\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 style=\"text-align: center;\">\r\n <br>\r\n Add form fields to this section to collect information.\r\n <br>\r\n Click the <strong>\"Add Input\"</strong> button below to create a new form field.\r\n <div>\r\n <button matTooltip=\"Add an input to this section\" (click)=\"addNewInput(step.sectionId)\" color=\"accent\"\r\n mat-flat-button>\r\n <mat-icon>add</mat-icon>\r\n Add Input\r\n </button>\r\n </div>\r\n </section>\r\n\r\n\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 matTooltip=\"Continue to next section\" [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=\"accent\" 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\" let-columns=\"columns\">\r\n <!-- <button mat-menu-item [matMenuTriggerFor]=\"sectionType\">\r\n <mat-icon> disabled_visible</mat-icon>\r\n Set visibility type</button> -->\r\n @if (sectionIncludesDefault(columns) === false) {\r\n <button (click)=\"deleteSection(sectionId)\" mat-menu-item>\r\n <mat-icon>delete</mat-icon>\r\n Delete section</button>\r\n }\r\n\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;padding:8px;left:0;margin-right:auto;border-radius:12px}.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:5px;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"] }]
243
- }], ctorParameters: null, propDecorators: {
244
- /**
245
- * Handles the key down event and opens the application log if the key combination is pressed.
246
- * @param event The keyboard event object.
247
- */
248
- onKeyDown: [{
249
- type: HostListener,
250
- args: ['document:keydown', ['$event']]
251
- }], stepper: [{
252
- type: ViewChild,
253
- args: ['stepper']
254
- }] } }) });
255
-
256
- export { FormSectionStepperComponent };
257
- //# sourceMappingURL=ngx-t-forms-form-section-stepper.component-npSCBik4.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ngx-t-forms-form-section-stepper.component-npSCBik4.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/form-section-stepper/form-section-stepper.component.ts","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/form-section-stepper/form-section-stepper.component.html"],"sourcesContent":["import { CommonModule } from '@angular/common';\r\nimport { ChangeDetectorRef, Component, HostListener, inject, OnInit, ViewChild } from '@angular/core';\r\nimport { MatModulesModule } from '../../../../shared/modules/mat-modules.module';\r\nimport { filter, map, Observable, Subject, take, takeUntil, tap, timer } from 'rxjs';\r\nimport { ReactiveFormsModule, FormsModule } from '@angular/forms';\r\nimport { StepperSelectionEvent, StepState } from '@angular/cdk/stepper';;\r\nimport { MatStepper } from '@angular/material/stepper';\r\n\r\nimport { FormsStoreService } from '../../../forms/store/forms-store.service';\r\nimport { TFormInputComponent } from '../../..';\r\n\r\nimport { FormTowerControllerService } from '../../../../services/core/t-form-tower-controller/form-tower-controller.service';\r\nimport { FormBuilderFunctions, FormColumnInputs, IMultipleInputCal, ITowerFormSteps, validateFormColumnInputs } from 'ngx-t-forms-types';\r\nimport { _isEqual } from '../../../../shared/functions/isEqual';\r\nimport { TourMatMenuModule } from 'ngx-ui-tour-md-menu';\r\nimport { getSubmissionStatusFn } from '../../../../services/core/t-form-tower-controller/functions/getSubmissionStatus';\r\nimport { CdkDragDrop } from '@angular/cdk/drag-drop';\r\nimport { SectionReportComponent } from '../section-report/section-report.component';\r\n\r\n\r\n@Component({\r\n selector: 'app-form-section-stepper',\r\n standalone: true,\r\n imports: [\r\n CommonModule,\r\n MatModulesModule,\r\n TFormInputComponent,\r\n TourMatMenuModule,\r\n ReactiveFormsModule,\r\n FormsModule,\r\n SectionReportComponent\r\n ],\r\n templateUrl: './form-section-stepper.component.html',\r\n styleUrl: './form-section-stepper.component.scss',\r\n\r\n})\r\nexport class FormSectionStepperComponent extends FormTowerControllerService implements OnInit {\r\n @HostListener('document:keydown', ['$event'])\r\n\r\n /**\r\n * Handles the key down event and opens the application log if the key combination is pressed.\r\n * @param event The keyboard event object.\r\n */\r\n onKeyDown(event: KeyboardEvent) {\r\n if (event.ctrlKey && event.key === 'z') {\r\n // Handle the key press combination here\r\n this.revertBackHistory()\r\n }\r\n }\r\n\r\n\r\n ngOnInit(): void {\r\n this.store.registerFormChangeFn(this.initialize)\r\n this.store.selectors.selectFormInEdit$.pipe(\r\n take(1),\r\n filter(form => form !== null && form !== undefined),\r\n tap(form => this.initialize(form.form))\r\n ).subscribe()\r\n }\r\n\r\n private store: FormsStoreService = inject(FormsStoreService)\r\n loadingForm$ = this.store.selectors.selectLoadingForm$\r\n selectInputInEditId$ = this.store.selectors.selectInputInEditId$\r\n isEditable = true\r\n @ViewChild('stepper') stepper: MatStepper | undefined;\r\n\r\n\r\n\r\n get formBuilderFunctions() {\r\n return {\r\n getLatestAccountTree: () => this.NGX_T_FORMS_CONFIG.formBuilder.getScoaTree(),\r\n getSCOAAccount: (SCOAAccount: string) => this.NGX_T_FORMS_CONFIG.formBuilder.getSCOAAccount(SCOAAccount),\r\n multipleInputToggleForm: this.toggleMultipleInput.bind(this),\r\n multipleInputSaveForm: this.saveMultipleInputForm.bind(this),\r\n editInput: this.editInput.bind(this),\r\n deleteInput: this.formDeleteInput.bind(this),\r\n addFunction: this.addMultipleInputValueCalculationFunction.bind(this),\r\n reorderItems: this.reorderMultipleInputItems.bind(this),\r\n multipleInputToggleLabel: this.multipleInputToggleLabel.bind(this),\r\n multipleInputEditRow: this.multipleInputEditRow.bind(this),\r\n multipleInputDuplicateRow: this.multipleInputDuplicateRow.bind(this),\r\n\r\n } as unknown as FormBuilderFunctions\r\n }\r\n getPreviousStepLabel(): string | undefined {\r\n\r\n if (this.stepper === undefined) return ''\r\n const currentIndex = this.stepper?.selectedIndex;\r\n if (currentIndex > 0) {\r\n return this.selectFormSteps()?.[currentIndex - 1]?.label;\r\n }\r\n return '';\r\n }\r\n\r\n getNextStepLabel(): string | undefined {\r\n if (this.stepper === undefined) return ''\r\n const currentIndex = this.stepper?.selectedIndex;\r\n const steps = this.selectFormSteps();\r\n if (!steps) return ''\r\n if (currentIndex < steps.length - 1) {\r\n return steps[currentIndex + 1]?.label;\r\n }\r\n return '';\r\n }\r\n getStepState(step: any, index: number): StepState {\r\n const activeStep = this.stepper?.selectedIndex === index;\r\n if (activeStep) return 'edit';\r\n if (step.sectionForm?.touched && !step.sectionForm?.valid) return 'error'; // Show error state for invalid touched forms\r\n if (step.sectionForm?.valid) return 'done'; // Show done state for valid forms\r\n\r\n return 'number';\r\n }\r\n activeInput: string | undefined\r\n get getSubmissionStatus$(): Observable<string> {\r\n const progress = this.formProgress() || 0;\r\n const steps = this.selectFormSteps();\r\n return this.loadingForm$.pipe(\r\n map(loading =>\r\n getSubmissionStatusFn(this.stepper, this.mainForm, progress, steps, loading)\r\n )\r\n )\r\n }\r\n dragging: boolean = false\r\n\r\n drop = (event: any) => this.store.actionsFormBuilder.handleSectionDragDrop(event)\r\n dropItems = (event: any, sectionId: string) => this.store.actionsFormBuilder.handleInputDragDrop(event, sectionId)\r\n formDeleteSection = (sectionId: string) => this.store.actionsFormBuilder.formDeleteSection(sectionId)\r\n addMultipleFormInput = (sectionId: string, multipleInputId: string) => this.store.actionsFormBuilder.addMultipleFormInput(sectionId, multipleInputId)\r\n moveInputToSection = (inputId: string, targetSectionId: string) => this.store.actionsFormBuilder.moveInputToSection(inputId, targetSectionId)\r\n reorderMultipleInputItems = (event: CdkDragDrop<FormColumnInputs[], any, any>, multipleInputId: string) => this.store.actionsFormBuilder.reorderMultipleInputItems(event, multipleInputId)\r\n cloneCopyFormInput = (inputId: string) => this.store.actionsFormBuilder.cloneCopyFormInput(inputId)\r\n\r\n multipleInputToggleLabel = (item: FormColumnInputs) => this.store.actionsFormBuilder.multipleInputToggleLabel(item)\r\n editInput = (item: FormColumnInputs) => this.store.actionsFormBuilder.editInput(item)\r\n addMultipleInputValueCalculationFunction = (item: IMultipleInputCal, multipleInputId: string | undefined) => this.store.actionsFormBuilder.addMultipleInputValueCalculationFunction(item, multipleInputId)\r\n setActiveSection = ($event: StepperSelectionEvent) => this.setMatActiveStepper($event.selectedIndex)\r\n addInputToScoaSelection = (sectionId: string, scoaInputId: string) => this.store.actionsFormBuilder.addInputToScoaSelection(sectionId, scoaInputId)\r\n addNewInput = (sectionId: string) => this.store.actionsFormBuilder.saveInput(sectionId);\r\n\r\n addSection = (): void => this.store.actionsFormBuilder.handleAddSection()\r\n setMatActiveStepper = (index: number) => setTimeout(() => {\r\n if (this.stepper === undefined) return;\r\n this.stepper.selectedIndex = index\r\n }, 0);\r\n mouseOverSection: string | null = null\r\n handleInput = (event: Event, sectionId: string) => {\r\n // Cast the event target to HTMLInputElement to access the value property\r\n console.error('handleInput', event, sectionId)\r\n const inputValue = (event.target as HTMLInputElement).value;\r\n\r\n // Pass the input value to the store action\r\n this.store.actionsFormBuilder?.stepTitleChangeStep(sectionId, inputValue);\r\n event.stopPropagation();\r\n event.preventDefault();\r\n\r\n }\r\n get selectFormStepsComputed(): ITowerFormSteps[] {\r\n const steps = this.selectFormSteps().map(\r\n (step) => (\r\n {\r\n ...step,\r\n columns: step.columns.map(\r\n (col) => {\r\n const canReload= Object.keys(this._inputFunctionsCollection[col.id]||{}).length>0\r\n \r\n return ({\r\n ...col,\r\n canReload,\r\n inputConfigErrors: validateFormColumnInputs(col)\r\n\r\n })\r\n }\r\n )\r\n\r\n }\r\n )\r\n )\r\n \r\n return steps\r\n }\r\n overId: string | null = null\r\n\r\n countdownSeconds: {\r\n [key: string]:\r\n {\r\n count: number | null,\r\n stop$: Subject<void>\r\n\r\n\r\n }\r\n } = {}\r\n stopDeletion(id: string) {\r\n if (this.countdownSeconds[id]) {\r\n this.countdownSeconds[id]?.stop$.next();\r\n delete this.countdownSeconds[id];\r\n }\r\n }\r\n inputWillBeRemovedIn = (id: string) => this.countdownSeconds[id]?.count\r\n removeInput(item: FormColumnInputs) {\r\n if (this.countdownSeconds[item.id]) {\r\n this.stopDeletion(item.id);\r\n return;\r\n }\r\n\r\n this.countdownSeconds[item.id] = {\r\n count: 5,\r\n stop$: new Subject<void>()\r\n };\r\n\r\n const countdown$ = timer(0, 1000).pipe(\r\n tap((secondsElapsed) => {\r\n const data = this.countdownSeconds[item.id];\r\n if (!data) {\r\n return;\r\n }\r\n\r\n const remainingTime = 5 - secondsElapsed;\r\n if (remainingTime <= 0) {\r\n this.formDeleteInput(item)\r\n this.stopDeletion(item.id);\r\n // Stop and remove timer\r\n // Actual deletion logic here, e.g., remove the element by id\r\n // document.getElementById(id)?.remove();\r\n } else {\r\n data.count = remainingTime;\r\n }\r\n }),\r\n takeUntil(this.countdownSeconds[item.id]?.stop$!)\r\n );\r\n\r\n countdown$?.subscribe({\r\n complete: () => {\r\n console.log('Deletion stopped or completed');\r\n }\r\n });\r\n }\r\n deleteSection(sectionId: string | null) {\r\n if (!sectionId) {\r\n return;\r\n }\r\n if (this.countdownSeconds[sectionId]) {\r\n this.stopDeletion(sectionId);\r\n return;\r\n }\r\n\r\n this.countdownSeconds[sectionId] = {\r\n count: 5,\r\n stop$: new Subject<void>()\r\n };\r\n\r\n const countdown$ = timer(0, 1000).pipe(\r\n tap((secondsElapsed) => {\r\n const data = this.countdownSeconds[sectionId];\r\n if (!data) {\r\n return;\r\n }\r\n\r\n const remainingTime = 5 - secondsElapsed;\r\n if (remainingTime <= 0) {\r\n this.formDeleteSection(sectionId)\r\n this.stopDeletion(sectionId);\r\n // Stop and remove timer\r\n // Actual deletion logic here, e.g., remove the element by id\r\n // document.getElementById(id)?.remove();\r\n } else {\r\n data.count = remainingTime;\r\n }\r\n }),\r\n takeUntil(this.countdownSeconds[sectionId]?.stop$!)\r\n );\r\n\r\n countdown$?.subscribe({\r\n complete: () => {\r\n console.log('Deletion stopped or completed');\r\n }\r\n });\r\n }\r\n getPlaceHolerForSection = (sectionId: string): any => this.store.sectionPlaceholder[sectionId]\r\n formDeleteInput = (item: FormColumnInputs) => this.store.actionsFormBuilder.formDeleteInput(item)\r\n openSectionReports: Record<string, boolean> = {}\r\n toggleSectionReports = (sectionId: string) => this.openSectionReports[sectionId] = !this.openSectionReports[sectionId]\r\nref = inject(ChangeDetectorRef)\r\n refresh() {\r\n // trigger angular a change detection cycle manually\r\n this.ref.markForCheck();\r\n this.ref.detectChanges();\r\n \r\n }\r\n sectionIncludesDefault(columns: FormColumnInputs[]): boolean {\r\n return columns.some((col) => col.systemDefault);\r\n }\r\n}\r\n","<mat-card class=\"mainCard\" appearance=\"raised\">\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 class=\"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();\"\r\n [matMenuTriggerData]=\"{sectionId:step.sectionId,columns: step.columns}\" [matMenuTriggerFor]=\"sectionMenu\"\r\n 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 </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 [canReload]=\"col.canReload\"\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 \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 if (col.systemDefault !==true) { <button color=\"warn\"\r\n [matTooltip]=\"'Delete '+ col.label + ' input'\" (click)=\"removeInput(col)\" mat-icon-button>\r\n\r\n <mat-icon>\r\n delete\r\n </mat-icon>\r\n </button>}\r\n\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 style=\"text-align: center;\">\r\n <br>\r\n Add form fields to this section to collect information.\r\n <br>\r\n Click the <strong>\"Add Input\"</strong> button below to create a new form field.\r\n <div>\r\n <button matTooltip=\"Add an input to this section\" (click)=\"addNewInput(step.sectionId)\" color=\"accent\"\r\n mat-flat-button>\r\n <mat-icon>add</mat-icon>\r\n Add Input\r\n </button>\r\n </div>\r\n </section>\r\n\r\n\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 matTooltip=\"Continue to next section\" [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=\"accent\" 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\" let-columns=\"columns\">\r\n <!-- <button mat-menu-item [matMenuTriggerFor]=\"sectionType\">\r\n <mat-icon> disabled_visible</mat-icon>\r\n Set visibility type</button> -->\r\n @if (sectionIncludesDefault(columns) === false) {\r\n <button (click)=\"deleteSection(sectionId)\" mat-menu-item>\r\n <mat-icon>delete</mat-icon>\r\n Delete section</button>\r\n }\r\n\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>"],"names":["i1","i2","i3","i4","i5","i6","i7","i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AAA,sBAAA,CAAA,CAAA,EAAA,MAAA,CAAAV,EAAA,CAAA,SAAA,EAAAE,IAAA,CAAA,SAAA,EAAAK,EAAA,CAAA,kBAAA,EAAAI,EAAA,CAAA,UAAA,CAAA,CAAA,EAAA,CAAA,CAAA;;gGAOF,2BAA2B,EAAA,mBAAA,EAAA,MAAA,CAAA,OAAA,wCAAA,oCAAA,CAAA,IAAA,CAAA,CAAA,IAAA,CAAA,CAAA,mBAAA,CAAA,EAAA,OAAA,qDAAA,CAAA,CAAA,IAAA,CAAA,CAAA,IAAA,CAAA,CAAA,sBAAA,CAAA,CAAA,EAAA,eAAA,EAAA,CAAA,mBAAA,EAAA,sBAAA,MAAA,EAAA,UAAA,EAAA,CAAA;sBAhBvC,SAAS;mCACE,0BAA0B,EAAA,UAAA,EACxB,IAAI,EACP,OAAA,EAAA;4BACP,YAAY;4BACZ,gBAAgB;4BAChB,mBAAmB;4BACnB,iBAAiB;4BACjB,mBAAmB;4BACnB,WAAW;4BACX;AACD,yBAAA,EAAA,QAAA,EAAA,s4YAAA,EAAA,MAAA,EAAA,CAAA,u2DAAA,CAAA,EAAA;;AAQD;;;AAGG;YACH,SAAS,EAAA,CAAA;0BANR,YAAY;2BAAC,kBAAkB,EAAE,CAAC,QAAQ,CAAC;oBA2BtB,OAAO,EAAA,CAAA;0BAA5B,SAAS;2BAAC,SAAS;;;;;"}
@@ -1,9 +0,0 @@
1
- import { DefaultInputConfig } from 'ngx-t-forms-types';
2
-
3
- function getInputIllustration(element) {
4
- const dc = DefaultInputConfig;
5
- return dc[element]?.illustration;
6
- }
7
-
8
- export { getInputIllustration as g };
9
- //# sourceMappingURL=ngx-t-forms-getInputIllustration-GCSKx5e5.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ngx-t-forms-getInputIllustration-GCSKx5e5.mjs","sources":["../../../projects/ngx-t-forms/src/lib/shared/functions/getInputIllustration.ts"],"sourcesContent":["import { DefaultInputConfig } from \"ngx-t-forms-types\"\r\nimport { ElementTypes } from \"ngx-t-forms-types\"\r\n\r\nexport function getInputIllustration(element:ElementTypes): string {\r\n const dc= DefaultInputConfig\r\n return dc[element]?.illustration\r\n }"],"names":[],"mappings":";;AAGM,SAAU,oBAAoB,CAAC,OAAoB,EAAA;IACtD,MAAM,EAAE,GAAE,kBAAkB;AAC3B,IAAA,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,YAAY;AAClC;;;;"}