ngx-t-forms 2.0.36 → 2.0.37

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 (187) hide show
  1. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-VektEtrf.mjs → ngx-t-forms-auto-complete-input-element.component-D_l5sbNh.mjs} +2 -2
  2. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-VektEtrf.mjs.map → ngx-t-forms-auto-complete-input-element.component-D_l5sbNh.mjs.map} +1 -1
  3. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-C8D6DN41.mjs → ngx-t-forms-basic-input-input-element.component-fJIsRm0v.mjs} +3 -3
  4. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-C8D6DN41.mjs.map → ngx-t-forms-basic-input-input-element.component-fJIsRm0v.mjs.map} +1 -1
  5. package/fesm2022/{ngx-t-forms-calculated-field-rules.component-B_3IbQjp.mjs → ngx-t-forms-calculated-field-rules.component-B8Do3h4B.mjs} +2 -2
  6. package/fesm2022/{ngx-t-forms-calculated-field-rules.component-B_3IbQjp.mjs.map → ngx-t-forms-calculated-field-rules.component-B8Do3h4B.mjs.map} +1 -1
  7. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-uTCOa48g.mjs → ngx-t-forms-chip-options-creator-editor.component-L1kPy15K.mjs} +2 -2
  8. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-uTCOa48g.mjs.map → ngx-t-forms-chip-options-creator-editor.component-L1kPy15K.mjs.map} +1 -1
  9. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-BX3zJs-A.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-CU6Cp-oK.mjs} +2 -2
  10. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-BX3zJs-A.mjs.map → ngx-t-forms-config-mscoa-additional-inputs.component-CU6Cp-oK.mjs.map} +1 -1
  11. package/fesm2022/{ngx-t-forms-data-source-picker.component-z0l9WEw7.mjs → ngx-t-forms-data-source-picker.component-r7OGAsxo.mjs} +6 -6
  12. package/fesm2022/{ngx-t-forms-data-source-picker.component-z0l9WEw7.mjs.map → ngx-t-forms-data-source-picker.component-r7OGAsxo.mjs.map} +1 -1
  13. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-C9I8KX12.mjs → ngx-t-forms-date-picker-input-element.component-DsjcLQ5A.mjs} +2 -2
  14. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-C9I8KX12.mjs.map → ngx-t-forms-date-picker-input-element.component-DsjcLQ5A.mjs.map} +1 -1
  15. package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-B3Z47mrO.mjs → ngx-t-forms-date-range-picker-input-element.component-B8V7IpoK.mjs} +2 -2
  16. package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-B3Z47mrO.mjs.map → ngx-t-forms-date-range-picker-input-element.component-B8V7IpoK.mjs.map} +1 -1
  17. package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-PW2XiPiH.mjs → ngx-t-forms-document-list-label-config-editor.component-hKJqVYUY.mjs} +3 -3
  18. package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-PW2XiPiH.mjs.map → ngx-t-forms-document-list-label-config-editor.component-hKJqVYUY.mjs.map} +1 -1
  19. package/fesm2022/{ngx-t-forms-document-picker.component-BNQ1a96s.mjs → ngx-t-forms-document-picker.component-f-hz6Vef.mjs} +2 -2
  20. package/fesm2022/{ngx-t-forms-document-picker.component-BNQ1a96s.mjs.map → ngx-t-forms-document-picker.component-f-hz6Vef.mjs.map} +1 -1
  21. package/fesm2022/{ngx-t-forms-editor-input-element.component-C12fnCTM.mjs → ngx-t-forms-editor-input-element.component-D38U94oj.mjs} +3 -3
  22. package/fesm2022/{ngx-t-forms-editor-input-element.component-C12fnCTM.mjs.map → ngx-t-forms-editor-input-element.component-D38U94oj.mjs.map} +1 -1
  23. package/fesm2022/{ngx-t-forms-editor-js-input.component-cxob42pE.mjs → ngx-t-forms-editor-js-input.component-D_Jq7sfY.mjs} +2 -2
  24. package/fesm2022/{ngx-t-forms-editor-js-input.component-cxob42pE.mjs.map → ngx-t-forms-editor-js-input.component-D_Jq7sfY.mjs.map} +1 -1
  25. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-Bgi-chdw.mjs → ngx-t-forms-file-upload-input-element.component-_RBYRgn9.mjs} +2 -2
  26. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-Bgi-chdw.mjs.map → ngx-t-forms-file-upload-input-element.component-_RBYRgn9.mjs.map} +1 -1
  27. package/fesm2022/{ngx-t-forms-form-input-selector.component-xIalL_cs.mjs → ngx-t-forms-form-input-selector.component-CUwK3DqG.mjs} +2 -2
  28. package/fesm2022/{ngx-t-forms-form-input-selector.component-xIalL_cs.mjs.map → ngx-t-forms-form-input-selector.component-CUwK3DqG.mjs.map} +1 -1
  29. package/fesm2022/{ngx-t-forms-form-json-view.component-CU1d8rGd.mjs → ngx-t-forms-form-json-view.component-D9rU9vxT.mjs} +2 -2
  30. package/fesm2022/{ngx-t-forms-form-json-view.component-CU1d8rGd.mjs.map → ngx-t-forms-form-json-view.component-D9rU9vxT.mjs.map} +1 -1
  31. package/fesm2022/{ngx-t-forms-form-section-stepper.component-tGbPKHM6.mjs → ngx-t-forms-form-section-stepper.component-CqCL3Bnc.mjs} +4 -4
  32. package/fesm2022/{ngx-t-forms-form-section-stepper.component-tGbPKHM6.mjs.map → ngx-t-forms-form-section-stepper.component-CqCL3Bnc.mjs.map} +1 -1
  33. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-hK9C4vAa.mjs → ngx-t-forms-forms-builder-menu.component-wmRDJU4P.mjs} +4 -4
  34. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-hK9C4vAa.mjs.map → ngx-t-forms-forms-builder-menu.component-wmRDJU4P.mjs.map} +1 -1
  35. package/fesm2022/{ngx-t-forms-geo-location.component-ChmvJCGu.mjs → ngx-t-forms-geo-location.component-CMbBSXe0.mjs} +2 -2
  36. package/fesm2022/{ngx-t-forms-geo-location.component-ChmvJCGu.mjs.map → ngx-t-forms-geo-location.component-CMbBSXe0.mjs.map} +1 -1
  37. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-BpA_P017.mjs → ngx-t-forms-image-capture-input-element.component-Cbq8OYk7.mjs} +2 -2
  38. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-BpA_P017.mjs.map → ngx-t-forms-image-capture-input-element.component-Cbq8OYk7.mjs.map} +1 -1
  39. package/fesm2022/{ngx-t-forms-index-D-7ZX0w7.mjs → ngx-t-forms-index-CPNvE4PP.mjs} +2 -2
  40. package/fesm2022/ngx-t-forms-index-CPNvE4PP.mjs.map +1 -0
  41. package/fesm2022/{ngx-t-forms-input-custom.component-pUshbxSM.mjs → ngx-t-forms-input-custom.component-uNVdF9aA.mjs} +2 -2
  42. package/fesm2022/{ngx-t-forms-input-custom.component-pUshbxSM.mjs.map → ngx-t-forms-input-custom.component-uNVdF9aA.mjs.map} +1 -1
  43. package/fesm2022/{ngx-t-forms-input-editor.component-CxXMETLl.mjs → ngx-t-forms-input-editor.component-BWoKhlI3.mjs} +3 -3
  44. package/fesm2022/{ngx-t-forms-input-editor.component-CxXMETLl.mjs.map → ngx-t-forms-input-editor.component-BWoKhlI3.mjs.map} +1 -1
  45. package/fesm2022/{ngx-t-forms-map-mat-options-keys-BbfC5vYI.mjs → ngx-t-forms-map-mat-options-keys-D0SGS9xQ.mjs} +2 -2
  46. package/fesm2022/{ngx-t-forms-map-mat-options-keys-BbfC5vYI.mjs.map → ngx-t-forms-map-mat-options-keys-D0SGS9xQ.mjs.map} +1 -1
  47. package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-CuOsHNXe.mjs → ngx-t-forms-mat-chip-list-editor.component-Cu-KiAeY.mjs} +2 -2
  48. package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-CuOsHNXe.mjs.map → ngx-t-forms-mat-chip-list-editor.component-Cu-KiAeY.mjs.map} +1 -1
  49. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CDIajZxP.mjs → ngx-t-forms-missing-form-configs.component-CxF6Ljjf.mjs} +2 -2
  50. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CDIajZxP.mjs.map → ngx-t-forms-missing-form-configs.component-CxF6Ljjf.mjs.map} +1 -1
  51. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-D1ASX1mt.mjs → ngx-t-forms-mscoa-chart-toolbar.component-BqT5Z8SM.mjs} +2 -2
  52. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-D1ASX1mt.mjs.map → ngx-t-forms-mscoa-chart-toolbar.component-BqT5Z8SM.mjs.map} +1 -1
  53. package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-CjuxTqfX.mjs → ngx-t-forms-mscoa-segment-config.component-BT-dM_5C.mjs} +2 -2
  54. package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-CjuxTqfX.mjs.map → ngx-t-forms-mscoa-segment-config.component-BT-dM_5C.mjs.map} +1 -1
  55. package/fesm2022/{ngx-t-forms-multiple-input-input-element.component-BA61uQ2q.mjs → ngx-t-forms-multiple-input-input-element.component-DXAh2Mbm.mjs} +4 -4
  56. package/fesm2022/{ngx-t-forms-multiple-input-input-element.component-BA61uQ2q.mjs.map → ngx-t-forms-multiple-input-input-element.component-DXAh2Mbm.mjs.map} +1 -1
  57. package/fesm2022/{ngx-t-forms-ngx-t-forms-CJGAj18J.mjs → ngx-t-forms-ngx-t-forms-DQ_h-jPF.mjs} +147 -67
  58. package/fesm2022/ngx-t-forms-ngx-t-forms-DQ_h-jPF.mjs.map +1 -0
  59. package/fesm2022/{ngx-t-forms-paginated-selection-table-yvhqQxPV.mjs → ngx-t-forms-paginated-selection-table-DHwojPhn.mjs} +2 -2
  60. package/fesm2022/{ngx-t-forms-paginated-selection-table-yvhqQxPV.mjs.map → ngx-t-forms-paginated-selection-table-DHwojPhn.mjs.map} +1 -1
  61. package/fesm2022/{ngx-t-forms-payload-template-editor.component-sqY3bYiZ.mjs → ngx-t-forms-payload-template-editor.component-CAXdFu4E.mjs} +2 -2
  62. package/fesm2022/{ngx-t-forms-payload-template-editor.component-sqY3bYiZ.mjs.map → ngx-t-forms-payload-template-editor.component-CAXdFu4E.mjs.map} +1 -1
  63. package/fesm2022/{ngx-t-forms-pipeline-generator.component-COvr1j_v.mjs → ngx-t-forms-pipeline-generator.component-BJQ-KnmU.mjs} +2 -2
  64. package/fesm2022/{ngx-t-forms-pipeline-generator.component-COvr1j_v.mjs.map → ngx-t-forms-pipeline-generator.component-BJQ-KnmU.mjs.map} +1 -1
  65. package/fesm2022/{ngx-t-forms-record-list-manager.component-CY4GnAOb.mjs → ngx-t-forms-record-list-manager.component-BoD3S_7u.mjs} +2 -2
  66. package/fesm2022/{ngx-t-forms-record-list-manager.component-CY4GnAOb.mjs.map → ngx-t-forms-record-list-manager.component-BoD3S_7u.mjs.map} +1 -1
  67. package/fesm2022/{ngx-t-forms-required-inputs.component-ByBeNLXu.mjs → ngx-t-forms-required-inputs.component-C-E3fQu6.mjs} +2 -2
  68. package/fesm2022/{ngx-t-forms-required-inputs.component-ByBeNLXu.mjs.map → ngx-t-forms-required-inputs.component-C-E3fQu6.mjs.map} +1 -1
  69. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-CkLePXoO.mjs → ngx-t-forms-rest-api-call-setup.component-D3sa7sNg.mjs} +2 -2
  70. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-CkLePXoO.mjs.map → ngx-t-forms-rest-api-call-setup.component-D3sa7sNg.mjs.map} +1 -1
  71. package/fesm2022/{ngx-t-forms-section-report.component-mUpSxbaB.mjs → ngx-t-forms-section-report.component-D6jakGa5.mjs} +2 -2
  72. package/fesm2022/{ngx-t-forms-section-report.component-mUpSxbaB.mjs.map → ngx-t-forms-section-report.component-D6jakGa5.mjs.map} +1 -1
  73. package/fesm2022/{ngx-t-forms-select-input-element.component-c7IgHdXA.mjs → ngx-t-forms-select-input-element.component-CwqIck0h.mjs} +2 -2
  74. package/fesm2022/{ngx-t-forms-select-input-element.component-c7IgHdXA.mjs.map → ngx-t-forms-select-input-element.component-CwqIck0h.mjs.map} +1 -1
  75. package/fesm2022/{ngx-t-forms-selection-options-editor.component-WfuGdtvK.mjs → ngx-t-forms-selection-options-editor.component-Coj9gnrq.mjs} +2 -2
  76. package/fesm2022/{ngx-t-forms-selection-options-editor.component-WfuGdtvK.mjs.map → ngx-t-forms-selection-options-editor.component-Coj9gnrq.mjs.map} +1 -1
  77. package/fesm2022/{ngx-t-forms-textarea-input-element.component-C7H84RGw.mjs → ngx-t-forms-textarea-input-element.component-D4dEi8Vs.mjs} +2 -2
  78. package/fesm2022/{ngx-t-forms-textarea-input-element.component-C7H84RGw.mjs.map → ngx-t-forms-textarea-input-element.component-D4dEi8Vs.mjs.map} +1 -1
  79. package/fesm2022/{ngx-t-forms-toggle-input-element.component-Cgzg89Ug.mjs → ngx-t-forms-toggle-input-element.component-BZiTFB0j.mjs} +2 -2
  80. package/fesm2022/{ngx-t-forms-toggle-input-element.component-Cgzg89Ug.mjs.map → ngx-t-forms-toggle-input-element.component-BZiTFB0j.mjs.map} +1 -1
  81. package/fesm2022/{ngx-t-forms-validators-config.component-DgIVRSvF.mjs → ngx-t-forms-validators-config.component-B3K9nLxx.mjs} +2 -2
  82. package/fesm2022/{ngx-t-forms-validators-config.component-DgIVRSvF.mjs.map → ngx-t-forms-validators-config.component-B3K9nLxx.mjs.map} +1 -1
  83. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-CB6qBxgr.mjs → ngx-t-forms-workflow-adjudication.component-DD6Fhx06.mjs} +3 -3
  84. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-CB6qBxgr.mjs.map → ngx-t-forms-workflow-adjudication.component-DD6Fhx06.mjs.map} +1 -1
  85. package/fesm2022/ngx-t-forms.mjs +1 -1
  86. package/package.json +1 -1
  87. package/types/ngx-t-forms.d.ts +11 -12
  88. package/fesm2022/ngx-t-forms-auto-complete-input-element.component-ookGrpnN.mjs +0 -261
  89. package/fesm2022/ngx-t-forms-auto-complete-input-element.component-ookGrpnN.mjs.map +0 -1
  90. package/fesm2022/ngx-t-forms-basic-input-input-element.component-CQVuW8z1.mjs +0 -225
  91. package/fesm2022/ngx-t-forms-basic-input-input-element.component-CQVuW8z1.mjs.map +0 -1
  92. package/fesm2022/ngx-t-forms-calculated-field-rules.component-8EgwXTN1.mjs +0 -1011
  93. package/fesm2022/ngx-t-forms-calculated-field-rules.component-8EgwXTN1.mjs.map +0 -1
  94. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-B95VIBRi.mjs +0 -136
  95. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-B95VIBRi.mjs.map +0 -1
  96. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dm16WA5Y.mjs +0 -253
  97. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dm16WA5Y.mjs.map +0 -1
  98. package/fesm2022/ngx-t-forms-data-source-picker.component-Dij1l4-7.mjs +0 -419
  99. package/fesm2022/ngx-t-forms-data-source-picker.component-Dij1l4-7.mjs.map +0 -1
  100. package/fesm2022/ngx-t-forms-date-picker-input-element.component-D9BOhV6g.mjs +0 -231
  101. package/fesm2022/ngx-t-forms-date-picker-input-element.component-D9BOhV6g.mjs.map +0 -1
  102. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-BiXubnsN.mjs +0 -333
  103. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-BiXubnsN.mjs.map +0 -1
  104. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-C5T_DK6w.mjs +0 -543
  105. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-C5T_DK6w.mjs.map +0 -1
  106. package/fesm2022/ngx-t-forms-document-picker.component-B47pQxMF.mjs +0 -1217
  107. package/fesm2022/ngx-t-forms-document-picker.component-B47pQxMF.mjs.map +0 -1
  108. package/fesm2022/ngx-t-forms-editor-input-element.component-DYytkGYD.mjs +0 -447
  109. package/fesm2022/ngx-t-forms-editor-input-element.component-DYytkGYD.mjs.map +0 -1
  110. package/fesm2022/ngx-t-forms-editor-js-input.component-BQSF3142.mjs +0 -251
  111. package/fesm2022/ngx-t-forms-editor-js-input.component-BQSF3142.mjs.map +0 -1
  112. package/fesm2022/ngx-t-forms-file-upload-input-element.component-CI4onrtp.mjs +0 -447
  113. package/fesm2022/ngx-t-forms-file-upload-input-element.component-CI4onrtp.mjs.map +0 -1
  114. package/fesm2022/ngx-t-forms-form-input-selector.component-BysF2WY-.mjs +0 -163
  115. package/fesm2022/ngx-t-forms-form-input-selector.component-BysF2WY-.mjs.map +0 -1
  116. package/fesm2022/ngx-t-forms-form-json-view.component-DpU3ZTiS.mjs +0 -28
  117. package/fesm2022/ngx-t-forms-form-json-view.component-DpU3ZTiS.mjs.map +0 -1
  118. package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs +0 -291
  119. package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs.map +0 -1
  120. package/fesm2022/ngx-t-forms-form-section-stepper.component-DqShhIBK.mjs +0 -936
  121. package/fesm2022/ngx-t-forms-form-section-stepper.component-DqShhIBK.mjs.map +0 -1
  122. package/fesm2022/ngx-t-forms-forms-builder-menu.component-BsgtMZFM.mjs +0 -816
  123. package/fesm2022/ngx-t-forms-forms-builder-menu.component-BsgtMZFM.mjs.map +0 -1
  124. package/fesm2022/ngx-t-forms-geo-location.component-DfmFok8a.mjs +0 -329
  125. package/fesm2022/ngx-t-forms-geo-location.component-DfmFok8a.mjs.map +0 -1
  126. package/fesm2022/ngx-t-forms-image-capture-input-element.component-DYjnaWYE.mjs +0 -360
  127. package/fesm2022/ngx-t-forms-image-capture-input-element.component-DYjnaWYE.mjs.map +0 -1
  128. package/fesm2022/ngx-t-forms-index-D-7ZX0w7.mjs.map +0 -1
  129. package/fesm2022/ngx-t-forms-index-DHloq32-.mjs +0 -2
  130. package/fesm2022/ngx-t-forms-index-DHloq32-.mjs.map +0 -1
  131. package/fesm2022/ngx-t-forms-input-custom.component-Cv6jfrPf.mjs +0 -128
  132. package/fesm2022/ngx-t-forms-input-custom.component-Cv6jfrPf.mjs.map +0 -1
  133. package/fesm2022/ngx-t-forms-input-editor.component-BKV6ZJx9.mjs +0 -512
  134. package/fesm2022/ngx-t-forms-input-editor.component-BKV6ZJx9.mjs.map +0 -1
  135. package/fesm2022/ngx-t-forms-map-mat-options-keys-epWo0lEj.mjs +0 -132
  136. package/fesm2022/ngx-t-forms-map-mat-options-keys-epWo0lEj.mjs.map +0 -1
  137. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-Bqjjgtyf.mjs +0 -109
  138. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-Bqjjgtyf.mjs.map +0 -1
  139. package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs +0 -241
  140. package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs.map +0 -1
  141. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs +0 -180
  142. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs.map +0 -1
  143. package/fesm2022/ngx-t-forms-missing-form-configs.component-DRAVdGfc.mjs +0 -114
  144. package/fesm2022/ngx-t-forms-missing-form-configs.component-DRAVdGfc.mjs.map +0 -1
  145. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-C9b-pNLr.mjs +0 -69
  146. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-C9b-pNLr.mjs.map +0 -1
  147. package/fesm2022/ngx-t-forms-mscoa-error-display.component-DzFibbuY.mjs +0 -200
  148. package/fesm2022/ngx-t-forms-mscoa-error-display.component-DzFibbuY.mjs.map +0 -1
  149. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-D9KrXNS6.mjs +0 -850
  150. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-D9KrXNS6.mjs.map +0 -1
  151. package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-DV93x0Rr.mjs +0 -107
  152. package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-DV93x0Rr.mjs.map +0 -1
  153. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-BxQYrUJL.mjs +0 -1665
  154. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-BxQYrUJL.mjs.map +0 -1
  155. package/fesm2022/ngx-t-forms-ngx-t-forms-CJGAj18J.mjs.map +0 -1
  156. package/fesm2022/ngx-t-forms-ngx-t-forms-D7kDvkTZ.mjs +0 -27352
  157. package/fesm2022/ngx-t-forms-ngx-t-forms-D7kDvkTZ.mjs.map +0 -1
  158. package/fesm2022/ngx-t-forms-paginated-selection-table-DeY5vQti.mjs +0 -1024
  159. package/fesm2022/ngx-t-forms-paginated-selection-table-DeY5vQti.mjs.map +0 -1
  160. package/fesm2022/ngx-t-forms-payload-template-editor.component-BzY-kX6W.mjs +0 -234
  161. package/fesm2022/ngx-t-forms-payload-template-editor.component-BzY-kX6W.mjs.map +0 -1
  162. package/fesm2022/ngx-t-forms-pipeline-generator.component-CcHgQ-MT.mjs +0 -1126
  163. package/fesm2022/ngx-t-forms-pipeline-generator.component-CcHgQ-MT.mjs.map +0 -1
  164. package/fesm2022/ngx-t-forms-record-list-manager.component-DuE2OdC4.mjs +0 -545
  165. package/fesm2022/ngx-t-forms-record-list-manager.component-DuE2OdC4.mjs.map +0 -1
  166. package/fesm2022/ngx-t-forms-required-inputs.component-BWKUC8zQ.mjs +0 -451
  167. package/fesm2022/ngx-t-forms-required-inputs.component-BWKUC8zQ.mjs.map +0 -1
  168. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BEqnJqZG.mjs +0 -625
  169. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BEqnJqZG.mjs.map +0 -1
  170. package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs +0 -72
  171. package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs.map +0 -1
  172. package/fesm2022/ngx-t-forms-section-report.component-CQR27H3a.mjs +0 -248
  173. package/fesm2022/ngx-t-forms-section-report.component-CQR27H3a.mjs.map +0 -1
  174. package/fesm2022/ngx-t-forms-select-input-element.component-CLs5UkmC.mjs +0 -408
  175. package/fesm2022/ngx-t-forms-select-input-element.component-CLs5UkmC.mjs.map +0 -1
  176. package/fesm2022/ngx-t-forms-selection-options-editor.component-DiegTjWX.mjs +0 -275
  177. package/fesm2022/ngx-t-forms-selection-options-editor.component-DiegTjWX.mjs.map +0 -1
  178. package/fesm2022/ngx-t-forms-t-workflow-picker.component-CQPrr7Cz.mjs +0 -341
  179. package/fesm2022/ngx-t-forms-t-workflow-picker.component-CQPrr7Cz.mjs.map +0 -1
  180. package/fesm2022/ngx-t-forms-textarea-input-element.component-Coxr1XD7.mjs +0 -233
  181. package/fesm2022/ngx-t-forms-textarea-input-element.component-Coxr1XD7.mjs.map +0 -1
  182. package/fesm2022/ngx-t-forms-toggle-input-element.component-BWnTeuHM.mjs +0 -305
  183. package/fesm2022/ngx-t-forms-toggle-input-element.component-BWnTeuHM.mjs.map +0 -1
  184. package/fesm2022/ngx-t-forms-validators-config.component-DjLB40z-.mjs +0 -1105
  185. package/fesm2022/ngx-t-forms-validators-config.component-DjLB40z-.mjs.map +0 -1
  186. package/fesm2022/ngx-t-forms-workflow-adjudication.component-_A3v5MxN.mjs +0 -2923
  187. package/fesm2022/ngx-t-forms-workflow-adjudication.component-_A3v5MxN.mjs.map +0 -1
@@ -1,163 +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 * as i6 from '@angular/material/list';
6
- import { MatListModule } from '@angular/material/list';
7
- import * as i7 from '@angular/material/core';
8
- import { MatRippleModule } from '@angular/material/core';
9
- import { g as getInputIcon } from './ngx-t-forms-getInputIcon-B4ADgevZ.mjs';
10
- import { E as EmptyStateComponent } from './ngx-t-forms-ngx-t-forms-D7kDvkTZ.mjs';
11
-
12
- const _forTrack0 = ($index, $item) => $item.id;
13
- function FormInputSelectorComponent_Conditional_0_For_2_Conditional_6_Template(rf, ctx) { if (rf & 1) {
14
- i0.ɵɵelementStart(0, "span");
15
- i0.ɵɵtext(1, "Sub-item");
16
- i0.ɵɵelementEnd();
17
- } }
18
- function FormInputSelectorComponent_Conditional_0_For_2_Conditional_7_Template(rf, ctx) { if (rf & 1) {
19
- i0.ɵɵelementStart(0, "span");
20
- i0.ɵɵtext(1);
21
- i0.ɵɵelementEnd();
22
- } if (rf & 2) {
23
- const option_r2 = i0.ɵɵnextContext().$implicit;
24
- i0.ɵɵadvance();
25
- i0.ɵɵtextInterpolate(option_r2.dataType);
26
- } }
27
- function FormInputSelectorComponent_Conditional_0_For_2_Conditional_8_Template(rf, ctx) { if (rf & 1) {
28
- i0.ɵɵelementStart(0, "span", 7);
29
- i0.ɵɵtext(1, "Selected");
30
- i0.ɵɵelementEnd();
31
- } }
32
- function FormInputSelectorComponent_Conditional_0_For_2_Template(rf, ctx) { if (rf & 1) {
33
- const _r1 = i0.ɵɵgetCurrentView();
34
- i0.ɵɵelementStart(0, "mat-list-item", 3);
35
- i0.ɵɵlistener("click", function FormInputSelectorComponent_Conditional_0_For_2_Template_mat_list_item_click_0_listener() { const option_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.select(option_r2.id)); });
36
- i0.ɵɵelementStart(1, "mat-icon", 4);
37
- i0.ɵɵtext(2);
38
- i0.ɵɵelementEnd();
39
- i0.ɵɵelementStart(3, "span", 5);
40
- i0.ɵɵtext(4);
41
- i0.ɵɵelementEnd();
42
- i0.ɵɵelementStart(5, "span", 6);
43
- i0.ɵɵconditionalCreate(6, FormInputSelectorComponent_Conditional_0_For_2_Conditional_6_Template, 2, 0, "span");
44
- i0.ɵɵconditionalCreate(7, FormInputSelectorComponent_Conditional_0_For_2_Conditional_7_Template, 2, 1, "span");
45
- i0.ɵɵconditionalCreate(8, FormInputSelectorComponent_Conditional_0_For_2_Conditional_8_Template, 2, 0, "span", 7);
46
- i0.ɵɵelementEnd();
47
- i0.ɵɵelementStart(9, "mat-icon", 8);
48
- i0.ɵɵtext(10);
49
- i0.ɵɵelementEnd()();
50
- } if (rf & 2) {
51
- const option_r2 = ctx.$implicit;
52
- const ctx_r2 = i0.ɵɵnextContext(2);
53
- i0.ɵɵproperty("disabled", ctx_r2.disabled())("activated", option_r2.selected);
54
- i0.ɵɵattribute("aria-selected", option_r2.selected)("aria-label", option_r2.ariaLabel);
55
- i0.ɵɵadvance(2);
56
- i0.ɵɵtextInterpolate1(" ", option_r2.icon, " ");
57
- i0.ɵɵadvance(2);
58
- i0.ɵɵtextInterpolate(option_r2.label);
59
- i0.ɵɵadvance(2);
60
- i0.ɵɵconditional(option_r2.isSubItem ? 6 : -1);
61
- i0.ɵɵadvance();
62
- i0.ɵɵconditional(option_r2.dataType ? 7 : -1);
63
- i0.ɵɵadvance();
64
- i0.ɵɵconditional(option_r2.selected ? 8 : -1);
65
- i0.ɵɵadvance();
66
- i0.ɵɵclassProp("lib-form-input-selector__indicator--on", option_r2.selected);
67
- i0.ɵɵadvance();
68
- i0.ɵɵtextInterpolate1(" ", option_r2.selected ? "check_circle" : "radio_button_unchecked", " ");
69
- } }
70
- function FormInputSelectorComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
71
- i0.ɵɵelementStart(0, "mat-nav-list", 0);
72
- i0.ɵɵrepeaterCreate(1, FormInputSelectorComponent_Conditional_0_For_2_Template, 11, 12, "mat-list-item", 2, _forTrack0);
73
- i0.ɵɵelementEnd();
74
- } if (rf & 2) {
75
- const ctx_r2 = i0.ɵɵnextContext();
76
- i0.ɵɵadvance();
77
- i0.ɵɵrepeater(ctx_r2.options());
78
- } }
79
- function FormInputSelectorComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
80
- i0.ɵɵelement(0, "lib-empty-state", 1);
81
- } }
82
- /**
83
- * Single-select list that lets a user pick one form input by id. Child of
84
- * `t-dynamic-data-edit`, which supplies the field label, hint, and validation
85
- * errors — so this component owns only the selectable list content.
86
- *
87
- * Selecting an already-selected input deselects it (emits `undefined`). While a
88
- * value is set the list collapses to the selected-only view.
89
- */
90
- class FormInputSelectorComponent {
91
- constructor() {
92
- /**
93
- * Validation errors passed down by the parent editor. Retained on the contract
94
- * (the parent binds `[errors]`) but not rendered here — `t-dynamic-data-edit`
95
- * owns error display, so rendering them again would double them.
96
- */
97
- this.errors = input([], ...(ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []));
98
- /** Currently selected input id, or `undefined` when nothing is selected. */
99
- this.value = input(undefined, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
100
- /** Available form inputs to choose from. */
101
- this.formInputs = input([], ...(ngDevMode ? [{ debugName: "formInputs" }] : /* istanbul ignore next */ []));
102
- /** Disable user interaction. */
103
- this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
104
- /** Optional id attribute supplied by the parent editor. */
105
- this.id = input(undefined, ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
106
- /** Emits the chosen input id, or `undefined` when the selection is cleared. */
107
- this.change = output();
108
- /**
109
- * The list to render: the selected-only view once a value is set, otherwise
110
- * every available input. Each entry carries its derived icon, sub-item flag,
111
- * and accessible label.
112
- */
113
- this.options = computed(() => {
114
- const value = this.value();
115
- const inputs = this.formInputs();
116
- const selected = value === undefined ? undefined : inputs.find((item) => item.id === value);
117
- const source = selected ? [selected] : inputs;
118
- return source.map((item) => this.#toOption(item, item.id === value));
119
- }, ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
120
- }
121
- /** Toggle selection: re-selecting the current value clears it. */
122
- select(id) {
123
- if (this.disabled()) {
124
- return;
125
- }
126
- this.change.emit(this.value() === id ? undefined : id);
127
- }
128
- #toOption(item, selected) {
129
- const isSubItem = Boolean(item.multipleInputInEditId);
130
- const dataType = item.dataType ?? '';
131
- const kind = isSubItem ? 'Sub-item input' : 'Primary input';
132
- const dataTypeLabel = dataType ? `, ${dataType}` : '';
133
- return {
134
- input: item,
135
- id: item.id,
136
- label: item.label,
137
- icon: getInputIcon(item.element),
138
- dataType,
139
- isSubItem,
140
- selected,
141
- ariaLabel: `${item.label}. ${kind}${dataTypeLabel}.${selected ? ' Selected.' : ''}`,
142
- };
143
- }
144
- static { this.ɵfac = function FormInputSelectorComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FormInputSelectorComponent)(); }; }
145
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormInputSelectorComponent, selectors: [["lib-form-input-selector"]], hostAttrs: [1, "lib-form-input-selector"], hostVars: 1, hostBindings: function FormInputSelectorComponent_HostBindings(rf, ctx) { if (rf & 2) {
146
- i0.ɵɵattribute("id", ctx.id());
147
- } }, inputs: { errors: [1, "errors"], value: [1, "value"], formInputs: [1, "formInputs"], disabled: [1, "disabled"], id: [1, "id"] }, outputs: { change: "change" }, decls: 2, vars: 1, consts: [["role", "listbox", "aria-label", "Form input selector", 1, "lib-form-input-selector__list"], ["icon", "search_off", "message", "No form inputs found"], ["matRipple", "", 1, "lib-form-input-selector__item", 3, "disabled", "activated"], ["matRipple", "", 1, "lib-form-input-selector__item", 3, "click", "disabled", "activated"], ["matListItemAvatar", "", "aria-hidden", "true", 1, "lib-form-input-selector__avatar"], ["matListItemTitle", "", 1, "lib-form-input-selector__title"], ["matListItemLine", "", 1, "lib-form-input-selector__meta-text"], [1, "lib-form-input-selector__selected-hint"], ["matListItemMeta", "", "aria-hidden", "true", 1, "lib-form-input-selector__indicator"]], template: function FormInputSelectorComponent_Template(rf, ctx) { if (rf & 1) {
148
- i0.ɵɵconditionalCreate(0, FormInputSelectorComponent_Conditional_0_Template, 3, 0, "mat-nav-list", 0)(1, FormInputSelectorComponent_Conditional_1_Template, 1, 0, "lib-empty-state", 1);
149
- } if (rf & 2) {
150
- i0.ɵɵconditional(ctx.options().length ? 0 : 1);
151
- } }, dependencies: [MatIconModule, i3.MatIcon, MatListModule, i6.MatNavList, i6.MatListItem, i6.MatListItemAvatar, i6.MatListItemLine, i6.MatListItemTitle, i6.MatListItemMeta, MatRippleModule, i7.MatRipple, EmptyStateComponent], styles: ["[_nghost-%COMP%]{display:block;color:var(--lib-forms-on-surface)}.lib-form-input-selector__list[_ngcontent-%COMP%]{width:100%;box-sizing:border-box;max-height:65vh;overflow:auto;padding:.5rem;background:var(--lib-forms-surface);border:1px solid color-mix(in srgb,var(--lib-forms-outline) 12%,transparent);border-radius:var(--lib-forms-radius-lg, 12px)}.lib-form-input-selector__item[_ngcontent-%COMP%]{min-height:3rem;height:fit-content;margin-bottom:.25rem;border-radius:var(--lib-forms-radius-sm, 8px);cursor:pointer;transition:background-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing)}.lib-form-input-selector__item[_ngcontent-%COMP%]:last-child{margin-bottom:0}.lib-form-input-selector__item[_ngcontent-%COMP%]:hover{background:color-mix(in srgb,var(--lib-forms-primary) 6%,transparent)}.lib-form-input-selector__item[_ngcontent-%COMP%]:focus-visible{outline:none;box-shadow:0 0 0 2px color-mix(in srgb,var(--lib-forms-primary) 25%,transparent)}.lib-form-input-selector__item.mdc-list-item--activated[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--lib-forms-primary) 12%,transparent)}mat-icon.lib-form-input-selector__avatar[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;border-radius:var(--lib-forms-radius-sm, 8px);font-size:1.5rem;line-height:1;background:var(--lib-forms-surface-container-high);color:var(--lib-forms-on-surface-variant)}.lib-form-input-selector__title[_ngcontent-%COMP%]{font-size:.9375rem;font-weight:600}.lib-form-input-selector__meta-text[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.5rem;font-size:.75rem;color:var(--lib-forms-on-surface-variant)}.lib-form-input-selector__selected-hint[_ngcontent-%COMP%]{font-size:.625rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--lib-forms-primary)}.lib-form-input-selector__indicator[_ngcontent-%COMP%]{color:var(--lib-forms-on-surface-variant)}.lib-form-input-selector__indicator--on[_ngcontent-%COMP%]{color:var(--lib-forms-primary)}"], changeDetection: 0 }); }
152
- }
153
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormInputSelectorComponent, [{
154
- type: Component,
155
- args: [{ selector: 'lib-form-input-selector', imports: [MatIconModule, MatListModule, MatRippleModule, EmptyStateComponent], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, host: {
156
- 'class': 'lib-form-input-selector',
157
- '[attr.id]': 'id()',
158
- }, template: "@if (options().length) {\n<mat-nav-list class=\"lib-form-input-selector__list\" role=\"listbox\" aria-label=\"Form input selector\">\n @for (option of options(); track option.id) {\n <mat-list-item\n class=\"lib-form-input-selector__item\"\n matRipple\n [disabled]=\"disabled()\"\n [activated]=\"option.selected\"\n [attr.aria-selected]=\"option.selected\"\n [attr.aria-label]=\"option.ariaLabel\"\n (click)=\"select(option.id)\">\n <mat-icon matListItemAvatar class=\"lib-form-input-selector__avatar\" aria-hidden=\"true\">\n {{ option.icon }}\n </mat-icon>\n <span matListItemTitle class=\"lib-form-input-selector__title\">{{ option.label }}</span>\n <span matListItemLine class=\"lib-form-input-selector__meta-text\">\n @if (option.isSubItem) {\n <span>Sub-item</span>\n }\n @if (option.dataType) {\n <span>{{ option.dataType }}</span>\n }\n @if (option.selected) {\n <span class=\"lib-form-input-selector__selected-hint\">Selected</span>\n }\n </span>\n <mat-icon\n matListItemMeta\n class=\"lib-form-input-selector__indicator\"\n [class.lib-form-input-selector__indicator--on]=\"option.selected\"\n aria-hidden=\"true\">\n {{ option.selected ? 'check_circle' : 'radio_button_unchecked' }}\n </mat-icon>\n </mat-list-item>\n }\n</mat-nav-list>\n} @else {\n<lib-empty-state icon=\"search_off\" message=\"No form inputs found\" />\n}\n", styles: [":host{display:block;color:var(--lib-forms-on-surface)}.lib-form-input-selector__list{width:100%;box-sizing:border-box;max-height:65vh;overflow:auto;padding:.5rem;background:var(--lib-forms-surface);border:1px solid color-mix(in srgb,var(--lib-forms-outline) 12%,transparent);border-radius:var(--lib-forms-radius-lg, 12px)}.lib-form-input-selector__item{min-height:3rem;height:fit-content;margin-bottom:.25rem;border-radius:var(--lib-forms-radius-sm, 8px);cursor:pointer;transition:background-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing)}.lib-form-input-selector__item:last-child{margin-bottom:0}.lib-form-input-selector__item:hover{background:color-mix(in srgb,var(--lib-forms-primary) 6%,transparent)}.lib-form-input-selector__item:focus-visible{outline:none;box-shadow:0 0 0 2px color-mix(in srgb,var(--lib-forms-primary) 25%,transparent)}.lib-form-input-selector__item.mdc-list-item--activated{background:color-mix(in srgb,var(--lib-forms-primary) 12%,transparent)}mat-icon.lib-form-input-selector__avatar{display:inline-flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;border-radius:var(--lib-forms-radius-sm, 8px);font-size:1.5rem;line-height:1;background:var(--lib-forms-surface-container-high);color:var(--lib-forms-on-surface-variant)}.lib-form-input-selector__title{font-size:.9375rem;font-weight:600}.lib-form-input-selector__meta-text{display:flex;flex-wrap:wrap;gap:.5rem;font-size:.75rem;color:var(--lib-forms-on-surface-variant)}.lib-form-input-selector__selected-hint{font-size:.625rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--lib-forms-primary)}.lib-form-input-selector__indicator{color:var(--lib-forms-on-surface-variant)}.lib-form-input-selector__indicator--on{color:var(--lib-forms-primary)}\n"] }]
159
- }], null, { errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], formInputs: [{ type: i0.Input, args: [{ isSignal: true, alias: "formInputs", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], change: [{ type: i0.Output, args: ["change"] }] }); })();
160
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FormInputSelectorComponent, { className: "FormInputSelectorComponent", filePath: "lib/components/t-dynamic-data-edit/elements/form-input-selector/form-input-selector.component.ts", lineNumber: 49 }); })();
161
-
162
- export { FormInputSelectorComponent };
163
- //# sourceMappingURL=ngx-t-forms-form-input-selector.component-BysF2WY-.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ngx-t-forms-form-input-selector.component-BysF2WY-.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/form-input-selector/form-input-selector.component.html","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/form-input-selector/form-input-selector.component.ts"],"sourcesContent":["@if (options().length) {\n<mat-nav-list class=\"lib-form-input-selector__list\" role=\"listbox\" aria-label=\"Form input selector\">\n @for (option of options(); track option.id) {\n <mat-list-item\n class=\"lib-form-input-selector__item\"\n matRipple\n [disabled]=\"disabled()\"\n [activated]=\"option.selected\"\n [attr.aria-selected]=\"option.selected\"\n [attr.aria-label]=\"option.ariaLabel\"\n (click)=\"select(option.id)\">\n <mat-icon matListItemAvatar class=\"lib-form-input-selector__avatar\" aria-hidden=\"true\">\n {{ option.icon }}\n </mat-icon>\n <span matListItemTitle class=\"lib-form-input-selector__title\">{{ option.label }}</span>\n <span matListItemLine class=\"lib-form-input-selector__meta-text\">\n @if (option.isSubItem) {\n <span>Sub-item</span>\n }\n @if (option.dataType) {\n <span>{{ option.dataType }}</span>\n }\n @if (option.selected) {\n <span class=\"lib-form-input-selector__selected-hint\">Selected</span>\n }\n </span>\n <mat-icon\n matListItemMeta\n class=\"lib-form-input-selector__indicator\"\n [class.lib-form-input-selector__indicator--on]=\"option.selected\"\n aria-hidden=\"true\">\n {{ option.selected ? 'check_circle' : 'radio_button_unchecked' }}\n </mat-icon>\n </mat-list-item>\n }\n</mat-nav-list>\n} @else {\n<lib-empty-state icon=\"search_off\" message=\"No form inputs found\" />\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';\nimport { MatListModule } from '@angular/material/list';\nimport { MatRippleModule } from '@angular/material/core';\nimport type { FormColumnInputs } from 'ngx-t-forms-types';\nimport { getInputIcon } from '../../../../shared/functions/getInputIcon';\nimport type { IConfigElementError } from '../../t-dynamic-data-edit.component';\nimport { EmptyStateComponent } from '../_shared/empty-state/empty-state.component';\n\n/** A form input decorated with the derived view-model fields the list renders. */\ninterface FormInputOption {\n readonly input: FormColumnInputs;\n readonly id: string;\n readonly label: string;\n readonly icon: string;\n readonly dataType: string;\n readonly isSubItem: boolean;\n readonly selected: boolean;\n readonly ariaLabel: string;\n}\n\n/**\n * Single-select list that lets a user pick one form input by id. Child of\n * `t-dynamic-data-edit`, which supplies the field label, hint, and validation\n * errors — so this component owns only the selectable list content.\n *\n * Selecting an already-selected input deselects it (emits `undefined`). While a\n * value is set the list collapses to the selected-only view.\n */\n@Component({\n selector: 'lib-form-input-selector',\n imports: [MatIconModule, MatListModule, MatRippleModule, EmptyStateComponent],\n templateUrl: './form-input-selector.component.html',\n styleUrl: './form-input-selector.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n 'class': 'lib-form-input-selector',\n '[attr.id]': 'id()',\n },\n})\nexport class FormInputSelectorComponent {\n /**\n * Validation errors passed down by the parent editor. Retained on the contract\n * (the parent binds `[errors]`) but not rendered here — `t-dynamic-data-edit`\n * owns error display, so rendering them again would double them.\n */\n readonly errors = input<IConfigElementError[] | undefined>([]);\n\n /** Currently selected input id, or `undefined` when nothing is selected. */\n readonly value = input<string | undefined>(undefined);\n\n /** Available form inputs to choose from. */\n readonly formInputs = input<readonly FormColumnInputs[]>([]);\n\n /** Disable user interaction. */\n readonly disabled = input<boolean>(false);\n\n /** Optional id attribute supplied by the parent editor. */\n readonly id = input<string | undefined>(undefined);\n\n /** Emits the chosen input id, or `undefined` when the selection is cleared. */\n readonly change = output<string | undefined>();\n\n /**\n * The list to render: the selected-only view once a value is set, otherwise\n * every available input. Each entry carries its derived icon, sub-item flag,\n * and accessible label.\n */\n protected readonly options = computed<readonly FormInputOption[]>(() => {\n const value = this.value();\n const inputs = this.formInputs();\n const selected = value === undefined ? undefined : inputs.find((item) => item.id === value);\n const source = selected ? [selected] : inputs;\n return source.map((item) => this.#toOption(item, item.id === value));\n });\n\n /** Toggle selection: re-selecting the current value clears it. */\n protected select(id: string): void {\n if (this.disabled()) {\n return;\n }\n this.change.emit(this.value() === id ? undefined : id);\n }\n\n #toOption(item: FormColumnInputs, selected: boolean): FormInputOption {\n const isSubItem = Boolean(item.multipleInputInEditId);\n const dataType = item.dataType ?? '';\n const kind = isSubItem ? 'Sub-item input' : 'Primary input';\n const dataTypeLabel = dataType ? `, ${dataType}` : '';\n return {\n input: item,\n id: item.id,\n label: item.label,\n icon: getInputIcon(item.element),\n dataType,\n isSubItem,\n selected,\n ariaLabel: `${item.label}. ${kind}${dataTypeLabel}.${selected ? ' Selected.' : ''}`,\n };\n }\n}\n"],"names":["i1","i2"],"mappings":";;;;;;;;;;;;;IAiBM,EAAA,CAAA,cAAA,CAAA,CAAA,EAAA,MAAA,CAAM;IAAA,EAAA,CAAA,MAAA,CAAA,CAAA,EAAA,UAAA,CAAQ;IAAA,EAAA,CAAA,YAAA,EAAO;;;IAGrB,EAAA,CAAA,cAAA,CAAA,CAAA,EAAA,MAAA,CAAM;IAAA,EAAA,CAAA,MAAA,CAAA,CAAA,CAAqB;IAAA,EAAA,CAAA,YAAA,EAAO;;;IAA5B,EAAA,CAAA,SAAA,EAAqB;IAArB,EAAA,CAAA,iBAAA,CAAA,SAAA,C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f;;YApCT,EAAA,CAAA,aAAA,CAAA,GAAA,CAAA,OAAA,EAAA,CAAA,MAAA,GAAA,CAAA,GAAA,CAAA,CAsCC;ACAW,QAAA,CAAA,CAAA,CAAA,EAAA,YAAA,EAAA,CAAA,aAAa,EAAAA,EAAA,CAAA,OAAA,EAAE,aAAa,EAAAC,EAAA,CAAA,UAAA,EAAAA,EAAA,CAAA,WAAA,EAAAA,EAAA,CAAA,iBAAA,EAAAA,EAAA,CAAA,eAAA,EAAAA,EAAA,CAAA,gBAAA,EAAAA,EAAA,CAAA,eAAA,EAAE,eAAe,gBAAE,mBAAmB,CAAA,EAAA,MAAA,EAAA,CAAA,++DAAA,CAAA,EAAA,eAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;iFAUjE,0BAA0B,EAAA,CAAA;cAZtC,SAAS;AACE,QAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,yBAAyB,WAC1B,CAAC,aAAa,EAAE,aAAa,EAAE,eAAe,EAAE,mBAAmB,CAAC,EAAA,eAAA,EAG5D,uBAAuB,CAAC,MAAM,iBAChC,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EACnC;AACJ,oBAAA,OAAO,EAAE,yBAAyB;AAClC,oBAAA,WAAW,EAAE,MAAM;AACpB,iBAAA,EAAA,QAAA,EAAA,o7CAAA,EAAA,MAAA,EAAA,CAAA,kwDAAA,CAAA,EAAA;;kFAEU,0BAA0B,EAAA,EAAA,SAAA,EAAA,4BAAA,EAAA,QAAA,EAAA,kGAAA,EAAA,UAAA,EAAA,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA,GAAA;;;;"}
@@ -1,28 +0,0 @@
1
- import { AsyncPipe } from '@angular/common';
2
- import * as i0 from '@angular/core';
3
- import { inject, ChangeDetectionStrategy, Component } from '@angular/core';
4
- import { F as FormsStoreService, b as TDynamicDataViewComponent } from './ngx-t-forms-ngx-t-forms-D7kDvkTZ.mjs';
5
- import { map } from 'rxjs';
6
-
7
- class FormJsonViewComponent {
8
- constructor() {
9
- this.#store = inject(FormsStoreService);
10
- this.form$ = this.#store.selectors.selectFormInEdit$.pipe(map((form) => form?.form));
11
- }
12
- #store;
13
- static { this.ɵfac = function FormJsonViewComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FormJsonViewComponent)(); }; }
14
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormJsonViewComponent, selectors: [["lib-form-json-view"]], decls: 2, vars: 3, consts: [[3, "data"]], template: function FormJsonViewComponent_Template(rf, ctx) { if (rf & 1) {
15
- i0.ɵɵelement(0, "lib-t-dynamic-data-view", 0);
16
- i0.ɵɵpipe(1, "async");
17
- } if (rf & 2) {
18
- i0.ɵɵproperty("data", i0.ɵɵpipeBind1(1, 1, ctx.form$));
19
- } }, dependencies: [TDynamicDataViewComponent, AsyncPipe], styles: ["pre[_ngcontent-%COMP%]{margin:0;border:1px solid var(--lib-forms-outline-variant);background-color:var(--lib-forms-on-surface);padding:10px}code[_ngcontent-%COMP%]{color:#b0e0e6;font-size:.875em}.token.punctuation[_ngcontent-%COMP%]{color:#999}.token.property[_ngcontent-%COMP%]{color:#905}.token.string[_ngcontent-%COMP%]{color:var(--lib-forms-code-string)}.token.number[_ngcontent-%COMP%]{color:var(--lib-forms-code-number)}.token.boolean[_ngcontent-%COMP%]{color:var(--lib-forms-code-boolean)}.token.keyword[_ngcontent-%COMP%]{color:#07a}"], changeDetection: 0 }); }
20
- }
21
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormJsonViewComponent, [{
22
- type: Component,
23
- args: [{ selector: 'lib-form-json-view', imports: [AsyncPipe, TDynamicDataViewComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "\r\n<lib-t-dynamic-data-view [data]=\"form$|async\"></lib-t-dynamic-data-view>", styles: ["pre{margin:0;border:1px solid var(--lib-forms-outline-variant);background-color:var(--lib-forms-on-surface);padding:10px}code{color:#b0e0e6;font-size:.875em}.token.punctuation{color:#999}.token.property{color:#905}.token.string{color:var(--lib-forms-code-string)}.token.number{color:var(--lib-forms-code-number)}.token.boolean{color:var(--lib-forms-code-boolean)}.token.keyword{color:#07a}\n"] }]
24
- }], null, null); })();
25
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FormJsonViewComponent, { className: "FormJsonViewComponent", filePath: "lib/components/form-builder/elements/form-json-view/form-json-view.component.ts", lineNumber: 16 }); })();
26
-
27
- export { FormJsonViewComponent };
28
- //# sourceMappingURL=ngx-t-forms-form-json-view.component-DpU3ZTiS.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ngx-t-forms-form-json-view.component-DpU3ZTiS.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/form-json-view/form-json-view.component.ts","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/form-json-view/form-json-view.component.html"],"sourcesContent":["import { AsyncPipe } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component, inject } from '@angular/core';\r\n\r\nimport { FormsStoreService } from '../../../forms/store/forms-store.service';\r\nimport { TDynamicDataViewComponent } from '../../../t-dynamic-data-view/t-dynamic-data-view.component';\r\n\r\nimport { map } from 'rxjs';\r\n\r\n@Component({\r\n selector: 'lib-form-json-view',\r\n imports: [AsyncPipe, TDynamicDataViewComponent],\r\n templateUrl: './form-json-view.component.html',\r\n styleUrl: './form-json-view.component.scss',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class FormJsonViewComponent {\r\n readonly #store = inject(FormsStoreService);\r\n\r\n protected readonly form$ = this.#store.selectors.selectFormInEdit$.pipe(\r\n map((form) => form?.form),\r\n );\r\n}\r\n","\r\n<lib-t-dynamic-data-view [data]=\"form$|async\"></lib-t-dynamic-data-view>"],"names":[],"mappings":";;;;;;MAea,qBAAqB,CAAA;AAPlC,IAAA,WAAA,GAAA;AAQW,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,iBAAiB,CAAC;Q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- import * as i0 from '@angular/core';
2
- import { input, output, signal, computed, effect, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { JsonPipe } from '@angular/common';
4
- import { MatButtonModule } from '@angular/material/button';
5
- import * as i3 from '@angular/material/button-toggle';
6
- import { MatButtonToggleModule } from '@angular/material/button-toggle';
7
- import * as i3$1 from '@angular/material/icon';
8
- import { MatIconModule } from '@angular/material/icon';
9
- import * as i5 from '@angular/material/tooltip';
10
- import { MatTooltipModule } from '@angular/material/tooltip';
11
-
12
- /**
13
- * Parser/serialiser for the `projectFormData` submission expression.
14
- *
15
- * At runtime the expression is consumed by `destructureObject({ $formValue: form }, expr)`,
16
- * so the only token available is `$formValue` — the entire submitted form. The
17
- * sole authoring choice is therefore whether to send the form fields flat or to
18
- * nest the whole payload under one or more named keys. This module bridges that
19
- * raw string and the guided builder's structured model.
20
- */
21
- /** Token that resolves to the entire submitted form payload at runtime. */
22
- const FORM_VALUE_TOKEN = '$formValue';
23
- /** Default envelope: the whole form nested under a `data` key. */
24
- const DEFAULT_PROJECTION = `data:{${FORM_VALUE_TOKEN}}`;
25
- /** Matches a single `alias:{token}` envelope entry. */
26
- const ENVELOPE = /^([^:]+):\{(.+)\}$/;
27
- /**
28
- * Parses a `projectFormData` expression into the guided model (best-effort).
29
- * Unrecognised entries are kept as literal keys so nothing is silently dropped.
30
- */
31
- function parseProjection(expression) {
32
- if (!expression)
33
- return { keys: [] };
34
- const keys = expression
35
- .split(',')
36
- .map((entry) => entry.trim())
37
- .filter(Boolean)
38
- .map((entry) => {
39
- const match = ENVELOPE.exec(entry);
40
- // `alias:{$formValue}` ⇒ alias; a bare token (or any other entry) ⇒ literal key.
41
- return (match?.[1] ?? entry).trim();
42
- })
43
- .filter(Boolean);
44
- return { keys };
45
- }
46
- /** Serialises the guided model back to a `projectFormData` expression. */
47
- function serializeProjection(model) {
48
- return model.keys
49
- .map((key) => key.trim())
50
- .filter(Boolean)
51
- .map((key) => `${key}:{${FORM_VALUE_TOKEN}}`)
52
- .join(', ');
53
- }
54
-
55
- function FormPayloadProjectionComponent_Conditional_15_For_4_Template(rf, ctx) { if (rf & 1) {
56
- const _r2 = i0.ɵɵgetCurrentView();
57
- i0.ɵɵelementStart(0, "div", 14)(1, "span", 16);
58
- i0.ɵɵtext(2, "{");
59
- i0.ɵɵelementEnd();
60
- i0.ɵɵelementStart(3, "input", 17);
61
- i0.ɵɵlistener("input", function FormPayloadProjectionComponent_Conditional_15_For_4_Template_input_input_3_listener($event) { const ɵ$index_31_r3 = i0.ɵɵrestoreView(_r2).$index; const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.updateKey(ɵ$index_31_r3, ctx_r3.inputValue($event))); });
62
- i0.ɵɵelementEnd();
63
- i0.ɵɵelementStart(4, "span", 18);
64
- i0.ɵɵtext(5, ": form}");
65
- i0.ɵɵelementEnd();
66
- i0.ɵɵelementStart(6, "button", 19);
67
- i0.ɵɵlistener("click", function FormPayloadProjectionComponent_Conditional_15_For_4_Template_button_click_6_listener() { const ɵ$index_31_r3 = i0.ɵɵrestoreView(_r2).$index; const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.removeKey(ɵ$index_31_r3)); });
68
- i0.ɵɵelementStart(7, "mat-icon");
69
- i0.ɵɵtext(8, "close");
70
- i0.ɵɵelementEnd()()();
71
- } if (rf & 2) {
72
- const key_r5 = ctx.$implicit;
73
- const ɵ$index_31_r3 = ctx.$index;
74
- const ctx_r3 = i0.ɵɵnextContext(2);
75
- i0.ɵɵadvance(3);
76
- i0.ɵɵproperty("value", key_r5)("disabled", ctx_r3.disabled());
77
- i0.ɵɵattribute("aria-label", "Wrapper key " + (ɵ$index_31_r3 + 1));
78
- i0.ɵɵadvance(3);
79
- i0.ɵɵproperty("disabled", ctx_r3.disabled());
80
- i0.ɵɵattribute("aria-label", "Remove wrapper key " + (ɵ$index_31_r3 + 1));
81
- } }
82
- function FormPayloadProjectionComponent_Conditional_15_Template(rf, ctx) { if (rf & 1) {
83
- const _r1 = i0.ɵɵgetCurrentView();
84
- i0.ɵɵelementStart(0, "div", 6)(1, "span", 10);
85
- i0.ɵɵtext(2, "Wrap the form under");
86
- i0.ɵɵelementEnd();
87
- i0.ɵɵrepeaterCreate(3, FormPayloadProjectionComponent_Conditional_15_For_4_Template, 9, 5, "div", 14, i0.ɵɵcomponentInstance().trackByIndex, true);
88
- i0.ɵɵelementStart(5, "button", 15);
89
- i0.ɵɵlistener("click", function FormPayloadProjectionComponent_Conditional_15_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r1); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.addKey()); });
90
- i0.ɵɵelementStart(6, "mat-icon");
91
- i0.ɵɵtext(7, "add");
92
- i0.ɵɵelementEnd();
93
- i0.ɵɵtext(8, " Add another key ");
94
- i0.ɵɵelementEnd()();
95
- } if (rf & 2) {
96
- const ctx_r3 = i0.ɵɵnextContext();
97
- i0.ɵɵadvance(3);
98
- i0.ɵɵrepeater(ctx_r3.keys());
99
- i0.ɵɵadvance(2);
100
- i0.ɵɵproperty("disabled", ctx_r3.disabled());
101
- } }
102
- function FormPayloadProjectionComponent_Conditional_16_Template(rf, ctx) { if (rf & 1) {
103
- i0.ɵɵelementStart(0, "p", 7)(1, "mat-icon", 2);
104
- i0.ɵɵtext(2, "info");
105
- i0.ɵɵelementEnd();
106
- i0.ɵɵelementStart(3, "span");
107
- i0.ɵɵtext(4, "Every field is sent at the top level of the request body.");
108
- i0.ɵɵelementEnd()();
109
- } }
110
- function FormPayloadProjectionComponent_For_29_Template(rf, ctx) { if (rf & 1) {
111
- i0.ɵɵelementStart(0, "p", 13);
112
- i0.ɵɵtext(1);
113
- i0.ɵɵelementEnd();
114
- } if (rf & 2) {
115
- const error_r6 = ctx.$implicit;
116
- i0.ɵɵadvance();
117
- i0.ɵɵtextInterpolate(error_r6.message);
118
- } }
119
- /**
120
- * Guided editor for a form's `projectFormData` submission expression.
121
- *
122
- * Replaces the raw `data:{$formValue}` text field with a no-code chooser: send
123
- * the form fields flat, or wrap the whole payload under one or more named keys —
124
- * with a live preview of the resulting JSON shape. The runtime engine only
125
- * exposes the whole form (`$formValue`), so the model is intentionally a simple
126
- * list of envelope keys (see {@link parseProjection}).
127
- *
128
- * @example
129
- * <lib-form-payload-projection [value]="expr()" [formInputs]="inputs()"
130
- * (valueChanged)="onExpr($event)" />
131
- */
132
- class FormPayloadProjectionComponent {
133
- constructor() {
134
- /** Current `projectFormData` expression. */
135
- this.value = input('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
136
- /** Whether the editor is read-only. */
137
- this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
138
- /** The form's inputs — used to sketch the payload shape in the preview. */
139
- this.formInputs = input([], ...(ngDevMode ? [{ debugName: "formInputs" }] : /* istanbul ignore next */ []));
140
- /** Validation errors surfaced by the parent for display. */
141
- this.errors = input([], ...(ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []));
142
- /** Emits the serialised expression whenever the user changes the mapping. */
143
- this.valueChanged = output();
144
- /** Envelope keys the whole form is nested under. Empty ⇒ sent flat. */
145
- this.keys = signal([], ...(ngDevMode ? [{ debugName: "keys" }] : /* istanbul ignore next */ []));
146
- /** 'flat' = top-level fields; 'wrap' = nested under key(s). */
147
- this.mode = computed(() => (this.keys().length > 0 ? 'wrap' : 'flat'), ...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
148
- /**
149
- * The last expression we synced from / emitted. Guards the input bridge so our
150
- * own round-tripped emissions don't clobber in-progress edits (the parent
151
- * debounces and echoes the value back through `value`).
152
- */
153
- this.#lastSynced = undefined;
154
- this.valueBridge = effect(() => {
155
- const incoming = this.value() ?? '';
156
- if (incoming === this.#lastSynced)
157
- return;
158
- this.#lastSynced = incoming;
159
- this.keys.set([...parseProjection(incoming).keys]);
160
- }, ...(ngDevMode ? [{ debugName: "valueBridge" }] : /* istanbul ignore next */ []));
161
- /** A sample of the form payload (field name → placeholder) for the preview. */
162
- this.#sampleForm = computed(() => {
163
- const sample = {};
164
- for (const column of this.formInputs()) {
165
- if (column.multipleInputInEditId || !column.formControlName)
166
- continue;
167
- sample[column.formControlName] = '…';
168
- if (Object.keys(sample).length >= 8)
169
- break;
170
- }
171
- if (Object.keys(sample).length === 0)
172
- sample['field'] = '…';
173
- return sample;
174
- }, ...(ngDevMode ? [{ debugName: "#sampleForm" }] : /* istanbul ignore next */ []));
175
- /** Live preview of the JSON shape sent to the endpoint. */
176
- this.preview = computed(() => {
177
- const keys = this.keys().map((k) => k.trim()).filter(Boolean);
178
- const sample = this.#sampleForm();
179
- if (keys.length === 0)
180
- return sample;
181
- const out = {};
182
- for (const key of keys)
183
- out[key] = sample;
184
- return out;
185
- }, ...(ngDevMode ? [{ debugName: "preview" }] : /* istanbul ignore next */ []));
186
- }
187
- /**
188
- * The last expression we synced from / emitted. Guards the input bridge so our
189
- * own round-tripped emissions don't clobber in-progress edits (the parent
190
- * debounces and echoes the value back through `value`).
191
- */
192
- #lastSynced;
193
- /** A sample of the form payload (field name → placeholder) for the preview. */
194
- #sampleForm;
195
- /** Switches between flat and wrapped modes (seeding a default key on first wrap). */
196
- setMode(mode) {
197
- if (mode === 'flat') {
198
- this.#apply([]);
199
- return;
200
- }
201
- if (this.keys().length === 0)
202
- this.#apply(['data']);
203
- }
204
- addKey() {
205
- this.#apply([...this.keys(), '']);
206
- }
207
- updateKey(index, key) {
208
- this.#apply(this.keys().map((k, i) => (i === index ? key : k)));
209
- }
210
- removeKey(index) {
211
- this.#apply(this.keys().filter((_, i) => i !== index));
212
- }
213
- /** Reads a native input's value from a DOM event (keeps the template `any`-free). */
214
- inputValue(event) {
215
- return event.target.value;
216
- }
217
- trackByIndex(index) {
218
- return index;
219
- }
220
- /** Reset to the recommended default (`data:{$formValue}`). */
221
- resetToDefault() {
222
- this.#apply([...parseProjection(DEFAULT_PROJECTION).keys]);
223
- }
224
- #apply(keys) {
225
- if (this.disabled())
226
- return;
227
- this.keys.set(keys);
228
- const serialized = serializeProjection({ keys });
229
- // Pre-record so the echoed value (see valueBridge) is ignored, preserving
230
- // empty in-progress key rows that serialise away.
231
- this.#lastSynced = serialized;
232
- this.valueChanged.emit(serialized);
233
- }
234
- static { this.ɵfac = function FormPayloadProjectionComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FormPayloadProjectionComponent)(); }; }
235
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormPayloadProjectionComponent, selectors: [["lib-form-payload-projection"]], hostAttrs: [1, "lib-form-payload-projection"], inputs: { value: [1, "value"], disabled: [1, "disabled"], formInputs: [1, "formInputs"], errors: [1, "errors"] }, outputs: { valueChanged: "valueChanged" }, decls: 30, vars: 7, consts: [[1, "projection"], [1, "hint-line"], [1, "info-icon"], ["hideSingleSelectionIndicator", "", "aria-label", "Payload shape", 1, "mode-toggle", 3, "change", "value", "disabled"], ["value", "flat", "matTooltip", "Send each field at the top level"], ["value", "wrap", "matTooltip", "Nest the whole form under a key"], [1, "keys"], [1, "hint-line", "subtle"], [1, "preview"], [1, "preview-head"], [1, "field-label"], ["type", "button", "matTooltip", "Reset to the recommended shape", 1, "link-btn", 3, "click", "disabled"], [1, "preview-json"], [1, "error-line"], [1, "key-row"], ["type", "button", 1, "link-btn", 3, "click", "disabled"], ["aria-hidden", "true", 1, "key-prefix"], ["placeholder", "e.g. data, payload", 1, "key-input", 3, "input", "value", "disabled"], ["aria-hidden", "true", 1, "key-suffix"], ["type", "button", "matTooltip", "Remove key", 1, "key-remove", 3, "click", "disabled"]], template: function FormPayloadProjectionComponent_Template(rf, ctx) { if (rf & 1) {
236
- i0.ɵɵelementStart(0, "div", 0)(1, "p", 1)(2, "mat-icon", 2);
237
- i0.ɵɵtext(3, "help_outline");
238
- i0.ɵɵelementEnd();
239
- i0.ɵɵelementStart(4, "span");
240
- i0.ɵɵtext(5, "Choose how the submitted form is shaped before it is sent to the endpoint.");
241
- i0.ɵɵelementEnd()();
242
- i0.ɵɵelementStart(6, "mat-button-toggle-group", 3);
243
- i0.ɵɵlistener("change", function FormPayloadProjectionComponent_Template_mat_button_toggle_group_change_6_listener($event) { return ctx.setMode($event.value); });
244
- i0.ɵɵelementStart(7, "mat-button-toggle", 4)(8, "mat-icon");
245
- i0.ɵɵtext(9, "list");
246
- i0.ɵɵelementEnd();
247
- i0.ɵɵtext(10, " Top level ");
248
- i0.ɵɵelementEnd();
249
- i0.ɵɵelementStart(11, "mat-button-toggle", 5)(12, "mat-icon");
250
- i0.ɵɵtext(13, "data_object");
251
- i0.ɵɵelementEnd();
252
- i0.ɵɵtext(14, " Wrap under key ");
253
- i0.ɵɵelementEnd()();
254
- i0.ɵɵconditionalCreate(15, FormPayloadProjectionComponent_Conditional_15_Template, 9, 1, "div", 6)(16, FormPayloadProjectionComponent_Conditional_16_Template, 5, 0, "p", 7);
255
- i0.ɵɵelementStart(17, "div", 8)(18, "div", 9)(19, "span", 10);
256
- i0.ɵɵtext(20, "Sent to the endpoint");
257
- i0.ɵɵelementEnd();
258
- i0.ɵɵelementStart(21, "button", 11);
259
- i0.ɵɵlistener("click", function FormPayloadProjectionComponent_Template_button_click_21_listener() { return ctx.resetToDefault(); });
260
- i0.ɵɵelementStart(22, "mat-icon");
261
- i0.ɵɵtext(23, "restart_alt");
262
- i0.ɵɵelementEnd();
263
- i0.ɵɵtext(24, " Reset ");
264
- i0.ɵɵelementEnd()();
265
- i0.ɵɵelementStart(25, "pre", 12);
266
- i0.ɵɵtext(26);
267
- i0.ɵɵpipe(27, "json");
268
- i0.ɵɵelementEnd()();
269
- i0.ɵɵrepeaterCreate(28, FormPayloadProjectionComponent_For_29_Template, 2, 1, "p", 13, i0.ɵɵrepeaterTrackByIndex);
270
- i0.ɵɵelementEnd();
271
- } if (rf & 2) {
272
- i0.ɵɵadvance(6);
273
- i0.ɵɵproperty("value", ctx.mode())("disabled", ctx.disabled());
274
- i0.ɵɵadvance(9);
275
- i0.ɵɵconditional(ctx.mode() === "wrap" ? 15 : 16);
276
- i0.ɵɵadvance(6);
277
- i0.ɵɵproperty("disabled", ctx.disabled());
278
- i0.ɵɵadvance(5);
279
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(27, 5, ctx.preview()));
280
- i0.ɵɵadvance(2);
281
- i0.ɵɵrepeater(ctx.errors());
282
- } }, dependencies: [MatButtonModule, MatButtonToggleModule, i3.MatButtonToggleGroup, i3.MatButtonToggle, MatIconModule, i3$1.MatIcon, MatTooltipModule, i5.MatTooltip, JsonPipe], styles: ["[_nghost-%COMP%]{display:block}.projection[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.hint-line[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;margin:0;font-size:.875rem;color:var(--lib-forms-on-surface-variant)}.hint-line.subtle[_ngcontent-%COMP%]{opacity:.85}.info-icon[_ngcontent-%COMP%]{font-size:1.125rem;width:1.125rem;height:1.125rem;color:var(--lib-forms-primary)}.field-label[_ngcontent-%COMP%]{font-size:.625rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--lib-forms-on-surface-variant)}.mode-toggle[_ngcontent-%COMP%]{align-self:flex-start;border-radius:8px}.keys[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem}.key-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.key-prefix[_ngcontent-%COMP%], .key-suffix[_ngcontent-%COMP%]{font-family:var(--lib-forms-font-mono, monospace);font-size:.8125rem;color:var(--lib-forms-on-surface-variant);flex-shrink:0}.key-input[_ngcontent-%COMP%]{flex:1;min-width:0;font:inherit;font-size:.9375rem;padding:.5rem .75rem;color:var(--lib-forms-on-surface);background:var(--lib-forms-surface-container-highest);border:1px solid color-mix(in srgb,var(--lib-forms-outline) 30%,transparent);border-radius:8px;transition:border-color .3s cubic-bezier(.16,1,.3,1)}.key-input[_ngcontent-%COMP%]:focus{outline:none;border-color:var(--lib-forms-primary)}.key-input[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.key-remove[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;flex-shrink:0;border:none;background:transparent;border-radius:8px;color:var(--lib-forms-on-surface-variant);cursor:pointer;transition:color .3s cubic-bezier(.16,1,.3,1)}.key-remove[_ngcontent-%COMP%]:hover:not(:disabled){color:var(--lib-forms-error)}.key-remove[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.key-remove[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:1.125rem;width:1.125rem;height:1.125rem}.link-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.375rem;align-self:flex-start;padding:.25rem 0;border:none;background:transparent;color:var(--lib-forms-primary);font:inherit;font-size:.8125rem;font-weight:500;cursor:pointer}.link-btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.link-btn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:1.125rem;width:1.125rem;height:1.125rem}.preview[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.preview-head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.preview-json[_ngcontent-%COMP%]{margin:0;padding:1rem;font-family:var(--lib-forms-font-mono, monospace);font-size:.8125rem;line-height:1.5;color:var(--lib-forms-on-surface);background:var(--lib-forms-surface-container-highest);border-radius:8px;overflow-x:auto;white-space:pre}.error-line[_ngcontent-%COMP%]{margin:0;font-size:.75rem;color:var(--lib-forms-error)}"], changeDetection: 0 }); }
283
- }
284
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormPayloadProjectionComponent, [{
285
- type: Component,
286
- args: [{ selector: 'lib-form-payload-projection', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, host: { class: 'lib-form-payload-projection' }, imports: [JsonPipe, MatButtonModule, MatButtonToggleModule, MatIconModule, MatTooltipModule], template: "<div class=\"projection\">\n <p class=\"hint-line\">\n <mat-icon class=\"info-icon\">help_outline</mat-icon>\n <span>Choose how the submitted form is shaped before it is sent to the endpoint.</span>\n </p>\n\n <mat-button-toggle-group class=\"mode-toggle\" [value]=\"mode()\" hideSingleSelectionIndicator\n [disabled]=\"disabled()\" (change)=\"setMode($event.value)\" aria-label=\"Payload shape\">\n <mat-button-toggle value=\"flat\" matTooltip=\"Send each field at the top level\">\n <mat-icon>list</mat-icon> Top level\n </mat-button-toggle>\n <mat-button-toggle value=\"wrap\" matTooltip=\"Nest the whole form under a key\">\n <mat-icon>data_object</mat-icon> Wrap under key\n </mat-button-toggle>\n </mat-button-toggle-group>\n\n @if (mode() === 'wrap') {\n <div class=\"keys\">\n <span class=\"field-label\">Wrap the form under</span>\n @for (key of keys(); track trackByIndex($index); let i = $index) {\n <div class=\"key-row\">\n <span class=\"key-prefix\" aria-hidden=\"true\">&#123;</span>\n <input class=\"key-input\" [value]=\"key\" [disabled]=\"disabled()\"\n placeholder=\"e.g. data, payload\" [attr.aria-label]=\"'Wrapper key ' + (i + 1)\"\n (input)=\"updateKey(i, inputValue($event))\">\n <span class=\"key-suffix\" aria-hidden=\"true\">: form&#125;</span>\n <button type=\"button\" class=\"key-remove\" [disabled]=\"disabled()\" matTooltip=\"Remove key\"\n [attr.aria-label]=\"'Remove wrapper key ' + (i + 1)\" (click)=\"removeKey(i)\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n }\n <button type=\"button\" class=\"link-btn\" [disabled]=\"disabled()\" (click)=\"addKey()\">\n <mat-icon>add</mat-icon> Add another key\n </button>\n </div>\n } @else {\n <p class=\"hint-line subtle\">\n <mat-icon class=\"info-icon\">info</mat-icon>\n <span>Every field is sent at the top level of the request body.</span>\n </p>\n }\n\n <div class=\"preview\">\n <div class=\"preview-head\">\n <span class=\"field-label\">Sent to the endpoint</span>\n <button type=\"button\" class=\"link-btn\" [disabled]=\"disabled()\" matTooltip=\"Reset to the recommended shape\"\n (click)=\"resetToDefault()\">\n <mat-icon>restart_alt</mat-icon> Reset\n </button>\n </div>\n <pre class=\"preview-json\">{{ preview() | json }}</pre>\n </div>\n\n @for (error of errors(); track $index) {\n <p class=\"error-line\">{{ error.message }}</p>\n }\n</div>\n", styles: [":host{display:block}.projection{display:flex;flex-direction:column;gap:1.5rem}.hint-line{display:flex;align-items:center;gap:.5rem;margin:0;font-size:.875rem;color:var(--lib-forms-on-surface-variant)}.hint-line.subtle{opacity:.85}.info-icon{font-size:1.125rem;width:1.125rem;height:1.125rem;color:var(--lib-forms-primary)}.field-label{font-size:.625rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--lib-forms-on-surface-variant)}.mode-toggle{align-self:flex-start;border-radius:8px}.keys{display:flex;flex-direction:column;gap:.75rem}.key-row{display:flex;align-items:center;gap:.5rem}.key-prefix,.key-suffix{font-family:var(--lib-forms-font-mono, monospace);font-size:.8125rem;color:var(--lib-forms-on-surface-variant);flex-shrink:0}.key-input{flex:1;min-width:0;font:inherit;font-size:.9375rem;padding:.5rem .75rem;color:var(--lib-forms-on-surface);background:var(--lib-forms-surface-container-highest);border:1px solid color-mix(in srgb,var(--lib-forms-outline) 30%,transparent);border-radius:8px;transition:border-color .3s cubic-bezier(.16,1,.3,1)}.key-input:focus{outline:none;border-color:var(--lib-forms-primary)}.key-input:disabled{opacity:.6;cursor:not-allowed}.key-remove{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;flex-shrink:0;border:none;background:transparent;border-radius:8px;color:var(--lib-forms-on-surface-variant);cursor:pointer;transition:color .3s cubic-bezier(.16,1,.3,1)}.key-remove:hover:not(:disabled){color:var(--lib-forms-error)}.key-remove:disabled{opacity:.5;cursor:not-allowed}.key-remove mat-icon{font-size:1.125rem;width:1.125rem;height:1.125rem}.link-btn{display:inline-flex;align-items:center;gap:.375rem;align-self:flex-start;padding:.25rem 0;border:none;background:transparent;color:var(--lib-forms-primary);font:inherit;font-size:.8125rem;font-weight:500;cursor:pointer}.link-btn:disabled{opacity:.5;cursor:not-allowed}.link-btn mat-icon{font-size:1.125rem;width:1.125rem;height:1.125rem}.preview{display:flex;flex-direction:column;gap:.5rem}.preview-head{display:flex;align-items:center;justify-content:space-between}.preview-json{margin:0;padding:1rem;font-family:var(--lib-forms-font-mono, monospace);font-size:.8125rem;line-height:1.5;color:var(--lib-forms-on-surface);background:var(--lib-forms-surface-container-highest);border-radius:8px;overflow-x:auto;white-space:pre}.error-line{margin:0;font-size:.75rem;color:var(--lib-forms-error)}\n"] }]
287
- }], null, { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], formInputs: [{ type: i0.Input, args: [{ isSignal: true, alias: "formInputs", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], valueChanged: [{ type: i0.Output, args: ["valueChanged"] }] }); })();
288
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FormPayloadProjectionComponent, { className: "FormPayloadProjectionComponent", filePath: "lib/components/t-dynamic-data-edit/elements/form-payload-projection/form-payload-projection.component.ts", lineNumber: 54 }); })();
289
-
290
- export { FormPayloadProjectionComponent };
291
- //# sourceMappingURL=ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/form-payload-projection/projection-expression.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/form-payload-projection/form-payload-projection.component.html","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/form-payload-projection/form-payload-projection.component.ts"],"sourcesContent":["/**\n * Parser/serialiser for the `projectFormData` submission expression.\n *\n * At runtime the expression is consumed by `destructureObject({ $formValue: form }, expr)`,\n * so the only token available is `$formValue` — the entire submitted form. The\n * sole authoring choice is therefore whether to send the form fields flat or to\n * nest the whole payload under one or more named keys. This module bridges that\n * raw string and the guided builder's structured model.\n */\n\n/** Token that resolves to the entire submitted form payload at runtime. */\nexport const FORM_VALUE_TOKEN = '$formValue';\n\n/** Default envelope: the whole form nested under a `data` key. */\nexport const DEFAULT_PROJECTION = `data:{${FORM_VALUE_TOKEN}}`;\n\n/**\n * Structured model behind the guided \"Project form data\" editor.\n *\n * @remarks `keys` empty ⇒ send fields at the top level; each key nests the whole\n * form under that name (`{ key: { ...form } }`).\n */\nexport interface ProjectionModel {\n /** Keys to nest the whole form under. Empty ⇒ send fields at the top level. */\n readonly keys: readonly string[];\n}\n\n/** Matches a single `alias:{token}` envelope entry. */\nconst ENVELOPE = /^([^:]+):\\{(.+)\\}$/;\n\n/**\n * Parses a `projectFormData` expression into the guided model (best-effort).\n * Unrecognised entries are kept as literal keys so nothing is silently dropped.\n */\nexport function parseProjection(expression: string | null | undefined): ProjectionModel {\n if (!expression) return { keys: [] };\n const keys = expression\n .split(',')\n .map((entry) => entry.trim())\n .filter(Boolean)\n .map((entry) => {\n const match = ENVELOPE.exec(entry);\n // `alias:{$formValue}` ⇒ alias; a bare token (or any other entry) ⇒ literal key.\n return (match?.[1] ?? entry).trim();\n })\n .filter(Boolean);\n return { keys };\n}\n\n/** Serialises the guided model back to a `projectFormData` expression. */\nexport function serializeProjection(model: ProjectionModel): string {\n return model.keys\n .map((key) => key.trim())\n .filter(Boolean)\n .map((key) => `${key}:{${FORM_VALUE_TOKEN}}`)\n .join(', ');\n}\n","<div class=\"projection\">\n <p class=\"hint-line\">\n <mat-icon class=\"info-icon\">help_outline</mat-icon>\n <span>Choose how the submitted form is shaped before it is sent to the endpoint.</span>\n </p>\n\n <mat-button-toggle-group class=\"mode-toggle\" [value]=\"mode()\" hideSingleSelectionIndicator\n [disabled]=\"disabled()\" (change)=\"setMode($event.value)\" aria-label=\"Payload shape\">\n <mat-button-toggle value=\"flat\" matTooltip=\"Send each field at the top level\">\n <mat-icon>list</mat-icon> Top level\n </mat-button-toggle>\n <mat-button-toggle value=\"wrap\" matTooltip=\"Nest the whole form under a key\">\n <mat-icon>data_object</mat-icon> Wrap under key\n </mat-button-toggle>\n </mat-button-toggle-group>\n\n @if (mode() === 'wrap') {\n <div class=\"keys\">\n <span class=\"field-label\">Wrap the form under</span>\n @for (key of keys(); track trackByIndex($index); let i = $index) {\n <div class=\"key-row\">\n <span class=\"key-prefix\" aria-hidden=\"true\">&#123;</span>\n <input class=\"key-input\" [value]=\"key\" [disabled]=\"disabled()\"\n placeholder=\"e.g. data, payload\" [attr.aria-label]=\"'Wrapper key ' + (i + 1)\"\n (input)=\"updateKey(i, inputValue($event))\">\n <span class=\"key-suffix\" aria-hidden=\"true\">: form&#125;</span>\n <button type=\"button\" class=\"key-remove\" [disabled]=\"disabled()\" matTooltip=\"Remove key\"\n [attr.aria-label]=\"'Remove wrapper key ' + (i + 1)\" (click)=\"removeKey(i)\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n }\n <button type=\"button\" class=\"link-btn\" [disabled]=\"disabled()\" (click)=\"addKey()\">\n <mat-icon>add</mat-icon> Add another key\n </button>\n </div>\n } @else {\n <p class=\"hint-line subtle\">\n <mat-icon class=\"info-icon\">info</mat-icon>\n <span>Every field is sent at the top level of the request body.</span>\n </p>\n }\n\n <div class=\"preview\">\n <div class=\"preview-head\">\n <span class=\"field-label\">Sent to the endpoint</span>\n <button type=\"button\" class=\"link-btn\" [disabled]=\"disabled()\" matTooltip=\"Reset to the recommended shape\"\n (click)=\"resetToDefault()\">\n <mat-icon>restart_alt</mat-icon> Reset\n </button>\n </div>\n <pre class=\"preview-json\">{{ preview() | json }}</pre>\n </div>\n\n @for (error of errors(); track $index) {\n <p class=\"error-line\">{{ error.message }}</p>\n }\n</div>\n","import {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n computed,\n effect,\n input,\n output,\n signal,\n} from '@angular/core';\nimport { JsonPipe } from '@angular/common';\n\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatButtonToggleModule } from '@angular/material/button-toggle';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatTooltipModule } from '@angular/material/tooltip';\n\nimport { FormColumnInputs } from 'ngx-t-forms-types';\n\nimport {\n DEFAULT_PROJECTION,\n parseProjection,\n serializeProjection,\n} from './projection-expression';\n\n/** Validation error surfaced by the parent editor for display. */\ninterface ProjectionError {\n readonly key: string;\n readonly message: string;\n}\n\n/**\n * Guided editor for a form's `projectFormData` submission expression.\n *\n * Replaces the raw `data:{$formValue}` text field with a no-code chooser: send\n * the form fields flat, or wrap the whole payload under one or more named keys —\n * with a live preview of the resulting JSON shape. The runtime engine only\n * exposes the whole form (`$formValue`), so the model is intentionally a simple\n * list of envelope keys (see {@link parseProjection}).\n *\n * @example\n * <lib-form-payload-projection [value]=\"expr()\" [formInputs]=\"inputs()\"\n * (valueChanged)=\"onExpr($event)\" />\n */\n@Component({\n selector: 'lib-form-payload-projection',\n templateUrl: './form-payload-projection.component.html',\n styleUrl: './form-payload-projection.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.Emulated,\n host: { class: 'lib-form-payload-projection' },\n imports: [JsonPipe, MatButtonModule, MatButtonToggleModule, MatIconModule, MatTooltipModule],\n})\nexport class FormPayloadProjectionComponent {\n /** Current `projectFormData` expression. */\n readonly value = input<string>('');\n\n /** Whether the editor is read-only. */\n readonly disabled = input<boolean>(false);\n\n /** The form's inputs — used to sketch the payload shape in the preview. */\n readonly formInputs = input<FormColumnInputs[]>([]);\n\n /** Validation errors surfaced by the parent for display. */\n readonly errors = input<ProjectionError[]>([]);\n\n /** Emits the serialised expression whenever the user changes the mapping. */\n readonly valueChanged = output<string>();\n\n /** Envelope keys the whole form is nested under. Empty ⇒ sent flat. */\n protected readonly keys = signal<string[]>([]);\n\n /** 'flat' = top-level fields; 'wrap' = nested under key(s). */\n protected readonly mode = computed<'flat' | 'wrap'>(() => (this.keys().length > 0 ? 'wrap' : 'flat'));\n\n /**\n * The last expression we synced from / emitted. Guards the input bridge so our\n * own round-tripped emissions don't clobber in-progress edits (the parent\n * debounces and echoes the value back through `value`).\n */\n #lastSynced: string | undefined = undefined;\n\n protected readonly valueBridge = effect(() => {\n const incoming = this.value() ?? '';\n if (incoming === this.#lastSynced) return;\n this.#lastSynced = incoming;\n this.keys.set([...parseProjection(incoming).keys]);\n });\n\n /** A sample of the form payload (field name → placeholder) for the preview. */\n readonly #sampleForm = computed<Record<string, unknown>>(() => {\n const sample: Record<string, unknown> = {};\n for (const column of this.formInputs()) {\n if (column.multipleInputInEditId || !column.formControlName) continue;\n sample[column.formControlName] = '…';\n if (Object.keys(sample).length >= 8) break;\n }\n if (Object.keys(sample).length === 0) sample['field'] = '…';\n return sample;\n });\n\n /** Live preview of the JSON shape sent to the endpoint. */\n protected readonly preview = computed<unknown>(() => {\n const keys = this.keys().map((k) => k.trim()).filter(Boolean);\n const sample = this.#sampleForm();\n if (keys.length === 0) return sample;\n const out: Record<string, unknown> = {};\n for (const key of keys) out[key] = sample;\n return out;\n });\n\n /** Switches between flat and wrapped modes (seeding a default key on first wrap). */\n protected setMode(mode: 'flat' | 'wrap'): void {\n if (mode === 'flat') {\n this.#apply([]);\n return;\n }\n if (this.keys().length === 0) this.#apply(['data']);\n }\n\n protected addKey(): void {\n this.#apply([...this.keys(), '']);\n }\n\n protected updateKey(index: number, key: string): void {\n this.#apply(this.keys().map((k, i) => (i === index ? key : k)));\n }\n\n protected removeKey(index: number): void {\n this.#apply(this.keys().filter((_, i) => i !== index));\n }\n\n /** Reads a native input's value from a DOM event (keeps the template `any`-free). */\n protected inputValue(event: Event): string {\n return (event.target as HTMLInputElement).value;\n }\n\n protected trackByIndex(index: number): number {\n return index;\n }\n\n /** Reset to the recommended default (`data:{$formValue}`). */\n protected resetToDefault(): void {\n this.#apply([...parseProjection(DEFAULT_PROJECTION).keys]);\n }\n\n #apply(keys: string[]): void {\n if (this.disabled()) return;\n this.keys.set(keys);\n const serialized = serializeProjection({ keys });\n // Pre-record so the echoed value (see valueBridge) is ignored, preserving\n // empty in-progress key rows that serialise away.\n this.#lastSynced = serialized;\n this.valueChanged.emit(serialized);\n }\n}\n"],"names":["i1","i2"],"mappings":";;;;;;;;;;;AAAA;;;;;;;;AAQG;AAEH;AACO,MAAM,gBAAgB,GAAG,YAAY;AAE5C;AACO,MAAM,kBAAkB,GAAG,CAAA,MAAA,EAAS,gBAAgB,GAAG;AAa9D;AACA,MAAM,QAAQ,GAAG,oBAAoB;AAErC;;;AAGG;AACG,SAAU,eAAe,CAAC,UAAqC,EAAA;AACnE,IAAA,IAAI,CAAC,UAAU;AAAE,QAAA,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE;IACpC,MAAM,IAAI,GAAG;SACV,KAAK,CAAC,GAAG;SACT,GAAG,CAAC,CAAC,KAAK,KAAK,KAAK,CAAC,IAAI,EAAE;SAC3B,MAAM,CAAC,OAAO;AACd,SAAA,GAAG,CAAC,CAAC,KAAK,KAAI;QACb,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC;;AAElC,QAAA,OAAO,CAAC,KAAK,GAAG,CAAC,CAAC,IAAI,KAAK,EAAE,IAAI,EAAE;AACrC,IAAA,CAAC;SACA,MAAM,CAAC,OAAO,CAAC;IAClB,OAAO,EAAE,IAAI,EAAE;AACjB;AAEA;AACM,SAAU,mBAAmB,CAAC,KAAsB,EAAA;IACxD,OAAO,KAAK,CAAC;SACV,GAAG,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,IAAI,EAAE;SACvB,MAAM,CAAC,OAAO;SACd,GAAG,CAAC,CAAC,GAAG,KAAK,CAAA,EAAG,GAAG,CAAA,EAAA,EAAK,gBAAgB,CAAA,CAAA,CAAG;SAC3C,IAAI,CAAC,IAAI,CAAC;AACf;;;;ACnCU,IADF,+BAAqB,CAAA,CAAA,EAAA,MAAA,EAAA,EAAA,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