ngx-t-forms 2.0.34 → 2.0.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (203) hide show
  1. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-DYKniIW1.mjs → ngx-t-forms-auto-complete-input-element.component-VektEtrf.mjs} +2 -2
  2. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-DYKniIW1.mjs.map → ngx-t-forms-auto-complete-input-element.component-VektEtrf.mjs.map} +1 -1
  3. package/fesm2022/ngx-t-forms-auto-complete-input-element.component-ookGrpnN.mjs +261 -0
  4. package/fesm2022/ngx-t-forms-auto-complete-input-element.component-ookGrpnN.mjs.map +1 -0
  5. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-sAVeqJDq.mjs → ngx-t-forms-basic-input-input-element.component-C8D6DN41.mjs} +3 -3
  6. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-sAVeqJDq.mjs.map → ngx-t-forms-basic-input-input-element.component-C8D6DN41.mjs.map} +1 -1
  7. package/fesm2022/ngx-t-forms-basic-input-input-element.component-CQVuW8z1.mjs +225 -0
  8. package/fesm2022/ngx-t-forms-basic-input-input-element.component-CQVuW8z1.mjs.map +1 -0
  9. package/fesm2022/ngx-t-forms-calculated-field-rules.component-8EgwXTN1.mjs +1011 -0
  10. package/fesm2022/ngx-t-forms-calculated-field-rules.component-8EgwXTN1.mjs.map +1 -0
  11. package/fesm2022/{ngx-t-forms-calculated-field-rules.component-DHCYc95E.mjs → ngx-t-forms-calculated-field-rules.component-B_3IbQjp.mjs} +2 -2
  12. package/fesm2022/{ngx-t-forms-calculated-field-rules.component-DHCYc95E.mjs.map → ngx-t-forms-calculated-field-rules.component-B_3IbQjp.mjs.map} +1 -1
  13. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-B95VIBRi.mjs +136 -0
  14. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-B95VIBRi.mjs.map +1 -0
  15. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-BwGlol4L.mjs → ngx-t-forms-chip-options-creator-editor.component-uTCOa48g.mjs} +4 -4
  16. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-BwGlol4L.mjs.map → ngx-t-forms-chip-options-creator-editor.component-uTCOa48g.mjs.map} +1 -1
  17. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-6fu2mXuZ.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-BX3zJs-A.mjs} +6 -6
  18. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-6fu2mXuZ.mjs.map → ngx-t-forms-config-mscoa-additional-inputs.component-BX3zJs-A.mjs.map} +1 -1
  19. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dm16WA5Y.mjs +253 -0
  20. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dm16WA5Y.mjs.map +1 -0
  21. package/fesm2022/ngx-t-forms-data-source-picker.component-Dij1l4-7.mjs +419 -0
  22. package/fesm2022/ngx-t-forms-data-source-picker.component-Dij1l4-7.mjs.map +1 -0
  23. package/fesm2022/{ngx-t-forms-data-source-picker.component-BdFscpSi.mjs → ngx-t-forms-data-source-picker.component-z0l9WEw7.mjs} +8 -8
  24. package/fesm2022/{ngx-t-forms-data-source-picker.component-BdFscpSi.mjs.map → ngx-t-forms-data-source-picker.component-z0l9WEw7.mjs.map} +1 -1
  25. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-BakchGky.mjs → ngx-t-forms-date-picker-input-element.component-C9I8KX12.mjs} +2 -2
  26. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-BakchGky.mjs.map → ngx-t-forms-date-picker-input-element.component-C9I8KX12.mjs.map} +1 -1
  27. package/fesm2022/ngx-t-forms-date-picker-input-element.component-D9BOhV6g.mjs +231 -0
  28. package/fesm2022/ngx-t-forms-date-picker-input-element.component-D9BOhV6g.mjs.map +1 -0
  29. package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-BnCFgi6y.mjs → ngx-t-forms-date-range-picker-input-element.component-B3Z47mrO.mjs} +2 -2
  30. package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-BnCFgi6y.mjs.map → ngx-t-forms-date-range-picker-input-element.component-B3Z47mrO.mjs.map} +1 -1
  31. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-BiXubnsN.mjs +333 -0
  32. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-BiXubnsN.mjs.map +1 -0
  33. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-C5T_DK6w.mjs +543 -0
  34. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-C5T_DK6w.mjs.map +1 -0
  35. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-PW2XiPiH.mjs +373 -0
  36. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-PW2XiPiH.mjs.map +1 -0
  37. package/fesm2022/ngx-t-forms-document-picker.component-B47pQxMF.mjs +1217 -0
  38. package/fesm2022/ngx-t-forms-document-picker.component-B47pQxMF.mjs.map +1 -0
  39. package/fesm2022/{ngx-t-forms-document-picker.component-Bp_PJyo4.mjs → ngx-t-forms-document-picker.component-BNQ1a96s.mjs} +5 -5
  40. package/fesm2022/{ngx-t-forms-document-picker.component-Bp_PJyo4.mjs.map → ngx-t-forms-document-picker.component-BNQ1a96s.mjs.map} +1 -1
  41. package/fesm2022/{ngx-t-forms-editor-input-element.component-Crad-MN8.mjs → ngx-t-forms-editor-input-element.component-C12fnCTM.mjs} +3 -3
  42. package/fesm2022/{ngx-t-forms-editor-input-element.component-Crad-MN8.mjs.map → ngx-t-forms-editor-input-element.component-C12fnCTM.mjs.map} +1 -1
  43. package/fesm2022/ngx-t-forms-editor-input-element.component-DYytkGYD.mjs +447 -0
  44. package/fesm2022/ngx-t-forms-editor-input-element.component-DYytkGYD.mjs.map +1 -0
  45. package/fesm2022/ngx-t-forms-editor-js-input.component-BQSF3142.mjs +251 -0
  46. package/fesm2022/ngx-t-forms-editor-js-input.component-BQSF3142.mjs.map +1 -0
  47. package/fesm2022/{ngx-t-forms-editor-js-input.component-IEjjoNbP.mjs → ngx-t-forms-editor-js-input.component-cxob42pE.mjs} +2 -2
  48. package/fesm2022/{ngx-t-forms-editor-js-input.component-IEjjoNbP.mjs.map → ngx-t-forms-editor-js-input.component-cxob42pE.mjs.map} +1 -1
  49. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-CzCphzUH.mjs → ngx-t-forms-file-upload-input-element.component-Bgi-chdw.mjs} +6 -6
  50. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-CzCphzUH.mjs.map → ngx-t-forms-file-upload-input-element.component-Bgi-chdw.mjs.map} +1 -1
  51. package/fesm2022/ngx-t-forms-file-upload-input-element.component-CI4onrtp.mjs +447 -0
  52. package/fesm2022/ngx-t-forms-file-upload-input-element.component-CI4onrtp.mjs.map +1 -0
  53. package/fesm2022/ngx-t-forms-form-input-selector.component-BysF2WY-.mjs +163 -0
  54. package/fesm2022/ngx-t-forms-form-input-selector.component-BysF2WY-.mjs.map +1 -0
  55. package/fesm2022/{ngx-t-forms-form-input-selector.component-DVyLFw6x.mjs → ngx-t-forms-form-input-selector.component-xIalL_cs.mjs} +4 -4
  56. package/fesm2022/{ngx-t-forms-form-input-selector.component-DVyLFw6x.mjs.map → ngx-t-forms-form-input-selector.component-xIalL_cs.mjs.map} +1 -1
  57. package/fesm2022/{ngx-t-forms-form-json-view.component-D5YJ5pFm.mjs → ngx-t-forms-form-json-view.component-CU1d8rGd.mjs} +2 -2
  58. package/fesm2022/{ngx-t-forms-form-json-view.component-D5YJ5pFm.mjs.map → ngx-t-forms-form-json-view.component-CU1d8rGd.mjs.map} +1 -1
  59. package/fesm2022/ngx-t-forms-form-json-view.component-DpU3ZTiS.mjs +28 -0
  60. package/fesm2022/ngx-t-forms-form-json-view.component-DpU3ZTiS.mjs.map +1 -0
  61. package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs +291 -0
  62. package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs.map +1 -0
  63. package/fesm2022/{ngx-t-forms-form-payload-projection.component-Ip9ewB18.mjs → ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs} +3 -3
  64. package/fesm2022/{ngx-t-forms-form-payload-projection.component-Ip9ewB18.mjs.map → ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs.map} +1 -1
  65. package/fesm2022/ngx-t-forms-form-section-stepper.component-DqShhIBK.mjs +936 -0
  66. package/fesm2022/ngx-t-forms-form-section-stepper.component-DqShhIBK.mjs.map +1 -0
  67. package/fesm2022/ngx-t-forms-form-section-stepper.component-tGbPKHM6.mjs +389 -0
  68. package/fesm2022/ngx-t-forms-form-section-stepper.component-tGbPKHM6.mjs.map +1 -0
  69. package/fesm2022/ngx-t-forms-forms-builder-menu.component-BsgtMZFM.mjs +816 -0
  70. package/fesm2022/ngx-t-forms-forms-builder-menu.component-BsgtMZFM.mjs.map +1 -0
  71. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-DTEx6mIl.mjs → ngx-t-forms-forms-builder-menu.component-hK9C4vAa.mjs} +11 -11
  72. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-DTEx6mIl.mjs.map → ngx-t-forms-forms-builder-menu.component-hK9C4vAa.mjs.map} +1 -1
  73. package/fesm2022/{ngx-t-forms-geo-location.component-4vXrrAS0.mjs → ngx-t-forms-geo-location.component-ChmvJCGu.mjs} +2 -2
  74. package/fesm2022/{ngx-t-forms-geo-location.component-4vXrrAS0.mjs.map → ngx-t-forms-geo-location.component-ChmvJCGu.mjs.map} +1 -1
  75. package/fesm2022/ngx-t-forms-geo-location.component-DfmFok8a.mjs +329 -0
  76. package/fesm2022/ngx-t-forms-geo-location.component-DfmFok8a.mjs.map +1 -0
  77. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-BbfiG8wm.mjs → ngx-t-forms-image-capture-input-element.component-BpA_P017.mjs} +6 -6
  78. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-BbfiG8wm.mjs.map → ngx-t-forms-image-capture-input-element.component-BpA_P017.mjs.map} +1 -1
  79. package/fesm2022/ngx-t-forms-image-capture-input-element.component-DYjnaWYE.mjs +360 -0
  80. package/fesm2022/ngx-t-forms-image-capture-input-element.component-DYjnaWYE.mjs.map +1 -0
  81. package/fesm2022/{ngx-t-forms-index-D8TBBLAD.mjs → ngx-t-forms-index-D-7ZX0w7.mjs} +2 -2
  82. package/fesm2022/ngx-t-forms-index-D-7ZX0w7.mjs.map +1 -0
  83. package/fesm2022/ngx-t-forms-index-DHloq32-.mjs +2 -0
  84. package/fesm2022/ngx-t-forms-index-DHloq32-.mjs.map +1 -0
  85. package/fesm2022/ngx-t-forms-input-custom.component-Cv6jfrPf.mjs +128 -0
  86. package/fesm2022/ngx-t-forms-input-custom.component-Cv6jfrPf.mjs.map +1 -0
  87. package/fesm2022/{ngx-t-forms-input-custom.component-B855cSGR.mjs → ngx-t-forms-input-custom.component-pUshbxSM.mjs} +2 -2
  88. package/fesm2022/{ngx-t-forms-input-custom.component-B855cSGR.mjs.map → ngx-t-forms-input-custom.component-pUshbxSM.mjs.map} +1 -1
  89. package/fesm2022/ngx-t-forms-input-editor.component-BKV6ZJx9.mjs +512 -0
  90. package/fesm2022/ngx-t-forms-input-editor.component-BKV6ZJx9.mjs.map +1 -0
  91. package/fesm2022/ngx-t-forms-input-editor.component-CxXMETLl.mjs +190 -0
  92. package/fesm2022/ngx-t-forms-input-editor.component-CxXMETLl.mjs.map +1 -0
  93. package/fesm2022/{ngx-t-forms-map-mat-options-keys-C0L8Vi2y.mjs → ngx-t-forms-map-mat-options-keys-BbfC5vYI.mjs} +4 -4
  94. package/fesm2022/{ngx-t-forms-map-mat-options-keys-C0L8Vi2y.mjs.map → ngx-t-forms-map-mat-options-keys-BbfC5vYI.mjs.map} +1 -1
  95. package/fesm2022/ngx-t-forms-map-mat-options-keys-epWo0lEj.mjs +132 -0
  96. package/fesm2022/ngx-t-forms-map-mat-options-keys-epWo0lEj.mjs.map +1 -0
  97. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-Bqjjgtyf.mjs +109 -0
  98. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-Bqjjgtyf.mjs.map +1 -0
  99. package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-D8tnMRWS.mjs → ngx-t-forms-mat-chip-list-editor.component-CuOsHNXe.mjs} +4 -4
  100. package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-D8tnMRWS.mjs.map → ngx-t-forms-mat-chip-list-editor.component-CuOsHNXe.mjs.map} +1 -1
  101. package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs +241 -0
  102. package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs.map +1 -0
  103. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs +180 -0
  104. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs.map +1 -0
  105. package/fesm2022/{ngx-t-forms-missing-form-configs.component-BgZ2Q0yu.mjs → ngx-t-forms-missing-form-configs.component-CDIajZxP.mjs} +6 -6
  106. package/fesm2022/{ngx-t-forms-missing-form-configs.component-BgZ2Q0yu.mjs.map → ngx-t-forms-missing-form-configs.component-CDIajZxP.mjs.map} +1 -1
  107. package/fesm2022/ngx-t-forms-missing-form-configs.component-DRAVdGfc.mjs +114 -0
  108. package/fesm2022/ngx-t-forms-missing-form-configs.component-DRAVdGfc.mjs.map +1 -0
  109. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-C9b-pNLr.mjs +69 -0
  110. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-C9b-pNLr.mjs.map +1 -0
  111. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-DD13F1yS.mjs → ngx-t-forms-mscoa-chart-toolbar.component-D1ASX1mt.mjs} +4 -4
  112. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-DD13F1yS.mjs.map → ngx-t-forms-mscoa-chart-toolbar.component-D1ASX1mt.mjs.map} +1 -1
  113. package/fesm2022/ngx-t-forms-mscoa-error-display.component-DzFibbuY.mjs +200 -0
  114. package/fesm2022/ngx-t-forms-mscoa-error-display.component-DzFibbuY.mjs.map +1 -0
  115. package/fesm2022/{ngx-t-forms-mscoa-segment-config.component--lBn-Pvd.mjs → ngx-t-forms-mscoa-segment-config.component-CjuxTqfX.mjs} +2 -2
  116. package/fesm2022/{ngx-t-forms-mscoa-segment-config.component--lBn-Pvd.mjs.map → ngx-t-forms-mscoa-segment-config.component-CjuxTqfX.mjs.map} +1 -1
  117. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-D9KrXNS6.mjs +850 -0
  118. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-D9KrXNS6.mjs.map +1 -0
  119. package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-DV93x0Rr.mjs +107 -0
  120. package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-DV93x0Rr.mjs.map +1 -0
  121. package/fesm2022/{ngx-t-forms-multiple-input-input-element.component-CZHFMhL7.mjs → ngx-t-forms-multiple-input-input-element.component-BA61uQ2q.mjs} +10 -10
  122. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-BA61uQ2q.mjs.map +1 -0
  123. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-BxQYrUJL.mjs +1665 -0
  124. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-BxQYrUJL.mjs.map +1 -0
  125. package/fesm2022/{ngx-t-forms-ngx-t-forms-BkTeV_AF.mjs → ngx-t-forms-ngx-t-forms-CJGAj18J.mjs} +2042 -179
  126. package/fesm2022/ngx-t-forms-ngx-t-forms-CJGAj18J.mjs.map +1 -0
  127. package/fesm2022/ngx-t-forms-ngx-t-forms-D7kDvkTZ.mjs +27352 -0
  128. package/fesm2022/ngx-t-forms-ngx-t-forms-D7kDvkTZ.mjs.map +1 -0
  129. package/fesm2022/ngx-t-forms-paginated-selection-table-DeY5vQti.mjs +1024 -0
  130. package/fesm2022/ngx-t-forms-paginated-selection-table-DeY5vQti.mjs.map +1 -0
  131. package/fesm2022/{ngx-t-forms-paginated-selection-table-1W6jXaKk.mjs → ngx-t-forms-paginated-selection-table-yvhqQxPV.mjs} +5 -5
  132. package/fesm2022/{ngx-t-forms-paginated-selection-table-1W6jXaKk.mjs.map → ngx-t-forms-paginated-selection-table-yvhqQxPV.mjs.map} +1 -1
  133. package/fesm2022/ngx-t-forms-payload-template-editor.component-BzY-kX6W.mjs +234 -0
  134. package/fesm2022/ngx-t-forms-payload-template-editor.component-BzY-kX6W.mjs.map +1 -0
  135. package/fesm2022/ngx-t-forms-payload-template-editor.component-sqY3bYiZ.mjs +203 -0
  136. package/fesm2022/ngx-t-forms-payload-template-editor.component-sqY3bYiZ.mjs.map +1 -0
  137. package/fesm2022/{ngx-t-forms-pipeline-generator.component-yBqYGbgL.mjs → ngx-t-forms-pipeline-generator.component-COvr1j_v.mjs} +9 -9
  138. package/fesm2022/ngx-t-forms-pipeline-generator.component-COvr1j_v.mjs.map +1 -0
  139. package/fesm2022/ngx-t-forms-pipeline-generator.component-CcHgQ-MT.mjs +1126 -0
  140. package/fesm2022/ngx-t-forms-pipeline-generator.component-CcHgQ-MT.mjs.map +1 -0
  141. package/fesm2022/{ngx-t-forms-record-list-manager.component-fC_S81-7.mjs → ngx-t-forms-record-list-manager.component-CY4GnAOb.mjs} +4 -4
  142. package/fesm2022/{ngx-t-forms-record-list-manager.component-fC_S81-7.mjs.map → ngx-t-forms-record-list-manager.component-CY4GnAOb.mjs.map} +1 -1
  143. package/fesm2022/ngx-t-forms-record-list-manager.component-DuE2OdC4.mjs +545 -0
  144. package/fesm2022/ngx-t-forms-record-list-manager.component-DuE2OdC4.mjs.map +1 -0
  145. package/fesm2022/ngx-t-forms-required-inputs.component-BWKUC8zQ.mjs +451 -0
  146. package/fesm2022/ngx-t-forms-required-inputs.component-BWKUC8zQ.mjs.map +1 -0
  147. package/fesm2022/{ngx-t-forms-required-inputs.component-r1KNcuod.mjs → ngx-t-forms-required-inputs.component-ByBeNLXu.mjs} +4 -4
  148. package/fesm2022/{ngx-t-forms-required-inputs.component-r1KNcuod.mjs.map → ngx-t-forms-required-inputs.component-ByBeNLXu.mjs.map} +1 -1
  149. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BEqnJqZG.mjs +625 -0
  150. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BEqnJqZG.mjs.map +1 -0
  151. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-C99RdNiP.mjs → ngx-t-forms-rest-api-call-setup.component-CkLePXoO.mjs} +61 -15
  152. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-CkLePXoO.mjs.map +1 -0
  153. package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs +72 -0
  154. package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs.map +1 -0
  155. package/fesm2022/ngx-t-forms-section-report.component-CQR27H3a.mjs +248 -0
  156. package/fesm2022/ngx-t-forms-section-report.component-CQR27H3a.mjs.map +1 -0
  157. package/fesm2022/{ngx-t-forms-section-report.component-Cl1wrszQ.mjs → ngx-t-forms-section-report.component-mUpSxbaB.mjs} +4 -4
  158. package/fesm2022/{ngx-t-forms-section-report.component-Cl1wrszQ.mjs.map → ngx-t-forms-section-report.component-mUpSxbaB.mjs.map} +1 -1
  159. package/fesm2022/ngx-t-forms-select-input-element.component-CLs5UkmC.mjs +408 -0
  160. package/fesm2022/ngx-t-forms-select-input-element.component-CLs5UkmC.mjs.map +1 -0
  161. package/fesm2022/{ngx-t-forms-select-input-element.component-CStVMEhv.mjs → ngx-t-forms-select-input-element.component-c7IgHdXA.mjs} +5 -5
  162. package/fesm2022/ngx-t-forms-select-input-element.component-c7IgHdXA.mjs.map +1 -0
  163. package/fesm2022/ngx-t-forms-selection-options-editor.component-DiegTjWX.mjs +275 -0
  164. package/fesm2022/ngx-t-forms-selection-options-editor.component-DiegTjWX.mjs.map +1 -0
  165. package/fesm2022/{ngx-t-forms-selection-options-editor.component-BybBzePF.mjs → ngx-t-forms-selection-options-editor.component-WfuGdtvK.mjs} +5 -5
  166. package/fesm2022/{ngx-t-forms-selection-options-editor.component-BybBzePF.mjs.map → ngx-t-forms-selection-options-editor.component-WfuGdtvK.mjs.map} +1 -1
  167. package/fesm2022/ngx-t-forms-t-workflow-picker.component-CQPrr7Cz.mjs +341 -0
  168. package/fesm2022/ngx-t-forms-t-workflow-picker.component-CQPrr7Cz.mjs.map +1 -0
  169. package/fesm2022/{ngx-t-forms-t-workflow-picker.component-CtavFAUq.mjs → ngx-t-forms-t-workflow-picker.component-DqFMP1rZ.mjs} +7 -7
  170. package/fesm2022/{ngx-t-forms-t-workflow-picker.component-CtavFAUq.mjs.map → ngx-t-forms-t-workflow-picker.component-DqFMP1rZ.mjs.map} +1 -1
  171. package/fesm2022/{ngx-t-forms-textarea-input-element.component-CVUTn20g.mjs → ngx-t-forms-textarea-input-element.component-C7H84RGw.mjs} +2 -2
  172. package/fesm2022/{ngx-t-forms-textarea-input-element.component-CVUTn20g.mjs.map → ngx-t-forms-textarea-input-element.component-C7H84RGw.mjs.map} +1 -1
  173. package/fesm2022/ngx-t-forms-textarea-input-element.component-Coxr1XD7.mjs +233 -0
  174. package/fesm2022/ngx-t-forms-textarea-input-element.component-Coxr1XD7.mjs.map +1 -0
  175. package/fesm2022/ngx-t-forms-toggle-input-element.component-BWnTeuHM.mjs +305 -0
  176. package/fesm2022/ngx-t-forms-toggle-input-element.component-BWnTeuHM.mjs.map +1 -0
  177. package/fesm2022/{ngx-t-forms-toggle-input-element.component-BoZvYozf.mjs → ngx-t-forms-toggle-input-element.component-Cgzg89Ug.mjs} +2 -2
  178. package/fesm2022/{ngx-t-forms-toggle-input-element.component-BoZvYozf.mjs.map → ngx-t-forms-toggle-input-element.component-Cgzg89Ug.mjs.map} +1 -1
  179. package/fesm2022/{ngx-t-forms-validators-config.component-Df9wzsjg.mjs → ngx-t-forms-validators-config.component-DgIVRSvF.mjs} +6 -6
  180. package/fesm2022/{ngx-t-forms-validators-config.component-Df9wzsjg.mjs.map → ngx-t-forms-validators-config.component-DgIVRSvF.mjs.map} +1 -1
  181. package/fesm2022/ngx-t-forms-validators-config.component-DjLB40z-.mjs +1105 -0
  182. package/fesm2022/ngx-t-forms-validators-config.component-DjLB40z-.mjs.map +1 -0
  183. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-CJvbB68e.mjs → ngx-t-forms-workflow-adjudication.component-CB6qBxgr.mjs} +9 -9
  184. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-CJvbB68e.mjs.map → ngx-t-forms-workflow-adjudication.component-CB6qBxgr.mjs.map} +1 -1
  185. package/fesm2022/ngx-t-forms-workflow-adjudication.component-_A3v5MxN.mjs +2923 -0
  186. package/fesm2022/ngx-t-forms-workflow-adjudication.component-_A3v5MxN.mjs.map +1 -0
  187. package/fesm2022/ngx-t-forms.mjs +1 -1
  188. package/package.json +8 -2
  189. package/styles/_editor-mixins.scss +55 -0
  190. package/styles/_json-editor-syntax.scss +16 -0
  191. package/types/ngx-t-forms.d.ts +663 -12
  192. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-KmfVY6sd.mjs +0 -368
  193. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-KmfVY6sd.mjs.map +0 -1
  194. package/fesm2022/ngx-t-forms-form-section-stepper.component-enB9ZNG7.mjs +0 -389
  195. package/fesm2022/ngx-t-forms-form-section-stepper.component-enB9ZNG7.mjs.map +0 -1
  196. package/fesm2022/ngx-t-forms-index-D8TBBLAD.mjs.map +0 -1
  197. package/fesm2022/ngx-t-forms-input-editor.component-DBFYZyi3.mjs +0 -193
  198. package/fesm2022/ngx-t-forms-input-editor.component-DBFYZyi3.mjs.map +0 -1
  199. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CZHFMhL7.mjs.map +0 -1
  200. package/fesm2022/ngx-t-forms-ngx-t-forms-BkTeV_AF.mjs.map +0 -1
  201. package/fesm2022/ngx-t-forms-pipeline-generator.component-yBqYGbgL.mjs.map +0 -1
  202. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-C99RdNiP.mjs.map +0 -1
  203. package/fesm2022/ngx-t-forms-select-input-element.component-CStVMEhv.mjs.map +0 -1
@@ -0,0 +1,1126 @@
1
+ import { isPlatformBrowser, JsonPipe } from '@angular/common';
2
+ import * as i0 from '@angular/core';
3
+ import { inject, PLATFORM_ID, Injectable, input, output, signal, computed, ViewEncapsulation, ChangeDetectionStrategy, Component, DestroyRef, viewChild, Optional, Self, Input } from '@angular/core';
4
+ import { toSignal, takeUntilDestroyed } from '@angular/core/rxjs-interop';
5
+ import * as i1$1 from '@angular/forms';
6
+ import { FormsModule } from '@angular/forms';
7
+ import * as i2 from '@angular/material/form-field';
8
+ import { MatFormFieldModule, MatFormFieldControl } from '@angular/material/form-field';
9
+ import { BehaviorSubject, switchMap, map, take, catchError, finalize, throwError, tap, combineLatest, filter, Subject, distinctUntilChanged } from 'rxjs';
10
+ import * as i2$1 from '@angular/cdk/overlay';
11
+ import { OverlayModule } from '@angular/cdk/overlay';
12
+ import * as i1 from '@angular/material/button';
13
+ import { MatButtonModule } from '@angular/material/button';
14
+ import { MatDividerModule } from '@angular/material/divider';
15
+ import * as i5$1 from '@angular/material/expansion';
16
+ import { MatExpansionModule } from '@angular/material/expansion';
17
+ import * as i3$1 from '@angular/material/icon';
18
+ import { MatIconModule } from '@angular/material/icon';
19
+ import * as i6 from '@angular/material/list';
20
+ import { MatListModule } from '@angular/material/list';
21
+ import * as i4 from '@angular/material/progress-spinner';
22
+ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
23
+ import * as i8$1 from '@angular/material/toolbar';
24
+ import { MatToolbarModule } from '@angular/material/toolbar';
25
+ import { J as JsonEditorComponent, _ as _isEqual, b as TDynamicDataViewComponent, E as EmptyStateComponent, D as DaysAgoPipe } from './ngx-t-forms-ngx-t-forms-D7kDvkTZ.mjs';
26
+ import { TWorkflowPickerComponent } from './ngx-t-forms-t-workflow-picker.component-CQPrr7Cz.mjs';
27
+ import { HttpClient } from '@angular/common/http';
28
+ import PipelineBuilder from 'db-aggregation-pipeline-builder';
29
+ import * as i3 from '@angular/material/card';
30
+ import { MatCardModule } from '@angular/material/card';
31
+ import * as i8 from '@angular/material/select';
32
+ import { MatSelectModule } from '@angular/material/select';
33
+ import * as i5 from '@angular/material/tooltip';
34
+ import { MatTooltipModule } from '@angular/material/tooltip';
35
+
36
+ /**
37
+ * @deprecated
38
+ *
39
+ * Phase 2 layering: prefer `inject(PIPELINE_REPOSITORY)` and wire the
40
+ * implementation via `withHttpPipeline()` (or your own `useClass` binding
41
+ * against `PIPELINE_REPOSITORY`). This service is preserved as-is for I-1
42
+ * parity — its self-contained `inject(HttpClient)` + UI-state surface
43
+ * continues to work for current callers and does NOT require the consumer to
44
+ * call `withHttpPipeline()`. Target removal: v3.0.0.
45
+ *
46
+ * Note for new code: the HTTP boundary lives on {@link PipelineRepository}
47
+ * (`runPipeline` / `generatePipeline` / `getSchema`). The state-management
48
+ * surface here (`pipeline$`, `chatHistory$`, etc.) is internal to the legacy
49
+ * pipeline-generator UI and is not part of the repository contract.
50
+ */
51
+ class PipelineService {
52
+ #platformId;
53
+ constructor() {
54
+ //LOADING INDICATORS
55
+ this.isRunningPipeline = false;
56
+ this.aiIsGeneratingPipeline = false;
57
+ this.isLoadingAllowedStages = false;
58
+ this.isLoadingWorkflowSchema = false;
59
+ //States
60
+ this.workflowId$ = new BehaviorSubject(undefined);
61
+ this.activeStage$ = new BehaviorSubject(undefined);
62
+ this.prompt$ = new BehaviorSubject(undefined);
63
+ this.schemaLoadError$ = new BehaviorSubject(undefined);
64
+ this.pipeline$ = new BehaviorSubject([]);
65
+ this.threadId$ = new BehaviorSubject(undefined);
66
+ this.schema$ = new BehaviorSubject(undefined);
67
+ this.allowedStages$ = new BehaviorSubject([]);
68
+ this.pipeLineResult$ = new BehaviorSubject([]);
69
+ this.chatHistory$ = new BehaviorSubject([]);
70
+ this.http = inject(HttpClient);
71
+ this.#platformId = inject(PLATFORM_ID);
72
+ //Set local storage threadId
73
+ if (!isPlatformBrowser(this.#platformId))
74
+ return;
75
+ const threadId = localStorage.getItem('threadId');
76
+ if (threadId) {
77
+ this.threadId$.next(threadId);
78
+ }
79
+ }
80
+ get config$() {
81
+ return this.workflowId$.pipe(switchMap(workflowId => this.pipeline$.pipe(switchMap(pipeline => this.pipeLineResult$.pipe(map(responseBody => ({ workflowId, pipeline, responseBody })))))));
82
+ }
83
+ /**
84
+ * Fetch available pipeline stages for the user to select and generate pipelines.
85
+ * Ideally, this could be static or fetched from a backend.
86
+ */
87
+ runPipeLine(pipeline, workflowId) {
88
+ const url = "http://localhost:5000/api/v1/pipelineBuilder/runPipeline";
89
+ // For now, returning a static list of pipeline stages. In a real application, you can fetch from an API.
90
+ this.isRunningPipeline = true;
91
+ return this.http.post(url, { pipeline, workflowId }).pipe(take(1), catchError(this.handleError), // Error handling for the HTTP request,
92
+ finalize(() => this.isRunningPipeline = false));
93
+ }
94
+ /**
95
+ * Generate a MongoDB pipeline based on the given user prompt.
96
+ *
97
+ * @param prompt The user's input or description of the desired pipeline.
98
+ */
99
+ generatePipeline(query, schema, threadId, existingPipeline, previousError) {
100
+ if (!schema) {
101
+ throw new Error("Schema is required");
102
+ }
103
+ const payload = { query, schema, threadId, existingPipeline, previousError };
104
+ const url = "http://localhost:5000/api/v1/pipelineBuilder/generatePipeline";
105
+ this.aiIsGeneratingPipeline = true;
106
+ return this.http.post(`${url}`, payload)
107
+ .pipe(take(1), catchError(this.handleError), // Error handling for the HTTP request,
108
+ finalize(() => this.aiIsGeneratingPipeline = false));
109
+ }
110
+ /**
111
+ * Handle any errors from the HTTP request.
112
+ *
113
+ * @param error The error response from the HTTP request
114
+ */
115
+ handleError(error) {
116
+ // Return an observable with a user-facing error message
117
+ void error;
118
+ return throwError(() => new Error('Something went wrong with the pipeline generation; please try again later.'));
119
+ }
120
+ getSchema(workflowId) {
121
+ if (!workflowId) {
122
+ throw new Error("WorkflowId is required");
123
+ }
124
+ const url = "http://localhost:5000/api/v1/pipelineBuilder/getSchema";
125
+ return this.http.get(`${url}`, { params: { workflowId: workflowId } }).pipe(take(1), catchError(this.handleError) // Error handling for the HTTP request
126
+ );
127
+ }
128
+ /** OPERATIONS */
129
+ isSchemaEmpty(object) {
130
+ }
131
+ workflowChanged(event) {
132
+ this.workflowId$.next(event ?? undefined);
133
+ if (!event) {
134
+ return;
135
+ }
136
+ this.getSchema(event).pipe(take(1), tap(({ schema }) => {
137
+ this.schema$.next(schema);
138
+ const isEmptySchema = Object.keys(schema)[0] === "" && Object.values(schema)[0] === "Array<>";
139
+ const error = isEmptySchema
140
+ ? "Document schema is missing. Please ensure at least one document exists for the selected workflow."
141
+ : undefined;
142
+ this.schemaLoadError$.next(error);
143
+ this.runActivePipeline();
144
+ }), catchError((error) => {
145
+ this.schemaLoadError$.next("Error loading schema");
146
+ return this.handleError(error);
147
+ })).subscribe();
148
+ }
149
+ setActiveStage(i) {
150
+ const index = this.activeStage$.getValue();
151
+ if (index === i) {
152
+ this.activeStage$.next(undefined);
153
+ return;
154
+ }
155
+ this.activeStage$.next(i);
156
+ }
157
+ addStage() {
158
+ // NOTE(phase-4): an empty object `{}` is not a valid `PipelineStage`; it acts as a sentinel
159
+ // "blank slot" until the user picks a stage type. Tracked — proper fix is a discriminated
160
+ // union `PipelineStage | { kind: 'blank' }` for the in-progress pipeline.
161
+ const blankSlot = {};
162
+ const newPipeline = this.pipeline$.getValue().concat(blankSlot);
163
+ this.pipeline$.next(newPipeline);
164
+ }
165
+ onTextChange(event) {
166
+ this.prompt$.next(event);
167
+ }
168
+ promptSubmit() {
169
+ // Use combineLatest to fetch the latest values from multiple sources
170
+ combineLatest([this.schema$, this.threadId$, this.pipeline$, this.prompt$, this.chatHistory$])
171
+ .pipe(take(1), tap(() => { }), filter(([schema, , , prompt]) => !!schema && !!prompt), switchMap(([schema, threadId, pipeline, prompt, history]) => {
172
+ // Use a shallow copy of the pipeline
173
+ const previousError = history[history.length - 1]?.assistance?.error ?? '';
174
+ const pipelineCopy = pipeline.map(stage => JSON.parse(JSON.stringify(stage))) || [];
175
+ // `prompt` is filtered to truthy above; assert via narrowing rather than `!`.
176
+ const safePrompt = prompt ?? '';
177
+ return this.generatePipeline(safePrompt, schema, threadId, pipelineCopy, previousError).pipe(map((response) => ({ ...response, history, prompt: safePrompt })));
178
+ }), tap((response) => {
179
+ const { pipeline, threadId, history, prompt } = response;
180
+ const historyRecord = {
181
+ user: prompt,
182
+ assistance: response,
183
+ date: new Date()
184
+ };
185
+ // Use next with a concatenated value for chat history
186
+ this.chatHistory$.next([...(history || []), historyRecord]);
187
+ this.pipeline$.next(pipeline);
188
+ this.threadId$.next(threadId);
189
+ // Store threadID locally
190
+ if (isPlatformBrowser(this.#platformId)) {
191
+ localStorage.setItem('threadId', threadId);
192
+ }
193
+ // Run the active pipeline after all state updates are complete
194
+ this.runActivePipeline();
195
+ }), catchError((error) => {
196
+ return this.handleError(error);
197
+ })).subscribe();
198
+ }
199
+ runActivePipeline() {
200
+ const pipeline = [...(this.pipeline$.getValue().map(stage => (JSON.parse(JSON.stringify(stage)))) || [])];
201
+ const someAreNotValid = pipeline.some(stage => Object.keys(stage).length === 0);
202
+ if (pipeline.length === 0 || someAreNotValid) {
203
+ return;
204
+ }
205
+ try {
206
+ PipelineBuilder.validatePipeline(pipeline);
207
+ }
208
+ catch {
209
+ return;
210
+ }
211
+ const workflowId = this.workflowId$.getValue();
212
+ if (!workflowId) {
213
+ return;
214
+ }
215
+ this.runPipeLine(pipeline, workflowId).pipe(take(1), tap(({ results }) => {
216
+ this.pipeLineResult$.next(results);
217
+ }), catchError((error) => {
218
+ const err = JSON.parse(JSON.stringify(error));
219
+ const errorMessage = err.error;
220
+ if (errorMessage) {
221
+ this.pipelineErrorLogAndRetry(errorMessage);
222
+ }
223
+ return this.handleError(error);
224
+ })).subscribe();
225
+ }
226
+ pipelineErrorLogAndRetry(message) {
227
+ const history = this.chatHistory$.getValue();
228
+ const prompt = this.prompt$.getValue();
229
+ // NOTE(phase-4): the chatHistory `assistance` field is typed as a full
230
+ // `IPipelineGenerationResponse`, but the error path only carries `message`.
231
+ // Treat the partial record as a structural fill until the type is narrowed via
232
+ // a discriminated union `{ kind: 'ok', response } | { kind: 'error', message }`.
233
+ const partialAssistance = { message };
234
+ const historyRecord = {
235
+ user: prompt ?? '',
236
+ assistance: partialAssistance,
237
+ date: new Date()
238
+ };
239
+ this.chatHistory$.next([...(history || []), historyRecord]);
240
+ }
241
+ get activeStage() {
242
+ return this.pipeline$.asObservable().pipe(switchMap(pipeline => this.activeStage$.pipe(map(activeIndex => {
243
+ if (activeIndex === undefined)
244
+ return undefined;
245
+ // Each `PipelineStage` in the union has exactly one operator key (e.g. `$match`).
246
+ // Read it through a typed `Record` lookup rather than casting the whole row.
247
+ const stage = pipeline[activeIndex];
248
+ const stageRecord = (stage ?? {});
249
+ const name = Object.keys(stageRecord)[0] ?? '';
250
+ return {
251
+ name,
252
+ config: stageRecord[name],
253
+ };
254
+ }))));
255
+ }
256
+ saveStage(index, stage) {
257
+ const pipeline = this.pipeline$.getValue();
258
+ if (index === undefined) {
259
+ return;
260
+ }
261
+ const newPipeline = pipeline.map((s, i) => {
262
+ if (i === index && stage) {
263
+ // NOTE(phase-4): building a `PipelineStage` from `{ [stage.stage]: stage.config }` is
264
+ // correct at runtime — the union member is keyed by the operator — but TS cannot prove
265
+ // the dynamic key matches a specific variant. Tracked for a per-stage builder fn.
266
+ const built = { [stage.stage]: stage.config };
267
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- TODO(phase-4): per-stage builder fn would let TS narrow; internal-only service.
268
+ return built;
269
+ }
270
+ return s;
271
+ });
272
+ this.pipeline$.next(newPipeline);
273
+ this.activeStage$.next(undefined);
274
+ this.runActivePipeline();
275
+ }
276
+ deleteStage(index) {
277
+ const pipeline = this.pipeline$.getValue();
278
+ if (index === undefined) {
279
+ return;
280
+ }
281
+ const newPipeline = pipeline.filter((_s, i) => i !== index);
282
+ this.pipeline$.next(newPipeline);
283
+ this.activeStage$.next(undefined);
284
+ this.runActivePipeline();
285
+ }
286
+ get pipelineGeneralValid() {
287
+ return this.pipeline$.asObservable().pipe(map(pipeline => {
288
+ const allHaveTypes = pipeline.every(stage => Object.keys(stage).length === 1);
289
+ if (!allHaveTypes) {
290
+ return {
291
+ valid: false,
292
+ message: "All stages must be a valid pipeline stage"
293
+ };
294
+ }
295
+ const AllStagesMustHaveConfig = pipeline.every((stage) => {
296
+ // Each PipelineStage union member has one operator key + value; reading via
297
+ // `Object.entries` keeps us off an `as unknown as Record<…>` cast.
298
+ const [firstEntry] = Object.entries(stage);
299
+ return firstEntry !== undefined && firstEntry[1] !== undefined;
300
+ });
301
+ if (!AllStagesMustHaveConfig) {
302
+ return {
303
+ valid: false,
304
+ message: "All stages must have a configuration"
305
+ };
306
+ }
307
+ return {
308
+ valid: true
309
+ };
310
+ }));
311
+ }
312
+ static { this.ɵfac = function PipelineService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PipelineService)(); }; }
313
+ static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PipelineService, factory: PipelineService.ɵfac, providedIn: 'root' }); }
314
+ }
315
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PipelineService, [{
316
+ type: Injectable,
317
+ args: [{
318
+ providedIn: 'root'
319
+ }]
320
+ }], () => [], null); })();
321
+
322
+ function _forTrack0$1($index, $item) { return this.trackByStage($item); }
323
+ function AggregateStageEditorComponent_For_9_Template(rf, ctx) { if (rf & 1) {
324
+ i0.ɵɵelementStart(0, "mat-option", 4);
325
+ i0.ɵɵtext(1);
326
+ i0.ɵɵelementEnd();
327
+ } if (rf & 2) {
328
+ const stage_r1 = ctx.$implicit;
329
+ i0.ɵɵproperty("value", stage_r1.stage);
330
+ i0.ɵɵadvance();
331
+ i0.ɵɵtextInterpolate(stage_r1.stage);
332
+ } }
333
+ function AggregateStageEditorComponent_Conditional_12_Template(rf, ctx) { if (rf & 1) {
334
+ i0.ɵɵelementStart(0, "mat-icon", 5);
335
+ i0.ɵɵtext(1, "info");
336
+ i0.ɵɵelementEnd();
337
+ } if (rf & 2) {
338
+ i0.ɵɵproperty("matTooltip", ctx);
339
+ } }
340
+ function AggregateStageEditorComponent_Conditional_13_Template(rf, ctx) { if (rf & 1) {
341
+ i0.ɵɵelementStart(0, "div", 6)(1, "mat-icon", 11);
342
+ i0.ɵɵtext(2, "warning");
343
+ i0.ɵɵelementEnd();
344
+ i0.ɵɵelementStart(3, "span");
345
+ i0.ɵɵtext(4);
346
+ i0.ɵɵelementEnd()();
347
+ } if (rf & 2) {
348
+ i0.ɵɵadvance(4);
349
+ i0.ɵɵtextInterpolate(ctx);
350
+ } }
351
+ function AggregateStageEditorComponent_Conditional_14_Template(rf, ctx) { if (rf & 1) {
352
+ const _r2 = i0.ɵɵgetCurrentView();
353
+ i0.ɵɵelementStart(0, "div", 7)(1, "lib-json-editor", 12);
354
+ i0.ɵɵlistener("valueChange", function AggregateStageEditorComponent_Conditional_14_Template_lib_json_editor_valueChange_1_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.handleConfigChange($event)); });
355
+ i0.ɵɵelementEnd()();
356
+ } if (rf & 2) {
357
+ const ctx_r2 = i0.ɵɵnextContext();
358
+ i0.ɵɵadvance();
359
+ i0.ɵɵproperty("value", ctx_r2.currentConfig());
360
+ } }
361
+ /**
362
+ * Embedded aggregate-pipeline stage editor used inside `lib-pipeline-generator`.
363
+ * Lets the user pick a `$stage` operator and edit its JSON configuration (via
364
+ * `lib-json-editor`), validating the config against the pipeline builder.
365
+ *
366
+ * Not part of the public API.
367
+ *
368
+ * @example
369
+ * <lib-aggregate-stage-editor
370
+ * [selectedStage]="stage"
371
+ * [isRunningPipeline]="running"
372
+ * (saveStage)="onSave($event)"
373
+ * (deleteStage)="onDelete()" />
374
+ */
375
+ class AggregateStageEditorComponent {
376
+ constructor() {
377
+ /** Stage currently being edited (one row of the pipeline generator state). */
378
+ this.selectedStage = input(undefined, ...(ngDevMode ? [{ debugName: "selectedStage" }] : /* istanbul ignore next */ []));
379
+ /** When the parent pipeline is executing, destructive/save actions are disabled. */
380
+ this.isRunningPipeline = input(false, ...(ngDevMode ? [{ debugName: "isRunningPipeline" }] : /* istanbul ignore next */ []));
381
+ /** Emits the prepared stage when the user saves a valid configuration. */
382
+ this.saveStage = output();
383
+ /** Emits when the user requests the active stage be removed. */
384
+ this.deleteStage = output();
385
+ /** Stages the user can choose from (loaded once from the pipeline builder). */
386
+ this.allowedStages = PipelineBuilder.getViewOnlyStages();
387
+ /** Working draft of the stage being edited; `undefined` until the user edits. */
388
+ this.#draft = signal(undefined, ...(ngDevMode ? [{ debugName: "#draft" }] : /* istanbul ignore next */ []));
389
+ /** Validation message from the last config check, or `undefined` when valid. */
390
+ this.configValidationError = signal(undefined, ...(ngDevMode ? [{ debugName: "configValidationError" }] : /* istanbul ignore next */ []));
391
+ /** Resolved operator key for the select control (draft first, else the input). */
392
+ this.currentStage = computed(() => this.#draft()?.stage ?? this.selectedStage()?.name, ...(ngDevMode ? [{ debugName: "currentStage" }] : /* istanbul ignore next */ []));
393
+ /** Config value passed to the JSON editor (draft first, else the input). */
394
+ this.currentConfig = computed(() => {
395
+ const config = this.#draft()?.config ?? this.selectedStage()?.config;
396
+ return this.#asObject(config);
397
+ }, ...(ngDevMode ? [{ debugName: "currentConfig" }] : /* istanbul ignore next */ []));
398
+ /** Whether the editing surface (operator picker is set or config present) shows. */
399
+ this.showConfig = computed(() => this.#draft() !== undefined || this.selectedStage()?.config !== undefined, ...(ngDevMode ? [{ debugName: "showConfig" }] : /* istanbul ignore next */ []));
400
+ /** Human description for the currently selected operator, if any. */
401
+ this.activeDescription = computed(() => this.allowedStages.find((s) => s.stage === this.currentStage())?.description, ...(ngDevMode ? [{ debugName: "activeDescription" }] : /* istanbul ignore next */ []));
402
+ /** Whether the Save action is enabled: a draft exists, is valid and error-free. */
403
+ this.canSave = computed(() => {
404
+ const draft = this.#draft();
405
+ return draft !== undefined && draft.valid === true && this.configValidationError() === undefined;
406
+ }, ...(ngDevMode ? [{ debugName: "canSave" }] : /* istanbul ignore next */ []));
407
+ }
408
+ /** Working draft of the stage being edited; `undefined` until the user edits. */
409
+ #draft;
410
+ handleStageChange(event) {
411
+ const stage = event.value;
412
+ // BEHAVIOUR FIX: the previous implementation spread the source row AFTER
413
+ // setting `stage`, which silently reverted the operator to its prior value.
414
+ // Here the newly picked operator always wins; the existing config carries over.
415
+ const config = this.#draft()?.config ?? this.selectedStage()?.config;
416
+ this.#draft.set({ stage, config, valid: false });
417
+ this.#validate();
418
+ }
419
+ handleConfigChange(change) {
420
+ const stage = this.#draft()?.stage ?? this.#stageFromRow();
421
+ this.#draft.set({ stage, config: change.value, valid: false });
422
+ this.#validate();
423
+ }
424
+ saveConfiguration() {
425
+ const draft = this.#draft();
426
+ if (this.canSave() && draft?.stage) {
427
+ this.saveStage.emit({
428
+ stage: draft.stage,
429
+ description: this.activeDescription() ?? '',
430
+ config: draft.config,
431
+ valid: draft.valid,
432
+ });
433
+ }
434
+ }
435
+ deleteActive() {
436
+ this.deleteStage.emit();
437
+ }
438
+ trackByStage(stage) {
439
+ return stage.stage;
440
+ }
441
+ /** Validates the working draft against the pipeline builder, updating state. */
442
+ #validate() {
443
+ this.configValidationError.set(undefined);
444
+ const draft = this.#draft();
445
+ if (!draft)
446
+ return;
447
+ const { config, stage } = draft;
448
+ if ((config === undefined || config === null) || !stage) {
449
+ this.#draft.set({ ...draft, valid: false });
450
+ return;
451
+ }
452
+ try {
453
+ const valid = PipelineBuilder.validateStageConfig(stage, config);
454
+ this.#draft.set({ ...draft, valid });
455
+ }
456
+ catch (error) {
457
+ const message = error instanceof Error ? error.message : 'An unknown error occurred';
458
+ this.configValidationError.set(message);
459
+ this.#draft.set({ ...draft, valid: false });
460
+ }
461
+ }
462
+ /** Reads the operator key from the input row as a typed enum, if recognised. */
463
+ #stageFromRow() {
464
+ const name = this.selectedStage()?.name;
465
+ return this.allowedStages.find((s) => s.stage === name)?.stage;
466
+ }
467
+ /** Narrows an opaque config value to the `object | undefined` the JSON editor accepts. */
468
+ #asObject(value) {
469
+ return value !== null && typeof value === 'object' ? value : undefined;
470
+ }
471
+ static { this.ɵfac = function AggregateStageEditorComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AggregateStageEditorComponent)(); }; }
472
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AggregateStageEditorComponent, selectors: [["lib-aggregate-stage-editor"]], hostAttrs: [1, "lib-aggregate-stage-editor"], inputs: { selectedStage: [1, "selectedStage"], isRunningPipeline: [1, "isRunningPipeline"] }, outputs: { saveStage: "saveStage", deleteStage: "deleteStage" }, decls: 25, vars: 7, consts: [["appearance", "outlined", 1, "lib-aggregate-stage-editor__card"], [1, "lib-aggregate-stage-editor__title"], ["appearance", "outline", "subscriptSizing", "dynamic", 1, "lib-aggregate-stage-editor__field"], ["placeholder", "Choose a stage operator", 3, "selectionChange", "value"], [3, "value"], ["matSuffix", "", "matTooltipHideDelay", "1000", 1, "lib-aggregate-stage-editor__hint-icon", 3, "matTooltip"], ["role", "alert", 1, "lib-aggregate-stage-editor__warning"], [1, "lib-aggregate-stage-editor__config"], ["align", "end", 1, "lib-aggregate-stage-editor__actions"], ["mat-button", "", "type", "button", "color", "warn", 3, "click", "disabled"], ["mat-flat-button", "", "type", "button", "color", "primary", 3, "click", "disabled"], ["aria-hidden", "true"], [3, "valueChange", "value"]], template: function AggregateStageEditorComponent_Template(rf, ctx) { if (rf & 1) {
473
+ i0.ɵɵelementStart(0, "mat-card", 0)(1, "mat-card-content")(2, "p", 1);
474
+ i0.ɵɵtext(3, "Aggregate pipeline stage configuration");
475
+ i0.ɵɵelementEnd();
476
+ i0.ɵɵelementStart(4, "mat-form-field", 2)(5, "mat-label");
477
+ i0.ɵɵtext(6, "Select aggregate stage");
478
+ i0.ɵɵelementEnd();
479
+ i0.ɵɵelementStart(7, "mat-select", 3);
480
+ i0.ɵɵlistener("selectionChange", function AggregateStageEditorComponent_Template_mat_select_selectionChange_7_listener($event) { return ctx.handleStageChange($event); });
481
+ i0.ɵɵrepeaterCreate(8, AggregateStageEditorComponent_For_9_Template, 2, 2, "mat-option", 4, _forTrack0$1, true);
482
+ i0.ɵɵelementEnd();
483
+ i0.ɵɵelementStart(10, "mat-hint");
484
+ i0.ɵɵtext(11);
485
+ i0.ɵɵelementEnd();
486
+ i0.ɵɵconditionalCreate(12, AggregateStageEditorComponent_Conditional_12_Template, 2, 1, "mat-icon", 5);
487
+ i0.ɵɵelementEnd();
488
+ i0.ɵɵconditionalCreate(13, AggregateStageEditorComponent_Conditional_13_Template, 5, 1, "div", 6);
489
+ i0.ɵɵconditionalCreate(14, AggregateStageEditorComponent_Conditional_14_Template, 2, 1, "div", 7);
490
+ i0.ɵɵelementEnd();
491
+ i0.ɵɵelement(15, "mat-divider");
492
+ i0.ɵɵelementStart(16, "mat-card-actions", 8)(17, "button", 9);
493
+ i0.ɵɵlistener("click", function AggregateStageEditorComponent_Template_button_click_17_listener() { return ctx.deleteActive(); });
494
+ i0.ɵɵtext(18, " Delete ");
495
+ i0.ɵɵelementStart(19, "mat-icon");
496
+ i0.ɵɵtext(20, "delete");
497
+ i0.ɵɵelementEnd()();
498
+ i0.ɵɵelementStart(21, "button", 10);
499
+ i0.ɵɵlistener("click", function AggregateStageEditorComponent_Template_button_click_21_listener() { return ctx.saveConfiguration(); });
500
+ i0.ɵɵtext(22, " Save ");
501
+ i0.ɵɵelementStart(23, "mat-icon");
502
+ i0.ɵɵtext(24, "save");
503
+ i0.ɵɵelementEnd()()()();
504
+ } if (rf & 2) {
505
+ let tmp_3_0;
506
+ let tmp_4_0;
507
+ i0.ɵɵadvance(7);
508
+ i0.ɵɵproperty("value", ctx.currentStage());
509
+ i0.ɵɵadvance();
510
+ i0.ɵɵrepeater(ctx.allowedStages);
511
+ i0.ɵɵadvance(3);
512
+ i0.ɵɵtextInterpolate1(" ", ctx.activeDescription() ? "Hover the info icon to view stage details." : "Select an aggregation operator from the list.", " ");
513
+ i0.ɵɵadvance();
514
+ i0.ɵɵconditional((tmp_3_0 = ctx.activeDescription()) ? 12 : -1, tmp_3_0);
515
+ i0.ɵɵadvance();
516
+ i0.ɵɵconditional((tmp_4_0 = ctx.configValidationError()) ? 13 : -1, tmp_4_0);
517
+ i0.ɵɵadvance();
518
+ i0.ɵɵconditional(ctx.showConfig() ? 14 : -1);
519
+ i0.ɵɵadvance(3);
520
+ i0.ɵɵproperty("disabled", ctx.isRunningPipeline());
521
+ i0.ɵɵadvance(4);
522
+ i0.ɵɵproperty("disabled", ctx.isRunningPipeline() || !ctx.canSave());
523
+ } }, dependencies: [JsonEditorComponent,
524
+ MatButtonModule, i1.MatButton, MatCardModule, i3.MatCard, i3.MatCardActions, i3.MatCardContent, MatDividerModule, i6.MatDivider, MatIconModule, i3$1.MatIcon, MatFormFieldModule, i2.MatFormField, i2.MatLabel, i2.MatHint, i2.MatSuffix, MatSelectModule, i8.MatSelect, i8.MatOption, MatTooltipModule, i5.MatTooltip], styles: ["[_nghost-%COMP%]{display:block}.lib-aggregate-stage-editor__card[_ngcontent-%COMP%]{margin-bottom:1rem}.lib-aggregate-stage-editor__title[_ngcontent-%COMP%]{margin:0 0 1.5rem;font-size:.625rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--lib-forms-on-surface-variant)}.lib-aggregate-stage-editor__field[_ngcontent-%COMP%]{width:100%}.lib-aggregate-stage-editor__hint-icon[_ngcontent-%COMP%]{cursor:help;color:var(--lib-forms-on-surface-variant)}.lib-aggregate-stage-editor__warning[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:.5rem;padding:.75rem;margin:1rem 0;border-radius:var(--lib-forms-radius-sm, 8px);background:var(--sem-warning-surface);color:var(--lib-forms-on-surface)}.lib-aggregate-stage-editor__warning[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{flex:0 0 auto;color:var(--sem-warning, var(--lib-forms-on-surface-variant))}.lib-aggregate-stage-editor__config[_ngcontent-%COMP%]{margin-top:1.5rem}.lib-aggregate-stage-editor__actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"], changeDetection: 0 }); }
525
+ }
526
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AggregateStageEditorComponent, [{
527
+ type: Component,
528
+ args: [{ selector: 'lib-aggregate-stage-editor', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, host: { 'class': 'lib-aggregate-stage-editor' }, imports: [
529
+ JsonEditorComponent,
530
+ MatButtonModule,
531
+ MatCardModule,
532
+ MatDividerModule,
533
+ MatIconModule,
534
+ MatFormFieldModule,
535
+ MatSelectModule,
536
+ MatTooltipModule,
537
+ ], template: "<mat-card class=\"lib-aggregate-stage-editor__card\" appearance=\"outlined\">\n <mat-card-content>\n <p class=\"lib-aggregate-stage-editor__title\">Aggregate pipeline stage configuration</p>\n\n <mat-form-field\n class=\"lib-aggregate-stage-editor__field\"\n appearance=\"outline\"\n subscriptSizing=\"dynamic\">\n <mat-label>Select aggregate stage</mat-label>\n <mat-select\n [value]=\"currentStage()\"\n (selectionChange)=\"handleStageChange($event)\"\n placeholder=\"Choose a stage operator\">\n @for (stage of allowedStages; track trackByStage(stage)) {\n <mat-option [value]=\"stage.stage\">{{ stage.stage }}</mat-option>\n }\n </mat-select>\n <mat-hint>\n {{ activeDescription()\n ? 'Hover the info icon to view stage details.'\n : 'Select an aggregation operator from the list.' }}\n </mat-hint>\n @if (activeDescription(); as description) {\n <mat-icon\n class=\"lib-aggregate-stage-editor__hint-icon\"\n matSuffix\n matTooltipHideDelay=\"1000\"\n [matTooltip]=\"description\">info</mat-icon>\n }\n </mat-form-field>\n\n @if (configValidationError(); as error) {\n <div class=\"lib-aggregate-stage-editor__warning\" role=\"alert\">\n <mat-icon aria-hidden=\"true\">warning</mat-icon>\n <span>{{ error }}</span>\n </div>\n }\n\n @if (showConfig()) {\n <div class=\"lib-aggregate-stage-editor__config\">\n <lib-json-editor [value]=\"currentConfig()\" (valueChange)=\"handleConfigChange($event)\" />\n </div>\n }\n </mat-card-content>\n\n <mat-divider />\n\n <mat-card-actions class=\"lib-aggregate-stage-editor__actions\" align=\"end\">\n <button\n mat-button\n type=\"button\"\n color=\"warn\"\n [disabled]=\"isRunningPipeline()\"\n (click)=\"deleteActive()\">\n Delete\n <mat-icon>delete</mat-icon>\n </button>\n <button\n mat-flat-button\n type=\"button\"\n color=\"primary\"\n [disabled]=\"isRunningPipeline() || !canSave()\"\n (click)=\"saveConfiguration()\">\n Save\n <mat-icon>save</mat-icon>\n </button>\n </mat-card-actions>\n</mat-card>\n", styles: [":host{display:block}.lib-aggregate-stage-editor__card{margin-bottom:1rem}.lib-aggregate-stage-editor__title{margin:0 0 1.5rem;font-size:.625rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--lib-forms-on-surface-variant)}.lib-aggregate-stage-editor__field{width:100%}.lib-aggregate-stage-editor__hint-icon{cursor:help;color:var(--lib-forms-on-surface-variant)}.lib-aggregate-stage-editor__warning{display:flex;align-items:flex-start;gap:.5rem;padding:.75rem;margin:1rem 0;border-radius:var(--lib-forms-radius-sm, 8px);background:var(--sem-warning-surface);color:var(--lib-forms-on-surface)}.lib-aggregate-stage-editor__warning mat-icon{flex:0 0 auto;color:var(--sem-warning, var(--lib-forms-on-surface-variant))}.lib-aggregate-stage-editor__config{margin-top:1.5rem}.lib-aggregate-stage-editor__actions{display:flex;gap:.5rem}\n"] }]
538
+ }], null, { selectedStage: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedStage", required: false }] }], isRunningPipeline: [{ type: i0.Input, args: [{ isSignal: true, alias: "isRunningPipeline", required: false }] }], saveStage: [{ type: i0.Output, args: ["saveStage"] }], deleteStage: [{ type: i0.Output, args: ["deleteStage"] }] }); })();
539
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AggregateStageEditorComponent, { className: "AggregateStageEditorComponent", filePath: "lib/components/t-dynamic-data-edit/elements/pipeline-generator/elements/aggregate-stage-editor/aggregate-stage-editor.component.ts", lineNumber: 84 }); })();
540
+
541
+ const _c0 = ["textarea"];
542
+ const _forTrack0 = ($index, $item) => $item.value;
543
+ function PipelineGeneratorComponent_Conditional_3_Conditional_4_Template(rf, ctx) { if (rf & 1) {
544
+ i0.ɵɵelement(0, "mat-spinner", 6);
545
+ } }
546
+ function PipelineGeneratorComponent_Conditional_3_Conditional_9_Template(rf, ctx) { if (rf & 1) {
547
+ i0.ɵɵelement(0, "lib-empty-state", 9);
548
+ } }
549
+ function PipelineGeneratorComponent_Conditional_3_For_12_Conditional_6_Template(rf, ctx) { if (rf & 1) {
550
+ i0.ɵɵelementStart(0, "div", 29);
551
+ i0.ɵɵtext(1, "Incomplete \u2014 click to edit");
552
+ i0.ɵɵelementEnd();
553
+ } }
554
+ function PipelineGeneratorComponent_Conditional_3_For_12_Conditional_7_Template(rf, ctx) { if (rf & 1) {
555
+ i0.ɵɵelementStart(0, "mat-icon", 30);
556
+ i0.ɵɵtext(1, "check_circle");
557
+ i0.ɵɵelementEnd();
558
+ } }
559
+ function PipelineGeneratorComponent_Conditional_3_For_12_Conditional_8_Template(rf, ctx) { if (rf & 1) {
560
+ i0.ɵɵelementStart(0, "mat-icon", 31);
561
+ i0.ɵɵtext(1, "warning");
562
+ i0.ɵɵelementEnd();
563
+ } }
564
+ function PipelineGeneratorComponent_Conditional_3_For_12_Conditional_10_Template(rf, ctx) { if (rf & 1) {
565
+ const _r5 = i0.ɵɵgetCurrentView();
566
+ i0.ɵɵelementStart(0, "lib-aggregate-stage-editor", 33);
567
+ i0.ɵɵlistener("deleteStage", function PipelineGeneratorComponent_Conditional_3_For_12_Conditional_10_Template_lib_aggregate_stage_editor_deleteStage_0_listener() { i0.ɵɵrestoreView(_r5); const $index_r3 = i0.ɵɵnextContext().$index; const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.deleteStage($index_r3)); })("saveStage", function PipelineGeneratorComponent_Conditional_3_For_12_Conditional_10_Template_lib_aggregate_stage_editor_saveStage_0_listener($event) { i0.ɵɵrestoreView(_r5); const $index_r3 = i0.ɵɵnextContext().$index; const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.saveStage($index_r3, $event)); });
568
+ i0.ɵɵelementEnd();
569
+ } if (rf & 2) {
570
+ const stage_r6 = i0.ɵɵnextContext().$implicit;
571
+ const ctx_r3 = i0.ɵɵnextContext(2);
572
+ i0.ɵɵproperty("selectedStage", stage_r6)("isRunningPipeline", ctx_r3.isRunningPipeline);
573
+ } }
574
+ function PipelineGeneratorComponent_Conditional_3_For_12_Template(rf, ctx) { if (rf & 1) {
575
+ const _r2 = i0.ɵɵgetCurrentView();
576
+ i0.ɵɵelementStart(0, "mat-list-item", 25);
577
+ i0.ɵɵlistener("click", function PipelineGeneratorComponent_Conditional_3_For_12_Template_mat_list_item_click_0_listener() { const $index_r3 = i0.ɵɵrestoreView(_r2).$index; const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.setActiveStage($index_r3)); });
578
+ i0.ɵɵelementStart(1, "span", 26);
579
+ i0.ɵɵtext(2);
580
+ i0.ɵɵelementEnd();
581
+ i0.ɵɵelementStart(3, "div", 27)(4, "div", 28);
582
+ i0.ɵɵtext(5);
583
+ i0.ɵɵelementEnd();
584
+ i0.ɵɵconditionalCreate(6, PipelineGeneratorComponent_Conditional_3_For_12_Conditional_6_Template, 2, 0, "div", 29);
585
+ i0.ɵɵelementEnd();
586
+ i0.ɵɵconditionalCreate(7, PipelineGeneratorComponent_Conditional_3_For_12_Conditional_7_Template, 2, 0, "mat-icon", 30)(8, PipelineGeneratorComponent_Conditional_3_For_12_Conditional_8_Template, 2, 0, "mat-icon", 31);
587
+ i0.ɵɵelementEnd();
588
+ i0.ɵɵelement(9, "mat-divider");
589
+ i0.ɵɵconditionalCreate(10, PipelineGeneratorComponent_Conditional_3_For_12_Conditional_10_Template, 1, 2, "lib-aggregate-stage-editor", 32);
590
+ } if (rf & 2) {
591
+ const stage_r6 = ctx.$implicit;
592
+ const $index_r3 = ctx.$index;
593
+ const ctx_r3 = i0.ɵɵnextContext(2);
594
+ i0.ɵɵclassProp("lib-pipeline-generator__stage--active", ctx_r3.activeStageIndex() === $index_r3);
595
+ i0.ɵɵproperty("activated", ctx_r3.activeStageIndex() === $index_r3);
596
+ i0.ɵɵadvance(2);
597
+ i0.ɵɵtextInterpolate($index_r3 + 1);
598
+ i0.ɵɵadvance(3);
599
+ i0.ɵɵtextInterpolate(stage_r6.name || "Stage");
600
+ i0.ɵɵadvance();
601
+ i0.ɵɵconditional(!stage_r6.name && ctx_r3.activeStageIndex() !== $index_r3 ? 6 : -1);
602
+ i0.ɵɵadvance();
603
+ i0.ɵɵconditional(ctx_r3.activeStageIndex() === $index_r3 ? 7 : !stage_r6.valid ? 8 : -1);
604
+ i0.ɵɵadvance(3);
605
+ i0.ɵɵconditional(ctx_r3.activeStageIndex() === $index_r3 ? 10 : -1);
606
+ } }
607
+ function PipelineGeneratorComponent_Conditional_3_Conditional_22_Template(rf, ctx) { if (rf & 1) {
608
+ i0.ɵɵelement(0, "mat-spinner", 6);
609
+ } }
610
+ function PipelineGeneratorComponent_Conditional_3_Conditional_27_Template(rf, ctx) { if (rf & 1) {
611
+ i0.ɵɵelement(0, "lib-t-dynamic-data-view", 15);
612
+ } if (rf & 2) {
613
+ i0.ɵɵproperty("data", ctx);
614
+ } }
615
+ function PipelineGeneratorComponent_Conditional_3_Conditional_28_Template(rf, ctx) { if (rf & 1) {
616
+ i0.ɵɵelement(0, "lib-empty-state", 16);
617
+ } }
618
+ function PipelineGeneratorComponent_Conditional_3_Conditional_32_Template(rf, ctx) { if (rf & 1) {
619
+ i0.ɵɵelement(0, "mat-spinner", 6);
620
+ } }
621
+ function PipelineGeneratorComponent_Conditional_3_Conditional_37_Template(rf, ctx) { if (rf & 1) {
622
+ i0.ɵɵelementStart(0, "div", 18)(1, "mat-icon", 34);
623
+ i0.ɵɵtext(2, "error");
624
+ i0.ɵɵelementEnd();
625
+ i0.ɵɵelementStart(3, "span");
626
+ i0.ɵɵtext(4);
627
+ i0.ɵɵelementEnd()();
628
+ } if (rf & 2) {
629
+ i0.ɵɵadvance(4);
630
+ i0.ɵɵtextInterpolate(ctx);
631
+ } }
632
+ function PipelineGeneratorComponent_Conditional_3_For_39_Conditional_12_Template(rf, ctx) { if (rf & 1) {
633
+ i0.ɵɵelementStart(0, "div", 40);
634
+ i0.ɵɵtext(1);
635
+ i0.ɵɵelementEnd();
636
+ } if (rf & 2) {
637
+ const chat_r7 = i0.ɵɵnextContext().$implicit;
638
+ i0.ɵɵadvance();
639
+ i0.ɵɵtextInterpolate1(" ", chat_r7.assistance.error, " ");
640
+ } }
641
+ function PipelineGeneratorComponent_Conditional_3_For_39_Conditional_13_Template(rf, ctx) { if (rf & 1) {
642
+ i0.ɵɵelementStart(0, "div", 41)(1, "pre");
643
+ i0.ɵɵtext(2);
644
+ i0.ɵɵpipe(3, "json");
645
+ i0.ɵɵelementEnd()();
646
+ } if (rf & 2) {
647
+ const chat_r7 = i0.ɵɵnextContext().$implicit;
648
+ i0.ɵɵadvance(2);
649
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, chat_r7.assistance.pipeline));
650
+ } }
651
+ function PipelineGeneratorComponent_Conditional_3_For_39_Template(rf, ctx) { if (rf & 1) {
652
+ i0.ɵɵelementStart(0, "div", 19)(1, "div", 35)(2, "div");
653
+ i0.ɵɵtext(3);
654
+ i0.ɵɵelementEnd();
655
+ i0.ɵɵelementStart(4, "div", 36);
656
+ i0.ɵɵtext(5);
657
+ i0.ɵɵpipe(6, "daysAgo");
658
+ i0.ɵɵelementStart(7, "mat-icon", 37);
659
+ i0.ɵɵtext(8, "done_all");
660
+ i0.ɵɵelementEnd()()();
661
+ i0.ɵɵelementStart(9, "div", 38)(10, "mat-icon", 39);
662
+ i0.ɵɵtext(11, "smart_toy");
663
+ i0.ɵɵelementEnd();
664
+ i0.ɵɵconditionalCreate(12, PipelineGeneratorComponent_Conditional_3_For_39_Conditional_12_Template, 2, 1, "div", 40)(13, PipelineGeneratorComponent_Conditional_3_For_39_Conditional_13_Template, 4, 3, "div", 41);
665
+ i0.ɵɵelementEnd()();
666
+ } if (rf & 2) {
667
+ const chat_r7 = ctx.$implicit;
668
+ i0.ɵɵadvance(3);
669
+ i0.ɵɵtextInterpolate(chat_r7.user);
670
+ i0.ɵɵadvance(2);
671
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 3, chat_r7.date), " ");
672
+ i0.ɵɵadvance(7);
673
+ i0.ɵɵconditional(chat_r7.assistance.error ? 12 : 13);
674
+ } }
675
+ function PipelineGeneratorComponent_Conditional_3_Conditional_44_Template(rf, ctx) { if (rf & 1) {
676
+ i0.ɵɵelement(0, "mat-spinner", 23);
677
+ } }
678
+ function PipelineGeneratorComponent_Conditional_3_Conditional_45_Template(rf, ctx) { if (rf & 1) {
679
+ i0.ɵɵelementStart(0, "mat-icon");
680
+ i0.ɵɵtext(1, "send");
681
+ i0.ɵɵelementEnd();
682
+ } }
683
+ function PipelineGeneratorComponent_Conditional_3_Conditional_46_For_6_Template(rf, ctx) { if (rf & 1) {
684
+ const _r8 = i0.ɵɵgetCurrentView();
685
+ i0.ɵɵelementStart(0, "button", 45);
686
+ i0.ɵɵlistener("click", function PipelineGeneratorComponent_Conditional_3_Conditional_46_For_6_Template_button_click_0_listener() { const property_r9 = i0.ɵɵrestoreView(_r8).$implicit; const ctx_r3 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r3.selectSuggestion(property_r9.value)); });
687
+ i0.ɵɵtext(1);
688
+ i0.ɵɵelementEnd();
689
+ } if (rf & 2) {
690
+ const property_r9 = ctx.$implicit;
691
+ i0.ɵɵadvance();
692
+ i0.ɵɵtextInterpolate1(" ", property_r9.label, " ");
693
+ } }
694
+ function PipelineGeneratorComponent_Conditional_3_Conditional_46_Template(rf, ctx) { if (rf & 1) {
695
+ i0.ɵɵelementStart(0, "section", 24);
696
+ i0.ɵɵelement(1, "mat-divider");
697
+ i0.ɵɵelementStart(2, "p", 42);
698
+ i0.ɵɵtext(3, "Collection document properties");
699
+ i0.ɵɵelementEnd();
700
+ i0.ɵɵelementStart(4, "div", 43);
701
+ i0.ɵɵrepeaterCreate(5, PipelineGeneratorComponent_Conditional_3_Conditional_46_For_6_Template, 2, 1, "button", 44, _forTrack0);
702
+ i0.ɵɵelementEnd()();
703
+ } if (rf & 2) {
704
+ const ctx_r3 = i0.ɵɵnextContext(2);
705
+ i0.ɵɵadvance(5);
706
+ i0.ɵɵrepeater(ctx_r3.schemaProperties());
707
+ } }
708
+ function PipelineGeneratorComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
709
+ const _r1 = i0.ɵɵgetCurrentView();
710
+ i0.ɵɵelementStart(0, "mat-accordion", 3)(1, "mat-expansion-panel", 5)(2, "mat-expansion-panel-header")(3, "mat-panel-title");
711
+ i0.ɵɵconditionalCreate(4, PipelineGeneratorComponent_Conditional_3_Conditional_4_Template, 1, 0, "mat-spinner", 6);
712
+ i0.ɵɵelementStart(5, "mat-icon", 7);
713
+ i0.ɵɵtext(6, "dynamic_form");
714
+ i0.ɵɵelementEnd();
715
+ i0.ɵɵtext(7);
716
+ i0.ɵɵelementEnd()();
717
+ i0.ɵɵelementStart(8, "div", 8);
718
+ i0.ɵɵconditionalCreate(9, PipelineGeneratorComponent_Conditional_3_Conditional_9_Template, 1, 0, "lib-empty-state", 9);
719
+ i0.ɵɵelementStart(10, "mat-nav-list", 10);
720
+ i0.ɵɵrepeaterCreate(11, PipelineGeneratorComponent_Conditional_3_For_12_Template, 11, 8, null, null, i0.ɵɵcomponentInstance().trackByStageId, true);
721
+ i0.ɵɵelementStart(13, "mat-toolbar", 11);
722
+ i0.ɵɵelement(14, "span", 12);
723
+ i0.ɵɵelementStart(15, "button", 13);
724
+ i0.ɵɵlistener("click", function PipelineGeneratorComponent_Conditional_3_Template_button_click_15_listener() { i0.ɵɵrestoreView(_r1); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.addStage()); });
725
+ i0.ɵɵtext(16, " Add ");
726
+ i0.ɵɵelementStart(17, "mat-icon");
727
+ i0.ɵɵtext(18, "add");
728
+ i0.ɵɵelementEnd()()()()()();
729
+ i0.ɵɵelementStart(19, "mat-expansion-panel", 14)(20, "mat-expansion-panel-header")(21, "mat-panel-title");
730
+ i0.ɵɵconditionalCreate(22, PipelineGeneratorComponent_Conditional_3_Conditional_22_Template, 1, 0, "mat-spinner", 6);
731
+ i0.ɵɵelementStart(23, "mat-icon", 7);
732
+ i0.ɵɵtext(24, "dataset");
733
+ i0.ɵɵelementEnd();
734
+ i0.ɵɵtext(25);
735
+ i0.ɵɵelementEnd()();
736
+ i0.ɵɵelementStart(26, "div", 8);
737
+ i0.ɵɵconditionalCreate(27, PipelineGeneratorComponent_Conditional_3_Conditional_27_Template, 1, 1, "lib-t-dynamic-data-view", 15)(28, PipelineGeneratorComponent_Conditional_3_Conditional_28_Template, 1, 0, "lib-empty-state", 16);
738
+ i0.ɵɵelementEnd()();
739
+ i0.ɵɵelementStart(29, "mat-expansion-panel", 17)(30, "mat-expansion-panel-header")(31, "mat-panel-title");
740
+ i0.ɵɵconditionalCreate(32, PipelineGeneratorComponent_Conditional_3_Conditional_32_Template, 1, 0, "mat-spinner", 6);
741
+ i0.ɵɵelementStart(33, "mat-icon", 7);
742
+ i0.ɵɵtext(34, "tips_and_updates");
743
+ i0.ɵɵelementEnd();
744
+ i0.ɵɵtext(35);
745
+ i0.ɵɵelementEnd()();
746
+ i0.ɵɵelementStart(36, "div", 8);
747
+ i0.ɵɵconditionalCreate(37, PipelineGeneratorComponent_Conditional_3_Conditional_37_Template, 5, 1, "div", 18);
748
+ i0.ɵɵrepeaterCreate(38, PipelineGeneratorComponent_Conditional_3_For_39_Template, 14, 5, "div", 19, i0.ɵɵrepeaterTrackByIndex);
749
+ i0.ɵɵelementStart(40, "div", 20)(41, "textarea", 21, 0);
750
+ i0.ɵɵlistener("input", function PipelineGeneratorComponent_Conditional_3_Template_textarea_input_41_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.onTextChange($event)); });
751
+ i0.ɵɵelementEnd();
752
+ i0.ɵɵelementStart(43, "button", 22);
753
+ i0.ɵɵlistener("click", function PipelineGeneratorComponent_Conditional_3_Template_button_click_43_listener() { i0.ɵɵrestoreView(_r1); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.promptSubmit()); });
754
+ i0.ɵɵconditionalCreate(44, PipelineGeneratorComponent_Conditional_3_Conditional_44_Template, 1, 0, "mat-spinner", 23)(45, PipelineGeneratorComponent_Conditional_3_Conditional_45_Template, 2, 0, "mat-icon");
755
+ i0.ɵɵelementEnd()();
756
+ i0.ɵɵconditionalCreate(46, PipelineGeneratorComponent_Conditional_3_Conditional_46_Template, 7, 0, "section", 24);
757
+ i0.ɵɵelementEnd()()();
758
+ } if (rf & 2) {
759
+ let tmp_9_0;
760
+ let tmp_12_0;
761
+ const ctx_r3 = i0.ɵɵnextContext();
762
+ i0.ɵɵadvance(4);
763
+ i0.ɵɵconditional(ctx_r3.isRunningPipeline ? 4 : -1);
764
+ i0.ɵɵadvance(3);
765
+ i0.ɵɵtextInterpolate1(" ", ctx_r3.isRunningPipeline ? "Executing data pipeline\u2026" : "Data retrieval pipeline", " ");
766
+ i0.ɵɵadvance(2);
767
+ i0.ɵɵconditional(ctx_r3.stages().length === 0 ? 9 : -1);
768
+ i0.ɵɵadvance(2);
769
+ i0.ɵɵrepeater(ctx_r3.stages());
770
+ i0.ɵɵadvance(4);
771
+ i0.ɵɵproperty("disabled", ctx_r3.isRunningPipeline);
772
+ i0.ɵɵadvance(7);
773
+ i0.ɵɵconditional(ctx_r3.isRunningPipeline ? 22 : -1);
774
+ i0.ɵɵadvance(3);
775
+ i0.ɵɵtextInterpolate1(" ", ctx_r3.isRunningPipeline ? "Running pipeline\u2026" : "Data results", " ");
776
+ i0.ɵɵadvance(2);
777
+ i0.ɵɵconditional((tmp_9_0 = ctx_r3.pipeLineResults()) ? 27 : 28, tmp_9_0);
778
+ i0.ɵɵadvance(5);
779
+ i0.ɵɵconditional(ctx_r3.aiIsGeneratingPipeline ? 32 : -1);
780
+ i0.ɵɵadvance(3);
781
+ i0.ɵɵtextInterpolate1(" ", ctx_r3.aiIsGeneratingPipeline ? "Agent busy\u2026" : "AI agent prompt", " ");
782
+ i0.ɵɵadvance(2);
783
+ i0.ɵɵconditional((tmp_12_0 = ctx_r3.schemaLoadError()) ? 37 : -1, tmp_12_0);
784
+ i0.ɵɵadvance();
785
+ i0.ɵɵrepeater(ctx_r3.chatHistory());
786
+ i0.ɵɵadvance(3);
787
+ i0.ɵɵproperty("value", ctx_r3.prompt() || "");
788
+ i0.ɵɵadvance(2);
789
+ i0.ɵɵproperty("disabled", ctx_r3.aiIsGeneratingPipeline);
790
+ i0.ɵɵadvance();
791
+ i0.ɵɵconditional(ctx_r3.aiIsGeneratingPipeline ? 44 : 45);
792
+ i0.ɵɵadvance(2);
793
+ i0.ɵɵconditional(ctx_r3.showSuggestions() ? 46 : -1);
794
+ } }
795
+ function PipelineGeneratorComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
796
+ i0.ɵɵelement(0, "div", 46);
797
+ } }
798
+ /**
799
+ * Internal editor for `editType = MongoPipelineBuilder`. Implements
800
+ * `MatFormFieldControl` so it can be embedded inside a `mat-form-field`, and
801
+ * drives a MongoDB aggregation-pipeline builder (stage list, results preview,
802
+ * AI prompt) via a component-scoped {@link PipelineService}.
803
+ *
804
+ * Not part of the public API.
805
+ *
806
+ * @deprecated The MongoDB pipeline builder (`editType = MongoPipelineBuilder`)
807
+ * is deprecated and no longer offered as a selectable editor option (filtered
808
+ * out in `getSectionElements`). It is retained only to render already-configured
809
+ * (legacy) inputs and the `data-source-picker` MongoDB-pipeline data source.
810
+ * Do not wire it to any new editor option.
811
+ */
812
+ class PipelineGeneratorComponent {
813
+ static { this.nextId = 0; }
814
+ #platformId;
815
+ #destroyRef;
816
+ #pipeline;
817
+ constructor(ngControl, _elementRef) {
818
+ this.ngControl = ngControl;
819
+ this._elementRef = _elementRef;
820
+ this.stateChanges = new Subject();
821
+ this.#platformId = inject(PLATFORM_ID);
822
+ this.#destroyRef = inject(DestroyRef);
823
+ this.#pipeline = inject(PipelineService);
824
+ // MFC requires a plain mutable `id` field (string) — cannot be a signal.
825
+ this.id = `app-pipeline-generator-${PipelineGeneratorComponent.nextId++}`;
826
+ this.placeholder = '';
827
+ this.focused = false;
828
+ this.required = false;
829
+ this.touched = false;
830
+ this.disabled = false;
831
+ this.controlType = 'lib-pipeline-generator';
832
+ this.#errors = [];
833
+ /** Emits the updated pipeline configuration whenever the builder state changes. */
834
+ this.valueChanged = output();
835
+ this.onTouched = () => { };
836
+ // ---- Reactive view state (signals over | async) -------------------------
837
+ this.workflowId = toSignal(this.#pipeline.workflowId$, { initialValue: undefined });
838
+ this.activeStageIndex = toSignal(this.#pipeline.activeStage$, { initialValue: undefined });
839
+ this.pipeLineResults = toSignal(this.#pipeline.pipeLineResult$, { initialValue: undefined });
840
+ this.prompt = toSignal(this.#pipeline.prompt$, { initialValue: undefined });
841
+ this.schemaLoadError = toSignal(this.#pipeline.schemaLoadError$, { initialValue: undefined });
842
+ this.chatHistory = toSignal(this.#pipeline.chatHistory$, { initialValue: [] });
843
+ /** Pipeline stages projected into the row shape the template + stage editor consume. */
844
+ this.stages = toSignal(this.#pipeline.pipeline$.pipe(map((stages) => stages.map((stage, index) => {
845
+ const [name, config] = Object.entries(stage ?? {}).at(0) ?? [undefined, undefined];
846
+ return {
847
+ id: index,
848
+ name,
849
+ stage: name,
850
+ config,
851
+ valid: name !== undefined && config !== undefined,
852
+ };
853
+ }))), { initialValue: [] });
854
+ /** Schema document properties filtered by the live suggestion search. */
855
+ this.schema = toSignal(this.#pipeline.schema$, { initialValue: undefined });
856
+ this.optionsSearch = signal('', ...(ngDevMode ? [{ debugName: "optionsSearch" }] : /* istanbul ignore next */ []));
857
+ this.schemaProperties = computed(() => {
858
+ const search = this.optionsSearch().toLowerCase();
859
+ return Object.keys(this.schema() ?? {})
860
+ .map((key) => ({ label: key, value: key }))
861
+ .filter((entry) => (search ? entry.label.toLowerCase().includes(search) : true));
862
+ }, ...(ngDevMode ? [{ debugName: "schemaProperties" }] : /* istanbul ignore next */ []));
863
+ this.showSuggestions = signal(false, ...(ngDevMode ? [{ debugName: "showSuggestions" }] : /* istanbul ignore next */ []));
864
+ this.textareaRef = viewChild('textarea', ...(ngDevMode ? [{ debugName: "textareaRef" }] : /* istanbul ignore next */ []));
865
+ // ---- Lifecycle: emit config changes -------------------------------------
866
+ this.#initiated = false;
867
+ // ---- AI prompt -----------------------------------------------------------
868
+ this.#cursorPosition = 0;
869
+ }
870
+ // ---- MatFormFieldControl value ------------------------------------------
871
+ #value;
872
+ // MFC value setter — kept as @Input() (framework wiring).
873
+ set value(value) {
874
+ const workflowIdChanged = this.#value?.workflowId !== value?.workflowId;
875
+ const pipelineChanged = !_isEqual(this.#value?.pipeline, value?.pipeline);
876
+ if (workflowIdChanged || pipelineChanged) {
877
+ this.#value = value;
878
+ if (value?.workflowId) {
879
+ this.workflowChanged(value.workflowId);
880
+ }
881
+ if (value?.pipeline) {
882
+ this.#pipeline.pipeline$.next(value.pipeline);
883
+ }
884
+ this.stateChanges.next();
885
+ }
886
+ }
887
+ get value() {
888
+ return this.#value;
889
+ }
890
+ // ---- Other public inputs / outputs --------------------------------------
891
+ #workflows$;
892
+ /** Source of workflow options forwarded to the embedded workflow picker. */
893
+ set getWorkflowOptions(options$) {
894
+ this.#workflows$ = options$;
895
+ }
896
+ get getWorkflowOptions() {
897
+ return this.#workflows$;
898
+ }
899
+ /** Validation errors surfaced by the parent for error-state derivation. */
900
+ set errors(value) {
901
+ this.#errors = value;
902
+ }
903
+ get errors() {
904
+ return this.#errors;
905
+ }
906
+ #errors;
907
+ // ---- MatFormFieldControl derived state ----------------------------------
908
+ get empty() {
909
+ return !this.#value;
910
+ }
911
+ get shouldLabelFloat() {
912
+ return this.focused || !this.empty;
913
+ }
914
+ get errorState() {
915
+ const externalError = (this.#errors?.length ?? 0) > 0 && this.touched;
916
+ const ngControlError = this.ngControl?.control?.errors != null;
917
+ return (!this.#value && this.required) || externalError || ngControlError;
918
+ }
919
+ setDescribedByIds(ids) {
920
+ if (!isPlatformBrowser(this.#platformId))
921
+ return;
922
+ // DEFECT FIX: the original queried `.app-pipeline-generator`, a class that
923
+ // never existed in the template, so describedBy was silently dropped. Apply
924
+ // it to the host element instead.
925
+ this._elementRef.nativeElement.setAttribute('aria-describedby', ids.join(' '));
926
+ }
927
+ onContainerClick() {
928
+ this.markAsTouched();
929
+ this.stateChanges.next();
930
+ }
931
+ markAsTouched() {
932
+ if (!this.touched) {
933
+ this.onTouched();
934
+ this.touched = true;
935
+ }
936
+ }
937
+ get isRunningPipeline() {
938
+ return this.#pipeline.isRunningPipeline;
939
+ }
940
+ get aiIsGeneratingPipeline() {
941
+ return this.#pipeline.aiIsGeneratingPipeline;
942
+ }
943
+ // ---- Lifecycle: emit config changes -------------------------------------
944
+ #initiated;
945
+ ngOnInit() {
946
+ // Skip the first (current) config emission so an inbound value does not
947
+ // immediately echo back out as a "change".
948
+ this.#pipeline.config$
949
+ .pipe(distinctUntilChanged((prev, curr) => _isEqual(prev, curr)), takeUntilDestroyed(this.#destroyRef))
950
+ .subscribe((config) => {
951
+ if (!this.#initiated) {
952
+ this.#initiated = true;
953
+ return;
954
+ }
955
+ const newConfig = {
956
+ ...this.#value,
957
+ ...config,
958
+ name: this.#workflowName ?? 'Unnamed Pipeline',
959
+ source: 'mongoPipeline',
960
+ };
961
+ this.valueChanged.emit(newConfig);
962
+ });
963
+ }
964
+ ngOnDestroy() {
965
+ this.stateChanges.complete();
966
+ }
967
+ // ---- Workflow picker -----------------------------------------------------
968
+ #workflowName;
969
+ workflowChanged(workflowId) {
970
+ // BEHAVIOUR FLAG: switching to a *different* workflow clears the AI chat
971
+ // history so prior suggestions for another collection do not leak into the
972
+ // new context. Re-setting the same workflow (e.g. an inbound value echo)
973
+ // leaves the chat intact.
974
+ if (this.#pipeline.workflowId$.getValue() !== workflowId) {
975
+ this.#pipeline.chatHistory$.next([]);
976
+ }
977
+ this.#pipeline.workflowChanged(workflowId);
978
+ }
979
+ workflowNameChanged(name) {
980
+ this.#workflowName = name;
981
+ }
982
+ // ---- Stage management ----------------------------------------------------
983
+ trackByStageId(_index, stage) {
984
+ return stage.id;
985
+ }
986
+ setActiveStage(index) {
987
+ this.#pipeline.setActiveStage(index);
988
+ }
989
+ addStage() {
990
+ this.#pipeline.addStage();
991
+ }
992
+ deleteStage(index) {
993
+ this.#pipeline.deleteStage(index);
994
+ }
995
+ saveStage(index, stage) {
996
+ this.#pipeline.saveStage(index, stage);
997
+ this.setActiveStage(undefined);
998
+ }
999
+ // ---- AI prompt -----------------------------------------------------------
1000
+ #cursorPosition;
1001
+ onTextChange(event) {
1002
+ const textarea = this.textareaRef()?.nativeElement;
1003
+ if (!textarea)
1004
+ return;
1005
+ const newValue = event.target.value;
1006
+ this.#cursorPosition = textarea.selectionStart ?? 0;
1007
+ const lastChar = newValue[this.#cursorPosition - 1];
1008
+ const match = newValue.slice(0, this.#cursorPosition).match(/\$(\w*)$/);
1009
+ if (lastChar === '$' || (match && match[1] !== undefined)) {
1010
+ this.showSuggestions.set(true);
1011
+ this.optionsSearch.set(match?.[1] ?? '');
1012
+ }
1013
+ else {
1014
+ this.showSuggestions.set(false);
1015
+ this.optionsSearch.set('');
1016
+ }
1017
+ this.#pipeline.onTextChange(newValue);
1018
+ }
1019
+ selectSuggestion(suggestion) {
1020
+ this.#pipeline.prompt$
1021
+ .pipe(take(1), takeUntilDestroyed(this.#destroyRef))
1022
+ .subscribe((prompt) => {
1023
+ const match = prompt?.slice(0, this.#cursorPosition).match(/\$(\w*)$/);
1024
+ const beforeCursor = prompt?.slice(0, match ? match.index : this.#cursorPosition - 1) ?? '';
1025
+ const afterCursor = prompt?.slice(this.#cursorPosition) ?? '';
1026
+ const updated = `${beforeCursor}${suggestion} ${afterCursor}`;
1027
+ this.#pipeline.prompt$.next(updated);
1028
+ this.#applySuggestionToTextarea(suggestion);
1029
+ });
1030
+ }
1031
+ #applySuggestionToTextarea(suggestion) {
1032
+ this.showSuggestions.set(false);
1033
+ if (!isPlatformBrowser(this.#platformId))
1034
+ return;
1035
+ const textarea = this.textareaRef()?.nativeElement;
1036
+ if (!textarea)
1037
+ return;
1038
+ textarea.focus();
1039
+ const nextPosition = this.#cursorPosition + suggestion.length;
1040
+ setTimeout(() => textarea.setSelectionRange(nextPosition, nextPosition), 0);
1041
+ }
1042
+ promptSubmit() {
1043
+ this.#pipeline.promptSubmit();
1044
+ }
1045
+ static { this.ɵfac = function PipelineGeneratorComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PipelineGeneratorComponent)(i0.ɵɵdirectiveInject(i1$1.NgControl, 10), i0.ɵɵdirectiveInject(i0.ElementRef)); }; }
1046
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PipelineGeneratorComponent, selectors: [["lib-pipeline-generator"]], viewQuery: function PipelineGeneratorComponent_Query(rf, ctx) { if (rf & 1) {
1047
+ i0.ɵɵviewQuerySignal(ctx.textareaRef, _c0, 5);
1048
+ } if (rf & 2) {
1049
+ i0.ɵɵqueryAdvance();
1050
+ } }, hostAttrs: [1, "lib-pipeline-generator"], hostVars: 1, hostBindings: function PipelineGeneratorComponent_HostBindings(rf, ctx) { if (rf & 2) {
1051
+ i0.ɵɵdomProperty("id", ctx.id);
1052
+ } }, inputs: { disabled: "disabled", value: "value", getWorkflowOptions: "getWorkflowOptions", userName: "userName", errors: "errors" }, outputs: { valueChanged: "valueChanged" }, features: [i0.ɵɵProvidersFeature([
1053
+ PipelineService,
1054
+ // MatFormFieldControl pattern: useExisting + the @Input() value/disabled/id
1055
+ // members are framework wiring and stay together (CLAUDE.md MFC carve-out).
1056
+ { provide: MatFormFieldControl, useExisting: PipelineGeneratorComponent },
1057
+ ])], decls: 5, vars: 4, consts: [["textarea", ""], [1, "lib-pipeline-generator__intro"], [3, "valueChanged", "workflowNameChanged", "getWorkflowOptions", "value"], ["multi", "", 1, "lib-pipeline-generator__accordion"], ["cdkConnectedOverlay", "", 3, "cdkConnectedOverlayOpen"], ["value", "pipeline"], ["diameter", "20", 1, "lib-pipeline-generator__header-spinner"], [1, "lib-pipeline-generator__title-icon"], [1, "lib-pipeline-generator__content"], ["icon", "account_tree", "message", "Add stages to the pipeline below. Each stage filters, groups, or calculates values; its output documents flow into the next stage."], [1, "lib-pipeline-generator__stages"], [1, "lib-pipeline-generator__toolbar"], [1, "lib-pipeline-generator__spacer"], ["mat-flat-button", "", "type", "button", "color", "primary", 1, "lib-pipeline-generator__add", 3, "click", "disabled"], ["value", "results"], [3, "data"], ["icon", "dataset", "message", "No results available"], ["value", "ai"], ["role", "alert", 1, "lib-pipeline-generator__warning"], [1, "lib-pipeline-generator__chat"], [1, "lib-pipeline-generator__composer"], ["placeholder", "Provide a pipeline generation prompt", 1, "lib-pipeline-generator__textarea", 3, "input", "value"], ["mat-mini-fab", "", "type", "button", "color", "primary", 1, "lib-pipeline-generator__send", 3, "click", "disabled"], ["diameter", "24", 1, "lib-pipeline-generator__send-spinner"], [1, "lib-pipeline-generator__suggestions"], [1, "lib-pipeline-generator__stage", 3, "click", "activated"], ["matListItemAvatar", "", 1, "lib-pipeline-generator__stage-index"], ["matListItemTitle", ""], [1, "lib-pipeline-generator__stage-name"], [1, "lib-pipeline-generator__stage-hint"], ["matListItemMeta", "", "color", "primary"], ["matListItemMeta", "", "color", "warn"], [3, "selectedStage", "isRunningPipeline"], [3, "deleteStage", "saveStage", "selectedStage", "isRunningPipeline"], ["aria-hidden", "true"], [1, "lib-pipeline-generator__bubble", "lib-pipeline-generator__bubble--user"], [1, "lib-pipeline-generator__bubble-meta"], [1, "lib-pipeline-generator__sent-icon"], [1, "lib-pipeline-generator__assistant"], [1, "lib-pipeline-generator__assistant-icon"], [1, "lib-pipeline-generator__bubble", "lib-pipeline-generator__bubble--error"], [1, "lib-pipeline-generator__bubble", "lib-pipeline-generator__bubble--bot"], [1, "lib-pipeline-generator__suggestions-label"], [1, "lib-pipeline-generator__suggestion-list"], ["mat-stroked-button", "", "type", "button", 1, "lib-pipeline-generator__suggestion"], ["mat-stroked-button", "", "type", "button", 1, "lib-pipeline-generator__suggestion", 3, "click"], [1, "lib-pipeline-generator__scrim"]], template: function PipelineGeneratorComponent_Template(rf, ctx) { if (rf & 1) {
1058
+ i0.ɵɵelementStart(0, "p", 1);
1059
+ i0.ɵɵtext(1, " MongoDB aggregation pipeline builder for the selected workflow.\n");
1060
+ i0.ɵɵelementEnd();
1061
+ i0.ɵɵelementStart(2, "lib-t-workflow-picker", 2);
1062
+ i0.ɵɵlistener("valueChanged", function PipelineGeneratorComponent_Template_lib_t_workflow_picker_valueChanged_2_listener($event) { return ctx.workflowChanged($event); })("workflowNameChanged", function PipelineGeneratorComponent_Template_lib_t_workflow_picker_workflowNameChanged_2_listener($event) { return ctx.workflowNameChanged($event); });
1063
+ i0.ɵɵelementEnd();
1064
+ i0.ɵɵconditionalCreate(3, PipelineGeneratorComponent_Conditional_3_Template, 47, 14, "mat-accordion", 3);
1065
+ i0.ɵɵtemplate(4, PipelineGeneratorComponent_ng_template_4_Template, 1, 0, "ng-template", 4);
1066
+ } if (rf & 2) {
1067
+ i0.ɵɵadvance(2);
1068
+ i0.ɵɵproperty("getWorkflowOptions", ctx.getWorkflowOptions)("value", ctx.workflowId() || undefined);
1069
+ i0.ɵɵadvance();
1070
+ i0.ɵɵconditional(ctx.workflowId() ? 3 : -1);
1071
+ i0.ɵɵadvance();
1072
+ i0.ɵɵproperty("cdkConnectedOverlayOpen", ctx.disabled);
1073
+ } }, dependencies: [FormsModule,
1074
+ OverlayModule, i2$1.CdkConnectedOverlay, MatButtonModule, i1.MatButton, i1.MatMiniFabButton, MatDividerModule, i6.MatDivider, MatExpansionModule, i5$1.MatAccordion, i5$1.MatExpansionPanel, i5$1.MatExpansionPanelHeader, i5$1.MatExpansionPanelTitle, MatIconModule, i3$1.MatIcon, MatListModule, i6.MatNavList, i6.MatListItem, i6.MatListItemAvatar, i6.MatListItemTitle, i6.MatListItemMeta, MatProgressSpinnerModule, i4.MatProgressSpinner, MatToolbarModule, i8$1.MatToolbar, TWorkflowPickerComponent,
1075
+ TDynamicDataViewComponent,
1076
+ AggregateStageEditorComponent,
1077
+ EmptyStateComponent,
1078
+ JsonPipe,
1079
+ DaysAgoPipe], styles: ["[_nghost-%COMP%]{display:block}.lib-pipeline-generator__intro[_ngcontent-%COMP%]{margin:0 0 1.5rem;font-size:.875rem;color:var(--lib-forms-on-surface-variant)}.lib-pipeline-generator__accordion[_ngcontent-%COMP%]{display:block;margin-top:1.5rem}.lib-pipeline-generator__title-icon[_ngcontent-%COMP%]{margin-right:.5rem;vertical-align:middle}.lib-pipeline-generator__header-spinner[_ngcontent-%COMP%]{margin-right:.5rem}.lib-pipeline-generator__content[_ngcontent-%COMP%]{padding-top:.5rem}.lib-pipeline-generator__stages[_ngcontent-%COMP%]{padding:0;border-radius:var(--lib-forms-radius-lg, 12px);background:var(--lib-forms-surface-container-low)}.lib-pipeline-generator__stage[_ngcontent-%COMP%]{cursor:pointer;transition:background var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing)}.lib-pipeline-generator__stage--active[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--lib-forms-primary) 8%,transparent)}.lib-pipeline-generator__stage-index[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;font-size:.8125rem;border-radius:var(--lib-forms-radius-pill, 999px);background:var(--sem-info-surface);color:var(--lib-forms-on-surface)}.lib-pipeline-generator__stage-name[_ngcontent-%COMP%]{line-height:normal}.lib-pipeline-generator__stage-hint[_ngcontent-%COMP%]{font-size:.8125rem;line-height:normal;color:var(--lib-forms-on-surface-variant)}.lib-pipeline-generator__toolbar[_ngcontent-%COMP%]{padding:.5rem;background:transparent}.lib-pipeline-generator__spacer[_ngcontent-%COMP%]{flex:1 1 auto}.lib-pipeline-generator__warning[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:.5rem;padding:.75rem;margin-bottom:1.5rem;border-radius:var(--lib-forms-radius-sm, 8px);background:var(--sem-warning-surface);color:var(--lib-forms-on-surface)}.lib-pipeline-generator__warning[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{flex:0 0 auto;color:var(--sem-warning, var(--lib-forms-on-surface-variant))}.lib-pipeline-generator__chat[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;margin-bottom:1.5rem}.lib-pipeline-generator__bubble[_ngcontent-%COMP%]{padding:.75rem 1rem;font-size:.8125rem;white-space:normal}.lib-pipeline-generator__bubble[_ngcontent-%COMP%] pre[_ngcontent-%COMP%]{margin:0;white-space:pre-wrap;word-break:break-word}.lib-pipeline-generator__bubble--user[_ngcontent-%COMP%]{align-self:flex-end;max-width:80%;text-align:end;border-radius:18px 18px 0;background:color-mix(in srgb,var(--lib-forms-primary) 12%,transparent)}.lib-pipeline-generator__bubble--bot[_ngcontent-%COMP%]{border-radius:0 18px 18px;background:var(--sem-info-surface)}.lib-pipeline-generator__bubble--error[_ngcontent-%COMP%]{border-radius:0 18px 18px;background:var(--sem-error-surface);color:var(--lib-forms-on-surface)}.lib-pipeline-generator__bubble-meta[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:.25rem;line-height:normal;opacity:.6}.lib-pipeline-generator__sent-icon[_ngcontent-%COMP%]{width:.875rem;height:.875rem;font-size:.875rem}.lib-pipeline-generator__assistant[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:.75rem}.lib-pipeline-generator__assistant-icon[_ngcontent-%COMP%]{flex:0 0 auto;color:var(--lib-forms-on-surface-variant)}.lib-pipeline-generator__composer[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem;margin-top:1.5rem}.lib-pipeline-generator__textarea[_ngcontent-%COMP%]{min-height:2.25rem;padding:.5rem .75rem;border:1px solid var(--lib-forms-outline);border-radius:var(--lib-forms-radius-sm, 8px);background:var(--lib-forms-surface);font-size:.875rem;color:var(--lib-forms-on-surface);transition:border-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing),box-shadow var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing)}.lib-pipeline-generator__textarea[_ngcontent-%COMP%]:focus{outline:none;border-color:var(--lib-forms-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--lib-forms-primary) 25%,transparent)}.lib-pipeline-generator__textarea[_ngcontent-%COMP%]{flex:1 1 auto;min-height:2.75rem;resize:vertical;border-radius:14px;font-family:inherit}.lib-pipeline-generator__send[_ngcontent-%COMP%]{flex:0 0 auto}.lib-pipeline-generator__send-spinner[_ngcontent-%COMP%]{--mdc-circular-progress-active-indicator-color: var(--lib-forms-on-primary, var(--mat-sys-on-primary))}.lib-pipeline-generator__suggestions[_ngcontent-%COMP%]{margin-top:1rem}.lib-pipeline-generator__suggestions-label[_ngcontent-%COMP%]{margin:.75rem 0;font-size:.625rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--lib-forms-on-surface-variant)}.lib-pipeline-generator__suggestion-list[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.5rem}.lib-pipeline-generator__suggestion[_ngcontent-%COMP%]{font-size:.8125rem}.lib-pipeline-generator__scrim[_ngcontent-%COMP%]{position:absolute;inset:0;background:color-mix(in srgb,var(--lib-forms-on-surface) 50%,transparent)}"], changeDetection: 0 }); }
1080
+ }
1081
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PipelineGeneratorComponent, [{
1082
+ type: Component,
1083
+ args: [{ selector: 'lib-pipeline-generator', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, imports: [
1084
+ JsonPipe,
1085
+ FormsModule,
1086
+ OverlayModule,
1087
+ MatButtonModule,
1088
+ MatDividerModule,
1089
+ MatExpansionModule,
1090
+ MatIconModule,
1091
+ MatListModule,
1092
+ MatProgressSpinnerModule,
1093
+ MatToolbarModule,
1094
+ TWorkflowPickerComponent,
1095
+ TDynamicDataViewComponent,
1096
+ AggregateStageEditorComponent,
1097
+ EmptyStateComponent,
1098
+ DaysAgoPipe,
1099
+ ], providers: [
1100
+ PipelineService,
1101
+ // MatFormFieldControl pattern: useExisting + the @Input() value/disabled/id
1102
+ // members are framework wiring and stay together (CLAUDE.md MFC carve-out).
1103
+ { provide: MatFormFieldControl, useExisting: PipelineGeneratorComponent },
1104
+ ], host: {
1105
+ 'class': 'lib-pipeline-generator',
1106
+ '[id]': 'id',
1107
+ }, template: "<p class=\"lib-pipeline-generator__intro\">\n MongoDB aggregation pipeline builder for the selected workflow.\n</p>\n\n<lib-t-workflow-picker\n [getWorkflowOptions]=\"getWorkflowOptions\"\n [value]=\"workflowId() || undefined\"\n (valueChanged)=\"workflowChanged($event)\"\n (workflowNameChanged)=\"workflowNameChanged($event)\" />\n\n@if (workflowId()) {\n <mat-accordion class=\"lib-pipeline-generator__accordion\" multi>\n\n <!-- Pipeline stages -->\n <mat-expansion-panel value=\"pipeline\">\n <mat-expansion-panel-header>\n <mat-panel-title>\n @if (isRunningPipeline) {\n <mat-spinner class=\"lib-pipeline-generator__header-spinner\" diameter=\"20\" />\n }\n <mat-icon class=\"lib-pipeline-generator__title-icon\">dynamic_form</mat-icon>\n {{ isRunningPipeline ? 'Executing data pipeline\u2026' : 'Data retrieval pipeline' }}\n </mat-panel-title>\n </mat-expansion-panel-header>\n\n <div class=\"lib-pipeline-generator__content\">\n @if (stages().length === 0) {\n <lib-empty-state\n icon=\"account_tree\"\n message=\"Add stages to the pipeline below. Each stage filters, groups, or calculates values; its output documents flow into the next stage.\" />\n }\n\n <mat-nav-list class=\"lib-pipeline-generator__stages\">\n @for (stage of stages(); track trackByStageId($index, stage)) {\n <mat-list-item\n class=\"lib-pipeline-generator__stage\"\n [class.lib-pipeline-generator__stage--active]=\"activeStageIndex() === $index\"\n [activated]=\"activeStageIndex() === $index\"\n (click)=\"setActiveStage($index)\">\n <span class=\"lib-pipeline-generator__stage-index\" matListItemAvatar>{{ $index + 1 }}</span>\n <div matListItemTitle>\n <div class=\"lib-pipeline-generator__stage-name\">{{ stage.name || 'Stage' }}</div>\n @if (!stage.name && activeStageIndex() !== $index) {\n <div class=\"lib-pipeline-generator__stage-hint\">Incomplete \u2014 click to edit</div>\n }\n </div>\n\n @if (activeStageIndex() === $index) {\n <mat-icon matListItemMeta color=\"primary\">check_circle</mat-icon>\n } @else if (!stage.valid) {\n <mat-icon matListItemMeta color=\"warn\">warning</mat-icon>\n }\n </mat-list-item>\n <mat-divider />\n\n @if (activeStageIndex() === $index) {\n <lib-aggregate-stage-editor\n [selectedStage]=\"stage\"\n [isRunningPipeline]=\"isRunningPipeline\"\n (deleteStage)=\"deleteStage($index)\"\n (saveStage)=\"saveStage($index, $event)\" />\n }\n }\n\n <mat-toolbar class=\"lib-pipeline-generator__toolbar\">\n <span class=\"lib-pipeline-generator__spacer\"></span>\n <button\n mat-flat-button\n type=\"button\"\n color=\"primary\"\n class=\"lib-pipeline-generator__add\"\n [disabled]=\"isRunningPipeline\"\n (click)=\"addStage()\">\n Add\n <mat-icon>add</mat-icon>\n </button>\n </mat-toolbar>\n </mat-nav-list>\n </div>\n </mat-expansion-panel>\n\n <!-- Results -->\n <mat-expansion-panel value=\"results\">\n <mat-expansion-panel-header>\n <mat-panel-title>\n @if (isRunningPipeline) {\n <mat-spinner class=\"lib-pipeline-generator__header-spinner\" diameter=\"20\" />\n }\n <mat-icon class=\"lib-pipeline-generator__title-icon\">dataset</mat-icon>\n {{ isRunningPipeline ? 'Running pipeline\u2026' : 'Data results' }}\n </mat-panel-title>\n </mat-expansion-panel-header>\n\n <div class=\"lib-pipeline-generator__content\">\n @if (pipeLineResults(); as results) {\n <lib-t-dynamic-data-view [data]=\"results\" />\n } @else {\n <lib-empty-state icon=\"dataset\" message=\"No results available\" />\n }\n </div>\n </mat-expansion-panel>\n\n <!-- AI agent -->\n <mat-expansion-panel value=\"ai\">\n <mat-expansion-panel-header>\n <mat-panel-title>\n @if (aiIsGeneratingPipeline) {\n <mat-spinner class=\"lib-pipeline-generator__header-spinner\" diameter=\"20\" />\n }\n <mat-icon class=\"lib-pipeline-generator__title-icon\">tips_and_updates</mat-icon>\n {{ aiIsGeneratingPipeline ? 'Agent busy\u2026' : 'AI agent prompt' }}\n </mat-panel-title>\n </mat-expansion-panel-header>\n\n <div class=\"lib-pipeline-generator__content\">\n @if (schemaLoadError(); as schemaLoadError) {\n <div class=\"lib-pipeline-generator__warning\" role=\"alert\">\n <mat-icon aria-hidden=\"true\">error</mat-icon>\n <span>{{ schemaLoadError }}</span>\n </div>\n }\n\n @for (chat of chatHistory(); track $index) {\n <div class=\"lib-pipeline-generator__chat\">\n <div class=\"lib-pipeline-generator__bubble lib-pipeline-generator__bubble--user\">\n <div>{{ chat.user }}</div>\n <div class=\"lib-pipeline-generator__bubble-meta\">\n {{ chat.date | daysAgo }}\n <mat-icon class=\"lib-pipeline-generator__sent-icon\">done_all</mat-icon>\n </div>\n </div>\n\n <div class=\"lib-pipeline-generator__assistant\">\n <mat-icon class=\"lib-pipeline-generator__assistant-icon\">smart_toy</mat-icon>\n @if (chat.assistance.error) {\n <div class=\"lib-pipeline-generator__bubble lib-pipeline-generator__bubble--error\">\n {{ chat.assistance.error }}\n </div>\n } @else {\n <div class=\"lib-pipeline-generator__bubble lib-pipeline-generator__bubble--bot\">\n <pre>{{ chat.assistance.pipeline | json }}</pre>\n </div>\n }\n </div>\n </div>\n }\n\n <div class=\"lib-pipeline-generator__composer\">\n <textarea\n #textarea\n class=\"lib-pipeline-generator__textarea\"\n [value]=\"prompt() || ''\"\n (input)=\"onTextChange($event)\"\n placeholder=\"Provide a pipeline generation prompt\"></textarea>\n <button\n mat-mini-fab\n type=\"button\"\n color=\"primary\"\n class=\"lib-pipeline-generator__send\"\n [disabled]=\"aiIsGeneratingPipeline\"\n (click)=\"promptSubmit()\">\n @if (aiIsGeneratingPipeline) {\n <mat-spinner class=\"lib-pipeline-generator__send-spinner\" diameter=\"24\" />\n } @else {\n <mat-icon>send</mat-icon>\n }\n </button>\n </div>\n\n @if (showSuggestions()) {\n <section class=\"lib-pipeline-generator__suggestions\">\n <mat-divider />\n <p class=\"lib-pipeline-generator__suggestions-label\">Collection document properties</p>\n <div class=\"lib-pipeline-generator__suggestion-list\">\n @for (property of schemaProperties(); track property.value) {\n <button\n mat-stroked-button\n type=\"button\"\n class=\"lib-pipeline-generator__suggestion\"\n (click)=\"selectSuggestion(property.value)\">\n {{ property.label }}\n </button>\n }\n </div>\n </section>\n }\n </div>\n </mat-expansion-panel>\n </mat-accordion>\n}\n\n<ng-template cdkConnectedOverlay [cdkConnectedOverlayOpen]=\"disabled\">\n <div class=\"lib-pipeline-generator__scrim\"></div>\n</ng-template>\n", styles: [":host{display:block}.lib-pipeline-generator__intro{margin:0 0 1.5rem;font-size:.875rem;color:var(--lib-forms-on-surface-variant)}.lib-pipeline-generator__accordion{display:block;margin-top:1.5rem}.lib-pipeline-generator__title-icon{margin-right:.5rem;vertical-align:middle}.lib-pipeline-generator__header-spinner{margin-right:.5rem}.lib-pipeline-generator__content{padding-top:.5rem}.lib-pipeline-generator__stages{padding:0;border-radius:var(--lib-forms-radius-lg, 12px);background:var(--lib-forms-surface-container-low)}.lib-pipeline-generator__stage{cursor:pointer;transition:background var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing)}.lib-pipeline-generator__stage--active{background:color-mix(in srgb,var(--lib-forms-primary) 8%,transparent)}.lib-pipeline-generator__stage-index{display:flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;font-size:.8125rem;border-radius:var(--lib-forms-radius-pill, 999px);background:var(--sem-info-surface);color:var(--lib-forms-on-surface)}.lib-pipeline-generator__stage-name{line-height:normal}.lib-pipeline-generator__stage-hint{font-size:.8125rem;line-height:normal;color:var(--lib-forms-on-surface-variant)}.lib-pipeline-generator__toolbar{padding:.5rem;background:transparent}.lib-pipeline-generator__spacer{flex:1 1 auto}.lib-pipeline-generator__warning{display:flex;align-items:flex-start;gap:.5rem;padding:.75rem;margin-bottom:1.5rem;border-radius:var(--lib-forms-radius-sm, 8px);background:var(--sem-warning-surface);color:var(--lib-forms-on-surface)}.lib-pipeline-generator__warning mat-icon{flex:0 0 auto;color:var(--sem-warning, var(--lib-forms-on-surface-variant))}.lib-pipeline-generator__chat{display:flex;flex-direction:column;gap:1rem;margin-bottom:1.5rem}.lib-pipeline-generator__bubble{padding:.75rem 1rem;font-size:.8125rem;white-space:normal}.lib-pipeline-generator__bubble pre{margin:0;white-space:pre-wrap;word-break:break-word}.lib-pipeline-generator__bubble--user{align-self:flex-end;max-width:80%;text-align:end;border-radius:18px 18px 0;background:color-mix(in srgb,var(--lib-forms-primary) 12%,transparent)}.lib-pipeline-generator__bubble--bot{border-radius:0 18px 18px;background:var(--sem-info-surface)}.lib-pipeline-generator__bubble--error{border-radius:0 18px 18px;background:var(--sem-error-surface);color:var(--lib-forms-on-surface)}.lib-pipeline-generator__bubble-meta{display:flex;align-items:center;justify-content:flex-end;gap:.25rem;line-height:normal;opacity:.6}.lib-pipeline-generator__sent-icon{width:.875rem;height:.875rem;font-size:.875rem}.lib-pipeline-generator__assistant{display:flex;align-items:flex-start;gap:.75rem}.lib-pipeline-generator__assistant-icon{flex:0 0 auto;color:var(--lib-forms-on-surface-variant)}.lib-pipeline-generator__composer{display:flex;align-items:flex-end;gap:.5rem;margin-top:1.5rem}.lib-pipeline-generator__textarea{min-height:2.25rem;padding:.5rem .75rem;border:1px solid var(--lib-forms-outline);border-radius:var(--lib-forms-radius-sm, 8px);background:var(--lib-forms-surface);font-size:.875rem;color:var(--lib-forms-on-surface);transition:border-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing),box-shadow var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing)}.lib-pipeline-generator__textarea:focus{outline:none;border-color:var(--lib-forms-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--lib-forms-primary) 25%,transparent)}.lib-pipeline-generator__textarea{flex:1 1 auto;min-height:2.75rem;resize:vertical;border-radius:14px;font-family:inherit}.lib-pipeline-generator__send{flex:0 0 auto}.lib-pipeline-generator__send-spinner{--mdc-circular-progress-active-indicator-color: var(--lib-forms-on-primary, var(--mat-sys-on-primary))}.lib-pipeline-generator__suggestions{margin-top:1rem}.lib-pipeline-generator__suggestions-label{margin:.75rem 0;font-size:.625rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--lib-forms-on-surface-variant)}.lib-pipeline-generator__suggestion-list{display:flex;flex-wrap:wrap;gap:.5rem}.lib-pipeline-generator__suggestion{font-size:.8125rem}.lib-pipeline-generator__scrim{position:absolute;inset:0;background:color-mix(in srgb,var(--lib-forms-on-surface) 50%,transparent)}\n"] }]
1108
+ }], () => [{ type: i1$1.NgControl, decorators: [{
1109
+ type: Optional
1110
+ }, {
1111
+ type: Self
1112
+ }] }, { type: i0.ElementRef }], { disabled: [{
1113
+ type: Input
1114
+ }], value: [{
1115
+ type: Input
1116
+ }], getWorkflowOptions: [{
1117
+ type: Input
1118
+ }], userName: [{
1119
+ type: Input
1120
+ }], errors: [{
1121
+ type: Input
1122
+ }], valueChanged: [{ type: i0.Output, args: ["valueChanged"] }], textareaRef: [{ type: i0.ViewChild, args: ['textarea', { isSignal: true }] }] }); })();
1123
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PipelineGeneratorComponent, { className: "PipelineGeneratorComponent", filePath: "lib/components/t-dynamic-data-edit/elements/pipeline-generator/pipeline-generator.component.ts", lineNumber: 103 }); })();
1124
+
1125
+ export { PipelineGeneratorComponent };
1126
+ //# sourceMappingURL=ngx-t-forms-pipeline-generator.component-CcHgQ-MT.mjs.map