ngx-t-forms 2.0.37 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/fesm2022/ngx-t-forms-auto-complete-input-element.component-7g5cpVfB.mjs +261 -0
  2. package/fesm2022/ngx-t-forms-auto-complete-input-element.component-7g5cpVfB.mjs.map +1 -0
  3. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-D_l5sbNh.mjs → ngx-t-forms-auto-complete-input-element.component-DFApar1W.mjs} +4 -4
  4. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-D_l5sbNh.mjs.map → ngx-t-forms-auto-complete-input-element.component-DFApar1W.mjs.map} +1 -1
  5. package/fesm2022/ngx-t-forms-basic-input-input-element.component-BhMw2vpl.mjs +225 -0
  6. package/fesm2022/ngx-t-forms-basic-input-input-element.component-BhMw2vpl.mjs.map +1 -0
  7. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-fJIsRm0v.mjs → ngx-t-forms-basic-input-input-element.component-ChCeve-w.mjs} +6 -6
  8. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-fJIsRm0v.mjs.map → ngx-t-forms-basic-input-input-element.component-ChCeve-w.mjs.map} +1 -1
  9. package/fesm2022/ngx-t-forms-calculated-field-rules.component-BmWnrfWN.mjs +1011 -0
  10. package/fesm2022/ngx-t-forms-calculated-field-rules.component-BmWnrfWN.mjs.map +1 -0
  11. package/fesm2022/{ngx-t-forms-calculated-field-rules.component-B8Do3h4B.mjs → ngx-t-forms-calculated-field-rules.component-CJMwqoHL.mjs} +4 -4
  12. package/fesm2022/{ngx-t-forms-calculated-field-rules.component-B8Do3h4B.mjs.map → ngx-t-forms-calculated-field-rules.component-CJMwqoHL.mjs.map} +1 -1
  13. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-ALkkDotT.mjs +136 -0
  14. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-ALkkDotT.mjs.map +1 -0
  15. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-L1kPy15K.mjs → ngx-t-forms-chip-options-creator-editor.component-B54kOArR.mjs} +2 -2
  16. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-L1kPy15K.mjs.map → ngx-t-forms-chip-options-creator-editor.component-B54kOArR.mjs.map} +1 -1
  17. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-CU6Cp-oK.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-CAZv0_uR.mjs} +2 -2
  18. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-CU6Cp-oK.mjs.map → ngx-t-forms-config-mscoa-additional-inputs.component-CAZv0_uR.mjs.map} +1 -1
  19. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dap7QkKD.mjs +253 -0
  20. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dap7QkKD.mjs.map +1 -0
  21. package/fesm2022/{ngx-t-forms-data-source-picker.component-r7OGAsxo.mjs → ngx-t-forms-data-source-picker.component-8G28L1Cg.mjs} +8 -8
  22. package/fesm2022/{ngx-t-forms-data-source-picker.component-r7OGAsxo.mjs.map → ngx-t-forms-data-source-picker.component-8G28L1Cg.mjs.map} +1 -1
  23. package/fesm2022/ngx-t-forms-data-source-picker.component-CJ1C1Znp.mjs +419 -0
  24. package/fesm2022/ngx-t-forms-data-source-picker.component-CJ1C1Znp.mjs.map +1 -0
  25. package/fesm2022/ngx-t-forms-date-picker-input-element.component-DjYq63Iv.mjs +231 -0
  26. package/fesm2022/ngx-t-forms-date-picker-input-element.component-DjYq63Iv.mjs.map +1 -0
  27. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-DsjcLQ5A.mjs → ngx-t-forms-date-picker-input-element.component-NM2cFs3P.mjs} +4 -4
  28. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-DsjcLQ5A.mjs.map → ngx-t-forms-date-picker-input-element.component-NM2cFs3P.mjs.map} +1 -1
  29. package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-B8V7IpoK.mjs → ngx-t-forms-date-range-picker-input-element.component-DhU_bhy3.mjs} +4 -4
  30. package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-B8V7IpoK.mjs.map → ngx-t-forms-date-range-picker-input-element.component-DhU_bhy3.mjs.map} +1 -1
  31. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-g0wIRj9b.mjs +333 -0
  32. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-g0wIRj9b.mjs.map +1 -0
  33. package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-hKJqVYUY.mjs → ngx-t-forms-document-list-label-config-editor.component-K-KFdCcS.mjs} +5 -5
  34. package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-hKJqVYUY.mjs.map → ngx-t-forms-document-list-label-config-editor.component-K-KFdCcS.mjs.map} +1 -1
  35. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-NuPXy_Ms.mjs +543 -0
  36. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-NuPXy_Ms.mjs.map +1 -0
  37. package/fesm2022/ngx-t-forms-document-picker.component-BSG7k3IN.mjs +1259 -0
  38. package/fesm2022/ngx-t-forms-document-picker.component-BSG7k3IN.mjs.map +1 -0
  39. package/fesm2022/ngx-t-forms-document-picker.component-ChGqXHcQ.mjs +1996 -0
  40. package/fesm2022/ngx-t-forms-document-picker.component-ChGqXHcQ.mjs.map +1 -0
  41. package/fesm2022/ngx-t-forms-editor-input-element.component-B8Pk-EVY.mjs +581 -0
  42. package/fesm2022/ngx-t-forms-editor-input-element.component-B8Pk-EVY.mjs.map +1 -0
  43. package/fesm2022/{ngx-t-forms-editor-input-element.component-D38U94oj.mjs → ngx-t-forms-editor-input-element.component-Bb7w-vNw.mjs} +138 -15
  44. package/fesm2022/ngx-t-forms-editor-input-element.component-Bb7w-vNw.mjs.map +1 -0
  45. package/fesm2022/ngx-t-forms-editor-js-input.component-DlsLiHi1.mjs +539 -0
  46. package/fesm2022/ngx-t-forms-editor-js-input.component-DlsLiHi1.mjs.map +1 -0
  47. package/fesm2022/ngx-t-forms-editor-js-input.component-XX6kU8DW.mjs +585 -0
  48. package/fesm2022/ngx-t-forms-editor-js-input.component-XX6kU8DW.mjs.map +1 -0
  49. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-_RBYRgn9.mjs → ngx-t-forms-file-upload-input-element.component-Km-qgANx.mjs} +7 -7
  50. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-_RBYRgn9.mjs.map → ngx-t-forms-file-upload-input-element.component-Km-qgANx.mjs.map} +1 -1
  51. package/fesm2022/ngx-t-forms-file-upload-input-element.component-RCmUClXv.mjs +447 -0
  52. package/fesm2022/ngx-t-forms-file-upload-input-element.component-RCmUClXv.mjs.map +1 -0
  53. package/fesm2022/ngx-t-forms-form-input-selector.component-0jfD5C0G.mjs +163 -0
  54. package/fesm2022/ngx-t-forms-form-input-selector.component-0jfD5C0G.mjs.map +1 -0
  55. package/fesm2022/{ngx-t-forms-form-input-selector.component-CUwK3DqG.mjs → ngx-t-forms-form-input-selector.component-D5KYWQ2R.mjs} +2 -2
  56. package/fesm2022/{ngx-t-forms-form-input-selector.component-CUwK3DqG.mjs.map → ngx-t-forms-form-input-selector.component-D5KYWQ2R.mjs.map} +1 -1
  57. package/fesm2022/{ngx-t-forms-form-json-view.component-D9rU9vxT.mjs → ngx-t-forms-form-json-view.component-r64GKVhI.mjs} +2 -2
  58. package/fesm2022/{ngx-t-forms-form-json-view.component-D9rU9vxT.mjs.map → ngx-t-forms-form-json-view.component-r64GKVhI.mjs.map} +1 -1
  59. package/fesm2022/ngx-t-forms-form-json-view.component-z0nQxpqB.mjs +28 -0
  60. package/fesm2022/ngx-t-forms-form-json-view.component-z0nQxpqB.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-section-stepper.component-CqCL3Bnc.mjs → ngx-t-forms-form-section-stepper.component-B3DRJ--U.mjs} +6 -6
  64. package/fesm2022/{ngx-t-forms-form-section-stepper.component-CqCL3Bnc.mjs.map → ngx-t-forms-form-section-stepper.component-B3DRJ--U.mjs.map} +1 -1
  65. package/fesm2022/ngx-t-forms-form-section-stepper.component-UUTHYU-A.mjs +936 -0
  66. package/fesm2022/ngx-t-forms-form-section-stepper.component-UUTHYU-A.mjs.map +1 -0
  67. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-wmRDJU4P.mjs → ngx-t-forms-forms-builder-menu.component-BYFynpTn.mjs} +11 -11
  68. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-wmRDJU4P.mjs.map → ngx-t-forms-forms-builder-menu.component-BYFynpTn.mjs.map} +1 -1
  69. package/fesm2022/ngx-t-forms-forms-builder-menu.component-DTIAOxGV.mjs +816 -0
  70. package/fesm2022/ngx-t-forms-forms-builder-menu.component-DTIAOxGV.mjs.map +1 -0
  71. package/fesm2022/{ngx-t-forms-geo-location.component-CMbBSXe0.mjs → ngx-t-forms-geo-location.component-D2fIbagr.mjs} +7 -7
  72. package/fesm2022/{ngx-t-forms-geo-location.component-CMbBSXe0.mjs.map → ngx-t-forms-geo-location.component-D2fIbagr.mjs.map} +1 -1
  73. package/fesm2022/ngx-t-forms-geo-location.component-DW2b5Zli.mjs +329 -0
  74. package/fesm2022/ngx-t-forms-geo-location.component-DW2b5Zli.mjs.map +1 -0
  75. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-Cbq8OYk7.mjs → ngx-t-forms-image-capture-input-element.component-BgnzErQt.mjs} +7 -7
  76. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-Cbq8OYk7.mjs.map → ngx-t-forms-image-capture-input-element.component-BgnzErQt.mjs.map} +1 -1
  77. package/fesm2022/ngx-t-forms-image-capture-input-element.component-Us_NAQSl.mjs +360 -0
  78. package/fesm2022/ngx-t-forms-image-capture-input-element.component-Us_NAQSl.mjs.map +1 -0
  79. package/fesm2022/{ngx-t-forms-index-CPNvE4PP.mjs → ngx-t-forms-index-6YIhS6cm.mjs} +2 -2
  80. package/fesm2022/ngx-t-forms-index-6YIhS6cm.mjs.map +1 -0
  81. package/fesm2022/ngx-t-forms-index-BPNBX_ve.mjs +2 -0
  82. package/fesm2022/ngx-t-forms-index-BPNBX_ve.mjs.map +1 -0
  83. package/fesm2022/ngx-t-forms-input-custom.component-DQOqy047.mjs +128 -0
  84. package/fesm2022/ngx-t-forms-input-custom.component-DQOqy047.mjs.map +1 -0
  85. package/fesm2022/{ngx-t-forms-input-custom.component-uNVdF9aA.mjs → ngx-t-forms-input-custom.component-Dcoze7U3.mjs} +2 -2
  86. package/fesm2022/{ngx-t-forms-input-custom.component-uNVdF9aA.mjs.map → ngx-t-forms-input-custom.component-Dcoze7U3.mjs.map} +1 -1
  87. package/fesm2022/ngx-t-forms-input-editor.component-3fRj5swF.mjs +512 -0
  88. package/fesm2022/ngx-t-forms-input-editor.component-3fRj5swF.mjs.map +1 -0
  89. package/fesm2022/{ngx-t-forms-input-editor.component-BWoKhlI3.mjs → ngx-t-forms-input-editor.component-B6UKwV4i.mjs} +7 -7
  90. package/fesm2022/{ngx-t-forms-input-editor.component-BWoKhlI3.mjs.map → ngx-t-forms-input-editor.component-B6UKwV4i.mjs.map} +1 -1
  91. package/fesm2022/{ngx-t-forms-map-mat-options-keys-D0SGS9xQ.mjs → ngx-t-forms-map-mat-options-keys-BsfvYiEU.mjs} +2 -2
  92. package/fesm2022/{ngx-t-forms-map-mat-options-keys-D0SGS9xQ.mjs.map → ngx-t-forms-map-mat-options-keys-BsfvYiEU.mjs.map} +1 -1
  93. package/fesm2022/ngx-t-forms-map-mat-options-keys-eSc99wdA.mjs +132 -0
  94. package/fesm2022/ngx-t-forms-map-mat-options-keys-eSc99wdA.mjs.map +1 -0
  95. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CN17K5q6.mjs +268 -0
  96. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CN17K5q6.mjs.map +1 -0
  97. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CYtTBtyf.mjs +167 -0
  98. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CYtTBtyf.mjs.map +1 -0
  99. package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs +241 -0
  100. package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs.map +1 -0
  101. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs +180 -0
  102. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs.map +1 -0
  103. package/fesm2022/ngx-t-forms-missing-form-configs.component-AaDfeALs.mjs +114 -0
  104. package/fesm2022/ngx-t-forms-missing-form-configs.component-AaDfeALs.mjs.map +1 -0
  105. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CxF6Ljjf.mjs → ngx-t-forms-missing-form-configs.component-CEa8ZNKA.mjs} +4 -4
  106. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CxF6Ljjf.mjs.map → ngx-t-forms-missing-form-configs.component-CEa8ZNKA.mjs.map} +1 -1
  107. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-D0igUV3W.mjs +69 -0
  108. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-D0igUV3W.mjs.map +1 -0
  109. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-BqT5Z8SM.mjs → ngx-t-forms-mscoa-chart-toolbar.component-DklkxNgg.mjs} +4 -4
  110. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-BqT5Z8SM.mjs.map → ngx-t-forms-mscoa-chart-toolbar.component-DklkxNgg.mjs.map} +1 -1
  111. package/fesm2022/{ngx-t-forms-mscoa-error-display.component-99DpVSy7.mjs → ngx-t-forms-mscoa-error-display.component-BDPi6w2E.mjs} +3 -3
  112. package/fesm2022/{ngx-t-forms-mscoa-error-display.component-99DpVSy7.mjs.map → ngx-t-forms-mscoa-error-display.component-BDPi6w2E.mjs.map} +1 -1
  113. package/fesm2022/ngx-t-forms-mscoa-error-display.component-rzl-fMmd.mjs +200 -0
  114. package/fesm2022/ngx-t-forms-mscoa-error-display.component-rzl-fMmd.mjs.map +1 -0
  115. package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-BT-dM_5C.mjs → ngx-t-forms-mscoa-segment-config.component-2SspNWtF.mjs} +7 -7
  116. package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-BT-dM_5C.mjs.map → ngx-t-forms-mscoa-segment-config.component-2SspNWtF.mjs.map} +1 -1
  117. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CSGf4XeN.mjs +850 -0
  118. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CSGf4XeN.mjs.map +1 -0
  119. package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-CBuGHwnU.mjs +107 -0
  120. package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-CBuGHwnU.mjs.map +1 -0
  121. package/fesm2022/{ngx-t-forms-mscoa-temporary-hint.component-B1Z-IXSL.mjs → ngx-t-forms-mscoa-temporary-hint.component-g7DosiVb.mjs} +3 -3
  122. package/fesm2022/{ngx-t-forms-mscoa-temporary-hint.component-B1Z-IXSL.mjs.map → ngx-t-forms-mscoa-temporary-hint.component-g7DosiVb.mjs.map} +1 -1
  123. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CbQdnVgw.mjs +1665 -0
  124. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CbQdnVgw.mjs.map +1 -0
  125. package/fesm2022/{ngx-t-forms-multiple-input-input-element.component-DXAh2Mbm.mjs → ngx-t-forms-multiple-input-input-element.component-dmRIi9ph.mjs} +13 -13
  126. package/fesm2022/{ngx-t-forms-multiple-input-input-element.component-DXAh2Mbm.mjs.map → ngx-t-forms-multiple-input-input-element.component-dmRIi9ph.mjs.map} +1 -1
  127. package/fesm2022/{ngx-t-forms-ngx-t-forms-DQ_h-jPF.mjs → ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs} +826 -120
  128. package/fesm2022/ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs.map +1 -0
  129. package/fesm2022/ngx-t-forms-ngx-t-forms-BefvSS-p.mjs +28237 -0
  130. package/fesm2022/ngx-t-forms-ngx-t-forms-BefvSS-p.mjs.map +1 -0
  131. package/fesm2022/ngx-t-forms-paginated-selection-table-BGNxI2yq.mjs +1024 -0
  132. package/fesm2022/ngx-t-forms-paginated-selection-table-BGNxI2yq.mjs.map +1 -0
  133. package/fesm2022/{ngx-t-forms-paginated-selection-table-DHwojPhn.mjs → ngx-t-forms-paginated-selection-table-DrXB22iY.mjs} +8 -8
  134. package/fesm2022/{ngx-t-forms-paginated-selection-table-DHwojPhn.mjs.map → ngx-t-forms-paginated-selection-table-DrXB22iY.mjs.map} +1 -1
  135. package/fesm2022/{ngx-t-forms-payload-template-editor.component-CAXdFu4E.mjs → ngx-t-forms-payload-template-editor.component-DL4ZTTsH.mjs} +2 -2
  136. package/fesm2022/{ngx-t-forms-payload-template-editor.component-CAXdFu4E.mjs.map → ngx-t-forms-payload-template-editor.component-DL4ZTTsH.mjs.map} +1 -1
  137. package/fesm2022/ngx-t-forms-payload-template-editor.component-o3qwpvYu.mjs +234 -0
  138. package/fesm2022/ngx-t-forms-payload-template-editor.component-o3qwpvYu.mjs.map +1 -0
  139. package/fesm2022/ngx-t-forms-pipeline-generator.component-BqtdKcN2.mjs +1126 -0
  140. package/fesm2022/ngx-t-forms-pipeline-generator.component-BqtdKcN2.mjs.map +1 -0
  141. package/fesm2022/{ngx-t-forms-pipeline-generator.component-BJQ-KnmU.mjs → ngx-t-forms-pipeline-generator.component-DcZPv8-N.mjs} +11 -11
  142. package/fesm2022/{ngx-t-forms-pipeline-generator.component-BJQ-KnmU.mjs.map → ngx-t-forms-pipeline-generator.component-DcZPv8-N.mjs.map} +1 -1
  143. package/fesm2022/ngx-t-forms-record-list-manager.component-BcANl5Bq.mjs +639 -0
  144. package/fesm2022/ngx-t-forms-record-list-manager.component-BcANl5Bq.mjs.map +1 -0
  145. package/fesm2022/ngx-t-forms-record-list-manager.component-l-2uDVmi.mjs +446 -0
  146. package/fesm2022/ngx-t-forms-record-list-manager.component-l-2uDVmi.mjs.map +1 -0
  147. package/fesm2022/{ngx-t-forms-required-inputs.component-C-E3fQu6.mjs → ngx-t-forms-required-inputs.component-BMmNxeE-.mjs} +6 -6
  148. package/fesm2022/{ngx-t-forms-required-inputs.component-C-E3fQu6.mjs.map → ngx-t-forms-required-inputs.component-BMmNxeE-.mjs.map} +1 -1
  149. package/fesm2022/ngx-t-forms-required-inputs.component-Dr0P1gin.mjs +451 -0
  150. package/fesm2022/ngx-t-forms-required-inputs.component-Dr0P1gin.mjs.map +1 -0
  151. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BSv_KQIU.mjs +625 -0
  152. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BSv_KQIU.mjs.map +1 -0
  153. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-D3sa7sNg.mjs → ngx-t-forms-rest-api-call-setup.component-C3sNmq_H.mjs} +5 -5
  154. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-D3sa7sNg.mjs.map → ngx-t-forms-rest-api-call-setup.component-C3sNmq_H.mjs.map} +1 -1
  155. package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs +72 -0
  156. package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs.map +1 -0
  157. package/fesm2022/{ngx-t-forms-section-report.component-D6jakGa5.mjs → ngx-t-forms-section-report.component-BYMcaRE5.mjs} +4 -4
  158. package/fesm2022/{ngx-t-forms-section-report.component-D6jakGa5.mjs.map → ngx-t-forms-section-report.component-BYMcaRE5.mjs.map} +1 -1
  159. package/fesm2022/ngx-t-forms-section-report.component-yGAjX7Gb.mjs +248 -0
  160. package/fesm2022/ngx-t-forms-section-report.component-yGAjX7Gb.mjs.map +1 -0
  161. package/fesm2022/ngx-t-forms-select-input-element.component-BqtJi4ek.mjs +408 -0
  162. package/fesm2022/ngx-t-forms-select-input-element.component-BqtJi4ek.mjs.map +1 -0
  163. package/fesm2022/{ngx-t-forms-select-input-element.component-CwqIck0h.mjs → ngx-t-forms-select-input-element.component-Nsa3dpvV.mjs} +8 -8
  164. package/fesm2022/{ngx-t-forms-select-input-element.component-CwqIck0h.mjs.map → ngx-t-forms-select-input-element.component-Nsa3dpvV.mjs.map} +1 -1
  165. package/fesm2022/{ngx-t-forms-selection-options-editor.component-Coj9gnrq.mjs → ngx-t-forms-selection-options-editor.component-BuXVzo7Z.mjs} +6 -6
  166. package/fesm2022/{ngx-t-forms-selection-options-editor.component-Coj9gnrq.mjs.map → ngx-t-forms-selection-options-editor.component-BuXVzo7Z.mjs.map} +1 -1
  167. package/fesm2022/ngx-t-forms-selection-options-editor.component-_glw1cqH.mjs +275 -0
  168. package/fesm2022/ngx-t-forms-selection-options-editor.component-_glw1cqH.mjs.map +1 -0
  169. package/fesm2022/ngx-t-forms-t-workflow-picker.component-CLgN3YM4.mjs +366 -0
  170. package/fesm2022/ngx-t-forms-t-workflow-picker.component-CLgN3YM4.mjs.map +1 -0
  171. package/fesm2022/ngx-t-forms-t-workflow-picker.component-DAwP-cWK.mjs +263 -0
  172. package/fesm2022/ngx-t-forms-t-workflow-picker.component-DAwP-cWK.mjs.map +1 -0
  173. package/fesm2022/{ngx-t-forms-textarea-input-element.component-D4dEi8Vs.mjs → ngx-t-forms-textarea-input-element.component-DPxUzkAu.mjs} +4 -4
  174. package/fesm2022/{ngx-t-forms-textarea-input-element.component-D4dEi8Vs.mjs.map → ngx-t-forms-textarea-input-element.component-DPxUzkAu.mjs.map} +1 -1
  175. package/fesm2022/ngx-t-forms-textarea-input-element.component-SCEBLqJd.mjs +233 -0
  176. package/fesm2022/ngx-t-forms-textarea-input-element.component-SCEBLqJd.mjs.map +1 -0
  177. package/fesm2022/ngx-t-forms-toggle-input-element.component-CoyTMRMa.mjs +305 -0
  178. package/fesm2022/ngx-t-forms-toggle-input-element.component-CoyTMRMa.mjs.map +1 -0
  179. package/fesm2022/{ngx-t-forms-toggle-input-element.component-BZiTFB0j.mjs → ngx-t-forms-toggle-input-element.component-OZre5TJ7.mjs} +4 -4
  180. package/fesm2022/{ngx-t-forms-toggle-input-element.component-BZiTFB0j.mjs.map → ngx-t-forms-toggle-input-element.component-OZre5TJ7.mjs.map} +1 -1
  181. package/fesm2022/ngx-t-forms-validators-config.component-B1Lzs7o2.mjs +1105 -0
  182. package/fesm2022/ngx-t-forms-validators-config.component-B1Lzs7o2.mjs.map +1 -0
  183. package/fesm2022/{ngx-t-forms-validators-config.component-B3K9nLxx.mjs → ngx-t-forms-validators-config.component-CoGSFor3.mjs} +5 -5
  184. package/fesm2022/{ngx-t-forms-validators-config.component-B3K9nLxx.mjs.map → ngx-t-forms-validators-config.component-CoGSFor3.mjs.map} +1 -1
  185. package/fesm2022/ngx-t-forms-workflow-adjudication.component-Bz07jv-N.mjs +2923 -0
  186. package/fesm2022/ngx-t-forms-workflow-adjudication.component-Bz07jv-N.mjs.map +1 -0
  187. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-DD6Fhx06.mjs → ngx-t-forms-workflow-adjudication.component-CrDZg3Nl.mjs} +17 -17
  188. package/fesm2022/ngx-t-forms-workflow-adjudication.component-CrDZg3Nl.mjs.map +1 -0
  189. package/fesm2022/ngx-t-forms.mjs +1 -1
  190. package/package.json +2 -2
  191. package/types/ngx-t-forms.d.ts +7 -0
  192. package/fesm2022/ngx-t-forms-document-picker.component-f-hz6Vef.mjs +0 -704
  193. package/fesm2022/ngx-t-forms-document-picker.component-f-hz6Vef.mjs.map +0 -1
  194. package/fesm2022/ngx-t-forms-editor-input-element.component-D38U94oj.mjs.map +0 -1
  195. package/fesm2022/ngx-t-forms-editor-js-input.component-D_Jq7sfY.mjs +0 -240
  196. package/fesm2022/ngx-t-forms-editor-js-input.component-D_Jq7sfY.mjs.map +0 -1
  197. package/fesm2022/ngx-t-forms-index-CPNvE4PP.mjs.map +0 -1
  198. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-Cu-KiAeY.mjs +0 -66
  199. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-Cu-KiAeY.mjs.map +0 -1
  200. package/fesm2022/ngx-t-forms-ngx-t-forms-DQ_h-jPF.mjs.map +0 -1
  201. package/fesm2022/ngx-t-forms-record-list-manager.component-BoD3S_7u.mjs +0 -358
  202. package/fesm2022/ngx-t-forms-record-list-manager.component-BoD3S_7u.mjs.map +0 -1
  203. package/fesm2022/ngx-t-forms-t-workflow-picker.component-DqFMP1rZ.mjs +0 -204
  204. package/fesm2022/ngx-t-forms-t-workflow-picker.component-DqFMP1rZ.mjs.map +0 -1
  205. package/fesm2022/ngx-t-forms-workflow-adjudication.component-DD6Fhx06.mjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-t-forms-map-mat-options-keys-eSc99wdA.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/map-mat-options-keys/map-mat-options-keys.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/map-mat-options-keys/map-mat-options-keys.html"],"sourcesContent":["import {\r\n ChangeDetectionStrategy,\r\n Component,\r\n ElementRef,\r\n Input,\r\n OnDestroy,\r\n Optional,\r\n Self,\r\n output,\r\n} from '@angular/core';\r\nimport { NgControl } from '@angular/forms';\r\nimport { MatFormFieldControl } from '@angular/material/form-field';\r\nimport { Subject } from 'rxjs';\r\nimport { IConfigElementError } from '../../t-dynamic-data-edit.component';\r\nimport { FormColumnInputs, TreeNode } from 'ngx-t-forms-types';\r\nimport { DataTreeComponent } from '../api-value-access-rules/elements/data-tree/data-tree.component';\r\nimport { CommonModule } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'lib-map-mat-options-keys',\r\n imports: [DataTreeComponent,CommonModule],\r\n providers: [{ provide: MatFormFieldControl, useExisting: MapMatOptionsKeys }],\r\n standalone: true,\r\n templateUrl: './map-mat-options-keys.html',\r\n styleUrl: './map-mat-options-keys.css',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n host: {\r\n '[id]': 'id',\r\n },\r\n})\r\nexport class MapMatOptionsKeys implements MatFormFieldControl<TreeNode[] | string | null>, OnDestroy {\r\n static nextId = 0;\r\n private _mapToData: unknown;\r\n // -- MatFormFieldControl Boilerplate --\r\n stateChanges = new Subject<void>();\r\n id = `lib-map-mat-options-keys-${MapMatOptionsKeys.nextId++}`;\r\n placeholder = '';\r\n focused = false;\r\n touched = false;\r\n controlType?: string | undefined;\r\n autofilled?: boolean | undefined;\r\n userAriaDescribedBy?: string | undefined;\r\n disableAutomaticLabeling?: boolean | undefined;\r\n required = false;\r\n\r\n // -- Inputs --\r\n @Input() disabled = false;\r\n @Input() errors: IConfigElementError[] | undefined = [];\r\n @Input() value: TreeNode[] | string | null = null;\r\n @Input() formInputs: FormColumnInputs[] = [];\r\n @Input() set mapToData(value: unknown){\r\n this._mapToData = value;\r\n console.error('mapToData changed', value);\r\n };\r\n get mapToData(): unknown {\r\n return this._mapToData;\r\n }\r\n\r\n // -- Outputs --\r\n readonly valueChanged = output<TreeNode[] | string | null>();\r\n\r\n constructor(\r\n @Optional() @Self() public ngControl: NgControl,\r\n private _elementRef: ElementRef<HTMLElement>\r\n ) {\r\n if (this.ngControl) {\r\n this.ngControl.valueAccessor = this;\r\n }\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.stateChanges.complete();\r\n }\r\n\r\n // -- Getters for Template --\r\n get empty(): boolean {\r\n if (this.value == null) return true;\r\n if (typeof this.value === 'string') return this.value === '';\r\n return Array.isArray(this.value) && this.value.length === 0;\r\n }\r\n\r\n get shouldLabelFloat(): boolean {\r\n return this.focused || !this.empty;\r\n }\r\n\r\n get errorState(): boolean {\r\n const hasError =\r\n !!this.ngControl?.control?.errors ||\r\n ((this.errors?.length ?? 0) > 0 && this.touched);\r\n return (!this.value && !!this.required) || hasError;\r\n }\r\n\r\n // -- MatFormFieldControl Methods --\r\n setDescribedByIds(ids: string[]): void {\r\n if (this._elementRef?.nativeElement) {\r\n const controlElement = this._elementRef.nativeElement.querySelector(\r\n '.lib-map-mat-options-keys'\r\n );\r\n if (controlElement) {\r\n controlElement.setAttribute('aria-describedby', ids.join(' '));\r\n }\r\n }\r\n }\r\n\r\n onContainerClick(_event: MouseEvent): void {\r\n this.markAsTouched();\r\n this.stateChanges.next();\r\n }\r\n\r\n onTouched = (): void => { };\r\n\r\n markAsTouched(): void {\r\n if (!this.touched) {\r\n this.onTouched();\r\n this.touched = true;\r\n }\r\n }\r\n\r\n // -- ControlValueAccessor --\r\n writeValue(value: TreeNode[] | string | null): void {\r\n this.value = value;\r\n this.stateChanges.next();\r\n }\r\n\r\n registerOnChange(_fn: (value: TreeNode[] | string | null) => void): void {\r\n // Handled by parent or ngControl usually, but good practice to have stub\r\n }\r\n\r\n registerOnTouched(fn: () => void): void {\r\n this.onTouched = fn;\r\n }\r\n\r\n pathChanged(path: TreeNode[] | string): void {\r\n if (!Array.isArray(path) && typeof path !== 'string') return;\r\n this.value = path;\r\n this.valueChanged.emit(path);\r\n this.stateChanges.next();\r\n }\r\n\r\n \r\n}\r\n","<div class=\"lib-map-mat-options-keys\">\r\n <lib-data-tree\r\n [data]=\"mapToData\"\r\n [value]=\"value || ''\"\r\n [formInputs]=\"formInputs\"\r\n (pathChanged)=\"pathChanged($event)\">\r\n </lib-data-tree>\r\n</div>\r\n"],"names":[],"mappings":";;;;;;;;MA8Ba,iBAAiB,CAAA;aACrB,IAAA,CAAA,MAAM,GAAG,CAAH,CAAK;IAmBlB,IAAa,SAAS,CAAC,KAAc,EAAA;AACnC,QAAA,IAAI,CAAC,UAAU,GAAG,KAAK;AACvB,QAAA,OAAO,CAAC,KAAK,CAAC,mBAAmB,EAAE,KAAK,CAAC;IAC3C;;AACA,IAAA,IAAI,SAAS,GAAA;QACX,OAAO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AA,MAAA,EAAA,EAAA,OAAe,uBAAmB,CAAA,CAAA,CAAA,CAAC;AAEvC,YADE,iBAAgB,EACZ;;YALF,EAAA,CAAA,SAAA,EAAkB;YAAlB,EAAA,CAAA,UAAA,CAAA,MAAA,EAAA,GAAA,CAAA,SAAA,CAAkB,CAAA,OAAA,EAAA,GAAA,CAAA,KAAA,IAAA,EAAA,CACG,CAAA,YAAA,EAAA,GAAA,CAAA,UAAA,CACI;ADgBjB,QAAA,CAAA,CAAA,CAAA,EAAA,YAAA,EAAA,CAAA,iBAAiB,EAAC,YAAY,CAAA,EAAA,MAAA,EAAA,CAAA,6OAAA,CAAA,EAAA,eAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;iFAU7B,iBAAiB,EAAA,CAAA;cAZ7B,SAAS;2BACE,0BAA0B,EAAA,OAAA,EAC3B,CAAC,iBAAiB,EAAC,YAAY,CAAC,EAAA,SAAA,EAC9B,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAA,iBAAmB,EAAE,CAAC,EAAA,UAAA,EACjE,IAAI,EAAA,eAAA,EAGC,uBAAuB,CAAC,MAAM,EAAA,IAAA,EACzC;AACJ,oBAAA,MAAM,EAAE,IAAI;AACb,iBAAA,EAAA,QAAA,EAAA,8OAAA,EAAA,MAAA,EAAA,CAAA,sLAAA,CAAA,EAAA;;sBAkCE;;sBAAY;;kBAhBd;;kBACA;;kBACA;;kBACA;;kBACA;;kFApBU,iBAAiB,EAAA,EAAA,SAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,0FAAA,EAAA,UAAA,EAAA,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA,GAAA;;;;"}
@@ -0,0 +1,268 @@
1
+ import * as i0 from '@angular/core';
2
+ import { signal, input, output, computed, linkedSignal, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import * as i4 from '@angular/material/chips';
4
+ import { MatChipsModule } from '@angular/material/chips';
5
+ import { S as SearchFieldComponent } from './ngx-t-forms-search-field.component-BGdAmzJV.mjs';
6
+ import { E as EmptyStateComponent } from './ngx-t-forms-ngx-t-forms-BefvSS-p.mjs';
7
+
8
+ const _c0 = () => [];
9
+ const _forTrack0 = ($index, $item) => $item.key;
10
+ const _forTrack1 = ($index, $item) => $item.value + "-" + $index;
11
+ function MatChipListEditorComponent_Conditional_1_For_2_Conditional_1_Conditional_4_Template(rf, ctx) { if (rf & 1) {
12
+ i0.ɵɵelement(0, "span", 10);
13
+ } }
14
+ function MatChipListEditorComponent_Conditional_1_For_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
15
+ const _r3 = i0.ɵɵgetCurrentView();
16
+ i0.ɵɵelementStart(0, "button", 7);
17
+ i0.ɵɵlistener("click", function MatChipListEditorComponent_Conditional_1_For_2_Conditional_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r3); const group_r4 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.toggleGroup(group_r4.key)); });
18
+ i0.ɵɵelement(1, "span", 8);
19
+ i0.ɵɵelementStart(2, "span", 9);
20
+ i0.ɵɵtext(3);
21
+ i0.ɵɵelementEnd();
22
+ i0.ɵɵconditionalCreate(4, MatChipListEditorComponent_Conditional_1_For_2_Conditional_1_Conditional_4_Template, 1, 0, "span", 10);
23
+ i0.ɵɵelementStart(5, "span", 11);
24
+ i0.ɵɵtext(6);
25
+ i0.ɵɵelementEnd()();
26
+ } if (rf & 2) {
27
+ const ctx_r4 = i0.ɵɵnextContext();
28
+ const group_r4 = ctx_r4.$implicit;
29
+ const ɵ$index_6_r6 = ctx_r4.$index;
30
+ const ctx_r1 = i0.ɵɵnextContext(2);
31
+ i0.ɵɵattribute("aria-expanded", group_r4.expanded)("aria-controls", ctx_r1.hostId() + "-group-" + ɵ$index_6_r6)("aria-label", group_r4.toggleLabel);
32
+ i0.ɵɵadvance();
33
+ i0.ɵɵclassProp("lib-mat-chip-list-editor__chevron--open", group_r4.expanded);
34
+ i0.ɵɵadvance(2);
35
+ i0.ɵɵtextInterpolate(group_r4.label);
36
+ i0.ɵɵadvance();
37
+ i0.ɵɵconditional(group_r4.selectedCount ? 4 : -1);
38
+ i0.ɵɵadvance(2);
39
+ i0.ɵɵtextInterpolate1(" ", group_r4.options.length, " ");
40
+ } }
41
+ function MatChipListEditorComponent_Conditional_1_For_2_Conditional_2_For_2_Template(rf, ctx) { if (rf & 1) {
42
+ i0.ɵɵelementStart(0, "mat-chip-option", 13);
43
+ i0.ɵɵtext(1);
44
+ i0.ɵɵelementEnd();
45
+ } if (rf & 2) {
46
+ const option_r7 = ctx.$implicit;
47
+ i0.ɵɵproperty("value", option_r7.value);
48
+ i0.ɵɵadvance();
49
+ i0.ɵɵtextInterpolate(option_r7.label);
50
+ } }
51
+ function MatChipListEditorComponent_Conditional_1_For_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
52
+ i0.ɵɵelementStart(0, "div", 12);
53
+ i0.ɵɵrepeaterCreate(1, MatChipListEditorComponent_Conditional_1_For_2_Conditional_2_For_2_Template, 2, 2, "mat-chip-option", 13, _forTrack1);
54
+ i0.ɵɵelementEnd();
55
+ } if (rf & 2) {
56
+ const ctx_r4 = i0.ɵɵnextContext();
57
+ const group_r4 = ctx_r4.$implicit;
58
+ const ɵ$index_6_r6 = ctx_r4.$index;
59
+ const ctx_r1 = i0.ɵɵnextContext(2);
60
+ i0.ɵɵclassProp("lib-mat-chip-list-editor__group-body--indented", group_r4.collapsible);
61
+ i0.ɵɵproperty("id", ctx_r1.hostId() + "-group-" + ɵ$index_6_r6);
62
+ i0.ɵɵadvance();
63
+ i0.ɵɵrepeater(group_r4.options);
64
+ } }
65
+ function MatChipListEditorComponent_Conditional_1_For_2_Template(rf, ctx) { if (rf & 1) {
66
+ i0.ɵɵelementStart(0, "div", 4);
67
+ i0.ɵɵconditionalCreate(1, MatChipListEditorComponent_Conditional_1_For_2_Conditional_1_Template, 7, 8, "button", 5);
68
+ i0.ɵɵconditionalCreate(2, MatChipListEditorComponent_Conditional_1_For_2_Conditional_2_Template, 3, 3, "div", 6);
69
+ i0.ɵɵelementEnd();
70
+ } if (rf & 2) {
71
+ const group_r4 = ctx.$implicit;
72
+ i0.ɵɵattribute("role", group_r4.collapsible ? "group" : "presentation")("aria-label", group_r4.label || null);
73
+ i0.ɵɵadvance();
74
+ i0.ɵɵconditional(group_r4.collapsible ? 1 : -1);
75
+ i0.ɵɵadvance();
76
+ i0.ɵɵconditional(group_r4.expanded ? 2 : -1);
77
+ } }
78
+ function MatChipListEditorComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
79
+ const _r1 = i0.ɵɵgetCurrentView();
80
+ i0.ɵɵelementStart(0, "mat-chip-listbox", 3);
81
+ i0.ɵɵlistener("change", function MatChipListEditorComponent_Conditional_1_Template_mat_chip_listbox_change_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.valueListChanged($event)); });
82
+ i0.ɵɵrepeaterCreate(1, MatChipListEditorComponent_Conditional_1_For_2_Template, 3, 4, "div", 4, _forTrack0);
83
+ i0.ɵɵelementEnd();
84
+ } if (rf & 2) {
85
+ const ctx_r1 = i0.ɵɵnextContext();
86
+ i0.ɵɵproperty("multiple", ctx_r1.multiple())("value", ctx_r1.value())("disabled", ctx_r1.disabled());
87
+ i0.ɵɵadvance();
88
+ i0.ɵɵrepeater(ctx_r1.renderedGroups());
89
+ } }
90
+ function MatChipListEditorComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
91
+ i0.ɵɵelement(0, "lib-empty-state", 2);
92
+ } if (rf & 2) {
93
+ const ctx_r1 = i0.ɵɵnextContext();
94
+ i0.ɵɵproperty("message", (ctx_r1.options() || i0.ɵɵpureFunction0(1, _c0)).length ? "No options match your search" : "No options available");
95
+ } }
96
+ /**
97
+ * Joins group keys into a single primitive for the collapse-state source. A
98
+ * control character, so it can never collide with a real group label.
99
+ */
100
+ const GROUP_KEY_SEPARATOR = '\u0000';
101
+ /**
102
+ * Chip-select editor: a searchable {@link MatChipsModule} listbox over a set of
103
+ * options, single- or multi-select. Renders inside `t-dynamic-data-edit`, which
104
+ * supplies the field label, hint, and validation errors — so this component owns
105
+ * only the search + chip content.
106
+ *
107
+ * Options carrying a `group` key are gathered under a collapsible heading for
108
+ * that key — the first group open, the rest closed. Options without a group stay
109
+ * at the top level, headless and always visible, so a set with no groups at all
110
+ * renders exactly as it did before grouping existed.
111
+ *
112
+ * Grouping is presentational only: the chips remain a single listbox, so
113
+ * single/multi-select and the emitted value are unchanged.
114
+ */
115
+ class MatChipListEditorComponent {
116
+ constructor() {
117
+ this.hostId = signal(`lib-mat-chip-list-editor-${MatChipListEditorComponent.nextId++}`, ...(ngDevMode ? [{ debugName: "hostId" }] : /* istanbul ignore next */ []));
118
+ this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
119
+ this.multiple = input(false, ...(ngDevMode ? [{ debugName: "multiple" }] : /* istanbul ignore next */ []));
120
+ this.required = input(false, ...(ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []));
121
+ this.errors = input([], ...(ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []));
122
+ // Internal `any` retained — wrapper templates bind heterogeneous value types
123
+ // (DataSources, string[], etc.); narrowing here would force wrapper changes.
124
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- wrappers bind heterogeneous chip-value payloads (DataSources, string[]).
125
+ this.value = input(undefined, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
126
+ this.options = input([], ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
127
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- emits whatever shape `value` was bound to; narrows once wrappers tighten.
128
+ this.valueChange = output();
129
+ /** Free-text search term (two-way bound to the search field). */
130
+ this.search = signal('', ...(ngDevMode ? [{ debugName: "search" }] : /* istanbul ignore next */ []));
131
+ /**
132
+ * Options matching the search term. Matches the visible label, the group, and
133
+ * a string value (the same reachable-string-leaf semantics the old
134
+ * `searchList` pipe applied, minus its now-removed nested-object scan).
135
+ */
136
+ this.filteredOptions = computed(() => {
137
+ const term = this.search().trim().toLowerCase();
138
+ const all = this.options() ?? [];
139
+ if (!term)
140
+ return all;
141
+ return all.filter((option) => {
142
+ const haystacks = [
143
+ option.label,
144
+ option.group,
145
+ typeof option.value === 'string' ? option.value : undefined,
146
+ ];
147
+ return haystacks.some((text) => typeof text === 'string' && text.toLowerCase().includes(term));
148
+ });
149
+ }, ...(ngDevMode ? [{ debugName: "filteredOptions" }] : /* istanbul ignore next */ []));
150
+ /**
151
+ * The matching options gathered into groups. Options sharing a `group` key end
152
+ * up in the same run even when they are not adjacent in the source list, and
153
+ * groups keep the order in which they first appear — so the ungrouped run sits
154
+ * where its first option was, rather than being relabelled or pushed to the end.
155
+ */
156
+ this.groupedOptions = computed(() => this.#group(this.filteredOptions()), ...(ngDevMode ? [{ debugName: "groupedOptions" }] : /* istanbul ignore next */ []));
157
+ /**
158
+ * Labelled group keys of the *unfiltered* set, joined into one primitive so the
159
+ * collapse state below only resets when the option set itself changes — not on
160
+ * every keystroke in the search box.
161
+ */
162
+ this.#groupSignature = computed(() => this.#group(this.options() ?? [])
163
+ .filter((group) => group.label)
164
+ .map((group) => group.key)
165
+ .join(GROUP_KEY_SEPARATOR), ...(ngDevMode ? [{ debugName: "#groupSignature" }] : /* istanbul ignore next */ []));
166
+ /**
167
+ * Expanded group keys. Defaults to the first labelled group — the rest start
168
+ * closed — and stays user-controlled until the option set changes.
169
+ */
170
+ this.expandedKeys = linkedSignal({ ...(ngDevMode ? { debugName: "expandedKeys" } : /* istanbul ignore next */ {}), source: this.#groupSignature,
171
+ computation: (signature) => new Set(signature ? signature.split(GROUP_KEY_SEPARATOR).slice(0, 1) : []) });
172
+ /** Selected values, normalised across the single- and multi-select shapes. */
173
+ this.#selectedValues = computed(() => {
174
+ const value = this.value();
175
+ if (Array.isArray(value)) {
176
+ return value;
177
+ }
178
+ return value === undefined || value === null || value === '' ? [] : [value];
179
+ }, ...(ngDevMode ? [{ debugName: "#selectedValues" }] : /* istanbul ignore next */ []));
180
+ /**
181
+ * What the template renders. A headless run is always open, and a search query
182
+ * opens every group — matches must never hide behind a collapsed heading.
183
+ */
184
+ this.renderedGroups = computed(() => {
185
+ const expandedKeys = this.expandedKeys();
186
+ const searching = this.search().trim().length > 0;
187
+ const selectedValues = this.#selectedValues();
188
+ return this.groupedOptions().map((group) => {
189
+ const collapsible = group.label !== '';
190
+ const selectedCount = group.options.filter((option) => selectedValues.includes(option.value)).length;
191
+ const selectedLabel = selectedCount ? `, ${selectedCount} selected` : '';
192
+ return {
193
+ ...group,
194
+ collapsible,
195
+ expanded: !collapsible || searching || expandedKeys.has(group.key),
196
+ selectedCount,
197
+ toggleLabel: `${group.label}, ${group.options.length} options${selectedLabel}`,
198
+ };
199
+ });
200
+ }, ...(ngDevMode ? [{ debugName: "renderedGroups" }] : /* istanbul ignore next */ []));
201
+ }
202
+ static { this.nextId = 0; }
203
+ /**
204
+ * Labelled group keys of the *unfiltered* set, joined into one primitive so the
205
+ * collapse state below only resets when the option set itself changes — not on
206
+ * every keystroke in the search box.
207
+ */
208
+ #groupSignature;
209
+ /** Selected values, normalised across the single- and multi-select shapes. */
210
+ #selectedValues;
211
+ /** Open or close one group. Headless runs never reach this — they have no toggle. */
212
+ toggleGroup(key) {
213
+ this.expandedKeys.update((keys) => {
214
+ const next = new Set(keys);
215
+ if (!next.delete(key)) {
216
+ next.add(key);
217
+ }
218
+ return next;
219
+ });
220
+ }
221
+ valueListChanged($event) {
222
+ this.valueChange.emit($event.value);
223
+ }
224
+ /** Buckets options by `group`, preserving first-appearance order of both. */
225
+ #group(options) {
226
+ const byGroup = new Map();
227
+ for (const option of options) {
228
+ const label = option.group?.trim() ?? '';
229
+ const run = byGroup.get(label);
230
+ if (run) {
231
+ run.push(option);
232
+ }
233
+ else {
234
+ byGroup.set(label, [option]);
235
+ }
236
+ }
237
+ return [...byGroup].map(([label, grouped]) => ({
238
+ key: label || '__ungrouped',
239
+ label,
240
+ options: grouped,
241
+ }));
242
+ }
243
+ static { this.ɵfac = function MatChipListEditorComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MatChipListEditorComponent)(); }; }
244
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MatChipListEditorComponent, selectors: [["lib-mat-chip-list-editor"]], hostAttrs: [1, "lib-mat-chip-list-editor"], hostVars: 1, hostBindings: function MatChipListEditorComponent_HostBindings(rf, ctx) { if (rf & 2) {
245
+ i0.ɵɵdomProperty("id", ctx.hostId());
246
+ } }, inputs: { disabled: [1, "disabled"], multiple: [1, "multiple"], required: [1, "required"], errors: [1, "errors"], value: [1, "value"], options: [1, "options"] }, outputs: { valueChange: "valueChange" }, decls: 3, vars: 3, consts: [["placeholder", "Search options", 3, "valueChange", "value", "resultCount"], ["aria-label", "Chip select options", 1, "lib-mat-chip-list-editor__listbox", 3, "multiple", "value", "disabled"], ["icon", "search_off", 3, "message"], ["aria-label", "Chip select options", 1, "lib-mat-chip-list-editor__listbox", 3, "change", "multiple", "value", "disabled"], [1, "lib-mat-chip-list-editor__group"], ["type", "button", 1, "lib-mat-chip-list-editor__group-toggle"], [1, "lib-mat-chip-list-editor__group-body", 3, "lib-mat-chip-list-editor__group-body--indented", "id"], ["type", "button", 1, "lib-mat-chip-list-editor__group-toggle", 3, "click"], ["aria-hidden", "true", 1, "lib-mat-chip-list-editor__chevron"], [1, "lib-mat-chip-list-editor__group-label"], ["aria-hidden", "true", 1, "lib-mat-chip-list-editor__group-dot"], ["aria-hidden", "true", 1, "lib-mat-chip-list-editor__group-count"], [1, "lib-mat-chip-list-editor__group-body", 3, "id"], [3, "value"]], template: function MatChipListEditorComponent_Template(rf, ctx) { if (rf & 1) {
247
+ i0.ɵɵelementStart(0, "lib-search-field", 0);
248
+ i0.ɵɵtwoWayListener("valueChange", function MatChipListEditorComponent_Template_lib_search_field_valueChange_0_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.search, $event) || (ctx.search = $event); return $event; });
249
+ i0.ɵɵelementEnd();
250
+ i0.ɵɵconditionalCreate(1, MatChipListEditorComponent_Conditional_1_Template, 3, 3, "mat-chip-listbox", 1)(2, MatChipListEditorComponent_Conditional_2_Template, 1, 2, "lib-empty-state", 2);
251
+ } if (rf & 2) {
252
+ i0.ɵɵtwoWayProperty("value", ctx.search);
253
+ i0.ɵɵproperty("resultCount", ctx.filteredOptions().length);
254
+ i0.ɵɵadvance();
255
+ i0.ɵɵconditional(ctx.filteredOptions().length ? 1 : 2);
256
+ } }, dependencies: [MatChipsModule, i4.MatChipListbox, i4.MatChipOption, SearchFieldComponent, EmptyStateComponent], styles: ["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:.75rem}.lib-mat-chip-list-editor__listbox[_ngcontent-%COMP%]{max-height:500px;overflow-y:auto}.lib-mat-chip-list-editor__group[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;width:100%}.lib-mat-chip-list-editor__group[_ngcontent-%COMP%] + .lib-mat-chip-list-editor__group[_ngcontent-%COMP%]{margin-top:.5rem}.lib-mat-chip-list-editor__group-toggle[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;width:100%;padding:.3125rem .375rem;border:none;border-radius:var(--lib-forms-radius-sm, 8px);background:transparent;color:var(--lib-forms-on-surface-variant);text-align:left;cursor:pointer;transition:background var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing)}.lib-mat-chip-list-editor__group-toggle[_ngcontent-%COMP%]:hover{background:color-mix(in srgb,var(--lib-forms-on-surface) 4%,transparent)}.lib-mat-chip-list-editor__group-toggle[_ngcontent-%COMP%]:focus-visible{outline:none;box-shadow:0 0 0 2px color-mix(in srgb,var(--lib-forms-primary) 25%,transparent)}.lib-mat-chip-list-editor__chevron[_ngcontent-%COMP%]{flex:none;width:.3125rem;height:.3125rem;margin-left:.125rem;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transform-origin:center;transition:transform var(--lib-forms-duration, .4s) var(--lib-forms-easing)}.lib-mat-chip-list-editor__chevron--open[_ngcontent-%COMP%]{transform:rotate(45deg)}.lib-mat-chip-list-editor__group-label[_ngcontent-%COMP%]{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.625rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase}.lib-mat-chip-list-editor__group-dot[_ngcontent-%COMP%]{flex:none;width:.3125rem;height:.3125rem;border-radius:var(--lib-forms-radius-pill, 999px);background:var(--lib-forms-primary)}.lib-mat-chip-list-editor__group-count[_ngcontent-%COMP%]{flex:none;margin-left:auto;font-size:.6875rem;font-variant-numeric:tabular-nums;color:color-mix(in srgb,var(--lib-forms-on-surface-variant) 65%,transparent)}.lib-mat-chip-list-editor__group-body[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;width:100%}.lib-mat-chip-list-editor__group-body--indented[_ngcontent-%COMP%]{padding-left:.8125rem}"], changeDetection: 0 }); }
257
+ }
258
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MatChipListEditorComponent, [{
259
+ type: Component,
260
+ args: [{ selector: 'lib-mat-chip-list-editor', imports: [MatChipsModule, SearchFieldComponent, EmptyStateComponent], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, host: {
261
+ 'class': 'lib-mat-chip-list-editor',
262
+ '[id]': 'hostId()',
263
+ }, template: "<lib-search-field\n [(value)]=\"search\"\n placeholder=\"Search options\"\n [resultCount]=\"filteredOptions().length\" />\n\n@if (filteredOptions().length) {\n<mat-chip-listbox\n class=\"lib-mat-chip-list-editor__listbox\"\n [multiple]=\"multiple()\"\n [value]=\"value()\"\n [disabled]=\"disabled()\"\n (change)=\"valueListChanged($event)\"\n aria-label=\"Chip select options\">\n @for (group of renderedGroups(); track group.key; let groupIndex = $index) {\n <div\n class=\"lib-mat-chip-list-editor__group\"\n [attr.role]=\"group.collapsible ? 'group' : 'presentation'\"\n [attr.aria-label]=\"group.label || null\">\n @if (group.collapsible) {\n <button\n type=\"button\"\n class=\"lib-mat-chip-list-editor__group-toggle\"\n [attr.aria-expanded]=\"group.expanded\"\n [attr.aria-controls]=\"hostId() + '-group-' + groupIndex\"\n [attr.aria-label]=\"group.toggleLabel\"\n (click)=\"toggleGroup(group.key)\">\n <span\n class=\"lib-mat-chip-list-editor__chevron\"\n [class.lib-mat-chip-list-editor__chevron--open]=\"group.expanded\"\n aria-hidden=\"true\"></span>\n <span class=\"lib-mat-chip-list-editor__group-label\">{{ group.label }}</span>\n @if (group.selectedCount) {\n <span class=\"lib-mat-chip-list-editor__group-dot\" aria-hidden=\"true\"></span>\n }\n <span class=\"lib-mat-chip-list-editor__group-count\" aria-hidden=\"true\">\n {{ group.options.length }}\n </span>\n </button>\n }\n @if (group.expanded) {\n <div\n class=\"lib-mat-chip-list-editor__group-body\"\n [class.lib-mat-chip-list-editor__group-body--indented]=\"group.collapsible\"\n [id]=\"hostId() + '-group-' + groupIndex\">\n @for (option of group.options; track option.value+'-'+$index) {\n <mat-chip-option [value]=\"option.value\">{{ option.label }}</mat-chip-option>\n }\n </div>\n }\n </div>\n }\n</mat-chip-listbox>\n} @else {\n<lib-empty-state\n icon=\"search_off\"\n [message]=\"(options() || []).length ? 'No options match your search' : 'No options available'\" />\n}\n", styles: [":host{display:flex;flex-direction:column;gap:.75rem}.lib-mat-chip-list-editor__listbox{max-height:500px;overflow-y:auto}.lib-mat-chip-list-editor__group{display:flex;flex-wrap:wrap;width:100%}.lib-mat-chip-list-editor__group+.lib-mat-chip-list-editor__group{margin-top:.5rem}.lib-mat-chip-list-editor__group-toggle{display:flex;align-items:center;gap:.5rem;width:100%;padding:.3125rem .375rem;border:none;border-radius:var(--lib-forms-radius-sm, 8px);background:transparent;color:var(--lib-forms-on-surface-variant);text-align:left;cursor:pointer;transition:background var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing)}.lib-mat-chip-list-editor__group-toggle:hover{background:color-mix(in srgb,var(--lib-forms-on-surface) 4%,transparent)}.lib-mat-chip-list-editor__group-toggle:focus-visible{outline:none;box-shadow:0 0 0 2px color-mix(in srgb,var(--lib-forms-primary) 25%,transparent)}.lib-mat-chip-list-editor__chevron{flex:none;width:.3125rem;height:.3125rem;margin-left:.125rem;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transform-origin:center;transition:transform var(--lib-forms-duration, .4s) var(--lib-forms-easing)}.lib-mat-chip-list-editor__chevron--open{transform:rotate(45deg)}.lib-mat-chip-list-editor__group-label{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.625rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase}.lib-mat-chip-list-editor__group-dot{flex:none;width:.3125rem;height:.3125rem;border-radius:var(--lib-forms-radius-pill, 999px);background:var(--lib-forms-primary)}.lib-mat-chip-list-editor__group-count{flex:none;margin-left:auto;font-size:.6875rem;font-variant-numeric:tabular-nums;color:color-mix(in srgb,var(--lib-forms-on-surface-variant) 65%,transparent)}.lib-mat-chip-list-editor__group-body{display:flex;flex-wrap:wrap;width:100%}.lib-mat-chip-list-editor__group-body--indented{padding-left:.8125rem}\n"] }]
264
+ }], null, { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", 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 }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }] }); })();
265
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MatChipListEditorComponent, { className: "MatChipListEditorComponent", filePath: "lib/components/t-dynamic-data-edit/elements/mat-chip-list-editor/mat-chip-list-editor.component.ts", lineNumber: 75 }); })();
266
+
267
+ export { MatChipListEditorComponent };
268
+ //# sourceMappingURL=ngx-t-forms-mat-chip-list-editor.component-CN17K5q6.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-t-forms-mat-chip-list-editor.component-CN17K5q6.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/mat-chip-list-editor/mat-chip-list-editor.component.html","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/mat-chip-list-editor/mat-chip-list-editor.component.ts"],"sourcesContent":["<lib-search-field\n [(value)]=\"search\"\n placeholder=\"Search options\"\n [resultCount]=\"filteredOptions().length\" />\n\n@if (filteredOptions().length) {\n<mat-chip-listbox\n class=\"lib-mat-chip-list-editor__listbox\"\n [multiple]=\"multiple()\"\n [value]=\"value()\"\n [disabled]=\"disabled()\"\n (change)=\"valueListChanged($event)\"\n aria-label=\"Chip select options\">\n @for (group of renderedGroups(); track group.key; let groupIndex = $index) {\n <div\n class=\"lib-mat-chip-list-editor__group\"\n [attr.role]=\"group.collapsible ? 'group' : 'presentation'\"\n [attr.aria-label]=\"group.label || null\">\n @if (group.collapsible) {\n <button\n type=\"button\"\n class=\"lib-mat-chip-list-editor__group-toggle\"\n [attr.aria-expanded]=\"group.expanded\"\n [attr.aria-controls]=\"hostId() + '-group-' + groupIndex\"\n [attr.aria-label]=\"group.toggleLabel\"\n (click)=\"toggleGroup(group.key)\">\n <span\n class=\"lib-mat-chip-list-editor__chevron\"\n [class.lib-mat-chip-list-editor__chevron--open]=\"group.expanded\"\n aria-hidden=\"true\"></span>\n <span class=\"lib-mat-chip-list-editor__group-label\">{{ group.label }}</span>\n @if (group.selectedCount) {\n <span class=\"lib-mat-chip-list-editor__group-dot\" aria-hidden=\"true\"></span>\n }\n <span class=\"lib-mat-chip-list-editor__group-count\" aria-hidden=\"true\">\n {{ group.options.length }}\n </span>\n </button>\n }\n @if (group.expanded) {\n <div\n class=\"lib-mat-chip-list-editor__group-body\"\n [class.lib-mat-chip-list-editor__group-body--indented]=\"group.collapsible\"\n [id]=\"hostId() + '-group-' + groupIndex\">\n @for (option of group.options; track option.value+'-'+$index) {\n <mat-chip-option [value]=\"option.value\">{{ option.label }}</mat-chip-option>\n }\n </div>\n }\n </div>\n }\n</mat-chip-listbox>\n} @else {\n<lib-empty-state\n icon=\"search_off\"\n [message]=\"(options() || []).length ? 'No options match your search' : 'No options available'\" />\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n computed,\n input,\n linkedSignal,\n output,\n signal,\n} from '@angular/core';\nimport { MatChipListboxChange, MatChipsModule } from '@angular/material/chips';\nimport { IConfigElementError } from '../../t-dynamic-data-edit.component';\nimport { SearchFieldComponent } from '../_shared/search-field/search-field.component';\nimport { EmptyStateComponent } from '../_shared/empty-state/empty-state.component';\n\ninterface ChipOption {\n label: string;\n value: unknown;\n group?: string;\n}\n\n/**\n * A run of chips sharing one `group` key. `label` is `''` for options that carry\n * no group — that run renders headless at the top level, so an ungrouped option\n * set looks exactly as it did before grouping existed.\n */\ninterface ChipOptionGroup {\n readonly key: string;\n readonly label: string;\n readonly options: readonly ChipOption[];\n}\n\n/** A group with the collapse state and selection summary the template renders. */\ninterface RenderedChipGroup extends ChipOptionGroup {\n /** Headless runs are never collapsible — there is no heading to collapse into. */\n readonly collapsible: boolean;\n readonly expanded: boolean;\n /** How many of this group's options are currently selected. */\n readonly selectedCount: number;\n readonly toggleLabel: string;\n}\n\n/**\n * Joins group keys into a single primitive for the collapse-state source. A\n * control character, so it can never collide with a real group label.\n */\nconst GROUP_KEY_SEPARATOR = '\\u0000';\n\n/**\n * Chip-select editor: a searchable {@link MatChipsModule} listbox over a set of\n * options, single- or multi-select. Renders inside `t-dynamic-data-edit`, which\n * supplies the field label, hint, and validation errors — so this component owns\n * only the search + chip content.\n *\n * Options carrying a `group` key are gathered under a collapsible heading for\n * that key — the first group open, the rest closed. Options without a group stay\n * at the top level, headless and always visible, so a set with no groups at all\n * renders exactly as it did before grouping existed.\n *\n * Grouping is presentational only: the chips remain a single listbox, so\n * single/multi-select and the emitted value are unchanged.\n */\n@Component({\n selector: 'lib-mat-chip-list-editor',\n imports: [MatChipsModule, SearchFieldComponent, EmptyStateComponent],\n templateUrl: './mat-chip-list-editor.component.html',\n styleUrl: './mat-chip-list-editor.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n 'class': 'lib-mat-chip-list-editor',\n '[id]': 'hostId()',\n },\n})\nexport class MatChipListEditorComponent {\n static nextId = 0;\n\n protected readonly hostId = signal<string>(\n `lib-mat-chip-list-editor-${MatChipListEditorComponent.nextId++}`,\n );\n\n readonly disabled = input<boolean>(false);\n readonly multiple = input<boolean>(false);\n readonly required = input<boolean>(false);\n readonly errors = input<IConfigElementError[] | undefined>([]);\n // Internal `any` retained — wrapper templates bind heterogeneous value types\n // (DataSources, string[], etc.); narrowing here would force wrapper changes.\n // eslint-disable-next-line @typescript-eslint/no-explicit-any -- wrappers bind heterogeneous chip-value payloads (DataSources, string[]).\n readonly value = input<any>(undefined);\n readonly options = input<ChipOption[] | undefined>([]);\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any -- emits whatever shape `value` was bound to; narrows once wrappers tighten.\n readonly valueChange = output<any>();\n\n /** Free-text search term (two-way bound to the search field). */\n protected readonly search = signal<string>('');\n\n /**\n * Options matching the search term. Matches the visible label, the group, and\n * a string value (the same reachable-string-leaf semantics the old\n * `searchList` pipe applied, minus its now-removed nested-object scan).\n */\n protected readonly filteredOptions = computed<ChipOption[]>(() => {\n const term = this.search().trim().toLowerCase();\n const all = this.options() ?? [];\n if (!term) return all;\n return all.filter((option) => {\n const haystacks = [\n option.label,\n option.group,\n typeof option.value === 'string' ? option.value : undefined,\n ];\n return haystacks.some(\n (text): text is string => typeof text === 'string' && text.toLowerCase().includes(term),\n );\n });\n });\n\n /**\n * The matching options gathered into groups. Options sharing a `group` key end\n * up in the same run even when they are not adjacent in the source list, and\n * groups keep the order in which they first appear — so the ungrouped run sits\n * where its first option was, rather than being relabelled or pushed to the end.\n */\n protected readonly groupedOptions = computed<readonly ChipOptionGroup[]>(() =>\n this.#group(this.filteredOptions()),\n );\n\n /**\n * Labelled group keys of the *unfiltered* set, joined into one primitive so the\n * collapse state below only resets when the option set itself changes — not on\n * every keystroke in the search box.\n */\n readonly #groupSignature = computed<string>(() =>\n this.#group(this.options() ?? [])\n .filter((group) => group.label)\n .map((group) => group.key)\n .join(GROUP_KEY_SEPARATOR),\n );\n\n /**\n * Expanded group keys. Defaults to the first labelled group — the rest start\n * closed — and stays user-controlled until the option set changes.\n */\n protected readonly expandedKeys = linkedSignal<string, ReadonlySet<string>>({\n source: this.#groupSignature,\n computation: (signature) =>\n new Set(signature ? signature.split(GROUP_KEY_SEPARATOR).slice(0, 1) : []),\n });\n\n /** Selected values, normalised across the single- and multi-select shapes. */\n readonly #selectedValues = computed<readonly unknown[]>(() => {\n const value = this.value();\n if (Array.isArray(value)) {\n return value;\n }\n return value === undefined || value === null || value === '' ? [] : [value];\n });\n\n /**\n * What the template renders. A headless run is always open, and a search query\n * opens every group — matches must never hide behind a collapsed heading.\n */\n protected readonly renderedGroups = computed<readonly RenderedChipGroup[]>(() => {\n const expandedKeys = this.expandedKeys();\n const searching = this.search().trim().length > 0;\n const selectedValues = this.#selectedValues();\n return this.groupedOptions().map((group) => {\n const collapsible = group.label !== '';\n const selectedCount = group.options.filter((option) =>\n selectedValues.includes(option.value),\n ).length;\n const selectedLabel = selectedCount ? `, ${selectedCount} selected` : '';\n return {\n ...group,\n collapsible,\n expanded: !collapsible || searching || expandedKeys.has(group.key),\n selectedCount,\n toggleLabel: `${group.label}, ${group.options.length} options${selectedLabel}`,\n };\n });\n });\n\n /** Open or close one group. Headless runs never reach this — they have no toggle. */\n protected toggleGroup(key: string): void {\n this.expandedKeys.update((keys) => {\n const next = new Set(keys);\n if (!next.delete(key)) {\n next.add(key);\n }\n return next;\n });\n }\n\n protected valueListChanged($event: MatChipListboxChange): void {\n this.valueChange.emit($event.value);\n }\n\n /** Buckets options by `group`, preserving first-appearance order of both. */\n #group(options: readonly ChipOption[]): readonly ChipOptionGroup[] {\n const byGroup = new Map<string, ChipOption[]>();\n for (const option of options) {\n const label = option.group?.trim() ?? '';\n const run = byGroup.get(label);\n if (run) {\n run.push(option);\n } else {\n byGroup.set(label, [option]);\n }\n }\n return [...byGroup].map(([label, grouped]) => ({\n key: label || '__ungrouped',\n label,\n options: grouped,\n }));\n }\n}\n"],"names":["i1"],"mappings":";;;;;;;;;oDA4CmB,GAAG,GAAA,MAAA;;IAZhB,EAAA,CAAA,SAAA,CAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAA4E;;;;IAb9E,EAAA,CAAA,cAAA,CAAA,CAAA,EAAA,QAAA,EAAA,CAAA,CAMmC;AAAjC,IAAA,EAAA,CAAA,UAAA,CAAA,OAAA,EAAA,SAAA,6FAAA,GAAA,EAAA,EAAA,CAAA,aAAA,CAAA,GAAA,CAAA,CAAA,CAAA,MAAA,QAAA,GAAA,EAAA,CAAA,aAAA,EAAA,CAAA,SAAA,CAAA,CAAA,MAAA,MAAA,GAAA,EAAA,CAAA,aAAA,CAAA,CAAA,CAAA,CAAA,CAAA,OAAA,EAAA,CAAA,WAAA,CAAS,gCAAsB,CAAA,CAAA,CAAA,CAAA,CAAC;IAChC,EAAA,CAAA,SAAA,CAAA,CAAA,EAAA,MAAA,EAAA,CAAA,CAG4B;IAC5B,EAAA,CAAA,cAAA,CAAA,CAAA,EAAA,MAAA,EAAA,CAAA,CAAoD;IAAA,EAAA,CAAA,MAAA,CAAA,CAAA,CAAiB;IAAA,EAAA,CAAA,YAAA,EAAO;IAC5E,EAAA,CAAA,mBAAA,CAAA,CAAA,EAAA,mFAAA,EAAA,CAAA,EAAA,CAAA,EAAA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AA,EAAA,iBAAA,EAAA,CAAA,CA+CvB;;YAnDP,EAAA,CAAA,gBAAA,CAAA,OAAA,EAAA,GAAA,CAAA,MAAA,CAAkB;YAElB,EAAA,CAAA,UAAA,CAAA,aAAA,EAAA,GAAA,CAAA,eAAA,EAAA,CAAA,MAAA,CAAwC;YAE1C,EAAA,CAAA,SAAA,EAmDC;YAnDD,EAAA,CAAA,aAAA,CAAA,GAAA,CAAA,eAAA,EAAA,CAAA,MAAA,GAAA,CAAA,GAAA,CAAA,CAmDC;4BCQW,cAAc,EAAAA,EAAA,CAAA,cAAA,EAAAA,EAAA,CAAA,aAAA,EAAE,oBAAoB,EAAE,mBAAmB,CAAA,EAAA,MAAA,EAAA,CAAA,2sEAAA,CAAA,EAAA,eAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;iFAUxD,0BAA0B,EAAA,CAAA;cAZtC,SAAS;AACE,QAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,0BAA0B,WAC3B,CAAC,cAAc,EAAE,oBAAoB,EAAE,mBAAmB,CAAC,EAAA,eAAA,EAGnD,uBAAuB,CAAC,MAAM,EAAA,aAAA,EAChC,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EACnC;AACJ,oBAAA,OAAO,EAAE,0BAA0B;AACnC,oBAAA,MAAM,EAAE,UAAU;AACnB,iBAAA,EAAA,QAAA,EAAA,8kEAAA,EAAA,MAAA,EAAA,CAAA,s7DAAA,CAAA,EAAA;;kFAEU,0BAA0B,EAAA,EAAA,SAAA,EAAA,4BAAA,EAAA,QAAA,EAAA,oGAAA,EAAA,UAAA,EAAA,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA,GAAA;;;;"}
@@ -0,0 +1,167 @@
1
+ import * as i0 from '@angular/core';
2
+ import { signal, input, output, computed, linkedSignal, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import * as i4 from '@angular/material/chips';
4
+ import { MatChipsModule } from '@angular/material/chips';
5
+ import { S as SearchFieldComponent } from './ngx-t-forms-search-field.component-B2ZO7lqO.mjs';
6
+ import { E as EmptyStateComponent } from './ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs';
7
+
8
+ /**
9
+ * Joins group keys into a single primitive for the collapse-state source. A
10
+ * control character, so it can never collide with a real group label.
11
+ */
12
+ const GROUP_KEY_SEPARATOR = '\u0000';
13
+ /**
14
+ * Chip-select editor: a searchable {@link MatChipsModule} listbox over a set of
15
+ * options, single- or multi-select. Renders inside `t-dynamic-data-edit`, which
16
+ * supplies the field label, hint, and validation errors — so this component owns
17
+ * only the search + chip content.
18
+ *
19
+ * Options carrying a `group` key are gathered under a collapsible heading for
20
+ * that key — the first group open, the rest closed. Options without a group stay
21
+ * at the top level, headless and always visible, so a set with no groups at all
22
+ * renders exactly as it did before grouping existed.
23
+ *
24
+ * Grouping is presentational only: the chips remain a single listbox, so
25
+ * single/multi-select and the emitted value are unchanged.
26
+ */
27
+ class MatChipListEditorComponent {
28
+ constructor() {
29
+ this.hostId = signal(`lib-mat-chip-list-editor-${MatChipListEditorComponent.nextId++}`, ...(ngDevMode ? [{ debugName: "hostId" }] : /* istanbul ignore next */ []));
30
+ this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
31
+ this.multiple = input(false, ...(ngDevMode ? [{ debugName: "multiple" }] : /* istanbul ignore next */ []));
32
+ this.required = input(false, ...(ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []));
33
+ this.errors = input([], ...(ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []));
34
+ // Internal `any` retained — wrapper templates bind heterogeneous value types
35
+ // (DataSources, string[], etc.); narrowing here would force wrapper changes.
36
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- wrappers bind heterogeneous chip-value payloads (DataSources, string[]).
37
+ this.value = input(undefined, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
38
+ this.options = input([], ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
39
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- emits whatever shape `value` was bound to; narrows once wrappers tighten.
40
+ this.valueChange = output();
41
+ /** Free-text search term (two-way bound to the search field). */
42
+ this.search = signal('', ...(ngDevMode ? [{ debugName: "search" }] : /* istanbul ignore next */ []));
43
+ /**
44
+ * Options matching the search term. Matches the visible label, the group, and
45
+ * a string value (the same reachable-string-leaf semantics the old
46
+ * `searchList` pipe applied, minus its now-removed nested-object scan).
47
+ */
48
+ this.filteredOptions = computed(() => {
49
+ const term = this.search().trim().toLowerCase();
50
+ const all = this.options() ?? [];
51
+ if (!term)
52
+ return all;
53
+ return all.filter((option) => {
54
+ const haystacks = [
55
+ option.label,
56
+ option.group,
57
+ typeof option.value === 'string' ? option.value : undefined,
58
+ ];
59
+ return haystacks.some((text) => typeof text === 'string' && text.toLowerCase().includes(term));
60
+ });
61
+ }, ...(ngDevMode ? [{ debugName: "filteredOptions" }] : /* istanbul ignore next */ []));
62
+ /**
63
+ * The matching options gathered into groups. Options sharing a `group` key end
64
+ * up in the same run even when they are not adjacent in the source list, and
65
+ * groups keep the order in which they first appear — so the ungrouped run sits
66
+ * where its first option was, rather than being relabelled or pushed to the end.
67
+ */
68
+ this.groupedOptions = computed(() => this.#group(this.filteredOptions()), ...(ngDevMode ? [{ debugName: "groupedOptions" }] : /* istanbul ignore next */ []));
69
+ /**
70
+ * Labelled group keys of the *unfiltered* set, joined into one primitive so the
71
+ * collapse state below only resets when the option set itself changes — not on
72
+ * every keystroke in the search box.
73
+ */
74
+ this.#groupSignature = computed(() => this.#group(this.options() ?? [])
75
+ .filter((group) => group.label)
76
+ .map((group) => group.key)
77
+ .join(GROUP_KEY_SEPARATOR), ...(ngDevMode ? [{ debugName: "#groupSignature" }] : /* istanbul ignore next */ []));
78
+ /**
79
+ * Expanded group keys. Defaults to the first labelled group — the rest start
80
+ * closed — and stays user-controlled until the option set changes.
81
+ */
82
+ this.expandedKeys = linkedSignal({ ...(ngDevMode ? { debugName: "expandedKeys" } : /* istanbul ignore next */ {}), source: this.#groupSignature,
83
+ computation: (signature) => new Set(signature ? signature.split(GROUP_KEY_SEPARATOR).slice(0, 1) : []) });
84
+ /** Selected values, normalised across the single- and multi-select shapes. */
85
+ this.#selectedValues = computed(() => {
86
+ const value = this.value();
87
+ if (Array.isArray(value)) {
88
+ return value;
89
+ }
90
+ return value === undefined || value === null || value === '' ? [] : [value];
91
+ }, ...(ngDevMode ? [{ debugName: "#selectedValues" }] : /* istanbul ignore next */ []));
92
+ /**
93
+ * What the template renders. A headless run is always open, and a search query
94
+ * opens every group — matches must never hide behind a collapsed heading.
95
+ */
96
+ this.renderedGroups = computed(() => {
97
+ const expandedKeys = this.expandedKeys();
98
+ const searching = this.search().trim().length > 0;
99
+ const selectedValues = this.#selectedValues();
100
+ return this.groupedOptions().map((group) => {
101
+ const collapsible = group.label !== '';
102
+ const selectedCount = group.options.filter((option) => selectedValues.includes(option.value)).length;
103
+ const selectedLabel = selectedCount ? `, ${selectedCount} selected` : '';
104
+ return {
105
+ ...group,
106
+ collapsible,
107
+ expanded: !collapsible || searching || expandedKeys.has(group.key),
108
+ selectedCount,
109
+ toggleLabel: `${group.label}, ${group.options.length} options${selectedLabel}`,
110
+ };
111
+ });
112
+ }, ...(ngDevMode ? [{ debugName: "renderedGroups" }] : /* istanbul ignore next */ []));
113
+ }
114
+ static { this.nextId = 0; }
115
+ /**
116
+ * Labelled group keys of the *unfiltered* set, joined into one primitive so the
117
+ * collapse state below only resets when the option set itself changes — not on
118
+ * every keystroke in the search box.
119
+ */
120
+ #groupSignature;
121
+ /** Selected values, normalised across the single- and multi-select shapes. */
122
+ #selectedValues;
123
+ /** Open or close one group. Headless runs never reach this — they have no toggle. */
124
+ toggleGroup(key) {
125
+ this.expandedKeys.update((keys) => {
126
+ const next = new Set(keys);
127
+ if (!next.delete(key)) {
128
+ next.add(key);
129
+ }
130
+ return next;
131
+ });
132
+ }
133
+ valueListChanged($event) {
134
+ this.valueChange.emit($event.value);
135
+ }
136
+ /** Buckets options by `group`, preserving first-appearance order of both. */
137
+ #group(options) {
138
+ const byGroup = new Map();
139
+ for (const option of options) {
140
+ const label = option.group?.trim() ?? '';
141
+ const run = byGroup.get(label);
142
+ if (run) {
143
+ run.push(option);
144
+ }
145
+ else {
146
+ byGroup.set(label, [option]);
147
+ }
148
+ }
149
+ return [...byGroup].map(([label, grouped]) => ({
150
+ key: label || '__ungrouped',
151
+ label,
152
+ options: grouped,
153
+ }));
154
+ }
155
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: MatChipListEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
156
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: MatChipListEditorComponent, isStandalone: true, selector: "lib-mat-chip-list-editor", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", 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 }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { properties: { "id": "hostId()" }, classAttribute: "lib-mat-chip-list-editor" }, ngImport: i0, template: "<lib-search-field\n [(value)]=\"search\"\n placeholder=\"Search options\"\n [resultCount]=\"filteredOptions().length\" />\n\n@if (filteredOptions().length) {\n<mat-chip-listbox\n class=\"lib-mat-chip-list-editor__listbox\"\n [multiple]=\"multiple()\"\n [value]=\"value()\"\n [disabled]=\"disabled()\"\n (change)=\"valueListChanged($event)\"\n aria-label=\"Chip select options\">\n @for (group of renderedGroups(); track group.key; let groupIndex = $index) {\n <div\n class=\"lib-mat-chip-list-editor__group\"\n [attr.role]=\"group.collapsible ? 'group' : 'presentation'\"\n [attr.aria-label]=\"group.label || null\">\n @if (group.collapsible) {\n <button\n type=\"button\"\n class=\"lib-mat-chip-list-editor__group-toggle\"\n [attr.aria-expanded]=\"group.expanded\"\n [attr.aria-controls]=\"hostId() + '-group-' + groupIndex\"\n [attr.aria-label]=\"group.toggleLabel\"\n (click)=\"toggleGroup(group.key)\">\n <span\n class=\"lib-mat-chip-list-editor__chevron\"\n [class.lib-mat-chip-list-editor__chevron--open]=\"group.expanded\"\n aria-hidden=\"true\"></span>\n <span class=\"lib-mat-chip-list-editor__group-label\">{{ group.label }}</span>\n @if (group.selectedCount) {\n <span class=\"lib-mat-chip-list-editor__group-dot\" aria-hidden=\"true\"></span>\n }\n <span class=\"lib-mat-chip-list-editor__group-count\" aria-hidden=\"true\">\n {{ group.options.length }}\n </span>\n </button>\n }\n @if (group.expanded) {\n <div\n class=\"lib-mat-chip-list-editor__group-body\"\n [class.lib-mat-chip-list-editor__group-body--indented]=\"group.collapsible\"\n [id]=\"hostId() + '-group-' + groupIndex\">\n @for (option of group.options; track option.value+'-'+$index) {\n <mat-chip-option [value]=\"option.value\">{{ option.label }}</mat-chip-option>\n }\n </div>\n }\n </div>\n }\n</mat-chip-listbox>\n} @else {\n<lib-empty-state\n icon=\"search_off\"\n [message]=\"(options() || []).length ? 'No options match your search' : 'No options available'\" />\n}\n", styles: [":host{display:flex;flex-direction:column;gap:.75rem}.lib-mat-chip-list-editor__listbox{max-height:500px;overflow-y:auto}.lib-mat-chip-list-editor__group{display:flex;flex-wrap:wrap;width:100%}.lib-mat-chip-list-editor__group+.lib-mat-chip-list-editor__group{margin-top:.5rem}.lib-mat-chip-list-editor__group-toggle{display:flex;align-items:center;gap:.5rem;width:100%;padding:.3125rem .375rem;border:none;border-radius:var(--lib-forms-radius-sm, 8px);background:transparent;color:var(--lib-forms-on-surface-variant);text-align:left;cursor:pointer;transition:background var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing)}.lib-mat-chip-list-editor__group-toggle:hover{background:color-mix(in srgb,var(--lib-forms-on-surface) 4%,transparent)}.lib-mat-chip-list-editor__group-toggle:focus-visible{outline:none;box-shadow:0 0 0 2px color-mix(in srgb,var(--lib-forms-primary) 25%,transparent)}.lib-mat-chip-list-editor__chevron{flex:none;width:.3125rem;height:.3125rem;margin-left:.125rem;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transform-origin:center;transition:transform var(--lib-forms-duration, .4s) var(--lib-forms-easing)}.lib-mat-chip-list-editor__chevron--open{transform:rotate(45deg)}.lib-mat-chip-list-editor__group-label{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.625rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase}.lib-mat-chip-list-editor__group-dot{flex:none;width:.3125rem;height:.3125rem;border-radius:var(--lib-forms-radius-pill, 999px);background:var(--lib-forms-primary)}.lib-mat-chip-list-editor__group-count{flex:none;margin-left:auto;font-size:.6875rem;font-variant-numeric:tabular-nums;color:color-mix(in srgb,var(--lib-forms-on-surface-variant) 65%,transparent)}.lib-mat-chip-list-editor__group-body{display:flex;flex-wrap:wrap;width:100%}.lib-mat-chip-list-editor__group-body--indented{padding-left:.8125rem}\n"], dependencies: [{ kind: "ngmodule", type: MatChipsModule }, { kind: "component", type: i4.MatChipListbox, selector: "mat-chip-listbox", inputs: ["multiple", "aria-orientation", "selectable", "compareWith", "required", "hideSingleSelectionIndicator", "value"], outputs: ["change"] }, { kind: "component", type: i4.MatChipOption, selector: "mat-basic-chip-option, [mat-basic-chip-option], mat-chip-option, [mat-chip-option]", inputs: ["selectable", "selected"], outputs: ["selectionChange"] }, { kind: "component", type: SearchFieldComponent, selector: "lib-search-field", inputs: ["value", "placeholder", "resultCount"], outputs: ["valueChange"] }, { kind: "component", type: EmptyStateComponent, selector: "lib-empty-state", inputs: ["icon", "message"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
157
+ }
158
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: MatChipListEditorComponent, decorators: [{
159
+ type: Component,
160
+ args: [{ selector: 'lib-mat-chip-list-editor', imports: [MatChipsModule, SearchFieldComponent, EmptyStateComponent], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, host: {
161
+ 'class': 'lib-mat-chip-list-editor',
162
+ '[id]': 'hostId()',
163
+ }, template: "<lib-search-field\n [(value)]=\"search\"\n placeholder=\"Search options\"\n [resultCount]=\"filteredOptions().length\" />\n\n@if (filteredOptions().length) {\n<mat-chip-listbox\n class=\"lib-mat-chip-list-editor__listbox\"\n [multiple]=\"multiple()\"\n [value]=\"value()\"\n [disabled]=\"disabled()\"\n (change)=\"valueListChanged($event)\"\n aria-label=\"Chip select options\">\n @for (group of renderedGroups(); track group.key; let groupIndex = $index) {\n <div\n class=\"lib-mat-chip-list-editor__group\"\n [attr.role]=\"group.collapsible ? 'group' : 'presentation'\"\n [attr.aria-label]=\"group.label || null\">\n @if (group.collapsible) {\n <button\n type=\"button\"\n class=\"lib-mat-chip-list-editor__group-toggle\"\n [attr.aria-expanded]=\"group.expanded\"\n [attr.aria-controls]=\"hostId() + '-group-' + groupIndex\"\n [attr.aria-label]=\"group.toggleLabel\"\n (click)=\"toggleGroup(group.key)\">\n <span\n class=\"lib-mat-chip-list-editor__chevron\"\n [class.lib-mat-chip-list-editor__chevron--open]=\"group.expanded\"\n aria-hidden=\"true\"></span>\n <span class=\"lib-mat-chip-list-editor__group-label\">{{ group.label }}</span>\n @if (group.selectedCount) {\n <span class=\"lib-mat-chip-list-editor__group-dot\" aria-hidden=\"true\"></span>\n }\n <span class=\"lib-mat-chip-list-editor__group-count\" aria-hidden=\"true\">\n {{ group.options.length }}\n </span>\n </button>\n }\n @if (group.expanded) {\n <div\n class=\"lib-mat-chip-list-editor__group-body\"\n [class.lib-mat-chip-list-editor__group-body--indented]=\"group.collapsible\"\n [id]=\"hostId() + '-group-' + groupIndex\">\n @for (option of group.options; track option.value+'-'+$index) {\n <mat-chip-option [value]=\"option.value\">{{ option.label }}</mat-chip-option>\n }\n </div>\n }\n </div>\n }\n</mat-chip-listbox>\n} @else {\n<lib-empty-state\n icon=\"search_off\"\n [message]=\"(options() || []).length ? 'No options match your search' : 'No options available'\" />\n}\n", styles: [":host{display:flex;flex-direction:column;gap:.75rem}.lib-mat-chip-list-editor__listbox{max-height:500px;overflow-y:auto}.lib-mat-chip-list-editor__group{display:flex;flex-wrap:wrap;width:100%}.lib-mat-chip-list-editor__group+.lib-mat-chip-list-editor__group{margin-top:.5rem}.lib-mat-chip-list-editor__group-toggle{display:flex;align-items:center;gap:.5rem;width:100%;padding:.3125rem .375rem;border:none;border-radius:var(--lib-forms-radius-sm, 8px);background:transparent;color:var(--lib-forms-on-surface-variant);text-align:left;cursor:pointer;transition:background var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing)}.lib-mat-chip-list-editor__group-toggle:hover{background:color-mix(in srgb,var(--lib-forms-on-surface) 4%,transparent)}.lib-mat-chip-list-editor__group-toggle:focus-visible{outline:none;box-shadow:0 0 0 2px color-mix(in srgb,var(--lib-forms-primary) 25%,transparent)}.lib-mat-chip-list-editor__chevron{flex:none;width:.3125rem;height:.3125rem;margin-left:.125rem;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transform-origin:center;transition:transform var(--lib-forms-duration, .4s) var(--lib-forms-easing)}.lib-mat-chip-list-editor__chevron--open{transform:rotate(45deg)}.lib-mat-chip-list-editor__group-label{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.625rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase}.lib-mat-chip-list-editor__group-dot{flex:none;width:.3125rem;height:.3125rem;border-radius:var(--lib-forms-radius-pill, 999px);background:var(--lib-forms-primary)}.lib-mat-chip-list-editor__group-count{flex:none;margin-left:auto;font-size:.6875rem;font-variant-numeric:tabular-nums;color:color-mix(in srgb,var(--lib-forms-on-surface-variant) 65%,transparent)}.lib-mat-chip-list-editor__group-body{display:flex;flex-wrap:wrap;width:100%}.lib-mat-chip-list-editor__group-body--indented{padding-left:.8125rem}\n"] }]
164
+ }], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", 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 }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }] } });
165
+
166
+ export { MatChipListEditorComponent };
167
+ //# sourceMappingURL=ngx-t-forms-mat-chip-list-editor.component-CYtTBtyf.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-t-forms-mat-chip-list-editor.component-CYtTBtyf.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/mat-chip-list-editor/mat-chip-list-editor.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/mat-chip-list-editor/mat-chip-list-editor.component.html"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n computed,\n input,\n linkedSignal,\n output,\n signal,\n} from '@angular/core';\nimport { MatChipListboxChange, MatChipsModule } from '@angular/material/chips';\nimport { IConfigElementError } from '../../t-dynamic-data-edit.component';\nimport { SearchFieldComponent } from '../_shared/search-field/search-field.component';\nimport { EmptyStateComponent } from '../_shared/empty-state/empty-state.component';\n\ninterface ChipOption {\n label: string;\n value: unknown;\n group?: string;\n}\n\n/**\n * A run of chips sharing one `group` key. `label` is `''` for options that carry\n * no group — that run renders headless at the top level, so an ungrouped option\n * set looks exactly as it did before grouping existed.\n */\ninterface ChipOptionGroup {\n readonly key: string;\n readonly label: string;\n readonly options: readonly ChipOption[];\n}\n\n/** A group with the collapse state and selection summary the template renders. */\ninterface RenderedChipGroup extends ChipOptionGroup {\n /** Headless runs are never collapsible — there is no heading to collapse into. */\n readonly collapsible: boolean;\n readonly expanded: boolean;\n /** How many of this group's options are currently selected. */\n readonly selectedCount: number;\n readonly toggleLabel: string;\n}\n\n/**\n * Joins group keys into a single primitive for the collapse-state source. A\n * control character, so it can never collide with a real group label.\n */\nconst GROUP_KEY_SEPARATOR = '\\u0000';\n\n/**\n * Chip-select editor: a searchable {@link MatChipsModule} listbox over a set of\n * options, single- or multi-select. Renders inside `t-dynamic-data-edit`, which\n * supplies the field label, hint, and validation errors — so this component owns\n * only the search + chip content.\n *\n * Options carrying a `group` key are gathered under a collapsible heading for\n * that key — the first group open, the rest closed. Options without a group stay\n * at the top level, headless and always visible, so a set with no groups at all\n * renders exactly as it did before grouping existed.\n *\n * Grouping is presentational only: the chips remain a single listbox, so\n * single/multi-select and the emitted value are unchanged.\n */\n@Component({\n selector: 'lib-mat-chip-list-editor',\n imports: [MatChipsModule, SearchFieldComponent, EmptyStateComponent],\n templateUrl: './mat-chip-list-editor.component.html',\n styleUrl: './mat-chip-list-editor.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n 'class': 'lib-mat-chip-list-editor',\n '[id]': 'hostId()',\n },\n})\nexport class MatChipListEditorComponent {\n static nextId = 0;\n\n protected readonly hostId = signal<string>(\n `lib-mat-chip-list-editor-${MatChipListEditorComponent.nextId++}`,\n );\n\n readonly disabled = input<boolean>(false);\n readonly multiple = input<boolean>(false);\n readonly required = input<boolean>(false);\n readonly errors = input<IConfigElementError[] | undefined>([]);\n // Internal `any` retained — wrapper templates bind heterogeneous value types\n // (DataSources, string[], etc.); narrowing here would force wrapper changes.\n // eslint-disable-next-line @typescript-eslint/no-explicit-any -- wrappers bind heterogeneous chip-value payloads (DataSources, string[]).\n readonly value = input<any>(undefined);\n readonly options = input<ChipOption[] | undefined>([]);\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any -- emits whatever shape `value` was bound to; narrows once wrappers tighten.\n readonly valueChange = output<any>();\n\n /** Free-text search term (two-way bound to the search field). */\n protected readonly search = signal<string>('');\n\n /**\n * Options matching the search term. Matches the visible label, the group, and\n * a string value (the same reachable-string-leaf semantics the old\n * `searchList` pipe applied, minus its now-removed nested-object scan).\n */\n protected readonly filteredOptions = computed<ChipOption[]>(() => {\n const term = this.search().trim().toLowerCase();\n const all = this.options() ?? [];\n if (!term) return all;\n return all.filter((option) => {\n const haystacks = [\n option.label,\n option.group,\n typeof option.value === 'string' ? option.value : undefined,\n ];\n return haystacks.some(\n (text): text is string => typeof text === 'string' && text.toLowerCase().includes(term),\n );\n });\n });\n\n /**\n * The matching options gathered into groups. Options sharing a `group` key end\n * up in the same run even when they are not adjacent in the source list, and\n * groups keep the order in which they first appear — so the ungrouped run sits\n * where its first option was, rather than being relabelled or pushed to the end.\n */\n protected readonly groupedOptions = computed<readonly ChipOptionGroup[]>(() =>\n this.#group(this.filteredOptions()),\n );\n\n /**\n * Labelled group keys of the *unfiltered* set, joined into one primitive so the\n * collapse state below only resets when the option set itself changes — not on\n * every keystroke in the search box.\n */\n readonly #groupSignature = computed<string>(() =>\n this.#group(this.options() ?? [])\n .filter((group) => group.label)\n .map((group) => group.key)\n .join(GROUP_KEY_SEPARATOR),\n );\n\n /**\n * Expanded group keys. Defaults to the first labelled group — the rest start\n * closed — and stays user-controlled until the option set changes.\n */\n protected readonly expandedKeys = linkedSignal<string, ReadonlySet<string>>({\n source: this.#groupSignature,\n computation: (signature) =>\n new Set(signature ? signature.split(GROUP_KEY_SEPARATOR).slice(0, 1) : []),\n });\n\n /** Selected values, normalised across the single- and multi-select shapes. */\n readonly #selectedValues = computed<readonly unknown[]>(() => {\n const value = this.value();\n if (Array.isArray(value)) {\n return value;\n }\n return value === undefined || value === null || value === '' ? [] : [value];\n });\n\n /**\n * What the template renders. A headless run is always open, and a search query\n * opens every group — matches must never hide behind a collapsed heading.\n */\n protected readonly renderedGroups = computed<readonly RenderedChipGroup[]>(() => {\n const expandedKeys = this.expandedKeys();\n const searching = this.search().trim().length > 0;\n const selectedValues = this.#selectedValues();\n return this.groupedOptions().map((group) => {\n const collapsible = group.label !== '';\n const selectedCount = group.options.filter((option) =>\n selectedValues.includes(option.value),\n ).length;\n const selectedLabel = selectedCount ? `, ${selectedCount} selected` : '';\n return {\n ...group,\n collapsible,\n expanded: !collapsible || searching || expandedKeys.has(group.key),\n selectedCount,\n toggleLabel: `${group.label}, ${group.options.length} options${selectedLabel}`,\n };\n });\n });\n\n /** Open or close one group. Headless runs never reach this — they have no toggle. */\n protected toggleGroup(key: string): void {\n this.expandedKeys.update((keys) => {\n const next = new Set(keys);\n if (!next.delete(key)) {\n next.add(key);\n }\n return next;\n });\n }\n\n protected valueListChanged($event: MatChipListboxChange): void {\n this.valueChange.emit($event.value);\n }\n\n /** Buckets options by `group`, preserving first-appearance order of both. */\n #group(options: readonly ChipOption[]): readonly ChipOptionGroup[] {\n const byGroup = new Map<string, ChipOption[]>();\n for (const option of options) {\n const label = option.group?.trim() ?? '';\n const run = byGroup.get(label);\n if (run) {\n run.push(option);\n } else {\n byGroup.set(label, [option]);\n }\n }\n return [...byGroup].map(([label, grouped]) => ({\n key: label || '__ungrouped',\n label,\n options: grouped,\n }));\n }\n}\n","<lib-search-field\n [(value)]=\"search\"\n placeholder=\"Search options\"\n [resultCount]=\"filteredOptions().length\" />\n\n@if (filteredOptions().length) {\n<mat-chip-listbox\n class=\"lib-mat-chip-list-editor__listbox\"\n [multiple]=\"multiple()\"\n [value]=\"value()\"\n [disabled]=\"disabled()\"\n (change)=\"valueListChanged($event)\"\n aria-label=\"Chip select options\">\n @for (group of renderedGroups(); track group.key; let groupIndex = $index) {\n <div\n class=\"lib-mat-chip-list-editor__group\"\n [attr.role]=\"group.collapsible ? 'group' : 'presentation'\"\n [attr.aria-label]=\"group.label || null\">\n @if (group.collapsible) {\n <button\n type=\"button\"\n class=\"lib-mat-chip-list-editor__group-toggle\"\n [attr.aria-expanded]=\"group.expanded\"\n [attr.aria-controls]=\"hostId() + '-group-' + groupIndex\"\n [attr.aria-label]=\"group.toggleLabel\"\n (click)=\"toggleGroup(group.key)\">\n <span\n class=\"lib-mat-chip-list-editor__chevron\"\n [class.lib-mat-chip-list-editor__chevron--open]=\"group.expanded\"\n aria-hidden=\"true\"></span>\n <span class=\"lib-mat-chip-list-editor__group-label\">{{ group.label }}</span>\n @if (group.selectedCount) {\n <span class=\"lib-mat-chip-list-editor__group-dot\" aria-hidden=\"true\"></span>\n }\n <span class=\"lib-mat-chip-list-editor__group-count\" aria-hidden=\"true\">\n {{ group.options.length }}\n </span>\n </button>\n }\n @if (group.expanded) {\n <div\n class=\"lib-mat-chip-list-editor__group-body\"\n [class.lib-mat-chip-list-editor__group-body--indented]=\"group.collapsible\"\n [id]=\"hostId() + '-group-' + groupIndex\">\n @for (option of group.options; track option.value+'-'+$index) {\n <mat-chip-option [value]=\"option.value\">{{ option.label }}</mat-chip-option>\n }\n </div>\n }\n </div>\n }\n</mat-chip-listbox>\n} @else {\n<lib-empty-state\n icon=\"search_off\"\n [message]=\"(options() || []).length ? 'No options match your search' : 'No options available'\" />\n}\n"],"names":["i1"],"mappings":";;;;;;;AA0CA;;;AAGG;AACH,MAAM,mBAAmB,GAAG,QAAQ;AAEpC;;;;;;;;;;;;;AAaG;MAaU,0BAA0B,CAAA;AAZvC,IAAA,WAAA,GAAA;QAeqB,IAAA,CAAA,MAAM,GAAG,MAAM,CAChC,CAAA,yBAAA,EAA4B,0BAA0B,CAAC,MAAM,EAAE,CAAA,CAAE,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,QAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAClE;AAEQ,QAAA,IAAA,CAAA,QAAQ,GAAG,K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