ngx-t-forms 3.1.8 → 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 (137) hide show
  1. package/fesm2022/{ngx-t-forms-api-endpoint-config.component-B4a-L4Eq.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-DqRunUz4.mjs → ngx-t-forms-auto-complete-input-element.component-B8eluIrh.mjs} +8 -8
  4. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-DqRunUz4.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-t8bTUgZ1.mjs → ngx-t-forms-basic-input-input-element.component-SSLXyCz9.mjs} +6 -6
  8. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-t8bTUgZ1.mjs.map → ngx-t-forms-basic-input-input-element.component-SSLXyCz9.mjs.map} +1 -1
  9. package/fesm2022/{ngx-t-forms-calculated-field-rules.component-PcjMdAKu.mjs → ngx-t-forms-calculated-field-rules.component-Cn_rxXMX.mjs} +7 -7
  10. package/fesm2022/{ngx-t-forms-calculated-field-rules.component-PcjMdAKu.mjs.map → ngx-t-forms-calculated-field-rules.component-Cn_rxXMX.mjs.map} +1 -1
  11. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-Ca4rim_J.mjs → ngx-t-forms-chip-options-creator-editor.component-CGm5tgsp.mjs} +2 -2
  12. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-Ca4rim_J.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-Di7p76_n.mjs → ngx-t-forms-conditional-display-config.component-DIMIWTKj.mjs} +2 -2
  16. package/fesm2022/{ngx-t-forms-conditional-display-config.component-Di7p76_n.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-CXMmDwKS.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-DKb3E9gA.mjs} +4 -4
  18. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-CXMmDwKS.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-DioXvLi3.mjs → ngx-t-forms-data-source-picker.component-BG_sr5VH.mjs} +8 -8
  20. package/fesm2022/{ngx-t-forms-data-source-picker.component-DioXvLi3.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-h0S6qZDT.mjs → ngx-t-forms-date-picker-input-element.component-vUlUuzJ0.mjs} +8 -8
  22. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-h0S6qZDT.mjs.map → ngx-t-forms-date-picker-input-element.component-vUlUuzJ0.mjs.map} +1 -1
  23. package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-8c1ErbgP.mjs → ngx-t-forms-date-range-picker-input-element.component-YVE_s-7Y.mjs} +5 -5
  24. package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-8c1ErbgP.mjs.map → ngx-t-forms-date-range-picker-input-element.component-YVE_s-7Y.mjs.map} +1 -1
  25. package/fesm2022/{ngx-t-forms-date-time-picker-input-element.component-BgjGlXeq.mjs → ngx-t-forms-date-time-picker-input-element.component-BlOS8NdF.mjs} +8 -8
  26. package/fesm2022/{ngx-t-forms-date-time-picker-input-element.component-BgjGlXeq.mjs.map → ngx-t-forms-date-time-picker-input-element.component-BlOS8NdF.mjs.map} +1 -1
  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-DYpsBHxT.mjs → ngx-t-forms-document-picker.component-DOYyRgh4.mjs} +41 -11
  30. package/fesm2022/{ngx-t-forms-document-picker.component-DYpsBHxT.mjs.map → ngx-t-forms-document-picker.component-DOYyRgh4.mjs.map} +1 -1
  31. package/fesm2022/{ngx-t-forms-editor-input-element.component-CzNSb79n.mjs → ngx-t-forms-editor-input-element.component-BvZPNjQX.mjs} +5 -5
  32. package/fesm2022/{ngx-t-forms-editor-input-element.component-CzNSb79n.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-FPxHxAwF.mjs → ngx-t-forms-file-upload-input-element.component-CONELqoi.mjs} +8 -8
  34. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-FPxHxAwF.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-B3ES53R-.mjs → ngx-t-forms-form-input-selector.component-Bdkuzw0R.mjs} +2 -2
  38. package/fesm2022/{ngx-t-forms-form-input-selector.component-B3ES53R-.mjs.map → ngx-t-forms-form-input-selector.component-Bdkuzw0R.mjs.map} +1 -1
  39. package/fesm2022/{ngx-t-forms-form-json-view.component-Cu_ZEw1V.mjs → ngx-t-forms-form-json-view.component-CDcbgWgN.mjs} +2 -2
  40. package/fesm2022/{ngx-t-forms-form-json-view.component-Cu_ZEw1V.mjs.map → ngx-t-forms-form-json-view.component-CDcbgWgN.mjs.map} +1 -1
  41. package/fesm2022/{ngx-t-forms-form-section-stepper.component-DmTGnRgi.mjs → ngx-t-forms-form-section-stepper.component-CqLSI8zP.mjs} +7 -7
  42. package/fesm2022/{ngx-t-forms-form-section-stepper.component-DmTGnRgi.mjs.map → ngx-t-forms-form-section-stepper.component-CqLSI8zP.mjs.map} +1 -1
  43. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-6m2BM9e9.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-CCJT5ep1.mjs → ngx-t-forms-forms-native-date-adapter-h6fClNMS.mjs} +2 -2
  46. package/fesm2022/{ngx-t-forms-forms-native-date-adapter-CCJT5ep1.mjs.map → ngx-t-forms-forms-native-date-adapter-h6fClNMS.mjs.map} +1 -1
  47. package/fesm2022/{ngx-t-forms-geo-location.component-DgXSaH0t.mjs → ngx-t-forms-geo-location.component-DA3ATrvw.mjs} +7 -7
  48. package/fesm2022/{ngx-t-forms-geo-location.component-DgXSaH0t.mjs.map → ngx-t-forms-geo-location.component-DA3ATrvw.mjs.map} +1 -1
  49. package/fesm2022/{ngx-t-forms-header-template-editor.component-NJLm6jkA.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-iqPS9cPK.mjs → ngx-t-forms-image-capture-input-element.component-C9oz_ZjA.mjs} +7 -7
  52. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-iqPS9cPK.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-BOy_3JqU.mjs → ngx-t-forms-input-custom.component-CqIr5wpy.mjs} +91 -25
  56. package/fesm2022/ngx-t-forms-input-custom.component-CqIr5wpy.mjs.map +1 -0
  57. package/fesm2022/{ngx-t-forms-input-editor.component-IUrZNmA5.mjs → ngx-t-forms-input-editor.component-DU2sgo4i.mjs} +9 -9
  58. package/fesm2022/{ngx-t-forms-input-editor.component-IUrZNmA5.mjs.map → ngx-t-forms-input-editor.component-DU2sgo4i.mjs.map} +1 -1
  59. package/fesm2022/{ngx-t-forms-map-mat-options-keys-CtTAw9jk.mjs → ngx-t-forms-map-mat-options-keys-WfFq_0tS.mjs} +2 -2
  60. package/fesm2022/{ngx-t-forms-map-mat-options-keys-CtTAw9jk.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-C9bxVpQ1.mjs → ngx-t-forms-mat-chip-list-editor.component-CKnvqeix.mjs} +2 -2
  62. package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-C9bxVpQ1.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-BpiCchqY.mjs → ngx-t-forms-missing-form-configs.component-B5dDbmpj.mjs} +4 -4
  64. package/fesm2022/{ngx-t-forms-missing-form-configs.component-BpiCchqY.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-soUwIbVA.mjs → ngx-t-forms-mscoa-config.component-BtLd7F2n.mjs} +10 -10
  68. package/fesm2022/{ngx-t-forms-mscoa-config.component-soUwIbVA.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--3DvQm1K.mjs → ngx-t-forms-mscoa-segment-config.component-DrzpixbK.mjs} +9 -9
  72. package/fesm2022/{ngx-t-forms-mscoa-segment-config.component--3DvQm1K.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-CaVyRedJ.mjs → ngx-t-forms-ngx-t-forms-C1kZpYIM.mjs} +9303 -2202
  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-CVj-G4MC.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-BMyZKOXv.mjs → ngx-t-forms-pipeline-generator.component-DpqipW6G.mjs} +15 -15
  84. package/fesm2022/{ngx-t-forms-pipeline-generator.component-BMyZKOXv.mjs.map → ngx-t-forms-pipeline-generator.component-DpqipW6G.mjs.map} +1 -1
  85. package/fesm2022/{ngx-t-forms-quill-input.component-oUnmMDGi.mjs → ngx-t-forms-quill-input.component-x9CHGOJy.mjs} +2 -2
  86. package/fesm2022/{ngx-t-forms-quill-input.component-oUnmMDGi.mjs.map → ngx-t-forms-quill-input.component-x9CHGOJy.mjs.map} +1 -1
  87. package/fesm2022/{ngx-t-forms-record-list-manager.component-CdQU6loA.mjs → ngx-t-forms-record-list-manager.component-BGg86NER.mjs} +7 -7
  88. package/fesm2022/{ngx-t-forms-record-list-manager.component-CdQU6loA.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-B5w1Lvfo.mjs → ngx-t-forms-rest-api-call-setup.component-B4LzPwxg.mjs} +5 -5
  92. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-B5w1Lvfo.mjs.map → ngx-t-forms-rest-api-call-setup.component-B4LzPwxg.mjs.map} +1 -1
  93. package/fesm2022/{ngx-t-forms-section-report.component-CocLNrN5.mjs → ngx-t-forms-section-report.component-BS2CV_xl.mjs} +4 -4
  94. package/fesm2022/{ngx-t-forms-section-report.component-CocLNrN5.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-CBdC0WCz.mjs → ngx-t-forms-selection-options-editor.component-B6sYvtcj.mjs} +6 -6
  98. package/fesm2022/{ngx-t-forms-selection-options-editor.component-CBdC0WCz.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-GXiLEsTp.mjs → ngx-t-forms-textarea-input-element.component-ri0r0ujE.mjs} +77 -11
  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-BMzPBtY_.mjs → ngx-t-forms-token-text-input.component-BWmoGQfi.mjs} +4 -4
  106. package/fesm2022/{ngx-t-forms-token-text-input.component-BMzPBtY_.mjs.map → ngx-t-forms-token-text-input.component-BWmoGQfi.mjs.map} +1 -1
  107. package/fesm2022/{ngx-t-forms-validators-config.component-DWDBsV6a.mjs → ngx-t-forms-validators-config.component-DEm9M5s9.mjs} +5 -5
  108. package/fesm2022/{ngx-t-forms-validators-config.component-DWDBsV6a.mjs.map → ngx-t-forms-validators-config.component-DEm9M5s9.mjs.map} +1 -1
  109. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-DxObFakZ.mjs → ngx-t-forms-workflow-adjudication.component-BOC9Z40E.mjs} +28 -26
  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 +2370 -38
  114. package/fesm2022/ngx-t-forms-api-endpoint-config.component-B4a-L4Eq.mjs.map +0 -1
  115. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-BhVM8PFR.mjs +0 -373
  116. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-BhVM8PFR.mjs.map +0 -1
  117. package/fesm2022/ngx-t-forms-forms-builder-menu.component-6m2BM9e9.mjs.map +0 -1
  118. package/fesm2022/ngx-t-forms-header-template-editor.component-NJLm6jkA.mjs.map +0 -1
  119. package/fesm2022/ngx-t-forms-index-zLon09cE.mjs +0 -2
  120. package/fesm2022/ngx-t-forms-index-zLon09cE.mjs.map +0 -1
  121. package/fesm2022/ngx-t-forms-input-custom.component-BOy_3JqU.mjs.map +0 -1
  122. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-CjUf0zTA.mjs +0 -38
  123. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-CjUf0zTA.mjs.map +0 -1
  124. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-BZxpJRxJ.mjs +0 -2472
  125. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-BZxpJRxJ.mjs.map +0 -1
  126. package/fesm2022/ngx-t-forms-ngx-t-forms-CaVyRedJ.mjs.map +0 -1
  127. package/fesm2022/ngx-t-forms-paginated-selection-table-DzZE-Zde.mjs +0 -557
  128. package/fesm2022/ngx-t-forms-paginated-selection-table-DzZE-Zde.mjs.map +0 -1
  129. package/fesm2022/ngx-t-forms-payload-template-editor.component-CVj-G4MC.mjs.map +0 -1
  130. package/fesm2022/ngx-t-forms-required-inputs.component-BtfEsmva.mjs +0 -271
  131. package/fesm2022/ngx-t-forms-required-inputs.component-BtfEsmva.mjs.map +0 -1
  132. package/fesm2022/ngx-t-forms-select-input-element.component-B03O4cAK.mjs +0 -160
  133. package/fesm2022/ngx-t-forms-select-input-element.component-B03O4cAK.mjs.map +0 -1
  134. package/fesm2022/ngx-t-forms-textarea-input-element.component-GXiLEsTp.mjs.map +0 -1
  135. package/fesm2022/ngx-t-forms-toggle-input-element.component-WErP0SsA.mjs +0 -93
  136. package/fesm2022/ngx-t-forms-toggle-input-element.component-WErP0SsA.mjs.map +0 -1
  137. package/fesm2022/ngx-t-forms-workflow-adjudication.component-DxObFakZ.mjs.map +0 -1
@@ -1,557 +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, a8 as injectFormsLocalization, _ as _isEqual, aG as fuzzySearch, aH as returnMappedPathValue, aA as FormatDataPipe, a4 as getInputErrorMessage, a5 as TFormInputStatusComponent } from './ngx-t-forms-ngx-t-forms-CaVyRedJ.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
- /** The consumer's localization, handed to `formatData` so a cell follows the organisation. */
70
- this.l10n = injectFormsLocalization();
71
- /** Cached inferred column types from data - recomputed only when data changes */
72
- this.#inferredColumnTypes = {};
73
- this.#lastInferredDataRef = null;
74
- this.#columnsCacheDirty = true;
75
- this.#cachedColumns = [];
76
- this.#cachedDisplayedColumns = [];
77
- this.#cachedSortActiveColumn = '';
78
- this.#loadScheduled = false;
79
- this.#destroyed = false;
80
- this.#connectTimeoutId = null;
81
- this.#setupFuzzyFilterPredicate();
82
- this.#setupSelectionFirstSort();
83
- this.#setupSearchSubscription();
84
- // Replaces the previous @Input setter side-effect: react to inputConfig changes.
85
- effect(() => {
86
- const value = this.inputConfig();
87
- if (_isEqual(this.#lastInputConfig, value))
88
- return;
89
- const prevMatOptions = this.#lastInputConfig?.matOptions?.options;
90
- const nextMatOptions = value?.matOptions?.options;
91
- const matOptionsChanged = !_isEqual(prevMatOptions, nextMatOptions);
92
- this.#lastInputConfig = value;
93
- this.#columnsCacheDirty = true;
94
- if (matOptionsChanged) {
95
- this.#scheduleLoadInputData();
96
- }
97
- });
98
- }
99
- get empty() {
100
- const n = this.value;
101
- if (n === null || n === undefined)
102
- return true;
103
- if (this.isMultiSelect) {
104
- return Array.isArray(n) && n.length === 0;
105
- }
106
- return n === '';
107
- }
108
- get shouldLabelFloat() {
109
- return true;
110
- }
111
- get getSelectOptions() {
112
- const cfg = this.inputConfig();
113
- if (!cfg?.matOptions)
114
- return [];
115
- if (Array.isArray(cfg.matOptions?.options)) {
116
- return cfg.matOptions?.options || [];
117
- }
118
- return [];
119
- }
120
- #ensureColumnsCache() {
121
- if (!this.#columnsCacheDirty)
122
- return;
123
- this.#columnsCacheDirty = false;
124
- this.#cachedColumns = this.#computeColumns();
125
- this.#cachedDisplayedColumns = this.#cachedColumns.map(c => c.key);
126
- this.#cachedSortActiveColumn = this.#cachedDisplayedColumns.find(c => c !== 'icons' && c !== 'actions') ?? '';
127
- }
128
- #computeColumns() {
129
- const cfg = this.inputConfig();
130
- const configColumns = cfg?.paginationSelectionConfig?.columns;
131
- const options = this.getSelectOptions;
132
- let dataColumns;
133
- if ((!configColumns || !Array.isArray(configColumns) || configColumns.length === 0) && Array.isArray(options)) {
134
- const allKeys = options.flatMap((option) => Object.keys((option ?? {})));
135
- const uniqueKeys = [...new Set(allKeys)].filter(k => k !== 'icons' && k !== 'actions');
136
- dataColumns = uniqueKeys.map(key => ({
137
- key,
138
- label: key,
139
- id: key,
140
- type: this.#inferredColumnTypes[key],
141
- }));
142
- }
143
- else {
144
- dataColumns = (configColumns || [])
145
- .filter((c) => typeof c.key === 'string' && c.key !== 'icons' && c.key !== 'actions')
146
- .map((c) => ({
147
- key: c.key,
148
- label: c.label ?? c.key ?? '',
149
- id: c.id ?? c.key,
150
- type: c.type ?? this.#inferredColumnTypes[c.key],
151
- }));
152
- }
153
- return [
154
- { key: 'icons', label: '', id: 'icons' },
155
- ...dataColumns,
156
- { key: 'actions', label: '', id: 'actions' },
157
- ];
158
- }
159
- get columns() {
160
- this.#ensureColumnsCache();
161
- return this.#cachedColumns;
162
- }
163
- get displayedColumns() {
164
- this.#ensureColumnsCache();
165
- return this.#cachedDisplayedColumns;
166
- }
167
- /** First sortable column for initial matSort state (excludes icons/actions) */
168
- get sortActiveColumn() {
169
- this.#ensureColumnsCache();
170
- return this.#cachedSortActiveColumn;
171
- }
172
- /** Defer data load until after current CD cycle completes (prevents ExpressionChanged errors
173
- * in parent FormSectionStepper when sectionFormErrorMessage changes as form validation updates). */
174
- #scheduleLoadInputData() {
175
- if (this.#loadScheduled)
176
- return;
177
- this.#loadScheduled = true;
178
- Promise.resolve().then(() => {
179
- this.#loadScheduled = false;
180
- if (!this.#destroyed)
181
- this.loadInputData();
182
- });
183
- }
184
- loadInputData() {
185
- const options = this.getSelectOptions;
186
- if (Array.isArray(options) && options.every(option => typeof option === 'object' && option !== null)) {
187
- // eslint-disable-next-line @typescript-eslint/no-explicit-any -- TODO(phase-4): widen `dataSource` to `Record<string, unknown>` once template column accessors are narrowed.
188
- this.dataSource.data = options;
189
- this.#inferColumnTypesFromData();
190
- this.#attachSortAndPaginatorAfterViewReady();
191
- this.#cdr.markForCheck();
192
- }
193
- else {
194
- this.dataSource.data = [];
195
- this.#clearInferredCache();
196
- this.errorMessage = 'Invalid options format';
197
- this.#cdr.markForCheck();
198
- }
199
- }
200
- /** Connects sort and paginator to dataSource. Deferred because table/paginator are inside @if. */
201
- #attachSortAndPaginatorAfterViewReady() {
202
- if (this.#connectTimeoutId != null)
203
- return;
204
- this.#connectTimeoutId = setTimeout(() => {
205
- this.#connectTimeoutId = null;
206
- const sortRef = this.sort();
207
- const paginatorRef = this.paginator();
208
- if (sortRef && this.dataSource.sort !== sortRef) {
209
- this.dataSource.sort = sortRef;
210
- }
211
- if (paginatorRef && this.dataSource.paginator !== paginatorRef) {
212
- this.dataSource.paginator = paginatorRef;
213
- }
214
- // Avoid markForCheck() here - it triggers full-tree CD that re-evaluates parent's
215
- // sectionFormErrorMessage mid-cycle, causing ExpressionChangedAfterItHasBeenCheckedError.
216
- // MatTableDataSource propagates sort/paginator changes; view updates on next CD.
217
- }, 0);
218
- }
219
- /** Clear cached references to prevent memory leaks. */
220
- #clearInferredCache() {
221
- this.#inferredColumnTypes = {};
222
- this.#lastInferredDataRef = null;
223
- this.#columnsCacheDirty = true;
224
- }
225
- /**
226
- * Overrides MatTableDataSource.sortData so selected rows are always rendered
227
- * first, before any sort-ordered unselected rows. This makes selections visible
228
- * on page 1 regardless of how the table is sorted.
229
- */
230
- #setupSelectionFirstSort() {
231
- this.dataSource.sortData = (data, sort) => {
232
- const selected = [];
233
- const unselected = [];
234
- for (const row of data) {
235
- (this.isRowSelected(row) ? selected : unselected).push(row);
236
- }
237
- if (!sort.active || !sort.direction) {
238
- return [...selected, ...unselected];
239
- }
240
- const key = sort.active;
241
- const dir = sort.direction === 'asc' ? 1 : -1;
242
- const colType = this.#inferredColumnTypes[key];
243
- unselected.sort((a, b) => {
244
- const va = a[key];
245
- const vb = b[key];
246
- if (va == null && vb == null)
247
- return 0;
248
- if (va == null)
249
- return dir;
250
- if (vb == null)
251
- return -dir;
252
- return dir * this.#compareColValues(va, vb, colType);
253
- });
254
- return [...selected, ...unselected];
255
- };
256
- }
257
- /** Type-aware value comparator used by sortData. Returns negative/zero/positive like Array.sort. */
258
- #compareColValues(va, vb, colType) {
259
- // Explicit number columns: parse to float so "9" < "10" (not lexicographic)
260
- if (colType === DocumentLitsLabelConfigInterfaceValueType.number) {
261
- const na = parseFloat(String(va));
262
- const nb = parseFloat(String(vb));
263
- if (!Number.isNaN(na) && !Number.isNaN(nb))
264
- return na - nb;
265
- }
266
- // Date columns: compare as timestamps
267
- if (colType === DocumentLitsLabelConfigInterfaceValueType.date) {
268
- const ta = new Date(va).getTime();
269
- const tb = new Date(vb).getTime();
270
- if (!Number.isNaN(ta) && !Number.isNaN(tb))
271
- return ta - tb;
272
- }
273
- // Native JS numbers (regardless of inferred type)
274
- if (typeof va === 'number' && typeof vb === 'number')
275
- return va - vb;
276
- // Native JS Date instances
277
- if (va instanceof Date && vb instanceof Date)
278
- return va.getTime() - vb.getTime();
279
- // Everything else: locale-aware string sort with numeric collation ("9" < "10")
280
- const sa = typeof va === 'string' ? va : String(va);
281
- const sb = typeof vb === 'string' ? vb : String(vb);
282
- return sa.localeCompare(sb, undefined, { numeric: true, sensitivity: 'base' });
283
- }
284
- /** Re-sorts the dataSource pipeline so selected rows bubble to the top, then navigates to page 1. */
285
- #bringSelectionToFront() {
286
- if (this.dataSource.data.length === 0)
287
- return;
288
- // Shallow copy triggers MatTableDataSource to re-run filter → sortData → paginator.
289
- this.dataSource.data = [...this.dataSource.data];
290
- this.dataSource.paginator?.firstPage();
291
- }
292
- /** Filter predicate using fuzzy search on all stringifiable row values. */
293
- #setupFuzzyFilterPredicate() {
294
- this.dataSource.filterPredicate = (row, filter) => {
295
- const term = filter?.trim();
296
- if (!term)
297
- return true;
298
- if (typeof row !== 'object' || row === null)
299
- return false;
300
- return Object.values(row).some((value) => {
301
- if (value == null)
302
- return false;
303
- const text = typeof value === 'string' ? value : String(value);
304
- return fuzzySearch(term, text);
305
- });
306
- };
307
- }
308
- #setupSearchSubscription() {
309
- this.searchFormControl.valueChanges.pipe(debounceTime(300), map((term) => term?.trim() ?? ''), distinctUntilChanged((a, b) => a === b), takeUntilDestroyed(this.#destroyRef)).subscribe((filter) => {
310
- this.dataSource.filter = filter;
311
- this.dataSource.paginator?.firstPage();
312
- this.#cdr.markForCheck();
313
- });
314
- }
315
- clearSearch() {
316
- this.searchFormControl.setValue('');
317
- }
318
- /**
319
- * Infers column types from data source by sampling first N rows.
320
- * Cached per data reference to avoid recomputation on every change detection.
321
- */
322
- #inferColumnTypesFromData() {
323
- const data = this.dataSource.data;
324
- if (data === this.#lastInferredDataRef)
325
- return;
326
- if (data.length === 0) {
327
- this.#clearInferredCache();
328
- return;
329
- }
330
- this.#lastInferredDataRef = data;
331
- const sampleSize = Math.min(TYPE_INFER_SAMPLE_SIZE, data.length);
332
- const keys = Object.keys(data[0] ?? {});
333
- for (const key of keys) {
334
- if (key === 'icons' || key === 'actions')
335
- continue;
336
- let inferred = undefined;
337
- for (let i = 0; i < sampleSize; i++) {
338
- const v = data[i]?.[key];
339
- if (v === null || v === undefined)
340
- continue;
341
- inferred = this.#inferValueType(v);
342
- break;
343
- }
344
- this.#inferredColumnTypes[key] = inferred;
345
- }
346
- this.#columnsCacheDirty = true;
347
- }
348
- /** Lightweight single-value type inference for formatData pipe compatibility */
349
- #inferValueType(v) {
350
- if (typeof v === 'boolean')
351
- return InputDataTypes.Boolean;
352
- if (Array.isArray(v))
353
- return InputDataTypes.Array;
354
- if (typeof v === 'object' && v !== null) {
355
- return v instanceof Date ? DocumentLitsLabelConfigInterfaceValueType.date : InputDataTypes.Object;
356
- }
357
- if (typeof v === 'number' && !Number.isNaN(v))
358
- return DocumentLitsLabelConfigInterfaceValueType.number;
359
- if (typeof v === 'string') {
360
- const trimmed = v.trim();
361
- if (trimmed === '')
362
- return undefined;
363
- const num = Number(trimmed);
364
- if (!Number.isNaN(num))
365
- return DocumentLitsLabelConfigInterfaceValueType.number;
366
- const d = new Date(v);
367
- if (!Number.isNaN(d.getTime()))
368
- return DocumentLitsLabelConfigInterfaceValueType.date;
369
- }
370
- return undefined;
371
- }
372
- get isMultiSelect() {
373
- return this.inputConfig()?.allowMultipleSelection ?? false;
374
- }
375
- get primaryIdentifierKey() {
376
- return this.inputConfig()?.paginationSelectionConfig?.primaryIdentifierKey;
377
- }
378
- /** Returns the row identifier: uses returnMappedPathValue when primaryIdentifierKey is set, else fallback to _id/id. */
379
- getRowId(row) {
380
- const pk = this.primaryIdentifierKey;
381
- if (pk != null && pk !== '') {
382
- return returnMappedPathValue(pk, row);
383
- }
384
- return row['_id'] ?? row['id'];
385
- }
386
- /** Builds a minimal row object from an id for fallback when the row is not in dataSource (e.g. from radio value). */
387
- #buildFallbackRowFromId(id) {
388
- const pk = this.primaryIdentifierKey;
389
- if (!pk || !Array.isArray(pk) || pk.length === 0) {
390
- return { _id: id, id };
391
- }
392
- const obj = {};
393
- let current = obj;
394
- for (let i = 0; i < pk.length; i++) {
395
- const node = pk[i];
396
- const key = typeof node === 'object' && node != null && node.key != null ? String(node.key) : String(node);
397
- const isLast = i === pk.length - 1;
398
- if (isLast) {
399
- current[key] = id;
400
- }
401
- else {
402
- current[key] = {};
403
- current = current[key];
404
- }
405
- }
406
- return obj;
407
- }
408
- getSelectedIds() {
409
- const v = this.value;
410
- return Array.isArray(v) ? v : (v ? [v] : []);
411
- }
412
- /** Returns a primitive ID suitable for `[value]` on mat-radio-group, normalizing away object preset values. */
413
- getNormalizedSingleValue() {
414
- const v = this.value;
415
- if (v == null || Array.isArray(v))
416
- return v;
417
- if (typeof v === 'object')
418
- return this.getRowId(v);
419
- return v;
420
- }
421
- isRowSelected(row) {
422
- const rowId = this.getRowId(row);
423
- if (rowId == null)
424
- return false;
425
- return this.getSelectedIds().some(v => {
426
- if (v == null)
427
- return false;
428
- if (v === rowId)
429
- return true;
430
- // Preset values may arrive as full row objects instead of bare IDs.
431
- // Extract the ID from the stored object so the comparison still works.
432
- if (typeof v === 'object') {
433
- return this.getRowId(v) == rowId;
434
- }
435
- // Handle string/number type coercion (e.g. "123" vs 123).
436
- return String(v) === String(rowId);
437
- });
438
- }
439
- onRadioChange(event) {
440
- const id = event?.value;
441
- if (id == null)
442
- return;
443
- const row = this.dataSource.data.find((r) => this.getRowId(r) == id);
444
- this.selectRow(row ?? this.#buildFallbackRowFromId(id));
445
- }
446
- /** Handle click on radio: if already selected, deselect (radios don't fire change when re-clicked). */
447
- onRadioClick(row, event) {
448
- if (this.isRowSelected(row)) {
449
- event.preventDefault();
450
- event.stopPropagation();
451
- this.selectRow(row);
452
- }
453
- }
454
- selectRow(row) {
455
- const id = this.getRowId(row);
456
- if (this.isMultiSelect) {
457
- const ids = [...this.getSelectedIds()];
458
- const idx = ids.indexOf(id);
459
- if (idx >= 0) {
460
- ids.splice(idx, 1);
461
- }
462
- else {
463
- ids.push(id);
464
- }
465
- this.value = ids.length ? ids : null;
466
- this.onChange(this.value);
467
- this.onTouched();
468
- this.#bringSelectionToFront();
469
- this.#cdr.markForCheck();
470
- return;
471
- }
472
- const isDeselecting = id === this.value;
473
- this.value = isDeselecting ? undefined : id;
474
- this.onChange(this.value);
475
- this.onTouched();
476
- this.#bringSelectionToFront();
477
- this.#cdr.markForCheck();
478
- }
479
- writeValue(value) {
480
- super.writeValue(value);
481
- this.#bringSelectionToFront();
482
- this.#cdr.markForCheck();
483
- }
484
- ngAfterViewInit() {
485
- this.#attachSortAndPaginatorAfterViewReady();
486
- }
487
- ngOnDestroy() {
488
- this.#destroyed = true;
489
- this.#loadScheduled = false;
490
- if (this.#connectTimeoutId != null) {
491
- clearTimeout(this.#connectTimeoutId);
492
- this.#connectTimeoutId = null;
493
- }
494
- this.#clearInferredCache();
495
- this.dataSource.data = [];
496
- super.ngOnDestroy();
497
- }
498
- reload() {
499
- this.reloadData.emit();
500
- }
501
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: PaginatedSelectionTableReactiveInput, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
502
- 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: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-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 }); }
503
- }
504
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: PaginatedSelectionTableReactiveInput, decorators: [{
505
- type: Component,
506
- args: [{ selector: 'lib-paginated-selection-table-reactive-input', imports: [
507
- ReactiveFormsModule,
508
- FormatDataPipe,
509
- MatCardModule,
510
- MatIconModule,
511
- MatProgressSpinnerModule,
512
- MatFormFieldModule,
513
- MatInputModule,
514
- MatButtonModule,
515
- MatTooltipModule,
516
- MatTableModule,
517
- MatSortModule,
518
- MatPaginatorModule,
519
- MatCheckboxModule,
520
- MatRadioModule,
521
- ], changeDetection: ChangeDetectionStrategy.OnPush, host: {
522
- '[class.floating]': 'shouldLabelFloat',
523
- '[id]': 'id',
524
- }, 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: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-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"] }]
525
- }], 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 }] }] } });
526
-
527
- /** Wraps a paginated selection-table control inside a `mat-form-field`. */
528
- class PaginatedSelectionTable {
529
- constructor() {
530
- this.inputConfig = input.required(...(ngDevMode ? [{ debugName: "inputConfig" }] : /* istanbul ignore next */ []));
531
- this.formGroup = input.required(...(ngDevMode ? [{ debugName: "formGroup" }] : /* istanbul ignore next */ []));
532
- this.reload = output();
533
- this.errorMessage = computed(() => getInputErrorMessage(this.inputConfig(), this.formGroup()), ...(ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []));
534
- this.errorStateMatcher = {
535
- isErrorState(control, _form) {
536
- return !!(control && control.invalid && (control.dirty || control.touched));
537
- },
538
- };
539
- }
540
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: PaginatedSelectionTable, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
541
- 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=\"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"], outputs: ["reloadData"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
542
- }
543
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: PaginatedSelectionTable, decorators: [{
544
- type: Component,
545
- args: [{ selector: 'lib-paginated-selection-table', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
546
- ReactiveFormsModule,
547
- MatFormFieldModule,
548
- MatIconModule,
549
- MatButtonModule,
550
- MatTooltipModule,
551
- TFormInputStatusComponent,
552
- PaginatedSelectionTableReactiveInput,
553
- ], 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=\"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"] }]
554
- }], 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"] }] } });
555
-
556
- export { PaginatedSelectionTable };
557
- //# sourceMappingURL=ngx-t-forms-paginated-selection-table-DzZE-Zde.mjs.map