ngx-t-forms 3.0.0 → 3.1.1

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 (254) hide show
  1. package/fesm2022/ngx-t-forms-api-endpoint-config.component-CZm3Z_7B.mjs +411 -0
  2. package/fesm2022/ngx-t-forms-api-endpoint-config.component-CZm3Z_7B.mjs.map +1 -0
  3. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-DFApar1W.mjs → ngx-t-forms-auto-complete-input-element.component-IciY6hb3.mjs} +2 -2
  4. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-DFApar1W.mjs.map → ngx-t-forms-auto-complete-input-element.component-IciY6hb3.mjs.map} +1 -1
  5. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-ChCeve-w.mjs → ngx-t-forms-basic-input-input-element.component-CykKxWu0.mjs} +3 -3
  6. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-ChCeve-w.mjs.map → ngx-t-forms-basic-input-input-element.component-CykKxWu0.mjs.map} +1 -1
  7. package/fesm2022/ngx-t-forms-calculated-field-rules.component-CwI-WEX7.mjs +643 -0
  8. package/fesm2022/ngx-t-forms-calculated-field-rules.component-CwI-WEX7.mjs.map +1 -0
  9. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-B54kOArR.mjs → ngx-t-forms-chip-options-creator-editor.component-CO_3EQ_v.mjs} +4 -4
  10. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-CO_3EQ_v.mjs.map +1 -0
  11. package/fesm2022/ngx-t-forms-conditional-display-config.component-Cmf7gDfO.mjs +513 -0
  12. package/fesm2022/ngx-t-forms-conditional-display-config.component-Cmf7gDfO.mjs.map +1 -0
  13. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-CAZv0_uR.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-BHiOEQe4.mjs} +4 -4
  14. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-BHiOEQe4.mjs.map +1 -0
  15. package/fesm2022/ngx-t-forms-data-source-picker.component-CN51SdCK.mjs +261 -0
  16. package/fesm2022/ngx-t-forms-data-source-picker.component-CN51SdCK.mjs.map +1 -0
  17. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-NM2cFs3P.mjs → ngx-t-forms-date-picker-input-element.component-c3OSDXWw.mjs} +2 -2
  18. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-NM2cFs3P.mjs.map → ngx-t-forms-date-picker-input-element.component-c3OSDXWw.mjs.map} +1 -1
  19. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-C-4fqOF0.mjs +166 -0
  20. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-C-4fqOF0.mjs.map +1 -0
  21. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-DLzba2AQ.mjs +373 -0
  22. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-DLzba2AQ.mjs.map +1 -0
  23. package/fesm2022/ngx-t-forms-document-picker.component-9clYsOcl.mjs +1259 -0
  24. package/fesm2022/ngx-t-forms-document-picker.component-9clYsOcl.mjs.map +1 -0
  25. package/fesm2022/ngx-t-forms-editor-input-element.component-BGdZ4evj.mjs +417 -0
  26. package/fesm2022/ngx-t-forms-editor-input-element.component-BGdZ4evj.mjs.map +1 -0
  27. package/fesm2022/{ngx-t-forms-editor-js-input.component-DlsLiHi1.mjs → ngx-t-forms-editor-js-input.component-02HnmInT.mjs} +25 -11
  28. package/fesm2022/ngx-t-forms-editor-js-input.component-02HnmInT.mjs.map +1 -0
  29. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-Km-qgANx.mjs → ngx-t-forms-file-upload-input-element.component-BF7KbSPb.mjs} +2 -2
  30. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-Km-qgANx.mjs.map → ngx-t-forms-file-upload-input-element.component-BF7KbSPb.mjs.map} +1 -1
  31. package/fesm2022/ngx-t-forms-form-input-selector.component-vCj2SCxs.mjs +86 -0
  32. package/fesm2022/ngx-t-forms-form-input-selector.component-vCj2SCxs.mjs.map +1 -0
  33. package/fesm2022/{ngx-t-forms-form-json-view.component-r64GKVhI.mjs → ngx-t-forms-form-json-view.component-Cmw1hHGZ.mjs} +2 -2
  34. package/fesm2022/{ngx-t-forms-form-json-view.component-r64GKVhI.mjs.map → ngx-t-forms-form-json-view.component-Cmw1hHGZ.mjs.map} +1 -1
  35. package/fesm2022/ngx-t-forms-form-payload-projection.component-y9PSIeP1.mjs +179 -0
  36. package/fesm2022/ngx-t-forms-form-payload-projection.component-y9PSIeP1.mjs.map +1 -0
  37. package/fesm2022/{ngx-t-forms-form-section-stepper.component-B3DRJ--U.mjs → ngx-t-forms-form-section-stepper.component-CFdwgxRl.mjs} +4 -4
  38. package/fesm2022/{ngx-t-forms-form-section-stepper.component-B3DRJ--U.mjs.map → ngx-t-forms-form-section-stepper.component-CFdwgxRl.mjs.map} +1 -1
  39. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-BYFynpTn.mjs → ngx-t-forms-forms-builder-menu.component-DisrOv5x.mjs} +5 -5
  40. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-BYFynpTn.mjs.map → ngx-t-forms-forms-builder-menu.component-DisrOv5x.mjs.map} +1 -1
  41. package/fesm2022/{ngx-t-forms-geo-location.component-D2fIbagr.mjs → ngx-t-forms-geo-location.component-D-BhLdx6.mjs} +2 -2
  42. package/fesm2022/{ngx-t-forms-geo-location.component-D2fIbagr.mjs.map → ngx-t-forms-geo-location.component-D-BhLdx6.mjs.map} +1 -1
  43. package/fesm2022/ngx-t-forms-header-template-editor.component-Z5frEhho.mjs +159 -0
  44. package/fesm2022/ngx-t-forms-header-template-editor.component-Z5frEhho.mjs.map +1 -0
  45. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-BgnzErQt.mjs → ngx-t-forms-image-capture-input-element.component-CoJTXMbL.mjs} +2 -2
  46. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-BgnzErQt.mjs.map → ngx-t-forms-image-capture-input-element.component-CoJTXMbL.mjs.map} +1 -1
  47. package/fesm2022/ngx-t-forms-index-D8xr_Sxp.mjs +2 -0
  48. package/fesm2022/ngx-t-forms-index-D8xr_Sxp.mjs.map +1 -0
  49. package/fesm2022/{ngx-t-forms-input-custom.component-Dcoze7U3.mjs → ngx-t-forms-input-custom.component-s1ryJQy4.mjs} +2 -2
  50. package/fesm2022/{ngx-t-forms-input-custom.component-Dcoze7U3.mjs.map → ngx-t-forms-input-custom.component-s1ryJQy4.mjs.map} +1 -1
  51. package/fesm2022/ngx-t-forms-input-editor.component-oIzCTmbx.mjs +190 -0
  52. package/fesm2022/ngx-t-forms-input-editor.component-oIzCTmbx.mjs.map +1 -0
  53. package/fesm2022/{ngx-t-forms-map-mat-options-keys-BsfvYiEU.mjs → ngx-t-forms-map-mat-options-keys-C1kxlZS_.mjs} +2 -3
  54. package/fesm2022/ngx-t-forms-map-mat-options-keys-C1kxlZS_.mjs.map +1 -0
  55. package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-CYtTBtyf.mjs → ngx-t-forms-mat-chip-list-editor.component-wskkKr4y.mjs} +5 -5
  56. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-wskkKr4y.mjs.map +1 -0
  57. package/fesm2022/{ngx-t-forms-mat-slider-editor.component-CTSBrM-j.mjs → ngx-t-forms-mat-slider-editor.component-4buvmLkX.mjs} +3 -3
  58. package/fesm2022/ngx-t-forms-mat-slider-editor.component-4buvmLkX.mjs.map +1 -0
  59. package/fesm2022/{ngx-t-forms-mat-slider-toggle-editor.component-CcYiwx-8.mjs → ngx-t-forms-mat-slider-toggle-editor.component-DX8L0O1k.mjs} +3 -3
  60. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-DX8L0O1k.mjs.map +1 -0
  61. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CEa8ZNKA.mjs → ngx-t-forms-missing-form-configs.component-C1XuXRdn.mjs} +2 -2
  62. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CEa8ZNKA.mjs.map → ngx-t-forms-missing-form-configs.component-C1XuXRdn.mjs.map} +1 -1
  63. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-DklkxNgg.mjs → ngx-t-forms-mscoa-chart-toolbar.component-BJrOTRuQ.mjs} +2 -2
  64. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-DklkxNgg.mjs.map → ngx-t-forms-mscoa-chart-toolbar.component-BJrOTRuQ.mjs.map} +1 -1
  65. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-GyKF31Ve.mjs +447 -0
  66. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-GyKF31Ve.mjs.map +1 -0
  67. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-BrPJPR2R.mjs +905 -0
  68. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-BrPJPR2R.mjs.map +1 -0
  69. package/fesm2022/{ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs → ngx-t-forms-ngx-t-forms-DqAcUfN4.mjs} +2738 -415
  70. package/fesm2022/ngx-t-forms-ngx-t-forms-DqAcUfN4.mjs.map +1 -0
  71. package/fesm2022/{ngx-t-forms-paginated-selection-table-DrXB22iY.mjs → ngx-t-forms-paginated-selection-table-Bk77dBo9.mjs} +2 -2
  72. package/fesm2022/{ngx-t-forms-paginated-selection-table-DrXB22iY.mjs.map → ngx-t-forms-paginated-selection-table-Bk77dBo9.mjs.map} +1 -1
  73. package/fesm2022/ngx-t-forms-payload-template-editor.component-CVzOTLYE.mjs +85 -0
  74. package/fesm2022/ngx-t-forms-payload-template-editor.component-CVzOTLYE.mjs.map +1 -0
  75. package/fesm2022/ngx-t-forms-pipeline-generator.component-7Vfwaqnx.mjs +748 -0
  76. package/fesm2022/ngx-t-forms-pipeline-generator.component-7Vfwaqnx.mjs.map +1 -0
  77. package/fesm2022/{ngx-t-forms-record-list-manager.component-l-2uDVmi.mjs → ngx-t-forms-record-list-manager.component-CfZdqKhY.mjs} +4 -4
  78. package/fesm2022/ngx-t-forms-record-list-manager.component-CfZdqKhY.mjs.map +1 -0
  79. package/fesm2022/ngx-t-forms-required-inputs.component-CK7NIhbq.mjs +272 -0
  80. package/fesm2022/ngx-t-forms-required-inputs.component-CK7NIhbq.mjs.map +1 -0
  81. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-YChv7Arm.mjs +699 -0
  82. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-YChv7Arm.mjs.map +1 -0
  83. package/fesm2022/ngx-t-forms-search-field.component-mR4Kk12C.mjs +38 -0
  84. package/fesm2022/ngx-t-forms-search-field.component-mR4Kk12C.mjs.map +1 -0
  85. package/fesm2022/{ngx-t-forms-section-report.component-BYMcaRE5.mjs → ngx-t-forms-section-report.component-DhSaf85h.mjs} +2 -2
  86. package/fesm2022/{ngx-t-forms-section-report.component-BYMcaRE5.mjs.map → ngx-t-forms-section-report.component-DhSaf85h.mjs.map} +1 -1
  87. package/fesm2022/{ngx-t-forms-select-input-element.component-Nsa3dpvV.mjs → ngx-t-forms-select-input-element.component-D5HFzh35.mjs} +2 -2
  88. package/fesm2022/{ngx-t-forms-select-input-element.component-Nsa3dpvV.mjs.map → ngx-t-forms-select-input-element.component-D5HFzh35.mjs.map} +1 -1
  89. package/fesm2022/ngx-t-forms-selection-options-editor.component-BhmmJOco.mjs +169 -0
  90. package/fesm2022/ngx-t-forms-selection-options-editor.component-BhmmJOco.mjs.map +1 -0
  91. package/fesm2022/{ngx-t-forms-t-workflow-picker.component-DAwP-cWK.mjs → ngx-t-forms-t-workflow-picker.component-D0ttyEex.mjs} +3 -3
  92. package/fesm2022/ngx-t-forms-t-workflow-picker.component-D0ttyEex.mjs.map +1 -0
  93. package/fesm2022/{ngx-t-forms-textarea-input-element.component-DPxUzkAu.mjs → ngx-t-forms-textarea-input-element.component-DWEADTsz.mjs} +2 -2
  94. package/fesm2022/{ngx-t-forms-textarea-input-element.component-DPxUzkAu.mjs.map → ngx-t-forms-textarea-input-element.component-DWEADTsz.mjs.map} +1 -1
  95. package/fesm2022/{ngx-t-forms-toggle-input-element.component-OZre5TJ7.mjs → ngx-t-forms-toggle-input-element.component-XZi6kPnL.mjs} +2 -2
  96. package/fesm2022/{ngx-t-forms-toggle-input-element.component-OZre5TJ7.mjs.map → ngx-t-forms-toggle-input-element.component-XZi6kPnL.mjs.map} +1 -1
  97. package/fesm2022/ngx-t-forms-token-transform-D_wsFbNc.mjs +173 -0
  98. package/fesm2022/ngx-t-forms-token-transform-D_wsFbNc.mjs.map +1 -0
  99. package/fesm2022/ngx-t-forms-validators-config.component-0_Y6bvtE.mjs +574 -0
  100. package/fesm2022/ngx-t-forms-validators-config.component-0_Y6bvtE.mjs.map +1 -0
  101. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-CrDZg3Nl.mjs → ngx-t-forms-workflow-adjudication.component-Gkimmw-X.mjs} +3 -3
  102. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-CrDZg3Nl.mjs.map → ngx-t-forms-workflow-adjudication.component-Gkimmw-X.mjs.map} +1 -1
  103. package/fesm2022/ngx-t-forms.mjs +1 -1
  104. package/package.json +2 -2
  105. package/styles/_editor-mixins.scss +117 -117
  106. package/styles/_signature-pad.scss +26 -26
  107. package/styles/_tokens.scss +148 -148
  108. package/types/ngx-t-forms.d.ts +110 -6
  109. package/fesm2022/ngx-t-forms-auto-complete-input-element.component-7g5cpVfB.mjs +0 -261
  110. package/fesm2022/ngx-t-forms-auto-complete-input-element.component-7g5cpVfB.mjs.map +0 -1
  111. package/fesm2022/ngx-t-forms-basic-input-input-element.component-BhMw2vpl.mjs +0 -225
  112. package/fesm2022/ngx-t-forms-basic-input-input-element.component-BhMw2vpl.mjs.map +0 -1
  113. package/fesm2022/ngx-t-forms-calculated-field-rules.component-BmWnrfWN.mjs +0 -1011
  114. package/fesm2022/ngx-t-forms-calculated-field-rules.component-BmWnrfWN.mjs.map +0 -1
  115. package/fesm2022/ngx-t-forms-calculated-field-rules.component-CJMwqoHL.mjs +0 -643
  116. package/fesm2022/ngx-t-forms-calculated-field-rules.component-CJMwqoHL.mjs.map +0 -1
  117. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-ALkkDotT.mjs +0 -136
  118. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-ALkkDotT.mjs.map +0 -1
  119. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-B54kOArR.mjs.map +0 -1
  120. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-CAZv0_uR.mjs.map +0 -1
  121. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dap7QkKD.mjs +0 -253
  122. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dap7QkKD.mjs.map +0 -1
  123. package/fesm2022/ngx-t-forms-data-source-picker.component-8G28L1Cg.mjs +0 -261
  124. package/fesm2022/ngx-t-forms-data-source-picker.component-8G28L1Cg.mjs.map +0 -1
  125. package/fesm2022/ngx-t-forms-data-source-picker.component-CJ1C1Znp.mjs +0 -419
  126. package/fesm2022/ngx-t-forms-data-source-picker.component-CJ1C1Znp.mjs.map +0 -1
  127. package/fesm2022/ngx-t-forms-date-picker-input-element.component-DjYq63Iv.mjs +0 -231
  128. package/fesm2022/ngx-t-forms-date-picker-input-element.component-DjYq63Iv.mjs.map +0 -1
  129. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-DhU_bhy3.mjs +0 -156
  130. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-DhU_bhy3.mjs.map +0 -1
  131. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-g0wIRj9b.mjs +0 -333
  132. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-g0wIRj9b.mjs.map +0 -1
  133. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-K-KFdCcS.mjs +0 -373
  134. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-K-KFdCcS.mjs.map +0 -1
  135. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-NuPXy_Ms.mjs +0 -543
  136. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-NuPXy_Ms.mjs.map +0 -1
  137. package/fesm2022/ngx-t-forms-document-picker.component-BSG7k3IN.mjs +0 -1259
  138. package/fesm2022/ngx-t-forms-document-picker.component-BSG7k3IN.mjs.map +0 -1
  139. package/fesm2022/ngx-t-forms-document-picker.component-ChGqXHcQ.mjs +0 -1996
  140. package/fesm2022/ngx-t-forms-document-picker.component-ChGqXHcQ.mjs.map +0 -1
  141. package/fesm2022/ngx-t-forms-editor-input-element.component-B8Pk-EVY.mjs +0 -581
  142. package/fesm2022/ngx-t-forms-editor-input-element.component-B8Pk-EVY.mjs.map +0 -1
  143. package/fesm2022/ngx-t-forms-editor-input-element.component-Bb7w-vNw.mjs +0 -417
  144. package/fesm2022/ngx-t-forms-editor-input-element.component-Bb7w-vNw.mjs.map +0 -1
  145. package/fesm2022/ngx-t-forms-editor-js-input.component-DlsLiHi1.mjs.map +0 -1
  146. package/fesm2022/ngx-t-forms-editor-js-input.component-XX6kU8DW.mjs +0 -585
  147. package/fesm2022/ngx-t-forms-editor-js-input.component-XX6kU8DW.mjs.map +0 -1
  148. package/fesm2022/ngx-t-forms-file-upload-input-element.component-RCmUClXv.mjs +0 -447
  149. package/fesm2022/ngx-t-forms-file-upload-input-element.component-RCmUClXv.mjs.map +0 -1
  150. package/fesm2022/ngx-t-forms-form-input-selector.component-0jfD5C0G.mjs +0 -163
  151. package/fesm2022/ngx-t-forms-form-input-selector.component-0jfD5C0G.mjs.map +0 -1
  152. package/fesm2022/ngx-t-forms-form-input-selector.component-D5KYWQ2R.mjs +0 -86
  153. package/fesm2022/ngx-t-forms-form-input-selector.component-D5KYWQ2R.mjs.map +0 -1
  154. package/fesm2022/ngx-t-forms-form-json-view.component-z0nQxpqB.mjs +0 -28
  155. package/fesm2022/ngx-t-forms-form-json-view.component-z0nQxpqB.mjs.map +0 -1
  156. package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs +0 -291
  157. package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs.map +0 -1
  158. package/fesm2022/ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs +0 -179
  159. package/fesm2022/ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs.map +0 -1
  160. package/fesm2022/ngx-t-forms-form-section-stepper.component-UUTHYU-A.mjs +0 -936
  161. package/fesm2022/ngx-t-forms-form-section-stepper.component-UUTHYU-A.mjs.map +0 -1
  162. package/fesm2022/ngx-t-forms-forms-builder-menu.component-DTIAOxGV.mjs +0 -816
  163. package/fesm2022/ngx-t-forms-forms-builder-menu.component-DTIAOxGV.mjs.map +0 -1
  164. package/fesm2022/ngx-t-forms-geo-location.component-DW2b5Zli.mjs +0 -329
  165. package/fesm2022/ngx-t-forms-geo-location.component-DW2b5Zli.mjs.map +0 -1
  166. package/fesm2022/ngx-t-forms-image-capture-input-element.component-Us_NAQSl.mjs +0 -360
  167. package/fesm2022/ngx-t-forms-image-capture-input-element.component-Us_NAQSl.mjs.map +0 -1
  168. package/fesm2022/ngx-t-forms-index-6YIhS6cm.mjs +0 -2
  169. package/fesm2022/ngx-t-forms-index-6YIhS6cm.mjs.map +0 -1
  170. package/fesm2022/ngx-t-forms-index-BPNBX_ve.mjs +0 -2
  171. package/fesm2022/ngx-t-forms-index-BPNBX_ve.mjs.map +0 -1
  172. package/fesm2022/ngx-t-forms-input-custom.component-DQOqy047.mjs +0 -128
  173. package/fesm2022/ngx-t-forms-input-custom.component-DQOqy047.mjs.map +0 -1
  174. package/fesm2022/ngx-t-forms-input-editor.component-3fRj5swF.mjs +0 -512
  175. package/fesm2022/ngx-t-forms-input-editor.component-3fRj5swF.mjs.map +0 -1
  176. package/fesm2022/ngx-t-forms-input-editor.component-B6UKwV4i.mjs +0 -190
  177. package/fesm2022/ngx-t-forms-input-editor.component-B6UKwV4i.mjs.map +0 -1
  178. package/fesm2022/ngx-t-forms-map-mat-options-keys-BsfvYiEU.mjs.map +0 -1
  179. package/fesm2022/ngx-t-forms-map-mat-options-keys-eSc99wdA.mjs +0 -132
  180. package/fesm2022/ngx-t-forms-map-mat-options-keys-eSc99wdA.mjs.map +0 -1
  181. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CN17K5q6.mjs +0 -268
  182. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CN17K5q6.mjs.map +0 -1
  183. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CYtTBtyf.mjs.map +0 -1
  184. package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs +0 -241
  185. package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs.map +0 -1
  186. package/fesm2022/ngx-t-forms-mat-slider-editor.component-CTSBrM-j.mjs.map +0 -1
  187. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-CcYiwx-8.mjs.map +0 -1
  188. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs +0 -180
  189. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs.map +0 -1
  190. package/fesm2022/ngx-t-forms-missing-form-configs.component-AaDfeALs.mjs +0 -114
  191. package/fesm2022/ngx-t-forms-missing-form-configs.component-AaDfeALs.mjs.map +0 -1
  192. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-D0igUV3W.mjs +0 -69
  193. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-D0igUV3W.mjs.map +0 -1
  194. package/fesm2022/ngx-t-forms-mscoa-error-display.component-rzl-fMmd.mjs +0 -200
  195. package/fesm2022/ngx-t-forms-mscoa-error-display.component-rzl-fMmd.mjs.map +0 -1
  196. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-2SspNWtF.mjs +0 -447
  197. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-2SspNWtF.mjs.map +0 -1
  198. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CSGf4XeN.mjs +0 -850
  199. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CSGf4XeN.mjs.map +0 -1
  200. package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-CBuGHwnU.mjs +0 -107
  201. package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-CBuGHwnU.mjs.map +0 -1
  202. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CbQdnVgw.mjs +0 -1665
  203. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CbQdnVgw.mjs.map +0 -1
  204. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-dmRIi9ph.mjs +0 -905
  205. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-dmRIi9ph.mjs.map +0 -1
  206. package/fesm2022/ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs.map +0 -1
  207. package/fesm2022/ngx-t-forms-ngx-t-forms-BefvSS-p.mjs +0 -28237
  208. package/fesm2022/ngx-t-forms-ngx-t-forms-BefvSS-p.mjs.map +0 -1
  209. package/fesm2022/ngx-t-forms-paginated-selection-table-BGNxI2yq.mjs +0 -1024
  210. package/fesm2022/ngx-t-forms-paginated-selection-table-BGNxI2yq.mjs.map +0 -1
  211. package/fesm2022/ngx-t-forms-payload-template-editor.component-DL4ZTTsH.mjs +0 -203
  212. package/fesm2022/ngx-t-forms-payload-template-editor.component-DL4ZTTsH.mjs.map +0 -1
  213. package/fesm2022/ngx-t-forms-payload-template-editor.component-o3qwpvYu.mjs +0 -234
  214. package/fesm2022/ngx-t-forms-payload-template-editor.component-o3qwpvYu.mjs.map +0 -1
  215. package/fesm2022/ngx-t-forms-pipeline-generator.component-BqtdKcN2.mjs +0 -1126
  216. package/fesm2022/ngx-t-forms-pipeline-generator.component-BqtdKcN2.mjs.map +0 -1
  217. package/fesm2022/ngx-t-forms-pipeline-generator.component-DcZPv8-N.mjs +0 -748
  218. package/fesm2022/ngx-t-forms-pipeline-generator.component-DcZPv8-N.mjs.map +0 -1
  219. package/fesm2022/ngx-t-forms-record-list-manager.component-BcANl5Bq.mjs +0 -639
  220. package/fesm2022/ngx-t-forms-record-list-manager.component-BcANl5Bq.mjs.map +0 -1
  221. package/fesm2022/ngx-t-forms-record-list-manager.component-l-2uDVmi.mjs.map +0 -1
  222. package/fesm2022/ngx-t-forms-required-inputs.component-BMmNxeE-.mjs +0 -272
  223. package/fesm2022/ngx-t-forms-required-inputs.component-BMmNxeE-.mjs.map +0 -1
  224. package/fesm2022/ngx-t-forms-required-inputs.component-Dr0P1gin.mjs +0 -451
  225. package/fesm2022/ngx-t-forms-required-inputs.component-Dr0P1gin.mjs.map +0 -1
  226. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BSv_KQIU.mjs +0 -625
  227. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BSv_KQIU.mjs.map +0 -1
  228. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-C3sNmq_H.mjs +0 -444
  229. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-C3sNmq_H.mjs.map +0 -1
  230. package/fesm2022/ngx-t-forms-search-field.component-B2ZO7lqO.mjs +0 -38
  231. package/fesm2022/ngx-t-forms-search-field.component-B2ZO7lqO.mjs.map +0 -1
  232. package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs +0 -72
  233. package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs.map +0 -1
  234. package/fesm2022/ngx-t-forms-section-report.component-yGAjX7Gb.mjs +0 -248
  235. package/fesm2022/ngx-t-forms-section-report.component-yGAjX7Gb.mjs.map +0 -1
  236. package/fesm2022/ngx-t-forms-select-input-element.component-BqtJi4ek.mjs +0 -408
  237. package/fesm2022/ngx-t-forms-select-input-element.component-BqtJi4ek.mjs.map +0 -1
  238. package/fesm2022/ngx-t-forms-selection-options-editor.component-BuXVzo7Z.mjs +0 -169
  239. package/fesm2022/ngx-t-forms-selection-options-editor.component-BuXVzo7Z.mjs.map +0 -1
  240. package/fesm2022/ngx-t-forms-selection-options-editor.component-_glw1cqH.mjs +0 -275
  241. package/fesm2022/ngx-t-forms-selection-options-editor.component-_glw1cqH.mjs.map +0 -1
  242. package/fesm2022/ngx-t-forms-t-workflow-picker.component-CLgN3YM4.mjs +0 -366
  243. package/fesm2022/ngx-t-forms-t-workflow-picker.component-CLgN3YM4.mjs.map +0 -1
  244. package/fesm2022/ngx-t-forms-t-workflow-picker.component-DAwP-cWK.mjs.map +0 -1
  245. package/fesm2022/ngx-t-forms-textarea-input-element.component-SCEBLqJd.mjs +0 -233
  246. package/fesm2022/ngx-t-forms-textarea-input-element.component-SCEBLqJd.mjs.map +0 -1
  247. package/fesm2022/ngx-t-forms-toggle-input-element.component-CoyTMRMa.mjs +0 -305
  248. package/fesm2022/ngx-t-forms-toggle-input-element.component-CoyTMRMa.mjs.map +0 -1
  249. package/fesm2022/ngx-t-forms-validators-config.component-B1Lzs7o2.mjs +0 -1105
  250. package/fesm2022/ngx-t-forms-validators-config.component-B1Lzs7o2.mjs.map +0 -1
  251. package/fesm2022/ngx-t-forms-validators-config.component-CoGSFor3.mjs +0 -574
  252. package/fesm2022/ngx-t-forms-validators-config.component-CoGSFor3.mjs.map +0 -1
  253. package/fesm2022/ngx-t-forms-workflow-adjudication.component-Bz07jv-N.mjs +0 -2923
  254. package/fesm2022/ngx-t-forms-workflow-adjudication.component-Bz07jv-N.mjs.map +0 -1
@@ -1,581 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, ElementRef, input, output, signal, computed, viewChild, PLATFORM_ID, ChangeDetectionStrategy, Component, Input } from '@angular/core';
3
- import * as i1 from '@angular/forms';
4
- import { NgControl, ReactiveFormsModule } from '@angular/forms';
5
- import * as i2 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 i2$1 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 { RichTextEditorType } from 'ngx-t-forms-types';
14
- import { B as BaseCustomInput, _ as _isEqual, q as getInputErrorMessage, u as TFormInputStatusComponent } from './ngx-t-forms-ngx-t-forms-BefvSS-p.mjs';
15
- import { E as EditorFullScreenHost, a as EditorFullScreenToggleComponent, b as EditorJsInputComponent } from './ngx-t-forms-editor-js-input.component-XX6kU8DW.mjs';
16
- import { DOCUMENT, isPlatformBrowser } from '@angular/common';
17
-
18
- const svg = (body) => `<svg viewBox="0 0 18 18">${body}</svg>`;
19
- /**
20
- * Word-like table toolkit backed by Quill's native table module. Each control degrades to a
21
- * no-op when the caret is outside a table, so the buttons are always safe to press.
22
- */
23
- const QUILL_TABLE_CONTROLS = [
24
- {
25
- format: 'table-insert',
26
- title: 'Insert table (3×3)',
27
- icon: svg('<rect class="ql-stroke" fill="none" x="3" y="4" width="12" height="10" rx="1"></rect><line class="ql-stroke" x1="3" y1="7.3" x2="15" y2="7.3"></line><line class="ql-stroke" x1="3" y1="10.6" x2="15" y2="10.6"></line><line class="ql-stroke" x1="7" y1="4" x2="7" y2="14"></line><line class="ql-stroke" x1="11" y1="4" x2="11" y2="14"></line>'),
28
- run: table => table.insertTable(3, 3),
29
- },
30
- {
31
- format: 'table-row',
32
- title: 'Insert row below',
33
- icon: svg('<rect class="ql-stroke" fill="none" x="3" y="3" width="12" height="6" rx="1"></rect><line class="ql-stroke" x1="9" y1="11" x2="9" y2="15"></line><line class="ql-stroke" x1="7" y1="13" x2="11" y2="13"></line>'),
34
- run: table => table.insertRowBelow(),
35
- },
36
- {
37
- format: 'table-column',
38
- title: 'Insert column right',
39
- icon: svg('<rect class="ql-stroke" fill="none" x="3" y="3" width="6" height="12" rx="1"></rect><line class="ql-stroke" x1="13" y1="6" x2="13" y2="12"></line><line class="ql-stroke" x1="11" y1="9" x2="15" y2="9"></line>'),
40
- run: table => table.insertColumnRight(),
41
- },
42
- {
43
- format: 'table-delete-row',
44
- title: 'Delete row',
45
- icon: svg('<rect class="ql-stroke" fill="none" x="3" y="3" width="12" height="6" rx="1"></rect><line class="ql-stroke" x1="7" y1="13" x2="11" y2="13"></line>'),
46
- run: table => table.deleteRow(),
47
- },
48
- {
49
- format: 'table-delete-column',
50
- title: 'Delete column',
51
- icon: svg('<rect class="ql-stroke" fill="none" x="3" y="3" width="6" height="12" rx="1"></rect><line class="ql-stroke" x1="11" y1="9" x2="15" y2="9"></line>'),
52
- run: table => table.deleteColumn(),
53
- },
54
- {
55
- format: 'table-delete',
56
- title: 'Delete table',
57
- icon: svg('<rect class="ql-stroke" fill="none" x="3" y="3" width="12" height="12" rx="1"></rect><line class="ql-stroke" x1="5.5" y1="5.5" x2="12.5" y2="12.5"></line><line class="ql-stroke" x1="12.5" y1="5.5" x2="5.5" y2="12.5"></line>'),
58
- run: table => table.deleteTable(),
59
- },
60
- ];
61
- /**
62
- * Human-readable tooltips for the built-in controls, keyed by the button's CSS selector.
63
- * Quill ships no titles of its own, so these make the toolbar self-explanatory.
64
- */
65
- const QUILL_BUILTIN_TITLES = {
66
- '.ql-bold': 'Bold',
67
- '.ql-italic': 'Italic',
68
- '.ql-underline': 'Underline',
69
- '.ql-strike': 'Strikethrough',
70
- '.ql-blockquote': 'Quote',
71
- '.ql-code-block': 'Code block',
72
- '.ql-link': 'Insert link',
73
- '.ql-image': 'Insert image',
74
- '.ql-video': 'Embed video',
75
- '.ql-clean': 'Clear formatting',
76
- '.ql-list[value="ordered"]': 'Numbered list',
77
- '.ql-list[value="bullet"]': 'Bulleted list',
78
- '.ql-list[value="check"]': 'Checklist',
79
- '.ql-script[value="sub"]': 'Subscript',
80
- '.ql-script[value="super"]': 'Superscript',
81
- '.ql-indent[value="-1"]': 'Decrease indent',
82
- '.ql-indent[value="+1"]': 'Increase indent',
83
- '.ql-direction[value="rtl"]': 'Right-to-left',
84
- '.ql-color': 'Text colour',
85
- '.ql-background': 'Highlight colour',
86
- '.ql-align': 'Alignment',
87
- '.ql-header': 'Heading',
88
- '.ql-font': 'Font',
89
- '.ql-size': 'Font size',
90
- };
91
- /**
92
- * Comprehensive, logically grouped "snow" toolbar — headings/fonts, inline styling, colour,
93
- * scripts, lists, indentation/alignment, blocks, media and a native table toolkit.
94
- */
95
- const TOOLBAR_CONTAINER = [
96
- [{ header: [1, 2, 3, 4, 5, 6, false] }, { font: [] }, { size: ['small', false, 'large', 'huge'] }],
97
- ['bold', 'italic', 'underline', 'strike'],
98
- [{ color: [] }, { background: [] }],
99
- [{ script: 'sub' }, { script: 'super' }],
100
- [{ list: 'ordered' }, { list: 'bullet' }, { list: 'check' }],
101
- [{ indent: '-1' }, { indent: '+1' }, { align: [] }, { direction: 'rtl' }],
102
- ['blockquote', 'code-block'],
103
- ['link', 'image', 'video'],
104
- QUILL_TABLE_CONTROLS.map(control => control.format),
105
- ['clean']
106
- ];
107
- /**
108
- * Builds the toolbar handler map for the custom table buttons.
109
- *
110
- * These MUST be supplied in the toolbar config (not added later via `addHandler`): Quill's
111
- * toolbar skips attaching a click listener to any button whose format is neither a registered
112
- * blot nor already present in `handlers` at construction time. A late `addHandler` sets the
113
- * handler but never re-attaches the listener, so the button stays inert.
114
- */
115
- const buildTableHandlers = () => {
116
- const handlers = {};
117
- for (const control of QUILL_TABLE_CONTROLS) {
118
- handlers[control.format] = function tableHandler() {
119
- const table = this.quill.getModule('table');
120
- // Native table ops bail when there is no selection; force focus + a range first.
121
- this.quill.getSelection(true);
122
- control.run(table);
123
- };
124
- }
125
- return handlers;
126
- };
127
- /**
128
- * Builds a ready-to-use `QuillOptions` for a "snow" editor with the native table module
129
- * enabled and the custom table-button handlers wired into the toolbar config.
130
- *
131
- * Browser-only by construction: callers MUST instantiate Quill behind an
132
- * `isPlatformBrowser(...)` guard because Quill touches `document` at construction time.
133
- */
134
- const buildQuillOptions = (payload) => ({
135
- theme: 'snow',
136
- readOnly: payload.readOnly,
137
- placeholder: payload.placeholder ?? "Let's write something amazing...",
138
- modules: {
139
- toolbar: {
140
- container: TOOLBAR_CONTAINER,
141
- handlers: buildTableHandlers()
142
- },
143
- table: true,
144
- history: { delay: 1000, maxStack: 100, userOnly: true },
145
- clipboard: { matchVisual: false }
146
- }
147
- });
148
- /**
149
- * Quill's empty document is a single trailing newline op. Treat that — and a literally
150
- * empty op-list — as "no value" so `required` validation behaves intuitively.
151
- */
152
- const isEmptyQuillDocument = (ops) => ops.length === 0 || (ops.length === 1 && ops[0]?.insert === '\n');
153
-
154
- /// <reference path="../../../../../../../types/quill.d.ts" />
155
- const _c0 = ["editorHost"];
156
- const _c1 = ["quillHost"];
157
- const customInputConfig = {
158
- controlType: 'lib-quill-input',
159
- nextId: 0
160
- };
161
- /**
162
- * Quill ("snow" theme) rich-text editor wired into Angular Material's form-field as a
163
- * custom `MatFormFieldControl`. The full Quill setup — toolbar, formats, history — lives in
164
- * `quill.config.ts`; this component owns lifecycle, SSR gating and value round-tripping.
165
- */
166
- class QuillInputComponent extends BaseCustomInput {
167
- /** Mirrors the CVA's disabled state into the signal graph so the template can react to it. */
168
- #controlDisabled;
169
- #platformId;
170
- #document;
171
- #changeHandler;
172
- #fullScreenHost;
173
- /** Guards against overlapping pop-out transitions (see `#toggleFullScreen`). */
174
- #toggling;
175
- constructor() {
176
- super(inject(NgControl, { optional: true, self: true }), inject(ElementRef), customInputConfig);
177
- this.inputConfig = input.required(...(ngDevMode ? [{ debugName: "inputConfig" }] : /* istanbul ignore next */ []));
178
- this.valueChanged = output();
179
- /** Whether the editor is currently popped out to fill the screen. */
180
- this.fullScreen = signal(false, ...(ngDevMode ? [{ debugName: "fullScreen" }] : /* istanbul ignore next */ []));
181
- /** Mirrors the CVA's disabled state into the signal graph so the template can react to it. */
182
- this.#controlDisabled = signal(false, ...(ngDevMode ? [{ debugName: "#controlDisabled" }] : /* istanbul ignore next */ []));
183
- /**
184
- * Read-only when either the column config or the reactive-form control says so. Drives both
185
- * Quill's own editable state and hiding the formatting toolbar, which is dead weight when
186
- * nothing can be edited.
187
- */
188
- this.readOnly = computed(() => {
189
- const config = this.inputConfig();
190
- return this.#controlDisabled() || config.readonly || config.disabled || false;
191
- }, ...(ngDevMode ? [{ debugName: "readOnly" }] : /* istanbul ignore next */ []));
192
- /**
193
- * Height the in-flow wrapper holds onto while the editor is popped out. Set from the editor's
194
- * measured height on the way in, cleared on the way out.
195
- */
196
- this.reservedHeight = signal(null, ...(ngDevMode ? [{ debugName: "reservedHeight" }] : /* istanbul ignore next */ []));
197
- this.editorHost = viewChild.required('editorHost');
198
- /**
199
- * The bordered surface Quill fills — toolbar included. This is what gets promoted to the
200
- * browser's top layer. (`viewChild` cannot sit on an ES-private field — NG1053.)
201
- */
202
- this.quillHost = viewChild.required('quillHost');
203
- this.#platformId = inject(PLATFORM_ID);
204
- this.#document = inject(DOCUMENT);
205
- /** Guards against overlapping pop-out transitions (see `#toggleFullScreen`). */
206
- this.#toggling = false;
207
- this._value = undefined;
208
- }
209
- get empty() {
210
- const n = this.value;
211
- return n === null || n === undefined;
212
- }
213
- get shouldLabelFloat() {
214
- return true;
215
- }
216
- set value(value) {
217
- if (!_isEqual(this._value, value)) {
218
- this._value = value;
219
- this.onChange(value);
220
- this.stateChanges.next();
221
- }
222
- }
223
- get value() {
224
- return this._value;
225
- }
226
- async ngAfterViewInit() {
227
- if (!isPlatformBrowser(this.#platformId))
228
- return;
229
- // Browser-only dynamic load — see the Trap 16 comment at the top of this file. The
230
- // CSS import injects Quill's global theme styles (Quill's runtime DOM is not view-scoped).
231
- const [{ default: Quill, Delta }] = await Promise.all([
232
- import('quill'),
233
- import('quill/dist/quill.snow.css')
234
- ]);
235
- this.#fullScreenHost = new EditorFullScreenHost(this.#document, () => this.#setFullScreen(false));
236
- const config = this.inputConfig();
237
- this.editor = new Quill(this.editorHost().nativeElement, buildQuillOptions({
238
- readOnly: this.readOnly(),
239
- placeholder: config.placeholder
240
- }));
241
- const initial = this.value;
242
- if (initial?.ops?.length) {
243
- this.editor.setContents(new Delta(initial.ops), 'silent');
244
- }
245
- // A `setDisabledState` that arrived before the editor existed is applied here.
246
- this.#applyReadOnly();
247
- this.#decorateToolbar();
248
- this.#changeHandler = () => this.contentChangedSaveValue();
249
- this.editor.on('text-change', this.#changeHandler);
250
- }
251
- /**
252
- * Quill ships no icons for custom buttons and no tooltips for any button. Inject themeable
253
- * SVG icons (their `ql-stroke` paths inherit the toolbar colour) and `title` tooltips so the
254
- * toolbar reads clearly in both light and dark mode.
255
- */
256
- #decorateToolbar() {
257
- const root = this._elementRef.nativeElement;
258
- for (const control of QUILL_TABLE_CONTROLS) {
259
- const button = root.querySelector(`.ql-${control.format}`);
260
- if (!button)
261
- continue;
262
- button.innerHTML = control.icon;
263
- button.setAttribute('title', control.title);
264
- }
265
- for (const [selector, title] of Object.entries(QUILL_BUILTIN_TITLES)) {
266
- root.querySelectorAll(selector).forEach(el => el.setAttribute('title', title));
267
- }
268
- }
269
- /**
270
- * Keeps Quill's own read-only state in step with the control's. The pop-out re-enables pointer
271
- * events on the popped-out surface (Material kills them field-wide when the control is
272
- * disabled), so this is what actually keeps a disabled field uneditable — the CSS no longer
273
- * does it.
274
- */
275
- setDisabledState(isDisabled) {
276
- super.setDisabledState(isDisabled);
277
- this.#controlDisabled.set(isDisabled);
278
- this.#applyReadOnly();
279
- }
280
- /** Pushes {@link readOnly} onto the Quill instance, which is not reactive. */
281
- #applyReadOnly() {
282
- this.editor?.enable(!this.readOnly());
283
- }
284
- /** Toggles the pop-out from the floating button. */
285
- toggleFullScreen() {
286
- void this.#toggleFullScreen();
287
- }
288
- /**
289
- * Pops the editor out to fill the screen, or restores it. Wired to the toolbar button, so it
290
- * always runs inside the click gesture the Fullscreen API requires — everything up to the
291
- * promotion is synchronous for that reason.
292
- */
293
- async #toggleFullScreen() {
294
- const fullScreenHost = this.#fullScreenHost;
295
- // Both transitions settle asynchronously; ignore clicks that land mid-flight rather than
296
- // letting a second `requestFullscreen()` race the first.
297
- if (!fullScreenHost || this.#toggling)
298
- return;
299
- this.#toggling = true;
300
- // Promotion re-lays the editor out, which drops the caret; put it back afterwards.
301
- // `getSelection()` without an argument reads the range without stealing focus.
302
- const selection = this.editor?.getSelection() ?? null;
303
- try {
304
- if (this.fullScreen()) {
305
- await fullScreenHost.exit();
306
- }
307
- else {
308
- const element = this.quillHost().nativeElement;
309
- this.reservedHeight.set(element.offsetHeight);
310
- await fullScreenHost.enter(element);
311
- }
312
- }
313
- finally {
314
- // `enter()` degrades rather than throwing, but `exit()` can reject if the browser refuses
315
- // to leave full screen. Either way the controller has already settled its own state, so
316
- // read it back instead of assuming the toggle succeeded.
317
- this.#setFullScreen(fullScreenHost.active);
318
- this.#restoreSelection(selection);
319
- this.#toggling = false;
320
- }
321
- }
322
- /**
323
- * Escape leaves the pop-out. Native full screen is torn down by the browser itself (picked up
324
- * through `fullscreenchange`); this covers the popover and fixed fallbacks. The event is
325
- * stopped so Escape closes the editor rather than an enclosing dialog.
326
- */
327
- onEscape(event) {
328
- if (!this.fullScreen())
329
- return;
330
- event.preventDefault();
331
- event.stopPropagation();
332
- void this.#toggleFullScreen();
333
- }
334
- /**
335
- * Single funnel for pop-out state, so the signal and the reserved space always agree —
336
- * including when the browser closed full screen on its own.
337
- */
338
- #setFullScreen(active) {
339
- this.fullScreen.set(active);
340
- if (!active)
341
- this.reservedHeight.set(null);
342
- }
343
- /** Returns the caret to where it was before the pop-out re-laid the editor out. */
344
- #restoreSelection(selection) {
345
- const editor = this.editor;
346
- if (!editor)
347
- return;
348
- if (selection)
349
- editor.setSelection(selection, 'silent');
350
- else
351
- editor.focus();
352
- }
353
- contentChangedSaveValue() {
354
- if (!this.editor)
355
- return;
356
- const ops = this.editor.getContents().ops;
357
- const value = isEmptyQuillDocument(ops) ? undefined : { ops };
358
- this.value = value;
359
- this.onChange(value);
360
- this.valueChanged.emit(value);
361
- }
362
- ngOnDestroy() {
363
- this.#fullScreenHost?.destroy();
364
- this.#fullScreenHost = undefined;
365
- if (this.editor && this.#changeHandler) {
366
- this.editor.off('text-change', this.#changeHandler);
367
- }
368
- this.editor = undefined;
369
- // Tear the editor down first, then let the base complete `stateChanges` / `destroy$` and
370
- // clear the temporary-error timer — none of which happened while this override skipped it.
371
- super.ngOnDestroy();
372
- }
373
- static { this.ɵfac = function QuillInputComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || QuillInputComponent)(); }; }
374
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QuillInputComponent, selectors: [["lib-quill-input"]], viewQuery: function QuillInputComponent_Query(rf, ctx) { if (rf & 1) {
375
- i0.ɵɵviewQuerySignal(ctx.editorHost, _c0, 5)(ctx.quillHost, _c1, 5);
376
- } if (rf & 2) {
377
- i0.ɵɵqueryAdvance(2);
378
- } }, hostVars: 3, hostBindings: function QuillInputComponent_HostBindings(rf, ctx) { if (rf & 1) {
379
- i0.ɵɵlistener("keydown.escape", function QuillInputComponent_keydown_escape_HostBindingHandler($event) { return ctx.onEscape($event); });
380
- } if (rf & 2) {
381
- i0.ɵɵdomProperty("id", ctx.id);
382
- i0.ɵɵclassProp("floating", ctx.shouldLabelFloat);
383
- } }, inputs: { inputConfig: [1, "inputConfig"], value: "value" }, outputs: { valueChanged: "valueChanged" }, features: [i0.ɵɵProvidersFeature([{ provide: MatFormFieldControl, useExisting: QuillInputComponent }]), i0.ɵɵInheritDefinitionFeature], decls: 6, vars: 5, consts: [["quillHost", ""], ["editorHost", ""], [1, "quill-shell"], [1, "quill-host"], [3, "toggled", "active"]], template: function QuillInputComponent_Template(rf, ctx) { if (rf & 1) {
384
- i0.ɵɵelementStart(0, "div", 2)(1, "div", 3, 0);
385
- i0.ɵɵelement(3, "div", null, 1);
386
- i0.ɵɵelementStart(5, "lib-editor-full-screen-toggle", 4);
387
- i0.ɵɵlistener("toggled", function QuillInputComponent_Template_lib_editor_full_screen_toggle_toggled_5_listener() { return ctx.toggleFullScreen(); });
388
- i0.ɵɵelementEnd()()();
389
- } if (rf & 2) {
390
- i0.ɵɵstyleProp("height", ctx.reservedHeight(), "px");
391
- i0.ɵɵadvance();
392
- i0.ɵɵclassProp("is-readonly", ctx.readOnly());
393
- i0.ɵɵadvance(4);
394
- i0.ɵɵproperty("active", ctx.fullScreen());
395
- } }, dependencies: [EditorFullScreenToggleComponent], styles: [".quill-host[_ngcontent-%COMP%]{position:relative;border:solid 1px var(--mat-sys-outline-variant, var(--mat-app-outline));border-radius:6px;background:var(--mat-sys-surface-container-low, var(--mat-app-surface-container-low))}.quill-host[_ngcontent-%COMP%] > lib-editor-full-screen-toggle[_ngcontent-%COMP%]{position:absolute;right:16px;bottom:16px;z-index:2}.quill-host.is-readonly[_ngcontent-%COMP%] .ql-toolbar.ql-snow{display:none}.quill-host.is-readonly[_ngcontent-%COMP%] .ql-container.ql-snow{border-radius:6px}.quill-host[_ngcontent-%COMP%] .ql-toolbar.ql-snow{border:none;border-bottom:solid 1px var(--mat-sys-outline-variant, var(--mat-app-outline));background:var(--mat-sys-surface-container, var(--mat-app-surface-container));padding:8px 10px;border-radius:6px 6px 0 0}.quill-host[_ngcontent-%COMP%] .ql-container.ql-snow{border:none;border-radius:0 0 6px 6px;font-family:var(--mat-sys-body-large-font, inherit)}.quill-host[_ngcontent-%COMP%] .ql-toolbar.ql-snow .ql-formats{margin-right:10px;padding-right:10px;border-right:1px solid var(--mat-sys-outline-variant, var(--mat-app-outline))}.quill-host[_ngcontent-%COMP%] .ql-toolbar.ql-snow .ql-formats:last-child{border-right:none;padding-right:0}.quill-host[_ngcontent-%COMP%] .ql-snow .ql-stroke, .quill-host[_ngcontent-%COMP%] .ql-snow .ql-stroke-miter{stroke:var(--mat-sys-on-surface-variant, var(--mat-app-on-surface))}.quill-host[_ngcontent-%COMP%] .ql-snow .ql-fill, .quill-host[_ngcontent-%COMP%] .ql-snow .ql-stroke.ql-fill{fill:var(--mat-sys-on-surface-variant, var(--mat-app-on-surface))}.quill-host[_ngcontent-%COMP%] .ql-snow .ql-picker{color:var(--mat-sys-on-surface-variant, var(--mat-app-on-surface))}.quill-host[_ngcontent-%COMP%] .ql-toolbar.ql-snow button, .quill-host[_ngcontent-%COMP%] .ql-toolbar.ql-snow .ql-picker-label{border-radius:4px;transition:background-color .3s cubic-bezier(.16,1,.3,1)}.quill-host[_ngcontent-%COMP%] .ql-toolbar.ql-snow button:hover, .quill-host[_ngcontent-%COMP%] .ql-toolbar.ql-snow button:focus, .quill-host[_ngcontent-%COMP%] .ql-toolbar.ql-snow .ql-picker-label:hover{background-color:var(--mat-sys-surface-container-highest, var(--mat-app-surface-container-high))}.quill-host[_ngcontent-%COMP%] .ql-snow.ql-toolbar button.ql-active, .quill-host[_ngcontent-%COMP%] .ql-snow .ql-picker-label.ql-active, .quill-host[_ngcontent-%COMP%] .ql-snow .ql-picker-item.ql-selected, .quill-host[_ngcontent-%COMP%] .ql-snow.ql-toolbar button:hover, .quill-host[_ngcontent-%COMP%] .ql-snow .ql-picker-item:hover{color:var(--mat-sys-primary, var(--mat-app-primary))}.quill-host[_ngcontent-%COMP%] .ql-snow.ql-toolbar button:hover .ql-stroke, .quill-host[_ngcontent-%COMP%] .ql-snow.ql-toolbar button:focus .ql-stroke, .quill-host[_ngcontent-%COMP%] .ql-snow.ql-toolbar button.ql-active .ql-stroke, .quill-host[_ngcontent-%COMP%] .ql-snow .ql-picker-label:hover .ql-stroke, .quill-host[_ngcontent-%COMP%] .ql-snow .ql-picker-label.ql-active .ql-stroke, .quill-host[_ngcontent-%COMP%] .ql-snow .ql-picker-item:hover .ql-stroke, .quill-host[_ngcontent-%COMP%] .ql-snow .ql-picker-item.ql-selected .ql-stroke{stroke:var(--mat-sys-primary, var(--mat-app-primary))}.quill-host[_ngcontent-%COMP%] .ql-snow.ql-toolbar button:hover .ql-fill, .quill-host[_ngcontent-%COMP%] .ql-snow.ql-toolbar button.ql-active .ql-fill, .quill-host[_ngcontent-%COMP%] .ql-snow .ql-picker-label:hover .ql-fill, .quill-host[_ngcontent-%COMP%] .ql-snow .ql-picker-label.ql-active .ql-fill{fill:var(--mat-sys-primary, var(--mat-app-primary))}.quill-host[_ngcontent-%COMP%] .ql-snow .ql-picker-options{background-color:var(--mat-sys-surface-container-high, var(--mat-app-surface-container-high));border-color:var(--mat-sys-outline-variant, var(--mat-app-outline));border-radius:6px;box-shadow:0 4px 12px #0000002e;color:var(--mat-sys-on-surface, var(--mat-app-on-surface))}.quill-host[_ngcontent-%COMP%] .ql-snow .ql-picker.ql-expanded .ql-picker-label{border-color:var(--mat-sys-outline-variant, var(--mat-app-outline));color:var(--mat-sys-primary, var(--mat-app-primary))}.quill-host[_ngcontent-%COMP%] .ql-editor{min-height:300px;font-size:.9375rem;line-height:1.7;color:var(--mat-sys-on-surface, var(--mat-app-on-surface))}.quill-host[_ngcontent-%COMP%] .ql-editor.ql-blank:before{color:var(--mat-sys-on-surface-variant, var(--mat-app-on-surface));font-style:normal;opacity:.7}.quill-host[_ngcontent-%COMP%] .ql-editor a{color:var(--mat-sys-primary, var(--mat-app-primary))}.quill-host[_ngcontent-%COMP%] .ql-editor blockquote{border-left-color:var(--mat-sys-outline, var(--mat-app-outline));color:var(--mat-sys-on-surface-variant, var(--mat-app-on-surface))}.quill-host[_ngcontent-%COMP%] .ql-editor pre.ql-syntax, .quill-host[_ngcontent-%COMP%] .ql-editor code{background-color:var(--mat-sys-surface-container-highest, var(--mat-app-surface-container-high));color:var(--mat-sys-on-surface, var(--mat-app-on-surface));border-radius:4px}.quill-host[_ngcontent-%COMP%] .ql-editor table{border-collapse:collapse}.quill-host[_ngcontent-%COMP%] .ql-editor td{border:1px solid var(--mat-sys-outline-variant, var(--mat-app-outline));padding:6px 10px}.quill-host[_ngcontent-%COMP%] .ql-snow .ql-tooltip{background-color:var(--mat-sys-surface-container-high, var(--mat-app-surface-container-high));border-color:var(--mat-sys-outline-variant, var(--mat-app-outline));border-radius:6px;box-shadow:0 4px 12px #0000002e;color:var(--mat-sys-on-surface, var(--mat-app-on-surface))}.quill-host[_ngcontent-%COMP%] .ql-snow .ql-tooltip input[type=text]{background-color:var(--mat-sys-surface-container-low, var(--mat-app-surface-container-low));border-color:var(--mat-sys-outline-variant, var(--mat-app-outline));color:var(--mat-sys-on-surface, var(--mat-app-on-surface));border-radius:4px}.quill-host[_ngcontent-%COMP%] .ql-snow .ql-tooltip a.ql-action, .quill-host[_ngcontent-%COMP%] .ql-snow .ql-tooltip a.ql-preview{color:var(--mat-sys-primary, var(--mat-app-primary))}.quill-host[_ngcontent-%COMP%] .ql-snow .ql-tooltip a.ql-remove{color:var(--mat-sys-error, var(--mat-app-error))}.quill-host.is-fullscreen[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:1200;display:flex;flex-direction:column;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:none;border-radius:0;background:var(--mat-sys-surface, var(--mat-app-surface));overflow:visible;pointer-events:auto;animation:_ngcontent-%COMP%_quill-full-screen-enter .4s cubic-bezier(.16,1,.3,1)}.quill-host.is-fullscreen[_ngcontent-%COMP%]::backdrop{background-color:var(--mat-sys-surface, var(--mat-app-surface))}.quill-host.is-fullscreen[_ngcontent-%COMP%] .ql-toolbar.ql-snow{flex:0 0 auto;border-radius:0;padding:12px 16px}.quill-host.is-fullscreen[_ngcontent-%COMP%] .ql-container.ql-snow{flex:1 1 auto;min-height:0;border-radius:0}.quill-host.is-fullscreen[_ngcontent-%COMP%] .ql-editor{padding:2.5rem max(2rem,calc((100% - var(--lib-forms-editor-page-width, 210mm)) / 2))}.quill-host.is-fullscreen[_ngcontent-%COMP%] > lib-editor-full-screen-toggle[_ngcontent-%COMP%]{right:2rem;bottom:2rem}@keyframes _ngcontent-%COMP%_quill-full-screen-enter{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.quill-host.is-fullscreen[_ngcontent-%COMP%]{animation:none}}"], changeDetection: 0 }); }
396
- }
397
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QuillInputComponent, [{
398
- type: Component,
399
- args: [{ selector: 'lib-quill-input', imports: [EditorFullScreenToggleComponent], host: {
400
- '[class.floating]': 'shouldLabelFloat',
401
- '[id]': 'id',
402
- '(keydown.escape)': 'onEscape($event)'
403
- }, providers: [{ provide: MatFormFieldControl, useExisting: QuillInputComponent }], changeDetection: ChangeDetectionStrategy.OnPush, template: "\n<!-- `.quill-shell` stays in the document flow and holds the editor's footprint while\n `.quill-host` is promoted to the browser's top layer for full screen. Without it the\n surrounding form-field collapses by the editor's height, and the page scroll position\n jumps when full screen is left. -->\n<div class=\"quill-shell\" [style.height.px]=\"reservedHeight()\">\n <div class=\"quill-host\" #quillHost [class.is-readonly]=\"readOnly()\">\n <div #editorHost></div>\n\n <!-- Floats over the editing surface rather than living in the toolbar, so it survives the\n toolbar being hidden in read-only mode. -->\n <lib-editor-full-screen-toggle\n [active]=\"fullScreen()\"\n (toggled)=\"toggleFullScreen()\"\n ></lib-editor-full-screen-toggle>\n </div>\n</div>\n", styles: [".quill-host{position:relative;border:solid 1px var(--mat-sys-outline-variant, var(--mat-app-outline));border-radius:6px;background:var(--mat-sys-surface-container-low, var(--mat-app-surface-container-low))}.quill-host>lib-editor-full-screen-toggle{position:absolute;right:16px;bottom:16px;z-index:2}.quill-host.is-readonly ::ng-deep .ql-toolbar.ql-snow{display:none}.quill-host.is-readonly ::ng-deep .ql-container.ql-snow{border-radius:6px}.quill-host ::ng-deep .ql-toolbar.ql-snow{border:none;border-bottom:solid 1px var(--mat-sys-outline-variant, var(--mat-app-outline));background:var(--mat-sys-surface-container, var(--mat-app-surface-container));padding:8px 10px;border-radius:6px 6px 0 0}.quill-host ::ng-deep .ql-container.ql-snow{border:none;border-radius:0 0 6px 6px;font-family:var(--mat-sys-body-large-font, inherit)}.quill-host ::ng-deep .ql-toolbar.ql-snow .ql-formats{margin-right:10px;padding-right:10px;border-right:1px solid var(--mat-sys-outline-variant, var(--mat-app-outline))}.quill-host ::ng-deep .ql-toolbar.ql-snow .ql-formats:last-child{border-right:none;padding-right:0}.quill-host ::ng-deep .ql-snow .ql-stroke,.quill-host ::ng-deep .ql-snow .ql-stroke-miter{stroke:var(--mat-sys-on-surface-variant, var(--mat-app-on-surface))}.quill-host ::ng-deep .ql-snow .ql-fill,.quill-host ::ng-deep .ql-snow .ql-stroke.ql-fill{fill:var(--mat-sys-on-surface-variant, var(--mat-app-on-surface))}.quill-host ::ng-deep .ql-snow .ql-picker{color:var(--mat-sys-on-surface-variant, var(--mat-app-on-surface))}.quill-host ::ng-deep .ql-toolbar.ql-snow button,.quill-host ::ng-deep .ql-toolbar.ql-snow .ql-picker-label{border-radius:4px;transition:background-color .3s cubic-bezier(.16,1,.3,1)}.quill-host ::ng-deep .ql-toolbar.ql-snow button:hover,.quill-host ::ng-deep .ql-toolbar.ql-snow button:focus,.quill-host ::ng-deep .ql-toolbar.ql-snow .ql-picker-label:hover{background-color:var(--mat-sys-surface-container-highest, var(--mat-app-surface-container-high))}.quill-host ::ng-deep .ql-snow.ql-toolbar button.ql-active,.quill-host ::ng-deep .ql-snow .ql-picker-label.ql-active,.quill-host ::ng-deep .ql-snow .ql-picker-item.ql-selected,.quill-host ::ng-deep .ql-snow.ql-toolbar button:hover,.quill-host ::ng-deep .ql-snow .ql-picker-item:hover{color:var(--mat-sys-primary, var(--mat-app-primary))}.quill-host ::ng-deep .ql-snow.ql-toolbar button:hover .ql-stroke,.quill-host ::ng-deep .ql-snow.ql-toolbar button:focus .ql-stroke,.quill-host ::ng-deep .ql-snow.ql-toolbar button.ql-active .ql-stroke,.quill-host ::ng-deep .ql-snow .ql-picker-label:hover .ql-stroke,.quill-host ::ng-deep .ql-snow .ql-picker-label.ql-active .ql-stroke,.quill-host ::ng-deep .ql-snow .ql-picker-item:hover .ql-stroke,.quill-host ::ng-deep .ql-snow .ql-picker-item.ql-selected .ql-stroke{stroke:var(--mat-sys-primary, var(--mat-app-primary))}.quill-host ::ng-deep .ql-snow.ql-toolbar button:hover .ql-fill,.quill-host ::ng-deep .ql-snow.ql-toolbar button.ql-active .ql-fill,.quill-host ::ng-deep .ql-snow .ql-picker-label:hover .ql-fill,.quill-host ::ng-deep .ql-snow .ql-picker-label.ql-active .ql-fill{fill:var(--mat-sys-primary, var(--mat-app-primary))}.quill-host ::ng-deep .ql-snow .ql-picker-options{background-color:var(--mat-sys-surface-container-high, var(--mat-app-surface-container-high));border-color:var(--mat-sys-outline-variant, var(--mat-app-outline));border-radius:6px;box-shadow:0 4px 12px #0000002e;color:var(--mat-sys-on-surface, var(--mat-app-on-surface))}.quill-host ::ng-deep .ql-snow .ql-picker.ql-expanded .ql-picker-label{border-color:var(--mat-sys-outline-variant, var(--mat-app-outline));color:var(--mat-sys-primary, var(--mat-app-primary))}.quill-host ::ng-deep .ql-editor{min-height:300px;font-size:.9375rem;line-height:1.7;color:var(--mat-sys-on-surface, var(--mat-app-on-surface))}.quill-host ::ng-deep .ql-editor.ql-blank:before{color:var(--mat-sys-on-surface-variant, var(--mat-app-on-surface));font-style:normal;opacity:.7}.quill-host ::ng-deep .ql-editor a{color:var(--mat-sys-primary, var(--mat-app-primary))}.quill-host ::ng-deep .ql-editor blockquote{border-left-color:var(--mat-sys-outline, var(--mat-app-outline));color:var(--mat-sys-on-surface-variant, var(--mat-app-on-surface))}.quill-host ::ng-deep .ql-editor pre.ql-syntax,.quill-host ::ng-deep .ql-editor code{background-color:var(--mat-sys-surface-container-highest, var(--mat-app-surface-container-high));color:var(--mat-sys-on-surface, var(--mat-app-on-surface));border-radius:4px}.quill-host ::ng-deep .ql-editor table{border-collapse:collapse}.quill-host ::ng-deep .ql-editor td{border:1px solid var(--mat-sys-outline-variant, var(--mat-app-outline));padding:6px 10px}.quill-host ::ng-deep .ql-snow .ql-tooltip{background-color:var(--mat-sys-surface-container-high, var(--mat-app-surface-container-high));border-color:var(--mat-sys-outline-variant, var(--mat-app-outline));border-radius:6px;box-shadow:0 4px 12px #0000002e;color:var(--mat-sys-on-surface, var(--mat-app-on-surface))}.quill-host ::ng-deep .ql-snow .ql-tooltip input[type=text]{background-color:var(--mat-sys-surface-container-low, var(--mat-app-surface-container-low));border-color:var(--mat-sys-outline-variant, var(--mat-app-outline));color:var(--mat-sys-on-surface, var(--mat-app-on-surface));border-radius:4px}.quill-host ::ng-deep .ql-snow .ql-tooltip a.ql-action,.quill-host ::ng-deep .ql-snow .ql-tooltip a.ql-preview{color:var(--mat-sys-primary, var(--mat-app-primary))}.quill-host ::ng-deep .ql-snow .ql-tooltip a.ql-remove{color:var(--mat-sys-error, var(--mat-app-error))}.quill-host.is-fullscreen{position:fixed;inset:0;z-index:1200;display:flex;flex-direction:column;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:none;border-radius:0;background:var(--mat-sys-surface, var(--mat-app-surface));overflow:visible;pointer-events:auto;animation:quill-full-screen-enter .4s cubic-bezier(.16,1,.3,1)}.quill-host.is-fullscreen::backdrop{background-color:var(--mat-sys-surface, var(--mat-app-surface))}.quill-host.is-fullscreen ::ng-deep .ql-toolbar.ql-snow{flex:0 0 auto;border-radius:0;padding:12px 16px}.quill-host.is-fullscreen ::ng-deep .ql-container.ql-snow{flex:1 1 auto;min-height:0;border-radius:0}.quill-host.is-fullscreen ::ng-deep .ql-editor{padding:2.5rem max(2rem,calc((100% - var(--lib-forms-editor-page-width, 210mm)) / 2))}.quill-host.is-fullscreen>lib-editor-full-screen-toggle{right:2rem;bottom:2rem}@keyframes quill-full-screen-enter{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.quill-host.is-fullscreen{animation:none}}\n"] }]
404
- }], () => [], { inputConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputConfig", required: true }] }], valueChanged: [{ type: i0.Output, args: ["valueChanged"] }], editorHost: [{ type: i0.ViewChild, args: ['editorHost', { isSignal: true }] }], quillHost: [{ type: i0.ViewChild, args: ['quillHost', { isSignal: true }] }], value: [{
405
- type: Input
406
- }] }); })();
407
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QuillInputComponent, { className: "QuillInputComponent", filePath: "lib/components/t-form-input/elements/editor-input-element/core/quill-input/quill-input.component.ts", lineNumber: 64 }); })();
408
-
409
- function EditorInputElementComponent_Conditional_1_Case_4_Template(rf, ctx) { if (rf & 1) {
410
- i0.ɵɵelement(0, "lib-quill-input", 3);
411
- } if (rf & 2) {
412
- const inputConfig_r1 = i0.ɵɵnextContext();
413
- i0.ɵɵproperty("inputConfig", inputConfig_r1)("formControlName", inputConfig_r1.id)("required", inputConfig_r1.required);
414
- } }
415
- function EditorInputElementComponent_Conditional_1_Case_5_Template(rf, ctx) { if (rf & 1) {
416
- i0.ɵɵelement(0, "lib-editor-js-input", 3);
417
- } if (rf & 2) {
418
- const inputConfig_r1 = i0.ɵɵnextContext();
419
- i0.ɵɵproperty("inputConfig", inputConfig_r1)("formControlName", inputConfig_r1.id)("required", inputConfig_r1.required);
420
- } }
421
- function EditorInputElementComponent_Conditional_1_Conditional_6_Template(rf, ctx) { if (rf & 1) {
422
- i0.ɵɵelementStart(0, "mat-hint", 4);
423
- i0.ɵɵtext(1);
424
- i0.ɵɵelementEnd();
425
- } if (rf & 2) {
426
- const inputConfig_r1 = i0.ɵɵnextContext();
427
- i0.ɵɵadvance();
428
- i0.ɵɵtextInterpolate1(" ", inputConfig_r1.temporaryHint || inputConfig_r1.hintLabel, " ");
429
- } }
430
- function EditorInputElementComponent_Conditional_1_Conditional_7_Template(rf, ctx) { if (rf & 1) {
431
- i0.ɵɵelementStart(0, "mat-error", 5);
432
- i0.ɵɵtext(1);
433
- i0.ɵɵelementEnd();
434
- } if (rf & 2) {
435
- const ctx_r1 = i0.ɵɵnextContext(2);
436
- i0.ɵɵadvance();
437
- i0.ɵɵtextInterpolate(ctx_r1.errorMessage());
438
- } }
439
- function EditorInputElementComponent_Conditional_1_Conditional_8_Template(rf, ctx) { if (rf & 1) {
440
- i0.ɵɵelementStart(0, "mat-icon", 6);
441
- i0.ɵɵtext(1);
442
- i0.ɵɵelementEnd();
443
- } if (rf & 2) {
444
- const inputConfig_r1 = i0.ɵɵnextContext();
445
- i0.ɵɵadvance();
446
- i0.ɵɵtextInterpolate(inputConfig_r1.prefixIcon);
447
- } }
448
- function EditorInputElementComponent_Conditional_1_Conditional_9_Template(rf, ctx) { if (rf & 1) {
449
- const _r3 = i0.ɵɵgetCurrentView();
450
- i0.ɵɵelementStart(0, "button", 12);
451
- i0.ɵɵlistener("click", function EditorInputElementComponent_Conditional_1_Conditional_9_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r3); const inputConfig_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(inputConfig_r1.canReload.emit()); });
452
- i0.ɵɵelementStart(1, "mat-icon", 13);
453
- i0.ɵɵtext(2, "sync");
454
- i0.ɵɵelementEnd()();
455
- } }
456
- function EditorInputElementComponent_Conditional_1_Conditional_10_Template(rf, ctx) { if (rf & 1) {
457
- i0.ɵɵelementStart(0, "mat-icon", 8);
458
- i0.ɵɵtext(1);
459
- i0.ɵɵelementEnd();
460
- } if (rf & 2) {
461
- const inputConfig_r1 = i0.ɵɵnextContext();
462
- i0.ɵɵadvance();
463
- i0.ɵɵtextInterpolate(inputConfig_r1.suffixIcon);
464
- } }
465
- function EditorInputElementComponent_Conditional_1_Conditional_11_Template(rf, ctx) { if (rf & 1) {
466
- i0.ɵɵelementStart(0, "span", 9);
467
- i0.ɵɵtext(1);
468
- i0.ɵɵelementEnd();
469
- } if (rf & 2) {
470
- const inputConfig_r1 = i0.ɵɵnextContext();
471
- i0.ɵɵadvance();
472
- i0.ɵɵtextInterpolate(inputConfig_r1.prefixText);
473
- } }
474
- function EditorInputElementComponent_Conditional_1_Conditional_12_Template(rf, ctx) { if (rf & 1) {
475
- i0.ɵɵelementStart(0, "span", 10);
476
- i0.ɵɵtext(1);
477
- i0.ɵɵelementEnd();
478
- } if (rf & 2) {
479
- const inputConfig_r1 = i0.ɵɵnextContext();
480
- i0.ɵɵadvance();
481
- i0.ɵɵtextInterpolate(inputConfig_r1.suffixText);
482
- } }
483
- function EditorInputElementComponent_Conditional_1_Conditional_13_Template(rf, ctx) { if (rf & 1) {
484
- i0.ɵɵelementStart(0, "mat-hint", 11);
485
- i0.ɵɵtext(1);
486
- i0.ɵɵelementEnd();
487
- } if (rf & 2) {
488
- let tmp_3_0;
489
- const inputConfig_r1 = i0.ɵɵnextContext();
490
- const ctx_r1 = i0.ɵɵnextContext();
491
- i0.ɵɵadvance();
492
- 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, " ");
493
- } }
494
- function EditorInputElementComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
495
- i0.ɵɵelementStart(0, "mat-form-field", 1)(1, "mat-label");
496
- i0.ɵɵtext(2);
497
- i0.ɵɵelement(3, "lib-t-form-input-status", 2);
498
- i0.ɵɵelementEnd();
499
- i0.ɵɵconditionalCreate(4, EditorInputElementComponent_Conditional_1_Case_4_Template, 1, 3, "lib-quill-input", 3)(5, EditorInputElementComponent_Conditional_1_Case_5_Template, 1, 3, "lib-editor-js-input", 3);
500
- i0.ɵɵconditionalCreate(6, EditorInputElementComponent_Conditional_1_Conditional_6_Template, 2, 1, "mat-hint", 4);
501
- i0.ɵɵconditionalCreate(7, EditorInputElementComponent_Conditional_1_Conditional_7_Template, 2, 1, "mat-error", 5);
502
- i0.ɵɵconditionalCreate(8, EditorInputElementComponent_Conditional_1_Conditional_8_Template, 2, 1, "mat-icon", 6);
503
- i0.ɵɵconditionalCreate(9, EditorInputElementComponent_Conditional_1_Conditional_9_Template, 3, 0, "button", 7);
504
- i0.ɵɵconditionalCreate(10, EditorInputElementComponent_Conditional_1_Conditional_10_Template, 2, 1, "mat-icon", 8);
505
- i0.ɵɵconditionalCreate(11, EditorInputElementComponent_Conditional_1_Conditional_11_Template, 2, 1, "span", 9);
506
- i0.ɵɵconditionalCreate(12, EditorInputElementComponent_Conditional_1_Conditional_12_Template, 2, 1, "span", 10);
507
- i0.ɵɵconditionalCreate(13, EditorInputElementComponent_Conditional_1_Conditional_13_Template, 2, 1, "mat-hint", 11);
508
- i0.ɵɵelementEnd();
509
- } if (rf & 2) {
510
- let tmp_5_0;
511
- const inputConfig_r1 = ctx;
512
- const ctx_r1 = i0.ɵɵnextContext();
513
- i0.ɵɵproperty("appearance", inputConfig_r1.appearance || "fill");
514
- i0.ɵɵadvance(2);
515
- i0.ɵɵtextInterpolate1(" ", inputConfig_r1.label, " ");
516
- i0.ɵɵadvance();
517
- i0.ɵɵproperty("inputConfig", inputConfig_r1);
518
- i0.ɵɵadvance();
519
- i0.ɵɵconditional((tmp_5_0 = inputConfig_r1.richTextEditorLibrary) === ctx_r1.editorType.Quill ? 4 : tmp_5_0 === ctx_r1.editorType.EditorJS ? 5 : -1);
520
- i0.ɵɵadvance(2);
521
- i0.ɵɵconditional(inputConfig_r1.hintLabel || inputConfig_r1.temporaryHint ? 6 : -1);
522
- i0.ɵɵadvance();
523
- i0.ɵɵconditional(!!ctx_r1.errorMessage() ? 7 : -1);
524
- i0.ɵɵadvance();
525
- i0.ɵɵconditional(inputConfig_r1.prefixIcon ? 8 : -1);
526
- i0.ɵɵadvance();
527
- i0.ɵɵconditional((inputConfig_r1.canReload == null ? null : inputConfig_r1.canReload.canReload) ? 9 : -1);
528
- i0.ɵɵadvance();
529
- i0.ɵɵconditional(inputConfig_r1.suffixIcon && inputConfig_r1.id !== "password" ? 10 : -1);
530
- i0.ɵɵadvance();
531
- i0.ɵɵconditional(inputConfig_r1.prefixText ? 11 : -1);
532
- i0.ɵɵadvance();
533
- i0.ɵɵconditional(inputConfig_r1.suffixText ? 12 : -1);
534
- i0.ɵɵadvance();
535
- i0.ɵɵconditional(inputConfig_r1.maxLength && ctx_r1.formGroup() ? 13 : -1);
536
- } }
537
- /**
538
- * Wraps a configurable rich-text editor inside a `mat-form-field`, selecting the concrete
539
- * editor (EditorJS or Quill) from the column's `richTextEditorLibrary`, with shared
540
- * label / hint / error / suffix / prefix metadata from the column.
541
- */
542
- class EditorInputElementComponent {
543
- constructor() {
544
- this.inputConfig = input.required(...(ngDevMode ? [{ debugName: "inputConfig" }] : /* istanbul ignore next */ []));
545
- this.formGroup = input.required(...(ngDevMode ? [{ debugName: "formGroup" }] : /* istanbul ignore next */ []));
546
- this.reload = output();
547
- /** Editor-library enum exposed for `@switch` in the template. */
548
- this.editorType = RichTextEditorType;
549
- this.errorMessage = computed(() => getInputErrorMessage(this.inputConfig(), this.formGroup()), ...(ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []));
550
- }
551
- static { this.ɵfac = function EditorInputElementComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || EditorInputElementComponent)(); }; }
552
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EditorInputElementComponent, selectors: [["lib-editor-input-element"]], inputs: { inputConfig: [1, "inputConfig"], formGroup: [1, "formGroup"] }, outputs: { reload: "reload" }, decls: 2, vars: 2, consts: [[3, "formGroup"], ["subscriptSizing", "dynamic", 3, "appearance"], [3, "inputConfig"], [3, "inputConfig", "formControlName", "required"], [1, "inputHint"], ["matTooltipClass", "errorToolTip", 1, "oneLineTextEllipsis"], ["matPrefix", ""], ["mat-icon-button", "", "matTooltip", "Click to refresh this field.", "matSuffix", "", 1, "input-sync-button", 2, "margin-right", "4px"], ["matSuffix", ""], ["matPrefix", "", 2, "top", "0"], ["matSuffix", "", 2, "padding-left", "5px"], ["align", "end"], ["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 EditorInputElementComponent_Template(rf, ctx) { if (rf & 1) {
553
- i0.ɵɵelementStart(0, "form", 0);
554
- i0.ɵɵconditionalCreate(1, EditorInputElementComponent_Conditional_1_Template, 14, 12, "mat-form-field", 1);
555
- i0.ɵɵelementEnd();
556
- } if (rf & 2) {
557
- let tmp_1_0;
558
- i0.ɵɵproperty("formGroup", ctx.formGroup());
559
- i0.ɵɵadvance();
560
- i0.ɵɵconditional((tmp_1_0 = ctx.inputConfig()) ? 1 : -1, tmp_1_0);
561
- } }, dependencies: [ReactiveFormsModule, i1.ɵNgNoValidate, i1.NgControlStatus, i1.NgControlStatusGroup, i1.RequiredValidator, i1.FormGroupDirective, i1.FormControlName, MatFormFieldModule, i2.MatFormField, i2.MatLabel, i2.MatHint, i2.MatError, i2.MatPrefix, i2.MatSuffix, MatIconModule, i3.MatIcon, MatButtonModule, i2$1.MatIconButton, MatTooltipModule, i5.MatTooltip, TFormInputStatusComponent,
562
- EditorJsInputComponent,
563
- QuillInputComponent], 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 }); }
564
- }
565
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EditorInputElementComponent, [{
566
- type: Component,
567
- args: [{ selector: 'lib-editor-input-element', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
568
- ReactiveFormsModule,
569
- MatFormFieldModule,
570
- MatIconModule,
571
- MatButtonModule,
572
- MatTooltipModule,
573
- TFormInputStatusComponent,
574
- EditorJsInputComponent,
575
- QuillInputComponent,
576
- ], template: "<form [formGroup]=\"formGroup()\">\n @if (inputConfig(); as inputConfig) {\n <mat-form-field [appearance]=\"inputConfig.appearance || 'fill'\" subscriptSizing=\"dynamic\">\n <mat-label>\n {{ inputConfig.label }}\n <lib-t-form-input-status [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\n </mat-label>\n\n @switch (inputConfig.richTextEditorLibrary) {\n @case (editorType.Quill) {\n <lib-quill-input\n [inputConfig]=\"inputConfig\"\n [formControlName]=\"inputConfig.id\"\n [required]=\"inputConfig.required\"\n ></lib-quill-input>\n }\n @case (editorType.EditorJS) {\n <lib-editor-js-input\n [inputConfig]=\"inputConfig\"\n [formControlName]=\"inputConfig.id\"\n [required]=\"inputConfig.required\"\n ></lib-editor-js-input>\n }\n }\n\n @if (inputConfig.hintLabel || inputConfig.temporaryHint) {\n <mat-hint class=\"inputHint\">\n {{ inputConfig.temporaryHint || inputConfig.hintLabel }}\n </mat-hint>\n }\n\n @if (!!errorMessage()) {\n <mat-error class=\"oneLineTextEllipsis\" matTooltipClass=\"errorToolTip\">{{ errorMessage() }}</mat-error>\n }\n\n @if (inputConfig.prefixIcon) {\n <mat-icon matPrefix>{{ inputConfig.prefixIcon }}</mat-icon>\n }\n\n @if (inputConfig.canReload?.canReload) {\n <button\n mat-icon-button\n style=\"margin-right: 4px;\"\n matTooltip=\"Click to refresh this field.\"\n class=\"input-sync-button\"\n (click)=\"inputConfig.canReload.emit()\"\n matSuffix\n >\n <mat-icon style=\"color: var(--mat-sys-primary)\">sync</mat-icon>\n </button>\n }\n\n @if (inputConfig.suffixIcon && inputConfig.id !== 'password') {\n <mat-icon matSuffix>{{ inputConfig.suffixIcon }}</mat-icon>\n }\n\n @if (inputConfig.prefixText) {\n <span matPrefix style=\"top: 0\">{{ inputConfig.prefixText }}</span>\n }\n @if (inputConfig.suffixText) {\n <span matSuffix style=\"padding-left: 5px\">{{ inputConfig.suffixText }}</span>\n }\n\n @if (inputConfig.maxLength && formGroup()) {\n <mat-hint align=\"end\">\n {{ (formGroup().controls[inputConfig.id]?.value?.length || 0) + '/' + inputConfig.maxLength }}\n </mat-hint>\n }\n </mat-form-field>\n }\n</form>\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"] }]
577
- }], 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"] }] }); })();
578
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(EditorInputElementComponent, { className: "EditorInputElementComponent", filePath: "lib/components/t-form-input/elements/editor-input-element/editor-input-element.component.ts", lineNumber: 35 }); })();
579
-
580
- export { EditorInputElementComponent };
581
- //# sourceMappingURL=ngx-t-forms-editor-input-element.component-B8Pk-EVY.mjs.map