ngx-t-forms 2.0.37 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-D_l5sbNh.mjs → ngx-t-forms-auto-complete-input-element.component-FhUHTsUF.mjs} +4 -4
  2. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-D_l5sbNh.mjs.map → ngx-t-forms-auto-complete-input-element.component-FhUHTsUF.mjs.map} +1 -1
  3. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-fJIsRm0v.mjs → ngx-t-forms-basic-input-input-element.component-BJKe9wIA.mjs} +6 -6
  4. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-fJIsRm0v.mjs.map → ngx-t-forms-basic-input-input-element.component-BJKe9wIA.mjs.map} +1 -1
  5. package/fesm2022/ngx-t-forms-calculated-field-rules.component-FQLTI7CX.mjs +643 -0
  6. package/fesm2022/ngx-t-forms-calculated-field-rules.component-FQLTI7CX.mjs.map +1 -0
  7. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-L1kPy15K.mjs → ngx-t-forms-chip-options-creator-editor.component-CJtbprXS.mjs} +4 -4
  8. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-CJtbprXS.mjs.map +1 -0
  9. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-CU6Cp-oK.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-CU6R5h-x.mjs} +4 -4
  10. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-CU6R5h-x.mjs.map +1 -0
  11. package/fesm2022/ngx-t-forms-data-source-picker.component-C8MBbnfz.mjs +261 -0
  12. package/fesm2022/ngx-t-forms-data-source-picker.component-C8MBbnfz.mjs.map +1 -0
  13. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-DsjcLQ5A.mjs → ngx-t-forms-date-picker-input-element.component-Dux6uy66.mjs} +4 -4
  14. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-DsjcLQ5A.mjs.map → ngx-t-forms-date-picker-input-element.component-Dux6uy66.mjs.map} +1 -1
  15. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-SMWrTm5X.mjs +157 -0
  16. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-SMWrTm5X.mjs.map +1 -0
  17. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-uGM93dvc.mjs +373 -0
  18. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-uGM93dvc.mjs.map +1 -0
  19. package/fesm2022/ngx-t-forms-document-picker.component-DIqaaBSl.mjs +1259 -0
  20. package/fesm2022/ngx-t-forms-document-picker.component-DIqaaBSl.mjs.map +1 -0
  21. package/fesm2022/ngx-t-forms-editor-input-element.component-CIELjDty.mjs +417 -0
  22. package/fesm2022/ngx-t-forms-editor-input-element.component-CIELjDty.mjs.map +1 -0
  23. package/fesm2022/ngx-t-forms-editor-js-input.component-C1dI_7rU.mjs +553 -0
  24. package/fesm2022/ngx-t-forms-editor-js-input.component-C1dI_7rU.mjs.map +1 -0
  25. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-_RBYRgn9.mjs → ngx-t-forms-file-upload-input-element.component-CQsKz87N.mjs} +7 -7
  26. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-_RBYRgn9.mjs.map → ngx-t-forms-file-upload-input-element.component-CQsKz87N.mjs.map} +1 -1
  27. package/fesm2022/ngx-t-forms-form-input-selector.component-Dj0jvBdm.mjs +86 -0
  28. package/fesm2022/ngx-t-forms-form-input-selector.component-Dj0jvBdm.mjs.map +1 -0
  29. package/fesm2022/{ngx-t-forms-form-json-view.component-D9rU9vxT.mjs → ngx-t-forms-form-json-view.component-DzJKFl4c.mjs} +2 -2
  30. package/fesm2022/{ngx-t-forms-form-json-view.component-D9rU9vxT.mjs.map → ngx-t-forms-form-json-view.component-DzJKFl4c.mjs.map} +1 -1
  31. package/fesm2022/ngx-t-forms-form-payload-projection.component-y9PSIeP1.mjs +179 -0
  32. package/fesm2022/ngx-t-forms-form-payload-projection.component-y9PSIeP1.mjs.map +1 -0
  33. package/fesm2022/{ngx-t-forms-form-section-stepper.component-CqCL3Bnc.mjs → ngx-t-forms-form-section-stepper.component-DOvVtJGB.mjs} +6 -6
  34. package/fesm2022/{ngx-t-forms-form-section-stepper.component-CqCL3Bnc.mjs.map → ngx-t-forms-form-section-stepper.component-DOvVtJGB.mjs.map} +1 -1
  35. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-wmRDJU4P.mjs → ngx-t-forms-forms-builder-menu.component-CcqyQLf5.mjs} +12 -12
  36. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-wmRDJU4P.mjs.map → ngx-t-forms-forms-builder-menu.component-CcqyQLf5.mjs.map} +1 -1
  37. package/fesm2022/{ngx-t-forms-geo-location.component-CMbBSXe0.mjs → ngx-t-forms-geo-location.component-Bj_qIEqi.mjs} +7 -7
  38. package/fesm2022/{ngx-t-forms-geo-location.component-CMbBSXe0.mjs.map → ngx-t-forms-geo-location.component-Bj_qIEqi.mjs.map} +1 -1
  39. package/fesm2022/ngx-t-forms-header-template-editor.component-DLldVmcN.mjs +129 -0
  40. package/fesm2022/ngx-t-forms-header-template-editor.component-DLldVmcN.mjs.map +1 -0
  41. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-Cbq8OYk7.mjs → ngx-t-forms-image-capture-input-element.component-lwp3IcDt.mjs} +7 -7
  42. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-Cbq8OYk7.mjs.map → ngx-t-forms-image-capture-input-element.component-lwp3IcDt.mjs.map} +1 -1
  43. package/fesm2022/{ngx-t-forms-index-CPNvE4PP.mjs → ngx-t-forms-index-C8NtLE16.mjs} +2 -2
  44. package/fesm2022/ngx-t-forms-index-C8NtLE16.mjs.map +1 -0
  45. package/fesm2022/{ngx-t-forms-input-custom.component-uNVdF9aA.mjs → ngx-t-forms-input-custom.component-DiciFhSS.mjs} +2 -2
  46. package/fesm2022/{ngx-t-forms-input-custom.component-uNVdF9aA.mjs.map → ngx-t-forms-input-custom.component-DiciFhSS.mjs.map} +1 -1
  47. package/fesm2022/ngx-t-forms-input-editor.component-D12hrHOc.mjs +190 -0
  48. package/fesm2022/ngx-t-forms-input-editor.component-D12hrHOc.mjs.map +1 -0
  49. package/fesm2022/{ngx-t-forms-map-mat-options-keys-D0SGS9xQ.mjs → ngx-t-forms-map-mat-options-keys-C2JpMTEc.mjs} +2 -2
  50. package/fesm2022/{ngx-t-forms-map-mat-options-keys-D0SGS9xQ.mjs.map → ngx-t-forms-map-mat-options-keys-C2JpMTEc.mjs.map} +1 -1
  51. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-C1Qrze7K.mjs +167 -0
  52. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-C1Qrze7K.mjs.map +1 -0
  53. package/fesm2022/{ngx-t-forms-mat-slider-editor.component-CTSBrM-j.mjs → ngx-t-forms-mat-slider-editor.component-4buvmLkX.mjs} +3 -3
  54. package/fesm2022/ngx-t-forms-mat-slider-editor.component-4buvmLkX.mjs.map +1 -0
  55. package/fesm2022/{ngx-t-forms-mat-slider-toggle-editor.component-CcYiwx-8.mjs → ngx-t-forms-mat-slider-toggle-editor.component-DX8L0O1k.mjs} +3 -3
  56. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-DX8L0O1k.mjs.map +1 -0
  57. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CxF6Ljjf.mjs → ngx-t-forms-missing-form-configs.component-BaTR_jzc.mjs} +4 -4
  58. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CxF6Ljjf.mjs.map → ngx-t-forms-missing-form-configs.component-BaTR_jzc.mjs.map} +1 -1
  59. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-BqT5Z8SM.mjs → ngx-t-forms-mscoa-chart-toolbar.component-Dni_bv_G.mjs} +4 -4
  60. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-BqT5Z8SM.mjs.map → ngx-t-forms-mscoa-chart-toolbar.component-Dni_bv_G.mjs.map} +1 -1
  61. package/fesm2022/{ngx-t-forms-mscoa-error-display.component-99DpVSy7.mjs → ngx-t-forms-mscoa-error-display.component-BDPi6w2E.mjs} +3 -3
  62. package/fesm2022/{ngx-t-forms-mscoa-error-display.component-99DpVSy7.mjs.map → ngx-t-forms-mscoa-error-display.component-BDPi6w2E.mjs.map} +1 -1
  63. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-BPQuzR5k.mjs +447 -0
  64. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-BPQuzR5k.mjs.map +1 -0
  65. package/fesm2022/{ngx-t-forms-mscoa-temporary-hint.component-B1Z-IXSL.mjs → ngx-t-forms-mscoa-temporary-hint.component-g7DosiVb.mjs} +3 -3
  66. package/fesm2022/{ngx-t-forms-mscoa-temporary-hint.component-B1Z-IXSL.mjs.map → ngx-t-forms-mscoa-temporary-hint.component-g7DosiVb.mjs.map} +1 -1
  67. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-hXWMRFjl.mjs +905 -0
  68. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-hXWMRFjl.mjs.map +1 -0
  69. package/fesm2022/{ngx-t-forms-ngx-t-forms-DQ_h-jPF.mjs → ngx-t-forms-ngx-t-forms-tQEbZK_e.mjs} +2188 -249
  70. package/fesm2022/ngx-t-forms-ngx-t-forms-tQEbZK_e.mjs.map +1 -0
  71. package/fesm2022/{ngx-t-forms-paginated-selection-table-DHwojPhn.mjs → ngx-t-forms-paginated-selection-table-pYY2sWAb.mjs} +8 -8
  72. package/fesm2022/{ngx-t-forms-paginated-selection-table-DHwojPhn.mjs.map → ngx-t-forms-paginated-selection-table-pYY2sWAb.mjs.map} +1 -1
  73. package/fesm2022/ngx-t-forms-payload-template-editor.component-DGCUsTYx.mjs +79 -0
  74. package/fesm2022/ngx-t-forms-payload-template-editor.component-DGCUsTYx.mjs.map +1 -0
  75. package/fesm2022/ngx-t-forms-pipeline-generator.component-D2stBXXC.mjs +748 -0
  76. package/fesm2022/ngx-t-forms-pipeline-generator.component-D2stBXXC.mjs.map +1 -0
  77. package/fesm2022/ngx-t-forms-record-list-manager.component-CtCOIpai.mjs +446 -0
  78. package/fesm2022/ngx-t-forms-record-list-manager.component-CtCOIpai.mjs.map +1 -0
  79. package/fesm2022/ngx-t-forms-required-inputs.component-D9wIdOhg.mjs +272 -0
  80. package/fesm2022/ngx-t-forms-required-inputs.component-D9wIdOhg.mjs.map +1 -0
  81. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-D3sa7sNg.mjs → ngx-t-forms-rest-api-call-setup.component-Gy7Rtmue.mjs} +39 -8
  82. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-Gy7Rtmue.mjs.map +1 -0
  83. package/fesm2022/ngx-t-forms-search-field.component-mR4Kk12C.mjs +38 -0
  84. package/fesm2022/ngx-t-forms-search-field.component-mR4Kk12C.mjs.map +1 -0
  85. package/fesm2022/{ngx-t-forms-section-report.component-D6jakGa5.mjs → ngx-t-forms-section-report.component-U9uQ_Ow9.mjs} +4 -4
  86. package/fesm2022/{ngx-t-forms-section-report.component-D6jakGa5.mjs.map → ngx-t-forms-section-report.component-U9uQ_Ow9.mjs.map} +1 -1
  87. package/fesm2022/{ngx-t-forms-select-input-element.component-CwqIck0h.mjs → ngx-t-forms-select-input-element.component-CxYTmuvV.mjs} +8 -8
  88. package/fesm2022/{ngx-t-forms-select-input-element.component-CwqIck0h.mjs.map → ngx-t-forms-select-input-element.component-CxYTmuvV.mjs.map} +1 -1
  89. package/fesm2022/ngx-t-forms-selection-options-editor.component-BLLejOLG.mjs +169 -0
  90. package/fesm2022/ngx-t-forms-selection-options-editor.component-BLLejOLG.mjs.map +1 -0
  91. package/fesm2022/ngx-t-forms-t-workflow-picker.component-D0ttyEex.mjs +263 -0
  92. package/fesm2022/ngx-t-forms-t-workflow-picker.component-D0ttyEex.mjs.map +1 -0
  93. package/fesm2022/{ngx-t-forms-textarea-input-element.component-D4dEi8Vs.mjs → ngx-t-forms-textarea-input-element.component-75VdPc6z.mjs} +4 -4
  94. package/fesm2022/{ngx-t-forms-textarea-input-element.component-D4dEi8Vs.mjs.map → ngx-t-forms-textarea-input-element.component-75VdPc6z.mjs.map} +1 -1
  95. package/fesm2022/{ngx-t-forms-toggle-input-element.component-BZiTFB0j.mjs → ngx-t-forms-toggle-input-element.component-DQGvEJN-.mjs} +4 -4
  96. package/fesm2022/{ngx-t-forms-toggle-input-element.component-BZiTFB0j.mjs.map → ngx-t-forms-toggle-input-element.component-DQGvEJN-.mjs.map} +1 -1
  97. package/fesm2022/ngx-t-forms-token-transform-D_wsFbNc.mjs +173 -0
  98. package/fesm2022/ngx-t-forms-token-transform-D_wsFbNc.mjs.map +1 -0
  99. package/fesm2022/ngx-t-forms-validators-config.component-EM7RSWIz.mjs +574 -0
  100. package/fesm2022/ngx-t-forms-validators-config.component-EM7RSWIz.mjs.map +1 -0
  101. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-DD6Fhx06.mjs → ngx-t-forms-workflow-adjudication.component-C1Em-g9e.mjs} +17 -17
  102. package/fesm2022/ngx-t-forms-workflow-adjudication.component-C1Em-g9e.mjs.map +1 -0
  103. package/fesm2022/ngx-t-forms.mjs +1 -1
  104. package/package.json +2 -2
  105. package/styles/_editor-mixins.scss +117 -117
  106. package/styles/_signature-pad.scss +26 -26
  107. package/styles/_tokens.scss +148 -148
  108. package/types/ngx-t-forms.d.ts +14 -2
  109. package/fesm2022/ngx-t-forms-calculated-field-rules.component-B8Do3h4B.mjs +0 -643
  110. package/fesm2022/ngx-t-forms-calculated-field-rules.component-B8Do3h4B.mjs.map +0 -1
  111. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-L1kPy15K.mjs.map +0 -1
  112. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-CU6Cp-oK.mjs.map +0 -1
  113. package/fesm2022/ngx-t-forms-data-source-picker.component-r7OGAsxo.mjs +0 -261
  114. package/fesm2022/ngx-t-forms-data-source-picker.component-r7OGAsxo.mjs.map +0 -1
  115. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-B8V7IpoK.mjs +0 -156
  116. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-B8V7IpoK.mjs.map +0 -1
  117. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-hKJqVYUY.mjs +0 -373
  118. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-hKJqVYUY.mjs.map +0 -1
  119. package/fesm2022/ngx-t-forms-document-picker.component-f-hz6Vef.mjs +0 -704
  120. package/fesm2022/ngx-t-forms-document-picker.component-f-hz6Vef.mjs.map +0 -1
  121. package/fesm2022/ngx-t-forms-editor-input-element.component-D38U94oj.mjs +0 -294
  122. package/fesm2022/ngx-t-forms-editor-input-element.component-D38U94oj.mjs.map +0 -1
  123. package/fesm2022/ngx-t-forms-editor-js-input.component-D_Jq7sfY.mjs +0 -240
  124. package/fesm2022/ngx-t-forms-editor-js-input.component-D_Jq7sfY.mjs.map +0 -1
  125. package/fesm2022/ngx-t-forms-form-input-selector.component-CUwK3DqG.mjs +0 -86
  126. package/fesm2022/ngx-t-forms-form-input-selector.component-CUwK3DqG.mjs.map +0 -1
  127. package/fesm2022/ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs +0 -179
  128. package/fesm2022/ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs.map +0 -1
  129. package/fesm2022/ngx-t-forms-index-CPNvE4PP.mjs.map +0 -1
  130. package/fesm2022/ngx-t-forms-input-editor.component-BWoKhlI3.mjs +0 -190
  131. package/fesm2022/ngx-t-forms-input-editor.component-BWoKhlI3.mjs.map +0 -1
  132. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-Cu-KiAeY.mjs +0 -66
  133. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-Cu-KiAeY.mjs.map +0 -1
  134. package/fesm2022/ngx-t-forms-mat-slider-editor.component-CTSBrM-j.mjs.map +0 -1
  135. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-CcYiwx-8.mjs.map +0 -1
  136. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-BT-dM_5C.mjs +0 -447
  137. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-BT-dM_5C.mjs.map +0 -1
  138. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-DXAh2Mbm.mjs +0 -905
  139. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-DXAh2Mbm.mjs.map +0 -1
  140. package/fesm2022/ngx-t-forms-ngx-t-forms-DQ_h-jPF.mjs.map +0 -1
  141. package/fesm2022/ngx-t-forms-payload-template-editor.component-CAXdFu4E.mjs +0 -203
  142. package/fesm2022/ngx-t-forms-payload-template-editor.component-CAXdFu4E.mjs.map +0 -1
  143. package/fesm2022/ngx-t-forms-pipeline-generator.component-BJQ-KnmU.mjs +0 -748
  144. package/fesm2022/ngx-t-forms-pipeline-generator.component-BJQ-KnmU.mjs.map +0 -1
  145. package/fesm2022/ngx-t-forms-record-list-manager.component-BoD3S_7u.mjs +0 -358
  146. package/fesm2022/ngx-t-forms-record-list-manager.component-BoD3S_7u.mjs.map +0 -1
  147. package/fesm2022/ngx-t-forms-required-inputs.component-C-E3fQu6.mjs +0 -272
  148. package/fesm2022/ngx-t-forms-required-inputs.component-C-E3fQu6.mjs.map +0 -1
  149. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-D3sa7sNg.mjs.map +0 -1
  150. package/fesm2022/ngx-t-forms-search-field.component-B2ZO7lqO.mjs +0 -38
  151. package/fesm2022/ngx-t-forms-search-field.component-B2ZO7lqO.mjs.map +0 -1
  152. package/fesm2022/ngx-t-forms-selection-options-editor.component-Coj9gnrq.mjs +0 -169
  153. package/fesm2022/ngx-t-forms-selection-options-editor.component-Coj9gnrq.mjs.map +0 -1
  154. package/fesm2022/ngx-t-forms-t-workflow-picker.component-DqFMP1rZ.mjs +0 -204
  155. package/fesm2022/ngx-t-forms-t-workflow-picker.component-DqFMP1rZ.mjs.map +0 -1
  156. package/fesm2022/ngx-t-forms-validators-config.component-B3K9nLxx.mjs +0 -574
  157. package/fesm2022/ngx-t-forms-validators-config.component-B3K9nLxx.mjs.map +0 -1
  158. package/fesm2022/ngx-t-forms-workflow-adjudication.component-DD6Fhx06.mjs.map +0 -1
@@ -1,203 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { input, output, computed, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import * as i3 from '@angular/material/icon';
4
- import { MatIconModule } from '@angular/material/icon';
5
- import { ElementTypes } from 'ngx-t-forms-types';
6
- import { g as getInputIcon } from './ngx-t-forms-getInputIcon-B4ADgevZ.mjs';
7
- import { J as JsonEditorComponent } from './ngx-t-forms-ngx-t-forms-DQ_h-jPF.mjs';
8
-
9
- /**
10
- * @file Friendly-label ⇄ id token transform for the payload-template editor.
11
- *
12
- * The stored config always uses `{{inputId}}` tokens, but the editor shows the
13
- * user-friendly field **label** inline (`{{Contract Type}}`). This module maps
14
- * between the two forms on a per-field basis.
15
- *
16
- * ### Robustness (why this is safe despite arbitrary labels)
17
- * The transform runs on the **parsed value** (objects/strings), never on raw
18
- * JSON text — so `JSON.stringify`/`parse` handle escaping and a label with a
19
- * quote can never corrupt the document. On top of that, a label only earns a
20
- * friendly token when it is BOTH:
21
- * - **safe** — contains none of `{ } " \` (which would break the `{{…}}`
22
- * delimiters or a raw picker-insertion), and
23
- * - **unique** — no other field shares it (so `label → id` is unambiguous).
24
- *
25
- * Any field failing either test keeps its raw `{{id}}` inline. The friendly view
26
- * is therefore a lossless, best-effort layer that degrades to the id — it can
27
- * never produce invalid JSON or an ambiguous mapping.
28
- */
29
- /** Characters that make a label unusable as a `{{label}}` token. */
30
- const UNSAFE_LABEL = /[{}"\\]/;
31
- /** Matches a `{{token}}` occurrence inside a string (token captured, trimmed by the caller). */
32
- const TOKEN_RE = /\{\{\s*([^{}]+?)\s*\}\}/g;
33
- /**
34
- * Builds the id⇄label token maps for a set of fields, applying the safety and
35
- * uniqueness rules described in the file header.
36
- *
37
- * @param fields - The candidate fields (id + label).
38
- * @returns The bidirectional maps; a field absent from them keeps its raw id.
39
- */
40
- function buildTokenMaps(fields) {
41
- const labelCounts = new Map();
42
- for (const field of fields) {
43
- const label = field.label?.trim();
44
- if (!label || UNSAFE_LABEL.test(label))
45
- continue;
46
- labelCounts.set(label, (labelCounts.get(label) ?? 0) + 1);
47
- }
48
- const idToLabel = new Map();
49
- const labelToId = new Map();
50
- for (const field of fields) {
51
- const label = field.label?.trim();
52
- if (!label || UNSAFE_LABEL.test(label))
53
- continue;
54
- if (labelCounts.get(label) !== 1)
55
- continue; // ambiguous → keep the raw id
56
- if (label === field.id)
57
- continue; // transform would be a no-op
58
- idToLabel.set(field.id, label);
59
- labelToId.set(label, field.id);
60
- }
61
- return { idToLabel, labelToId };
62
- }
63
- /**
64
- * Deep-walks a parsed JSON value, rewriting every `{{token}}` whose trimmed token
65
- * is a key in `lookup` to `{{mappedValue}}`. Unmapped tokens are left untouched.
66
- * Non-string leaves (numbers/booleans/null) pass through unchanged.
67
- *
68
- * @typeParam T - The value shape (preserved).
69
- * @param value - The parsed template value (object / array / primitive / undefined).
70
- * @param lookup - `idToLabel` for display, `labelToId` for save.
71
- * @returns A structurally-cloned value with tokens rewritten (or the original when `lookup` is empty).
72
- */
73
- function mapTemplateTokens(value, lookup) {
74
- if (lookup.size === 0)
75
- return value;
76
- return walk(value, lookup);
77
- }
78
- function walk(node, lookup) {
79
- if (typeof node === 'string') {
80
- return node.replace(TOKEN_RE, (match, rawToken) => {
81
- const mapped = lookup.get(rawToken.trim());
82
- return mapped !== undefined ? `{{${mapped}}}` : match;
83
- });
84
- }
85
- if (Array.isArray(node)) {
86
- return node.map((item) => walk(item, lookup));
87
- }
88
- if (node !== null && typeof node === 'object') {
89
- const out = {};
90
- for (const [key, val] of Object.entries(node)) {
91
- out[key] = walk(val, lookup);
92
- }
93
- return out;
94
- }
95
- return node;
96
- }
97
-
98
- /** Turns an element type into a short, friendly field-kind label for the picker. */
99
- function humanizeElement(element) {
100
- return String(element)
101
- .replace(/([a-z])([A-Z])/g, '$1 $2')
102
- .replace(/^./, (c) => c.toUpperCase());
103
- }
104
- /**
105
- * Editor for a POST fetch's `backEndConfig.payloadTemplate`.
106
- *
107
- * Reuses the shared {@link JsonEditorComponent} (syntax highlight, validation,
108
- * Format, `$`-trigger binding menu). Each form input is offered as an insertable
109
- * `{{inputId}}` binding — typing `$` opens the menu. The parsed JSON is emitted
110
- * as the template; `{{inputId}}` tokens map to live field values at runtime, and
111
- * every other literal is a fixed default.
112
- *
113
- * Which mechanism is active (template vs mapped `minimumInputRequired`) is chosen
114
- * upstream by the mode selector in the element-editor config, so this editor only
115
- * renders when template mode is selected — it owns no toggle.
116
- *
117
- * @example
118
- * <lib-payload-template-editor [value]="tpl()" [formInputs]="inputs()"
119
- * (valueChanged)="onTemplate($event)" />
120
- */
121
- class PayloadTemplateEditorComponent {
122
- constructor() {
123
- /** Current template (`undefined` when nothing has been authored yet). */
124
- this.value = input(undefined, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
125
- /**
126
- * Default template shown when nothing has been authored yet — the endpoint's
127
- * captured request body, or a skeleton derived from the fetch's required inputs.
128
- * The builder also persists this via the descriptor's `defaultValue`; this input
129
- * only makes it appear immediately instead of after the persist round-trip.
130
- */
131
- this.defaultTemplate = input(undefined, ...(ngDevMode ? [{ debugName: "defaultTemplate" }] : /* istanbul ignore next */ []));
132
- /** All form inputs, offered as insertable `{{inputId}}` bindings. */
133
- this.formInputs = input([], ...(ngDevMode ? [{ debugName: "formInputs" }] : /* istanbul ignore next */ []));
134
- /** Disables the editor. */
135
- this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
136
- /** Validation errors surfaced by the parent editor. */
137
- this.errors = input([], ...(ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []));
138
- /** Optional id supplied by the parent editor. */
139
- this.id = input(undefined, ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
140
- /** Emits the parsed template on every valid edit. */
141
- this.valueChanged = output();
142
- /** The insertable fields (id + label), filtered to real inputs. */
143
- this.#fields = computed(() => this.formInputs()
144
- .filter((input) => input.element !== ElementTypes.SectionTitle && !input.multipleInputInEditId && !!input.id)
145
- .map((input) => ({ id: input.id, label: input.label?.trim() || input.id })), ...(ngDevMode ? [{ debugName: "#fields" }] : /* istanbul ignore next */ []));
146
- /** id⇄label token maps (safe + unique labels only; everything else stays a raw id). */
147
- this.#tokenMaps = computed(() => buildTokenMaps(this.#fields()), ...(ngDevMode ? [{ debugName: "#tokenMaps" }] : /* istanbul ignore next */ []));
148
- /**
149
- * Field bindings for the JSON editor's `$`-trigger picker. The picker shows the
150
- * friendly label + kind (never the raw id); the inserted token is the friendly
151
- * `{{Label}}` when available, else the raw `{{id}}`.
152
- */
153
- this.editorBindings = computed(() => {
154
- const { idToLabel } = this.#tokenMaps();
155
- return this.formInputs()
156
- .filter((input) => input.element !== ElementTypes.SectionTitle && !input.multipleInputInEditId && !!input.id)
157
- .map((input) => {
158
- const label = input.label?.trim() || input.id;
159
- const display = idToLabel.get(input.id);
160
- return {
161
- label,
162
- insert: display ? `{{${display}}}` : `{{${input.id}}}`,
163
- searchText: `${input.id} ${input.label ?? ''}`,
164
- icon: getInputIcon(input.element),
165
- detail: humanizeElement(input.element),
166
- // Recognise BOTH the friendly label and the raw id as this field, so a
167
- // pasted/legacy `{{id}}` still renders as a valid pill (and vice versa).
168
- aliases: display ? [input.id] : [label],
169
- };
170
- });
171
- }, ...(ngDevMode ? [{ debugName: "editorBindings" }] : /* istanbul ignore next */ []));
172
- /**
173
- * The value the JSON editor renders — the authored template, or the derived
174
- * default when none exists yet — with stored `{{id}}` tokens rewritten to the
175
- * friendly `{{Label}}` form for display.
176
- */
177
- this.editorValue = computed(() => mapTemplateTokens(this.value() ?? this.defaultTemplate(), this.#tokenMaps().idToLabel), ...(ngDevMode ? [{ debugName: "editorValue" }] : /* istanbul ignore next */ []));
178
- }
179
- /** The insertable fields (id + label), filtered to real inputs. */
180
- #fields;
181
- /** id⇄label token maps (safe + unique labels only; everything else stays a raw id). */
182
- #tokenMaps;
183
- /**
184
- * Commit a valid edit: rewrite the friendly `{{Label}}` tokens back to the
185
- * stored `{{id}}` form before emitting. Invalid/empty edits are ignored (last
186
- * valid stays in effect).
187
- */
188
- onEditorChange(change) {
189
- if (!change.valid)
190
- return;
191
- const stored = mapTemplateTokens(change.value, this.#tokenMaps().labelToId);
192
- this.valueChanged.emit(stored);
193
- }
194
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: PayloadTemplateEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
195
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: PayloadTemplateEditorComponent, isStandalone: true, selector: "lib-payload-template-editor", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, defaultTemplate: { classPropertyName: "defaultTemplate", publicName: "defaultTemplate", isSignal: true, isRequired: false, transformFunction: null }, formInputs: { classPropertyName: "formInputs", publicName: "formInputs", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChanged: "valueChanged" }, host: { classAttribute: "lib-payload-template-editor" }, ngImport: i0, template: "<div class=\"template-editor\">\n <p class=\"hint-line\">\n <mat-icon class=\"info-icon\">info</mat-icon>\n <span>Author the request body as JSON. Type <code>$</code> to insert a field by name;\n every other literal is a fixed default. This supersedes the required-input mapping.</span>\n </p>\n\n <lib-json-editor\n height=\"360px\"\n [value]=\"editorValue()\"\n [bindings]=\"editorBindings()\"\n [disabled]=\"disabled()\"\n (valueChange)=\"onEditorChange($event)\" />\n\n @for (error of errors(); track $index) {\n <p class=\"error-line\"><span>{{ error.message }}</span></p>\n }\n</div>\n", styles: [":host{display:block}.template-editor{display:flex;flex-direction:column;gap:1.5rem}.hint-line{display:flex;align-items:flex-start;gap:.5rem;margin:0;font-size:.875rem;line-height:1.5;color:var(--lib-forms-on-surface-variant)}.hint-line code{font-family:var(--lib-forms-font-mono, monospace);font-size:.8125rem;padding:.05rem .35rem;border-radius:4px;background:var(--lib-forms-surface-container-highest)}.info-icon{flex-shrink:0;font-size:1.125rem;width:1.125rem;height:1.125rem;color:var(--lib-forms-primary)}.error-line{display:flex;align-items:flex-start;gap:.5rem;margin:0;font-size:.75rem;line-height:1.5;color:var(--lib-forms-error)}\n"], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: JsonEditorComponent, selector: "lib-json-editor", inputs: ["value", "height", "disabled", "bindings"], outputs: ["valueChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
196
- }
197
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: PayloadTemplateEditorComponent, decorators: [{
198
- type: Component,
199
- args: [{ selector: 'lib-payload-template-editor', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, host: { class: 'lib-payload-template-editor' }, imports: [MatIconModule, JsonEditorComponent], template: "<div class=\"template-editor\">\n <p class=\"hint-line\">\n <mat-icon class=\"info-icon\">info</mat-icon>\n <span>Author the request body as JSON. Type <code>$</code> to insert a field by name;\n every other literal is a fixed default. This supersedes the required-input mapping.</span>\n </p>\n\n <lib-json-editor\n height=\"360px\"\n [value]=\"editorValue()\"\n [bindings]=\"editorBindings()\"\n [disabled]=\"disabled()\"\n (valueChange)=\"onEditorChange($event)\" />\n\n @for (error of errors(); track $index) {\n <p class=\"error-line\"><span>{{ error.message }}</span></p>\n }\n</div>\n", styles: [":host{display:block}.template-editor{display:flex;flex-direction:column;gap:1.5rem}.hint-line{display:flex;align-items:flex-start;gap:.5rem;margin:0;font-size:.875rem;line-height:1.5;color:var(--lib-forms-on-surface-variant)}.hint-line code{font-family:var(--lib-forms-font-mono, monospace);font-size:.8125rem;padding:.05rem .35rem;border-radius:4px;background:var(--lib-forms-surface-container-highest)}.info-icon{flex-shrink:0;font-size:1.125rem;width:1.125rem;height:1.125rem;color:var(--lib-forms-primary)}.error-line{display:flex;align-items:flex-start;gap:.5rem;margin:0;font-size:.75rem;line-height:1.5;color:var(--lib-forms-error)}\n"] }]
200
- }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], defaultTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultTemplate", required: false }] }], formInputs: [{ type: i0.Input, args: [{ isSignal: true, alias: "formInputs", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], valueChanged: [{ type: i0.Output, args: ["valueChanged"] }] } });
201
-
202
- export { PayloadTemplateEditorComponent };
203
- //# sourceMappingURL=ngx-t-forms-payload-template-editor.component-CAXdFu4E.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ngx-t-forms-payload-template-editor.component-CAXdFu4E.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/payload-template-editor/token-transform.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/payload-template-editor/payload-template-editor.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/payload-template-editor/payload-template-editor.component.html"],"sourcesContent":["/**\n * @file Friendly-label ⇄ id token transform for the payload-template editor.\n *\n * The stored config always uses `{{inputId}}` tokens, but the editor shows the\n * user-friendly field **label** inline (`{{Contract Type}}`). This module maps\n * between the two forms on a per-field basis.\n *\n * ### Robustness (why this is safe despite arbitrary labels)\n * The transform runs on the **parsed value** (objects/strings), never on raw\n * JSON text — so `JSON.stringify`/`parse` handle escaping and a label with a\n * quote can never corrupt the document. On top of that, a label only earns a\n * friendly token when it is BOTH:\n * - **safe** — contains none of `{ } \" \\` (which would break the `{{…}}`\n * delimiters or a raw picker-insertion), and\n * - **unique** — no other field shares it (so `label → id` is unambiguous).\n *\n * Any field failing either test keeps its raw `{{id}}` inline. The friendly view\n * is therefore a lossless, best-effort layer that degrades to the id — it can\n * never produce invalid JSON or an ambiguous mapping.\n */\n\n/** A field that can back a token: its stable `id` and its display `label`. */\nexport interface TokenField {\n readonly id: string;\n readonly label: string;\n}\n\n/** Bidirectional token maps (only safe, uniquely-labelled fields are included). */\nexport interface TokenMaps {\n /** `id → label` (drives the id→friendly display transform + picker insert). */\n readonly idToLabel: ReadonlyMap<string, string>;\n /** `label → id` (drives the friendly→id save transform). */\n readonly labelToId: ReadonlyMap<string, string>;\n}\n\n/** Characters that make a label unusable as a `{{label}}` token. */\nconst UNSAFE_LABEL = /[{}\"\\\\]/;\n\n/** Matches a `{{token}}` occurrence inside a string (token captured, trimmed by the caller). */\nconst TOKEN_RE = /\\{\\{\\s*([^{}]+?)\\s*\\}\\}/g;\n\n/**\n * Builds the id⇄label token maps for a set of fields, applying the safety and\n * uniqueness rules described in the file header.\n *\n * @param fields - The candidate fields (id + label).\n * @returns The bidirectional maps; a field absent from them keeps its raw id.\n */\nexport function buildTokenMaps(fields: readonly TokenField[]): TokenMaps {\n const labelCounts = new Map<string, number>();\n for (const field of fields) {\n const label = field.label?.trim();\n if (!label || UNSAFE_LABEL.test(label)) continue;\n labelCounts.set(label, (labelCounts.get(label) ?? 0) + 1);\n }\n\n const idToLabel = new Map<string, string>();\n const labelToId = new Map<string, string>();\n for (const field of fields) {\n const label = field.label?.trim();\n if (!label || UNSAFE_LABEL.test(label)) continue;\n if (labelCounts.get(label) !== 1) continue; // ambiguous → keep the raw id\n if (label === field.id) continue; // transform would be a no-op\n idToLabel.set(field.id, label);\n labelToId.set(label, field.id);\n }\n return { idToLabel, labelToId };\n}\n\n/**\n * Deep-walks a parsed JSON value, rewriting every `{{token}}` whose trimmed token\n * is a key in `lookup` to `{{mappedValue}}`. Unmapped tokens are left untouched.\n * Non-string leaves (numbers/booleans/null) pass through unchanged.\n *\n * @typeParam T - The value shape (preserved).\n * @param value - The parsed template value (object / array / primitive / undefined).\n * @param lookup - `idToLabel` for display, `labelToId` for save.\n * @returns A structurally-cloned value with tokens rewritten (or the original when `lookup` is empty).\n */\nexport function mapTemplateTokens<T>(value: T, lookup: ReadonlyMap<string, string>): T {\n if (lookup.size === 0) return value;\n return walk(value, lookup) as T;\n}\n\nfunction walk(node: unknown, lookup: ReadonlyMap<string, string>): unknown {\n if (typeof node === 'string') {\n return node.replace(TOKEN_RE, (match, rawToken: string) => {\n const mapped = lookup.get(rawToken.trim());\n return mapped !== undefined ? `{{${mapped}}}` : match;\n });\n }\n if (Array.isArray(node)) {\n return node.map((item) => walk(item, lookup));\n }\n if (node !== null && typeof node === 'object') {\n const out: Record<string, unknown> = {};\n for (const [key, val] of Object.entries(node as Record<string, unknown>)) {\n out[key] = walk(val, lookup);\n }\n return out;\n }\n return node;\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n computed,\n input,\n output,\n} from '@angular/core';\nimport { MatIconModule } from '@angular/material/icon';\n\nimport { ElementTypes } from 'ngx-t-forms-types';\nimport type { FormColumnInputs, PayloadTemplate } from 'ngx-t-forms-types';\n\nimport { getInputIcon } from '../../../../shared/functions/getInputIcon';\nimport type { IConfigElementError } from '../../t-dynamic-data-edit.component';\nimport {\n JsonEditorComponent,\n type EditorBinding,\n type JsonEditorChange,\n} from '../json-editor/json-editor.component';\nimport { buildTokenMaps, mapTemplateTokens, type TokenField } from './token-transform';\n\n/** Turns an element type into a short, friendly field-kind label for the picker. */\nfunction humanizeElement(element: ElementTypes): string {\n return String(element)\n .replace(/([a-z])([A-Z])/g, '$1 $2')\n .replace(/^./, (c) => c.toUpperCase());\n}\n\n/**\n * Editor for a POST fetch's `backEndConfig.payloadTemplate`.\n *\n * Reuses the shared {@link JsonEditorComponent} (syntax highlight, validation,\n * Format, `$`-trigger binding menu). Each form input is offered as an insertable\n * `{{inputId}}` binding — typing `$` opens the menu. The parsed JSON is emitted\n * as the template; `{{inputId}}` tokens map to live field values at runtime, and\n * every other literal is a fixed default.\n *\n * Which mechanism is active (template vs mapped `minimumInputRequired`) is chosen\n * upstream by the mode selector in the element-editor config, so this editor only\n * renders when template mode is selected — it owns no toggle.\n *\n * @example\n * <lib-payload-template-editor [value]=\"tpl()\" [formInputs]=\"inputs()\"\n * (valueChanged)=\"onTemplate($event)\" />\n */\n@Component({\n selector: 'lib-payload-template-editor',\n templateUrl: './payload-template-editor.component.html',\n styleUrl: './payload-template-editor.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.Emulated,\n host: { class: 'lib-payload-template-editor' },\n imports: [MatIconModule, JsonEditorComponent],\n})\nexport class PayloadTemplateEditorComponent {\n /** Current template (`undefined` when nothing has been authored yet). */\n readonly value = input<PayloadTemplate | undefined>(undefined);\n\n /**\n * Default template shown when nothing has been authored yet — the endpoint's\n * captured request body, or a skeleton derived from the fetch's required inputs.\n * The builder also persists this via the descriptor's `defaultValue`; this input\n * only makes it appear immediately instead of after the persist round-trip.\n */\n readonly defaultTemplate = input<PayloadTemplate | undefined>(undefined);\n\n /** All form inputs, offered as insertable `{{inputId}}` bindings. */\n readonly formInputs = input<readonly FormColumnInputs[]>([]);\n\n /** Disables the editor. */\n readonly disabled = input<boolean>(false);\n\n /** Validation errors surfaced by the parent editor. */\n readonly errors = input<IConfigElementError[] | undefined>([]);\n\n /** Optional id supplied by the parent editor. */\n readonly id = input<string | undefined>(undefined);\n\n /** Emits the parsed template on every valid edit. */\n readonly valueChanged = output<PayloadTemplate>();\n\n /** The insertable fields (id + label), filtered to real inputs. */\n readonly #fields = computed<readonly TokenField[]>(() =>\n this.formInputs()\n .filter((input) => input.element !== ElementTypes.SectionTitle && !input.multipleInputInEditId && !!input.id)\n .map((input) => ({ id: input.id, label: input.label?.trim() || input.id })),\n );\n\n /** id⇄label token maps (safe + unique labels only; everything else stays a raw id). */\n readonly #tokenMaps = computed(() => buildTokenMaps(this.#fields()));\n\n /**\n * Field bindings for the JSON editor's `$`-trigger picker. The picker shows the\n * friendly label + kind (never the raw id); the inserted token is the friendly\n * `{{Label}}` when available, else the raw `{{id}}`.\n */\n protected readonly editorBindings = computed<readonly EditorBinding[]>(() => {\n const { idToLabel } = this.#tokenMaps();\n return this.formInputs()\n .filter((input) => input.element !== ElementTypes.SectionTitle && !input.multipleInputInEditId && !!input.id)\n .map((input) => {\n const label = input.label?.trim() || input.id;\n const display = idToLabel.get(input.id);\n return {\n label,\n insert: display ? `{{${display}}}` : `{{${input.id}}}`,\n searchText: `${input.id} ${input.label ?? ''}`,\n icon: getInputIcon(input.element),\n detail: humanizeElement(input.element),\n // Recognise BOTH the friendly label and the raw id as this field, so a\n // pasted/legacy `{{id}}` still renders as a valid pill (and vice versa).\n aliases: display ? [input.id] : [label],\n } satisfies EditorBinding;\n });\n });\n\n /**\n * The value the JSON editor renders — the authored template, or the derived\n * default when none exists yet — with stored `{{id}}` tokens rewritten to the\n * friendly `{{Label}}` form for display.\n */\n protected readonly editorValue = computed<object | undefined>(() =>\n mapTemplateTokens(this.value() ?? this.defaultTemplate(), this.#tokenMaps().idToLabel) as object | undefined,\n );\n\n /**\n * Commit a valid edit: rewrite the friendly `{{Label}}` tokens back to the\n * stored `{{id}}` form before emitting. Invalid/empty edits are ignored (last\n * valid stays in effect).\n */\n protected onEditorChange(change: JsonEditorChange): void {\n if (!change.valid) return;\n const stored = mapTemplateTokens(change.value, this.#tokenMaps().labelToId);\n this.valueChanged.emit(stored as PayloadTemplate);\n }\n}\n","<div class=\"template-editor\">\n <p class=\"hint-line\">\n <mat-icon class=\"info-icon\">info</mat-icon>\n <span>Author the request body as JSON. Type <code>$</code> to insert a field by name;\n every other literal is a fixed default. This supersedes the required-input mapping.</span>\n </p>\n\n <lib-json-editor\n height=\"360px\"\n [value]=\"editorValue()\"\n [bindings]=\"editorBindings()\"\n [disabled]=\"disabled()\"\n (valueChange)=\"onEditorChange($event)\" />\n\n @for (error of errors(); track $index) {\n <p class=\"error-line\"><span>{{ error.message }}</span></p>\n }\n</div>\n"],"names":[],"mappings":";;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;AAmBG;AAgBH;AACA,MAAM,YAAY,GAAG,SAAS;AAE9B;AACA,MAAM,QAAQ,GAAG,0BAA0B;AAE3C;;;;;;AAMG;AACG,SAAU,cAAc,CAAC,MAA6B,EAAA;AAC1D,IAAA,MAAM,WAAW,GAAG,IAAI,GAAG,EAAkB;AAC7C,IAAA,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE;QAC1B,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE;QACjC,IAAI,CAAC,KAAK,IAAI,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC;YAAE;AACxC,QAAA,WAAW,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,WAAW,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC3D;AAEA,IAAA,MAAM,SAAS,GAAG,IAAI,GAAG,EAAkB;AAC3C,IAAA,MAAM,SAAS,GAAG,IAAI,GAAG,EAAkB;AAC3C,IAAA,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE;QAC1B,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE;QACjC,IAAI,CAAC,KAAK,IAAI,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC;YAAE;AACxC,QAAA,IAAI,WAAW,CAA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