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,12 +1,14 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, DestroyRef, viewChild, forwardRef, Input, Optional, Self, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
2
+ import { inject, DestroyRef, viewChild, effect, forwardRef, Input, Optional, Self, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
3
3
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
4
+ import { AutofillMonitor } from '@angular/cdk/text-field';
4
5
  import { MatFormFieldControl } from '@angular/material/form-field';
5
- import * as i2 from '@angular/material/input';
6
+ import * as i4 from '@angular/material/input';
6
7
  import { MatInputModule } from '@angular/material/input';
7
8
  import { InputTypes } from 'ngx-t-forms-types';
8
9
  import { Subject, debounceTime } from 'rxjs';
9
- import { B as BaseCustomInput } from './ngx-t-forms-ngx-t-forms-Dt4iPwb-.mjs';
10
+ import { B as BaseCustomInput } from './ngx-t-forms-ngx-t-forms-C1kZpYIM.mjs';
11
+ import { r as resolveAutocompleteToken } from './ngx-t-forms-autofillToken-D-BYfzxR.mjs';
10
12
  import * as i1 from '@angular/forms';
11
13
 
12
14
  /**
@@ -173,19 +175,62 @@ const customInputConfig = {
173
175
  };
174
176
  class InputCustomComponent extends BaseCustomInput {
175
177
  #destroyRef;
178
+ #autofillMonitor;
176
179
  #debounceTimeMs;
177
180
  #valueSubject;
181
+ // Focus bookkeeping for the number-precision round trip: while the field has
182
+ // focus an external write (the tower projecting the rounded value back) is
183
+ // held off the DOM so the caret is never disturbed; a blur after typing
184
+ // commits the text at once so that write lands on the final keystroke.
185
+ #focused;
186
+ #typedSinceFocus;
187
+ /** Text the last commit took from the DOM, so its debounced twin is dropped rather than replayed. */
188
+ #committedFromDom;
178
189
  constructor(ngControl, elementRef) {
179
190
  super(ngControl, elementRef, customInputConfig);
180
191
  this.#destroyRef = inject(DestroyRef);
192
+ this.#autofillMonitor = inject(AutofillMonitor);
181
193
  this.#debounceTimeMs = 300;
182
194
  this.#valueSubject = new Subject();
195
+ // Focus bookkeeping for the number-precision round trip: while the field has
196
+ // focus an external write (the tower projecting the rounded value back) is
197
+ // held off the DOM so the caret is never disturbed; a blur after typing
198
+ // commits the text at once so that write lands on the final keystroke.
199
+ this.#focused = false;
200
+ this.#typedSinceFocus = false;
183
201
  // The native input is left uncontrolled while the user types: binding the
184
202
  // (debounced, therefore lagging) model to `[value]` made Angular overwrite the
185
203
  // DOM mid-keystroke and drop characters during fast typing. We instead push the
186
204
  // model to the DOM only on external writes (writeValue) — never while typing.
187
205
  // TS `private` (not ES `#private`): Angular signal queries cannot sit on an ES-private field.
188
206
  this.inputEl = viewChild('inputEl', ...(ngDevMode ? [{ debugName: "inputEl" }] : /* istanbul ignore next */ []));
207
+ this.#watchAutofill();
208
+ }
209
+ /**
210
+ * Browser autofill does not always announce itself. A field the browser fills
211
+ * from the saved profile on page load is painted without an `input` event, so
212
+ * the value sat in the DOM while the control stayed `null` — a required field
213
+ * the user could see was complete still blocked the form. The CDK monitor sees
214
+ * the paint (the `:-webkit-autofill` animation hook) and #onAutofill makes it
215
+ * count. Keyed on the view query rather than ngAfterViewInit because the input
216
+ * lives inside `@if (inputConfig)` and may appear after the view did; the
217
+ * cleanup stops the monitor when the input goes away.
218
+ */
219
+ #watchAutofill() {
220
+ effect((onCleanup) => {
221
+ const el = this.inputEl()?.nativeElement;
222
+ if (!el) {
223
+ return;
224
+ }
225
+ const sub = this.#autofillMonitor
226
+ .monitor(el)
227
+ .pipe(takeUntilDestroyed(this.#destroyRef))
228
+ .subscribe((event) => this.#onAutofill(event.isAutofilled));
229
+ onCleanup(() => {
230
+ sub.unsubscribe();
231
+ this.#autofillMonitor.stopMonitoring(el);
232
+ });
233
+ });
189
234
  }
190
235
  get empty() {
191
236
  const n = this.value;
@@ -204,10 +249,35 @@ class InputCustomComponent extends BaseCustomInput {
204
249
  get inputMode() {
205
250
  return resolveInputMode(this.inputConfig?.type);
206
251
  }
252
+ /**
253
+ * The native input's `name`: the author's control key, which is what a browser
254
+ * or password manager falls back to reading when the `autocomplete` token does
255
+ * not already settle what the field is. The column id stands in when there is
256
+ * no key, so a field is never anonymous. Bound through `matInput`'s own `name`
257
+ * input, which reflects it onto the attribute (and drops it when empty).
258
+ */
259
+ get inputName() {
260
+ return this.inputConfig?.formControlName || this.inputConfig?.id || '';
261
+ }
262
+ /**
263
+ * The `autocomplete` the column earns from its type and wording — `email` for
264
+ * an email column, `given-name` for a "First name" — with an author's `off`
265
+ * honoured as written. See autofillToken.ts for the rules.
266
+ */
267
+ get autocompleteToken() {
268
+ return resolveAutocompleteToken(this.inputConfig);
269
+ }
207
270
  ngOnInit() {
208
271
  this.#valueSubject
209
272
  .pipe(debounceTime(this.#debounceTimeMs), takeUntilDestroyed(this.#destroyRef))
210
273
  .subscribe((next) => {
274
+ // A keystroke a commit already took from the DOM (see #commitFromDom): the
275
+ // model has moved on since — possibly to the form's rounded echo of it —
276
+ // and replaying the text would undo that for one more round trip.
277
+ if (next === this.#committedFromDom) {
278
+ this.#committedFromDom = undefined;
279
+ return;
280
+ }
211
281
  // The base `value` setter guards on equality and fires onChange + stateChanges.
212
282
  // Only the (heavier) form propagation + validation is debounced — never the display.
213
283
  this.value = next;
@@ -224,14 +294,25 @@ class InputCustomComponent extends BaseCustomInput {
224
294
  this.#syncInputFromModel();
225
295
  }
226
296
  onInputChange($event) {
297
+ this.#typedSinceFocus = true;
298
+ this.#committedFromDom = undefined;
227
299
  const next = $event.target?.value ?? '';
228
300
  this.#valueSubject.next(next);
229
301
  }
302
+ onInputFocus() {
303
+ this.#focused = true;
304
+ this.#typedSinceFocus = false;
305
+ }
230
306
  #syncInputFromModel() {
231
307
  const el = this.inputEl()?.nativeElement;
232
308
  if (!el) {
233
309
  return;
234
310
  }
311
+ // A write that arrives while the user is in the field (the tower echoing
312
+ // the rounded value) waits for the blur; see #commitFromDom.
313
+ if (this.#focused) {
314
+ return;
315
+ }
235
316
  const v = this.value;
236
317
  // Grouped for display only. The model keeps whatever the consumer patched in,
237
318
  // so simply loading a form never rewrites stored data — only the user's own
@@ -243,60 +324,100 @@ class InputCustomComponent extends BaseCustomInput {
243
324
  return this.inputConfig?.type === InputTypes.Tel ? formatTelForDisplay(value) : value;
244
325
  }
245
326
  /**
246
- * Groups the typed phone number once the field is left, and commits the grouped
247
- * text as the value so what is stored matches what is shown.
327
+ * The browser has filled the field for the user — or cleared that fill again.
328
+ *
329
+ * `autofilled` is the MatFormFieldControl flag the form field reads; the
330
+ * commit is what makes the fill count for the form. When the browser withholds
331
+ * the painted value until the user touches the page, the DOM reads empty here
332
+ * and nothing is committed; the `input` event it fires at that moment takes
333
+ * the ordinary typing path.
334
+ */
335
+ #onAutofill(isAutofilled) {
336
+ this.autofilled = isAutofilled;
337
+ this.stateChanges.next();
338
+ if (isAutofilled) {
339
+ this.#commitFromDom();
340
+ }
341
+ }
342
+ /**
343
+ * Commits what the DOM holds — the moment the field is left, or the moment the
344
+ * browser fills it.
248
345
  *
249
- * Runs on blur rather than on input because the grouping is measured from the
250
- * right — applied per keystroke it would reflow the text under the caret, and
251
- * this component deliberately never rewrites the DOM while the user types.
346
+ * A phone number is grouped first and the grouped text is what is committed,
347
+ * so what is stored matches what is shown. Grouping runs here rather than on
348
+ * input because it is measured from the right — applied per keystroke it
349
+ * would reflow the text under the caret, and this component deliberately
350
+ * never rewrites the DOM while the user types.
252
351
  *
253
- * The formatted text re-enters `#valueSubject` as well as being set directly:
254
- * a keystroke from the last 300ms may still be in flight, and re-entering the
255
- * debounce supersedes it rather than letting it land afterwards and leave the
256
- * model holding the ungrouped text. The direct write keeps the control correct
257
- * in the meantime; the base setter's equality guard makes the later duplicate a
258
- * no-op.
352
+ * Every other type commits its text as typed. That matters for a column with
353
+ * a number precision: the tower rounds the committed value and projects it
354
+ * back, and that projection is held off the DOM while the field has focus
355
+ * (see #syncInputFromModel). Committing on blur puts the final keystroke in
356
+ * the model at once, so the rounded echo lands on it rather than on a value
357
+ * still sitting in the debounce window.
358
+ *
359
+ * The text re-enters `#valueSubject` as well as being set directly: a
360
+ * keystroke from the last 300ms may still be in flight, and re-entering the
361
+ * debounce supersedes it rather than letting it land afterwards. The direct
362
+ * write keeps the control correct in the meantime; the base setter's equality
363
+ * guard makes the later duplicate a no-op. Nothing is committed when the text
364
+ * already matches the model, so blurring an untouched field — or an autofill
365
+ * whose value the browser has not yet exposed — never turns its `null` into
366
+ * an empty string.
259
367
  */
260
- #applyDisplayFormatOnBlur() {
368
+ #commitFromDom() {
261
369
  const el = this.inputEl()?.nativeElement;
262
- if (!el || this.inputConfig?.type !== InputTypes.Tel) {
370
+ if (!el) {
263
371
  return;
264
372
  }
265
- const formatted = formatTelForDisplay(el.value);
266
- if (formatted === el.value) {
373
+ const text = this.inputConfig?.type === InputTypes.Tel ? formatTelForDisplay(el.value) : el.value;
374
+ if (text !== el.value) {
375
+ el.value = text;
376
+ }
377
+ const current = this.value;
378
+ const currentText = current === null || current === undefined ? '' : String(current);
379
+ if (text === currentText) {
267
380
  return;
268
381
  }
269
- el.value = formatted;
270
- this.value = formatted;
271
- this.#valueSubject.next(formatted);
382
+ this.value = text;
383
+ this.#valueSubject.next(text);
384
+ this.#committedFromDom = text;
272
385
  }
273
386
  onInputBlur($event) {
274
- this.#applyDisplayFormatOnBlur();
387
+ this.#focused = false;
388
+ if (this.#typedSinceFocus) {
389
+ this.#commitFromDom();
390
+ }
391
+ else {
392
+ // Nothing typed: show whatever the model holds, including a write that
393
+ // arrived while the field had focus.
394
+ this.#syncInputFromModel();
395
+ }
396
+ this.#typedSinceFocus = false;
275
397
  this.touched = true; // Mark as touched on blur
276
398
  this.onTouched();
277
399
  this.blur.emit($event);
278
400
  }
279
401
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: InputCustomComponent, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
280
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: InputCustomComponent, isStandalone: true, selector: "lib-input-custom", inputs: { inputConfig: "inputConfig" }, host: { properties: { "class.floating": "shouldLabelFloat", "id": "id" } }, providers: [
402
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: InputCustomComponent, isStandalone: true, selector: "lib-input-custom", inputs: { inputConfig: "inputConfig" }, host: { properties: { "class.floating": "shouldLabelFloat" } }, providers: [
281
403
  {
282
404
  provide: MatFormFieldControl,
283
405
  //:Note
284
406
  useExisting: forwardRef(() => InputCustomComponent),
285
407
  },
286
- ], viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@if (inputConfig) {\r\n <input matInput\r\n #inputEl\r\n [readonly]=\"inputConfig.readonly || inputConfig.disabled\"\r\n (blur)=\"onInputBlur($event)\"\r\n [pattern]=\"inputConfig.pattern || ''\"\r\n [required]=\"inputConfig.required\"\r\n [attr.maxlength]=\"inputConfig.maxLength\"\r\n [type]=\"inputConfig.type || 'text'\"\n [attr.inputmode]=\"inputMode\"\r\n (input)=\"onInputChange($event)\"\r\n [attr.minlength]=\"inputConfig.minLength\"\r\n [autocomplete]=\"inputConfig.autocomplete\"\r\n [min]=\"inputConfig.min\"\r\n [max]=\"inputConfig.max\" />\r\n}\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i2.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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
408
+ ], viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@if (inputConfig) {\n <input matInput\n #inputEl\n [id]=\"id\"\n [name]=\"inputName\"\n [readonly]=\"inputConfig.readonly || inputConfig.disabled\"\n (blur)=\"onInputBlur($event)\"\n (focus)=\"onInputFocus()\"\n [pattern]=\"inputConfig.pattern || ''\"\n [required]=\"inputConfig.required\"\n [attr.maxlength]=\"inputConfig.maxLength\"\n [type]=\"inputConfig.type || 'text'\"\n [attr.inputmode]=\"inputMode\"\n (input)=\"onInputChange($event)\"\n [attr.minlength]=\"inputConfig.minLength\"\n [autocomplete]=\"autocompleteToken\"\n [min]=\"inputConfig.min\"\n [max]=\"inputConfig.max\" />\n}\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i4.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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
287
409
  }
288
410
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: InputCustomComponent, decorators: [{
289
411
  type: Component,
290
412
  args: [{ selector: 'lib-input-custom', imports: [MatInputModule], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, host: {
291
413
  '[class.floating]': 'shouldLabelFloat',
292
- '[id]': 'id',
293
414
  }, providers: [
294
415
  {
295
416
  provide: MatFormFieldControl,
296
417
  //:Note
297
418
  useExisting: forwardRef(() => InputCustomComponent),
298
419
  },
299
- ], template: "@if (inputConfig) {\r\n <input matInput\r\n #inputEl\r\n [readonly]=\"inputConfig.readonly || inputConfig.disabled\"\r\n (blur)=\"onInputBlur($event)\"\r\n [pattern]=\"inputConfig.pattern || ''\"\r\n [required]=\"inputConfig.required\"\r\n [attr.maxlength]=\"inputConfig.maxLength\"\r\n [type]=\"inputConfig.type || 'text'\"\n [attr.inputmode]=\"inputMode\"\r\n (input)=\"onInputChange($event)\"\r\n [attr.minlength]=\"inputConfig.minLength\"\r\n [autocomplete]=\"inputConfig.autocomplete\"\r\n [min]=\"inputConfig.min\"\r\n [max]=\"inputConfig.max\" />\r\n}\r\n" }]
420
+ ], template: "@if (inputConfig) {\n <input matInput\n #inputEl\n [id]=\"id\"\n [name]=\"inputName\"\n [readonly]=\"inputConfig.readonly || inputConfig.disabled\"\n (blur)=\"onInputBlur($event)\"\n (focus)=\"onInputFocus()\"\n [pattern]=\"inputConfig.pattern || ''\"\n [required]=\"inputConfig.required\"\n [attr.maxlength]=\"inputConfig.maxLength\"\n [type]=\"inputConfig.type || 'text'\"\n [attr.inputmode]=\"inputMode\"\n (input)=\"onInputChange($event)\"\n [attr.minlength]=\"inputConfig.minLength\"\n [autocomplete]=\"autocompleteToken\"\n [min]=\"inputConfig.min\"\n [max]=\"inputConfig.max\" />\n}\n" }]
300
421
  }], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
301
422
  type: Optional
302
423
  }, {
@@ -306,4 +427,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
306
427
  }], inputEl: [{ type: i0.ViewChild, args: ['inputEl', { isSignal: true }] }] } });
307
428
 
308
429
  export { InputCustomComponent };
309
- //# sourceMappingURL=ngx-t-forms-input-custom.component-CGz6j56m.mjs.map
430
+ //# sourceMappingURL=ngx-t-forms-input-custom.component-CqIr5wpy.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-t-forms-input-custom.component-CqIr5wpy.mjs","sources":["../../../projects/ngx-t-forms/src/lib/shared/functions/inputTypePresentation.ts","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/basic-input-input-element/core/input-custom/input-custom.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/basic-input-input-element/core/input-custom/input-custom.component.html"],"sourcesContent":["/**\n * @file The presentation half of what a column's `type` promises.\n *\n * **The gap this closes.** `inputTypeValidators.ts` made `tel` / `url` / `color`\n * mean something to the form control. This file makes them mean something to the\n * person filling the form in: the right on-screen keyboard, and a phone number\n * that reads as a phone number.\n *\n * Before this, `type: 'tel'` reached the DOM as `<input type=\"tel\">` and nothing\n * else — no `inputmode`, so a phone field opened the full alphabetic keyboard on\n * a handset, and `0821234567` stayed an undifferentiated run of ten digits.\n *\n * Pure functions with no Angular or DOM dependency, so they are equally usable\n * from a component, a renderer, or a test.\n */\nimport { InputTypes } from 'ngx-t-forms-types';\n\n/**\n * The `inputmode` values a browser understands. Narrower than the HTML spec's\n * full list — only the modes a declared {@link InputTypes} can imply.\n */\nexport type InputMode = 'tel' | 'email' | 'url' | 'decimal' | 'search';\n\n/** Digits in the last group of a formatted phone number. */\nconst TEL_TAIL_GROUP = 4;\n/** Digits in every group before the last. */\nconst TEL_GROUP = 3;\n/** Below this, the number is too short to group meaningfully; above it, E.164 says it is not a number. */\nconst TEL_MIN_DIGITS = 7;\nconst TEL_MAX_DIGITS = 15;\n\n/**\n * ITU-T E.164 country calling codes that are one or two digits long. Every code\n * not listed here is three digits.\n *\n * Spelled out rather than inferred because the length of a calling code is not\n * derivable from its value — `27` is South Africa but `271` is nothing, while\n * `26` is nothing and `263` is Zimbabwe. Splitting on the wrong boundary is what\n * turns `+27 82 123 4567` into the unreadable `+2 782 123 4567`.\n */\nconst ONE_DIGIT_CODES: ReadonlySet<string> = new Set(['1', '7']);\nconst TWO_DIGIT_CODES: ReadonlySet<string> = new Set([\n '20', '27',\n '30', '31', '32', '33', '34', '36', '39',\n '40', '41', '43', '44', '45', '46', '47', '48', '49',\n '51', '52', '53', '54', '55', '56', '57', '58',\n '60', '61', '62', '63', '64', '65', '66',\n '81', '82', '84', '86',\n '90', '91', '92', '93', '94', '95', '98',\n]);\n\n// ---------------------------------------------------------------------------\n// Keyboard hint\n// ---------------------------------------------------------------------------\n\n/**\n * The `inputmode` a declared column type implies, or `null` when the type\n * implies no particular keyboard.\n *\n * `type` alone already picks the keyboard on most desktop browsers, but on a\n * handset it is `inputmode` that decides — which is why a `tel` column opened\n * the alphabetic keyboard. Temporal types are left alone: they render a native\n * picker, and forcing a keyboard mode onto one only fights it.\n *\n * @param type - The column's declared `type`, in any casing, possibly absent.\n * @returns The `inputmode` attribute value, or `null` to leave it unset.\n *\n * @example\n * resolveInputMode(InputTypes.Tel); // 'tel'\n * resolveInputMode(InputTypes.Text); // null\n */\nexport function resolveInputMode(type: string | undefined): InputMode | null {\n switch (typeof type === 'string' ? type.toLowerCase() : '') {\n case InputTypes.Tel:\n return 'tel';\n case InputTypes.Email:\n return 'email';\n case InputTypes.Url:\n return 'url';\n case InputTypes.Number:\n return 'decimal';\n case InputTypes.Search:\n return 'search';\n default:\n return null;\n }\n}\n\n// ---------------------------------------------------------------------------\n// Phone number formatting\n// ---------------------------------------------------------------------------\n\n/**\n * Groups a complete phone number for display: `0821234567` → `082 123 4567`,\n * `+27821234567` → `+27 82 123 4567`.\n *\n * **Why grouping runs on a finished number, not on every keystroke.** Groups are\n * measured from the right, so the boundaries only settle once the last digit is\n * in. Applied live, the same rule would reflow the field under the caret on\n * every press — `082 1234` becoming `0 821 2345` becoming `08 212 3456` — and\n * `InputCustomComponent` deliberately never rewrites the DOM mid-keystroke\n * (doing so used to drop characters during fast typing). Callers apply this on\n * blur and on external writes, where the value is whole and the caret is gone.\n *\n * Right-to-left grouping is what makes one rule fit both plans: a 9-digit South\n * African subscriber number lands on `82 123 4567` and a 10-digit North American\n * one on `555 123 4567`, with no per-country national format to maintain.\n *\n * **Fail-open.** Anything that is not a recognisable phone number — free text, a\n * digit count outside E.164's range, an incomplete entry — is returned exactly\n * as given. This never destroys what someone typed; rejecting it is\n * `inputTypeValidators.ts`'s job, and it reports on the original text.\n *\n * @param raw - The value as typed or stored.\n * @returns The grouped number, or `raw` unchanged when it cannot be read as one.\n *\n * @example\n * formatTelForDisplay('0821234567'); // '082 123 4567'\n * formatTelForDisplay('+27821234567'); // '+27 82 123 4567'\n * formatTelForDisplay('call me'); // 'call me'\n */\nexport function formatTelForDisplay(raw: string): string {\n const trimmed = raw.trim();\n if (trimmed === '') return raw;\n\n const international = trimmed.startsWith('+');\n const digits = trimmed.replace(/\\D/g, '');\n\n // Any letter, or a stray `+` past the first character, means this is not a\n // phone number we can safely rewrite.\n if (/[^\\d\\s().+-]/.test(trimmed) || trimmed.indexOf('+', 1) !== -1) return raw;\n if (digits.length < TEL_MIN_DIGITS || digits.length > TEL_MAX_DIGITS) return raw;\n\n if (!international) return groupFromRight(digits);\n\n const codeLength = callingCodeLength(digits);\n const national = digits.slice(codeLength);\n if (national === '') return raw;\n return `+${digits.slice(0, codeLength)} ${groupFromRight(national)}`;\n}\n\n/**\n * How many leading digits of an international number form its calling code.\n * Falls back to three, the length of every code outside {@link ONE_DIGIT_CODES}\n * and {@link TWO_DIGIT_CODES}.\n */\nfunction callingCodeLength(digits: string): number {\n if (ONE_DIGIT_CODES.has(digits.slice(0, 1))) return 1;\n if (TWO_DIGIT_CODES.has(digits.slice(0, 2))) return 2;\n return 3;\n}\n\n/**\n * Splits digits into a final group of {@link TEL_TAIL_GROUP} preceded by groups\n * of {@link TEL_GROUP}, measured from the right so the leading group absorbs the\n * remainder: `821234567` → `82 123 4567`.\n */\nfunction groupFromRight(digits: string): string {\n if (digits.length <= TEL_TAIL_GROUP) return digits;\n\n const groups: string[] = [digits.slice(-TEL_TAIL_GROUP)];\n let head = digits.slice(0, -TEL_TAIL_GROUP);\n while (head.length > TEL_GROUP) {\n groups.unshift(head.slice(-TEL_GROUP));\n head = head.slice(0, -TEL_GROUP);\n }\n groups.unshift(head);\n return groups.join(' ');\n}\n","import {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n Input,\n OnInit,\n Optional,\n Self,\n ViewEncapsulation,\n effect,\n forwardRef,\n inject,\n viewChild,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { AutofillMonitor } from '@angular/cdk/text-field';\nimport { NgControl } from '@angular/forms';\nimport { MatFormFieldControl } from '@angular/material/form-field';\nimport { MatInputModule } from '@angular/material/input';\nimport { InputTypes, ITowerStepColumn } from 'ngx-t-forms-types';\nimport { Subject, debounceTime } from 'rxjs';\n\nimport {\n BaseCustomInput,\n BaseCustomInputConfig,\n} from '../../../../../../services/core/t-input-controller/functions/baseCustomInput';\nimport { resolveAutocompleteToken } from '../../../../../../shared/functions/autofillToken';\nimport type { AutocompleteToken } from '../../../../../../shared/functions/autofillToken';\nimport {\n formatTelForDisplay,\n resolveInputMode,\n} from '../../../../../../shared/functions/inputTypePresentation';\nimport type { InputMode } from '../../../../../../shared/functions/inputTypePresentation';\n\nconst customInputConfig: BaseCustomInputConfig = {\n controlType: 'lib-input-custom',\n nextId: 0,\n};\n\n@Component({\n selector: 'lib-input-custom',\n imports: [MatInputModule],\n templateUrl: './input-custom.component.html',\n styleUrl: './input-custom.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[class.floating]': 'shouldLabelFloat',\n },\n providers: [\n {\n provide: MatFormFieldControl,\n //:Note\n useExisting: forwardRef(() => InputCustomComponent),\n },\n ],\n})\nexport class InputCustomComponent\n extends BaseCustomInput<string | number | Date>\n implements OnInit, AfterViewInit\n{\n // Kept as @Input() because BaseCustomInput exposes `required`/`disabled`/`placeholder`\n // as setter-backed @Input()s tied to MatFormFieldControl `stateChanges`. Keeping\n // `inputConfig` as a classic @Input keeps the imperative-setter ergonomic consistent\n // with the base class and avoids mixing signal + setter inputs on one component.\n @Input() inputConfig!: ITowerStepColumn;\n\n readonly #destroyRef = inject(DestroyRef);\n readonly #autofillMonitor = inject(AutofillMonitor);\n readonly #debounceTimeMs = 300;\n readonly #valueSubject = new Subject<string>();\n\n // Focus bookkeeping for the number-precision round trip: while the field has\n // focus an external write (the tower projecting the rounded value back) is\n // held off the DOM so the caret is never disturbed; a blur after typing\n // commits the text at once so that write lands on the final keystroke.\n #focused = false;\n #typedSinceFocus = false;\n /** Text the last commit took from the DOM, so its debounced twin is dropped rather than replayed. */\n #committedFromDom: string | undefined;\n\n // The native input is left uncontrolled while the user types: binding the\n // (debounced, therefore lagging) model to `[value]` made Angular overwrite the\n // DOM mid-keystroke and drop characters during fast typing. We instead push the\n // model to the DOM only on external writes (writeValue) — never while typing.\n // TS `private` (not ES `#private`): Angular signal queries cannot sit on an ES-private field.\n private readonly inputEl = viewChild<ElementRef<HTMLInputElement>>('inputEl');\n\n constructor(\n @Optional() @Self() ngControl: NgControl,\n elementRef: ElementRef<HTMLElement>,\n ) {\n super(ngControl, elementRef, customInputConfig);\n this.#watchAutofill();\n }\n\n /**\n * Browser autofill does not always announce itself. A field the browser fills\n * from the saved profile on page load is painted without an `input` event, so\n * the value sat in the DOM while the control stayed `null` — a required field\n * the user could see was complete still blocked the form. The CDK monitor sees\n * the paint (the `:-webkit-autofill` animation hook) and #onAutofill makes it\n * count. Keyed on the view query rather than ngAfterViewInit because the input\n * lives inside `@if (inputConfig)` and may appear after the view did; the\n * cleanup stops the monitor when the input goes away.\n */\n #watchAutofill(): void {\n effect((onCleanup) => {\n const el = this.inputEl()?.nativeElement;\n if (!el) {\n return;\n }\n const sub = this.#autofillMonitor\n .monitor(el)\n .pipe(takeUntilDestroyed(this.#destroyRef))\n .subscribe((event) => this.#onAutofill(event.isAutofilled));\n onCleanup(() => {\n sub.unsubscribe();\n this.#autofillMonitor.stopMonitoring(el);\n });\n });\n }\n\n override get empty(): boolean {\n const n = this.value;\n // Check for null, undefined, or empty string, but allow 0\n return n === null || n === undefined || n === '';\n }\n\n override get shouldLabelFloat(): boolean {\n return true;\n }\n\n /**\n * The on-screen keyboard the bound column's `type` implies, or `null` to leave\n * `inputmode` unset. A getter rather than a signal because `inputConfig` is a\n * setter-free classic `@Input()` (see its comment above) — the lookup is a\n * single switch, so re-reading it per change detection costs nothing.\n */\n protected get inputMode(): InputMode | null {\n return resolveInputMode(this.inputConfig?.type);\n }\n\n /**\n * The native input's `name`: the author's control key, which is what a browser\n * or password manager falls back to reading when the `autocomplete` token does\n * not already settle what the field is. The column id stands in when there is\n * no key, so a field is never anonymous. Bound through `matInput`'s own `name`\n * input, which reflects it onto the attribute (and drops it when empty).\n */\n protected get inputName(): string {\n return this.inputConfig?.formControlName || this.inputConfig?.id || '';\n }\n\n /**\n * The `autocomplete` the column earns from its type and wording — `email` for\n * an email column, `given-name` for a \"First name\" — with an author's `off`\n * honoured as written. See autofillToken.ts for the rules.\n */\n protected get autocompleteToken(): AutocompleteToken {\n return resolveAutocompleteToken(this.inputConfig);\n }\n\n ngOnInit(): void {\n this.#valueSubject\n .pipe(debounceTime(this.#debounceTimeMs), takeUntilDestroyed(this.#destroyRef))\n .subscribe((next) => {\n // A keystroke a commit already took from the DOM (see #commitFromDom): the\n // model has moved on since — possibly to the form's rounded echo of it —\n // and replaying the text would undo that for one more round trip.\n if (next === this.#committedFromDom) {\n this.#committedFromDom = undefined;\n return;\n }\n // The base `value` setter guards on equality and fires onChange + stateChanges.\n // Only the (heavier) form propagation + validation is debounced — never the display.\n this.value = next;\n });\n }\n\n ngAfterViewInit(): void {\n // Reflect any value the form set before the view existed (initial bind / patch).\n this.#syncInputFromModel();\n }\n\n override writeValue(value: string | number | Date): void {\n super.writeValue(value);\n // External model change (patchValue / reset) — push it to the DOM. This never\n // runs in response to the user's own typing, so it can't clobber the cursor.\n this.#syncInputFromModel();\n }\n\n protected onInputChange($event: Event): void {\n this.#typedSinceFocus = true;\n this.#committedFromDom = undefined;\n const next = ($event.target as HTMLInputElement | null)?.value ?? '';\n this.#valueSubject.next(next);\n }\n\n protected onInputFocus(): void {\n this.#focused = true;\n this.#typedSinceFocus = false;\n }\n\n #syncInputFromModel(): void {\n const el = this.inputEl()?.nativeElement;\n if (!el) {\n return;\n }\n // A write that arrives while the user is in the field (the tower echoing\n // the rounded value) waits for the blur; see #commitFromDom.\n if (this.#focused) {\n return;\n }\n const v = this.value;\n // Grouped for display only. The model keeps whatever the consumer patched in,\n // so simply loading a form never rewrites stored data — only the user's own\n // blur does that.\n el.value = v === null || v === undefined ? '' : this.#forDisplay(String(v));\n }\n\n /** Applies the declared type's display format, if it has one. */\n #forDisplay(value: string): string {\n return this.inputConfig?.type === InputTypes.Tel ? formatTelForDisplay(value) : value;\n }\n\n /**\n * The browser has filled the field for the user — or cleared that fill again.\n *\n * `autofilled` is the MatFormFieldControl flag the form field reads; the\n * commit is what makes the fill count for the form. When the browser withholds\n * the painted value until the user touches the page, the DOM reads empty here\n * and nothing is committed; the `input` event it fires at that moment takes\n * the ordinary typing path.\n */\n #onAutofill(isAutofilled: boolean): void {\n this.autofilled = isAutofilled;\n this.stateChanges.next();\n if (isAutofilled) {\n this.#commitFromDom();\n }\n }\n\n /**\n * Commits what the DOM holds — the moment the field is left, or the moment the\n * browser fills it.\n *\n * A phone number is grouped first and the grouped text is what is committed,\n * so what is stored matches what is shown. Grouping runs here rather than on\n * input because it is measured from the right — applied per keystroke it\n * would reflow the text under the caret, and this component deliberately\n * never rewrites the DOM while the user types.\n *\n * Every other type commits its text as typed. That matters for a column with\n * a number precision: the tower rounds the committed value and projects it\n * back, and that projection is held off the DOM while the field has focus\n * (see #syncInputFromModel). Committing on blur puts the final keystroke in\n * the model at once, so the rounded echo lands on it rather than on a value\n * still sitting in the debounce window.\n *\n * The text re-enters `#valueSubject` as well as being set directly: a\n * keystroke from the last 300ms may still be in flight, and re-entering the\n * debounce supersedes it rather than letting it land afterwards. The direct\n * write keeps the control correct in the meantime; the base setter's equality\n * guard makes the later duplicate a no-op. Nothing is committed when the text\n * already matches the model, so blurring an untouched field — or an autofill\n * whose value the browser has not yet exposed — never turns its `null` into\n * an empty string.\n */\n #commitFromDom(): void {\n const el = this.inputEl()?.nativeElement;\n if (!el) {\n return;\n }\n const text = this.inputConfig?.type === InputTypes.Tel ? formatTelForDisplay(el.value) : el.value;\n if (text !== el.value) {\n el.value = text;\n }\n const current = this.value;\n const currentText = current === null || current === undefined ? '' : String(current);\n if (text === currentText) {\n return;\n }\n this.value = text;\n this.#valueSubject.next(text);\n this.#committedFromDom = text;\n }\n\n protected onInputBlur($event: FocusEvent): void {\n this.#focused = false;\n if (this.#typedSinceFocus) {\n this.#commitFromDom();\n } else {\n // Nothing typed: show whatever the model holds, including a write that\n // arrived while the field had focus.\n this.#syncInputFromModel();\n }\n this.#typedSinceFocus = false;\n this.touched = true; // Mark as touched on blur\n this.onTouched();\n this.blur.emit($event);\n }\n}\n","@if (inputConfig) {\n <input matInput\n #inputEl\n [id]=\"id\"\n [name]=\"inputName\"\n [readonly]=\"inputConfig.readonly || inputConfig.disabled\"\n (blur)=\"onInputBlur($event)\"\n (focus)=\"onInputFocus()\"\n [pattern]=\"inputConfig.pattern || ''\"\n [required]=\"inputConfig.required\"\n [attr.maxlength]=\"inputConfig.maxLength\"\n [type]=\"inputConfig.type || 'text'\"\n [attr.inputmode]=\"inputMode\"\n (input)=\"onInputChange($event)\"\n [attr.minlength]=\"inputConfig.minLength\"\n [autocomplete]=\"autocompleteToken\"\n [min]=\"inputConfig.min\"\n [max]=\"inputConfig.max\" />\n}\n"],"names":["i2"],"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;AAcG;AASH;AACA,MAAM,cAAc,GAAG,CAAC;AACxB;AACA,MAAM,SAAS,GAAG,CAAC;AACnB;AACA,MAAM,cAAc,GAAG,CAAC;AACxB,MAAM,cAAc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;;"}
@@ -3,28 +3,28 @@ import * as i0 from '@angular/core';
3
3
  import { inject, DestroyRef, ChangeDetectionStrategy, Component, PLATFORM_ID, DOCUMENT, computed } from '@angular/core';
4
4
  import * as i3$1 from '@angular/material/card';
5
5
  import { MatCardModule } from '@angular/material/card';
6
- import * as i2 from '@angular/material/button';
6
+ import * as i1$1 from '@angular/material/button';
7
7
  import { MatButtonModule } from '@angular/material/button';
8
8
  import * as i3 from '@angular/material/icon';
9
9
  import { MatIconModule } from '@angular/material/icon';
10
10
  import { MatDividerModule } from '@angular/material/divider';
11
11
  import { MatToolbarModule } from '@angular/material/toolbar';
12
- import * as i1 from '@angular/cdk/drag-drop';
12
+ import * as i1$2 from '@angular/cdk/drag-drop';
13
13
  import { DragDropModule } from '@angular/cdk/drag-drop';
14
14
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
15
15
  import * as i6 from '@angular/material/list';
16
16
  import { MatListModule } from '@angular/material/list';
17
- import { F as FormsStoreService, b as getInputIcon, T as TDynamicDataEditComponent, c as TDynamicDataViewComponent } from './ngx-t-forms-ngx-t-forms-Dt4iPwb-.mjs';
17
+ import { F as FormsStoreService, d as getInputIcon, T as TDynamicDataEditComponent, f as TDynamicDataViewComponent } from './ngx-t-forms-ngx-t-forms-C1kZpYIM.mjs';
18
18
  import { DefaultInputConfig } from 'ngx-t-forms-types';
19
19
  import { take, tap } from 'rxjs';
20
- import * as i5 from '@angular/material/expansion';
20
+ import * as i1 from '@angular/material/expansion';
21
21
  import { MatExpansionModule } from '@angular/material/expansion';
22
- import * as i5$1 from '@angular/material/tooltip';
22
+ import * as i5 from '@angular/material/tooltip';
23
23
  import { MatTooltipModule } from '@angular/material/tooltip';
24
24
  import * as i4 from '@angular/material/progress-spinner';
25
25
  import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
26
26
  import { MatFormFieldModule } from '@angular/material/form-field';
27
- import './ngx-t-forms-index-BnK4nGDh.mjs';
27
+ import './ngx-t-forms-index-CSXX8RTm.mjs';
28
28
 
29
29
  class DefaultElementComponent {
30
30
  constructor() {
@@ -126,7 +126,7 @@ class InputElementEditorComponent {
126
126
  win.URL.revokeObjectURL(url);
127
127
  }
128
128
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: InputElementEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
129
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: InputElementEditorComponent, isStandalone: true, selector: "lib-input-element-editor", ngImport: i0, template: "@if (vm(); as vm) {\r\n<div class=\"ee-section-bar\">\r\n <span class=\"ee-section-eyebrow\">Element configuration</span>\r\n <span class=\"spacer\"></span>\r\n @if ((vm.inputElementEditorConfigs.editorSections || []).length) {\r\n <span class=\"ee-section-count\">{{ (vm.inputElementEditorConfigs.editorSections || []).length }} sections</span>\r\n }\r\n</div>\r\n\r\n@defer (on viewport) {\r\n<mat-accordion class=\"ee-accordion\" togglePosition=\"before\" multi>\r\n @for(section of (vm.inputElementEditorConfigs.editorSections || []); track section.id; let i = $index) {\r\n <mat-expansion-panel class=\"ee-panel mat-elevation-z0\">\r\n <mat-expansion-panel-header class=\"ee-panel-header\" collapsedHeight=\"48px\" expandedHeight=\"48px\">\r\n <mat-panel-title class=\"ee-panel-title\">\r\n <span class=\"ee-panel-label\">{{ section.label }}</span>\r\n <span class=\"spacer\"></span>\r\n @if (section.hasErrors) {\r\n <mat-icon class=\"ee-panel-error\" color=\"warn\">error</mat-icon>\r\n }\r\n @if (section.showItemValue && !!(vm.inputInEdit)) {\r\n <span class=\"ee-item-value\">{{ vm.inputInEdit[section.showItemValue] }}</span>\r\n }\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n\r\n <div class=\"ee-panel-body\">\r\n <!-- Input-type switcher (first section only) -->\r\n @if(i === 0) {\r\n <mat-nav-list class=\"ee-input-switcher\">\r\n <mat-list-item [disabled]=\"vm.inputInEdit?.systemDefault\" matTooltip=\"Change input element\"\r\n (click)=\"vm.inputInEdit?.systemDefault ? '' : clearInputInEdit()\">\r\n <mat-icon matListItemAvatar [attr.aria-label]=\"(vm.defaultInputInEdit)?.label\">\r\n {{ getInputIcon(vm.inputInEdit?.element) }}\r\n </mat-icon>\r\n <span matListItemTitle>{{ (vm.defaultInputInEdit)?.label }}</span>\r\n <span matListItemMeta>\r\n <mat-icon>arrow_forward_ios</mat-icon>\r\n </span>\r\n </mat-list-item>\r\n </mat-nav-list>\r\n }\r\n\r\n <!-- Section elements -->\r\n @for(element of section.elements; track element.id) {\r\n <div class=\"ee-element\">\r\n @defer (on viewport) {\r\n <lib-t-dynamic-data-edit [editorConfig]=\"element\" [data]=\"(vm.inputInEdit)\"\r\n [validationErrors]=\"element.computedErrors ?? null\" [mscoaSaveCustomInput]=\"saveMscoaCustomInput\"\r\n [mscoaEditInput]=\"editMscoaInput\" [mscoaDeleteInput]=\"deleteMscoaInput\"\r\n (valueChange)=\"elementConfigurationChanged($event, element)\" [formInputs]=\"(vm.formInputs) || []\"\r\n (blur)=\"elementBlur($event, element)\">\r\n </lib-t-dynamic-data-edit>\r\n } @placeholder {\r\n <div class=\"ee-element-loading\">\r\n <mat-spinner diameter=\"18\"></mat-spinner>\r\n </div>\r\n }\r\n </div>\r\n }\r\n </div>\r\n </mat-expansion-panel>\r\n }\r\n</mat-accordion>\r\n} @placeholder {\r\n<div class=\"ee-loading\">\r\n <mat-spinner diameter=\"44\" />\r\n</div>\r\n} @error {\r\n<div class=\"ee-error\">\r\n <mat-icon class=\"ee-error-icon\" aria-hidden=\"false\">error_outline</mat-icon>\r\n <h3 class=\"ee-error-title\">Error loading element editor</h3>\r\n <p class=\"ee-error-text\">An error occurred while loading the element editor. Please try again later.</p>\r\n</div>\r\n}\r\n\r\n<!-- Diagnostic section -->\r\n<div class=\"ee-section-bar ee-section-bar--diagnostic\">\r\n <span class=\"ee-section-eyebrow\">Diagnostic data</span>\r\n <span class=\"spacer\"></span>\r\n</div>\r\n\r\n<mat-accordion class=\"ee-accordion\" togglePosition=\"before\" multi>\r\n @if(((vm.inputInEditValidationErrors) || []).length > 0) {\r\n <mat-expansion-panel class=\"ee-panel mat-elevation-z0\">\r\n <mat-expansion-panel-header class=\"ee-panel-header\" collapsedHeight=\"48px\" expandedHeight=\"48px\">\r\n <mat-panel-title class=\"ee-panel-title\">\r\n <span class=\"ee-panel-label\">Validation Errors</span>\r\n <span class=\"spacer\"></span>\r\n <span class=\"ee-item-value ee-item-value--error\">{{ (vm.inputInEditValidationErrors).length }}</span>\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <div class=\"ee-panel-body\">\r\n <div class=\"ee-error-summary\">\r\n <h3 class=\"ee-error-summary-title\">All configuration errors</h3>\r\n <p class=\"ee-error-summary-text\">\r\n {{ (vm.inputInEditValidationErrors).length }} errors found. When an error is found, the input will\r\n not be saved.\r\n </p>\r\n <ul class=\"ee-error-list\">\r\n @for(error of (vm.inputInEditValidationErrors); track $index) {\r\n <li><strong>{{ error.key }}</strong> {{ error.message }}</li>\r\n }\r\n </ul>\r\n </div>\r\n </div>\r\n </mat-expansion-panel>\r\n }\r\n <mat-expansion-panel class=\"ee-panel mat-elevation-z0\">\r\n <mat-expansion-panel-header class=\"ee-panel-header\" collapsedHeight=\"48px\" expandedHeight=\"48px\">\r\n <mat-panel-title class=\"ee-panel-title\">\r\n <span class=\"ee-panel-label\">Complete Virtual Model</span>\r\n <span class=\"spacer\"></span>\r\n <button mat-icon-button class=\"ee-diagnostic-btn\" matTooltip=\"Download debug data\"\r\n (click)=\"showDebugData(); $event.stopPropagation()\">\r\n <mat-icon>troubleshoot</mat-icon>\r\n </button>\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <div class=\"ee-panel-body\">\r\n <lib-t-dynamic-data-view [data]=\"({\r\n 'Default Input Template InEdit': vm.defaultInputInEdit,\r\n 'Input In Edit': vm.inputInEdit,\r\n 'Input Editor Sections': vm.inputElementEditorConfigs?.editorSections\r\n })\"></lib-t-dynamic-data-view>\r\n </div>\r\n </mat-expansion-panel>\r\n</mat-accordion>\r\n}\r\n", styles: ["@charset \"UTF-8\";:host{display:block}.spacer{flex:1 1 auto}.ee-section-bar{display:flex;align-items:center;gap:.5rem;padding:.625rem 1.25rem;background:var(--mat-sys-surface-container, var(--mat-app-surface))}.ee-section-bar--diagnostic{margin-top:1.5rem}.ee-section-eyebrow{font-size:.625rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--mat-sys-on-surface-variant)}.ee-section-count{font-size:.6875rem;font-weight:500;padding:.125rem .5rem;border-radius:999px;color:var(--mat-sys-on-surface-variant);background:var(--mat-sys-surface-container-highest, color-mix(in srgb, var(--mat-sys-on-surface) 6%, transparent))}.ee-accordion{display:block;padding:.75rem}.ee-accordion.mat-accordion ::ng-deep .mat-expansion-panel.ee-panel{margin:0 0 .75rem;border-radius:8px;border:1px solid color-mix(in srgb,var(--mat-sys-outline) 15%,transparent);background:var(--mat-sys-surface-container, var(--mat-app-surface));box-shadow:none;overflow:hidden;transition:border-color .3s cubic-bezier(.16,1,.3,1)}.ee-accordion.mat-accordion ::ng-deep .mat-expansion-panel.ee-panel:last-child{margin-bottom:0}.ee-accordion.mat-accordion ::ng-deep .mat-expansion-panel.ee-panel:hover{border-color:var(--mat-sys-primary)}.ee-panel ::ng-deep .mat-expansion-panel-header{padding:0 .875rem}.ee-panel ::ng-deep .mat-expansion-panel-header.mat-expanded{background:color-mix(in srgb,var(--mat-sys-primary) 6%,transparent)}.ee-panel ::ng-deep .mat-expansion-panel-body{padding:0 .875rem .875rem}.ee-panel-title{display:flex;align-items:center;margin-right:0}.ee-panel-label{font-size:.8125rem;font-weight:600;letter-spacing:-.005em;color:var(--mat-sys-on-surface)}.ee-panel-error{font-size:1.125rem;width:1.125rem;height:1.125rem}.ee-item-value{font-size:.75rem;font-weight:500;padding:.125rem .5rem;border-radius:6px;color:var(--mat-sys-on-surface-variant);background:var(--mat-sys-surface-container-highest, color-mix(in srgb, var(--mat-sys-on-surface) 6%, transparent));white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:12rem}.ee-item-value--error{color:var(--mat-sys-error);background:color-mix(in srgb,var(--mat-sys-error) 12%,transparent)}.ee-panel-body{display:flex;flex-direction:column;gap:1rem;padding-top:.75rem;border-top:1px solid color-mix(in srgb,var(--mat-sys-outline) 10%,transparent)}.ee-element{margin:0}.ee-element-loading{display:flex;justify-content:center;align-items:center;padding:1.75rem}.ee-input-switcher{padding:0;margin:0;border-radius:8px;overflow:hidden;border:1px solid color-mix(in srgb,var(--mat-sys-outline) 15%,transparent);background:var(--mat-sys-surface-container-high, var(--mat-app-surface))}.ee-input-switcher ::ng-deep .mat-mdc-list-item{transition:background .3s cubic-bezier(.16,1,.3,1)}.ee-input-switcher ::ng-deep .mat-mdc-list-item:not(.mdc-list-item--disabled):hover{background:color-mix(in srgb,var(--mat-sys-primary) 8%,transparent);cursor:pointer}.ee-input-switcher ::ng-deep .mat-mdc-list-item [matListItemMeta] mat-icon{color:var(--mat-sys-on-surface-variant);font-size:1.125rem;width:1.125rem;height:1.125rem}mat-icon[matListItemAvatar]{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;font-size:24px;line-height:1;border-radius:50%;background:var(--mat-sys-surface-container-highest, var(--mat-app-surface-variant));color:var(--mat-sys-on-surface-variant)}.ee-diagnostic-btn{color:var(--mat-sys-on-surface-variant)}.ee-error-summary{border:1px solid color-mix(in srgb,var(--mat-sys-error) 40%,transparent);border-radius:8px;padding:1rem;color:var(--mat-sys-error)}.ee-error-summary-title{margin:0 0 .5rem;font-size:.9375rem;font-weight:600}.ee-error-summary-text{margin:0 0 .75rem;font-size:.8125rem;line-height:1.4}.ee-error-list{margin:0;padding-left:1.25rem;font-size:.8125rem;line-height:1.5}.ee-loading{display:flex;justify-content:center;align-items:center;padding:3.5rem}.ee-error{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.375rem;padding:2.25rem 1.5rem;color:var(--mat-sys-on-surface-variant)}.ee-error-icon{color:var(--mat-sys-error);width:2rem;height:2rem;font-size:2rem}.ee-error-title{margin:.25rem 0 0;font-size:.9375rem;font-weight:600;color:var(--mat-sys-on-surface)}.ee-error-text{margin:0;font-size:.8125rem;line-height:1.4}\n"], dependencies: [{ kind: "ngmodule", type: MatExpansionModule }, { kind: "directive", type: i5.MatAccordion, selector: "mat-accordion", inputs: ["hideToggle", "displayMode", "togglePosition"], exportAs: ["matAccordion"] }, { kind: "component", type: i5.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i5.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: i5.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatListModule }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5$1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { 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: MatButtonModule }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatCardModule }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: TDynamicDataViewComponent, selector: "lib-t-dynamic-data-view", inputs: ["data"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, deferBlockDependencies: [() => [i5.MatAccordion, i5.MatExpansionPanel, i5.MatExpansionPanelHeader, i5.MatExpansionPanelTitle, i3.MatIcon, i6.MatNavList, i6.MatListItem, i6.MatListItemAvatar, i6.MatListItemTitle, i6.MatListItemMeta, i5$1.MatTooltip, i4.MatProgressSpinner], () => [TDynamicDataEditComponent]] }); }
129
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: InputElementEditorComponent, isStandalone: true, selector: "lib-input-element-editor", ngImport: i0, template: "@if (vm(); as vm) {\r\n<div class=\"ee-section-bar\">\r\n <span class=\"ee-section-eyebrow\">Element configuration</span>\r\n <span class=\"spacer\"></span>\r\n @if ((vm.inputElementEditorConfigs.editorSections || []).length) {\r\n <span class=\"ee-section-count\">{{ (vm.inputElementEditorConfigs.editorSections || []).length }} sections</span>\r\n }\r\n</div>\r\n\r\n@defer (on viewport) {\r\n<mat-accordion class=\"ee-accordion\" togglePosition=\"before\" multi>\r\n @for(section of (vm.inputElementEditorConfigs.editorSections || []); track section.id; let i = $index) {\r\n <mat-expansion-panel class=\"ee-panel mat-elevation-z0\">\r\n <mat-expansion-panel-header class=\"ee-panel-header\" collapsedHeight=\"48px\" expandedHeight=\"48px\">\r\n <mat-panel-title class=\"ee-panel-title\">\r\n <span class=\"ee-panel-label\">{{ section.label }}</span>\r\n <span class=\"spacer\"></span>\r\n @if (section.hasErrors) {\r\n <mat-icon class=\"ee-panel-error\" color=\"warn\">error</mat-icon>\r\n }\r\n @if (section.showItemValue && !!(vm.inputInEdit)) {\r\n <span class=\"ee-item-value\">{{ vm.inputInEdit[section.showItemValue] }}</span>\r\n }\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n\r\n <div class=\"ee-panel-body\">\r\n <!-- Input-type switcher (first section only) -->\r\n @if(i === 0) {\r\n <mat-nav-list class=\"ee-input-switcher\">\r\n <mat-list-item [disabled]=\"vm.inputInEdit?.systemDefault\" matTooltip=\"Change input element\"\r\n (click)=\"vm.inputInEdit?.systemDefault ? '' : clearInputInEdit()\">\r\n <mat-icon matListItemAvatar [attr.aria-label]=\"(vm.defaultInputInEdit)?.label\">\r\n {{ getInputIcon(vm.inputInEdit?.element) }}\r\n </mat-icon>\r\n <span matListItemTitle>{{ (vm.defaultInputInEdit)?.label }}</span>\r\n <span matListItemMeta>\r\n <mat-icon>arrow_forward_ios</mat-icon>\r\n </span>\r\n </mat-list-item>\r\n </mat-nav-list>\r\n }\r\n\r\n <!-- Section elements -->\r\n @for(element of section.elements; track element.id) {\r\n <div class=\"ee-element\">\r\n @defer (on viewport) {\r\n <lib-t-dynamic-data-edit [editorConfig]=\"element\" [data]=\"(vm.inputInEdit)\"\r\n [validationErrors]=\"element.computedErrors ?? null\" [mscoaSaveCustomInput]=\"saveMscoaCustomInput\"\r\n [mscoaEditInput]=\"editMscoaInput\" [mscoaDeleteInput]=\"deleteMscoaInput\"\r\n (valueChange)=\"elementConfigurationChanged($event, element)\" [formInputs]=\"(vm.formInputs) || []\"\r\n (blur)=\"elementBlur($event, element)\">\r\n </lib-t-dynamic-data-edit>\r\n } @placeholder {\r\n <div class=\"ee-element-loading\">\r\n <mat-spinner diameter=\"18\"></mat-spinner>\r\n </div>\r\n }\r\n </div>\r\n }\r\n </div>\r\n </mat-expansion-panel>\r\n }\r\n</mat-accordion>\r\n} @placeholder {\r\n<div class=\"ee-loading\">\r\n <mat-spinner diameter=\"44\" />\r\n</div>\r\n} @error {\r\n<div class=\"ee-error\">\r\n <mat-icon class=\"ee-error-icon\" aria-hidden=\"false\">error_outline</mat-icon>\r\n <h3 class=\"ee-error-title\">Error loading element editor</h3>\r\n <p class=\"ee-error-text\">An error occurred while loading the element editor. Please try again later.</p>\r\n</div>\r\n}\r\n\r\n<!-- Diagnostic section -->\r\n<div class=\"ee-section-bar ee-section-bar--diagnostic\">\r\n <span class=\"ee-section-eyebrow\">Diagnostic data</span>\r\n <span class=\"spacer\"></span>\r\n</div>\r\n\r\n<mat-accordion class=\"ee-accordion\" togglePosition=\"before\" multi>\r\n @if(((vm.inputInEditValidationErrors) || []).length > 0) {\r\n <mat-expansion-panel class=\"ee-panel mat-elevation-z0\">\r\n <mat-expansion-panel-header class=\"ee-panel-header\" collapsedHeight=\"48px\" expandedHeight=\"48px\">\r\n <mat-panel-title class=\"ee-panel-title\">\r\n <span class=\"ee-panel-label\">Validation Errors</span>\r\n <span class=\"spacer\"></span>\r\n <span class=\"ee-item-value ee-item-value--error\">{{ (vm.inputInEditValidationErrors).length }}</span>\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <div class=\"ee-panel-body\">\r\n <div class=\"ee-error-summary\">\r\n <h3 class=\"ee-error-summary-title\">All configuration errors</h3>\r\n <p class=\"ee-error-summary-text\">\r\n {{ (vm.inputInEditValidationErrors).length }} errors found. When an error is found, the input will\r\n not be saved.\r\n </p>\r\n <ul class=\"ee-error-list\">\r\n @for(error of (vm.inputInEditValidationErrors); track $index) {\r\n <li><strong>{{ error.key }}</strong> {{ error.message }}</li>\r\n }\r\n </ul>\r\n </div>\r\n </div>\r\n </mat-expansion-panel>\r\n }\r\n <mat-expansion-panel class=\"ee-panel mat-elevation-z0\">\r\n <mat-expansion-panel-header class=\"ee-panel-header\" collapsedHeight=\"48px\" expandedHeight=\"48px\">\r\n <mat-panel-title class=\"ee-panel-title\">\r\n <span class=\"ee-panel-label\">Complete Virtual Model</span>\r\n <span class=\"spacer\"></span>\r\n <button mat-icon-button class=\"ee-diagnostic-btn\" matTooltip=\"Download debug data\"\r\n (click)=\"showDebugData(); $event.stopPropagation()\">\r\n <mat-icon>troubleshoot</mat-icon>\r\n </button>\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <div class=\"ee-panel-body\">\r\n <lib-t-dynamic-data-view [data]=\"({\r\n 'Default Input Template InEdit': vm.defaultInputInEdit,\r\n 'Input In Edit': vm.inputInEdit,\r\n 'Input Editor Sections': vm.inputElementEditorConfigs?.editorSections\r\n })\"></lib-t-dynamic-data-view>\r\n </div>\r\n </mat-expansion-panel>\r\n</mat-accordion>\r\n}\r\n", styles: ["@charset \"UTF-8\";:host{display:block}.spacer{flex:1 1 auto}.ee-section-bar{display:flex;align-items:center;gap:.5rem;padding:.625rem 1.25rem;background:var(--mat-sys-surface-container, var(--mat-app-surface))}.ee-section-bar--diagnostic{margin-top:1.5rem}.ee-section-eyebrow{font-size:.625rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--mat-sys-on-surface-variant)}.ee-section-count{font-size:.6875rem;font-weight:500;padding:.125rem .5rem;border-radius:999px;color:var(--mat-sys-on-surface-variant);background:var(--mat-sys-surface-container-highest, color-mix(in srgb, var(--mat-sys-on-surface) 6%, transparent))}.ee-accordion{display:block;padding:.75rem}.ee-accordion.mat-accordion ::ng-deep .mat-expansion-panel.ee-panel{margin:0 0 .75rem;border-radius:8px;border:1px solid color-mix(in srgb,var(--mat-sys-outline) 15%,transparent);background:var(--mat-sys-surface-container, var(--mat-app-surface));box-shadow:none;overflow:hidden;transition:border-color .3s cubic-bezier(.16,1,.3,1)}.ee-accordion.mat-accordion ::ng-deep .mat-expansion-panel.ee-panel:last-child{margin-bottom:0}.ee-accordion.mat-accordion ::ng-deep .mat-expansion-panel.ee-panel:hover{border-color:var(--mat-sys-primary)}.ee-panel ::ng-deep .mat-expansion-panel-header{padding:0 .875rem}.ee-panel ::ng-deep .mat-expansion-panel-header.mat-expanded{background:color-mix(in srgb,var(--mat-sys-primary) 6%,transparent)}.ee-panel ::ng-deep .mat-expansion-panel-body{padding:0 .875rem .875rem}.ee-panel-title{display:flex;align-items:center;margin-right:0}.ee-panel-label{font-size:.8125rem;font-weight:600;letter-spacing:-.005em;color:var(--mat-sys-on-surface)}.ee-panel-error{font-size:1.125rem;width:1.125rem;height:1.125rem}.ee-item-value{font-size:.75rem;font-weight:500;padding:.125rem .5rem;border-radius:6px;color:var(--mat-sys-on-surface-variant);background:var(--mat-sys-surface-container-highest, color-mix(in srgb, var(--mat-sys-on-surface) 6%, transparent));white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:12rem}.ee-item-value--error{color:var(--mat-sys-error);background:color-mix(in srgb,var(--mat-sys-error) 12%,transparent)}.ee-panel-body{display:flex;flex-direction:column;gap:1rem;padding-top:.75rem;border-top:1px solid color-mix(in srgb,var(--mat-sys-outline) 10%,transparent)}.ee-element{margin:0}.ee-element-loading{display:flex;justify-content:center;align-items:center;padding:1.75rem}.ee-input-switcher{padding:0;margin:0;border-radius:8px;overflow:hidden;border:1px solid color-mix(in srgb,var(--mat-sys-outline) 15%,transparent);background:var(--mat-sys-surface-container-high, var(--mat-app-surface))}.ee-input-switcher ::ng-deep .mat-mdc-list-item{transition:background .3s cubic-bezier(.16,1,.3,1)}.ee-input-switcher ::ng-deep .mat-mdc-list-item:not(.mdc-list-item--disabled):hover{background:color-mix(in srgb,var(--mat-sys-primary) 8%,transparent);cursor:pointer}.ee-input-switcher ::ng-deep .mat-mdc-list-item [matListItemMeta] mat-icon{color:var(--mat-sys-on-surface-variant);font-size:1.125rem;width:1.125rem;height:1.125rem}mat-icon[matListItemAvatar]{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;font-size:24px;line-height:1;border-radius:50%;background:var(--mat-sys-surface-container-highest, var(--mat-app-surface-variant));color:var(--mat-sys-on-surface-variant)}.ee-diagnostic-btn{color:var(--mat-sys-on-surface-variant)}.ee-error-summary{border:1px solid color-mix(in srgb,var(--mat-sys-error) 40%,transparent);border-radius:8px;padding:1rem;color:var(--mat-sys-error)}.ee-error-summary-title{margin:0 0 .5rem;font-size:.9375rem;font-weight:600}.ee-error-summary-text{margin:0 0 .75rem;font-size:.8125rem;line-height:1.4}.ee-error-list{margin:0;padding-left:1.25rem;font-size:.8125rem;line-height:1.5}.ee-loading{display:flex;justify-content:center;align-items:center;padding:3.5rem}.ee-error{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.375rem;padding:2.25rem 1.5rem;color:var(--mat-sys-on-surface-variant)}.ee-error-icon{color:var(--mat-sys-error);width:2rem;height:2rem;font-size:2rem}.ee-error-title{margin:.25rem 0 0;font-size:.9375rem;font-weight:600;color:var(--mat-sys-on-surface)}.ee-error-text{margin:0;font-size:.8125rem;line-height:1.4}\n"], dependencies: [{ kind: "ngmodule", type: MatExpansionModule }, { kind: "directive", type: i1.MatAccordion, selector: "mat-accordion", inputs: ["hideToggle", "displayMode", "togglePosition"], exportAs: ["matAccordion"] }, { kind: "component", type: i1.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i1.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: i1.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatListModule }, { 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: MatProgressSpinnerModule }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatCardModule }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: TDynamicDataViewComponent, selector: "lib-t-dynamic-data-view", inputs: ["data"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, deferBlockDependencies: [() => [i1.MatAccordion, i1.MatExpansionPanel, i1.MatExpansionPanelHeader, i1.MatExpansionPanelTitle, i3.MatIcon, i6.MatNavList, i6.MatListItem, i6.MatListItemAvatar, i6.MatListItemTitle, i6.MatListItemMeta, i5.MatTooltip, i4.MatProgressSpinner], () => [TDynamicDataEditComponent]] }); }
130
130
  }
131
131
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: InputElementEditorComponent, decorators: [{
132
132
  type: Component,
@@ -168,7 +168,7 @@ class InputEditorComponent {
168
168
  return this.#store.formBuilderSelectors.inputInEditValidationErrors$;
169
169
  }
170
170
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: InputEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
171
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: InputEditorComponent, isStandalone: true, selector: "lib-input-editor", ngImport: i0, template: "<mat-card class=\"element-editor\" appearance=\"outlined\">\r\n <header class=\"ee-header\">\r\n <div class=\"ee-header-icon\" aria-hidden=\"true\">\r\n <mat-icon>tune</mat-icon>\r\n </div>\r\n <div class=\"ee-header-text\">\r\n <h2 class=\"ee-title\">\r\n {{\r\n !!(inputInEdit$|async)?.element\r\n ? \"Edit \" + (inputInEdit$|async)?.label + \" element\"\r\n : \"Setup Form Element\"\r\n }}\r\n </h2>\r\n <p class=\"ee-subtitle\">\r\n {{\r\n !!(inputInEdit$|async)?.element\r\n ? \"Configure the element below\"\r\n : \"Form elements are the components making up a form section. Their type is defined by behaviour and use case \u2014 for example, a date range picker is well suited to determining duration.\"\r\n }}\r\n </p>\r\n </div>\r\n <button mat-icon-button cdkDragHandle class=\"ee-drag\" aria-label=\"Drag to reposition\">\r\n <mat-icon>drag_indicator</mat-icon>\r\n </button>\r\n </header>\r\n\r\n <div class=\"ee-content\">\r\n @if(!!((inputInEdit$|async))?.element){\r\n <lib-input-element-editor></lib-input-element-editor>\r\n }@else{\r\n <lib-default-element></lib-default-element>\r\n }\r\n </div>\r\n\r\n <footer class=\"ee-actions\">\r\n <button (click)=\"closeEditor()\" mat-button class=\"ee-close\">Close</button>\r\n <span class=\"spacer\"></span>\r\n @if (!((inputInEdit$|async))?.id) {\r\n <button mat-flat-button (click)=\"saveInput()\" [disabled]=\"((validationErrors$|async)||[]).length>0\"\r\n color=\"primary\" class=\"ee-save\">Save new input</button>\r\n }\r\n </footer>\r\n</mat-card>\r\n", styles: ["@charset \"UTF-8\";:host{display:block}.spacer{flex:1 1 auto}.element-editor{display:flex;flex-direction:column;margin:1rem;max-height:calc(100vh - 2rem);padding:0;border-radius:12px;overflow:hidden;background:var(--mat-sys-surface, var(--mat-app-surface));border:1px solid color-mix(in srgb,var(--mat-sys-outline) 15%,transparent);box-shadow:0 2px 8px #00000014}:host-context(.dark) .element-editor{box-shadow:0 1px 3px #0000004d}.ee-header,.ee-actions{flex-shrink:0}.ee-header{display:flex;align-items:flex-start;gap:.75rem;padding:1rem 1.25rem;background:color-mix(in srgb,var(--mat-sys-primary) 4%,var(--mat-sys-surface, transparent));border-bottom:1px solid color-mix(in srgb,var(--mat-sys-outline) 10%,transparent)}.ee-header-icon{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:2.75rem;height:2.75rem;border-radius:8px;background:color-mix(in srgb,var(--mat-sys-primary) 12%,transparent)}.ee-header-icon mat-icon{width:1.5rem;height:1.5rem;font-size:1.5rem;line-height:1.5rem;color:var(--mat-sys-primary)}.ee-header-text{flex:1 1 auto;min-width:0;padding-top:.125rem}.ee-title{margin:0;font-size:.9375rem;font-weight:600;line-height:1.3;letter-spacing:-.01em;color:var(--mat-sys-on-surface)}.ee-subtitle{margin:.25rem 0 0;font-size:.8125rem;line-height:1.35;color:var(--mat-sys-on-surface-variant)}.ee-drag{flex-shrink:0;color:var(--mat-sys-on-surface-variant);cursor:grab}.ee-drag:active{cursor:grabbing}.ee-content{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}.ee-actions{display:flex;align-items:center;gap:.75rem;padding:1rem 1.25rem 1.25rem;background:var(--mat-sys-surface-container, var(--mat-app-surface));border-top:1px solid color-mix(in srgb,var(--mat-sys-outline) 10%,transparent)}.ee-close{font-size:.8125rem;font-weight:500;color:var(--mat-sys-on-surface-variant)}.ee-save{min-width:8.75rem;height:2.5rem;border-radius:8px;font-size:.8125rem;font-weight:600;letter-spacing:.01em}\n"], dependencies: [{ kind: "ngmodule", type: MatCardModule }, { kind: "component", type: i3$1.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatDividerModule }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i1.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "component", type: DefaultElementComponent, selector: "lib-default-element" }, { kind: "component", type: InputElementEditorComponent, selector: "lib-input-element-editor" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
171
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: InputEditorComponent, isStandalone: true, selector: "lib-input-editor", ngImport: i0, template: "<mat-card class=\"element-editor\" appearance=\"outlined\">\r\n <header class=\"ee-header\">\r\n <div class=\"ee-header-icon\" aria-hidden=\"true\">\r\n <mat-icon>tune</mat-icon>\r\n </div>\r\n <div class=\"ee-header-text\">\r\n <h2 class=\"ee-title\">\r\n {{\r\n !!(inputInEdit$|async)?.element\r\n ? \"Edit \" + (inputInEdit$|async)?.label + \" element\"\r\n : \"Setup Form Element\"\r\n }}\r\n </h2>\r\n <p class=\"ee-subtitle\">\r\n {{\r\n !!(inputInEdit$|async)?.element\r\n ? \"Configure the element below\"\r\n : \"Form elements are the components making up a form section. Their type is defined by behaviour and use case \u2014 for example, a date range picker is well suited to determining duration.\"\r\n }}\r\n </p>\r\n </div>\r\n <button mat-icon-button cdkDragHandle class=\"ee-drag\" aria-label=\"Drag to reposition\">\r\n <mat-icon>drag_indicator</mat-icon>\r\n </button>\r\n </header>\r\n\r\n <div class=\"ee-content\">\r\n @if(!!((inputInEdit$|async))?.element){\r\n <lib-input-element-editor></lib-input-element-editor>\r\n }@else{\r\n <lib-default-element></lib-default-element>\r\n }\r\n </div>\r\n\r\n <footer class=\"ee-actions\">\r\n <button (click)=\"closeEditor()\" mat-button class=\"ee-close\">Close</button>\r\n <span class=\"spacer\"></span>\r\n @if (!((inputInEdit$|async))?.id) {\r\n <button mat-flat-button (click)=\"saveInput()\" [disabled]=\"((validationErrors$|async)||[]).length>0\"\r\n color=\"primary\" class=\"ee-save\">Save new input</button>\r\n }\r\n </footer>\r\n</mat-card>\r\n", styles: ["@charset \"UTF-8\";:host{display:block}.spacer{flex:1 1 auto}.element-editor{display:flex;flex-direction:column;margin:1rem;max-height:calc(100vh - 2rem);padding:0;border-radius:12px;overflow:hidden;background:var(--mat-sys-surface, var(--mat-app-surface));border:1px solid color-mix(in srgb,var(--mat-sys-outline) 15%,transparent);box-shadow:0 2px 8px #00000014}:host-context(.dark) .element-editor{box-shadow:0 1px 3px #0000004d}.ee-header,.ee-actions{flex-shrink:0}.ee-header{display:flex;align-items:flex-start;gap:.75rem;padding:1rem 1.25rem;background:color-mix(in srgb,var(--mat-sys-primary) 4%,var(--mat-sys-surface, transparent));border-bottom:1px solid color-mix(in srgb,var(--mat-sys-outline) 10%,transparent)}.ee-header-icon{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:2.75rem;height:2.75rem;border-radius:8px;background:color-mix(in srgb,var(--mat-sys-primary) 12%,transparent)}.ee-header-icon mat-icon{width:1.5rem;height:1.5rem;font-size:1.5rem;line-height:1.5rem;color:var(--mat-sys-primary)}.ee-header-text{flex:1 1 auto;min-width:0;padding-top:.125rem}.ee-title{margin:0;font-size:.9375rem;font-weight:600;line-height:1.3;letter-spacing:-.01em;color:var(--mat-sys-on-surface)}.ee-subtitle{margin:.25rem 0 0;font-size:.8125rem;line-height:1.35;color:var(--mat-sys-on-surface-variant)}.ee-drag{flex-shrink:0;color:var(--mat-sys-on-surface-variant);cursor:grab}.ee-drag:active{cursor:grabbing}.ee-content{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}.ee-actions{display:flex;align-items:center;gap:.75rem;padding:1rem 1.25rem 1.25rem;background:var(--mat-sys-surface-container, var(--mat-app-surface));border-top:1px solid color-mix(in srgb,var(--mat-sys-outline) 10%,transparent)}.ee-close{font-size:.8125rem;font-weight:500;color:var(--mat-sys-on-surface-variant)}.ee-save{min-width:8.75rem;height:2.5rem;border-radius:8px;font-size:.8125rem;font-weight:600;letter-spacing:.01em}\n"], dependencies: [{ kind: "ngmodule", type: MatCardModule }, { kind: "component", type: i3$1.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i1$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatDividerModule }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i1$2.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "component", type: DefaultElementComponent, selector: "lib-default-element" }, { kind: "component", type: InputElementEditorComponent, selector: "lib-input-element-editor" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
172
172
  }
173
173
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: InputEditorComponent, decorators: [{
174
174
  type: Component,
@@ -186,4 +186,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
186
186
  }] });
187
187
 
188
188
  export { InputEditorComponent };
189
- //# sourceMappingURL=ngx-t-forms-input-editor.component-DxrkUbed.mjs.map
189
+ //# sourceMappingURL=ngx-t-forms-input-editor.component-DU2sgo4i.mjs.map