ngx-t-forms 2.0.37 → 3.1.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 (158) hide show
  1. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-D_l5sbNh.mjs → ngx-t-forms-auto-complete-input-element.component-FhUHTsUF.mjs} +4 -4
  2. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-D_l5sbNh.mjs.map → ngx-t-forms-auto-complete-input-element.component-FhUHTsUF.mjs.map} +1 -1
  3. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-fJIsRm0v.mjs → ngx-t-forms-basic-input-input-element.component-BJKe9wIA.mjs} +6 -6
  4. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-fJIsRm0v.mjs.map → ngx-t-forms-basic-input-input-element.component-BJKe9wIA.mjs.map} +1 -1
  5. package/fesm2022/ngx-t-forms-calculated-field-rules.component-FQLTI7CX.mjs +643 -0
  6. package/fesm2022/ngx-t-forms-calculated-field-rules.component-FQLTI7CX.mjs.map +1 -0
  7. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-L1kPy15K.mjs → ngx-t-forms-chip-options-creator-editor.component-CJtbprXS.mjs} +4 -4
  8. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-CJtbprXS.mjs.map +1 -0
  9. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-CU6Cp-oK.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-CU6R5h-x.mjs} +4 -4
  10. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-CU6R5h-x.mjs.map +1 -0
  11. package/fesm2022/ngx-t-forms-data-source-picker.component-C8MBbnfz.mjs +261 -0
  12. package/fesm2022/ngx-t-forms-data-source-picker.component-C8MBbnfz.mjs.map +1 -0
  13. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-DsjcLQ5A.mjs → ngx-t-forms-date-picker-input-element.component-Dux6uy66.mjs} +4 -4
  14. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-DsjcLQ5A.mjs.map → ngx-t-forms-date-picker-input-element.component-Dux6uy66.mjs.map} +1 -1
  15. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-SMWrTm5X.mjs +157 -0
  16. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-SMWrTm5X.mjs.map +1 -0
  17. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-uGM93dvc.mjs +373 -0
  18. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-uGM93dvc.mjs.map +1 -0
  19. package/fesm2022/ngx-t-forms-document-picker.component-DIqaaBSl.mjs +1259 -0
  20. package/fesm2022/ngx-t-forms-document-picker.component-DIqaaBSl.mjs.map +1 -0
  21. package/fesm2022/ngx-t-forms-editor-input-element.component-CIELjDty.mjs +417 -0
  22. package/fesm2022/ngx-t-forms-editor-input-element.component-CIELjDty.mjs.map +1 -0
  23. package/fesm2022/ngx-t-forms-editor-js-input.component-C1dI_7rU.mjs +553 -0
  24. package/fesm2022/ngx-t-forms-editor-js-input.component-C1dI_7rU.mjs.map +1 -0
  25. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-_RBYRgn9.mjs → ngx-t-forms-file-upload-input-element.component-CQsKz87N.mjs} +7 -7
  26. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-_RBYRgn9.mjs.map → ngx-t-forms-file-upload-input-element.component-CQsKz87N.mjs.map} +1 -1
  27. package/fesm2022/ngx-t-forms-form-input-selector.component-Dj0jvBdm.mjs +86 -0
  28. package/fesm2022/ngx-t-forms-form-input-selector.component-Dj0jvBdm.mjs.map +1 -0
  29. package/fesm2022/{ngx-t-forms-form-json-view.component-D9rU9vxT.mjs → ngx-t-forms-form-json-view.component-DzJKFl4c.mjs} +2 -2
  30. package/fesm2022/{ngx-t-forms-form-json-view.component-D9rU9vxT.mjs.map → ngx-t-forms-form-json-view.component-DzJKFl4c.mjs.map} +1 -1
  31. package/fesm2022/ngx-t-forms-form-payload-projection.component-y9PSIeP1.mjs +179 -0
  32. package/fesm2022/ngx-t-forms-form-payload-projection.component-y9PSIeP1.mjs.map +1 -0
  33. package/fesm2022/{ngx-t-forms-form-section-stepper.component-CqCL3Bnc.mjs → ngx-t-forms-form-section-stepper.component-DOvVtJGB.mjs} +6 -6
  34. package/fesm2022/{ngx-t-forms-form-section-stepper.component-CqCL3Bnc.mjs.map → ngx-t-forms-form-section-stepper.component-DOvVtJGB.mjs.map} +1 -1
  35. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-wmRDJU4P.mjs → ngx-t-forms-forms-builder-menu.component-CcqyQLf5.mjs} +12 -12
  36. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-wmRDJU4P.mjs.map → ngx-t-forms-forms-builder-menu.component-CcqyQLf5.mjs.map} +1 -1
  37. package/fesm2022/{ngx-t-forms-geo-location.component-CMbBSXe0.mjs → ngx-t-forms-geo-location.component-Bj_qIEqi.mjs} +7 -7
  38. package/fesm2022/{ngx-t-forms-geo-location.component-CMbBSXe0.mjs.map → ngx-t-forms-geo-location.component-Bj_qIEqi.mjs.map} +1 -1
  39. package/fesm2022/ngx-t-forms-header-template-editor.component-DLldVmcN.mjs +129 -0
  40. package/fesm2022/ngx-t-forms-header-template-editor.component-DLldVmcN.mjs.map +1 -0
  41. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-Cbq8OYk7.mjs → ngx-t-forms-image-capture-input-element.component-lwp3IcDt.mjs} +7 -7
  42. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-Cbq8OYk7.mjs.map → ngx-t-forms-image-capture-input-element.component-lwp3IcDt.mjs.map} +1 -1
  43. package/fesm2022/{ngx-t-forms-index-CPNvE4PP.mjs → ngx-t-forms-index-C8NtLE16.mjs} +2 -2
  44. package/fesm2022/ngx-t-forms-index-C8NtLE16.mjs.map +1 -0
  45. package/fesm2022/{ngx-t-forms-input-custom.component-uNVdF9aA.mjs → ngx-t-forms-input-custom.component-DiciFhSS.mjs} +2 -2
  46. package/fesm2022/{ngx-t-forms-input-custom.component-uNVdF9aA.mjs.map → ngx-t-forms-input-custom.component-DiciFhSS.mjs.map} +1 -1
  47. package/fesm2022/ngx-t-forms-input-editor.component-D12hrHOc.mjs +190 -0
  48. package/fesm2022/ngx-t-forms-input-editor.component-D12hrHOc.mjs.map +1 -0
  49. package/fesm2022/{ngx-t-forms-map-mat-options-keys-D0SGS9xQ.mjs → ngx-t-forms-map-mat-options-keys-C2JpMTEc.mjs} +2 -2
  50. package/fesm2022/{ngx-t-forms-map-mat-options-keys-D0SGS9xQ.mjs.map → ngx-t-forms-map-mat-options-keys-C2JpMTEc.mjs.map} +1 -1
  51. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-C1Qrze7K.mjs +167 -0
  52. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-C1Qrze7K.mjs.map +1 -0
  53. package/fesm2022/{ngx-t-forms-mat-slider-editor.component-CTSBrM-j.mjs → ngx-t-forms-mat-slider-editor.component-4buvmLkX.mjs} +3 -3
  54. package/fesm2022/ngx-t-forms-mat-slider-editor.component-4buvmLkX.mjs.map +1 -0
  55. 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
  56. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-DX8L0O1k.mjs.map +1 -0
  57. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CxF6Ljjf.mjs → ngx-t-forms-missing-form-configs.component-BaTR_jzc.mjs} +4 -4
  58. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CxF6Ljjf.mjs.map → ngx-t-forms-missing-form-configs.component-BaTR_jzc.mjs.map} +1 -1
  59. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-BqT5Z8SM.mjs → ngx-t-forms-mscoa-chart-toolbar.component-Dni_bv_G.mjs} +4 -4
  60. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-BqT5Z8SM.mjs.map → ngx-t-forms-mscoa-chart-toolbar.component-Dni_bv_G.mjs.map} +1 -1
  61. package/fesm2022/{ngx-t-forms-mscoa-error-display.component-99DpVSy7.mjs → ngx-t-forms-mscoa-error-display.component-BDPi6w2E.mjs} +3 -3
  62. package/fesm2022/{ngx-t-forms-mscoa-error-display.component-99DpVSy7.mjs.map → ngx-t-forms-mscoa-error-display.component-BDPi6w2E.mjs.map} +1 -1
  63. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-BPQuzR5k.mjs +447 -0
  64. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-BPQuzR5k.mjs.map +1 -0
  65. package/fesm2022/{ngx-t-forms-mscoa-temporary-hint.component-B1Z-IXSL.mjs → ngx-t-forms-mscoa-temporary-hint.component-g7DosiVb.mjs} +3 -3
  66. 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
  67. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-hXWMRFjl.mjs +905 -0
  68. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-hXWMRFjl.mjs.map +1 -0
  69. package/fesm2022/{ngx-t-forms-ngx-t-forms-DQ_h-jPF.mjs → ngx-t-forms-ngx-t-forms-tQEbZK_e.mjs} +2188 -249
  70. package/fesm2022/ngx-t-forms-ngx-t-forms-tQEbZK_e.mjs.map +1 -0
  71. package/fesm2022/{ngx-t-forms-paginated-selection-table-DHwojPhn.mjs → ngx-t-forms-paginated-selection-table-pYY2sWAb.mjs} +8 -8
  72. package/fesm2022/{ngx-t-forms-paginated-selection-table-DHwojPhn.mjs.map → ngx-t-forms-paginated-selection-table-pYY2sWAb.mjs.map} +1 -1
  73. package/fesm2022/ngx-t-forms-payload-template-editor.component-DGCUsTYx.mjs +79 -0
  74. package/fesm2022/ngx-t-forms-payload-template-editor.component-DGCUsTYx.mjs.map +1 -0
  75. package/fesm2022/ngx-t-forms-pipeline-generator.component-D2stBXXC.mjs +748 -0
  76. package/fesm2022/ngx-t-forms-pipeline-generator.component-D2stBXXC.mjs.map +1 -0
  77. package/fesm2022/ngx-t-forms-record-list-manager.component-CtCOIpai.mjs +446 -0
  78. package/fesm2022/ngx-t-forms-record-list-manager.component-CtCOIpai.mjs.map +1 -0
  79. package/fesm2022/ngx-t-forms-required-inputs.component-D9wIdOhg.mjs +272 -0
  80. package/fesm2022/ngx-t-forms-required-inputs.component-D9wIdOhg.mjs.map +1 -0
  81. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-D3sa7sNg.mjs → ngx-t-forms-rest-api-call-setup.component-Gy7Rtmue.mjs} +39 -8
  82. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-Gy7Rtmue.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-D6jakGa5.mjs → ngx-t-forms-section-report.component-U9uQ_Ow9.mjs} +4 -4
  86. package/fesm2022/{ngx-t-forms-section-report.component-D6jakGa5.mjs.map → ngx-t-forms-section-report.component-U9uQ_Ow9.mjs.map} +1 -1
  87. package/fesm2022/{ngx-t-forms-select-input-element.component-CwqIck0h.mjs → ngx-t-forms-select-input-element.component-CxYTmuvV.mjs} +8 -8
  88. package/fesm2022/{ngx-t-forms-select-input-element.component-CwqIck0h.mjs.map → ngx-t-forms-select-input-element.component-CxYTmuvV.mjs.map} +1 -1
  89. package/fesm2022/ngx-t-forms-selection-options-editor.component-BLLejOLG.mjs +169 -0
  90. package/fesm2022/ngx-t-forms-selection-options-editor.component-BLLejOLG.mjs.map +1 -0
  91. package/fesm2022/ngx-t-forms-t-workflow-picker.component-D0ttyEex.mjs +263 -0
  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-D4dEi8Vs.mjs → ngx-t-forms-textarea-input-element.component-75VdPc6z.mjs} +4 -4
  94. package/fesm2022/{ngx-t-forms-textarea-input-element.component-D4dEi8Vs.mjs.map → ngx-t-forms-textarea-input-element.component-75VdPc6z.mjs.map} +1 -1
  95. package/fesm2022/{ngx-t-forms-toggle-input-element.component-BZiTFB0j.mjs → ngx-t-forms-toggle-input-element.component-DQGvEJN-.mjs} +4 -4
  96. package/fesm2022/{ngx-t-forms-toggle-input-element.component-BZiTFB0j.mjs.map → ngx-t-forms-toggle-input-element.component-DQGvEJN-.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-EM7RSWIz.mjs +574 -0
  100. package/fesm2022/ngx-t-forms-validators-config.component-EM7RSWIz.mjs.map +1 -0
  101. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-DD6Fhx06.mjs → ngx-t-forms-workflow-adjudication.component-C1Em-g9e.mjs} +17 -17
  102. package/fesm2022/ngx-t-forms-workflow-adjudication.component-C1Em-g9e.mjs.map +1 -0
  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 +14 -2
  109. package/fesm2022/ngx-t-forms-calculated-field-rules.component-B8Do3h4B.mjs +0 -643
  110. package/fesm2022/ngx-t-forms-calculated-field-rules.component-B8Do3h4B.mjs.map +0 -1
  111. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-L1kPy15K.mjs.map +0 -1
  112. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-CU6Cp-oK.mjs.map +0 -1
  113. package/fesm2022/ngx-t-forms-data-source-picker.component-r7OGAsxo.mjs +0 -261
  114. package/fesm2022/ngx-t-forms-data-source-picker.component-r7OGAsxo.mjs.map +0 -1
  115. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-B8V7IpoK.mjs +0 -156
  116. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-B8V7IpoK.mjs.map +0 -1
  117. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-hKJqVYUY.mjs +0 -373
  118. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-hKJqVYUY.mjs.map +0 -1
  119. package/fesm2022/ngx-t-forms-document-picker.component-f-hz6Vef.mjs +0 -704
  120. package/fesm2022/ngx-t-forms-document-picker.component-f-hz6Vef.mjs.map +0 -1
  121. package/fesm2022/ngx-t-forms-editor-input-element.component-D38U94oj.mjs +0 -294
  122. package/fesm2022/ngx-t-forms-editor-input-element.component-D38U94oj.mjs.map +0 -1
  123. package/fesm2022/ngx-t-forms-editor-js-input.component-D_Jq7sfY.mjs +0 -240
  124. package/fesm2022/ngx-t-forms-editor-js-input.component-D_Jq7sfY.mjs.map +0 -1
  125. package/fesm2022/ngx-t-forms-form-input-selector.component-CUwK3DqG.mjs +0 -86
  126. package/fesm2022/ngx-t-forms-form-input-selector.component-CUwK3DqG.mjs.map +0 -1
  127. package/fesm2022/ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs +0 -179
  128. package/fesm2022/ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs.map +0 -1
  129. package/fesm2022/ngx-t-forms-index-CPNvE4PP.mjs.map +0 -1
  130. package/fesm2022/ngx-t-forms-input-editor.component-BWoKhlI3.mjs +0 -190
  131. package/fesm2022/ngx-t-forms-input-editor.component-BWoKhlI3.mjs.map +0 -1
  132. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-Cu-KiAeY.mjs +0 -66
  133. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-Cu-KiAeY.mjs.map +0 -1
  134. package/fesm2022/ngx-t-forms-mat-slider-editor.component-CTSBrM-j.mjs.map +0 -1
  135. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-CcYiwx-8.mjs.map +0 -1
  136. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-BT-dM_5C.mjs +0 -447
  137. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-BT-dM_5C.mjs.map +0 -1
  138. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-DXAh2Mbm.mjs +0 -905
  139. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-DXAh2Mbm.mjs.map +0 -1
  140. package/fesm2022/ngx-t-forms-ngx-t-forms-DQ_h-jPF.mjs.map +0 -1
  141. package/fesm2022/ngx-t-forms-payload-template-editor.component-CAXdFu4E.mjs +0 -203
  142. package/fesm2022/ngx-t-forms-payload-template-editor.component-CAXdFu4E.mjs.map +0 -1
  143. package/fesm2022/ngx-t-forms-pipeline-generator.component-BJQ-KnmU.mjs +0 -748
  144. package/fesm2022/ngx-t-forms-pipeline-generator.component-BJQ-KnmU.mjs.map +0 -1
  145. package/fesm2022/ngx-t-forms-record-list-manager.component-BoD3S_7u.mjs +0 -358
  146. package/fesm2022/ngx-t-forms-record-list-manager.component-BoD3S_7u.mjs.map +0 -1
  147. package/fesm2022/ngx-t-forms-required-inputs.component-C-E3fQu6.mjs +0 -272
  148. package/fesm2022/ngx-t-forms-required-inputs.component-C-E3fQu6.mjs.map +0 -1
  149. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-D3sa7sNg.mjs.map +0 -1
  150. package/fesm2022/ngx-t-forms-search-field.component-B2ZO7lqO.mjs +0 -38
  151. package/fesm2022/ngx-t-forms-search-field.component-B2ZO7lqO.mjs.map +0 -1
  152. package/fesm2022/ngx-t-forms-selection-options-editor.component-Coj9gnrq.mjs +0 -169
  153. package/fesm2022/ngx-t-forms-selection-options-editor.component-Coj9gnrq.mjs.map +0 -1
  154. package/fesm2022/ngx-t-forms-t-workflow-picker.component-DqFMP1rZ.mjs +0 -204
  155. package/fesm2022/ngx-t-forms-t-workflow-picker.component-DqFMP1rZ.mjs.map +0 -1
  156. package/fesm2022/ngx-t-forms-validators-config.component-B3K9nLxx.mjs +0 -574
  157. package/fesm2022/ngx-t-forms-validators-config.component-B3K9nLxx.mjs.map +0 -1
  158. package/fesm2022/ngx-t-forms-workflow-adjudication.component-DD6Fhx06.mjs.map +0 -1
@@ -0,0 +1,446 @@
1
+ import * as i4 from '@angular/cdk/portal';
2
+ import { ComponentPortal, PortalModule } from '@angular/cdk/portal';
3
+ import { coerceBooleanProperty } from '@angular/cdk/coercion';
4
+ import * as i0 from '@angular/core';
5
+ import { inject, ElementRef, DestroyRef, signal, input, output, computed, effect, Input, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
6
+ import { outputToObservable, takeUntilDestroyed } from '@angular/core/rxjs-interop';
7
+ import { NgControl } from '@angular/forms';
8
+ import * as i2 from '@angular/material/button';
9
+ import { MatButtonModule } from '@angular/material/button';
10
+ import { MatCardModule } from '@angular/material/card';
11
+ import { MatDividerModule } from '@angular/material/divider';
12
+ import * as i5 from '@angular/material/expansion';
13
+ import { MatExpansionModule } from '@angular/material/expansion';
14
+ import { MatFormFieldControl } from '@angular/material/form-field';
15
+ import * as i3 from '@angular/material/icon';
16
+ import { MatIconModule } from '@angular/material/icon';
17
+ import * as i4$1 from '@angular/material/progress-spinner';
18
+ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
19
+ import * as i5$1 from '@angular/material/table';
20
+ import { MatTableDataSource, MatTableModule } from '@angular/material/table';
21
+ import * as i5$2 from '@angular/material/tooltip';
22
+ import { MatTooltipModule } from '@angular/material/tooltip';
23
+ import { Subject } from 'rxjs';
24
+ import { m as NESTED_EDITOR_COMPONENT, t as testAgainstItem, n as safeReturnDeepProperty, _ as _isEqual, a as assignDeepPropertyToObject, E as EmptyStateComponent } from './ngx-t-forms-ngx-t-forms-tQEbZK_e.mjs';
25
+
26
+ /** Synthetic column key for the per-row edit/delete action cell. */
27
+ const ACTIONS_COLUMN = 'actions';
28
+ /**
29
+ * Internal record-list manager. Implements `MatFormFieldControl<unknown[]>` and is
30
+ * embedded by `t-dynamic-data-edit` for `RecordListManager` editor types.
31
+ *
32
+ * Owns only its content (table + edit panel). The parent `mat-form-field` renders
33
+ * the label, hint, and validation errors, so this component adds neither a header
34
+ * nor an inline error list.
35
+ *
36
+ * Per-record editing is delegated to a dynamically-attached `TDynamicDataEditComponent`
37
+ * portal per inner-section element; the portal's `valueChange` output is patched back
38
+ * into the in-edit buffer via the element's `deepBind` path.
39
+ *
40
+ * NOTE: `MatFormFieldControl<T>` mandates plain mutable `value` / `disabled` /
41
+ * `required` / `placeholder` / `id` members, `@Input()` decorators, the
42
+ * `focused` / `touched` / `stateChanges` members, and the `useExisting` provider.
43
+ * These are framework wiring, not defects — the CLAUDE.md bans on `@Input()` /
44
+ * `useExisting` do not apply to MatFormFieldControl integration.
45
+ *
46
+ * @internal Not exported via public-api.ts.
47
+ */
48
+ class RecordListManagerComponent {
49
+ static { this.nextId = 0; }
50
+ #disabled;
51
+ get disabled() {
52
+ return this.#disabled;
53
+ }
54
+ set disabled(value) {
55
+ this.#disabled = coerceBooleanProperty(value);
56
+ this.stateChanges.next();
57
+ }
58
+ #required;
59
+ get required() {
60
+ return this.#required;
61
+ }
62
+ set required(value) {
63
+ this.#required = coerceBooleanProperty(value);
64
+ this.stateChanges.next();
65
+ }
66
+ #placeholder;
67
+ get placeholder() {
68
+ return this.#placeholder;
69
+ }
70
+ set placeholder(value) {
71
+ this.#placeholder = value;
72
+ this.stateChanges.next();
73
+ }
74
+ /**
75
+ * Record rows held by the table. Parent passes heterogeneous payloads
76
+ * (`{}` initial / arrays / null); non-array writes coerce to an empty list.
77
+ */
78
+ get value() {
79
+ return this.#rows();
80
+ }
81
+ set value(val) {
82
+ const next = Array.isArray(val) ? val : [];
83
+ this.#rows.set(next);
84
+ this.onChange(next);
85
+ this.stateChanges.next();
86
+ }
87
+ get shouldLabelFloat() {
88
+ return this.focused || !this.empty;
89
+ }
90
+ get empty() {
91
+ return this.#rows().length === 0;
92
+ }
93
+ get errorState() {
94
+ const requiredUnset = this.empty && this.#required && this.touched;
95
+ const ngControlError = this.ngControl?.errors != null;
96
+ const externalError = (this.errors?.length ?? 0) > 0;
97
+ return requiredUnset || ngControlError || externalError;
98
+ }
99
+ #elementRef;
100
+ #destroyRef;
101
+ /** The component portalled per record — injected to avoid a circular import. */
102
+ #nestedEditor;
103
+ constructor() {
104
+ // --- MatFormFieldControl wiring (plain mutable members, framework-mandated) ---
105
+ this.stateChanges = new Subject();
106
+ this.controlType = 'lib-record-list-manager';
107
+ this.focused = false;
108
+ this.touched = false;
109
+ this.autofilled = false;
110
+ this.id = `lib-record-list-manager-${RecordListManagerComponent.nextId++}`;
111
+ this.describedBy = '';
112
+ /** Validation errors surfaced by the parent for error-state derivation. */
113
+ this.errors = [];
114
+ this.#disabled = false;
115
+ this.#required = false;
116
+ this.#placeholder = '';
117
+ // --- DI ---
118
+ this.ngControl = inject(NgControl, { self: true, optional: true });
119
+ this.#elementRef = inject(ElementRef);
120
+ this.#destroyRef = inject(DestroyRef);
121
+ /** The component portalled per record — injected to avoid a circular import. */
122
+ this.#nestedEditor = inject(NESTED_EDITOR_COMPONENT);
123
+ // --- ControlValueAccessor ---
124
+ this.onChange = () => {
125
+ /* noop until registered */
126
+ };
127
+ this.onTouched = () => {
128
+ /* noop until registered */
129
+ };
130
+ // --- Internal reactive state (signal-first) ---
131
+ /** Backing rows; the `MatTableDataSource` is kept in sync via an effect. */
132
+ this.#rows = signal([], ...(ngDevMode ? [{ debugName: "#rows" }] : /* istanbul ignore next */ []));
133
+ /** Table data source whose `.data` mirrors `#rows()`. */
134
+ this.dataSource = new MatTableDataSource([]);
135
+ /** Row currently being edited, or `null` when no edit is in progress. */
136
+ this.#inEdit = signal(null, ...(ngDevMode ? [{ debugName: "#inEdit" }] : /* istanbul ignore next */ []));
137
+ /** Inner editor sections derived from the active editor config. */
138
+ this.#sections = signal([], ...(ngDevMode ? [{ debugName: "#sections" }] : /* istanbul ignore next */ []));
139
+ /** Lazily-built portals keyed by inner-section element id. */
140
+ this.#portals = signal({}, ...(ngDevMode ? [{ debugName: "#portals" }] : /* istanbul ignore next */ []));
141
+ /** Active per-element portal output subscriptions, keyed by element id. */
142
+ this.#portalSubscriptions = new Map();
143
+ /** Form input definitions forwarded into the dynamic editor portals. */
144
+ this.formInputs = input([], ...(ngDevMode ? [{ debugName: "formInputs" }] : /* istanbul ignore next */ []));
145
+ /** Editor configuration for this record-list element. */
146
+ this.editorConfig = input(undefined, ...(ngDevMode ? [{ debugName: "editorConfig" }] : /* istanbul ignore next */ []));
147
+ /** Emits whenever the record list value changes. */
148
+ this.valueChange = output();
149
+ // --- Template-facing derived state ---
150
+ this.inEditRow = this.#inEdit.asReadonly();
151
+ this.portals = this.#portals.asReadonly();
152
+ /**
153
+ * Inner sections with each element list narrowed to the elements whose
154
+ * `additionalTest` entries ALL pass against the record being edited — the same
155
+ * rule `isElementApplicable` applies to top-level editor elements.
156
+ *
157
+ * An element without `additionalTest` always shows. When a section hides nothing,
158
+ * the original section object is returned, and when no section hides anything the
159
+ * original array is returned, so consumers that never configured a test (the
160
+ * reports / dashboard chart config, for one) get object-identical output and
161
+ * behave exactly as before.
162
+ */
163
+ this.visibleSections = computed(() => {
164
+ const record = this.#inEdit();
165
+ const sections = this.#sections();
166
+ let narrowed = false;
167
+ const next = sections.map((section) => {
168
+ const elements = section.elements.filter((element) => (element.additionalTest ?? []).every((test) => testAgainstItem(test, record)));
169
+ if (elements.length === section.elements.length) {
170
+ return section;
171
+ }
172
+ narrowed = true;
173
+ return { ...section, elements };
174
+ });
175
+ return narrowed ? next : sections;
176
+ }, ...(ngDevMode ? [{ debugName: "visibleSections" }] : /* istanbul ignore next */ []));
177
+ this.tableColumns = computed(() => [
178
+ ...(this.editorConfig()?.options ?? []).map((opt) => ({
179
+ label: String(opt.label),
180
+ value: String(opt.value),
181
+ })),
182
+ { label: ' ', value: ACTIONS_COLUMN },
183
+ ], ...(ngDevMode ? [{ debugName: "tableColumns" }] : /* istanbul ignore next */ []));
184
+ this.displayedColumns = computed(() => this.tableColumns().map((c) => c.value), ...(ngDevMode ? [{ debugName: "displayedColumns" }] : /* istanbul ignore next */ []));
185
+ this.rowCount = computed(() => this.#rows().length, ...(ngDevMode ? [{ debugName: "rowCount" }] : /* istanbul ignore next */ []));
186
+ this.isActionsColumn = (column) => column === ACTIONS_COLUMN;
187
+ /**
188
+ * Whether the in-edit record may be saved: every `required` inner element must
189
+ * resolve to a non-empty value via its `deepBind` path.
190
+ *
191
+ * Only currently-visible elements are considered — a `required` element hidden by
192
+ * its own `additionalTest` cannot be filled in, so counting it would leave the
193
+ * save button permanently disabled.
194
+ */
195
+ this.canSaveRecord = computed(() => {
196
+ const editing = this.#inEdit();
197
+ if (!editing || !this.editorConfig()) {
198
+ return false;
199
+ }
200
+ for (const section of this.visibleSections()) {
201
+ for (const element of section.elements) {
202
+ if (!element.required) {
203
+ continue;
204
+ }
205
+ const { value } = safeReturnDeepProperty(editing, element.deepBind ?? []);
206
+ if (value == null || value === '') {
207
+ return false;
208
+ }
209
+ }
210
+ }
211
+ return true;
212
+ }, ...(ngDevMode ? [{ debugName: "canSaveRecord" }] : /* istanbul ignore next */ []));
213
+ // --- Effects (framework-state sync, not signal writes within) ---
214
+ /** Mirror the rows signal into the Material table data source. */
215
+ this.tableSync = effect(() => {
216
+ this.dataSource.data = this.#rows();
217
+ }, ...(ngDevMode ? [{ debugName: "tableSync" }] : /* istanbul ignore next */ []));
218
+ /**
219
+ * Rebuild the inner-section list and portal map whenever the editor config
220
+ * changes. Portals are recreated per config so a stale `ComponentPortal`
221
+ * (already attached) is never re-used.
222
+ */
223
+ this.configSync = effect(() => {
224
+ const next = this.editorConfig()?.secondaryElementEditorConfig ?? [];
225
+ if (_isEqual(this.#sections(), next)) {
226
+ return;
227
+ }
228
+ this.#teardownPortalSubscriptions();
229
+ this.#sections.set(next);
230
+ const portals = {};
231
+ for (const section of next) {
232
+ for (const element of section.elements) {
233
+ portals[element.id] = new ComponentPortal(this.#nestedEditor);
234
+ }
235
+ }
236
+ this.#portals.set(portals);
237
+ }, ...(ngDevMode ? [{ debugName: "configSync" }] : /* istanbul ignore next */ []));
238
+ if (this.ngControl != null) {
239
+ this.ngControl.valueAccessor = this;
240
+ }
241
+ this.#destroyRef.onDestroy(() => {
242
+ this.stateChanges.complete();
243
+ this.#teardownPortalSubscriptions();
244
+ });
245
+ }
246
+ writeValue(value) {
247
+ this.#rows.set(Array.isArray(value) ? value : []);
248
+ this.stateChanges.next();
249
+ }
250
+ registerOnChange(fn) {
251
+ this.onChange = fn;
252
+ }
253
+ registerOnTouched(fn) {
254
+ this.onTouched = fn;
255
+ }
256
+ setDisabledState(isDisabled) {
257
+ this.disabled = isDisabled;
258
+ }
259
+ setDescribedByIds(ids) {
260
+ this.describedBy = ids.join(' ');
261
+ this.#elementRef.nativeElement.setAttribute('aria-describedby', this.describedBy);
262
+ this.stateChanges.next();
263
+ }
264
+ onContainerClick() {
265
+ this.markAsTouched();
266
+ if (!this.focused) {
267
+ this.focused = true;
268
+ this.stateChanges.next();
269
+ }
270
+ }
271
+ markAsTouched() {
272
+ if (!this.touched) {
273
+ this.touched = true;
274
+ this.onTouched();
275
+ this.stateChanges.next();
276
+ }
277
+ }
278
+ // --- Internal reactive state (signal-first) ---
279
+ /** Backing rows; the `MatTableDataSource` is kept in sync via an effect. */
280
+ #rows;
281
+ /** Row currently being edited, or `null` when no edit is in progress. */
282
+ #inEdit;
283
+ /** Inner editor sections derived from the active editor config. */
284
+ #sections;
285
+ /** Lazily-built portals keyed by inner-section element id. */
286
+ #portals;
287
+ /** Active per-element portal output subscriptions, keyed by element id. */
288
+ #portalSubscriptions;
289
+ /**
290
+ * A cell's text. Rows are heterogeneous wrapper-defined records, so a column may
291
+ * hold anything; this renders it as one line and an absent value as an empty cell
292
+ * rather than the string `undefined`.
293
+ *
294
+ * Also the `title` for the cell, which is what makes truncation safe — the full
295
+ * value stays readable on hover instead of being lost to the ellipsis.
296
+ *
297
+ * @param row - The record being rendered.
298
+ * @param column - The row key this column shows.
299
+ * @returns The cell's display text, or `''` when the record has no such value.
300
+ */
301
+ cellText(row, column) {
302
+ const value = row[column];
303
+ return value == null ? '' : String(value);
304
+ }
305
+ // --- Record actions ---
306
+ addNewItem() {
307
+ this.#inEdit.set({});
308
+ }
309
+ editItem(row) {
310
+ this.#inEdit.set(row);
311
+ }
312
+ cancelEdit() {
313
+ this.#inEdit.set(null);
314
+ }
315
+ saveRecord() {
316
+ const editing = this.#inEdit();
317
+ if (!editing) {
318
+ return;
319
+ }
320
+ let next;
321
+ if (editing.id != null) {
322
+ next = this.value.map((item) => (item.id === editing.id ? editing : item));
323
+ }
324
+ else {
325
+ next = [...this.value, { ...editing, id: crypto.randomUUID() }];
326
+ }
327
+ this.value = next;
328
+ this.#inEdit.set(null);
329
+ this.valueChange.emit(this.value);
330
+ }
331
+ removeItem(item) {
332
+ this.value = this.value.filter((row) => row.id !== item.id);
333
+ if (this.#inEdit()?.id === item.id) {
334
+ this.#inEdit.set(null);
335
+ }
336
+ this.valueChange.emit(this.value);
337
+ }
338
+ /**
339
+ * Wire a freshly-attached per-record editor portal: push the current inputs in,
340
+ * and patch the in-edit buffer whenever the inner editor emits a value. The
341
+ * subscription is keyed by element id and torn down on config change / destroy.
342
+ *
343
+ * This also runs on RE-attach, because an element hidden by `additionalTest` has
344
+ * its portal outlet destroyed and a brand-new one created when it comes back:
345
+ *
346
+ * - Double-attach cannot happen. `CdkPortalOutlet.ngOnDestroy` disposes the outlet,
347
+ * which detaches the portal and nulls its `_attachedHost`, so the same
348
+ * `ComponentPortal` instance is legitimately re-attachable to the new outlet.
349
+ * Only the outlet is marked disposed, and that one is gone.
350
+ * - Double-subscribe cannot happen either. The previous subscription for this
351
+ * element id is unsubscribed below before the new one replaces it, and it would
352
+ * in any case have completed already: `outputToObservable` completes when the
353
+ * emitting component is destroyed, which also unregisters the
354
+ * `takeUntilDestroyed` hook rather than accumulating one per attach.
355
+ */
356
+ onPortalAttached(portalRef, element) {
357
+ const componentRef = portalRef;
358
+ componentRef.setInput('formInputs', this.formInputs());
359
+ componentRef.setInput('editorConfig', element);
360
+ componentRef.setInput('data', this.#inEdit());
361
+ this.#portalSubscriptions.get(element.id)?.unsubscribe();
362
+ const sub = outputToObservable(componentRef.instance.valueChange)
363
+ .pipe(takeUntilDestroyed(this.#destroyRef))
364
+ .subscribe((event) => {
365
+ const current = this.#inEdit();
366
+ const draft = (current ? structuredClone(current) : {});
367
+ this.#applyClearOnChange(draft, element, current, event);
368
+ const patched = assignDeepPropertyToObject(draft, element.deepBind ?? [], event);
369
+ this.#inEdit.set(patched);
370
+ componentRef.setInput('data', patched);
371
+ componentRef.changeDetectorRef.markForCheck();
372
+ });
373
+ this.#portalSubscriptions.set(element.id, sub);
374
+ }
375
+ /**
376
+ * Blanks the paths an element declares in `clearOnChange`, so choosing one of a
377
+ * pair of mutually exclusive settings drops the other one.
378
+ *
379
+ * Guarded, unlike the top-level editors: it fires only when the element's own
380
+ * bound value moves AWAY from a value the record already carried. The nested
381
+ * editor emits once shortly after every attach — replaying the stored value, or
382
+ * `defaultValue` when the bound key is absent — so an unguarded clear would wipe
383
+ * sibling fields merely because an administrator opened an existing record, and
384
+ * again every time a hidden element was re-shown. Elements without
385
+ * `clearOnChange` are untouched.
386
+ */
387
+ #applyClearOnChange(draft, element, current, nextValue) {
388
+ const paths = element.clearOnChange;
389
+ if (!paths || paths.length === 0) {
390
+ return;
391
+ }
392
+ const { value: previousValue } = safeReturnDeepProperty(current, element.deepBind ?? []);
393
+ // Never set before: this is the first explicit choice, not a change away from
394
+ // something, so there is nothing the administrator asked to discard.
395
+ if (previousValue === undefined || previousValue === '') {
396
+ return;
397
+ }
398
+ if (_isEqual(previousValue, nextValue)) {
399
+ return;
400
+ }
401
+ for (const path of paths) {
402
+ assignDeepPropertyToObject(draft, path, undefined);
403
+ }
404
+ }
405
+ #teardownPortalSubscriptions() {
406
+ this.#portalSubscriptions.forEach((sub) => sub.unsubscribe());
407
+ this.#portalSubscriptions.clear();
408
+ }
409
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: RecordListManagerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
410
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: RecordListManagerComponent, isStandalone: true, selector: "lib-record-list-manager", inputs: { mapToData: { classPropertyName: "mapToData", publicName: "mapToData", isSignal: false, isRequired: false, transformFunction: null }, errors: { classPropertyName: "errors", publicName: "errors", isSignal: false, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: false, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: false, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: false, isRequired: false, transformFunction: null }, formInputs: { classPropertyName: "formInputs", publicName: "formInputs", isSignal: true, isRequired: false, transformFunction: null }, editorConfig: { classPropertyName: "editorConfig", publicName: "editorConfig", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { properties: { "id": "id", "attr.aria-describedby": "describedBy", "class.lib-record-list-manager--floating": "shouldLabelFloat" }, classAttribute: "lib-record-list-manager" }, providers: [{ provide: MatFormFieldControl, useExisting: RecordListManagerComponent }], ngImport: i0, template: "<!--\r\n The card clips to its radius; the inner element is the ONLY scroll region. Without\r\n that split a table wider than the editor panel was simply cut off, taking the row\r\n actions with it \u2014 unreachable, with nothing to indicate they were there.\r\n-->\r\n<div class=\"lib-record-list-manager__table\">\r\n <div class=\"lib-record-list-manager__scroll\">\r\n <table mat-table [dataSource]=\"dataSource\" class=\"lib-record-list-manager__grid\">\r\n @for (col of tableColumns(); track col.value) {\r\n <!--\r\n `stickyEnd` pins the actions column to the right edge, so edit and delete\r\n stay reachable however far the table is scrolled. Material's own mechanism\r\n rather than hand-rolled `position: sticky`, which it already handles\r\n correctly across the table's collapsed borders.\r\n -->\r\n <ng-container [matColumnDef]=\"col.value\" [stickyEnd]=\"isActionsColumn(col.value)\">\r\n <th mat-header-cell *matHeaderCellDef scope=\"col\">{{ col.label }}</th>\r\n <td mat-cell *matCellDef=\"let row\" class=\"lib-record-list-manager__cell\">\r\n @if (isActionsColumn(col.value)) {\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n class=\"lib-record-list-manager__action\"\r\n matTooltip=\"Edit\"\r\n aria-label=\"Edit record\"\r\n [disabled]=\"disabled\"\r\n (click)=\"editItem(row)\"\r\n >\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n color=\"warn\"\r\n class=\"lib-record-list-manager__action\"\r\n matTooltip=\"Delete\"\r\n aria-label=\"Delete record\"\r\n [disabled]=\"disabled\"\r\n (click)=\"removeItem(row)\"\r\n >\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n } @else {\r\n <!--\r\n Truncated rather than allowed to widen the column: one long value in\r\n one row should not push every other column out of view. The full text\r\n stays reachable on hover and to assistive tech.\r\n -->\r\n <span class=\"lib-record-list-manager__cell-text\" [title]=\"cellText(row, col.value)\">\r\n {{ cellText(row, col.value) }}\r\n </span>\r\n }\r\n </td>\r\n </ng-container>\r\n }\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns()\"></tr>\r\n <tr\r\n mat-row\r\n *matRowDef=\"let row; columns: displayedColumns()\"\r\n class=\"lib-record-list-manager__row\"\r\n ></tr>\r\n </table>\r\n </div>\r\n\r\n @if (rowCount() === 0) {\r\n <lib-empty-state\r\n icon=\"inbox\"\r\n message=\"No records yet. Use Add Record to get started.\"\r\n ></lib-empty-state>\r\n }\r\n</div>\r\n\r\n@if (inEditRow(); as editing) {\r\n <div class=\"lib-record-list-manager__editor\">\r\n <mat-accordion class=\"lib-record-list-manager__sections\" togglePosition=\"after\">\r\n @for (section of visibleSections(); track section.id) {\r\n <mat-expansion-panel>\r\n <mat-expansion-panel-header>\r\n <mat-panel-title class=\"lib-record-list-manager__section-title\">\r\n <span>{{ section.label }}</span>\r\n @if (section.showItemValue && editing[section.showItemValue] != null) {\r\n <span class=\"lib-record-list-manager__section-value\">\r\n {{ editing[section.showItemValue] }}\r\n </span>\r\n }\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n\r\n @for (element of section.elements; track element.id) {\r\n <div class=\"lib-record-list-manager__field\">\r\n @defer (on viewport) {\r\n <ng-template\r\n [cdkPortalOutlet]=\"portals()[element.id]\"\r\n (attached)=\"onPortalAttached($event, element)\"\r\n ></ng-template>\r\n } @placeholder {\r\n <div class=\"lib-record-list-manager__loading\">\r\n <mat-spinner diameter=\"18\"></mat-spinner>\r\n </div>\r\n }\r\n </div>\r\n }\r\n </mat-expansion-panel>\r\n }\r\n </mat-accordion>\r\n\r\n <div class=\"lib-record-list-manager__actions\">\r\n <button type=\"button\" mat-button color=\"primary\" (click)=\"cancelEdit()\">Cancel</button>\r\n <button\r\n type=\"button\"\r\n mat-stroked-button\r\n color=\"primary\"\r\n [disabled]=\"!canSaveRecord()\"\r\n (click)=\"saveRecord()\"\r\n >\r\n {{ editing.id ? 'Update' : 'Save new' }} record\r\n <mat-icon>save</mat-icon>\r\n </button>\r\n </div>\r\n </div>\r\n} @else {\r\n <div class=\"lib-record-list-manager__actions lib-record-list-manager__actions--list\">\r\n <span class=\"lib-record-list-manager__count\">Records ({{ rowCount() }})</span>\r\n <button\r\n type=\"button\"\r\n mat-stroked-button\r\n color=\"primary\"\r\n matTooltip=\"Add a new record\"\r\n aria-label=\"Add a new record\"\r\n [disabled]=\"disabled\"\r\n (click)=\"addNewItem()\"\r\n >\r\n <mat-icon>add</mat-icon>\r\n Add Record\r\n </button>\r\n </div>\r\n}\r\n", styles: [":host{display:block}.lib-record-list-manager__table{background:var(--lib-forms-surface);border:1px solid color-mix(in srgb,var(--lib-forms-outline) 15%,transparent);border-radius:var(--lib-forms-radius-lg, 12px);box-shadow:var(--lib-forms-shadow-resting);overflow:hidden}.lib-record-list-manager__scroll{width:100%;overflow-x:auto}.lib-record-list-manager__grid{width:100%;background:transparent}.lib-record-list-manager__grid .mat-mdc-header-row,.lib-record-list-manager__grid .lib-record-list-manager__row{height:auto}.lib-record-list-manager__grid .mat-mdc-header-cell{padding:.5rem .75rem;font-size:.625rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;white-space:nowrap;color:var(--lib-forms-on-surface-variant)}.lib-record-list-manager__row{transition:background-color var(--lib-forms-duration-hover) var(--lib-forms-easing)}.lib-record-list-manager__row:hover{background:color-mix(in srgb,var(--lib-forms-primary) 6%,transparent)}.lib-record-list-manager__grid .lib-record-list-manager__cell{padding:.4375rem .75rem;font-size:.8125rem;line-height:1.35;color:var(--lib-forms-on-surface);vertical-align:middle}.lib-record-list-manager__cell-text{display:block;max-width:18rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lib-record-list-manager__grid .mat-column-actions{width:1%;padding-right:.5rem;text-align:right;white-space:nowrap;background:color-mix(in srgb,var(--lib-forms-primary) 0%,var(--lib-forms-surface))}.lib-record-list-manager__grid .mat-mdc-header-cell.mat-column-actions{background:color-mix(in srgb,var(--lib-forms-primary) 4%,var(--lib-forms-surface))}.lib-record-list-manager__row:hover .mat-column-actions{background:color-mix(in srgb,var(--lib-forms-primary) 6%,var(--lib-forms-surface))}.lib-record-list-manager__action{--mdc-icon-button-state-layer-size: 2rem}.lib-record-list-manager__editor{margin-top:1.5rem;display:flex;flex-direction:column;gap:1.5rem}.lib-record-list-manager__sections{display:block}.lib-record-list-manager__section-title{display:flex;align-items:center;gap:.75rem;width:100%}.lib-record-list-manager__section-value{margin-left:auto;font-size:.8125rem;color:var(--lib-forms-on-surface-variant)}.lib-record-list-manager__field{padding:.5rem 0 1.5rem}.lib-record-list-manager__loading{display:flex;align-items:center;justify-content:center;padding:2rem}.lib-record-list-manager__actions{display:flex;align-items:center;justify-content:flex-end;gap:.75rem}.lib-record-list-manager__actions--list{margin-top:1.5rem}.lib-record-list-manager__count{margin-right:auto;font-size:.8125rem;color:var(--lib-forms-on-surface-variant)}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatCardModule }, { kind: "ngmodule", type: MatDividerModule }, { kind: "ngmodule", type: MatExpansionModule }, { kind: "directive", type: i5.MatAccordion, selector: "mat-accordion", inputs: ["hideToggle", "displayMode", "togglePosition"], exportAs: ["matAccordion"] }, { kind: "component", type: i5.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i5.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: i5.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4$1.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatTableModule }, { kind: "component", type: i5$1.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i5$1.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i5$1.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i5$1.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i5$1.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i5$1.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i5$1.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i5$1.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i5$1.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i5$1.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5$2.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: PortalModule }, { kind: "component", type: EmptyStateComponent, selector: "lib-empty-state", inputs: ["icon", "message"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, deferBlockDependencies: [() => [i4.CdkPortalOutlet]] }); }
411
+ }
412
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: RecordListManagerComponent, decorators: [{
413
+ type: Component,
414
+ args: [{ selector: 'lib-record-list-manager', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, imports: [
415
+ MatButtonModule,
416
+ MatCardModule,
417
+ MatDividerModule,
418
+ MatExpansionModule,
419
+ MatIconModule,
420
+ MatProgressSpinnerModule,
421
+ MatTableModule,
422
+ MatTooltipModule,
423
+ PortalModule,
424
+ EmptyStateComponent,
425
+ ], providers: [{ provide: MatFormFieldControl, useExisting: RecordListManagerComponent }], host: {
426
+ 'class': 'lib-record-list-manager',
427
+ '[id]': 'id',
428
+ '[attr.aria-describedby]': 'describedBy',
429
+ '[class.lib-record-list-manager--floating]': 'shouldLabelFloat',
430
+ }, template: "<!--\r\n The card clips to its radius; the inner element is the ONLY scroll region. Without\r\n that split a table wider than the editor panel was simply cut off, taking the row\r\n actions with it \u2014 unreachable, with nothing to indicate they were there.\r\n-->\r\n<div class=\"lib-record-list-manager__table\">\r\n <div class=\"lib-record-list-manager__scroll\">\r\n <table mat-table [dataSource]=\"dataSource\" class=\"lib-record-list-manager__grid\">\r\n @for (col of tableColumns(); track col.value) {\r\n <!--\r\n `stickyEnd` pins the actions column to the right edge, so edit and delete\r\n stay reachable however far the table is scrolled. Material's own mechanism\r\n rather than hand-rolled `position: sticky`, which it already handles\r\n correctly across the table's collapsed borders.\r\n -->\r\n <ng-container [matColumnDef]=\"col.value\" [stickyEnd]=\"isActionsColumn(col.value)\">\r\n <th mat-header-cell *matHeaderCellDef scope=\"col\">{{ col.label }}</th>\r\n <td mat-cell *matCellDef=\"let row\" class=\"lib-record-list-manager__cell\">\r\n @if (isActionsColumn(col.value)) {\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n class=\"lib-record-list-manager__action\"\r\n matTooltip=\"Edit\"\r\n aria-label=\"Edit record\"\r\n [disabled]=\"disabled\"\r\n (click)=\"editItem(row)\"\r\n >\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n color=\"warn\"\r\n class=\"lib-record-list-manager__action\"\r\n matTooltip=\"Delete\"\r\n aria-label=\"Delete record\"\r\n [disabled]=\"disabled\"\r\n (click)=\"removeItem(row)\"\r\n >\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n } @else {\r\n <!--\r\n Truncated rather than allowed to widen the column: one long value in\r\n one row should not push every other column out of view. The full text\r\n stays reachable on hover and to assistive tech.\r\n -->\r\n <span class=\"lib-record-list-manager__cell-text\" [title]=\"cellText(row, col.value)\">\r\n {{ cellText(row, col.value) }}\r\n </span>\r\n }\r\n </td>\r\n </ng-container>\r\n }\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns()\"></tr>\r\n <tr\r\n mat-row\r\n *matRowDef=\"let row; columns: displayedColumns()\"\r\n class=\"lib-record-list-manager__row\"\r\n ></tr>\r\n </table>\r\n </div>\r\n\r\n @if (rowCount() === 0) {\r\n <lib-empty-state\r\n icon=\"inbox\"\r\n message=\"No records yet. Use Add Record to get started.\"\r\n ></lib-empty-state>\r\n }\r\n</div>\r\n\r\n@if (inEditRow(); as editing) {\r\n <div class=\"lib-record-list-manager__editor\">\r\n <mat-accordion class=\"lib-record-list-manager__sections\" togglePosition=\"after\">\r\n @for (section of visibleSections(); track section.id) {\r\n <mat-expansion-panel>\r\n <mat-expansion-panel-header>\r\n <mat-panel-title class=\"lib-record-list-manager__section-title\">\r\n <span>{{ section.label }}</span>\r\n @if (section.showItemValue && editing[section.showItemValue] != null) {\r\n <span class=\"lib-record-list-manager__section-value\">\r\n {{ editing[section.showItemValue] }}\r\n </span>\r\n }\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n\r\n @for (element of section.elements; track element.id) {\r\n <div class=\"lib-record-list-manager__field\">\r\n @defer (on viewport) {\r\n <ng-template\r\n [cdkPortalOutlet]=\"portals()[element.id]\"\r\n (attached)=\"onPortalAttached($event, element)\"\r\n ></ng-template>\r\n } @placeholder {\r\n <div class=\"lib-record-list-manager__loading\">\r\n <mat-spinner diameter=\"18\"></mat-spinner>\r\n </div>\r\n }\r\n </div>\r\n }\r\n </mat-expansion-panel>\r\n }\r\n </mat-accordion>\r\n\r\n <div class=\"lib-record-list-manager__actions\">\r\n <button type=\"button\" mat-button color=\"primary\" (click)=\"cancelEdit()\">Cancel</button>\r\n <button\r\n type=\"button\"\r\n mat-stroked-button\r\n color=\"primary\"\r\n [disabled]=\"!canSaveRecord()\"\r\n (click)=\"saveRecord()\"\r\n >\r\n {{ editing.id ? 'Update' : 'Save new' }} record\r\n <mat-icon>save</mat-icon>\r\n </button>\r\n </div>\r\n </div>\r\n} @else {\r\n <div class=\"lib-record-list-manager__actions lib-record-list-manager__actions--list\">\r\n <span class=\"lib-record-list-manager__count\">Records ({{ rowCount() }})</span>\r\n <button\r\n type=\"button\"\r\n mat-stroked-button\r\n color=\"primary\"\r\n matTooltip=\"Add a new record\"\r\n aria-label=\"Add a new record\"\r\n [disabled]=\"disabled\"\r\n (click)=\"addNewItem()\"\r\n >\r\n <mat-icon>add</mat-icon>\r\n Add Record\r\n </button>\r\n </div>\r\n}\r\n", styles: [":host{display:block}.lib-record-list-manager__table{background:var(--lib-forms-surface);border:1px solid color-mix(in srgb,var(--lib-forms-outline) 15%,transparent);border-radius:var(--lib-forms-radius-lg, 12px);box-shadow:var(--lib-forms-shadow-resting);overflow:hidden}.lib-record-list-manager__scroll{width:100%;overflow-x:auto}.lib-record-list-manager__grid{width:100%;background:transparent}.lib-record-list-manager__grid .mat-mdc-header-row,.lib-record-list-manager__grid .lib-record-list-manager__row{height:auto}.lib-record-list-manager__grid .mat-mdc-header-cell{padding:.5rem .75rem;font-size:.625rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;white-space:nowrap;color:var(--lib-forms-on-surface-variant)}.lib-record-list-manager__row{transition:background-color var(--lib-forms-duration-hover) var(--lib-forms-easing)}.lib-record-list-manager__row:hover{background:color-mix(in srgb,var(--lib-forms-primary) 6%,transparent)}.lib-record-list-manager__grid .lib-record-list-manager__cell{padding:.4375rem .75rem;font-size:.8125rem;line-height:1.35;color:var(--lib-forms-on-surface);vertical-align:middle}.lib-record-list-manager__cell-text{display:block;max-width:18rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lib-record-list-manager__grid .mat-column-actions{width:1%;padding-right:.5rem;text-align:right;white-space:nowrap;background:color-mix(in srgb,var(--lib-forms-primary) 0%,var(--lib-forms-surface))}.lib-record-list-manager__grid .mat-mdc-header-cell.mat-column-actions{background:color-mix(in srgb,var(--lib-forms-primary) 4%,var(--lib-forms-surface))}.lib-record-list-manager__row:hover .mat-column-actions{background:color-mix(in srgb,var(--lib-forms-primary) 6%,var(--lib-forms-surface))}.lib-record-list-manager__action{--mdc-icon-button-state-layer-size: 2rem}.lib-record-list-manager__editor{margin-top:1.5rem;display:flex;flex-direction:column;gap:1.5rem}.lib-record-list-manager__sections{display:block}.lib-record-list-manager__section-title{display:flex;align-items:center;gap:.75rem;width:100%}.lib-record-list-manager__section-value{margin-left:auto;font-size:.8125rem;color:var(--lib-forms-on-surface-variant)}.lib-record-list-manager__field{padding:.5rem 0 1.5rem}.lib-record-list-manager__loading{display:flex;align-items:center;justify-content:center;padding:2rem}.lib-record-list-manager__actions{display:flex;align-items:center;justify-content:flex-end;gap:.75rem}.lib-record-list-manager__actions--list{margin-top:1.5rem}.lib-record-list-manager__count{margin-right:auto;font-size:.8125rem;color:var(--lib-forms-on-surface-variant)}\n"] }]
431
+ }], ctorParameters: () => [], propDecorators: { mapToData: [{
432
+ type: Input
433
+ }], errors: [{
434
+ type: Input
435
+ }], disabled: [{
436
+ type: Input
437
+ }], required: [{
438
+ type: Input
439
+ }], placeholder: [{
440
+ type: Input
441
+ }], value: [{
442
+ type: Input
443
+ }], formInputs: [{ type: i0.Input, args: [{ isSignal: true, alias: "formInputs", required: false }] }], editorConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "editorConfig", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }] } });
444
+
445
+ export { RecordListManagerComponent };
446
+ //# sourceMappingURL=ngx-t-forms-record-list-manager.component-CtCOIpai.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-t-forms-record-list-manager.component-CtCOIpai.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/record-list-manager/record-list-manager.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/record-list-manager/record-list-manager.component.html"],"sourcesContent":["import { CdkPortalOutletAttachedRef, ComponentPortal, PortalModule } from '@angular/cdk/portal';\r\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\r\nimport {\r\n ChangeDetectionStrategy,\r\n Component,\r\n ComponentRef,\r\n DestroyRef,\r\n ElementRef,\r\n Input,\r\n ViewEncapsulation,\r\n computed,\r\n effect,\r\n inject,\r\n input,\r\n output,\r\n signal,\r\n} from '@angular/core';\r\nimport { outputToObservable, takeUntilDestroyed } from '@angular/core/rxjs-interop';\r\nimport { NgControl } from '@angular/forms';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatCardModule } from '@angular/material/card';\r\nimport { MatDividerModule } from '@angular/material/divider';\r\nimport { MatExpansionModule } from '@angular/material/expansion';\r\nimport { MatFormFieldControl } from '@angular/material/form-field';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\r\nimport { MatTableDataSource, MatTableModule } from '@angular/material/table';\r\nimport { MatTooltipModule } from '@angular/material/tooltip';\r\nimport type {\r\n ElementEditorConfigSectionInterface,\r\n ElementEditorInnerSectionElementInterface,\r\n FormColumnInputs,\r\n} from 'ngx-t-forms-types';\r\nimport { Subject, Subscription } from 'rxjs';\r\nimport { _isEqual } from '../../../../shared/functions/isEqual';\r\nimport { assignDeepPropertyToObject } from '../../../../shared/functions/assignDeepPropertyToObject';\r\nimport { safeReturnDeepProperty } from '../../../../shared/functions/getDeepObject';\r\nimport { EmptyStateComponent } from '../_shared/empty-state/empty-state.component';\r\nimport type { IConfigElementError } from '../../t-dynamic-data-edit.component';\r\nimport type { TDynamicDataEditComponent } from '../../t-dynamic-data-edit.component';\r\nimport { NESTED_EDITOR_COMPONENT } from '../../nested-editor.token';\r\nimport { testAgainstItem } from '../../functions/testData';\r\n\r\n/** Row shape held by the record list. Heterogeneous wrapper-defined records. */\r\ntype RecordListRow = Record<string, unknown> & { id?: string };\r\n\r\n/** Table column descriptor (label header + the row key it renders). */\r\ninterface RecordColumn {\r\n readonly label: string;\r\n readonly value: string;\r\n}\r\n\r\n/** Synthetic column key for the per-row edit/delete action cell. */\r\nconst ACTIONS_COLUMN = 'actions';\r\n\r\n/**\r\n * Internal record-list manager. Implements `MatFormFieldControl<unknown[]>` and is\r\n * embedded by `t-dynamic-data-edit` for `RecordListManager` editor types.\r\n *\r\n * Owns only its content (table + edit panel). The parent `mat-form-field` renders\r\n * the label, hint, and validation errors, so this component adds neither a header\r\n * nor an inline error list.\r\n *\r\n * Per-record editing is delegated to a dynamically-attached `TDynamicDataEditComponent`\r\n * portal per inner-section element; the portal's `valueChange` output is patched back\r\n * into the in-edit buffer via the element's `deepBind` path.\r\n *\r\n * NOTE: `MatFormFieldControl<T>` mandates plain mutable `value` / `disabled` /\r\n * `required` / `placeholder` / `id` members, `@Input()` decorators, the\r\n * `focused` / `touched` / `stateChanges` members, and the `useExisting` provider.\r\n * These are framework wiring, not defects — the CLAUDE.md bans on `@Input()` /\r\n * `useExisting` do not apply to MatFormFieldControl integration.\r\n *\r\n * @internal Not exported via public-api.ts.\r\n */\r\n@Component({\r\n selector: 'lib-record-list-manager',\r\n templateUrl: './record-list-manager.component.html',\r\n styleUrl: './record-list-manager.component.scss',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.Emulated,\r\n imports: [\r\n MatButtonModule,\r\n MatCardModule,\r\n MatDividerModule,\r\n MatExpansionModule,\r\n MatIconModule,\r\n MatProgressSpinnerModule,\r\n MatTableModule,\r\n MatTooltipModule,\r\n PortalModule,\r\n EmptyStateComponent,\r\n ],\r\n providers: [{ provide: MatFormFieldControl, useExisting: RecordListManagerComponent }],\r\n host: {\r\n 'class': 'lib-record-list-manager',\r\n '[id]': 'id',\r\n '[attr.aria-describedby]': 'describedBy',\r\n '[class.lib-record-list-manager--floating]': 'shouldLabelFloat',\r\n },\r\n})\r\nexport class RecordListManagerComponent implements MatFormFieldControl<unknown[]> {\r\n static nextId = 0;\r\n\r\n // --- MatFormFieldControl wiring (plain mutable members, framework-mandated) ---\r\n readonly stateChanges = new Subject<void>();\r\n readonly controlType = 'lib-record-list-manager';\r\n\r\n focused = false;\r\n touched = false;\r\n autofilled = false;\r\n id = `lib-record-list-manager-${RecordListManagerComponent.nextId++}`;\r\n describedBy = '';\r\n\r\n /** Optional wrapper-supplied mapping payload (shape determined by wrapper). */\r\n @Input() mapToData: unknown;\r\n\r\n /** Validation errors surfaced by the parent for error-state derivation. */\r\n @Input() errors: IConfigElementError[] | undefined = [];\r\n\r\n #disabled = false;\r\n @Input()\r\n get disabled(): boolean {\r\n return this.#disabled;\r\n }\r\n set disabled(value: boolean) {\r\n this.#disabled = coerceBooleanProperty(value);\r\n this.stateChanges.next();\r\n }\r\n\r\n #required = false;\r\n @Input()\r\n get required(): boolean {\r\n return this.#required;\r\n }\r\n set required(value: boolean) {\r\n this.#required = coerceBooleanProperty(value);\r\n this.stateChanges.next();\r\n }\r\n\r\n #placeholder = '';\r\n @Input()\r\n get placeholder(): string {\r\n return this.#placeholder;\r\n }\r\n set placeholder(value: string) {\r\n this.#placeholder = value;\r\n this.stateChanges.next();\r\n }\r\n\r\n /**\r\n * Record rows held by the table. Parent passes heterogeneous payloads\r\n * (`{}` initial / arrays / null); non-array writes coerce to an empty list.\r\n */\r\n @Input()\r\n get value(): RecordListRow[] {\r\n return this.#rows();\r\n }\r\n set value(val: unknown) {\r\n const next = Array.isArray(val) ? (val as RecordListRow[]) : [];\r\n this.#rows.set(next);\r\n this.onChange(next);\r\n this.stateChanges.next();\r\n }\r\n\r\n get shouldLabelFloat(): boolean {\r\n return this.focused || !this.empty;\r\n }\r\n\r\n get empty(): boolean {\r\n return this.#rows().length === 0;\r\n }\r\n\r\n get errorState(): boolean {\r\n const requiredUnset = this.empty && this.#required && this.touched;\r\n const ngControlError = this.ngControl?.errors != null;\r\n const externalError = (this.errors?.length ?? 0) > 0;\r\n return requiredUnset || ngControlError || externalError;\r\n }\r\n\r\n // --- DI ---\r\n readonly ngControl = inject(NgControl, { self: true, optional: true });\r\n readonly #elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\r\n readonly #destroyRef = inject(DestroyRef);\r\n /** The component portalled per record — injected to avoid a circular import. */\r\n readonly #nestedEditor = inject(NESTED_EDITOR_COMPONENT);\r\n\r\n constructor() {\r\n if (this.ngControl != null) {\r\n this.ngControl.valueAccessor = this;\r\n }\r\n this.#destroyRef.onDestroy(() => {\r\n this.stateChanges.complete();\r\n this.#teardownPortalSubscriptions();\r\n });\r\n }\r\n\r\n // --- ControlValueAccessor ---\r\n onChange: (_: unknown) => void = () => {\r\n /* noop until registered */\r\n };\r\n onTouched: () => void = () => {\r\n /* noop until registered */\r\n };\r\n\r\n writeValue(value: unknown): void {\r\n this.#rows.set(Array.isArray(value) ? (value as RecordListRow[]) : []);\r\n this.stateChanges.next();\r\n }\r\n\r\n registerOnChange(fn: (_: unknown) => void): void {\r\n this.onChange = fn;\r\n }\r\n\r\n registerOnTouched(fn: () => void): void {\r\n this.onTouched = fn;\r\n }\r\n\r\n setDisabledState(isDisabled: boolean): void {\r\n this.disabled = isDisabled;\r\n }\r\n\r\n setDescribedByIds(ids: string[]): void {\r\n this.describedBy = ids.join(' ');\r\n this.#elementRef.nativeElement.setAttribute('aria-describedby', this.describedBy);\r\n this.stateChanges.next();\r\n }\r\n\r\n onContainerClick(): void {\r\n this.markAsTouched();\r\n if (!this.focused) {\r\n this.focused = true;\r\n this.stateChanges.next();\r\n }\r\n }\r\n\r\n markAsTouched(): void {\r\n if (!this.touched) {\r\n this.touched = true;\r\n this.onTouched();\r\n this.stateChanges.next();\r\n }\r\n }\r\n\r\n // --- Internal reactive state (signal-first) ---\r\n\r\n /** Backing rows; the `MatTableDataSource` is kept in sync via an effect. */\r\n readonly #rows = signal<RecordListRow[]>([]);\r\n\r\n /** Table data source whose `.data` mirrors `#rows()`. */\r\n readonly dataSource = new MatTableDataSource<RecordListRow>([]);\r\n\r\n /** Row currently being edited, or `null` when no edit is in progress. */\r\n readonly #inEdit = signal<RecordListRow | null>(null);\r\n\r\n /** Inner editor sections derived from the active editor config. */\r\n readonly #sections = signal<readonly ElementEditorConfigSectionInterface[]>([]);\r\n\r\n /** Lazily-built portals keyed by inner-section element id. */\r\n readonly #portals = signal<Readonly<Record<string, ComponentPortal<TDynamicDataEditComponent>>>>(\r\n {},\r\n );\r\n\r\n /** Active per-element portal output subscriptions, keyed by element id. */\r\n readonly #portalSubscriptions = new Map<string, Subscription>();\r\n\r\n /** Form input definitions forwarded into the dynamic editor portals. */\r\n readonly formInputs = input<Array<FormColumnInputs>>([]);\r\n\r\n /** Editor configuration for this record-list element. */\r\n readonly editorConfig = input<ElementEditorInnerSectionElementInterface | undefined>(undefined);\r\n\r\n /** Emits whenever the record list value changes. */\r\n readonly valueChange = output<RecordListRow[]>();\r\n\r\n // --- Template-facing derived state ---\r\n\r\n protected readonly inEditRow = this.#inEdit.asReadonly();\r\n protected readonly portals = this.#portals.asReadonly();\r\n\r\n /**\r\n * Inner sections with each element list narrowed to the elements whose\r\n * `additionalTest` entries ALL pass against the record being edited — the same\r\n * rule `isElementApplicable` applies to top-level editor elements.\r\n *\r\n * An element without `additionalTest` always shows. When a section hides nothing,\r\n * the original section object is returned, and when no section hides anything the\r\n * original array is returned, so consumers that never configured a test (the\r\n * reports / dashboard chart config, for one) get object-identical output and\r\n * behave exactly as before.\r\n */\r\n protected readonly visibleSections = computed<readonly ElementEditorConfigSectionInterface[]>(\r\n () => {\r\n const record = this.#inEdit();\r\n const sections = this.#sections();\r\n let narrowed = false;\r\n const next = sections.map((section) => {\r\n const elements = section.elements.filter((element) =>\r\n (element.additionalTest ?? []).every((test) => testAgainstItem(test, record)),\r\n );\r\n if (elements.length === section.elements.length) {\r\n return section;\r\n }\r\n narrowed = true;\r\n return { ...section, elements };\r\n });\r\n return narrowed ? next : sections;\r\n },\r\n );\r\n\r\n protected readonly tableColumns = computed<readonly RecordColumn[]>(() => [\r\n ...(this.editorConfig()?.options ?? []).map((opt) => ({\r\n label: String(opt.label),\r\n value: String(opt.value),\r\n })),\r\n { label: ' ', value: ACTIONS_COLUMN },\r\n ]);\r\n\r\n protected readonly displayedColumns = computed<readonly string[]>(() =>\r\n this.tableColumns().map((c) => c.value),\r\n );\r\n\r\n protected readonly rowCount = computed<number>(() => this.#rows().length);\r\n\r\n protected readonly isActionsColumn = (column: string): boolean => column === ACTIONS_COLUMN;\r\n\r\n /**\r\n * A cell's text. Rows are heterogeneous wrapper-defined records, so a column may\r\n * hold anything; this renders it as one line and an absent value as an empty cell\r\n * rather than the string `undefined`.\r\n *\r\n * Also the `title` for the cell, which is what makes truncation safe — the full\r\n * value stays readable on hover instead of being lost to the ellipsis.\r\n *\r\n * @param row - The record being rendered.\r\n * @param column - The row key this column shows.\r\n * @returns The cell's display text, or `''` when the record has no such value.\r\n */\r\n protected cellText(row: RecordListRow, column: string): string {\r\n const value = row[column];\r\n return value == null ? '' : String(value);\r\n }\r\n\r\n /**\r\n * Whether the in-edit record may be saved: every `required` inner element must\r\n * resolve to a non-empty value via its `deepBind` path.\r\n *\r\n * Only currently-visible elements are considered — a `required` element hidden by\r\n * its own `additionalTest` cannot be filled in, so counting it would leave the\r\n * save button permanently disabled.\r\n */\r\n protected readonly canSaveRecord = computed<boolean>(() => {\r\n const editing = this.#inEdit();\r\n if (!editing || !this.editorConfig()) {\r\n return false;\r\n }\r\n for (const section of this.visibleSections()) {\r\n for (const element of section.elements) {\r\n if (!element.required) {\r\n continue;\r\n }\r\n const { value } = safeReturnDeepProperty(editing, element.deepBind ?? []);\r\n if (value == null || value === '') {\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n });\r\n\r\n // --- Effects (framework-state sync, not signal writes within) ---\r\n\r\n /** Mirror the rows signal into the Material table data source. */\r\n protected readonly tableSync = effect(() => {\r\n this.dataSource.data = this.#rows();\r\n });\r\n\r\n /**\r\n * Rebuild the inner-section list and portal map whenever the editor config\r\n * changes. Portals are recreated per config so a stale `ComponentPortal`\r\n * (already attached) is never re-used.\r\n */\r\n protected readonly configSync = effect(() => {\r\n const next = this.editorConfig()?.secondaryElementEditorConfig ?? [];\r\n if (_isEqual(this.#sections(), next)) {\r\n return;\r\n }\r\n this.#teardownPortalSubscriptions();\r\n this.#sections.set(next);\r\n const portals: Record<string, ComponentPortal<TDynamicDataEditComponent>> = {};\r\n for (const section of next) {\r\n for (const element of section.elements) {\r\n portals[element.id] = new ComponentPortal(this.#nestedEditor);\r\n }\r\n }\r\n this.#portals.set(portals);\r\n });\r\n\r\n // --- Record actions ---\r\n\r\n addNewItem(): void {\r\n this.#inEdit.set({});\r\n }\r\n\r\n editItem(row: RecordListRow): void {\r\n this.#inEdit.set(row);\r\n }\r\n\r\n cancelEdit(): void {\r\n this.#inEdit.set(null);\r\n }\r\n\r\n saveRecord(): void {\r\n const editing = this.#inEdit();\r\n if (!editing) {\r\n return;\r\n }\r\n let next: RecordListRow[];\r\n if (editing.id != null) {\r\n next = this.value.map((item) => (item.id === editing.id ? editing : item));\r\n } else {\r\n next = [...this.value, { ...editing, id: crypto.randomUUID() }];\r\n }\r\n this.value = next;\r\n this.#inEdit.set(null);\r\n this.valueChange.emit(this.value);\r\n }\r\n\r\n removeItem(item: RecordListRow): void {\r\n this.value = this.value.filter((row) => row.id !== item.id);\r\n if (this.#inEdit()?.id === item.id) {\r\n this.#inEdit.set(null);\r\n }\r\n this.valueChange.emit(this.value);\r\n }\r\n\r\n /**\r\n * Wire a freshly-attached per-record editor portal: push the current inputs in,\r\n * and patch the in-edit buffer whenever the inner editor emits a value. The\r\n * subscription is keyed by element id and torn down on config change / destroy.\r\n *\r\n * This also runs on RE-attach, because an element hidden by `additionalTest` has\r\n * its portal outlet destroyed and a brand-new one created when it comes back:\r\n *\r\n * - Double-attach cannot happen. `CdkPortalOutlet.ngOnDestroy` disposes the outlet,\r\n * which detaches the portal and nulls its `_attachedHost`, so the same\r\n * `ComponentPortal` instance is legitimately re-attachable to the new outlet.\r\n * Only the outlet is marked disposed, and that one is gone.\r\n * - Double-subscribe cannot happen either. The previous subscription for this\r\n * element id is unsubscribed below before the new one replaces it, and it would\r\n * in any case have completed already: `outputToObservable` completes when the\r\n * emitting component is destroyed, which also unregisters the\r\n * `takeUntilDestroyed` hook rather than accumulating one per attach.\r\n */\r\n onPortalAttached(\r\n portalRef: CdkPortalOutletAttachedRef,\r\n element: ElementEditorInnerSectionElementInterface,\r\n ): void {\r\n const componentRef = portalRef as ComponentRef<TDynamicDataEditComponent>;\r\n componentRef.setInput('formInputs', this.formInputs());\r\n componentRef.setInput('editorConfig', element);\r\n componentRef.setInput('data', this.#inEdit());\r\n\r\n this.#portalSubscriptions.get(element.id)?.unsubscribe();\r\n const sub = outputToObservable(componentRef.instance.valueChange)\r\n .pipe(takeUntilDestroyed(this.#destroyRef))\r\n .subscribe((event: unknown) => {\r\n const current = this.#inEdit();\r\n const draft = (current ? structuredClone(current) : {}) as RecordListRow;\r\n this.#applyClearOnChange(draft, element, current, event);\r\n const patched = assignDeepPropertyToObject(\r\n draft,\r\n element.deepBind ?? [],\r\n event,\r\n ) as RecordListRow;\r\n this.#inEdit.set(patched);\r\n componentRef.setInput('data', patched);\r\n componentRef.changeDetectorRef.markForCheck();\r\n });\r\n this.#portalSubscriptions.set(element.id, sub);\r\n }\r\n\r\n /**\r\n * Blanks the paths an element declares in `clearOnChange`, so choosing one of a\r\n * pair of mutually exclusive settings drops the other one.\r\n *\r\n * Guarded, unlike the top-level editors: it fires only when the element's own\r\n * bound value moves AWAY from a value the record already carried. The nested\r\n * editor emits once shortly after every attach — replaying the stored value, or\r\n * `defaultValue` when the bound key is absent — so an unguarded clear would wipe\r\n * sibling fields merely because an administrator opened an existing record, and\r\n * again every time a hidden element was re-shown. Elements without\r\n * `clearOnChange` are untouched.\r\n */\r\n #applyClearOnChange(\r\n draft: RecordListRow,\r\n element: ElementEditorInnerSectionElementInterface,\r\n current: RecordListRow | null,\r\n nextValue: unknown,\r\n ): void {\r\n const paths = element.clearOnChange;\r\n if (!paths || paths.length === 0) {\r\n return;\r\n }\r\n const { value: previousValue } = safeReturnDeepProperty(current, element.deepBind ?? []);\r\n // Never set before: this is the first explicit choice, not a change away from\r\n // something, so there is nothing the administrator asked to discard.\r\n if (previousValue === undefined || previousValue === '') {\r\n return;\r\n }\r\n if (_isEqual(previousValue, nextValue)) {\r\n return;\r\n }\r\n for (const path of paths) {\r\n assignDeepPropertyToObject(draft, path, undefined);\r\n }\r\n }\r\n\r\n #teardownPortalSubscriptions(): void {\r\n this.#portalSubscriptions.forEach((sub) => sub.unsubscribe());\r\n this.#portalSubscriptions.clear();\r\n }\r\n}\r\n","<!--\r\n The card clips to its radius; the inner element is the ONLY scroll region. Without\r\n that split a table wider than the editor panel was simply cut off, taking the row\r\n actions with it — unreachable, with nothing to indicate they were there.\r\n-->\r\n<div class=\"lib-record-list-manager__table\">\r\n <div class=\"lib-record-list-manager__scroll\">\r\n <table mat-table [dataSource]=\"dataSource\" class=\"lib-record-list-manager__grid\">\r\n @for (col of tableColumns(); track col.value) {\r\n <!--\r\n `stickyEnd` pins the actions column to the right edge, so edit and delete\r\n stay reachable however far the table is scrolled. Material's own mechanism\r\n rather than hand-rolled `position: sticky`, which it already handles\r\n correctly across the table's collapsed borders.\r\n -->\r\n <ng-container [matColumnDef]=\"col.value\" [stickyEnd]=\"isActionsColumn(col.value)\">\r\n <th mat-header-cell *matHeaderCellDef scope=\"col\">{{ col.label }}</th>\r\n <td mat-cell *matCellDef=\"let row\" class=\"lib-record-list-manager__cell\">\r\n @if (isActionsColumn(col.value)) {\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n class=\"lib-record-list-manager__action\"\r\n matTooltip=\"Edit\"\r\n aria-label=\"Edit record\"\r\n [disabled]=\"disabled\"\r\n (click)=\"editItem(row)\"\r\n >\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n color=\"warn\"\r\n class=\"lib-record-list-manager__action\"\r\n matTooltip=\"Delete\"\r\n aria-label=\"Delete record\"\r\n [disabled]=\"disabled\"\r\n (click)=\"removeItem(row)\"\r\n >\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n } @else {\r\n <!--\r\n Truncated rather than allowed to widen the column: one long value in\r\n one row should not push every other column out of view. The full text\r\n stays reachable on hover and to assistive tech.\r\n -->\r\n <span class=\"lib-record-list-manager__cell-text\" [title]=\"cellText(row, col.value)\">\r\n {{ cellText(row, col.value) }}\r\n </span>\r\n }\r\n </td>\r\n </ng-container>\r\n }\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns()\"></tr>\r\n <tr\r\n mat-row\r\n *matRowDef=\"let row; columns: displayedColumns()\"\r\n class=\"lib-record-list-manager__row\"\r\n ></tr>\r\n </table>\r\n </div>\r\n\r\n @if (rowCount() === 0) {\r\n <lib-empty-state\r\n icon=\"inbox\"\r\n message=\"No records yet. Use Add Record to get started.\"\r\n ></lib-empty-state>\r\n }\r\n</div>\r\n\r\n@if (inEditRow(); as editing) {\r\n <div class=\"lib-record-list-manager__editor\">\r\n <mat-accordion class=\"lib-record-list-manager__sections\" togglePosition=\"after\">\r\n @for (section of visibleSections(); track section.id) {\r\n <mat-expansion-panel>\r\n <mat-expansion-panel-header>\r\n <mat-panel-title class=\"lib-record-list-manager__section-title\">\r\n <span>{{ section.label }}</span>\r\n @if (section.showItemValue && editing[section.showItemValue] != null) {\r\n <span class=\"lib-record-list-manager__section-value\">\r\n {{ editing[section.showItemValue] }}\r\n </span>\r\n }\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n\r\n @for (element of section.elements; track element.id) {\r\n <div class=\"lib-record-list-manager__field\">\r\n @defer (on viewport) {\r\n <ng-template\r\n [cdkPortalOutlet]=\"portals()[element.id]\"\r\n (attached)=\"onPortalAttached($event, element)\"\r\n ></ng-template>\r\n } @placeholder {\r\n <div class=\"lib-record-list-manager__loading\">\r\n <mat-spinner diameter=\"18\"></mat-spinner>\r\n </div>\r\n }\r\n </div>\r\n }\r\n </mat-expansion-panel>\r\n }\r\n </mat-accordion>\r\n\r\n <div class=\"lib-record-list-manager__actions\">\r\n <button type=\"button\" mat-button color=\"primary\" (click)=\"cancelEdit()\">Cancel</button>\r\n <button\r\n type=\"button\"\r\n mat-stroked-button\r\n color=\"primary\"\r\n [disabled]=\"!canSaveRecord()\"\r\n (click)=\"saveRecord()\"\r\n >\r\n {{ editing.id ? 'Update' : 'Save new' }} record\r\n <mat-icon>save</mat-icon>\r\n </button>\r\n </div>\r\n </div>\r\n} @else {\r\n <div class=\"lib-record-list-manager__actions lib-record-list-manager__actions--list\">\r\n <span class=\"lib-record-list-manager__count\">Records ({{ rowCount() }})</span>\r\n <button\r\n type=\"button\"\r\n mat-stroked-button\r\n color=\"primary\"\r\n matTooltip=\"Add a new record\"\r\n aria-label=\"Add a new record\"\r\n [disabled]=\"disabled\"\r\n (click)=\"addNewItem()\"\r\n >\r\n <mat-icon>add</mat-icon>\r\n Add Record\r\n </button>\r\n </div>\r\n}\r\n"],"names":["i1","i4","i5","i6","i7"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAoDA;AACA,MAAM,cAAc,GAAG,SAAS;AAEhC;;;;;;;;;;;;;;;;;;;AAmBG;MA2BU,0BAA0B,CAAA;aAC9B,IAAA,CAAA,MAAM,GAAG,CAAH,CAAK;AAkBlB,IAAA,SAAS;AACT,IAAA,IACI,QAAQ,GAAA;QACV,OAAO,IAAI,CAAC,SAAS;IACvB;IACA,IAAI,QAAQ,CAAC,KAAc,EAAA;AACzB,QAAA,IAAI,CAAC,SAAS,GAAG,qBAAqB,CAAC,KAAK,CAAC;AAC7C,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE;IAC1B;AAEA,IAAA,SAAS;AACT,IAAA,IACI,QAAQ,GAAA;QACV,OAAO,IAAI,CAAC,SAAS;IACvB;IACA,IAAI,QAAQ,CAAC,KAAc,EAAA;AACzB,QAAA,IAAI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