ngx-t-forms 2.0.37 → 3.0.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.
- package/fesm2022/ngx-t-forms-auto-complete-input-element.component-7g5cpVfB.mjs +261 -0
- package/fesm2022/ngx-t-forms-auto-complete-input-element.component-7g5cpVfB.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-D_l5sbNh.mjs → ngx-t-forms-auto-complete-input-element.component-DFApar1W.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-D_l5sbNh.mjs.map → ngx-t-forms-auto-complete-input-element.component-DFApar1W.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-basic-input-input-element.component-BhMw2vpl.mjs +225 -0
- package/fesm2022/ngx-t-forms-basic-input-input-element.component-BhMw2vpl.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-basic-input-input-element.component-fJIsRm0v.mjs → ngx-t-forms-basic-input-input-element.component-ChCeve-w.mjs} +6 -6
- package/fesm2022/{ngx-t-forms-basic-input-input-element.component-fJIsRm0v.mjs.map → ngx-t-forms-basic-input-input-element.component-ChCeve-w.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-BmWnrfWN.mjs +1011 -0
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-BmWnrfWN.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-calculated-field-rules.component-B8Do3h4B.mjs → ngx-t-forms-calculated-field-rules.component-CJMwqoHL.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-calculated-field-rules.component-B8Do3h4B.mjs.map → ngx-t-forms-calculated-field-rules.component-CJMwqoHL.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-ALkkDotT.mjs +136 -0
- package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-ALkkDotT.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-L1kPy15K.mjs → ngx-t-forms-chip-options-creator-editor.component-B54kOArR.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-L1kPy15K.mjs.map → ngx-t-forms-chip-options-creator-editor.component-B54kOArR.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-CU6Cp-oK.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-CAZv0_uR.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-CU6Cp-oK.mjs.map → ngx-t-forms-config-mscoa-additional-inputs.component-CAZv0_uR.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dap7QkKD.mjs +253 -0
- package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dap7QkKD.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-data-source-picker.component-r7OGAsxo.mjs → ngx-t-forms-data-source-picker.component-8G28L1Cg.mjs} +8 -8
- package/fesm2022/{ngx-t-forms-data-source-picker.component-r7OGAsxo.mjs.map → ngx-t-forms-data-source-picker.component-8G28L1Cg.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-data-source-picker.component-CJ1C1Znp.mjs +419 -0
- package/fesm2022/ngx-t-forms-data-source-picker.component-CJ1C1Znp.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-date-picker-input-element.component-DjYq63Iv.mjs +231 -0
- package/fesm2022/ngx-t-forms-date-picker-input-element.component-DjYq63Iv.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-date-picker-input-element.component-DsjcLQ5A.mjs → ngx-t-forms-date-picker-input-element.component-NM2cFs3P.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-date-picker-input-element.component-DsjcLQ5A.mjs.map → ngx-t-forms-date-picker-input-element.component-NM2cFs3P.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-B8V7IpoK.mjs → ngx-t-forms-date-range-picker-input-element.component-DhU_bhy3.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-B8V7IpoK.mjs.map → ngx-t-forms-date-range-picker-input-element.component-DhU_bhy3.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-g0wIRj9b.mjs +333 -0
- package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-g0wIRj9b.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-hKJqVYUY.mjs → ngx-t-forms-document-list-label-config-editor.component-K-KFdCcS.mjs} +5 -5
- package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-hKJqVYUY.mjs.map → ngx-t-forms-document-list-label-config-editor.component-K-KFdCcS.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-NuPXy_Ms.mjs +543 -0
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-NuPXy_Ms.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-document-picker.component-BSG7k3IN.mjs +1259 -0
- package/fesm2022/ngx-t-forms-document-picker.component-BSG7k3IN.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-document-picker.component-ChGqXHcQ.mjs +1996 -0
- package/fesm2022/ngx-t-forms-document-picker.component-ChGqXHcQ.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-editor-input-element.component-B8Pk-EVY.mjs +581 -0
- package/fesm2022/ngx-t-forms-editor-input-element.component-B8Pk-EVY.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-editor-input-element.component-D38U94oj.mjs → ngx-t-forms-editor-input-element.component-Bb7w-vNw.mjs} +138 -15
- package/fesm2022/ngx-t-forms-editor-input-element.component-Bb7w-vNw.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-editor-js-input.component-DlsLiHi1.mjs +539 -0
- package/fesm2022/ngx-t-forms-editor-js-input.component-DlsLiHi1.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-editor-js-input.component-XX6kU8DW.mjs +585 -0
- package/fesm2022/ngx-t-forms-editor-js-input.component-XX6kU8DW.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-file-upload-input-element.component-_RBYRgn9.mjs → ngx-t-forms-file-upload-input-element.component-Km-qgANx.mjs} +7 -7
- package/fesm2022/{ngx-t-forms-file-upload-input-element.component-_RBYRgn9.mjs.map → ngx-t-forms-file-upload-input-element.component-Km-qgANx.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-file-upload-input-element.component-RCmUClXv.mjs +447 -0
- package/fesm2022/ngx-t-forms-file-upload-input-element.component-RCmUClXv.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-form-input-selector.component-0jfD5C0G.mjs +163 -0
- package/fesm2022/ngx-t-forms-form-input-selector.component-0jfD5C0G.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-form-input-selector.component-CUwK3DqG.mjs → ngx-t-forms-form-input-selector.component-D5KYWQ2R.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-form-input-selector.component-CUwK3DqG.mjs.map → ngx-t-forms-form-input-selector.component-D5KYWQ2R.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-form-json-view.component-D9rU9vxT.mjs → ngx-t-forms-form-json-view.component-r64GKVhI.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-form-json-view.component-D9rU9vxT.mjs.map → ngx-t-forms-form-json-view.component-r64GKVhI.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-form-json-view.component-z0nQxpqB.mjs +28 -0
- package/fesm2022/ngx-t-forms-form-json-view.component-z0nQxpqB.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs +291 -0
- package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-form-section-stepper.component-CqCL3Bnc.mjs → ngx-t-forms-form-section-stepper.component-B3DRJ--U.mjs} +6 -6
- package/fesm2022/{ngx-t-forms-form-section-stepper.component-CqCL3Bnc.mjs.map → ngx-t-forms-form-section-stepper.component-B3DRJ--U.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-form-section-stepper.component-UUTHYU-A.mjs +936 -0
- package/fesm2022/ngx-t-forms-form-section-stepper.component-UUTHYU-A.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-forms-builder-menu.component-wmRDJU4P.mjs → ngx-t-forms-forms-builder-menu.component-BYFynpTn.mjs} +11 -11
- package/fesm2022/{ngx-t-forms-forms-builder-menu.component-wmRDJU4P.mjs.map → ngx-t-forms-forms-builder-menu.component-BYFynpTn.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-forms-builder-menu.component-DTIAOxGV.mjs +816 -0
- package/fesm2022/ngx-t-forms-forms-builder-menu.component-DTIAOxGV.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-geo-location.component-CMbBSXe0.mjs → ngx-t-forms-geo-location.component-D2fIbagr.mjs} +7 -7
- package/fesm2022/{ngx-t-forms-geo-location.component-CMbBSXe0.mjs.map → ngx-t-forms-geo-location.component-D2fIbagr.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-geo-location.component-DW2b5Zli.mjs +329 -0
- package/fesm2022/ngx-t-forms-geo-location.component-DW2b5Zli.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-image-capture-input-element.component-Cbq8OYk7.mjs → ngx-t-forms-image-capture-input-element.component-BgnzErQt.mjs} +7 -7
- package/fesm2022/{ngx-t-forms-image-capture-input-element.component-Cbq8OYk7.mjs.map → ngx-t-forms-image-capture-input-element.component-BgnzErQt.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-image-capture-input-element.component-Us_NAQSl.mjs +360 -0
- package/fesm2022/ngx-t-forms-image-capture-input-element.component-Us_NAQSl.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-index-CPNvE4PP.mjs → ngx-t-forms-index-6YIhS6cm.mjs} +2 -2
- package/fesm2022/ngx-t-forms-index-6YIhS6cm.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-index-BPNBX_ve.mjs +2 -0
- package/fesm2022/ngx-t-forms-index-BPNBX_ve.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-input-custom.component-DQOqy047.mjs +128 -0
- package/fesm2022/ngx-t-forms-input-custom.component-DQOqy047.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-input-custom.component-uNVdF9aA.mjs → ngx-t-forms-input-custom.component-Dcoze7U3.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-input-custom.component-uNVdF9aA.mjs.map → ngx-t-forms-input-custom.component-Dcoze7U3.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-input-editor.component-3fRj5swF.mjs +512 -0
- package/fesm2022/ngx-t-forms-input-editor.component-3fRj5swF.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-input-editor.component-BWoKhlI3.mjs → ngx-t-forms-input-editor.component-B6UKwV4i.mjs} +7 -7
- package/fesm2022/{ngx-t-forms-input-editor.component-BWoKhlI3.mjs.map → ngx-t-forms-input-editor.component-B6UKwV4i.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-map-mat-options-keys-D0SGS9xQ.mjs → ngx-t-forms-map-mat-options-keys-BsfvYiEU.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-map-mat-options-keys-D0SGS9xQ.mjs.map → ngx-t-forms-map-mat-options-keys-BsfvYiEU.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-map-mat-options-keys-eSc99wdA.mjs +132 -0
- package/fesm2022/ngx-t-forms-map-mat-options-keys-eSc99wdA.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CN17K5q6.mjs +268 -0
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CN17K5q6.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CYtTBtyf.mjs +167 -0
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CYtTBtyf.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs +241 -0
- package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs +180 -0
- package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-missing-form-configs.component-AaDfeALs.mjs +114 -0
- package/fesm2022/ngx-t-forms-missing-form-configs.component-AaDfeALs.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-CxF6Ljjf.mjs → ngx-t-forms-missing-form-configs.component-CEa8ZNKA.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-CxF6Ljjf.mjs.map → ngx-t-forms-missing-form-configs.component-CEa8ZNKA.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-D0igUV3W.mjs +69 -0
- package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-D0igUV3W.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-BqT5Z8SM.mjs → ngx-t-forms-mscoa-chart-toolbar.component-DklkxNgg.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-BqT5Z8SM.mjs.map → ngx-t-forms-mscoa-chart-toolbar.component-DklkxNgg.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-mscoa-error-display.component-99DpVSy7.mjs → ngx-t-forms-mscoa-error-display.component-BDPi6w2E.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-mscoa-error-display.component-99DpVSy7.mjs.map → ngx-t-forms-mscoa-error-display.component-BDPi6w2E.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-mscoa-error-display.component-rzl-fMmd.mjs +200 -0
- package/fesm2022/ngx-t-forms-mscoa-error-display.component-rzl-fMmd.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-BT-dM_5C.mjs → ngx-t-forms-mscoa-segment-config.component-2SspNWtF.mjs} +7 -7
- package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-BT-dM_5C.mjs.map → ngx-t-forms-mscoa-segment-config.component-2SspNWtF.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CSGf4XeN.mjs +850 -0
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CSGf4XeN.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-CBuGHwnU.mjs +107 -0
- package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-CBuGHwnU.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-mscoa-temporary-hint.component-B1Z-IXSL.mjs → ngx-t-forms-mscoa-temporary-hint.component-g7DosiVb.mjs} +3 -3
- 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
- package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CbQdnVgw.mjs +1665 -0
- package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CbQdnVgw.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-multiple-input-input-element.component-DXAh2Mbm.mjs → ngx-t-forms-multiple-input-input-element.component-dmRIi9ph.mjs} +13 -13
- package/fesm2022/{ngx-t-forms-multiple-input-input-element.component-DXAh2Mbm.mjs.map → ngx-t-forms-multiple-input-input-element.component-dmRIi9ph.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-ngx-t-forms-DQ_h-jPF.mjs → ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs} +826 -120
- package/fesm2022/ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-ngx-t-forms-BefvSS-p.mjs +28237 -0
- package/fesm2022/ngx-t-forms-ngx-t-forms-BefvSS-p.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-paginated-selection-table-BGNxI2yq.mjs +1024 -0
- package/fesm2022/ngx-t-forms-paginated-selection-table-BGNxI2yq.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-paginated-selection-table-DHwojPhn.mjs → ngx-t-forms-paginated-selection-table-DrXB22iY.mjs} +8 -8
- package/fesm2022/{ngx-t-forms-paginated-selection-table-DHwojPhn.mjs.map → ngx-t-forms-paginated-selection-table-DrXB22iY.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-payload-template-editor.component-CAXdFu4E.mjs → ngx-t-forms-payload-template-editor.component-DL4ZTTsH.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-payload-template-editor.component-CAXdFu4E.mjs.map → ngx-t-forms-payload-template-editor.component-DL4ZTTsH.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-payload-template-editor.component-o3qwpvYu.mjs +234 -0
- package/fesm2022/ngx-t-forms-payload-template-editor.component-o3qwpvYu.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-pipeline-generator.component-BqtdKcN2.mjs +1126 -0
- package/fesm2022/ngx-t-forms-pipeline-generator.component-BqtdKcN2.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-pipeline-generator.component-BJQ-KnmU.mjs → ngx-t-forms-pipeline-generator.component-DcZPv8-N.mjs} +11 -11
- package/fesm2022/{ngx-t-forms-pipeline-generator.component-BJQ-KnmU.mjs.map → ngx-t-forms-pipeline-generator.component-DcZPv8-N.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-record-list-manager.component-BcANl5Bq.mjs +639 -0
- package/fesm2022/ngx-t-forms-record-list-manager.component-BcANl5Bq.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-record-list-manager.component-l-2uDVmi.mjs +446 -0
- package/fesm2022/ngx-t-forms-record-list-manager.component-l-2uDVmi.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-required-inputs.component-C-E3fQu6.mjs → ngx-t-forms-required-inputs.component-BMmNxeE-.mjs} +6 -6
- package/fesm2022/{ngx-t-forms-required-inputs.component-C-E3fQu6.mjs.map → ngx-t-forms-required-inputs.component-BMmNxeE-.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-required-inputs.component-Dr0P1gin.mjs +451 -0
- package/fesm2022/ngx-t-forms-required-inputs.component-Dr0P1gin.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BSv_KQIU.mjs +625 -0
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BSv_KQIU.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-D3sa7sNg.mjs → ngx-t-forms-rest-api-call-setup.component-C3sNmq_H.mjs} +5 -5
- package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-D3sa7sNg.mjs.map → ngx-t-forms-rest-api-call-setup.component-C3sNmq_H.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs +72 -0
- package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-section-report.component-D6jakGa5.mjs → ngx-t-forms-section-report.component-BYMcaRE5.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-section-report.component-D6jakGa5.mjs.map → ngx-t-forms-section-report.component-BYMcaRE5.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-section-report.component-yGAjX7Gb.mjs +248 -0
- package/fesm2022/ngx-t-forms-section-report.component-yGAjX7Gb.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-select-input-element.component-BqtJi4ek.mjs +408 -0
- package/fesm2022/ngx-t-forms-select-input-element.component-BqtJi4ek.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-select-input-element.component-CwqIck0h.mjs → ngx-t-forms-select-input-element.component-Nsa3dpvV.mjs} +8 -8
- package/fesm2022/{ngx-t-forms-select-input-element.component-CwqIck0h.mjs.map → ngx-t-forms-select-input-element.component-Nsa3dpvV.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-selection-options-editor.component-Coj9gnrq.mjs → ngx-t-forms-selection-options-editor.component-BuXVzo7Z.mjs} +6 -6
- package/fesm2022/{ngx-t-forms-selection-options-editor.component-Coj9gnrq.mjs.map → ngx-t-forms-selection-options-editor.component-BuXVzo7Z.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-selection-options-editor.component-_glw1cqH.mjs +275 -0
- package/fesm2022/ngx-t-forms-selection-options-editor.component-_glw1cqH.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-CLgN3YM4.mjs +366 -0
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-CLgN3YM4.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-DAwP-cWK.mjs +263 -0
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-DAwP-cWK.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-textarea-input-element.component-D4dEi8Vs.mjs → ngx-t-forms-textarea-input-element.component-DPxUzkAu.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-textarea-input-element.component-D4dEi8Vs.mjs.map → ngx-t-forms-textarea-input-element.component-DPxUzkAu.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-textarea-input-element.component-SCEBLqJd.mjs +233 -0
- package/fesm2022/ngx-t-forms-textarea-input-element.component-SCEBLqJd.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-toggle-input-element.component-CoyTMRMa.mjs +305 -0
- package/fesm2022/ngx-t-forms-toggle-input-element.component-CoyTMRMa.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-toggle-input-element.component-BZiTFB0j.mjs → ngx-t-forms-toggle-input-element.component-OZre5TJ7.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-toggle-input-element.component-BZiTFB0j.mjs.map → ngx-t-forms-toggle-input-element.component-OZre5TJ7.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-validators-config.component-B1Lzs7o2.mjs +1105 -0
- package/fesm2022/ngx-t-forms-validators-config.component-B1Lzs7o2.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-validators-config.component-B3K9nLxx.mjs → ngx-t-forms-validators-config.component-CoGSFor3.mjs} +5 -5
- package/fesm2022/{ngx-t-forms-validators-config.component-B3K9nLxx.mjs.map → ngx-t-forms-validators-config.component-CoGSFor3.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-workflow-adjudication.component-Bz07jv-N.mjs +2923 -0
- package/fesm2022/ngx-t-forms-workflow-adjudication.component-Bz07jv-N.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-workflow-adjudication.component-DD6Fhx06.mjs → ngx-t-forms-workflow-adjudication.component-CrDZg3Nl.mjs} +17 -17
- package/fesm2022/ngx-t-forms-workflow-adjudication.component-CrDZg3Nl.mjs.map +1 -0
- package/fesm2022/ngx-t-forms.mjs +1 -1
- package/package.json +2 -2
- package/types/ngx-t-forms.d.ts +7 -0
- package/fesm2022/ngx-t-forms-document-picker.component-f-hz6Vef.mjs +0 -704
- package/fesm2022/ngx-t-forms-document-picker.component-f-hz6Vef.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-editor-input-element.component-D38U94oj.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-editor-js-input.component-D_Jq7sfY.mjs +0 -240
- package/fesm2022/ngx-t-forms-editor-js-input.component-D_Jq7sfY.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-index-CPNvE4PP.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-Cu-KiAeY.mjs +0 -66
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-Cu-KiAeY.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-ngx-t-forms-DQ_h-jPF.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-record-list-manager.component-BoD3S_7u.mjs +0 -358
- package/fesm2022/ngx-t-forms-record-list-manager.component-BoD3S_7u.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-DqFMP1rZ.mjs +0 -204
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-DqFMP1rZ.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-workflow-adjudication.component-DD6Fhx06.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-t-forms-editor-input-element.component-B8Pk-EVY.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.html","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/editor-input-element/editor-input-element.component.ts"],"sourcesContent":["import type Quill from 'quill';\nimport type { Op, QuillOptions } from 'quill';\n\n/**\n * Serialized Quill document — the Delta op-list persisted as the control value.\n *\n * Stored as a plain object (NOT a live `Delta` instance) so it round-trips through\n * reactive-form state and the library's structural `_isEqual` check cleanly. `_isEqual`\n * rejects values whose constructors differ, so a `Delta` instance would never compare\n * equal to the plain object rehydrated from saved form data.\n */\nexport interface QuillContent {\n ops: Op[];\n}\n\n/** Inputs the host component feeds into the Quill setup. */\nexport interface QuillEditorPayload {\n /** Render the editor in non-editable mode. */\n readOnly: boolean;\n /** Placeholder shown while the document is empty. */\n placeholder?: string;\n}\n\n/**\n * Narrow surface of Quill's built-in table module (`getModule('table')`), typed so the\n * host component can drive table operations without leaking `any`.\n */\nexport interface QuillTableModule {\n insertTable(rows: number, columns: number): void;\n insertRowBelow(): void;\n insertColumnRight(): void;\n deleteRow(): void;\n deleteColumn(): void;\n deleteTable(): void;\n}\n\n/** A custom toolbar control wired to a native Quill table operation. */\nexport interface QuillTableControl {\n /** Toolbar format key — Quill renders it as a `button.ql-<format>`. */\n format: string;\n /** Tooltip surfaced via the button's `title` attribute. */\n title: string;\n /** Inline SVG markup. Paths use `ql-stroke` so they inherit the themed icon colour. */\n icon: string;\n /** Operation run against the native table module when the button is pressed. */\n run: (table: QuillTableModule) => void;\n}\n\nconst svg = (body: string): string => `<svg viewBox=\"0 0 18 18\">${body}</svg>`;\n\n/**\n * Word-like table toolkit backed by Quill's native table module. Each control degrades to a\n * no-op when the caret is outside a table, so the buttons are always safe to press.\n */\nexport const QUILL_TABLE_CONTROLS: readonly QuillTableControl[] = [\n {\n format: 'table-insert',\n title: 'Insert table (3×3)',\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>'),\n run: table => table.insertTable(3, 3),\n },\n {\n format: 'table-row',\n title: 'Insert row below',\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>'),\n run: table => table.insertRowBelow(),\n },\n {\n format: 'table-column',\n title: 'Insert column right',\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>'),\n run: table => table.insertColumnRight(),\n },\n {\n format: 'table-delete-row',\n title: 'Delete row',\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>'),\n run: table => table.deleteRow(),\n },\n {\n format: 'table-delete-column',\n title: 'Delete column',\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>'),\n run: table => table.deleteColumn(),\n },\n {\n format: 'table-delete',\n title: 'Delete table',\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>'),\n run: table => table.deleteTable(),\n },\n];\n\n/**\n * Human-readable tooltips for the built-in controls, keyed by the button's CSS selector.\n * Quill ships no titles of its own, so these make the toolbar self-explanatory.\n */\nexport const QUILL_BUILTIN_TITLES: Readonly<Record<string, string>> = {\n '.ql-bold': 'Bold',\n '.ql-italic': 'Italic',\n '.ql-underline': 'Underline',\n '.ql-strike': 'Strikethrough',\n '.ql-blockquote': 'Quote',\n '.ql-code-block': 'Code block',\n '.ql-link': 'Insert link',\n '.ql-image': 'Insert image',\n '.ql-video': 'Embed video',\n '.ql-clean': 'Clear formatting',\n '.ql-list[value=\"ordered\"]': 'Numbered list',\n '.ql-list[value=\"bullet\"]': 'Bulleted list',\n '.ql-list[value=\"check\"]': 'Checklist',\n '.ql-script[value=\"sub\"]': 'Subscript',\n '.ql-script[value=\"super\"]': 'Superscript',\n '.ql-indent[value=\"-1\"]': 'Decrease indent',\n '.ql-indent[value=\"+1\"]': 'Increase indent',\n '.ql-direction[value=\"rtl\"]': 'Right-to-left',\n '.ql-color': 'Text colour',\n '.ql-background': 'Highlight colour',\n '.ql-align': 'Alignment',\n '.ql-header': 'Heading',\n '.ql-font': 'Font',\n '.ql-size': 'Font size',\n};\n\n/**\n * Comprehensive, logically grouped \"snow\" toolbar — headings/fonts, inline styling, colour,\n * scripts, lists, indentation/alignment, blocks, media and a native table toolkit.\n */\nconst TOOLBAR_CONTAINER: readonly unknown[] = [\n [{ header: [1, 2, 3, 4, 5, 6, false] }, { font: [] }, { size: ['small', false, 'large', 'huge'] }],\n ['bold', 'italic', 'underline', 'strike'],\n [{ color: [] }, { background: [] }],\n [{ script: 'sub' }, { script: 'super' }],\n [{ list: 'ordered' }, { list: 'bullet' }, { list: 'check' }],\n [{ indent: '-1' }, { indent: '+1' }, { align: [] }, { direction: 'rtl' }],\n ['blockquote', 'code-block'],\n ['link', 'image', 'video'],\n QUILL_TABLE_CONTROLS.map(control => control.format),\n ['clean']\n];\n\n/** The `this` context Quill binds when it invokes a toolbar handler. */\ninterface ToolbarHandlerContext {\n quill: Quill;\n}\n\n/**\n * Builds the toolbar handler map for the custom table buttons.\n *\n * These MUST be supplied in the toolbar config (not added later via `addHandler`): Quill's\n * toolbar skips attaching a click listener to any button whose format is neither a registered\n * blot nor already present in `handlers` at construction time. A late `addHandler` sets the\n * handler but never re-attaches the listener, so the button stays inert.\n */\nconst buildTableHandlers = (): Record<string, (this: ToolbarHandlerContext) => void> => {\n const handlers: Record<string, (this: ToolbarHandlerContext) => void> = {};\n for (const control of QUILL_TABLE_CONTROLS) {\n handlers[control.format] = function tableHandler(this: ToolbarHandlerContext): void {\n const table = this.quill.getModule('table') as QuillTableModule;\n // Native table ops bail when there is no selection; force focus + a range first.\n this.quill.getSelection(true);\n control.run(table);\n };\n }\n return handlers;\n};\n\n/**\n * Builds a ready-to-use `QuillOptions` for a \"snow\" editor with the native table module\n * enabled and the custom table-button handlers wired into the toolbar config.\n *\n * Browser-only by construction: callers MUST instantiate Quill behind an\n * `isPlatformBrowser(...)` guard because Quill touches `document` at construction time.\n */\nexport const buildQuillOptions = (payload: QuillEditorPayload): QuillOptions => ({\n theme: 'snow',\n readOnly: payload.readOnly,\n placeholder: payload.placeholder ?? \"Let's write something amazing...\",\n modules: {\n toolbar: {\n container: TOOLBAR_CONTAINER,\n handlers: buildTableHandlers()\n },\n table: true,\n history: { delay: 1000, maxStack: 100, userOnly: true },\n clipboard: { matchVisual: false }\n }\n});\n\n/**\n * Quill's empty document is a single trailing newline op. Treat that — and a literally\n * empty op-list — as \"no value\" so `required` validation behaves intuitively.\n */\nexport const isEmptyQuillDocument = (ops: Op[]): boolean =>\n ops.length === 0 || (ops.length === 1 && ops[0]?.insert === '\\n');\n","/// <reference path=\"../../../../../../../types/quill.d.ts\" />\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n Input,\n OnDestroy,\n PLATFORM_ID,\n computed,\n inject,\n input,\n output,\n signal,\n viewChild\n} from '@angular/core';\nimport { DOCUMENT, isPlatformBrowser } from '@angular/common';\nimport { NgControl } from '@angular/forms';\n\nimport { ITowerStepColumn } from 'ngx-t-forms-types';\n// Mirrors the EditorJS sibling (Trap 16): `quill` is a browser-only bundle that touches\n// `document` at construction time and crashes under bare-Node SSR. The top-level import is\n// type-only (zero runtime emission); the real load happens inside the SSR-gated\n// `ngAfterViewInit` via dynamic `import()`.\nimport type QuillType from 'quill';\nimport type { Range as QuillRange } from 'quill';\nimport { MatFormFieldControl } from '@angular/material/form-field';\n\nimport { BaseCustomInput, BaseCustomInputConfig } from '../../../../../../services/core/t-input-controller/functions/baseCustomInput';\nimport {\n buildQuillOptions,\n isEmptyQuillDocument,\n QUILL_BUILTIN_TITLES,\n QUILL_TABLE_CONTROLS,\n QuillContent\n} from './quill.config';\nimport { EditorFullScreenHost } from '../editor-full-screen';\nimport { EditorFullScreenToggleComponent } from '../editor-full-screen-toggle/editor-full-screen-toggle.component';\nimport { _isEqual } from '../../../../../../shared/functions/isEqual';\n\nconst customInputConfig: BaseCustomInputConfig = {\n controlType: 'lib-quill-input',\n nextId: 0\n};\n\n/**\n * Quill (\"snow\" theme) rich-text editor wired into Angular Material's form-field as a\n * custom `MatFormFieldControl`. The full Quill setup — toolbar, formats, history — lives in\n * `quill.config.ts`; this component owns lifecycle, SSR gating and value round-tripping.\n */\n@Component({\n selector: 'lib-quill-input',\n templateUrl: './quill-input.component.html',\n styleUrl: './quill-input.component.css',\n imports: [EditorFullScreenToggleComponent],\n host: {\n '[class.floating]': 'shouldLabelFloat',\n '[id]': 'id',\n '(keydown.escape)': 'onEscape($event)'\n },\n providers: [{ provide: MatFormFieldControl, useExisting: QuillInputComponent }],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class QuillInputComponent\n extends BaseCustomInput<QuillContent | undefined>\n implements AfterViewInit, OnDestroy {\n\n readonly inputConfig = input.required<ITowerStepColumn>();\n\n readonly valueChanged = output<QuillContent | undefined>();\n\n protected editor: QuillType | undefined;\n\n /** Whether the editor is currently popped out to fill the screen. */\n protected readonly fullScreen = signal(false);\n\n /** Mirrors the CVA's disabled state into the signal graph so the template can react to it. */\n readonly #controlDisabled = signal(false);\n\n /**\n * Read-only when either the column config or the reactive-form control says so. Drives both\n * Quill's own editable state and hiding the formatting toolbar, which is dead weight when\n * nothing can be edited.\n */\n protected readonly readOnly = computed(() => {\n const config = this.inputConfig();\n return this.#controlDisabled() || config.readonly || config.disabled || false;\n });\n\n /**\n * Height the in-flow wrapper holds onto while the editor is popped out. Set from the editor's\n * measured height on the way in, cleared on the way out.\n */\n protected readonly reservedHeight = signal<number | null>(null);\n\n private readonly editorHost = viewChild.required<ElementRef<HTMLElement>>('editorHost');\n\n /**\n * The bordered surface Quill fills — toolbar included. This is what gets promoted to the\n * browser's top layer. (`viewChild` cannot sit on an ES-private field — NG1053.)\n */\n private readonly quillHost = viewChild.required<ElementRef<HTMLElement>>('quillHost');\n\n readonly #platformId = inject(PLATFORM_ID);\n\n readonly #document = inject(DOCUMENT);\n\n #changeHandler: (() => void) | undefined;\n\n #fullScreenHost: EditorFullScreenHost | undefined;\n\n /** Guards against overlapping pop-out transitions (see `#toggleFullScreen`). */\n #toggling = false;\n\n constructor() {\n super(\n inject(NgControl, { optional: true, self: true }) as NgControl,\n inject<ElementRef<HTMLElement>>(ElementRef),\n customInputConfig\n );\n }\n\n override get empty(): boolean {\n const n = this.value;\n return n === null || n === undefined;\n }\n\n override get shouldLabelFloat(): boolean {\n return true;\n }\n\n override _value: QuillContent | undefined = undefined;\n\n @Input() override set value(value: QuillContent | undefined) {\n if (!_isEqual(this._value, value)) {\n this._value = value;\n this.onChange(value);\n this.stateChanges.next();\n }\n }\n\n override get value(): QuillContent | undefined {\n return this._value;\n }\n\n async ngAfterViewInit(): Promise<void> {\n if (!isPlatformBrowser(this.#platformId)) return;\n\n // Browser-only dynamic load — see the Trap 16 comment at the top of this file. The\n // CSS import injects Quill's global theme styles (Quill's runtime DOM is not view-scoped).\n const [{ default: Quill, Delta }] = await Promise.all([\n import('quill'),\n import('quill/dist/quill.snow.css')\n ]);\n\n this.#fullScreenHost = new EditorFullScreenHost(this.#document, () => this.#setFullScreen(false));\n\n const config = this.inputConfig();\n this.editor = new Quill(this.editorHost().nativeElement, buildQuillOptions({\n readOnly: this.readOnly(),\n placeholder: config.placeholder\n }));\n\n const initial = this.value;\n if (initial?.ops?.length) {\n this.editor.setContents(new Delta(initial.ops), 'silent');\n }\n\n // A `setDisabledState` that arrived before the editor existed is applied here.\n this.#applyReadOnly();\n this.#decorateToolbar();\n\n this.#changeHandler = () => this.contentChangedSaveValue();\n this.editor.on('text-change', this.#changeHandler);\n }\n\n /**\n * Quill ships no icons for custom buttons and no tooltips for any button. Inject themeable\n * SVG icons (their `ql-stroke` paths inherit the toolbar colour) and `title` tooltips so the\n * toolbar reads clearly in both light and dark mode.\n */\n #decorateToolbar(): void {\n const root = this._elementRef.nativeElement;\n for (const control of QUILL_TABLE_CONTROLS) {\n const button = root.querySelector<HTMLElement>(`.ql-${control.format}`);\n if (!button) continue;\n button.innerHTML = control.icon;\n button.setAttribute('title', control.title);\n }\n for (const [selector, title] of Object.entries(QUILL_BUILTIN_TITLES)) {\n root.querySelectorAll<HTMLElement>(selector).forEach(el => el.setAttribute('title', title));\n }\n }\n\n /**\n * Keeps Quill's own read-only state in step with the control's. The pop-out re-enables pointer\n * events on the popped-out surface (Material kills them field-wide when the control is\n * disabled), so this is what actually keeps a disabled field uneditable — the CSS no longer\n * does it.\n */\n override setDisabledState(isDisabled: boolean): void {\n super.setDisabledState(isDisabled);\n this.#controlDisabled.set(isDisabled);\n this.#applyReadOnly();\n }\n\n /** Pushes {@link readOnly} onto the Quill instance, which is not reactive. */\n #applyReadOnly(): void {\n this.editor?.enable(!this.readOnly());\n }\n\n /** Toggles the pop-out from the floating button. */\n protected toggleFullScreen(): void {\n void this.#toggleFullScreen();\n }\n\n /**\n * Pops the editor out to fill the screen, or restores it. Wired to the toolbar button, so it\n * always runs inside the click gesture the Fullscreen API requires — everything up to the\n * promotion is synchronous for that reason.\n */\n async #toggleFullScreen(): Promise<void> {\n const fullScreenHost = this.#fullScreenHost;\n // Both transitions settle asynchronously; ignore clicks that land mid-flight rather than\n // letting a second `requestFullscreen()` race the first.\n if (!fullScreenHost || this.#toggling) return;\n this.#toggling = true;\n\n // Promotion re-lays the editor out, which drops the caret; put it back afterwards.\n // `getSelection()` without an argument reads the range without stealing focus.\n const selection = this.editor?.getSelection() ?? null;\n\n try {\n if (this.fullScreen()) {\n await fullScreenHost.exit();\n } else {\n const element = this.quillHost().nativeElement;\n this.reservedHeight.set(element.offsetHeight);\n await fullScreenHost.enter(element);\n }\n } finally {\n // `enter()` degrades rather than throwing, but `exit()` can reject if the browser refuses\n // to leave full screen. Either way the controller has already settled its own state, so\n // read it back instead of assuming the toggle succeeded.\n this.#setFullScreen(fullScreenHost.active);\n this.#restoreSelection(selection);\n this.#toggling = false;\n }\n }\n\n /**\n * Escape leaves the pop-out. Native full screen is torn down by the browser itself (picked up\n * through `fullscreenchange`); this covers the popover and fixed fallbacks. The event is\n * stopped so Escape closes the editor rather than an enclosing dialog.\n */\n protected onEscape(event: Event): void {\n if (!this.fullScreen()) return;\n event.preventDefault();\n event.stopPropagation();\n void this.#toggleFullScreen();\n }\n\n /**\n * Single funnel for pop-out state, so the signal and the reserved space always agree —\n * including when the browser closed full screen on its own.\n */\n #setFullScreen(active: boolean): void {\n this.fullScreen.set(active);\n if (!active) this.reservedHeight.set(null);\n }\n\n /** Returns the caret to where it was before the pop-out re-laid the editor out. */\n #restoreSelection(selection: QuillRange | null): void {\n const editor = this.editor;\n if (!editor) return;\n if (selection) editor.setSelection(selection, 'silent');\n else editor.focus();\n }\n\n contentChangedSaveValue(): void {\n if (!this.editor) return;\n const ops = this.editor.getContents().ops;\n const value: QuillContent | undefined = isEmptyQuillDocument(ops) ? undefined : { ops };\n this.value = value;\n this.onChange(value);\n this.valueChanged.emit(value);\n }\n\n override ngOnDestroy(): void {\n this.#fullScreenHost?.destroy();\n this.#fullScreenHost = undefined;\n if (this.editor && this.#changeHandler) {\n this.editor.off('text-change', this.#changeHandler);\n }\n this.editor = undefined;\n // Tear the editor down first, then let the base complete `stateChanges` / `destroy$` and\n // clear the temporary-error timer — none of which happened while this override skipped it.\n super.ngOnDestroy();\n }\n}\n","\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","<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","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"],"names":["i4"],"mappings":";;;;;;;;;;;;;;;;;AAgDA,MAAM,GAAG,GAAG,CAAC,IAAY,KAAa,CAAA,yBAAA,EAA4B,IAAI,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AA,QAAA,EAAA,6FAAA,EAAA,UAAA,EAAA,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA,GAAA;;;;"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, ElementRef, input, output, viewChild, PLATFORM_ID, Input, ChangeDetectionStrategy, Component
|
|
2
|
+
import { inject, ElementRef, input, output, signal, computed, viewChild, PLATFORM_ID, Input, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/forms';
|
|
4
4
|
import { NgControl, ReactiveFormsModule } from '@angular/forms';
|
|
5
5
|
import * as i2 from '@angular/material/form-field';
|
|
6
6
|
import { MatFormFieldControl, MatFormFieldModule } from '@angular/material/form-field';
|
|
7
7
|
import * as i3 from '@angular/material/icon';
|
|
8
8
|
import { MatIconModule } from '@angular/material/icon';
|
|
9
|
-
import * as
|
|
9
|
+
import * as i2$1 from '@angular/material/button';
|
|
10
10
|
import { MatButtonModule } from '@angular/material/button';
|
|
11
11
|
import * as i5 from '@angular/material/tooltip';
|
|
12
12
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
13
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-
|
|
15
|
-
import { EditorJsInputComponent } from './ngx-t-forms-editor-js-input.component-
|
|
16
|
-
import { isPlatformBrowser } from '@angular/common';
|
|
14
|
+
import { B as BaseCustomInput, _ as _isEqual, q as getInputErrorMessage, u as TFormInputStatusComponent } from './ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs';
|
|
15
|
+
import { E as EditorFullScreenHost, a as EditorFullScreenToggleComponent, b as EditorJsInputComponent } from './ngx-t-forms-editor-js-input.component-DlsLiHi1.mjs';
|
|
16
|
+
import { DOCUMENT, isPlatformBrowser } from '@angular/common';
|
|
17
17
|
|
|
18
18
|
const svg = (body) => `<svg viewBox="0 0 18 18">${body}</svg>`;
|
|
19
19
|
/**
|
|
@@ -162,14 +162,46 @@ const customInputConfig = {
|
|
|
162
162
|
* `quill.config.ts`; this component owns lifecycle, SSR gating and value round-tripping.
|
|
163
163
|
*/
|
|
164
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;
|
|
165
167
|
#platformId;
|
|
168
|
+
#document;
|
|
166
169
|
#changeHandler;
|
|
170
|
+
#fullScreenHost;
|
|
171
|
+
/** Guards against overlapping pop-out transitions (see `#toggleFullScreen`). */
|
|
172
|
+
#toggling;
|
|
167
173
|
constructor() {
|
|
168
174
|
super(inject(NgControl, { optional: true, self: true }), inject(ElementRef), customInputConfig);
|
|
169
175
|
this.inputConfig = input.required(...(ngDevMode ? [{ debugName: "inputConfig" }] : /* istanbul ignore next */ []));
|
|
170
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 */ []));
|
|
171
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');
|
|
172
201
|
this.#platformId = inject(PLATFORM_ID);
|
|
202
|
+
this.#document = inject(DOCUMENT);
|
|
203
|
+
/** Guards against overlapping pop-out transitions (see `#toggleFullScreen`). */
|
|
204
|
+
this.#toggling = false;
|
|
173
205
|
this._value = undefined;
|
|
174
206
|
}
|
|
175
207
|
get empty() {
|
|
@@ -198,15 +230,18 @@ class QuillInputComponent extends BaseCustomInput {
|
|
|
198
230
|
import('quill'),
|
|
199
231
|
import('quill/dist/quill.snow.css')
|
|
200
232
|
]);
|
|
233
|
+
this.#fullScreenHost = new EditorFullScreenHost(this.#document, () => this.#setFullScreen(false));
|
|
201
234
|
const config = this.inputConfig();
|
|
202
235
|
this.editor = new Quill(this.editorHost().nativeElement, buildQuillOptions({
|
|
203
|
-
readOnly:
|
|
236
|
+
readOnly: this.readOnly(),
|
|
204
237
|
placeholder: config.placeholder
|
|
205
238
|
}));
|
|
206
239
|
const initial = this.value;
|
|
207
240
|
if (initial?.ops?.length) {
|
|
208
241
|
this.editor.setContents(new Delta(initial.ops), 'silent');
|
|
209
242
|
}
|
|
243
|
+
// A `setDisabledState` that arrived before the editor existed is applied here.
|
|
244
|
+
this.#applyReadOnly();
|
|
210
245
|
this.#decorateToolbar();
|
|
211
246
|
this.#changeHandler = () => this.contentChangedSaveValue();
|
|
212
247
|
this.editor.on('text-change', this.#changeHandler);
|
|
@@ -229,6 +264,90 @@ class QuillInputComponent extends BaseCustomInput {
|
|
|
229
264
|
root.querySelectorAll(selector).forEach(el => el.setAttribute('title', title));
|
|
230
265
|
}
|
|
231
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
|
+
}
|
|
232
351
|
contentChangedSaveValue() {
|
|
233
352
|
if (!this.editor)
|
|
234
353
|
return;
|
|
@@ -236,26 +355,30 @@ class QuillInputComponent extends BaseCustomInput {
|
|
|
236
355
|
const value = isEmptyQuillDocument(ops) ? undefined : { ops };
|
|
237
356
|
this.value = value;
|
|
238
357
|
this.onChange(value);
|
|
239
|
-
console.error('Quill content changed, new value:', value);
|
|
240
358
|
this.valueChanged.emit(value);
|
|
241
359
|
}
|
|
242
360
|
ngOnDestroy() {
|
|
243
|
-
this
|
|
361
|
+
this.#fullScreenHost?.destroy();
|
|
362
|
+
this.#fullScreenHost = undefined;
|
|
244
363
|
if (this.editor && this.#changeHandler) {
|
|
245
364
|
this.editor.off('text-change', this.#changeHandler);
|
|
246
365
|
}
|
|
247
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();
|
|
248
370
|
}
|
|
249
371
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: QuillInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
250
|
-
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: { properties: { "class.floating": "shouldLabelFloat", "id": "id" } }, providers: [{ provide: MatFormFieldControl, useExisting: QuillInputComponent }], viewQueries: [{ propertyName: "editorHost", first: true, predicate: ["editorHost"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "\n<div class=\"quill-
|
|
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: "\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"], dependencies: [{ kind: "component", type: EditorFullScreenToggleComponent, selector: "lib-editor-full-screen-toggle", inputs: ["active"], outputs: ["toggled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
251
373
|
}
|
|
252
374
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: QuillInputComponent, decorators: [{
|
|
253
375
|
type: Component,
|
|
254
|
-
args: [{ selector: 'lib-quill-input', imports: [], host: {
|
|
376
|
+
args: [{ selector: 'lib-quill-input', imports: [EditorFullScreenToggleComponent], host: {
|
|
255
377
|
'[class.floating]': 'shouldLabelFloat',
|
|
256
|
-
'[id]': 'id'
|
|
257
|
-
|
|
258
|
-
|
|
378
|
+
'[id]': 'id',
|
|
379
|
+
'(keydown.escape)': 'onEscape($event)'
|
|
380
|
+
}, 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"] }]
|
|
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: [{
|
|
259
382
|
type: Input
|
|
260
383
|
}] } });
|
|
261
384
|
|
|
@@ -274,7 +397,7 @@ class EditorInputElementComponent {
|
|
|
274
397
|
this.errorMessage = computed(() => getInputErrorMessage(this.inputConfig(), this.formGroup()), ...(ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []));
|
|
275
398
|
}
|
|
276
399
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: EditorInputElementComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
277
|
-
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()\">\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"], 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:
|
|
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()\">\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"], 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 }); }
|
|
278
401
|
}
|
|
279
402
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: EditorInputElementComponent, decorators: [{
|
|
280
403
|
type: Component,
|
|
@@ -291,4 +414,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
291
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"] }] } });
|
|
292
415
|
|
|
293
416
|
export { EditorInputElementComponent };
|
|
294
|
-
//# sourceMappingURL=ngx-t-forms-editor-input-element.component-
|
|
417
|
+
//# sourceMappingURL=ngx-t-forms-editor-input-element.component-Bb7w-vNw.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-t-forms-editor-input-element.component-Bb7w-vNw.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';\nimport type { Op, QuillOptions } from 'quill';\n\n/**\n * Serialized Quill document — the Delta op-list persisted as the control value.\n *\n * Stored as a plain object (NOT a live `Delta` instance) so it round-trips through\n * reactive-form state and the library's structural `_isEqual` check cleanly. `_isEqual`\n * rejects values whose constructors differ, so a `Delta` instance would never compare\n * equal to the plain object rehydrated from saved form data.\n */\nexport interface QuillContent {\n ops: Op[];\n}\n\n/** Inputs the host component feeds into the Quill setup. */\nexport interface QuillEditorPayload {\n /** Render the editor in non-editable mode. */\n readOnly: boolean;\n /** Placeholder shown while the document is empty. */\n placeholder?: string;\n}\n\n/**\n * Narrow surface of Quill's built-in table module (`getModule('table')`), typed so the\n * host component can drive table operations without leaking `any`.\n */\nexport interface QuillTableModule {\n insertTable(rows: number, columns: number): void;\n insertRowBelow(): void;\n insertColumnRight(): void;\n deleteRow(): void;\n deleteColumn(): void;\n deleteTable(): void;\n}\n\n/** A custom toolbar control wired to a native Quill table operation. */\nexport interface QuillTableControl {\n /** Toolbar format key — Quill renders it as a `button.ql-<format>`. */\n format: string;\n /** Tooltip surfaced via the button's `title` attribute. */\n title: string;\n /** Inline SVG markup. Paths use `ql-stroke` so they inherit the themed icon colour. */\n icon: string;\n /** Operation run against the native table module when the button is pressed. */\n run: (table: QuillTableModule) => void;\n}\n\nconst svg = (body: string): string => `<svg viewBox=\"0 0 18 18\">${body}</svg>`;\n\n/**\n * Word-like table toolkit backed by Quill's native table module. Each control degrades to a\n * no-op when the caret is outside a table, so the buttons are always safe to press.\n */\nexport const QUILL_TABLE_CONTROLS: readonly QuillTableControl[] = [\n {\n format: 'table-insert',\n title: 'Insert table (3×3)',\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>'),\n run: table => table.insertTable(3, 3),\n },\n {\n format: 'table-row',\n title: 'Insert row below',\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>'),\n run: table => table.insertRowBelow(),\n },\n {\n format: 'table-column',\n title: 'Insert column right',\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>'),\n run: table => table.insertColumnRight(),\n },\n {\n format: 'table-delete-row',\n title: 'Delete row',\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>'),\n run: table => table.deleteRow(),\n },\n {\n format: 'table-delete-column',\n title: 'Delete column',\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>'),\n run: table => table.deleteColumn(),\n },\n {\n format: 'table-delete',\n title: 'Delete table',\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>'),\n run: table => table.deleteTable(),\n },\n];\n\n/**\n * Human-readable tooltips for the built-in controls, keyed by the button's CSS selector.\n * Quill ships no titles of its own, so these make the toolbar self-explanatory.\n */\nexport const QUILL_BUILTIN_TITLES: Readonly<Record<string, string>> = {\n '.ql-bold': 'Bold',\n '.ql-italic': 'Italic',\n '.ql-underline': 'Underline',\n '.ql-strike': 'Strikethrough',\n '.ql-blockquote': 'Quote',\n '.ql-code-block': 'Code block',\n '.ql-link': 'Insert link',\n '.ql-image': 'Insert image',\n '.ql-video': 'Embed video',\n '.ql-clean': 'Clear formatting',\n '.ql-list[value=\"ordered\"]': 'Numbered list',\n '.ql-list[value=\"bullet\"]': 'Bulleted list',\n '.ql-list[value=\"check\"]': 'Checklist',\n '.ql-script[value=\"sub\"]': 'Subscript',\n '.ql-script[value=\"super\"]': 'Superscript',\n '.ql-indent[value=\"-1\"]': 'Decrease indent',\n '.ql-indent[value=\"+1\"]': 'Increase indent',\n '.ql-direction[value=\"rtl\"]': 'Right-to-left',\n '.ql-color': 'Text colour',\n '.ql-background': 'Highlight colour',\n '.ql-align': 'Alignment',\n '.ql-header': 'Heading',\n '.ql-font': 'Font',\n '.ql-size': 'Font size',\n};\n\n/**\n * Comprehensive, logically grouped \"snow\" toolbar — headings/fonts, inline styling, colour,\n * scripts, lists, indentation/alignment, blocks, media and a native table toolkit.\n */\nconst TOOLBAR_CONTAINER: readonly unknown[] = [\n [{ header: [1, 2, 3, 4, 5, 6, false] }, { font: [] }, { size: ['small', false, 'large', 'huge'] }],\n ['bold', 'italic', 'underline', 'strike'],\n [{ color: [] }, { background: [] }],\n [{ script: 'sub' }, { script: 'super' }],\n [{ list: 'ordered' }, { list: 'bullet' }, { list: 'check' }],\n [{ indent: '-1' }, { indent: '+1' }, { align: [] }, { direction: 'rtl' }],\n ['blockquote', 'code-block'],\n ['link', 'image', 'video'],\n QUILL_TABLE_CONTROLS.map(control => control.format),\n ['clean']\n];\n\n/** The `this` context Quill binds when it invokes a toolbar handler. */\ninterface ToolbarHandlerContext {\n quill: Quill;\n}\n\n/**\n * Builds the toolbar handler map for the custom table buttons.\n *\n * These MUST be supplied in the toolbar config (not added later via `addHandler`): Quill's\n * toolbar skips attaching a click listener to any button whose format is neither a registered\n * blot nor already present in `handlers` at construction time. A late `addHandler` sets the\n * handler but never re-attaches the listener, so the button stays inert.\n */\nconst buildTableHandlers = (): Record<string, (this: ToolbarHandlerContext) => void> => {\n const handlers: Record<string, (this: ToolbarHandlerContext) => void> = {};\n for (const control of QUILL_TABLE_CONTROLS) {\n handlers[control.format] = function tableHandler(this: ToolbarHandlerContext): void {\n const table = this.quill.getModule('table') as QuillTableModule;\n // Native table ops bail when there is no selection; force focus + a range first.\n this.quill.getSelection(true);\n control.run(table);\n };\n }\n return handlers;\n};\n\n/**\n * Builds a ready-to-use `QuillOptions` for a \"snow\" editor with the native table module\n * enabled and the custom table-button handlers wired into the toolbar config.\n *\n * Browser-only by construction: callers MUST instantiate Quill behind an\n * `isPlatformBrowser(...)` guard because Quill touches `document` at construction time.\n */\nexport const buildQuillOptions = (payload: QuillEditorPayload): QuillOptions => ({\n theme: 'snow',\n readOnly: payload.readOnly,\n placeholder: payload.placeholder ?? \"Let's write something amazing...\",\n modules: {\n toolbar: {\n container: TOOLBAR_CONTAINER,\n handlers: buildTableHandlers()\n },\n table: true,\n history: { delay: 1000, maxStack: 100, userOnly: true },\n clipboard: { matchVisual: false }\n }\n});\n\n/**\n * Quill's empty document is a single trailing newline op. Treat that — and a literally\n * empty op-list — as \"no value\" so `required` validation behaves intuitively.\n */\nexport const isEmptyQuillDocument = (ops: Op[]): boolean =>\n ops.length === 0 || (ops.length === 1 && ops[0]?.insert === '\\n');\n","/// <reference path=\"../../../../../../../types/quill.d.ts\" />\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n Input,\n OnDestroy,\n PLATFORM_ID,\n computed,\n inject,\n input,\n output,\n signal,\n viewChild\n} from '@angular/core';\nimport { DOCUMENT, isPlatformBrowser } from '@angular/common';\nimport { NgControl } from '@angular/forms';\n\nimport { ITowerStepColumn } from 'ngx-t-forms-types';\n// Mirrors the EditorJS sibling (Trap 16): `quill` is a browser-only bundle that touches\n// `document` at construction time and crashes under bare-Node SSR. The top-level import is\n// type-only (zero runtime emission); the real load happens inside the SSR-gated\n// `ngAfterViewInit` via dynamic `import()`.\nimport type QuillType from 'quill';\nimport type { Range as QuillRange } from 'quill';\nimport { MatFormFieldControl } from '@angular/material/form-field';\n\nimport { BaseCustomInput, BaseCustomInputConfig } from '../../../../../../services/core/t-input-controller/functions/baseCustomInput';\nimport {\n buildQuillOptions,\n isEmptyQuillDocument,\n QUILL_BUILTIN_TITLES,\n QUILL_TABLE_CONTROLS,\n QuillContent\n} from './quill.config';\nimport { EditorFullScreenHost } from '../editor-full-screen';\nimport { EditorFullScreenToggleComponent } from '../editor-full-screen-toggle/editor-full-screen-toggle.component';\nimport { _isEqual } from '../../../../../../shared/functions/isEqual';\n\nconst customInputConfig: BaseCustomInputConfig = {\n controlType: 'lib-quill-input',\n nextId: 0\n};\n\n/**\n * Quill (\"snow\" theme) rich-text editor wired into Angular Material's form-field as a\n * custom `MatFormFieldControl`. The full Quill setup — toolbar, formats, history — lives in\n * `quill.config.ts`; this component owns lifecycle, SSR gating and value round-tripping.\n */\n@Component({\n selector: 'lib-quill-input',\n templateUrl: './quill-input.component.html',\n styleUrl: './quill-input.component.css',\n imports: [EditorFullScreenToggleComponent],\n host: {\n '[class.floating]': 'shouldLabelFloat',\n '[id]': 'id',\n '(keydown.escape)': 'onEscape($event)'\n },\n providers: [{ provide: MatFormFieldControl, useExisting: QuillInputComponent }],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class QuillInputComponent\n extends BaseCustomInput<QuillContent | undefined>\n implements AfterViewInit, OnDestroy {\n\n readonly inputConfig = input.required<ITowerStepColumn>();\n\n readonly valueChanged = output<QuillContent | undefined>();\n\n protected editor: QuillType | undefined;\n\n /** Whether the editor is currently popped out to fill the screen. */\n protected readonly fullScreen = signal(false);\n\n /** Mirrors the CVA's disabled state into the signal graph so the template can react to it. */\n readonly #controlDisabled = signal(false);\n\n /**\n * Read-only when either the column config or the reactive-form control says so. Drives both\n * Quill's own editable state and hiding the formatting toolbar, which is dead weight when\n * nothing can be edited.\n */\n protected readonly readOnly = computed(() => {\n const config = this.inputConfig();\n return this.#controlDisabled() || config.readonly || config.disabled || false;\n });\n\n /**\n * Height the in-flow wrapper holds onto while the editor is popped out. Set from the editor's\n * measured height on the way in, cleared on the way out.\n */\n protected readonly reservedHeight = signal<number | null>(null);\n\n private readonly editorHost = viewChild.required<ElementRef<HTMLElement>>('editorHost');\n\n /**\n * The bordered surface Quill fills — toolbar included. This is what gets promoted to the\n * browser's top layer. (`viewChild` cannot sit on an ES-private field — NG1053.)\n */\n private readonly quillHost = viewChild.required<ElementRef<HTMLElement>>('quillHost');\n\n readonly #platformId = inject(PLATFORM_ID);\n\n readonly #document = inject(DOCUMENT);\n\n #changeHandler: (() => void) | undefined;\n\n #fullScreenHost: EditorFullScreenHost | undefined;\n\n /** Guards against overlapping pop-out transitions (see `#toggleFullScreen`). */\n #toggling = false;\n\n constructor() {\n super(\n inject(NgControl, { optional: true, self: true }) as NgControl,\n inject<ElementRef<HTMLElement>>(ElementRef),\n customInputConfig\n );\n }\n\n override get empty(): boolean {\n const n = this.value;\n return n === null || n === undefined;\n }\n\n override get shouldLabelFloat(): boolean {\n return true;\n }\n\n override _value: QuillContent | undefined = undefined;\n\n @Input() override set value(value: QuillContent | undefined) {\n if (!_isEqual(this._value, value)) {\n this._value = value;\n this.onChange(value);\n this.stateChanges.next();\n }\n }\n\n override get value(): QuillContent | undefined {\n return this._value;\n }\n\n async ngAfterViewInit(): Promise<void> {\n if (!isPlatformBrowser(this.#platformId)) return;\n\n // Browser-only dynamic load — see the Trap 16 comment at the top of this file. The\n // CSS import injects Quill's global theme styles (Quill's runtime DOM is not view-scoped).\n const [{ default: Quill, Delta }] = await Promise.all([\n import('quill'),\n import('quill/dist/quill.snow.css')\n ]);\n\n this.#fullScreenHost = new EditorFullScreenHost(this.#document, () => this.#setFullScreen(false));\n\n const config = this.inputConfig();\n this.editor = new Quill(this.editorHost().nativeElement, buildQuillOptions({\n readOnly: this.readOnly(),\n placeholder: config.placeholder\n }));\n\n const initial = this.value;\n if (initial?.ops?.length) {\n this.editor.setContents(new Delta(initial.ops), 'silent');\n }\n\n // A `setDisabledState` that arrived before the editor existed is applied here.\n this.#applyReadOnly();\n this.#decorateToolbar();\n\n this.#changeHandler = () => this.contentChangedSaveValue();\n this.editor.on('text-change', this.#changeHandler);\n }\n\n /**\n * Quill ships no icons for custom buttons and no tooltips for any button. Inject themeable\n * SVG icons (their `ql-stroke` paths inherit the toolbar colour) and `title` tooltips so the\n * toolbar reads clearly in both light and dark mode.\n */\n #decorateToolbar(): void {\n const root = this._elementRef.nativeElement;\n for (const control of QUILL_TABLE_CONTROLS) {\n const button = root.querySelector<HTMLElement>(`.ql-${control.format}`);\n if (!button) continue;\n button.innerHTML = control.icon;\n button.setAttribute('title', control.title);\n }\n for (const [selector, title] of Object.entries(QUILL_BUILTIN_TITLES)) {\n root.querySelectorAll<HTMLElement>(selector).forEach(el => el.setAttribute('title', title));\n }\n }\n\n /**\n * Keeps Quill's own read-only state in step with the control's. The pop-out re-enables pointer\n * events on the popped-out surface (Material kills them field-wide when the control is\n * disabled), so this is what actually keeps a disabled field uneditable — the CSS no longer\n * does it.\n */\n override setDisabledState(isDisabled: boolean): void {\n super.setDisabledState(isDisabled);\n this.#controlDisabled.set(isDisabled);\n this.#applyReadOnly();\n }\n\n /** Pushes {@link readOnly} onto the Quill instance, which is not reactive. */\n #applyReadOnly(): void {\n this.editor?.enable(!this.readOnly());\n }\n\n /** Toggles the pop-out from the floating button. */\n protected toggleFullScreen(): void {\n void this.#toggleFullScreen();\n }\n\n /**\n * Pops the editor out to fill the screen, or restores it. Wired to the toolbar button, so it\n * always runs inside the click gesture the Fullscreen API requires — everything up to the\n * promotion is synchronous for that reason.\n */\n async #toggleFullScreen(): Promise<void> {\n const fullScreenHost = this.#fullScreenHost;\n // Both transitions settle asynchronously; ignore clicks that land mid-flight rather than\n // letting a second `requestFullscreen()` race the first.\n if (!fullScreenHost || this.#toggling) return;\n this.#toggling = true;\n\n // Promotion re-lays the editor out, which drops the caret; put it back afterwards.\n // `getSelection()` without an argument reads the range without stealing focus.\n const selection = this.editor?.getSelection() ?? null;\n\n try {\n if (this.fullScreen()) {\n await fullScreenHost.exit();\n } else {\n const element = this.quillHost().nativeElement;\n this.reservedHeight.set(element.offsetHeight);\n await fullScreenHost.enter(element);\n }\n } finally {\n // `enter()` degrades rather than throwing, but `exit()` can reject if the browser refuses\n // to leave full screen. Either way the controller has already settled its own state, so\n // read it back instead of assuming the toggle succeeded.\n this.#setFullScreen(fullScreenHost.active);\n this.#restoreSelection(selection);\n this.#toggling = false;\n }\n }\n\n /**\n * Escape leaves the pop-out. Native full screen is torn down by the browser itself (picked up\n * through `fullscreenchange`); this covers the popover and fixed fallbacks. The event is\n * stopped so Escape closes the editor rather than an enclosing dialog.\n */\n protected onEscape(event: Event): void {\n if (!this.fullScreen()) return;\n event.preventDefault();\n event.stopPropagation();\n void this.#toggleFullScreen();\n }\n\n /**\n * Single funnel for pop-out state, so the signal and the reserved space always agree —\n * including when the browser closed full screen on its own.\n */\n #setFullScreen(active: boolean): void {\n this.fullScreen.set(active);\n if (!active) this.reservedHeight.set(null);\n }\n\n /** Returns the caret to where it was before the pop-out re-laid the editor out. */\n #restoreSelection(selection: QuillRange | null): void {\n const editor = this.editor;\n if (!editor) return;\n if (selection) editor.setSelection(selection, 'silent');\n else editor.focus();\n }\n\n contentChangedSaveValue(): void {\n if (!this.editor) return;\n const ops = this.editor.getContents().ops;\n const value: QuillContent | undefined = isEmptyQuillDocument(ops) ? undefined : { ops };\n this.value = value;\n this.onChange(value);\n this.valueChanged.emit(value);\n }\n\n override ngOnDestroy(): void {\n this.#fullScreenHost?.destroy();\n this.#fullScreenHost = undefined;\n if (this.editor && this.#changeHandler) {\n this.editor.off('text-change', this.#changeHandler);\n }\n this.editor = undefined;\n // Tear the editor down first, then let the base complete `stateChanges` / `destroy$` and\n // clear the temporary-error timer — none of which happened while this override skipped it.\n super.ngOnDestroy();\n }\n}\n","\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","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()\">\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"],"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;AA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