ngx-t-forms 2.0.34 → 2.0.36

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 (203) hide show
  1. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-DYKniIW1.mjs → ngx-t-forms-auto-complete-input-element.component-VektEtrf.mjs} +2 -2
  2. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-DYKniIW1.mjs.map → ngx-t-forms-auto-complete-input-element.component-VektEtrf.mjs.map} +1 -1
  3. package/fesm2022/ngx-t-forms-auto-complete-input-element.component-ookGrpnN.mjs +261 -0
  4. package/fesm2022/ngx-t-forms-auto-complete-input-element.component-ookGrpnN.mjs.map +1 -0
  5. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-sAVeqJDq.mjs → ngx-t-forms-basic-input-input-element.component-C8D6DN41.mjs} +3 -3
  6. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-sAVeqJDq.mjs.map → ngx-t-forms-basic-input-input-element.component-C8D6DN41.mjs.map} +1 -1
  7. package/fesm2022/ngx-t-forms-basic-input-input-element.component-CQVuW8z1.mjs +225 -0
  8. package/fesm2022/ngx-t-forms-basic-input-input-element.component-CQVuW8z1.mjs.map +1 -0
  9. package/fesm2022/ngx-t-forms-calculated-field-rules.component-8EgwXTN1.mjs +1011 -0
  10. package/fesm2022/ngx-t-forms-calculated-field-rules.component-8EgwXTN1.mjs.map +1 -0
  11. package/fesm2022/{ngx-t-forms-calculated-field-rules.component-DHCYc95E.mjs → ngx-t-forms-calculated-field-rules.component-B_3IbQjp.mjs} +2 -2
  12. package/fesm2022/{ngx-t-forms-calculated-field-rules.component-DHCYc95E.mjs.map → ngx-t-forms-calculated-field-rules.component-B_3IbQjp.mjs.map} +1 -1
  13. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-B95VIBRi.mjs +136 -0
  14. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-B95VIBRi.mjs.map +1 -0
  15. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-BwGlol4L.mjs → ngx-t-forms-chip-options-creator-editor.component-uTCOa48g.mjs} +4 -4
  16. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-BwGlol4L.mjs.map → ngx-t-forms-chip-options-creator-editor.component-uTCOa48g.mjs.map} +1 -1
  17. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-6fu2mXuZ.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-BX3zJs-A.mjs} +6 -6
  18. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-6fu2mXuZ.mjs.map → ngx-t-forms-config-mscoa-additional-inputs.component-BX3zJs-A.mjs.map} +1 -1
  19. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dm16WA5Y.mjs +253 -0
  20. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dm16WA5Y.mjs.map +1 -0
  21. package/fesm2022/ngx-t-forms-data-source-picker.component-Dij1l4-7.mjs +419 -0
  22. package/fesm2022/ngx-t-forms-data-source-picker.component-Dij1l4-7.mjs.map +1 -0
  23. package/fesm2022/{ngx-t-forms-data-source-picker.component-BdFscpSi.mjs → ngx-t-forms-data-source-picker.component-z0l9WEw7.mjs} +8 -8
  24. package/fesm2022/{ngx-t-forms-data-source-picker.component-BdFscpSi.mjs.map → ngx-t-forms-data-source-picker.component-z0l9WEw7.mjs.map} +1 -1
  25. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-BakchGky.mjs → ngx-t-forms-date-picker-input-element.component-C9I8KX12.mjs} +2 -2
  26. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-BakchGky.mjs.map → ngx-t-forms-date-picker-input-element.component-C9I8KX12.mjs.map} +1 -1
  27. package/fesm2022/ngx-t-forms-date-picker-input-element.component-D9BOhV6g.mjs +231 -0
  28. package/fesm2022/ngx-t-forms-date-picker-input-element.component-D9BOhV6g.mjs.map +1 -0
  29. package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-BnCFgi6y.mjs → ngx-t-forms-date-range-picker-input-element.component-B3Z47mrO.mjs} +2 -2
  30. package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-BnCFgi6y.mjs.map → ngx-t-forms-date-range-picker-input-element.component-B3Z47mrO.mjs.map} +1 -1
  31. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-BiXubnsN.mjs +333 -0
  32. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-BiXubnsN.mjs.map +1 -0
  33. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-C5T_DK6w.mjs +543 -0
  34. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-C5T_DK6w.mjs.map +1 -0
  35. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-PW2XiPiH.mjs +373 -0
  36. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-PW2XiPiH.mjs.map +1 -0
  37. package/fesm2022/ngx-t-forms-document-picker.component-B47pQxMF.mjs +1217 -0
  38. package/fesm2022/ngx-t-forms-document-picker.component-B47pQxMF.mjs.map +1 -0
  39. package/fesm2022/{ngx-t-forms-document-picker.component-Bp_PJyo4.mjs → ngx-t-forms-document-picker.component-BNQ1a96s.mjs} +5 -5
  40. package/fesm2022/{ngx-t-forms-document-picker.component-Bp_PJyo4.mjs.map → ngx-t-forms-document-picker.component-BNQ1a96s.mjs.map} +1 -1
  41. package/fesm2022/{ngx-t-forms-editor-input-element.component-Crad-MN8.mjs → ngx-t-forms-editor-input-element.component-C12fnCTM.mjs} +3 -3
  42. package/fesm2022/{ngx-t-forms-editor-input-element.component-Crad-MN8.mjs.map → ngx-t-forms-editor-input-element.component-C12fnCTM.mjs.map} +1 -1
  43. package/fesm2022/ngx-t-forms-editor-input-element.component-DYytkGYD.mjs +447 -0
  44. package/fesm2022/ngx-t-forms-editor-input-element.component-DYytkGYD.mjs.map +1 -0
  45. package/fesm2022/ngx-t-forms-editor-js-input.component-BQSF3142.mjs +251 -0
  46. package/fesm2022/ngx-t-forms-editor-js-input.component-BQSF3142.mjs.map +1 -0
  47. package/fesm2022/{ngx-t-forms-editor-js-input.component-IEjjoNbP.mjs → ngx-t-forms-editor-js-input.component-cxob42pE.mjs} +2 -2
  48. package/fesm2022/{ngx-t-forms-editor-js-input.component-IEjjoNbP.mjs.map → ngx-t-forms-editor-js-input.component-cxob42pE.mjs.map} +1 -1
  49. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-CzCphzUH.mjs → ngx-t-forms-file-upload-input-element.component-Bgi-chdw.mjs} +6 -6
  50. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-CzCphzUH.mjs.map → ngx-t-forms-file-upload-input-element.component-Bgi-chdw.mjs.map} +1 -1
  51. package/fesm2022/ngx-t-forms-file-upload-input-element.component-CI4onrtp.mjs +447 -0
  52. package/fesm2022/ngx-t-forms-file-upload-input-element.component-CI4onrtp.mjs.map +1 -0
  53. package/fesm2022/ngx-t-forms-form-input-selector.component-BysF2WY-.mjs +163 -0
  54. package/fesm2022/ngx-t-forms-form-input-selector.component-BysF2WY-.mjs.map +1 -0
  55. package/fesm2022/{ngx-t-forms-form-input-selector.component-DVyLFw6x.mjs → ngx-t-forms-form-input-selector.component-xIalL_cs.mjs} +4 -4
  56. package/fesm2022/{ngx-t-forms-form-input-selector.component-DVyLFw6x.mjs.map → ngx-t-forms-form-input-selector.component-xIalL_cs.mjs.map} +1 -1
  57. package/fesm2022/{ngx-t-forms-form-json-view.component-D5YJ5pFm.mjs → ngx-t-forms-form-json-view.component-CU1d8rGd.mjs} +2 -2
  58. package/fesm2022/{ngx-t-forms-form-json-view.component-D5YJ5pFm.mjs.map → ngx-t-forms-form-json-view.component-CU1d8rGd.mjs.map} +1 -1
  59. package/fesm2022/ngx-t-forms-form-json-view.component-DpU3ZTiS.mjs +28 -0
  60. package/fesm2022/ngx-t-forms-form-json-view.component-DpU3ZTiS.mjs.map +1 -0
  61. package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs +291 -0
  62. package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs.map +1 -0
  63. package/fesm2022/{ngx-t-forms-form-payload-projection.component-Ip9ewB18.mjs → ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs} +3 -3
  64. package/fesm2022/{ngx-t-forms-form-payload-projection.component-Ip9ewB18.mjs.map → ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs.map} +1 -1
  65. package/fesm2022/ngx-t-forms-form-section-stepper.component-DqShhIBK.mjs +936 -0
  66. package/fesm2022/ngx-t-forms-form-section-stepper.component-DqShhIBK.mjs.map +1 -0
  67. package/fesm2022/ngx-t-forms-form-section-stepper.component-tGbPKHM6.mjs +389 -0
  68. package/fesm2022/ngx-t-forms-form-section-stepper.component-tGbPKHM6.mjs.map +1 -0
  69. package/fesm2022/ngx-t-forms-forms-builder-menu.component-BsgtMZFM.mjs +816 -0
  70. package/fesm2022/ngx-t-forms-forms-builder-menu.component-BsgtMZFM.mjs.map +1 -0
  71. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-DTEx6mIl.mjs → ngx-t-forms-forms-builder-menu.component-hK9C4vAa.mjs} +11 -11
  72. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-DTEx6mIl.mjs.map → ngx-t-forms-forms-builder-menu.component-hK9C4vAa.mjs.map} +1 -1
  73. package/fesm2022/{ngx-t-forms-geo-location.component-4vXrrAS0.mjs → ngx-t-forms-geo-location.component-ChmvJCGu.mjs} +2 -2
  74. package/fesm2022/{ngx-t-forms-geo-location.component-4vXrrAS0.mjs.map → ngx-t-forms-geo-location.component-ChmvJCGu.mjs.map} +1 -1
  75. package/fesm2022/ngx-t-forms-geo-location.component-DfmFok8a.mjs +329 -0
  76. package/fesm2022/ngx-t-forms-geo-location.component-DfmFok8a.mjs.map +1 -0
  77. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-BbfiG8wm.mjs → ngx-t-forms-image-capture-input-element.component-BpA_P017.mjs} +6 -6
  78. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-BbfiG8wm.mjs.map → ngx-t-forms-image-capture-input-element.component-BpA_P017.mjs.map} +1 -1
  79. package/fesm2022/ngx-t-forms-image-capture-input-element.component-DYjnaWYE.mjs +360 -0
  80. package/fesm2022/ngx-t-forms-image-capture-input-element.component-DYjnaWYE.mjs.map +1 -0
  81. package/fesm2022/{ngx-t-forms-index-D8TBBLAD.mjs → ngx-t-forms-index-D-7ZX0w7.mjs} +2 -2
  82. package/fesm2022/ngx-t-forms-index-D-7ZX0w7.mjs.map +1 -0
  83. package/fesm2022/ngx-t-forms-index-DHloq32-.mjs +2 -0
  84. package/fesm2022/ngx-t-forms-index-DHloq32-.mjs.map +1 -0
  85. package/fesm2022/ngx-t-forms-input-custom.component-Cv6jfrPf.mjs +128 -0
  86. package/fesm2022/ngx-t-forms-input-custom.component-Cv6jfrPf.mjs.map +1 -0
  87. package/fesm2022/{ngx-t-forms-input-custom.component-B855cSGR.mjs → ngx-t-forms-input-custom.component-pUshbxSM.mjs} +2 -2
  88. package/fesm2022/{ngx-t-forms-input-custom.component-B855cSGR.mjs.map → ngx-t-forms-input-custom.component-pUshbxSM.mjs.map} +1 -1
  89. package/fesm2022/ngx-t-forms-input-editor.component-BKV6ZJx9.mjs +512 -0
  90. package/fesm2022/ngx-t-forms-input-editor.component-BKV6ZJx9.mjs.map +1 -0
  91. package/fesm2022/ngx-t-forms-input-editor.component-CxXMETLl.mjs +190 -0
  92. package/fesm2022/ngx-t-forms-input-editor.component-CxXMETLl.mjs.map +1 -0
  93. package/fesm2022/{ngx-t-forms-map-mat-options-keys-C0L8Vi2y.mjs → ngx-t-forms-map-mat-options-keys-BbfC5vYI.mjs} +4 -4
  94. package/fesm2022/{ngx-t-forms-map-mat-options-keys-C0L8Vi2y.mjs.map → ngx-t-forms-map-mat-options-keys-BbfC5vYI.mjs.map} +1 -1
  95. package/fesm2022/ngx-t-forms-map-mat-options-keys-epWo0lEj.mjs +132 -0
  96. package/fesm2022/ngx-t-forms-map-mat-options-keys-epWo0lEj.mjs.map +1 -0
  97. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-Bqjjgtyf.mjs +109 -0
  98. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-Bqjjgtyf.mjs.map +1 -0
  99. package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-D8tnMRWS.mjs → ngx-t-forms-mat-chip-list-editor.component-CuOsHNXe.mjs} +4 -4
  100. package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-D8tnMRWS.mjs.map → ngx-t-forms-mat-chip-list-editor.component-CuOsHNXe.mjs.map} +1 -1
  101. package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs +241 -0
  102. package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs.map +1 -0
  103. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs +180 -0
  104. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs.map +1 -0
  105. package/fesm2022/{ngx-t-forms-missing-form-configs.component-BgZ2Q0yu.mjs → ngx-t-forms-missing-form-configs.component-CDIajZxP.mjs} +6 -6
  106. package/fesm2022/{ngx-t-forms-missing-form-configs.component-BgZ2Q0yu.mjs.map → ngx-t-forms-missing-form-configs.component-CDIajZxP.mjs.map} +1 -1
  107. package/fesm2022/ngx-t-forms-missing-form-configs.component-DRAVdGfc.mjs +114 -0
  108. package/fesm2022/ngx-t-forms-missing-form-configs.component-DRAVdGfc.mjs.map +1 -0
  109. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-C9b-pNLr.mjs +69 -0
  110. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-C9b-pNLr.mjs.map +1 -0
  111. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-DD13F1yS.mjs → ngx-t-forms-mscoa-chart-toolbar.component-D1ASX1mt.mjs} +4 -4
  112. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-DD13F1yS.mjs.map → ngx-t-forms-mscoa-chart-toolbar.component-D1ASX1mt.mjs.map} +1 -1
  113. package/fesm2022/ngx-t-forms-mscoa-error-display.component-DzFibbuY.mjs +200 -0
  114. package/fesm2022/ngx-t-forms-mscoa-error-display.component-DzFibbuY.mjs.map +1 -0
  115. package/fesm2022/{ngx-t-forms-mscoa-segment-config.component--lBn-Pvd.mjs → ngx-t-forms-mscoa-segment-config.component-CjuxTqfX.mjs} +2 -2
  116. package/fesm2022/{ngx-t-forms-mscoa-segment-config.component--lBn-Pvd.mjs.map → ngx-t-forms-mscoa-segment-config.component-CjuxTqfX.mjs.map} +1 -1
  117. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-D9KrXNS6.mjs +850 -0
  118. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-D9KrXNS6.mjs.map +1 -0
  119. package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-DV93x0Rr.mjs +107 -0
  120. package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-DV93x0Rr.mjs.map +1 -0
  121. package/fesm2022/{ngx-t-forms-multiple-input-input-element.component-CZHFMhL7.mjs → ngx-t-forms-multiple-input-input-element.component-BA61uQ2q.mjs} +10 -10
  122. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-BA61uQ2q.mjs.map +1 -0
  123. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-BxQYrUJL.mjs +1665 -0
  124. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-BxQYrUJL.mjs.map +1 -0
  125. package/fesm2022/{ngx-t-forms-ngx-t-forms-BkTeV_AF.mjs → ngx-t-forms-ngx-t-forms-CJGAj18J.mjs} +2042 -179
  126. package/fesm2022/ngx-t-forms-ngx-t-forms-CJGAj18J.mjs.map +1 -0
  127. package/fesm2022/ngx-t-forms-ngx-t-forms-D7kDvkTZ.mjs +27352 -0
  128. package/fesm2022/ngx-t-forms-ngx-t-forms-D7kDvkTZ.mjs.map +1 -0
  129. package/fesm2022/ngx-t-forms-paginated-selection-table-DeY5vQti.mjs +1024 -0
  130. package/fesm2022/ngx-t-forms-paginated-selection-table-DeY5vQti.mjs.map +1 -0
  131. package/fesm2022/{ngx-t-forms-paginated-selection-table-1W6jXaKk.mjs → ngx-t-forms-paginated-selection-table-yvhqQxPV.mjs} +5 -5
  132. package/fesm2022/{ngx-t-forms-paginated-selection-table-1W6jXaKk.mjs.map → ngx-t-forms-paginated-selection-table-yvhqQxPV.mjs.map} +1 -1
  133. package/fesm2022/ngx-t-forms-payload-template-editor.component-BzY-kX6W.mjs +234 -0
  134. package/fesm2022/ngx-t-forms-payload-template-editor.component-BzY-kX6W.mjs.map +1 -0
  135. package/fesm2022/ngx-t-forms-payload-template-editor.component-sqY3bYiZ.mjs +203 -0
  136. package/fesm2022/ngx-t-forms-payload-template-editor.component-sqY3bYiZ.mjs.map +1 -0
  137. package/fesm2022/{ngx-t-forms-pipeline-generator.component-yBqYGbgL.mjs → ngx-t-forms-pipeline-generator.component-COvr1j_v.mjs} +9 -9
  138. package/fesm2022/ngx-t-forms-pipeline-generator.component-COvr1j_v.mjs.map +1 -0
  139. package/fesm2022/ngx-t-forms-pipeline-generator.component-CcHgQ-MT.mjs +1126 -0
  140. package/fesm2022/ngx-t-forms-pipeline-generator.component-CcHgQ-MT.mjs.map +1 -0
  141. package/fesm2022/{ngx-t-forms-record-list-manager.component-fC_S81-7.mjs → ngx-t-forms-record-list-manager.component-CY4GnAOb.mjs} +4 -4
  142. package/fesm2022/{ngx-t-forms-record-list-manager.component-fC_S81-7.mjs.map → ngx-t-forms-record-list-manager.component-CY4GnAOb.mjs.map} +1 -1
  143. package/fesm2022/ngx-t-forms-record-list-manager.component-DuE2OdC4.mjs +545 -0
  144. package/fesm2022/ngx-t-forms-record-list-manager.component-DuE2OdC4.mjs.map +1 -0
  145. package/fesm2022/ngx-t-forms-required-inputs.component-BWKUC8zQ.mjs +451 -0
  146. package/fesm2022/ngx-t-forms-required-inputs.component-BWKUC8zQ.mjs.map +1 -0
  147. package/fesm2022/{ngx-t-forms-required-inputs.component-r1KNcuod.mjs → ngx-t-forms-required-inputs.component-ByBeNLXu.mjs} +4 -4
  148. package/fesm2022/{ngx-t-forms-required-inputs.component-r1KNcuod.mjs.map → ngx-t-forms-required-inputs.component-ByBeNLXu.mjs.map} +1 -1
  149. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BEqnJqZG.mjs +625 -0
  150. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BEqnJqZG.mjs.map +1 -0
  151. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-C99RdNiP.mjs → ngx-t-forms-rest-api-call-setup.component-CkLePXoO.mjs} +61 -15
  152. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-CkLePXoO.mjs.map +1 -0
  153. package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs +72 -0
  154. package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs.map +1 -0
  155. package/fesm2022/ngx-t-forms-section-report.component-CQR27H3a.mjs +248 -0
  156. package/fesm2022/ngx-t-forms-section-report.component-CQR27H3a.mjs.map +1 -0
  157. package/fesm2022/{ngx-t-forms-section-report.component-Cl1wrszQ.mjs → ngx-t-forms-section-report.component-mUpSxbaB.mjs} +4 -4
  158. package/fesm2022/{ngx-t-forms-section-report.component-Cl1wrszQ.mjs.map → ngx-t-forms-section-report.component-mUpSxbaB.mjs.map} +1 -1
  159. package/fesm2022/ngx-t-forms-select-input-element.component-CLs5UkmC.mjs +408 -0
  160. package/fesm2022/ngx-t-forms-select-input-element.component-CLs5UkmC.mjs.map +1 -0
  161. package/fesm2022/{ngx-t-forms-select-input-element.component-CStVMEhv.mjs → ngx-t-forms-select-input-element.component-c7IgHdXA.mjs} +5 -5
  162. package/fesm2022/ngx-t-forms-select-input-element.component-c7IgHdXA.mjs.map +1 -0
  163. package/fesm2022/ngx-t-forms-selection-options-editor.component-DiegTjWX.mjs +275 -0
  164. package/fesm2022/ngx-t-forms-selection-options-editor.component-DiegTjWX.mjs.map +1 -0
  165. package/fesm2022/{ngx-t-forms-selection-options-editor.component-BybBzePF.mjs → ngx-t-forms-selection-options-editor.component-WfuGdtvK.mjs} +5 -5
  166. package/fesm2022/{ngx-t-forms-selection-options-editor.component-BybBzePF.mjs.map → ngx-t-forms-selection-options-editor.component-WfuGdtvK.mjs.map} +1 -1
  167. package/fesm2022/ngx-t-forms-t-workflow-picker.component-CQPrr7Cz.mjs +341 -0
  168. package/fesm2022/ngx-t-forms-t-workflow-picker.component-CQPrr7Cz.mjs.map +1 -0
  169. package/fesm2022/{ngx-t-forms-t-workflow-picker.component-CtavFAUq.mjs → ngx-t-forms-t-workflow-picker.component-DqFMP1rZ.mjs} +7 -7
  170. package/fesm2022/{ngx-t-forms-t-workflow-picker.component-CtavFAUq.mjs.map → ngx-t-forms-t-workflow-picker.component-DqFMP1rZ.mjs.map} +1 -1
  171. package/fesm2022/{ngx-t-forms-textarea-input-element.component-CVUTn20g.mjs → ngx-t-forms-textarea-input-element.component-C7H84RGw.mjs} +2 -2
  172. package/fesm2022/{ngx-t-forms-textarea-input-element.component-CVUTn20g.mjs.map → ngx-t-forms-textarea-input-element.component-C7H84RGw.mjs.map} +1 -1
  173. package/fesm2022/ngx-t-forms-textarea-input-element.component-Coxr1XD7.mjs +233 -0
  174. package/fesm2022/ngx-t-forms-textarea-input-element.component-Coxr1XD7.mjs.map +1 -0
  175. package/fesm2022/ngx-t-forms-toggle-input-element.component-BWnTeuHM.mjs +305 -0
  176. package/fesm2022/ngx-t-forms-toggle-input-element.component-BWnTeuHM.mjs.map +1 -0
  177. package/fesm2022/{ngx-t-forms-toggle-input-element.component-BoZvYozf.mjs → ngx-t-forms-toggle-input-element.component-Cgzg89Ug.mjs} +2 -2
  178. package/fesm2022/{ngx-t-forms-toggle-input-element.component-BoZvYozf.mjs.map → ngx-t-forms-toggle-input-element.component-Cgzg89Ug.mjs.map} +1 -1
  179. package/fesm2022/{ngx-t-forms-validators-config.component-Df9wzsjg.mjs → ngx-t-forms-validators-config.component-DgIVRSvF.mjs} +6 -6
  180. package/fesm2022/{ngx-t-forms-validators-config.component-Df9wzsjg.mjs.map → ngx-t-forms-validators-config.component-DgIVRSvF.mjs.map} +1 -1
  181. package/fesm2022/ngx-t-forms-validators-config.component-DjLB40z-.mjs +1105 -0
  182. package/fesm2022/ngx-t-forms-validators-config.component-DjLB40z-.mjs.map +1 -0
  183. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-CJvbB68e.mjs → ngx-t-forms-workflow-adjudication.component-CB6qBxgr.mjs} +9 -9
  184. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-CJvbB68e.mjs.map → ngx-t-forms-workflow-adjudication.component-CB6qBxgr.mjs.map} +1 -1
  185. package/fesm2022/ngx-t-forms-workflow-adjudication.component-_A3v5MxN.mjs +2923 -0
  186. package/fesm2022/ngx-t-forms-workflow-adjudication.component-_A3v5MxN.mjs.map +1 -0
  187. package/fesm2022/ngx-t-forms.mjs +1 -1
  188. package/package.json +8 -2
  189. package/styles/_editor-mixins.scss +55 -0
  190. package/styles/_json-editor-syntax.scss +16 -0
  191. package/types/ngx-t-forms.d.ts +663 -12
  192. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-KmfVY6sd.mjs +0 -368
  193. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-KmfVY6sd.mjs.map +0 -1
  194. package/fesm2022/ngx-t-forms-form-section-stepper.component-enB9ZNG7.mjs +0 -389
  195. package/fesm2022/ngx-t-forms-form-section-stepper.component-enB9ZNG7.mjs.map +0 -1
  196. package/fesm2022/ngx-t-forms-index-D8TBBLAD.mjs.map +0 -1
  197. package/fesm2022/ngx-t-forms-input-editor.component-DBFYZyi3.mjs +0 -193
  198. package/fesm2022/ngx-t-forms-input-editor.component-DBFYZyi3.mjs.map +0 -1
  199. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CZHFMhL7.mjs.map +0 -1
  200. package/fesm2022/ngx-t-forms-ngx-t-forms-BkTeV_AF.mjs.map +0 -1
  201. package/fesm2022/ngx-t-forms-pipeline-generator.component-yBqYGbgL.mjs.map +0 -1
  202. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-C99RdNiP.mjs.map +0 -1
  203. package/fesm2022/ngx-t-forms-select-input-element.component-CStVMEhv.mjs.map +0 -1
@@ -0,0 +1,305 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, ElementRef, input, ChangeDetectionStrategy, Component, output, computed } from '@angular/core';
3
+ import * as i1$1 from '@angular/forms';
4
+ import { NgControl, ReactiveFormsModule } from '@angular/forms';
5
+ import * as i2$1 from '@angular/material/form-field';
6
+ import { MatFormFieldControl, MatFormFieldModule } from '@angular/material/form-field';
7
+ import * as i3 from '@angular/material/icon';
8
+ import { MatIconModule } from '@angular/material/icon';
9
+ import * as i1$2 from '@angular/material/button';
10
+ import { MatButtonModule } from '@angular/material/button';
11
+ import * as i5 from '@angular/material/tooltip';
12
+ import { MatTooltipModule } from '@angular/material/tooltip';
13
+ import { B as BaseCustomInput, q as getInputErrorMessage, u as TFormInputStatusComponent } from './ngx-t-forms-ngx-t-forms-D7kDvkTZ.mjs';
14
+ import * as i1 from '@angular/material/slide-toggle';
15
+ import { MatSlideToggleModule } from '@angular/material/slide-toggle';
16
+ import * as i2 from '@angular/cdk/overlay';
17
+ import { OverlayModule } from '@angular/cdk/overlay';
18
+ import { TitleCasePipe } from '@angular/common';
19
+
20
+ function ToggleComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
21
+ i0.ɵɵelement(0, "div", 2);
22
+ } }
23
+ function ToggleComponent_Conditional_2_Conditional_0_Conditional_3_Template(rf, ctx) { if (rf & 1) {
24
+ i0.ɵɵelementStart(0, "span", 4);
25
+ i0.ɵɵtext(1);
26
+ i0.ɵɵelementEnd();
27
+ } if (rf & 2) {
28
+ const ctx_r0 = i0.ɵɵnextContext(3);
29
+ i0.ɵɵadvance();
30
+ i0.ɵɵtextInterpolate(ctx_r0.inputConfig().trueLabel || "Yes");
31
+ } }
32
+ function ToggleComponent_Conditional_2_Conditional_0_Conditional_4_Template(rf, ctx) { if (rf & 1) {
33
+ i0.ɵɵelementStart(0, "span", 5);
34
+ i0.ɵɵtext(1);
35
+ i0.ɵɵelementEnd();
36
+ } if (rf & 2) {
37
+ const ctx_r0 = i0.ɵɵnextContext(3);
38
+ i0.ɵɵadvance();
39
+ i0.ɵɵtextInterpolate(ctx_r0.inputConfig().falseLabel || "No");
40
+ } }
41
+ function ToggleComponent_Conditional_2_Conditional_0_Template(rf, ctx) { if (rf & 1) {
42
+ i0.ɵɵtext(0);
43
+ i0.ɵɵpipe(1, "titlecase");
44
+ i0.ɵɵelement(2, "span", 3);
45
+ i0.ɵɵconditionalCreate(3, ToggleComponent_Conditional_2_Conditional_0_Conditional_3_Template, 2, 1, "span", 4)(4, ToggleComponent_Conditional_2_Conditional_0_Conditional_4_Template, 2, 1, "span", 5);
46
+ } if (rf & 2) {
47
+ const ctx_r0 = i0.ɵɵnextContext(2);
48
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(1, 2, ctx_r0.inputConfig().label), " ");
49
+ i0.ɵɵadvance(3);
50
+ i0.ɵɵconditional(ctx_r0.isChecked ? 3 : 4);
51
+ } }
52
+ function ToggleComponent_Conditional_2_Conditional_1_Conditional_0_Template(rf, ctx) { if (rf & 1) {
53
+ i0.ɵɵelementStart(0, "span", 4);
54
+ i0.ɵɵtext(1);
55
+ i0.ɵɵelementEnd();
56
+ } if (rf & 2) {
57
+ const ctx_r0 = i0.ɵɵnextContext(3);
58
+ i0.ɵɵadvance();
59
+ i0.ɵɵtextInterpolate(ctx_r0.inputConfig().trueLabel || "Yes");
60
+ } }
61
+ function ToggleComponent_Conditional_2_Conditional_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
62
+ i0.ɵɵelementStart(0, "span", 5);
63
+ i0.ɵɵtext(1);
64
+ i0.ɵɵelementEnd();
65
+ } if (rf & 2) {
66
+ const ctx_r0 = i0.ɵɵnextContext(3);
67
+ i0.ɵɵadvance();
68
+ i0.ɵɵtextInterpolate(ctx_r0.inputConfig().falseLabel || "No");
69
+ } }
70
+ function ToggleComponent_Conditional_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
71
+ i0.ɵɵconditionalCreate(0, ToggleComponent_Conditional_2_Conditional_1_Conditional_0_Template, 2, 1, "span", 4)(1, ToggleComponent_Conditional_2_Conditional_1_Conditional_1_Template, 2, 1, "span", 5);
72
+ i0.ɵɵelement(2, "span", 3);
73
+ i0.ɵɵtext(3);
74
+ i0.ɵɵpipe(4, "titlecase");
75
+ } if (rf & 2) {
76
+ const ctx_r0 = i0.ɵɵnextContext(2);
77
+ i0.ɵɵconditional(ctx_r0.isChecked ? 0 : 1);
78
+ i0.ɵɵadvance(3);
79
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 2, ctx_r0.inputConfig().label), " ");
80
+ } }
81
+ function ToggleComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
82
+ i0.ɵɵconditionalCreate(0, ToggleComponent_Conditional_2_Conditional_0_Template, 5, 4)(1, ToggleComponent_Conditional_2_Conditional_1_Template, 5, 4);
83
+ } if (rf & 2) {
84
+ const ctx_r0 = i0.ɵɵnextContext();
85
+ i0.ɵɵconditional(ctx_r0.inputConfig().labelPosition !== "after" ? 0 : 1);
86
+ } }
87
+ const customInputConfig = {
88
+ controlType: 'lib-toggle',
89
+ nextId: 0
90
+ };
91
+ class ToggleComponent extends BaseCustomInput {
92
+ constructor() {
93
+ super(inject(NgControl, { optional: true, self: true }), inject(ElementRef), customInputConfig);
94
+ this.inputConfig = input.required(...(ngDevMode ? [{ debugName: "inputConfig" }] : /* istanbul ignore next */ []));
95
+ // A toggle is binary — it must always hold a value. Seed `false` so an
96
+ // unset toggle is never in a "no value" state (which would otherwise read
97
+ // as required while the switch visibly looks off).
98
+ this._value = false;
99
+ }
100
+ get empty() {
101
+ // A toggle always holds a boolean (see `writeValue` + the constructor
102
+ // seed), so it is never empty. `false` is a provided value, not an absent
103
+ // one — mirroring `toggleRequiredValidator`, which passes `true` and `false`.
104
+ return false;
105
+ }
106
+ /** Coerce any incoming value to a boolean so the control is never null/undefined. */
107
+ writeValue(value) {
108
+ super.writeValue(Boolean(value));
109
+ }
110
+ get shouldLabelFloat() {
111
+ return this.focused || !this.empty;
112
+ }
113
+ changed(event) {
114
+ this.value = event.checked;
115
+ this.onChange(event.checked);
116
+ this.stateChanges.next();
117
+ }
118
+ get isChecked() {
119
+ return Boolean(this.value);
120
+ }
121
+ static { this.ɵfac = function ToggleComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ToggleComponent)(); }; }
122
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ToggleComponent, selectors: [["lib-toggle"]], inputs: { inputConfig: [1, "inputConfig"] }, features: [i0.ɵɵProvidersFeature([{ provide: MatFormFieldControl, useExisting: ToggleComponent }]), i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 8, consts: [["cdkConnectedOverlay", "", 3, "cdkConnectedOverlayOpen"], [1, "toggle-control", 3, "change", "disabledInteractive", "required", "labelPosition", "checked", "ariaReadOnly", "disabled"], [1, "readonly-scrim"], [1, "spacer"], [1, "true-label"], [1, "false-label"]], template: function ToggleComponent_Template(rf, ctx) { if (rf & 1) {
123
+ i0.ɵɵtemplate(0, ToggleComponent_ng_template_0_Template, 1, 0, "ng-template", 0);
124
+ i0.ɵɵelementStart(1, "mat-slide-toggle", 1);
125
+ i0.ɵɵlistener("change", function ToggleComponent_Template_mat_slide_toggle_change_1_listener($event) { return ctx.changed($event); });
126
+ i0.ɵɵconditionalCreate(2, ToggleComponent_Conditional_2_Template, 2, 1);
127
+ i0.ɵɵelementEnd();
128
+ } if (rf & 2) {
129
+ i0.ɵɵproperty("cdkConnectedOverlayOpen", !!(ctx.inputConfig().disabled || ctx.inputConfig().readonly));
130
+ i0.ɵɵadvance();
131
+ i0.ɵɵproperty("disabledInteractive", ctx.inputConfig().disabled || ctx.inputConfig().readonly)("required", ctx.inputConfig().required)("labelPosition", ctx.inputConfig().labelPosition || "after")("checked", ctx.isChecked)("ariaReadOnly", ctx.inputConfig().disabled || ctx.inputConfig().readonly)("disabled", ctx.inputConfig().disabled || ctx.inputConfig().readonly);
132
+ i0.ɵɵadvance();
133
+ i0.ɵɵconditional(ctx.inputConfig().falseLabel || ctx.inputConfig().trueLabel ? 2 : -1);
134
+ } }, dependencies: [MatSlideToggleModule, i1.MatSlideToggle, OverlayModule, i2.CdkConnectedOverlay, TitleCasePipe], styles: [".false-label[_ngcontent-%COMP%]{font-weight:500;color:var(--mat-sys-error)!important}.true-label[_ngcontent-%COMP%]{font-weight:500;color:var(--mat-sys-primary)!important}.spacer[_ngcontent-%COMP%]{width:16px;display:inline-block}.toggle-control[_ngcontent-%COMP%]{display:block}.readonly-scrim[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:color-mix(in srgb,var(--mat-sys-scrim) 10%,transparent)}"], changeDetection: 0 }); }
135
+ }
136
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ToggleComponent, [{
137
+ type: Component,
138
+ args: [{ selector: 'lib-toggle', imports: [MatSlideToggleModule, OverlayModule, TitleCasePipe], providers: [{ provide: MatFormFieldControl, useExisting: ToggleComponent }], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template\r\n cdkConnectedOverlay\r\n [cdkConnectedOverlayOpen]=\"!!(inputConfig().disabled || inputConfig().readonly)\"\r\n>\r\n <div class=\"readonly-scrim\"></div>\r\n</ng-template>\r\n\r\n<mat-slide-toggle\r\n class=\"toggle-control\"\r\n [disabledInteractive]=\"inputConfig().disabled || inputConfig().readonly\"\r\n [required]=\"inputConfig().required\"\r\n [labelPosition]=\"inputConfig().labelPosition || 'after'\"\r\n (change)=\"changed($event)\"\r\n [checked]=\"isChecked\"\r\n [ariaReadOnly]=\"inputConfig().disabled || inputConfig().readonly\"\r\n [disabled]=\"inputConfig().disabled || inputConfig().readonly\"\r\n>\r\n @if (inputConfig().falseLabel || inputConfig().trueLabel) {\r\n @if (inputConfig().labelPosition !== 'after') {\r\n {{ inputConfig().label | titlecase }}\r\n <span class=\"spacer\"></span>\r\n @if (isChecked) {\r\n <span class=\"true-label\">{{ inputConfig().trueLabel || 'Yes' }}</span>\r\n } @else {\r\n <span class=\"false-label\">{{ inputConfig().falseLabel || 'No' }}</span>\r\n }\r\n } @else {\r\n @if (isChecked) {\r\n <span class=\"true-label\">{{ inputConfig().trueLabel || 'Yes' }}</span>\r\n } @else {\r\n <span class=\"false-label\">{{ inputConfig().falseLabel || 'No' }}</span>\r\n }\r\n <span class=\"spacer\"></span>\r\n {{ inputConfig().label | titlecase }}\r\n }\r\n }\r\n</mat-slide-toggle>\r\n", styles: [".false-label{font-weight:500;color:var(--mat-sys-error)!important}.true-label{font-weight:500;color:var(--mat-sys-primary)!important}.spacer{width:16px;display:inline-block}.toggle-control{display:block}.readonly-scrim{position:absolute;inset:0;background-color:color-mix(in srgb,var(--mat-sys-scrim) 10%,transparent)}\n"] }]
139
+ }], () => [], { inputConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputConfig", required: true }] }] }); })();
140
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ToggleComponent, { className: "ToggleComponent", filePath: "lib/components/t-form-input/elements/toggle-input-element/core/toggle/toggle.component.ts", lineNumber: 24 }); })();
141
+
142
+ function ToggleInputElementComponent_Conditional_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
143
+ i0.ɵɵelementStart(0, "mat-label");
144
+ i0.ɵɵtext(1, " toggle to select ");
145
+ i0.ɵɵelement(2, "lib-t-form-input-status", 11);
146
+ i0.ɵɵelementEnd();
147
+ } if (rf & 2) {
148
+ const inputConfig_r1 = i0.ɵɵnextContext();
149
+ i0.ɵɵadvance(2);
150
+ i0.ɵɵproperty("inputConfig", inputConfig_r1);
151
+ } }
152
+ function ToggleInputElementComponent_Conditional_1_Conditional_3_Template(rf, ctx) { if (rf & 1) {
153
+ i0.ɵɵelementStart(0, "mat-hint", 3);
154
+ i0.ɵɵtext(1);
155
+ i0.ɵɵelementEnd();
156
+ } if (rf & 2) {
157
+ const inputConfig_r1 = i0.ɵɵnextContext();
158
+ i0.ɵɵadvance();
159
+ i0.ɵɵtextInterpolate1(" ", inputConfig_r1.temporaryHint || inputConfig_r1.hintLabel, " ");
160
+ } }
161
+ function ToggleInputElementComponent_Conditional_1_Conditional_4_Template(rf, ctx) { if (rf & 1) {
162
+ i0.ɵɵelementStart(0, "mat-error", 4);
163
+ i0.ɵɵtext(1);
164
+ i0.ɵɵelementEnd();
165
+ } if (rf & 2) {
166
+ const ctx_r1 = i0.ɵɵnextContext(2);
167
+ i0.ɵɵadvance();
168
+ i0.ɵɵtextInterpolate(ctx_r1.errorMessage());
169
+ } }
170
+ function ToggleInputElementComponent_Conditional_1_Conditional_5_Template(rf, ctx) { if (rf & 1) {
171
+ const _r3 = i0.ɵɵgetCurrentView();
172
+ i0.ɵɵelementStart(0, "button", 12);
173
+ i0.ɵɵlistener("click", function ToggleInputElementComponent_Conditional_1_Conditional_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r3); const inputConfig_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(inputConfig_r1.canReload.emit()); });
174
+ i0.ɵɵelementStart(1, "mat-icon", 13);
175
+ i0.ɵɵtext(2, "sync");
176
+ i0.ɵɵelementEnd()();
177
+ } }
178
+ function ToggleInputElementComponent_Conditional_1_Conditional_6_Template(rf, ctx) { if (rf & 1) {
179
+ i0.ɵɵelementStart(0, "mat-icon", 6);
180
+ i0.ɵɵtext(1);
181
+ i0.ɵɵelementEnd();
182
+ } if (rf & 2) {
183
+ const inputConfig_r1 = i0.ɵɵnextContext();
184
+ i0.ɵɵadvance();
185
+ i0.ɵɵtextInterpolate(inputConfig_r1.prefixIcon);
186
+ } }
187
+ function ToggleInputElementComponent_Conditional_1_Conditional_7_Template(rf, ctx) { if (rf & 1) {
188
+ i0.ɵɵelementStart(0, "mat-icon", 7);
189
+ i0.ɵɵtext(1);
190
+ i0.ɵɵelementEnd();
191
+ } if (rf & 2) {
192
+ const inputConfig_r1 = i0.ɵɵnextContext();
193
+ i0.ɵɵadvance();
194
+ i0.ɵɵtextInterpolate(inputConfig_r1.suffixIcon);
195
+ } }
196
+ function ToggleInputElementComponent_Conditional_1_Conditional_8_Template(rf, ctx) { if (rf & 1) {
197
+ i0.ɵɵelementStart(0, "span", 8);
198
+ i0.ɵɵtext(1);
199
+ i0.ɵɵelementEnd();
200
+ } if (rf & 2) {
201
+ const inputConfig_r1 = i0.ɵɵnextContext();
202
+ i0.ɵɵadvance();
203
+ i0.ɵɵtextInterpolate(inputConfig_r1.prefixText);
204
+ } }
205
+ function ToggleInputElementComponent_Conditional_1_Conditional_9_Template(rf, ctx) { if (rf & 1) {
206
+ i0.ɵɵelementStart(0, "span", 9);
207
+ i0.ɵɵtext(1);
208
+ i0.ɵɵelementEnd();
209
+ } if (rf & 2) {
210
+ const inputConfig_r1 = i0.ɵɵnextContext();
211
+ i0.ɵɵadvance();
212
+ i0.ɵɵtextInterpolate(inputConfig_r1.suffixText);
213
+ } }
214
+ function ToggleInputElementComponent_Conditional_1_Conditional_10_Template(rf, ctx) { if (rf & 1) {
215
+ i0.ɵɵelementStart(0, "mat-hint", 10);
216
+ i0.ɵɵtext(1);
217
+ i0.ɵɵelementEnd();
218
+ } if (rf & 2) {
219
+ let tmp_3_0;
220
+ const inputConfig_r1 = i0.ɵɵnextContext();
221
+ const ctx_r1 = i0.ɵɵnextContext();
222
+ i0.ɵɵadvance();
223
+ i0.ɵɵtextInterpolate1(" ", (((tmp_3_0 = ctx_r1.formGroup().controls[inputConfig_r1.id]) == null ? null : tmp_3_0.value == null ? null : tmp_3_0.value.length) || 0) + "/" + inputConfig_r1.maxLength, " ");
224
+ } }
225
+ function ToggleInputElementComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
226
+ i0.ɵɵelementStart(0, "mat-form-field", 1);
227
+ i0.ɵɵconditionalCreate(1, ToggleInputElementComponent_Conditional_1_Conditional_1_Template, 3, 1, "mat-label");
228
+ i0.ɵɵelement(2, "lib-toggle", 2);
229
+ i0.ɵɵconditionalCreate(3, ToggleInputElementComponent_Conditional_1_Conditional_3_Template, 2, 1, "mat-hint", 3);
230
+ i0.ɵɵconditionalCreate(4, ToggleInputElementComponent_Conditional_1_Conditional_4_Template, 2, 1, "mat-error", 4);
231
+ i0.ɵɵconditionalCreate(5, ToggleInputElementComponent_Conditional_1_Conditional_5_Template, 3, 0, "button", 5);
232
+ i0.ɵɵconditionalCreate(6, ToggleInputElementComponent_Conditional_1_Conditional_6_Template, 2, 1, "mat-icon", 6);
233
+ i0.ɵɵconditionalCreate(7, ToggleInputElementComponent_Conditional_1_Conditional_7_Template, 2, 1, "mat-icon", 7);
234
+ i0.ɵɵconditionalCreate(8, ToggleInputElementComponent_Conditional_1_Conditional_8_Template, 2, 1, "span", 8);
235
+ i0.ɵɵconditionalCreate(9, ToggleInputElementComponent_Conditional_1_Conditional_9_Template, 2, 1, "span", 9);
236
+ i0.ɵɵconditionalCreate(10, ToggleInputElementComponent_Conditional_1_Conditional_10_Template, 2, 1, "mat-hint", 10);
237
+ i0.ɵɵelementEnd();
238
+ } if (rf & 2) {
239
+ const inputConfig_r1 = ctx;
240
+ const ctx_r1 = i0.ɵɵnextContext();
241
+ i0.ɵɵproperty("appearance", inputConfig_r1.appearance || "fill");
242
+ i0.ɵɵadvance();
243
+ i0.ɵɵconditional(!(inputConfig_r1.disabled || ctx_r1.errorMessage()) ? 1 : -1);
244
+ i0.ɵɵadvance();
245
+ i0.ɵɵproperty("inputConfig", inputConfig_r1)("required", inputConfig_r1.required)("formControlName", inputConfig_r1.id);
246
+ i0.ɵɵadvance();
247
+ i0.ɵɵconditional(inputConfig_r1.hintLabel || inputConfig_r1.temporaryHint ? 3 : -1);
248
+ i0.ɵɵadvance();
249
+ i0.ɵɵconditional(!!ctx_r1.errorMessage() ? 4 : -1);
250
+ i0.ɵɵadvance();
251
+ i0.ɵɵconditional((inputConfig_r1.canReload == null ? null : inputConfig_r1.canReload.canReload) ? 5 : -1);
252
+ i0.ɵɵadvance();
253
+ i0.ɵɵconditional(inputConfig_r1.prefixIcon ? 6 : -1);
254
+ i0.ɵɵadvance();
255
+ i0.ɵɵconditional(inputConfig_r1.suffixIcon && inputConfig_r1.id !== "password" ? 7 : -1);
256
+ i0.ɵɵadvance();
257
+ i0.ɵɵconditional(inputConfig_r1.prefixText ? 8 : -1);
258
+ i0.ɵɵadvance();
259
+ i0.ɵɵconditional(inputConfig_r1.suffixText ? 9 : -1);
260
+ i0.ɵɵadvance();
261
+ i0.ɵɵconditional(inputConfig_r1.maxLength && ctx_r1.formGroup() ? 10 : -1);
262
+ } }
263
+ /**
264
+ * Wraps `lib-toggle` in a `mat-form-field` and surfaces the configured
265
+ * label / hint / error / suffix / prefix metadata for the column.
266
+ */
267
+ class ToggleInputElementComponent {
268
+ constructor() {
269
+ /** Form-input column definition. */
270
+ this.inputConfig = input.required(...(ngDevMode ? [{ debugName: "inputConfig" }] : /* istanbul ignore next */ []));
271
+ /** Reactive form group hosting the control identified by `inputConfig.id`. */
272
+ this.formGroup = input.required(...(ngDevMode ? [{ debugName: "formGroup" }] : /* istanbul ignore next */ []));
273
+ /** Emitted when the consumer requests a reload of this input. */
274
+ this.reload = output();
275
+ this.errorMessage = computed(() => getInputErrorMessage(this.inputConfig(), this.formGroup()), ...(ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []));
276
+ }
277
+ static { this.ɵfac = function ToggleInputElementComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ToggleInputElementComponent)(); }; }
278
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ToggleInputElementComponent, selectors: [["lib-toggle-input-element"]], inputs: { inputConfig: [1, "inputConfig"], formGroup: [1, "formGroup"] }, outputs: { reload: "reload" }, decls: 2, vars: 2, consts: [[3, "formGroup"], ["floatLabel", "always", "subscriptSizing", "dynamic", 3, "appearance"], [3, "inputConfig", "required", "formControlName"], [1, "inputHint"], ["matTooltipClass", "errorToolTip", 1, "oneLineTextEllipsis"], ["mat-icon-button", "", "matTooltip", "Click to refresh this field.", "matSuffix", "", 1, "input-sync-button", 2, "margin-right", "4px"], ["matPrefix", ""], ["matSuffix", ""], ["matPrefix", "", 2, "top", "0"], ["matSuffix", "", 2, "padding-left", "5px"], ["align", "end"], [3, "inputConfig"], ["mat-icon-button", "", "matTooltip", "Click to refresh this field.", "matSuffix", "", 1, "input-sync-button", 2, "margin-right", "4px", 3, "click"], [2, "color", "var(--mat-sys-primary)"]], template: function ToggleInputElementComponent_Template(rf, ctx) { if (rf & 1) {
279
+ i0.ɵɵelementStart(0, "form", 0);
280
+ i0.ɵɵconditionalCreate(1, ToggleInputElementComponent_Conditional_1_Template, 11, 13, "mat-form-field", 1);
281
+ i0.ɵɵelementEnd();
282
+ } if (rf & 2) {
283
+ let tmp_1_0;
284
+ i0.ɵɵproperty("formGroup", ctx.formGroup());
285
+ i0.ɵɵadvance();
286
+ i0.ɵɵconditional((tmp_1_0 = ctx.inputConfig()) ? 1 : -1, tmp_1_0);
287
+ } }, dependencies: [ReactiveFormsModule, i1$1.ɵNgNoValidate, i1$1.NgControlStatus, i1$1.NgControlStatusGroup, i1$1.RequiredValidator, i1$1.FormGroupDirective, i1$1.FormControlName, MatFormFieldModule, i2$1.MatFormField, i2$1.MatLabel, i2$1.MatHint, i2$1.MatError, i2$1.MatPrefix, i2$1.MatSuffix, MatIconModule, i3.MatIcon, MatButtonModule, i1$2.MatIconButton, MatTooltipModule, i5.MatTooltip, TFormInputStatusComponent,
288
+ ToggleComponent], styles: ["mat-form-field[_ngcontent-%COMP%]{width:100%!important}mat-form-field[_ngcontent-%COMP%] .input-sync-button[_ngcontent-%COMP%]{display:none}mat-form-field[_ngcontent-%COMP%]:hover .input-sync-button[_ngcontent-%COMP%]{display:inline-block}"], changeDetection: 0 }); }
289
+ }
290
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ToggleInputElementComponent, [{
291
+ type: Component,
292
+ args: [{ selector: 'lib-toggle-input-element', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
293
+ ReactiveFormsModule,
294
+ MatFormFieldModule,
295
+ MatIconModule,
296
+ MatButtonModule,
297
+ MatTooltipModule,
298
+ TFormInputStatusComponent,
299
+ ToggleComponent,
300
+ ], template: "<form [formGroup]=\"formGroup()\">\r\n @if (inputConfig(); as inputConfig) {\r\n <mat-form-field\r\n [appearance]=\"inputConfig.appearance || 'fill'\"\r\n floatLabel=\"always\"\r\n subscriptSizing=\"dynamic\"\r\n >\r\n @if (!(inputConfig.disabled || errorMessage())) {\r\n <mat-label>\r\n toggle to select\r\n <lib-t-form-input-status [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\r\n </mat-label>\r\n }\r\n\r\n <lib-toggle\r\n [inputConfig]=\"inputConfig\"\r\n [required]=\"inputConfig.required\"\r\n [formControlName]=\"inputConfig.id\"\r\n ></lib-toggle>\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%!important}mat-form-field .input-sync-button{display:none}mat-form-field:hover .input-sync-button{display:inline-block}\n"] }]
301
+ }], null, { inputConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputConfig", required: true }] }], formGroup: [{ type: i0.Input, args: [{ isSignal: true, alias: "formGroup", required: true }] }], reload: [{ type: i0.Output, args: ["reload"] }] }); })();
302
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ToggleInputElementComponent, { className: "ToggleInputElementComponent", filePath: "lib/components/t-form-input/elements/toggle-input-element/toggle-input-element.component.ts", lineNumber: 31 }); })();
303
+
304
+ export { ToggleInputElementComponent };
305
+ //# sourceMappingURL=ngx-t-forms-toggle-input-element.component-BWnTeuHM.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-t-forms-toggle-input-element.component-BWnTeuHM.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/toggle-input-element/core/toggle/toggle.component.html","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/toggle-input-element/core/toggle/toggle.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/toggle-input-element/toggle-input-element.component.html","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/toggle-input-element/toggle-input-element.component.ts"],"sourcesContent":["<ng-template\r\n cdkConnectedOverlay\r\n [cdkConnectedOverlayOpen]=\"!!(inputConfig().disabled || inputConfig().readonly)\"\r\n>\r\n <div class=\"readonly-scrim\"></div>\r\n</ng-template>\r\n\r\n<mat-slide-toggle\r\n class=\"toggle-control\"\r\n [disabledInteractive]=\"inputConfig().disabled || inputConfig().readonly\"\r\n [required]=\"inputConfig().required\"\r\n [labelPosition]=\"inputConfig().labelPosition || 'after'\"\r\n (change)=\"changed($event)\"\r\n [checked]=\"isChecked\"\r\n [ariaReadOnly]=\"inputConfig().disabled || inputConfig().readonly\"\r\n [disabled]=\"inputConfig().disabled || inputConfig().readonly\"\r\n>\r\n @if (inputConfig().falseLabel || inputConfig().trueLabel) {\r\n @if (inputConfig().labelPosition !== 'after') {\r\n {{ inputConfig().label | titlecase }}\r\n <span class=\"spacer\"></span>\r\n @if (isChecked) {\r\n <span class=\"true-label\">{{ inputConfig().trueLabel || 'Yes' }}</span>\r\n } @else {\r\n <span class=\"false-label\">{{ inputConfig().falseLabel || 'No' }}</span>\r\n }\r\n } @else {\r\n @if (isChecked) {\r\n <span class=\"true-label\">{{ inputConfig().trueLabel || 'Yes' }}</span>\r\n } @else {\r\n <span class=\"false-label\">{{ inputConfig().falseLabel || 'No' }}</span>\r\n }\r\n <span class=\"spacer\"></span>\r\n {{ inputConfig().label | titlecase }}\r\n }\r\n }\r\n</mat-slide-toggle>\r\n","import { ChangeDetectionStrategy, Component, ElementRef, inject, input } from '@angular/core';\r\nimport { NgControl } from '@angular/forms';\r\nimport { MatFormFieldControl } from '@angular/material/form-field';\r\nimport { MatSlideToggleChange, MatSlideToggleModule } from '@angular/material/slide-toggle';\r\nimport { OverlayModule } from '@angular/cdk/overlay';\r\nimport { TitleCasePipe } from '@angular/common';\r\nimport { ITowerStepColumn } from 'ngx-t-forms-types';\r\n\r\nimport { BaseCustomInput, BaseCustomInputConfig } from '../../../../../../services/core/t-input-controller/functions/baseCustomInput';\r\n\r\nconst customInputConfig: BaseCustomInputConfig = {\r\n controlType: 'lib-toggle',\r\n nextId: 0\r\n};\r\n\r\n@Component({\r\n selector: 'lib-toggle',\r\n imports: [MatSlideToggleModule, OverlayModule, TitleCasePipe],\r\n templateUrl: './toggle.component.html',\r\n providers: [{ provide: MatFormFieldControl, useExisting: ToggleComponent }],\r\n styleUrl: './toggle.component.css',\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class ToggleComponent extends BaseCustomInput<boolean> {\r\n readonly inputConfig = input.required<ITowerStepColumn>();\r\n\r\n constructor() {\r\n super(\r\n inject(NgControl, { optional: true, self: true }) as NgControl,\r\n inject<ElementRef<HTMLElement>>(ElementRef),\r\n customInputConfig\r\n );\r\n\r\n // A toggle is binary — it must always hold a value. Seed `false` so an\r\n // unset toggle is never in a \"no value\" state (which would otherwise read\r\n // as required while the switch visibly looks off).\r\n this._value = false;\r\n }\r\n\r\n override get empty(): boolean {\r\n // A toggle always holds a boolean (see `writeValue` + the constructor\r\n // seed), so it is never empty. `false` is a provided value, not an absent\r\n // one — mirroring `toggleRequiredValidator`, which passes `true` and `false`.\r\n return false;\r\n }\r\n\r\n /** Coerce any incoming value to a boolean so the control is never null/undefined. */\r\n override writeValue(value: boolean | null | undefined): void {\r\n super.writeValue(Boolean(value));\r\n }\r\n\r\n override get shouldLabelFloat(): boolean {\r\n return this.focused || !this.empty;\r\n }\r\n\r\n protected changed(event: MatSlideToggleChange): void {\r\n this.value = event.checked;\r\n this.onChange(event.checked);\r\n this.stateChanges.next();\r\n }\r\n\r\n protected get isChecked(): boolean {\r\n return Boolean(this.value);\r\n }\r\n}\r\n","<form [formGroup]=\"formGroup()\">\r\n @if (inputConfig(); as inputConfig) {\r\n <mat-form-field\r\n [appearance]=\"inputConfig.appearance || 'fill'\"\r\n floatLabel=\"always\"\r\n subscriptSizing=\"dynamic\"\r\n >\r\n @if (!(inputConfig.disabled || errorMessage())) {\r\n <mat-label>\r\n toggle to select\r\n <lib-t-form-input-status [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\r\n </mat-label>\r\n }\r\n\r\n <lib-toggle\r\n [inputConfig]=\"inputConfig\"\r\n [required]=\"inputConfig.required\"\r\n [formControlName]=\"inputConfig.id\"\r\n ></lib-toggle>\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","import { ChangeDetectionStrategy, Component, computed, input, output } from '@angular/core';\r\nimport { FormGroup, ReactiveFormsModule } from '@angular/forms';\r\nimport { MatFormFieldModule } from '@angular/material/form-field';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatTooltipModule } from '@angular/material/tooltip';\r\nimport type { ITowerStepColumn } from 'ngx-t-forms-types';\r\nimport { TFormInputStatusComponent } from '../../../t-form-input-status/t-form-input-status.component';\r\nimport { ToggleComponent } from './core/toggle/toggle.component';\r\nimport { getInputErrorMessage } from '../../../../services/core/t-input-controller/functions/inputErrorMessage';\r\n\r\n/**\r\n * Wraps `lib-toggle` in a `mat-form-field` and surfaces the configured\r\n * label / hint / error / suffix / prefix metadata for the column.\r\n */\r\n@Component({\r\n selector: 'lib-toggle-input-element',\r\n templateUrl: './toggle-input-element.component.html',\r\n styleUrl: './toggle-input-element.component.css',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [\r\n ReactiveFormsModule,\r\n MatFormFieldModule,\r\n MatIconModule,\r\n MatButtonModule,\r\n MatTooltipModule,\r\n TFormInputStatusComponent,\r\n ToggleComponent,\r\n ],\r\n})\r\nexport class ToggleInputElementComponent {\r\n /** Form-input column definition. */\r\n readonly inputConfig = input.required<ITowerStepColumn>();\r\n\r\n /** Reactive form group hosting the control identified by `inputConfig.id`. */\r\n readonly formGroup = input.required<FormGroup>();\r\n\r\n /** Emitted when the consumer requests a reload of this input. */\r\n readonly reload = output<void>();\r\n\r\n protected readonly errorMessage = computed(() =>\r\n getInputErrorMessage(this.inputConfig(), this.formGroup()),\r\n );\r\n}\r\n"],"names":["i1","i2","i4"],"mappings":";;;;;;;;;;;;;;;;;;;;IAIE,EAAA,CAAA,SAAA,CAAA,CAAA,EAAA,KAAA,EAAA,CAAA,CAAkC;;;IAkB5B,EAAA,CAAA,cAAA,CAAA,CAAA,EAAA,MAAA,EAAA,CAAA,CAAyB;IAAA,EAAA,CAAA,MAAA,CAAA,CAAA,CAAsC;IAAA,EAAA,CAAA,YAAA,EAAO;;;IAA7C,EAAA,CAAA,S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AAAA,IAAA,CAAA,SAAA,EAClB,aAAa,cACb,eAAe,EAAAC,IAAA,CAAA,aAAA,EACf,gBAAgB,EAAA,EAAA,CAAA,UAAA,EAChB,yBAAyB;YACzB,eAAe,CAAA,EAAA,MAAA,EAAA,CAAA,qPAAA,CAAA,EAAA,eAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;iFAGN,2BAA2B,EAAA,CAAA;cAfvC,SAAS;AACE,QAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,0BAA0B,EAAA,eAAA,EAGnB,uBAAuB,CAAC,MAAM,EAAA,OAAA,EACtC;oBACP,mBAAmB;oBACnB,kBAAkB;oBAClB,aAAa;oBACb,eAAe;oBACf,gBAAgB;oBAChB,yBAAyB;oBACzB,eAAe;AAChB,iBAAA,EAAA,QAAA,EAAA,kyEAAA,EAAA,MAAA,EAAA,CAAA,oJAAA,CAAA,EAAA;;kFAEU,2BAA2B,EAAA,EAAA,SAAA,EAAA,6BAAA,EAAA,QAAA,EAAA,6FAAA,EAAA,UAAA,EAAA,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA,GAAA;;;;"}
@@ -10,7 +10,7 @@ import * as i1$2 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, q as getInputErrorMessage, u as TFormInputStatusComponent } from './ngx-t-forms-ngx-t-forms-BkTeV_AF.mjs';
13
+ import { B as BaseCustomInput, q as getInputErrorMessage, u as TFormInputStatusComponent } from './ngx-t-forms-ngx-t-forms-CJGAj18J.mjs';
14
14
  import * as i1 from '@angular/material/slide-toggle';
15
15
  import { MatSlideToggleModule } from '@angular/material/slide-toggle';
16
16
  import * as i2 from '@angular/cdk/overlay';
@@ -90,4 +90,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
90
90
  }], propDecorators: { inputConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputConfig", required: true }] }], formGroup: [{ type: i0.Input, args: [{ isSignal: true, alias: "formGroup", required: true }] }], reload: [{ type: i0.Output, args: ["reload"] }] } });
91
91
 
92
92
  export { ToggleInputElementComponent };
93
- //# sourceMappingURL=ngx-t-forms-toggle-input-element.component-BoZvYozf.mjs.map
93
+ //# sourceMappingURL=ngx-t-forms-toggle-input-element.component-Cgzg89Ug.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-t-forms-toggle-input-element.component-BoZvYozf.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/toggle-input-element/core/toggle/toggle.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/toggle-input-element/core/toggle/toggle.component.html","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/toggle-input-element/toggle-input-element.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/toggle-input-element/toggle-input-element.component.html"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ElementRef, inject, input } from '@angular/core';\r\nimport { NgControl } from '@angular/forms';\r\nimport { MatFormFieldControl } from '@angular/material/form-field';\r\nimport { MatSlideToggleChange, MatSlideToggleModule } from '@angular/material/slide-toggle';\r\nimport { OverlayModule } from '@angular/cdk/overlay';\r\nimport { TitleCasePipe } from '@angular/common';\r\nimport { ITowerStepColumn } from 'ngx-t-forms-types';\r\n\r\nimport { BaseCustomInput, BaseCustomInputConfig } from '../../../../../../services/core/t-input-controller/functions/baseCustomInput';\r\n\r\nconst customInputConfig: BaseCustomInputConfig = {\r\n controlType: 'lib-toggle',\r\n nextId: 0\r\n};\r\n\r\n@Component({\r\n selector: 'lib-toggle',\r\n imports: [MatSlideToggleModule, OverlayModule, TitleCasePipe],\r\n templateUrl: './toggle.component.html',\r\n providers: [{ provide: MatFormFieldControl, useExisting: ToggleComponent }],\r\n styleUrl: './toggle.component.css',\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class ToggleComponent extends BaseCustomInput<boolean> {\r\n readonly inputConfig = input.required<ITowerStepColumn>();\r\n\r\n constructor() {\r\n super(\r\n inject(NgControl, { optional: true, self: true }) as NgControl,\r\n inject<ElementRef<HTMLElement>>(ElementRef),\r\n customInputConfig\r\n );\r\n\r\n // A toggle is binary — it must always hold a value. Seed `false` so an\r\n // unset toggle is never in a \"no value\" state (which would otherwise read\r\n // as required while the switch visibly looks off).\r\n this._value = false;\r\n }\r\n\r\n override get empty(): boolean {\r\n // A toggle always holds a boolean (see `writeValue` + the constructor\r\n // seed), so it is never empty. `false` is a provided value, not an absent\r\n // one — mirroring `toggleRequiredValidator`, which passes `true` and `false`.\r\n return false;\r\n }\r\n\r\n /** Coerce any incoming value to a boolean so the control is never null/undefined. */\r\n override writeValue(value: boolean | null | undefined): void {\r\n super.writeValue(Boolean(value));\r\n }\r\n\r\n override get shouldLabelFloat(): boolean {\r\n return this.focused || !this.empty;\r\n }\r\n\r\n protected changed(event: MatSlideToggleChange): void {\r\n this.value = event.checked;\r\n this.onChange(event.checked);\r\n this.stateChanges.next();\r\n }\r\n\r\n protected get isChecked(): boolean {\r\n return Boolean(this.value);\r\n }\r\n}\r\n","<ng-template\r\n cdkConnectedOverlay\r\n [cdkConnectedOverlayOpen]=\"!!(inputConfig().disabled || inputConfig().readonly)\"\r\n>\r\n <div class=\"readonly-scrim\"></div>\r\n</ng-template>\r\n\r\n<mat-slide-toggle\r\n class=\"toggle-control\"\r\n [disabledInteractive]=\"inputConfig().disabled || inputConfig().readonly\"\r\n [required]=\"inputConfig().required\"\r\n [labelPosition]=\"inputConfig().labelPosition || 'after'\"\r\n (change)=\"changed($event)\"\r\n [checked]=\"isChecked\"\r\n [ariaReadOnly]=\"inputConfig().disabled || inputConfig().readonly\"\r\n [disabled]=\"inputConfig().disabled || inputConfig().readonly\"\r\n>\r\n @if (inputConfig().falseLabel || inputConfig().trueLabel) {\r\n @if (inputConfig().labelPosition !== 'after') {\r\n {{ inputConfig().label | titlecase }}\r\n <span class=\"spacer\"></span>\r\n @if (isChecked) {\r\n <span class=\"true-label\">{{ inputConfig().trueLabel || 'Yes' }}</span>\r\n } @else {\r\n <span class=\"false-label\">{{ inputConfig().falseLabel || 'No' }}</span>\r\n }\r\n } @else {\r\n @if (isChecked) {\r\n <span class=\"true-label\">{{ inputConfig().trueLabel || 'Yes' }}</span>\r\n } @else {\r\n <span class=\"false-label\">{{ inputConfig().falseLabel || 'No' }}</span>\r\n }\r\n <span class=\"spacer\"></span>\r\n {{ inputConfig().label | titlecase }}\r\n }\r\n }\r\n</mat-slide-toggle>\r\n","import { ChangeDetectionStrategy, Component, computed, input, output } from '@angular/core';\r\nimport { FormGroup, ReactiveFormsModule } from '@angular/forms';\r\nimport { MatFormFieldModule } from '@angular/material/form-field';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatTooltipModule } from '@angular/material/tooltip';\r\nimport type { ITowerStepColumn } from 'ngx-t-forms-types';\r\nimport { TFormInputStatusComponent } from '../../../t-form-input-status/t-form-input-status.component';\r\nimport { ToggleComponent } from './core/toggle/toggle.component';\r\nimport { getInputErrorMessage } from '../../../../services/core/t-input-controller/functions/inputErrorMessage';\r\n\r\n/**\r\n * Wraps `lib-toggle` in a `mat-form-field` and surfaces the configured\r\n * label / hint / error / suffix / prefix metadata for the column.\r\n */\r\n@Component({\r\n selector: 'lib-toggle-input-element',\r\n templateUrl: './toggle-input-element.component.html',\r\n styleUrl: './toggle-input-element.component.css',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [\r\n ReactiveFormsModule,\r\n MatFormFieldModule,\r\n MatIconModule,\r\n MatButtonModule,\r\n MatTooltipModule,\r\n TFormInputStatusComponent,\r\n ToggleComponent,\r\n ],\r\n})\r\nexport class ToggleInputElementComponent {\r\n /** Form-input column definition. */\r\n readonly inputConfig = input.required<ITowerStepColumn>();\r\n\r\n /** Reactive form group hosting the control identified by `inputConfig.id`. */\r\n readonly formGroup = input.required<FormGroup>();\r\n\r\n /** Emitted when the consumer requests a reload of this input. */\r\n readonly reload = output<void>();\r\n\r\n protected readonly errorMessage = computed(() =>\r\n getInputErrorMessage(this.inputConfig(), this.formGroup()),\r\n );\r\n}\r\n","<form [formGroup]=\"formGroup()\">\r\n @if (inputConfig(); as inputConfig) {\r\n <mat-form-field\r\n [appearance]=\"inputConfig.appearance || 'fill'\"\r\n floatLabel=\"always\"\r\n subscriptSizing=\"dynamic\"\r\n >\r\n @if (!(inputConfig.disabled || errorMessage())) {\r\n <mat-label>\r\n toggle to select\r\n <lib-t-form-input-status [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\r\n </mat-label>\r\n }\r\n\r\n <lib-toggle\r\n [inputConfig]=\"inputConfig\"\r\n [required]=\"inputConfig.required\"\r\n [formControlName]=\"inputConfig.id\"\r\n ></lib-toggle>\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"],"names":["i2","i4"],"mappings":";;;;;;;;;;;;;;;;;;;AAUA,MAAM,iBAAiB,GAA0B;AAC/C,IAAA,WAAW,EAAE,YAAY;AACzB,IAAA,MAAM,EAAE;CACT;AAUK,MAAO,eAAgB,SAAQ,eAAwB,CAAA;AAG3D,IAAA,WAAA,GAAA;QACE,KAAK,CACH,MAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAc,EAC9D,MAAM,CAA0B,UAAU,CAAC,EAC3C,iBAAiB,CAClB;AAPM,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAC,QAAQ,iFAAoB;;;;AAYvD,QAAA,IAAI,CAAC,MAAM,GAAG,KAAK;IACrB;AAEA,IAAA,IAAa,KAAK,GAAA;;;;AAIhB,QAAA,OAAO,KAAK;IACd;;AAGS,IAAA,UAAU,CAAC,KAAiC,EAAA;QACnD,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAClC;AAEA,IAAA,IAAa,gBAAgB,GAAA;QAC3B,OAAO,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK;IACpC;AAEU,IAAA,OAAO,CAAC,KAA2B,EAAA;AAC3C,QAAA,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,OAAO;AAC1B,QAAA,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC;AAC5B,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE;IA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
+ {"version":3,"file":"ngx-t-forms-toggle-input-element.component-Cgzg89Ug.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/toggle-input-element/core/toggle/toggle.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/toggle-input-element/core/toggle/toggle.component.html","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/toggle-input-element/toggle-input-element.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/toggle-input-element/toggle-input-element.component.html"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ElementRef, inject, input } from '@angular/core';\r\nimport { NgControl } from '@angular/forms';\r\nimport { MatFormFieldControl } from '@angular/material/form-field';\r\nimport { MatSlideToggleChange, MatSlideToggleModule } from '@angular/material/slide-toggle';\r\nimport { OverlayModule } from '@angular/cdk/overlay';\r\nimport { TitleCasePipe } from '@angular/common';\r\nimport { ITowerStepColumn } from 'ngx-t-forms-types';\r\n\r\nimport { BaseCustomInput, BaseCustomInputConfig } from '../../../../../../services/core/t-input-controller/functions/baseCustomInput';\r\n\r\nconst customInputConfig: BaseCustomInputConfig = {\r\n controlType: 'lib-toggle',\r\n nextId: 0\r\n};\r\n\r\n@Component({\r\n selector: 'lib-toggle',\r\n imports: [MatSlideToggleModule, OverlayModule, TitleCasePipe],\r\n templateUrl: './toggle.component.html',\r\n providers: [{ provide: MatFormFieldControl, useExisting: ToggleComponent }],\r\n styleUrl: './toggle.component.css',\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class ToggleComponent extends BaseCustomInput<boolean> {\r\n readonly inputConfig = input.required<ITowerStepColumn>();\r\n\r\n constructor() {\r\n super(\r\n inject(NgControl, { optional: true, self: true }) as NgControl,\r\n inject<ElementRef<HTMLElement>>(ElementRef),\r\n customInputConfig\r\n );\r\n\r\n // A toggle is binary — it must always hold a value. Seed `false` so an\r\n // unset toggle is never in a \"no value\" state (which would otherwise read\r\n // as required while the switch visibly looks off).\r\n this._value = false;\r\n }\r\n\r\n override get empty(): boolean {\r\n // A toggle always holds a boolean (see `writeValue` + the constructor\r\n // seed), so it is never empty. `false` is a provided value, not an absent\r\n // one — mirroring `toggleRequiredValidator`, which passes `true` and `false`.\r\n return false;\r\n }\r\n\r\n /** Coerce any incoming value to a boolean so the control is never null/undefined. */\r\n override writeValue(value: boolean | null | undefined): void {\r\n super.writeValue(Boolean(value));\r\n }\r\n\r\n override get shouldLabelFloat(): boolean {\r\n return this.focused || !this.empty;\r\n }\r\n\r\n protected changed(event: MatSlideToggleChange): void {\r\n this.value = event.checked;\r\n this.onChange(event.checked);\r\n this.stateChanges.next();\r\n }\r\n\r\n protected get isChecked(): boolean {\r\n return Boolean(this.value);\r\n }\r\n}\r\n","<ng-template\r\n cdkConnectedOverlay\r\n [cdkConnectedOverlayOpen]=\"!!(inputConfig().disabled || inputConfig().readonly)\"\r\n>\r\n <div class=\"readonly-scrim\"></div>\r\n</ng-template>\r\n\r\n<mat-slide-toggle\r\n class=\"toggle-control\"\r\n [disabledInteractive]=\"inputConfig().disabled || inputConfig().readonly\"\r\n [required]=\"inputConfig().required\"\r\n [labelPosition]=\"inputConfig().labelPosition || 'after'\"\r\n (change)=\"changed($event)\"\r\n [checked]=\"isChecked\"\r\n [ariaReadOnly]=\"inputConfig().disabled || inputConfig().readonly\"\r\n [disabled]=\"inputConfig().disabled || inputConfig().readonly\"\r\n>\r\n @if (inputConfig().falseLabel || inputConfig().trueLabel) {\r\n @if (inputConfig().labelPosition !== 'after') {\r\n {{ inputConfig().label | titlecase }}\r\n <span class=\"spacer\"></span>\r\n @if (isChecked) {\r\n <span class=\"true-label\">{{ inputConfig().trueLabel || 'Yes' }}</span>\r\n } @else {\r\n <span class=\"false-label\">{{ inputConfig().falseLabel || 'No' }}</span>\r\n }\r\n } @else {\r\n @if (isChecked) {\r\n <span class=\"true-label\">{{ inputConfig().trueLabel || 'Yes' }}</span>\r\n } @else {\r\n <span class=\"false-label\">{{ inputConfig().falseLabel || 'No' }}</span>\r\n }\r\n <span class=\"spacer\"></span>\r\n {{ inputConfig().label | titlecase }}\r\n }\r\n }\r\n</mat-slide-toggle>\r\n","import { ChangeDetectionStrategy, Component, computed, input, output } from '@angular/core';\r\nimport { FormGroup, ReactiveFormsModule } from '@angular/forms';\r\nimport { MatFormFieldModule } from '@angular/material/form-field';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatTooltipModule } from '@angular/material/tooltip';\r\nimport type { ITowerStepColumn } from 'ngx-t-forms-types';\r\nimport { TFormInputStatusComponent } from '../../../t-form-input-status/t-form-input-status.component';\r\nimport { ToggleComponent } from './core/toggle/toggle.component';\r\nimport { getInputErrorMessage } from '../../../../services/core/t-input-controller/functions/inputErrorMessage';\r\n\r\n/**\r\n * Wraps `lib-toggle` in a `mat-form-field` and surfaces the configured\r\n * label / hint / error / suffix / prefix metadata for the column.\r\n */\r\n@Component({\r\n selector: 'lib-toggle-input-element',\r\n templateUrl: './toggle-input-element.component.html',\r\n styleUrl: './toggle-input-element.component.css',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [\r\n ReactiveFormsModule,\r\n MatFormFieldModule,\r\n MatIconModule,\r\n MatButtonModule,\r\n MatTooltipModule,\r\n TFormInputStatusComponent,\r\n ToggleComponent,\r\n ],\r\n})\r\nexport class ToggleInputElementComponent {\r\n /** Form-input column definition. */\r\n readonly inputConfig = input.required<ITowerStepColumn>();\r\n\r\n /** Reactive form group hosting the control identified by `inputConfig.id`. */\r\n readonly formGroup = input.required<FormGroup>();\r\n\r\n /** Emitted when the consumer requests a reload of this input. */\r\n readonly reload = output<void>();\r\n\r\n protected readonly errorMessage = computed(() =>\r\n getInputErrorMessage(this.inputConfig(), this.formGroup()),\r\n );\r\n}\r\n","<form [formGroup]=\"formGroup()\">\r\n @if (inputConfig(); as inputConfig) {\r\n <mat-form-field\r\n [appearance]=\"inputConfig.appearance || 'fill'\"\r\n floatLabel=\"always\"\r\n subscriptSizing=\"dynamic\"\r\n >\r\n @if (!(inputConfig.disabled || errorMessage())) {\r\n <mat-label>\r\n toggle to select\r\n <lib-t-form-input-status [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\r\n </mat-label>\r\n }\r\n\r\n <lib-toggle\r\n [inputConfig]=\"inputConfig\"\r\n [required]=\"inputConfig.required\"\r\n [formControlName]=\"inputConfig.id\"\r\n ></lib-toggle>\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"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