ngx-t-forms 2.0.35 → 2.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-hDWV_H2E.mjs → ngx-t-forms-auto-complete-input-element.component-VektEtrf.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-hDWV_H2E.mjs.map → ngx-t-forms-auto-complete-input-element.component-VektEtrf.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-auto-complete-input-element.component-ookGrpnN.mjs +261 -0
- package/fesm2022/ngx-t-forms-auto-complete-input-element.component-ookGrpnN.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-basic-input-input-element.component-BDWHCfgN.mjs → ngx-t-forms-basic-input-input-element.component-C8D6DN41.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-basic-input-input-element.component-BDWHCfgN.mjs.map → ngx-t-forms-basic-input-input-element.component-C8D6DN41.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-basic-input-input-element.component-CQVuW8z1.mjs +225 -0
- package/fesm2022/ngx-t-forms-basic-input-input-element.component-CQVuW8z1.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-8EgwXTN1.mjs +1011 -0
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-8EgwXTN1.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-calculated-field-rules.component-C_jwUGqr.mjs → ngx-t-forms-calculated-field-rules.component-B_3IbQjp.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-calculated-field-rules.component-C_jwUGqr.mjs.map → ngx-t-forms-calculated-field-rules.component-B_3IbQjp.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-B95VIBRi.mjs +136 -0
- package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-B95VIBRi.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-BIoML988.mjs → ngx-t-forms-chip-options-creator-editor.component-uTCOa48g.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-BIoML988.mjs.map → ngx-t-forms-chip-options-creator-editor.component-uTCOa48g.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-D2tkeGrw.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-BX3zJs-A.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-D2tkeGrw.mjs.map → ngx-t-forms-config-mscoa-additional-inputs.component-BX3zJs-A.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dm16WA5Y.mjs +253 -0
- package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dm16WA5Y.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-data-source-picker.component-Dij1l4-7.mjs +419 -0
- package/fesm2022/ngx-t-forms-data-source-picker.component-Dij1l4-7.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-data-source-picker.component-DHNyMfu5.mjs → ngx-t-forms-data-source-picker.component-z0l9WEw7.mjs} +6 -6
- package/fesm2022/{ngx-t-forms-data-source-picker.component-DHNyMfu5.mjs.map → ngx-t-forms-data-source-picker.component-z0l9WEw7.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-date-picker-input-element.component-DJnHqSfk.mjs → ngx-t-forms-date-picker-input-element.component-C9I8KX12.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-date-picker-input-element.component-DJnHqSfk.mjs.map → ngx-t-forms-date-picker-input-element.component-C9I8KX12.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-date-picker-input-element.component-D9BOhV6g.mjs +231 -0
- package/fesm2022/ngx-t-forms-date-picker-input-element.component-D9BOhV6g.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-Iw5Sou7u.mjs → ngx-t-forms-date-range-picker-input-element.component-B3Z47mrO.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-Iw5Sou7u.mjs.map → ngx-t-forms-date-range-picker-input-element.component-B3Z47mrO.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-BiXubnsN.mjs +333 -0
- package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-BiXubnsN.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-C5T_DK6w.mjs +543 -0
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-C5T_DK6w.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-zM7mpZxt.mjs → ngx-t-forms-document-list-label-config-editor.component-PW2XiPiH.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-zM7mpZxt.mjs.map → ngx-t-forms-document-list-label-config-editor.component-PW2XiPiH.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-document-picker.component-B47pQxMF.mjs +1217 -0
- package/fesm2022/ngx-t-forms-document-picker.component-B47pQxMF.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-document-picker.component-j7-XiDnt.mjs → ngx-t-forms-document-picker.component-BNQ1a96s.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-document-picker.component-j7-XiDnt.mjs.map → ngx-t-forms-document-picker.component-BNQ1a96s.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-editor-input-element.component-CjY8h93n.mjs → ngx-t-forms-editor-input-element.component-C12fnCTM.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-editor-input-element.component-CjY8h93n.mjs.map → ngx-t-forms-editor-input-element.component-C12fnCTM.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-editor-input-element.component-DYytkGYD.mjs +447 -0
- package/fesm2022/ngx-t-forms-editor-input-element.component-DYytkGYD.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-editor-js-input.component-BQSF3142.mjs +251 -0
- package/fesm2022/ngx-t-forms-editor-js-input.component-BQSF3142.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-editor-js-input.component-CB8iaZ8o.mjs → ngx-t-forms-editor-js-input.component-cxob42pE.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-editor-js-input.component-CB8iaZ8o.mjs.map → ngx-t-forms-editor-js-input.component-cxob42pE.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-file-upload-input-element.component-C8a1gMMz.mjs → ngx-t-forms-file-upload-input-element.component-Bgi-chdw.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-file-upload-input-element.component-C8a1gMMz.mjs.map → ngx-t-forms-file-upload-input-element.component-Bgi-chdw.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-file-upload-input-element.component-CI4onrtp.mjs +447 -0
- package/fesm2022/ngx-t-forms-file-upload-input-element.component-CI4onrtp.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-form-input-selector.component-BysF2WY-.mjs +163 -0
- package/fesm2022/ngx-t-forms-form-input-selector.component-BysF2WY-.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-form-input-selector.component-vPJ9YksN.mjs → ngx-t-forms-form-input-selector.component-xIalL_cs.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-form-input-selector.component-vPJ9YksN.mjs.map → ngx-t-forms-form-input-selector.component-xIalL_cs.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-form-json-view.component-DxvnpZdR.mjs → ngx-t-forms-form-json-view.component-CU1d8rGd.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-form-json-view.component-DxvnpZdR.mjs.map → ngx-t-forms-form-json-view.component-CU1d8rGd.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-form-json-view.component-DpU3ZTiS.mjs +28 -0
- package/fesm2022/ngx-t-forms-form-json-view.component-DpU3ZTiS.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-DqShhIBK.mjs +936 -0
- package/fesm2022/ngx-t-forms-form-section-stepper.component-DqShhIBK.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-form-section-stepper.component-_cQl_olU.mjs → ngx-t-forms-form-section-stepper.component-tGbPKHM6.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-form-section-stepper.component-_cQl_olU.mjs.map → ngx-t-forms-form-section-stepper.component-tGbPKHM6.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-forms-builder-menu.component-BsgtMZFM.mjs +816 -0
- package/fesm2022/ngx-t-forms-forms-builder-menu.component-BsgtMZFM.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-forms-builder-menu.component-BaBBPuXH.mjs → ngx-t-forms-forms-builder-menu.component-hK9C4vAa.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-forms-builder-menu.component-BaBBPuXH.mjs.map → ngx-t-forms-forms-builder-menu.component-hK9C4vAa.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-geo-location.component-BPqEkYIg.mjs → ngx-t-forms-geo-location.component-ChmvJCGu.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-geo-location.component-BPqEkYIg.mjs.map → ngx-t-forms-geo-location.component-ChmvJCGu.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-geo-location.component-DfmFok8a.mjs +329 -0
- package/fesm2022/ngx-t-forms-geo-location.component-DfmFok8a.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-image-capture-input-element.component-CZojZh_T.mjs → ngx-t-forms-image-capture-input-element.component-BpA_P017.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-image-capture-input-element.component-CZojZh_T.mjs.map → ngx-t-forms-image-capture-input-element.component-BpA_P017.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-image-capture-input-element.component-DYjnaWYE.mjs +360 -0
- package/fesm2022/ngx-t-forms-image-capture-input-element.component-DYjnaWYE.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-index-BI5sb1Lx.mjs → ngx-t-forms-index-D-7ZX0w7.mjs} +2 -2
- package/fesm2022/ngx-t-forms-index-D-7ZX0w7.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-index-DHloq32-.mjs +2 -0
- package/fesm2022/ngx-t-forms-index-DHloq32-.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-input-custom.component-Cv6jfrPf.mjs +128 -0
- package/fesm2022/ngx-t-forms-input-custom.component-Cv6jfrPf.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-input-custom.component-C-gshpIM.mjs → ngx-t-forms-input-custom.component-pUshbxSM.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-input-custom.component-C-gshpIM.mjs.map → ngx-t-forms-input-custom.component-pUshbxSM.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-input-editor.component-BKV6ZJx9.mjs +512 -0
- package/fesm2022/ngx-t-forms-input-editor.component-BKV6ZJx9.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-input-editor.component-CfaTar-x.mjs → ngx-t-forms-input-editor.component-CxXMETLl.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-input-editor.component-CfaTar-x.mjs.map → ngx-t-forms-input-editor.component-CxXMETLl.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-map-mat-options-keys-B8ubWvEz.mjs → ngx-t-forms-map-mat-options-keys-BbfC5vYI.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-map-mat-options-keys-B8ubWvEz.mjs.map → ngx-t-forms-map-mat-options-keys-BbfC5vYI.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-map-mat-options-keys-epWo0lEj.mjs +132 -0
- package/fesm2022/ngx-t-forms-map-mat-options-keys-epWo0lEj.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-Bqjjgtyf.mjs +109 -0
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-Bqjjgtyf.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-CT3wnaz8.mjs → ngx-t-forms-mat-chip-list-editor.component-CuOsHNXe.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-CT3wnaz8.mjs.map → ngx-t-forms-mat-chip-list-editor.component-CuOsHNXe.mjs.map} +1 -1
- 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-CSQ_Qtef.mjs → ngx-t-forms-missing-form-configs.component-CDIajZxP.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-CSQ_Qtef.mjs.map → ngx-t-forms-missing-form-configs.component-CDIajZxP.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-missing-form-configs.component-DRAVdGfc.mjs +114 -0
- package/fesm2022/ngx-t-forms-missing-form-configs.component-DRAVdGfc.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-C9b-pNLr.mjs +69 -0
- package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-C9b-pNLr.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-Ovz5PFIe.mjs → ngx-t-forms-mscoa-chart-toolbar.component-D1ASX1mt.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-Ovz5PFIe.mjs.map → ngx-t-forms-mscoa-chart-toolbar.component-D1ASX1mt.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-mscoa-error-display.component-DzFibbuY.mjs +200 -0
- package/fesm2022/ngx-t-forms-mscoa-error-display.component-DzFibbuY.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-ByR5fNu5.mjs → ngx-t-forms-mscoa-segment-config.component-CjuxTqfX.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-ByR5fNu5.mjs.map → ngx-t-forms-mscoa-segment-config.component-CjuxTqfX.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-D9KrXNS6.mjs +850 -0
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-D9KrXNS6.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-DV93x0Rr.mjs +107 -0
- package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-DV93x0Rr.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-multiple-input-input-element.component-DtXYH3Gb.mjs → ngx-t-forms-multiple-input-input-element.component-BA61uQ2q.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-multiple-input-input-element.component-DtXYH3Gb.mjs.map → ngx-t-forms-multiple-input-input-element.component-BA61uQ2q.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-multiple-input-input-element.component-BxQYrUJL.mjs +1665 -0
- package/fesm2022/ngx-t-forms-multiple-input-input-element.component-BxQYrUJL.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-ngx-t-forms-CW8jN83w.mjs → ngx-t-forms-ngx-t-forms-CJGAj18J.mjs} +919 -129
- package/fesm2022/ngx-t-forms-ngx-t-forms-CJGAj18J.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-ngx-t-forms-D7kDvkTZ.mjs +27352 -0
- package/fesm2022/ngx-t-forms-ngx-t-forms-D7kDvkTZ.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-paginated-selection-table-DeY5vQti.mjs +1024 -0
- package/fesm2022/ngx-t-forms-paginated-selection-table-DeY5vQti.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-paginated-selection-table-CWepPKmn.mjs → ngx-t-forms-paginated-selection-table-yvhqQxPV.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-paginated-selection-table-CWepPKmn.mjs.map → ngx-t-forms-paginated-selection-table-yvhqQxPV.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-payload-template-editor.component-BzY-kX6W.mjs +234 -0
- package/fesm2022/ngx-t-forms-payload-template-editor.component-BzY-kX6W.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-payload-template-editor.component-sqY3bYiZ.mjs +203 -0
- package/fesm2022/ngx-t-forms-payload-template-editor.component-sqY3bYiZ.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-pipeline-generator.component-1EuDUOtI.mjs → ngx-t-forms-pipeline-generator.component-COvr1j_v.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-pipeline-generator.component-1EuDUOtI.mjs.map → ngx-t-forms-pipeline-generator.component-COvr1j_v.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-pipeline-generator.component-CcHgQ-MT.mjs +1126 -0
- package/fesm2022/ngx-t-forms-pipeline-generator.component-CcHgQ-MT.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-record-list-manager.component-C-qKvSVR.mjs → ngx-t-forms-record-list-manager.component-CY4GnAOb.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-record-list-manager.component-C-qKvSVR.mjs.map → ngx-t-forms-record-list-manager.component-CY4GnAOb.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-record-list-manager.component-DuE2OdC4.mjs +545 -0
- package/fesm2022/ngx-t-forms-record-list-manager.component-DuE2OdC4.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-required-inputs.component-BWKUC8zQ.mjs +451 -0
- package/fesm2022/ngx-t-forms-required-inputs.component-BWKUC8zQ.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-required-inputs.component-D5M9c-1i.mjs → ngx-t-forms-required-inputs.component-ByBeNLXu.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-required-inputs.component-D5M9c-1i.mjs.map → ngx-t-forms-required-inputs.component-ByBeNLXu.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BEqnJqZG.mjs +625 -0
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BEqnJqZG.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-CCz3c0X_.mjs → ngx-t-forms-rest-api-call-setup.component-CkLePXoO.mjs} +59 -13
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-CkLePXoO.mjs.map +1 -0
- 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-CQR27H3a.mjs +248 -0
- package/fesm2022/ngx-t-forms-section-report.component-CQR27H3a.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-section-report.component-BypN3AWY.mjs → ngx-t-forms-section-report.component-mUpSxbaB.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-section-report.component-BypN3AWY.mjs.map → ngx-t-forms-section-report.component-mUpSxbaB.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-select-input-element.component-CLs5UkmC.mjs +408 -0
- package/fesm2022/ngx-t-forms-select-input-element.component-CLs5UkmC.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-select-input-element.component-DNBZVxhD.mjs → ngx-t-forms-select-input-element.component-c7IgHdXA.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-select-input-element.component-DNBZVxhD.mjs.map → ngx-t-forms-select-input-element.component-c7IgHdXA.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-selection-options-editor.component-DiegTjWX.mjs +275 -0
- package/fesm2022/ngx-t-forms-selection-options-editor.component-DiegTjWX.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-selection-options-editor.component-BSmmQQo3.mjs → ngx-t-forms-selection-options-editor.component-WfuGdtvK.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-selection-options-editor.component-BSmmQQo3.mjs.map → ngx-t-forms-selection-options-editor.component-WfuGdtvK.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-CQPrr7Cz.mjs +341 -0
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-CQPrr7Cz.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-textarea-input-element.component-BEcNjLGC.mjs → ngx-t-forms-textarea-input-element.component-C7H84RGw.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-textarea-input-element.component-BEcNjLGC.mjs.map → ngx-t-forms-textarea-input-element.component-C7H84RGw.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-textarea-input-element.component-Coxr1XD7.mjs +233 -0
- package/fesm2022/ngx-t-forms-textarea-input-element.component-Coxr1XD7.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-toggle-input-element.component-BWnTeuHM.mjs +305 -0
- package/fesm2022/ngx-t-forms-toggle-input-element.component-BWnTeuHM.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-toggle-input-element.component-Cn_VOOEu.mjs → ngx-t-forms-toggle-input-element.component-Cgzg89Ug.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-toggle-input-element.component-Cn_VOOEu.mjs.map → ngx-t-forms-toggle-input-element.component-Cgzg89Ug.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-validators-config.component-DdKLxOr9.mjs → ngx-t-forms-validators-config.component-DgIVRSvF.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-validators-config.component-DdKLxOr9.mjs.map → ngx-t-forms-validators-config.component-DgIVRSvF.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-validators-config.component-DjLB40z-.mjs +1105 -0
- package/fesm2022/ngx-t-forms-validators-config.component-DjLB40z-.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-workflow-adjudication.component-DB4arTNG.mjs → ngx-t-forms-workflow-adjudication.component-CB6qBxgr.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-workflow-adjudication.component-DB4arTNG.mjs.map → ngx-t-forms-workflow-adjudication.component-CB6qBxgr.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-workflow-adjudication.component-_A3v5MxN.mjs +2923 -0
- package/fesm2022/ngx-t-forms-workflow-adjudication.component-_A3v5MxN.mjs.map +1 -0
- package/fesm2022/ngx-t-forms.mjs +1 -1
- package/package.json +2 -2
- package/styles/_json-editor-syntax.scss +16 -0
- package/fesm2022/ngx-t-forms-index-BI5sb1Lx.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-ngx-t-forms-CW8jN83w.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-CCz3c0X_.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-t-forms-input-editor.component-BKV6ZJx9.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/default-element/default-element.component.html","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/default-element/default-element.component.ts","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/input-element-editor/input-element-editor.component.ts","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/input-element-editor/input-element-editor.component.html","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/input-editor/input-editor.component.html","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/input-editor/input-editor.component.ts"],"sourcesContent":["<br>\r\n<mat-nav-list style=\"margin: 5px;\">\r\n\r\n\r\n @defer () {\r\n @for (input of getDefaultInputs(); track input) {\r\n @if (inputs[input]?.disabled === false) {\r\n <mat-list-item style=\"background: var(--mdc-elevated-card-container-color, var(--mat-app-surface-container-low));\"\r\n (click)=\"selectInputTemplate(input)\">\r\n <mat-icon matListItemAvatar>{{ getInputIcon(input) }}</mat-icon>\r\n <span matListItemTitle href=\"...\">{{ inputs[input]?.label}}</span>\r\n </mat-list-item>\r\n <mat-divider></mat-divider>\r\n }\r\n }\r\n \r\n }\r\n\r\n\r\n</mat-nav-list>","import { ChangeDetectionStrategy, Component, DestroyRef, inject } from '@angular/core';\r\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\r\nimport { MatListModule } from '@angular/material/list';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatDividerModule } from '@angular/material/divider';\r\n\r\nimport { FormsStoreService } from '../../../forms/store/forms-store.service';\r\nimport { DefaultInputConfig, ElementTypes } from 'ngx-t-forms-types';\r\nimport { take } from 'rxjs';\r\nimport { getInputIcon } from '../../../../shared/functions/getInputIcon';\r\n\r\n@Component({\r\n selector: 'lib-default-element',\r\n imports: [MatListModule, MatIconModule, MatDividerModule],\r\n templateUrl: './default-element.component.html',\r\n styleUrl: './default-element.component.scss',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class DefaultElementComponent {\r\n protected readonly inputs = DefaultInputConfig;\r\n readonly #store = inject(FormsStoreService);\r\n readonly #destroyRef = inject(DestroyRef);\r\n\r\n protected getDefaultInputs(): ElementTypes[] {\r\n const i = JSON.parse(JSON.stringify(DefaultInputConfig)) as Record<string, unknown>;\r\n return Object.keys(i) as ElementTypes[];\r\n }\r\n\r\n protected getInputIcon(element: ElementTypes): string {\r\n return getInputIcon(element);\r\n }\r\n\r\n protected selectInputTemplate(input: ElementTypes): void {\r\n this.#store.selectors.selectInputInEditId$\r\n .pipe(take(1), takeUntilDestroyed(this.#destroyRef))\r\n .subscribe((id) => {\r\n if (!id) return;\r\n this.#store.actionsFormBuilder.selectInputTemplate(id, input);\r\n });\r\n }\r\n}\r\n","// TODO(unify): see ngx-t-forms/docs/migration/element-editor-unification.md\nimport { ChangeDetectionStrategy, Component, DOCUMENT, PLATFORM_ID, computed, inject } from '@angular/core';\nimport { isPlatformBrowser } from '@angular/common';\nimport { MatExpansionModule } from '@angular/material/expansion';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatListModule } from '@angular/material/list';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatCardModule } from '@angular/material/card';\nimport { MatFormFieldModule } from '@angular/material/form-field';\n\nimport { FormsStoreService } from '../../../forms/store/forms-store.service';\n\nimport { TDynamicDataEditComponent, TDynamicDataViewComponent } from '../../..';\n\nimport type { ElementEditorInnerSectionElementInterface, ElementTypes, FormColumnInputs, ScoaInnerInput } from 'ngx-t-forms-types';\nimport { getInputIcon } from '../../../../shared/functions/getInputIcon';\n\n@Component({\n selector: 'lib-input-element-editor',\n imports: [\n MatExpansionModule,\n MatIconModule,\n MatListModule,\n MatTooltipModule,\n MatProgressSpinnerModule,\n MatButtonModule,\n MatCardModule,\n MatFormFieldModule,\n TDynamicDataEditComponent,\n TDynamicDataViewComponent,\n ],\n templateUrl: './input-element-editor.component.html',\n styleUrl: './input-element-editor.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class InputElementEditorComponent {\n readonly #store = inject(FormsStoreService);\n readonly #platformId = inject(PLATFORM_ID);\n readonly #document = inject(DOCUMENT);\n\n readonly #signals = this.#store.formBuilderSignalSelectors;\n\n protected readonly vm = computed(() => ({\n defaultInputInEdit: this.#signals.defaultInputInEdit(),\n inputInEdit: this.#signals.inputInEdit(),\n inputElementEditorConfigs: this.#signals.inputElementEditorConfigs(),\n inputInEditValidationErrors: this.#signals.inputInEditValidationErrors(),\n formInputs: this.#signals.getAllFormInputs(),\n }));\n\n protected readonly elementConfigurationChanged = (\n value: unknown,\n ele: ElementEditorInnerSectionElementInterface,\n ): void => {\n const inputVal = this.#signals.inputInEdit();\n if (!inputVal) return;\n this.#store.actionsFormBuilder.elementConfigurationChanged(inputVal.id, value, ele);\n };\n\n protected readonly clearInputInEdit = (): void => {\n const inputVal = this.#signals.inputInEdit();\n if (!inputVal) return;\n this.#store.actionsFormBuilder.clearInputInEdit(inputVal.id);\n };\n\n protected readonly elementBlur = (\n event: unknown,\n element: ElementEditorInnerSectionElementInterface,\n ): void => {\n const inputVal = this.#signals.inputInEdit();\n if (!inputVal) return;\n this.#store.actionsFormBuilder.elementBlur(inputVal.id, event, element);\n };\n\n /** Creates or updates an account-level custom input from the segment-config quick editor. */\n protected readonly saveMscoaCustomInput = (\n sectionId: string,\n scoaInputId: string,\n config: Pick<ScoaInnerInput, 'element' | 'label' | 'formControlName' | 'singleSelect' | 'readonly'> & { id?: string },\n ): void => {\n this.#store.actionsFormBuilder.saveScoaCustomInput(sectionId, scoaInputId, config);\n };\n\n /** Opens an MSCOA custom input in this editor for advanced configuration. */\n protected readonly editMscoaInput = (input: FormColumnInputs): void => {\n this.#store.actionsFormBuilder.editInput(input);\n };\n\n /** Removes an MSCOA custom input from the config. */\n protected readonly deleteMscoaInput = (input: FormColumnInputs): void => {\n this.#store.actionsFormBuilder.formDeleteInput(input);\n };\n\n protected getInputIcon(element: ElementTypes | undefined | null): string {\n return getInputIcon(element);\n }\n\n protected showDebugData(): void {\n if (!isPlatformBrowser(this.#platformId)) return;\n const win = this.#document.defaultView;\n if (!win) return;\n const jsonData = JSON.stringify(this.vm(), null, 2);\n const blob = new Blob([jsonData], { type: 'application/json' });\n const url = win.URL.createObjectURL(blob);\n const link = this.#document.createElement('a');\n link.href = url;\n link.download = 'debug-data.json';\n link.click();\n win.URL.revokeObjectURL(url);\n }\n}\n","@if (vm(); as vm) {\n<div class=\"ee-section-bar\">\n <span class=\"ee-section-eyebrow\">Element configuration</span>\n <span class=\"spacer\"></span>\n @if ((vm.inputElementEditorConfigs.editorSections || []).length) {\n <span class=\"ee-section-count\">{{ (vm.inputElementEditorConfigs.editorSections || []).length }} sections</span>\n }\n</div>\n\n@defer (on viewport) {\n<mat-accordion class=\"ee-accordion\" togglePosition=\"before\" multi>\n @for(section of (vm.inputElementEditorConfigs.editorSections || []); track section.id; let i = $index) {\n <mat-expansion-panel class=\"ee-panel mat-elevation-z0\">\n <mat-expansion-panel-header class=\"ee-panel-header\" collapsedHeight=\"48px\" expandedHeight=\"48px\">\n <mat-panel-title class=\"ee-panel-title\">\n <span class=\"ee-panel-label\">{{ section.label }}</span>\n <span class=\"spacer\"></span>\n @if (section.hasErrors) {\n <mat-icon class=\"ee-panel-error\" color=\"warn\">error</mat-icon>\n }\n @if (section.showItemValue && !!(vm.inputInEdit)) {\n <span class=\"ee-item-value\">{{ vm.inputInEdit[section.showItemValue] }}</span>\n }\n </mat-panel-title>\n </mat-expansion-panel-header>\n\n <div class=\"ee-panel-body\">\n <!-- Input-type switcher (first section only) -->\n @if(i === 0) {\n <mat-nav-list class=\"ee-input-switcher\">\n <mat-list-item [disabled]=\"vm.inputInEdit?.systemDefault\" matTooltip=\"Change input element\"\n (click)=\"vm.inputInEdit?.systemDefault ? '' : clearInputInEdit()\">\n <mat-icon matListItemAvatar [attr.aria-label]=\"(vm.defaultInputInEdit)?.label\">\n {{ getInputIcon(vm.inputInEdit?.element) }}\n </mat-icon>\n <span matListItemTitle>{{ (vm.defaultInputInEdit)?.label }}</span>\n <span matListItemMeta>\n <mat-icon>arrow_forward_ios</mat-icon>\n </span>\n </mat-list-item>\n </mat-nav-list>\n }\n\n <!-- Section elements -->\n @for(element of section.elements; track element.id) {\n <div class=\"ee-element\">\n @defer (on viewport) {\n <lib-t-dynamic-data-edit [editorConfig]=\"element\" [data]=\"(vm.inputInEdit)\"\n [validationErrors]=\"element.computedErrors ?? null\" [mscoaSaveCustomInput]=\"saveMscoaCustomInput\"\n [mscoaEditInput]=\"editMscoaInput\" [mscoaDeleteInput]=\"deleteMscoaInput\"\n (valueChange)=\"elementConfigurationChanged($event, element)\" [formInputs]=\"(vm.formInputs) || []\"\n (blur)=\"elementBlur($event, element)\">\n </lib-t-dynamic-data-edit>\n } @placeholder {\n <div class=\"ee-element-loading\">\n <mat-spinner diameter=\"18\"></mat-spinner>\n </div>\n }\n </div>\n }\n </div>\n </mat-expansion-panel>\n }\n</mat-accordion>\n} @placeholder {\n<div class=\"ee-loading\">\n <mat-spinner diameter=\"44\" />\n</div>\n} @error {\n<div class=\"ee-error\">\n <mat-icon class=\"ee-error-icon\" aria-hidden=\"false\">error_outline</mat-icon>\n <h3 class=\"ee-error-title\">Error loading element editor</h3>\n <p class=\"ee-error-text\">An error occurred while loading the element editor. Please try again later.</p>\n</div>\n}\n\n<!-- Diagnostic section -->\n<div class=\"ee-section-bar ee-section-bar--diagnostic\">\n <span class=\"ee-section-eyebrow\">Diagnostic data</span>\n <span class=\"spacer\"></span>\n</div>\n\n<mat-accordion class=\"ee-accordion\" togglePosition=\"before\" multi>\n @if(((vm.inputInEditValidationErrors) || []).length > 0) {\n <mat-expansion-panel class=\"ee-panel mat-elevation-z0\">\n <mat-expansion-panel-header class=\"ee-panel-header\" collapsedHeight=\"48px\" expandedHeight=\"48px\">\n <mat-panel-title class=\"ee-panel-title\">\n <span class=\"ee-panel-label\">Validation Errors</span>\n <span class=\"spacer\"></span>\n <span class=\"ee-item-value ee-item-value--error\">{{ (vm.inputInEditValidationErrors).length }}</span>\n </mat-panel-title>\n </mat-expansion-panel-header>\n <div class=\"ee-panel-body\">\n <div class=\"ee-error-summary\">\n <h3 class=\"ee-error-summary-title\">All configuration errors</h3>\n <p class=\"ee-error-summary-text\">\n {{ (vm.inputInEditValidationErrors).length }} errors found. When an error is found, the input will\n not be saved.\n </p>\n <ul class=\"ee-error-list\">\n @for(error of (vm.inputInEditValidationErrors); track $index) {\n <li><strong>{{ error.key }}</strong> {{ error.message }}</li>\n }\n </ul>\n </div>\n </div>\n </mat-expansion-panel>\n }\n <mat-expansion-panel class=\"ee-panel mat-elevation-z0\">\n <mat-expansion-panel-header class=\"ee-panel-header\" collapsedHeight=\"48px\" expandedHeight=\"48px\">\n <mat-panel-title class=\"ee-panel-title\">\n <span class=\"ee-panel-label\">Complete Virtual Model</span>\n <span class=\"spacer\"></span>\n <button mat-icon-button class=\"ee-diagnostic-btn\" matTooltip=\"Download debug data\"\n (click)=\"showDebugData(); $event.stopPropagation()\">\n <mat-icon>troubleshoot</mat-icon>\n </button>\n </mat-panel-title>\n </mat-expansion-panel-header>\n <div class=\"ee-panel-body\">\n <lib-t-dynamic-data-view [data]=\"({\n 'Default Input Template InEdit': vm.defaultInputInEdit,\n 'Input In Edit': vm.inputInEdit,\n 'Input Editor Sections': vm.inputElementEditorConfigs?.editorSections\n })\"></lib-t-dynamic-data-view>\n </div>\n </mat-expansion-panel>\n</mat-accordion>\n}\n","<mat-card class=\"element-editor\" appearance=\"outlined\">\n <header class=\"ee-header\">\n <div class=\"ee-header-icon\" aria-hidden=\"true\">\n <mat-icon>tune</mat-icon>\n </div>\n <div class=\"ee-header-text\">\n <h2 class=\"ee-title\">\n {{\n !!(inputInEdit$|async)?.element\n ? \"Edit \" + (inputInEdit$|async)?.label + \" element\"\n : \"Setup Form Element\"\n }}\n </h2>\n <p class=\"ee-subtitle\">\n {{\n !!(inputInEdit$|async)?.element\n ? \"Configure the element below\"\n : \"Form elements are the components making up a form section. Their type is defined by behaviour and use case — for example, a date range picker is well suited to determining duration.\"\n }}\n </p>\n </div>\n <button mat-icon-button cdkDragHandle class=\"ee-drag\" aria-label=\"Drag to reposition\">\n <mat-icon>drag_indicator</mat-icon>\n </button>\n </header>\n\n <div class=\"ee-content\">\n @if(!!((inputInEdit$|async))?.element){\n <lib-input-element-editor></lib-input-element-editor>\n }@else{\n <lib-default-element></lib-default-element>\n }\n </div>\n\n <footer class=\"ee-actions\">\n <button (click)=\"closeEditor()\" mat-button class=\"ee-close\">Close</button>\n <span class=\"spacer\"></span>\n @if (!((inputInEdit$|async))?.id) {\n <button mat-flat-button (click)=\"saveInput()\" [disabled]=\"((validationErrors$|async)||[]).length>0\"\n color=\"primary\" class=\"ee-save\">Save new input</button>\n }\n </footer>\n</mat-card>\n","import { AsyncPipe } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component, inject } from '@angular/core';\r\nimport { MatCardModule } from '@angular/material/card';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatDividerModule } from '@angular/material/divider';\r\nimport { MatToolbarModule } from '@angular/material/toolbar';\r\nimport { DragDropModule } from '@angular/cdk/drag-drop';\r\n\r\nimport { DefaultElementComponent } from '../default-element/default-element.component';\r\nimport { InputElementEditorComponent } from '../input-element-editor/input-element-editor.component';\r\nimport { FormsStoreService } from '../../../forms/store/forms-store.service';\r\n\r\nimport { Observable, take, tap } from 'rxjs';\r\nimport { DefaultInputConfig } from 'ngx-t-forms-types';\r\n\r\n@Component({\r\n selector: 'lib-input-editor',\r\n imports: [\r\n AsyncPipe,\r\n MatCardModule,\r\n MatButtonModule,\r\n MatIconModule,\r\n MatDividerModule,\r\n MatToolbarModule,\r\n DragDropModule,\r\n DefaultElementComponent,\r\n InputElementEditorComponent,\r\n ],\r\n templateUrl: './input-editor.component.html',\r\n styleUrl: './input-editor.component.scss',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class InputEditorComponent {\r\n readonly #store = inject(FormsStoreService);\r\n\r\n protected readonly defaultInputs = DefaultInputConfig;\r\n protected readonly inputInEdit$ = this.#store.formBuilderSelectors.inputInEdit$;\r\n protected readonly defaultInputInEdit$ = this.#store.formBuilderSelectors.defaultInputInEdit$;\r\n\r\n protected readonly saveInput = (): void => {\r\n this.inputInEdit$\r\n .pipe(\r\n take(1),\r\n tap((inputVal) => {\r\n if (!inputVal) return;\r\n this.#store.actionsFormBuilder.saveInput(inputVal.id);\r\n }),\r\n )\r\n .subscribe();\r\n };\r\n\r\n protected readonly closeEditor = (): void => {\r\n this.#store.actions.setInputInEditId({ inputInEdit: null });\r\n };\r\n\r\n protected get validationErrors$(): Observable<{ key: string; message: string }[] | null> {\r\n return this.#store.formBuilderSelectors.inputInEditValidationErrors$;\r\n }\r\n}\r\n"],"names":["i1","_c0","i2","i3"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAOM,EAAA,CAAA,cAAA,CAAA,CAAA,EAAA,eAAA,EAAA,CAAA,CACuC;AAArC,IAAA,EAAA,CAAA,UAAA,CAAA,OAAA,EAAA,SAAA,2FAAA,GAAA,EAAA,EAAA,CAAA,aAAA,CAAA,GAAA,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
14
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
15
15
|
import * as i6 from '@angular/material/list';
|
|
16
16
|
import { MatListModule } from '@angular/material/list';
|
|
17
|
-
import { F as FormsStoreService, T as TDynamicDataEditComponent, b as TDynamicDataViewComponent } from './ngx-t-forms-ngx-t-forms-
|
|
17
|
+
import { F as FormsStoreService, T as TDynamicDataEditComponent, b as TDynamicDataViewComponent } from './ngx-t-forms-ngx-t-forms-CJGAj18J.mjs';
|
|
18
18
|
import { DefaultInputConfig } from 'ngx-t-forms-types';
|
|
19
19
|
import { take, tap } from 'rxjs';
|
|
20
20
|
import { g as getInputIcon } from './ngx-t-forms-getInputIcon-B4ADgevZ.mjs';
|
|
@@ -25,7 +25,7 @@ import { MatTooltipModule } from '@angular/material/tooltip';
|
|
|
25
25
|
import * as i4 from '@angular/material/progress-spinner';
|
|
26
26
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
27
27
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
28
|
-
import './ngx-t-forms-index-
|
|
28
|
+
import './ngx-t-forms-index-D-7ZX0w7.mjs';
|
|
29
29
|
|
|
30
30
|
class DefaultElementComponent {
|
|
31
31
|
constructor() {
|
|
@@ -187,4 +187,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
187
187
|
}] });
|
|
188
188
|
|
|
189
189
|
export { InputEditorComponent };
|
|
190
|
-
//# sourceMappingURL=ngx-t-forms-input-editor.component-
|
|
190
|
+
//# sourceMappingURL=ngx-t-forms-input-editor.component-CxXMETLl.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-t-forms-input-editor.component-CfaTar-x.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/default-element/default-element.component.ts","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/default-element/default-element.component.html","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/input-element-editor/input-element-editor.component.ts","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/input-element-editor/input-element-editor.component.html","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/input-editor/input-editor.component.ts","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/input-editor/input-editor.component.html"],"sourcesContent":["import { ChangeDetectionStrategy, Component, DestroyRef, inject } from '@angular/core';\r\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\r\nimport { MatListModule } from '@angular/material/list';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatDividerModule } from '@angular/material/divider';\r\n\r\nimport { FormsStoreService } from '../../../forms/store/forms-store.service';\r\nimport { DefaultInputConfig, ElementTypes } from 'ngx-t-forms-types';\r\nimport { take } from 'rxjs';\r\nimport { getInputIcon } from '../../../../shared/functions/getInputIcon';\r\n\r\n@Component({\r\n selector: 'lib-default-element',\r\n imports: [MatListModule, MatIconModule, MatDividerModule],\r\n templateUrl: './default-element.component.html',\r\n styleUrl: './default-element.component.scss',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class DefaultElementComponent {\r\n protected readonly inputs = DefaultInputConfig;\r\n readonly #store = inject(FormsStoreService);\r\n readonly #destroyRef = inject(DestroyRef);\r\n\r\n protected getDefaultInputs(): ElementTypes[] {\r\n const i = JSON.parse(JSON.stringify(DefaultInputConfig)) as Record<string, unknown>;\r\n return Object.keys(i) as ElementTypes[];\r\n }\r\n\r\n protected getInputIcon(element: ElementTypes): string {\r\n return getInputIcon(element);\r\n }\r\n\r\n protected selectInputTemplate(input: ElementTypes): void {\r\n this.#store.selectors.selectInputInEditId$\r\n .pipe(take(1), takeUntilDestroyed(this.#destroyRef))\r\n .subscribe((id) => {\r\n if (!id) return;\r\n this.#store.actionsFormBuilder.selectInputTemplate(id, input);\r\n });\r\n }\r\n}\r\n","<br>\r\n<mat-nav-list style=\"margin: 5px;\">\r\n\r\n\r\n @defer () {\r\n @for (input of getDefaultInputs(); track input) {\r\n @if (inputs[input]?.disabled === false) {\r\n <mat-list-item style=\"background: var(--mdc-elevated-card-container-color, var(--mat-app-surface-container-low));\"\r\n (click)=\"selectInputTemplate(input)\">\r\n <mat-icon matListItemAvatar>{{ getInputIcon(input) }}</mat-icon>\r\n <span matListItemTitle href=\"...\">{{ inputs[input]?.label}}</span>\r\n </mat-list-item>\r\n <mat-divider></mat-divider>\r\n }\r\n }\r\n \r\n }\r\n\r\n\r\n</mat-nav-list>","// TODO(unify): see ngx-t-forms/docs/migration/element-editor-unification.md\nimport { ChangeDetectionStrategy, Component, DOCUMENT, PLATFORM_ID, computed, inject } from '@angular/core';\nimport { isPlatformBrowser } from '@angular/common';\nimport { MatExpansionModule } from '@angular/material/expansion';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatListModule } from '@angular/material/list';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatCardModule } from '@angular/material/card';\nimport { MatFormFieldModule } from '@angular/material/form-field';\n\nimport { FormsStoreService } from '../../../forms/store/forms-store.service';\n\nimport { TDynamicDataEditComponent, TDynamicDataViewComponent } from '../../..';\n\nimport type { ElementEditorInnerSectionElementInterface, ElementTypes, FormColumnInputs, ScoaInnerInput } from 'ngx-t-forms-types';\nimport { getInputIcon } from '../../../../shared/functions/getInputIcon';\n\n@Component({\n selector: 'lib-input-element-editor',\n imports: [\n MatExpansionModule,\n MatIconModule,\n MatListModule,\n MatTooltipModule,\n MatProgressSpinnerModule,\n MatButtonModule,\n MatCardModule,\n MatFormFieldModule,\n TDynamicDataEditComponent,\n TDynamicDataViewComponent,\n ],\n templateUrl: './input-element-editor.component.html',\n styleUrl: './input-element-editor.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class InputElementEditorComponent {\n readonly #store = inject(FormsStoreService);\n readonly #platformId = inject(PLATFORM_ID);\n readonly #document = inject(DOCUMENT);\n\n readonly #signals = this.#store.formBuilderSignalSelectors;\n\n protected readonly vm = computed(() => ({\n defaultInputInEdit: this.#signals.defaultInputInEdit(),\n inputInEdit: this.#signals.inputInEdit(),\n inputElementEditorConfigs: this.#signals.inputElementEditorConfigs(),\n inputInEditValidationErrors: this.#signals.inputInEditValidationErrors(),\n formInputs: this.#signals.getAllFormInputs(),\n }));\n\n protected readonly elementConfigurationChanged = (\n value: unknown,\n ele: ElementEditorInnerSectionElementInterface,\n ): void => {\n const inputVal = this.#signals.inputInEdit();\n if (!inputVal) return;\n this.#store.actionsFormBuilder.elementConfigurationChanged(inputVal.id, value, ele);\n };\n\n protected readonly clearInputInEdit = (): void => {\n const inputVal = this.#signals.inputInEdit();\n if (!inputVal) return;\n this.#store.actionsFormBuilder.clearInputInEdit(inputVal.id);\n };\n\n protected readonly elementBlur = (\n event: unknown,\n element: ElementEditorInnerSectionElementInterface,\n ): void => {\n const inputVal = this.#signals.inputInEdit();\n if (!inputVal) return;\n this.#store.actionsFormBuilder.elementBlur(inputVal.id, event, element);\n };\n\n /** Creates or updates an account-level custom input from the segment-config quick editor. */\n protected readonly saveMscoaCustomInput = (\n sectionId: string,\n scoaInputId: string,\n config: Pick<ScoaInnerInput, 'element' | 'label' | 'formControlName' | 'singleSelect' | 'readonly'> & { id?: string },\n ): void => {\n this.#store.actionsFormBuilder.saveScoaCustomInput(sectionId, scoaInputId, config);\n };\n\n /** Opens an MSCOA custom input in this editor for advanced configuration. */\n protected readonly editMscoaInput = (input: FormColumnInputs): void => {\n this.#store.actionsFormBuilder.editInput(input);\n };\n\n /** Removes an MSCOA custom input from the config. */\n protected readonly deleteMscoaInput = (input: FormColumnInputs): void => {\n this.#store.actionsFormBuilder.formDeleteInput(input);\n };\n\n protected getInputIcon(element: ElementTypes | undefined | null): string {\n return getInputIcon(element);\n }\n\n protected showDebugData(): void {\n if (!isPlatformBrowser(this.#platformId)) return;\n const win = this.#document.defaultView;\n if (!win) return;\n const jsonData = JSON.stringify(this.vm(), null, 2);\n const blob = new Blob([jsonData], { type: 'application/json' });\n const url = win.URL.createObjectURL(blob);\n const link = this.#document.createElement('a');\n link.href = url;\n link.download = 'debug-data.json';\n link.click();\n win.URL.revokeObjectURL(url);\n }\n}\n","@if (vm(); as vm) {\n<div class=\"ee-section-bar\">\n <span class=\"ee-section-eyebrow\">Element configuration</span>\n <span class=\"spacer\"></span>\n @if ((vm.inputElementEditorConfigs.editorSections || []).length) {\n <span class=\"ee-section-count\">{{ (vm.inputElementEditorConfigs.editorSections || []).length }} sections</span>\n }\n</div>\n\n@defer (on viewport) {\n<mat-accordion class=\"ee-accordion\" togglePosition=\"before\" multi>\n @for(section of (vm.inputElementEditorConfigs.editorSections || []); track section.id; let i = $index) {\n <mat-expansion-panel class=\"ee-panel mat-elevation-z0\">\n <mat-expansion-panel-header class=\"ee-panel-header\" collapsedHeight=\"48px\" expandedHeight=\"48px\">\n <mat-panel-title class=\"ee-panel-title\">\n <span class=\"ee-panel-label\">{{ section.label }}</span>\n <span class=\"spacer\"></span>\n @if (section.hasErrors) {\n <mat-icon class=\"ee-panel-error\" color=\"warn\">error</mat-icon>\n }\n @if (section.showItemValue && !!(vm.inputInEdit)) {\n <span class=\"ee-item-value\">{{ vm.inputInEdit[section.showItemValue] }}</span>\n }\n </mat-panel-title>\n </mat-expansion-panel-header>\n\n <div class=\"ee-panel-body\">\n <!-- Input-type switcher (first section only) -->\n @if(i === 0) {\n <mat-nav-list class=\"ee-input-switcher\">\n <mat-list-item [disabled]=\"vm.inputInEdit?.systemDefault\" matTooltip=\"Change input element\"\n (click)=\"vm.inputInEdit?.systemDefault ? '' : clearInputInEdit()\">\n <mat-icon matListItemAvatar [attr.aria-label]=\"(vm.defaultInputInEdit)?.label\">\n {{ getInputIcon(vm.inputInEdit?.element) }}\n </mat-icon>\n <span matListItemTitle>{{ (vm.defaultInputInEdit)?.label }}</span>\n <span matListItemMeta>\n <mat-icon>arrow_forward_ios</mat-icon>\n </span>\n </mat-list-item>\n </mat-nav-list>\n }\n\n <!-- Section elements -->\n @for(element of section.elements; track element.id) {\n <div class=\"ee-element\">\n @defer (on viewport) {\n <lib-t-dynamic-data-edit [editorConfig]=\"element\" [data]=\"(vm.inputInEdit)\"\n [validationErrors]=\"element.computedErrors ?? null\" [mscoaSaveCustomInput]=\"saveMscoaCustomInput\"\n [mscoaEditInput]=\"editMscoaInput\" [mscoaDeleteInput]=\"deleteMscoaInput\"\n (valueChange)=\"elementConfigurationChanged($event, element)\" [formInputs]=\"(vm.formInputs) || []\"\n (blur)=\"elementBlur($event, element)\">\n </lib-t-dynamic-data-edit>\n } @placeholder {\n <div class=\"ee-element-loading\">\n <mat-spinner diameter=\"18\"></mat-spinner>\n </div>\n }\n </div>\n }\n </div>\n </mat-expansion-panel>\n }\n</mat-accordion>\n} @placeholder {\n<div class=\"ee-loading\">\n <mat-spinner diameter=\"44\" />\n</div>\n} @error {\n<div class=\"ee-error\">\n <mat-icon class=\"ee-error-icon\" aria-hidden=\"false\">error_outline</mat-icon>\n <h3 class=\"ee-error-title\">Error loading element editor</h3>\n <p class=\"ee-error-text\">An error occurred while loading the element editor. Please try again later.</p>\n</div>\n}\n\n<!-- Diagnostic section -->\n<div class=\"ee-section-bar ee-section-bar--diagnostic\">\n <span class=\"ee-section-eyebrow\">Diagnostic data</span>\n <span class=\"spacer\"></span>\n</div>\n\n<mat-accordion class=\"ee-accordion\" togglePosition=\"before\" multi>\n @if(((vm.inputInEditValidationErrors) || []).length > 0) {\n <mat-expansion-panel class=\"ee-panel mat-elevation-z0\">\n <mat-expansion-panel-header class=\"ee-panel-header\" collapsedHeight=\"48px\" expandedHeight=\"48px\">\n <mat-panel-title class=\"ee-panel-title\">\n <span class=\"ee-panel-label\">Validation Errors</span>\n <span class=\"spacer\"></span>\n <span class=\"ee-item-value ee-item-value--error\">{{ (vm.inputInEditValidationErrors).length }}</span>\n </mat-panel-title>\n </mat-expansion-panel-header>\n <div class=\"ee-panel-body\">\n <div class=\"ee-error-summary\">\n <h3 class=\"ee-error-summary-title\">All configuration errors</h3>\n <p class=\"ee-error-summary-text\">\n {{ (vm.inputInEditValidationErrors).length }} errors found. When an error is found, the input will\n not be saved.\n </p>\n <ul class=\"ee-error-list\">\n @for(error of (vm.inputInEditValidationErrors); track $index) {\n <li><strong>{{ error.key }}</strong> {{ error.message }}</li>\n }\n </ul>\n </div>\n </div>\n </mat-expansion-panel>\n }\n <mat-expansion-panel class=\"ee-panel mat-elevation-z0\">\n <mat-expansion-panel-header class=\"ee-panel-header\" collapsedHeight=\"48px\" expandedHeight=\"48px\">\n <mat-panel-title class=\"ee-panel-title\">\n <span class=\"ee-panel-label\">Complete Virtual Model</span>\n <span class=\"spacer\"></span>\n <button mat-icon-button class=\"ee-diagnostic-btn\" matTooltip=\"Download debug data\"\n (click)=\"showDebugData(); $event.stopPropagation()\">\n <mat-icon>troubleshoot</mat-icon>\n </button>\n </mat-panel-title>\n </mat-expansion-panel-header>\n <div class=\"ee-panel-body\">\n <lib-t-dynamic-data-view [data]=\"({\n 'Default Input Template InEdit': vm.defaultInputInEdit,\n 'Input In Edit': vm.inputInEdit,\n 'Input Editor Sections': vm.inputElementEditorConfigs?.editorSections\n })\"></lib-t-dynamic-data-view>\n </div>\n </mat-expansion-panel>\n</mat-accordion>\n}\n","import { AsyncPipe } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component, inject } from '@angular/core';\r\nimport { MatCardModule } from '@angular/material/card';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatDividerModule } from '@angular/material/divider';\r\nimport { MatToolbarModule } from '@angular/material/toolbar';\r\nimport { DragDropModule } from '@angular/cdk/drag-drop';\r\n\r\nimport { DefaultElementComponent } from '../default-element/default-element.component';\r\nimport { InputElementEditorComponent } from '../input-element-editor/input-element-editor.component';\r\nimport { FormsStoreService } from '../../../forms/store/forms-store.service';\r\n\r\nimport { Observable, take, tap } from 'rxjs';\r\nimport { DefaultInputConfig } from 'ngx-t-forms-types';\r\n\r\n@Component({\r\n selector: 'lib-input-editor',\r\n imports: [\r\n AsyncPipe,\r\n MatCardModule,\r\n MatButtonModule,\r\n MatIconModule,\r\n MatDividerModule,\r\n MatToolbarModule,\r\n DragDropModule,\r\n DefaultElementComponent,\r\n InputElementEditorComponent,\r\n ],\r\n templateUrl: './input-editor.component.html',\r\n styleUrl: './input-editor.component.scss',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class InputEditorComponent {\r\n readonly #store = inject(FormsStoreService);\r\n\r\n protected readonly defaultInputs = DefaultInputConfig;\r\n protected readonly inputInEdit$ = this.#store.formBuilderSelectors.inputInEdit$;\r\n protected readonly defaultInputInEdit$ = this.#store.formBuilderSelectors.defaultInputInEdit$;\r\n\r\n protected readonly saveInput = (): void => {\r\n this.inputInEdit$\r\n .pipe(\r\n take(1),\r\n tap((inputVal) => {\r\n if (!inputVal) return;\r\n this.#store.actionsFormBuilder.saveInput(inputVal.id);\r\n }),\r\n )\r\n .subscribe();\r\n };\r\n\r\n protected readonly closeEditor = (): void => {\r\n this.#store.actions.setInputInEditId({ inputInEdit: null });\r\n };\r\n\r\n protected get validationErrors$(): Observable<{ key: string; message: string }[] | null> {\r\n return this.#store.formBuilderSelectors.inputInEditValidationErrors$;\r\n }\r\n}\r\n","<mat-card class=\"element-editor\" appearance=\"outlined\">\n <header class=\"ee-header\">\n <div class=\"ee-header-icon\" aria-hidden=\"true\">\n <mat-icon>tune</mat-icon>\n </div>\n <div class=\"ee-header-text\">\n <h2 class=\"ee-title\">\n {{\n !!(inputInEdit$|async)?.element\n ? \"Edit \" + (inputInEdit$|async)?.label + \" element\"\n : \"Setup Form Element\"\n }}\n </h2>\n <p class=\"ee-subtitle\">\n {{\n !!(inputInEdit$|async)?.element\n ? \"Configure the element below\"\n : \"Form elements are the components making up a form section. Their type is defined by behaviour and use case — for example, a date range picker is well suited to determining duration.\"\n }}\n </p>\n </div>\n <button mat-icon-button cdkDragHandle class=\"ee-drag\" aria-label=\"Drag to reposition\">\n <mat-icon>drag_indicator</mat-icon>\n </button>\n </header>\n\n <div class=\"ee-content\">\n @if(!!((inputInEdit$|async))?.element){\n <lib-input-element-editor></lib-input-element-editor>\n }@else{\n <lib-default-element></lib-default-element>\n }\n </div>\n\n <footer class=\"ee-actions\">\n <button (click)=\"closeEditor()\" mat-button class=\"ee-close\">Close</button>\n <span class=\"spacer\"></span>\n @if (!((inputInEdit$|async))?.id) {\n <button mat-flat-button (click)=\"saveInput()\" [disabled]=\"((validationErrors$|async)||[]).length>0\"\n color=\"primary\" class=\"ee-save\">Save new input</button>\n }\n </footer>\n</mat-card>\n"],"names":["i1","i2","i5","i3","i4"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAkBa,uBAAuB,CAAA;AAPpC,IAAA,WAAA,GAAA;QAQqB,IAAA,CAAA,MAAM,GAAG,kBAAkB;AACrC,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAClC,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC;AAmB1C,IAAA;AApBU,IAAA,MAAM;AACN,IAAA,WAAW;IAEV,gBAAgB,GAAA;AACxB,QAAA,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAA4B;AACnF,QAAA,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,CAAmB;IACzC;AAEU,IAAA,YAAY,CAAC,OAAqB,EAAA;AAC1C,QAAA,OAAO,YAAY,CAAC,OAAO,CAAC;IAC9B;AAEU,IAAA,mBAAmB,CAAC,KAAmB,EAAA;AAC/C,QAAA,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC;AACnB,aAAA,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,kBAAkB,CAAC,IAAI,CAAC,WAAW,CAAC;AAClD,aAAA,SAAS,CAAC,CAAC,EAAE,KAAI;AAChB,YAAA,IAAI,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AAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAcA,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAjBhC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,EAAA,OAAA,EACnB;wBACP,SAAS;wBACT,aAAa;wBACb,eAAe;wBACf,aAAa;wBACb,gBAAgB;wBAChB,gBAAgB;wBAChB,cAAc;wBACd,uBAAuB;wBACvB,2BAA2B;qBAC5B,EAAA,eAAA,EAGgB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,kwDAAA,EAAA,MAAA,EAAA,CAAA,q6DAAA,CAAA,EAAA;;;;;"}
|
|
1
|
+
{"version":3,"file":"ngx-t-forms-input-editor.component-CxXMETLl.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/default-element/default-element.component.ts","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/default-element/default-element.component.html","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/input-element-editor/input-element-editor.component.ts","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/input-element-editor/input-element-editor.component.html","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/input-editor/input-editor.component.ts","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/input-editor/input-editor.component.html"],"sourcesContent":["import { ChangeDetectionStrategy, Component, DestroyRef, inject } from '@angular/core';\r\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\r\nimport { MatListModule } from '@angular/material/list';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatDividerModule } from '@angular/material/divider';\r\n\r\nimport { FormsStoreService } from '../../../forms/store/forms-store.service';\r\nimport { DefaultInputConfig, ElementTypes } from 'ngx-t-forms-types';\r\nimport { take } from 'rxjs';\r\nimport { getInputIcon } from '../../../../shared/functions/getInputIcon';\r\n\r\n@Component({\r\n selector: 'lib-default-element',\r\n imports: [MatListModule, MatIconModule, MatDividerModule],\r\n templateUrl: './default-element.component.html',\r\n styleUrl: './default-element.component.scss',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class DefaultElementComponent {\r\n protected readonly inputs = DefaultInputConfig;\r\n readonly #store = inject(FormsStoreService);\r\n readonly #destroyRef = inject(DestroyRef);\r\n\r\n protected getDefaultInputs(): ElementTypes[] {\r\n const i = JSON.parse(JSON.stringify(DefaultInputConfig)) as Record<string, unknown>;\r\n return Object.keys(i) as ElementTypes[];\r\n }\r\n\r\n protected getInputIcon(element: ElementTypes): string {\r\n return getInputIcon(element);\r\n }\r\n\r\n protected selectInputTemplate(input: ElementTypes): void {\r\n this.#store.selectors.selectInputInEditId$\r\n .pipe(take(1), takeUntilDestroyed(this.#destroyRef))\r\n .subscribe((id) => {\r\n if (!id) return;\r\n this.#store.actionsFormBuilder.selectInputTemplate(id, input);\r\n });\r\n }\r\n}\r\n","<br>\r\n<mat-nav-list style=\"margin: 5px;\">\r\n\r\n\r\n @defer () {\r\n @for (input of getDefaultInputs(); track input) {\r\n @if (inputs[input]?.disabled === false) {\r\n <mat-list-item style=\"background: var(--mdc-elevated-card-container-color, var(--mat-app-surface-container-low));\"\r\n (click)=\"selectInputTemplate(input)\">\r\n <mat-icon matListItemAvatar>{{ getInputIcon(input) }}</mat-icon>\r\n <span matListItemTitle href=\"...\">{{ inputs[input]?.label}}</span>\r\n </mat-list-item>\r\n <mat-divider></mat-divider>\r\n }\r\n }\r\n \r\n }\r\n\r\n\r\n</mat-nav-list>","// TODO(unify): see ngx-t-forms/docs/migration/element-editor-unification.md\nimport { ChangeDetectionStrategy, Component, DOCUMENT, PLATFORM_ID, computed, inject } from '@angular/core';\nimport { isPlatformBrowser } from '@angular/common';\nimport { MatExpansionModule } from '@angular/material/expansion';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatListModule } from '@angular/material/list';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatCardModule } from '@angular/material/card';\nimport { MatFormFieldModule } from '@angular/material/form-field';\n\nimport { FormsStoreService } from '../../../forms/store/forms-store.service';\n\nimport { TDynamicDataEditComponent, TDynamicDataViewComponent } from '../../..';\n\nimport type { ElementEditorInnerSectionElementInterface, ElementTypes, FormColumnInputs, ScoaInnerInput } from 'ngx-t-forms-types';\nimport { getInputIcon } from '../../../../shared/functions/getInputIcon';\n\n@Component({\n selector: 'lib-input-element-editor',\n imports: [\n MatExpansionModule,\n MatIconModule,\n MatListModule,\n MatTooltipModule,\n MatProgressSpinnerModule,\n MatButtonModule,\n MatCardModule,\n MatFormFieldModule,\n TDynamicDataEditComponent,\n TDynamicDataViewComponent,\n ],\n templateUrl: './input-element-editor.component.html',\n styleUrl: './input-element-editor.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class InputElementEditorComponent {\n readonly #store = inject(FormsStoreService);\n readonly #platformId = inject(PLATFORM_ID);\n readonly #document = inject(DOCUMENT);\n\n readonly #signals = this.#store.formBuilderSignalSelectors;\n\n protected readonly vm = computed(() => ({\n defaultInputInEdit: this.#signals.defaultInputInEdit(),\n inputInEdit: this.#signals.inputInEdit(),\n inputElementEditorConfigs: this.#signals.inputElementEditorConfigs(),\n inputInEditValidationErrors: this.#signals.inputInEditValidationErrors(),\n formInputs: this.#signals.getAllFormInputs(),\n }));\n\n protected readonly elementConfigurationChanged = (\n value: unknown,\n ele: ElementEditorInnerSectionElementInterface,\n ): void => {\n const inputVal = this.#signals.inputInEdit();\n if (!inputVal) return;\n this.#store.actionsFormBuilder.elementConfigurationChanged(inputVal.id, value, ele);\n };\n\n protected readonly clearInputInEdit = (): void => {\n const inputVal = this.#signals.inputInEdit();\n if (!inputVal) return;\n this.#store.actionsFormBuilder.clearInputInEdit(inputVal.id);\n };\n\n protected readonly elementBlur = (\n event: unknown,\n element: ElementEditorInnerSectionElementInterface,\n ): void => {\n const inputVal = this.#signals.inputInEdit();\n if (!inputVal) return;\n this.#store.actionsFormBuilder.elementBlur(inputVal.id, event, element);\n };\n\n /** Creates or updates an account-level custom input from the segment-config quick editor. */\n protected readonly saveMscoaCustomInput = (\n sectionId: string,\n scoaInputId: string,\n config: Pick<ScoaInnerInput, 'element' | 'label' | 'formControlName' | 'singleSelect' | 'readonly'> & { id?: string },\n ): void => {\n this.#store.actionsFormBuilder.saveScoaCustomInput(sectionId, scoaInputId, config);\n };\n\n /** Opens an MSCOA custom input in this editor for advanced configuration. */\n protected readonly editMscoaInput = (input: FormColumnInputs): void => {\n this.#store.actionsFormBuilder.editInput(input);\n };\n\n /** Removes an MSCOA custom input from the config. */\n protected readonly deleteMscoaInput = (input: FormColumnInputs): void => {\n this.#store.actionsFormBuilder.formDeleteInput(input);\n };\n\n protected getInputIcon(element: ElementTypes | undefined | null): string {\n return getInputIcon(element);\n }\n\n protected showDebugData(): void {\n if (!isPlatformBrowser(this.#platformId)) return;\n const win = this.#document.defaultView;\n if (!win) return;\n const jsonData = JSON.stringify(this.vm(), null, 2);\n const blob = new Blob([jsonData], { type: 'application/json' });\n const url = win.URL.createObjectURL(blob);\n const link = this.#document.createElement('a');\n link.href = url;\n link.download = 'debug-data.json';\n link.click();\n win.URL.revokeObjectURL(url);\n }\n}\n","@if (vm(); as vm) {\n<div class=\"ee-section-bar\">\n <span class=\"ee-section-eyebrow\">Element configuration</span>\n <span class=\"spacer\"></span>\n @if ((vm.inputElementEditorConfigs.editorSections || []).length) {\n <span class=\"ee-section-count\">{{ (vm.inputElementEditorConfigs.editorSections || []).length }} sections</span>\n }\n</div>\n\n@defer (on viewport) {\n<mat-accordion class=\"ee-accordion\" togglePosition=\"before\" multi>\n @for(section of (vm.inputElementEditorConfigs.editorSections || []); track section.id; let i = $index) {\n <mat-expansion-panel class=\"ee-panel mat-elevation-z0\">\n <mat-expansion-panel-header class=\"ee-panel-header\" collapsedHeight=\"48px\" expandedHeight=\"48px\">\n <mat-panel-title class=\"ee-panel-title\">\n <span class=\"ee-panel-label\">{{ section.label }}</span>\n <span class=\"spacer\"></span>\n @if (section.hasErrors) {\n <mat-icon class=\"ee-panel-error\" color=\"warn\">error</mat-icon>\n }\n @if (section.showItemValue && !!(vm.inputInEdit)) {\n <span class=\"ee-item-value\">{{ vm.inputInEdit[section.showItemValue] }}</span>\n }\n </mat-panel-title>\n </mat-expansion-panel-header>\n\n <div class=\"ee-panel-body\">\n <!-- Input-type switcher (first section only) -->\n @if(i === 0) {\n <mat-nav-list class=\"ee-input-switcher\">\n <mat-list-item [disabled]=\"vm.inputInEdit?.systemDefault\" matTooltip=\"Change input element\"\n (click)=\"vm.inputInEdit?.systemDefault ? '' : clearInputInEdit()\">\n <mat-icon matListItemAvatar [attr.aria-label]=\"(vm.defaultInputInEdit)?.label\">\n {{ getInputIcon(vm.inputInEdit?.element) }}\n </mat-icon>\n <span matListItemTitle>{{ (vm.defaultInputInEdit)?.label }}</span>\n <span matListItemMeta>\n <mat-icon>arrow_forward_ios</mat-icon>\n </span>\n </mat-list-item>\n </mat-nav-list>\n }\n\n <!-- Section elements -->\n @for(element of section.elements; track element.id) {\n <div class=\"ee-element\">\n @defer (on viewport) {\n <lib-t-dynamic-data-edit [editorConfig]=\"element\" [data]=\"(vm.inputInEdit)\"\n [validationErrors]=\"element.computedErrors ?? null\" [mscoaSaveCustomInput]=\"saveMscoaCustomInput\"\n [mscoaEditInput]=\"editMscoaInput\" [mscoaDeleteInput]=\"deleteMscoaInput\"\n (valueChange)=\"elementConfigurationChanged($event, element)\" [formInputs]=\"(vm.formInputs) || []\"\n (blur)=\"elementBlur($event, element)\">\n </lib-t-dynamic-data-edit>\n } @placeholder {\n <div class=\"ee-element-loading\">\n <mat-spinner diameter=\"18\"></mat-spinner>\n </div>\n }\n </div>\n }\n </div>\n </mat-expansion-panel>\n }\n</mat-accordion>\n} @placeholder {\n<div class=\"ee-loading\">\n <mat-spinner diameter=\"44\" />\n</div>\n} @error {\n<div class=\"ee-error\">\n <mat-icon class=\"ee-error-icon\" aria-hidden=\"false\">error_outline</mat-icon>\n <h3 class=\"ee-error-title\">Error loading element editor</h3>\n <p class=\"ee-error-text\">An error occurred while loading the element editor. Please try again later.</p>\n</div>\n}\n\n<!-- Diagnostic section -->\n<div class=\"ee-section-bar ee-section-bar--diagnostic\">\n <span class=\"ee-section-eyebrow\">Diagnostic data</span>\n <span class=\"spacer\"></span>\n</div>\n\n<mat-accordion class=\"ee-accordion\" togglePosition=\"before\" multi>\n @if(((vm.inputInEditValidationErrors) || []).length > 0) {\n <mat-expansion-panel class=\"ee-panel mat-elevation-z0\">\n <mat-expansion-panel-header class=\"ee-panel-header\" collapsedHeight=\"48px\" expandedHeight=\"48px\">\n <mat-panel-title class=\"ee-panel-title\">\n <span class=\"ee-panel-label\">Validation Errors</span>\n <span class=\"spacer\"></span>\n <span class=\"ee-item-value ee-item-value--error\">{{ (vm.inputInEditValidationErrors).length }}</span>\n </mat-panel-title>\n </mat-expansion-panel-header>\n <div class=\"ee-panel-body\">\n <div class=\"ee-error-summary\">\n <h3 class=\"ee-error-summary-title\">All configuration errors</h3>\n <p class=\"ee-error-summary-text\">\n {{ (vm.inputInEditValidationErrors).length }} errors found. When an error is found, the input will\n not be saved.\n </p>\n <ul class=\"ee-error-list\">\n @for(error of (vm.inputInEditValidationErrors); track $index) {\n <li><strong>{{ error.key }}</strong> {{ error.message }}</li>\n }\n </ul>\n </div>\n </div>\n </mat-expansion-panel>\n }\n <mat-expansion-panel class=\"ee-panel mat-elevation-z0\">\n <mat-expansion-panel-header class=\"ee-panel-header\" collapsedHeight=\"48px\" expandedHeight=\"48px\">\n <mat-panel-title class=\"ee-panel-title\">\n <span class=\"ee-panel-label\">Complete Virtual Model</span>\n <span class=\"spacer\"></span>\n <button mat-icon-button class=\"ee-diagnostic-btn\" matTooltip=\"Download debug data\"\n (click)=\"showDebugData(); $event.stopPropagation()\">\n <mat-icon>troubleshoot</mat-icon>\n </button>\n </mat-panel-title>\n </mat-expansion-panel-header>\n <div class=\"ee-panel-body\">\n <lib-t-dynamic-data-view [data]=\"({\n 'Default Input Template InEdit': vm.defaultInputInEdit,\n 'Input In Edit': vm.inputInEdit,\n 'Input Editor Sections': vm.inputElementEditorConfigs?.editorSections\n })\"></lib-t-dynamic-data-view>\n </div>\n </mat-expansion-panel>\n</mat-accordion>\n}\n","import { AsyncPipe } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component, inject } from '@angular/core';\r\nimport { MatCardModule } from '@angular/material/card';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatDividerModule } from '@angular/material/divider';\r\nimport { MatToolbarModule } from '@angular/material/toolbar';\r\nimport { DragDropModule } from '@angular/cdk/drag-drop';\r\n\r\nimport { DefaultElementComponent } from '../default-element/default-element.component';\r\nimport { InputElementEditorComponent } from '../input-element-editor/input-element-editor.component';\r\nimport { FormsStoreService } from '../../../forms/store/forms-store.service';\r\n\r\nimport { Observable, take, tap } from 'rxjs';\r\nimport { DefaultInputConfig } from 'ngx-t-forms-types';\r\n\r\n@Component({\r\n selector: 'lib-input-editor',\r\n imports: [\r\n AsyncPipe,\r\n MatCardModule,\r\n MatButtonModule,\r\n MatIconModule,\r\n MatDividerModule,\r\n MatToolbarModule,\r\n DragDropModule,\r\n DefaultElementComponent,\r\n InputElementEditorComponent,\r\n ],\r\n templateUrl: './input-editor.component.html',\r\n styleUrl: './input-editor.component.scss',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class InputEditorComponent {\r\n readonly #store = inject(FormsStoreService);\r\n\r\n protected readonly defaultInputs = DefaultInputConfig;\r\n protected readonly inputInEdit$ = this.#store.formBuilderSelectors.inputInEdit$;\r\n protected readonly defaultInputInEdit$ = this.#store.formBuilderSelectors.defaultInputInEdit$;\r\n\r\n protected readonly saveInput = (): void => {\r\n this.inputInEdit$\r\n .pipe(\r\n take(1),\r\n tap((inputVal) => {\r\n if (!inputVal) return;\r\n this.#store.actionsFormBuilder.saveInput(inputVal.id);\r\n }),\r\n )\r\n .subscribe();\r\n };\r\n\r\n protected readonly closeEditor = (): void => {\r\n this.#store.actions.setInputInEditId({ inputInEdit: null });\r\n };\r\n\r\n protected get validationErrors$(): Observable<{ key: string; message: string }[] | null> {\r\n return this.#store.formBuilderSelectors.inputInEditValidationErrors$;\r\n }\r\n}\r\n","<mat-card class=\"element-editor\" appearance=\"outlined\">\n <header class=\"ee-header\">\n <div class=\"ee-header-icon\" aria-hidden=\"true\">\n <mat-icon>tune</mat-icon>\n </div>\n <div class=\"ee-header-text\">\n <h2 class=\"ee-title\">\n {{\n !!(inputInEdit$|async)?.element\n ? \"Edit \" + (inputInEdit$|async)?.label + \" element\"\n : \"Setup Form Element\"\n }}\n </h2>\n <p class=\"ee-subtitle\">\n {{\n !!(inputInEdit$|async)?.element\n ? \"Configure the element below\"\n : \"Form elements are the components making up a form section. Their type is defined by behaviour and use case — for example, a date range picker is well suited to determining duration.\"\n }}\n </p>\n </div>\n <button mat-icon-button cdkDragHandle class=\"ee-drag\" aria-label=\"Drag to reposition\">\n <mat-icon>drag_indicator</mat-icon>\n </button>\n </header>\n\n <div class=\"ee-content\">\n @if(!!((inputInEdit$|async))?.element){\n <lib-input-element-editor></lib-input-element-editor>\n }@else{\n <lib-default-element></lib-default-element>\n }\n </div>\n\n <footer class=\"ee-actions\">\n <button (click)=\"closeEditor()\" mat-button class=\"ee-close\">Close</button>\n <span class=\"spacer\"></span>\n @if (!((inputInEdit$|async))?.id) {\n <button mat-flat-button (click)=\"saveInput()\" [disabled]=\"((validationErrors$|async)||[]).length>0\"\n color=\"primary\" class=\"ee-save\">Save new input</button>\n }\n </footer>\n</mat-card>\n"],"names":["i1","i2","i5","i3","i4"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAkBa,uBAAuB,CAAA;AAPpC,IAAA,WAAA,GAAA;QAQqB,IAAA,CAAA,MAAM,GAAG,kBAAkB;AACrC,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,iBAAiB,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A,UAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,SAAA,EAAA,SAAA,EAAA,UAAA,CAAA,EAAA,QAAA,EAAA,CAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACb,gBAAgB,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAChB,gBAAgB,8BAChB,cAAc,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAI,IAAA,CAAA,aAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,CAAA,uBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACd,uBAAuB,EAAA,QAAA,EAAA,qBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACvB,2BAA2B,gEAR3B,SAAS,EAAA,IAAA,EAAA,OAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAcA,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAjBhC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,EAAA,OAAA,EACnB;wBACP,SAAS;wBACT,aAAa;wBACb,eAAe;wBACf,aAAa;wBACb,gBAAgB;wBAChB,gBAAgB;wBAChB,cAAc;wBACd,uBAAuB;wBACvB,2BAA2B;qBAC5B,EAAA,eAAA,EAGgB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,kwDAAA,EAAA,MAAA,EAAA,CAAA,q6DAAA,CAAA,EAAA;;;;;"}
|
|
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { output, Input, Optional, Self, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
3
|
import { MatFormFieldControl } from '@angular/material/form-field';
|
|
4
4
|
import { Subject } from 'rxjs';
|
|
5
|
-
import { o as DataTreeComponent } from './ngx-t-forms-ngx-t-forms-
|
|
5
|
+
import { o as DataTreeComponent } from './ngx-t-forms-ngx-t-forms-CJGAj18J.mjs';
|
|
6
6
|
import { CommonModule } from '@angular/common';
|
|
7
7
|
import * as i1 from '@angular/forms';
|
|
8
8
|
|
|
@@ -119,4 +119,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
119
119
|
}], valueChanged: [{ type: i0.Output, args: ["valueChanged"] }] } });
|
|
120
120
|
|
|
121
121
|
export { MapMatOptionsKeys };
|
|
122
|
-
//# sourceMappingURL=ngx-t-forms-map-mat-options-keys-
|
|
122
|
+
//# sourceMappingURL=ngx-t-forms-map-mat-options-keys-BbfC5vYI.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-t-forms-map-mat-options-keys-
|
|
1
|
+
{"version":3,"file":"ngx-t-forms-map-mat-options-keys-BbfC5vYI.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/map-mat-options-keys/map-mat-options-keys.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/map-mat-options-keys/map-mat-options-keys.html"],"sourcesContent":["import {\r\n ChangeDetectionStrategy,\r\n Component,\r\n ElementRef,\r\n Input,\r\n OnDestroy,\r\n Optional,\r\n Self,\r\n output,\r\n} from '@angular/core';\r\nimport { NgControl } from '@angular/forms';\r\nimport { MatFormFieldControl } from '@angular/material/form-field';\r\nimport { Subject } from 'rxjs';\r\nimport { IConfigElementError } from '../../t-dynamic-data-edit.component';\r\nimport { FormColumnInputs, TreeNode } from 'ngx-t-forms-types';\r\nimport { DataTreeComponent } from '../api-value-access-rules/elements/data-tree/data-tree.component';\r\nimport { CommonModule } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'lib-map-mat-options-keys',\r\n imports: [DataTreeComponent,CommonModule],\r\n providers: [{ provide: MatFormFieldControl, useExisting: MapMatOptionsKeys }],\r\n standalone: true,\r\n templateUrl: './map-mat-options-keys.html',\r\n styleUrl: './map-mat-options-keys.css',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n host: {\r\n '[id]': 'id',\r\n },\r\n})\r\nexport class MapMatOptionsKeys implements MatFormFieldControl<TreeNode[] | string | null>, OnDestroy {\r\n static nextId = 0;\r\n private _mapToData: unknown;\r\n // -- MatFormFieldControl Boilerplate --\r\n stateChanges = new Subject<void>();\r\n id = `lib-map-mat-options-keys-${MapMatOptionsKeys.nextId++}`;\r\n placeholder = '';\r\n focused = false;\r\n touched = false;\r\n controlType?: string | undefined;\r\n autofilled?: boolean | undefined;\r\n userAriaDescribedBy?: string | undefined;\r\n disableAutomaticLabeling?: boolean | undefined;\r\n required = false;\r\n\r\n // -- Inputs --\r\n @Input() disabled = false;\r\n @Input() errors: IConfigElementError[] | undefined = [];\r\n @Input() value: TreeNode[] | string | null = null;\r\n @Input() formInputs: FormColumnInputs[] = [];\r\n @Input() set mapToData(value: unknown){\r\n this._mapToData = value;\r\n console.error('mapToData changed', value);\r\n };\r\n get mapToData(): unknown {\r\n return this._mapToData;\r\n }\r\n\r\n // -- Outputs --\r\n readonly valueChanged = output<TreeNode[] | string | null>();\r\n\r\n constructor(\r\n @Optional() @Self() public ngControl: NgControl,\r\n private _elementRef: ElementRef<HTMLElement>\r\n ) {\r\n if (this.ngControl) {\r\n this.ngControl.valueAccessor = this;\r\n }\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.stateChanges.complete();\r\n }\r\n\r\n // -- Getters for Template --\r\n get empty(): boolean {\r\n if (this.value == null) return true;\r\n if (typeof this.value === 'string') return this.value === '';\r\n return Array.isArray(this.value) && this.value.length === 0;\r\n }\r\n\r\n get shouldLabelFloat(): boolean {\r\n return this.focused || !this.empty;\r\n }\r\n\r\n get errorState(): boolean {\r\n const hasError =\r\n !!this.ngControl?.control?.errors ||\r\n ((this.errors?.length ?? 0) > 0 && this.touched);\r\n return (!this.value && !!this.required) || hasError;\r\n }\r\n\r\n // -- MatFormFieldControl Methods --\r\n setDescribedByIds(ids: string[]): void {\r\n if (this._elementRef?.nativeElement) {\r\n const controlElement = this._elementRef.nativeElement.querySelector(\r\n '.lib-map-mat-options-keys'\r\n );\r\n if (controlElement) {\r\n controlElement.setAttribute('aria-describedby', ids.join(' '));\r\n }\r\n }\r\n }\r\n\r\n onContainerClick(_event: MouseEvent): void {\r\n this.markAsTouched();\r\n this.stateChanges.next();\r\n }\r\n\r\n onTouched = (): void => { };\r\n\r\n markAsTouched(): void {\r\n if (!this.touched) {\r\n this.onTouched();\r\n this.touched = true;\r\n }\r\n }\r\n\r\n // -- ControlValueAccessor --\r\n writeValue(value: TreeNode[] | string | null): void {\r\n this.value = value;\r\n this.stateChanges.next();\r\n }\r\n\r\n registerOnChange(_fn: (value: TreeNode[] | string | null) => void): void {\r\n // Handled by parent or ngControl usually, but good practice to have stub\r\n }\r\n\r\n registerOnTouched(fn: () => void): void {\r\n this.onTouched = fn;\r\n }\r\n\r\n pathChanged(path: TreeNode[] | string): void {\r\n if (!Array.isArray(path) && typeof path !== 'string') return;\r\n this.value = path;\r\n this.valueChanged.emit(path);\r\n this.stateChanges.next();\r\n }\r\n\r\n \r\n}\r\n","<div class=\"lib-map-mat-options-keys\">\r\n <lib-data-tree\r\n [data]=\"mapToData\"\r\n [value]=\"value || ''\"\r\n [formInputs]=\"formInputs\"\r\n (pathChanged)=\"pathChanged($event)\">\r\n </lib-data-tree>\r\n</div>\r\n"],"names":[],"mappings":";;;;;;;;MA8Ba,iBAAiB,CAAA;aACrB,IAAA,CAAA,MAAM,GAAG,CAAH,CAAK;IAmBlB,IAAa,SAAS,CAAC,KAAc,EAAA;AACnC,QAAA,IAAI,CAAC,UAAU,GAAG,KAAK;AACvB,QAAA,OAAO,CAAC,KAAK,CAAC,mBAAmB,EAAE,KAAK,CAAC;IAC3C;;AACA,IAAA,IAAI,SAAS,GAAA;QACX,OAAO,IAAI,CAAC,UAAU;IACxB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A,UAAA,EACjE,IAAI,EAAA,eAAA,EAGC,uBAAuB,CAAC,MAAM,EAAA,IAAA,EACzC;AACJ,wBAAA,MAAM,EAAE,IAAI;AACb,qBAAA,EAAA,QAAA,EAAA,8OAAA,EAAA,MAAA,EAAA,CAAA,sLAAA,CAAA,EAAA;;0BAkCE;;0BAAY;;sBAhBd;;sBACA;;sBACA;;sBACA;;sBACA;;;;;"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { output, ChangeDetectionStrategy, Component, Optional, Self, Input } from '@angular/core';
|
|
3
|
+
import { MatFormFieldControl } from '@angular/material/form-field';
|
|
4
|
+
import { Subject } from 'rxjs';
|
|
5
|
+
import { o as DataTreeComponent } from './ngx-t-forms-ngx-t-forms-D7kDvkTZ.mjs';
|
|
6
|
+
import { CommonModule } from '@angular/common';
|
|
7
|
+
import * as i1 from '@angular/forms';
|
|
8
|
+
|
|
9
|
+
class MapMatOptionsKeys {
|
|
10
|
+
static { this.nextId = 0; }
|
|
11
|
+
set mapToData(value) {
|
|
12
|
+
this._mapToData = value;
|
|
13
|
+
console.error('mapToData changed', value);
|
|
14
|
+
}
|
|
15
|
+
;
|
|
16
|
+
get mapToData() {
|
|
17
|
+
return this._mapToData;
|
|
18
|
+
}
|
|
19
|
+
constructor(ngControl, _elementRef) {
|
|
20
|
+
this.ngControl = ngControl;
|
|
21
|
+
this._elementRef = _elementRef;
|
|
22
|
+
// -- MatFormFieldControl Boilerplate --
|
|
23
|
+
this.stateChanges = new Subject();
|
|
24
|
+
this.id = `lib-map-mat-options-keys-${MapMatOptionsKeys.nextId++}`;
|
|
25
|
+
this.placeholder = '';
|
|
26
|
+
this.focused = false;
|
|
27
|
+
this.touched = false;
|
|
28
|
+
this.required = false;
|
|
29
|
+
// -- Inputs --
|
|
30
|
+
this.disabled = false;
|
|
31
|
+
this.errors = [];
|
|
32
|
+
this.value = null;
|
|
33
|
+
this.formInputs = [];
|
|
34
|
+
// -- Outputs --
|
|
35
|
+
this.valueChanged = output();
|
|
36
|
+
this.onTouched = () => { };
|
|
37
|
+
if (this.ngControl) {
|
|
38
|
+
this.ngControl.valueAccessor = this;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
ngOnDestroy() {
|
|
42
|
+
this.stateChanges.complete();
|
|
43
|
+
}
|
|
44
|
+
// -- Getters for Template --
|
|
45
|
+
get empty() {
|
|
46
|
+
if (this.value == null)
|
|
47
|
+
return true;
|
|
48
|
+
if (typeof this.value === 'string')
|
|
49
|
+
return this.value === '';
|
|
50
|
+
return Array.isArray(this.value) && this.value.length === 0;
|
|
51
|
+
}
|
|
52
|
+
get shouldLabelFloat() {
|
|
53
|
+
return this.focused || !this.empty;
|
|
54
|
+
}
|
|
55
|
+
get errorState() {
|
|
56
|
+
const hasError = !!this.ngControl?.control?.errors ||
|
|
57
|
+
((this.errors?.length ?? 0) > 0 && this.touched);
|
|
58
|
+
return (!this.value && !!this.required) || hasError;
|
|
59
|
+
}
|
|
60
|
+
// -- MatFormFieldControl Methods --
|
|
61
|
+
setDescribedByIds(ids) {
|
|
62
|
+
if (this._elementRef?.nativeElement) {
|
|
63
|
+
const controlElement = this._elementRef.nativeElement.querySelector('.lib-map-mat-options-keys');
|
|
64
|
+
if (controlElement) {
|
|
65
|
+
controlElement.setAttribute('aria-describedby', ids.join(' '));
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
onContainerClick(_event) {
|
|
70
|
+
this.markAsTouched();
|
|
71
|
+
this.stateChanges.next();
|
|
72
|
+
}
|
|
73
|
+
markAsTouched() {
|
|
74
|
+
if (!this.touched) {
|
|
75
|
+
this.onTouched();
|
|
76
|
+
this.touched = true;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
// -- ControlValueAccessor --
|
|
80
|
+
writeValue(value) {
|
|
81
|
+
this.value = value;
|
|
82
|
+
this.stateChanges.next();
|
|
83
|
+
}
|
|
84
|
+
registerOnChange(_fn) {
|
|
85
|
+
// Handled by parent or ngControl usually, but good practice to have stub
|
|
86
|
+
}
|
|
87
|
+
registerOnTouched(fn) {
|
|
88
|
+
this.onTouched = fn;
|
|
89
|
+
}
|
|
90
|
+
pathChanged(path) {
|
|
91
|
+
if (!Array.isArray(path) && typeof path !== 'string')
|
|
92
|
+
return;
|
|
93
|
+
this.value = path;
|
|
94
|
+
this.valueChanged.emit(path);
|
|
95
|
+
this.stateChanges.next();
|
|
96
|
+
}
|
|
97
|
+
static { this.ɵfac = function MapMatOptionsKeys_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MapMatOptionsKeys)(i0.ɵɵdirectiveInject(i1.NgControl, 10), i0.ɵɵdirectiveInject(i0.ElementRef)); }; }
|
|
98
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MapMatOptionsKeys, selectors: [["lib-map-mat-options-keys"]], hostVars: 1, hostBindings: function MapMatOptionsKeys_HostBindings(rf, ctx) { if (rf & 2) {
|
|
99
|
+
i0.ɵɵdomProperty("id", ctx.id);
|
|
100
|
+
} }, inputs: { disabled: "disabled", errors: "errors", value: "value", formInputs: "formInputs", mapToData: "mapToData" }, outputs: { valueChanged: "valueChanged" }, features: [i0.ɵɵProvidersFeature([{ provide: MatFormFieldControl, useExisting: MapMatOptionsKeys }])], decls: 2, vars: 3, consts: [[1, "lib-map-mat-options-keys"], [3, "pathChanged", "data", "value", "formInputs"]], template: function MapMatOptionsKeys_Template(rf, ctx) { if (rf & 1) {
|
|
101
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "lib-data-tree", 1);
|
|
102
|
+
i0.ɵɵlistener("pathChanged", function MapMatOptionsKeys_Template_lib_data_tree_pathChanged_1_listener($event) { return ctx.pathChanged($event); });
|
|
103
|
+
i0.ɵɵelementEnd()();
|
|
104
|
+
} if (rf & 2) {
|
|
105
|
+
i0.ɵɵadvance();
|
|
106
|
+
i0.ɵɵproperty("data", ctx.mapToData)("value", ctx.value || "")("formInputs", ctx.formInputs);
|
|
107
|
+
} }, dependencies: [DataTreeComponent, CommonModule], styles: [".suggestion-container[_ngcontent-%COMP%]{display:flex;width:100%;gap:.875rem}.docType[_ngcontent-%COMP%]{width:min-content;margin-block:auto}mat-card[_ngcontent-%COMP%]{margin-bottom:.5rem;background:var(--lib-forms-surface-container)}"], changeDetection: 0 }); }
|
|
108
|
+
}
|
|
109
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MapMatOptionsKeys, [{
|
|
110
|
+
type: Component,
|
|
111
|
+
args: [{ selector: 'lib-map-mat-options-keys', imports: [DataTreeComponent, CommonModule], providers: [{ provide: MatFormFieldControl, useExisting: MapMatOptionsKeys }], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
112
|
+
'[id]': 'id',
|
|
113
|
+
}, template: "<div class=\"lib-map-mat-options-keys\">\r\n <lib-data-tree\r\n [data]=\"mapToData\"\r\n [value]=\"value || ''\"\r\n [formInputs]=\"formInputs\"\r\n (pathChanged)=\"pathChanged($event)\">\r\n </lib-data-tree>\r\n</div>\r\n", styles: [".suggestion-container{display:flex;width:100%;gap:.875rem}.docType{width:min-content;margin-block:auto}mat-card{margin-bottom:.5rem;background:var(--lib-forms-surface-container)}\n"] }]
|
|
114
|
+
}], () => [{ type: i1.NgControl, decorators: [{
|
|
115
|
+
type: Optional
|
|
116
|
+
}, {
|
|
117
|
+
type: Self
|
|
118
|
+
}] }, { type: i0.ElementRef }], { disabled: [{
|
|
119
|
+
type: Input
|
|
120
|
+
}], errors: [{
|
|
121
|
+
type: Input
|
|
122
|
+
}], value: [{
|
|
123
|
+
type: Input
|
|
124
|
+
}], formInputs: [{
|
|
125
|
+
type: Input
|
|
126
|
+
}], mapToData: [{
|
|
127
|
+
type: Input
|
|
128
|
+
}], valueChanged: [{ type: i0.Output, args: ["valueChanged"] }] }); })();
|
|
129
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MapMatOptionsKeys, { className: "MapMatOptionsKeys", filePath: "lib/components/t-dynamic-data-edit/elements/map-mat-options-keys/map-mat-options-keys.ts", lineNumber: 31 }); })();
|
|
130
|
+
|
|
131
|
+
export { MapMatOptionsKeys };
|
|
132
|
+
//# sourceMappingURL=ngx-t-forms-map-mat-options-keys-epWo0lEj.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-t-forms-map-mat-options-keys-epWo0lEj.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/map-mat-options-keys/map-mat-options-keys.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/map-mat-options-keys/map-mat-options-keys.html"],"sourcesContent":["import {\r\n ChangeDetectionStrategy,\r\n Component,\r\n ElementRef,\r\n Input,\r\n OnDestroy,\r\n Optional,\r\n Self,\r\n output,\r\n} from '@angular/core';\r\nimport { NgControl } from '@angular/forms';\r\nimport { MatFormFieldControl } from '@angular/material/form-field';\r\nimport { Subject } from 'rxjs';\r\nimport { IConfigElementError } from '../../t-dynamic-data-edit.component';\r\nimport { FormColumnInputs, TreeNode } from 'ngx-t-forms-types';\r\nimport { DataTreeComponent } from '../api-value-access-rules/elements/data-tree/data-tree.component';\r\nimport { CommonModule } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'lib-map-mat-options-keys',\r\n imports: [DataTreeComponent,CommonModule],\r\n providers: [{ provide: MatFormFieldControl, useExisting: MapMatOptionsKeys }],\r\n standalone: true,\r\n templateUrl: './map-mat-options-keys.html',\r\n styleUrl: './map-mat-options-keys.css',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n host: {\r\n '[id]': 'id',\r\n },\r\n})\r\nexport class MapMatOptionsKeys implements MatFormFieldControl<TreeNode[] | string | null>, OnDestroy {\r\n static nextId = 0;\r\n private _mapToData: unknown;\r\n // -- MatFormFieldControl Boilerplate --\r\n stateChanges = new Subject<void>();\r\n id = `lib-map-mat-options-keys-${MapMatOptionsKeys.nextId++}`;\r\n placeholder = '';\r\n focused = false;\r\n touched = false;\r\n controlType?: string | undefined;\r\n autofilled?: boolean | undefined;\r\n userAriaDescribedBy?: string | undefined;\r\n disableAutomaticLabeling?: boolean | undefined;\r\n required = false;\r\n\r\n // -- Inputs --\r\n @Input() disabled = false;\r\n @Input() errors: IConfigElementError[] | undefined = [];\r\n @Input() value: TreeNode[] | string | null = null;\r\n @Input() formInputs: FormColumnInputs[] = [];\r\n @Input() set mapToData(value: unknown){\r\n this._mapToData = value;\r\n console.error('mapToData changed', value);\r\n };\r\n get mapToData(): unknown {\r\n return this._mapToData;\r\n }\r\n\r\n // -- Outputs --\r\n readonly valueChanged = output<TreeNode[] | string | null>();\r\n\r\n constructor(\r\n @Optional() @Self() public ngControl: NgControl,\r\n private _elementRef: ElementRef<HTMLElement>\r\n ) {\r\n if (this.ngControl) {\r\n this.ngControl.valueAccessor = this;\r\n }\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.stateChanges.complete();\r\n }\r\n\r\n // -- Getters for Template --\r\n get empty(): boolean {\r\n if (this.value == null) return true;\r\n if (typeof this.value === 'string') return this.value === '';\r\n return Array.isArray(this.value) && this.value.length === 0;\r\n }\r\n\r\n get shouldLabelFloat(): boolean {\r\n return this.focused || !this.empty;\r\n }\r\n\r\n get errorState(): boolean {\r\n const hasError =\r\n !!this.ngControl?.control?.errors ||\r\n ((this.errors?.length ?? 0) > 0 && this.touched);\r\n return (!this.value && !!this.required) || hasError;\r\n }\r\n\r\n // -- MatFormFieldControl Methods --\r\n setDescribedByIds(ids: string[]): void {\r\n if (this._elementRef?.nativeElement) {\r\n const controlElement = this._elementRef.nativeElement.querySelector(\r\n '.lib-map-mat-options-keys'\r\n );\r\n if (controlElement) {\r\n controlElement.setAttribute('aria-describedby', ids.join(' '));\r\n }\r\n }\r\n }\r\n\r\n onContainerClick(_event: MouseEvent): void {\r\n this.markAsTouched();\r\n this.stateChanges.next();\r\n }\r\n\r\n onTouched = (): void => { };\r\n\r\n markAsTouched(): void {\r\n if (!this.touched) {\r\n this.onTouched();\r\n this.touched = true;\r\n }\r\n }\r\n\r\n // -- ControlValueAccessor --\r\n writeValue(value: TreeNode[] | string | null): void {\r\n this.value = value;\r\n this.stateChanges.next();\r\n }\r\n\r\n registerOnChange(_fn: (value: TreeNode[] | string | null) => void): void {\r\n // Handled by parent or ngControl usually, but good practice to have stub\r\n }\r\n\r\n registerOnTouched(fn: () => void): void {\r\n this.onTouched = fn;\r\n }\r\n\r\n pathChanged(path: TreeNode[] | string): void {\r\n if (!Array.isArray(path) && typeof path !== 'string') return;\r\n this.value = path;\r\n this.valueChanged.emit(path);\r\n this.stateChanges.next();\r\n }\r\n\r\n \r\n}\r\n","<div class=\"lib-map-mat-options-keys\">\r\n <lib-data-tree\r\n [data]=\"mapToData\"\r\n [value]=\"value || ''\"\r\n [formInputs]=\"formInputs\"\r\n (pathChanged)=\"pathChanged($event)\">\r\n </lib-data-tree>\r\n</div>\r\n"],"names":[],"mappings":";;;;;;;;MA8Ba,iBAAiB,CAAA;aACrB,IAAA,CAAA,MAAM,GAAG,CAAH,CAAK;IAmBlB,IAAa,SAAS,CAAC,KAAc,EAAA;AACnC,QAAA,IAAI,CAAC,UAAU,GAAG,KAAK;AACvB,QAAA,OAAO,CAAC,KAAK,CAAC,mBAAmB,EAAE,KAAK,CAAC;IAC3C;;AACA,IAAA,IAAI,SAAS,GAAA;QACX,OAAO,IAAI,CAAC,UAAU;IACxB;IAKA,WAAA,CAC6B,SAAoB,EACvC,WAAoC,EAAA;QADjB,IAAA,CAAA,SAAS,GAAT,SAAS;QAC5B,IAAA,CAAA,WAAW,GAAX,WAAW;;AA7BrB,QAAA,IAAA,CAAA,YAAY,GAAG,IAAI,OAAO,EAAQ;AAClC,QAAA,IAAA,CAAA,EAAE,GAAG,CAAA,yBAAA,EAA4B,iBAAiB,CAAC,MAAM,EAAE,EAAE;QAC7D,IAAA,CAAA,WAAW,GAAG,EAAE;QACh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AA,iBAAiB,EAAC,YAAY,CAAA,EAAA,MAAA,EAAA,CAAA,6OAAA,CAAA,EAAA,eAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;iFAU7B,iBAAiB,EAAA,CAAA;cAZ7B,SAAS;2BACE,0BAA0B,EAAA,OAAA,EAC3B,CAAC,iBAAiB,EAAC,YAAY,CAAC,EAAA,SAAA,EAC9B,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAA,iBAAmB,EAAE,CAAC,EAAA,UAAA,EACjE,IAAI,EAAA,eAAA,EAGC,uBAAuB,CAAC,MAAM,EAAA,IAAA,EACzC;AACJ,oBAAA,MAAM,EAAE,IAAI;AACb,iBAAA,EAAA,QAAA,EAAA,8OAAA,EAAA,MAAA,EAAA,CAAA,sLAAA,CAAA,EAAA;;sBAkCE;;sBAAY;;kBAhBd;;kBACA;;kBACA;;kBACA;;kBACA;;kFApBU,iBAAiB,EAAA,EAAA,SAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,0FAAA,EAAA,UAAA,EAAA,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA,GAAA;;;;"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { signal, input, output, computed, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import * as i4 from '@angular/material/chips';
|
|
4
|
+
import { MatChipsModule } from '@angular/material/chips';
|
|
5
|
+
import { S as SearchFieldComponent } from './ngx-t-forms-search-field.component-BGdAmzJV.mjs';
|
|
6
|
+
import { E as EmptyStateComponent } from './ngx-t-forms-ngx-t-forms-D7kDvkTZ.mjs';
|
|
7
|
+
|
|
8
|
+
const _c0 = () => [];
|
|
9
|
+
const _forTrack0 = ($index, $item) => $item.value + "-" + $index;
|
|
10
|
+
function MatChipListEditorComponent_Conditional_1_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
11
|
+
i0.ɵɵelementStart(0, "mat-chip-option", 4);
|
|
12
|
+
i0.ɵɵtext(1);
|
|
13
|
+
i0.ɵɵelementEnd();
|
|
14
|
+
} if (rf & 2) {
|
|
15
|
+
const option_r3 = ctx.$implicit;
|
|
16
|
+
i0.ɵɵproperty("value", option_r3.value);
|
|
17
|
+
i0.ɵɵadvance();
|
|
18
|
+
i0.ɵɵtextInterpolate(option_r3.label);
|
|
19
|
+
} }
|
|
20
|
+
function MatChipListEditorComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
21
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
22
|
+
i0.ɵɵelementStart(0, "mat-chip-listbox", 3);
|
|
23
|
+
i0.ɵɵlistener("change", function MatChipListEditorComponent_Conditional_1_Template_mat_chip_listbox_change_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.valueListChanged($event)); });
|
|
24
|
+
i0.ɵɵrepeaterCreate(1, MatChipListEditorComponent_Conditional_1_For_2_Template, 2, 2, "mat-chip-option", 4, _forTrack0);
|
|
25
|
+
i0.ɵɵelementEnd();
|
|
26
|
+
} if (rf & 2) {
|
|
27
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
28
|
+
i0.ɵɵproperty("multiple", ctx_r1.multiple())("value", ctx_r1.value())("disabled", ctx_r1.disabled());
|
|
29
|
+
i0.ɵɵadvance();
|
|
30
|
+
i0.ɵɵrepeater(ctx_r1.filteredOptions());
|
|
31
|
+
} }
|
|
32
|
+
function MatChipListEditorComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
33
|
+
i0.ɵɵelement(0, "lib-empty-state", 2);
|
|
34
|
+
} if (rf & 2) {
|
|
35
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
36
|
+
i0.ɵɵproperty("message", (ctx_r1.options() || i0.ɵɵpureFunction0(1, _c0)).length ? "No options match your search" : "No options available");
|
|
37
|
+
} }
|
|
38
|
+
/**
|
|
39
|
+
* Chip-select editor: a searchable {@link MatChipsModule} listbox over a set of
|
|
40
|
+
* options, single- or multi-select. Renders inside `t-dynamic-data-edit`, which
|
|
41
|
+
* supplies the field label, hint, and validation errors — so this component owns
|
|
42
|
+
* only the search + chip content.
|
|
43
|
+
*/
|
|
44
|
+
class MatChipListEditorComponent {
|
|
45
|
+
constructor() {
|
|
46
|
+
this.hostId = signal(`lib-mat-chip-list-editor-${MatChipListEditorComponent.nextId++}`, ...(ngDevMode ? [{ debugName: "hostId" }] : /* istanbul ignore next */ []));
|
|
47
|
+
this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
48
|
+
this.multiple = input(false, ...(ngDevMode ? [{ debugName: "multiple" }] : /* istanbul ignore next */ []));
|
|
49
|
+
this.required = input(false, ...(ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []));
|
|
50
|
+
this.errors = input([], ...(ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []));
|
|
51
|
+
// Internal `any` retained — wrapper templates bind heterogeneous value types
|
|
52
|
+
// (DataSources, string[], etc.); narrowing here would force wrapper changes.
|
|
53
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- wrappers bind heterogeneous chip-value payloads (DataSources, string[]).
|
|
54
|
+
this.value = input(undefined, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
55
|
+
this.options = input([], ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
|
|
56
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- emits whatever shape `value` was bound to; narrows once wrappers tighten.
|
|
57
|
+
this.valueChange = output();
|
|
58
|
+
/** Free-text search term (two-way bound to the search field). */
|
|
59
|
+
this.search = signal('', ...(ngDevMode ? [{ debugName: "search" }] : /* istanbul ignore next */ []));
|
|
60
|
+
/**
|
|
61
|
+
* Options matching the search term. Matches the visible label, the group, and
|
|
62
|
+
* a string value (the same reachable-string-leaf semantics the old
|
|
63
|
+
* `searchList` pipe applied, minus its now-removed nested-object scan).
|
|
64
|
+
*/
|
|
65
|
+
this.filteredOptions = computed(() => {
|
|
66
|
+
const term = this.search().trim().toLowerCase();
|
|
67
|
+
const all = this.options() ?? [];
|
|
68
|
+
if (!term)
|
|
69
|
+
return all;
|
|
70
|
+
return all.filter((option) => {
|
|
71
|
+
const haystacks = [
|
|
72
|
+
option.label,
|
|
73
|
+
option.group,
|
|
74
|
+
typeof option.value === 'string' ? option.value : undefined,
|
|
75
|
+
];
|
|
76
|
+
return haystacks.some((text) => typeof text === 'string' && text.toLowerCase().includes(term));
|
|
77
|
+
});
|
|
78
|
+
}, ...(ngDevMode ? [{ debugName: "filteredOptions" }] : /* istanbul ignore next */ []));
|
|
79
|
+
}
|
|
80
|
+
static { this.nextId = 0; }
|
|
81
|
+
valueListChanged($event) {
|
|
82
|
+
this.valueChange.emit($event.value);
|
|
83
|
+
}
|
|
84
|
+
static { this.ɵfac = function MatChipListEditorComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MatChipListEditorComponent)(); }; }
|
|
85
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MatChipListEditorComponent, selectors: [["lib-mat-chip-list-editor"]], hostAttrs: [1, "lib-mat-chip-list-editor"], hostVars: 1, hostBindings: function MatChipListEditorComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
86
|
+
i0.ɵɵdomProperty("id", ctx.hostId());
|
|
87
|
+
} }, inputs: { disabled: [1, "disabled"], multiple: [1, "multiple"], required: [1, "required"], errors: [1, "errors"], value: [1, "value"], options: [1, "options"] }, outputs: { valueChange: "valueChange" }, decls: 3, vars: 3, consts: [["placeholder", "Search options", 3, "valueChange", "value", "resultCount"], ["aria-label", "Chip select options", 1, "lib-mat-chip-list-editor__listbox", 3, "multiple", "value", "disabled"], ["icon", "search_off", 3, "message"], ["aria-label", "Chip select options", 1, "lib-mat-chip-list-editor__listbox", 3, "change", "multiple", "value", "disabled"], [3, "value"]], template: function MatChipListEditorComponent_Template(rf, ctx) { if (rf & 1) {
|
|
88
|
+
i0.ɵɵelementStart(0, "lib-search-field", 0);
|
|
89
|
+
i0.ɵɵtwoWayListener("valueChange", function MatChipListEditorComponent_Template_lib_search_field_valueChange_0_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.search, $event) || (ctx.search = $event); return $event; });
|
|
90
|
+
i0.ɵɵelementEnd();
|
|
91
|
+
i0.ɵɵconditionalCreate(1, MatChipListEditorComponent_Conditional_1_Template, 3, 3, "mat-chip-listbox", 1)(2, MatChipListEditorComponent_Conditional_2_Template, 1, 2, "lib-empty-state", 2);
|
|
92
|
+
} if (rf & 2) {
|
|
93
|
+
i0.ɵɵtwoWayProperty("value", ctx.search);
|
|
94
|
+
i0.ɵɵproperty("resultCount", ctx.filteredOptions().length);
|
|
95
|
+
i0.ɵɵadvance();
|
|
96
|
+
i0.ɵɵconditional(ctx.filteredOptions().length ? 1 : 2);
|
|
97
|
+
} }, dependencies: [MatChipsModule, i4.MatChipListbox, i4.MatChipOption, SearchFieldComponent, EmptyStateComponent], styles: ["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:.75rem}.lib-mat-chip-list-editor__listbox[_ngcontent-%COMP%]{max-height:500px;overflow-y:auto}"], changeDetection: 0 }); }
|
|
98
|
+
}
|
|
99
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MatChipListEditorComponent, [{
|
|
100
|
+
type: Component,
|
|
101
|
+
args: [{ selector: 'lib-mat-chip-list-editor', imports: [MatChipsModule, SearchFieldComponent, EmptyStateComponent], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, host: {
|
|
102
|
+
'class': 'lib-mat-chip-list-editor',
|
|
103
|
+
'[id]': 'hostId()',
|
|
104
|
+
}, template: "<lib-search-field\n [(value)]=\"search\"\n placeholder=\"Search options\"\n [resultCount]=\"filteredOptions().length\" />\n\n@if (filteredOptions().length) {\n<mat-chip-listbox\n class=\"lib-mat-chip-list-editor__listbox\"\n [multiple]=\"multiple()\"\n [value]=\"value()\"\n [disabled]=\"disabled()\"\n (change)=\"valueListChanged($event)\"\n aria-label=\"Chip select options\">\n @for (option of filteredOptions(); track option.value+'-'+$index) {\n <mat-chip-option [value]=\"option.value\">{{ option.label }}</mat-chip-option>\n }\n</mat-chip-listbox>\n} @else {\n<lib-empty-state\n icon=\"search_off\"\n [message]=\"(options() || []).length ? 'No options match your search' : 'No options available'\" />\n}\n", styles: [":host{display:flex;flex-direction:column;gap:.75rem}.lib-mat-chip-list-editor__listbox{max-height:500px;overflow-y:auto}\n"] }]
|
|
105
|
+
}], null, { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }] }); })();
|
|
106
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MatChipListEditorComponent, { className: "MatChipListEditorComponent", filePath: "lib/components/t-dynamic-data-edit/elements/mat-chip-list-editor/mat-chip-list-editor.component.ts", lineNumber: 39 }); })();
|
|
107
|
+
|
|
108
|
+
export { MatChipListEditorComponent };
|
|
109
|
+
//# sourceMappingURL=ngx-t-forms-mat-chip-list-editor.component-Bqjjgtyf.mjs.map
|