ngx-t-forms 3.0.0 → 3.1.0

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 (247) hide show
  1. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-DFApar1W.mjs → ngx-t-forms-auto-complete-input-element.component-FhUHTsUF.mjs} +2 -2
  2. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-DFApar1W.mjs.map → ngx-t-forms-auto-complete-input-element.component-FhUHTsUF.mjs.map} +1 -1
  3. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-ChCeve-w.mjs → ngx-t-forms-basic-input-input-element.component-BJKe9wIA.mjs} +3 -3
  4. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-ChCeve-w.mjs.map → ngx-t-forms-basic-input-input-element.component-BJKe9wIA.mjs.map} +1 -1
  5. package/fesm2022/ngx-t-forms-calculated-field-rules.component-FQLTI7CX.mjs +643 -0
  6. package/fesm2022/ngx-t-forms-calculated-field-rules.component-FQLTI7CX.mjs.map +1 -0
  7. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-B54kOArR.mjs → ngx-t-forms-chip-options-creator-editor.component-CJtbprXS.mjs} +4 -4
  8. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-CJtbprXS.mjs.map +1 -0
  9. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-CAZv0_uR.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-CU6R5h-x.mjs} +4 -4
  10. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-CU6R5h-x.mjs.map +1 -0
  11. package/fesm2022/ngx-t-forms-data-source-picker.component-C8MBbnfz.mjs +261 -0
  12. package/fesm2022/ngx-t-forms-data-source-picker.component-C8MBbnfz.mjs.map +1 -0
  13. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-NM2cFs3P.mjs → ngx-t-forms-date-picker-input-element.component-Dux6uy66.mjs} +2 -2
  14. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-NM2cFs3P.mjs.map → ngx-t-forms-date-picker-input-element.component-Dux6uy66.mjs.map} +1 -1
  15. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-SMWrTm5X.mjs +157 -0
  16. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-SMWrTm5X.mjs.map +1 -0
  17. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-uGM93dvc.mjs +373 -0
  18. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-uGM93dvc.mjs.map +1 -0
  19. package/fesm2022/ngx-t-forms-document-picker.component-DIqaaBSl.mjs +1259 -0
  20. package/fesm2022/ngx-t-forms-document-picker.component-DIqaaBSl.mjs.map +1 -0
  21. package/fesm2022/ngx-t-forms-editor-input-element.component-CIELjDty.mjs +417 -0
  22. package/fesm2022/ngx-t-forms-editor-input-element.component-CIELjDty.mjs.map +1 -0
  23. package/fesm2022/{ngx-t-forms-editor-js-input.component-DlsLiHi1.mjs → ngx-t-forms-editor-js-input.component-C1dI_7rU.mjs} +25 -11
  24. package/fesm2022/ngx-t-forms-editor-js-input.component-C1dI_7rU.mjs.map +1 -0
  25. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-Km-qgANx.mjs → ngx-t-forms-file-upload-input-element.component-CQsKz87N.mjs} +2 -2
  26. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-Km-qgANx.mjs.map → ngx-t-forms-file-upload-input-element.component-CQsKz87N.mjs.map} +1 -1
  27. package/fesm2022/ngx-t-forms-form-input-selector.component-Dj0jvBdm.mjs +86 -0
  28. package/fesm2022/ngx-t-forms-form-input-selector.component-Dj0jvBdm.mjs.map +1 -0
  29. package/fesm2022/{ngx-t-forms-form-json-view.component-r64GKVhI.mjs → ngx-t-forms-form-json-view.component-DzJKFl4c.mjs} +2 -2
  30. package/fesm2022/{ngx-t-forms-form-json-view.component-r64GKVhI.mjs.map → ngx-t-forms-form-json-view.component-DzJKFl4c.mjs.map} +1 -1
  31. package/fesm2022/ngx-t-forms-form-payload-projection.component-y9PSIeP1.mjs +179 -0
  32. package/fesm2022/ngx-t-forms-form-payload-projection.component-y9PSIeP1.mjs.map +1 -0
  33. package/fesm2022/{ngx-t-forms-form-section-stepper.component-B3DRJ--U.mjs → ngx-t-forms-form-section-stepper.component-DOvVtJGB.mjs} +4 -4
  34. package/fesm2022/{ngx-t-forms-form-section-stepper.component-B3DRJ--U.mjs.map → ngx-t-forms-form-section-stepper.component-DOvVtJGB.mjs.map} +1 -1
  35. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-BYFynpTn.mjs → ngx-t-forms-forms-builder-menu.component-CcqyQLf5.mjs} +5 -5
  36. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-BYFynpTn.mjs.map → ngx-t-forms-forms-builder-menu.component-CcqyQLf5.mjs.map} +1 -1
  37. package/fesm2022/{ngx-t-forms-geo-location.component-D2fIbagr.mjs → ngx-t-forms-geo-location.component-Bj_qIEqi.mjs} +2 -2
  38. package/fesm2022/{ngx-t-forms-geo-location.component-D2fIbagr.mjs.map → ngx-t-forms-geo-location.component-Bj_qIEqi.mjs.map} +1 -1
  39. package/fesm2022/ngx-t-forms-header-template-editor.component-DLldVmcN.mjs +129 -0
  40. package/fesm2022/ngx-t-forms-header-template-editor.component-DLldVmcN.mjs.map +1 -0
  41. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-BgnzErQt.mjs → ngx-t-forms-image-capture-input-element.component-lwp3IcDt.mjs} +2 -2
  42. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-BgnzErQt.mjs.map → ngx-t-forms-image-capture-input-element.component-lwp3IcDt.mjs.map} +1 -1
  43. package/fesm2022/{ngx-t-forms-index-6YIhS6cm.mjs → ngx-t-forms-index-C8NtLE16.mjs} +2 -2
  44. package/fesm2022/ngx-t-forms-index-C8NtLE16.mjs.map +1 -0
  45. package/fesm2022/{ngx-t-forms-input-custom.component-Dcoze7U3.mjs → ngx-t-forms-input-custom.component-DiciFhSS.mjs} +2 -2
  46. package/fesm2022/{ngx-t-forms-input-custom.component-Dcoze7U3.mjs.map → ngx-t-forms-input-custom.component-DiciFhSS.mjs.map} +1 -1
  47. package/fesm2022/ngx-t-forms-input-editor.component-D12hrHOc.mjs +190 -0
  48. package/fesm2022/ngx-t-forms-input-editor.component-D12hrHOc.mjs.map +1 -0
  49. package/fesm2022/{ngx-t-forms-map-mat-options-keys-BsfvYiEU.mjs → ngx-t-forms-map-mat-options-keys-C2JpMTEc.mjs} +2 -2
  50. package/fesm2022/{ngx-t-forms-map-mat-options-keys-BsfvYiEU.mjs.map → ngx-t-forms-map-mat-options-keys-C2JpMTEc.mjs.map} +1 -1
  51. package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-CYtTBtyf.mjs → ngx-t-forms-mat-chip-list-editor.component-C1Qrze7K.mjs} +5 -5
  52. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-C1Qrze7K.mjs.map +1 -0
  53. package/fesm2022/{ngx-t-forms-mat-slider-editor.component-CTSBrM-j.mjs → ngx-t-forms-mat-slider-editor.component-4buvmLkX.mjs} +3 -3
  54. package/fesm2022/ngx-t-forms-mat-slider-editor.component-4buvmLkX.mjs.map +1 -0
  55. package/fesm2022/{ngx-t-forms-mat-slider-toggle-editor.component-CcYiwx-8.mjs → ngx-t-forms-mat-slider-toggle-editor.component-DX8L0O1k.mjs} +3 -3
  56. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-DX8L0O1k.mjs.map +1 -0
  57. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CEa8ZNKA.mjs → ngx-t-forms-missing-form-configs.component-BaTR_jzc.mjs} +2 -2
  58. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CEa8ZNKA.mjs.map → ngx-t-forms-missing-form-configs.component-BaTR_jzc.mjs.map} +1 -1
  59. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-DklkxNgg.mjs → ngx-t-forms-mscoa-chart-toolbar.component-Dni_bv_G.mjs} +2 -2
  60. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-DklkxNgg.mjs.map → ngx-t-forms-mscoa-chart-toolbar.component-Dni_bv_G.mjs.map} +1 -1
  61. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-BPQuzR5k.mjs +447 -0
  62. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-BPQuzR5k.mjs.map +1 -0
  63. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-hXWMRFjl.mjs +905 -0
  64. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-hXWMRFjl.mjs.map +1 -0
  65. package/fesm2022/{ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs → ngx-t-forms-ngx-t-forms-tQEbZK_e.mjs} +1391 -158
  66. package/fesm2022/ngx-t-forms-ngx-t-forms-tQEbZK_e.mjs.map +1 -0
  67. package/fesm2022/{ngx-t-forms-paginated-selection-table-DrXB22iY.mjs → ngx-t-forms-paginated-selection-table-pYY2sWAb.mjs} +2 -2
  68. package/fesm2022/{ngx-t-forms-paginated-selection-table-DrXB22iY.mjs.map → ngx-t-forms-paginated-selection-table-pYY2sWAb.mjs.map} +1 -1
  69. package/fesm2022/ngx-t-forms-payload-template-editor.component-DGCUsTYx.mjs +79 -0
  70. package/fesm2022/ngx-t-forms-payload-template-editor.component-DGCUsTYx.mjs.map +1 -0
  71. package/fesm2022/ngx-t-forms-pipeline-generator.component-D2stBXXC.mjs +748 -0
  72. package/fesm2022/ngx-t-forms-pipeline-generator.component-D2stBXXC.mjs.map +1 -0
  73. package/fesm2022/{ngx-t-forms-record-list-manager.component-l-2uDVmi.mjs → ngx-t-forms-record-list-manager.component-CtCOIpai.mjs} +4 -4
  74. package/fesm2022/ngx-t-forms-record-list-manager.component-CtCOIpai.mjs.map +1 -0
  75. package/fesm2022/ngx-t-forms-required-inputs.component-D9wIdOhg.mjs +272 -0
  76. package/fesm2022/ngx-t-forms-required-inputs.component-D9wIdOhg.mjs.map +1 -0
  77. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-C3sNmq_H.mjs → ngx-t-forms-rest-api-call-setup.component-Gy7Rtmue.mjs} +38 -7
  78. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-Gy7Rtmue.mjs.map +1 -0
  79. package/fesm2022/ngx-t-forms-search-field.component-mR4Kk12C.mjs +38 -0
  80. package/fesm2022/ngx-t-forms-search-field.component-mR4Kk12C.mjs.map +1 -0
  81. package/fesm2022/{ngx-t-forms-section-report.component-BYMcaRE5.mjs → ngx-t-forms-section-report.component-U9uQ_Ow9.mjs} +2 -2
  82. package/fesm2022/{ngx-t-forms-section-report.component-BYMcaRE5.mjs.map → ngx-t-forms-section-report.component-U9uQ_Ow9.mjs.map} +1 -1
  83. package/fesm2022/{ngx-t-forms-select-input-element.component-Nsa3dpvV.mjs → ngx-t-forms-select-input-element.component-CxYTmuvV.mjs} +2 -2
  84. package/fesm2022/{ngx-t-forms-select-input-element.component-Nsa3dpvV.mjs.map → ngx-t-forms-select-input-element.component-CxYTmuvV.mjs.map} +1 -1
  85. package/fesm2022/ngx-t-forms-selection-options-editor.component-BLLejOLG.mjs +169 -0
  86. package/fesm2022/ngx-t-forms-selection-options-editor.component-BLLejOLG.mjs.map +1 -0
  87. package/fesm2022/{ngx-t-forms-t-workflow-picker.component-DAwP-cWK.mjs → ngx-t-forms-t-workflow-picker.component-D0ttyEex.mjs} +3 -3
  88. package/fesm2022/ngx-t-forms-t-workflow-picker.component-D0ttyEex.mjs.map +1 -0
  89. package/fesm2022/{ngx-t-forms-textarea-input-element.component-DPxUzkAu.mjs → ngx-t-forms-textarea-input-element.component-75VdPc6z.mjs} +2 -2
  90. package/fesm2022/{ngx-t-forms-textarea-input-element.component-DPxUzkAu.mjs.map → ngx-t-forms-textarea-input-element.component-75VdPc6z.mjs.map} +1 -1
  91. package/fesm2022/{ngx-t-forms-toggle-input-element.component-OZre5TJ7.mjs → ngx-t-forms-toggle-input-element.component-DQGvEJN-.mjs} +2 -2
  92. package/fesm2022/{ngx-t-forms-toggle-input-element.component-OZre5TJ7.mjs.map → ngx-t-forms-toggle-input-element.component-DQGvEJN-.mjs.map} +1 -1
  93. package/fesm2022/ngx-t-forms-token-transform-D_wsFbNc.mjs +173 -0
  94. package/fesm2022/ngx-t-forms-token-transform-D_wsFbNc.mjs.map +1 -0
  95. package/fesm2022/ngx-t-forms-validators-config.component-EM7RSWIz.mjs +574 -0
  96. package/fesm2022/ngx-t-forms-validators-config.component-EM7RSWIz.mjs.map +1 -0
  97. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-CrDZg3Nl.mjs → ngx-t-forms-workflow-adjudication.component-C1Em-g9e.mjs} +3 -3
  98. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-CrDZg3Nl.mjs.map → ngx-t-forms-workflow-adjudication.component-C1Em-g9e.mjs.map} +1 -1
  99. package/fesm2022/ngx-t-forms.mjs +1 -1
  100. package/package.json +2 -2
  101. package/styles/_editor-mixins.scss +117 -117
  102. package/styles/_signature-pad.scss +26 -26
  103. package/styles/_tokens.scss +148 -148
  104. package/types/ngx-t-forms.d.ts +7 -2
  105. package/fesm2022/ngx-t-forms-auto-complete-input-element.component-7g5cpVfB.mjs +0 -261
  106. package/fesm2022/ngx-t-forms-auto-complete-input-element.component-7g5cpVfB.mjs.map +0 -1
  107. package/fesm2022/ngx-t-forms-basic-input-input-element.component-BhMw2vpl.mjs +0 -225
  108. package/fesm2022/ngx-t-forms-basic-input-input-element.component-BhMw2vpl.mjs.map +0 -1
  109. package/fesm2022/ngx-t-forms-calculated-field-rules.component-BmWnrfWN.mjs +0 -1011
  110. package/fesm2022/ngx-t-forms-calculated-field-rules.component-BmWnrfWN.mjs.map +0 -1
  111. package/fesm2022/ngx-t-forms-calculated-field-rules.component-CJMwqoHL.mjs +0 -643
  112. package/fesm2022/ngx-t-forms-calculated-field-rules.component-CJMwqoHL.mjs.map +0 -1
  113. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-ALkkDotT.mjs +0 -136
  114. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-ALkkDotT.mjs.map +0 -1
  115. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-B54kOArR.mjs.map +0 -1
  116. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-CAZv0_uR.mjs.map +0 -1
  117. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dap7QkKD.mjs +0 -253
  118. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dap7QkKD.mjs.map +0 -1
  119. package/fesm2022/ngx-t-forms-data-source-picker.component-8G28L1Cg.mjs +0 -261
  120. package/fesm2022/ngx-t-forms-data-source-picker.component-8G28L1Cg.mjs.map +0 -1
  121. package/fesm2022/ngx-t-forms-data-source-picker.component-CJ1C1Znp.mjs +0 -419
  122. package/fesm2022/ngx-t-forms-data-source-picker.component-CJ1C1Znp.mjs.map +0 -1
  123. package/fesm2022/ngx-t-forms-date-picker-input-element.component-DjYq63Iv.mjs +0 -231
  124. package/fesm2022/ngx-t-forms-date-picker-input-element.component-DjYq63Iv.mjs.map +0 -1
  125. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-DhU_bhy3.mjs +0 -156
  126. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-DhU_bhy3.mjs.map +0 -1
  127. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-g0wIRj9b.mjs +0 -333
  128. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-g0wIRj9b.mjs.map +0 -1
  129. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-K-KFdCcS.mjs +0 -373
  130. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-K-KFdCcS.mjs.map +0 -1
  131. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-NuPXy_Ms.mjs +0 -543
  132. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-NuPXy_Ms.mjs.map +0 -1
  133. package/fesm2022/ngx-t-forms-document-picker.component-BSG7k3IN.mjs +0 -1259
  134. package/fesm2022/ngx-t-forms-document-picker.component-BSG7k3IN.mjs.map +0 -1
  135. package/fesm2022/ngx-t-forms-document-picker.component-ChGqXHcQ.mjs +0 -1996
  136. package/fesm2022/ngx-t-forms-document-picker.component-ChGqXHcQ.mjs.map +0 -1
  137. package/fesm2022/ngx-t-forms-editor-input-element.component-B8Pk-EVY.mjs +0 -581
  138. package/fesm2022/ngx-t-forms-editor-input-element.component-B8Pk-EVY.mjs.map +0 -1
  139. package/fesm2022/ngx-t-forms-editor-input-element.component-Bb7w-vNw.mjs +0 -417
  140. package/fesm2022/ngx-t-forms-editor-input-element.component-Bb7w-vNw.mjs.map +0 -1
  141. package/fesm2022/ngx-t-forms-editor-js-input.component-DlsLiHi1.mjs.map +0 -1
  142. package/fesm2022/ngx-t-forms-editor-js-input.component-XX6kU8DW.mjs +0 -585
  143. package/fesm2022/ngx-t-forms-editor-js-input.component-XX6kU8DW.mjs.map +0 -1
  144. package/fesm2022/ngx-t-forms-file-upload-input-element.component-RCmUClXv.mjs +0 -447
  145. package/fesm2022/ngx-t-forms-file-upload-input-element.component-RCmUClXv.mjs.map +0 -1
  146. package/fesm2022/ngx-t-forms-form-input-selector.component-0jfD5C0G.mjs +0 -163
  147. package/fesm2022/ngx-t-forms-form-input-selector.component-0jfD5C0G.mjs.map +0 -1
  148. package/fesm2022/ngx-t-forms-form-input-selector.component-D5KYWQ2R.mjs +0 -86
  149. package/fesm2022/ngx-t-forms-form-input-selector.component-D5KYWQ2R.mjs.map +0 -1
  150. package/fesm2022/ngx-t-forms-form-json-view.component-z0nQxpqB.mjs +0 -28
  151. package/fesm2022/ngx-t-forms-form-json-view.component-z0nQxpqB.mjs.map +0 -1
  152. package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs +0 -291
  153. package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs.map +0 -1
  154. package/fesm2022/ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs +0 -179
  155. package/fesm2022/ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs.map +0 -1
  156. package/fesm2022/ngx-t-forms-form-section-stepper.component-UUTHYU-A.mjs +0 -936
  157. package/fesm2022/ngx-t-forms-form-section-stepper.component-UUTHYU-A.mjs.map +0 -1
  158. package/fesm2022/ngx-t-forms-forms-builder-menu.component-DTIAOxGV.mjs +0 -816
  159. package/fesm2022/ngx-t-forms-forms-builder-menu.component-DTIAOxGV.mjs.map +0 -1
  160. package/fesm2022/ngx-t-forms-geo-location.component-DW2b5Zli.mjs +0 -329
  161. package/fesm2022/ngx-t-forms-geo-location.component-DW2b5Zli.mjs.map +0 -1
  162. package/fesm2022/ngx-t-forms-image-capture-input-element.component-Us_NAQSl.mjs +0 -360
  163. package/fesm2022/ngx-t-forms-image-capture-input-element.component-Us_NAQSl.mjs.map +0 -1
  164. package/fesm2022/ngx-t-forms-index-6YIhS6cm.mjs.map +0 -1
  165. package/fesm2022/ngx-t-forms-index-BPNBX_ve.mjs +0 -2
  166. package/fesm2022/ngx-t-forms-index-BPNBX_ve.mjs.map +0 -1
  167. package/fesm2022/ngx-t-forms-input-custom.component-DQOqy047.mjs +0 -128
  168. package/fesm2022/ngx-t-forms-input-custom.component-DQOqy047.mjs.map +0 -1
  169. package/fesm2022/ngx-t-forms-input-editor.component-3fRj5swF.mjs +0 -512
  170. package/fesm2022/ngx-t-forms-input-editor.component-3fRj5swF.mjs.map +0 -1
  171. package/fesm2022/ngx-t-forms-input-editor.component-B6UKwV4i.mjs +0 -190
  172. package/fesm2022/ngx-t-forms-input-editor.component-B6UKwV4i.mjs.map +0 -1
  173. package/fesm2022/ngx-t-forms-map-mat-options-keys-eSc99wdA.mjs +0 -132
  174. package/fesm2022/ngx-t-forms-map-mat-options-keys-eSc99wdA.mjs.map +0 -1
  175. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CN17K5q6.mjs +0 -268
  176. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CN17K5q6.mjs.map +0 -1
  177. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CYtTBtyf.mjs.map +0 -1
  178. package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs +0 -241
  179. package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs.map +0 -1
  180. package/fesm2022/ngx-t-forms-mat-slider-editor.component-CTSBrM-j.mjs.map +0 -1
  181. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-CcYiwx-8.mjs.map +0 -1
  182. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs +0 -180
  183. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs.map +0 -1
  184. package/fesm2022/ngx-t-forms-missing-form-configs.component-AaDfeALs.mjs +0 -114
  185. package/fesm2022/ngx-t-forms-missing-form-configs.component-AaDfeALs.mjs.map +0 -1
  186. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-D0igUV3W.mjs +0 -69
  187. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-D0igUV3W.mjs.map +0 -1
  188. package/fesm2022/ngx-t-forms-mscoa-error-display.component-rzl-fMmd.mjs +0 -200
  189. package/fesm2022/ngx-t-forms-mscoa-error-display.component-rzl-fMmd.mjs.map +0 -1
  190. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-2SspNWtF.mjs +0 -447
  191. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-2SspNWtF.mjs.map +0 -1
  192. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CSGf4XeN.mjs +0 -850
  193. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CSGf4XeN.mjs.map +0 -1
  194. package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-CBuGHwnU.mjs +0 -107
  195. package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-CBuGHwnU.mjs.map +0 -1
  196. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CbQdnVgw.mjs +0 -1665
  197. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CbQdnVgw.mjs.map +0 -1
  198. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-dmRIi9ph.mjs +0 -905
  199. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-dmRIi9ph.mjs.map +0 -1
  200. package/fesm2022/ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs.map +0 -1
  201. package/fesm2022/ngx-t-forms-ngx-t-forms-BefvSS-p.mjs +0 -28237
  202. package/fesm2022/ngx-t-forms-ngx-t-forms-BefvSS-p.mjs.map +0 -1
  203. package/fesm2022/ngx-t-forms-paginated-selection-table-BGNxI2yq.mjs +0 -1024
  204. package/fesm2022/ngx-t-forms-paginated-selection-table-BGNxI2yq.mjs.map +0 -1
  205. package/fesm2022/ngx-t-forms-payload-template-editor.component-DL4ZTTsH.mjs +0 -203
  206. package/fesm2022/ngx-t-forms-payload-template-editor.component-DL4ZTTsH.mjs.map +0 -1
  207. package/fesm2022/ngx-t-forms-payload-template-editor.component-o3qwpvYu.mjs +0 -234
  208. package/fesm2022/ngx-t-forms-payload-template-editor.component-o3qwpvYu.mjs.map +0 -1
  209. package/fesm2022/ngx-t-forms-pipeline-generator.component-BqtdKcN2.mjs +0 -1126
  210. package/fesm2022/ngx-t-forms-pipeline-generator.component-BqtdKcN2.mjs.map +0 -1
  211. package/fesm2022/ngx-t-forms-pipeline-generator.component-DcZPv8-N.mjs +0 -748
  212. package/fesm2022/ngx-t-forms-pipeline-generator.component-DcZPv8-N.mjs.map +0 -1
  213. package/fesm2022/ngx-t-forms-record-list-manager.component-BcANl5Bq.mjs +0 -639
  214. package/fesm2022/ngx-t-forms-record-list-manager.component-BcANl5Bq.mjs.map +0 -1
  215. package/fesm2022/ngx-t-forms-record-list-manager.component-l-2uDVmi.mjs.map +0 -1
  216. package/fesm2022/ngx-t-forms-required-inputs.component-BMmNxeE-.mjs +0 -272
  217. package/fesm2022/ngx-t-forms-required-inputs.component-BMmNxeE-.mjs.map +0 -1
  218. package/fesm2022/ngx-t-forms-required-inputs.component-Dr0P1gin.mjs +0 -451
  219. package/fesm2022/ngx-t-forms-required-inputs.component-Dr0P1gin.mjs.map +0 -1
  220. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BSv_KQIU.mjs +0 -625
  221. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BSv_KQIU.mjs.map +0 -1
  222. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-C3sNmq_H.mjs.map +0 -1
  223. package/fesm2022/ngx-t-forms-search-field.component-B2ZO7lqO.mjs +0 -38
  224. package/fesm2022/ngx-t-forms-search-field.component-B2ZO7lqO.mjs.map +0 -1
  225. package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs +0 -72
  226. package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs.map +0 -1
  227. package/fesm2022/ngx-t-forms-section-report.component-yGAjX7Gb.mjs +0 -248
  228. package/fesm2022/ngx-t-forms-section-report.component-yGAjX7Gb.mjs.map +0 -1
  229. package/fesm2022/ngx-t-forms-select-input-element.component-BqtJi4ek.mjs +0 -408
  230. package/fesm2022/ngx-t-forms-select-input-element.component-BqtJi4ek.mjs.map +0 -1
  231. package/fesm2022/ngx-t-forms-selection-options-editor.component-BuXVzo7Z.mjs +0 -169
  232. package/fesm2022/ngx-t-forms-selection-options-editor.component-BuXVzo7Z.mjs.map +0 -1
  233. package/fesm2022/ngx-t-forms-selection-options-editor.component-_glw1cqH.mjs +0 -275
  234. package/fesm2022/ngx-t-forms-selection-options-editor.component-_glw1cqH.mjs.map +0 -1
  235. package/fesm2022/ngx-t-forms-t-workflow-picker.component-CLgN3YM4.mjs +0 -366
  236. package/fesm2022/ngx-t-forms-t-workflow-picker.component-CLgN3YM4.mjs.map +0 -1
  237. package/fesm2022/ngx-t-forms-t-workflow-picker.component-DAwP-cWK.mjs.map +0 -1
  238. package/fesm2022/ngx-t-forms-textarea-input-element.component-SCEBLqJd.mjs +0 -233
  239. package/fesm2022/ngx-t-forms-textarea-input-element.component-SCEBLqJd.mjs.map +0 -1
  240. package/fesm2022/ngx-t-forms-toggle-input-element.component-CoyTMRMa.mjs +0 -305
  241. package/fesm2022/ngx-t-forms-toggle-input-element.component-CoyTMRMa.mjs.map +0 -1
  242. package/fesm2022/ngx-t-forms-validators-config.component-B1Lzs7o2.mjs +0 -1105
  243. package/fesm2022/ngx-t-forms-validators-config.component-B1Lzs7o2.mjs.map +0 -1
  244. package/fesm2022/ngx-t-forms-validators-config.component-CoGSFor3.mjs +0 -574
  245. package/fesm2022/ngx-t-forms-validators-config.component-CoGSFor3.mjs.map +0 -1
  246. package/fesm2022/ngx-t-forms-workflow-adjudication.component-Bz07jv-N.mjs +0 -2923
  247. package/fesm2022/ngx-t-forms-workflow-adjudication.component-Bz07jv-N.mjs.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"ngx-t-forms-input-editor.component-3fRj5swF.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/default-element/default-element.component.html","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/default-element/default-element.component.ts","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/input-element-editor/input-element-editor.component.ts","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/input-element-editor/input-element-editor.component.html","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/input-editor/input-editor.component.html","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/input-editor/input-editor.component.ts"],"sourcesContent":["<br>\r\n<mat-nav-list style=\"margin: 5px;\">\r\n\r\n\r\n @defer () {\r\n @for (input of getDefaultInputs(); track input) {\r\n @if (inputs[input]?.disabled === false) {\r\n <mat-list-item style=\"background: var(--mdc-elevated-card-container-color, var(--mat-app-surface-container-low));\"\r\n (click)=\"selectInputTemplate(input)\">\r\n <mat-icon matListItemAvatar>{{ getInputIcon(input) }}</mat-icon>\r\n <span matListItemTitle href=\"...\">{{ inputs[input]?.label}}</span>\r\n </mat-list-item>\r\n <mat-divider></mat-divider>\r\n }\r\n }\r\n \r\n }\r\n\r\n\r\n</mat-nav-list>","import { ChangeDetectionStrategy, Component, DestroyRef, inject } from '@angular/core';\r\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\r\nimport { MatListModule } from '@angular/material/list';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatDividerModule } from '@angular/material/divider';\r\n\r\nimport { FormsStoreService } from '../../../forms/store/forms-store.service';\r\nimport { DefaultInputConfig, ElementTypes } from 'ngx-t-forms-types';\r\nimport { take } from 'rxjs';\r\nimport { getInputIcon } from '../../../../shared/functions/getInputIcon';\r\n\r\n@Component({\r\n selector: 'lib-default-element',\r\n imports: [MatListModule, MatIconModule, MatDividerModule],\r\n templateUrl: './default-element.component.html',\r\n styleUrl: './default-element.component.scss',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class DefaultElementComponent {\r\n protected readonly inputs = DefaultInputConfig;\r\n readonly #store = inject(FormsStoreService);\r\n readonly #destroyRef = inject(DestroyRef);\r\n\r\n protected getDefaultInputs(): ElementTypes[] {\r\n const i = JSON.parse(JSON.stringify(DefaultInputConfig)) as Record<string, unknown>;\r\n return Object.keys(i) as ElementTypes[];\r\n }\r\n\r\n protected getInputIcon(element: ElementTypes): string {\r\n return getInputIcon(element);\r\n }\r\n\r\n protected selectInputTemplate(input: ElementTypes): void {\r\n this.#store.selectors.selectInputInEditId$\r\n .pipe(take(1), takeUntilDestroyed(this.#destroyRef))\r\n .subscribe((id) => {\r\n if (!id) return;\r\n this.#store.actionsFormBuilder.selectInputTemplate(id, input);\r\n });\r\n }\r\n}\r\n","// TODO(unify): see ngx-t-forms/docs/migration/element-editor-unification.md\nimport { ChangeDetectionStrategy, Component, DOCUMENT, PLATFORM_ID, computed, inject } from '@angular/core';\nimport { isPlatformBrowser } from '@angular/common';\nimport { MatExpansionModule } from '@angular/material/expansion';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatListModule } from '@angular/material/list';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatCardModule } from '@angular/material/card';\nimport { MatFormFieldModule } from '@angular/material/form-field';\n\nimport { FormsStoreService } from '../../../forms/store/forms-store.service';\n\nimport { TDynamicDataEditComponent, TDynamicDataViewComponent } from '../../..';\n\nimport type { ElementEditorInnerSectionElementInterface, ElementTypes, FormColumnInputs, ScoaInnerInput } from 'ngx-t-forms-types';\nimport { getInputIcon } from '../../../../shared/functions/getInputIcon';\n\n@Component({\n selector: 'lib-input-element-editor',\n imports: [\n MatExpansionModule,\n MatIconModule,\n MatListModule,\n MatTooltipModule,\n MatProgressSpinnerModule,\n MatButtonModule,\n MatCardModule,\n MatFormFieldModule,\n TDynamicDataEditComponent,\n TDynamicDataViewComponent,\n ],\n templateUrl: './input-element-editor.component.html',\n styleUrl: './input-element-editor.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class InputElementEditorComponent {\n readonly #store = inject(FormsStoreService);\n readonly #platformId = inject(PLATFORM_ID);\n readonly #document = inject(DOCUMENT);\n\n readonly #signals = this.#store.formBuilderSignalSelectors;\n\n protected readonly vm = computed(() => ({\n defaultInputInEdit: this.#signals.defaultInputInEdit(),\n inputInEdit: this.#signals.inputInEdit(),\n inputElementEditorConfigs: this.#signals.inputElementEditorConfigs(),\n inputInEditValidationErrors: this.#signals.inputInEditValidationErrors(),\n formInputs: this.#signals.getAllFormInputs(),\n }));\n\n protected readonly elementConfigurationChanged = (\n value: unknown,\n ele: ElementEditorInnerSectionElementInterface,\n ): void => {\n const inputVal = this.#signals.inputInEdit();\n if (!inputVal) return;\n this.#store.actionsFormBuilder.elementConfigurationChanged(inputVal.id, value, ele);\n };\n\n protected readonly clearInputInEdit = (): void => {\n const inputVal = this.#signals.inputInEdit();\n if (!inputVal) return;\n this.#store.actionsFormBuilder.clearInputInEdit(inputVal.id);\n };\n\n protected readonly elementBlur = (\n event: unknown,\n element: ElementEditorInnerSectionElementInterface,\n ): void => {\n const inputVal = this.#signals.inputInEdit();\n if (!inputVal) return;\n this.#store.actionsFormBuilder.elementBlur(inputVal.id, event, element);\n };\n\n /** Creates or updates an account-level custom input from the segment-config quick editor. */\n protected readonly saveMscoaCustomInput = (\n sectionId: string,\n scoaInputId: string,\n config: Pick<ScoaInnerInput, 'element' | 'label' | 'formControlName' | 'singleSelect' | 'readonly'> & { id?: string },\n ): void => {\n this.#store.actionsFormBuilder.saveScoaCustomInput(sectionId, scoaInputId, config);\n };\n\n /** Opens an MSCOA custom input in this editor for advanced configuration. */\n protected readonly editMscoaInput = (input: FormColumnInputs): void => {\n this.#store.actionsFormBuilder.editInput(input);\n };\n\n /** Removes an MSCOA custom input from the config. */\n protected readonly deleteMscoaInput = (input: FormColumnInputs): void => {\n this.#store.actionsFormBuilder.formDeleteInput(input);\n };\n\n protected getInputIcon(element: ElementTypes | undefined | null): string {\n return getInputIcon(element);\n }\n\n protected showDebugData(): void {\n if (!isPlatformBrowser(this.#platformId)) return;\n const win = this.#document.defaultView;\n if (!win) return;\n const jsonData = JSON.stringify(this.vm(), null, 2);\n const blob = new Blob([jsonData], { type: 'application/json' });\n const url = win.URL.createObjectURL(blob);\n const link = this.#document.createElement('a');\n link.href = url;\n link.download = 'debug-data.json';\n link.click();\n win.URL.revokeObjectURL(url);\n }\n}\n","@if (vm(); as vm) {\n<div class=\"ee-section-bar\">\n <span class=\"ee-section-eyebrow\">Element configuration</span>\n <span class=\"spacer\"></span>\n @if ((vm.inputElementEditorConfigs.editorSections || []).length) {\n <span class=\"ee-section-count\">{{ (vm.inputElementEditorConfigs.editorSections || []).length }} sections</span>\n }\n</div>\n\n@defer (on viewport) {\n<mat-accordion class=\"ee-accordion\" togglePosition=\"before\" multi>\n @for(section of (vm.inputElementEditorConfigs.editorSections || []); track section.id; let i = $index) {\n <mat-expansion-panel class=\"ee-panel mat-elevation-z0\">\n <mat-expansion-panel-header class=\"ee-panel-header\" collapsedHeight=\"48px\" expandedHeight=\"48px\">\n <mat-panel-title class=\"ee-panel-title\">\n <span class=\"ee-panel-label\">{{ section.label }}</span>\n <span class=\"spacer\"></span>\n @if (section.hasErrors) {\n <mat-icon class=\"ee-panel-error\" color=\"warn\">error</mat-icon>\n }\n @if (section.showItemValue && !!(vm.inputInEdit)) {\n <span class=\"ee-item-value\">{{ vm.inputInEdit[section.showItemValue] }}</span>\n }\n </mat-panel-title>\n </mat-expansion-panel-header>\n\n <div class=\"ee-panel-body\">\n <!-- Input-type switcher (first section only) -->\n @if(i === 0) {\n <mat-nav-list class=\"ee-input-switcher\">\n <mat-list-item [disabled]=\"vm.inputInEdit?.systemDefault\" matTooltip=\"Change input element\"\n (click)=\"vm.inputInEdit?.systemDefault ? '' : clearInputInEdit()\">\n <mat-icon matListItemAvatar [attr.aria-label]=\"(vm.defaultInputInEdit)?.label\">\n {{ getInputIcon(vm.inputInEdit?.element) }}\n </mat-icon>\n <span matListItemTitle>{{ (vm.defaultInputInEdit)?.label }}</span>\n <span matListItemMeta>\n <mat-icon>arrow_forward_ios</mat-icon>\n </span>\n </mat-list-item>\n </mat-nav-list>\n }\n\n <!-- Section elements -->\n @for(element of section.elements; track element.id) {\n <div class=\"ee-element\">\n @defer (on viewport) {\n <lib-t-dynamic-data-edit [editorConfig]=\"element\" [data]=\"(vm.inputInEdit)\"\n [validationErrors]=\"element.computedErrors ?? null\" [mscoaSaveCustomInput]=\"saveMscoaCustomInput\"\n [mscoaEditInput]=\"editMscoaInput\" [mscoaDeleteInput]=\"deleteMscoaInput\"\n (valueChange)=\"elementConfigurationChanged($event, element)\" [formInputs]=\"(vm.formInputs) || []\"\n (blur)=\"elementBlur($event, element)\">\n </lib-t-dynamic-data-edit>\n } @placeholder {\n <div class=\"ee-element-loading\">\n <mat-spinner diameter=\"18\"></mat-spinner>\n </div>\n }\n </div>\n }\n </div>\n </mat-expansion-panel>\n }\n</mat-accordion>\n} @placeholder {\n<div class=\"ee-loading\">\n <mat-spinner diameter=\"44\" />\n</div>\n} @error {\n<div class=\"ee-error\">\n <mat-icon class=\"ee-error-icon\" aria-hidden=\"false\">error_outline</mat-icon>\n <h3 class=\"ee-error-title\">Error loading element editor</h3>\n <p class=\"ee-error-text\">An error occurred while loading the element editor. Please try again later.</p>\n</div>\n}\n\n<!-- Diagnostic section -->\n<div class=\"ee-section-bar ee-section-bar--diagnostic\">\n <span class=\"ee-section-eyebrow\">Diagnostic data</span>\n <span class=\"spacer\"></span>\n</div>\n\n<mat-accordion class=\"ee-accordion\" togglePosition=\"before\" multi>\n @if(((vm.inputInEditValidationErrors) || []).length > 0) {\n <mat-expansion-panel class=\"ee-panel mat-elevation-z0\">\n <mat-expansion-panel-header class=\"ee-panel-header\" collapsedHeight=\"48px\" expandedHeight=\"48px\">\n <mat-panel-title class=\"ee-panel-title\">\n <span class=\"ee-panel-label\">Validation Errors</span>\n <span class=\"spacer\"></span>\n <span class=\"ee-item-value ee-item-value--error\">{{ (vm.inputInEditValidationErrors).length }}</span>\n </mat-panel-title>\n </mat-expansion-panel-header>\n <div class=\"ee-panel-body\">\n <div class=\"ee-error-summary\">\n <h3 class=\"ee-error-summary-title\">All configuration errors</h3>\n <p class=\"ee-error-summary-text\">\n {{ (vm.inputInEditValidationErrors).length }} errors found. When an error is found, the input will\n not be saved.\n </p>\n <ul class=\"ee-error-list\">\n @for(error of (vm.inputInEditValidationErrors); track $index) {\n <li><strong>{{ error.key }}</strong> {{ error.message }}</li>\n }\n </ul>\n </div>\n </div>\n </mat-expansion-panel>\n }\n <mat-expansion-panel class=\"ee-panel mat-elevation-z0\">\n <mat-expansion-panel-header class=\"ee-panel-header\" collapsedHeight=\"48px\" expandedHeight=\"48px\">\n <mat-panel-title class=\"ee-panel-title\">\n <span class=\"ee-panel-label\">Complete Virtual Model</span>\n <span class=\"spacer\"></span>\n <button mat-icon-button class=\"ee-diagnostic-btn\" matTooltip=\"Download debug data\"\n (click)=\"showDebugData(); $event.stopPropagation()\">\n <mat-icon>troubleshoot</mat-icon>\n </button>\n </mat-panel-title>\n </mat-expansion-panel-header>\n <div class=\"ee-panel-body\">\n <lib-t-dynamic-data-view [data]=\"({\n 'Default Input Template InEdit': vm.defaultInputInEdit,\n 'Input In Edit': vm.inputInEdit,\n 'Input Editor Sections': vm.inputElementEditorConfigs?.editorSections\n })\"></lib-t-dynamic-data-view>\n </div>\n </mat-expansion-panel>\n</mat-accordion>\n}\n","<mat-card class=\"element-editor\" appearance=\"outlined\">\n <header class=\"ee-header\">\n <div class=\"ee-header-icon\" aria-hidden=\"true\">\n <mat-icon>tune</mat-icon>\n </div>\n <div class=\"ee-header-text\">\n <h2 class=\"ee-title\">\n {{\n !!(inputInEdit$|async)?.element\n ? \"Edit \" + (inputInEdit$|async)?.label + \" element\"\n : \"Setup Form Element\"\n }}\n </h2>\n <p class=\"ee-subtitle\">\n {{\n !!(inputInEdit$|async)?.element\n ? \"Configure the element below\"\n : \"Form elements are the components making up a form section. Their type is defined by behaviour and use case — for example, a date range picker is well suited to determining duration.\"\n }}\n </p>\n </div>\n <button mat-icon-button cdkDragHandle class=\"ee-drag\" aria-label=\"Drag to reposition\">\n <mat-icon>drag_indicator</mat-icon>\n </button>\n </header>\n\n <div class=\"ee-content\">\n @if(!!((inputInEdit$|async))?.element){\n <lib-input-element-editor></lib-input-element-editor>\n }@else{\n <lib-default-element></lib-default-element>\n }\n </div>\n\n <footer class=\"ee-actions\">\n <button (click)=\"closeEditor()\" mat-button class=\"ee-close\">Close</button>\n <span class=\"spacer\"></span>\n @if (!((inputInEdit$|async))?.id) {\n <button mat-flat-button (click)=\"saveInput()\" [disabled]=\"((validationErrors$|async)||[]).length>0\"\n color=\"primary\" class=\"ee-save\">Save new input</button>\n }\n </footer>\n</mat-card>\n","import { AsyncPipe } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component, inject } from '@angular/core';\r\nimport { MatCardModule } from '@angular/material/card';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatDividerModule } from '@angular/material/divider';\r\nimport { MatToolbarModule } from '@angular/material/toolbar';\r\nimport { DragDropModule } from '@angular/cdk/drag-drop';\r\n\r\nimport { DefaultElementComponent } from '../default-element/default-element.component';\r\nimport { InputElementEditorComponent } from '../input-element-editor/input-element-editor.component';\r\nimport { FormsStoreService } from '../../../forms/store/forms-store.service';\r\n\r\nimport { Observable, take, tap } from 'rxjs';\r\nimport { DefaultInputConfig } from 'ngx-t-forms-types';\r\n\r\n@Component({\r\n selector: 'lib-input-editor',\r\n imports: [\r\n AsyncPipe,\r\n MatCardModule,\r\n MatButtonModule,\r\n MatIconModule,\r\n MatDividerModule,\r\n MatToolbarModule,\r\n DragDropModule,\r\n DefaultElementComponent,\r\n InputElementEditorComponent,\r\n ],\r\n templateUrl: './input-editor.component.html',\r\n styleUrl: './input-editor.component.scss',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class InputEditorComponent {\r\n readonly #store = inject(FormsStoreService);\r\n\r\n protected readonly defaultInputs = DefaultInputConfig;\r\n protected readonly inputInEdit$ = this.#store.formBuilderSelectors.inputInEdit$;\r\n protected readonly defaultInputInEdit$ = this.#store.formBuilderSelectors.defaultInputInEdit$;\r\n\r\n protected readonly saveInput = (): void => {\r\n this.inputInEdit$\r\n .pipe(\r\n take(1),\r\n tap((inputVal) => {\r\n if (!inputVal) return;\r\n this.#store.actionsFormBuilder.saveInput(inputVal.id);\r\n }),\r\n )\r\n .subscribe();\r\n };\r\n\r\n protected readonly closeEditor = (): void => {\r\n this.#store.actions.setInputInEditId({ inputInEdit: null });\r\n };\r\n\r\n protected get validationErrors$(): Observable<{ key: string; message: string }[] | null> {\r\n return this.#store.formBuilderSelectors.inputInEditValidationErrors$;\r\n }\r\n}\r\n"],"names":["i1","_c0","i2","i3"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAOM,EAAA,CAAA,cAAA,CAAA,CAAA,EAAA,e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AAA,EAAA,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA,GAAA;;;;"}
@@ -1,190 +0,0 @@
1
- import { isPlatformBrowser, AsyncPipe } from '@angular/common';
2
- import * as i0 from '@angular/core';
3
- import { inject, DestroyRef, ChangeDetectionStrategy, Component, PLATFORM_ID, DOCUMENT, computed } from '@angular/core';
4
- import * as i3$1 from '@angular/material/card';
5
- import { MatCardModule } from '@angular/material/card';
6
- import * as i2 from '@angular/material/button';
7
- import { MatButtonModule } from '@angular/material/button';
8
- import * as i3 from '@angular/material/icon';
9
- import { MatIconModule } from '@angular/material/icon';
10
- import { MatDividerModule } from '@angular/material/divider';
11
- import { MatToolbarModule } from '@angular/material/toolbar';
12
- import * as i1 from '@angular/cdk/drag-drop';
13
- import { DragDropModule } from '@angular/cdk/drag-drop';
14
- import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
15
- import * as i6 from '@angular/material/list';
16
- import { MatListModule } from '@angular/material/list';
17
- import { F as FormsStoreService, T as TDynamicDataEditComponent, b as TDynamicDataViewComponent } from './ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs';
18
- import { DefaultInputConfig } from 'ngx-t-forms-types';
19
- import { take, tap } from 'rxjs';
20
- import { g as getInputIcon } from './ngx-t-forms-getInputIcon-B4ADgevZ.mjs';
21
- import * as i5 from '@angular/material/expansion';
22
- import { MatExpansionModule } from '@angular/material/expansion';
23
- import * as i5$1 from '@angular/material/tooltip';
24
- import { MatTooltipModule } from '@angular/material/tooltip';
25
- import * as i4 from '@angular/material/progress-spinner';
26
- import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
27
- import { MatFormFieldModule } from '@angular/material/form-field';
28
- import './ngx-t-forms-index-6YIhS6cm.mjs';
29
-
30
- class DefaultElementComponent {
31
- constructor() {
32
- this.inputs = DefaultInputConfig;
33
- this.#store = inject(FormsStoreService);
34
- this.#destroyRef = inject(DestroyRef);
35
- }
36
- #store;
37
- #destroyRef;
38
- getDefaultInputs() {
39
- const i = JSON.parse(JSON.stringify(DefaultInputConfig));
40
- return Object.keys(i);
41
- }
42
- getInputIcon(element) {
43
- return getInputIcon(element);
44
- }
45
- selectInputTemplate(input) {
46
- this.#store.selectors.selectInputInEditId$
47
- .pipe(take(1), takeUntilDestroyed(this.#destroyRef))
48
- .subscribe((id) => {
49
- if (!id)
50
- return;
51
- this.#store.actionsFormBuilder.selectInputTemplate(id, input);
52
- });
53
- }
54
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: DefaultElementComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
55
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: DefaultElementComponent, isStandalone: true, selector: "lib-default-element", ngImport: i0, template: "<br>\r\n<mat-nav-list style=\"margin: 5px;\">\r\n\r\n\r\n @defer () {\r\n @for (input of getDefaultInputs(); track input) {\r\n @if (inputs[input]?.disabled === false) {\r\n <mat-list-item style=\"background: var(--mdc-elevated-card-container-color, var(--mat-app-surface-container-low));\"\r\n (click)=\"selectInputTemplate(input)\">\r\n <mat-icon matListItemAvatar>{{ getInputIcon(input) }}</mat-icon>\r\n <span matListItemTitle href=\"...\">{{ inputs[input]?.label}}</span>\r\n </mat-list-item>\r\n <mat-divider></mat-divider>\r\n }\r\n }\r\n \r\n }\r\n\r\n\r\n</mat-nav-list>", styles: ["mat-icon[matListItemAvatar]{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;font-size:24px;line-height:1;border-radius:50%;background:var(--mat-app-surface-variant, rgba(0, 0, 0, .06));color:var(--mat-app-on-surface-variant, currentColor)}\n"], dependencies: [{ kind: "ngmodule", type: MatListModule }, { kind: "component", type: i6.MatNavList, selector: "mat-nav-list", exportAs: ["matNavList"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "ngmodule", type: MatDividerModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, deferBlockDependencies: [() => [i6.MatListItem, i6.MatListItemAvatar, i6.MatDivider, i6.MatListItemTitle, i3.MatIcon]] }); }
56
- }
57
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: DefaultElementComponent, decorators: [{
58
- type: Component,
59
- args: [{ selector: 'lib-default-element', imports: [MatListModule, MatIconModule, MatDividerModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<br>\r\n<mat-nav-list style=\"margin: 5px;\">\r\n\r\n\r\n @defer () {\r\n @for (input of getDefaultInputs(); track input) {\r\n @if (inputs[input]?.disabled === false) {\r\n <mat-list-item style=\"background: var(--mdc-elevated-card-container-color, var(--mat-app-surface-container-low));\"\r\n (click)=\"selectInputTemplate(input)\">\r\n <mat-icon matListItemAvatar>{{ getInputIcon(input) }}</mat-icon>\r\n <span matListItemTitle href=\"...\">{{ inputs[input]?.label}}</span>\r\n </mat-list-item>\r\n <mat-divider></mat-divider>\r\n }\r\n }\r\n \r\n }\r\n\r\n\r\n</mat-nav-list>", styles: ["mat-icon[matListItemAvatar]{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;font-size:24px;line-height:1;border-radius:50%;background:var(--mat-app-surface-variant, rgba(0, 0, 0, .06));color:var(--mat-app-on-surface-variant, currentColor)}\n"] }]
60
- }] });
61
-
62
- // TODO(unify): see ngx-t-forms/docs/migration/element-editor-unification.md
63
- class InputElementEditorComponent {
64
- constructor() {
65
- this.#store = inject(FormsStoreService);
66
- this.#platformId = inject(PLATFORM_ID);
67
- this.#document = inject(DOCUMENT);
68
- this.#signals = this.#store.formBuilderSignalSelectors;
69
- this.vm = computed(() => ({
70
- defaultInputInEdit: this.#signals.defaultInputInEdit(),
71
- inputInEdit: this.#signals.inputInEdit(),
72
- inputElementEditorConfigs: this.#signals.inputElementEditorConfigs(),
73
- inputInEditValidationErrors: this.#signals.inputInEditValidationErrors(),
74
- formInputs: this.#signals.getAllFormInputs(),
75
- }), ...(ngDevMode ? [{ debugName: "vm" }] : /* istanbul ignore next */ []));
76
- this.elementConfigurationChanged = (value, ele) => {
77
- const inputVal = this.#signals.inputInEdit();
78
- if (!inputVal)
79
- return;
80
- this.#store.actionsFormBuilder.elementConfigurationChanged(inputVal.id, value, ele);
81
- };
82
- this.clearInputInEdit = () => {
83
- const inputVal = this.#signals.inputInEdit();
84
- if (!inputVal)
85
- return;
86
- this.#store.actionsFormBuilder.clearInputInEdit(inputVal.id);
87
- };
88
- this.elementBlur = (event, element) => {
89
- const inputVal = this.#signals.inputInEdit();
90
- if (!inputVal)
91
- return;
92
- this.#store.actionsFormBuilder.elementBlur(inputVal.id, event, element);
93
- };
94
- /** Creates or updates an account-level custom input from the segment-config quick editor. */
95
- this.saveMscoaCustomInput = (sectionId, scoaInputId, config) => {
96
- this.#store.actionsFormBuilder.saveScoaCustomInput(sectionId, scoaInputId, config);
97
- };
98
- /** Opens an MSCOA custom input in this editor for advanced configuration. */
99
- this.editMscoaInput = (input) => {
100
- this.#store.actionsFormBuilder.editInput(input);
101
- };
102
- /** Removes an MSCOA custom input from the config. */
103
- this.deleteMscoaInput = (input) => {
104
- this.#store.actionsFormBuilder.formDeleteInput(input);
105
- };
106
- }
107
- #store;
108
- #platformId;
109
- #document;
110
- #signals;
111
- getInputIcon(element) {
112
- return getInputIcon(element);
113
- }
114
- showDebugData() {
115
- if (!isPlatformBrowser(this.#platformId))
116
- return;
117
- const win = this.#document.defaultView;
118
- if (!win)
119
- return;
120
- const jsonData = JSON.stringify(this.vm(), null, 2);
121
- const blob = new Blob([jsonData], { type: 'application/json' });
122
- const url = win.URL.createObjectURL(blob);
123
- const link = this.#document.createElement('a');
124
- link.href = url;
125
- link.download = 'debug-data.json';
126
- link.click();
127
- win.URL.revokeObjectURL(url);
128
- }
129
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: InputElementEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
130
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: InputElementEditorComponent, isStandalone: true, selector: "lib-input-element-editor", ngImport: i0, template: "@if (vm(); as vm) {\n<div class=\"ee-section-bar\">\n <span class=\"ee-section-eyebrow\">Element configuration</span>\n <span class=\"spacer\"></span>\n @if ((vm.inputElementEditorConfigs.editorSections || []).length) {\n <span class=\"ee-section-count\">{{ (vm.inputElementEditorConfigs.editorSections || []).length }} sections</span>\n }\n</div>\n\n@defer (on viewport) {\n<mat-accordion class=\"ee-accordion\" togglePosition=\"before\" multi>\n @for(section of (vm.inputElementEditorConfigs.editorSections || []); track section.id; let i = $index) {\n <mat-expansion-panel class=\"ee-panel mat-elevation-z0\">\n <mat-expansion-panel-header class=\"ee-panel-header\" collapsedHeight=\"48px\" expandedHeight=\"48px\">\n <mat-panel-title class=\"ee-panel-title\">\n <span class=\"ee-panel-label\">{{ section.label }}</span>\n <span class=\"spacer\"></span>\n @if (section.hasErrors) {\n <mat-icon class=\"ee-panel-error\" color=\"warn\">error</mat-icon>\n }\n @if (section.showItemValue && !!(vm.inputInEdit)) {\n <span class=\"ee-item-value\">{{ vm.inputInEdit[section.showItemValue] }}</span>\n }\n </mat-panel-title>\n </mat-expansion-panel-header>\n\n <div class=\"ee-panel-body\">\n <!-- Input-type switcher (first section only) -->\n @if(i === 0) {\n <mat-nav-list class=\"ee-input-switcher\">\n <mat-list-item [disabled]=\"vm.inputInEdit?.systemDefault\" matTooltip=\"Change input element\"\n (click)=\"vm.inputInEdit?.systemDefault ? '' : clearInputInEdit()\">\n <mat-icon matListItemAvatar [attr.aria-label]=\"(vm.defaultInputInEdit)?.label\">\n {{ getInputIcon(vm.inputInEdit?.element) }}\n </mat-icon>\n <span matListItemTitle>{{ (vm.defaultInputInEdit)?.label }}</span>\n <span matListItemMeta>\n <mat-icon>arrow_forward_ios</mat-icon>\n </span>\n </mat-list-item>\n </mat-nav-list>\n }\n\n <!-- Section elements -->\n @for(element of section.elements; track element.id) {\n <div class=\"ee-element\">\n @defer (on viewport) {\n <lib-t-dynamic-data-edit [editorConfig]=\"element\" [data]=\"(vm.inputInEdit)\"\n [validationErrors]=\"element.computedErrors ?? null\" [mscoaSaveCustomInput]=\"saveMscoaCustomInput\"\n [mscoaEditInput]=\"editMscoaInput\" [mscoaDeleteInput]=\"deleteMscoaInput\"\n (valueChange)=\"elementConfigurationChanged($event, element)\" [formInputs]=\"(vm.formInputs) || []\"\n (blur)=\"elementBlur($event, element)\">\n </lib-t-dynamic-data-edit>\n } @placeholder {\n <div class=\"ee-element-loading\">\n <mat-spinner diameter=\"18\"></mat-spinner>\n </div>\n }\n </div>\n }\n </div>\n </mat-expansion-panel>\n }\n</mat-accordion>\n} @placeholder {\n<div class=\"ee-loading\">\n <mat-spinner diameter=\"44\" />\n</div>\n} @error {\n<div class=\"ee-error\">\n <mat-icon class=\"ee-error-icon\" aria-hidden=\"false\">error_outline</mat-icon>\n <h3 class=\"ee-error-title\">Error loading element editor</h3>\n <p class=\"ee-error-text\">An error occurred while loading the element editor. Please try again later.</p>\n</div>\n}\n\n<!-- Diagnostic section -->\n<div class=\"ee-section-bar ee-section-bar--diagnostic\">\n <span class=\"ee-section-eyebrow\">Diagnostic data</span>\n <span class=\"spacer\"></span>\n</div>\n\n<mat-accordion class=\"ee-accordion\" togglePosition=\"before\" multi>\n @if(((vm.inputInEditValidationErrors) || []).length > 0) {\n <mat-expansion-panel class=\"ee-panel mat-elevation-z0\">\n <mat-expansion-panel-header class=\"ee-panel-header\" collapsedHeight=\"48px\" expandedHeight=\"48px\">\n <mat-panel-title class=\"ee-panel-title\">\n <span class=\"ee-panel-label\">Validation Errors</span>\n <span class=\"spacer\"></span>\n <span class=\"ee-item-value ee-item-value--error\">{{ (vm.inputInEditValidationErrors).length }}</span>\n </mat-panel-title>\n </mat-expansion-panel-header>\n <div class=\"ee-panel-body\">\n <div class=\"ee-error-summary\">\n <h3 class=\"ee-error-summary-title\">All configuration errors</h3>\n <p class=\"ee-error-summary-text\">\n {{ (vm.inputInEditValidationErrors).length }} errors found. When an error is found, the input will\n not be saved.\n </p>\n <ul class=\"ee-error-list\">\n @for(error of (vm.inputInEditValidationErrors); track $index) {\n <li><strong>{{ error.key }}</strong> {{ error.message }}</li>\n }\n </ul>\n </div>\n </div>\n </mat-expansion-panel>\n }\n <mat-expansion-panel class=\"ee-panel mat-elevation-z0\">\n <mat-expansion-panel-header class=\"ee-panel-header\" collapsedHeight=\"48px\" expandedHeight=\"48px\">\n <mat-panel-title class=\"ee-panel-title\">\n <span class=\"ee-panel-label\">Complete Virtual Model</span>\n <span class=\"spacer\"></span>\n <button mat-icon-button class=\"ee-diagnostic-btn\" matTooltip=\"Download debug data\"\n (click)=\"showDebugData(); $event.stopPropagation()\">\n <mat-icon>troubleshoot</mat-icon>\n </button>\n </mat-panel-title>\n </mat-expansion-panel-header>\n <div class=\"ee-panel-body\">\n <lib-t-dynamic-data-view [data]=\"({\n 'Default Input Template InEdit': vm.defaultInputInEdit,\n 'Input In Edit': vm.inputInEdit,\n 'Input Editor Sections': vm.inputElementEditorConfigs?.editorSections\n })\"></lib-t-dynamic-data-view>\n </div>\n </mat-expansion-panel>\n</mat-accordion>\n}\n", styles: ["@charset \"UTF-8\";:host{display:block}.spacer{flex:1 1 auto}.ee-section-bar{display:flex;align-items:center;gap:.5rem;padding:.625rem 1.25rem;background:var(--mat-sys-surface-container, var(--mat-app-surface))}.ee-section-bar--diagnostic{margin-top:1.5rem}.ee-section-eyebrow{font-size:.625rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--mat-sys-on-surface-variant)}.ee-section-count{font-size:.6875rem;font-weight:500;padding:.125rem .5rem;border-radius:999px;color:var(--mat-sys-on-surface-variant);background:var(--mat-sys-surface-container-highest, color-mix(in srgb, var(--mat-sys-on-surface) 6%, transparent))}.ee-accordion{display:block;padding:.75rem}.ee-accordion.mat-accordion ::ng-deep .mat-expansion-panel.ee-panel{margin:0 0 .75rem;border-radius:8px;border:1px solid color-mix(in srgb,var(--mat-sys-outline) 15%,transparent);background:var(--mat-sys-surface-container, var(--mat-app-surface));box-shadow:none;overflow:hidden;transition:border-color .3s cubic-bezier(.16,1,.3,1)}.ee-accordion.mat-accordion ::ng-deep .mat-expansion-panel.ee-panel:last-child{margin-bottom:0}.ee-accordion.mat-accordion ::ng-deep .mat-expansion-panel.ee-panel:hover{border-color:var(--mat-sys-primary)}.ee-panel ::ng-deep .mat-expansion-panel-header{padding:0 .875rem}.ee-panel ::ng-deep .mat-expansion-panel-header.mat-expanded{background:color-mix(in srgb,var(--mat-sys-primary) 6%,transparent)}.ee-panel ::ng-deep .mat-expansion-panel-body{padding:0 .875rem .875rem}.ee-panel-title{display:flex;align-items:center;margin-right:0}.ee-panel-label{font-size:.8125rem;font-weight:600;letter-spacing:-.005em;color:var(--mat-sys-on-surface)}.ee-panel-error{font-size:1.125rem;width:1.125rem;height:1.125rem}.ee-item-value{font-size:.75rem;font-weight:500;padding:.125rem .5rem;border-radius:6px;color:var(--mat-sys-on-surface-variant);background:var(--mat-sys-surface-container-highest, color-mix(in srgb, var(--mat-sys-on-surface) 6%, transparent));white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:12rem}.ee-item-value--error{color:var(--mat-sys-error);background:color-mix(in srgb,var(--mat-sys-error) 12%,transparent)}.ee-panel-body{display:flex;flex-direction:column;gap:1rem;padding-top:.75rem;border-top:1px solid color-mix(in srgb,var(--mat-sys-outline) 10%,transparent)}.ee-element{margin:0}.ee-element-loading{display:flex;justify-content:center;align-items:center;padding:1.75rem}.ee-input-switcher{padding:0;margin:0;border-radius:8px;overflow:hidden;border:1px solid color-mix(in srgb,var(--mat-sys-outline) 15%,transparent);background:var(--mat-sys-surface-container-high, var(--mat-app-surface))}.ee-input-switcher ::ng-deep .mat-mdc-list-item{transition:background .3s cubic-bezier(.16,1,.3,1)}.ee-input-switcher ::ng-deep .mat-mdc-list-item:not(.mdc-list-item--disabled):hover{background:color-mix(in srgb,var(--mat-sys-primary) 8%,transparent);cursor:pointer}.ee-input-switcher ::ng-deep .mat-mdc-list-item [matListItemMeta] mat-icon{color:var(--mat-sys-on-surface-variant);font-size:1.125rem;width:1.125rem;height:1.125rem}mat-icon[matListItemAvatar]{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;font-size:24px;line-height:1;border-radius:50%;background:var(--mat-sys-surface-container-highest, var(--mat-app-surface-variant));color:var(--mat-sys-on-surface-variant)}.ee-diagnostic-btn{color:var(--mat-sys-on-surface-variant)}.ee-error-summary{border:1px solid color-mix(in srgb,var(--mat-sys-error) 40%,transparent);border-radius:8px;padding:1rem;color:var(--mat-sys-error)}.ee-error-summary-title{margin:0 0 .5rem;font-size:.9375rem;font-weight:600}.ee-error-summary-text{margin:0 0 .75rem;font-size:.8125rem;line-height:1.4}.ee-error-list{margin:0;padding-left:1.25rem;font-size:.8125rem;line-height:1.5}.ee-loading{display:flex;justify-content:center;align-items:center;padding:3.5rem}.ee-error{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.375rem;padding:2.25rem 1.5rem;color:var(--mat-sys-on-surface-variant)}.ee-error-icon{color:var(--mat-sys-error);width:2rem;height:2rem;font-size:2rem}.ee-error-title{margin:.25rem 0 0;font-size:.9375rem;font-weight:600;color:var(--mat-sys-on-surface)}.ee-error-text{margin:0;font-size:.8125rem;line-height:1.4}\n"], dependencies: [{ kind: "ngmodule", type: MatExpansionModule }, { kind: "directive", type: i5.MatAccordion, selector: "mat-accordion", inputs: ["hideToggle", "displayMode", "togglePosition"], exportAs: ["matAccordion"] }, { kind: "component", type: i5.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i5.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: i5.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatListModule }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5$1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatCardModule }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: TDynamicDataViewComponent, selector: "lib-t-dynamic-data-view", inputs: ["data"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, deferBlockDependencies: [() => [i5.MatAccordion, i5.MatExpansionPanel, i5.MatExpansionPanelHeader, i5.MatExpansionPanelTitle, i3.MatIcon, i6.MatNavList, i6.MatListItem, i6.MatListItemAvatar, i6.MatListItemTitle, i6.MatListItemMeta, i5$1.MatTooltip, i4.MatProgressSpinner], () => [TDynamicDataEditComponent]] }); }
131
- }
132
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: InputElementEditorComponent, decorators: [{
133
- type: Component,
134
- args: [{ selector: 'lib-input-element-editor', imports: [
135
- MatExpansionModule,
136
- MatIconModule,
137
- MatListModule,
138
- MatTooltipModule,
139
- MatProgressSpinnerModule,
140
- MatButtonModule,
141
- MatCardModule,
142
- MatFormFieldModule,
143
- TDynamicDataEditComponent,
144
- TDynamicDataViewComponent,
145
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (vm(); as vm) {\n<div class=\"ee-section-bar\">\n <span class=\"ee-section-eyebrow\">Element configuration</span>\n <span class=\"spacer\"></span>\n @if ((vm.inputElementEditorConfigs.editorSections || []).length) {\n <span class=\"ee-section-count\">{{ (vm.inputElementEditorConfigs.editorSections || []).length }} sections</span>\n }\n</div>\n\n@defer (on viewport) {\n<mat-accordion class=\"ee-accordion\" togglePosition=\"before\" multi>\n @for(section of (vm.inputElementEditorConfigs.editorSections || []); track section.id; let i = $index) {\n <mat-expansion-panel class=\"ee-panel mat-elevation-z0\">\n <mat-expansion-panel-header class=\"ee-panel-header\" collapsedHeight=\"48px\" expandedHeight=\"48px\">\n <mat-panel-title class=\"ee-panel-title\">\n <span class=\"ee-panel-label\">{{ section.label }}</span>\n <span class=\"spacer\"></span>\n @if (section.hasErrors) {\n <mat-icon class=\"ee-panel-error\" color=\"warn\">error</mat-icon>\n }\n @if (section.showItemValue && !!(vm.inputInEdit)) {\n <span class=\"ee-item-value\">{{ vm.inputInEdit[section.showItemValue] }}</span>\n }\n </mat-panel-title>\n </mat-expansion-panel-header>\n\n <div class=\"ee-panel-body\">\n <!-- Input-type switcher (first section only) -->\n @if(i === 0) {\n <mat-nav-list class=\"ee-input-switcher\">\n <mat-list-item [disabled]=\"vm.inputInEdit?.systemDefault\" matTooltip=\"Change input element\"\n (click)=\"vm.inputInEdit?.systemDefault ? '' : clearInputInEdit()\">\n <mat-icon matListItemAvatar [attr.aria-label]=\"(vm.defaultInputInEdit)?.label\">\n {{ getInputIcon(vm.inputInEdit?.element) }}\n </mat-icon>\n <span matListItemTitle>{{ (vm.defaultInputInEdit)?.label }}</span>\n <span matListItemMeta>\n <mat-icon>arrow_forward_ios</mat-icon>\n </span>\n </mat-list-item>\n </mat-nav-list>\n }\n\n <!-- Section elements -->\n @for(element of section.elements; track element.id) {\n <div class=\"ee-element\">\n @defer (on viewport) {\n <lib-t-dynamic-data-edit [editorConfig]=\"element\" [data]=\"(vm.inputInEdit)\"\n [validationErrors]=\"element.computedErrors ?? null\" [mscoaSaveCustomInput]=\"saveMscoaCustomInput\"\n [mscoaEditInput]=\"editMscoaInput\" [mscoaDeleteInput]=\"deleteMscoaInput\"\n (valueChange)=\"elementConfigurationChanged($event, element)\" [formInputs]=\"(vm.formInputs) || []\"\n (blur)=\"elementBlur($event, element)\">\n </lib-t-dynamic-data-edit>\n } @placeholder {\n <div class=\"ee-element-loading\">\n <mat-spinner diameter=\"18\"></mat-spinner>\n </div>\n }\n </div>\n }\n </div>\n </mat-expansion-panel>\n }\n</mat-accordion>\n} @placeholder {\n<div class=\"ee-loading\">\n <mat-spinner diameter=\"44\" />\n</div>\n} @error {\n<div class=\"ee-error\">\n <mat-icon class=\"ee-error-icon\" aria-hidden=\"false\">error_outline</mat-icon>\n <h3 class=\"ee-error-title\">Error loading element editor</h3>\n <p class=\"ee-error-text\">An error occurred while loading the element editor. Please try again later.</p>\n</div>\n}\n\n<!-- Diagnostic section -->\n<div class=\"ee-section-bar ee-section-bar--diagnostic\">\n <span class=\"ee-section-eyebrow\">Diagnostic data</span>\n <span class=\"spacer\"></span>\n</div>\n\n<mat-accordion class=\"ee-accordion\" togglePosition=\"before\" multi>\n @if(((vm.inputInEditValidationErrors) || []).length > 0) {\n <mat-expansion-panel class=\"ee-panel mat-elevation-z0\">\n <mat-expansion-panel-header class=\"ee-panel-header\" collapsedHeight=\"48px\" expandedHeight=\"48px\">\n <mat-panel-title class=\"ee-panel-title\">\n <span class=\"ee-panel-label\">Validation Errors</span>\n <span class=\"spacer\"></span>\n <span class=\"ee-item-value ee-item-value--error\">{{ (vm.inputInEditValidationErrors).length }}</span>\n </mat-panel-title>\n </mat-expansion-panel-header>\n <div class=\"ee-panel-body\">\n <div class=\"ee-error-summary\">\n <h3 class=\"ee-error-summary-title\">All configuration errors</h3>\n <p class=\"ee-error-summary-text\">\n {{ (vm.inputInEditValidationErrors).length }} errors found. When an error is found, the input will\n not be saved.\n </p>\n <ul class=\"ee-error-list\">\n @for(error of (vm.inputInEditValidationErrors); track $index) {\n <li><strong>{{ error.key }}</strong> {{ error.message }}</li>\n }\n </ul>\n </div>\n </div>\n </mat-expansion-panel>\n }\n <mat-expansion-panel class=\"ee-panel mat-elevation-z0\">\n <mat-expansion-panel-header class=\"ee-panel-header\" collapsedHeight=\"48px\" expandedHeight=\"48px\">\n <mat-panel-title class=\"ee-panel-title\">\n <span class=\"ee-panel-label\">Complete Virtual Model</span>\n <span class=\"spacer\"></span>\n <button mat-icon-button class=\"ee-diagnostic-btn\" matTooltip=\"Download debug data\"\n (click)=\"showDebugData(); $event.stopPropagation()\">\n <mat-icon>troubleshoot</mat-icon>\n </button>\n </mat-panel-title>\n </mat-expansion-panel-header>\n <div class=\"ee-panel-body\">\n <lib-t-dynamic-data-view [data]=\"({\n 'Default Input Template InEdit': vm.defaultInputInEdit,\n 'Input In Edit': vm.inputInEdit,\n 'Input Editor Sections': vm.inputElementEditorConfigs?.editorSections\n })\"></lib-t-dynamic-data-view>\n </div>\n </mat-expansion-panel>\n</mat-accordion>\n}\n", styles: ["@charset \"UTF-8\";:host{display:block}.spacer{flex:1 1 auto}.ee-section-bar{display:flex;align-items:center;gap:.5rem;padding:.625rem 1.25rem;background:var(--mat-sys-surface-container, var(--mat-app-surface))}.ee-section-bar--diagnostic{margin-top:1.5rem}.ee-section-eyebrow{font-size:.625rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--mat-sys-on-surface-variant)}.ee-section-count{font-size:.6875rem;font-weight:500;padding:.125rem .5rem;border-radius:999px;color:var(--mat-sys-on-surface-variant);background:var(--mat-sys-surface-container-highest, color-mix(in srgb, var(--mat-sys-on-surface) 6%, transparent))}.ee-accordion{display:block;padding:.75rem}.ee-accordion.mat-accordion ::ng-deep .mat-expansion-panel.ee-panel{margin:0 0 .75rem;border-radius:8px;border:1px solid color-mix(in srgb,var(--mat-sys-outline) 15%,transparent);background:var(--mat-sys-surface-container, var(--mat-app-surface));box-shadow:none;overflow:hidden;transition:border-color .3s cubic-bezier(.16,1,.3,1)}.ee-accordion.mat-accordion ::ng-deep .mat-expansion-panel.ee-panel:last-child{margin-bottom:0}.ee-accordion.mat-accordion ::ng-deep .mat-expansion-panel.ee-panel:hover{border-color:var(--mat-sys-primary)}.ee-panel ::ng-deep .mat-expansion-panel-header{padding:0 .875rem}.ee-panel ::ng-deep .mat-expansion-panel-header.mat-expanded{background:color-mix(in srgb,var(--mat-sys-primary) 6%,transparent)}.ee-panel ::ng-deep .mat-expansion-panel-body{padding:0 .875rem .875rem}.ee-panel-title{display:flex;align-items:center;margin-right:0}.ee-panel-label{font-size:.8125rem;font-weight:600;letter-spacing:-.005em;color:var(--mat-sys-on-surface)}.ee-panel-error{font-size:1.125rem;width:1.125rem;height:1.125rem}.ee-item-value{font-size:.75rem;font-weight:500;padding:.125rem .5rem;border-radius:6px;color:var(--mat-sys-on-surface-variant);background:var(--mat-sys-surface-container-highest, color-mix(in srgb, var(--mat-sys-on-surface) 6%, transparent));white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:12rem}.ee-item-value--error{color:var(--mat-sys-error);background:color-mix(in srgb,var(--mat-sys-error) 12%,transparent)}.ee-panel-body{display:flex;flex-direction:column;gap:1rem;padding-top:.75rem;border-top:1px solid color-mix(in srgb,var(--mat-sys-outline) 10%,transparent)}.ee-element{margin:0}.ee-element-loading{display:flex;justify-content:center;align-items:center;padding:1.75rem}.ee-input-switcher{padding:0;margin:0;border-radius:8px;overflow:hidden;border:1px solid color-mix(in srgb,var(--mat-sys-outline) 15%,transparent);background:var(--mat-sys-surface-container-high, var(--mat-app-surface))}.ee-input-switcher ::ng-deep .mat-mdc-list-item{transition:background .3s cubic-bezier(.16,1,.3,1)}.ee-input-switcher ::ng-deep .mat-mdc-list-item:not(.mdc-list-item--disabled):hover{background:color-mix(in srgb,var(--mat-sys-primary) 8%,transparent);cursor:pointer}.ee-input-switcher ::ng-deep .mat-mdc-list-item [matListItemMeta] mat-icon{color:var(--mat-sys-on-surface-variant);font-size:1.125rem;width:1.125rem;height:1.125rem}mat-icon[matListItemAvatar]{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;font-size:24px;line-height:1;border-radius:50%;background:var(--mat-sys-surface-container-highest, var(--mat-app-surface-variant));color:var(--mat-sys-on-surface-variant)}.ee-diagnostic-btn{color:var(--mat-sys-on-surface-variant)}.ee-error-summary{border:1px solid color-mix(in srgb,var(--mat-sys-error) 40%,transparent);border-radius:8px;padding:1rem;color:var(--mat-sys-error)}.ee-error-summary-title{margin:0 0 .5rem;font-size:.9375rem;font-weight:600}.ee-error-summary-text{margin:0 0 .75rem;font-size:.8125rem;line-height:1.4}.ee-error-list{margin:0;padding-left:1.25rem;font-size:.8125rem;line-height:1.5}.ee-loading{display:flex;justify-content:center;align-items:center;padding:3.5rem}.ee-error{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.375rem;padding:2.25rem 1.5rem;color:var(--mat-sys-on-surface-variant)}.ee-error-icon{color:var(--mat-sys-error);width:2rem;height:2rem;font-size:2rem}.ee-error-title{margin:.25rem 0 0;font-size:.9375rem;font-weight:600;color:var(--mat-sys-on-surface)}.ee-error-text{margin:0;font-size:.8125rem;line-height:1.4}\n"] }]
146
- }] });
147
-
148
- class InputEditorComponent {
149
- constructor() {
150
- this.#store = inject(FormsStoreService);
151
- this.defaultInputs = DefaultInputConfig;
152
- this.inputInEdit$ = this.#store.formBuilderSelectors.inputInEdit$;
153
- this.defaultInputInEdit$ = this.#store.formBuilderSelectors.defaultInputInEdit$;
154
- this.saveInput = () => {
155
- this.inputInEdit$
156
- .pipe(take(1), tap((inputVal) => {
157
- if (!inputVal)
158
- return;
159
- this.#store.actionsFormBuilder.saveInput(inputVal.id);
160
- }))
161
- .subscribe();
162
- };
163
- this.closeEditor = () => {
164
- this.#store.actions.setInputInEditId({ inputInEdit: null });
165
- };
166
- }
167
- #store;
168
- get validationErrors$() {
169
- return this.#store.formBuilderSelectors.inputInEditValidationErrors$;
170
- }
171
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: InputEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
172
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: InputEditorComponent, isStandalone: true, selector: "lib-input-editor", ngImport: i0, template: "<mat-card class=\"element-editor\" appearance=\"outlined\">\n <header class=\"ee-header\">\n <div class=\"ee-header-icon\" aria-hidden=\"true\">\n <mat-icon>tune</mat-icon>\n </div>\n <div class=\"ee-header-text\">\n <h2 class=\"ee-title\">\n {{\n !!(inputInEdit$|async)?.element\n ? \"Edit \" + (inputInEdit$|async)?.label + \" element\"\n : \"Setup Form Element\"\n }}\n </h2>\n <p class=\"ee-subtitle\">\n {{\n !!(inputInEdit$|async)?.element\n ? \"Configure the element below\"\n : \"Form elements are the components making up a form section. Their type is defined by behaviour and use case \u2014 for example, a date range picker is well suited to determining duration.\"\n }}\n </p>\n </div>\n <button mat-icon-button cdkDragHandle class=\"ee-drag\" aria-label=\"Drag to reposition\">\n <mat-icon>drag_indicator</mat-icon>\n </button>\n </header>\n\n <div class=\"ee-content\">\n @if(!!((inputInEdit$|async))?.element){\n <lib-input-element-editor></lib-input-element-editor>\n }@else{\n <lib-default-element></lib-default-element>\n }\n </div>\n\n <footer class=\"ee-actions\">\n <button (click)=\"closeEditor()\" mat-button class=\"ee-close\">Close</button>\n <span class=\"spacer\"></span>\n @if (!((inputInEdit$|async))?.id) {\n <button mat-flat-button (click)=\"saveInput()\" [disabled]=\"((validationErrors$|async)||[]).length>0\"\n color=\"primary\" class=\"ee-save\">Save new input</button>\n }\n </footer>\n</mat-card>\n", styles: ["@charset \"UTF-8\";:host{display:block}.spacer{flex:1 1 auto}.element-editor{display:flex;flex-direction:column;margin:1rem;max-height:calc(100vh - 2rem);padding:0;border-radius:12px;overflow:hidden;background:var(--mat-sys-surface, var(--mat-app-surface));border:1px solid color-mix(in srgb,var(--mat-sys-outline) 15%,transparent);box-shadow:0 2px 8px #00000014}:host-context(.dark) .element-editor{box-shadow:0 1px 3px #0000004d}.ee-header,.ee-actions{flex-shrink:0}.ee-header{display:flex;align-items:flex-start;gap:.75rem;padding:1rem 1.25rem;background:color-mix(in srgb,var(--mat-sys-primary) 4%,var(--mat-sys-surface, transparent));border-bottom:1px solid color-mix(in srgb,var(--mat-sys-outline) 10%,transparent)}.ee-header-icon{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:2.75rem;height:2.75rem;border-radius:8px;background:color-mix(in srgb,var(--mat-sys-primary) 12%,transparent)}.ee-header-icon mat-icon{width:1.5rem;height:1.5rem;font-size:1.5rem;line-height:1.5rem;color:var(--mat-sys-primary)}.ee-header-text{flex:1 1 auto;min-width:0;padding-top:.125rem}.ee-title{margin:0;font-size:.9375rem;font-weight:600;line-height:1.3;letter-spacing:-.01em;color:var(--mat-sys-on-surface)}.ee-subtitle{margin:.25rem 0 0;font-size:.8125rem;line-height:1.35;color:var(--mat-sys-on-surface-variant)}.ee-drag{flex-shrink:0;color:var(--mat-sys-on-surface-variant);cursor:grab}.ee-drag:active{cursor:grabbing}.ee-content{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}.ee-actions{display:flex;align-items:center;gap:.75rem;padding:1rem 1.25rem 1.25rem;background:var(--mat-sys-surface-container, var(--mat-app-surface));border-top:1px solid color-mix(in srgb,var(--mat-sys-outline) 10%,transparent)}.ee-close{font-size:.8125rem;font-weight:500;color:var(--mat-sys-on-surface-variant)}.ee-save{min-width:8.75rem;height:2.5rem;border-radius:8px;font-size:.8125rem;font-weight:600;letter-spacing:.01em}\n"], dependencies: [{ kind: "ngmodule", type: MatCardModule }, { kind: "component", type: i3$1.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatDividerModule }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i1.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "component", type: DefaultElementComponent, selector: "lib-default-element" }, { kind: "component", type: InputElementEditorComponent, selector: "lib-input-element-editor" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
173
- }
174
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: InputEditorComponent, decorators: [{
175
- type: Component,
176
- args: [{ selector: 'lib-input-editor', imports: [
177
- AsyncPipe,
178
- MatCardModule,
179
- MatButtonModule,
180
- MatIconModule,
181
- MatDividerModule,
182
- MatToolbarModule,
183
- DragDropModule,
184
- DefaultElementComponent,
185
- InputElementEditorComponent,
186
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-card class=\"element-editor\" appearance=\"outlined\">\n <header class=\"ee-header\">\n <div class=\"ee-header-icon\" aria-hidden=\"true\">\n <mat-icon>tune</mat-icon>\n </div>\n <div class=\"ee-header-text\">\n <h2 class=\"ee-title\">\n {{\n !!(inputInEdit$|async)?.element\n ? \"Edit \" + (inputInEdit$|async)?.label + \" element\"\n : \"Setup Form Element\"\n }}\n </h2>\n <p class=\"ee-subtitle\">\n {{\n !!(inputInEdit$|async)?.element\n ? \"Configure the element below\"\n : \"Form elements are the components making up a form section. Their type is defined by behaviour and use case \u2014 for example, a date range picker is well suited to determining duration.\"\n }}\n </p>\n </div>\n <button mat-icon-button cdkDragHandle class=\"ee-drag\" aria-label=\"Drag to reposition\">\n <mat-icon>drag_indicator</mat-icon>\n </button>\n </header>\n\n <div class=\"ee-content\">\n @if(!!((inputInEdit$|async))?.element){\n <lib-input-element-editor></lib-input-element-editor>\n }@else{\n <lib-default-element></lib-default-element>\n }\n </div>\n\n <footer class=\"ee-actions\">\n <button (click)=\"closeEditor()\" mat-button class=\"ee-close\">Close</button>\n <span class=\"spacer\"></span>\n @if (!((inputInEdit$|async))?.id) {\n <button mat-flat-button (click)=\"saveInput()\" [disabled]=\"((validationErrors$|async)||[]).length>0\"\n color=\"primary\" class=\"ee-save\">Save new input</button>\n }\n </footer>\n</mat-card>\n", styles: ["@charset \"UTF-8\";:host{display:block}.spacer{flex:1 1 auto}.element-editor{display:flex;flex-direction:column;margin:1rem;max-height:calc(100vh - 2rem);padding:0;border-radius:12px;overflow:hidden;background:var(--mat-sys-surface, var(--mat-app-surface));border:1px solid color-mix(in srgb,var(--mat-sys-outline) 15%,transparent);box-shadow:0 2px 8px #00000014}:host-context(.dark) .element-editor{box-shadow:0 1px 3px #0000004d}.ee-header,.ee-actions{flex-shrink:0}.ee-header{display:flex;align-items:flex-start;gap:.75rem;padding:1rem 1.25rem;background:color-mix(in srgb,var(--mat-sys-primary) 4%,var(--mat-sys-surface, transparent));border-bottom:1px solid color-mix(in srgb,var(--mat-sys-outline) 10%,transparent)}.ee-header-icon{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:2.75rem;height:2.75rem;border-radius:8px;background:color-mix(in srgb,var(--mat-sys-primary) 12%,transparent)}.ee-header-icon mat-icon{width:1.5rem;height:1.5rem;font-size:1.5rem;line-height:1.5rem;color:var(--mat-sys-primary)}.ee-header-text{flex:1 1 auto;min-width:0;padding-top:.125rem}.ee-title{margin:0;font-size:.9375rem;font-weight:600;line-height:1.3;letter-spacing:-.01em;color:var(--mat-sys-on-surface)}.ee-subtitle{margin:.25rem 0 0;font-size:.8125rem;line-height:1.35;color:var(--mat-sys-on-surface-variant)}.ee-drag{flex-shrink:0;color:var(--mat-sys-on-surface-variant);cursor:grab}.ee-drag:active{cursor:grabbing}.ee-content{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}.ee-actions{display:flex;align-items:center;gap:.75rem;padding:1rem 1.25rem 1.25rem;background:var(--mat-sys-surface-container, var(--mat-app-surface));border-top:1px solid color-mix(in srgb,var(--mat-sys-outline) 10%,transparent)}.ee-close{font-size:.8125rem;font-weight:500;color:var(--mat-sys-on-surface-variant)}.ee-save{min-width:8.75rem;height:2.5rem;border-radius:8px;font-size:.8125rem;font-weight:600;letter-spacing:.01em}\n"] }]
187
- }] });
188
-
189
- export { InputEditorComponent };
190
- //# sourceMappingURL=ngx-t-forms-input-editor.component-B6UKwV4i.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ngx-t-forms-input-editor.component-B6UKwV4i.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/default-element/default-element.component.ts","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/default-element/default-element.component.html","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/input-element-editor/input-element-editor.component.ts","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/input-element-editor/input-element-editor.component.html","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/input-editor/input-editor.component.ts","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/input-editor/input-editor.component.html"],"sourcesContent":["import { ChangeDetectionStrategy, Component, DestroyRef, inject } from '@angular/core';\r\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\r\nimport { MatListModule } from '@angular/material/list';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatDividerModule } from '@angular/material/divider';\r\n\r\nimport { FormsStoreService } from '../../../forms/store/forms-store.service';\r\nimport { DefaultInputConfig, ElementTypes } from 'ngx-t-forms-types';\r\nimport { take } from 'rxjs';\r\nimport { getInputIcon } from '../../../../shared/functions/getInputIcon';\r\n\r\n@Component({\r\n selector: 'lib-default-element',\r\n imports: [MatListModule, MatIconModule, MatDividerModule],\r\n templateUrl: './default-element.component.html',\r\n styleUrl: './default-element.component.scss',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class DefaultElementComponent {\r\n protected readonly inputs = DefaultInputConfig;\r\n readonly #store = inject(FormsStoreService);\r\n readonly #destroyRef = inject(DestroyRef);\r\n\r\n protected getDefaultInputs(): ElementTypes[] {\r\n const i = JSON.parse(JSON.stringify(DefaultInputConfig)) as Record<string, unknown>;\r\n return Object.keys(i) as ElementTypes[];\r\n }\r\n\r\n protected getInputIcon(element: ElementTypes): string {\r\n return getInputIcon(element);\r\n }\r\n\r\n protected selectInputTemplate(input: ElementTypes): void {\r\n this.#store.selectors.selectInputInEditId$\r\n .pipe(take(1), takeUntilDestroyed(this.#destroyRef))\r\n .subscribe((id) => {\r\n if (!id) return;\r\n this.#store.actionsFormBuilder.selectInputTemplate(id, input);\r\n });\r\n }\r\n}\r\n","<br>\r\n<mat-nav-list style=\"margin: 5px;\">\r\n\r\n\r\n @defer () {\r\n @for (input of getDefaultInputs(); track input) {\r\n @if (inputs[input]?.disabled === false) {\r\n <mat-list-item style=\"background: var(--mdc-elevated-card-container-color, var(--mat-app-surface-container-low));\"\r\n (click)=\"selectInputTemplate(input)\">\r\n <mat-icon matListItemAvatar>{{ getInputIcon(input) }}</mat-icon>\r\n <span matListItemTitle href=\"...\">{{ inputs[input]?.label}}</span>\r\n </mat-list-item>\r\n <mat-divider></mat-divider>\r\n }\r\n }\r\n \r\n }\r\n\r\n\r\n</mat-nav-list>","// TODO(unify): see ngx-t-forms/docs/migration/element-editor-unification.md\nimport { ChangeDetectionStrategy, Component, DOCUMENT, PLATFORM_ID, computed, inject } from '@angular/core';\nimport { isPlatformBrowser } from '@angular/common';\nimport { MatExpansionModule } from '@angular/material/expansion';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatListModule } from '@angular/material/list';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatCardModule } from '@angular/material/card';\nimport { MatFormFieldModule } from '@angular/material/form-field';\n\nimport { FormsStoreService } from '../../../forms/store/forms-store.service';\n\nimport { TDynamicDataEditComponent, TDynamicDataViewComponent } from '../../..';\n\nimport type { ElementEditorInnerSectionElementInterface, ElementTypes, FormColumnInputs, ScoaInnerInput } from 'ngx-t-forms-types';\nimport { getInputIcon } from '../../../../shared/functions/getInputIcon';\n\n@Component({\n selector: 'lib-input-element-editor',\n imports: [\n MatExpansionModule,\n MatIconModule,\n MatListModule,\n MatTooltipModule,\n MatProgressSpinnerModule,\n MatButtonModule,\n MatCardModule,\n MatFormFieldModule,\n TDynamicDataEditComponent,\n TDynamicDataViewComponent,\n ],\n templateUrl: './input-element-editor.component.html',\n styleUrl: './input-element-editor.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class InputElementEditorComponent {\n readonly #store = inject(FormsStoreService);\n readonly #platformId = inject(PLATFORM_ID);\n readonly #document = inject(DOCUMENT);\n\n readonly #signals = this.#store.formBuilderSignalSelectors;\n\n protected readonly vm = computed(() => ({\n defaultInputInEdit: this.#signals.defaultInputInEdit(),\n inputInEdit: this.#signals.inputInEdit(),\n inputElementEditorConfigs: this.#signals.inputElementEditorConfigs(),\n inputInEditValidationErrors: this.#signals.inputInEditValidationErrors(),\n formInputs: this.#signals.getAllFormInputs(),\n }));\n\n protected readonly elementConfigurationChanged = (\n value: unknown,\n ele: ElementEditorInnerSectionElementInterface,\n ): void => {\n const inputVal = this.#signals.inputInEdit();\n if (!inputVal) return;\n this.#store.actionsFormBuilder.elementConfigurationChanged(inputVal.id, value, ele);\n };\n\n protected readonly clearInputInEdit = (): void => {\n const inputVal = this.#signals.inputInEdit();\n if (!inputVal) return;\n this.#store.actionsFormBuilder.clearInputInEdit(inputVal.id);\n };\n\n protected readonly elementBlur = (\n event: unknown,\n element: ElementEditorInnerSectionElementInterface,\n ): void => {\n const inputVal = this.#signals.inputInEdit();\n if (!inputVal) return;\n this.#store.actionsFormBuilder.elementBlur(inputVal.id, event, element);\n };\n\n /** Creates or updates an account-level custom input from the segment-config quick editor. */\n protected readonly saveMscoaCustomInput = (\n sectionId: string,\n scoaInputId: string,\n config: Pick<ScoaInnerInput, 'element' | 'label' | 'formControlName' | 'singleSelect' | 'readonly'> & { id?: string },\n ): void => {\n this.#store.actionsFormBuilder.saveScoaCustomInput(sectionId, scoaInputId, config);\n };\n\n /** Opens an MSCOA custom input in this editor for advanced configuration. */\n protected readonly editMscoaInput = (input: FormColumnInputs): void => {\n this.#store.actionsFormBuilder.editInput(input);\n };\n\n /** Removes an MSCOA custom input from the config. */\n protected readonly deleteMscoaInput = (input: FormColumnInputs): void => {\n this.#store.actionsFormBuilder.formDeleteInput(input);\n };\n\n protected getInputIcon(element: ElementTypes | undefined | null): string {\n return getInputIcon(element);\n }\n\n protected showDebugData(): void {\n if (!isPlatformBrowser(this.#platformId)) return;\n const win = this.#document.defaultView;\n if (!win) return;\n const jsonData = JSON.stringify(this.vm(), null, 2);\n const blob = new Blob([jsonData], { type: 'application/json' });\n const url = win.URL.createObjectURL(blob);\n const link = this.#document.createElement('a');\n link.href = url;\n link.download = 'debug-data.json';\n link.click();\n win.URL.revokeObjectURL(url);\n }\n}\n","@if (vm(); as vm) {\n<div class=\"ee-section-bar\">\n <span class=\"ee-section-eyebrow\">Element configuration</span>\n <span class=\"spacer\"></span>\n @if ((vm.inputElementEditorConfigs.editorSections || []).length) {\n <span class=\"ee-section-count\">{{ (vm.inputElementEditorConfigs.editorSections || []).length }} sections</span>\n }\n</div>\n\n@defer (on viewport) {\n<mat-accordion class=\"ee-accordion\" togglePosition=\"before\" multi>\n @for(section of (vm.inputElementEditorConfigs.editorSections || []); track section.id; let i = $index) {\n <mat-expansion-panel class=\"ee-panel mat-elevation-z0\">\n <mat-expansion-panel-header class=\"ee-panel-header\" collapsedHeight=\"48px\" expandedHeight=\"48px\">\n <mat-panel-title class=\"ee-panel-title\">\n <span class=\"ee-panel-label\">{{ section.label }}</span>\n <span class=\"spacer\"></span>\n @if (section.hasErrors) {\n <mat-icon class=\"ee-panel-error\" color=\"warn\">error</mat-icon>\n }\n @if (section.showItemValue && !!(vm.inputInEdit)) {\n <span class=\"ee-item-value\">{{ vm.inputInEdit[section.showItemValue] }}</span>\n }\n </mat-panel-title>\n </mat-expansion-panel-header>\n\n <div class=\"ee-panel-body\">\n <!-- Input-type switcher (first section only) -->\n @if(i === 0) {\n <mat-nav-list class=\"ee-input-switcher\">\n <mat-list-item [disabled]=\"vm.inputInEdit?.systemDefault\" matTooltip=\"Change input element\"\n (click)=\"vm.inputInEdit?.systemDefault ? '' : clearInputInEdit()\">\n <mat-icon matListItemAvatar [attr.aria-label]=\"(vm.defaultInputInEdit)?.label\">\n {{ getInputIcon(vm.inputInEdit?.element) }}\n </mat-icon>\n <span matListItemTitle>{{ (vm.defaultInputInEdit)?.label }}</span>\n <span matListItemMeta>\n <mat-icon>arrow_forward_ios</mat-icon>\n </span>\n </mat-list-item>\n </mat-nav-list>\n }\n\n <!-- Section elements -->\n @for(element of section.elements; track element.id) {\n <div class=\"ee-element\">\n @defer (on viewport) {\n <lib-t-dynamic-data-edit [editorConfig]=\"element\" [data]=\"(vm.inputInEdit)\"\n [validationErrors]=\"element.computedErrors ?? null\" [mscoaSaveCustomInput]=\"saveMscoaCustomInput\"\n [mscoaEditInput]=\"editMscoaInput\" [mscoaDeleteInput]=\"deleteMscoaInput\"\n (valueChange)=\"elementConfigurationChanged($event, element)\" [formInputs]=\"(vm.formInputs) || []\"\n (blur)=\"elementBlur($event, element)\">\n </lib-t-dynamic-data-edit>\n } @placeholder {\n <div class=\"ee-element-loading\">\n <mat-spinner diameter=\"18\"></mat-spinner>\n </div>\n }\n </div>\n }\n </div>\n </mat-expansion-panel>\n }\n</mat-accordion>\n} @placeholder {\n<div class=\"ee-loading\">\n <mat-spinner diameter=\"44\" />\n</div>\n} @error {\n<div class=\"ee-error\">\n <mat-icon class=\"ee-error-icon\" aria-hidden=\"false\">error_outline</mat-icon>\n <h3 class=\"ee-error-title\">Error loading element editor</h3>\n <p class=\"ee-error-text\">An error occurred while loading the element editor. Please try again later.</p>\n</div>\n}\n\n<!-- Diagnostic section -->\n<div class=\"ee-section-bar ee-section-bar--diagnostic\">\n <span class=\"ee-section-eyebrow\">Diagnostic data</span>\n <span class=\"spacer\"></span>\n</div>\n\n<mat-accordion class=\"ee-accordion\" togglePosition=\"before\" multi>\n @if(((vm.inputInEditValidationErrors) || []).length > 0) {\n <mat-expansion-panel class=\"ee-panel mat-elevation-z0\">\n <mat-expansion-panel-header class=\"ee-panel-header\" collapsedHeight=\"48px\" expandedHeight=\"48px\">\n <mat-panel-title class=\"ee-panel-title\">\n <span class=\"ee-panel-label\">Validation Errors</span>\n <span class=\"spacer\"></span>\n <span class=\"ee-item-value ee-item-value--error\">{{ (vm.inputInEditValidationErrors).length }}</span>\n </mat-panel-title>\n </mat-expansion-panel-header>\n <div class=\"ee-panel-body\">\n <div class=\"ee-error-summary\">\n <h3 class=\"ee-error-summary-title\">All configuration errors</h3>\n <p class=\"ee-error-summary-text\">\n {{ (vm.inputInEditValidationErrors).length }} errors found. When an error is found, the input will\n not be saved.\n </p>\n <ul class=\"ee-error-list\">\n @for(error of (vm.inputInEditValidationErrors); track $index) {\n <li><strong>{{ error.key }}</strong> {{ error.message }}</li>\n }\n </ul>\n </div>\n </div>\n </mat-expansion-panel>\n }\n <mat-expansion-panel class=\"ee-panel mat-elevation-z0\">\n <mat-expansion-panel-header class=\"ee-panel-header\" collapsedHeight=\"48px\" expandedHeight=\"48px\">\n <mat-panel-title class=\"ee-panel-title\">\n <span class=\"ee-panel-label\">Complete Virtual Model</span>\n <span class=\"spacer\"></span>\n <button mat-icon-button class=\"ee-diagnostic-btn\" matTooltip=\"Download debug data\"\n (click)=\"showDebugData(); $event.stopPropagation()\">\n <mat-icon>troubleshoot</mat-icon>\n </button>\n </mat-panel-title>\n </mat-expansion-panel-header>\n <div class=\"ee-panel-body\">\n <lib-t-dynamic-data-view [data]=\"({\n 'Default Input Template InEdit': vm.defaultInputInEdit,\n 'Input In Edit': vm.inputInEdit,\n 'Input Editor Sections': vm.inputElementEditorConfigs?.editorSections\n })\"></lib-t-dynamic-data-view>\n </div>\n </mat-expansion-panel>\n</mat-accordion>\n}\n","import { AsyncPipe } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component, inject } from '@angular/core';\r\nimport { MatCardModule } from '@angular/material/card';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatDividerModule } from '@angular/material/divider';\r\nimport { MatToolbarModule } from '@angular/material/toolbar';\r\nimport { DragDropModule } from '@angular/cdk/drag-drop';\r\n\r\nimport { DefaultElementComponent } from '../default-element/default-element.component';\r\nimport { InputElementEditorComponent } from '../input-element-editor/input-element-editor.component';\r\nimport { FormsStoreService } from '../../../forms/store/forms-store.service';\r\n\r\nimport { Observable, take, tap } from 'rxjs';\r\nimport { DefaultInputConfig } from 'ngx-t-forms-types';\r\n\r\n@Component({\r\n selector: 'lib-input-editor',\r\n imports: [\r\n AsyncPipe,\r\n MatCardModule,\r\n MatButtonModule,\r\n MatIconModule,\r\n MatDividerModule,\r\n MatToolbarModule,\r\n DragDropModule,\r\n DefaultElementComponent,\r\n InputElementEditorComponent,\r\n ],\r\n templateUrl: './input-editor.component.html',\r\n styleUrl: './input-editor.component.scss',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class InputEditorComponent {\r\n readonly #store = inject(FormsStoreService);\r\n\r\n protected readonly defaultInputs = DefaultInputConfig;\r\n protected readonly inputInEdit$ = this.#store.formBuilderSelectors.inputInEdit$;\r\n protected readonly defaultInputInEdit$ = this.#store.formBuilderSelectors.defaultInputInEdit$;\r\n\r\n protected readonly saveInput = (): void => {\r\n this.inputInEdit$\r\n .pipe(\r\n take(1),\r\n tap((inputVal) => {\r\n if (!inputVal) return;\r\n this.#store.actionsFormBuilder.saveInput(inputVal.id);\r\n }),\r\n )\r\n .subscribe();\r\n };\r\n\r\n protected readonly closeEditor = (): void => {\r\n this.#store.actions.setInputInEditId({ inputInEdit: null });\r\n };\r\n\r\n protected get validationErrors$(): Observable<{ key: string; message: string }[] | null> {\r\n return this.#store.formBuilderSelectors.inputInEditValidationErrors$;\r\n }\r\n}\r\n","<mat-card class=\"element-editor\" appearance=\"outlined\">\n <header class=\"ee-header\">\n <div class=\"ee-header-icon\" aria-hidden=\"true\">\n <mat-icon>tune</mat-icon>\n </div>\n <div class=\"ee-header-text\">\n <h2 class=\"ee-title\">\n {{\n !!(inputInEdit$|async)?.element\n ? \"Edit \" + (inputInEdit$|async)?.label + \" element\"\n : \"Setup Form Element\"\n }}\n </h2>\n <p class=\"ee-subtitle\">\n {{\n !!(inputInEdit$|async)?.element\n ? \"Configure the element below\"\n : \"Form elements are the components making up a form section. Their type is defined by behaviour and use case — for example, a date range picker is well suited to determining duration.\"\n }}\n </p>\n </div>\n <button mat-icon-button cdkDragHandle class=\"ee-drag\" aria-label=\"Drag to reposition\">\n <mat-icon>drag_indicator</mat-icon>\n </button>\n </header>\n\n <div class=\"ee-content\">\n @if(!!((inputInEdit$|async))?.element){\n <lib-input-element-editor></lib-input-element-editor>\n }@else{\n <lib-default-element></lib-default-element>\n }\n </div>\n\n <footer class=\"ee-actions\">\n <button (click)=\"closeEditor()\" mat-button class=\"ee-close\">Close</button>\n <span class=\"spacer\"></span>\n @if (!((inputInEdit$|async))?.id) {\n <button mat-flat-button (click)=\"saveInput()\" [disabled]=\"((validationErrors$|async)||[]).length>0\"\n color=\"primary\" class=\"ee-save\">Save new input</button>\n }\n </footer>\n</mat-card>\n"],"names":["i1","i2","i5","i3","i4"],"mappings":";;;;;;;;;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@
1
- import * as i0 from '@angular/core';
2
- import { output, ChangeDetectionStrategy, Component, Optional, Self, Input } from '@angular/core';
3
- import { MatFormFieldControl } from '@angular/material/form-field';
4
- import { Subject } from 'rxjs';
5
- import { o as DataTreeComponent } from './ngx-t-forms-ngx-t-forms-BefvSS-p.mjs';
6
- import { CommonModule } from '@angular/common';
7
- import * as i1 from '@angular/forms';
8
-
9
- class MapMatOptionsKeys {
10
- static { this.nextId = 0; }
11
- set mapToData(value) {
12
- this._mapToData = value;
13
- console.error('mapToData changed', value);
14
- }
15
- ;
16
- get mapToData() {
17
- return this._mapToData;
18
- }
19
- constructor(ngControl, _elementRef) {
20
- this.ngControl = ngControl;
21
- this._elementRef = _elementRef;
22
- // -- MatFormFieldControl Boilerplate --
23
- this.stateChanges = new Subject();
24
- this.id = `lib-map-mat-options-keys-${MapMatOptionsKeys.nextId++}`;
25
- this.placeholder = '';
26
- this.focused = false;
27
- this.touched = false;
28
- this.required = false;
29
- // -- Inputs --
30
- this.disabled = false;
31
- this.errors = [];
32
- this.value = null;
33
- this.formInputs = [];
34
- // -- Outputs --
35
- this.valueChanged = output();
36
- this.onTouched = () => { };
37
- if (this.ngControl) {
38
- this.ngControl.valueAccessor = this;
39
- }
40
- }
41
- ngOnDestroy() {
42
- this.stateChanges.complete();
43
- }
44
- // -- Getters for Template --
45
- get empty() {
46
- if (this.value == null)
47
- return true;
48
- if (typeof this.value === 'string')
49
- return this.value === '';
50
- return Array.isArray(this.value) && this.value.length === 0;
51
- }
52
- get shouldLabelFloat() {
53
- return this.focused || !this.empty;
54
- }
55
- get errorState() {
56
- const hasError = !!this.ngControl?.control?.errors ||
57
- ((this.errors?.length ?? 0) > 0 && this.touched);
58
- return (!this.value && !!this.required) || hasError;
59
- }
60
- // -- MatFormFieldControl Methods --
61
- setDescribedByIds(ids) {
62
- if (this._elementRef?.nativeElement) {
63
- const controlElement = this._elementRef.nativeElement.querySelector('.lib-map-mat-options-keys');
64
- if (controlElement) {
65
- controlElement.setAttribute('aria-describedby', ids.join(' '));
66
- }
67
- }
68
- }
69
- onContainerClick(_event) {
70
- this.markAsTouched();
71
- this.stateChanges.next();
72
- }
73
- markAsTouched() {
74
- if (!this.touched) {
75
- this.onTouched();
76
- this.touched = true;
77
- }
78
- }
79
- // -- ControlValueAccessor --
80
- writeValue(value) {
81
- this.value = value;
82
- this.stateChanges.next();
83
- }
84
- registerOnChange(_fn) {
85
- // Handled by parent or ngControl usually, but good practice to have stub
86
- }
87
- registerOnTouched(fn) {
88
- this.onTouched = fn;
89
- }
90
- pathChanged(path) {
91
- if (!Array.isArray(path) && typeof path !== 'string')
92
- return;
93
- this.value = path;
94
- this.valueChanged.emit(path);
95
- this.stateChanges.next();
96
- }
97
- static { this.ɵfac = function MapMatOptionsKeys_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MapMatOptionsKeys)(i0.ɵɵdirectiveInject(i1.NgControl, 10), i0.ɵɵdirectiveInject(i0.ElementRef)); }; }
98
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MapMatOptionsKeys, selectors: [["lib-map-mat-options-keys"]], hostVars: 1, hostBindings: function MapMatOptionsKeys_HostBindings(rf, ctx) { if (rf & 2) {
99
- i0.ɵɵdomProperty("id", ctx.id);
100
- } }, inputs: { disabled: "disabled", errors: "errors", value: "value", formInputs: "formInputs", mapToData: "mapToData" }, outputs: { valueChanged: "valueChanged" }, features: [i0.ɵɵProvidersFeature([{ provide: MatFormFieldControl, useExisting: MapMatOptionsKeys }])], decls: 2, vars: 3, consts: [[1, "lib-map-mat-options-keys"], [3, "pathChanged", "data", "value", "formInputs"]], template: function MapMatOptionsKeys_Template(rf, ctx) { if (rf & 1) {
101
- i0.ɵɵelementStart(0, "div", 0)(1, "lib-data-tree", 1);
102
- i0.ɵɵlistener("pathChanged", function MapMatOptionsKeys_Template_lib_data_tree_pathChanged_1_listener($event) { return ctx.pathChanged($event); });
103
- i0.ɵɵelementEnd()();
104
- } if (rf & 2) {
105
- i0.ɵɵadvance();
106
- i0.ɵɵproperty("data", ctx.mapToData)("value", ctx.value || "")("formInputs", ctx.formInputs);
107
- } }, dependencies: [DataTreeComponent, CommonModule], styles: [".suggestion-container[_ngcontent-%COMP%]{display:flex;width:100%;gap:.875rem}.docType[_ngcontent-%COMP%]{width:min-content;margin-block:auto}mat-card[_ngcontent-%COMP%]{margin-bottom:.5rem;background:var(--lib-forms-surface-container)}"], changeDetection: 0 }); }
108
- }
109
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MapMatOptionsKeys, [{
110
- type: Component,
111
- args: [{ selector: 'lib-map-mat-options-keys', imports: [DataTreeComponent, CommonModule], providers: [{ provide: MatFormFieldControl, useExisting: MapMatOptionsKeys }], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, host: {
112
- '[id]': 'id',
113
- }, template: "<div class=\"lib-map-mat-options-keys\">\r\n <lib-data-tree\r\n [data]=\"mapToData\"\r\n [value]=\"value || ''\"\r\n [formInputs]=\"formInputs\"\r\n (pathChanged)=\"pathChanged($event)\">\r\n </lib-data-tree>\r\n</div>\r\n", styles: [".suggestion-container{display:flex;width:100%;gap:.875rem}.docType{width:min-content;margin-block:auto}mat-card{margin-bottom:.5rem;background:var(--lib-forms-surface-container)}\n"] }]
114
- }], () => [{ type: i1.NgControl, decorators: [{
115
- type: Optional
116
- }, {
117
- type: Self
118
- }] }, { type: i0.ElementRef }], { disabled: [{
119
- type: Input
120
- }], errors: [{
121
- type: Input
122
- }], value: [{
123
- type: Input
124
- }], formInputs: [{
125
- type: Input
126
- }], mapToData: [{
127
- type: Input
128
- }], valueChanged: [{ type: i0.Output, args: ["valueChanged"] }] }); })();
129
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MapMatOptionsKeys, { className: "MapMatOptionsKeys", filePath: "lib/components/t-dynamic-data-edit/elements/map-mat-options-keys/map-mat-options-keys.ts", lineNumber: 31 }); })();
130
-
131
- export { MapMatOptionsKeys };
132
- //# sourceMappingURL=ngx-t-forms-map-mat-options-keys-eSc99wdA.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ngx-t-forms-map-mat-options-keys-eSc99wdA.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/map-mat-options-keys/map-mat-options-keys.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/map-mat-options-keys/map-mat-options-keys.html"],"sourcesContent":["import {\r\n ChangeDetectionStrategy,\r\n Component,\r\n ElementRef,\r\n Input,\r\n OnDestroy,\r\n Optional,\r\n Self,\r\n output,\r\n} from '@angular/core';\r\nimport { NgControl } from '@angular/forms';\r\nimport { MatFormFieldControl } from '@angular/material/form-field';\r\nimport { Subject } from 'rxjs';\r\nimport { IConfigElementError } from '../../t-dynamic-data-edit.component';\r\nimport { FormColumnInputs, TreeNode } from 'ngx-t-forms-types';\r\nimport { DataTreeComponent } from '../api-value-access-rules/elements/data-tree/data-tree.component';\r\nimport { CommonModule } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'lib-map-mat-options-keys',\r\n imports: [DataTreeComponent,CommonModule],\r\n providers: [{ provide: MatFormFieldControl, useExisting: MapMatOptionsKeys }],\r\n standalone: true,\r\n templateUrl: './map-mat-options-keys.html',\r\n styleUrl: './map-mat-options-keys.css',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n host: {\r\n '[id]': 'id',\r\n },\r\n})\r\nexport class MapMatOptionsKeys implements MatFormFieldControl<TreeNode[] | string | null>, OnDestroy {\r\n static nextId = 0;\r\n private _mapToData: unknown;\r\n // -- MatFormFieldControl Boilerplate --\r\n stateChanges = new Subject<void>();\r\n id = `lib-map-mat-options-keys-${MapMatOptionsKeys.nextId++}`;\r\n placeholder = '';\r\n focused = false;\r\n touched = false;\r\n controlType?: string | undefined;\r\n autofilled?: boolean | undefined;\r\n userAriaDescribedBy?: string | undefined;\r\n disableAutomaticLabeling?: boolean | undefined;\r\n required = false;\r\n\r\n // -- Inputs --\r\n @Input() disabled = false;\r\n @Input() errors: IConfigElementError[] | undefined = [];\r\n @Input() value: TreeNode[] | string | null = null;\r\n @Input() formInputs: FormColumnInputs[] = [];\r\n @Input() set mapToData(value: unknown){\r\n this._mapToData = value;\r\n console.error('mapToData changed', value);\r\n };\r\n get mapToData(): unknown {\r\n return this._mapToData;\r\n }\r\n\r\n // -- Outputs --\r\n readonly valueChanged = output<TreeNode[] | string | null>();\r\n\r\n constructor(\r\n @Optional() @Self() public ngControl: NgControl,\r\n private _elementRef: ElementRef<HTMLElement>\r\n ) {\r\n if (this.ngControl) {\r\n this.ngControl.valueAccessor = this;\r\n }\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.stateChanges.complete();\r\n }\r\n\r\n // -- Getters for Template --\r\n get empty(): boolean {\r\n if (this.value == null) return true;\r\n if (typeof this.value === 'string') return this.value === '';\r\n return Array.isArray(this.value) && this.value.length === 0;\r\n }\r\n\r\n get shouldLabelFloat(): boolean {\r\n return this.focused || !this.empty;\r\n }\r\n\r\n get errorState(): boolean {\r\n const hasError =\r\n !!this.ngControl?.control?.errors ||\r\n ((this.errors?.length ?? 0) > 0 && this.touched);\r\n return (!this.value && !!this.required) || hasError;\r\n }\r\n\r\n // -- MatFormFieldControl Methods --\r\n setDescribedByIds(ids: string[]): void {\r\n if (this._elementRef?.nativeElement) {\r\n const controlElement = this._elementRef.nativeElement.querySelector(\r\n '.lib-map-mat-options-keys'\r\n );\r\n if (controlElement) {\r\n controlElement.setAttribute('aria-describedby', ids.join(' '));\r\n }\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 onTouched = (): void => { };\r\n\r\n markAsTouched(): void {\r\n if (!this.touched) {\r\n this.onTouched();\r\n this.touched = true;\r\n }\r\n }\r\n\r\n // -- ControlValueAccessor --\r\n writeValue(value: TreeNode[] | string | null): void {\r\n this.value = value;\r\n this.stateChanges.next();\r\n }\r\n\r\n registerOnChange(_fn: (value: TreeNode[] | string | null) => void): void {\r\n // Handled by parent or ngControl usually, but good practice to have stub\r\n }\r\n\r\n registerOnTouched(fn: () => void): void {\r\n this.onTouched = fn;\r\n }\r\n\r\n pathChanged(path: TreeNode[] | string): void {\r\n if (!Array.isArray(path) && typeof path !== 'string') return;\r\n this.value = path;\r\n this.valueChanged.emit(path);\r\n this.stateChanges.next();\r\n }\r\n\r\n \r\n}\r\n","<div class=\"lib-map-mat-options-keys\">\r\n <lib-data-tree\r\n [data]=\"mapToData\"\r\n [value]=\"value || ''\"\r\n [formInputs]=\"formInputs\"\r\n (pathChanged)=\"pathChanged($event)\">\r\n </lib-data-tree>\r\n</div>\r\n"],"names":[],"mappings":";;;;;;;;MA8Ba,iBAAiB,CAAA;aACrB,IAAA,CAAA,MAAM,GAAG,CAAH,CAAK;IAmBlB,IAAa,SAAS,CAAC,KAAc,EAAA;AACnC,QAAA,IAAI,CAAC,UAAU,GAAG,KAAK;AACvB,QAAA,OAAO,CAAC,KAAK,CAAC,mBAAmB,EAAE,KAAK,CAAC;IAC3C;;AACA,IAAA,IAAI,SAAS,GAAA;QACX,OAAO,IAAI,CAAC,UAAU;IACxB;IAKA,WAAA,CAC6B,SAAoB,EACvC,WAAoC,EAAA;QADjB,IAAA,CAAA,SAAS,GAAT,SAAS;QAC5B,IAAA,CAAA,WAAW,GAAX,WAAW;;AA7BrB,QAAA,IAAA,CAAA,YAAY,GAAG,IAAI,OAAO,EAAQ;AAClC,QAAA,IAAA,CAAA,EAAE,GAAG,CAAA,yBAAA,EAA4B,iBAAiB,CAAC,MAAM,EAAE,EAAE;QAC7D,IAAA,CAAA,WAAW,GAAG,EAAE;QAChB,IAAA,CAAA,OAAO,GAAG,KAAK;QACf,IAAA,CAAA,OAAO,GAAG,KAAK;QAKf,IAAA,CAAA,QAAQ,GAAG,KAAK;;QAGP,IAAA,CAAA,QAAQ,GAAG,KAAK;QAChB,IAAA,CAAA,MAAM,GAA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