ngx-t-forms 3.0.0 → 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 (247) hide show
  1. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-DFApar1W.mjs → ngx-t-forms-auto-complete-input-element.component-FhUHTsUF.mjs} +2 -2
  2. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-DFApar1W.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-ChCeve-w.mjs → ngx-t-forms-basic-input-input-element.component-BJKe9wIA.mjs} +3 -3
  4. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-ChCeve-w.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-B54kOArR.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-CAZv0_uR.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-NM2cFs3P.mjs → ngx-t-forms-date-picker-input-element.component-Dux6uy66.mjs} +2 -2
  14. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-NM2cFs3P.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-DlsLiHi1.mjs → ngx-t-forms-editor-js-input.component-C1dI_7rU.mjs} +25 -11
  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-Km-qgANx.mjs → ngx-t-forms-file-upload-input-element.component-CQsKz87N.mjs} +2 -2
  26. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-Km-qgANx.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-r64GKVhI.mjs → ngx-t-forms-form-json-view.component-DzJKFl4c.mjs} +2 -2
  30. package/fesm2022/{ngx-t-forms-form-json-view.component-r64GKVhI.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-B3DRJ--U.mjs → ngx-t-forms-form-section-stepper.component-DOvVtJGB.mjs} +4 -4
  34. package/fesm2022/{ngx-t-forms-form-section-stepper.component-B3DRJ--U.mjs.map → ngx-t-forms-form-section-stepper.component-DOvVtJGB.mjs.map} +1 -1
  35. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-BYFynpTn.mjs → ngx-t-forms-forms-builder-menu.component-CcqyQLf5.mjs} +5 -5
  36. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-BYFynpTn.mjs.map → ngx-t-forms-forms-builder-menu.component-CcqyQLf5.mjs.map} +1 -1
  37. package/fesm2022/{ngx-t-forms-geo-location.component-D2fIbagr.mjs → ngx-t-forms-geo-location.component-Bj_qIEqi.mjs} +2 -2
  38. package/fesm2022/{ngx-t-forms-geo-location.component-D2fIbagr.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-BgnzErQt.mjs → ngx-t-forms-image-capture-input-element.component-lwp3IcDt.mjs} +2 -2
  42. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-BgnzErQt.mjs.map → ngx-t-forms-image-capture-input-element.component-lwp3IcDt.mjs.map} +1 -1
  43. package/fesm2022/{ngx-t-forms-index-6YIhS6cm.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-Dcoze7U3.mjs → ngx-t-forms-input-custom.component-DiciFhSS.mjs} +2 -2
  46. package/fesm2022/{ngx-t-forms-input-custom.component-Dcoze7U3.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-BsfvYiEU.mjs → ngx-t-forms-map-mat-options-keys-C2JpMTEc.mjs} +2 -2
  50. package/fesm2022/{ngx-t-forms-map-mat-options-keys-BsfvYiEU.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-CYtTBtyf.mjs → ngx-t-forms-mat-chip-list-editor.component-C1Qrze7K.mjs} +5 -5
  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-CEa8ZNKA.mjs → ngx-t-forms-missing-form-configs.component-BaTR_jzc.mjs} +2 -2
  58. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CEa8ZNKA.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-DklkxNgg.mjs → ngx-t-forms-mscoa-chart-toolbar.component-Dni_bv_G.mjs} +2 -2
  60. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-DklkxNgg.mjs.map → ngx-t-forms-mscoa-chart-toolbar.component-Dni_bv_G.mjs.map} +1 -1
  61. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-BPQuzR5k.mjs +447 -0
  62. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-BPQuzR5k.mjs.map +1 -0
  63. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-hXWMRFjl.mjs +905 -0
  64. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-hXWMRFjl.mjs.map +1 -0
  65. package/fesm2022/{ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs → ngx-t-forms-ngx-t-forms-tQEbZK_e.mjs} +1391 -158
  66. package/fesm2022/ngx-t-forms-ngx-t-forms-tQEbZK_e.mjs.map +1 -0
  67. package/fesm2022/{ngx-t-forms-paginated-selection-table-DrXB22iY.mjs → ngx-t-forms-paginated-selection-table-pYY2sWAb.mjs} +2 -2
  68. package/fesm2022/{ngx-t-forms-paginated-selection-table-DrXB22iY.mjs.map → ngx-t-forms-paginated-selection-table-pYY2sWAb.mjs.map} +1 -1
  69. package/fesm2022/ngx-t-forms-payload-template-editor.component-DGCUsTYx.mjs +79 -0
  70. package/fesm2022/ngx-t-forms-payload-template-editor.component-DGCUsTYx.mjs.map +1 -0
  71. package/fesm2022/ngx-t-forms-pipeline-generator.component-D2stBXXC.mjs +748 -0
  72. package/fesm2022/ngx-t-forms-pipeline-generator.component-D2stBXXC.mjs.map +1 -0
  73. package/fesm2022/{ngx-t-forms-record-list-manager.component-l-2uDVmi.mjs → ngx-t-forms-record-list-manager.component-CtCOIpai.mjs} +4 -4
  74. package/fesm2022/ngx-t-forms-record-list-manager.component-CtCOIpai.mjs.map +1 -0
  75. package/fesm2022/ngx-t-forms-required-inputs.component-D9wIdOhg.mjs +272 -0
  76. package/fesm2022/ngx-t-forms-required-inputs.component-D9wIdOhg.mjs.map +1 -0
  77. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-C3sNmq_H.mjs → ngx-t-forms-rest-api-call-setup.component-Gy7Rtmue.mjs} +38 -7
  78. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-Gy7Rtmue.mjs.map +1 -0
  79. package/fesm2022/ngx-t-forms-search-field.component-mR4Kk12C.mjs +38 -0
  80. package/fesm2022/ngx-t-forms-search-field.component-mR4Kk12C.mjs.map +1 -0
  81. package/fesm2022/{ngx-t-forms-section-report.component-BYMcaRE5.mjs → ngx-t-forms-section-report.component-U9uQ_Ow9.mjs} +2 -2
  82. package/fesm2022/{ngx-t-forms-section-report.component-BYMcaRE5.mjs.map → ngx-t-forms-section-report.component-U9uQ_Ow9.mjs.map} +1 -1
  83. package/fesm2022/{ngx-t-forms-select-input-element.component-Nsa3dpvV.mjs → ngx-t-forms-select-input-element.component-CxYTmuvV.mjs} +2 -2
  84. package/fesm2022/{ngx-t-forms-select-input-element.component-Nsa3dpvV.mjs.map → ngx-t-forms-select-input-element.component-CxYTmuvV.mjs.map} +1 -1
  85. package/fesm2022/ngx-t-forms-selection-options-editor.component-BLLejOLG.mjs +169 -0
  86. package/fesm2022/ngx-t-forms-selection-options-editor.component-BLLejOLG.mjs.map +1 -0
  87. package/fesm2022/{ngx-t-forms-t-workflow-picker.component-DAwP-cWK.mjs → ngx-t-forms-t-workflow-picker.component-D0ttyEex.mjs} +3 -3
  88. package/fesm2022/ngx-t-forms-t-workflow-picker.component-D0ttyEex.mjs.map +1 -0
  89. package/fesm2022/{ngx-t-forms-textarea-input-element.component-DPxUzkAu.mjs → ngx-t-forms-textarea-input-element.component-75VdPc6z.mjs} +2 -2
  90. package/fesm2022/{ngx-t-forms-textarea-input-element.component-DPxUzkAu.mjs.map → ngx-t-forms-textarea-input-element.component-75VdPc6z.mjs.map} +1 -1
  91. package/fesm2022/{ngx-t-forms-toggle-input-element.component-OZre5TJ7.mjs → ngx-t-forms-toggle-input-element.component-DQGvEJN-.mjs} +2 -2
  92. package/fesm2022/{ngx-t-forms-toggle-input-element.component-OZre5TJ7.mjs.map → ngx-t-forms-toggle-input-element.component-DQGvEJN-.mjs.map} +1 -1
  93. package/fesm2022/ngx-t-forms-token-transform-D_wsFbNc.mjs +173 -0
  94. package/fesm2022/ngx-t-forms-token-transform-D_wsFbNc.mjs.map +1 -0
  95. package/fesm2022/ngx-t-forms-validators-config.component-EM7RSWIz.mjs +574 -0
  96. package/fesm2022/ngx-t-forms-validators-config.component-EM7RSWIz.mjs.map +1 -0
  97. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-CrDZg3Nl.mjs → ngx-t-forms-workflow-adjudication.component-C1Em-g9e.mjs} +3 -3
  98. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-CrDZg3Nl.mjs.map → ngx-t-forms-workflow-adjudication.component-C1Em-g9e.mjs.map} +1 -1
  99. package/fesm2022/ngx-t-forms.mjs +1 -1
  100. package/package.json +2 -2
  101. package/styles/_editor-mixins.scss +117 -117
  102. package/styles/_signature-pad.scss +26 -26
  103. package/styles/_tokens.scss +148 -148
  104. package/types/ngx-t-forms.d.ts +7 -2
  105. package/fesm2022/ngx-t-forms-auto-complete-input-element.component-7g5cpVfB.mjs +0 -261
  106. package/fesm2022/ngx-t-forms-auto-complete-input-element.component-7g5cpVfB.mjs.map +0 -1
  107. package/fesm2022/ngx-t-forms-basic-input-input-element.component-BhMw2vpl.mjs +0 -225
  108. package/fesm2022/ngx-t-forms-basic-input-input-element.component-BhMw2vpl.mjs.map +0 -1
  109. package/fesm2022/ngx-t-forms-calculated-field-rules.component-BmWnrfWN.mjs +0 -1011
  110. package/fesm2022/ngx-t-forms-calculated-field-rules.component-BmWnrfWN.mjs.map +0 -1
  111. package/fesm2022/ngx-t-forms-calculated-field-rules.component-CJMwqoHL.mjs +0 -643
  112. package/fesm2022/ngx-t-forms-calculated-field-rules.component-CJMwqoHL.mjs.map +0 -1
  113. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-ALkkDotT.mjs +0 -136
  114. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-ALkkDotT.mjs.map +0 -1
  115. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-B54kOArR.mjs.map +0 -1
  116. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-CAZv0_uR.mjs.map +0 -1
  117. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dap7QkKD.mjs +0 -253
  118. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dap7QkKD.mjs.map +0 -1
  119. package/fesm2022/ngx-t-forms-data-source-picker.component-8G28L1Cg.mjs +0 -261
  120. package/fesm2022/ngx-t-forms-data-source-picker.component-8G28L1Cg.mjs.map +0 -1
  121. package/fesm2022/ngx-t-forms-data-source-picker.component-CJ1C1Znp.mjs +0 -419
  122. package/fesm2022/ngx-t-forms-data-source-picker.component-CJ1C1Znp.mjs.map +0 -1
  123. package/fesm2022/ngx-t-forms-date-picker-input-element.component-DjYq63Iv.mjs +0 -231
  124. package/fesm2022/ngx-t-forms-date-picker-input-element.component-DjYq63Iv.mjs.map +0 -1
  125. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-DhU_bhy3.mjs +0 -156
  126. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-DhU_bhy3.mjs.map +0 -1
  127. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-g0wIRj9b.mjs +0 -333
  128. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-g0wIRj9b.mjs.map +0 -1
  129. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-K-KFdCcS.mjs +0 -373
  130. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-K-KFdCcS.mjs.map +0 -1
  131. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-NuPXy_Ms.mjs +0 -543
  132. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-NuPXy_Ms.mjs.map +0 -1
  133. package/fesm2022/ngx-t-forms-document-picker.component-BSG7k3IN.mjs +0 -1259
  134. package/fesm2022/ngx-t-forms-document-picker.component-BSG7k3IN.mjs.map +0 -1
  135. package/fesm2022/ngx-t-forms-document-picker.component-ChGqXHcQ.mjs +0 -1996
  136. package/fesm2022/ngx-t-forms-document-picker.component-ChGqXHcQ.mjs.map +0 -1
  137. package/fesm2022/ngx-t-forms-editor-input-element.component-B8Pk-EVY.mjs +0 -581
  138. package/fesm2022/ngx-t-forms-editor-input-element.component-B8Pk-EVY.mjs.map +0 -1
  139. package/fesm2022/ngx-t-forms-editor-input-element.component-Bb7w-vNw.mjs +0 -417
  140. package/fesm2022/ngx-t-forms-editor-input-element.component-Bb7w-vNw.mjs.map +0 -1
  141. package/fesm2022/ngx-t-forms-editor-js-input.component-DlsLiHi1.mjs.map +0 -1
  142. package/fesm2022/ngx-t-forms-editor-js-input.component-XX6kU8DW.mjs +0 -585
  143. package/fesm2022/ngx-t-forms-editor-js-input.component-XX6kU8DW.mjs.map +0 -1
  144. package/fesm2022/ngx-t-forms-file-upload-input-element.component-RCmUClXv.mjs +0 -447
  145. package/fesm2022/ngx-t-forms-file-upload-input-element.component-RCmUClXv.mjs.map +0 -1
  146. package/fesm2022/ngx-t-forms-form-input-selector.component-0jfD5C0G.mjs +0 -163
  147. package/fesm2022/ngx-t-forms-form-input-selector.component-0jfD5C0G.mjs.map +0 -1
  148. package/fesm2022/ngx-t-forms-form-input-selector.component-D5KYWQ2R.mjs +0 -86
  149. package/fesm2022/ngx-t-forms-form-input-selector.component-D5KYWQ2R.mjs.map +0 -1
  150. package/fesm2022/ngx-t-forms-form-json-view.component-z0nQxpqB.mjs +0 -28
  151. package/fesm2022/ngx-t-forms-form-json-view.component-z0nQxpqB.mjs.map +0 -1
  152. package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs +0 -291
  153. package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs.map +0 -1
  154. package/fesm2022/ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs +0 -179
  155. package/fesm2022/ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs.map +0 -1
  156. package/fesm2022/ngx-t-forms-form-section-stepper.component-UUTHYU-A.mjs +0 -936
  157. package/fesm2022/ngx-t-forms-form-section-stepper.component-UUTHYU-A.mjs.map +0 -1
  158. package/fesm2022/ngx-t-forms-forms-builder-menu.component-DTIAOxGV.mjs +0 -816
  159. package/fesm2022/ngx-t-forms-forms-builder-menu.component-DTIAOxGV.mjs.map +0 -1
  160. package/fesm2022/ngx-t-forms-geo-location.component-DW2b5Zli.mjs +0 -329
  161. package/fesm2022/ngx-t-forms-geo-location.component-DW2b5Zli.mjs.map +0 -1
  162. package/fesm2022/ngx-t-forms-image-capture-input-element.component-Us_NAQSl.mjs +0 -360
  163. package/fesm2022/ngx-t-forms-image-capture-input-element.component-Us_NAQSl.mjs.map +0 -1
  164. package/fesm2022/ngx-t-forms-index-6YIhS6cm.mjs.map +0 -1
  165. package/fesm2022/ngx-t-forms-index-BPNBX_ve.mjs +0 -2
  166. package/fesm2022/ngx-t-forms-index-BPNBX_ve.mjs.map +0 -1
  167. package/fesm2022/ngx-t-forms-input-custom.component-DQOqy047.mjs +0 -128
  168. package/fesm2022/ngx-t-forms-input-custom.component-DQOqy047.mjs.map +0 -1
  169. package/fesm2022/ngx-t-forms-input-editor.component-3fRj5swF.mjs +0 -512
  170. package/fesm2022/ngx-t-forms-input-editor.component-3fRj5swF.mjs.map +0 -1
  171. package/fesm2022/ngx-t-forms-input-editor.component-B6UKwV4i.mjs +0 -190
  172. package/fesm2022/ngx-t-forms-input-editor.component-B6UKwV4i.mjs.map +0 -1
  173. package/fesm2022/ngx-t-forms-map-mat-options-keys-eSc99wdA.mjs +0 -132
  174. package/fesm2022/ngx-t-forms-map-mat-options-keys-eSc99wdA.mjs.map +0 -1
  175. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CN17K5q6.mjs +0 -268
  176. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CN17K5q6.mjs.map +0 -1
  177. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CYtTBtyf.mjs.map +0 -1
  178. package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs +0 -241
  179. package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs.map +0 -1
  180. package/fesm2022/ngx-t-forms-mat-slider-editor.component-CTSBrM-j.mjs.map +0 -1
  181. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-CcYiwx-8.mjs.map +0 -1
  182. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs +0 -180
  183. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs.map +0 -1
  184. package/fesm2022/ngx-t-forms-missing-form-configs.component-AaDfeALs.mjs +0 -114
  185. package/fesm2022/ngx-t-forms-missing-form-configs.component-AaDfeALs.mjs.map +0 -1
  186. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-D0igUV3W.mjs +0 -69
  187. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-D0igUV3W.mjs.map +0 -1
  188. package/fesm2022/ngx-t-forms-mscoa-error-display.component-rzl-fMmd.mjs +0 -200
  189. package/fesm2022/ngx-t-forms-mscoa-error-display.component-rzl-fMmd.mjs.map +0 -1
  190. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-2SspNWtF.mjs +0 -447
  191. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-2SspNWtF.mjs.map +0 -1
  192. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CSGf4XeN.mjs +0 -850
  193. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CSGf4XeN.mjs.map +0 -1
  194. package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-CBuGHwnU.mjs +0 -107
  195. package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-CBuGHwnU.mjs.map +0 -1
  196. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CbQdnVgw.mjs +0 -1665
  197. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CbQdnVgw.mjs.map +0 -1
  198. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-dmRIi9ph.mjs +0 -905
  199. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-dmRIi9ph.mjs.map +0 -1
  200. package/fesm2022/ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs.map +0 -1
  201. package/fesm2022/ngx-t-forms-ngx-t-forms-BefvSS-p.mjs +0 -28237
  202. package/fesm2022/ngx-t-forms-ngx-t-forms-BefvSS-p.mjs.map +0 -1
  203. package/fesm2022/ngx-t-forms-paginated-selection-table-BGNxI2yq.mjs +0 -1024
  204. package/fesm2022/ngx-t-forms-paginated-selection-table-BGNxI2yq.mjs.map +0 -1
  205. package/fesm2022/ngx-t-forms-payload-template-editor.component-DL4ZTTsH.mjs +0 -203
  206. package/fesm2022/ngx-t-forms-payload-template-editor.component-DL4ZTTsH.mjs.map +0 -1
  207. package/fesm2022/ngx-t-forms-payload-template-editor.component-o3qwpvYu.mjs +0 -234
  208. package/fesm2022/ngx-t-forms-payload-template-editor.component-o3qwpvYu.mjs.map +0 -1
  209. package/fesm2022/ngx-t-forms-pipeline-generator.component-BqtdKcN2.mjs +0 -1126
  210. package/fesm2022/ngx-t-forms-pipeline-generator.component-BqtdKcN2.mjs.map +0 -1
  211. package/fesm2022/ngx-t-forms-pipeline-generator.component-DcZPv8-N.mjs +0 -748
  212. package/fesm2022/ngx-t-forms-pipeline-generator.component-DcZPv8-N.mjs.map +0 -1
  213. package/fesm2022/ngx-t-forms-record-list-manager.component-BcANl5Bq.mjs +0 -639
  214. package/fesm2022/ngx-t-forms-record-list-manager.component-BcANl5Bq.mjs.map +0 -1
  215. package/fesm2022/ngx-t-forms-record-list-manager.component-l-2uDVmi.mjs.map +0 -1
  216. package/fesm2022/ngx-t-forms-required-inputs.component-BMmNxeE-.mjs +0 -272
  217. package/fesm2022/ngx-t-forms-required-inputs.component-BMmNxeE-.mjs.map +0 -1
  218. package/fesm2022/ngx-t-forms-required-inputs.component-Dr0P1gin.mjs +0 -451
  219. package/fesm2022/ngx-t-forms-required-inputs.component-Dr0P1gin.mjs.map +0 -1
  220. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BSv_KQIU.mjs +0 -625
  221. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BSv_KQIU.mjs.map +0 -1
  222. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-C3sNmq_H.mjs.map +0 -1
  223. package/fesm2022/ngx-t-forms-search-field.component-B2ZO7lqO.mjs +0 -38
  224. package/fesm2022/ngx-t-forms-search-field.component-B2ZO7lqO.mjs.map +0 -1
  225. package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs +0 -72
  226. package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs.map +0 -1
  227. package/fesm2022/ngx-t-forms-section-report.component-yGAjX7Gb.mjs +0 -248
  228. package/fesm2022/ngx-t-forms-section-report.component-yGAjX7Gb.mjs.map +0 -1
  229. package/fesm2022/ngx-t-forms-select-input-element.component-BqtJi4ek.mjs +0 -408
  230. package/fesm2022/ngx-t-forms-select-input-element.component-BqtJi4ek.mjs.map +0 -1
  231. package/fesm2022/ngx-t-forms-selection-options-editor.component-BuXVzo7Z.mjs +0 -169
  232. package/fesm2022/ngx-t-forms-selection-options-editor.component-BuXVzo7Z.mjs.map +0 -1
  233. package/fesm2022/ngx-t-forms-selection-options-editor.component-_glw1cqH.mjs +0 -275
  234. package/fesm2022/ngx-t-forms-selection-options-editor.component-_glw1cqH.mjs.map +0 -1
  235. package/fesm2022/ngx-t-forms-t-workflow-picker.component-CLgN3YM4.mjs +0 -366
  236. package/fesm2022/ngx-t-forms-t-workflow-picker.component-CLgN3YM4.mjs.map +0 -1
  237. package/fesm2022/ngx-t-forms-t-workflow-picker.component-DAwP-cWK.mjs.map +0 -1
  238. package/fesm2022/ngx-t-forms-textarea-input-element.component-SCEBLqJd.mjs +0 -233
  239. package/fesm2022/ngx-t-forms-textarea-input-element.component-SCEBLqJd.mjs.map +0 -1
  240. package/fesm2022/ngx-t-forms-toggle-input-element.component-CoyTMRMa.mjs +0 -305
  241. package/fesm2022/ngx-t-forms-toggle-input-element.component-CoyTMRMa.mjs.map +0 -1
  242. package/fesm2022/ngx-t-forms-validators-config.component-B1Lzs7o2.mjs +0 -1105
  243. package/fesm2022/ngx-t-forms-validators-config.component-B1Lzs7o2.mjs.map +0 -1
  244. package/fesm2022/ngx-t-forms-validators-config.component-CoGSFor3.mjs +0 -574
  245. package/fesm2022/ngx-t-forms-validators-config.component-CoGSFor3.mjs.map +0 -1
  246. package/fesm2022/ngx-t-forms-workflow-adjudication.component-Bz07jv-N.mjs +0 -2923
  247. package/fesm2022/ngx-t-forms-workflow-adjudication.component-Bz07jv-N.mjs.map +0 -1
@@ -1,639 +0,0 @@
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, ViewEncapsulation, ChangeDetectionStrategy, Component, Input } 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-BefvSS-p.mjs';
25
-
26
- const RecordListManagerComponent_Conditional_8_For_3_For_7_Defer_3_DepsFn = () => [i4.CdkPortalOutlet];
27
- const _forTrack0 = ($index, $item) => $item.value;
28
- const _forTrack1 = ($index, $item) => $item.id;
29
- function RecordListManagerComponent_For_4_th_1_Template(rf, ctx) { if (rf & 1) {
30
- i0.ɵɵelementStart(0, "th", 11);
31
- i0.ɵɵtext(1);
32
- i0.ɵɵelementEnd();
33
- } if (rf & 2) {
34
- const col_r1 = i0.ɵɵnextContext().$implicit;
35
- i0.ɵɵadvance();
36
- i0.ɵɵtextInterpolate(col_r1.label);
37
- } }
38
- function RecordListManagerComponent_For_4_td_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
39
- const _r2 = i0.ɵɵgetCurrentView();
40
- i0.ɵɵelementStart(0, "button", 14);
41
- i0.ɵɵlistener("click", function RecordListManagerComponent_For_4_td_2_Conditional_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r2); const row_r3 = i0.ɵɵnextContext().$implicit; const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.editItem(row_r3)); });
42
- i0.ɵɵelementStart(1, "mat-icon");
43
- i0.ɵɵtext(2, "edit");
44
- i0.ɵɵelementEnd()();
45
- i0.ɵɵelementStart(3, "button", 15);
46
- i0.ɵɵlistener("click", function RecordListManagerComponent_For_4_td_2_Conditional_1_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r2); const row_r3 = i0.ɵɵnextContext().$implicit; const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.removeItem(row_r3)); });
47
- i0.ɵɵelementStart(4, "mat-icon");
48
- i0.ɵɵtext(5, "delete");
49
- i0.ɵɵelementEnd()();
50
- } if (rf & 2) {
51
- const ctx_r3 = i0.ɵɵnextContext(3);
52
- i0.ɵɵproperty("disabled", ctx_r3.disabled);
53
- i0.ɵɵadvance(3);
54
- i0.ɵɵproperty("disabled", ctx_r3.disabled);
55
- } }
56
- function RecordListManagerComponent_For_4_td_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
57
- i0.ɵɵelementStart(0, "span", 13);
58
- i0.ɵɵtext(1);
59
- i0.ɵɵelementEnd();
60
- } if (rf & 2) {
61
- const row_r3 = i0.ɵɵnextContext().$implicit;
62
- const col_r1 = i0.ɵɵnextContext().$implicit;
63
- const ctx_r3 = i0.ɵɵnextContext();
64
- i0.ɵɵproperty("title", ctx_r3.cellText(row_r3, col_r1.value));
65
- i0.ɵɵadvance();
66
- i0.ɵɵtextInterpolate1(" ", ctx_r3.cellText(row_r3, col_r1.value), " ");
67
- } }
68
- function RecordListManagerComponent_For_4_td_2_Template(rf, ctx) { if (rf & 1) {
69
- i0.ɵɵelementStart(0, "td", 12);
70
- i0.ɵɵconditionalCreate(1, RecordListManagerComponent_For_4_td_2_Conditional_1_Template, 6, 2)(2, RecordListManagerComponent_For_4_td_2_Conditional_2_Template, 2, 2, "span", 13);
71
- i0.ɵɵelementEnd();
72
- } if (rf & 2) {
73
- const col_r1 = i0.ɵɵnextContext().$implicit;
74
- const ctx_r3 = i0.ɵɵnextContext();
75
- i0.ɵɵadvance();
76
- i0.ɵɵconditional(ctx_r3.isActionsColumn(col_r1.value) ? 1 : 2);
77
- } }
78
- function RecordListManagerComponent_For_4_Template(rf, ctx) { if (rf & 1) {
79
- i0.ɵɵelementContainerStart(0, 3);
80
- i0.ɵɵtemplate(1, RecordListManagerComponent_For_4_th_1_Template, 2, 1, "th", 9)(2, RecordListManagerComponent_For_4_td_2_Template, 3, 1, "td", 10);
81
- i0.ɵɵelementContainerEnd();
82
- } if (rf & 2) {
83
- const col_r1 = ctx.$implicit;
84
- const ctx_r3 = i0.ɵɵnextContext();
85
- i0.ɵɵproperty("matColumnDef", col_r1.value)("stickyEnd", ctx_r3.isActionsColumn(col_r1.value));
86
- } }
87
- function RecordListManagerComponent_tr_5_Template(rf, ctx) { if (rf & 1) {
88
- i0.ɵɵelement(0, "tr", 16);
89
- } }
90
- function RecordListManagerComponent_tr_6_Template(rf, ctx) { if (rf & 1) {
91
- i0.ɵɵelement(0, "tr", 17);
92
- } }
93
- function RecordListManagerComponent_Conditional_7_Template(rf, ctx) { if (rf & 1) {
94
- i0.ɵɵelement(0, "lib-empty-state", 6);
95
- } }
96
- function RecordListManagerComponent_Conditional_8_For_3_Conditional_5_Template(rf, ctx) { if (rf & 1) {
97
- i0.ɵɵelementStart(0, "span", 23);
98
- i0.ɵɵtext(1);
99
- i0.ɵɵelementEnd();
100
- } if (rf & 2) {
101
- const section_r6 = i0.ɵɵnextContext().$implicit;
102
- const editing_r7 = i0.ɵɵnextContext();
103
- i0.ɵɵadvance();
104
- i0.ɵɵtextInterpolate1(" ", editing_r7[section_r6.showItemValue], " ");
105
- } }
106
- function RecordListManagerComponent_Conditional_8_For_3_For_7_Defer_1_ng_template_0_Template(rf, ctx) { }
107
- function RecordListManagerComponent_Conditional_8_For_3_For_7_Defer_1_Template(rf, ctx) { if (rf & 1) {
108
- const _r8 = i0.ɵɵgetCurrentView();
109
- i0.ɵɵtemplate(0, RecordListManagerComponent_Conditional_8_For_3_For_7_Defer_1_ng_template_0_Template, 0, 0, "ng-template", 25);
110
- i0.ɵɵlistener("attached", function RecordListManagerComponent_Conditional_8_For_3_For_7_Defer_1_Template_ng_template_attached_0_listener($event) { i0.ɵɵrestoreView(_r8); const element_r9 = i0.ɵɵnextContext().$implicit; const ctx_r3 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r3.onPortalAttached($event, element_r9)); });
111
- } if (rf & 2) {
112
- const element_r9 = i0.ɵɵnextContext().$implicit;
113
- const ctx_r3 = i0.ɵɵnextContext(3);
114
- i0.ɵɵproperty("cdkPortalOutlet", ctx_r3.portals()[element_r9.id]);
115
- } }
116
- function RecordListManagerComponent_Conditional_8_For_3_For_7_DeferPlaceholder_2_Template(rf, ctx) { if (rf & 1) {
117
- i0.ɵɵelementStart(0, "div", 26);
118
- i0.ɵɵelement(1, "mat-spinner", 27);
119
- i0.ɵɵelementEnd();
120
- } }
121
- function RecordListManagerComponent_Conditional_8_For_3_For_7_Template(rf, ctx) { if (rf & 1) {
122
- i0.ɵɵelementStart(0, "div", 24);
123
- i0.ɵɵdomTemplate(1, RecordListManagerComponent_Conditional_8_For_3_For_7_Defer_1_Template, 1, 1)(2, RecordListManagerComponent_Conditional_8_For_3_For_7_DeferPlaceholder_2_Template, 2, 0);
124
- i0.ɵɵdefer(3, 1, RecordListManagerComponent_Conditional_8_For_3_For_7_Defer_3_DepsFn, null, 2);
125
- i0.ɵɵdeferOnViewport(0, -1);
126
- i0.ɵɵelementEnd();
127
- } }
128
- function RecordListManagerComponent_Conditional_8_For_3_Template(rf, ctx) { if (rf & 1) {
129
- i0.ɵɵelementStart(0, "mat-expansion-panel")(1, "mat-expansion-panel-header")(2, "mat-panel-title", 22)(3, "span");
130
- i0.ɵɵtext(4);
131
- i0.ɵɵelementEnd();
132
- i0.ɵɵconditionalCreate(5, RecordListManagerComponent_Conditional_8_For_3_Conditional_5_Template, 2, 1, "span", 23);
133
- i0.ɵɵelementEnd()();
134
- i0.ɵɵrepeaterCreate(6, RecordListManagerComponent_Conditional_8_For_3_For_7_Template, 5, 0, "div", 24, _forTrack1);
135
- i0.ɵɵelementEnd();
136
- } if (rf & 2) {
137
- const section_r6 = ctx.$implicit;
138
- const editing_r7 = i0.ɵɵnextContext();
139
- i0.ɵɵadvance(4);
140
- i0.ɵɵtextInterpolate(section_r6.label);
141
- i0.ɵɵadvance();
142
- i0.ɵɵconditional(section_r6.showItemValue && editing_r7[section_r6.showItemValue] != null ? 5 : -1);
143
- i0.ɵɵadvance();
144
- i0.ɵɵrepeater(section_r6.elements);
145
- } }
146
- function RecordListManagerComponent_Conditional_8_Template(rf, ctx) { if (rf & 1) {
147
- const _r5 = i0.ɵɵgetCurrentView();
148
- i0.ɵɵelementStart(0, "div", 7)(1, "mat-accordion", 18);
149
- i0.ɵɵrepeaterCreate(2, RecordListManagerComponent_Conditional_8_For_3_Template, 8, 2, "mat-expansion-panel", null, _forTrack1);
150
- i0.ɵɵelementEnd();
151
- i0.ɵɵelementStart(4, "div", 19)(5, "button", 20);
152
- i0.ɵɵlistener("click", function RecordListManagerComponent_Conditional_8_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r5); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.cancelEdit()); });
153
- i0.ɵɵtext(6, "Cancel");
154
- i0.ɵɵelementEnd();
155
- i0.ɵɵelementStart(7, "button", 21);
156
- i0.ɵɵlistener("click", function RecordListManagerComponent_Conditional_8_Template_button_click_7_listener() { i0.ɵɵrestoreView(_r5); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.saveRecord()); });
157
- i0.ɵɵtext(8);
158
- i0.ɵɵelementStart(9, "mat-icon");
159
- i0.ɵɵtext(10, "save");
160
- i0.ɵɵelementEnd()()()();
161
- } if (rf & 2) {
162
- const ctx_r3 = i0.ɵɵnextContext();
163
- i0.ɵɵadvance(2);
164
- i0.ɵɵrepeater(ctx_r3.visibleSections());
165
- i0.ɵɵadvance(5);
166
- i0.ɵɵproperty("disabled", !ctx_r3.canSaveRecord());
167
- i0.ɵɵadvance();
168
- i0.ɵɵtextInterpolate1(" ", ctx.id ? "Update" : "Save new", " record ");
169
- } }
170
- function RecordListManagerComponent_Conditional_9_Template(rf, ctx) { if (rf & 1) {
171
- const _r10 = i0.ɵɵgetCurrentView();
172
- i0.ɵɵelementStart(0, "div", 8)(1, "span", 28);
173
- i0.ɵɵtext(2);
174
- i0.ɵɵelementEnd();
175
- i0.ɵɵelementStart(3, "button", 29);
176
- i0.ɵɵlistener("click", function RecordListManagerComponent_Conditional_9_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r10); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.addNewItem()); });
177
- i0.ɵɵelementStart(4, "mat-icon");
178
- i0.ɵɵtext(5, "add");
179
- i0.ɵɵelementEnd();
180
- i0.ɵɵtext(6, " Add Record ");
181
- i0.ɵɵelementEnd()();
182
- } if (rf & 2) {
183
- const ctx_r3 = i0.ɵɵnextContext();
184
- i0.ɵɵadvance(2);
185
- i0.ɵɵtextInterpolate1("Records (", ctx_r3.rowCount(), ")");
186
- i0.ɵɵadvance();
187
- i0.ɵɵproperty("disabled", ctx_r3.disabled);
188
- } }
189
- /** Synthetic column key for the per-row edit/delete action cell. */
190
- const ACTIONS_COLUMN = 'actions';
191
- /**
192
- * Internal record-list manager. Implements `MatFormFieldControl<unknown[]>` and is
193
- * embedded by `t-dynamic-data-edit` for `RecordListManager` editor types.
194
- *
195
- * Owns only its content (table + edit panel). The parent `mat-form-field` renders
196
- * the label, hint, and validation errors, so this component adds neither a header
197
- * nor an inline error list.
198
- *
199
- * Per-record editing is delegated to a dynamically-attached `TDynamicDataEditComponent`
200
- * portal per inner-section element; the portal's `valueChange` output is patched back
201
- * into the in-edit buffer via the element's `deepBind` path.
202
- *
203
- * NOTE: `MatFormFieldControl<T>` mandates plain mutable `value` / `disabled` /
204
- * `required` / `placeholder` / `id` members, `@Input()` decorators, the
205
- * `focused` / `touched` / `stateChanges` members, and the `useExisting` provider.
206
- * These are framework wiring, not defects — the CLAUDE.md bans on `@Input()` /
207
- * `useExisting` do not apply to MatFormFieldControl integration.
208
- *
209
- * @internal Not exported via public-api.ts.
210
- */
211
- class RecordListManagerComponent {
212
- static { this.nextId = 0; }
213
- #disabled;
214
- get disabled() {
215
- return this.#disabled;
216
- }
217
- set disabled(value) {
218
- this.#disabled = coerceBooleanProperty(value);
219
- this.stateChanges.next();
220
- }
221
- #required;
222
- get required() {
223
- return this.#required;
224
- }
225
- set required(value) {
226
- this.#required = coerceBooleanProperty(value);
227
- this.stateChanges.next();
228
- }
229
- #placeholder;
230
- get placeholder() {
231
- return this.#placeholder;
232
- }
233
- set placeholder(value) {
234
- this.#placeholder = value;
235
- this.stateChanges.next();
236
- }
237
- /**
238
- * Record rows held by the table. Parent passes heterogeneous payloads
239
- * (`{}` initial / arrays / null); non-array writes coerce to an empty list.
240
- */
241
- get value() {
242
- return this.#rows();
243
- }
244
- set value(val) {
245
- const next = Array.isArray(val) ? val : [];
246
- this.#rows.set(next);
247
- this.onChange(next);
248
- this.stateChanges.next();
249
- }
250
- get shouldLabelFloat() {
251
- return this.focused || !this.empty;
252
- }
253
- get empty() {
254
- return this.#rows().length === 0;
255
- }
256
- get errorState() {
257
- const requiredUnset = this.empty && this.#required && this.touched;
258
- const ngControlError = this.ngControl?.errors != null;
259
- const externalError = (this.errors?.length ?? 0) > 0;
260
- return requiredUnset || ngControlError || externalError;
261
- }
262
- #elementRef;
263
- #destroyRef;
264
- /** The component portalled per record — injected to avoid a circular import. */
265
- #nestedEditor;
266
- constructor() {
267
- // --- MatFormFieldControl wiring (plain mutable members, framework-mandated) ---
268
- this.stateChanges = new Subject();
269
- this.controlType = 'lib-record-list-manager';
270
- this.focused = false;
271
- this.touched = false;
272
- this.autofilled = false;
273
- this.id = `lib-record-list-manager-${RecordListManagerComponent.nextId++}`;
274
- this.describedBy = '';
275
- /** Validation errors surfaced by the parent for error-state derivation. */
276
- this.errors = [];
277
- this.#disabled = false;
278
- this.#required = false;
279
- this.#placeholder = '';
280
- // --- DI ---
281
- this.ngControl = inject(NgControl, { self: true, optional: true });
282
- this.#elementRef = inject(ElementRef);
283
- this.#destroyRef = inject(DestroyRef);
284
- /** The component portalled per record — injected to avoid a circular import. */
285
- this.#nestedEditor = inject(NESTED_EDITOR_COMPONENT);
286
- // --- ControlValueAccessor ---
287
- this.onChange = () => {
288
- /* noop until registered */
289
- };
290
- this.onTouched = () => {
291
- /* noop until registered */
292
- };
293
- // --- Internal reactive state (signal-first) ---
294
- /** Backing rows; the `MatTableDataSource` is kept in sync via an effect. */
295
- this.#rows = signal([], ...(ngDevMode ? [{ debugName: "#rows" }] : /* istanbul ignore next */ []));
296
- /** Table data source whose `.data` mirrors `#rows()`. */
297
- this.dataSource = new MatTableDataSource([]);
298
- /** Row currently being edited, or `null` when no edit is in progress. */
299
- this.#inEdit = signal(null, ...(ngDevMode ? [{ debugName: "#inEdit" }] : /* istanbul ignore next */ []));
300
- /** Inner editor sections derived from the active editor config. */
301
- this.#sections = signal([], ...(ngDevMode ? [{ debugName: "#sections" }] : /* istanbul ignore next */ []));
302
- /** Lazily-built portals keyed by inner-section element id. */
303
- this.#portals = signal({}, ...(ngDevMode ? [{ debugName: "#portals" }] : /* istanbul ignore next */ []));
304
- /** Active per-element portal output subscriptions, keyed by element id. */
305
- this.#portalSubscriptions = new Map();
306
- /** Form input definitions forwarded into the dynamic editor portals. */
307
- this.formInputs = input([], ...(ngDevMode ? [{ debugName: "formInputs" }] : /* istanbul ignore next */ []));
308
- /** Editor configuration for this record-list element. */
309
- this.editorConfig = input(undefined, ...(ngDevMode ? [{ debugName: "editorConfig" }] : /* istanbul ignore next */ []));
310
- /** Emits whenever the record list value changes. */
311
- this.valueChange = output();
312
- // --- Template-facing derived state ---
313
- this.inEditRow = this.#inEdit.asReadonly();
314
- this.portals = this.#portals.asReadonly();
315
- /**
316
- * Inner sections with each element list narrowed to the elements whose
317
- * `additionalTest` entries ALL pass against the record being edited — the same
318
- * rule `isElementApplicable` applies to top-level editor elements.
319
- *
320
- * An element without `additionalTest` always shows. When a section hides nothing,
321
- * the original section object is returned, and when no section hides anything the
322
- * original array is returned, so consumers that never configured a test (the
323
- * reports / dashboard chart config, for one) get object-identical output and
324
- * behave exactly as before.
325
- */
326
- this.visibleSections = computed(() => {
327
- const record = this.#inEdit();
328
- const sections = this.#sections();
329
- let narrowed = false;
330
- const next = sections.map((section) => {
331
- const elements = section.elements.filter((element) => (element.additionalTest ?? []).every((test) => testAgainstItem(test, record)));
332
- if (elements.length === section.elements.length) {
333
- return section;
334
- }
335
- narrowed = true;
336
- return { ...section, elements };
337
- });
338
- return narrowed ? next : sections;
339
- }, ...(ngDevMode ? [{ debugName: "visibleSections" }] : /* istanbul ignore next */ []));
340
- this.tableColumns = computed(() => [
341
- ...(this.editorConfig()?.options ?? []).map((opt) => ({
342
- label: String(opt.label),
343
- value: String(opt.value),
344
- })),
345
- { label: ' ', value: ACTIONS_COLUMN },
346
- ], ...(ngDevMode ? [{ debugName: "tableColumns" }] : /* istanbul ignore next */ []));
347
- this.displayedColumns = computed(() => this.tableColumns().map((c) => c.value), ...(ngDevMode ? [{ debugName: "displayedColumns" }] : /* istanbul ignore next */ []));
348
- this.rowCount = computed(() => this.#rows().length, ...(ngDevMode ? [{ debugName: "rowCount" }] : /* istanbul ignore next */ []));
349
- this.isActionsColumn = (column) => column === ACTIONS_COLUMN;
350
- /**
351
- * Whether the in-edit record may be saved: every `required` inner element must
352
- * resolve to a non-empty value via its `deepBind` path.
353
- *
354
- * Only currently-visible elements are considered — a `required` element hidden by
355
- * its own `additionalTest` cannot be filled in, so counting it would leave the
356
- * save button permanently disabled.
357
- */
358
- this.canSaveRecord = computed(() => {
359
- const editing = this.#inEdit();
360
- if (!editing || !this.editorConfig()) {
361
- return false;
362
- }
363
- for (const section of this.visibleSections()) {
364
- for (const element of section.elements) {
365
- if (!element.required) {
366
- continue;
367
- }
368
- const { value } = safeReturnDeepProperty(editing, element.deepBind ?? []);
369
- if (value == null || value === '') {
370
- return false;
371
- }
372
- }
373
- }
374
- return true;
375
- }, ...(ngDevMode ? [{ debugName: "canSaveRecord" }] : /* istanbul ignore next */ []));
376
- // --- Effects (framework-state sync, not signal writes within) ---
377
- /** Mirror the rows signal into the Material table data source. */
378
- this.tableSync = effect(() => {
379
- this.dataSource.data = this.#rows();
380
- }, ...(ngDevMode ? [{ debugName: "tableSync" }] : /* istanbul ignore next */ []));
381
- /**
382
- * Rebuild the inner-section list and portal map whenever the editor config
383
- * changes. Portals are recreated per config so a stale `ComponentPortal`
384
- * (already attached) is never re-used.
385
- */
386
- this.configSync = effect(() => {
387
- const next = this.editorConfig()?.secondaryElementEditorConfig ?? [];
388
- if (_isEqual(this.#sections(), next)) {
389
- return;
390
- }
391
- this.#teardownPortalSubscriptions();
392
- this.#sections.set(next);
393
- const portals = {};
394
- for (const section of next) {
395
- for (const element of section.elements) {
396
- portals[element.id] = new ComponentPortal(this.#nestedEditor);
397
- }
398
- }
399
- this.#portals.set(portals);
400
- }, ...(ngDevMode ? [{ debugName: "configSync" }] : /* istanbul ignore next */ []));
401
- if (this.ngControl != null) {
402
- this.ngControl.valueAccessor = this;
403
- }
404
- this.#destroyRef.onDestroy(() => {
405
- this.stateChanges.complete();
406
- this.#teardownPortalSubscriptions();
407
- });
408
- }
409
- writeValue(value) {
410
- this.#rows.set(Array.isArray(value) ? value : []);
411
- this.stateChanges.next();
412
- }
413
- registerOnChange(fn) {
414
- this.onChange = fn;
415
- }
416
- registerOnTouched(fn) {
417
- this.onTouched = fn;
418
- }
419
- setDisabledState(isDisabled) {
420
- this.disabled = isDisabled;
421
- }
422
- setDescribedByIds(ids) {
423
- this.describedBy = ids.join(' ');
424
- this.#elementRef.nativeElement.setAttribute('aria-describedby', this.describedBy);
425
- this.stateChanges.next();
426
- }
427
- onContainerClick() {
428
- this.markAsTouched();
429
- if (!this.focused) {
430
- this.focused = true;
431
- this.stateChanges.next();
432
- }
433
- }
434
- markAsTouched() {
435
- if (!this.touched) {
436
- this.touched = true;
437
- this.onTouched();
438
- this.stateChanges.next();
439
- }
440
- }
441
- // --- Internal reactive state (signal-first) ---
442
- /** Backing rows; the `MatTableDataSource` is kept in sync via an effect. */
443
- #rows;
444
- /** Row currently being edited, or `null` when no edit is in progress. */
445
- #inEdit;
446
- /** Inner editor sections derived from the active editor config. */
447
- #sections;
448
- /** Lazily-built portals keyed by inner-section element id. */
449
- #portals;
450
- /** Active per-element portal output subscriptions, keyed by element id. */
451
- #portalSubscriptions;
452
- /**
453
- * A cell's text. Rows are heterogeneous wrapper-defined records, so a column may
454
- * hold anything; this renders it as one line and an absent value as an empty cell
455
- * rather than the string `undefined`.
456
- *
457
- * Also the `title` for the cell, which is what makes truncation safe — the full
458
- * value stays readable on hover instead of being lost to the ellipsis.
459
- *
460
- * @param row - The record being rendered.
461
- * @param column - The row key this column shows.
462
- * @returns The cell's display text, or `''` when the record has no such value.
463
- */
464
- cellText(row, column) {
465
- const value = row[column];
466
- return value == null ? '' : String(value);
467
- }
468
- // --- Record actions ---
469
- addNewItem() {
470
- this.#inEdit.set({});
471
- }
472
- editItem(row) {
473
- this.#inEdit.set(row);
474
- }
475
- cancelEdit() {
476
- this.#inEdit.set(null);
477
- }
478
- saveRecord() {
479
- const editing = this.#inEdit();
480
- if (!editing) {
481
- return;
482
- }
483
- let next;
484
- if (editing.id != null) {
485
- next = this.value.map((item) => (item.id === editing.id ? editing : item));
486
- }
487
- else {
488
- next = [...this.value, { ...editing, id: crypto.randomUUID() }];
489
- }
490
- this.value = next;
491
- this.#inEdit.set(null);
492
- this.valueChange.emit(this.value);
493
- }
494
- removeItem(item) {
495
- this.value = this.value.filter((row) => row.id !== item.id);
496
- if (this.#inEdit()?.id === item.id) {
497
- this.#inEdit.set(null);
498
- }
499
- this.valueChange.emit(this.value);
500
- }
501
- /**
502
- * Wire a freshly-attached per-record editor portal: push the current inputs in,
503
- * and patch the in-edit buffer whenever the inner editor emits a value. The
504
- * subscription is keyed by element id and torn down on config change / destroy.
505
- *
506
- * This also runs on RE-attach, because an element hidden by `additionalTest` has
507
- * its portal outlet destroyed and a brand-new one created when it comes back:
508
- *
509
- * - Double-attach cannot happen. `CdkPortalOutlet.ngOnDestroy` disposes the outlet,
510
- * which detaches the portal and nulls its `_attachedHost`, so the same
511
- * `ComponentPortal` instance is legitimately re-attachable to the new outlet.
512
- * Only the outlet is marked disposed, and that one is gone.
513
- * - Double-subscribe cannot happen either. The previous subscription for this
514
- * element id is unsubscribed below before the new one replaces it, and it would
515
- * in any case have completed already: `outputToObservable` completes when the
516
- * emitting component is destroyed, which also unregisters the
517
- * `takeUntilDestroyed` hook rather than accumulating one per attach.
518
- */
519
- onPortalAttached(portalRef, element) {
520
- const componentRef = portalRef;
521
- componentRef.setInput('formInputs', this.formInputs());
522
- componentRef.setInput('editorConfig', element);
523
- componentRef.setInput('data', this.#inEdit());
524
- this.#portalSubscriptions.get(element.id)?.unsubscribe();
525
- const sub = outputToObservable(componentRef.instance.valueChange)
526
- .pipe(takeUntilDestroyed(this.#destroyRef))
527
- .subscribe((event) => {
528
- const current = this.#inEdit();
529
- const draft = (current ? structuredClone(current) : {});
530
- this.#applyClearOnChange(draft, element, current, event);
531
- const patched = assignDeepPropertyToObject(draft, element.deepBind ?? [], event);
532
- this.#inEdit.set(patched);
533
- componentRef.setInput('data', patched);
534
- componentRef.changeDetectorRef.markForCheck();
535
- });
536
- this.#portalSubscriptions.set(element.id, sub);
537
- }
538
- /**
539
- * Blanks the paths an element declares in `clearOnChange`, so choosing one of a
540
- * pair of mutually exclusive settings drops the other one.
541
- *
542
- * Guarded, unlike the top-level editors: it fires only when the element's own
543
- * bound value moves AWAY from a value the record already carried. The nested
544
- * editor emits once shortly after every attach — replaying the stored value, or
545
- * `defaultValue` when the bound key is absent — so an unguarded clear would wipe
546
- * sibling fields merely because an administrator opened an existing record, and
547
- * again every time a hidden element was re-shown. Elements without
548
- * `clearOnChange` are untouched.
549
- */
550
- #applyClearOnChange(draft, element, current, nextValue) {
551
- const paths = element.clearOnChange;
552
- if (!paths || paths.length === 0) {
553
- return;
554
- }
555
- const { value: previousValue } = safeReturnDeepProperty(current, element.deepBind ?? []);
556
- // Never set before: this is the first explicit choice, not a change away from
557
- // something, so there is nothing the administrator asked to discard.
558
- if (previousValue === undefined || previousValue === '') {
559
- return;
560
- }
561
- if (_isEqual(previousValue, nextValue)) {
562
- return;
563
- }
564
- for (const path of paths) {
565
- assignDeepPropertyToObject(draft, path, undefined);
566
- }
567
- }
568
- #teardownPortalSubscriptions() {
569
- this.#portalSubscriptions.forEach((sub) => sub.unsubscribe());
570
- this.#portalSubscriptions.clear();
571
- }
572
- static { this.ɵfac = function RecordListManagerComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || RecordListManagerComponent)(); }; }
573
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: RecordListManagerComponent, selectors: [["lib-record-list-manager"]], hostAttrs: [1, "lib-record-list-manager"], hostVars: 4, hostBindings: function RecordListManagerComponent_HostBindings(rf, ctx) { if (rf & 2) {
574
- i0.ɵɵdomProperty("id", ctx.id);
575
- i0.ɵɵattribute("aria-describedby", ctx.describedBy);
576
- i0.ɵɵclassProp("lib-record-list-manager--floating", ctx.shouldLabelFloat);
577
- } }, inputs: { mapToData: "mapToData", errors: "errors", disabled: "disabled", required: "required", placeholder: "placeholder", value: "value", formInputs: [1, "formInputs"], editorConfig: [1, "editorConfig"] }, outputs: { valueChange: "valueChange" }, features: [i0.ɵɵProvidersFeature([{ provide: MatFormFieldControl, useExisting: RecordListManagerComponent }])], decls: 10, vars: 5, consts: [[1, "lib-record-list-manager__table"], [1, "lib-record-list-manager__scroll"], ["mat-table", "", 1, "lib-record-list-manager__grid", 3, "dataSource"], [3, "matColumnDef", "stickyEnd"], ["mat-header-row", "", 4, "matHeaderRowDef"], ["mat-row", "", "class", "lib-record-list-manager__row", 4, "matRowDef", "matRowDefColumns"], ["icon", "inbox", "message", "No records yet. Use Add Record to get started."], [1, "lib-record-list-manager__editor"], [1, "lib-record-list-manager__actions", "lib-record-list-manager__actions--list"], ["mat-header-cell", "", "scope", "col", 4, "matHeaderCellDef"], ["mat-cell", "", "class", "lib-record-list-manager__cell", 4, "matCellDef"], ["mat-header-cell", "", "scope", "col"], ["mat-cell", "", 1, "lib-record-list-manager__cell"], [1, "lib-record-list-manager__cell-text", 3, "title"], ["type", "button", "mat-icon-button", "", "matTooltip", "Edit", "aria-label", "Edit record", 1, "lib-record-list-manager__action", 3, "click", "disabled"], ["type", "button", "mat-icon-button", "", "color", "warn", "matTooltip", "Delete", "aria-label", "Delete record", 1, "lib-record-list-manager__action", 3, "click", "disabled"], ["mat-header-row", ""], ["mat-row", "", 1, "lib-record-list-manager__row"], ["togglePosition", "after", 1, "lib-record-list-manager__sections"], [1, "lib-record-list-manager__actions"], ["type", "button", "mat-button", "", "color", "primary", 3, "click"], ["type", "button", "mat-stroked-button", "", "color", "primary", 3, "click", "disabled"], [1, "lib-record-list-manager__section-title"], [1, "lib-record-list-manager__section-value"], [1, "lib-record-list-manager__field"], [3, "attached", "cdkPortalOutlet"], [1, "lib-record-list-manager__loading"], ["diameter", "18"], [1, "lib-record-list-manager__count"], ["type", "button", "mat-stroked-button", "", "color", "primary", "matTooltip", "Add a new record", "aria-label", "Add a new record", 3, "click", "disabled"]], template: function RecordListManagerComponent_Template(rf, ctx) { if (rf & 1) {
578
- i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "table", 2);
579
- i0.ɵɵrepeaterCreate(3, RecordListManagerComponent_For_4_Template, 3, 2, "ng-container", 3, _forTrack0);
580
- i0.ɵɵtemplate(5, RecordListManagerComponent_tr_5_Template, 1, 0, "tr", 4)(6, RecordListManagerComponent_tr_6_Template, 1, 0, "tr", 5);
581
- i0.ɵɵelementEnd()();
582
- i0.ɵɵconditionalCreate(7, RecordListManagerComponent_Conditional_7_Template, 1, 0, "lib-empty-state", 6);
583
- i0.ɵɵelementEnd();
584
- i0.ɵɵconditionalCreate(8, RecordListManagerComponent_Conditional_8_Template, 11, 2, "div", 7)(9, RecordListManagerComponent_Conditional_9_Template, 7, 2, "div", 8);
585
- } if (rf & 2) {
586
- let tmp_5_0;
587
- i0.ɵɵadvance(2);
588
- i0.ɵɵproperty("dataSource", ctx.dataSource);
589
- i0.ɵɵadvance();
590
- i0.ɵɵrepeater(ctx.tableColumns());
591
- i0.ɵɵadvance(2);
592
- i0.ɵɵproperty("matHeaderRowDef", ctx.displayedColumns());
593
- i0.ɵɵadvance();
594
- i0.ɵɵproperty("matRowDefColumns", ctx.displayedColumns());
595
- i0.ɵɵadvance();
596
- i0.ɵɵconditional(ctx.rowCount() === 0 ? 7 : -1);
597
- i0.ɵɵadvance();
598
- i0.ɵɵconditional((tmp_5_0 = ctx.inEditRow()) ? 8 : 9, tmp_5_0);
599
- } }, dependencies: [MatButtonModule, i2.MatButton, i2.MatIconButton, MatCardModule,
600
- MatDividerModule,
601
- MatExpansionModule, i5.MatAccordion, i5.MatExpansionPanel, i5.MatExpansionPanelHeader, i5.MatExpansionPanelTitle, MatIconModule, i3.MatIcon, MatProgressSpinnerModule, i4$1.MatProgressSpinner, MatTableModule, i5$1.MatTable, i5$1.MatHeaderCellDef, i5$1.MatHeaderRowDef, i5$1.MatColumnDef, i5$1.MatCellDef, i5$1.MatRowDef, i5$1.MatHeaderCell, i5$1.MatCell, i5$1.MatHeaderRow, i5$1.MatRow, MatTooltipModule, i5$2.MatTooltip, PortalModule,
602
- EmptyStateComponent], styles: ["[_nghost-%COMP%]{display:block}.lib-record-list-manager__table[_ngcontent-%COMP%]{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[_ngcontent-%COMP%]{width:100%;overflow-x:auto}.lib-record-list-manager__grid[_ngcontent-%COMP%]{width:100%;background:transparent}.lib-record-list-manager__grid[_ngcontent-%COMP%] .mat-mdc-header-row[_ngcontent-%COMP%], .lib-record-list-manager__grid[_ngcontent-%COMP%] .lib-record-list-manager__row[_ngcontent-%COMP%]{height:auto}.lib-record-list-manager__grid[_ngcontent-%COMP%] .mat-mdc-header-cell[_ngcontent-%COMP%]{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[_ngcontent-%COMP%]{transition:background-color var(--lib-forms-duration-hover) var(--lib-forms-easing)}.lib-record-list-manager__row[_ngcontent-%COMP%]:hover{background:color-mix(in srgb,var(--lib-forms-primary) 6%,transparent)}.lib-record-list-manager__grid[_ngcontent-%COMP%] .lib-record-list-manager__cell[_ngcontent-%COMP%]{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[_ngcontent-%COMP%]{display:block;max-width:18rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lib-record-list-manager__grid[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{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[_ngcontent-%COMP%] .mat-mdc-header-cell.mat-column-actions[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--lib-forms-primary) 4%,var(--lib-forms-surface))}.lib-record-list-manager__row[_ngcontent-%COMP%]:hover .mat-column-actions[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--lib-forms-primary) 6%,var(--lib-forms-surface))}.lib-record-list-manager__action[_ngcontent-%COMP%]{--mdc-icon-button-state-layer-size: 2rem}.lib-record-list-manager__editor[_ngcontent-%COMP%]{margin-top:1.5rem;display:flex;flex-direction:column;gap:1.5rem}.lib-record-list-manager__sections[_ngcontent-%COMP%]{display:block}.lib-record-list-manager__section-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;width:100%}.lib-record-list-manager__section-value[_ngcontent-%COMP%]{margin-left:auto;font-size:.8125rem;color:var(--lib-forms-on-surface-variant)}.lib-record-list-manager__field[_ngcontent-%COMP%]{padding:.5rem 0 1.5rem}.lib-record-list-manager__loading[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:2rem}.lib-record-list-manager__actions[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:.75rem}.lib-record-list-manager__actions--list[_ngcontent-%COMP%]{margin-top:1.5rem}.lib-record-list-manager__count[_ngcontent-%COMP%]{margin-right:auto;font-size:.8125rem;color:var(--lib-forms-on-surface-variant)}"], changeDetection: 0 }); }
603
- }
604
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RecordListManagerComponent, [{
605
- type: Component,
606
- args: [{ selector: 'lib-record-list-manager', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, imports: [
607
- MatButtonModule,
608
- MatCardModule,
609
- MatDividerModule,
610
- MatExpansionModule,
611
- MatIconModule,
612
- MatProgressSpinnerModule,
613
- MatTableModule,
614
- MatTooltipModule,
615
- PortalModule,
616
- EmptyStateComponent,
617
- ], providers: [{ provide: MatFormFieldControl, useExisting: RecordListManagerComponent }], host: {
618
- 'class': 'lib-record-list-manager',
619
- '[id]': 'id',
620
- '[attr.aria-describedby]': 'describedBy',
621
- '[class.lib-record-list-manager--floating]': 'shouldLabelFloat',
622
- }, template: "<!--\n The card clips to its radius; the inner element is the ONLY scroll region. Without\n that split a table wider than the editor panel was simply cut off, taking the row\n actions with it \u2014 unreachable, with nothing to indicate they were there.\n-->\n<div class=\"lib-record-list-manager__table\">\n <div class=\"lib-record-list-manager__scroll\">\n <table mat-table [dataSource]=\"dataSource\" class=\"lib-record-list-manager__grid\">\n @for (col of tableColumns(); track col.value) {\n <!--\n `stickyEnd` pins the actions column to the right edge, so edit and delete\n stay reachable however far the table is scrolled. Material's own mechanism\n rather than hand-rolled `position: sticky`, which it already handles\n correctly across the table's collapsed borders.\n -->\n <ng-container [matColumnDef]=\"col.value\" [stickyEnd]=\"isActionsColumn(col.value)\">\n <th mat-header-cell *matHeaderCellDef scope=\"col\">{{ col.label }}</th>\n <td mat-cell *matCellDef=\"let row\" class=\"lib-record-list-manager__cell\">\n @if (isActionsColumn(col.value)) {\n <button\n type=\"button\"\n mat-icon-button\n class=\"lib-record-list-manager__action\"\n matTooltip=\"Edit\"\n aria-label=\"Edit record\"\n [disabled]=\"disabled\"\n (click)=\"editItem(row)\"\n >\n <mat-icon>edit</mat-icon>\n </button>\n <button\n type=\"button\"\n mat-icon-button\n color=\"warn\"\n class=\"lib-record-list-manager__action\"\n matTooltip=\"Delete\"\n aria-label=\"Delete record\"\n [disabled]=\"disabled\"\n (click)=\"removeItem(row)\"\n >\n <mat-icon>delete</mat-icon>\n </button>\n } @else {\n <!--\n Truncated rather than allowed to widen the column: one long value in\n one row should not push every other column out of view. The full text\n stays reachable on hover and to assistive tech.\n -->\n <span class=\"lib-record-list-manager__cell-text\" [title]=\"cellText(row, col.value)\">\n {{ cellText(row, col.value) }}\n </span>\n }\n </td>\n </ng-container>\n }\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns()\"></tr>\n <tr\n mat-row\n *matRowDef=\"let row; columns: displayedColumns()\"\n class=\"lib-record-list-manager__row\"\n ></tr>\n </table>\n </div>\n\n @if (rowCount() === 0) {\n <lib-empty-state\n icon=\"inbox\"\n message=\"No records yet. Use Add Record to get started.\"\n ></lib-empty-state>\n }\n</div>\n\n@if (inEditRow(); as editing) {\n <div class=\"lib-record-list-manager__editor\">\n <mat-accordion class=\"lib-record-list-manager__sections\" togglePosition=\"after\">\n @for (section of visibleSections(); track section.id) {\n <mat-expansion-panel>\n <mat-expansion-panel-header>\n <mat-panel-title class=\"lib-record-list-manager__section-title\">\n <span>{{ section.label }}</span>\n @if (section.showItemValue && editing[section.showItemValue] != null) {\n <span class=\"lib-record-list-manager__section-value\">\n {{ editing[section.showItemValue] }}\n </span>\n }\n </mat-panel-title>\n </mat-expansion-panel-header>\n\n @for (element of section.elements; track element.id) {\n <div class=\"lib-record-list-manager__field\">\n @defer (on viewport) {\n <ng-template\n [cdkPortalOutlet]=\"portals()[element.id]\"\n (attached)=\"onPortalAttached($event, element)\"\n ></ng-template>\n } @placeholder {\n <div class=\"lib-record-list-manager__loading\">\n <mat-spinner diameter=\"18\"></mat-spinner>\n </div>\n }\n </div>\n }\n </mat-expansion-panel>\n }\n </mat-accordion>\n\n <div class=\"lib-record-list-manager__actions\">\n <button type=\"button\" mat-button color=\"primary\" (click)=\"cancelEdit()\">Cancel</button>\n <button\n type=\"button\"\n mat-stroked-button\n color=\"primary\"\n [disabled]=\"!canSaveRecord()\"\n (click)=\"saveRecord()\"\n >\n {{ editing.id ? 'Update' : 'Save new' }} record\n <mat-icon>save</mat-icon>\n </button>\n </div>\n </div>\n} @else {\n <div class=\"lib-record-list-manager__actions lib-record-list-manager__actions--list\">\n <span class=\"lib-record-list-manager__count\">Records ({{ rowCount() }})</span>\n <button\n type=\"button\"\n mat-stroked-button\n color=\"primary\"\n matTooltip=\"Add a new record\"\n aria-label=\"Add a new record\"\n [disabled]=\"disabled\"\n (click)=\"addNewItem()\"\n >\n <mat-icon>add</mat-icon>\n Add Record\n </button>\n </div>\n}\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"] }]
623
- }], () => [], { mapToData: [{
624
- type: Input
625
- }], errors: [{
626
- type: Input
627
- }], disabled: [{
628
- type: Input
629
- }], required: [{
630
- type: Input
631
- }], placeholder: [{
632
- type: Input
633
- }], value: [{
634
- type: Input
635
- }], 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"] }] }); })();
636
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RecordListManagerComponent, { className: "RecordListManagerComponent", filePath: "lib/components/t-dynamic-data-edit/elements/record-list-manager/record-list-manager.component.ts", lineNumber: 102 }); })();
637
-
638
- export { RecordListManagerComponent };
639
- //# sourceMappingURL=ngx-t-forms-record-list-manager.component-BcANl5Bq.mjs.map