ngx-t-forms 3.1.7 → 3.1.9

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 (145) hide show
  1. package/fesm2022/{ngx-t-forms-api-endpoint-config.component-CCwUtGOH.mjs → ngx-t-forms-api-endpoint-config.component-BbS1dY0l.mjs} +10 -10
  2. package/fesm2022/ngx-t-forms-api-endpoint-config.component-BbS1dY0l.mjs.map +1 -0
  3. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-BUCFidjW.mjs → ngx-t-forms-auto-complete-input-element.component-B8eluIrh.mjs} +9 -9
  4. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-BUCFidjW.mjs.map → ngx-t-forms-auto-complete-input-element.component-B8eluIrh.mjs.map} +1 -1
  5. package/fesm2022/ngx-t-forms-autofillToken-D-BYfzxR.mjs +189 -0
  6. package/fesm2022/ngx-t-forms-autofillToken-D-BYfzxR.mjs.map +1 -0
  7. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-C92Y7CW_.mjs → ngx-t-forms-basic-input-input-element.component-SSLXyCz9.mjs} +16 -8
  8. package/fesm2022/ngx-t-forms-basic-input-input-element.component-SSLXyCz9.mjs.map +1 -0
  9. package/fesm2022/ngx-t-forms-calculated-field-rules.component-Cn_rxXMX.mjs +603 -0
  10. package/fesm2022/ngx-t-forms-calculated-field-rules.component-Cn_rxXMX.mjs.map +1 -0
  11. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-CWJMjBoK.mjs → ngx-t-forms-chip-options-creator-editor.component-CGm5tgsp.mjs} +2 -2
  12. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-CWJMjBoK.mjs.map → ngx-t-forms-chip-options-creator-editor.component-CGm5tgsp.mjs.map} +1 -1
  13. package/fesm2022/ngx-t-forms-clamp-probe.directive-DMUdeVrM.mjs +99 -0
  14. package/fesm2022/ngx-t-forms-clamp-probe.directive-DMUdeVrM.mjs.map +1 -0
  15. package/fesm2022/{ngx-t-forms-conditional-display-config.component-zauBVptA.mjs → ngx-t-forms-conditional-display-config.component-DIMIWTKj.mjs} +2 -2
  16. package/fesm2022/{ngx-t-forms-conditional-display-config.component-zauBVptA.mjs.map → ngx-t-forms-conditional-display-config.component-DIMIWTKj.mjs.map} +1 -1
  17. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-C096Ib2V.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-DKb3E9gA.mjs} +4 -4
  18. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-C096Ib2V.mjs.map → ngx-t-forms-config-mscoa-additional-inputs.component-DKb3E9gA.mjs.map} +1 -1
  19. package/fesm2022/{ngx-t-forms-data-source-picker.component-WkSQqjd-.mjs → ngx-t-forms-data-source-picker.component-BG_sr5VH.mjs} +8 -8
  20. package/fesm2022/{ngx-t-forms-data-source-picker.component-WkSQqjd-.mjs.map → ngx-t-forms-data-source-picker.component-BG_sr5VH.mjs.map} +1 -1
  21. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-Dtzq25sw.mjs → ngx-t-forms-date-picker-input-element.component-vUlUuzJ0.mjs} +10 -10
  22. package/fesm2022/ngx-t-forms-date-picker-input-element.component-vUlUuzJ0.mjs.map +1 -0
  23. package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-W8KV-zoC.mjs → ngx-t-forms-date-range-picker-input-element.component-YVE_s-7Y.mjs} +7 -7
  24. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-YVE_s-7Y.mjs.map +1 -0
  25. package/fesm2022/{ngx-t-forms-date-time-picker-input-element.component-CQXZDwAo.mjs → ngx-t-forms-date-time-picker-input-element.component-BlOS8NdF.mjs} +11 -10
  26. package/fesm2022/ngx-t-forms-date-time-picker-input-element.component-BlOS8NdF.mjs.map +1 -0
  27. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-u2UUPdAo.mjs +623 -0
  28. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-u2UUPdAo.mjs.map +1 -0
  29. package/fesm2022/{ngx-t-forms-document-picker.component-CvATcveO.mjs → ngx-t-forms-document-picker.component-DOYyRgh4.mjs} +44 -262
  30. package/fesm2022/ngx-t-forms-document-picker.component-DOYyRgh4.mjs.map +1 -0
  31. package/fesm2022/{ngx-t-forms-editor-input-element.component-BqofP5-4.mjs → ngx-t-forms-editor-input-element.component-BvZPNjQX.mjs} +6 -6
  32. package/fesm2022/{ngx-t-forms-editor-input-element.component-BqofP5-4.mjs.map → ngx-t-forms-editor-input-element.component-BvZPNjQX.mjs.map} +1 -1
  33. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-BAQx2BLX.mjs → ngx-t-forms-file-upload-input-element.component-CONELqoi.mjs} +10 -10
  34. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-BAQx2BLX.mjs.map → ngx-t-forms-file-upload-input-element.component-CONELqoi.mjs.map} +1 -1
  35. package/fesm2022/ngx-t-forms-form-copy-lint.component-TCSe-27-.mjs +248 -0
  36. package/fesm2022/ngx-t-forms-form-copy-lint.component-TCSe-27-.mjs.map +1 -0
  37. package/fesm2022/{ngx-t-forms-form-input-selector.component-M6O7-j2Q.mjs → ngx-t-forms-form-input-selector.component-Bdkuzw0R.mjs} +2 -2
  38. package/fesm2022/{ngx-t-forms-form-input-selector.component-M6O7-j2Q.mjs.map → ngx-t-forms-form-input-selector.component-Bdkuzw0R.mjs.map} +1 -1
  39. package/fesm2022/{ngx-t-forms-form-json-view.component-Dd-EMosV.mjs → ngx-t-forms-form-json-view.component-CDcbgWgN.mjs} +2 -2
  40. package/fesm2022/{ngx-t-forms-form-json-view.component-Dd-EMosV.mjs.map → ngx-t-forms-form-json-view.component-CDcbgWgN.mjs.map} +1 -1
  41. package/fesm2022/{ngx-t-forms-form-section-stepper.component-B1dYMlCC.mjs → ngx-t-forms-form-section-stepper.component-CqLSI8zP.mjs} +7 -7
  42. package/fesm2022/{ngx-t-forms-form-section-stepper.component-B1dYMlCC.mjs.map → ngx-t-forms-form-section-stepper.component-CqLSI8zP.mjs.map} +1 -1
  43. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-S2qfSAT-.mjs → ngx-t-forms-forms-builder-menu.component-DFCVe_Fq.mjs} +185 -15
  44. package/fesm2022/ngx-t-forms-forms-builder-menu.component-DFCVe_Fq.mjs.map +1 -0
  45. package/fesm2022/ngx-t-forms-forms-native-date-adapter-h6fClNMS.mjs +187 -0
  46. package/fesm2022/ngx-t-forms-forms-native-date-adapter-h6fClNMS.mjs.map +1 -0
  47. package/fesm2022/{ngx-t-forms-geo-location.component-whY7YIMk.mjs → ngx-t-forms-geo-location.component-DA3ATrvw.mjs} +8 -8
  48. package/fesm2022/{ngx-t-forms-geo-location.component-whY7YIMk.mjs.map → ngx-t-forms-geo-location.component-DA3ATrvw.mjs.map} +1 -1
  49. package/fesm2022/{ngx-t-forms-header-template-editor.component-BLn_-jPM.mjs → ngx-t-forms-header-template-editor.component-B9Cj8dOI.mjs} +13 -5
  50. package/fesm2022/ngx-t-forms-header-template-editor.component-B9Cj8dOI.mjs.map +1 -0
  51. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-D05NKiWm.mjs → ngx-t-forms-image-capture-input-element.component-C9oz_ZjA.mjs} +8 -8
  52. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-D05NKiWm.mjs.map → ngx-t-forms-image-capture-input-element.component-C9oz_ZjA.mjs.map} +1 -1
  53. package/fesm2022/ngx-t-forms-index-CSXX8RTm.mjs +2 -0
  54. package/fesm2022/ngx-t-forms-index-CSXX8RTm.mjs.map +1 -0
  55. package/fesm2022/{ngx-t-forms-input-custom.component-CGz6j56m.mjs → ngx-t-forms-input-custom.component-CqIr5wpy.mjs} +148 -27
  56. package/fesm2022/ngx-t-forms-input-custom.component-CqIr5wpy.mjs.map +1 -0
  57. package/fesm2022/{ngx-t-forms-input-editor.component-DxrkUbed.mjs → ngx-t-forms-input-editor.component-DU2sgo4i.mjs} +9 -9
  58. package/fesm2022/{ngx-t-forms-input-editor.component-DxrkUbed.mjs.map → ngx-t-forms-input-editor.component-DU2sgo4i.mjs.map} +1 -1
  59. package/fesm2022/{ngx-t-forms-map-mat-options-keys-Cu_L5CRA.mjs → ngx-t-forms-map-mat-options-keys-WfFq_0tS.mjs} +2 -2
  60. package/fesm2022/{ngx-t-forms-map-mat-options-keys-Cu_L5CRA.mjs.map → ngx-t-forms-map-mat-options-keys-WfFq_0tS.mjs.map} +1 -1
  61. package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-B98Hv4M1.mjs → ngx-t-forms-mat-chip-list-editor.component-CKnvqeix.mjs} +2 -2
  62. package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-B98Hv4M1.mjs.map → ngx-t-forms-mat-chip-list-editor.component-CKnvqeix.mjs.map} +1 -1
  63. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CSnHK6ZR.mjs → ngx-t-forms-missing-form-configs.component-B5dDbmpj.mjs} +4 -4
  64. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CSnHK6ZR.mjs.map → ngx-t-forms-missing-form-configs.component-B5dDbmpj.mjs.map} +1 -1
  65. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-97tHCSyK.mjs +37 -0
  66. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-97tHCSyK.mjs.map +1 -0
  67. package/fesm2022/{ngx-t-forms-mscoa-config.component-CBqzX9H7.mjs → ngx-t-forms-mscoa-config.component-BtLd7F2n.mjs} +10 -10
  68. package/fesm2022/{ngx-t-forms-mscoa-config.component-CBqzX9H7.mjs.map → ngx-t-forms-mscoa-config.component-BtLd7F2n.mjs.map} +1 -1
  69. package/fesm2022/{ngx-t-forms-mscoa-error-display.component-BDPi6w2E.mjs → ngx-t-forms-mscoa-error-display.component-Bmt1vboD.mjs} +4 -4
  70. package/fesm2022/{ngx-t-forms-mscoa-error-display.component-BDPi6w2E.mjs.map → ngx-t-forms-mscoa-error-display.component-Bmt1vboD.mjs.map} +1 -1
  71. package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-Cr1HXTjG.mjs → ngx-t-forms-mscoa-segment-config.component-DrzpixbK.mjs} +9 -9
  72. package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-Cr1HXTjG.mjs.map → ngx-t-forms-mscoa-segment-config.component-DrzpixbK.mjs.map} +1 -1
  73. package/fesm2022/{ngx-t-forms-mscoa-temporary-hint.component-g7DosiVb.mjs → ngx-t-forms-mscoa-temporary-hint.component-B1Z-IXSL.mjs} +3 -3
  74. package/fesm2022/{ngx-t-forms-mscoa-temporary-hint.component-g7DosiVb.mjs.map → ngx-t-forms-mscoa-temporary-hint.component-B1Z-IXSL.mjs.map} +1 -1
  75. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-ddpips7E.mjs +3592 -0
  76. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-ddpips7E.mjs.map +1 -0
  77. package/fesm2022/{ngx-t-forms-ngx-t-forms-Dt4iPwb-.mjs → ngx-t-forms-ngx-t-forms-C1kZpYIM.mjs} +17432 -6875
  78. package/fesm2022/ngx-t-forms-ngx-t-forms-C1kZpYIM.mjs.map +1 -0
  79. package/fesm2022/ngx-t-forms-paginated-selection-table-B7TyhJnh.mjs +596 -0
  80. package/fesm2022/ngx-t-forms-paginated-selection-table-B7TyhJnh.mjs.map +1 -0
  81. package/fesm2022/{ngx-t-forms-payload-template-editor.component-Dx0pI0A1.mjs → ngx-t-forms-payload-template-editor.component-DVL4aBuG.mjs} +13 -5
  82. package/fesm2022/ngx-t-forms-payload-template-editor.component-DVL4aBuG.mjs.map +1 -0
  83. package/fesm2022/{ngx-t-forms-pipeline-generator.component-VySkMHQI.mjs → ngx-t-forms-pipeline-generator.component-DpqipW6G.mjs} +15 -15
  84. package/fesm2022/{ngx-t-forms-pipeline-generator.component-VySkMHQI.mjs.map → ngx-t-forms-pipeline-generator.component-DpqipW6G.mjs.map} +1 -1
  85. package/fesm2022/{ngx-t-forms-quill-input.component-BLaPFcJE.mjs → ngx-t-forms-quill-input.component-x9CHGOJy.mjs} +2 -2
  86. package/fesm2022/{ngx-t-forms-quill-input.component-BLaPFcJE.mjs.map → ngx-t-forms-quill-input.component-x9CHGOJy.mjs.map} +1 -1
  87. package/fesm2022/{ngx-t-forms-record-list-manager.component-qlizX9F4.mjs → ngx-t-forms-record-list-manager.component-BGg86NER.mjs} +7 -7
  88. package/fesm2022/{ngx-t-forms-record-list-manager.component-qlizX9F4.mjs.map → ngx-t-forms-record-list-manager.component-BGg86NER.mjs.map} +1 -1
  89. package/fesm2022/ngx-t-forms-required-inputs.component-CI9nLVXe.mjs +281 -0
  90. package/fesm2022/ngx-t-forms-required-inputs.component-CI9nLVXe.mjs.map +1 -0
  91. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-CLYe2Lf_.mjs → ngx-t-forms-rest-api-call-setup.component-B4LzPwxg.mjs} +5 -5
  92. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-CLYe2Lf_.mjs.map → ngx-t-forms-rest-api-call-setup.component-B4LzPwxg.mjs.map} +1 -1
  93. package/fesm2022/{ngx-t-forms-section-report.component-foLHlD-I.mjs → ngx-t-forms-section-report.component-BS2CV_xl.mjs} +4 -4
  94. package/fesm2022/{ngx-t-forms-section-report.component-foLHlD-I.mjs.map → ngx-t-forms-section-report.component-BS2CV_xl.mjs.map} +1 -1
  95. package/fesm2022/ngx-t-forms-select-input-element.component-C5qjqCXW.mjs +281 -0
  96. package/fesm2022/ngx-t-forms-select-input-element.component-C5qjqCXW.mjs.map +1 -0
  97. package/fesm2022/{ngx-t-forms-selection-options-editor.component-D4luMX5c.mjs → ngx-t-forms-selection-options-editor.component-B6sYvtcj.mjs} +6 -6
  98. package/fesm2022/{ngx-t-forms-selection-options-editor.component-D4luMX5c.mjs.map → ngx-t-forms-selection-options-editor.component-B6sYvtcj.mjs.map} +1 -1
  99. package/fesm2022/{ngx-t-forms-t-workflow-picker.component-D0ttyEex.mjs → ngx-t-forms-t-workflow-picker.component-xDbl63v1.mjs} +3 -3
  100. package/fesm2022/{ngx-t-forms-t-workflow-picker.component-D0ttyEex.mjs.map → ngx-t-forms-t-workflow-picker.component-xDbl63v1.mjs.map} +1 -1
  101. package/fesm2022/ngx-t-forms-textarea-input-element.component-ri0r0ujE.mjs +161 -0
  102. package/fesm2022/ngx-t-forms-textarea-input-element.component-ri0r0ujE.mjs.map +1 -0
  103. package/fesm2022/ngx-t-forms-toggle-input-element.component-CXUqCipx.mjs +124 -0
  104. package/fesm2022/ngx-t-forms-toggle-input-element.component-CXUqCipx.mjs.map +1 -0
  105. package/fesm2022/{ngx-t-forms-token-text-input.component-BAjGepTM.mjs → ngx-t-forms-token-text-input.component-BWmoGQfi.mjs} +4 -4
  106. package/fesm2022/{ngx-t-forms-token-text-input.component-BAjGepTM.mjs.map → ngx-t-forms-token-text-input.component-BWmoGQfi.mjs.map} +1 -1
  107. package/fesm2022/{ngx-t-forms-validators-config.component-DVB88bgW.mjs → ngx-t-forms-validators-config.component-DEm9M5s9.mjs} +5 -5
  108. package/fesm2022/{ngx-t-forms-validators-config.component-DVB88bgW.mjs.map → ngx-t-forms-validators-config.component-DEm9M5s9.mjs.map} +1 -1
  109. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-LoF_fpHu.mjs → ngx-t-forms-workflow-adjudication.component-BOC9Z40E.mjs} +96 -35
  110. package/fesm2022/ngx-t-forms-workflow-adjudication.component-BOC9Z40E.mjs.map +1 -0
  111. package/fesm2022/ngx-t-forms.mjs +1 -1
  112. package/package.json +2 -2
  113. package/types/ngx-t-forms.d.ts +2864 -168
  114. package/fesm2022/ngx-t-forms-api-endpoint-config.component-CCwUtGOH.mjs.map +0 -1
  115. package/fesm2022/ngx-t-forms-basic-input-input-element.component-C92Y7CW_.mjs.map +0 -1
  116. package/fesm2022/ngx-t-forms-calculated-field-rules.component-33ZARq4R.mjs +0 -603
  117. package/fesm2022/ngx-t-forms-calculated-field-rules.component-33ZARq4R.mjs.map +0 -1
  118. package/fesm2022/ngx-t-forms-date-picker-input-element.component-Dtzq25sw.mjs.map +0 -1
  119. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-W8KV-zoC.mjs.map +0 -1
  120. package/fesm2022/ngx-t-forms-date-time-picker-input-element.component-CQXZDwAo.mjs.map +0 -1
  121. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-3LcpNBQI.mjs +0 -373
  122. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-3LcpNBQI.mjs.map +0 -1
  123. package/fesm2022/ngx-t-forms-document-picker.component-CvATcveO.mjs.map +0 -1
  124. package/fesm2022/ngx-t-forms-forms-builder-menu.component-S2qfSAT-.mjs.map +0 -1
  125. package/fesm2022/ngx-t-forms-header-template-editor.component-BLn_-jPM.mjs.map +0 -1
  126. package/fesm2022/ngx-t-forms-index-BnK4nGDh.mjs +0 -2
  127. package/fesm2022/ngx-t-forms-index-BnK4nGDh.mjs.map +0 -1
  128. package/fesm2022/ngx-t-forms-input-custom.component-CGz6j56m.mjs.map +0 -1
  129. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-BUj7wGyx.mjs +0 -38
  130. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-BUj7wGyx.mjs.map +0 -1
  131. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CfZLcuuu.mjs +0 -2336
  132. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CfZLcuuu.mjs.map +0 -1
  133. package/fesm2022/ngx-t-forms-ngx-t-forms-Dt4iPwb-.mjs.map +0 -1
  134. package/fesm2022/ngx-t-forms-paginated-selection-table-lMTD1N6B.mjs +0 -555
  135. package/fesm2022/ngx-t-forms-paginated-selection-table-lMTD1N6B.mjs.map +0 -1
  136. package/fesm2022/ngx-t-forms-payload-template-editor.component-Dx0pI0A1.mjs.map +0 -1
  137. package/fesm2022/ngx-t-forms-required-inputs.component-DY37Qrnj.mjs +0 -271
  138. package/fesm2022/ngx-t-forms-required-inputs.component-DY37Qrnj.mjs.map +0 -1
  139. package/fesm2022/ngx-t-forms-select-input-element.component-CvrNfvXa.mjs +0 -160
  140. package/fesm2022/ngx-t-forms-select-input-element.component-CvrNfvXa.mjs.map +0 -1
  141. package/fesm2022/ngx-t-forms-textarea-input-element.component-BWyxWDvp.mjs +0 -95
  142. package/fesm2022/ngx-t-forms-textarea-input-element.component-BWyxWDvp.mjs.map +0 -1
  143. package/fesm2022/ngx-t-forms-toggle-input-element.component-CpYC2ivQ.mjs +0 -93
  144. package/fesm2022/ngx-t-forms-toggle-input-element.component-CpYC2ivQ.mjs.map +0 -1
  145. package/fesm2022/ngx-t-forms-workflow-adjudication.component-LoF_fpHu.mjs.map +0 -1
@@ -0,0 +1,596 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, ElementRef, input, output, viewChild, ChangeDetectorRef, DestroyRef, effect, ChangeDetectionStrategy, Component, computed } from '@angular/core';
3
+ import * as i1 from '@angular/forms';
4
+ import { NgControl, FormControl, ReactiveFormsModule } from '@angular/forms';
5
+ import * as i2 from '@angular/material/form-field';
6
+ import { MatFormFieldModule, MatFormFieldControl } from '@angular/material/form-field';
7
+ import * as i3$1 from '@angular/material/icon';
8
+ import { MatIconModule } from '@angular/material/icon';
9
+ import * as i1$1 from '@angular/material/button';
10
+ import { MatButtonModule } from '@angular/material/button';
11
+ import * as i5 from '@angular/material/tooltip';
12
+ import { MatTooltipModule } from '@angular/material/tooltip';
13
+ import { B as BaseCustomInput, ah as injectFormsLocalization, _ as _isEqual, ae as fuzzySearch, bd as returnMappedPathValue, b7 as FormatDataPipe, a9 as getInputErrorMessage, aa as TFormInputStatusComponent } from './ngx-t-forms-ngx-t-forms-C1kZpYIM.mjs';
14
+ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
15
+ import { DocumentLitsLabelConfigInterfaceValueType, InputDataTypes } from 'ngx-t-forms-types';
16
+ import * as i5$1 from '@angular/material/table';
17
+ import { MatTableDataSource, MatTableModule } from '@angular/material/table';
18
+ import * as i7 from '@angular/material/paginator';
19
+ import { MatPaginator, MatPaginatorModule } from '@angular/material/paginator';
20
+ import * as i10 from '@angular/material/sort';
21
+ import { MatSort, MatSortModule } from '@angular/material/sort';
22
+ import { debounceTime, map, distinctUntilChanged } from 'rxjs';
23
+ import * as i3 from '@angular/material/card';
24
+ import { MatCardModule } from '@angular/material/card';
25
+ import * as i4 from '@angular/material/progress-spinner';
26
+ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
27
+ import * as i4$1 from '@angular/material/input';
28
+ import { MatInputModule } from '@angular/material/input';
29
+ import * as i2$1 from '@angular/material/checkbox';
30
+ import { MatCheckboxModule } from '@angular/material/checkbox';
31
+ import * as i3$2 from '@angular/material/radio';
32
+ import { MatRadioModule } from '@angular/material/radio';
33
+
34
+ /** Max rows to sample for type inference - balances accuracy vs performance */
35
+ const TYPE_INFER_SAMPLE_SIZE = 5;
36
+ const customInputConfig = {
37
+ controlType: 'lib-paginated-selection-table-reactive-input',
38
+ nextId: 0,
39
+ };
40
+ class PaginatedSelectionTableReactiveInput extends BaseCustomInput {
41
+ #cdr;
42
+ #destroyRef;
43
+ /** Cached inferred column types from data - recomputed only when data changes */
44
+ #inferredColumnTypes;
45
+ #lastInferredDataRef;
46
+ #columnsCacheDirty;
47
+ #cachedColumns;
48
+ #cachedDisplayedColumns;
49
+ #cachedSortActiveColumn;
50
+ #lastInputConfig;
51
+ #loadScheduled;
52
+ #destroyed;
53
+ #connectTimeoutId;
54
+ /** Whether the search field was seeded from the engine's current term. */
55
+ #searchSeeded;
56
+ constructor() {
57
+ super(inject(NgControl, { self: true, optional: true }), inject(ElementRef), customInputConfig);
58
+ this.formBuilderFunctions = input(undefined, ...(ngDevMode ? [{ debugName: "formBuilderFunctions" }] : /* istanbul ignore next */ []));
59
+ this.canReload = input(false, ...(ngDevMode ? [{ debugName: "canReload" }] : /* istanbul ignore next */ []));
60
+ this.loading = input(false, ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
61
+ this.searchPlaceholder = input('Search items…', ...(ngDevMode ? [{ debugName: "searchPlaceholder" }] : /* istanbul ignore next */ []));
62
+ this.emptyMessage = input('No items found', ...(ngDevMode ? [{ debugName: "emptyMessage" }] : /* istanbul ignore next */ []));
63
+ this.inputConfig = input(undefined, ...(ngDevMode ? [{ debugName: "inputConfig" }] : /* istanbul ignore next */ []));
64
+ /**
65
+ * The engine's bridge to a search-bound options fetch. When present the search
66
+ * field sends its term to the API (which returns the filtered rows); when
67
+ * absent it filters the loaded rows locally.
68
+ */
69
+ this.optionsSearch = input(undefined, ...(ngDevMode ? [{ debugName: "optionsSearch" }] : /* istanbul ignore next */ []));
70
+ this.reloadData = output();
71
+ this.searchFormControl = new FormControl('');
72
+ this.dataSource = new MatTableDataSource([]);
73
+ this.sort = viewChild(MatSort, ...(ngDevMode ? [{ debugName: "sort" }] : /* istanbul ignore next */ []));
74
+ this.paginator = viewChild(MatPaginator, ...(ngDevMode ? [{ debugName: "paginator" }] : /* istanbul ignore next */ []));
75
+ this.#cdr = inject(ChangeDetectorRef);
76
+ this.#destroyRef = inject(DestroyRef);
77
+ /** The consumer's localization, handed to `formatData` so a cell follows the organisation. */
78
+ this.l10n = injectFormsLocalization();
79
+ /** Cached inferred column types from data - recomputed only when data changes */
80
+ this.#inferredColumnTypes = {};
81
+ this.#lastInferredDataRef = null;
82
+ this.#columnsCacheDirty = true;
83
+ this.#cachedColumns = [];
84
+ this.#cachedDisplayedColumns = [];
85
+ this.#cachedSortActiveColumn = '';
86
+ this.#loadScheduled = false;
87
+ this.#destroyed = false;
88
+ this.#connectTimeoutId = null;
89
+ /** Whether the search field was seeded from the engine's current term. */
90
+ this.#searchSeeded = false;
91
+ this.#setupFuzzyFilterPredicate();
92
+ this.#setupSelectionFirstSort();
93
+ this.#setupSearchSubscription();
94
+ // A re-created table (section revisited) must show the term the API is still
95
+ // filtering by — otherwise the rows look filtered by an invisible search.
96
+ effect(() => {
97
+ const bridge = this.optionsSearch();
98
+ if (!bridge || this.#searchSeeded)
99
+ return;
100
+ this.#searchSeeded = true;
101
+ const term = bridge.term();
102
+ if (term && !this.searchFormControl.value) {
103
+ this.searchFormControl.setValue(term, { emitEvent: false });
104
+ }
105
+ });
106
+ // Replaces the previous @Input setter side-effect: react to inputConfig changes.
107
+ effect(() => {
108
+ const value = this.inputConfig();
109
+ if (_isEqual(this.#lastInputConfig, value))
110
+ return;
111
+ const prevMatOptions = this.#lastInputConfig?.matOptions?.options;
112
+ const nextMatOptions = value?.matOptions?.options;
113
+ const matOptionsChanged = !_isEqual(prevMatOptions, nextMatOptions);
114
+ this.#lastInputConfig = value;
115
+ this.#columnsCacheDirty = true;
116
+ if (matOptionsChanged) {
117
+ this.#scheduleLoadInputData();
118
+ }
119
+ });
120
+ }
121
+ get empty() {
122
+ const n = this.value;
123
+ if (n === null || n === undefined)
124
+ return true;
125
+ if (this.isMultiSelect) {
126
+ return Array.isArray(n) && n.length === 0;
127
+ }
128
+ return n === '';
129
+ }
130
+ get shouldLabelFloat() {
131
+ return true;
132
+ }
133
+ get getSelectOptions() {
134
+ const cfg = this.inputConfig();
135
+ if (!cfg?.matOptions)
136
+ return [];
137
+ if (Array.isArray(cfg.matOptions?.options)) {
138
+ return cfg.matOptions?.options || [];
139
+ }
140
+ return [];
141
+ }
142
+ #ensureColumnsCache() {
143
+ if (!this.#columnsCacheDirty)
144
+ return;
145
+ this.#columnsCacheDirty = false;
146
+ this.#cachedColumns = this.#computeColumns();
147
+ this.#cachedDisplayedColumns = this.#cachedColumns.map(c => c.key);
148
+ this.#cachedSortActiveColumn = this.#cachedDisplayedColumns.find(c => c !== 'icons' && c !== 'actions') ?? '';
149
+ }
150
+ #computeColumns() {
151
+ const cfg = this.inputConfig();
152
+ const configColumns = cfg?.paginationSelectionConfig?.columns;
153
+ const options = this.getSelectOptions;
154
+ let dataColumns;
155
+ if ((!configColumns || !Array.isArray(configColumns) || configColumns.length === 0) && Array.isArray(options)) {
156
+ const allKeys = options.flatMap((option) => Object.keys((option ?? {})));
157
+ const uniqueKeys = [...new Set(allKeys)].filter(k => k !== 'icons' && k !== 'actions');
158
+ dataColumns = uniqueKeys.map(key => ({
159
+ key,
160
+ label: key,
161
+ id: key,
162
+ type: this.#inferredColumnTypes[key],
163
+ }));
164
+ }
165
+ else {
166
+ dataColumns = (configColumns || [])
167
+ .filter((c) => typeof c.key === 'string' && c.key !== 'icons' && c.key !== 'actions')
168
+ .map((c) => ({
169
+ key: c.key,
170
+ label: c.label ?? c.key ?? '',
171
+ id: c.id ?? c.key,
172
+ type: c.type ?? this.#inferredColumnTypes[c.key],
173
+ }));
174
+ }
175
+ return [
176
+ { key: 'icons', label: '', id: 'icons' },
177
+ ...dataColumns,
178
+ { key: 'actions', label: '', id: 'actions' },
179
+ ];
180
+ }
181
+ get columns() {
182
+ this.#ensureColumnsCache();
183
+ return this.#cachedColumns;
184
+ }
185
+ get displayedColumns() {
186
+ this.#ensureColumnsCache();
187
+ return this.#cachedDisplayedColumns;
188
+ }
189
+ /** First sortable column for initial matSort state (excludes icons/actions) */
190
+ get sortActiveColumn() {
191
+ this.#ensureColumnsCache();
192
+ return this.#cachedSortActiveColumn;
193
+ }
194
+ /** Defer data load until after current CD cycle completes (prevents ExpressionChanged errors
195
+ * in parent FormSectionStepper when sectionFormErrorMessage changes as form validation updates). */
196
+ #scheduleLoadInputData() {
197
+ if (this.#loadScheduled)
198
+ return;
199
+ this.#loadScheduled = true;
200
+ Promise.resolve().then(() => {
201
+ this.#loadScheduled = false;
202
+ if (!this.#destroyed)
203
+ this.loadInputData();
204
+ });
205
+ }
206
+ loadInputData() {
207
+ const options = this.getSelectOptions;
208
+ if (Array.isArray(options) && options.every(option => typeof option === 'object' && option !== null)) {
209
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- TODO(phase-4): widen `dataSource` to `Record<string, unknown>` once template column accessors are narrowed.
210
+ this.dataSource.data = options;
211
+ this.#inferColumnTypesFromData();
212
+ this.#attachSortAndPaginatorAfterViewReady();
213
+ this.#cdr.markForCheck();
214
+ }
215
+ else {
216
+ this.dataSource.data = [];
217
+ this.#clearInferredCache();
218
+ this.errorMessage = 'Invalid options format';
219
+ this.#cdr.markForCheck();
220
+ }
221
+ }
222
+ /** Connects sort and paginator to dataSource. Deferred because table/paginator are inside @if. */
223
+ #attachSortAndPaginatorAfterViewReady() {
224
+ if (this.#connectTimeoutId != null)
225
+ return;
226
+ this.#connectTimeoutId = setTimeout(() => {
227
+ this.#connectTimeoutId = null;
228
+ const sortRef = this.sort();
229
+ const paginatorRef = this.paginator();
230
+ if (sortRef && this.dataSource.sort !== sortRef) {
231
+ this.dataSource.sort = sortRef;
232
+ }
233
+ if (paginatorRef && this.dataSource.paginator !== paginatorRef) {
234
+ this.dataSource.paginator = paginatorRef;
235
+ }
236
+ // Avoid markForCheck() here - it triggers full-tree CD that re-evaluates parent's
237
+ // sectionFormErrorMessage mid-cycle, causing ExpressionChangedAfterItHasBeenCheckedError.
238
+ // MatTableDataSource propagates sort/paginator changes; view updates on next CD.
239
+ }, 0);
240
+ }
241
+ /** Clear cached references to prevent memory leaks. */
242
+ #clearInferredCache() {
243
+ this.#inferredColumnTypes = {};
244
+ this.#lastInferredDataRef = null;
245
+ this.#columnsCacheDirty = true;
246
+ }
247
+ /**
248
+ * Overrides MatTableDataSource.sortData so selected rows are always rendered
249
+ * first, before any sort-ordered unselected rows. This makes selections visible
250
+ * on page 1 regardless of how the table is sorted.
251
+ */
252
+ #setupSelectionFirstSort() {
253
+ this.dataSource.sortData = (data, sort) => {
254
+ const selected = [];
255
+ const unselected = [];
256
+ for (const row of data) {
257
+ (this.isRowSelected(row) ? selected : unselected).push(row);
258
+ }
259
+ if (!sort.active || !sort.direction) {
260
+ return [...selected, ...unselected];
261
+ }
262
+ const key = sort.active;
263
+ const dir = sort.direction === 'asc' ? 1 : -1;
264
+ const colType = this.#inferredColumnTypes[key];
265
+ unselected.sort((a, b) => {
266
+ const va = a[key];
267
+ const vb = b[key];
268
+ if (va == null && vb == null)
269
+ return 0;
270
+ if (va == null)
271
+ return dir;
272
+ if (vb == null)
273
+ return -dir;
274
+ return dir * this.#compareColValues(va, vb, colType);
275
+ });
276
+ return [...selected, ...unselected];
277
+ };
278
+ }
279
+ /** Type-aware value comparator used by sortData. Returns negative/zero/positive like Array.sort. */
280
+ #compareColValues(va, vb, colType) {
281
+ // Explicit number columns: parse to float so "9" < "10" (not lexicographic)
282
+ if (colType === DocumentLitsLabelConfigInterfaceValueType.number) {
283
+ const na = parseFloat(String(va));
284
+ const nb = parseFloat(String(vb));
285
+ if (!Number.isNaN(na) && !Number.isNaN(nb))
286
+ return na - nb;
287
+ }
288
+ // Date columns: compare as timestamps
289
+ if (colType === DocumentLitsLabelConfigInterfaceValueType.date) {
290
+ const ta = new Date(va).getTime();
291
+ const tb = new Date(vb).getTime();
292
+ if (!Number.isNaN(ta) && !Number.isNaN(tb))
293
+ return ta - tb;
294
+ }
295
+ // Native JS numbers (regardless of inferred type)
296
+ if (typeof va === 'number' && typeof vb === 'number')
297
+ return va - vb;
298
+ // Native JS Date instances
299
+ if (va instanceof Date && vb instanceof Date)
300
+ return va.getTime() - vb.getTime();
301
+ // Everything else: locale-aware string sort with numeric collation ("9" < "10")
302
+ const sa = typeof va === 'string' ? va : String(va);
303
+ const sb = typeof vb === 'string' ? vb : String(vb);
304
+ return sa.localeCompare(sb, undefined, { numeric: true, sensitivity: 'base' });
305
+ }
306
+ /** Re-sorts the dataSource pipeline so selected rows bubble to the top, then navigates to page 1. */
307
+ #bringSelectionToFront() {
308
+ if (this.dataSource.data.length === 0)
309
+ return;
310
+ // Shallow copy triggers MatTableDataSource to re-run filter → sortData → paginator.
311
+ this.dataSource.data = [...this.dataSource.data];
312
+ this.dataSource.paginator?.firstPage();
313
+ }
314
+ /** Filter predicate using fuzzy search on all stringifiable row values. */
315
+ #setupFuzzyFilterPredicate() {
316
+ this.dataSource.filterPredicate = (row, filter) => {
317
+ const term = filter?.trim();
318
+ if (!term)
319
+ return true;
320
+ if (typeof row !== 'object' || row === null)
321
+ return false;
322
+ return Object.values(row).some((value) => {
323
+ if (value == null)
324
+ return false;
325
+ const text = typeof value === 'string' ? value : String(value);
326
+ return fuzzySearch(term, text);
327
+ });
328
+ };
329
+ }
330
+ #setupSearchSubscription() {
331
+ this.searchFormControl.valueChanges.pipe(debounceTime(300), map((term) => term?.trim() ?? ''), distinctUntilChanged((a, b) => a === b), takeUntilDestroyed(this.#destroyRef)).subscribe((filter) => {
332
+ const bridge = this.optionsSearch();
333
+ if (bridge) {
334
+ // The API filters: the fresh rows arrive through matOptions. Filtering
335
+ // them again locally would hide server matches on fields the row omits.
336
+ bridge.search(filter);
337
+ this.dataSource.filter = '';
338
+ }
339
+ else {
340
+ this.dataSource.filter = filter;
341
+ }
342
+ this.dataSource.paginator?.firstPage();
343
+ this.#cdr.markForCheck();
344
+ });
345
+ }
346
+ clearSearch() {
347
+ this.searchFormControl.setValue('');
348
+ }
349
+ /** Whether a search-bound fetch is in flight (reactive through the engine's resource). */
350
+ isSearching() {
351
+ return !!this.optionsSearch()?.isSearching();
352
+ }
353
+ /** The trimmed search text, for the empty-state copy. */
354
+ get activeSearch() {
355
+ return (this.searchFormControl.value ?? '').trim();
356
+ }
357
+ /**
358
+ * Infers column types from data source by sampling first N rows.
359
+ * Cached per data reference to avoid recomputation on every change detection.
360
+ */
361
+ #inferColumnTypesFromData() {
362
+ const data = this.dataSource.data;
363
+ if (data === this.#lastInferredDataRef)
364
+ return;
365
+ if (data.length === 0) {
366
+ this.#clearInferredCache();
367
+ return;
368
+ }
369
+ this.#lastInferredDataRef = data;
370
+ const sampleSize = Math.min(TYPE_INFER_SAMPLE_SIZE, data.length);
371
+ const keys = Object.keys(data[0] ?? {});
372
+ for (const key of keys) {
373
+ if (key === 'icons' || key === 'actions')
374
+ continue;
375
+ let inferred = undefined;
376
+ for (let i = 0; i < sampleSize; i++) {
377
+ const v = data[i]?.[key];
378
+ if (v === null || v === undefined)
379
+ continue;
380
+ inferred = this.#inferValueType(v);
381
+ break;
382
+ }
383
+ this.#inferredColumnTypes[key] = inferred;
384
+ }
385
+ this.#columnsCacheDirty = true;
386
+ }
387
+ /** Lightweight single-value type inference for formatData pipe compatibility */
388
+ #inferValueType(v) {
389
+ if (typeof v === 'boolean')
390
+ return InputDataTypes.Boolean;
391
+ if (Array.isArray(v))
392
+ return InputDataTypes.Array;
393
+ if (typeof v === 'object' && v !== null) {
394
+ return v instanceof Date ? DocumentLitsLabelConfigInterfaceValueType.date : InputDataTypes.Object;
395
+ }
396
+ if (typeof v === 'number' && !Number.isNaN(v))
397
+ return DocumentLitsLabelConfigInterfaceValueType.number;
398
+ if (typeof v === 'string') {
399
+ const trimmed = v.trim();
400
+ if (trimmed === '')
401
+ return undefined;
402
+ const num = Number(trimmed);
403
+ if (!Number.isNaN(num))
404
+ return DocumentLitsLabelConfigInterfaceValueType.number;
405
+ const d = new Date(v);
406
+ if (!Number.isNaN(d.getTime()))
407
+ return DocumentLitsLabelConfigInterfaceValueType.date;
408
+ }
409
+ return undefined;
410
+ }
411
+ get isMultiSelect() {
412
+ return this.inputConfig()?.allowMultipleSelection ?? false;
413
+ }
414
+ get primaryIdentifierKey() {
415
+ return this.inputConfig()?.paginationSelectionConfig?.primaryIdentifierKey;
416
+ }
417
+ /** Returns the row identifier: uses returnMappedPathValue when primaryIdentifierKey is set, else fallback to _id/id. */
418
+ getRowId(row) {
419
+ const pk = this.primaryIdentifierKey;
420
+ if (pk != null && pk !== '') {
421
+ return returnMappedPathValue(pk, row);
422
+ }
423
+ return row['_id'] ?? row['id'];
424
+ }
425
+ /** Builds a minimal row object from an id for fallback when the row is not in dataSource (e.g. from radio value). */
426
+ #buildFallbackRowFromId(id) {
427
+ const pk = this.primaryIdentifierKey;
428
+ if (!pk || !Array.isArray(pk) || pk.length === 0) {
429
+ return { _id: id, id };
430
+ }
431
+ const obj = {};
432
+ let current = obj;
433
+ for (let i = 0; i < pk.length; i++) {
434
+ const node = pk[i];
435
+ const key = typeof node === 'object' && node != null && node.key != null ? String(node.key) : String(node);
436
+ const isLast = i === pk.length - 1;
437
+ if (isLast) {
438
+ current[key] = id;
439
+ }
440
+ else {
441
+ current[key] = {};
442
+ current = current[key];
443
+ }
444
+ }
445
+ return obj;
446
+ }
447
+ getSelectedIds() {
448
+ const v = this.value;
449
+ return Array.isArray(v) ? v : (v ? [v] : []);
450
+ }
451
+ /** Returns a primitive ID suitable for `[value]` on mat-radio-group, normalizing away object preset values. */
452
+ getNormalizedSingleValue() {
453
+ const v = this.value;
454
+ if (v == null || Array.isArray(v))
455
+ return v;
456
+ if (typeof v === 'object')
457
+ return this.getRowId(v);
458
+ return v;
459
+ }
460
+ isRowSelected(row) {
461
+ const rowId = this.getRowId(row);
462
+ if (rowId == null)
463
+ return false;
464
+ return this.getSelectedIds().some(v => {
465
+ if (v == null)
466
+ return false;
467
+ if (v === rowId)
468
+ return true;
469
+ // Preset values may arrive as full row objects instead of bare IDs.
470
+ // Extract the ID from the stored object so the comparison still works.
471
+ if (typeof v === 'object') {
472
+ return this.getRowId(v) == rowId;
473
+ }
474
+ // Handle string/number type coercion (e.g. "123" vs 123).
475
+ return String(v) === String(rowId);
476
+ });
477
+ }
478
+ onRadioChange(event) {
479
+ const id = event?.value;
480
+ if (id == null)
481
+ return;
482
+ const row = this.dataSource.data.find((r) => this.getRowId(r) == id);
483
+ this.selectRow(row ?? this.#buildFallbackRowFromId(id));
484
+ }
485
+ /** Handle click on radio: if already selected, deselect (radios don't fire change when re-clicked). */
486
+ onRadioClick(row, event) {
487
+ if (this.isRowSelected(row)) {
488
+ event.preventDefault();
489
+ event.stopPropagation();
490
+ this.selectRow(row);
491
+ }
492
+ }
493
+ selectRow(row) {
494
+ const id = this.getRowId(row);
495
+ if (this.isMultiSelect) {
496
+ const ids = [...this.getSelectedIds()];
497
+ const idx = ids.indexOf(id);
498
+ if (idx >= 0) {
499
+ ids.splice(idx, 1);
500
+ }
501
+ else {
502
+ ids.push(id);
503
+ }
504
+ this.value = ids.length ? ids : null;
505
+ this.onChange(this.value);
506
+ this.onTouched();
507
+ this.#bringSelectionToFront();
508
+ this.#cdr.markForCheck();
509
+ return;
510
+ }
511
+ const isDeselecting = id === this.value;
512
+ this.value = isDeselecting ? undefined : id;
513
+ this.onChange(this.value);
514
+ this.onTouched();
515
+ this.#bringSelectionToFront();
516
+ this.#cdr.markForCheck();
517
+ }
518
+ writeValue(value) {
519
+ super.writeValue(value);
520
+ this.#bringSelectionToFront();
521
+ this.#cdr.markForCheck();
522
+ }
523
+ ngAfterViewInit() {
524
+ this.#attachSortAndPaginatorAfterViewReady();
525
+ }
526
+ ngOnDestroy() {
527
+ this.#destroyed = true;
528
+ this.#loadScheduled = false;
529
+ if (this.#connectTimeoutId != null) {
530
+ clearTimeout(this.#connectTimeoutId);
531
+ this.#connectTimeoutId = null;
532
+ }
533
+ this.#clearInferredCache();
534
+ this.dataSource.data = [];
535
+ super.ngOnDestroy();
536
+ }
537
+ reload() {
538
+ this.reloadData.emit();
539
+ }
540
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: PaginatedSelectionTableReactiveInput, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
541
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: PaginatedSelectionTableReactiveInput, isStandalone: true, selector: "lib-paginated-selection-table-reactive-input", inputs: { formBuilderFunctions: { classPropertyName: "formBuilderFunctions", publicName: "formBuilderFunctions", isSignal: true, isRequired: false, transformFunction: null }, canReload: { classPropertyName: "canReload", publicName: "canReload", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, searchPlaceholder: { classPropertyName: "searchPlaceholder", publicName: "searchPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, inputConfig: { classPropertyName: "inputConfig", publicName: "inputConfig", isSignal: true, isRequired: false, transformFunction: null }, optionsSearch: { classPropertyName: "optionsSearch", publicName: "optionsSearch", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { reloadData: "reloadData" }, host: { properties: { "class.floating": "shouldLabelFloat", "id": "id" } }, providers: [{ provide: MatFormFieldControl, useExisting: PaginatedSelectionTableReactiveInput }], viewQueries: [{ propertyName: "sort", first: true, predicate: MatSort, descendants: true, isSignal: true }, { propertyName: "paginator", first: true, predicate: MatPaginator, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "\r\n<mat-card class=\"doc-picker-card\">\r\n @if (!inputConfig()?.disabled && !inputConfig()?.readonly) {\r\n <header class=\"doc-picker-header\">\r\n <div class=\"doc-picker-toolbar\">\r\n <mat-form-field subscriptSizing=\"dynamic\" class=\"doc-picker-search\">\r\n <input matInput [placeholder]=\"searchPlaceholder()\" [formControl]=\"searchFormControl\"\r\n [attr.aria-label]=\"searchPlaceholder()\">\r\n @if (isSearching()) {\r\n <mat-spinner matSuffix class=\"doc-picker-search-spinner\" [diameter]=\"18\"\r\n aria-label=\"Searching\"></mat-spinner>\r\n } @else if (searchFormControl.value) {\r\n <button mat-icon-button matSuffix (click)=\"clearSearch()\" type=\"button\"\r\n aria-label=\"Clear search\">\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n } @else {\r\n <mat-icon matSuffix>search</mat-icon>\r\n }\r\n </mat-form-field>\r\n @if (isMultiSelect && getSelectedIds().length > 0) {\r\n <span class=\"doc-picker-selection-badge\" role=\"status\" aria-live=\"polite\">\r\n {{ getSelectedIds().length }} selected\r\n </span>\r\n }\r\n </div>\r\n </header>\r\n }\r\n @if (loading()) {\r\n <div class=\"doc-picker-loading\">\r\n <mat-spinner [diameter]=\"40\" aria-label=\"Loading items\"></mat-spinner>\r\n </div>\r\n } @else {\r\n <div class=\"doc-picker-body\">\r\n @if (!inputConfig()?.disabled && !inputConfig()?.readonly && !value) {\r\n <div class=\"doc-picker-helper\">\r\n <mat-icon class=\"doc-picker-helper-icon\" color=\"primary\">info</mat-icon>\r\n <span><strong>{{ isMultiSelect ? 'Select items' : 'Select an item' }}</strong> \u2014 Search, sort or page to find {{ isMultiSelect ? 'them' : 'it' }}, then {{ isMultiSelect ? 'check the box' : 'select the radio' }} to select {{ isMultiSelect ? 'them' : 'it' }}.</span>\r\n </div>\r\n }\r\n @if (dataSource.filteredData.length === 0) {\r\n <div class=\"doc-picker-empty\">\r\n @if (activeSearch) {\r\n <mat-icon>search_off</mat-icon>\r\n <span>No items match \u201C{{ activeSearch }}\u201D</span>\r\n <button mat-stroked-button color=\"primary\" (click)=\"clearSearch()\" class=\"doc-picker-retry\"\r\n type=\"button\" aria-label=\"Clear search\">\r\n <mat-icon>close</mat-icon>\r\n Clear search\r\n </button>\r\n } @else {\r\n <mat-icon>folder_open</mat-icon>\r\n <span>{{ emptyMessage() }}</span>\r\n }\r\n @if (canReload() && !activeSearch) {\r\n <button mat-stroked-button color=\"primary\" (click)=\"reload()\" class=\"doc-picker-retry\"\r\n aria-label=\"Retry loading items\">\r\n <mat-icon>refresh</mat-icon>\r\n Retry\r\n </button>\r\n }\r\n </div>\r\n }\r\n @if (dataSource.filteredData.length > 0 && columns.length > 0) {\r\n @if (isMultiSelect) {\r\n <div class=\"doc-picker-table-wrapper\">\r\n <table mat-table [dataSource]=\"dataSource\" class=\"doc-picker-table\"\r\n [matSortActive]=\"sortActiveColumn\" matSortDisableClear matSortDirection=\"asc\"\r\n matSort role=\"grid\" aria-label=\"Selection list\">\r\n @for (col of columns; track col.key) {\r\n <ng-container [matColumnDef]=\"col.key\" [stickyEnd]=\"$last\">\r\n <th mat-header-cell *matHeaderCellDef mat-sort-header\r\n [disabled]=\"col.key === 'icons' || col.key === 'actions'\"\r\n [class.text-right-align]=\"col.type === 'currency' || col.type === 'number'\"\r\n [class.doc-picker-col-icons]=\"col.key === 'icons'\"\r\n [class.doc-picker-col-actions]=\"col.key === 'actions'\"\r\n [class.doc-picker-col-text]=\"col.key !== 'icons' && col.key !== 'actions' && col.type !== 'currency' && col.type !== 'number'\"\r\n [class.doc-picker-col-numeric]=\"col.type === 'currency' || col.type === 'number'\">\r\n\r\n @if(col.key === 'actions' && canReload()){\r\n <button mat-icon-button\r\n matTooltip=\"Click to refresh this field.\"\r\n class=\"doc-picker-refresh doc-picker-refresh-spacing\"\r\n (click)=\"reload()\"\r\n aria-label=\"Refresh list\">\r\n <mat-icon class=\"doc-picker-refresh-icon\">sync</mat-icon>\r\n </button>\r\n } @else {\r\n {{ col.label }}\r\n }\r\n\r\n </th>\r\n <td mat-cell *matCellDef=\"let row\"\r\n [class.text-right-align]=\"col.type === 'currency' || col.type === 'number'\"\r\n [class.doc-picker-col-icons]=\"col.key === 'icons'\"\r\n [class.doc-picker-col-actions]=\"col.key === 'actions'\"\r\n [class.doc-picker-col-text]=\"col.key !== 'icons' && col.key !== 'actions' && col.type !== 'currency' && col.type !== 'number'\"\r\n [class.doc-picker-col-numeric]=\"col.type === 'currency' || col.type === 'number'\">\r\n @if (col.key === 'icons') {\r\n <mat-icon class=\"doc-picker-row-icon\">description</mat-icon>\r\n } @else if (col.key === 'actions') {\r\n <mat-checkbox\r\n [checked]=\"isRowSelected(row)\"\r\n [disabled]=\"!!inputConfig()?.disabled || !!inputConfig()?.readonly\"\r\n (change)=\"selectRow(row)\"\r\n [matTooltip]=\"isRowSelected(row) ? 'Clear selection' : 'Select ' + (row['reference'] ?? row['name'] ?? 'item')\"\r\n matTooltipPosition=\"below\"\r\n [attr.aria-label]=\"isRowSelected(row) ? 'Clear selection' : 'Select ' + (row['reference'] ?? row['name'] ?? 'item')\">\r\n </mat-checkbox>\r\n } @else {\r\n <span class=\"doc-picker-cell-value doc-picker-cell-text\"\r\n [class.doc-picker-cell-selected]=\"isRowSelected(row)\"\r\n [matTooltip]=\"row[col.key] | formatData:col.type:undefined:l10n()\"\r\n matTooltipPosition=\"above\">\r\n {{ row[col.key] | formatData:col.type:undefined:l10n() }}\r\n </span>\r\n }\r\n </td>\r\n </ng-container>\r\n }\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns; sticky: true\"></tr>\r\n <tr mat-row class=\"doc-picker-row\" *matRowDef=\"let row; columns: displayedColumns;\"\r\n [class.doc-picker-row-selected]=\"isRowSelected(row)\"\r\n [attr.aria-label]=\"'Row: ' + (row['reference'] ?? row['name'] ?? 'item')\"\r\n [attr.aria-selected]=\"isRowSelected(row)\"></tr>\r\n </table>\r\n </div>\r\n } @else {\r\n <mat-radio-group [value]=\"getNormalizedSingleValue()\" (change)=\"onRadioChange($event)\" class=\"doc-picker-radio-group\">\r\n <div class=\"doc-picker-table-wrapper\">\r\n <table mat-table [dataSource]=\"dataSource\" class=\"doc-picker-table\"\r\n [matSortActive]=\"sortActiveColumn\" matSortDisableClear matSortDirection=\"asc\"\r\n matSort role=\"grid\" aria-label=\"Selection list\">\r\n @for (col of columns; track col.key) {\r\n <ng-container [matColumnDef]=\"col.key\" [stickyEnd]=\"$last\">\r\n <th mat-header-cell *matHeaderCellDef mat-sort-header\r\n [disabled]=\"col.key === 'icons' || col.key === 'actions'\"\r\n [class.text-right-align]=\"col.type === 'currency' || col.type === 'number'\"\r\n [class.doc-picker-col-icons]=\"col.key === 'icons'\"\r\n [class.doc-picker-col-actions]=\"col.key === 'actions'\"\r\n [class.doc-picker-col-text]=\"col.key !== 'icons' && col.key !== 'actions' && col.type !== 'currency' && col.type !== 'number'\"\r\n [class.doc-picker-col-numeric]=\"col.type === 'currency' || col.type === 'number'\">\r\n @if (col.key === 'actions' && canReload()) {\r\n <button mat-icon-button\r\n matTooltip=\"Click to refresh this field.\"\r\n class=\"doc-picker-refresh doc-picker-refresh-spacing\"\r\n (click)=\"reload()\"\r\n aria-label=\"Refresh list\">\r\n <mat-icon class=\"doc-picker-refresh-icon\">sync</mat-icon>\r\n </button>\r\n } @else {\r\n {{ col.label }}\r\n }\r\n </th>\r\n <td mat-cell *matCellDef=\"let row\"\r\n [class.text-right-align]=\"col.type === 'currency' || col.type === 'number'\"\r\n [class.doc-picker-col-icons]=\"col.key === 'icons'\"\r\n [class.doc-picker-col-actions]=\"col.key === 'actions'\"\r\n [class.doc-picker-col-text]=\"col.key !== 'icons' && col.key !== 'actions' && col.type !== 'currency' && col.type !== 'number'\"\r\n [class.doc-picker-col-numeric]=\"col.type === 'currency' || col.type === 'number'\">\r\n @if (col.key === 'icons') {\r\n <mat-icon class=\"doc-picker-row-icon\">description</mat-icon>\r\n } @else if (col.key === 'actions') {\r\n <mat-radio-button\r\n [value]=\"getRowId(row)\"\r\n [disabled]=\"!!inputConfig()?.disabled || !!inputConfig()?.readonly\"\r\n (click)=\"onRadioClick(row, $event)\"\r\n [matTooltip]=\"isRowSelected(row) ? 'Clear selection' : 'Select ' + (row['reference'] ?? row['name'] ?? 'item')\"\r\n matTooltipPosition=\"below\"\r\n [attr.aria-label]=\"isRowSelected(row) ? 'Clear selection' : 'Select ' + (row['reference'] ?? row['name'] ?? 'item')\">\r\n </mat-radio-button>\r\n } @else {\r\n <span class=\"doc-picker-cell-value doc-picker-cell-text\"\r\n [class.doc-picker-cell-selected]=\"isRowSelected(row)\"\r\n [matTooltip]=\"row[col.key] | formatData:col.type:undefined:l10n()\"\r\n matTooltipPosition=\"above\">\r\n {{ row[col.key] | formatData:col.type:undefined:l10n() }}\r\n </span>\r\n }\r\n </td>\r\n </ng-container>\r\n }\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns; sticky: true\"></tr>\r\n <tr mat-row class=\"doc-picker-row\" *matRowDef=\"let row; columns: displayedColumns;\"\r\n [class.doc-picker-row-selected]=\"isRowSelected(row)\"\r\n [attr.aria-label]=\"'Row: ' + (row['reference'] ?? row['name'] ?? 'item')\"\r\n [attr.aria-selected]=\"isRowSelected(row)\"></tr>\r\n </table>\r\n </div>\r\n </mat-radio-group>\r\n }\r\n }\r\n </div>\r\n }\r\n @if (!inputConfig()?.disabled && !inputConfig()?.readonly && dataSource.filteredData.length > 0 && !loading()) {\r\n <mat-paginator [pageSizeOptions]=\"[5, 10, 25, 50]\"\r\n [pageSize]=\"5\"\r\n [length]=\"dataSource.filteredData.length\"\r\n showFirstLastButtons\r\n aria-label=\"Selection list pagination\" class=\"doc-picker-paginator\"></mat-paginator>\r\n }\r\n</mat-card>\r\n", styles: [":host{--doc-picker-radius-lg: 12px;--doc-picker-radius-sm: 8px;--doc-picker-radius-pill: 6px;--doc-picker-shadow: 0 2px 8px rgba(0, 0, 0, .08);--doc-picker-primary: var(--mat-sys-primary, #6750a4);--doc-picker-surface: var(--mat-sys-surface, #fef7ff);--doc-picker-surface-container: var(--mat-sys-surface-container, #f3edf7);--doc-picker-on-surface: var(--mat-sys-on-surface, #1c1b1f);--doc-picker-on-surface-variant: var(--mat-sys-on-surface-variant, #49454f);--doc-picker-outline: var(--mat-sys-outline, #79747e)}@media(prefers-color-scheme:dark){:host{--doc-picker-shadow: 0 1px 3px rgba(0, 0, 0, .3)}}.doc-picker-card{border-radius:var(--doc-picker-radius-lg);box-shadow:var(--doc-picker-shadow);border:1px solid color-mix(in srgb,var(--doc-picker-outline) 15%,transparent);overflow:hidden;background:var(--doc-picker-surface)}.doc-picker-header{display:flex;align-items:center;gap:.75rem;padding:0rem;background:color-mix(in srgb,var(--doc-picker-primary) 4%,transparent);border-bottom:1px solid color-mix(in srgb,var(--doc-picker-outline) 10%,transparent)}.doc-picker-toolbar{display:flex;align-items:center;gap:.5rem;flex-shrink:0;width:100%}.doc-picker-selection-badge{flex-shrink:0;font-size:.75rem;font-weight:500;padding:.25rem .5rem;border-radius:var(--doc-picker-radius-pill);background:color-mix(in srgb,var(--doc-picker-primary) 14%,transparent);color:var(--doc-picker-primary);white-space:nowrap}.doc-picker-loading{display:flex;justify-content:center;align-items:center;padding:1.5rem;min-height:6rem}.doc-picker-retry{min-height:2.25rem;font-size:.8125rem;transition:all .15s}.doc-picker-retry mat-icon{margin-right:.25rem;vertical-align:middle;font-size:1rem;width:1rem;height:1rem}.doc-picker-refresh{flex-shrink:0;transition:transform .15s}.doc-picker-refresh:hover{transform:rotate(90deg)}.doc-picker-refresh-spacing{margin-right:.25rem}.doc-picker-refresh-icon{height:1.25rem;width:1.25rem;font-size:1.25rem;color:var(--doc-picker-primary)}.doc-picker-search{width:100%;min-width:8rem}.doc-picker-search .mat-mdc-form-field{--mdc-filled-text-field-container-color: transparent;--mdc-filled-text-field-container-shape: var(--doc-picker-radius-sm)}.doc-picker-search .mat-mdc-form-field-subscript-wrapper{display:none}.doc-picker-search input{font-size:.8125rem}.doc-picker-search-spinner{margin:0 .75rem}.doc-picker-body{padding:.75rem 1rem;display:flex;flex-direction:column;gap:.75rem}.doc-picker-helper{display:flex;align-items:flex-start;gap:.5rem;padding:.5rem .75rem;background:color-mix(in srgb,var(--doc-picker-primary) 6%,transparent);border-radius:var(--doc-picker-radius-sm);font-size:.8125rem;color:var(--doc-picker-on-surface-variant);line-height:1.4}.doc-picker-helper-icon{font-size:1.125rem;width:1.125rem;height:1.125rem;flex-shrink:0;margin-top:.125rem}.doc-picker-helper strong{color:var(--doc-picker-on-surface)}.doc-picker-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;font-size:.8125rem;color:var(--doc-picker-on-surface-variant);padding:1rem;background:var(--doc-picker-surface-container);border-radius:var(--doc-picker-radius-sm);text-align:center;margin:0}.doc-picker-empty mat-icon{font-size:1.25rem;width:1.25rem;height:1.25rem;opacity:.7}.doc-picker-table-wrapper{overflow:auto;max-height:50vh;border-radius:var(--doc-picker-radius-sm);border:1px solid color-mix(in srgb,var(--doc-picker-outline) 15%,transparent)}.doc-picker-table{width:100%;min-width:fit-content;table-layout:auto;border-collapse:collapse}.doc-picker-table .mat-mdc-header-row{background:color-mix(in srgb,var(--doc-picker-primary) 4%,transparent)}.doc-picker-table .mat-mdc-header-row{position:sticky;top:0;z-index:3;box-shadow:0 2px 4px #0000000f}.doc-picker-table .mat-mdc-header-cell{font-size:.75rem;font-weight:500;text-transform:uppercase;letter-spacing:.04em;color:var(--doc-picker-on-surface-variant);background:var(--mat-table-background-color, var(--mat-sys-surface));padding:.35rem .5rem}.doc-picker-table .mat-mdc-cell{font-size:.75rem;padding:.35rem .5rem}.doc-picker-col-icons,.doc-picker-col-actions{width:2.5rem;min-width:2.5rem;max-width:2.5rem;background:var(--mat-table-background-color, var(--mat-sys-surface));text-align:center}.doc-picker-row-icon{font-size:1.125rem!important;width:1.125rem!important;height:1.125rem!important;color:var(--doc-picker-primary)}.doc-picker-col-text{width:fit-content;min-width:4rem;max-width:18rem}.doc-picker-col-numeric{width:min-content;min-width:4rem}.doc-picker-table th.doc-picker-col-actions,.doc-picker-table td.doc-picker-col-actions{background:var(--mat-table-background-color, var(--mat-sys-surface))!important;box-shadow:-4px 0 8px #0000000f}.doc-picker-col-actions .mat-mdc-checkbox,.doc-picker-col-actions .mat-mdc-radio-button{--mdc-checkbox-state-layer-size: 2rem}.doc-picker-radio-group{display:block}.doc-picker-cell-value{transition:color .15s}.doc-picker-cell-text{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.doc-picker-cell-selected{color:var(--doc-picker-primary);font-weight:500}.doc-picker-row{cursor:pointer;transition:background-color .15s}.doc-picker-row:hover{background:color-mix(in srgb,var(--doc-picker-primary) 6%,transparent)}.doc-picker-row-selected{background:color-mix(in srgb,var(--doc-picker-primary) 12%,transparent)}.doc-picker-row-selected:hover{background:color-mix(in srgb,var(--doc-picker-primary) 14%,transparent)}.doc-picker-paginator{background:var(--doc-picker-surface);border-top:1px solid color-mix(in srgb,var(--doc-picker-outline) 10%,transparent)}.doc-picker-paginator .mat-mdc-paginator-container{padding:.5rem 1rem;font-size:.8125rem}.text-right-align{text-align:right}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatCardModule }, { kind: "component", type: i3.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i4$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$1.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: i1$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { 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: MatSortModule }, { kind: "directive", type: i10.MatSort, selector: "[matSort]", inputs: ["matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear", "matSortDisabled"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { kind: "component", type: i10.MatSortHeader, selector: "[mat-sort-header]", inputs: ["mat-sort-header", "arrowPosition", "start", "disabled", "sortActionDescription", "disableClear"], exportAs: ["matSortHeader"] }, { kind: "ngmodule", type: MatPaginatorModule }, { kind: "component", type: i7.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i2$1.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: MatRadioModule }, { kind: "directive", type: i3$2.MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "component", type: i3$2.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "pipe", type: FormatDataPipe, name: "formatData" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
542
+ }
543
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: PaginatedSelectionTableReactiveInput, decorators: [{
544
+ type: Component,
545
+ args: [{ selector: 'lib-paginated-selection-table-reactive-input', imports: [
546
+ ReactiveFormsModule,
547
+ FormatDataPipe,
548
+ MatCardModule,
549
+ MatIconModule,
550
+ MatProgressSpinnerModule,
551
+ MatFormFieldModule,
552
+ MatInputModule,
553
+ MatButtonModule,
554
+ MatTooltipModule,
555
+ MatTableModule,
556
+ MatSortModule,
557
+ MatPaginatorModule,
558
+ MatCheckboxModule,
559
+ MatRadioModule,
560
+ ], changeDetection: ChangeDetectionStrategy.OnPush, host: {
561
+ '[class.floating]': 'shouldLabelFloat',
562
+ '[id]': 'id',
563
+ }, providers: [{ provide: MatFormFieldControl, useExisting: PaginatedSelectionTableReactiveInput }], template: "\r\n<mat-card class=\"doc-picker-card\">\r\n @if (!inputConfig()?.disabled && !inputConfig()?.readonly) {\r\n <header class=\"doc-picker-header\">\r\n <div class=\"doc-picker-toolbar\">\r\n <mat-form-field subscriptSizing=\"dynamic\" class=\"doc-picker-search\">\r\n <input matInput [placeholder]=\"searchPlaceholder()\" [formControl]=\"searchFormControl\"\r\n [attr.aria-label]=\"searchPlaceholder()\">\r\n @if (isSearching()) {\r\n <mat-spinner matSuffix class=\"doc-picker-search-spinner\" [diameter]=\"18\"\r\n aria-label=\"Searching\"></mat-spinner>\r\n } @else if (searchFormControl.value) {\r\n <button mat-icon-button matSuffix (click)=\"clearSearch()\" type=\"button\"\r\n aria-label=\"Clear search\">\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n } @else {\r\n <mat-icon matSuffix>search</mat-icon>\r\n }\r\n </mat-form-field>\r\n @if (isMultiSelect && getSelectedIds().length > 0) {\r\n <span class=\"doc-picker-selection-badge\" role=\"status\" aria-live=\"polite\">\r\n {{ getSelectedIds().length }} selected\r\n </span>\r\n }\r\n </div>\r\n </header>\r\n }\r\n @if (loading()) {\r\n <div class=\"doc-picker-loading\">\r\n <mat-spinner [diameter]=\"40\" aria-label=\"Loading items\"></mat-spinner>\r\n </div>\r\n } @else {\r\n <div class=\"doc-picker-body\">\r\n @if (!inputConfig()?.disabled && !inputConfig()?.readonly && !value) {\r\n <div class=\"doc-picker-helper\">\r\n <mat-icon class=\"doc-picker-helper-icon\" color=\"primary\">info</mat-icon>\r\n <span><strong>{{ isMultiSelect ? 'Select items' : 'Select an item' }}</strong> \u2014 Search, sort or page to find {{ isMultiSelect ? 'them' : 'it' }}, then {{ isMultiSelect ? 'check the box' : 'select the radio' }} to select {{ isMultiSelect ? 'them' : 'it' }}.</span>\r\n </div>\r\n }\r\n @if (dataSource.filteredData.length === 0) {\r\n <div class=\"doc-picker-empty\">\r\n @if (activeSearch) {\r\n <mat-icon>search_off</mat-icon>\r\n <span>No items match \u201C{{ activeSearch }}\u201D</span>\r\n <button mat-stroked-button color=\"primary\" (click)=\"clearSearch()\" class=\"doc-picker-retry\"\r\n type=\"button\" aria-label=\"Clear search\">\r\n <mat-icon>close</mat-icon>\r\n Clear search\r\n </button>\r\n } @else {\r\n <mat-icon>folder_open</mat-icon>\r\n <span>{{ emptyMessage() }}</span>\r\n }\r\n @if (canReload() && !activeSearch) {\r\n <button mat-stroked-button color=\"primary\" (click)=\"reload()\" class=\"doc-picker-retry\"\r\n aria-label=\"Retry loading items\">\r\n <mat-icon>refresh</mat-icon>\r\n Retry\r\n </button>\r\n }\r\n </div>\r\n }\r\n @if (dataSource.filteredData.length > 0 && columns.length > 0) {\r\n @if (isMultiSelect) {\r\n <div class=\"doc-picker-table-wrapper\">\r\n <table mat-table [dataSource]=\"dataSource\" class=\"doc-picker-table\"\r\n [matSortActive]=\"sortActiveColumn\" matSortDisableClear matSortDirection=\"asc\"\r\n matSort role=\"grid\" aria-label=\"Selection list\">\r\n @for (col of columns; track col.key) {\r\n <ng-container [matColumnDef]=\"col.key\" [stickyEnd]=\"$last\">\r\n <th mat-header-cell *matHeaderCellDef mat-sort-header\r\n [disabled]=\"col.key === 'icons' || col.key === 'actions'\"\r\n [class.text-right-align]=\"col.type === 'currency' || col.type === 'number'\"\r\n [class.doc-picker-col-icons]=\"col.key === 'icons'\"\r\n [class.doc-picker-col-actions]=\"col.key === 'actions'\"\r\n [class.doc-picker-col-text]=\"col.key !== 'icons' && col.key !== 'actions' && col.type !== 'currency' && col.type !== 'number'\"\r\n [class.doc-picker-col-numeric]=\"col.type === 'currency' || col.type === 'number'\">\r\n\r\n @if(col.key === 'actions' && canReload()){\r\n <button mat-icon-button\r\n matTooltip=\"Click to refresh this field.\"\r\n class=\"doc-picker-refresh doc-picker-refresh-spacing\"\r\n (click)=\"reload()\"\r\n aria-label=\"Refresh list\">\r\n <mat-icon class=\"doc-picker-refresh-icon\">sync</mat-icon>\r\n </button>\r\n } @else {\r\n {{ col.label }}\r\n }\r\n\r\n </th>\r\n <td mat-cell *matCellDef=\"let row\"\r\n [class.text-right-align]=\"col.type === 'currency' || col.type === 'number'\"\r\n [class.doc-picker-col-icons]=\"col.key === 'icons'\"\r\n [class.doc-picker-col-actions]=\"col.key === 'actions'\"\r\n [class.doc-picker-col-text]=\"col.key !== 'icons' && col.key !== 'actions' && col.type !== 'currency' && col.type !== 'number'\"\r\n [class.doc-picker-col-numeric]=\"col.type === 'currency' || col.type === 'number'\">\r\n @if (col.key === 'icons') {\r\n <mat-icon class=\"doc-picker-row-icon\">description</mat-icon>\r\n } @else if (col.key === 'actions') {\r\n <mat-checkbox\r\n [checked]=\"isRowSelected(row)\"\r\n [disabled]=\"!!inputConfig()?.disabled || !!inputConfig()?.readonly\"\r\n (change)=\"selectRow(row)\"\r\n [matTooltip]=\"isRowSelected(row) ? 'Clear selection' : 'Select ' + (row['reference'] ?? row['name'] ?? 'item')\"\r\n matTooltipPosition=\"below\"\r\n [attr.aria-label]=\"isRowSelected(row) ? 'Clear selection' : 'Select ' + (row['reference'] ?? row['name'] ?? 'item')\">\r\n </mat-checkbox>\r\n } @else {\r\n <span class=\"doc-picker-cell-value doc-picker-cell-text\"\r\n [class.doc-picker-cell-selected]=\"isRowSelected(row)\"\r\n [matTooltip]=\"row[col.key] | formatData:col.type:undefined:l10n()\"\r\n matTooltipPosition=\"above\">\r\n {{ row[col.key] | formatData:col.type:undefined:l10n() }}\r\n </span>\r\n }\r\n </td>\r\n </ng-container>\r\n }\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns; sticky: true\"></tr>\r\n <tr mat-row class=\"doc-picker-row\" *matRowDef=\"let row; columns: displayedColumns;\"\r\n [class.doc-picker-row-selected]=\"isRowSelected(row)\"\r\n [attr.aria-label]=\"'Row: ' + (row['reference'] ?? row['name'] ?? 'item')\"\r\n [attr.aria-selected]=\"isRowSelected(row)\"></tr>\r\n </table>\r\n </div>\r\n } @else {\r\n <mat-radio-group [value]=\"getNormalizedSingleValue()\" (change)=\"onRadioChange($event)\" class=\"doc-picker-radio-group\">\r\n <div class=\"doc-picker-table-wrapper\">\r\n <table mat-table [dataSource]=\"dataSource\" class=\"doc-picker-table\"\r\n [matSortActive]=\"sortActiveColumn\" matSortDisableClear matSortDirection=\"asc\"\r\n matSort role=\"grid\" aria-label=\"Selection list\">\r\n @for (col of columns; track col.key) {\r\n <ng-container [matColumnDef]=\"col.key\" [stickyEnd]=\"$last\">\r\n <th mat-header-cell *matHeaderCellDef mat-sort-header\r\n [disabled]=\"col.key === 'icons' || col.key === 'actions'\"\r\n [class.text-right-align]=\"col.type === 'currency' || col.type === 'number'\"\r\n [class.doc-picker-col-icons]=\"col.key === 'icons'\"\r\n [class.doc-picker-col-actions]=\"col.key === 'actions'\"\r\n [class.doc-picker-col-text]=\"col.key !== 'icons' && col.key !== 'actions' && col.type !== 'currency' && col.type !== 'number'\"\r\n [class.doc-picker-col-numeric]=\"col.type === 'currency' || col.type === 'number'\">\r\n @if (col.key === 'actions' && canReload()) {\r\n <button mat-icon-button\r\n matTooltip=\"Click to refresh this field.\"\r\n class=\"doc-picker-refresh doc-picker-refresh-spacing\"\r\n (click)=\"reload()\"\r\n aria-label=\"Refresh list\">\r\n <mat-icon class=\"doc-picker-refresh-icon\">sync</mat-icon>\r\n </button>\r\n } @else {\r\n {{ col.label }}\r\n }\r\n </th>\r\n <td mat-cell *matCellDef=\"let row\"\r\n [class.text-right-align]=\"col.type === 'currency' || col.type === 'number'\"\r\n [class.doc-picker-col-icons]=\"col.key === 'icons'\"\r\n [class.doc-picker-col-actions]=\"col.key === 'actions'\"\r\n [class.doc-picker-col-text]=\"col.key !== 'icons' && col.key !== 'actions' && col.type !== 'currency' && col.type !== 'number'\"\r\n [class.doc-picker-col-numeric]=\"col.type === 'currency' || col.type === 'number'\">\r\n @if (col.key === 'icons') {\r\n <mat-icon class=\"doc-picker-row-icon\">description</mat-icon>\r\n } @else if (col.key === 'actions') {\r\n <mat-radio-button\r\n [value]=\"getRowId(row)\"\r\n [disabled]=\"!!inputConfig()?.disabled || !!inputConfig()?.readonly\"\r\n (click)=\"onRadioClick(row, $event)\"\r\n [matTooltip]=\"isRowSelected(row) ? 'Clear selection' : 'Select ' + (row['reference'] ?? row['name'] ?? 'item')\"\r\n matTooltipPosition=\"below\"\r\n [attr.aria-label]=\"isRowSelected(row) ? 'Clear selection' : 'Select ' + (row['reference'] ?? row['name'] ?? 'item')\">\r\n </mat-radio-button>\r\n } @else {\r\n <span class=\"doc-picker-cell-value doc-picker-cell-text\"\r\n [class.doc-picker-cell-selected]=\"isRowSelected(row)\"\r\n [matTooltip]=\"row[col.key] | formatData:col.type:undefined:l10n()\"\r\n matTooltipPosition=\"above\">\r\n {{ row[col.key] | formatData:col.type:undefined:l10n() }}\r\n </span>\r\n }\r\n </td>\r\n </ng-container>\r\n }\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns; sticky: true\"></tr>\r\n <tr mat-row class=\"doc-picker-row\" *matRowDef=\"let row; columns: displayedColumns;\"\r\n [class.doc-picker-row-selected]=\"isRowSelected(row)\"\r\n [attr.aria-label]=\"'Row: ' + (row['reference'] ?? row['name'] ?? 'item')\"\r\n [attr.aria-selected]=\"isRowSelected(row)\"></tr>\r\n </table>\r\n </div>\r\n </mat-radio-group>\r\n }\r\n }\r\n </div>\r\n }\r\n @if (!inputConfig()?.disabled && !inputConfig()?.readonly && dataSource.filteredData.length > 0 && !loading()) {\r\n <mat-paginator [pageSizeOptions]=\"[5, 10, 25, 50]\"\r\n [pageSize]=\"5\"\r\n [length]=\"dataSource.filteredData.length\"\r\n showFirstLastButtons\r\n aria-label=\"Selection list pagination\" class=\"doc-picker-paginator\"></mat-paginator>\r\n }\r\n</mat-card>\r\n", styles: [":host{--doc-picker-radius-lg: 12px;--doc-picker-radius-sm: 8px;--doc-picker-radius-pill: 6px;--doc-picker-shadow: 0 2px 8px rgba(0, 0, 0, .08);--doc-picker-primary: var(--mat-sys-primary, #6750a4);--doc-picker-surface: var(--mat-sys-surface, #fef7ff);--doc-picker-surface-container: var(--mat-sys-surface-container, #f3edf7);--doc-picker-on-surface: var(--mat-sys-on-surface, #1c1b1f);--doc-picker-on-surface-variant: var(--mat-sys-on-surface-variant, #49454f);--doc-picker-outline: var(--mat-sys-outline, #79747e)}@media(prefers-color-scheme:dark){:host{--doc-picker-shadow: 0 1px 3px rgba(0, 0, 0, .3)}}.doc-picker-card{border-radius:var(--doc-picker-radius-lg);box-shadow:var(--doc-picker-shadow);border:1px solid color-mix(in srgb,var(--doc-picker-outline) 15%,transparent);overflow:hidden;background:var(--doc-picker-surface)}.doc-picker-header{display:flex;align-items:center;gap:.75rem;padding:0rem;background:color-mix(in srgb,var(--doc-picker-primary) 4%,transparent);border-bottom:1px solid color-mix(in srgb,var(--doc-picker-outline) 10%,transparent)}.doc-picker-toolbar{display:flex;align-items:center;gap:.5rem;flex-shrink:0;width:100%}.doc-picker-selection-badge{flex-shrink:0;font-size:.75rem;font-weight:500;padding:.25rem .5rem;border-radius:var(--doc-picker-radius-pill);background:color-mix(in srgb,var(--doc-picker-primary) 14%,transparent);color:var(--doc-picker-primary);white-space:nowrap}.doc-picker-loading{display:flex;justify-content:center;align-items:center;padding:1.5rem;min-height:6rem}.doc-picker-retry{min-height:2.25rem;font-size:.8125rem;transition:all .15s}.doc-picker-retry mat-icon{margin-right:.25rem;vertical-align:middle;font-size:1rem;width:1rem;height:1rem}.doc-picker-refresh{flex-shrink:0;transition:transform .15s}.doc-picker-refresh:hover{transform:rotate(90deg)}.doc-picker-refresh-spacing{margin-right:.25rem}.doc-picker-refresh-icon{height:1.25rem;width:1.25rem;font-size:1.25rem;color:var(--doc-picker-primary)}.doc-picker-search{width:100%;min-width:8rem}.doc-picker-search .mat-mdc-form-field{--mdc-filled-text-field-container-color: transparent;--mdc-filled-text-field-container-shape: var(--doc-picker-radius-sm)}.doc-picker-search .mat-mdc-form-field-subscript-wrapper{display:none}.doc-picker-search input{font-size:.8125rem}.doc-picker-search-spinner{margin:0 .75rem}.doc-picker-body{padding:.75rem 1rem;display:flex;flex-direction:column;gap:.75rem}.doc-picker-helper{display:flex;align-items:flex-start;gap:.5rem;padding:.5rem .75rem;background:color-mix(in srgb,var(--doc-picker-primary) 6%,transparent);border-radius:var(--doc-picker-radius-sm);font-size:.8125rem;color:var(--doc-picker-on-surface-variant);line-height:1.4}.doc-picker-helper-icon{font-size:1.125rem;width:1.125rem;height:1.125rem;flex-shrink:0;margin-top:.125rem}.doc-picker-helper strong{color:var(--doc-picker-on-surface)}.doc-picker-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;font-size:.8125rem;color:var(--doc-picker-on-surface-variant);padding:1rem;background:var(--doc-picker-surface-container);border-radius:var(--doc-picker-radius-sm);text-align:center;margin:0}.doc-picker-empty mat-icon{font-size:1.25rem;width:1.25rem;height:1.25rem;opacity:.7}.doc-picker-table-wrapper{overflow:auto;max-height:50vh;border-radius:var(--doc-picker-radius-sm);border:1px solid color-mix(in srgb,var(--doc-picker-outline) 15%,transparent)}.doc-picker-table{width:100%;min-width:fit-content;table-layout:auto;border-collapse:collapse}.doc-picker-table .mat-mdc-header-row{background:color-mix(in srgb,var(--doc-picker-primary) 4%,transparent)}.doc-picker-table .mat-mdc-header-row{position:sticky;top:0;z-index:3;box-shadow:0 2px 4px #0000000f}.doc-picker-table .mat-mdc-header-cell{font-size:.75rem;font-weight:500;text-transform:uppercase;letter-spacing:.04em;color:var(--doc-picker-on-surface-variant);background:var(--mat-table-background-color, var(--mat-sys-surface));padding:.35rem .5rem}.doc-picker-table .mat-mdc-cell{font-size:.75rem;padding:.35rem .5rem}.doc-picker-col-icons,.doc-picker-col-actions{width:2.5rem;min-width:2.5rem;max-width:2.5rem;background:var(--mat-table-background-color, var(--mat-sys-surface));text-align:center}.doc-picker-row-icon{font-size:1.125rem!important;width:1.125rem!important;height:1.125rem!important;color:var(--doc-picker-primary)}.doc-picker-col-text{width:fit-content;min-width:4rem;max-width:18rem}.doc-picker-col-numeric{width:min-content;min-width:4rem}.doc-picker-table th.doc-picker-col-actions,.doc-picker-table td.doc-picker-col-actions{background:var(--mat-table-background-color, var(--mat-sys-surface))!important;box-shadow:-4px 0 8px #0000000f}.doc-picker-col-actions .mat-mdc-checkbox,.doc-picker-col-actions .mat-mdc-radio-button{--mdc-checkbox-state-layer-size: 2rem}.doc-picker-radio-group{display:block}.doc-picker-cell-value{transition:color .15s}.doc-picker-cell-text{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.doc-picker-cell-selected{color:var(--doc-picker-primary);font-weight:500}.doc-picker-row{cursor:pointer;transition:background-color .15s}.doc-picker-row:hover{background:color-mix(in srgb,var(--doc-picker-primary) 6%,transparent)}.doc-picker-row-selected{background:color-mix(in srgb,var(--doc-picker-primary) 12%,transparent)}.doc-picker-row-selected:hover{background:color-mix(in srgb,var(--doc-picker-primary) 14%,transparent)}.doc-picker-paginator{background:var(--doc-picker-surface);border-top:1px solid color-mix(in srgb,var(--doc-picker-outline) 10%,transparent)}.doc-picker-paginator .mat-mdc-paginator-container{padding:.5rem 1rem;font-size:.8125rem}.text-right-align{text-align:right}\n"] }]
564
+ }], ctorParameters: () => [], propDecorators: { formBuilderFunctions: [{ type: i0.Input, args: [{ isSignal: true, alias: "formBuilderFunctions", required: false }] }], canReload: [{ type: i0.Input, args: [{ isSignal: true, alias: "canReload", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], searchPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchPlaceholder", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], inputConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputConfig", required: false }] }], optionsSearch: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionsSearch", required: false }] }], reloadData: [{ type: i0.Output, args: ["reloadData"] }], sort: [{ type: i0.ViewChild, args: [i0.forwardRef(() => MatSort), { isSignal: true }] }], paginator: [{ type: i0.ViewChild, args: [i0.forwardRef(() => MatPaginator), { isSignal: true }] }] } });
565
+
566
+ /** Wraps a paginated selection-table control inside a `mat-form-field`. */
567
+ class PaginatedSelectionTable {
568
+ constructor() {
569
+ this.inputConfig = input.required(...(ngDevMode ? [{ debugName: "inputConfig" }] : /* istanbul ignore next */ []));
570
+ this.formGroup = input.required(...(ngDevMode ? [{ debugName: "formGroup" }] : /* istanbul ignore next */ []));
571
+ this.reload = output();
572
+ this.errorMessage = computed(() => getInputErrorMessage(this.inputConfig(), this.formGroup()), ...(ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []));
573
+ this.errorStateMatcher = {
574
+ isErrorState(control, _form) {
575
+ return !!(control && control.invalid && (control.dirty || control.touched));
576
+ },
577
+ };
578
+ }
579
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: PaginatedSelectionTable, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
580
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: PaginatedSelectionTable, isStandalone: true, selector: "lib-paginated-selection-table", inputs: { inputConfig: { classPropertyName: "inputConfig", publicName: "inputConfig", isSignal: true, isRequired: true, transformFunction: null }, formGroup: { classPropertyName: "formGroup", publicName: "formGroup", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { reload: "reload" }, ngImport: i0, template: "<ng-container [formGroup]=\"formGroup()\">\r\n @if (inputConfig(); as inputConfig) {\r\n <mat-form-field [appearance]=\"inputConfig.appearance || 'fill'\" subscriptSizing=\"dynamic\">\r\n <mat-label>\r\n {{ inputConfig.label }}\r\n <lib-t-form-input-status [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\r\n </mat-label>\r\n\r\n <lib-paginated-selection-table-reactive-input\r\n [inputConfig]=\"inputConfig\"\r\n [disabled]=\"!!inputConfig.disabled\"\r\n [required]=\"inputConfig.required\"\r\n [canReload]=\"!!inputConfig.canReload?.canReload || false\"\r\n [optionsSearch]=\"inputConfig.optionsSearch\"\r\n (reloadData)=\"inputConfig.canReload.emit()\"\r\n [formControlName]=\"inputConfig.id\"\r\n ></lib-paginated-selection-table-reactive-input>\r\n\r\n @if (inputConfig.hintLabel || inputConfig.temporaryHint) {\r\n <mat-hint class=\"inputHint\">\r\n {{ inputConfig.temporaryHint || inputConfig.hintLabel }}\r\n </mat-hint>\r\n }\r\n\r\n <mat-error class=\"oneLineTextEllipsis\" matTooltipClass=\"errorToolTip\">{{ errorMessage() }}</mat-error>\r\n\r\n @if (inputConfig.prefixIcon) {\r\n <mat-icon matPrefix>{{ inputConfig.prefixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.suffixIcon && inputConfig.id !== 'password') {\r\n <mat-icon matSuffix>{{ inputConfig.suffixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.prefixText) {\r\n <span matPrefix style=\"padding: 0 12px;\">{{ inputConfig.prefixText }}</span>\r\n }\r\n @if (inputConfig.suffixText) {\r\n <span matSuffix style=\"padding: 0 12px;\">{{ inputConfig.suffixText }}</span>\r\n }\r\n\r\n @if (inputConfig.maxLength && formGroup()) {\r\n <mat-hint align=\"end\">\r\n {{ (formGroup().controls[inputConfig.id]?.value?.length || 0) + '/' + inputConfig.maxLength }}\r\n </mat-hint>\r\n }\r\n </mat-form-field>\r\n }\r\n</ng-container>\r\n", styles: ["mat-form-field{width:100%}mat-form-field .input-sync-button{display:none}mat-form-field:hover .input-sync-button{display:inline-block}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i2.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i2.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i2.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "component", type: TFormInputStatusComponent, selector: "lib-t-form-input-status", inputs: ["inputConfig"] }, { kind: "component", type: PaginatedSelectionTableReactiveInput, selector: "lib-paginated-selection-table-reactive-input", inputs: ["formBuilderFunctions", "canReload", "loading", "searchPlaceholder", "emptyMessage", "inputConfig", "optionsSearch"], outputs: ["reloadData"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
581
+ }
582
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: PaginatedSelectionTable, decorators: [{
583
+ type: Component,
584
+ args: [{ selector: 'lib-paginated-selection-table', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
585
+ ReactiveFormsModule,
586
+ MatFormFieldModule,
587
+ MatIconModule,
588
+ MatButtonModule,
589
+ MatTooltipModule,
590
+ TFormInputStatusComponent,
591
+ PaginatedSelectionTableReactiveInput,
592
+ ], template: "<ng-container [formGroup]=\"formGroup()\">\r\n @if (inputConfig(); as inputConfig) {\r\n <mat-form-field [appearance]=\"inputConfig.appearance || 'fill'\" subscriptSizing=\"dynamic\">\r\n <mat-label>\r\n {{ inputConfig.label }}\r\n <lib-t-form-input-status [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\r\n </mat-label>\r\n\r\n <lib-paginated-selection-table-reactive-input\r\n [inputConfig]=\"inputConfig\"\r\n [disabled]=\"!!inputConfig.disabled\"\r\n [required]=\"inputConfig.required\"\r\n [canReload]=\"!!inputConfig.canReload?.canReload || false\"\r\n [optionsSearch]=\"inputConfig.optionsSearch\"\r\n (reloadData)=\"inputConfig.canReload.emit()\"\r\n [formControlName]=\"inputConfig.id\"\r\n ></lib-paginated-selection-table-reactive-input>\r\n\r\n @if (inputConfig.hintLabel || inputConfig.temporaryHint) {\r\n <mat-hint class=\"inputHint\">\r\n {{ inputConfig.temporaryHint || inputConfig.hintLabel }}\r\n </mat-hint>\r\n }\r\n\r\n <mat-error class=\"oneLineTextEllipsis\" matTooltipClass=\"errorToolTip\">{{ errorMessage() }}</mat-error>\r\n\r\n @if (inputConfig.prefixIcon) {\r\n <mat-icon matPrefix>{{ inputConfig.prefixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.suffixIcon && inputConfig.id !== 'password') {\r\n <mat-icon matSuffix>{{ inputConfig.suffixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.prefixText) {\r\n <span matPrefix style=\"padding: 0 12px;\">{{ inputConfig.prefixText }}</span>\r\n }\r\n @if (inputConfig.suffixText) {\r\n <span matSuffix style=\"padding: 0 12px;\">{{ inputConfig.suffixText }}</span>\r\n }\r\n\r\n @if (inputConfig.maxLength && formGroup()) {\r\n <mat-hint align=\"end\">\r\n {{ (formGroup().controls[inputConfig.id]?.value?.length || 0) + '/' + inputConfig.maxLength }}\r\n </mat-hint>\r\n }\r\n </mat-form-field>\r\n }\r\n</ng-container>\r\n", styles: ["mat-form-field{width:100%}mat-form-field .input-sync-button{display:none}mat-form-field:hover .input-sync-button{display:inline-block}\n"] }]
593
+ }], propDecorators: { inputConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputConfig", required: true }] }], formGroup: [{ type: i0.Input, args: [{ isSignal: true, alias: "formGroup", required: true }] }], reload: [{ type: i0.Output, args: ["reload"] }] } });
594
+
595
+ export { PaginatedSelectionTable };
596
+ //# sourceMappingURL=ngx-t-forms-paginated-selection-table-B7TyhJnh.mjs.map