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,136 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, output, signal, computed, inject, effect, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { LiveAnnouncer } from '@angular/cdk/a11y';
4
+ import { ENTER, COMMA } from '@angular/cdk/keycodes';
5
+ import * as i4 from '@angular/material/chips';
6
+ import { MatChipsModule } from '@angular/material/chips';
7
+ import * as i3 from '@angular/material/icon';
8
+ import { MatIconModule } from '@angular/material/icon';
9
+ import { E as EmptyStateComponent } from './ngx-t-forms-ngx-t-forms-D7kDvkTZ.mjs';
10
+
11
+ function ChipOptionsCreatorEditorComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
12
+ i0.ɵɵelement(0, "lib-empty-state", 1);
13
+ } }
14
+ function ChipOptionsCreatorEditorComponent_For_4_Template(rf, ctx) { if (rf & 1) {
15
+ const _r1 = i0.ɵɵgetCurrentView();
16
+ i0.ɵɵelementStart(0, "mat-chip-row", 5);
17
+ i0.ɵɵlistener("edited", function ChipOptionsCreatorEditorComponent_For_4_Template_mat_chip_row_edited_0_listener($event) { const segment_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.edit(segment_r2, $event)); })("removed", function ChipOptionsCreatorEditorComponent_For_4_Template_mat_chip_row_removed_0_listener() { const segment_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.remove(segment_r2)); });
18
+ i0.ɵɵtext(1);
19
+ i0.ɵɵelementStart(2, "button", 6)(3, "mat-icon");
20
+ i0.ɵɵtext(4, "cancel");
21
+ i0.ɵɵelementEnd()()();
22
+ } if (rf & 2) {
23
+ const segment_r2 = ctx.$implicit;
24
+ i0.ɵɵproperty("editable", true);
25
+ i0.ɵɵariaProperty("aria-description", "press enter to edit " + segment_r2);
26
+ i0.ɵɵadvance();
27
+ i0.ɵɵtextInterpolate1(" ", segment_r2, " ");
28
+ i0.ɵɵadvance();
29
+ i0.ɵɵattribute("aria-label", "remove " + segment_r2);
30
+ } }
31
+ /**
32
+ * Internal chip-options creator editor: the user types free-text tokens that
33
+ * become removable, editable chips; the resulting `string[]` is emitted.
34
+ *
35
+ * Rendered by `t-dynamic-data-edit`'s non-control branch (it is NOT a
36
+ * MatFormFieldControl), which already supplies the field label, hint, and
37
+ * validation errors — so this component owns only the chip grid and its empty
38
+ * state.
39
+ */
40
+ class ChipOptionsCreatorEditorComponent {
41
+ /** Local working copy of the chip list; mirrors the `value` input. */
42
+ #internalValue;
43
+ #announcer;
44
+ constructor() {
45
+ /** Optional id attribute supplied by the parent editor. */
46
+ this.id = input(undefined, ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
47
+ /** Disables chip entry/edit/remove. */
48
+ this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
49
+ /** Whether a non-empty value is required (kept on the contract). */
50
+ this.required = input(false, ...(ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []));
51
+ /** External validation errors (surfaced by the parent). */
52
+ this.errors = input([], ...(ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []));
53
+ /** The chip values to render. */
54
+ this.value = input(undefined, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
55
+ /** Placeholder for the new-chip input. */
56
+ this.placeholder = input('', ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
57
+ /** Emits the full chip list whenever it changes. */
58
+ this.valueChange = output();
59
+ this.separatorKeysCodes = [ENTER, COMMA];
60
+ /** Local working copy of the chip list; mirrors the `value` input. */
61
+ this.#internalValue = signal([], ...(ngDevMode ? [{ debugName: "#internalValue" }] : /* istanbul ignore next */ []));
62
+ /** Read-only accessor used by the template. */
63
+ this.currentValue = this.#internalValue.asReadonly();
64
+ this.isEmpty = computed(() => this.#internalValue().length === 0, ...(ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []));
65
+ this.#announcer = inject(LiveAnnouncer);
66
+ // The parent drives the value declaratively via [value].
67
+ effect(() => {
68
+ this.#internalValue.set(this.value() ?? []);
69
+ });
70
+ }
71
+ add(event) {
72
+ const value = (event.value || '').trim();
73
+ event.chipInput?.clear();
74
+ if (!value) {
75
+ return;
76
+ }
77
+ const current = this.#internalValue();
78
+ if (current.includes(value)) {
79
+ this.#announcer.announce(`value ${value} already exists`);
80
+ return;
81
+ }
82
+ this.#commit([...current, value]);
83
+ }
84
+ edit(segment, event) {
85
+ const newValue = event.value.trim();
86
+ if (!newValue) {
87
+ this.remove(segment);
88
+ return;
89
+ }
90
+ this.#commit(this.#internalValue().map((s) => (s === segment ? newValue : s)));
91
+ }
92
+ remove(segment) {
93
+ const current = this.#internalValue();
94
+ if (!current.includes(segment)) {
95
+ return;
96
+ }
97
+ this.#announcer.announce(`Removed ${segment}`);
98
+ this.#commit(current.filter((s) => s !== segment));
99
+ }
100
+ #commit(next) {
101
+ const snapshot = [...next];
102
+ this.#internalValue.set(snapshot);
103
+ this.valueChange.emit(snapshot);
104
+ }
105
+ static { this.ɵfac = function ChipOptionsCreatorEditorComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ChipOptionsCreatorEditorComponent)(); }; }
106
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ChipOptionsCreatorEditorComponent, selectors: [["lib-chip-options-creator-editor"]], hostAttrs: [1, "lib-chip-options-creator-editor"], hostVars: 1, hostBindings: function ChipOptionsCreatorEditorComponent_HostBindings(rf, ctx) { if (rf & 2) {
107
+ i0.ɵɵattribute("id", ctx.id());
108
+ } }, inputs: { id: [1, "id"], disabled: [1, "disabled"], required: [1, "required"], errors: [1, "errors"], value: [1, "value"], placeholder: [1, "placeholder"] }, outputs: { valueChange: "valueChange" }, decls: 6, vars: 6, consts: [["chipGrid", ""], ["icon", "label_off", "message", "No options yet \u2014 type below to add one"], ["aria-label", "Chip options", 1, "lib-chip-options-creator-editor__grid", 3, "disabled"], [1, "lib-chip-options-creator-editor__chip", 3, "editable", "aria-description"], [1, "lib-chip-options-creator-editor__input", 3, "matChipInputTokenEnd", "placeholder", "matChipInputFor", "matChipInputSeparatorKeyCodes", "matChipInputAddOnBlur"], [1, "lib-chip-options-creator-editor__chip", 3, "edited", "removed", "editable", "aria-description"], ["matChipRemove", ""]], template: function ChipOptionsCreatorEditorComponent_Template(rf, ctx) { if (rf & 1) {
109
+ i0.ɵɵconditionalCreate(0, ChipOptionsCreatorEditorComponent_Conditional_0_Template, 1, 0, "lib-empty-state", 1);
110
+ i0.ɵɵelementStart(1, "mat-chip-grid", 2, 0);
111
+ i0.ɵɵrepeaterCreate(3, ChipOptionsCreatorEditorComponent_For_4_Template, 5, 4, "mat-chip-row", 3, i0.ɵɵrepeaterTrackByIndex);
112
+ i0.ɵɵelementStart(5, "input", 4);
113
+ i0.ɵɵlistener("matChipInputTokenEnd", function ChipOptionsCreatorEditorComponent_Template_input_matChipInputTokenEnd_5_listener($event) { return ctx.add($event); });
114
+ i0.ɵɵelementEnd()();
115
+ } if (rf & 2) {
116
+ const chipGrid_r4 = i0.ɵɵreference(2);
117
+ i0.ɵɵconditional(ctx.isEmpty() ? 0 : -1);
118
+ i0.ɵɵadvance();
119
+ i0.ɵɵproperty("disabled", ctx.disabled());
120
+ i0.ɵɵadvance(2);
121
+ i0.ɵɵrepeater(ctx.currentValue());
122
+ i0.ɵɵadvance(2);
123
+ i0.ɵɵproperty("placeholder", ctx.placeholder() || "New selection...")("matChipInputFor", chipGrid_r4)("matChipInputSeparatorKeyCodes", ctx.separatorKeysCodes)("matChipInputAddOnBlur", true);
124
+ } }, dependencies: [MatChipsModule, i4.MatChipGrid, i4.MatChipInput, i4.MatChipRemove, i4.MatChipRow, MatIconModule, i3.MatIcon, EmptyStateComponent], styles: ["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:.75rem}.lib-chip-options-creator-editor__input[_ngcontent-%COMP%]{border:none;outline:none;background:transparent;font-size:.875rem;color:var(--lib-forms-on-surface)}.lib-chip-options-creator-editor__input[_ngcontent-%COMP%]::placeholder{color:color-mix(in srgb,var(--lib-forms-on-surface-variant) 60%,transparent)}.lib-chip-options-creator-editor__chip.mat-mdc-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.5rem;padding:.25rem .5rem .25rem .625rem;background:color-mix(in srgb,var(--lib-forms-primary) 10%,transparent);border-radius:var(--lib-forms-radius-pill, 6px);font-size:.8125rem;color:var(--lib-forms-on-surface)}.lib-chip-options-creator-editor__chip.mat-mdc-chip[_ngcontent-%COMP%]:focus-within{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-chip-options-creator-editor__chip.mat-mdc-chip[_ngcontent-%COMP%] .mat-mdc-chip-remove[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;padding:0;border-radius:var(--lib-forms-radius-sm, 8px);color:var(--lib-forms-on-surface-variant);opacity:1;transition:color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing),background var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing)}.lib-chip-options-creator-editor__chip.mat-mdc-chip[_ngcontent-%COMP%] .mat-mdc-chip-remove[_ngcontent-%COMP%]:hover{color:var(--lib-forms-error);background:color-mix(in srgb,var(--lib-forms-error) 20%,transparent)}.lib-chip-options-creator-editor__chip.mat-mdc-chip[_ngcontent-%COMP%] .mat-mdc-chip-remove[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:1rem;height:1rem;font-size:1rem}.lib-chip-options-creator-editor[aria-disabled=true][_nghost-%COMP%], .lib-chip-options-creator-editor__grid[disabled][_ngcontent-%COMP%]{opacity:.55;pointer-events:none}"], changeDetection: 0 }); }
125
+ }
126
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ChipOptionsCreatorEditorComponent, [{
127
+ type: Component,
128
+ args: [{ selector: 'lib-chip-options-creator-editor', imports: [MatChipsModule, MatIconModule, EmptyStateComponent], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, host: {
129
+ 'class': 'lib-chip-options-creator-editor',
130
+ '[attr.id]': 'id()',
131
+ }, template: "@if (isEmpty()) {\n<lib-empty-state icon=\"label_off\" message=\"No options yet \u2014 type below to add one\" />\n}\n\n<mat-chip-grid\n #chipGrid\n class=\"lib-chip-options-creator-editor__grid\"\n [disabled]=\"disabled()\"\n aria-label=\"Chip options\">\n @for (segment of currentValue(); track $index) {\n <mat-chip-row\n class=\"lib-chip-options-creator-editor__chip\"\n [editable]=\"true\"\n [aria-description]=\"'press enter to edit ' + segment\"\n (edited)=\"edit(segment, $event)\"\n (removed)=\"remove(segment)\">\n {{ segment }}\n <button matChipRemove [attr.aria-label]=\"'remove ' + segment\">\n <mat-icon>cancel</mat-icon>\n </button>\n </mat-chip-row>\n }\n <input\n class=\"lib-chip-options-creator-editor__input\"\n [placeholder]=\"placeholder() || 'New selection...'\"\n [matChipInputFor]=\"chipGrid\"\n [matChipInputSeparatorKeyCodes]=\"separatorKeysCodes\"\n [matChipInputAddOnBlur]=\"true\"\n (matChipInputTokenEnd)=\"add($event)\" />\n</mat-chip-grid>\n", styles: [":host{display:flex;flex-direction:column;gap:.75rem}.lib-chip-options-creator-editor__input{border:none;outline:none;background:transparent;font-size:.875rem;color:var(--lib-forms-on-surface)}.lib-chip-options-creator-editor__input::placeholder{color:color-mix(in srgb,var(--lib-forms-on-surface-variant) 60%,transparent)}.lib-chip-options-creator-editor__chip.mat-mdc-chip{display:inline-flex;align-items:center;gap:.5rem;padding:.25rem .5rem .25rem .625rem;background:color-mix(in srgb,var(--lib-forms-primary) 10%,transparent);border-radius:var(--lib-forms-radius-pill, 6px);font-size:.8125rem;color:var(--lib-forms-on-surface)}.lib-chip-options-creator-editor__chip.mat-mdc-chip:focus-within{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-chip-options-creator-editor__chip.mat-mdc-chip .mat-mdc-chip-remove{display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;padding:0;border-radius:var(--lib-forms-radius-sm, 8px);color:var(--lib-forms-on-surface-variant);opacity:1;transition:color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing),background var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing)}.lib-chip-options-creator-editor__chip.mat-mdc-chip .mat-mdc-chip-remove:hover{color:var(--lib-forms-error);background:color-mix(in srgb,var(--lib-forms-error) 20%,transparent)}.lib-chip-options-creator-editor__chip.mat-mdc-chip .mat-mdc-chip-remove mat-icon{width:1rem;height:1rem;font-size:1rem}:host(.lib-chip-options-creator-editor[aria-disabled=true]),.lib-chip-options-creator-editor__grid[disabled]{opacity:.55;pointer-events:none}\n"] }]
132
+ }], () => [], { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }] }); })();
133
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ChipOptionsCreatorEditorComponent, { className: "ChipOptionsCreatorEditorComponent", filePath: "lib/components/t-dynamic-data-edit/elements/chip-options-creator-editor/chip-options-creator-editor.component.ts", lineNumber: 40 }); })();
134
+
135
+ export { ChipOptionsCreatorEditorComponent };
136
+ //# sourceMappingURL=ngx-t-forms-chip-options-creator-editor.component-B95VIBRi.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-t-forms-chip-options-creator-editor.component-B95VIBRi.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/chip-options-creator-editor/chip-options-creator-editor.component.html","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/chip-options-creator-editor/chip-options-creator-editor.component.ts"],"sourcesContent":["@if (isEmpty()) {\n<lib-empty-state icon=\"label_off\" message=\"No options yet — type below to add one\" />\n}\n\n<mat-chip-grid\n #chipGrid\n class=\"lib-chip-options-creator-editor__grid\"\n [disabled]=\"disabled()\"\n aria-label=\"Chip options\">\n @for (segment of currentValue(); track $index) {\n <mat-chip-row\n class=\"lib-chip-options-creator-editor__chip\"\n [editable]=\"true\"\n [aria-description]=\"'press enter to edit ' + segment\"\n (edited)=\"edit(segment, $event)\"\n (removed)=\"remove(segment)\">\n {{ segment }}\n <button matChipRemove [attr.aria-label]=\"'remove ' + segment\">\n <mat-icon>cancel</mat-icon>\n </button>\n </mat-chip-row>\n }\n <input\n class=\"lib-chip-options-creator-editor__input\"\n [placeholder]=\"placeholder() || 'New selection...'\"\n [matChipInputFor]=\"chipGrid\"\n [matChipInputSeparatorKeyCodes]=\"separatorKeysCodes\"\n [matChipInputAddOnBlur]=\"true\"\n (matChipInputTokenEnd)=\"add($event)\" />\n</mat-chip-grid>\n","import {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n computed,\n effect,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\nimport { LiveAnnouncer } from '@angular/cdk/a11y';\nimport { COMMA, ENTER } from '@angular/cdk/keycodes';\nimport { MatChipEditedEvent, MatChipInputEvent, MatChipsModule } from '@angular/material/chips';\nimport { MatIconModule } from '@angular/material/icon';\nimport type { IConfigElementError } from '../../t-dynamic-data-edit.component';\nimport { EmptyStateComponent } from '../_shared/empty-state/empty-state.component';\n\n/**\n * Internal chip-options creator editor: the user types free-text tokens that\n * become removable, editable chips; the resulting `string[]` is emitted.\n *\n * Rendered by `t-dynamic-data-edit`'s non-control branch (it is NOT a\n * MatFormFieldControl), which already supplies the field label, hint, and\n * validation errors — so this component owns only the chip grid and its empty\n * state.\n */\n@Component({\n selector: 'lib-chip-options-creator-editor',\n imports: [MatChipsModule, MatIconModule, EmptyStateComponent],\n templateUrl: './chip-options-creator-editor.component.html',\n styleUrl: './chip-options-creator-editor.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n 'class': 'lib-chip-options-creator-editor',\n '[attr.id]': 'id()',\n },\n})\nexport class ChipOptionsCreatorEditorComponent {\n /** Optional id attribute supplied by the parent editor. */\n readonly id = input<string | undefined>(undefined);\n /** Disables chip entry/edit/remove. */\n readonly disabled = input<boolean>(false);\n /** Whether a non-empty value is required (kept on the contract). */\n readonly required = input<boolean>(false);\n /** External validation errors (surfaced by the parent). */\n readonly errors = input<IConfigElementError[] | undefined>([]);\n /** The chip values to render. */\n readonly value = input<string[] | undefined>(undefined);\n /** Placeholder for the new-chip input. */\n readonly placeholder = input<string>('');\n\n /** Emits the full chip list whenever it changes. */\n readonly valueChange = output<string[] | undefined>();\n\n protected readonly separatorKeysCodes = [ENTER, COMMA] as const;\n\n /** Local working copy of the chip list; mirrors the `value` input. */\n readonly #internalValue = signal<readonly string[]>([]);\n /** Read-only accessor used by the template. */\n protected readonly currentValue = this.#internalValue.asReadonly();\n protected readonly isEmpty = computed(() => this.#internalValue().length === 0);\n\n readonly #announcer = inject(LiveAnnouncer);\n\n constructor() {\n // The parent drives the value declaratively via [value].\n effect(() => {\n this.#internalValue.set(this.value() ?? []);\n });\n }\n\n protected add(event: MatChipInputEvent): void {\n const value = (event.value || '').trim();\n event.chipInput?.clear();\n if (!value) {\n return;\n }\n const current = this.#internalValue();\n if (current.includes(value)) {\n this.#announcer.announce(`value ${value} already exists`);\n return;\n }\n this.#commit([...current, value]);\n }\n\n protected edit(segment: string, event: MatChipEditedEvent): void {\n const newValue = event.value.trim();\n if (!newValue) {\n this.remove(segment);\n return;\n }\n this.#commit(this.#internalValue().map((s) => (s === segment ? newValue : s)));\n }\n\n protected remove(segment: string): void {\n const current = this.#internalValue();\n if (!current.includes(segment)) {\n return;\n }\n this.#announcer.announce(`Removed ${segment}`);\n this.#commit(current.filter((s) => s !== segment));\n }\n\n #commit(next: readonly string[]): void {\n const snapshot = [...next];\n this.#internalValue.set(snapshot);\n this.valueChange.emit(snapshot);\n }\n}\n"],"names":["i1","i2"],"mappings":";;;;;;;;;;;IACA,EAAA,CAAA,SAAA,CAAA,CAAA,EAAA,iBAAA,EAAA,CAAA,CAAqF;;;;IASnF,EAAA,CAAA,cAAA,CAAA,CAAA,EAAA,cAAA,EAAA,CAAA,CAK8B;AAA5B,IADA,EAAA,CAAA,UAAA,CAAA,QAAA,EAAA,SAAA,+EAAA,CAAA,MAAA,EAAA,EAAA,MAAA,UAAA,GAAA,EAAA,CAAA,aAAA,CAAA,GAAA,CAAA,CAAA,SAAA,CAAA,CAAA,MAAA,MAAA,GAAA,EAAA,CAAA,aAAA,EAAA,CAAA,CAAA,OAAA,EAAA,CAAA,WAAA,CAAU,MAAA,CAAA,IAAA,CAAA,UAAA,EAAA,MAAA,CAAqB,CAAA,CAAA,CAAA,CAAA,CAAC,CAAA,SAAA,EAAA,SAAA,gFAAA,GAAA,EAAA,MAAA,UAAA,GAAA,EAAA,CAAA,aAAA,CAAA,GAAA,CAAA,CAAA,SAAA,CAAA,CAAA,MAAA,MAAA,GAAA,EAAA,CAAA,aAAA,EAAA,CAAA,CAAA,OAAA,EAAA,CAAA,WAAA,CACrB,yBAAe,CAAA,CAAA,CAAA,CAAA,CAAC;IAC3B,EAAA,CAAA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A,CAAA,4pDAAA,CAAA,EAAA;;kFAEU,iCAAiC,EAAA,EAAA,SAAA,EAAA,mCAAA,EAAA,QAAA,EAAA,kHAAA,EAAA,UAAA,EAAA,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA,GAAA;;;;"}
@@ -6,7 +6,7 @@ import * as i4 from '@angular/material/chips';
6
6
  import { MatChipsModule } from '@angular/material/chips';
7
7
  import * as i3 from '@angular/material/icon';
8
8
  import { MatIconModule } from '@angular/material/icon';
9
- import { E as EmptyStateComponent } from './ngx-t-forms-ngx-t-forms-BkTeV_AF.mjs';
9
+ import { E as EmptyStateComponent } from './ngx-t-forms-ngx-t-forms-CJGAj18J.mjs';
10
10
 
11
11
  /**
12
12
  * Internal chip-options creator editor: the user types free-text tokens that
@@ -83,15 +83,15 @@ class ChipOptionsCreatorEditorComponent {
83
83
  this.valueChange.emit(snapshot);
84
84
  }
85
85
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ChipOptionsCreatorEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
86
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: ChipOptionsCreatorEditorComponent, isStandalone: true, selector: "lib-chip-options-creator-editor", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { properties: { "attr.id": "id()" }, classAttribute: "lib-chip-options-creator-editor" }, ngImport: i0, template: "@if (isEmpty()) {\n<lib-empty-state icon=\"label_off\" message=\"No options yet \u2014 type below to add one\" />\n}\n\n<mat-chip-grid\n #chipGrid\n class=\"lib-chip-options-creator-editor__grid\"\n [disabled]=\"disabled()\"\n aria-label=\"Chip options\">\n @for (segment of currentValue(); track segment) {\n <mat-chip-row\n class=\"lib-chip-options-creator-editor__chip\"\n [editable]=\"true\"\n [aria-description]=\"'press enter to edit ' + segment\"\n (edited)=\"edit(segment, $event)\"\n (removed)=\"remove(segment)\">\n {{ segment }}\n <button matChipRemove [attr.aria-label]=\"'remove ' + segment\">\n <mat-icon>cancel</mat-icon>\n </button>\n </mat-chip-row>\n }\n <input\n class=\"lib-chip-options-creator-editor__input\"\n [placeholder]=\"placeholder() || 'New selection...'\"\n [matChipInputFor]=\"chipGrid\"\n [matChipInputSeparatorKeyCodes]=\"separatorKeysCodes\"\n [matChipInputAddOnBlur]=\"true\"\n (matChipInputTokenEnd)=\"add($event)\" />\n</mat-chip-grid>\n", styles: [":host{display:flex;flex-direction:column;gap:.75rem}.lib-chip-options-creator-editor__input{border:none;outline:none;background:transparent;font-size:.875rem;color:var(--lib-forms-on-surface)}.lib-chip-options-creator-editor__input::placeholder{color:color-mix(in srgb,var(--lib-forms-on-surface-variant) 60%,transparent)}.lib-chip-options-creator-editor__chip.mat-mdc-chip{display:inline-flex;align-items:center;gap:.5rem;padding:.25rem .5rem .25rem .625rem;background:color-mix(in srgb,var(--lib-forms-primary) 10%,transparent);border-radius:var(--lib-forms-radius-pill, 6px);font-size:.8125rem;color:var(--lib-forms-on-surface)}.lib-chip-options-creator-editor__chip.mat-mdc-chip:focus-within{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-chip-options-creator-editor__chip.mat-mdc-chip .mat-mdc-chip-remove{display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;padding:0;border-radius:var(--lib-forms-radius-sm, 8px);color:var(--lib-forms-on-surface-variant);opacity:1;transition:color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing),background var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing)}.lib-chip-options-creator-editor__chip.mat-mdc-chip .mat-mdc-chip-remove:hover{color:var(--lib-forms-error);background:color-mix(in srgb,var(--lib-forms-error) 20%,transparent)}.lib-chip-options-creator-editor__chip.mat-mdc-chip .mat-mdc-chip-remove mat-icon{width:1rem;height:1rem;font-size:1rem}:host(.lib-chip-options-creator-editor[aria-disabled=true]),.lib-chip-options-creator-editor__grid[disabled]{opacity:.55;pointer-events:none}\n"], dependencies: [{ kind: "ngmodule", type: MatChipsModule }, { kind: "component", type: i4.MatChipGrid, selector: "mat-chip-grid", inputs: ["disabled", "placeholder", "required", "value", "errorStateMatcher"], outputs: ["change", "valueChange"] }, { kind: "directive", type: i4.MatChipInput, selector: "input[matChipInputFor]", inputs: ["matChipInputFor", "matChipInputAddOnBlur", "matChipInputSeparatorKeyCodes", "placeholder", "id", "disabled", "readonly", "matChipInputDisabledInteractive"], outputs: ["matChipInputTokenEnd"], exportAs: ["matChipInput", "matChipInputFor"] }, { kind: "directive", type: i4.MatChipRemove, selector: "[matChipRemove]" }, { kind: "component", type: i4.MatChipRow, selector: "mat-chip-row, [mat-chip-row], mat-basic-chip-row, [mat-basic-chip-row]", inputs: ["editable"], outputs: ["edited"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: EmptyStateComponent, selector: "lib-empty-state", inputs: ["icon", "message"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
86
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: ChipOptionsCreatorEditorComponent, isStandalone: true, selector: "lib-chip-options-creator-editor", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { properties: { "attr.id": "id()" }, classAttribute: "lib-chip-options-creator-editor" }, ngImport: i0, template: "@if (isEmpty()) {\n<lib-empty-state icon=\"label_off\" message=\"No options yet \u2014 type below to add one\" />\n}\n\n<mat-chip-grid\n #chipGrid\n class=\"lib-chip-options-creator-editor__grid\"\n [disabled]=\"disabled()\"\n aria-label=\"Chip options\">\n @for (segment of currentValue(); track $index) {\n <mat-chip-row\n class=\"lib-chip-options-creator-editor__chip\"\n [editable]=\"true\"\n [aria-description]=\"'press enter to edit ' + segment\"\n (edited)=\"edit(segment, $event)\"\n (removed)=\"remove(segment)\">\n {{ segment }}\n <button matChipRemove [attr.aria-label]=\"'remove ' + segment\">\n <mat-icon>cancel</mat-icon>\n </button>\n </mat-chip-row>\n }\n <input\n class=\"lib-chip-options-creator-editor__input\"\n [placeholder]=\"placeholder() || 'New selection...'\"\n [matChipInputFor]=\"chipGrid\"\n [matChipInputSeparatorKeyCodes]=\"separatorKeysCodes\"\n [matChipInputAddOnBlur]=\"true\"\n (matChipInputTokenEnd)=\"add($event)\" />\n</mat-chip-grid>\n", styles: [":host{display:flex;flex-direction:column;gap:.75rem}.lib-chip-options-creator-editor__input{border:none;outline:none;background:transparent;font-size:.875rem;color:var(--lib-forms-on-surface)}.lib-chip-options-creator-editor__input::placeholder{color:color-mix(in srgb,var(--lib-forms-on-surface-variant) 60%,transparent)}.lib-chip-options-creator-editor__chip.mat-mdc-chip{display:inline-flex;align-items:center;gap:.5rem;padding:.25rem .5rem .25rem .625rem;background:color-mix(in srgb,var(--lib-forms-primary) 10%,transparent);border-radius:var(--lib-forms-radius-pill, 6px);font-size:.8125rem;color:var(--lib-forms-on-surface)}.lib-chip-options-creator-editor__chip.mat-mdc-chip:focus-within{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-chip-options-creator-editor__chip.mat-mdc-chip .mat-mdc-chip-remove{display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;padding:0;border-radius:var(--lib-forms-radius-sm, 8px);color:var(--lib-forms-on-surface-variant);opacity:1;transition:color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing),background var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing)}.lib-chip-options-creator-editor__chip.mat-mdc-chip .mat-mdc-chip-remove:hover{color:var(--lib-forms-error);background:color-mix(in srgb,var(--lib-forms-error) 20%,transparent)}.lib-chip-options-creator-editor__chip.mat-mdc-chip .mat-mdc-chip-remove mat-icon{width:1rem;height:1rem;font-size:1rem}:host(.lib-chip-options-creator-editor[aria-disabled=true]),.lib-chip-options-creator-editor__grid[disabled]{opacity:.55;pointer-events:none}\n"], dependencies: [{ kind: "ngmodule", type: MatChipsModule }, { kind: "component", type: i4.MatChipGrid, selector: "mat-chip-grid", inputs: ["disabled", "placeholder", "required", "value", "errorStateMatcher"], outputs: ["change", "valueChange"] }, { kind: "directive", type: i4.MatChipInput, selector: "input[matChipInputFor]", inputs: ["matChipInputFor", "matChipInputAddOnBlur", "matChipInputSeparatorKeyCodes", "placeholder", "id", "disabled", "readonly", "matChipInputDisabledInteractive"], outputs: ["matChipInputTokenEnd"], exportAs: ["matChipInput", "matChipInputFor"] }, { kind: "directive", type: i4.MatChipRemove, selector: "[matChipRemove]" }, { kind: "component", type: i4.MatChipRow, selector: "mat-chip-row, [mat-chip-row], mat-basic-chip-row, [mat-basic-chip-row]", inputs: ["editable"], outputs: ["edited"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: EmptyStateComponent, selector: "lib-empty-state", inputs: ["icon", "message"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
87
87
  }
88
88
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ChipOptionsCreatorEditorComponent, decorators: [{
89
89
  type: Component,
90
90
  args: [{ selector: 'lib-chip-options-creator-editor', imports: [MatChipsModule, MatIconModule, EmptyStateComponent], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, host: {
91
91
  'class': 'lib-chip-options-creator-editor',
92
92
  '[attr.id]': 'id()',
93
- }, template: "@if (isEmpty()) {\n<lib-empty-state icon=\"label_off\" message=\"No options yet \u2014 type below to add one\" />\n}\n\n<mat-chip-grid\n #chipGrid\n class=\"lib-chip-options-creator-editor__grid\"\n [disabled]=\"disabled()\"\n aria-label=\"Chip options\">\n @for (segment of currentValue(); track segment) {\n <mat-chip-row\n class=\"lib-chip-options-creator-editor__chip\"\n [editable]=\"true\"\n [aria-description]=\"'press enter to edit ' + segment\"\n (edited)=\"edit(segment, $event)\"\n (removed)=\"remove(segment)\">\n {{ segment }}\n <button matChipRemove [attr.aria-label]=\"'remove ' + segment\">\n <mat-icon>cancel</mat-icon>\n </button>\n </mat-chip-row>\n }\n <input\n class=\"lib-chip-options-creator-editor__input\"\n [placeholder]=\"placeholder() || 'New selection...'\"\n [matChipInputFor]=\"chipGrid\"\n [matChipInputSeparatorKeyCodes]=\"separatorKeysCodes\"\n [matChipInputAddOnBlur]=\"true\"\n (matChipInputTokenEnd)=\"add($event)\" />\n</mat-chip-grid>\n", styles: [":host{display:flex;flex-direction:column;gap:.75rem}.lib-chip-options-creator-editor__input{border:none;outline:none;background:transparent;font-size:.875rem;color:var(--lib-forms-on-surface)}.lib-chip-options-creator-editor__input::placeholder{color:color-mix(in srgb,var(--lib-forms-on-surface-variant) 60%,transparent)}.lib-chip-options-creator-editor__chip.mat-mdc-chip{display:inline-flex;align-items:center;gap:.5rem;padding:.25rem .5rem .25rem .625rem;background:color-mix(in srgb,var(--lib-forms-primary) 10%,transparent);border-radius:var(--lib-forms-radius-pill, 6px);font-size:.8125rem;color:var(--lib-forms-on-surface)}.lib-chip-options-creator-editor__chip.mat-mdc-chip:focus-within{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-chip-options-creator-editor__chip.mat-mdc-chip .mat-mdc-chip-remove{display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;padding:0;border-radius:var(--lib-forms-radius-sm, 8px);color:var(--lib-forms-on-surface-variant);opacity:1;transition:color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing),background var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing)}.lib-chip-options-creator-editor__chip.mat-mdc-chip .mat-mdc-chip-remove:hover{color:var(--lib-forms-error);background:color-mix(in srgb,var(--lib-forms-error) 20%,transparent)}.lib-chip-options-creator-editor__chip.mat-mdc-chip .mat-mdc-chip-remove mat-icon{width:1rem;height:1rem;font-size:1rem}:host(.lib-chip-options-creator-editor[aria-disabled=true]),.lib-chip-options-creator-editor__grid[disabled]{opacity:.55;pointer-events:none}\n"] }]
93
+ }, template: "@if (isEmpty()) {\n<lib-empty-state icon=\"label_off\" message=\"No options yet \u2014 type below to add one\" />\n}\n\n<mat-chip-grid\n #chipGrid\n class=\"lib-chip-options-creator-editor__grid\"\n [disabled]=\"disabled()\"\n aria-label=\"Chip options\">\n @for (segment of currentValue(); track $index) {\n <mat-chip-row\n class=\"lib-chip-options-creator-editor__chip\"\n [editable]=\"true\"\n [aria-description]=\"'press enter to edit ' + segment\"\n (edited)=\"edit(segment, $event)\"\n (removed)=\"remove(segment)\">\n {{ segment }}\n <button matChipRemove [attr.aria-label]=\"'remove ' + segment\">\n <mat-icon>cancel</mat-icon>\n </button>\n </mat-chip-row>\n }\n <input\n class=\"lib-chip-options-creator-editor__input\"\n [placeholder]=\"placeholder() || 'New selection...'\"\n [matChipInputFor]=\"chipGrid\"\n [matChipInputSeparatorKeyCodes]=\"separatorKeysCodes\"\n [matChipInputAddOnBlur]=\"true\"\n (matChipInputTokenEnd)=\"add($event)\" />\n</mat-chip-grid>\n", styles: [":host{display:flex;flex-direction:column;gap:.75rem}.lib-chip-options-creator-editor__input{border:none;outline:none;background:transparent;font-size:.875rem;color:var(--lib-forms-on-surface)}.lib-chip-options-creator-editor__input::placeholder{color:color-mix(in srgb,var(--lib-forms-on-surface-variant) 60%,transparent)}.lib-chip-options-creator-editor__chip.mat-mdc-chip{display:inline-flex;align-items:center;gap:.5rem;padding:.25rem .5rem .25rem .625rem;background:color-mix(in srgb,var(--lib-forms-primary) 10%,transparent);border-radius:var(--lib-forms-radius-pill, 6px);font-size:.8125rem;color:var(--lib-forms-on-surface)}.lib-chip-options-creator-editor__chip.mat-mdc-chip:focus-within{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-chip-options-creator-editor__chip.mat-mdc-chip .mat-mdc-chip-remove{display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;padding:0;border-radius:var(--lib-forms-radius-sm, 8px);color:var(--lib-forms-on-surface-variant);opacity:1;transition:color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing),background var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing)}.lib-chip-options-creator-editor__chip.mat-mdc-chip .mat-mdc-chip-remove:hover{color:var(--lib-forms-error);background:color-mix(in srgb,var(--lib-forms-error) 20%,transparent)}.lib-chip-options-creator-editor__chip.mat-mdc-chip .mat-mdc-chip-remove mat-icon{width:1rem;height:1rem;font-size:1rem}:host(.lib-chip-options-creator-editor[aria-disabled=true]),.lib-chip-options-creator-editor__grid[disabled]{opacity:.55;pointer-events:none}\n"] }]
94
94
  }], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }] } });
95
95
 
96
96
  export { ChipOptionsCreatorEditorComponent };
97
- //# sourceMappingURL=ngx-t-forms-chip-options-creator-editor.component-BwGlol4L.mjs.map
97
+ //# sourceMappingURL=ngx-t-forms-chip-options-creator-editor.component-uTCOa48g.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-t-forms-chip-options-creator-editor.component-BwGlol4L.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/chip-options-creator-editor/chip-options-creator-editor.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/chip-options-creator-editor/chip-options-creator-editor.component.html"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n computed,\n effect,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\nimport { LiveAnnouncer } from '@angular/cdk/a11y';\nimport { COMMA, ENTER } from '@angular/cdk/keycodes';\nimport { MatChipEditedEvent, MatChipInputEvent, MatChipsModule } from '@angular/material/chips';\nimport { MatIconModule } from '@angular/material/icon';\nimport type { IConfigElementError } from '../../t-dynamic-data-edit.component';\nimport { EmptyStateComponent } from '../_shared/empty-state/empty-state.component';\n\n/**\n * Internal chip-options creator editor: the user types free-text tokens that\n * become removable, editable chips; the resulting `string[]` is emitted.\n *\n * Rendered by `t-dynamic-data-edit`'s non-control branch (it is NOT a\n * MatFormFieldControl), which already supplies the field label, hint, and\n * validation errors — so this component owns only the chip grid and its empty\n * state.\n */\n@Component({\n selector: 'lib-chip-options-creator-editor',\n imports: [MatChipsModule, MatIconModule, EmptyStateComponent],\n templateUrl: './chip-options-creator-editor.component.html',\n styleUrl: './chip-options-creator-editor.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n 'class': 'lib-chip-options-creator-editor',\n '[attr.id]': 'id()',\n },\n})\nexport class ChipOptionsCreatorEditorComponent {\n /** Optional id attribute supplied by the parent editor. */\n readonly id = input<string | undefined>(undefined);\n /** Disables chip entry/edit/remove. */\n readonly disabled = input<boolean>(false);\n /** Whether a non-empty value is required (kept on the contract). */\n readonly required = input<boolean>(false);\n /** External validation errors (surfaced by the parent). */\n readonly errors = input<IConfigElementError[] | undefined>([]);\n /** The chip values to render. */\n readonly value = input<string[] | undefined>(undefined);\n /** Placeholder for the new-chip input. */\n readonly placeholder = input<string>('');\n\n /** Emits the full chip list whenever it changes. */\n readonly valueChange = output<string[] | undefined>();\n\n protected readonly separatorKeysCodes = [ENTER, COMMA] as const;\n\n /** Local working copy of the chip list; mirrors the `value` input. */\n readonly #internalValue = signal<readonly string[]>([]);\n /** Read-only accessor used by the template. */\n protected readonly currentValue = this.#internalValue.asReadonly();\n protected readonly isEmpty = computed(() => this.#internalValue().length === 0);\n\n readonly #announcer = inject(LiveAnnouncer);\n\n constructor() {\n // The parent drives the value declaratively via [value].\n effect(() => {\n this.#internalValue.set(this.value() ?? []);\n });\n }\n\n protected add(event: MatChipInputEvent): void {\n const value = (event.value || '').trim();\n event.chipInput?.clear();\n if (!value) {\n return;\n }\n const current = this.#internalValue();\n if (current.includes(value)) {\n this.#announcer.announce(`value ${value} already exists`);\n return;\n }\n this.#commit([...current, value]);\n }\n\n protected edit(segment: string, event: MatChipEditedEvent): void {\n const newValue = event.value.trim();\n if (!newValue) {\n this.remove(segment);\n return;\n }\n this.#commit(this.#internalValue().map((s) => (s === segment ? newValue : s)));\n }\n\n protected remove(segment: string): void {\n const current = this.#internalValue();\n if (!current.includes(segment)) {\n return;\n }\n this.#announcer.announce(`Removed ${segment}`);\n this.#commit(current.filter((s) => s !== segment));\n }\n\n #commit(next: readonly string[]): void {\n const snapshot = [...next];\n this.#internalValue.set(snapshot);\n this.valueChange.emit(snapshot);\n }\n}\n","@if (isEmpty()) {\n<lib-empty-state icon=\"label_off\" message=\"No options yet — type below to add one\" />\n}\n\n<mat-chip-grid\n #chipGrid\n class=\"lib-chip-options-creator-editor__grid\"\n [disabled]=\"disabled()\"\n aria-label=\"Chip options\">\n @for (segment of currentValue(); track segment) {\n <mat-chip-row\n class=\"lib-chip-options-creator-editor__chip\"\n [editable]=\"true\"\n [aria-description]=\"'press enter to edit ' + segment\"\n (edited)=\"edit(segment, $event)\"\n (removed)=\"remove(segment)\">\n {{ segment }}\n <button matChipRemove [attr.aria-label]=\"'remove ' + segment\">\n <mat-icon>cancel</mat-icon>\n </button>\n </mat-chip-row>\n }\n <input\n class=\"lib-chip-options-creator-editor__input\"\n [placeholder]=\"placeholder() || 'New selection...'\"\n [matChipInputFor]=\"chipGrid\"\n [matChipInputSeparatorKeyCodes]=\"separatorKeysCodes\"\n [matChipInputAddOnBlur]=\"true\"\n (matChipInputTokenEnd)=\"add($event)\" />\n</mat-chip-grid>\n"],"names":["i1"],"mappings":";;;;;;;;;;AAkBA;;;;;;;;AAQG;MAaU,iCAAiC,CAAA;;AAoBnC,IAAA,cAAc;AAKd,IAAA,UAAU;AAEnB,IAAA,WAAA,GAAA;;AAzBS,QAAA,IAAA,CAAA,EAAE,GAAG,KAAK,CAAqB,SAAS,yEAAC;;AAEzC,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,+EAAC;;AAEhC,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,+EAAC;;AAEhC,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAoC,EAAE,6EAAC;;AAErD,QAAA,I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Aa,EAAE,mBAAmB,CAAC,EAAA,eAAA,EAG5C,uBAAuB,CAAC,MAAM,EAAA,aAAA,EAChC,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EACnC;AACJ,wBAAA,OAAO,EAAE,iCAAiC;AAC1C,wBAAA,WAAW,EAAE,MAAM;AACpB,qBAAA,EAAA,QAAA,EAAA,ygCAAA,EAAA,MAAA,EAAA,CAAA,4pDAAA,CAAA,EAAA;;;;;"}
1
+ {"version":3,"file":"ngx-t-forms-chip-options-creator-editor.component-uTCOa48g.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/chip-options-creator-editor/chip-options-creator-editor.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/chip-options-creator-editor/chip-options-creator-editor.component.html"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n computed,\n effect,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\nimport { LiveAnnouncer } from '@angular/cdk/a11y';\nimport { COMMA, ENTER } from '@angular/cdk/keycodes';\nimport { MatChipEditedEvent, MatChipInputEvent, MatChipsModule } from '@angular/material/chips';\nimport { MatIconModule } from '@angular/material/icon';\nimport type { IConfigElementError } from '../../t-dynamic-data-edit.component';\nimport { EmptyStateComponent } from '../_shared/empty-state/empty-state.component';\n\n/**\n * Internal chip-options creator editor: the user types free-text tokens that\n * become removable, editable chips; the resulting `string[]` is emitted.\n *\n * Rendered by `t-dynamic-data-edit`'s non-control branch (it is NOT a\n * MatFormFieldControl), which already supplies the field label, hint, and\n * validation errors — so this component owns only the chip grid and its empty\n * state.\n */\n@Component({\n selector: 'lib-chip-options-creator-editor',\n imports: [MatChipsModule, MatIconModule, EmptyStateComponent],\n templateUrl: './chip-options-creator-editor.component.html',\n styleUrl: './chip-options-creator-editor.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n 'class': 'lib-chip-options-creator-editor',\n '[attr.id]': 'id()',\n },\n})\nexport class ChipOptionsCreatorEditorComponent {\n /** Optional id attribute supplied by the parent editor. */\n readonly id = input<string | undefined>(undefined);\n /** Disables chip entry/edit/remove. */\n readonly disabled = input<boolean>(false);\n /** Whether a non-empty value is required (kept on the contract). */\n readonly required = input<boolean>(false);\n /** External validation errors (surfaced by the parent). */\n readonly errors = input<IConfigElementError[] | undefined>([]);\n /** The chip values to render. */\n readonly value = input<string[] | undefined>(undefined);\n /** Placeholder for the new-chip input. */\n readonly placeholder = input<string>('');\n\n /** Emits the full chip list whenever it changes. */\n readonly valueChange = output<string[] | undefined>();\n\n protected readonly separatorKeysCodes = [ENTER, COMMA] as const;\n\n /** Local working copy of the chip list; mirrors the `value` input. */\n readonly #internalValue = signal<readonly string[]>([]);\n /** Read-only accessor used by the template. */\n protected readonly currentValue = this.#internalValue.asReadonly();\n protected readonly isEmpty = computed(() => this.#internalValue().length === 0);\n\n readonly #announcer = inject(LiveAnnouncer);\n\n constructor() {\n // The parent drives the value declaratively via [value].\n effect(() => {\n this.#internalValue.set(this.value() ?? []);\n });\n }\n\n protected add(event: MatChipInputEvent): void {\n const value = (event.value || '').trim();\n event.chipInput?.clear();\n if (!value) {\n return;\n }\n const current = this.#internalValue();\n if (current.includes(value)) {\n this.#announcer.announce(`value ${value} already exists`);\n return;\n }\n this.#commit([...current, value]);\n }\n\n protected edit(segment: string, event: MatChipEditedEvent): void {\n const newValue = event.value.trim();\n if (!newValue) {\n this.remove(segment);\n return;\n }\n this.#commit(this.#internalValue().map((s) => (s === segment ? newValue : s)));\n }\n\n protected remove(segment: string): void {\n const current = this.#internalValue();\n if (!current.includes(segment)) {\n return;\n }\n this.#announcer.announce(`Removed ${segment}`);\n this.#commit(current.filter((s) => s !== segment));\n }\n\n #commit(next: readonly string[]): void {\n const snapshot = [...next];\n this.#internalValue.set(snapshot);\n this.valueChange.emit(snapshot);\n }\n}\n","@if (isEmpty()) {\n<lib-empty-state icon=\"label_off\" message=\"No options yet — type below to add one\" />\n}\n\n<mat-chip-grid\n #chipGrid\n class=\"lib-chip-options-creator-editor__grid\"\n [disabled]=\"disabled()\"\n aria-label=\"Chip options\">\n @for (segment of currentValue(); track $index) {\n <mat-chip-row\n class=\"lib-chip-options-creator-editor__chip\"\n [editable]=\"true\"\n [aria-description]=\"'press enter to edit ' + segment\"\n (edited)=\"edit(segment, $event)\"\n (removed)=\"remove(segment)\">\n {{ segment }}\n <button matChipRemove [attr.aria-label]=\"'remove ' + segment\">\n <mat-icon>cancel</mat-icon>\n </button>\n </mat-chip-row>\n }\n <input\n class=\"lib-chip-options-creator-editor__input\"\n [placeholder]=\"placeholder() || 'New selection...'\"\n [matChipInputFor]=\"chipGrid\"\n [matChipInputSeparatorKeyCodes]=\"separatorKeysCodes\"\n [matChipInputAddOnBlur]=\"true\"\n (matChipInputTokenEnd)=\"add($event)\" />\n</mat-chip-grid>\n"],"names":["i1"],"mappings":";;;;;;;;;;AAkBA;;;;;;;;AAQG;MAaU,iCAAiC,CAAA;;AAoBnC,IAAA,cAAc;AAKd,IAAA,UAAU;AAEnB,IAAA,WAAA,GAAA;;AAzBS,QAAA,IAAA,CAAA,EAAE,GAAG,KAAK,CAAqB,SAAS,yEAAC;;AAEzC,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,+EAAC;;AAEhC,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,+EAAC;;AAEhC,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAoC,EAAE,6EAAC;;AAErD,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAuB,SAAS,4EAAC;;AAE9C,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAS,EAAE,kFAAC;;QAG/B,IAAA,CAAA,WAAW,GAAG,MAAM,EAAwB;AAElC,QAAA,IAAA,CAAA,kBAAkB,GAAG,CAAC,KAAK,EAAE,KAAK,CAAU;;AAGtD,QAAA,IAAA,CAAA,cAAc,GAA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A,EAAA;;;;;"}
@@ -4,14 +4,14 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
4
4
  import { NgControl } from '@angular/forms';
5
5
  import * as i2 from '@angular/material/form-field';
6
6
  import { MatFormFieldModule, MatFormFieldControl } from '@angular/material/form-field';
7
- import * as i4 from '@angular/material/list';
7
+ import * as i6 from '@angular/material/list';
8
8
  import { MatListModule } from '@angular/material/list';
9
- import * as i8 from '@angular/material/select';
9
+ import * as i8$1 from '@angular/material/select';
10
10
  import { MatSelectModule } from '@angular/material/select';
11
- import * as i5 from '@angular/material/toolbar';
11
+ import * as i8 from '@angular/material/toolbar';
12
12
  import { MatToolbarModule } from '@angular/material/toolbar';
13
13
  import { Subject, take, tap, catchError, of } from 'rxjs';
14
- import { E as EmptyStateComponent } from './ngx-t-forms-ngx-t-forms-BkTeV_AF.mjs';
14
+ import { E as EmptyStateComponent } from './ngx-t-forms-ngx-t-forms-CJGAj18J.mjs';
15
15
 
16
16
  /**
17
17
  * Internal editor that links each configured form input to an MSCOA
@@ -160,7 +160,7 @@ class ConfigMscoaAdditionalInputsComponent {
160
160
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ConfigMscoaAdditionalInputsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
161
161
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: ConfigMscoaAdditionalInputsComponent, isStandalone: true, selector: "lib-config-mscoa-additional-inputs", inputs: { disabled: "disabled", required: "required", errors: "errors", mapToData: "mapToData", getMscoaTree: "getMscoaTree", value: "value" }, outputs: { valueChanged: "valueChanged" }, host: { properties: { "id": "id", "attr.aria-describedby": "describedBy" }, classAttribute: "lib-config-mscoa-additional-inputs" }, providers: [
162
162
  { provide: MatFormFieldControl, useExisting: ConfigMscoaAdditionalInputsComponent },
163
- ], ngImport: i0, template: "@if (inputs().length > 0) {\n <mat-list class=\"lib-config-mscoa-additional-inputs__list\">\n <mat-toolbar class=\"lib-config-mscoa-additional-inputs__heading\">\n Additional inputs configuration\n </mat-toolbar>\n @for (input of inputs(); track input.id; let i = $index) {\n <mat-form-field\n class=\"lib-config-mscoa-additional-inputs__row\"\n appearance=\"outline\"\n subscriptSizing=\"dynamic\"\n (mouseover)=\"hovered.set(i)\"\n (mouseleave)=\"hovered.set(null)\">\n <mat-label>{{ input.label }}</mat-label>\n <mat-select\n matNativeControl\n [disabled]=\"disabled\"\n [value]=\"input.segment\"\n placeholder=\"select segment\"\n (selectionChange)=\"inputSegmentChanged($event, i)\">\n @for (segment of limitInputTo(); track segment.label) {\n <mat-option [value]=\"segment.value\">{{ segment.label }}</mat-option>\n }\n </mat-select>\n <mat-hint>Link formula to an input value</mat-hint>\n </mat-form-field>\n }\n </mat-list>\n} @else if (canAddInputs) {\n <lib-empty-state\n icon=\"info\"\n message=\"No input configuration available.\" />\n}\n", styles: [":host{display:block}.lib-config-mscoa-additional-inputs__list{display:flex;flex-direction:column;gap:.75rem;padding:0}.lib-config-mscoa-additional-inputs__row{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: MatListModule }, { kind: "component", type: i4.MatList, selector: "mat-list", exportAs: ["matList"] }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i5.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i8.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i8.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "component", type: EmptyStateComponent, selector: "lib-empty-state", inputs: ["icon", "message"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
163
+ ], ngImport: i0, template: "@if (inputs().length > 0) {\n <mat-list class=\"lib-config-mscoa-additional-inputs__list\">\n <mat-toolbar class=\"lib-config-mscoa-additional-inputs__heading\">\n Additional inputs configuration\n </mat-toolbar>\n @for (input of inputs(); track input.id; let i = $index) {\n <mat-form-field\n class=\"lib-config-mscoa-additional-inputs__row\"\n appearance=\"outline\"\n subscriptSizing=\"dynamic\"\n (mouseover)=\"hovered.set(i)\"\n (mouseleave)=\"hovered.set(null)\">\n <mat-label>{{ input.label }}</mat-label>\n <mat-select\n matNativeControl\n [disabled]=\"disabled\"\n [value]=\"input.segment\"\n placeholder=\"select segment\"\n (selectionChange)=\"inputSegmentChanged($event, i)\">\n @for (segment of limitInputTo(); track segment.label) {\n <mat-option [value]=\"segment.value\">{{ segment.label }}</mat-option>\n }\n </mat-select>\n <mat-hint>Link formula to an input value</mat-hint>\n </mat-form-field>\n }\n </mat-list>\n} @else if (canAddInputs) {\n <lib-empty-state\n icon=\"info\"\n message=\"No input configuration available.\" />\n}\n", styles: [":host{display:block}.lib-config-mscoa-additional-inputs__list{display:flex;flex-direction:column;gap:.75rem;padding:0}.lib-config-mscoa-additional-inputs__row{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: MatListModule }, { kind: "component", type: i6.MatList, selector: "mat-list", exportAs: ["matList"] }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i8.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i8$1.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i8$1.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "component", type: EmptyStateComponent, selector: "lib-empty-state", inputs: ["icon", "message"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
164
164
  }
165
165
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ConfigMscoaAdditionalInputsComponent, decorators: [{
166
166
  type: Component,
@@ -192,4 +192,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
192
192
  }] } });
193
193
 
194
194
  export { ConfigMscoaAdditionalInputsComponent };
195
- //# sourceMappingURL=ngx-t-forms-config-mscoa-additional-inputs.component-6fu2mXuZ.mjs.map
195
+ //# sourceMappingURL=ngx-t-forms-config-mscoa-additional-inputs.component-BX3zJs-A.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-t-forms-config-mscoa-additional-inputs.component-6fu2mXuZ.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/config-mscoa-additional-inputs/config-mscoa-additional-inputs.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/config-mscoa-additional-inputs/config-mscoa-additional-inputs.component.html"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n Input,\n ViewEncapsulation,\n computed,\n inject,\n output,\n signal,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { NgControl } from '@angular/forms';\nimport { MatFormFieldControl, MatFormFieldModule } from '@angular/material/form-field';\nimport { MatListModule } from '@angular/material/list';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatToolbarModule } from '@angular/material/toolbar';\nimport { Subject, catchError, of, take, tap, type Observable } from 'rxjs';\n\nimport type { FormColumnInputs, IGetTreeResponse } from 'ngx-t-forms-types';\nimport { EmptyStateComponent } from '../_shared/empty-state/empty-state.component';\nimport type { IConfigElementError } from '../../t-dynamic-data-edit.component';\n\n/**\n * A configured form input paired with the MSCOA account-segment it links to.\n *\n * `segment` is `undefined` when the user selects \"None\" (i.e. the input is not\n * bound to any account segment).\n */\nexport interface ConfiguredMscoaInput extends FormColumnInputs {\n /** Selected account-segment key. `undefined` when the user picks \"None\". */\n segment: string | undefined;\n}\n\n/** A selectable account-segment option (plus the synthetic \"None\" entry). */\ninterface SegmentOption {\n readonly value: string | undefined;\n readonly label: string;\n}\n\n/**\n * Internal editor that links each configured form input to an MSCOA\n * account-segment, implementing `MatFormFieldControl<ConfiguredMscoaInput[]>`\n * for the dynamic-data-edit configuration surface.\n *\n * Rendered by `t-dynamic-data-edit`, which supplies the surrounding field label,\n * hint, and validation errors — so this component owns only the per-input\n * segment selectors and the empty-state hint.\n *\n * NOTE: `MatFormFieldControl<T>` mandates plain mutable `value` / `disabled` /\n * `required` / `placeholder` / `id` members, `@Input()` decorators, the\n * `focused` / `touched` / `stateChanges` members, and the `useExisting`\n * provider. These are framework wiring, not defects — the CLAUDE.md bans on\n * `@Input()` / `useExisting` do not apply to MatFormFieldControl integration.\n */\n@Component({\n selector: 'lib-config-mscoa-additional-inputs',\n imports: [\n MatListModule,\n MatToolbarModule,\n MatFormFieldModule,\n MatSelectModule,\n EmptyStateComponent,\n ],\n templateUrl: './config-mscoa-additional-inputs.component.html',\n styleUrls: ['./config-mscoa-additional-inputs.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.Emulated,\n providers: [\n { provide: MatFormFieldControl, useExisting: ConfigMscoaAdditionalInputsComponent },\n ],\n host: {\n 'class': 'lib-config-mscoa-additional-inputs',\n '[id]': 'id',\n '[attr.aria-describedby]': 'describedBy',\n },\n})\nexport class ConfigMscoaAdditionalInputsComponent\n implements MatFormFieldControl<ConfiguredMscoaInput[]>\n{\n static nextId = 0;\n\n // ---- MatFormFieldControl wiring (framework-mandated plain members) -------\n\n /** Emits whenever a piece of `MatFormFieldControl` state changes. */\n readonly stateChanges = new Subject<void>();\n readonly controlType = 'lib-config-mscoa-additional-inputs';\n\n id = `app-config-mscoa-additional-inputs-${ConfigMscoaAdditionalInputsComponent.nextId++}`;\n placeholder = '';\n focused = false;\n touched = false;\n describedBy = '';\n autofilled: boolean | undefined = undefined;\n userAriaDescribedBy: string | undefined = undefined;\n disableAutomaticLabeling: boolean | undefined = undefined;\n\n readonly ngControl = inject(NgControl, { self: true, optional: true });\n\n readonly #destroyRef = inject(DestroyRef);\n\n // ---- Public input/output contract ---------------------------------------\n\n /** Whether all segment selectors are inert. */\n @Input() disabled = false;\n\n /** Whether a value is required (drives the MFC error state). */\n @Input() required = false;\n\n /** Validation errors surfaced by the parent for error-state derivation. */\n @Input() errors: IConfigElementError[] | undefined = [];\n\n /** Data context; the add-input affordance is gated on `mapToData?.id`. */\n @Input() mapToData: FormColumnInputs | undefined = undefined;\n\n /**\n * One-shot stream of the MSCOA tree. The first emitted response's\n * `accountTreeKeys` populate the per-input segment options; later\n * assignments are ignored (the stream is consumed once).\n */\n @Input() set getMscoaTree(options$: Observable<IGetTreeResponse | undefined>) {\n if (!options$ || this.#mscoaInitiated) {\n return;\n }\n this.#mscoaInitiated = true;\n options$\n .pipe(\n take(1),\n tap((options) => this.#accountTreeKeys.set(options?.accountTreeKeys ?? [])),\n catchError(() => of(undefined)),\n takeUntilDestroyed(this.#destroyRef),\n )\n .subscribe();\n }\n\n /** Emits the full configured-input list whenever a segment changes. */\n readonly valueChanged = output<ConfiguredMscoaInput[]>();\n\n #mscoaInitiated = false;\n readonly #accountTreeKeys = signal<string[]>([]);\n readonly #value = signal<ConfiguredMscoaInput[]>([]);\n\n /** Currently hovered list row index, for hover affordances. */\n protected readonly hovered = signal<number | null>(null);\n\n /**\n * Segment options offered per input: every account-tree key plus a trailing\n * synthetic \"None\" entry that clears the binding.\n */\n protected readonly limitInputTo = computed<SegmentOption[]>(() => [\n ...this.#accountTreeKeys().map((key) => ({ value: key as string | undefined, label: key })),\n { value: undefined, label: 'None' },\n ]);\n\n /**\n * Whether the empty-state hint may render.\n *\n * A plain getter (not a `computed()`) because `mapToData` is a framework-style\n * mutable `@Input` rather than a signal — OnPush re-evaluates this binding\n * each change-detection pass.\n */\n protected get canAddInputs(): boolean {\n return !!this.mapToData?.id;\n }\n\n /** Configured inputs to render. */\n protected readonly inputs = this.#value.asReadonly();\n\n /** Current MatFormFieldControl value (the configured-input list). */\n @Input()\n get value(): ConfiguredMscoaInput[] {\n return this.#value();\n }\n set value(val: ConfiguredMscoaInput[]) {\n this.#value.set(val ?? []);\n this.stateChanges.next();\n }\n\n // ---- MatFormFieldControl framework getters ------------------------------\n\n get empty(): boolean {\n return this.#value().length === 0;\n }\n\n get shouldLabelFloat(): boolean {\n return this.focused || !this.empty;\n }\n\n get errorState(): boolean {\n const requiredUnset = this.empty && this.required;\n const ngControlError = this.ngControl?.errors != null;\n const externalError = (this.errors?.length ?? 0) > 0 && this.touched;\n return requiredUnset || ngControlError || externalError;\n }\n\n setDescribedByIds(ids: string[]): void {\n this.describedBy = ids.join(' ');\n this.stateChanges.next();\n }\n\n onContainerClick(): void {\n this.markAsTouched();\n this.stateChanges.next();\n }\n\n onTouched: () => void = () => {};\n\n markAsTouched(): void {\n if (!this.touched) {\n this.touched = true;\n this.onTouched();\n this.stateChanges.next();\n }\n }\n\n // ---- Behaviour ----------------------------------------------------------\n\n /**\n * Assigns the chosen account-segment to the input at `index` and emits the\n * updated list immediately. Selecting \"None\" (`undefined`) clears the binding.\n */\n inputSegmentChanged(\n event: { detail?: { value: string }; value?: string },\n index: number,\n ): void {\n const detailValue = event.detail?.value ?? event.value;\n const current = this.#value();\n const item = current[index];\n if (!item) {\n return;\n }\n const next = current.map((input, i) =>\n i === index\n ? { ...input, segment: detailValue === 'None' ? undefined : detailValue }\n : input,\n );\n this.#value.set(next);\n this.markAsTouched();\n this.stateChanges.next();\n this.valueChanged.emit(next);\n }\n}\n","@if (inputs().length > 0) {\n <mat-list class=\"lib-config-mscoa-additional-inputs__list\">\n <mat-toolbar class=\"lib-config-mscoa-additional-inputs__heading\">\n Additional inputs configuration\n </mat-toolbar>\n @for (input of inputs(); track input.id; let i = $index) {\n <mat-form-field\n class=\"lib-config-mscoa-additional-inputs__row\"\n appearance=\"outline\"\n subscriptSizing=\"dynamic\"\n (mouseover)=\"hovered.set(i)\"\n (mouseleave)=\"hovered.set(null)\">\n <mat-label>{{ input.label }}</mat-label>\n <mat-select\n matNativeControl\n [disabled]=\"disabled\"\n [value]=\"input.segment\"\n placeholder=\"select segment\"\n (selectionChange)=\"inputSegmentChanged($event, i)\">\n @for (segment of limitInputTo(); track segment.label) {\n <mat-option [value]=\"segment.value\">{{ segment.label }}</mat-option>\n }\n </mat-select>\n <mat-hint>Link formula to an input value</mat-hint>\n </mat-form-field>\n }\n </mat-list>\n} @else if (canAddInputs) {\n <lib-empty-state\n icon=\"info\"\n message=\"No input configuration available.\" />\n}\n"],"names":["i1","i3","i4"],"mappings":";;;;;;;;;;;;;;;AAwCA;;;;;;;;;;;;;;AAcG;MAuBU,oCAAoC,CAAA;AAtBj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A;;sBAGA;;sBAGA;;sBAGA;;sBAOA;;sBAiDA;;;;;"}
1
+ {"version":3,"file":"ngx-t-forms-config-mscoa-additional-inputs.component-BX3zJs-A.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/config-mscoa-additional-inputs/config-mscoa-additional-inputs.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/config-mscoa-additional-inputs/config-mscoa-additional-inputs.component.html"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n Input,\n ViewEncapsulation,\n computed,\n inject,\n output,\n signal,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { NgControl } from '@angular/forms';\nimport { MatFormFieldControl, MatFormFieldModule } from '@angular/material/form-field';\nimport { MatListModule } from '@angular/material/list';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatToolbarModule } from '@angular/material/toolbar';\nimport { Subject, catchError, of, take, tap, type Observable } from 'rxjs';\n\nimport type { FormColumnInputs, IGetTreeResponse } from 'ngx-t-forms-types';\nimport { EmptyStateComponent } from '../_shared/empty-state/empty-state.component';\nimport type { IConfigElementError } from '../../t-dynamic-data-edit.component';\n\n/**\n * A configured form input paired with the MSCOA account-segment it links to.\n *\n * `segment` is `undefined` when the user selects \"None\" (i.e. the input is not\n * bound to any account segment).\n */\nexport interface ConfiguredMscoaInput extends FormColumnInputs {\n /** Selected account-segment key. `undefined` when the user picks \"None\". */\n segment: string | undefined;\n}\n\n/** A selectable account-segment option (plus the synthetic \"None\" entry). */\ninterface SegmentOption {\n readonly value: string | undefined;\n readonly label: string;\n}\n\n/**\n * Internal editor that links each configured form input to an MSCOA\n * account-segment, implementing `MatFormFieldControl<ConfiguredMscoaInput[]>`\n * for the dynamic-data-edit configuration surface.\n *\n * Rendered by `t-dynamic-data-edit`, which supplies the surrounding field label,\n * hint, and validation errors — so this component owns only the per-input\n * segment selectors and the empty-state hint.\n *\n * NOTE: `MatFormFieldControl<T>` mandates plain mutable `value` / `disabled` /\n * `required` / `placeholder` / `id` members, `@Input()` decorators, the\n * `focused` / `touched` / `stateChanges` members, and the `useExisting`\n * provider. These are framework wiring, not defects — the CLAUDE.md bans on\n * `@Input()` / `useExisting` do not apply to MatFormFieldControl integration.\n */\n@Component({\n selector: 'lib-config-mscoa-additional-inputs',\n imports: [\n MatListModule,\n MatToolbarModule,\n MatFormFieldModule,\n MatSelectModule,\n EmptyStateComponent,\n ],\n templateUrl: './config-mscoa-additional-inputs.component.html',\n styleUrls: ['./config-mscoa-additional-inputs.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.Emulated,\n providers: [\n { provide: MatFormFieldControl, useExisting: ConfigMscoaAdditionalInputsComponent },\n ],\n host: {\n 'class': 'lib-config-mscoa-additional-inputs',\n '[id]': 'id',\n '[attr.aria-describedby]': 'describedBy',\n },\n})\nexport class ConfigMscoaAdditionalInputsComponent\n implements MatFormFieldControl<ConfiguredMscoaInput[]>\n{\n static nextId = 0;\n\n // ---- MatFormFieldControl wiring (framework-mandated plain members) -------\n\n /** Emits whenever a piece of `MatFormFieldControl` state changes. */\n readonly stateChanges = new Subject<void>();\n readonly controlType = 'lib-config-mscoa-additional-inputs';\n\n id = `app-config-mscoa-additional-inputs-${ConfigMscoaAdditionalInputsComponent.nextId++}`;\n placeholder = '';\n focused = false;\n touched = false;\n describedBy = '';\n autofilled: boolean | undefined = undefined;\n userAriaDescribedBy: string | undefined = undefined;\n disableAutomaticLabeling: boolean | undefined = undefined;\n\n readonly ngControl = inject(NgControl, { self: true, optional: true });\n\n readonly #destroyRef = inject(DestroyRef);\n\n // ---- Public input/output contract ---------------------------------------\n\n /** Whether all segment selectors are inert. */\n @Input() disabled = false;\n\n /** Whether a value is required (drives the MFC error state). */\n @Input() required = false;\n\n /** Validation errors surfaced by the parent for error-state derivation. */\n @Input() errors: IConfigElementError[] | undefined = [];\n\n /** Data context; the add-input affordance is gated on `mapToData?.id`. */\n @Input() mapToData: FormColumnInputs | undefined = undefined;\n\n /**\n * One-shot stream of the MSCOA tree. The first emitted response's\n * `accountTreeKeys` populate the per-input segment options; later\n * assignments are ignored (the stream is consumed once).\n */\n @Input() set getMscoaTree(options$: Observable<IGetTreeResponse | undefined>) {\n if (!options$ || this.#mscoaInitiated) {\n return;\n }\n this.#mscoaInitiated = true;\n options$\n .pipe(\n take(1),\n tap((options) => this.#accountTreeKeys.set(options?.accountTreeKeys ?? [])),\n catchError(() => of(undefined)),\n takeUntilDestroyed(this.#destroyRef),\n )\n .subscribe();\n }\n\n /** Emits the full configured-input list whenever a segment changes. */\n readonly valueChanged = output<ConfiguredMscoaInput[]>();\n\n #mscoaInitiated = false;\n readonly #accountTreeKeys = signal<string[]>([]);\n readonly #value = signal<ConfiguredMscoaInput[]>([]);\n\n /** Currently hovered list row index, for hover affordances. */\n protected readonly hovered = signal<number | null>(null);\n\n /**\n * Segment options offered per input: every account-tree key plus a trailing\n * synthetic \"None\" entry that clears the binding.\n */\n protected readonly limitInputTo = computed<SegmentOption[]>(() => [\n ...this.#accountTreeKeys().map((key) => ({ value: key as string | undefined, label: key })),\n { value: undefined, label: 'None' },\n ]);\n\n /**\n * Whether the empty-state hint may render.\n *\n * A plain getter (not a `computed()`) because `mapToData` is a framework-style\n * mutable `@Input` rather than a signal — OnPush re-evaluates this binding\n * each change-detection pass.\n */\n protected get canAddInputs(): boolean {\n return !!this.mapToData?.id;\n }\n\n /** Configured inputs to render. */\n protected readonly inputs = this.#value.asReadonly();\n\n /** Current MatFormFieldControl value (the configured-input list). */\n @Input()\n get value(): ConfiguredMscoaInput[] {\n return this.#value();\n }\n set value(val: ConfiguredMscoaInput[]) {\n this.#value.set(val ?? []);\n this.stateChanges.next();\n }\n\n // ---- MatFormFieldControl framework getters ------------------------------\n\n get empty(): boolean {\n return this.#value().length === 0;\n }\n\n get shouldLabelFloat(): boolean {\n return this.focused || !this.empty;\n }\n\n get errorState(): boolean {\n const requiredUnset = this.empty && this.required;\n const ngControlError = this.ngControl?.errors != null;\n const externalError = (this.errors?.length ?? 0) > 0 && this.touched;\n return requiredUnset || ngControlError || externalError;\n }\n\n setDescribedByIds(ids: string[]): void {\n this.describedBy = ids.join(' ');\n this.stateChanges.next();\n }\n\n onContainerClick(): void {\n this.markAsTouched();\n this.stateChanges.next();\n }\n\n onTouched: () => void = () => {};\n\n markAsTouched(): void {\n if (!this.touched) {\n this.touched = true;\n this.onTouched();\n this.stateChanges.next();\n }\n }\n\n // ---- Behaviour ----------------------------------------------------------\n\n /**\n * Assigns the chosen account-segment to the input at `index` and emits the\n * updated list immediately. Selecting \"None\" (`undefined`) clears the binding.\n */\n inputSegmentChanged(\n event: { detail?: { value: string }; value?: string },\n index: number,\n ): void {\n const detailValue = event.detail?.value ?? event.value;\n const current = this.#value();\n const item = current[index];\n if (!item) {\n return;\n }\n const next = current.map((input, i) =>\n i === index\n ? { ...input, segment: detailValue === 'None' ? undefined : detailValue }\n : input,\n );\n this.#value.set(next);\n this.markAsTouched();\n this.stateChanges.next();\n this.valueChanged.emit(next);\n }\n}\n","@if (inputs().length > 0) {\n <mat-list class=\"lib-config-mscoa-additional-inputs__list\">\n <mat-toolbar class=\"lib-config-mscoa-additional-inputs__heading\">\n Additional inputs configuration\n </mat-toolbar>\n @for (input of inputs(); track input.id; let i = $index) {\n <mat-form-field\n class=\"lib-config-mscoa-additional-inputs__row\"\n appearance=\"outline\"\n subscriptSizing=\"dynamic\"\n (mouseover)=\"hovered.set(i)\"\n (mouseleave)=\"hovered.set(null)\">\n <mat-label>{{ input.label }}</mat-label>\n <mat-select\n matNativeControl\n [disabled]=\"disabled\"\n [value]=\"input.segment\"\n placeholder=\"select segment\"\n (selectionChange)=\"inputSegmentChanged($event, i)\">\n @for (segment of limitInputTo(); track segment.label) {\n <mat-option [value]=\"segment.value\">{{ segment.label }}</mat-option>\n }\n </mat-select>\n <mat-hint>Link formula to an input value</mat-hint>\n </mat-form-field>\n }\n </mat-list>\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