ngx-t-forms 3.0.0 → 3.1.1

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 (254) hide show
  1. package/fesm2022/ngx-t-forms-api-endpoint-config.component-CZm3Z_7B.mjs +411 -0
  2. package/fesm2022/ngx-t-forms-api-endpoint-config.component-CZm3Z_7B.mjs.map +1 -0
  3. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-DFApar1W.mjs → ngx-t-forms-auto-complete-input-element.component-IciY6hb3.mjs} +2 -2
  4. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-DFApar1W.mjs.map → ngx-t-forms-auto-complete-input-element.component-IciY6hb3.mjs.map} +1 -1
  5. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-ChCeve-w.mjs → ngx-t-forms-basic-input-input-element.component-CykKxWu0.mjs} +3 -3
  6. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-ChCeve-w.mjs.map → ngx-t-forms-basic-input-input-element.component-CykKxWu0.mjs.map} +1 -1
  7. package/fesm2022/ngx-t-forms-calculated-field-rules.component-CwI-WEX7.mjs +643 -0
  8. package/fesm2022/ngx-t-forms-calculated-field-rules.component-CwI-WEX7.mjs.map +1 -0
  9. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-B54kOArR.mjs → ngx-t-forms-chip-options-creator-editor.component-CO_3EQ_v.mjs} +4 -4
  10. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-CO_3EQ_v.mjs.map +1 -0
  11. package/fesm2022/ngx-t-forms-conditional-display-config.component-Cmf7gDfO.mjs +513 -0
  12. package/fesm2022/ngx-t-forms-conditional-display-config.component-Cmf7gDfO.mjs.map +1 -0
  13. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-CAZv0_uR.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-BHiOEQe4.mjs} +4 -4
  14. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-BHiOEQe4.mjs.map +1 -0
  15. package/fesm2022/ngx-t-forms-data-source-picker.component-CN51SdCK.mjs +261 -0
  16. package/fesm2022/ngx-t-forms-data-source-picker.component-CN51SdCK.mjs.map +1 -0
  17. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-NM2cFs3P.mjs → ngx-t-forms-date-picker-input-element.component-c3OSDXWw.mjs} +2 -2
  18. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-NM2cFs3P.mjs.map → ngx-t-forms-date-picker-input-element.component-c3OSDXWw.mjs.map} +1 -1
  19. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-C-4fqOF0.mjs +166 -0
  20. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-C-4fqOF0.mjs.map +1 -0
  21. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-DLzba2AQ.mjs +373 -0
  22. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-DLzba2AQ.mjs.map +1 -0
  23. package/fesm2022/ngx-t-forms-document-picker.component-9clYsOcl.mjs +1259 -0
  24. package/fesm2022/ngx-t-forms-document-picker.component-9clYsOcl.mjs.map +1 -0
  25. package/fesm2022/ngx-t-forms-editor-input-element.component-BGdZ4evj.mjs +417 -0
  26. package/fesm2022/ngx-t-forms-editor-input-element.component-BGdZ4evj.mjs.map +1 -0
  27. package/fesm2022/{ngx-t-forms-editor-js-input.component-DlsLiHi1.mjs → ngx-t-forms-editor-js-input.component-02HnmInT.mjs} +25 -11
  28. package/fesm2022/ngx-t-forms-editor-js-input.component-02HnmInT.mjs.map +1 -0
  29. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-Km-qgANx.mjs → ngx-t-forms-file-upload-input-element.component-BF7KbSPb.mjs} +2 -2
  30. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-Km-qgANx.mjs.map → ngx-t-forms-file-upload-input-element.component-BF7KbSPb.mjs.map} +1 -1
  31. package/fesm2022/ngx-t-forms-form-input-selector.component-vCj2SCxs.mjs +86 -0
  32. package/fesm2022/ngx-t-forms-form-input-selector.component-vCj2SCxs.mjs.map +1 -0
  33. package/fesm2022/{ngx-t-forms-form-json-view.component-r64GKVhI.mjs → ngx-t-forms-form-json-view.component-Cmw1hHGZ.mjs} +2 -2
  34. package/fesm2022/{ngx-t-forms-form-json-view.component-r64GKVhI.mjs.map → ngx-t-forms-form-json-view.component-Cmw1hHGZ.mjs.map} +1 -1
  35. package/fesm2022/ngx-t-forms-form-payload-projection.component-y9PSIeP1.mjs +179 -0
  36. package/fesm2022/ngx-t-forms-form-payload-projection.component-y9PSIeP1.mjs.map +1 -0
  37. package/fesm2022/{ngx-t-forms-form-section-stepper.component-B3DRJ--U.mjs → ngx-t-forms-form-section-stepper.component-CFdwgxRl.mjs} +4 -4
  38. package/fesm2022/{ngx-t-forms-form-section-stepper.component-B3DRJ--U.mjs.map → ngx-t-forms-form-section-stepper.component-CFdwgxRl.mjs.map} +1 -1
  39. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-BYFynpTn.mjs → ngx-t-forms-forms-builder-menu.component-DisrOv5x.mjs} +5 -5
  40. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-BYFynpTn.mjs.map → ngx-t-forms-forms-builder-menu.component-DisrOv5x.mjs.map} +1 -1
  41. package/fesm2022/{ngx-t-forms-geo-location.component-D2fIbagr.mjs → ngx-t-forms-geo-location.component-D-BhLdx6.mjs} +2 -2
  42. package/fesm2022/{ngx-t-forms-geo-location.component-D2fIbagr.mjs.map → ngx-t-forms-geo-location.component-D-BhLdx6.mjs.map} +1 -1
  43. package/fesm2022/ngx-t-forms-header-template-editor.component-Z5frEhho.mjs +159 -0
  44. package/fesm2022/ngx-t-forms-header-template-editor.component-Z5frEhho.mjs.map +1 -0
  45. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-BgnzErQt.mjs → ngx-t-forms-image-capture-input-element.component-CoJTXMbL.mjs} +2 -2
  46. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-BgnzErQt.mjs.map → ngx-t-forms-image-capture-input-element.component-CoJTXMbL.mjs.map} +1 -1
  47. package/fesm2022/ngx-t-forms-index-D8xr_Sxp.mjs +2 -0
  48. package/fesm2022/ngx-t-forms-index-D8xr_Sxp.mjs.map +1 -0
  49. package/fesm2022/{ngx-t-forms-input-custom.component-Dcoze7U3.mjs → ngx-t-forms-input-custom.component-s1ryJQy4.mjs} +2 -2
  50. package/fesm2022/{ngx-t-forms-input-custom.component-Dcoze7U3.mjs.map → ngx-t-forms-input-custom.component-s1ryJQy4.mjs.map} +1 -1
  51. package/fesm2022/ngx-t-forms-input-editor.component-oIzCTmbx.mjs +190 -0
  52. package/fesm2022/ngx-t-forms-input-editor.component-oIzCTmbx.mjs.map +1 -0
  53. package/fesm2022/{ngx-t-forms-map-mat-options-keys-BsfvYiEU.mjs → ngx-t-forms-map-mat-options-keys-C1kxlZS_.mjs} +2 -3
  54. package/fesm2022/ngx-t-forms-map-mat-options-keys-C1kxlZS_.mjs.map +1 -0
  55. package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-CYtTBtyf.mjs → ngx-t-forms-mat-chip-list-editor.component-wskkKr4y.mjs} +5 -5
  56. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-wskkKr4y.mjs.map +1 -0
  57. package/fesm2022/{ngx-t-forms-mat-slider-editor.component-CTSBrM-j.mjs → ngx-t-forms-mat-slider-editor.component-4buvmLkX.mjs} +3 -3
  58. package/fesm2022/ngx-t-forms-mat-slider-editor.component-4buvmLkX.mjs.map +1 -0
  59. 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
  60. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-DX8L0O1k.mjs.map +1 -0
  61. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CEa8ZNKA.mjs → ngx-t-forms-missing-form-configs.component-C1XuXRdn.mjs} +2 -2
  62. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CEa8ZNKA.mjs.map → ngx-t-forms-missing-form-configs.component-C1XuXRdn.mjs.map} +1 -1
  63. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-DklkxNgg.mjs → ngx-t-forms-mscoa-chart-toolbar.component-BJrOTRuQ.mjs} +2 -2
  64. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-DklkxNgg.mjs.map → ngx-t-forms-mscoa-chart-toolbar.component-BJrOTRuQ.mjs.map} +1 -1
  65. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-GyKF31Ve.mjs +447 -0
  66. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-GyKF31Ve.mjs.map +1 -0
  67. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-BrPJPR2R.mjs +905 -0
  68. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-BrPJPR2R.mjs.map +1 -0
  69. package/fesm2022/{ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs → ngx-t-forms-ngx-t-forms-DqAcUfN4.mjs} +2738 -415
  70. package/fesm2022/ngx-t-forms-ngx-t-forms-DqAcUfN4.mjs.map +1 -0
  71. package/fesm2022/{ngx-t-forms-paginated-selection-table-DrXB22iY.mjs → ngx-t-forms-paginated-selection-table-Bk77dBo9.mjs} +2 -2
  72. package/fesm2022/{ngx-t-forms-paginated-selection-table-DrXB22iY.mjs.map → ngx-t-forms-paginated-selection-table-Bk77dBo9.mjs.map} +1 -1
  73. package/fesm2022/ngx-t-forms-payload-template-editor.component-CVzOTLYE.mjs +85 -0
  74. package/fesm2022/ngx-t-forms-payload-template-editor.component-CVzOTLYE.mjs.map +1 -0
  75. package/fesm2022/ngx-t-forms-pipeline-generator.component-7Vfwaqnx.mjs +748 -0
  76. package/fesm2022/ngx-t-forms-pipeline-generator.component-7Vfwaqnx.mjs.map +1 -0
  77. package/fesm2022/{ngx-t-forms-record-list-manager.component-l-2uDVmi.mjs → ngx-t-forms-record-list-manager.component-CfZdqKhY.mjs} +4 -4
  78. package/fesm2022/ngx-t-forms-record-list-manager.component-CfZdqKhY.mjs.map +1 -0
  79. package/fesm2022/ngx-t-forms-required-inputs.component-CK7NIhbq.mjs +272 -0
  80. package/fesm2022/ngx-t-forms-required-inputs.component-CK7NIhbq.mjs.map +1 -0
  81. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-YChv7Arm.mjs +699 -0
  82. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-YChv7Arm.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-BYMcaRE5.mjs → ngx-t-forms-section-report.component-DhSaf85h.mjs} +2 -2
  86. package/fesm2022/{ngx-t-forms-section-report.component-BYMcaRE5.mjs.map → ngx-t-forms-section-report.component-DhSaf85h.mjs.map} +1 -1
  87. package/fesm2022/{ngx-t-forms-select-input-element.component-Nsa3dpvV.mjs → ngx-t-forms-select-input-element.component-D5HFzh35.mjs} +2 -2
  88. package/fesm2022/{ngx-t-forms-select-input-element.component-Nsa3dpvV.mjs.map → ngx-t-forms-select-input-element.component-D5HFzh35.mjs.map} +1 -1
  89. package/fesm2022/ngx-t-forms-selection-options-editor.component-BhmmJOco.mjs +169 -0
  90. package/fesm2022/ngx-t-forms-selection-options-editor.component-BhmmJOco.mjs.map +1 -0
  91. package/fesm2022/{ngx-t-forms-t-workflow-picker.component-DAwP-cWK.mjs → ngx-t-forms-t-workflow-picker.component-D0ttyEex.mjs} +3 -3
  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-DPxUzkAu.mjs → ngx-t-forms-textarea-input-element.component-DWEADTsz.mjs} +2 -2
  94. package/fesm2022/{ngx-t-forms-textarea-input-element.component-DPxUzkAu.mjs.map → ngx-t-forms-textarea-input-element.component-DWEADTsz.mjs.map} +1 -1
  95. package/fesm2022/{ngx-t-forms-toggle-input-element.component-OZre5TJ7.mjs → ngx-t-forms-toggle-input-element.component-XZi6kPnL.mjs} +2 -2
  96. package/fesm2022/{ngx-t-forms-toggle-input-element.component-OZre5TJ7.mjs.map → ngx-t-forms-toggle-input-element.component-XZi6kPnL.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-0_Y6bvtE.mjs +574 -0
  100. package/fesm2022/ngx-t-forms-validators-config.component-0_Y6bvtE.mjs.map +1 -0
  101. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-CrDZg3Nl.mjs → ngx-t-forms-workflow-adjudication.component-Gkimmw-X.mjs} +3 -3
  102. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-CrDZg3Nl.mjs.map → ngx-t-forms-workflow-adjudication.component-Gkimmw-X.mjs.map} +1 -1
  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 +110 -6
  109. package/fesm2022/ngx-t-forms-auto-complete-input-element.component-7g5cpVfB.mjs +0 -261
  110. package/fesm2022/ngx-t-forms-auto-complete-input-element.component-7g5cpVfB.mjs.map +0 -1
  111. package/fesm2022/ngx-t-forms-basic-input-input-element.component-BhMw2vpl.mjs +0 -225
  112. package/fesm2022/ngx-t-forms-basic-input-input-element.component-BhMw2vpl.mjs.map +0 -1
  113. package/fesm2022/ngx-t-forms-calculated-field-rules.component-BmWnrfWN.mjs +0 -1011
  114. package/fesm2022/ngx-t-forms-calculated-field-rules.component-BmWnrfWN.mjs.map +0 -1
  115. package/fesm2022/ngx-t-forms-calculated-field-rules.component-CJMwqoHL.mjs +0 -643
  116. package/fesm2022/ngx-t-forms-calculated-field-rules.component-CJMwqoHL.mjs.map +0 -1
  117. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-ALkkDotT.mjs +0 -136
  118. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-ALkkDotT.mjs.map +0 -1
  119. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-B54kOArR.mjs.map +0 -1
  120. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-CAZv0_uR.mjs.map +0 -1
  121. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dap7QkKD.mjs +0 -253
  122. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dap7QkKD.mjs.map +0 -1
  123. package/fesm2022/ngx-t-forms-data-source-picker.component-8G28L1Cg.mjs +0 -261
  124. package/fesm2022/ngx-t-forms-data-source-picker.component-8G28L1Cg.mjs.map +0 -1
  125. package/fesm2022/ngx-t-forms-data-source-picker.component-CJ1C1Znp.mjs +0 -419
  126. package/fesm2022/ngx-t-forms-data-source-picker.component-CJ1C1Znp.mjs.map +0 -1
  127. package/fesm2022/ngx-t-forms-date-picker-input-element.component-DjYq63Iv.mjs +0 -231
  128. package/fesm2022/ngx-t-forms-date-picker-input-element.component-DjYq63Iv.mjs.map +0 -1
  129. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-DhU_bhy3.mjs +0 -156
  130. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-DhU_bhy3.mjs.map +0 -1
  131. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-g0wIRj9b.mjs +0 -333
  132. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-g0wIRj9b.mjs.map +0 -1
  133. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-K-KFdCcS.mjs +0 -373
  134. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-K-KFdCcS.mjs.map +0 -1
  135. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-NuPXy_Ms.mjs +0 -543
  136. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-NuPXy_Ms.mjs.map +0 -1
  137. package/fesm2022/ngx-t-forms-document-picker.component-BSG7k3IN.mjs +0 -1259
  138. package/fesm2022/ngx-t-forms-document-picker.component-BSG7k3IN.mjs.map +0 -1
  139. package/fesm2022/ngx-t-forms-document-picker.component-ChGqXHcQ.mjs +0 -1996
  140. package/fesm2022/ngx-t-forms-document-picker.component-ChGqXHcQ.mjs.map +0 -1
  141. package/fesm2022/ngx-t-forms-editor-input-element.component-B8Pk-EVY.mjs +0 -581
  142. package/fesm2022/ngx-t-forms-editor-input-element.component-B8Pk-EVY.mjs.map +0 -1
  143. package/fesm2022/ngx-t-forms-editor-input-element.component-Bb7w-vNw.mjs +0 -417
  144. package/fesm2022/ngx-t-forms-editor-input-element.component-Bb7w-vNw.mjs.map +0 -1
  145. package/fesm2022/ngx-t-forms-editor-js-input.component-DlsLiHi1.mjs.map +0 -1
  146. package/fesm2022/ngx-t-forms-editor-js-input.component-XX6kU8DW.mjs +0 -585
  147. package/fesm2022/ngx-t-forms-editor-js-input.component-XX6kU8DW.mjs.map +0 -1
  148. package/fesm2022/ngx-t-forms-file-upload-input-element.component-RCmUClXv.mjs +0 -447
  149. package/fesm2022/ngx-t-forms-file-upload-input-element.component-RCmUClXv.mjs.map +0 -1
  150. package/fesm2022/ngx-t-forms-form-input-selector.component-0jfD5C0G.mjs +0 -163
  151. package/fesm2022/ngx-t-forms-form-input-selector.component-0jfD5C0G.mjs.map +0 -1
  152. package/fesm2022/ngx-t-forms-form-input-selector.component-D5KYWQ2R.mjs +0 -86
  153. package/fesm2022/ngx-t-forms-form-input-selector.component-D5KYWQ2R.mjs.map +0 -1
  154. package/fesm2022/ngx-t-forms-form-json-view.component-z0nQxpqB.mjs +0 -28
  155. package/fesm2022/ngx-t-forms-form-json-view.component-z0nQxpqB.mjs.map +0 -1
  156. package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs +0 -291
  157. package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs.map +0 -1
  158. package/fesm2022/ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs +0 -179
  159. package/fesm2022/ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs.map +0 -1
  160. package/fesm2022/ngx-t-forms-form-section-stepper.component-UUTHYU-A.mjs +0 -936
  161. package/fesm2022/ngx-t-forms-form-section-stepper.component-UUTHYU-A.mjs.map +0 -1
  162. package/fesm2022/ngx-t-forms-forms-builder-menu.component-DTIAOxGV.mjs +0 -816
  163. package/fesm2022/ngx-t-forms-forms-builder-menu.component-DTIAOxGV.mjs.map +0 -1
  164. package/fesm2022/ngx-t-forms-geo-location.component-DW2b5Zli.mjs +0 -329
  165. package/fesm2022/ngx-t-forms-geo-location.component-DW2b5Zli.mjs.map +0 -1
  166. package/fesm2022/ngx-t-forms-image-capture-input-element.component-Us_NAQSl.mjs +0 -360
  167. package/fesm2022/ngx-t-forms-image-capture-input-element.component-Us_NAQSl.mjs.map +0 -1
  168. package/fesm2022/ngx-t-forms-index-6YIhS6cm.mjs +0 -2
  169. package/fesm2022/ngx-t-forms-index-6YIhS6cm.mjs.map +0 -1
  170. package/fesm2022/ngx-t-forms-index-BPNBX_ve.mjs +0 -2
  171. package/fesm2022/ngx-t-forms-index-BPNBX_ve.mjs.map +0 -1
  172. package/fesm2022/ngx-t-forms-input-custom.component-DQOqy047.mjs +0 -128
  173. package/fesm2022/ngx-t-forms-input-custom.component-DQOqy047.mjs.map +0 -1
  174. package/fesm2022/ngx-t-forms-input-editor.component-3fRj5swF.mjs +0 -512
  175. package/fesm2022/ngx-t-forms-input-editor.component-3fRj5swF.mjs.map +0 -1
  176. package/fesm2022/ngx-t-forms-input-editor.component-B6UKwV4i.mjs +0 -190
  177. package/fesm2022/ngx-t-forms-input-editor.component-B6UKwV4i.mjs.map +0 -1
  178. package/fesm2022/ngx-t-forms-map-mat-options-keys-BsfvYiEU.mjs.map +0 -1
  179. package/fesm2022/ngx-t-forms-map-mat-options-keys-eSc99wdA.mjs +0 -132
  180. package/fesm2022/ngx-t-forms-map-mat-options-keys-eSc99wdA.mjs.map +0 -1
  181. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CN17K5q6.mjs +0 -268
  182. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CN17K5q6.mjs.map +0 -1
  183. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CYtTBtyf.mjs.map +0 -1
  184. package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs +0 -241
  185. package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs.map +0 -1
  186. package/fesm2022/ngx-t-forms-mat-slider-editor.component-CTSBrM-j.mjs.map +0 -1
  187. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-CcYiwx-8.mjs.map +0 -1
  188. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs +0 -180
  189. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs.map +0 -1
  190. package/fesm2022/ngx-t-forms-missing-form-configs.component-AaDfeALs.mjs +0 -114
  191. package/fesm2022/ngx-t-forms-missing-form-configs.component-AaDfeALs.mjs.map +0 -1
  192. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-D0igUV3W.mjs +0 -69
  193. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-D0igUV3W.mjs.map +0 -1
  194. package/fesm2022/ngx-t-forms-mscoa-error-display.component-rzl-fMmd.mjs +0 -200
  195. package/fesm2022/ngx-t-forms-mscoa-error-display.component-rzl-fMmd.mjs.map +0 -1
  196. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-2SspNWtF.mjs +0 -447
  197. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-2SspNWtF.mjs.map +0 -1
  198. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CSGf4XeN.mjs +0 -850
  199. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CSGf4XeN.mjs.map +0 -1
  200. package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-CBuGHwnU.mjs +0 -107
  201. package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-CBuGHwnU.mjs.map +0 -1
  202. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CbQdnVgw.mjs +0 -1665
  203. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CbQdnVgw.mjs.map +0 -1
  204. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-dmRIi9ph.mjs +0 -905
  205. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-dmRIi9ph.mjs.map +0 -1
  206. package/fesm2022/ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs.map +0 -1
  207. package/fesm2022/ngx-t-forms-ngx-t-forms-BefvSS-p.mjs +0 -28237
  208. package/fesm2022/ngx-t-forms-ngx-t-forms-BefvSS-p.mjs.map +0 -1
  209. package/fesm2022/ngx-t-forms-paginated-selection-table-BGNxI2yq.mjs +0 -1024
  210. package/fesm2022/ngx-t-forms-paginated-selection-table-BGNxI2yq.mjs.map +0 -1
  211. package/fesm2022/ngx-t-forms-payload-template-editor.component-DL4ZTTsH.mjs +0 -203
  212. package/fesm2022/ngx-t-forms-payload-template-editor.component-DL4ZTTsH.mjs.map +0 -1
  213. package/fesm2022/ngx-t-forms-payload-template-editor.component-o3qwpvYu.mjs +0 -234
  214. package/fesm2022/ngx-t-forms-payload-template-editor.component-o3qwpvYu.mjs.map +0 -1
  215. package/fesm2022/ngx-t-forms-pipeline-generator.component-BqtdKcN2.mjs +0 -1126
  216. package/fesm2022/ngx-t-forms-pipeline-generator.component-BqtdKcN2.mjs.map +0 -1
  217. package/fesm2022/ngx-t-forms-pipeline-generator.component-DcZPv8-N.mjs +0 -748
  218. package/fesm2022/ngx-t-forms-pipeline-generator.component-DcZPv8-N.mjs.map +0 -1
  219. package/fesm2022/ngx-t-forms-record-list-manager.component-BcANl5Bq.mjs +0 -639
  220. package/fesm2022/ngx-t-forms-record-list-manager.component-BcANl5Bq.mjs.map +0 -1
  221. package/fesm2022/ngx-t-forms-record-list-manager.component-l-2uDVmi.mjs.map +0 -1
  222. package/fesm2022/ngx-t-forms-required-inputs.component-BMmNxeE-.mjs +0 -272
  223. package/fesm2022/ngx-t-forms-required-inputs.component-BMmNxeE-.mjs.map +0 -1
  224. package/fesm2022/ngx-t-forms-required-inputs.component-Dr0P1gin.mjs +0 -451
  225. package/fesm2022/ngx-t-forms-required-inputs.component-Dr0P1gin.mjs.map +0 -1
  226. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BSv_KQIU.mjs +0 -625
  227. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BSv_KQIU.mjs.map +0 -1
  228. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-C3sNmq_H.mjs +0 -444
  229. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-C3sNmq_H.mjs.map +0 -1
  230. package/fesm2022/ngx-t-forms-search-field.component-B2ZO7lqO.mjs +0 -38
  231. package/fesm2022/ngx-t-forms-search-field.component-B2ZO7lqO.mjs.map +0 -1
  232. package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs +0 -72
  233. package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs.map +0 -1
  234. package/fesm2022/ngx-t-forms-section-report.component-yGAjX7Gb.mjs +0 -248
  235. package/fesm2022/ngx-t-forms-section-report.component-yGAjX7Gb.mjs.map +0 -1
  236. package/fesm2022/ngx-t-forms-select-input-element.component-BqtJi4ek.mjs +0 -408
  237. package/fesm2022/ngx-t-forms-select-input-element.component-BqtJi4ek.mjs.map +0 -1
  238. package/fesm2022/ngx-t-forms-selection-options-editor.component-BuXVzo7Z.mjs +0 -169
  239. package/fesm2022/ngx-t-forms-selection-options-editor.component-BuXVzo7Z.mjs.map +0 -1
  240. package/fesm2022/ngx-t-forms-selection-options-editor.component-_glw1cqH.mjs +0 -275
  241. package/fesm2022/ngx-t-forms-selection-options-editor.component-_glw1cqH.mjs.map +0 -1
  242. package/fesm2022/ngx-t-forms-t-workflow-picker.component-CLgN3YM4.mjs +0 -366
  243. package/fesm2022/ngx-t-forms-t-workflow-picker.component-CLgN3YM4.mjs.map +0 -1
  244. package/fesm2022/ngx-t-forms-t-workflow-picker.component-DAwP-cWK.mjs.map +0 -1
  245. package/fesm2022/ngx-t-forms-textarea-input-element.component-SCEBLqJd.mjs +0 -233
  246. package/fesm2022/ngx-t-forms-textarea-input-element.component-SCEBLqJd.mjs.map +0 -1
  247. package/fesm2022/ngx-t-forms-toggle-input-element.component-CoyTMRMa.mjs +0 -305
  248. package/fesm2022/ngx-t-forms-toggle-input-element.component-CoyTMRMa.mjs.map +0 -1
  249. package/fesm2022/ngx-t-forms-validators-config.component-B1Lzs7o2.mjs +0 -1105
  250. package/fesm2022/ngx-t-forms-validators-config.component-B1Lzs7o2.mjs.map +0 -1
  251. package/fesm2022/ngx-t-forms-validators-config.component-CoGSFor3.mjs +0 -574
  252. package/fesm2022/ngx-t-forms-validators-config.component-CoGSFor3.mjs.map +0 -1
  253. package/fesm2022/ngx-t-forms-workflow-adjudication.component-Bz07jv-N.mjs +0 -2923
  254. package/fesm2022/ngx-t-forms-workflow-adjudication.component-Bz07jv-N.mjs.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"ngx-t-forms-rest-api-call-setup.component-BSv_KQIU.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/postman-collections/functions/filterCollectionItems.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/postman-collections/functions/methodColors.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/postman-collections/postman-collections.component.html","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/postman-collections/postman-collections.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/rest-api-call-setup/rest-api-call-setup.component.html","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/rest-api-call-setup/rest-api-call-setup.component.ts"],"sourcesContent":["import type { IFolderItem, IGetPostmanCollections } from 'ngx-t-forms-types';\n\n/** True when an item's own name or description contains the (already-lowercased) search text. */\nfunction itemMatches(item: IFolderItem, searchText: string): boolean {\n return (\n (item.name?.toLowerCase().includes(searchText) ?? false) ||\n (item.description?.toLowerCase().includes(searchText) ?? false)\n );\n}\n\n/**\n * Recursively prunes a folder tree to the items relevant to `searchText`.\n *\n * An item is kept when it matches directly (its whole subtree is then\n * preserved) OR when one of its descendants matches — in which case the\n * ancestor folder is preserved but its children are pruned to only the\n * matching branches. This fixes the legacy defect where ancestor folders of a\n * deep match were dropped (or whole sibling subtrees were retained).\n */\nfunction pruneItems(items: IFolderItem[] | undefined, searchText: string): IFolderItem[] {\n if (!items) {\n return [];\n }\n return items.reduce<IFolderItem[]>((kept, item) => {\n if (itemMatches(item, searchText)) {\n // Direct hit: keep the item and its full subtree intact.\n kept.push(item);\n return kept;\n }\n const matchingChildren = pruneItems(item.item, searchText);\n if (matchingChildren.length > 0) {\n // Ancestor of a match: keep the folder but only the matching branches.\n kept.push({ ...item, item: matchingChildren });\n }\n return kept;\n }, []);\n}\n\n/**\n * Filters a fetched Postman collection by a free-text search key, preserving\n * the ancestor folders of every match. An empty/whitespace key returns the\n * full set of top-level items unchanged.\n */\nexport function filterCollectionItems(\n collections: IGetPostmanCollections,\n searchKey: string,\n): IFolderItem[] {\n const items = collections.collection.item;\n const searchText = searchKey.trim().toLowerCase();\n if (!searchText) {\n return items;\n }\n return pruneItems(items, searchText);\n}\n","/**\n * Maps an HTTP method to its design-token CSS colour value.\n *\n * Returns a `var(--lib-forms-method-*)` reference (dark-mode safe, no hex /\n * named colours) so the tree can colour-code endpoints. Unknown methods fall\n * back to `currentColor`. Matching is case-insensitive.\n */\nexport function methodColor(method: string): string {\n switch (method.toUpperCase()) {\n case 'GET':\n return 'var(--lib-forms-method-get)';\n case 'POST':\n return 'var(--lib-forms-method-post)';\n case 'PUT':\n return 'var(--lib-forms-method-put)';\n case 'PATCH':\n return 'var(--lib-forms-method-patch)';\n case 'DELETE':\n return 'var(--lib-forms-method-delete)';\n default:\n return 'currentColor';\n }\n}\n","@if (loading()) {\n <div class=\"loading-container\">\n <mat-spinner diameter=\"36\"></mat-spinner>\n </div>\n} @else {\n <lib-search-field\n class=\"search\"\n placeholder=\"Search api\"\n [(value)]=\"searchKey\" />\n\n @if (error(); as err) {\n <lib-empty-state icon=\"error_outline\" [message]=\"err.message\" />\n } @else if (isEmpty()) {\n <lib-empty-state\n icon=\"search_off\"\n [message]=\"searchKey() ? 'No endpoints match your search' : 'No endpoints in this collection'\" />\n } @else {\n <mat-tree\n [dataSource]=\"treeComponent.dataSource\"\n [treeControl]=\"treeComponent.treeControl\">\n <mat-tree-node *matTreeNodeDef=\"let node\" matTreeNodePadding>\n @if (isEndpointLoading(node.value.id)) {\n <mat-spinner diameter=\"22\" class=\"loading-spinner\"></mat-spinner>\n }\n @for (line of getNodeLines(node.level); track line) {\n <div class=\"line\" [style.left.px]=\"line * 40 + 8\"></div>\n }\n @if (node.value?.request; as request) {\n <button\n mat-button\n class=\"item\"\n [disabled]=\"(!request.body?.raw && request.method === 'POST') || !request.url?.raw\"\n [matTooltip]=\"request.url?.raw || 'Invalid Postman config, missing Endpoint URL'\"\n (click)=\"selectNode(node.value)\">\n <span class=\"node-key method\" [style.color]=\"methodColor(request.method)\">\n {{ request.method }}\n </span>\n <span>{{ node.key }}</span>\n </button>\n }\n </mat-tree-node>\n\n <mat-tree-node *matTreeNodeDef=\"let node; when: hasChild\" matTreeNodePadding>\n <button\n mat-icon-button\n matTreeNodeToggle\n class=\"toggle\"\n [attr.aria-label]=\"'Toggle ' + node.key\">\n <mat-icon>\n {{ treeComponent.treeControl.isExpanded(node) ? 'expand_more' : 'chevron_right' }}\n </mat-icon>\n </button>\n <mat-icon class=\"folder-icon\">\n {{ treeComponent.treeControl.isExpanded(node) ? 'folder_open' : 'folder' }}\n </mat-icon>\n <span class=\"folder-label\">{{ node.key }}</span>\n </mat-tree-node>\n </mat-tree>\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ViewEncapsulation,\n computed,\n effect,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { HttpClient, HttpErrorResponse } from '@angular/common/http';\nimport { catchError, take, tap, throwError } from 'rxjs';\n\nimport { MatTreeModule } from '@angular/material/tree';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { MatTooltipModule } from '@angular/material/tooltip';\n\nimport type {\n FlatNode,\n IFolderItem,\n IGetPostmanCollections,\n IPostmanCollectionConfig,\n TreeNode,\n} from 'ngx-t-forms-types';\n\nimport { TreeComponent } from '../api-value-access-rules/functions/convertDataToTree';\nimport { convertPostmanFolderItemsToTree } from './functions/convertPostmanCollectionToTree';\nimport { filterCollectionItems } from './functions/filterCollectionItems';\nimport { methodColor } from './functions/methodColors';\nimport { SearchFieldComponent } from '../_shared/search-field/search-field.component';\nimport { EmptyStateComponent } from '../_shared/empty-state/empty-state.component';\nimport { _isEqual } from '../../../../shared/functions/isEqual';\n\n/**\n * Internal Postman-collection picker used by `rest-api-call-setup`.\n *\n * Fetches a Postman collection over HTTP and renders it as a searchable tree of\n * endpoints, emitting the selected folder item to the parent. Embedded\n * component — owns only its tree content; the parent renders any field\n * label / hint / errors.\n */\n@Component({\n selector: 'lib-postman-collections',\n templateUrl: './postman-collections.component.html',\n styleUrls: ['./postman-collections.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.Emulated,\n host: { 'class': 'lib-postman-collections' },\n imports: [\n MatTreeModule,\n MatIconModule,\n MatButtonModule,\n MatProgressSpinnerModule,\n MatTooltipModule,\n SearchFieldComponent,\n EmptyStateComponent,\n ],\n})\nexport class PostmanCollectionsComponent {\n /** Postman API config (collection URL + key). When invalid the component shows an error. */\n readonly postmanCollectionConfig = input<IPostmanCollectionConfig | undefined>(undefined);\n\n /** Endpoint IDs currently in a loading state (rendered with a spinner in the tree). */\n readonly loadingEndPoints = input<string[]>([]);\n\n /** Emits when the user picks an endpoint node from the tree. */\n readonly nodeSelectionChanged = output<IFolderItem>();\n\n readonly #httpClient = inject(HttpClient);\n readonly #destroyRef = inject(DestroyRef);\n\n /** Imperative mat-tree backing store reused from the access-rules tree. */\n protected readonly treeComponent = new TreeComponent();\n\n /** Raw fetched collection; `undefined` until the request resolves. */\n readonly #collection = signal<IGetPostmanCollections | undefined>(undefined);\n\n /** Current search text, two-way bound to the search field. */\n protected readonly searchKey = signal<string>('');\n\n /** Request-in-flight flag. */\n protected readonly loading = signal<boolean>(false);\n\n /** Last error (invalid config or HTTP failure); `undefined` when healthy. */\n protected readonly error = signal<HttpErrorResponse | undefined>(undefined);\n\n /** Folder items after applying the current search, ancestor-folders preserved. */\n protected readonly filteredItems = computed<IFolderItem[]>(() => {\n const collection = this.#collection();\n if (!collection) {\n return [];\n }\n return filterCollectionItems(collection, this.searchKey());\n });\n\n /** Tree nodes derived from {@link filteredItems}. */\n readonly #treeData = computed<TreeNode[]>(() =>\n convertPostmanFolderItemsToTree(this.filteredItems()),\n );\n\n /** True once a collection is loaded but the current search yields nothing. */\n protected readonly isEmpty = computed<boolean>(\n () => Boolean(this.#collection()) && this.#treeData().length === 0,\n );\n\n /** Cache for {@link getNodeLines} so identical levels reuse one array. */\n readonly #nodeLinesCache = new Map<number, readonly number[]>();\n\n /** Push derived tree data into the imperative mat-tree data source. */\n protected readonly syncTree = effect(() => {\n this.treeComponent.assignDataSourceData(this.#treeData());\n });\n\n /** Last config the effect acted on; guards against re-fetching when an unstable parent binding hands us a new-but-equal reference. */\n #loadedConfig: IPostmanCollectionConfig | undefined;\n #hasLoadedOnce = false;\n\n /** Fetch (or re-fetch) the collection only when the config input's content actually changes. */\n protected readonly loadOnConfigChange = effect(() => {\n const config = this.postmanCollectionConfig();\n if (this.#hasLoadedOnce && _isEqual(this.#loadedConfig, config)) {\n return;\n }\n this.#hasLoadedOnce = true;\n this.#loadedConfig = config;\n this.#loadCollection(config);\n });\n\n #isValidConfig(config: IPostmanCollectionConfig | undefined): config is IPostmanCollectionConfig {\n return Boolean(config?.collectionUrl) && Boolean(config?.collectionKey);\n }\n\n #loadCollection(config: IPostmanCollectionConfig | undefined): void {\n if (!this.#isValidConfig(config)) {\n this.#collection.set(undefined);\n this.loading.set(false);\n this.error.set(new HttpErrorResponse({ error: 'Invalid Postman Collection Config' }));\n return;\n }\n\n const requestOptions = {\n params: { apikey: config.collectionKey, clearSystemHeaders: true },\n headers: { 'Content-Type': 'application/json' },\n };\n\n this.loading.set(true);\n this.#httpClient\n .get<IGetPostmanCollections>(config.collectionUrl, requestOptions)\n .pipe(\n take(1),\n tap(data => {\n this.#collection.set(data);\n this.error.set(undefined);\n this.loading.set(false);\n }),\n catchError((err: HttpErrorResponse) => {\n this.loading.set(false);\n this.error.set(err);\n return throwError(() => err);\n }),\n takeUntilDestroyed(this.#destroyRef),\n )\n .subscribe();\n }\n\n protected selectNode(node: IFolderItem): void {\n this.nodeSelectionChanged.emit(node);\n }\n\n protected methodColor(method: string): string {\n return methodColor(method);\n }\n\n protected isEndpointLoading(id: string): boolean {\n return this.loadingEndPoints().includes(id);\n }\n\n protected hasChild = (_: number, node: FlatNode): boolean =>\n this.treeComponent.hasChild(_, node);\n\n /** Memoised 1..level vertical guide-line indices for tree indentation. */\n protected getNodeLines(level: number): readonly number[] {\n const cached = this.#nodeLinesCache.get(level);\n if (cached) {\n return cached;\n }\n const lines = Array.from({ length: level }, (_, i) => i + 1);\n this.#nodeLinesCache.set(level, lines);\n return lines;\n }\n}\n","@switch (mode()) {\n @case ('no-collection') {\n <lib-empty-state\n icon=\"link_off\"\n message=\"No Postman collection configured. Add a collection id and API key to pick an endpoint.\" />\n }\n\n @case ('selected') {\n <div class=\"lib-rest-api-call-setup__card\">\n <button\n type=\"button\"\n class=\"lib-rest-api-call-setup__endpoint\"\n mat-button\n [disabled]=\"disabled()\"\n [matTooltip]=\"currentValue()?.httpEndPoint ?? ''\"\n (click)=\"clearValue()\">\n <span class=\"lib-rest-api-call-setup__method\" [style.color]=\"methodColor()\">\n {{ currentValue()?.httpMethod }}\n </span>\n <span class=\"lib-rest-api-call-setup__name\">\n {{ currentValue()?.name }}\n </span>\n <mat-icon class=\"lib-rest-api-call-setup__clear\" aria-hidden=\"true\">close</mat-icon>\n </button>\n </div>\n }\n\n @case ('picker') {\n <lib-postman-collections\n class=\"lib-rest-api-call-setup__picker\"\n [class.lib-rest-api-call-setup__picker--disabled]=\"disabled()\"\n [postmanCollectionConfig]=\"postmanCollectionConfig()!\"\n [loadingEndPoints]=\"loadingEndPoints()\"\n (nodeSelectionChanged)=\"nodeSelectionChanged($event)\" />\n }\n}\n\n@if (disabled()) {\n <p class=\"lib-rest-api-call-setup__lock\">\n <mat-icon aria-hidden=\"true\">lock</mat-icon>\n <span>This endpoint is locked and cannot be changed.</span>\n </p>\n}\n\n<lib-error-list [errors]=\"errors()\" />\n","import {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n computed,\n effect,\n input,\n output,\n signal,\n} from '@angular/core';\nimport type { Observable } from 'rxjs';\n\nimport {\n APIDataFetchingConfigurationInterface,\n DataSources,\n IFolderItem,\n IPostmanCollectionConfig,\n JsDataTypes,\n MinimumInputRequiredInterface,\n} from 'ngx-t-forms-types';\n\nimport type { IConfigElementError } from '../../t-dynamic-data-edit.component';\nimport { _isEqual } from '../../../../shared/functions/isEqual';\nimport { EmptyStateComponent } from '../_shared/empty-state/empty-state.component';\nimport { ErrorListComponent } from '../_shared/error-list/error-list.component';\nimport { PostmanCollectionsComponent } from '../postman-collections/postman-collections.component';\n\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatTooltipModule } from '@angular/material/tooltip';\n\nlet nextId = 0;\n\n/** Discrete UI mode this editor is in, derived from its inputs and value. */\ntype SetupMode = 'no-collection' | 'picker' | 'selected';\n\n/** HTTP method understood by the method-colour map; falls back to neutral. */\ntype HttpMethod = APIDataFetchingConfigurationInterface['httpMethod'];\n\n/** CSS-variable colour per HTTP method (dark-mode-safe; never a hex literal). */\nconst METHOD_COLOR: Readonly<Record<HttpMethod, string>> = {\n GET: 'var(--lib-forms-method-get)',\n POST: 'var(--lib-forms-method-post)',\n PUT: 'var(--lib-forms-method-put)',\n DELETE: 'var(--lib-forms-method-delete)',\n};\n\n/**\n * Parses a Postman raw request body into a plain object.\n *\n * Returns `{}` for an absent, blank or non-JSON body (a `graphql` / `formdata`\n * mode, or raw text with comments). Nesting and key names are preserved exactly as\n * authored — this is the document template mode seeds from.\n *\n * @param raw - `request.body.raw` from the Postman collection.\n * @returns The parsed body, or `{}` when there is nothing usable.\n */\nfunction parseRawBody(raw: string | undefined): Record<string, unknown> {\n if (typeof raw !== 'string' || raw.trim() === '') return {};\n try {\n const parsed: unknown = JSON.parse(raw);\n return parsed !== null && typeof parsed === 'object' ? (parsed as Record<string, unknown>) : {};\n } catch {\n return {};\n }\n}\n\n/** True when a parsed body carries at least one key — i.e. it is worth persisting. */\nfunction isNonEmptyBody(body: Record<string, unknown>): boolean {\n return Object.keys(body).length > 0;\n}\n\n/** Maps a JS `typeof` string to the shared {@link JsDataTypes} enum member. */\nfunction toJsDataType(value: unknown): JsDataTypes {\n switch (typeof value) {\n case 'string':\n return JsDataTypes.String;\n case 'number':\n return JsDataTypes.Number;\n case 'bigint':\n return JsDataTypes.BigInt;\n case 'boolean':\n return JsDataTypes.Boolean;\n case 'symbol':\n return JsDataTypes.Symbol;\n case 'function':\n return JsDataTypes.Function;\n case 'object':\n return JsDataTypes.Object;\n default:\n return JsDataTypes.Undefined;\n }\n}\n\n/**\n * Lets the user pick an API endpoint from a Postman collection and exposes the\n * resulting {@link APIDataFetchingConfigurationInterface}. Renders one of three\n * states — no collection configured, the endpoint picker, or the selected\n * endpoint card — and embeds {@link PostmanCollectionsComponent} for the tree.\n *\n * Internal editor consumed by `t-dynamic-data-edit` and `data-source-picker`;\n * the parent owns the field label, hint and validation chrome.\n *\n * @example\n * <lib-rest-api-call-setup\n * [postmanCollectionConfig]=\"config()\"\n * [value]=\"value()\"\n * [disabled]=\"disabled()\"\n * (valueChanged)=\"onApiConfig($event)\" />\n */\n@Component({\n selector: 'lib-rest-api-call-setup',\n templateUrl: './rest-api-call-setup.component.html',\n styleUrl: './rest-api-call-setup.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.Emulated,\n imports: [\n PostmanCollectionsComponent,\n EmptyStateComponent,\n ErrorListComponent,\n MatButtonModule,\n MatIconModule,\n MatTooltipModule,\n ],\n host: {\n 'class': 'lib-rest-api-call-setup',\n '[id]': 'hostId()',\n '[attr.data-mode]': 'mode()',\n },\n})\nexport class RestApiCallSetupComponent {\n readonly #fallbackId = `lib-rest-api-call-setup-${nextId++}`;\n\n /** Optional consumer-provided host id. */\n readonly id = input<string | undefined>(undefined);\n\n /** Postman collection that backs the picker. */\n readonly postmanCollectionConfig = input<IPostmanCollectionConfig | undefined>(undefined);\n\n /**\n * Optional HTTP GET function for fetching sample responses. Retained on the\n * contract for parity; this editor does not invoke it (selection is resolved\n * from the Postman collection the parent already loads).\n */\n readonly httpGetDataFunction = input<\n ((url: string, options: Record<string, unknown>) => Observable<unknown>) | undefined\n >(undefined);\n\n /** Disables the picker and shows a lock affordance. */\n readonly disabled = input<boolean>(false);\n\n /** Current configuration value. */\n readonly value = input<APIDataFetchingConfigurationInterface | undefined>(undefined);\n\n /** Validation errors surfaced from the parent editor. */\n readonly errors = input<IConfigElementError[] | undefined>([]);\n\n /** Emits whenever the user selects a new endpoint or clears the value. */\n readonly valueChanged = output<APIDataFetchingConfigurationInterface | undefined>();\n\n /** Endpoint IDs currently loading sample data (forwarded to the picker). */\n protected readonly loadingEndPoints = signal<string[]>([]);\n\n /** Local snapshot of the value, bridged from the `value` input. */\n readonly #localValue = signal<APIDataFetchingConfigurationInterface | undefined>(undefined);\n\n /** Read-only view of the active configuration for the template. */\n protected readonly currentValue = this.#localValue.asReadonly();\n\n /** Host id: consumer-provided or a stable per-instance fallback. */\n protected readonly hostId = computed<string>(() => this.id() ?? this.#fallbackId);\n\n /** True once the snapshot carries a usable endpoint + method. */\n protected readonly hasValidValue = computed<boolean>(() => {\n const v = this.#localValue();\n return Boolean(v?.httpEndPoint) && Boolean(v?.httpMethod);\n });\n\n /** Discrete UI mode driving the template's `@switch`. */\n protected readonly mode = computed<SetupMode>(() => {\n if (!this.postmanCollectionConfig()) return 'no-collection';\n return this.hasValidValue() ? 'selected' : 'picker';\n });\n\n /** Token-based colour for the selected endpoint's HTTP method badge. */\n protected readonly methodColor = computed<string>(() => {\n const method = this.#localValue()?.httpMethod;\n return method && method in METHOD_COLOR ? METHOD_COLOR[method] : 'currentColor';\n });\n\n /**\n * Bridge the `value` input into the local mutable snapshot, de-duping with a\n * deep structural compare (replaces the legacy `JSON.stringify` equality so\n * key order and `undefined` no longer cause spurious resets).\n */\n protected readonly valueBridge = effect(() => {\n const next = this.value();\n if (!_isEqual(next, this.#localValue())) {\n this.#localValue.set(next);\n }\n });\n\n /**\n * Maps the selected tree node into the API config and emits it.\n *\n * Gated on `request` alone. It used to also require `node.response` — a saved\n * Postman *example response* — even though nothing here reads it. An endpoint\n * without one could not be selected at all: the click was a silent no-op, the\n * config was never rebuilt, `requestBody` was never captured, and template mode\n * went on showing whatever skeleton was already persisted. A folder node (the\n * only other thing the picker can emit) has no `request`, so that check alone\n * is the correct guard.\n */\n protected nodeSelectionChanged(node: IFolderItem): void {\n const { id, name, request } = node;\n\n if (!request) return;\n\n const requestBody = parseRawBody(request.body?.raw);\n\n const isPost = request.method === 'POST';\n const minimumInputRequired: MinimumInputRequiredInterface[] = isPost\n ? this.#extractRequiredInputs(requestBody)\n : [];\n\n const config: APIDataFetchingConfigurationInterface = {\n _id: id,\n name,\n httpEndPoint: request.url.raw,\n httpMethod: request.method,\n source: DataSources.Api,\n postFormData: isPost,\n backEndConfig: {\n minimumInputRequired,\n // The endpoint's untouched body is the ONLY faithful record of a nested\n // payload (`minimumInputRequired` entries carry a `name`, not a path), so it\n // is what seeds template mode. Captured for every method that actually sends\n // one — keyed on the body being present, not on `method === 'POST'`, because\n // PUT/PATCH bodies are equally real. Omitted entirely when there is nothing\n // to store, so `deriveDefaultPayloadTemplate` falls back cleanly.\n ...(isNonEmptyBody(requestBody)\n ? { requestBody: requestBody as APIDataFetchingConfigurationInterface['backEndConfig']['requestBody'] }\n : {}),\n },\n };\n\n this.#localValue.set(config);\n this.valueChanged.emit(config);\n }\n\n /**\n * Clears the selection and emits a single `undefined` (the legacy double-emit\n * — `undefined` then a stub `{ source }` — was removed; see FLAG).\n */\n protected clearValue(): void {\n this.#localValue.set(undefined);\n this.valueChanged.emit(undefined);\n }\n\n /**\n * Derives the POST endpoint's required inputs from the request body. Top-level\n * keys are primary; entries under `data` are secondary (non-primary).\n *\n * **Deliberately flat.** `MinimumInputRequiredInterface` has a `name`, not a path,\n * so a nested value can only ever become one `JsDataTypes.Object` entry — mapping\n * `filter.archive` is not expressible here. That is what template mode is for, and\n * why the untouched `requestBody` is captured alongside this (see the caller): it is\n * the only faithful record of a nested payload.\n */\n #extractRequiredInputs(requestBody: Record<string, unknown>): MinimumInputRequiredInterface[] {\n const { data, ...rest } = requestBody;\n const dataEntries: Record<string, unknown> =\n data && typeof data === 'object' ? { ...data } : {};\n\n const primaryKeys = Object.entries(rest).map(([key, val]) =>\n this.#toRequiredInput(key, val, true),\n );\n const secondaryKeys = Object.entries(dataEntries).map(([key, val]) =>\n this.#toRequiredInput(key, val, false),\n );\n\n return [...primaryKeys, ...secondaryKeys];\n }\n\n #toRequiredInput(\n name: string,\n value: unknown,\n primaryKey: boolean,\n ): MinimumInputRequiredInterface {\n return { name, type: toJsDataType(value), primaryKey };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A,CAAA,SAAA,CAAA,CAAA,CAKC;YALD,EAAA,CAAA,aAAA,CAAA,GAAA,CAAA,QAAA,EAAA,GAAA,CAAA,GAAA,CAAA,CAAA,CAKC;YAEe,EAAA,CAAA,SAAA,EAAmB;YAAnB,EAAA,CAAA,UAAA,CAAA,QAAA,EAAA,GAAA,CAAA,MAAA,EAAA,CAAmB;4BCyE/B,2BAA2B;YAC3B,mBAAmB;YACnB,kBAAkB;YAClB,eAAe,EAAAC,EAAA,CAAA,SAAA,EACf,aAAa,EAAAD,EAAA,CAAA,OAAA,EACb,gBAAgB,EAAAE,EAAA,CAAA,UAAA,CAAA,EAAA,MAAA,EAAA,CAAA,+uCAAA,CAAA,EAAA,eAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;iFAQP,yBAAyB,EAAA,CAAA;cApBrC,SAAS;2BACE,yBAAyB,EAAA,eAAA,EAGlB,uBAAuB,CAAC,MAAM,iBAChC,iBAAiB,CAAC,QAAQ,EAAA,OAAA,EAChC;oBACP,2BAA2B;oBAC3B,mBAAmB;oBACnB,kBAAkB;oBAClB,eAAe;oBACf,aAAa;oBACb,gBAAgB;iBACjB,EAAA,IAAA,EACK;AACJ,oBAAA,OAAO,EAAE,yBAAyB;AAClC,oBAAA,MAAM,EAAE,UAAU;AAClB,oBAAA,kBAAkB,EAAE,QAAQ;AAC7B,iBAAA,EAAA,QAAA,EAAA,0/CAAA,EAAA,MAAA,EAAA,CAAA,imCAAA,CAAA,EAAA;;kFAEU,yBAAyB,EAAA,EAAA,SAAA,EAAA,2BAAA,EAAA,QAAA,EAAA,kGAAA,EAAA,UAAA,EAAA,GAAA,EAAA,CAAA,CAAA,CAAA,CAAA,GAAA;;;;"}
@@ -1,444 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { input, output, inject, DestroyRef, signal, computed, effect, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { JsDataTypes, DataSources } from 'ngx-t-forms-types';
4
- import { j as TreeComponent, k as convertPostmanFolderItemsToTree, _ as _isEqual, E as EmptyStateComponent, l as ErrorListComponent } from './ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs';
5
- import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
6
- import { HttpClient, HttpErrorResponse } from '@angular/common/http';
7
- import { take, tap, catchError, throwError } from 'rxjs';
8
- import * as i1 from '@angular/material/tree';
9
- import { MatTreeModule } from '@angular/material/tree';
10
- import * as i3 from '@angular/material/icon';
11
- import { MatIconModule } from '@angular/material/icon';
12
- import * as i2 from '@angular/material/button';
13
- import { MatButtonModule } from '@angular/material/button';
14
- import * as i4 from '@angular/material/progress-spinner';
15
- import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
16
- import * as i5 from '@angular/material/tooltip';
17
- import { MatTooltipModule } from '@angular/material/tooltip';
18
- import { S as SearchFieldComponent } from './ngx-t-forms-search-field.component-B2ZO7lqO.mjs';
19
-
20
- /** True when an item's own name or description contains the (already-lowercased) search text. */
21
- function itemMatches(item, searchText) {
22
- return ((item.name?.toLowerCase().includes(searchText) ?? false) ||
23
- (item.description?.toLowerCase().includes(searchText) ?? false));
24
- }
25
- /**
26
- * Recursively prunes a folder tree to the items relevant to `searchText`.
27
- *
28
- * An item is kept when it matches directly (its whole subtree is then
29
- * preserved) OR when one of its descendants matches — in which case the
30
- * ancestor folder is preserved but its children are pruned to only the
31
- * matching branches. This fixes the legacy defect where ancestor folders of a
32
- * deep match were dropped (or whole sibling subtrees were retained).
33
- */
34
- function pruneItems(items, searchText) {
35
- if (!items) {
36
- return [];
37
- }
38
- return items.reduce((kept, item) => {
39
- if (itemMatches(item, searchText)) {
40
- // Direct hit: keep the item and its full subtree intact.
41
- kept.push(item);
42
- return kept;
43
- }
44
- const matchingChildren = pruneItems(item.item, searchText);
45
- if (matchingChildren.length > 0) {
46
- // Ancestor of a match: keep the folder but only the matching branches.
47
- kept.push({ ...item, item: matchingChildren });
48
- }
49
- return kept;
50
- }, []);
51
- }
52
- /**
53
- * Filters a fetched Postman collection by a free-text search key, preserving
54
- * the ancestor folders of every match. An empty/whitespace key returns the
55
- * full set of top-level items unchanged.
56
- */
57
- function filterCollectionItems(collections, searchKey) {
58
- const items = collections.collection.item;
59
- const searchText = searchKey.trim().toLowerCase();
60
- if (!searchText) {
61
- return items;
62
- }
63
- return pruneItems(items, searchText);
64
- }
65
-
66
- /**
67
- * Maps an HTTP method to its design-token CSS colour value.
68
- *
69
- * Returns a `var(--lib-forms-method-*)` reference (dark-mode safe, no hex /
70
- * named colours) so the tree can colour-code endpoints. Unknown methods fall
71
- * back to `currentColor`. Matching is case-insensitive.
72
- */
73
- function methodColor(method) {
74
- switch (method.toUpperCase()) {
75
- case 'GET':
76
- return 'var(--lib-forms-method-get)';
77
- case 'POST':
78
- return 'var(--lib-forms-method-post)';
79
- case 'PUT':
80
- return 'var(--lib-forms-method-put)';
81
- case 'PATCH':
82
- return 'var(--lib-forms-method-patch)';
83
- case 'DELETE':
84
- return 'var(--lib-forms-method-delete)';
85
- default:
86
- return 'currentColor';
87
- }
88
- }
89
-
90
- /**
91
- * Internal Postman-collection picker used by `rest-api-call-setup`.
92
- *
93
- * Fetches a Postman collection over HTTP and renders it as a searchable tree of
94
- * endpoints, emitting the selected folder item to the parent. Embedded
95
- * component — owns only its tree content; the parent renders any field
96
- * label / hint / errors.
97
- */
98
- class PostmanCollectionsComponent {
99
- constructor() {
100
- /** Postman API config (collection URL + key). When invalid the component shows an error. */
101
- this.postmanCollectionConfig = input(undefined, ...(ngDevMode ? [{ debugName: "postmanCollectionConfig" }] : /* istanbul ignore next */ []));
102
- /** Endpoint IDs currently in a loading state (rendered with a spinner in the tree). */
103
- this.loadingEndPoints = input([], ...(ngDevMode ? [{ debugName: "loadingEndPoints" }] : /* istanbul ignore next */ []));
104
- /** Emits when the user picks an endpoint node from the tree. */
105
- this.nodeSelectionChanged = output();
106
- this.#httpClient = inject(HttpClient);
107
- this.#destroyRef = inject(DestroyRef);
108
- /** Imperative mat-tree backing store reused from the access-rules tree. */
109
- this.treeComponent = new TreeComponent();
110
- /** Raw fetched collection; `undefined` until the request resolves. */
111
- this.#collection = signal(undefined, ...(ngDevMode ? [{ debugName: "#collection" }] : /* istanbul ignore next */ []));
112
- /** Current search text, two-way bound to the search field. */
113
- this.searchKey = signal('', ...(ngDevMode ? [{ debugName: "searchKey" }] : /* istanbul ignore next */ []));
114
- /** Request-in-flight flag. */
115
- this.loading = signal(false, ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
116
- /** Last error (invalid config or HTTP failure); `undefined` when healthy. */
117
- this.error = signal(undefined, ...(ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []));
118
- /** Folder items after applying the current search, ancestor-folders preserved. */
119
- this.filteredItems = computed(() => {
120
- const collection = this.#collection();
121
- if (!collection) {
122
- return [];
123
- }
124
- return filterCollectionItems(collection, this.searchKey());
125
- }, ...(ngDevMode ? [{ debugName: "filteredItems" }] : /* istanbul ignore next */ []));
126
- /** Tree nodes derived from {@link filteredItems}. */
127
- this.#treeData = computed(() => convertPostmanFolderItemsToTree(this.filteredItems()), ...(ngDevMode ? [{ debugName: "#treeData" }] : /* istanbul ignore next */ []));
128
- /** True once a collection is loaded but the current search yields nothing. */
129
- this.isEmpty = computed(() => Boolean(this.#collection()) && this.#treeData().length === 0, ...(ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []));
130
- /** Cache for {@link getNodeLines} so identical levels reuse one array. */
131
- this.#nodeLinesCache = new Map();
132
- /** Push derived tree data into the imperative mat-tree data source. */
133
- this.syncTree = effect(() => {
134
- this.treeComponent.assignDataSourceData(this.#treeData());
135
- }, ...(ngDevMode ? [{ debugName: "syncTree" }] : /* istanbul ignore next */ []));
136
- this.#hasLoadedOnce = false;
137
- /** Fetch (or re-fetch) the collection only when the config input's content actually changes. */
138
- this.loadOnConfigChange = effect(() => {
139
- const config = this.postmanCollectionConfig();
140
- if (this.#hasLoadedOnce && _isEqual(this.#loadedConfig, config)) {
141
- return;
142
- }
143
- this.#hasLoadedOnce = true;
144
- this.#loadedConfig = config;
145
- this.#loadCollection(config);
146
- }, ...(ngDevMode ? [{ debugName: "loadOnConfigChange" }] : /* istanbul ignore next */ []));
147
- this.hasChild = (_, node) => this.treeComponent.hasChild(_, node);
148
- }
149
- #httpClient;
150
- #destroyRef;
151
- /** Raw fetched collection; `undefined` until the request resolves. */
152
- #collection;
153
- /** Tree nodes derived from {@link filteredItems}. */
154
- #treeData;
155
- /** Cache for {@link getNodeLines} so identical levels reuse one array. */
156
- #nodeLinesCache;
157
- /** Last config the effect acted on; guards against re-fetching when an unstable parent binding hands us a new-but-equal reference. */
158
- #loadedConfig;
159
- #hasLoadedOnce;
160
- #isValidConfig(config) {
161
- return Boolean(config?.collectionUrl) && Boolean(config?.collectionKey);
162
- }
163
- #loadCollection(config) {
164
- if (!this.#isValidConfig(config)) {
165
- this.#collection.set(undefined);
166
- this.loading.set(false);
167
- this.error.set(new HttpErrorResponse({ error: 'Invalid Postman Collection Config' }));
168
- return;
169
- }
170
- const requestOptions = {
171
- params: { apikey: config.collectionKey, clearSystemHeaders: true },
172
- headers: { 'Content-Type': 'application/json' },
173
- };
174
- this.loading.set(true);
175
- this.#httpClient
176
- .get(config.collectionUrl, requestOptions)
177
- .pipe(take(1), tap(data => {
178
- this.#collection.set(data);
179
- this.error.set(undefined);
180
- this.loading.set(false);
181
- }), catchError((err) => {
182
- this.loading.set(false);
183
- this.error.set(err);
184
- return throwError(() => err);
185
- }), takeUntilDestroyed(this.#destroyRef))
186
- .subscribe();
187
- }
188
- selectNode(node) {
189
- this.nodeSelectionChanged.emit(node);
190
- }
191
- methodColor(method) {
192
- return methodColor(method);
193
- }
194
- isEndpointLoading(id) {
195
- return this.loadingEndPoints().includes(id);
196
- }
197
- /** Memoised 1..level vertical guide-line indices for tree indentation. */
198
- getNodeLines(level) {
199
- const cached = this.#nodeLinesCache.get(level);
200
- if (cached) {
201
- return cached;
202
- }
203
- const lines = Array.from({ length: level }, (_, i) => i + 1);
204
- this.#nodeLinesCache.set(level, lines);
205
- return lines;
206
- }
207
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: PostmanCollectionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
208
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: PostmanCollectionsComponent, isStandalone: true, selector: "lib-postman-collections", inputs: { postmanCollectionConfig: { classPropertyName: "postmanCollectionConfig", publicName: "postmanCollectionConfig", isSignal: true, isRequired: false, transformFunction: null }, loadingEndPoints: { classPropertyName: "loadingEndPoints", publicName: "loadingEndPoints", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { nodeSelectionChanged: "nodeSelectionChanged" }, host: { classAttribute: "lib-postman-collections" }, ngImport: i0, template: "@if (loading()) {\n <div class=\"loading-container\">\n <mat-spinner diameter=\"36\"></mat-spinner>\n </div>\n} @else {\n <lib-search-field\n class=\"search\"\n placeholder=\"Search api\"\n [(value)]=\"searchKey\" />\n\n @if (error(); as err) {\n <lib-empty-state icon=\"error_outline\" [message]=\"err.message\" />\n } @else if (isEmpty()) {\n <lib-empty-state\n icon=\"search_off\"\n [message]=\"searchKey() ? 'No endpoints match your search' : 'No endpoints in this collection'\" />\n } @else {\n <mat-tree\n [dataSource]=\"treeComponent.dataSource\"\n [treeControl]=\"treeComponent.treeControl\">\n <mat-tree-node *matTreeNodeDef=\"let node\" matTreeNodePadding>\n @if (isEndpointLoading(node.value.id)) {\n <mat-spinner diameter=\"22\" class=\"loading-spinner\"></mat-spinner>\n }\n @for (line of getNodeLines(node.level); track line) {\n <div class=\"line\" [style.left.px]=\"line * 40 + 8\"></div>\n }\n @if (node.value?.request; as request) {\n <button\n mat-button\n class=\"item\"\n [disabled]=\"(!request.body?.raw && request.method === 'POST') || !request.url?.raw\"\n [matTooltip]=\"request.url?.raw || 'Invalid Postman config, missing Endpoint URL'\"\n (click)=\"selectNode(node.value)\">\n <span class=\"node-key method\" [style.color]=\"methodColor(request.method)\">\n {{ request.method }}\n </span>\n <span>{{ node.key }}</span>\n </button>\n }\n </mat-tree-node>\n\n <mat-tree-node *matTreeNodeDef=\"let node; when: hasChild\" matTreeNodePadding>\n <button\n mat-icon-button\n matTreeNodeToggle\n class=\"toggle\"\n [attr.aria-label]=\"'Toggle ' + node.key\">\n <mat-icon>\n {{ treeComponent.treeControl.isExpanded(node) ? 'expand_more' : 'chevron_right' }}\n </mat-icon>\n </button>\n <mat-icon class=\"folder-icon\">\n {{ treeComponent.treeControl.isExpanded(node) ? 'folder_open' : 'folder' }}\n </mat-icon>\n <span class=\"folder-label\">{{ node.key }}</span>\n </mat-tree-node>\n </mat-tree>\n }\n}\n", styles: [":host{display:block}.search{margin-bottom:1rem}mat-tree{background:none}:host mat-tree-node{min-height:28px;height:32px}.toggle{padding:0}.folder-icon{color:var(--lib-forms-on-surface-variant)}.folder-label{margin-left:.5rem;font-weight:500}.item{display:flex;width:100%;justify-content:left;text-align:left;font-size:small;font-weight:400;white-space:nowrap;overflow:hidden}.method{display:inline-block;width:38px;text-align:right}.line{position:absolute;height:32px;left:48px;width:1px;background:color-mix(in srgb,var(--lib-forms-outline) 40%,transparent)}.loading-container{display:flex;align-items:center;justify-content:center;height:100%;padding:2rem}\n"], dependencies: [{ kind: "ngmodule", type: MatTreeModule }, { kind: "directive", type: i1.MatTreeNodeDef, selector: "[matTreeNodeDef]", inputs: ["matTreeNodeDefWhen", "matTreeNode"] }, { kind: "directive", type: i1.MatTreeNodePadding, selector: "[matTreeNodePadding]", inputs: ["matTreeNodePadding", "matTreeNodePaddingIndent"] }, { kind: "directive", type: i1.MatTreeNodeToggle, selector: "[matTreeNodeToggle]", inputs: ["matTreeNodeToggleRecursive"] }, { kind: "component", type: i1.MatTree, selector: "mat-tree", exportAs: ["matTree"] }, { kind: "directive", type: i1.MatTreeNode, selector: "mat-tree-node", inputs: ["tabIndex", "disabled"], outputs: ["activation", "expandedChange"], exportAs: ["matTreeNode"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: SearchFieldComponent, selector: "lib-search-field", inputs: ["value", "placeholder", "resultCount"], outputs: ["valueChange"] }, { kind: "component", type: EmptyStateComponent, selector: "lib-empty-state", inputs: ["icon", "message"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
209
- }
210
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: PostmanCollectionsComponent, decorators: [{
211
- type: Component,
212
- args: [{ selector: 'lib-postman-collections', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, host: { 'class': 'lib-postman-collections' }, imports: [
213
- MatTreeModule,
214
- MatIconModule,
215
- MatButtonModule,
216
- MatProgressSpinnerModule,
217
- MatTooltipModule,
218
- SearchFieldComponent,
219
- EmptyStateComponent,
220
- ], template: "@if (loading()) {\n <div class=\"loading-container\">\n <mat-spinner diameter=\"36\"></mat-spinner>\n </div>\n} @else {\n <lib-search-field\n class=\"search\"\n placeholder=\"Search api\"\n [(value)]=\"searchKey\" />\n\n @if (error(); as err) {\n <lib-empty-state icon=\"error_outline\" [message]=\"err.message\" />\n } @else if (isEmpty()) {\n <lib-empty-state\n icon=\"search_off\"\n [message]=\"searchKey() ? 'No endpoints match your search' : 'No endpoints in this collection'\" />\n } @else {\n <mat-tree\n [dataSource]=\"treeComponent.dataSource\"\n [treeControl]=\"treeComponent.treeControl\">\n <mat-tree-node *matTreeNodeDef=\"let node\" matTreeNodePadding>\n @if (isEndpointLoading(node.value.id)) {\n <mat-spinner diameter=\"22\" class=\"loading-spinner\"></mat-spinner>\n }\n @for (line of getNodeLines(node.level); track line) {\n <div class=\"line\" [style.left.px]=\"line * 40 + 8\"></div>\n }\n @if (node.value?.request; as request) {\n <button\n mat-button\n class=\"item\"\n [disabled]=\"(!request.body?.raw && request.method === 'POST') || !request.url?.raw\"\n [matTooltip]=\"request.url?.raw || 'Invalid Postman config, missing Endpoint URL'\"\n (click)=\"selectNode(node.value)\">\n <span class=\"node-key method\" [style.color]=\"methodColor(request.method)\">\n {{ request.method }}\n </span>\n <span>{{ node.key }}</span>\n </button>\n }\n </mat-tree-node>\n\n <mat-tree-node *matTreeNodeDef=\"let node; when: hasChild\" matTreeNodePadding>\n <button\n mat-icon-button\n matTreeNodeToggle\n class=\"toggle\"\n [attr.aria-label]=\"'Toggle ' + node.key\">\n <mat-icon>\n {{ treeComponent.treeControl.isExpanded(node) ? 'expand_more' : 'chevron_right' }}\n </mat-icon>\n </button>\n <mat-icon class=\"folder-icon\">\n {{ treeComponent.treeControl.isExpanded(node) ? 'folder_open' : 'folder' }}\n </mat-icon>\n <span class=\"folder-label\">{{ node.key }}</span>\n </mat-tree-node>\n </mat-tree>\n }\n}\n", styles: [":host{display:block}.search{margin-bottom:1rem}mat-tree{background:none}:host mat-tree-node{min-height:28px;height:32px}.toggle{padding:0}.folder-icon{color:var(--lib-forms-on-surface-variant)}.folder-label{margin-left:.5rem;font-weight:500}.item{display:flex;width:100%;justify-content:left;text-align:left;font-size:small;font-weight:400;white-space:nowrap;overflow:hidden}.method{display:inline-block;width:38px;text-align:right}.line{position:absolute;height:32px;left:48px;width:1px;background:color-mix(in srgb,var(--lib-forms-outline) 40%,transparent)}.loading-container{display:flex;align-items:center;justify-content:center;height:100%;padding:2rem}\n"] }]
221
- }], propDecorators: { postmanCollectionConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "postmanCollectionConfig", required: false }] }], loadingEndPoints: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingEndPoints", required: false }] }], nodeSelectionChanged: [{ type: i0.Output, args: ["nodeSelectionChanged"] }] } });
222
-
223
- let nextId = 0;
224
- /** CSS-variable colour per HTTP method (dark-mode-safe; never a hex literal). */
225
- const METHOD_COLOR = {
226
- GET: 'var(--lib-forms-method-get)',
227
- POST: 'var(--lib-forms-method-post)',
228
- PUT: 'var(--lib-forms-method-put)',
229
- DELETE: 'var(--lib-forms-method-delete)',
230
- };
231
- /**
232
- * Parses a Postman raw request body into a plain object.
233
- *
234
- * Returns `{}` for an absent, blank or non-JSON body (a `graphql` / `formdata`
235
- * mode, or raw text with comments). Nesting and key names are preserved exactly as
236
- * authored — this is the document template mode seeds from.
237
- *
238
- * @param raw - `request.body.raw` from the Postman collection.
239
- * @returns The parsed body, or `{}` when there is nothing usable.
240
- */
241
- function parseRawBody(raw) {
242
- if (typeof raw !== 'string' || raw.trim() === '')
243
- return {};
244
- try {
245
- const parsed = JSON.parse(raw);
246
- return parsed !== null && typeof parsed === 'object' ? parsed : {};
247
- }
248
- catch {
249
- return {};
250
- }
251
- }
252
- /** True when a parsed body carries at least one key — i.e. it is worth persisting. */
253
- function isNonEmptyBody(body) {
254
- return Object.keys(body).length > 0;
255
- }
256
- /** Maps a JS `typeof` string to the shared {@link JsDataTypes} enum member. */
257
- function toJsDataType(value) {
258
- switch (typeof value) {
259
- case 'string':
260
- return JsDataTypes.String;
261
- case 'number':
262
- return JsDataTypes.Number;
263
- case 'bigint':
264
- return JsDataTypes.BigInt;
265
- case 'boolean':
266
- return JsDataTypes.Boolean;
267
- case 'symbol':
268
- return JsDataTypes.Symbol;
269
- case 'function':
270
- return JsDataTypes.Function;
271
- case 'object':
272
- return JsDataTypes.Object;
273
- default:
274
- return JsDataTypes.Undefined;
275
- }
276
- }
277
- /**
278
- * Lets the user pick an API endpoint from a Postman collection and exposes the
279
- * resulting {@link APIDataFetchingConfigurationInterface}. Renders one of three
280
- * states — no collection configured, the endpoint picker, or the selected
281
- * endpoint card — and embeds {@link PostmanCollectionsComponent} for the tree.
282
- *
283
- * Internal editor consumed by `t-dynamic-data-edit` and `data-source-picker`;
284
- * the parent owns the field label, hint and validation chrome.
285
- *
286
- * @example
287
- * <lib-rest-api-call-setup
288
- * [postmanCollectionConfig]="config()"
289
- * [value]="value()"
290
- * [disabled]="disabled()"
291
- * (valueChanged)="onApiConfig($event)" />
292
- */
293
- class RestApiCallSetupComponent {
294
- constructor() {
295
- this.#fallbackId = `lib-rest-api-call-setup-${nextId++}`;
296
- /** Optional consumer-provided host id. */
297
- this.id = input(undefined, ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
298
- /** Postman collection that backs the picker. */
299
- this.postmanCollectionConfig = input(undefined, ...(ngDevMode ? [{ debugName: "postmanCollectionConfig" }] : /* istanbul ignore next */ []));
300
- /**
301
- * Optional HTTP GET function for fetching sample responses. Retained on the
302
- * contract for parity; this editor does not invoke it (selection is resolved
303
- * from the Postman collection the parent already loads).
304
- */
305
- this.httpGetDataFunction = input(undefined, ...(ngDevMode ? [{ debugName: "httpGetDataFunction" }] : /* istanbul ignore next */ []));
306
- /** Disables the picker and shows a lock affordance. */
307
- this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
308
- /** Current configuration value. */
309
- this.value = input(undefined, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
310
- /** Validation errors surfaced from the parent editor. */
311
- this.errors = input([], ...(ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []));
312
- /** Emits whenever the user selects a new endpoint or clears the value. */
313
- this.valueChanged = output();
314
- /** Endpoint IDs currently loading sample data (forwarded to the picker). */
315
- this.loadingEndPoints = signal([], ...(ngDevMode ? [{ debugName: "loadingEndPoints" }] : /* istanbul ignore next */ []));
316
- /** Local snapshot of the value, bridged from the `value` input. */
317
- this.#localValue = signal(undefined, ...(ngDevMode ? [{ debugName: "#localValue" }] : /* istanbul ignore next */ []));
318
- /** Read-only view of the active configuration for the template. */
319
- this.currentValue = this.#localValue.asReadonly();
320
- /** Host id: consumer-provided or a stable per-instance fallback. */
321
- this.hostId = computed(() => this.id() ?? this.#fallbackId, ...(ngDevMode ? [{ debugName: "hostId" }] : /* istanbul ignore next */ []));
322
- /** True once the snapshot carries a usable endpoint + method. */
323
- this.hasValidValue = computed(() => {
324
- const v = this.#localValue();
325
- return Boolean(v?.httpEndPoint) && Boolean(v?.httpMethod);
326
- }, ...(ngDevMode ? [{ debugName: "hasValidValue" }] : /* istanbul ignore next */ []));
327
- /** Discrete UI mode driving the template's `@switch`. */
328
- this.mode = computed(() => {
329
- if (!this.postmanCollectionConfig())
330
- return 'no-collection';
331
- return this.hasValidValue() ? 'selected' : 'picker';
332
- }, ...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
333
- /** Token-based colour for the selected endpoint's HTTP method badge. */
334
- this.methodColor = computed(() => {
335
- const method = this.#localValue()?.httpMethod;
336
- return method && method in METHOD_COLOR ? METHOD_COLOR[method] : 'currentColor';
337
- }, ...(ngDevMode ? [{ debugName: "methodColor" }] : /* istanbul ignore next */ []));
338
- /**
339
- * Bridge the `value` input into the local mutable snapshot, de-duping with a
340
- * deep structural compare (replaces the legacy `JSON.stringify` equality so
341
- * key order and `undefined` no longer cause spurious resets).
342
- */
343
- this.valueBridge = effect(() => {
344
- const next = this.value();
345
- if (!_isEqual(next, this.#localValue())) {
346
- this.#localValue.set(next);
347
- }
348
- }, ...(ngDevMode ? [{ debugName: "valueBridge" }] : /* istanbul ignore next */ []));
349
- }
350
- #fallbackId;
351
- /** Local snapshot of the value, bridged from the `value` input. */
352
- #localValue;
353
- /**
354
- * Maps the selected tree node into the API config and emits it.
355
- *
356
- * Gated on `request` alone. It used to also require `node.response` — a saved
357
- * Postman *example response* — even though nothing here reads it. An endpoint
358
- * without one could not be selected at all: the click was a silent no-op, the
359
- * config was never rebuilt, `requestBody` was never captured, and template mode
360
- * went on showing whatever skeleton was already persisted. A folder node (the
361
- * only other thing the picker can emit) has no `request`, so that check alone
362
- * is the correct guard.
363
- */
364
- nodeSelectionChanged(node) {
365
- const { id, name, request } = node;
366
- if (!request)
367
- return;
368
- const requestBody = parseRawBody(request.body?.raw);
369
- const isPost = request.method === 'POST';
370
- const minimumInputRequired = isPost
371
- ? this.#extractRequiredInputs(requestBody)
372
- : [];
373
- const config = {
374
- _id: id,
375
- name,
376
- httpEndPoint: request.url.raw,
377
- httpMethod: request.method,
378
- source: DataSources.Api,
379
- postFormData: isPost,
380
- backEndConfig: {
381
- minimumInputRequired,
382
- // The endpoint's untouched body is the ONLY faithful record of a nested
383
- // payload (`minimumInputRequired` entries carry a `name`, not a path), so it
384
- // is what seeds template mode. Captured for every method that actually sends
385
- // one — keyed on the body being present, not on `method === 'POST'`, because
386
- // PUT/PATCH bodies are equally real. Omitted entirely when there is nothing
387
- // to store, so `deriveDefaultPayloadTemplate` falls back cleanly.
388
- ...(isNonEmptyBody(requestBody)
389
- ? { requestBody: requestBody }
390
- : {}),
391
- },
392
- };
393
- this.#localValue.set(config);
394
- this.valueChanged.emit(config);
395
- }
396
- /**
397
- * Clears the selection and emits a single `undefined` (the legacy double-emit
398
- * — `undefined` then a stub `{ source }` — was removed; see FLAG).
399
- */
400
- clearValue() {
401
- this.#localValue.set(undefined);
402
- this.valueChanged.emit(undefined);
403
- }
404
- /**
405
- * Derives the POST endpoint's required inputs from the request body. Top-level
406
- * keys are primary; entries under `data` are secondary (non-primary).
407
- *
408
- * **Deliberately flat.** `MinimumInputRequiredInterface` has a `name`, not a path,
409
- * so a nested value can only ever become one `JsDataTypes.Object` entry — mapping
410
- * `filter.archive` is not expressible here. That is what template mode is for, and
411
- * why the untouched `requestBody` is captured alongside this (see the caller): it is
412
- * the only faithful record of a nested payload.
413
- */
414
- #extractRequiredInputs(requestBody) {
415
- const { data, ...rest } = requestBody;
416
- const dataEntries = data && typeof data === 'object' ? { ...data } : {};
417
- const primaryKeys = Object.entries(rest).map(([key, val]) => this.#toRequiredInput(key, val, true));
418
- const secondaryKeys = Object.entries(dataEntries).map(([key, val]) => this.#toRequiredInput(key, val, false));
419
- return [...primaryKeys, ...secondaryKeys];
420
- }
421
- #toRequiredInput(name, value, primaryKey) {
422
- return { name, type: toJsDataType(value), primaryKey };
423
- }
424
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: RestApiCallSetupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
425
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: RestApiCallSetupComponent, isStandalone: true, selector: "lib-rest-api-call-setup", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, postmanCollectionConfig: { classPropertyName: "postmanCollectionConfig", publicName: "postmanCollectionConfig", isSignal: true, isRequired: false, transformFunction: null }, httpGetDataFunction: { classPropertyName: "httpGetDataFunction", publicName: "httpGetDataFunction", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChanged: "valueChanged" }, host: { properties: { "id": "hostId()", "attr.data-mode": "mode()" }, classAttribute: "lib-rest-api-call-setup" }, ngImport: i0, template: "@switch (mode()) {\n @case ('no-collection') {\n <lib-empty-state\n icon=\"link_off\"\n message=\"No Postman collection configured. Add a collection id and API key to pick an endpoint.\" />\n }\n\n @case ('selected') {\n <div class=\"lib-rest-api-call-setup__card\">\n <button\n type=\"button\"\n class=\"lib-rest-api-call-setup__endpoint\"\n mat-button\n [disabled]=\"disabled()\"\n [matTooltip]=\"currentValue()?.httpEndPoint ?? ''\"\n (click)=\"clearValue()\">\n <span class=\"lib-rest-api-call-setup__method\" [style.color]=\"methodColor()\">\n {{ currentValue()?.httpMethod }}\n </span>\n <span class=\"lib-rest-api-call-setup__name\">\n {{ currentValue()?.name }}\n </span>\n <mat-icon class=\"lib-rest-api-call-setup__clear\" aria-hidden=\"true\">close</mat-icon>\n </button>\n </div>\n }\n\n @case ('picker') {\n <lib-postman-collections\n class=\"lib-rest-api-call-setup__picker\"\n [class.lib-rest-api-call-setup__picker--disabled]=\"disabled()\"\n [postmanCollectionConfig]=\"postmanCollectionConfig()!\"\n [loadingEndPoints]=\"loadingEndPoints()\"\n (nodeSelectionChanged)=\"nodeSelectionChanged($event)\" />\n }\n}\n\n@if (disabled()) {\n <p class=\"lib-rest-api-call-setup__lock\">\n <mat-icon aria-hidden=\"true\">lock</mat-icon>\n <span>This endpoint is locked and cannot be changed.</span>\n </p>\n}\n\n<lib-error-list [errors]=\"errors()\" />\n", styles: [":host{display:flex;flex-direction:column;gap:1.5rem}.lib-rest-api-call-setup__card{background:var(--lib-forms-surface);border:1px solid color-mix(in srgb,var(--lib-forms-outline) 15%,transparent);border-radius:var(--lib-forms-radius-lg, 12px);box-shadow:var(--lib-forms-shadow-resting);padding:.5rem}.lib-rest-api-call-setup__endpoint{display:flex;align-items:center;gap:.75rem;width:100%;justify-content:flex-start;padding:.5rem .75rem;font-weight:400;text-align:left;color:var(--lib-forms-on-surface);overflow:hidden}.lib-rest-api-call-setup__method{flex:0 0 auto;font-size:.625rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase}.lib-rest-api-call-setup__name{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--lib-forms-on-surface)}.lib-rest-api-call-setup__clear{flex:0 0 auto;color:var(--lib-forms-on-surface-variant)}.lib-rest-api-call-setup__picker--disabled{opacity:.55;pointer-events:none}.lib-rest-api-call-setup__lock{display:flex;align-items:center;gap:.5rem;margin:0;font-size:.8125rem;line-height:1.4;color:var(--lib-forms-on-surface-variant)}\n"], dependencies: [{ kind: "component", type: PostmanCollectionsComponent, selector: "lib-postman-collections", inputs: ["postmanCollectionConfig", "loadingEndPoints"], outputs: ["nodeSelectionChanged"] }, { kind: "component", type: EmptyStateComponent, selector: "lib-empty-state", inputs: ["icon", "message"] }, { kind: "component", type: ErrorListComponent, selector: "lib-error-list", inputs: ["errors"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
426
- }
427
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: RestApiCallSetupComponent, decorators: [{
428
- type: Component,
429
- args: [{ selector: 'lib-rest-api-call-setup', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, imports: [
430
- PostmanCollectionsComponent,
431
- EmptyStateComponent,
432
- ErrorListComponent,
433
- MatButtonModule,
434
- MatIconModule,
435
- MatTooltipModule,
436
- ], host: {
437
- 'class': 'lib-rest-api-call-setup',
438
- '[id]': 'hostId()',
439
- '[attr.data-mode]': 'mode()',
440
- }, template: "@switch (mode()) {\n @case ('no-collection') {\n <lib-empty-state\n icon=\"link_off\"\n message=\"No Postman collection configured. Add a collection id and API key to pick an endpoint.\" />\n }\n\n @case ('selected') {\n <div class=\"lib-rest-api-call-setup__card\">\n <button\n type=\"button\"\n class=\"lib-rest-api-call-setup__endpoint\"\n mat-button\n [disabled]=\"disabled()\"\n [matTooltip]=\"currentValue()?.httpEndPoint ?? ''\"\n (click)=\"clearValue()\">\n <span class=\"lib-rest-api-call-setup__method\" [style.color]=\"methodColor()\">\n {{ currentValue()?.httpMethod }}\n </span>\n <span class=\"lib-rest-api-call-setup__name\">\n {{ currentValue()?.name }}\n </span>\n <mat-icon class=\"lib-rest-api-call-setup__clear\" aria-hidden=\"true\">close</mat-icon>\n </button>\n </div>\n }\n\n @case ('picker') {\n <lib-postman-collections\n class=\"lib-rest-api-call-setup__picker\"\n [class.lib-rest-api-call-setup__picker--disabled]=\"disabled()\"\n [postmanCollectionConfig]=\"postmanCollectionConfig()!\"\n [loadingEndPoints]=\"loadingEndPoints()\"\n (nodeSelectionChanged)=\"nodeSelectionChanged($event)\" />\n }\n}\n\n@if (disabled()) {\n <p class=\"lib-rest-api-call-setup__lock\">\n <mat-icon aria-hidden=\"true\">lock</mat-icon>\n <span>This endpoint is locked and cannot be changed.</span>\n </p>\n}\n\n<lib-error-list [errors]=\"errors()\" />\n", styles: [":host{display:flex;flex-direction:column;gap:1.5rem}.lib-rest-api-call-setup__card{background:var(--lib-forms-surface);border:1px solid color-mix(in srgb,var(--lib-forms-outline) 15%,transparent);border-radius:var(--lib-forms-radius-lg, 12px);box-shadow:var(--lib-forms-shadow-resting);padding:.5rem}.lib-rest-api-call-setup__endpoint{display:flex;align-items:center;gap:.75rem;width:100%;justify-content:flex-start;padding:.5rem .75rem;font-weight:400;text-align:left;color:var(--lib-forms-on-surface);overflow:hidden}.lib-rest-api-call-setup__method{flex:0 0 auto;font-size:.625rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase}.lib-rest-api-call-setup__name{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--lib-forms-on-surface)}.lib-rest-api-call-setup__clear{flex:0 0 auto;color:var(--lib-forms-on-surface-variant)}.lib-rest-api-call-setup__picker--disabled{opacity:.55;pointer-events:none}.lib-rest-api-call-setup__lock{display:flex;align-items:center;gap:.5rem;margin:0;font-size:.8125rem;line-height:1.4;color:var(--lib-forms-on-surface-variant)}\n"] }]
441
- }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], postmanCollectionConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "postmanCollectionConfig", required: false }] }], httpGetDataFunction: [{ type: i0.Input, args: [{ isSignal: true, alias: "httpGetDataFunction", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], valueChanged: [{ type: i0.Output, args: ["valueChanged"] }] } });
442
-
443
- export { RestApiCallSetupComponent };
444
- //# sourceMappingURL=ngx-t-forms-rest-api-call-setup.component-C3sNmq_H.mjs.map