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
@@ -1,555 +0,0 @@
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 i2$2 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, _ as _isEqual, ar as fuzzySearch, as as returnMappedPathValue, an as FormatDataPipe, a4 as getInputErrorMessage, a5 as TFormInputStatusComponent } from './ngx-t-forms-ngx-t-forms-Dt4iPwb-.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 i3$2 from '@angular/material/paginator';
19
- import { MatPaginator, MatPaginatorModule } from '@angular/material/paginator';
20
- import * as i2$3 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 i2$1 from '@angular/material/input';
28
- import { MatInputModule } from '@angular/material/input';
29
- import * as i3$3 from '@angular/material/checkbox';
30
- import { MatCheckboxModule } from '@angular/material/checkbox';
31
- import * as i3$4 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
- constructor() {
55
- super(inject(NgControl, { self: true, optional: true }), inject(ElementRef), customInputConfig);
56
- this.formBuilderFunctions = input(undefined, ...(ngDevMode ? [{ debugName: "formBuilderFunctions" }] : /* istanbul ignore next */ []));
57
- this.canReload = input(false, ...(ngDevMode ? [{ debugName: "canReload" }] : /* istanbul ignore next */ []));
58
- this.loading = input(false, ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
59
- this.searchPlaceholder = input('Search items…', ...(ngDevMode ? [{ debugName: "searchPlaceholder" }] : /* istanbul ignore next */ []));
60
- this.emptyMessage = input('No items found', ...(ngDevMode ? [{ debugName: "emptyMessage" }] : /* istanbul ignore next */ []));
61
- this.inputConfig = input(undefined, ...(ngDevMode ? [{ debugName: "inputConfig" }] : /* istanbul ignore next */ []));
62
- this.reloadData = output();
63
- this.searchFormControl = new FormControl('');
64
- this.dataSource = new MatTableDataSource([]);
65
- this.sort = viewChild(MatSort, ...(ngDevMode ? [{ debugName: "sort" }] : /* istanbul ignore next */ []));
66
- this.paginator = viewChild(MatPaginator, ...(ngDevMode ? [{ debugName: "paginator" }] : /* istanbul ignore next */ []));
67
- this.#cdr = inject(ChangeDetectorRef);
68
- this.#destroyRef = inject(DestroyRef);
69
- /** Cached inferred column types from data - recomputed only when data changes */
70
- this.#inferredColumnTypes = {};
71
- this.#lastInferredDataRef = null;
72
- this.#columnsCacheDirty = true;
73
- this.#cachedColumns = [];
74
- this.#cachedDisplayedColumns = [];
75
- this.#cachedSortActiveColumn = '';
76
- this.#loadScheduled = false;
77
- this.#destroyed = false;
78
- this.#connectTimeoutId = null;
79
- this.#setupFuzzyFilterPredicate();
80
- this.#setupSelectionFirstSort();
81
- this.#setupSearchSubscription();
82
- // Replaces the previous @Input setter side-effect: react to inputConfig changes.
83
- effect(() => {
84
- const value = this.inputConfig();
85
- if (_isEqual(this.#lastInputConfig, value))
86
- return;
87
- const prevMatOptions = this.#lastInputConfig?.matOptions?.options;
88
- const nextMatOptions = value?.matOptions?.options;
89
- const matOptionsChanged = !_isEqual(prevMatOptions, nextMatOptions);
90
- this.#lastInputConfig = value;
91
- this.#columnsCacheDirty = true;
92
- if (matOptionsChanged) {
93
- this.#scheduleLoadInputData();
94
- }
95
- });
96
- }
97
- get empty() {
98
- const n = this.value;
99
- if (n === null || n === undefined)
100
- return true;
101
- if (this.isMultiSelect) {
102
- return Array.isArray(n) && n.length === 0;
103
- }
104
- return n === '';
105
- }
106
- get shouldLabelFloat() {
107
- return true;
108
- }
109
- get getSelectOptions() {
110
- const cfg = this.inputConfig();
111
- if (!cfg?.matOptions)
112
- return [];
113
- if (Array.isArray(cfg.matOptions?.options)) {
114
- return cfg.matOptions?.options || [];
115
- }
116
- return [];
117
- }
118
- #ensureColumnsCache() {
119
- if (!this.#columnsCacheDirty)
120
- return;
121
- this.#columnsCacheDirty = false;
122
- this.#cachedColumns = this.#computeColumns();
123
- this.#cachedDisplayedColumns = this.#cachedColumns.map(c => c.key);
124
- this.#cachedSortActiveColumn = this.#cachedDisplayedColumns.find(c => c !== 'icons' && c !== 'actions') ?? '';
125
- }
126
- #computeColumns() {
127
- const cfg = this.inputConfig();
128
- const configColumns = cfg?.paginationSelectionConfig?.columns;
129
- const options = this.getSelectOptions;
130
- let dataColumns;
131
- if ((!configColumns || !Array.isArray(configColumns) || configColumns.length === 0) && Array.isArray(options)) {
132
- const allKeys = options.flatMap((option) => Object.keys((option ?? {})));
133
- const uniqueKeys = [...new Set(allKeys)].filter(k => k !== 'icons' && k !== 'actions');
134
- dataColumns = uniqueKeys.map(key => ({
135
- key,
136
- label: key,
137
- id: key,
138
- type: this.#inferredColumnTypes[key],
139
- }));
140
- }
141
- else {
142
- dataColumns = (configColumns || [])
143
- .filter((c) => typeof c.key === 'string' && c.key !== 'icons' && c.key !== 'actions')
144
- .map((c) => ({
145
- key: c.key,
146
- label: c.label ?? c.key ?? '',
147
- id: c.id ?? c.key,
148
- type: c.type ?? this.#inferredColumnTypes[c.key],
149
- }));
150
- }
151
- return [
152
- { key: 'icons', label: '', id: 'icons' },
153
- ...dataColumns,
154
- { key: 'actions', label: '', id: 'actions' },
155
- ];
156
- }
157
- get columns() {
158
- this.#ensureColumnsCache();
159
- return this.#cachedColumns;
160
- }
161
- get displayedColumns() {
162
- this.#ensureColumnsCache();
163
- return this.#cachedDisplayedColumns;
164
- }
165
- /** First sortable column for initial matSort state (excludes icons/actions) */
166
- get sortActiveColumn() {
167
- this.#ensureColumnsCache();
168
- return this.#cachedSortActiveColumn;
169
- }
170
- /** Defer data load until after current CD cycle completes (prevents ExpressionChanged errors
171
- * in parent FormSectionStepper when sectionFormErrorMessage changes as form validation updates). */
172
- #scheduleLoadInputData() {
173
- if (this.#loadScheduled)
174
- return;
175
- this.#loadScheduled = true;
176
- Promise.resolve().then(() => {
177
- this.#loadScheduled = false;
178
- if (!this.#destroyed)
179
- this.loadInputData();
180
- });
181
- }
182
- loadInputData() {
183
- const options = this.getSelectOptions;
184
- if (Array.isArray(options) && options.every(option => typeof option === 'object' && option !== null)) {
185
- // eslint-disable-next-line @typescript-eslint/no-explicit-any -- TODO(phase-4): widen `dataSource` to `Record<string, unknown>` once template column accessors are narrowed.
186
- this.dataSource.data = options;
187
- this.#inferColumnTypesFromData();
188
- this.#attachSortAndPaginatorAfterViewReady();
189
- this.#cdr.markForCheck();
190
- }
191
- else {
192
- this.dataSource.data = [];
193
- this.#clearInferredCache();
194
- this.errorMessage = 'Invalid options format';
195
- this.#cdr.markForCheck();
196
- }
197
- }
198
- /** Connects sort and paginator to dataSource. Deferred because table/paginator are inside @if. */
199
- #attachSortAndPaginatorAfterViewReady() {
200
- if (this.#connectTimeoutId != null)
201
- return;
202
- this.#connectTimeoutId = setTimeout(() => {
203
- this.#connectTimeoutId = null;
204
- const sortRef = this.sort();
205
- const paginatorRef = this.paginator();
206
- if (sortRef && this.dataSource.sort !== sortRef) {
207
- this.dataSource.sort = sortRef;
208
- }
209
- if (paginatorRef && this.dataSource.paginator !== paginatorRef) {
210
- this.dataSource.paginator = paginatorRef;
211
- }
212
- // Avoid markForCheck() here - it triggers full-tree CD that re-evaluates parent's
213
- // sectionFormErrorMessage mid-cycle, causing ExpressionChangedAfterItHasBeenCheckedError.
214
- // MatTableDataSource propagates sort/paginator changes; view updates on next CD.
215
- }, 0);
216
- }
217
- /** Clear cached references to prevent memory leaks. */
218
- #clearInferredCache() {
219
- this.#inferredColumnTypes = {};
220
- this.#lastInferredDataRef = null;
221
- this.#columnsCacheDirty = true;
222
- }
223
- /**
224
- * Overrides MatTableDataSource.sortData so selected rows are always rendered
225
- * first, before any sort-ordered unselected rows. This makes selections visible
226
- * on page 1 regardless of how the table is sorted.
227
- */
228
- #setupSelectionFirstSort() {
229
- this.dataSource.sortData = (data, sort) => {
230
- const selected = [];
231
- const unselected = [];
232
- for (const row of data) {
233
- (this.isRowSelected(row) ? selected : unselected).push(row);
234
- }
235
- if (!sort.active || !sort.direction) {
236
- return [...selected, ...unselected];
237
- }
238
- const key = sort.active;
239
- const dir = sort.direction === 'asc' ? 1 : -1;
240
- const colType = this.#inferredColumnTypes[key];
241
- unselected.sort((a, b) => {
242
- const va = a[key];
243
- const vb = b[key];
244
- if (va == null && vb == null)
245
- return 0;
246
- if (va == null)
247
- return dir;
248
- if (vb == null)
249
- return -dir;
250
- return dir * this.#compareColValues(va, vb, colType);
251
- });
252
- return [...selected, ...unselected];
253
- };
254
- }
255
- /** Type-aware value comparator used by sortData. Returns negative/zero/positive like Array.sort. */
256
- #compareColValues(va, vb, colType) {
257
- // Explicit number columns: parse to float so "9" < "10" (not lexicographic)
258
- if (colType === DocumentLitsLabelConfigInterfaceValueType.number) {
259
- const na = parseFloat(String(va));
260
- const nb = parseFloat(String(vb));
261
- if (!Number.isNaN(na) && !Number.isNaN(nb))
262
- return na - nb;
263
- }
264
- // Date columns: compare as timestamps
265
- if (colType === DocumentLitsLabelConfigInterfaceValueType.date) {
266
- const ta = new Date(va).getTime();
267
- const tb = new Date(vb).getTime();
268
- if (!Number.isNaN(ta) && !Number.isNaN(tb))
269
- return ta - tb;
270
- }
271
- // Native JS numbers (regardless of inferred type)
272
- if (typeof va === 'number' && typeof vb === 'number')
273
- return va - vb;
274
- // Native JS Date instances
275
- if (va instanceof Date && vb instanceof Date)
276
- return va.getTime() - vb.getTime();
277
- // Everything else: locale-aware string sort with numeric collation ("9" < "10")
278
- const sa = typeof va === 'string' ? va : String(va);
279
- const sb = typeof vb === 'string' ? vb : String(vb);
280
- return sa.localeCompare(sb, undefined, { numeric: true, sensitivity: 'base' });
281
- }
282
- /** Re-sorts the dataSource pipeline so selected rows bubble to the top, then navigates to page 1. */
283
- #bringSelectionToFront() {
284
- if (this.dataSource.data.length === 0)
285
- return;
286
- // Shallow copy triggers MatTableDataSource to re-run filter → sortData → paginator.
287
- this.dataSource.data = [...this.dataSource.data];
288
- this.dataSource.paginator?.firstPage();
289
- }
290
- /** Filter predicate using fuzzy search on all stringifiable row values. */
291
- #setupFuzzyFilterPredicate() {
292
- this.dataSource.filterPredicate = (row, filter) => {
293
- const term = filter?.trim();
294
- if (!term)
295
- return true;
296
- if (typeof row !== 'object' || row === null)
297
- return false;
298
- return Object.values(row).some((value) => {
299
- if (value == null)
300
- return false;
301
- const text = typeof value === 'string' ? value : String(value);
302
- return fuzzySearch(term, text);
303
- });
304
- };
305
- }
306
- #setupSearchSubscription() {
307
- this.searchFormControl.valueChanges.pipe(debounceTime(300), map((term) => term?.trim() ?? ''), distinctUntilChanged((a, b) => a === b), takeUntilDestroyed(this.#destroyRef)).subscribe((filter) => {
308
- this.dataSource.filter = filter;
309
- this.dataSource.paginator?.firstPage();
310
- this.#cdr.markForCheck();
311
- });
312
- }
313
- clearSearch() {
314
- this.searchFormControl.setValue('');
315
- }
316
- /**
317
- * Infers column types from data source by sampling first N rows.
318
- * Cached per data reference to avoid recomputation on every change detection.
319
- */
320
- #inferColumnTypesFromData() {
321
- const data = this.dataSource.data;
322
- if (data === this.#lastInferredDataRef)
323
- return;
324
- if (data.length === 0) {
325
- this.#clearInferredCache();
326
- return;
327
- }
328
- this.#lastInferredDataRef = data;
329
- const sampleSize = Math.min(TYPE_INFER_SAMPLE_SIZE, data.length);
330
- const keys = Object.keys(data[0] ?? {});
331
- for (const key of keys) {
332
- if (key === 'icons' || key === 'actions')
333
- continue;
334
- let inferred = undefined;
335
- for (let i = 0; i < sampleSize; i++) {
336
- const v = data[i]?.[key];
337
- if (v === null || v === undefined)
338
- continue;
339
- inferred = this.#inferValueType(v);
340
- break;
341
- }
342
- this.#inferredColumnTypes[key] = inferred;
343
- }
344
- this.#columnsCacheDirty = true;
345
- }
346
- /** Lightweight single-value type inference for formatData pipe compatibility */
347
- #inferValueType(v) {
348
- if (typeof v === 'boolean')
349
- return InputDataTypes.Boolean;
350
- if (Array.isArray(v))
351
- return InputDataTypes.Array;
352
- if (typeof v === 'object' && v !== null) {
353
- return v instanceof Date ? DocumentLitsLabelConfigInterfaceValueType.date : InputDataTypes.Object;
354
- }
355
- if (typeof v === 'number' && !Number.isNaN(v))
356
- return DocumentLitsLabelConfigInterfaceValueType.number;
357
- if (typeof v === 'string') {
358
- const trimmed = v.trim();
359
- if (trimmed === '')
360
- return undefined;
361
- const num = Number(trimmed);
362
- if (!Number.isNaN(num))
363
- return DocumentLitsLabelConfigInterfaceValueType.number;
364
- const d = new Date(v);
365
- if (!Number.isNaN(d.getTime()))
366
- return DocumentLitsLabelConfigInterfaceValueType.date;
367
- }
368
- return undefined;
369
- }
370
- get isMultiSelect() {
371
- return this.inputConfig()?.allowMultipleSelection ?? false;
372
- }
373
- get primaryIdentifierKey() {
374
- return this.inputConfig()?.paginationSelectionConfig?.primaryIdentifierKey;
375
- }
376
- /** Returns the row identifier: uses returnMappedPathValue when primaryIdentifierKey is set, else fallback to _id/id. */
377
- getRowId(row) {
378
- const pk = this.primaryIdentifierKey;
379
- if (pk != null && pk !== '') {
380
- return returnMappedPathValue(pk, row);
381
- }
382
- return row['_id'] ?? row['id'];
383
- }
384
- /** Builds a minimal row object from an id for fallback when the row is not in dataSource (e.g. from radio value). */
385
- #buildFallbackRowFromId(id) {
386
- const pk = this.primaryIdentifierKey;
387
- if (!pk || !Array.isArray(pk) || pk.length === 0) {
388
- return { _id: id, id };
389
- }
390
- const obj = {};
391
- let current = obj;
392
- for (let i = 0; i < pk.length; i++) {
393
- const node = pk[i];
394
- const key = typeof node === 'object' && node != null && node.key != null ? String(node.key) : String(node);
395
- const isLast = i === pk.length - 1;
396
- if (isLast) {
397
- current[key] = id;
398
- }
399
- else {
400
- current[key] = {};
401
- current = current[key];
402
- }
403
- }
404
- return obj;
405
- }
406
- getSelectedIds() {
407
- const v = this.value;
408
- return Array.isArray(v) ? v : (v ? [v] : []);
409
- }
410
- /** Returns a primitive ID suitable for `[value]` on mat-radio-group, normalizing away object preset values. */
411
- getNormalizedSingleValue() {
412
- const v = this.value;
413
- if (v == null || Array.isArray(v))
414
- return v;
415
- if (typeof v === 'object')
416
- return this.getRowId(v);
417
- return v;
418
- }
419
- isRowSelected(row) {
420
- const rowId = this.getRowId(row);
421
- if (rowId == null)
422
- return false;
423
- return this.getSelectedIds().some(v => {
424
- if (v == null)
425
- return false;
426
- if (v === rowId)
427
- return true;
428
- // Preset values may arrive as full row objects instead of bare IDs.
429
- // Extract the ID from the stored object so the comparison still works.
430
- if (typeof v === 'object') {
431
- return this.getRowId(v) == rowId;
432
- }
433
- // Handle string/number type coercion (e.g. "123" vs 123).
434
- return String(v) === String(rowId);
435
- });
436
- }
437
- onRadioChange(event) {
438
- const id = event?.value;
439
- if (id == null)
440
- return;
441
- const row = this.dataSource.data.find((r) => this.getRowId(r) == id);
442
- this.selectRow(row ?? this.#buildFallbackRowFromId(id));
443
- }
444
- /** Handle click on radio: if already selected, deselect (radios don't fire change when re-clicked). */
445
- onRadioClick(row, event) {
446
- if (this.isRowSelected(row)) {
447
- event.preventDefault();
448
- event.stopPropagation();
449
- this.selectRow(row);
450
- }
451
- }
452
- selectRow(row) {
453
- const id = this.getRowId(row);
454
- if (this.isMultiSelect) {
455
- const ids = [...this.getSelectedIds()];
456
- const idx = ids.indexOf(id);
457
- if (idx >= 0) {
458
- ids.splice(idx, 1);
459
- }
460
- else {
461
- ids.push(id);
462
- }
463
- this.value = ids.length ? ids : null;
464
- this.onChange(this.value);
465
- this.onTouched();
466
- this.#bringSelectionToFront();
467
- this.#cdr.markForCheck();
468
- return;
469
- }
470
- const isDeselecting = id === this.value;
471
- this.value = isDeselecting ? undefined : id;
472
- this.onChange(this.value);
473
- this.onTouched();
474
- this.#bringSelectionToFront();
475
- this.#cdr.markForCheck();
476
- }
477
- writeValue(value) {
478
- super.writeValue(value);
479
- this.#bringSelectionToFront();
480
- this.#cdr.markForCheck();
481
- }
482
- ngAfterViewInit() {
483
- this.#attachSortAndPaginatorAfterViewReady();
484
- }
485
- ngOnDestroy() {
486
- this.#destroyed = true;
487
- this.#loadScheduled = false;
488
- if (this.#connectTimeoutId != null) {
489
- clearTimeout(this.#connectTimeoutId);
490
- this.#connectTimeoutId = null;
491
- }
492
- this.#clearInferredCache();
493
- this.dataSource.data = [];
494
- super.ngOnDestroy();
495
- }
496
- reload() {
497
- this.reloadData.emit();
498
- }
499
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: PaginatedSelectionTableReactiveInput, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
500
- 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 } }, 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 (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 Sort or use pagination 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 <mat-icon>folder_open</mat-icon>\r\n <span>{{ emptyMessage() }}</span>\r\n @if (canReload()) {\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\"\r\n matTooltipPosition=\"above\">\r\n {{ row[col.key] | formatData:col.type }}\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\"\r\n matTooltipPosition=\"above\">\r\n {{ row[col.key] | formatData:col.type }}\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-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: i2$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: i2$2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2$2.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: i2$3.MatSort, selector: "[matSort]", inputs: ["matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear", "matSortDisabled"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { kind: "component", type: i2$3.MatSortHeader, selector: "[mat-sort-header]", inputs: ["mat-sort-header", "arrowPosition", "start", "disabled", "sortActionDescription", "disableClear"], exportAs: ["matSortHeader"] }, { kind: "ngmodule", type: MatPaginatorModule }, { kind: "component", type: i3$2.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: i3$3.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$4.MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "component", type: i3$4.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 }); }
501
- }
502
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: PaginatedSelectionTableReactiveInput, decorators: [{
503
- type: Component,
504
- args: [{ selector: 'lib-paginated-selection-table-reactive-input', imports: [
505
- ReactiveFormsModule,
506
- FormatDataPipe,
507
- MatCardModule,
508
- MatIconModule,
509
- MatProgressSpinnerModule,
510
- MatFormFieldModule,
511
- MatInputModule,
512
- MatButtonModule,
513
- MatTooltipModule,
514
- MatTableModule,
515
- MatSortModule,
516
- MatPaginatorModule,
517
- MatCheckboxModule,
518
- MatRadioModule,
519
- ], changeDetection: ChangeDetectionStrategy.OnPush, host: {
520
- '[class.floating]': 'shouldLabelFloat',
521
- '[id]': 'id',
522
- }, 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 (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 Sort or use pagination 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 <mat-icon>folder_open</mat-icon>\r\n <span>{{ emptyMessage() }}</span>\r\n @if (canReload()) {\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\"\r\n matTooltipPosition=\"above\">\r\n {{ row[col.key] | formatData:col.type }}\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\"\r\n matTooltipPosition=\"above\">\r\n {{ row[col.key] | formatData:col.type }}\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-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"] }]
523
- }], 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 }] }], 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 }] }] } });
524
-
525
- /** Wraps a paginated selection-table control inside a `mat-form-field`. */
526
- class PaginatedSelectionTable {
527
- constructor() {
528
- this.inputConfig = input.required(...(ngDevMode ? [{ debugName: "inputConfig" }] : /* istanbul ignore next */ []));
529
- this.formGroup = input.required(...(ngDevMode ? [{ debugName: "formGroup" }] : /* istanbul ignore next */ []));
530
- this.reload = output();
531
- this.errorMessage = computed(() => getInputErrorMessage(this.inputConfig(), this.formGroup()), ...(ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []));
532
- this.errorStateMatcher = {
533
- isErrorState(control, _form) {
534
- return !!(control && control.invalid && (control.dirty || control.touched));
535
- },
536
- };
537
- }
538
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: PaginatedSelectionTable, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
539
- 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 (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=\"top: 0\">{{ inputConfig.prefixText }}</span>\r\n }\r\n @if (inputConfig.suffixText) {\r\n <span matSuffix style=\"padding-left: 5px\">{{ 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"], outputs: ["reloadData"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
540
- }
541
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: PaginatedSelectionTable, decorators: [{
542
- type: Component,
543
- args: [{ selector: 'lib-paginated-selection-table', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
544
- ReactiveFormsModule,
545
- MatFormFieldModule,
546
- MatIconModule,
547
- MatButtonModule,
548
- MatTooltipModule,
549
- TFormInputStatusComponent,
550
- PaginatedSelectionTableReactiveInput,
551
- ], 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 (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=\"top: 0\">{{ inputConfig.prefixText }}</span>\r\n }\r\n @if (inputConfig.suffixText) {\r\n <span matSuffix style=\"padding-left: 5px\">{{ 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"] }]
552
- }], 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"] }] } });
553
-
554
- export { PaginatedSelectionTable };
555
- //# sourceMappingURL=ngx-t-forms-paginated-selection-table-lMTD1N6B.mjs.map