ngx-t-forms 3.0.0 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (254) hide show
  1. package/fesm2022/ngx-t-forms-api-endpoint-config.component-CZm3Z_7B.mjs +411 -0
  2. package/fesm2022/ngx-t-forms-api-endpoint-config.component-CZm3Z_7B.mjs.map +1 -0
  3. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-DFApar1W.mjs → ngx-t-forms-auto-complete-input-element.component-IciY6hb3.mjs} +2 -2
  4. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-DFApar1W.mjs.map → ngx-t-forms-auto-complete-input-element.component-IciY6hb3.mjs.map} +1 -1
  5. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-ChCeve-w.mjs → ngx-t-forms-basic-input-input-element.component-CykKxWu0.mjs} +3 -3
  6. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-ChCeve-w.mjs.map → ngx-t-forms-basic-input-input-element.component-CykKxWu0.mjs.map} +1 -1
  7. package/fesm2022/ngx-t-forms-calculated-field-rules.component-CwI-WEX7.mjs +643 -0
  8. package/fesm2022/ngx-t-forms-calculated-field-rules.component-CwI-WEX7.mjs.map +1 -0
  9. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-B54kOArR.mjs → ngx-t-forms-chip-options-creator-editor.component-CO_3EQ_v.mjs} +4 -4
  10. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-CO_3EQ_v.mjs.map +1 -0
  11. package/fesm2022/ngx-t-forms-conditional-display-config.component-Cmf7gDfO.mjs +513 -0
  12. package/fesm2022/ngx-t-forms-conditional-display-config.component-Cmf7gDfO.mjs.map +1 -0
  13. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-CAZv0_uR.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-BHiOEQe4.mjs} +4 -4
  14. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-BHiOEQe4.mjs.map +1 -0
  15. package/fesm2022/ngx-t-forms-data-source-picker.component-CN51SdCK.mjs +261 -0
  16. package/fesm2022/ngx-t-forms-data-source-picker.component-CN51SdCK.mjs.map +1 -0
  17. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-NM2cFs3P.mjs → ngx-t-forms-date-picker-input-element.component-c3OSDXWw.mjs} +2 -2
  18. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-NM2cFs3P.mjs.map → ngx-t-forms-date-picker-input-element.component-c3OSDXWw.mjs.map} +1 -1
  19. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-C-4fqOF0.mjs +166 -0
  20. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-C-4fqOF0.mjs.map +1 -0
  21. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-DLzba2AQ.mjs +373 -0
  22. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-DLzba2AQ.mjs.map +1 -0
  23. package/fesm2022/ngx-t-forms-document-picker.component-9clYsOcl.mjs +1259 -0
  24. package/fesm2022/ngx-t-forms-document-picker.component-9clYsOcl.mjs.map +1 -0
  25. package/fesm2022/ngx-t-forms-editor-input-element.component-BGdZ4evj.mjs +417 -0
  26. package/fesm2022/ngx-t-forms-editor-input-element.component-BGdZ4evj.mjs.map +1 -0
  27. package/fesm2022/{ngx-t-forms-editor-js-input.component-DlsLiHi1.mjs → ngx-t-forms-editor-js-input.component-02HnmInT.mjs} +25 -11
  28. package/fesm2022/ngx-t-forms-editor-js-input.component-02HnmInT.mjs.map +1 -0
  29. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-Km-qgANx.mjs → ngx-t-forms-file-upload-input-element.component-BF7KbSPb.mjs} +2 -2
  30. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-Km-qgANx.mjs.map → ngx-t-forms-file-upload-input-element.component-BF7KbSPb.mjs.map} +1 -1
  31. package/fesm2022/ngx-t-forms-form-input-selector.component-vCj2SCxs.mjs +86 -0
  32. package/fesm2022/ngx-t-forms-form-input-selector.component-vCj2SCxs.mjs.map +1 -0
  33. package/fesm2022/{ngx-t-forms-form-json-view.component-r64GKVhI.mjs → ngx-t-forms-form-json-view.component-Cmw1hHGZ.mjs} +2 -2
  34. package/fesm2022/{ngx-t-forms-form-json-view.component-r64GKVhI.mjs.map → ngx-t-forms-form-json-view.component-Cmw1hHGZ.mjs.map} +1 -1
  35. package/fesm2022/ngx-t-forms-form-payload-projection.component-y9PSIeP1.mjs +179 -0
  36. package/fesm2022/ngx-t-forms-form-payload-projection.component-y9PSIeP1.mjs.map +1 -0
  37. package/fesm2022/{ngx-t-forms-form-section-stepper.component-B3DRJ--U.mjs → ngx-t-forms-form-section-stepper.component-CFdwgxRl.mjs} +4 -4
  38. package/fesm2022/{ngx-t-forms-form-section-stepper.component-B3DRJ--U.mjs.map → ngx-t-forms-form-section-stepper.component-CFdwgxRl.mjs.map} +1 -1
  39. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-BYFynpTn.mjs → ngx-t-forms-forms-builder-menu.component-DisrOv5x.mjs} +5 -5
  40. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-BYFynpTn.mjs.map → ngx-t-forms-forms-builder-menu.component-DisrOv5x.mjs.map} +1 -1
  41. package/fesm2022/{ngx-t-forms-geo-location.component-D2fIbagr.mjs → ngx-t-forms-geo-location.component-D-BhLdx6.mjs} +2 -2
  42. package/fesm2022/{ngx-t-forms-geo-location.component-D2fIbagr.mjs.map → ngx-t-forms-geo-location.component-D-BhLdx6.mjs.map} +1 -1
  43. package/fesm2022/ngx-t-forms-header-template-editor.component-Z5frEhho.mjs +159 -0
  44. package/fesm2022/ngx-t-forms-header-template-editor.component-Z5frEhho.mjs.map +1 -0
  45. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-BgnzErQt.mjs → ngx-t-forms-image-capture-input-element.component-CoJTXMbL.mjs} +2 -2
  46. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-BgnzErQt.mjs.map → ngx-t-forms-image-capture-input-element.component-CoJTXMbL.mjs.map} +1 -1
  47. package/fesm2022/ngx-t-forms-index-D8xr_Sxp.mjs +2 -0
  48. package/fesm2022/ngx-t-forms-index-D8xr_Sxp.mjs.map +1 -0
  49. package/fesm2022/{ngx-t-forms-input-custom.component-Dcoze7U3.mjs → ngx-t-forms-input-custom.component-s1ryJQy4.mjs} +2 -2
  50. package/fesm2022/{ngx-t-forms-input-custom.component-Dcoze7U3.mjs.map → ngx-t-forms-input-custom.component-s1ryJQy4.mjs.map} +1 -1
  51. package/fesm2022/ngx-t-forms-input-editor.component-oIzCTmbx.mjs +190 -0
  52. package/fesm2022/ngx-t-forms-input-editor.component-oIzCTmbx.mjs.map +1 -0
  53. package/fesm2022/{ngx-t-forms-map-mat-options-keys-BsfvYiEU.mjs → ngx-t-forms-map-mat-options-keys-C1kxlZS_.mjs} +2 -3
  54. package/fesm2022/ngx-t-forms-map-mat-options-keys-C1kxlZS_.mjs.map +1 -0
  55. package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-CYtTBtyf.mjs → ngx-t-forms-mat-chip-list-editor.component-wskkKr4y.mjs} +5 -5
  56. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-wskkKr4y.mjs.map +1 -0
  57. package/fesm2022/{ngx-t-forms-mat-slider-editor.component-CTSBrM-j.mjs → ngx-t-forms-mat-slider-editor.component-4buvmLkX.mjs} +3 -3
  58. package/fesm2022/ngx-t-forms-mat-slider-editor.component-4buvmLkX.mjs.map +1 -0
  59. package/fesm2022/{ngx-t-forms-mat-slider-toggle-editor.component-CcYiwx-8.mjs → ngx-t-forms-mat-slider-toggle-editor.component-DX8L0O1k.mjs} +3 -3
  60. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-DX8L0O1k.mjs.map +1 -0
  61. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CEa8ZNKA.mjs → ngx-t-forms-missing-form-configs.component-C1XuXRdn.mjs} +2 -2
  62. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CEa8ZNKA.mjs.map → ngx-t-forms-missing-form-configs.component-C1XuXRdn.mjs.map} +1 -1
  63. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-DklkxNgg.mjs → ngx-t-forms-mscoa-chart-toolbar.component-BJrOTRuQ.mjs} +2 -2
  64. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-DklkxNgg.mjs.map → ngx-t-forms-mscoa-chart-toolbar.component-BJrOTRuQ.mjs.map} +1 -1
  65. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-GyKF31Ve.mjs +447 -0
  66. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-GyKF31Ve.mjs.map +1 -0
  67. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-BrPJPR2R.mjs +905 -0
  68. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-BrPJPR2R.mjs.map +1 -0
  69. package/fesm2022/{ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs → ngx-t-forms-ngx-t-forms-DqAcUfN4.mjs} +2738 -415
  70. package/fesm2022/ngx-t-forms-ngx-t-forms-DqAcUfN4.mjs.map +1 -0
  71. package/fesm2022/{ngx-t-forms-paginated-selection-table-DrXB22iY.mjs → ngx-t-forms-paginated-selection-table-Bk77dBo9.mjs} +2 -2
  72. package/fesm2022/{ngx-t-forms-paginated-selection-table-DrXB22iY.mjs.map → ngx-t-forms-paginated-selection-table-Bk77dBo9.mjs.map} +1 -1
  73. package/fesm2022/ngx-t-forms-payload-template-editor.component-CVzOTLYE.mjs +85 -0
  74. package/fesm2022/ngx-t-forms-payload-template-editor.component-CVzOTLYE.mjs.map +1 -0
  75. package/fesm2022/ngx-t-forms-pipeline-generator.component-7Vfwaqnx.mjs +748 -0
  76. package/fesm2022/ngx-t-forms-pipeline-generator.component-7Vfwaqnx.mjs.map +1 -0
  77. package/fesm2022/{ngx-t-forms-record-list-manager.component-l-2uDVmi.mjs → ngx-t-forms-record-list-manager.component-CfZdqKhY.mjs} +4 -4
  78. package/fesm2022/ngx-t-forms-record-list-manager.component-CfZdqKhY.mjs.map +1 -0
  79. package/fesm2022/ngx-t-forms-required-inputs.component-CK7NIhbq.mjs +272 -0
  80. package/fesm2022/ngx-t-forms-required-inputs.component-CK7NIhbq.mjs.map +1 -0
  81. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-YChv7Arm.mjs +699 -0
  82. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-YChv7Arm.mjs.map +1 -0
  83. package/fesm2022/ngx-t-forms-search-field.component-mR4Kk12C.mjs +38 -0
  84. package/fesm2022/ngx-t-forms-search-field.component-mR4Kk12C.mjs.map +1 -0
  85. package/fesm2022/{ngx-t-forms-section-report.component-BYMcaRE5.mjs → ngx-t-forms-section-report.component-DhSaf85h.mjs} +2 -2
  86. package/fesm2022/{ngx-t-forms-section-report.component-BYMcaRE5.mjs.map → ngx-t-forms-section-report.component-DhSaf85h.mjs.map} +1 -1
  87. package/fesm2022/{ngx-t-forms-select-input-element.component-Nsa3dpvV.mjs → ngx-t-forms-select-input-element.component-D5HFzh35.mjs} +2 -2
  88. package/fesm2022/{ngx-t-forms-select-input-element.component-Nsa3dpvV.mjs.map → ngx-t-forms-select-input-element.component-D5HFzh35.mjs.map} +1 -1
  89. package/fesm2022/ngx-t-forms-selection-options-editor.component-BhmmJOco.mjs +169 -0
  90. package/fesm2022/ngx-t-forms-selection-options-editor.component-BhmmJOco.mjs.map +1 -0
  91. package/fesm2022/{ngx-t-forms-t-workflow-picker.component-DAwP-cWK.mjs → ngx-t-forms-t-workflow-picker.component-D0ttyEex.mjs} +3 -3
  92. package/fesm2022/ngx-t-forms-t-workflow-picker.component-D0ttyEex.mjs.map +1 -0
  93. package/fesm2022/{ngx-t-forms-textarea-input-element.component-DPxUzkAu.mjs → ngx-t-forms-textarea-input-element.component-DWEADTsz.mjs} +2 -2
  94. package/fesm2022/{ngx-t-forms-textarea-input-element.component-DPxUzkAu.mjs.map → ngx-t-forms-textarea-input-element.component-DWEADTsz.mjs.map} +1 -1
  95. package/fesm2022/{ngx-t-forms-toggle-input-element.component-OZre5TJ7.mjs → ngx-t-forms-toggle-input-element.component-XZi6kPnL.mjs} +2 -2
  96. package/fesm2022/{ngx-t-forms-toggle-input-element.component-OZre5TJ7.mjs.map → ngx-t-forms-toggle-input-element.component-XZi6kPnL.mjs.map} +1 -1
  97. package/fesm2022/ngx-t-forms-token-transform-D_wsFbNc.mjs +173 -0
  98. package/fesm2022/ngx-t-forms-token-transform-D_wsFbNc.mjs.map +1 -0
  99. package/fesm2022/ngx-t-forms-validators-config.component-0_Y6bvtE.mjs +574 -0
  100. package/fesm2022/ngx-t-forms-validators-config.component-0_Y6bvtE.mjs.map +1 -0
  101. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-CrDZg3Nl.mjs → ngx-t-forms-workflow-adjudication.component-Gkimmw-X.mjs} +3 -3
  102. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-CrDZg3Nl.mjs.map → ngx-t-forms-workflow-adjudication.component-Gkimmw-X.mjs.map} +1 -1
  103. package/fesm2022/ngx-t-forms.mjs +1 -1
  104. package/package.json +2 -2
  105. package/styles/_editor-mixins.scss +117 -117
  106. package/styles/_signature-pad.scss +26 -26
  107. package/styles/_tokens.scss +148 -148
  108. package/types/ngx-t-forms.d.ts +110 -6
  109. package/fesm2022/ngx-t-forms-auto-complete-input-element.component-7g5cpVfB.mjs +0 -261
  110. package/fesm2022/ngx-t-forms-auto-complete-input-element.component-7g5cpVfB.mjs.map +0 -1
  111. package/fesm2022/ngx-t-forms-basic-input-input-element.component-BhMw2vpl.mjs +0 -225
  112. package/fesm2022/ngx-t-forms-basic-input-input-element.component-BhMw2vpl.mjs.map +0 -1
  113. package/fesm2022/ngx-t-forms-calculated-field-rules.component-BmWnrfWN.mjs +0 -1011
  114. package/fesm2022/ngx-t-forms-calculated-field-rules.component-BmWnrfWN.mjs.map +0 -1
  115. package/fesm2022/ngx-t-forms-calculated-field-rules.component-CJMwqoHL.mjs +0 -643
  116. package/fesm2022/ngx-t-forms-calculated-field-rules.component-CJMwqoHL.mjs.map +0 -1
  117. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-ALkkDotT.mjs +0 -136
  118. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-ALkkDotT.mjs.map +0 -1
  119. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-B54kOArR.mjs.map +0 -1
  120. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-CAZv0_uR.mjs.map +0 -1
  121. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dap7QkKD.mjs +0 -253
  122. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dap7QkKD.mjs.map +0 -1
  123. package/fesm2022/ngx-t-forms-data-source-picker.component-8G28L1Cg.mjs +0 -261
  124. package/fesm2022/ngx-t-forms-data-source-picker.component-8G28L1Cg.mjs.map +0 -1
  125. package/fesm2022/ngx-t-forms-data-source-picker.component-CJ1C1Znp.mjs +0 -419
  126. package/fesm2022/ngx-t-forms-data-source-picker.component-CJ1C1Znp.mjs.map +0 -1
  127. package/fesm2022/ngx-t-forms-date-picker-input-element.component-DjYq63Iv.mjs +0 -231
  128. package/fesm2022/ngx-t-forms-date-picker-input-element.component-DjYq63Iv.mjs.map +0 -1
  129. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-DhU_bhy3.mjs +0 -156
  130. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-DhU_bhy3.mjs.map +0 -1
  131. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-g0wIRj9b.mjs +0 -333
  132. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-g0wIRj9b.mjs.map +0 -1
  133. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-K-KFdCcS.mjs +0 -373
  134. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-K-KFdCcS.mjs.map +0 -1
  135. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-NuPXy_Ms.mjs +0 -543
  136. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-NuPXy_Ms.mjs.map +0 -1
  137. package/fesm2022/ngx-t-forms-document-picker.component-BSG7k3IN.mjs +0 -1259
  138. package/fesm2022/ngx-t-forms-document-picker.component-BSG7k3IN.mjs.map +0 -1
  139. package/fesm2022/ngx-t-forms-document-picker.component-ChGqXHcQ.mjs +0 -1996
  140. package/fesm2022/ngx-t-forms-document-picker.component-ChGqXHcQ.mjs.map +0 -1
  141. package/fesm2022/ngx-t-forms-editor-input-element.component-B8Pk-EVY.mjs +0 -581
  142. package/fesm2022/ngx-t-forms-editor-input-element.component-B8Pk-EVY.mjs.map +0 -1
  143. package/fesm2022/ngx-t-forms-editor-input-element.component-Bb7w-vNw.mjs +0 -417
  144. package/fesm2022/ngx-t-forms-editor-input-element.component-Bb7w-vNw.mjs.map +0 -1
  145. package/fesm2022/ngx-t-forms-editor-js-input.component-DlsLiHi1.mjs.map +0 -1
  146. package/fesm2022/ngx-t-forms-editor-js-input.component-XX6kU8DW.mjs +0 -585
  147. package/fesm2022/ngx-t-forms-editor-js-input.component-XX6kU8DW.mjs.map +0 -1
  148. package/fesm2022/ngx-t-forms-file-upload-input-element.component-RCmUClXv.mjs +0 -447
  149. package/fesm2022/ngx-t-forms-file-upload-input-element.component-RCmUClXv.mjs.map +0 -1
  150. package/fesm2022/ngx-t-forms-form-input-selector.component-0jfD5C0G.mjs +0 -163
  151. package/fesm2022/ngx-t-forms-form-input-selector.component-0jfD5C0G.mjs.map +0 -1
  152. package/fesm2022/ngx-t-forms-form-input-selector.component-D5KYWQ2R.mjs +0 -86
  153. package/fesm2022/ngx-t-forms-form-input-selector.component-D5KYWQ2R.mjs.map +0 -1
  154. package/fesm2022/ngx-t-forms-form-json-view.component-z0nQxpqB.mjs +0 -28
  155. package/fesm2022/ngx-t-forms-form-json-view.component-z0nQxpqB.mjs.map +0 -1
  156. package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs +0 -291
  157. package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs.map +0 -1
  158. package/fesm2022/ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs +0 -179
  159. package/fesm2022/ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs.map +0 -1
  160. package/fesm2022/ngx-t-forms-form-section-stepper.component-UUTHYU-A.mjs +0 -936
  161. package/fesm2022/ngx-t-forms-form-section-stepper.component-UUTHYU-A.mjs.map +0 -1
  162. package/fesm2022/ngx-t-forms-forms-builder-menu.component-DTIAOxGV.mjs +0 -816
  163. package/fesm2022/ngx-t-forms-forms-builder-menu.component-DTIAOxGV.mjs.map +0 -1
  164. package/fesm2022/ngx-t-forms-geo-location.component-DW2b5Zli.mjs +0 -329
  165. package/fesm2022/ngx-t-forms-geo-location.component-DW2b5Zli.mjs.map +0 -1
  166. package/fesm2022/ngx-t-forms-image-capture-input-element.component-Us_NAQSl.mjs +0 -360
  167. package/fesm2022/ngx-t-forms-image-capture-input-element.component-Us_NAQSl.mjs.map +0 -1
  168. package/fesm2022/ngx-t-forms-index-6YIhS6cm.mjs +0 -2
  169. package/fesm2022/ngx-t-forms-index-6YIhS6cm.mjs.map +0 -1
  170. package/fesm2022/ngx-t-forms-index-BPNBX_ve.mjs +0 -2
  171. package/fesm2022/ngx-t-forms-index-BPNBX_ve.mjs.map +0 -1
  172. package/fesm2022/ngx-t-forms-input-custom.component-DQOqy047.mjs +0 -128
  173. package/fesm2022/ngx-t-forms-input-custom.component-DQOqy047.mjs.map +0 -1
  174. package/fesm2022/ngx-t-forms-input-editor.component-3fRj5swF.mjs +0 -512
  175. package/fesm2022/ngx-t-forms-input-editor.component-3fRj5swF.mjs.map +0 -1
  176. package/fesm2022/ngx-t-forms-input-editor.component-B6UKwV4i.mjs +0 -190
  177. package/fesm2022/ngx-t-forms-input-editor.component-B6UKwV4i.mjs.map +0 -1
  178. package/fesm2022/ngx-t-forms-map-mat-options-keys-BsfvYiEU.mjs.map +0 -1
  179. package/fesm2022/ngx-t-forms-map-mat-options-keys-eSc99wdA.mjs +0 -132
  180. package/fesm2022/ngx-t-forms-map-mat-options-keys-eSc99wdA.mjs.map +0 -1
  181. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CN17K5q6.mjs +0 -268
  182. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CN17K5q6.mjs.map +0 -1
  183. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CYtTBtyf.mjs.map +0 -1
  184. package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs +0 -241
  185. package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs.map +0 -1
  186. package/fesm2022/ngx-t-forms-mat-slider-editor.component-CTSBrM-j.mjs.map +0 -1
  187. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-CcYiwx-8.mjs.map +0 -1
  188. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs +0 -180
  189. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs.map +0 -1
  190. package/fesm2022/ngx-t-forms-missing-form-configs.component-AaDfeALs.mjs +0 -114
  191. package/fesm2022/ngx-t-forms-missing-form-configs.component-AaDfeALs.mjs.map +0 -1
  192. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-D0igUV3W.mjs +0 -69
  193. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-D0igUV3W.mjs.map +0 -1
  194. package/fesm2022/ngx-t-forms-mscoa-error-display.component-rzl-fMmd.mjs +0 -200
  195. package/fesm2022/ngx-t-forms-mscoa-error-display.component-rzl-fMmd.mjs.map +0 -1
  196. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-2SspNWtF.mjs +0 -447
  197. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-2SspNWtF.mjs.map +0 -1
  198. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CSGf4XeN.mjs +0 -850
  199. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CSGf4XeN.mjs.map +0 -1
  200. package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-CBuGHwnU.mjs +0 -107
  201. package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-CBuGHwnU.mjs.map +0 -1
  202. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CbQdnVgw.mjs +0 -1665
  203. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CbQdnVgw.mjs.map +0 -1
  204. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-dmRIi9ph.mjs +0 -905
  205. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-dmRIi9ph.mjs.map +0 -1
  206. package/fesm2022/ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs.map +0 -1
  207. package/fesm2022/ngx-t-forms-ngx-t-forms-BefvSS-p.mjs +0 -28237
  208. package/fesm2022/ngx-t-forms-ngx-t-forms-BefvSS-p.mjs.map +0 -1
  209. package/fesm2022/ngx-t-forms-paginated-selection-table-BGNxI2yq.mjs +0 -1024
  210. package/fesm2022/ngx-t-forms-paginated-selection-table-BGNxI2yq.mjs.map +0 -1
  211. package/fesm2022/ngx-t-forms-payload-template-editor.component-DL4ZTTsH.mjs +0 -203
  212. package/fesm2022/ngx-t-forms-payload-template-editor.component-DL4ZTTsH.mjs.map +0 -1
  213. package/fesm2022/ngx-t-forms-payload-template-editor.component-o3qwpvYu.mjs +0 -234
  214. package/fesm2022/ngx-t-forms-payload-template-editor.component-o3qwpvYu.mjs.map +0 -1
  215. package/fesm2022/ngx-t-forms-pipeline-generator.component-BqtdKcN2.mjs +0 -1126
  216. package/fesm2022/ngx-t-forms-pipeline-generator.component-BqtdKcN2.mjs.map +0 -1
  217. package/fesm2022/ngx-t-forms-pipeline-generator.component-DcZPv8-N.mjs +0 -748
  218. package/fesm2022/ngx-t-forms-pipeline-generator.component-DcZPv8-N.mjs.map +0 -1
  219. package/fesm2022/ngx-t-forms-record-list-manager.component-BcANl5Bq.mjs +0 -639
  220. package/fesm2022/ngx-t-forms-record-list-manager.component-BcANl5Bq.mjs.map +0 -1
  221. package/fesm2022/ngx-t-forms-record-list-manager.component-l-2uDVmi.mjs.map +0 -1
  222. package/fesm2022/ngx-t-forms-required-inputs.component-BMmNxeE-.mjs +0 -272
  223. package/fesm2022/ngx-t-forms-required-inputs.component-BMmNxeE-.mjs.map +0 -1
  224. package/fesm2022/ngx-t-forms-required-inputs.component-Dr0P1gin.mjs +0 -451
  225. package/fesm2022/ngx-t-forms-required-inputs.component-Dr0P1gin.mjs.map +0 -1
  226. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BSv_KQIU.mjs +0 -625
  227. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BSv_KQIU.mjs.map +0 -1
  228. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-C3sNmq_H.mjs +0 -444
  229. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-C3sNmq_H.mjs.map +0 -1
  230. package/fesm2022/ngx-t-forms-search-field.component-B2ZO7lqO.mjs +0 -38
  231. package/fesm2022/ngx-t-forms-search-field.component-B2ZO7lqO.mjs.map +0 -1
  232. package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs +0 -72
  233. package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs.map +0 -1
  234. package/fesm2022/ngx-t-forms-section-report.component-yGAjX7Gb.mjs +0 -248
  235. package/fesm2022/ngx-t-forms-section-report.component-yGAjX7Gb.mjs.map +0 -1
  236. package/fesm2022/ngx-t-forms-select-input-element.component-BqtJi4ek.mjs +0 -408
  237. package/fesm2022/ngx-t-forms-select-input-element.component-BqtJi4ek.mjs.map +0 -1
  238. package/fesm2022/ngx-t-forms-selection-options-editor.component-BuXVzo7Z.mjs +0 -169
  239. package/fesm2022/ngx-t-forms-selection-options-editor.component-BuXVzo7Z.mjs.map +0 -1
  240. package/fesm2022/ngx-t-forms-selection-options-editor.component-_glw1cqH.mjs +0 -275
  241. package/fesm2022/ngx-t-forms-selection-options-editor.component-_glw1cqH.mjs.map +0 -1
  242. package/fesm2022/ngx-t-forms-t-workflow-picker.component-CLgN3YM4.mjs +0 -366
  243. package/fesm2022/ngx-t-forms-t-workflow-picker.component-CLgN3YM4.mjs.map +0 -1
  244. package/fesm2022/ngx-t-forms-t-workflow-picker.component-DAwP-cWK.mjs.map +0 -1
  245. package/fesm2022/ngx-t-forms-textarea-input-element.component-SCEBLqJd.mjs +0 -233
  246. package/fesm2022/ngx-t-forms-textarea-input-element.component-SCEBLqJd.mjs.map +0 -1
  247. package/fesm2022/ngx-t-forms-toggle-input-element.component-CoyTMRMa.mjs +0 -305
  248. package/fesm2022/ngx-t-forms-toggle-input-element.component-CoyTMRMa.mjs.map +0 -1
  249. package/fesm2022/ngx-t-forms-validators-config.component-B1Lzs7o2.mjs +0 -1105
  250. package/fesm2022/ngx-t-forms-validators-config.component-B1Lzs7o2.mjs.map +0 -1
  251. package/fesm2022/ngx-t-forms-validators-config.component-CoGSFor3.mjs +0 -574
  252. package/fesm2022/ngx-t-forms-validators-config.component-CoGSFor3.mjs.map +0 -1
  253. package/fesm2022/ngx-t-forms-workflow-adjudication.component-Bz07jv-N.mjs +0 -2923
  254. package/fesm2022/ngx-t-forms-workflow-adjudication.component-Bz07jv-N.mjs.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"ngx-t-forms-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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AA,CAAA,CAAA,CAAA,CAAA,GAAA;;;;"}
@@ -1,268 +0,0 @@
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
@@ -1 +0,0 @@
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,MAAA,EAAA,EAAA,CAA2B;IAG3B,EAAA,CAAA,cAAA,CAAA,CAAA,EAAA,MAAA,EAAA,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,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;;;;"}
@@ -1 +0,0 @@
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;AAC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