ngx-t-forms 2.0.27 → 2.0.29

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 (295) hide show
  1. package/README.md +2 -1
  2. package/fesm2022/{ngx-t-forms-calculated-field-rules.component-Cs_Lhz_D.mjs → ngx-t-forms-calculated-field-rules.component-D-SBMdYg.mjs} +12 -12
  3. package/fesm2022/{ngx-t-forms-calculated-field-rules.component-Cs_Lhz_D.mjs.map → ngx-t-forms-calculated-field-rules.component-D-SBMdYg.mjs.map} +1 -1
  4. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-DkTpG5yQ.mjs → ngx-t-forms-chip-options-creator-editor.component-1cpszpPN.mjs} +7 -7
  5. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-DkTpG5yQ.mjs.map → ngx-t-forms-chip-options-creator-editor.component-1cpszpPN.mjs.map} +1 -1
  6. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-DJ9d3Oy9.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-DFdAVWTg.mjs} +9 -11
  7. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-DFdAVWTg.mjs.map +1 -0
  8. package/fesm2022/{ngx-t-forms-data-source-picker.component-CFQ_GVPG.mjs → ngx-t-forms-data-source-picker.component-DxORinAD.mjs} +10 -11
  9. package/fesm2022/ngx-t-forms-data-source-picker.component-DxORinAD.mjs.map +1 -0
  10. package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-CPF_BLRA.mjs → ngx-t-forms-document-list-label-config-editor.component-DcWS1txl.mjs} +9 -11
  11. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-DcWS1txl.mjs.map +1 -0
  12. package/fesm2022/ngx-t-forms-form-input-selector.component-B2QEnvkq.mjs +134 -0
  13. package/fesm2022/ngx-t-forms-form-input-selector.component-B2QEnvkq.mjs.map +1 -0
  14. package/fesm2022/{ngx-t-forms-form-json-view.component-C7i6JZ-l.mjs → ngx-t-forms-form-json-view.component-DePf44w6.mjs} +5 -5
  15. package/fesm2022/{ngx-t-forms-form-json-view.component-C7i6JZ-l.mjs.map → ngx-t-forms-form-json-view.component-DePf44w6.mjs.map} +1 -1
  16. package/fesm2022/ngx-t-forms-form-section-stepper.component-BTkcSjg7.mjs +270 -0
  17. package/fesm2022/ngx-t-forms-form-section-stepper.component-BTkcSjg7.mjs.map +1 -0
  18. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-G3Agd-vE.mjs → ngx-t-forms-forms-builder-menu.component-Wamzf_sq.mjs} +27 -31
  19. package/fesm2022/ngx-t-forms-forms-builder-menu.component-Wamzf_sq.mjs.map +1 -0
  20. package/fesm2022/ngx-t-forms-input-editor.component-D4xHO76K.mjs +147 -0
  21. package/fesm2022/ngx-t-forms-input-editor.component-D4xHO76K.mjs.map +1 -0
  22. package/fesm2022/ngx-t-forms-map-mat-options-keys-CbdW82su.mjs +124 -0
  23. package/fesm2022/ngx-t-forms-map-mat-options-keys-CbdW82su.mjs.map +1 -0
  24. package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-dIY3BX1u.mjs → ngx-t-forms-mat-chip-list-editor.component-DmTyO9Wi.mjs} +9 -10
  25. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-DmTyO9Wi.mjs.map +1 -0
  26. package/fesm2022/{ngx-t-forms-mat-slider-editor.component-yMRCg8fo.mjs → ngx-t-forms-mat-slider-editor.component-DZ4TenrI.mjs} +5 -6
  27. package/fesm2022/ngx-t-forms-mat-slider-editor.component-DZ4TenrI.mjs.map +1 -0
  28. package/fesm2022/{ngx-t-forms-mat-slider-toggle-editor.component-0aUVP9A6.mjs → ngx-t-forms-mat-slider-toggle-editor.component-DPyBYE4p.mjs} +5 -5
  29. package/fesm2022/{ngx-t-forms-mat-slider-toggle-editor.component-0aUVP9A6.mjs.map → ngx-t-forms-mat-slider-toggle-editor.component-DPyBYE4p.mjs.map} +1 -1
  30. package/fesm2022/ngx-t-forms-missing-form-configs.component-BRmnwAK6.mjs +28 -0
  31. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CsPMQZqg.mjs.map → ngx-t-forms-missing-form-configs.component-BRmnwAK6.mjs.map} +1 -1
  32. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-D8a9-6lt.mjs → ngx-t-forms-mscoa-chart-toolbar.component-D_umeAPL.mjs} +7 -7
  33. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-D8a9-6lt.mjs.map → ngx-t-forms-mscoa-chart-toolbar.component-D_umeAPL.mjs.map} +1 -1
  34. package/fesm2022/{ngx-t-forms-mscoa-error-display.component-DwbyXd_D.mjs → ngx-t-forms-mscoa-error-display.component-CSX2NCNU.mjs} +7 -7
  35. package/fesm2022/{ngx-t-forms-mscoa-error-display.component-DwbyXd_D.mjs.map → ngx-t-forms-mscoa-error-display.component-CSX2NCNU.mjs.map} +1 -1
  36. package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-BXPghOuH.mjs → ngx-t-forms-mscoa-segment-config.component-B6IF8kGg.mjs} +11 -14
  37. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-B6IF8kGg.mjs.map +1 -0
  38. package/fesm2022/{ngx-t-forms-mscoa-temporary-hint.component-CBRfWvfD.mjs → ngx-t-forms-mscoa-temporary-hint.component-BPkjsRmH.mjs} +6 -6
  39. package/fesm2022/{ngx-t-forms-mscoa-temporary-hint.component-CBRfWvfD.mjs.map → ngx-t-forms-mscoa-temporary-hint.component-BPkjsRmH.mjs.map} +1 -1
  40. package/fesm2022/{ngx-t-forms-ngx-t-forms-CD9InaXz.mjs → ngx-t-forms-ngx-t-forms-D9qmig6g.mjs} +1784 -783
  41. package/fesm2022/ngx-t-forms-ngx-t-forms-D9qmig6g.mjs.map +1 -0
  42. package/fesm2022/{ngx-t-forms-pipeline-generator.component-QE-I58e4.mjs → ngx-t-forms-pipeline-generator.component-DBJEyCbd.mjs} +21 -45
  43. package/fesm2022/ngx-t-forms-pipeline-generator.component-DBJEyCbd.mjs.map +1 -0
  44. package/fesm2022/{ngx-t-forms-record-list-manager.component-D4wlLtdc.mjs → ngx-t-forms-record-list-manager.component-Dgs9lNSr.mjs} +9 -10
  45. package/fesm2022/ngx-t-forms-record-list-manager.component-Dgs9lNSr.mjs.map +1 -0
  46. package/fesm2022/{ngx-t-forms-required-inputs.component-BoqmVDp2.mjs → ngx-t-forms-required-inputs.component-CSIJvSHq.mjs} +10 -12
  47. package/fesm2022/ngx-t-forms-required-inputs.component-CSIJvSHq.mjs.map +1 -0
  48. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-CtfudSGT.mjs → ngx-t-forms-rest-api-call-setup.component-CY-JSkGs.mjs} +14 -18
  49. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-CY-JSkGs.mjs.map +1 -0
  50. package/fesm2022/{ngx-t-forms-section-report.component-Dntm1m5b.mjs → ngx-t-forms-section-report.component-12-KdKT6.mjs} +11 -11
  51. package/fesm2022/{ngx-t-forms-section-report.component-Dntm1m5b.mjs.map → ngx-t-forms-section-report.component-12-KdKT6.mjs.map} +1 -1
  52. package/fesm2022/{ngx-t-forms-selection-options-editor.component-Cc_qCtW2.mjs → ngx-t-forms-selection-options-editor.component-Be3QAG_L.mjs} +11 -12
  53. package/fesm2022/ngx-t-forms-selection-options-editor.component-Be3QAG_L.mjs.map +1 -0
  54. package/fesm2022/{ngx-t-forms-t-workflow-picker.component-xvX8t0pu.mjs → ngx-t-forms-t-workflow-picker.component-a4f1r8gH.mjs} +12 -12
  55. package/fesm2022/{ngx-t-forms-t-workflow-picker.component-xvX8t0pu.mjs.map → ngx-t-forms-t-workflow-picker.component-a4f1r8gH.mjs.map} +1 -1
  56. package/fesm2022/{ngx-t-forms-validators-config.component-D6JG1p81.mjs → ngx-t-forms-validators-config.component-B3j9Dmgu.mjs} +13 -15
  57. package/fesm2022/ngx-t-forms-validators-config.component-B3j9Dmgu.mjs.map +1 -0
  58. package/fesm2022/ngx-t-forms.mjs +1 -1
  59. package/package.json +10 -8
  60. package/types/ngx-t-forms.d.ts +962 -0
  61. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-DJ9d3Oy9.mjs.map +0 -1
  62. package/fesm2022/ngx-t-forms-data-source-picker.component-CFQ_GVPG.mjs.map +0 -1
  63. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-CPF_BLRA.mjs.map +0 -1
  64. package/fesm2022/ngx-t-forms-form-input-selector.component-C38FXT55.mjs +0 -132
  65. package/fesm2022/ngx-t-forms-form-input-selector.component-C38FXT55.mjs.map +0 -1
  66. package/fesm2022/ngx-t-forms-form-section-stepper.component-CJz0yr78.mjs +0 -264
  67. package/fesm2022/ngx-t-forms-form-section-stepper.component-CJz0yr78.mjs.map +0 -1
  68. package/fesm2022/ngx-t-forms-forms-builder-menu.component-G3Agd-vE.mjs.map +0 -1
  69. package/fesm2022/ngx-t-forms-input-editor.component-B12zbXE1.mjs +0 -147
  70. package/fesm2022/ngx-t-forms-input-editor.component-B12zbXE1.mjs.map +0 -1
  71. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-dIY3BX1u.mjs.map +0 -1
  72. package/fesm2022/ngx-t-forms-mat-slider-editor.component-yMRCg8fo.mjs.map +0 -1
  73. package/fesm2022/ngx-t-forms-missing-form-configs.component-CsPMQZqg.mjs +0 -28
  74. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-BXPghOuH.mjs.map +0 -1
  75. package/fesm2022/ngx-t-forms-ngx-t-forms-CD9InaXz.mjs.map +0 -1
  76. package/fesm2022/ngx-t-forms-pipeline-generator.component-QE-I58e4.mjs.map +0 -1
  77. package/fesm2022/ngx-t-forms-record-list-manager.component-D4wlLtdc.mjs.map +0 -1
  78. package/fesm2022/ngx-t-forms-required-inputs.component-BoqmVDp2.mjs.map +0 -1
  79. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-CtfudSGT.mjs.map +0 -1
  80. package/fesm2022/ngx-t-forms-selection-options-editor.component-Cc_qCtW2.mjs.map +0 -1
  81. package/fesm2022/ngx-t-forms-validators-config.component-D6JG1p81.mjs.map +0 -1
  82. package/index.d.ts +0 -5
  83. package/lib/components/dialog-template/dialog-template.component.d.ts +0 -10
  84. package/lib/components/form-builder/elements/default-element/default-element.component.d.ts +0 -12
  85. package/lib/components/form-builder/elements/form-json-view/form-json-view.component.d.ts +0 -9
  86. package/lib/components/form-builder/elements/form-section-stepper/form-section-stepper.component.d.ts +0 -72
  87. package/lib/components/form-builder/elements/form-submissions-config/config.d.ts +0 -18
  88. package/lib/components/form-builder/elements/form-submissions-config/form-submissions-config.component.d.ts +0 -61
  89. package/lib/components/form-builder/elements/forms-builder-menu/forms-builder-menu.component.d.ts +0 -55
  90. package/lib/components/form-builder/elements/input-editor/input-editor.component.d.ts +0 -18
  91. package/lib/components/form-builder/elements/input-element-editor/input-element-editor.component.d.ts +0 -109
  92. package/lib/components/form-builder/elements/missing-form-configs/missing-form-configs.component.d.ts +0 -12
  93. package/lib/components/form-builder/elements/section-report/section-report.component.d.ts +0 -23
  94. package/lib/components/form-builder/elements/select-form-template/select-form-template.component.d.ts +0 -22
  95. package/lib/components/form-builder/form-builder.component.d.ts +0 -29
  96. package/lib/components/forms/forms.component.d.ts +0 -52
  97. package/lib/components/forms/functions/cloneCopyFormInput.d.ts +0 -3
  98. package/lib/components/forms/functions/elementBlur.d.ts +0 -2
  99. package/lib/components/forms/functions/elementConfigurationChanged.d.ts +0 -2
  100. package/lib/components/forms/functions/findFormInput.d.ts +0 -2
  101. package/lib/components/forms/functions/formHttpSubmissions.d.ts +0 -6
  102. package/lib/components/forms/functions/selectInputTemplate.d.ts +0 -3
  103. package/lib/components/forms/store/Form-actions-formBuilder.d.ts +0 -36
  104. package/lib/components/forms/store/Form-selectors-FormBuilder.d.ts +0 -74
  105. package/lib/components/forms/store/Forms-Actions.d.ts +0 -75
  106. package/lib/components/forms/store/Forms-Effects.d.ts +0 -20
  107. package/lib/components/forms/store/Forms-selectors.d.ts +0 -3
  108. package/lib/components/forms/store/forms-store.service.d.ts +0 -222
  109. package/lib/components/index.d.ts +0 -13
  110. package/lib/components/t-dynamic-data-edit/elements/api-value-access-rules/api-value-access-rules.component.d.ts +0 -79
  111. package/lib/components/t-dynamic-data-edit/elements/api-value-access-rules/elements/data-tree/data-tree.component.d.ts +0 -56
  112. package/lib/components/t-dynamic-data-edit/elements/api-value-access-rules/elements/validation-expressio-creator/validation-expressio-creator.component.d.ts +0 -50
  113. package/lib/components/t-dynamic-data-edit/elements/api-value-access-rules/functions/convertDataToTree.d.ts +0 -52
  114. package/lib/components/t-dynamic-data-edit/elements/api-value-access-rules/functions/extractNodeFromTree.d.ts +0 -3
  115. package/lib/components/t-dynamic-data-edit/elements/api-value-access-rules/functions/validateExpression.d.ts +0 -6
  116. package/lib/components/t-dynamic-data-edit/elements/calculated-field-rules/calculated-field-rules.component.d.ts +0 -80
  117. package/lib/components/t-dynamic-data-edit/elements/chip-options-creator-editor/chip-options-creator-editor.component.d.ts +0 -53
  118. package/lib/components/t-dynamic-data-edit/elements/config-mscoa-additional-inputs/config-mscoa-additional-inputs.component.d.ts +0 -73
  119. package/lib/components/t-dynamic-data-edit/elements/data-source-picker/data-source-picker.component.d.ts +0 -57
  120. package/lib/components/t-dynamic-data-edit/elements/document-list-label-config-editor/document-list-label-config-editor.component.d.ts +0 -69
  121. package/lib/components/t-dynamic-data-edit/elements/form-input-selector/form-input-selector.component.d.ts +0 -48
  122. package/lib/components/t-dynamic-data-edit/elements/json-editor/json-editor.component.d.ts +0 -54
  123. package/lib/components/t-dynamic-data-edit/elements/mat-chip-list-editor/mat-chip-list-editor.component.d.ts +0 -49
  124. package/lib/components/t-dynamic-data-edit/elements/mat-slider-editor/mat-slider-editor.component.d.ts +0 -44
  125. package/lib/components/t-dynamic-data-edit/elements/mat-slider-toggle-editor/mat-slider-toggle-editor.component.d.ts +0 -48
  126. package/lib/components/t-dynamic-data-edit/elements/mscoa-segment-config/mscoa-segment-config.component.d.ts +0 -80
  127. package/lib/components/t-dynamic-data-edit/elements/pipeline-generator/elements/aggregate-stage-editor/aggregate-stage-editor.component.d.ts +0 -33
  128. package/lib/components/t-dynamic-data-edit/elements/pipeline-generator/pipeline-generator.component.d.ts +0 -92
  129. package/lib/components/t-dynamic-data-edit/elements/postman-collections/functions/convertPostmanCollectionToTree.d.ts +0 -4
  130. package/lib/components/t-dynamic-data-edit/elements/postman-collections/functions/filterCollectionItems.d.ts +0 -3
  131. package/lib/components/t-dynamic-data-edit/elements/postman-collections/functions/methodColors.d.ts +0 -1
  132. package/lib/components/t-dynamic-data-edit/elements/postman-collections/postman-collections.component.d.ts +0 -28
  133. package/lib/components/t-dynamic-data-edit/elements/record-list-manager/record-list-manager.component.d.ts +0 -75
  134. package/lib/components/t-dynamic-data-edit/elements/required-inputs/required-inputs.component.d.ts +0 -58
  135. package/lib/components/t-dynamic-data-edit/elements/rest-api-call-setup/rest-api-call-setup.component.d.ts +0 -46
  136. package/lib/components/t-dynamic-data-edit/elements/selection-options-editor/selection-options-editor.component.d.ts +0 -79
  137. package/lib/components/t-dynamic-data-edit/elements/t-workflow-picker/t-workflow-picker.component.d.ts +0 -59
  138. package/lib/components/t-dynamic-data-edit/elements/validators-config/validators-config.component.d.ts +0 -60
  139. package/lib/components/t-dynamic-data-edit/functions/testData.d.ts +0 -2
  140. package/lib/components/t-dynamic-data-edit/t-dynamic-data-edit.component.d.ts +0 -61
  141. package/lib/components/t-dynamic-data-view/t-dynamic-data-view.component.d.ts +0 -14
  142. package/lib/components/t-form-input/elements/Geo-location-form-input/elements/geo-location-form-input/geo-location-form-input.component.d.ts +0 -17
  143. package/lib/components/t-form-input/elements/Geo-location-form-input/functions/getGeoLocation.d.ts +0 -2
  144. package/lib/components/t-form-input/elements/Geo-location-form-input/geo-location.component.d.ts +0 -14
  145. package/lib/components/t-form-input/elements/auto-complete-input-element/auto-complete-input-element.component.d.ts +0 -13
  146. package/lib/components/t-form-input/elements/auto-complete-input-element/core/auto-complet-reactive-input/auto-complet-reactive-input.component.d.ts +0 -19
  147. package/lib/components/t-form-input/elements/basic-input-input-element/basic-input-input-element.component.d.ts +0 -17
  148. package/lib/components/t-form-input/elements/basic-input-input-element/core/input-custom/input-custom.component.d.ts +0 -18
  149. package/lib/components/t-form-input/elements/date-picker-input-element/core/date-picker-reactive-input/date-picker-reactive-input.component.d.ts +0 -16
  150. package/lib/components/t-form-input/elements/date-picker-input-element/date-picker-input-element.component.d.ts +0 -12
  151. 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 +0 -17
  152. package/lib/components/t-form-input/elements/date-range-picker-input-element/date-range-picker-input-element.component.d.ts +0 -33
  153. package/lib/components/t-form-input/elements/document-picker/core/document-picker-reactive-input/document-picker-reactive-input.component.d.ts +0 -47
  154. package/lib/components/t-form-input/elements/document-picker/document-picker.component.d.ts +0 -14
  155. package/lib/components/t-form-input/elements/editor-input-element/core/editor-js-input/editor-js-input.component.d.ts +0 -22
  156. package/lib/components/t-form-input/elements/editor-input-element/core/form-input-rich-text-editor/config.d.ts +0 -10
  157. package/lib/components/t-form-input/elements/editor-input-element/editor-input-element.component.d.ts +0 -13
  158. package/lib/components/t-form-input/elements/file-upload-input-element/core/file-uploader/camera-functions.d.ts +0 -3
  159. package/lib/components/t-form-input/elements/file-upload-input-element/core/file-uploader/file-uploader.component.d.ts +0 -30
  160. package/lib/components/t-form-input/elements/file-upload-input-element/file-upload-input-element.component.d.ts +0 -13
  161. package/lib/components/t-form-input/elements/image-capture-input-element/core/camera-capture/camera-capture.component.d.ts +0 -27
  162. package/lib/components/t-form-input/elements/image-capture-input-element/image-capture-input-element.component.d.ts +0 -12
  163. package/lib/components/t-form-input/elements/mscoa-form-input/elements/account-value/account-value.component.d.ts +0 -41
  164. package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-chart/components/mscoa-chart-input-menu/mscoa-chart-input-menu.component.d.ts +0 -23
  165. package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-chart/components/mscoa-chart-toolbar/mscoa-chart-toolbar.component.d.ts +0 -22
  166. package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-chart/components/mscoa-error-display/mscoa-error-display.component.d.ts +0 -34
  167. package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-chart/components/mscoa-temporary-hint/mscoa-temporary-hint.component.d.ts +0 -21
  168. package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-chart/extractCols.d.ts +0 -22
  169. package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-chart/mscoa-chart.component.d.ts +0 -336
  170. package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-chart/utils/mscoa-chart.constants.d.ts +0 -47
  171. package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-chart/utils/mscoa-chart.helpers.d.ts +0 -87
  172. package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-chart/utils/mscoa-chart.types.d.ts +0 -51
  173. package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-chart/utils/mscoa-message-formatter.d.ts +0 -87
  174. package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-computation/mscoa-computation.component.d.ts +0 -189
  175. package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-reactive-form-field/mscoa-reactive-form-field.component.d.ts +0 -34
  176. package/lib/components/t-form-input/elements/mscoa-form-input/elements/scoa-account-table/scoa-account-table.component.d.ts +0 -89
  177. package/lib/components/t-form-input/elements/mscoa-form-input/elements/scoa-input/scoa-input.component.d.ts +0 -27
  178. package/lib/components/t-form-input/elements/mscoa-form-input/mscoa-form-input.component.d.ts +0 -15
  179. package/lib/components/t-form-input/elements/mscoa-form-input/store/accountConstants.d.ts +0 -10
  180. package/lib/components/t-form-input/elements/mscoa-form-input/store/mscoa-actions.d.ts +0 -30
  181. package/lib/components/t-form-input/elements/mscoa-form-input/store/mscoa-component-store.service.d.ts +0 -100
  182. package/lib/components/t-form-input/elements/mscoa-form-input/store/mscoa-effects.d.ts +0 -9
  183. package/lib/components/t-form-input/elements/mscoa-form-input/store/mscoa-selectors.d.ts +0 -60
  184. package/lib/components/t-form-input/elements/multiple-input-input-element/core/multiple-input-table/multiple-input-table.component.d.ts +0 -48
  185. package/lib/components/t-form-input/elements/multiple-input-input-element/core/multiple-input-table-edit/multiple-input-table-edit.component.d.ts +0 -51
  186. package/lib/components/t-form-input/elements/multiple-input-input-element/core/multiple-input-table-view/multiple-input-table-view.component.d.ts +0 -47
  187. package/lib/components/t-form-input/elements/multiple-input-input-element/functions/getListCalculated.d.ts +0 -2
  188. package/lib/components/t-form-input/elements/multiple-input-input-element/multiple-input-input-element.component.d.ts +0 -15
  189. package/lib/components/t-form-input/elements/section-title/section-title.component.d.ts +0 -7
  190. package/lib/components/t-form-input/elements/select-input-element/elements/select-input/select-input.component.d.ts +0 -27
  191. package/lib/components/t-form-input/elements/select-input-element/select-input-element.component.d.ts +0 -18
  192. package/lib/components/t-form-input/elements/signature-input-element/config/signature.d.ts +0 -2
  193. package/lib/components/t-form-input/elements/signature-input-element/core/signature-pad-input/functions/getSignatureImage.d.ts +0 -3
  194. package/lib/components/t-form-input/elements/signature-input-element/core/signature-pad-input/signature-pad-input.component.d.ts +0 -40
  195. package/lib/components/t-form-input/elements/signature-input-element/signature-input-element.component.d.ts +0 -12
  196. package/lib/components/t-form-input/elements/textarea-input-element/core/text-area-reactive-input/text-area-reactive-input.component.d.ts +0 -19
  197. package/lib/components/t-form-input/elements/textarea-input-element/textarea-input-element.component.d.ts +0 -12
  198. package/lib/components/t-form-input/elements/toggle-input-element/core/toggle/toggle.component.d.ts +0 -16
  199. package/lib/components/t-form-input/elements/toggle-input-element/toggle-input-element.component.d.ts +0 -12
  200. package/lib/components/t-form-input/elements/workflow-adjudication/elements/point-assignment/elements/point-assignment-dialog/point-assignment-dialog.component.d.ts +0 -41
  201. package/lib/components/t-form-input/elements/workflow-adjudication/elements/point-assignment/point-assignment.component.d.ts +0 -44
  202. package/lib/components/t-form-input/elements/workflow-adjudication/elements/points-creation/points-creation.component.d.ts +0 -31
  203. package/lib/components/t-form-input/elements/workflow-adjudication/elements/submission-review/elements/submission-review-dialog/submission-review-dialog.component.d.ts +0 -27
  204. package/lib/components/t-form-input/elements/workflow-adjudication/elements/submission-review/submission-review.component.d.ts +0 -79
  205. package/lib/components/t-form-input/elements/workflow-adjudication/elements/supplier-selection/supplier-selection.component.d.ts +0 -33
  206. package/lib/components/t-form-input/elements/workflow-adjudication/elements/workflow-adjudication-reactive-input/workflow-adjudication-reactive-input.component.d.ts +0 -19
  207. package/lib/components/t-form-input/elements/workflow-adjudication/workflow-adjudication.component.d.ts +0 -14
  208. package/lib/components/t-form-input/t-form-input.component.d.ts +0 -21
  209. package/lib/components/t-form-input-status/t-form-input-status.component.d.ts +0 -11
  210. package/lib/components/user-form-stepper/user-form-stepper.component.d.ts +0 -38
  211. package/lib/injection-tokens/index.d.ts +0 -14
  212. package/lib/ngx-t-forms.component.d.ts +0 -5
  213. package/lib/ngx-t-forms.service.d.ts +0 -6
  214. package/lib/services/core/t-form-builder/functions/addFormInputToForm.d.ts +0 -8
  215. package/lib/services/core/t-form-builder/functions/addMultipleInputFunction.d.ts +0 -2
  216. package/lib/services/core/t-form-builder/functions/addNewSection.d.ts +0 -2
  217. package/lib/services/core/t-form-builder/functions/addScoaExtensionInput.d.ts +0 -2
  218. package/lib/services/core/t-form-builder/functions/deleteSection.d.ts +0 -3
  219. package/lib/services/core/t-form-builder/functions/formCanSave.d.ts +0 -3
  220. package/lib/services/core/t-form-builder/functions/inputElementEditorConfigs.d.ts +0 -127
  221. package/lib/services/core/t-form-builder/functions/moveFormInput.d.ts +0 -4
  222. package/lib/services/core/t-form-builder/functions/moveInputToDiffSection.d.ts +0 -2
  223. package/lib/services/core/t-form-builder/functions/multipleInputToggleLabel.d.ts +0 -2
  224. package/lib/services/core/t-form-builder/functions/removeItem.d.ts +0 -8
  225. package/lib/services/core/t-form-builder/functions/sectionDrop.d.ts +0 -3
  226. package/lib/services/core/t-form-builder/functions/stepTitleChangeStep.d.ts +0 -15
  227. package/lib/services/core/t-form-controller/function/calculateInputValue.d.ts +0 -11
  228. package/lib/services/core/t-form-controller/function/getApiDataFetching.d.ts +0 -4
  229. package/lib/services/core/t-form-controller/function/getInputSourcedValue.d.ts +0 -4
  230. package/lib/services/core/t-form-controller/function/multipleFormInputsMapValueToFormInputId.d.ts +0 -2
  231. package/lib/services/core/t-form-controller/function/postApiDataFetching.d.ts +0 -16
  232. package/lib/services/core/t-form-controller/function/validateMinInputForPostRequest.d.ts +0 -8
  233. package/lib/services/core/t-form-environment-injection/functions/provideNgxTforms.d.ts +0 -3
  234. package/lib/services/core/t-form-section-controller/Functions/commonFormOperations.d.ts +0 -21
  235. package/lib/services/core/t-form-section-controller/Functions/errorResolver.d.ts +0 -7
  236. package/lib/services/core/t-form-section-controller/Functions/formGenerator.d.ts +0 -29
  237. package/lib/services/core/t-form-section-controller/Functions/getValueFromPathMap.d.ts +0 -4
  238. package/lib/services/core/t-form-tower-controller/form-tower-controller.service.d.ts +0 -103
  239. package/lib/services/core/t-form-tower-controller/functions/allFormInputs.d.ts +0 -2
  240. package/lib/services/core/t-form-tower-controller/functions/createEmptyForm.d.ts +0 -2
  241. package/lib/services/core/t-form-tower-controller/functions/extractInitFunctions.d.ts +0 -8
  242. package/lib/services/core/t-form-tower-controller/functions/getAllFunctionTypes.d.ts +0 -14
  243. package/lib/services/core/t-form-tower-controller/functions/getFormValue.d.ts +0 -4
  244. package/lib/services/core/t-form-tower-controller/functions/getSubmissionStatus.d.ts +0 -7
  245. package/lib/services/core/t-form-tower-controller/functions/handleStepChange.d.ts +0 -3
  246. package/lib/services/core/t-form-tower-controller/functions/multipleInputRowIDControllInput.d.ts +0 -2
  247. package/lib/services/core/t-form-tower-controller/functions/prePoPulateForm.d.ts +0 -2
  248. package/lib/services/core/t-form-tower-controller/functions/runMultipleInputPrepopulationFunctions.d.ts +0 -11
  249. package/lib/services/core/t-form-tower-controller/functions/saveMultipleInputForm.d.ts +0 -10
  250. package/lib/services/core/t-form-tower-controller/functions/selectFormSteps.d.ts +0 -9
  251. package/lib/services/core/t-form-tower-controller/functions/setControlTempErrors.d.ts +0 -3
  252. package/lib/services/core/t-form-tower-controller/functions/setInputAsTouchedAndDirty.d.ts +0 -2
  253. package/lib/services/core/t-form-tower-controller/functions/setInputError.d.ts +0 -5
  254. package/lib/services/core/t-form-tower-controller/functions/setInputStatus.d.ts +0 -3
  255. package/lib/services/core/t-form-tower-controller/functions/setSectionAsSeen.d.ts +0 -3
  256. package/lib/services/core/t-form-tower-controller/functions/startTowerFormChangesEventListener.d.ts +0 -10
  257. package/lib/services/core/t-form-tower-controller/functions/toggleMultipleInput.d.ts +0 -5
  258. package/lib/services/core/t-form-tower-controller/functions/updateChangeHistory.d.ts +0 -2
  259. package/lib/services/core/t-form-tower-controller/functions/updateFormInputConfig.d.ts +0 -13
  260. package/lib/services/core/t-form-tower-controller/functions/updateValue.d.ts +0 -2
  261. package/lib/services/core/t-input-controller/functions/baseCustomInput.d.ts +0 -105
  262. package/lib/services/core/t-input-controller/functions/colorCoding.d.ts +0 -24
  263. package/lib/services/core/t-input-controller/functions/configureCols.d.ts +0 -5
  264. package/lib/services/core/t-input-controller/functions/generateInputSecret.d.ts +0 -2
  265. package/lib/services/core/t-input-controller/functions/inputErrorMessage.d.ts +0 -3
  266. package/lib/services/core/tour/tour-manager.service.d.ts +0 -18
  267. package/lib/services/hhtpResources/Pipeline/pipeline.service.d.ts +0 -80
  268. package/lib/services/index.d.ts +0 -7
  269. package/lib/shared/functions/assignDeepPropertyToObject.d.ts +0 -1
  270. package/lib/shared/functions/camelize.d.ts +0 -6
  271. package/lib/shared/functions/convertElementEditorTypesToInputType.d.ts +0 -3
  272. package/lib/shared/functions/createFileUploadSample.d.ts +0 -10
  273. package/lib/shared/functions/daysAgoTransform.d.ts +0 -1
  274. package/lib/shared/functions/enryption.d.ts +0 -9
  275. package/lib/shared/functions/evaluateArrayAccessRules.d.ts +0 -14
  276. package/lib/shared/functions/fuzzyTextSearch.d.ts +0 -4
  277. package/lib/shared/functions/getAvatar.d.ts +0 -1
  278. package/lib/shared/functions/getDeepObject.d.ts +0 -138
  279. package/lib/shared/functions/getInputIllustration.d.ts +0 -2
  280. package/lib/shared/functions/getPipedValueFromDataType.d.ts +0 -2
  281. package/lib/shared/functions/getformInputsSampleValue.d.ts +0 -10
  282. package/lib/shared/functions/isEqual.d.ts +0 -12
  283. package/lib/shared/functions/mapColors.d.ts +0 -1
  284. package/lib/shared/functions/migrationCheck.d.ts +0 -3
  285. package/lib/shared/functions/replaceUrlVariables.d.ts +0 -2
  286. package/lib/shared/functions/searchArray.d.ts +0 -1
  287. package/lib/shared/functions/textIconsForUserHints.d.ts +0 -21
  288. package/lib/shared/index.d.ts +0 -10
  289. package/lib/shared/modules/mat-modules.module.d.ts +0 -50
  290. package/lib/shared/modules/stringJsonValidator/getObjectValidations.d.ts +0 -16
  291. package/lib/shared/pipes/date/days-ago.pipe.d.ts +0 -12
  292. package/lib/shared/pipes/format-Data.pipe.d.ts +0 -8
  293. package/lib/shared/pipes/index.d.ts +0 -2
  294. package/lib/shared/pipes/list-search.pipe.d.ts +0 -7
  295. package/public-api.d.ts +0 -7
@@ -1 +0,0 @@
1
- {"version":3,"file":"ngx-t-forms-config-mscoa-additional-inputs.component-DJ9d3Oy9.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/config-mscoa-additional-inputs/config-mscoa-additional-inputs.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/config-mscoa-additional-inputs/config-mscoa-additional-inputs.component.html"],"sourcesContent":["import { Component, ElementRef, EventEmitter, HostBinding, inject, Input, OnInit, Optional, Output, Self } from '@angular/core';\r\nimport { BehaviorSubject, catchError, Observable, Subject, take, tap } from 'rxjs';\r\n\r\nimport { MatDialog } from '@angular/material/dialog';\r\nimport { FormColumnInputs } from 'ngx-t-forms-types';\r\nimport { CommonModule } from '@angular/common';\r\nimport { MatModulesModule } from '../../../../shared/modules/mat-modules.module';\r\nimport { IGetTreeResponse } from 'ngx-t-forms-types';\r\nimport { MatFormFieldControl } from '@angular/material/form-field';\r\nimport { NgControl } from '@angular/forms';\r\nimport { IConfigElementError } from '../../t-dynamic-data-edit.component';\r\n\r\n\r\n\r\n\r\ninterface ConfiguredMscoaInput extends FormColumnInputs {\r\n segment:string\r\n}\r\n@Component({\r\n selector: 'app-config-mscoa-additional-inputs',\r\n standalone: true,\r\n imports:[\r\n CommonModule,\r\n MatModulesModule,\r\n ],\r\n templateUrl: './config-mscoa-additional-inputs.component.html',\r\n styleUrls: ['./config-mscoa-additional-inputs.component.scss'],\r\n providers: [{ provide: MatFormFieldControl, useExisting: ConfigMscoaAdditionalInputsComponent}],\r\n})\r\nexport class ConfigMscoaAdditionalInputsComponent implements OnInit, MatFormFieldControl<ConfiguredMscoaInput[]> {\r\n\r\n static nextId = 0;\r\n stateChanges = new Subject<void>();\r\n \r\n @HostBinding() id = `app-config-mscoa-additional-inputs-${ConfigMscoaAdditionalInputsComponent .nextId++}`;\r\n \r\n placeholder: string = ''\r\n constructor(@Optional() @Self() public ngControl: NgControl, private _elementRef: ElementRef<HTMLElement>,) { }\r\n focused: boolean = false;\r\n get empty() {\r\n return !this.value\r\n }\r\n get shouldLabelFloat() {\r\n return this.focused || !this.empty;\r\n }\r\n required: boolean = false;\r\n @Input() disabled: boolean = false;\r\n get errorState(): boolean {\r\n const hasError = !!this.ngControl?.control?.errors || (this.errors||[]).length > 0 && this.touched\r\n return !this.value && !!this.required || hasError\r\n }\r\n \r\n controlType?: string | undefined;\r\n autofilled?: boolean | undefined;\r\n userAriaDescribedBy?: string | undefined;\r\n disableAutomaticLabeling?: boolean | undefined;\r\n setDescribedByIds(ids: string[]) {\r\n // Ensure the component view is initialized\r\n if (this._elementRef && this._elementRef.nativeElement) {\r\n const controlElement = this._elementRef.nativeElement.querySelector('.app-config-mscoa-additional-inputs');\r\n // Check if the controlElement exists before attempting to set its attribute\r\n if (controlElement) {\r\n controlElement.setAttribute('aria-describedby', ids.join(' '));\r\n }\r\n }\r\n }\r\n onContainerClick(event: MouseEvent): void {\r\n this.markAsTouched();\r\n this.stateChanges.next();\r\n }\r\n \r\n touched: boolean = false;\r\n onTouched = () => {};\r\n markAsTouched() {\r\n console.log('markAsTouched') \r\n if (!this.touched) {\r\n this.onTouched();\r\n this.touched = true;\r\n }\r\n } \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n mscoaInitiated = false\r\n @Input() errors:IConfigElementError[] |undefined = [];\r\n @Input() set getMscoaTree(options$:Observable<IGetTreeResponse| undefined> ){\r\n if(!!options$ &&!this.mscoaInitiated){\r\n this.mscoaInitiated = true\r\n options$.pipe(\r\n take(1),\r\n tap((options) => {\r\n this.accountTreeKeys = options?.accountTreeKeys || []\r\n }),\r\n catchError((error) => {\r\n console.error('Error while fetching SCOA tree:', error);\r\n return [null];\r\n })\r\n ).subscribe();\r\n\r\n }\r\n }\r\n @Input() mapToData:FormColumnInputs | undefined = undefined;\r\n @Input() set value(val: ConfiguredMscoaInput[]) {\r\n this._value.next(val || []);\r\n }\r\n get value(): ConfiguredMscoaInput[] {\r\n return this._value.value;\r\n }\r\n _inputInEdit = new BehaviorSubject<ConfiguredMscoaInput|null>(null)\r\n inputInEdit:ConfiguredMscoaInput|undefined = undefined\r\n\r\n @Output() valueChanged = new EventEmitter<ConfiguredMscoaInput[]>();\r\n private _value = new BehaviorSubject<ConfiguredMscoaInput[]>([]);\r\n\r\n editingIndex: number | null = null;\r\n isAddingNew = false;\r\n accountTreeKeys: string[] = [];\r\n \r\n ngOnInit() {\r\n\r\n }\r\n hovered :null|number = null\r\n\r\n\r\n startAddNew() {\r\n this.isAddingNew = true;\r\n this.editingIndex = null;\r\n this.inputInEdit = undefined\r\n this.openElementEditor();\r\n }\r\n\r\n startEdit(index: number) {\r\n this.editingIndex = index;\r\n this.isAddingNew = false;\r\n this.inputInEdit = this.value[index]\r\n this.openElementEditor();\r\n }\r\n removeInput(index: number) {\r\n const updatedValue = this.value.filter((_, i) => i !== index);\r\n this._value.next(updatedValue);\r\n this.valueChanged.emit(updatedValue);\r\n }\r\n cancelEdit() {\r\n this.editingIndex = null;\r\n this.isAddingNew = false;\r\n }\r\n\r\n saveSegment() {\r\n // if (this.segmentForm.valid) {\r\n // const newSegment = ({\r\n // segment:this.segmentForm.value.segment,\r\n // label:this.toTitleCase(this.segmentForm.value.segment),\r\n // }) as IIncludedSegmentConfig;\r\n // const updatedValue = [...this.value];\r\n\r\n // if (this.isAddingNew) {\r\n // updatedValue.push(newSegment);\r\n // } else if (this.editingIndex !== null) {\r\n // updatedValue[this.editingIndex] = newSegment;\r\n // }\r\n\r\n \r\n // this._value.next(updatedValue);\r\n // this.valueChanged.emit(updatedValue);\r\n // this.cancelEdit();\r\n // }\r\n }\r\n hoveredIndex:number|null = null\r\n removeSegment(index: number) {\r\n const updatedValue = this.value.filter((_, i) => i !== index);\r\n this._value.next(updatedValue);\r\n this.valueChanged.emit(updatedValue);\r\n }\r\n parentId:string|undefined \r\n async openElementEditor() {\r\n\r\n this.openFormDialog()\r\n }\r\n inputSegmentChanged($event:any,i:number){\r\n if($event.detail.value === 'None'&&this.value[i] !== undefined){\r\n this.value[i]!.segment = undefined as any\r\n }else if(this.value[i] !== undefined){\r\n this.value[i]!.segment = $event.detail.value\r\n }\r\n this.valueChanged.emit(this.value)\r\n }\r\nreadonly dialog = inject(MatDialog);\r\nopenFormDialog() {\r\n // const dialogRef = this.dialog.open(FormElementModalEditorComponent,{\r\n // maxHeight:'95vh',\r\n // panelClass:'form-element-modal-editor',\r\n // data:{\r\n // inputInEdit:this.inputInEdit\r\n // }\r\n // });\r\n\r\n // dialogRef.afterClosed().pipe(take(1)).subscribe(result => {\r\n // const {input,action} = result\r\n // if(action === 'add'){\r\n // this.value.push(input)\r\n // this.valueChanged.emit(this.value)\r\n // }\r\n // if(action === 'edit'&& this.editingIndex !== null){\r\n // this.value[this.editingIndex] = input\r\n // this.valueChanged.emit(this.value)\r\n // }\r\n // this.cancelEdit()\r\n // });\r\n}\r\nget limitInputTo(){\r\n return [...this.accountTreeKeys.map((key) => ({\r\n value: key,\r\n label: key,\r\n })),{\r\n value:undefined,\r\n label:'None'\r\n }]\r\n}\r\n\r\n}\r\n","\n\n<mat-list *ngIf=\"(value?.length||0) > 0; else noInputs\">\n <mat-toolbar>\n Additional inputs configuration\n </mat-toolbar>\n <mat-form-field \n (mouseover)=\"hovered = i\"\n subscriptSizing=\"dynamic\" \n (mouseleave)=\"hovered = null\"\n *ngFor=\"let input of value; let i = index\" style=\" margin-bottom: 8px;\" appearance=\"outline\" >\n <mat-label>\n {{ input.label }}\n </mat-label>\n <mat-select [disabled]=\"disabled\" matNativeControl \n \n [value]=\"input.segment\"\n\n placeholder=\"select segment\" (selectionChange)=\"inputSegmentChanged($event,i)\"\n >\n \n \n @for (segment of limitInputTo; track segment.value) {\n <mat-option [value]=\"segment.value\" >{{segment.label}}</mat-option>\n }\n\n\n </mat-select>\n <mat-hint>\n Link formula to an input value\n </mat-hint>\n </mat-form-field>\n\n</mat-list>\n\n<ng-template #noInputs>\n <div *ngIf=\"mapToData?.id\" class=\"tree-instructions\">\n <mat-icon class=\"info-icon\" color=\"primary\">info</mat-icon>\n <span><strong>\n No input configuration available. \n </strong> <br>\n Start by adding inputs below.</span>\n </div>\n\n</ng-template>\n\n\n\n\n<mat-toolbar *ngIf=\"!isAddingNew && editingIndex === null && mapToData?.id\">\n <button [disabled]=\"disabled\" style=\"width: 100%;\" (click)=\"startAddNew()\" mat-stroked-button>\n <mat-icon>\n add\n </mat-icon>\n Add New Input\n </button>\n</mat-toolbar>\n\n<ng-template #InputEditor>\n <h1>\n Not implemented yet\n </h1>\n\n not implemented\n</ng-template>\n"],"names":["i3","i4","i5","i6","i7","i8"],"mappings":";;;;;;;;;;;;;;;;MA6Ba,oCAAoC,CAAA;aAEvC,IAAM,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AAA,YAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAMP,oCAAoC,EAAA,UAAA,EAAA,CAAA;kBAXhD,SAAS;+BACE,oCAAoC,EAAA,UAAA,EAClC,IAAI,EACR,OAAA,EAAA;wBACN,YAAY;wBACZ,gBAAgB;qBACjB,EAGU,SAAA,EAAA,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAsC,oCAAA,EAAC,CAAC,EAAA,QAAA,EAAA,ulDAAA,EAAA,MAAA,EAAA,CAAA,4JAAA,CAAA,EAAA;;0BAUjF;;0BAAY;kEAHV,EAAE,EAAA,CAAA;sBAAhB;gBAYO,QAAQ,EAAA,CAAA;sBAAhB;gBA8CY,MAAM,EAAA,CAAA;sBAAd;gBACQ,YAAY,EAAA,CAAA;sBAAxB;gBAgBQ,SAAS,EAAA,CAAA;sBAAjB;gBACY,KAAK,EAAA,CAAA;sBAAjB;gBASS,YAAY,EAAA,CAAA;sBAArB;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ngx-t-forms-data-source-picker.component-CFQ_GVPG.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/data-source-picker/data-source-picker.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/data-source-picker/data-source-picker.component.html"],"sourcesContent":["import { Component, ElementRef, EventEmitter, HostBinding, Input, Optional, Output, Self } from '@angular/core';\r\nimport { NgControl } from '@angular/forms';\r\nimport { MatFormFieldControl } from '@angular/material/form-field';\r\nimport { BehaviorSubject, Subject } from 'rxjs';\r\nimport { IConfigElementError } from '../../t-dynamic-data-edit.component';\r\nimport { APIDataFetchingConfigurationInterface, DataSources, ElementEditorInnerSectionElementInterface, FormColumnInputs, IReportDataSources, MinimumInputRequiredInterface, MongoDbPipeLineConfigInterface } from 'ngx-t-forms-types';\r\nimport {MatButtonModule} from '@angular/material/button';\r\nimport { CommonModule } from '@angular/common';\r\nimport { MatChipListEditorComponent } from '../mat-chip-list-editor/mat-chip-list-editor.component';\r\nimport { RestApiCallSetupComponent } from '../rest-api-call-setup/rest-api-call-setup.component';\r\nimport { PipelineGeneratorComponent } from '../pipeline-generator/pipeline-generator.component';\r\nimport {MatCardModule} from '@angular/material/card';\r\nimport {MatDividerModule} from '@angular/material/divider';\r\nimport {MatListModule} from '@angular/material/list';\r\nimport {MatIconModule} from '@angular/material/icon';\r\nimport { v4 as uuidv4 } from 'uuid';\r\nimport { RequiredInputsComponent } from '../required-inputs/required-inputs.component';\r\nimport {MatTooltipModule} from '@angular/material/tooltip';\r\n@Component({\r\n selector: 'lib-data-source-picker',\r\n imports: [\r\n MatButtonModule,\r\n CommonModule,\r\n MatChipListEditorComponent,\r\n RestApiCallSetupComponent,\r\n PipelineGeneratorComponent,\r\n MatCardModule,\r\n MatDividerModule,\r\n MatListModule,\r\n MatIconModule,\r\n RequiredInputsComponent,\r\n MatTooltipModule\r\n \r\n ],\r\n templateUrl: './data-source-picker.component.html',\r\n styleUrl: './data-source-picker.component.css',\r\n providers: [{ provide: MatFormFieldControl, useExisting: DataSourcePickerComponent,}],\r\n})\r\nexport class DataSourcePickerComponent implements MatFormFieldControl< Array< IReportDataSources>| undefined> {\r\n\r\n static nextId = 0;\r\n stateChanges = new Subject<void>();\r\n @Input() errors:IConfigElementError[] |undefined = [];\r\n @HostBinding() id = `lib-data-source-picker-${DataSourcePickerComponent .nextId++}`;\r\n \r\n placeholder: string = ''\r\n constructor(@Optional() @Self() public ngControl: NgControl, private _elementRef: ElementRef<HTMLElement>,) { }\r\n focused: boolean = false;\r\n get empty() {\r\n return !this.value\r\n }\r\n get shouldLabelFloat() {\r\n return this.focused || !this.empty;\r\n }\r\n required: boolean = false;\r\nget errorState(): boolean {\r\n const hasError = !!this.ngControl?.control?.errors || (this.errors||[]).length > 0 && this.touched\r\n return !this.value && !!this.required || hasError\r\n }\r\n\r\n controlType?: string | undefined;\r\n autofilled?: boolean | undefined;\r\n userAriaDescribedBy?: string | undefined;\r\n disableAutomaticLabeling?: boolean | undefined;\r\n setDescribedByIds(ids: string[]) {\r\n // Ensure the component view is initialized\r\n if (this._elementRef && this._elementRef.nativeElement) {\r\n const controlElement = this._elementRef.nativeElement.querySelector('.lib-data-source-picker');\r\n // Check if the controlElement exists before attempting to set its attribute\r\n if (controlElement) {\r\n controlElement.setAttribute('aria-describedby', ids.join(' '));\r\n }\r\n }\r\n }\r\n onContainerClick(event: MouseEvent): void {\r\n this.markAsTouched();\r\n this.stateChanges.next();\r\n }\r\n\r\n touched: boolean = false;\r\n onTouched = () => {};\r\n markAsTouched() {\r\n console.log('markAsTouched') \r\n if (!this.touched) {\r\n this.onTouched();\r\n this.touched = true;\r\n }\r\n } \r\n\r\n\r\n\r\n\r\n _value = new BehaviorSubject<Array< IReportDataSources>|undefined>(undefined)\r\n @Input() set value(value: Array<IReportDataSources>| undefined) {\r\n if (this._value.getValue() === value) {\r\n return\r\n }\r\n this._value.next(value)\r\n }\r\n get value() {\r\n return this._value.getValue()\r\n }\r\n get value$() {\r\n return this._value.asObservable()\r\n\r\n }\r\n _editorConfig:ElementEditorInnerSectionElementInterface | undefined = undefined\r\n @Input() formInputs: Array<FormColumnInputs> = []\r\n @Input() disabled: boolean = false\r\n @Output() valueChange = new EventEmitter<any>()\r\n @Input() set editorConfig(config: ElementEditorInnerSectionElementInterface | undefined) {\r\n this._editorConfig = (config)\r\n }\r\n get editorConfig() {\r\n return this._editorConfig\r\n }\r\n dataSourceInEdit:IReportDataSources | undefined | Record<string,any> = undefined\r\n get dataSourceOptions(){\r\n return [\r\n {\r\n label: 'API',\r\n value: DataSources.Api\r\n },\r\n {\r\n label: 'MongoDB',\r\n value: DataSources.MongoDb\r\n }\r\n ]\r\n }\r\n dataSources = DataSources\r\n dataSourceChanged(source:DataSources | undefined) {\r\n if(!this.dataSourceInEdit) {\r\n return\r\n }\r\n this.dataSourceInEdit['source'] = source\r\n \r\n }\r\n sourceValueChanged(value:APIDataFetchingConfigurationInterface | MongoDbPipeLineConfigInterface | undefined) {\r\n if(!this.dataSourceInEdit) {\r\n return\r\n }\r\n this.dataSourceInEdit['config'] = value\r\n\r\n }\r\n minimumInputRequiredValueChanged(value: Array<MinimumInputRequiredInterface> ) {\r\n if(!this.dataSourceInEdit) {\r\n return\r\n }\r\n this.dataSourceInEdit['config']['backEndConfig']['minimumInputRequired'] = value\r\n\r\n }\r\n saveNewSource(){\r\n if(!this.dataSourceInEdit) {\r\n return\r\n }\r\n const data:any = {\r\n ...this.dataSourceInEdit,\r\n id:uuidv4(),\r\n }\r\n this.value = [...(this.value || []), data]\r\n this.dataSourceInEdit = undefined\r\n this.valueChange.emit(this.value)\r\n \r\n }\r\n removeSubmissionApi(api:IReportDataSources) {\r\n if(!this.value) {\r\n return\r\n }\r\n this.value = this.value.filter((item) => item.id !== api.id)\r\n this.valueChange.emit(this.value)\r\n }\r\n getName(value:IReportDataSources | undefined, index:number) {\r\n if((value?.config as APIDataFetchingConfigurationInterface).name) {\r\n return (value?.config as APIDataFetchingConfigurationInterface).name\r\n\r\n }\r\n if(value?.source !== 'api') {\r\n return `MongoDB ${index + 1}`\r\n }\r\n return `API ${index + 1}`\r\n }\r\n getIcon(value:IReportDataSources | undefined) {\r\n if(value?.source === 'api') {\r\n return\"api\"\r\n }\r\n return 'storage'\r\n }\r\n getEndpoint(value:IReportDataSources | undefined) {\r\n if(value?.source === 'api') {\r\n return (value.config as APIDataFetchingConfigurationInterface).httpEndPoint\r\n }\r\n return (value?.config as MongoDbPipeLineConfigInterface).workflowId\r\n }\r\n\r\n}\r\n","<mat-nav-list >\r\n <h5 matSubheader class=\"api-list-header\">\r\n\r\n DataSources\r\n </h5>\r\n @if((value)?.length === 0){\r\n <p class=\"no-api-list\">\r\n No data sources configured. Add one to get started.\r\n </p>\r\n }\r\n @for (source of value||[]; track source.id) {\r\n\r\n <mat-list-item \r\n style=\"background: azure;\"\r\n matTooltipPosition=\"before\"\r\n [matTooltip]=\"source.source +' ' + getEndpoint(source)\"\r\n class=\"api-list-item\">\r\n\r\n <mat-icon \r\n \r\n matListItemIcon \r\n [style.color]=\"source.source === 'api' ? 'green' : 'blue'\">\r\n {{getIcon(source)}}\r\n </mat-icon>\r\n <div matListItemTitle>\r\n <div style=\"line-height: normal;\">\r\n <small style=\"white-space: nowrap;overflow: hidden;text-overflow: ellipsis;\">\r\n <strong>\r\n {{getName(source,$index)}}\r\n\r\n </strong>\r\n </small>\r\n\r\n </div>\r\n <div style=\"line-height: normal;opacity: 0.6;\">\r\n <small>\r\n\r\n {{getEndpoint(source)}}\r\n </small>\r\n </div>\r\n </div>\r\n\r\n <button [disabled]=\"disabled\" matListItemMeta (click)=\"removeSubmissionApi(source)\" mat-icon-button>\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n\r\n </mat-list-item>\r\n <mat-divider>\r\n </mat-divider>\r\n\r\n\r\n\r\n }\r\n\r\n\r\n</mat-nav-list>\r\n\r\n@if(dataSourceInEdit !== undefined ) {\r\n<mat-card appearance=\"outlined\" class=\"data-source-card\">\r\n <mat-card-content>\r\n\r\n\r\n <label for=\"629879d6-763b-4f98-b67f-67bbe91045ea\">\r\n Select Source Type\r\n </label>\r\n <lib-mat-chip-list-editor [id]=\"'629879d6-763b-4f98-b67f-67bbe91045ea'\" (valueChange)=\"dataSourceChanged($event)\"\r\n [value]=\"dataSourceInEdit.source\" [options]=\"dataSourceOptions\"></lib-mat-chip-list-editor>\r\n @if(dataSourceInEdit.source !== undefined) {\r\n @switch (dataSourceInEdit.source) {\r\n @case(dataSources.Api){\r\n <label for=\"1a049f19-b4a0-42c9-8058-1759792ee4a5\">\r\n Select API\r\n </label>\r\n <lib-rest-api-call-setup [postmanCollectionConfig]=\"(editorConfig)?.postmanCollectionConfig\"\r\n [httpGetDataFunction]=\"(editorConfig)?.httpGetDataFunction\" [id]=\"'1a049f19-b4a0-42c9-8058-1759792ee4a5'\"\r\n [value]=\"(dataSourceInEdit?.config)\" (valueChanged)=\"sourceValueChanged($event)\">\r\n\r\n </lib-rest-api-call-setup>\r\n @if ((dataSourceInEdit.config?.backEndConfig?.minimumInputRequired)) {\r\n <app-required-inputs [formInputs]=\"formInputs ||[]\" [id]=\"'0ca91260-b610-4d0d-91c1-fdaca61cc5f2'\"\r\n [value]=\"(dataSourceInEdit.config.backEndConfig.minimumInputRequired)\" [errors]=\"[]\"\r\n (valueChanged)=\"minimumInputRequiredValueChanged($event)\">\r\n </app-required-inputs>\r\n }\r\n\r\n }\r\n @case(dataSources.MongoDb){\r\n <label for=\"d3c22913-505d-41f8-a267-72c086b8b10b\">\r\n Add a MongoDB pipeline\r\n </label>\r\n <app-pipeline-generator [id]=\"'d3c22913-505d-41f8-a267-72c086b8b10b'\" [value]=\"(dataSourceInEdit?.config)\"\r\n [getWorkflowOptions]=\"editorConfig?.getWorkflowOptions\"\r\n (valueChanged)=\"sourceValueChanged($event)\"></app-pipeline-generator>\r\n\r\n\r\n }\r\n\r\n }\r\n }\r\n </mat-card-content>\r\n <br>\r\n <mat-divider></mat-divider>\r\n <mat-card-actions>\r\n <button mat-flat-button color=\"primary\" (click)=\"saveNewSource()\">Save Source</button>\r\n <span class=\"spacer\"></span>\r\n <button mat-button (click)=\"dataSourceInEdit = undefined\" color=\"warn\">Cancel</button>\r\n </mat-card-actions>\r\n</mat-card>\r\n\r\n}\r\n\r\n\r\n\r\n@if (dataSourceInEdit === undefined) {\r\n<button [disabled]=\"disabled\" (click)=\"dataSourceInEdit={}\" class=\"AddButton\" mat-stroked-button color=\"primary\">\r\n Add Data Source\r\n</button>\r\n}"],"names":["uuidv4","i5","i6","i7"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;MAsCa,yBAAyB,CAAA;aAE7B,IAAM,CAAA,MAAA,GAAG,CAAH,CAAK;IAMlB,WAAuC,CAAA,SAAoB,EAAU,WAAoC,EAAA;QAAlE,IAAS,CAAA,SAAA,GAAT,SAAS;QAAqB,IAAW,CAAA,WAAA,GAAX,WAAW;AALhF,QAAA,IAAA,CAAA,YAAY,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Ad;gBACY,EAAE,EAAA,CAAA;sBAAhB;gBAkDY,KAAK,EAAA,CAAA;sBAAjB;gBAcQ,UAAU,EAAA,CAAA;sBAAlB;gBACQ,QAAQ,EAAA,CAAA;sBAAhB;gBACS,WAAW,EAAA,CAAA;sBAApB;gBACY,YAAY,EAAA,CAAA;sBAAxB;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ngx-t-forms-document-list-label-config-editor.component-CPF_BLRA.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/document-list-label-config-editor/document-list-label-config-editor.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/document-list-label-config-editor/document-list-label-config-editor.component.html"],"sourcesContent":["import { Component, ElementRef, EventEmitter, HostBinding, Input, Optional, Output, Self } from '@angular/core';\r\nimport { IConfigElementError } from '../../t-dynamic-data-edit.component';\r\nimport { Subject } from 'rxjs';\r\nimport { DocumentLitsLabelConfigInterface, DocumentLitsLabelConfigInterfaceValueType, ElementEditorInnerSectionElementInterface, ElementTypes, FormColumnInputs, InputDataTypes, InputPipeTypes, InputTypes, ReportTypes } from 'ngx-t-forms-types';\r\nimport { MatFormFieldControl } from '@angular/material/form-field';\r\nimport { NgControl } from '@angular/forms';\r\nimport { CommonModule } from '@angular/common';\r\nimport { MatListModule } from '@angular/material/list';\r\nimport { MatTooltipModule } from '@angular/material/tooltip';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatCardModule } from '@angular/material/card';\r\n\r\nimport { MatSliderToggleEditorComponent } from '../mat-slider-toggle-editor/mat-slider-toggle-editor.component';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatFormFieldModule } from '@angular/material/form-field';\r\nimport { MatChipListEditorComponent } from '../mat-chip-list-editor/mat-chip-list-editor.component';\r\nimport { MatAutocompleteModule, MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';\r\nimport { MatInputModule } from '@angular/material/input';\r\nimport {\r\n CdkDragDrop,\r\n CdkDrag,\r\n CdkDropList,\r\n} from '@angular/cdk/drag-drop';\r\nimport { _isEqual } from '../../../../shared/functions/isEqual';\r\nimport { ClipboardModule } from '@angular/cdk/clipboard';\r\n@Component({\r\n selector: 'lib-document-list-label-config-editor',\r\n imports: [CommonModule, MatListModule, MatTooltipModule, ClipboardModule, MatSliderToggleEditorComponent,\r\n MatChipListEditorComponent,\r\n MatFormFieldModule,\r\n MatButtonModule,\r\n MatAutocompleteModule,\r\n MatInputModule,\r\n MatIconModule, MatCardModule, CdkDropList, CdkDrag],\r\n templateUrl: './document-list-label-config-editor.component.html',\r\n styleUrl: './document-list-label-config-editor.component.css',\r\n providers: [{ provide: MatFormFieldControl, useExisting: DocumentListLabelConfigEditorComponent }],\r\n})\r\nexport class DocumentListLabelConfigEditorComponent implements MatFormFieldControl<Array<DocumentLitsLabelConfigInterface>> {\r\n\r\n static nextId = 0;\r\n stateChanges = new Subject<void>();\r\n @Input() errors: IConfigElementError[] | undefined = [];\r\n @HostBinding() id = `lib-document-list-label-config-editor-${DocumentListLabelConfigEditorComponent.nextId++}`;\r\n\r\n placeholder: string = ''\r\n constructor(@Optional() @Self() public ngControl: NgControl, private _elementRef: ElementRef<HTMLElement>) { }\r\n focused: boolean = false;\r\n get empty() {\r\n return !this.value\r\n }\r\n get shouldLabelFloat() {\r\n return this.focused || !this.empty;\r\n }\r\n required: boolean = false;\r\n get errorState(): boolean {\r\n const hasError = !!this.ngControl?.control?.errors || (this.errors || []).length > 0 && this.touched\r\n return !this.value && !!this.required || hasError\r\n }\r\n\r\n controlType?: string | undefined;\r\n autofilled?: boolean | undefined;\r\n userAriaDescribedBy?: string | undefined;\r\n disableAutomaticLabeling?: boolean | undefined;\r\n setDescribedByIds(ids: string[]) {\r\n // Ensure the component view is initialized\r\n if (this._elementRef && this._elementRef.nativeElement) {\r\n const controlElement = this._elementRef.nativeElement.querySelector('.lib-document-list-label-config-editor');\r\n // Check if the controlElement exists before attempting to set its attribute\r\n if (controlElement) {\r\n controlElement.setAttribute('aria-describedby', ids.join(' '));\r\n }\r\n }\r\n }\r\n onContainerClick(event: MouseEvent): void {\r\n this.markAsTouched();\r\n this.stateChanges.next();\r\n }\r\n\r\n touched: boolean = false;\r\n onTouched = () => { };\r\n markAsTouched() {\r\n console.log('markAsTouched')\r\n if (!this.touched) {\r\n this.onTouched();\r\n this.touched = true;\r\n }\r\n }\r\n\r\n\r\n\r\n\r\n _value: Array<DocumentLitsLabelConfigInterface> = []\r\n @Input() set value(value: Array<DocumentLitsLabelConfigInterface>) {\r\n\r\n this._value = value as Array<DocumentLitsLabelConfigInterface>\r\n }\r\n get value() {\r\n return this._value\r\n }\r\n\r\n _editorConfig: ElementEditorInnerSectionElementInterface | undefined = undefined\r\n @Input() formInputs: Array<FormColumnInputs> = []\r\n @Input() disabled: boolean = false\r\n @Input() mapToData: string[] | undefined = []\r\n @Output() valueChange = new EventEmitter<any>()\r\n @Input() set editorConfig(config: ElementEditorInnerSectionElementInterface | undefined) {\r\n this._editorConfig = (config)\r\n }\r\n get editorConfig() {\r\n return this._editorConfig\r\n }\r\n get filteredControlNames() {\r\n // Handle case where mapToData is undefined\r\n if (!this.mapToData) return [];\r\n\r\n const searchTerm = this.labelInEdit?.formControlName;\r\n\r\n // If searchTerm is undefined or empty, return all options\r\n if (!searchTerm || searchTerm.trim() === '') {\r\n return this.mapToData;\r\n }\r\n\r\n const lowerSearchTerm = searchTerm.toLowerCase();\r\n\r\n return this.mapToData.filter(option => {\r\n // Skip null/undefined options\r\n if (option == null) return false;\r\n\r\n // Convert option to string for comparison\r\n const optionStr = String(option).toLowerCase();\r\n\r\n // Flexible matching using includes (less rigid than exact RegExp)\r\n if (optionStr.includes(lowerSearchTerm)) return true;\r\n\r\n // Also match if any word in the option starts with the search term\r\n // This helps with partial word matching\r\n return optionStr.split(/\\s+/).some(word =>\r\n word.startsWith(lowerSearchTerm)\r\n );\r\n });\r\n }\r\n saveHeader() {\r\n\r\n const formControlName = this.labelInEdit?.formControlName\r\n const index = (this.value || []).findIndex((item) => item.formControlName === formControlName)\r\n const v = [...this.value]\r\n if (index !== -1) {\r\n v[index] = this.labelInEdit as DocumentLitsLabelConfigInterface\r\n\r\n\r\n\r\n } else {\r\n\r\n v.push(this.labelInEdit as DocumentLitsLabelConfigInterface)\r\n\r\n\r\n }\r\n\r\n this.value = v\r\n this.valueChange.emit(v)\r\n this.labelInEdit = null\r\n\r\n\r\n }\r\n removeLabel(label: DocumentLitsLabelConfigInterface) {\r\n this.value = this.value.filter(\r\n (item) => item.formControlName !== label.formControlName\r\n )\r\n this.valueChange.emit(this.value)\r\n }\r\n labelInEdit: DocumentLitsLabelConfigInterface | null | Record<string, any> = null\r\n get labelSaveDisabled() {\r\n if (!this.labelInEdit) return true\r\n if (!this.labelInEdit.label) return true\r\n if (!this.labelInEdit.formControlName) return true\r\n if (!this.labelInEdit.valueType) return true\r\n\r\n return false\r\n }\r\n get valueTypes() {\r\n return Object.keys(DocumentLitsLabelConfigInterfaceValueType).map((key) => {\r\n return {\r\n label: key.replace(/([A-Z])/g, ' $1').trim().toLowerCase().replace(/^\\w/, c => c.toUpperCase()),\r\n value: key\r\n }\r\n })\r\n }\r\n get reportTypes (){\r\n const valueType = this.labelInEdit?.valueType \r\n if(!valueType){\r\n return \r\n }\r\n const types = Object.values(ReportTypes).filter(reportType=> {\r\n if(valueType === DocumentLitsLabelConfigInterfaceValueType.currency || valueType === DocumentLitsLabelConfigInterfaceValueType.number){\r\n return reportType === ReportTypes.Avg || reportType === ReportTypes.Highest || reportType === ReportTypes.Lowest || reportType === ReportTypes.Sum\r\n } \r\n\r\n if(valueType === DocumentLitsLabelConfigInterfaceValueType.string){\r\n return reportType === ReportTypes.Category\r\n }\r\n return false\r\n } ).map((key) => {\r\n return {\r\n label: key.replace(/([A-Z])/g, ' $1').trim().toLowerCase().replace(/^\\w/, c => c.toUpperCase()),\r\n value: key\r\n }\r\n })\r\n return types\r\n\r\n }\r\n nameChange(event: any) {\r\n const value = event.target?.value;\r\n\r\n this.labelInEdit = {\r\n ...this.labelInEdit,\r\n label: value\r\n }\r\n\r\n\r\n }\r\n formControlNameChange(event: any) {\r\n const value = event.target?.value;\r\n const input = this.formInputs.find(input=>input.formControlName === value)\r\n \r\n \r\n this.labelInEdit = {\r\n ...this.labelInEdit,\r\n formControlName: value,\r\n valueType : this.getValueTypeFromInput(input)\r\n }\r\n }\r\n getValueTypeFromInput(input:FormColumnInputs | undefined){\r\n if(!input){\r\n return\r\n }\r\n const dataType = input.dataType\r\n const type = input.type \r\n if(dataType === InputDataTypes.Number || type === InputTypes.Number || input.pipe?.pipeType === InputPipeTypes .Number ){\r\n return DocumentLitsLabelConfigInterfaceValueType.number\r\n }\r\n if(input.pipe?.pipeType === InputPipeTypes .Currency ){\r\n return DocumentLitsLabelConfigInterfaceValueType.currency\r\n }\r\n if(dataType === InputDataTypes.Boolean || input.element ===ElementTypes.Toggle ){\r\n DocumentLitsLabelConfigInterfaceValueType.boolean\r\n }\r\n return DocumentLitsLabelConfigInterfaceValueType.string\r\n }\r\n valueTypeChanged(event: any) {\r\n const value = event\r\n \r\n\r\n this.labelInEdit = {\r\n ...this.labelInEdit,\r\n valueType: value\r\n }\r\n\r\n }\r\n reportTypeChanged(event:any){\r\n this.labelInEdit = {\r\n ...this.labelInEdit,\r\n reportType:event\r\n }\r\n console.error(\"tttttttttttttttt\",this.labelInEdit)\r\n }\r\n\r\n isHiddenChanged(event: boolean) {\r\n\r\n\r\n this.labelInEdit = {\r\n ...this.labelInEdit,\r\n isHidden: event\r\n }\r\n\r\n }\r\n isCategoryChanged(event: boolean) {\r\n this.labelInEdit = {\r\n ...this.labelInEdit,\r\n isCategory: event\r\n }\r\n }\r\n formControlSelected(event: MatAutocompleteSelectedEvent) {\r\n\r\n const formControlName = event.option.value\r\n \r\n this.labelInEdit = {\r\n ...this.labelInEdit,\r\n formControlName,\r\n label: this.labelInEdit?.label || formControlName.replace(/([a-z])([A-Z])/g, '$1 $2').replace(/([A-Z])([A-Z][a-z])/g, '$1 $2')\r\n }\r\n\r\n\r\n }\r\n reorderArray(arr: DocumentLitsLabelConfigInterface[], fromIndex: number, toIndex: number): DocumentLitsLabelConfigInterface[] {\r\n const element = arr[fromIndex];\r\n if (!element) return arr\r\n const newArr = [...arr];\r\n newArr.splice(fromIndex, 1);\r\n newArr.splice(toIndex, 0, element);\r\n return newArr;\r\n }\r\n\r\n drop(event: CdkDragDrop<DocumentLitsLabelConfigInterface[]>) {\r\n this.value = [... this.reorderArray(this.value, event.previousIndex, event.currentIndex)]\r\n this.valueChange.emit(this.value)\r\n }\r\n copyToClipboard(value: string) {\r\n\r\n }\r\n}\r\n","<mat-nav-list cdkDropList [cdkDropListData]=\"value\" (cdkDropListDropped)=\"drop($event)\" class=\"list\">\r\n <h5 matSubheader class=\"api-list-header\">\r\n\r\n List header config\r\n </h5>\r\n @if((value).length === 0){\r\n <p class=\"no-api-list\" style=\" margin-top: 0px;\r\n padding-left: 16px;\r\n padding-right: 16px;\">\r\n No header configured. <strong>Add new column </strong> below\r\n </p>\r\n }\r\n @for (label of value||[]; track label.formControlName) {\r\n\r\n <mat-list-item cdkDrag style=\"background: azure;\" [matTooltip]=\"'click to copy ' + label.formControlName\"\r\n [cdkCopyToClipboard]=\"label.formControlName\" matTooltipPosition=\"before\" class=\"api-list-item\">\r\n\r\n <mat-icon matListItemIcon>\r\n view_column\r\n </mat-icon>\r\n <div matListItemTitle>\r\n <div style=\"line-height: normal;\">\r\n <small style=\"white-space: nowrap;overflow: hidden;text-overflow: ellipsis;\">\r\n <strong>\r\n {{label.label}}\r\n\r\n </strong>\r\n </small>\r\n\r\n </div>\r\n <div style=\"line-height: normal;opacity: 0.6;\">\r\n <small>\r\n <strong><code>{{label.formControlName}}</code></strong>: {{label.valueType}}\r\n </small>\r\n </div>\r\n </div>\r\n\r\n <button [disabled]=\"disabled\" matListItemMeta (click)=\"removeLabel(label)\" mat-icon-button>\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n\r\n </mat-list-item>\r\n <mat-divider>\r\n </mat-divider>\r\n\r\n\r\n\r\n }\r\n\r\n\r\n</mat-nav-list>\r\n<br>\r\n@if(labelInEdit !== null){\r\n<mat-card appearance=\"outlined\" class=\"data-source-card\">\r\n <mat-card-content>\r\n\r\n <label for=\"fb27a2ec-e41f-45f0-916b-f2ef303c2344\">\r\n Form Control Name\r\n </label>\r\n <input ngDefaultControl type=\"text\" [id]=\"'fb27a2ec-e41f-45f0-916b-f2ef303c2344'\" placeholder=\"Pick one\"\r\n aria-label=\"form control\" [value]=\"labelInEdit.formControlName||''\" (input)=\"formControlNameChange($event)\"\r\n [matAutocomplete]=\"auto\">\r\n <mat-autocomplete (optionSelected)=\"formControlSelected($event)\" autoActiveFirstOption #auto=\"matAutocomplete\">\r\n @for (option of filteredControlNames ; track option) {\r\n <mat-option [value]=\"option\">{{option}}</mat-option>\r\n }\r\n </mat-autocomplete>\r\n\r\n\r\n <label for=\"629879d6-763b-4f98-b67f-67bbe91045ea\">\r\n Name\r\n </label>\r\n <input (input)=\"nameChange($event)\" [value]=\"labelInEdit.label||''\" [id]=\"'4002a77c-9b01-4cdb-b4ce-fdad5a3597d7'\"\r\n [placeholder]=\"'Enter label name'\">\r\n <label for=\"bbdad0dc-f92e-4359-92af-a3ff90d0924b\">\r\n value Type\r\n </label>\r\n <lib-mat-chip-list-editor [errors]=\"[]\" [id]=\"'bbdad0dc-f92e-4359-92af-a3ff90d0924b'\"\r\n [value]=\"labelInEdit.valueType\" [options]=\"valueTypes\" (valueChange)=\"valueTypeChanged($event)\">\r\n </lib-mat-chip-list-editor>\r\n\r\n\r\n \r\n @if(reportTypes && reportTypes.length > 0){\r\n <label for=\"bbdad0dc-f92e-4359-92af-a3ff90d0924b\">\r\n Add Report types\r\n </label>\r\n <lib-mat-chip-list-editor [errors]=\"[]\" [id]=\"'163e944b-16a7-44c5-b6c2-0bfd6a6d582c'\" [multiple]=\"true\"\r\n [value]=\"labelInEdit.valueType\" [options]=\"reportTypes\" (valueChange)=\"reportTypeChanged($event)\">\r\n </lib-mat-chip-list-editor>\r\n }\r\n <br>\r\n <lib-mat-slider-toggle-editor [label]=\"'is Hidden '\" [id]=\"'7c0b575c-c41c-4525-ac7e-dc4b9c351009'\"\r\n (valueChange)=\"isHiddenChanged(!!$event)\" [value]=\"labelInEdit.isHidden\" [errors]=\"[]\">\r\n </lib-mat-slider-toggle-editor>\r\n\r\n </mat-card-content>\r\n <br>\r\n <mat-divider></mat-divider>\r\n <mat-card-actions>\r\n <button mat-flat-button color=\"primary\" [disabled]=\"labelSaveDisabled\" (click)=\"saveHeader()\">Save Header</button>\r\n <span class=\"spacer\"></span>\r\n <button mat-button (click)=\"labelInEdit = null\" color=\"warn\">Cancel</button>\r\n </mat-card-actions>\r\n</mat-card>\r\n}\r\n\r\n@if (labelInEdit === null) {\r\n<button [disabled]=\"disabled\" (click)=\"labelInEdit={}\" style=\"width: 100%;\" class=\"AddButton\" mat-stroked-button\r\n color=\"primary\">\r\n Add new column\r\n</button>\r\n}"],"names":["i2","i3","i4","i6","i7","i8","i9"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;MAsCa,sCAAsC,CAAA;aAE1C,IAAM,CAAA,MAAA,GAAG,CAAH,CAAK;IAMlB,WAAuC,CAAA,SAAoB,EAAU,WAAoC,EAAA;QAAlE,IAAS,CAAA,SAAA,GAAT,SAAS;QAAqB,IAAW,CAAA,WAAA,GAAX,WAAW;AALhF,QAAA,IAAA,CAAA,YAAY,GAAG,IAAI,OAAO,EAAQ;QACzB,IAAM,CAAA,MAAA,GAAsC,EAAE;AACxC,QAAA,IAAA,CAAA,EAAE,GAAG,CAAyC,sCAAA,EAAA,sCAAsC,CAAC,MAAM,EAAE,EAAE;QAE9G,IAAW,CAAA,WAAA,GAAW,EAAE;QAExB,IAAO,CAAA,OAAA,GAAY,KAAK;QAOxB,IAAQ,CAAA,QAAA,GAAY,KAAK;QAyBzB,IAAO,CAAA,OAAA,GAAY,KAAK;AACxB,QAAA,I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,gBAAA,EAAA,eAAA,EAAA,gBAAA,EAAA,cAAA,CAAA,EAAA,QAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAKzC,sCAAsC,EAAA,UAAA,EAAA,CAAA;kBAblD,SAAS;+BACE,uCAAuC,EAAA,OAAA,EACxC,CAAC,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,eAAe,EAAE,8BAA8B;wBACtG,0BAA0B;wBAC1B,kBAAkB;wBAClB,eAAe;wBACf,qBAAqB;wBACrB,cAAc;AACd,wBAAA,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,OAAO,CAAC,EAAA,SAAA,EAG1C,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAA,sCAAwC,EAAE,CAAC,EAAA,QAAA,EAAA,4tIAAA,EAAA,MAAA,EAAA,CAAA,s1BAAA,CAAA,EAAA;;0BAUrF;;0BAAY;kEAJhB,MAAM,EAAA,CAAA;sBAAd;gBACc,EAAE,EAAA,CAAA;sBAAhB;gBAkDY,KAAK,EAAA,CAAA;sBAAjB;gBASQ,UAAU,EAAA,CAAA;sBAAlB;gBACQ,QAAQ,EAAA,CAAA;sBAAhB;gBACQ,SAAS,EAAA,CAAA;sBAAjB;gBACS,WAAW,EAAA,CAAA;sBAApB;gBACY,YAAY,EAAA,CAAA;sBAAxB;;;;;"}
@@ -1,132 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { EventEmitter, Output, Input, HostBinding, Optional, Self, Component } from '@angular/core';
3
- import { Subject, BehaviorSubject, take, tap } from 'rxjs';
4
- import * as i2 from '@angular/common';
5
- import { CommonModule } from '@angular/common';
6
- import { f as getInputIllustration, M as MatModulesModule } from './ngx-t-forms-ngx-t-forms-CD9InaXz.mjs';
7
- import { map } from 'rxjs/operators';
8
- import { MatFormFieldControl } from '@angular/material/form-field';
9
- import * as i1 from '@angular/forms';
10
- import * as i4 from '@angular/material/divider';
11
- import * as i4$1 from '@angular/material/grid-list';
12
- import * as i2$1 from '@angular/material/icon';
13
- import * as i7 from '@angular/material/list';
14
- import * as i6 from '@angular/material/core';
15
- import * as i8 from '@angular/material/tooltip';
16
-
17
- class FormInputSelectorComponent {
18
- static { this.nextId = 0; }
19
- constructor(ngControl, _elementRef) {
20
- this.ngControl = ngControl;
21
- this._elementRef = _elementRef;
22
- this.stateChanges = new Subject();
23
- this.errors = [];
24
- this.id = `lib-form-input-selector-${FormInputSelectorComponent.nextId++}`;
25
- this.placeholder = '';
26
- this.focused = false;
27
- this.required = false;
28
- this.touched = false;
29
- this.onTouched = () => { };
30
- this._value = new BehaviorSubject(undefined);
31
- this.formInputs = [];
32
- this.disabled = false;
33
- this.change = new EventEmitter();
34
- }
35
- get empty() {
36
- return !this.value;
37
- }
38
- get shouldLabelFloat() {
39
- return this.focused || !this.empty;
40
- }
41
- get errorState() {
42
- const hasError = !!this.ngControl?.control?.errors || (this.errors || []).length > 0 && this.touched;
43
- return !this.value && !!this.required || hasError;
44
- }
45
- setDescribedByIds(ids) {
46
- // Ensure the component view is initialized
47
- if (this._elementRef && this._elementRef.nativeElement) {
48
- const controlElement = this._elementRef.nativeElement.querySelector('.lib-form-input-selector');
49
- // Check if the controlElement exists before attempting to set its attribute
50
- if (controlElement) {
51
- controlElement.setAttribute('aria-describedby', ids.join(' '));
52
- }
53
- }
54
- }
55
- onContainerClick(event) {
56
- this.markAsTouched();
57
- this.stateChanges.next();
58
- }
59
- markAsTouched() {
60
- console.log('markAsTouched');
61
- if (!this.touched) {
62
- this.onTouched();
63
- this.touched = true;
64
- }
65
- }
66
- set value(value) {
67
- if (this._value.getValue() === value) {
68
- return;
69
- }
70
- this._value.next(value);
71
- }
72
- get value() {
73
- return this._value.getValue();
74
- }
75
- get value$() {
76
- return this._value.asObservable();
77
- }
78
- selectInput(id) {
79
- this.value$.pipe(take(1), tap((value) => {
80
- if (value === id) {
81
- this.change.emit(undefined);
82
- return;
83
- }
84
- this.change.emit(id);
85
- })).subscribe();
86
- }
87
- get filteredInputs$() {
88
- return this.value$.pipe(map((value) => {
89
- const inputs = () => {
90
- const selectedInput = this.formInputs.find((input) => input.id === value);
91
- if (selectedInput) {
92
- return [{ ...selectedInput, selected: true, illustration: this.getInputIllustration(selectedInput) }];
93
- }
94
- return this.formInputs.map(input => ({ ...input, selected: false, illustration: this.getInputIllustration(input) }));
95
- };
96
- return inputs().map((input) => {
97
- return {
98
- ...input,
99
- illustration: this.getInputIllustration(input)
100
- };
101
- });
102
- }));
103
- }
104
- getInputIllustration(input) {
105
- return getInputIllustration(input.element);
106
- }
107
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FormInputSelectorComponent, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
108
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.17", type: FormInputSelectorComponent, isStandalone: true, selector: "lib-form-input-selector", inputs: { errors: "errors", value: "value", formInputs: "formInputs", disabled: "disabled" }, outputs: { change: "change" }, host: { properties: { "id": "this.id" } }, providers: [{ provide: MatFormFieldControl, useExisting: FormInputSelectorComponent }], ngImport: i0, template: "\r\n\r\n <mat-nav-list class=\"inputList\"> \r\n @for(input of filteredInputs$|async;track input.id){\r\n <mat-list-item \r\n [disabled]=\"disabled\"\r\n (click)=\"selectInput(input.id)\" \r\n [activated]=\"input.selected\"\r\n matRipple matTooltip=\"Select form input\">\r\n <img matListItemAvatar \r\n style=\"margin-left: 8px;\" [src]=\"input.illustration \"\r\n [alt]=\"input.label\">\r\n \r\n <span matListItemTitle >\r\n {{ input.label}}\r\n </span>\r\n <span *ngIf=\"input.multipleInputInEditId\" matListItemLine>\r\n Item List Input\r\n </span>\r\n <span matListItemMeta>\r\n <mat-icon [color]=\"input.selected?'primary':''\">\r\n \r\n {{input.selected?'check_circle':'radio_button_unchecked'}}\r\n \r\n </mat-icon>\r\n </span>\r\n \r\n </mat-list-item>\r\n <mat-divider></mat-divider>\r\n }\r\n @if((filteredInputs$|async)?.length===0){\r\n <mat-list-item>\r\n <span matLine>\r\n No form inputs found\r\n </span>\r\n </mat-list-item>\r\n }\r\n </mat-nav-list>\r\n\r\n", styles: ["mat-nav-list{max-height:600px;overflow:auto}\n"], 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: "component", type: i4.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "directive", type: i4$1.MatLine, selector: "[mat-line], [matLine]" }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i7.MatNavList, selector: "mat-nav-list", exportAs: ["matNavList"] }, { kind: "component", type: i7.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "directive", type: i7.MatListItemAvatar, selector: "[matListItemAvatar]" }, { kind: "directive", type: i7.MatListItemLine, selector: "[matListItemLine]" }, { kind: "directive", type: i7.MatListItemTitle, selector: "[matListItemTitle]" }, { kind: "directive", type: i7.MatListItemMeta, selector: "[matListItemMeta]" }, { kind: "directive", type: i6.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }, { kind: "directive", type: i8.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }] }); }
109
- }
110
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FormInputSelectorComponent, decorators: [{
111
- type: Component,
112
- args: [{ selector: 'lib-form-input-selector', standalone: true, imports: [CommonModule, MatModulesModule], providers: [{ provide: MatFormFieldControl, useExisting: FormInputSelectorComponent }], template: "\r\n\r\n <mat-nav-list class=\"inputList\"> \r\n @for(input of filteredInputs$|async;track input.id){\r\n <mat-list-item \r\n [disabled]=\"disabled\"\r\n (click)=\"selectInput(input.id)\" \r\n [activated]=\"input.selected\"\r\n matRipple matTooltip=\"Select form input\">\r\n <img matListItemAvatar \r\n style=\"margin-left: 8px;\" [src]=\"input.illustration \"\r\n [alt]=\"input.label\">\r\n \r\n <span matListItemTitle >\r\n {{ input.label}}\r\n </span>\r\n <span *ngIf=\"input.multipleInputInEditId\" matListItemLine>\r\n Item List Input\r\n </span>\r\n <span matListItemMeta>\r\n <mat-icon [color]=\"input.selected?'primary':''\">\r\n \r\n {{input.selected?'check_circle':'radio_button_unchecked'}}\r\n \r\n </mat-icon>\r\n </span>\r\n \r\n </mat-list-item>\r\n <mat-divider></mat-divider>\r\n }\r\n @if((filteredInputs$|async)?.length===0){\r\n <mat-list-item>\r\n <span matLine>\r\n No form inputs found\r\n </span>\r\n </mat-list-item>\r\n }\r\n </mat-nav-list>\r\n\r\n", styles: ["mat-nav-list{max-height:600px;overflow:auto}\n"] }]
113
- }], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
114
- type: Optional
115
- }, {
116
- type: Self
117
- }] }, { type: i0.ElementRef }], propDecorators: { errors: [{
118
- type: Input
119
- }], id: [{
120
- type: HostBinding
121
- }], value: [{
122
- type: Input
123
- }], formInputs: [{
124
- type: Input
125
- }], disabled: [{
126
- type: Input
127
- }], change: [{
128
- type: Output
129
- }] } });
130
-
131
- export { FormInputSelectorComponent };
132
- //# sourceMappingURL=ngx-t-forms-form-input-selector.component-C38FXT55.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ngx-t-forms-form-input-selector.component-C38FXT55.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/form-input-selector/form-input-selector.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/form-input-selector/form-input-selector.component.html"],"sourcesContent":["import { Component, ElementRef, EventEmitter, HostBinding, Input, Optional, Output, Self } from '@angular/core';\r\nimport { FormColumnInputs } from 'ngx-t-forms-types';\r\nimport { BehaviorSubject, Observable, Subject, take, tap } from 'rxjs';\r\nimport { CommonModule } from '@angular/common';\r\nimport { MatModulesModule } from '../../../../shared/modules/mat-modules.module';\r\nimport { map } from 'rxjs/operators';\r\nimport { getInputIllustration } from '../../../../shared/functions/getInputIllustration';\r\nimport { MatFormFieldControl } from '@angular/material/form-field';\r\nimport { NgControl } from '@angular/forms';\r\nimport { IConfigElementError } from '../../t-dynamic-data-edit.component';\r\n\r\ninterface IFormColumnUiList extends FormColumnInputs {\r\n selected: boolean,\r\n illustration: string\r\n}\r\n@Component({\r\n selector: 'lib-form-input-selector',\r\n standalone: true,\r\n imports: [CommonModule, MatModulesModule],\r\n templateUrl: './form-input-selector.component.html',\r\n styleUrl: './form-input-selector.component.css',\r\n providers: [{ provide: MatFormFieldControl, useExisting: FormInputSelectorComponent }],\r\n})\r\nexport class FormInputSelectorComponent implements MatFormFieldControl<string | undefined> {\r\n\r\n static nextId = 0;\r\n stateChanges = new Subject<void>();\r\n @Input() errors:IConfigElementError[] |undefined = [];\r\n @HostBinding() id = `lib-form-input-selector-${FormInputSelectorComponent .nextId++}`;\r\n \r\n placeholder: string = ''\r\n constructor(@Optional() @Self() public ngControl: NgControl, private _elementRef: ElementRef<HTMLElement>,) { }\r\n focused: boolean = false;\r\n get empty() {\r\n return !this.value\r\n }\r\n get shouldLabelFloat() {\r\n return this.focused || !this.empty;\r\n }\r\n required: boolean = false;\r\nget errorState(): boolean {\r\n const hasError = !!this.ngControl?.control?.errors || (this.errors||[]).length > 0 && this.touched\r\n return !this.value && !!this.required || hasError\r\n }\r\n\r\n controlType?: string | undefined;\r\n autofilled?: boolean | undefined;\r\n userAriaDescribedBy?: string | undefined;\r\n disableAutomaticLabeling?: boolean | undefined;\r\n setDescribedByIds(ids: string[]) {\r\n // Ensure the component view is initialized\r\n if (this._elementRef && this._elementRef.nativeElement) {\r\n const controlElement = this._elementRef.nativeElement.querySelector('.lib-form-input-selector');\r\n // Check if the controlElement exists before attempting to set its attribute\r\n if (controlElement) {\r\n controlElement.setAttribute('aria-describedby', ids.join(' '));\r\n }\r\n }\r\n }\r\n onContainerClick(event: MouseEvent): void {\r\n this.markAsTouched();\r\n this.stateChanges.next();\r\n }\r\n\r\n touched: boolean = false;\r\n onTouched = () => {};\r\n markAsTouched() {\r\n console.log('markAsTouched') \r\n if (!this.touched) {\r\n this.onTouched();\r\n this.touched = true;\r\n }\r\n } \r\n\r\n\r\n\r\n\r\n _value = new BehaviorSubject<string | undefined>(undefined)\r\n @Input() set value(value: string | undefined) {\r\n if (this._value.getValue() === value) {\r\n return\r\n }\r\n this._value.next(value)\r\n }\r\n get value() {\r\n return this._value.getValue()\r\n }\r\n get value$() {\r\n return this._value.asObservable()\r\n\r\n }\r\n @Input() formInputs: Array<FormColumnInputs> = []\r\n @Input() disabled: boolean = false\r\n @Output() change = new EventEmitter<any>()\r\n selectInput(id: string) {\r\n this.value$.pipe(\r\n take(1),\r\n tap((value) => {\r\n if (value === id) {\r\n this.change.emit(undefined)\r\n return;\r\n }\r\n this.change.emit(id)\r\n })\r\n ).subscribe()\r\n\r\n }\r\n get filteredInputs$():Observable<Array<IFormColumnUiList>> {\r\n return this.value$.pipe(\r\n map((value: string | undefined) => {\r\n const inputs = () => {\r\n const selectedInput = this.formInputs.find((input) => input.id === value)\r\n if (selectedInput) {\r\n return [{ ...selectedInput, selected: true , illustration: this.getInputIllustration(selectedInput) }]\r\n }\r\n return this.formInputs.map(input => ({ ...input, selected: false, illustration: this.getInputIllustration(input) }))\r\n }\r\n return inputs().map(\r\n (input) => {\r\n return {\r\n ...input,\r\n illustration: this.getInputIllustration(input)\r\n }\r\n\r\n })}\r\n\r\n )\r\n )\r\n }\r\n getInputIllustration(input: FormColumnInputs) {\r\n return getInputIllustration(input.element)\r\n }\r\n}\r\n","\r\n\r\n <mat-nav-list class=\"inputList\"> \r\n @for(input of filteredInputs$|async;track input.id){\r\n <mat-list-item \r\n [disabled]=\"disabled\"\r\n (click)=\"selectInput(input.id)\" \r\n [activated]=\"input.selected\"\r\n matRipple matTooltip=\"Select form input\">\r\n <img matListItemAvatar \r\n style=\"margin-left: 8px;\" [src]=\"input.illustration \"\r\n [alt]=\"input.label\">\r\n \r\n <span matListItemTitle >\r\n {{ input.label}}\r\n </span>\r\n <span *ngIf=\"input.multipleInputInEditId\" matListItemLine>\r\n Item List Input\r\n </span>\r\n <span matListItemMeta>\r\n <mat-icon [color]=\"input.selected?'primary':''\">\r\n \r\n {{input.selected?'check_circle':'radio_button_unchecked'}}\r\n \r\n </mat-icon>\r\n </span>\r\n \r\n </mat-list-item>\r\n <mat-divider></mat-divider>\r\n }\r\n @if((filteredInputs$|async)?.length===0){\r\n <mat-list-item>\r\n <span matLine>\r\n No form inputs found\r\n </span>\r\n </mat-list-item>\r\n }\r\n </mat-nav-list>\r\n\r\n"],"names":["i3","i4","i5","i6","i7"],"mappings":";;;;;;;;;;;;;;;;MAuBa,0BAA0B,CAAA;aAE9B,IAAM,CAAA,MAAA,GAAG,CAAH,CAAK;IAMlB,WAAuC,CAAA,SAAoB,EAAU,WAAoC,EAAA;QAAlE,IAAS,CAAA,SAAA,GAAT,SAAS;QAAqB,IAAW,CAAA,WAAA,GAAX,WAAW;AALhF,QAAA,IAAA,CAAA,YAAY,GAAG,IAAI,OAAO,EAAQ;QACvB,IAAM,CAAA,MAAA,GAAoC,EAAE;AACxC,QAAA,IAAA,CAAA,EAAE,GAAG,CAA2B,wBAAA,EAAA,0BAA0B,CAAE,MAAM,EAAE,EAAE;QAErF,IAAW,CAAA,WAAA,G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