ngx-t-forms 3.1.7 → 3.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/fesm2022/{ngx-t-forms-api-endpoint-config.component-CCwUtGOH.mjs → ngx-t-forms-api-endpoint-config.component-BbS1dY0l.mjs} +10 -10
  2. package/fesm2022/ngx-t-forms-api-endpoint-config.component-BbS1dY0l.mjs.map +1 -0
  3. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-BUCFidjW.mjs → ngx-t-forms-auto-complete-input-element.component-B8eluIrh.mjs} +9 -9
  4. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-BUCFidjW.mjs.map → ngx-t-forms-auto-complete-input-element.component-B8eluIrh.mjs.map} +1 -1
  5. package/fesm2022/ngx-t-forms-autofillToken-D-BYfzxR.mjs +189 -0
  6. package/fesm2022/ngx-t-forms-autofillToken-D-BYfzxR.mjs.map +1 -0
  7. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-C92Y7CW_.mjs → ngx-t-forms-basic-input-input-element.component-SSLXyCz9.mjs} +16 -8
  8. package/fesm2022/ngx-t-forms-basic-input-input-element.component-SSLXyCz9.mjs.map +1 -0
  9. package/fesm2022/ngx-t-forms-calculated-field-rules.component-Cn_rxXMX.mjs +603 -0
  10. package/fesm2022/ngx-t-forms-calculated-field-rules.component-Cn_rxXMX.mjs.map +1 -0
  11. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-CWJMjBoK.mjs → ngx-t-forms-chip-options-creator-editor.component-CGm5tgsp.mjs} +2 -2
  12. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-CWJMjBoK.mjs.map → ngx-t-forms-chip-options-creator-editor.component-CGm5tgsp.mjs.map} +1 -1
  13. package/fesm2022/ngx-t-forms-clamp-probe.directive-DMUdeVrM.mjs +99 -0
  14. package/fesm2022/ngx-t-forms-clamp-probe.directive-DMUdeVrM.mjs.map +1 -0
  15. package/fesm2022/{ngx-t-forms-conditional-display-config.component-zauBVptA.mjs → ngx-t-forms-conditional-display-config.component-DIMIWTKj.mjs} +2 -2
  16. package/fesm2022/{ngx-t-forms-conditional-display-config.component-zauBVptA.mjs.map → ngx-t-forms-conditional-display-config.component-DIMIWTKj.mjs.map} +1 -1
  17. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-C096Ib2V.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-DKb3E9gA.mjs} +4 -4
  18. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-C096Ib2V.mjs.map → ngx-t-forms-config-mscoa-additional-inputs.component-DKb3E9gA.mjs.map} +1 -1
  19. package/fesm2022/{ngx-t-forms-data-source-picker.component-WkSQqjd-.mjs → ngx-t-forms-data-source-picker.component-BG_sr5VH.mjs} +8 -8
  20. package/fesm2022/{ngx-t-forms-data-source-picker.component-WkSQqjd-.mjs.map → ngx-t-forms-data-source-picker.component-BG_sr5VH.mjs.map} +1 -1
  21. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-Dtzq25sw.mjs → ngx-t-forms-date-picker-input-element.component-vUlUuzJ0.mjs} +10 -10
  22. package/fesm2022/ngx-t-forms-date-picker-input-element.component-vUlUuzJ0.mjs.map +1 -0
  23. package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-W8KV-zoC.mjs → ngx-t-forms-date-range-picker-input-element.component-YVE_s-7Y.mjs} +7 -7
  24. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-YVE_s-7Y.mjs.map +1 -0
  25. package/fesm2022/{ngx-t-forms-date-time-picker-input-element.component-CQXZDwAo.mjs → ngx-t-forms-date-time-picker-input-element.component-BlOS8NdF.mjs} +11 -10
  26. package/fesm2022/ngx-t-forms-date-time-picker-input-element.component-BlOS8NdF.mjs.map +1 -0
  27. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-u2UUPdAo.mjs +623 -0
  28. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-u2UUPdAo.mjs.map +1 -0
  29. package/fesm2022/{ngx-t-forms-document-picker.component-CvATcveO.mjs → ngx-t-forms-document-picker.component-DOYyRgh4.mjs} +44 -262
  30. package/fesm2022/ngx-t-forms-document-picker.component-DOYyRgh4.mjs.map +1 -0
  31. package/fesm2022/{ngx-t-forms-editor-input-element.component-BqofP5-4.mjs → ngx-t-forms-editor-input-element.component-BvZPNjQX.mjs} +6 -6
  32. package/fesm2022/{ngx-t-forms-editor-input-element.component-BqofP5-4.mjs.map → ngx-t-forms-editor-input-element.component-BvZPNjQX.mjs.map} +1 -1
  33. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-BAQx2BLX.mjs → ngx-t-forms-file-upload-input-element.component-CONELqoi.mjs} +10 -10
  34. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-BAQx2BLX.mjs.map → ngx-t-forms-file-upload-input-element.component-CONELqoi.mjs.map} +1 -1
  35. package/fesm2022/ngx-t-forms-form-copy-lint.component-TCSe-27-.mjs +248 -0
  36. package/fesm2022/ngx-t-forms-form-copy-lint.component-TCSe-27-.mjs.map +1 -0
  37. package/fesm2022/{ngx-t-forms-form-input-selector.component-M6O7-j2Q.mjs → ngx-t-forms-form-input-selector.component-Bdkuzw0R.mjs} +2 -2
  38. package/fesm2022/{ngx-t-forms-form-input-selector.component-M6O7-j2Q.mjs.map → ngx-t-forms-form-input-selector.component-Bdkuzw0R.mjs.map} +1 -1
  39. package/fesm2022/{ngx-t-forms-form-json-view.component-Dd-EMosV.mjs → ngx-t-forms-form-json-view.component-CDcbgWgN.mjs} +2 -2
  40. package/fesm2022/{ngx-t-forms-form-json-view.component-Dd-EMosV.mjs.map → ngx-t-forms-form-json-view.component-CDcbgWgN.mjs.map} +1 -1
  41. package/fesm2022/{ngx-t-forms-form-section-stepper.component-B1dYMlCC.mjs → ngx-t-forms-form-section-stepper.component-CqLSI8zP.mjs} +7 -7
  42. package/fesm2022/{ngx-t-forms-form-section-stepper.component-B1dYMlCC.mjs.map → ngx-t-forms-form-section-stepper.component-CqLSI8zP.mjs.map} +1 -1
  43. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-S2qfSAT-.mjs → ngx-t-forms-forms-builder-menu.component-DFCVe_Fq.mjs} +185 -15
  44. package/fesm2022/ngx-t-forms-forms-builder-menu.component-DFCVe_Fq.mjs.map +1 -0
  45. package/fesm2022/ngx-t-forms-forms-native-date-adapter-h6fClNMS.mjs +187 -0
  46. package/fesm2022/ngx-t-forms-forms-native-date-adapter-h6fClNMS.mjs.map +1 -0
  47. package/fesm2022/{ngx-t-forms-geo-location.component-whY7YIMk.mjs → ngx-t-forms-geo-location.component-DA3ATrvw.mjs} +8 -8
  48. package/fesm2022/{ngx-t-forms-geo-location.component-whY7YIMk.mjs.map → ngx-t-forms-geo-location.component-DA3ATrvw.mjs.map} +1 -1
  49. package/fesm2022/{ngx-t-forms-header-template-editor.component-BLn_-jPM.mjs → ngx-t-forms-header-template-editor.component-B9Cj8dOI.mjs} +13 -5
  50. package/fesm2022/ngx-t-forms-header-template-editor.component-B9Cj8dOI.mjs.map +1 -0
  51. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-D05NKiWm.mjs → ngx-t-forms-image-capture-input-element.component-C9oz_ZjA.mjs} +8 -8
  52. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-D05NKiWm.mjs.map → ngx-t-forms-image-capture-input-element.component-C9oz_ZjA.mjs.map} +1 -1
  53. package/fesm2022/ngx-t-forms-index-CSXX8RTm.mjs +2 -0
  54. package/fesm2022/ngx-t-forms-index-CSXX8RTm.mjs.map +1 -0
  55. package/fesm2022/{ngx-t-forms-input-custom.component-CGz6j56m.mjs → ngx-t-forms-input-custom.component-CqIr5wpy.mjs} +148 -27
  56. package/fesm2022/ngx-t-forms-input-custom.component-CqIr5wpy.mjs.map +1 -0
  57. package/fesm2022/{ngx-t-forms-input-editor.component-DxrkUbed.mjs → ngx-t-forms-input-editor.component-DU2sgo4i.mjs} +9 -9
  58. package/fesm2022/{ngx-t-forms-input-editor.component-DxrkUbed.mjs.map → ngx-t-forms-input-editor.component-DU2sgo4i.mjs.map} +1 -1
  59. package/fesm2022/{ngx-t-forms-map-mat-options-keys-Cu_L5CRA.mjs → ngx-t-forms-map-mat-options-keys-WfFq_0tS.mjs} +2 -2
  60. package/fesm2022/{ngx-t-forms-map-mat-options-keys-Cu_L5CRA.mjs.map → ngx-t-forms-map-mat-options-keys-WfFq_0tS.mjs.map} +1 -1
  61. package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-B98Hv4M1.mjs → ngx-t-forms-mat-chip-list-editor.component-CKnvqeix.mjs} +2 -2
  62. package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-B98Hv4M1.mjs.map → ngx-t-forms-mat-chip-list-editor.component-CKnvqeix.mjs.map} +1 -1
  63. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CSnHK6ZR.mjs → ngx-t-forms-missing-form-configs.component-B5dDbmpj.mjs} +4 -4
  64. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CSnHK6ZR.mjs.map → ngx-t-forms-missing-form-configs.component-B5dDbmpj.mjs.map} +1 -1
  65. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-97tHCSyK.mjs +37 -0
  66. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-97tHCSyK.mjs.map +1 -0
  67. package/fesm2022/{ngx-t-forms-mscoa-config.component-CBqzX9H7.mjs → ngx-t-forms-mscoa-config.component-BtLd7F2n.mjs} +10 -10
  68. package/fesm2022/{ngx-t-forms-mscoa-config.component-CBqzX9H7.mjs.map → ngx-t-forms-mscoa-config.component-BtLd7F2n.mjs.map} +1 -1
  69. package/fesm2022/{ngx-t-forms-mscoa-error-display.component-BDPi6w2E.mjs → ngx-t-forms-mscoa-error-display.component-Bmt1vboD.mjs} +4 -4
  70. package/fesm2022/{ngx-t-forms-mscoa-error-display.component-BDPi6w2E.mjs.map → ngx-t-forms-mscoa-error-display.component-Bmt1vboD.mjs.map} +1 -1
  71. package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-Cr1HXTjG.mjs → ngx-t-forms-mscoa-segment-config.component-DrzpixbK.mjs} +9 -9
  72. package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-Cr1HXTjG.mjs.map → ngx-t-forms-mscoa-segment-config.component-DrzpixbK.mjs.map} +1 -1
  73. package/fesm2022/{ngx-t-forms-mscoa-temporary-hint.component-g7DosiVb.mjs → ngx-t-forms-mscoa-temporary-hint.component-B1Z-IXSL.mjs} +3 -3
  74. package/fesm2022/{ngx-t-forms-mscoa-temporary-hint.component-g7DosiVb.mjs.map → ngx-t-forms-mscoa-temporary-hint.component-B1Z-IXSL.mjs.map} +1 -1
  75. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-ddpips7E.mjs +3592 -0
  76. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-ddpips7E.mjs.map +1 -0
  77. package/fesm2022/{ngx-t-forms-ngx-t-forms-Dt4iPwb-.mjs → ngx-t-forms-ngx-t-forms-C1kZpYIM.mjs} +17432 -6875
  78. package/fesm2022/ngx-t-forms-ngx-t-forms-C1kZpYIM.mjs.map +1 -0
  79. package/fesm2022/ngx-t-forms-paginated-selection-table-B7TyhJnh.mjs +596 -0
  80. package/fesm2022/ngx-t-forms-paginated-selection-table-B7TyhJnh.mjs.map +1 -0
  81. package/fesm2022/{ngx-t-forms-payload-template-editor.component-Dx0pI0A1.mjs → ngx-t-forms-payload-template-editor.component-DVL4aBuG.mjs} +13 -5
  82. package/fesm2022/ngx-t-forms-payload-template-editor.component-DVL4aBuG.mjs.map +1 -0
  83. package/fesm2022/{ngx-t-forms-pipeline-generator.component-VySkMHQI.mjs → ngx-t-forms-pipeline-generator.component-DpqipW6G.mjs} +15 -15
  84. package/fesm2022/{ngx-t-forms-pipeline-generator.component-VySkMHQI.mjs.map → ngx-t-forms-pipeline-generator.component-DpqipW6G.mjs.map} +1 -1
  85. package/fesm2022/{ngx-t-forms-quill-input.component-BLaPFcJE.mjs → ngx-t-forms-quill-input.component-x9CHGOJy.mjs} +2 -2
  86. package/fesm2022/{ngx-t-forms-quill-input.component-BLaPFcJE.mjs.map → ngx-t-forms-quill-input.component-x9CHGOJy.mjs.map} +1 -1
  87. package/fesm2022/{ngx-t-forms-record-list-manager.component-qlizX9F4.mjs → ngx-t-forms-record-list-manager.component-BGg86NER.mjs} +7 -7
  88. package/fesm2022/{ngx-t-forms-record-list-manager.component-qlizX9F4.mjs.map → ngx-t-forms-record-list-manager.component-BGg86NER.mjs.map} +1 -1
  89. package/fesm2022/ngx-t-forms-required-inputs.component-CI9nLVXe.mjs +281 -0
  90. package/fesm2022/ngx-t-forms-required-inputs.component-CI9nLVXe.mjs.map +1 -0
  91. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-CLYe2Lf_.mjs → ngx-t-forms-rest-api-call-setup.component-B4LzPwxg.mjs} +5 -5
  92. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-CLYe2Lf_.mjs.map → ngx-t-forms-rest-api-call-setup.component-B4LzPwxg.mjs.map} +1 -1
  93. package/fesm2022/{ngx-t-forms-section-report.component-foLHlD-I.mjs → ngx-t-forms-section-report.component-BS2CV_xl.mjs} +4 -4
  94. package/fesm2022/{ngx-t-forms-section-report.component-foLHlD-I.mjs.map → ngx-t-forms-section-report.component-BS2CV_xl.mjs.map} +1 -1
  95. package/fesm2022/ngx-t-forms-select-input-element.component-C5qjqCXW.mjs +281 -0
  96. package/fesm2022/ngx-t-forms-select-input-element.component-C5qjqCXW.mjs.map +1 -0
  97. package/fesm2022/{ngx-t-forms-selection-options-editor.component-D4luMX5c.mjs → ngx-t-forms-selection-options-editor.component-B6sYvtcj.mjs} +6 -6
  98. package/fesm2022/{ngx-t-forms-selection-options-editor.component-D4luMX5c.mjs.map → ngx-t-forms-selection-options-editor.component-B6sYvtcj.mjs.map} +1 -1
  99. package/fesm2022/{ngx-t-forms-t-workflow-picker.component-D0ttyEex.mjs → ngx-t-forms-t-workflow-picker.component-xDbl63v1.mjs} +3 -3
  100. package/fesm2022/{ngx-t-forms-t-workflow-picker.component-D0ttyEex.mjs.map → ngx-t-forms-t-workflow-picker.component-xDbl63v1.mjs.map} +1 -1
  101. package/fesm2022/ngx-t-forms-textarea-input-element.component-ri0r0ujE.mjs +161 -0
  102. package/fesm2022/ngx-t-forms-textarea-input-element.component-ri0r0ujE.mjs.map +1 -0
  103. package/fesm2022/ngx-t-forms-toggle-input-element.component-CXUqCipx.mjs +124 -0
  104. package/fesm2022/ngx-t-forms-toggle-input-element.component-CXUqCipx.mjs.map +1 -0
  105. package/fesm2022/{ngx-t-forms-token-text-input.component-BAjGepTM.mjs → ngx-t-forms-token-text-input.component-BWmoGQfi.mjs} +4 -4
  106. package/fesm2022/{ngx-t-forms-token-text-input.component-BAjGepTM.mjs.map → ngx-t-forms-token-text-input.component-BWmoGQfi.mjs.map} +1 -1
  107. package/fesm2022/{ngx-t-forms-validators-config.component-DVB88bgW.mjs → ngx-t-forms-validators-config.component-DEm9M5s9.mjs} +5 -5
  108. package/fesm2022/{ngx-t-forms-validators-config.component-DVB88bgW.mjs.map → ngx-t-forms-validators-config.component-DEm9M5s9.mjs.map} +1 -1
  109. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-LoF_fpHu.mjs → ngx-t-forms-workflow-adjudication.component-BOC9Z40E.mjs} +96 -35
  110. package/fesm2022/ngx-t-forms-workflow-adjudication.component-BOC9Z40E.mjs.map +1 -0
  111. package/fesm2022/ngx-t-forms.mjs +1 -1
  112. package/package.json +2 -2
  113. package/types/ngx-t-forms.d.ts +2864 -168
  114. package/fesm2022/ngx-t-forms-api-endpoint-config.component-CCwUtGOH.mjs.map +0 -1
  115. package/fesm2022/ngx-t-forms-basic-input-input-element.component-C92Y7CW_.mjs.map +0 -1
  116. package/fesm2022/ngx-t-forms-calculated-field-rules.component-33ZARq4R.mjs +0 -603
  117. package/fesm2022/ngx-t-forms-calculated-field-rules.component-33ZARq4R.mjs.map +0 -1
  118. package/fesm2022/ngx-t-forms-date-picker-input-element.component-Dtzq25sw.mjs.map +0 -1
  119. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-W8KV-zoC.mjs.map +0 -1
  120. package/fesm2022/ngx-t-forms-date-time-picker-input-element.component-CQXZDwAo.mjs.map +0 -1
  121. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-3LcpNBQI.mjs +0 -373
  122. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-3LcpNBQI.mjs.map +0 -1
  123. package/fesm2022/ngx-t-forms-document-picker.component-CvATcveO.mjs.map +0 -1
  124. package/fesm2022/ngx-t-forms-forms-builder-menu.component-S2qfSAT-.mjs.map +0 -1
  125. package/fesm2022/ngx-t-forms-header-template-editor.component-BLn_-jPM.mjs.map +0 -1
  126. package/fesm2022/ngx-t-forms-index-BnK4nGDh.mjs +0 -2
  127. package/fesm2022/ngx-t-forms-index-BnK4nGDh.mjs.map +0 -1
  128. package/fesm2022/ngx-t-forms-input-custom.component-CGz6j56m.mjs.map +0 -1
  129. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-BUj7wGyx.mjs +0 -38
  130. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-BUj7wGyx.mjs.map +0 -1
  131. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CfZLcuuu.mjs +0 -2336
  132. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CfZLcuuu.mjs.map +0 -1
  133. package/fesm2022/ngx-t-forms-ngx-t-forms-Dt4iPwb-.mjs.map +0 -1
  134. package/fesm2022/ngx-t-forms-paginated-selection-table-lMTD1N6B.mjs +0 -555
  135. package/fesm2022/ngx-t-forms-paginated-selection-table-lMTD1N6B.mjs.map +0 -1
  136. package/fesm2022/ngx-t-forms-payload-template-editor.component-Dx0pI0A1.mjs.map +0 -1
  137. package/fesm2022/ngx-t-forms-required-inputs.component-DY37Qrnj.mjs +0 -271
  138. package/fesm2022/ngx-t-forms-required-inputs.component-DY37Qrnj.mjs.map +0 -1
  139. package/fesm2022/ngx-t-forms-select-input-element.component-CvrNfvXa.mjs +0 -160
  140. package/fesm2022/ngx-t-forms-select-input-element.component-CvrNfvXa.mjs.map +0 -1
  141. package/fesm2022/ngx-t-forms-textarea-input-element.component-BWyxWDvp.mjs +0 -95
  142. package/fesm2022/ngx-t-forms-textarea-input-element.component-BWyxWDvp.mjs.map +0 -1
  143. package/fesm2022/ngx-t-forms-toggle-input-element.component-CpYC2ivQ.mjs +0 -93
  144. package/fesm2022/ngx-t-forms-toggle-input-element.component-CpYC2ivQ.mjs.map +0 -1
  145. package/fesm2022/ngx-t-forms-workflow-adjudication.component-LoF_fpHu.mjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-t-forms-forms-builder-menu.component-DFCVe_Fq.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/select-form-template/select-form-template.component.ts","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/select-form-template/select-form-template.component.html","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/form-submissions-config/config.ts","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/form-submissions-config/form-submissions-config.component.ts","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/form-submissions-config/form-submissions-config.component.html","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/form-details-dialog/form-details-dialog.component.ts","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/form-details-dialog/form-details-dialog.component.html","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/forms-builder-menu/forms-builder-menu.component.ts","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/forms-builder-menu/forms-builder-menu.component.html"],"sourcesContent":["import { AsyncPipe, TitleCasePipe } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component, OnInit, inject } from '@angular/core';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\r\nimport { MatTooltipModule } from '@angular/material/tooltip';\r\n\r\nimport { FormsStoreService } from '../../../forms/store/forms-store.service';\r\nimport { getAvatar } from '../../../../shared/functions/getAvatar';\r\n\r\nimport { DaysAgoPipe } from '../../../../../lib/shared/pipes/date/days-ago.pipe';\r\nimport type { FormInterface } from 'ngx-t-forms-types';\r\n\r\n@Component({\r\n selector: 'lib-select-form-template',\r\n imports: [\r\n AsyncPipe,\r\n TitleCasePipe,\r\n MatButtonModule,\r\n MatIconModule,\r\n MatProgressSpinnerModule,\r\n MatTooltipModule,\r\n DaysAgoPipe,\r\n ],\r\n templateUrl: './select-form-template.component.html',\r\n styleUrl: './select-form-template.component.scss',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class SelectFormTemplateComponent implements OnInit {\r\n readonly #store = inject(FormsStoreService);\r\n readonly #dialogRef = inject(MatDialogRef<SelectFormTemplateComponent>);\r\n // TODO(phase-3): MAT_DIALOG_DATA payload shape is not typed by callers; keep `unknown` here.\r\n protected readonly data = inject<unknown>(MAT_DIALOG_DATA);\r\n\r\n protected readonly selectForms$ = this.#store.selectors.selectForms$;\r\n protected readonly selectLoadingForms$ = this.#store.selectors.selectLoadingForms$;\r\n\r\n ngOnInit(): void {\r\n this.#store.effects.loadForms$();\r\n }\r\n\r\n protected close(): void {\r\n this.#dialogRef.close();\r\n }\r\n\r\n protected selectForm(form: FormInterface): void {\r\n this.#store.actionsFormBuilder.applyFormTemplate(form);\r\n this.#dialogRef.close(form);\r\n }\r\n\r\n protected getFormAvatar(formTitle: string): string {\r\n return getAvatar(formTitle);\r\n }\r\n}\r\n","<div class=\"template-select-dialog\">\r\n <!-- Header: icon + title + subtitle per design rule §4 -->\r\n <header class=\"dialog-header\">\r\n <div class=\"header-icon\" aria-hidden=\"true\">\r\n <mat-icon>description</mat-icon>\r\n </div>\r\n <div class=\"header-text\">\r\n <h1 class=\"header-title\">Choose a Form Template</h1>\r\n <p class=\"header-subtitle\">\r\n Select a pre-built form template to start with. You can customize and save it as your own form after copying it to the editor.\r\n </p>\r\n </div>\r\n </header>\r\n\r\n <section class=\"dialog-content\">\r\n @if (selectLoadingForms$ | async) {\r\n <div class=\"loading-state\">\r\n <mat-spinner diameter=\"40\" aria-label=\"Loading form templates\"></mat-spinner>\r\n <span class=\"loading-text\">Loading form templates...</span>\r\n </div>\r\n } @else {\r\n <ul class=\"form-template-list\" aria-label=\"Available form templates\">\r\n @for (form of selectForms$ | async; track form._id) {\r\n <li>\r\n <button\r\n type=\"button\"\r\n class=\"form-list-item\"\r\n (click)=\"selectForm(form)\"\r\n [matTooltip]=\"'Click to select this template'\"\r\n [attr.aria-label]=\"'Select template: ' + form.formTitle\">\r\n <img\r\n class=\"form-avatar\"\r\n [class.form-avatar--error]=\"form.errors.length > 0\"\r\n [src]=\"getFormAvatar(form.formTitle)\"\r\n [alt]=\"''\"\r\n aria-hidden=\"true\">\r\n <div class=\"form-item-content\">\r\n <span class=\"form-title\">{{ form.formTitle | titlecase }}</span>\r\n <div class=\"form-metadata\">\r\n @if (form.errors.length > 0) {\r\n <span class=\"metadata-item\">\r\n <mat-icon color=\"warn\" aria-hidden=\"true\">error</mat-icon>\r\n <small>{{ form.errors.length }}</small>\r\n </span>\r\n <span class=\"metadata-divider\" aria-hidden=\"true\">•</span>\r\n }\r\n <span class=\"metadata-item\">\r\n <mat-icon aria-hidden=\"true\">add_circle_outline</mat-icon>\r\n <small>{{ form.createdAt | daysAgo }}</small>\r\n </span>\r\n <span class=\"metadata-divider\" aria-hidden=\"true\">•</span>\r\n <span class=\"metadata-item\">\r\n <mat-icon aria-hidden=\"true\">update</mat-icon>\r\n <small>{{ form.updatedAt | daysAgo }}</small>\r\n </span>\r\n </div>\r\n </div>\r\n </button>\r\n </li>\r\n }\r\n </ul>\r\n\r\n @if ((selectForms$ | async)?.length === 0) {\r\n <div class=\"empty-state\">\r\n <mat-icon class=\"empty-state-icon\" aria-hidden=\"true\">folder_off</mat-icon>\r\n <p>No form templates available.</p>\r\n </div>\r\n }\r\n }\r\n </section>\r\n\r\n <footer class=\"dialog-actions\">\r\n <button mat-button (click)=\"close()\" aria-label=\"Close dialog\">\r\n Close\r\n </button>\r\n </footer>\r\n</div>\r\n","\r\n\r\nimport { ConfigurationValidTestInterface, ElementEditorInnerSectionElementInterface, ElementEditorTypes, NgxTFormsConfig, SpecialElementKeys } from \"ngx-t-forms-types\"\r\n\r\n\r\n\r\n\r\nexport function SubmissionAPIListItemConfig (environment: NgxTFormsConfig): ElementEditorInnerSectionElementInterface[]{\r\n return [\r\n\r\n {\r\n id: '16140923-0542-4d5d-9b63-186c1e91b1a7',\r\n name: SpecialElementKeys.MatOptionsApiCall,\r\n editType: ElementEditorTypes.ApiCall,\r\n required: true,\r\n postmanCollectionConfig: {\r\n collectionUrl: environment['POSTMAN_COLLECTION_URL'] as string,\r\n collectionKey: environment['POSTMAN_COLLECTION_KEY'] as string\r\n },\r\n hint: `APIs are loaded from Postman collection. Configure required headers, payload format, and response mapping before use. Ensure API is documented in Postman.`,\r\n deepBind: ['data'],\r\n label: 'Select form submission api',\r\n },\r\n \r\n {\r\n name: SpecialElementKeys.Default,\r\n deepBind: [\r\n\r\n 'data',\r\n 'backEndConfig',\r\n 'minimumInputRequired',\r\n ],\r\n additionalTest: [\r\n {\r\n testType: 'exists',\r\n deepBind: [\r\n\r\n 'data',\r\n 'backEndConfig',\r\n 'minimumInputRequired',\r\n ],\r\n } as ConfigurationValidTestInterface\r\n\r\n ],\r\n hint: `These are payload fields that are required to be filled in order to fetch data from the selected source`,\r\n editType: ElementEditorTypes.RequiredInputs,\r\n label: 'Set up required inputs',\r\n id: \"2d0f1e18-897b-4c28-97bc-3078be09f8ee\"\r\n },\r\n {\r\n name: SpecialElementKeys.Default,\r\n deepBind: ['data','projectFormData'],\r\n editType: ElementEditorTypes.FormPayloadProjection,\r\n label: 'Project form data',\r\n defaultValue: `data:{$formValue}`,\r\n hint: 'Choose how the submitted form is shaped before it is sent — sent flat, or wrapped under one or more keys.',\r\n id: \"$2d0f1e18-897b-4c28-97bc-3078be09f8ee\"\r\n },\r\n ]}\r\nexport const SubmissionAPIOtherConfig : ElementEditorInnerSectionElementInterface[] = [\r\n {\r\n id:\"7acaa5d1-fb37-4dc0-9f1a-53b6f36534e0\",\r\n name:SpecialElementKeys.Default,\r\n deepBind:['submissionHandle','submissionMessage'],\r\n editType:ElementEditorTypes.Input,\r\n label:\"Submission Message\",\r\n hint:\"Message shown to the user after successful form submission.\",\r\n },\r\n {\r\n id:\"5636c16c-be58-48d9-b701-81fe05573a39\",\r\n name:SpecialElementKeys.Default,\r\n deepBind:['submissionHandle','innerComponentShowSubmitButton'],\r\n editType:ElementEditorTypes.Toggle,\r\n label:\"Show submit button in inner component form\",\r\n },\r\n {\r\n id:\"c9103faa-eeba-4cf3-b3d0-f25fd05ccb3c\",\r\n name:SpecialElementKeys.Default,\r\n deepBind:['systemDefault'],\r\n editType:ElementEditorTypes.Toggle,\r\n label:\"Is system default\",\r\n }\r\n] \r\n \r\n export const SubmissionDialogConfig = [\r\n {\r\n titleIcon:'send',\r\n id:'44023662-7343-4c93-999d-fc03c54438c3',\r\n title:'Form Submission Endpoint',\r\n description:`Choose where to send your form data after submission. Connect to your database, data pipeline, or\r\n third-party service.`,\r\n primaryKey:'submissionAPI',\r\n sectionLabel:'Submission Endpoints',\r\n emptyMessage:'No submission endpoints configured. Add one to send form data.',\r\n elements : SubmissionAPIOtherConfig\r\n },\r\n {\r\n titleIcon:'rule',\r\n title:'Data Validation Rules',\r\n description:`Define validation rules to ensure data quality before form submission.\r\n <br>\r\n <strong>Note:</strong> All validation endpoints must return a boolean value -\r\n <code>true</code> indicates valid data that will be submitted.`,\r\n primaryKey:'canSubmitAPI',\r\n sectionLabel:'Validation Endpoints',\r\n emptyMessage:'No validation endpoints configured. Add one to validate data before submission.',\r\n id:'acac6045-5b13-4c8d-a7ee-da194ebbad41',\r\n }\r\n ]","import { ChangeDetectionStrategy, Component, computed, inject, signal } from '@angular/core';\r\n\r\nimport { ClipboardModule } from '@angular/cdk/clipboard';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MAT_DIALOG_DATA, MatDialog, MatDialogModule } from '@angular/material/dialog';\r\nimport { MatDividerModule } from '@angular/material/divider';\r\nimport { MatExpansionModule } from '@angular/material/expansion';\r\nimport { MatFormFieldModule } from '@angular/material/form-field';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatTooltipModule } from '@angular/material/tooltip';\r\n\r\nimport { SubmissionAPIListItemConfig, SubmissionDialogConfig } from './config';\r\nimport { FormsStoreService } from '../../../forms/store/forms-store.service';\r\nimport { testAgainstItem } from '../../../t-dynamic-data-edit/functions/testData';\r\n\r\nimport { TDynamicDataEditComponent } from '../../../t-dynamic-data-edit/t-dynamic-data-edit.component';\r\n\r\nimport { assignDeepPropertyToObject } from '../../../../../lib/shared';\r\nimport { NGX_T_FORMS_CONFIG_TOKEN } from '../../../../../lib/injection-tokens';\r\n\r\nimport {\r\n APIDataFetchingConfigurationInterface,\r\n ElementEditorInnerSectionElementInterface,\r\n validateApiDataFetchingConfiguration,\r\n} from 'ngx-t-forms-types';\r\n\r\ntype SubmissionApiKey = 'submissionAPI' | 'canSubmitAPI';\r\n\r\n@Component({\r\n selector: 'lib-form-submissions-config',\r\n imports: [\r\n ClipboardModule,\r\n MatButtonModule,\r\n MatDialogModule,\r\n MatDividerModule,\r\n MatExpansionModule,\r\n MatFormFieldModule,\r\n MatIconModule,\r\n MatTooltipModule,\r\n TDynamicDataEditComponent,\r\n ],\r\n templateUrl: './form-submissions-config.component.html',\r\n styleUrl: './form-submissions-config.component.scss',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class FormSubmissionsConfigComponent {\r\n // TODO: NGX_T_FORMS_CONFIG should be #private; kept accessible due to template/getter usage.\r\n protected readonly NGX_T_FORMS_CONFIG = inject(NGX_T_FORMS_CONFIG_TOKEN);\r\n\r\n readonly #data: { store: FormsStoreService } = inject(MAT_DIALOG_DATA);\r\n readonly store: FormsStoreService = this.#data.store;\r\n readonly #matDialog = inject(MatDialog);\r\n\r\n protected readonly form = computed(\r\n () => this.store.signalSelectors.selectFormInEdit()?.form,\r\n );\r\n\r\n protected readonly formInputs = this.store.formBuilderSignalSelectors.getAllFormInputs;\r\n\r\n protected readonly formValidationError = this.store.formBuilderSignalSelectors.formErrors;\r\n\r\n /** The endpoint currently open in the inline editor (one panel at a time). */\r\n protected readonly keyInEdit = signal<SubmissionApiKey | undefined>(undefined);\r\n\r\n /** Draft endpoint being added or edited; `undefined` when the editor is closed. */\r\n protected readonly dataPlaceholder = signal<\r\n { data: APIDataFetchingConfigurationInterface } | undefined\r\n >(undefined);\r\n\r\n /** True when the inline editor is updating an existing endpoint rather than adding one. */\r\n protected readonly isEditingExisting = computed(\r\n () => this.dataPlaceholder()?.data?._id != null,\r\n );\r\n\r\n /**\r\n * Panels enriched with their live endpoint list and required-state error.\r\n * Driven entirely from {@link SubmissionDialogConfig}, so adding a panel is a\r\n * config-only change — no template branching on `primaryKey`.\r\n */\r\n protected readonly panels = computed(() => {\r\n const form = this.form();\r\n return SubmissionDialogConfig.map((panel) => {\r\n const apis = form?.submissionHandle?.[panel.primaryKey as SubmissionApiKey] ?? [];\r\n const error =\r\n panel.primaryKey === 'submissionAPI' && apis.length === 0\r\n ? 'At least one submission API is required'\r\n : undefined;\r\n return { ...panel, apis, error };\r\n });\r\n });\r\n\r\n /** Editor elements for the inline endpoint form, gated by their `additionalTest`. */\r\n protected readonly submissionApiElements = computed(() => {\r\n const placeholder = this.dataPlaceholder() ?? { data: {} };\r\n return SubmissionAPIListItemConfig(this.NGX_T_FORMS_CONFIG).filter(\r\n (el) =>\r\n !el.additionalTest ||\r\n el.additionalTest.every((test) => testAgainstItem(test, placeholder)),\r\n );\r\n });\r\n\r\n /** Validation errors for the draft endpoint, computed once per change. */\r\n readonly #placeholderErrors = computed(() =>\r\n validateApiDataFetchingConfiguration(this.dataPlaceholder() ?? {}).map((error) => ({\r\n message: error.message,\r\n key: 'data.' + error.key,\r\n })),\r\n );\r\n\r\n /** Store-level validation errors bound to a given panel element. */\r\n errorsFor(\r\n element: ElementEditorInnerSectionElementInterface,\r\n ): { key: string; message: string }[] {\r\n const bind = element.deepBind?.join('.');\r\n return this.formValidationError()?.filter((error) => error.key === bind) ?? [];\r\n }\r\n\r\n /** Draft-endpoint validation errors bound to a given inline-editor element. */\r\n validationErrors(\r\n element: ElementEditorInnerSectionElementInterface,\r\n ): { key: string; message: string }[] {\r\n const bind = element.deepBind?.join('.');\r\n return this.#placeholderErrors().filter((error) => error.key === bind);\r\n }\r\n\r\n /**\r\n * Event payload types from `lib-t-dynamic-data-edit` are heterogeneous (per\r\n * element kind). Until that emission contract is narrowed via a discriminated\r\n * union, accept `unknown` and forward through; element-level handlers narrow.\r\n */\r\n elementBlur(_event: unknown, _element: ElementEditorInnerSectionElementInterface): void {\r\n // intentional no-op\r\n }\r\n\r\n formInputChange(value: unknown, ele: ElementEditorInnerSectionElementInterface): void {\r\n this.store.actionsFormBuilder.formInputChange(ele, value);\r\n }\r\n\r\n elementConfigurationChanged(\r\n value: unknown,\r\n ele: ElementEditorInnerSectionElementInterface,\r\n ): void {\r\n const applyTo = { ...this.dataPlaceholder() };\r\n if (ele.clearOnChange) {\r\n ele.clearOnChange.forEach((clear: string[]) => {\r\n assignDeepPropertyToObject(applyTo, clear, undefined);\r\n });\r\n }\r\n if (ele.deepBind) {\r\n assignDeepPropertyToObject(applyTo, ele.deepBind, value);\r\n }\r\n // Placeholder shape is dynamic — `applyTo` is built from a partial spread plus\r\n // deep-bind assignments. The data field is known to be the API configuration\r\n // type by contract with the element editor.\r\n this.dataPlaceholder.set({ ...applyTo } as { data: APIDataFetchingConfigurationInterface });\r\n }\r\n\r\n addNewSubmitApi(key: string): void {\r\n this.dataPlaceholder.set({ data: {} as APIDataFetchingConfigurationInterface });\r\n this.keyInEdit.set(key as SubmissionApiKey);\r\n }\r\n\r\n editSubmitApi(api: APIDataFetchingConfigurationInterface, key: string): void {\r\n this.dataPlaceholder.set({ data: { ...api } });\r\n this.keyInEdit.set(key as SubmissionApiKey);\r\n }\r\n\r\n saveSubmitApi(): void {\r\n this.store.actionsFormBuilder.saveSubmitApi(this.dataPlaceholder(), this.keyInEdit());\r\n this.#closeEditor();\r\n }\r\n\r\n removeSubmissionApi(api: APIDataFetchingConfigurationInterface, key: string): void {\r\n this.store.actionsFormBuilder.removeSubmissionApi(api, key as SubmissionApiKey);\r\n this.#closeEditor();\r\n }\r\n\r\n cancelSubmitApi(): void {\r\n this.#closeEditor();\r\n }\r\n\r\n close(): void {\r\n this.#matDialog.closeAll();\r\n }\r\n\r\n #closeEditor(): void {\r\n this.dataPlaceholder.set(undefined);\r\n this.keyInEdit.set(undefined);\r\n }\r\n}\r\n","<div class=\"submissions-dialog\">\r\n <!-- Header: icon + title + subtitle per design rule §4 -->\r\n <header class=\"dialog-header\">\r\n <div class=\"header-icon\" aria-hidden=\"true\">\r\n <mat-icon>settings</mat-icon>\r\n </div>\r\n <div class=\"header-text\">\r\n <h1 class=\"header-title\">Form Submission Configuration</h1>\r\n <p class=\"header-subtitle\">Configure how your form is submitted and validated before submission.</p>\r\n </div>\r\n <button mat-icon-button mat-dialog-close [attr.aria-label]=\"'Close dialog'\" class=\"header-close\">\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </header>\r\n\r\n <section class=\"dialog-content\">\r\n <mat-accordion multi>\r\n @for (panel of panels(); track panel.id) {\r\n <mat-expansion-panel [expanded]=\"true\" class=\"config-panel\">\r\n <mat-expansion-panel-header class=\"panel-header\">\r\n <mat-panel-title class=\"panel-title\">\r\n <mat-icon class=\"panel-icon\" [color]=\"'primary'\">{{ panel.titleIcon }}</mat-icon>\r\n {{ panel.title }}\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n\r\n <div class=\"panel-content\">\r\n <p class=\"panel-description\" [innerHTML]=\"panel.description\"></p>\r\n\r\n <!-- Dynamic form elements (submission message, toggles, etc.) -->\r\n @if ((panel?.elements || []).length > 0) {\r\n <div class=\"edit-section\">\r\n @for (edit of (panel?.elements || []); track edit.id) {\r\n <div class=\"edit-field\">\r\n <lib-t-dynamic-data-edit\r\n [editorConfig]=\"edit\"\r\n [data]=\"form()\"\r\n [validationErrors]=\"errorsFor(edit)\"\r\n (valueChange)=\"formInputChange($event, edit)\"\r\n [formInputs]=\"(formInputs()) || []\"\r\n (blur)=\"elementBlur($event, edit)\">\r\n </lib-t-dynamic-data-edit>\r\n </div>\r\n }\r\n </div>\r\n }\r\n\r\n <!-- API endpoints list -->\r\n <div class=\"api-section\">\r\n <h3 class=\"api-section-header\" [class.api-section-header--error]=\"panel.error\">\r\n {{ panel.sectionLabel }}\r\n </h3>\r\n\r\n @if (panel.apis.length === 0) {\r\n <div class=\"empty-state\" [class.empty-state--error]=\"panel.error\">\r\n <mat-icon class=\"empty-state-icon\">add_link</mat-icon>\r\n <p>{{ panel.emptyMessage }}</p>\r\n </div>\r\n }\r\n\r\n @for (api of panel.apis; track api._id) {\r\n <div\r\n class=\"api-list-item\"\r\n [class.api-list-item--active]=\"keyInEdit() === panel.primaryKey && dataPlaceholder()?.data?._id === api._id\">\r\n <span class=\"api-method-tag\" [class.api-method-tag--post]=\"api.httpMethod === 'POST'\">\r\n {{ api.httpMethod }}\r\n </span>\r\n <div class=\"api-details\">\r\n <span class=\"api-name\">{{ api.name }}</span>\r\n <span class=\"api-endpoint\" [matTooltip]=\"api.httpEndPoint\" matTooltipPosition=\"above\">\r\n {{ api.httpEndPoint }}\r\n </span>\r\n </div>\r\n <div class=\"api-item-actions\">\r\n <button\r\n (click)=\"editSubmitApi(api, panel.primaryKey)\"\r\n mat-icon-button\r\n matTooltip=\"Edit endpoint\"\r\n [attr.aria-label]=\"'Edit endpoint ' + api.name\"\r\n class=\"api-edit-btn\">\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n <button\r\n [cdkCopyToClipboard]=\"api.httpEndPoint || ''\"\r\n mat-icon-button\r\n matTooltip=\"Copy URL\"\r\n [attr.aria-label]=\"'Copy endpoint URL'\"\r\n class=\"api-copy-btn\"\r\n (click)=\"$event.stopPropagation()\">\r\n <mat-icon>content_copy</mat-icon>\r\n </button>\r\n <button\r\n (click)=\"removeSubmissionApi(api, panel.primaryKey)\"\r\n mat-icon-button\r\n matTooltip=\"Remove endpoint\"\r\n [attr.aria-label]=\"'Remove endpoint ' + api.name\"\r\n class=\"api-remove-btn\">\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n }\r\n\r\n @if (keyInEdit() !== panel.primaryKey) {\r\n <div class=\"api-actions\">\r\n <button\r\n (click)=\"addNewSubmitApi(panel.primaryKey)\"\r\n mat-stroked-button\r\n color=\"primary\"\r\n class=\"add-endpoint-btn\">\r\n <mat-icon>add</mat-icon>\r\n Add new endpoint\r\n </button>\r\n </div>\r\n }\r\n\r\n @if (panel.error) {\r\n <mat-error class=\"panel-error\">{{ panel.error }}</mat-error>\r\n }\r\n </div>\r\n\r\n <!-- Inline edit form for new/editing endpoint -->\r\n @if (keyInEdit() === panel.primaryKey) {\r\n <div class=\"edit-section edit-section--inline\">\r\n <h4 class=\"inline-edit-title\">\r\n {{ isEditingExisting() ? 'Edit endpoint' : 'New endpoint' }}\r\n </h4>\r\n @for (element of submissionApiElements(); track element.id) {\r\n <div class=\"edit-field\">\r\n <lib-t-dynamic-data-edit\r\n [editorConfig]=\"element\"\r\n [data]=\"dataPlaceholder()\"\r\n [validationErrors]=\"validationErrors(element)\"\r\n (valueChange)=\"elementConfigurationChanged($event, element)\"\r\n [formInputs]=\"(formInputs()) || []\"\r\n (blur)=\"elementBlur($event, element)\">\r\n </lib-t-dynamic-data-edit>\r\n </div>\r\n }\r\n <mat-divider></mat-divider>\r\n <div class=\"inline-edit-actions\">\r\n <button mat-flat-button (click)=\"saveSubmitApi()\" color=\"primary\">\r\n {{ isEditingExisting() ? 'Update' : 'Save' }}\r\n </button>\r\n <button mat-button (click)=\"cancelSubmitApi()\" color=\"warn\">Cancel</button>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </mat-expansion-panel>\r\n }\r\n </mat-accordion>\r\n </section>\r\n</div>\r\n","import {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ViewEncapsulation,\n computed,\n inject,\n signal,\n} from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { TextFieldModule } from '@angular/cdk/text-field';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MAT_DIALOG_DATA, MatDialogModule, MatDialogRef } from '@angular/material/dialog';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatChipsModule } from '@angular/material/chips';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport {\n FORM_DESCRIPTION_MAX_PARAGRAPHS,\n FORM_DESCRIPTION_MIN_WORDS,\n measureFormDescription,\n} from 'ngx-t-forms-types';\n\nimport type { FormsStoreService } from '../../../forms/store/forms-store.service';\nimport { FORM_DETAILS_SUGGESTER } from '../../../../tokens/form-details-suggester.token';\nimport {\n effectiveFormClassifications,\n groupFormClassificationOptions,\n} from '../../../../shared/functions/formClassifications';\n\n/** What the builder hands the dialog: the store of the builder that opened it. */\nexport interface FormDetailsDialogData {\n readonly store: FormsStoreService;\n}\n\n/** Per-instance suffix so ids never collide. */\nlet nextFormDetailsDialogId = 0;\n\n/**\n * Dialog for the form-wide details, opened from the builder's \"Form edit options\"\n * menu: the required description and the optional classifications.\n *\n * Edits a local draft. **Apply** writes both to the form in one store action; Cancel\n * discards. An incomplete description can still be applied (the author may finish it\n * later) — the builder's save gate is what requires `FORM_DESCRIPTION_MIN_WORDS` words\n * in at most `FORM_DESCRIPTION_MAX_PARAGRAPHS` paragraphs. The classification picker\n * lists `NgxTFormsConfig.formClassifications` and is hidden when none are configured;\n * a new, never-classified form starts with the options marked `isDefault`.\n */\n@Component({\n selector: 'lib-form-details-dialog',\n templateUrl: './form-details-dialog.component.html',\n styleUrl: './form-details-dialog.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.Emulated,\n host: { class: 'lib-form-details-dialog' },\n imports: [\n FormsModule,\n TextFieldModule,\n MatButtonModule,\n MatDialogModule,\n MatFormFieldModule,\n MatIconModule,\n MatInputModule,\n MatChipsModule,\n MatTooltipModule,\n MatProgressSpinnerModule,\n ],\n})\nexport class FormDetailsDialogComponent {\n readonly #store = inject<FormDetailsDialogData>(MAT_DIALOG_DATA).store;\n readonly #dialogRef = inject<MatDialogRef<FormDetailsDialogComponent, boolean>>(MatDialogRef);\n readonly #selectors = this.#store.formBuilderSignalSelectors;\n readonly #classifications = this.#store.formClassifications;\n /** Bound by `withAiFormBuilder()`; absent → no AI controls. */\n readonly #suggester = inject(FORM_DETAILS_SUGGESTER, { optional: true });\n #suggestion?: AbortController;\n /** Set once the author toggles a chip, so a late suggestion never overrides their choice. */\n #classificationsTouched = false;\n\n protected readonly minWords = FORM_DESCRIPTION_MIN_WORDS;\n protected readonly maxParagraphs = FORM_DESCRIPTION_MAX_PARAGRAPHS;\n\n readonly #id = nextFormDetailsDialogId++;\n protected readonly titleId = `lib-form-details-dialog-title-${this.#id}`;\n protected readonly meterId = `lib-form-details-dialog-meter-${this.#id}`;\n\n protected readonly formTitle = computed(() => this.#selectors.selectFormTitle() || 'Untitled form');\n\n /** Draft description, seeded once from the form. */\n protected readonly description = signal<string>(this.#selectors.selectFormDescription());\n\n /** Draft classifications: the stored ones, or the consumer defaults on an untouched new form. */\n protected readonly classifications = signal<readonly string[]>(\n effectiveFormClassifications(\n this.#selectors.selectFormClassifications(),\n this.#selectors.isNewForm(),\n this.#classifications.defaults(),\n ),\n );\n\n protected readonly measure = computed(() => measureFormDescription(this.description()));\n protected readonly wordsShort = computed(() => Math.max(0, this.minWords - this.measure().words));\n protected readonly tooManyParagraphs = computed(() => this.measure().paragraphs > this.maxParagraphs);\n\n /** Picker headings, each with the draft values selected under it. */\n protected readonly classificationGroups = computed(() => {\n const selected = new Set(this.classifications());\n return groupFormClassificationOptions(this.#classifications.options(), this.classifications()).map(\n (bucket, index) => ({\n ...bucket,\n labelId: `lib-form-details-dialog-group-${this.#id}-${index}`,\n selected: bucket.options.filter((o) => selected.has(o.value)).map((o) => o.value),\n }),\n );\n });\n\n /**\n * Replaces the draft values of one heading with what its chip listbox now holds,\n * keeping the selections made under the other headings.\n */\n protected setGroupSelection(groupValues: readonly string[], values: readonly string[] | null): void {\n this.#classificationsTouched = true;\n const inGroup = new Set(groupValues);\n this.classifications.update((current) => [\n ...current.filter((v) => !inGroup.has(v)),\n ...(values ?? []),\n ]);\n }\n\n /** The option values under one heading (template helper). */\n protected valuesOf(options: readonly { readonly value: string }[]): string[] {\n return options.map((o) => o.value);\n }\n\n /** Whether AI suggestions are available (`withAiFormBuilder()` installed). */\n protected readonly canSuggest = this.#suggester !== null;\n /** `idle` → nothing asked; `loading`; `ready` → the draft holds a suggestion; `error`. */\n protected readonly suggestionState = signal<'idle' | 'loading' | 'ready' | 'error'>('idle');\n\n constructor() {\n inject(DestroyRef).onDestroy(() => this.#suggestion?.abort());\n // Auto-draft only when there is nothing to lose: a blank description.\n if (this.canSuggest && !this.description().trim()) void this.suggest();\n }\n\n /**\n * Asks the AI for a description and classifications drafted from the form's\n * content and puts them in the draft (nothing reaches the form until Apply).\n * Text the author typed while it was drafting, and chips they toggled, win.\n */\n protected async suggest(): Promise<void> {\n const form = this.#store.formInEditSnapshot()?.form;\n if (!this.#suggester || !form) return;\n this.#suggestion?.abort();\n const controller = new AbortController();\n this.#suggestion = controller;\n const descriptionAtStart = this.description();\n this.suggestionState.set('loading');\n try {\n const suggestion = await this.#suggester.suggest({\n form,\n options: this.#classifications.options(),\n signal: controller.signal,\n });\n if (controller.signal.aborted) return;\n if (this.description() === descriptionAtStart) this.description.set(suggestion.description);\n if (!this.#classificationsTouched && this.#classifications.options().length) {\n this.classifications.set(suggestion.classifications);\n }\n this.suggestionState.set('ready');\n } catch {\n if (!controller.signal.aborted) this.suggestionState.set('error');\n }\n }\n\n /** Writes the draft to the form and closes with `true`. */\n protected apply(): void {\n this.#store.actionsFormBuilder.setFormDetails({\n description: this.description(),\n classifications: this.classifications(),\n });\n this.#dialogRef.close(true);\n }\n}\n","<header class=\"form-details-dialog__header\">\n <div class=\"form-details-dialog__titles\">\n <span class=\"form-details-dialog__label\">Form details</span>\n <h2 class=\"form-details-dialog__title\" [id]=\"titleId\">{{ formTitle() }}</h2>\n </div>\n <button mat-icon-button mat-dialog-close type=\"button\" aria-label=\"Close\">\n <mat-icon aria-hidden=\"true\">close</mat-icon>\n </button>\n</header>\n\n<mat-dialog-content class=\"form-details-dialog__content\" [attr.aria-labelledby]=\"titleId\">\n <div class=\"form-details-dialog__block\">\n @if (canSuggest) {\n <div class=\"form-details-dialog__ai\" role=\"status\" aria-live=\"polite\">\n @switch (suggestionState()) {\n @case ('loading') {\n <mat-spinner diameter=\"16\" aria-hidden=\"true\" />\n <span class=\"form-details-dialog__ai-text\">Drafting a description and classification from the form…</span>\n }\n @case ('ready') {\n <mat-icon aria-hidden=\"true\" class=\"form-details-dialog__ai-icon\">auto_awesome</mat-icon>\n <span class=\"form-details-dialog__ai-text\">Suggested from the form's content. Review it before applying.</span>\n }\n @case ('error') {\n <mat-icon aria-hidden=\"true\" class=\"form-details-dialog__ai-icon form-details-dialog__ai-icon--error\">error_outline</mat-icon>\n <span class=\"form-details-dialog__ai-text\">Couldn't draft a suggestion.</span>\n }\n @default {\n <mat-icon aria-hidden=\"true\" class=\"form-details-dialog__ai-icon\">auto_awesome</mat-icon>\n <span class=\"form-details-dialog__ai-text\">Let AI draft this from the form's content.</span>\n }\n }\n <button mat-button type=\"button\" class=\"form-details-dialog__suggest\"\n [disabled]=\"suggestionState() === 'loading'\" (click)=\"suggest()\">\n {{ suggestionState() === 'idle' ? 'Suggest with AI' : suggestionState() === 'error' ? 'Try again' : 'Regenerate' }}\n </button>\n </div>\n }\n\n <mat-form-field appearance=\"outline\" class=\"form-details-dialog__field\" subscriptSizing=\"dynamic\">\n <mat-label>Description</mat-label>\n <textarea matInput required cdkFocusInitial\n cdkTextareaAutosize cdkAutosizeMinRows=\"8\" cdkAutosizeMaxRows=\"18\"\n name=\"formDescription\"\n [attr.aria-describedby]=\"meterId\"\n [ngModel]=\"description()\" (ngModelChange)=\"description.set($event)\"></textarea>\n <mat-hint>At least one full sentence: what the form is for, who fills it in, and what happens once it is submitted. Up to two paragraphs, separated by a blank line.</mat-hint>\n </mat-form-field>\n\n <p class=\"form-details-dialog__meter\" [id]=\"meterId\" aria-live=\"polite\">\n <span class=\"form-details-dialog__count\" [class.form-details-dialog__count--short]=\"wordsShort() > 0\">\n <mat-icon aria-hidden=\"true\">{{ wordsShort() > 0 ? 'more_horiz' : 'check' }}</mat-icon>\n @if (wordsShort() > 0) {\n {{ measure().words }} of {{ minWords }} words · {{ wordsShort() }} more needed\n } @else {\n {{ measure().words }} words\n }\n </span>\n <span class=\"form-details-dialog__count\" [class.form-details-dialog__count--over]=\"tooManyParagraphs()\">\n <mat-icon aria-hidden=\"true\">{{ tooManyParagraphs() ? 'error_outline' : 'check' }}</mat-icon>\n {{ measure().paragraphs }} of {{ maxParagraphs }} paragraphs max\n @if (tooManyParagraphs()) { · merge or remove {{ measure().paragraphs - maxParagraphs }} }\n </span>\n </p>\n </div>\n\n @if (classificationGroups().length) {\n <section class=\"form-details-dialog__block form-details-dialog__classifications\" aria-label=\"Classification\">\n <div class=\"form-details-dialog__section-head\">\n <span class=\"form-details-dialog__section-title\">Classification</span>\n <span class=\"form-details-dialog__section-hint\">Optional. Files the form under the categories your organisation uses.</span>\n </div>\n\n @for (bucket of classificationGroups(); track bucket.group ?? '') {\n <div class=\"form-details-dialog__group\">\n @if (bucket.group) {\n <span class=\"form-details-dialog__label\" [id]=\"bucket.labelId\">{{ bucket.group }}</span>\n }\n <mat-chip-listbox multiple class=\"form-details-dialog__chips\"\n [attr.aria-labelledby]=\"bucket.group ? bucket.labelId : null\"\n [attr.aria-label]=\"bucket.group ? null : 'Classification'\"\n [value]=\"bucket.selected\"\n (change)=\"setGroupSelection(valuesOf(bucket.options), $event.value)\">\n @for (option of bucket.options; track option.value) {\n <mat-chip-option [value]=\"option.value\"\n [matTooltip]=\"option.description ?? ''\" [matTooltipDisabled]=\"!option.description\">\n {{ option.label }}\n </mat-chip-option>\n }\n </mat-chip-listbox>\n </div>\n }\n </section>\n }\n</mat-dialog-content>\n\n<mat-dialog-actions align=\"end\" class=\"form-details-dialog__actions\">\n <button mat-button mat-dialog-close type=\"button\">Cancel</button>\n <button mat-flat-button type=\"button\" class=\"form-details-dialog__apply\" (click)=\"apply()\">Apply</button>\n</mat-dialog-actions>\n","import { ChangeDetectionStrategy, Component, DestroyRef, Signal, computed, inject } from '@angular/core';\r\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\r\nimport { MatBadgeModule } from '@angular/material/badge';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatMenuModule } from '@angular/material/menu';\r\nimport { MatTooltipModule } from '@angular/material/tooltip';\r\nimport { MatCardModule } from '@angular/material/card';\r\nimport { MatToolbarModule } from '@angular/material/toolbar';\r\nimport { MatDividerModule } from '@angular/material/divider';\r\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\r\nimport { MatFormFieldModule } from '@angular/material/form-field';\r\nimport { MatSnackBar } from '@angular/material/snack-bar';\r\nimport { MatDialog } from '@angular/material/dialog';\r\nimport { CdkDrag } from '@angular/cdk/drag-drop';\r\nimport { ClipboardModule } from '@angular/cdk/clipboard';\r\n\r\nimport { FormJsonViewComponent } from '../form-json-view/form-json-view.component';\r\nimport { SelectFormTemplateComponent } from '../select-form-template/select-form-template.component';\r\nimport { FormSubmissionsConfigComponent } from '../form-submissions-config/form-submissions-config.component';\r\nimport { FormDetailsDialogComponent, type FormDetailsDialogData } from '../form-details-dialog/form-details-dialog.component';\r\nimport { FormsStoreService } from '../../../forms/store/forms-store.service';\r\n\r\nimport { take } from 'rxjs';\r\nimport { validateFormDescription, type FormInterface, type ValidationError } from 'ngx-t-forms-types';\r\n\r\ninterface FormsBuilderMenuItem {\r\n label: string;\r\n icon: string;\r\n hint: string;\r\n errors?: boolean;\r\n /** What the entry says while `errors` is set. Default \"Invalid configurations\". */\r\n errorText?: string;\r\n action: () => void;\r\n}\r\n\r\n@Component({\r\n selector: 'lib-forms-builder-menu',\r\n imports: [\r\n MatBadgeModule,\r\n MatButtonModule,\r\n MatIconModule,\r\n MatMenuModule,\r\n MatTooltipModule,\r\n MatCardModule,\r\n MatToolbarModule,\r\n MatDividerModule,\r\n MatProgressSpinnerModule,\r\n MatFormFieldModule,\r\n CdkDrag,\r\n ClipboardModule,\r\n FormJsonViewComponent,\r\n ],\r\n templateUrl: './forms-builder-menu.component.html',\r\n styleUrl: './forms-builder-menu.component.scss',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class FormsBuilderMenuComponent {\r\n readonly #store = inject(FormsStoreService);\r\n readonly #destroyRef = inject(DestroyRef);\r\n protected readonly snackBar = inject(MatSnackBar);\r\n protected readonly dialog = inject(MatDialog);\r\n\r\n protected showJson = false;\r\n\r\n protected readonly form: Signal<FormInterface | undefined> = computed(\r\n () => this.#store.signalSelectors.selectFormInEdit()?.form,\r\n );\r\n\r\n protected readonly formCopy: Signal<string> = computed(() => JSON.stringify(this.form() || {}));\r\n\r\n protected readonly errors: Signal<ReadonlyArray<ValidationError>> =\r\n this.#store.formBuilderSignalSelectors.formErrors;\r\n\r\n protected readonly configHasErrors: Signal<boolean> = computed(() =>\r\n this.errors().some((error) => error.key.split('.')?.[0] === 'submissionHandle'),\r\n );\r\n\r\n /** Whether the open form's description is missing or does not meet the save rule. */\r\n protected readonly detailsIncomplete: Signal<boolean> = computed(() => {\r\n const form = this.form();\r\n return !!form && validateFormDescription(form.formDescription).length > 0;\r\n });\r\n\r\n /** Whether the Config button carries its warning badge. */\r\n protected readonly menuHasErrors: Signal<boolean> = computed(\r\n () => this.configHasErrors() || this.detailsIncomplete(),\r\n );\r\n\r\n protected readonly items: Signal<ReadonlyArray<FormsBuilderMenuItem>> = computed(() => [\r\n {\r\n label: 'Description & classification',\r\n icon: 'description',\r\n hint: 'Describe the form and file it under your organisation categories',\r\n errors: this.detailsIncomplete(),\r\n errorText: 'Description needed',\r\n action: (): void => this.openFormDetailsDialog(),\r\n },\r\n {\r\n label: 'Templates',\r\n icon: 'content_copy',\r\n hint: 'Select a form to apply as a template',\r\n action: (): void => this.openDialog(),\r\n },\r\n {\r\n label: 'Submission Config',\r\n hint: 'Setup form submission api and other configurations',\r\n icon: 'api',\r\n errors: this.configHasErrors(),\r\n action: (): void => this.openFormSubmissionDialog(),\r\n },\r\n ]);\r\n\r\n protected openDialog(): void {\r\n const dialogRef = this.dialog.open(SelectFormTemplateComponent);\r\n dialogRef\r\n .afterClosed()\r\n .pipe(take(1), takeUntilDestroyed(this.#destroyRef))\r\n .subscribe((form) => {\r\n if (form) {\r\n this.applyFormTemplate(form);\r\n }\r\n });\r\n }\r\n\r\n protected applyFormTemplate = (form: FormInterface): void =>\r\n this.#store.actionsFormBuilder.applyFormTemplate(form);\r\n\r\n protected openFormSubmissionDialog(): void {\r\n const dialogRef = this.dialog.open(FormSubmissionsConfigComponent, {\r\n data: { store: this.#store },\r\n });\r\n\r\n dialogRef\r\n .afterClosed()\r\n .pipe(take(1), takeUntilDestroyed(this.#destroyRef))\r\n .subscribe(() => {\r\n // no-op\r\n });\r\n }\r\n\r\n protected openFormDetailsDialog(): void {\r\n const data: FormDetailsDialogData = { store: this.#store };\r\n // An explicit width: left to size itself, the panel grows to the long hint\r\n // text's max-content width and leaves dead space beside the fields.\r\n this.dialog.open(FormDetailsDialogComponent, { data, width: '42rem', maxWidth: '95vw' });\r\n }\r\n\r\n protected toggleJson(): void {\r\n this.showJson = !this.showJson;\r\n }\r\n}\r\n","<button [matBadge]=\"'!'\" matBadgeColor=\"warn\" [matTooltip]=\"menuHasErrors() === false?'\r\nClick to view form configuration\r\n':'Click to fix or add missing form configurations'\" [matBadgeHidden]=\"!menuHasErrors()\"\r\n [matMenuTriggerFor]=\"configMenu\" mat-flat-button>\r\n Config\r\n <mat-icon>\r\n settings_suggest\r\n </mat-icon>\r\n</button>\r\n\r\n<mat-menu #configMenu=\"matMenu\">\r\n\r\n\r\n <div mat-subheader style=\"padding-left: 16px;\">Form edit options</div>\r\n @for (item of items(); track item.label) {\r\n <button [matTooltip]=\"item.hint\" matTooltipPosition=\"right\" style=\"padding-top:4px;padding-bottom:4px\"\r\n (click)=\"item?.action()\" mat-menu-item>\r\n <mat-icon>{{item.icon}}</mat-icon>\r\n\r\n <span>\r\n @if (item.errors) {\r\n <div style=\"line-height: normal;\">\r\n {{item.label}}\r\n </div>\r\n <div style=\"line-height: normal;\">\r\n\r\n <mat-error>\r\n <small>\r\n {{ item.errorText ?? 'Invalid configurations' }}\r\n </small>\r\n\r\n </mat-error>\r\n </div>\r\n }@else {\r\n\r\n {{item.label}}\r\n\r\n }\r\n\r\n\r\n </span>\r\n\r\n </button>\r\n <mat-divider></mat-divider>\r\n }\r\n <button [matTooltip]=\"showJson?'Hide json':'Show json'\" (click)=\"toggleJson()\" mat-menu-item>\r\n <mat-icon>data_object</mat-icon>\r\n\r\n <span>\r\n <div>\r\n Show json\r\n </div>\r\n\r\n\r\n\r\n </span>\r\n </button>\r\n\r\n</mat-menu>\r\n\r\n@if (showJson) {\r\n<div class=\"DragBoundary\">\r\n @defer (on viewport) {\r\n <mat-card cdkDragBoundary=\"DragBoundary\" cdkDrag class=\"menuCard\">\r\n <mat-toolbar\r\n style=\"background: var(--mat-sidenav-content-background-color);color:var(--mdc-filled-button-label-text-color, var(--mat-app-on-primary))\">\r\n <span>\r\n Json Form Value\r\n </span>\r\n <span class=\"spacer\"></span>\r\n\r\n <mat-icon cdkDragHandle style=\"\r\n margin:8px;\r\n color:var(--mat-divider-color, var(--mat-app-outline))\">\r\n drag_indicator\r\n </mat-icon>\r\n </mat-toolbar>\r\n <mat-divider style=\"margin-bottom: 12px;\"></mat-divider>\r\n\r\n\r\n <mat-card-content style=\" overflow-y: auto;\r\n max-height: calc(100vh - 150px);\">\r\n <lib-form-json-view></lib-form-json-view>\r\n </mat-card-content>\r\n <mat-card-actions>\r\n <span class=\"spacer\"></span>\r\n <button (click)=\"toggleJson()\" mat-flat-button>\r\n Close\r\n </button>\r\n <button color=\"primary\" [cdkCopyToClipboard]=\"(formCopy())||''\" matTooltip=\"Copy json to clipboard\"\r\n mat-flat-button>\r\n Copy\r\n </button>\r\n\r\n </mat-card-actions>\r\n\r\n\r\n </mat-card>\r\n }@placeholder {\r\n <div style=\"padding: 50px;display:flex;justify-content:center;align-items:center; text-align: center;\">\r\n <mat-spinner diameter=\"20\" />\r\n </div>\r\n\r\n }\r\n</div>\r\n}\r\n"],"names":["i2","i3","i4","i1","i6","i7","i5","i8","i9","i10","i11"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA6Ba,2BAA2B,CAAA;AAfxC,IAAA,WAAA,GAAA;AAgBW,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAClC,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,EAAC,YAAyC,EAAC;;AAEpD,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAU,eAAe,CAAC;QAEvC,IAAA,CAAA,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,YAAY;QACjD,IAAA,CAAA,mBAAmB,GAAG,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,mBAAmB;AAkBnF,IAAA;AAxBU,IAAA,MAAM;AACN,IAAA,UAAU;IAOnB,QAAQ,GAAA;AACN,QAAA,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC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angular/core';
3
+ import { MAT_NATIVE_DATE_FORMATS, NativeDateAdapter, DateAdapter, MAT_DATE_FORMATS } from '@angular/material/core';
4
+ import { ag as FORMS_LOCALIZATION_DEFAULTS, ah as injectFormsLocalization, ai as weekDayIndexFor } from './ngx-t-forms-ngx-t-forms-C1kZpYIM.mjs';
5
+
6
+ /**
7
+ * @file Material's native `Date` adapter, following the consumer's localization:
8
+ * the configured locale (so the calendar input writes dates the way the
9
+ * organisation does), the configured first day of the week, and — when one is
10
+ * configured — a fixed date pattern for the input and a fixed clock for the
11
+ * time picker. With no localization configured it behaves exactly like
12
+ * `provideNativeDateAdapter()`, `MAT_DATE_LOCALE` included.
13
+ *
14
+ * Component-level, like the Material provider it replaces: each date element
15
+ * declares `providers: [provideFormsDateAdapter()]`.
16
+ */
17
+ /**
18
+ * The formats this adapter is paired with. Each display entry the adapter
19
+ * treats specially is its own object rather than Material's constant, so
20
+ * `format()` can recognise the date input, the time input and the time option
21
+ * label by identity and apply the configured pattern or clock to exactly those.
22
+ */
23
+ const FORMS_MAT_DATE_FORMATS = {
24
+ parse: { ...MAT_NATIVE_DATE_FORMATS.parse },
25
+ display: {
26
+ ...MAT_NATIVE_DATE_FORMATS.display,
27
+ dateInput: { ...MAT_NATIVE_DATE_FORMATS.display.dateInput },
28
+ timeInput: { ...(MAT_NATIVE_DATE_FORMATS.display.timeInput ?? { hour: 'numeric', minute: 'numeric' }) },
29
+ timeOptionLabel: {
30
+ ...(MAT_NATIVE_DATE_FORMATS.display.timeOptionLabel ?? { hour: 'numeric', minute: 'numeric' }),
31
+ },
32
+ },
33
+ };
34
+ /** `d/M/y` with any of the usual separators; the pattern decides which group is which. */
35
+ const NUMERIC_DATE = /^\s*(\d{1,4})\s*[/.\-]\s*(\d{1,2})\s*[/.\-]\s*(\d{1,4})\s*$/;
36
+ /** `19 Oct 2026`, `19 October 2026`, `19 Okt. 2026`. */
37
+ const TEXT_MONTH_DATE = /^\s*(\d{1,2})\s+([^\d\s.]+)\.?\s+(\d{4})\s*$/;
38
+ const shortMonthFormatters = new Map();
39
+ const monthNamesByLocale = new Map();
40
+ function shortMonthName(date, locale) {
41
+ let formatter = shortMonthFormatters.get(locale);
42
+ if (!formatter) {
43
+ formatter = new Intl.DateTimeFormat(locale, { month: 'short' });
44
+ shortMonthFormatters.set(locale, formatter);
45
+ }
46
+ return formatter.format(date);
47
+ }
48
+ /** Lower-cased short and long month names of `locale` (and English, always) → month number. */
49
+ function monthNames(locale) {
50
+ const cached = monthNamesByLocale.get(locale);
51
+ if (cached)
52
+ return cached;
53
+ const names = new Map();
54
+ for (const tag of new Set([locale, 'en'])) {
55
+ for (const month of ['short', 'long']) {
56
+ const formatter = new Intl.DateTimeFormat(tag, { month });
57
+ for (let index = 0; index < 12; index++) {
58
+ const name = formatter.format(new Date(2017, index, 1)).toLowerCase().replace(/\.$/, '');
59
+ if (!names.has(name))
60
+ names.set(name, index + 1);
61
+ }
62
+ }
63
+ }
64
+ monthNamesByLocale.set(locale, names);
65
+ return names;
66
+ }
67
+ function buildDate(yearText, monthText, dayText) {
68
+ const year = Number(yearText);
69
+ const month = Number(monthText);
70
+ const day = Number(dayText);
71
+ if (!(year >= 1000 && year <= 9999) || month < 1 || month > 12 || day < 1 || day > 31)
72
+ return null;
73
+ const date = new Date(year, month - 1, day);
74
+ // Reject overflow (31 February becomes 3 March in the constructor).
75
+ return date.getFullYear() === year && date.getMonth() === month - 1 && date.getDate() === day ? date : null;
76
+ }
77
+ /** `date` written in `pattern`; month names come from `locale`. */
78
+ function formatDatePattern(date, pattern, locale) {
79
+ const day = String(date.getDate()).padStart(2, '0');
80
+ const month = String(date.getMonth() + 1).padStart(2, '0');
81
+ const year = String(date.getFullYear()).padStart(4, '0');
82
+ switch (pattern) {
83
+ case 'MM/dd/yyyy':
84
+ return `${month}/${day}/${year}`;
85
+ case 'yyyy-MM-dd':
86
+ return `${year}-${month}-${day}`;
87
+ case 'd MMM yyyy':
88
+ return `${date.getDate()} ${shortMonthName(date, locale)} ${year}`;
89
+ default:
90
+ return `${day}/${month}/${year}`;
91
+ }
92
+ }
93
+ /**
94
+ * `text` read as `pattern`: a local-midnight `Date`, or `null` when it is not a
95
+ * real calendar day in that pattern (the caller then falls back to the native
96
+ * parser). Four-digit years only; `/`, `.` and `-` all separate.
97
+ */
98
+ function parseDatePattern(text, pattern, locale) {
99
+ if (pattern === 'd MMM yyyy') {
100
+ const match = TEXT_MONTH_DATE.exec(text);
101
+ if (!match)
102
+ return null;
103
+ const [, day, monthName, year] = match;
104
+ const month = monthNames(locale).get((monthName ?? '').toLowerCase());
105
+ return month === undefined ? null : buildDate(year ?? '', String(month), day ?? '');
106
+ }
107
+ const match = NUMERIC_DATE.exec(text);
108
+ if (!match)
109
+ return null;
110
+ const [, first, second, third] = match;
111
+ switch (pattern) {
112
+ case 'MM/dd/yyyy':
113
+ return buildDate(third ?? '', first ?? '', second ?? '');
114
+ case 'yyyy-MM-dd':
115
+ return buildDate(first ?? '', second ?? '', third ?? '');
116
+ default:
117
+ return buildDate(third ?? '', second ?? '', first ?? '');
118
+ }
119
+ }
120
+ /** True when the consumer configured a localization at all (anything but the library defaults). */
121
+ function isConfigured(localization) {
122
+ return localization !== FORMS_LOCALIZATION_DEFAULTS;
123
+ }
124
+ class FormsNativeDateAdapter extends NativeDateAdapter {
125
+ #localization = injectFormsLocalization();
126
+ constructor() {
127
+ super();
128
+ // With a localization configured, its locale wins over `MAT_DATE_LOCALE`
129
+ // — now and on every change. `setLocale` emits `localeChanges`, which
130
+ // re-renders every open calendar, and that re-read also picks up a changed
131
+ // first day of the week or date pattern. Unconfigured, the locale Material
132
+ // chose in `super()` stands, exactly as with `provideNativeDateAdapter()`.
133
+ this.#followLocale(untracked(this.#localization));
134
+ effect(() => {
135
+ this.#followLocale(this.#localization());
136
+ });
137
+ }
138
+ getFirstDayOfWeek() {
139
+ const day = untracked(this.#localization).firstDayOfWeek;
140
+ return day ? weekDayIndexFor(day) : super.getFirstDayOfWeek();
141
+ }
142
+ format(date, displayFormat) {
143
+ const localization = untracked(this.#localization);
144
+ const { dateInput, timeInput, timeOptionLabel } = FORMS_MAT_DATE_FORMATS.display;
145
+ if (displayFormat === dateInput && localization.dateFormat !== 'locale') {
146
+ if (!this.isValid(date)) {
147
+ throw Error('FormsNativeDateAdapter: Cannot format invalid date.');
148
+ }
149
+ return formatDatePattern(date, localization.dateFormat, this.locale);
150
+ }
151
+ if ((displayFormat === timeInput || displayFormat === timeOptionLabel) && localization.timeFormat !== 'locale') {
152
+ return super.format(date, { ...displayFormat, hourCycle: localization.timeFormat === '12h' ? 'h12' : 'h23' });
153
+ }
154
+ return super.format(date, displayFormat);
155
+ }
156
+ parse(value, parseFormat) {
157
+ const localization = untracked(this.#localization);
158
+ if (typeof value === 'string' && localization.dateFormat !== 'locale') {
159
+ const parsed = parseDatePattern(value, localization.dateFormat, this.locale);
160
+ if (parsed)
161
+ return parsed;
162
+ }
163
+ return super.parse(value, parseFormat);
164
+ }
165
+ #followLocale(localization) {
166
+ if (isConfigured(localization))
167
+ this.setLocale(localization.locale);
168
+ }
169
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: FormsNativeDateAdapter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
170
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: FormsNativeDateAdapter }); }
171
+ }
172
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: FormsNativeDateAdapter, decorators: [{
173
+ type: Injectable
174
+ }], ctorParameters: () => [] });
175
+ /**
176
+ * Component-level providers: {@link FormsNativeDateAdapter} and the formats it is
177
+ * paired with. A drop-in for Material's `provideNativeDateAdapter()`.
178
+ */
179
+ function provideFormsDateAdapter() {
180
+ return [
181
+ { provide: DateAdapter, useClass: FormsNativeDateAdapter },
182
+ { provide: MAT_DATE_FORMATS, useValue: FORMS_MAT_DATE_FORMATS },
183
+ ];
184
+ }
185
+
186
+ export { provideFormsDateAdapter as p };
187
+ //# sourceMappingURL=ngx-t-forms-forms-native-date-adapter-h6fClNMS.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-t-forms-forms-native-date-adapter-h6fClNMS.mjs","sources":["../../../projects/ngx-t-forms/src/lib/services/core/t-form-localization/forms-native-date-adapter.ts"],"sourcesContent":["/**\n * @file Material's native `Date` adapter, following the consumer's localization:\n * the configured locale (so the calendar input writes dates the way the\n * organisation does), the configured first day of the week, and — when one is\n * configured — a fixed date pattern for the input and a fixed clock for the\n * time picker. With no localization configured it behaves exactly like\n * `provideNativeDateAdapter()`, `MAT_DATE_LOCALE` included.\n *\n * Component-level, like the Material provider it replaces: each date element\n * declares `providers: [provideFormsDateAdapter()]`.\n */\nimport { Injectable, type Provider, effect, untracked } from '@angular/core';\nimport {\n DateAdapter,\n MAT_DATE_FORMATS,\n MAT_NATIVE_DATE_FORMATS,\n type MatDateFormats,\n NativeDateAdapter,\n} from '@angular/material/core';\nimport type { FormsDateFormat } from 'ngx-t-forms-types';\n\nimport {\n FORMS_LOCALIZATION_DEFAULTS,\n weekDayIndexFor,\n type ResolvedFormsLocalization,\n} from '../../../shared/functions/formsLocalization';\nimport { injectFormsLocalization } from './inject-forms-localization';\n\n/** A date pattern the adapter writes and reads itself (everything but `locale`). */\nexport type FixedDatePattern = Exclude<FormsDateFormat, 'locale'>;\n\n/**\n * The formats this adapter is paired with. Each display entry the adapter\n * treats specially is its own object rather than Material's constant, so\n * `format()` can recognise the date input, the time input and the time option\n * label by identity and apply the configured pattern or clock to exactly those.\n */\nexport const FORMS_MAT_DATE_FORMATS: MatDateFormats = {\n parse: { ...MAT_NATIVE_DATE_FORMATS.parse },\n display: {\n ...MAT_NATIVE_DATE_FORMATS.display,\n dateInput: { ...MAT_NATIVE_DATE_FORMATS.display.dateInput },\n timeInput: { ...(MAT_NATIVE_DATE_FORMATS.display.timeInput ?? { hour: 'numeric', minute: 'numeric' }) },\n timeOptionLabel: {\n ...(MAT_NATIVE_DATE_FORMATS.display.timeOptionLabel ?? { hour: 'numeric', minute: 'numeric' }),\n },\n },\n};\n\n/** `d/M/y` with any of the usual separators; the pattern decides which group is which. */\nconst NUMERIC_DATE = /^\\s*(\\d{1,4})\\s*[/.\\-]\\s*(\\d{1,2})\\s*[/.\\-]\\s*(\\d{1,4})\\s*$/;\n/** `19 Oct 2026`, `19 October 2026`, `19 Okt. 2026`. */\nconst TEXT_MONTH_DATE = /^\\s*(\\d{1,2})\\s+([^\\d\\s.]+)\\.?\\s+(\\d{4})\\s*$/;\n\nconst shortMonthFormatters = new Map<string, Intl.DateTimeFormat>();\nconst monthNamesByLocale = new Map<string, ReadonlyMap<string, number>>();\n\nfunction shortMonthName(date: Date, locale: string): string {\n let formatter = shortMonthFormatters.get(locale);\n if (!formatter) {\n formatter = new Intl.DateTimeFormat(locale, { month: 'short' });\n shortMonthFormatters.set(locale, formatter);\n }\n return formatter.format(date);\n}\n\n/** Lower-cased short and long month names of `locale` (and English, always) → month number. */\nfunction monthNames(locale: string): ReadonlyMap<string, number> {\n const cached = monthNamesByLocale.get(locale);\n if (cached) return cached;\n const names = new Map<string, number>();\n for (const tag of new Set([locale, 'en'])) {\n for (const month of ['short', 'long'] as const) {\n const formatter = new Intl.DateTimeFormat(tag, { month });\n for (let index = 0; index < 12; index++) {\n const name = formatter.format(new Date(2017, index, 1)).toLowerCase().replace(/\\.$/, '');\n if (!names.has(name)) names.set(name, index + 1);\n }\n }\n }\n monthNamesByLocale.set(locale, names);\n return names;\n}\n\nfunction buildDate(yearText: string, monthText: string, dayText: string): Date | null {\n const year = Number(yearText);\n const month = Number(monthText);\n const day = Number(dayText);\n if (!(year >= 1000 && year <= 9999) || month < 1 || month > 12 || day < 1 || day > 31) return null;\n const date = new Date(year, month - 1, day);\n // Reject overflow (31 February becomes 3 March in the constructor).\n return date.getFullYear() === year && date.getMonth() === month - 1 && date.getDate() === day ? date : null;\n}\n\n/** `date` written in `pattern`; month names come from `locale`. */\nexport function formatDatePattern(date: Date, pattern: FixedDatePattern, locale: string): string {\n const day = String(date.getDate()).padStart(2, '0');\n const month = String(date.getMonth() + 1).padStart(2, '0');\n const year = String(date.getFullYear()).padStart(4, '0');\n switch (pattern) {\n case 'MM/dd/yyyy':\n return `${month}/${day}/${year}`;\n case 'yyyy-MM-dd':\n return `${year}-${month}-${day}`;\n case 'd MMM yyyy':\n return `${date.getDate()} ${shortMonthName(date, locale)} ${year}`;\n default:\n return `${day}/${month}/${year}`;\n }\n}\n\n/**\n * `text` read as `pattern`: a local-midnight `Date`, or `null` when it is not a\n * real calendar day in that pattern (the caller then falls back to the native\n * parser). Four-digit years only; `/`, `.` and `-` all separate.\n */\nexport function parseDatePattern(text: string, pattern: FixedDatePattern, locale: string): Date | null {\n if (pattern === 'd MMM yyyy') {\n const match = TEXT_MONTH_DATE.exec(text);\n if (!match) return null;\n const [, day, monthName, year] = match;\n const month = monthNames(locale).get((monthName ?? '').toLowerCase());\n return month === undefined ? null : buildDate(year ?? '', String(month), day ?? '');\n }\n const match = NUMERIC_DATE.exec(text);\n if (!match) return null;\n const [, first, second, third] = match;\n switch (pattern) {\n case 'MM/dd/yyyy':\n return buildDate(third ?? '', first ?? '', second ?? '');\n case 'yyyy-MM-dd':\n return buildDate(first ?? '', second ?? '', third ?? '');\n default:\n return buildDate(third ?? '', second ?? '', first ?? '');\n }\n}\n\n/** True when the consumer configured a localization at all (anything but the library defaults). */\nfunction isConfigured(localization: ResolvedFormsLocalization): boolean {\n return localization !== FORMS_LOCALIZATION_DEFAULTS;\n}\n\n@Injectable()\nexport class FormsNativeDateAdapter extends NativeDateAdapter {\n readonly #localization = injectFormsLocalization();\n\n constructor() {\n super();\n // With a localization configured, its locale wins over `MAT_DATE_LOCALE`\n // — now and on every change. `setLocale` emits `localeChanges`, which\n // re-renders every open calendar, and that re-read also picks up a changed\n // first day of the week or date pattern. Unconfigured, the locale Material\n // chose in `super()` stands, exactly as with `provideNativeDateAdapter()`.\n this.#followLocale(untracked(this.#localization));\n effect(() => {\n this.#followLocale(this.#localization());\n });\n }\n\n override getFirstDayOfWeek(): number {\n const day = untracked(this.#localization).firstDayOfWeek;\n return day ? weekDayIndexFor(day) : super.getFirstDayOfWeek();\n }\n\n override format(date: Date, displayFormat: Intl.DateTimeFormatOptions): string {\n const localization = untracked(this.#localization);\n const { dateInput, timeInput, timeOptionLabel } = FORMS_MAT_DATE_FORMATS.display;\n if (displayFormat === dateInput && localization.dateFormat !== 'locale') {\n if (!this.isValid(date)) {\n throw Error('FormsNativeDateAdapter: Cannot format invalid date.');\n }\n return formatDatePattern(date, localization.dateFormat, this.locale);\n }\n if ((displayFormat === timeInput || displayFormat === timeOptionLabel) && localization.timeFormat !== 'locale') {\n return super.format(date, { ...displayFormat, hourCycle: localization.timeFormat === '12h' ? 'h12' : 'h23' });\n }\n return super.format(date, displayFormat);\n }\n\n override parse(value: unknown, parseFormat?: unknown): Date | null {\n const localization = untracked(this.#localization);\n if (typeof value === 'string' && localization.dateFormat !== 'locale') {\n const parsed = parseDatePattern(value, localization.dateFormat, this.locale);\n if (parsed) return parsed;\n }\n return super.parse(value, parseFormat);\n }\n\n #followLocale(localization: ResolvedFormsLocalization): void {\n if (isConfigured(localization)) this.setLocale(localization.locale);\n }\n}\n\n/**\n * Component-level providers: {@link FormsNativeDateAdapter} and the formats it is\n * paired with. A drop-in for Material's `provideNativeDateAdapter()`.\n */\nexport function provideFormsDateAdapter(): Provider[] {\n return [\n { provide: DateAdapter, useClass: FormsNativeDateAdapter },\n { provide: MAT_DATE_FORMATS, useValue: FORMS_MAT_DATE_FORMATS },\n ];\n}\n"],"names":[],"mappings":";;;;;AAAA;;;;;;;;;;AAUG;AAqBH;;;;;AAKG;AACI,MAAM,sBAAsB,GAAmB;AACpD,IAAA,KAAK,EAAE,EAAE,GAAG,uBAAuB,CAAC,KAAK,EAAE;AAC3C,IAAA,OAAO,EAAE;QACP,GAAG,uB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AAI,YAAY,CAAC,UAAU,KAAK,QAAQ,EAAE;AACrE,YAAA,MAAM,MAAM,GAAG,gBAAgB,CAAC,KAAK,EAAE,YAAY,CAAC,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC;AAC5E,YAAA,IAAI,MAAM;AAAE,gBAAA,OAAO,MAAM;QAC3B;QACA,OAAO,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC;IACxC;AAEA,IAAA,aAAa,CAAC,YAAuC,EAAA;QACnD,IAAI,YAAY,CAAC,YAAY,CAAC;AAAE,YAAA,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,MAAM,CAAC;IACrE;+GA/CW,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;mHAAtB,sBAAsB,EAAA,CAAA,CAAA;;4FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBADlC;;AAmDD;;;AAGG;SACa,uBAAuB,GAAA;IACrC,OAAO;AACL,QAAA,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,sBAAsB,EAAE;AAC1D,QAAA,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,sBAAsB,EAAE;KAChE;AACH;;;;"}
@@ -1,16 +1,16 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { inject, ElementRef, input, signal, computed, PLATFORM_ID, ChangeDetectionStrategy, Component, output } from '@angular/core';
3
- import * as i1 from '@angular/forms';
3
+ import * as i1$1 from '@angular/forms';
4
4
  import { NgControl, ReactiveFormsModule } from '@angular/forms';
5
- import * as i2$1 from '@angular/material/form-field';
5
+ import * as i2 from '@angular/material/form-field';
6
6
  import { MatFormFieldControl, MatFormFieldModule } from '@angular/material/form-field';
7
7
  import * as i3 from '@angular/material/icon';
8
8
  import { MatIconModule } from '@angular/material/icon';
9
- import * as i2 from '@angular/material/button';
9
+ import * as i1 from '@angular/material/button';
10
10
  import { MatButtonModule } from '@angular/material/button';
11
11
  import * as i5 from '@angular/material/tooltip';
12
12
  import { MatTooltipModule } from '@angular/material/tooltip';
13
- import { B as BaseCustomInput, a4 as getInputErrorMessage, a5 as TFormInputStatusComponent } from './ngx-t-forms-ngx-t-forms-Dt4iPwb-.mjs';
13
+ import { B as BaseCustomInput, a9 as getInputErrorMessage, aa as TFormInputStatusComponent } from './ngx-t-forms-ngx-t-forms-C1kZpYIM.mjs';
14
14
  import * as i3$1 from '@angular/common';
15
15
  import { isPlatformBrowser, CommonModule } from '@angular/common';
16
16
 
@@ -93,7 +93,7 @@ class GeoLocationFormInputComponent extends BaseCustomInput {
93
93
  provide: MatFormFieldControl,
94
94
  useExisting: GeoLocationFormInputComponent
95
95
  }
96
- ], usesInheritance: true, ngImport: i0, template: "@if (!!empty) {\r\n <p class=\"empty-state\">\r\n Click icon to get your location\r\n </p>\r\n}\r\n<div class=\"coordinates-section\">\r\n @if (!empty) {\r\n <div class=\"coordinate-item\">\r\n <mat-icon color=\"primary\">map</mat-icon>\r\n <span class=\"value\">\r\n <div class=\"inner-value\">\r\n {{ value?.coords?.latitude || 'N/A' }} <span class=\"unit\">\u00B0N</span>\r\n </div>\r\n <div class=\"inner-value label\">\r\n latitude\r\n </div>\r\n </span>\r\n </div>\r\n <div class=\"coordinate-item\">\r\n <mat-icon color=\"primary\">map</mat-icon>\r\n <span class=\"value\">\r\n <div class=\"inner-value\">\r\n {{ value?.coords?.longitude || 'N/A' }}\r\n <span class=\"unit\">\u00B0E</span>\r\n </div>\r\n <div class=\"inner-value label\">\r\n longitude\r\n </div>\r\n </span>\r\n </div>\r\n <div class=\"coordinate-item\">\r\n <mat-icon color=\"primary\">zoom_in_map</mat-icon>\r\n <span class=\"value\">\r\n <div class=\"inner-value\">\r\n {{ value?.coords?.accuracy | number:'1.0-0' }}\r\n <span class=\"unit\">m</span>\r\n </div>\r\n <div class=\"inner-value label\">\r\n accuracy\r\n </div>\r\n </span>\r\n </div>\r\n }\r\n <button mat-flat-button [disabled]=\"isReadOnly()\" (click)=\"getLocation()\">\r\n {{ empty ? 'Get Location' : 'Update Location' }}\r\n <mat-icon>my_location</mat-icon>\r\n </button>\r\n</div>\r\n", styles: [".coordinates-section{display:flex;padding:0;flex-direction:row;flex-wrap:wrap;gap:8px;justify-content:flex-start;align-items:center}.coordinate-item{flex:0 1 auto;width:fit-content;min-width:100px;display:flex;flex-direction:row;align-items:center;gap:8px;padding:4px;background:#f0f8ff;border-radius:8px;white-space:nowrap;font-size:small;border:solid 1px #daedfd}.empty-state{padding-left:16px;padding-right:16px;font-size:small;font-weight:500;line-height:normal;white-space:normal}mat-toolbar{max-width:100%;padding:0}.inner-value{line-height:normal;font-weight:500}.label{opacity:.6}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { 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: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: i3$1.DecimalPipe, name: "number" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
96
+ ], usesInheritance: true, ngImport: i0, template: "@if (!!empty) {\r\n <p class=\"empty-state\">\r\n Click icon to get your location\r\n </p>\r\n}\r\n<div class=\"coordinates-section\">\r\n @if (!empty) {\r\n <div class=\"coordinate-item\">\r\n <mat-icon color=\"primary\">map</mat-icon>\r\n <span class=\"value\">\r\n <div class=\"inner-value\">\r\n {{ value?.coords?.latitude || 'N/A' }} <span class=\"unit\">\u00B0N</span>\r\n </div>\r\n <div class=\"inner-value label\">\r\n latitude\r\n </div>\r\n </span>\r\n </div>\r\n <div class=\"coordinate-item\">\r\n <mat-icon color=\"primary\">map</mat-icon>\r\n <span class=\"value\">\r\n <div class=\"inner-value\">\r\n {{ value?.coords?.longitude || 'N/A' }}\r\n <span class=\"unit\">\u00B0E</span>\r\n </div>\r\n <div class=\"inner-value label\">\r\n longitude\r\n </div>\r\n </span>\r\n </div>\r\n <div class=\"coordinate-item\">\r\n <mat-icon color=\"primary\">zoom_in_map</mat-icon>\r\n <span class=\"value\">\r\n <div class=\"inner-value\">\r\n {{ value?.coords?.accuracy | number:'1.0-0' }}\r\n <span class=\"unit\">m</span>\r\n </div>\r\n <div class=\"inner-value label\">\r\n accuracy\r\n </div>\r\n </span>\r\n </div>\r\n }\r\n <button mat-flat-button [disabled]=\"isReadOnly()\" (click)=\"getLocation()\">\r\n {{ empty ? 'Get Location' : 'Update Location' }}\r\n <mat-icon>my_location</mat-icon>\r\n </button>\r\n</div>\r\n", styles: [".coordinates-section{display:flex;padding:0;flex-direction:row;flex-wrap:wrap;gap:8px;justify-content:flex-start;align-items:center}.coordinate-item{flex:0 1 auto;width:fit-content;min-width:100px;display:flex;flex-direction:row;align-items:center;gap:8px;padding:4px;background:#f0f8ff;border-radius:8px;white-space:nowrap;font-size:small;border:solid 1px #daedfd}.empty-state{padding-left:16px;padding-right:16px;font-size:small;font-weight:500;line-height:normal;white-space:normal}mat-toolbar{max-width:100%;padding:0}.inner-value{line-height:normal;font-weight:500}.label{opacity:.6}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.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: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: i3$1.DecimalPipe, name: "number" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
97
97
  }
98
98
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: GeoLocationFormInputComponent, decorators: [{
99
99
  type: Component,
@@ -116,7 +116,7 @@ class GeoLocationComponent {
116
116
  this.errorMessage = computed(() => getInputErrorMessage(this.inputConfig(), this.formGroup()), ...(ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []));
117
117
  }
118
118
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: GeoLocationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
119
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: GeoLocationComponent, isStandalone: true, selector: "lib-geo-location", inputs: { inputConfig: { classPropertyName: "inputConfig", publicName: "inputConfig", isSignal: true, isRequired: true, transformFunction: null }, formGroup: { classPropertyName: "formGroup", publicName: "formGroup", isSignal: true, isRequired: true, transformFunction: null }, editorMode: { classPropertyName: "editorMode", publicName: "editorMode", isSignal: true, isRequired: false, transformFunction: null }, formBuilderFunctions: { classPropertyName: "formBuilderFunctions", publicName: "formBuilderFunctions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { reload: "reload" }, ngImport: i0, template: "<form [formGroup]=\"formGroup()\">\r\n @if (inputConfig(); as inputConfig) {\r\n <mat-form-field [appearance]=\"inputConfig.appearance || 'fill'\" subscriptSizing=\"dynamic\">\r\n <mat-label>\r\n {{ inputConfig.label }}\r\n <lib-t-form-input-status [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\r\n </mat-label>\r\n\r\n <lib-geo-location-form-input\r\n [inputConfig]=\"inputConfig\"\r\n [formControlName]=\"inputConfig.id\"\r\n [required]=\"inputConfig.required\"\r\n ></lib-geo-location-form-input>\r\n\r\n @if (inputConfig.hintLabel || inputConfig.temporaryHint) {\r\n <mat-hint class=\"inputHint\">\r\n {{ inputConfig.temporaryHint || inputConfig.hintLabel }}\r\n </mat-hint>\r\n }\r\n\r\n @if (!!errorMessage()) {\r\n <mat-error class=\"oneLineTextEllipsis\" matTooltipClass=\"errorToolTip\">{{ errorMessage() }}</mat-error>\r\n }\r\n\r\n @if (inputConfig.canReload?.canReload) {\r\n <button\r\n mat-icon-button\r\n style=\"margin-right: 4px;\"\r\n matTooltip=\"Click to refresh this field.\"\r\n class=\"input-sync-button\"\r\n (click)=\"inputConfig.canReload.emit()\"\r\n matSuffix\r\n >\r\n <mat-icon style=\"color: var(--mat-sys-primary)\">sync</mat-icon>\r\n </button>\r\n }\r\n\r\n @if (inputConfig.prefixIcon) {\r\n <mat-icon matPrefix>{{ inputConfig.prefixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.suffixIcon && inputConfig.id !== 'password') {\r\n <mat-icon matSuffix>{{ inputConfig.suffixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.prefixText) {\r\n <span matPrefix style=\"top: 0\">{{ inputConfig.prefixText }}</span>\r\n }\r\n @if (inputConfig.suffixText) {\r\n <span matSuffix style=\"padding-left: 5px\">{{ inputConfig.suffixText }}</span>\r\n }\r\n\r\n @if (inputConfig.maxLength && formGroup()) {\r\n <mat-hint align=\"end\">\r\n {{ (formGroup().controls[inputConfig.id]?.value?.length || 0) + '/' + inputConfig.maxLength }}\r\n </mat-hint>\r\n }\r\n </mat-form-field>\r\n }\r\n</form>\r\n", styles: ["mat-form-field{width:100%}mat-form-field .input-sync-button{display:none}mat-form-field:hover .input-sync-button{display:inline-block}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i2$1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i2$1.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i2$1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { 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: MatTooltipModule }, { kind: "directive", type: i5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: TFormInputStatusComponent, selector: "lib-t-form-input-status", inputs: ["inputConfig"] }, { kind: "component", type: GeoLocationFormInputComponent, selector: "lib-geo-location-form-input", inputs: ["formBuilderFunctions", "inputConfig"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
119
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: GeoLocationComponent, isStandalone: true, selector: "lib-geo-location", inputs: { inputConfig: { classPropertyName: "inputConfig", publicName: "inputConfig", isSignal: true, isRequired: true, transformFunction: null }, formGroup: { classPropertyName: "formGroup", publicName: "formGroup", isSignal: true, isRequired: true, transformFunction: null }, editorMode: { classPropertyName: "editorMode", publicName: "editorMode", isSignal: true, isRequired: false, transformFunction: null }, formBuilderFunctions: { classPropertyName: "formBuilderFunctions", publicName: "formBuilderFunctions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { reload: "reload" }, ngImport: i0, template: "<form [formGroup]=\"formGroup()\">\r\n @if (inputConfig(); as inputConfig) {\r\n <mat-form-field [appearance]=\"inputConfig.appearance || 'fill'\" subscriptSizing=\"dynamic\">\r\n <mat-label>\r\n {{ inputConfig.label }}\r\n <lib-t-form-input-status [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\r\n </mat-label>\r\n\r\n <lib-geo-location-form-input\r\n [inputConfig]=\"inputConfig\"\r\n [formControlName]=\"inputConfig.id\"\r\n [required]=\"inputConfig.required\"\r\n ></lib-geo-location-form-input>\r\n\r\n @if (inputConfig.hintLabel || inputConfig.temporaryHint) {\r\n <mat-hint class=\"inputHint\">\r\n {{ inputConfig.temporaryHint || inputConfig.hintLabel }}\r\n </mat-hint>\r\n }\r\n\r\n @if (!!errorMessage()) {\r\n <mat-error class=\"oneLineTextEllipsis\" matTooltipClass=\"errorToolTip\">{{ errorMessage() }}</mat-error>\r\n }\r\n\r\n @if (inputConfig.canReload?.canReload) {\r\n <button\r\n mat-icon-button\r\n style=\"margin-right: 4px;\"\r\n matTooltip=\"Click to refresh this field.\"\r\n class=\"input-sync-button\"\r\n (click)=\"inputConfig.canReload.emit()\"\r\n matSuffix\r\n >\r\n <mat-icon style=\"color: var(--mat-sys-primary)\">sync</mat-icon>\r\n </button>\r\n }\r\n\r\n @if (inputConfig.prefixIcon) {\r\n <mat-icon matPrefix>{{ inputConfig.prefixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.suffixIcon && inputConfig.id !== 'password') {\r\n <mat-icon matSuffix>{{ inputConfig.suffixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.prefixText) {\r\n <span matPrefix style=\"padding: 0 12px;\">{{ inputConfig.prefixText }}</span>\r\n }\r\n @if (inputConfig.suffixText) {\r\n <span matSuffix style=\"padding: 0 12px;\">{{ inputConfig.suffixText }}</span>\r\n }\r\n\r\n @if (inputConfig.maxLength && formGroup()) {\r\n <mat-hint align=\"end\">\r\n {{ (formGroup().controls[inputConfig.id]?.value?.length || 0) + '/' + inputConfig.maxLength }}\r\n </mat-hint>\r\n }\r\n </mat-form-field>\r\n }\r\n</form>\r\n", styles: ["mat-form-field{width:100%}mat-form-field .input-sync-button{display:none}mat-form-field:hover .input-sync-button{display:inline-block}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i2.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i2.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i2.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: TFormInputStatusComponent, selector: "lib-t-form-input-status", inputs: ["inputConfig"] }, { kind: "component", type: GeoLocationFormInputComponent, selector: "lib-geo-location-form-input", inputs: ["formBuilderFunctions", "inputConfig"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
120
120
  }
121
121
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: GeoLocationComponent, decorators: [{
122
122
  type: Component,
@@ -128,8 +128,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
128
128
  MatTooltipModule,
129
129
  TFormInputStatusComponent,
130
130
  GeoLocationFormInputComponent,
131
- ], template: "<form [formGroup]=\"formGroup()\">\r\n @if (inputConfig(); as inputConfig) {\r\n <mat-form-field [appearance]=\"inputConfig.appearance || 'fill'\" subscriptSizing=\"dynamic\">\r\n <mat-label>\r\n {{ inputConfig.label }}\r\n <lib-t-form-input-status [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\r\n </mat-label>\r\n\r\n <lib-geo-location-form-input\r\n [inputConfig]=\"inputConfig\"\r\n [formControlName]=\"inputConfig.id\"\r\n [required]=\"inputConfig.required\"\r\n ></lib-geo-location-form-input>\r\n\r\n @if (inputConfig.hintLabel || inputConfig.temporaryHint) {\r\n <mat-hint class=\"inputHint\">\r\n {{ inputConfig.temporaryHint || inputConfig.hintLabel }}\r\n </mat-hint>\r\n }\r\n\r\n @if (!!errorMessage()) {\r\n <mat-error class=\"oneLineTextEllipsis\" matTooltipClass=\"errorToolTip\">{{ errorMessage() }}</mat-error>\r\n }\r\n\r\n @if (inputConfig.canReload?.canReload) {\r\n <button\r\n mat-icon-button\r\n style=\"margin-right: 4px;\"\r\n matTooltip=\"Click to refresh this field.\"\r\n class=\"input-sync-button\"\r\n (click)=\"inputConfig.canReload.emit()\"\r\n matSuffix\r\n >\r\n <mat-icon style=\"color: var(--mat-sys-primary)\">sync</mat-icon>\r\n </button>\r\n }\r\n\r\n @if (inputConfig.prefixIcon) {\r\n <mat-icon matPrefix>{{ inputConfig.prefixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.suffixIcon && inputConfig.id !== 'password') {\r\n <mat-icon matSuffix>{{ inputConfig.suffixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.prefixText) {\r\n <span matPrefix style=\"top: 0\">{{ inputConfig.prefixText }}</span>\r\n }\r\n @if (inputConfig.suffixText) {\r\n <span matSuffix style=\"padding-left: 5px\">{{ inputConfig.suffixText }}</span>\r\n }\r\n\r\n @if (inputConfig.maxLength && formGroup()) {\r\n <mat-hint align=\"end\">\r\n {{ (formGroup().controls[inputConfig.id]?.value?.length || 0) + '/' + inputConfig.maxLength }}\r\n </mat-hint>\r\n }\r\n </mat-form-field>\r\n }\r\n</form>\r\n", styles: ["mat-form-field{width:100%}mat-form-field .input-sync-button{display:none}mat-form-field:hover .input-sync-button{display:inline-block}\n"] }]
131
+ ], template: "<form [formGroup]=\"formGroup()\">\r\n @if (inputConfig(); as inputConfig) {\r\n <mat-form-field [appearance]=\"inputConfig.appearance || 'fill'\" subscriptSizing=\"dynamic\">\r\n <mat-label>\r\n {{ inputConfig.label }}\r\n <lib-t-form-input-status [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\r\n </mat-label>\r\n\r\n <lib-geo-location-form-input\r\n [inputConfig]=\"inputConfig\"\r\n [formControlName]=\"inputConfig.id\"\r\n [required]=\"inputConfig.required\"\r\n ></lib-geo-location-form-input>\r\n\r\n @if (inputConfig.hintLabel || inputConfig.temporaryHint) {\r\n <mat-hint class=\"inputHint\">\r\n {{ inputConfig.temporaryHint || inputConfig.hintLabel }}\r\n </mat-hint>\r\n }\r\n\r\n @if (!!errorMessage()) {\r\n <mat-error class=\"oneLineTextEllipsis\" matTooltipClass=\"errorToolTip\">{{ errorMessage() }}</mat-error>\r\n }\r\n\r\n @if (inputConfig.canReload?.canReload) {\r\n <button\r\n mat-icon-button\r\n style=\"margin-right: 4px;\"\r\n matTooltip=\"Click to refresh this field.\"\r\n class=\"input-sync-button\"\r\n (click)=\"inputConfig.canReload.emit()\"\r\n matSuffix\r\n >\r\n <mat-icon style=\"color: var(--mat-sys-primary)\">sync</mat-icon>\r\n </button>\r\n }\r\n\r\n @if (inputConfig.prefixIcon) {\r\n <mat-icon matPrefix>{{ inputConfig.prefixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.suffixIcon && inputConfig.id !== 'password') {\r\n <mat-icon matSuffix>{{ inputConfig.suffixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.prefixText) {\r\n <span matPrefix style=\"padding: 0 12px;\">{{ inputConfig.prefixText }}</span>\r\n }\r\n @if (inputConfig.suffixText) {\r\n <span matSuffix style=\"padding: 0 12px;\">{{ inputConfig.suffixText }}</span>\r\n }\r\n\r\n @if (inputConfig.maxLength && formGroup()) {\r\n <mat-hint align=\"end\">\r\n {{ (formGroup().controls[inputConfig.id]?.value?.length || 0) + '/' + inputConfig.maxLength }}\r\n </mat-hint>\r\n }\r\n </mat-form-field>\r\n }\r\n</form>\r\n", styles: ["mat-form-field{width:100%}mat-form-field .input-sync-button{display:none}mat-form-field:hover .input-sync-button{display:inline-block}\n"] }]
132
132
  }], propDecorators: { inputConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputConfig", required: true }] }], formGroup: [{ type: i0.Input, args: [{ isSignal: true, alias: "formGroup", required: true }] }], editorMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "editorMode", required: false }] }], formBuilderFunctions: [{ type: i0.Input, args: [{ isSignal: true, alias: "formBuilderFunctions", required: false }] }], reload: [{ type: i0.Output, args: ["reload"] }] } });
133
133
 
134
134
  export { GeoLocationComponent };
135
- //# sourceMappingURL=ngx-t-forms-geo-location.component-whY7YIMk.mjs.map
135
+ //# sourceMappingURL=ngx-t-forms-geo-location.component-DA3ATrvw.mjs.map