ngx-t-forms 2.0.37 → 3.1.0

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 (158) hide show
  1. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-D_l5sbNh.mjs → ngx-t-forms-auto-complete-input-element.component-FhUHTsUF.mjs} +4 -4
  2. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-D_l5sbNh.mjs.map → ngx-t-forms-auto-complete-input-element.component-FhUHTsUF.mjs.map} +1 -1
  3. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-fJIsRm0v.mjs → ngx-t-forms-basic-input-input-element.component-BJKe9wIA.mjs} +6 -6
  4. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-fJIsRm0v.mjs.map → ngx-t-forms-basic-input-input-element.component-BJKe9wIA.mjs.map} +1 -1
  5. package/fesm2022/ngx-t-forms-calculated-field-rules.component-FQLTI7CX.mjs +643 -0
  6. package/fesm2022/ngx-t-forms-calculated-field-rules.component-FQLTI7CX.mjs.map +1 -0
  7. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-L1kPy15K.mjs → ngx-t-forms-chip-options-creator-editor.component-CJtbprXS.mjs} +4 -4
  8. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-CJtbprXS.mjs.map +1 -0
  9. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-CU6Cp-oK.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-CU6R5h-x.mjs} +4 -4
  10. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-CU6R5h-x.mjs.map +1 -0
  11. package/fesm2022/ngx-t-forms-data-source-picker.component-C8MBbnfz.mjs +261 -0
  12. package/fesm2022/ngx-t-forms-data-source-picker.component-C8MBbnfz.mjs.map +1 -0
  13. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-DsjcLQ5A.mjs → ngx-t-forms-date-picker-input-element.component-Dux6uy66.mjs} +4 -4
  14. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-DsjcLQ5A.mjs.map → ngx-t-forms-date-picker-input-element.component-Dux6uy66.mjs.map} +1 -1
  15. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-SMWrTm5X.mjs +157 -0
  16. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-SMWrTm5X.mjs.map +1 -0
  17. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-uGM93dvc.mjs +373 -0
  18. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-uGM93dvc.mjs.map +1 -0
  19. package/fesm2022/ngx-t-forms-document-picker.component-DIqaaBSl.mjs +1259 -0
  20. package/fesm2022/ngx-t-forms-document-picker.component-DIqaaBSl.mjs.map +1 -0
  21. package/fesm2022/ngx-t-forms-editor-input-element.component-CIELjDty.mjs +417 -0
  22. package/fesm2022/ngx-t-forms-editor-input-element.component-CIELjDty.mjs.map +1 -0
  23. package/fesm2022/ngx-t-forms-editor-js-input.component-C1dI_7rU.mjs +553 -0
  24. package/fesm2022/ngx-t-forms-editor-js-input.component-C1dI_7rU.mjs.map +1 -0
  25. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-_RBYRgn9.mjs → ngx-t-forms-file-upload-input-element.component-CQsKz87N.mjs} +7 -7
  26. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-_RBYRgn9.mjs.map → ngx-t-forms-file-upload-input-element.component-CQsKz87N.mjs.map} +1 -1
  27. package/fesm2022/ngx-t-forms-form-input-selector.component-Dj0jvBdm.mjs +86 -0
  28. package/fesm2022/ngx-t-forms-form-input-selector.component-Dj0jvBdm.mjs.map +1 -0
  29. package/fesm2022/{ngx-t-forms-form-json-view.component-D9rU9vxT.mjs → ngx-t-forms-form-json-view.component-DzJKFl4c.mjs} +2 -2
  30. package/fesm2022/{ngx-t-forms-form-json-view.component-D9rU9vxT.mjs.map → ngx-t-forms-form-json-view.component-DzJKFl4c.mjs.map} +1 -1
  31. package/fesm2022/ngx-t-forms-form-payload-projection.component-y9PSIeP1.mjs +179 -0
  32. package/fesm2022/ngx-t-forms-form-payload-projection.component-y9PSIeP1.mjs.map +1 -0
  33. package/fesm2022/{ngx-t-forms-form-section-stepper.component-CqCL3Bnc.mjs → ngx-t-forms-form-section-stepper.component-DOvVtJGB.mjs} +6 -6
  34. package/fesm2022/{ngx-t-forms-form-section-stepper.component-CqCL3Bnc.mjs.map → ngx-t-forms-form-section-stepper.component-DOvVtJGB.mjs.map} +1 -1
  35. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-wmRDJU4P.mjs → ngx-t-forms-forms-builder-menu.component-CcqyQLf5.mjs} +12 -12
  36. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-wmRDJU4P.mjs.map → ngx-t-forms-forms-builder-menu.component-CcqyQLf5.mjs.map} +1 -1
  37. package/fesm2022/{ngx-t-forms-geo-location.component-CMbBSXe0.mjs → ngx-t-forms-geo-location.component-Bj_qIEqi.mjs} +7 -7
  38. package/fesm2022/{ngx-t-forms-geo-location.component-CMbBSXe0.mjs.map → ngx-t-forms-geo-location.component-Bj_qIEqi.mjs.map} +1 -1
  39. package/fesm2022/ngx-t-forms-header-template-editor.component-DLldVmcN.mjs +129 -0
  40. package/fesm2022/ngx-t-forms-header-template-editor.component-DLldVmcN.mjs.map +1 -0
  41. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-Cbq8OYk7.mjs → ngx-t-forms-image-capture-input-element.component-lwp3IcDt.mjs} +7 -7
  42. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-Cbq8OYk7.mjs.map → ngx-t-forms-image-capture-input-element.component-lwp3IcDt.mjs.map} +1 -1
  43. package/fesm2022/{ngx-t-forms-index-CPNvE4PP.mjs → ngx-t-forms-index-C8NtLE16.mjs} +2 -2
  44. package/fesm2022/ngx-t-forms-index-C8NtLE16.mjs.map +1 -0
  45. package/fesm2022/{ngx-t-forms-input-custom.component-uNVdF9aA.mjs → ngx-t-forms-input-custom.component-DiciFhSS.mjs} +2 -2
  46. package/fesm2022/{ngx-t-forms-input-custom.component-uNVdF9aA.mjs.map → ngx-t-forms-input-custom.component-DiciFhSS.mjs.map} +1 -1
  47. package/fesm2022/ngx-t-forms-input-editor.component-D12hrHOc.mjs +190 -0
  48. package/fesm2022/ngx-t-forms-input-editor.component-D12hrHOc.mjs.map +1 -0
  49. package/fesm2022/{ngx-t-forms-map-mat-options-keys-D0SGS9xQ.mjs → ngx-t-forms-map-mat-options-keys-C2JpMTEc.mjs} +2 -2
  50. package/fesm2022/{ngx-t-forms-map-mat-options-keys-D0SGS9xQ.mjs.map → ngx-t-forms-map-mat-options-keys-C2JpMTEc.mjs.map} +1 -1
  51. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-C1Qrze7K.mjs +167 -0
  52. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-C1Qrze7K.mjs.map +1 -0
  53. package/fesm2022/{ngx-t-forms-mat-slider-editor.component-CTSBrM-j.mjs → ngx-t-forms-mat-slider-editor.component-4buvmLkX.mjs} +3 -3
  54. package/fesm2022/ngx-t-forms-mat-slider-editor.component-4buvmLkX.mjs.map +1 -0
  55. 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
  56. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-DX8L0O1k.mjs.map +1 -0
  57. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CxF6Ljjf.mjs → ngx-t-forms-missing-form-configs.component-BaTR_jzc.mjs} +4 -4
  58. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CxF6Ljjf.mjs.map → ngx-t-forms-missing-form-configs.component-BaTR_jzc.mjs.map} +1 -1
  59. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-BqT5Z8SM.mjs → ngx-t-forms-mscoa-chart-toolbar.component-Dni_bv_G.mjs} +4 -4
  60. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-BqT5Z8SM.mjs.map → ngx-t-forms-mscoa-chart-toolbar.component-Dni_bv_G.mjs.map} +1 -1
  61. package/fesm2022/{ngx-t-forms-mscoa-error-display.component-99DpVSy7.mjs → ngx-t-forms-mscoa-error-display.component-BDPi6w2E.mjs} +3 -3
  62. package/fesm2022/{ngx-t-forms-mscoa-error-display.component-99DpVSy7.mjs.map → ngx-t-forms-mscoa-error-display.component-BDPi6w2E.mjs.map} +1 -1
  63. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-BPQuzR5k.mjs +447 -0
  64. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-BPQuzR5k.mjs.map +1 -0
  65. package/fesm2022/{ngx-t-forms-mscoa-temporary-hint.component-B1Z-IXSL.mjs → ngx-t-forms-mscoa-temporary-hint.component-g7DosiVb.mjs} +3 -3
  66. package/fesm2022/{ngx-t-forms-mscoa-temporary-hint.component-B1Z-IXSL.mjs.map → ngx-t-forms-mscoa-temporary-hint.component-g7DosiVb.mjs.map} +1 -1
  67. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-hXWMRFjl.mjs +905 -0
  68. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-hXWMRFjl.mjs.map +1 -0
  69. package/fesm2022/{ngx-t-forms-ngx-t-forms-DQ_h-jPF.mjs → ngx-t-forms-ngx-t-forms-tQEbZK_e.mjs} +2188 -249
  70. package/fesm2022/ngx-t-forms-ngx-t-forms-tQEbZK_e.mjs.map +1 -0
  71. package/fesm2022/{ngx-t-forms-paginated-selection-table-DHwojPhn.mjs → ngx-t-forms-paginated-selection-table-pYY2sWAb.mjs} +8 -8
  72. package/fesm2022/{ngx-t-forms-paginated-selection-table-DHwojPhn.mjs.map → ngx-t-forms-paginated-selection-table-pYY2sWAb.mjs.map} +1 -1
  73. package/fesm2022/ngx-t-forms-payload-template-editor.component-DGCUsTYx.mjs +79 -0
  74. package/fesm2022/ngx-t-forms-payload-template-editor.component-DGCUsTYx.mjs.map +1 -0
  75. package/fesm2022/ngx-t-forms-pipeline-generator.component-D2stBXXC.mjs +748 -0
  76. package/fesm2022/ngx-t-forms-pipeline-generator.component-D2stBXXC.mjs.map +1 -0
  77. package/fesm2022/ngx-t-forms-record-list-manager.component-CtCOIpai.mjs +446 -0
  78. package/fesm2022/ngx-t-forms-record-list-manager.component-CtCOIpai.mjs.map +1 -0
  79. package/fesm2022/ngx-t-forms-required-inputs.component-D9wIdOhg.mjs +272 -0
  80. package/fesm2022/ngx-t-forms-required-inputs.component-D9wIdOhg.mjs.map +1 -0
  81. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-D3sa7sNg.mjs → ngx-t-forms-rest-api-call-setup.component-Gy7Rtmue.mjs} +39 -8
  82. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-Gy7Rtmue.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-D6jakGa5.mjs → ngx-t-forms-section-report.component-U9uQ_Ow9.mjs} +4 -4
  86. package/fesm2022/{ngx-t-forms-section-report.component-D6jakGa5.mjs.map → ngx-t-forms-section-report.component-U9uQ_Ow9.mjs.map} +1 -1
  87. package/fesm2022/{ngx-t-forms-select-input-element.component-CwqIck0h.mjs → ngx-t-forms-select-input-element.component-CxYTmuvV.mjs} +8 -8
  88. package/fesm2022/{ngx-t-forms-select-input-element.component-CwqIck0h.mjs.map → ngx-t-forms-select-input-element.component-CxYTmuvV.mjs.map} +1 -1
  89. package/fesm2022/ngx-t-forms-selection-options-editor.component-BLLejOLG.mjs +169 -0
  90. package/fesm2022/ngx-t-forms-selection-options-editor.component-BLLejOLG.mjs.map +1 -0
  91. package/fesm2022/ngx-t-forms-t-workflow-picker.component-D0ttyEex.mjs +263 -0
  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-D4dEi8Vs.mjs → ngx-t-forms-textarea-input-element.component-75VdPc6z.mjs} +4 -4
  94. package/fesm2022/{ngx-t-forms-textarea-input-element.component-D4dEi8Vs.mjs.map → ngx-t-forms-textarea-input-element.component-75VdPc6z.mjs.map} +1 -1
  95. package/fesm2022/{ngx-t-forms-toggle-input-element.component-BZiTFB0j.mjs → ngx-t-forms-toggle-input-element.component-DQGvEJN-.mjs} +4 -4
  96. package/fesm2022/{ngx-t-forms-toggle-input-element.component-BZiTFB0j.mjs.map → ngx-t-forms-toggle-input-element.component-DQGvEJN-.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-EM7RSWIz.mjs +574 -0
  100. package/fesm2022/ngx-t-forms-validators-config.component-EM7RSWIz.mjs.map +1 -0
  101. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-DD6Fhx06.mjs → ngx-t-forms-workflow-adjudication.component-C1Em-g9e.mjs} +17 -17
  102. package/fesm2022/ngx-t-forms-workflow-adjudication.component-C1Em-g9e.mjs.map +1 -0
  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 +14 -2
  109. package/fesm2022/ngx-t-forms-calculated-field-rules.component-B8Do3h4B.mjs +0 -643
  110. package/fesm2022/ngx-t-forms-calculated-field-rules.component-B8Do3h4B.mjs.map +0 -1
  111. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-L1kPy15K.mjs.map +0 -1
  112. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-CU6Cp-oK.mjs.map +0 -1
  113. package/fesm2022/ngx-t-forms-data-source-picker.component-r7OGAsxo.mjs +0 -261
  114. package/fesm2022/ngx-t-forms-data-source-picker.component-r7OGAsxo.mjs.map +0 -1
  115. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-B8V7IpoK.mjs +0 -156
  116. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-B8V7IpoK.mjs.map +0 -1
  117. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-hKJqVYUY.mjs +0 -373
  118. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-hKJqVYUY.mjs.map +0 -1
  119. package/fesm2022/ngx-t-forms-document-picker.component-f-hz6Vef.mjs +0 -704
  120. package/fesm2022/ngx-t-forms-document-picker.component-f-hz6Vef.mjs.map +0 -1
  121. package/fesm2022/ngx-t-forms-editor-input-element.component-D38U94oj.mjs +0 -294
  122. package/fesm2022/ngx-t-forms-editor-input-element.component-D38U94oj.mjs.map +0 -1
  123. package/fesm2022/ngx-t-forms-editor-js-input.component-D_Jq7sfY.mjs +0 -240
  124. package/fesm2022/ngx-t-forms-editor-js-input.component-D_Jq7sfY.mjs.map +0 -1
  125. package/fesm2022/ngx-t-forms-form-input-selector.component-CUwK3DqG.mjs +0 -86
  126. package/fesm2022/ngx-t-forms-form-input-selector.component-CUwK3DqG.mjs.map +0 -1
  127. package/fesm2022/ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs +0 -179
  128. package/fesm2022/ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs.map +0 -1
  129. package/fesm2022/ngx-t-forms-index-CPNvE4PP.mjs.map +0 -1
  130. package/fesm2022/ngx-t-forms-input-editor.component-BWoKhlI3.mjs +0 -190
  131. package/fesm2022/ngx-t-forms-input-editor.component-BWoKhlI3.mjs.map +0 -1
  132. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-Cu-KiAeY.mjs +0 -66
  133. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-Cu-KiAeY.mjs.map +0 -1
  134. package/fesm2022/ngx-t-forms-mat-slider-editor.component-CTSBrM-j.mjs.map +0 -1
  135. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-CcYiwx-8.mjs.map +0 -1
  136. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-BT-dM_5C.mjs +0 -447
  137. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-BT-dM_5C.mjs.map +0 -1
  138. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-DXAh2Mbm.mjs +0 -905
  139. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-DXAh2Mbm.mjs.map +0 -1
  140. package/fesm2022/ngx-t-forms-ngx-t-forms-DQ_h-jPF.mjs.map +0 -1
  141. package/fesm2022/ngx-t-forms-payload-template-editor.component-CAXdFu4E.mjs +0 -203
  142. package/fesm2022/ngx-t-forms-payload-template-editor.component-CAXdFu4E.mjs.map +0 -1
  143. package/fesm2022/ngx-t-forms-pipeline-generator.component-BJQ-KnmU.mjs +0 -748
  144. package/fesm2022/ngx-t-forms-pipeline-generator.component-BJQ-KnmU.mjs.map +0 -1
  145. package/fesm2022/ngx-t-forms-record-list-manager.component-BoD3S_7u.mjs +0 -358
  146. package/fesm2022/ngx-t-forms-record-list-manager.component-BoD3S_7u.mjs.map +0 -1
  147. package/fesm2022/ngx-t-forms-required-inputs.component-C-E3fQu6.mjs +0 -272
  148. package/fesm2022/ngx-t-forms-required-inputs.component-C-E3fQu6.mjs.map +0 -1
  149. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-D3sa7sNg.mjs.map +0 -1
  150. package/fesm2022/ngx-t-forms-search-field.component-B2ZO7lqO.mjs +0 -38
  151. package/fesm2022/ngx-t-forms-search-field.component-B2ZO7lqO.mjs.map +0 -1
  152. package/fesm2022/ngx-t-forms-selection-options-editor.component-Coj9gnrq.mjs +0 -169
  153. package/fesm2022/ngx-t-forms-selection-options-editor.component-Coj9gnrq.mjs.map +0 -1
  154. package/fesm2022/ngx-t-forms-t-workflow-picker.component-DqFMP1rZ.mjs +0 -204
  155. package/fesm2022/ngx-t-forms-t-workflow-picker.component-DqFMP1rZ.mjs.map +0 -1
  156. package/fesm2022/ngx-t-forms-validators-config.component-B3K9nLxx.mjs +0 -574
  157. package/fesm2022/ngx-t-forms-validators-config.component-B3K9nLxx.mjs.map +0 -1
  158. package/fesm2022/ngx-t-forms-workflow-adjudication.component-DD6Fhx06.mjs.map +0 -1
@@ -0,0 +1,417 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, ElementRef, input, output, signal, computed, viewChild, PLATFORM_ID, Input, ChangeDetectionStrategy, Component } 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-tQEbZK_e.mjs';
15
+ import { E as EditorFullScreenHost, a as EditorFullScreenToggleComponent, b as EditorJsInputComponent } from './ngx-t-forms-editor-js-input.component-C1dI_7rU.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 customInputConfig = {
156
+ controlType: 'lib-quill-input',
157
+ nextId: 0
158
+ };
159
+ /**
160
+ * Quill ("snow" theme) rich-text editor wired into Angular Material's form-field as a
161
+ * custom `MatFormFieldControl`. The full Quill setup — toolbar, formats, history — lives in
162
+ * `quill.config.ts`; this component owns lifecycle, SSR gating and value round-tripping.
163
+ */
164
+ class QuillInputComponent extends BaseCustomInput {
165
+ /** Mirrors the CVA's disabled state into the signal graph so the template can react to it. */
166
+ #controlDisabled;
167
+ #platformId;
168
+ #document;
169
+ #changeHandler;
170
+ #fullScreenHost;
171
+ /** Guards against overlapping pop-out transitions (see `#toggleFullScreen`). */
172
+ #toggling;
173
+ constructor() {
174
+ super(inject(NgControl, { optional: true, self: true }), inject(ElementRef), customInputConfig);
175
+ this.inputConfig = input.required(...(ngDevMode ? [{ debugName: "inputConfig" }] : /* istanbul ignore next */ []));
176
+ this.valueChanged = output();
177
+ /** Whether the editor is currently popped out to fill the screen. */
178
+ this.fullScreen = signal(false, ...(ngDevMode ? [{ debugName: "fullScreen" }] : /* istanbul ignore next */ []));
179
+ /** Mirrors the CVA's disabled state into the signal graph so the template can react to it. */
180
+ this.#controlDisabled = signal(false, ...(ngDevMode ? [{ debugName: "#controlDisabled" }] : /* istanbul ignore next */ []));
181
+ /**
182
+ * Read-only when either the column config or the reactive-form control says so. Drives both
183
+ * Quill's own editable state and hiding the formatting toolbar, which is dead weight when
184
+ * nothing can be edited.
185
+ */
186
+ this.readOnly = computed(() => {
187
+ const config = this.inputConfig();
188
+ return this.#controlDisabled() || config.readonly || config.disabled || false;
189
+ }, ...(ngDevMode ? [{ debugName: "readOnly" }] : /* istanbul ignore next */ []));
190
+ /**
191
+ * Height the in-flow wrapper holds onto while the editor is popped out. Set from the editor's
192
+ * measured height on the way in, cleared on the way out.
193
+ */
194
+ this.reservedHeight = signal(null, ...(ngDevMode ? [{ debugName: "reservedHeight" }] : /* istanbul ignore next */ []));
195
+ this.editorHost = viewChild.required('editorHost');
196
+ /**
197
+ * The bordered surface Quill fills — toolbar included. This is what gets promoted to the
198
+ * browser's top layer. (`viewChild` cannot sit on an ES-private field — NG1053.)
199
+ */
200
+ this.quillHost = viewChild.required('quillHost');
201
+ this.#platformId = inject(PLATFORM_ID);
202
+ this.#document = inject(DOCUMENT);
203
+ /** Guards against overlapping pop-out transitions (see `#toggleFullScreen`). */
204
+ this.#toggling = false;
205
+ this._value = undefined;
206
+ }
207
+ get empty() {
208
+ const n = this.value;
209
+ return n === null || n === undefined;
210
+ }
211
+ get shouldLabelFloat() {
212
+ return true;
213
+ }
214
+ set value(value) {
215
+ if (!_isEqual(this._value, value)) {
216
+ this._value = value;
217
+ this.onChange(value);
218
+ this.stateChanges.next();
219
+ }
220
+ }
221
+ get value() {
222
+ return this._value;
223
+ }
224
+ async ngAfterViewInit() {
225
+ if (!isPlatformBrowser(this.#platformId))
226
+ return;
227
+ // Browser-only dynamic load — see the Trap 16 comment at the top of this file. The
228
+ // CSS import injects Quill's global theme styles (Quill's runtime DOM is not view-scoped).
229
+ const [{ default: Quill, Delta }] = await Promise.all([
230
+ import('quill'),
231
+ import('quill/dist/quill.snow.css')
232
+ ]);
233
+ this.#fullScreenHost = new EditorFullScreenHost(this.#document, () => this.#setFullScreen(false));
234
+ const config = this.inputConfig();
235
+ this.editor = new Quill(this.editorHost().nativeElement, buildQuillOptions({
236
+ readOnly: this.readOnly(),
237
+ placeholder: config.placeholder
238
+ }));
239
+ const initial = this.value;
240
+ if (initial?.ops?.length) {
241
+ this.editor.setContents(new Delta(initial.ops), 'silent');
242
+ }
243
+ // A `setDisabledState` that arrived before the editor existed is applied here.
244
+ this.#applyReadOnly();
245
+ this.#decorateToolbar();
246
+ this.#changeHandler = () => this.contentChangedSaveValue();
247
+ this.editor.on('text-change', this.#changeHandler);
248
+ }
249
+ /**
250
+ * Quill ships no icons for custom buttons and no tooltips for any button. Inject themeable
251
+ * SVG icons (their `ql-stroke` paths inherit the toolbar colour) and `title` tooltips so the
252
+ * toolbar reads clearly in both light and dark mode.
253
+ */
254
+ #decorateToolbar() {
255
+ const root = this._elementRef.nativeElement;
256
+ for (const control of QUILL_TABLE_CONTROLS) {
257
+ const button = root.querySelector(`.ql-${control.format}`);
258
+ if (!button)
259
+ continue;
260
+ button.innerHTML = control.icon;
261
+ button.setAttribute('title', control.title);
262
+ }
263
+ for (const [selector, title] of Object.entries(QUILL_BUILTIN_TITLES)) {
264
+ root.querySelectorAll(selector).forEach(el => el.setAttribute('title', title));
265
+ }
266
+ }
267
+ /**
268
+ * Keeps Quill's own read-only state in step with the control's. The pop-out re-enables pointer
269
+ * events on the popped-out surface (Material kills them field-wide when the control is
270
+ * disabled), so this is what actually keeps a disabled field uneditable — the CSS no longer
271
+ * does it.
272
+ */
273
+ setDisabledState(isDisabled) {
274
+ super.setDisabledState(isDisabled);
275
+ this.#controlDisabled.set(isDisabled);
276
+ this.#applyReadOnly();
277
+ }
278
+ /** Pushes {@link readOnly} onto the Quill instance, which is not reactive. */
279
+ #applyReadOnly() {
280
+ this.editor?.enable(!this.readOnly());
281
+ }
282
+ /** Toggles the pop-out from the floating button. */
283
+ toggleFullScreen() {
284
+ void this.#toggleFullScreen();
285
+ }
286
+ /**
287
+ * Pops the editor out to fill the screen, or restores it. Wired to the toolbar button, so it
288
+ * always runs inside the click gesture the Fullscreen API requires — everything up to the
289
+ * promotion is synchronous for that reason.
290
+ */
291
+ async #toggleFullScreen() {
292
+ const fullScreenHost = this.#fullScreenHost;
293
+ // Both transitions settle asynchronously; ignore clicks that land mid-flight rather than
294
+ // letting a second `requestFullscreen()` race the first.
295
+ if (!fullScreenHost || this.#toggling)
296
+ return;
297
+ this.#toggling = true;
298
+ // Promotion re-lays the editor out, which drops the caret; put it back afterwards.
299
+ // `getSelection()` without an argument reads the range without stealing focus.
300
+ const selection = this.editor?.getSelection() ?? null;
301
+ try {
302
+ if (this.fullScreen()) {
303
+ await fullScreenHost.exit();
304
+ }
305
+ else {
306
+ const element = this.quillHost().nativeElement;
307
+ this.reservedHeight.set(element.offsetHeight);
308
+ await fullScreenHost.enter(element);
309
+ }
310
+ }
311
+ finally {
312
+ // `enter()` degrades rather than throwing, but `exit()` can reject if the browser refuses
313
+ // to leave full screen. Either way the controller has already settled its own state, so
314
+ // read it back instead of assuming the toggle succeeded.
315
+ this.#setFullScreen(fullScreenHost.active);
316
+ this.#restoreSelection(selection);
317
+ this.#toggling = false;
318
+ }
319
+ }
320
+ /**
321
+ * Escape leaves the pop-out. Native full screen is torn down by the browser itself (picked up
322
+ * through `fullscreenchange`); this covers the popover and fixed fallbacks. The event is
323
+ * stopped so Escape closes the editor rather than an enclosing dialog.
324
+ */
325
+ onEscape(event) {
326
+ if (!this.fullScreen())
327
+ return;
328
+ event.preventDefault();
329
+ event.stopPropagation();
330
+ void this.#toggleFullScreen();
331
+ }
332
+ /**
333
+ * Single funnel for pop-out state, so the signal and the reserved space always agree —
334
+ * including when the browser closed full screen on its own.
335
+ */
336
+ #setFullScreen(active) {
337
+ this.fullScreen.set(active);
338
+ if (!active)
339
+ this.reservedHeight.set(null);
340
+ }
341
+ /** Returns the caret to where it was before the pop-out re-laid the editor out. */
342
+ #restoreSelection(selection) {
343
+ const editor = this.editor;
344
+ if (!editor)
345
+ return;
346
+ if (selection)
347
+ editor.setSelection(selection, 'silent');
348
+ else
349
+ editor.focus();
350
+ }
351
+ contentChangedSaveValue() {
352
+ if (!this.editor)
353
+ return;
354
+ const ops = this.editor.getContents().ops;
355
+ const value = isEmptyQuillDocument(ops) ? undefined : { ops };
356
+ this.value = value;
357
+ this.onChange(value);
358
+ this.valueChanged.emit(value);
359
+ }
360
+ ngOnDestroy() {
361
+ this.#fullScreenHost?.destroy();
362
+ this.#fullScreenHost = undefined;
363
+ if (this.editor && this.#changeHandler) {
364
+ this.editor.off('text-change', this.#changeHandler);
365
+ }
366
+ this.editor = undefined;
367
+ // Tear the editor down first, then let the base complete `stateChanges` / `destroy$` and
368
+ // clear the temporary-error timer — none of which happened while this override skipped it.
369
+ super.ngOnDestroy();
370
+ }
371
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: QuillInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
372
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.12", type: QuillInputComponent, isStandalone: true, selector: "lib-quill-input", inputs: { inputConfig: { classPropertyName: "inputConfig", publicName: "inputConfig", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { valueChanged: "valueChanged" }, host: { listeners: { "keydown.escape": "onEscape($event)" }, properties: { "class.floating": "shouldLabelFloat", "id": "id" } }, providers: [{ provide: MatFormFieldControl, useExisting: QuillInputComponent }], viewQueries: [{ propertyName: "editorHost", first: true, predicate: ["editorHost"], descendants: true, isSignal: true }, { propertyName: "quillHost", first: true, predicate: ["quillHost"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "\r\n<!-- `.quill-shell` stays in the document flow and holds the editor's footprint while\r\n `.quill-host` is promoted to the browser's top layer for full screen. Without it the\r\n surrounding form-field collapses by the editor's height, and the page scroll position\r\n jumps when full screen is left. -->\r\n<div class=\"quill-shell\" [style.height.px]=\"reservedHeight()\">\r\n <div class=\"quill-host\" #quillHost [class.is-readonly]=\"readOnly()\">\r\n <div #editorHost></div>\r\n\r\n <!-- Floats over the editing surface rather than living in the toolbar, so it survives the\r\n toolbar being hidden in read-only mode. -->\r\n <lib-editor-full-screen-toggle\r\n [active]=\"fullScreen()\"\r\n (toggled)=\"toggleFullScreen()\"\r\n ></lib-editor-full-screen-toggle>\r\n </div>\r\n</div>\r\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"], dependencies: [{ kind: "component", type: EditorFullScreenToggleComponent, selector: "lib-editor-full-screen-toggle", inputs: ["active"], outputs: ["toggled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
373
+ }
374
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: QuillInputComponent, decorators: [{
375
+ type: Component,
376
+ args: [{ selector: 'lib-quill-input', imports: [EditorFullScreenToggleComponent], host: {
377
+ '[class.floating]': 'shouldLabelFloat',
378
+ '[id]': 'id',
379
+ '(keydown.escape)': 'onEscape($event)'
380
+ }, providers: [{ provide: MatFormFieldControl, useExisting: QuillInputComponent }], changeDetection: ChangeDetectionStrategy.OnPush, template: "\r\n<!-- `.quill-shell` stays in the document flow and holds the editor's footprint while\r\n `.quill-host` is promoted to the browser's top layer for full screen. Without it the\r\n surrounding form-field collapses by the editor's height, and the page scroll position\r\n jumps when full screen is left. -->\r\n<div class=\"quill-shell\" [style.height.px]=\"reservedHeight()\">\r\n <div class=\"quill-host\" #quillHost [class.is-readonly]=\"readOnly()\">\r\n <div #editorHost></div>\r\n\r\n <!-- Floats over the editing surface rather than living in the toolbar, so it survives the\r\n toolbar being hidden in read-only mode. -->\r\n <lib-editor-full-screen-toggle\r\n [active]=\"fullScreen()\"\r\n (toggled)=\"toggleFullScreen()\"\r\n ></lib-editor-full-screen-toggle>\r\n </div>\r\n</div>\r\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"] }]
381
+ }], ctorParameters: () => [], propDecorators: { 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: [{
382
+ type: Input
383
+ }] } });
384
+
385
+ /**
386
+ * Wraps a configurable rich-text editor inside a `mat-form-field`, selecting the concrete
387
+ * editor (EditorJS or Quill) from the column's `richTextEditorLibrary`, with shared
388
+ * label / hint / error / suffix / prefix metadata from the column.
389
+ */
390
+ class EditorInputElementComponent {
391
+ constructor() {
392
+ this.inputConfig = input.required(...(ngDevMode ? [{ debugName: "inputConfig" }] : /* istanbul ignore next */ []));
393
+ this.formGroup = input.required(...(ngDevMode ? [{ debugName: "formGroup" }] : /* istanbul ignore next */ []));
394
+ this.reload = output();
395
+ /** Editor-library enum exposed for `@switch` in the template. */
396
+ this.editorType = RichTextEditorType;
397
+ this.errorMessage = computed(() => getInputErrorMessage(this.inputConfig(), this.formGroup()), ...(ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []));
398
+ }
399
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: EditorInputElementComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
400
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: EditorInputElementComponent, isStandalone: true, selector: "lib-editor-input-element", inputs: { inputConfig: { classPropertyName: "inputConfig", publicName: "inputConfig", isSignal: true, isRequired: true, transformFunction: null }, formGroup: { classPropertyName: "formGroup", publicName: "formGroup", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { reload: "reload" }, ngImport: i0, template: "<form [formGroup]=\"formGroup()\">\r\n @if (inputConfig(); as inputConfig) {\r\n <mat-form-field [appearance]=\"inputConfig.appearance || 'fill'\" subscriptSizing=\"dynamic\">\r\n <mat-label>\r\n {{ inputConfig.label }}\r\n <lib-t-form-input-status [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\r\n </mat-label>\r\n\r\n @switch (inputConfig.richTextEditorLibrary) {\r\n @case (editorType.Quill) {\r\n <lib-quill-input\r\n [inputConfig]=\"inputConfig\"\r\n [formControlName]=\"inputConfig.id\"\r\n [required]=\"inputConfig.required\"\r\n ></lib-quill-input>\r\n }\r\n @case (editorType.EditorJS) {\r\n <lib-editor-js-input\r\n [inputConfig]=\"inputConfig\"\r\n [formControlName]=\"inputConfig.id\"\r\n [required]=\"inputConfig.required\"\r\n ></lib-editor-js-input>\r\n }\r\n }\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.prefixIcon) {\r\n <mat-icon matPrefix>{{ inputConfig.prefixIcon }}</mat-icon>\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.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"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i2.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i2.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i2.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: TFormInputStatusComponent, selector: "lib-t-form-input-status", inputs: ["inputConfig"] }, { kind: "component", type: EditorJsInputComponent, selector: "lib-editor-js-input", inputs: ["inputConfig", "value"], outputs: ["valueChanged"] }, { kind: "component", type: QuillInputComponent, selector: "lib-quill-input", inputs: ["inputConfig", "value"], outputs: ["valueChanged"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
401
+ }
402
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: EditorInputElementComponent, decorators: [{
403
+ type: Component,
404
+ args: [{ selector: 'lib-editor-input-element', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
405
+ ReactiveFormsModule,
406
+ MatFormFieldModule,
407
+ MatIconModule,
408
+ MatButtonModule,
409
+ MatTooltipModule,
410
+ TFormInputStatusComponent,
411
+ EditorJsInputComponent,
412
+ QuillInputComponent,
413
+ ], template: "<form [formGroup]=\"formGroup()\">\r\n @if (inputConfig(); as inputConfig) {\r\n <mat-form-field [appearance]=\"inputConfig.appearance || 'fill'\" subscriptSizing=\"dynamic\">\r\n <mat-label>\r\n {{ inputConfig.label }}\r\n <lib-t-form-input-status [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\r\n </mat-label>\r\n\r\n @switch (inputConfig.richTextEditorLibrary) {\r\n @case (editorType.Quill) {\r\n <lib-quill-input\r\n [inputConfig]=\"inputConfig\"\r\n [formControlName]=\"inputConfig.id\"\r\n [required]=\"inputConfig.required\"\r\n ></lib-quill-input>\r\n }\r\n @case (editorType.EditorJS) {\r\n <lib-editor-js-input\r\n [inputConfig]=\"inputConfig\"\r\n [formControlName]=\"inputConfig.id\"\r\n [required]=\"inputConfig.required\"\r\n ></lib-editor-js-input>\r\n }\r\n }\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.prefixIcon) {\r\n <mat-icon matPrefix>{{ inputConfig.prefixIcon }}</mat-icon>\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.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"] }]
414
+ }], 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"] }] } });
415
+
416
+ export { EditorInputElementComponent };
417
+ //# sourceMappingURL=ngx-t-forms-editor-input-element.component-CIELjDty.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-t-forms-editor-input-element.component-CIELjDty.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/editor-input-element/core/quill-input/quill.config.ts","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/editor-input-element/core/quill-input/quill-input.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/editor-input-element/core/quill-input/quill-input.component.html","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/editor-input-element/editor-input-element.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/editor-input-element/editor-input-element.component.html"],"sourcesContent":["import type Quill from 'quill';\r\nimport type { Op, QuillOptions } from 'quill';\r\n\r\n/**\r\n * Serialized Quill document — the Delta op-list persisted as the control value.\r\n *\r\n * Stored as a plain object (NOT a live `Delta` instance) so it round-trips through\r\n * reactive-form state and the library's structural `_isEqual` check cleanly. `_isEqual`\r\n * rejects values whose constructors differ, so a `Delta` instance would never compare\r\n * equal to the plain object rehydrated from saved form data.\r\n */\r\nexport interface QuillContent {\r\n ops: Op[];\r\n}\r\n\r\n/** Inputs the host component feeds into the Quill setup. */\r\nexport interface QuillEditorPayload {\r\n /** Render the editor in non-editable mode. */\r\n readOnly: boolean;\r\n /** Placeholder shown while the document is empty. */\r\n placeholder?: string;\r\n}\r\n\r\n/**\r\n * Narrow surface of Quill's built-in table module (`getModule('table')`), typed so the\r\n * host component can drive table operations without leaking `any`.\r\n */\r\nexport interface QuillTableModule {\r\n insertTable(rows: number, columns: number): void;\r\n insertRowBelow(): void;\r\n insertColumnRight(): void;\r\n deleteRow(): void;\r\n deleteColumn(): void;\r\n deleteTable(): void;\r\n}\r\n\r\n/** A custom toolbar control wired to a native Quill table operation. */\r\nexport interface QuillTableControl {\r\n /** Toolbar format key — Quill renders it as a `button.ql-<format>`. */\r\n format: string;\r\n /** Tooltip surfaced via the button's `title` attribute. */\r\n title: string;\r\n /** Inline SVG markup. Paths use `ql-stroke` so they inherit the themed icon colour. */\r\n icon: string;\r\n /** Operation run against the native table module when the button is pressed. */\r\n run: (table: QuillTableModule) => void;\r\n}\r\n\r\nconst svg = (body: string): string => `<svg viewBox=\"0 0 18 18\">${body}</svg>`;\r\n\r\n/**\r\n * Word-like table toolkit backed by Quill's native table module. Each control degrades to a\r\n * no-op when the caret is outside a table, so the buttons are always safe to press.\r\n */\r\nexport const QUILL_TABLE_CONTROLS: readonly QuillTableControl[] = [\r\n {\r\n format: 'table-insert',\r\n title: 'Insert table (3×3)',\r\n 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>'),\r\n run: table => table.insertTable(3, 3),\r\n },\r\n {\r\n format: 'table-row',\r\n title: 'Insert row below',\r\n 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>'),\r\n run: table => table.insertRowBelow(),\r\n },\r\n {\r\n format: 'table-column',\r\n title: 'Insert column right',\r\n 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>'),\r\n run: table => table.insertColumnRight(),\r\n },\r\n {\r\n format: 'table-delete-row',\r\n title: 'Delete row',\r\n 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>'),\r\n run: table => table.deleteRow(),\r\n },\r\n {\r\n format: 'table-delete-column',\r\n title: 'Delete column',\r\n 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>'),\r\n run: table => table.deleteColumn(),\r\n },\r\n {\r\n format: 'table-delete',\r\n title: 'Delete table',\r\n 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>'),\r\n run: table => table.deleteTable(),\r\n },\r\n];\r\n\r\n/**\r\n * Human-readable tooltips for the built-in controls, keyed by the button's CSS selector.\r\n * Quill ships no titles of its own, so these make the toolbar self-explanatory.\r\n */\r\nexport const QUILL_BUILTIN_TITLES: Readonly<Record<string, string>> = {\r\n '.ql-bold': 'Bold',\r\n '.ql-italic': 'Italic',\r\n '.ql-underline': 'Underline',\r\n '.ql-strike': 'Strikethrough',\r\n '.ql-blockquote': 'Quote',\r\n '.ql-code-block': 'Code block',\r\n '.ql-link': 'Insert link',\r\n '.ql-image': 'Insert image',\r\n '.ql-video': 'Embed video',\r\n '.ql-clean': 'Clear formatting',\r\n '.ql-list[value=\"ordered\"]': 'Numbered list',\r\n '.ql-list[value=\"bullet\"]': 'Bulleted list',\r\n '.ql-list[value=\"check\"]': 'Checklist',\r\n '.ql-script[value=\"sub\"]': 'Subscript',\r\n '.ql-script[value=\"super\"]': 'Superscript',\r\n '.ql-indent[value=\"-1\"]': 'Decrease indent',\r\n '.ql-indent[value=\"+1\"]': 'Increase indent',\r\n '.ql-direction[value=\"rtl\"]': 'Right-to-left',\r\n '.ql-color': 'Text colour',\r\n '.ql-background': 'Highlight colour',\r\n '.ql-align': 'Alignment',\r\n '.ql-header': 'Heading',\r\n '.ql-font': 'Font',\r\n '.ql-size': 'Font size',\r\n};\r\n\r\n/**\r\n * Comprehensive, logically grouped \"snow\" toolbar — headings/fonts, inline styling, colour,\r\n * scripts, lists, indentation/alignment, blocks, media and a native table toolkit.\r\n */\r\nconst TOOLBAR_CONTAINER: readonly unknown[] = [\r\n [{ header: [1, 2, 3, 4, 5, 6, false] }, { font: [] }, { size: ['small', false, 'large', 'huge'] }],\r\n ['bold', 'italic', 'underline', 'strike'],\r\n [{ color: [] }, { background: [] }],\r\n [{ script: 'sub' }, { script: 'super' }],\r\n [{ list: 'ordered' }, { list: 'bullet' }, { list: 'check' }],\r\n [{ indent: '-1' }, { indent: '+1' }, { align: [] }, { direction: 'rtl' }],\r\n ['blockquote', 'code-block'],\r\n ['link', 'image', 'video'],\r\n QUILL_TABLE_CONTROLS.map(control => control.format),\r\n ['clean']\r\n];\r\n\r\n/** The `this` context Quill binds when it invokes a toolbar handler. */\r\ninterface ToolbarHandlerContext {\r\n quill: Quill;\r\n}\r\n\r\n/**\r\n * Builds the toolbar handler map for the custom table buttons.\r\n *\r\n * These MUST be supplied in the toolbar config (not added later via `addHandler`): Quill's\r\n * toolbar skips attaching a click listener to any button whose format is neither a registered\r\n * blot nor already present in `handlers` at construction time. A late `addHandler` sets the\r\n * handler but never re-attaches the listener, so the button stays inert.\r\n */\r\nconst buildTableHandlers = (): Record<string, (this: ToolbarHandlerContext) => void> => {\r\n const handlers: Record<string, (this: ToolbarHandlerContext) => void> = {};\r\n for (const control of QUILL_TABLE_CONTROLS) {\r\n handlers[control.format] = function tableHandler(this: ToolbarHandlerContext): void {\r\n const table = this.quill.getModule('table') as QuillTableModule;\r\n // Native table ops bail when there is no selection; force focus + a range first.\r\n this.quill.getSelection(true);\r\n control.run(table);\r\n };\r\n }\r\n return handlers;\r\n};\r\n\r\n/**\r\n * Builds a ready-to-use `QuillOptions` for a \"snow\" editor with the native table module\r\n * enabled and the custom table-button handlers wired into the toolbar config.\r\n *\r\n * Browser-only by construction: callers MUST instantiate Quill behind an\r\n * `isPlatformBrowser(...)` guard because Quill touches `document` at construction time.\r\n */\r\nexport const buildQuillOptions = (payload: QuillEditorPayload): QuillOptions => ({\r\n theme: 'snow',\r\n readOnly: payload.readOnly,\r\n placeholder: payload.placeholder ?? \"Let's write something amazing...\",\r\n modules: {\r\n toolbar: {\r\n container: TOOLBAR_CONTAINER,\r\n handlers: buildTableHandlers()\r\n },\r\n table: true,\r\n history: { delay: 1000, maxStack: 100, userOnly: true },\r\n clipboard: { matchVisual: false }\r\n }\r\n});\r\n\r\n/**\r\n * Quill's empty document is a single trailing newline op. Treat that — and a literally\r\n * empty op-list — as \"no value\" so `required` validation behaves intuitively.\r\n */\r\nexport const isEmptyQuillDocument = (ops: Op[]): boolean =>\r\n ops.length === 0 || (ops.length === 1 && ops[0]?.insert === '\\n');\r\n","/// <reference path=\"../../../../../../../types/quill.d.ts\" />\r\nimport {\r\n AfterViewInit,\r\n ChangeDetectionStrategy,\r\n Component,\r\n ElementRef,\r\n Input,\r\n OnDestroy,\r\n PLATFORM_ID,\r\n computed,\r\n inject,\r\n input,\r\n output,\r\n signal,\r\n viewChild\r\n} from '@angular/core';\r\nimport { DOCUMENT, isPlatformBrowser } from '@angular/common';\r\nimport { NgControl } from '@angular/forms';\r\n\r\nimport { ITowerStepColumn } from 'ngx-t-forms-types';\r\n// Mirrors the EditorJS sibling (Trap 16): `quill` is a browser-only bundle that touches\r\n// `document` at construction time and crashes under bare-Node SSR. The top-level import is\r\n// type-only (zero runtime emission); the real load happens inside the SSR-gated\r\n// `ngAfterViewInit` via dynamic `import()`.\r\nimport type QuillType from 'quill';\r\nimport type { Range as QuillRange } from 'quill';\r\nimport { MatFormFieldControl } from '@angular/material/form-field';\r\n\r\nimport { BaseCustomInput, BaseCustomInputConfig } from '../../../../../../services/core/t-input-controller/functions/baseCustomInput';\r\nimport {\r\n buildQuillOptions,\r\n isEmptyQuillDocument,\r\n QUILL_BUILTIN_TITLES,\r\n QUILL_TABLE_CONTROLS,\r\n QuillContent\r\n} from './quill.config';\r\nimport { EditorFullScreenHost } from '../editor-full-screen';\r\nimport { EditorFullScreenToggleComponent } from '../editor-full-screen-toggle/editor-full-screen-toggle.component';\r\nimport { _isEqual } from '../../../../../../shared/functions/isEqual';\r\n\r\nconst customInputConfig: BaseCustomInputConfig = {\r\n controlType: 'lib-quill-input',\r\n nextId: 0\r\n};\r\n\r\n/**\r\n * Quill (\"snow\" theme) rich-text editor wired into Angular Material's form-field as a\r\n * custom `MatFormFieldControl`. The full Quill setup — toolbar, formats, history — lives in\r\n * `quill.config.ts`; this component owns lifecycle, SSR gating and value round-tripping.\r\n */\r\n@Component({\r\n selector: 'lib-quill-input',\r\n templateUrl: './quill-input.component.html',\r\n styleUrl: './quill-input.component.css',\r\n imports: [EditorFullScreenToggleComponent],\r\n host: {\r\n '[class.floating]': 'shouldLabelFloat',\r\n '[id]': 'id',\r\n '(keydown.escape)': 'onEscape($event)'\r\n },\r\n providers: [{ provide: MatFormFieldControl, useExisting: QuillInputComponent }],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class QuillInputComponent\r\n extends BaseCustomInput<QuillContent | undefined>\r\n implements AfterViewInit, OnDestroy {\r\n\r\n readonly inputConfig = input.required<ITowerStepColumn>();\r\n\r\n readonly valueChanged = output<QuillContent | undefined>();\r\n\r\n protected editor: QuillType | undefined;\r\n\r\n /** Whether the editor is currently popped out to fill the screen. */\r\n protected readonly fullScreen = signal(false);\r\n\r\n /** Mirrors the CVA's disabled state into the signal graph so the template can react to it. */\r\n readonly #controlDisabled = signal(false);\r\n\r\n /**\r\n * Read-only when either the column config or the reactive-form control says so. Drives both\r\n * Quill's own editable state and hiding the formatting toolbar, which is dead weight when\r\n * nothing can be edited.\r\n */\r\n protected readonly readOnly = computed(() => {\r\n const config = this.inputConfig();\r\n return this.#controlDisabled() || config.readonly || config.disabled || false;\r\n });\r\n\r\n /**\r\n * Height the in-flow wrapper holds onto while the editor is popped out. Set from the editor's\r\n * measured height on the way in, cleared on the way out.\r\n */\r\n protected readonly reservedHeight = signal<number | null>(null);\r\n\r\n private readonly editorHost = viewChild.required<ElementRef<HTMLElement>>('editorHost');\r\n\r\n /**\r\n * The bordered surface Quill fills — toolbar included. This is what gets promoted to the\r\n * browser's top layer. (`viewChild` cannot sit on an ES-private field — NG1053.)\r\n */\r\n private readonly quillHost = viewChild.required<ElementRef<HTMLElement>>('quillHost');\r\n\r\n readonly #platformId = inject(PLATFORM_ID);\r\n\r\n readonly #document = inject(DOCUMENT);\r\n\r\n #changeHandler: (() => void) | undefined;\r\n\r\n #fullScreenHost: EditorFullScreenHost | undefined;\r\n\r\n /** Guards against overlapping pop-out transitions (see `#toggleFullScreen`). */\r\n #toggling = false;\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\r\n override get empty(): boolean {\r\n const n = this.value;\r\n return n === null || n === undefined;\r\n }\r\n\r\n override get shouldLabelFloat(): boolean {\r\n return true;\r\n }\r\n\r\n override _value: QuillContent | undefined = undefined;\r\n\r\n @Input() override set value(value: QuillContent | undefined) {\r\n if (!_isEqual(this._value, value)) {\r\n this._value = value;\r\n this.onChange(value);\r\n this.stateChanges.next();\r\n }\r\n }\r\n\r\n override get value(): QuillContent | undefined {\r\n return this._value;\r\n }\r\n\r\n async ngAfterViewInit(): Promise<void> {\r\n if (!isPlatformBrowser(this.#platformId)) return;\r\n\r\n // Browser-only dynamic load — see the Trap 16 comment at the top of this file. The\r\n // CSS import injects Quill's global theme styles (Quill's runtime DOM is not view-scoped).\r\n const [{ default: Quill, Delta }] = await Promise.all([\r\n import('quill'),\r\n import('quill/dist/quill.snow.css')\r\n ]);\r\n\r\n this.#fullScreenHost = new EditorFullScreenHost(this.#document, () => this.#setFullScreen(false));\r\n\r\n const config = this.inputConfig();\r\n this.editor = new Quill(this.editorHost().nativeElement, buildQuillOptions({\r\n readOnly: this.readOnly(),\r\n placeholder: config.placeholder\r\n }));\r\n\r\n const initial = this.value;\r\n if (initial?.ops?.length) {\r\n this.editor.setContents(new Delta(initial.ops), 'silent');\r\n }\r\n\r\n // A `setDisabledState` that arrived before the editor existed is applied here.\r\n this.#applyReadOnly();\r\n this.#decorateToolbar();\r\n\r\n this.#changeHandler = () => this.contentChangedSaveValue();\r\n this.editor.on('text-change', this.#changeHandler);\r\n }\r\n\r\n /**\r\n * Quill ships no icons for custom buttons and no tooltips for any button. Inject themeable\r\n * SVG icons (their `ql-stroke` paths inherit the toolbar colour) and `title` tooltips so the\r\n * toolbar reads clearly in both light and dark mode.\r\n */\r\n #decorateToolbar(): void {\r\n const root = this._elementRef.nativeElement;\r\n for (const control of QUILL_TABLE_CONTROLS) {\r\n const button = root.querySelector<HTMLElement>(`.ql-${control.format}`);\r\n if (!button) continue;\r\n button.innerHTML = control.icon;\r\n button.setAttribute('title', control.title);\r\n }\r\n for (const [selector, title] of Object.entries(QUILL_BUILTIN_TITLES)) {\r\n root.querySelectorAll<HTMLElement>(selector).forEach(el => el.setAttribute('title', title));\r\n }\r\n }\r\n\r\n /**\r\n * Keeps Quill's own read-only state in step with the control's. The pop-out re-enables pointer\r\n * events on the popped-out surface (Material kills them field-wide when the control is\r\n * disabled), so this is what actually keeps a disabled field uneditable — the CSS no longer\r\n * does it.\r\n */\r\n override setDisabledState(isDisabled: boolean): void {\r\n super.setDisabledState(isDisabled);\r\n this.#controlDisabled.set(isDisabled);\r\n this.#applyReadOnly();\r\n }\r\n\r\n /** Pushes {@link readOnly} onto the Quill instance, which is not reactive. */\r\n #applyReadOnly(): void {\r\n this.editor?.enable(!this.readOnly());\r\n }\r\n\r\n /** Toggles the pop-out from the floating button. */\r\n protected toggleFullScreen(): void {\r\n void this.#toggleFullScreen();\r\n }\r\n\r\n /**\r\n * Pops the editor out to fill the screen, or restores it. Wired to the toolbar button, so it\r\n * always runs inside the click gesture the Fullscreen API requires — everything up to the\r\n * promotion is synchronous for that reason.\r\n */\r\n async #toggleFullScreen(): Promise<void> {\r\n const fullScreenHost = this.#fullScreenHost;\r\n // Both transitions settle asynchronously; ignore clicks that land mid-flight rather than\r\n // letting a second `requestFullscreen()` race the first.\r\n if (!fullScreenHost || this.#toggling) return;\r\n this.#toggling = true;\r\n\r\n // Promotion re-lays the editor out, which drops the caret; put it back afterwards.\r\n // `getSelection()` without an argument reads the range without stealing focus.\r\n const selection = this.editor?.getSelection() ?? null;\r\n\r\n try {\r\n if (this.fullScreen()) {\r\n await fullScreenHost.exit();\r\n } else {\r\n const element = this.quillHost().nativeElement;\r\n this.reservedHeight.set(element.offsetHeight);\r\n await fullScreenHost.enter(element);\r\n }\r\n } finally {\r\n // `enter()` degrades rather than throwing, but `exit()` can reject if the browser refuses\r\n // to leave full screen. Either way the controller has already settled its own state, so\r\n // read it back instead of assuming the toggle succeeded.\r\n this.#setFullScreen(fullScreenHost.active);\r\n this.#restoreSelection(selection);\r\n this.#toggling = false;\r\n }\r\n }\r\n\r\n /**\r\n * Escape leaves the pop-out. Native full screen is torn down by the browser itself (picked up\r\n * through `fullscreenchange`); this covers the popover and fixed fallbacks. The event is\r\n * stopped so Escape closes the editor rather than an enclosing dialog.\r\n */\r\n protected onEscape(event: Event): void {\r\n if (!this.fullScreen()) return;\r\n event.preventDefault();\r\n event.stopPropagation();\r\n void this.#toggleFullScreen();\r\n }\r\n\r\n /**\r\n * Single funnel for pop-out state, so the signal and the reserved space always agree —\r\n * including when the browser closed full screen on its own.\r\n */\r\n #setFullScreen(active: boolean): void {\r\n this.fullScreen.set(active);\r\n if (!active) this.reservedHeight.set(null);\r\n }\r\n\r\n /** Returns the caret to where it was before the pop-out re-laid the editor out. */\r\n #restoreSelection(selection: QuillRange | null): void {\r\n const editor = this.editor;\r\n if (!editor) return;\r\n if (selection) editor.setSelection(selection, 'silent');\r\n else editor.focus();\r\n }\r\n\r\n contentChangedSaveValue(): void {\r\n if (!this.editor) return;\r\n const ops = this.editor.getContents().ops;\r\n const value: QuillContent | undefined = isEmptyQuillDocument(ops) ? undefined : { ops };\r\n this.value = value;\r\n this.onChange(value);\r\n this.valueChanged.emit(value);\r\n }\r\n\r\n override ngOnDestroy(): void {\r\n this.#fullScreenHost?.destroy();\r\n this.#fullScreenHost = undefined;\r\n if (this.editor && this.#changeHandler) {\r\n this.editor.off('text-change', this.#changeHandler);\r\n }\r\n this.editor = undefined;\r\n // Tear the editor down first, then let the base complete `stateChanges` / `destroy$` and\r\n // clear the temporary-error timer — none of which happened while this override skipped it.\r\n super.ngOnDestroy();\r\n }\r\n}\r\n","\r\n<!-- `.quill-shell` stays in the document flow and holds the editor's footprint while\r\n `.quill-host` is promoted to the browser's top layer for full screen. Without it the\r\n surrounding form-field collapses by the editor's height, and the page scroll position\r\n jumps when full screen is left. -->\r\n<div class=\"quill-shell\" [style.height.px]=\"reservedHeight()\">\r\n <div class=\"quill-host\" #quillHost [class.is-readonly]=\"readOnly()\">\r\n <div #editorHost></div>\r\n\r\n <!-- Floats over the editing surface rather than living in the toolbar, so it survives the\r\n toolbar being hidden in read-only mode. -->\r\n <lib-editor-full-screen-toggle\r\n [active]=\"fullScreen()\"\r\n (toggled)=\"toggleFullScreen()\"\r\n ></lib-editor-full-screen-toggle>\r\n </div>\r\n</div>\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 { RichTextEditorType } from 'ngx-t-forms-types';\r\nimport { TFormInputStatusComponent } from '../../../t-form-input-status/t-form-input-status.component';\r\nimport { EditorJsInputComponent } from './core/editor-js-input/editor-js-input.component';\r\nimport { QuillInputComponent } from './core/quill-input/quill-input.component';\r\nimport { getInputErrorMessage } from '../../../../services/core/t-input-controller/functions/inputErrorMessage';\r\n\r\n/**\r\n * Wraps a configurable rich-text editor inside a `mat-form-field`, selecting the concrete\r\n * editor (EditorJS or Quill) from the column's `richTextEditorLibrary`, with shared\r\n * label / hint / error / suffix / prefix metadata from the column.\r\n */\r\n@Component({\r\n selector: 'lib-editor-input-element',\r\n templateUrl: './editor-input-element.component.html',\r\n styleUrl: './editor-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 EditorJsInputComponent,\r\n QuillInputComponent,\r\n ],\r\n})\r\nexport class EditorInputElementComponent {\r\n readonly inputConfig = input.required<ITowerStepColumn>();\r\n readonly formGroup = input.required<FormGroup>();\r\n readonly reload = output<void>();\r\n\r\n /** Editor-library enum exposed for `@switch` in the template. */\r\n protected readonly editorType = RichTextEditorType;\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 [appearance]=\"inputConfig.appearance || 'fill'\" subscriptSizing=\"dynamic\">\r\n <mat-label>\r\n {{ inputConfig.label }}\r\n <lib-t-form-input-status [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\r\n </mat-label>\r\n\r\n @switch (inputConfig.richTextEditorLibrary) {\r\n @case (editorType.Quill) {\r\n <lib-quill-input\r\n [inputConfig]=\"inputConfig\"\r\n [formControlName]=\"inputConfig.id\"\r\n [required]=\"inputConfig.required\"\r\n ></lib-quill-input>\r\n }\r\n @case (editorType.EditorJS) {\r\n <lib-editor-js-input\r\n [inputConfig]=\"inputConfig\"\r\n [formControlName]=\"inputConfig.id\"\r\n [required]=\"inputConfig.required\"\r\n ></lib-editor-js-input>\r\n }\r\n }\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.prefixIcon) {\r\n <mat-icon matPrefix>{{ inputConfig.prefixIcon }}</mat-icon>\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.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":[],"mappings":";;;;;;;;;;;;;;;;;AAgDA,MAAM,GAAG,GAAG,CAAC,IAAY,KAAa,CAAA,yBAAA,EAA4B,IAAI,CAAA,MAAA,CAAQ;AAE9E;;;AAGG;AACI,MAAM,oBAAoB,GAAiC;AAChE,IAAA;AACE,QAAA,MAAM,EAAE,cAAc;AACtB,QAAA,KAAK,EAAE,oBAAoB;AAC3B,QAAA,IAAI,EAAE,GAAG,CAAC,mVAAmV,CAAC;AAC9V,QAAA,GAAG,EAAE,KAAK,IAAI,KAAK,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC;AACtC,KAAA;AACD,IAAA;AACE,QAAA,MAAM,EAAE,WAAW;AACnB,QAAA,KAAK,EAAE,kBAAkB;AACzB,QAAA,IAAI,EAAE,GAAG,CAAC,iNAAiN,CAAC;QAC5N,GAAG,EAAE,KAAK,IAAI,KAAK,CAAC,cAAc,EAAE;AACrC,KAAA;AACD,IAAA;AACE,QAAA,MAAM,EAAE,cAAc;AACtB,QAAA,KAAK,EAAE,qBAAqB;AAC5B,QAAA,IAAI,EAAE,GAAG,CAAC,iNAAiN,CAAC;QAC5N,GAAG,EAAE,KAAK,IAAI,KAAK,CAAC,iBAAiB,EAAE;AACxC,KAAA;AACD,IAAA;AACE,QAAA,MAAM,EAAE,kBAAkB;AAC1B,QAAA,KAAK,EAAE,YAAY;AACnB,QAAA,IAAI,EAAE,GA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