ngx-t-forms 2.0.35 → 2.0.36

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 (188) hide show
  1. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-hDWV_H2E.mjs → ngx-t-forms-auto-complete-input-element.component-VektEtrf.mjs} +2 -2
  2. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-hDWV_H2E.mjs.map → ngx-t-forms-auto-complete-input-element.component-VektEtrf.mjs.map} +1 -1
  3. package/fesm2022/ngx-t-forms-auto-complete-input-element.component-ookGrpnN.mjs +261 -0
  4. package/fesm2022/ngx-t-forms-auto-complete-input-element.component-ookGrpnN.mjs.map +1 -0
  5. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-BDWHCfgN.mjs → ngx-t-forms-basic-input-input-element.component-C8D6DN41.mjs} +3 -3
  6. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-BDWHCfgN.mjs.map → ngx-t-forms-basic-input-input-element.component-C8D6DN41.mjs.map} +1 -1
  7. package/fesm2022/ngx-t-forms-basic-input-input-element.component-CQVuW8z1.mjs +225 -0
  8. package/fesm2022/ngx-t-forms-basic-input-input-element.component-CQVuW8z1.mjs.map +1 -0
  9. package/fesm2022/ngx-t-forms-calculated-field-rules.component-8EgwXTN1.mjs +1011 -0
  10. package/fesm2022/ngx-t-forms-calculated-field-rules.component-8EgwXTN1.mjs.map +1 -0
  11. package/fesm2022/{ngx-t-forms-calculated-field-rules.component-C_jwUGqr.mjs → ngx-t-forms-calculated-field-rules.component-B_3IbQjp.mjs} +2 -2
  12. package/fesm2022/{ngx-t-forms-calculated-field-rules.component-C_jwUGqr.mjs.map → ngx-t-forms-calculated-field-rules.component-B_3IbQjp.mjs.map} +1 -1
  13. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-B95VIBRi.mjs +136 -0
  14. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-B95VIBRi.mjs.map +1 -0
  15. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-BIoML988.mjs → ngx-t-forms-chip-options-creator-editor.component-uTCOa48g.mjs} +2 -2
  16. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-BIoML988.mjs.map → ngx-t-forms-chip-options-creator-editor.component-uTCOa48g.mjs.map} +1 -1
  17. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-D2tkeGrw.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-BX3zJs-A.mjs} +2 -2
  18. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-D2tkeGrw.mjs.map → ngx-t-forms-config-mscoa-additional-inputs.component-BX3zJs-A.mjs.map} +1 -1
  19. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dm16WA5Y.mjs +253 -0
  20. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dm16WA5Y.mjs.map +1 -0
  21. package/fesm2022/ngx-t-forms-data-source-picker.component-Dij1l4-7.mjs +419 -0
  22. package/fesm2022/ngx-t-forms-data-source-picker.component-Dij1l4-7.mjs.map +1 -0
  23. package/fesm2022/{ngx-t-forms-data-source-picker.component-DHNyMfu5.mjs → ngx-t-forms-data-source-picker.component-z0l9WEw7.mjs} +6 -6
  24. package/fesm2022/{ngx-t-forms-data-source-picker.component-DHNyMfu5.mjs.map → ngx-t-forms-data-source-picker.component-z0l9WEw7.mjs.map} +1 -1
  25. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-DJnHqSfk.mjs → ngx-t-forms-date-picker-input-element.component-C9I8KX12.mjs} +2 -2
  26. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-DJnHqSfk.mjs.map → ngx-t-forms-date-picker-input-element.component-C9I8KX12.mjs.map} +1 -1
  27. package/fesm2022/ngx-t-forms-date-picker-input-element.component-D9BOhV6g.mjs +231 -0
  28. package/fesm2022/ngx-t-forms-date-picker-input-element.component-D9BOhV6g.mjs.map +1 -0
  29. package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-Iw5Sou7u.mjs → ngx-t-forms-date-range-picker-input-element.component-B3Z47mrO.mjs} +2 -2
  30. package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-Iw5Sou7u.mjs.map → ngx-t-forms-date-range-picker-input-element.component-B3Z47mrO.mjs.map} +1 -1
  31. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-BiXubnsN.mjs +333 -0
  32. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-BiXubnsN.mjs.map +1 -0
  33. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-C5T_DK6w.mjs +543 -0
  34. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-C5T_DK6w.mjs.map +1 -0
  35. package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-zM7mpZxt.mjs → ngx-t-forms-document-list-label-config-editor.component-PW2XiPiH.mjs} +3 -3
  36. package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-zM7mpZxt.mjs.map → ngx-t-forms-document-list-label-config-editor.component-PW2XiPiH.mjs.map} +1 -1
  37. package/fesm2022/ngx-t-forms-document-picker.component-B47pQxMF.mjs +1217 -0
  38. package/fesm2022/ngx-t-forms-document-picker.component-B47pQxMF.mjs.map +1 -0
  39. package/fesm2022/{ngx-t-forms-document-picker.component-j7-XiDnt.mjs → ngx-t-forms-document-picker.component-BNQ1a96s.mjs} +2 -2
  40. package/fesm2022/{ngx-t-forms-document-picker.component-j7-XiDnt.mjs.map → ngx-t-forms-document-picker.component-BNQ1a96s.mjs.map} +1 -1
  41. package/fesm2022/{ngx-t-forms-editor-input-element.component-CjY8h93n.mjs → ngx-t-forms-editor-input-element.component-C12fnCTM.mjs} +3 -3
  42. package/fesm2022/{ngx-t-forms-editor-input-element.component-CjY8h93n.mjs.map → ngx-t-forms-editor-input-element.component-C12fnCTM.mjs.map} +1 -1
  43. package/fesm2022/ngx-t-forms-editor-input-element.component-DYytkGYD.mjs +447 -0
  44. package/fesm2022/ngx-t-forms-editor-input-element.component-DYytkGYD.mjs.map +1 -0
  45. package/fesm2022/ngx-t-forms-editor-js-input.component-BQSF3142.mjs +251 -0
  46. package/fesm2022/ngx-t-forms-editor-js-input.component-BQSF3142.mjs.map +1 -0
  47. package/fesm2022/{ngx-t-forms-editor-js-input.component-CB8iaZ8o.mjs → ngx-t-forms-editor-js-input.component-cxob42pE.mjs} +2 -2
  48. package/fesm2022/{ngx-t-forms-editor-js-input.component-CB8iaZ8o.mjs.map → ngx-t-forms-editor-js-input.component-cxob42pE.mjs.map} +1 -1
  49. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-C8a1gMMz.mjs → ngx-t-forms-file-upload-input-element.component-Bgi-chdw.mjs} +2 -2
  50. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-C8a1gMMz.mjs.map → ngx-t-forms-file-upload-input-element.component-Bgi-chdw.mjs.map} +1 -1
  51. package/fesm2022/ngx-t-forms-file-upload-input-element.component-CI4onrtp.mjs +447 -0
  52. package/fesm2022/ngx-t-forms-file-upload-input-element.component-CI4onrtp.mjs.map +1 -0
  53. package/fesm2022/ngx-t-forms-form-input-selector.component-BysF2WY-.mjs +163 -0
  54. package/fesm2022/ngx-t-forms-form-input-selector.component-BysF2WY-.mjs.map +1 -0
  55. package/fesm2022/{ngx-t-forms-form-input-selector.component-vPJ9YksN.mjs → ngx-t-forms-form-input-selector.component-xIalL_cs.mjs} +2 -2
  56. package/fesm2022/{ngx-t-forms-form-input-selector.component-vPJ9YksN.mjs.map → ngx-t-forms-form-input-selector.component-xIalL_cs.mjs.map} +1 -1
  57. package/fesm2022/{ngx-t-forms-form-json-view.component-DxvnpZdR.mjs → ngx-t-forms-form-json-view.component-CU1d8rGd.mjs} +2 -2
  58. package/fesm2022/{ngx-t-forms-form-json-view.component-DxvnpZdR.mjs.map → ngx-t-forms-form-json-view.component-CU1d8rGd.mjs.map} +1 -1
  59. package/fesm2022/ngx-t-forms-form-json-view.component-DpU3ZTiS.mjs +28 -0
  60. package/fesm2022/ngx-t-forms-form-json-view.component-DpU3ZTiS.mjs.map +1 -0
  61. package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs +291 -0
  62. package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs.map +1 -0
  63. package/fesm2022/ngx-t-forms-form-section-stepper.component-DqShhIBK.mjs +936 -0
  64. package/fesm2022/ngx-t-forms-form-section-stepper.component-DqShhIBK.mjs.map +1 -0
  65. package/fesm2022/{ngx-t-forms-form-section-stepper.component-_cQl_olU.mjs → ngx-t-forms-form-section-stepper.component-tGbPKHM6.mjs} +4 -4
  66. package/fesm2022/{ngx-t-forms-form-section-stepper.component-_cQl_olU.mjs.map → ngx-t-forms-form-section-stepper.component-tGbPKHM6.mjs.map} +1 -1
  67. package/fesm2022/ngx-t-forms-forms-builder-menu.component-BsgtMZFM.mjs +816 -0
  68. package/fesm2022/ngx-t-forms-forms-builder-menu.component-BsgtMZFM.mjs.map +1 -0
  69. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-BaBBPuXH.mjs → ngx-t-forms-forms-builder-menu.component-hK9C4vAa.mjs} +4 -4
  70. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-BaBBPuXH.mjs.map → ngx-t-forms-forms-builder-menu.component-hK9C4vAa.mjs.map} +1 -1
  71. package/fesm2022/{ngx-t-forms-geo-location.component-BPqEkYIg.mjs → ngx-t-forms-geo-location.component-ChmvJCGu.mjs} +2 -2
  72. package/fesm2022/{ngx-t-forms-geo-location.component-BPqEkYIg.mjs.map → ngx-t-forms-geo-location.component-ChmvJCGu.mjs.map} +1 -1
  73. package/fesm2022/ngx-t-forms-geo-location.component-DfmFok8a.mjs +329 -0
  74. package/fesm2022/ngx-t-forms-geo-location.component-DfmFok8a.mjs.map +1 -0
  75. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-CZojZh_T.mjs → ngx-t-forms-image-capture-input-element.component-BpA_P017.mjs} +2 -2
  76. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-CZojZh_T.mjs.map → ngx-t-forms-image-capture-input-element.component-BpA_P017.mjs.map} +1 -1
  77. package/fesm2022/ngx-t-forms-image-capture-input-element.component-DYjnaWYE.mjs +360 -0
  78. package/fesm2022/ngx-t-forms-image-capture-input-element.component-DYjnaWYE.mjs.map +1 -0
  79. package/fesm2022/{ngx-t-forms-index-BI5sb1Lx.mjs → ngx-t-forms-index-D-7ZX0w7.mjs} +2 -2
  80. package/fesm2022/ngx-t-forms-index-D-7ZX0w7.mjs.map +1 -0
  81. package/fesm2022/ngx-t-forms-index-DHloq32-.mjs +2 -0
  82. package/fesm2022/ngx-t-forms-index-DHloq32-.mjs.map +1 -0
  83. package/fesm2022/ngx-t-forms-input-custom.component-Cv6jfrPf.mjs +128 -0
  84. package/fesm2022/ngx-t-forms-input-custom.component-Cv6jfrPf.mjs.map +1 -0
  85. package/fesm2022/{ngx-t-forms-input-custom.component-C-gshpIM.mjs → ngx-t-forms-input-custom.component-pUshbxSM.mjs} +2 -2
  86. package/fesm2022/{ngx-t-forms-input-custom.component-C-gshpIM.mjs.map → ngx-t-forms-input-custom.component-pUshbxSM.mjs.map} +1 -1
  87. package/fesm2022/ngx-t-forms-input-editor.component-BKV6ZJx9.mjs +512 -0
  88. package/fesm2022/ngx-t-forms-input-editor.component-BKV6ZJx9.mjs.map +1 -0
  89. package/fesm2022/{ngx-t-forms-input-editor.component-CfaTar-x.mjs → ngx-t-forms-input-editor.component-CxXMETLl.mjs} +3 -3
  90. package/fesm2022/{ngx-t-forms-input-editor.component-CfaTar-x.mjs.map → ngx-t-forms-input-editor.component-CxXMETLl.mjs.map} +1 -1
  91. package/fesm2022/{ngx-t-forms-map-mat-options-keys-B8ubWvEz.mjs → ngx-t-forms-map-mat-options-keys-BbfC5vYI.mjs} +2 -2
  92. package/fesm2022/{ngx-t-forms-map-mat-options-keys-B8ubWvEz.mjs.map → ngx-t-forms-map-mat-options-keys-BbfC5vYI.mjs.map} +1 -1
  93. package/fesm2022/ngx-t-forms-map-mat-options-keys-epWo0lEj.mjs +132 -0
  94. package/fesm2022/ngx-t-forms-map-mat-options-keys-epWo0lEj.mjs.map +1 -0
  95. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-Bqjjgtyf.mjs +109 -0
  96. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-Bqjjgtyf.mjs.map +1 -0
  97. package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-CT3wnaz8.mjs → ngx-t-forms-mat-chip-list-editor.component-CuOsHNXe.mjs} +2 -2
  98. package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-CT3wnaz8.mjs.map → ngx-t-forms-mat-chip-list-editor.component-CuOsHNXe.mjs.map} +1 -1
  99. package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs +241 -0
  100. package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs.map +1 -0
  101. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs +180 -0
  102. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs.map +1 -0
  103. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CSQ_Qtef.mjs → ngx-t-forms-missing-form-configs.component-CDIajZxP.mjs} +2 -2
  104. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CSQ_Qtef.mjs.map → ngx-t-forms-missing-form-configs.component-CDIajZxP.mjs.map} +1 -1
  105. package/fesm2022/ngx-t-forms-missing-form-configs.component-DRAVdGfc.mjs +114 -0
  106. package/fesm2022/ngx-t-forms-missing-form-configs.component-DRAVdGfc.mjs.map +1 -0
  107. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-C9b-pNLr.mjs +69 -0
  108. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-C9b-pNLr.mjs.map +1 -0
  109. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-Ovz5PFIe.mjs → ngx-t-forms-mscoa-chart-toolbar.component-D1ASX1mt.mjs} +2 -2
  110. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-Ovz5PFIe.mjs.map → ngx-t-forms-mscoa-chart-toolbar.component-D1ASX1mt.mjs.map} +1 -1
  111. package/fesm2022/ngx-t-forms-mscoa-error-display.component-DzFibbuY.mjs +200 -0
  112. package/fesm2022/ngx-t-forms-mscoa-error-display.component-DzFibbuY.mjs.map +1 -0
  113. package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-ByR5fNu5.mjs → ngx-t-forms-mscoa-segment-config.component-CjuxTqfX.mjs} +2 -2
  114. package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-ByR5fNu5.mjs.map → ngx-t-forms-mscoa-segment-config.component-CjuxTqfX.mjs.map} +1 -1
  115. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-D9KrXNS6.mjs +850 -0
  116. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-D9KrXNS6.mjs.map +1 -0
  117. package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-DV93x0Rr.mjs +107 -0
  118. package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-DV93x0Rr.mjs.map +1 -0
  119. package/fesm2022/{ngx-t-forms-multiple-input-input-element.component-DtXYH3Gb.mjs → ngx-t-forms-multiple-input-input-element.component-BA61uQ2q.mjs} +4 -4
  120. package/fesm2022/{ngx-t-forms-multiple-input-input-element.component-DtXYH3Gb.mjs.map → ngx-t-forms-multiple-input-input-element.component-BA61uQ2q.mjs.map} +1 -1
  121. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-BxQYrUJL.mjs +1665 -0
  122. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-BxQYrUJL.mjs.map +1 -0
  123. package/fesm2022/{ngx-t-forms-ngx-t-forms-CW8jN83w.mjs → ngx-t-forms-ngx-t-forms-CJGAj18J.mjs} +919 -129
  124. package/fesm2022/ngx-t-forms-ngx-t-forms-CJGAj18J.mjs.map +1 -0
  125. package/fesm2022/ngx-t-forms-ngx-t-forms-D7kDvkTZ.mjs +27352 -0
  126. package/fesm2022/ngx-t-forms-ngx-t-forms-D7kDvkTZ.mjs.map +1 -0
  127. package/fesm2022/ngx-t-forms-paginated-selection-table-DeY5vQti.mjs +1024 -0
  128. package/fesm2022/ngx-t-forms-paginated-selection-table-DeY5vQti.mjs.map +1 -0
  129. package/fesm2022/{ngx-t-forms-paginated-selection-table-CWepPKmn.mjs → ngx-t-forms-paginated-selection-table-yvhqQxPV.mjs} +2 -2
  130. package/fesm2022/{ngx-t-forms-paginated-selection-table-CWepPKmn.mjs.map → ngx-t-forms-paginated-selection-table-yvhqQxPV.mjs.map} +1 -1
  131. package/fesm2022/ngx-t-forms-payload-template-editor.component-BzY-kX6W.mjs +234 -0
  132. package/fesm2022/ngx-t-forms-payload-template-editor.component-BzY-kX6W.mjs.map +1 -0
  133. package/fesm2022/ngx-t-forms-payload-template-editor.component-sqY3bYiZ.mjs +203 -0
  134. package/fesm2022/ngx-t-forms-payload-template-editor.component-sqY3bYiZ.mjs.map +1 -0
  135. package/fesm2022/{ngx-t-forms-pipeline-generator.component-1EuDUOtI.mjs → ngx-t-forms-pipeline-generator.component-COvr1j_v.mjs} +3 -3
  136. package/fesm2022/{ngx-t-forms-pipeline-generator.component-1EuDUOtI.mjs.map → ngx-t-forms-pipeline-generator.component-COvr1j_v.mjs.map} +1 -1
  137. package/fesm2022/ngx-t-forms-pipeline-generator.component-CcHgQ-MT.mjs +1126 -0
  138. package/fesm2022/ngx-t-forms-pipeline-generator.component-CcHgQ-MT.mjs.map +1 -0
  139. package/fesm2022/{ngx-t-forms-record-list-manager.component-C-qKvSVR.mjs → ngx-t-forms-record-list-manager.component-CY4GnAOb.mjs} +2 -2
  140. package/fesm2022/{ngx-t-forms-record-list-manager.component-C-qKvSVR.mjs.map → ngx-t-forms-record-list-manager.component-CY4GnAOb.mjs.map} +1 -1
  141. package/fesm2022/ngx-t-forms-record-list-manager.component-DuE2OdC4.mjs +545 -0
  142. package/fesm2022/ngx-t-forms-record-list-manager.component-DuE2OdC4.mjs.map +1 -0
  143. package/fesm2022/ngx-t-forms-required-inputs.component-BWKUC8zQ.mjs +451 -0
  144. package/fesm2022/ngx-t-forms-required-inputs.component-BWKUC8zQ.mjs.map +1 -0
  145. package/fesm2022/{ngx-t-forms-required-inputs.component-D5M9c-1i.mjs → ngx-t-forms-required-inputs.component-ByBeNLXu.mjs} +2 -2
  146. package/fesm2022/{ngx-t-forms-required-inputs.component-D5M9c-1i.mjs.map → ngx-t-forms-required-inputs.component-ByBeNLXu.mjs.map} +1 -1
  147. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BEqnJqZG.mjs +625 -0
  148. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BEqnJqZG.mjs.map +1 -0
  149. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-CCz3c0X_.mjs → ngx-t-forms-rest-api-call-setup.component-CkLePXoO.mjs} +59 -13
  150. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-CkLePXoO.mjs.map +1 -0
  151. package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs +72 -0
  152. package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs.map +1 -0
  153. package/fesm2022/ngx-t-forms-section-report.component-CQR27H3a.mjs +248 -0
  154. package/fesm2022/ngx-t-forms-section-report.component-CQR27H3a.mjs.map +1 -0
  155. package/fesm2022/{ngx-t-forms-section-report.component-BypN3AWY.mjs → ngx-t-forms-section-report.component-mUpSxbaB.mjs} +2 -2
  156. package/fesm2022/{ngx-t-forms-section-report.component-BypN3AWY.mjs.map → ngx-t-forms-section-report.component-mUpSxbaB.mjs.map} +1 -1
  157. package/fesm2022/ngx-t-forms-select-input-element.component-CLs5UkmC.mjs +408 -0
  158. package/fesm2022/ngx-t-forms-select-input-element.component-CLs5UkmC.mjs.map +1 -0
  159. package/fesm2022/{ngx-t-forms-select-input-element.component-DNBZVxhD.mjs → ngx-t-forms-select-input-element.component-c7IgHdXA.mjs} +2 -2
  160. package/fesm2022/{ngx-t-forms-select-input-element.component-DNBZVxhD.mjs.map → ngx-t-forms-select-input-element.component-c7IgHdXA.mjs.map} +1 -1
  161. package/fesm2022/ngx-t-forms-selection-options-editor.component-DiegTjWX.mjs +275 -0
  162. package/fesm2022/ngx-t-forms-selection-options-editor.component-DiegTjWX.mjs.map +1 -0
  163. package/fesm2022/{ngx-t-forms-selection-options-editor.component-BSmmQQo3.mjs → ngx-t-forms-selection-options-editor.component-WfuGdtvK.mjs} +2 -2
  164. package/fesm2022/{ngx-t-forms-selection-options-editor.component-BSmmQQo3.mjs.map → ngx-t-forms-selection-options-editor.component-WfuGdtvK.mjs.map} +1 -1
  165. package/fesm2022/ngx-t-forms-t-workflow-picker.component-CQPrr7Cz.mjs +341 -0
  166. package/fesm2022/ngx-t-forms-t-workflow-picker.component-CQPrr7Cz.mjs.map +1 -0
  167. package/fesm2022/{ngx-t-forms-textarea-input-element.component-BEcNjLGC.mjs → ngx-t-forms-textarea-input-element.component-C7H84RGw.mjs} +2 -2
  168. package/fesm2022/{ngx-t-forms-textarea-input-element.component-BEcNjLGC.mjs.map → ngx-t-forms-textarea-input-element.component-C7H84RGw.mjs.map} +1 -1
  169. package/fesm2022/ngx-t-forms-textarea-input-element.component-Coxr1XD7.mjs +233 -0
  170. package/fesm2022/ngx-t-forms-textarea-input-element.component-Coxr1XD7.mjs.map +1 -0
  171. package/fesm2022/ngx-t-forms-toggle-input-element.component-BWnTeuHM.mjs +305 -0
  172. package/fesm2022/ngx-t-forms-toggle-input-element.component-BWnTeuHM.mjs.map +1 -0
  173. package/fesm2022/{ngx-t-forms-toggle-input-element.component-Cn_VOOEu.mjs → ngx-t-forms-toggle-input-element.component-Cgzg89Ug.mjs} +2 -2
  174. package/fesm2022/{ngx-t-forms-toggle-input-element.component-Cn_VOOEu.mjs.map → ngx-t-forms-toggle-input-element.component-Cgzg89Ug.mjs.map} +1 -1
  175. package/fesm2022/{ngx-t-forms-validators-config.component-DdKLxOr9.mjs → ngx-t-forms-validators-config.component-DgIVRSvF.mjs} +2 -2
  176. package/fesm2022/{ngx-t-forms-validators-config.component-DdKLxOr9.mjs.map → ngx-t-forms-validators-config.component-DgIVRSvF.mjs.map} +1 -1
  177. package/fesm2022/ngx-t-forms-validators-config.component-DjLB40z-.mjs +1105 -0
  178. package/fesm2022/ngx-t-forms-validators-config.component-DjLB40z-.mjs.map +1 -0
  179. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-DB4arTNG.mjs → ngx-t-forms-workflow-adjudication.component-CB6qBxgr.mjs} +3 -3
  180. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-DB4arTNG.mjs.map → ngx-t-forms-workflow-adjudication.component-CB6qBxgr.mjs.map} +1 -1
  181. package/fesm2022/ngx-t-forms-workflow-adjudication.component-_A3v5MxN.mjs +2923 -0
  182. package/fesm2022/ngx-t-forms-workflow-adjudication.component-_A3v5MxN.mjs.map +1 -0
  183. package/fesm2022/ngx-t-forms.mjs +1 -1
  184. package/package.json +2 -2
  185. package/styles/_json-editor-syntax.scss +16 -0
  186. package/fesm2022/ngx-t-forms-index-BI5sb1Lx.mjs.map +0 -1
  187. package/fesm2022/ngx-t-forms-ngx-t-forms-CW8jN83w.mjs.map +0 -1
  188. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-CCz3c0X_.mjs.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { InjectionToken, computed, runInInjectionContext, effect, untracked, linkedSignal, resource, inject, Injector, ApplicationRef, signal, Inject, Directive, Injectable, DestroyRef, makeEnvironmentProviders, Pipe, PLATFORM_ID, ChangeDetectionStrategy, Component, input, output, ViewEncapsulation, viewChild, NgZone, model, Optional, NgModule, ChangeDetectorRef, Input, Self, ElementRef } from '@angular/core';
3
3
  import { toSignal, toObservable, takeUntilDestroyed } from '@angular/core/rxjs-interop';
4
- import { validateForm, getElementEditorConfig, ElementEditorTypes, AllFormInputPrimaryKeys, DefaultInputConfig, SpecialElementKeys, validateFormColumnInputsWithRequired, ElementTypes, validateFormSlide, FormListSection, DataSources, formColumnInputsSchema, CalculationFunctions, InputTypes, WorkflowFunctionTypes, validateCalculatedFieldRules, FormSubmissionStatus, InputDataTypes, AdjudicationSteps, InputPipeTypes, RichTextEditorType, OptionSelectTypes, MinInputTypes, FormStateErrors, BlurHandleTypes, FunctionTypes as FunctionTypes$2 } from 'ngx-t-forms-types';
4
+ import { validateForm, JsDataTypes, MinInputTypes, getElementEditorConfig, ElementEditorTypes, AllFormInputPrimaryKeys, DefaultInputConfig, SpecialElementKeys, validateFormColumnInputsWithRequired, ElementTypes, validateFormSlide, FormListSection, DataSources, formColumnInputsSchema, CalculationFunctions, InputTypes, WorkflowFunctionTypes, validateCalculatedFieldRules, FormSubmissionStatus, InputDataTypes, AdjudicationSteps, InputPipeTypes, RichTextEditorType, OptionSelectTypes, FormStateErrors, BlurHandleTypes, FunctionTypes as FunctionTypes$2 } from 'ngx-t-forms-types';
5
5
  import { of, throwError, take, forkJoin, map as map$1, catchError as catchError$1, EMPTY, tap, switchMap, filter, firstValueFrom, from, concatMap, last, Subject, takeUntil, Subscription, timeout, Observable, BehaviorSubject, shareReplay, concat, finalize, distinctUntilChanged, isObservable, timer, debounceTime, combineLatest, merge, withLatestFrom, startWith as startWith$1 } from 'rxjs';
6
6
  import { catchError, map, switchMap as switchMap$1, startWith, debounceTime as debounceTime$1, distinctUntilChanged as distinctUntilChanged$1, shareReplay as shareReplay$1, tap as tap$1, finalize as finalize$1 } from 'rxjs/operators';
7
7
  import * as i1$1 from '@angular/forms';
@@ -1548,6 +1548,94 @@ function testAgainstItem(test, item) {
1548
1548
  }
1549
1549
  }
1550
1550
 
1551
+ /** True for a non-empty plain object or array (a usable seed body). */
1552
+ function isNonEmptyStructure(value) {
1553
+ if (value === null || typeof value !== 'object')
1554
+ return false;
1555
+ return Array.isArray(value) ? value.length > 0 : Object.keys(value).length > 0;
1556
+ }
1557
+ /** A safe deep clone of JSON-shaped data (so editing the seed never mutates the config). */
1558
+ function clone(value) {
1559
+ return JSON.parse(JSON.stringify(value));
1560
+ }
1561
+ /** Coerces a stored `defaultValue` string into a typed literal for the template. */
1562
+ function parseDefault(raw) {
1563
+ if (typeof raw !== 'string')
1564
+ return raw ?? null;
1565
+ if (raw === 'true')
1566
+ return true;
1567
+ if (raw === 'false')
1568
+ return false;
1569
+ if (raw !== '' && !Number.isNaN(Number(raw)))
1570
+ return Number(raw);
1571
+ if (raw.startsWith('{') && raw.endsWith('}')) {
1572
+ try {
1573
+ return JSON.parse(raw);
1574
+ }
1575
+ catch {
1576
+ return raw;
1577
+ }
1578
+ }
1579
+ return raw;
1580
+ }
1581
+ /** An empty, typed placeholder for an unconfigured min-input (keyed by its JS type). */
1582
+ function placeholderForType(type) {
1583
+ switch (type) {
1584
+ case JsDataTypes.Number:
1585
+ case JsDataTypes.BigInt:
1586
+ return 0;
1587
+ case JsDataTypes.Boolean:
1588
+ return false;
1589
+ case JsDataTypes.Object:
1590
+ return {};
1591
+ default:
1592
+ return '';
1593
+ }
1594
+ }
1595
+ /** Reconstructs the body shape from `minimumInputRequired` (see file header). */
1596
+ function reconstructFromMinInputs(minInputs) {
1597
+ const root = {};
1598
+ const data = {};
1599
+ for (const minInput of minInputs ?? []) {
1600
+ if (!minInput?.name)
1601
+ continue;
1602
+ const target = minInput.primaryKey ? root : data;
1603
+ if (minInput.type === MinInputTypes.Default) {
1604
+ target[minInput.name] = parseDefault(minInput.defaultValue);
1605
+ }
1606
+ else if (minInput.type === MinInputTypes.MapTo && minInput.mapTo && !Array.isArray(minInput.mapTo)) {
1607
+ const inputId = minInput.mapTo.inputId;
1608
+ target[minInput.name] = inputId ? `{{${inputId}}}` : placeholderForType(minInput.type);
1609
+ }
1610
+ else if (minInput.type === MinInputTypes.MapDocFilter && Array.isArray(minInput.mapTo)) {
1611
+ target['docFilter'] = minInput.mapTo
1612
+ .filter((m) => !!m?.inputId)
1613
+ .map((m) => ({ key: m.inputId, filterValue: `{{${m.inputId}}}` }));
1614
+ }
1615
+ else {
1616
+ // Unconfigured (raw JS-type) entry from the Postman extraction — show a
1617
+ // typed placeholder so the payload skeleton is visible and editable.
1618
+ target[minInput.name] = placeholderForType(minInput.type);
1619
+ }
1620
+ }
1621
+ if (Object.keys(data).length > 0)
1622
+ root['data'] = data;
1623
+ return root;
1624
+ }
1625
+ /**
1626
+ * Builds the default template for a POST fetch: the captured raw request body
1627
+ * when available, otherwise a reconstruction from `minimumInputRequired`.
1628
+ *
1629
+ * @param source - The fetch's `backEndConfig` (only `requestBody` +
1630
+ * `minimumInputRequired` are read); `undefined` yields `{}`.
1631
+ * @returns A template object ready to seed the editor (`{}` when nothing is known).
1632
+ */
1633
+ function deriveDefaultPayloadTemplate(source) {
1634
+ return isNonEmptyStructure(source?.requestBody)
1635
+ ? clone(source.requestBody)
1636
+ : reconstructFromMinInputs(source?.minimumInputRequired);
1637
+ }
1638
+
1551
1639
  function inputElementEditorConfigs(form, inputInEdit, NGX_T_FORMS_CONFIG, utils) {
1552
1640
  try {
1553
1641
  // Get base configuration
@@ -1626,10 +1714,25 @@ function processElement(element, inputInEdit, NGX_T_FORMS_CONFIG, utils, errors
1626
1714
  getWorkflowOptions: NGX_T_FORMS_CONFIG.formBuilder.workflows(),
1627
1715
  getMscoaTree: element.editType === ElementEditorTypes.ConfigMscoaSegments ?
1628
1716
  NGX_T_FORMS_CONFIG.formBuilder.getScoaTree() :
1629
- undefined
1717
+ undefined,
1718
+ // Payload-template editors default to the endpoint's captured request body (or,
1719
+ // failing that, a skeleton derived from the fetch's required inputs) so template
1720
+ // mode never starts blank. An existing template takes precedence (the emit-on-init
1721
+ // only fills an empty value).
1722
+ defaultValue: element.editType === ElementEditorTypes.PayloadTemplate
1723
+ ? payloadTemplateDefault(element, inputInEdit)
1724
+ : element.defaultValue,
1630
1725
  };
1631
1726
  }
1632
1727
  ;
1728
+ /** Derives the default payload template for a PayloadTemplate editor from its fetch config. */
1729
+ function payloadTemplateDefault(element, inputInEdit) {
1730
+ // deepBind = [...,'backEndConfig','payloadTemplate']; read the sibling backEndConfig
1731
+ // (its requestBody / minimumInputRequired seed the default).
1732
+ const backEndConfigPath = (element.deepBind ?? []).slice(0, -1);
1733
+ const backEndConfig = safeReturnDeepProperty(inputInEdit, backEndConfigPath)?.value;
1734
+ return deriveDefaultPayloadTemplate(backEndConfig);
1735
+ }
1633
1736
  function getPostmanConfig(element, NGX_T_FORMS_CONFIG) {
1634
1737
  const validForPostman = [ElementEditorTypes.ApiCall, ElementEditorTypes.ApiValueAccessRules, ElementEditorTypes.DataSourcePicker].includes(element.editType);
1635
1738
  if (!validForPostman)
@@ -2739,6 +2842,146 @@ const getDefaultValue = (input) => {
2739
2842
  }
2740
2843
  };
2741
2844
 
2845
+ /** A string leaf that is EXACTLY a single token, e.g. `"{{contractType}}"`. */
2846
+ const RAW_TOKEN = /^\{\{\s*([^{}]+?)\s*\}\}$/;
2847
+ /** Every `{{token}}` occurrence inside a string leaf (global, for interpolation). */
2848
+ const TOKEN_GLOBAL = /\{\{\s*([^{}]+?)\s*\}\}/g;
2849
+ /** A resolved value counts as "missing" (idle-gating) when empty. */
2850
+ function isEmpty(value) {
2851
+ return value === undefined || value === null || value === '';
2852
+ }
2853
+ /**
2854
+ * Deep-walks a {@link PayloadTemplate} node, substituting `{{inputId}}` tokens
2855
+ * from `readDep` and recording unmet token inputIds in `missing`.
2856
+ *
2857
+ * @param node - The current template node (object / array / literal / string).
2858
+ * @param readDep - Reader for a dependency input's current value.
2859
+ * @param missing - Accumulator set of unmet token inputIds (mutated in place).
2860
+ * @returns The resolved node.
2861
+ */
2862
+ function walk(node, readDep, missing) {
2863
+ if (typeof node === 'string') {
2864
+ const exact = RAW_TOKEN.exec(node);
2865
+ if (exact) {
2866
+ // Raw substitution — preserve the value's JS type (number/object/boolean/…).
2867
+ const inputId = exact[1].trim();
2868
+ const value = readDep(inputId);
2869
+ if (isEmpty(value))
2870
+ missing.add(inputId);
2871
+ return value;
2872
+ }
2873
+ if (node.includes('{{')) {
2874
+ // Interpolation — stitch tokens into the surrounding text as strings.
2875
+ // (Guard on `includes('{{')` rather than a stateful `.test()` on the /g
2876
+ // regex, which would advance lastIndex and corrupt the replace.)
2877
+ return node.replace(TOKEN_GLOBAL, (_match, rawId) => {
2878
+ const inputId = rawId.trim();
2879
+ const value = readDep(inputId);
2880
+ if (isEmpty(value)) {
2881
+ missing.add(inputId);
2882
+ return '';
2883
+ }
2884
+ return String(value);
2885
+ });
2886
+ }
2887
+ return node; // plain string default
2888
+ }
2889
+ if (Array.isArray(node)) {
2890
+ return node.map((item) => walk(item, readDep, missing));
2891
+ }
2892
+ if (node !== null && typeof node === 'object') {
2893
+ const out = {};
2894
+ // Preserve authored keys verbatim (dotted Mongo keys included).
2895
+ for (const [key, value] of Object.entries(node)) {
2896
+ out[key] = walk(value, readDep, missing);
2897
+ }
2898
+ return out;
2899
+ }
2900
+ return node; // number / boolean / null default
2901
+ }
2902
+ /**
2903
+ * Resolves a {@link PayloadTemplate} against the current form values.
2904
+ *
2905
+ * Pure — call it from inside a `computed` so every `readDep` read wires the
2906
+ * template's token inputs as reactive dependencies (edit a mapped field ⇒ the
2907
+ * computed re-runs ⇒ the resource reloads, deduped by structural equality).
2908
+ *
2909
+ * @param template - The authored template (object or array root).
2910
+ * @param readDep - Reader for a dependency input's current value (the builder's
2911
+ * cycle-safe `ctx.readDep`).
2912
+ * @returns The resolved `payload` plus the `missing` unmet-token inputIds.
2913
+ */
2914
+ function resolvePayloadTemplate(template, readDep) {
2915
+ const missing = new Set();
2916
+ const payload = walk(template, readDep, missing);
2917
+ return { payload, missing: [...missing] };
2918
+ }
2919
+ /**
2920
+ * The unmet-token inputIds for a template at the current values — the
2921
+ * `missing` slice of {@link resolvePayloadTemplate}, exposed for the
2922
+ * missing-dependency diagnostic hint (`readMissing`).
2923
+ *
2924
+ * @param template - The authored template.
2925
+ * @param readDep - Reader for a dependency input's current value.
2926
+ * @returns The deduped inputIds whose token currently resolves to an empty value.
2927
+ */
2928
+ function unmetTemplateInputs(template, readDep) {
2929
+ return [...resolvePayloadTemplate(template, readDep).missing];
2930
+ }
2931
+ /**
2932
+ * Whether a POST fetch's body is shaped by its {@link PayloadTemplate} rather than
2933
+ * by the `minimumInputRequired` mapping.
2934
+ *
2935
+ * True iff a template is present AND the author has not explicitly pinned the
2936
+ * config to `'mappedInputs'`. Both configurations are kept side by side, so
2937
+ * flipping `requestBodyMode` switches mechanisms without discarding either.
2938
+ *
2939
+ * @param backEndConfig - The fetch's `backEndConfig` (may be absent).
2940
+ * @returns `true` when the template supersedes the mapping.
2941
+ */
2942
+ function isTemplateRequestBody(backEndConfig) {
2943
+ return (backEndConfig?.payloadTemplate !== undefined &&
2944
+ backEndConfig.requestBodyMode !== 'mappedInputs');
2945
+ }
2946
+ /**
2947
+ * The deduped inputIds a {@link PayloadTemplate} references through `{{inputId}}`
2948
+ * tokens — the template's **dependency set**, the exact analogue of the `mapTo`
2949
+ * inputIds of a `minimumInputRequired` mapping.
2950
+ *
2951
+ * Implemented by resolving the template with a reader that yields `undefined` for
2952
+ * every id: each token then resolves "empty" and lands in `missing`, so the
2953
+ * resolver's own walk (single source of truth for what counts as a token) also
2954
+ * enumerates them. No second parser to drift out of sync.
2955
+ *
2956
+ * @param template - The authored template (or `undefined` for none).
2957
+ * @returns The referenced inputIds (empty for a tokenless / absent template).
2958
+ */
2959
+ function collectTemplateInputIds(template) {
2960
+ return [...resolvePayloadTemplate(template, () => undefined).missing];
2961
+ }
2962
+ /**
2963
+ * Whether a POST fetch's request body depends on **live form values** — i.e. it
2964
+ * must be rebuilt from a reactive `params` computed and re-fetched when a
2965
+ * dependency changes, rather than assembled once from static defaults.
2966
+ *
2967
+ * This is the predicate that discriminates `ValuePostMethodAPI` /
2968
+ * `OptionsPostMethodAPI` (dynamic) from their `…WithAllDefaultParams` siblings
2969
+ * (static, fire-once, no dependencies) — and the reason a template must answer it
2970
+ * too: a `{{inputId}}` token is a dependency declaration exactly as a `mapto`
2971
+ * entry is. Treating a token-bearing template as "all default" would classify a
2972
+ * reactive fetch as a static one.
2973
+ *
2974
+ * @param backEndConfig - The fetch's `backEndConfig` (may be absent).
2975
+ * @returns `true` when at least one dependency on another input exists.
2976
+ */
2977
+ function hasDynamicRequestParams(backEndConfig) {
2978
+ if (isTemplateRequestBody(backEndConfig)) {
2979
+ return collectTemplateInputIds(backEndConfig?.payloadTemplate).length > 0;
2980
+ }
2981
+ const minInputs = backEndConfig?.minimumInputRequired ?? [];
2982
+ return minInputs.some((minInput) => minInput.type !== MinInputTypes.Default);
2983
+ }
2984
+
2742
2985
  /**
2743
2986
  * Workflow function-type enum, upstreamed to `ngx-t-forms-types` as
2744
2987
  * {@link WorkflowFunctionTypes} per DECISIONS.md D-016. Re-exported here under
@@ -2748,23 +2991,76 @@ const getDefaultValue = (input) => {
2748
2991
  * @public
2749
2992
  */
2750
2993
  const FunctionTypes = WorkflowFunctionTypes;
2994
+ /**
2995
+ * Narrows a `fetch.value` / `fetch.options` slot to an API configuration, or
2996
+ * `undefined` when the slot is absent or sourced from somewhere other than an API
2997
+ * (local / mongo / custom options).
2998
+ *
2999
+ * Every POST/GET predicate below reads through this, so a non-API or missing slot
3000
+ * can never reach a `backEndConfig` dereference.
3001
+ */
3002
+ function asApiConfig(slot) {
3003
+ return slot?.source === DataSources.Api
3004
+ ? slot
3005
+ : undefined;
3006
+ }
3007
+ /**
3008
+ * Detects every {@link FunctionTypes} an input's configuration activates.
3009
+ *
3010
+ * ### POST classification (value + options)
3011
+ * A POST fetch is always the plain `…PostMethodAPI` type; it is *additionally* the
3012
+ * `…WithAllDefaultParams` subtype when its request body has **no dependency on
3013
+ * another input's value** — see {@link hasDynamicRequestParams}, which arbitrates
3014
+ * across both body mechanisms:
3015
+ *
3016
+ * | Body mechanism | Dynamic when |
3017
+ * |---|---|
3018
+ * | `minimumInputRequired` mapping | any entry's `type` is not `'default'` |
3019
+ * | `payloadTemplate` | the template references at least one `{{inputId}}` token |
3020
+ *
3021
+ * The dispatcher (`#buildDerivedForInput`) then builds exactly one value-POST and
3022
+ * one options-POST resource, preferring the `…WithAllDefaultParams` subtype.
3023
+ *
3024
+ * ### Total, never-throwing
3025
+ * Every dereference is optional-chained. A single malformed slot must not reach the
3026
+ * `catch` below and erase the *other* function types (a POST fetch missing
3027
+ * `minimumInputRequired` once did exactly that, silently disabling the input's
3028
+ * resource, refresh button, calculation and validators alike).
3029
+ *
3030
+ * ### `ManualValueValidation`
3031
+ * Reports true iff the input declares at least one **object** validator — the exact
3032
+ * set `buildManualValidation` evaluates. String validators (`'required'`, `'email'`)
3033
+ * belong to the `formGenerator` / `returnValidator` path, and an absent `validators`
3034
+ * property means no custom validation at all.
3035
+ *
3036
+ * @param inputConfig - The column-input configuration to classify.
3037
+ * @returns A partial map of function type → whether the input activates it.
3038
+ */
2751
3039
  function getAllFunctionTypes(inputConfig) {
2752
3040
  const functionTypes = {};
2753
3041
  try {
3042
+ const valueSlot = inputConfig.matOptions?.fetch?.value;
3043
+ const optionsSlot = inputConfig.matOptions?.fetch?.options;
3044
+ const valueApi = asApiConfig(valueSlot);
3045
+ const optionsApi = asApiConfig(optionsSlot);
3046
+ const valueIsPost = valueApi?.httpMethod === 'POST';
3047
+ const optionsIsPost = optionsApi?.httpMethod === 'POST';
2754
3048
  // Check for each function type
2755
3049
  functionTypes[FunctionTypes.ValueCalculation] = Boolean(!!validateCalculatedFieldRules(inputConfig.calculatedFieldRules).value);
2756
- functionTypes[FunctionTypes.ValuePostMethodAPI] = Boolean(inputConfig.matOptions?.fetch?.value?.source === 'api' && inputConfig.matOptions?.fetch.value?.httpMethod === 'POST');
2757
- functionTypes[FunctionTypes.ValuePostMethodAPIWithAllDefaultParams] = Boolean(inputConfig.matOptions?.fetch.value?.source === 'api'
2758
- && inputConfig.matOptions?.fetch?.value?.httpMethod === 'POST')
2759
- && (inputConfig.matOptions?.fetch?.value).backEndConfig.minimumInputRequired.every((minIn) => minIn.type === 'default');
2760
- functionTypes[FunctionTypes.OptionsPostMethodAPI] = Boolean(inputConfig.matOptions?.fetch?.options?.source === 'api' && inputConfig.matOptions?.fetch.options?.httpMethod === 'POST');
2761
- functionTypes[FunctionTypes.OptionsPostMethodAPIWithAllDefaultParams] = Boolean(inputConfig.matOptions?.fetch?.options?.source === 'api'
2762
- && inputConfig.matOptions?.fetch?.options?.httpMethod === 'POST')
2763
- && (inputConfig.matOptions?.fetch?.options).backEndConfig.minimumInputRequired.every((minIn) => minIn.type === 'default');
2764
- functionTypes[FunctionTypes.ValueGetMethodAPI] = Boolean(inputConfig.matOptions?.fetch?.value?.source === 'api' && inputConfig.matOptions?.fetch.value?.httpMethod === 'GET');
2765
- functionTypes[FunctionTypes.OptionsGetMethodAPI] = Boolean(inputConfig.matOptions?.fetch?.options?.source === 'api' && inputConfig.matOptions?.fetch.options?.httpMethod === 'GET');
2766
- functionTypes[FunctionTypes.InputSourcedValue] = Boolean(inputConfig.matOptions?.fetch.value?.source === DataSources.Local && !!inputConfig.matOptions?.fetch.value?.source);
2767
- functionTypes[FunctionTypes.ManualValueValidation] = Boolean(inputConfig.validators?.filter(validator => typeof validator === 'object' && validator !== null).length !== 0);
3050
+ functionTypes[FunctionTypes.ValuePostMethodAPI] = valueIsPost;
3051
+ functionTypes[FunctionTypes.ValuePostMethodAPIWithAllDefaultParams] =
3052
+ valueIsPost && !hasDynamicRequestParams(valueApi?.backEndConfig);
3053
+ functionTypes[FunctionTypes.OptionsPostMethodAPI] = optionsIsPost;
3054
+ functionTypes[FunctionTypes.OptionsPostMethodAPIWithAllDefaultParams] =
3055
+ optionsIsPost && !hasDynamicRequestParams(optionsApi?.backEndConfig);
3056
+ functionTypes[FunctionTypes.ValueGetMethodAPI] = valueApi?.httpMethod === 'GET';
3057
+ functionTypes[FunctionTypes.OptionsGetMethodAPI] = optionsApi?.httpMethod === 'GET';
3058
+ functionTypes[FunctionTypes.InputSourcedValue] = Boolean(valueSlot?.source === DataSources.Local && !!valueSlot?.source);
3059
+ // `.some(isObject)`, NOT `validators?.filter(…).length !== 0`: the optional
3060
+ // chain in the old form short-circuited the WHOLE member chain to `undefined`
3061
+ // when `validators` was absent, and `undefined !== 0` is `true` — so every
3062
+ // input without validators claimed a custom validator it did not have.
3063
+ functionTypes[FunctionTypes.ManualValueValidation] = (inputConfig.validators ?? []).some(validator => typeof validator === 'object' && validator !== null);
2768
3064
  return functionTypes;
2769
3065
  }
2770
3066
  catch {
@@ -6112,7 +6408,9 @@ function inputGetApiPostData(inputConfig, formValues, dataFor, utils) {
6112
6408
  from an API`);
6113
6409
  return of();
6114
6410
  }
6115
- const minInputs = fetchOptions.backEndConfig.minimumInputRequired;
6411
+ // `minimumInputRequired` is optional (a template-mode fetch carries none), so an
6412
+ // absent key collapses to the same empty-list guard as an explicitly empty one.
6413
+ const minInputs = fetchOptions.backEndConfig?.minimumInputRequired ?? [];
6116
6414
  if (minInputs.length === 0) {
6117
6415
  utils.setInputTemporaryError(inputConfig.id, `Cannot fetch data. No minimum inputs provided`);
6118
6416
  return of();
@@ -6259,7 +6557,7 @@ function returnMappedData(formValues, minInputs, endpoint) {
6259
6557
  /**
6260
6558
  * @file Pure factory for value-API `resource()` entries.
6261
6559
  *
6262
- * Handles three `FunctionType` variants that fetch an input's **value** from
6560
+ * Handles the `FunctionType` variants that fetch an input's **value** from
6263
6561
  * a remote API and expose the result as a signal-graph primitive
6264
6562
  * ({@link ResourceDerivedEntry}):
6265
6563
  *
@@ -6269,6 +6567,12 @@ function returnMappedData(formValues, minInputs, endpoint) {
6269
6567
  * | `ValuePostMethodAPI` | POST | Computed — `params` re-maps `readDep` values; stays `idle` when `validateMinInput` fails. |
6270
6568
  * | `ValuePostMethodAPIWithAllDefaultParams` | POST | Static — all `minimumInputRequired` entries are `'default'`; no reactive params needed. |
6271
6569
  *
6570
+ * A POST fetch in **template mode** (`backEndConfig.payloadTemplate`, see
6571
+ * {@link isTemplateRequestBody}) takes a dedicated branch that shapes the body from
6572
+ * the template instead of the mapping. It is reactive iff the template carries
6573
+ * `{{inputId}}` tokens, which is exactly what decides between the two POST variants
6574
+ * above — the token set is the template's dependency set.
6575
+ *
6272
6576
  * ### No-publish rule (Blueprint §3, HAZARD 6)
6273
6577
  * These builders MUST NOT call `ctx.utils.updateValue`. The resource's
6274
6578
  * `.value()` IS the signal-graph value; the engine's `value()` computed reads
@@ -6414,7 +6718,7 @@ function buildValuePostMethodApiWithAllDefaultParams(input, ctx) {
6414
6718
  ctx.utils.setInputTemporaryError(input.id, `Cannot fetch data. Source is not from an API`);
6415
6719
  return undefined;
6416
6720
  }
6417
- const minInputs = fetchCfg.backEndConfig.minimumInputRequired;
6721
+ const minInputs = fetchCfg.backEndConfig?.minimumInputRequired ?? [];
6418
6722
  // All-defaults branch: build the payload from default values only,
6419
6723
  // using an empty form-value snapshot (no readDep reads required).
6420
6724
  const payload = returnMappedData({}, minInputs, fetchCfg.httpEndPoint);
@@ -6474,7 +6778,7 @@ function buildValuePostMethodApi(input, ctx) {
6474
6778
  loader: async () => undefined,
6475
6779
  });
6476
6780
  }
6477
- const minInputs = fetchCfg.backEndConfig.minimumInputRequired;
6781
+ const minInputs = fetchCfg.backEndConfig?.minimumInputRequired ?? [];
6478
6782
  /**
6479
6783
  * Reactive parameter signal.
6480
6784
  *
@@ -6565,7 +6869,7 @@ function buildValuePostMethodApi(input, ctx) {
6565
6869
  // is otherwise silent — the resource simply never fires). The diagnostic names
6566
6870
  // the unmet upstream field(s) by label so the user knows what to provide.
6567
6871
  if (fetchCfg) {
6568
- const minInputs = fetchCfg.backEndConfig.minimumInputRequired;
6872
+ const minInputs = fetchCfg.backEndConfig?.minimumInputRequired ?? [];
6569
6873
  wireMissingDependencyDiagnostic(ctx, {
6570
6874
  inputId: input.id,
6571
6875
  targetLabel: input.label?.trim() || input.id,
@@ -6576,6 +6880,69 @@ function buildValuePostMethodApi(input, ctx) {
6576
6880
  return { kind: 'resource', resource: ref };
6577
6881
  }
6578
6882
  // ---------------------------------------------------------------------------
6883
+ // POST-template branch (ValuePostMethodAPI, backEndConfig.payloadTemplate set)
6884
+ // ---------------------------------------------------------------------------
6885
+ /**
6886
+ * Builds a computed-params POST `resource()` whose request body is shaped by a
6887
+ * declarative {@link PayloadTemplate} (`backEndConfig.payloadTemplate`) instead
6888
+ * of the flat `minimumInputRequired` mapping.
6889
+ *
6890
+ * The template is the literal JSON body the endpoint expects; `{{inputId}}`
6891
+ * string tokens are substituted from `ctx.readDep` (raw value when the leaf is
6892
+ * exactly a token, string interpolation otherwise) and every other literal is a
6893
+ * typed default. Arbitrary nesting and Mongo-style dotted keys are preserved
6894
+ * verbatim — the resolved object is sent with no `data` envelope.
6895
+ *
6896
+ * Reactivity + idle-gate are identical to {@link buildValuePostMethodApi}: the
6897
+ * `params` computed reads each token via `readDep` (so an edit to a mapped field
6898
+ * reloads the resource, deduped by `_isEqual`), and returns `undefined` while any
6899
+ * referenced input is empty so the resource stays `idle`.
6900
+ *
6901
+ * @param input - The full column-input config.
6902
+ * @param ctx - Shared build context.
6903
+ * @param fetchCfg - The resolved `'value'` fetch config (carries the template + endpoint).
6904
+ * @returns A {@link ResourceDerivedEntry} backed by the template-driven POST resource.
6905
+ */
6906
+ function buildValuePostMethodApiFromTemplate(input, ctx, fetchCfg) {
6907
+ const template = fetchCfg.backEndConfig.payloadTemplate;
6908
+ const ref = runInInjectionContext(ctx.injector, () => {
6909
+ const params = computed(() => {
6910
+ const { payload, missing } = resolvePayloadTemplate(template, ctx.readDep);
6911
+ // Any referenced input still empty → params undefined → resource idle.
6912
+ if (missing.length > 0)
6913
+ return undefined;
6914
+ return payload;
6915
+ }, { ...(ngDevMode ? { debugName: "params" } : /* istanbul ignore next */ {}), equal: _isEqual });
6916
+ return resource({
6917
+ params,
6918
+ loader: async ({ params: payload }) => {
6919
+ if (payload === undefined)
6920
+ return undefined;
6921
+ try {
6922
+ ctx.utils.setTemporaryHint(input.id, 'Fetching data...', HintType.LOADING);
6923
+ const rawData = await firstValueFrom(ctx.utils.httpPostDataFunction(fetchCfg.httpEndPoint, payload, fetchCfg.httpHeaderOptions));
6924
+ const result = applyValueAccessRules$1(input, fetchCfg, rawData);
6925
+ ctx.utils.setTemporaryHint(input.id, 'Data fetched successfully', HintType.SUCCESS);
6926
+ return result;
6927
+ }
6928
+ catch (error) {
6929
+ ctx.utils.setInputTemporaryError(input.id, `Error fetching data from API`);
6930
+ throw error;
6931
+ }
6932
+ },
6933
+ });
6934
+ });
6935
+ // Name the unmet mapped field(s) while the template stays idle (parity with
6936
+ // the minInput path — the params → undefined short-circuit is otherwise silent).
6937
+ wireMissingDependencyDiagnostic(ctx, {
6938
+ inputId: input.id,
6939
+ targetLabel: input.label?.trim() || input.id,
6940
+ kind: 'value',
6941
+ readMissing: () => unmetTemplateInputs(template, ctx.readDep),
6942
+ });
6943
+ return { kind: 'resource', resource: ref };
6944
+ }
6945
+ // ---------------------------------------------------------------------------
6579
6946
  // Public factory (dispatcher entry point — Blueprint §3 #3, #4, #5)
6580
6947
  // ---------------------------------------------------------------------------
6581
6948
  /**
@@ -6613,7 +6980,16 @@ function buildValueApiResource(input, ctx) {
6613
6980
  return buildValueGetMethodApi(input, ctx);
6614
6981
  }
6615
6982
  if (httpMethod === 'POST') {
6616
- const minInputs = fetchCfg?.backEndConfig.minimumInputRequired ?? [];
6983
+ // A payloadTemplate supersedes minimumInputRequired for body shaping — but
6984
+ // ONLY when the author has not explicitly chosen the mapped-inputs mode
6985
+ // (requestBodyMode). Taken BEFORE the all-default split: the template branch
6986
+ // covers both the token-bearing (reactive params) and tokenless (fires once)
6987
+ // cases, so an empty/absent minInputs list must not route it to the static
6988
+ // branch, which ignores the template entirely.
6989
+ if (fetchCfg && isTemplateRequestBody(fetchCfg.backEndConfig)) {
6990
+ return buildValuePostMethodApiFromTemplate(input, ctx, fetchCfg);
6991
+ }
6992
+ const minInputs = fetchCfg?.backEndConfig?.minimumInputRequired ?? [];
6617
6993
  const allDefault = minInputs.every((m) => m.type === 'default');
6618
6994
  if (allDefault) {
6619
6995
  return buildValuePostMethodApiWithAllDefaultParams(input, ctx);
@@ -6954,6 +7330,89 @@ function buildPostComputedOptionsResource(input, ctx) {
6954
7330
  });
6955
7331
  }
6956
7332
  // ---------------------------------------------------------------------------
7333
+ // POST-template branch (OptionsPostMethodAPI, backEndConfig.payloadTemplate set)
7334
+ // ---------------------------------------------------------------------------
7335
+ /**
7336
+ * Creates an {@link OptionsDerivedEntry} for inputs whose options are fetched
7337
+ * via an HTTP **POST** whose body is shaped by a declarative
7338
+ * {@link PayloadTemplate} (`backEndConfig.payloadTemplate`) rather than the flat
7339
+ * `minimumInputRequired` mapping.
7340
+ *
7341
+ * Behaviour mirrors {@link buildPostComputedOptionsResource} — a computed
7342
+ * `params` (from the resolved template) that returns `undefined` while any
7343
+ * referenced input is empty (idle), the same resolved-edge `updateFormInputConfig`
7344
+ * write-back deduped via the `prevStatus` tracker, and the same missing-dependency
7345
+ * diagnostic — differing only in how the request body is built (verbatim template,
7346
+ * no `data` envelope).
7347
+ *
7348
+ * @param input - The full column-input configuration.
7349
+ * @param ctx - Shared builder context.
7350
+ * @param fetchConfig - The resolved `'options'` fetch config (carries the template).
7351
+ * @returns An {@link OptionsDerivedEntry} wired to the template-driven POST resource.
7352
+ */
7353
+ function buildPostTemplateOptionsResource(input, ctx, fetchConfig) {
7354
+ return runInInjectionContext(ctx.injector, () => {
7355
+ const template = fetchConfig.backEndConfig.payloadTemplate;
7356
+ const paramsSignal = computed(() => {
7357
+ const { payload, missing } = resolvePayloadTemplate(template, ctx.readDep);
7358
+ if (missing.length > 0)
7359
+ return undefined;
7360
+ return payload;
7361
+ }, { ...(ngDevMode ? { debugName: "paramsSignal" } : /* istanbul ignore next */ {}), equal: _isEqual });
7362
+ // Edge-tracker: a plain closure variable (NOT a signal — nothing reads it
7363
+ // reactively), so the resolved-edge effect below never writes a signal.
7364
+ let prevStatus = 'idle';
7365
+ const optionsResource = resource({ ...(ngDevMode ? { debugName: "optionsResource" } : /* istanbul ignore next */ {}), params: paramsSignal,
7366
+ loader: async ({ params }) => {
7367
+ if (params === undefined) {
7368
+ return [];
7369
+ }
7370
+ ctx.utils.setInputStatus(input.id, POST_STATUS_ID, 'Fetching options...');
7371
+ ctx.utils.setTemporaryHint(input.id, 'Fetching options...', HintType.LOADING);
7372
+ try {
7373
+ const data = await firstValueFrom(ctx.utils.httpPostDataFunction(fetchConfig.httpEndPoint, params, fetchConfig.httpHeaderOptions));
7374
+ ctx.utils.removeInputStatus(input.id, POST_STATUS_ID);
7375
+ const results = applyValueAccessRules(fetchConfig, data);
7376
+ return (results ?? []);
7377
+ }
7378
+ catch (error) {
7379
+ ctx.utils.removeInputStatus(input.id, POST_STATUS_ID);
7380
+ const errMsg = errorResolver(error instanceof Error
7381
+ ? error
7382
+ : undefined);
7383
+ ctx.utils.setInputTemporaryError(input.id, resolveErrorString(errMsg) ?? 'Error fetching options');
7384
+ throw error;
7385
+ }
7386
+ } });
7387
+ // Resolved-edge effect: deduped by the prevStatus edge-tracker (see the
7388
+ // POST-computed branch for the both-edges / dedupe rationale).
7389
+ effect(() => {
7390
+ const current = optionsResource.status();
7391
+ const prev = prevStatus;
7392
+ if ((prev === 'loading' || prev === 'reloading') && current === 'resolved') {
7393
+ const results = optionsResource.value();
7394
+ ctx.utils.updateFormInputConfig(input.id, buildOptionsPatch(input, results));
7395
+ ctx.utils.setTemporaryHint(input.id, 'Data options fetched successfully', HintType.DOCUMENT);
7396
+ ctx.utils.removeInputStatus(input.id, POST_STATUS_ID);
7397
+ }
7398
+ prevStatus = current;
7399
+ });
7400
+ const optionsSignal = computed(() => (optionsResource.value() ?? []), ...(ngDevMode ? [{ debugName: "optionsSignal" }] : /* istanbul ignore next */ []));
7401
+ wireMissingDependencyDiagnostic(ctx, {
7402
+ inputId: input.id,
7403
+ targetLabel: input.label?.trim() || input.id,
7404
+ kind: 'options',
7405
+ readMissing: () => unmetTemplateInputs(template, ctx.readDep),
7406
+ });
7407
+ return {
7408
+ kind: 'options',
7409
+ signal: optionsSignal,
7410
+ resource: optionsResource,
7411
+ lastStatus: () => prevStatus,
7412
+ };
7413
+ });
7414
+ }
7415
+ // ---------------------------------------------------------------------------
6957
7416
  // POST-static branch (OptionsPostMethodAPIWithAllDefaultParams)
6958
7417
  // ---------------------------------------------------------------------------
6959
7418
  /**
@@ -7097,6 +7556,15 @@ function buildOptionsApiResource(input, ctx) {
7097
7556
  if (httpMethod === 'GET') {
7098
7557
  return buildGetOptionsResource(input, ctx);
7099
7558
  }
7559
+ // A payloadTemplate supersedes minimumInputRequired for body shaping — but ONLY
7560
+ // when the author has not explicitly chosen the mapped-inputs mode. Taken BEFORE
7561
+ // the all-default split: the template branch covers both the token-bearing
7562
+ // (reactive params) and tokenless (fires once) cases, so an empty/absent
7563
+ // minInputs list must not route it to the static branch, which ignores the
7564
+ // template entirely.
7565
+ if (isTemplateRequestBody(fetchConfig.backEndConfig)) {
7566
+ return buildPostTemplateOptionsResource(input, ctx, fetchConfig);
7567
+ }
7100
7568
  // POST — check whether all minInputs are of type 'default'.
7101
7569
  const minInputs = fetchConfig.backEndConfig?.minimumInputRequired ?? [];
7102
7570
  const allDefault = minInputs.every((m) => m.type === 'default');
@@ -13909,9 +14377,9 @@ class FormBuilderComponent {
13909
14377
  this.#store.actionsFormBuilder.setFormTitle(value);
13910
14378
  }
13911
14379
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: FormBuilderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
13912
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: FormBuilderComponent, isStandalone: true, selector: "lib-form-builder, app-form-builder", inputs: { formId: { classPropertyName: "formId", publicName: "formId", isSignal: true, isRequired: false, transformFunction: null } }, providers: [FormsStoreService], ngImport: i0, template: "<header style=\"position:fixed;width:100%;left:0px;top:0px\">\r\n <mat-toolbar color=\"primary\">\r\n @if (closeButton) {\r\n <button mat-icon-button [style.color]=\"closeButton.color\" (click)=\"closeButton.onClick()\">\r\n <mat-icon>{{closeButton.icon}}</mat-icon>\r\n </button>\r\n }\r\n\r\n <!-- Navigation group -->\r\n <div class=\"nav-group\">\r\n <button mat-button routerLink=\"/\">Forms</button>\r\n <mat-icon>navigate_next</mat-icon>\r\n </div>\r\n\r\n <!-- Title input with optimized binding -->\r\n @if (selectHasFormId()) {\r\n <input [ngModel]=\"titleValue()\" (ngModelChange)=\"setTitleValue($event)\" class=\"section-title-input\" placeholder=\"Enter Form Title\">\r\n }\r\n\r\n <span class=\"spacer\"></span>\r\n\r\n @defer (on viewport) {\r\n <lib-forms-builder-menu />\r\n } @placeholder {\r\n <div style=\"padding: 50px;display:flex;justify-content:center;align-items:center; text-align: center;\">\r\n <mat-spinner diameter=\"20\" />\r\n </div>\r\n\r\n }\r\n\r\n <span class=\"divider\">|</span>\r\n\r\n <!-- Persist to server: visible once local preview is in sync -->\r\n @if (!pendingExternalRefresh()) {\r\n <button mat-raised-button color=\"accent\" class=\"save-button\" [disabled]=\"!(canSaveForm())\" (click)=\"saveForm()\">\r\n <mat-icon style=\"width: 24px;\">cloud_upload</mat-icon>\r\n @if (selectFormBuilderIsBusy()) {\r\n <span class=\"save-text\">\r\n <span class=\"save-label\">{{(isNewForm()) ? 'Creating form...' : 'Saving changes...'}}</span>\r\n </span>\r\n } @else {\r\n <span class=\"save-text\">\r\n <span class=\"save-label\">{{(isNewForm()) ? 'Save New Form' : 'Save Changes'}}</span>\r\n @if (canSaveForm()) {\r\n <span class=\"save-sub\">Not saved to server yet</span>\r\n }\r\n </span>\r\n }\r\n </button>\r\n }\r\n\r\n <!-- Local sync: applies your changes to the builder preview \u00B7 does NOT save to server -->\r\n @if (pendingExternalRefresh()) {\r\n <button class=\"refresh-button\" matRipple matRippleColor=\"rgba(255,255,255,0.12)\" (click)=\"triggerRefreshNow()\">\r\n <span class=\"countdown-ring\">\r\n <mat-progress-spinner\r\n diameter=\"34\"\r\n mode=\"determinate\"\r\n [value]=\"refreshCountdown() * 20\">\r\n </mat-progress-spinner>\r\n <span class=\"countdown-number\">{{refreshCountdown()}}</span>\r\n </span>\r\n <span class=\"refresh-text\">\r\n <span class=\"refresh-label\">Apply Now</span>\r\n <span class=\"refresh-sub\">Preview updates in {{refreshCountdown()}}s</span>\r\n </span>\r\n <mat-icon class=\"refresh-chevron\">chevron_right</mat-icon>\r\n </button>\r\n }\r\n\r\n </mat-toolbar>\r\n</header>\r\n\r\n<!-- Main content with optimized loading -->\r\n@defer (on viewport) {\r\n<div class=\"container\">\r\n <div class=\"middle\">\r\n <br>\r\n @if (selectLoadingForm()) {\r\n <div class=\"loading-container\">\r\n <mat-spinner />\r\n </div>\r\n } @else {\r\n <lib-form-section-stepper />\r\n }\r\n <br>\r\n @if ((hasMissingConfigs()) && !(selectLoadingForm())) {\r\n <lib-missing-form-configs />\r\n }\r\n <!-- Updated time info -->\r\n @if (!(isNewForm())) {\r\n <div class=\"updated-time\">\r\n <mat-icon>update</mat-icon>\r\n <span>Updated {{ selectFormUpdated() }}</span>\r\n </div>\r\n }\r\n </div>\r\n\r\n @if (elementEditorOpen()) {\r\n <lib-input-editor style=\"max-width:480px;height:calc(100vh - 76px);\r\n position:sticky;\r\n top:76px;\r\n z-index:1\" cdkDrag cdkDragBoundary=\"container\" class=\"middle editor-container\" />\r\n }\r\n <!-- Missing fields section -->`\r\n\r\n\r\n</div>\r\n}@placeholder {\r\n<div style=\"padding: 50px;display:flex;justify-content:center;align-items:center; text-align: center;\">\r\n <mat-spinner diameter=\"50\" />\r\n</div>\r\n}", styles: [".container{display:flex;width:100%;height:calc(100% - 64px);padding-top:4em}.side{width:100px;background-color:var(--sem-error-surface)}.middle{flex-grow:1;height:calc(100vh - 68px);overflow:auto;background-color:none}.section-title-input{border:none;background-color:transparent;font-size:.8575em;font-weight:600;color:var(--lib-forms-on-primary);padding-top:12px;padding-bottom:12px;outline:none;width:100%;min-width:268px;transition:border-bottom-color .3s ease-in-out}.section-title-input:focus{border-bottom:1px solid var(--lib-forms-on-primary)}.missing-fields{position:fixed;bottom:0}.updated-time{display:flex;color:var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));gap:8px;align-items:center;line-height:normal;font-size:.875em;bottom:0;position:absolute;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);padding:8px;border-radius:4px}.nav-group{display:flex;align-items:center;gap:8px}.save-button{margin-left:8px;min-width:168px;height:44px}.save-button .save-text{display:flex;flex-direction:column;align-items:flex-start;gap:2px}.save-button .save-text .save-label{font-size:13px;font-weight:600;line-height:1;letter-spacing:.01em;white-space:nowrap}.save-button .save-text .save-sub{font-size:10px;line-height:1;opacity:.78;white-space:nowrap}.refresh-button{margin-left:8px;background:var(--mat-fab-small-container-color, var(--mat-sys-tertiary-container));color:var(--mat-sys-on-tertiary-container);border:1.5px solid var(--mat-sys-outline-variant);border-radius:10px;padding:4px 14px 4px 6px;cursor:pointer;display:inline-flex;align-items:center;gap:12px;height:44px;width:fit-content;box-shadow:0 2px 12px color-mix(in srgb,var(--lib-forms-shadow-color) 18%,transparent);transition:box-shadow var(--lib-forms-duration-hover) var(--lib-forms-easing),transform var(--lib-forms-duration-hover) var(--lib-forms-easing);outline:none;overflow:hidden;position:relative}.refresh-button:hover{box-shadow:0 4px 20px color-mix(in srgb,var(--lib-forms-shadow-color) 28%,transparent);transform:translateY(-1px)}.refresh-button:active{transform:translateY(0);box-shadow:0 1px 6px color-mix(in srgb,var(--lib-forms-shadow-color) 12%,transparent)}.refresh-button .countdown-ring{position:relative;width:34px;height:34px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.refresh-button .countdown-ring mat-progress-spinner{position:absolute;inset:0;--mdc-circular-progress-active-indicator-color: var(--mat-sys-on-tertiary-container);--mdc-circular-progress-track-color: color-mix(in srgb, var(--mat-sys-on-tertiary-container) 18%, transparent)}.refresh-button .countdown-ring .countdown-number{font-size:11px;font-weight:600;line-height:1;z-index:1;letter-spacing:-.3px;color:var(--mat-sys-on-tertiary-container)}.refresh-button .refresh-text{display:flex;flex-direction:column;align-items:flex-start;gap:3px}.refresh-button .refresh-text .refresh-label{font-size:13px;font-weight:600;line-height:1;letter-spacing:.01em;white-space:nowrap;color:var(--mat-sys-on-tertiary-container)}.refresh-button .refresh-text .refresh-sub{font-size:10px;line-height:1;opacity:.68;white-space:nowrap;color:var(--mat-sys-on-tertiary-container)}.refresh-button .refresh-chevron{font-size:18px;width:18px;height:18px;opacity:.65;flex-shrink:0;color:var(--mat-sys-on-tertiary-container)}.loading-container{display:flex;height:calc(100% - 150px);justify-content:center;align-items:center}.editor-container{max-width:500px}.divider{margin:0 8px;opacity:.5}app-missing-form-configs{position:absolute;bottom:0;right:0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i8.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$2.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: i1$2.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$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { 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: MatRippleModule }, { kind: "directive", type: i7.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i7$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, deferBlockDependencies: [() => [import('./ngx-t-forms-forms-builder-menu.component-BaBBPuXH.mjs').then(m => m.FormsBuilderMenuComponent)], () => [i3$1.MatIcon, i4.MatProgressSpinner, i1$3.CdkDrag, import('./ngx-t-forms-input-editor.component-CfaTar-x.mjs').then(m => m.InputEditorComponent), import('./ngx-t-forms-form-section-stepper.component-_cQl_olU.mjs').then(m => m.FormSectionStepperComponent), import('./ngx-t-forms-missing-form-configs.component-CSQ_Qtef.mjs').then(m => m.MissingFormConfigsComponent)]] }); }
14380
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: FormBuilderComponent, isStandalone: true, selector: "lib-form-builder, app-form-builder", inputs: { formId: { classPropertyName: "formId", publicName: "formId", isSignal: true, isRequired: false, transformFunction: null } }, providers: [FormsStoreService], ngImport: i0, template: "<header style=\"position:fixed;width:100%;left:0px;top:0px\">\r\n <mat-toolbar color=\"primary\">\r\n @if (closeButton) {\r\n <button mat-icon-button [style.color]=\"closeButton.color\" (click)=\"closeButton.onClick()\">\r\n <mat-icon>{{closeButton.icon}}</mat-icon>\r\n </button>\r\n }\r\n\r\n <!-- Navigation group -->\r\n <div class=\"nav-group\">\r\n <button mat-button routerLink=\"/\">Forms</button>\r\n <mat-icon>navigate_next</mat-icon>\r\n </div>\r\n\r\n <!-- Title input with optimized binding -->\r\n @if (selectHasFormId()) {\r\n <input [ngModel]=\"titleValue()\" (ngModelChange)=\"setTitleValue($event)\" class=\"section-title-input\" placeholder=\"Enter Form Title\">\r\n }\r\n\r\n <span class=\"spacer\"></span>\r\n\r\n @defer (on viewport) {\r\n <lib-forms-builder-menu />\r\n } @placeholder {\r\n <div style=\"padding: 50px;display:flex;justify-content:center;align-items:center; text-align: center;\">\r\n <mat-spinner diameter=\"20\" />\r\n </div>\r\n\r\n }\r\n\r\n <span class=\"divider\">|</span>\r\n\r\n <!-- Persist to server: visible once local preview is in sync -->\r\n @if (!pendingExternalRefresh()) {\r\n <button mat-raised-button color=\"accent\" class=\"save-button\" [disabled]=\"!(canSaveForm())\" (click)=\"saveForm()\">\r\n <mat-icon style=\"width: 24px;\">cloud_upload</mat-icon>\r\n @if (selectFormBuilderIsBusy()) {\r\n <span class=\"save-text\">\r\n <span class=\"save-label\">{{(isNewForm()) ? 'Creating form...' : 'Saving changes...'}}</span>\r\n </span>\r\n } @else {\r\n <span class=\"save-text\">\r\n <span class=\"save-label\">{{(isNewForm()) ? 'Save New Form' : 'Save Changes'}}</span>\r\n @if (canSaveForm()) {\r\n <span class=\"save-sub\">Not saved to server yet</span>\r\n }\r\n </span>\r\n }\r\n </button>\r\n }\r\n\r\n <!-- Local sync: applies your changes to the builder preview \u00B7 does NOT save to server -->\r\n @if (pendingExternalRefresh()) {\r\n <button class=\"refresh-button\" matRipple matRippleColor=\"rgba(255,255,255,0.12)\" (click)=\"triggerRefreshNow()\">\r\n <span class=\"countdown-ring\">\r\n <mat-progress-spinner\r\n diameter=\"34\"\r\n mode=\"determinate\"\r\n [value]=\"refreshCountdown() * 20\">\r\n </mat-progress-spinner>\r\n <span class=\"countdown-number\">{{refreshCountdown()}}</span>\r\n </span>\r\n <span class=\"refresh-text\">\r\n <span class=\"refresh-label\">Apply Now</span>\r\n <span class=\"refresh-sub\">Preview updates in {{refreshCountdown()}}s</span>\r\n </span>\r\n <mat-icon class=\"refresh-chevron\">chevron_right</mat-icon>\r\n </button>\r\n }\r\n\r\n </mat-toolbar>\r\n</header>\r\n\r\n<!-- Main content with optimized loading -->\r\n@defer (on viewport) {\r\n<div class=\"container\">\r\n <div class=\"middle\">\r\n <br>\r\n @if (selectLoadingForm()) {\r\n <div class=\"loading-container\">\r\n <mat-spinner />\r\n </div>\r\n } @else {\r\n <lib-form-section-stepper />\r\n }\r\n <br>\r\n @if ((hasMissingConfigs()) && !(selectLoadingForm())) {\r\n <lib-missing-form-configs />\r\n }\r\n <!-- Updated time info -->\r\n @if (!(isNewForm())) {\r\n <div class=\"updated-time\">\r\n <mat-icon>update</mat-icon>\r\n <span>Updated {{ selectFormUpdated() }}</span>\r\n </div>\r\n }\r\n </div>\r\n\r\n @if (elementEditorOpen()) {\r\n <lib-input-editor style=\"max-width:480px;height:calc(100vh - 76px);\r\n position:sticky;\r\n top:76px;\r\n z-index:1\" cdkDrag cdkDragBoundary=\"container\" class=\"middle editor-container\" />\r\n }\r\n <!-- Missing fields section -->`\r\n\r\n\r\n</div>\r\n}@placeholder {\r\n<div style=\"padding: 50px;display:flex;justify-content:center;align-items:center; text-align: center;\">\r\n <mat-spinner diameter=\"50\" />\r\n</div>\r\n}", styles: [".container{display:flex;width:100%;height:calc(100% - 64px);padding-top:4em}.side{width:100px;background-color:var(--sem-error-surface)}.middle{flex-grow:1;height:calc(100vh - 68px);overflow:auto;background-color:none}.section-title-input{border:none;background-color:transparent;font-size:.8575em;font-weight:600;color:var(--lib-forms-on-primary);padding-top:12px;padding-bottom:12px;outline:none;width:100%;min-width:268px;transition:border-bottom-color .3s ease-in-out}.section-title-input:focus{border-bottom:1px solid var(--lib-forms-on-primary)}.missing-fields{position:fixed;bottom:0}.updated-time{display:flex;color:var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));gap:8px;align-items:center;line-height:normal;font-size:.875em;bottom:0;position:absolute;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);padding:8px;border-radius:4px}.nav-group{display:flex;align-items:center;gap:8px}.save-button{margin-left:8px;min-width:168px;height:44px}.save-button .save-text{display:flex;flex-direction:column;align-items:flex-start;gap:2px}.save-button .save-text .save-label{font-size:13px;font-weight:600;line-height:1;letter-spacing:.01em;white-space:nowrap}.save-button .save-text .save-sub{font-size:10px;line-height:1;opacity:.78;white-space:nowrap}.refresh-button{margin-left:8px;background:var(--mat-fab-small-container-color, var(--mat-sys-tertiary-container));color:var(--mat-sys-on-tertiary-container);border:1.5px solid var(--mat-sys-outline-variant);border-radius:10px;padding:4px 14px 4px 6px;cursor:pointer;display:inline-flex;align-items:center;gap:12px;height:44px;width:fit-content;box-shadow:0 2px 12px color-mix(in srgb,var(--lib-forms-shadow-color) 18%,transparent);transition:box-shadow var(--lib-forms-duration-hover) var(--lib-forms-easing),transform var(--lib-forms-duration-hover) var(--lib-forms-easing);outline:none;overflow:hidden;position:relative}.refresh-button:hover{box-shadow:0 4px 20px color-mix(in srgb,var(--lib-forms-shadow-color) 28%,transparent);transform:translateY(-1px)}.refresh-button:active{transform:translateY(0);box-shadow:0 1px 6px color-mix(in srgb,var(--lib-forms-shadow-color) 12%,transparent)}.refresh-button .countdown-ring{position:relative;width:34px;height:34px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.refresh-button .countdown-ring mat-progress-spinner{position:absolute;inset:0;--mdc-circular-progress-active-indicator-color: var(--mat-sys-on-tertiary-container);--mdc-circular-progress-track-color: color-mix(in srgb, var(--mat-sys-on-tertiary-container) 18%, transparent)}.refresh-button .countdown-ring .countdown-number{font-size:11px;font-weight:600;line-height:1;z-index:1;letter-spacing:-.3px;color:var(--mat-sys-on-tertiary-container)}.refresh-button .refresh-text{display:flex;flex-direction:column;align-items:flex-start;gap:3px}.refresh-button .refresh-text .refresh-label{font-size:13px;font-weight:600;line-height:1;letter-spacing:.01em;white-space:nowrap;color:var(--mat-sys-on-tertiary-container)}.refresh-button .refresh-text .refresh-sub{font-size:10px;line-height:1;opacity:.68;white-space:nowrap;color:var(--mat-sys-on-tertiary-container)}.refresh-button .refresh-chevron{font-size:18px;width:18px;height:18px;opacity:.65;flex-shrink:0;color:var(--mat-sys-on-tertiary-container)}.loading-container{display:flex;height:calc(100% - 150px);justify-content:center;align-items:center}.editor-container{max-width:500px}.divider{margin:0 8px;opacity:.5}app-missing-form-configs{position:absolute;bottom:0;right:0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i8.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$2.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: i1$2.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$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { 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: MatRippleModule }, { kind: "directive", type: i7.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i7$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, deferBlockDependencies: [() => [import('./ngx-t-forms-forms-builder-menu.component-hK9C4vAa.mjs').then(m => m.FormsBuilderMenuComponent)], () => [i3$1.MatIcon, i4.MatProgressSpinner, i1$3.CdkDrag, import('./ngx-t-forms-input-editor.component-CxXMETLl.mjs').then(m => m.InputEditorComponent), import('./ngx-t-forms-form-section-stepper.component-tGbPKHM6.mjs').then(m => m.FormSectionStepperComponent), import('./ngx-t-forms-missing-form-configs.component-CDIajZxP.mjs').then(m => m.MissingFormConfigsComponent)]] }); }
13913
14381
  }
13914
- i0.ɵɵngDeclareClassMetadataAsync({ minVersion: "18.0.0", version: "21.2.12", ngImport: i0, type: FormBuilderComponent, resolveDeferredDeps: () => [import('./ngx-t-forms-forms-builder-menu.component-BaBBPuXH.mjs').then(m => m.FormsBuilderMenuComponent), import('./ngx-t-forms-input-editor.component-CfaTar-x.mjs').then(m => m.InputEditorComponent), import('./ngx-t-forms-form-section-stepper.component-_cQl_olU.mjs').then(m => m.FormSectionStepperComponent), import('./ngx-t-forms-missing-form-configs.component-CSQ_Qtef.mjs').then(m => m.MissingFormConfigsComponent)], resolveMetadata: (FormsBuilderMenuComponent, InputEditorComponent, FormSectionStepperComponent, MissingFormConfigsComponent) => ({ decorators: [{
14382
+ i0.ɵɵngDeclareClassMetadataAsync({ minVersion: "18.0.0", version: "21.2.12", ngImport: i0, type: FormBuilderComponent, resolveDeferredDeps: () => [import('./ngx-t-forms-forms-builder-menu.component-hK9C4vAa.mjs').then(m => m.FormsBuilderMenuComponent), import('./ngx-t-forms-input-editor.component-CxXMETLl.mjs').then(m => m.InputEditorComponent), import('./ngx-t-forms-form-section-stepper.component-tGbPKHM6.mjs').then(m => m.FormSectionStepperComponent), import('./ngx-t-forms-missing-form-configs.component-CDIajZxP.mjs').then(m => m.MissingFormConfigsComponent)], resolveMetadata: (FormsBuilderMenuComponent, InputEditorComponent, FormSectionStepperComponent, MissingFormConfigsComponent) => ({ decorators: [{
13915
14383
  type: Component,
13916
14384
  args: [{ selector: 'lib-form-builder, app-form-builder', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
13917
14385
  CommonModule,
@@ -14552,6 +15020,7 @@ class TDynamicDataEditComponent {
14552
15020
  ElementEditorTypes.ConfigMscoaSegments,
14553
15021
  ElementEditorTypes.ChipOptionsCreator,
14554
15022
  ElementEditorTypes.FormPayloadProjection,
15023
+ ElementEditorTypes.PayloadTemplate,
14555
15024
  ]);
14556
15025
  this.#editorConfig$ = new BehaviorSubject(undefined);
14557
15026
  this.#data$ = new BehaviorSubject(undefined);
@@ -14835,9 +15304,9 @@ class TDynamicDataEditComponent {
14835
15304
  }
14836
15305
  }
14837
15306
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: TDynamicDataEditComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
14838
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: TDynamicDataEditComponent, isStandalone: true, selector: "lib-t-dynamic-data-edit", inputs: { editorConfig: { classPropertyName: "editorConfig", publicName: "editorConfig", isSignal: true, isRequired: false, transformFunction: null }, formInputs: { classPropertyName: "formInputs", publicName: "formInputs", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, validationErrors: { classPropertyName: "validationErrors", publicName: "validationErrors", isSignal: true, isRequired: false, transformFunction: null }, mscoaSaveCustomInput: { classPropertyName: "mscoaSaveCustomInput", publicName: "mscoaSaveCustomInput", isSignal: true, isRequired: false, transformFunction: null }, mscoaEditInput: { classPropertyName: "mscoaEditInput", publicName: "mscoaEditInput", isSignal: true, isRequired: false, transformFunction: null }, mscoaDeleteInput: { classPropertyName: "mscoaDeleteInput", publicName: "mscoaDeleteInput", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", blur: "blur" }, providers: [{ provide: NESTED_EDITOR_COMPONENT, useValue: TDynamicDataEditComponent }], ngImport: i0, template: "@defer {\n@if (( vm$ |async); as vm) {\n\n @if (vm.isFormFieldControl) {\n <!-- Editor types that resolve to a MatFormFieldControl render inside the field. -->\n <mat-form-field appearance=\"outline\" [color]=\"((validationErrors())||[]).length>0 ? 'warn' : 'primary'\"\n [floatLabel]=\"'always'\" [subscriptSizing]=\"'dynamic'\" [hintLabel]=\"vm.editorConfigValue?.hint||''\">\n <mat-label> {{ (vm. editorConfigValue)?.label }} </mat-label>\n @switch ((vm. editorConfigValue)?.editType) {\n @default {\n <lib-input-custom\n [id]=\"((vm.editorConfigValue)?.id)\"\n [inputConfig]=\"$any(vm.inputConfig)\"\n [placeholder]=\"(vm. editorConfigValue)?.placeholder ||'Enter value'\"\n [required]=\"!!(vm. editorConfigValue)?.required\"\n [disabled]=\"!!(vm.disabled)\"\n [ngModel]=\"(vm.value)\"\n (blur)=\"elementBlur($event)\"\n (input)=\"inputChange($event)\" ></lib-input-custom>\n\n\n }\n @case ( elementEditorTypes.Toggle) {\n <lib-mat-slider-toggle-editor\n [id]=\"((vm.editorConfigValue)?.id)\"\n [name]=\"((vm. editorConfigValue)?.name||'') \"\n [label]=\"((vm. editorConfigValue)?.label||'')\" [disabled]=\"(vm.disabled)||false\"\n (valueChange)=\"valueChanged(!!$event)\" [value]=\"$any(vm.value)\" [errors]=\"(validationErrors())||[]\">\n </lib-mat-slider-toggle-editor>\n\n }\n\n @case (elementEditorTypes.Range) {\n\n\n <lib-mat-slider-editor\n [id]=\"((vm.editorConfigValue)?.id)\"\n [format]=\"( vm.editorConfigValue)?.format \" [formatLabel]=\" formatLabel\"\n [disabled]=\"(vm.disabled)||false\" [max]=\"( vm.editorConfigValue)?.max || 100\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" [min]=\"( vm.editorConfigValue)?.min || 0\"\n (valueChange)=\"inputChange($event)\" [step]=\"( vm.editorConfigValue)?.step || 1\">\n\n\n </lib-mat-slider-editor>\n\n\n\n }\n\n @case (elementEditorTypes.OptionSelect) {\n\n <mat-select\n\n [value]=\"$any(vm.value)\" (selectionChange)=\"valueChanged($event.value)\"\n [disabled]=\"(vm.disabled)||false\">\n @for(option of ( vm.editorConfigValue)?.options || vm.dataOptions;track option.value){\n <mat-option [value]=\"option.value\">{{option.label}}</mat-option>\n }\n </mat-select>\n\n }\n\n @case (elementEditorTypes.RichTextEditor) {\n <lib-editor-js-input\n\n [id]=\"((vm.editorConfigValue)?.id)\"\n [value]=\"$any(vm.value)\" (valueChanged)=\"valueChanged($event)\"\n [disabled]=\"(vm.disabled)||false\" [inputConfig]=\"$any(data())\">\n </lib-editor-js-input>\n }\n\n @case (elementEditorTypes.MongoPipelineBuilder) {\n\n <lib-pipeline-generator [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" [getWorkflowOptions]=\"getWorkflowOptions$\"\n (valueChanged)=\"valueChanged($event)\"></lib-pipeline-generator>\n\n }\n @case (elementEditorTypes.MapMatOptionsKeys) {\n <lib-map-mat-options-keys [disabled]=\"(vm.disabled)||false\"\n [value]=\"$any(vm.value)\"\n [formInputs]=\"formInputs() || []\"\n [mapToData]=\"vm.dataOptions\"\n [errors]=\"(validationErrors())||[]\"\n (valueChanged)=\"valueChanged($event)\">\n </lib-map-mat-options-keys>\n\n }\n\n @case(elementEditorTypes.CalculatedFieldRules){\n\n <lib-calculated-field-rules [formInputs]=\"formInputs() ||[]\" [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" (valueChanged)=\"valueChanged($event)\"\n [mapToData]=\"vm.dataOptions\"></lib-calculated-field-rules>\n }\n\n @case(elementEditorTypes.Validators){\n\n <lib-validators-config [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" (valueChanged)=\"valueChanged($event)\" [formInputs]=\"formInputs() ||[]\"\n [mapToData]=\"vm.dataOptions\">\n </lib-validators-config>\n\n }\n @case(elementEditorTypes.ConfigMscoaAdditionalInputs){\n\n <lib-config-mscoa-additional-inputs [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" [getMscoaTree]=\"getMscoaTree$\" [mapToData]=\"vm.dataOptions\"\n (valueChanged)=\"valueChanged($event)\">\n </lib-config-mscoa-additional-inputs>\n\n }\n @case (elementEditorTypes.DataSourcePicker) {\n <lib-data-source-picker [id]=\"((vm.editorConfigValue)?.id)\" [disabled]=\"(vm.disabled)||false\" [editorConfig]=\"vm. editorConfigValue\"\n (valueChange)=\"valueChanged($event)\" [formInputs]=\"formInputs() ||[]\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\">\n </lib-data-source-picker>\n }\n @case (elementEditorTypes.ListLabelConfigEditor) {\n <lib-document-list-label-config-editor\n [id]=\"((vm.editorConfigValue)?.id)\"\n [formInputs]=\"formInputs() ||[]\"\n [disabled]=\"(vm.disabled)||false\"\n [editorConfig]=\"vm. editorConfigValue\"\n (valueChange)=\"valueChanged($event)\"\n [value]=\"$any(vm.value)\" [mapToData]=\"vm.dataOptions\"\n [errors]=\"(validationErrors())||[]\">\n\n </lib-document-list-label-config-editor>\n }\n @case(\n elementEditorTypes.WorkflowPicker\n ){\n <lib-t-workflow-picker [id]=\"((vm.editorConfigValue)?.id)\" [disabled]=\"(vm.disabled)||false\" [getWorkflowOptions]=\"getWorkflowOptions$\"\n (valueChanged)=\"valueChanged($event)\" [value]=\"$any(vm.value)\" [errors]=\"(validationErrors())||[]\"></lib-t-workflow-picker>\n }\n @case (\n elementEditorTypes.RecordListManager\n ) {\n <lib-record-list-manager\n [id]=\"((vm.editorConfigValue)?.id)\"\n [editorConfig]=\"vm.editorConfigValue\" [disabled]=\"(vm.disabled)||false\"\n [formInputs]=\"formInputs() ||[]\" [mapToData]=\"vm.dataOptions\" (valueChange)=\"valueChanged($event)\"\n\n [value]=\"$any(vm.value)\" [errors]=\"(validationErrors())||[]\"></lib-record-list-manager>\n }\n }\n\n @if (vm.inputHasBlurFunction) {\n <button [matTooltip]=\"blurFunctionTooltip((vm.editorConfigValue)?.blurHandle)\"\n [disabled]=\"(vm.disabled)\" [color]=\"blurOff?'':'primary'\" (click)=\"blurOff=!blurOff\" matSuffix\n mat-icon-button>\n <mat-icon>{{\n blurOff?'blur_off':'blur_on'\n }}\n\n\n </mat-icon>\n </button>\n }\n </mat-form-field>\n } @else {\n <!-- Editor types backed by plain (signal-based) components render outside\n the field, since they are not MatFormFieldControls. They are wrapped to\n mirror the outline mat-form-field appearance: the fieldset draws the\n outline, its legend is the notched floating label, and the hint renders\n as a subscript below the box. -->\n <div class=\"non-control-editor\">\n <fieldset class=\"non-control-editor__field\">\n @if ((vm. editorConfigValue)?.label) {\n <legend class=\"non-control-editor__label\">{{ (vm. editorConfigValue)?.label }}</legend>\n }\n @switch ((vm. editorConfigValue)?.editType) {\n\n @case (elementEditorTypes.ChipSelect) {\n\n <lib-mat-chip-list-editor\n [id]=\"((vm.editorConfigValue)?.id)\"\n [multiple]=\"!!vm.editorConfigValue?.multipleSelection\"\n [disabled]=\"(vm.disabled)||false\"\n [options]=\"(vm.editorConfigValue)?.options || vm.dataOptions\"\n [required]=\"!!( vm.editorConfigValue)?.required\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\"\n (valueChange)=\" valueChanged($event)\"></lib-mat-chip-list-editor>\n\n\n }\n\n @case (elementEditorTypes.SelectionOptions) {\n\n <lib-selection-options-editor\n [id]=\"((vm.editorConfigValue)?.id)\"\n [errors]=\"(validationErrors())||[]\" [disabled]=\"(vm.disabled)||false\"\n [options]=\"$any(vm.value) || []\" (valueChanged)=\"valueChanged($event)\"></lib-selection-options-editor>\n }\n\n @case (\n elementEditorTypes.ApiCall) {\n\n <lib-rest-api-call-setup\n [id]=\"((vm.editorConfigValue)?.id)\"\n [postmanCollectionConfig]=\"(vm.editorConfigValue)?.postmanCollectionConfig\"\n [httpGetDataFunction]=\"(vm.editorConfigValue)?.httpGetDataFunction\" [disabled]=\"(vm.disabled)||false\"\n [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" (valueChanged)=\"valueChanged($event)\">\n\n </lib-rest-api-call-setup>\n\n }\n\n @case (elementEditorTypes.ApiValueAccessRules) {\n\n\n\n <lib-api-value-access-rules [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\"\n [formInputs]=\"formInputs() ||[]\"\n\n [postmanCollectionConfig]=\"(vm.editorConfigValue)?.postmanCollectionConfig\" [mapToData]=\"vm.dataOptions\"\n (valueChanged)=\"valueChanged($event)\">\n </lib-api-value-access-rules>\n\n }\n\n @case (elementEditorTypes.FormInputSelector)\n {\n\n <lib-form-input-selector [id]=\"((vm.editorConfigValue)?.id)\" [disabled]=\"(vm.disabled)||false\" [formInputs]=\"formInputs() ||[]\"\n [errors]=\"(validationErrors())||[]\" [value]=\"$any(vm.value) || []\" (change)=\"valueChanged($event)\">\n </lib-form-input-selector>\n }\n\n @case (\n elementEditorTypes.RequiredInputs\n ){\n\n <lib-required-inputs [formInputs]=\"formInputs() ||[]\" [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" (valueChanged)=\"valueChanged($event)\">\n </lib-required-inputs>\n }\n\n @case(elementEditorTypes.ConfigMscoaSegments){\n\n <lib-mscoa-segment-config [disabled]=\"(vm.disabled)||false\" [id]=\"((vm.editorConfigValue)?.id)\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" [getMscoaTree]=\"getMscoaTree$\" [dataValue]=\"$any(vm.dataValue)\"\n [isCashSegmentConfig]=\"vm.editorConfigValue?.deepBind?.at(-1) === 'cashSegments'\"\n [saveCustomInput]=\"mscoaSaveCustomInput()\"\n [editSegmentInput]=\"mscoaEditInput()\"\n [deleteSegmentInput]=\"mscoaDeleteInput()\"\n [showAllSegments]=\"vm.dataOptions\" (valueChanged)=\"valueChanged($event)\"></lib-mscoa-segment-config>\n }\n @case (elementEditorTypes.ChipOptionsCreator) {\n <lib-chip-options-creator-editor [id]=\"((vm.editorConfigValue)?.id)\" [disabled]=\"(vm.disabled)||false\" (valueChange)=\"valueChanged($event)\"\n [value]=\"$any(vm.value)\" [errors]=\"(validationErrors())||[]\">\n\n </lib-chip-options-creator-editor>\n\n }\n @case (elementEditorTypes.FormPayloadProjection) {\n <lib-form-payload-projection [disabled]=\"(vm.disabled)||false\" [value]=\"$any(vm.value)\"\n [formInputs]=\"formInputs() ||[]\" [errors]=\"(validationErrors())||[]\"\n (valueChanged)=\"valueChanged($event)\">\n </lib-form-payload-projection>\n\n }\n }\n </fieldset>\n\n @if ((vm. editorConfigValue)?.hint) {\n <small class=\"non-control-editor__hint\">{{ (vm. editorConfigValue)?.hint }}</small>\n }\n </div>\n }\n\n @if (!(vm.value) && (vm. editorConfigValue)?.required ) {\n <mat-error>\n {{ (vm. editorConfigValue)?.label }}'s is required\n </mat-error>}\n\n @for (error of (validationErrors())||[]; track $index) {\n <mat-error style=\" font-size: 0.75em;\n margin-left: 14px;\n \">\n\n {{error.message}}</mat-error>\n }\n\n}\n\n}@error {\n<mat-card>\n <mat-card-content>\n\n <span>\n Failed to load form inputs\n </span>\n </mat-card-content>\n</mat-card>\n}\n\n\n\n<!-- -\n `TableConfigSetup`\n- `ConditionalInputConfig`\n- `MatrixTable`-->\n", styles: [".showItemValue{opacity:.6}.non-control-editor{display:flex;flex-direction:column;width:100%}.non-control-editor__field{margin:0;min-width:0;width:100%;box-sizing:border-box;display:flex;flex-direction:column;padding:.75rem;border:1px solid var(--lib-forms-outline-variant);border-radius:var(--mdc-outlined-text-field-container-shape, 4px);transition:border-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1)),box-shadow var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.non-control-editor__field:focus-within{border-color:var(--lib-forms-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--lib-forms-primary) 25%,transparent)}.non-control-editor__label{padding:0 .25rem;margin-left:.5rem;font-size:.75rem;font-weight:400;line-height:1;color:var(--lib-forms-on-surface-variant)}.non-control-editor__hint{margin-top:.5rem;padding:0 .875rem;font-size:.75rem;line-height:1.5;color:var(--lib-forms-on-surface-variant)}mat-form-field{width:100%}mat-slider{width:100%}.range{display:flex;align-items:center}.elementInfo{display:flex;align-items:center;justify-content:center;padding:0;height:24px;width:24px}.infoIcon{font-size:1em;height:16px;width:16px}.toggle-label{margin-left:5px;align-items:center;display:flex;font-weight:500;line-height:normal;justify-content:space-between;color:var(--lib-forms-primary)}\n"], dependencies: [{ kind: "ngmodule", type: MatFormFieldModule }, { kind: "ngmodule", type: MatSelectModule }, { kind: "ngmodule", type: MatButtonModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "ngmodule", type: MatCardModule }, { kind: "component", type: i3$2.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i3$2.MatCardContent, selector: "mat-card-content" }, { kind: "ngmodule", type: FormsModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, deferBlockDependencies: [() => [import('./ngx-t-forms-selection-options-editor.component-BSmmQQo3.mjs').then(m => m.SelectionOptionsEditorComponent), import('./ngx-t-forms-form-input-selector.component-vPJ9YksN.mjs').then(m => m.FormInputSelectorComponent), import('./ngx-t-forms-rest-api-call-setup.component-CCz3c0X_.mjs').then(m => m.RestApiCallSetupComponent), Promise.resolve().then(function () { return apiValueAccessRules_component; }).then(m => m.ApiValueAccessRulesComponent), import('./ngx-t-forms-required-inputs.component-D5M9c-1i.mjs').then(m => m.RequiredInputsComponent), import('./ngx-t-forms-pipeline-generator.component-1EuDUOtI.mjs').then(m => m.PipelineGeneratorComponent), import('./ngx-t-forms-calculated-field-rules.component-C_jwUGqr.mjs').then(m => m.CalculatedFieldRulesComponent), import('./ngx-t-forms-validators-config.component-DdKLxOr9.mjs').then(m => m.ValidatorsConfigComponent), import('./ngx-t-forms-config-mscoa-additional-inputs.component-D2tkeGrw.mjs').then(m => m.ConfigMscoaAdditionalInputsComponent), import('./ngx-t-forms-mat-slider-editor.component-CTSBrM-j.mjs').then(m => m.MatSliderEditorComponent), import('./ngx-t-forms-mscoa-segment-config.component-ByR5fNu5.mjs').then(m => m.MscoaSegmentConfigComponent), import('./ngx-t-forms-mat-slider-toggle-editor.component-CcYiwx-8.mjs').then(m => m.MatSliderToggleEditorComponent), import('./ngx-t-forms-mat-chip-list-editor.component-CT3wnaz8.mjs').then(m => m.MatChipListEditorComponent), i2.MatFormField, i2.MatLabel, i2.MatError, i2.MatSuffix, i8$1.MatSelect, i8$1.MatOption, i1$2.MatIconButton, i3$1.MatIcon, i5.MatTooltip, import('./ngx-t-forms-chip-options-creator-editor.component-BIoML988.mjs').then(m => m.ChipOptionsCreatorEditorComponent), import('./ngx-t-forms-data-source-picker.component-DHNyMfu5.mjs').then(m => m.DataSourcePickerComponent), import('./ngx-t-forms-document-list-label-config-editor.component-zM7mpZxt.mjs').then(m => m.DocumentListLabelConfigEditorComponent), import('./ngx-t-forms-t-workflow-picker.component-DqFMP1rZ.mjs').then(m => m.TWorkflowPickerComponent), import('./ngx-t-forms-editor-js-input.component-CB8iaZ8o.mjs').then(m => m.EditorJsInputComponent), import('./ngx-t-forms-record-list-manager.component-C-qKvSVR.mjs').then(m => m.RecordListManagerComponent), import('./ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs').then(m => m.FormPayloadProjectionComponent), import('./ngx-t-forms-input-custom.component-C-gshpIM.mjs').then(m => m.InputCustomComponent), i1$1.NgControlStatus, i1$1.RequiredValidator, i1$1.NgModel, import('./ngx-t-forms-map-mat-options-keys-B8ubWvEz.mjs').then(m => m.MapMatOptionsKeys), import('@angular/common').then(m => m.AsyncPipe)]] }); }
15307
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: TDynamicDataEditComponent, isStandalone: true, selector: "lib-t-dynamic-data-edit", inputs: { editorConfig: { classPropertyName: "editorConfig", publicName: "editorConfig", isSignal: true, isRequired: false, transformFunction: null }, formInputs: { classPropertyName: "formInputs", publicName: "formInputs", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, validationErrors: { classPropertyName: "validationErrors", publicName: "validationErrors", isSignal: true, isRequired: false, transformFunction: null }, mscoaSaveCustomInput: { classPropertyName: "mscoaSaveCustomInput", publicName: "mscoaSaveCustomInput", isSignal: true, isRequired: false, transformFunction: null }, mscoaEditInput: { classPropertyName: "mscoaEditInput", publicName: "mscoaEditInput", isSignal: true, isRequired: false, transformFunction: null }, mscoaDeleteInput: { classPropertyName: "mscoaDeleteInput", publicName: "mscoaDeleteInput", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", blur: "blur" }, providers: [{ provide: NESTED_EDITOR_COMPONENT, useValue: TDynamicDataEditComponent }], ngImport: i0, template: "@defer {\n@if (( vm$ |async); as vm) {\n\n @if (vm.isFormFieldControl) {\n <!-- Editor types that resolve to a MatFormFieldControl render inside the field. -->\n <mat-form-field appearance=\"outline\" [color]=\"((validationErrors())||[]).length>0 ? 'warn' : 'primary'\"\n [floatLabel]=\"'always'\" [subscriptSizing]=\"'dynamic'\" [hintLabel]=\"vm.editorConfigValue?.hint||''\">\n <mat-label> {{ (vm. editorConfigValue)?.label }} </mat-label>\n @switch ((vm. editorConfigValue)?.editType) {\n @default {\n <lib-input-custom\n [id]=\"((vm.editorConfigValue)?.id)\"\n [inputConfig]=\"$any(vm.inputConfig)\"\n [placeholder]=\"(vm. editorConfigValue)?.placeholder ||'Enter value'\"\n [required]=\"!!(vm. editorConfigValue)?.required\"\n [disabled]=\"!!(vm.disabled)\"\n [ngModel]=\"(vm.value)\"\n (blur)=\"elementBlur($event)\"\n (input)=\"inputChange($event)\" ></lib-input-custom>\n\n\n }\n @case ( elementEditorTypes.Toggle) {\n <lib-mat-slider-toggle-editor\n [id]=\"((vm.editorConfigValue)?.id)\"\n [name]=\"((vm. editorConfigValue)?.name||'') \"\n [label]=\"((vm. editorConfigValue)?.label||'')\" [disabled]=\"(vm.disabled)||false\"\n (valueChange)=\"valueChanged(!!$event)\" [value]=\"$any(vm.value)\" [errors]=\"(validationErrors())||[]\">\n </lib-mat-slider-toggle-editor>\n\n }\n\n @case (elementEditorTypes.Range) {\n\n\n <lib-mat-slider-editor\n [id]=\"((vm.editorConfigValue)?.id)\"\n [format]=\"( vm.editorConfigValue)?.format \" [formatLabel]=\" formatLabel\"\n [disabled]=\"(vm.disabled)||false\" [max]=\"( vm.editorConfigValue)?.max || 100\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" [min]=\"( vm.editorConfigValue)?.min || 0\"\n (valueChange)=\"inputChange($event)\" [step]=\"( vm.editorConfigValue)?.step || 1\">\n\n\n </lib-mat-slider-editor>\n\n\n\n }\n\n @case (elementEditorTypes.OptionSelect) {\n\n <mat-select\n\n [value]=\"$any(vm.value)\" (selectionChange)=\"valueChanged($event.value)\"\n [disabled]=\"(vm.disabled)||false\">\n @for(option of ( vm.editorConfigValue)?.options || vm.dataOptions;track option.value){\n <mat-option [value]=\"option.value\">{{option.label}}</mat-option>\n }\n </mat-select>\n\n }\n\n @case (elementEditorTypes.RichTextEditor) {\n <lib-editor-js-input\n\n [id]=\"((vm.editorConfigValue)?.id)\"\n [value]=\"$any(vm.value)\" (valueChanged)=\"valueChanged($event)\"\n [disabled]=\"(vm.disabled)||false\" [inputConfig]=\"$any(data())\">\n </lib-editor-js-input>\n }\n\n @case (elementEditorTypes.MongoPipelineBuilder) {\n\n <lib-pipeline-generator [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" [getWorkflowOptions]=\"getWorkflowOptions$\"\n (valueChanged)=\"valueChanged($event)\"></lib-pipeline-generator>\n\n }\n @case (elementEditorTypes.MapMatOptionsKeys) {\n <lib-map-mat-options-keys [disabled]=\"(vm.disabled)||false\"\n [value]=\"$any(vm.value)\"\n [formInputs]=\"formInputs() || []\"\n [mapToData]=\"vm.dataOptions\"\n [errors]=\"(validationErrors())||[]\"\n (valueChanged)=\"valueChanged($event)\">\n </lib-map-mat-options-keys>\n\n }\n\n @case(elementEditorTypes.CalculatedFieldRules){\n\n <lib-calculated-field-rules [formInputs]=\"formInputs() ||[]\" [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" (valueChanged)=\"valueChanged($event)\"\n [mapToData]=\"vm.dataOptions\"></lib-calculated-field-rules>\n }\n\n @case(elementEditorTypes.Validators){\n\n <lib-validators-config [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" (valueChanged)=\"valueChanged($event)\" [formInputs]=\"formInputs() ||[]\"\n [mapToData]=\"vm.dataOptions\">\n </lib-validators-config>\n\n }\n @case(elementEditorTypes.ConfigMscoaAdditionalInputs){\n\n <lib-config-mscoa-additional-inputs [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" [getMscoaTree]=\"getMscoaTree$\" [mapToData]=\"vm.dataOptions\"\n (valueChanged)=\"valueChanged($event)\">\n </lib-config-mscoa-additional-inputs>\n\n }\n @case (elementEditorTypes.DataSourcePicker) {\n <lib-data-source-picker [id]=\"((vm.editorConfigValue)?.id)\" [disabled]=\"(vm.disabled)||false\" [editorConfig]=\"vm. editorConfigValue\"\n (valueChange)=\"valueChanged($event)\" [formInputs]=\"formInputs() ||[]\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\">\n </lib-data-source-picker>\n }\n @case (elementEditorTypes.ListLabelConfigEditor) {\n <lib-document-list-label-config-editor\n [id]=\"((vm.editorConfigValue)?.id)\"\n [formInputs]=\"formInputs() ||[]\"\n [disabled]=\"(vm.disabled)||false\"\n [editorConfig]=\"vm. editorConfigValue\"\n (valueChange)=\"valueChanged($event)\"\n [value]=\"$any(vm.value)\" [mapToData]=\"vm.dataOptions\"\n [errors]=\"(validationErrors())||[]\">\n\n </lib-document-list-label-config-editor>\n }\n @case(\n elementEditorTypes.WorkflowPicker\n ){\n <lib-t-workflow-picker [id]=\"((vm.editorConfigValue)?.id)\" [disabled]=\"(vm.disabled)||false\" [getWorkflowOptions]=\"getWorkflowOptions$\"\n (valueChanged)=\"valueChanged($event)\" [value]=\"$any(vm.value)\" [errors]=\"(validationErrors())||[]\"></lib-t-workflow-picker>\n }\n @case (\n elementEditorTypes.RecordListManager\n ) {\n <lib-record-list-manager\n [id]=\"((vm.editorConfigValue)?.id)\"\n [editorConfig]=\"vm.editorConfigValue\" [disabled]=\"(vm.disabled)||false\"\n [formInputs]=\"formInputs() ||[]\" [mapToData]=\"vm.dataOptions\" (valueChange)=\"valueChanged($event)\"\n\n [value]=\"$any(vm.value)\" [errors]=\"(validationErrors())||[]\"></lib-record-list-manager>\n }\n }\n\n @if (vm.inputHasBlurFunction) {\n <button [matTooltip]=\"blurFunctionTooltip((vm.editorConfigValue)?.blurHandle)\"\n [disabled]=\"(vm.disabled)\" [color]=\"blurOff?'':'primary'\" (click)=\"blurOff=!blurOff\" matSuffix\n mat-icon-button>\n <mat-icon>{{\n blurOff?'blur_off':'blur_on'\n }}\n\n\n </mat-icon>\n </button>\n }\n </mat-form-field>\n } @else {\n <!-- Editor types backed by plain (signal-based) components render outside\n the field, since they are not MatFormFieldControls. They are wrapped to\n mirror the outline mat-form-field appearance: the fieldset draws the\n outline, its legend is the notched floating label, and the hint renders\n as a subscript below the box. -->\n <div class=\"non-control-editor\">\n <fieldset class=\"non-control-editor__field\">\n @if ((vm. editorConfigValue)?.label) {\n <legend class=\"non-control-editor__label\">{{ (vm. editorConfigValue)?.label }}</legend>\n }\n @switch ((vm. editorConfigValue)?.editType) {\n\n @case (elementEditorTypes.ChipSelect) {\n\n <lib-mat-chip-list-editor\n [id]=\"((vm.editorConfigValue)?.id)\"\n [multiple]=\"!!vm.editorConfigValue?.multipleSelection\"\n [disabled]=\"(vm.disabled)||false\"\n [options]=\"(vm.editorConfigValue)?.options || vm.dataOptions\"\n [required]=\"!!( vm.editorConfigValue)?.required\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\"\n (valueChange)=\" valueChanged($event)\"></lib-mat-chip-list-editor>\n\n\n }\n\n @case (elementEditorTypes.SelectionOptions) {\n\n <lib-selection-options-editor\n [id]=\"((vm.editorConfigValue)?.id)\"\n [errors]=\"(validationErrors())||[]\" [disabled]=\"(vm.disabled)||false\"\n [options]=\"$any(vm.value) || []\" (valueChanged)=\"valueChanged($event)\"></lib-selection-options-editor>\n }\n\n @case (\n elementEditorTypes.ApiCall) {\n\n <lib-rest-api-call-setup\n [id]=\"((vm.editorConfigValue)?.id)\"\n [postmanCollectionConfig]=\"(vm.editorConfigValue)?.postmanCollectionConfig\"\n [httpGetDataFunction]=\"(vm.editorConfigValue)?.httpGetDataFunction\" [disabled]=\"(vm.disabled)||false\"\n [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" (valueChanged)=\"valueChanged($event)\">\n\n </lib-rest-api-call-setup>\n\n }\n\n @case (elementEditorTypes.ApiValueAccessRules) {\n\n\n\n <lib-api-value-access-rules [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\"\n [formInputs]=\"formInputs() ||[]\"\n\n [postmanCollectionConfig]=\"(vm.editorConfigValue)?.postmanCollectionConfig\" [mapToData]=\"vm.dataOptions\"\n (valueChanged)=\"valueChanged($event)\">\n </lib-api-value-access-rules>\n\n }\n\n @case (elementEditorTypes.FormInputSelector)\n {\n\n <lib-form-input-selector [id]=\"((vm.editorConfigValue)?.id)\" [disabled]=\"(vm.disabled)||false\" [formInputs]=\"formInputs() ||[]\"\n [errors]=\"(validationErrors())||[]\" [value]=\"$any(vm.value) || []\" (change)=\"valueChanged($event)\">\n </lib-form-input-selector>\n }\n\n @case (\n elementEditorTypes.RequiredInputs\n ){\n\n <lib-required-inputs [formInputs]=\"formInputs() ||[]\" [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" (valueChanged)=\"valueChanged($event)\">\n </lib-required-inputs>\n }\n\n @case(elementEditorTypes.ConfigMscoaSegments){\n\n <lib-mscoa-segment-config [disabled]=\"(vm.disabled)||false\" [id]=\"((vm.editorConfigValue)?.id)\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" [getMscoaTree]=\"getMscoaTree$\" [dataValue]=\"$any(vm.dataValue)\"\n [isCashSegmentConfig]=\"vm.editorConfigValue?.deepBind?.at(-1) === 'cashSegments'\"\n [saveCustomInput]=\"mscoaSaveCustomInput()\"\n [editSegmentInput]=\"mscoaEditInput()\"\n [deleteSegmentInput]=\"mscoaDeleteInput()\"\n [showAllSegments]=\"vm.dataOptions\" (valueChanged)=\"valueChanged($event)\"></lib-mscoa-segment-config>\n }\n @case (elementEditorTypes.ChipOptionsCreator) {\n <lib-chip-options-creator-editor [id]=\"((vm.editorConfigValue)?.id)\" [disabled]=\"(vm.disabled)||false\" (valueChange)=\"valueChanged($event)\"\n [value]=\"$any(vm.value)\" [errors]=\"(validationErrors())||[]\">\n\n </lib-chip-options-creator-editor>\n\n }\n @case (elementEditorTypes.FormPayloadProjection) {\n <lib-form-payload-projection [disabled]=\"(vm.disabled)||false\" [value]=\"$any(vm.value)\"\n [formInputs]=\"formInputs() ||[]\" [errors]=\"(validationErrors())||[]\"\n (valueChanged)=\"valueChanged($event)\">\n </lib-form-payload-projection>\n\n }\n\n @case (elementEditorTypes.PayloadTemplate) {\n <lib-payload-template-editor [disabled]=\"(vm.disabled)||false\" [value]=\"$any(vm.value)\"\n [defaultTemplate]=\"$any((vm.editorConfigValue)?.defaultValue)\"\n [formInputs]=\"formInputs() ||[]\" [errors]=\"(validationErrors())||[]\"\n [id]=\"((vm.editorConfigValue)?.id)\" (valueChanged)=\"valueChanged($event)\">\n </lib-payload-template-editor>\n\n }\n }\n </fieldset>\n\n @if ((vm. editorConfigValue)?.hint) {\n <small class=\"non-control-editor__hint\">{{ (vm. editorConfigValue)?.hint }}</small>\n }\n </div>\n }\n\n @if (!(vm.value) && (vm. editorConfigValue)?.required ) {\n <mat-error>\n {{ (vm. editorConfigValue)?.label }}'s is required\n </mat-error>}\n\n @for (error of (validationErrors())||[]; track $index) {\n <mat-error style=\" font-size: 0.75em;\n margin-left: 14px;\n \">\n\n {{error.message}}</mat-error>\n }\n\n}\n\n}@error {\n<mat-card>\n <mat-card-content>\n\n <span>\n Failed to load form inputs\n </span>\n </mat-card-content>\n</mat-card>\n}\n\n\n\n<!-- -\n `TableConfigSetup`\n- `ConditionalInputConfig`\n- `MatrixTable`-->\n", styles: [".showItemValue{opacity:.6}.non-control-editor{display:flex;flex-direction:column;width:100%}.non-control-editor__field{margin:0;min-width:0;width:100%;box-sizing:border-box;display:flex;flex-direction:column;padding:.75rem;border:1px solid var(--lib-forms-outline-variant);border-radius:var(--mdc-outlined-text-field-container-shape, 4px);transition:border-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1)),box-shadow var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.non-control-editor__field:focus-within{border-color:var(--lib-forms-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--lib-forms-primary) 25%,transparent)}.non-control-editor__label{padding:0 .25rem;margin-left:.5rem;font-size:.75rem;font-weight:400;line-height:1;color:var(--lib-forms-on-surface-variant)}.non-control-editor__hint{margin-top:.5rem;padding:0 .875rem;font-size:.75rem;line-height:1.5;color:var(--lib-forms-on-surface-variant)}mat-form-field{width:100%}mat-slider{width:100%}.range{display:flex;align-items:center}.elementInfo{display:flex;align-items:center;justify-content:center;padding:0;height:24px;width:24px}.infoIcon{font-size:1em;height:16px;width:16px}.toggle-label{margin-left:5px;align-items:center;display:flex;font-weight:500;line-height:normal;justify-content:space-between;color:var(--lib-forms-primary)}\n"], dependencies: [{ kind: "ngmodule", type: MatFormFieldModule }, { kind: "ngmodule", type: MatSelectModule }, { kind: "ngmodule", type: MatButtonModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "ngmodule", type: MatCardModule }, { kind: "component", type: i3$2.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i3$2.MatCardContent, selector: "mat-card-content" }, { kind: "ngmodule", type: FormsModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, deferBlockDependencies: [() => [import('./ngx-t-forms-selection-options-editor.component-WfuGdtvK.mjs').then(m => m.SelectionOptionsEditorComponent), import('./ngx-t-forms-form-input-selector.component-xIalL_cs.mjs').then(m => m.FormInputSelectorComponent), import('./ngx-t-forms-rest-api-call-setup.component-CkLePXoO.mjs').then(m => m.RestApiCallSetupComponent), Promise.resolve().then(function () { return apiValueAccessRules_component; }).then(m => m.ApiValueAccessRulesComponent), import('./ngx-t-forms-required-inputs.component-ByBeNLXu.mjs').then(m => m.RequiredInputsComponent), import('./ngx-t-forms-pipeline-generator.component-COvr1j_v.mjs').then(m => m.PipelineGeneratorComponent), import('./ngx-t-forms-calculated-field-rules.component-B_3IbQjp.mjs').then(m => m.CalculatedFieldRulesComponent), import('./ngx-t-forms-validators-config.component-DgIVRSvF.mjs').then(m => m.ValidatorsConfigComponent), import('./ngx-t-forms-config-mscoa-additional-inputs.component-BX3zJs-A.mjs').then(m => m.ConfigMscoaAdditionalInputsComponent), import('./ngx-t-forms-mat-slider-editor.component-CTSBrM-j.mjs').then(m => m.MatSliderEditorComponent), import('./ngx-t-forms-mscoa-segment-config.component-CjuxTqfX.mjs').then(m => m.MscoaSegmentConfigComponent), import('./ngx-t-forms-mat-slider-toggle-editor.component-CcYiwx-8.mjs').then(m => m.MatSliderToggleEditorComponent), import('./ngx-t-forms-mat-chip-list-editor.component-CuOsHNXe.mjs').then(m => m.MatChipListEditorComponent), i2.MatFormField, i2.MatLabel, i2.MatError, i2.MatSuffix, i8$1.MatSelect, i8$1.MatOption, i1$2.MatIconButton, i3$1.MatIcon, i5.MatTooltip, import('./ngx-t-forms-chip-options-creator-editor.component-uTCOa48g.mjs').then(m => m.ChipOptionsCreatorEditorComponent), import('./ngx-t-forms-data-source-picker.component-z0l9WEw7.mjs').then(m => m.DataSourcePickerComponent), import('./ngx-t-forms-document-list-label-config-editor.component-PW2XiPiH.mjs').then(m => m.DocumentListLabelConfigEditorComponent), import('./ngx-t-forms-t-workflow-picker.component-DqFMP1rZ.mjs').then(m => m.TWorkflowPickerComponent), import('./ngx-t-forms-editor-js-input.component-cxob42pE.mjs').then(m => m.EditorJsInputComponent), import('./ngx-t-forms-record-list-manager.component-CY4GnAOb.mjs').then(m => m.RecordListManagerComponent), import('./ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs').then(m => m.FormPayloadProjectionComponent), import('./ngx-t-forms-payload-template-editor.component-sqY3bYiZ.mjs').then(m => m.PayloadTemplateEditorComponent), import('./ngx-t-forms-input-custom.component-pUshbxSM.mjs').then(m => m.InputCustomComponent), i1$1.NgControlStatus, i1$1.RequiredValidator, i1$1.NgModel, import('./ngx-t-forms-map-mat-options-keys-BbfC5vYI.mjs').then(m => m.MapMatOptionsKeys), import('@angular/common').then(m => m.AsyncPipe)]] }); }
14839
15308
  }
14840
- i0.ɵɵngDeclareClassMetadataAsync({ minVersion: "18.0.0", version: "21.2.12", ngImport: i0, type: TDynamicDataEditComponent, resolveDeferredDeps: () => [import('./ngx-t-forms-selection-options-editor.component-BSmmQQo3.mjs').then(m => m.SelectionOptionsEditorComponent), import('./ngx-t-forms-form-input-selector.component-vPJ9YksN.mjs').then(m => m.FormInputSelectorComponent), import('./ngx-t-forms-rest-api-call-setup.component-CCz3c0X_.mjs').then(m => m.RestApiCallSetupComponent), Promise.resolve().then(function () { return apiValueAccessRules_component; }).then(m => m.ApiValueAccessRulesComponent), import('./ngx-t-forms-required-inputs.component-D5M9c-1i.mjs').then(m => m.RequiredInputsComponent), import('./ngx-t-forms-pipeline-generator.component-1EuDUOtI.mjs').then(m => m.PipelineGeneratorComponent), import('./ngx-t-forms-calculated-field-rules.component-C_jwUGqr.mjs').then(m => m.CalculatedFieldRulesComponent), import('./ngx-t-forms-validators-config.component-DdKLxOr9.mjs').then(m => m.ValidatorsConfigComponent), import('./ngx-t-forms-config-mscoa-additional-inputs.component-D2tkeGrw.mjs').then(m => m.ConfigMscoaAdditionalInputsComponent), import('./ngx-t-forms-mat-slider-editor.component-CTSBrM-j.mjs').then(m => m.MatSliderEditorComponent), import('./ngx-t-forms-mscoa-segment-config.component-ByR5fNu5.mjs').then(m => m.MscoaSegmentConfigComponent), import('./ngx-t-forms-mat-slider-toggle-editor.component-CcYiwx-8.mjs').then(m => m.MatSliderToggleEditorComponent), import('./ngx-t-forms-mat-chip-list-editor.component-CT3wnaz8.mjs').then(m => m.MatChipListEditorComponent), import('./ngx-t-forms-chip-options-creator-editor.component-BIoML988.mjs').then(m => m.ChipOptionsCreatorEditorComponent), import('./ngx-t-forms-data-source-picker.component-DHNyMfu5.mjs').then(m => m.DataSourcePickerComponent), import('./ngx-t-forms-document-list-label-config-editor.component-zM7mpZxt.mjs').then(m => m.DocumentListLabelConfigEditorComponent), import('./ngx-t-forms-t-workflow-picker.component-DqFMP1rZ.mjs').then(m => m.TWorkflowPickerComponent), import('./ngx-t-forms-editor-js-input.component-CB8iaZ8o.mjs').then(m => m.EditorJsInputComponent), import('./ngx-t-forms-record-list-manager.component-C-qKvSVR.mjs').then(m => m.RecordListManagerComponent), import('./ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs').then(m => m.FormPayloadProjectionComponent), import('./ngx-t-forms-input-custom.component-C-gshpIM.mjs').then(m => m.InputCustomComponent), import('./ngx-t-forms-map-mat-options-keys-B8ubWvEz.mjs').then(m => m.MapMatOptionsKeys), import('@angular/common').then(m => m.AsyncPipe)], resolveMetadata: (SelectionOptionsEditorComponent, FormInputSelectorComponent, RestApiCallSetupComponent, ApiValueAccessRulesComponent, RequiredInputsComponent, PipelineGeneratorComponent, CalculatedFieldRulesComponent, ValidatorsConfigComponent, ConfigMscoaAdditionalInputsComponent, MatSliderEditorComponent, MscoaSegmentConfigComponent, MatSliderToggleEditorComponent, MatChipListEditorComponent, ChipOptionsCreatorEditorComponent, DataSourcePickerComponent, DocumentListLabelConfigEditorComponent, TWorkflowPickerComponent, EditorJsInputComponent, RecordListManagerComponent, FormPayloadProjectionComponent, InputCustomComponent, MapMatOptionsKeys, AsyncPipe) => ({ decorators: [{
15309
+ i0.ɵɵngDeclareClassMetadataAsync({ minVersion: "18.0.0", version: "21.2.12", ngImport: i0, type: TDynamicDataEditComponent, resolveDeferredDeps: () => [import('./ngx-t-forms-selection-options-editor.component-WfuGdtvK.mjs').then(m => m.SelectionOptionsEditorComponent), import('./ngx-t-forms-form-input-selector.component-xIalL_cs.mjs').then(m => m.FormInputSelectorComponent), import('./ngx-t-forms-rest-api-call-setup.component-CkLePXoO.mjs').then(m => m.RestApiCallSetupComponent), Promise.resolve().then(function () { return apiValueAccessRules_component; }).then(m => m.ApiValueAccessRulesComponent), import('./ngx-t-forms-required-inputs.component-ByBeNLXu.mjs').then(m => m.RequiredInputsComponent), import('./ngx-t-forms-pipeline-generator.component-COvr1j_v.mjs').then(m => m.PipelineGeneratorComponent), import('./ngx-t-forms-calculated-field-rules.component-B_3IbQjp.mjs').then(m => m.CalculatedFieldRulesComponent), import('./ngx-t-forms-validators-config.component-DgIVRSvF.mjs').then(m => m.ValidatorsConfigComponent), import('./ngx-t-forms-config-mscoa-additional-inputs.component-BX3zJs-A.mjs').then(m => m.ConfigMscoaAdditionalInputsComponent), import('./ngx-t-forms-mat-slider-editor.component-CTSBrM-j.mjs').then(m => m.MatSliderEditorComponent), import('./ngx-t-forms-mscoa-segment-config.component-CjuxTqfX.mjs').then(m => m.MscoaSegmentConfigComponent), import('./ngx-t-forms-mat-slider-toggle-editor.component-CcYiwx-8.mjs').then(m => m.MatSliderToggleEditorComponent), import('./ngx-t-forms-mat-chip-list-editor.component-CuOsHNXe.mjs').then(m => m.MatChipListEditorComponent), import('./ngx-t-forms-chip-options-creator-editor.component-uTCOa48g.mjs').then(m => m.ChipOptionsCreatorEditorComponent), import('./ngx-t-forms-data-source-picker.component-z0l9WEw7.mjs').then(m => m.DataSourcePickerComponent), import('./ngx-t-forms-document-list-label-config-editor.component-PW2XiPiH.mjs').then(m => m.DocumentListLabelConfigEditorComponent), import('./ngx-t-forms-t-workflow-picker.component-DqFMP1rZ.mjs').then(m => m.TWorkflowPickerComponent), import('./ngx-t-forms-editor-js-input.component-cxob42pE.mjs').then(m => m.EditorJsInputComponent), import('./ngx-t-forms-record-list-manager.component-CY4GnAOb.mjs').then(m => m.RecordListManagerComponent), import('./ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs').then(m => m.FormPayloadProjectionComponent), import('./ngx-t-forms-payload-template-editor.component-sqY3bYiZ.mjs').then(m => m.PayloadTemplateEditorComponent), import('./ngx-t-forms-input-custom.component-pUshbxSM.mjs').then(m => m.InputCustomComponent), import('./ngx-t-forms-map-mat-options-keys-BbfC5vYI.mjs').then(m => m.MapMatOptionsKeys), import('@angular/common').then(m => m.AsyncPipe)], resolveMetadata: (SelectionOptionsEditorComponent, FormInputSelectorComponent, RestApiCallSetupComponent, ApiValueAccessRulesComponent, RequiredInputsComponent, PipelineGeneratorComponent, CalculatedFieldRulesComponent, ValidatorsConfigComponent, ConfigMscoaAdditionalInputsComponent, MatSliderEditorComponent, MscoaSegmentConfigComponent, MatSliderToggleEditorComponent, MatChipListEditorComponent, ChipOptionsCreatorEditorComponent, DataSourcePickerComponent, DocumentListLabelConfigEditorComponent, TWorkflowPickerComponent, EditorJsInputComponent, RecordListManagerComponent, FormPayloadProjectionComponent, PayloadTemplateEditorComponent, InputCustomComponent, MapMatOptionsKeys, AsyncPipe) => ({ decorators: [{
14841
15310
  type: Component,
14842
15311
  args: [{ selector: 'lib-t-dynamic-data-edit', imports: [
14843
15312
  AsyncPipe,
@@ -14867,10 +15336,11 @@ i0.ɵɵngDeclareClassMetadataAsync({ minVersion: "18.0.0", version: "21.2.12", n
14867
15336
  EditorJsInputComponent,
14868
15337
  RecordListManagerComponent,
14869
15338
  FormPayloadProjectionComponent,
15339
+ PayloadTemplateEditorComponent,
14870
15340
  InputCustomComponent,
14871
15341
  FormsModule,
14872
15342
  MapMatOptionsKeys,
14873
- ], changeDetection: ChangeDetectionStrategy.OnPush, providers: [{ provide: NESTED_EDITOR_COMPONENT, useValue: TDynamicDataEditComponent }], template: "@defer {\n@if (( vm$ |async); as vm) {\n\n @if (vm.isFormFieldControl) {\n <!-- Editor types that resolve to a MatFormFieldControl render inside the field. -->\n <mat-form-field appearance=\"outline\" [color]=\"((validationErrors())||[]).length>0 ? 'warn' : 'primary'\"\n [floatLabel]=\"'always'\" [subscriptSizing]=\"'dynamic'\" [hintLabel]=\"vm.editorConfigValue?.hint||''\">\n <mat-label> {{ (vm. editorConfigValue)?.label }} </mat-label>\n @switch ((vm. editorConfigValue)?.editType) {\n @default {\n <lib-input-custom\n [id]=\"((vm.editorConfigValue)?.id)\"\n [inputConfig]=\"$any(vm.inputConfig)\"\n [placeholder]=\"(vm. editorConfigValue)?.placeholder ||'Enter value'\"\n [required]=\"!!(vm. editorConfigValue)?.required\"\n [disabled]=\"!!(vm.disabled)\"\n [ngModel]=\"(vm.value)\"\n (blur)=\"elementBlur($event)\"\n (input)=\"inputChange($event)\" ></lib-input-custom>\n\n\n }\n @case ( elementEditorTypes.Toggle) {\n <lib-mat-slider-toggle-editor\n [id]=\"((vm.editorConfigValue)?.id)\"\n [name]=\"((vm. editorConfigValue)?.name||'') \"\n [label]=\"((vm. editorConfigValue)?.label||'')\" [disabled]=\"(vm.disabled)||false\"\n (valueChange)=\"valueChanged(!!$event)\" [value]=\"$any(vm.value)\" [errors]=\"(validationErrors())||[]\">\n </lib-mat-slider-toggle-editor>\n\n }\n\n @case (elementEditorTypes.Range) {\n\n\n <lib-mat-slider-editor\n [id]=\"((vm.editorConfigValue)?.id)\"\n [format]=\"( vm.editorConfigValue)?.format \" [formatLabel]=\" formatLabel\"\n [disabled]=\"(vm.disabled)||false\" [max]=\"( vm.editorConfigValue)?.max || 100\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" [min]=\"( vm.editorConfigValue)?.min || 0\"\n (valueChange)=\"inputChange($event)\" [step]=\"( vm.editorConfigValue)?.step || 1\">\n\n\n </lib-mat-slider-editor>\n\n\n\n }\n\n @case (elementEditorTypes.OptionSelect) {\n\n <mat-select\n\n [value]=\"$any(vm.value)\" (selectionChange)=\"valueChanged($event.value)\"\n [disabled]=\"(vm.disabled)||false\">\n @for(option of ( vm.editorConfigValue)?.options || vm.dataOptions;track option.value){\n <mat-option [value]=\"option.value\">{{option.label}}</mat-option>\n }\n </mat-select>\n\n }\n\n @case (elementEditorTypes.RichTextEditor) {\n <lib-editor-js-input\n\n [id]=\"((vm.editorConfigValue)?.id)\"\n [value]=\"$any(vm.value)\" (valueChanged)=\"valueChanged($event)\"\n [disabled]=\"(vm.disabled)||false\" [inputConfig]=\"$any(data())\">\n </lib-editor-js-input>\n }\n\n @case (elementEditorTypes.MongoPipelineBuilder) {\n\n <lib-pipeline-generator [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" [getWorkflowOptions]=\"getWorkflowOptions$\"\n (valueChanged)=\"valueChanged($event)\"></lib-pipeline-generator>\n\n }\n @case (elementEditorTypes.MapMatOptionsKeys) {\n <lib-map-mat-options-keys [disabled]=\"(vm.disabled)||false\"\n [value]=\"$any(vm.value)\"\n [formInputs]=\"formInputs() || []\"\n [mapToData]=\"vm.dataOptions\"\n [errors]=\"(validationErrors())||[]\"\n (valueChanged)=\"valueChanged($event)\">\n </lib-map-mat-options-keys>\n\n }\n\n @case(elementEditorTypes.CalculatedFieldRules){\n\n <lib-calculated-field-rules [formInputs]=\"formInputs() ||[]\" [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" (valueChanged)=\"valueChanged($event)\"\n [mapToData]=\"vm.dataOptions\"></lib-calculated-field-rules>\n }\n\n @case(elementEditorTypes.Validators){\n\n <lib-validators-config [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" (valueChanged)=\"valueChanged($event)\" [formInputs]=\"formInputs() ||[]\"\n [mapToData]=\"vm.dataOptions\">\n </lib-validators-config>\n\n }\n @case(elementEditorTypes.ConfigMscoaAdditionalInputs){\n\n <lib-config-mscoa-additional-inputs [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" [getMscoaTree]=\"getMscoaTree$\" [mapToData]=\"vm.dataOptions\"\n (valueChanged)=\"valueChanged($event)\">\n </lib-config-mscoa-additional-inputs>\n\n }\n @case (elementEditorTypes.DataSourcePicker) {\n <lib-data-source-picker [id]=\"((vm.editorConfigValue)?.id)\" [disabled]=\"(vm.disabled)||false\" [editorConfig]=\"vm. editorConfigValue\"\n (valueChange)=\"valueChanged($event)\" [formInputs]=\"formInputs() ||[]\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\">\n </lib-data-source-picker>\n }\n @case (elementEditorTypes.ListLabelConfigEditor) {\n <lib-document-list-label-config-editor\n [id]=\"((vm.editorConfigValue)?.id)\"\n [formInputs]=\"formInputs() ||[]\"\n [disabled]=\"(vm.disabled)||false\"\n [editorConfig]=\"vm. editorConfigValue\"\n (valueChange)=\"valueChanged($event)\"\n [value]=\"$any(vm.value)\" [mapToData]=\"vm.dataOptions\"\n [errors]=\"(validationErrors())||[]\">\n\n </lib-document-list-label-config-editor>\n }\n @case(\n elementEditorTypes.WorkflowPicker\n ){\n <lib-t-workflow-picker [id]=\"((vm.editorConfigValue)?.id)\" [disabled]=\"(vm.disabled)||false\" [getWorkflowOptions]=\"getWorkflowOptions$\"\n (valueChanged)=\"valueChanged($event)\" [value]=\"$any(vm.value)\" [errors]=\"(validationErrors())||[]\"></lib-t-workflow-picker>\n }\n @case (\n elementEditorTypes.RecordListManager\n ) {\n <lib-record-list-manager\n [id]=\"((vm.editorConfigValue)?.id)\"\n [editorConfig]=\"vm.editorConfigValue\" [disabled]=\"(vm.disabled)||false\"\n [formInputs]=\"formInputs() ||[]\" [mapToData]=\"vm.dataOptions\" (valueChange)=\"valueChanged($event)\"\n\n [value]=\"$any(vm.value)\" [errors]=\"(validationErrors())||[]\"></lib-record-list-manager>\n }\n }\n\n @if (vm.inputHasBlurFunction) {\n <button [matTooltip]=\"blurFunctionTooltip((vm.editorConfigValue)?.blurHandle)\"\n [disabled]=\"(vm.disabled)\" [color]=\"blurOff?'':'primary'\" (click)=\"blurOff=!blurOff\" matSuffix\n mat-icon-button>\n <mat-icon>{{\n blurOff?'blur_off':'blur_on'\n }}\n\n\n </mat-icon>\n </button>\n }\n </mat-form-field>\n } @else {\n <!-- Editor types backed by plain (signal-based) components render outside\n the field, since they are not MatFormFieldControls. They are wrapped to\n mirror the outline mat-form-field appearance: the fieldset draws the\n outline, its legend is the notched floating label, and the hint renders\n as a subscript below the box. -->\n <div class=\"non-control-editor\">\n <fieldset class=\"non-control-editor__field\">\n @if ((vm. editorConfigValue)?.label) {\n <legend class=\"non-control-editor__label\">{{ (vm. editorConfigValue)?.label }}</legend>\n }\n @switch ((vm. editorConfigValue)?.editType) {\n\n @case (elementEditorTypes.ChipSelect) {\n\n <lib-mat-chip-list-editor\n [id]=\"((vm.editorConfigValue)?.id)\"\n [multiple]=\"!!vm.editorConfigValue?.multipleSelection\"\n [disabled]=\"(vm.disabled)||false\"\n [options]=\"(vm.editorConfigValue)?.options || vm.dataOptions\"\n [required]=\"!!( vm.editorConfigValue)?.required\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\"\n (valueChange)=\" valueChanged($event)\"></lib-mat-chip-list-editor>\n\n\n }\n\n @case (elementEditorTypes.SelectionOptions) {\n\n <lib-selection-options-editor\n [id]=\"((vm.editorConfigValue)?.id)\"\n [errors]=\"(validationErrors())||[]\" [disabled]=\"(vm.disabled)||false\"\n [options]=\"$any(vm.value) || []\" (valueChanged)=\"valueChanged($event)\"></lib-selection-options-editor>\n }\n\n @case (\n elementEditorTypes.ApiCall) {\n\n <lib-rest-api-call-setup\n [id]=\"((vm.editorConfigValue)?.id)\"\n [postmanCollectionConfig]=\"(vm.editorConfigValue)?.postmanCollectionConfig\"\n [httpGetDataFunction]=\"(vm.editorConfigValue)?.httpGetDataFunction\" [disabled]=\"(vm.disabled)||false\"\n [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" (valueChanged)=\"valueChanged($event)\">\n\n </lib-rest-api-call-setup>\n\n }\n\n @case (elementEditorTypes.ApiValueAccessRules) {\n\n\n\n <lib-api-value-access-rules [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\"\n [formInputs]=\"formInputs() ||[]\"\n\n [postmanCollectionConfig]=\"(vm.editorConfigValue)?.postmanCollectionConfig\" [mapToData]=\"vm.dataOptions\"\n (valueChanged)=\"valueChanged($event)\">\n </lib-api-value-access-rules>\n\n }\n\n @case (elementEditorTypes.FormInputSelector)\n {\n\n <lib-form-input-selector [id]=\"((vm.editorConfigValue)?.id)\" [disabled]=\"(vm.disabled)||false\" [formInputs]=\"formInputs() ||[]\"\n [errors]=\"(validationErrors())||[]\" [value]=\"$any(vm.value) || []\" (change)=\"valueChanged($event)\">\n </lib-form-input-selector>\n }\n\n @case (\n elementEditorTypes.RequiredInputs\n ){\n\n <lib-required-inputs [formInputs]=\"formInputs() ||[]\" [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" (valueChanged)=\"valueChanged($event)\">\n </lib-required-inputs>\n }\n\n @case(elementEditorTypes.ConfigMscoaSegments){\n\n <lib-mscoa-segment-config [disabled]=\"(vm.disabled)||false\" [id]=\"((vm.editorConfigValue)?.id)\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" [getMscoaTree]=\"getMscoaTree$\" [dataValue]=\"$any(vm.dataValue)\"\n [isCashSegmentConfig]=\"vm.editorConfigValue?.deepBind?.at(-1) === 'cashSegments'\"\n [saveCustomInput]=\"mscoaSaveCustomInput()\"\n [editSegmentInput]=\"mscoaEditInput()\"\n [deleteSegmentInput]=\"mscoaDeleteInput()\"\n [showAllSegments]=\"vm.dataOptions\" (valueChanged)=\"valueChanged($event)\"></lib-mscoa-segment-config>\n }\n @case (elementEditorTypes.ChipOptionsCreator) {\n <lib-chip-options-creator-editor [id]=\"((vm.editorConfigValue)?.id)\" [disabled]=\"(vm.disabled)||false\" (valueChange)=\"valueChanged($event)\"\n [value]=\"$any(vm.value)\" [errors]=\"(validationErrors())||[]\">\n\n </lib-chip-options-creator-editor>\n\n }\n @case (elementEditorTypes.FormPayloadProjection) {\n <lib-form-payload-projection [disabled]=\"(vm.disabled)||false\" [value]=\"$any(vm.value)\"\n [formInputs]=\"formInputs() ||[]\" [errors]=\"(validationErrors())||[]\"\n (valueChanged)=\"valueChanged($event)\">\n </lib-form-payload-projection>\n\n }\n }\n </fieldset>\n\n @if ((vm. editorConfigValue)?.hint) {\n <small class=\"non-control-editor__hint\">{{ (vm. editorConfigValue)?.hint }}</small>\n }\n </div>\n }\n\n @if (!(vm.value) && (vm. editorConfigValue)?.required ) {\n <mat-error>\n {{ (vm. editorConfigValue)?.label }}'s is required\n </mat-error>}\n\n @for (error of (validationErrors())||[]; track $index) {\n <mat-error style=\" font-size: 0.75em;\n margin-left: 14px;\n \">\n\n {{error.message}}</mat-error>\n }\n\n}\n\n}@error {\n<mat-card>\n <mat-card-content>\n\n <span>\n Failed to load form inputs\n </span>\n </mat-card-content>\n</mat-card>\n}\n\n\n\n<!-- -\n `TableConfigSetup`\n- `ConditionalInputConfig`\n- `MatrixTable`-->\n", styles: [".showItemValue{opacity:.6}.non-control-editor{display:flex;flex-direction:column;width:100%}.non-control-editor__field{margin:0;min-width:0;width:100%;box-sizing:border-box;display:flex;flex-direction:column;padding:.75rem;border:1px solid var(--lib-forms-outline-variant);border-radius:var(--mdc-outlined-text-field-container-shape, 4px);transition:border-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1)),box-shadow var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.non-control-editor__field:focus-within{border-color:var(--lib-forms-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--lib-forms-primary) 25%,transparent)}.non-control-editor__label{padding:0 .25rem;margin-left:.5rem;font-size:.75rem;font-weight:400;line-height:1;color:var(--lib-forms-on-surface-variant)}.non-control-editor__hint{margin-top:.5rem;padding:0 .875rem;font-size:.75rem;line-height:1.5;color:var(--lib-forms-on-surface-variant)}mat-form-field{width:100%}mat-slider{width:100%}.range{display:flex;align-items:center}.elementInfo{display:flex;align-items:center;justify-content:center;padding:0;height:24px;width:24px}.infoIcon{font-size:1em;height:16px;width:16px}.toggle-label{margin-left:5px;align-items:center;display:flex;font-weight:500;line-height:normal;justify-content:space-between;color:var(--lib-forms-primary)}\n"] }]
15343
+ ], changeDetection: ChangeDetectionStrategy.OnPush, providers: [{ provide: NESTED_EDITOR_COMPONENT, useValue: TDynamicDataEditComponent }], template: "@defer {\n@if (( vm$ |async); as vm) {\n\n @if (vm.isFormFieldControl) {\n <!-- Editor types that resolve to a MatFormFieldControl render inside the field. -->\n <mat-form-field appearance=\"outline\" [color]=\"((validationErrors())||[]).length>0 ? 'warn' : 'primary'\"\n [floatLabel]=\"'always'\" [subscriptSizing]=\"'dynamic'\" [hintLabel]=\"vm.editorConfigValue?.hint||''\">\n <mat-label> {{ (vm. editorConfigValue)?.label }} </mat-label>\n @switch ((vm. editorConfigValue)?.editType) {\n @default {\n <lib-input-custom\n [id]=\"((vm.editorConfigValue)?.id)\"\n [inputConfig]=\"$any(vm.inputConfig)\"\n [placeholder]=\"(vm. editorConfigValue)?.placeholder ||'Enter value'\"\n [required]=\"!!(vm. editorConfigValue)?.required\"\n [disabled]=\"!!(vm.disabled)\"\n [ngModel]=\"(vm.value)\"\n (blur)=\"elementBlur($event)\"\n (input)=\"inputChange($event)\" ></lib-input-custom>\n\n\n }\n @case ( elementEditorTypes.Toggle) {\n <lib-mat-slider-toggle-editor\n [id]=\"((vm.editorConfigValue)?.id)\"\n [name]=\"((vm. editorConfigValue)?.name||'') \"\n [label]=\"((vm. editorConfigValue)?.label||'')\" [disabled]=\"(vm.disabled)||false\"\n (valueChange)=\"valueChanged(!!$event)\" [value]=\"$any(vm.value)\" [errors]=\"(validationErrors())||[]\">\n </lib-mat-slider-toggle-editor>\n\n }\n\n @case (elementEditorTypes.Range) {\n\n\n <lib-mat-slider-editor\n [id]=\"((vm.editorConfigValue)?.id)\"\n [format]=\"( vm.editorConfigValue)?.format \" [formatLabel]=\" formatLabel\"\n [disabled]=\"(vm.disabled)||false\" [max]=\"( vm.editorConfigValue)?.max || 100\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" [min]=\"( vm.editorConfigValue)?.min || 0\"\n (valueChange)=\"inputChange($event)\" [step]=\"( vm.editorConfigValue)?.step || 1\">\n\n\n </lib-mat-slider-editor>\n\n\n\n }\n\n @case (elementEditorTypes.OptionSelect) {\n\n <mat-select\n\n [value]=\"$any(vm.value)\" (selectionChange)=\"valueChanged($event.value)\"\n [disabled]=\"(vm.disabled)||false\">\n @for(option of ( vm.editorConfigValue)?.options || vm.dataOptions;track option.value){\n <mat-option [value]=\"option.value\">{{option.label}}</mat-option>\n }\n </mat-select>\n\n }\n\n @case (elementEditorTypes.RichTextEditor) {\n <lib-editor-js-input\n\n [id]=\"((vm.editorConfigValue)?.id)\"\n [value]=\"$any(vm.value)\" (valueChanged)=\"valueChanged($event)\"\n [disabled]=\"(vm.disabled)||false\" [inputConfig]=\"$any(data())\">\n </lib-editor-js-input>\n }\n\n @case (elementEditorTypes.MongoPipelineBuilder) {\n\n <lib-pipeline-generator [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" [getWorkflowOptions]=\"getWorkflowOptions$\"\n (valueChanged)=\"valueChanged($event)\"></lib-pipeline-generator>\n\n }\n @case (elementEditorTypes.MapMatOptionsKeys) {\n <lib-map-mat-options-keys [disabled]=\"(vm.disabled)||false\"\n [value]=\"$any(vm.value)\"\n [formInputs]=\"formInputs() || []\"\n [mapToData]=\"vm.dataOptions\"\n [errors]=\"(validationErrors())||[]\"\n (valueChanged)=\"valueChanged($event)\">\n </lib-map-mat-options-keys>\n\n }\n\n @case(elementEditorTypes.CalculatedFieldRules){\n\n <lib-calculated-field-rules [formInputs]=\"formInputs() ||[]\" [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" (valueChanged)=\"valueChanged($event)\"\n [mapToData]=\"vm.dataOptions\"></lib-calculated-field-rules>\n }\n\n @case(elementEditorTypes.Validators){\n\n <lib-validators-config [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" (valueChanged)=\"valueChanged($event)\" [formInputs]=\"formInputs() ||[]\"\n [mapToData]=\"vm.dataOptions\">\n </lib-validators-config>\n\n }\n @case(elementEditorTypes.ConfigMscoaAdditionalInputs){\n\n <lib-config-mscoa-additional-inputs [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" [getMscoaTree]=\"getMscoaTree$\" [mapToData]=\"vm.dataOptions\"\n (valueChanged)=\"valueChanged($event)\">\n </lib-config-mscoa-additional-inputs>\n\n }\n @case (elementEditorTypes.DataSourcePicker) {\n <lib-data-source-picker [id]=\"((vm.editorConfigValue)?.id)\" [disabled]=\"(vm.disabled)||false\" [editorConfig]=\"vm. editorConfigValue\"\n (valueChange)=\"valueChanged($event)\" [formInputs]=\"formInputs() ||[]\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\">\n </lib-data-source-picker>\n }\n @case (elementEditorTypes.ListLabelConfigEditor) {\n <lib-document-list-label-config-editor\n [id]=\"((vm.editorConfigValue)?.id)\"\n [formInputs]=\"formInputs() ||[]\"\n [disabled]=\"(vm.disabled)||false\"\n [editorConfig]=\"vm. editorConfigValue\"\n (valueChange)=\"valueChanged($event)\"\n [value]=\"$any(vm.value)\" [mapToData]=\"vm.dataOptions\"\n [errors]=\"(validationErrors())||[]\">\n\n </lib-document-list-label-config-editor>\n }\n @case(\n elementEditorTypes.WorkflowPicker\n ){\n <lib-t-workflow-picker [id]=\"((vm.editorConfigValue)?.id)\" [disabled]=\"(vm.disabled)||false\" [getWorkflowOptions]=\"getWorkflowOptions$\"\n (valueChanged)=\"valueChanged($event)\" [value]=\"$any(vm.value)\" [errors]=\"(validationErrors())||[]\"></lib-t-workflow-picker>\n }\n @case (\n elementEditorTypes.RecordListManager\n ) {\n <lib-record-list-manager\n [id]=\"((vm.editorConfigValue)?.id)\"\n [editorConfig]=\"vm.editorConfigValue\" [disabled]=\"(vm.disabled)||false\"\n [formInputs]=\"formInputs() ||[]\" [mapToData]=\"vm.dataOptions\" (valueChange)=\"valueChanged($event)\"\n\n [value]=\"$any(vm.value)\" [errors]=\"(validationErrors())||[]\"></lib-record-list-manager>\n }\n }\n\n @if (vm.inputHasBlurFunction) {\n <button [matTooltip]=\"blurFunctionTooltip((vm.editorConfigValue)?.blurHandle)\"\n [disabled]=\"(vm.disabled)\" [color]=\"blurOff?'':'primary'\" (click)=\"blurOff=!blurOff\" matSuffix\n mat-icon-button>\n <mat-icon>{{\n blurOff?'blur_off':'blur_on'\n }}\n\n\n </mat-icon>\n </button>\n }\n </mat-form-field>\n } @else {\n <!-- Editor types backed by plain (signal-based) components render outside\n the field, since they are not MatFormFieldControls. They are wrapped to\n mirror the outline mat-form-field appearance: the fieldset draws the\n outline, its legend is the notched floating label, and the hint renders\n as a subscript below the box. -->\n <div class=\"non-control-editor\">\n <fieldset class=\"non-control-editor__field\">\n @if ((vm. editorConfigValue)?.label) {\n <legend class=\"non-control-editor__label\">{{ (vm. editorConfigValue)?.label }}</legend>\n }\n @switch ((vm. editorConfigValue)?.editType) {\n\n @case (elementEditorTypes.ChipSelect) {\n\n <lib-mat-chip-list-editor\n [id]=\"((vm.editorConfigValue)?.id)\"\n [multiple]=\"!!vm.editorConfigValue?.multipleSelection\"\n [disabled]=\"(vm.disabled)||false\"\n [options]=\"(vm.editorConfigValue)?.options || vm.dataOptions\"\n [required]=\"!!( vm.editorConfigValue)?.required\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\"\n (valueChange)=\" valueChanged($event)\"></lib-mat-chip-list-editor>\n\n\n }\n\n @case (elementEditorTypes.SelectionOptions) {\n\n <lib-selection-options-editor\n [id]=\"((vm.editorConfigValue)?.id)\"\n [errors]=\"(validationErrors())||[]\" [disabled]=\"(vm.disabled)||false\"\n [options]=\"$any(vm.value) || []\" (valueChanged)=\"valueChanged($event)\"></lib-selection-options-editor>\n }\n\n @case (\n elementEditorTypes.ApiCall) {\n\n <lib-rest-api-call-setup\n [id]=\"((vm.editorConfigValue)?.id)\"\n [postmanCollectionConfig]=\"(vm.editorConfigValue)?.postmanCollectionConfig\"\n [httpGetDataFunction]=\"(vm.editorConfigValue)?.httpGetDataFunction\" [disabled]=\"(vm.disabled)||false\"\n [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" (valueChanged)=\"valueChanged($event)\">\n\n </lib-rest-api-call-setup>\n\n }\n\n @case (elementEditorTypes.ApiValueAccessRules) {\n\n\n\n <lib-api-value-access-rules [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\"\n [formInputs]=\"formInputs() ||[]\"\n\n [postmanCollectionConfig]=\"(vm.editorConfigValue)?.postmanCollectionConfig\" [mapToData]=\"vm.dataOptions\"\n (valueChanged)=\"valueChanged($event)\">\n </lib-api-value-access-rules>\n\n }\n\n @case (elementEditorTypes.FormInputSelector)\n {\n\n <lib-form-input-selector [id]=\"((vm.editorConfigValue)?.id)\" [disabled]=\"(vm.disabled)||false\" [formInputs]=\"formInputs() ||[]\"\n [errors]=\"(validationErrors())||[]\" [value]=\"$any(vm.value) || []\" (change)=\"valueChanged($event)\">\n </lib-form-input-selector>\n }\n\n @case (\n elementEditorTypes.RequiredInputs\n ){\n\n <lib-required-inputs [formInputs]=\"formInputs() ||[]\" [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" (valueChanged)=\"valueChanged($event)\">\n </lib-required-inputs>\n }\n\n @case(elementEditorTypes.ConfigMscoaSegments){\n\n <lib-mscoa-segment-config [disabled]=\"(vm.disabled)||false\" [id]=\"((vm.editorConfigValue)?.id)\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" [getMscoaTree]=\"getMscoaTree$\" [dataValue]=\"$any(vm.dataValue)\"\n [isCashSegmentConfig]=\"vm.editorConfigValue?.deepBind?.at(-1) === 'cashSegments'\"\n [saveCustomInput]=\"mscoaSaveCustomInput()\"\n [editSegmentInput]=\"mscoaEditInput()\"\n [deleteSegmentInput]=\"mscoaDeleteInput()\"\n [showAllSegments]=\"vm.dataOptions\" (valueChanged)=\"valueChanged($event)\"></lib-mscoa-segment-config>\n }\n @case (elementEditorTypes.ChipOptionsCreator) {\n <lib-chip-options-creator-editor [id]=\"((vm.editorConfigValue)?.id)\" [disabled]=\"(vm.disabled)||false\" (valueChange)=\"valueChanged($event)\"\n [value]=\"$any(vm.value)\" [errors]=\"(validationErrors())||[]\">\n\n </lib-chip-options-creator-editor>\n\n }\n @case (elementEditorTypes.FormPayloadProjection) {\n <lib-form-payload-projection [disabled]=\"(vm.disabled)||false\" [value]=\"$any(vm.value)\"\n [formInputs]=\"formInputs() ||[]\" [errors]=\"(validationErrors())||[]\"\n (valueChanged)=\"valueChanged($event)\">\n </lib-form-payload-projection>\n\n }\n\n @case (elementEditorTypes.PayloadTemplate) {\n <lib-payload-template-editor [disabled]=\"(vm.disabled)||false\" [value]=\"$any(vm.value)\"\n [defaultTemplate]=\"$any((vm.editorConfigValue)?.defaultValue)\"\n [formInputs]=\"formInputs() ||[]\" [errors]=\"(validationErrors())||[]\"\n [id]=\"((vm.editorConfigValue)?.id)\" (valueChanged)=\"valueChanged($event)\">\n </lib-payload-template-editor>\n\n }\n }\n </fieldset>\n\n @if ((vm. editorConfigValue)?.hint) {\n <small class=\"non-control-editor__hint\">{{ (vm. editorConfigValue)?.hint }}</small>\n }\n </div>\n }\n\n @if (!(vm.value) && (vm. editorConfigValue)?.required ) {\n <mat-error>\n {{ (vm. editorConfigValue)?.label }}'s is required\n </mat-error>}\n\n @for (error of (validationErrors())||[]; track $index) {\n <mat-error style=\" font-size: 0.75em;\n margin-left: 14px;\n \">\n\n {{error.message}}</mat-error>\n }\n\n}\n\n}@error {\n<mat-card>\n <mat-card-content>\n\n <span>\n Failed to load form inputs\n </span>\n </mat-card-content>\n</mat-card>\n}\n\n\n\n<!-- -\n `TableConfigSetup`\n- `ConditionalInputConfig`\n- `MatrixTable`-->\n", styles: [".showItemValue{opacity:.6}.non-control-editor{display:flex;flex-direction:column;width:100%}.non-control-editor__field{margin:0;min-width:0;width:100%;box-sizing:border-box;display:flex;flex-direction:column;padding:.75rem;border:1px solid var(--lib-forms-outline-variant);border-radius:var(--mdc-outlined-text-field-container-shape, 4px);transition:border-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1)),box-shadow var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.non-control-editor__field:focus-within{border-color:var(--lib-forms-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--lib-forms-primary) 25%,transparent)}.non-control-editor__label{padding:0 .25rem;margin-left:.5rem;font-size:.75rem;font-weight:400;line-height:1;color:var(--lib-forms-on-surface-variant)}.non-control-editor__hint{margin-top:.5rem;padding:0 .875rem;font-size:.75rem;line-height:1.5;color:var(--lib-forms-on-surface-variant)}mat-form-field{width:100%}mat-slider{width:100%}.range{display:flex;align-items:center}.elementInfo{display:flex;align-items:center;justify-content:center;padding:0;height:24px;width:24px}.infoIcon{font-size:1em;height:16px;width:16px}.toggle-label{margin-left:5px;align-items:center;display:flex;font-weight:500;line-height:normal;justify-content:space-between;color:var(--lib-forms-primary)}\n"] }]
14874
15344
  }], ctorParameters: null, propDecorators: { editorConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "editorConfig", required: false }] }], formInputs: [{ type: i0.Input, args: [{ isSignal: true, alias: "formInputs", required: false }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], validationErrors: [{ type: i0.Input, args: [{ isSignal: true, alias: "validationErrors", required: false }] }], mscoaSaveCustomInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "mscoaSaveCustomInput", required: false }] }], mscoaEditInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "mscoaEditInput", required: false }] }], mscoaDeleteInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "mscoaDeleteInput", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], blur: [{ type: i0.Output, args: ["blur"] }] } }) });
14875
15345
 
14876
15346
  const isEmptyPath = (path) => path.length === 0;
@@ -15384,41 +15854,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
15384
15854
  const ELEMENT_REGISTRY = {
15385
15855
  [ElementTypes.Location]: {
15386
15856
  builderAware: true,
15387
- load: () => import('./ngx-t-forms-geo-location.component-BPqEkYIg.mjs').then(m => m.GeoLocationComponent),
15857
+ load: () => import('./ngx-t-forms-geo-location.component-ChmvJCGu.mjs').then(m => m.GeoLocationComponent),
15388
15858
  },
15389
15859
  [ElementTypes.AutoCompleteInput]: {
15390
- load: () => import('./ngx-t-forms-auto-complete-input-element.component-hDWV_H2E.mjs').then(m => m.AutoCompleteInputElementComponent),
15860
+ load: () => import('./ngx-t-forms-auto-complete-input-element.component-VektEtrf.mjs').then(m => m.AutoCompleteInputElementComponent),
15391
15861
  },
15392
15862
  [ElementTypes.Toggle]: {
15393
- load: () => import('./ngx-t-forms-toggle-input-element.component-Cn_VOOEu.mjs').then(m => m.ToggleInputElementComponent),
15863
+ load: () => import('./ngx-t-forms-toggle-input-element.component-Cgzg89Ug.mjs').then(m => m.ToggleInputElementComponent),
15394
15864
  },
15395
15865
  [ElementTypes.Select]: {
15396
- load: () => import('./ngx-t-forms-select-input-element.component-DNBZVxhD.mjs').then(m => m.SelectInputElementComponent),
15866
+ load: () => import('./ngx-t-forms-select-input-element.component-c7IgHdXA.mjs').then(m => m.SelectInputElementComponent),
15397
15867
  },
15398
15868
  [ElementTypes.Textarea]: {
15399
- load: () => import('./ngx-t-forms-textarea-input-element.component-BEcNjLGC.mjs').then(m => m.TextareaInputElementComponent),
15869
+ load: () => import('./ngx-t-forms-textarea-input-element.component-C7H84RGw.mjs').then(m => m.TextareaInputElementComponent),
15400
15870
  },
15401
15871
  [ElementTypes.DateRangePicker]: {
15402
- load: () => import('./ngx-t-forms-date-range-picker-input-element.component-Iw5Sou7u.mjs').then(m => m.DateRangePickerInputElementComponent),
15872
+ load: () => import('./ngx-t-forms-date-range-picker-input-element.component-B3Z47mrO.mjs').then(m => m.DateRangePickerInputElementComponent),
15403
15873
  },
15404
15874
  [ElementTypes.DatePicker]: {
15405
- load: () => import('./ngx-t-forms-date-picker-input-element.component-DJnHqSfk.mjs').then(m => m.DatePickerInputElementComponent),
15875
+ load: () => import('./ngx-t-forms-date-picker-input-element.component-C9I8KX12.mjs').then(m => m.DatePickerInputElementComponent),
15406
15876
  },
15407
15877
  [ElementTypes.FileUpload]: {
15408
- load: () => import('./ngx-t-forms-file-upload-input-element.component-C8a1gMMz.mjs').then(m => m.FileUploadInputElementComponent),
15878
+ load: () => import('./ngx-t-forms-file-upload-input-element.component-Bgi-chdw.mjs').then(m => m.FileUploadInputElementComponent),
15409
15879
  },
15410
15880
  [ElementTypes.ImageCapture]: {
15411
- load: () => import('./ngx-t-forms-image-capture-input-element.component-CZojZh_T.mjs').then(m => m.ImageCaptureInputElementComponent),
15881
+ load: () => import('./ngx-t-forms-image-capture-input-element.component-BpA_P017.mjs').then(m => m.ImageCaptureInputElementComponent),
15412
15882
  },
15413
15883
  [ElementTypes.Editor]: {
15414
- load: () => import('./ngx-t-forms-editor-input-element.component-CjY8h93n.mjs').then(m => m.EditorInputElementComponent),
15884
+ load: () => import('./ngx-t-forms-editor-input-element.component-C12fnCTM.mjs').then(m => m.EditorInputElementComponent),
15415
15885
  },
15416
15886
  [ElementTypes.Signature]: {
15417
15887
  load: () => Promise.resolve().then(function () { return signatureInputElement_component; }).then(m => m.SignatureInputElementComponent),
15418
15888
  },
15419
15889
  [ElementTypes.MultipleInput]: {
15420
15890
  builderAware: true,
15421
- load: () => import('./ngx-t-forms-multiple-input-input-element.component-DtXYH3Gb.mjs').then(m => m.MultipleInputInputElementComponent),
15891
+ load: () => import('./ngx-t-forms-multiple-input-input-element.component-BA61uQ2q.mjs').then(m => m.MultipleInputInputElementComponent),
15422
15892
  },
15423
15893
  [ElementTypes.MscoaSelection]: {
15424
15894
  builderAware: true,
@@ -15426,14 +15896,14 @@ const ELEMENT_REGISTRY = {
15426
15896
  },
15427
15897
  [ElementTypes.WorkflowDocumentPicker]: {
15428
15898
  builderAware: true,
15429
- load: () => import('./ngx-t-forms-document-picker.component-j7-XiDnt.mjs').then(m => m.DocumentPickerComponent),
15899
+ load: () => import('./ngx-t-forms-document-picker.component-BNQ1a96s.mjs').then(m => m.DocumentPickerComponent),
15430
15900
  },
15431
15901
  [ElementTypes.WorkflowAdjudication]: {
15432
15902
  builderAware: true,
15433
- load: () => import('./ngx-t-forms-workflow-adjudication.component-DB4arTNG.mjs').then(m => m.WorkflowAdjudicationComponent),
15903
+ load: () => import('./ngx-t-forms-workflow-adjudication.component-CB6qBxgr.mjs').then(m => m.WorkflowAdjudicationComponent),
15434
15904
  },
15435
15905
  [ElementTypes.PaginatedSelectionTable]: {
15436
- load: () => import('./ngx-t-forms-paginated-selection-table-CWepPKmn.mjs').then(m => m.PaginatedSelectionTable),
15906
+ load: () => import('./ngx-t-forms-paginated-selection-table-yvhqQxPV.mjs').then(m => m.PaginatedSelectionTable),
15437
15907
  },
15438
15908
  };
15439
15909
  /**
@@ -15441,7 +15911,7 @@ const ELEMENT_REGISTRY = {
15441
15911
  * `@default` switch branch (a basic input).
15442
15912
  */
15443
15913
  const FALLBACK_ELEMENT = {
15444
- load: () => import('./ngx-t-forms-basic-input-input-element.component-BDWHCfgN.mjs').then(m => m.BasicInputInputElementComponent),
15914
+ load: () => import('./ngx-t-forms-basic-input-input-element.component-C8D6DN41.mjs').then(m => m.BasicInputInputElementComponent),
15445
15915
  };
15446
15916
  /**
15447
15917
  * Resolves the renderer entry for a given element type, falling back to the
@@ -18192,9 +18662,9 @@ class MscoaChartComponent {
18192
18662
  }
18193
18663
  }
18194
18664
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: MscoaChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
18195
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: MscoaChartComponent, isStandalone: true, selector: "lib-mscoa-chart", inputs: { inputConfig: { classPropertyName: "inputConfig", publicName: "inputConfig", isSignal: true, isRequired: true, transformFunction: null }, editorMode: { classPropertyName: "editorMode", publicName: "editorMode", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, touched: { classPropertyName: "touched", publicName: "touched", isSignal: true, isRequired: false, transformFunction: null }, formGroup: { classPropertyName: "formGroup", publicName: "formGroup", isSignal: true, isRequired: false, transformFunction: null }, formBuilderFunctions: { classPropertyName: "formBuilderFunctions", publicName: "formBuilderFunctions", isSignal: true, isRequired: false, transformFunction: null }, config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onContainerClick: "onContainerClick", interaction: "interaction" }, ngImport: i0, template: "@if ((viewData$ | async); as viewData) {\r\n<section\r\n (click)=\"setAsTouched($event)\"\r\n class=\"mscoa-chart__container\"\r\n [class.mscoa-chart__container--touched]=\"touched()\"\r\n role=\"region\"\r\n [attr.aria-label]=\"'MSCOA Account Chart'\"\r\n [attr.aria-busy]=\"viewData.loading || viewData.validatingValue\">\r\n\r\n @if (viewData.loading) {\r\n <div class=\"mscoa-chart__loading-container\" role=\"status\" aria-live=\"polite\">\r\n <mat-spinner [diameter]=\"40\"></mat-spinner>\r\n <span class=\"sr-only\">Loading account chart data...</span>\r\n </div>\r\n } @else {\r\n @defer () {\r\n @if (viewData.accountTreeKeys || viewData.cashAccountTreeKeys) {\r\n <div class=\"mscoa-chart__table-container\">\r\n @if (isDualAccountBasis) {\r\n <div class=\"dual-basis-container\" role=\"group\" aria-label=\"Dual accounting basis tables\">\r\n <div class=\"dual-basis-container__item\">\r\n <ng-container\r\n *ngTemplateOutlet=\"selectionTable;\r\n context: {\r\n accountingBasis: ACCOUNTING_BASIS.ACCRUAL,\r\n canCollapse: true,\r\n viewData: viewData\r\n }\">\r\n </ng-container>\r\n </div>\r\n\r\n <div class=\"dual-basis-container__item\">\r\n <ng-container\r\n *ngTemplateOutlet=\"selectionTable;\r\n context: {\r\n accountingBasis: ACCOUNTING_BASIS.CASH,\r\n canCollapse: true,\r\n viewData: viewData\r\n }\">\r\n </ng-container>\r\n </div>\r\n </div>\r\n } @else {\r\n <ng-container\r\n *ngTemplateOutlet=\"selectionTable;\r\n context: {\r\n accountingBasis: config()?.accountingBasis,\r\n canCollapse: false,\r\n viewData: viewData\r\n }\">\r\n </ng-container>\r\n }\r\n </div>\r\n }\r\n\r\n <ng-template\r\n #selectionTable\r\n let-accountingBasis=\"accountingBasis\"\r\n let-canCollapse=\"canCollapse\"\r\n let-viewData=\"viewData\">\r\n\r\n <div class=\"mscoa-chart-table\" role=\"group\" [attr.aria-label]=\"'Accounting basis: ' + (accountingBasis || 'Accrual')\">\r\n <!-- Toolbar -->\r\n <lib-mscoa-chart-toolbar\r\n [accountingBasis]=\"accountingBasis\"\r\n [canCollapse]=\"canCollapse\"\r\n [isExpanded]=\"getExpansionState(accountingBasis || ACCOUNTING_BASIS.ACCRUAL)\"\r\n (toggleExpansion)=\"toggleDualBasisExpansion(accountingBasis || ACCOUNTING_BASIS.ACCRUAL)\">\r\n </lib-mscoa-chart-toolbar>\r\n\r\n @if (shouldShowTable(isDualAccountBasis, getExpansionState(accountingBasis || ACCOUNTING_BASIS.ACCRUAL), accountingBasis)) {\r\n <div class=\"account-selection-table-wrapper\">\r\n <div\r\n class=\"account-selection-table-container\"\r\n [class.account-selection-table-container--accrual]=\"!accountingBasis || accountingBasis === ACCOUNTING_BASIS.ACCRUAL\"\r\n [class.account-selection-table-container--cash]=\"accountingBasis === ACCOUNTING_BASIS.CASH\"\r\n role=\"table\"\r\n [attr.aria-label]=\"'Account selection table for ' + (accountingBasis || 'Accrual') + ' basis'\">\r\n\r\n <table\r\n mat-table\r\n [dataSource]=\"accountingBasis === ACCOUNTING_BASIS.CASH ? viewData.cashTableData : viewData.tableData\"\r\n [trackBy]=\"trackByRow\"\r\n class=\"table\"\r\n [attr.aria-label]=\"'Account selection table for ' + (accountingBasis || 'Accrual') + ' basis'\"\r\n [attr.aria-describedby]=\"'table-description-' + (accountingBasis || ACCOUNTING_BASIS.ACCRUAL)\"\r\n role=\"table\">\r\n <span [id]=\"'table-description-' + (accountingBasis || ACCOUNTING_BASIS.ACCRUAL)\" class=\"sr-only\">\r\n Use arrow keys to navigate between cells. Press Enter or Space to select an account.\r\n </span>\r\n\r\n @for (\r\n col of (accountingBasis === ACCOUNTING_BASIS.CASH ? viewData.cashCols : viewData.cols);\r\n track trackByColumn($index, col);\r\n let i = $index\r\n ) {\r\n <ng-container [matColumnDef]=\"col\" [sticky]=\"i === 0\">\r\n <!-- Header Cell -->\r\n <th\r\n mat-header-cell\r\n *matHeaderCellDef\r\n [class.table__header-cell--segment]=\"isSegmentColumn(i)\"\r\n [class.table__header-cell--regular]=\"!isSegmentColumn(i)\"\r\n [style.width.%]=\"getColumnWidthPercent(isSegmentColumn(i), (accountingBasis === ACCOUNTING_BASIS.CASH ? viewData.cashCols : viewData.cols).length)\"\r\n [style.min-width.px]=\"isSegmentColumn(i) ? 150 : 200\"\r\n [attr.aria-sort]=\"i === 0 ? 'none' : null\"\r\n [attr.scope]=\"'col'\"\r\n [attr.aria-label]=\"getHeaderText(col, i, accountingBasis === ACCOUNTING_BASIS.CASH ? viewData.cashHasMultiSelect : viewData.hasMultiSelect) + ' column'\">\r\n {{ getHeaderText(col, i, accountingBasis === ACCOUNTING_BASIS.CASH ? viewData.cashHasMultiSelect : viewData.hasMultiSelect) | titlecase | unCamelCase }}\r\n </th>\r\n\r\n <!-- Data Cell -->\r\n <td\r\n mat-cell\r\n *matCellDef=\"let row\"\r\n [class.table__cell--segment]=\"isSegmentColumn(i)\"\r\n [class.table__cell--regular]=\"!isSegmentColumn(i)\"\r\n [class.table__cell--active]=\"editSelection?.segment === row['segment'] && activeColumn === col\"\r\n [class.table__cell--business-error]=\"!isSegmentColumn(i) && getCellBusinessError(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\"\r\n [attr.aria-label]=\"'Cell for ' + row['segment'] + ' segment, ' + col + ' column'\"\r\n [attr.aria-selected]=\"!!row[col]\"\r\n [attr.aria-invalid]=\"!isSegmentColumn(i) && !!getCellBusinessError(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\"\r\n [attr.role]=\"'gridcell'\"\r\n [attr.tabindex]=\"isSegmentColumn(i) ? -1 : (row[col] ? 0 : -1)\">\r\n\r\n @if (isSegmentColumn(i)) {\r\n <!-- Segment Column -->\r\n <div class=\"segment-cell-content\">\r\n @if (editorMode() && row.innerInput?.id) {\r\n <button\r\n mat-icon-button\r\n [matMenuTriggerData]=\"{innerInput: row.innerInput}\"\r\n [matMenuTriggerFor]=\"inputMenu\"\r\n [matTooltip]=\"'Options for: ' + row.innerInput.label\"\r\n [attr.aria-label]=\"'Options menu for ' + row.innerInput.label\"\r\n (click)=\"$event.stopPropagation()\">\r\n <mat-icon>more_vert</mat-icon>\r\n </button>\r\n }\r\n <span class=\"segment-cell-content__label\">{{ row['label'] }}</span>\r\n </div>\r\n } @else {\r\n <!-- Regular Column -->\r\n @if (row.innerInput?.id) {\r\n <!-- Custom-input row (peer of the segments): the value is entered inline via the\r\n input portal on the primary (debit) leg; other legs mirror it and render no\r\n control. `innerInput.id` is already the namespaced portal key, so it is looked\r\n up directly \u2014 prepending it again (getPortalKey) double-namespaces and misses. -->\r\n @if (col === COLUMNS.DEBIT && formGroup() && inputPortals[row.innerInput.id]) {\r\n <div class=\"portal-container\">\r\n <ng-template [cdkPortalOutlet]=\"inputPortals[row.innerInput.id]\"></ng-template>\r\n </div>\r\n }\r\n } @else {\r\n @if (row[col]) {\r\n <!-- Account Selected -->\r\n @if (getCellBusinessError(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment']); as cellError) {\r\n <div class=\"account-cell-wrapper\"\r\n [class.account-cell-wrapper--expandable]=\"isTextTruncated(row[col] | unCamelCase)\">\r\n <button\r\n [disabled]=\"row['singleSelect'] === true && col === COLUMNS.CREDIT\"\r\n (mousedown)=\"$event.preventDefault(); $event.stopPropagation(); selectAccount(row, col, accountingBasis === ACCOUNTING_BASIS.CASH); setAsTouched($event)\"\r\n (keydown)=\"handleCellKeyDown($event, row, col, accountingBasis === ACCOUNTING_BASIS.CASH)\"\r\n color=\"primary\"\r\n mat-button\r\n class=\"cell-button cell-button--selected cell-button--business-error\"\r\n [attr.aria-label]=\"'Selected account: ' + (row[col] | unCamelCase) + ' for ' + row['segment'] + ' segment, ' + col + ' column. Business error: ' + cellError.message\"\r\n [attr.aria-invalid]=\"true\"\r\n [attr.aria-pressed]=\"true\"\r\n [matTooltip]=\"cellError.message\">\r\n <div class=\"content\">\r\n <span\r\n class=\"selected-acount-label selected-acount-label--tag selected-acount-label--business-error\"\r\n [attr.aria-label]=\"'Selected account: ' + (row[col] | unCamelCase)\">\r\n {{ row[col] | unCamelCase }}\r\n @if (shouldShowVatChip(row, col)) {\r\n <span\r\n class=\"vat-badge\"\r\n [attr.aria-label]=\"'VAT applicable to ' + col + ' column'\"\r\n [matTooltip]=\"'VAT is applicable to this ' + col + ' account selection'\">\r\n VAT\r\n </span>\r\n }\r\n </span>\r\n <mat-icon class=\"business-error-indicator\" aria-hidden=\"true\">error</mat-icon>\r\n </div>\r\n </button>\r\n </div>\r\n } @else {\r\n <div class=\"account-cell-wrapper\"\r\n [class.account-cell-wrapper--expandable]=\"isTextTruncated(row[col] | unCamelCase)\">\r\n <button\r\n [disabled]=\"(row['singleSelect'] === true && col === COLUMNS.CREDIT) || isCellDisabledByBusinessErrors(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\"\r\n (mousedown)=\"$event.preventDefault(); $event.stopPropagation(); selectAccount(row, col, accountingBasis === ACCOUNTING_BASIS.CASH); setAsTouched($event)\"\r\n (keydown)=\"handleCellKeyDown($event, row, col, accountingBasis === ACCOUNTING_BASIS.CASH)\"\r\n color=\"primary\"\r\n mat-button\r\n class=\"cell-button cell-button--selected\"\r\n [attr.aria-label]=\"'Selected account: ' + (row[col] | unCamelCase) + ' for ' + row['segment'] + ' segment, ' + col + ' column. Press Enter or Space to change'\"\r\n [attr.aria-invalid]=\"false\"\r\n [attr.aria-disabled]=\"(row['singleSelect'] === true && col === COLUMNS.CREDIT) || isCellDisabledByBusinessErrors(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\"\r\n [attr.aria-pressed]=\"true\">\r\n <div class=\"content\">\r\n <span\r\n class=\"selected-acount-label selected-acount-label--tag\"\r\n [attr.aria-label]=\"'Selected account: ' + (row[col] | unCamelCase)\">\r\n {{ row[col] | unCamelCase }}\r\n @if (shouldShowVatChip(row, col)) {\r\n <span\r\n class=\"vat-badge\"\r\n [attr.aria-label]=\"'VAT applicable to ' + col + ' column'\"\r\n [matTooltip]=\"'VAT is applicable to this ' + col + ' account selection'\">\r\n VAT\r\n </span>\r\n }\r\n </span>\r\n @if (showValidationSuccessIndicators) {\r\n <mat-icon class=\"validated-indicator\" aria-hidden=\"true\" [matTooltip]=\"'Validated'\">shield</mat-icon>\r\n } @else {\r\n <mat-icon class=\"success-indicator\" aria-hidden=\"true\">check_circle</mat-icon>\r\n }\r\n </div>\r\n </button>\r\n </div>\r\n }\r\n } @else {\r\n <!-- No Account Selected -->\r\n <div class=\"cell-button-wrapper\">\r\n <button\r\n [disabled]=\"selectionDisabled(row, col) || isCellDisabledByBusinessErrors(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\"\r\n [color]=\"\"\r\n (click)=\"selectAccount(row, col, accountingBasis === ACCOUNTING_BASIS.CASH); $event.stopPropagation(); setAsTouched($event)\"\r\n (keydown)=\"handleCellKeyDown($event, row, col, accountingBasis === ACCOUNTING_BASIS.CASH)\"\r\n mat-button\r\n class=\"cell-button\"\r\n [class.cell-button--business-error]=\"!!getCellBusinessError(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\"\r\n [attr.aria-label]=\"shouldShowAutoSelectedLabel(row, col) ? 'Auto selected for ' + row['segment'] + ' segment, ' + col + ' column' : 'Select account for ' + row['segment'] + ' segment, ' + col + ' column'\"\r\n [attr.aria-disabled]=\"selectionDisabled(row, col) || isCellDisabledByBusinessErrors(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\"\r\n [attr.aria-describedby]=\"getValidationHint(row, col, accountingBasis || ACCOUNTING_BASIS.ACCRUAL) ? 'hint-' + row['segment'] + '-' + col : null\"\r\n [attr.aria-invalid]=\"hasError(touched(), inputConfig().required || false, !!row[col]) || !!getCellBusinessError(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\"\r\n [attr.aria-required]=\"inputConfig().required && !row[col]\"\r\n [matTooltip]=\"getCellBusinessError(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])?.message\">\r\n <div class=\"content\">\r\n <span\r\n class=\"selected-acount-label\"\r\n [class.selected-acount-label--error]=\"hasError(touched(), inputConfig().required || false, !!row[col])\"\r\n [class.selected-acount-label--business-error]=\"!!getCellBusinessError(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\">\r\n {{ (shouldShowAutoSelectedLabel(row, col) ? 'auto selected' : 'Select account') | unCamelCase }}\r\n @if (inputConfig().required && !row[col]) {\r\n <span class=\"required-indicator\" aria-label=\"Required field\">*</span>\r\n }\r\n </span>\r\n @if (getCellBusinessError(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])) {\r\n <mat-icon class=\"business-error-indicator\" aria-hidden=\"true\">error</mat-icon>\r\n } @else if (shouldShowDropdownIcon(row, col)) {\r\n <mat-icon aria-hidden=\"true\">arrow_drop_down</mat-icon>\r\n }\r\n </div>\r\n </button>\r\n @if (getValidationHint(row, col, accountingBasis || ACCOUNTING_BASIS.ACCRUAL); as hint) {\r\n <span\r\n class=\"inline-hint\"\r\n [id]=\"'hint-' + row['segment'] + '-' + col\"\r\n role=\"tooltip\"\r\n aria-live=\"polite\">\r\n {{ hint }}\r\n </span>\r\n }\r\n </div>\r\n }\r\n }\r\n }\r\n </td>\r\n </ng-container>\r\n }\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"accountingBasis === ACCOUNTING_BASIS.CASH ? viewData.cashCols : viewData.cols\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: (accountingBasis === ACCOUNTING_BASIS.CASH ? viewData.cashCols : viewData.cols)\"></tr>\r\n </table>\r\n </div>\r\n </div>\r\n\r\n <!-- Empty State -->\r\n @if ((accountingBasis === ACCOUNTING_BASIS.CASH ? viewData.cashAccountTreeKeys : viewData.accountTreeKeys).length === 0) {\r\n <section class=\"empty-state\" role=\"status\" aria-live=\"polite\">\r\n <mat-icon aria-hidden=\"true\">info</mat-icon>\r\n <span>\r\n No account segments are currently configured.\r\n Please configure account segments to proceed.\r\n </span>\r\n </section>\r\n }\r\n\r\n <!-- Success Messages (Temporary) -->\r\n @if ((successMessage$ | async); as successMessages) {\r\n @if (getSuccessMessage(successMessages, accountingBasis || ACCOUNTING_BASIS.ACCRUAL); as msg) {\r\n <lib-mscoa-temporary-hint\r\n [message]=\"getSuccessMessage(successMessages, accountingBasis || ACCOUNTING_BASIS.ACCRUAL) ?? ''\"\r\n [type]=\"'info'\"\r\n [duration]=\"6000\"\r\n [showDismiss]=\"true\">\r\n </lib-mscoa-temporary-hint>\r\n }\r\n }\r\n\r\n <!-- Business Rule Errors (Temporary display, keeps error styling) -->\r\n @if ((viewData.busnessRuleErrors[accountingBasis || ACCOUNTING_BASIS.ACCRUAL] || []).length > 0) {\r\n <lib-mscoa-error-display\r\n [errors]=\"viewData.busnessRuleErrors[accountingBasis || ACCOUNTING_BASIS.ACCRUAL] || []\"\r\n type=\"error\"\r\n [context]=\"{ accountingBasis: accountingBasis || ACCOUNTING_BASIS.ACCRUAL }\"\r\n [duration]=\"6000\"\r\n [showDismiss]=\"true\">\r\n </lib-mscoa-error-display>\r\n }\r\n\r\n <!-- Temporary Contextual Hints -->\r\n @if (temporaryHintMessage) {\r\n <lib-mscoa-temporary-hint\r\n [message]=\"temporaryHintMessage\"\r\n [type]=\"temporaryHintType\"\r\n [duration]=\"6000\"\r\n [showDismiss]=\"true\">\r\n </lib-mscoa-temporary-hint>\r\n }\r\n\r\n <!-- Validation Hints (Context-Aware) -->\r\n @if (!touched() && inputConfig().required && !viewData.busnessRuleErrors[accountingBasis || ACCOUNTING_BASIS.ACCRUAL]?.length && (!isDualAccountBasis || accountingBasis === ACCOUNTING_BASIS.ACCRUAL || !accountingBasis)) {\r\n <div class=\"validation-hints\" role=\"region\" aria-label=\"Validation guidance\">\r\n <p class=\"validation-hints__title\">Guidance:</p>\r\n <ul class=\"validation-hints__list\">\r\n <li>Account combinations are validated automatically. Select accounts that belong to compatible reporting categories.</li>\r\n <li>Required fields are marked with an asterisk (*). Complete all required selections to proceed.</li>\r\n <li>Some fields may be automatically populated based on your selections to ensure consistency.</li>\r\n </ul>\r\n </div>\r\n }\r\n }\r\n </div>\r\n </ng-template>\r\n } @placeholder {\r\n <div class=\"loading-placeholder\" role=\"status\" aria-live=\"polite\">\r\n <p>Loading data...</p>\r\n </div>\r\n } @loading (minimum 100ms) {\r\n <div class=\"loading-spinner-container\" role=\"status\" aria-live=\"polite\">\r\n <mat-progress-spinner mode=\"indeterminate\" [diameter]=\"40\"></mat-progress-spinner>\r\n <span class=\"sr-only\">Loading account chart...</span>\r\n </div>\r\n } @error {\r\n <div class=\"error-state\" role=\"alert\" aria-live=\"assertive\">\r\n <p>Error loading data. Please try again.</p>\r\n </div>\r\n }\r\n }\r\n</section>\r\n}\r\n\r\n<!-- Input Menu -->\r\n<mat-menu #inputMenu=\"matMenu\">\r\n <ng-template matMenuContent let-innerInput=\"innerInput\">\r\n <lib-mscoa-chart-input-menu\r\n [innerInput]=\"innerInput\"\r\n [countdownSeconds]=\"inputWillBeRemovedIn(innerInput.id)\"\r\n [hoveredId]=\"hoveredInputId\"\r\n (edit)=\"onInputMenuEdit($event)\"\r\n (delete)=\"onInputMenuDelete($event)\"\r\n (cancelDelete)=\"onInputMenuCancelDelete($event)\"\r\n (hoverStart)=\"onInputMenuHoverStart($event)\"\r\n (hoverEnd)=\"onInputMenuHoverEnd()\">\r\n </lib-mscoa-chart-input-menu>\r\n </ng-template>\r\n</mat-menu>\r\n", styles: ["@charset \"UTF-8\";:host{--mscoa-chart-spacing-xs: 4px;--mscoa-chart-spacing-sm: 8px;--mscoa-chart-spacing-md: 16px;--mscoa-chart-spacing-lg: 24px;--mscoa-chart-spacing-xl: 32px;--mscoa-chart-border-radius: 4px;--mscoa-chart-transition: var(--lib-forms-duration-hover) var(--lib-forms-easing);--mscoa-chart-font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;--mscoa-chart-font-size-base: 14px;--mscoa-chart-line-height: 1.5;display:block;font-family:var(--mscoa-chart-font-family);font-size:var(--mscoa-chart-font-size-base);line-height:var(--mscoa-chart-line-height)}.mscoa-chart__container{padding:0;transition:background-color var(--mscoa-chart-transition);width:100%;max-width:100%;overflow-x:hidden;box-sizing:border-box}.mscoa-chart__loading-container{padding:var(--mscoa-chart-spacing-lg);display:flex;align-items:center;justify-content:center}.mscoa-chart__table-container{position:relative;width:100%;max-width:100%;overflow-x:auto;overflow-y:visible;box-sizing:border-box}.dual-basis-container{display:flex;flex-direction:column;gap:var(--mscoa-chart-spacing-sm)}.dual-basis-container__item{flex:1}:host .single-base{gap:var(--mscoa-chart-spacing-sm);height:48px;font-size:.875em;font-weight:500;transition:background-color var(--mscoa-chart-transition)}:host .single-base--cash{background:var(--mat-sys-inverse-primary)}.account-selection-table-wrapper{position:relative;width:100%}.account-selection-table-container{border-radius:var(--mscoa-chart-border-radius);overflow-x:auto;overflow-y:visible;transition:border-color var(--mscoa-chart-transition);width:100%;max-width:100%;box-sizing:border-box;display:block}.account-selection-table-container--accrual{border:solid 1px var(--mat-sys-primary)}.account-selection-table-container--cash{border:solid 1px var(--mat-sys-inverse-primary)}.account-selection-table-container::-webkit-scrollbar{height:8px}.account-selection-table-container::-webkit-scrollbar-track{background:var(--lib-forms-surface-container-low);border-radius:4px}.account-selection-table-container::-webkit-scrollbar-thumb{background:var(--lib-forms-outline-variant);border-radius:4px}.account-selection-table-container::-webkit-scrollbar-thumb:hover{background:var(--lib-forms-outline)}.table{width:100%;table-layout:fixed;font-family:var(--mscoa-chart-font-family);font-size:var(--mscoa-chart-font-size-base);line-height:var(--mscoa-chart-line-height);border-collapse:separate;border-spacing:0;display:table;box-sizing:border-box;max-width:100%}.table__header-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box}.table__header-cell--segment{text-align:right;padding-right:var(--mscoa-chart-spacing-md);min-width:150px;max-width:200px}.table__header-cell--regular{padding-left:var(--mscoa-chart-spacing-lg);min-width:200px;max-width:none}.table__cell{overflow:visible;box-sizing:border-box;position:relative;vertical-align:top}.table__cell--segment{background:var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container));text-align:right;font-weight:500;padding-right:var(--mscoa-chart-spacing-md);min-width:150px;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;vertical-align:middle}.table__cell--regular{padding:0;min-width:200px;max-width:none;word-wrap:break-word;vertical-align:top;overflow:visible}.table__cell--active{background-color:var(--mat-sys-primary-container);transition:background-color var(--mscoa-chart-transition)}mat-header-cell{background:var(--mat-sys-surface-container);font-weight:600;font-size:var(--mscoa-chart-font-size-base);padding:var(--mscoa-chart-spacing-md)}.mscoa-chart-table{display:flex;flex-direction:column}.portal-container{width:100%}.account-cell-wrapper{position:relative;width:100%;max-width:100%;overflow:visible;z-index:1;min-height:38px;display:flex;flex-direction:column;gap:4px}.cell-button-wrapper{position:relative;width:100%;max-width:100%;overflow:hidden}.cell-button{height:fit-content;min-height:38px;width:100%;max-width:100%;transition:background-color var(--lib-forms-duration-hover) var(--lib-forms-easing),transform var(--lib-forms-duration-hover) var(--lib-forms-easing),box-shadow var(--lib-forms-duration-hover) var(--lib-forms-easing);font-family:var(--mscoa-chart-font-family);font-size:var(--mscoa-chart-font-size-base);line-height:var(--mscoa-chart-line-height);position:relative;overflow:visible;padding:8px}.cell-button:hover:not(:disabled){background-color:var(--mat-sys-surface-container);transform:translateY(-1px);box-shadow:0 2px 4px #0000001a}.cell-button:focus-visible{outline:3px solid var(--mat-sys-primary);outline-offset:2px;z-index:1}.cell-button:disabled{opacity:.6;cursor:not-allowed}.cell-button--selected{background-color:transparent}.cell-button--selected:hover:not(:disabled){background-color:var(--lib-forms-surface-container-low);border-color:var(--lib-forms-primary)}.cell-button.cell-button--selected{animation:fadeInSuccess var(--mscoa-chart-transition)}.cell-button.cell-button--business-error{border-color:var(--lib-forms-error)}.cell-button.cell-button--business-error .selected-acount-label--business-error{color:var(--mat-sys-error);border-color:var(--mat-sys-error)}.success-indicator{color:var(--sem-success);font-size:18px;width:18px;right:-8px;top:-4px;background:var(--lib-forms-surface);border-radius:16px;position:absolute;height:18px;margin-left:var(--mscoa-chart-spacing-xs);animation:scaleIn var(--mscoa-chart-transition);flex-shrink:0}.validated-indicator{color:var(--lib-forms-primary);font-size:18px;width:18px;height:18px;right:-8px;top:-4px;background:var(--lib-forms-surface);border-radius:16px;position:absolute;margin-left:var(--mscoa-chart-spacing-xs);flex-shrink:0;animation:validatedShieldIn .3s ease-out forwards}.business-error-indicator{color:var(--lib-forms-error);font-size:18px;width:18px;right:-8px;top:-4px;background:var(--lib-forms-surface);border-radius:16px;position:absolute;height:18px;margin-left:var(--mscoa-chart-spacing-xs);flex-shrink:0}.required-indicator{color:var(--lib-forms-error);font-weight:600;margin-left:2px}.inline-hint{display:block;font-size:12px;color:var(--lib-forms-on-surface-variant);margin-top:var(--mscoa-chart-spacing-xs);padding:var(--mscoa-chart-spacing-xs) var(--mscoa-chart-spacing-sm);background-color:var(--lib-forms-surface-container-low);border-radius:var(--mscoa-chart-border-radius);line-height:1.4;max-width:100%;word-wrap:break-word}.content{padding:0;display:flex;gap:6px;width:100%;max-width:100%;overflow:visible;min-width:0;flex-wrap:wrap;align-items:center}.selected-acount-label{text-align:left;flex:1;font-weight:400;transition:color var(--mscoa-chart-transition)}.selected-acount-label--error,.selected-acount-label--business-error{color:var(--mat-sys-error);font-weight:500}.selected-acount-label--tag{display:inline-block;padding:4px 10px;background-color:var(--lib-forms-primary-container);color:var(--lib-forms-on-primary-container);border-radius:16px;font-size:13px;font-weight:500;line-height:1.5;border:1px solid var(--lib-forms-primary);box-shadow:0 1px 2px #0000001a;transition:background-color var(--lib-forms-duration-hover) var(--lib-forms-easing),box-shadow var(--lib-forms-duration-hover) var(--lib-forms-easing);width:100%;max-width:100%;overflow:visible;white-space:normal;word-wrap:break-word;word-break:break-word;cursor:pointer;box-sizing:border-box;position:relative}.selected-acount-label--tag:hover{background-color:var(--sem-info-surface);box-shadow:0 2px 4px #1976d226}.segment-cell-content{display:flex;align-items:center;justify-content:flex-end;font-weight:500}.vat-badge{display:inline-flex;align-items:center;justify-content:center;height:16px;padding:2px 6px;border-radius:8px;font-size:9px;font-weight:600;letter-spacing:.5px;text-transform:uppercase;background-color:var(--sem-success-surface);color:var(--sem-warning);border:1px solid var(--lib-forms-outline-variant);box-shadow:none;transition:background-color var(--lib-forms-duration-hover) var(--lib-forms-easing),border-color var(--lib-forms-duration-hover) var(--lib-forms-easing);flex-shrink:0;align-self:flex-start;margin-top:2px;line-height:1}.vat-badge:hover{background-color:var(--sem-warning-surface);border-color:var(--sem-warning)}.vat-chip-container{padding-left:var(--mscoa-chart-spacing-sm);padding-right:var(--mscoa-chart-spacing-sm);padding-bottom:var(--mscoa-chart-spacing-xs);margin-top:var(--mscoa-chart-spacing-xs)}.vat-chip{display:inline-flex;align-items:center;gap:4px;height:24px;padding:4px 8px;border-radius:12px;font-size:11px;font-weight:600;transition:background-color var(--lib-forms-duration-hover) var(--lib-forms-easing),box-shadow var(--lib-forms-duration-hover) var(--lib-forms-easing),transform var(--lib-forms-duration-hover) var(--lib-forms-easing);box-shadow:0 1px 3px #0000001f}.vat-chip--applicable{background:linear-gradient(135deg,var(--sem-warning) 0%,var(--sem-warning) 100%);color:var(--lib-forms-on-primary);border:1px solid var(--sem-warning)}.vat-chip--applicable:hover{box-shadow:0 2px 6px #f57c004d;transform:translateY(-1px)}.vat-chip__icon{font-size:14px;width:14px;height:14px;opacity:.9}.vat-chip__text{font-size:11px;font-weight:600;letter-spacing:.3px}.info-box{display:flex;align-items:center;gap:var(--mscoa-chart-spacing-sm);padding:12px;background:var(--sem-info-surface);border-radius:var(--mscoa-chart-border-radius);margin-bottom:var(--mscoa-chart-spacing-md)}.info-icon{min-width:38px;margin:auto;margin-top:var(--mscoa-chart-spacing-sm)}.empty-state{padding:var(--mscoa-chart-spacing-md);text-align:center;display:flex;align-items:center;justify-content:center;gap:var(--mscoa-chart-spacing-sm);color:var(--mat-sys-on-surface-variant)}.validation-hints{margin-top:var(--mscoa-chart-spacing-md);padding:var(--mscoa-chart-spacing-md);background-color:var(--lib-forms-surface-container-low);border-radius:var(--mscoa-chart-border-radius);border-left:4px solid var(--lib-forms-primary);box-shadow:0 1px 3px #00000014}.validation-hints__title{font-weight:600;font-size:var(--mscoa-chart-font-size-base);margin:0 0 var(--mscoa-chart-spacing-sm) 0;color:var(--lib-forms-on-surface);display:flex;align-items:center;gap:var(--mscoa-chart-spacing-xs)}.validation-hints__title:before{content:\"\\1f4a1\";font-size:16px}.validation-hints__list{margin:0;padding-left:var(--mscoa-chart-spacing-md);color:var(--lib-forms-on-surface-variant);font-size:13px;line-height:1.6}.validation-hints__list li{margin-bottom:var(--mscoa-chart-spacing-sm);position:relative}.validation-hints__list li::marker{color:var(--lib-forms-primary)}.validation-hints__list li:last-child{margin-bottom:0}mat-error{font-size:.75em;margin-top:var(--mscoa-chart-spacing-xs)}mat-error ul{margin:0;padding-left:var(--mscoa-chart-spacing-md)}mat-error li{margin-bottom:var(--mscoa-chart-spacing-xs)}.loading-placeholder{padding:var(--mscoa-chart-spacing-md);color:var(--mat-sys-on-surface-variant)}.loading-spinner-container{display:flex;justify-content:center;align-items:center;height:256px}.error-state{padding:var(--mscoa-chart-spacing-md);color:var(--mat-sys-error)}mat-panel-description{font-size:.875em;line-height:1.4}:host .main-expanse-content{background:var(--mat-sys-surface-container)}@media(max-width:768px){.dual-basis-container{gap:var(--mscoa-chart-spacing-md)}.cell-button{min-height:44px;font-size:15px;max-width:300px}.content{padding:var(--mscoa-chart-spacing-md)}.validation-hints{font-size:13px;padding:var(--mscoa-chart-spacing-sm)}.inline-hint{font-size:11px}}.cell-button:focus-visible,button:focus-visible{outline:3px solid var(--mat-sys-primary);outline-offset:2px;outline-style:solid}@media(prefers-contrast:high){.cell-button{border:2px solid currentColor}.cell-button:focus-visible{outline-width:4px}.selected-acount-label--error{font-weight:600}}@media(prefers-reduced-motion:reduce){.cell-button,.success-indicator,.fade-in,.validated-indicator{animation:none;transition:none}}.table__cell--active{background-color:var(--mat-sys-primary-container);color:var(--mat-sys-on-primary-container)}@media(prefers-contrast:high){.table__cell--active{background-color:var(--mat-sys-primary);color:var(--mat-sys-on-primary)}}.table__cell--business-error{background-color:var(--lib-forms-error-container);border-left:3px solid var(--lib-forms-error)}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeInSuccess{0%{background-color:transparent}50%{background-color:var(--sem-success-surface)}to{background-color:var(--mat-sys-primary-container)}}@keyframes scaleIn{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}@keyframes validatedShieldIn{0%{opacity:0;transform:scale(.6)}70%{opacity:1;transform:scale(1.1)}to{opacity:1;transform:scale(1)}}.fade-in{animation:fadeIn var(--mscoa-chart-transition)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.skeleton-loader{background:linear-gradient(90deg,var(--mat-sys-surface-container) 25%,var(--mat-sys-surface-container-high) 50%,var(--mat-sys-surface-container) 75%);background-size:200% 100%;animation:loading 1.5s ease-in-out infinite;border-radius:var(--mscoa-chart-border-radius)}@keyframes loading{0%{background-position:200% 0}to{background-position:-200% 0}}.skeleton-row{height:48px;margin-bottom:var(--mscoa-chart-spacing-xs)}.skeleton-cell{height:100%;margin-right:var(--mscoa-chart-spacing-md)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: PortalModule }, { kind: "ngmodule", type: MatButtonModule }, { kind: "ngmodule", type: MatDialogModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i6$1.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "directive", type: i6$1.MatMenuContent, selector: "ng-template[matMenuContent]" }, { kind: "ngmodule", type: MatTableModule }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: MscoaChartInputMenuComponent, selector: "lib-mscoa-chart-input-menu", inputs: ["innerInput", "countdownSeconds", "hoveredId"], outputs: ["edit", "delete", "cancelDelete", "hoverStart", "hoverEnd"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, deferBlockDependencies: [() => [i3.NgTemplateOutlet, i4$2.CdkPortalOutlet, i1$2.MatButton, i1$2.MatIconButton, i3$1.MatIcon, i6$1.MatMenuTrigger, i5$1.MatTable, i5$1.MatHeaderCellDef, i5$1.MatHeaderRowDef, i5$1.MatColumnDef, i5$1.MatCellDef, i5$1.MatRowDef, i5$1.MatHeaderCell, i5$1.MatCell, i5$1.MatHeaderRow, i5$1.MatRow, i5.MatTooltip, import('./ngx-t-forms-mscoa-chart-toolbar.component-Ovz5PFIe.mjs').then(m => m.MscoaChartToolbarComponent), import('./ngx-t-forms-mscoa-error-display.component-99DpVSy7.mjs').then(m => m.MscoaErrorDisplayComponent), import('./ngx-t-forms-mscoa-temporary-hint.component-B1Z-IXSL.mjs').then(m => m.MscoaTemporaryHintComponent), i3.AsyncPipe, i3.TitleCasePipe, Promise.resolve().then(function () { return daysAgo_pipe; }).then(m => m.ConvertCamelCasePipe)]] }); }
18665
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: MscoaChartComponent, isStandalone: true, selector: "lib-mscoa-chart", inputs: { inputConfig: { classPropertyName: "inputConfig", publicName: "inputConfig", isSignal: true, isRequired: true, transformFunction: null }, editorMode: { classPropertyName: "editorMode", publicName: "editorMode", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, touched: { classPropertyName: "touched", publicName: "touched", isSignal: true, isRequired: false, transformFunction: null }, formGroup: { classPropertyName: "formGroup", publicName: "formGroup", isSignal: true, isRequired: false, transformFunction: null }, formBuilderFunctions: { classPropertyName: "formBuilderFunctions", publicName: "formBuilderFunctions", isSignal: true, isRequired: false, transformFunction: null }, config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onContainerClick: "onContainerClick", interaction: "interaction" }, ngImport: i0, template: "@if ((viewData$ | async); as viewData) {\r\n<section\r\n (click)=\"setAsTouched($event)\"\r\n class=\"mscoa-chart__container\"\r\n [class.mscoa-chart__container--touched]=\"touched()\"\r\n role=\"region\"\r\n [attr.aria-label]=\"'MSCOA Account Chart'\"\r\n [attr.aria-busy]=\"viewData.loading || viewData.validatingValue\">\r\n\r\n @if (viewData.loading) {\r\n <div class=\"mscoa-chart__loading-container\" role=\"status\" aria-live=\"polite\">\r\n <mat-spinner [diameter]=\"40\"></mat-spinner>\r\n <span class=\"sr-only\">Loading account chart data...</span>\r\n </div>\r\n } @else {\r\n @defer () {\r\n @if (viewData.accountTreeKeys || viewData.cashAccountTreeKeys) {\r\n <div class=\"mscoa-chart__table-container\">\r\n @if (isDualAccountBasis) {\r\n <div class=\"dual-basis-container\" role=\"group\" aria-label=\"Dual accounting basis tables\">\r\n <div class=\"dual-basis-container__item\">\r\n <ng-container\r\n *ngTemplateOutlet=\"selectionTable;\r\n context: {\r\n accountingBasis: ACCOUNTING_BASIS.ACCRUAL,\r\n canCollapse: true,\r\n viewData: viewData\r\n }\">\r\n </ng-container>\r\n </div>\r\n\r\n <div class=\"dual-basis-container__item\">\r\n <ng-container\r\n *ngTemplateOutlet=\"selectionTable;\r\n context: {\r\n accountingBasis: ACCOUNTING_BASIS.CASH,\r\n canCollapse: true,\r\n viewData: viewData\r\n }\">\r\n </ng-container>\r\n </div>\r\n </div>\r\n } @else {\r\n <ng-container\r\n *ngTemplateOutlet=\"selectionTable;\r\n context: {\r\n accountingBasis: config()?.accountingBasis,\r\n canCollapse: false,\r\n viewData: viewData\r\n }\">\r\n </ng-container>\r\n }\r\n </div>\r\n }\r\n\r\n <ng-template\r\n #selectionTable\r\n let-accountingBasis=\"accountingBasis\"\r\n let-canCollapse=\"canCollapse\"\r\n let-viewData=\"viewData\">\r\n\r\n <div class=\"mscoa-chart-table\" role=\"group\" [attr.aria-label]=\"'Accounting basis: ' + (accountingBasis || 'Accrual')\">\r\n <!-- Toolbar -->\r\n <lib-mscoa-chart-toolbar\r\n [accountingBasis]=\"accountingBasis\"\r\n [canCollapse]=\"canCollapse\"\r\n [isExpanded]=\"getExpansionState(accountingBasis || ACCOUNTING_BASIS.ACCRUAL)\"\r\n (toggleExpansion)=\"toggleDualBasisExpansion(accountingBasis || ACCOUNTING_BASIS.ACCRUAL)\">\r\n </lib-mscoa-chart-toolbar>\r\n\r\n @if (shouldShowTable(isDualAccountBasis, getExpansionState(accountingBasis || ACCOUNTING_BASIS.ACCRUAL), accountingBasis)) {\r\n <div class=\"account-selection-table-wrapper\">\r\n <div\r\n class=\"account-selection-table-container\"\r\n [class.account-selection-table-container--accrual]=\"!accountingBasis || accountingBasis === ACCOUNTING_BASIS.ACCRUAL\"\r\n [class.account-selection-table-container--cash]=\"accountingBasis === ACCOUNTING_BASIS.CASH\"\r\n role=\"table\"\r\n [attr.aria-label]=\"'Account selection table for ' + (accountingBasis || 'Accrual') + ' basis'\">\r\n\r\n <table\r\n mat-table\r\n [dataSource]=\"accountingBasis === ACCOUNTING_BASIS.CASH ? viewData.cashTableData : viewData.tableData\"\r\n [trackBy]=\"trackByRow\"\r\n class=\"table\"\r\n [attr.aria-label]=\"'Account selection table for ' + (accountingBasis || 'Accrual') + ' basis'\"\r\n [attr.aria-describedby]=\"'table-description-' + (accountingBasis || ACCOUNTING_BASIS.ACCRUAL)\"\r\n role=\"table\">\r\n <span [id]=\"'table-description-' + (accountingBasis || ACCOUNTING_BASIS.ACCRUAL)\" class=\"sr-only\">\r\n Use arrow keys to navigate between cells. Press Enter or Space to select an account.\r\n </span>\r\n\r\n @for (\r\n col of (accountingBasis === ACCOUNTING_BASIS.CASH ? viewData.cashCols : viewData.cols);\r\n track trackByColumn($index, col);\r\n let i = $index\r\n ) {\r\n <ng-container [matColumnDef]=\"col\" [sticky]=\"i === 0\">\r\n <!-- Header Cell -->\r\n <th\r\n mat-header-cell\r\n *matHeaderCellDef\r\n [class.table__header-cell--segment]=\"isSegmentColumn(i)\"\r\n [class.table__header-cell--regular]=\"!isSegmentColumn(i)\"\r\n [style.width.%]=\"getColumnWidthPercent(isSegmentColumn(i), (accountingBasis === ACCOUNTING_BASIS.CASH ? viewData.cashCols : viewData.cols).length)\"\r\n [style.min-width.px]=\"isSegmentColumn(i) ? 150 : 200\"\r\n [attr.aria-sort]=\"i === 0 ? 'none' : null\"\r\n [attr.scope]=\"'col'\"\r\n [attr.aria-label]=\"getHeaderText(col, i, accountingBasis === ACCOUNTING_BASIS.CASH ? viewData.cashHasMultiSelect : viewData.hasMultiSelect) + ' column'\">\r\n {{ getHeaderText(col, i, accountingBasis === ACCOUNTING_BASIS.CASH ? viewData.cashHasMultiSelect : viewData.hasMultiSelect) | titlecase | unCamelCase }}\r\n </th>\r\n\r\n <!-- Data Cell -->\r\n <td\r\n mat-cell\r\n *matCellDef=\"let row\"\r\n [class.table__cell--segment]=\"isSegmentColumn(i)\"\r\n [class.table__cell--regular]=\"!isSegmentColumn(i)\"\r\n [class.table__cell--active]=\"editSelection?.segment === row['segment'] && activeColumn === col\"\r\n [class.table__cell--business-error]=\"!isSegmentColumn(i) && getCellBusinessError(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\"\r\n [attr.aria-label]=\"'Cell for ' + row['segment'] + ' segment, ' + col + ' column'\"\r\n [attr.aria-selected]=\"!!row[col]\"\r\n [attr.aria-invalid]=\"!isSegmentColumn(i) && !!getCellBusinessError(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\"\r\n [attr.role]=\"'gridcell'\"\r\n [attr.tabindex]=\"isSegmentColumn(i) ? -1 : (row[col] ? 0 : -1)\">\r\n\r\n @if (isSegmentColumn(i)) {\r\n <!-- Segment Column -->\r\n <div class=\"segment-cell-content\">\r\n @if (editorMode() && row.innerInput?.id) {\r\n <button\r\n mat-icon-button\r\n [matMenuTriggerData]=\"{innerInput: row.innerInput}\"\r\n [matMenuTriggerFor]=\"inputMenu\"\r\n [matTooltip]=\"'Options for: ' + row.innerInput.label\"\r\n [attr.aria-label]=\"'Options menu for ' + row.innerInput.label\"\r\n (click)=\"$event.stopPropagation()\">\r\n <mat-icon>more_vert</mat-icon>\r\n </button>\r\n }\r\n <span class=\"segment-cell-content__label\">{{ row['label'] }}</span>\r\n </div>\r\n } @else {\r\n <!-- Regular Column -->\r\n @if (row.innerInput?.id) {\r\n <!-- Custom-input row (peer of the segments): the value is entered inline via the\r\n input portal on the primary (debit) leg; other legs mirror it and render no\r\n control. `innerInput.id` is already the namespaced portal key, so it is looked\r\n up directly \u2014 prepending it again (getPortalKey) double-namespaces and misses. -->\r\n @if (col === COLUMNS.DEBIT && formGroup() && inputPortals[row.innerInput.id]) {\r\n <div class=\"portal-container\">\r\n <ng-template [cdkPortalOutlet]=\"inputPortals[row.innerInput.id]\"></ng-template>\r\n </div>\r\n }\r\n } @else {\r\n @if (row[col]) {\r\n <!-- Account Selected -->\r\n @if (getCellBusinessError(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment']); as cellError) {\r\n <div class=\"account-cell-wrapper\"\r\n [class.account-cell-wrapper--expandable]=\"isTextTruncated(row[col] | unCamelCase)\">\r\n <button\r\n [disabled]=\"row['singleSelect'] === true && col === COLUMNS.CREDIT\"\r\n (mousedown)=\"$event.preventDefault(); $event.stopPropagation(); selectAccount(row, col, accountingBasis === ACCOUNTING_BASIS.CASH); setAsTouched($event)\"\r\n (keydown)=\"handleCellKeyDown($event, row, col, accountingBasis === ACCOUNTING_BASIS.CASH)\"\r\n color=\"primary\"\r\n mat-button\r\n class=\"cell-button cell-button--selected cell-button--business-error\"\r\n [attr.aria-label]=\"'Selected account: ' + (row[col] | unCamelCase) + ' for ' + row['segment'] + ' segment, ' + col + ' column. Business error: ' + cellError.message\"\r\n [attr.aria-invalid]=\"true\"\r\n [attr.aria-pressed]=\"true\"\r\n [matTooltip]=\"cellError.message\">\r\n <div class=\"content\">\r\n <span\r\n class=\"selected-acount-label selected-acount-label--tag selected-acount-label--business-error\"\r\n [attr.aria-label]=\"'Selected account: ' + (row[col] | unCamelCase)\">\r\n {{ row[col] | unCamelCase }}\r\n @if (shouldShowVatChip(row, col)) {\r\n <span\r\n class=\"vat-badge\"\r\n [attr.aria-label]=\"'VAT applicable to ' + col + ' column'\"\r\n [matTooltip]=\"'VAT is applicable to this ' + col + ' account selection'\">\r\n VAT\r\n </span>\r\n }\r\n </span>\r\n <mat-icon class=\"business-error-indicator\" aria-hidden=\"true\">error</mat-icon>\r\n </div>\r\n </button>\r\n </div>\r\n } @else {\r\n <div class=\"account-cell-wrapper\"\r\n [class.account-cell-wrapper--expandable]=\"isTextTruncated(row[col] | unCamelCase)\">\r\n <button\r\n [disabled]=\"(row['singleSelect'] === true && col === COLUMNS.CREDIT) || isCellDisabledByBusinessErrors(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\"\r\n (mousedown)=\"$event.preventDefault(); $event.stopPropagation(); selectAccount(row, col, accountingBasis === ACCOUNTING_BASIS.CASH); setAsTouched($event)\"\r\n (keydown)=\"handleCellKeyDown($event, row, col, accountingBasis === ACCOUNTING_BASIS.CASH)\"\r\n color=\"primary\"\r\n mat-button\r\n class=\"cell-button cell-button--selected\"\r\n [attr.aria-label]=\"'Selected account: ' + (row[col] | unCamelCase) + ' for ' + row['segment'] + ' segment, ' + col + ' column. Press Enter or Space to change'\"\r\n [attr.aria-invalid]=\"false\"\r\n [attr.aria-disabled]=\"(row['singleSelect'] === true && col === COLUMNS.CREDIT) || isCellDisabledByBusinessErrors(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\"\r\n [attr.aria-pressed]=\"true\">\r\n <div class=\"content\">\r\n <span\r\n class=\"selected-acount-label selected-acount-label--tag\"\r\n [attr.aria-label]=\"'Selected account: ' + (row[col] | unCamelCase)\">\r\n {{ row[col] | unCamelCase }}\r\n @if (shouldShowVatChip(row, col)) {\r\n <span\r\n class=\"vat-badge\"\r\n [attr.aria-label]=\"'VAT applicable to ' + col + ' column'\"\r\n [matTooltip]=\"'VAT is applicable to this ' + col + ' account selection'\">\r\n VAT\r\n </span>\r\n }\r\n </span>\r\n @if (showValidationSuccessIndicators) {\r\n <mat-icon class=\"validated-indicator\" aria-hidden=\"true\" [matTooltip]=\"'Validated'\">shield</mat-icon>\r\n } @else {\r\n <mat-icon class=\"success-indicator\" aria-hidden=\"true\">check_circle</mat-icon>\r\n }\r\n </div>\r\n </button>\r\n </div>\r\n }\r\n } @else {\r\n <!-- No Account Selected -->\r\n <div class=\"cell-button-wrapper\">\r\n <button\r\n [disabled]=\"selectionDisabled(row, col) || isCellDisabledByBusinessErrors(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\"\r\n [color]=\"\"\r\n (click)=\"selectAccount(row, col, accountingBasis === ACCOUNTING_BASIS.CASH); $event.stopPropagation(); setAsTouched($event)\"\r\n (keydown)=\"handleCellKeyDown($event, row, col, accountingBasis === ACCOUNTING_BASIS.CASH)\"\r\n mat-button\r\n class=\"cell-button\"\r\n [class.cell-button--business-error]=\"!!getCellBusinessError(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\"\r\n [attr.aria-label]=\"shouldShowAutoSelectedLabel(row, col) ? 'Auto selected for ' + row['segment'] + ' segment, ' + col + ' column' : 'Select account for ' + row['segment'] + ' segment, ' + col + ' column'\"\r\n [attr.aria-disabled]=\"selectionDisabled(row, col) || isCellDisabledByBusinessErrors(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\"\r\n [attr.aria-describedby]=\"getValidationHint(row, col, accountingBasis || ACCOUNTING_BASIS.ACCRUAL) ? 'hint-' + row['segment'] + '-' + col : null\"\r\n [attr.aria-invalid]=\"hasError(touched(), inputConfig().required || false, !!row[col]) || !!getCellBusinessError(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\"\r\n [attr.aria-required]=\"inputConfig().required && !row[col]\"\r\n [matTooltip]=\"getCellBusinessError(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])?.message\">\r\n <div class=\"content\">\r\n <span\r\n class=\"selected-acount-label\"\r\n [class.selected-acount-label--error]=\"hasError(touched(), inputConfig().required || false, !!row[col])\"\r\n [class.selected-acount-label--business-error]=\"!!getCellBusinessError(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\">\r\n {{ (shouldShowAutoSelectedLabel(row, col) ? 'auto selected' : 'Select account') | unCamelCase }}\r\n @if (inputConfig().required && !row[col]) {\r\n <span class=\"required-indicator\" aria-label=\"Required field\">*</span>\r\n }\r\n </span>\r\n @if (getCellBusinessError(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])) {\r\n <mat-icon class=\"business-error-indicator\" aria-hidden=\"true\">error</mat-icon>\r\n } @else if (shouldShowDropdownIcon(row, col)) {\r\n <mat-icon aria-hidden=\"true\">arrow_drop_down</mat-icon>\r\n }\r\n </div>\r\n </button>\r\n @if (getValidationHint(row, col, accountingBasis || ACCOUNTING_BASIS.ACCRUAL); as hint) {\r\n <span\r\n class=\"inline-hint\"\r\n [id]=\"'hint-' + row['segment'] + '-' + col\"\r\n role=\"tooltip\"\r\n aria-live=\"polite\">\r\n {{ hint }}\r\n </span>\r\n }\r\n </div>\r\n }\r\n }\r\n }\r\n </td>\r\n </ng-container>\r\n }\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"accountingBasis === ACCOUNTING_BASIS.CASH ? viewData.cashCols : viewData.cols\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: (accountingBasis === ACCOUNTING_BASIS.CASH ? viewData.cashCols : viewData.cols)\"></tr>\r\n </table>\r\n </div>\r\n </div>\r\n\r\n <!-- Empty State -->\r\n @if ((accountingBasis === ACCOUNTING_BASIS.CASH ? viewData.cashAccountTreeKeys : viewData.accountTreeKeys).length === 0) {\r\n <section class=\"empty-state\" role=\"status\" aria-live=\"polite\">\r\n <mat-icon aria-hidden=\"true\">info</mat-icon>\r\n <span>\r\n No account segments are currently configured.\r\n Please configure account segments to proceed.\r\n </span>\r\n </section>\r\n }\r\n\r\n <!-- Success Messages (Temporary) -->\r\n @if ((successMessage$ | async); as successMessages) {\r\n @if (getSuccessMessage(successMessages, accountingBasis || ACCOUNTING_BASIS.ACCRUAL); as msg) {\r\n <lib-mscoa-temporary-hint\r\n [message]=\"getSuccessMessage(successMessages, accountingBasis || ACCOUNTING_BASIS.ACCRUAL) ?? ''\"\r\n [type]=\"'info'\"\r\n [duration]=\"6000\"\r\n [showDismiss]=\"true\">\r\n </lib-mscoa-temporary-hint>\r\n }\r\n }\r\n\r\n <!-- Business Rule Errors (Temporary display, keeps error styling) -->\r\n @if ((viewData.busnessRuleErrors[accountingBasis || ACCOUNTING_BASIS.ACCRUAL] || []).length > 0) {\r\n <lib-mscoa-error-display\r\n [errors]=\"viewData.busnessRuleErrors[accountingBasis || ACCOUNTING_BASIS.ACCRUAL] || []\"\r\n type=\"error\"\r\n [context]=\"{ accountingBasis: accountingBasis || ACCOUNTING_BASIS.ACCRUAL }\"\r\n [duration]=\"6000\"\r\n [showDismiss]=\"true\">\r\n </lib-mscoa-error-display>\r\n }\r\n\r\n <!-- Temporary Contextual Hints -->\r\n @if (temporaryHintMessage) {\r\n <lib-mscoa-temporary-hint\r\n [message]=\"temporaryHintMessage\"\r\n [type]=\"temporaryHintType\"\r\n [duration]=\"6000\"\r\n [showDismiss]=\"true\">\r\n </lib-mscoa-temporary-hint>\r\n }\r\n\r\n <!-- Validation Hints (Context-Aware) -->\r\n @if (!touched() && inputConfig().required && !viewData.busnessRuleErrors[accountingBasis || ACCOUNTING_BASIS.ACCRUAL]?.length && (!isDualAccountBasis || accountingBasis === ACCOUNTING_BASIS.ACCRUAL || !accountingBasis)) {\r\n <div class=\"validation-hints\" role=\"region\" aria-label=\"Validation guidance\">\r\n <p class=\"validation-hints__title\">Guidance:</p>\r\n <ul class=\"validation-hints__list\">\r\n <li>Account combinations are validated automatically. Select accounts that belong to compatible reporting categories.</li>\r\n <li>Required fields are marked with an asterisk (*). Complete all required selections to proceed.</li>\r\n <li>Some fields may be automatically populated based on your selections to ensure consistency.</li>\r\n </ul>\r\n </div>\r\n }\r\n }\r\n </div>\r\n </ng-template>\r\n } @placeholder {\r\n <div class=\"loading-placeholder\" role=\"status\" aria-live=\"polite\">\r\n <p>Loading data...</p>\r\n </div>\r\n } @loading (minimum 100ms) {\r\n <div class=\"loading-spinner-container\" role=\"status\" aria-live=\"polite\">\r\n <mat-progress-spinner mode=\"indeterminate\" [diameter]=\"40\"></mat-progress-spinner>\r\n <span class=\"sr-only\">Loading account chart...</span>\r\n </div>\r\n } @error {\r\n <div class=\"error-state\" role=\"alert\" aria-live=\"assertive\">\r\n <p>Error loading data. Please try again.</p>\r\n </div>\r\n }\r\n }\r\n</section>\r\n}\r\n\r\n<!-- Input Menu -->\r\n<mat-menu #inputMenu=\"matMenu\">\r\n <ng-template matMenuContent let-innerInput=\"innerInput\">\r\n <lib-mscoa-chart-input-menu\r\n [innerInput]=\"innerInput\"\r\n [countdownSeconds]=\"inputWillBeRemovedIn(innerInput.id)\"\r\n [hoveredId]=\"hoveredInputId\"\r\n (edit)=\"onInputMenuEdit($event)\"\r\n (delete)=\"onInputMenuDelete($event)\"\r\n (cancelDelete)=\"onInputMenuCancelDelete($event)\"\r\n (hoverStart)=\"onInputMenuHoverStart($event)\"\r\n (hoverEnd)=\"onInputMenuHoverEnd()\">\r\n </lib-mscoa-chart-input-menu>\r\n </ng-template>\r\n</mat-menu>\r\n", styles: ["@charset \"UTF-8\";:host{--mscoa-chart-spacing-xs: 4px;--mscoa-chart-spacing-sm: 8px;--mscoa-chart-spacing-md: 16px;--mscoa-chart-spacing-lg: 24px;--mscoa-chart-spacing-xl: 32px;--mscoa-chart-border-radius: 4px;--mscoa-chart-transition: var(--lib-forms-duration-hover) var(--lib-forms-easing);--mscoa-chart-font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;--mscoa-chart-font-size-base: 14px;--mscoa-chart-line-height: 1.5;display:block;font-family:var(--mscoa-chart-font-family);font-size:var(--mscoa-chart-font-size-base);line-height:var(--mscoa-chart-line-height)}.mscoa-chart__container{padding:0;transition:background-color var(--mscoa-chart-transition);width:100%;max-width:100%;overflow-x:hidden;box-sizing:border-box}.mscoa-chart__loading-container{padding:var(--mscoa-chart-spacing-lg);display:flex;align-items:center;justify-content:center}.mscoa-chart__table-container{position:relative;width:100%;max-width:100%;overflow-x:auto;overflow-y:visible;box-sizing:border-box}.dual-basis-container{display:flex;flex-direction:column;gap:var(--mscoa-chart-spacing-sm)}.dual-basis-container__item{flex:1}:host .single-base{gap:var(--mscoa-chart-spacing-sm);height:48px;font-size:.875em;font-weight:500;transition:background-color var(--mscoa-chart-transition)}:host .single-base--cash{background:var(--mat-sys-inverse-primary)}.account-selection-table-wrapper{position:relative;width:100%}.account-selection-table-container{border-radius:var(--mscoa-chart-border-radius);overflow-x:auto;overflow-y:visible;transition:border-color var(--mscoa-chart-transition);width:100%;max-width:100%;box-sizing:border-box;display:block}.account-selection-table-container--accrual{border:solid 1px var(--mat-sys-primary)}.account-selection-table-container--cash{border:solid 1px var(--mat-sys-inverse-primary)}.account-selection-table-container::-webkit-scrollbar{height:8px}.account-selection-table-container::-webkit-scrollbar-track{background:var(--lib-forms-surface-container-low);border-radius:4px}.account-selection-table-container::-webkit-scrollbar-thumb{background:var(--lib-forms-outline-variant);border-radius:4px}.account-selection-table-container::-webkit-scrollbar-thumb:hover{background:var(--lib-forms-outline)}.table{width:100%;table-layout:fixed;font-family:var(--mscoa-chart-font-family);font-size:var(--mscoa-chart-font-size-base);line-height:var(--mscoa-chart-line-height);border-collapse:separate;border-spacing:0;display:table;box-sizing:border-box;max-width:100%}.table__header-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box}.table__header-cell--segment{text-align:right;padding-right:var(--mscoa-chart-spacing-md);min-width:150px;max-width:200px}.table__header-cell--regular{padding-left:var(--mscoa-chart-spacing-lg);min-width:200px;max-width:none}.table__cell{overflow:visible;box-sizing:border-box;position:relative;vertical-align:top}.table__cell--segment{background:var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container));text-align:right;font-weight:500;padding-right:var(--mscoa-chart-spacing-md);min-width:150px;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;vertical-align:middle}.table__cell--regular{padding:0;min-width:200px;max-width:none;word-wrap:break-word;vertical-align:top;overflow:visible}.table__cell--active{background-color:var(--mat-sys-primary-container);transition:background-color var(--mscoa-chart-transition)}mat-header-cell{background:var(--mat-sys-surface-container);font-weight:600;font-size:var(--mscoa-chart-font-size-base);padding:var(--mscoa-chart-spacing-md)}.mscoa-chart-table{display:flex;flex-direction:column}.portal-container{width:100%}.account-cell-wrapper{position:relative;width:100%;max-width:100%;overflow:visible;z-index:1;min-height:38px;display:flex;flex-direction:column;gap:4px}.cell-button-wrapper{position:relative;width:100%;max-width:100%;overflow:hidden}.cell-button{height:fit-content;min-height:38px;width:100%;max-width:100%;transition:background-color var(--lib-forms-duration-hover) var(--lib-forms-easing),transform var(--lib-forms-duration-hover) var(--lib-forms-easing),box-shadow var(--lib-forms-duration-hover) var(--lib-forms-easing);font-family:var(--mscoa-chart-font-family);font-size:var(--mscoa-chart-font-size-base);line-height:var(--mscoa-chart-line-height);position:relative;overflow:visible;padding:8px}.cell-button:hover:not(:disabled){background-color:var(--mat-sys-surface-container);transform:translateY(-1px);box-shadow:0 2px 4px #0000001a}.cell-button:focus-visible{outline:3px solid var(--mat-sys-primary);outline-offset:2px;z-index:1}.cell-button:disabled{opacity:.6;cursor:not-allowed}.cell-button--selected{background-color:transparent}.cell-button--selected:hover:not(:disabled){background-color:var(--lib-forms-surface-container-low);border-color:var(--lib-forms-primary)}.cell-button.cell-button--selected{animation:fadeInSuccess var(--mscoa-chart-transition)}.cell-button.cell-button--business-error{border-color:var(--lib-forms-error)}.cell-button.cell-button--business-error .selected-acount-label--business-error{color:var(--mat-sys-error);border-color:var(--mat-sys-error)}.success-indicator{color:var(--sem-success);font-size:18px;width:18px;right:-8px;top:-4px;background:var(--lib-forms-surface);border-radius:16px;position:absolute;height:18px;margin-left:var(--mscoa-chart-spacing-xs);animation:scaleIn var(--mscoa-chart-transition);flex-shrink:0}.validated-indicator{color:var(--lib-forms-primary);font-size:18px;width:18px;height:18px;right:-8px;top:-4px;background:var(--lib-forms-surface);border-radius:16px;position:absolute;margin-left:var(--mscoa-chart-spacing-xs);flex-shrink:0;animation:validatedShieldIn .3s ease-out forwards}.business-error-indicator{color:var(--lib-forms-error);font-size:18px;width:18px;right:-8px;top:-4px;background:var(--lib-forms-surface);border-radius:16px;position:absolute;height:18px;margin-left:var(--mscoa-chart-spacing-xs);flex-shrink:0}.required-indicator{color:var(--lib-forms-error);font-weight:600;margin-left:2px}.inline-hint{display:block;font-size:12px;color:var(--lib-forms-on-surface-variant);margin-top:var(--mscoa-chart-spacing-xs);padding:var(--mscoa-chart-spacing-xs) var(--mscoa-chart-spacing-sm);background-color:var(--lib-forms-surface-container-low);border-radius:var(--mscoa-chart-border-radius);line-height:1.4;max-width:100%;word-wrap:break-word}.content{padding:0;display:flex;gap:6px;width:100%;max-width:100%;overflow:visible;min-width:0;flex-wrap:wrap;align-items:center}.selected-acount-label{text-align:left;flex:1;font-weight:400;transition:color var(--mscoa-chart-transition)}.selected-acount-label--error,.selected-acount-label--business-error{color:var(--mat-sys-error);font-weight:500}.selected-acount-label--tag{display:inline-block;padding:4px 10px;background-color:var(--lib-forms-primary-container);color:var(--lib-forms-on-primary-container);border-radius:16px;font-size:13px;font-weight:500;line-height:1.5;border:1px solid var(--lib-forms-primary);box-shadow:0 1px 2px #0000001a;transition:background-color var(--lib-forms-duration-hover) var(--lib-forms-easing),box-shadow var(--lib-forms-duration-hover) var(--lib-forms-easing);width:100%;max-width:100%;overflow:visible;white-space:normal;word-wrap:break-word;word-break:break-word;cursor:pointer;box-sizing:border-box;position:relative}.selected-acount-label--tag:hover{background-color:var(--sem-info-surface);box-shadow:0 2px 4px #1976d226}.segment-cell-content{display:flex;align-items:center;justify-content:flex-end;font-weight:500}.vat-badge{display:inline-flex;align-items:center;justify-content:center;height:16px;padding:2px 6px;border-radius:8px;font-size:9px;font-weight:600;letter-spacing:.5px;text-transform:uppercase;background-color:var(--sem-success-surface);color:var(--sem-warning);border:1px solid var(--lib-forms-outline-variant);box-shadow:none;transition:background-color var(--lib-forms-duration-hover) var(--lib-forms-easing),border-color var(--lib-forms-duration-hover) var(--lib-forms-easing);flex-shrink:0;align-self:flex-start;margin-top:2px;line-height:1}.vat-badge:hover{background-color:var(--sem-warning-surface);border-color:var(--sem-warning)}.vat-chip-container{padding-left:var(--mscoa-chart-spacing-sm);padding-right:var(--mscoa-chart-spacing-sm);padding-bottom:var(--mscoa-chart-spacing-xs);margin-top:var(--mscoa-chart-spacing-xs)}.vat-chip{display:inline-flex;align-items:center;gap:4px;height:24px;padding:4px 8px;border-radius:12px;font-size:11px;font-weight:600;transition:background-color var(--lib-forms-duration-hover) var(--lib-forms-easing),box-shadow var(--lib-forms-duration-hover) var(--lib-forms-easing),transform var(--lib-forms-duration-hover) var(--lib-forms-easing);box-shadow:0 1px 3px #0000001f}.vat-chip--applicable{background:linear-gradient(135deg,var(--sem-warning) 0%,var(--sem-warning) 100%);color:var(--lib-forms-on-primary);border:1px solid var(--sem-warning)}.vat-chip--applicable:hover{box-shadow:0 2px 6px #f57c004d;transform:translateY(-1px)}.vat-chip__icon{font-size:14px;width:14px;height:14px;opacity:.9}.vat-chip__text{font-size:11px;font-weight:600;letter-spacing:.3px}.info-box{display:flex;align-items:center;gap:var(--mscoa-chart-spacing-sm);padding:12px;background:var(--sem-info-surface);border-radius:var(--mscoa-chart-border-radius);margin-bottom:var(--mscoa-chart-spacing-md)}.info-icon{min-width:38px;margin:auto;margin-top:var(--mscoa-chart-spacing-sm)}.empty-state{padding:var(--mscoa-chart-spacing-md);text-align:center;display:flex;align-items:center;justify-content:center;gap:var(--mscoa-chart-spacing-sm);color:var(--mat-sys-on-surface-variant)}.validation-hints{margin-top:var(--mscoa-chart-spacing-md);padding:var(--mscoa-chart-spacing-md);background-color:var(--lib-forms-surface-container-low);border-radius:var(--mscoa-chart-border-radius);border-left:4px solid var(--lib-forms-primary);box-shadow:0 1px 3px #00000014}.validation-hints__title{font-weight:600;font-size:var(--mscoa-chart-font-size-base);margin:0 0 var(--mscoa-chart-spacing-sm) 0;color:var(--lib-forms-on-surface);display:flex;align-items:center;gap:var(--mscoa-chart-spacing-xs)}.validation-hints__title:before{content:\"\\1f4a1\";font-size:16px}.validation-hints__list{margin:0;padding-left:var(--mscoa-chart-spacing-md);color:var(--lib-forms-on-surface-variant);font-size:13px;line-height:1.6}.validation-hints__list li{margin-bottom:var(--mscoa-chart-spacing-sm);position:relative}.validation-hints__list li::marker{color:var(--lib-forms-primary)}.validation-hints__list li:last-child{margin-bottom:0}mat-error{font-size:.75em;margin-top:var(--mscoa-chart-spacing-xs)}mat-error ul{margin:0;padding-left:var(--mscoa-chart-spacing-md)}mat-error li{margin-bottom:var(--mscoa-chart-spacing-xs)}.loading-placeholder{padding:var(--mscoa-chart-spacing-md);color:var(--mat-sys-on-surface-variant)}.loading-spinner-container{display:flex;justify-content:center;align-items:center;height:256px}.error-state{padding:var(--mscoa-chart-spacing-md);color:var(--mat-sys-error)}mat-panel-description{font-size:.875em;line-height:1.4}:host .main-expanse-content{background:var(--mat-sys-surface-container)}@media(max-width:768px){.dual-basis-container{gap:var(--mscoa-chart-spacing-md)}.cell-button{min-height:44px;font-size:15px;max-width:300px}.content{padding:var(--mscoa-chart-spacing-md)}.validation-hints{font-size:13px;padding:var(--mscoa-chart-spacing-sm)}.inline-hint{font-size:11px}}.cell-button:focus-visible,button:focus-visible{outline:3px solid var(--mat-sys-primary);outline-offset:2px;outline-style:solid}@media(prefers-contrast:high){.cell-button{border:2px solid currentColor}.cell-button:focus-visible{outline-width:4px}.selected-acount-label--error{font-weight:600}}@media(prefers-reduced-motion:reduce){.cell-button,.success-indicator,.fade-in,.validated-indicator{animation:none;transition:none}}.table__cell--active{background-color:var(--mat-sys-primary-container);color:var(--mat-sys-on-primary-container)}@media(prefers-contrast:high){.table__cell--active{background-color:var(--mat-sys-primary);color:var(--mat-sys-on-primary)}}.table__cell--business-error{background-color:var(--lib-forms-error-container);border-left:3px solid var(--lib-forms-error)}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeInSuccess{0%{background-color:transparent}50%{background-color:var(--sem-success-surface)}to{background-color:var(--mat-sys-primary-container)}}@keyframes scaleIn{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}@keyframes validatedShieldIn{0%{opacity:0;transform:scale(.6)}70%{opacity:1;transform:scale(1.1)}to{opacity:1;transform:scale(1)}}.fade-in{animation:fadeIn var(--mscoa-chart-transition)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.skeleton-loader{background:linear-gradient(90deg,var(--mat-sys-surface-container) 25%,var(--mat-sys-surface-container-high) 50%,var(--mat-sys-surface-container) 75%);background-size:200% 100%;animation:loading 1.5s ease-in-out infinite;border-radius:var(--mscoa-chart-border-radius)}@keyframes loading{0%{background-position:200% 0}to{background-position:-200% 0}}.skeleton-row{height:48px;margin-bottom:var(--mscoa-chart-spacing-xs)}.skeleton-cell{height:100%;margin-right:var(--mscoa-chart-spacing-md)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: PortalModule }, { kind: "ngmodule", type: MatButtonModule }, { kind: "ngmodule", type: MatDialogModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i6$1.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "directive", type: i6$1.MatMenuContent, selector: "ng-template[matMenuContent]" }, { kind: "ngmodule", type: MatTableModule }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: MscoaChartInputMenuComponent, selector: "lib-mscoa-chart-input-menu", inputs: ["innerInput", "countdownSeconds", "hoveredId"], outputs: ["edit", "delete", "cancelDelete", "hoverStart", "hoverEnd"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, deferBlockDependencies: [() => [i3.NgTemplateOutlet, i4$2.CdkPortalOutlet, i1$2.MatButton, i1$2.MatIconButton, i3$1.MatIcon, i6$1.MatMenuTrigger, i5$1.MatTable, i5$1.MatHeaderCellDef, i5$1.MatHeaderRowDef, i5$1.MatColumnDef, i5$1.MatCellDef, i5$1.MatRowDef, i5$1.MatHeaderCell, i5$1.MatCell, i5$1.MatHeaderRow, i5$1.MatRow, i5.MatTooltip, import('./ngx-t-forms-mscoa-chart-toolbar.component-D1ASX1mt.mjs').then(m => m.MscoaChartToolbarComponent), import('./ngx-t-forms-mscoa-error-display.component-99DpVSy7.mjs').then(m => m.MscoaErrorDisplayComponent), import('./ngx-t-forms-mscoa-temporary-hint.component-B1Z-IXSL.mjs').then(m => m.MscoaTemporaryHintComponent), i3.AsyncPipe, i3.TitleCasePipe, Promise.resolve().then(function () { return daysAgo_pipe; }).then(m => m.ConvertCamelCasePipe)]] }); }
18196
18666
  }
18197
- i0.ɵɵngDeclareClassMetadataAsync({ minVersion: "18.0.0", version: "21.2.12", ngImport: i0, type: MscoaChartComponent, resolveDeferredDeps: () => [import('./ngx-t-forms-mscoa-chart-toolbar.component-Ovz5PFIe.mjs').then(m => m.MscoaChartToolbarComponent), import('./ngx-t-forms-mscoa-error-display.component-99DpVSy7.mjs').then(m => m.MscoaErrorDisplayComponent), import('./ngx-t-forms-mscoa-temporary-hint.component-B1Z-IXSL.mjs').then(m => m.MscoaTemporaryHintComponent), Promise.resolve().then(function () { return daysAgo_pipe; }).then(m => m.ConvertCamelCasePipe)], resolveMetadata: (MscoaChartToolbarComponent, MscoaErrorDisplayComponent, MscoaTemporaryHintComponent, ConvertCamelCasePipe) => ({ decorators: [{
18667
+ i0.ɵɵngDeclareClassMetadataAsync({ minVersion: "18.0.0", version: "21.2.12", ngImport: i0, type: MscoaChartComponent, resolveDeferredDeps: () => [import('./ngx-t-forms-mscoa-chart-toolbar.component-D1ASX1mt.mjs').then(m => m.MscoaChartToolbarComponent), import('./ngx-t-forms-mscoa-error-display.component-99DpVSy7.mjs').then(m => m.MscoaErrorDisplayComponent), import('./ngx-t-forms-mscoa-temporary-hint.component-B1Z-IXSL.mjs').then(m => m.MscoaTemporaryHintComponent), Promise.resolve().then(function () { return daysAgo_pipe; }).then(m => m.ConvertCamelCasePipe)], resolveMetadata: (MscoaChartToolbarComponent, MscoaErrorDisplayComponent, MscoaTemporaryHintComponent, ConvertCamelCasePipe) => ({ decorators: [{
18198
18668
  type: Component,
18199
18669
  args: [{ selector: 'lib-mscoa-chart', imports: [
18200
18670
  CommonModule,
@@ -20297,23 +20767,78 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
20297
20767
  }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], formInputs: [{ type: i0.Input, args: [{ isSignal: true, alias: "formInputs", required: false }] }], pathChanged: [{ type: i0.Output, args: ["pathChanged"] }], textareaElementRef: [{ type: i0.ViewChild, args: ['textarea', { isSignal: true }] }] } });
20298
20768
 
20299
20769
  /**
20300
- * Embedded code-style JSON editor: a textarea with a synced syntax-highlight
20301
- * backdrop, a persistent error zone and a "Format JSON" action. It owns only
20302
- * its editing surface — the parent renders any field label / hint.
20770
+ * Above this character count the syntax-highlight backdrop is skipped (rendered
20771
+ * as plain escaped text) to keep very large documents responsive — the regex
20772
+ * highlighter is O(n) per change and dominates typing latency past this size.
20773
+ */
20774
+ const HIGHLIGHT_MAX_CHARS = 50_000;
20775
+ /** One indent level (matches `JSON.stringify(…, 4)` so Format and manual edits agree). */
20776
+ const INDENT_UNIT = ' ';
20777
+ /** Debounce (ms) applied ONLY to parse/validation/emit — never to the visible highlight. */
20778
+ const PARSE_DEBOUNCE_MS = 200;
20779
+ /** JSON syntax-highlight matcher, hoisted so it is compiled once per module. */
20780
+ const JSON_TOKEN_RE = /("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g;
20781
+ /** Only word chars/spaces after a `$` keep the binding menu open (matches the established pattern). */
20782
+ const BINDING_FILTER_RE = /^[a-zA-Z0-9_\s]*$/;
20783
+ /** A `{{…}}` field-binding token (no nested braces). Used for pill highlighting + click-to-edit. */
20784
+ const TOKEN_RE = /\{\{[^{}]*\}\}/g;
20785
+ /** The trimmed inner content of a `{{…}}` token (e.g. `"{{ Region }}"` → `"Region"`). */
20786
+ function tokenContent(token) {
20787
+ return token.slice(2, -2).trim();
20788
+ }
20789
+ /**
20790
+ * Embedded code-style JSON editor with a syntax-highlight backdrop, a line-number
20791
+ * gutter, a persistent error zone, a "Format JSON" action and a `$`-trigger
20792
+ * binding menu. Owns only its editing surface — the parent renders any field
20793
+ * label / hint.
20794
+ *
20795
+ * **Responsiveness model.** The visible glyphs are the highlight backdrop (the
20796
+ * textarea text is transparent). The highlight + gutter therefore update
20797
+ * **synchronously** on every keystroke so typing tracks the caret with zero lag;
20798
+ * only the (comparatively expensive, noisy) JSON parse + `valueChange` emit is
20799
+ * debounced. Scroll is synced synchronously so the highlight never trails the
20800
+ * text. The author's exact text/whitespace is preserved across value round-trips
20801
+ * (only the Format action reflows), and never reset mid-typing (the textarea is
20802
+ * uncontrolled — its value is written imperatively, not via a two-way binding).
20303
20803
  *
20304
20804
  * @example
20305
20805
  * <lib-json-editor [value]="config()" (valueChange)="onConfig($event)" />
20306
20806
  */
20307
20807
  class JsonEditorComponent {
20308
- /** Raw editor text, mirrored from the control so highlighting stays reactive. */
20808
+ /** The single source of truth for the editor text (drives highlight + gutter). */
20309
20809
  #text;
20810
+ /**
20811
+ * The set of token contents that map to a real field — a binding's `insert`
20812
+ * content plus any `aliases`. Drives valid-vs-unrecognised pill styling. Empty
20813
+ * when no bindings are supplied (then every `{{…}}` is treated as valid, so
20814
+ * consumers that don't provide bindings are unaffected).
20815
+ */
20816
+ #validTokens;
20817
+ /** Caret offset captured on the latest edit, anchoring the `$` lookup + insertion. */
20818
+ #cursorPosition;
20819
+ /** When the menu was opened by clicking a `{{…}}` token, the range to replace on select. */
20820
+ #activeTokenRange;
20310
20821
  #destroyRef;
20311
20822
  /** Last value that parsed cleanly — emitted (with `valid:false`) on an invalid edit. */
20312
20823
  #lastValid;
20313
20824
  /** Snapshot of the most recently applied `value` input, gating the bridge. */
20314
20825
  #lastInput;
20315
- /** Pending rAF id for scroll syncing, so we coalesce bursts of scroll events. */
20316
- #scrollFrame;
20826
+ /** The structural value we last emitted — used to recognise (and ignore) our own echo. */
20827
+ #lastEmitted;
20828
+ /** Debounced parse/emit pipe — fed the raw text on every edit. */
20829
+ #edits;
20830
+ /**
20831
+ * Write `text` into the textarea. When it is focused (e.g. a post-debounce
20832
+ * reflow after token whitespace normalisation), the caret is preserved
20833
+ * (clamped) rather than jumping to the end.
20834
+ */
20835
+ #writeTextareaPreservingCaret(el, text) {
20836
+ const focused = el.ownerDocument.activeElement === el;
20837
+ const caret = focused ? Math.min(el.selectionStart ?? text.length, text.length) : undefined;
20838
+ el.value = text;
20839
+ if (caret !== undefined)
20840
+ el.setSelectionRange(caret, caret);
20841
+ }
20317
20842
  constructor() {
20318
20843
  /** JSON value to display and edit. */
20319
20844
  this.value = input(...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
@@ -20321,121 +20846,376 @@ class JsonEditorComponent {
20321
20846
  this.height = input('450px', ...(ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []));
20322
20847
  /** When `true`, the editor is read-only and the Format action is disabled. */
20323
20848
  this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
20849
+ /**
20850
+ * Insertable bindings for the `$`-trigger menu. When empty the `$`-menu is
20851
+ * inert (existing consumers are unaffected); when non-empty, typing `$` opens
20852
+ * a filtered list and choosing an entry inserts its `insert` text at the caret.
20853
+ */
20854
+ this.bindings = input([], ...(ngDevMode ? [{ debugName: "bindings" }] : /* istanbul ignore next */ []));
20324
20855
  /** Emitted (debounced) on every edit with the parsed value and validity. */
20325
20856
  this.valueChange = output();
20326
20857
  this.backdrop = viewChild('backdrop', ...(ngDevMode ? [{ debugName: "backdrop" }] : /* istanbul ignore next */ []));
20327
- /** Reactive control backing the textarea. */
20328
- this.jsonText = new FormControl('', { nonNullable: true });
20858
+ this.gutter = viewChild('gutter', ...(ngDevMode ? [{ debugName: "gutter" }] : /* istanbul ignore next */ []));
20859
+ this.textareaRef = viewChild('editor', ...(ngDevMode ? [{ debugName: "textareaRef" }] : /* istanbul ignore next */ []));
20329
20860
  /** Current parse error, or `null` when the text parses cleanly. */
20330
20861
  this.errorMessage = signal(null, ...(ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []));
20331
- /** Raw editor text, mirrored from the control so highlighting stays reactive. */
20862
+ /** The single source of truth for the editor text (drives highlight + gutter). */
20332
20863
  this.#text = signal('', ...(ngDevMode ? [{ debugName: "#text" }] : /* istanbul ignore next */ []));
20333
- /** Syntax-highlighted HTML rendered behind the textarea. */
20334
- this.highlightedHtml = computed(() => this.#syntaxHighlight(this.#text()), ...(ngDevMode ? [{ debugName: "highlightedHtml" }] : /* istanbul ignore next */ []));
20864
+ /**
20865
+ * The set of token contents that map to a real field — a binding's `insert`
20866
+ * content plus any `aliases`. Drives valid-vs-unrecognised pill styling. Empty
20867
+ * when no bindings are supplied (then every `{{…}}` is treated as valid, so
20868
+ * consumers that don't provide bindings are unaffected).
20869
+ */
20870
+ this.#validTokens = computed(() => {
20871
+ const set = new Set();
20872
+ for (const b of this.bindings()) {
20873
+ const content = tokenContent(b.insert);
20874
+ if (content)
20875
+ set.add(content);
20876
+ for (const alias of b.aliases ?? []) {
20877
+ const a = alias.trim();
20878
+ if (a)
20879
+ set.add(a);
20880
+ }
20881
+ }
20882
+ return set;
20883
+ }, ...(ngDevMode ? [{ debugName: "#validTokens" }] : /* istanbul ignore next */ []));
20884
+ /** Syntax-highlighted HTML rendered behind the textarea (synchronous with typing). */
20885
+ this.highlightedHtml = computed(() => this.#syntaxHighlight(this.#text(), this.#validTokens()), ...(ngDevMode ? [{ debugName: "highlightedHtml" }] : /* istanbul ignore next */ []));
20886
+ /** Count of `{{…}}` tokens that don't match any real field (surfaced as a warning). */
20887
+ this.unknownTokenCount = computed(() => {
20888
+ const valid = this.#validTokens();
20889
+ if (valid.size === 0)
20890
+ return 0;
20891
+ let count = 0;
20892
+ for (const match of this.#text().matchAll(TOKEN_RE)) {
20893
+ if (!valid.has(tokenContent(match[0])))
20894
+ count++;
20895
+ }
20896
+ return count;
20897
+ }, ...(ngDevMode ? [{ debugName: "unknownTokenCount" }] : /* istanbul ignore next */ []));
20898
+ /** Line numbers for the gutter — `track`ed by value so typing on a line touches no DOM. */
20899
+ this.lineNumbers = computed(() => {
20900
+ const count = this.#countLines(this.#text());
20901
+ return Array.from({ length: count }, (_, i) => i + 1);
20902
+ }, ...(ngDevMode ? [{ debugName: "lineNumbers" }] : /* istanbul ignore next */ []));
20335
20903
  /** Disables the Format action while there is a parse error or the editor is read-only. */
20336
20904
  this.formatDisabled = computed(() => this.disabled() || this.errorMessage() !== null, ...(ngDevMode ? [{ debugName: "formatDisabled" }] : /* istanbul ignore next */ []));
20905
+ /** Whether the editor is maximised to fill the viewport (more editing real estate). */
20906
+ this.fullscreen = signal(false, ...(ngDevMode ? [{ debugName: "fullscreen" }] : /* istanbul ignore next */ []));
20907
+ // ── `$`-trigger binding menu (see the established pattern in
20908
+ // validation-expressio-creator) ──────────────────────────────────────────
20909
+ /** Whether the `$`-binding menu is open. */
20910
+ this.showSuggestions = signal(false, ...(ngDevMode ? [{ debugName: "showSuggestions" }] : /* istanbul ignore next */ []));
20911
+ /** The filter text typed after the last `$`. */
20912
+ this.bindingSearch = signal('', ...(ngDevMode ? [{ debugName: "bindingSearch" }] : /* istanbul ignore next */ []));
20913
+ /** Index of the keyboard-highlighted option in {@link filteredBindings}. */
20914
+ this.activeIndex = signal(0, ...(ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []));
20915
+ /** Caret offset captured on the latest edit, anchoring the `$` lookup + insertion. */
20916
+ this.#cursorPosition = 0;
20917
+ /** When the menu was opened by clicking a `{{…}}` token, the range to replace on select. */
20918
+ this.#activeTokenRange = null;
20919
+ /** Bindings filtered by {@link bindingSearch} (case-insensitive over label + searchText). */
20920
+ this.filteredBindings = computed(() => {
20921
+ const term = this.bindingSearch().trim().toLowerCase();
20922
+ const all = this.bindings();
20923
+ if (term === '')
20924
+ return all;
20925
+ return all.filter((b) => `${b.searchText ?? ''} ${b.label}`.toLowerCase().includes(term));
20926
+ }, ...(ngDevMode ? [{ debugName: "filteredBindings" }] : /* istanbul ignore next */ []));
20337
20927
  this.#destroyRef = inject(DestroyRef);
20338
20928
  /** Last value that parsed cleanly — emitted (with `valid:false`) on an invalid edit. */
20339
20929
  this.#lastValid = {};
20340
- /** Pending rAF id for scroll syncing, so we coalesce bursts of scroll events. */
20341
- this.#scrollFrame = 0;
20930
+ /** Debounced parse/emit pipe — fed the raw text on every edit. */
20931
+ this.#edits = new Subject();
20342
20932
  /**
20343
- * Bridges the external `value` input to the internal control. Gated on
20344
- * `_isEqual` so a change that round-trips through the parent does not reset
20345
- * the cursor position.
20933
+ * Bridges the external `value` input to the editor. Ignores our own
20934
+ * round-tripped emission (so the author's exact text/caret survive) and never
20935
+ * reflows during typing; a genuinely external value replaces the text.
20346
20936
  */
20347
20937
  this.valueBridge = effect(() => {
20348
20938
  const next = this.value();
20349
20939
  if (_isEqual(next, this.#lastInput))
20350
20940
  return;
20941
+ // Our own echo (parent fed back what we just emitted) — the textarea already
20942
+ // holds the author's text; do NOT reformat or move the caret.
20943
+ if (this.#lastEmitted !== undefined && _isEqual(next, this.#lastEmitted)) {
20944
+ this.#lastInput = next;
20945
+ return;
20946
+ }
20351
20947
  this.#lastInput = next;
20352
- this.#formatAndSet(next);
20948
+ const text = next === undefined ? '' : JSON.stringify(next, null, 4);
20949
+ this.#text.set(text);
20950
+ this.errorMessage.set(null);
20951
+ const el = untracked(() => this.textareaRef()?.nativeElement);
20952
+ if (el && el.value !== text)
20953
+ this.#writeTextareaPreservingCaret(el, text);
20353
20954
  }, ...(ngDevMode ? [{ debugName: "valueBridge" }] : /* istanbul ignore next */ []));
20354
- /** Mirrors the `disabled` input onto the control. */
20355
- this.disabledBridge = effect(() => {
20356
- if (this.disabled())
20357
- this.jsonText.disable({ emitEvent: false });
20358
- else
20359
- this.jsonText.enable({ emitEvent: false });
20360
- }, ...(ngDevMode ? [{ debugName: "disabledBridge" }] : /* istanbul ignore next */ []));
20361
- this.jsonText.valueChanges
20362
- .pipe(debounceTime(300), takeUntilDestroyed(this.#destroyRef))
20363
- .subscribe((text) => this.#handleInput(text));
20364
- this.#destroyRef.onDestroy(() => {
20365
- if (this.#scrollFrame)
20366
- cancelAnimationFrame(this.#scrollFrame);
20367
- });
20955
+ /** One-time push of the initial text into the textarea once it exists. */
20956
+ this.domInit = effect(() => {
20957
+ const el = this.textareaRef()?.nativeElement;
20958
+ if (!el)
20959
+ return;
20960
+ const text = untracked(() => this.#text());
20961
+ if (el.value !== text)
20962
+ el.value = text;
20963
+ }, ...(ngDevMode ? [{ debugName: "domInit" }] : /* istanbul ignore next */ []));
20964
+ this.#edits
20965
+ .pipe(debounceTime(PARSE_DEBOUNCE_MS), distinctUntilChanged(), takeUntilDestroyed(this.#destroyRef))
20966
+ .subscribe((text) => this.#parseAndEmit(text));
20967
+ }
20968
+ // ── Editing surface events ────────────────────────────────────────────────
20969
+ /** Every keystroke: update the highlight/gutter synchronously, then debounce the parse. */
20970
+ onInput(event) {
20971
+ const el = event.target;
20972
+ this.#text.set(el.value); // synchronous — highlight + gutter track the caret
20973
+ this.#syncScroll(el); // keep the layers aligned as content grows/shrinks
20974
+ this.#trackCaretAndBindings(el);
20975
+ this.#edits.next(el.value); // debounced parse + emit
20368
20976
  }
20369
- /** Validates the current text, updates the error zone and emits the change. */
20370
- #handleInput(text) {
20371
- this.#text.set(text);
20372
- try {
20373
- const parsed = JSON.parse(text);
20374
- this.#lastValid = parsed;
20375
- this.errorMessage.set(null);
20376
- this.valueChange.emit({ value: parsed, valid: true });
20977
+ /** Sync the backdrop + gutter scroll to the textarea, synchronously (no rAF lag). */
20978
+ onScroll(event) {
20979
+ this.#syncScroll(event.target);
20980
+ }
20981
+ #syncScroll(el) {
20982
+ const bd = this.backdrop()?.nativeElement;
20983
+ if (bd) {
20984
+ bd.scrollTop = el.scrollTop;
20985
+ bd.scrollLeft = el.scrollLeft;
20377
20986
  }
20378
- catch (error) {
20379
- this.errorMessage.set(this.#describeError(text, error));
20380
- // DEFECT FIX: the original re-parsed the (invalid) text here, which always
20381
- // threw and silently swallowed the invalid-state emission. We emit the
20382
- // last value that parsed cleanly so the consumer keeps a stable shape,
20383
- // flagged `valid: false`.
20384
- this.valueChange.emit({ value: this.#lastValid, valid: false });
20987
+ const g = this.gutter()?.nativeElement;
20988
+ if (g)
20989
+ g.scrollTop = el.scrollTop;
20990
+ }
20991
+ /** Toggle maximise-to-viewport mode. */
20992
+ toggleFullscreen() {
20993
+ this.fullscreen.update((v) => !v);
20994
+ }
20995
+ /**
20996
+ * Keyboard affordances. While the `$`-menu is open it captures navigation
20997
+ * (↑/↓/Enter/Tab/Esc); otherwise Tab → spaces, Enter → auto-indent, and Escape
20998
+ * exits fullscreen.
20999
+ */
21000
+ onKeydown(event) {
21001
+ if (this.showSuggestions() && this.filteredBindings().length > 0) {
21002
+ switch (event.key) {
21003
+ case 'ArrowDown':
21004
+ event.preventDefault();
21005
+ this.#moveActive(1);
21006
+ return;
21007
+ case 'ArrowUp':
21008
+ event.preventDefault();
21009
+ this.#moveActive(-1);
21010
+ return;
21011
+ case 'Enter':
21012
+ case 'Tab': {
21013
+ event.preventDefault();
21014
+ const options = this.filteredBindings();
21015
+ const choice = options[Math.min(this.activeIndex(), options.length - 1)];
21016
+ if (choice)
21017
+ this.insertBinding(choice);
21018
+ return;
21019
+ }
21020
+ case 'Escape':
21021
+ event.preventDefault();
21022
+ event.stopPropagation();
21023
+ this.showSuggestions.set(false);
21024
+ return;
21025
+ }
21026
+ }
21027
+ if (event.key === 'Tab') {
21028
+ this.#handleTab(event);
21029
+ return;
21030
+ }
21031
+ if (event.key === 'Enter') {
21032
+ this.#handleEnter(event);
21033
+ return;
21034
+ }
21035
+ if (event.key === 'Escape' && this.fullscreen()) {
21036
+ event.preventDefault();
21037
+ this.fullscreen.set(false);
21038
+ }
21039
+ }
21040
+ /** Cycle the keyboard-highlighted option within the filtered list. */
21041
+ #moveActive(delta) {
21042
+ const n = this.filteredBindings().length;
21043
+ if (n === 0)
21044
+ return;
21045
+ this.activeIndex.update((i) => (i + delta + n) % n);
21046
+ }
21047
+ /** Inserts one indent level at the caret instead of moving focus. */
21048
+ #handleTab(event) {
21049
+ event.preventDefault();
21050
+ const el = event.target;
21051
+ this.#replaceRange(el, el.selectionStart, el.selectionEnd, INDENT_UNIT);
21052
+ }
21053
+ /** Newline that preserves the current line's indent (+ one level after an opening bracket). */
21054
+ #handleEnter(event) {
21055
+ const el = event.target;
21056
+ const start = el.selectionStart;
21057
+ const value = el.value;
21058
+ const lineStart = value.lastIndexOf('\n', start - 1) + 1;
21059
+ const indent = /^[ \t]*/.exec(value.slice(lineStart, start))?.[0] ?? '';
21060
+ const prevChar = value.slice(0, start).replace(/[ \t]+$/, '').slice(-1);
21061
+ const extra = prevChar === '{' || prevChar === '[' ? INDENT_UNIT : '';
21062
+ event.preventDefault();
21063
+ this.#replaceRange(el, start, el.selectionEnd, `\n${indent}${extra}`);
21064
+ }
21065
+ /** Replace `[start,end)` with `text`, place the caret after it, and re-sync state. */
21066
+ #replaceRange(el, start, end, text) {
21067
+ const next = `${el.value.slice(0, start)}${text}${el.value.slice(end)}`;
21068
+ el.value = next;
21069
+ const caret = start + text.length;
21070
+ el.setSelectionRange(caret, caret);
21071
+ this.#text.set(next);
21072
+ this.#syncScroll(el);
21073
+ this.#trackCaretAndBindings(el);
21074
+ this.#edits.next(next);
21075
+ }
21076
+ // ── `$`-binding menu ──────────────────────────────────────────────────────
21077
+ #trackCaretAndBindings(el) {
21078
+ this.#cursorPosition = el.selectionStart ?? el.value.length;
21079
+ this.#activeTokenRange = null; // typing supersedes a token-click selection
21080
+ if (this.bindings().length === 0) {
21081
+ if (this.showSuggestions())
21082
+ this.showSuggestions.set(false);
21083
+ return;
21084
+ }
21085
+ const beforeCaret = el.value.substring(0, this.#cursorPosition);
21086
+ const lastDollar = beforeCaret.lastIndexOf('$');
21087
+ if (lastDollar === -1) {
21088
+ this.showSuggestions.set(false);
21089
+ return;
21090
+ }
21091
+ const afterDollar = beforeCaret.substring(lastDollar + 1);
21092
+ this.bindingSearch.set(afterDollar);
21093
+ const open = BINDING_FILTER_RE.test(afterDollar);
21094
+ this.showSuggestions.set(open);
21095
+ // A changed filter re-ranks the list — highlight the top result.
21096
+ if (open)
21097
+ this.activeIndex.set(0);
21098
+ }
21099
+ /**
21100
+ * Clicking inside a `{{…}}` token opens the picker (filtered to the token's
21101
+ * current field) so the author can swap it — "clickable to reveal the options".
21102
+ */
21103
+ onEditorClick(event) {
21104
+ if (this.bindings().length === 0)
21105
+ return;
21106
+ const el = event.target;
21107
+ const range = this.#tokenRangeAt(el.value, el.selectionStart ?? 0);
21108
+ if (range) {
21109
+ this.#activeTokenRange = range;
21110
+ this.bindingSearch.set(el.value.slice(range.start + 2, range.end - 2).trim());
21111
+ this.activeIndex.set(0);
21112
+ this.showSuggestions.set(true);
21113
+ }
21114
+ else if (this.#activeTokenRange) {
21115
+ this.#activeTokenRange = null;
21116
+ this.showSuggestions.set(false);
21117
+ }
21118
+ }
21119
+ /** The `{{…}}` token range containing `pos`, or `null` when the caret is outside one. */
21120
+ #tokenRangeAt(value, pos) {
21121
+ TOKEN_RE.lastIndex = 0;
21122
+ for (let m = TOKEN_RE.exec(value); m !== null; m = TOKEN_RE.exec(value)) {
21123
+ const start = m.index;
21124
+ const end = start + m[0].length;
21125
+ if (pos >= start && pos <= end)
21126
+ return { start, end };
21127
+ }
21128
+ return null;
21129
+ }
21130
+ /** Hide the binding menu (e.g. on blur). */
21131
+ closeSuggestions() {
21132
+ this.#activeTokenRange = null;
21133
+ this.showSuggestions.set(false);
21134
+ }
21135
+ /**
21136
+ * Insert the chosen binding: replacing the clicked `{{…}}` token when the menu
21137
+ * was opened from a token, otherwise the active `$`-filter (last `$` → caret).
21138
+ */
21139
+ insertBinding(binding) {
21140
+ if (this.disabled())
21141
+ return;
21142
+ const el = this.textareaRef()?.nativeElement;
21143
+ if (!el)
21144
+ return;
21145
+ if (this.#activeTokenRange) {
21146
+ const { start, end } = this.#activeTokenRange;
21147
+ this.#activeTokenRange = null;
21148
+ el.focus();
21149
+ this.showSuggestions.set(false);
21150
+ this.#replaceRange(el, start, end, binding.insert);
21151
+ return;
21152
+ }
21153
+ const lastDollar = el.value.substring(0, this.#cursorPosition).lastIndexOf('$');
21154
+ if (lastDollar === -1) {
21155
+ this.showSuggestions.set(false);
21156
+ return;
20385
21157
  }
21158
+ el.focus();
21159
+ this.showSuggestions.set(false);
21160
+ this.#replaceRange(el, lastDollar, this.#cursorPosition, binding.insert);
20386
21161
  }
21162
+ // ── Format ────────────────────────────────────────────────────────────────
20387
21163
  /** Pretty-prints the current text. No-op when it is not valid JSON. */
20388
21164
  prettify() {
20389
21165
  if (this.disabled())
20390
21166
  return;
21167
+ const el = this.textareaRef()?.nativeElement;
21168
+ const text = el ? el.value : this.#text();
20391
21169
  try {
20392
- const parsed = JSON.parse(this.jsonText.value);
20393
- this.#formatAndSet(parsed);
21170
+ const formatted = JSON.stringify(JSON.parse(text), null, 4);
21171
+ this.#text.set(formatted);
21172
+ if (el) {
21173
+ el.value = formatted;
21174
+ el.setSelectionRange(formatted.length, formatted.length);
21175
+ this.#syncScroll(el);
21176
+ }
21177
+ this.errorMessage.set(null);
20394
21178
  }
20395
21179
  catch {
20396
21180
  // Cannot prettify invalid JSON — leave the text untouched.
20397
21181
  }
20398
21182
  }
20399
- /** Writes a beautified value into the control without emitting a change. */
20400
- #formatAndSet(jsonValue) {
20401
- const beautified = jsonValue === undefined ? '' : JSON.stringify(jsonValue, null, 4);
20402
- this.jsonText.setValue(beautified, { emitEvent: false });
20403
- this.#text.set(beautified);
20404
- this.errorMessage.set(null);
20405
- }
20406
- /** Keeps the highlight backdrop scroll-aligned with the textarea (rAF-throttled). */
20407
- syncScroll(event) {
20408
- const target = event.target;
20409
- const { scrollTop, scrollLeft } = target;
20410
- if (this.#scrollFrame)
20411
- cancelAnimationFrame(this.#scrollFrame);
20412
- this.#scrollFrame = requestAnimationFrame(() => {
20413
- this.#scrollFrame = 0;
20414
- const el = this.backdrop()?.nativeElement;
20415
- if (!el)
20416
- return;
20417
- el.scrollTop = scrollTop;
20418
- el.scrollLeft = scrollLeft;
20419
- });
21183
+ // ── Parse / emit (debounced) ──────────────────────────────────────────────
21184
+ #parseAndEmit(text) {
21185
+ try {
21186
+ const parsed = JSON.parse(text);
21187
+ this.#lastValid = parsed;
21188
+ this.#lastEmitted = parsed;
21189
+ this.errorMessage.set(null);
21190
+ this.valueChange.emit({ value: parsed, valid: true });
21191
+ }
21192
+ catch (error) {
21193
+ this.errorMessage.set(this.#describeError(text, error));
21194
+ // Keep a stable shape for the consumer; flag it invalid. Remember it as the
21195
+ // emitted value so the round-trip echo is recognised and does not reflow.
21196
+ this.#lastEmitted = this.#lastValid;
21197
+ this.valueChange.emit({ value: this.#lastValid, valid: false });
21198
+ }
20420
21199
  }
20421
- /** Inserts four spaces on Tab instead of moving focus. */
20422
- handleTab(event) {
20423
- if (event.key !== 'Tab')
20424
- return;
20425
- event.preventDefault();
20426
- const el = event.target;
20427
- const { selectionStart: start, selectionEnd: end, value } = el;
20428
- const next = `${value.substring(0, start)} ${value.substring(end)}`;
20429
- this.jsonText.setValue(next);
20430
- el.value = next;
20431
- el.selectionStart = el.selectionEnd = start + 4;
21200
+ // ── Helpers ───────────────────────────────────────────────────────────────
21201
+ /** Counts lines without allocating an array (`split` would build a huge array for big docs). */
21202
+ #countLines(text) {
21203
+ let lines = 1;
21204
+ for (let i = 0; i < text.length; i++)
21205
+ if (text.charCodeAt(i) === 10)
21206
+ lines++;
21207
+ return lines;
20432
21208
  }
20433
21209
  /** Regex-based JSON highlighter; HTML-escapes input to avoid injection. */
20434
- #syntaxHighlight(json) {
21210
+ #syntaxHighlight(json, validTokens) {
20435
21211
  if (!json)
20436
21212
  return '';
20437
21213
  const escaped = json.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
20438
- return escaped.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g, (match) => {
21214
+ // Scalability guard: skip the O(n) token pass for very large documents so
21215
+ // typing stays responsive (plain escaped text still renders correctly).
21216
+ if (escaped.length > HIGHLIGHT_MAX_CHARS)
21217
+ return escaped;
21218
+ const highlighted = escaped.replace(JSON_TOKEN_RE, (match) => {
20439
21219
  let cls = 'json-number';
20440
21220
  if (match.startsWith('"'))
20441
21221
  cls = match.endsWith(':') ? 'json-key' : 'json-string';
@@ -20445,6 +21225,16 @@ class JsonEditorComponent {
20445
21225
  cls = 'json-null';
20446
21226
  return `<span class="${cls}">${match}</span>`;
20447
21227
  });
21228
+ // Second pass: wrap `{{…}}` field bindings as pills (background + radius only,
21229
+ // so widths still match the plain-text textarea). Nesting inside the string
21230
+ // span above is valid HTML. `{`/`}` are not HTML-escaped, so they survive.
21231
+ // With bindings supplied, a token that maps to no real field is flagged
21232
+ // `--unknown`; without bindings every token is treated as valid (parity).
21233
+ return highlighted.replace(TOKEN_RE, (match) => {
21234
+ const known = validTokens.size === 0 || validTokens.has(tokenContent(match));
21235
+ const cls = known ? 'json-token' : 'json-token json-token--unknown';
21236
+ return `<span class="${cls}">${match}</span>`;
21237
+ });
20448
21238
  }
20449
21239
  /** Builds a human-readable parse-error message, pinpointing the offending position. */
20450
21240
  #describeError(text, error) {
@@ -20461,12 +21251,12 @@ class JsonEditorComponent {
20461
21251
  return `Error at position ${position} near "${excerpt}"`;
20462
21252
  }
20463
21253
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: JsonEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
20464
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: JsonEditorComponent, isStandalone: true, selector: "lib-json-editor", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { classAttribute: "lib-json-editor" }, viewQueries: [{ propertyName: "backdrop", first: true, predicate: ["backdrop"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"json-editor\" [style.--lib-json-editor-height]=\"height()\">\n\n <div class=\"editor-toolbar\">\n <span class=\"toolbar-label\">\n <mat-icon class=\"icon-sm\">code</mat-icon> JSON Editor\n </span>\n\n <div class=\"toolbar-actions\">\n @if (errorMessage(); as message) {\n <span class=\"status-indicator status-indicator--error\" [title]=\"message\">\n <mat-icon class=\"icon-sm\">error_outline</mat-icon> Invalid\n </span>\n } @else {\n <span class=\"status-indicator status-indicator--valid\">\n <mat-icon class=\"icon-sm\">check_circle</mat-icon> Valid\n </span>\n }\n <button\n mat-button\n type=\"button\"\n class=\"prettify-btn\"\n (click)=\"prettify()\"\n [disabled]=\"formatDisabled()\">\n Format JSON\n </button>\n </div>\n </div>\n\n <div class=\"editor-container\">\n <div #backdrop class=\"editor-backdrop\" aria-hidden=\"true\">\n <div class=\"highlights\" [innerHTML]=\"highlightedHtml()\"></div>\n </div>\n\n <textarea\n class=\"editor-textarea\"\n spellcheck=\"false\"\n [formControl]=\"jsonText\"\n (scroll)=\"syncScroll($event)\"\n (keydown)=\"handleTab($event)\"\n placeholder=\"Paste JSON here...\"></textarea>\n </div>\n\n <!-- Persistent error zone: always reserves space so the layout never jumps. -->\n <div class=\"editor-footer\" [class.editor-footer--active]=\"errorMessage() !== null\" role=\"status\">\n @if (errorMessage(); as message) {\n <mat-icon class=\"icon-sm\">warning</mat-icon>\n <span>{{ message }}</span>\n }\n </div>\n\n</div>\n", styles: [":host{display:block}.json-editor{display:flex;flex-direction:column;border:1px solid var(--lib-forms-code-border);border-radius:var(--lib-forms-radius-lg, 12px);overflow:hidden;background-color:var(--lib-forms-code-bg);font-family:Fira Code,Consolas,Monaco,Courier New,monospace;box-shadow:var(--lib-forms-shadow-resting)}.editor-toolbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.5rem 1rem;background-color:var(--lib-forms-code-surface)}.editor-toolbar .toolbar-label{display:inline-flex;align-items:center;gap:.5rem;font-weight:500;font-size:.8125rem;color:var(--lib-forms-code-fg)}.icon-sm{font-size:1.125rem;width:1.125rem;height:1.125rem}.toolbar-actions{display:inline-flex;align-items:center;gap:.75rem}.status-indicator{display:inline-flex;align-items:center;gap:.375rem;font-size:.75rem}.status-indicator--error{color:var(--lib-forms-code-error)}.status-indicator--valid{color:var(--lib-forms-code-number)}.prettify-btn{font-family:inherit;font-size:.75rem;color:var(--lib-forms-code-fg);background:color-mix(in srgb,var(--lib-forms-code-fg) 8%,transparent);border:1px solid color-mix(in srgb,var(--lib-forms-code-fg) 16%,transparent);border-radius:var(--lib-forms-radius-sm, 8px);padding:.25rem .75rem;cursor:pointer;transition:background-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.prettify-btn:hover:not(:disabled){background:color-mix(in srgb,var(--lib-forms-code-fg) 16%,transparent)}.prettify-btn:disabled{opacity:.5;cursor:not-allowed}.editor-container{position:relative;width:100%;height:var(--lib-json-editor-height, 450px);background-color:var(--lib-forms-code-bg)}.editor-textarea,.editor-backdrop{position:absolute;inset:0;font-family:Fira Code,Consolas,Monaco,Courier New,monospace;font-size:.875rem;line-height:1.5;letter-spacing:0;padding:1rem;margin:0;border:0;box-sizing:border-box;white-space:pre;word-wrap:normal;overflow:auto}.editor-backdrop{z-index:1;pointer-events:none;background-color:transparent;color:var(--lib-forms-code-fg)}.editor-backdrop .highlights{white-space:pre;word-wrap:normal}.editor-textarea{z-index:2;color:transparent;background:transparent;caret-color:var(--lib-forms-code-fg);resize:none;outline:none}.editor-textarea::selection{background-color:color-mix(in srgb,var(--lib-forms-code-fg) 18%,transparent);color:transparent}.editor-textarea:disabled{cursor:not-allowed}.editor-footer{display:flex;align-items:center;gap:.5rem;min-height:2.25rem;padding:.5rem 1rem;font-size:.8125rem;color:var(--lib-forms-code-error);background-color:transparent;transition:background-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.editor-footer--active{background-color:color-mix(in srgb,var(--lib-forms-code-error) 12%,transparent)}\n"], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$2.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: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
21254
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: JsonEditorComponent, isStandalone: true, selector: "lib-json-editor", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, bindings: { classPropertyName: "bindings", publicName: "bindings", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { classAttribute: "lib-json-editor" }, viewQueries: [{ propertyName: "backdrop", first: true, predicate: ["backdrop"], descendants: true, isSignal: true }, { propertyName: "gutter", first: true, predicate: ["gutter"], descendants: true, isSignal: true }, { propertyName: "textareaRef", first: true, predicate: ["editor"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (fullscreen()) {\n <div class=\"fullscreen-scrim\" (click)=\"toggleFullscreen()\" aria-hidden=\"true\"></div>\n}\n\n<div\n class=\"json-editor\"\n [class.json-editor--fullscreen]=\"fullscreen()\"\n [style.--lib-json-editor-height]=\"fullscreen() ? '100%' : height()\">\n\n <div class=\"editor-toolbar\">\n <span class=\"toolbar-label\">\n <mat-icon class=\"icon-sm\">code</mat-icon> JSON Editor\n </span>\n\n <div class=\"toolbar-actions\">\n @if (errorMessage(); as message) {\n <span class=\"status-indicator status-indicator--error\" [title]=\"message\">\n <mat-icon class=\"icon-sm\">error_outline</mat-icon> Invalid\n </span>\n } @else {\n <span class=\"status-indicator status-indicator--valid\">\n <mat-icon class=\"icon-sm\">check_circle</mat-icon> Valid\n </span>\n }\n <button\n mat-button\n type=\"button\"\n class=\"prettify-btn\"\n (click)=\"prettify()\"\n [disabled]=\"formatDisabled()\">\n Format JSON\n </button>\n <button\n type=\"button\"\n class=\"icon-btn\"\n (click)=\"toggleFullscreen()\"\n [attr.aria-label]=\"fullscreen() ? 'Exit full screen' : 'Expand to full screen'\"\n [title]=\"fullscreen() ? 'Exit full screen' : 'Expand to full screen'\">\n <mat-icon class=\"icon-sm\">{{ fullscreen() ? 'fullscreen_exit' : 'fullscreen' }}</mat-icon>\n </button>\n </div>\n </div>\n\n <div class=\"editor-container\">\n <div #gutter class=\"editor-gutter\" aria-hidden=\"true\">\n @for (n of lineNumbers(); track n) {\n <span class=\"gutter-line\">{{ n }}</span>\n }\n </div>\n\n <div class=\"editor-scroll\">\n <div #backdrop class=\"editor-backdrop\" aria-hidden=\"true\">\n <div class=\"highlights\" [innerHTML]=\"highlightedHtml()\"></div>\n </div>\n\n <textarea\n #editor\n class=\"editor-textarea\"\n spellcheck=\"false\"\n autocapitalize=\"off\"\n autocomplete=\"off\"\n autocorrect=\"off\"\n wrap=\"off\"\n [disabled]=\"disabled()\"\n (input)=\"onInput($event)\"\n (scroll)=\"onScroll($event)\"\n (keydown)=\"onKeydown($event)\"\n (click)=\"onEditorClick($event)\"\n (blur)=\"closeSuggestions()\"\n [placeholder]=\"bindings().length ? 'Paste JSON here\u2026 type $ to insert a field' : 'Paste JSON here...'\"></textarea>\n\n @if (showSuggestions() && bindings().length) {\n <div class=\"binding-menu\" role=\"listbox\" aria-label=\"Insert a field\">\n <div class=\"binding-menu__head\">Insert a field</div>\n @for (binding of filteredBindings(); track binding.insert; let i = $index) {\n <button\n type=\"button\"\n role=\"option\"\n [attr.aria-selected]=\"i === activeIndex()\"\n class=\"binding-option\"\n [class.binding-option--active]=\"i === activeIndex()\"\n (mousedown)=\"$event.preventDefault()\"\n (mouseenter)=\"activeIndex.set(i)\"\n (click)=\"insertBinding(binding)\">\n <mat-icon class=\"binding-icon\">{{ binding.icon || 'data_object' }}</mat-icon>\n <span class=\"binding-text\">\n <span class=\"binding-name\">{{ binding.label }}</span>\n @if (binding.detail) {\n <span class=\"binding-detail\">{{ binding.detail }}</span>\n }\n </span>\n </button>\n } @empty {\n <div class=\"binding-empty\">No fields match \u201C{{ bindingSearch() }}\u201D.</div>\n }\n </div>\n }\n </div>\n </div>\n\n <!-- Persistent error zone: always reserves space so the layout never jumps. -->\n <div\n class=\"editor-footer\"\n [class.editor-footer--active]=\"errorMessage() !== null\"\n [class.editor-footer--warn]=\"errorMessage() === null && unknownTokenCount() > 0\"\n role=\"status\">\n @if (errorMessage(); as message) {\n <mat-icon class=\"icon-sm\">warning</mat-icon>\n <span>{{ message }}</span>\n } @else if (unknownTokenCount() > 0) {\n <mat-icon class=\"icon-sm\">help_outline</mat-icon>\n <span>{{ unknownTokenCount() }}\n {{ unknownTokenCount() === 1 ? 'field reference is' : 'field references are' }}\n not recognised \u2014 click it to pick a real field.</span>\n }\n </div>\n\n</div>\n", styles: [":host{display:block}.json-editor{display:flex;flex-direction:column;border:1px solid var(--lib-forms-code-border);border-radius:var(--lib-forms-radius-lg, 12px);overflow:hidden;background-color:var(--lib-forms-code-bg);font-family:Fira Code,Consolas,Monaco,Courier New,monospace;box-shadow:var(--lib-forms-shadow-resting)}.json-editor--disabled{opacity:.75}.editor-toolbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.5rem 1rem;background-color:var(--lib-forms-code-surface)}.editor-toolbar .toolbar-label{display:inline-flex;align-items:center;gap:.5rem;font-weight:500;font-size:.8125rem;color:var(--lib-forms-code-fg)}.icon-sm{font-size:1.125rem;width:1.125rem;height:1.125rem}.toolbar-actions{display:inline-flex;align-items:center;gap:.75rem}.status-indicator{display:inline-flex;align-items:center;gap:.375rem;font-size:.75rem}.status-indicator--error{color:var(--lib-forms-code-error)}.status-indicator--valid{color:var(--lib-forms-code-number)}.prettify-btn{font-family:inherit;font-size:.75rem;color:var(--lib-forms-code-fg);background:color-mix(in srgb,var(--lib-forms-code-fg) 8%,transparent);border:1px solid color-mix(in srgb,var(--lib-forms-code-fg) 16%,transparent);border-radius:var(--lib-forms-radius-sm, 8px);padding:.25rem .75rem;cursor:pointer;transition:background-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.prettify-btn:hover:not(:disabled){background:color-mix(in srgb,var(--lib-forms-code-fg) 16%,transparent)}.prettify-btn:disabled{opacity:.5;cursor:not-allowed}.editor-container{display:flex;width:100%;height:var(--lib-json-editor-height, 450px);background-color:var(--lib-forms-code-bg)}.editor-gutter{flex:0 0 auto;box-sizing:border-box;overflow:hidden;padding:1rem .5rem 1rem .75rem;text-align:right;font-family:Fira Code,Consolas,Monaco,Courier New,monospace;font-size:.875rem;line-height:1.5;color:color-mix(in srgb,var(--lib-forms-code-fg) 40%,transparent);background-color:var(--lib-forms-code-surface);border-right:1px solid var(--lib-forms-code-border);-webkit-user-select:none;user-select:none}.editor-gutter .gutter-line{display:block;height:1.5em;white-space:pre}.editor-scroll{position:relative;flex:1 1 auto;min-width:0;height:100%}.editor-textarea,.editor-backdrop{position:absolute;inset:0;font-family:Fira Code,Consolas,Monaco,Courier New,monospace;font-size:.875rem;line-height:1.5;letter-spacing:0;padding:1rem;margin:0;border:0;box-sizing:border-box;white-space:pre;word-wrap:normal;overflow:auto;tab-size:4}.editor-backdrop{z-index:1;pointer-events:none;overflow:hidden;background-color:transparent;color:var(--lib-forms-code-fg)}.editor-backdrop .highlights{white-space:pre;word-wrap:normal}.editor-textarea{z-index:2;color:transparent;background:transparent;caret-color:var(--lib-forms-code-fg);resize:none;outline:none}.editor-textarea::selection{background-color:color-mix(in srgb,var(--lib-forms-code-fg) 18%,transparent);color:transparent}.editor-textarea:disabled{cursor:not-allowed}.binding-menu{position:absolute;left:1rem;bottom:1rem;z-index:3;max-height:16rem;width:18rem;max-width:calc(100% - 2rem);overflow-y:auto;display:flex;flex-direction:column;padding:.375rem;border:1px solid var(--lib-forms-code-border);border-radius:var(--lib-forms-radius-lg, 12px);background-color:var(--lib-forms-code-surface);box-shadow:var(--lib-forms-shadow-floating, var(--lib-forms-shadow-resting))}.binding-menu__head{padding:.35rem .6rem .5rem;font-size:.625rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:color-mix(in srgb,var(--lib-forms-code-fg) 55%,transparent)}.binding-option{display:flex;align-items:center;gap:.6rem;padding:.45rem .6rem;border:0;border-radius:var(--lib-forms-radius-sm, 8px);background:transparent;text-align:left;cursor:pointer;transition:background-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.binding-option--active{background:color-mix(in srgb,var(--lib-forms-primary, var(--lib-forms-code-key, var(--lib-forms-code-fg))) 16%,transparent)}.binding-option .binding-icon{flex-shrink:0;font-size:1.125rem;width:1.125rem;height:1.125rem;color:color-mix(in srgb,var(--lib-forms-code-fg) 70%,transparent)}.binding-option .binding-text{display:flex;flex-direction:column;min-width:0;line-height:1.25}.binding-option .binding-name{font-family:inherit;font-size:.8125rem;font-weight:500;color:var(--lib-forms-code-fg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.binding-option .binding-detail{font-size:.6875rem;color:color-mix(in srgb,var(--lib-forms-code-fg) 55%,transparent);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.binding-empty{padding:.6rem;font-size:.75rem;color:color-mix(in srgb,var(--lib-forms-code-fg) 60%,transparent)}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;padding:0;border:0;border-radius:var(--lib-forms-radius-sm, 8px);background:transparent;color:var(--lib-forms-code-fg);cursor:pointer;transition:background-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.icon-btn:hover{background:color-mix(in srgb,var(--lib-forms-code-fg) 12%,transparent)}.fullscreen-scrim{position:fixed;inset:0;z-index:1199;background:color-mix(in srgb,var(--lib-forms-shadow-color) 55%,transparent);animation:json-editor-fade .2s var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.json-editor--fullscreen{position:fixed;inset:2.5rem;z-index:1200;margin:0;box-shadow:var(--lib-forms-shadow-floating, var(--lib-forms-shadow-resting))}.json-editor--fullscreen .editor-container{height:auto;flex:1 1 auto;min-height:0}@keyframes json-editor-fade{0%{opacity:0}to{opacity:1}}.editor-footer{display:flex;align-items:center;gap:.5rem;min-height:2.25rem;padding:.5rem 1rem;font-size:.8125rem;color:var(--lib-forms-code-error);background-color:transparent;transition:background-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.editor-footer--active{background-color:color-mix(in srgb,var(--lib-forms-code-error) 12%,transparent)}.editor-footer--warn{color:var(--lib-forms-warning, var(--lib-forms-code-boolean));background-color:color-mix(in srgb,var(--lib-forms-warning, var(--lib-forms-code-boolean)) 12%,transparent)}\n"], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$2.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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
20465
21255
  }
20466
21256
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: JsonEditorComponent, decorators: [{
20467
21257
  type: Component,
20468
- args: [{ selector: 'lib-json-editor', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, host: { 'class': 'lib-json-editor' }, imports: [MatIconModule, MatButtonModule, ReactiveFormsModule], template: "<div class=\"json-editor\" [style.--lib-json-editor-height]=\"height()\">\n\n <div class=\"editor-toolbar\">\n <span class=\"toolbar-label\">\n <mat-icon class=\"icon-sm\">code</mat-icon> JSON Editor\n </span>\n\n <div class=\"toolbar-actions\">\n @if (errorMessage(); as message) {\n <span class=\"status-indicator status-indicator--error\" [title]=\"message\">\n <mat-icon class=\"icon-sm\">error_outline</mat-icon> Invalid\n </span>\n } @else {\n <span class=\"status-indicator status-indicator--valid\">\n <mat-icon class=\"icon-sm\">check_circle</mat-icon> Valid\n </span>\n }\n <button\n mat-button\n type=\"button\"\n class=\"prettify-btn\"\n (click)=\"prettify()\"\n [disabled]=\"formatDisabled()\">\n Format JSON\n </button>\n </div>\n </div>\n\n <div class=\"editor-container\">\n <div #backdrop class=\"editor-backdrop\" aria-hidden=\"true\">\n <div class=\"highlights\" [innerHTML]=\"highlightedHtml()\"></div>\n </div>\n\n <textarea\n class=\"editor-textarea\"\n spellcheck=\"false\"\n [formControl]=\"jsonText\"\n (scroll)=\"syncScroll($event)\"\n (keydown)=\"handleTab($event)\"\n placeholder=\"Paste JSON here...\"></textarea>\n </div>\n\n <!-- Persistent error zone: always reserves space so the layout never jumps. -->\n <div class=\"editor-footer\" [class.editor-footer--active]=\"errorMessage() !== null\" role=\"status\">\n @if (errorMessage(); as message) {\n <mat-icon class=\"icon-sm\">warning</mat-icon>\n <span>{{ message }}</span>\n }\n </div>\n\n</div>\n", styles: [":host{display:block}.json-editor{display:flex;flex-direction:column;border:1px solid var(--lib-forms-code-border);border-radius:var(--lib-forms-radius-lg, 12px);overflow:hidden;background-color:var(--lib-forms-code-bg);font-family:Fira Code,Consolas,Monaco,Courier New,monospace;box-shadow:var(--lib-forms-shadow-resting)}.editor-toolbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.5rem 1rem;background-color:var(--lib-forms-code-surface)}.editor-toolbar .toolbar-label{display:inline-flex;align-items:center;gap:.5rem;font-weight:500;font-size:.8125rem;color:var(--lib-forms-code-fg)}.icon-sm{font-size:1.125rem;width:1.125rem;height:1.125rem}.toolbar-actions{display:inline-flex;align-items:center;gap:.75rem}.status-indicator{display:inline-flex;align-items:center;gap:.375rem;font-size:.75rem}.status-indicator--error{color:var(--lib-forms-code-error)}.status-indicator--valid{color:var(--lib-forms-code-number)}.prettify-btn{font-family:inherit;font-size:.75rem;color:var(--lib-forms-code-fg);background:color-mix(in srgb,var(--lib-forms-code-fg) 8%,transparent);border:1px solid color-mix(in srgb,var(--lib-forms-code-fg) 16%,transparent);border-radius:var(--lib-forms-radius-sm, 8px);padding:.25rem .75rem;cursor:pointer;transition:background-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.prettify-btn:hover:not(:disabled){background:color-mix(in srgb,var(--lib-forms-code-fg) 16%,transparent)}.prettify-btn:disabled{opacity:.5;cursor:not-allowed}.editor-container{position:relative;width:100%;height:var(--lib-json-editor-height, 450px);background-color:var(--lib-forms-code-bg)}.editor-textarea,.editor-backdrop{position:absolute;inset:0;font-family:Fira Code,Consolas,Monaco,Courier New,monospace;font-size:.875rem;line-height:1.5;letter-spacing:0;padding:1rem;margin:0;border:0;box-sizing:border-box;white-space:pre;word-wrap:normal;overflow:auto}.editor-backdrop{z-index:1;pointer-events:none;background-color:transparent;color:var(--lib-forms-code-fg)}.editor-backdrop .highlights{white-space:pre;word-wrap:normal}.editor-textarea{z-index:2;color:transparent;background:transparent;caret-color:var(--lib-forms-code-fg);resize:none;outline:none}.editor-textarea::selection{background-color:color-mix(in srgb,var(--lib-forms-code-fg) 18%,transparent);color:transparent}.editor-textarea:disabled{cursor:not-allowed}.editor-footer{display:flex;align-items:center;gap:.5rem;min-height:2.25rem;padding:.5rem 1rem;font-size:.8125rem;color:var(--lib-forms-code-error);background-color:transparent;transition:background-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.editor-footer--active{background-color:color-mix(in srgb,var(--lib-forms-code-error) 12%,transparent)}\n"] }]
20469
- }], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], backdrop: [{ type: i0.ViewChild, args: ['backdrop', { isSignal: true }] }] } });
21258
+ args: [{ selector: 'lib-json-editor', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, host: { 'class': 'lib-json-editor' }, imports: [MatIconModule, MatButtonModule], template: "@if (fullscreen()) {\n <div class=\"fullscreen-scrim\" (click)=\"toggleFullscreen()\" aria-hidden=\"true\"></div>\n}\n\n<div\n class=\"json-editor\"\n [class.json-editor--fullscreen]=\"fullscreen()\"\n [style.--lib-json-editor-height]=\"fullscreen() ? '100%' : height()\">\n\n <div class=\"editor-toolbar\">\n <span class=\"toolbar-label\">\n <mat-icon class=\"icon-sm\">code</mat-icon> JSON Editor\n </span>\n\n <div class=\"toolbar-actions\">\n @if (errorMessage(); as message) {\n <span class=\"status-indicator status-indicator--error\" [title]=\"message\">\n <mat-icon class=\"icon-sm\">error_outline</mat-icon> Invalid\n </span>\n } @else {\n <span class=\"status-indicator status-indicator--valid\">\n <mat-icon class=\"icon-sm\">check_circle</mat-icon> Valid\n </span>\n }\n <button\n mat-button\n type=\"button\"\n class=\"prettify-btn\"\n (click)=\"prettify()\"\n [disabled]=\"formatDisabled()\">\n Format JSON\n </button>\n <button\n type=\"button\"\n class=\"icon-btn\"\n (click)=\"toggleFullscreen()\"\n [attr.aria-label]=\"fullscreen() ? 'Exit full screen' : 'Expand to full screen'\"\n [title]=\"fullscreen() ? 'Exit full screen' : 'Expand to full screen'\">\n <mat-icon class=\"icon-sm\">{{ fullscreen() ? 'fullscreen_exit' : 'fullscreen' }}</mat-icon>\n </button>\n </div>\n </div>\n\n <div class=\"editor-container\">\n <div #gutter class=\"editor-gutter\" aria-hidden=\"true\">\n @for (n of lineNumbers(); track n) {\n <span class=\"gutter-line\">{{ n }}</span>\n }\n </div>\n\n <div class=\"editor-scroll\">\n <div #backdrop class=\"editor-backdrop\" aria-hidden=\"true\">\n <div class=\"highlights\" [innerHTML]=\"highlightedHtml()\"></div>\n </div>\n\n <textarea\n #editor\n class=\"editor-textarea\"\n spellcheck=\"false\"\n autocapitalize=\"off\"\n autocomplete=\"off\"\n autocorrect=\"off\"\n wrap=\"off\"\n [disabled]=\"disabled()\"\n (input)=\"onInput($event)\"\n (scroll)=\"onScroll($event)\"\n (keydown)=\"onKeydown($event)\"\n (click)=\"onEditorClick($event)\"\n (blur)=\"closeSuggestions()\"\n [placeholder]=\"bindings().length ? 'Paste JSON here\u2026 type $ to insert a field' : 'Paste JSON here...'\"></textarea>\n\n @if (showSuggestions() && bindings().length) {\n <div class=\"binding-menu\" role=\"listbox\" aria-label=\"Insert a field\">\n <div class=\"binding-menu__head\">Insert a field</div>\n @for (binding of filteredBindings(); track binding.insert; let i = $index) {\n <button\n type=\"button\"\n role=\"option\"\n [attr.aria-selected]=\"i === activeIndex()\"\n class=\"binding-option\"\n [class.binding-option--active]=\"i === activeIndex()\"\n (mousedown)=\"$event.preventDefault()\"\n (mouseenter)=\"activeIndex.set(i)\"\n (click)=\"insertBinding(binding)\">\n <mat-icon class=\"binding-icon\">{{ binding.icon || 'data_object' }}</mat-icon>\n <span class=\"binding-text\">\n <span class=\"binding-name\">{{ binding.label }}</span>\n @if (binding.detail) {\n <span class=\"binding-detail\">{{ binding.detail }}</span>\n }\n </span>\n </button>\n } @empty {\n <div class=\"binding-empty\">No fields match \u201C{{ bindingSearch() }}\u201D.</div>\n }\n </div>\n }\n </div>\n </div>\n\n <!-- Persistent error zone: always reserves space so the layout never jumps. -->\n <div\n class=\"editor-footer\"\n [class.editor-footer--active]=\"errorMessage() !== null\"\n [class.editor-footer--warn]=\"errorMessage() === null && unknownTokenCount() > 0\"\n role=\"status\">\n @if (errorMessage(); as message) {\n <mat-icon class=\"icon-sm\">warning</mat-icon>\n <span>{{ message }}</span>\n } @else if (unknownTokenCount() > 0) {\n <mat-icon class=\"icon-sm\">help_outline</mat-icon>\n <span>{{ unknownTokenCount() }}\n {{ unknownTokenCount() === 1 ? 'field reference is' : 'field references are' }}\n not recognised \u2014 click it to pick a real field.</span>\n }\n </div>\n\n</div>\n", styles: [":host{display:block}.json-editor{display:flex;flex-direction:column;border:1px solid var(--lib-forms-code-border);border-radius:var(--lib-forms-radius-lg, 12px);overflow:hidden;background-color:var(--lib-forms-code-bg);font-family:Fira Code,Consolas,Monaco,Courier New,monospace;box-shadow:var(--lib-forms-shadow-resting)}.json-editor--disabled{opacity:.75}.editor-toolbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.5rem 1rem;background-color:var(--lib-forms-code-surface)}.editor-toolbar .toolbar-label{display:inline-flex;align-items:center;gap:.5rem;font-weight:500;font-size:.8125rem;color:var(--lib-forms-code-fg)}.icon-sm{font-size:1.125rem;width:1.125rem;height:1.125rem}.toolbar-actions{display:inline-flex;align-items:center;gap:.75rem}.status-indicator{display:inline-flex;align-items:center;gap:.375rem;font-size:.75rem}.status-indicator--error{color:var(--lib-forms-code-error)}.status-indicator--valid{color:var(--lib-forms-code-number)}.prettify-btn{font-family:inherit;font-size:.75rem;color:var(--lib-forms-code-fg);background:color-mix(in srgb,var(--lib-forms-code-fg) 8%,transparent);border:1px solid color-mix(in srgb,var(--lib-forms-code-fg) 16%,transparent);border-radius:var(--lib-forms-radius-sm, 8px);padding:.25rem .75rem;cursor:pointer;transition:background-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.prettify-btn:hover:not(:disabled){background:color-mix(in srgb,var(--lib-forms-code-fg) 16%,transparent)}.prettify-btn:disabled{opacity:.5;cursor:not-allowed}.editor-container{display:flex;width:100%;height:var(--lib-json-editor-height, 450px);background-color:var(--lib-forms-code-bg)}.editor-gutter{flex:0 0 auto;box-sizing:border-box;overflow:hidden;padding:1rem .5rem 1rem .75rem;text-align:right;font-family:Fira Code,Consolas,Monaco,Courier New,monospace;font-size:.875rem;line-height:1.5;color:color-mix(in srgb,var(--lib-forms-code-fg) 40%,transparent);background-color:var(--lib-forms-code-surface);border-right:1px solid var(--lib-forms-code-border);-webkit-user-select:none;user-select:none}.editor-gutter .gutter-line{display:block;height:1.5em;white-space:pre}.editor-scroll{position:relative;flex:1 1 auto;min-width:0;height:100%}.editor-textarea,.editor-backdrop{position:absolute;inset:0;font-family:Fira Code,Consolas,Monaco,Courier New,monospace;font-size:.875rem;line-height:1.5;letter-spacing:0;padding:1rem;margin:0;border:0;box-sizing:border-box;white-space:pre;word-wrap:normal;overflow:auto;tab-size:4}.editor-backdrop{z-index:1;pointer-events:none;overflow:hidden;background-color:transparent;color:var(--lib-forms-code-fg)}.editor-backdrop .highlights{white-space:pre;word-wrap:normal}.editor-textarea{z-index:2;color:transparent;background:transparent;caret-color:var(--lib-forms-code-fg);resize:none;outline:none}.editor-textarea::selection{background-color:color-mix(in srgb,var(--lib-forms-code-fg) 18%,transparent);color:transparent}.editor-textarea:disabled{cursor:not-allowed}.binding-menu{position:absolute;left:1rem;bottom:1rem;z-index:3;max-height:16rem;width:18rem;max-width:calc(100% - 2rem);overflow-y:auto;display:flex;flex-direction:column;padding:.375rem;border:1px solid var(--lib-forms-code-border);border-radius:var(--lib-forms-radius-lg, 12px);background-color:var(--lib-forms-code-surface);box-shadow:var(--lib-forms-shadow-floating, var(--lib-forms-shadow-resting))}.binding-menu__head{padding:.35rem .6rem .5rem;font-size:.625rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:color-mix(in srgb,var(--lib-forms-code-fg) 55%,transparent)}.binding-option{display:flex;align-items:center;gap:.6rem;padding:.45rem .6rem;border:0;border-radius:var(--lib-forms-radius-sm, 8px);background:transparent;text-align:left;cursor:pointer;transition:background-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.binding-option--active{background:color-mix(in srgb,var(--lib-forms-primary, var(--lib-forms-code-key, var(--lib-forms-code-fg))) 16%,transparent)}.binding-option .binding-icon{flex-shrink:0;font-size:1.125rem;width:1.125rem;height:1.125rem;color:color-mix(in srgb,var(--lib-forms-code-fg) 70%,transparent)}.binding-option .binding-text{display:flex;flex-direction:column;min-width:0;line-height:1.25}.binding-option .binding-name{font-family:inherit;font-size:.8125rem;font-weight:500;color:var(--lib-forms-code-fg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.binding-option .binding-detail{font-size:.6875rem;color:color-mix(in srgb,var(--lib-forms-code-fg) 55%,transparent);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.binding-empty{padding:.6rem;font-size:.75rem;color:color-mix(in srgb,var(--lib-forms-code-fg) 60%,transparent)}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;padding:0;border:0;border-radius:var(--lib-forms-radius-sm, 8px);background:transparent;color:var(--lib-forms-code-fg);cursor:pointer;transition:background-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.icon-btn:hover{background:color-mix(in srgb,var(--lib-forms-code-fg) 12%,transparent)}.fullscreen-scrim{position:fixed;inset:0;z-index:1199;background:color-mix(in srgb,var(--lib-forms-shadow-color) 55%,transparent);animation:json-editor-fade .2s var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.json-editor--fullscreen{position:fixed;inset:2.5rem;z-index:1200;margin:0;box-shadow:var(--lib-forms-shadow-floating, var(--lib-forms-shadow-resting))}.json-editor--fullscreen .editor-container{height:auto;flex:1 1 auto;min-height:0}@keyframes json-editor-fade{0%{opacity:0}to{opacity:1}}.editor-footer{display:flex;align-items:center;gap:.5rem;min-height:2.25rem;padding:.5rem 1rem;font-size:.8125rem;color:var(--lib-forms-code-error);background-color:transparent;transition:background-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.editor-footer--active{background-color:color-mix(in srgb,var(--lib-forms-code-error) 12%,transparent)}.editor-footer--warn{color:var(--lib-forms-warning, var(--lib-forms-code-boolean));background-color:color-mix(in srgb,var(--lib-forms-warning, var(--lib-forms-code-boolean)) 12%,transparent)}\n"] }]
21259
+ }], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], bindings: [{ type: i0.Input, args: [{ isSignal: true, alias: "bindings", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], backdrop: [{ type: i0.ViewChild, args: ['backdrop', { isSignal: true }] }], gutter: [{ type: i0.ViewChild, args: ['gutter', { isSignal: true }] }], textareaRef: [{ type: i0.ViewChild, args: ['editor', { isSignal: true }] }] } });
20470
21260
 
20471
21261
  /**
20472
21262
  * Internal empty-state block for editor lists: an icon, a message, and an
@@ -20765,7 +21555,7 @@ class ApiValueAccessRulesComponent {
20765
21555
  }
20766
21556
  }
20767
21557
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ApiValueAccessRulesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
20768
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: ApiValueAccessRulesComponent, isStandalone: true, selector: "lib-api-value-access-rules", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, multipleBind: { classPropertyName: "multipleBind", publicName: "multipleBind", isSignal: true, isRequired: false, transformFunction: null }, errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, formInputs: { classPropertyName: "formInputs", publicName: "formInputs", isSignal: true, isRequired: false, transformFunction: null }, mapToData: { classPropertyName: "mapToData", publicName: "mapToData", isSignal: true, isRequired: false, transformFunction: null }, postmanCollectionConfig: { classPropertyName: "postmanCollectionConfig", publicName: "postmanCollectionConfig", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChanged: "valueChanged", reload: "reload" }, host: { classAttribute: "lib-api-value-access-rules" }, ngImport: i0, template: "@if (hasErrors()) {\n <lib-error-list [errors]=\"errors()\" />\n}\n\n<div class=\"mode-toggle\">\n <mat-button-toggle-group name=\"valueAccessMode\" aria-label=\"Value access mode\" [value]=\"viewMode()\">\n <mat-button-toggle (click)=\"setViewMode('map')\" [checked]=\"viewMode() === 'map'\" value=\"map\">\n Value Mapping\n </mat-button-toggle>\n <mat-button-toggle (click)=\"setViewMode('sync')\" [checked]=\"viewMode() === 'sync'\" value=\"sync\">\n Data Sync\n </mat-button-toggle>\n </mat-button-toggle-group>\n</div>\n\n@if (error(); as err) {\n <lib-empty-state icon=\"error_outline\"\n [message]=\"err.error || err.message || 'Failed to load the collection.'\" />\n}\n\n@switch (viewMode()) {\n @case ('sync') {\n @if (parsedRequestBody(); as body) {\n <lib-json-editor (valueChange)=\"requestBodyChanged($event)\" [value]=\"body\" />\n } @else {\n <lib-empty-state icon=\"data_object\"\n message=\"No request body found in the selected API request.\" />\n }\n\n <div class=\"run-bar\">\n <p class=\"run-bar__hint\">Run the API call with the body above to load a live response.</p>\n <span class=\"run-bar__spacer\"></span>\n <button mat-stroked-button type=\"button\" [disabled]=\"loading()\" (click)=\"runApiCall()\"\n [attr.aria-busy]=\"loading()\" aria-label=\"Run API call\">\n @if (loading()) {\n <mat-spinner diameter=\"16\" />\n } @else {\n <mat-icon>play_arrow</mat-icon>\n }\n <span>{{ loading() ? 'Running API\u2026' : 'Run API Call' }}</span>\n </button>\n </div>\n }\n\n @case ('map') {\n @if (multipleBind(); as controls) {\n @for (controlName of controls; track controlName) {\n <section class=\"mapping-section\">\n <label class=\"mapping-section__label\" [attr.for]=\"controlName\">\n Map <strong>{{ controlName }}</strong>\n </label>\n <lib-data-tree [formInputs]=\"formInputs()\" [data]=\"treeData()\"\n [value]=\"keyedValueFor(controlName)\"\n (pathChanged)=\"pathChanged($event, controlName)\" />\n </section>\n }\n } @else {\n <lib-data-tree [formInputs]=\"formInputs()\" [data]=\"treeData()\" [value]=\"singleValue()\"\n (pathChanged)=\"pathChanged($event)\" />\n }\n }\n}\n\n<!-- CDK overlay shown while disabled -->\n<ng-template cdkConnectedOverlay [cdkConnectedOverlayOpen]=\"disabled()\">\n <div class=\"disabled-overlay\" aria-hidden=\"true\"></div>\n</ng-template>\n", styles: ["@charset \"UTF-8\";:host{display:block;position:relative}.mode-toggle{display:flex;justify-content:center;margin-bottom:1.5rem}.mode-toggle ::ng-deep .mat-button-toggle-group{border:none;border-radius:var(--lib-forms-radius-pill, 999px);background:var(--lib-forms-surface-container-high);padding:.25rem;gap:.25rem;box-shadow:none;overflow:hidden}.mode-toggle ::ng-deep .mat-button-toggle{border:none;background:transparent;border-radius:var(--lib-forms-radius-pill, 999px);color:var(--lib-forms-on-surface-variant);transition:color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing),background var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing)}.mode-toggle ::ng-deep .mat-button-toggle+.mat-button-toggle{border-left:none}.mode-toggle ::ng-deep .mat-button-toggle-button{height:auto}.mode-toggle ::ng-deep .mat-button-toggle-label-content{padding:.375rem 1.125rem;line-height:1.5;font-size:.8125rem;font-weight:600}.mode-toggle ::ng-deep .mat-button-toggle-checked{background:var(--lib-forms-surface);color:var(--lib-forms-primary);box-shadow:var(--lib-forms-shadow-edge)}.mode-toggle ::ng-deep .mat-pseudo-checkbox{display:none}.run-bar{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-top:1.5rem;padding:1rem 1.25rem;background:var(--lib-forms-surface);border:1px solid color-mix(in srgb,var(--lib-forms-outline) 15%,transparent);border-radius:var(--lib-forms-radius-lg, 12px);box-shadow:var(--lib-forms-shadow-resting)}.run-bar__hint{margin:0;font-size:.8125rem;line-height:1.4;color:var(--lib-forms-on-surface-variant)}.run-bar__spacer{flex:1 1 auto}.mapping-section{margin-bottom:1.5rem}.mapping-section:last-child{margin-bottom:0}.mapping-section__label{display:flex;align-items:center;gap:.5rem;margin-bottom:.75rem;font-size:.75rem;font-weight:500;color:var(--lib-forms-on-surface-variant)}.mapping-section__label strong{padding:.125rem .5rem;border-radius:var(--lib-forms-radius-pill, 6px);background:color-mix(in srgb,var(--lib-forms-primary) 10%,transparent);color:var(--lib-forms-on-surface);font-family:var(--lib-forms-font-mono, ui-monospace, monospace);font-weight:600;font-size:.75rem}.disabled-overlay{position:absolute;inset:0;background:color-mix(in srgb,var(--lib-forms-on-surface) 30%,transparent);border-radius:var(--lib-forms-radius-lg, 12px);z-index:10}\n"], dependencies: [{ kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i2$2.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation", "cdkConnectedOverlayUsePopover", "cdkConnectedOverlayMatchWidth", "cdkConnectedOverlay"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$2.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: "ngmodule", type: MatButtonToggleModule }, { kind: "directive", type: i3$4.MatButtonToggleGroup, selector: "mat-button-toggle-group", inputs: ["appearance", "name", "vertical", "value", "multiple", "disabled", "disabledInteractive", "hideSingleSelectionIndicator", "hideMultipleSelectionIndicator"], outputs: ["valueChange", "change"], exportAs: ["matButtonToggleGroup"] }, { kind: "component", type: i3$4.MatButtonToggle, selector: "mat-button-toggle", inputs: ["aria-label", "aria-labelledby", "id", "name", "value", "tabIndex", "disableRipple", "appearance", "checked", "disabled", "disabledInteractive"], outputs: ["change"], exportAs: ["matButtonToggle"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: DataTreeComponent, selector: "lib-data-tree", inputs: ["data", "value", "formInputs"], outputs: ["pathChanged"] }, { kind: "component", type: JsonEditorComponent, selector: "lib-json-editor", inputs: ["value", "height", "disabled"], outputs: ["valueChange"] }, { kind: "component", type: EmptyStateComponent, selector: "lib-empty-state", inputs: ["icon", "message"] }, { kind: "component", type: ErrorListComponent, selector: "lib-error-list", inputs: ["errors"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
21558
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: ApiValueAccessRulesComponent, isStandalone: true, selector: "lib-api-value-access-rules", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, multipleBind: { classPropertyName: "multipleBind", publicName: "multipleBind", isSignal: true, isRequired: false, transformFunction: null }, errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, formInputs: { classPropertyName: "formInputs", publicName: "formInputs", isSignal: true, isRequired: false, transformFunction: null }, mapToData: { classPropertyName: "mapToData", publicName: "mapToData", isSignal: true, isRequired: false, transformFunction: null }, postmanCollectionConfig: { classPropertyName: "postmanCollectionConfig", publicName: "postmanCollectionConfig", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChanged: "valueChanged", reload: "reload" }, host: { classAttribute: "lib-api-value-access-rules" }, ngImport: i0, template: "@if (hasErrors()) {\n <lib-error-list [errors]=\"errors()\" />\n}\n\n<div class=\"mode-toggle\">\n <mat-button-toggle-group name=\"valueAccessMode\" aria-label=\"Value access mode\" [value]=\"viewMode()\">\n <mat-button-toggle (click)=\"setViewMode('map')\" [checked]=\"viewMode() === 'map'\" value=\"map\">\n Value Mapping\n </mat-button-toggle>\n <mat-button-toggle (click)=\"setViewMode('sync')\" [checked]=\"viewMode() === 'sync'\" value=\"sync\">\n Data Sync\n </mat-button-toggle>\n </mat-button-toggle-group>\n</div>\n\n@if (error(); as err) {\n <lib-empty-state icon=\"error_outline\"\n [message]=\"err.error || err.message || 'Failed to load the collection.'\" />\n}\n\n@switch (viewMode()) {\n @case ('sync') {\n @if (parsedRequestBody(); as body) {\n <lib-json-editor (valueChange)=\"requestBodyChanged($event)\" [value]=\"body\" />\n } @else {\n <lib-empty-state icon=\"data_object\"\n message=\"No request body found in the selected API request.\" />\n }\n\n <div class=\"run-bar\">\n <p class=\"run-bar__hint\">Run the API call with the body above to load a live response.</p>\n <span class=\"run-bar__spacer\"></span>\n <button mat-stroked-button type=\"button\" [disabled]=\"loading()\" (click)=\"runApiCall()\"\n [attr.aria-busy]=\"loading()\" aria-label=\"Run API call\">\n @if (loading()) {\n <mat-spinner diameter=\"16\" />\n } @else {\n <mat-icon>play_arrow</mat-icon>\n }\n <span>{{ loading() ? 'Running API\u2026' : 'Run API Call' }}</span>\n </button>\n </div>\n }\n\n @case ('map') {\n @if (multipleBind(); as controls) {\n @for (controlName of controls; track controlName) {\n <section class=\"mapping-section\">\n <label class=\"mapping-section__label\" [attr.for]=\"controlName\">\n Map <strong>{{ controlName }}</strong>\n </label>\n <lib-data-tree [formInputs]=\"formInputs()\" [data]=\"treeData()\"\n [value]=\"keyedValueFor(controlName)\"\n (pathChanged)=\"pathChanged($event, controlName)\" />\n </section>\n }\n } @else {\n <lib-data-tree [formInputs]=\"formInputs()\" [data]=\"treeData()\" [value]=\"singleValue()\"\n (pathChanged)=\"pathChanged($event)\" />\n }\n }\n}\n\n<!-- CDK overlay shown while disabled -->\n<ng-template cdkConnectedOverlay [cdkConnectedOverlayOpen]=\"disabled()\">\n <div class=\"disabled-overlay\" aria-hidden=\"true\"></div>\n</ng-template>\n", styles: ["@charset \"UTF-8\";:host{display:block;position:relative}.mode-toggle{display:flex;justify-content:center;margin-bottom:1.5rem}.mode-toggle ::ng-deep .mat-button-toggle-group{border:none;border-radius:var(--lib-forms-radius-pill, 999px);background:var(--lib-forms-surface-container-high);padding:.25rem;gap:.25rem;box-shadow:none;overflow:hidden}.mode-toggle ::ng-deep .mat-button-toggle{border:none;background:transparent;border-radius:var(--lib-forms-radius-pill, 999px);color:var(--lib-forms-on-surface-variant);transition:color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing),background var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing)}.mode-toggle ::ng-deep .mat-button-toggle+.mat-button-toggle{border-left:none}.mode-toggle ::ng-deep .mat-button-toggle-button{height:auto}.mode-toggle ::ng-deep .mat-button-toggle-label-content{padding:.375rem 1.125rem;line-height:1.5;font-size:.8125rem;font-weight:600}.mode-toggle ::ng-deep .mat-button-toggle-checked{background:var(--lib-forms-surface);color:var(--lib-forms-primary);box-shadow:var(--lib-forms-shadow-edge)}.mode-toggle ::ng-deep .mat-pseudo-checkbox{display:none}.run-bar{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-top:1.5rem;padding:1rem 1.25rem;background:var(--lib-forms-surface);border:1px solid color-mix(in srgb,var(--lib-forms-outline) 15%,transparent);border-radius:var(--lib-forms-radius-lg, 12px);box-shadow:var(--lib-forms-shadow-resting)}.run-bar__hint{margin:0;font-size:.8125rem;line-height:1.4;color:var(--lib-forms-on-surface-variant)}.run-bar__spacer{flex:1 1 auto}.mapping-section{margin-bottom:1.5rem}.mapping-section:last-child{margin-bottom:0}.mapping-section__label{display:flex;align-items:center;gap:.5rem;margin-bottom:.75rem;font-size:.75rem;font-weight:500;color:var(--lib-forms-on-surface-variant)}.mapping-section__label strong{padding:.125rem .5rem;border-radius:var(--lib-forms-radius-pill, 6px);background:color-mix(in srgb,var(--lib-forms-primary) 10%,transparent);color:var(--lib-forms-on-surface);font-family:var(--lib-forms-font-mono, ui-monospace, monospace);font-weight:600;font-size:.75rem}.disabled-overlay{position:absolute;inset:0;background:color-mix(in srgb,var(--lib-forms-on-surface) 30%,transparent);border-radius:var(--lib-forms-radius-lg, 12px);z-index:10}\n"], dependencies: [{ kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i2$2.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation", "cdkConnectedOverlayUsePopover", "cdkConnectedOverlayMatchWidth", "cdkConnectedOverlay"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$2.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: "ngmodule", type: MatButtonToggleModule }, { kind: "directive", type: i3$4.MatButtonToggleGroup, selector: "mat-button-toggle-group", inputs: ["appearance", "name", "vertical", "value", "multiple", "disabled", "disabledInteractive", "hideSingleSelectionIndicator", "hideMultipleSelectionIndicator"], outputs: ["valueChange", "change"], exportAs: ["matButtonToggleGroup"] }, { kind: "component", type: i3$4.MatButtonToggle, selector: "mat-button-toggle", inputs: ["aria-label", "aria-labelledby", "id", "name", "value", "tabIndex", "disableRipple", "appearance", "checked", "disabled", "disabledInteractive"], outputs: ["change"], exportAs: ["matButtonToggle"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: DataTreeComponent, selector: "lib-data-tree", inputs: ["data", "value", "formInputs"], outputs: ["pathChanged"] }, { kind: "component", type: JsonEditorComponent, selector: "lib-json-editor", inputs: ["value", "height", "disabled", "bindings"], outputs: ["valueChange"] }, { kind: "component", type: EmptyStateComponent, selector: "lib-empty-state", inputs: ["icon", "message"] }, { kind: "component", type: ErrorListComponent, selector: "lib-error-list", inputs: ["errors"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
20769
21559
  }
20770
21560
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ApiValueAccessRulesComponent, decorators: [{
20771
21561
  type: Component,
@@ -21490,4 +22280,4 @@ const getSignatureImage = async (inputConfig, value, secret) => {
21490
22280
  */
21491
22281
 
21492
22282
  export { FormSuggestionRegistry as $, calculateListOveralFunctions as A, BaseCustomInput as B, returnMappedPathValue as C, DaysAgoPipe as D, EmptyStateComponent as E, FormsStoreService as F, FormatDataPipe as G, fuzzySearch as H, ACCOUNTING_BASIS as I, JsonEditorComponent as J, getToolbarColor as K, getToolbarBackground as L, MscoaFormInputComponent as M, NGX_T_FORMS_CONFIG_TOKEN as N, getToolbarIconColor as O, PREDICATE_OPERATORS as P, FORM_ACTIONS_TOKEN as Q, FORM_CONFIG_TOKEN as R, SignatureInputElementComponent as S, TDynamicDataEditComponent as T, UserFormStepperComponent as U, ValidationExpressioCreatorComponent as V, FORM_INPUTS_TOKEN as W, FORM_ROUTE_SOURCE as X, FORM_SLIDES_TOKEN as Y, FORM_SUGGESTION_REGISTRY as Z, _isEqual as _, assignDeepPropertyToObject as a, FormSuggestionRegistryService as a0, FormTowerControllerService as a1, HttpPipelineRepository as a2, IMPORT_TOWER_INSTANCE_ID as a3, INPUT_SECRET_TOKEN as a4, MSCOA_TREE_PROVIDER as a5, MULTIPLE_FORM_INPUT_TOKEN as a6, NgxTFormsComponent as a7, NgxTFormsService as a8, PIPELINE_REPOSITORY as a9, PipelineRepository as aa, PropertyAccessError as ab, TFormImportController as ac, TSuggestionReviewComponent as ad, UTILS_OBJECT_TOKEN as ae, buildSuggestionSchema as af, createFileFromBase64 as ag, formGenerator as ah, getPipedValueFromDataType as ai, getSampleValueForInput as aj, getSectionElements as ak, getUrl as al, getValueFromValueAccessor as am, initFormConfigToV2 as an, provideNgxTForms as ao, returnDeepProperty as ap, sheetConsolodation as aq, textIconsForUserHints as ar, toSuggestionBatch as as, validateExpressionSyntax as at, validateObjectAgainstString as au, withFormSuggestions as av, withHttpPipeline as aw, withInputSecret as ax, withRouterFormId as ay, formatData_pipe as az, TDynamicDataViewComponent as b, TFormEngine as c, TourManagerService as d, getSubmissionStatusFn as e, evaluatePredicate as f, getAvatar as g, emptyCondition as h, deriveObservedInputs as i, TreeComponent as j, convertPostmanFolderItemsToTree as k, ErrorListComponent as l, NESTED_EDITOR_COMPONENT as m, safeReturnDeepProperty as n, DataTreeComponent as o, parseConditions as p, getInputErrorMessage as q, referencedTokens as r, serializeConditions as s, testAgainstItem as t, TFormInputStatusComponent as u, DialogTemplateComponent as v, FormBuilderComponent as w, FormsComponent as x, TFormInputComponent as y, getSignatureImage as z };
21493
- //# sourceMappingURL=ngx-t-forms-ngx-t-forms-CW8jN83w.mjs.map
22283
+ //# sourceMappingURL=ngx-t-forms-ngx-t-forms-CJGAj18J.mjs.map